@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 CHANGED
@@ -1,17 +1,17 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.39-dev.f5a04250.0
3
- * Tue, 06 Aug 2024 11:57:36 GMT
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
- "use strict";var X_=Object.create;var Ol=Object.defineProperty,J_=Object.defineProperties,x_=Object.getOwnPropertyDescriptor,$_=Object.getOwnPropertyDescriptors,eh=Object.getOwnPropertyNames,Kf=Object.getOwnPropertySymbols,th=Object.getPrototypeOf,jf=Object.prototype.hasOwnProperty,ih=Object.prototype.propertyIsEnumerable;var As=(i,e,t)=>e in i?Ol(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,ut=(i,e)=>{for(var t in e||(e={}))jf.call(e,t)&&As(i,t,e[t]);if(Kf)for(var t of Kf(e))ih.call(e,t)&&As(i,t,e[t]);return i},Rt=(i,e)=>J_(i,$_(e));var nh=(i,e)=>{for(var t in e)Ol(i,t,{get:e[t],enumerable:!0})},Wf=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of eh(e))!jf.call(i,o)&&o!==t&&Ol(i,o,{get:()=>e[o],enumerable:!(n=x_(e,o))||n.enumerable});return i};var Ms=(i,e,t)=>(t=i!=null?X_(th(i)):{},Wf(e||!i||!i.__esModule?Ol(t,"default",{value:i,enumerable:!0}):t,i)),oh=i=>Wf(Ol({},"__esModule",{value:!0}),i);var Qi=(i,e,t)=>(As(i,typeof e!="symbol"?e+"":e,t),t);var ct=(i,e,t)=>new Promise((n,o)=>{var r=s=>{try{a(t.next(s))}catch(u){o(u)}},l=s=>{try{a(t.throw(s))}catch(u){o(u)}},a=s=>s.done?n(s.value):Promise.resolve(s.value).then(r,l);a((t=t.apply(i,e)).next())});var t8={};nh(t8,{GridTypes:()=>wo,InterfaceLanguage:()=>Bl.InterfaceLanguage,VERSION:()=>Ko,VKNumericLanguage:()=>Bl.VKNumericLanguage,VideoFormat:()=>Is.VideoFormat,VideoQuality:()=>Is.VideoQuality,loadVKLangPack:()=>Bl.loadVKLangPack,registerPlayerWebComponent:()=>e8});module.exports=oh(t8);function he(){}function re(i,e){for(let t in e)i[t]=e[t];return i}function Vs(i){return i()}function or(){return Object.create(null)}function nt(i){i.forEach(Vs)}function Li(i){return typeof i=="function"}function j(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var nr;function Ls(i,e){return nr||(nr=document.createElement("a")),nr.href=e,i===nr.href}function Gf(i){return Object.keys(i).length===0}function ei(i,...e){if(i==null){for(let n of e)n(void 0);return he}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function tt(i){let e;return ei(i,t=>e=t)(),e}function z(i,e,t){i.$$.on_destroy.push(ei(e,t))}function Ie(i,e,t,n){if(i){let o=Qf(i,e,t,n);return i[0](o)}}function Qf(i,e,t,n){return i[1]&&n?re(t.ctx.slice(),i[1](n(e))):t.ctx}function Ee(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let 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 Ae(i,e,t,n,o,r){if(o){let l=Qf(e,t,n,r);i.p(l,o)}}function Me(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 ge(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function Yf(i){return i==null?"":i}var Oo=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var lr=class i{constructor(e){Qi(this,"_listeners","WeakMap"in Oo?new WeakMap:void 0);Qi(this,"_observer");Qi(this,"options");this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){var e;return(e=this._observer)!=null?e:this._observer=new ResizeObserver(t=>{var n;for(let o of t)i.entries.set(o.target,o),(n=this._listeners.get(o.target))==null||n(o)})}};lr.entries="WeakMap"in Oo?new WeakMap:void 0;var Zf=!1;function Xf(){Zf=!0}function Jf(){Zf=!1}function p(i,e){i.appendChild(e)}function Se(i,e,t){let n=xf(i);if(!n.getElementById(e)){let o=T("style");o.id=e,o.textContent=t,sh(n,o)}}function xf(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function sh(i,e){return p(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 Ri(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function T(i){return document.createElement(i)}function q(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Ve(i){return document.createTextNode(i)}function O(){return Ve(" ")}function dt(){return Ve("")}function me(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function qt(i){return function(e){return e.preventDefault(),i.call(this,e)}}function ft(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function be(i,e){for(let t in e)f(i,t,e[t])}function $f(i){return Array.from(i.childNodes)}function Ye(i,e){e=""+e,i.data!==e&&(i.data=e)}function ki(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}var rr;function ah(){if(rr===void 0){rr=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(i){rr=!0}}return rr}function ll(i,e){getComputedStyle(i).position==="static"&&(i.style.position="relative");let n=T("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=ah(),r;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",r=me(window,"message",l=>{l.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{r=me(n.contentWindow,"resize",e),e()}),p(i,n),()=>{(o||r&&n.contentWindow)&&r(),C(n)}}function H(i,e,t){i.classList.toggle(e,!!t)}function ec(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Bn(i,e){return new i(e)}var yo;function uo(i){yo=i}function rl(){if(!yo)throw new Error("Function called outside component initialization");return yo}function Ot(i){rl().$$.on_mount.push(i)}function Zn(i){rl().$$.on_destroy.push(i)}function sl(i,e){return rl().$$.context.set(i,e),e}function al(i){return rl().$$.context.get(i)}function Fl(){return rl().$$.context}function Fn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var Fo=[];var pe=[],fl=[],Bs=[],ic=Promise.resolve(),Ds=!1;function Ns(){Ds||(Ds=!0,ic.then(sr))}function Xn(){return Ns(),ic}function Jn(i){fl.push(i)}function Be(i){Bs.push(i)}var Rs=new Set,ul=0;function sr(){if(ul!==0)return;let i=yo;do{try{for(;ul<Fo.length;){let e=Fo[ul];ul++,uo(e),ph(e.$$)}}catch(e){throw Fo.length=0,ul=0,e}for(uo(null),Fo.length=0,ul=0;pe.length;)pe.pop()();for(let e=0;e<fl.length;e+=1){let t=fl[e];Rs.has(t)||(Rs.add(t),t())}fl.length=0}while(Fo.length);for(;Bs.length;)Bs.pop()();Ds=!1,Rs.clear(),uo(i)}function ph(i){if(i.fragment!==null){i.update(),nt(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Jn)}}function nc(i){let e=[],t=[];fl.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),fl=e}var ar=new Set,Ho;function ue(){Ho={r:0,c:[],p:Ho}}function fe(){Ho.r||nt(Ho.c),Ho=Ho.p}function d(i,e){i&&i.i&&(ar.delete(i),i.i(e))}function _(i,e,t,n){if(i&&i.o){if(ar.has(i))return;ar.add(i),Ho.c.push(()=>{ar.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function Tt(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function Le(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 oc(i){return typeof i=="object"&&i!==null?i:{}}var _h=["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"],hh=new Set([..._h]);function De(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function N(i){i&&i.c()}function B(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Jn(()=>{let r=i.$$.on_mount.map(Vs).filter(Li);i.$$.on_destroy?i.$$.on_destroy.push(...r):nt(r),i.$$.on_mount=[]}),o.forEach(Jn)}function D(i,e){let t=i.$$;t.fragment!==null&&(nc(t.after_update),nt(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function bh(i,e){i.$$.dirty[0]===-1&&(Fo.push(i),Ns(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function Q(i,e,t,n,o,r,l,a=[-1]){let s=yo;uo(i);let u=i.$$={fragment:null,ctx:[],props:r,update:he,not_equal:o,bound:or(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:or(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};l&&l(u.root);let c=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...w)=>{let g=w.length?w[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=g)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](g),c&&bh(i,m)),h}):[],u.update(),c=!0,nt(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Xf();let m=$f(e.target);u.fragment&&u.fragment.l(m),m.forEach(C)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),B(i,e.target,e.anchor),Jf(),sr()}uo(s)}var vh;typeof HTMLElement=="function"&&(vh=class extends HTMLElement{constructor(e,t,n){super();Qi(this,"$$componentCtor");Qi(this,"$$slots");Qi(this,"$$component");Qi(this,"$$connected",!1);Qi(this,"$$data",{});Qi(this,"$$reflecting",!1);Qi(this,"$$props_definition",{});Qi(this,"$$listeners",{});Qi(this,"$$listener_unsubscribe_fns",new Map);this.$$componentCtor=e,this.$$slots=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$listeners[e]=this.$$listeners[e]||[],this.$$listeners[e].push(t),this.$$component){let o=this.$$component.$on(e,t);this.$$listener_unsubscribe_fns.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$component){let o=this.$$listener_unsubscribe_fns.get(t);o&&(o(),this.$$listener_unsubscribe_fns.delete(t))}}connectedCallback(){return ct(this,null,function*(){if(this.$$connected=!0,!this.$$component){let t=function(r){return()=>{let l;return{c:function(){l=document.createElement("slot"),r!=="default"&&l.setAttribute("name",r)},m:function(u,c){S(u,l,c)},d:function(u){u&&C(l)}}}};var e=t;if(yield Promise.resolve(),!this.$$connected)return;let n={},o=ec(this);for(let r of this.$$slots)r in o&&(n[r]=[t(r)]);for(let r of this.attributes){let l=this.$$get_prop_name(r.name);l in this.$$data||(this.$$data[l]=lc(l,r.value,this.$$props_definition,"toProp"))}this.$$component=new this.$$componentCtor({target:this.shadowRoot||this,props:Rt(ut({},this.$$data),{$$slots:n,$$scope:{ctx:[]}})});for(let r in this.$$listeners)for(let l of this.$$listeners[r]){let a=this.$$component.$on(r,l);this.$$listener_unsubscribe_fns.set(l,a)}this.$$listeners={}}})}attributeChangedCallback(e,t,n){var o;this.$$reflecting||(e=this.$$get_prop_name(e),this.$$data[e]=lc(e,n,this.$$props_definition,"toProp"),(o=this.$$component)==null||o.$set({[e]:this.$$data[e]}))}disconnectedCallback(){this.$$connected=!1,Promise.resolve().then(()=>{this.$$connected||(this.$$component.$destroy(),this.$$component=void 0)})}$$get_prop_name(e){return Object.keys(this.$$props_definition).find(t=>this.$$props_definition[t].attribute===e||!this.$$props_definition[t].attribute&&t.toLowerCase()===e)||e}});function lc(i,e,t,n){var r;let o=(r=t[i])==null?void 0:r.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var W=class{constructor(){Qi(this,"$$");Qi(this,"$$set")}$destroy(){D(this,1),this.$destroy=he}$on(e,t){if(!Li(t))return he;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&&!Gf(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var rc="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(rc);var _D=require("@vkontakte/videoplayer-core"),$n=require("@vkontakte/videoplayer-shared"),r_=require("@vkontakte/videoplayer-statistics");var cl=require("@vkontakte/videoplayer-shared");var yh={isMobile:void 0,defaultLanguage:cl.InterfaceLanguage.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:cl.VideoQuality.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,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}},sc=i=>(0,cl.fillWithDefault)(i,yh),ac=i=>sl("ui-config",i),Zt=()=>al("ui-config");var Hl="vk_player_debug_panel_opened";var uc="videoplayer",fc="videoplayer";var to={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},cc=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),dc=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),mc=new Set(["ShiftRight","ShiftLeft"]);var pc=["TIMELINE"],zl=[...pc,"GRAPH_BUTTON"],qs=[...pc,"PLAY_BUTTON"],ur=[...zl,"PLAY_BUTTON"];var wo=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(wo||{}),Uo={xs:0,s:1,m:2,l:3,xl:4};var dl=[];function Hn(i,e){return{subscribe:Re(i,e).subscribe}}function Re(i,e=he){let t,n=new Set;function o(a){if(j(i,a)&&(i=a,t)){let s=!dl.length;for(let u of n)u[1](),dl.push(u,i);if(s){for(let u=0;u<dl.length;u+=2)dl[u][0](dl[u+1]);dl.length=0}}}function r(a){o(a(i))}function l(a,s=he){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,r)||he),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:l}}function Bi(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 Hn(t,(l,a)=>{let s=!1,u=[],c=0,m=he,h=()=>{if(c)return;m();let g=e(n?u[0]:u,l,a);r?l(g):m=Li(g)?g:he},w=o.map((g,k)=>ei(g,y=>{u[k]=y,c&=~(1<<k),s&&h()},()=>{c|=1<<k}));return s=!0,h(),function(){nt(w),m(),s=!1}})}var Ul=require("@vkontakte/videoplayer-shared"),_c=require("@vkontakte/videoplayer-core"),hc=require("@vkontakte/videoplayer-statistics");var fr="prod",Ko="1.1.39-dev.f5a04250.0";var cr=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var gc=Symbol("storeContext"),bc=Symbol("microStoresContext"),vc=(i,e)=>{sl(gc,i),sl(bc,e),fr==="dev"&&(window.app={store:i,microStores:e})},st=()=>{let i=al(gc);return(0,Ul.assertNonNullable)(i,"Store context is empty!"),i},Qn=()=>{let i=al(bc);return(0,Ul.assertNonNullable)(i,"MicroStores context is empty!"),i},Ct=(i,e)=>Os(i,i.getValue(),e),Os=(i,e,t)=>Hn(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),yc=(i,e,t)=>{var I,v,b,E,A,L;let n=i.info,{width:o,height:r}=tt(t.ui.playerSize),l=(v=(I=n.throughputEstimation$.getValue())==null?void 0:I.toFixed(0))!=null?v:0,a=(E=(b=n.rttEstimation$.getValue())==null?void 0:b.toFixed(0))!=null?E:0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${Ko} (core: ${_c.VERSION}, stat: ${hc.VERSION}, shared: ${Ul.VERSION})`,c=tt(t.state.errorLog$),m=c.length?`
7
- `+c.map((R,le)=>{var ee;let ae=`${le}) Type: ${R.id}
8
- `,Y=`Message: ${R.message} (${R.thrown})
9
- `,V=`Trace: ${(ee=R.thrown)==null?void 0:ee.stack}
10
- `;return ae+Y+V}).join(`
11
- `):void 0,h=t.state.isAudioDisabled?"disabled":tt(t.state.isAudioAvailable$)?void 0:"unavailable",w=i.info.currentVideoStream$.getValue(),g=i.info.currentAudioStream$.getValue(),k=[];w&&k.push(`Video: ${(A=w==null?void 0:w.codec)!=null?A:""}`+(w!=null&&w.hdr?" (HDR)":"")),g&&k.push(`Audio: ${(L=g==null?void 0:g.codec)!=null?L:""}`+(g!=null&&g.language?` (${g.language})`:""));let y={Version:u,Browser:navigator.userAgent,Config:i.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(t.videoId),VSID:tt(t.vsid),"Content host":n.hostname$.getValue(),"Connection type":n.httpConnectionType$.getValue()+(n.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${l}Kbps @ ${a}ms RTT`,Format:n.currentFormat$.getValue(),"Available Formats":Object.keys(e.sources).join(", "),Streams:k.join(", "),Quality:`${s} ${n.currentQuality$.getValue()}`,"Available qualities":n.availableQualities$.getValue().join(", "),Audio:h,Position:`${tt(t.state.positionExact$)}s`,State:`${tt(t.playerPhase)} ${n.playbackState$.getValue()}`,"Player size":`${o}x${r}`,URL:window.location.href,Errors:m};return Object.entries(y).filter(([R,le])=>le!==void 0).map(([R,le])=>`${R}: ${le}`).join(`
12
- `)},wc=(i,e,t)=>{var L,R,le,ae;let n=i.info,{width:o,height:r}=tt(t.ui.playerSize),l={version:Ko,viewport:`${o}x${r}`,volume:Math.round(tt(t.state.volume$)*100)};l.id=t.videoId,n.currentFormat$.getValue()&&(l.provider=n.currentFormat$.getValue()),n.hostname$.getValue()&&(l.cdn=n.hostname$.getValue());let u=n.intrinsicVideoSize$.getValue();u&&(l.videoSize=`${u.width}x${u.height}`);let c=n.currentBuffer$.getValue(),m=n.isLive$.getValue(),h=n.liveBufferTime$.getValue();c&&(m&&h?l.buffer=c.end-h:l.buffer=Math.max(c.end-tt(t.state.positionExact$),0));let w=n.throughputEstimation$.getValue();w&&(l.speed=w);let g=n.videoBitrate$.getValue();g&&(l.bitrate=g);let k=n.currentVideoSegmentLength$.getValue();k&&(l.currentVideoSegmentLength=k);let y=n.currentAudioSegmentLength$.getValue();y&&(l.currentAudioSegmentLength=y);let I=tt(t.vsid);typeof I=="string"&&(l.vsid=I);let v=(L=i.info.currentVideoStream$.getValue())==null?void 0:L.codec;v&&(l.videoCodec=v);let b=(R=i.info.currentAudioStream$.getValue())==null?void 0:R.codec;b&&(l.audioCodec=b),((le=i.info.currentVideoStream$.getValue())==null?void 0:le.hdr)&&(l.hdr=!0);let A=(ae=i.info.currentAudioStream$.getValue())==null?void 0:ae.language;return A&&(l.audioLanguage=A),l},kc=(i,e)=>cr(i,e,"mp4");var sn=require("@vkontakte/videoplayer-shared"),S9=require("@vkontakte/videoplayer-core"),Cc="vk_player_prefer_traffic_saving_enabled",Sc="vk_player_preferred_volume",Tc="vk_player_prefer_volume_mute",Fs="vk_player_preferred_quality",Pc="vk_player_preferred_stream_language",Ic="vk_player_preferred_rate",Ec=i=>i>1?1:i<0?0:i,Hs=i=>sn.safeStorage.set(Sc,Ec(i).toString(10)),dr=()=>{let i=sn.safeStorage.get(Sc);return(0,sn.isNullable)(i)?void 0:Ec(parseFloat(i))},Ac=(i,e)=>sn.safeStorage.set(Fs,JSON.stringify({videoId:i,value:e})),zs=()=>sn.safeStorage.remove(Fs),Mc=i=>{let e=sn.safeStorage.get(Fs);if((0,sn.isNullable)(e))return;let{videoId:t,value:n}=JSON.parse(e);if(i!==t){zs();return}return n},Vc=(i,e)=>{e?sn.safeStorage.set(i,"true"):sn.safeStorage.remove(i)},Lc=i=>sn.safeStorage.get(i)==="true",mr=i=>Vc(Tc,i),Rc=()=>Lc(Tc),Bc=i=>Vc(Cc,i),Dc=()=>Lc(Cc),Nc=()=>sn.safeStorage.get(Pc),Us=i=>sn.safeStorage.set(Pc,i),qc=i=>sn.safeStorage.set(Ic,JSON.stringify({rate:i})),Oc=()=>{let i=sn.safeStorage.get(Ic);if((0,sn.isNullable)(i))return;let{rate:e}=JSON.parse(i);return e};var Dp=require("@vkontakte/videoplayer-core"),ws=require("@vkontakte/videoplayer-shared");function wh(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,g,k,y,I,v=i[2].default,b=Ie(v,i,i[1],null),E=[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},i[0]],A={};for(let L=0;L<E.length;L+=1)A=re(A,E[L]);return{c(){e=q("svg"),b&&b.c(),t=q("g"),n=q("path"),o=q("path"),r=q("path"),l=q("path"),a=q("path"),s=q("defs"),u=q("filter"),c=q("feFlood"),m=q("feColorMatrix"),h=q("feOffset"),w=q("feGaussianBlur"),g=q("feColorMatrix"),k=q("feBlend"),y=q("feBlend"),f(n,"fill","#fff"),f(n,"fill-rule","evenodd"),f(n,"d","M67 9.489A3.49 3.49 0 0 1 63.511 13 3.493 3.493 0 0 1 60 9.489 3.49 3.49 0 0 1 63.511 6 3.484 3.484 0 0 1 67 9.489m-5.003 0c0 .834.68 1.514 1.514 1.514.812 0 1.492-.68 1.492-1.514 0-.812-.68-1.492-1.492-1.492-.834 0-1.514.68-1.514 1.492"),f(n,"clip-rule","evenodd"),f(o,"fill","#fff"),f(o,"d","M26.86 15.183c1.372-.492 2.534-1.711 2.534-3.61C29.394 8.922 27.185 7 24.07 7c-1.965 0-3.573.784-4.67 2.29l-.108.149a1.333 1.333 0 0 0 .268 1.855c.536.402 1.295.343 1.736-.162.09-.102.164-.19.205-.247.594-.81 1.431-1.306 2.5-1.306 1.534 0 2.604.915 2.604 2.251 0 1.36-1.093 2.275-2.651 2.275h-.583a1.231 1.231 0 0 0 0 2.462h.583c1.744 0 2.907.985 2.907 2.392 0 1.453-1.186 2.462-2.884 2.462-1.296 0-2.201-.552-2.883-1.603a10 10 0 0 0-.2-.287 1.403 1.403 0 0 0-2.052-.246c-.494.42-.65 1.13-.305 1.68.072.116.146.227.218.322C20.132 23.137 21.678 24 23.999 24c3.28 0 5.628-2.04 5.628-4.924 0-2.204-1.395-3.4-2.767-3.893"),f(r,"fill","#fff"),f(r,"fill-rule","evenodd"),f(r,"d","M37.732 12.675c-.465 0-1 .046-1.511.164l2.584-3.74a1.338 1.338 0 1 0-2.203-1.518l-3.753 5.469c-1.418 2.133-1.837 3.822-1.837 5.276 0 3.47 2.558 5.674 6.186 5.674 3.604 0 6.162-2.392 6.162-5.768 0-3.236-2.349-5.557-5.628-5.557m-.534 8.746c-1.977 0-3.326-1.267-3.326-3.142 0-1.853 1.349-3.142 3.326-3.142 1.953 0 3.302 1.29 3.302 3.142 0 1.875-1.35 3.142-3.302 3.142M58 15.512c0 5.041-2.697 8.441-6.627 8.441s-6.628-3.4-6.628-8.441 2.698-8.442 6.628-8.442S58 10.47 58 15.512m-10.348 0c0 3.564 1.488 5.862 3.72 5.862s3.721-2.298 3.721-5.862-1.488-5.862-3.72-5.862-3.72 2.298-3.72 5.862Z"),f(r,"clip-rule","evenodd"),f(l,"fill","#fff"),f(l,"d","M67 23.5c0-1.318-1.201-3.094-4.199-4.673a1.5 1.5 0 1 1 1.398-2.654C67.452 17.886 70 20.433 70 23.5c0 3.126-2.556 5.554-6.088 7.27-3.633 1.766-8.825 3.062-15.259 3.722a1.5 1.5 0 0 1-.306-2.984c6.248-.641 11.057-1.882 14.253-3.436C65.897 26.47 67 24.8 67 23.5M38.879 35H38c-9.64 0-17.447-1.133-22.9-3.018-2.72-.941-4.94-2.099-6.506-3.468C7.019 27.138 6 25.445 6 23.5c0-1.64.785-3.073 1.908-4.255 1.119-1.179 2.66-2.205 4.42-3.086a1.5 1.5 0 1 1 1.343 2.682c-1.584.793-2.794 1.634-3.588 2.47C9.293 22.143 9 22.873 9 23.5c0 .807.407 1.74 1.568 2.755 1.17 1.022 2.996 2.02 5.513 2.892C21.106 30.885 28.55 32 38 32h.879l-1.44-1.44a1.5 1.5 0 0 1 2.122-2.12l3.999 3.998.01.011a1.5 1.5 0 0 1 .317 1.624 1.5 1.5 0 0 1-.326.488l-4 4a1.5 1.5 0 0 1-2.122-2.122L38.88 35Z"),f(a,"stroke","#000"),f(a,"stroke-linecap","round"),f(a,"stroke-linejoin","round"),f(a,"stroke-opacity",".12"),f(a,"stroke-width",".5"),f(a,"d","m7.908 19.245-.181-.173c1.146-1.206 2.714-2.248 4.49-3.137a1.75 1.75 0 1 1 1.566 3.13c-1.57.786-2.752 1.61-3.519 2.418-.762.802-1.014 1.474-1.014 2.017 0 .713.357 1.583 1.483 2.567 1.136.993 2.93 1.978 5.43 2.843 4.99 1.726 12.403 2.84 21.837 2.84h.275l-1.012-1.013a1.75 1.75 0 1 1 2.474-2.474l4 3.998h0l.012.013s0 0 0 0c.162.165.284.354.368.556q0 0 0 0l-.23.096A1.5 1.5 0 0 1 44 33.5q-.002.306-.113.573L7.907 19.245Zm0 0-.181-.173C6.576 20.284 5.75 21.775 5.75 23.5c0 2.04 1.07 3.796 2.68 5.202 1.599 1.398 3.85 2.569 6.589 3.516C20.506 34.116 28.343 35.25 38 35.25h.275zm29.824-6.82c-.3 0-.63.018-.965.063l2.244-3.247c.728-1.054-.026-2.491-1.306-2.491-.524 0-1.014.258-1.31.69l-3.752 5.468h0l-.002.003c-1.442 2.17-1.879 3.905-1.879 5.415 0 1.8.665 3.288 1.815 4.324 1.147 1.033 2.757 1.6 4.62 1.6 3.727 0 6.413-2.488 6.413-6.018 0-3.377-2.464-5.807-5.878-5.807m25.779.825c2.07 0 3.739-1.67 3.739-3.761 0-2.07-1.67-3.739-3.739-3.739a3.74 3.74 0 0 0-3.761 3.739 3.743 3.743 0 0 0 3.761 3.761m0-2.497a1.267 1.267 0 0 1-1.264-1.264c0-.671.566-1.242 1.264-1.242.674 0 1.242.568 1.242 1.242 0 .698-.57 1.264-1.242 1.264m-33.634 8.323c0-2.043-1.139-3.272-2.388-3.895 1.208-.629 2.155-1.846 2.155-3.609 0-2.82-2.357-4.822-5.575-4.822-2.04 0-3.724.818-4.871 2.392l-.109.149a1.583 1.583 0 0 0 .32 2.203c.635.476 1.542.411 2.074-.197.09-.103.17-.198.219-.264.553-.755 1.318-1.204 2.297-1.204.72 0 1.309.214 1.715.564.403.347.64.84.64 1.437 0 .608-.242 1.107-.653 1.457-.415.353-1.017.568-1.748.568h-.583a1.481 1.481 0 0 0 0 2.962h.583c.826 0 1.493.233 1.948.61.451.375.709.902.709 1.532 0 .654-.265 1.2-.718 1.586-.455.388-1.116.626-1.916.626-.61 0-1.117-.13-1.548-.375s-.801-.614-1.125-1.114a11 11 0 0 0-.206-.296 1.653 1.653 0 0 0-2.417-.292c-.577.49-.774 1.335-.356 2.004.075.119.152.236.23.339.704.945 1.462 1.652 2.352 2.121.892.47 1.9.692 3.094.692 3.383 0 5.877-2.121 5.877-5.174m7.32 2.095c-.934 0-1.7-.299-2.232-.8-.53-.5-.843-1.217-.843-2.092 0-.863.313-1.581.844-2.085s1.298-.807 2.232-.807c.92 0 1.682.303 2.21.807.529.503.842 1.222.842 2.085 0 .875-.314 1.593-.84 2.093-.53.5-1.29.799-2.212.799Zm14.176 3.032c2.044 0 3.772-.887 4.983-2.425 1.208-1.534 1.894-3.703 1.894-6.266s-.686-4.732-1.894-6.266c-1.211-1.539-2.94-2.426-4.983-2.426-2.044 0-3.773.887-4.984 2.426-1.208 1.534-1.894 3.703-1.894 6.266s.686 4.732 1.894 6.266c1.211 1.538 2.94 2.425 4.984 2.425m0-3.08c-1.017 0-1.874-.518-2.487-1.478-.618-.968-.984-2.382-.984-4.133 0-1.752.366-3.166.984-4.133.613-.96 1.47-1.48 2.487-1.48s1.873.52 2.486 1.48c.618.967.984 2.381.984 4.133 0 1.751-.366 3.165-.984 4.133-.613.96-1.47 1.479-2.486 1.479Zm11.312-2.075c2.975 1.567 4.065 3.279 4.065 4.452 0 1.148-.983 2.756-4.259 4.347-3.16 1.536-7.937 2.773-14.17 3.412a1.75 1.75 0 0 0 .358 3.482c6.45-.662 11.673-1.963 15.342-3.746 3.551-1.725 6.229-4.216 6.229-7.495 0-3.213-2.661-5.825-5.935-7.548a1.75 1.75 0 1 0-1.63 3.096"),f(t,"filter","url(#a)"),f(c,"flood-opacity","0"),f(c,"result","BackgroundImageFix"),f(m,"in","SourceAlpha"),f(m,"result","hardAlpha"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(w,"stdDeviation","2.5"),f(g,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(k,"in2","BackgroundImageFix"),f(k,"result","effect1_dropShadow_618_12297"),f(y,"in","SourceGraphic"),f(y,"in2","effect1_dropShadow_618_12297"),f(y,"result","shape"),f(u,"id","a"),f(u,"width","75"),f(u,"height","44"),f(u,"x",".5"),f(u,"y",".5"),f(u,"color-interpolation-filters","sRGB"),f(u,"filterUnits","userSpaceOnUse"),be(e,A)},m(L,R){S(L,e,R),b&&b.m(e,null),p(e,t),p(t,n),p(t,o),p(t,r),p(t,l),p(t,a),p(e,s),p(s,u),p(u,c),p(u,m),p(u,h),p(u,w),p(u,g),p(u,k),p(u,y),I=!0},p(L,[R]){b&&b.p&&(!I||R&2)&&Ae(b,v,L,L[1],I?Ee(v,L[1],R,null):Me(L[1]),null),be(e,A=Le(E,[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},R&1&&L[0]]))},i(L){I||(d(b,L),I=!0)},o(L){_(b,L),I=!1},d(L){L&&C(e),b&&b.d(L)}}}function kh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Ks=class extends W{constructor(e){super(),Q(this,e,kh,wh,j,{})}},pr=Ks;var ml=require("@vkontakte/videoplayer-shared");var Ch={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"},Fc=Ch;var Sh={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"},Hc=Sh;var fo=new Map;fo.set(ml.InterfaceLanguage.EN,Hc);fo.set(ml.InterfaceLanguage.RU,Fc);var zc=new Map,js=({language:i,pack:e,fallback:t})=>{if(fo.has(i)){let n=fo.get(i);fo.set(i,ut(ut({},n),e))}else fo.set(i,e);zc.set(i,t)},Ws=i=>fo.has(i),Gs=(i,e,t,n)=>{var l;let o=fo.get(i),r=o==null?void 0:o[e];if((0,ml.isNullable)(r)){let a=(l=zc.get(i))!=null?l:n,s=a?fo.get(a):void 0;r=s==null?void 0:s[e]}return(0,ml.isNullable)(r)?e+Object.values(t!=null?t:{}).join(" "):t?r.replaceAll(/{(\w+?)}/g,(a,s)=>{var u;return(u=t[s])!=null?u:""}):r},G=(i,e)=>{let{interfaceLanguage$:t}=st(),n=tt(t),o=Zt();return Gs(n,i,e,o.defaultLanguage)};var Y9=require("@vkontakte/videoplayer-core");var pl;(function(i){i.fatal="fatal",i.error="error",i.warning="warning",i.log="log",i.info="info",i.debug="debug",i.critical="critical"})(pl||(pl={}));var Th=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Ph=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,Ih=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,_r="?",Eh="X-Sentry-Auth",Ah=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Mh(i){if(!i.stack)return null;let e=[],t=i.stack.split(`
13
- `),n,o;for(let r=0;r<t.length;++r){if(n=Th.exec(t[r]))o={filename:n[2]&&n[2].indexOf("address at ")===0?n[2].substr(11):n[2],function:n[1]||_r,lineno:n[3]?+n[3]:null,colno:n[4]?+n[4]:null};else if(n=Ih.exec(t[r]))o={filename:n[2],function:n[1]||_r,lineno:+n[3],colno:n[4]?+n[4]:null};else if(n=Ph.exec(t[r]))r===0&&!n[5]&&i.columnNumber!==void 0&&(e[0].column=i.columnNumber+1),o={filename:n[3],function:n[1]||_r,lineno:n[4]?+n[4]:null,colno:n[5]?+n[5]:null};else continue;!o.function&&o.lineno&&(o.function=_r),e.push(o)}return e.length?{value:Uc(i),type:i.name,stacktrace:{frames:e.reverse()}}:null}function Uc(i){return(i&&i.message||"No error message").split(`
14
- `).filter(t=>!!t)[0]}function Vh(i){try{let e=Mh(i);if(e)return e}catch(e){}return{value:Uc(i),type:i&&i.name,stacktrace:{frames:[]}}}function Lh(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,i=>{let e=Math.random()*16|0;return(i==="x"?e:e&3|8).toString(16)})}var hr=class{constructor(e){if(e&&e.dsn){let t=Ah.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 Rt(ut({},this.getRequestBlank()),{exception:{values:[Vh(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(Eh,this.authHeader||""),t.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:Lh(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function Kc(i,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(i):typeof e=="string"?i.indexOf(e)!==-1:!1}function Rh(){return window}var gr=class i extends hr{constructor(e,t=Rh()){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",ut({},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",ut({},e)),this}setUser(e){return this.setKeyState("user",ut({},e)),this}clone(){let e=new i(Rt(ut({},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:[ut({timestamp:Date.now()/1e3},this.beforeBreadcrumb(e))]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,t){this.send(Rt(ut({},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=>Kc(t,n))):!1}getRequestBlank(){return ut(Rt(ut({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(ut({release:this.release},e))),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:t="",value:n=""}=e.exception.values&&e.exception.values[0]||{};return[`${n}`,`${t}: ${n}`]}catch(t){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let t=this.getEventFilterUrl(e);return t?this.blacklistUrls.some(n=>Kc(t,n)):!1}getEventFilterUrl(e){try{if(e.exception){let t=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return t&&t[t.length-1].filename||null}return null}catch(t){return null}}extendState(e){this._state=Object.keys(e).reduce((t,n)=>{let o=this._state[n],r=Array.isArray(o)?o:null,l=e[n],a=Array.isArray(l)?l:null;return Rt(ut({},t),{[n]:r||a?[...r||[],...a||[]]:ut(ut({},typeof o!="string"?o:{}),typeof l!="string"?l:{})})},this._state)}setKeyState(e,t){this._state[e]=t}};var jo=require("@vkontakte/videoplayer-shared");var br=null,Wo=class{constructor(e,t,n={}){!br&&e.dsn&&(this.sentryClient=new gr({dsn:e.dsn,environment:t.env}),this.version=t.version,this.sentrySubscription=new jo.Subscription,this.options=e,this.context=n,br=this)}destroy(){var e,t;(e=this.sentryClient)==null||e.destroy(),(t=this.sentrySubscription)==null||t.unsubscribe(),br=null}logIError(e,t=!1){e.thrown&&this.report(e.thrown,{fatal:t,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,t={},n={}){let{sentryClient:o,context:r,options:l}=this,{sampleRate:a=0,whiteErrorIdList:s,whiteErrorCategoryList:u=[],blackErrorIdList:c,blackErrorCategoryList:m}=l,{errorType:h,category:w}=t;if((0,jo.isNonNullable)(w)&&m.includes(w)||(0,jo.isNonNullable)(h)&&c.includes(h))return;if(Math.random()<=a||(0,jo.isNonNullable)(w)&&u.includes(w)||(0,jo.isNonNullable)(h)&&s.includes(h)){Object.keys(t).length&&o.setTags(ut({version:this.version},t)),(Object.keys(r).length||Object.keys(n).length)&&o.setExtras(ut(ut({},r),n));try{h&&o.captureMessage(h,t.fatal?pl.fatal:pl.error),o.report(e)}catch(k){console.error(k)}}}static getInstance(){return br}};var vr=i=>{if(i.requestFullscreen)return i.requestFullscreen();if(i.msRequestFullscreen)return i.msRequestFullscreen();if(i.webkitRequestFullscreen)return i.webkitRequestFullscreen();if(i.mozRequestFullScreen)return i.mozRequestFullScreen();let e=i.querySelector("video");return e!=null&&e.webkitEnterFullscreen?e.webkitEnterFullscreen():Promise.reject()},yr=i=>i.exitFullscreen?i.exitFullscreen():i.msExitFullscreen?i.msExitFullscreen():i.webkitExitFullscreen?i.webkitExitFullscreen():i.mozCancelFullScreen?i.mozCancelFullScreen():Promise.reject(),jc=i=>{let e=i;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},Kl=()=>{let i=document;return i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement||i.msFullscreenElement},ko=()=>!!Kl(),wr=i=>{document.addEventListener("fullscreenchange",i),document.addEventListener("webkitfullscreenchange",i),document.addEventListener("mozfullscreenchange",i),document.addEventListener("MSFullscreenChange",i)},kr=i=>{document.removeEventListener("fullscreenchange",i),document.removeEventListener("webkitfullscreenchange",i),document.removeEventListener("mozfullscreenchange",i),document.removeEventListener("MSFullscreenChange",i)},Wc=i=>{let e=window.screen;return(o=>ct(void 0,null,function*(){return e.orientation?e.orientation.lock(o):e.mozLockOrientation?e.mozLockOrientation(o):e.msLockOrientation?e.msLockOrientation(o):Promise.reject()}))(((o={width:0,height:0})=>o.width<=o.height?"portrait":"landscape")(i))};var Qs=require("@vkontakte/videoplayer-shared"),Gc=()=>({title:G("hotkey_map_modal_title"),closeBtnText:G("hotkey_map_modal_close_btn_text"),groups:[{title:G("hotkey_map_group_title_common"),items:[{description:G("hotkey_map_item_mute_description"),value:G("hotkey_map_item_mute_value")},{description:G("hotkey_map_item_volume_up_description"),value:G("hotkey_map_item_volume_up_value")},{description:G("hotkey_map_item_volume_down_description"),value:G("hotkey_map_item_volume_down_value")},{description:G("hotkey_map_item_pip_description"),value:G("hotkey_map_item_pip_value")},{description:G("hotkey_map_item_full_screen_description"),value:G("hotkey_map_item_full_screen_value")},{description:G("hotkey_map_item_show_context_menu_description"),value:G("hotkey_map_item_show_context_menu_value")},{description:G("hotkey_map_item_show_hotkey_map_description"),value:G("hotkey_map_item_show_hotkey_map_value")}]},{title:G("hotkey_map_group_title_playback"),items:[{description:G("hotkey_map_item_play_toggle_description"),value:G("hotkey_map_item_play_toggle_value")},{description:G("hotkey_map_item_seek_backward_description"),value:G("hotkey_map_item_seek_backward_value")},{description:G("hotkey_map_item_seek_forward_description"),value:G("hotkey_map_item_seek_forward_value")},{description:G("hotkey_map_item_fast_seek_backward_description"),value:G("hotkey_map_item_fast_seek_backward_value")},{description:G("hotkey_map_item_fast_seek_forward_description"),value:G("hotkey_map_item_fast_seek_forward_value")},{description:G("hotkey_map_item_rate_down_description"),value:G("hotkey_map_item_rate_down_value")},{description:G("hotkey_map_item_rate_up_description"),value:G("hotkey_map_item_rate_up_value")},{description:G("hotkey_map_item_prev_frame_description"),value:G("hotkey_map_item_prev_frame_value")},{description:G("hotkey_map_item_next_frame_description"),value:G("hotkey_map_item_next_frame_value")},{description:G("hotkey_map_item_jump_seek_description"),value:G("hotkey_map_item_jump_seek_value")}]},{title:G("hotkey_map_group_title_subtitles"),items:[{description:G("hotkey_map_item_subtitles_toggle_description"),value:G("hotkey_map_item_subtitles_toggle_value")}]},{title:G("hotkey_map_group_title_episodes"),items:[{description:G("hotkey_map_item_prev_episode_description"),value:(0,Qs.isMacLike)()?G("hotkey_map_item_prev_episode_mac_value"):G("hotkey_map_item_prev_episode_pc_value")},{description:G("hotkey_map_item_next_episode_description"),value:(0,Qs.isMacLike)()?G("hotkey_map_item_next_episode_mac_value"):G("hotkey_map_item_next_episode_pc_value")}]}]});var Co=require("@vkontakte/videoplayer-shared");var Go=class{constructor(){this.isRequested=!1;this.videoElement=void 0;this.playerContainer=void 0;this.externalEventHandlers={};this.eventHandlers={enterpictureinpicture:this.onEnterPictureInPicture.bind(this),leavepictureinpicture:this.onLeavePictureInPicture.bind(this),resize:(0,Co.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new Co.ValueSubject(this.isActive()),type:0}}isSupported(){let e=(0,Co.getCurrentBrowser)().browser===Co.CurrentClientBrowser.Yandex;return document.pictureInPictureEnabled&&!e}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}setContext(e){this.svelteContext=e}revealPictureInPicture(){return ct(this,null,function*(){this.isRequested&&(this.unregistryEventHandlers(),yield this.request(),this.registryEventHandlers())})}request(){return ct(this,null,function*(){var e;if(!(!this.isSupported()||this.isActive()))try{yield(e=this.videoElement)==null?void 0:e.requestPictureInPicture()}catch(t){this.isRequested=!1}})}remove(){return ct(this,null,function*(){!this.isSupported()||!this.isActive()||(yield document.exitPictureInPicture())})}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){var e;this.isSupported()&&(this.videoElement=(e=this.playerContainer)==null?void 0:e.querySelector("video"))}registryEventHandlers(){var e,t;(e=this.videoElement)==null||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(t=this.videoElement)==null||t.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}registryExternalEventHandlers(e){this.externalEventHandlers=ut({},e)}unregistryEventHandlers(){var e,t;(e=this.videoElement)==null||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(t=this.videoElement)==null||t.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}dispose(){return ct(this,null,function*(){this.unregistryEventHandlers(),yield this.remove()})}onEnterPictureInPicture(e){var o,r;let n=e.pictureInPictureWindow;n&&(this.info.isActive$.next(!0),this.isRequested=!0,n.addEventListener("resize",this.eventHandlers.resize),(r=(o=this.externalEventHandlers).enterpictureinpicture)==null||r.call(o,e))}onLeavePictureInPicture(e){var o,r,l;let n=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,n==null||n.removeEventListener("resize",this.eventHandlers.resize),(r=(o=this.externalEventHandlers).leavepictureinpicture)==null||r.call(o,e),(l=this.playerDummyElement)==null||l.$destroy()}onResize(e){var t,n;(n=(t=this.externalEventHandlers).resize)==null||n.call(t,e)}};function Qo(i){return i instanceof Go}function Bh(i){let e=st();return Ot(()=>{e.getAdmanWrapper().startPostroll()}),[]}var Xs=class extends W{constructor(e){super(),Q(this,e,Bh,null,j,{})}},Qc=Xs;var Yc=require("@vkontakte/videoplayer-shared");function Dh(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 Nh(i){let e=G("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=G("skip_ads_after",{time:Math.ceil(n[1]-n[0]).toFixed(0)})+"")&&Ye(t,e)},d(n){n&&C(t)}}}function qh(i){let e,t=G("skip_ads_now")+"",n,o,r,l,a,s;return{c(){e=T("div"),n=Ve(t),o=O(),r=q("svg"),l=q("path"),f(l,"fill-rule","evenodd"),f(l,"clip-rule","evenodd"),f(l,"d","M0.263627 0.263605C-0.0878444 0.615078 -0.0878429 1.18493 0.26363 1.5364L4.72723 5.99998L0.263627 10.4636C-0.0878444 10.8151 -0.0878429 11.3849 0.26363 11.7364C0.615103 12.0879 1.18495 12.0879 1.53642 11.7364L6.63642 6.63637C6.98789 6.2849 6.98789 5.71505 6.63642 5.36358L1.53642 0.263602C1.18495 -0.0878686 0.615098 -0.0878673 0.263627 0.263605Z"),f(r,"class","icon svelte-1k4i25s"),f(r,"width","7"),f(r,"height","12"),f(r,"viewBox","0 0 7 12"),f(r,"fill","none"),f(r,"xmlns","http://www.w3.org/2000/svg"),f(e,"class","skip svelte-1k4i25s")},m(u,c){S(u,e,c),p(e,n),p(e,o),p(e,r),p(r,l),a||(s=me(e,"click",ft(function(){Li(i[2])&&i[2].apply(this,arguments)})),a=!0)},p(u,c){i=u},d(u){u&&C(e),a=!1,s()}}}function Oh(i){let e;function t(r,l){return r[3]?qh:Nh}let n=t(i,-1),o=n(i);return{c(){e=T("div"),o.c(),f(e,"class","container svelte-1k4i25s"),H(e,"container-mobile",i[4]),H(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&&H(e,"container-mobile",r[4]),l&8&&H(e,"skippable",r[3])},i:he,o:he,d(r){r&&C(e),o.d()}}}function Fh(i,e,t){let n,{position:o=0}=e,{secondsToWatchBeforeSkip:r=0}=e,{skipAd:l=Yc.noop}=e,s=st().ui.isMobile;z(i,s,c=>t(4,n=c));let u;return i.$$set=c=>{"position"in c&&t(0,o=c.position),"secondsToWatchBeforeSkip"in c&&t(1,r=c.secondsToWatchBeforeSkip),"skipAd"in c&&t(2,l=c.skipAd)},i.$$.update=()=>{if(i.$$.dirty&3)e:t(3,u=o>0&&o>=r)},[o,r,l,u,n,s]}var Js=class extends W{constructor(e){super(),Q(this,e,Fh,Oh,j,{position:0,secondsToWatchBeforeSkip:1,skipAd:2},Dh)}},Zc=Js;function Hh(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 zh(i){let e;return{c(){e=T("button"),e.textContent=`${G("visit_advertiser")}`,f(e,"class","svelte-1wy3dql")},m(t,n){S(t,e,n)},p:he,i:he,o:he,d(t){t&&C(e)}}}var xs=class extends W{constructor(e){super(),Q(this,e,null,zh,j,{},Hh)}},Xc=xs;function Uh(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(
6
+ "use strict";var Q_=Object.create;var Ol=Object.defineProperty,Y_=Object.defineProperties,Z_=Object.getOwnPropertyDescriptor,X_=Object.getOwnPropertyDescriptors,J_=Object.getOwnPropertyNames,jf=Object.getOwnPropertySymbols,x_=Object.getPrototypeOf,Wf=Object.prototype.hasOwnProperty,$_=Object.prototype.propertyIsEnumerable;var Vs=(i,e,t)=>e in i?Ol(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,at=(i,e)=>{for(var t in e||(e={}))Wf.call(e,t)&&Vs(i,t,e[t]);if(jf)for(var t of jf(e))$_.call(e,t)&&Vs(i,t,e[t]);return i},Dt=(i,e)=>Y_(i,X_(e));var e2=(i,e)=>{for(var t in e)Ol(i,t,{get:e[t],enumerable:!0})},Gf=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of J_(e))!Wf.call(i,o)&&o!==t&&Ol(i,o,{get:()=>e[o],enumerable:!(n=Z_(e,o))||n.enumerable});return i};var Ls=(i,e,t)=>(t=i!=null?Q_(x_(i)):{},Gf(e||!i||!i.__esModule?Ol(t,"default",{value:i,enumerable:!0}):t,i)),t2=i=>Gf(Ol({},"__esModule",{value:!0}),i);var Gi=(i,e,t)=>(Vs(i,typeof e!="symbol"?e+"":e,t),t);var ft=(i,e,t)=>new Promise((n,o)=>{var r=s=>{try{a(t.next(s))}catch(u){o(u)}},l=s=>{try{a(t.throw(s))}catch(u){o(u)}},a=s=>s.done?n(s.value):Promise.resolve(s.value).then(r,l);a((t=t.apply(i,e)).next())});var x6={};e2(x6,{GridTypes:()=>bo,InterfaceLanguage:()=>Ll.InterfaceLanguage,VERSION:()=>Ho,VKNumericLanguage:()=>Ll.VKNumericLanguage,VideoFormat:()=>As.VideoFormat,VideoQuality:()=>As.VideoQuality,loadVKLangPack:()=>Ll.loadVKLangPack,registerPlayerWebComponent:()=>J6});module.exports=t2(x6);function _e(){}function le(i,e){for(let t in e)i[t]=e[t];return i}function Rs(i){return i()}function rr(){return Object.create(null)}function ot(i){i.forEach(Rs)}function Vi(i){return typeof i=="function"}function K(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var lr;function Bs(i,e){return lr||(lr=document.createElement("a")),lr.href=e,i===lr.href}function Qf(i){return Object.keys(i).length===0}function $t(i,...e){if(i==null){for(let n of e)n(void 0);return _e}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function it(i){let e;return $t(i,t=>e=t)(),e}function H(i,e,t){i.$$.on_destroy.push($t(e,t))}function Ee(i,e,t,n){if(i){let o=Yf(i,e,t,n);return i[0](o)}}function Yf(i,e,t,n){return i[1]&&n?le(t.ctx.slice(),i[1](n(e))):t.ctx}function Ae(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 Me(i,e,t,n,o,r){if(o){let l=Yf(e,t,n,r);i.p(l,o)}}function Ve(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 ge(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function Zf(i){return i==null?"":i}var Do=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var sr=class i{constructor(e){Gi(this,"_listeners","WeakMap"in Do?new WeakMap:void 0);Gi(this,"_observer");Gi(this,"options");this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){var e;return(e=this._observer)!=null?e:this._observer=new ResizeObserver(t=>{var n;for(let o of t)i.entries.set(o.target,o),(n=this._listeners.get(o.target))==null||n(o)})}};sr.entries="WeakMap"in Do?new WeakMap:void 0;var Xf=!1;function Jf(){Xf=!0}function xf(){Xf=!1}function p(i,e){i.appendChild(e)}function Te(i,e,t){let n=$f(i);if(!n.getElementById(e)){let o=T("style");o.id=e,o.textContent=t,o2(n,o)}}function $f(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function o2(i,e){return p(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 Li(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function T(i){return document.createElement(i)}function D(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Le(i){return document.createTextNode(i)}function q(){return Le(" ")}function ct(){return Le("")}function de(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function Ot(i){return function(e){return e.preventDefault(),i.call(this,e)}}function ut(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function be(i,e){for(let t in e)f(i,t,e[t])}function ec(i){return Array.from(i.childNodes)}function Ye(i,e){e=""+e,i.data!==e&&(i.data=e)}function ki(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}var ar;function l2(){if(ar===void 0){ar=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(i){ar=!0}}return ar}function nl(i,e){getComputedStyle(i).position==="static"&&(i.style.position="relative");let n=T("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=l2(),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()}),p(i,n),()=>{(o||r&&n.contentWindow)&&r(),C(n)}}function F(i,e,t){i.classList.toggle(e,!!t)}function tc(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Rn(i,e){return new i(e)}var go;function so(i){go=i}function ol(){if(!go)throw new Error("Function called outside component initialization");return go}function Ft(i){ol().$$.on_mount.push(i)}function Zn(i){ol().$$.on_destroy.push(i)}function ll(i,e){return ol().$$.context.set(i,e),e}function rl(i){return ol().$$.context.get(i)}function Fl(){return ol().$$.context}function Fn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var No=[];var pe=[],al=[],Ns=[],nc=Promise.resolve(),qs=!1;function Os(){qs||(qs=!0,nc.then(ur))}function Xn(){return Os(),nc}function Jn(i){al.push(i)}function Ne(i){Ns.push(i)}var Ds=new Set,sl=0;function ur(){if(sl!==0)return;let i=go;do{try{for(;sl<No.length;){let e=No[sl];sl++,so(e),c2(e.$$)}}catch(e){throw No.length=0,sl=0,e}for(so(null),No.length=0,sl=0;pe.length;)pe.pop()();for(let e=0;e<al.length;e+=1){let t=al[e];Ds.has(t)||(Ds.add(t),t())}al.length=0}while(No.length);for(;Ns.length;)Ns.pop()();qs=!1,Ds.clear(),so(i)}function c2(i){if(i.fragment!==null){i.update(),ot(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Jn)}}function oc(i){let e=[],t=[];al.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),al=e}var fr=new Set,qo;function ue(){qo={r:0,c:[],p:qo}}function fe(){qo.r||ot(qo.c),qo=qo.p}function d(i,e){i&&i.i&&(fr.delete(i),i.i(e))}function _(i,e,t,n){if(i&&i.o){if(fr.has(i))return;fr.add(i),qo.c.push(()=>{fr.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function It(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function Re(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 lc(i){return typeof i=="object"&&i!==null?i:{}}var d2=["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"],m2=new Set([...d2]);function qe(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function B(i){i&&i.c()}function L(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Jn(()=>{let r=i.$$.on_mount.map(Rs).filter(Vi);i.$$.on_destroy?i.$$.on_destroy.push(...r):ot(r),i.$$.on_mount=[]}),o.forEach(Jn)}function R(i,e){let t=i.$$;t.fragment!==null&&(oc(t.after_update),ot(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function _2(i,e){i.$$.dirty[0]===-1&&(No.push(i),Os(),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=go;so(i);let u=i.$$={fragment:null,ctx:[],props:r,update:_e,not_equal:o,bound:rr(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:rr(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};l&&l(u.root);let c=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...k)=>{let g=k.length?k[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=g)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](g),c&&_2(i,m)),h}):[],u.update(),c=!0,ot(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Jf();let m=ec(e.target);u.fragment&&u.fragment.l(m),m.forEach(C)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),L(i,e.target,e.anchor),xf(),ur()}so(s)}var h2;typeof HTMLElement=="function"&&(h2=class extends HTMLElement{constructor(e,t,n){super();Gi(this,"$$componentCtor");Gi(this,"$$slots");Gi(this,"$$component");Gi(this,"$$connected",!1);Gi(this,"$$data",{});Gi(this,"$$reflecting",!1);Gi(this,"$$props_definition",{});Gi(this,"$$listeners",{});Gi(this,"$$listener_unsubscribe_fns",new Map);this.$$componentCtor=e,this.$$slots=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$listeners[e]=this.$$listeners[e]||[],this.$$listeners[e].push(t),this.$$component){let o=this.$$component.$on(e,t);this.$$listener_unsubscribe_fns.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$component){let o=this.$$listener_unsubscribe_fns.get(t);o&&(o(),this.$$listener_unsubscribe_fns.delete(t))}}connectedCallback(){return ft(this,null,function*(){if(this.$$connected=!0,!this.$$component){let t=function(r){return()=>{let l;return{c:function(){l=document.createElement("slot"),r!=="default"&&l.setAttribute("name",r)},m:function(u,c){S(u,l,c)},d:function(u){u&&C(l)}}}};var e=t;if(yield Promise.resolve(),!this.$$connected)return;let n={},o=tc(this);for(let r of this.$$slots)r in o&&(n[r]=[t(r)]);for(let r of this.attributes){let l=this.$$get_prop_name(r.name);l in this.$$data||(this.$$data[l]=rc(l,r.value,this.$$props_definition,"toProp"))}this.$$component=new this.$$componentCtor({target:this.shadowRoot||this,props:Dt(at({},this.$$data),{$$slots:n,$$scope:{ctx:[]}})});for(let r in this.$$listeners)for(let l of this.$$listeners[r]){let a=this.$$component.$on(r,l);this.$$listener_unsubscribe_fns.set(l,a)}this.$$listeners={}}})}attributeChangedCallback(e,t,n){var o;this.$$reflecting||(e=this.$$get_prop_name(e),this.$$data[e]=rc(e,n,this.$$props_definition,"toProp"),(o=this.$$component)==null||o.$set({[e]:this.$$data[e]}))}disconnectedCallback(){this.$$connected=!1,Promise.resolve().then(()=>{this.$$connected||(this.$$component.$destroy(),this.$$component=void 0)})}$$get_prop_name(e){return Object.keys(this.$$props_definition).find(t=>this.$$props_definition[t].attribute===e||!this.$$props_definition[t].attribute&&t.toLowerCase()===e)||e}});function rc(i,e,t,n){var r;let o=(r=t[i])==null?void 0:r.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var j=class{constructor(){Gi(this,"$$");Gi(this,"$$set")}$destroy(){R(this,1),this.$destroy=_e}$on(e,t){if(!Vi(t))return _e;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Qf(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var sc="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(sc);var dD=require("@vkontakte/videoplayer-core"),$n=require("@vkontakte/videoplayer-shared"),r_=require("@vkontakte/videoplayer-statistics");var ul=require("@vkontakte/videoplayer-shared");var g2={isMobile:void 0,defaultLanguage:ul.InterfaceLanguage.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:ul.VideoQuality.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,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}},ac=i=>(0,ul.fillWithDefault)(i,g2),uc=i=>ll("ui-config",i),Qt=()=>rl("ui-config");var Hl="vk_player_debug_panel_opened";var fc="videoplayer",cc="videoplayer";var io={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},dc=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),mc=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),pc=new Set(["ShiftRight","ShiftLeft"]);var _c=["TIMELINE"],zl=[..._c,"GRAPH_BUTTON"],Fs=[..._c,"PLAY_BUTTON"],cr=[...zl,"PLAY_BUTTON"];var bo=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(bo||{}),Fo={xs:0,s:1,m:2,l:3,xl:4};var fl=[];function Hn(i,e){return{subscribe:Be(i,e).subscribe}}function Be(i,e=_e){let t,n=new Set;function o(a){if(K(i,a)&&(i=a,t)){let s=!fl.length;for(let u of n)u[1](),fl.push(u,i);if(s){for(let u=0;u<fl.length;u+=2)fl[u][0](fl[u+1]);fl.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 Ri(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 Hn(t,(l,a)=>{let s=!1,u=[],c=0,m=_e,h=()=>{if(c)return;m();let g=e(n?u[0]:u,l,a);r?l(g):m=Vi(g)?g:_e},k=o.map((g,w)=>$t(g,y=>{u[w]=y,c&=~(1<<w),s&&h()},()=>{c|=1<<w}));return s=!0,h(),function(){ot(k),m(),s=!1}})}var Ul=require("@vkontakte/videoplayer-shared"),hc=require("@vkontakte/videoplayer-core"),gc=require("@vkontakte/videoplayer-statistics");var dr="prod",Ho="1.1.39";var mr=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var bc=Symbol("storeContext"),vc=Symbol("microStoresContext"),yc=(i,e)=>{ll(bc,i),ll(vc,e),dr==="dev"&&(window.app={store:i,microStores:e})},lt=()=>{let i=rl(bc);return(0,Ul.assertNonNullable)(i,"Store context is empty!"),i},Qn=()=>{let i=rl(vc);return(0,Ul.assertNonNullable)(i,"MicroStores context is empty!"),i},Tt=(i,e)=>Hs(i,i.getValue(),e),Hs=(i,e,t)=>Hn(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),wc=(i,e,t)=>{var P,v,b,I,N,M;let n=i.info,{width:o,height:r}=it(t.ui.playerSize),l=(v=(P=n.throughputEstimation$.getValue())==null?void 0:P.toFixed(0))!=null?v:0,a=(I=(b=n.rttEstimation$.getValue())==null?void 0:b.toFixed(0))!=null?I:0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${Ho} (core: ${hc.VERSION}, stat: ${gc.VERSION}, shared: ${Ul.VERSION})`,c=it(t.state.errorLog$),m=c.length?`
7
+ `+c.map((O,re)=>{var A;let ae=`${re}) Type: ${O.id}
8
+ `,Y=`Message: ${O.message} (${O.thrown})
9
+ `,ee=`Trace: ${(A=O.thrown)==null?void 0:A.stack}
10
+ `;return ae+Y+ee}).join(`
11
+ `):void 0,h=t.state.isAudioDisabled?"disabled":it(t.state.isAudioAvailable$)?void 0:"unavailable",k=i.info.currentVideoStream$.getValue(),g=i.info.currentAudioStream$.getValue(),w=[];k&&w.push(`Video: ${(N=k==null?void 0:k.codec)!=null?N:""}`+(k!=null&&k.hdr?" (HDR)":"")),g&&w.push(`Audio: ${(M=g==null?void 0:g.codec)!=null?M:""}`+(g!=null&&g.language?` (${g.language})`:""));let y={Version:u,Browser:navigator.userAgent,Config:i.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(t.videoId),VSID:it(t.vsid),"Content host":n.hostname$.getValue(),"Connection type":n.httpConnectionType$.getValue()+(n.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${l}Kbps @ ${a}ms RTT`,Format:n.currentFormat$.getValue(),"Available Formats":Object.keys(e.sources).join(", "),Streams:w.join(", "),Quality:`${s} ${n.currentQuality$.getValue()}`,"Available qualities":n.availableQualities$.getValue().join(", "),Audio:h,Position:`${it(t.state.positionExact$)}s`,State:`${it(t.playerPhase)} ${n.playbackState$.getValue()}`,"Player size":`${o}x${r}`,URL:window.location.href,Errors:m};return Object.entries(y).filter(([O,re])=>re!==void 0).map(([O,re])=>`${O}: ${re}`).join(`
12
+ `)},kc=(i,e,t)=>{var M,O,re,ae;let n=i.info,{width:o,height:r}=it(t.ui.playerSize),l={version:Ho,viewport:`${o}x${r}`,volume:Math.round(it(t.state.volume$)*100)};l.id=t.videoId,n.currentFormat$.getValue()&&(l.provider=n.currentFormat$.getValue()),n.hostname$.getValue()&&(l.cdn=n.hostname$.getValue());let u=n.intrinsicVideoSize$.getValue();u&&(l.videoSize=`${u.width}x${u.height}`);let c=n.currentBuffer$.getValue(),m=n.isLive$.getValue(),h=n.liveBufferTime$.getValue();c&&(m&&h?l.buffer=c.end-h:l.buffer=Math.max(c.end-it(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 y=n.currentAudioSegmentLength$.getValue();y&&(l.currentAudioSegmentLength=y);let P=it(t.vsid);typeof P=="string"&&(l.vsid=P);let v=(M=i.info.currentVideoStream$.getValue())==null?void 0:M.codec;v&&(l.videoCodec=v);let b=(O=i.info.currentAudioStream$.getValue())==null?void 0:O.codec;b&&(l.audioCodec=b),((re=i.info.currentVideoStream$.getValue())==null?void 0:re.hdr)&&(l.hdr=!0);let N=(ae=i.info.currentAudioStream$.getValue())==null?void 0:ae.language;return N&&(l.audioLanguage=N),l},Cc=(i,e)=>mr(i,e,"mp4");var un=require("@vkontakte/videoplayer-shared"),w9=require("@vkontakte/videoplayer-core"),Sc="vk_player_prefer_traffic_saving_enabled",Tc="vk_player_preferred_volume",Pc="vk_player_prefer_volume_mute",zs="vk_player_preferred_quality",Ic="vk_player_preferred_stream_language",Ec="vk_player_preferred_rate",Ac=i=>i>1?1:i<0?0:i,Us=i=>un.safeStorage.set(Tc,Ac(i).toString(10)),pr=()=>{let i=un.safeStorage.get(Tc);return(0,un.isNullable)(i)?void 0:Ac(parseFloat(i))},Mc=(i,e)=>un.safeStorage.set(zs,JSON.stringify({videoId:i,value:e})),Ks=()=>un.safeStorage.remove(zs),Vc=i=>{let e=un.safeStorage.get(zs);if((0,un.isNullable)(e))return;let{videoId:t,value:n}=JSON.parse(e);if(i!==t){Ks();return}return n},Lc=(i,e)=>{e?un.safeStorage.set(i,"true"):un.safeStorage.remove(i)},Rc=i=>un.safeStorage.get(i)==="true",_r=i=>Lc(Pc,i),Bc=()=>Rc(Pc),Dc=i=>Lc(Sc,i),Nc=()=>Rc(Sc),qc=()=>un.safeStorage.get(Ic),js=i=>un.safeStorage.set(Ic,i),Oc=i=>un.safeStorage.set(Ec,JSON.stringify({rate:i})),Fc=()=>{let i=un.safeStorage.get(Ec);if((0,un.isNullable)(i))return;let{rate:e}=JSON.parse(i);return e};var Dp=require("@vkontakte/videoplayer-core"),Cs=require("@vkontakte/videoplayer-shared");function b2(i){let e,t,n,o,r,l,a,s,u,c,m,h,k,g,w,y,P,v=i[2].default,b=Ee(v,i,i[1],null),I=[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},i[0]],N={};for(let M=0;M<I.length;M+=1)N=le(N,I[M]);return{c(){e=D("svg"),b&&b.c(),t=D("g"),n=D("path"),o=D("path"),r=D("path"),l=D("path"),a=D("path"),s=D("defs"),u=D("filter"),c=D("feFlood"),m=D("feColorMatrix"),h=D("feOffset"),k=D("feGaussianBlur"),g=D("feColorMatrix"),w=D("feBlend"),y=D("feBlend"),f(n,"fill","#fff"),f(n,"fill-rule","evenodd"),f(n,"d","M67 9.489A3.49 3.49 0 0 1 63.511 13 3.493 3.493 0 0 1 60 9.489 3.49 3.49 0 0 1 63.511 6 3.484 3.484 0 0 1 67 9.489m-5.003 0c0 .834.68 1.514 1.514 1.514.812 0 1.492-.68 1.492-1.514 0-.812-.68-1.492-1.492-1.492-.834 0-1.514.68-1.514 1.492"),f(n,"clip-rule","evenodd"),f(o,"fill","#fff"),f(o,"d","M26.86 15.183c1.372-.492 2.534-1.711 2.534-3.61C29.394 8.922 27.185 7 24.07 7c-1.965 0-3.573.784-4.67 2.29l-.108.149a1.333 1.333 0 0 0 .268 1.855c.536.402 1.295.343 1.736-.162.09-.102.164-.19.205-.247.594-.81 1.431-1.306 2.5-1.306 1.534 0 2.604.915 2.604 2.251 0 1.36-1.093 2.275-2.651 2.275h-.583a1.231 1.231 0 0 0 0 2.462h.583c1.744 0 2.907.985 2.907 2.392 0 1.453-1.186 2.462-2.884 2.462-1.296 0-2.201-.552-2.883-1.603a10 10 0 0 0-.2-.287 1.403 1.403 0 0 0-2.052-.246c-.494.42-.65 1.13-.305 1.68.072.116.146.227.218.322C20.132 23.137 21.678 24 23.999 24c3.28 0 5.628-2.04 5.628-4.924 0-2.204-1.395-3.4-2.767-3.893"),f(r,"fill","#fff"),f(r,"fill-rule","evenodd"),f(r,"d","M37.732 12.675c-.465 0-1 .046-1.511.164l2.584-3.74a1.338 1.338 0 1 0-2.203-1.518l-3.753 5.469c-1.418 2.133-1.837 3.822-1.837 5.276 0 3.47 2.558 5.674 6.186 5.674 3.604 0 6.162-2.392 6.162-5.768 0-3.236-2.349-5.557-5.628-5.557m-.534 8.746c-1.977 0-3.326-1.267-3.326-3.142 0-1.853 1.349-3.142 3.326-3.142 1.953 0 3.302 1.29 3.302 3.142 0 1.875-1.35 3.142-3.302 3.142M58 15.512c0 5.041-2.697 8.441-6.627 8.441s-6.628-3.4-6.628-8.441 2.698-8.442 6.628-8.442S58 10.47 58 15.512m-10.348 0c0 3.564 1.488 5.862 3.72 5.862s3.721-2.298 3.721-5.862-1.488-5.862-3.72-5.862-3.72 2.298-3.72 5.862Z"),f(r,"clip-rule","evenodd"),f(l,"fill","#fff"),f(l,"d","M67 23.5c0-1.318-1.201-3.094-4.199-4.673a1.5 1.5 0 1 1 1.398-2.654C67.452 17.886 70 20.433 70 23.5c0 3.126-2.556 5.554-6.088 7.27-3.633 1.766-8.825 3.062-15.259 3.722a1.5 1.5 0 0 1-.306-2.984c6.248-.641 11.057-1.882 14.253-3.436C65.897 26.47 67 24.8 67 23.5M38.879 35H38c-9.64 0-17.447-1.133-22.9-3.018-2.72-.941-4.94-2.099-6.506-3.468C7.019 27.138 6 25.445 6 23.5c0-1.64.785-3.073 1.908-4.255 1.119-1.179 2.66-2.205 4.42-3.086a1.5 1.5 0 1 1 1.343 2.682c-1.584.793-2.794 1.634-3.588 2.47C9.293 22.143 9 22.873 9 23.5c0 .807.407 1.74 1.568 2.755 1.17 1.022 2.996 2.02 5.513 2.892C21.106 30.885 28.55 32 38 32h.879l-1.44-1.44a1.5 1.5 0 0 1 2.122-2.12l3.999 3.998.01.011a1.5 1.5 0 0 1 .317 1.624 1.5 1.5 0 0 1-.326.488l-4 4a1.5 1.5 0 0 1-2.122-2.122L38.88 35Z"),f(a,"stroke","#000"),f(a,"stroke-linecap","round"),f(a,"stroke-linejoin","round"),f(a,"stroke-opacity",".12"),f(a,"stroke-width",".5"),f(a,"d","m7.908 19.245-.181-.173c1.146-1.206 2.714-2.248 4.49-3.137a1.75 1.75 0 1 1 1.566 3.13c-1.57.786-2.752 1.61-3.519 2.418-.762.802-1.014 1.474-1.014 2.017 0 .713.357 1.583 1.483 2.567 1.136.993 2.93 1.978 5.43 2.843 4.99 1.726 12.403 2.84 21.837 2.84h.275l-1.012-1.013a1.75 1.75 0 1 1 2.474-2.474l4 3.998h0l.012.013s0 0 0 0c.162.165.284.354.368.556q0 0 0 0l-.23.096A1.5 1.5 0 0 1 44 33.5q-.002.306-.113.573L7.907 19.245Zm0 0-.181-.173C6.576 20.284 5.75 21.775 5.75 23.5c0 2.04 1.07 3.796 2.68 5.202 1.599 1.398 3.85 2.569 6.589 3.516C20.506 34.116 28.343 35.25 38 35.25h.275zm29.824-6.82c-.3 0-.63.018-.965.063l2.244-3.247c.728-1.054-.026-2.491-1.306-2.491-.524 0-1.014.258-1.31.69l-3.752 5.468h0l-.002.003c-1.442 2.17-1.879 3.905-1.879 5.415 0 1.8.665 3.288 1.815 4.324 1.147 1.033 2.757 1.6 4.62 1.6 3.727 0 6.413-2.488 6.413-6.018 0-3.377-2.464-5.807-5.878-5.807m25.779.825c2.07 0 3.739-1.67 3.739-3.761 0-2.07-1.67-3.739-3.739-3.739a3.74 3.74 0 0 0-3.761 3.739 3.743 3.743 0 0 0 3.761 3.761m0-2.497a1.267 1.267 0 0 1-1.264-1.264c0-.671.566-1.242 1.264-1.242.674 0 1.242.568 1.242 1.242 0 .698-.57 1.264-1.242 1.264m-33.634 8.323c0-2.043-1.139-3.272-2.388-3.895 1.208-.629 2.155-1.846 2.155-3.609 0-2.82-2.357-4.822-5.575-4.822-2.04 0-3.724.818-4.871 2.392l-.109.149a1.583 1.583 0 0 0 .32 2.203c.635.476 1.542.411 2.074-.197.09-.103.17-.198.219-.264.553-.755 1.318-1.204 2.297-1.204.72 0 1.309.214 1.715.564.403.347.64.84.64 1.437 0 .608-.242 1.107-.653 1.457-.415.353-1.017.568-1.748.568h-.583a1.481 1.481 0 0 0 0 2.962h.583c.826 0 1.493.233 1.948.61.451.375.709.902.709 1.532 0 .654-.265 1.2-.718 1.586-.455.388-1.116.626-1.916.626-.61 0-1.117-.13-1.548-.375s-.801-.614-1.125-1.114a11 11 0 0 0-.206-.296 1.653 1.653 0 0 0-2.417-.292c-.577.49-.774 1.335-.356 2.004.075.119.152.236.23.339.704.945 1.462 1.652 2.352 2.121.892.47 1.9.692 3.094.692 3.383 0 5.877-2.121 5.877-5.174m7.32 2.095c-.934 0-1.7-.299-2.232-.8-.53-.5-.843-1.217-.843-2.092 0-.863.313-1.581.844-2.085s1.298-.807 2.232-.807c.92 0 1.682.303 2.21.807.529.503.842 1.222.842 2.085 0 .875-.314 1.593-.84 2.093-.53.5-1.29.799-2.212.799Zm14.176 3.032c2.044 0 3.772-.887 4.983-2.425 1.208-1.534 1.894-3.703 1.894-6.266s-.686-4.732-1.894-6.266c-1.211-1.539-2.94-2.426-4.983-2.426-2.044 0-3.773.887-4.984 2.426-1.208 1.534-1.894 3.703-1.894 6.266s.686 4.732 1.894 6.266c1.211 1.538 2.94 2.425 4.984 2.425m0-3.08c-1.017 0-1.874-.518-2.487-1.478-.618-.968-.984-2.382-.984-4.133 0-1.752.366-3.166.984-4.133.613-.96 1.47-1.48 2.487-1.48s1.873.52 2.486 1.48c.618.967.984 2.381.984 4.133 0 1.751-.366 3.165-.984 4.133-.613.96-1.47 1.479-2.486 1.479Zm11.312-2.075c2.975 1.567 4.065 3.279 4.065 4.452 0 1.148-.983 2.756-4.259 4.347-3.16 1.536-7.937 2.773-14.17 3.412a1.75 1.75 0 0 0 .358 3.482c6.45-.662 11.673-1.963 15.342-3.746 3.551-1.725 6.229-4.216 6.229-7.495 0-3.213-2.661-5.825-5.935-7.548a1.75 1.75 0 1 0-1.63 3.096"),f(t,"filter","url(#a)"),f(c,"flood-opacity","0"),f(c,"result","BackgroundImageFix"),f(m,"in","SourceAlpha"),f(m,"result","hardAlpha"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(k,"stdDeviation","2.5"),f(g,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(w,"in2","BackgroundImageFix"),f(w,"result","effect1_dropShadow_618_12297"),f(y,"in","SourceGraphic"),f(y,"in2","effect1_dropShadow_618_12297"),f(y,"result","shape"),f(u,"id","a"),f(u,"width","75"),f(u,"height","44"),f(u,"x",".5"),f(u,"y",".5"),f(u,"color-interpolation-filters","sRGB"),f(u,"filterUnits","userSpaceOnUse"),be(e,N)},m(M,O){S(M,e,O),b&&b.m(e,null),p(e,t),p(t,n),p(t,o),p(t,r),p(t,l),p(t,a),p(e,s),p(s,u),p(u,c),p(u,m),p(u,h),p(u,k),p(u,g),p(u,w),p(u,y),P=!0},p(M,[O]){b&&b.p&&(!P||O&2)&&Me(b,v,M,M[1],P?Ae(v,M[1],O,null):Ve(M[1]),null),be(e,N=Re(I,[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},O&1&&M[0]]))},i(M){P||(d(b,M),P=!0)},o(M){_(b,M),P=!1},d(M){M&&C(e),b&&b.d(M)}}}function v2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Ws=class extends j{constructor(e){super(),G(this,e,v2,b2,K,{})}},hr=Ws;var cl=require("@vkontakte/videoplayer-shared");var y2={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"},Hc=y2;var w2={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"},zc=w2;var ao=new Map;ao.set(cl.InterfaceLanguage.EN,zc);ao.set(cl.InterfaceLanguage.RU,Hc);var Uc=new Map,Gs=({language:i,pack:e,fallback:t})=>{if(ao.has(i)){let n=ao.get(i);ao.set(i,at(at({},n),e))}else ao.set(i,e);Uc.set(i,t)},Qs=i=>ao.has(i),Ys=(i,e,t,n)=>{var l;let o=ao.get(i),r=o==null?void 0:o[e];if((0,cl.isNullable)(r)){let a=(l=Uc.get(i))!=null?l:n,s=a?ao.get(a):void 0;r=s==null?void 0:s[e]}return(0,cl.isNullable)(r)?e+Object.values(t!=null?t:{}).join(" "):t?r.replaceAll(/{(\w+?)}/g,(a,s)=>{var u;return(u=t[s])!=null?u:""}):r},W=(i,e)=>{let{interfaceLanguage$:t}=lt(),n=it(t),o=Qt();return Ys(n,i,e,o.defaultLanguage)};var W9=require("@vkontakte/videoplayer-core");var dl;(function(i){i.fatal="fatal",i.error="error",i.warning="warning",i.log="log",i.info="info",i.debug="debug",i.critical="critical"})(dl||(dl={}));var k2=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,C2=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,S2=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,gr="?",T2="X-Sentry-Auth",P2=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function I2(i){if(!i.stack)return null;let e=[],t=i.stack.split(`
13
+ `),n,o;for(let r=0;r<t.length;++r){if(n=k2.exec(t[r]))o={filename:n[2]&&n[2].indexOf("address at ")===0?n[2].substr(11):n[2],function:n[1]||gr,lineno:n[3]?+n[3]:null,colno:n[4]?+n[4]:null};else if(n=S2.exec(t[r]))o={filename:n[2],function:n[1]||gr,lineno:+n[3],colno:n[4]?+n[4]:null};else if(n=C2.exec(t[r]))r===0&&!n[5]&&i.columnNumber!==void 0&&(e[0].column=i.columnNumber+1),o={filename:n[3],function:n[1]||gr,lineno:n[4]?+n[4]:null,colno:n[5]?+n[5]:null};else continue;!o.function&&o.lineno&&(o.function=gr),e.push(o)}return e.length?{value:Kc(i),type:i.name,stacktrace:{frames:e.reverse()}}:null}function Kc(i){return(i&&i.message||"No error message").split(`
14
+ `).filter(t=>!!t)[0]}function E2(i){try{let e=I2(i);if(e)return e}catch(e){}return{value:Kc(i),type:i&&i.name,stacktrace:{frames:[]}}}function A2(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,i=>{let e=Math.random()*16|0;return(i==="x"?e:e&3|8).toString(16)})}var br=class{constructor(e){if(e&&e.dsn){let t=P2.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 Dt(at({},this.getRequestBlank()),{exception:{values:[E2(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(T2,this.authHeader||""),t.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:A2(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function jc(i,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(i):typeof e=="string"?i.indexOf(e)!==-1:!1}function M2(){return window}var vr=class i extends br{constructor(e,t=M2()){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",at({},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",at({},e)),this}setUser(e){return this.setKeyState("user",at({},e)),this}clone(){let e=new i(Dt(at({},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:[at({timestamp:Date.now()/1e3},this.beforeBreadcrumb(e))]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,t){this.send(Dt(at({},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=>jc(t,n))):!1}getRequestBlank(){return at(Dt(at({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(at({release:this.release},e))),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:t="",value:n=""}=e.exception.values&&e.exception.values[0]||{};return[`${n}`,`${t}: ${n}`]}catch(t){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let t=this.getEventFilterUrl(e);return t?this.blacklistUrls.some(n=>jc(t,n)):!1}getEventFilterUrl(e){try{if(e.exception){let t=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return t&&t[t.length-1].filename||null}return null}catch(t){return null}}extendState(e){this._state=Object.keys(e).reduce((t,n)=>{let o=this._state[n],r=Array.isArray(o)?o:null,l=e[n],a=Array.isArray(l)?l:null;return Dt(at({},t),{[n]:r||a?[...r||[],...a||[]]:at(at({},typeof o!="string"?o:{}),typeof l!="string"?l:{})})},this._state)}setKeyState(e,t){this._state[e]=t}};var zo=require("@vkontakte/videoplayer-shared");var yr=null,Uo=class{constructor(e,t,n={}){!yr&&e.dsn&&(this.sentryClient=new vr({dsn:e.dsn,environment:t.env}),this.version=t.version,this.sentrySubscription=new zo.Subscription,this.options=e,this.context=n,yr=this)}destroy(){var e,t;(e=this.sentryClient)==null||e.destroy(),(t=this.sentrySubscription)==null||t.unsubscribe(),yr=null}logIError(e,t=!1){e.thrown&&this.report(e.thrown,{fatal:t,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,t={},n={}){let{sentryClient:o,context:r,options:l}=this,{sampleRate:a=0,whiteErrorIdList:s,whiteErrorCategoryList:u=[],blackErrorIdList:c,blackErrorCategoryList:m}=l,{errorType:h,category:k}=t;if((0,zo.isNonNullable)(k)&&m.includes(k)||(0,zo.isNonNullable)(h)&&c.includes(h))return;if(Math.random()<=a||(0,zo.isNonNullable)(k)&&u.includes(k)||(0,zo.isNonNullable)(h)&&s.includes(h)){Object.keys(t).length&&o.setTags(at({version:this.version},t)),(Object.keys(r).length||Object.keys(n).length)&&o.setExtras(at(at({},r),n));try{h&&o.captureMessage(h,t.fatal?dl.fatal:dl.error),o.report(e)}catch(w){console.error(w)}}}static getInstance(){return yr}};var wr=i=>{if(i.requestFullscreen)return i.requestFullscreen();if(i.msRequestFullscreen)return i.msRequestFullscreen();if(i.webkitRequestFullscreen)return i.webkitRequestFullscreen();if(i.mozRequestFullScreen)return i.mozRequestFullScreen();let e=i.querySelector("video");return e!=null&&e.webkitEnterFullscreen?e.webkitEnterFullscreen():Promise.reject()},kr=i=>i.exitFullscreen?i.exitFullscreen():i.msExitFullscreen?i.msExitFullscreen():i.webkitExitFullscreen?i.webkitExitFullscreen():i.mozCancelFullScreen?i.mozCancelFullScreen():Promise.reject(),Wc=i=>{let e=i;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},Kl=()=>{let i=document;return i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement||i.msFullscreenElement},vo=()=>!!Kl(),Cr=i=>{document.addEventListener("fullscreenchange",i),document.addEventListener("webkitfullscreenchange",i),document.addEventListener("mozfullscreenchange",i),document.addEventListener("MSFullscreenChange",i)},Sr=i=>{document.removeEventListener("fullscreenchange",i),document.removeEventListener("webkitfullscreenchange",i),document.removeEventListener("mozfullscreenchange",i),document.removeEventListener("MSFullscreenChange",i)},Gc=i=>{let e=window.screen;return(o=>ft(void 0,null,function*(){return e.orientation?e.orientation.lock(o):e.mozLockOrientation?e.mozLockOrientation(o):e.msLockOrientation?e.msLockOrientation(o):Promise.reject()}))(((o={width:0,height:0})=>o.width<=o.height?"portrait":"landscape")(i))};var Zs=require("@vkontakte/videoplayer-shared"),Qc=()=>({title:W("hotkey_map_modal_title"),closeBtnText:W("hotkey_map_modal_close_btn_text"),groups:[{title:W("hotkey_map_group_title_common"),items:[{description:W("hotkey_map_item_mute_description"),value:W("hotkey_map_item_mute_value")},{description:W("hotkey_map_item_volume_up_description"),value:W("hotkey_map_item_volume_up_value")},{description:W("hotkey_map_item_volume_down_description"),value:W("hotkey_map_item_volume_down_value")},{description:W("hotkey_map_item_pip_description"),value:W("hotkey_map_item_pip_value")},{description:W("hotkey_map_item_full_screen_description"),value:W("hotkey_map_item_full_screen_value")},{description:W("hotkey_map_item_show_context_menu_description"),value:W("hotkey_map_item_show_context_menu_value")},{description:W("hotkey_map_item_show_hotkey_map_description"),value:W("hotkey_map_item_show_hotkey_map_value")}]},{title:W("hotkey_map_group_title_playback"),items:[{description:W("hotkey_map_item_play_toggle_description"),value:W("hotkey_map_item_play_toggle_value")},{description:W("hotkey_map_item_seek_backward_description"),value:W("hotkey_map_item_seek_backward_value")},{description:W("hotkey_map_item_seek_forward_description"),value:W("hotkey_map_item_seek_forward_value")},{description:W("hotkey_map_item_fast_seek_backward_description"),value:W("hotkey_map_item_fast_seek_backward_value")},{description:W("hotkey_map_item_fast_seek_forward_description"),value:W("hotkey_map_item_fast_seek_forward_value")},{description:W("hotkey_map_item_rate_down_description"),value:W("hotkey_map_item_rate_down_value")},{description:W("hotkey_map_item_rate_up_description"),value:W("hotkey_map_item_rate_up_value")},{description:W("hotkey_map_item_prev_frame_description"),value:W("hotkey_map_item_prev_frame_value")},{description:W("hotkey_map_item_next_frame_description"),value:W("hotkey_map_item_next_frame_value")},{description:W("hotkey_map_item_jump_seek_description"),value:W("hotkey_map_item_jump_seek_value")}]},{title:W("hotkey_map_group_title_subtitles"),items:[{description:W("hotkey_map_item_subtitles_toggle_description"),value:W("hotkey_map_item_subtitles_toggle_value")}]},{title:W("hotkey_map_group_title_episodes"),items:[{description:W("hotkey_map_item_prev_episode_description"),value:(0,Zs.isMacLike)()?W("hotkey_map_item_prev_episode_mac_value"):W("hotkey_map_item_prev_episode_pc_value")},{description:W("hotkey_map_item_next_episode_description"),value:(0,Zs.isMacLike)()?W("hotkey_map_item_next_episode_mac_value"):W("hotkey_map_item_next_episode_pc_value")}]}]});var yo=require("@vkontakte/videoplayer-shared");var Ko=class{constructor(){this.isRequested=!1;this.videoElement=void 0;this.playerContainer=void 0;this.externalEventHandlers={};this.eventHandlers={enterpictureinpicture:this.onEnterPictureInPicture.bind(this),leavepictureinpicture:this.onLeavePictureInPicture.bind(this),resize:(0,yo.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new yo.ValueSubject(this.isActive()),type:0}}isSupported(){let e=(0,yo.getCurrentBrowser)().browser===yo.CurrentClientBrowser.Yandex;return document.pictureInPictureEnabled&&!e}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}setContext(e){this.svelteContext=e}revealPictureInPicture(){return ft(this,null,function*(){this.isRequested&&(this.unregistryEventHandlers(),yield this.request(),this.registryEventHandlers())})}request(){return ft(this,null,function*(){var e;if(!(!this.isSupported()||this.isActive()))try{yield(e=this.videoElement)==null?void 0:e.requestPictureInPicture()}catch(t){this.isRequested=!1}})}remove(){return ft(this,null,function*(){!this.isSupported()||!this.isActive()||(yield document.exitPictureInPicture())})}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){var e;this.isSupported()&&(this.videoElement=(e=this.playerContainer)==null?void 0:e.querySelector("video"))}registryEventHandlers(){var e,t;(e=this.videoElement)==null||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(t=this.videoElement)==null||t.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}registryExternalEventHandlers(e){this.externalEventHandlers=at({},e)}unregistryEventHandlers(){var e,t;(e=this.videoElement)==null||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(t=this.videoElement)==null||t.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}dispose(){return ft(this,null,function*(){this.unregistryEventHandlers(),yield this.remove()})}onEnterPictureInPicture(e){var o,r;let n=e.pictureInPictureWindow;n&&(this.info.isActive$.next(!0),this.isRequested=!0,n.addEventListener("resize",this.eventHandlers.resize),(r=(o=this.externalEventHandlers).enterpictureinpicture)==null||r.call(o,e))}onLeavePictureInPicture(e){var o,r,l;let n=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,n==null||n.removeEventListener("resize",this.eventHandlers.resize),(r=(o=this.externalEventHandlers).leavepictureinpicture)==null||r.call(o,e),(l=this.playerDummyElement)==null||l.$destroy()}onResize(e){var t,n;(n=(t=this.externalEventHandlers).resize)==null||n.call(t,e)}};function jo(i){return i instanceof Ko}function V2(i){let e=lt();return Ft(()=>{e.getAdmanWrapper().startPostroll()}),[]}var xs=class extends j{constructor(e){super(),G(this,e,V2,null,K,{})}},Yc=xs;var Zc=require("@vkontakte/videoplayer-shared");function L2(i){Te(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 R2(i){let e=W("skip_ads_after",{time:Math.ceil(i[1]-i[0]).toFixed(0)})+"",t;return{c(){t=Le(e)},m(n,o){S(n,t,o)},p(n,o){o&3&&e!==(e=W("skip_ads_after",{time:Math.ceil(n[1]-n[0]).toFixed(0)})+"")&&Ye(t,e)},d(n){n&&C(t)}}}function B2(i){let e,t=W("skip_ads_now")+"",n,o,r,l,a,s;return{c(){e=T("div"),n=Le(t),o=q(),r=D("svg"),l=D("path"),f(l,"fill-rule","evenodd"),f(l,"clip-rule","evenodd"),f(l,"d","M0.263627 0.263605C-0.0878444 0.615078 -0.0878429 1.18493 0.26363 1.5364L4.72723 5.99998L0.263627 10.4636C-0.0878444 10.8151 -0.0878429 11.3849 0.26363 11.7364C0.615103 12.0879 1.18495 12.0879 1.53642 11.7364L6.63642 6.63637C6.98789 6.2849 6.98789 5.71505 6.63642 5.36358L1.53642 0.263602C1.18495 -0.0878686 0.615098 -0.0878673 0.263627 0.263605Z"),f(r,"class","icon svelte-1k4i25s"),f(r,"width","7"),f(r,"height","12"),f(r,"viewBox","0 0 7 12"),f(r,"fill","none"),f(r,"xmlns","http://www.w3.org/2000/svg"),f(e,"class","skip svelte-1k4i25s")},m(u,c){S(u,e,c),p(e,n),p(e,o),p(e,r),p(r,l),a||(s=de(e,"click",ut(function(){Vi(i[2])&&i[2].apply(this,arguments)})),a=!0)},p(u,c){i=u},d(u){u&&C(e),a=!1,s()}}}function D2(i){let e;function t(r,l){return r[3]?B2:R2}let n=t(i,-1),o=n(i);return{c(){e=T("div"),o.c(),f(e,"class","container svelte-1k4i25s"),F(e,"container-mobile",i[4]),F(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&&F(e,"container-mobile",r[4]),l&8&&F(e,"skippable",r[3])},i:_e,o:_e,d(r){r&&C(e),o.d()}}}function N2(i,e,t){let n,{position:o=0}=e,{secondsToWatchBeforeSkip:r=0}=e,{skipAd:l=Zc.noop}=e,s=lt().ui.isMobile;H(i,s,c=>t(4,n=c));let u;return i.$$set=c=>{"position"in c&&t(0,o=c.position),"secondsToWatchBeforeSkip"in c&&t(1,r=c.secondsToWatchBeforeSkip),"skipAd"in c&&t(2,l=c.skipAd)},i.$$.update=()=>{if(i.$$.dirty&3)e:t(3,u=o>0&&o>=r)},[o,r,l,u,n,s]}var $s=class extends j{constructor(e){super(),G(this,e,N2,D2,K,{position:0,secondsToWatchBeforeSkip:1,skipAd:2},L2)}},Xc=$s;function q2(i){Te(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 O2(i){let e;return{c(){e=T("button"),e.textContent=`${W("visit_advertiser")}`,f(e,"class","svelte-1wy3dql")},m(t,n){S(t,e,n)},p:_e,i:_e,o:_e,d(t){t&&C(e)}}}var ea=class extends j{constructor(e){super(),G(this,e,null,O2,K,{},q2)}},Jc=ea;function F2(i){Te(i,"svelte-354ajf",`.container.svelte-354ajf{width:100%;height:100%}.top-gradient-mobile.svelte-354ajf{position:absolute;width:100%;height:80px;top:0;left:0;pointer-events:none;background:linear-gradient(
15
15
  360deg,
16
16
  rgba(0, 0, 0, 0) 0%,
17
17
  rgba(0, 0, 0, 0.05) 12%,
@@ -21,17 +21,17 @@
21
21
  rgba(0, 0, 0, 0.5) 77%,
22
22
  rgba(0, 0, 0, 0.55) 88%,
23
23
  rgba(0, 0, 0, 0.65) 100%
24
- )}`)}function Jc(i){let e;return{c(){e=T("div"),f(e,"class","top-gradient-mobile svelte-354ajf")},m(t,n){S(t,e,n)},d(t){t&&C(e)}}}function xc(i){let e,t;return e=new Zc({props:{position:i[5],secondsToWatchBeforeSkip:i[6],skipAd:i[8].actions.internal.skipAd}}),{c(){N(e.$$.fragment)},m(n,o){B(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){D(e,n)}}}function $c(i){let e,t;return e=new Qc({}),{c(){N(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function e1(i){let e,t;return e=new Xc({}),{c(){N(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Kh(i){let e,t,n,o,r,l,a,s=i[0]&&Jc(i),u=i[3]&&xc(i),c=i[7]&&$c(i),m=i[4]&&e1(i);return{c(){e=T("div"),s&&s.c(),t=O(),n=T("video"),o=O(),u&&u.c(),r=O(),c&&c.c(),l=O(),m&&m.c(),ki(n,"width","100%"),ki(n,"height","100%"),n.playsInline=!0,f(e,"class","container svelte-354ajf")},m(h,w){S(h,e,w),s&&s.m(e,null),p(e,t),p(e,n),i[19](n),p(e,o),u&&u.m(e,null),p(e,r),c&&c.m(e,null),p(e,l),m&&m.m(e,null),i[20](e),a=!0},p(h,[w]){h[0]?s||(s=Jc(h),s.c(),s.m(e,t)):s&&(s.d(1),s=null),h[3]?u?(u.p(h,w),w&8&&d(u,1)):(u=xc(h),u.c(),d(u,1),u.m(e,r)):u&&(ue(),_(u,1,1,()=>{u=null}),fe()),h[7]?c?w&128&&d(c,1):(c=$c(h),c.c(),d(c,1),c.m(e,l)):c&&(ue(),_(c,1,1,()=>{c=null}),fe()),h[4]?m?w&16&&d(m,1):(m=e1(h),m.c(),d(m,1),m.m(e,null)):m&&(ue(),_(m,1,1,()=>{m=null}),fe())},i(h){a||(d(u),d(c),d(m),a=!0)},o(h){_(u),_(c),_(m),a=!1},d(h){h&&C(e),s&&s.d(),i[19](null),u&&u.d(),c&&c.d(),m&&m.d(),i[20](null)}}}function jh(i,e,t){let n,o,r,l,a,{adsSlotId:s=void 0}=e,{adsParams:u=void 0}=e,{adsPreviewParam:c=void 0}=e,{duration:m=0}=e,h=st(),w=h.state.isEnded$;z(i,w,Y=>t(7,a=Y));let g=h.ui.isMobile;z(i,g,Y=>t(0,o=Y));let k,y,I=!1,v=h.ads.playbackState;z(i,v,Y=>t(18,n=Y));let b=h.ads.canSkip,E=h.ads.position;z(i,E,Y=>t(5,r=Y));let A=h.ads.secondsToWatchBeforeSkip;z(i,A,Y=>t(6,l=Y));let L,R;Ot(()=>{let Y=new AbortController,V=()=>{Y.abort()},ee=h.getAdmanWrapper();if(!s){ee.onAdmanLoadingError();return}let{width:X,height:se}=tt(h.ui.playerSize),F=tt(h.ui.isFullscreen),ne=tt(h.ui.isAutoplay),P={width:X,height:se,isFullscreen:F,isAutoplay:ne,adsContainer:k,adsVideoElement:y,slotId:s,params:u,previewParam:c,duration:m};return window.AdmanHTML?(ee.initAdman(P),I=!0):ee.loadAdman(Y.signal).then(()=>{ee.initAdman(P),I=!0}).catch(()=>{ee.onAdmanLoadingError()}),()=>{!I&&V()}});function le(Y){pe[Y?"unshift":"push"](()=>{y=Y,t(2,y)})}function ae(Y){pe[Y?"unshift":"push"](()=>{k=Y,t(1,k)})}return i.$$set=Y=>{"adsSlotId"in Y&&t(14,s=Y.adsSlotId),"adsParams"in Y&&t(15,u=Y.adsParams),"adsPreviewParam"in Y&&t(16,c=Y.adsPreviewParam),"duration"in Y&&t(17,m=Y.duration)},i.$$.update=()=>{if(i.$$.dirty&262144)e:t(3,L=b&&n!=="inactive");if(i.$$.dirty&262145)e:t(4,R=o&&n!=="inactive")},[o,k,y,L,R,r,l,a,h,w,g,v,E,A,s,u,c,m,n,le,ae]}var $s=class extends W{constructor(e){super(),Q(this,e,jh,Kh,j,{adsSlotId:14,adsParams:15,adsPreviewParam:16,duration:17},Uh)}},Cr=$s;var zn=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 Wh(i){let e,t,n,o,r=i[2].default,l=Ie(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=re(s,a[u]);return{c(){e=q("svg"),l&&l.c(),t=q("path"),n=q("path"),f(t,"fill","none"),f(t,"stroke","#fff"),f(t,"stroke-width","2"),f(t,"d","M6.41 1A6.46 6.46 0 0 0 3 1.55 3.5 3.5 0 0 0 1.55 3 6.46 6.46 0 0 0 1 6.41v7.18A6.46 6.46 0 0 0 1.55 17 3.5 3.5 0 0 0 3 18.45a6.46 6.46 0 0 0 3.41.55h29.18a6.46 6.46 0 0 0 3.41-.55A3.5 3.5 0 0 0 40.45 17a6.46 6.46 0 0 0 .55-3.41V6.41A6.46 6.46 0 0 0 40.45 3 3.5 3.5 0 0 0 39 1.55 6.46 6.46 0 0 0 35.59 1z"),f(n,"fill","#f0f2f5"),f(n,"fill-rule","evenodd"),f(n,"d","M8 5a1 1 0 0 1 1 1v7h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-.77v-.11A.5.5 0 0 1 7 14V6a1 1 0 0 1 .88-1zm8 0a1 1 0 0 1 1 1v8a1 1 0 0 1-.88 1H16a1 1 0 0 1-1-1V6a1 1 0 0 1 .88-1zm18 0a1 1 0 0 1 1 .88V6a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V10a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-.77v-.11a.5.5 0 0 1 0-.12V6a1 1 0 0 1 .56-.9A1 1 0 0 1 30 5zm-8 0a1 1 0 0 1 1 1v.1a.9.9 0 0 1-.11.35l-2.47 7.57a1.48 1.48 0 0 1-1.32.98h-.2a1.48 1.48 0 0 1-1.31-.95l-2.47-7.57a.9.9 0 0 1-.12-.36V6a1 1 0 0 1 .88-1H20a1 1 0 0 1 1 1v-.1l2 6.4 2-6.4a1 1 0 0 1 1-.9"),be(e,s)},m(u,c){S(u,e,c),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[c]){l&&l.p&&(!o||c&2)&&Ae(l,r,u,u[1],o?Ee(r,u[1],c,null):Me(u[1]),null),be(e,s=Le(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{"aria-hidden":"true"},{"data-testid":"live-icon"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&C(e),l&&l.d(u)}}}function Gh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var ea=class extends W{constructor(e){super(),Q(this,e,Gh,Wh,j,{})}},t1=ea;function Qh(i){let e,t,n,o,r=i[2].default,l=Ie(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=re(s,a[u]);return{c(){e=q("svg"),l&&l.c(),t=q("rect"),n=q("path"),f(t,"width","42"),f(t,"height","20"),f(t,"fill","#FF3347"),f(t,"rx","5"),f(n,"fill","#F2F3F5"),f(n,"fill-rule","evenodd"),f(n,"d","M8 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2H9V6a1 1 0 0 0-1-1m7 1a1 1 0 1 1 2 0v8a1 1 0 1 1-2 0zm15-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2h-3v-2h3a1 1 0 1 0 0-2h-3V7h3a1 1 0 1 0 0-2zm-8.325 9.31-2.55-7.824a1 1 0 0 1-.117-.363L19 6.1h.005a1 1 0 1 1 1.99-.199L21 5.9l2 6.4 2-6.4h.005a1 1 0 0 1 1.99.2H27l-.008.023a1 1 0 0 1-.118.363l-2.55 7.824a1 1 0 0 1-.95.69h-.748a1 1 0 0 1-.95-.69z"),f(n,"clip-rule","evenodd"),be(e,s)},m(u,c){S(u,e,c),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[c]){l&&l.p&&(!o||c&2)&&Ae(l,r,u,u[1],o?Ee(r,u[1],c,null):Me(u[1]),null),be(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"},c&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 Yh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var ta=class extends W{constructor(e){super(),Q(this,e,Yh,Qh,j,{})}},i1=ta;function Zh(i){let e,t;return e=new t1({}),{c(){N(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Xh(i){let e,t;return e=new i1({}),{c(){N(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Jh(i){let e,t,n,o,r=[Xh,Zh],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=dt()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let c=e;e=a(s,u),e!==c&&(ue(),_(l[c],1,1,()=>{l[c]=null}),fe(),t=l[e],t||(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&C(n),l[e].d(s)}}}function xh(i,e,t){let{isActive:n=!1}=e;return i.$$set=o=>{"isActive"in o&&t(0,n=o.isActive)},[n]}var ia=class extends W{constructor(e){super(),Q(this,e,xh,Jh,j,{isActive:0})}},Sr=ia;function $h(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 e2(i){let e=zn(i[4]-i[3])+"",t;return{c(){t=Ve(e)},m(n,o){S(n,t,o)},p(n,o){o&24&&e!==(e=zn(n[4]-n[3])+"")&&Ye(t,e)},i:he,o:he,d(n){n&&C(t)}}}function t2(i){let e,t,n;return t=new Sr({props:{isActive:!0}}),{c(){e=T("div"),N(t.$$.fragment),f(e,"class","thumb-timer-live-icon svelte-7pnl2h")},m(o,r){S(o,e,r),B(t,e,null),n=!0},p:he,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&C(e),D(t)}}}function i2(i){let e,t,n,o,r,l,a,s=[t2,e2],u=[];function c(m,h){return m[1]?0:1}return r=c(i,-1),l=u[r]=s[r](i),{c(){e=T("div"),t=T("div"),t.innerHTML='<div class="col svelte-7pnl2h"></div> <div class="col svelte-7pnl2h"></div> <div class="col svelte-7pnl2h"></div>',n=O(),o=T("span"),l.c(),f(t,"class","thumb-timer-equalizer svelte-7pnl2h"),f(o,"class","thumb-timer-text svelte-7pnl2h"),f(e,"role","timer"),f(e,"class","thumb-timer svelte-7pnl2h"),f(e,"data-testid","thumb-timer"),H(e,"live",i[1]),H(e,"hidden",i[0]),H(e,"playing",i[2])},m(m,h){S(m,e,h),p(e,t),p(e,n),p(e,o),u[r].m(o,null),a=!0},p(m,[h]){let w=r;r=c(m,h),r===w?u[r].p(m,h):(ue(),_(u[w],1,1,()=>{u[w]=null}),fe(),l=u[r],l?l.p(m,h):(l=u[r]=s[r](m),l.c()),d(l,1),l.m(o,null)),(!a||h&2)&&H(e,"live",m[1]),(!a||h&1)&&H(e,"hidden",m[0]),(!a||h&4)&&H(e,"playing",m[2])},i(m){a||(d(l),a=!0)},o(m){_(l),a=!1},d(m){m&&C(e),u[r].d()}}}function n2(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 na=class extends W{constructor(e){super(),Q(this,e,n2,i2,j,{isHidden:0,isLive:1,isPlaying:2,position:3,duration:4},$h)}},Tr=na;var _l=i=>{if(document.queryCommandSupported&&document.queryCommandSupported("copy")){let e=document.createElement("textarea");e.textContent=i,e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e),e.select();try{document.execCommand("copy")}finally{document.body.removeChild(e)}}};var oa=require("@vkontakte/videoplayer-core");var o1=require("@vkontakte/videoplayer-shared");var o2=(0,o1.isAndroid)(),Zo=i=>{i.stopPropagation(),i.preventDefault()},l2=i=>{var t;let e=i.previousElementSibling;e||(e=(t=i.parentNode)==null?void 0:t.lastElementChild),e==null||e.focus()},r2=i=>{var t;let e=i.nextElementSibling;e||(e=(t=i.parentNode)==null?void 0:t.firstElementChild),e==null||e.focus()},s2=i=>{let e=i.code;return e==="Tab"&&!i.shiftKey||e==="ArrowDown"},a2=i=>{let e=i.code;return e==="Tab"||e==="ArrowUp"},l1=i=>i.code==="Escape",u2=i=>i.code==="ArrowLeft",r1=(i,e=!0)=>{let t=i.code;return["Enter","Space"].includes(t)||!e&&t==="ArrowRight"},s1=i=>{if(s2(i)){Zo(i),r2(i.target);return}a2(i)&&(Zo(i),l2(i.target))},gl=i=>(i==null?void 0:i.detail)===0||o2&&(i==null?void 0:i.pointerType)==="",bl=(i,e,t)=>ct(void 0,null,function*(){yield Xn(),i&&!i.classList.contains("opened")&&!e&&tt(t)&&(yield Xn(),t.set(!1),i.focus())}),a1=(i,e,t)=>ct(void 0,null,function*(){yield Xn(),i&&!e&&tt(t)&&(t.set(!1),i.focus())}),Xo=(i,e,t)=>ct(void 0,null,function*(){yield Xn(),!!i&&e&&t&&setTimeout(()=>{i.firstChild.focus()},100)}),vl=(i,e,t)=>ct(void 0,null,function*(){!!i&&t&&(e.set(!1),setTimeout(()=>{i.focus()},100))}),Pr=(i,e)=>{s1(i),l1(i)&&(Zo(i),e())},yl=(i,e,t)=>ct(void 0,null,function*(){if(r1(i,!1)){Zo(i),e(),yield Xn();let n=t();n==null||n.focus()}}),wl=(i,e,t,n)=>ct(void 0,null,function*(){if(s1(i),u2(i)){Zo(i),e(),t.set(!0);return}l1(i)&&(Zo(i),n())}),Ci=(i,e)=>{r1(i)&&(Zo(i),e())},u1=i=>{let e=i.getBoundingClientRect(),t=-14,n=e.left+e.width,o=e.top+t;return{right:n,bottom:o}},f1=i=>{if(!i)return{top:0,left:0};let e=i.getBoundingClientRect(),t=-58,n=8,o=e.left+n;return{bottom:e.bottom+t,left:o}};var jl=require("@vkontakte/videoplayer-shared");function f2(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 c1(i){var X;let e,t,n,o,r,l,a,s,u,c,m=(i[10].features.saveDebugInfoToFile?G("menu_save_debug"):G("menu_copy_debug"))+"",h,w,g,k,y=G("menu_debug_overlay")+"",I,v,b,E,A=i[10].features.copyVideoLink&&((X=i[9].callbacks)==null?void 0:X.onCopyVideoLink)&&c2(i),L=i[19]&&d2(i),R=i[12]&&i[6]!==oa.ChromecastState.CONNECTED&&!i[17]&&m1(i);function le(se,F){return se[4]?p2:m2}let ae=le(i,[-1,-1]),Y=ae(i),V=i[10].features.videoRotate&&!i[17]&&_2(i),ee=i[10].showSupport&&!i[7]&&p1(i);return{c(){e=T("ul"),A&&A.c(),t=O(),L&&L.c(),n=O(),R&&R.c(),o=O(),r=T("li"),Y.c(),a=O(),V&&V.c(),s=O(),ee&&ee.c(),u=O(),c=T("li"),h=Ve(m),g=O(),k=T("li"),I=Ve(y),f(r,"tabindex","0"),f(r,"role","menuitem"),f(r,"aria-label",l=G("aria_label_menu_loop")),f(r,"class","svelte-1vzqlps"),f(c,"tabindex","0"),f(c,"role","menuitem"),f(c,"aria-label",w=i[10].features.saveDebugInfoToFile?G("menu_save_debug"):G("menu_copy_debug")),f(c,"class","svelte-1vzqlps"),f(k,"tabindex","0"),f(k,"role","menuitem"),f(k,"aria-label",v=i[8]?G("aria_label_menu_debug_overlay_disable"):G("aria_label_menu_debug_overlay_enable")),f(k,"class","svelte-1vzqlps"),f(e,"role","menu"),ki(e,"top",i[3]+"px"),ki(e,"left",i[2]+"px"),f(e,"class","svelte-1vzqlps")},m(se,F){S(se,e,F),A&&A.m(e,null),p(e,t),L&&L.m(e,null),p(e,n),R&&R.m(e,null),p(e,o),p(e,r),Y.m(r,null),p(e,a),V&&V.m(e,null),p(e,s),ee&&ee.m(e,null),p(e,u),p(e,c),p(c,h),p(e,g),p(e,k),p(k,I),i[46](e),b||(E=[me(r,"click",ft(i[25])),me(r,"keydown",i[37]),me(c,"click",ft(i[22])),me(c,"keydown",i[34]),me(k,"click",ft(i[23])),me(k,"keydown",i[35]),me(e,"contextmenu",qt(i[43])),me(e,"keydown",i[28])],b=!0)},p(se,F){var ne;se[10].features.copyVideoLink&&((ne=se[9].callbacks)!=null&&ne.onCopyVideoLink)&&A.p(se,F),se[19]&&L.p(se,F),se[12]&&se[6]!==oa.ChromecastState.CONNECTED&&!se[17]?R?R.p(se,F):(R=m1(se),R.c(),R.m(e,o)):R&&(R.d(1),R=null),ae===(ae=le(se,F))&&Y?Y.p(se,F):(Y.d(1),Y=ae(se),Y&&(Y.c(),Y.m(r,null))),se[10].features.videoRotate&&!se[17]&&V.p(se,F),se[10].showSupport&&!se[7]?ee?ee.p(se,F):(ee=p1(se),ee.c(),ee.m(e,u)):ee&&(ee.d(1),ee=null),F[0]&256&&v!==(v=se[8]?G("aria_label_menu_debug_overlay_disable"):G("aria_label_menu_debug_overlay_enable"))&&f(k,"aria-label",v),F[0]&8&&ki(e,"top",se[3]+"px"),F[0]&4&&ki(e,"left",se[2]+"px")},d(se){se&&C(e),A&&A.d(),L&&L.d(),R&&R.d(),Y.d(),V&&V.d(),ee&&ee.d(),i[46](null),b=!1,nt(E)}}}function c2(i){let e,t=G("menu_copy_video_link")+"",n,o,r,l,a,s,u=!i[5]&&!i[17]&&d1(i);return{c(){e=T("li"),n=Ve(t),r=O(),u&&u.c(),l=dt(),f(e,"tabindex","0"),f(e,"role","menuitem"),f(e,"aria-label",o=G("menu_copy_video_link")),f(e,"class","svelte-1vzqlps")},m(c,m){S(c,e,m),p(e,n),S(c,r,m),u&&u.m(c,m),S(c,l,m),a||(s=[me(e,"click",ft(i[44])),me(e,"keydown",i[29])],a=!0)},p(c,m){!c[5]&&!c[17]?u?u.p(c,m):(u=d1(c),u.c(),u.m(l.parentNode,l)):u&&(u.d(1),u=null)},d(c){c&&(C(e),C(r),C(l)),u&&u.d(c),a=!1,nt(s)}}}function d1(i){let e,t=G("menu_copy_video_link_with_timestamp")+"",n,o,r,l;return{c(){e=T("li"),n=Ve(t),f(e,"tabindex","0"),f(e,"role","menuitem"),f(e,"aria-label",o=G("menu_copy_video_link_with_timestamp")),f(e,"class","svelte-1vzqlps")},m(a,s){S(a,e,s),p(e,n),r||(l=[me(e,"click",ft(i[45])),me(e,"keydown",i[30])],r=!0)},p:he,d(a){a&&C(e),r=!1,nt(l)}}}function d2(i){let e,t=G("menu_copy_embed_code")+"",n,o,r,l;return{c(){e=T("li"),n=Ve(t),f(e,"tabindex","0"),f(e,"role","menuitem"),f(e,"aria-label",o=G("menu_copy_embed_code")),f(e,"class","svelte-1vzqlps")},m(a,s){S(a,e,s),p(e,n),r||(l=[me(e,"click",ft(i[26])),me(e,"keydown",i[36])],r=!0)},p:he,d(a){a&&C(e),r=!1,nt(l)}}}function m1(i){let e,t=G("menu_pip")+"",n,o,r,l;return{c(){e=T("li"),n=Ve(t),f(e,"tabindex","0"),f(e,"role","menuitem"),f(e,"aria-label",o=G("menu_pip")),f(e,"class","svelte-1vzqlps")},m(a,s){S(a,e,s),p(e,n),r||(l=[me(e,"click",ft(i[24])),me(e,"keydown",i[31])],r=!0)},p:he,d(a){a&&C(e),r=!1,nt(l)}}}function m2(i){let e=G("menu_video_loop_on")+"",t;return{c(){t=Ve(e)},m(n,o){S(n,t,o)},p:he,d(n){n&&C(t)}}}function p2(i){let e=G("menu_video_loop_off")+"",t;return{c(){t=Ve(e)},m(n,o){S(n,t,o)},p:he,d(n){n&&C(t)}}}function _2(i){let e,t=G("menu_video_rotate")+"",n,o,r,l;return{c(){e=T("li"),n=Ve(t),f(e,"tabindex","0"),f(e,"role","menuitem"),f(e,"aria-label",o=G("aria_label_menu_rotate")),f(e,"class","svelte-1vzqlps")},m(a,s){S(a,e,s),p(e,n),r||(l=[me(e,"click",ft(i[20])),me(e,"keydown",i[32])],r=!0)},p:he,d(a){a&&C(e),r=!1,nt(l)}}}function p1(i){let e,t=G("menu_report")+"",n,o,r,l;return{c(){e=T("li"),n=Ve(t),f(e,"tabindex","0"),f(e,"role","menuitem"),f(e,"aria-label",o=`${G("menu_report")}. ${G("aria_label_new_tab_alert")}`),f(e,"class","svelte-1vzqlps")},m(a,s){S(a,e,s),p(e,n),r||(l=[me(e,"click",ft(i[21])),me(e,"keydown",i[33])],r=!0)},p:he,d(a){a&&C(e),r=!1,nt(l)}}}function h2(i){let e,t=i[1]&&c1(i);return{c(){t&&t.c(),e=dt()},m(n,o){t&&t.m(n,o),S(n,e,o)},p(n,o){n[1]?t?t.p(n,o):(t=c1(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},i:he,o:he,d(n){n&&C(e),t&&t.d(n)}}}function g2(i,e,t){var Te,ze;let n,o,r,l,a,s,{visible:u=!1}=e,{supportLink:c}=e,{position:m={top:0,left:0}}=e,{playerContainerRef:h=void 0}=e,{controlsContainerRef:w=void 0}=e,{menuElementRef:g=void 0}=e,{returnFocus:k}=e,y=0,I=0,v=st(),b=Zt(),E=v.ui.contextMenu.visible$,A=v.ui.debugPanelVisible;z(i,A,K=>t(8,s=K));let L=v.webApi.pictureInPictureApi,R=(Te=v.webApi.pictureInPictureApi)==null?void 0:Te.info.isActive$;z(i,R,K=>t(7,a=K));let le=v.state.chromecastState$;z(i,le,K=>t(6,l=K));let ae=v.state.isLive$;z(i,ae,K=>t(5,r=K));let Y=v.state.positionExact$;z(i,Y,K=>t(47,n=K));let V=v.state.isInteractive,ee=v.state.looped$;z(i,ee,K=>t(4,o=K));let X=!!((ze=v.callbacks)!=null&&ze.onCopyEmbedCodeClicked),se=()=>{E.set(!1)},F=(K,ve)=>{if(!g||!h||!w)return;let et=g.getBoundingClientRect(),_t=h.getBoundingClientRect();t(2,y=K-_t.left),t(3,I=ve-_t.top),y+et.width>_t.width&&t(2,y=_t.width-et.width),I+et.height>_t.height&&t(3,I=_t.height-et.height),t(2,y=Math.max(y,0)),t(3,I=Math.max(I,0))},ne=()=>{se(),v.actions.internal.videoRotate()},P=()=>{window.open(c,"_blank"),se(),v.actions.internal.pause()},U=()=>{let K=v.actions.internal.getDebugTextData();if(b.features.saveDebugInfoToFile){let ve=new Blob([...K],{type:"plain/text"}),et=window.URL.createObjectURL(ve);cr(et,"vk_player_debug_info","txt")}else _l(v.actions.internal.getDebugTextData());se(),k==null||k()},we=()=>{A.set(!0),se(),k==null||k()},qe=()=>ct(this,null,function*(){try{L!=null&&L.isActive()?yield L==null?void 0:L.remove():yield L==null?void 0:L.request()}finally{se(),k==null||k()}}),Ze=()=>{v.actions.internal.setLooped(!o),se()},Xe=()=>{var K,ve;if(X){let et=(ve=(K=v.callbacks)==null?void 0:K.onCopyEmbedCodeClicked)==null?void 0:ve.call(K);et&&_l(et)}se()},He=(K=!1)=>{var ve,et;if((ve=v.callbacks)!=null&&ve.onCopyVideoLink){let _t=(et=v.callbacks)==null?void 0:et.onCopyVideoLink(K,n);_t&&_l(_t)}se()},ye=K=>{Pr(K,se)},J=K=>{Ci(K,()=>He())},ke=K=>{Ci(K,()=>He(!0))},it=K=>{Ci(K,()=>qe())},Oe=K=>{Ci(K,()=>ne())},rt=K=>{Ci(K,()=>P())},Ce=K=>{Ci(K,()=>U())},Je=K=>{Ci(K,()=>we())},at=K=>{Ci(K,()=>Xe())},Ge=K=>{Ci(K,()=>Ze())};function Ke(K){Fn.call(this,i,K)}let $e=()=>He(),de=()=>He(!0);function Ne(K){pe[K?"unshift":"push"](()=>{g=K,t(0,g)})}return i.$$set=K=>{"visible"in K&&t(1,u=K.visible),"supportLink"in K&&t(38,c=K.supportLink),"position"in K&&t(39,m=K.position),"playerContainerRef"in K&&t(40,h=K.playerContainerRef),"controlsContainerRef"in K&&t(41,w=K.controlsContainerRef),"menuElementRef"in K&&t(0,g=K.menuElementRef),"returnFocus"in K&&t(42,k=K.returnFocus)},i.$$.update=()=>{if(i.$$.dirty[0]&1|i.$$.dirty[1]&1792){e:if(g&&h&&w){let{top:K,left:ve,bottom:et,right:_t}=m,vt=ve!=null?ve:0,ce=K!=null?K:0,bt=g.getBoundingClientRect();(0,jl.isNullable)(ve)&&!(0,jl.isNullable)(_t)&&(vt=_t-bt.width),(0,jl.isNullable)(K)&&!(0,jl.isNullable)(et)&&(ce=et-bt.height),vt=Math.max(vt,0),ce=Math.max(ce,0),F(vt,ce)}}},[g,u,y,I,o,r,l,a,s,v,b,A,L,R,le,ae,Y,V,ee,X,ne,P,U,we,qe,Ze,Xe,He,ye,J,ke,it,Oe,rt,Ce,Je,at,Ge,c,m,h,w,k,Ke,$e,de,Ne]}var la=class extends W{constructor(e){super(),Q(this,e,g2,h2,j,{visible:1,supportLink:38,position:39,playerContainerRef:40,controlsContainerRef:41,menuElementRef:0,returnFocus:42},f2,[-1,-1])}},_1=la;var Ir=class{constructor(e){this.value=e,this.next=null}};var kl=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let t=new Ir(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 b2(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 v2(i){let e,t;return{c(){e=T("div"),t=T("canvas"),f(t,"class","svelte-1ssl9eb"),f(e,"class","container svelte-1ssl9eb")},m(n,o){S(n,e,o),p(e,t),i[3](t)},p:he,i:he,o:he,d(n){n&&C(e),i[3](null)}}}var ra=16,sa=120,h1=60;function y2(i,e,t,n,o){o===0&&(o=1),i.fillStyle="#fff",i.fillRect(e,t,n,o)}function w2(i,e,t){let{values:n=[]}=e,o,r,l=sa/h1;Ot(()=>{t(0,o.width=sa,o),t(0,o.height=ra,o),t(2,r=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(r){let u=n[0];for(let m=1;m<n.length;m++)n[m]>u&&(u=n[m]);r.clearRect(0,0,sa,ra);let c=h1-1;for(let m=n.length-1;m>=0;m--){let h=c*l,w=u>0?ra*(n[m]/u):0;y2(r,h,0,l,w),s=w+" "+s,c--}}}},[o,n,r,a]}var aa=class extends W{constructor(e){super(),Q(this,e,w2,v2,j,{values:1},b2)}},Er=aa;var ua=require("@vkontakte/videoplayer-shared");function k2(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 g1(i){let e,t,n,o,r=i[0].id+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="Video id",n=O(),o=T("span"),l=Ve(r),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(a,s){S(a,e,s),p(e,t),p(e,n),p(e,o),p(o,l)},p(a,s){s&1&&r!==(r=a[0].id+"")&&Ye(l,r)},d(a){a&&C(e)}}}function b1(i){let e,t,n,o,r=i[0].vsid+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="VSID",n=O(),o=T("span"),l=Ve(r),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(a,s){S(a,e,s),p(e,t),p(e,n),p(e,o),p(o,l)},p(a,s){s&1&&r!==(r=a[0].vsid+"")&&Ye(l,r)},d(a){a&&C(e)}}}function v1(i){let e,t,n,o,r=i[0].provider+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="Provider",n=O(),o=T("span"),l=Ve(r),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(a,s){S(a,e,s),p(e,t),p(e,n),p(e,o),p(o,l)},p(a,s){s&1&&r!==(r=a[0].provider+"")&&Ye(l,r)},d(a){a&&C(e)}}}function y1(i){let e,t,n,o,r,l=(i[0].videoCodec||"")+"",a,s,u=i[0].hdr?"(HDR)":"",c,m,h=(i[0].audioCodec||"")+"",w,g,k=i[0].audioLanguage?`(${i[0].audioLanguage})`:"",y;return{c(){e=T("div"),t=T("div"),t.textContent="Streams",n=O(),o=T("span"),r=Ve("Video: "),a=Ve(l),s=O(),c=Ve(u),m=Ve(`
24
+ )}`)}function xc(i){let e;return{c(){e=T("div"),f(e,"class","top-gradient-mobile svelte-354ajf")},m(t,n){S(t,e,n)},d(t){t&&C(e)}}}function $c(i){let e,t;return e=new Xc({props:{position:i[5],secondsToWatchBeforeSkip:i[6],skipAd:i[8].actions.internal.skipAd}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&32&&(r.position=n[5]),o&64&&(r.secondsToWatchBeforeSkip=n[6]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function e1(i){let e,t;return e=new Yc({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function t1(i){let e,t;return e=new Jc({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function H2(i){let e,t,n,o,r,l,a,s=i[0]&&xc(i),u=i[3]&&$c(i),c=i[7]&&e1(i),m=i[4]&&t1(i);return{c(){e=T("div"),s&&s.c(),t=q(),n=T("video"),o=q(),u&&u.c(),r=q(),c&&c.c(),l=q(),m&&m.c(),ki(n,"width","100%"),ki(n,"height","100%"),n.playsInline=!0,f(e,"class","container svelte-354ajf")},m(h,k){S(h,e,k),s&&s.m(e,null),p(e,t),p(e,n),i[19](n),p(e,o),u&&u.m(e,null),p(e,r),c&&c.m(e,null),p(e,l),m&&m.m(e,null),i[20](e),a=!0},p(h,[k]){h[0]?s||(s=xc(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=$c(h),u.c(),d(u,1),u.m(e,r)):u&&(ue(),_(u,1,1,()=>{u=null}),fe()),h[7]?c?k&128&&d(c,1):(c=e1(h),c.c(),d(c,1),c.m(e,l)):c&&(ue(),_(c,1,1,()=>{c=null}),fe()),h[4]?m?k&16&&d(m,1):(m=t1(h),m.c(),d(m,1),m.m(e,null)):m&&(ue(),_(m,1,1,()=>{m=null}),fe())},i(h){a||(d(u),d(c),d(m),a=!0)},o(h){_(u),_(c),_(m),a=!1},d(h){h&&C(e),s&&s.d(),i[19](null),u&&u.d(),c&&c.d(),m&&m.d(),i[20](null)}}}function z2(i,e,t){let n,o,r,l,a,{adsSlotId:s=void 0}=e,{adsParams:u=void 0}=e,{adsPreviewParam:c=void 0}=e,{duration:m=0}=e,h=lt(),k=h.state.isEnded$;H(i,k,Y=>t(7,a=Y));let g=h.ui.isMobile;H(i,g,Y=>t(0,o=Y));let w,y,P=!1,v=h.ads.playbackState;H(i,v,Y=>t(18,n=Y));let b=h.ads.canSkip,I=h.ads.position;H(i,I,Y=>t(5,r=Y));let N=h.ads.secondsToWatchBeforeSkip;H(i,N,Y=>t(6,l=Y));let M,O;Ft(()=>{let Y=new AbortController,ee=()=>{Y.abort()},A=h.getAdmanWrapper();if(!s){A.onAdmanLoadingError();return}let{width:x,height:Z}=it(h.ui.playerSize),z=it(h.ui.isFullscreen),U=it(h.ui.isAutoplay),V={width:x,height:Z,isFullscreen:z,isAutoplay:U,adsContainer:w,adsVideoElement:y,slotId:s,params:u,previewParam:c,duration:m};return window.AdmanHTML?(A.initAdman(V),P=!0):A.loadAdman(Y.signal).then(()=>{A.initAdman(V),P=!0}).catch(()=>{A.onAdmanLoadingError()}),()=>{!P&&ee()}});function re(Y){pe[Y?"unshift":"push"](()=>{y=Y,t(2,y)})}function ae(Y){pe[Y?"unshift":"push"](()=>{w=Y,t(1,w)})}return i.$$set=Y=>{"adsSlotId"in Y&&t(14,s=Y.adsSlotId),"adsParams"in Y&&t(15,u=Y.adsParams),"adsPreviewParam"in Y&&t(16,c=Y.adsPreviewParam),"duration"in Y&&t(17,m=Y.duration)},i.$$.update=()=>{if(i.$$.dirty&262144)e:t(3,M=b&&n!=="inactive");if(i.$$.dirty&262145)e:t(4,O=o&&n!=="inactive")},[o,w,y,M,O,r,l,a,h,k,g,v,I,N,s,u,c,m,n,re,ae]}var ta=class extends j{constructor(e){super(),G(this,e,z2,H2,K,{adsSlotId:14,adsParams:15,adsPreviewParam:16,duration:17},F2)}},Tr=ta;var zn=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 U2(i){let e,t,n,o,r=i[2].default,l=Ee(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{"aria-hidden":"true"},{"data-testid":"live-icon"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=le(s,a[u]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),n=D("path"),f(t,"fill","none"),f(t,"stroke","#fff"),f(t,"stroke-width","2"),f(t,"d","M6.41 1A6.46 6.46 0 0 0 3 1.55 3.5 3.5 0 0 0 1.55 3 6.46 6.46 0 0 0 1 6.41v7.18A6.46 6.46 0 0 0 1.55 17 3.5 3.5 0 0 0 3 18.45a6.46 6.46 0 0 0 3.41.55h29.18a6.46 6.46 0 0 0 3.41-.55A3.5 3.5 0 0 0 40.45 17a6.46 6.46 0 0 0 .55-3.41V6.41A6.46 6.46 0 0 0 40.45 3 3.5 3.5 0 0 0 39 1.55 6.46 6.46 0 0 0 35.59 1z"),f(n,"fill","#f0f2f5"),f(n,"fill-rule","evenodd"),f(n,"d","M8 5a1 1 0 0 1 1 1v7h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-.77v-.11A.5.5 0 0 1 7 14V6a1 1 0 0 1 .88-1zm8 0a1 1 0 0 1 1 1v8a1 1 0 0 1-.88 1H16a1 1 0 0 1-1-1V6a1 1 0 0 1 .88-1zm18 0a1 1 0 0 1 1 .88V6a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V10a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-.77v-.11a.5.5 0 0 1 0-.12V6a1 1 0 0 1 .56-.9A1 1 0 0 1 30 5zm-8 0a1 1 0 0 1 1 1v.1a.9.9 0 0 1-.11.35l-2.47 7.57a1.48 1.48 0 0 1-1.32.98h-.2a1.48 1.48 0 0 1-1.31-.95l-2.47-7.57a.9.9 0 0 1-.12-.36V6a1 1 0 0 1 .88-1H20a1 1 0 0 1 1 1v-.1l2 6.4 2-6.4a1 1 0 0 1 1-.9"),be(e,s)},m(u,c){S(u,e,c),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[c]){l&&l.p&&(!o||c&2)&&Me(l,r,u,u[1],o?Ae(r,u[1],c,null):Ve(u[1]),null),be(e,s=Re(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{"aria-hidden":"true"},{"data-testid":"live-icon"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&C(e),l&&l.d(u)}}}function K2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var ia=class extends j{constructor(e){super(),G(this,e,K2,U2,K,{})}},i1=ia;function j2(i){let e,t,n,o,r=i[2].default,l=Ee(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"live-active-icon"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=le(s,a[u]);return{c(){e=D("svg"),l&&l.c(),t=D("rect"),n=D("path"),f(t,"width","42"),f(t,"height","20"),f(t,"fill","#FF3347"),f(t,"rx","5"),f(n,"fill","#F2F3F5"),f(n,"fill-rule","evenodd"),f(n,"d","M8 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2H9V6a1 1 0 0 0-1-1m7 1a1 1 0 1 1 2 0v8a1 1 0 1 1-2 0zm15-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2h-3v-2h3a1 1 0 1 0 0-2h-3V7h3a1 1 0 1 0 0-2zm-8.325 9.31-2.55-7.824a1 1 0 0 1-.117-.363L19 6.1h.005a1 1 0 1 1 1.99-.199L21 5.9l2 6.4 2-6.4h.005a1 1 0 0 1 1.99.2H27l-.008.023a1 1 0 0 1-.118.363l-2.55 7.824a1 1 0 0 1-.95.69h-.748a1 1 0 0 1-.95-.69z"),f(n,"clip-rule","evenodd"),be(e,s)},m(u,c){S(u,e,c),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[c]){l&&l.p&&(!o||c&2)&&Me(l,r,u,u[1],o?Ae(r,u[1],c,null):Ve(u[1]),null),be(e,s=Re(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"live-active-icon"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&C(e),l&&l.d(u)}}}function W2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var na=class extends j{constructor(e){super(),G(this,e,W2,j2,K,{})}},n1=na;function G2(i){let e,t;return e=new i1({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Q2(i){let e,t;return e=new n1({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Y2(i){let e,t,n,o,r=[Q2,G2],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=ct()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let c=e;e=a(s,u),e!==c&&(ue(),_(l[c],1,1,()=>{l[c]=null}),fe(),t=l[e],t||(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&C(n),l[e].d(s)}}}function Z2(i,e,t){let{isActive:n=!1}=e;return i.$$set=o=>{"isActive"in o&&t(0,n=o.isActive)},[n]}var oa=class extends j{constructor(e){super(),G(this,e,Z2,Y2,K,{isActive:0})}},Pr=oa;function X2(i){Te(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 J2(i){let e=zn(i[4]-i[3])+"",t;return{c(){t=Le(e)},m(n,o){S(n,t,o)},p(n,o){o&24&&e!==(e=zn(n[4]-n[3])+"")&&Ye(t,e)},i:_e,o:_e,d(n){n&&C(t)}}}function x2(i){let e,t,n;return t=new Pr({props:{isActive:!0}}),{c(){e=T("div"),B(t.$$.fragment),f(e,"class","thumb-timer-live-icon svelte-7pnl2h")},m(o,r){S(o,e,r),L(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),R(t)}}}function $2(i){let e,t,n,o,r,l,a,s=[x2,J2],u=[];function c(m,h){return m[1]?0:1}return r=c(i,-1),l=u[r]=s[r](i),{c(){e=T("div"),t=T("div"),t.innerHTML='<div class="col svelte-7pnl2h"></div> <div class="col svelte-7pnl2h"></div> <div class="col svelte-7pnl2h"></div>',n=q(),o=T("span"),l.c(),f(t,"class","thumb-timer-equalizer svelte-7pnl2h"),f(o,"class","thumb-timer-text svelte-7pnl2h"),f(e,"role","timer"),f(e,"class","thumb-timer svelte-7pnl2h"),f(e,"data-testid","thumb-timer"),F(e,"live",i[1]),F(e,"hidden",i[0]),F(e,"playing",i[2])},m(m,h){S(m,e,h),p(e,t),p(e,n),p(e,o),u[r].m(o,null),a=!0},p(m,[h]){let k=r;r=c(m,h),r===k?u[r].p(m,h):(ue(),_(u[k],1,1,()=>{u[k]=null}),fe(),l=u[r],l?l.p(m,h):(l=u[r]=s[r](m),l.c()),d(l,1),l.m(o,null)),(!a||h&2)&&F(e,"live",m[1]),(!a||h&1)&&F(e,"hidden",m[0]),(!a||h&4)&&F(e,"playing",m[2])},i(m){a||(d(l),a=!0)},o(m){_(l),a=!1},d(m){m&&C(e),u[r].d()}}}function eh(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 la=class extends j{constructor(e){super(),G(this,e,eh,$2,K,{isHidden:0,isLive:1,isPlaying:2,position:3,duration:4},X2)}},Ir=la;var ml=i=>{if(document.queryCommandSupported&&document.queryCommandSupported("copy")){let e=document.createElement("textarea");e.textContent=i,e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e),e.select();try{document.execCommand("copy")}finally{document.body.removeChild(e)}}};var ra=require("@vkontakte/videoplayer-core");var l1=require("@vkontakte/videoplayer-shared");var o1=(0,l1.isAndroid)(),Go=i=>{i.stopPropagation(),i.preventDefault()},ih=i=>{var t;let e=i.previousElementSibling;e||(e=(t=i.parentNode)==null?void 0:t.lastElementChild),e==null||e.focus()},nh=i=>{var t;let e=i.nextElementSibling;e||(e=(t=i.parentNode)==null?void 0:t.firstElementChild),e==null||e.focus()},oh=i=>{let e=i.code;return e==="Tab"&&!i.shiftKey||e==="ArrowDown"},lh=i=>{let e=i.code;return e==="Tab"||e==="ArrowUp"},r1=i=>i.code==="Escape",rh=i=>i.code==="ArrowLeft",s1=(i,e=!0)=>{let t=i.code;return["Enter","Space"].includes(t)||!e&&t==="ArrowRight"},a1=i=>{if(oh(i)){Go(i),nh(i.target);return}lh(i)&&(Go(i),ih(i.target))},_l=i=>!o1&&(i==null?void 0:i.detail)===0||o1&&(i==null?void 0:i.pointerType)==="",hl=(i,e,t)=>ft(void 0,null,function*(){yield Xn(),i&&!i.classList.contains("opened")&&!e&&it(t)&&(yield Xn(),t.set(!1),i.focus())}),u1=(i,e,t)=>ft(void 0,null,function*(){yield Xn(),i&&!e&&it(t)&&(t.set(!1),i.focus())}),Qo=(i,e,t)=>ft(void 0,null,function*(){var o;yield Xn(),!!i&&e&&t&&((o=i.children[0])==null||o.focus())}),gl=(i,e,t)=>ft(void 0,null,function*(){!!i&&t&&(e.set(!1),setTimeout(()=>{i.focus()},100))}),Er=(i,e)=>{a1(i),r1(i)&&(Go(i),e())},bl=(i,e,t)=>ft(void 0,null,function*(){if(s1(i,!1)){Go(i),e(),yield Xn();let n=t();n==null||n.focus()}}),vl=(i,e,t,n)=>ft(void 0,null,function*(){if(a1(i),rh(i)){Go(i),e(),t.set(!0);return}r1(i)&&(Go(i),n())}),Ci=(i,e)=>{s1(i)&&(Go(i),e())},f1=i=>{let e=i.getBoundingClientRect(),t=-14,n=e.left+e.width,o=e.top+t;return{right:n,bottom:o}},c1=i=>{if(!i)return{top:0,left:0};let e=i.getBoundingClientRect(),t=-58,n=8,o=e.left+n;return{bottom:e.bottom+t,left:o}};var jl=require("@vkontakte/videoplayer-shared");function sh(i){Te(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 d1(i){var x;let e,t,n,o,r,l,a,s,u,c,m=(i[10].features.saveDebugInfoToFile?W("menu_save_debug"):W("menu_copy_debug"))+"",h,k,g,w,y=W("menu_debug_overlay")+"",P,v,b,I,N=i[10].features.copyVideoLink&&((x=i[9].callbacks)==null?void 0:x.onCopyVideoLink)&&ah(i),M=i[19]&&uh(i),O=i[12]&&i[6]!==ra.ChromecastState.CONNECTED&&!i[17]&&p1(i);function re(Z,z){return Z[4]?ch:fh}let ae=re(i,[-1,-1]),Y=ae(i),ee=i[10].features.videoRotate&&!i[17]&&dh(i),A=i[10].showSupport&&!i[7]&&_1(i);return{c(){e=T("ul"),N&&N.c(),t=q(),M&&M.c(),n=q(),O&&O.c(),o=q(),r=T("li"),Y.c(),a=q(),ee&&ee.c(),s=q(),A&&A.c(),u=q(),c=T("li"),h=Le(m),g=q(),w=T("li"),P=Le(y),f(r,"tabindex","0"),f(r,"role","menuitem"),f(r,"aria-label",l=W("aria_label_menu_loop")),f(r,"class","svelte-1vzqlps"),f(c,"tabindex","0"),f(c,"role","menuitem"),f(c,"aria-label",k=i[10].features.saveDebugInfoToFile?W("menu_save_debug"):W("menu_copy_debug")),f(c,"class","svelte-1vzqlps"),f(w,"tabindex","0"),f(w,"role","menuitem"),f(w,"aria-label",v=i[8]?W("aria_label_menu_debug_overlay_disable"):W("aria_label_menu_debug_overlay_enable")),f(w,"class","svelte-1vzqlps"),f(e,"role","menu"),ki(e,"top",i[3]+"px"),ki(e,"left",i[2]+"px"),f(e,"class","svelte-1vzqlps")},m(Z,z){S(Z,e,z),N&&N.m(e,null),p(e,t),M&&M.m(e,null),p(e,n),O&&O.m(e,null),p(e,o),p(e,r),Y.m(r,null),p(e,a),ee&&ee.m(e,null),p(e,s),A&&A.m(e,null),p(e,u),p(e,c),p(c,h),p(e,g),p(e,w),p(w,P),i[46](e),b||(I=[de(r,"click",ut(i[25])),de(r,"keydown",i[37]),de(c,"click",ut(i[22])),de(c,"keydown",i[34]),de(w,"click",ut(i[23])),de(w,"keydown",i[35]),de(e,"contextmenu",Ot(i[43])),de(e,"keydown",i[28])],b=!0)},p(Z,z){var U;Z[10].features.copyVideoLink&&((U=Z[9].callbacks)!=null&&U.onCopyVideoLink)&&N.p(Z,z),Z[19]&&M.p(Z,z),Z[12]&&Z[6]!==ra.ChromecastState.CONNECTED&&!Z[17]?O?O.p(Z,z):(O=p1(Z),O.c(),O.m(e,o)):O&&(O.d(1),O=null),ae===(ae=re(Z,z))&&Y?Y.p(Z,z):(Y.d(1),Y=ae(Z),Y&&(Y.c(),Y.m(r,null))),Z[10].features.videoRotate&&!Z[17]&&ee.p(Z,z),Z[10].showSupport&&!Z[7]?A?A.p(Z,z):(A=_1(Z),A.c(),A.m(e,u)):A&&(A.d(1),A=null),z[0]&256&&v!==(v=Z[8]?W("aria_label_menu_debug_overlay_disable"):W("aria_label_menu_debug_overlay_enable"))&&f(w,"aria-label",v),z[0]&8&&ki(e,"top",Z[3]+"px"),z[0]&4&&ki(e,"left",Z[2]+"px")},d(Z){Z&&C(e),N&&N.d(),M&&M.d(),O&&O.d(),Y.d(),ee&&ee.d(),A&&A.d(),i[46](null),b=!1,ot(I)}}}function ah(i){let e,t=W("menu_copy_video_link")+"",n,o,r,l,a,s,u=!i[5]&&!i[17]&&m1(i);return{c(){e=T("li"),n=Le(t),r=q(),u&&u.c(),l=ct(),f(e,"tabindex","0"),f(e,"role","menuitem"),f(e,"aria-label",o=W("menu_copy_video_link")),f(e,"class","svelte-1vzqlps")},m(c,m){S(c,e,m),p(e,n),S(c,r,m),u&&u.m(c,m),S(c,l,m),a||(s=[de(e,"click",ut(i[44])),de(e,"keydown",i[29])],a=!0)},p(c,m){!c[5]&&!c[17]?u?u.p(c,m):(u=m1(c),u.c(),u.m(l.parentNode,l)):u&&(u.d(1),u=null)},d(c){c&&(C(e),C(r),C(l)),u&&u.d(c),a=!1,ot(s)}}}function m1(i){let e,t=W("menu_copy_video_link_with_timestamp")+"",n,o,r,l;return{c(){e=T("li"),n=Le(t),f(e,"tabindex","0"),f(e,"role","menuitem"),f(e,"aria-label",o=W("menu_copy_video_link_with_timestamp")),f(e,"class","svelte-1vzqlps")},m(a,s){S(a,e,s),p(e,n),r||(l=[de(e,"click",ut(i[45])),de(e,"keydown",i[30])],r=!0)},p:_e,d(a){a&&C(e),r=!1,ot(l)}}}function uh(i){let e,t=W("menu_copy_embed_code")+"",n,o,r,l;return{c(){e=T("li"),n=Le(t),f(e,"tabindex","0"),f(e,"role","menuitem"),f(e,"aria-label",o=W("menu_copy_embed_code")),f(e,"class","svelte-1vzqlps")},m(a,s){S(a,e,s),p(e,n),r||(l=[de(e,"click",ut(i[26])),de(e,"keydown",i[36])],r=!0)},p:_e,d(a){a&&C(e),r=!1,ot(l)}}}function p1(i){let e,t=W("menu_pip")+"",n,o,r,l;return{c(){e=T("li"),n=Le(t),f(e,"tabindex","0"),f(e,"role","menuitem"),f(e,"aria-label",o=W("menu_pip")),f(e,"class","svelte-1vzqlps")},m(a,s){S(a,e,s),p(e,n),r||(l=[de(e,"click",ut(i[24])),de(e,"keydown",i[31])],r=!0)},p:_e,d(a){a&&C(e),r=!1,ot(l)}}}function fh(i){let e=W("menu_video_loop_on")+"",t;return{c(){t=Le(e)},m(n,o){S(n,t,o)},p:_e,d(n){n&&C(t)}}}function ch(i){let e=W("menu_video_loop_off")+"",t;return{c(){t=Le(e)},m(n,o){S(n,t,o)},p:_e,d(n){n&&C(t)}}}function dh(i){let e,t=W("menu_video_rotate")+"",n,o,r,l;return{c(){e=T("li"),n=Le(t),f(e,"tabindex","0"),f(e,"role","menuitem"),f(e,"aria-label",o=W("aria_label_menu_rotate")),f(e,"class","svelte-1vzqlps")},m(a,s){S(a,e,s),p(e,n),r||(l=[de(e,"click",ut(i[20])),de(e,"keydown",i[32])],r=!0)},p:_e,d(a){a&&C(e),r=!1,ot(l)}}}function _1(i){let e,t=W("menu_report")+"",n,o,r,l;return{c(){e=T("li"),n=Le(t),f(e,"tabindex","0"),f(e,"role","menuitem"),f(e,"aria-label",o=`${W("menu_report")}. ${W("aria_label_new_tab_alert")}`),f(e,"class","svelte-1vzqlps")},m(a,s){S(a,e,s),p(e,n),r||(l=[de(e,"click",ut(i[21])),de(e,"keydown",i[33])],r=!0)},p:_e,d(a){a&&C(e),r=!1,ot(l)}}}function mh(i){let e,t=i[1]&&d1(i);return{c(){t&&t.c(),e=ct()},m(n,o){t&&t.m(n,o),S(n,e,o)},p(n,o){n[1]?t?t.p(n,o):(t=d1(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 ph(i,e,t){var Ie,Oe;let n,o,r,l,a,s,{visible:u=!1}=e,{supportLink:c}=e,{position:m={top:0,left:0}}=e,{playerContainerRef:h=void 0}=e,{controlsContainerRef:k=void 0}=e,{menuElementRef:g=void 0}=e,{returnFocus:w}=e,y=0,P=0,v=lt(),b=Qt(),I=v.ui.contextMenu.visible$,N=v.ui.debugPanelVisible;H(i,N,ce=>t(8,s=ce));let M=v.webApi.pictureInPictureApi,O=(Ie=v.webApi.pictureInPictureApi)==null?void 0:Ie.info.isActive$;H(i,O,ce=>t(7,a=ce));let re=v.state.chromecastState$;H(i,re,ce=>t(6,l=ce));let ae=v.state.isLive$;H(i,ae,ce=>t(5,r=ce));let Y=v.state.positionExact$;H(i,Y,ce=>t(47,n=ce));let ee=v.state.isInteractive,A=v.state.looped$;H(i,A,ce=>t(4,o=ce));let x=!!((Oe=v.callbacks)!=null&&Oe.onCopyEmbedCodeClicked),Z=()=>{I.set(!1)},z=(ce,Qe)=>{if(!g||!h||!k)return;let $e=g.getBoundingClientRect(),pt=h.getBoundingClientRect();t(2,y=ce-pt.left),t(3,P=Qe-pt.top),y+$e.width>pt.width&&t(2,y=pt.width-$e.width),P+$e.height>pt.height&&t(3,P=pt.height-$e.height),t(2,y=Math.max(y,0)),t(3,P=Math.max(P,0))},U=()=>{Z(),v.actions.internal.videoRotate()},V=()=>{window.open(c,"_blank"),Z(),v.actions.internal.pause()},Q=()=>{let ce=v.actions.internal.getDebugTextData();if(b.features.saveDebugInfoToFile){let Qe=new Blob([...ce],{type:"plain/text"}),$e=window.URL.createObjectURL(Qe);mr($e,"vk_player_debug_info","txt")}else ml(v.actions.internal.getDebugTextData());Z(),w==null||w()},Ce=()=>{N.set(!0),Z(),w==null||w()},Fe=()=>ft(this,null,function*(){try{M!=null&&M.isActive()?yield M==null?void 0:M.remove():yield M==null?void 0:M.request()}finally{Z(),w==null||w()}}),Ze=()=>{v.actions.internal.setLooped(!o),Z()},et=()=>{var ce,Qe;if(x){let $e=(Qe=(ce=v.callbacks)==null?void 0:ce.onCopyEmbedCodeClicked)==null?void 0:Qe.call(ce);$e&&ml($e)}Z()},xe=(ce=!1)=>{var Qe,$e;if((Qe=v.callbacks)!=null&&Qe.onCopyVideoLink){let pt=($e=v.callbacks)==null?void 0:$e.onCopyVideoLink(ce,n);pt&&ml(pt)}Z()},ye=ce=>{Er(ce,Z)},X=ce=>{Ci(ce,()=>xe())},ke=ce=>{Ci(ce,()=>xe(!0))},Ge=ce=>{Ci(ce,()=>Fe())},tt=ce=>{Ci(ce,()=>U())},rt=ce=>{Ci(ce,()=>V())},we=ce=>{Ci(ce,()=>Q())},De=ce=>{Ci(ce,()=>Ce())},Je=ce=>{Ci(ce,()=>et())},st=ce=>{Ci(ce,()=>Ze())};function Se(ce){Fn.call(this,i,ce)}let se=()=>xe(),We=()=>xe(!0);function me(ce){pe[ce?"unshift":"push"](()=>{g=ce,t(0,g)})}return i.$$set=ce=>{"visible"in ce&&t(1,u=ce.visible),"supportLink"in ce&&t(38,c=ce.supportLink),"position"in ce&&t(39,m=ce.position),"playerContainerRef"in ce&&t(40,h=ce.playerContainerRef),"controlsContainerRef"in ce&&t(41,k=ce.controlsContainerRef),"menuElementRef"in ce&&t(0,g=ce.menuElementRef),"returnFocus"in ce&&t(42,w=ce.returnFocus)},i.$$.update=()=>{if(i.$$.dirty[0]&1|i.$$.dirty[1]&1792){e:if(g&&h&&k){let{top:ce,left:Qe,bottom:$e,right:pt}=m,bt=Qe!=null?Qe:0,ve=ce!=null?ce:0,Ct=g.getBoundingClientRect();(0,jl.isNullable)(Qe)&&!(0,jl.isNullable)(pt)&&(bt=pt-Ct.width),(0,jl.isNullable)(ce)&&!(0,jl.isNullable)($e)&&(ve=$e-Ct.height),bt=Math.max(bt,0),ve=Math.max(ve,0),z(bt,ve)}}},[g,u,y,P,o,r,l,a,s,v,b,N,M,O,re,ae,Y,ee,A,x,U,V,Q,Ce,Fe,Ze,et,xe,ye,X,ke,Ge,tt,rt,we,De,Je,st,c,m,h,k,w,Se,se,We,me]}var sa=class extends j{constructor(e){super(),G(this,e,ph,mh,K,{visible:1,supportLink:38,position:39,playerContainerRef:40,controlsContainerRef:41,menuElementRef:0,returnFocus:42},sh,[-1,-1])}},h1=sa;var Ar=class{constructor(e){this.value=e,this.next=null}};var yl=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let t=new Ar(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 _h(i){Te(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=T("div"),t=T("canvas"),f(t,"class","svelte-1ssl9eb"),f(e,"class","container svelte-1ssl9eb")},m(n,o){S(n,e,o),p(e,t),i[3](t)},p:_e,i:_e,o:_e,d(n){n&&C(e),i[3](null)}}}var aa=16,ua=120,g1=60;function gh(i,e,t,n,o){o===0&&(o=1),i.fillStyle="#fff",i.fillRect(e,t,n,o)}function bh(i,e,t){let{values:n=[]}=e,o,r,l=ua/g1;Ft(()=>{t(0,o.width=ua,o),t(0,o.height=aa,o),t(2,r=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(r){let u=n[0];for(let m=1;m<n.length;m++)n[m]>u&&(u=n[m]);r.clearRect(0,0,ua,aa);let c=g1-1;for(let m=n.length-1;m>=0;m--){let h=c*l,k=u>0?aa*(n[m]/u):0;gh(r,h,0,l,k),s=k+" "+s,c--}}}},[o,n,r,a]}var fa=class extends j{constructor(e){super(),G(this,e,bh,hh,K,{values:1},_h)}},Mr=fa;var ca=require("@vkontakte/videoplayer-shared");function vh(i){Te(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 b1(i){let e,t,n,o,r=i[0].id+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="Video id",n=q(),o=T("span"),l=Le(r),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(a,s){S(a,e,s),p(e,t),p(e,n),p(e,o),p(o,l)},p(a,s){s&1&&r!==(r=a[0].id+"")&&Ye(l,r)},d(a){a&&C(e)}}}function v1(i){let e,t,n,o,r=i[0].vsid+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="VSID",n=q(),o=T("span"),l=Le(r),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(a,s){S(a,e,s),p(e,t),p(e,n),p(e,o),p(o,l)},p(a,s){s&1&&r!==(r=a[0].vsid+"")&&Ye(l,r)},d(a){a&&C(e)}}}function y1(i){let e,t,n,o,r=i[0].provider+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="Provider",n=q(),o=T("span"),l=Le(r),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(a,s){S(a,e,s),p(e,t),p(e,n),p(e,o),p(o,l)},p(a,s){s&1&&r!==(r=a[0].provider+"")&&Ye(l,r)},d(a){a&&C(e)}}}function w1(i){let e,t,n,o,r,l=(i[0].videoCodec||"")+"",a,s,u=i[0].hdr?"(HDR)":"",c,m,h=(i[0].audioCodec||"")+"",k,g,w=i[0].audioLanguage?`(${i[0].audioLanguage})`:"",y;return{c(){e=T("div"),t=T("div"),t.textContent="Streams",n=q(),o=T("span"),r=Le("Video: "),a=Le(l),s=q(),c=Le(u),m=Le(`
25
25
  &
26
- Audio: `),w=Ve(h),g=O(),y=Ve(k),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(I,v){S(I,e,v),p(e,t),p(e,n),p(e,o),p(o,r),p(o,a),p(o,s),p(o,c),p(o,m),p(o,w),p(o,g),p(o,y)},p(I,v){v&1&&l!==(l=(I[0].videoCodec||"")+"")&&Ye(a,l),v&1&&u!==(u=I[0].hdr?"(HDR)":"")&&Ye(c,u),v&1&&h!==(h=(I[0].audioCodec||"")+"")&&Ye(w,h),v&1&&k!==(k=I[0].audioLanguage?`(${I[0].audioLanguage})`:"")&&Ye(y,k)},d(I){I&&C(e)}}}function w1(i){let e,t,n,o,r=i[0].viewport+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="Viewport",n=O(),o=T("span"),l=Ve(r),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(a,s){S(a,e,s),p(e,t),p(e,n),p(e,o),p(o,l)},p(a,s){s&1&&r!==(r=a[0].viewport+"")&&Ye(l,r)},d(a){a&&C(e)}}}function k1(i){let e,t,n,o,r=i[0].videoSize+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="Video size",n=O(),o=T("span"),l=Ve(r),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(a,s){S(a,e,s),p(e,t),p(e,n),p(e,o),p(o,l)},p(a,s){s&1&&r!==(r=a[0].videoSize+"")&&Ye(l,r)},d(a){a&&C(e)}}}function C1(i){let e,t,n,o,r=i[0].cdn+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="CDN host",n=O(),o=T("span"),l=Ve(r),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(a,s){S(a,e,s),p(e,t),p(e,n),p(e,o),p(o,l)},p(a,s){s&1&&r!==(r=a[0].cdn+"")&&Ye(l,r)},d(a){a&&C(e)}}}function S1(i){let e,t,n,o,r=i[0].volume+"",l,a;return{c(){e=T("div"),t=T("div"),t.textContent="Volume",n=O(),o=T("span"),l=Ve(r),a=Ve(" %"),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(s,u){S(s,e,u),p(e,t),p(e,n),p(e,o),p(o,l),p(o,a)},p(s,u){u&1&&r!==(r=s[0].volume+"")&&Ye(l,r)},d(s){s&&C(e)}}}function T1(i){let e,t,n,o,r=i[0].buffer.toFixed(2)+"",l,a;return{c(){e=T("div"),t=T("div"),t.textContent="Buffer",n=O(),o=T("span"),l=Ve(r),a=Ve(" s"),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(s,u){S(s,e,u),p(e,t),p(e,n),p(e,o),p(o,l),p(o,a)},p(s,u){u&1&&r!==(r=s[0].buffer.toFixed(2)+"")&&Ye(l,r)},d(s){s&&C(e)}}}function P1(i){let e,t,n,o,r=[{value:i[0].currentVideoSegmentLength,title:"Video:"},{value:i[0].currentAudioSegmentLength,title:"Audio:"}].filter(A1).map(M1).join(" & ")+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="Segment",n=O(),o=T("span"),l=Ve(r),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(a,s){S(a,e,s),p(e,t),p(e,n),p(e,o),p(o,l)},p(a,s){s&1&&r!==(r=[{value:a[0].currentVideoSegmentLength,title:"Video:"},{value:a[0].currentAudioSegmentLength,title:"Audio:"}].filter(A1).map(M1).join(" & ")+"")&&Ye(l,r)},d(a){a&&C(e)}}}function I1(i){let e,t,n,o,r,l,a=i[0].speed.toFixed(2)+"",s,u,c;return o=new Er({props:{values:i[5]}}),{c(){e=T("div"),t=T("div"),t.textContent="Network",n=O(),N(o.$$.fragment),r=O(),l=T("span"),s=Ve(a),u=Ve(" Kbps"),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(m,h){S(m,e,h),p(e,t),p(e,n),B(o,e,null),p(e,r),p(e,l),p(l,s),p(l,u),c=!0},p(m,h){let w={};h&32&&(w.values=m[5]),o.$set(w),(!c||h&1)&&a!==(a=m[0].speed.toFixed(2)+"")&&Ye(s,a)},i(m){c||(d(o.$$.fragment,m),c=!0)},o(m){_(o.$$.fragment,m),c=!1},d(m){m&&C(e),D(o)}}}function E1(i){let e,t,n,o,r,l,a=i[0].bitrate.toFixed(2)+"",s,u,c;return o=new Er({props:{values:i[6]}}),{c(){e=T("div"),t=T("div"),t.textContent="V bitrate",n=O(),N(o.$$.fragment),r=O(),l=T("span"),s=Ve(a),u=Ve(" Kbps"),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(m,h){S(m,e,h),p(e,t),p(e,n),B(o,e,null),p(e,r),p(e,l),p(l,s),p(l,u),c=!0},p(m,h){let w={};h&64&&(w.values=m[6]),o.$set(w),(!c||h&1)&&a!==(a=m[0].bitrate.toFixed(2)+"")&&Ye(s,a)},i(m){c||(d(o.$$.fragment,m),c=!0)},o(m){_(o.$$.fragment,m),c=!1},d(m){m&&C(e),D(o)}}}function C2(i){let e,t,n,o,r,l,a,s,u=i[0].version+"",c,m,h,w,g,k,y,I,v,b,E,A,L,R,le,ae,Y,V,ee,X,se,F,ne,P,U,we,qe,Ze,Xe,He,ye,J,ke,it,Oe=i[0].id&&g1(i),rt=i[0].vsid&&b1(i),Ce=i[0].provider&&v1(i),Je=(i[0].videoCodec||i[0].audioCodec)&&y1(i),at=i[0].viewport&&w1(i),Ge=i[0].videoSize&&k1(i),Ke=i[0].cdn&&C1(i),$e=i[0].volume&&S1(i),de=i[0].buffer&&T1(i),Ne=(i[0].currentVideoSegmentLength||i[0].currentAudioSegmentLength)&&P1(i),Te=i[0].speed&&I1(i),ze=i[0].bitrate&&E1(i);return qe=new Er({props:{values:i[4]}}),{c(){e=T("div"),t=T("button"),t.textContent="[x]",n=O(),o=T("div"),r=T("div"),l=T("div"),l.textContent="Version",a=O(),s=T("span"),c=Ve(u),m=O(),Oe&&Oe.c(),h=O(),rt&&rt.c(),w=O(),Ce&&Ce.c(),g=O(),Je&&Je.c(),k=O(),at&&at.c(),y=O(),Ge&&Ge.c(),I=O(),Ke&&Ke.c(),v=O(),$e&&$e.c(),b=O(),de&&de.c(),E=O(),Ne&&Ne.c(),A=O(),L=T("div"),R=T("div"),R.textContent="Dropped",le=O(),ae=T("span"),Y=Ve(i[2]),V=Ve(" / "),ee=Ve(i[1]),X=Ve(" frames"),se=O(),Te&&Te.c(),F=O(),ze&&ze.c(),ne=O(),P=T("div"),U=T("div"),U.textContent="FPS",we=O(),N(qe.$$.fragment),Ze=O(),Xe=T("span"),He=Ve(i[3]),f(t,"class","close svelte-1fypj5i"),f(t,"title","\u0437\u0430\u043A\u0440\u044B\u0442\u044C"),f(l,"class","svelte-1fypj5i"),f(r,"class","svelte-1fypj5i"),f(R,"class","svelte-1fypj5i"),f(L,"class","svelte-1fypj5i"),f(U,"class","svelte-1fypj5i"),f(P,"class","svelte-1fypj5i"),f(o,"class","content svelte-1fypj5i"),f(e,"class","container svelte-1fypj5i"),f(e,"role","region"),f(e,"aria-label",ye=G("aria_label_debug_panel")),H(e,"container-mobile",i[7])},m(K,ve){S(K,e,ve),p(e,t),p(e,n),p(e,o),p(o,r),p(r,l),p(r,a),p(r,s),p(s,c),p(o,m),Oe&&Oe.m(o,null),p(o,h),rt&&rt.m(o,null),p(o,w),Ce&&Ce.m(o,null),p(o,g),Je&&Je.m(o,null),p(o,k),at&&at.m(o,null),p(o,y),Ge&&Ge.m(o,null),p(o,I),Ke&&Ke.m(o,null),p(o,v),$e&&$e.m(o,null),p(o,b),de&&de.m(o,null),p(o,E),Ne&&Ne.m(o,null),p(o,A),p(o,L),p(L,R),p(L,le),p(L,ae),p(ae,Y),p(ae,V),p(ae,ee),p(ae,X),p(o,se),Te&&Te.m(o,null),p(o,F),ze&&ze.m(o,null),p(o,ne),p(o,P),p(P,U),p(P,we),B(qe,P,null),p(P,Ze),p(P,Xe),p(Xe,He),J=!0,ke||(it=me(t,"click",ft(i[9])),ke=!0)},p(K,[ve]){(!J||ve&1)&&u!==(u=K[0].version+"")&&Ye(c,u),K[0].id?Oe?Oe.p(K,ve):(Oe=g1(K),Oe.c(),Oe.m(o,h)):Oe&&(Oe.d(1),Oe=null),K[0].vsid?rt?rt.p(K,ve):(rt=b1(K),rt.c(),rt.m(o,w)):rt&&(rt.d(1),rt=null),K[0].provider?Ce?Ce.p(K,ve):(Ce=v1(K),Ce.c(),Ce.m(o,g)):Ce&&(Ce.d(1),Ce=null),K[0].videoCodec||K[0].audioCodec?Je?Je.p(K,ve):(Je=y1(K),Je.c(),Je.m(o,k)):Je&&(Je.d(1),Je=null),K[0].viewport?at?at.p(K,ve):(at=w1(K),at.c(),at.m(o,y)):at&&(at.d(1),at=null),K[0].videoSize?Ge?Ge.p(K,ve):(Ge=k1(K),Ge.c(),Ge.m(o,I)):Ge&&(Ge.d(1),Ge=null),K[0].cdn?Ke?Ke.p(K,ve):(Ke=C1(K),Ke.c(),Ke.m(o,v)):Ke&&(Ke.d(1),Ke=null),K[0].volume?$e?$e.p(K,ve):($e=S1(K),$e.c(),$e.m(o,b)):$e&&($e.d(1),$e=null),K[0].buffer?de?de.p(K,ve):(de=T1(K),de.c(),de.m(o,E)):de&&(de.d(1),de=null),K[0].currentVideoSegmentLength||K[0].currentAudioSegmentLength?Ne?Ne.p(K,ve):(Ne=P1(K),Ne.c(),Ne.m(o,A)):Ne&&(Ne.d(1),Ne=null),(!J||ve&4)&&Ye(Y,K[2]),(!J||ve&2)&&Ye(ee,K[1]),K[0].speed?Te?(Te.p(K,ve),ve&1&&d(Te,1)):(Te=I1(K),Te.c(),d(Te,1),Te.m(o,F)):Te&&(ue(),_(Te,1,1,()=>{Te=null}),fe()),K[0].bitrate?ze?(ze.p(K,ve),ve&1&&d(ze,1)):(ze=E1(K),ze.c(),d(ze,1),ze.m(o,ne)):ze&&(ue(),_(ze,1,1,()=>{ze=null}),fe());let et={};ve&16&&(et.values=K[4]),qe.$set(et),(!J||ve&8)&&Ye(He,K[3]),(!J||ve&128)&&H(e,"container-mobile",K[7])},i(K){J||(d(Te),d(ze),d(qe.$$.fragment,K),J=!0)},o(K){_(Te),_(ze),_(qe.$$.fragment,K),J=!1},d(K){K&&C(e),Oe&&Oe.d(),rt&&rt.d(),Ce&&Ce.d(),Je&&Je.d(),at&&at.d(),Ge&&Ge.d(),Ke&&Ke.d(),$e&&$e.d(),de&&de.d(),Ne&&Ne.d(),Te&&Te.d(),ze&&ze.d(),D(qe),ke=!1,it()}}}var A1=({value:i})=>i,M1=({value:i,title:e})=>`${e} ${((i!=null?i:0)/1e3).toFixed(2)} s`;function S2(i,e,t){let n,o=st(),r=o.ui.debugPanelVisible,l=o.ui.isMobile;z(i,l,b=>t(7,n=b));let a=()=>{ua.safeStorage.remove(Hl),r.set(!1)},s=o.actions.internal.getDebugPanelData(),u=o.actions.internal.getVideoElement(),c=0,m=0,h=0,w=new kl(60),g=new kl(60),k=new kl(60),y=[],I=[],v=[];return Ot(()=>{ua.safeStorage.set(Hl,"true"),o.actions.internal.startLogging(),u&&(t(2,m=u.getVideoPlaybackQuality().droppedVideoFrames),t(1,c=u.getVideoPlaybackQuality().totalVideoFrames));let b=window.setInterval(()=>{t(0,s=o.actions.internal.getDebugPanelData())},500),E;return u&&(E=window.setInterval(()=>{if(u){t(2,m=u.getVideoPlaybackQuality().droppedVideoFrames);let A=u.getVideoPlaybackQuality().totalVideoFrames;t(3,h=A-c),t(1,c=A),w.push(h),s.speed&&g.push(s.speed),s.bitrate&&k.push(s.bitrate),t(4,y=w.getValuesFromBottom()),t(5,I=g.getValuesFromBottom()),t(6,v=k.getValuesFromBottom())}},1e3)),()=>{o.actions.internal.stopLogging(),clearInterval(b),E&&clearInterval(E)}}),[s,c,m,h,y,I,v,n,l,a]}var fa=class extends W{constructor(e){super(),Q(this,e,S2,C2,j,{},k2)}},Ar=fa;function T2(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 P2(i){let e,t,n;return{c(){e=T("div"),f(e,"class","close svelte-1ome55p")},m(o,r){S(o,e,r),t||(n=me(e,"click",ft(i[0])),t=!0)},p:he,i:he,o:he,d(o){o&&C(e),t=!1,n()}}}function I2(i){function e(t){Fn.call(this,i,t)}return[e]}var ca=class extends W{constructor(e){super(),Q(this,e,I2,P2,j,{},T2)}},V1=ca;var L1=require("@vkontakte/videoplayer-shared");function E2(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 A2(i){let e,t,n,o,r,l,a;return{c(){e=T("div"),t=T("canvas"),n=O(),o=q("svg"),r=q("g"),l=q("g"),a=q("path"),f(t,"class","timer-canvas svelte-8jhsry"),f(t,"width","100"),f(t,"height","100"),f(a,"class","_play"),f(a,"d","m8.13340613 5.10548415 10.49681277 6.24354325c.3559987.2117494.472936.6720001.2611866 1.0279989-.0638111.1072809-.1533894.1969388-.2606135.2608453l-10.4968128 6.256187c-.35581027.2120659-.81616483.095538-1.02823068-.2602722-.06921066-.1161237-.10574852-.2487949-.10574852-.3839792v-12.49973035c0-.41421357.33578644-.75.75-.75.13495801 0 .26741554.03641567.38340613.1054073z"),f(a,"fill","#fff"),f(l,"fill-rule","nonzero"),f(r,"fill","none"),f(r,"fill-rule","evenodd"),f(o,"class","timer-play-icon svelte-8jhsry"),f(o,"viewBox","0 0 24 24"),f(o,"xmlns","http://www.w3.org/2000/svg"),f(e,"class","timer svelte-8jhsry")},m(s,u){S(s,e,u),p(e,t),i[2](t),p(e,n),p(e,o),p(o,r),p(r,l),p(l,a)},p:he,i:he,o:he,d(s){s&&C(e),i[2](null)}}}var M2=5e3;function V2(i,e,t){let{onTimerEnded:n=L1.noop}=e,o;Ot(()=>{let l,a=o.getContext("2d");if(!a)return;a.lineWidth=6,a.lineCap="round",a.strokeStyle="#fff";let s=Date.now(),u=()=>{let c=(Date.now()-s)/M2;c<1?(a.clearRect(0,0,100,100),a.beginPath(),a.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*c),a.stroke(),l=requestAnimationFrame(u)):n()};return l=requestAnimationFrame(u),()=>{cancelAnimationFrame(l)}});function r(l){pe[l?"unshift":"push"](()=>{o=l,t(0,o)})}return i.$$set=l=>{"onTimerEnded"in l&&t(1,n=l.onTimerEnded)},[o,n,r]}var da=class extends W{constructor(e){super(),Q(this,e,V2,A2,j,{onTimerEnded:1},E2)}},R1=da;function L2(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 B1(i){let e,t;return e=new R1({props:{onTimerEnded:i[2]}}),{c(){N(e.$$.fragment)},m(n,o){B(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){D(e,n)}}}function R2(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,g,k,y,I,v,b,E,A;a=new V1({}),a.$on("click",i[4]);let L=i[3]&&B1(i);return{c(){e=T("div"),t=O(),n=T("div"),o=T("div"),r=T("div"),r.textContent="\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",l=O(),N(a.$$.fragment),s=O(),u=T("div"),c=T("div"),m=T("div"),h=T("div"),w=O(),L&&L.c(),k=O(),y=T("div"),I=T("div"),v=Ve(i[0]),f(e,"class","overlay svelte-kisfwc"),f(r,"class","caption svelte-kisfwc"),f(o,"class","top svelte-kisfwc"),f(h,"class","thumb-overlay svelte-kisfwc"),f(m,"class","thumb svelte-kisfwc"),f(m,"style",g=`background-image: url('${i[1]}')`),f(c,"class","column svelte-kisfwc"),f(I,"class","title svelte-kisfwc"),f(y,"class","column svelte-kisfwc"),f(u,"class","row svelte-kisfwc"),f(n,"class","next-video svelte-kisfwc")},m(R,le){S(R,e,le),S(R,t,le),S(R,n,le),p(n,o),p(o,r),p(o,l),B(a,o,null),p(n,s),p(n,u),p(u,c),p(c,m),p(m,h),p(m,w),L&&L.m(m,null),p(u,k),p(u,y),p(y,I),p(I,v),b=!0,E||(A=me(u,"click",function(){Li(i[2])&&i[2].apply(this,arguments)}),E=!0)},p(R,[le]){i=R,i[3]?L?(L.p(i,le),le&8&&d(L,1)):(L=B1(i),L.c(),d(L,1),L.m(m,null)):L&&(ue(),_(L,1,1,()=>{L=null}),fe()),(!b||le&2&&g!==(g=`background-image: url('${i[1]}')`))&&f(m,"style",g),(!b||le&1)&&Ye(v,i[0])},i(R){b||(d(a.$$.fragment,R),d(L),b=!0)},o(R){_(a.$$.fragment,R),_(L),b=!1},d(R){R&&(C(e),C(t),C(n)),D(a),L&&L.d(),E=!1,A()}}}function B2(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 ma=class extends W{constructor(e){super(),Q(this,e,B2,R2,j,{title:0,thumb:1,playNextVideo:2},L2)}},D1=ma;var Po=require("@vkontakte/videoplayer-core"),N1=require("@vkontakte/videoplayer-shared"),An=require("@vkontakte/videoplayer-statistics");var pa=(i,e)=>Math.min(+(i+e).toFixed(2),1),_a=(i,e)=>Math.max(+(i-e).toFixed(2),0),Mr=(i,e,t)=>{let n=pa(e,t);e<1&&i.actions.internal.setVolume(n)},Vr=(i,e,t)=>{let n=_a(e,t);e>0&&i.actions.internal.setVolume(n)};var To=({isAudioDisabled:i,audioDisabledHintCallback:e,isAudioAvailable:t,audioIsNotExistHintCallback:n})=>i?(e==null||e(),!1):t?!0:(n==null||n(),!1);function N2(i){Se(i,"svelte-10kkmxz",".keyboard-controls.svelte-10kkmxz{position:absolute;left:0;right:0;top:0;bottom:0}")}function q2(i){let e,t,n,o,r,l=i[26].default,a=Ie(l,i,i[25],null);return{c(){e=T("div"),a&&a.c(),f(e,"class","keyboard-controls svelte-10kkmxz"),f(e,"tabindex","-1"),f(e,"role","region"),f(e,"aria-label",t=G("aria_label_video_player"))},m(s,u){S(s,e,u),a&&a.m(e,null),i[27](e),n=!0,o||(r=[me(e,"keyup",i[17]),me(e,"keydown",i[16])],o=!0)},p(s,u){a&&a.p&&(!n||u[0]&33554432)&&Ae(a,l,s,s[25],n?Ee(l,s[25],u,null):Me(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,nt(r)}}}function O2(i,e,t){var _t,vt;let n,o,r,l,a,s,u,c,m,h,w,g,k,y,I,{$$slots:v={},$$scope:b}=e,{isAds:E}=e,{hideContextMenu:A}=e,{toggleFullscreen:L}=e,{showHotKeyHelpers:R}=e,{showKeyMap:le}=e,{fakePlayButtonHandler:ae}=e,Y=st(),V=Zt(),ee=Y.getLogger().createComponentLog("KeyboardControls component"),X=Y.state.playbackState$;z(i,X,ce=>t(31,o=ce));let se=Y.ads.playbackState;z(i,se,ce=>t(30,n=ce));let F=Y.state.positionExact$;z(i,F,ce=>t(41,g=ce));let ne=Y.state.duration$;z(i,ne,ce=>t(40,w=ce));let P=Y.state.volume$;z(i,P,ce=>t(44,I=ce));let U=Y.ui.controls.disabledControls$;z(i,U,ce=>t(39,h=ce));let we=Y.state.muted$;z(i,we,ce=>t(34,a=ce));let qe=Y.state.currentSubtitle$;z(i,qe,ce=>t(33,l=ce));let Ze=Y.state.currentPlaybackRate$;z(i,Ze,ce=>t(42,k=ce));let Xe=Y.state.availablePlaybackRates$;z(i,Xe,ce=>t(43,y=ce));let He=Y.ui.contextMenu.openedByHotKey$,ye=Y.ui.contextMenu.lastActiveElem$,J=Y.ui.contextMenu.visible$,ke=Y.ui.contextMenu.position$,it=Y.state.isEnded$;z(i,it,ce=>t(36,u=ce));let Oe=Y.ui.overlayContainer$;z(i,Oe,ce=>t(32,r=ce));let rt=(_t=Y.callbacks)==null?void 0:_t.onAudioDoesNotExistHint,Ce=(vt=Y.callbacks)==null?void 0:vt.onAudioDisabledHint,Je=Y.state.isAudioAvailable$;z(i,Je,ce=>t(35,s=ce));let at=Y.state.isAudioDisabled,Ge=Y.state.isInteractiveTime$;z(i,Ge,ce=>t(38,m=ce));let{showInteractiveTimeIndicatorTooltip$:Ke}=Qn();z(i,Ke,ce=>t(37,c=ce));let $e=0,de=!0,Ne,Te=()=>Ne==null?void 0:Ne.focus(),ze=ce=>(ce!==de&&(de=ce,$e=0),$e+=1,(V.controls.seekStepKeyboard+V.controls.seekStepKeyboard*$e)/1e3),K=ce=>{var _e;let bt=ce.target,Mt=(_e=bt==null?void 0:bt.getAttribute("role"))==null?void 0:_e.includes("menuitem"),St=bt.classList.contains("btn"),je=ce.code;if(St&&je==="Space")return;let jt=dc.has(je);if(Mt&&jt)return;let Vt=!cc.has(je);if(ce.ctrlKey&&Vt||ce.altKey&&Vt||ce.metaKey)return;let Pt=Mt&&je==="Escape";mc.has(je)||Pt||A();let oi=o===Po.PlaybackState.PLAYING||o===Po.PlaybackState.PAUSED,Bt=E&&(n==="paused"||n==="playing"),Dt=!Bt&&!h.has("TIMELINE");if(oi||Bt)switch(ee({message:`key down, code: ${je}`}),je){case"KeyJ":case"ArrowLeft":{if(!Dt)break;if(ce.ctrlKey||ce.altKey){let We=Y.actions.internal.getPrevEpisode();Y.actions.internal.seekToPrevEpisode(We),We&&R({type:"EPISODE_PREV",text:We.text}),ce.preventDefault()}else{let We=ce.shiftKey?ze(!1):V.controls.seekStepKeyboard/1e3,xe=Math.max(g-We,0);g>0&&(Y.actions.internal.seekTime(xe,An.SeekAction.DOUBLE_TAP),R({type:"BACKWARD_SEEK",text:We.toString()}),ce.preventDefault())}break}case"KeyL":case"ArrowRight":{if(!Dt)break;if(ce.ctrlKey||ce.altKey){let We=Y.actions.internal.getNextEpisode();Y.actions.internal.seekToNextEpisode(We),We&&R({type:"EPISODE_NEXT",text:We.text}),ce.preventDefault()}else{let We=ce.shiftKey?ze(!0):V.controls.seekStepKeyboard/1e3,xe=Math.min(g+We,w);Math.round(g)<Math.round(w)&&(Y.actions.internal.seekTime(xe,An.SeekAction.DOUBLE_TAP),R({type:"FORWARD_SEEK",text:We.toString()}),ce.preventDefault())}break}case"ArrowUp":{if(To({isAudioDisabled:at,audioDisabledHintCallback:Ce,isAudioAvailable:s,audioIsNotExistHintCallback:rt})){let We=I,xe=V.controls.volumeStepKeyboard,lt=We<=1;if(Mr(Y,We,xe),lt){let ht=Math.round(pa(We,xe)*100).toString();R({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:ht}})}}ce.preventDefault();break}case"ArrowDown":{if(To({isAudioDisabled:at,audioDisabledHintCallback:Ce,isAudioAvailable:s,audioIsNotExistHintCallback:rt})){let We=I,xe=V.controls.volumeStepKeyboard,lt=We>=0;if(Vr(Y,We,xe),lt){let ht=Math.round(_a(We,xe)*100).toString();R({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:ht}})}}ce.preventDefault();break}case"Comma":{if(ce.shiftKey){Y.actions.internal.decrementPlaybackRate();let We=y.find(xe=>xe.value===k);R({type:"RATE_DOWN",text:We==null?void 0:We.displayValue}),ce.preventDefault()}else{if(Bt||o!==Po.PlaybackState.PAUSED)break;let We=Math.max(g-V.controls.seekStepFrame/1e3,0);g>0&&(R({type:"BACKWARD_SEEK"}),Y.actions.internal.clearDelayedBufferingCheckTimeout(),Y.actions.internal.seekTime(We,An.SeekAction.DOUBLE_TAP),ce.preventDefault())}break}case"Period":{if(ce.shiftKey){Y.actions.internal.incrementPlaybackRate();let We=y.find(xe=>xe.value===k);R({type:"RATE_UP",text:We==null?void 0:We.displayValue}),ce.preventDefault()}else{if(Bt||o!==Po.PlaybackState.PAUSED)break;let We=Math.min(g+V.controls.seekStepFrame/1e3,w);g<w&&(R({type:"FORWARD_SEEK"}),Y.actions.internal.clearDelayedBufferingCheckTimeout(),Y.actions.internal.seekTime(We,An.SeekAction.DOUBLE_TAP),ce.preventDefault())}break}case"KeyK":case"Space":if(!h.has("PLAY_BUTTON"))if(m&&c&&Ke.set(!1),ae)ae();else{Y.actions.internal.togglePlay();let We="PLAY";o===Po.PlaybackState.PAUSED?We="PAUSE":u&&(We="REPLAY"),R({type:We})}ce.preventDefault();break;case"KeyM":{To({isAudioDisabled:at,audioDisabledHintCallback:Ce,isAudioAvailable:s,audioIsNotExistHintCallback:rt})&&(R({type:a?"VOLUME":"MUTE"}),Y.actions.internal.toggleMuted()),ce.preventDefault();break}case"KeyF":L(),ce.preventDefault();break;case"KeyC":Y.actions.internal.toggleSubtitle(),l.value!=="off"?R({type:"SUBTITLES_ON",text:l==null?void 0:l.displayValue}):R({type:"SUBTITLES_OFF"}),ce.preventDefault();break;case"KeyI":Y.actions.internal.togglePictureInPicture(),ce.preventDefault();break;case"Digit1":case"Numpad1":if(ce.shiftKey){let We=f1(r);ke.set(We),ye.set(bt),He.set(!0),J.set(!0),ce.preventDefault();break}R(),Y.actions.internal.seekToPercent(.1,An.SeekAction.DOUBLE_TAP),ce.preventDefault();break;case"Digit2":case"Numpad2":R(),Y.actions.internal.seekToPercent(.2,An.SeekAction.DOUBLE_TAP),ce.preventDefault();break;case"Digit3":case"Numpad3":R(),Y.actions.internal.seekToPercent(.3,An.SeekAction.DOUBLE_TAP),ce.preventDefault();break;case"Digit4":case"Numpad4":R(),Y.actions.internal.seekToPercent(.4,An.SeekAction.DOUBLE_TAP),ce.preventDefault();break;case"Digit5":case"Numpad5":R(),Y.actions.internal.seekToPercent(.5,An.SeekAction.DOUBLE_TAP),ce.preventDefault();break;case"Digit6":case"Numpad6":R(),Y.actions.internal.seekToPercent(.6,An.SeekAction.DOUBLE_TAP),ce.preventDefault();break;case"Digit7":case"Numpad7":R(),Y.actions.internal.seekToPercent(.7,An.SeekAction.DOUBLE_TAP),ce.preventDefault();break;case"Digit8":case"Numpad8":R(),Y.actions.internal.seekToPercent(.8,An.SeekAction.DOUBLE_TAP),ce.preventDefault();break;case"Digit9":case"Numpad9":R(),Y.actions.internal.seekToPercent(.9,An.SeekAction.DOUBLE_TAP),ce.preventDefault();break;case"Digit0":case"Numpad0":R(),Y.actions.internal.seekToPercent(0,An.SeekAction.DOUBLE_TAP),ce.preventDefault();break;case"Slash":{ce.shiftKey&&V.features.hotKeyMapModal&&(le(),ce.preventDefault());break}case"ShiftLeft":case"ShiftRight":ce.preventDefault();break;case"Tab":case"Escape":case"Enter":break;default:(0,N1.checkNever)(je);break}},ve=ce=>{let bt=ce.code;if(ce.ctrlKey||ce.altKey||ce.metaKey)return;let Mt=o===Po.PlaybackState.PLAYING||o===Po.PlaybackState.PAUSED,St=E&&(n==="paused"||n==="playing");if(Mt||St)switch(bt){case"ShiftLeft":case"ShiftRight":$e=0;break}};function et(ce){pe[ce?"unshift":"push"](()=>{Ne=ce,t(0,Ne)})}return i.$$set=ce=>{"isAds"in ce&&t(18,E=ce.isAds),"hideContextMenu"in ce&&t(19,A=ce.hideContextMenu),"toggleFullscreen"in ce&&t(20,L=ce.toggleFullscreen),"showHotKeyHelpers"in ce&&t(21,R=ce.showHotKeyHelpers),"showKeyMap"in ce&&t(22,le=ce.showKeyMap),"fakePlayButtonHandler"in ce&&t(23,ae=ce.fakePlayButtonHandler),"$$scope"in ce&&t(25,b=ce.$$scope)},[Ne,X,se,F,ne,P,U,we,qe,Ze,Xe,it,Oe,Je,Ge,Ke,K,ve,E,A,L,R,le,ae,Te,b,v,et]}var ha=class extends W{constructor(e){super(),Q(this,e,O2,q2,j,{isAds:18,hideContextMenu:19,toggleFullscreen:20,showHotKeyHelpers:21,showKeyMap:22,fakePlayButtonHandler:23,focus:24},N2,[-1,-1])}get focus(){return this.$$.ctx[24]}},q1=ha;function F2(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 H2(i){let e;return{c(){e=T("div"),e.innerHTML='<div class="dot svelte-8nkw5s"></div> <div class="dot svelte-8nkw5s"></div> <div class="dot svelte-8nkw5s"></div>',f(e,"class","container svelte-8nkw5s")},m(t,n){S(t,e,n)},p:he,i:he,o:he,d(t){t&&C(e)}}}var ga=class extends W{constructor(e){super(),Q(this,e,null,H2,j,{},F2)}},Lr=ga;function z2(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,g,k=i[2].default,y=Ie(k,i,i[1],null),I=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"cross-icon"},{role:"img"},i[0]],v={};for(let b=0;b<I.length;b+=1)v=re(v,I[b]);return{c(){e=q("svg"),y&&y.c(),t=q("g"),n=q("path"),o=q("path"),r=q("defs"),l=q("filter"),a=q("feFlood"),s=q("feColorMatrix"),u=q("feOffset"),c=q("feGaussianBlur"),m=q("feColorMatrix"),h=q("feBlend"),w=q("feBlend"),f(n,"fill","#fff"),f(n,"d","M7.536 6.264a.9.9 0 0 0-1.272 1.272L10.727 12l-4.463 4.464a.9.9 0 0 0 1.272 1.272L12 13.273l4.464 4.463a.9.9 0 1 0 1.272-1.272L13.273 12l4.463-4.464a.9.9 0 1 0-1.272-1.272L12 10.727z"),f(o,"stroke","#000"),f(o,"stroke-opacity",".12"),f(o,"stroke-width",".5"),f(o,"d","M7.713 6.087a1.15 1.15 0 1 0-1.626 1.626L10.374 12l-4.287 4.287a1.15 1.15 0 0 0 1.626 1.626L12 13.626l4.287 4.287a1.15 1.15 0 0 0 1.626-1.626L13.626 12l4.287-4.287a1.15 1.15 0 1 0-1.626-1.626L12 10.374z"),f(t,"filter","url(#a)"),f(a,"flood-opacity","0"),f(a,"result","BackgroundImageFix"),f(s,"in","SourceAlpha"),f(s,"result","hardAlpha"),f(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(c,"stdDeviation","2.5"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(h,"in2","BackgroundImageFix"),f(h,"result","effect1_dropShadow_2422_111980"),f(w,"in","SourceGraphic"),f(w,"in2","effect1_dropShadow_2422_111980"),f(w,"result","shape"),f(l,"id","a"),f(l,"width","23"),f(l,"height","23"),f(l,"x",".5"),f(l,"y",".5"),f(l,"color-interpolation-filters","sRGB"),f(l,"filterUnits","userSpaceOnUse"),be(e,v)},m(b,E){S(b,e,E),y&&y.m(e,null),p(e,t),p(t,n),p(t,o),p(e,r),p(r,l),p(l,a),p(l,s),p(l,u),p(l,c),p(l,m),p(l,h),p(l,w),g=!0},p(b,[E]){y&&y.p&&(!g||E&2)&&Ae(y,k,b,b[1],g?Ee(k,b[1],E,null):Me(b[1]),null),be(e,v=Le(I,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"cross-icon"},{role:"img"},E&1&&b[0]]))},i(b){g||(d(y,b),g=!0)},o(b){_(y,b),g=!1},d(b){b&&C(e),y&&y.d(b)}}}function U2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var ba=class extends W{constructor(e){super(),Q(this,e,U2,z2,j,{})}},O1=ba;var io=require("@vkontakte/videoplayer-shared");function K2(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 j2(i){let e,t,n,o,r,l,a,s,u,c,m,h,w=i[14].default,g=Ie(w,i,i[13],null);return{c(){var k,y,I,v,b,E;e=T("button"),g&&g.c(),f(e,"class",t="btn "+i[1]+" svelte-1anemql"),f(e,"style",n=i[2]||null),e.disabled=o=(k=i[3])!=null?k:null,f(e,"aria-hidden",r=(y=i[5])!=null?y:null),f(e,"aria-label",l=(I=i[6])!=null?I:null),f(e,"aria-keyshortcuts",a=(v=i[7])!=null?v:null),f(e,"aria-expanded",s=(b=i[8])!=null?b:null),f(e,"data-testid",u=(E=i[4])!=null?E:null),f(e,"tabindex",i[9])},m(k,y){S(k,e,y),g&&g.m(e,null),i[16](e),c=!0,m||(h=[me(e,"pointerdown",ft(qt(i[15]))),me(e,"click",ft(qt(function(){Li(i[10]===io.noop?null:i[10])&&(i[10]===io.noop?null:i[10]).apply(this,arguments)}))),me(e,"focus",qt(function(){Li(i[11]===io.noop?null:i[11])&&(i[11]===io.noop?null:i[11]).apply(this,arguments)})),me(e,"blur",qt(function(){Li(i[12]===io.noop?null:i[12])&&(i[12]===io.noop?null:i[12]).apply(this,arguments)}))],m=!0)},p(k,[y]){var I,v,b,E,A,L;i=k,g&&g.p&&(!c||y&8192)&&Ae(g,w,i,i[13],c?Ee(w,i[13],y,null):Me(i[13]),null),(!c||y&2&&t!==(t="btn "+i[1]+" svelte-1anemql"))&&f(e,"class",t),(!c||y&4&&n!==(n=i[2]||null))&&f(e,"style",n),(!c||y&8&&o!==(o=(I=i[3])!=null?I:null))&&(e.disabled=o),(!c||y&32&&r!==(r=(v=i[5])!=null?v:null))&&f(e,"aria-hidden",r),(!c||y&64&&l!==(l=(b=i[6])!=null?b:null))&&f(e,"aria-label",l),(!c||y&128&&a!==(a=(E=i[7])!=null?E:null))&&f(e,"aria-keyshortcuts",a),(!c||y&256&&s!==(s=(A=i[8])!=null?A:null))&&f(e,"aria-expanded",s),(!c||y&16&&u!==(u=(L=i[4])!=null?L:null))&&f(e,"data-testid",u),(!c||y&512)&&f(e,"tabindex",i[9])},i(k){c||(d(g,k),c=!0)},o(k){_(g,k),c=!1},d(k){k&&C(e),g&&g.d(k),i[16](null),m=!1,nt(h)}}}function W2(i,e,t){let{$$slots:n={},$$scope:o}=e,{className:r=""}=e,{style:l=""}=e,{disabled:a=void 0}=e,{testId:s=void 0}=e,{ariaHidden:u=void 0}=e,{ariaLabel:c=void 0}=e,{ref:m=void 0}=e,{ariaKeyShortCut:h=void 0}=e,{ariaExpanded:w=void 0}=e,{tabIndex:g=0}=e,{click:k=io.noop}=e,{focus:y=io.noop}=e,{blur:I=io.noop}=e;function v(E){Fn.call(this,i,E)}function b(E){pe[E?"unshift":"push"](()=>{m=E,t(0,m)})}return i.$$set=E=>{"className"in E&&t(1,r=E.className),"style"in E&&t(2,l=E.style),"disabled"in E&&t(3,a=E.disabled),"testId"in E&&t(4,s=E.testId),"ariaHidden"in E&&t(5,u=E.ariaHidden),"ariaLabel"in E&&t(6,c=E.ariaLabel),"ref"in E&&t(0,m=E.ref),"ariaKeyShortCut"in E&&t(7,h=E.ariaKeyShortCut),"ariaExpanded"in E&&t(8,w=E.ariaExpanded),"tabIndex"in E&&t(9,g=E.tabIndex),"click"in E&&t(10,k=E.click),"focus"in E&&t(11,y=E.focus),"blur"in E&&t(12,I=E.blur),"$$scope"in E&&t(13,o=E.$$scope)},[m,r,l,a,s,u,c,h,w,g,k,y,I,o,n,v,b]}var va=class extends W{constructor(e){super(),Q(this,e,W2,j2,j,{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},K2)}},wt=va;function G2(i){Se(i,"svelte-1witlsj",".modal-overlay.svelte-1witlsj{position:absolute;top:0;bottom:0;left:0;right:0;background:transparent;display:flex;align-items:center;justify-content:center}.modal-container.svelte-1witlsj{display:flex;flex-direction:column;width:calc(100% - 32px);max-width:600px;height:calc(100% - 24px);max-height:490px;background:var(--mobile-settings-bg);color:var(--white);border-radius:8px}.modal-header.svelte-1witlsj{box-sizing:border-box;display:flex;justify-content:space-between;align-items:start;height:40px;padding:8px 10px;border-bottom:1px solid var(--white-alpha-24)}.modal-title.svelte-1witlsj{margin:3px 0 0 6px;color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px}.modal-scroll.svelte-1witlsj{overflow-y:auto;overflow-x:hidden;margin:8px 4px 8px 0;height:100%}.modal-scroll.svelte-1witlsj::-webkit-scrollbar{width:8px}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-track{box-shadow:none;background-color:transparent;border-radius:4px;margin-right:2px}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb{min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb:hover{background-color:#777}.modal-main.svelte-1witlsj{margin:-8px -4px 0 0}")}function F1(i){let e,t,n,o,r,l=i[2]&&H1(i);return{c(){e=T("div"),t=T("h3"),n=Ve(i[3]),o=O(),l&&l.c(),f(t,"class","modal-title svelte-1witlsj"),f(e,"class","modal-header svelte-1witlsj")},m(a,s){S(a,e,s),p(e,t),p(t,n),p(e,o),l&&l.m(e,null),r=!0},p(a,s){(!r||s&8)&&Ye(n,a[3]),a[2]?l?(l.p(a,s),s&4&&d(l,1)):(l=H1(a),l.c(),d(l,1),l.m(e,null)):l&&(ue(),_(l,1,1,()=>{l=null}),fe())},i(a){r||(d(l),r=!0)},o(a){_(l),r=!1},d(a){a&&C(e),l&&l.d()}}}function H1(i){let e,t;return e=new wt({props:{click:i[0],testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:G("hotkey_map_modal_close_btn_text"),$$slots:{default:[Q2]},$$scope:{ctx:i}}}),{c(){N(e.$$.fragment)},m(n,o){B(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){D(e,n)}}}function Q2(i){let e,t;return e=new O1({}),{c(){N(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Y2(i){let e,t,n,o,r,l,a=i[1]&&F1(i),s=i[4].default,u=Ie(s,i,i[5],null);return{c(){e=T("div"),t=T("div"),a&&a.c(),n=O(),o=T("div"),r=T("div"),u&&u.c(),f(r,"class","modal-main svelte-1witlsj"),f(o,"class","modal-scroll svelte-1witlsj"),f(t,"class","modal-container svelte-1witlsj"),f(e,"class","modal-overlay svelte-1witlsj")},m(c,m){S(c,e,m),p(e,t),a&&a.m(t,null),p(t,n),p(t,o),p(o,r),u&&u.m(r,null),l=!0},p(c,[m]){c[1]?a?(a.p(c,m),m&2&&d(a,1)):(a=F1(c),a.c(),d(a,1),a.m(t,n)):a&&(ue(),_(a,1,1,()=>{a=null}),fe()),u&&u.p&&(!l||m&32)&&Ae(u,s,c,c[5],l?Ee(s,c[5],m,null):Me(c[5]),null)},i(c){l||(d(a),d(u,c),l=!0)},o(c){_(a),_(u,c),l=!1},d(c){c&&C(e),a&&a.d(),u&&u.d(c)}}}function Z2(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 ya=class extends W{constructor(e){super(),Q(this,e,Z2,Y2,j,{onClose:0,showHeader:1,showCloseCross:2,title:3},G2)}},z1=ya;var X2=new Set(["BR"]),wa=i=>{var o;let e=document.createElement("DIV");e.innerHTML=i;let t=e.querySelectorAll("*"),n=t.length;for(;n--;){let r=t[n],l=r.tagName;X2.has(l)||(o=r.parentElement)==null||o.removeChild(r)}return e.innerHTML};function J2(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 U1(i,e,t){let n=i.slice();return n[5]=e[t].title,n[6]=e[t].items,n}function K1(i,e,t){let n=i.slice();return n[9]=e[t].description,n[10]=e[t].value,n}function j1(i){let e,t,n=wa(i[9])+"",o,r,l=i[10]+"",a,s;return{c(){e=T("li"),t=T("span"),o=O(),r=T("span"),a=Ve(l),s=O(),f(t,"class","hot-key-map-item-description svelte-quklnq"),f(r,"class","hot-key-map-item-value svelte-quklnq"),f(e,"class","hot-key-map-item svelte-quklnq")},m(u,c){S(u,e,c),p(e,t),t.innerHTML=n,p(e,o),p(e,r),p(r,a),p(e,s)},p(u,c){c&1&&n!==(n=wa(u[9])+"")&&(t.innerHTML=n),c&1&&l!==(l=u[10]+"")&&Ye(a,l)},d(u){u&&C(e)}}}function W1(i){let e,t,n=i[5]+"",o,r,l,a,s=Tt(i[6]),u=[];for(let c=0;c<s.length;c+=1)u[c]=j1(K1(i,s,c));return{c(){e=T("div"),t=T("h5"),o=Ve(n),r=O(),l=T("ul");for(let c=0;c<u.length;c+=1)u[c].c();a=O(),f(t,"class","hot-key-map-group-title svelte-quklnq"),f(l,"class","hot-key-map-group-items svelte-quklnq"),f(e,"class","hot-key-map-group svelte-quklnq")},m(c,m){S(c,e,m),p(e,t),p(t,o),p(e,r),p(e,l);for(let h=0;h<u.length;h+=1)u[h]&&u[h].m(l,null);p(e,a)},p(c,m){if(m&1&&n!==(n=c[5]+"")&&Ye(o,n),m&1){s=Tt(c[6]);let h;for(h=0;h<s.length;h+=1){let w=K1(c,s,h);u[h]?u[h].p(w,m):(u[h]=j1(w),u[h].c(),u[h].m(l,null))}for(;h<u.length;h+=1)u[h].d(1);u.length=s.length}},d(c){c&&C(e),Ri(u,c)}}}function x2(i){let e,t=Tt(i[0].groups),n=[];for(let o=0;o<t.length;o+=1)n[o]=W1(U1(i,t,o));return{c(){e=T("div");for(let o=0;o<n.length;o+=1)n[o].c();f(e,"class","hot-key-map svelte-quklnq")},m(o,r){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=Tt(o[0].groups);let l;for(l=0;l<t.length;l+=1){let a=U1(o,t,l);n[l]?n[l].p(a,r):(n[l]=W1(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),Ri(n,o)}}}function $2(i){let e,t;return e=new z1({props:{title:i[0].title,onClose:i[2],$$slots:{default:[x2]},$$scope:{ctx:i}}}),{c(){N(e.$$.fragment)},m(n,o){B(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){D(e,n)}}}function eg(i,e,t){let n,o=st(),{data:r,show:l}=o.ui.modals.hotKeyMap;return z(i,r,s=>t(0,n=s)),[n,r,()=>{l.set(!1)}]}var ka=class extends W{constructor(e){super(),Q(this,e,eg,$2,j,{},J2)}},G1=ka;var ds=require("@vkontakte/videoplayer-shared");var el=require("@vkontakte/videoplayer-core");var Hd=require("@vkontakte/videoplayer-core");var Jo={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"},Q1={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 tg=i=>{var e,t;return(t=(e=Jo[i])!=null?e:Jo[Q1[i]])!=null?t:void 0},Rr=(i,e)=>String(e.findIndex(t=>t.id===i.id)+1),co=(i,e)=>{var l;if(!i)return"";let{language:t,label:n}=i,o;if(t==="und"?o=void 0:t&&(o=(l=tg(t))!=null?l:t),n&&t&&o){let a=e.filter(s=>s.label===n&&s.language===t);if(a.length===1)return G("audio_stream_display_language_label",{language:o,label:n});{let s=Rr(i,a);return G("audio_stream_display_language_label_index",{language:o,label:n,index:s})}}if(n){let a=e.filter(s=>s.label===n);if(a.length===1)return n;{let s=Rr(i,a);return G("audio_stream_display_label_index",{label:n,index:s})}}if(t&&o){let a=e.filter(s=>s.language===t);if(a.length===1)return o;{let s=Rr(i,a);return G("audio_stream_display_language_index",{language:o,index:s})}}let r=Rr(i,e);return G("audio_stream_display_unknown",{index:r})};var sC=require("@vkontakte/videoplayer-shared");function ig(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 ng(i){let e,t,n=i[1].default,o=Ie(n,i,i[0],null);return{c(){e=T("div"),o&&o.c(),f(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)&&Ae(o,n,r,r[0],t?Ee(n,r[0],l,null):Me(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 og(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{"$$scope"in r&&t(0,o=r.$$scope)},[o,n]}var Ca=class extends W{constructor(e){super(),Q(this,e,og,ng,j,{},ig)}},Y1=Ca;var Cl=require("@vkontakte/videoplayer-core");function lg(i){let e,t,n,o,r=i[2].default,l=Ie(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=re(s,a[u]);return{c(){e=q("svg"),l&&l.c(),t=q("path"),n=q("path"),f(t,"fill","currentColor"),f(t,"d","M5.517 5c.325 0 .516-.198.516-.536v-.97l.492-.517 1.46 1.74c.16.205.304.283.516.283A.49.49 0 0 0 9 4.501c0-.14-.068-.287-.222-.478l-1.47-1.73L8.818.868C8.949.731 9 .618 9 .475A.474.474 0 0 0 8.515 0c-.171 0-.301.065-.445.222L6.064 2.25h-.03V.54c0-.342-.192-.54-.517-.54s-.516.198-.516.54v3.924c0 .338.191.536.516.536"),f(n,"fill","currentColor"),f(n,"fill-rule","evenodd"),f(n,"d","m2.551 1.052-1.51 2.052h1.51zM3.5 3.104V.832c0-.81-1.089-1.14-1.556-.48L.139 2.821a.75.75 0 0 0 .612 1.183h1.8v.55c0 .248.25.45.499.45a.45.45 0 0 0 .45-.45v-.55h.052a.45.45 0 0 0 0-.9z"),f(n,"clip-rule","evenodd"),be(e,s)},m(u,c){S(u,e,c),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[c]){l&&l.p&&(!o||c&2)&&Ae(l,r,u,u[1],o?Ee(r,u[1],c,null):Me(u[1]),null),be(e,s=Le(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&C(e),l&&l.d(u)}}}function rg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Sa=class extends W{constructor(e){super(),Q(this,e,rg,lg,j,{})}},Z1=Sa;function sg(i){let e,t,n,o,r=i[2].default,l=Ie(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=re(s,a[u]);return{c(){e=q("svg"),l&&l.c(),t=q("path"),n=q("path"),f(t,"fill","currentColor"),f(t,"d","M5.513 5c.323 0 .513-.198.513-.537v-.97l.49-.516L7.99 4.715c.16.205.302.284.513.284A.49.49 0 0 0 9 4.5c0-.14-.068-.287-.22-.478L7.293 2.293 8.82.868C8.949.731 9 .618 9 .475A.473.473 0 0 0 8.517 0c-.17 0-.299.065-.441.222L6.056 2.25h-.03V.54c0-.342-.19-.54-.513-.54S5 .198 5 .54v3.923c0 .339.19.537.513.537"),f(n,"fill","currentColor"),f(n,"fill-rule","evenodd"),f(n,"d","M2 0q-.53 0-.952.173a1.5 1.5 0 0 0-.654.484q-.23.312-.23.71c0 .423.208.756.613.995a1.46 1.46 0 0 0-.547.44q-.23.305-.23.71 0 .432.252.778l.001.001q.26.336.712.523Q1.418 5.001 2 5q.582 0 1.035-.186.451-.187.705-.524.26-.346.26-.777 0-.406-.23-.711a1.45 1.45 0 0 0-.552-.44c.409-.235.618-.569.618-.994a1.14 1.14 0 0 0-.238-.711 1.44 1.44 0 0 0-.653-.484A2.4 2.4 0 0 0 2 0m-.573.964C1.563.86 1.75.804 2 .804s.434.055.564.16h.001a.51.51 0 0 1 .204.43.52.52 0 0 1-.204.437c-.13.105-.315.161-.565.161s-.437-.056-.573-.161a.52.52 0 0 1-.203-.437q.002-.276.203-.43m-.345 2.522c0-.217.08-.381.233-.503.16-.122.385-.188.685-.188s.522.066.677.188q.24.181.24.503a.63.63 0 0 1-.24.523c-.155.122-.377.188-.677.188s-.524-.065-.684-.187a.64.64 0 0 1-.234-.524"),f(n,"clip-rule","evenodd"),be(e,s)},m(u,c){S(u,e,c),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[c]){l&&l.p&&(!o||c&2)&&Ae(l,r,u,u[1],o?Ee(r,u[1],c,null):Me(u[1]),null),be(e,s=Le(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&C(e),l&&l.d(u)}}}function ag(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Ta=class extends W{constructor(e){super(),Q(this,e,ag,sg,j,{})}},X1=Ta;function ug(i){let e,t,n,o=i[2].default,r=Ie(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=re(a,l[s]);return{c(){e=q("svg"),r&&r.c(),t=q("path"),f(t,"fill","currentColor"),f(t,"d","M5.516 5h1.107C8.103 5 9 4.065 9 2.5S8.103 0 6.623 0H5.516C5.191 0 5 .2 5 .537V4.46c0 .342.191.54.516.54m.516-.854V.852H6.5C7.41.852 8 1.468 8 2.5c0 1.066-.577 1.646-1.5 1.646zM.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S4 4.802 4 4.464V.54C4 .198 3.809 0 3.484 0s-.516.198-.516.54v1.531H1.032V.54C1.032.198.841 0 .516 0S0 .198 0 .54v3.989C0 4.867.191 5 .516 5"),be(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ae(r,o,s,s[1],n?Ee(o,s[1],u,null):Me(s[1]),null),be(e,a=Le(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 fg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Pa=class extends W{constructor(e){super(),Q(this,e,fg,ug,j,{})}},J1=Pa;function cg(i){let e,t,n,o=i[2].default,r=Ie(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=re(a,l[s]);return{c(){e=q("svg"),r&&r.c(),t=q("path"),f(t,"fill","currentColor"),f(t,"d","M9.516 5h1.107C12.103 5 13 4.065 13 2.5S12.103 0 10.623 0H9.516C9.191 0 9 .2 9 .537V4.46c0 .342.191.54.516.54m.516-.854V.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zM4.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S8 4.802 8 4.464V.54C8 .198 7.809 0 7.484 0s-.516.198-.516.54v1.531H5.032V.54c0-.342-.191-.54-.516-.54S4 .198 4 .54v3.989c0 .338.191.471.516.471m-4 0c.325 0 .516-.198.516-.537V3h1.332c.27 0 .441-.154.441-.41 0-.253-.174-.407-.44-.407H1.031V.854h1.5c.28 0 .468-.16.468-.427C3 .161 2.815 0 2.532 0H.516C.191 0 0 .198 0 .537v3.926C0 4.802.191 5 .516 5"),be(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ae(r,o,s,s[1],n?Ee(o,s[1],u,null):Me(s[1]),null),be(e,a=Le(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 dg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Ia=class extends W{constructor(e){super(),Q(this,e,dg,cg,j,{})}},Br=Ia;function mg(i){let e,t,n,o,r=i[2].default,l=Ie(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=re(s,a[u]);return{c(){e=q("svg"),l&&l.c(),t=q("path"),n=q("path"),f(t,"fill","currentColor"),f(t,"d","M11.516 5.75h1.107c1.48 0 2.377-.935 2.377-2.5s-.897-2.5-2.377-2.5h-1.107c-.325 0-.516.199-.516.537V5.21c0 .342.191.54.516.54m.516-.854V1.602h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zm-5.516.854c.325 0 .516-.198.516-.536V3.672h1.936v1.542c0 .338.191.536.516.536S10 5.552 10 5.214V1.29c0-.342-.191-.54-.516-.54s-.516.198-.516.54v1.531H7.032V1.29c0-.342-.191-.54-.516-.54S6 .948 6 1.29v3.989c0 .338.191.471.516.471"),f(n,"fill","currentColor"),f(n,"fill-rule","evenodd"),f(n,"d","M3.338 5.659a4 4 0 0 1-.838.091C1.037 5.75 0 4.885 0 3.303 0 1.733 1.037.75 2.5.75 3.96.75 5 1.734 5 3.303c0 .863-.274 1.46-.778 1.88l.194.29a.5.5 0 0 1-.832.554zm-.52-.78-.234-.352a.5.5 0 1 1 .832-.554l.245.367c.184-.26.286-.615.286-1.037 0-1.036-.64-1.653-1.447-1.653-.81 0-1.447.617-1.447 1.653 0 1.032.637 1.596 1.447 1.596.08 0 .208-.007.318-.02"),f(n,"clip-rule","evenodd"),be(e,s)},m(u,c){S(u,e,c),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[c]){l&&l.p&&(!o||c&2)&&Ae(l,r,u,u[1],o?Ee(r,u[1],c,null):Me(u[1]),null),be(e,s=Le(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"15"},{height:"7"},{fill:"none"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&C(e),l&&l.d(u)}}}function pg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Ea=class extends W{constructor(e){super(),Q(this,e,pg,mg,j,{})}},Dr=Ea;var Io=i=>{switch(i){case Cl.VideoQuality.Q_720P:return J1;case Cl.VideoQuality.Q_1080P:return Br;case Cl.VideoQuality.Q_1440P:return Dr;case Cl.VideoQuality.Q_2160P:return Z1;case Cl.VideoQuality.Q_4320P:return X1}};function _g(i){let e,t,n,o=i[2].default,r=Ie(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=re(a,l[s]);return{c(){e=q("svg"),r&&r.c(),t=q("path"),f(t,"fill","#fff"),f(t,"d","M12.722 2.213c1.208.037 1.994.702 2.408 1.954l.065.215.051.191q.027.111.068.235l.058.159.034.017.069-.023.133-.051.156-.068c1.414-.658 2.502-.536 3.387.437l.125.145.82 1.017c.732.962.71 1.99-.004 3.1l-.125.187-.117.16a3 3 0 0 0-.142.205l-.07.115-.034.057.004.02.091.06.127.077.153.083c1.39.71 1.963 1.641 1.742 2.936l-.038.188-.244 1.058c-.158.685-.282 1.01-.77 1.454-.475.432-1.016.61-1.732.67l-.22.014-.198.006q-.116.002-.246.015l-.181.021.013.142.013.096.033.179c.323 1.526-.04 2.558-1.188 3.202l-.17.09-1.175.57c-1.102.495-2.099.242-3.02-.702l-.153-.164-.13-.15a3 3 0 0 0-.17-.186l-.097-.096-.05-.046-.09.087-.106.108-.118.133c-.952 1.134-1.957 1.54-3.176 1.067l-.175-.074-1.052-.51-.312-.16c-.476-.26-.743-.51-1.004-1.061-.275-.58-.294-1.15-.16-1.883l.044-.225q.024-.114.041-.242l.019-.172-.004-.004-.104-.014-.146-.013-.174-.008c-1.56-.028-2.484-.614-2.853-1.877l-.049-.185-.292-1.274c-.235-1.185.236-2.1 1.364-2.785l.194-.112.175-.093a3 3 0 0 0 .216-.12l.155-.102.004-.019-.063-.108-.08-.125-.103-.143c-.937-1.246-1.044-2.335-.276-3.404l.115-.153.824-1.013c.79-.915 1.8-1.107 3.034-.64l.208.083.181.081q.103.048.222.093l.136.048.036-.017.033-.089.045-.138.046-.166c.36-1.436 1.085-2.242 2.39-2.35l.19-.011h1.39Zm-.056 1.799h-1.333l-.14.01c-.285.037-.472.191-.652.832l-.041.156-.057.206a6.3 6.3 0 0 1-.468 1.134 6 6 0 0 0-1.147.558 6.5 6.5 0 0 1-1.16-.35l-.35-.154c-.248-.107-.435-.161-.583-.175l-.084-.003a.55.55 0 0 0-.408.193l-.068.074-.789.973-.095.125c-.183.264-.21.5.195 1.075l.228.316c.212.31.425.692.598 1.102q-.195.577-.27 1.201c-.334.29-.69.537-1.013.72l-.343.184c-.617.34-.695.563-.646.881l.013.075.28 1.22.04.152c.096.308.265.475.968.509l.388.014c.37.024.798.09 1.223.204q.337.526.776.968a6.3 6.3 0 0 1-.118 1.445c-.201.95-.014 1.102.383 1.3l1.126.547a.8.8 0 0 0 .337.089l.067-.006c.181-.028.382-.162.67-.485l.258-.295a6.5 6.5 0 0 1 .949-.837l.298.023L12 18l.302-.008.298-.022c.363.263.691.559.948.837l.258.295c.325.364.538.488.737.49l.066-.003a.8.8 0 0 0 .178-.046l.093-.039 1.126-.548.139-.073c.3-.175.42-.395.245-1.226a6.2 6.2 0 0 1-.117-1.445q.436-.442.775-.97a6.5 6.5 0 0 1 1.223-.202l.387-.014c.812-.04.912-.256 1.008-.66l.264-1.142c.09-.406.095-.643-.617-1.035l-.342-.183a6.4 6.4 0 0 1-1.014-.722 6 6 0 0 0-.27-1.201c.174-.41.386-.791.598-1.1l.228-.317c.406-.575.378-.81.195-1.075l-.045-.062-.787-.974c-.14-.171-.259-.294-.452-.322l-.076-.007c-.16-.003-.368.05-.667.178l-.35.155a6.4 6.4 0 0 1-1.158.348 6 6 0 0 0-1.15-.556 6.5 6.5 0 0 1-.454-1.093l-.113-.414c-.192-.678-.393-.805-.714-.828zM12 8.2a3.8 3.8 0 1 1 0 7.6 3.8 3.8 0 0 1 0-7.6m0 1.8a2 2 0 1 0 0 4 2 2 0 0 0 0-4"),be(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ae(r,o,s,s[1],n?Ee(o,s[1],u,null):Me(s[1]),null),be(e,a=Le(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 hg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Aa=class extends W{constructor(e){super(),Q(this,e,hg,_g,j,{})}},x1=Aa;function gg(i){let e,t,n,o,r=i[2].default,l=Ie(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=re(s,a[u]);return{c(){e=q("svg"),l&&l.c(),t=q("path"),n=q("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M13.933 4.875a.6.6 0 0 0-.07-.658c-.327-.413-.45-.833-.574-1.253l-.039-.13C13 2 12.833 2 12.417 2h-.91c-.371.003-.6.052-.757.833-.148.738-.36 1.476-1.566 2.186a.5.5 0 0 1-.12.05c-1.27.324-1.905-.023-2.542-.37l-.12-.065c-.766-.412-.884-.294-1.178 0l-.643.644c-.26.264-.389.461.053 1.124.418.626.789 1.299.438 2.654a.5.5 0 0 1-.05.12c-.668 1.126-1.362 1.33-2.058 1.535l-.13.039C2 11 2 11.167 2 11.583v.91c.003.371.052.6.833.757.738.148 1.476.36 2.186 1.566a.5.5 0 0 1 .05.12c.324 1.27-.023 1.905-.37 2.542l-.065.12c-.412.766-.294.884 0 1.178l.644.643c.264.26.461.389 1.124-.053.626-.418 1.299-.789 2.654-.438q.063.016.12.05c1.126.668 1.33 1.362 1.535 2.058l.039.13c.25.834.417.834.833.834h.91c.371-.003.6-.052.757-.833.148-.738.36-1.476 1.566-2.186a.5.5 0 0 1 .12-.05c1.27-.324 1.905.023 2.542.37l.12.065c.766.412.884.294 1.178 0l.643-.644c.26-.264.389-.461-.053-1.124-.26-.39-.503-.799-.563-1.38a.6.6 0 0 0-.413-.519 7.5 7.5 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.58.58 0 0 0 .633-.44 7.5 7.5 0 0 1 .749-1.967"),f(t,"clip-rule","evenodd"),f(n,"fill","#fff"),f(n,"d","M13.25 2.833c.225.751.383 1.502 1.63 2.222 1.399.38 2.082.003 2.718-.42.663-.443.86-.315 1.124-.054l.644.643c.294.294.412.412 0 1.178-.372.69-.792 1.333-.418 2.726.72 1.255 1.47 1.472 2.219 1.622.78.156.83.386.833.757v.91c0 .416 0 .583-.833.833-.751.225-1.502.383-2.222 1.63-.38 1.399-.003 2.082.42 2.718.443.663.315.86.054 1.124l-.643.644c-.294.294-.412.412-1.178 0-.69-.372-1.333-.792-2.726-.418-1.255.72-1.472 1.47-1.622 2.219-.156.78-.386.83-.757.833h-.91c-.416 0-.583 0-.833-.833-.225-.751-.383-1.502-1.63-2.222-1.399-.38-2.082-.003-2.718.42-.663.443-.86.315-1.124.054l-.644-.643c-.294-.294-.412-.412 0-1.178.372-.69.792-1.333.418-2.726-.72-1.255-1.47-1.472-2.219-1.622-.78-.156-.83-.386-.833-.757v-.91c0-.416 0-.583.833-.833.751-.225 1.502-.383 2.222-1.63.38-1.399.003-2.082-.42-2.718-.443-.663-.315-.86-.054-1.124l.643-.644c.294-.294.412-.412 1.178 0 .69.372 1.333.792 2.726.418 1.255-.72 1.472-1.47 1.622-2.219.156-.78.386-.83.757-.833h.91c.416 0 .583 0 .833.833M12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5"),f(n,"class","_full"),be(e,s)},m(u,c){S(u,e,c),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[c]){l&&l.p&&(!o||c&2)&&Ae(l,r,u,u[1],o?Ee(r,u[1],c,null):Me(u[1]),null),be(e,s=Le(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"settings-icon"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&C(e),l&&l.d(u)}}}function bg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Ma=class extends W{constructor(e){super(),Q(this,e,bg,gg,j,{})}},$1=Ma;function vg(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 yg(i){let e,t,n,o,r=i[1]&&ed(i);return n=new $1({props:{"data-testid":i[1]?"settings-icon--labeled":"settings-icon"}}),{c(){e=T("div"),r&&r.c(),t=O(),N(n.$$.fragment),f(e,"class","icon svelte-8t5w85"),f(e,"aria-hidden","true"),H(e,"triple",i[2])},m(l,a){S(l,e,a),r&&r.m(e,null),p(e,t),B(n,e,null),o=!0},p(l,a){l[1]?r?(r.p(l,a),a&2&&d(r,1)):(r=ed(l),r.c(),d(r,1),r.m(e,t)):r&&(ue(),_(r,1,1,()=>{r=null}),fe());let s={};a&2&&(s["data-testid"]=l[1]?"settings-icon--labeled":"settings-icon"),n.$set(s),(!o||a&4)&&H(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(),D(n)}}}function wg(i){let e,t;return e=new x1({}),{c(){N(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p:he,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function ed(i){let e,t;return e=new Y1({props:{$$slots:{default:[kg]},$$scope:{ctx:i}}}),{c(){N(e.$$.fragment)},m(n,o){B(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){D(e,n)}}}function kg(i){let e,t,n;var o=i[1];function r(l){return{}}return o&&(e=Bn(o,r(i))),{c(){e&&N(e.$$.fragment),t=dt()},m(l,a){e&&B(e,l,a),S(l,t,a),n=!0},p(l,a){if(a&2&&o!==(o=l[1])){if(e){ue();let s=e;_(s.$$.fragment,1,0,()=>{D(s,1)}),fe()}o?(e=Bn(o,r(l)),N(e.$$.fragment),d(e.$$.fragment,1),B(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&&D(e,l)}}}function Cg(i){let e,t,n,o,r=[wg,yg],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=dt()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let c=e;e=a(s,u),e===c?l[e].p(s,u):(ue(),_(l[c],1,1,()=>{l[c]=null}),fe(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&C(n),l[e].d(s)}}}function Sg(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=Io(r));if(i.$$.dirty&2)e:t(2,l=!!n&&[Br,Dr].includes(n))},[o,n,l,r]}var Va=class extends W{constructor(e){super(),Q(this,e,Sg,Cg,j,{isMobile:0,currentQuality:3},vg)}},Nr=Va;function Tg(i){let e,t,n,o=i[2].default,r=Ie(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=re(a,l[s]);return{c(){e=q("svg"),r&&r.c(),t=q("path"),f(t,"fill","#fff"),f(t,"d","M14.692.428c2.293 0 3.124.24 3.962.687a4.67 4.67 0 0 1 1.944 1.944c.449.839.687 1.67.687 3.962v3.958c0 2.292-.238 3.123-.687 3.961a4.67 4.67 0 0 1-1.944 1.944c-.838.449-1.67.687-3.962.687H7.307c-2.293 0-3.124-.238-3.962-.687A4.67 4.67 0 0 1 1.4 14.94c-.448-.838-.687-1.669-.687-3.961V7.02c0-2.292.239-3.123.687-3.962a4.67 4.67 0 0 1 1.944-1.944C4.183.667 5.015.428 7.307.428zm.243 1.716-7.628-.001c-1.832 0-2.484.126-3.154.484a2.96 2.96 0 0 0-1.24 1.24c-.343.64-.473 1.264-.484 2.912v4.2c0 1.83.125 2.483.483 3.153q.433.809 1.241 1.24c.67.36 1.322.485 3.154.485h7.385c1.832 0 2.484-.126 3.154-.484a2.96 2.96 0 0 0 1.24-1.241c.36-.67.485-1.322.485-3.153V7.02c0-1.831-.126-2.483-.484-3.153a2.96 2.96 0 0 0-1.241-1.24c-.64-.343-1.263-.473-2.911-.484ZM11 10.714a.857.857 0 1 1 0 1.714H5.857a.857.857 0 0 1 0-1.714zm5.142 0a.857.857 0 1 1 0 1.714h-1.714a.857.857 0 0 1 0-1.714zm0-3.428a.857.857 0 1 1 0 1.714H11a.857.857 0 1 1 0-1.714zm-8.571 0a.857.857 0 0 1 0 1.714H5.857a.857.857 0 0 1 0-1.714z"),be(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ae(r,o,s,s[1],n?Ee(o,s[1],u,null):Me(s[1]),null),be(e,a=Le(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 Pg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var La=class extends W{constructor(e){super(),Q(this,e,Pg,Tg,j,{})}},qr=La;function Ig(i){let e,t,n,o=i[2].default,r=Ie(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=re(a,l[s]);return{c(){e=q("svg"),r&&r.c(),t=q("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M8 0a.9.9 0 0 1 .9.9v10.927l4.564-4.563a.9.9 0 0 1 1.272 1.272l-6.1 6.1a.9.9 0 0 1-1.272 0l-6.1-6.1a.9.9 0 1 1 1.272-1.272L7.1 11.827V.9A.9.9 0 0 1 8 0M0 18a.9.9 0 0 1 .9-.9h14.2a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 18"),f(t,"clip-rule","evenodd"),be(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ae(r,o,s,s[1],n?Ee(o,s[1],u,null):Me(s[1]),null),be(e,a=Le(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 Eg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Ra=class extends W{constructor(e){super(),Q(this,e,Eg,Ig,j,{})}},td=Ra;function Ag(i){let e,t,n,o=i[2].default,r=Ie(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=re(a,l[s]);return{c(){e=q("svg"),r&&r.c(),t=q("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M.1 6.5c0-2.24 0-3.36.436-4.216A4 4 0 0 1 2.284.536C3.139.1 4.259.1 6.5.1h5c2.24 0 3.36 0 4.216.436a4 4 0 0 1 1.748 1.748c.436.856.436 1.976.436 4.216s0 3.36-.436 4.216a4 4 0 0 1-1.748 1.748c-.836.426-1.925.436-4.064.436l.55 2.2H14.1a.9.9 0 0 1 0 1.8H3.9a.9.9 0 1 1 0-1.8h1.897l.55-2.2c-2.139 0-3.227-.01-4.063-.436a4 4 0 0 1-1.748-1.748C.1 9.86.1 8.74.1 6.5m11.4-4.6h-5c-1.15 0-1.904.002-2.481.049-.556.045-.786.124-.918.19a2.2 2.2 0 0 0-.962.962c-.067.132-.145.363-.19.918-.048.577-.05 1.331-.05 2.481s.002 1.904.05 2.48c.045.556.123.787.19.919a2.2 2.2 0 0 0 .962.961c.132.068.362.146.918.192.577.047 1.33.048 2.48.048h5c1.15 0 1.904-.001 2.481-.048.556-.046.787-.124.918-.192a2.2 2.2 0 0 0 .962-.961c.067-.132.146-.363.191-.918.047-.577.049-1.331.049-2.48s-.002-1.905-.049-2.482c-.045-.555-.124-.786-.191-.918a2.2 2.2 0 0 0-.962-.961c-.131-.067-.362-.146-.918-.191-.577-.048-1.33-.049-2.48-.049m-3.298 11-.55 2.2h2.695l-.55-2.2z"),f(t,"clip-rule","evenodd"),be(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ae(r,o,s,s[1],n?Ee(o,s[1],u,null):Me(s[1]),null),be(e,a=Le(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 Mg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Ba=class extends W{constructor(e){super(),Q(this,e,Mg,Ag,j,{})}},id=Ba;function Vg(i){let e,t,n,o,r,l=i[2].default,a=Ie(l,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"play-speed-icon"},{role:"img"},i[0]],u={};for(let c=0;c<s.length;c+=1)u=re(u,s[c]);return{c(){e=q("svg"),a&&a.c(),t=q("g"),n=q("path"),o=q("path"),f(n,"d","M0 0h24v24H0z"),f(o,"fill","#fff"),f(o,"fill-rule","nonzero"),f(o,"d","M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A7.94 7.94 0 0 1 11 4.07M5.69 7.1 4.26 5.68A9.95 9.95 0 0 0 2.05 11h2.02c.18-1.46.76-2.79 1.62-3.9M2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A7.87 7.87 0 0 1 4.07 13zM11 21.95v-2.02a7.94 7.94 0 0 1-3.9-1.62l-1.42 1.43A10 10 0 0 0 11 21.95M22 12c0 5.16-3.92 9.42-8.95 9.95v-2.02C16.97 19.41 20 16.05 20 12s-3.03-7.41-6.95-7.93V2.05C18.08 2.58 22 6.84 22 12M10.688 8.576l4.746 2.736a.792.792 0 0 1 0 1.372l-4.746 2.737a.792.792 0 0 1-1.188-.686V9.262a.792.792 0 0 1 1.188-.686"),f(t,"fill","none"),f(t,"fill-rule","evenodd"),be(e,u)},m(c,m){S(c,e,m),a&&a.m(e,null),p(e,t),p(t,n),p(t,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Ae(a,l,c,c[1],r?Ee(l,c[1],m,null):Me(c[1]),null),be(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"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){_(a,c),r=!1},d(c){c&&C(e),a&&a.d(c)}}}function Lg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Da=class extends W{constructor(e){super(),Q(this,e,Lg,Vg,j,{})}},nd=Da;function Rg(i){let e,t,n,o=i[2].default,r=Ie(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=re(a,l[s]);return{c(){e=q("svg"),r&&r.c(),t=q("path"),f(t,"fill","#fff"),f(t,"d","M8.295 14.247c1.87 1.896 5.505.02 5.505-3.548V5.645l2.399-.697A2.74 2.74 0 0 0 18 2.364l-.01-1.72a.75.75 0 0 0-.906-.623l-.267.061c-.941.215-1.886.431-2.807.721-1.332.45-2.03 1.614-2.01 3.077V9c-3.887.196-5.639 3.286-3.705 5.247M.9.1a.9.9 0 0 0 0 1.8h8.197a.9.9 0 0 0 0-1.8zM.9 5.1a.9.9 0 1 0 0 1.8h7.196a.9.9 0 0 0 0-1.8zM0 11a.9.9 0 0 1 .9-.9h4.183a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 11"),be(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ae(r,o,s,s[1],n?Ee(o,s[1],u,null):Me(s[1]),null),be(e,a=Le(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 Bg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Na=class extends W{constructor(e){super(),Q(this,e,Bg,Rg,j,{})}},od=Na;function Dg(i){let e,t,n,o=i[2].default,r=Ie(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=re(a,l[s]);return{c(){e=q("svg"),r&&r.c(),t=q("path"),f(t,"fill","#fff"),f(t,"fill-opacity",".72"),f(t,"fill-rule","evenodd"),f(t,"d","M11.736 6.736a.9.9 0 0 1-1.272 0L6 2.273 1.536 6.736A.9.9 0 1 1 .264 5.464l5.1-5.1a.9.9 0 0 1 1.272 0l5.1 5.1a.9.9 0 0 1 0 1.272"),f(t,"clip-rule","evenodd"),be(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ae(r,o,s,s[1],n?Ee(o,s[1],u,null):Me(s[1]),null),be(e,a=Le(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 Ng(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var qa=class extends W{constructor(e){super(),Q(this,e,Ng,Dg,j,{})}},ld=qa;function qg(i){let e,t,n,o=i[2].default,r=Ie(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=re(a,l[s]);return{c(){e=q("svg"),r&&r.c(),t=q("path"),f(t,"fill","#fff"),f(t,"d","m5.773 8 3.363 3.364a.9.9 0 1 1-1.272 1.272l-4-4a.9.9 0 0 1 0-1.272l4-4a.9.9 0 0 1 1.272 1.272z"),be(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ae(r,o,s,s[1],n?Ee(o,s[1],u,null):Me(s[1]),null),be(e,a=Le(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 Og(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Oa=class extends W{constructor(e){super(),Q(this,e,Og,qg,j,{})}},rd=Oa;function Fg(i){let e,t;return e=new rd({props:{style:i[2],"data-testid":i[0]?"chevron-icon--right":"chevron-icon--left"}}),{c(){N(e.$$.fragment)},m(n,o){B(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){D(e,n)}}}function Hg(i){let e,t;return e=new ld({props:{style:i[2],"data-testid":i[0]?"chevron-icon--down":"chevron-icon--up"}}),{c(){N(e.$$.fragment)},m(n,o){B(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){D(e,n)}}}function zg(i){let e,t,n,o,r=[Hg,Fg],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=dt()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let c=e;e=a(s,u),e===c?l[e].p(s,u):(ue(),_(l[c],1,1,()=>{l[c]=null}),fe(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&C(n),l[e].d(s)}}}function Ug(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 Fa=class extends W{constructor(e){super(),Q(this,e,Ug,zg,j,{direction:3})}},xn=Fa;function Kg(i){let e,t,n,o=i[2].default,r=Ie(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=re(a,l[s]);return{c(){e=q("svg"),r&&r.c(),t=q("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M8.863 2.1h6.274c.674-.002 1.2.211 1.683.697l4.383 4.383c.478.476.699.998.697 1.683v6.274c.002.685-.22 1.207-.697 1.683l-4.383 4.383c-.476.478-.998.699-1.683.697H8.863c-.685.002-1.207-.22-1.683-.697L2.797 16.82c-.478-.476-.699-.998-.697-1.683V8.863c-.002-.685.22-1.207.697-1.683L7.18 2.797c.484-.486 1.009-.699 1.683-.697m-.445 2.005L4.105 8.418c-.18.18-.205.242-.205.495v6.174c0 .25.025.316.205.495l4.313 4.313c.179.179.24.205.495.205h6.174c.253 0 .316-.026.495-.205l4.313-4.313c.18-.18.205-.245.205-.495V8.913c0-.254-.026-.316-.205-.495l-4.313-4.313c-.18-.18-.242-.205-.495-.205H8.913c-.254 0-.319.029-.495.205M13 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-.1-8.1a.9.9 0 0 0-1.8 0v5.2a.9.9 0 1 0 1.8 0z"),f(t,"clip-rule","evenodd"),be(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ae(r,o,s,s[1],n?Ee(o,s[1],u,null):Me(s[1]),null),be(e,a=Le(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 jg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Ha=class extends W{constructor(e){super(),Q(this,e,jg,Kg,j,{})}},sd=Ha;function Wg(i){let e,t,n,o=i[2].default,r=Ie(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=re(a,l[s]);return{c(){e=q("svg"),r&&r.c(),t=q("path"),f(t,"fill","#fff"),f(t,"d","M6 10.2 3.5 7.7a.99.99 0 0 0-1.4 1.4l3.2 3.2a1 1 0 0 0 1.4 0l7.6-7.6a.99.99 0 0 0-1.4-1.4z"),be(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ae(r,o,s,s[1],n?Ee(o,s[1],u,null):Me(s[1]),null),be(e,a=Le(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 Gg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var za=class extends W{constructor(e){super(),Q(this,e,Gg,Wg,j,{})}},xo=za;function Qg(i){let e,t,n,o=i[2].default,r=Ie(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=re(a,l[s]);return{c(){e=q("svg"),r&&r.c(),t=q("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M4 12.3V12c0-1.47.005-2.547.075-3.403.074-.904.216-1.482.454-1.949a4.85 4.85 0 0 1 2.12-2.12c.466-.237 1.044-.379 1.948-.453C9.51 4.001 10.675 4 12.3 4h4.512a2 2 0 0 0-.174-.49 2.4 2.4 0 0 0-1.048-1.048 2.4 2.4 0 0 0-.931-.239 14 14 0 0 0-1.026-.023H12.26c-1.576 0-2.814 0-3.81.081-1.014.083-1.856.255-2.62.644A6.65 6.65 0 0 0 2.926 5.83c-.389.763-.56 1.605-.644 2.62-.081.995-.081 2.233-.081 3.809v1.373c0 .392 0 .738.023 1.025.025.306.081.623.239.931a2.4 2.4 0 0 0 1.048 1.05c.162.082.326.136.49.173V12.3zM10.08 6h-.035c-.52 0-.964 0-1.329.03-.383.03-.755.097-1.112.276a2.9 2.9 0 0 0-1.298 1.298c-.179.357-.246.73-.277 1.112C6 9.081 6 9.524 6 10.046v7.909c0 .52 0 .964.03 1.329.03.382.097.755.276 1.112a2.9 2.9 0 0 0 1.298 1.298c.357.179.73.246 1.112.277.365.029.808.029 1.329.029h6.91c.52 0 .964 0 1.329-.03.382-.03.755-.097 1.112-.276a2.9 2.9 0 0 0 1.298-1.298c.179-.357.246-.73.277-1.112.029-.365.029-.808.029-1.33v-7.909c0-.52 0-.964-.03-1.329-.03-.382-.097-.755-.276-1.112a2.9 2.9 0 0 0-1.298-1.298c-.357-.179-.73-.246-1.112-.277C17.919 6 17.476 6 16.954 6zM8.408 7.916c.065-.032.179-.07.452-.093a18 18 0 0 1 1.22-.023h6.84c.565 0 .936 0 1.22.023.273.022.387.06.452.093a1.1 1.1 0 0 1 .492.492c.032.065.07.179.093.452.022.284.023.655.023 1.22v7.84c0 .565 0 .936-.023 1.22-.023.273-.06.387-.093.452a1.1 1.1 0 0 1-.492.492c-.065.032-.18.07-.452.093a18 18 0 0 1-1.22.023h-6.84c-.565 0-.936 0-1.22-.023-.273-.023-.387-.06-.452-.093a1.1 1.1 0 0 1-.492-.492c-.032-.065-.07-.18-.093-.452a17 17 0 0 1-.023-1.22v-7.84c0-.565 0-.936.023-1.22.022-.273.06-.387.093-.452a1.1 1.1 0 0 1 .492-.492"),f(t,"clip-rule","evenodd"),be(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ae(r,o,s,s[1],n?Ee(o,s[1],u,null):Me(s[1]),null),be(e,a=Le(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 Yg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Ua=class extends W{constructor(e){super(),Q(this,e,Yg,Qg,j,{})}},ad=Ua;function Zg(i){let e,t,n,o=i[2].default,r=Ie(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=re(a,l[s]);return{c(){e=q("svg"),r&&r.c(),t=q("path"),f(t,"fill","#fff"),f(t,"d","M12 20.105a8.105 8.105 0 1 0 0-16.21 8.105 8.105 0 0 0 0 16.21M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10m0-12.372a1.316 1.316 0 1 1 0-2.632 1.316 1.316 0 0 1 0 2.632m-.947 2.822c0-.541.424-.98.947-.98s.947.439.947.98v3.83c0 .54-.424.98-.947.98s-.947-.44-.947-.98z"),be(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ae(r,o,s,s[1],n?Ee(o,s[1],u,null):Me(s[1]),null),be(e,a=Le(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 Xg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Ka=class extends W{constructor(e){super(),Q(this,e,Xg,Zg,j,{})}},ud=Ka;function Jg(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 fd(i,e,t){let n=i.slice();return n[163]=e[t],n}function cd(i,e,t){let n=i.slice();return n[166]=e[t],n}function dd(i,e,t){let n=i.slice();return n[169]=e[t],n}function md(i,e,t){let n=i.slice();return n[172]=e[t],n}function pd(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,g=i[40]&&_d(i),k=i[30]&&hd(i),y=i[29]&&bd(i),I=i[28]&&vd(i),v=i[27]&&yd(i),b=i[26]&&wd(i),E=i[25]&&kd(i),A=i[40]&&Cd(i);return{c(){e=T("div"),g&&g.c(),t=O(),n=T("ul"),k&&k.c(),o=O(),y&&y.c(),r=O(),I&&I.c(),l=O(),v&&v.c(),a=O(),b&&b.c(),s=O(),E&&E.c(),u=O(),A&&A.c(),f(n,"class","items svelte-1h807jq"),f(n,"role","menu"),f(n,"style",c=i[84]()),H(n,"items-mobile",i[40]),f(e,"class","menu svelte-1h807jq"),H(e,"menu-desktop",!i[40]),H(e,"menu-mobile",i[40]),H(e,"hidden",!i[13])},m(L,R){S(L,e,R),g&&g.m(e,null),p(e,t),p(e,n),k&&k.m(n,null),p(n,o),y&&y.m(n,null),p(n,r),I&&I.m(n,null),p(n,l),v&&v.m(n,null),p(n,a),b&&b.m(n,null),p(n,s),E&&E.m(n,null),p(n,u),A&&A.m(n,null),i[129](n),m=!0,h||(w=[me(e,"keydown",i[90]),me(e,"mouseenter",i[82]),me(e,"mouseleave",i[83])],h=!0)},p(L,R){L[40]?g?g.p(L,R):(g=_d(L),g.c(),g.m(e,t)):g&&(g.d(1),g=null),L[30]?k?(k.p(L,R),R[0]&1073741824&&d(k,1)):(k=hd(L),k.c(),d(k,1),k.m(n,o)):k&&(ue(),_(k,1,1,()=>{k=null}),fe()),L[29]?y?(y.p(L,R),R[0]&536870912&&d(y,1)):(y=bd(L),y.c(),d(y,1),y.m(n,r)):y&&(ue(),_(y,1,1,()=>{y=null}),fe()),L[28]?I?(I.p(L,R),R[0]&268435456&&d(I,1)):(I=vd(L),I.c(),d(I,1),I.m(n,l)):I&&(ue(),_(I,1,1,()=>{I=null}),fe()),L[27]?v?(v.p(L,R),R[0]&134217728&&d(v,1)):(v=yd(L),v.c(),d(v,1),v.m(n,a)):v&&(ue(),_(v,1,1,()=>{v=null}),fe()),L[26]?b?(b.p(L,R),R[0]&67108864&&d(b,1)):(b=wd(L),b.c(),d(b,1),b.m(n,s)):b&&(ue(),_(b,1,1,()=>{b=null}),fe()),L[25]?E?(E.p(L,R),R[0]&33554432&&d(E,1)):(E=kd(L),E.c(),d(E,1),E.m(n,u)):E&&(ue(),_(E,1,1,()=>{E=null}),fe()),L[40]?A?(A.p(L,R),R[1]&512&&d(A,1)):(A=Cd(L),A.c(),d(A,1),A.m(n,null)):A&&(ue(),_(A,1,1,()=>{A=null}),fe()),(!m||R[1]&512)&&H(n,"items-mobile",L[40]),(!m||R[1]&512)&&H(e,"menu-desktop",!L[40]),(!m||R[1]&512)&&H(e,"menu-mobile",L[40]),(!m||R[0]&8192)&&H(e,"hidden",!L[13])},i(L){m||(d(k),d(y),d(I),d(v),d(b),d(E),d(A),m=!0)},o(L){_(k),_(y),_(I),_(v),_(b),_(E),_(A),m=!1},d(L){L&&C(e),g&&g.d(),k&&k.d(),y&&y.d(),I&&I.d(),v&&v.d(),b&&b.d(),E&&E.d(),A&&A.d(),i[129](null),h=!1,nt(w)}}}function _d(i){let e,t,n,o,r,l,a,s;return{c(){e=T("div"),t=T("div"),t.textContent=`${G("submenu_settings")}`,n=O(),o=T("div"),r=O(),l=T("div"),f(o,"class","close svelte-1h807jq"),f(e,"class","item menu-header svelte-1h807jq"),H(e,"item-mobile",i[40]),f(l,"class","menu-divider svelte-1h807jq")},m(u,c){S(u,e,c),p(e,t),p(e,n),p(e,o),S(u,r,c),S(u,l,c),a||(s=me(o,"click",ft(i[66])),a=!0)},p(u,c){c[1]&512&&H(e,"item-mobile",u[40])},d(u){u&&(C(e),C(r),C(l)),a=!1,s()}}}function hd(i){let e,t,n,o,r,l,a,s,u,c,m,h,w;n=new Nr({});let g=i[39]&&!i[40]&&gd(i);return{c(){e=T("li"),t=T("div"),N(n.$$.fragment),o=O(),r=T("div"),r.textContent=`${G("menu_quality")}`,l=O(),a=T("div"),s=Ve(i[19]),u=O(),g&&g.c(),f(t,"class","menu-icon-wrapper svelte-1h807jq"),f(r,"class","menu-title svelte-1h807jq"),f(a,"class","menu-value svelte-1h807jq"),f(e,"class","item svelte-1h807jq"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",c=G("aria_label_menu_quality",{actual:i[32]})),f(e,"aria-haspopup","true"),H(e,"item-mobile",i[40])},m(k,y){S(k,e,y),p(e,t),B(n,t,null),p(e,o),p(e,r),p(e,l),p(e,a),p(a,s),p(a,u),g&&g.m(a,null),i[124](e),m=!0,h||(w=[me(e,"click",ft(i[67])),me(e,"keydown",i[91])],h=!0)},p(k,y){(!m||y[0]&524288)&&Ye(s,k[19]),k[39]&&!k[40]?g?(g.p(k,y),y[1]&768&&d(g,1)):(g=gd(k),g.c(),d(g,1),g.m(a,null)):g&&(ue(),_(g,1,1,()=>{g=null}),fe()),(!m||y[1]&2&&c!==(c=G("aria_label_menu_quality",{actual:k[32]})))&&f(e,"aria-label",c),(!m||y[1]&512)&&H(e,"item-mobile",k[40])},i(k){m||(d(n.$$.fragment,k),d(g),m=!0)},o(k){_(n.$$.fragment,k),_(g),m=!1},d(k){k&&C(e),D(n),g&&g.d(),i[124](null),h=!1,nt(w)}}}function gd(i){let e,t,n;var o=i[39];function r(l){return{}}return o&&(t=Bn(o,r(i))),{c(){e=T("div"),t&&N(t.$$.fragment),f(e,"class","menu-valueIcon svelte-1h807jq")},m(l,a){S(l,e,a),t&&B(t,e,null),n=!0},p(l,a){if(a[1]&256&&o!==(o=l[39])){if(t){ue();let s=t;_(s.$$.fragment,1,0,()=>{D(s,1)}),fe()}o?(t=Bn(o,r(l)),N(t.$$.fragment),d(t.$$.fragment,1),B(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&&D(t)}}}function bd(i){let e,t,n,o,r,l,a,s=co(i[41],i[9])+"",u,c,m,h,w;return n=new od({}),{c(){e=T("li"),t=T("div"),N(n.$$.fragment),o=O(),r=T("div"),r.textContent=`${G("menu_audio_languages")}`,l=O(),a=T("div"),u=Ve(s),f(t,"class","menu-icon-wrapper svelte-1h807jq"),f(r,"class","menu-title svelte-1h807jq"),f(a,"class","menu-value svelte-1h807jq"),f(e,"class","item svelte-1h807jq"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",c=G("aria_label_menu_audio_languages",{actual:co(i[41],i[9])})),f(e,"aria-haspopup","true"),H(e,"item-mobile",i[40])},m(g,k){S(g,e,k),p(e,t),B(n,t,null),p(e,o),p(e,r),p(e,l),p(e,a),p(a,u),i[125](e),m=!0,h||(w=[me(e,"click",ft(i[68])),me(e,"keydown",i[92])],h=!0)},p(g,k){(!m||k[0]&512|k[1]&1024)&&s!==(s=co(g[41],g[9])+"")&&Ye(u,s),(!m||k[0]&512|k[1]&1024&&c!==(c=G("aria_label_menu_audio_languages",{actual:co(g[41],g[9])})))&&f(e,"aria-label",c),(!m||k[1]&512)&&H(e,"item-mobile",g[40])},i(g){m||(d(n.$$.fragment,g),m=!0)},o(g){_(n.$$.fragment,g),m=!1},d(g){g&&C(e),D(n),i[125](null),h=!1,nt(w)}}}function vd(i){let e,t,n,o,r,l,a,s,u,c,m,h,w;return n=new nd({}),{c(){e=T("li"),t=T("div"),N(n.$$.fragment),o=O(),r=T("div"),r.textContent=`${G("menu_playback_rate")}`,l=O(),a=T("div"),s=Ve(i[11]),u=Ve("x"),f(t,"class","menu-icon-wrapper svelte-1h807jq"),f(r,"class","menu-title svelte-1h807jq"),f(a,"class","menu-value svelte-1h807jq"),f(e,"class","item svelte-1h807jq"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",c=G("aria_label_menu_rate",{actual:i[33]})),f(e,"aria-haspopup","true"),H(e,"item-mobile",i[40])},m(g,k){S(g,e,k),p(e,t),B(n,t,null),p(e,o),p(e,r),p(e,l),p(e,a),p(a,s),p(a,u),i[126](e),m=!0,h||(w=[me(e,"click",ft(qt(i[73]))),me(e,"keydown",i[97])],h=!0)},p(g,k){(!m||k[0]&2048)&&Ye(s,g[11]),(!m||k[1]&4&&c!==(c=G("aria_label_menu_rate",{actual:g[33]})))&&f(e,"aria-label",c),(!m||k[1]&512)&&H(e,"item-mobile",g[40])},i(g){m||(d(n.$$.fragment,g),m=!0)},o(g){_(n.$$.fragment,g),m=!1},d(g){g&&C(e),D(n),i[126](null),h=!1,nt(w)}}}function yd(i){let e,t,n,o,r,l,a,s=i[42].displayValue+"",u,c,m,h,w;return n=new qr({}),{c(){e=T("li"),t=T("div"),N(n.$$.fragment),o=O(),r=T("div"),r.textContent=`${G("subtitles_caption")}`,l=O(),a=T("div"),u=Ve(s),f(t,"class","menu-icon-wrapper svelte-1h807jq"),f(r,"class","menu-title svelte-1h807jq"),f(a,"class","menu-value svelte-1h807jq"),f(e,"class","item svelte-1h807jq"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",c=G("aria_label_menu_subtitle",{actual:i[42].displayValue})),f(e,"aria-haspopup","true"),H(e,"item-mobile",i[40])},m(g,k){S(g,e,k),p(e,t),B(n,t,null),p(e,o),p(e,r),p(e,l),p(e,a),p(a,u),i[127](e),m=!0,h||(w=[me(e,"click",ft(i[75])),me(e,"keydown",i[100])],h=!0)},p(g,k){(!m||k[1]&2048)&&s!==(s=g[42].displayValue+"")&&Ye(u,s),(!m||k[1]&2048&&c!==(c=G("aria_label_menu_subtitle",{actual:g[42].displayValue})))&&f(e,"aria-label",c),(!m||k[1]&512)&&H(e,"item-mobile",g[40])},i(g){m||(d(n.$$.fragment,g),m=!0)},o(g){_(n.$$.fragment,g),m=!1},d(g){g&&C(e),D(n),i[127](null),h=!1,nt(w)}}}function wd(i){let e,t,n,o,r,l,a,s,u,c,m,h;return n=new id({}),{c(){e=T("li"),t=T("div"),N(n.$$.fragment),o=O(),r=T("div"),r.textContent=`${G("menu_traffic_saving")}`,l=O(),a=T("div"),s=Ve(i[31]),f(t,"class","menu-icon-wrapper svelte-1h807jq"),f(r,"class","menu-title svelte-1h807jq"),f(a,"class","menu-value svelte-1h807jq"),f(e,"class","item svelte-1h807jq"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",u=G("aria_label_menu_traffic_saving",{actual:i[31]})),f(e,"aria-haspopup","true"),H(e,"item-mobile",i[40])},m(w,g){S(w,e,g),p(e,t),B(n,t,null),p(e,o),p(e,r),p(e,l),p(e,a),p(a,s),i[128](e),c=!0,m||(h=[me(e,"click",ft(i[69])),me(e,"keydown",i[103])],m=!0)},p(w,g){(!c||g[1]&1)&&Ye(s,w[31]),(!c||g[1]&1&&u!==(u=G("aria_label_menu_traffic_saving",{actual:w[31]})))&&f(e,"aria-label",u),(!c||g[1]&512)&&H(e,"item-mobile",w[40])},i(w){c||(d(n.$$.fragment,w),c=!0)},o(w){_(n.$$.fragment,w),c=!1},d(w){w&&C(e),D(n),i[128](null),m=!1,nt(h)}}}function kd(i){let e,t,n,o,r,l,a,s,u;return n=new td({}),{c(){e=T("li"),t=T("div"),N(n.$$.fragment),o=O(),r=T("div"),r.textContent=`${G("download_video_caption")}`,f(t,"class","menu-icon-wrapper svelte-1h807jq"),f(r,"class","menu-title svelte-1h807jq"),f(e,"class","item svelte-1h807jq"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",l=G("aria_label_menu_download")),H(e,"item-mobile",i[40])},m(c,m){S(c,e,m),p(e,t),B(n,t,null),p(e,o),p(e,r),a=!0,s||(u=[me(e,"click",ft(i[78])),me(e,"keydown",i[106])],s=!0)},p(c,m){(!a||m[1]&512)&&H(e,"item-mobile",c[40])},i(c){a||(d(n.$$.fragment,c),a=!0)},o(c){_(n.$$.fragment,c),a=!1},d(c){c&&C(e),D(n),s=!1,nt(u)}}}function Cd(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,g,k,y,I,v=i[44].showSupport&&xg(i);return o=new ad({}),m=new ud({}),{c(){v&&v.c(),e=O(),t=T("li"),n=T("div"),N(o.$$.fragment),r=O(),l=T("div"),l.textContent=`${G("menu_copy_debug")}`,s=O(),u=T("li"),c=T("div"),N(m.$$.fragment),h=O(),w=T("div"),w.textContent=`${G("menu_debug_overlay")}`,f(n,"class","menu-icon-wrapper svelte-1h807jq"),f(l,"class","menu-title svelte-1h807jq"),f(t,"class","item item-mobile svelte-1h807jq"),f(t,"role","menuitem"),f(t,"tabindex","0"),f(t,"aria-label",a=G("menu_copy_debug")),f(c,"class","menu-icon-wrapper svelte-1h807jq"),f(w,"class","menu-title svelte-1h807jq"),f(u,"class","item item-mobile svelte-1h807jq"),f(u,"role","menuitem"),f(u,"tabindex","0"),f(u,"aria-label",g=i[43]?G("aria_label_menu_debug_overlay_disable"):G("aria_label_menu_debug_overlay_enable"))},m(b,E){v&&v.m(b,E),S(b,e,E),S(b,t,E),p(t,n),B(o,n,null),p(t,r),p(t,l),S(b,s,E),S(b,u,E),p(u,c),B(m,c,null),p(u,h),p(u,w),k=!0,y||(I=[me(t,"click",ft(i[80])),me(t,"keydown",i[108]),me(u,"click",ft(i[81])),me(u,"keydown",i[109])],y=!0)},p(b,E){b[44].showSupport&&v.p(b,E),(!k||E[1]&4096&&g!==(g=b[43]?G("aria_label_menu_debug_overlay_disable"):G("aria_label_menu_debug_overlay_enable")))&&f(u,"aria-label",g)},i(b){k||(d(v),d(o.$$.fragment,b),d(m.$$.fragment,b),k=!0)},o(b){_(v),_(o.$$.fragment,b),_(m.$$.fragment,b),k=!1},d(b){b&&(C(e),C(t),C(s),C(u)),v&&v.d(b),D(o),D(m),y=!1,nt(I)}}}function xg(i){let e,t,n,o,r,l,a,s,u;return n=new sd({}),{c(){e=T("li"),t=T("div"),N(n.$$.fragment),o=O(),r=T("div"),r.textContent=`${G("menu_report")}`,f(t,"class","menu-icon-wrapper svelte-1h807jq"),f(r,"class","menu-title svelte-1h807jq"),f(e,"class","item item-mobile svelte-1h807jq"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",l=`${G("menu_report")}. ${G("aria_label_new_tab_alert")}`)},m(c,m){S(c,e,m),p(e,t),B(n,t,null),p(e,o),p(e,r),a=!0,s||(u=[me(e,"click",ft(i[79])),me(e,"keydown",i[107])],s=!0)},p:he,i(c){a||(d(n.$$.fragment,c),a=!0)},o(c){_(n.$$.fragment,c),a=!1},d(c){c&&C(e),D(n),s=!1,nt(u)}}}function Sd(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,g;n=new xn({props:{direction:"left"}});let k=Tt(i[10]),y=[];for(let v=0;v<k.length;v+=1)y[v]=Id(md(i,k,v));let I=v=>_(y[v],1,1,()=>{y[v]=null});return{c(){var v;e=T("div"),t=T("div"),N(n.$$.fragment),o=O(),r=T("div"),r.textContent=`${G("submenu_quality")}`,a=O(),s=T("div"),u=O(),c=T("ul");for(let b=0;b<y.length;b+=1)y[b].c();f(t,"class","item menu-header svelte-1h807jq"),f(t,"aria-label",l=G("aria_label_submenu_back")),H(t,"item-mobile",i[40]),f(s,"class","menu-divider svelte-1h807jq"),f(c,"class","items svelte-1h807jq"),f(c,"role","menu"),f(c,"style",m=i[84]((v=i[20])==null?void 0:v.clientHeight,!0)),H(c,"items-mobile",i[40]),f(e,"class","menu menu-subList svelte-1h807jq"),H(e,"menu-desktop",!i[40]),H(e,"menu-mobile",i[40])},m(v,b){S(v,e,b),p(e,t),B(n,t,null),p(t,o),p(t,r),i[130](t),p(e,a),p(e,s),p(e,u),p(e,c);for(let E=0;E<y.length;E+=1)y[E]&&y[E].m(c,null);i[133](c),h=!0,w||(g=[me(t,"click",ft(i[77])),me(c,"keydown",i[93])],w=!0)},p(v,b){var E;if((!h||b[1]&512)&&H(t,"item-mobile",v[40]),b[0]&1024|b[1]&512|b[2]&256|b[3]&2){k=Tt(v[10]);let A;for(A=0;A<k.length;A+=1){let L=md(v,k,A);y[A]?(y[A].p(L,b),d(y[A],1)):(y[A]=Id(L),y[A].c(),d(y[A],1),y[A].m(c,null))}for(ue(),A=k.length;A<y.length;A+=1)I(A);fe()}(!h||b[0]&1048576&&m!==(m=v[84]((E=v[20])==null?void 0:E.clientHeight,!0)))&&f(c,"style",m),(!h||b[1]&512)&&H(c,"items-mobile",v[40]),(!h||b[1]&512)&&H(e,"menu-desktop",!v[40]),(!h||b[1]&512)&&H(e,"menu-mobile",v[40])},i(v){if(!h){d(n.$$.fragment,v);for(let b=0;b<k.length;b+=1)d(y[b]);h=!0}},o(v){_(n.$$.fragment,v),y=y.filter(Boolean);for(let b=0;b<y.length;b+=1)_(y[b]);h=!1},d(v){v&&C(e),D(n),i[130](null),Ri(y,v),i[133](null),w=!1,nt(g)}}}function Td(i){let e,t,n;return t=new xo({}),{c(){e=T("div"),N(t.$$.fragment),f(e,"class","itemIcon svelte-1h807jq")},m(o,r){S(o,e,r),B(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),D(t)}}}function Pd(i){let e,t,n;var o=Io(i[172].value);function r(l){return{}}return o&&(t=Bn(o,r(i))),{c(){e=T("div"),t&&N(t.$$.fragment),f(e,"class","menu-valueIcon-list svelte-1h807jq")},m(l,a){S(l,e,a),t&&B(t,e,null),n=!0},p(l,a){if(a[0]&1024&&o!==(o=Io(l[172].value))){if(t){ue();let s=t;_(s.$$.fragment,1,0,()=>{D(s,1)}),fe()}o?(t=Bn(o,r(l)),N(t.$$.fragment),d(t.$$.fragment,1),B(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&&D(t)}}}function Id(i){let e,t,n,o=i[172].displayValue+"",r,l,a=!i[40]&&Io(i[172].value),s,u,c,m,h,w,g=i[172].selected&&Td(i),k=a&&Pd(i);function y(){return i[131](i[172])}function I(...v){return i[132](i[172],...v)}return{c(){e=T("li"),g&&g.c(),t=O(),n=T("div"),r=Ve(o),l=O(),k&&k.c(),s=O(),f(n,"class","submenu-value svelte-1h807jq"),H(n,"submenu-value-mobile",i[40]),f(e,"class","item item-quality svelte-1h807jq"),f(e,"data-value",u=i[172].value),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",c=i[172].displayValue),H(e,"item-mobile",i[40])},m(v,b){S(v,e,b),g&&g.m(e,null),p(e,t),p(e,n),p(n,r),p(e,l),k&&k.m(e,null),p(e,s),m=!0,h||(w=[me(e,"click",ft(y)),me(e,"keydown",I)],h=!0)},p(v,b){i=v,i[172].selected?g?b[0]&1024&&d(g,1):(g=Td(i),g.c(),d(g,1),g.m(e,t)):g&&(ue(),_(g,1,1,()=>{g=null}),fe()),(!m||b[0]&1024)&&o!==(o=i[172].displayValue+"")&&Ye(r,o),(!m||b[1]&512)&&H(n,"submenu-value-mobile",i[40]),b[0]&1024|b[1]&512&&(a=!i[40]&&Io(i[172].value)),a?k?(k.p(i,b),b[0]&1024|b[1]&512&&d(k,1)):(k=Pd(i),k.c(),d(k,1),k.m(e,s)):k&&(ue(),_(k,1,1,()=>{k=null}),fe()),(!m||b[0]&1024&&u!==(u=i[172].value))&&f(e,"data-value",u),(!m||b[0]&1024&&c!==(c=i[172].displayValue))&&f(e,"aria-label",c),(!m||b[1]&512)&&H(e,"item-mobile",i[40])},i(v){m||(d(g),d(k),m=!0)},o(v){_(g),_(k),m=!1},d(v){v&&C(e),g&&g.d(),k&&k.d(),h=!1,nt(w)}}}function Ed(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,g;n=new xn({props:{direction:"left"}});let k=Tt(i[9]),y=[];for(let v=0;v<k.length;v+=1)y[v]=Md(dd(i,k,v));let I=v=>_(y[v],1,1,()=>{y[v]=null});return{c(){var v;e=T("div"),t=T("div"),N(n.$$.fragment),o=O(),r=T("div"),r.textContent=`${G("submenu_audio_languages")}`,a=O(),s=T("div"),u=O(),c=T("ul");for(let b=0;b<y.length;b+=1)y[b].c();f(t,"class","item menu-header svelte-1h807jq"),f(t,"aria-label",l=G("aria_label_submenu_back")),H(t,"item-mobile",i[40]),f(s,"class","menu-divider svelte-1h807jq"),f(c,"class","items svelte-1h807jq"),f(c,"role","menu"),f(c,"style",m=i[84]((v=i[21])==null?void 0:v.clientHeight,!0)),H(c,"items-mobile",i[40]),f(e,"class","menu menu-subList svelte-1h807jq"),H(e,"menu-desktop",!i[40]),H(e,"menu-mobile",i[40])},m(v,b){S(v,e,b),p(e,t),B(n,t,null),p(t,o),p(t,r),i[134](t),p(e,a),p(e,s),p(e,u),p(e,c);for(let E=0;E<y.length;E+=1)y[E]&&y[E].m(c,null);i[137](c),h=!0,w||(g=[me(t,"click",ft(i[77])),me(c,"keydown",i[95])],w=!0)},p(v,b){var E;if((!h||b[1]&512)&&H(t,"item-mobile",v[40]),b[0]&512|b[1]&1536|b[2]&512|b[3]&8){k=Tt(v[9]);let A;for(A=0;A<k.length;A+=1){let L=dd(v,k,A);y[A]?(y[A].p(L,b),d(y[A],1)):(y[A]=Md(L),y[A].c(),d(y[A],1),y[A].m(c,null))}for(ue(),A=k.length;A<y.length;A+=1)I(A);fe()}(!h||b[0]&2097152&&m!==(m=v[84]((E=v[21])==null?void 0:E.clientHeight,!0)))&&f(c,"style",m),(!h||b[1]&512)&&H(c,"items-mobile",v[40]),(!h||b[1]&512)&&H(e,"menu-desktop",!v[40]),(!h||b[1]&512)&&H(e,"menu-mobile",v[40])},i(v){if(!h){d(n.$$.fragment,v);for(let b=0;b<k.length;b+=1)d(y[b]);h=!0}},o(v){_(n.$$.fragment,v),y=y.filter(Boolean);for(let b=0;b<y.length;b+=1)_(y[b]);h=!1},d(v){v&&C(e),D(n),i[134](null),Ri(y,v),i[137](null),w=!1,nt(g)}}}function Ad(i){let e,t,n;return t=new xo({}),{c(){e=T("div"),N(t.$$.fragment),f(e,"class","itemIcon svelte-1h807jq")},m(o,r){S(o,e,r),B(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),D(t)}}}function Md(i){var k;let e,t,n,o=co(i[169],i[9])+"",r,l,a,s,u,c,m,h=i[169].id===((k=i[41])==null?void 0:k.id)&&Ad(i);function w(){return i[135](i[169])}function g(...y){return i[136](i[169],...y)}return{c(){e=T("li"),h&&h.c(),t=O(),n=T("div"),r=Ve(o),l=O(),f(n,"class","submenu-value svelte-1h807jq"),H(n,"submenu-value-mobile",i[40]),f(e,"class","item item-quality svelte-1h807jq"),f(e,"data-value",a=i[169].id),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",s=co(i[169],i[9])),H(e,"item-mobile",i[40])},m(y,I){S(y,e,I),h&&h.m(e,null),p(e,t),p(e,n),p(n,r),p(e,l),u=!0,c||(m=[me(e,"click",ft(w)),me(e,"keydown",g)],c=!0)},p(y,I){var v;i=y,i[169].id===((v=i[41])==null?void 0:v.id)?h?I[0]&512|I[1]&1024&&d(h,1):(h=Ad(i),h.c(),d(h,1),h.m(e,t)):h&&(ue(),_(h,1,1,()=>{h=null}),fe()),(!u||I[0]&512)&&o!==(o=co(i[169],i[9])+"")&&Ye(r,o),(!u||I[1]&512)&&H(n,"submenu-value-mobile",i[40]),(!u||I[0]&512&&a!==(a=i[169].id))&&f(e,"data-value",a),(!u||I[0]&512&&s!==(s=co(i[169],i[9])))&&f(e,"aria-label",s),(!u||I[1]&512)&&H(e,"item-mobile",i[40])},i(y){u||(d(h),u=!0)},o(y){_(h),u=!1},d(y){y&&C(e),h&&h.d(),c=!1,nt(m)}}}function Vd(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,g;n=new xn({props:{direction:"left"}});let k=Tt(i[8]),y=[];for(let v=0;v<k.length;v+=1)y[v]=Rd(cd(i,k,v));let I=v=>_(y[v],1,1,()=>{y[v]=null});return{c(){var v;e=T("div"),t=T("div"),N(n.$$.fragment),o=O(),r=T("div"),r.textContent=`${G("submenu_playback_rate")}`,a=O(),s=T("div"),u=O(),c=T("ul");for(let b=0;b<y.length;b+=1)y[b].c();f(t,"class","item menu-header svelte-1h807jq"),f(t,"aria-label",l=G("aria_label_submenu_back")),H(t,"item-mobile",i[40]),f(s,"class","menu-divider svelte-1h807jq"),f(c,"class","items svelte-1h807jq"),f(c,"role","menu"),f(c,"style",m=i[84]((v=i[22])==null?void 0:v.clientHeight,!0)),H(c,"items-mobile",i[40]),f(e,"class","menu menu-subList svelte-1h807jq"),H(e,"menu-desktop",!i[40]),H(e,"menu-mobile",i[40])},m(v,b){S(v,e,b),p(e,t),B(n,t,null),p(t,o),p(t,r),i[138](t),p(e,a),p(e,s),p(e,u),p(e,c);for(let E=0;E<y.length;E+=1)y[E]&&y[E].m(c,null);i[141](c),h=!0,w||(g=[me(t,"click",ft(i[77])),me(c,"keydown",i[98])],w=!0)},p(v,b){var E;if((!h||b[1]&512)&&H(t,"item-mobile",v[40]),b[0]&256|b[1]&512|b[2]&4096|b[3]&64){k=Tt(v[8]);let A;for(A=0;A<k.length;A+=1){let L=cd(v,k,A);y[A]?(y[A].p(L,b),d(y[A],1)):(y[A]=Rd(L),y[A].c(),d(y[A],1),y[A].m(c,null))}for(ue(),A=k.length;A<y.length;A+=1)I(A);fe()}(!h||b[0]&4194304&&m!==(m=v[84]((E=v[22])==null?void 0:E.clientHeight,!0)))&&f(c,"style",m),(!h||b[1]&512)&&H(c,"items-mobile",v[40]),(!h||b[1]&512)&&H(e,"menu-desktop",!v[40]),(!h||b[1]&512)&&H(e,"menu-mobile",v[40])},i(v){if(!h){d(n.$$.fragment,v);for(let b=0;b<k.length;b+=1)d(y[b]);h=!0}},o(v){_(n.$$.fragment,v),y=y.filter(Boolean);for(let b=0;b<y.length;b+=1)_(y[b]);h=!1},d(v){v&&C(e),D(n),i[138](null),Ri(y,v),i[141](null),w=!1,nt(g)}}}function Ld(i){let e,t,n;return t=new xo({}),{c(){e=T("div"),N(t.$$.fragment),f(e,"class","itemIcon svelte-1h807jq")},m(o,r){S(o,e,r),B(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),D(t)}}}function Rd(i){let e,t,n,o=i[166].displayValue+"",r,l,a,s,u,c,m,h=i[166].selected&&Ld(i);function w(){return i[139](i[166])}function g(...k){return i[140](i[166],...k)}return{c(){e=T("li"),h&&h.c(),t=O(),n=T("div"),r=Ve(o),l=O(),f(n,"class","submenu-value svelte-1h807jq"),H(n,"submenu-value-mobile",i[40]),f(e,"class","item item-quality svelte-1h807jq"),f(e,"data-value",a=i[166].value),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",s=i[166].displayValue),H(e,"item-mobile",i[40])},m(k,y){S(k,e,y),h&&h.m(e,null),p(e,t),p(e,n),p(n,r),p(e,l),u=!0,c||(m=[me(e,"click",ft(w)),me(e,"keydown",g)],c=!0)},p(k,y){i=k,i[166].selected?h?y[0]&256&&d(h,1):(h=Ld(i),h.c(),d(h,1),h.m(e,t)):h&&(ue(),_(h,1,1,()=>{h=null}),fe()),(!u||y[0]&256)&&o!==(o=i[166].displayValue+"")&&Ye(r,o),(!u||y[1]&512)&&H(n,"submenu-value-mobile",i[40]),(!u||y[0]&256&&a!==(a=i[166].value))&&f(e,"data-value",a),(!u||y[0]&256&&s!==(s=i[166].displayValue))&&f(e,"aria-label",s),(!u||y[1]&512)&&H(e,"item-mobile",i[40])},i(k){u||(d(h),u=!0)},o(k){_(h),u=!1},d(k){k&&C(e),h&&h.d(),c=!1,nt(m)}}}function Bd(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,g,k,y,I,v,b,E,A,L,R,le,ae,Y,V,ee,X;n=new xn({props:{direction:"left"}});let se=!i[6]&&Dd(i),F=i[6]&&Nd(i);return{c(){var ne;e=T("div"),t=T("div"),N(n.$$.fragment),o=O(),r=T("div"),r.textContent=`${G("submenu_traffic_saving")}`,a=O(),s=T("div"),u=O(),c=T("div"),m=T("ul"),h=T("li"),se&&se.c(),w=O(),g=T("div"),g.textContent=`${G("traffic_saving_disable")}`,y=O(),I=T("li"),F&&F.c(),v=O(),b=T("div"),b.textContent=`${G("traffic_saving_enable")}`,A=O(),L=T("div"),R=O(),le=T("div"),ae=T("span"),ae.textContent=`${G("traffic_saving_helper_text")}`,f(t,"class","item menu-header svelte-1h807jq"),f(t,"aria-label",l=G("aria_label_submenu_back")),H(t,"item-mobile",i[40]),f(s,"class","menu-divider svelte-1h807jq"),f(g,"class","submenu-value svelte-1h807jq"),H(g,"submenu-value-mobile",i[40]),f(h,"class","item item-traffic-saving svelte-1h807jq"),f(h,"role","menuitem"),f(h,"tabindex","0"),f(h,"aria-label",k=G("aria_label_submenu_traffic_saving_off")),H(h,"item-mobile",i[40]),f(b,"class","submenu-value svelte-1h807jq"),H(b,"submenu-value-mobile",i[40]),f(I,"class","item item-traffic-saving svelte-1h807jq"),f(I,"role","menuitem"),f(I,"tabindex","0"),f(I,"aria-label",E=`${G("aria_label_submenu_traffic_saving_on")}. ${G("traffic_saving_helper_text")}`),H(I,"item-mobile",i[40]),f(m,"class","items svelte-1h807jq"),f(m,"role","menu"),H(m,"items-mobile",i[40]),f(L,"class","menu-divider svelte-1h807jq"),f(ae,"class","svelte-1h807jq"),f(le,"class","item item-helper-text svelte-1h807jq"),H(le,"item-mobile",i[40]),f(c,"style",Y=i[84]((ne=i[23])==null?void 0:ne.clientHeight,!0)),f(e,"class","menu menu-subList menu-subList-traffic-saving svelte-1h807jq"),H(e,"menu-desktop",!i[40]),H(e,"menu-mobile",i[40])},m(ne,P){S(ne,e,P),p(e,t),B(n,t,null),p(t,o),p(t,r),i[142](t),p(e,a),p(e,s),p(e,u),p(e,c),p(c,m),p(m,h),se&&se.m(h,null),p(h,w),p(h,g),p(m,y),p(m,I),F&&F.m(I,null),p(I,v),p(I,b),i[147](m),p(c,A),p(c,L),p(c,R),p(c,le),p(le,ae),V=!0,ee||(X=[me(t,"click",ft(i[77])),me(h,"click",ft(i[143])),me(h,"keydown",i[144]),me(I,"click",ft(i[145])),me(I,"keydown",i[146]),me(m,"keydown",i[104])],ee=!0)},p(ne,P){var U;(!V||P[1]&512)&&H(t,"item-mobile",ne[40]),ne[6]?se&&(ue(),_(se,1,1,()=>{se=null}),fe()):se?P[0]&64&&d(se,1):(se=Dd(ne),se.c(),d(se,1),se.m(h,w)),(!V||P[1]&512)&&H(g,"submenu-value-mobile",ne[40]),(!V||P[1]&512)&&H(h,"item-mobile",ne[40]),ne[6]?F?P[0]&64&&d(F,1):(F=Nd(ne),F.c(),d(F,1),F.m(I,v)):F&&(ue(),_(F,1,1,()=>{F=null}),fe()),(!V||P[1]&512)&&H(b,"submenu-value-mobile",ne[40]),(!V||P[1]&512)&&H(I,"item-mobile",ne[40]),(!V||P[1]&512)&&H(m,"items-mobile",ne[40]),(!V||P[1]&512)&&H(le,"item-mobile",ne[40]),(!V||P[0]&8388608&&Y!==(Y=ne[84]((U=ne[23])==null?void 0:U.clientHeight,!0)))&&f(c,"style",Y),(!V||P[1]&512)&&H(e,"menu-desktop",!ne[40]),(!V||P[1]&512)&&H(e,"menu-mobile",ne[40])},i(ne){V||(d(n.$$.fragment,ne),d(se),d(F),V=!0)},o(ne){_(n.$$.fragment,ne),_(se),_(F),V=!1},d(ne){ne&&C(e),D(n),i[142](null),se&&se.d(),F&&F.d(),i[147](null),ee=!1,nt(X)}}}function Dd(i){let e,t,n;return t=new xo({}),{c(){e=T("div"),N(t.$$.fragment),f(e,"class","itemIcon svelte-1h807jq")},m(o,r){S(o,e,r),B(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),D(t)}}}function Nd(i){let e,t,n;return t=new xo({}),{c(){e=T("div"),N(t.$$.fragment),f(e,"class","itemIcon svelte-1h807jq")},m(o,r){S(o,e,r),B(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),D(t)}}}function qd(i){let e,t,n,o,r,l,a,s,u,c,m,h;n=new xn({props:{direction:"left"}});let w=Tt(i[7]),g=[];for(let y=0;y<w.length;y+=1)g[y]=Fd(fd(i,w,y));let k=y=>_(g[y],1,1,()=>{g[y]=null});return{c(){var y;e=T("div"),t=T("div"),N(n.$$.fragment),o=O(),r=T("div"),r.textContent=`${G("subtitles_caption")}`,a=O(),s=T("ul");for(let I=0;I<g.length;I+=1)g[I].c();f(t,"class","item menu-header svelte-1h807jq"),f(t,"aria-label",l=G("aria_label_submenu_back")),H(t,"item-mobile",i[40]),f(s,"class","items svelte-1h807jq"),f(s,"role","menu"),f(s,"style",u=i[84]((y=i[24])==null?void 0:y.clientHeight,!0)),H(s,"items-mobile",i[40]),f(e,"class","menu menu-subList menu-subList-subtitles svelte-1h807jq"),H(e,"menu-desktop",!i[40]),H(e,"menu-mobile",i[40])},m(y,I){S(y,e,I),p(e,t),B(n,t,null),p(t,o),p(t,r),i[148](t),p(e,a),p(e,s);for(let v=0;v<g.length;v+=1)g[v]&&g[v].m(s,null);i[151](s),c=!0,m||(h=[me(t,"click",ft(i[77])),me(s,"keydown",i[101])],m=!0)},p(y,I){var v;if((!c||I[1]&512)&&H(t,"item-mobile",y[40]),I[0]&128|I[1]&512|I[2]&16384|I[3]&512){w=Tt(y[7]);let b;for(b=0;b<w.length;b+=1){let E=fd(y,w,b);g[b]?(g[b].p(E,I),d(g[b],1)):(g[b]=Fd(E),g[b].c(),d(g[b],1),g[b].m(s,null))}for(ue(),b=w.length;b<g.length;b+=1)k(b);fe()}(!c||I[0]&16777216&&u!==(u=y[84]((v=y[24])==null?void 0:v.clientHeight,!0)))&&f(s,"style",u),(!c||I[1]&512)&&H(s,"items-mobile",y[40]),(!c||I[1]&512)&&H(e,"menu-desktop",!y[40]),(!c||I[1]&512)&&H(e,"menu-mobile",y[40])},i(y){if(!c){d(n.$$.fragment,y);for(let I=0;I<w.length;I+=1)d(g[I]);c=!0}},o(y){_(n.$$.fragment,y),g=g.filter(Boolean);for(let I=0;I<g.length;I+=1)_(g[I]);c=!1},d(y){y&&C(e),D(n),i[148](null),Ri(g,y),i[151](null),m=!1,nt(h)}}}function Od(i){let e,t,n;return t=new xo({}),{c(){e=T("div"),N(t.$$.fragment),f(e,"class","itemIcon svelte-1h807jq")},m(o,r){S(o,e,r),B(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),D(t)}}}function Fd(i){let e,t,n,o=i[163].displayValue+"",r,l,a,s,u,c,m,h=i[163].selected&&Od(i);function w(){return i[149](i[163])}function g(...k){return i[150](i[163],...k)}return{c(){e=T("li"),h&&h.c(),t=O(),n=T("div"),r=Ve(o),l=O(),f(n,"class","submenu-value svelte-1h807jq"),H(n,"submenu-value-mobile",i[40]),f(e,"class","item item-quality svelte-1h807jq"),f(e,"data-value",a=i[163].value),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",s=i[163].displayValue),H(e,"item-mobile",i[40])},m(k,y){S(k,e,y),h&&h.m(e,null),p(e,t),p(e,n),p(n,r),p(e,l),u=!0,c||(m=[me(e,"click",ft(w)),me(e,"keydown",g)],c=!0)},p(k,y){i=k,i[163].selected?h?y[0]&128&&d(h,1):(h=Od(i),h.c(),d(h,1),h.m(e,t)):h&&(ue(),_(h,1,1,()=>{h=null}),fe()),(!u||y[0]&128)&&o!==(o=i[163].displayValue+"")&&Ye(r,o),(!u||y[1]&512)&&H(n,"submenu-value-mobile",i[40]),(!u||y[0]&128&&a!==(a=i[163].value))&&f(e,"data-value",a),(!u||y[0]&128&&s!==(s=i[163].displayValue))&&f(e,"aria-label",s),(!u||y[1]&512)&&H(e,"item-mobile",i[40])},i(k){u||(d(h),u=!0)},o(k){_(h),u=!1},d(k){k&&C(e),h&&h.d(),c=!1,nt(m)}}}function $g(i){let e,t,n,o,r,l,a,s=i[12]&&pd(i),u=i[14]&&Sd(i),c=i[15]&&Ed(i),m=i[16]&&Vd(i),h=i[18]&&Bd(i),w=i[17]&&qd(i);return{c(){e=T("div"),s&&s.c(),t=O(),u&&u.c(),n=O(),c&&c.c(),o=O(),m&&m.c(),r=O(),h&&h.c(),l=O(),w&&w.c(),f(e,"class","svelte-1h807jq"),H(e,"hidden",!i[12]),H(e,"container-mobile",i[40])},m(g,k){S(g,e,k),s&&s.m(e,null),p(e,t),u&&u.m(e,null),p(e,n),c&&c.m(e,null),p(e,o),m&&m.m(e,null),p(e,r),h&&h.m(e,null),p(e,l),w&&w.m(e,null),a=!0},p(g,k){g[12]?s?(s.p(g,k),k[0]&4096&&d(s,1)):(s=pd(g),s.c(),d(s,1),s.m(e,t)):s&&(ue(),_(s,1,1,()=>{s=null}),fe()),g[14]?u?(u.p(g,k),k[0]&16384&&d(u,1)):(u=Sd(g),u.c(),d(u,1),u.m(e,n)):u&&(ue(),_(u,1,1,()=>{u=null}),fe()),g[15]?c?(c.p(g,k),k[0]&32768&&d(c,1)):(c=Ed(g),c.c(),d(c,1),c.m(e,o)):c&&(ue(),_(c,1,1,()=>{c=null}),fe()),g[16]?m?(m.p(g,k),k[0]&65536&&d(m,1)):(m=Vd(g),m.c(),d(m,1),m.m(e,r)):m&&(ue(),_(m,1,1,()=>{m=null}),fe()),g[18]?h?(h.p(g,k),k[0]&262144&&d(h,1)):(h=Bd(g),h.c(),d(h,1),h.m(e,l)):h&&(ue(),_(h,1,1,()=>{h=null}),fe()),g[17]?w?(w.p(g,k),k[0]&131072&&d(w,1)):(w=qd(g),w.c(),d(w,1),w.m(e,null)):w&&(ue(),_(w,1,1,()=>{w=null}),fe()),(!a||k[0]&4096)&&H(e,"hidden",!g[12]),(!a||k[1]&512)&&H(e,"container-mobile",g[40])},i(g){a||(d(s),d(u),d(c),d(m),d(h),d(w),a=!0)},o(g){_(s),_(u),_(c),_(m),_(h),_(w),a=!1},d(g){g&&C(e),s&&s.d(),u&&u.d(),c&&c.d(),m&&m.d(),h&&h.d(),w&&w.d()}}}var eb=18;function tb(i,e,t){let n,o,r,l,a,s,u,c,m,h,w,g,k,y,I,v,b,E,A,L,R,le,ae,Y,V,ee,X,{ref:se=void 0}=e,{supportLink:F}=e,{playerControlsHeight:ne=0}=e,{returnFocus:P}=e,U=st(),we=Zt(),qe=U.state.audioStream$;z(i,qe,x=>t(41,g=x));let Ze=U.state.availableAudioStreams$;z(i,Ze,x=>t(9,k=x));let Xe=U.state.currentQuality$;z(i,Xe,x=>t(118,v=x));let He=U.state.availableQualities$;z(i,He,x=>t(10,y=x));let ye=U.state.autoQualityLimitingAvailable$;z(i,ye,x=>t(122,L=x));let J=U.state.isAutoQualityEnabled$;z(i,J,x=>t(119,b=x));let ke=U.state.currentPlaybackRate$;z(i,ke,x=>t(11,I=x));let it=U.state.availablePlaybackRates$;z(i,it,x=>t(8,m=x));let Oe=U.state.currentSubtitle$;z(i,Oe,x=>t(42,ee=x));let rt=U.state.availableSubtitlesList$;z(i,rt,x=>t(7,u=x));let Ce=U.state.canDownload,Je=U.state.hasMpegSources$;z(i,Je,x=>t(123,R=x));let at=U.ui.settingsMenuVisible;z(i,at,x=>t(12,V=x));let Ge=U.ui.settingsMenuOpenedByKeyboard;z(i,Ge,x=>t(153,o=x));let Ke=U.ui.isMobile;z(i,Ke,x=>t(40,r=x));let $e=U.ui.mobileNotReportControlHidden$;z(i,$e,x=>t(120,E=x));let de=U.state.canChangePlaybackSpeed$;z(i,de,x=>t(121,A=x));let Ne=U.ui.isFullscreen;z(i,Ne,x=>t(156,Y=x));let Te=U.state.trafficSavingEnabled$;z(i,Te,x=>t(6,a=x));let ze=U.ui.playerSize;z(i,ze,x=>t(155,ae=x));let K=U.ui.debugPanelVisible;z(i,K,x=>t(43,X=x));let ve=U.ui.playerSize;z(i,ve,x=>t(154,le=x));let et=U.state.isInteractiveTime$,_t=U.actions.internal.downloadVideo,vt=U.actions.internal.closeSettingsMenu,ce=!0,bt=!1,Mt=!1,St=!1,je=!1,jt=!1,Vt=!1;function Pt(){o||P==null||P(),vt(),Vt=!1}function oi(){t(13,ce=!1),t(14,bt=!0)}function Bt(){t(13,ce=!1),t(15,Mt=!0)}function Dt(){t(13,ce=!1),t(18,jt=!0)}function _e(x){U.actions.internal.setQuality(x),Pt()}function We(x){U.actions.internal.setAudioStream(x),Pt()}function xe(x){U.actions.internal.setTrafficSavingEnabled(x),Pt()}function lt(){t(13,ce=!1),t(16,St=!0)}function ht(x){U.actions.internal.setPlaybackRate(x),Pt()}function Gt(){t(13,ce=!1),t(17,je=!0)}function _i(x){U.actions.internal.setSubtitle(x),Pt()}function Nt(){t(13,ce=!0),t(14,bt=!1),t(15,Mt=!1),t(16,St=!1),t(17,je=!1),t(18,jt=!1)}function Yi(){_t(),Pt()}function an(){window.open(F,"_blank"),Pt(),U.actions.internal.pause()}function ai(){_l(U.actions.internal.getDebugTextData()),Pt()}function Di(){K.set(!0),Pt()}function kn(){Vt=!0}function Ti(){Vt=!1}function un(x,mt,Wt){if(!x)return"...";let bn=mt.find(Yn=>Yn.value===x),wi=bn?bn.displayValue:x;return Wt?x===Hd.VideoQuality.INVARIANT?G("auto_quality_invariant"):G("auto_quality",{actual:wi}):wi}let hi,Ni,gi,Pi,bi,Ii;function Ht(x=0,mt=!1){return r&&Y&&mt?`max-height: ${Math.round(ae.height*.6)}px`:r?"":`max-height: ${le.height-eb-x-ne}px; overflow: auto;`}let zt,fn,Zi,ui,Ei,Xi,qi,yt,cn,It,Oi,Ji,xi,ii=Re(!1);z(i,ii,x=>t(117,w=x));let vi=Re(!1);z(i,vi,x=>t(116,h=x));let yi,fi,li=Re(!1);z(i,li,x=>t(115,c=x));let Ut,ci,Fi=Re(!1);z(i,Fi,x=>t(114,s=x));let Ai,ri,di=Re(!1);z(i,di,x=>t(113,l=x));let $i=x=>{Pr(x,vt)},en=x=>ct(this,null,function*(){yl(x,oi,()=>{let mt=y.findIndex(Wt=>Wt.selected);return Ji.childNodes[mt]})}),Cn=x=>ct(this,null,function*(){yl(x,Bt,()=>{let mt=k.findIndex(Wt=>Wt.id===(g==null?void 0:g.id));return xi.childNodes[mt]})}),tn=x=>ct(this,null,function*(){wl(x,Nt,ii,vt)}),Qt=(x,mt)=>{Ci(x,()=>_e(mt))},Yt=x=>ct(this,null,function*(){wl(x,Nt,vi,vt)}),Mi=(x,mt)=>{Ci(x,()=>We(mt))},mi=x=>ct(this,null,function*(){yl(x,lt,()=>{let mt=m.findIndex(Wt=>Wt.selected);return fi.childNodes[mt]})}),nn=x=>ct(this,null,function*(){wl(x,Nt,li,vt)}),Hi=(x,mt)=>{Ci(x,()=>ht(mt))},dn=x=>ct(this,null,function*(){yl(x,Gt,()=>{let mt=u.findIndex(Wt=>Wt.selected);return ci.childNodes[mt]})}),Vi=x=>ct(this,null,function*(){wl(x,Nt,Fi,vt)}),zi=(x,mt)=>{Ci(x,()=>_i(mt))},ot=x=>ct(this,null,function*(){yl(x,Dt,()=>{let mt=a?2:0;return ri.childNodes[mt]})}),pi=x=>ct(this,null,function*(){wl(x,Nt,di,vt)}),si=(x,mt)=>{Ci(x,()=>xe(mt))},Fe=x=>{Ci(x,()=>Yi())},Ui=x=>{Ci(x,()=>an())},Sn=x=>{Ci(x,()=>ai())},on=x=>{Ci(x,()=>Di())};Ot(()=>{let x=et.subscribe(mt=>{mt&&!r&&!Vt&&!o&&Pt()});return()=>{x()}});function Ki(x){pe[x?"unshift":"push"](()=>{It=x,t(1,It)})}function ln(x){pe[x?"unshift":"push"](()=>{Oi=x,t(2,Oi)})}function rn(x){pe[x?"unshift":"push"](()=>{yi=x,t(3,yi)})}function Tn(x){pe[x?"unshift":"push"](()=>{Ut=x,t(4,Ut)})}function Mn(x){pe[x?"unshift":"push"](()=>{Ai=x,t(5,Ai)})}function Jt(x){pe[x?"unshift":"push"](()=>{se=x,t(0,se)})}function ji(x){pe[x?"unshift":"push"](()=>{Ni=x,t(20,Ni)})}let mn=x=>_e(x.value),Dn=(x,mt)=>Qt(mt,x.value);function pn(x){pe[x?"unshift":"push"](()=>{Ji=x,t(34,Ji)})}function _n(x){pe[x?"unshift":"push"](()=>{gi=x,t(21,gi)})}let Pn=x=>We(x),xt=(x,mt)=>Mi(mt,x);function ni(x){pe[x?"unshift":"push"](()=>{xi=x,t(35,xi)})}function Nn(x){pe[x?"unshift":"push"](()=>{Pi=x,t(22,Pi)})}let qn=x=>ht(x.value),On=(x,mt)=>Hi(mt,x.value);function Xt(x){pe[x?"unshift":"push"](()=>{fi=x,t(36,fi)})}function jn(x){pe[x?"unshift":"push"](()=>{bi=x,t(23,bi)})}let Vn=()=>xe(!1),hn=x=>si(x,!1),Wn=()=>xe(!0),Ln=x=>si(x,!0);function In(x){pe[x?"unshift":"push"](()=>{ri=x,t(38,ri)})}function Wi(x){pe[x?"unshift":"push"](()=>{Ii=x,t(24,Ii)})}let gn=x=>_i(x),En=(x,mt)=>zi(mt,x);function ie(x){pe[x?"unshift":"push"](()=>{ci=x,t(37,ci)})}return i.$$set=x=>{"ref"in x&&t(0,se=x.ref),"supportLink"in x&&t(110,F=x.supportLink),"playerControlsHeight"in x&&t(111,ne=x.playerControlsHeight),"returnFocus"in x&&t(112,P=x.returnFocus)},i.$$.update=()=>{var x;if(i.$$.dirty[0]&4096)e:V&&(t(13,ce=!0),t(14,bt=!1),t(15,Mt=!1),t(16,St=!1),t(17,je=!1),t(18,jt=!1));if(i.$$.dirty[3]&33554432)e:t(39,n=Io(v));if(i.$$.dirty[0]&1024|i.$$.dirty[3]&100663296)e:t(19,hi=un(v,y,b));if(i.$$.dirty[3]&1207959552)e:t(25,zt=Ce&&R&&!E);if(i.$$.dirty[3]&671088640)e:t(26,fn=we.features.trafficSaving&&!E&&L);if(i.$$.dirty[0]&128|i.$$.dirty[3]&134217728)e:t(27,Zi=u.length>0&&!E);if(i.$$.dirty[3]&402653184)e:t(28,ui=!!A&&!E);if(i.$$.dirty[0]&512|i.$$.dirty[3]&134217728)e:t(29,Ei=we.features.audioLanguages&&k.length>=2&&!E);if(i.$$.dirty[3]&134217728)e:t(30,Xi=!E);if(i.$$.dirty[0]&64)e:t(31,qi=a?G("traffic_saving_on"):G("traffic_saving_off"));if(i.$$.dirty[3]&100663296)e:t(32,yt=b?G("auto_quality_option"):v);if(i.$$.dirty[0]&2304)e:t(33,cn=(x=m.find(mt=>mt.value===I))==null?void 0:x.displayValue);if(i.$$.dirty[0]&2|i.$$.dirty[3]&16777216)e:vl(It,ii,w);if(i.$$.dirty[0]&4|i.$$.dirty[3]&8388608)e:vl(Oi,vi,h);if(i.$$.dirty[0]&8|i.$$.dirty[3]&4194304)e:vl(yi,li,c);if(i.$$.dirty[0]&16|i.$$.dirty[3]&2097152)e:vl(Ut,Fi,s);if(i.$$.dirty[0]&32|i.$$.dirty[3]&1048576)e:vl(Ai,di,l)},[se,It,Oi,yi,Ut,Ai,a,u,m,k,y,I,V,ce,bt,Mt,St,je,jt,hi,Ni,gi,Pi,bi,Ii,zt,fn,Zi,ui,Ei,Xi,qi,yt,cn,Ji,xi,fi,ci,ri,n,r,g,ee,X,we,qe,Ze,Xe,He,ye,J,ke,it,Oe,rt,Je,at,Ge,Ke,$e,de,Ne,Te,ze,K,ve,Pt,oi,Bt,Dt,_e,We,xe,lt,ht,Gt,_i,Nt,Yi,an,ai,Di,kn,Ti,Ht,ii,vi,li,Fi,di,$i,en,Cn,tn,Qt,Yt,Mi,mi,nn,Hi,dn,Vi,zi,ot,pi,si,Fe,Ui,Sn,on,F,ne,P,l,s,c,h,w,v,b,E,A,L,R,Ki,ln,rn,Tn,Mn,Jt,ji,mn,Dn,pn,_n,Pn,xt,ni,Nn,qn,On,Xt,jn,Vn,hn,Wn,Ln,In,Wi,gn,En,ie]}var ja=class extends W{constructor(e){super(),Q(this,e,tb,$g,j,{ref:0,supportLink:110,playerControlsHeight:111,returnFocus:112},Jg,[-1,-1,-1,-1,-1,-1])}},Or=ja;function ib(i){Se(i,"svelte-d9t49t",".settings-icon-wrapper.svelte-d9t49t{position:relative;width:24px}")}function nb(i){let e,t,n;return t=new Nr({props:{isMobile:i[3],currentQuality:i[4]}}),{c(){e=T("span"),N(t.$$.fragment),f(e,"class","settings-icon-wrapper svelte-d9t49t")},m(o,r){S(o,e,r),B(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),D(t)}}}function ob(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:[nb]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new wt({props:r}),pe.push(()=>De(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){B(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],Be(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){D(e,l)}}}function lb(i,e,t){let n,o,r,{ref:l=void 0}=e,a=st(),s=a.state.currentQuality$;z(i,s,k=>t(4,r=k));let u=a.ui.settingsMenuVisible;z(i,u,k=>t(1,n=k));let c=a.actions.internal.toggleSettingsMenu,m=a.ui.isMobile;z(i,m,k=>t(3,o=k));let h;function w(k){let y=gl(k);c(y)}function g(k){l=k,t(0,l)}return i.$$set=k=>{"ref"in k&&t(0,l=k.ref)},i.$$.update=()=>{if(i.$$.dirty&2)e:t(2,h=n?G("tooltip_settings_on"):G("tooltip_settings_off"))},[l,n,h,o,r,s,u,m,w,g]}var Wa=class extends W{constructor(e){super(),Q(this,e,lb,ob,j,{ref:0},ib)}},Wl=Wa;function rb(i){let e,t,n,o=i[2].default,r=Ie(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=re(a,l[s]);return{c(){e=q("svg"),r&&r.c(),t=q("path"),f(t,"fill","#fff"),f(t,"d","M3 0h14a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3V3a3 3 0 0 1 3-3m1 9h2a1 1 0 0 0 0-2H4a1 1 0 0 0 0 2m5 0h7a1 1 0 1 0 0-2H9a1 1 0 0 0 0 2m-5 4h7a1 1 0 1 0 0-2H4a1 1 0 1 0 0 2m10 0h2a1 1 0 1 0 0-2h-2a1 1 0 1 0 0 2"),be(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ae(r,o,s,s[1],n?Ee(o,s[1],u,null):Me(s[1]),null),be(e,a=Le(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 sb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Ga=class extends W{constructor(e){super(),Q(this,e,sb,rb,j,{})}},zd=Ga;function ab(i){let e,t;return e=new qr({}),{c(){N(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function ub(i){let e,t;return e=new zd({}),{c(){N(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function fb(i){let e,t,n,o,r=[ub,ab],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=dt()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,u){let c=e;e=a(s,u),e!==c&&(ue(),_(l[c],1,1,()=>{l[c]=null}),fe(),t=l[e],t||(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&C(n),l[e].d(s)}}}function cb(i){let e,t;return e=new wt({props:{testId:"btn-Subtitles",ariaLabel:i[2],click:i[1],ariaKeyShortCut:to.KeyC,$$slots:{default:[fb]},$$scope:{ctx:i}}}),{c(){N(e.$$.fragment)},m(n,o){B(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){D(e,n)}}}function db(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?G("tooltip_subtitles_on"):G("tooltip_subtitles_off"))},[n,o,r]}var Qa=class extends W{constructor(e){super(),Q(this,e,db,cb,j,{isSubtitlesEnabled:0,click:1})}},Ud=Qa;function mb(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=T("span"),t=Ve(i[3]),f(e,"class","duration svelte-19o2urr")},m(n,o){S(n,e,o),p(e,t)},p(n,o){o&8&&Ye(t,n[3])},d(n){n&&C(e)}}}function pb(i){let e,t,n,o,r=i[2]&&Kd(i);return{c(){e=T("div"),t=T("span"),n=Ve(i[4]),o=O(),r&&r.c(),f(t,"class","current svelte-19o2urr"),f(e,"class","time svelte-19o2urr"),H(e,"mobile",i[1])},m(l,a){S(l,e,a),p(e,t),p(t,n),p(e,o),r&&r.m(e,null),i[7](e)},p(l,[a]){a&16&&Ye(n,l[4]),l[2]?r?r.p(l,a):(r=Kd(l),r.c(),r.m(e,null)):r&&(r.d(1),r=null),a&2&&H(e,"mobile",l[1])},i:he,o:he,d(l){l&&C(e),r&&r.d(),i[7](null)}}}function _b(i,e,t){let{isMobile:n=!1}=e,{duration:o}=e,{position:r}=e,{showDuration:l=!0}=e,{ref:a}=e,s,u;function c(m){pe[m?"unshift":"push"](()=>{a=m,t(0,a)})}return i.$$set=m=>{"isMobile"in m&&t(1,n=m.isMobile),"duration"in m&&t(5,o=m.duration),"position"in m&&t(6,r=m.position),"showDuration"in m&&t(2,l=m.showDuration),"ref"in m&&t(0,a=m.ref)},i.$$.update=()=>{if(i.$$.dirty&32)e:t(3,s=zn(o));if(i.$$.dirty&64)e:t(4,u=zn(r))},[a,n,l,s,u,o,r,c]}var Ya=class extends W{constructor(e){super(),Q(this,e,_b,pb,j,{isMobile:1,duration:5,position:6,showDuration:2,ref:0},mb)}},Fr=Ya;var mo=require("@vkontakte/videoplayer-shared");function hb(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 gb(i){let e,t,n,o,r,l;return{c(){e=q("svg"),t=q("g"),n=q("path"),o=q("path"),r=q("path"),f(n,"class","wave2 svelte-1n5yyua"),f(n,"d","M12.98 18.823c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963zm2.901-8.704A.875.875 0 1 1 17.12 8.88c.176.177.41.47.64.872.384.671.616 1.425.616 2.247s-.232 1.576-.615 2.247a4.23 4.23 0 0 1-.641.872.875.875 0 1 1-1.238-1.238c.074-.073.214-.249.36-.503.241-.423.384-.887.384-1.378s-.143-.955-.385-1.378a2.597 2.597 0 0 0-.359-.503zm3-2A.875.875 0 1 1 20.12 6.88c.263.264.62.74.966 1.432.517 1.033.843 2.255.89 3.716-.047 1.403-.373 2.625-.89 3.658-.346.692-.703 1.168-.966 1.432a.875.875 0 1 1-1.238-1.238c.138-.137.383-.464.639-.976.407-.814.667-1.79.705-2.876-.038-1.144-.298-2.12-.705-2.934-.256-.512-.501-.839-.639-.976z"),f(o,"class","wave1 svelte-1n5yyua"),f(o,"d","M12.98 18.823c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963zm2.901-8.704A.875.875 0 1 1 17.12 8.88c.176.177.41.47.64.872.384.671.616 1.425.616 2.247s-.232 1.576-.615 2.247a4.23 4.23 0 0 1-.641.872.875.875 0 1 1-1.238-1.238c.074-.073.214-.249.36-.503.241-.423.384-.887.384-1.378s-.143-.955-.385-1.378a2.597 2.597 0 0 0-.359-.503z"),f(r,"class","cross svelte-1n5yyua"),f(r,"d","m20 10.763 2.381-2.382A.875.875 0 1 1 23.62 9.62L21.237 12l2.382 2.381a.875.875 0 1 1-1.238 1.238L20 13.237l-2.381 2.382a.875.875 0 1 1-1.238-1.238L18.763 12 16.38 9.619A.875.875 0 1 1 17.62 8.38zm-7.02 8.06c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963z"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(e,"data-value",i[0]),f(e,"data-testid",l="volume-"+i[0]+"-icon"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"class","icon svelte-1n5yyua"),f(e,"aria-hidden","true")},m(a,s){S(a,e,s),p(e,t),p(t,n),p(t,o),p(t,r)},p(a,[s]){s&1&&f(e,"data-value",a[0]),s&1&&l!==(l="volume-"+a[0]+"-icon")&&f(e,"data-testid",l)},i:he,o:he,d(a){a&&C(e)}}}function bb(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 Za=class extends W{constructor(e){super(),Q(this,e,bb,gb,j,{volume:1,muted:2},hb)}},$o=Za;var Un=require("@vkontakte/videoplayer-shared");var Qd=require("@vkontakte/videoplayer-shared");var Gd=require("@vkontakte/videoplayer-shared");function vb(i){let e,t,n=i[4].default,o=Ie(n,i,i[3],null);return{c(){e=T("div"),o&&o.c(),f(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)&&Ae(o,n,r,r[3],t?Ee(n,r[3],l,null):Me(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 yb(i,e,t){let n,{$$slots:o={},$$scope:r}=e,a=st().ui.overlayContainer$;z(i,a,h=>t(2,n=h));let s,u=h=>{!h||!s||!h.contains(s)||h.removeChild(s)},c=h=>{!h||!s||h.contains(s)||h.appendChild(s)};Ot(()=>(c(n),()=>u(n)));function m(h){pe[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:c(n)},[s,a,n,r,o,m]}var Xa=class extends W{constructor(e){super(),Q(this,e,yb,vb,j,{})}},jd=Xa;function wb(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 Wd(i){let e,t;return e=new jd({props:{$$slots:{default:[kb]},$$scope:{ctx:i}}}),{c(){N(e.$$.fragment)},m(n,o){B(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){D(e,n)}}}function kb(i){let e,t,n,o,r,l,a;return{c(){e=T("div"),t=T("div"),n=Ve(i[1]),o=O(),r=T("div"),f(t,"class","content svelte-tny135"),f(r,"class","tooltip-pointer svelte-tny135"),f(r,"style",l=`transform: translate(${i[5]}px, ${i[9]}px) rotate(${i[8]?0:"180deg"});`),H(r,"bottom-placement-pointer",!i[8]),f(e,"class","tooltip svelte-tny135"),f(e,"style",a=`transform: translate(${i[6]}px, ${i[7]}px);`),H(e,"active",i[0])},m(s,u){S(s,e,u),p(e,t),p(t,n),p(e,o),p(e,r),i[20](e)},p(s,u){u&2&&Ye(n,s[1]),u&32&&l!==(l=`transform: translate(${s[5]}px, ${s[9]}px) rotate(${s[8]?0:"180deg"});`)&&f(r,"style",l),u&192&&a!==(a=`transform: translate(${s[6]}px, ${s[7]}px);`)&&f(e,"style",a),u&1&&H(e,"active",s[0])},d(s){s&&C(e),i[20](null)}}}function Cb(i){let e,t,n,o,r,l,a=i[18].default,s=Ie(a,i,i[21],null),u=i[1]&&Wd(i);return{c(){e=T("div"),s&&s.c(),t=O(),u&&u.c(),n=dt(),f(e,"class","tooltip-wrapper svelte-tny135"),H(e,"full-width",i[2])},m(c,m){S(c,e,m),s&&s.m(e,null),i[19](e),S(c,t,m),u&&u.m(c,m),S(c,n,m),o=!0,r||(l=[me(e,"mouseenter",i[12]),me(e,"mousemove",i[12]),me(e,"mouseleave",i[13]),me(e,"mousedown",i[13]),me(e,"mouseup",i[12])],r=!0)},p(c,[m]){s&&s.p&&(!o||m&2097152)&&Ae(s,a,c,c[21],o?Ee(a,c[21],m,null):Me(c[21]),null),(!o||m&4)&&H(e,"full-width",c[2]),c[1]?u?(u.p(c,m),m&2&&d(u,1)):(u=Wd(c),u.c(),d(u,1),u.m(n.parentNode,n)):u&&(ue(),_(u,1,1,()=>{u=null}),fe())},i(c){o||(d(s,c),d(u),o=!0)},o(c){_(s,c),_(u),o=!1},d(c){c&&(C(e),C(t),C(n)),s&&s.d(c),i[19](null),u&&u.d(c),r=!1,nt(l)}}}var Gl=5;function Sb(i,e,t){let n,o,{$$slots:r={},$$scope:l}=e,{content:a=""}=e,{active:s=!1}=e,{translateX:u=0}=e,{translateY:c=0}=e,{isFullWidthWrapper:m=!1}=e,{placement:h="top"}=e,{onVisibilityChange:w=Gd.noop}=e,g=h==="top",k,y,I,v=0,b=g?Gl:-Gl,E=0,A=0,L=Zt(),R=st(),le=R.ui.playerSize;z(i,le,U=>t(24,o=U));let ae=R.ui.overlayContainer$;z(i,ae,U=>t(23,n=U));let Y=R.getLogger().createComponentLog("Tooltip component"),V=()=>{if(!n||!y||!k)return;let U=n.getBoundingClientRect(),we=k.getBoundingClientRect(),qe=we.width,Ze=y.clientWidth,Xe=o.width,He=(qe-Ze)/2,ye=we.left+u-U.left,J=ye+He,ke=we.top+c-U.top,it=Ze/2-Gl,Oe=J<8,rt=J+Ze>Xe-8;Oe&&(J=8,it=ye+we.width/2-2.5*Gl),rt&&(J=Xe-8-Ze,it=we.left-U.left+we.width/2-J-Gl),t(6,E=J),t(7,A=ke),t(5,v=it)},ee=()=>{try{if(!n||!k)return;V(),t(0,s=!0)}catch(U){Y({message:String(U)})}},X=()=>{t(0,s=!1)},se=()=>{y&&(I||(I=window.setTimeout(ee,L.controls.hideTimeoutTooltips)),s&&ee())},F=()=>{X(),window.clearTimeout(I),I=void 0};Ot(V),Zn(()=>window.clearTimeout(I));function ne(U){pe[U?"unshift":"push"](()=>{k=U,t(3,k)})}function P(U){pe[U?"unshift":"push"](()=>{y=U,t(4,y)})}return i.$$set=U=>{"content"in U&&t(1,a=U.content),"active"in U&&t(0,s=U.active),"translateX"in U&&t(14,u=U.translateX),"translateY"in U&&t(15,c=U.translateY),"isFullWidthWrapper"in U&&t(2,m=U.isFullWidthWrapper),"placement"in U&&t(16,h=U.placement),"onVisibilityChange"in U&&t(17,w=U.onVisibilityChange),"$$scope"in U&&t(21,l=U.$$scope)},i.$$.update=()=>{if(i.$$.dirty&131073)e:w(s)},[s,a,m,k,y,v,E,A,g,b,le,ae,se,F,u,c,h,w,r,ne,P,l]}var Ja=class extends W{constructor(e){super(),Q(this,e,Sb,Cb,j,{content:1,active:0,translateX:14,translateY:15,isFullWidthWrapper:2,placement:16,onVisibilityChange:17},wb)}},Hr=Ja;function Tb(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 Pb(i){let e,t=i[19].default,n=Ie(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)&&Ae(n,t,o,o[24],e?Ee(t,o[24],r,null):Me(o[24]),null)},i(o){e||(d(n,o),e=!0)},o(o){_(n,o),e=!1},d(o){n&&n.d(o)}}}function Ib(i){let e,t;return e=new Hr({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(){N(e.$$.fragment)},m(n,o){B(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){D(e,n)}}}function Eb(i){let e,t=i[19].default,n=Ie(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)&&Ae(n,t,o,o[24],e?Ee(t,o[24],r,null):Me(o[24]),null)},i(o){e||(d(n,o),e=!0)},o(o){_(n,o),e=!1},d(o){n&&n.d(o)}}}function Ab(i){let e,t,n,o,r,l,a,s,u,c=[Ib,Pb],m=[];function h(w,g){return w[3]&&w[11]&&!w[12]?0:1}return t=h(i,-1),n=m[t]=c[t](i),{c(){e=T("div"),n.c(),f(e,"class",o="btn-container "+i[2]+" svelte-p9r045"),f(e,"aria-hidden",r=i[7]||null),Jn(()=>i[23].call(e))},m(w,g){S(w,e,g),m[t].m(e,null),i[22](e),l=ll(e,i[23].bind(e)),a=!0,s||(u=[me(e,"pointerdown",ft(qt(i[20]))),me(e,"click",ft(qt(i[21])))],s=!0)},p(w,[g]){let k=t;t=h(w,g),t===k?m[t].p(w,g):(ue(),_(m[k],1,1,()=>{m[k]=null}),fe(),n=m[t],n?n.p(w,g):(n=m[t]=c[t](w),n.c()),d(n,1),n.m(e,null)),(!a||g&4&&o!==(o="btn-container "+w[2]+" svelte-p9r045"))&&f(e,"class",o),(!a||g&128&&r!==(r=w[7]||null))&&f(e,"aria-hidden",r)},i(w){a||(d(n),a=!0)},o(w){_(n),a=!1},d(w){w&&C(e),m[t].d(),i[22](null),l(),s=!1,nt(u)}}}function Mb(i,e,t){let n,o,{$$slots:r={},$$scope:l}=e,{className:a=""}=e,{disabled:s=!1}=e,{hasTooltip:u=!0}=e,{ref:c=void 0}=e,{width:m=void 0}=e,{isFullWidthTooltip:h=!0}=e,{tooltipContent:w=""}=e,{tooltipActive:g=!1}=e,{tooltipPlacement:k="top"}=e,{disabledTooltipContent:y=G("tooltip_button_disabled")}=e,{isAriaHidden:I=!1}=e,{onTooltipVisibilityChange:v=Qd.noop}=e,{initialTranslateXPx:b=0}=e,{initialTranslateYPx:E=-18}=e,A=st(),L=A.ui.isMobile;z(i,L,X=>t(12,o=X));let R=A.state.graphIsOpened$;z(i,R,X=>t(18,n=X));let le;function ae(X){Fn.call(this,i,X)}function Y(X){Fn.call(this,i,X)}function V(X){pe[X?"unshift":"push"](()=>{c=X,t(0,c)})}function ee(){m=this.clientWidth,t(1,m)}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,c=X.ref),"width"in X&&t(1,m=X.width),"isFullWidthTooltip"in X&&t(4,h=X.isFullWidthTooltip),"tooltipContent"in X&&t(16,w=X.tooltipContent),"tooltipActive"in X&&t(5,g=X.tooltipActive),"tooltipPlacement"in X&&t(6,k=X.tooltipPlacement),"disabledTooltipContent"in X&&t(17,y=X.disabledTooltipContent),"isAriaHidden"in X&&t(7,I=X.isAriaHidden),"onTooltipVisibilityChange"in X&&t(8,v=X.onTooltipVisibilityChange),"initialTranslateXPx"in X&&t(9,b=X.initialTranslateXPx),"initialTranslateYPx"in X&&t(10,E=X.initialTranslateYPx),"$$scope"in X&&t(24,l=X.$$scope)},i.$$.update=()=>{if(i.$$.dirty&491520)e:s?t(11,le=n?G("tooltip_disabled_when_graph_on"):y):t(11,le=w)},[c,m,a,u,h,g,k,I,v,b,E,le,o,L,R,s,w,y,n,r,ae,Y,V,ee,l]}var xa=class extends W{constructor(e){super(),Q(this,e,Mb,Ab,j,{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},Tb)}},Kt=xa;function Vb(i){let e,t,n,o,r,l;return{c(){e=q("svg"),t=q("rect"),o=q("path"),f(t,"width","20"),f(t,"height","20"),f(t,"rx","10"),f(t,"fill","white"),f(t,"fill-opacity",n=i[0]?1:.24),f(o,"d","M12.5259 8.68864L12.587 8.87536L12.3702 8.23648C12.236 7.84095 11.8295 7.60563 11.4192 7.68593C10.9471 7.77831 10.6508 8.24892 10.7718 8.71381L10.8968 9.19361L10.6671 8.33855C10.5566 7.92714 10.1475 7.67011 9.72832 7.74872C9.32282 7.82476 9.04808 8.18606 9.06319 8.57993L8.34064 5.64592C8.21338 5.12912 7.64646 4.85578 7.1621 5.07767C6.79216 5.24715 6.59467 5.65495 6.69131 6.0498L7.98547 11.3373L6.87 10.178C6.52545 9.81987 5.94024 9.86103 5.64933 10.2638C5.44455 10.5474 5.44907 10.9312 5.66048 11.2098L7.89246 14.1518C7.89246 14.1518 9.12075 15.9833 12.1932 15.3769C14.6243 14.8972 15.4434 12.7097 14.7748 10.4997L14.2213 8.20869C14.0975 7.69621 13.5537 7.40646 13.0585 7.58916C12.614 7.75319 12.3788 8.23875 12.5259 8.68864Z"),f(o,"fill",r=i[0]?"var(--interactive-episode-complete)":"white"),f(e,"width","20"),f(e,"height","20"),f(e,"viewBox","0 0 20 20"),f(e,"fill","none"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"aria-hidden","true"),f(e,"data-testid",l=(i[0],"interactive-episode-completed-icon"))},m(a,s){S(a,e,s),p(e,t),p(e,o)},p(a,[s]){s&1&&n!==(n=a[0]?1:.24)&&f(t,"fill-opacity",n),s&1&&r!==(r=a[0]?"var(--interactive-episode-complete)":"white")&&f(o,"fill",r),s&1&&l!==(l=(a[0],"interactive-episode-completed-icon"))&&f(e,"data-testid",l)},i:he,o:he,d(a){a&&C(e)}}}function Lb(i,e,t){let{completed:n}=e;return i.$$set=o=>{"completed"in o&&t(0,n=o.completed)},[n]}var $a=class extends W{constructor(e){super(),Q(this,e,Lb,Vb,j,{completed:0})}},zr=$a;function Rb(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 Bb(i){let e,t,n,o,r;return t=new zr({props:{completed:!!i[0].completed}}),{c(){e=T("div"),N(t.$$.fragment),f(e,"class","interactive-episode-icon svelte-bklhpe"),f(e,"style",n=`left: ${i[0].from+i[0].width/2}%`),Jn(()=>i[3].call(e)),H(e,"disabled",i[1])},m(l,a){S(l,e,a),B(t,e,null),o=ll(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}%`))&&f(e,"style",n),(!r||a&2)&&H(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),D(t),o()}}}function Db(i){let e,t;return e=new Kt({props:{tooltipContent:G(i[0].completed?"tooltip_episode_finished":"tooltip_episode_unfinished"),initialTranslateXPx:-10,initialTranslateYPx:-10,disabled:i[1],width:i[2]||0,isAriaHidden:!0,isFullWidthTooltip:!1,$$slots:{default:[Bb]},$$scope:{ctx:i}}}),{c(){N(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.tooltipContent=G(n[0].completed?"tooltip_episode_finished":"tooltip_episode_unfinished")),o&2&&(r.disabled=n[1]),o&4&&(r.width=n[2]||0),o&23&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Nb(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 eu=class extends W{constructor(e){super(),Q(this,e,Nb,Db,j,{videoEpisode:0,disabled:1},Rb)}},Yd=eu;function qb(i){Se(i,"svelte-1rzxunm",".video-episodes-wrap.svelte-1rzxunm{position:absolute;width:100%;height:100%}.video-episode.svelte-1rzxunm{position:absolute;height:calc(3 * var(--slider-height));box-sizing:border-box;margin-top:-5px;padding:var(--slider-height) var(--slider-video-episode-gap);transition:transform 0.2s}.video-episode.svelte-1rzxunm:not(.disabled):where(:hover, :active){transform:scaleY(1.5)}.video-episode-inner.svelte-1rzxunm,.video-episode-loaded.svelte-1rzxunm,.video-episode-filled.svelte-1rzxunm{position:absolute;height:var(--slider-height);border-radius:var(--slider-radius)}.video-episode-inner.svelte-1rzxunm{position:absolute;overflow:hidden;width:calc(100% - 2 * var(--slider-video-episode-gap));background:var(--slider-bg)}.video-episode-loaded.svelte-1rzxunm{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s}.video-episode-filled.svelte-1rzxunm{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg)}")}function Zd(i,e,t){let n=i.slice();return n[3]=e[t],n}function Xd(i){let e,t,n,o,r,l,a,s,u;return{c(){e=T("div"),t=T("div"),n=T("div"),r=O(),l=T("div"),s=O(),f(n,"class","video-episode-loaded svelte-1rzxunm"),f(n,"style",o=`transform: translateX(${i[3].loadedWidth/i[3].width*100}%)`),f(l,"class","video-episode-filled svelte-1rzxunm"),f(l,"style",a=`transform: translateX(${i[3].filledWidth/i[3].width*100}%)`),H(l,"mobile",i[1]),f(t,"class","video-episode-inner svelte-1rzxunm"),f(e,"class","video-episode svelte-1rzxunm"),f(e,"style",u=`left: ${i[3].from}%; width: ${i[3].width}%`),H(e,"disabled",i[2]),H(e,"mobile",i[1])},m(c,m){S(c,e,m),p(e,t),p(t,n),p(t,r),p(t,l),p(e,s)},p(c,m){m&1&&o!==(o=`transform: translateX(${c[3].loadedWidth/c[3].width*100}%)`)&&f(n,"style",o),m&1&&a!==(a=`transform: translateX(${c[3].filledWidth/c[3].width*100}%)`)&&f(l,"style",a),m&2&&H(l,"mobile",c[1]),m&1&&u!==(u=`left: ${c[3].from}%; width: ${c[3].width}%`)&&f(e,"style",u),m&4&&H(e,"disabled",c[2]),m&2&&H(e,"mobile",c[1])},d(c){c&&C(e)}}}function Ob(i){let e,t=Tt(i[0]),n=[];for(let o=0;o<t.length;o+=1)n[o]=Xd(Zd(i,t,o));return{c(){e=T("div");for(let o=0;o<n.length;o+=1)n[o].c();f(e,"class","video-episodes-wrap svelte-1rzxunm")},m(o,r){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=Tt(o[0]);let l;for(l=0;l<t.length;l+=1){let a=Zd(o,t,l);n[l]?n[l].p(a,r):(n[l]=Xd(a),n[l].c(),n[l].m(e,null))}for(;l<n.length;l+=1)n[l].d(1);n.length=t.length}},i:he,o:he,d(o){o&&C(e),Ri(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 tu=class extends W{constructor(e){super(),Q(this,e,Fb,Ob,j,{videoEpisodes:0,isMobile:1,disabled:2},qb)}},Jd=tu;function Hb(i){Se(i,"svelte-v8ydei",".interactive-icons.svelte-v8ydei.svelte-v8ydei{position:absolute;width:calc(100% - 20px);top:-28px}.interactive-icons.mobile.svelte-v8ydei.svelte-v8ydei{top:-10px}.slider.svelte-v8ydei.svelte-v8ydei{position:relative;height:var(--slider-height);border-radius:var(--slider-radius);cursor:pointer;transition:visibility 0.2s, opacity 0.2s;will-change:opacity, transform;width:100%;touch-action:none;-webkit-tap-highlight-color:transparent}.no-handle.svelte-v8ydei.svelte-v8ydei{cursor:default}.slider.svelte-v8ydei.svelte-v8ydei:before{content:'';position:absolute;left:0;right:0;top:calc(-1 * (var(--controls-height) / 2 - var(--slider-height)) / 2);height:calc(var(--controls-height) / 2)}.bars.svelte-v8ydei.svelte-v8ydei{position:absolute;width:100%;height:100%;border-radius:var(--slider-radius);overflow:hidden;background:var(--slider-bg)}.loaded.svelte-v8ydei.svelte-v8ydei{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s}.filled.svelte-v8ydei.svelte-v8ydei{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg)}.slider.square.svelte-v8ydei.svelte-v8ydei,.slider.square.svelte-v8ydei>.bars.svelte-v8ydei,.slider.square.svelte-v8ydei .loaded.svelte-v8ydei,.slider.square.svelte-v8ydei .filled.svelte-v8ydei{border-radius:unset}.filled.active-live.svelte-v8ydei.svelte-v8ydei{background-color:var(--slider-filled-active-live-bg)}.filled.ads.svelte-v8ydei.svelte-v8ydei{background-color:var(--slider-filled-ads)}.handleWrap.svelte-v8ydei.svelte-v8ydei{position:absolute;left:-100%;width:100%}.handle.svelte-v8ydei.svelte-v8ydei{position:absolute;width:var(--slider-handle-size);height:var(--slider-handle-size);right:calc(-1 * var(--slider-handle-size) / 2);top:calc((var(--slider-height) - var(--slider-handle-size)) / 2);border-radius:50%;background-color:var(--slider-filled-bg);visibility:hidden;opacity:0;transform:scale(0);transition:opacity 0.2s, transform 0.2s, visibility 0.2s;will-change:opacity, transform}.handle.active-live.svelte-v8ydei.svelte-v8ydei{background-color:var(--slider-filled-active-live-bg)}.slider.svelte-v8ydei:hover .handle.svelte-v8ydei,.slider-dragging.svelte-v8ydei .handle.svelte-v8ydei{visibility:visible;opacity:1;transform:scale(1)}.slider-dragging.svelte-v8ydei .handle.svelte-v8ydei{transform:scale(1.3)}.slider-vertical.svelte-v8ydei.svelte-v8ydei{position:absolute;left:-8px;top:-18px;transform-origin:0 0;transform:rotate(-90deg)}.slider.disabled.svelte-v8ydei.svelte-v8ydei{cursor:default;opacity:0.4}")}function xd(i,e,t){let n=i.slice();return n[49]=e[t],n}function $d(i){let e,t,n=Tt(i[21]),o=[];for(let l=0;l<n.length;l+=1)o[l]=tm(xd(i,n,l));let r=l=>_(o[l],1,1,()=>{o[l]=null});return{c(){e=T("div");for(let l=0;l<o.length;l+=1)o[l].c();f(e,"class","interactive-icons svelte-v8ydei"),H(e,"mobile",i[6]),H(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=Tt(l[21]);let s;for(s=0;s<n.length;s+=1){let u=xd(l,n,s);o[s]?(o[s].p(u,a),d(o[s],1)):(o[s]=tm(u),o[s].c(),d(o[s],1),o[s].m(e,null))}for(ue(),s=n.length;s<o.length;s+=1)r(s);fe()}(!t||a[0]&64)&&H(e,"mobile",l[6]),(!t||a[0]&1048640)&&H(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),Ri(o,l)}}}function em(i){let e,t;return e=new Yd({props:{videoEpisode:i[49],disabled:i[10]}}),{c(){N(e.$$.fragment)},m(n,o){B(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){D(e,n)}}}function tm(i){let e,t,n=i[49].interactive&&em(i);return{c(){n&&n.c(),e=dt()},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=em(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ue(),_(n,1,1,()=>{n=null}),fe())},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&C(e),n&&n.d(o)}}}function zb(i){let e,t,n,o,r,l;return{c(){e=T("div"),t=T("div"),o=O(),r=T("div"),f(t,"class","loaded svelte-v8ydei"),f(t,"style",n=`transform: translateX(${i[12]*100}%);`),f(r,"class","filled svelte-v8ydei"),f(r,"style",l=`transform: translateX(${i[13]*100}%);`),H(r,"active-live",i[5]),H(r,"ads",i[7]),f(e,"class","bars svelte-v8ydei")},m(a,s){S(a,e,s),p(e,t),p(e,o),p(e,r)},p(a,s){s[0]&4096&&n!==(n=`transform: translateX(${a[12]*100}%);`)&&f(t,"style",n),s[0]&8192&&l!==(l=`transform: translateX(${a[13]*100}%);`)&&f(r,"style",l),s[0]&32&&H(r,"active-live",a[5]),s[0]&128&&H(r,"ads",a[7])},i:he,o:he,d(a){a&&C(e)}}}function Ub(i){let e,t;return e=new Jd({props:{videoEpisodes:i[21],disabled:i[10],isMobile:i[6]}}),{c(){N(e.$$.fragment)},m(n,o){B(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){D(e,n)}}}function Kb(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,g=i[9]&&$d(i),k=[Ub,zb],y=[];function I(v,b){return v[21].length?0:1}return n=I(i,[-1,-1]),o=y[n]=k[n](i),{c(){var v;g&&g.c(),e=O(),t=T("div"),o.c(),r=O(),l=T("div"),a=T("div"),f(a,"class","handle svelte-v8ydei"),H(a,"active-live",i[5]),f(l,"class","handleWrap svelte-v8ydei"),f(l,"style",s=`transform: translateX(${i[14]*100}%);`),H(l,"hidden",i[11]),f(t,"class",u="slider "+i[1]+" svelte-v8ydei"),f(t,"aria-label",i[15]),f(t,"aria-valuemin",i[16]),f(t,"aria-valuemax",i[17]),f(t,"aria-valuenow",i[18]),f(t,"aria-valuetext",i[19]),f(t,"role","slider"),f(t,"tabindex","0"),f(t,"data-testid",c=(v=i[2])!=null?v:null),H(t,"disabled",i[10]),H(t,"slider-dragging",i[20]),H(t,"hidden",i[3]),H(t,"slider-vertical",i[4]),H(t,"no-handle",i[11]),H(t,"square",i[8])},m(v,b){g&&g.m(v,b),S(v,e,b),S(v,t,b),y[n].m(t,null),p(t,r),p(t,l),p(l,a),i[43](t),m=!0,h||(w=[me(t,"pointerdown",qt(i[22])),me(t,"pointermove",qt(i[23])),me(t,"pointerup",qt(i[24])),me(t,"pointerenter",qt(i[25])),me(t,"pointerleave",qt(i[26])),me(t,"click",ft(Un.noop)),me(t,"wheel",i[27])],h=!0)},p(v,b){var A;v[9]?g?(g.p(v,b),b[0]&512&&d(g,1)):(g=$d(v),g.c(),d(g,1),g.m(e.parentNode,e)):g&&(ue(),_(g,1,1,()=>{g=null}),fe());let E=n;n=I(v,b),n===E?y[n].p(v,b):(ue(),_(y[E],1,1,()=>{y[E]=null}),fe(),o=y[n],o?o.p(v,b):(o=y[n]=k[n](v),o.c()),d(o,1),o.m(t,r)),(!m||b[0]&32)&&H(a,"active-live",v[5]),(!m||b[0]&16384&&s!==(s=`transform: translateX(${v[14]*100}%);`))&&f(l,"style",s),(!m||b[0]&2048)&&H(l,"hidden",v[11]),(!m||b[0]&2&&u!==(u="slider "+v[1]+" svelte-v8ydei"))&&f(t,"class",u),(!m||b[0]&32768)&&f(t,"aria-label",v[15]),(!m||b[0]&65536)&&f(t,"aria-valuemin",v[16]),(!m||b[0]&131072)&&f(t,"aria-valuemax",v[17]),(!m||b[0]&262144)&&f(t,"aria-valuenow",v[18]),(!m||b[0]&524288)&&f(t,"aria-valuetext",v[19]),(!m||b[0]&4&&c!==(c=(A=v[2])!=null?A:null))&&f(t,"data-testid",c),(!m||b[0]&1026)&&H(t,"disabled",v[10]),(!m||b[0]&1048578)&&H(t,"slider-dragging",v[20]),(!m||b[0]&10)&&H(t,"hidden",v[3]),(!m||b[0]&18)&&H(t,"slider-vertical",v[4]),(!m||b[0]&2050)&&H(t,"no-handle",v[11]),(!m||b[0]&258)&&H(t,"square",v[8])},i(v){m||(d(g),d(o),m=!0)},o(v){_(g),_(o),m=!1},d(v){v&&(C(e),C(t)),g&&g.d(v),y[n].d(),i[43](null),h=!1,nt(w)}}}function jb(i,e,t){let n,o,{ref:r=void 0}=e,{className:l=""}=e,{testId:a=void 0}=e,{isHidden:s=!1}=e,{isVertical:u=!1}=e,{isActiveLive:c=!1}=e,{isMobile:m=!1}=e,{isAds:h=!1}=e,{squareBorders:w=!1}=e,{videoEpisodes:g=[]}=e,{withWheelHandler:k=!1}=e,{isInteractive:y=!1}=e,{disabled:I=!1}=e,{hideHandel:v=!1}=e,b,{onPointerDown:E=Un.noop}=e,{onHandleMove:A=Un.noop}=e,{onPointerUp:L=Un.noop}=e,{onPointerEnter:R=Un.noop}=e,{onPointerMove:le=Un.noop}=e,{onPointerLeave:ae=Un.noop}=e,{onWheelUp:Y=Un.noop}=e,{onWheelDown:V=Un.noop}=e,{onWheelLeft:ee=Un.noop}=e,{onWheelRight:X=Un.noop}=e,{onDisabledPointerUp:se=Un.noop}=e,{loadedProgress:F=0}=e,{filledProgress:ne=0}=e,{handleProgress:P=0}=e,{ariaLabel:U=""}=e,{ariaValueMin:we=void 0}=e,{ariaValueMax:qe=void 0}=e,{ariaValueNow:Ze=void 0}=e,{ariaValueText:Xe=""}=e,He=Zt(),ye=!1,J;function ke(de){if(r&&(b=r.getBoundingClientRect()),I||ye||!r)return;t(20,ye=!0);let Ne=at(de.clientX,de.clientY);E(Ne),r.setPointerCapture(de.pointerId)}function it(de){if(I)return;let Ne=at(de.clientX,de.clientY),Te=Ge(de.clientX);le(Ne,Te,b.width),ye&&A(Ne)}function Oe(de){if(I){se(at(de.clientX,de.clientY));return}else if(!ye)return;t(20,ye=!1);let Ne=at(de.clientX,de.clientY);L(Ne)}function rt(de){if(r&&(b=r.getBoundingClientRect()),I)return;let Ne=at(de.clientX,de.clientY),Te=Ge(de.clientX);R(Ne,Te,b.width)}function Ce(){I||ae()}function Je(de){I||k&&(de.preventDefault(),de.deltaY<0?Y():de.deltaY>0?V():de.deltaX>0?X():ee())}function at(de,Ne){return u?Math.max(0,Math.min(1,(b.height-(Ne-b.top))/b.height)):Math.min(Math.max(de-b.x,0),b.width)/b.width}function Ge(de){return Math.min(Math.max(de-b.x,0),b.width)}function Ke(de,Ne){let Te=He.features.episodesClustering&&!y?He.episodeMinWidthPc:0,ze=[],K=0,ve=0,et=0;for(let ce=1;ce<g.length;ce++)ve=g[ce].time/J*100,ve-K>Te&&(ze.push({from:K,width:Math.max(0,ve-K),loadedWidth:Math.max(0,Math.min(ve,de)-K),filledWidth:Math.max(0,Math.min(ve,Ne)-K),interactive:g[ce-1].interactive,completed:g[ce-1].completed}),K=g[ce].time/J*100,et++);let _t={from:K,width:Math.max(0,100-K),loadedWidth:Math.max(0,Math.min(de,100)-K),filledWidth:Math.max(0,Math.min(Ne,100)-K),interactive:g[et].interactive,completed:g[et].completed};100-K<Te?(et-=1,ze[et].width+=100-K,ze[et].loadedWidth+=Math.max(0,Math.min(de,100)-K),ze[et].filledWidth+=Math.max(0,Math.min(Ne,100)-K)):ze[et]=_t;let vt=g[0].time;if(vt!==0){let ce=vt/J*100;ze.unshift({from:0,width:ce,loadedWidth:Math.min(ce,de),filledWidth:Math.min(ce,Ne)})}return ze}function $e(de){pe[de?"unshift":"push"](()=>{r=de,t(0,r)})}return i.$$set=de=>{"ref"in de&&t(0,r=de.ref),"className"in de&&t(1,l=de.className),"testId"in de&&t(2,a=de.testId),"isHidden"in de&&t(3,s=de.isHidden),"isVertical"in de&&t(4,u=de.isVertical),"isActiveLive"in de&&t(5,c=de.isActiveLive),"isMobile"in de&&t(6,m=de.isMobile),"isAds"in de&&t(7,h=de.isAds),"squareBorders"in de&&t(8,w=de.squareBorders),"videoEpisodes"in de&&t(28,g=de.videoEpisodes),"withWheelHandler"in de&&t(29,k=de.withWheelHandler),"isInteractive"in de&&t(9,y=de.isInteractive),"disabled"in de&&t(10,I=de.disabled),"hideHandel"in de&&t(11,v=de.hideHandel),"onPointerDown"in de&&t(30,E=de.onPointerDown),"onHandleMove"in de&&t(31,A=de.onHandleMove),"onPointerUp"in de&&t(32,L=de.onPointerUp),"onPointerEnter"in de&&t(33,R=de.onPointerEnter),"onPointerMove"in de&&t(34,le=de.onPointerMove),"onPointerLeave"in de&&t(35,ae=de.onPointerLeave),"onWheelUp"in de&&t(36,Y=de.onWheelUp),"onWheelDown"in de&&t(37,V=de.onWheelDown),"onWheelLeft"in de&&t(38,ee=de.onWheelLeft),"onWheelRight"in de&&t(39,X=de.onWheelRight),"onDisabledPointerUp"in de&&t(40,se=de.onDisabledPointerUp),"loadedProgress"in de&&t(12,F=de.loadedProgress),"filledProgress"in de&&t(13,ne=de.filledProgress),"handleProgress"in de&&t(14,P=de.handleProgress),"ariaLabel"in de&&t(15,U=de.ariaLabel),"ariaValueMin"in de&&t(16,we=de.ariaValueMin),"ariaValueMax"in de&&t(17,qe=de.ariaValueMax),"ariaValueNow"in de&&t(18,Ze=de.ariaValueNow),"ariaValueText"in de&&t(19,Xe=de.ariaValueText)},i.$$.update=()=>{var de;if(i.$$.dirty[0]&131072)e:t(41,J=qe!=null?qe:0);if(i.$$.dirty[0]&268435456|i.$$.dirty[1]&1024)e:t(42,n=((de=g[g.length-1])==null?void 0:de.time)<J);if(i.$$.dirty[0]&268447744|i.$$.dirty[1]&3072)e:t(21,o=g.length&&n&&J?Ke(F*100,ne*100):[])},[r,l,a,s,u,c,m,h,w,y,I,v,F,ne,P,U,we,qe,Ze,Xe,ye,o,ke,it,Oe,rt,Ce,Je,g,k,E,A,L,R,le,ae,Y,V,ee,X,se,J,n,$e]}var iu=class extends W{constructor(e){super(),Q(this,e,jb,Kb,j,{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},Hb,[-1,-1])}},Sl=iu;var Kn=(i,e)=>Uo[i]>=Uo[e],im=(i,e)=>Uo[i]<Uo[e],Ur=(i,e)=>Uo[i]<=Uo[e],nm=i=>i>699?"xl":i>599?"l":i>509?"m":i>320?"s":"xs";function Wb(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 $o({props:{volume:i[3],muted:i[1]}}),{c(){N(e.$$.fragment)},m(n,o){B(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){D(e,n)}}}function Qb(i){let e,t;return e=new wt({props:{className:"btn-full-opacity",disabled:i[9],testId:i[2]?"btn-volume-vertical":"btn-volume-horizontal",ariaLabel:i[7],click:i[0],ariaKeyShortCut:to.KeyM,$$slots:{default:[Gb]},$$scope:{ctx:i}}}),{c(){N(e.$$.fragment)},m(n,o){B(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){D(e,n)}}}function om(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]:mo.noop,onPointerLeave:i[2]?i[20]:mo.noop,ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u0438",ariaValueMin:0,ariaValueMax:100,ariaValueNow:Math.round(i[8]*100),ariaValueText:`${Math.round(i[8]*100)}%`,filledProgress:i[8],handleProgress:i[8],testId:i[2]?"volume-slider-vertical":"volume-slider"}}),{c(){e=T("div"),N(t.$$.fragment),f(e,"class","volumeBar svelte-1l78lz9"),H(e,"volumeBar-vertical",i[2])},m(o,r){S(o,e,r),B(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]:mo.noop),r[0]&4&&(l.onPointerLeave=o[2]?o[20]:mo.noop),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)&&H(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),D(t)}}}function Yb(i){let e,t,n,o,r,l;t=new Hr({props:{content:i[6],translateY:-18,$$slots:{default:[Qb]},$$scope:{ctx:i}}});let a=i[4]&&om(i);return{c(){e=T("div"),N(t.$$.fragment),n=O(),a&&a.c(),f(e,"class","volumeBar-container svelte-1l78lz9"),H(e,"vertical",i[2])},m(s,u){S(s,e,u),B(t,e,null),p(e,n),a&&a.m(e,null),o=!0,r||(l=[me(e,"mouseenter",function(){Li(i[2]?i[21]:mo.noop)&&(i[2]?i[21]:mo.noop).apply(this,arguments)}),me(e,"mouseleave",function(){Li(i[2]?i[22]:mo.noop)&&(i[2]?i[22]:mo.noop).apply(this,arguments)}),me(e,"wheel",qt(i[23]))],r=!0)},p(s,u){i=s;let c={};u[0]&64&&(c.content=i[6]),u[0]&655|u[1]&32&&(c.$$scope={dirty:u,ctx:i}),t.$set(c),i[4]?a?(a.p(i,u),u[0]&16&&d(a,1)):(a=om(i),a.c(),d(a,1),a.m(e,null)):a&&(ue(),_(a,1,1,()=>{a=null}),fe()),(!o||u[0]&4)&&H(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),D(t),a&&a.d(),r=!1,nt(l)}}}function Zb(i,e,t){var He,ye;let n,o,r,l,{click:a}=e,s=st(),u=Zt(),c=s.state.volume$;z(i,c,J=>t(3,n=J));let m=s.state.muted$;z(i,m,J=>t(25,l=J));let h=s.actions.internal.setVolume,w=s.ui.currentGridType$;z(i,w,J=>t(24,r=J));let g=(He=s.callbacks)==null?void 0:He.onAudioDoesNotExistHint,k=(ye=s.callbacks)==null?void 0:ye.onAudioDisabledHint,y=s.state.isAudioAvailable$;z(i,y,J=>t(4,o=J));let I=s.state.isAudioDisabled,v=!1,b,E,A,L,R,le,ae=1,Y=!1,V=!1;function ee(J){ae=n,h(J)}function X(){Mr(s,n,u.controls.volumeStepWheel)}function se(){Vr(s,n,u.controls.volumeStepWheel)}function F(J){h(J)}function ne(J){let ke=J;h(ke,ke===0?ae:ke)}function P(){Y=!0}function U(){Y=!1,Ze()}function we(){clearTimeout(b),t(5,v=!0)}function qe(){Ze()}function Ze(){b=window.setTimeout(()=>{Y||t(5,v=!1)},u.controls.volumeBarTimeout)}function Xe(J){J.deltaY<0?X():J.deltaY>0&&se()}return i.$$set=J=>{"click"in J&&t(0,a=J.click)},i.$$.update=()=>{if(i.$$.dirty[0]&33554448)e:t(1,L=!o||l);if(i.$$.dirty[0]&16777216)e:t(2,R=Ur(r,"s"));if(i.$$.dirty[0]&6)e:R?t(6,E=""):t(6,E=L?G("tooltip_volume"):G("tooltip_volume_muted")),t(7,A=L?G("tooltip_volume"):G("tooltip_volume_muted"));if(i.$$.dirty[0]&10)e:t(8,le=L?0:n);if(i.$$.dirty[0]&16)e:o?t(9,V=I&&!k):t(9,V=!g)},[a,L,R,n,o,v,E,A,le,V,c,m,w,y,ee,X,se,F,ne,P,U,we,qe,Xe,r,l]}var nu=class extends W{constructor(e){super(),Q(this,e,Zb,Yb,j,{click:0},Wb,[-1,-1])}},lm=nu;var am=require("@vkontakte/videoplayer-shared");function Xb(i){let e,t,n,o,r,l=i[2].default,a=Ie(l,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{role:"img"},i[0]],u={};for(let c=0;c<s.length;c+=1)u=re(u,s[c]);return{c(){e=q("svg"),a&&a.c(),t=q("g"),n=q("path"),o=q("path"),f(n,"d","M4.58 13.979a.99.99 0 0 1 .99-.99h4.451a.99.99 0 0 1 .99.99v4.452a.99.99 0 0 1-1.98 0v-2.05l-3.319 3.322a1 1 0 0 1-1.414 0v-.001a1 1 0 0 1 0-1.414l3.32-3.32H5.57a.99.99 0 0 1-.99-.99m10.388-6.36 3.32-3.322a1 1 0 0 1 1.414 0v.001a1 1 0 0 1 0 1.414l-3.32 3.32h2.049a.99.99 0 0 1 0 1.979h-4.442a1 1 0 0 1-1-1V5.569a.99.99 0 1 1 1.98 0z"),f(n,"class","_exit"),f(o,"d","M10.5 19a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-4.5a1 1 0 0 1 2 0v2.072l3.363-3.365a1 1 0 0 1 1.414 0l.016.016a1 1 0 0 1 0 1.414L7.429 18H9.5a1 1 0 0 1 1 1M18 7.429l-3.363 3.364a1 1 0 0 1-1.414 0l-.016-.016a1 1 0 0 1 0-1.414L16.571 6H14.5a1 1 0 0 1 0-2H19a1 1 0 0 1 1 1v4.5a1 1 0 0 1-2 0z"),f(o,"class","_enter"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),be(e,u)},m(c,m){S(c,e,m),a&&a.m(e,null),p(e,t),p(t,n),p(t,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Ae(a,l,c,c[1],r?Ee(l,c[1],m,null):Me(c[1]),null),be(e,u=Le(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){_(a,c),r=!1},d(c){c&&C(e),a&&a.d(c)}}}function Jb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var ou=class extends W{constructor(e){super(),Q(this,e,Jb,Xb,j,{})}},rm=ou;function xb(i){Se(i,"svelte-17t966y",'svg[data-testid="close-fullscreen-icon"] ._enter,svg[data-testid="open-fullscreen-icon"] ._exit{visibility:hidden;opacity:0}')}function $b(i){let e,t;return e=new rm({props:{"data-testid":i[0]?"close-fullscreen-icon":"open-fullscreen-icon"}}),{c(){N(e.$$.fragment)},m(n,o){B(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){D(e,n)}}}function ev(i,e,t){let{isFullscreen:n=!1}=e;return i.$$set=o=>{"isFullscreen"in o&&t(0,n=o.isFullscreen)},[n]}var lu=class extends W{constructor(e){super(),Q(this,e,ev,$b,j,{isFullscreen:0},xb)}},sm=lu;function tv(i){let e,t;return e=new sm({props:{isFullscreen:i[0]}}),{c(){N(e.$$.fragment)},m(n,o){B(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){D(e,n)}}}function iv(i){let e,t;return e=new wt({props:{testId:"btn-fullscreen",ariaLabel:i[2],click:i[1],ariaKeyShortCut:to.KeyF,$$slots:{default:[tv]},$$scope:{ctx:i}}}),{c(){N(e.$$.fragment)},m(n,o){B(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){D(e,n)}}}function nv(i,e,t){let{isFullscreen:n=!1}=e,{click:o=am.noop}=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?G("tooltip_fullscreen_on"):G("tooltip_fullscreen_off"))},[n,o,r]}var ru=class extends W{constructor(e){super(),Q(this,e,nv,iv,j,{isFullscreen:0,click:1})}},Kr=ru;function ov(i){let e,t,n,o=i[2].default,r=Ie(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=re(a,l[s]);return{c(){e=q("svg"),r&&r.c(),t=q("path"),f(t,"fill","#fff"),f(t,"d","M17.671 10.923c.82.483.82 1.67 0 2.154l-8.787 5.175A1.25 1.25 0 0 1 7 17.174V6.826a1.25 1.25 0 0 1 1.884-1.078z"),be(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ae(r,o,s,s[1],n?Ee(o,s[1],u,null):Me(s[1]),null),be(e,a=Le(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 lv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var su=class extends W{constructor(e){super(),Q(this,e,lv,ov,j,{})}},Tl=su;function rv(i){let e,t,n,o=i[2].default,r=Ie(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=re(a,l[s]);return{c(){e=q("svg"),r&&r.c(),t=q("path"),f(t,"fill","#fff"),f(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"),be(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ae(r,o,s,s[1],n?Ee(o,s[1],u,null):Me(s[1]),null),be(e,a=Le(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 sv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var au=class extends W{constructor(e){super(),Q(this,e,sv,rv,j,{})}},jr=au;var fm=require("@vkontakte/videoplayer-shared");function av(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 um(i){let e;return{c(){e=T("div"),f(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){S(t,e,n)},d(t){t&&C(e)}}}function uv(i){let e,t,n,o,r=i[1]&&um(i);var l=i[8];function a(s){return{}}return l&&(n=Bn(l,a(i))),{c(){r&&r.c(),e=O(),t=T("div"),n&&N(n.$$.fragment),f(t,"class","svelte-1ot3duq"),H(t,"mobile",i[1])},m(s,u){r&&r.m(s,u),S(s,e,u),S(s,t,u),n&&B(n,t,null),o=!0},p(s,u){if(s[1]?r||(r=um(s),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),u&256&&l!==(l=s[8])){if(n){ue();let c=n;_(c.$$.fragment,1,0,()=>{D(c,1)}),fe()}l?(n=Bn(l,a(s)),N(n.$$.fragment),d(n.$$.fragment,1),B(n,t,null)):n=null}(!o||u&2)&&H(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&&D(n)}}}function fv(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:to.KeyK,$$slots:{default:[uv]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new wt({props:r}),pe.push(()=>De(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){B(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],Be(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){D(e,l)}}}function cv(i,e,t){let n,o,{fakeIsPlaying$:r}=Qn();z(i,r,v=>t(12,o=v));let{ref:l=void 0}=e,{isMobile:a=!1}=e,{isPlaying:s=!1}=e,{disabled:u=!1}=e,{className:c=""}=e,{click:m=fm.noop}=e,{toggle:h}=r,w,g,k,y;function I(v){l=v,t(0,l)}i.$$set=v=>{"ref"in v&&t(0,l=v.ref),"isMobile"in v&&t(1,a=v.isMobile),"isPlaying"in v&&t(10,s=v.isPlaying),"disabled"in v&&t(2,u=v.disabled),"className"in v&&t(3,c=v.className),"click"in v&&t(4,m=v.click)},i.$$.update=()=>{if(i.$$.dirty&4096)e:t(5,g=o!==null);if(i.$$.dirty&5152)e:t(11,k=g?o:s);if(i.$$.dirty&2048)e:t(7,y=k?G("tooltip_pause"):G("tooltip_play"));if(i.$$.dirty&2048)e:t(8,n=k?jr:Tl)};e:t(6,w=h);return[l,a,u,c,m,g,w,y,n,r,s,k,o,I]}var uu=class extends W{constructor(e){super(),Q(this,e,cv,fv,j,{ref:0,isMobile:1,isPlaying:10,disabled:2,className:3,click:4},av)}},Ql=uu;function dv(i){let e,t,n,o=i[2].default,r=Ie(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=re(a,l[s]);return{c(){e=q("svg"),r&&r.c(),t=q("path"),f(t,"fill","#fff"),f(t,"d","M16 10.835V7.5a1 1 0 1 1 2 0v9a1 1 0 0 1-2 0v-3.335l-8.149 4.67C7.03 18.304 6 17.715 6 16.772V7.227c0-.943 1.029-1.533 1.851-1.061L16 10.834z"),be(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ae(r,o,s,s[1],n?Ee(o,s[1],u,null):Me(s[1]),null),be(e,a=Le(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 mv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var fu=class extends W{constructor(e){super(),Q(this,e,mv,dv,j,{})}},cm=fu;function pv(i){let e,t;return e=new cm({props:{style:i[1],"data-testid":i[0]?"prev-icon":"next-icon"}}),{c(){N(e.$$.fragment)},m(n,o){B(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){D(e,n)}}}function _v(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 cu=class extends W{constructor(e){super(),Q(this,e,_v,pv,j,{isPrev:0,isMobile:2})}},dm=cu;function hv(i){let e,t;return e=new dm({props:{isMobile:i[1],isPrev:i[3]==="prev"}}),{c(){N(e.$$.fragment)},m(n,o){B(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){D(e,n)}}}function gv(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:[hv]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new wt({props:r}),pe.push(()=>De(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){B(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],Be(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){D(e,l)}}}function bv(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:r=!1}=e,{type:l}=e,{click:a}=e,s;function u(c){n=c,t(0,n)}return i.$$set=c=>{"ref"in c&&t(0,n=c.ref),"isMobile"in c&&t(1,o=c.isMobile),"disabled"in c&&t(2,r=c.disabled),"type"in c&&t(3,l=c.type),"click"in c&&t(4,a=c.click)},i.$$.update=()=>{if(i.$$.dirty&8)e:t(5,s=l==="prev"?G("tooltip_previous"):G("tooltip_next"))},[n,o,r,l,a,s,u]}var du=class extends W{constructor(e){super(),Q(this,e,bv,gv,j,{ref:0,isMobile:1,disabled:2,type:3,click:4})}},Pl=du;function vv(i){let e,t,n,o=i[2].default,r=Ie(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=re(a,l[s]);return{c(){e=q("svg"),r&&r.c(),t=q("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M4.265 4.265C3 5.531 3 7.567 3 11.64v.72c0 4.073 0 6.11 1.265 7.375C5.531 21 7.567 21 11.64 21h.72c4.073 0 6.11 0 7.375-1.265C21 18.469 21 16.433 21 12.36v-.72c0-4.073 0-6.11-1.265-7.375C18.469 3 16.433 3 12.36 3h-.72C7.567 3 5.53 3 4.265 4.265M6 8.5c.096 4.682 2.556 7.5 6.61 7.5h.235v-2.679c1.476.15 2.577 1.254 3.026 2.679H18c-.578-2.132-2.075-3.31-3.005-3.76.93-.558 2.246-1.908 2.556-3.74h-1.937c-.406 1.49-1.615 2.84-2.77 2.968V8.5h-1.968v5.197c-1.197-.3-2.759-1.757-2.823-5.197z"),f(t,"clip-rule","evenodd"),be(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ae(r,o,s,s[1],n?Ee(o,s[1],u,null):Me(s[1]),null),be(e,a=Le(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 yv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var mu=class extends W{constructor(e){super(),Q(this,e,yv,vv,j,{})}},mm=mu;function wv(i){let e,t,n,o,r,l,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]],c={};for(let m=0;m<u.length;m+=1)c=re(c,u[m]);return{c(){e=q("svg"),s&&s.c(),t=q("path"),n=q("path"),o=q("path"),r=q("path"),f(t,"fill","#fff"),f(t,"d","M32.55 17.042h2.494L38.707 7h-1.81l-2.936 8.276h-.286L30.84 7H29zM48.075 17.042l-4.619-5.199L47.718 7h-2.11l-3.563 4.088h-.413V7h-1.71v10.042h1.71V12.74h.427l3.764 4.302z"),f(n,"fill","#fff"),f(n,"d","M57.888 11.886c.883-.342 1.44-1.125 1.44-2.151C59.327 8.14 58.001 7 56.062 7h-3.92v10.042h4.205c1.953 0 3.279-1.14 3.279-2.806 0-1.168-.656-2.037-1.74-2.35m-4.034-3.39h2.21c.911 0 1.539.555 1.539 1.381 0 .812-.628 1.368-1.54 1.368h-2.21zm2.494 7.05h-2.494V12.74h2.494c.898 0 1.525.57 1.525 1.396 0 .84-.627 1.41-1.525 1.41M61.188 17.042h2.323l2.766-5.498h.228v5.498h1.568V9.635h-2.324l-2.765 5.498h-.228V9.635h-1.568zM69.146 19.25h1.64v-2.208h5.33v2.208h1.64v-3.703h-1.283V9.635h-5.431l-.37 3.79c-.13 1.338-.528 2.121-1.34 2.121h-.186zm2.494-3.703c.4-.385.57-1.04.685-2.151l.228-2.265h2.28v4.416zM86.025 13.253c0-2.136-1.597-3.76-3.849-3.76s-3.848 1.61-3.848 3.846 1.596 3.846 3.848 3.846c1.54 0 2.994-.727 3.55-2.137l-1.54-.256c-.356.527-1.04.897-1.91.897-1.254 0-2.081-.77-2.238-1.909h5.958c.015-.156.029-.327.029-.527m-3.849-2.336c1.027 0 1.796.655 2.067 1.581h-4.105c.27-.954 1.04-1.58 2.038-1.58M90.837 17.185c2.324 0 3.963-1.596 3.963-3.846s-1.64-3.846-3.963-3.846-3.962 1.595-3.962 3.846c0 2.25 1.639 3.846 3.962 3.846m0-1.496c-1.34 0-2.252-.954-2.252-2.35s.912-2.35 2.252-2.35 2.252.954 2.252 2.35-.912 2.35-2.252 2.35"),f(n,"class","_ru"),f(o,"fill","#fff"),f(o,"d","M35.02 17.36h-2.484L29 7.422h1.832l2.826 8.188h.284l2.925-8.188h1.803zM43.43 12.215l4.6 5.144h-2.243l-3.749-4.256h-.426v4.256h-1.704V7.423h1.704v4.045h.412l3.55-4.045h2.101zM56.808 17.36h-2.485l-3.536-9.937h1.832l2.826 8.188h.284l2.925-8.188h1.803zM63.257 17.36h-1.633v-7.33h1.633zm-.809-8.373q-.455 0-.738-.268a.97.97 0 0 1-.284-.718.97.97 0 0 1 .284-.72q.297-.28.738-.281.44 0 .724.282a.97.97 0 0 1 .284.719.97.97 0 0 1-.284.718q-.284.268-.724.268M68.382 17.5q-1.037 0-1.86-.48a3.5 3.5 0 0 1-1.293-1.352q-.454-.874-.454-1.973t.454-1.96a3.37 3.37 0 0 1 1.293-1.352 3.55 3.55 0 0 1 1.86-.494q.894 0 1.59.367.696.352 1.136.888V7.423h1.633v9.936h-1.22l-.342-1.184a4 4 0 0 1-1.164.944q-.71.381-1.633.381m.397-1.452q1.038 0 1.676-.648.654-.663.653-1.705 0-1.044-.653-1.692-.639-.662-1.675-.662-1.023 0-1.662.662-.639.649-.639 1.692t.64 1.705q.638.648 1.66.648M81.929 13.61q0 .211-.029.522h-5.935q.113.86.71 1.38.597.508 1.52.508.624 0 1.121-.24.51-.24.781-.648l1.534.254a3 3 0 0 1-1.378 1.564q-.965.55-2.158.55-1.108 0-1.988-.48a3.6 3.6 0 0 1-1.363-1.352q-.483-.874-.483-1.973t.483-1.96a3.5 3.5 0 0 1 1.363-1.352q.88-.495 1.988-.494 1.107 0 1.974.494.88.478 1.363 1.339.497.845.497 1.888M78.095 11.3q-.738 0-1.292.423-.54.422-.739 1.141h4.09a2.17 2.17 0 0 0-.767-1.127q-.54-.437-1.292-.437M86.751 17.5q-1.136 0-2.044-.48a3.66 3.66 0 0 1-1.406-1.352q-.497-.874-.497-1.973t.497-1.96q.511-.873 1.406-1.352.909-.495 2.044-.494 1.137 0 2.031.494a3.4 3.4 0 0 1 1.406 1.353q.51.86.511 1.959 0 1.098-.511 1.973a3.53 3.53 0 0 1-1.406 1.353q-.894.48-2.03.479m0-1.48q.995 0 1.62-.634.624-.648.624-1.691t-.625-1.678q-.624-.648-1.619-.648-.993 0-1.618.648-.625.634-.625 1.678 0 1.043.625 1.69.625.636 1.618.635"),f(o,"class","_en"),f(r,"fill","#fff"),f(r,"fill-rule","evenodd"),f(r,"d","M7 8.6c0-1.96 0-2.94.381-3.689a3.5 3.5 0 0 1 1.53-1.53C9.66 3 10.64 3 12.6 3h1.36c2.464 0 3.696 0 4.638.48a4.4 4.4 0 0 1 1.922 1.922c.48.942.48 2.174.48 4.638v3.92c0 2.464 0 3.696-.48 4.638a4.4 4.4 0 0 1-1.922 1.922c-.942.48-2.174.48-4.638.48H12.6c-1.96 0-2.94 0-3.689-.381a3.5 3.5 0 0 1-1.53-1.53C7 18.34 7 17.36 7 15.4zm9.265 1.744c.901.539 1.352.808 1.505 1.157.133.304.133.65 0 .954-.153.349-.604.618-1.505 1.157l-2.386 1.425c-.943.563-1.414.844-1.802.807a1.2 1.2 0 0 1-.847-.48C11 15.05 11 14.5 11 13.403v-2.85c0-1.098 0-1.647.23-1.96.201-.274.51-.45.847-.481.388-.037.86.244 1.802.807zM5 9.04c0-2.464 0-3.696.48-4.638a4.4 4.4 0 0 1 .955-1.253 3.7 3.7 0 0 0-1.033.33A4.4 4.4 0 0 0 3.48 5.403C3 6.344 3 7.576 3 10.04v3.92c0 2.464 0 3.696.48 4.638a4.4 4.4 0 0 0 1.922 1.922c.304.155.637.26 1.033.33a4.4 4.4 0 0 1-.955-1.252C5 18.656 5 17.424 5 14.96z"),f(r,"clip-rule","evenodd"),be(e,c)},m(m,h){S(m,e,h),s&&s.m(e,null),p(e,t),p(e,n),p(e,o),p(e,r),l=!0},p(m,[h]){s&&s.p&&(!l||h&2)&&Ae(s,a,m,m[1],l?Ee(a,m[1],h,null):Me(m[1]),null),be(e,c=Le(u,[{xmlns:"http://www.w3.org/2000/svg"},{width:"95"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},h&1&&m[0]]))},i(m){l||(d(s,m),l=!0)},o(m){_(s,m),l=!1},d(m){m&&C(e),s&&s.d(m)}}}function kv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var pu=class extends W{constructor(e){super(),Q(this,e,kv,wv,j,{})}},pm=pu;function Cv(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 Sv(i){let e,t;return e=new pm({props:{width:i[0],height:"24",viewBox:"0 0 "+(i[0]+1)+" 24","data-testid":i[1]}}),{c(){N(e.$$.fragment)},m(n,o){B(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){D(e,n)}}}var Tv="vk-video-logo-icon--short";function Pv(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?Tv:"vk-video-logo-icon"),!o&&!n&&(t(0,r=91),t(1,l="vk-video-logo-icon--en"))},[r,l,n,o]}var _u=class extends W{constructor(e){super(),Q(this,e,Pv,Sv,j,{short:2,isCyrillic:3},Cv)}},_m=_u;var hm=require("@vkontakte/videoplayer-shared");function Ev(i){let e,t;return e=new mm({}),{c(){N(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p:he,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Av(i){let e,t;return e=new _m({props:{short:i[4],isCyrillic:i[5]}}),{c(){N(e.$$.fragment)},m(n,o){B(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){D(e,n)}}}function Mv(i){let e,t,n,o,r=[Av,Ev],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=dt()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,u){let c=e;e=a(s,u),e===c?l[e].p(s,u):(ue(),_(l[c],1,1,()=>{l[c]=null}),fe(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&C(n),l[e].d(s)}}}function Vv(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:[Mv]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new wt({props:r}),pe.push(()=>De(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){B(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],Be(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){D(e,l)}}}function Lv(i,e,t){let n,o,r,l,{ref:a=void 0}=e,{logoClickable:s=!1}=e,{targetUrl:u=""}=e,{click:c}=e,m=Zt(),h=st(),w=h.ui.currentGridType$;z(i,w,A=>t(13,r=A));let g=h.ui.isMobile;z(i,g,A=>t(14,l=A));let k=h.interfaceLanguage$;z(i,k,A=>t(12,o=A));let y,I,v,b=()=>{var A,L;c(),(L=(A=h.callbacks)==null?void 0:A.onLogoClicked)==null||L.call(A),u&&window.open(u,"_blank")};function E(A){a=A,t(0,a)}i.$$set=A=>{"ref"in A&&t(0,a=A.ref),"logoClickable"in A&&t(1,s=A.logoClickable),"targetUrl"in A&&t(10,u=A.targetUrl),"click"in A&&t(11,c=A.click)},i.$$.update=()=>{if(i.$$.dirty&24580)e:t(4,v=(l||Ur(r,"l"))&&I);if(i.$$.dirty&4096)e:t(5,n=o===hm.InterfaceLanguage.RU)};e:t(3,y=m.logoType==="vk_video"?G("tooltip_vk_video_logo"):G("tooltip_vk_logo"));e:t(2,I=m.logoType==="vk_video"||m.logoType==="vk_video_mobile");return[a,s,I,y,v,n,w,g,k,b,u,c,o,r,l,E]}var hu=class extends W{constructor(e){super(),Q(this,e,Lv,Vv,j,{ref:0,logoClickable:1,targetUrl:10,click:11})}},Wr=hu;var bm=require("@vkontakte/videoplayer-core");var gu=require("@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 Bv(i){let e,t,n,o,r,l,a,s;return{c(){e=q("svg"),t=q("g"),n=q("path"),o=q("path"),r=q("path"),l=q("path"),a=q("path"),s=q("path"),f(n,"class","wave wave1 svelte-8z1bf5"),f(n,"d","M1 18v3h3c0-1.66-1.34-3-3-3z"),f(n,"fill","#fff"),f(o,"class","wave wave2 svelte-8z1bf5"),f(o,"d","M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z"),f(o,"fill","#fff"),f(r,"class","wave wave3 svelte-8z1bf5"),f(r,"d","M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z"),f(r,"fill","#fff"),f(l,"d","M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"),f(l,"fill","#fff"),f(a,"d","M0 0h24v24H0z"),f(s,"d","M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z"),f(s,"fill","#fff"),H(s,"hidden",!i[1]),f(t,"fill","none"),f(t,"fill-rule","evenodd"),f(e,"width","24"),f(e,"height","24"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"aria-hidden","true"),f(e,"data-testid","chromecast-icon"),f(e,"class","svelte-8z1bf5"),H(e,"connecting",i[2])},m(u,c){S(u,e,c),p(e,t),p(t,n),p(t,o),p(t,r),p(t,l),p(t,a),p(t,s)},p(u,c){c&2&&H(s,"hidden",!u[1]),c&4&&H(e,"connecting",u[2])},d(u){u&&C(e)}}}function Dv(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,g,k,y,I,v,b,E,A;return{c(){e=q("svg"),t=q("g"),n=q("mask"),o=q("path"),l=q("path"),a=q("path"),u=q("path"),c=q("defs"),m=q("clipPath"),h=q("path"),g=q("filter"),k=q("feFlood"),y=q("feColorMatrix"),I=q("feOffset"),v=q("feGaussianBlur"),b=q("feColorMatrix"),E=q("feBlend"),A=q("feBlend"),f(o,"fill",r=i[1]?"#2688EB":"#fff"),f(o,"d","M1.1 3.1h22v18h-22z"),f(l,"fill-rule","evenodd"),f(l,"clip-rule","evenodd"),f(l,"d","M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z"),f(n,"id","c"),f(n,"maskUnits","userSpaceOnUse"),f(n,"x","1.1"),f(n,"y","3.1"),f(n,"width","22"),f(n,"height","18"),f(n,"fill","#000"),f(a,"fill-rule","evenodd"),f(a,"clip-rule","evenodd"),f(a,"d","M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z"),f(a,"fill",s=i[1]?"#2688EB":"#fff"),f(u,"d","m18.097 5.938-.04.498.04-.498Zm.856.19-.227.446.227-.445Zm.918.919-.445.227.445-.227Zm.191.856-.498.04.498-.04Zm0 8.194-.498-.04.498.04Zm-.19.856-.446-.227.445.227Zm-.919.918-.227-.445.227.445Zm-.856.191.04.498-.04-.498Zm-1.86 1.838v-.5.5Zm2.007-.044.04.498-.04-.498Zm1.527-.381-.227-.446.227.446Zm1.704-1.704.445.227-.445-.227Zm.381-1.527.498.04-.498-.04Zm.044-2.006h-.5.5Zm0-4.476h-.5.5Zm-.044-2.006.498-.04-.498.04Zm-.381-1.527.445-.227-.445.227ZM19.77 4.525l-.227.446.227-.446Zm-1.527-.381.04-.498-.04.498ZM16.238 4.1v.5-.5ZM6 4.1v-.5.5ZM2.322 6.7l-.471-.167.471.167Zm1.697.6-.471-.167.471.167ZM6 5.9v-.5.5Zm-2.931 5.62-.038-.498.038.498Zm7.413 7.413.498.038-.498-.038Zm1.795.137.498.038-.498-.038ZM2.931 9.725l-.038-.498.038.498Zm-.829.966.499-.038-.499.038Zm1.025 4.443-.071-.495.071.495Zm-1.019-.763.495-.071-.495.07Zm.763-1.02.071.496-.07-.495ZM8.65 19.13l.495.072-.495-.072Zm-1.019.764-.07.494.07-.494Zm-.763-1.02.495.072-.495-.071ZM18.138 5.44c-.48-.04-1.091-.04-1.938-.04v1c.863 0 1.426.001 1.856.036l.082-.996Zm1.042.243c-.255-.13-.567-.205-1.042-.243l-.082.996c.414.034.58.092.67.138l.454-.89Zm1.137 1.137a2.6 2.6 0 0 0-1.137-1.137l-.454.891a1.6 1.6 0 0 1 .7.7l.89-.454Zm.244 1.042c-.04-.475-.114-.787-.244-1.042l-.891.454c.046.09.104.256.138.67l.997-.082ZM20.6 9.8c0-.846 0-1.458-.04-1.938l-.996.082c.035.43.036.993.036 1.856h1Zm0 4.4V9.8h-1v4.4h1Zm-.04 1.938c.04-.48.04-1.092.04-1.938h-1c0 .863-.001 1.426-.036 1.856l.997.082Zm-.243 1.042c.13-.255.205-.567.244-1.042l-.997-.082c-.034.414-.092.58-.138.67l.89.454Zm-1.137 1.137a2.6 2.6 0 0 0 1.137-1.137l-.891-.454a1.6 1.6 0 0 1-.7.7l.454.89Zm-1.042.244c.475-.04.787-.114 1.042-.244l-.454-.891c-.09.046-.256.104-.67.138l.082.997ZM16.2 18.6c.847 0 1.458 0 1.938-.04l-.082-.996c-.43.035-.993.036-1.856.036v1Zm-1.2 0h1.2v-1H15v1Zm-.4.4c0-.22.18-.4.4-.4v-1a1.4 1.4 0 0 0-1.4 1.4h1Zm.4.4a.4.4 0 0 1-.4-.4h-1a1.4 1.4 0 0 0 1.4 1.4v-1Zm1.238 0H15v1h1.238v-1Zm1.965-.042c-.512.042-1.15.042-1.965.042v1c.8 0 1.484 0 2.046-.045l-.081-.997Zm1.34-.329c-.386.198-.815.286-1.34.329l.081.997c.587-.049 1.163-.154 1.714-.435l-.454-.89Zm1.486-1.485a3.4 3.4 0 0 1-1.485 1.485l.454.891a4.4 4.4 0 0 0 1.922-1.922l-.89-.454Zm.329-1.341c-.043.525-.131.954-.329 1.34l.891.455c.281-.552.386-1.127.434-1.714l-.996-.081Zm.042-1.965c0 .815 0 1.453-.042 1.965l.997.081c.045-.561.045-1.246.045-2.046h-1Zm0 0h1-1Zm0-4.476v4.476h1V9.762h-1Zm0 0h1-1Zm-.042-1.965c.042.512.042 1.15.042 1.965h1c0-.8 0-1.484-.045-2.046l-.997.081Zm-.329-1.34c.198.386.286.815.329 1.34l.997-.081c-.049-.587-.154-1.162-.435-1.714l-.89.454ZM19.544 4.97a3.4 3.4 0 0 1 1.485 1.485l.891-.454a4.4 4.4 0 0 0-1.922-1.922l-.454.89Zm-1.341-.329c.525.043.954.132 1.34.329l.455-.891c-.552-.281-1.127-.387-1.714-.434l-.081.996ZM16.238 4.6c.815 0 1.453 0 1.965.042l.081-.996c-.562-.046-1.246-.046-2.046-.046v1Zm0 0v-1 1ZM6 4.6h10.238v-1H6v1Zm0-1v1-1Zm0 0a4.401 4.401 0 0 0-4.15 2.933l.944.334A3.401 3.401 0 0 1 6 4.6v-1ZM1.85 6.533a1.4 1.4 0 0 0 .854 1.787l.333-.943a.4.4 0 0 1-.243-.51l-.943-.334Zm.854 1.787a1.4 1.4 0 0 0 1.787-.853l-.943-.334a.4.4 0 0 1-.51.244l-.334.943Zm1.787-.853A1.601 1.601 0 0 1 6 6.4v-1c-1.131 0-2.095.722-2.452 1.733l.943.334ZM16.2 5.4H6v1h10.2v-1ZM3.602 11c-.192 0-.383.007-.571.022l.076.997A6.53 6.53 0 0 1 3.602 12v-1Zm7.4 7.4a7.4 7.4 0 0 0-7.4-7.4v1a6.4 6.4 0 0 1 6.4 6.4h1Zm-.022.571c.015-.188.022-.379.022-.571h-1c0 .167-.006.332-.019.495l.997.076Zm.369.43a.4.4 0 0 1-.369-.43l-.997-.076a1.4 1.4 0 0 0 1.29 1.502l.076-.997Zm.429-.37a.4.4 0 0 1-.43.37l-.075.996a1.4 1.4 0 0 0 1.502-1.29l-.997-.075Zm.024-.631c0 .213-.008.423-.024.632l.997.076c.018-.234.027-.47.027-.708h-1Zm-8.2-8.2a8.2 8.2 0 0 1 8.2 8.2h1a9.2 9.2 0 0 0-9.2-9.2v1Zm-.632.024c.209-.016.42-.024.632-.024v-1c-.238 0-.474.01-.708.027l.076.997Zm-.368.43a.4.4 0 0 1 .368-.43l-.076-.997a1.4 1.4 0 0 0-1.29 1.502l.998-.076Zm.429.368a.4.4 0 0 1-.43-.369l-.996.076a1.4 1.4 0 0 0 1.502 1.29l-.076-.997Zm.168 4.607c.13-.02.265-.029.403-.029v-1c-.185 0-.367.013-.545.039l.142.99Zm-1.585-1.187A1.4 1.4 0 0 0 3.2 15.629l-.142-.99a.4.4 0 0 1-.453-.34l-.99.143Zm1.187-1.585a1.4 1.4 0 0 0-1.187 1.585l.99-.142a.4.4 0 0 1 .34-.453l-.143-.99Zm.801-.057c-.271 0-.538.02-.8.057l.141.99c.216-.031.436-.047.659-.047v-1Zm5.6 5.6a5.6 5.6 0 0 0-5.6-5.6v1a4.6 4.6 0 0 1 4.6 4.6h1Zm-.057.8c.038-.262.057-.529.057-.8h-1c0 .223-.016.443-.047.659l.99.142ZM7.56 20.389A1.4 1.4 0 0 0 9.145 19.2l-.99-.142a.4.4 0 0 1-.453.34l-.142.99Zm-1.187-1.585a1.4 1.4 0 0 0 1.187 1.584l.142-.99a.4.4 0 0 1-.339-.452l-.99-.142Zm.029-.403c0 .138-.01.272-.029.403l.99.142c.026-.178.039-.36.039-.545h-1Zm-2.8-2.8a2.8 2.8 0 0 1 2.8 2.8h1a3.8 3.8 0 0 0-3.8-3.8v1Zm0 .8a2 2 0 0 0-2 2h1a1 1 0 0 1 1-1v-1Zm2 2a2 2 0 0 0-2-2v1a1 1 0 0 1 1 1h1Zm-2 2a2 2 0 0 0 2-2h-1a1 1 0 0 1-1 1v1Zm-2-2a2 2 0 0 0 2 2v-1a1 1 0 0 1-1-1h-1Z"),f(u,"fill","#000"),f(u,"fill-opacity",".12"),f(u,"mask","url(#c)"),f(t,"filter","url(#b)"),f(t,"clip-path","url(#a)"),f(h,"fill",w=i[1]?"#2688EB":"#fff"),f(h,"d","M0 0h24v24H0z"),f(m,"id","a"),f(k,"flood-opacity","0"),f(k,"result","BackgroundImageFix"),f(y,"in","SourceAlpha"),f(y,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(y,"result","hardAlpha"),f(v,"stdDeviation","2.5"),f(b,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(E,"in2","BackgroundImageFix"),f(E,"result","effect1_dropShadow_4085_178456"),f(A,"in","SourceGraphic"),f(A,"in2","effect1_dropShadow_4085_178456"),f(A,"result","shape"),f(g,"id","b"),f(g,"x","-3.4"),f(g,"y","-1.4"),f(g,"width","30.8"),f(g,"height","26.802"),f(g,"filterUnits","userSpaceOnUse"),f(g,"color-interpolation-filters","sRGB"),f(e,"width","24"),f(e,"height","24"),f(e,"fill","none"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"aria-hidden","true"),f(e,"data-testid","chromecast-mobile-icon")},m(L,R){S(L,e,R),p(e,t),p(t,n),p(n,o),p(n,l),p(t,a),p(t,u),p(e,c),p(c,m),p(m,h),p(c,g),p(g,k),p(g,y),p(g,I),p(g,v),p(g,b),p(g,E),p(g,A)},p(L,R){R&2&&r!==(r=L[1]?"#2688EB":"#fff")&&f(o,"fill",r),R&2&&s!==(s=L[1]?"#2688EB":"#fff")&&f(a,"fill",s),R&2&&w!==(w=L[1]?"#2688EB":"#fff")&&f(h,"fill",w)},d(L){L&&C(e)}}}function Nv(i){let e;function t(r,l){return r[0]?Dv:Bv}let n=t(i,-1),o=n(i);return{c(){o.c(),e=dt()},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:he,o:he,d(r){r&&C(e),o.d(r)}}}function qv(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===gu.ChromecastState.CONNECTING),t(1,r=o===gu.ChromecastState.CONNECTED)},[n,r,l,o]}var bu=class extends W{constructor(e){super(),Q(this,e,qv,Nv,j,{isMobile:0,state:3},Rv)}},gm=bu;var vm=require("@vkontakte/videoplayer-shared");function Ov(i){let e,t;return e=new gm({props:{isMobile:i[1],state:i[2]}}),{c(){N(e.$$.fragment)},m(n,o){B(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){D(e,n)}}}function Fv(i){let e,t,n;function o(l){i[5](l)}let r={ariaLabel:i[4],click:i[3],testId:"btn-chromecast",$$slots:{default:[Ov]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new wt({props:r}),pe.push(()=>De(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){B(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],Be(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){D(e,l)}}}function Hv(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{state:r}=e,{click:l=vm.noop}=e,a;function s(u){n=u,t(0,n)}return i.$$set=u=>{"ref"in u&&t(0,n=u.ref),"isMobile"in u&&t(1,o=u.isMobile),"state"in u&&t(2,r=u.state),"click"in u&&t(3,l=u.click)},i.$$.update=()=>{if(i.$$.dirty&4)e:t(4,a=r===bm.ChromecastState.CONNECTED?G("tooltip_chromecast_on"):G("tooltip_chromecast_off"))},[n,o,r,l,a,s]}var vu=class extends W{constructor(e){super(),Q(this,e,Hv,Fv,j,{ref:0,isMobile:1,state:2,click:3})}},Gr=vu;var Qr=require("@vkontakte/videoplayer-core");function zv(i){let e,t;return e=new Sr({props:{isActive:i[1]}}),{c(){N(e.$$.fragment)},m(n,o){B(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){D(e,n)}}}function Uv(i){let e,t;return e=new wt({props:{className:i[0]?"":"btn--live btn-full-opacity",testId:i[1]?"btn-live":"btn-live-offset",disabled:i[1]&&i[3]===Qr.PlaybackState.PLAYING,ariaLabel:i[2],click:i[4],$$slots:{default:[zv]},$$scope:{ctx:i}}}),{c(){N(e.$$.fragment)},m(n,o){B(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]===Qr.PlaybackState.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){D(e,n)}}}function Kv(i,e,t){let n,{isMobile:o=!1}=e,{isActiveLive:r=!1}=e,{ariaLabel:l=""}=e,a=st(),s=a.state.playbackState$;z(i,s,h=>t(3,n=h));let u=a.actions.internal.switchToActiveLive,c=a.actions.internal.togglePlay,m;return i.$$set=h=>{"isMobile"in h&&t(0,o=h.isMobile),"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,m=()=>{if(!r){u();return}n===Qr.PlaybackState.PAUSED&&c()})},[o,r,l,n,m,s]}var yu=class extends W{constructor(e){super(),Q(this,e,Kv,Uv,j,{isMobile:0,isActiveLive:1,ariaLabel:2})}},Yr=yu;function jv(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 Wv(i){let e,t,n,o,r=i[9].default,l=Ie(r,i,i[8],null);return{c(){e=T("div"),t=T("div"),l&&l.c(),f(t,"class","tooltip svelte-5ygsa2"),H(t,"active",i[0]),H(t,"pointer",i[1]),f(e,"class","tooltip-wrapper svelte-5ygsa2"),f(e,"style",n=`transform: translate(${i[5]}px, ${i[2]}px);`)},m(a,s){S(a,e,s),p(e,t),l&&l.m(t,null),i[10](t),i[11](e),o=!0},p(a,[s]){l&&l.p&&(!o||s&256)&&Ae(l,r,a,a[8],o?Ee(r,a[8],s,null):Me(a[8]),null),(!o||s&1)&&H(t,"active",a[0]),(!o||s&2)&&H(t,"pointer",a[1]),(!o||s&36&&n!==(n=`transform: translate(${a[5]}px, ${a[2]}px);`))&&f(e,"style",n)},i(a){o||(d(l,a),o=!0)},o(a){_(l,a),o=!1},d(a){a&&C(e),l&&l.d(a),i[10](null),i[11](null)}}}function Gv(i,e,t){let n,{$$slots:o={},$$scope:r}=e,{active:l=!1}=e,{pointer:a=!1}=e,{translateXPx:s=0}=e,{translateYPx:u=0}=e,{containerWidth:c}=e,m,h;function w(y){if(!h)return 0;let{width:I}=h.getBoundingClientRect(),v=I/2;return y<v?v:y>c-v?c-v:y}function g(y){pe[y?"unshift":"push"](()=>{h=y,t(4,h)})}function k(y){pe[y?"unshift":"push"](()=>{m=y,t(3,m)})}return i.$$set=y=>{"active"in y&&t(0,l=y.active),"pointer"in y&&t(1,a=y.pointer),"translateXPx"in y&&t(6,s=y.translateXPx),"translateYPx"in y&&t(2,u=y.translateYPx),"containerWidth"in y&&t(7,c=y.containerWidth),"$$scope"in y&&t(8,r=y.$$scope)},i.$$.update=()=>{if(i.$$.dirty&64)e:t(5,n=w(s))},[l,a,u,m,h,n,s,c,r,o,g,k]}var wu=class extends W{constructor(e){super(),Q(this,e,Gv,Wv,j,{active:0,pointer:1,translateXPx:6,translateYPx:2,containerWidth:7},jv)}},ym=wu;var Zr=(i,e,t)=>t.filter(n=>n.time<i*e).pop();function Qv(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 wm(i){let e;function t(r,l){return r[2]&&r[10].completed===!1?Zv:Yv}let n=t(i,-1),o=n(i);return{c(){o.c(),e=dt()},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 Yv(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||"")+"")&&Ye(t,e)},d(n){n&&C(t)}}}function Zv(i){let e=G("tooltip_episode_unfinished")+"",t;return{c(){t=Ve(e)},m(n,o){S(n,t,o)},p:he,d(n){n&&C(t)}}}function km(i){let e,t;return{c(){e=T("div"),t=Ve(i[0]),f(e,"class","time svelte-l51fc1")},m(n,o){S(n,e,o),p(e,t)},p(n,o){o&1&&Ye(t,n[0])},d(n){n&&C(e)}}}function Xv(i){let e,t,n,o,r,l,a=i[10]&&wm(i),s=!i[2]&&km(i);return{c(){e=T("div"),t=T("div"),o=O(),r=T("div"),a&&a.c(),l=O(),s&&s.c(),f(t,"class","preview svelte-l51fc1"),f(t,"style",n=`width: ${i[3]}px; height: ${i[4]}px; background-image: url(${i[5]}); background-size: ${i[6]}px ${i[7]}px; background-position: ${i[8]}px ${i[9]}px; transform: translateY(${i[11]%180?-35:0}px) rotate(${i[11]}deg);`),f(r,"class","episode svelte-l51fc1"),f(e,"class","timeline-preview svelte-l51fc1"),H(e,"mobile",i[1])},m(u,c){S(u,e,c),p(e,t),p(e,o),p(e,r),a&&a.m(r,null),p(e,l),s&&s.m(e,null)},p(u,[c]){c&3064&&n!==(n=`width: ${u[3]}px; height: ${u[4]}px; background-image: url(${u[5]}); background-size: ${u[6]}px ${u[7]}px; background-position: ${u[8]}px ${u[9]}px; transform: translateY(${u[11]%180?-35:0}px) rotate(${u[11]}deg);`)&&f(t,"style",n),u[10]?a?a.p(u,c):(a=wm(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,c):(s=km(u),s.c(),s.m(e,null)),c&2&&H(e,"mobile",u[1])},i:he,o:he,d(u){u&&C(e),a&&a.d(),s&&s.d()}}}var Il=150;function Jv(i,e,t){let n,{time:o=""}=e,{isMobile:r=!1}=e,{videoEpisodes:l=[]}=e,{previewThumbsData:a}=e,{progress:s=0}=e,{duration:u=0}=e,{isInteractive:c=!1}=e,h=st().ui.rotateAlpha;z(i,h,R=>t(11,n=R));let w,g,k,y,I,v,b,E;function A(){let R=a.frameWidth,le=a.frameHeight;return R>Il?(le=le/R*Il,R=Il):le>Il&&(R=R/le*Il,le=Il),{width:R,height:le}}function L(R){let le;a.isUV?le=Math.floor(u*R/a.frequency):le=Math.min(a.countTotal,Math.max(0,Math.floor(a.countTotal*R)));let ae=Math.floor(le/a.countPerImage),Y=Math.floor(le%a.countPerImage/a.countPerRow),V=le%a.countPerRow,ee=Math.floor(a.countPerImage/a.countPerRow);!a.isUV&&ae===Math.floor(a.countTotal/a.countPerImage)&&(ee=Math.floor(a.countTotal%a.countPerImage/a.countPerRow),a.countTotal%a.countPerImage%a.countPerRow>0&&ee++);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 se=w*X,F=g*ee,ne=-V*w,P=-Y*g;return{imgSrc:a.links[ae],imgWidth:se,imgHeight:F,imgOffsetX:ne,imgOffsetY:P}}i.$$set=R=>{"time"in R&&t(0,o=R.time),"isMobile"in R&&t(1,r=R.isMobile),"videoEpisodes"in R&&t(13,l=R.videoEpisodes),"previewThumbsData"in R&&t(14,a=R.previewThumbsData),"progress"in R&&t(15,s=R.progress),"duration"in R&&t(16,u=R.duration),"isInteractive"in R&&t(2,c=R.isInteractive)},i.$$.update=()=>{if(i.$$.dirty&32768)e:t(5,{imgSrc:k,imgWidth:y,imgHeight:I,imgOffsetX:v,imgOffsetY:b}=L(s),k,(t(6,y),t(15,s)),(t(7,I),t(15,s)),(t(8,v),t(15,s)),(t(9,b),t(15,s)));if(i.$$.dirty&106496)e:t(10,E=Zr(s,u,l))};e:t(3,{width:w,height:g}=A(),w,t(4,g));return[o,r,c,w,g,k,y,I,v,b,E,n,h,l,a,s,u]}var ku=class extends W{constructor(e){super(),Q(this,e,Jv,Xv,j,{time:0,isMobile:1,videoEpisodes:13,previewThumbsData:14,progress:15,duration:16,isInteractive:2},Qv)}},Cm=ku;function xv(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 $v(i){let e,t;return{c(){e=T("span"),t=Ve(i[8]),f(e,"class","time svelte-5lzly8")},m(n,o){S(n,e,o),p(e,t)},p(n,o){o[0]&256&&Ye(t,n[8])},i:he,o:he,d(n){n&&C(e)}}}function e4(i){let e,t;return e=new Cm({props:{time:i[8],isMobile:i[11],videoEpisodes:i[4],previewThumbsData:i[22],progress:i[9],duration:i[2],isInteractive:i[24]}}),{c(){N(e.$$.fragment)},m(n,o){B(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){D(e,n)}}}function t4(i){let e,t,n,o,r=[e4,$v],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=dt()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,u){let c=e;e=a(s,u),e===c?l[e].p(s,u):(ue(),_(l[c],1,1,()=>{l[c]=null}),fe(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&C(n),l[e].d(s)}}}function i4(i){let e,t,n,o,r,l=[i[10]],a={$$slots:{default:[t4]},$$scope:{ctx:i}};for(let c=0;c<l.length;c+=1)a=re(a,l[c]);e=new ym({props:a});function s(c){i[43](c)}let u={isActiveLive:i[12],isMobile:i[11],ariaLabel:G("aria_timeline"),ariaValueMin:0,ariaValueMax:i[2],ariaValueNow:Math.round(i[7]*100),ariaValueText:G("aria_timeline_value",{position:i[6],duration:i[5]}),loadedProgress:i[13],filledProgress:i[7],handleProgress:i[7],videoEpisodes:i[4],onPointerDown:i[29],onHandleMove:i[30],onPointerMove:i[33],onPointerUp:i[31],onPointerEnter:i[32],onPointerLeave:i[34],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}),pe.push(()=>De(n,"ref",s)),{c(){N(e.$$.fragment),t=O(),N(n.$$.fragment)},m(c,m){B(e,c,m),S(c,t,m),B(n,c,m),r=!0},p(c,m){let h=m[0]&1024?Le(l,[oc(c[10])]):{};m[0]&2838|m[1]&524288&&(h.$$scope={dirty:m,ctx:c}),e.$set(h);let w={};m[0]&4096&&(w.isActiveLive=c[12]),m[0]&2048&&(w.isMobile=c[11]),m[0]&4&&(w.ariaValueMax=c[2]),m[0]&128&&(w.ariaValueNow=Math.round(c[7]*100)),m[0]&96&&(w.ariaValueText=G("aria_timeline_value",{position:c[6],duration:c[5]})),m[0]&8192&&(w.loadedProgress=c[13]),m[0]&128&&(w.filledProgress=c[7]),m[0]&128&&(w.handleProgress=c[7]),m[0]&16&&(w.videoEpisodes=c[4]),m[0]&16384&&(w.disabled=c[14].has("TIMELINE")),m[0]&8&&(w.hideHandel=c[3]),!o&&m[0]&1&&(o=!0,w.ref=c[0],Be(()=>o=!1)),n.$set(w)},i(c){r||(d(e.$$.fragment,c),d(n.$$.fragment,c),r=!0)},o(c){_(e.$$.fragment,c),_(n.$$.fragment,c),r=!1},d(c){c&&C(t),D(e,c),D(n,c)}}}function n4(i,e,t){var Ne;let n,o,r,l,a,s,u,c,m,h,w,{showTimeline:g=!1}=e,{ref:k=void 0}=e,y=st(),I=Zt(),v=y.state.bufferedProgress$;z(i,v,Te=>t(13,h=Te));let b=y.state.positionWithScrubbing$;z(i,b,Te=>t(41,s=Te));let E=y.state.duration$;z(i,E,Te=>t(2,r=Te));let A=y.state.isLive$;z(i,A,Te=>t(1,o=Te));let L=y.state.isActiveLive$;z(i,L,Te=>t(12,m=Te));let R=y.ui.isMobile;z(i,R,Te=>t(11,c=Te));let le=I.features.episodes?y.actions.internal.getVideoEpisodes():void 0,ae=y.actions.internal.getPreviewThumbsData(),Y=y.state.interactiveEpisodes$;z(i,Y,Te=>t(42,u=Te));let V=y.state.isInteractive,ee=y.state.isInteractiveTime$;z(i,ee,Te=>t(3,l=Te));let X=y.state.isInteractiveExpectation$;z(i,X,Te=>t(40,a=Te));let se=y.actions.internal.correctSeekTimeToInteractive,F=(Ne=y.callbacks)==null?void 0:Ne.onDisabledTimelineClick,ne=y.ui.controls.disabledControls$;z(i,ne,Te=>t(14,w=Te));let P,U,we,qe,Ze=!1,Xe="",He=0,ye=0,J=0,ke;function it(Te){return!se||!V?Te:se(Te*r)/r}function Oe(Te){y.actions.internal.startScrubbing(it(Te))}function rt(Te){l||y.actions.internal.progressScrubbing(it(Te))}function Ce(Te){y.actions.internal.completeScrubbing(it(Te)),t(36,Ze=!1)}function Je(Te,ze,K){Ke(Te,ze,K),t(36,Ze=!0)}function at(Te,ze,K){Ke(Te,ze,K),t(36,Ze=!0)}function Ge(){t(36,Ze=!1)}function Ke(Te,ze,K){t(9,J=it(Te)),t(37,He=ze),K&&t(38,ye=K),t(8,Xe=$e(Te))}function $e(Te){let ze=zn((o?1-Te:Te)*r);return o?`-${ze}`:ze}function de(Te){k=Te,t(0,k)}return i.$$set=Te=>{"showTimeline"in Te&&t(35,g=Te.showTimeline),"ref"in Te&&t(0,k=Te.ref)},i.$$.update=()=>{if(i.$$.dirty[1]&2048)e:t(4,P=V?u:le);if(i.$$.dirty[0]&4)e:t(5,U=zn(r));if(i.$$.dirty[1]&1024)e:t(6,we=zn(s));if(i.$$.dirty[0]&4|i.$$.dirty[1]&1024)e:t(7,qe=s/r);if(i.$$.dirty[0]&8|i.$$.dirty[1]&512)e:t(39,ke=a||l);if(i.$$.dirty[0]&2|i.$$.dirty[1]&496)e:t(10,n={containerWidth:ye,translateXPx:He,translateYPx:V&&ae?-36:-16,active:Ze&&g&&!ke,pointer:!I.features.timelinePreview||!ae||o})},[k,o,r,l,P,U,we,qe,Xe,J,n,c,m,h,w,I,v,b,E,A,L,R,ae,Y,V,ee,X,F,ne,Oe,rt,Ce,Je,at,Ge,g,Ze,He,ye,ke,a,s,u,de]}var Cu=class extends W{constructor(e){super(),Q(this,e,n4,i4,j,{showTimeline:35,ref:0},xv,[-1,-1])}},Sm=Cu;function o4(i){let e,t;return e=new Sl({props:{ariaValueMin:0,ariaValueMax:i[0],ariaValueNow:Math.round(i[3]*100),ariaValueText:G("aria_timeline_value",{position:i[2],duration:i[1]}),filledProgress:i[3],isAds:!0,hideHandel:!0,squareBorders:i[4]}}),{c(){N(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.ariaValueMax=n[0]),o&8&&(r.ariaValueNow=Math.round(n[3]*100)),o&6&&(r.ariaValueText=G("aria_timeline_value",{position:n[2],duration:n[1]})),o&8&&(r.filledProgress=n[3]),o&16&&(r.squareBorders=n[4]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function l4(i,e,t){let n,{position:o=0}=e,{duration:r=0}=e,a=st().ui.isMobile;z(i,a,m=>t(4,n=m));let s,u,c;return i.$$set=m=>{"position"in m&&t(6,o=m.position),"duration"in m&&t(0,r=m.duration)},i.$$.update=()=>{if(i.$$.dirty&1)e:t(1,s=zn(r));if(i.$$.dirty&64)e:t(2,u=zn(o));if(i.$$.dirty&65)e:t(3,c=o/r)},[r,s,u,c,n,a,o]}var Su=class extends W{constructor(e){super(),Q(this,e,l4,o4,j,{position:6,duration:0})}},Xr=Su;function r4(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 s4(i){let e;return{c(){e=T("div"),f(e,"class","timeline-stub svelte-1gqonyf"),H(e,"mobile",i[3])},m(t,n){S(t,e,n)},p(t,n){n&8&&H(e,"mobile",t[3])},i:he,o:he,d(t){t&&C(e)}}}function a4(i){let e,t,n,o,r=[f4,u4],l=[];function a(s,u){return s[1]?0:1}return t=a(i,-1),n=l[t]=r[t](i),{c(){e=T("div"),n.c(),f(e,"class","timeline svelte-1gqonyf"),H(e,"mobile",i[3])},m(s,u){S(s,e,u),l[t].m(e,null),o=!0},p(s,u){let c=t;t=a(s,u),t===c?l[t].p(s,u):(ue(),_(l[c],1,1,()=>{l[c]=null}),fe(),n=l[t],n?n.p(s,u):(n=l[t]=r[t](s),n.c()),d(n,1),n.m(e,null)),(!o||u&8)&&H(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 u4(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 Sm({props:r}),pe.push(()=>De(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){B(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],Be(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){D(e,l)}}}function f4(i){let e,t;return e=new Xr({props:{position:i[4],duration:i[5]}}),{c(){N(e.$$.fragment)},m(n,o){B(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){D(e,n)}}}function c4(i){let e,t,n,o,r=[a4,s4],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=dt()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let c=e;e=a(s,u),e===c?l[e].p(s,u):(ue(),_(l[c],1,1,()=>{l[c]=null}),fe(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&C(n),l[e].d(s)}}}function d4(i,e,t){let n,o,r,l,{isAds:a=!1}=e,{canRewindLive:s}=e,{isRewindableLive:u}=e,{isHidden:c=!1}=e,{ref:m=void 0}=e,h=st(),w=h.state.isLive$;z(i,w,b=>t(13,n=b));let g=h.ads.duration;z(i,g,b=>t(5,l=b));let k=h.ads.position;z(i,k,b=>t(4,r=b));let y=h.ui.isMobile;z(i,y,b=>t(3,o=b));let I;function v(b){m=b,t(0,m)}return i.$$set=b=>{"isAds"in b&&t(1,a=b.isAds),"canRewindLive"in b&&t(10,s=b.canRewindLive),"isRewindableLive"in b&&t(11,u=b.isRewindableLive),"isHidden"in b&&t(12,c=b.isHidden),"ref"in b&&t(0,m=b.ref)},i.$$.update=()=>{if(i.$$.dirty&15362)e:t(2,I=!c&&(!n||n&&s&&u||a))},[m,a,I,o,r,l,w,g,k,y,s,u,c,n,v]}var Tu=class extends W{constructor(e){super(),Q(this,e,d4,c4,j,{isAds:1,canRewindLive:10,isRewindableLive:11,isHidden:12,ref:0},r4)}},Jr=Tu;var Im=require("@vkontakte/videoplayer-shared");function m4(i){let e,t,n,o,r,l=i[2].default,a=Ie(l,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-icon"},{style:"flex-shrink:0"},{role:"img"},i[0]],u={};for(let c=0;c<s.length;c+=1)u=re(u,s[c]);return{c(){e=q("svg"),a&&a.c(),t=q("path"),n=q("path"),o=q("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","m21.616 16.495-.012.07c-.156.852-.282 1.541-.427 2.093-.148.569-.333 1.063-.64 1.5a4.4 4.4 0 0 1-2.507 1.732c-.52.133-1.046.131-1.63.069-.568-.06-1.257-.187-2.11-.343l-4.34-.794c-.853-.156-1.542-.282-2.094-.426-.568-.149-1.062-.334-1.5-.642a4.4 4.4 0 0 1-1.731-2.507c-.133-.518-.131-1.045-.069-1.63.06-.567.187-1.257.343-2.11l.012-.068c.156-.853.282-1.542.427-2.095.148-.568.333-1.062.641-1.5a4.4 4.4 0 0 1 2.507-1.731c.518-.133 1.045-.131 1.63-.069.567.06 1.256.187 2.109.343l4.34.794c.853.156 1.542.282 2.094.426.568.149 1.062.334 1.5.642a4.4 4.4 0 0 1 1.731 2.506c.133.52.131 1.046.069 1.63-.06.568-.187 1.258-.343 2.11m-1.446-2.3c.052-.483.035-.769-.022-.993a2.6 2.6 0 0 0-1.023-1.481c-.19-.133-.45-.25-.921-.373-.48-.125-1.102-.24-1.997-.404l-4.272-.781c-.895-.164-1.518-.277-2.01-.33-.483-.051-.769-.035-.993.023-.6.153-1.125.516-1.481 1.023-.133.19-.25.45-.373.92-.125.48-.24 1.103-.403 1.998s-.277 1.518-.33 2.01c-.051.484-.035.77.023.994.153.6.516 1.125 1.023 1.481.189.133.45.25.92.373.48.125 1.102.24 1.997.404l4.272.781c.895.164 1.518.277 2.01.33.483.051.77.035.993-.023a2.6 2.6 0 0 0 1.481-1.023c.133-.19.25-.45.373-.92.125-.48.24-1.103.403-1.998s.278-1.518.33-2.01Z"),f(t,"clip-rule","evenodd"),f(n,"fill","#fff"),f(n,"fill-rule","evenodd"),f(n,"d","M18.187 7.488a.9.9 0 0 1-1.045-.727c-.145-.807-.199-1.086-.28-1.296A2.6 2.6 0 0 0 14.504 3.8c-.224-.006-.505.036-1.315.169l-5.846.962c-1.366.224-1.834.313-2.174.492A2.6 2.6 0 0 0 3.837 7.18c-.08.376-.039.85.114 2.226l.011.1a.9.9 0 1 1-1.787.198l-.01-.093-.019-.17c-.129-1.147-.217-1.937-.068-2.636A4.4 4.4 0 0 1 4.332 3.83c.633-.333 1.417-.461 2.556-.648l.163-.027 5.846-.961.098-.016c.674-.111 1.138-.188 1.556-.177a4.4 4.4 0 0 1 3.99 2.819c.15.39.234.853.355 1.526l.017.097a.9.9 0 0 1-.726 1.045"),f(n,"clip-rule","evenodd"),f(o,"fill","#fff"),f(o,"d","M12.724 12.414a.415.415 0 0 0-.69.231l-.72 4.18a.4.4 0 0 0 .025.221c.085.21.327.311.539.226l3.669-1.467a.406.406 0 0 0 .127-.68z"),be(e,u)},m(c,m){S(c,e,m),a&&a.m(e,null),p(e,t),p(e,n),p(e,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Ae(a,l,c,c[1],r?Ee(l,c[1],m,null):Me(c[1]),null),be(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"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){_(a,c),r=!1},d(c){c&&C(e),a&&a.d(c)}}}function p4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Pu=class extends W{constructor(e){super(),Q(this,e,p4,m4,j,{})}},Tm=Pu;function _4(i){let e,t,n,o=i[2].default,r=Ie(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=re(a,l[s]);return{c(){e=q("svg"),r&&r.c(),t=q("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M4.146 3.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L6.793 6.5 4.146 3.854a.5.5 0 0 1 0-.708"),f(t,"clip-rule","evenodd"),f(t,"opacity",".7"),be(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ae(r,o,s,s[1],n?Ee(o,s[1],u,null):Me(s[1]),null),be(e,a=Le(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 h4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Iu=class extends W{constructor(e){super(),Q(this,e,h4,_4,j,{})}},Pm=Iu;function g4(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 b4(i){let e,t,n,o;e=new Tm({});function r(s,u){if(s[4]==="FULL")return w4;if(s[4]==="COUNT")return y4}let l=r(i,-1),a=l&&l(i);return{c(){N(e.$$.fragment),t=O(),a&&a.c(),n=dt()},m(s,u){B(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)),D(e,s),a&&a.d(s)}}}function v4(i){let e,t,n,o,r,l;return r=new Pm({}),{c(){e=T("span"),t=Ve(i[2]),n=O(),o=T("div"),N(r.$$.fragment),f(e,"class","text mobile svelte-1yhs2ga"),f(o,"class","chevron-episodes svelte-1yhs2ga")},m(a,s){S(a,e,s),p(e,t),S(a,n,s),S(a,o,s),B(r,o,null),l=!0},p(a,s){(!l||s&4)&&Ye(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)),D(r)}}}function y4(i){let e,t=i[0].length+"",n;return{c(){e=T("span"),n=Ve(t),f(e,"class","text count svelte-1yhs2ga")},m(o,r){S(o,e,r),p(e,n)},p(o,r){r&1&&t!==(t=o[0].length+"")&&Ye(n,t)},d(o){o&&C(e)}}}function w4(i){let e,t;return{c(){e=T("span"),t=Ve(i[2]),f(e,"class","text svelte-1yhs2ga")},m(n,o){S(n,e,o),p(e,t)},p(n,o){o&4&&Ye(t,n[2])},d(n){n&&C(e)}}}function k4(i){let e,t,n,o,r=[v4,b4],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=dt()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,u){let c=e;e=a(s,u),e===c?l[e].p(s,u):(ue(),_(l[c],1,1,()=>{l[c]=null}),fe(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&C(n),l[e].d(s)}}}function C4(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:[k4]},$$scope:{ctx:i}};return i[1]!==void 0&&(r.ref=i[1]),e=new wt({props:r}),pe.push(()=>De(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){B(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],Be(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){D(e,l)}}}function S4(i,e,t){var Y,V,ee;let n,o,r,l,a,s,{position:u=0}=e,{duration:c=0}=e,{timeCodes:m=[]}=e,h=st(),w=(V=(Y=h.callbacks)==null?void 0:Y.onEpisodeChanged)!=null?V:Im.noop,g=!!((ee=h.callbacks)!=null&&ee.onEpisodeClicked),k=h.ui.currentGridType$;z(i,k,X=>t(18,a=X));let y=h.ui.episodes.openedByKeyboard$;z(i,y,X=>t(17,l=X));let I=h.ui.episodes.panelOpened$;z(i,I,X=>t(3,r=X));let v=h.ui.isMobile;z(i,v,X=>t(6,s=X));let b,E=X=>{var F,ne,P;if(!!((F=h.callbacks)!=null&&F.onEpisodeClicked)){let U=gl(X);y.set(U),I.set(!0),(P=(ne=h.callbacks)==null?void 0:ne.onEpisodeClicked)==null||P.call(ne,U)}},A,L,R,le=(X,se,F)=>ct(this,null,function*(){yield Xn(),(X==null?void 0:X.getAttribute("aria-expanded"))==="false"&&se&&!F&&(y.set(!1),X.focus())});function ae(X){b=X,t(1,b)}return i.$$set=X=>{"position"in X&&t(13,u=X.position),"duration"in X&&t(14,c=X.duration),"timeCodes"in X&&t(0,m=X.timeCodes)},i.$$.update=()=>{if(i.$$.dirty&24576)e:t(16,n=u/c);if(i.$$.dirty&114689)e:{let X=Zr(n,c,m);X&&(A==null?void 0:A.text)!==X.text&&(w(X),t(15,A=X))}if(i.$$.dirty&32768)e:t(2,o=(A==null?void 0:A.text)||"");if(i.$$.dirty&262144)e:Kn(a,"xl")?t(4,L="FULL"):Kn(a,"m")&&im(a,"xl")?t(4,L="COUNT"):t(4,L="SHORT");if(i.$$.dirty&4)e:t(5,R=`${G("tooltip_episodes")}: ${o}`);if(i.$$.dirty&131082)e:le(b,l,r)},[m,b,o,r,L,R,s,g,k,y,I,v,E,u,c,A,n,l,a,ae]}var Eu=class extends W{constructor(e){super(),Q(this,e,S4,C4,j,{position:13,duration:14,timeCodes:0},g4)}},xr=Eu;function T4(i){let e,t,n,o,r=i[2].default,l=Ie(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=re(s,a[u]);return{c(){e=q("svg"),l&&l.c(),t=q("path"),n=q("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M16.726 4.845C16.187 4.8 15.496 4.8 14.5 4.8H7.9a.9.9 0 1 1 0-1.8h6.639c.947 0 1.713 0 2.333.05.64.053 1.204.163 1.726.43a4.4 4.4 0 0 1 1.923 1.922c.266.523.377 1.087.429 1.726.05.62.05 1.386.05 2.334v5.076c0 .948 0 1.714-.05 2.334-.052.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.522.267-1.086.377-1.726.43-.62.05-1.386.05-2.333.05H7.9a.9.9 0 1 1 0-1.8h6.6c.995 0 1.687 0 2.226-.045.528-.043.828-.123 1.055-.238a2.6 2.6 0 0 0 1.136-1.137c.115-.226.195-.527.239-1.055.044-.538.044-1.23.044-2.225v-5c0-.995 0-1.687-.044-2.226-.043-.527-.124-.828-.239-1.054a2.6 2.6 0 0 0-1.136-1.137c-.227-.115-.527-.195-1.055-.238"),f(t,"clip-rule","evenodd"),f(n,"fill","#fff"),f(n,"d","M7.76 11.169V8.908c0-.708.704-1.143 1.252-.774l4.594 3.093c.525.353.525 1.193 0 1.546l-4.594 3.093c-.548.369-1.252-.066-1.252-.774v-2.261l-4.508 3.035C2.704 16.235 2 15.8 2 15.091V8.908c0-.708.704-1.143 1.252-.774z"),be(e,s)},m(u,c){S(u,e,c),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[c]){l&&l.p&&(!o||c&2)&&Ae(l,r,u,u[1],o?Ee(r,u[1],c,null):Me(u[1]),null),be(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"},c&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 P4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Au=class extends W{constructor(e){super(),Q(this,e,P4,T4,j,{})}},Em=Au;function I4(i){let e,t;return e=new Em({}),{c(){N(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function E4(i){let e,t,n;function o(l){i[4](l)}let r={className:i[1]?"hidden":"",testId:"btn-seek-to-interactive",ariaLabel:G("tooltip_interactive_seek"),disabled:i[2],click:i[3],$$slots:{default:[I4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new wt({props:r}),pe.push(()=>De(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){B(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],Be(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){D(e,l)}}}function A4(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 W{constructor(e){super(),Q(this,e,A4,E4,j,{ref:0,hidden:1,disabled:2,click:3})}},$r=Mu;function M4(i){let e,t,n,o,r=i[2].default,l=Ie(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=re(s,a[u]);return{c(){e=q("svg"),l&&l.c(),t=q("path"),n=q("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M16.777 3h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.2.72.523.923.918.141.277.19.557.21.814.02.237.02.521.02.83V7.19c0 .31 0 .594-.02.831-.02.256-.069.537-.21.813a2.1 2.1 0 0 1-.923.92c-.278.14-.56.188-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.919 2.1 2.1 0 0 1-.21-.813 8 8 0 0 1-.02-.63l-2.198-.002c-.495-.001-.81 0-1.05.018-.23.019-.309.05-.343.067a.8.8 0 0 0-.352.35c-.017.034-.049.113-.068.341-.02.24-.02.554-.02 1.046v5.57c0 .49 0 .804.02 1.043.019.228.05.306.068.34.077.15.2.273.35.35.035.017.113.049.342.067.24.02.555.021 1.048.022l2.203.003a8 8 0 0 1 .02-.627c.02-.256.069-.537.21-.813.203-.396.526-.718.923-.92.278-.14.56-.189.817-.21.238-.019.524-.019.834-.019h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.201.72.523.923.919.141.276.19.557.21.813.02.237.02.522.02.831v1.397c0 .31 0 .594-.02.831-.02.256-.069.537-.21.814a2.1 2.1 0 0 1-.923.919c-.278.14-.56.189-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.918 2.1 2.1 0 0 1-.21-.814 8 8 0 0 1-.02-.63l-2.24-.002c-.449 0-.839-.001-1.16-.028-.341-.028-.684-.09-1.016-.259a2.6 2.6 0 0 1-1.14-1.137c-.17-.33-.231-.672-.259-1.011-.026-.321-.026-.71-.026-1.156v-1.921H2.905A.903.903 0 0 1 2 11.992c0-.498.405-.901.905-.901h5.227V9.177c0-.448 0-.837.026-1.159.028-.34.09-.682.26-1.013a2.6 2.6 0 0 1 1.144-1.138c.332-.168.676-.23 1.017-.257.323-.025.714-.025 1.164-.024l2.23.003a8 8 0 0 1 .02-.627c.02-.257.069-.537.21-.814.203-.395.526-.717.923-.919.278-.14.56-.189.817-.21C16.18 3 16.467 3 16.777 3m-.833 1.837a1 1 0 0 1 .146-.02 10 10 0 0 1 .72-.014h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.021.3.3 0 0 1 .126.126 1 1 0 0 1 .021.145c.013.156.014.365.014.716v1.334c0 .352 0 .561-.014.716a1 1 0 0 1-.02.146.3.3 0 0 1-.127.125 1 1 0 0 1-.146.022c-.156.012-.366.013-.719.013H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.022.3.3 0 0 1-.126-.125 1 1 0 0 1-.021-.146 10 10 0 0 1-.014-.716V5.824c0-.351.001-.56.014-.716a1 1 0 0 1 .021-.145.3.3 0 0 1 .126-.126Zm0 11.018a1 1 0 0 1 .146-.022c.156-.012.366-.013.72-.013h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.022.3.3 0 0 1 .126.125 1 1 0 0 1 .021.146c.013.155.014.364.014.716v1.334c0 .351 0 .56-.014.716a1 1 0 0 1-.02.145.3.3 0 0 1-.127.126 1 1 0 0 1-.146.02c-.156.014-.366.014-.719.014H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.021.3.3 0 0 1-.126-.126 1 1 0 0 1-.021-.145 10 10 0 0 1-.014-.716v-1.334c0-.352.001-.561.014-.716a1 1 0 0 1 .021-.146.3.3 0 0 1 .126-.125Z"),f(t,"clip-rule","evenodd"),f(n,"fill","#fff"),f(n,"fill-rule","evenodd"),f(n,"d","M15.2 5.899v1.203c0 .594 0 .892.115 1.119.102.2.265.362.464.463.227.116.525.116 1.12.116H18.1c.595 0 .892 0 1.12-.116.199-.101.361-.264.463-.463.116-.227.116-.525.116-1.12V5.9c0-.595 0-.892-.116-1.12a1.06 1.06 0 0 0-.464-.463c-.227-.116-.524-.116-1.119-.116h-1.203c-.594 0-.892 0-1.119.116-.2.102-.362.264-.464.464-.115.227-.115.524-.115 1.119Zm-.051 11.03v1.143c0 .605 0 .908.118 1.139.103.203.268.368.472.472.23.117.533.117 1.138.117H18.1c.605 0 .907 0 1.138-.117a1.08 1.08 0 0 0 .472-.472c.118-.231.118-.534.118-1.139v-1.144c0-.605 0-.907-.118-1.138a1.08 1.08 0 0 0-.472-.472c-.231-.118-.534-.118-1.138-.118h-1.224c-.605 0-.907 0-1.138.118a1.08 1.08 0 0 0-.472.472c-.118.23-.118.533-.118 1.138Z"),f(n,"class","_closed"),f(n,"clip-rule","evenodd"),be(e,s)},m(u,c){S(u,e,c),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[c]){l&&l.p&&(!o||c&2)&&Ae(l,r,u,u[1],o?Ee(r,u[1],c,null):Me(u[1]),null),be(e,s=Le(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&C(e),l&&l.d(u)}}}function V4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Vu=class extends W{constructor(e){super(),Q(this,e,V4,M4,j,{})}},Am=Vu;function L4(i){Se(i,"svelte-17ceof5",'svg[data-testid="graph-open-icon"] ._closed{visibility:hidden;opacity:0}')}function R4(i){let e,t;return e=new Am({props:{"data-testid":i[0]?"graph-close-icon":"graph-open-icon"}}),{c(){N(e.$$.fragment)},m(n,o){B(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){D(e,n)}}}function B4(i,e,t){let{isOpened:n=!1}=e;return i.$$set=o=>{"isOpened"in o&&t(0,n=o.isOpened)},[n]}var Lu=class extends W{constructor(e){super(),Q(this,e,B4,R4,j,{isOpened:0},L4)}},Mm=Lu;function D4(i){let e,t;return e=new Mm({props:{isOpened:i[3]}}),{c(){N(e.$$.fragment)},m(n,o){B(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){D(e,n)}}}function N4(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:[D4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new wt({props:r}),pe.push(()=>De(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){B(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],Be(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){D(e,l)}}}function q4(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:r=!1}=e,{graphIsOpened:l=!1}=e,{click:a}=e,s;function u(c){n=c,t(0,n)}return i.$$set=c=>{"ref"in c&&t(0,n=c.ref),"hidden"in c&&t(1,o=c.hidden),"disabled"in c&&t(2,r=c.disabled),"graphIsOpened"in c&&t(3,l=c.graphIsOpened),"click"in c&&t(4,a=c.click)},i.$$.update=()=>{if(i.$$.dirty&8)e:t(5,s=l?G("tooltip_interactive_graph_on"):G("tooltip_interactive_graph_off"))},[n,o,r,l,a,s,u]}var Ru=class extends W{constructor(e){super(),Q(this,e,q4,N4,j,{ref:0,hidden:1,disabled:2,graphIsOpened:3,click:4})}},es=Ru;function O4(i){let e,t,n,o=i[2].default,r=Ie(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=re(a,l[s]);return{c(){e=q("svg"),r&&r.c(),t=q("path"),f(t,"fill","#fff"),f(t,"d","M12 9.096a.4.4 0 0 1-.67.296L7.044 5.493a.67.67 0 0 1 0-.986L11.33.608a.4.4 0 0 1 .67.296V4a8 8 0 1 1-8 8 1 1 0 1 1 2 0 6 6 0 1 0 6-6z"),be(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ae(r,o,s,s[1],n?Ee(o,s[1],u,null):Me(s[1]),null),be(e,a=Le(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 F4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Bu=class extends W{constructor(e){super(),Q(this,e,F4,O4,j,{})}},ts=Bu;var Lm=require("@vkontakte/videoplayer-shared");function H4(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 Vm(i){let e;return{c(){e=T("div"),f(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){S(t,e,n)},d(t){t&&C(e)}}}function z4(i){let e,t,n,o,r=i[1]&&Vm(i);return n=new ts({}),{c(){r&&r.c(),e=O(),t=T("div"),N(n.$$.fragment),f(t,"class","svelte-1ot3duq"),H(t,"mobile",i[1])},m(l,a){r&&r.m(l,a),S(l,e,a),S(l,t,a),B(n,t,null),o=!0},p(l,a){l[1]?r||(r=Vm(l),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),(!o||a&2)&&H(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),D(n)}}}function U4(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:G("tooltip_restart"),disabled:i[2],click:i[4],ariaKeyShortCut:to.KeyK,$$slots:{default:[z4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new wt({props:r}),pe.push(()=>De(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){B(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],Be(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){D(e,l)}}}function K4(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:r=!1}=e,{className:l=""}=e,{click:a=Lm.noop}=e;function s(u){n=u,t(0,n)}return i.$$set=u=>{"ref"in u&&t(0,n=u.ref),"isMobile"in u&&t(1,o=u.isMobile),"disabled"in u&&t(2,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 Du=class extends W{constructor(e){super(),Q(this,e,K4,U4,j,{ref:0,isMobile:1,disabled:2,className:3,click:4},H4)}},Yl=Du;function j4(i){let e,t,n,o=i[2].default,r=Ie(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=re(a,l[s]);return{c(){e=q("svg"),r&&r.c(),t=q("path"),f(t,"fill","#fff"),f(t,"d","M12.583 12.917v2.496a1 1 0 0 1-1.522.853l-5.583-3.413a1 1 0 0 1 0-1.706l5.583-3.413a1 1 0 0 1 1.522.853v2.496l5.478-3.349a1 1 0 0 1 1.522.853v6.826a1 1 0 0 1-1.522.853z"),be(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ae(r,o,s,s[1],n?Ee(o,s[1],u,null):Me(s[1]),null),be(e,a=Le(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 W4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Nu=class extends W{constructor(e){super(),Q(this,e,W4,j4,j,{})}},Rm=Nu;function G4(i){let e,t;return e=new Rm({}),{c(){N(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Q4(i){let e,t,n;function o(l){i[4](l)}let r={className:i[1]?"hidden":"",testId:"btn-play-prev-chapter",ariaLabel:G("tooltip_interactive_go_back"),disabled:i[2],click:i[3],$$slots:{default:[G4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new wt({props:r}),pe.push(()=>De(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){B(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],Be(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){D(e,l)}}}function Y4(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 qu=class extends W{constructor(e){super(),Q(this,e,Y4,Q4,j,{ref:0,hidden:1,disabled:2,click:3})}},is=qu;var Ou=require("@vkontakte/videoplayer-shared");function Z4(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 X4(i){let e,t,n,o;return{c(){e=T("img"),f(e,"class","icon svelte-1x1zctw"),Ls(e.src,t=i[0])||f(e,"src",t),f(e,"aria-hidden","true")},m(r,l){S(r,e,l),n||(o=me(e,"error",i[7]),n=!0)},p(r,l){l&1&&!Ls(e.src,t=r[0])&&f(e,"src",t)},d(r){r&&C(e),n=!1,o()}}}function J4(i){let e;return{c(){e=T("div"),e.innerHTML='<div class="inner svelte-1x1zctw"></div>',f(e,"class","icon error-stub svelte-1x1zctw")},m(t,n){S(t,e,n)},p:he,d(t){t&&C(e)}}}function x4(i){let e;function t(r,l){return r[5]?J4:X4}let n=t(i,-1),o=n(i);return{c(){o.c(),e=dt()},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 $4(i){let e,t;return e=new wt({props:{className:i[4]?"btn-full-opacity":"",ariaLabel:i[1],click:i[3],disabled:i[6],testId:i[2],$$slots:{default:[x4]},$$scope:{ctx:i}}}),{c(){N(e.$$.fragment)},m(n,o){B(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){D(e,n)}}}function e3(i,e,t){let n,o,r,{iconUrl:l}=e,{ariaLabel:a}=e,{disabled:s=!1}=e,{testId:u}=e,{onClick:c=Ou.noop}=e,m=()=>{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,c=h.onClick)},i.$$.update=()=>{if(i.$$.dirty&8)e:t(4,n=c===Ou.noop);if(i.$$.dirty&272)e:t(6,o=n||s)};e:t(5,r=!1);return[l,a,u,c,n,r,o,m,s]}var Fu=class extends W{constructor(e){super(),Q(this,e,e3,$4,j,{iconUrl:0,ariaLabel:1,disabled:8,testId:2,onClick:3},Z4)}},ns=Fu;var o0=require("@vkontakte/videoplayer-shared");var wn=require("@vkontakte/videoplayer-core"),SA=require("@vkontakte/videoplayer-shared"),gt=require("@vkontakte/videoplayer-shared"),po=require("@vkontakte/videoplayer-statistics"),TA=require("@vkontakte/videoplayer-interactive");var Ft=require("@vkontakte/videoplayer-shared");var Bm=(i,e)=>i<400||e<225?5:i<640||e<360?0:i<960||e<540?1:i<1280||e<720?2:3;var t3="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",os=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 Ft.Subject,started$:new Ft.Subject,paused$:new Ft.Subject,resumed$:new Ft.Subject,ended$:new Ft.Subject,skipped$:new Ft.Subject,clicked$:new Ft.Subject};this.loadAdman=e=>new Promise((t,n)=>{let o,r=()=>{clearTimeout(o),delete window.admanAsyncInit,window.AdmanHTML?t():n()};(0,Ft.addScript)(t3,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)=>{(0,Ft.assertNonNullable)(this.adsState),(0,Ft.assertNonNullable)(this.playerState),(0,Ft.assertNonNullable)(this.actions),this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(t)}`}),this.events.started$.next(e),t.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"}),tt(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})=>{(0,Ft.assertNonNullable)(this.adsState),this.adsState.position.set(e)};this.onAdPaused=()=>{(0,Ft.assertNonNullable)(this.adsState),this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")};this.onAdPlayed=()=>{(0,Ft.assertNonNullable)(this.adsState),this.log({message:"ad played"}),this.adsState.playbackState.set("playing")};this.onAdMidrollPoint=()=>{(0,Ft.assertNonNullable)(this.adman),(0,Ft.assertNonNullable)(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=()=>{var e;this.log({message:"ad clicked"}),(e=this.videoElement)==null||e.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:c,previewParam:m}=e,h,w=this.playerState&&tt(this.playerState.vsid);w&&(h=parseInt(w,36));let g=ut(Rt(ut({dl:encodeURIComponent(window.location.href),autoplay:r,player_width:t,player_height:n,puid10:Bm(t,n),puid11:o?0:1,preview:m},h?{request_id:h}:{}),{duration:c}),u),k={slot:s,wrapper:l,videoEl:a,videoQuality:n,params:g,browser:{mobile:!1}},y=new window.AdmanHTML;y.setDebug(!1),y.onReady(this.onAdsReady),y.onStarted(this.onAdStarted),y.onPlayed(this.onAdPlayed),y.onPaused(this.onAdPaused),y.adMidrollPoint(this.onAdMidrollPoint),y.onClosed(this.onAdClosed),y.onSkipped(this.onAdSkipped),y.onClicked(this.onAdClicked),y.onTimeRemained(this.onAdTimeRemained),y.onCompleted(this.onAdCompleted),y.onError(this.onAdError),y.init(k),this.adman=y,this.videoElement=a,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(k)}`})}switchToVideo(e=!1){if(this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}(0,Ft.assertNonNullable)(this.actions),(0,Ft.assertNonNullable)(this.adsState),(0,Ft.assertNonNullable)(this.playerState);let t=this.currentAdSection==="postroll";this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.playerState.mobileUnmuteButtonVisible.set(!1),this.log({message:`switch to video, isPostroll: ${t}`}),t&&(this.adsState.postrollPassed.set(!0),this.log({message:"postroll passed"})),this.actions.switchFromAdsToVideo(!t)}togglePlay(){(0,Ft.assertNonNullable)(this.adsState),this.log({message:"toggle play"});let e=tt(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){var t;this.log({message:`set volume ${e}`}),(t=this.adman)==null||t.setVolume(e),this.videoElement&&(this.videoElement.volume=e)}setFullscreen(e){var t;this.log({message:`set fullscreen ${e}`}),(t=this.adman)==null||t.setFullscreen(e)}startPreroll(){(0,Ft.assertNonNullable)(this.adman),this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.adman.start("preroll")}startPostroll(){(0,Ft.assertNonNullable)(this.adman),(0,Ft.assertNonNullable)(this.actions),this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.adman.start("postroll")}play(){(0,Ft.assertNonNullable)(this.adman),this.log({message:"ad play"}),this.adman.resume(),this.events.resumed$.next()}pause(){(0,Ft.assertNonNullable)(this.adman),this.log({message:"ad pause"}),this.adman.pause(),this.events.paused$.next()}skip(){(0,Ft.assertNonNullable)(this.adman),this.log({message:"ad skip"}),this.adman.skip(),this.events.skipped$.next()}setPosition(e,t){var n;(n=this.adman)==null||n.setPosition(Math.floor(e),Math.floor(t))}destroy(){var e;this.log({message:"destroy"}),(e=this.adman)==null||e.destroy()}};var Dm=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 Hu=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 ls,{startTime:u,endTime:c}=s.parse(a);r.startTime=u,r.endTime=c}else if(a.trim()!==""){let s=new zu,{texts:u}=s.parse(a);r.texts=[...r.texts,...u]}(r.startTime||r.endTime)&&r.texts.length>0&&t.push(r)}return t}},ls=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}},zu=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let t={texts:[]},o=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](l){let a=0,s=[];for(;a<l.length;){let u=["<",">"].reduce((c,m)=>{let h=l.indexOf(m,a);return c===-1||c>h?h:c},-1);if(u===-1){s.push(l.substring(a));break}s.push(l.substring(a,u)),a=u+1}return s}}),r=new ls;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}},Nm=Hu;var rs=require("@vkontakte/videoplayer-shared");var Eo,ti,Uu=0,Ku=!1,qm=(i,e,t)=>{var u;let n=i>=Uu,o=i<Uu,r=(c,m=0,h=0)=>c<m&&c<h,l=(c,m=0,h=0)=>c>=m&&c<=h,a=(c,m=0,h=0)=>c>m&&c>h,s=(u=t.find(({lang:c})=>c===e.value))==null?void 0:u.subtitles;if(Uu=i,o&&(Ku=!1),(0,rs.isNonNullable)(Eo)&&l(i,Eo.startTime,Eo.endTime)&&Eo.lang===e.value)return Eo;if(!(0,rs.isNonNullable)(ti)&&(s!=null&&s.length)&&!Ku){let c=s.find(({startTime:m,endTime:h})=>l(i,m,h)||n&&r(i,m,h));ti=c&&Rt(ut({},c),{lang:e.value}),Eo=void 0,!(0,rs.isNonNullable)(ti)&&s[s.length-1].endTime<i&&(Ku=!0);return}else{if(l(i,ti==null?void 0:ti.startTime,ti==null?void 0:ti.endTime))return Eo=ti,ti=void 0,Eo;(n&&a(i,ti==null?void 0:ti.startTime,ti==null?void 0:ti.endTime)||o&&r(i,ti==null?void 0:ti.startTime,ti==null?void 0:ti.endTime))&&(ti=void 0)}};var Om=require("@vkontakte/videoplayer-shared"),Fm=require("@vkontakte/videoplayer-statistics"),ss=class{constructor(e,t){this.oneStat=new Fm.OneStat(e,t),this.statSubscription=new Om.Subscription}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var Hm=({interfaceLanguage:i,videoId:e,isClip:t,isLiveCatchUpMode:n,statAuthToken:o,isAudioDisabled:r,canDownload:l,callbacks:a,webApi:s,videoEpisodes:u,previewThumbsData:c,uiConfig:m,coreConfig:h,player:w,disabledControls:g,isInteractive:k,interactiveRanges$:y,isInteractiveTime$:I,replayInteractive:v,hasInteractiveBranches:b,playPrevChapterDisabledTooltip:E,additionalButtons:A,looped:L=!1,statistics:R,saveRate:le})=>{var vo,ao,Nl,ql;let ae=Rt(ut({},h),{configName:[...(vo=h.configName)!=null?vo:[],"ui"],isAudioDisabled:r,live:Rt(ut({},(ao=h.live)!=null?ao:{}),{isLiveCatchUpMode:!!n})}),Y=m,V=w||new wn.Player(ae),ee=new gt.Logger,X=new os(ee,{loadTimeout:Y.ads.loadTimeout,initTimeout:Y.ads.initTimeout}),se=Wo.getInstance(),F=s==null?void 0:s.pictureInPictureApi,ne=s==null?void 0:s.annotationsApi,P=ee.createComponentLog("Store"),U,we,qe={},Ze=(0,gt.getCurrentBrowser)(),Xe=R?Ct(R.oneStat.vsid$):Hn(void 0),He=Re(ko()),ye=(Nl=F==null?void 0:F.info.isActive$)!=null?Nl:new gt.ValueSubject(!1),J=F==null?void 0:F.info.type,ke=Re(0),it=Re([]),Oe=(0,gt.merge)(V.events.fatalError$,V.events.managedError$).subscribe(M=>it.update(oe=>[...oe,M])),rt=Hn(!1,M=>{let oe=V.events.fatalError$.subscribe(()=>M(!0));return()=>oe.unsubscribe()}),Ce=M=>ct(void 0,null,function*(){var Ue;let oe=Object.values(gt.InterfaceLanguage).includes(M);if(Y.downloadVKLanguages&&(oe&&Y.updateBuiltinLanguages||!Ws(M))){let pt;try{pt=yield(0,gt.loadVKLangPack)(M,uc,fc)}catch(Lt){(Ue=R==null?void 0:R.oneStat)==null||Ue.logError({errorType:"VKLangPack",fatal:!1}),se==null||se.report(Lt,{errorType:"VKLangPack",fatal:!1})}pt&&(js({language:M,pack:pt,fallback:Y.defaultLanguage}),Je.set(M))}Ws(M)&&Je.set(M)}),Je=Re(i);Ce(i);let at=(M,oe)=>{let Pe=tt(Je);return Gs(Pe,M,oe,Y.defaultLanguage)},Ge=Re("thumb"),Ke=(()=>{let M=Bi([rt,Ge],([oe,Pe])=>oe?"crashed":Pe);return Rt(ut({},M),{is:oe=>tt(M)===oe})})(),$e=(()=>{let M=Re(new Set(g));return Rt(ut({},M),{add:oe=>{M.update(Pe=>new Set([...Pe].concat(oe)))},remove:oe=>{M.update(Pe=>{let Ue=[...Pe];return new Set(Array.isArray(oe)?Ue.filter(pt=>!oe.includes(pt)):Ue.filter(pt=>pt!==oe))})},includes:oe=>{let Pe=tt(M);return Array.isArray(oe)?oe.every(Ue=>Pe.has(Ue)):Pe.has(oe)}})})();P({message:"create store"});let de=M=>{let oe=M.container;oe.append(V.experimental.element$.getValue()),_t=new MutationObserver(Pe=>{let{removedNodes:Ue}=Pe[0];Ue.length&&oe.append(V.experimental.element$.getValue())}),_t.observe(oe,{childList:!0})},Ne=M=>{P({message:`init video, config: ${JSON.stringify(M)}`}),k?de(M):V.initVideo(M),M.subtitles&&V.setExternalTextTracks(M.subtitles),U=M},Te=new gt.Subject,ze=M=>Te.next(M),K=new gt.Subject,ve=new gt.Subject,et=new gt.Subject,_t=null,vt={actionRewind$:K,actionSeek$:ve,inPiP$:ye,inFullscreen$:new gt.Observable(M=>He.subscribe(oe=>M.next(oe))),actionSetSubtitle$:et,nextMovie$:Te};if(R){let{oneStat:M,statSubscription:oe}=R;oe.add(M.attachTo(V)),oe.add(M.attachToUi(vt)),oe.add(M.attachToAds(X.events)),M.authorize(o).catch(Pe=>{P({message:`onestat auth error ${String(Pe)}`})})}if(se){let M=new gt.Subscription,oe=(Pe,Ue)=>M.add(Pe.subscribe(Ue));if(oe(V.events.managedError$,Pe=>{se.logIError(Pe)}),oe(V.events.fatalError$,Pe=>{se.logIError(Pe,!0)}),R){let{oneStat:Pe}=R;oe(Pe.experimental.error$,Ue=>{se.logIError(Ue)})}se.sentrySubscription.add(M)}let ce=()=>{(0,gt.isIOS)()&&we&&jc(we)},bt=new gt.Subscription().add(V.experimental.element$.subscribe(M=>{M&&(we=M,M.classList.add("player-media"),Qo(F)&&(F.updateVideoElement(),F.registryEventHandlers()),k&&M.setAttribute("pip","false"))})).add(V.events.ended$.subscribe(()=>{var M;ce(),(M=a==null?void 0:a.onEnded)==null||M.call(a)})).add(V.events.started$.subscribe(()=>ct(void 0,null,function*(){var oe,Pe;Qo(F)&&(yield F==null?void 0:F.revealPictureInPicture());let M=V.info.muted$.getValue();(oe=a==null?void 0:a.onStarted)==null||oe.call(a),(Pe=qe.onStarted)==null||Pe.call(qe,M)}))).add(V.events.willSeek$.subscribe(({from:M,to:oe})=>{var Pe;(Pe=a==null?void 0:a.onSeek)==null||Pe.call(a,M,oe)})).add(V.info.position$.subscribe(M=>{var Pe;let oe=V.info.duration$.getValue();(Pe=a==null?void 0:a.onTimeupdate)==null||Pe.call(a,oe,M),X.setPosition(M,oe)})).add(V.events.fatalError$.subscribe(()=>{var M;(M=a==null?void 0:a.onCrashed)==null||M.call(a)})).add(V.events.firstBytes$.subscribe(()=>{kt.state.isFirstBytes$.set(!0)})).add(V.info.is3DVideo$.subscribe(M=>{kt.ui.is3DVideo.set(M)})).add(V.info.isEnded$.subscribe(M=>{k&&(M?(I!=null&&I.getValue()&&$e.add(ur),$e.add("PLAY_BUTTON")):$e.remove("PLAY_BUTTON"))})).add(V.info.liveTime$.subscribe(M=>{var oe;(oe=a==null?void 0:a.onLiveTime)==null||oe.call(a,M)})).add(V.info.isStalled$.subscribe(M=>{var oe;(oe=a==null?void 0:a.onStalledChanged)==null||oe.call(a,M)})).add(X.events.started$.subscribe(()=>{var M,oe;(oe=(M=a==null?void 0:a.adsInfo)==null?void 0:M.onStarted)==null||oe.call(M)})).add(X.events.ended$.subscribe(()=>{var M,oe;(oe=(M=a==null?void 0:a.adsInfo)==null?void 0:M.onCompleted)==null||oe.call(M)})),Mt=new gt.Subscription,St=()=>{Mt.add(V.events.log$.subscribe(M=>{console.debug("%c sdk ","background:#9ddcf7;",`sdk component: ${M.component}`,M.message)})).add(ee.log$.subscribe(M=>{console.debug("%c ui ","background:#f3da0b;",`ui component: ${M.component}.`,M.message)}))},je=()=>{Mt.unsubscribe()},jt=(M,oe)=>{V.startCameraManualRotation(M,oe)},Vt=(M=!1)=>{V.stopCameraManualRotation(M)},Pt=(M,oe,Pe)=>{V.moveCameraFocusPX(M,oe,Pe)},oi=()=>{V.holdCamera()},Bt=()=>{V.releaseCamera()},Dt=Hn(V.info.position$.getValue(),M=>{let oe,Pe,Ue=()=>{let pt=V.info.playbackState$.getValue(),Lt=V.info.isLive$.getValue(),$t=V.info.duration$.getValue(),At=V.info.position$.getValue();if([wn.PlaybackState.PLAYING,wn.PlaybackState.PAUSED].includes(pt)){let Qe=Lt?At-$t:V.getExactTime();Qe!==Pe&&M(Qe),Pe=Qe}oe=requestAnimationFrame(Ue)};return Ue(),()=>cancelAnimationFrame(oe)}),_e=Ct(ye),We=Ct(V.info.playbackState$),xe=Ct(V.info.currentBuffer$),lt=Ct(V.info.isEnded$),ht=Ct(V.info.isLive$),Gt=Y.features.playbackRate?Ct(V.info.canChangePlaybackSpeed$):Hn(!1),_i=Ct(V.info.liveBufferTime$),Nt=Ct(V.info.volume$),Yi=Ct(V.info.muted$),an=Os(V.info.autoQualityLimits$.pipe((0,gt.map)(({max:M})=>M!==void 0)),((ql=V.info.autoQualityLimits$.getValue())==null?void 0:ql.max)!==void 0),ai=Ct(V.info.autoQualityLimitingAvailable$),Di=Ct(V.info.availableQualities$),kn=Ct(V.info.availableQualitiesFps$),Ti=Ct(V.info.chromecastState$),un=Ct(V.info.chromecastDeviceName$),hi=Ct(V.info.currentFormat$),Ni=Ct(V.info.throughputEstimation$),gi=Ct(V.info.videoBitrate$),Pi=Ct(V.info.intrinsicVideoSize$),bi=Ct(V.info.duration$),Ii=Ct(V.info.isAudioAvailable$),Ht=null,zt=V.info.isBuffering$,fn=Hn(zt.getValue(),M=>{let oe=zt.subscribe(Pe=>{Pe&&Ht===null?Ht=window.setTimeout(()=>{M(zt.getValue()),Ht=null},Y.loaderDelay):M(Pe)});return()=>{oe.unsubscribe(),Ht&&clearTimeout(Ht)}}),Zi=()=>{Ht&&clearTimeout(Ht),Ht=null},ui=Bi([bi,ht],([M,oe])=>oe?-M:M),Ei=Bi([We],([M])=>M===wn.PlaybackState.PLAYING),Xi=Ct(V.info.atLiveEdge$),qi=Ct(V.info.atLiveDurationEdge$),yt=Ct(V.info.position$),cn=Bi([yt,bi],([M,oe])=>isFinite(M)&&isFinite(oe)&&!!oe),It=Bi([Ti],([M])=>M===wn.ChromecastState.CONNECTED),Oi=Ct(V.info.availableVideoStreams$),Ji=Y.features.audioLanguages?Ct(V.info.availableAudioStreams$):Hn([]),xi=Ct(V.info.currentVideoStream$),ii=Ct(V.info.currentAudioStream$),vi=M=>{M.language&&Us(M.language),V.setVideoStream(M)},yi=M=>{M.language&&Us(M.language),V.setAudioStream(M)},fi=M=>{let oe;if(M.length===1&&(oe=M.at(0)),oe!=null||(oe=M.find(Ue=>"isDefault"in Ue&&Ue.isDefault)),oe)return oe;let Pe=Nc();return Pe&&(oe=M.find(({language:Ue})=>Pe===Ue)),oe!=null||(oe=M.at(0)),oe},li=!1;bt.add(V.info.availableAudioStreams$.subscribe(M=>{if(!li&&M.length){let oe=fi(M);oe&&(V.setAudioStream(oe),li=!0)}}));let Ut=!1;bt.add(V.info.availableVideoStreams$.subscribe(M=>{if(!Ut&&M.length){let oe=fi(M);oe&&(V.setVideoStream(oe),Ut=!0)}}));let ci=Re(void 0),Fi=Ct(V.info.isAutoQualityEnabled$,M=>M&&ci.set(void 0)),Ai=Ct(V.info.currentQuality$,()=>ci.set(void 0)),ri=Bi([ci,Ai],([M,oe])=>M!=null?M:oe),di=Bi([Di,kn,Fi,ri,hi],([M,oe,Pe,Ue,pt])=>{let Lt=[];pt!==wn.VideoFormat.MPEG&&Lt.push({value:"auto",displayValue:at("auto_quality_option"),selected:Pe});let $t=M.filter(At=>At!==gt.VideoQuality.INVARIANT);for(let At of $t){let Qe=oe[At],yn=At===gt.VideoQuality.INVARIANT?at("auto_quality_option"):At;Lt.push({value:At,displayValue:`${yn}${Qe?Dm(Qe):""}`,selected:Pe?!1:At===Ue})}return Lt}),$i=Ct(V.info.currentPlaybackRate$),en=Bi([$i,Xi,qi],([M,oe,Pe])=>{let Ue=Pe||k?1:Y.controls.playbackRateMin,pt=oe?1:Y.controls.playbackRateMax,Lt=Y.controls.playbackRateStep,$t=[];for(let At=Ue;At<=pt;At+=Lt)$t.push({value:At,displayValue:At===1?at("playback_rate_1"):at("playback_rate",{multiplier:At.toString(10)}),selected:M===At});return $t}),Cn=Y.features.subtitles?Ct(V.info.availableTextTracks$):Hn([]),tn=Bi([Cn],([M],oe)=>{let Pe=[],Ue=[];for(let pt of M)pt.url&&Pe.push(fetch(pt.url));Promise.allSettled(Pe).then(pt=>{for(let[Lt,$t]of pt.entries())$t.status==="fulfilled"&&$t.value.text().then(At=>{let Qe=new Nm,yn=M[Lt].language,qo=!!M[Lt].isAuto,ol=Qe.parse(At);yn&&ol&&Ue.push({lang:yn,subtitles:ol,isAuto:qo}),Lt===pt.length-1&&oe(Ue)})})}),Qt={displayValue:at("subtitles_off"),value:"off"},Yt=Re(ut({},Qt)),Mi=Bi([tn,Yt,tn],([M,oe])=>{if((M==null?void 0:M.length)>0){let Pe=[Rt(ut({},Qt),{selected:(oe==null?void 0:oe.value)===Qt.value})];for(let{lang:Ue,isAuto:pt}of M)Jo[Ue]&&Pe.push({displayValue:pt?at("subtitles_auto",{language:Jo[Ue]}):Jo[Ue],value:Ue,selected:(oe==null?void 0:oe.value)===Ue,isAuto:pt});return Pe}else return[]}),mi=Bi([Dt,Yt,tn],([M,oe,Pe])=>{if(oe&&oe.value!==Qt.value)return qm(M,oe,Pe)}),nn=Bi([mi],([M])=>M!=null&&M.texts?M.texts:[]),Hi=Re(!0),dn=Bi([xe,ui,yt,_i],([M,oe,Pe,Ue])=>{var At;let pt=(At=M==null?void 0:M.end)!=null?At:0;if(!Ue)return pt/oe;let $t=-Pe+Ue-oe;return(pt-$t)/oe}),Vi=Ct(V.info.availableSources$),zi=Bi([Vi],([M])=>Object.keys((M==null?void 0:M[wn.VideoFormat.MPEG])||{}).length>0),ot=()=>{var Pe,Ue,pt;let M=Object.keys(((Ue=(Pe=V.info.availableSources$)==null?void 0:Pe.getValue())==null?void 0:Ue[wn.VideoFormat.MPEG])||{}),oe=(0,gt.getHighestQuality)(M)||gt.VideoQuality.Q_144P;return(pt=U.sources[wn.VideoFormat.MPEG])==null?void 0:pt[oe]},pi=()=>{var oe;let M=ot();M?kc(M,((oe=U==null?void 0:U.meta)==null?void 0:oe.title)||"video"):P({message:"There is no URL for download video"})},si=()=>{P({message:"toggle muted"});let M=V.info.muted$.getValue(),Ue=!(V.info.volume$.getValue()===0||M);Ki(Ue)},Fe=()=>{kt.ui.settingsMenuVisible.set(!1)},Ui=M=>{kt.ui.settingsMenuOpenedByKeyboard.set(!!M),kt.ui.settingsMenuVisible.set(!0)},Sn=M=>{tt(kt.ui.settingsMenuVisible)?Fe():Ui(M)},on=(M,oe=M,Pe=!1)=>{var Lt,$t,At;let Ue=!Pe,pt=V.info.muted$.getValue();P({message:`set volume, volume: ${M}, preferredVolume: ${oe}, internalCall: ${Ue}`}),V.setVolume(M),X.setVolume(M),Ue&&((Lt=a==null?void 0:a.onVolumeChange)==null||Lt.call(a,M)),Hs(oe),pt?(V.setMuted(!1),Ue&&(($t=a==null?void 0:a.onUnmute)==null||$t.call(a)),mr(!1)):!pt&&M===0&&(V.setMuted(!0),Ue&&((At=a==null?void 0:a.onMute)==null||At.call(a)),mr(!0))},Ki=(M,oe=!1)=>{var pt,Lt,$t,At;let Pe=!oe,Ue=V.info.volume$.getValue();if(P({message:`set muted, currentVolume: ${Ue}, mute: ${M}, internalCall: ${Pe}`}),V.setMuted(M),X.setVolume(M?0:Ue),mr(M),Pe&&(M?(pt=a==null?void 0:a.onMute)==null||pt.call(a):(Lt=a==null?void 0:a.onUnmute)==null||Lt.call(a)),Ue===0){let Qe=($t=dr())!=null?$t:Y.volumeDefault;Qe===0&&(Qe=Y.volumeMinRestore,Hs(Qe)),V.setVolume(Qe),X.setVolume(Qe),Pe&&((At=a==null?void 0:a.onVolumeChange)==null||At.call(a,Qe))}},ln=Re(!1),rn=M=>{ln.set(M),V.setLooped(M)};rn(L);let Tn=()=>{V.prepare()},Mn=()=>{if((0,gt.assertNonNullable)(kt),tt(kt.ui.controls.disabledControls$).has("PLAY_BUTTON"))return;if(P({message:"toggle play"}),tt(kt.playerPhase)==="ads"){X.togglePlay();return}let oe=()=>{var Ue;P({message:"toggle play, call player.play"}),V.play(),(Ue=a==null?void 0:a.onPlay)==null||Ue.call(a)},Pe=()=>{var Ue;P({message:"toggle play, call player.pause"}),V.pause(),(Ue=a==null?void 0:a.onPause)==null||Ue.call(a)};if(V.info.isEnded$.getValue()){if(P({message:"toggle play, video ended, seek to 0"}),K.next(),ve.next(po.SeekAction.REWIND),k){v==null||v();return}V.seekTime(0),oe()}else V.info.playbackState$.getValue()!==wn.PlaybackState.PLAYING?oe():Pe()},Jt=M=>{P({message:`set quality, quality: ${M}`}),V.setAutoQuality(M==="auto"),M!=="auto"?(Ac(e,M),ci.set(M),V.setQuality(M)):zs()},ji=M=>{P({message:`set trafficSavingEnabled, value: ${M}`}),V.setAutoQualityLimits({max:M?Y.trafficSavingLimit:void 0}),Bc(M)},mn=M=>{V.setPlaybackRate(M),Y.features.saveRate&&le&&!V.info.isLive$.getValue()&&qc(M)},Dn=()=>{let M=tt(en),oe=M.findIndex(({selected:Ue})=>Ue);if(oe===M.length-1)return;let Pe=M[oe+1];mn(Pe.value)},pn=()=>{let M=tt(en),oe=M.findIndex(({selected:Ue})=>Ue);if(oe===0)return;let Pe=M[oe-1];mn(Pe.value)},_n=M=>{M&&M.value!==Qt.value&&et.next(M.isAuto?M.value+"_auto":M.value),Yt.set(M)},Pn=()=>{let M=tt(Mi),oe=tt(Yt),Pe=tt(Je);if((oe==null?void 0:oe.value)===Qt.value){let Ue=M.filter(pt=>pt.value!==Qt.value).find(pt=>pt.value===Pe)||M[1];_n(Ue!=null?Ue:ut({},Qt))}else _n(Rt(ut({},Qt),{selected:!1}))},xt=(M,oe,Pe=!0)=>{if(P({message:`seek to time, time: ${M}`}),ve.next(oe),V.info.isLive$.getValue()){let Ue=V.info.duration$.getValue(),pt=Math.min(0,Ue+M);V.seekTime(pt,Pe)}else{if(I!=null&&I.getValue())return;V.seekTime(eo(M),Pe)}},ni=M=>{P({message:`seek to episode start time: ${M}`}),xt(M,po.SeekAction.EPISODE,!0)},Nn=(M,oe)=>{P({message:`seek to percent, percent: ${M}`});let Pe=Math.round(tt(ui)*M);xt(Pe,oe,!1)},qn=M=>{P({message:`seek external, time: ${M}`}),ve.next(po.SeekAction.UNKNOWN),V.seekTime(V.info.isLive$.getValue()?-M:M)},On=M=>{var oe,Pe;P({message:`set auto quality limitation. Max: ${(oe=M.max)!=null?oe:"none"}. Min: ${(Pe=M.min)!=null?Pe:"none"}`}),V.setAutoQualityLimits(M)},Xt=M=>{P({message:`seek external to episode start time: ${M}`}),xt(M,po.SeekAction.EPISODE,!0)},jn=M=>{P({message:`set playback rate to: ${M}`}),V.setPlaybackRate(M)},Vn=Re(void 0),hn=Re(!1),Wn=M=>{P({message:`start scrubbing, progress: ${M}`}),hn.set(!0),Ln(M)},Ln=M=>{Vn.set(M)},In,Wi,gn=()=>{Vn.set(void 0),hn.set(!1)},En=()=>{clearTimeout(Wi),clearTimeout(In),In=window.setTimeout(()=>{gn()},500),we==null||we.removeEventListener("seeked",En)},ie=M=>{P({message:`complete scrubbing, progress: ${M}`}),Nn(M,po.SeekAction.SLIDER),tt(kt.ui.isMobile)&&tt(kt.state.currentFormat$)===wn.VideoFormat.HLS?(we==null||we.addEventListener("seeked",En),Wi=window.setTimeout(()=>{En()},300)):gn()},x=Bi([Dt,ui,Vn],([M,oe,Pe],Ue)=>{Ue((0,gt.isNonNullable)(Pe)?Pe*oe:M)}),mt=Re({width:0,height:0}),Wt=Bi([mt],([{width:M}],oe)=>{let Pe=nm(M);oe(Pe)}),bn=Re(!1),wi=Bi([Wt,bn],([M,oe])=>oe?A.filter(Pe=>!Pe.hideOnMobile):A.filter(Pe=>{var Ue;return!((Ue=Pe.hideOnDesktopGridTypes)!=null&&Ue.includes(M))})),Yn=Bi([bn,rt],([M,oe],Pe)=>{Pe(M&&oe)}),oo=()=>{ve.next(po.SeekAction.LIVE),P({message:"switch to active live"}),V.seekTime(0),V.info.playbackState$.getValue()!==wn.PlaybackState.PLAYING&&kt.actions.internal.togglePlay()},Rn=()=>X.skip(),lo=(M=!0)=>{(0,gt.assertNonNullable)(kt),P({message:`switch from ads to video, callPlay: ${M}`}),Ge.set("video"),M&&V.play()},te=()=>{(0,gt.assertNonNullable)(kt),P({message:"switch from video to ads"}),kt.actions.internal.pause(),ce(),Ge.set("ads")},Mo=M=>{(0,gt.assertNonNullable)(kt);let oe=M?"waitingLive":"thumb";Ge.set(oe)},Dl=M=>{(0,gt.assertNonNullable)(kt);let oe=M?"waitingRecord":"thumb";Ge.set(oe)},Vo=()=>((0,gt.assertNonNullable)(kt),yc(V,U,kt)),Lo=()=>((0,gt.assertNonNullable)(kt),wc(V,U,kt)),ro=()=>we,ho=()=>{P({message:"toggle chromecast"}),V.toggleChromecast()},Ro=M=>{var Pe;(0,gt.assertNonNullable)(kt);let oe=!M;if(tt(kt.playerPhase)==="ads"){P({message:`pause ads, internalCall: ${oe}`}),X.pause();return}P({message:`pause video, internalCall: ${oe}`}),oe&&((Pe=a==null?void 0:a.onPause)==null||Pe.call(a)),V.pause()},tl=M=>{var Pe;(0,gt.assertNonNullable)(kt);let oe=!M;if(tt(kt.playerPhase)==="ads"){P({message:`play ads, internalCall: ${oe}`}),X.play();return}P({message:`play video, internalCall: ${oe}`}),oe&&((Pe=a==null?void 0:a.onPlay)==null||Pe.call(a)),V.play()},go=(M,oe)=>{(0,gt.assertNonNullable)(kt),P({message:`first start, show ads: ${M}, internalCall: ${!oe}`}),M?Ge.set("ads"):(Ge.set("video"),oe?V.play():kt.actions.internal.togglePlay())},bo=()=>(P({message:"getting time codes"}),u),Bo=()=>{let M=bo();if(!M||[0,1].includes(M.length))return;let oe=V.info.position$.getValue();return M.find(Pe=>Pe.time>oe)},Do=M=>{let oe=M;oe||(oe=Bo()),oe&&(P({message:"seek to next episode"}),xt(oe.time,po.SeekAction.EPISODE,!0))},No=()=>{let M=bo();if(!M||[0,1].includes(M.length))return;let oe=V.info.position$.getValue(),Pe=M.findIndex(pt=>pt.time>oe),Ue=Pe===-1?M.length-2:Pe-2;if(!(Ue<0))return M[Ue]},il=M=>{let oe=M;oe||(oe=No()),oe&&(P({message:"seek to prev episode"}),xt(oe.time,po.SeekAction.EPISODE,!0))},nl=()=>(P({message:"getting preview thumbs data"}),c),Z=()=>ct(void 0,null,function*(){F!=null&&F.isActive()?yield F==null?void 0:F.remove():yield F==null?void 0:F.request()}),Et=(M=-90)=>{ke.update(oe=>oe+M)},Gi=Re([]);y==null||y.subscribe(M=>{let oe=[];for(let Pe=0;Pe<M.length;Pe++){let{range:[Ue,pt],subjects:Lt}=M[Pe];Pe===0&&Ue!==0&&oe.push({time:0,text:"",interactive:!1,completed:!0}),oe.push({time:Ue/1e3,text:"",interactive:!0,completed:!Lt.length}),pt!==1/0&&oe.push({time:pt/1e3,text:"",interactive:!1,completed:!0})}Gi.set(oe)});let vn=Re(!1);I==null||I.subscribe(M=>{M&&tt(hn)&&gn()});let eo=M=>{if(!k)return M;let oe=tt(Gi),Pe=tt(ui),pt=tt(yt)/Pe,Lt=oe.find($t=>$t.interactive&&!$t.completed&&$t.time>pt);return typeof(Lt==null?void 0:Lt.time)=="number"?Math.min(M,Lt.time-.05):M},Gn=()=>{kt.ui.episodes.panelOpened$.set(!1)},so=()=>{clearTimeout(Wi),clearTimeout(In),bt.unsubscribe(),Mt.unsubscribe(),V.destroy(),X.destroy(),R==null||R.destroy(),se==null||se.destroy(),Oe.unsubscribe(),_t==null||_t.disconnect(),_t=null},kt={interfaceLanguage$:Je,initVideo:Ne,videoId:e,isClip:t,playerPhase:Ke,vsid:Xe,state:{positionExact$:Dt,positionWithScrubbing$:x,duration$:ui,playbackState$:We,isPlaying$:Ei,isLoaderVisible:fn,bufferedProgress$:dn,isLive$:ht,canChangePlaybackSpeed$:Gt,isActiveLive$:Xi,isOldestAvailableLive$:qi,isRewindableLive$:cn,isEnded$:lt,muted$:Yi,volume$:Nt,trafficSavingEnabled$:an,autoQualityLimitingAvailable$:ai,availableVideoStreams$:Oi,availableAudioStreams$:Ji,videoStream$:xi,audioStream$:ii,currentQuality$:ri,isAutoQualityEnabled$:Fi,availableQualities$:di,currentPlaybackRate$:$i,availablePlaybackRates$:en,currentSubtitle$:Yt,availableSubtitlesList$:Mi,currentSubtitleCaptions$:nn,isAutoSubtitleCaptionVisible$:Hi,chromecastState$:Ti,chromecastDeviceName$:un,chromecastConnected$:It,currentFormat$:hi,throughputEstimation$:Ni,videoBitrate$:gi,videoSize$:Pi,errorLog$:it,crashed$:rt,isAudioAvailable$:Ii,isAudioDisabled:!!r,canDownload:Y.features.download&&!!l,availableSources$:Vi,hasMpegSources$:zi,isInteractive:k,showInteractiveGraph:Y.features.interactiveGraph,showSeekToInteractive:Y.features.seekToInteractive,showPlayPrevChapter:Y.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:Y.features.interactiveTimeIndicator&&!!tt(Gi).length,interactiveEpisodes$:Gi,isInteractiveTime$:I?Ct(I):Re(!1),graphIsOpened$:Re(!1),isInteractiveExpectation$:vn,hasInteractiveBranches:b,playPrevChapterDisabledTooltip:E,looped$:ln,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),timeline:Re(void 0),additionalButtons:A.length?A.reduce(M=>[...M,Re(void 0)],[]):[],disabledControls$:$e},modals:{hotKeyMap:{show:Re(!1),data:Re({title:"",closeBtnText:"",groups:[]})}},isFullscreen:He,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:mt,isMobile:bn,mobileNotReportControlHidden$:Yn,mobileUnmuteButtonExpanded:Re(!1),mobileUnmuteButtonVisible:Re(!1),icon3DVideoVisible:Re(!1),settingsMenuVisible:Re(!1),settingsMenuOpenedByKeyboard:Re(!1),scrubbingInProgress:hn,is3DVideo:Re(!1),isPictureInPictureActive$:_e,pictureInPictureType$:Hn(J),clientInfo$:Hn(Ze),currentGridType$:Wt,additionalButtons$:wi,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:F,annotationsApi:ne},actions:{internal:{preload:Tn,firstStart:M=>go(M,!1),pause:()=>Ro(!1),togglePlay:Mn,toggleMuted:si,toggleSettingsMenu:Sn,openSettingsMenu:Ui,closeSettingsMenu:Fe,setVolume:on,setVideoStream:vi,setAudioStream:yi,setQuality:Jt,setTrafficSavingEnabled:M=>ji(M),setPlaybackRate:mn,incrementPlaybackRate:Dn,decrementPlaybackRate:pn,setSubtitle:_n,toggleSubtitle:Pn,togglePictureInPicture:Z,startScrubbing:Wn,progressScrubbing:Ln,completeScrubbing:ie,toggleChromecast:ho,switchToActiveLive:oo,switchFromAdsToVideo:lo,switchFromVideoToAds:te,skipAd:Rn,setWaitingLive:Mo,setWaitingRecord:Dl,getDebugTextData:Vo,getDebugPanelData:Lo,getVideoElement:ro,seekTime:(M,oe,Pe)=>xt(M,oe,Pe),clearDelayedBufferingCheckTimeout:Zi,seekEpisodeStartTime:ni,seekToPercent:Nn,getNextEpisode:Bo,seekToNextEpisode:Do,getPrevEpisode:No,seekToPrevEpisode:il,startLogging:St,stopLogging:je,startCameraManualRotation:jt,stopCameraManualRotation:Vt,moveCameraFocusPX:Pt,holdCamera:oi,releaseCamera:Bt,getVideoEpisodes:bo,getPreviewThumbsData:nl,downloadVideo:pi,addLanguage:js,setLanguage:Ce,nextMovie:ze,videoRotate:Et,correctSeekTimeToInteractive:eo,replayInteractive:v,setLooped:rn},external:{firstStart:M=>go(M,!0),play:()=>tl(!0),pause:()=>Ro(!0),seekTime:M=>qn(M),seekEpisodeStartTime:M=>Xt(M),setPlaybackRate:M=>jn(M),setAutoQualityLimits:M=>On(M),setMuted:M=>Ki(M,!0),setVolume:M=>on(M,M,!0),returnFocusToEpisodes:Gn}},callbacks:a,setUiCallbacks:M=>{qe=ut({},M)},getAdmanWrapper:()=>X,getLogger:()=>ee,destroy:so};return kt};var us=(i,e,t,n)=>{var a;if(!i)return;let o=["tooltipPointerOffsetX","disabledControls$","additionalButtons"],r=["interactiveTimeIndicator"],l=i.getBoundingClientRect();for(let[s,u]of Object.entries(e))if(!["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(s)){let c=(a=t[s])==null?void 0:a.getBoundingClientRect(),m=(n||r.includes(s))&&!!c&&!!(c.right-c.left);u.set({positionStartX:0,positionEndX:0,left:m?Math.round(c.left-l.left):0,right:m?Math.round(c.right-l.left):0,top:m?Math.round(c.top-l.top):0,bottom:m?Math.round(c.bottom-l.top):0,isDisplayed:m})}};var fs=(i,e,t)=>ct(void 0,null,function*(){yield Xn(),e&&t&&(t.focus(),i.set(!1))});function n3(i){let e,t,n,o=i[2].default,r=Ie(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=re(a,l[s]);return{c(){e=q("svg"),r&&r.c(),t=q("path"),f(t,"fill","#fff"),f(t,"d","M18 10c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m-6 4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m-6 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"),be(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ae(r,o,s,s[1],n?Ee(o,s[1],u,null):Me(s[1]),null),be(e,a=Le(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 o3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var ju=class extends W{constructor(e){super(),Q(this,e,o3,n3,j,{})}},zm=ju;function l3(i){let e,t;return e=new zm({}),{c(){N(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function r3(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:[l3]},$$scope:{ctx:i}};return i[2]!==void 0&&(r.ref=i[2]),e=new wt({props:r}),pe.push(()=>De(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){B(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],Be(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){D(e,l)}}}function s3(i,e,t){let n,{disabled:o=!1}=e,{ariaLabel:r=""}=e,l=st(),a=l.ui.contextMenu.visible$;z(i,a,I=>t(3,n=I));let s=l.ui.contextMenu.openedByBtnKeyboard$,u=l.ui.contextMenu.showContextMenuBtn$,c=l.ui.contextMenu.position$,m=l.ui.contextMenu.btnRef$,h,w=I=>{let v=gl(I),b=u1(h);c.set(b),s.set(v),a.set(!n)},g=()=>{u.set(!0)},k=()=>{u.set(!1)};function y(I){h=I,t(2,h)}return i.$$set=I=>{"disabled"in I&&t(0,o=I.disabled),"ariaLabel"in I&&t(1,r=I.ariaLabel)},i.$$.update=()=>{if(i.$$.dirty&4)e:h&&m.set(h)},[o,r,h,n,a,w,g,k,y]}var Wu=class extends W{constructor(e){super(),Q(this,e,s3,r3,j,{disabled:0,ariaLabel:1})}},Um=Wu;function a3(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 u3(i){let e,t;return e=new zr({props:{completed:!0}}),{c(){N(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p:he,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function f3(i){let e,t,n,o,r,l,a,s,u,c;function m(w){i[22](w)}let h={tooltipContent:G("tooltip_interactive_interaction_time_indicator"),tooltipActive:i[5],initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:i[13],$$slots:{default:[u3]},$$scope:{ctx:i}};return i[0]!==void 0&&(h.ref=i[0]),t=new Kt({props:h}),pe.push(()=>De(t,"ref",m)),t.$on("click",i[14]),{c(){e=T("div"),N(t.$$.fragment),o=O(),r=T("div"),l=O(),a=T("div"),f(r,"class","ref-block svelte-17imlp9"),H(r,"hidden",i[1]),f(a,"class","pulse svelte-17imlp9"),H(a,"paused",i[4]),f(e,"class","interactive-episode-icon-animated svelte-17imlp9"),H(e,"mobile",i[2]),H(e,"fullscreen",i[6]),H(e,"invisible",i[1])},m(w,g){S(w,e,g),B(t,e,null),p(e,o),p(e,r),i[23](r),p(e,l),p(e,a),i[24](a),s=!0,u||(c=[me(e,"mousemove",ft(i[21])),me(e,"mouseleave",i[15])],u=!0)},p(w,g){let k={};g[0]&32&&(k.tooltipActive=w[5]),g[1]&1&&(k.$$scope={dirty:g,ctx:w}),!n&&g[0]&1&&(n=!0,k.ref=w[0],Be(()=>n=!1)),t.$set(k),(!s||g[0]&2)&&H(r,"hidden",w[1]),(!s||g[0]&16)&&H(a,"paused",w[4]),(!s||g[0]&4)&&H(e,"mobile",w[2]),(!s||g[0]&64)&&H(e,"fullscreen",w[6]),(!s||g[0]&2)&&H(e,"invisible",w[1])},i(w){s||(d(t.$$.fragment,w),s=!0)},o(w){_(t.$$.fragment,w),s=!1},d(w){w&&C(e),D(t),i[23](null),i[24](null),u=!1,nt(c)}}}function c3(i,e,t){var U;let n,o,r,l,a,s,{ref:u=void 0}=e,c,m=st(),h=Qn(),{interactiveControlsOpacity$:w}=h;z(i,w,we=>t(18,o=we));let g=m.ui.isMobile;z(i,g,we=>t(2,a=we));let k=m.ui.isFullscreen;z(i,k,we=>t(6,s=we));let y=m.state.isInteractiveTime$;z(i,y,we=>t(19,r=we));let I=h.showInteractiveTimeIndicatorTooltip$;z(i,I,we=>t(17,n=we));let v=m.ui.controlsVisible;z(i,v,we=>t(20,l=we));let b=(U=m.callbacks)==null?void 0:U.onInteractiveTimeIndicatorClick,E,A,L,R=()=>{t(4,L=!0)},le=()=>{ae(),c==null||c.addEventListener("animationiteration",R,{once:!0})},ae=()=>{t(4,L=!1),c==null||c.removeEventListener("animationiteration",R)},Y=we=>{I.set(we)},V,ee=()=>{A||(I.set(!0),b==null||b())};Zn(()=>{I.clearTimeout(),ae()});let X=()=>{I.set(!1)};function se(we){Fn.call(this,i,we)}function F(we){u=we,t(0,u)}function ne(we){pe[we?"unshift":"push"](()=>{u=we,t(0,u)})}function P(we){pe[we?"unshift":"push"](()=>{c=we,t(3,c)})}return i.$$set=we=>{"ref"in we&&t(0,u=we.ref)},i.$$.update=()=>{if(i.$$.dirty[0]&1048580)e:t(16,E=!a&&l);if(i.$$.dirty[0]&851968)e:t(1,A=!r||!!o||E);if(i.$$.dirty[0]&2)e:t(4,L=A);if(i.$$.dirty[0]&131074)e:t(5,V=n&&!A);if(i.$$.dirty[0]&131072)e:n?le():ae()},[u,A,a,c,L,V,s,w,g,k,y,I,v,Y,ee,X,E,n,o,r,l,se,F,ne,P]}var Gu=class extends W{constructor(e){super(),Q(this,e,c3,f3,j,{ref:0},a3,[-1,-1])}},cs=Gu;function m3(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 Km(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 jm(i){let e,t,n;function o(l){i[174](l)}let r={disabled:!i[9],tooltipContent:G("tooltip_previous"),$$slots:{default:[p3]},$$scope:{ctx:i}};return i[23].prevButton!==void 0&&(r.ref=i[23].prevButton),e=new Kt({props:r}),pe.push(()=>De(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){B(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,Be(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){D(e,l)}}}function p3(i){let e,t;return e=new Pl({props:{click:i[12],type:"prev",disabled:!i[9],isMobile:!1}}),{c(){N(e.$$.fragment)},m(n,o){B(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){D(e,n)}}}function Wm(i){let e,t,n;function o(l){i[175](l)}let r={disabled:i[74],tooltipContent:G("tooltip_restart"),$$slots:{default:[_3]},$$scope:{ctx:i}};return i[23].replayButton!==void 0&&(r.ref=i[23].replayButton),e=new Kt({props:r}),pe.push(()=>De(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){B(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,Be(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){D(e,l)}}}function _3(i){let e,t;return e=new Yl({props:{click:i[128],disabled:i[74]}}),{c(){N(e.$$.fragment)},m(n,o){B(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){D(e,n)}}}function Gm(i){let e,t,n;function o(l){i[177](l)}let r={tooltipContent:i[47],disabled:i[75],$$slots:{default:[h3]},$$scope:{ctx:i}};return i[23].playButton!==void 0&&(r.ref=i[23].playButton),e=new Kt({props:r}),pe.push(()=>De(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){B(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,Be(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){D(e,l)}}}function h3(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 Ql({props:r}),pe.push(()=>De(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){B(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],Be(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){D(e,l)}}}function Qm(i){let e,t,n;function o(l){i[178](l)}let r={disabled:!i[8],tooltipContent:G("tooltip_next"),$$slots:{default:[g3]},$$scope:{ctx:i}};return i[23].nextButton!==void 0&&(r.ref=i[23].nextButton),e=new Kt({props:r}),pe.push(()=>De(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){B(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,Be(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){D(e,l)}}}function g3(i){let e,t;return e=new Pl({props:{click:i[11],type:"next",disabled:!i[8],isMobile:!1}}),{c(){N(e.$$.fragment)},m(n,o){B(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){D(e,n)}}}function b3(i){let e,t,n,o,r=i[121]&&v3(i),l=i[120]&&w3(i),a=i[119]&&C3(i);return{c(){r&&r.c(),e=O(),l&&l.c(),t=O(),a&&a.c(),n=dt()},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 v3(i){let e,t,n;function o(l){i[179](l)}let r={disabled:i[73],tooltipContent:G("tooltip_interactive_go_back"),disabledTooltipContent:G(i[124]),$$slots:{default:[y3]},$$scope:{ctx:i}};return i[23].playPrevChapterButton!==void 0&&(r.ref=i[23].playPrevChapterButton),e=new Kt({props:r}),pe.push(()=>De(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){B(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,Be(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){D(e,l)}}}function y3(i){let e,t;return e=new is({props:{disabled:i[73],click:i[17]}}),{c(){N(e.$$.fragment)},m(n,o){B(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){D(e,n)}}}function w3(i){let e,t,n;function o(l){i[180](l)}let r={disabled:i[76],tooltipContent:G("tooltip_interactive_seek"),disabledTooltipContent:G(i[78]),$$slots:{default:[k3]},$$scope:{ctx:i}};return i[23].seekToInteractiveButton!==void 0&&(r.ref=i[23].seekToInteractiveButton),e=new Kt({props:r}),pe.push(()=>De(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[2]&16384&&(s.disabled=l[76]),a[2]&65536&&(s.disabledTooltipContent=G(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,Be(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){D(e,l)}}}function k3(i){let e,t;return e=new $r({props:{disabled:i[76],click:i[15]}}),{c(){N(e.$$.fragment)},m(n,o){B(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){D(e,n)}}}function C3(i){let e,t,n;function o(l){i[181](l)}let r={tooltipContent:i[48],disabled:i[77],$$slots:{default:[S3]},$$scope:{ctx:i}};return i[23].interactiveGraphButton!==void 0&&(r.ref=i[23].interactiveGraphButton),e=new Kt({props:r}),pe.push(()=>De(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){B(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,Be(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){D(e,l)}}}function S3(i){let e,t;return e=new es({props:{click:i[16],graphIsOpened:i[31],disabled:i[77]}}),{c(){N(e.$$.fragment)},m(n,o){B(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){D(e,n)}}}function Ym(i){let e,t,n;function o(l){i[182](l)}let r={tooltipContent:i[50],$$slots:{default:[T3]},$$scope:{ctx:i}};return i[23].liveButton!==void 0&&(r.ref=i[23].liveButton),e=new Kt({props:r}),pe.push(()=>De(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){B(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,Be(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){D(e,l)}}}function T3(i){let e,t;return e=new Yr({props:{isActiveLive:i[21],isMobile:!1,ariaLabel:i[50]}}),{c(){N(e.$$.fragment)},m(n,o){B(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){D(e,n)}}}function Zm(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 Fr({props:r}),pe.push(()=>De(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){B(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,Be(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){D(e,l)}}}function Xm(i){let e,t;return e=new xr({props:{position:i[80],duration:i[82],timeCodes:i[101]}}),{c(){N(e.$$.fragment)},m(n,o){B(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){D(e,n)}}}function P3(i){let e,t,n=i[20]&&Xm(i);return{c(){n&&n.c(),e=dt()},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=Xm(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ue(),_(n,1,1,()=>{n=null}),fe())},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&C(e),n&&n.d(o)}}}function I3(i){var n;let e,t;return e=new ns({props:{iconUrl:i[210],ariaLabel:(n=i[211])!=null?n:i[214],testId:i[212],onClick:i[213]}}),{c(){N(e.$$.fragment)},m(o,r){B(e,o,r),t=!0},p(o,r){var a;let l={};r[0]&268435456&&(l.iconUrl=o[210]),r[0]&268435456&&(l.ariaLabel=(a=o[211])!=null?a:o[214]),r[0]&268435456&&(l.testId=o[212]),r[0]&268435456&&(l.onClick=o[213]),e.$set(l)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){_(e.$$.fragment,o),t=!1},d(o){D(e,o)}}}function Jm(i){let e,t;return e=new Kt({props:{tooltipContent:i[214],width:40,$$slots:{default:[I3]},$$scope:{ctx:i}}}),{c(){N(e.$$.fragment)},m(n,o){B(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){D(e,n)}}}function xm(i){let e,t,n;function o(l){i[186](l)}let r={disabled:!i[6],tooltipContent:i[51],disabledTooltipContent:"",$$slots:{default:[E3]},$$scope:{ctx:i}};return i[23].vkLogo!==void 0&&(r.ref=i[23].vkLogo),e=new Kt({props:r}),pe.push(()=>De(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){B(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,Be(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){D(e,l)}}}function E3(i){let e,t;return e=new Wr({props:{click:i[86],targetUrl:i[7],logoClickable:i[6]}}),{c(){N(e.$$.fragment)},m(n,o){B(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){D(e,n)}}}function A3(i){let e,t;return e=new lm({props:{click:i[127]}}),{c(){N(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p:he,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function $m(i){let e,t,n;function o(l){i[188](l)}let r={tooltipContent:i[52],$$slots:{default:[M3]},$$scope:{ctx:i}};return i[23].subtitles!==void 0&&(r.ref=i[23].subtitles),e=new Kt({props:r}),pe.push(()=>De(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){B(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,Be(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){D(e,l)}}}function M3(i){let e,t;return e=new Ud({props:{isSubtitlesEnabled:i[18],click:i[87]}}),{c(){N(e.$$.fragment)},m(n,o){B(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){D(e,n)}}}function e0(i){var a;let e,t,n,o;function r(s){i[189](s)}let l={supportLink:i[10],playerControlsHeight:(a=i[46])==null?void 0:a.clientHeight,returnFocus:i[14]};return i[24]!==void 0&&(l.ref=i[24]),t=new Or({props:l}),pe.push(()=>De(t,"ref",r)),{c(){e=T("div"),N(t.$$.fragment),f(e,"class","settings-menu svelte-st0uzk")},m(s,u){S(s,e,u),B(t,e,null),o=!0},p(s,u){var m;let c={};u[0]&1024&&(c.supportLink=s[10]),u[1]&32768&&(c.playerControlsHeight=(m=s[46])==null?void 0:m.clientHeight),u[0]&16384&&(c.returnFocus=s[14]),!n&&u[0]&16777216&&(n=!0,c.ref=s[24],Be(()=>n=!1)),t.$set(c)},i(s){o||(d(t.$$.fragment,s),o=!0)},o(s){_(t.$$.fragment,s),o=!1},d(s){s&&C(e),D(t)}}}function t0(i){let e,t,n;function o(l){i[191](l)}let r={tooltipContent:i[27]?void 0:G("tooltip_settings_off"),$$slots:{default:[V3]},$$scope:{ctx:i}};return i[23].settings!==void 0&&(r.ref=i[23].settings),e=new Kt({props:r}),pe.push(()=>De(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[0]&134217728&&(s.tooltipContent=l[27]?void 0:G("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,Be(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){D(e,l)}}}function V3(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}),pe.push(()=>De(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};!t&&a[0]&33554432&&(t=!0,s.ref=l[25],Be(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){D(e,l)}}}function L3(i){let e,t,n;function o(l){i[192](l)}let r={className:i[41]?"":"out-of-view",tooltipContent:i[49],$$slots:{default:[R3]},$$scope:{ctx:i}};return i[23].context!==void 0&&(r.ref=i[23].context),e=new Kt({props:r}),pe.push(()=>De(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){B(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,Be(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){D(e,l)}}}function R3(i){let e,t;return e=new Um({props:{ariaLabel:i[49]}}),{c(){N(e.$$.fragment)},m(n,o){B(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){D(e,n)}}}function i0(i){let e,t,n;function o(l){i[193](l)}let r={tooltipContent:i[53],$$slots:{default:[B3]},$$scope:{ctx:i}};return i[23].fullscreen!==void 0&&(r.ref=i[23].fullscreen),e=new Kt({props:r}),pe.push(()=>De(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){B(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,Be(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){D(e,l)}}}function B3(i){let e,t;return e=new Kr({props:{click:i[13],isFullscreen:i[30]}}),{c(){N(e.$$.fragment)},m(n,o){B(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){D(e,n)}}}function n0(i){let e,t,n;function o(l){i[194](l)}let r={tooltipContent:i[54],$$slots:{default:[D3]},$$scope:{ctx:i}};return i[23].chromecast!==void 0&&(r.ref=i[23].chromecast),e=new Kt({props:r}),pe.push(()=>De(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){B(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,Be(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){D(e,l)}}}function D3(i){let e,t;return e=new Gr({props:{isMobile:!1,state:i[29],click:i[126]}}),{c(){N(e.$$.fragment)},m(n,o){B(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){D(e,n)}}}function N3(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 cs({props:r}),pe.push(()=>De(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};!t&&a[0]&8388608&&(t=!0,s.ref=l[23].interactiveTimeIndicator,Be(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){D(e,l)}}}function q3(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,g,k,y,I,v,b,E,A,L,R,le,ae,Y,V,ee,X,se,F;function ne(K){i[173](K)}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 Jr({props:P}),pe.push(()=>De(t,"ref",ne));let U=i[38]&&jm(i),we=i[35]&&Wm(i),qe=i[36]&&Gm(i),Ze=i[37]&&Qm(i),Xe=i[117]&&b3(i),He=!i[4]&&i[33]&&Ym(i),ye=i[19]&&Zm(i);function J(K){i[184](K)}let ke={className:"w-max",disabled:!i[20],tooltipContent:G("tooltip_episodes"),$$slots:{default:[P3]},$$scope:{ctx:i}};i[23].episodes!==void 0&&(ke.ref=i[23].episodes),g=new Kt({props:ke}),pe.push(()=>De(g,"ref",J));let it=Tt(i[28]),Oe=[];for(let K=0;K<it.length;K+=1)Oe[K]=Jm(Km(i,it,K));let rt=K=>_(Oe[K],1,1,()=>{Oe[K]=null}),Ce=i[43]&&!i[4]&&xm(i);function Je(K){i[187](K)}let at={$$slots:{default:[A3]},$$scope:{ctx:i}};i[23].volume!==void 0&&(at.ref=i[23].volume),A=new Kt({props:at}),pe.push(()=>De(A,"ref",Je));let Ge=i[40]&&$m(i),Ke=!i[83]&&!i[4]&&e0(i),$e=i[42]&&!i[4]&&t0(i),de=i[84].features.contextMenuButton&&L3(i),Ne=i[44]&&i0(i),Te=i[39]&&n0(i),ze=i[122]&&N3(i);return{c(){e=T("div"),N(t.$$.fragment),o=O(),r=T("div"),l=T("div"),U&&U.c(),a=O(),we&&we.c(),s=O(),qe&&qe.c(),u=O(),Ze&&Ze.c(),c=O(),Xe&&Xe.c(),m=O(),He&&He.c(),h=O(),ye&&ye.c(),w=O(),N(g.$$.fragment),I=O(),v=T("div");for(let K=0;K<Oe.length;K+=1)Oe[K].c();b=O(),Ce&&Ce.c(),E=O(),N(A.$$.fragment),R=O(),Ge&&Ge.c(),le=O(),Ke&&Ke.c(),ae=O(),$e&&$e.c(),Y=O(),de&&de.c(),V=O(),Ne&&Ne.c(),ee=O(),Te&&Te.c(),X=O(),ze&&ze.c(),se=dt(),f(l,"class","controls-left svelte-st0uzk"),Jn(()=>i[185].call(l)),f(v,"class","controls-right svelte-st0uzk"),f(r,"class","controls svelte-st0uzk"),f(e,"class","wrapper-bottom svelte-st0uzk"),H(e,"hidden",i[1]),H(e,"controls-hidden",!i[3]),H(e,"no-smooth",i[2])},m(K,ve){S(K,e,ve),B(t,e,null),p(e,o),p(e,r),p(r,l),U&&U.m(l,null),p(l,a),we&&we.m(l,null),p(l,s),qe&&qe.m(l,null),p(l,u),Ze&&Ze.m(l,null),p(l,c),Xe&&Xe.m(l,null),p(l,m),He&&He.m(l,null),p(l,h),ye&&ye.m(l,null),p(l,w),B(g,l,null),y=ll(l,i[185].bind(l)),p(r,I),p(r,v);for(let et=0;et<Oe.length;et+=1)Oe[et]&&Oe[et].m(v,null);p(v,b),Ce&&Ce.m(v,null),p(v,E),B(A,v,null),p(v,R),Ge&&Ge.m(v,null),p(v,le),Ke&&Ke.m(v,null),p(v,ae),$e&&$e.m(v,null),p(v,Y),de&&de.m(v,null),p(v,V),Ne&&Ne.m(v,null),p(v,ee),Te&&Te.m(v,null),i[195](r),i[196](e),S(K,X,ve),ze&&ze.m(K,ve),S(K,se,ve),F=!0},p(K,ve){let et={};ve[1]&16384&&(et.isHidden=!K[45]),ve[0]&16&&(et.isAds=K[4]),ve[0]&32&&(et.canRewindLive=K[5]),ve[1]&2&&(et.isRewindableLive=K[32]),!n&&ve[0]&8388608&&(n=!0,et.ref=K[23].timeline,Be(()=>n=!1)),t.$set(et),K[38]?U?(U.p(K,ve),ve[1]&128&&d(U,1)):(U=jm(K),U.c(),d(U,1),U.m(l,a)):U&&(ue(),_(U,1,1,()=>{U=null}),fe()),K[35]?we?(we.p(K,ve),ve[1]&16&&d(we,1)):(we=Wm(K),we.c(),d(we,1),we.m(l,s)):we&&(ue(),_(we,1,1,()=>{we=null}),fe()),K[36]?qe?(qe.p(K,ve),ve[1]&32&&d(qe,1)):(qe=Gm(K),qe.c(),d(qe,1),qe.m(l,u)):qe&&(ue(),_(qe,1,1,()=>{qe=null}),fe()),K[37]?Ze?(Ze.p(K,ve),ve[1]&64&&d(Ze,1)):(Ze=Qm(K),Ze.c(),d(Ze,1),Ze.m(l,c)):Ze&&(ue(),_(Ze,1,1,()=>{Ze=null}),fe()),K[117]&&Xe.p(K,ve),!K[4]&&K[33]?He?(He.p(K,ve),ve[0]&16|ve[1]&4&&d(He,1)):(He=Ym(K),He.c(),d(He,1),He.m(l,h)):He&&(ue(),_(He,1,1,()=>{He=null}),fe()),K[19]?ye?(ye.p(K,ve),ve[0]&524288&&d(ye,1)):(ye=Zm(K),ye.c(),d(ye,1),ye.m(l,w)):ye&&(ue(),_(ye,1,1,()=>{ye=null}),fe());let _t={};if(ve[0]&1048576&&(_t.disabled=!K[20]),ve[0]&1048576|ve[2]&1310720|ve[7]&1&&(_t.$$scope={dirty:ve,ctx:K}),!k&&ve[0]&8388608&&(k=!0,_t.ref=K[23].episodes,Be(()=>k=!1)),g.$set(_t),ve[0]&268435456){it=Tt(K[28]);let ce;for(ce=0;ce<it.length;ce+=1){let bt=Km(K,it,ce);Oe[ce]?(Oe[ce].p(bt,ve),d(Oe[ce],1)):(Oe[ce]=Jm(bt),Oe[ce].c(),d(Oe[ce],1),Oe[ce].m(v,b))}for(ue(),ce=it.length;ce<Oe.length;ce+=1)rt(ce);fe()}K[43]&&!K[4]?Ce?(Ce.p(K,ve),ve[0]&16|ve[1]&4096&&d(Ce,1)):(Ce=xm(K),Ce.c(),d(Ce,1),Ce.m(v,E)):Ce&&(ue(),_(Ce,1,1,()=>{Ce=null}),fe());let vt={};ve[7]&1&&(vt.$$scope={dirty:ve,ctx:K}),!L&&ve[0]&8388608&&(L=!0,vt.ref=K[23].volume,Be(()=>L=!1)),A.$set(vt),K[40]?Ge?(Ge.p(K,ve),ve[1]&512&&d(Ge,1)):(Ge=$m(K),Ge.c(),d(Ge,1),Ge.m(v,le)):Ge&&(ue(),_(Ge,1,1,()=>{Ge=null}),fe()),!K[83]&&!K[4]?Ke?(Ke.p(K,ve),ve[0]&16|ve[2]&2097152&&d(Ke,1)):(Ke=e0(K),Ke.c(),d(Ke,1),Ke.m(v,ae)):Ke&&(ue(),_(Ke,1,1,()=>{Ke=null}),fe()),K[42]&&!K[4]?$e?($e.p(K,ve),ve[0]&16|ve[1]&2048&&d($e,1)):($e=t0(K),$e.c(),d($e,1),$e.m(v,Y)):$e&&(ue(),_($e,1,1,()=>{$e=null}),fe()),K[84].features.contextMenuButton&&de.p(K,ve),K[44]?Ne?(Ne.p(K,ve),ve[1]&8192&&d(Ne,1)):(Ne=i0(K),Ne.c(),d(Ne,1),Ne.m(v,ee)):Ne&&(ue(),_(Ne,1,1,()=>{Ne=null}),fe()),K[39]?Te?(Te.p(K,ve),ve[1]&256&&d(Te,1)):(Te=n0(K),Te.c(),d(Te,1),Te.m(v,null)):Te&&(ue(),_(Te,1,1,()=>{Te=null}),fe()),(!F||ve[0]&2)&&H(e,"hidden",K[1]),(!F||ve[0]&8)&&H(e,"controls-hidden",!K[3]),(!F||ve[0]&4)&&H(e,"no-smooth",K[2]),K[122]&&ze.p(K,ve)},i(K){if(!F){d(t.$$.fragment,K),d(U),d(we),d(qe),d(Ze),d(Xe),d(He),d(ye),d(g.$$.fragment,K);for(let ve=0;ve<it.length;ve+=1)d(Oe[ve]);d(Ce),d(A.$$.fragment,K),d(Ge),d(Ke),d($e),d(de),d(Ne),d(Te),d(ze),F=!0}},o(K){_(t.$$.fragment,K),_(U),_(we),_(qe),_(Ze),_(Xe),_(He),_(ye),_(g.$$.fragment,K),Oe=Oe.filter(Boolean);for(let ve=0;ve<Oe.length;ve+=1)_(Oe[ve]);_(Ce),_(A.$$.fragment,K),_(Ge),_(Ke),_($e),_(de),_(Ne),_(Te),_(ze),F=!1},d(K){K&&(C(e),C(X),C(se)),D(t),U&&U.d(),we&&we.d(),qe&&qe.d(),Ze&&Ze.d(),Xe&&Xe.d(),He&&He.d(),ye&&ye.d(),D(g),y(),Ri(Oe,K),Ce&&Ce.d(),D(A),Ge&&Ge.d(),Ke&&Ke.d(),$e&&$e.d(),de&&de.d(),Ne&&Ne.d(),Te&&Te.d(),i[195](null),i[196](null),ze&&ze.d(K)}}}function O3(i,e,t){var zf,Uf;let n,o,r,l,a,s,u,c,m,h,w,g,k,y,I,v,b,E,A,L,R,le,ae,Y,V,ee,X,se,F,ne,P,U,we=he,qe=()=>(we(),we=ei(ae,$=>t(144,U=$)),ae),Ze,Xe=he,He=()=>(Xe(),Xe=ei(le,$=>t(145,Ze=$)),le),ye,J=he,ke=()=>(J(),J=ei(R,$=>t(146,ye=$)),R),it,Oe=he,rt=()=>(Oe(),Oe=ei(L,$=>t(147,it=$)),L),Ce,Je=he,at=()=>(Je(),Je=ei(A,$=>t(148,Ce=$)),A),Ge,Ke=he,$e=()=>(Ke(),Ke=ei(E,$=>t(149,Ge=$)),E),de,Ne=he,Te=()=>(Ne(),Ne=ei(b,$=>t(150,de=$)),b),ze,K=he,ve=()=>(K(),K=ei(v,$=>t(151,ze=$)),v),et,_t=he,vt=()=>(_t(),_t=ei(I,$=>t(152,et=$)),I),ce,bt=he,Mt=()=>(bt(),bt=ei(y,$=>t(153,ce=$)),y),St,je=he,jt=()=>(je(),je=ei(k,$=>t(154,St=$)),k),Vt,Pt=he,oi=()=>(Pt(),Pt=ei(g,$=>t(155,Vt=$)),g),Bt,Dt=he,_e=()=>(Dt(),Dt=ei(w,$=>t(156,Bt=$)),w),We,xe=he,lt=()=>(xe(),xe=ei(h,$=>t(157,We=$)),h),ht,Gt=he,_i=()=>(Gt(),Gt=ei(m,$=>t(158,ht=$)),m),Nt,Yi=he,an=()=>(Yi(),Yi=ei(c,$=>t(159,Nt=$)),c),ai,Di=he,kn=()=>(Di(),Di=ei(u,$=>t(160,ai=$)),u),Ti,un,hi,Ni,gi,Pi,bi,Ii,Ht,zt,fn,Zi,ui,Ei,Xi,qi,yt,cn,It,Oi,Ji,xi,ii;i.$$.on_destroy.push(()=>we()),i.$$.on_destroy.push(()=>Xe()),i.$$.on_destroy.push(()=>J()),i.$$.on_destroy.push(()=>Oe()),i.$$.on_destroy.push(()=>Je()),i.$$.on_destroy.push(()=>Ke()),i.$$.on_destroy.push(()=>Ne()),i.$$.on_destroy.push(()=>K()),i.$$.on_destroy.push(()=>_t()),i.$$.on_destroy.push(()=>bt()),i.$$.on_destroy.push(()=>je()),i.$$.on_destroy.push(()=>Pt()),i.$$.on_destroy.push(()=>Dt()),i.$$.on_destroy.push(()=>xe()),i.$$.on_destroy.push(()=>Gt()),i.$$.on_destroy.push(()=>Yi()),i.$$.on_destroy.push(()=>Di());let{bottomHidden:vi}=e,{bottomNoSmooth:yi}=e,{showControls:fi}=e,{controlsElementRef:li=void 0}=e,{isAds:Ut=!1}=e,{canRewindLive:ci}=e,{logoClickable:Fi}=e,{logoHidden:Ai}=e,{logoTargetUrl:ri=""}=e,{showNextPrevButtons:di}=e,{nextButtonActive:$i}=e,{prevButtonActive:en}=e,{isOneVideoPlaylist:Cn=!1}=e,{supportLink:tn}=e,{customFullscreenSupported:Qt=!0}=e,{playNextVideo:Yt}=e,{playPrevVideo:Mi}=e,{repeatPlaylist:mi}=e,{toggleFullscreen:nn}=e,{returnFocus:Hi}=e,{seekToInteractive:dn}=e,{toggleGraph:Vi}=e,{playPrevChapter:zi}=e,ot=st(),pi=Qn(),si=Zt(),Fe=ot.actions.internal.toggleMuted,Ui=ot.actions.internal.togglePlay,Sn=ot.actions.internal.pause,on=ot.actions.internal.toggleSubtitle,Ki=(zf=ot.callbacks)==null?void 0:zf.onAudioDoesNotExistHint,ln=(Uf=ot.callbacks)==null?void 0:Uf.onAudioDisabledHint,rn=ot.state.duration$;z(i,rn,$=>t(82,xi=$));let Tn=ot.state.positionWithScrubbing$;z(i,Tn,$=>t(80,Oi=$));let Mn=ot.state.playbackState$;z(i,Mn,$=>t(161,hi=$));let Jt=ot.state.chromecastConnected$;z(i,Jt,$=>t(83,ii=$));let ji=ot.state.isAudioAvailable$;z(i,ji,$=>t(198,Y=$));let mn=ot.state.isAudioDisabled,Dn=ot.state.isEnded$;z(i,Dn,$=>t(169,Ei=$));let pn=ot.state.isLive$;z(i,pn,$=>t(33,Ii=$));let _n=ot.state.isActiveLive$;z(i,_n,$=>t(163,Pi=$));let Pn=ot.state.isRewindableLive$;z(i,Pn,$=>t(32,bi=$));let xt=ot.ui.isPictureInPictureActive$;z(i,xt,$=>t(165,zt=$));let ni=ot.ui.pictureInPictureType$;z(i,ni,$=>t(164,Ht=$));let Nn=ot.ui.settingsMenuVisible;z(i,Nn,$=>t(27,X=$));let qn=ot.ui.settingsMenuOpenedByKeyboard;z(i,qn,$=>t(140,ee=$));let On=ot.ui.controls,Xt=ot.actions.internal.getVideoEpisodes(),jn=ot.state.chromecastState$;z(i,jn,$=>t(29,Ti=$));let Vn=ot.state.availableSubtitlesList$;z(i,Vn,$=>t(168,ui=$));let hn=ot.state.currentSubtitle$;z(i,hn,$=>t(170,Xi=$));let Wn=On.disabledControls$;z(i,Wn,$=>t(172,yt=$));let Ln=ot.ui.contextMenu.visible$;z(i,Ln,$=>t(162,Ni=$));let In=ot.ui.contextMenu.showContextMenuBtn$;z(i,In,$=>t(166,fn=$));let Wi=ot.ui.contextMenu.openedByBtnKeyboard$;z(i,Wi,$=>t(167,Zi=$));let gn=ot.ui.startedByKeyboard$;z(i,gn,$=>t(139,V=$));let En=ot.ads.duration;z(i,En,$=>t(81,Ji=$));let ie=ot.ads.position;z(i,ie,$=>t(79,It=$));let x=ot.ads.playbackState;z(i,x,$=>t(171,qi=$));let mt=ot.ui.isFullscreen;z(i,mt,$=>t(30,un=$));let Wt=ot.ui.playerSize;z(i,Wt,$=>t(142,F=$));let bn=ot.ui.currentGridType$;z(i,bn,$=>t(143,ne=$));let wi=ot.ui.additionalButtons$;z(i,wi,$=>t(28,P=$));let Yn=ot.actions.internal.getVideoElement,oo=ot.actions.internal.replayInteractive,Rn=ot.state.isInteractive,lo=ot.state.isInteractiveTime$;z(i,lo,$=>t(141,se=$));let te=ot.state.showInteractiveGraph,Mo=ot.state.showSeekToInteractive,Dl=ot.state.showPlayPrevChapter,Vo=ot.state.showInteractiveTimeIndicator,Lo=ot.state.graphIsOpened$;z(i,Lo,$=>t(31,gi=$));let ro=ot.state.playPrevChapterDisabledTooltip,ho=pi.seekToInteractiveDisabledTooltip$;z(i,ho,$=>t(78,cn=$));let Ro=()=>ot.actions.internal.toggleChromecast(),tl,go,bo,Bo,Do,No,il,nl,Z,Et,Gi,vn,eo,Gn,so,kt,vo,ao,Nl,ql,M,oe="",Pe=($,Es)=>{if(!$){t(50,oe=G("tooltip_live"));return}Es===el.PlaybackState.PAUSED&&t(50,oe=G("tooltip_play"))},Ue,pt,Lt,$t,At,Qe={},yn,qo,ol,Hf,k_=(0,o0.throttleFn)(us,260,{leading:!1}),er,tr,ir;function C_(){To({isAudioDisabled:mn,audioDisabledHintCallback:ln,isAudioAvailable:Y,audioIsNotExistHintCallback:Ki})&&Fe()}let S_=Rn?oo:Cn?Ui:mi;function T_($){i.$$.not_equal(Qe.timeline,$)&&(Qe.timeline=$,t(23,Qe))}function P_($){i.$$.not_equal(Qe.prevButton,$)&&(Qe.prevButton=$,t(23,Qe))}function I_($){i.$$.not_equal(Qe.replayButton,$)&&(Qe.replayButton=$,t(23,Qe))}function E_($){ir=$,t(26,ir)}function A_($){i.$$.not_equal(Qe.playButton,$)&&(Qe.playButton=$,t(23,Qe))}function M_($){i.$$.not_equal(Qe.nextButton,$)&&(Qe.nextButton=$,t(23,Qe))}function V_($){i.$$.not_equal(Qe.playPrevChapterButton,$)&&(Qe.playPrevChapterButton=$,t(23,Qe))}function L_($){i.$$.not_equal(Qe.seekToInteractiveButton,$)&&(Qe.seekToInteractiveButton=$,t(23,Qe))}function R_($){i.$$.not_equal(Qe.interactiveGraphButton,$)&&(Qe.interactiveGraphButton=$,t(23,Qe))}function B_($){i.$$.not_equal(Qe.liveButton,$)&&(Qe.liveButton=$,t(23,Qe))}function D_($){i.$$.not_equal(Qe.time,$)&&(Qe.time=$,t(23,Qe))}function N_($){i.$$.not_equal(Qe.episodes,$)&&(Qe.episodes=$,t(23,Qe))}function q_(){At=this.clientWidth,t(22,At)}function O_($){i.$$.not_equal(Qe.vkLogo,$)&&(Qe.vkLogo=$,t(23,Qe))}function F_($){i.$$.not_equal(Qe.volume,$)&&(Qe.volume=$,t(23,Qe))}function H_($){i.$$.not_equal(Qe.subtitles,$)&&(Qe.subtitles=$,t(23,Qe))}function z_($){er=$,t(24,er)}function U_($){tr=$,t(25,tr)}function K_($){i.$$.not_equal(Qe.settings,$)&&(Qe.settings=$,t(23,Qe))}function j_($){i.$$.not_equal(Qe.context,$)&&(Qe.context=$,t(23,Qe))}function W_($){i.$$.not_equal(Qe.fullscreen,$)&&(Qe.fullscreen=$,t(23,Qe))}function G_($){i.$$.not_equal(Qe.chromecast,$)&&(Qe.chromecast=$,t(23,Qe))}function Q_($){pe[$?"unshift":"push"](()=>{vo=$,t(46,vo)})}function Y_($){pe[$?"unshift":"push"](()=>{li=$,t(0,li)})}function Z_($){i.$$.not_equal(Qe.interactiveTimeIndicator,$)&&(Qe.interactiveTimeIndicator=$,t(23,Qe))}i.$$set=$=>{"bottomHidden"in $&&t(1,vi=$.bottomHidden),"bottomNoSmooth"in $&&t(2,yi=$.bottomNoSmooth),"showControls"in $&&t(3,fi=$.showControls),"controlsElementRef"in $&&t(0,li=$.controlsElementRef),"isAds"in $&&t(4,Ut=$.isAds),"canRewindLive"in $&&t(5,ci=$.canRewindLive),"logoClickable"in $&&t(6,Fi=$.logoClickable),"logoHidden"in $&&t(129,Ai=$.logoHidden),"logoTargetUrl"in $&&t(7,ri=$.logoTargetUrl),"showNextPrevButtons"in $&&t(130,di=$.showNextPrevButtons),"nextButtonActive"in $&&t(8,$i=$.nextButtonActive),"prevButtonActive"in $&&t(9,en=$.prevButtonActive),"isOneVideoPlaylist"in $&&t(131,Cn=$.isOneVideoPlaylist),"supportLink"in $&&t(10,tn=$.supportLink),"customFullscreenSupported"in $&&t(132,Qt=$.customFullscreenSupported),"playNextVideo"in $&&t(11,Yt=$.playNextVideo),"playPrevVideo"in $&&t(12,Mi=$.playPrevVideo),"repeatPlaylist"in $&&t(133,mi=$.repeatPlaylist),"toggleFullscreen"in $&&t(13,nn=$.toggleFullscreen),"returnFocus"in $&&t(14,Hi=$.returnFocus),"seekToInteractive"in $&&t(15,dn=$.seekToInteractive),"toggleGraph"in $&&t(16,Vi=$.toggleGraph),"playPrevChapter"in $&&t(17,zi=$.playPrevChapter)},i.$$.update=()=>{if(i.$$.dirty[5]&131072)e:t(138,n=yt.has("EPISODE_BUTTON"));if(i.$$.dirty[5]&131072)e:t(77,o=yt.has("GRAPH_BUTTON"));if(i.$$.dirty[5]&131072)e:t(76,r=yt.has("SEEK_TO_INTERACTIVE_BUTTON"));if(i.$$.dirty[5]&131072)e:t(75,l=yt.has("PLAY_BUTTON"));if(i.$$.dirty[5]&131072)e:t(74,a=yt.has("REPLAY_BUTTON"));if(i.$$.dirty[5]&131072)e:t(73,s=yt.has("PLAY_PREV_CHAPTER_BUTTON"));if(i.$$.dirty[0]&16|i.$$.dirty[5]&65600)e:t(34,tl=Ut?qi==="playing":hi===el.PlaybackState.PLAYING);if(i.$$.dirty[5]&32768)e:t(18,go=Xi.value!=="off");if(i.$$.dirty[0]&16|i.$$.dirty[5]&16384)e:t(35,bo=Ei&&!Ut||Rn);if(i.$$.dirty[0]&16|i.$$.dirty[5]&16384)e:t(36,Bo=!Ei||Rn||Ut);if(i.$$.dirty[4]&524288)e:t(134,Do=Kn(ne,"m"));if(i.$$.dirty[0]&272|i.$$.dirty[4]&524352)e:t(37,No=di&&Kn(ne,"m")&&!Ut&&$i);if(i.$$.dirty[0]&528|i.$$.dirty[4]&524352)e:t(38,il=di&&Kn(ne,"m")&&!Ut&&en);if(i.$$.dirty[0]&536870912|i.$$.dirty[4]&524288|i.$$.dirty[5]&1536)e:t(39,nl=Ti!==el.ChromecastState.NOT_AVAILABLE&&!(zt&&Ht===1)&&Kn(ne,"m")&&!Rn);if(i.$$.dirty[4]&524288|i.$$.dirty[5]&8192)e:t(40,Z=ui.length>0&&Kn(ne,"m"));if(i.$$.dirty[5]&6144)e:t(41,Et=Zi||fn);if(i.$$.dirty[4]&524288)e:t(42,Gi=Kn(ne,"s"));if(i.$$.dirty[4]&32)e:t(43,vn=!Ai);if(i.$$.dirty[4]&524576|i.$$.dirty[5]&1536)e:t(44,eo=si.features.fullscreen&&(Ai||Kn(ne,"s"))&&!(zt&&Ht===1)&&(Rn?Qt:!0));if(i.$$.dirty[0]&16|i.$$.dirty[1]&4)e:t(19,Gn=(!Ii||Ut)&&!(si.features.interactiveHideTime&&Rn));if(i.$$.dirty[4]&262144)e:t(45,so=F.width>100);if(i.$$.dirty[0]&16|i.$$.dirty[1]&4|i.$$.dirty[4]&17408)e:t(20,kt=!Ut&&!Ii&&!!(Xt!=null&&Xt.length)&&Do&&!n);if(i.$$.dirty[1]&2|i.$$.dirty[5]&256)e:t(21,ao=!bi||Pi);if(i.$$.dirty[5]&64)e:t(47,Nl=hi===el.PlaybackState.PLAYING?G("tooltip_pause"):G("tooltip_play"));if(i.$$.dirty[1]&1)e:t(48,ql=gi?G("tooltip_interactive_graph_on"):G("tooltip_interactive_graph_off"));if(i.$$.dirty[5]&128)e:t(49,M=Ni?G("aria_label_context_menu_close"):G("aria_label_context_menu_open"));if(i.$$.dirty[0]&2097152|i.$$.dirty[5]&64)e:Pe(ao,hi);if(i.$$.dirty[0]&262144)e:t(52,pt=go?G("tooltip_subtitles_on"):G("tooltip_subtitles_off"));if(i.$$.dirty[0]&1073741824)e:t(53,Lt=un?G("tooltip_fullscreen_on"):G("tooltip_fullscreen_off"));if(i.$$.dirty[0]&536870912)e:t(54,$t=Ti===el.ChromecastState.CONNECTED?G("tooltip_chromecast_on"):G("tooltip_chromecast_off"));if(i.$$.dirty[0]&268435456|i.$$.dirty[4]&2146435072|i.$$.dirty[5]&63)e:t(135,yn={prevButton:ai?ai.right-ai.left:0,replayButton:Nt?Nt.right-Nt.left:0,playButton:ht?ht.right-ht.left:0,nextButton:We?We.right-We.left:0,playPrevChapterButton:Bt?Bt.right-Bt.left:0,seekToInteractiveButton:Vt?Vt.right-Vt.left:0,interactiveGraphButton:St?St.right-St.left:0,liveButton:ce?ce.right-ce.left:0,time:et?et.right-et.left:0,episodes:ze?ze.right-ze.left:0,vkLogo:de?de.right-de.left:0,volume:Ge?Ge.right-Ge.left:0,subtitles:Ce?Ce.right-Ce.left:0,settings:it?it.right-it.left:0,context:ye?ye.right-ye.left:0,fullscreen:Ze?Ze.right-Ze.left:0,chromecast:U?U.right-U.left:0,additionalButtons:P.length?P.reduce($=>[...$,40],[]):[]});if(i.$$.dirty[4]&6144)e:(!qo||qo<yn.time)&&t(136,qo=yn.time);if(i.$$.dirty[0]&5767168|i.$$.dirty[4]&530432)e:{let $=0;kt&&(Kn(ne,"xl")?$=yn.time:$=60);let Es=yn.prevButton+yn.playButton+yn.nextButton+yn.seekToInteractiveButton+yn.interactiveGraphButton+yn.liveButton+qo+$;t(137,ol=Gn&&At>=Es)}if(i.$$.dirty[4]&532480)e:t(55,Hf=ol&&Kn(ne,"m"));if(i.$$.dirty[0]&8388616|i.$$.dirty[4]&393216)e:k_(Yn(),On,Qe,fi);if(i.$$.dirty[0]&167772160)e:bl(tr,X,qn);if(i.$$.dirty[0]&150994944|i.$$.dirty[4]&65536)e:Xo(er,X,ee);if(i.$$.dirty[0]&67108864|i.$$.dirty[4]&32768)e:fs(gn,V,ir)};e:t(51,Ue=si.logoType==="vk_video"?G("tooltip_vk_video_logo"):G("tooltip_vk_logo"));e:kn(t(72,{prevButton:u,replayButton:c,playButton:m,nextButton:h,playPrevChapterButton:w,seekToInteractiveButton:g,interactiveGraphButton:k,liveButton:y,time:I,episodes:v,vkLogo:b,volume:E,subtitles:A,settings:L,context:R,fullscreen:le,chromecast:ae}=On,u,an(t(71,c)),_i(t(70,m)),lt(t(69,h)),_e(t(68,w)),oi(t(67,g)),jt(t(66,k)),Mt(t(65,y)),vt(t(64,I)),ve(t(63,v)),Te(t(62,b)),$e(t(61,E)),at(t(60,A)),rt(t(59,L)),ke(t(58,R)),He(t(57,le)),qe(t(56,ae))));return[li,vi,yi,fi,Ut,ci,Fi,ri,$i,en,tn,Yt,Mi,nn,Hi,dn,Vi,zi,go,Gn,kt,ao,At,Qe,er,tr,ir,X,P,Ti,un,gi,bi,Ii,tl,bo,Bo,No,il,nl,Z,Et,Gi,vn,eo,so,vo,Nl,ql,M,oe,Ue,pt,Lt,$t,Hf,ae,le,R,L,A,E,b,v,I,y,k,g,w,h,m,c,u,s,a,l,r,o,cn,It,Oi,Ji,xi,ii,si,Ui,Sn,on,rn,Tn,Mn,Jt,ji,Dn,pn,_n,Pn,xt,ni,Nn,qn,Xt,jn,Vn,hn,Wn,Ln,In,Wi,gn,En,ie,x,mt,Wt,bn,wi,Rn,lo,te,Mo,Dl,Vo,Lo,ro,ho,Ro,C_,S_,Ai,di,Cn,Qt,mi,Do,yn,qo,ol,n,V,ee,se,F,ne,U,Ze,ye,it,Ce,Ge,de,ze,et,ce,St,Vt,Bt,We,ht,Nt,ai,hi,Ni,Pi,Ht,zt,fn,Zi,ui,Ei,Xi,qi,yt,T_,P_,I_,E_,A_,M_,V_,L_,R_,B_,D_,N_,q_,O_,F_,H_,z_,U_,K_,j_,W_,G_,Q_,Y_,Z_]}var Qu=class extends W{constructor(e){super(),Q(this,e,O3,q3,j,{bottomHidden:1,bottomNoSmooth:2,showControls:3,controlsElementRef:0,isAds:4,canRewindLive:5,logoClickable:6,logoHidden:129,logoTargetUrl:7,showNextPrevButtons:130,nextButtonActive:8,prevButtonActive:9,isOneVideoPlaylist:131,supportLink:10,customFullscreenSupported:132,playNextVideo:11,playPrevVideo:12,repeatPlaylist:133,toggleFullscreen:13,returnFocus:14,seekToInteractive:15,toggleGraph:16,playPrevChapter:17},m3,[-1,-1,-1,-1,-1,-1,-1,-1])}},l0=Qu;var El=require("@vkontakte/videoplayer-core");function F3(i){let e,t,n,o,r,l=i[2].default,a=Ie(l,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"muted-icon"},{role:"img"},i[0]],u={};for(let c=0;c<s.length;c+=1)u=re(u,s[c]);return{c(){e=q("svg"),a&&a.c(),t=q("g"),n=q("path"),o=q("path"),f(n,"d","M0 0h24v24H0z"),f(o,"fill","#fff"),f(o,"d","M8.695 8.105 5.301 4.71a1 1 0 0 1 1.414-1.415L20.7 17.285a1 1 0 0 1-1.414 1.415L16 15.41V20a1 1 0 0 1-1 1c-.641 0-1.258-.25-1.72-.695L7.79 15H5a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h2.765zm2.88-2.77 1.704-1.642A2.48 2.48 0 0 1 15 3a1 1 0 0 1 1 1v5.76l-4.426-4.426Z"),f(t,"fill","none"),f(t,"fill-rule","evenodd"),be(e,u)},m(c,m){S(c,e,m),a&&a.m(e,null),p(e,t),p(t,n),p(t,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Ae(a,l,c,c[1],r?Ee(l,c[1],m,null):Me(c[1]),null),be(e,u=Le(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"muted-icon"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){_(a,c),r=!1},d(c){c&&C(e),a&&a.d(c)}}}function H3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Zu=class extends W{constructor(e){super(),Q(this,e,H3,F3,j,{})}},r0=Zu;var a0=require("@vkontakte/videoplayer-shared");function z3(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 s0(i){let e;return{c(){e=T("span"),e.textContent=`${G("mobile_unmute")}`,f(e,"class","text svelte-6gmlbk")},m(t,n){S(t,e,n)},p:he,d(t){t&&C(e)}}}function U3(i){let e,t,n,o;var r=i[4];function l(s){return{}}r&&(t=Bn(r,l(i)));let a=i[1]&&s0(i);return{c(){e=T("div"),t&&N(t.$$.fragment),n=O(),a&&a.c(),f(e,"class","container svelte-6gmlbk"),f(e,"aria-hidden","true"),H(e,"expanded",i[1])},m(s,u){S(s,e,u),t&&B(t,e,null),p(e,n),a&&a.m(e,null),o=!0},p(s,u){if(u&16&&r!==(r=s[4])){if(t){ue();let c=t;_(c.$$.fragment,1,0,()=>{D(c,1)}),fe()}r?(t=Bn(r,l(s)),N(t.$$.fragment),d(t.$$.fragment,1),B(t,e,n)):t=null}s[1]?a?a.p(s,u):(a=s0(s),a.c(),a.m(e,null)):a&&(a.d(1),a=null),(!o||u&2)&&H(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&&D(t),a&&a.d()}}}function K3(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:[U3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new wt({props:r}),pe.push(()=>De(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){B(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],Be(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){D(e,l)}}}function j3(i,e,t){let{muted:n=!1}=e,{expanded:o=!1}=e,{click:r=a0.noop}=e,{ref:l=void 0}=e,a,s;function u(c){l=c,t(0,l)}return i.$$set=c=>{"muted"in c&&t(5,n=c.muted),"expanded"in c&&t(1,o=c.expanded),"click"in c&&t(2,r=c.click),"ref"in c&&t(0,l=c.ref)},i.$$.update=()=>{if(i.$$.dirty&32)e:t(3,a=n?G("tooltip_volume"):G("tooltip_volume_muted"));if(i.$$.dirty&2)e:t(4,s=o?$o:r0)},[l,o,r,a,s,n,u]}var Xu=class extends W{constructor(e){super(),Q(this,e,j3,K3,j,{muted:5,expanded:1,click:2,ref:0},z3)}},Ju=Xu;function W3(i){let e,t,n,o,r,l=i[2].default,a=Ie(l,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{role:"img"},i[0]],u={};for(let c=0;c<s.length;c+=1)u=re(u,s[c]);return{c(){e=q("svg"),a&&a.c(),t=q("path"),n=q("path"),o=q("path"),f(t,"fill","currentColor"),f(t,"d","M7.662 4h6.676c.808 0 1.469 0 2.006.044.556.045 1.058.142 1.526.381a3.9 3.9 0 0 1 1.705 1.704c.239.47.336.971.381 1.527C20 8.193 20 8.854 20 9.662V11.1a.9.9 0 0 1-1.8 0V9.7c0-.855 0-1.442-.038-1.897-.036-.445-.103-.684-.19-.856a2.1 2.1 0 0 0-.919-.918c-.172-.088-.411-.155-.856-.191C15.742 5.8 15.155 5.8 14.3 5.8H7.7c-.855 0-1.442 0-1.897.038-.445.036-.684.103-.856.19a2.1 2.1 0 0 0-.918.919c-.088.172-.155.411-.191.856C3.8 8.258 3.8 8.845 3.8 9.7v2.646c0 .855 0 1.442.038 1.897.036.445.103.683.19.856a2.1 2.1 0 0 0 .919.918c.172.088.411.155.856.191.455.037 1.042.038 1.897.038h2.4a.9.9 0 0 1 0 1.8H7.662c-.808 0-1.469 0-2.006-.044-.556-.045-1.058-.142-1.527-.381a3.9 3.9 0 0 1-1.704-1.704c-.239-.47-.336-.972-.381-1.527C2 13.852 2 13.192 2 12.384V9.662c0-.808 0-1.469.044-2.006.045-.556.142-1.058.381-1.527A3.9 3.9 0 0 1 4.13 4.425c.47-.239.971-.336 1.527-.381C6.193 4 6.854 4 7.662 4M13 16.8c0-.98 0-1.47.19-1.845a1.75 1.75 0 0 1 .766-.764C14.33 14 14.82 14 15.8 14h3.4c.98 0 1.47 0 1.845.19.329.168.596.436.764.766.191.374.191.864.191 1.844v.4c0 .98 0 1.47-.19 1.845a1.75 1.75 0 0 1-.765.764C20.67 20 20.18 20 19.2 20h-3.4c-.98 0-1.47 0-1.845-.19a1.75 1.75 0 0 1-.764-.765C13 18.67 13 18.18 13 17.2z"),f(t,"clip-rule","evenodd"),f(n,"fill","currentColor"),f(n,"d","m11.643 12.37-.007-.006L9.073 9.8H10.1a.9.9 0 1 0 0-1.8H6.9a.9.9 0 0 0-.9.9v3.2a.9.9 0 0 0 1.8 0v-1.022l2.53 2.524.134.134a.9.9 0 0 0 1.272-1.272z"),f(n,"class","hidden-not-active"),f(o,"fill","currentColor"),f(o,"d","m6.357 9.63.007.006L8.927 12.2H7.9a.9.9 0 1 0 0 1.8h3.2a.9.9 0 0 0 .9-.9V9.9a.9.9 0 0 0-1.8 0v1.022L7.67 8.397l-.134-.133a.9.9 0 0 0-1.272 1.272z"),f(o,"class","hidden-active"),be(e,u)},m(c,m){S(c,e,m),a&&a.m(e,null),p(e,t),p(e,n),p(e,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Ae(a,l,c,c[1],r?Ee(l,c[1],m,null):Me(c[1]),null),be(e,u=Le(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){_(a,c),r=!1},d(c){c&&C(e),a&&a.d(c)}}}function G3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var xu=class extends W{constructor(e){super(),Q(this,e,G3,W3,j,{})}},u0=xu;function Q3(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 Y3(i){let e,t;return e=new u0({props:{style:i[1],"data-testid":i[0]?"pip-icon--active":"pip-icon"}}),{c(){N(e.$$.fragment)},m(n,o){B(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){D(e,n)}}}function Z3(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 $u=class extends W{constructor(e){super(),Q(this,e,Z3,Y3,j,{isActive:0},Q3)}},f0=$u;var c0=require("@vkontakte/videoplayer-shared");function X3(i){let e,t;return e=new f0({props:{isActive:i[1]}}),{c(){N(e.$$.fragment)},m(n,o){B(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){D(e,n)}}}function J3(i){let e,t,n;function o(l){i[3](l)}let r={testId:"btn-pip",ariaLabel:G("menu_pip"),click:i[2],$$slots:{default:[X3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new wt({props:r}),pe.push(()=>De(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){B(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],Be(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){D(e,l)}}}function x3(i,e,t){let{ref:n=void 0}=e,{isPictureInPictureActive:o=!1}=e,{click:r=c0.noop}=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 ef=class extends W{constructor(e){super(),Q(this,e,x3,J3,j,{ref:0,isPictureInPictureActive:1,click:2})}},d0=ef;var D0=require("@vkontakte/videoplayer-shared");function $3(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 m0(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 p0(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,g,k,y,I,v=(!i[51]||i[53])&&_0(i),b=Tt(i[56]),E=[];for(let F=0;F<b.length;F+=1)E[F]=h0(m0(i,b,F));let A=F=>_(E[F],1,1,()=>{E[F]=null}),L=i[36]&&g0(i),R=i[37]&&b0(i),le=i[57]&&v0(i),ae=i[39]&&y0(i),Y=i[8]&&w0(i),V=i[34]&&k0(i),ee=i[33]&&C0(i),X=i[8]&&S0(i),se=i[96]&&!i[29]&&T0(i);return{c(){e=T("div"),t=O(),n=T("div"),v&&v.c(),o=O(),r=T("div");for(let F=0;F<E.length;F+=1)E[F].c();l=O(),L&&L.c(),a=O(),R&&R.c(),s=O(),le&&le.c(),u=O(),ae&&ae.c(),c=O(),m=T("div"),Y&&Y.c(),h=O(),V&&V.c(),w=O(),ee&&ee.c(),g=O(),X&&X.c(),k=O(),se&&se.c(),y=dt(),f(e,"class","overlay-mobile svelte-1tcstu3"),H(e,"hidden",!i[42]),f(n,"class","wrapper-top-left svelte-1tcstu3"),H(n,"hidden",!i[3]),H(n,"fullscreen",i[52]),f(r,"class","wrapper-top-right svelte-1tcstu3"),H(r,"hidden",!i[3]&&!i[27]),H(r,"fullscreen",i[52]),f(m,"class","wrapper-middle svelte-1tcstu3"),H(m,"hidden",!i[3]||i[29])},m(F,ne){S(F,e,ne),S(F,t,ne),S(F,n,ne),v&&v.m(n,null),S(F,o,ne),S(F,r,ne);for(let P=0;P<E.length;P+=1)E[P]&&E[P].m(r,null);p(r,l),L&&L.m(r,null),p(r,a),R&&R.m(r,null),p(r,s),le&&le.m(r,null),p(r,u),ae&&ae.m(r,null),S(F,c,ne),S(F,m,ne),Y&&Y.m(m,null),p(m,h),V&&V.m(m,null),p(m,w),ee&&ee.m(m,null),p(m,g),X&&X.m(m,null),S(F,k,ne),se&&se.m(F,ne),S(F,y,ne),I=!0},p(F,ne){if((!I||ne[1]&2048)&&H(e,"hidden",!F[42]),!F[51]||F[53]?v?(v.p(F,ne),ne[1]&5242880&&d(v,1)):(v=_0(F),v.c(),d(v,1),v.m(n,null)):v&&(ue(),_(v,1,1,()=>{v=null}),fe()),(!I||ne[0]&8)&&H(n,"hidden",!F[3]),(!I||ne[1]&2097152)&&H(n,"fullscreen",F[52]),ne[1]&33554432){b=Tt(F[56]);let P;for(P=0;P<b.length;P+=1){let U=m0(F,b,P);E[P]?(E[P].p(U,ne),d(E[P],1)):(E[P]=h0(U),E[P].c(),d(E[P],1),E[P].m(r,l))}for(ue(),P=b.length;P<E.length;P+=1)A(P);fe()}F[36]?L?(L.p(F,ne),ne[1]&32&&d(L,1)):(L=g0(F),L.c(),d(L,1),L.m(r,a)):L&&(ue(),_(L,1,1,()=>{L=null}),fe()),F[37]?R?(R.p(F,ne),ne[1]&64&&d(R,1)):(R=b0(F),R.c(),d(R,1),R.m(r,s)):R&&(ue(),_(R,1,1,()=>{R=null}),fe()),F[57]?le?(le.p(F,ne),ne[1]&67108864&&d(le,1)):(le=v0(F),le.c(),d(le,1),le.m(r,u)):le&&(ue(),_(le,1,1,()=>{le=null}),fe()),F[39]?ae?(ae.p(F,ne),ne[1]&256&&d(ae,1)):(ae=y0(F),ae.c(),d(ae,1),ae.m(r,null)):ae&&(ue(),_(ae,1,1,()=>{ae=null}),fe()),(!I||ne[0]&134217736)&&H(r,"hidden",!F[3]&&!F[27]),(!I||ne[1]&2097152)&&H(r,"fullscreen",F[52]),F[8]?Y?(Y.p(F,ne),ne[0]&256&&d(Y,1)):(Y=w0(F),Y.c(),d(Y,1),Y.m(m,h)):Y&&(ue(),_(Y,1,1,()=>{Y=null}),fe()),F[34]?V?(V.p(F,ne),ne[1]&8&&d(V,1)):(V=k0(F),V.c(),d(V,1),V.m(m,w)):V&&(ue(),_(V,1,1,()=>{V=null}),fe()),F[33]?ee?(ee.p(F,ne),ne[1]&4&&d(ee,1)):(ee=C0(F),ee.c(),d(ee,1),ee.m(m,g)):ee&&(ue(),_(ee,1,1,()=>{ee=null}),fe()),F[8]?X?(X.p(F,ne),ne[0]&256&&d(X,1)):(X=S0(F),X.c(),d(X,1),X.m(m,null)):X&&(ue(),_(X,1,1,()=>{X=null}),fe()),(!I||ne[0]&536870920)&&H(m,"hidden",!F[3]||F[29]),F[96]&&!F[29]?se?(se.p(F,ne),ne[0]&536870912&&d(se,1)):(se=T0(F),se.c(),d(se,1),se.m(y.parentNode,y)):se&&(ue(),_(se,1,1,()=>{se=null}),fe())},i(F){if(!I){d(v);for(let ne=0;ne<b.length;ne+=1)d(E[ne]);d(L),d(R),d(le),d(ae),d(Y),d(V),d(ee),d(X),d(se),I=!0}},o(F){_(v),E=E.filter(Boolean);for(let ne=0;ne<E.length;ne+=1)_(E[ne]);_(L),_(R),_(le),_(ae),_(Y),_(V),_(ee),_(X),_(se),I=!1},d(F){F&&(C(e),C(t),C(n),C(o),C(r),C(c),C(m),C(k),C(y)),v&&v.d(),Ri(E,F),L&&L.d(),R&&R.d(),le&&le.d(),ae&&ae.d(),Y&&Y.d(),V&&V.d(),ee&&ee.d(),X&&X.d(),se&&se.d(F)}}}function _0(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 Ju({props:r}),pe.push(()=>De(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){B(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,Be(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){D(e,l)}}}function h0(i){var n;let e,t;return e=new ns({props:{iconUrl:i[170],ariaLabel:(n=i[171])!=null?n:i[174],testId:i[172],onClick:i[173]}}),{c(){N(e.$$.fragment)},m(o,r){B(e,o,r),t=!0},p(o,r){var a;let l={};r[1]&33554432&&(l.iconUrl=o[170]),r[1]&33554432&&(l.ariaLabel=(a=o[171])!=null?a:o[174]),r[1]&33554432&&(l.testId=o[172]),r[1]&33554432&&(l.onClick=o[173]),e.$set(l)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){_(e.$$.fragment,o),t=!1},d(o){D(e,o)}}}function g0(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 Gr({props:r}),pe.push(()=>De(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){B(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,Be(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){D(e,l)}}}function b0(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 d0({props:r}),pe.push(()=>De(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){B(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,Be(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){D(e,l)}}}function v0(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}),pe.push(()=>De(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};!t&&a[0]&4194304&&(t=!0,s.ref=l[22],Be(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){D(e,l)}}}function y0(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 Wr({props:r}),pe.push(()=>De(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){B(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,Be(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){D(e,l)}}}function w0(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 Pl({props:r}),pe.push(()=>De(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){B(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,Be(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){D(e,l)}}}function k0(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 Ql({props:r}),pe.push(()=>De(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){B(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,Be(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){D(e,l)}}}function C0(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 Yl({props:r}),pe.push(()=>De(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){B(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,Be(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){D(e,l)}}}function S0(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 Pl({props:r}),pe.push(()=>De(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){B(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,Be(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){D(e,l)}}}function T0(i){let e,t,n,o,r=i[100]&&e5(i),l=i[98]&&t5(i),a=i[99]&&i5(i);return{c(){r&&r.c(),e=O(),l&&l.c(),t=O(),a&&a.c(),n=dt()},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 e5(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 is({props:s}),pe.push(()=>De(t,"ref",a)),{c(){e=T("div"),N(t.$$.fragment),f(e,"class","wrapper-middle-left svelte-1tcstu3"),H(e,"fullscreen",i[52]),H(e,"hidden",!i[3])},m(u,c){S(u,e,c),B(t,e,null),o=!0,r||(l=me(e,"click",i[108]),r=!0)},p(u,c){let m={};c[0]&8&&(m.hidden=!u[3]),c[1]&65536&&(m.disabled=u[47]),c[0]&262144&&(m.click=u[18]),!n&&c[0]&1048576&&(n=!0,m.ref=u[20].playPrevChapterButton,Be(()=>n=!1)),t.$set(m),(!o||c[1]&2097152)&&H(e,"fullscreen",u[52]),(!o||c[0]&8)&&H(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),D(t),r=!1,l()}}}function t5(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 es({props:a}),pe.push(()=>De(t,"ref",l)),{c(){e=T("div"),N(t.$$.fragment),f(e,"class",o=Yf(i[100]?"wrapper-middle-left-second":"wrapper-middle-left")+" svelte-1tcstu3"),H(e,"fullscreen",i[52]),H(e,"hidden",!i[3]&&!i[58])},m(s,u){S(s,e,u),B(t,e,null),r=!0},p(s,u){let c={};u[0]&8|u[1]&134217728&&(c.hidden=!s[3]&&!s[58]),u[1]&524288&&(c.disabled=s[50]),u[0]&131072&&(c.click=s[17]),u[1]&134217728&&(c.graphIsOpened=s[58]),!n&&u[0]&1048576&&(n=!0,c.ref=s[20].interactiveGraphButton,Be(()=>n=!1)),t.$set(c),(!r||u[1]&2097152)&&H(e,"fullscreen",s[52]),(!r||u[0]&8|u[1]&134217728)&&H(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),D(t)}}}function i5(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 $r({props:s}),pe.push(()=>De(t,"ref",a)),{c(){e=T("div"),N(t.$$.fragment),f(e,"class","wrapper-middle-right svelte-1tcstu3"),H(e,"fullscreen",i[52]),H(e,"hidden",!i[3])},m(u,c){S(u,e,c),B(t,e,null),o=!0,r||(l=me(e,"click",i[109]),r=!0)},p(u,c){let m={};c[0]&8&&(m.hidden=!u[3]),c[1]&32768&&(m.disabled=u[46]),c[0]&65536&&(m.click=u[16]),!n&&c[0]&1048576&&(n=!0,m.ref=u[20].seekToInteractiveButton,Be(()=>n=!1)),t.$set(m),(!o||c[1]&2097152)&&H(e,"fullscreen",u[52]),(!o||c[0]&8)&&H(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),D(t),r=!1,l()}}}function P0(i){let e,t,n,o,r,l=i[53]&&I0(i),a=i[32]&&E0(i);return o=new Xr({props:{position:i[59],duration:i[60]}}),{c(){l&&l.c(),e=O(),a&&a.c(),t=O(),n=T("div"),N(o.$$.fragment),f(n,"class","wrapper-bottom ads-timeline-mobile svelte-1tcstu3"),H(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),B(o,n,null),r=!0},p(s,u){s[53]?l?(l.p(s,u),u[1]&4194304&&d(l,1)):(l=I0(s),l.c(),d(l,1),l.m(e.parentNode,e)):l&&(ue(),_(l,1,1,()=>{l=null}),fe()),s[32]?a?(a.p(s,u),u[1]&2&&d(a,1)):(a=E0(s),a.c(),d(a,1),a.m(t.parentNode,t)):a&&(ue(),_(a,1,1,()=>{a=null}),fe());let c={};u[1]&268435456&&(c.position=s[59]),u[1]&536870912&&(c.duration=s[60]),o.$set(c),(!r||u[1]&2097152)&&H(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),D(o)}}}function I0(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 Ju({props:l}),pe.push(()=>De(t,"ref",r)),{c(){e=T("div"),N(t.$$.fragment),f(e,"class","wrapper-top-right svelte-1tcstu3"),H(e,"fullscreen",i[52])},m(a,s){S(a,e,s),B(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,Be(()=>n=!1)),t.$set(u),(!o||s[1]&2097152)&&H(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),D(t)}}}function E0(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 Ql({props:l}),pe.push(()=>De(t,"ref",r)),{c(){e=T("div"),N(t.$$.fragment),f(e,"class","wrapper-middle svelte-1tcstu3")},m(a,s){S(a,e,s),B(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,Be(()=>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),D(t)}}}function n5(i){let e,t,n;function o(l){i[144](l)}let r={disabled:i[48],$$slots:{default:[o5]},$$scope:{ctx:i}};return i[20].replayButton!==void 0&&(r.ref=i[20].replayButton),e=new Kt({props:r}),pe.push(()=>De(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){B(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,Be(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){D(e,l)}}}function o5(i){let e,t;return e=new Yl({props:{disabled:i[48],click:i[95]}}),{c(){N(e.$$.fragment)},m(n,o){B(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){D(e,n)}}}function A0(i){let e,t,n;function o(l){i[145](l)}let r={$$slots:{default:[l5]},$$scope:{ctx:i}};return i[20].liveButton!==void 0&&(r.ref=i[20].liveButton),e=new Kt({props:r}),pe.push(()=>De(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){B(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,Be(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){D(e,l)}}}function l5(i){let e,t;return e=new Yr({props:{isActiveLive:i[19],isMobile:!0,ariaLabel:i[45]}}),{c(){N(e.$$.fragment)},m(n,o){B(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){D(e,n)}}}function M0(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 Fr({props:r}),pe.push(()=>De(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){B(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,Be(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){D(e,l)}}}function V0(i){let e,t,n,o;return n=new xr({props:{position:i[61],duration:i[62],timeCodes:i[84]}}),{c(){e=T("div"),e.textContent="\xB7",t=O(),N(n.$$.fragment),f(e,"aria-hidden","true")},m(r,l){S(r,e,l),S(r,t,l),B(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)),D(n,r)}}}function r5(i){let e,t,n=i[43]&&V0(i);return{c(){n&&n.c(),e=dt()},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=V0(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ue(),_(n,1,1,()=>{n=null}),fe())},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&C(e),n&&n.d(o)}}}function L0(i){let e,t,n;function o(l){i[149](l)}let r={$$slots:{default:[s5]},$$scope:{ctx:i}};return i[20].settings!==void 0&&(r.ref=i[20].settings),e=new Kt({props:r}),pe.push(()=>De(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){B(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,Be(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){D(e,l)}}}function s5(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}),pe.push(()=>De(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};!t&&a[0]&4194304&&(t=!0,s.ref=l[22],Be(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){D(e,l)}}}function R0(i){let e,t,n;function o(l){i[150](l)}let r={$$slots:{default:[a5]},$$scope:{ctx:i}};return i[20].fullscreen!==void 0&&(r.ref=i[20].fullscreen),e=new Kt({props:r}),pe.push(()=>De(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){B(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,Be(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){D(e,l)}}}function a5(i){let e,t;return e=new Kr({props:{click:i[14],isFullscreen:i[52]}}),{c(){N(e.$$.fragment)},m(n,o){B(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){D(e,n)}}}function B0(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 Or({props:l}),pe.push(()=>De(t,"ref",r)),{c(){e=T("div"),N(t.$$.fragment),f(e,"class","settings-mobile svelte-1tcstu3")},m(a,s){S(a,e,s),B(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],Be(()=>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),D(t)}}}function u5(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 cs({props:r}),pe.push(()=>De(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};!t&&a[0]&1048576&&(t=!0,s.ref=l[20].interactiveTimeIndicator,Be(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){D(e,l)}}}function f5(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,g,k,y,I,v,b,E=!i[4]&&p0(i),A=i[4]&&i[30]!=="inactive"&&P0(i),L=i[96]&&n5(i),R=!i[4]&&i[25]&&A0(i),le=i[41]&&M0(i);function ae(P){i[147](P)}let Y={className:"w-max",disabled:!i[43],$$slots:{default:[r5]},$$scope:{ctx:i}};i[20].episodes!==void 0&&(Y.ref=i[20].episodes),u=new Kt({props:Y}),pe.push(()=>De(u,"ref",ae));let V=i[38]&&L0(i),ee=i[40]&&R0(i);function X(P){i[152](P)}let se={isAds:i[4],canRewindLive:i[5],isRewindableLive:i[24]};i[20].timeline!==void 0&&(se.ref=i[20].timeline),g=new Jr({props:se}),pe.push(()=>De(g,"ref",X));let F=i[23]&&B0(i),ne=i[101]&&u5(i);return{c(){E&&E.c(),e=O(),A&&A.c(),t=O(),n=T("div"),o=T("div"),r=T("div"),L&&L.c(),l=O(),R&&R.c(),a=O(),le&&le.c(),s=O(),N(u.$$.fragment),m=O(),V&&V.c(),h=O(),ee&&ee.c(),w=O(),N(g.$$.fragment),y=O(),F&&F.c(),I=O(),ne&&ne.c(),v=dt(),f(r,"class","controls svelte-1tcstu3"),H(r,"mobile",!0),f(o,"class","controls-wrapper svelte-1tcstu3"),H(o,"fullscreen",i[52]),f(n,"class","wrapper-bottom svelte-1tcstu3"),H(n,"hidden",i[1]),H(n,"controls-hidden",!i[3]),H(n,"no-smooth",i[2]),H(n,"mobile",!0)},m(P,U){E&&E.m(P,U),S(P,e,U),A&&A.m(P,U),S(P,t,U),S(P,n,U),p(n,o),p(o,r),L&&L.m(r,null),p(r,l),R&&R.m(r,null),p(r,a),le&&le.m(r,null),p(r,s),B(u,r,null),p(r,m),V&&V.m(r,null),p(r,h),ee&&ee.m(r,null),i[151](r),p(o,w),B(g,o,null),i[153](n),S(P,y,U),F&&F.m(P,U),S(P,I,U),ne&&ne.m(P,U),S(P,v,U),b=!0},p(P,U){P[4]?E&&(ue(),_(E,1,1,()=>{E=null}),fe()):E?(E.p(P,U),U[0]&16&&d(E,1)):(E=p0(P),E.c(),d(E,1),E.m(e.parentNode,e)),P[4]&&P[30]!=="inactive"?A?(A.p(P,U),U[0]&1073741840&&d(A,1)):(A=P0(P),A.c(),d(A,1),A.m(t.parentNode,t)):A&&(ue(),_(A,1,1,()=>{A=null}),fe()),P[96]&&L.p(P,U),!P[4]&&P[25]?R?(R.p(P,U),U[0]&33554448&&d(R,1)):(R=A0(P),R.c(),d(R,1),R.m(r,a)):R&&(ue(),_(R,1,1,()=>{R=null}),fe()),P[41]?le?(le.p(P,U),U[1]&1024&&d(le,1)):(le=M0(P),le.c(),d(le,1),le.m(r,s)):le&&(ue(),_(le,1,1,()=>{le=null}),fe());let we={};U[1]&4096&&(we.disabled=!P[43]),U[1]&1073745920|U[2]&1|U[5]&4194304&&(we.$$scope={dirty:U,ctx:P}),!c&&U[0]&1048576&&(c=!0,we.ref=P[20].episodes,Be(()=>c=!1)),u.$set(we),P[38]?V?(V.p(P,U),U[1]&128&&d(V,1)):(V=L0(P),V.c(),d(V,1),V.m(r,h)):V&&(ue(),_(V,1,1,()=>{V=null}),fe()),P[40]?ee?(ee.p(P,U),U[1]&512&&d(ee,1)):(ee=R0(P),ee.c(),d(ee,1),ee.m(r,null)):ee&&(ue(),_(ee,1,1,()=>{ee=null}),fe());let qe={};U[0]&16&&(qe.isAds=P[4]),U[0]&32&&(qe.canRewindLive=P[5]),U[0]&16777216&&(qe.isRewindableLive=P[24]),!k&&U[0]&1048576&&(k=!0,qe.ref=P[20].timeline,Be(()=>k=!1)),g.$set(qe),(!b||U[1]&2097152)&&H(o,"fullscreen",P[52]),(!b||U[0]&2)&&H(n,"hidden",P[1]),(!b||U[0]&8)&&H(n,"controls-hidden",!P[3]),(!b||U[0]&4)&&H(n,"no-smooth",P[2]),P[23]?F?(F.p(P,U),U[0]&8388608&&d(F,1)):(F=B0(P),F.c(),d(F,1),F.m(I.parentNode,I)):F&&(ue(),_(F,1,1,()=>{F=null}),fe()),P[101]&&ne.p(P,U)},i(P){b||(d(E),d(A),d(L),d(R),d(le),d(u.$$.fragment,P),d(V),d(ee),d(g.$$.fragment,P),d(F),d(ne),b=!0)},o(P){_(E),_(A),_(L),_(R),_(le),_(u.$$.fragment,P),_(V),_(ee),_(g.$$.fragment,P),_(F),_(ne),b=!1},d(P){P&&(C(e),C(t),C(n),C(y),C(I),C(v)),E&&E.d(P),A&&A.d(P),L&&L.d(),R&&R.d(),le&&le.d(),D(u),V&&V.d(),ee&&ee.d(),i[151](null),D(g),i[153](null),F&&F.d(P),ne&&ne.d(P)}}}function c5(i,e,t){var Rn,lo;let n,o,r,l,a,s,u,c,m,h,w,g,k,y,I,v,b,E,A,L,R,le,ae,Y,V,ee,X,se,F,ne,P,U,we,qe,Ze,Xe,He,{bottomHidden:ye}=e,{bottomNoSmooth:J}=e,{showControls:ke}=e,{controlsElementRef:it=void 0}=e,{isAds:Oe=!1}=e,{canRewindLive:rt}=e,{logoClickable:Ce}=e,{logoHidden:Je}=e,{logoTargetUrl:at=""}=e,{showNextPrevButtons:Ge}=e,{nextButtonActive:Ke}=e,{prevButtonActive:$e}=e,{isOneVideoPlaylist:de=!1}=e,{supportLink:Ne}=e,{customFullscreenSupported:Te=!0}=e,{playNextVideo:ze}=e,{playPrevVideo:K}=e,{repeatPlaylist:ve}=e,{toggleFullscreen:et}=e,{returnFocus:_t}=e,{seekToInteractive:vt}=e,{toggleGraph:ce}=e,{playPrevChapter:bt}=e,{onDisabledPlayPrevChapterClick:Mt}=e,{onDisabledSeekToInteractiveClick:St}=e,je=st(),jt=Qn(),Vt=Zt(),Pt=je.actions.internal.toggleMuted,oi=je.actions.internal.togglePlay,Bt=je.actions.internal.pause,Dt=(Rn=je.callbacks)==null?void 0:Rn.onAudioDoesNotExistHint,_e=(lo=je.callbacks)==null?void 0:lo.onAudioDisabledHint,We=je.playerPhase;z(i,We,te=>t(126,R=te));let xe=je.state.duration$;z(i,xe,te=>t(62,He=te));let lt=je.state.positionWithScrubbing$;z(i,lt,te=>t(61,Xe=te));let ht=je.state.playbackState$;z(i,ht,te=>t(121,h=te));let Gt=je.state.isAudioAvailable$;z(i,Gt,te=>t(51,w=te));let _i=je.state.isAudioDisabled,Nt=je.state.isEnded$;z(i,Nt,te=>t(127,ae=te));let Yi=je.state.isLive$;z(i,Yi,te=>t(25,v=te));let an=je.state.muted$;z(i,an,te=>t(54,F=te));let ai=je.state.isActiveLive$;z(i,ai,te=>t(124,y=te));let Di=je.state.isRewindableLive$;z(i,Di,te=>t(24,I=te));let kn=je.ui.scrubbingInProgress;z(i,kn,te=>t(29,le=te));let Ti=je.ui.mobileNotReportControlHidden$;z(i,Ti,te=>t(27,A=te));let un=je.ui.isPictureInPictureActive$;z(i,un,te=>t(26,E=te));let hi=je.ui.pictureInPictureType$;z(i,hi,te=>t(125,b=te));let Ni=je.ui.mobileUnmuteButtonExpanded;z(i,Ni,te=>t(55,ne=te));let gi=je.ui.mobileUnmuteButtonVisible;z(i,gi,te=>t(53,se=te));let Pi=je.ui.settingsMenuVisible;z(i,Pi,te=>t(23,m=te));let bi=je.ui.settingsMenuOpenedByKeyboard;z(i,bi,te=>t(120,c=te));let Ii=je.ui.controls,Ht=je.actions.internal.getVideoEpisodes(),zt=je.webApi.pictureInPictureApi,fn=je.state.chromecastState$;z(i,fn,te=>t(28,L=te));let Zi=je.state.crashed$;z(i,Zi,te=>t(57,U=te));let ui=Ii.disabledControls$;z(i,ui,te=>t(128,V=te));let Ei=je.ui.startedByKeyboard$;z(i,Ei,te=>t(119,u=te));let Xi=je.ads.duration;z(i,Xi,te=>t(60,Ze=te));let qi=je.ads.position;z(i,qi,te=>t(59,qe=te));let yt=je.ads.playbackState;z(i,yt,te=>t(30,Y=te));let cn=je.ui.isFullscreen;z(i,cn,te=>t(52,X=te));let It=je.ui.playerSize;z(i,It,te=>t(123,k=te));let Oi=je.ui.additionalButtons$;z(i,Oi,te=>t(56,P=te));let Ji=je.actions.internal.getVideoElement,xi=je.actions.internal.replayInteractive,ii=je.state.isInteractive,vi=je.state.isInteractiveTime$;z(i,vi,te=>t(122,g=te));let yi=je.state.showInteractiveGraph,fi=je.state.showSeekToInteractive,li=je.state.showPlayPrevChapter,Ut=je.state.showInteractiveTimeIndicator,ci=je.state.graphIsOpened$;z(i,ci,te=>t(58,we=te));let Fi=jt.seekToInteractiveDisabledTooltip$;z(i,Fi,te=>t(129,ee=te));let Ai,ri,di,$i,en,Cn,tn,Qt,Yt,Mi,mi,nn,Hi,dn,Vi,zi,ot,pi,si,Fe={},Ui=(0,D0.throttleFn)(us,260,{leading:!1}),Sn=()=>je.actions.internal.toggleChromecast();function on(){To({isAudioDisabled:_i,audioDisabledHintCallback:_e,isAudioAvailable:w,audioIsNotExistHintCallback:Dt})&&Pt()}function Ki(){return ct(this,null,function*(){zt!=null&&zt.isActive()?yield zt==null?void 0:zt.remove():yield zt==null?void 0:zt.request()})}function ln(){!_i&&w&&gi.set(!1),on()}let rn=de?oi:ve,Tn="",Mn=(te,Mo)=>{if(!te){t(45,Tn=G("tooltip_live"));return}Mo===El.PlaybackState.PAUSED&&t(45,Tn=G("tooltip_play"))},Jt,ji,mn=()=>{s&&Mt(Ai)},Dn=()=>{r&&St(ri)};function pn(te){i.$$.not_equal(Fe.volume,te)&&(Fe.volume=te,t(20,Fe))}function _n(te){i.$$.not_equal(Fe.chromecast,te)&&(Fe.chromecast=te,t(20,Fe))}function Pn(te){i.$$.not_equal(Fe.pip,te)&&(Fe.pip=te,t(20,Fe))}function xt(te){ji=te,t(22,ji)}function ni(te){i.$$.not_equal(Fe.vkLogo,te)&&(Fe.vkLogo=te,t(20,Fe))}function Nn(te){i.$$.not_equal(Fe.prevButton,te)&&(Fe.prevButton=te,t(20,Fe))}function qn(te){i.$$.not_equal(Fe.playButton,te)&&(Fe.playButton=te,t(20,Fe))}function On(te){i.$$.not_equal(Fe.replayButton,te)&&(Fe.replayButton=te,t(20,Fe))}function Xt(te){i.$$.not_equal(Fe.nextButton,te)&&(Fe.nextButton=te,t(20,Fe))}function jn(te){i.$$.not_equal(Fe.playPrevChapterButton,te)&&(Fe.playPrevChapterButton=te,t(20,Fe))}function Vn(te){i.$$.not_equal(Fe.interactiveGraphButton,te)&&(Fe.interactiveGraphButton=te,t(20,Fe))}function hn(te){i.$$.not_equal(Fe.seekToInteractiveButton,te)&&(Fe.seekToInteractiveButton=te,t(20,Fe))}function Wn(te){i.$$.not_equal(Fe.volume,te)&&(Fe.volume=te,t(20,Fe))}function Ln(te){i.$$.not_equal(Fe.playButton,te)&&(Fe.playButton=te,t(20,Fe))}function In(te){i.$$.not_equal(Fe.replayButton,te)&&(Fe.replayButton=te,t(20,Fe))}function Wi(te){i.$$.not_equal(Fe.liveButton,te)&&(Fe.liveButton=te,t(20,Fe))}function gn(te){i.$$.not_equal(Fe.time,te)&&(Fe.time=te,t(20,Fe))}function En(te){i.$$.not_equal(Fe.episodes,te)&&(Fe.episodes=te,t(20,Fe))}function ie(te){ji=te,t(22,ji)}function x(te){i.$$.not_equal(Fe.settings,te)&&(Fe.settings=te,t(20,Fe))}function mt(te){i.$$.not_equal(Fe.fullscreen,te)&&(Fe.fullscreen=te,t(20,Fe))}function Wt(te){pe[te?"unshift":"push"](()=>{pi=te,t(44,pi)})}function bn(te){i.$$.not_equal(Fe.timeline,te)&&(Fe.timeline=te,t(20,Fe))}function wi(te){pe[te?"unshift":"push"](()=>{it=te,t(0,it)})}function Yn(te){Jt=te,t(21,Jt)}function oo(te){i.$$.not_equal(Fe.interactiveTimeIndicator,te)&&(Fe.interactiveTimeIndicator=te,t(20,Fe))}i.$$set=te=>{"bottomHidden"in te&&t(1,ye=te.bottomHidden),"bottomNoSmooth"in te&&t(2,J=te.bottomNoSmooth),"showControls"in te&&t(3,ke=te.showControls),"controlsElementRef"in te&&t(0,it=te.controlsElementRef),"isAds"in te&&t(4,Oe=te.isAds),"canRewindLive"in te&&t(5,rt=te.canRewindLive),"logoClickable"in te&&t(6,Ce=te.logoClickable),"logoHidden"in te&&t(110,Je=te.logoHidden),"logoTargetUrl"in te&&t(7,at=te.logoTargetUrl),"showNextPrevButtons"in te&&t(8,Ge=te.showNextPrevButtons),"nextButtonActive"in te&&t(9,Ke=te.nextButtonActive),"prevButtonActive"in te&&t(10,$e=te.prevButtonActive),"isOneVideoPlaylist"in te&&t(111,de=te.isOneVideoPlaylist),"supportLink"in te&&t(11,Ne=te.supportLink),"customFullscreenSupported"in te&&t(112,Te=te.customFullscreenSupported),"playNextVideo"in te&&t(12,ze=te.playNextVideo),"playPrevVideo"in te&&t(13,K=te.playPrevVideo),"repeatPlaylist"in te&&t(113,ve=te.repeatPlaylist),"toggleFullscreen"in te&&t(14,et=te.toggleFullscreen),"returnFocus"in te&&t(15,_t=te.returnFocus),"seekToInteractive"in te&&t(16,vt=te.seekToInteractive),"toggleGraph"in te&&t(17,ce=te.toggleGraph),"playPrevChapter"in te&&t(18,bt=te.playPrevChapter),"onDisabledPlayPrevChapterClick"in te&&t(114,Mt=te.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in te&&t(115,St=te.onDisabledSeekToInteractiveClick)},i.$$.update=()=>{if(i.$$.dirty[4]&32)e:ri=G(ee);if(i.$$.dirty[4]&16)e:t(118,n=V.has("EPISODE_BUTTON"));if(i.$$.dirty[4]&16)e:t(50,o=V.has("GRAPH_BUTTON"));if(i.$$.dirty[4]&16)e:t(46,r=V.has("SEEK_TO_INTERACTIVE_BUTTON"));if(i.$$.dirty[4]&16)e:t(49,l=V.has("PLAY_BUTTON"));if(i.$$.dirty[4]&16)e:t(48,a=V.has("REPLAY_BUTTON"));if(i.$$.dirty[4]&16)e:t(47,s=V.has("PLAY_PREV_CHAPTER_BUTTON"));if(i.$$.dirty[3]&268435456)e:t(31,di=h===El.PlaybackState.PLAYING);if(i.$$.dirty[0]&1073741824)e:t(32,$i=Y==="paused");if(i.$$.dirty[0]&16|i.$$.dirty[4]&8)e:t(33,en=ae&&!Oe&&!ii);if(i.$$.dirty[0]&16|i.$$.dirty[4]&8)e:t(34,Cn=!ae||Oe);if(i.$$.dirty[3]&1073741824)e:t(116,tn=k.width>300);if(i.$$.dirty[3]&1073741824)e:t(35,Qt=k.width>400);if(i.$$.dirty[0]&536870912)e:t(117,Yt=le);if(i.$$.dirty[0]&469762048|i.$$.dirty[4]&2)e:t(36,Mi=L!==El.ChromecastState.NOT_AVAILABLE&&!(E&&b===1)&&!A&&!ii);if(i.$$.dirty[0]&402653184|i.$$.dirty[3]&16777216|i.$$.dirty[4]&6)e:{let te=R==="waitingLive";t(37,mi=!!zt&&L!==El.ChromecastState.CONNECTED&&!A&&(b===1&&te||!te)&&!Yt&&!ii)}if(i.$$.dirty[3]&16777216)e:t(38,nn=!Yt);if(i.$$.dirty[3]&1073872896)e:t(39,Hi=!Je&&k.width>350);if(i.$$.dirty[0]&67108864|i.$$.dirty[3]&17301504|i.$$.dirty[4]&2)e:t(40,dn=Vt.features.fullscreen&&!(E&&b===1)&&(ii?Te:!0)&&!Yt);if(i.$$.dirty[0]&33554448|i.$$.dirty[3]&1090519040)e:t(41,Vi=(!v||Oe)&&k.width>260&&!Yt&&!(Vt.features.interactiveHideTime&&ii));if(i.$$.dirty[0]&8388616)e:t(42,zi=m||ke);if(i.$$.dirty[0]&33554448|i.$$.dirty[3]&58720256)e:t(43,ot=!Oe&&!v&&!!(Ht!=null&&Ht.length)&&tn&&!n&&!Yt);if(i.$$.dirty[0]&16777216|i.$$.dirty[4]&1)e:t(19,si=!I||y);if(i.$$.dirty[0]&1048584|i.$$.dirty[3]&1610612736)e:Ui(Ji(),Ii,Fe,ke);if(i.$$.dirty[0]&524288|i.$$.dirty[3]&268435456)e:Mn(si,h);if(i.$$.dirty[0]&12582912)e:bl(ji,m,bi);if(i.$$.dirty[0]&10485760|i.$$.dirty[3]&134217728)e:Xo(Jt,m,c);if(i.$$.dirty[0]&1048576|i.$$.dirty[3]&67108864)e:fs(Ei,u,Fe.playButton)};e:Ai=G(je.state.playPrevChapterDisabledTooltip);return[it,ye,J,ke,Oe,rt,Ce,at,Ge,Ke,$e,Ne,ze,K,et,_t,vt,ce,bt,si,Fe,Jt,ji,m,I,v,E,A,L,le,Y,di,$i,en,Cn,Qt,Mi,mi,nn,Hi,dn,Vi,zi,ot,pi,Tn,r,s,a,l,o,w,X,se,F,ne,P,U,we,qe,Ze,Xe,He,oi,Bt,We,xe,lt,ht,Gt,_i,Nt,Yi,an,ai,Di,kn,Ti,un,hi,Ni,gi,Pi,bi,Ht,fn,Zi,ui,Ei,Xi,qi,yt,cn,It,Oi,xi,ii,vi,yi,fi,li,Ut,ci,Fi,Sn,Ki,ln,rn,mn,Dn,Je,de,Te,ve,Mt,St,tn,Yt,n,u,c,h,g,k,y,b,R,ae,V,ee,pn,_n,Pn,xt,ni,Nn,qn,On,Xt,jn,Vn,hn,Wn,Ln,In,Wi,gn,En,ie,x,mt,Wt,bn,wi,Yn,oo]}var tf=class extends W{constructor(e){super(),Q(this,e,c5,f5,j,{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},$3,[-1,-1,-1,-1,-1,-1])}},N0=tf;function d5(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 l0({props:r}),pe.push(()=>De(e,"controlsElementRef",o)),{c(){N(e.$$.fragment)},m(l,a){B(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],Be(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){D(e,l)}}}function m5(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 N0({props:r}),pe.push(()=>De(e,"controlsElementRef",o)),{c(){N(e.$$.fragment)},m(l,a){B(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],Be(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){D(e,l)}}}function p5(i){let e,t,n,o,r=[m5,d5],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=dt()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let c=e;e=a(s,u),e===c?l[e].p(s,u):(ue(),_(l[c],1,1,()=>{l[c]=null}),fe(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&C(n),l[e].d(s)}}}function _5(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:c}=e,{logoHidden:m}=e,{logoTargetUrl:h=""}=e,{showNextPrevButtons:w}=e,{nextButtonActive:g}=e,{prevButtonActive:k}=e,{isOneVideoPlaylist:y=!1}=e,{supportLink:I}=e,{customFullscreenSupported:v=!0}=e,{playNextVideo:b}=e,{playPrevVideo:E}=e,{repeatPlaylist:A}=e,{toggleFullscreen:L}=e,{returnFocus:R=ds.noop}=e,{seekToInteractive:le}=e,{toggleGraph:ae}=e,{playPrevChapter:Y}=e,{onDisabledPlayPrevChapterClick:V=ds.noop}=e,{onDisabledSeekToInteractiveClick:ee=ds.noop}=e,se=st().ui.isMobile;z(i,se,P=>t(25,n=P));function F(P){a=P,t(0,a)}function ne(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,c=P.logoClickable),"logoHidden"in P&&t(7,m=P.logoHidden),"logoTargetUrl"in P&&t(8,h=P.logoTargetUrl),"showNextPrevButtons"in P&&t(9,w=P.showNextPrevButtons),"nextButtonActive"in P&&t(10,g=P.nextButtonActive),"prevButtonActive"in P&&t(11,k=P.prevButtonActive),"isOneVideoPlaylist"in P&&t(12,y=P.isOneVideoPlaylist),"supportLink"in P&&t(13,I=P.supportLink),"customFullscreenSupported"in P&&t(14,v=P.customFullscreenSupported),"playNextVideo"in P&&t(15,b=P.playNextVideo),"playPrevVideo"in P&&t(16,E=P.playPrevVideo),"repeatPlaylist"in P&&t(17,A=P.repeatPlaylist),"toggleFullscreen"in P&&t(18,L=P.toggleFullscreen),"returnFocus"in P&&t(19,R=P.returnFocus),"seekToInteractive"in P&&t(20,le=P.seekToInteractive),"toggleGraph"in P&&t(21,ae=P.toggleGraph),"playPrevChapter"in P&&t(22,Y=P.playPrevChapter),"onDisabledPlayPrevChapterClick"in P&&t(23,V=P.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in P&&t(24,ee=P.onDisabledSeekToInteractiveClick)},[a,o,r,l,s,u,c,m,h,w,g,k,y,I,v,b,E,A,L,R,le,ae,Y,V,ee,n,se,F,ne]}var nf=class extends W{constructor(e){super(),Q(this,e,_5,p5,j,{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})}},ms=nf;function h5(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,g,k=i[2].default,y=Ie(k,i,i[1],null),I=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"51"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-icon"},{role:"img"},i[0]],v={};for(let b=0;b<I.length;b+=1)v=re(v,I[b]);return{c(){e=q("svg"),y&&y.c(),t=q("g"),n=q("path"),o=q("path"),r=q("defs"),l=q("filter"),a=q("feFlood"),s=q("feColorMatrix"),u=q("feOffset"),c=q("feGaussianBlur"),m=q("feColorMatrix"),h=q("feBlend"),w=q("feBlend"),f(n,"fill","#fff"),f(n,"d","M15.537 10.534a1.157 1.157 0 0 0 .003 1.96l7.658 4.823c.78.491 1.798-.065 1.798-.981v-3.3c7.265.512 13 6.568 13 13.964 0 7.732-6.268 14-14 14-5.98 0-11.088-3.75-13.093-9.032a1.5 1.5 0 0 0-2.805 1.064C10.531 39.441 16.73 44 23.996 44c9.39 0 17-7.611 17-17 0-9.053-7.076-16.453-16-16.971V6.664c0-.918-1.021-1.473-1.8-.98z"),f(o,"stroke","#000"),f(o,"stroke-opacity",".12"),f(o,"stroke-width",".5"),f(o,"d","M15.404 10.322a1.407 1.407 0 0 0 .003 2.384l7.657 4.823c.944.594 2.182-.076 2.182-1.193v-3.03c7.008.631 12.5 6.522 12.5 13.694 0 7.594-6.156 13.75-13.75 13.75-5.873 0-10.89-3.683-12.86-8.871a1.75 1.75 0 1 0-3.272 1.242c2.469 6.503 8.758 11.129 16.132 11.129 9.527 0 17.25-7.723 17.25-17.25 0-9.107-7.056-16.565-16-17.205V6.664c0-1.118-1.241-1.788-2.184-1.19z"),f(t,"filter","url(#a)"),f(a,"flood-opacity","0"),f(a,"result","BackgroundImageFix"),f(s,"in","SourceAlpha"),f(s,"result","hardAlpha"),f(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(c,"stdDeviation","2.5"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(h,"in2","BackgroundImageFix"),f(h,"result","effect1_dropShadow_2260_100684"),f(w,"in","SourceGraphic"),f(w,"in2","effect1_dropShadow_2260_100684"),f(w,"result","shape"),f(l,"id","a"),f(l,"width","43.996"),f(l,"height","49.5"),f(l,"x","2.5"),f(l,"y","0"),f(l,"color-interpolation-filters","sRGB"),f(l,"filterUnits","userSpaceOnUse"),be(e,v)},m(b,E){S(b,e,E),y&&y.m(e,null),p(e,t),p(t,n),p(t,o),p(e,r),p(r,l),p(l,a),p(l,s),p(l,u),p(l,c),p(l,m),p(l,h),p(l,w),g=!0},p(b,[E]){y&&y.p&&(!g||E&2)&&Ae(y,k,b,b[1],g?Ee(k,b[1],E,null):Me(b[1]),null),be(e,v=Le(I,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"51"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-icon"},{role:"img"},E&1&&b[0]]))},i(b){g||(d(y,b),g=!0)},o(b){_(y,b),g=!1},d(b){b&&C(e),y&&y.d(b)}}}function g5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var of=class extends W{constructor(e){super(),Q(this,e,g5,h5,j,{})}},q0=of;function b5(i){let e,t;return e=new q0({props:{style:i[0]}}),{c(){N(e.$$.fragment)},m(n,o){B(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){D(e,n)}}}function v5(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 lf=class extends W{constructor(e){super(),Q(this,e,v5,b5,j,{reversed:1})}},O0=lf;function y5(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,g,k,y,I=i[2].default,v=Ie(I,i,i[1],null),b=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-on-icon"},{role:"img"},i[0]],E={};for(let A=0;A<b.length;A+=1)E=re(E,b[A]);return{c(){e=q("svg"),v&&v.c(),t=q("g"),n=q("path"),o=q("path"),r=q("defs"),l=q("clipPath"),a=q("path"),s=q("filter"),u=q("feFlood"),c=q("feColorMatrix"),m=q("feOffset"),h=q("feGaussianBlur"),w=q("feColorMatrix"),g=q("feBlend"),k=q("feBlend"),f(n,"fill","#fff"),f(n,"fill-rule","evenodd"),f(n,"d","M28.167 7h-8.334c-2.463 0-4.404 0-5.966.128-1.594.13-2.925.4-4.134 1.016a10.5 10.5 0 0 0-4.589 4.59c-.616 1.208-.886 2.54-1.016 4.133C4 18.429 4 20.37 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.594-.13 2.925-.4 4.134-1.016a10.5 10.5 0 0 0 4.589-4.59c.616-1.208.886-2.54 1.016-4.133.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7M13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22m18.5 6a1.5 1.5 0 0 0 0 3h4a1.5 1.5 0 0 0 0-3zM22 22a1.5 1.5 0 0 1 1.5-1.5h11a1.5 1.5 0 0 1 0 3h-11A1.5 1.5 0 0 1 22 22"),f(n,"clip-rule","evenodd"),f(o,"stroke","#000"),f(o,"stroke-opacity",".12"),f(o,"stroke-width",".5"),f(o,"d","M28.167 6.75h-8.344c-2.455 0-4.405 0-5.977.128-1.609.132-2.976.407-4.226 1.044a10.75 10.75 0 0 0-4.698 4.698c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.609-.132 2.976-.407 4.226-1.044a10.75 10.75 0 0 0 4.698-4.698c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm17 7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm-7-7.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Z"),f(t,"clip-path","url(#c)"),f(t,"filter","url(#a)"),f(a,"fill","#fff"),f(a,"d","M0 0h48v48H0z"),f(l,"id","c"),f(u,"flood-opacity","0"),f(u,"result","BackgroundImageFix"),f(c,"in","SourceAlpha"),f(c,"result","hardAlpha"),f(c,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(h,"stdDeviation","2.5"),f(w,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(g,"in2","BackgroundImageFix"),f(g,"result","effect1_dropShadow_2260_104204"),f(k,"in","SourceGraphic"),f(k,"in2","effect1_dropShadow_2260_104204"),f(k,"result","shape"),f(s,"id","a"),f(s,"width","51"),f(s,"height","45"),f(s,"x","-1.5"),f(s,"y","1.5"),f(s,"color-interpolation-filters","sRGB"),f(s,"filterUnits","userSpaceOnUse"),be(e,E)},m(A,L){S(A,e,L),v&&v.m(e,null),p(e,t),p(t,n),p(t,o),p(e,r),p(r,l),p(l,a),p(r,s),p(s,u),p(s,c),p(s,m),p(s,h),p(s,w),p(s,g),p(s,k),y=!0},p(A,[L]){v&&v.p&&(!y||L&2)&&Ae(v,I,A,A[1],y?Ee(I,A[1],L,null):Me(A[1]),null),be(e,E=Le(b,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-on-icon"},{role:"img"},L&1&&A[0]]))},i(A){y||(d(v,A),y=!0)},o(A){_(v,A),y=!1},d(A){A&&C(e),v&&v.d(A)}}}function w5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var rf=class extends W{constructor(e){super(),Q(this,e,w5,y5,j,{})}},F0=rf;function k5(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,g,k,y,I,v=i[2].default,b=Ie(v,i,i[1],null),E=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-off-icon"},{role:"img"},i[0]],A={};for(let L=0;L<E.length;L+=1)A=re(A,E[L]);return{c(){e=q("svg"),b&&b.c(),t=q("g"),n=q("path"),o=q("path"),r=q("path"),l=q("defs"),a=q("clipPath"),s=q("path"),u=q("filter"),c=q("feFlood"),m=q("feColorMatrix"),h=q("feOffset"),w=q("feGaussianBlur"),g=q("feColorMatrix"),k=q("feBlend"),y=q("feBlend"),f(n,"fill","#fff"),f(n,"fill-rule","evenodd"),f(n,"d","M6.56 4.44a1.5 1.5 0 1 0-2.12 2.12l3.088 3.09a10.5 10.5 0 0 0-2.384 3.083c-.616 1.21-.886 2.54-1.016 4.134C4 18.429 4 20.369 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.437-.117 2.66-.348 3.773-.844l3.533 3.533a1.5 1.5 0 0 0 2.122-2.122l-37-37ZM13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22"),f(n,"clip-rule","evenodd"),f(o,"fill","#fff"),f(o,"d","M34.5 23.5h-4.639l12.552 12.551q.237-.381.443-.784c.616-1.21.886-2.54 1.016-4.134.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7h-8.334c-2.463 0-4.404 0-5.966.128l-.347.03L26.86 20.5h7.64a1.5 1.5 0 0 1 0 3"),f(r,"stroke","#000"),f(r,"stroke-opacity",".12"),f(r,"stroke-width",".5"),f(r,"d","M29.861 23.25h-.603l.427.427 12.55 12.551.223.223.167-.268q.243-.39.453-.803c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128h-8.354c-2.455 0-4.405 0-5.977.128q-.177.014-.35.032l-.527.051.374.374 13.341 13.342.074.073H34.5a1.25 1.25 0 1 1 0 2.5zM6.737 4.263a1.75 1.75 0 0 0-2.474 2.474l2.903 2.904a10.8 10.8 0 0 0-2.244 2.979c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.384-.114 2.59-.333 3.696-.797l3.413 3.412a1.75 1.75 0 1 0 2.474-2.474zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Z"),f(t,"clip-path","url(#c)"),f(t,"filter","url(#a)"),f(s,"fill","#fff"),f(s,"d","M0 0h48v48H0z"),f(a,"id","c"),f(c,"flood-opacity","0"),f(c,"result","BackgroundImageFix"),f(m,"in","SourceAlpha"),f(m,"result","hardAlpha"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(w,"stdDeviation","2.5"),f(g,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(k,"in2","BackgroundImageFix"),f(k,"result","effect1_dropShadow_2260_104293"),f(y,"in","SourceGraphic"),f(y,"in2","effect1_dropShadow_2260_104293"),f(y,"result","shape"),f(u,"id","a"),f(u,"width","51"),f(u,"height","51"),f(u,"x","-1.5"),f(u,"y","-1.5"),f(u,"color-interpolation-filters","sRGB"),f(u,"filterUnits","userSpaceOnUse"),be(e,A)},m(L,R){S(L,e,R),b&&b.m(e,null),p(e,t),p(t,n),p(t,o),p(t,r),p(e,l),p(l,a),p(a,s),p(l,u),p(u,c),p(u,m),p(u,h),p(u,w),p(u,g),p(u,k),p(u,y),I=!0},p(L,[R]){b&&b.p&&(!I||R&2)&&Ae(b,v,L,L[1],I?Ee(v,L[1],R,null):Me(L[1]),null),be(e,A=Le(E,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-off-icon"},{role:"img"},R&1&&L[0]]))},i(L){I||(d(b,L),I=!0)},o(L){_(b,L),I=!1},d(L){L&&C(e),b&&b.d(L)}}}function C5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var sf=class extends W{constructor(e){super(),Q(this,e,C5,k5,j,{})}},H0=sf;function S5(i){let e,t;return e=new F0({}),{c(){N(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function T5(i){let e,t;return e=new H0({}),{c(){N(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function P5(i){let e,t,n,o,r=[T5,S5],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=dt()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let c=e;e=a(s,u),e!==c&&(ue(),_(l[c],1,1,()=>{l[c]=null}),fe(),t=l[e],t||(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&C(n),l[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 af=class extends W{constructor(e){super(),Q(this,e,I5,P5,j,{isOff:0})}},uf=af;function E5(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,g,k=i[2].default,y=Ie(k,i,i[1],null),I=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"rate-change-icon"},{role:"img"},i[0]],v={};for(let b=0;b<I.length;b+=1)v=re(v,I[b]);return{c(){e=q("svg"),y&&y.c(),t=q("g"),n=q("path"),o=q("path"),r=q("defs"),l=q("filter"),a=q("feFlood"),s=q("feColorMatrix"),u=q("feOffset"),c=q("feGaussianBlur"),m=q("feColorMatrix"),h=q("feBlend"),w=q("feBlend"),f(n,"fill","#fff"),f(n,"d","M24 22.677v-5.87a1.2 1.2 0 0 0-1.792-1.045L9.51 22.955a1.2 1.2 0 0 0 0 2.088l12.697 7.192a1.2 1.2 0 0 0 1.791-1.044v-5.873l12.21 6.916A1.2 1.2 0 0 0 38 31.19V16.805a1.2 1.2 0 0 0-1.791-1.044z"),f(o,"stroke","#000"),f(o,"stroke-opacity",".12"),f(o,"stroke-width",".5"),f(o,"d","M24.25 16.806v5.442l11.835-6.704a1.45 1.45 0 0 1 2.165 1.261V31.19a1.45 1.45 0 0 1-2.165 1.262L24.25 25.747v5.444a1.45 1.45 0 0 1-2.164 1.262L9.388 25.26a1.45 1.45 0 0 1 0-2.523l12.697-7.192a1.45 1.45 0 0 1 2.164 1.261Z"),f(t,"filter","url(#a)"),f(a,"flood-opacity","0"),f(a,"result","BackgroundImageFix"),f(s,"in","SourceAlpha"),f(s,"result","hardAlpha"),f(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(c,"stdDeviation","2.5"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(h,"in2","BackgroundImageFix"),f(h,"result","effect1_dropShadow_2260_106627"),f(w,"in","SourceGraphic"),f(w,"in2","effect1_dropShadow_2260_106627"),f(w,"result","shape"),f(l,"id","a"),f(l,"width","40.098"),f(l,"height","27.785"),f(l,"x","3.402"),f(l,"y","10.105"),f(l,"color-interpolation-filters","sRGB"),f(l,"filterUnits","userSpaceOnUse"),be(e,v)},m(b,E){S(b,e,E),y&&y.m(e,null),p(e,t),p(t,n),p(t,o),p(e,r),p(r,l),p(l,a),p(l,s),p(l,u),p(l,c),p(l,m),p(l,h),p(l,w),g=!0},p(b,[E]){y&&y.p&&(!g||E&2)&&Ae(y,k,b,b[1],g?Ee(k,b[1],E,null):Me(b[1]),null),be(e,v=Le(I,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"rate-change-icon"},{role:"img"},E&1&&b[0]]))},i(b){g||(d(y,b),g=!0)},o(b){_(y,b),g=!1},d(b){b&&C(e),y&&y.d(b)}}}function A5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var ff=class extends W{constructor(e){super(),Q(this,e,A5,E5,j,{})}},z0=ff;function M5(i){let e,t;return e=new z0({props:{style:i[0]}}),{c(){N(e.$$.fragment)},m(n,o){B(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){D(e,n)}}}function V5(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 cf=class extends W{constructor(e){super(),Q(this,e,V5,M5,j,{reversed:1})}},U0=cf;function L5(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,g,k=i[2].default,y=Ie(k,i,i[1],null),I=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-seek-icon"},{role:"img"},i[0]],v={};for(let b=0;b<I.length;b+=1)v=re(v,I[b]);return{c(){e=q("svg"),y&&y.c(),t=q("g"),n=q("path"),o=q("path"),r=q("defs"),l=q("filter"),a=q("feFlood"),s=q("feColorMatrix"),u=q("feOffset"),c=q("feGaussianBlur"),m=q("feColorMatrix"),h=q("feBlend"),w=q("feBlend"),f(n,"fill","#fff"),f(n,"d","M14 21.817c.631-.505 1.627-1.054 3.084-1.857l13.009-7.172c2.268-1.25 3.402-1.875 4.332-1.778a2.9 2.9 0 0 1 2.026 1.134c.549.73.549 1.991.549 4.511v14.69c0 2.52 0 3.78-.549 4.51a2.9 2.9 0 0 1-2.026 1.135c-.93.097-2.064-.528-4.332-1.778L17.084 28.04c-1.457-.803-2.453-1.352-3.084-1.857V34.5a1.5 1.5 0 0 1-3 0v-21a1.5 1.5 0 0 1 3 0z"),f(o,"stroke","#000"),f(o,"stroke-opacity",".12"),f(o,"stroke-width",".5"),f(o,"d","m16.964 19.74-.029.016c-1.162.641-2.046 1.129-2.685 1.567V13.5a1.75 1.75 0 1 0-3.5 0v21a1.75 1.75 0 1 0 3.5 0v-7.823c.639.438 1.523.926 2.685 1.567l.029.015 13.008 7.172.012.006c1.124.62 1.983 1.093 2.676 1.398.695.306 1.26.46 1.791.404a3.16 3.16 0 0 0 2.2-1.233c.317-.421.46-.976.53-1.711.069-.733.069-1.688.069-2.936V16.641c0-1.248 0-2.203-.07-2.936-.07-.735-.212-1.29-.529-1.711a3.16 3.16 0 0 0-2.2-1.233c-.53-.055-1.096.098-1.79.404-.694.305-1.553.778-2.677 1.398l-.012.006z"),f(t,"filter","url(#a)"),f(a,"flood-opacity","0"),f(a,"result","BackgroundImageFix"),f(s,"in","SourceAlpha"),f(s,"result","hardAlpha"),f(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(c,"stdDeviation","2.5"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(h,"in2","BackgroundImageFix"),f(h,"result","effect1_dropShadow_2340_106922"),f(w,"in","SourceGraphic"),f(w,"in2","effect1_dropShadow_2340_106922"),f(w,"result","shape"),f(l,"id","a"),f(l,"width","37"),f(l,"height","37"),f(l,"x","5.5"),f(l,"y","5.5"),f(l,"color-interpolation-filters","sRGB"),f(l,"filterUnits","userSpaceOnUse"),be(e,v)},m(b,E){S(b,e,E),y&&y.m(e,null),p(e,t),p(t,n),p(t,o),p(e,r),p(r,l),p(l,a),p(l,s),p(l,u),p(l,c),p(l,m),p(l,h),p(l,w),g=!0},p(b,[E]){y&&y.p&&(!g||E&2)&&Ae(y,k,b,b[1],g?Ee(k,b[1],E,null):Me(b[1]),null),be(e,v=Le(I,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-seek-icon"},{role:"img"},E&1&&b[0]]))},i(b){g||(d(y,b),g=!0)},o(b){_(y,b),g=!1},d(b){b&&C(e),y&&y.d(b)}}}function R5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var df=class extends W{constructor(e){super(),Q(this,e,R5,L5,j,{})}},K0=df;function B5(i){let e,t;return e=new K0({props:{style:i[0]}}),{c(){N(e.$$.fragment)},m(n,o){B(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){D(e,n)}}}function D5(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 mf=class extends W{constructor(e){super(),Q(this,e,D5,B5,j,{reversed:1})}},j0=mf;function N5(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 W0(i){let e,t=["BACKWARD_SEEK","FORWARD_SEEK"].includes(i[4]),n,o,r,l,a,s,u=["RATE_DOWN","RATE_UP"].includes(i[4]),c,m=["EPISODE_PREV","EPISODE_NEXT"].includes(i[4]),h,w,g,k,y,I=t&&G0(i),v=i[4]==="PAUSE"&&Q0(i),b=i[4]==="PLAY"&&Y0(i),E=i[4]==="REPLAY"&&Z0(i),A=i[4]==="SUBTITLES_OFF"&&X0(i),L=i[4]==="SUBTITLES_ON"&&J0(i),R=u&&x0(i),le=m&&$0(i),ae=i[4]==="MUTE"&&ep(i),Y=i[4]==="VOLUME"&&tp(i),V=i[5]&&ip(i);return{c(){e=T("div"),I&&I.c(),n=O(),v&&v.c(),o=O(),b&&b.c(),r=O(),E&&E.c(),l=O(),A&&A.c(),a=O(),L&&L.c(),s=O(),R&&R.c(),c=O(),le&&le.c(),h=O(),ae&&ae.c(),w=O(),Y&&Y.c(),g=O(),V&&V.c(),k=dt(),f(e,"class","svelte-4ftgwp")},m(ee,X){S(ee,e,X),I&&I.m(e,null),p(e,n),v&&v.m(e,null),p(e,o),b&&b.m(e,null),p(e,r),E&&E.m(e,null),p(e,l),A&&A.m(e,null),p(e,a),L&&L.m(e,null),p(e,s),R&&R.m(e,null),p(e,c),le&&le.m(e,null),p(e,h),ae&&ae.m(e,null),p(e,w),Y&&Y.m(e,null),S(ee,g,X),V&&V.m(ee,X),S(ee,k,X),y=!0},p(ee,X){X&16&&(t=["BACKWARD_SEEK","FORWARD_SEEK"].includes(ee[4])),t?I?(I.p(ee,X),X&16&&d(I,1)):(I=G0(ee),I.c(),d(I,1),I.m(e,n)):I&&(ue(),_(I,1,1,()=>{I=null}),fe()),ee[4]==="PAUSE"?v?X&16&&d(v,1):(v=Q0(ee),v.c(),d(v,1),v.m(e,o)):v&&(ue(),_(v,1,1,()=>{v=null}),fe()),ee[4]==="PLAY"?b?X&16&&d(b,1):(b=Y0(ee),b.c(),d(b,1),b.m(e,r)):b&&(ue(),_(b,1,1,()=>{b=null}),fe()),ee[4]==="REPLAY"?E?X&16&&d(E,1):(E=Z0(ee),E.c(),d(E,1),E.m(e,l)):E&&(ue(),_(E,1,1,()=>{E=null}),fe()),ee[4]==="SUBTITLES_OFF"?A?X&16&&d(A,1):(A=X0(ee),A.c(),d(A,1),A.m(e,a)):A&&(ue(),_(A,1,1,()=>{A=null}),fe()),ee[4]==="SUBTITLES_ON"?L?X&16&&d(L,1):(L=J0(ee),L.c(),d(L,1),L.m(e,s)):L&&(ue(),_(L,1,1,()=>{L=null}),fe()),X&16&&(u=["RATE_DOWN","RATE_UP"].includes(ee[4])),u?R?(R.p(ee,X),X&16&&d(R,1)):(R=x0(ee),R.c(),d(R,1),R.m(e,c)):R&&(ue(),_(R,1,1,()=>{R=null}),fe()),X&16&&(m=["EPISODE_PREV","EPISODE_NEXT"].includes(ee[4])),m?le?(le.p(ee,X),X&16&&d(le,1)):(le=$0(ee),le.c(),d(le,1),le.m(e,h)):le&&(ue(),_(le,1,1,()=>{le=null}),fe()),ee[4]==="MUTE"?ae?X&16&&d(ae,1):(ae=ep(ee),ae.c(),d(ae,1),ae.m(e,w)):ae&&(ue(),_(ae,1,1,()=>{ae=null}),fe()),ee[4]==="VOLUME"?Y?X&16&&d(Y,1):(Y=tp(ee),Y.c(),d(Y,1),Y.m(e,null)):Y&&(ue(),_(Y,1,1,()=>{Y=null}),fe()),ee[5]?V?V.p(ee,X):(V=ip(ee),V.c(),V.m(k.parentNode,k)):V&&(V.d(1),V=null)},i(ee){y||(d(I),d(v),d(b),d(E),d(A),d(L),d(R),d(le),d(ae),d(Y),y=!0)},o(ee){_(I),_(v),_(b),_(E),_(A),_(L),_(R),_(le),_(ae),_(Y),y=!1},d(ee){ee&&(C(e),C(g),C(k)),I&&I.d(),v&&v.d(),b&&b.d(),E&&E.d(),A&&A.d(),L&&L.d(),R&&R.d(),le&&le.d(),ae&&ae.d(),Y&&Y.d(),V&&V.d(ee)}}}function G0(i){let e,t;return e=new O0({props:{reversed:i[4]==="FORWARD_SEEK"}}),{c(){N(e.$$.fragment)},m(n,o){B(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){D(e,n)}}}function Q0(i){let e,t;return e=new jr({}),{c(){N(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Y0(i){let e,t;return e=new Tl({}),{c(){N(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Z0(i){let e,t;return e=new ts({}),{c(){N(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function X0(i){let e,t;return e=new uf({props:{isOff:!0}}),{c(){N(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function J0(i){let e,t;return e=new uf({}),{c(){N(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function x0(i){let e,t;return e=new U0({props:{reversed:i[4]==="RATE_UP"}}),{c(){N(e.$$.fragment)},m(n,o){B(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){D(e,n)}}}function $0(i){let e,t;return e=new j0({props:{reversed:i[4]==="EPISODE_NEXT"}}),{c(){N(e.$$.fragment)},m(n,o){B(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){D(e,n)}}}function ep(i){let e,t;return e=new $o({props:{volume:0}}),{c(){N(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function tp(i){let e,t;return e=new $o({props:{volume:1}}),{c(){N(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function ip(i){let e,t;return{c(){e=T("span"),t=Ve(i[5]),f(e,"class","hot-key-helpers-text svelte-4ftgwp")},m(n,o){S(n,e,o),p(e,t)},p(n,o){o&32&&Ye(t,n[5])},d(n){n&&C(e)}}}function q5(i){let e,t,n=!i[1]&&i[4]&&W0(i);return{c(){e=T("div"),n&&n.c(),f(e,"class","hot-key-helpers-container svelte-4ftgwp"),H(e,"hidden",i[1]),H(e,"hot-key-helpers-container--left",i[2]),H(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=W0(o),n.c(),d(n,1),n.m(e,null)):n&&(ue(),_(n,1,1,()=>{n=null}),fe()),(!t||r&2)&&H(e,"hidden",o[1]),(!t||r&4)&&H(e,"hot-key-helpers-container--left",o[2]),(!t||r&8)&&H(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 O5(i,e,t){let n,o=he,r=()=>(o(),o=ei(l,h=>t(6,n=h)),l);i.$$.on_destroy.push(()=>o());let{data:l}=e;r();let a,s,u,c,m;return i.$$set=h=>{"data"in h&&r(t(0,l=h.data))},i.$$.update=()=>{if(i.$$.dirty&64)e:t(1,a=!n),t(2,s=(n==null?void 0:n.type)==="BACKWARD_SEEK"),t(3,u=(n==null?void 0:n.type)==="FORWARD_SEEK"),t(4,c=n==null?void 0:n.type),n!=null&&n.t?t(5,m=G(n.t.key,{value:n.t.value||""})):t(5,m=n==null?void 0:n.text)},[l,a,s,u,c,m,n]}var pf=class extends W{constructor(e){super(),Q(this,e,O5,q5,j,{data:0},N5)}},np=pf;function F5(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 H5(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,g,k,y,I,v,b;return r=new xn({props:{direction:"up"}}),s=new xn({props:{direction:"up"}}),h=new xn({props:{direction:"up"}}),k=new xn({props:{direction:"up"}}),{c(){e=T("div"),t=T("div"),n=T("div"),o=T("div"),N(r.$$.fragment),l=O(),a=T("div"),N(s.$$.fragment),u=O(),c=T("div"),m=T("div"),N(h.$$.fragment),w=O(),g=T("div"),N(k.$$.fragment),f(o,"class","button button-up svelte-1yzc86r"),f(a,"class","button button-right svelte-1yzc86r"),f(n,"class","button-row svelte-1yzc86r"),f(m,"class","button button-left svelte-1yzc86r"),f(g,"class","button button-down svelte-1yzc86r"),f(c,"class","button-row svelte-1yzc86r"),f(t,"class","button-block svelte-1yzc86r"),f(t,"aria-hidden","true"),f(e,"class","immersive-controls svelte-1yzc86r"),f(e,"tabindex","0"),f(e,"role","button"),f(e,"aria-label",y=G("aria_label_spherical_control")),H(e,"m-shifted",i[0])},m(E,A){S(E,e,A),p(e,t),p(t,n),p(n,o),B(r,o,null),p(n,l),p(n,a),B(s,a,null),p(t,u),p(t,c),p(c,m),B(h,m,null),p(c,w),p(c,g),B(k,g,null),I=!0,v||(b=[me(o,"mousedown",i[1]),me(o,"mouseup",i[5]),me(o,"mouseleave",i[5]),me(a,"mousedown",i[3]),me(a,"mouseup",i[5]),me(a,"mouseleave",i[5]),me(m,"mousedown",i[4]),me(m,"mouseup",i[5]),me(m,"mouseleave",i[5]),me(g,"mousedown",i[2]),me(g,"mouseup",i[5]),me(g,"mouseleave",i[5]),me(e,"keydown",i[6]),me(e,"keyup",i[7])],v=!0)},p(E,[A]){(!I||A&1)&&H(e,"m-shifted",E[0])},i(E){I||(d(r.$$.fragment,E),d(s.$$.fragment,E),d(h.$$.fragment,E),d(k.$$.fragment,E),I=!0)},o(E){_(r.$$.fragment,E),_(s.$$.fragment,E),_(h.$$.fragment,E),_(k.$$.fragment,E),I=!1},d(E){E&&C(e),D(r),D(s),D(h),D(k),v=!1,nt(b)}}}function z5(i,e,t){let{isShifted:n=!1}=e,o=st(),r=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),l=()=>{o.actions.internal.startCameraManualRotation(0,1)},a=()=>{o.actions.internal.startCameraManualRotation(0,-1)},s=()=>{o.actions.internal.startCameraManualRotation(1,0)},u=()=>{o.actions.internal.startCameraManualRotation(-1,0)},c=()=>(o.actions.internal.stopCameraManualRotation(),null),m=w=>{if(r.has(w.code))switch(w.preventDefault(),w.stopPropagation(),w.code){case"ArrowUp":l();break;case"ArrowDown":a();break;case"ArrowLeft":u();break;case"ArrowRight":s();break}},h=w=>{r.has(w.code)&&(w.preventDefault(),w.stopPropagation(),c())};return i.$$set=w=>{"isShifted"in w&&t(0,n=w.isShifted)},[n,l,a,s,u,c,m,h]}var _f=class extends W{constructor(e){super(),Q(this,e,z5,H5,j,{isShifted:0},F5)}},ps=_f;function U5(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 op(i,e,t){let n=i.slice();return n[16]=e[t].value,n}function lp(i,e,t){let n=i.slice();return n[16]=e[t].value,n[17]=e[t].timeAppeared,n}function rp(i){let e,t;function n(l,a){return l[7]&&l[8]?W5:l[5]?j5:K5}let o=n(i,-1),r=o(i);return{c(){e=T("div"),t=T("span"),r.c(),f(t,"class","caption svelte-ovfyp5"),f(e,"class","subtitles-caption svelte-ovfyp5"),H(e,"mobile",i[3])},m(l,a){S(l,e,a),p(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&&H(e,"mobile",l[3])},d(l){l&&C(e),r.d()}}}function K5(i){let e,t=Tt(i[1]),n=[];for(let o=0;o<t.length;o+=1)n[o]=sp(op(i,t,o));return{c(){for(let o=0;o<n.length;o+=1)n[o].c();e=dt()},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=Tt(o[1]);let l;for(l=0;l<t.length;l+=1){let a=op(o,t,l);n[l]?n[l].p(a,r):(n[l]=sp(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),Ri(n,o)}}}function j5(i){let e,t,n=Tt(i[6]),o=[];for(let r=0;r<n.length;r+=1)o[r]=up(lp(i,n,r));return{c(){e=T("span"),t=T("span");for(let r=0;r<o.length;r+=1)o[r].c();f(t,"class","caption-segment svelte-ovfyp5"),ki(t,"font-size",i[4]+"px"),f(e,"class","caption-line svelte-ovfyp5")},m(r,l){S(r,e,l),p(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=Tt(r[6]);let a;for(a=0;a<n.length;a+=1){let s=lp(r,n,a);o[a]?o[a].p(s,l):(o[a]=up(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&&ki(t,"font-size",r[4]+"px")},d(r){r&&C(e),Ri(o,r)}}}function W5(i){let e,t,n=G("subtitles_auto_caption")+"",o;return{c(){e=T("span"),t=T("span"),o=Ve(n),f(t,"class","caption-segment svelte-ovfyp5"),ki(t,"font-size",i[4]+"px"),f(e,"class","caption-line svelte-ovfyp5")},m(r,l){S(r,e,l),p(e,t),p(t,o)},p(r,l){l&16&&ki(t,"font-size",r[4]+"px")},d(r){r&&C(e)}}}function sp(i){let e,t,n=i[16]+"",o,r;return{c(){e=T("span"),t=T("span"),o=Ve(n),r=O(),f(t,"class","caption-segment svelte-ovfyp5"),ki(t,"font-size",i[4]+"px"),f(e,"class","caption-line svelte-ovfyp5")},m(l,a){S(l,e,a),p(e,t),p(t,o),p(e,r)},p(l,a){a&2&&n!==(n=l[16]+"")&&Ye(o,n),a&16&&ki(t,"font-size",l[4]+"px")},d(l){l&&C(e)}}}function ap(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]+"")&&Ye(t,e)},d(n){n&&C(t)}}}function up(i){let e,t=(!i[17]||i[17]<=i[2])&&ap(i);return{c(){t&&t.c(),e=dt()},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=ap(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){n&&C(e),t&&t.d(n)}}}function G5(i){let e,t=i[1].length>0&&rp(i);return{c(){e=T("div"),t&&t.c(),f(e,"class","subtitles-container svelte-ovfyp5"),H(e,"shifted",i[0]),H(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=rp(n),t.c(),t.m(e,null)):t&&(t.d(1),t=null),o&1&&H(e,"shifted",n[0]),o&288&&H(e,"auto",n[5]&&!n[8])},i:he,o:he,d(n){n&&C(e),t&&t.d()}}}function Q5(i,e,t){let n,o,{shifted:r}=e,{captions:l}=e,{position:a}=e,{playerSize:s}=e,{isMobile:u=!1}=e,c=st(),m=Zt(),h=c.state.currentSubtitle$;z(i,h,b=>t(12,n=b));let w=c.state.isAutoSubtitleCaptionVisible$;z(i,w,b=>t(8,o=b));let g,k,y,I,v;return Ot(()=>{v=window.setTimeout(()=>{w.set(!1)},m.autoSubtitlesTimeout)}),Zn(()=>{window.clearTimeout(v)}),i.$$set=b=>{"shifted"in b&&t(0,r=b.shifted),"captions"in b&&t(1,l=b.captions),"position"in b&&t(2,a=b.position),"playerSize"in b&&t(11,s=b.playerSize),"isMobile"in b&&t(3,u=b.isMobile)},i.$$.update=()=>{if(i.$$.dirty&2048)e:{let b=s.width*.02;t(4,g=b<=m.minSubtitlesFontSize?m.minSubtitlesFontSize:b)}if(i.$$.dirty&2)e:t(5,k=l.some(b=>b.type==="timestamp"));if(i.$$.dirty&2)e:t(6,y=l.reduce((b,{type:E,value:A})=>(E==="timestamp"?b.push({timeAppeared:Number(A),value:""}):b.length===0?b.push({value:String(A)}):b[b.length-1].value=String(A),b),[]));if(i.$$.dirty&4096)e:t(7,I=!!n.isAuto)},[r,l,a,u,g,k,y,I,o,h,w,s,n]}var hf=class extends W{constructor(e){super(),Q(this,e,Q5,G5,j,{shifted:0,captions:1,position:2,playerSize:11,isMobile:3},U5)}},_s=hf;function Y5(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 fp(i){let e,t,n;return{c(){e=T("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]),f(e,"class","text svelte-1o62kpz")},m(o,r){S(o,e,r),p(e,t),p(e,n)},p(o,r){r&2&&Ye(n,o[1])},d(o){o&&C(e)}}}function Z5(i){let e,t,n,o,r,l,a=i[1]&&fp(i);return{c(){e=T("div"),t=T("div"),t.innerHTML='<svg class="icon svelte-1o62kpz" width="22" height="22" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path d="M1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm0-4v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11zm20-7H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="#fff"></path><path d="M0 0h24v24H0z"></path></g></svg>',n=O(),a&&a.c(),f(t,"class","icon_wrapper svelte-1o62kpz"),f(e,"class","wrapper svelte-1o62kpz"),f(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),p(e,t),p(e,n),a&&a.m(e,null),r||(l=me(e,"click",i[2]),r=!0)},p(s,[u]){s[1]?a?a.p(s,u):(a=fp(s),a.c(),a.m(e,null)):a&&(a.d(1),a=null),u&1&&o!==(o=`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${s[0]||""}')`)&&f(e,"style",o)},i:he,o:he,d(s){s&&C(e),a&&a.d(),r=!1,l()}}}function X5(i,e,t){let{thumbUrl:n}=e,{chromecastDeviceName:o}=e;function r(l){Fn.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 gf=class extends W{constructor(e){super(),Q(this,e,X5,Z5,j,{thumbUrl:0,chromecastDeviceName:1},Y5)}},hs=gf;function J5(i){let e,t,n,o=i[2].default,r=Ie(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=re(a,l[s]);return{c(){e=q("svg"),r&&r.c(),t=q("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M460 193.998a3.997 3.997 0 0 1 3.997-3.998h122.006a4.003 4.003 0 0 1 3.997 3.998v82.004a3.997 3.997 0 0 1-3.997 3.998H463.997a4.003 4.003 0 0 1-3.997-3.998zm6 2.993c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm112-72c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zM507 232a6 6 0 1 0 0-12 6 6 0 0 0 0 12m36 0a6 6 0 1 0 0-12 6 6 0 0 0 0 12m-18.05 15c6.05 0 11.624 4.446 11.944 4.65 2.106 1.35 3.252.772 3.957.156s1.15-2.806-1.044-4.657c-1.735-1.48-5.806-5.16-14.856-5.15s-12.95 3.5-14.792 5.185c-1.84 1.685-2.288 3.498-.973 4.657s2.315 1.158 4.357-.327c-.007.007 5.357-4.515 11.408-4.515z"),be(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ae(r,o,s,s[1],n?Ee(o,s[1],u,null):Me(s[1]),null),be(e,a=Le(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 x5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var bf=class extends W{constructor(e){super(),Q(this,e,x5,J5,j,{})}},cp=bf;function $5(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 e6(i){let e,t,n;return t=new cp({}),{c(){e=T("div"),N(t.$$.fragment),f(e,"class","container svelte-13zpvm8")},m(o,r){S(o,e,r),B(t,e,null),n=!0},p:he,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&C(e),D(t)}}}var vf=class extends W{constructor(e){super(),Q(this,e,null,e6,j,{},$5)}},gs=vf;function t6(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 i6(i){let e,t,n,o,r,l,a,s,u,c;return r=new Tl({}),{c(){e=T("div"),t=T("div"),n=T("div"),o=O(),N(r.$$.fragment),f(n,"class","playButtonBackground svelte-17wno3"),f(t,"class","playButton svelte-17wno3"),f(t,"tabindex","0"),f(t,"role","button"),f(t,"aria-label",l=G("tooltip_play")),f(e,"class","container svelte-17wno3"),f(e,"style",a=`background-color: #222; background-image: url('${i[0]||""}')`),H(e,"hidden",i[1])},m(m,h){S(m,e,h),p(e,t),p(t,n),p(t,o),B(r,t,null),s=!0,u||(c=[me(t,"keydown",i[3]),me(e,"click",ft(function(){Li(i[2])&&i[2].apply(this,arguments)}))],u=!0)},p(m,[h]){i=m,(!s||h&1&&a!==(a=`background-color: #222; background-image: url('${i[0]||""}')`))&&f(e,"style",a),(!s||h&2)&&H(e,"hidden",i[1])},i(m){s||(d(r.$$.fragment,m),s=!0)},o(m){_(r.$$.fragment,m),s=!1},d(m){m&&C(e),D(r),u=!1,nt(c)}}}function n6(i,e,t){let{thumbUrl:n}=e,{hidden:o}=e,{startVideo:r}=e,a=st().ui.startedByKeyboard$,s=u=>{let c=u.code;["Enter","Space"].includes(c)&&(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 yf=class extends W{constructor(e){super(),Q(this,e,n6,i6,j,{thumbUrl:0,hidden:1,startVideo:2,handlePressKey:3},t6)}get handlePressKey(){return this.$$.ctx[3]}},bs=yf;function o6(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(
26
+ Audio: `),k=Le(h),g=q(),y=Le(w),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(P,v){S(P,e,v),p(e,t),p(e,n),p(e,o),p(o,r),p(o,a),p(o,s),p(o,c),p(o,m),p(o,k),p(o,g),p(o,y)},p(P,v){v&1&&l!==(l=(P[0].videoCodec||"")+"")&&Ye(a,l),v&1&&u!==(u=P[0].hdr?"(HDR)":"")&&Ye(c,u),v&1&&h!==(h=(P[0].audioCodec||"")+"")&&Ye(k,h),v&1&&w!==(w=P[0].audioLanguage?`(${P[0].audioLanguage})`:"")&&Ye(y,w)},d(P){P&&C(e)}}}function k1(i){let e,t,n,o,r=i[0].viewport+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="Viewport",n=q(),o=T("span"),l=Le(r),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(a,s){S(a,e,s),p(e,t),p(e,n),p(e,o),p(o,l)},p(a,s){s&1&&r!==(r=a[0].viewport+"")&&Ye(l,r)},d(a){a&&C(e)}}}function C1(i){let e,t,n,o,r=i[0].videoSize+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="Video size",n=q(),o=T("span"),l=Le(r),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(a,s){S(a,e,s),p(e,t),p(e,n),p(e,o),p(o,l)},p(a,s){s&1&&r!==(r=a[0].videoSize+"")&&Ye(l,r)},d(a){a&&C(e)}}}function S1(i){let e,t,n,o,r=i[0].cdn+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="CDN host",n=q(),o=T("span"),l=Le(r),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(a,s){S(a,e,s),p(e,t),p(e,n),p(e,o),p(o,l)},p(a,s){s&1&&r!==(r=a[0].cdn+"")&&Ye(l,r)},d(a){a&&C(e)}}}function T1(i){let e,t,n,o,r=i[0].volume+"",l,a;return{c(){e=T("div"),t=T("div"),t.textContent="Volume",n=q(),o=T("span"),l=Le(r),a=Le(" %"),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(s,u){S(s,e,u),p(e,t),p(e,n),p(e,o),p(o,l),p(o,a)},p(s,u){u&1&&r!==(r=s[0].volume+"")&&Ye(l,r)},d(s){s&&C(e)}}}function P1(i){let e,t,n,o,r=i[0].buffer.toFixed(2)+"",l,a;return{c(){e=T("div"),t=T("div"),t.textContent="Buffer",n=q(),o=T("span"),l=Le(r),a=Le(" s"),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(s,u){S(s,e,u),p(e,t),p(e,n),p(e,o),p(o,l),p(o,a)},p(s,u){u&1&&r!==(r=s[0].buffer.toFixed(2)+"")&&Ye(l,r)},d(s){s&&C(e)}}}function I1(i){let e,t,n,o,r=[{value:i[0].currentVideoSegmentLength,title:"Video:"},{value:i[0].currentAudioSegmentLength,title:"Audio:"}].filter(M1).map(V1).join(" & ")+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="Segment",n=q(),o=T("span"),l=Le(r),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(a,s){S(a,e,s),p(e,t),p(e,n),p(e,o),p(o,l)},p(a,s){s&1&&r!==(r=[{value:a[0].currentVideoSegmentLength,title:"Video:"},{value:a[0].currentAudioSegmentLength,title:"Audio:"}].filter(M1).map(V1).join(" & ")+"")&&Ye(l,r)},d(a){a&&C(e)}}}function E1(i){let e,t,n,o,r,l,a=i[0].speed.toFixed(2)+"",s,u,c;return o=new Mr({props:{values:i[5]}}),{c(){e=T("div"),t=T("div"),t.textContent="Network",n=q(),B(o.$$.fragment),r=q(),l=T("span"),s=Le(a),u=Le(" Kbps"),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(m,h){S(m,e,h),p(e,t),p(e,n),L(o,e,null),p(e,r),p(e,l),p(l,s),p(l,u),c=!0},p(m,h){let k={};h&32&&(k.values=m[5]),o.$set(k),(!c||h&1)&&a!==(a=m[0].speed.toFixed(2)+"")&&Ye(s,a)},i(m){c||(d(o.$$.fragment,m),c=!0)},o(m){_(o.$$.fragment,m),c=!1},d(m){m&&C(e),R(o)}}}function A1(i){let e,t,n,o,r,l,a=i[0].bitrate.toFixed(2)+"",s,u,c;return o=new Mr({props:{values:i[6]}}),{c(){e=T("div"),t=T("div"),t.textContent="V bitrate",n=q(),B(o.$$.fragment),r=q(),l=T("span"),s=Le(a),u=Le(" Kbps"),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(m,h){S(m,e,h),p(e,t),p(e,n),L(o,e,null),p(e,r),p(e,l),p(l,s),p(l,u),c=!0},p(m,h){let k={};h&64&&(k.values=m[6]),o.$set(k),(!c||h&1)&&a!==(a=m[0].bitrate.toFixed(2)+"")&&Ye(s,a)},i(m){c||(d(o.$$.fragment,m),c=!0)},o(m){_(o.$$.fragment,m),c=!1},d(m){m&&C(e),R(o)}}}function yh(i){let e,t,n,o,r,l,a,s,u=i[0].version+"",c,m,h,k,g,w,y,P,v,b,I,N,M,O,re,ae,Y,ee,A,x,Z,z,U,V,Q,Ce,Fe,Ze,et,xe,ye,X,ke,Ge,tt=i[0].id&&b1(i),rt=i[0].vsid&&v1(i),we=i[0].provider&&y1(i),De=(i[0].videoCodec||i[0].audioCodec)&&w1(i),Je=i[0].viewport&&k1(i),st=i[0].videoSize&&C1(i),Se=i[0].cdn&&S1(i),se=i[0].volume&&T1(i),We=i[0].buffer&&P1(i),me=(i[0].currentVideoSegmentLength||i[0].currentAudioSegmentLength)&&I1(i),Ie=i[0].speed&&E1(i),Oe=i[0].bitrate&&A1(i);return Fe=new Mr({props:{values:i[4]}}),{c(){e=T("div"),t=T("button"),t.textContent="[x]",n=q(),o=T("div"),r=T("div"),l=T("div"),l.textContent="Version",a=q(),s=T("span"),c=Le(u),m=q(),tt&&tt.c(),h=q(),rt&&rt.c(),k=q(),we&&we.c(),g=q(),De&&De.c(),w=q(),Je&&Je.c(),y=q(),st&&st.c(),P=q(),Se&&Se.c(),v=q(),se&&se.c(),b=q(),We&&We.c(),I=q(),me&&me.c(),N=q(),M=T("div"),O=T("div"),O.textContent="Dropped",re=q(),ae=T("span"),Y=Le(i[2]),ee=Le(" / "),A=Le(i[1]),x=Le(" frames"),Z=q(),Ie&&Ie.c(),z=q(),Oe&&Oe.c(),U=q(),V=T("div"),Q=T("div"),Q.textContent="FPS",Ce=q(),B(Fe.$$.fragment),Ze=q(),et=T("span"),xe=Le(i[3]),f(t,"class","close svelte-1fypj5i"),f(t,"title","\u0437\u0430\u043A\u0440\u044B\u0442\u044C"),f(l,"class","svelte-1fypj5i"),f(r,"class","svelte-1fypj5i"),f(O,"class","svelte-1fypj5i"),f(M,"class","svelte-1fypj5i"),f(Q,"class","svelte-1fypj5i"),f(V,"class","svelte-1fypj5i"),f(o,"class","content svelte-1fypj5i"),f(e,"class","container svelte-1fypj5i"),f(e,"role","region"),f(e,"aria-label",ye=W("aria_label_debug_panel")),F(e,"container-mobile",i[7])},m(ce,Qe){S(ce,e,Qe),p(e,t),p(e,n),p(e,o),p(o,r),p(r,l),p(r,a),p(r,s),p(s,c),p(o,m),tt&&tt.m(o,null),p(o,h),rt&&rt.m(o,null),p(o,k),we&&we.m(o,null),p(o,g),De&&De.m(o,null),p(o,w),Je&&Je.m(o,null),p(o,y),st&&st.m(o,null),p(o,P),Se&&Se.m(o,null),p(o,v),se&&se.m(o,null),p(o,b),We&&We.m(o,null),p(o,I),me&&me.m(o,null),p(o,N),p(o,M),p(M,O),p(M,re),p(M,ae),p(ae,Y),p(ae,ee),p(ae,A),p(ae,x),p(o,Z),Ie&&Ie.m(o,null),p(o,z),Oe&&Oe.m(o,null),p(o,U),p(o,V),p(V,Q),p(V,Ce),L(Fe,V,null),p(V,Ze),p(V,et),p(et,xe),X=!0,ke||(Ge=de(t,"click",ut(i[9])),ke=!0)},p(ce,[Qe]){(!X||Qe&1)&&u!==(u=ce[0].version+"")&&Ye(c,u),ce[0].id?tt?tt.p(ce,Qe):(tt=b1(ce),tt.c(),tt.m(o,h)):tt&&(tt.d(1),tt=null),ce[0].vsid?rt?rt.p(ce,Qe):(rt=v1(ce),rt.c(),rt.m(o,k)):rt&&(rt.d(1),rt=null),ce[0].provider?we?we.p(ce,Qe):(we=y1(ce),we.c(),we.m(o,g)):we&&(we.d(1),we=null),ce[0].videoCodec||ce[0].audioCodec?De?De.p(ce,Qe):(De=w1(ce),De.c(),De.m(o,w)):De&&(De.d(1),De=null),ce[0].viewport?Je?Je.p(ce,Qe):(Je=k1(ce),Je.c(),Je.m(o,y)):Je&&(Je.d(1),Je=null),ce[0].videoSize?st?st.p(ce,Qe):(st=C1(ce),st.c(),st.m(o,P)):st&&(st.d(1),st=null),ce[0].cdn?Se?Se.p(ce,Qe):(Se=S1(ce),Se.c(),Se.m(o,v)):Se&&(Se.d(1),Se=null),ce[0].volume?se?se.p(ce,Qe):(se=T1(ce),se.c(),se.m(o,b)):se&&(se.d(1),se=null),ce[0].buffer?We?We.p(ce,Qe):(We=P1(ce),We.c(),We.m(o,I)):We&&(We.d(1),We=null),ce[0].currentVideoSegmentLength||ce[0].currentAudioSegmentLength?me?me.p(ce,Qe):(me=I1(ce),me.c(),me.m(o,N)):me&&(me.d(1),me=null),(!X||Qe&4)&&Ye(Y,ce[2]),(!X||Qe&2)&&Ye(A,ce[1]),ce[0].speed?Ie?(Ie.p(ce,Qe),Qe&1&&d(Ie,1)):(Ie=E1(ce),Ie.c(),d(Ie,1),Ie.m(o,z)):Ie&&(ue(),_(Ie,1,1,()=>{Ie=null}),fe()),ce[0].bitrate?Oe?(Oe.p(ce,Qe),Qe&1&&d(Oe,1)):(Oe=A1(ce),Oe.c(),d(Oe,1),Oe.m(o,U)):Oe&&(ue(),_(Oe,1,1,()=>{Oe=null}),fe());let $e={};Qe&16&&($e.values=ce[4]),Fe.$set($e),(!X||Qe&8)&&Ye(xe,ce[3]),(!X||Qe&128)&&F(e,"container-mobile",ce[7])},i(ce){X||(d(Ie),d(Oe),d(Fe.$$.fragment,ce),X=!0)},o(ce){_(Ie),_(Oe),_(Fe.$$.fragment,ce),X=!1},d(ce){ce&&C(e),tt&&tt.d(),rt&&rt.d(),we&&we.d(),De&&De.d(),Je&&Je.d(),st&&st.d(),Se&&Se.d(),se&&se.d(),We&&We.d(),me&&me.d(),Ie&&Ie.d(),Oe&&Oe.d(),R(Fe),ke=!1,Ge()}}}var M1=({value:i})=>i,V1=({value:i,title:e})=>`${e} ${((i!=null?i:0)/1e3).toFixed(2)} s`;function wh(i,e,t){let n,o=lt(),r=o.ui.debugPanelVisible,l=o.ui.isMobile;H(i,l,b=>t(7,n=b));let a=()=>{ca.safeStorage.remove(Hl),r.set(!1)},s=o.actions.internal.getDebugPanelData(),u=o.actions.internal.getVideoElement(),c=0,m=0,h=0,k=new yl(60),g=new yl(60),w=new yl(60),y=[],P=[],v=[];return Ft(()=>{ca.safeStorage.set(Hl,"true"),o.actions.internal.startLogging(),u&&(t(2,m=u.getVideoPlaybackQuality().droppedVideoFrames),t(1,c=u.getVideoPlaybackQuality().totalVideoFrames));let b=window.setInterval(()=>{t(0,s=o.actions.internal.getDebugPanelData())},500),I;return u&&(I=window.setInterval(()=>{if(u){t(2,m=u.getVideoPlaybackQuality().droppedVideoFrames);let N=u.getVideoPlaybackQuality().totalVideoFrames;t(3,h=N-c),t(1,c=N),k.push(h),s.speed&&g.push(s.speed),s.bitrate&&w.push(s.bitrate),t(4,y=k.getValuesFromBottom()),t(5,P=g.getValuesFromBottom()),t(6,v=w.getValuesFromBottom())}},1e3)),()=>{o.actions.internal.stopLogging(),clearInterval(b),I&&clearInterval(I)}}),[s,c,m,h,y,P,v,n,l,a]}var da=class extends j{constructor(e){super(),G(this,e,wh,yh,K,{},vh)}},Vr=da;function kh(i){Te(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 Ch(i){let e,t,n;return{c(){e=T("div"),f(e,"class","close svelte-1ome55p")},m(o,r){S(o,e,r),t||(n=de(e,"click",ut(i[0])),t=!0)},p:_e,i:_e,o:_e,d(o){o&&C(e),t=!1,n()}}}function Sh(i){function e(t){Fn.call(this,i,t)}return[e]}var ma=class extends j{constructor(e){super(),G(this,e,Sh,Ch,K,{},kh)}},L1=ma;var R1=require("@vkontakte/videoplayer-shared");function Th(i){Te(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 Ph(i){let e,t,n,o,r,l,a;return{c(){e=T("div"),t=T("canvas"),n=q(),o=D("svg"),r=D("g"),l=D("g"),a=D("path"),f(t,"class","timer-canvas svelte-8jhsry"),f(t,"width","100"),f(t,"height","100"),f(a,"class","_play"),f(a,"d","m8.13340613 5.10548415 10.49681277 6.24354325c.3559987.2117494.472936.6720001.2611866 1.0279989-.0638111.1072809-.1533894.1969388-.2606135.2608453l-10.4968128 6.256187c-.35581027.2120659-.81616483.095538-1.02823068-.2602722-.06921066-.1161237-.10574852-.2487949-.10574852-.3839792v-12.49973035c0-.41421357.33578644-.75.75-.75.13495801 0 .26741554.03641567.38340613.1054073z"),f(a,"fill","#fff"),f(l,"fill-rule","nonzero"),f(r,"fill","none"),f(r,"fill-rule","evenodd"),f(o,"class","timer-play-icon svelte-8jhsry"),f(o,"viewBox","0 0 24 24"),f(o,"xmlns","http://www.w3.org/2000/svg"),f(e,"class","timer svelte-8jhsry")},m(s,u){S(s,e,u),p(e,t),i[2](t),p(e,n),p(e,o),p(o,r),p(r,l),p(l,a)},p:_e,i:_e,o:_e,d(s){s&&C(e),i[2](null)}}}var Ih=5e3;function Eh(i,e,t){let{onTimerEnded:n=R1.noop}=e,o;Ft(()=>{let l,a=o.getContext("2d");if(!a)return;a.lineWidth=6,a.lineCap="round",a.strokeStyle="#fff";let s=Date.now(),u=()=>{let c=(Date.now()-s)/Ih;c<1?(a.clearRect(0,0,100,100),a.beginPath(),a.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*c),a.stroke(),l=requestAnimationFrame(u)):n()};return l=requestAnimationFrame(u),()=>{cancelAnimationFrame(l)}});function r(l){pe[l?"unshift":"push"](()=>{o=l,t(0,o)})}return i.$$set=l=>{"onTimerEnded"in l&&t(1,n=l.onTimerEnded)},[o,n,r]}var pa=class extends j{constructor(e){super(),G(this,e,Eh,Ph,K,{onTimerEnded:1},Th)}},B1=pa;function Ah(i){Te(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 D1(i){let e,t;return e=new B1({props:{onTimerEnded:i[2]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&4&&(r.onTimerEnded=n[2]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Mh(i){let e,t,n,o,r,l,a,s,u,c,m,h,k,g,w,y,P,v,b,I,N;a=new L1({}),a.$on("click",i[4]);let M=i[3]&&D1(i);return{c(){e=T("div"),t=q(),n=T("div"),o=T("div"),r=T("div"),r.textContent="\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",l=q(),B(a.$$.fragment),s=q(),u=T("div"),c=T("div"),m=T("div"),h=T("div"),k=q(),M&&M.c(),w=q(),y=T("div"),P=T("div"),v=Le(i[0]),f(e,"class","overlay svelte-kisfwc"),f(r,"class","caption svelte-kisfwc"),f(o,"class","top svelte-kisfwc"),f(h,"class","thumb-overlay svelte-kisfwc"),f(m,"class","thumb svelte-kisfwc"),f(m,"style",g=`background-image: url('${i[1]}')`),f(c,"class","column svelte-kisfwc"),f(P,"class","title svelte-kisfwc"),f(y,"class","column svelte-kisfwc"),f(u,"class","row svelte-kisfwc"),f(n,"class","next-video svelte-kisfwc")},m(O,re){S(O,e,re),S(O,t,re),S(O,n,re),p(n,o),p(o,r),p(o,l),L(a,o,null),p(n,s),p(n,u),p(u,c),p(c,m),p(m,h),p(m,k),M&&M.m(m,null),p(u,w),p(u,y),p(y,P),p(P,v),b=!0,I||(N=de(u,"click",function(){Vi(i[2])&&i[2].apply(this,arguments)}),I=!0)},p(O,[re]){i=O,i[3]?M?(M.p(i,re),re&8&&d(M,1)):(M=D1(i),M.c(),d(M,1),M.m(m,null)):M&&(ue(),_(M,1,1,()=>{M=null}),fe()),(!b||re&2&&g!==(g=`background-image: url('${i[1]}')`))&&f(m,"style",g),(!b||re&1)&&Ye(v,i[0])},i(O){b||(d(a.$$.fragment,O),d(M),b=!0)},o(O){_(a.$$.fragment,O),_(M),b=!1},d(O){O&&(C(e),C(t),C(n)),R(a),M&&M.d(),I=!1,N()}}}function Vh(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 _a=class extends j{constructor(e){super(),G(this,e,Vh,Mh,K,{title:0,thumb:1,playNextVideo:2},Ah)}},N1=_a;var Co=require("@vkontakte/videoplayer-core"),q1=require("@vkontakte/videoplayer-shared"),In=require("@vkontakte/videoplayer-statistics");var ha=(i,e)=>Math.min(+(i+e).toFixed(2),1),ga=(i,e)=>Math.max(+(i-e).toFixed(2),0),Lr=(i,e,t)=>{let n=ha(e,t);e<1&&i.actions.internal.setVolume(n)},Rr=(i,e,t)=>{let n=ga(e,t);e>0&&i.actions.internal.setVolume(n)};var ko=({isAudioDisabled:i,audioDisabledHintCallback:e,isAudioAvailable:t,audioIsNotExistHintCallback:n})=>i?(e==null||e(),!1):t?!0:(n==null||n(),!1);function Rh(i){Te(i,"svelte-10kkmxz",".keyboard-controls.svelte-10kkmxz{position:absolute;left:0;right:0;top:0;bottom:0}")}function Bh(i){let e,t,n,o,r,l=i[26].default,a=Ee(l,i,i[25],null);return{c(){e=T("div"),a&&a.c(),f(e,"class","keyboard-controls svelte-10kkmxz"),f(e,"tabindex","-1"),f(e,"role","region"),f(e,"aria-label",t=W("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)&&Me(a,l,s,s[25],n?Ae(l,s[25],u,null):Ve(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,ot(r)}}}function Dh(i,e,t){var pt,bt;let n,o,r,l,a,s,u,c,m,h,k,g,w,y,P,{$$slots:v={},$$scope:b}=e,{isAds:I}=e,{hideContextMenu:N}=e,{toggleFullscreen:M}=e,{showHotKeyHelpers:O}=e,{showKeyMap:re}=e,{fakePlayButtonHandler:ae}=e,Y=lt(),ee=Qt(),A=Y.getLogger().createComponentLog("KeyboardControls component"),x=Y.state.playbackState$;H(i,x,ve=>t(31,o=ve));let Z=Y.ads.playbackState;H(i,Z,ve=>t(30,n=ve));let z=Y.state.positionExact$;H(i,z,ve=>t(41,g=ve));let U=Y.state.duration$;H(i,U,ve=>t(40,k=ve));let V=Y.state.volume$;H(i,V,ve=>t(44,P=ve));let Q=Y.ui.controls.disabledControls$;H(i,Q,ve=>t(39,h=ve));let Ce=Y.state.muted$;H(i,Ce,ve=>t(34,a=ve));let Fe=Y.state.currentSubtitle$;H(i,Fe,ve=>t(33,l=ve));let Ze=Y.state.currentPlaybackRate$;H(i,Ze,ve=>t(42,w=ve));let et=Y.state.availablePlaybackRates$;H(i,et,ve=>t(43,y=ve));let xe=Y.ui.contextMenu.openedByHotKey$,ye=Y.ui.contextMenu.lastActiveElem$,X=Y.ui.contextMenu.visible$,ke=Y.ui.contextMenu.position$,Ge=Y.state.isEnded$;H(i,Ge,ve=>t(36,u=ve));let tt=Y.ui.overlayContainer$;H(i,tt,ve=>t(32,r=ve));let rt=(pt=Y.callbacks)==null?void 0:pt.onAudioDoesNotExistHint,we=(bt=Y.callbacks)==null?void 0:bt.onAudioDisabledHint,De=Y.state.isAudioAvailable$;H(i,De,ve=>t(35,s=ve));let Je=Y.state.isAudioDisabled,st=Y.state.isInteractiveTime$;H(i,st,ve=>t(38,m=ve));let{showInteractiveTimeIndicatorTooltip$:Se}=Qn();H(i,Se,ve=>t(37,c=ve));let se=0,We=!0,me,Ie=()=>me==null?void 0:me.focus(),Oe=ve=>(ve!==We&&(We=ve,se=0),se+=1,(ee.controls.seekStepKeyboard+ee.controls.seekStepKeyboard*se)/1e3),ce=ve=>{var he;let Ct=ve.target,Lt=(he=Ct==null?void 0:Ct.getAttribute("role"))==null?void 0:he.includes("menuitem"),St=Ct.classList.contains("btn"),ze=ve.code;if(St&&ze==="Space")return;let Ut=mc.has(ze);if(Lt&&Ut)return;let Rt=!dc.has(ze);if(ve.ctrlKey&&Rt||ve.altKey&&Rt||ve.metaKey)return;let Et=Lt&&ze==="Escape";pc.has(ze)||Et||N();let oi=o===Co.PlaybackState.PLAYING||o===Co.PlaybackState.PAUSED,Nt=I&&(n==="paused"||n==="playing"),Kt=!Nt&&!h.has("TIMELINE");if(oi||Nt)switch(A({message:`key down, code: ${ze}`}),ze){case"KeyJ":case"ArrowLeft":{if(!Kt)break;if(ve.ctrlKey||ve.altKey){let Ke=Y.actions.internal.getPrevEpisode();Y.actions.internal.seekToPrevEpisode(Ke),Ke&&O({type:"EPISODE_PREV",text:Ke.text}),ve.preventDefault()}else{let Ke=ve.shiftKey?Oe(!1):ee.controls.seekStepKeyboard/1e3,ht=Math.max(g-Ke,0);g>0&&(Y.actions.internal.seekTime(ht,In.SeekAction.DOUBLE_TAP),O({type:"BACKWARD_SEEK",text:Ke.toString()}),ve.preventDefault())}break}case"KeyL":case"ArrowRight":{if(!Kt)break;if(ve.ctrlKey||ve.altKey){let Ke=Y.actions.internal.getNextEpisode();Y.actions.internal.seekToNextEpisode(Ke),Ke&&O({type:"EPISODE_NEXT",text:Ke.text}),ve.preventDefault()}else{let Ke=ve.shiftKey?Oe(!0):ee.controls.seekStepKeyboard/1e3,ht=Math.min(g+Ke,k);Math.round(g)<Math.round(k)&&(Y.actions.internal.seekTime(ht,In.SeekAction.DOUBLE_TAP),O({type:"FORWARD_SEEK",text:Ke.toString()}),ve.preventDefault())}break}case"ArrowUp":{if(ko({isAudioDisabled:Je,audioDisabledHintCallback:we,isAudioAvailable:s,audioIsNotExistHintCallback:rt})){let Ke=P,ht=ee.controls.volumeStepKeyboard,dt=Ke<=1;if(Lr(Y,Ke,ht),dt){let Xe=Math.round(ha(Ke,ht)*100).toString();O({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Xe}})}}ve.preventDefault();break}case"ArrowDown":{if(ko({isAudioDisabled:Je,audioDisabledHintCallback:we,isAudioAvailable:s,audioIsNotExistHintCallback:rt})){let Ke=P,ht=ee.controls.volumeStepKeyboard,dt=Ke>=0;if(Rr(Y,Ke,ht),dt){let Xe=Math.round(ga(Ke,ht)*100).toString();O({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Xe}})}}ve.preventDefault();break}case"Comma":{if(ve.shiftKey){Y.actions.internal.decrementPlaybackRate();let Ke=y.find(ht=>ht.value===w);O({type:"RATE_DOWN",text:Ke==null?void 0:Ke.displayValue}),ve.preventDefault()}else{if(Nt||o!==Co.PlaybackState.PAUSED)break;let Ke=Math.max(g-ee.controls.seekStepFrame/1e3,0);g>0&&(O({type:"BACKWARD_SEEK"}),Y.actions.internal.clearDelayedBufferingCheckTimeout(),Y.actions.internal.seekTime(Ke,In.SeekAction.DOUBLE_TAP),ve.preventDefault())}break}case"Period":{if(ve.shiftKey){Y.actions.internal.incrementPlaybackRate();let Ke=y.find(ht=>ht.value===w);O({type:"RATE_UP",text:Ke==null?void 0:Ke.displayValue}),ve.preventDefault()}else{if(Nt||o!==Co.PlaybackState.PAUSED)break;let Ke=Math.min(g+ee.controls.seekStepFrame/1e3,k);g<k&&(O({type:"FORWARD_SEEK"}),Y.actions.internal.clearDelayedBufferingCheckTimeout(),Y.actions.internal.seekTime(Ke,In.SeekAction.DOUBLE_TAP),ve.preventDefault())}break}case"KeyK":case"Space":if(!h.has("PLAY_BUTTON"))if(m&&c&&Se.set(!1),ae)ae();else{Y.actions.internal.togglePlay();let Ke="PLAY";o===Co.PlaybackState.PAUSED?Ke="PAUSE":u&&(Ke="REPLAY"),O({type:Ke})}ve.preventDefault();break;case"KeyM":{ko({isAudioDisabled:Je,audioDisabledHintCallback:we,isAudioAvailable:s,audioIsNotExistHintCallback:rt})&&(O({type:a?"VOLUME":"MUTE"}),Y.actions.internal.toggleMuted()),ve.preventDefault();break}case"KeyF":M(),ve.preventDefault();break;case"KeyC":Y.actions.internal.toggleSubtitle(),l.value!=="off"?O({type:"SUBTITLES_ON",text:l==null?void 0:l.displayValue}):O({type:"SUBTITLES_OFF"}),ve.preventDefault();break;case"KeyI":Y.actions.internal.togglePictureInPicture(),ve.preventDefault();break;case"Digit1":case"Numpad1":if(ve.shiftKey){let Ke=c1(r);ke.set(Ke),ye.set(Ct),xe.set(!0),X.set(!0),ve.preventDefault();break}O(),Y.actions.internal.seekToPercent(.1,In.SeekAction.DOUBLE_TAP),ve.preventDefault();break;case"Digit2":case"Numpad2":O(),Y.actions.internal.seekToPercent(.2,In.SeekAction.DOUBLE_TAP),ve.preventDefault();break;case"Digit3":case"Numpad3":O(),Y.actions.internal.seekToPercent(.3,In.SeekAction.DOUBLE_TAP),ve.preventDefault();break;case"Digit4":case"Numpad4":O(),Y.actions.internal.seekToPercent(.4,In.SeekAction.DOUBLE_TAP),ve.preventDefault();break;case"Digit5":case"Numpad5":O(),Y.actions.internal.seekToPercent(.5,In.SeekAction.DOUBLE_TAP),ve.preventDefault();break;case"Digit6":case"Numpad6":O(),Y.actions.internal.seekToPercent(.6,In.SeekAction.DOUBLE_TAP),ve.preventDefault();break;case"Digit7":case"Numpad7":O(),Y.actions.internal.seekToPercent(.7,In.SeekAction.DOUBLE_TAP),ve.preventDefault();break;case"Digit8":case"Numpad8":O(),Y.actions.internal.seekToPercent(.8,In.SeekAction.DOUBLE_TAP),ve.preventDefault();break;case"Digit9":case"Numpad9":O(),Y.actions.internal.seekToPercent(.9,In.SeekAction.DOUBLE_TAP),ve.preventDefault();break;case"Digit0":case"Numpad0":O(),Y.actions.internal.seekToPercent(0,In.SeekAction.DOUBLE_TAP),ve.preventDefault();break;case"Slash":{ve.shiftKey&&ee.features.hotKeyMapModal&&(re(),ve.preventDefault());break}case"ShiftLeft":case"ShiftRight":ve.preventDefault();break;case"Tab":case"Escape":case"Enter":break;default:(0,q1.checkNever)(ze);break}},Qe=ve=>{let Ct=ve.code;if(ve.ctrlKey||ve.altKey||ve.metaKey)return;let Lt=o===Co.PlaybackState.PLAYING||o===Co.PlaybackState.PAUSED,St=I&&(n==="paused"||n==="playing");if(Lt||St)switch(Ct){case"ShiftLeft":case"ShiftRight":se=0;break}};function $e(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,N=ve.hideContextMenu),"toggleFullscreen"in ve&&t(20,M=ve.toggleFullscreen),"showHotKeyHelpers"in ve&&t(21,O=ve.showHotKeyHelpers),"showKeyMap"in ve&&t(22,re=ve.showKeyMap),"fakePlayButtonHandler"in ve&&t(23,ae=ve.fakePlayButtonHandler),"$$scope"in ve&&t(25,b=ve.$$scope)},[me,x,Z,z,U,V,Q,Ce,Fe,Ze,et,Ge,tt,De,st,Se,ce,Qe,I,N,M,O,re,ae,Ie,b,v,$e]}var ba=class extends j{constructor(e){super(),G(this,e,Dh,Bh,K,{isAds:18,hideContextMenu:19,toggleFullscreen:20,showHotKeyHelpers:21,showKeyMap:22,fakePlayButtonHandler:23,focus:24},Rh,[-1,-1])}get focus(){return this.$$.ctx[24]}},O1=ba;function Nh(i){Te(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 qh(i){let e;return{c(){e=T("div"),e.innerHTML='<div class="dot svelte-8nkw5s"></div> <div class="dot svelte-8nkw5s"></div> <div class="dot svelte-8nkw5s"></div>',f(e,"class","container svelte-8nkw5s")},m(t,n){S(t,e,n)},p:_e,i:_e,o:_e,d(t){t&&C(e)}}}var va=class extends j{constructor(e){super(),G(this,e,null,qh,K,{},Nh)}},Br=va;function Oh(i){let e,t,n,o,r,l,a,s,u,c,m,h,k,g,w=i[2].default,y=Ee(w,i,i[1],null),P=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"cross-icon"},{role:"img"},i[0]],v={};for(let b=0;b<P.length;b+=1)v=le(v,P[b]);return{c(){e=D("svg"),y&&y.c(),t=D("g"),n=D("path"),o=D("path"),r=D("defs"),l=D("filter"),a=D("feFlood"),s=D("feColorMatrix"),u=D("feOffset"),c=D("feGaussianBlur"),m=D("feColorMatrix"),h=D("feBlend"),k=D("feBlend"),f(n,"fill","#fff"),f(n,"d","M7.536 6.264a.9.9 0 0 0-1.272 1.272L10.727 12l-4.463 4.464a.9.9 0 0 0 1.272 1.272L12 13.273l4.464 4.463a.9.9 0 1 0 1.272-1.272L13.273 12l4.463-4.464a.9.9 0 1 0-1.272-1.272L12 10.727z"),f(o,"stroke","#000"),f(o,"stroke-opacity",".12"),f(o,"stroke-width",".5"),f(o,"d","M7.713 6.087a1.15 1.15 0 1 0-1.626 1.626L10.374 12l-4.287 4.287a1.15 1.15 0 0 0 1.626 1.626L12 13.626l4.287 4.287a1.15 1.15 0 0 0 1.626-1.626L13.626 12l4.287-4.287a1.15 1.15 0 1 0-1.626-1.626L12 10.374z"),f(t,"filter","url(#a)"),f(a,"flood-opacity","0"),f(a,"result","BackgroundImageFix"),f(s,"in","SourceAlpha"),f(s,"result","hardAlpha"),f(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(c,"stdDeviation","2.5"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(h,"in2","BackgroundImageFix"),f(h,"result","effect1_dropShadow_2422_111980"),f(k,"in","SourceGraphic"),f(k,"in2","effect1_dropShadow_2422_111980"),f(k,"result","shape"),f(l,"id","a"),f(l,"width","23"),f(l,"height","23"),f(l,"x",".5"),f(l,"y",".5"),f(l,"color-interpolation-filters","sRGB"),f(l,"filterUnits","userSpaceOnUse"),be(e,v)},m(b,I){S(b,e,I),y&&y.m(e,null),p(e,t),p(t,n),p(t,o),p(e,r),p(r,l),p(l,a),p(l,s),p(l,u),p(l,c),p(l,m),p(l,h),p(l,k),g=!0},p(b,[I]){y&&y.p&&(!g||I&2)&&Me(y,w,b,b[1],g?Ae(w,b[1],I,null):Ve(b[1]),null),be(e,v=Re(P,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"cross-icon"},{role:"img"},I&1&&b[0]]))},i(b){g||(d(y,b),g=!0)},o(b){_(y,b),g=!1},d(b){b&&C(e),y&&y.d(b)}}}function Fh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var ya=class extends j{constructor(e){super(),G(this,e,Fh,Oh,K,{})}},F1=ya;var no=require("@vkontakte/videoplayer-shared");function Hh(i){Te(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 zh(i){let e,t,n,o,r,l,a,s,u,c,m,h,k=i[14].default,g=Ee(k,i,i[13],null);return{c(){var w,y,P,v,b,I;e=T("button"),g&&g.c(),f(e,"class",t="btn "+i[1]+" svelte-1anemql"),f(e,"style",n=i[2]||null),e.disabled=o=(w=i[3])!=null?w:null,f(e,"aria-hidden",r=(y=i[5])!=null?y:null),f(e,"aria-label",l=(P=i[6])!=null?P:null),f(e,"aria-keyshortcuts",a=(v=i[7])!=null?v:null),f(e,"aria-expanded",s=(b=i[8])!=null?b:null),f(e,"data-testid",u=(I=i[4])!=null?I:null),f(e,"tabindex",i[9])},m(w,y){S(w,e,y),g&&g.m(e,null),i[16](e),c=!0,m||(h=[de(e,"pointerdown",ut(Ot(i[15]))),de(e,"click",ut(Ot(function(){Vi(i[10]===no.noop?null:i[10])&&(i[10]===no.noop?null:i[10]).apply(this,arguments)}))),de(e,"focus",Ot(function(){Vi(i[11]===no.noop?null:i[11])&&(i[11]===no.noop?null:i[11]).apply(this,arguments)})),de(e,"blur",Ot(function(){Vi(i[12]===no.noop?null:i[12])&&(i[12]===no.noop?null:i[12]).apply(this,arguments)}))],m=!0)},p(w,[y]){var P,v,b,I,N,M;i=w,g&&g.p&&(!c||y&8192)&&Me(g,k,i,i[13],c?Ae(k,i[13],y,null):Ve(i[13]),null),(!c||y&2&&t!==(t="btn "+i[1]+" svelte-1anemql"))&&f(e,"class",t),(!c||y&4&&n!==(n=i[2]||null))&&f(e,"style",n),(!c||y&8&&o!==(o=(P=i[3])!=null?P:null))&&(e.disabled=o),(!c||y&32&&r!==(r=(v=i[5])!=null?v:null))&&f(e,"aria-hidden",r),(!c||y&64&&l!==(l=(b=i[6])!=null?b:null))&&f(e,"aria-label",l),(!c||y&128&&a!==(a=(I=i[7])!=null?I:null))&&f(e,"aria-keyshortcuts",a),(!c||y&256&&s!==(s=(N=i[8])!=null?N:null))&&f(e,"aria-expanded",s),(!c||y&16&&u!==(u=(M=i[4])!=null?M:null))&&f(e,"data-testid",u),(!c||y&512)&&f(e,"tabindex",i[9])},i(w){c||(d(g,w),c=!0)},o(w){_(g,w),c=!1},d(w){w&&C(e),g&&g.d(w),i[16](null),m=!1,ot(h)}}}function Uh(i,e,t){let{$$slots:n={},$$scope:o}=e,{className:r=""}=e,{style:l=""}=e,{disabled:a=void 0}=e,{testId:s=void 0}=e,{ariaHidden:u=void 0}=e,{ariaLabel:c=void 0}=e,{ref:m=void 0}=e,{ariaKeyShortCut:h=void 0}=e,{ariaExpanded:k=void 0}=e,{tabIndex:g=0}=e,{click:w=no.noop}=e,{focus:y=no.noop}=e,{blur:P=no.noop}=e;function v(I){Fn.call(this,i,I)}function b(I){pe[I?"unshift":"push"](()=>{m=I,t(0,m)})}return i.$$set=I=>{"className"in I&&t(1,r=I.className),"style"in I&&t(2,l=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,c=I.ariaLabel),"ref"in I&&t(0,m=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,y=I.focus),"blur"in I&&t(12,P=I.blur),"$$scope"in I&&t(13,o=I.$$scope)},[m,r,l,a,s,u,c,h,k,g,w,y,P,o,n,v,b]}var wa=class extends j{constructor(e){super(),G(this,e,Uh,zh,K,{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},Hh)}},yt=wa;function Kh(i){Te(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 H1(i){let e,t,n,o,r,l=i[2]&&z1(i);return{c(){e=T("div"),t=T("h3"),n=Le(i[3]),o=q(),l&&l.c(),f(t,"class","modal-title svelte-1witlsj"),f(e,"class","modal-header svelte-1witlsj")},m(a,s){S(a,e,s),p(e,t),p(t,n),p(e,o),l&&l.m(e,null),r=!0},p(a,s){(!r||s&8)&&Ye(n,a[3]),a[2]?l?(l.p(a,s),s&4&&d(l,1)):(l=z1(a),l.c(),d(l,1),l.m(e,null)):l&&(ue(),_(l,1,1,()=>{l=null}),fe())},i(a){r||(d(l),r=!0)},o(a){_(l),r=!1},d(a){a&&C(e),l&&l.d()}}}function z1(i){let e,t;return e=new yt({props:{click:i[0],testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:W("hotkey_map_modal_close_btn_text"),$$slots:{default:[jh]},$$scope:{ctx:i}}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&1&&(r.click=n[0]),o&32&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function jh(i){let e,t;return e=new F1({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Wh(i){let e,t,n,o,r,l,a=i[1]&&H1(i),s=i[4].default,u=Ee(s,i,i[5],null);return{c(){e=T("div"),t=T("div"),a&&a.c(),n=q(),o=T("div"),r=T("div"),u&&u.c(),f(r,"class","modal-main svelte-1witlsj"),f(o,"class","modal-scroll svelte-1witlsj"),f(t,"class","modal-container svelte-1witlsj"),f(e,"class","modal-overlay svelte-1witlsj")},m(c,m){S(c,e,m),p(e,t),a&&a.m(t,null),p(t,n),p(t,o),p(o,r),u&&u.m(r,null),l=!0},p(c,[m]){c[1]?a?(a.p(c,m),m&2&&d(a,1)):(a=H1(c),a.c(),d(a,1),a.m(t,n)):a&&(ue(),_(a,1,1,()=>{a=null}),fe()),u&&u.p&&(!l||m&32)&&Me(u,s,c,c[5],l?Ae(s,c[5],m,null):Ve(c[5]),null)},i(c){l||(d(a),d(u,c),l=!0)},o(c){_(a),_(u,c),l=!1},d(c){c&&C(e),a&&a.d(),u&&u.d(c)}}}function Gh(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 ka=class extends j{constructor(e){super(),G(this,e,Gh,Wh,K,{onClose:0,showHeader:1,showCloseCross:2,title:3},Kh)}},U1=ka;var Qh=new Set(["BR"]),Ca=i=>{var o;let e=document.createElement("DIV");e.innerHTML=i;let t=e.querySelectorAll("*"),n=t.length;for(;n--;){let r=t[n],l=r.tagName;Qh.has(l)||(o=r.parentElement)==null||o.removeChild(r)}return e.innerHTML};function Yh(i){Te(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 j1(i,e,t){let n=i.slice();return n[9]=e[t].description,n[10]=e[t].value,n}function W1(i){let e,t,n=Ca(i[9])+"",o,r,l=i[10]+"",a,s;return{c(){e=T("li"),t=T("span"),o=q(),r=T("span"),a=Le(l),s=q(),f(t,"class","hot-key-map-item-description svelte-quklnq"),f(r,"class","hot-key-map-item-value svelte-quklnq"),f(e,"class","hot-key-map-item svelte-quklnq")},m(u,c){S(u,e,c),p(e,t),t.innerHTML=n,p(e,o),p(e,r),p(r,a),p(e,s)},p(u,c){c&1&&n!==(n=Ca(u[9])+"")&&(t.innerHTML=n),c&1&&l!==(l=u[10]+"")&&Ye(a,l)},d(u){u&&C(e)}}}function G1(i){let e,t,n=i[5]+"",o,r,l,a,s=It(i[6]),u=[];for(let c=0;c<s.length;c+=1)u[c]=W1(j1(i,s,c));return{c(){e=T("div"),t=T("h5"),o=Le(n),r=q(),l=T("ul");for(let c=0;c<u.length;c+=1)u[c].c();a=q(),f(t,"class","hot-key-map-group-title svelte-quklnq"),f(l,"class","hot-key-map-group-items svelte-quklnq"),f(e,"class","hot-key-map-group svelte-quklnq")},m(c,m){S(c,e,m),p(e,t),p(t,o),p(e,r),p(e,l);for(let h=0;h<u.length;h+=1)u[h]&&u[h].m(l,null);p(e,a)},p(c,m){if(m&1&&n!==(n=c[5]+"")&&Ye(o,n),m&1){s=It(c[6]);let h;for(h=0;h<s.length;h+=1){let k=j1(c,s,h);u[h]?u[h].p(k,m):(u[h]=W1(k),u[h].c(),u[h].m(l,null))}for(;h<u.length;h+=1)u[h].d(1);u.length=s.length}},d(c){c&&C(e),Li(u,c)}}}function Zh(i){let e,t=It(i[0].groups),n=[];for(let o=0;o<t.length;o+=1)n[o]=G1(K1(i,t,o));return{c(){e=T("div");for(let o=0;o<n.length;o+=1)n[o].c();f(e,"class","hot-key-map svelte-quklnq")},m(o,r){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=It(o[0].groups);let l;for(l=0;l<t.length;l+=1){let a=K1(o,t,l);n[l]?n[l].p(a,r):(n[l]=G1(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),Li(n,o)}}}function Xh(i){let e,t;return e=new U1({props:{title:i[0].title,onClose:i[2],$$slots:{default:[Zh]},$$scope:{ctx:i}}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.title=n[0].title),o&8193&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Jh(i,e,t){let n,o=lt(),{data:r,show:l}=o.ui.modals.hotKeyMap;return H(i,r,s=>t(0,n=s)),[n,r,()=>{l.set(!1)}]}var Sa=class extends j{constructor(e){super(),G(this,e,Jh,Xh,K,{},Yh)}},Q1=Sa;var ps=require("@vkontakte/videoplayer-shared");var Jo=require("@vkontakte/videoplayer-core");var zd=require("@vkontakte/videoplayer-core");var Yo={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"},Y1={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 xh=i=>{var e,t;return(t=(e=Yo[i])!=null?e:Yo[Y1[i]])!=null?t:void 0},Dr=(i,e)=>String(e.findIndex(t=>t.id===i.id)+1),uo=(i,e)=>{var l;if(!i)return"";let{language:t,label:n}=i,o;if(t==="und"?o=void 0:t&&(o=(l=xh(t))!=null?l:t),n&&t&&o){let a=e.filter(s=>s.label===n&&s.language===t);if(a.length===1)return W("audio_stream_display_language_label",{language:o,label:n});{let s=Dr(i,a);return W("audio_stream_display_language_label_index",{language:o,label:n,index:s})}}if(n){let a=e.filter(s=>s.label===n);if(a.length===1)return n;{let s=Dr(i,a);return W("audio_stream_display_label_index",{label:n,index:s})}}if(t&&o){let a=e.filter(s=>s.language===t);if(a.length===1)return o;{let s=Dr(i,a);return W("audio_stream_display_language_index",{language:o,index:s})}}let r=Dr(i,e);return W("audio_stream_display_unknown",{index:r})};var oC=require("@vkontakte/videoplayer-shared");function $h(i){Te(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 eg(i){let e,t,n=i[1].default,o=Ee(n,i,i[0],null);return{c(){e=T("div"),o&&o.c(),f(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)&&Me(o,n,r,r[0],t?Ae(n,r[0],l,null):Ve(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 tg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{"$$scope"in r&&t(0,o=r.$$scope)},[o,n]}var Ta=class extends j{constructor(e){super(),G(this,e,tg,eg,K,{},$h)}},Z1=Ta;var wl=require("@vkontakte/videoplayer-core");function ig(i){let e,t,n,o,r=i[2].default,l=Ee(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=le(s,a[u]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),n=D("path"),f(t,"fill","currentColor"),f(t,"d","M5.517 5c.325 0 .516-.198.516-.536v-.97l.492-.517 1.46 1.74c.16.205.304.283.516.283A.49.49 0 0 0 9 4.501c0-.14-.068-.287-.222-.478l-1.47-1.73L8.818.868C8.949.731 9 .618 9 .475A.474.474 0 0 0 8.515 0c-.171 0-.301.065-.445.222L6.064 2.25h-.03V.54c0-.342-.192-.54-.517-.54s-.516.198-.516.54v3.924c0 .338.191.536.516.536"),f(n,"fill","currentColor"),f(n,"fill-rule","evenodd"),f(n,"d","m2.551 1.052-1.51 2.052h1.51zM3.5 3.104V.832c0-.81-1.089-1.14-1.556-.48L.139 2.821a.75.75 0 0 0 .612 1.183h1.8v.55c0 .248.25.45.499.45a.45.45 0 0 0 .45-.45v-.55h.052a.45.45 0 0 0 0-.9z"),f(n,"clip-rule","evenodd"),be(e,s)},m(u,c){S(u,e,c),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[c]){l&&l.p&&(!o||c&2)&&Me(l,r,u,u[1],o?Ae(r,u[1],c,null):Ve(u[1]),null),be(e,s=Re(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&C(e),l&&l.d(u)}}}function ng(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Pa=class extends j{constructor(e){super(),G(this,e,ng,ig,K,{})}},X1=Pa;function og(i){let e,t,n,o,r=i[2].default,l=Ee(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=le(s,a[u]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),n=D("path"),f(t,"fill","currentColor"),f(t,"d","M5.513 5c.323 0 .513-.198.513-.537v-.97l.49-.516L7.99 4.715c.16.205.302.284.513.284A.49.49 0 0 0 9 4.5c0-.14-.068-.287-.22-.478L7.293 2.293 8.82.868C8.949.731 9 .618 9 .475A.473.473 0 0 0 8.517 0c-.17 0-.299.065-.441.222L6.056 2.25h-.03V.54c0-.342-.19-.54-.513-.54S5 .198 5 .54v3.923c0 .339.19.537.513.537"),f(n,"fill","currentColor"),f(n,"fill-rule","evenodd"),f(n,"d","M2 0q-.53 0-.952.173a1.5 1.5 0 0 0-.654.484q-.23.312-.23.71c0 .423.208.756.613.995a1.46 1.46 0 0 0-.547.44q-.23.305-.23.71 0 .432.252.778l.001.001q.26.336.712.523Q1.418 5.001 2 5q.582 0 1.035-.186.451-.187.705-.524.26-.346.26-.777 0-.406-.23-.711a1.45 1.45 0 0 0-.552-.44c.409-.235.618-.569.618-.994a1.14 1.14 0 0 0-.238-.711 1.44 1.44 0 0 0-.653-.484A2.4 2.4 0 0 0 2 0m-.573.964C1.563.86 1.75.804 2 .804s.434.055.564.16h.001a.51.51 0 0 1 .204.43.52.52 0 0 1-.204.437c-.13.105-.315.161-.565.161s-.437-.056-.573-.161a.52.52 0 0 1-.203-.437q.002-.276.203-.43m-.345 2.522c0-.217.08-.381.233-.503.16-.122.385-.188.685-.188s.522.066.677.188q.24.181.24.503a.63.63 0 0 1-.24.523c-.155.122-.377.188-.677.188s-.524-.065-.684-.187a.64.64 0 0 1-.234-.524"),f(n,"clip-rule","evenodd"),be(e,s)},m(u,c){S(u,e,c),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[c]){l&&l.p&&(!o||c&2)&&Me(l,r,u,u[1],o?Ae(r,u[1],c,null):Ve(u[1]),null),be(e,s=Re(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&C(e),l&&l.d(u)}}}function lg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Ia=class extends j{constructor(e){super(),G(this,e,lg,og,K,{})}},J1=Ia;function rg(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=le(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","currentColor"),f(t,"d","M5.516 5h1.107C8.103 5 9 4.065 9 2.5S8.103 0 6.623 0H5.516C5.191 0 5 .2 5 .537V4.46c0 .342.191.54.516.54m.516-.854V.852H6.5C7.41.852 8 1.468 8 2.5c0 1.066-.577 1.646-1.5 1.646zM.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S4 4.802 4 4.464V.54C4 .198 3.809 0 3.484 0s-.516.198-.516.54v1.531H1.032V.54C1.032.198.841 0 .516 0S0 .198 0 .54v3.989C0 4.867.191 5 .516 5"),be(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Me(r,o,s,s[1],n?Ae(o,s[1],u,null):Ve(s[1]),null),be(e,a=Re(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 sg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Ea=class extends j{constructor(e){super(),G(this,e,sg,rg,K,{})}},x1=Ea;function ag(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"13"},{height:"5"},{fill:"none"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=le(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","currentColor"),f(t,"d","M9.516 5h1.107C12.103 5 13 4.065 13 2.5S12.103 0 10.623 0H9.516C9.191 0 9 .2 9 .537V4.46c0 .342.191.54.516.54m.516-.854V.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zM4.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S8 4.802 8 4.464V.54C8 .198 7.809 0 7.484 0s-.516.198-.516.54v1.531H5.032V.54c0-.342-.191-.54-.516-.54S4 .198 4 .54v3.989c0 .338.191.471.516.471m-4 0c.325 0 .516-.198.516-.537V3h1.332c.27 0 .441-.154.441-.41 0-.253-.174-.407-.44-.407H1.031V.854h1.5c.28 0 .468-.16.468-.427C3 .161 2.815 0 2.532 0H.516C.191 0 0 .198 0 .537v3.926C0 4.802.191 5 .516 5"),be(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Me(r,o,s,s[1],n?Ae(o,s[1],u,null):Ve(s[1]),null),be(e,a=Re(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 ug(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Aa=class extends j{constructor(e){super(),G(this,e,ug,ag,K,{})}},Nr=Aa;function fg(i){let e,t,n,o,r=i[2].default,l=Ee(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"15"},{height:"7"},{fill:"none"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=le(s,a[u]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),n=D("path"),f(t,"fill","currentColor"),f(t,"d","M11.516 5.75h1.107c1.48 0 2.377-.935 2.377-2.5s-.897-2.5-2.377-2.5h-1.107c-.325 0-.516.199-.516.537V5.21c0 .342.191.54.516.54m.516-.854V1.602h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zm-5.516.854c.325 0 .516-.198.516-.536V3.672h1.936v1.542c0 .338.191.536.516.536S10 5.552 10 5.214V1.29c0-.342-.191-.54-.516-.54s-.516.198-.516.54v1.531H7.032V1.29c0-.342-.191-.54-.516-.54S6 .948 6 1.29v3.989c0 .338.191.471.516.471"),f(n,"fill","currentColor"),f(n,"fill-rule","evenodd"),f(n,"d","M3.338 5.659a4 4 0 0 1-.838.091C1.037 5.75 0 4.885 0 3.303 0 1.733 1.037.75 2.5.75 3.96.75 5 1.734 5 3.303c0 .863-.274 1.46-.778 1.88l.194.29a.5.5 0 0 1-.832.554zm-.52-.78-.234-.352a.5.5 0 1 1 .832-.554l.245.367c.184-.26.286-.615.286-1.037 0-1.036-.64-1.653-1.447-1.653-.81 0-1.447.617-1.447 1.653 0 1.032.637 1.596 1.447 1.596.08 0 .208-.007.318-.02"),f(n,"clip-rule","evenodd"),be(e,s)},m(u,c){S(u,e,c),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[c]){l&&l.p&&(!o||c&2)&&Me(l,r,u,u[1],o?Ae(r,u[1],c,null):Ve(u[1]),null),be(e,s=Re(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"15"},{height:"7"},{fill:"none"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&C(e),l&&l.d(u)}}}function cg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Ma=class extends j{constructor(e){super(),G(this,e,cg,fg,K,{})}},qr=Ma;var So=i=>{switch(i){case wl.VideoQuality.Q_720P:return x1;case wl.VideoQuality.Q_1080P:return Nr;case wl.VideoQuality.Q_1440P:return qr;case wl.VideoQuality.Q_2160P:return X1;case wl.VideoQuality.Q_4320P:return J1}};function dg(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"settings-mobile-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=le(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","#fff"),f(t,"d","M12.722 2.213c1.208.037 1.994.702 2.408 1.954l.065.215.051.191q.027.111.068.235l.058.159.034.017.069-.023.133-.051.156-.068c1.414-.658 2.502-.536 3.387.437l.125.145.82 1.017c.732.962.71 1.99-.004 3.1l-.125.187-.117.16a3 3 0 0 0-.142.205l-.07.115-.034.057.004.02.091.06.127.077.153.083c1.39.71 1.963 1.641 1.742 2.936l-.038.188-.244 1.058c-.158.685-.282 1.01-.77 1.454-.475.432-1.016.61-1.732.67l-.22.014-.198.006q-.116.002-.246.015l-.181.021.013.142.013.096.033.179c.323 1.526-.04 2.558-1.188 3.202l-.17.09-1.175.57c-1.102.495-2.099.242-3.02-.702l-.153-.164-.13-.15a3 3 0 0 0-.17-.186l-.097-.096-.05-.046-.09.087-.106.108-.118.133c-.952 1.134-1.957 1.54-3.176 1.067l-.175-.074-1.052-.51-.312-.16c-.476-.26-.743-.51-1.004-1.061-.275-.58-.294-1.15-.16-1.883l.044-.225q.024-.114.041-.242l.019-.172-.004-.004-.104-.014-.146-.013-.174-.008c-1.56-.028-2.484-.614-2.853-1.877l-.049-.185-.292-1.274c-.235-1.185.236-2.1 1.364-2.785l.194-.112.175-.093a3 3 0 0 0 .216-.12l.155-.102.004-.019-.063-.108-.08-.125-.103-.143c-.937-1.246-1.044-2.335-.276-3.404l.115-.153.824-1.013c.79-.915 1.8-1.107 3.034-.64l.208.083.181.081q.103.048.222.093l.136.048.036-.017.033-.089.045-.138.046-.166c.36-1.436 1.085-2.242 2.39-2.35l.19-.011h1.39Zm-.056 1.799h-1.333l-.14.01c-.285.037-.472.191-.652.832l-.041.156-.057.206a6.3 6.3 0 0 1-.468 1.134 6 6 0 0 0-1.147.558 6.5 6.5 0 0 1-1.16-.35l-.35-.154c-.248-.107-.435-.161-.583-.175l-.084-.003a.55.55 0 0 0-.408.193l-.068.074-.789.973-.095.125c-.183.264-.21.5.195 1.075l.228.316c.212.31.425.692.598 1.102q-.195.577-.27 1.201c-.334.29-.69.537-1.013.72l-.343.184c-.617.34-.695.563-.646.881l.013.075.28 1.22.04.152c.096.308.265.475.968.509l.388.014c.37.024.798.09 1.223.204q.337.526.776.968a6.3 6.3 0 0 1-.118 1.445c-.201.95-.014 1.102.383 1.3l1.126.547a.8.8 0 0 0 .337.089l.067-.006c.181-.028.382-.162.67-.485l.258-.295a6.5 6.5 0 0 1 .949-.837l.298.023L12 18l.302-.008.298-.022c.363.263.691.559.948.837l.258.295c.325.364.538.488.737.49l.066-.003a.8.8 0 0 0 .178-.046l.093-.039 1.126-.548.139-.073c.3-.175.42-.395.245-1.226a6.2 6.2 0 0 1-.117-1.445q.436-.442.775-.97a6.5 6.5 0 0 1 1.223-.202l.387-.014c.812-.04.912-.256 1.008-.66l.264-1.142c.09-.406.095-.643-.617-1.035l-.342-.183a6.4 6.4 0 0 1-1.014-.722 6 6 0 0 0-.27-1.201c.174-.41.386-.791.598-1.1l.228-.317c.406-.575.378-.81.195-1.075l-.045-.062-.787-.974c-.14-.171-.259-.294-.452-.322l-.076-.007c-.16-.003-.368.05-.667.178l-.35.155a6.4 6.4 0 0 1-1.158.348 6 6 0 0 0-1.15-.556 6.5 6.5 0 0 1-.454-1.093l-.113-.414c-.192-.678-.393-.805-.714-.828zM12 8.2a3.8 3.8 0 1 1 0 7.6 3.8 3.8 0 0 1 0-7.6m0 1.8a2 2 0 1 0 0 4 2 2 0 0 0 0-4"),be(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Me(r,o,s,s[1],n?Ae(o,s[1],u,null):Ve(s[1]),null),be(e,a=Re(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 mg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Va=class extends j{constructor(e){super(),G(this,e,mg,dg,K,{})}},$1=Va;function pg(i){let e,t,n,o,r=i[2].default,l=Ee(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"settings-icon"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=le(s,a[u]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),n=D("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M13.933 4.875a.6.6 0 0 0-.07-.658c-.327-.413-.45-.833-.574-1.253l-.039-.13C13 2 12.833 2 12.417 2h-.91c-.371.003-.6.052-.757.833-.148.738-.36 1.476-1.566 2.186a.5.5 0 0 1-.12.05c-1.27.324-1.905-.023-2.542-.37l-.12-.065c-.766-.412-.884-.294-1.178 0l-.643.644c-.26.264-.389.461.053 1.124.418.626.789 1.299.438 2.654a.5.5 0 0 1-.05.12c-.668 1.126-1.362 1.33-2.058 1.535l-.13.039C2 11 2 11.167 2 11.583v.91c.003.371.052.6.833.757.738.148 1.476.36 2.186 1.566a.5.5 0 0 1 .05.12c.324 1.27-.023 1.905-.37 2.542l-.065.12c-.412.766-.294.884 0 1.178l.644.643c.264.26.461.389 1.124-.053.626-.418 1.299-.789 2.654-.438q.063.016.12.05c1.126.668 1.33 1.362 1.535 2.058l.039.13c.25.834.417.834.833.834h.91c.371-.003.6-.052.757-.833.148-.738.36-1.476 1.566-2.186a.5.5 0 0 1 .12-.05c1.27-.324 1.905.023 2.542.37l.12.065c.766.412.884.294 1.178 0l.643-.644c.26-.264.389-.461-.053-1.124-.26-.39-.503-.799-.563-1.38a.6.6 0 0 0-.413-.519 7.5 7.5 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.58.58 0 0 0 .633-.44 7.5 7.5 0 0 1 .749-1.967"),f(t,"clip-rule","evenodd"),f(n,"fill","#fff"),f(n,"d","M13.25 2.833c.225.751.383 1.502 1.63 2.222 1.399.38 2.082.003 2.718-.42.663-.443.86-.315 1.124-.054l.644.643c.294.294.412.412 0 1.178-.372.69-.792 1.333-.418 2.726.72 1.255 1.47 1.472 2.219 1.622.78.156.83.386.833.757v.91c0 .416 0 .583-.833.833-.751.225-1.502.383-2.222 1.63-.38 1.399-.003 2.082.42 2.718.443.663.315.86.054 1.124l-.643.644c-.294.294-.412.412-1.178 0-.69-.372-1.333-.792-2.726-.418-1.255.72-1.472 1.47-1.622 2.219-.156.78-.386.83-.757.833h-.91c-.416 0-.583 0-.833-.833-.225-.751-.383-1.502-1.63-2.222-1.399-.38-2.082-.003-2.718.42-.663.443-.86.315-1.124.054l-.644-.643c-.294-.294-.412-.412 0-1.178.372-.69.792-1.333.418-2.726-.72-1.255-1.47-1.472-2.219-1.622-.78-.156-.83-.386-.833-.757v-.91c0-.416 0-.583.833-.833.751-.225 1.502-.383 2.222-1.63.38-1.399.003-2.082-.42-2.718-.443-.663-.315-.86-.054-1.124l.643-.644c.294-.294.412-.412 1.178 0 .69.372 1.333.792 2.726.418 1.255-.72 1.472-1.47 1.622-2.219.156-.78.386-.83.757-.833h.91c.416 0 .583 0 .833.833M12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5"),f(n,"class","_full"),be(e,s)},m(u,c){S(u,e,c),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[c]){l&&l.p&&(!o||c&2)&&Me(l,r,u,u[1],o?Ae(r,u[1],c,null):Ve(u[1]),null),be(e,s=Re(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"settings-icon"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&C(e),l&&l.d(u)}}}function _g(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var La=class extends j{constructor(e){super(),G(this,e,_g,pg,K,{})}},ed=La;function hg(i){Te(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 gg(i){let e,t,n,o,r=i[1]&&td(i);return n=new ed({props:{"data-testid":i[1]?"settings-icon--labeled":"settings-icon"}}),{c(){e=T("div"),r&&r.c(),t=q(),B(n.$$.fragment),f(e,"class","icon svelte-8t5w85"),f(e,"aria-hidden","true"),F(e,"triple",i[2])},m(l,a){S(l,e,a),r&&r.m(e,null),p(e,t),L(n,e,null),o=!0},p(l,a){l[1]?r?(r.p(l,a),a&2&&d(r,1)):(r=td(l),r.c(),d(r,1),r.m(e,t)):r&&(ue(),_(r,1,1,()=>{r=null}),fe());let s={};a&2&&(s["data-testid"]=l[1]?"settings-icon--labeled":"settings-icon"),n.$set(s),(!o||a&4)&&F(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(),R(n)}}}function bg(i){let e,t;return e=new $1({}),{c(){B(e.$$.fragment)},m(n,o){L(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){R(e,n)}}}function td(i){let e,t;return e=new Z1({props:{$$slots:{default:[vg]},$$scope:{ctx:i}}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&18&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function vg(i){let e,t,n;var o=i[1];function r(l){return{}}return o&&(e=Rn(o,r(i))),{c(){e&&B(e.$$.fragment),t=ct()},m(l,a){e&&L(e,l,a),S(l,t,a),n=!0},p(l,a){if(a&2&&o!==(o=l[1])){if(e){ue();let s=e;_(s.$$.fragment,1,0,()=>{R(s,1)}),fe()}o?(e=Rn(o,r(l)),B(e.$$.fragment),d(e.$$.fragment,1),L(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&&R(e,l)}}}function yg(i){let e,t,n,o,r=[bg,gg],l=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=ct()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let c=e;e=a(s,u),e===c?l[e].p(s,u):(ue(),_(l[c],1,1,()=>{l[c]=null}),fe(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&C(n),l[e].d(s)}}}function wg(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&&[Nr,qr].includes(n))},[o,n,l,r]}var Ra=class extends j{constructor(e){super(),G(this,e,wg,yg,K,{isMobile:0,currentQuality:3},hg)}},Or=Ra;function kg(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"18"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-empty-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=le(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","#fff"),f(t,"d","M14.692.428c2.293 0 3.124.24 3.962.687a4.67 4.67 0 0 1 1.944 1.944c.449.839.687 1.67.687 3.962v3.958c0 2.292-.238 3.123-.687 3.961a4.67 4.67 0 0 1-1.944 1.944c-.838.449-1.67.687-3.962.687H7.307c-2.293 0-3.124-.238-3.962-.687A4.67 4.67 0 0 1 1.4 14.94c-.448-.838-.687-1.669-.687-3.961V7.02c0-2.292.239-3.123.687-3.962a4.67 4.67 0 0 1 1.944-1.944C4.183.667 5.015.428 7.307.428zm.243 1.716-7.628-.001c-1.832 0-2.484.126-3.154.484a2.96 2.96 0 0 0-1.24 1.24c-.343.64-.473 1.264-.484 2.912v4.2c0 1.83.125 2.483.483 3.153q.433.809 1.241 1.24c.67.36 1.322.485 3.154.485h7.385c1.832 0 2.484-.126 3.154-.484a2.96 2.96 0 0 0 1.24-1.241c.36-.67.485-1.322.485-3.153V7.02c0-1.831-.126-2.483-.484-3.153a2.96 2.96 0 0 0-1.241-1.24c-.64-.343-1.263-.473-2.911-.484ZM11 10.714a.857.857 0 1 1 0 1.714H5.857a.857.857 0 0 1 0-1.714zm5.142 0a.857.857 0 1 1 0 1.714h-1.714a.857.857 0 0 1 0-1.714zm0-3.428a.857.857 0 1 1 0 1.714H11a.857.857 0 1 1 0-1.714zm-8.571 0a.857.857 0 0 1 0 1.714H5.857a.857.857 0 0 1 0-1.714z"),be(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Me(r,o,s,s[1],n?Ae(o,s[1],u,null):Ve(s[1]),null),be(e,a=Re(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 Cg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Ba=class extends j{constructor(e){super(),G(this,e,Cg,kg,K,{})}},Fr=Ba;function Sg(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"19"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"download-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=le(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M8 0a.9.9 0 0 1 .9.9v10.927l4.564-4.563a.9.9 0 0 1 1.272 1.272l-6.1 6.1a.9.9 0 0 1-1.272 0l-6.1-6.1a.9.9 0 1 1 1.272-1.272L7.1 11.827V.9A.9.9 0 0 1 8 0M0 18a.9.9 0 0 1 .9-.9h14.2a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 18"),f(t,"clip-rule","evenodd"),be(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Me(r,o,s,s[1],n?Ae(o,s[1],u,null):Ve(s[1]),null),be(e,a=Re(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 Tg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Da=class extends j{constructor(e){super(),G(this,e,Tg,Sg,K,{})}},id=Da;function Pg(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"17"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"traffic-saving-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=le(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M.1 6.5c0-2.24 0-3.36.436-4.216A4 4 0 0 1 2.284.536C3.139.1 4.259.1 6.5.1h5c2.24 0 3.36 0 4.216.436a4 4 0 0 1 1.748 1.748c.436.856.436 1.976.436 4.216s0 3.36-.436 4.216a4 4 0 0 1-1.748 1.748c-.836.426-1.925.436-4.064.436l.55 2.2H14.1a.9.9 0 0 1 0 1.8H3.9a.9.9 0 1 1 0-1.8h1.897l.55-2.2c-2.139 0-3.227-.01-4.063-.436a4 4 0 0 1-1.748-1.748C.1 9.86.1 8.74.1 6.5m11.4-4.6h-5c-1.15 0-1.904.002-2.481.049-.556.045-.786.124-.918.19a2.2 2.2 0 0 0-.962.962c-.067.132-.145.363-.19.918-.048.577-.05 1.331-.05 2.481s.002 1.904.05 2.48c.045.556.123.787.19.919a2.2 2.2 0 0 0 .962.961c.132.068.362.146.918.192.577.047 1.33.048 2.48.048h5c1.15 0 1.904-.001 2.481-.048.556-.046.787-.124.918-.192a2.2 2.2 0 0 0 .962-.961c.067-.132.146-.363.191-.918.047-.577.049-1.331.049-2.48s-.002-1.905-.049-2.482c-.045-.555-.124-.786-.191-.918a2.2 2.2 0 0 0-.962-.961c-.131-.067-.362-.146-.918-.191-.577-.048-1.33-.049-2.48-.049m-3.298 11-.55 2.2h2.695l-.55-2.2z"),f(t,"clip-rule","evenodd"),be(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Me(r,o,s,s[1],n?Ae(o,s[1],u,null):Ve(s[1]),null),be(e,a=Re(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 Ig(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Na=class extends j{constructor(e){super(),G(this,e,Ig,Pg,K,{})}},nd=Na;function Eg(i){let e,t,n,o,r,l=i[2].default,a=Ee(l,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"play-speed-icon"},{role:"img"},i[0]],u={};for(let c=0;c<s.length;c+=1)u=le(u,s[c]);return{c(){e=D("svg"),a&&a.c(),t=D("g"),n=D("path"),o=D("path"),f(n,"d","M0 0h24v24H0z"),f(o,"fill","#fff"),f(o,"fill-rule","nonzero"),f(o,"d","M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A7.94 7.94 0 0 1 11 4.07M5.69 7.1 4.26 5.68A9.95 9.95 0 0 0 2.05 11h2.02c.18-1.46.76-2.79 1.62-3.9M2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A7.87 7.87 0 0 1 4.07 13zM11 21.95v-2.02a7.94 7.94 0 0 1-3.9-1.62l-1.42 1.43A10 10 0 0 0 11 21.95M22 12c0 5.16-3.92 9.42-8.95 9.95v-2.02C16.97 19.41 20 16.05 20 12s-3.03-7.41-6.95-7.93V2.05C18.08 2.58 22 6.84 22 12M10.688 8.576l4.746 2.736a.792.792 0 0 1 0 1.372l-4.746 2.737a.792.792 0 0 1-1.188-.686V9.262a.792.792 0 0 1 1.188-.686"),f(t,"fill","none"),f(t,"fill-rule","evenodd"),be(e,u)},m(c,m){S(c,e,m),a&&a.m(e,null),p(e,t),p(t,n),p(t,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Me(a,l,c,c[1],r?Ae(l,c[1],m,null):Ve(c[1]),null),be(e,u=Re(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"play-speed-icon"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){_(a,c),r=!1},d(c){c&&C(e),a&&a.d(c)}}}function Ag(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var qa=class extends j{constructor(e){super(),G(this,e,Ag,Eg,K,{})}},od=qa;function Mg(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"15"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"audio-languages-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=le(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","#fff"),f(t,"d","M8.295 14.247c1.87 1.896 5.505.02 5.505-3.548V5.645l2.399-.697A2.74 2.74 0 0 0 18 2.364l-.01-1.72a.75.75 0 0 0-.906-.623l-.267.061c-.941.215-1.886.431-2.807.721-1.332.45-2.03 1.614-2.01 3.077V9c-3.887.196-5.639 3.286-3.705 5.247M.9.1a.9.9 0 0 0 0 1.8h8.197a.9.9 0 0 0 0-1.8zM.9 5.1a.9.9 0 1 0 0 1.8h7.196a.9.9 0 0 0 0-1.8zM0 11a.9.9 0 0 1 .9-.9h4.183a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 11"),be(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Me(r,o,s,s[1],n?Ae(o,s[1],u,null):Ve(s[1]),null),be(e,a=Re(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 Vg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Oa=class extends j{constructor(e){super(),G(this,e,Vg,Mg,K,{})}},ld=Oa;function Lg(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"7"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=le(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","#fff"),f(t,"fill-opacity",".72"),f(t,"fill-rule","evenodd"),f(t,"d","M11.736 6.736a.9.9 0 0 1-1.272 0L6 2.273 1.536 6.736A.9.9 0 1 1 .264 5.464l5.1-5.1a.9.9 0 0 1 1.272 0l5.1 5.1a.9.9 0 0 1 0 1.272"),f(t,"clip-rule","evenodd"),be(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Me(r,o,s,s[1],n?Ae(o,s[1],u,null):Ve(s[1]),null),be(e,a=Re(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 Rg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Fa=class extends j{constructor(e){super(),G(this,e,Rg,Lg,K,{})}},rd=Fa;function Bg(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=le(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","#fff"),f(t,"d","m5.773 8 3.363 3.364a.9.9 0 1 1-1.272 1.272l-4-4a.9.9 0 0 1 0-1.272l4-4a.9.9 0 0 1 1.272 1.272z"),be(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Me(r,o,s,s[1],n?Ae(o,s[1],u,null):Ve(s[1]),null),be(e,a=Re(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 Dg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Ha=class extends j{constructor(e){super(),G(this,e,Dg,Bg,K,{})}},sd=Ha;function Ng(i){let e,t;return e=new sd({props:{style:i[2],"data-testid":i[0]?"chevron-icon--right":"chevron-icon--left"}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&4&&(r.style=n[2]),o&1&&(r["data-testid"]=n[0]?"chevron-icon--right":"chevron-icon--left"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function qg(i){let e,t;return e=new rd({props:{style:i[2],"data-testid":i[0]?"chevron-icon--down":"chevron-icon--up"}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&4&&(r.style=n[2]),o&1&&(r["data-testid"]=n[0]?"chevron-icon--down":"chevron-icon--up"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Og(i){let e,t,n,o,r=[qg,Ng],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=ct()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let c=e;e=a(s,u),e===c?l[e].p(s,u):(ue(),_(l[c],1,1,()=>{l[c]=null}),fe(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(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 za=class extends j{constructor(e){super(),G(this,e,Fg,Og,K,{direction:3})}},xn=za;function Hg(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"report-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=le(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M8.863 2.1h6.274c.674-.002 1.2.211 1.683.697l4.383 4.383c.478.476.699.998.697 1.683v6.274c.002.685-.22 1.207-.697 1.683l-4.383 4.383c-.476.478-.998.699-1.683.697H8.863c-.685.002-1.207-.22-1.683-.697L2.797 16.82c-.478-.476-.699-.998-.697-1.683V8.863c-.002-.685.22-1.207.697-1.683L7.18 2.797c.484-.486 1.009-.699 1.683-.697m-.445 2.005L4.105 8.418c-.18.18-.205.242-.205.495v6.174c0 .25.025.316.205.495l4.313 4.313c.179.179.24.205.495.205h6.174c.253 0 .316-.026.495-.205l4.313-4.313c.18-.18.205-.245.205-.495V8.913c0-.254-.026-.316-.205-.495l-4.313-4.313c-.18-.18-.242-.205-.495-.205H8.913c-.254 0-.319.029-.495.205M13 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-.1-8.1a.9.9 0 0 0-1.8 0v5.2a.9.9 0 1 0 1.8 0z"),f(t,"clip-rule","evenodd"),be(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Me(r,o,s,s[1],n?Ae(o,s[1],u,null):Ve(s[1]),null),be(e,a=Re(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 zg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Ua=class extends j{constructor(e){super(),G(this,e,zg,Hg,K,{})}},ad=Ua;function Ug(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"16"},{"aria-hidden":"true"},{"data-testid":"check-mark-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=le(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","#fff"),f(t,"d","M6 10.2 3.5 7.7a.99.99 0 0 0-1.4 1.4l3.2 3.2a1 1 0 0 0 1.4 0l7.6-7.6a.99.99 0 0 0-1.4-1.4z"),be(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Me(r,o,s,s[1],n?Ae(o,s[1],u,null):Ve(s[1]),null),be(e,a=Re(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 Kg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Ka=class extends j{constructor(e){super(),G(this,e,Kg,Ug,K,{})}},Zo=Ka;function jg(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"copy-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=le(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M4 12.3V12c0-1.47.005-2.547.075-3.403.074-.904.216-1.482.454-1.949a4.85 4.85 0 0 1 2.12-2.12c.466-.237 1.044-.379 1.948-.453C9.51 4.001 10.675 4 12.3 4h4.512a2 2 0 0 0-.174-.49 2.4 2.4 0 0 0-1.048-1.048 2.4 2.4 0 0 0-.931-.239 14 14 0 0 0-1.026-.023H12.26c-1.576 0-2.814 0-3.81.081-1.014.083-1.856.255-2.62.644A6.65 6.65 0 0 0 2.926 5.83c-.389.763-.56 1.605-.644 2.62-.081.995-.081 2.233-.081 3.809v1.373c0 .392 0 .738.023 1.025.025.306.081.623.239.931a2.4 2.4 0 0 0 1.048 1.05c.162.082.326.136.49.173V12.3zM10.08 6h-.035c-.52 0-.964 0-1.329.03-.383.03-.755.097-1.112.276a2.9 2.9 0 0 0-1.298 1.298c-.179.357-.246.73-.277 1.112C6 9.081 6 9.524 6 10.046v7.909c0 .52 0 .964.03 1.329.03.382.097.755.276 1.112a2.9 2.9 0 0 0 1.298 1.298c.357.179.73.246 1.112.277.365.029.808.029 1.329.029h6.91c.52 0 .964 0 1.329-.03.382-.03.755-.097 1.112-.276a2.9 2.9 0 0 0 1.298-1.298c.179-.357.246-.73.277-1.112.029-.365.029-.808.029-1.33v-7.909c0-.52 0-.964-.03-1.329-.03-.382-.097-.755-.276-1.112a2.9 2.9 0 0 0-1.298-1.298c-.357-.179-.73-.246-1.112-.277C17.919 6 17.476 6 16.954 6zM8.408 7.916c.065-.032.179-.07.452-.093a18 18 0 0 1 1.22-.023h6.84c.565 0 .936 0 1.22.023.273.022.387.06.452.093a1.1 1.1 0 0 1 .492.492c.032.065.07.179.093.452.022.284.023.655.023 1.22v7.84c0 .565 0 .936-.023 1.22-.023.273-.06.387-.093.452a1.1 1.1 0 0 1-.492.492c-.065.032-.18.07-.452.093a18 18 0 0 1-1.22.023h-6.84c-.565 0-.936 0-1.22-.023-.273-.023-.387-.06-.452-.093a1.1 1.1 0 0 1-.492-.492c-.032-.065-.07-.18-.093-.452a17 17 0 0 1-.023-1.22v-7.84c0-.565 0-.936.023-1.22.022-.273.06-.387.093-.452a1.1 1.1 0 0 1 .492-.492"),f(t,"clip-rule","evenodd"),be(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Me(r,o,s,s[1],n?Ae(o,s[1],u,null):Ve(s[1]),null),be(e,a=Re(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 Wg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var ja=class extends j{constructor(e){super(),G(this,e,Wg,jg,K,{})}},ud=ja;function Gg(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"info-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=le(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","#fff"),f(t,"d","M12 20.105a8.105 8.105 0 1 0 0-16.21 8.105 8.105 0 0 0 0 16.21M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10m0-12.372a1.316 1.316 0 1 1 0-2.632 1.316 1.316 0 0 1 0 2.632m-.947 2.822c0-.541.424-.98.947-.98s.947.439.947.98v3.83c0 .54-.424.98-.947.98s-.947-.44-.947-.98z"),be(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Me(r,o,s,s[1],n?Ae(o,s[1],u,null):Ve(s[1]),null),be(e,a=Re(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 Qg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Wa=class extends j{constructor(e){super(),G(this,e,Qg,Gg,K,{})}},fd=Wa;function Yg(i){Te(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 cd(i,e,t){let n=i.slice();return n[163]=e[t],n}function dd(i,e,t){let n=i.slice();return n[166]=e[t],n}function md(i,e,t){let n=i.slice();return n[169]=e[t],n}function pd(i,e,t){let n=i.slice();return n[172]=e[t],n}function _d(i){let e,t,n,o,r,l,a,s,u,c,m,h,k,g=i[40]&&hd(i),w=i[30]&&gd(i),y=i[29]&&vd(i),P=i[28]&&yd(i),v=i[27]&&wd(i),b=i[26]&&kd(i),I=i[25]&&Cd(i),N=i[40]&&Sd(i);return{c(){e=T("div"),g&&g.c(),t=q(),n=T("ul"),w&&w.c(),o=q(),y&&y.c(),r=q(),P&&P.c(),l=q(),v&&v.c(),a=q(),b&&b.c(),s=q(),I&&I.c(),u=q(),N&&N.c(),f(n,"class","items svelte-1h807jq"),f(n,"role","menu"),f(n,"style",c=i[84]()),F(n,"items-mobile",i[40]),f(e,"class","menu svelte-1h807jq"),F(e,"menu-desktop",!i[40]),F(e,"menu-mobile",i[40]),F(e,"hidden",!i[13])},m(M,O){S(M,e,O),g&&g.m(e,null),p(e,t),p(e,n),w&&w.m(n,null),p(n,o),y&&y.m(n,null),p(n,r),P&&P.m(n,null),p(n,l),v&&v.m(n,null),p(n,a),b&&b.m(n,null),p(n,s),I&&I.m(n,null),p(n,u),N&&N.m(n,null),i[129](n),m=!0,h||(k=[de(e,"keydown",i[90]),de(e,"mouseenter",i[82]),de(e,"mouseleave",i[83])],h=!0)},p(M,O){M[40]?g?g.p(M,O):(g=hd(M),g.c(),g.m(e,t)):g&&(g.d(1),g=null),M[30]?w?(w.p(M,O),O[0]&1073741824&&d(w,1)):(w=gd(M),w.c(),d(w,1),w.m(n,o)):w&&(ue(),_(w,1,1,()=>{w=null}),fe()),M[29]?y?(y.p(M,O),O[0]&536870912&&d(y,1)):(y=vd(M),y.c(),d(y,1),y.m(n,r)):y&&(ue(),_(y,1,1,()=>{y=null}),fe()),M[28]?P?(P.p(M,O),O[0]&268435456&&d(P,1)):(P=yd(M),P.c(),d(P,1),P.m(n,l)):P&&(ue(),_(P,1,1,()=>{P=null}),fe()),M[27]?v?(v.p(M,O),O[0]&134217728&&d(v,1)):(v=wd(M),v.c(),d(v,1),v.m(n,a)):v&&(ue(),_(v,1,1,()=>{v=null}),fe()),M[26]?b?(b.p(M,O),O[0]&67108864&&d(b,1)):(b=kd(M),b.c(),d(b,1),b.m(n,s)):b&&(ue(),_(b,1,1,()=>{b=null}),fe()),M[25]?I?(I.p(M,O),O[0]&33554432&&d(I,1)):(I=Cd(M),I.c(),d(I,1),I.m(n,u)):I&&(ue(),_(I,1,1,()=>{I=null}),fe()),M[40]?N?(N.p(M,O),O[1]&512&&d(N,1)):(N=Sd(M),N.c(),d(N,1),N.m(n,null)):N&&(ue(),_(N,1,1,()=>{N=null}),fe()),(!m||O[1]&512)&&F(n,"items-mobile",M[40]),(!m||O[1]&512)&&F(e,"menu-desktop",!M[40]),(!m||O[1]&512)&&F(e,"menu-mobile",M[40]),(!m||O[0]&8192)&&F(e,"hidden",!M[13])},i(M){m||(d(w),d(y),d(P),d(v),d(b),d(I),d(N),m=!0)},o(M){_(w),_(y),_(P),_(v),_(b),_(I),_(N),m=!1},d(M){M&&C(e),g&&g.d(),w&&w.d(),y&&y.d(),P&&P.d(),v&&v.d(),b&&b.d(),I&&I.d(),N&&N.d(),i[129](null),h=!1,ot(k)}}}function hd(i){let e,t,n,o,r,l,a,s;return{c(){e=T("div"),t=T("div"),t.textContent=`${W("submenu_settings")}`,n=q(),o=T("div"),r=q(),l=T("div"),f(o,"class","close svelte-1h807jq"),f(e,"class","item menu-header svelte-1h807jq"),F(e,"item-mobile",i[40]),f(l,"class","menu-divider svelte-1h807jq")},m(u,c){S(u,e,c),p(e,t),p(e,n),p(e,o),S(u,r,c),S(u,l,c),a||(s=de(o,"click",ut(i[66])),a=!0)},p(u,c){c[1]&512&&F(e,"item-mobile",u[40])},d(u){u&&(C(e),C(r),C(l)),a=!1,s()}}}function gd(i){let e,t,n,o,r,l,a,s,u,c,m,h,k;n=new Or({});let g=i[39]&&!i[40]&&bd(i);return{c(){e=T("li"),t=T("div"),B(n.$$.fragment),o=q(),r=T("div"),r.textContent=`${W("menu_quality")}`,l=q(),a=T("div"),s=Le(i[19]),u=q(),g&&g.c(),f(t,"class","menu-icon-wrapper svelte-1h807jq"),f(r,"class","menu-title svelte-1h807jq"),f(a,"class","menu-value svelte-1h807jq"),f(e,"class","item svelte-1h807jq"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",c=W("aria_label_menu_quality",{actual:i[32]})),f(e,"aria-haspopup","true"),F(e,"item-mobile",i[40])},m(w,y){S(w,e,y),p(e,t),L(n,t,null),p(e,o),p(e,r),p(e,l),p(e,a),p(a,s),p(a,u),g&&g.m(a,null),i[124](e),m=!0,h||(k=[de(e,"click",ut(i[67])),de(e,"keydown",i[91])],h=!0)},p(w,y){(!m||y[0]&524288)&&Ye(s,w[19]),w[39]&&!w[40]?g?(g.p(w,y),y[1]&768&&d(g,1)):(g=bd(w),g.c(),d(g,1),g.m(a,null)):g&&(ue(),_(g,1,1,()=>{g=null}),fe()),(!m||y[1]&2&&c!==(c=W("aria_label_menu_quality",{actual:w[32]})))&&f(e,"aria-label",c),(!m||y[1]&512)&&F(e,"item-mobile",w[40])},i(w){m||(d(n.$$.fragment,w),d(g),m=!0)},o(w){_(n.$$.fragment,w),_(g),m=!1},d(w){w&&C(e),R(n),g&&g.d(),i[124](null),h=!1,ot(k)}}}function bd(i){let e,t,n;var o=i[39];function r(l){return{}}return o&&(t=Rn(o,r(i))),{c(){e=T("div"),t&&B(t.$$.fragment),f(e,"class","menu-valueIcon svelte-1h807jq")},m(l,a){S(l,e,a),t&&L(t,e,null),n=!0},p(l,a){if(a[1]&256&&o!==(o=l[39])){if(t){ue();let s=t;_(s.$$.fragment,1,0,()=>{R(s,1)}),fe()}o?(t=Rn(o,r(l)),B(t.$$.fragment),d(t.$$.fragment,1),L(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&&R(t)}}}function vd(i){let e,t,n,o,r,l,a,s=uo(i[41],i[9])+"",u,c,m,h,k;return n=new ld({}),{c(){e=T("li"),t=T("div"),B(n.$$.fragment),o=q(),r=T("div"),r.textContent=`${W("menu_audio_languages")}`,l=q(),a=T("div"),u=Le(s),f(t,"class","menu-icon-wrapper svelte-1h807jq"),f(r,"class","menu-title svelte-1h807jq"),f(a,"class","menu-value svelte-1h807jq"),f(e,"class","item svelte-1h807jq"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",c=W("aria_label_menu_audio_languages",{actual:uo(i[41],i[9])})),f(e,"aria-haspopup","true"),F(e,"item-mobile",i[40])},m(g,w){S(g,e,w),p(e,t),L(n,t,null),p(e,o),p(e,r),p(e,l),p(e,a),p(a,u),i[125](e),m=!0,h||(k=[de(e,"click",ut(i[68])),de(e,"keydown",i[92])],h=!0)},p(g,w){(!m||w[0]&512|w[1]&1024)&&s!==(s=uo(g[41],g[9])+"")&&Ye(u,s),(!m||w[0]&512|w[1]&1024&&c!==(c=W("aria_label_menu_audio_languages",{actual:uo(g[41],g[9])})))&&f(e,"aria-label",c),(!m||w[1]&512)&&F(e,"item-mobile",g[40])},i(g){m||(d(n.$$.fragment,g),m=!0)},o(g){_(n.$$.fragment,g),m=!1},d(g){g&&C(e),R(n),i[125](null),h=!1,ot(k)}}}function yd(i){let e,t,n,o,r,l,a,s,u,c,m,h,k;return n=new od({}),{c(){e=T("li"),t=T("div"),B(n.$$.fragment),o=q(),r=T("div"),r.textContent=`${W("menu_playback_rate")}`,l=q(),a=T("div"),s=Le(i[11]),u=Le("x"),f(t,"class","menu-icon-wrapper svelte-1h807jq"),f(r,"class","menu-title svelte-1h807jq"),f(a,"class","menu-value svelte-1h807jq"),f(e,"class","item svelte-1h807jq"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",c=W("aria_label_menu_rate",{actual:i[33]})),f(e,"aria-haspopup","true"),F(e,"item-mobile",i[40])},m(g,w){S(g,e,w),p(e,t),L(n,t,null),p(e,o),p(e,r),p(e,l),p(e,a),p(a,s),p(a,u),i[126](e),m=!0,h||(k=[de(e,"click",ut(Ot(i[73]))),de(e,"keydown",i[97])],h=!0)},p(g,w){(!m||w[0]&2048)&&Ye(s,g[11]),(!m||w[1]&4&&c!==(c=W("aria_label_menu_rate",{actual:g[33]})))&&f(e,"aria-label",c),(!m||w[1]&512)&&F(e,"item-mobile",g[40])},i(g){m||(d(n.$$.fragment,g),m=!0)},o(g){_(n.$$.fragment,g),m=!1},d(g){g&&C(e),R(n),i[126](null),h=!1,ot(k)}}}function wd(i){let e,t,n,o,r,l,a,s=i[42].displayValue+"",u,c,m,h,k;return n=new Fr({}),{c(){e=T("li"),t=T("div"),B(n.$$.fragment),o=q(),r=T("div"),r.textContent=`${W("subtitles_caption")}`,l=q(),a=T("div"),u=Le(s),f(t,"class","menu-icon-wrapper svelte-1h807jq"),f(r,"class","menu-title svelte-1h807jq"),f(a,"class","menu-value svelte-1h807jq"),f(e,"class","item svelte-1h807jq"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",c=W("aria_label_menu_subtitle",{actual:i[42].displayValue})),f(e,"aria-haspopup","true"),F(e,"item-mobile",i[40])},m(g,w){S(g,e,w),p(e,t),L(n,t,null),p(e,o),p(e,r),p(e,l),p(e,a),p(a,u),i[127](e),m=!0,h||(k=[de(e,"click",ut(i[75])),de(e,"keydown",i[100])],h=!0)},p(g,w){(!m||w[1]&2048)&&s!==(s=g[42].displayValue+"")&&Ye(u,s),(!m||w[1]&2048&&c!==(c=W("aria_label_menu_subtitle",{actual:g[42].displayValue})))&&f(e,"aria-label",c),(!m||w[1]&512)&&F(e,"item-mobile",g[40])},i(g){m||(d(n.$$.fragment,g),m=!0)},o(g){_(n.$$.fragment,g),m=!1},d(g){g&&C(e),R(n),i[127](null),h=!1,ot(k)}}}function kd(i){let e,t,n,o,r,l,a,s,u,c,m,h;return n=new nd({}),{c(){e=T("li"),t=T("div"),B(n.$$.fragment),o=q(),r=T("div"),r.textContent=`${W("menu_traffic_saving")}`,l=q(),a=T("div"),s=Le(i[31]),f(t,"class","menu-icon-wrapper svelte-1h807jq"),f(r,"class","menu-title svelte-1h807jq"),f(a,"class","menu-value svelte-1h807jq"),f(e,"class","item svelte-1h807jq"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",u=W("aria_label_menu_traffic_saving",{actual:i[31]})),f(e,"aria-haspopup","true"),F(e,"item-mobile",i[40])},m(k,g){S(k,e,g),p(e,t),L(n,t,null),p(e,o),p(e,r),p(e,l),p(e,a),p(a,s),i[128](e),c=!0,m||(h=[de(e,"click",ut(i[69])),de(e,"keydown",i[103])],m=!0)},p(k,g){(!c||g[1]&1)&&Ye(s,k[31]),(!c||g[1]&1&&u!==(u=W("aria_label_menu_traffic_saving",{actual:k[31]})))&&f(e,"aria-label",u),(!c||g[1]&512)&&F(e,"item-mobile",k[40])},i(k){c||(d(n.$$.fragment,k),c=!0)},o(k){_(n.$$.fragment,k),c=!1},d(k){k&&C(e),R(n),i[128](null),m=!1,ot(h)}}}function Cd(i){let e,t,n,o,r,l,a,s,u;return n=new id({}),{c(){e=T("li"),t=T("div"),B(n.$$.fragment),o=q(),r=T("div"),r.textContent=`${W("download_video_caption")}`,f(t,"class","menu-icon-wrapper svelte-1h807jq"),f(r,"class","menu-title svelte-1h807jq"),f(e,"class","item svelte-1h807jq"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",l=W("aria_label_menu_download")),F(e,"item-mobile",i[40])},m(c,m){S(c,e,m),p(e,t),L(n,t,null),p(e,o),p(e,r),a=!0,s||(u=[de(e,"click",ut(i[78])),de(e,"keydown",i[106])],s=!0)},p(c,m){(!a||m[1]&512)&&F(e,"item-mobile",c[40])},i(c){a||(d(n.$$.fragment,c),a=!0)},o(c){_(n.$$.fragment,c),a=!1},d(c){c&&C(e),R(n),s=!1,ot(u)}}}function Sd(i){let e,t,n,o,r,l,a,s,u,c,m,h,k,g,w,y,P,v=i[44].showSupport&&Zg(i);return o=new ud({}),m=new fd({}),{c(){v&&v.c(),e=q(),t=T("li"),n=T("div"),B(o.$$.fragment),r=q(),l=T("div"),l.textContent=`${W("menu_copy_debug")}`,s=q(),u=T("li"),c=T("div"),B(m.$$.fragment),h=q(),k=T("div"),k.textContent=`${W("menu_debug_overlay")}`,f(n,"class","menu-icon-wrapper svelte-1h807jq"),f(l,"class","menu-title svelte-1h807jq"),f(t,"class","item item-mobile svelte-1h807jq"),f(t,"role","menuitem"),f(t,"tabindex","0"),f(t,"aria-label",a=W("menu_copy_debug")),f(c,"class","menu-icon-wrapper svelte-1h807jq"),f(k,"class","menu-title svelte-1h807jq"),f(u,"class","item item-mobile svelte-1h807jq"),f(u,"role","menuitem"),f(u,"tabindex","0"),f(u,"aria-label",g=i[43]?W("aria_label_menu_debug_overlay_disable"):W("aria_label_menu_debug_overlay_enable"))},m(b,I){v&&v.m(b,I),S(b,e,I),S(b,t,I),p(t,n),L(o,n,null),p(t,r),p(t,l),S(b,s,I),S(b,u,I),p(u,c),L(m,c,null),p(u,h),p(u,k),w=!0,y||(P=[de(t,"click",ut(i[80])),de(t,"keydown",i[108]),de(u,"click",ut(i[81])),de(u,"keydown",i[109])],y=!0)},p(b,I){b[44].showSupport&&v.p(b,I),(!w||I[1]&4096&&g!==(g=b[43]?W("aria_label_menu_debug_overlay_disable"):W("aria_label_menu_debug_overlay_enable")))&&f(u,"aria-label",g)},i(b){w||(d(v),d(o.$$.fragment,b),d(m.$$.fragment,b),w=!0)},o(b){_(v),_(o.$$.fragment,b),_(m.$$.fragment,b),w=!1},d(b){b&&(C(e),C(t),C(s),C(u)),v&&v.d(b),R(o),R(m),y=!1,ot(P)}}}function Zg(i){let e,t,n,o,r,l,a,s,u;return n=new ad({}),{c(){e=T("li"),t=T("div"),B(n.$$.fragment),o=q(),r=T("div"),r.textContent=`${W("menu_report")}`,f(t,"class","menu-icon-wrapper svelte-1h807jq"),f(r,"class","menu-title svelte-1h807jq"),f(e,"class","item item-mobile svelte-1h807jq"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",l=`${W("menu_report")}. ${W("aria_label_new_tab_alert")}`)},m(c,m){S(c,e,m),p(e,t),L(n,t,null),p(e,o),p(e,r),a=!0,s||(u=[de(e,"click",ut(i[79])),de(e,"keydown",i[107])],s=!0)},p:_e,i(c){a||(d(n.$$.fragment,c),a=!0)},o(c){_(n.$$.fragment,c),a=!1},d(c){c&&C(e),R(n),s=!1,ot(u)}}}function Td(i){let e,t,n,o,r,l,a,s,u,c,m,h,k,g;n=new xn({props:{direction:"left"}});let w=It(i[10]),y=[];for(let v=0;v<w.length;v+=1)y[v]=Ed(pd(i,w,v));let P=v=>_(y[v],1,1,()=>{y[v]=null});return{c(){var v;e=T("div"),t=T("div"),B(n.$$.fragment),o=q(),r=T("div"),r.textContent=`${W("submenu_quality")}`,a=q(),s=T("div"),u=q(),c=T("ul");for(let b=0;b<y.length;b+=1)y[b].c();f(t,"class","item menu-header svelte-1h807jq"),f(t,"aria-label",l=W("aria_label_submenu_back")),F(t,"item-mobile",i[40]),f(s,"class","menu-divider svelte-1h807jq"),f(c,"class","items svelte-1h807jq"),f(c,"role","menu"),f(c,"style",m=i[84]((v=i[20])==null?void 0:v.clientHeight,!0)),F(c,"items-mobile",i[40]),f(e,"class","menu menu-subList svelte-1h807jq"),F(e,"menu-desktop",!i[40]),F(e,"menu-mobile",i[40])},m(v,b){S(v,e,b),p(e,t),L(n,t,null),p(t,o),p(t,r),i[130](t),p(e,a),p(e,s),p(e,u),p(e,c);for(let I=0;I<y.length;I+=1)y[I]&&y[I].m(c,null);i[133](c),h=!0,k||(g=[de(t,"click",ut(i[77])),de(c,"keydown",i[93])],k=!0)},p(v,b){var I;if((!h||b[1]&512)&&F(t,"item-mobile",v[40]),b[0]&1024|b[1]&512|b[2]&256|b[3]&2){w=It(v[10]);let N;for(N=0;N<w.length;N+=1){let M=pd(v,w,N);y[N]?(y[N].p(M,b),d(y[N],1)):(y[N]=Ed(M),y[N].c(),d(y[N],1),y[N].m(c,null))}for(ue(),N=w.length;N<y.length;N+=1)P(N);fe()}(!h||b[0]&1048576&&m!==(m=v[84]((I=v[20])==null?void 0:I.clientHeight,!0)))&&f(c,"style",m),(!h||b[1]&512)&&F(c,"items-mobile",v[40]),(!h||b[1]&512)&&F(e,"menu-desktop",!v[40]),(!h||b[1]&512)&&F(e,"menu-mobile",v[40])},i(v){if(!h){d(n.$$.fragment,v);for(let b=0;b<w.length;b+=1)d(y[b]);h=!0}},o(v){_(n.$$.fragment,v),y=y.filter(Boolean);for(let b=0;b<y.length;b+=1)_(y[b]);h=!1},d(v){v&&C(e),R(n),i[130](null),Li(y,v),i[133](null),k=!1,ot(g)}}}function Pd(i){let e,t,n;return t=new Zo({}),{c(){e=T("div"),B(t.$$.fragment),f(e,"class","itemIcon svelte-1h807jq")},m(o,r){S(o,e,r),L(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),R(t)}}}function Id(i){let e,t,n;var o=So(i[172].value);function r(l){return{}}return o&&(t=Rn(o,r(i))),{c(){e=T("div"),t&&B(t.$$.fragment),f(e,"class","menu-valueIcon-list svelte-1h807jq")},m(l,a){S(l,e,a),t&&L(t,e,null),n=!0},p(l,a){if(a[0]&1024&&o!==(o=So(l[172].value))){if(t){ue();let s=t;_(s.$$.fragment,1,0,()=>{R(s,1)}),fe()}o?(t=Rn(o,r(l)),B(t.$$.fragment),d(t.$$.fragment,1),L(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&&R(t)}}}function Ed(i){let e,t,n,o=i[172].displayValue+"",r,l,a=!i[40]&&So(i[172].value),s,u,c,m,h,k,g=i[172].selected&&Pd(i),w=a&&Id(i);function y(){return i[131](i[172])}function P(...v){return i[132](i[172],...v)}return{c(){e=T("li"),g&&g.c(),t=q(),n=T("div"),r=Le(o),l=q(),w&&w.c(),s=q(),f(n,"class","submenu-value svelte-1h807jq"),F(n,"submenu-value-mobile",i[40]),f(e,"class","item item-quality svelte-1h807jq"),f(e,"data-value",u=i[172].value),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",c=i[172].displayValue),F(e,"item-mobile",i[40])},m(v,b){S(v,e,b),g&&g.m(e,null),p(e,t),p(e,n),p(n,r),p(e,l),w&&w.m(e,null),p(e,s),m=!0,h||(k=[de(e,"click",ut(y)),de(e,"keydown",P)],h=!0)},p(v,b){i=v,i[172].selected?g?b[0]&1024&&d(g,1):(g=Pd(i),g.c(),d(g,1),g.m(e,t)):g&&(ue(),_(g,1,1,()=>{g=null}),fe()),(!m||b[0]&1024)&&o!==(o=i[172].displayValue+"")&&Ye(r,o),(!m||b[1]&512)&&F(n,"submenu-value-mobile",i[40]),b[0]&1024|b[1]&512&&(a=!i[40]&&So(i[172].value)),a?w?(w.p(i,b),b[0]&1024|b[1]&512&&d(w,1)):(w=Id(i),w.c(),d(w,1),w.m(e,s)):w&&(ue(),_(w,1,1,()=>{w=null}),fe()),(!m||b[0]&1024&&u!==(u=i[172].value))&&f(e,"data-value",u),(!m||b[0]&1024&&c!==(c=i[172].displayValue))&&f(e,"aria-label",c),(!m||b[1]&512)&&F(e,"item-mobile",i[40])},i(v){m||(d(g),d(w),m=!0)},o(v){_(g),_(w),m=!1},d(v){v&&C(e),g&&g.d(),w&&w.d(),h=!1,ot(k)}}}function Ad(i){let e,t,n,o,r,l,a,s,u,c,m,h,k,g;n=new xn({props:{direction:"left"}});let w=It(i[9]),y=[];for(let v=0;v<w.length;v+=1)y[v]=Vd(md(i,w,v));let P=v=>_(y[v],1,1,()=>{y[v]=null});return{c(){var v;e=T("div"),t=T("div"),B(n.$$.fragment),o=q(),r=T("div"),r.textContent=`${W("submenu_audio_languages")}`,a=q(),s=T("div"),u=q(),c=T("ul");for(let b=0;b<y.length;b+=1)y[b].c();f(t,"class","item menu-header svelte-1h807jq"),f(t,"aria-label",l=W("aria_label_submenu_back")),F(t,"item-mobile",i[40]),f(s,"class","menu-divider svelte-1h807jq"),f(c,"class","items svelte-1h807jq"),f(c,"role","menu"),f(c,"style",m=i[84]((v=i[21])==null?void 0:v.clientHeight,!0)),F(c,"items-mobile",i[40]),f(e,"class","menu menu-subList svelte-1h807jq"),F(e,"menu-desktop",!i[40]),F(e,"menu-mobile",i[40])},m(v,b){S(v,e,b),p(e,t),L(n,t,null),p(t,o),p(t,r),i[134](t),p(e,a),p(e,s),p(e,u),p(e,c);for(let I=0;I<y.length;I+=1)y[I]&&y[I].m(c,null);i[137](c),h=!0,k||(g=[de(t,"click",ut(i[77])),de(c,"keydown",i[95])],k=!0)},p(v,b){var I;if((!h||b[1]&512)&&F(t,"item-mobile",v[40]),b[0]&512|b[1]&1536|b[2]&512|b[3]&8){w=It(v[9]);let N;for(N=0;N<w.length;N+=1){let M=md(v,w,N);y[N]?(y[N].p(M,b),d(y[N],1)):(y[N]=Vd(M),y[N].c(),d(y[N],1),y[N].m(c,null))}for(ue(),N=w.length;N<y.length;N+=1)P(N);fe()}(!h||b[0]&2097152&&m!==(m=v[84]((I=v[21])==null?void 0:I.clientHeight,!0)))&&f(c,"style",m),(!h||b[1]&512)&&F(c,"items-mobile",v[40]),(!h||b[1]&512)&&F(e,"menu-desktop",!v[40]),(!h||b[1]&512)&&F(e,"menu-mobile",v[40])},i(v){if(!h){d(n.$$.fragment,v);for(let b=0;b<w.length;b+=1)d(y[b]);h=!0}},o(v){_(n.$$.fragment,v),y=y.filter(Boolean);for(let b=0;b<y.length;b+=1)_(y[b]);h=!1},d(v){v&&C(e),R(n),i[134](null),Li(y,v),i[137](null),k=!1,ot(g)}}}function Md(i){let e,t,n;return t=new Zo({}),{c(){e=T("div"),B(t.$$.fragment),f(e,"class","itemIcon svelte-1h807jq")},m(o,r){S(o,e,r),L(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),R(t)}}}function Vd(i){var w;let e,t,n,o=uo(i[169],i[9])+"",r,l,a,s,u,c,m,h=i[169].id===((w=i[41])==null?void 0:w.id)&&Md(i);function k(){return i[135](i[169])}function g(...y){return i[136](i[169],...y)}return{c(){e=T("li"),h&&h.c(),t=q(),n=T("div"),r=Le(o),l=q(),f(n,"class","submenu-value svelte-1h807jq"),F(n,"submenu-value-mobile",i[40]),f(e,"class","item item-quality svelte-1h807jq"),f(e,"data-value",a=i[169].id),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",s=uo(i[169],i[9])),F(e,"item-mobile",i[40])},m(y,P){S(y,e,P),h&&h.m(e,null),p(e,t),p(e,n),p(n,r),p(e,l),u=!0,c||(m=[de(e,"click",ut(k)),de(e,"keydown",g)],c=!0)},p(y,P){var v;i=y,i[169].id===((v=i[41])==null?void 0:v.id)?h?P[0]&512|P[1]&1024&&d(h,1):(h=Md(i),h.c(),d(h,1),h.m(e,t)):h&&(ue(),_(h,1,1,()=>{h=null}),fe()),(!u||P[0]&512)&&o!==(o=uo(i[169],i[9])+"")&&Ye(r,o),(!u||P[1]&512)&&F(n,"submenu-value-mobile",i[40]),(!u||P[0]&512&&a!==(a=i[169].id))&&f(e,"data-value",a),(!u||P[0]&512&&s!==(s=uo(i[169],i[9])))&&f(e,"aria-label",s),(!u||P[1]&512)&&F(e,"item-mobile",i[40])},i(y){u||(d(h),u=!0)},o(y){_(h),u=!1},d(y){y&&C(e),h&&h.d(),c=!1,ot(m)}}}function Ld(i){let e,t,n,o,r,l,a,s,u,c,m,h,k,g;n=new xn({props:{direction:"left"}});let w=It(i[8]),y=[];for(let v=0;v<w.length;v+=1)y[v]=Bd(dd(i,w,v));let P=v=>_(y[v],1,1,()=>{y[v]=null});return{c(){var v;e=T("div"),t=T("div"),B(n.$$.fragment),o=q(),r=T("div"),r.textContent=`${W("submenu_playback_rate")}`,a=q(),s=T("div"),u=q(),c=T("ul");for(let b=0;b<y.length;b+=1)y[b].c();f(t,"class","item menu-header svelte-1h807jq"),f(t,"aria-label",l=W("aria_label_submenu_back")),F(t,"item-mobile",i[40]),f(s,"class","menu-divider svelte-1h807jq"),f(c,"class","items svelte-1h807jq"),f(c,"role","menu"),f(c,"style",m=i[84]((v=i[22])==null?void 0:v.clientHeight,!0)),F(c,"items-mobile",i[40]),f(e,"class","menu menu-subList svelte-1h807jq"),F(e,"menu-desktop",!i[40]),F(e,"menu-mobile",i[40])},m(v,b){S(v,e,b),p(e,t),L(n,t,null),p(t,o),p(t,r),i[138](t),p(e,a),p(e,s),p(e,u),p(e,c);for(let I=0;I<y.length;I+=1)y[I]&&y[I].m(c,null);i[141](c),h=!0,k||(g=[de(t,"click",ut(i[77])),de(c,"keydown",i[98])],k=!0)},p(v,b){var I;if((!h||b[1]&512)&&F(t,"item-mobile",v[40]),b[0]&256|b[1]&512|b[2]&4096|b[3]&64){w=It(v[8]);let N;for(N=0;N<w.length;N+=1){let M=dd(v,w,N);y[N]?(y[N].p(M,b),d(y[N],1)):(y[N]=Bd(M),y[N].c(),d(y[N],1),y[N].m(c,null))}for(ue(),N=w.length;N<y.length;N+=1)P(N);fe()}(!h||b[0]&4194304&&m!==(m=v[84]((I=v[22])==null?void 0:I.clientHeight,!0)))&&f(c,"style",m),(!h||b[1]&512)&&F(c,"items-mobile",v[40]),(!h||b[1]&512)&&F(e,"menu-desktop",!v[40]),(!h||b[1]&512)&&F(e,"menu-mobile",v[40])},i(v){if(!h){d(n.$$.fragment,v);for(let b=0;b<w.length;b+=1)d(y[b]);h=!0}},o(v){_(n.$$.fragment,v),y=y.filter(Boolean);for(let b=0;b<y.length;b+=1)_(y[b]);h=!1},d(v){v&&C(e),R(n),i[138](null),Li(y,v),i[141](null),k=!1,ot(g)}}}function Rd(i){let e,t,n;return t=new Zo({}),{c(){e=T("div"),B(t.$$.fragment),f(e,"class","itemIcon svelte-1h807jq")},m(o,r){S(o,e,r),L(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),R(t)}}}function Bd(i){let e,t,n,o=i[166].displayValue+"",r,l,a,s,u,c,m,h=i[166].selected&&Rd(i);function k(){return i[139](i[166])}function g(...w){return i[140](i[166],...w)}return{c(){e=T("li"),h&&h.c(),t=q(),n=T("div"),r=Le(o),l=q(),f(n,"class","submenu-value svelte-1h807jq"),F(n,"submenu-value-mobile",i[40]),f(e,"class","item item-quality svelte-1h807jq"),f(e,"data-value",a=i[166].value),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",s=i[166].displayValue),F(e,"item-mobile",i[40])},m(w,y){S(w,e,y),h&&h.m(e,null),p(e,t),p(e,n),p(n,r),p(e,l),u=!0,c||(m=[de(e,"click",ut(k)),de(e,"keydown",g)],c=!0)},p(w,y){i=w,i[166].selected?h?y[0]&256&&d(h,1):(h=Rd(i),h.c(),d(h,1),h.m(e,t)):h&&(ue(),_(h,1,1,()=>{h=null}),fe()),(!u||y[0]&256)&&o!==(o=i[166].displayValue+"")&&Ye(r,o),(!u||y[1]&512)&&F(n,"submenu-value-mobile",i[40]),(!u||y[0]&256&&a!==(a=i[166].value))&&f(e,"data-value",a),(!u||y[0]&256&&s!==(s=i[166].displayValue))&&f(e,"aria-label",s),(!u||y[1]&512)&&F(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(),c=!1,ot(m)}}}function Dd(i){let e,t,n,o,r,l,a,s,u,c,m,h,k,g,w,y,P,v,b,I,N,M,O,re,ae,Y,ee,A,x;n=new xn({props:{direction:"left"}});let Z=!i[6]&&Nd(i),z=i[6]&&qd(i);return{c(){var U;e=T("div"),t=T("div"),B(n.$$.fragment),o=q(),r=T("div"),r.textContent=`${W("submenu_traffic_saving")}`,a=q(),s=T("div"),u=q(),c=T("div"),m=T("ul"),h=T("li"),Z&&Z.c(),k=q(),g=T("div"),g.textContent=`${W("traffic_saving_disable")}`,y=q(),P=T("li"),z&&z.c(),v=q(),b=T("div"),b.textContent=`${W("traffic_saving_enable")}`,N=q(),M=T("div"),O=q(),re=T("div"),ae=T("span"),ae.textContent=`${W("traffic_saving_helper_text")}`,f(t,"class","item menu-header svelte-1h807jq"),f(t,"aria-label",l=W("aria_label_submenu_back")),F(t,"item-mobile",i[40]),f(s,"class","menu-divider svelte-1h807jq"),f(g,"class","submenu-value svelte-1h807jq"),F(g,"submenu-value-mobile",i[40]),f(h,"class","item item-traffic-saving svelte-1h807jq"),f(h,"role","menuitem"),f(h,"tabindex","0"),f(h,"aria-label",w=W("aria_label_submenu_traffic_saving_off")),F(h,"item-mobile",i[40]),f(b,"class","submenu-value svelte-1h807jq"),F(b,"submenu-value-mobile",i[40]),f(P,"class","item item-traffic-saving svelte-1h807jq"),f(P,"role","menuitem"),f(P,"tabindex","0"),f(P,"aria-label",I=`${W("aria_label_submenu_traffic_saving_on")}. ${W("traffic_saving_helper_text")}`),F(P,"item-mobile",i[40]),f(m,"class","items svelte-1h807jq"),f(m,"role","menu"),F(m,"items-mobile",i[40]),f(M,"class","menu-divider svelte-1h807jq"),f(ae,"class","svelte-1h807jq"),f(re,"class","item item-helper-text svelte-1h807jq"),F(re,"item-mobile",i[40]),f(c,"style",Y=i[84]((U=i[23])==null?void 0:U.clientHeight,!0)),f(e,"class","menu menu-subList menu-subList-traffic-saving svelte-1h807jq"),F(e,"menu-desktop",!i[40]),F(e,"menu-mobile",i[40])},m(U,V){S(U,e,V),p(e,t),L(n,t,null),p(t,o),p(t,r),i[142](t),p(e,a),p(e,s),p(e,u),p(e,c),p(c,m),p(m,h),Z&&Z.m(h,null),p(h,k),p(h,g),p(m,y),p(m,P),z&&z.m(P,null),p(P,v),p(P,b),i[147](m),p(c,N),p(c,M),p(c,O),p(c,re),p(re,ae),ee=!0,A||(x=[de(t,"click",ut(i[77])),de(h,"click",ut(i[143])),de(h,"keydown",i[144]),de(P,"click",ut(i[145])),de(P,"keydown",i[146]),de(m,"keydown",i[104])],A=!0)},p(U,V){var Q;(!ee||V[1]&512)&&F(t,"item-mobile",U[40]),U[6]?Z&&(ue(),_(Z,1,1,()=>{Z=null}),fe()):Z?V[0]&64&&d(Z,1):(Z=Nd(U),Z.c(),d(Z,1),Z.m(h,k)),(!ee||V[1]&512)&&F(g,"submenu-value-mobile",U[40]),(!ee||V[1]&512)&&F(h,"item-mobile",U[40]),U[6]?z?V[0]&64&&d(z,1):(z=qd(U),z.c(),d(z,1),z.m(P,v)):z&&(ue(),_(z,1,1,()=>{z=null}),fe()),(!ee||V[1]&512)&&F(b,"submenu-value-mobile",U[40]),(!ee||V[1]&512)&&F(P,"item-mobile",U[40]),(!ee||V[1]&512)&&F(m,"items-mobile",U[40]),(!ee||V[1]&512)&&F(re,"item-mobile",U[40]),(!ee||V[0]&8388608&&Y!==(Y=U[84]((Q=U[23])==null?void 0:Q.clientHeight,!0)))&&f(c,"style",Y),(!ee||V[1]&512)&&F(e,"menu-desktop",!U[40]),(!ee||V[1]&512)&&F(e,"menu-mobile",U[40])},i(U){ee||(d(n.$$.fragment,U),d(Z),d(z),ee=!0)},o(U){_(n.$$.fragment,U),_(Z),_(z),ee=!1},d(U){U&&C(e),R(n),i[142](null),Z&&Z.d(),z&&z.d(),i[147](null),A=!1,ot(x)}}}function Nd(i){let e,t,n;return t=new Zo({}),{c(){e=T("div"),B(t.$$.fragment),f(e,"class","itemIcon svelte-1h807jq")},m(o,r){S(o,e,r),L(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),R(t)}}}function qd(i){let e,t,n;return t=new Zo({}),{c(){e=T("div"),B(t.$$.fragment),f(e,"class","itemIcon svelte-1h807jq")},m(o,r){S(o,e,r),L(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),R(t)}}}function Od(i){let e,t,n,o,r,l,a,s,u,c,m,h;n=new xn({props:{direction:"left"}});let k=It(i[7]),g=[];for(let y=0;y<k.length;y+=1)g[y]=Hd(cd(i,k,y));let w=y=>_(g[y],1,1,()=>{g[y]=null});return{c(){var y;e=T("div"),t=T("div"),B(n.$$.fragment),o=q(),r=T("div"),r.textContent=`${W("subtitles_caption")}`,a=q(),s=T("ul");for(let P=0;P<g.length;P+=1)g[P].c();f(t,"class","item menu-header svelte-1h807jq"),f(t,"aria-label",l=W("aria_label_submenu_back")),F(t,"item-mobile",i[40]),f(s,"class","items svelte-1h807jq"),f(s,"role","menu"),f(s,"style",u=i[84]((y=i[24])==null?void 0:y.clientHeight,!0)),F(s,"items-mobile",i[40]),f(e,"class","menu menu-subList menu-subList-subtitles svelte-1h807jq"),F(e,"menu-desktop",!i[40]),F(e,"menu-mobile",i[40])},m(y,P){S(y,e,P),p(e,t),L(n,t,null),p(t,o),p(t,r),i[148](t),p(e,a),p(e,s);for(let v=0;v<g.length;v+=1)g[v]&&g[v].m(s,null);i[151](s),c=!0,m||(h=[de(t,"click",ut(i[77])),de(s,"keydown",i[101])],m=!0)},p(y,P){var v;if((!c||P[1]&512)&&F(t,"item-mobile",y[40]),P[0]&128|P[1]&512|P[2]&16384|P[3]&512){k=It(y[7]);let b;for(b=0;b<k.length;b+=1){let I=cd(y,k,b);g[b]?(g[b].p(I,P),d(g[b],1)):(g[b]=Hd(I),g[b].c(),d(g[b],1),g[b].m(s,null))}for(ue(),b=k.length;b<g.length;b+=1)w(b);fe()}(!c||P[0]&16777216&&u!==(u=y[84]((v=y[24])==null?void 0:v.clientHeight,!0)))&&f(s,"style",u),(!c||P[1]&512)&&F(s,"items-mobile",y[40]),(!c||P[1]&512)&&F(e,"menu-desktop",!y[40]),(!c||P[1]&512)&&F(e,"menu-mobile",y[40])},i(y){if(!c){d(n.$$.fragment,y);for(let P=0;P<k.length;P+=1)d(g[P]);c=!0}},o(y){_(n.$$.fragment,y),g=g.filter(Boolean);for(let P=0;P<g.length;P+=1)_(g[P]);c=!1},d(y){y&&C(e),R(n),i[148](null),Li(g,y),i[151](null),m=!1,ot(h)}}}function Fd(i){let e,t,n;return t=new Zo({}),{c(){e=T("div"),B(t.$$.fragment),f(e,"class","itemIcon svelte-1h807jq")},m(o,r){S(o,e,r),L(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),R(t)}}}function Hd(i){let e,t,n,o=i[163].displayValue+"",r,l,a,s,u,c,m,h=i[163].selected&&Fd(i);function k(){return i[149](i[163])}function g(...w){return i[150](i[163],...w)}return{c(){e=T("li"),h&&h.c(),t=q(),n=T("div"),r=Le(o),l=q(),f(n,"class","submenu-value svelte-1h807jq"),F(n,"submenu-value-mobile",i[40]),f(e,"class","item item-quality svelte-1h807jq"),f(e,"data-value",a=i[163].value),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",s=i[163].displayValue),F(e,"item-mobile",i[40])},m(w,y){S(w,e,y),h&&h.m(e,null),p(e,t),p(e,n),p(n,r),p(e,l),u=!0,c||(m=[de(e,"click",ut(k)),de(e,"keydown",g)],c=!0)},p(w,y){i=w,i[163].selected?h?y[0]&128&&d(h,1):(h=Fd(i),h.c(),d(h,1),h.m(e,t)):h&&(ue(),_(h,1,1,()=>{h=null}),fe()),(!u||y[0]&128)&&o!==(o=i[163].displayValue+"")&&Ye(r,o),(!u||y[1]&512)&&F(n,"submenu-value-mobile",i[40]),(!u||y[0]&128&&a!==(a=i[163].value))&&f(e,"data-value",a),(!u||y[0]&128&&s!==(s=i[163].displayValue))&&f(e,"aria-label",s),(!u||y[1]&512)&&F(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(),c=!1,ot(m)}}}function Xg(i){let e,t,n,o,r,l,a,s=i[12]&&_d(i),u=i[14]&&Td(i),c=i[15]&&Ad(i),m=i[16]&&Ld(i),h=i[18]&&Dd(i),k=i[17]&&Od(i);return{c(){e=T("div"),s&&s.c(),t=q(),u&&u.c(),n=q(),c&&c.c(),o=q(),m&&m.c(),r=q(),h&&h.c(),l=q(),k&&k.c(),f(e,"class","svelte-1h807jq"),F(e,"hidden",!i[12]),F(e,"container-mobile",i[40])},m(g,w){S(g,e,w),s&&s.m(e,null),p(e,t),u&&u.m(e,null),p(e,n),c&&c.m(e,null),p(e,o),m&&m.m(e,null),p(e,r),h&&h.m(e,null),p(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=_d(g),s.c(),d(s,1),s.m(e,t)):s&&(ue(),_(s,1,1,()=>{s=null}),fe()),g[14]?u?(u.p(g,w),w[0]&16384&&d(u,1)):(u=Td(g),u.c(),d(u,1),u.m(e,n)):u&&(ue(),_(u,1,1,()=>{u=null}),fe()),g[15]?c?(c.p(g,w),w[0]&32768&&d(c,1)):(c=Ad(g),c.c(),d(c,1),c.m(e,o)):c&&(ue(),_(c,1,1,()=>{c=null}),fe()),g[16]?m?(m.p(g,w),w[0]&65536&&d(m,1)):(m=Ld(g),m.c(),d(m,1),m.m(e,r)):m&&(ue(),_(m,1,1,()=>{m=null}),fe()),g[18]?h?(h.p(g,w),w[0]&262144&&d(h,1)):(h=Dd(g),h.c(),d(h,1),h.m(e,l)):h&&(ue(),_(h,1,1,()=>{h=null}),fe()),g[17]?k?(k.p(g,w),w[0]&131072&&d(k,1)):(k=Od(g),k.c(),d(k,1),k.m(e,null)):k&&(ue(),_(k,1,1,()=>{k=null}),fe()),(!a||w[0]&4096)&&F(e,"hidden",!g[12]),(!a||w[1]&512)&&F(e,"container-mobile",g[40])},i(g){a||(d(s),d(u),d(c),d(m),d(h),d(k),a=!0)},o(g){_(s),_(u),_(c),_(m),_(h),_(k),a=!1},d(g){g&&C(e),s&&s.d(),u&&u.d(),c&&c.d(),m&&m.d(),h&&h.d(),k&&k.d()}}}var Jg=18;function xg(i,e,t){let n,o,r,l,a,s,u,c,m,h,k,g,w,y,P,v,b,I,N,M,O,re,ae,Y,ee,A,x,{ref:Z=void 0}=e,{supportLink:z}=e,{playerControlsHeight:U=0}=e,{returnFocus:V}=e,Q=lt(),Ce=Qt(),Fe=Q.state.audioStream$;H(i,Fe,$=>t(41,g=$));let Ze=Q.state.availableAudioStreams$;H(i,Ze,$=>t(9,w=$));let et=Q.state.currentQuality$;H(i,et,$=>t(118,v=$));let xe=Q.state.availableQualities$;H(i,xe,$=>t(10,y=$));let ye=Q.state.autoQualityLimitingAvailable$;H(i,ye,$=>t(122,M=$));let X=Q.state.isAutoQualityEnabled$;H(i,X,$=>t(119,b=$));let ke=Q.state.currentPlaybackRate$;H(i,ke,$=>t(11,P=$));let Ge=Q.state.availablePlaybackRates$;H(i,Ge,$=>t(8,m=$));let tt=Q.state.currentSubtitle$;H(i,tt,$=>t(42,A=$));let rt=Q.state.availableSubtitlesList$;H(i,rt,$=>t(7,u=$));let we=Q.state.canDownload,De=Q.state.hasMpegSources$;H(i,De,$=>t(123,O=$));let Je=Q.ui.settingsMenuVisible;H(i,Je,$=>t(12,ee=$));let st=Q.ui.settingsMenuOpenedByKeyboard;H(i,st,$=>t(153,o=$));let Se=Q.ui.isMobile;H(i,Se,$=>t(40,r=$));let se=Q.ui.mobileNotReportControlHidden$;H(i,se,$=>t(120,I=$));let We=Q.state.canChangePlaybackSpeed$;H(i,We,$=>t(121,N=$));let me=Q.ui.isFullscreen;H(i,me,$=>t(156,Y=$));let Ie=Q.state.trafficSavingEnabled$;H(i,Ie,$=>t(6,a=$));let Oe=Q.ui.playerSize;H(i,Oe,$=>t(155,ae=$));let ce=Q.ui.debugPanelVisible;H(i,ce,$=>t(43,x=$));let Qe=Q.ui.playerSize;H(i,Qe,$=>t(154,re=$));let $e=Q.state.isInteractiveTime$,pt=Q.actions.internal.downloadVideo,bt=Q.actions.internal.closeSettingsMenu,ve=!0,Ct=!1,Lt=!1,St=!1,ze=!1,Ut=!1,Rt=!1;function Et(){o||V==null||V(),bt(),Rt=!1}function oi(){t(13,ve=!1),t(14,Ct=!0)}function Nt(){t(13,ve=!1),t(15,Lt=!0)}function Kt(){t(13,ve=!1),t(18,Ut=!0)}function he($){Q.actions.internal.setQuality($),Et()}function Ke($){Q.actions.internal.setAudioStream($),Et()}function ht($){Q.actions.internal.setTrafficSavingEnabled($),Et()}function dt(){t(13,ve=!1),t(16,St=!0)}function Xe($){Q.actions.internal.setPlaybackRate($),Et()}function Bt(){t(13,ve=!1),t(17,ze=!0)}function Xt($){Q.actions.internal.setSubtitle($),Et()}function qt(){t(13,ve=!0),t(14,Ct=!1),t(15,Lt=!1),t(16,St=!1),t(17,ze=!1),t(18,Ut=!1)}function Qi(){pt(),Et()}function fn(){window.open(z,"_blank"),Et(),Q.actions.internal.pause()}function ui(){ml(Q.actions.internal.getDebugTextData()),Et()}function Bi(){ce.set(!0),Et()}function yn(){Rt=!0}function Di(){Rt=!1}function cn($,_t,Gt){if(!$)return"...";let Tn=_t.find(On=>On.value===$),_i=Tn?Tn.displayValue:$;return Gt?$===zd.VideoQuality.INVARIANT?W("auto_quality_invariant"):W("auto_quality",{actual:_i}):_i}let gi,Ni,fi,Ti,Pi,Ii;function li($=0,_t=!1){return r&&Y&&_t?`max-height: ${Math.round(ae.height*.6)}px`:r?"":`max-height: ${re.height-Jg-$-U}px; overflow: auto;`}let jt,ti,Ei,Yi,Ai,bi,Zi,wt,Xi,Pt,qi,Ji,xi,ii=Be(!1);H(i,ii,$=>t(117,k=$));let vi=Be(!1);H(i,vi,$=>t(116,h=$));let yi,wi,ci=Be(!1);H(i,ci,$=>t(115,c=$));let Ht,Mi,Oi=Be(!1);H(i,Oi,$=>t(114,s=$));let ri,si,di=Be(!1);H(i,di,$=>t(113,l=$));let $i=$=>{Er($,bt)},wn=$=>ft(this,null,function*(){bl($,oi,()=>{let _t=y.findIndex(Gt=>Gt.selected);return Ji.childNodes[_t]})}),dn=$=>ft(this,null,function*(){bl($,Nt,()=>{let _t=w.findIndex(Gt=>Gt.id===(g==null?void 0:g.id));return xi.childNodes[_t]})}),en=$=>ft(this,null,function*(){vl($,qt,ii,bt)}),Fi=($,_t)=>{Ci($,()=>he(_t))},Jt=$=>ft(this,null,function*(){vl($,qt,vi,bt)}),Wt=($,_t)=>{Ci($,()=>Ke(_t))},Yt=$=>ft(this,null,function*(){bl($,dt,()=>{let _t=m.findIndex(Gt=>Gt.selected);return wi.childNodes[_t]})}),Hi=$=>ft(this,null,function*(){vl($,qt,ci,bt)}),zi=($,_t)=>{Ci($,()=>Xe(_t))},mn=$=>ft(this,null,function*(){bl($,Bt,()=>{let _t=u.findIndex(Gt=>Gt.selected);return Mi.childNodes[_t]})}),Ui=$=>ft(this,null,function*(){vl($,qt,Oi,bt)}),Ki=($,_t)=>{Ci($,()=>Xt(_t))},nt=$=>ft(this,null,function*(){bl($,Kt,()=>{let _t=a?2:0;return si.childNodes[_t]})}),mi=$=>ft(this,null,function*(){vl($,qt,di,bt)}),ai=($,_t)=>{Ci($,()=>ht(_t))},Ue=$=>{Ci($,()=>Qi())},tn=$=>{Ci($,()=>fn())},pn=$=>{Ci($,()=>ui())},nn=$=>{Ci($,()=>Bi())};Ft(()=>{let $=$e.subscribe(_t=>{_t&&!r&&!Rt&&!o&&Et()});return()=>{$()}});function on($){pe[$?"unshift":"push"](()=>{Pt=$,t(1,Pt)})}function ln($){pe[$?"unshift":"push"](()=>{qi=$,t(2,qi)})}function rn($){pe[$?"unshift":"push"](()=>{yi=$,t(3,yi)})}function _n($){pe[$?"unshift":"push"](()=>{Ht=$,t(4,Ht)})}function kn($){pe[$?"unshift":"push"](()=>{ri=$,t(5,ri)})}function xt($){pe[$?"unshift":"push"](()=>{Z=$,t(0,Z)})}function ji($){pe[$?"unshift":"push"](()=>{Ni=$,t(20,Ni)})}let En=$=>he($.value),Bn=($,_t)=>Fi(_t,$.value);function Wi($){pe[$?"unshift":"push"](()=>{Ji=$,t(34,Ji)})}function An($){pe[$?"unshift":"push"](()=>{fi=$,t(21,fi)})}let Cn=$=>Ke($),pi=($,_t)=>Wt(_t,$);function ni($){pe[$?"unshift":"push"](()=>{xi=$,t(35,xi)})}function sn($){pe[$?"unshift":"push"](()=>{Ti=$,t(22,Ti)})}let Dn=$=>Xe($.value),Mn=($,_t)=>zi(_t,$.value);function Zt($){pe[$?"unshift":"push"](()=>{wi=$,t(36,wi)})}function Kn($){pe[$?"unshift":"push"](()=>{Pi=$,t(23,Pi)})}let jn=()=>ht(!1),Nn=$=>ai($,!1),Vn=()=>ht(!0),hn=$=>ai($,!0);function qn($){pe[$?"unshift":"push"](()=>{si=$,t(38,si)})}function an($){pe[$?"unshift":"push"](()=>{Ii=$,t(24,Ii)})}let gn=$=>Xt($),Sn=($,_t)=>Ki(_t,$);function ie($){pe[$?"unshift":"push"](()=>{Mi=$,t(37,Mi)})}return i.$$set=$=>{"ref"in $&&t(0,Z=$.ref),"supportLink"in $&&t(110,z=$.supportLink),"playerControlsHeight"in $&&t(111,U=$.playerControlsHeight),"returnFocus"in $&&t(112,V=$.returnFocus)},i.$$.update=()=>{var $;if(i.$$.dirty[0]&4096)e:ee&&(t(13,ve=!0),t(14,Ct=!1),t(15,Lt=!1),t(16,St=!1),t(17,ze=!1),t(18,Ut=!1));if(i.$$.dirty[3]&33554432)e:t(39,n=So(v));if(i.$$.dirty[0]&1024|i.$$.dirty[3]&100663296)e:t(19,gi=cn(v,y,b));if(i.$$.dirty[3]&1207959552)e:t(25,jt=we&&O&&!I);if(i.$$.dirty[3]&671088640)e:t(26,ti=Ce.features.trafficSaving&&!I&&M);if(i.$$.dirty[0]&128|i.$$.dirty[3]&134217728)e:t(27,Ei=u.length>0&&!I);if(i.$$.dirty[3]&402653184)e:t(28,Yi=!!N&&!I);if(i.$$.dirty[0]&512|i.$$.dirty[3]&134217728)e:t(29,Ai=Ce.features.audioLanguages&&w.length>=2&&!I);if(i.$$.dirty[3]&134217728)e:t(30,bi=!I);if(i.$$.dirty[0]&64)e:t(31,Zi=a?W("traffic_saving_on"):W("traffic_saving_off"));if(i.$$.dirty[3]&100663296)e:t(32,wt=b?W("auto_quality_option"):v);if(i.$$.dirty[0]&2304)e:t(33,Xi=($=m.find(_t=>_t.value===P))==null?void 0:$.displayValue);if(i.$$.dirty[0]&2|i.$$.dirty[3]&16777216)e:gl(Pt,ii,k);if(i.$$.dirty[0]&4|i.$$.dirty[3]&8388608)e:gl(qi,vi,h);if(i.$$.dirty[0]&8|i.$$.dirty[3]&4194304)e:gl(yi,ci,c);if(i.$$.dirty[0]&16|i.$$.dirty[3]&2097152)e:gl(Ht,Oi,s);if(i.$$.dirty[0]&32|i.$$.dirty[3]&1048576)e:gl(ri,di,l)},[Z,Pt,qi,yi,Ht,ri,a,u,m,w,y,P,ee,ve,Ct,Lt,St,ze,Ut,gi,Ni,fi,Ti,Pi,Ii,jt,ti,Ei,Yi,Ai,bi,Zi,wt,Xi,Ji,xi,wi,Mi,si,n,r,g,A,x,Ce,Fe,Ze,et,xe,ye,X,ke,Ge,tt,rt,De,Je,st,Se,se,We,me,Ie,Oe,ce,Qe,Et,oi,Nt,Kt,he,Ke,ht,dt,Xe,Bt,Xt,qt,Qi,fn,ui,Bi,yn,Di,li,ii,vi,ci,Oi,di,$i,wn,dn,en,Fi,Jt,Wt,Yt,Hi,zi,mn,Ui,Ki,nt,mi,ai,Ue,tn,pn,nn,z,U,V,l,s,c,h,k,v,b,I,N,M,O,on,ln,rn,_n,kn,xt,ji,En,Bn,Wi,An,Cn,pi,ni,sn,Dn,Mn,Zt,Kn,jn,Nn,Vn,hn,qn,an,gn,Sn,ie]}var Ga=class extends j{constructor(e){super(),G(this,e,xg,Xg,K,{ref:0,supportLink:110,playerControlsHeight:111,returnFocus:112},Yg,[-1,-1,-1,-1,-1,-1])}},Hr=Ga;function $g(i){Te(i,"svelte-d9t49t",".settings-icon-wrapper.svelte-d9t49t{position:relative;width:24px}")}function eb(i){let e,t,n;return t=new Or({props:{isMobile:i[3],currentQuality:i[4]}}),{c(){e=T("span"),B(t.$$.fragment),f(e,"class","settings-icon-wrapper svelte-d9t49t")},m(o,r){S(o,e,r),L(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),R(t)}}}function tb(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:[eb]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new yt({props:r}),pe.push(()=>qe(e,"ref",o)),{c(){B(e.$$.fragment)},m(l,a){L(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){R(e,l)}}}function ib(i,e,t){let n,o,r,{ref:l=void 0}=e,a=lt(),s=a.state.currentQuality$;H(i,s,w=>t(4,r=w));let u=a.ui.settingsMenuVisible;H(i,u,w=>t(1,n=w));let c=a.actions.internal.toggleSettingsMenu,m=a.ui.isMobile;H(i,m,w=>t(3,o=w));let h;function k(w){let y=_l(w);c(y)}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?W("tooltip_settings_on"):W("tooltip_settings_off"))},[l,n,h,o,r,s,u,m,k,g]}var Qa=class extends j{constructor(e){super(),G(this,e,ib,tb,K,{ref:0},$g)}},Wl=Qa;function nb(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-pained-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=le(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","#fff"),f(t,"d","M3 0h14a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3V3a3 3 0 0 1 3-3m1 9h2a1 1 0 0 0 0-2H4a1 1 0 0 0 0 2m5 0h7a1 1 0 1 0 0-2H9a1 1 0 0 0 0 2m-5 4h7a1 1 0 1 0 0-2H4a1 1 0 1 0 0 2m10 0h2a1 1 0 1 0 0-2h-2a1 1 0 1 0 0 2"),be(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Me(r,o,s,s[1],n?Ae(o,s[1],u,null):Ve(s[1]),null),be(e,a=Re(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 ob(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Ya=class extends j{constructor(e){super(),G(this,e,ob,nb,K,{})}},Ud=Ya;function lb(i){let e,t;return e=new Fr({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function rb(i){let e,t;return e=new Ud({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function sb(i){let e,t,n,o,r=[rb,lb],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=ct()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,u){let c=e;e=a(s,u),e!==c&&(ue(),_(l[c],1,1,()=>{l[c]=null}),fe(),t=l[e],t||(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&C(n),l[e].d(s)}}}function ab(i){let e,t;return e=new yt({props:{testId:"btn-Subtitles",ariaLabel:i[2],click:i[1],ariaKeyShortCut:io.KeyC,$$slots:{default:[sb]},$$scope:{ctx:i}}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let r={};o&4&&(r.ariaLabel=n[2]),o&2&&(r.click=n[1]),o&9&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function ub(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?W("tooltip_subtitles_on"):W("tooltip_subtitles_off"))},[n,o,r]}var Za=class extends j{constructor(e){super(),G(this,e,ub,ab,K,{isSubtitlesEnabled:0,click:1})}},Kd=Za;function fb(i){Te(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 jd(i){let e,t;return{c(){e=T("span"),t=Le(i[3]),f(e,"class","duration svelte-19o2urr")},m(n,o){S(n,e,o),p(e,t)},p(n,o){o&8&&Ye(t,n[3])},d(n){n&&C(e)}}}function cb(i){let e,t,n,o,r=i[2]&&jd(i);return{c(){e=T("div"),t=T("span"),n=Le(i[4]),o=q(),r&&r.c(),f(t,"class","current svelte-19o2urr"),f(e,"class","time svelte-19o2urr"),F(e,"mobile",i[1])},m(l,a){S(l,e,a),p(e,t),p(t,n),p(e,o),r&&r.m(e,null),i[7](e)},p(l,[a]){a&16&&Ye(n,l[4]),l[2]?r?r.p(l,a):(r=jd(l),r.c(),r.m(e,null)):r&&(r.d(1),r=null),a&2&&F(e,"mobile",l[1])},i:_e,o:_e,d(l){l&&C(e),r&&r.d(),i[7](null)}}}function db(i,e,t){let{isMobile:n=!1}=e,{duration:o}=e,{position:r}=e,{showDuration:l=!0}=e,{ref:a}=e,s,u;function c(m){pe[m?"unshift":"push"](()=>{a=m,t(0,a)})}return i.$$set=m=>{"isMobile"in m&&t(1,n=m.isMobile),"duration"in m&&t(5,o=m.duration),"position"in m&&t(6,r=m.position),"showDuration"in m&&t(2,l=m.showDuration),"ref"in m&&t(0,a=m.ref)},i.$$.update=()=>{if(i.$$.dirty&32)e:t(3,s=zn(o));if(i.$$.dirty&64)e:t(4,u=zn(r))},[a,n,l,s,u,o,r,c]}var Xa=class extends j{constructor(e){super(),G(this,e,db,cb,K,{isMobile:1,duration:5,position:6,showDuration:2,ref:0},fb)}},zr=Xa;var fo=require("@vkontakte/videoplayer-shared");function mb(i){Te(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 pb(i){let e,t,n,o,r,l;return{c(){e=D("svg"),t=D("g"),n=D("path"),o=D("path"),r=D("path"),f(n,"class","wave2 svelte-1n5yyua"),f(n,"d","M12.98 18.823c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963zm2.901-8.704A.875.875 0 1 1 17.12 8.88c.176.177.41.47.64.872.384.671.616 1.425.616 2.247s-.232 1.576-.615 2.247a4.23 4.23 0 0 1-.641.872.875.875 0 1 1-1.238-1.238c.074-.073.214-.249.36-.503.241-.423.384-.887.384-1.378s-.143-.955-.385-1.378a2.597 2.597 0 0 0-.359-.503zm3-2A.875.875 0 1 1 20.12 6.88c.263.264.62.74.966 1.432.517 1.033.843 2.255.89 3.716-.047 1.403-.373 2.625-.89 3.658-.346.692-.703 1.168-.966 1.432a.875.875 0 1 1-1.238-1.238c.138-.137.383-.464.639-.976.407-.814.667-1.79.705-2.876-.038-1.144-.298-2.12-.705-2.934-.256-.512-.501-.839-.639-.976z"),f(o,"class","wave1 svelte-1n5yyua"),f(o,"d","M12.98 18.823c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963zm2.901-8.704A.875.875 0 1 1 17.12 8.88c.176.177.41.47.64.872.384.671.616 1.425.616 2.247s-.232 1.576-.615 2.247a4.23 4.23 0 0 1-.641.872.875.875 0 1 1-1.238-1.238c.074-.073.214-.249.36-.503.241-.423.384-.887.384-1.378s-.143-.955-.385-1.378a2.597 2.597 0 0 0-.359-.503z"),f(r,"class","cross svelte-1n5yyua"),f(r,"d","m20 10.763 2.381-2.382A.875.875 0 1 1 23.62 9.62L21.237 12l2.382 2.381a.875.875 0 1 1-1.238 1.238L20 13.237l-2.381 2.382a.875.875 0 1 1-1.238-1.238L18.763 12 16.38 9.619A.875.875 0 1 1 17.62 8.38zm-7.02 8.06c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963z"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(e,"data-value",i[0]),f(e,"data-testid",l="volume-"+i[0]+"-icon"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"class","icon svelte-1n5yyua"),f(e,"aria-hidden","true")},m(a,s){S(a,e,s),p(e,t),p(t,n),p(t,o),p(t,r)},p(a,[s]){s&1&&f(e,"data-value",a[0]),s&1&&l!==(l="volume-"+a[0]+"-icon")&&f(e,"data-testid",l)},i:_e,o:_e,d(a){a&&C(e)}}}function _b(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 Ja=class extends j{constructor(e){super(),G(this,e,_b,pb,K,{volume:1,muted:2},mb)}},Xo=Ja;var Yn=require("@vkontakte/videoplayer-shared");var Yd=require("@vkontakte/videoplayer-shared");var Qd=require("@vkontakte/videoplayer-shared");function hb(i){let e,t,n=i[4].default,o=Ee(n,i,i[3],null);return{c(){e=T("div"),o&&o.c(),f(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)&&Me(o,n,r,r[3],t?Ae(n,r[3],l,null):Ve(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 gb(i,e,t){let n,{$$slots:o={},$$scope:r}=e,a=lt().ui.overlayContainer$;H(i,a,h=>t(2,n=h));let s,u=h=>{!h||!s||!h.contains(s)||h.removeChild(s)},c=h=>{!h||!s||h.contains(s)||h.appendChild(s)};Ft(()=>(c(n),()=>u(n)));function m(h){pe[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:c(n)},[s,a,n,r,o,m]}var xa=class extends j{constructor(e){super(),G(this,e,gb,hb,K,{})}},Wd=xa;function bb(i){Te(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 Gd(i){let e,t;return e=new Wd({props:{$$slots:{default:[vb]},$$scope:{ctx:i}}}),{c(){B(e.$$.fragment)},m(n,o){L(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){R(e,n)}}}function vb(i){let e,t,n,o,r,l,a;return{c(){e=T("div"),t=T("div"),n=Le(i[1]),o=q(),r=T("div"),f(t,"class","content svelte-tny135"),f(r,"class","tooltip-pointer svelte-tny135"),f(r,"style",l=`transform: translate(${i[5]}px, ${i[9]}px) rotate(${i[8]?0:"180deg"});`),F(r,"bottom-placement-pointer",!i[8]),f(e,"class","tooltip svelte-tny135"),f(e,"style",a=`transform: translate(${i[6]}px, ${i[7]}px);`),F(e,"active",i[0])},m(s,u){S(s,e,u),p(e,t),p(t,n),p(e,o),p(e,r),i[20](e)},p(s,u){u&2&&Ye(n,s[1]),u&32&&l!==(l=`transform: translate(${s[5]}px, ${s[9]}px) rotate(${s[8]?0:"180deg"});`)&&f(r,"style",l),u&192&&a!==(a=`transform: translate(${s[6]}px, ${s[7]}px);`)&&f(e,"style",a),u&1&&F(e,"active",s[0])},d(s){s&&C(e),i[20](null)}}}function yb(i){let e,t,n,o,r,l,a=i[18].default,s=Ee(a,i,i[21],null),u=i[1]&&Gd(i);return{c(){e=T("div"),s&&s.c(),t=q(),u&&u.c(),n=ct(),f(e,"class","tooltip-wrapper svelte-tny135"),F(e,"full-width",i[2])},m(c,m){S(c,e,m),s&&s.m(e,null),i[19](e),S(c,t,m),u&&u.m(c,m),S(c,n,m),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(c,[m]){s&&s.p&&(!o||m&2097152)&&Me(s,a,c,c[21],o?Ae(a,c[21],m,null):Ve(c[21]),null),(!o||m&4)&&F(e,"full-width",c[2]),c[1]?u?(u.p(c,m),m&2&&d(u,1)):(u=Gd(c),u.c(),d(u,1),u.m(n.parentNode,n)):u&&(ue(),_(u,1,1,()=>{u=null}),fe())},i(c){o||(d(s,c),d(u),o=!0)},o(c){_(s,c),_(u),o=!1},d(c){c&&(C(e),C(t),C(n)),s&&s.d(c),i[19](null),u&&u.d(c),r=!1,ot(l)}}}var Gl=5;function wb(i,e,t){let n,o,{$$slots:r={},$$scope:l}=e,{content:a=""}=e,{active:s=!1}=e,{translateX:u=0}=e,{translateY:c=0}=e,{isFullWidthWrapper:m=!1}=e,{placement:h="top"}=e,{onVisibilityChange:k=Qd.noop}=e,g=h==="top",w,y,P,v=0,b=g?Gl:-Gl,I=0,N=0,M=Qt(),O=lt(),re=O.ui.playerSize;H(i,re,Q=>t(24,o=Q));let ae=O.ui.overlayContainer$;H(i,ae,Q=>t(23,n=Q));let Y=O.getLogger().createComponentLog("Tooltip component"),ee=()=>{if(!n||!y||!w)return;let Q=n.getBoundingClientRect(),Ce=w.getBoundingClientRect(),Fe=Ce.width,Ze=y.clientWidth,et=o.width,xe=(Fe-Ze)/2,ye=Ce.left+u-Q.left,X=ye+xe,ke=Ce.top+c-Q.top,Ge=Ze/2-Gl,tt=X<8,rt=X+Ze>et-8;tt&&(X=8,Ge=ye+Ce.width/2-2.5*Gl),rt&&(X=et-8-Ze,Ge=Ce.left-Q.left+Ce.width/2-X-Gl),t(6,I=X),t(7,N=ke),t(5,v=Ge)},A=()=>{try{if(!n||!w)return;ee(),t(0,s=!0)}catch(Q){Y({message:String(Q)})}},x=()=>{t(0,s=!1)},Z=()=>{y&&(P||(P=window.setTimeout(A,M.controls.hideTimeoutTooltips)),s&&A())},z=()=>{x(),window.clearTimeout(P),P=void 0};Ft(ee),Zn(()=>window.clearTimeout(P));function U(Q){pe[Q?"unshift":"push"](()=>{w=Q,t(3,w)})}function V(Q){pe[Q?"unshift":"push"](()=>{y=Q,t(4,y)})}return i.$$set=Q=>{"content"in Q&&t(1,a=Q.content),"active"in Q&&t(0,s=Q.active),"translateX"in Q&&t(14,u=Q.translateX),"translateY"in Q&&t(15,c=Q.translateY),"isFullWidthWrapper"in Q&&t(2,m=Q.isFullWidthWrapper),"placement"in Q&&t(16,h=Q.placement),"onVisibilityChange"in Q&&t(17,k=Q.onVisibilityChange),"$$scope"in Q&&t(21,l=Q.$$scope)},i.$$.update=()=>{if(i.$$.dirty&131073)e:k(s)},[s,a,m,w,y,v,I,N,g,b,re,ae,Z,z,u,c,h,k,r,U,V,l]}var $a=class extends j{constructor(e){super(),G(this,e,wb,yb,K,{content:1,active:0,translateX:14,translateY:15,isFullWidthWrapper:2,placement:16,onVisibilityChange:17},bb)}},Ur=$a;function kb(i){Te(i,"svelte-p9r045",".btn-container.svelte-p9r045{position:relative;display:flex;align-items:center;height:100%;transition:var(--button-hover-transition);will-change:opacity;-webkit-tap-highlight-color:transparent}.w-max.svelte-p9r045{width:100%;min-width:0}")}function Cb(i){let e,t=i[19].default,n=Ee(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)&&Me(n,t,o,o[24],e?Ae(t,o[24],r,null):Ve(o[24]),null)},i(o){e||(d(n,o),e=!0)},o(o){_(n,o),e=!1},d(o){n&&n.d(o)}}}function Sb(i){let e,t;return e=new Ur({props:{content:i[11],translateX:i[9],translateY:i[10],isFullWidthWrapper:i[4],active:i[5],placement:i[6],onVisibilityChange:i[8],$$slots:{default:[Tb]},$$scope:{ctx:i}}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&2048&&(r.content=n[11]),o&512&&(r.translateX=n[9]),o&1024&&(r.translateY=n[10]),o&16&&(r.isFullWidthWrapper=n[4]),o&32&&(r.active=n[5]),o&64&&(r.placement=n[6]),o&256&&(r.onVisibilityChange=n[8]),o&16777216&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Tb(i){let e,t=i[19].default,n=Ee(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)&&Me(n,t,o,o[24],e?Ae(t,o[24],r,null):Ve(o[24]),null)},i(o){e||(d(n,o),e=!0)},o(o){_(n,o),e=!1},d(o){n&&n.d(o)}}}function Pb(i){let e,t,n,o,r,l,a,s,u,c=[Sb,Cb],m=[];function h(k,g){return k[3]&&k[11]&&!k[12]?0:1}return t=h(i,-1),n=m[t]=c[t](i),{c(){e=T("div"),n.c(),f(e,"class",o="btn-container "+i[2]+" svelte-p9r045"),f(e,"aria-hidden",r=i[7]||null),Jn(()=>i[23].call(e))},m(k,g){S(k,e,g),m[t].m(e,null),i[22](e),l=nl(e,i[23].bind(e)),a=!0,s||(u=[de(e,"pointerdown",ut(Ot(i[20]))),de(e,"click",ut(Ot(i[21])))],s=!0)},p(k,[g]){let w=t;t=h(k,g),t===w?m[t].p(k,g):(ue(),_(m[w],1,1,()=>{m[w]=null}),fe(),n=m[t],n?n.p(k,g):(n=m[t]=c[t](k),n.c()),d(n,1),n.m(e,null)),(!a||g&4&&o!==(o="btn-container "+k[2]+" svelte-p9r045"))&&f(e,"class",o),(!a||g&128&&r!==(r=k[7]||null))&&f(e,"aria-hidden",r)},i(k){a||(d(n),a=!0)},o(k){_(n),a=!1},d(k){k&&C(e),m[t].d(),i[22](null),l(),s=!1,ot(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:c=void 0}=e,{width:m=void 0}=e,{isFullWidthTooltip:h=!0}=e,{tooltipContent:k=""}=e,{tooltipActive:g=!1}=e,{tooltipPlacement:w="top"}=e,{disabledTooltipContent:y=W("tooltip_button_disabled")}=e,{isAriaHidden:P=!1}=e,{onTooltipVisibilityChange:v=Yd.noop}=e,{initialTranslateXPx:b=0}=e,{initialTranslateYPx:I=-18}=e,N=lt(),M=N.ui.isMobile;H(i,M,x=>t(12,o=x));let O=N.state.graphIsOpened$;H(i,O,x=>t(18,n=x));let re;function ae(x){Fn.call(this,i,x)}function Y(x){Fn.call(this,i,x)}function ee(x){pe[x?"unshift":"push"](()=>{c=x,t(0,c)})}function A(){m=this.clientWidth,t(1,m)}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,c=x.ref),"width"in x&&t(1,m=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,y=x.disabledTooltipContent),"isAriaHidden"in x&&t(7,P=x.isAriaHidden),"onTooltipVisibilityChange"in x&&t(8,v=x.onTooltipVisibilityChange),"initialTranslateXPx"in x&&t(9,b=x.initialTranslateXPx),"initialTranslateYPx"in x&&t(10,I=x.initialTranslateYPx),"$$scope"in x&&t(24,l=x.$$scope)},i.$$.update=()=>{if(i.$$.dirty&491520)e:s?t(11,re=n?W("tooltip_disabled_when_graph_on"):y):t(11,re=k)},[c,m,a,u,h,g,w,P,v,b,I,re,o,M,O,s,k,y,n,r,ae,Y,ee,A,l]}var eu=class extends j{constructor(e){super(),G(this,e,Ib,Pb,K,{className:2,disabled:15,hasTooltip:3,ref:0,width:1,isFullWidthTooltip:4,tooltipContent:16,tooltipActive:5,tooltipPlacement:6,disabledTooltipContent:17,isAriaHidden:7,onTooltipVisibilityChange:8,initialTranslateXPx:9,initialTranslateYPx:10},kb)}},zt=eu;function Eb(i){let e,t,n,o,r,l;return{c(){e=D("svg"),t=D("rect"),o=D("path"),f(t,"width","20"),f(t,"height","20"),f(t,"rx","10"),f(t,"fill","white"),f(t,"fill-opacity",n=i[0]?1:.24),f(o,"d","M12.5259 8.68864L12.587 8.87536L12.3702 8.23648C12.236 7.84095 11.8295 7.60563 11.4192 7.68593C10.9471 7.77831 10.6508 8.24892 10.7718 8.71381L10.8968 9.19361L10.6671 8.33855C10.5566 7.92714 10.1475 7.67011 9.72832 7.74872C9.32282 7.82476 9.04808 8.18606 9.06319 8.57993L8.34064 5.64592C8.21338 5.12912 7.64646 4.85578 7.1621 5.07767C6.79216 5.24715 6.59467 5.65495 6.69131 6.0498L7.98547 11.3373L6.87 10.178C6.52545 9.81987 5.94024 9.86103 5.64933 10.2638C5.44455 10.5474 5.44907 10.9312 5.66048 11.2098L7.89246 14.1518C7.89246 14.1518 9.12075 15.9833 12.1932 15.3769C14.6243 14.8972 15.4434 12.7097 14.7748 10.4997L14.2213 8.20869C14.0975 7.69621 13.5537 7.40646 13.0585 7.58916C12.614 7.75319 12.3788 8.23875 12.5259 8.68864Z"),f(o,"fill",r=i[0]?"var(--interactive-episode-complete)":"white"),f(e,"width","20"),f(e,"height","20"),f(e,"viewBox","0 0 20 20"),f(e,"fill","none"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"aria-hidden","true"),f(e,"data-testid",l=(i[0],"interactive-episode-completed-icon"))},m(a,s){S(a,e,s),p(e,t),p(e,o)},p(a,[s]){s&1&&n!==(n=a[0]?1:.24)&&f(t,"fill-opacity",n),s&1&&r!==(r=a[0]?"var(--interactive-episode-complete)":"white")&&f(o,"fill",r),s&1&&l!==(l=(a[0],"interactive-episode-completed-icon"))&&f(e,"data-testid",l)},i:_e,o:_e,d(a){a&&C(e)}}}function Ab(i,e,t){let{completed:n}=e;return i.$$set=o=>{"completed"in o&&t(0,n=o.completed)},[n]}var tu=class extends j{constructor(e){super(),G(this,e,Ab,Eb,K,{completed:0})}},Kr=tu;function Mb(i){Te(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 Vb(i){let e,t,n,o,r;return t=new Kr({props:{completed:!!i[0].completed}}),{c(){e=T("div"),B(t.$$.fragment),f(e,"class","interactive-episode-icon svelte-bklhpe"),f(e,"style",n=`left: ${i[0].from+i[0].width/2}%`),Jn(()=>i[3].call(e)),F(e,"disabled",i[1])},m(l,a){S(l,e,a),L(t,e,null),o=nl(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}%`))&&f(e,"style",n),(!r||a&2)&&F(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),R(t),o()}}}function Lb(i){let e,t;return e=new zt({props:{tooltipContent:W(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:[Vb]},$$scope:{ctx:i}}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.tooltipContent=W(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){R(e,n)}}}function Rb(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 iu=class extends j{constructor(e){super(),G(this,e,Rb,Lb,K,{videoEpisode:0,disabled:1},Mb)}},Zd=iu;function Bb(i){Te(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 Xd(i,e,t){let n=i.slice();return n[2]=e[t],n}function Jd(i){let e,t,n,o,r,l,a,s,u;return{c(){e=T("div"),t=T("div"),n=T("div"),r=q(),l=T("div"),s=q(),f(n,"class","video-episode-loaded svelte-1h9p3m2"),f(n,"style",o=`transform: translateX(${i[2].loadedWidth/i[2].width*100}%)`),f(l,"class","video-episode-filled svelte-1h9p3m2"),f(l,"style",a=`transform: translateX(${i[2].filledWidth/i[2].width*100}%)`),F(l,"mobile",i[1]),f(t,"class","video-episode-inner svelte-1h9p3m2"),f(e,"class","video-episode svelte-1h9p3m2"),f(e,"style",u=`left: ${i[2].from}%; width: ${i[2].width}%`),F(e,"mobile",i[1])},m(c,m){S(c,e,m),p(e,t),p(t,n),p(t,r),p(t,l),p(e,s)},p(c,m){m&1&&o!==(o=`transform: translateX(${c[2].loadedWidth/c[2].width*100}%)`)&&f(n,"style",o),m&1&&a!==(a=`transform: translateX(${c[2].filledWidth/c[2].width*100}%)`)&&f(l,"style",a),m&2&&F(l,"mobile",c[1]),m&1&&u!==(u=`left: ${c[2].from}%; width: ${c[2].width}%`)&&f(e,"style",u),m&2&&F(e,"mobile",c[1])},d(c){c&&C(e)}}}function Db(i){let e,t=It(i[0]),n=[];for(let o=0;o<t.length;o+=1)n[o]=Jd(Xd(i,t,o));return{c(){e=T("div");for(let o=0;o<n.length;o+=1)n[o].c();f(e,"class","video-episodes-wrap svelte-1h9p3m2")},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&3){t=It(o[0]);let l;for(l=0;l<t.length;l+=1){let a=Xd(o,t,l);n[l]?n[l].p(a,r):(n[l]=Jd(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),Li(n,o)}}}function Nb(i,e,t){let{videoEpisodes:n=[]}=e,{isMobile:o}=e;return i.$$set=r=>{"videoEpisodes"in r&&t(0,n=r.videoEpisodes),"isMobile"in r&&t(1,o=r.isMobile)},[n,o]}var nu=class extends j{constructor(e){super(),G(this,e,Nb,Db,K,{videoEpisodes:0,isMobile:1},Bb)}},xd=nu;function qb(i){Te(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 $d(i,e,t){let n=i.slice();return n[48]=e[t],n}function em(i){let e,t,n=It(i[21]),o=[];for(let l=0;l<n.length;l+=1)o[l]=im($d(i,n,l));let r=l=>_(o[l],1,1,()=>{o[l]=null});return{c(){e=T("div");for(let l=0;l<o.length;l+=1)o[l].c();f(e,"class","interactive-icons svelte-1golz1y"),F(e,"mobile",i[5]),F(e,"hidden",i[5]&&!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]&2097664){n=It(l[21]);let s;for(s=0;s<n.length;s+=1){let u=$d(l,n,s);o[s]?(o[s].p(u,a),d(o[s],1)):(o[s]=im(u),o[s].c(),d(o[s],1),o[s].m(e,null))}for(ue(),s=n.length;s<o.length;s+=1)r(s);fe()}(!t||a[0]&32)&&F(e,"mobile",l[5]),(!t||a[0]&1048608)&&F(e,"hidden",l[5]&&!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),Li(o,l)}}}function tm(i){let e,t;return e=new Zd({props:{videoEpisode:i[48],disabled:i[9]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&2097152&&(r.videoEpisode=n[48]),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){R(e,n)}}}function im(i){let e,t,n=i[48].interactive&&tm(i);return{c(){n&&n.c(),e=ct()},m(o,r){n&&n.m(o,r),S(o,e,r),t=!0},p(o,r){o[48].interactive?n?(n.p(o,r),r[0]&2097152&&d(n,1)):(n=tm(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ue(),_(n,1,1,()=>{n=null}),fe())},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&C(e),n&&n.d(o)}}}function Ob(i){let e,t,n,o,r,l;return{c(){e=T("div"),t=T("div"),o=q(),r=T("div"),f(t,"class","loaded svelte-1golz1y"),f(t,"style",n=`transform: translateX(${i[11]*100}%);`),f(r,"class","filled svelte-1golz1y"),f(r,"style",l=`transform: translateX(${i[12]*100}%);`),F(r,"active-live",i[4]),F(r,"ads",i[6]),f(e,"class","bars svelte-1golz1y")},m(a,s){S(a,e,s),p(e,t),p(e,o),p(e,r)},p(a,s){s[0]&2048&&n!==(n=`transform: translateX(${a[11]*100}%);`)&&f(t,"style",n),s[0]&4096&&l!==(l=`transform: translateX(${a[12]*100}%);`)&&f(r,"style",l),s[0]&16&&F(r,"active-live",a[4]),s[0]&64&&F(r,"ads",a[6])},i:_e,o:_e,d(a){a&&C(e)}}}function Fb(i){let e,t;return e=new xd({props:{videoEpisodes:i[21],isMobile:i[5]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&2097152&&(r.videoEpisodes=n[21]),o[0]&32&&(r.isMobile=n[5]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Hb(i){let e,t,n,o,r,l,a,s,u,c,m,h,k,g=i[8]&&em(i),w=[Fb,Ob],y=[];function P(v,b){return v[21].length?0:1}return n=P(i,[-1,-1]),o=y[n]=w[n](i),{c(){var v;g&&g.c(),e=q(),t=T("div"),o.c(),r=q(),l=T("div"),a=T("div"),f(a,"class","handle svelte-1golz1y"),F(a,"active-live",i[4]),f(l,"class","handleWrap svelte-1golz1y"),f(l,"style",s=`transform: translateX(${i[13]*100}%);`),F(l,"hidden",i[10]),f(t,"class",u="slider "+i[0]+" svelte-1golz1y"),f(t,"aria-label",i[14]),f(t,"aria-valuemin",i[15]),f(t,"aria-valuemax",i[16]),f(t,"aria-valuenow",i[17]),f(t,"aria-valuetext",i[18]),f(t,"role","slider"),f(t,"tabindex","0"),f(t,"data-testid",c=(v=i[1])!=null?v:null),F(t,"disabled",i[9]),F(t,"slider-dragging",i[20]),F(t,"hidden",i[2]),F(t,"slider-vertical",i[3]),F(t,"no-handle",i[10]),F(t,"square",i[7])},m(v,b){g&&g.m(v,b),S(v,e,b),S(v,t,b),y[n].m(t,null),p(t,r),p(t,l),p(l,a),i[42](t),m=!0,h||(k=[de(t,"pointerdown",Ot(i[22])),de(t,"pointermove",Ot(i[23])),de(t,"pointerup",Ot(i[24])),de(t,"pointerenter",Ot(i[25])),de(t,"pointerleave",Ot(i[26])),de(t,"click",ut(Yn.noop)),de(t,"wheel",i[27])],h=!0)},p(v,b){var N;v[8]?g?(g.p(v,b),b[0]&256&&d(g,1)):(g=em(v),g.c(),d(g,1),g.m(e.parentNode,e)):g&&(ue(),_(g,1,1,()=>{g=null}),fe());let I=n;n=P(v,b),n===I?y[n].p(v,b):(ue(),_(y[I],1,1,()=>{y[I]=null}),fe(),o=y[n],o?o.p(v,b):(o=y[n]=w[n](v),o.c()),d(o,1),o.m(t,r)),(!m||b[0]&16)&&F(a,"active-live",v[4]),(!m||b[0]&8192&&s!==(s=`transform: translateX(${v[13]*100}%);`))&&f(l,"style",s),(!m||b[0]&1024)&&F(l,"hidden",v[10]),(!m||b[0]&1&&u!==(u="slider "+v[0]+" svelte-1golz1y"))&&f(t,"class",u),(!m||b[0]&16384)&&f(t,"aria-label",v[14]),(!m||b[0]&32768)&&f(t,"aria-valuemin",v[15]),(!m||b[0]&65536)&&f(t,"aria-valuemax",v[16]),(!m||b[0]&131072)&&f(t,"aria-valuenow",v[17]),(!m||b[0]&262144)&&f(t,"aria-valuetext",v[18]),(!m||b[0]&2&&c!==(c=(N=v[1])!=null?N:null))&&f(t,"data-testid",c),(!m||b[0]&513)&&F(t,"disabled",v[9]),(!m||b[0]&1048577)&&F(t,"slider-dragging",v[20]),(!m||b[0]&5)&&F(t,"hidden",v[2]),(!m||b[0]&9)&&F(t,"slider-vertical",v[3]),(!m||b[0]&1025)&&F(t,"no-handle",v[10]),(!m||b[0]&129)&&F(t,"square",v[7])},i(v){m||(d(g),d(o),m=!0)},o(v){_(g),_(o),m=!1},d(v){v&&(C(e),C(t)),g&&g.d(v),y[n].d(),i[42](null),h=!1,ot(k)}}}function zb(i,e,t){let n,o,{className:r=""}=e,{testId:l=void 0}=e,{isHidden:a=!1}=e,{isVertical:s=!1}=e,{isActiveLive:u=!1}=e,{isMobile:c=!1}=e,{isAds:m=!1}=e,{squareBorders:h=!1}=e,{videoEpisodes:k=[]}=e,{withWheelHandler:g=!1}=e,{isInteractive:w=!1}=e,{disabled:y=!1}=e,{hideHandel:P=!1}=e,v,b,{onPointerDown:I=Yn.noop}=e,{onHandleMove:N=Yn.noop}=e,{onPointerUp:M=Yn.noop}=e,{onPointerEnter:O=Yn.noop}=e,{onPointerMove:re=Yn.noop}=e,{onPointerLeave:ae=Yn.noop}=e,{onWheelUp:Y=Yn.noop}=e,{onWheelDown:ee=Yn.noop}=e,{onWheelLeft:A=Yn.noop}=e,{onWheelRight:x=Yn.noop}=e,{loadedProgress:Z=0}=e,{filledProgress:z=0}=e,{handleProgress:U=0}=e,{ariaLabel:V=""}=e,{ariaValueMin:Q=void 0}=e,{ariaValueMax:Ce=void 0}=e,{ariaValueNow:Fe=void 0}=e,{ariaValueText:Ze=""}=e,et=Qt(),xe=!1,ye;function X(se){if(xe)return;t(20,xe=!0),b=v.getBoundingClientRect();let We=De(se.clientX,se.clientY);I(We),v.setPointerCapture(se.pointerId)}function ke(se){let We=De(se.clientX,se.clientY),me=Je(se.clientX);re(We,me,b.width),xe&&N(We)}function Ge(se){if(!xe)return;t(20,xe=!1);let We=De(se.clientX,se.clientY);M(We)}function tt(se){b=v.getBoundingClientRect();let We=De(se.clientX,se.clientY),me=Je(se.clientX);O(We,me,b.width)}function rt(){ae()}function we(se){g&&(se.preventDefault(),se.deltaY<0?Y():se.deltaY>0?ee():se.deltaX>0?x():A())}function De(se,We){return s?Math.max(0,Math.min(1,(b.height-(We-b.top))/b.height)):Math.min(Math.max(se-b.x,0),b.width)/b.width}function Je(se){return Math.min(Math.max(se-b.x,0),b.width)}function st(se,We){let me=et.features.episodesClustering&&!w?et.episodeMinWidthPc:0,Ie=[],Oe=0,ce=0,Qe=0;for(let bt=1;bt<k.length;bt++)ce=k[bt].time/ye*100,ce-Oe>me&&(Ie.push({from:Oe,width:Math.max(0,ce-Oe),loadedWidth:Math.max(0,Math.min(ce,se)-Oe),filledWidth:Math.max(0,Math.min(ce,We)-Oe),interactive:k[bt-1].interactive,completed:k[bt-1].completed}),Oe=k[bt].time/ye*100,Qe++);let $e={from:Oe,width:Math.max(0,100-Oe),loadedWidth:Math.max(0,Math.min(se,100)-Oe),filledWidth:Math.max(0,Math.min(We,100)-Oe),interactive:k[Qe].interactive,completed:k[Qe].completed};100-Oe<me?(Qe-=1,Ie[Qe].width+=100-Oe,Ie[Qe].loadedWidth+=Math.max(0,Math.min(se,100)-Oe),Ie[Qe].filledWidth+=Math.max(0,Math.min(We,100)-Oe)):Ie[Qe]=$e;let pt=k[0].time;if(pt!==0){let bt=pt/ye*100;Ie.unshift({from:0,width:bt,loadedWidth:Math.min(bt,se),filledWidth:Math.min(bt,We)})}return Ie}function Se(se){pe[se?"unshift":"push"](()=>{v=se,t(19,v)})}return i.$$set=se=>{"className"in se&&t(0,r=se.className),"testId"in se&&t(1,l=se.testId),"isHidden"in se&&t(2,a=se.isHidden),"isVertical"in se&&t(3,s=se.isVertical),"isActiveLive"in se&&t(4,u=se.isActiveLive),"isMobile"in se&&t(5,c=se.isMobile),"isAds"in se&&t(6,m=se.isAds),"squareBorders"in se&&t(7,h=se.squareBorders),"videoEpisodes"in se&&t(28,k=se.videoEpisodes),"withWheelHandler"in se&&t(29,g=se.withWheelHandler),"isInteractive"in se&&t(8,w=se.isInteractive),"disabled"in se&&t(9,y=se.disabled),"hideHandel"in se&&t(10,P=se.hideHandel),"onPointerDown"in se&&t(30,I=se.onPointerDown),"onHandleMove"in se&&t(31,N=se.onHandleMove),"onPointerUp"in se&&t(32,M=se.onPointerUp),"onPointerEnter"in se&&t(33,O=se.onPointerEnter),"onPointerMove"in se&&t(34,re=se.onPointerMove),"onPointerLeave"in se&&t(35,ae=se.onPointerLeave),"onWheelUp"in se&&t(36,Y=se.onWheelUp),"onWheelDown"in se&&t(37,ee=se.onWheelDown),"onWheelLeft"in se&&t(38,A=se.onWheelLeft),"onWheelRight"in se&&t(39,x=se.onWheelRight),"loadedProgress"in se&&t(11,Z=se.loadedProgress),"filledProgress"in se&&t(12,z=se.filledProgress),"handleProgress"in se&&t(13,U=se.handleProgress),"ariaLabel"in se&&t(14,V=se.ariaLabel),"ariaValueMin"in se&&t(15,Q=se.ariaValueMin),"ariaValueMax"in se&&t(16,Ce=se.ariaValueMax),"ariaValueNow"in se&&t(17,Fe=se.ariaValueNow),"ariaValueText"in se&&t(18,Ze=se.ariaValueText)},i.$$.update=()=>{var se;if(i.$$.dirty[0]&65536)e:t(40,ye=Ce!=null?Ce:0);if(i.$$.dirty[0]&268435456|i.$$.dirty[1]&512)e:t(41,n=((se=k[k.length-1])==null?void 0:se.time)<ye);if(i.$$.dirty[0]&268441600|i.$$.dirty[1]&1536)e:t(21,o=k.length&&n&&ye?st(Z*100,z*100):[])},[r,l,a,s,u,c,m,h,w,y,P,Z,z,U,V,Q,Ce,Fe,Ze,v,xe,o,X,ke,Ge,tt,rt,we,k,g,I,N,M,O,re,ae,Y,ee,A,x,ye,n,Se]}var ou=class extends j{constructor(e){super(),G(this,e,zb,Hb,K,{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},qb,[-1,-1])}},kl=ou;var Un=(i,e)=>Fo[i]>=Fo[e],nm=(i,e)=>Fo[i]<Fo[e],jr=(i,e)=>Fo[i]<=Fo[e],om=i=>i>699?"xl":i>599?"l":i>509?"m":i>320?"s":"xs";function Ub(i){Te(i,"svelte-1l78lz9",".volumeBar-container.svelte-1l78lz9{display:flex;align-items:center}.volumeBar-container.vertical.svelte-1l78lz9,.vertical.svelte-1l78lz9 .tooltip-wrapper,.vertical.svelte-1l78lz9 .btn{width:40px}.volumeBar.svelte-1l78lz9{display:flex;align-items:center;margin:0 8px;position:relative;width:70px}.volumeBar-slider-vertical{width:50px !important}.volumeBar-vertical.svelte-1l78lz9{padding:0 8px 0 0;width:0}")}function Kb(i){let e,t;return e=new Xo({props:{volume:i[3],muted:i[1]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&8&&(r.volume=n[3]),o[0]&2&&(r.muted=n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function jb(i){let e,t;return e=new yt({props:{className:"btn-full-opacity",disabled:i[9],testId:i[2]?"btn-volume-vertical":"btn-volume-horizontal",ariaLabel:i[7],click:i[0],ariaKeyShortCut:io.KeyM,$$slots:{default:[Kb]},$$scope:{ctx:i}}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&512&&(r.disabled=n[9]),o[0]&4&&(r.testId=n[2]?"btn-volume-vertical":"btn-volume-horizontal"),o[0]&128&&(r.ariaLabel=n[7]),o[0]&1&&(r.click=n[0]),o[0]&10|o[1]&32&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function lm(i){let e,t,n;return t=new kl({props:{className:i[2]?"volumeBar-slider-vertical":"",isHidden:i[2]&&!i[5],isVertical:i[2],withWheelHandler:!0,onWheelUp:i[15],onWheelDown:i[16],onPointerDown:i[14],onHandleMove:i[17],onPointerUp:i[18],onPointerEnter:i[2]?i[19]:fo.noop,onPointerLeave:i[2]?i[20]:fo.noop,ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u0438",ariaValueMin:0,ariaValueMax:100,ariaValueNow:Math.round(i[8]*100),ariaValueText:`${Math.round(i[8]*100)}%`,filledProgress:i[8],handleProgress:i[8],testId:i[2]?"volume-slider-vertical":"volume-slider"}}),{c(){e=T("div"),B(t.$$.fragment),f(e,"class","volumeBar svelte-1l78lz9"),F(e,"volumeBar-vertical",i[2])},m(o,r){S(o,e,r),L(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]:fo.noop),r[0]&4&&(l.onPointerLeave=o[2]?o[20]:fo.noop),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)&&F(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),R(t)}}}function Wb(i){let e,t,n,o,r,l;t=new Ur({props:{content:i[6],translateY:-18,$$slots:{default:[jb]},$$scope:{ctx:i}}});let a=i[4]&&lm(i);return{c(){e=T("div"),B(t.$$.fragment),n=q(),a&&a.c(),f(e,"class","volumeBar-container svelte-1l78lz9"),F(e,"vertical",i[2])},m(s,u){S(s,e,u),L(t,e,null),p(e,n),a&&a.m(e,null),o=!0,r||(l=[de(e,"mouseenter",function(){Vi(i[2]?i[21]:fo.noop)&&(i[2]?i[21]:fo.noop).apply(this,arguments)}),de(e,"mouseleave",function(){Vi(i[2]?i[22]:fo.noop)&&(i[2]?i[22]:fo.noop).apply(this,arguments)}),de(e,"wheel",Ot(i[23]))],r=!0)},p(s,u){i=s;let c={};u[0]&64&&(c.content=i[6]),u[0]&655|u[1]&32&&(c.$$scope={dirty:u,ctx:i}),t.$set(c),i[4]?a?(a.p(i,u),u[0]&16&&d(a,1)):(a=lm(i),a.c(),d(a,1),a.m(e,null)):a&&(ue(),_(a,1,1,()=>{a=null}),fe()),(!o||u[0]&4)&&F(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),R(t),a&&a.d(),r=!1,ot(l)}}}function Gb(i,e,t){var xe,ye;let n,o,r,l,{click:a}=e,s=lt(),u=Qt(),c=s.state.volume$;H(i,c,X=>t(3,n=X));let m=s.state.muted$;H(i,m,X=>t(25,l=X));let h=s.actions.internal.setVolume,k=s.ui.currentGridType$;H(i,k,X=>t(24,r=X));let g=(xe=s.callbacks)==null?void 0:xe.onAudioDoesNotExistHint,w=(ye=s.callbacks)==null?void 0:ye.onAudioDisabledHint,y=s.state.isAudioAvailable$;H(i,y,X=>t(4,o=X));let P=s.state.isAudioDisabled,v=!1,b,I,N,M,O,re,ae=1,Y=!1,ee=!1;function A(X){ae=n,h(X)}function x(){Lr(s,n,u.controls.volumeStepWheel)}function Z(){Rr(s,n,u.controls.volumeStepWheel)}function z(X){h(X)}function U(X){let ke=X;h(ke,ke===0?ae:ke)}function V(){Y=!0}function Q(){Y=!1,Ze()}function Ce(){clearTimeout(b),t(5,v=!0)}function Fe(){Ze()}function Ze(){b=window.setTimeout(()=>{Y||t(5,v=!1)},u.controls.volumeBarTimeout)}function et(X){X.deltaY<0?x():X.deltaY>0&&Z()}return i.$$set=X=>{"click"in X&&t(0,a=X.click)},i.$$.update=()=>{if(i.$$.dirty[0]&33554448)e:t(1,M=!o||l);if(i.$$.dirty[0]&16777216)e:t(2,O=jr(r,"s"));if(i.$$.dirty[0]&6)e:O?t(6,I=""):t(6,I=M?W("tooltip_volume"):W("tooltip_volume_muted")),t(7,N=M?W("tooltip_volume"):W("tooltip_volume_muted"));if(i.$$.dirty[0]&10)e:t(8,re=M?0:n);if(i.$$.dirty[0]&16)e:o?t(9,ee=P&&!w):t(9,ee=!g)},[a,M,O,n,o,v,I,N,re,ee,c,m,k,y,A,x,Z,z,U,V,Q,Ce,Fe,et,r,l]}var lu=class extends j{constructor(e){super(),G(this,e,Gb,Wb,K,{click:0},Ub,[-1,-1])}},rm=lu;var um=require("@vkontakte/videoplayer-shared");function Qb(i){let e,t,n,o,r,l=i[2].default,a=Ee(l,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{role:"img"},i[0]],u={};for(let c=0;c<s.length;c+=1)u=le(u,s[c]);return{c(){e=D("svg"),a&&a.c(),t=D("g"),n=D("path"),o=D("path"),f(n,"d","M4.58 13.979a.99.99 0 0 1 .99-.99h4.451a.99.99 0 0 1 .99.99v4.452a.99.99 0 0 1-1.98 0v-2.05l-3.319 3.322a1 1 0 0 1-1.414 0v-.001a1 1 0 0 1 0-1.414l3.32-3.32H5.57a.99.99 0 0 1-.99-.99m10.388-6.36 3.32-3.322a1 1 0 0 1 1.414 0v.001a1 1 0 0 1 0 1.414l-3.32 3.32h2.049a.99.99 0 0 1 0 1.979h-4.442a1 1 0 0 1-1-1V5.569a.99.99 0 1 1 1.98 0z"),f(n,"class","_exit"),f(o,"d","M10.5 19a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-4.5a1 1 0 0 1 2 0v2.072l3.363-3.365a1 1 0 0 1 1.414 0l.016.016a1 1 0 0 1 0 1.414L7.429 18H9.5a1 1 0 0 1 1 1M18 7.429l-3.363 3.364a1 1 0 0 1-1.414 0l-.016-.016a1 1 0 0 1 0-1.414L16.571 6H14.5a1 1 0 0 1 0-2H19a1 1 0 0 1 1 1v4.5a1 1 0 0 1-2 0z"),f(o,"class","_enter"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),be(e,u)},m(c,m){S(c,e,m),a&&a.m(e,null),p(e,t),p(t,n),p(t,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Me(a,l,c,c[1],r?Ae(l,c[1],m,null):Ve(c[1]),null),be(e,u=Re(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){_(a,c),r=!1},d(c){c&&C(e),a&&a.d(c)}}}function Yb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var ru=class extends j{constructor(e){super(),G(this,e,Yb,Qb,K,{})}},sm=ru;function Zb(i){Te(i,"svelte-17t966y",'svg[data-testid="close-fullscreen-icon"] ._enter,svg[data-testid="open-fullscreen-icon"] ._exit{visibility:hidden;opacity:0}')}function Xb(i){let e,t;return e=new sm({props:{"data-testid":i[0]?"close-fullscreen-icon":"open-fullscreen-icon"}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r["data-testid"]=n[0]?"close-fullscreen-icon":"open-fullscreen-icon"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Jb(i,e,t){let{isFullscreen:n=!1}=e;return i.$$set=o=>{"isFullscreen"in o&&t(0,n=o.isFullscreen)},[n]}var su=class extends j{constructor(e){super(),G(this,e,Jb,Xb,K,{isFullscreen:0},Zb)}},am=su;function xb(i){let e,t;return e=new am({props:{isFullscreen:i[0]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&1&&(r.isFullscreen=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function $b(i){let e,t;return e=new yt({props:{testId:"btn-fullscreen",ariaLabel:i[2],click:i[1],ariaKeyShortCut:io.KeyF,$$slots:{default:[xb]},$$scope:{ctx:i}}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let r={};o&4&&(r.ariaLabel=n[2]),o&2&&(r.click=n[1]),o&9&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function e4(i,e,t){let{isFullscreen:n=!1}=e,{click:o=um.noop}=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?W("tooltip_fullscreen_on"):W("tooltip_fullscreen_off"))},[n,o,r]}var au=class extends j{constructor(e){super(),G(this,e,e4,$b,K,{isFullscreen:0,click:1})}},Wr=au;function t4(i){let e,t,n,o=i[2].default,r=Ee(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=le(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","#fff"),f(t,"d","M17.671 10.923c.82.483.82 1.67 0 2.154l-8.787 5.175A1.25 1.25 0 0 1 7 17.174V6.826a1.25 1.25 0 0 1 1.884-1.078z"),be(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Me(r,o,s,s[1],n?Ae(o,s[1],u,null):Ve(s[1]),null),be(e,a=Re(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 i4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var uu=class extends j{constructor(e){super(),G(this,e,i4,t4,K,{})}},Cl=uu;function n4(i){let e,t,n,o=i[2].default,r=Ee(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=le(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","#fff"),f(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"),be(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Me(r,o,s,s[1],n?Ae(o,s[1],u,null):Ve(s[1]),null),be(e,a=Re(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 o4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var fu=class extends j{constructor(e){super(),G(this,e,o4,n4,K,{})}},Gr=fu;var cm=require("@vkontakte/videoplayer-shared");function l4(i){Te(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 fm(i){let e;return{c(){e=T("div"),f(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){S(t,e,n)},d(t){t&&C(e)}}}function r4(i){let e,t,n,o,r=i[1]&&fm(i);var l=i[8];function a(s){return{}}return l&&(n=Rn(l,a(i))),{c(){r&&r.c(),e=q(),t=T("div"),n&&B(n.$$.fragment),f(t,"class","svelte-1ot3duq"),F(t,"mobile",i[1])},m(s,u){r&&r.m(s,u),S(s,e,u),S(s,t,u),n&&L(n,t,null),o=!0},p(s,u){if(s[1]?r||(r=fm(s),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),u&256&&l!==(l=s[8])){if(n){ue();let c=n;_(c.$$.fragment,1,0,()=>{R(c,1)}),fe()}l?(n=Rn(l,a(s)),B(n.$$.fragment),d(n.$$.fragment,1),L(n,t,null)):n=null}(!o||u&2)&&F(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&&R(n)}}}function s4(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:io.KeyK,$$slots:{default:[r4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new yt({props:r}),pe.push(()=>qe(e,"ref",o)),{c(){B(e.$$.fragment)},m(l,a){L(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){R(e,l)}}}function a4(i,e,t){let n,o,{fakeIsPlaying$:r}=Qn();H(i,r,v=>t(12,o=v));let{ref:l=void 0}=e,{isMobile:a=!1}=e,{isPlaying:s=!1}=e,{disabled:u=!1}=e,{className:c=""}=e,{click:m=cm.noop}=e,{toggle:h}=r,k,g,w,y;function P(v){l=v,t(0,l)}i.$$set=v=>{"ref"in v&&t(0,l=v.ref),"isMobile"in v&&t(1,a=v.isMobile),"isPlaying"in v&&t(10,s=v.isPlaying),"disabled"in v&&t(2,u=v.disabled),"className"in v&&t(3,c=v.className),"click"in v&&t(4,m=v.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,y=w?W("tooltip_pause"):W("tooltip_play"));if(i.$$.dirty&2048)e:t(8,n=w?Gr:Cl)};e:t(6,k=h);return[l,a,u,c,m,g,k,y,n,r,s,w,o,P]}var cu=class extends j{constructor(e){super(),G(this,e,a4,s4,K,{ref:0,isMobile:1,isPlaying:10,disabled:2,className:3,click:4},l4)}},Ql=cu;function u4(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"26"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=le(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","#fff"),f(t,"d","M16 10.835V7.5a1 1 0 1 1 2 0v9a1 1 0 0 1-2 0v-3.335l-8.149 4.67C7.03 18.304 6 17.715 6 16.772V7.227c0-.943 1.029-1.533 1.851-1.061L16 10.834z"),be(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Me(r,o,s,s[1],n?Ae(o,s[1],u,null):Ve(s[1]),null),be(e,a=Re(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 f4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var du=class extends j{constructor(e){super(),G(this,e,f4,u4,K,{})}},dm=du;function c4(i){let e,t;return e=new dm({props:{style:i[1],"data-testid":i[0]?"prev-icon":"next-icon"}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let r={};o&2&&(r.style=n[1]),o&1&&(r["data-testid"]=n[0]?"prev-icon":"next-icon"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function d4(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 mu=class extends j{constructor(e){super(),G(this,e,d4,c4,K,{isPrev:0,isMobile:2})}},mm=mu;function m4(i){let e,t;return e=new mm({props:{isMobile:i[1],isPrev:i[3]==="prev"}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isMobile=n[1]),o&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){R(e,n)}}}function p4(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:[m4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new yt({props:r}),pe.push(()=>qe(e,"ref",o)),{c(){B(e.$$.fragment)},m(l,a){L(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){R(e,l)}}}function _4(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:r=!1}=e,{type:l}=e,{click:a}=e,s;function u(c){n=c,t(0,n)}return i.$$set=c=>{"ref"in c&&t(0,n=c.ref),"isMobile"in c&&t(1,o=c.isMobile),"disabled"in c&&t(2,r=c.disabled),"type"in c&&t(3,l=c.type),"click"in c&&t(4,a=c.click)},i.$$.update=()=>{if(i.$$.dirty&8)e:t(5,s=l==="prev"?W("tooltip_previous"):W("tooltip_next"))},[n,o,r,l,a,s,u]}var pu=class extends j{constructor(e){super(),G(this,e,_4,p4,K,{ref:0,isMobile:1,disabled:2,type:3,click:4})}},Sl=pu;function h4(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"vk-logo-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=le(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M4.265 4.265C3 5.531 3 7.567 3 11.64v.72c0 4.073 0 6.11 1.265 7.375C5.531 21 7.567 21 11.64 21h.72c4.073 0 6.11 0 7.375-1.265C21 18.469 21 16.433 21 12.36v-.72c0-4.073 0-6.11-1.265-7.375C18.469 3 16.433 3 12.36 3h-.72C7.567 3 5.53 3 4.265 4.265M6 8.5c.096 4.682 2.556 7.5 6.61 7.5h.235v-2.679c1.476.15 2.577 1.254 3.026 2.679H18c-.578-2.132-2.075-3.31-3.005-3.76.93-.558 2.246-1.908 2.556-3.74h-1.937c-.406 1.49-1.615 2.84-2.77 2.968V8.5h-1.968v5.197c-1.197-.3-2.759-1.757-2.823-5.197z"),f(t,"clip-rule","evenodd"),be(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Me(r,o,s,s[1],n?Ae(o,s[1],u,null):Ve(s[1]),null),be(e,a=Re(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 g4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var _u=class extends j{constructor(e){super(),G(this,e,g4,h4,K,{})}},pm=_u;function b4(i){let e,t,n,o,r,l,a=i[2].default,s=Ee(a,i,i[1],null),u=[{xmlns:"http://www.w3.org/2000/svg"},{width:"95"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],c={};for(let m=0;m<u.length;m+=1)c=le(c,u[m]);return{c(){e=D("svg"),s&&s.c(),t=D("path"),n=D("path"),o=D("path"),r=D("path"),f(t,"fill","#fff"),f(t,"d","M32.55 17.042h2.494L38.707 7h-1.81l-2.936 8.276h-.286L30.84 7H29zM48.075 17.042l-4.619-5.199L47.718 7h-2.11l-3.563 4.088h-.413V7h-1.71v10.042h1.71V12.74h.427l3.764 4.302z"),f(n,"fill","#fff"),f(n,"d","M57.888 11.886c.883-.342 1.44-1.125 1.44-2.151C59.327 8.14 58.001 7 56.062 7h-3.92v10.042h4.205c1.953 0 3.279-1.14 3.279-2.806 0-1.168-.656-2.037-1.74-2.35m-4.034-3.39h2.21c.911 0 1.539.555 1.539 1.381 0 .812-.628 1.368-1.54 1.368h-2.21zm2.494 7.05h-2.494V12.74h2.494c.898 0 1.525.57 1.525 1.396 0 .84-.627 1.41-1.525 1.41M61.188 17.042h2.323l2.766-5.498h.228v5.498h1.568V9.635h-2.324l-2.765 5.498h-.228V9.635h-1.568zM69.146 19.25h1.64v-2.208h5.33v2.208h1.64v-3.703h-1.283V9.635h-5.431l-.37 3.79c-.13 1.338-.528 2.121-1.34 2.121h-.186zm2.494-3.703c.4-.385.57-1.04.685-2.151l.228-2.265h2.28v4.416zM86.025 13.253c0-2.136-1.597-3.76-3.849-3.76s-3.848 1.61-3.848 3.846 1.596 3.846 3.848 3.846c1.54 0 2.994-.727 3.55-2.137l-1.54-.256c-.356.527-1.04.897-1.91.897-1.254 0-2.081-.77-2.238-1.909h5.958c.015-.156.029-.327.029-.527m-3.849-2.336c1.027 0 1.796.655 2.067 1.581h-4.105c.27-.954 1.04-1.58 2.038-1.58M90.837 17.185c2.324 0 3.963-1.596 3.963-3.846s-1.64-3.846-3.963-3.846-3.962 1.595-3.962 3.846c0 2.25 1.639 3.846 3.962 3.846m0-1.496c-1.34 0-2.252-.954-2.252-2.35s.912-2.35 2.252-2.35 2.252.954 2.252 2.35-.912 2.35-2.252 2.35"),f(n,"class","_ru"),f(o,"fill","#fff"),f(o,"d","M35.02 17.36h-2.484L29 7.422h1.832l2.826 8.188h.284l2.925-8.188h1.803zM43.43 12.215l4.6 5.144h-2.243l-3.749-4.256h-.426v4.256h-1.704V7.423h1.704v4.045h.412l3.55-4.045h2.101zM56.808 17.36h-2.485l-3.536-9.937h1.832l2.826 8.188h.284l2.925-8.188h1.803zM63.257 17.36h-1.633v-7.33h1.633zm-.809-8.373q-.455 0-.738-.268a.97.97 0 0 1-.284-.718.97.97 0 0 1 .284-.72q.297-.28.738-.281.44 0 .724.282a.97.97 0 0 1 .284.719.97.97 0 0 1-.284.718q-.284.268-.724.268M68.382 17.5q-1.037 0-1.86-.48a3.5 3.5 0 0 1-1.293-1.352q-.454-.874-.454-1.973t.454-1.96a3.37 3.37 0 0 1 1.293-1.352 3.55 3.55 0 0 1 1.86-.494q.894 0 1.59.367.696.352 1.136.888V7.423h1.633v9.936h-1.22l-.342-1.184a4 4 0 0 1-1.164.944q-.71.381-1.633.381m.397-1.452q1.038 0 1.676-.648.654-.663.653-1.705 0-1.044-.653-1.692-.639-.662-1.675-.662-1.023 0-1.662.662-.639.649-.639 1.692t.64 1.705q.638.648 1.66.648M81.929 13.61q0 .211-.029.522h-5.935q.113.86.71 1.38.597.508 1.52.508.624 0 1.121-.24.51-.24.781-.648l1.534.254a3 3 0 0 1-1.378 1.564q-.965.55-2.158.55-1.108 0-1.988-.48a3.6 3.6 0 0 1-1.363-1.352q-.483-.874-.483-1.973t.483-1.96a3.5 3.5 0 0 1 1.363-1.352q.88-.495 1.988-.494 1.107 0 1.974.494.88.478 1.363 1.339.497.845.497 1.888M78.095 11.3q-.738 0-1.292.423-.54.422-.739 1.141h4.09a2.17 2.17 0 0 0-.767-1.127q-.54-.437-1.292-.437M86.751 17.5q-1.136 0-2.044-.48a3.66 3.66 0 0 1-1.406-1.352q-.497-.874-.497-1.973t.497-1.96q.511-.873 1.406-1.352.909-.495 2.044-.494 1.137 0 2.031.494a3.4 3.4 0 0 1 1.406 1.353q.51.86.511 1.959 0 1.098-.511 1.973a3.53 3.53 0 0 1-1.406 1.353q-.894.48-2.03.479m0-1.48q.995 0 1.62-.634.624-.648.624-1.691t-.625-1.678q-.624-.648-1.619-.648-.993 0-1.618.648-.625.634-.625 1.678 0 1.043.625 1.69.625.636 1.618.635"),f(o,"class","_en"),f(r,"fill","#fff"),f(r,"fill-rule","evenodd"),f(r,"d","M7 8.6c0-1.96 0-2.94.381-3.689a3.5 3.5 0 0 1 1.53-1.53C9.66 3 10.64 3 12.6 3h1.36c2.464 0 3.696 0 4.638.48a4.4 4.4 0 0 1 1.922 1.922c.48.942.48 2.174.48 4.638v3.92c0 2.464 0 3.696-.48 4.638a4.4 4.4 0 0 1-1.922 1.922c-.942.48-2.174.48-4.638.48H12.6c-1.96 0-2.94 0-3.689-.381a3.5 3.5 0 0 1-1.53-1.53C7 18.34 7 17.36 7 15.4zm9.265 1.744c.901.539 1.352.808 1.505 1.157.133.304.133.65 0 .954-.153.349-.604.618-1.505 1.157l-2.386 1.425c-.943.563-1.414.844-1.802.807a1.2 1.2 0 0 1-.847-.48C11 15.05 11 14.5 11 13.403v-2.85c0-1.098 0-1.647.23-1.96.201-.274.51-.45.847-.481.388-.037.86.244 1.802.807zM5 9.04c0-2.464 0-3.696.48-4.638a4.4 4.4 0 0 1 .955-1.253 3.7 3.7 0 0 0-1.033.33A4.4 4.4 0 0 0 3.48 5.403C3 6.344 3 7.576 3 10.04v3.92c0 2.464 0 3.696.48 4.638a4.4 4.4 0 0 0 1.922 1.922c.304.155.637.26 1.033.33a4.4 4.4 0 0 1-.955-1.252C5 18.656 5 17.424 5 14.96z"),f(r,"clip-rule","evenodd"),be(e,c)},m(m,h){S(m,e,h),s&&s.m(e,null),p(e,t),p(e,n),p(e,o),p(e,r),l=!0},p(m,[h]){s&&s.p&&(!l||h&2)&&Me(s,a,m,m[1],l?Ae(a,m[1],h,null):Ve(m[1]),null),be(e,c=Re(u,[{xmlns:"http://www.w3.org/2000/svg"},{width:"95"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},h&1&&m[0]]))},i(m){l||(d(s,m),l=!0)},o(m){_(s,m),l=!1},d(m){m&&C(e),s&&s.d(m)}}}function v4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var hu=class extends j{constructor(e){super(),G(this,e,v4,b4,K,{})}},_m=hu;function y4(i){Te(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 w4(i){let e,t;return e=new _m({props:{width:i[0],height:"24",viewBox:"0 0 "+(i[0]+1)+" 24","data-testid":i[1]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.width=n[0]),o&1&&(r.viewBox="0 0 "+(n[0]+1)+" 24"),o&2&&(r["data-testid"]=n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}var k4="vk-video-logo-icon--short";function C4(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?k4:"vk-video-logo-icon"),!o&&!n&&(t(0,r=91),t(1,l="vk-video-logo-icon--en"))},[r,l,n,o]}var gu=class extends j{constructor(e){super(),G(this,e,C4,w4,K,{short:2,isCyrillic:3},y4)}},hm=gu;function T4(i){let e,t;return e=new pm({}),{c(){B(e.$$.fragment)},m(n,o){L(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){R(e,n)}}}function P4(i){let e,t;return e=new hm({props:{short:i[4],isCyrillic:i[5]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.short=n[4]),o&32&&(r.isCyrillic=n[5]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function I4(i){let e,t,n,o,r=[P4,T4],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=ct()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,u){let c=e;e=a(s,u),e===c?l[e].p(s,u):(ue(),_(l[c],1,1,()=>{l[c]=null}),fe(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&C(n),l[e].d(s)}}}function E4(i){let e,t,n;function o(l){i[14](l)}let r={className:"btn-full-opacity",disabled:!i[1],click:i[9],testId:i[2]?"btn-vk-video-logo":"btn-vk-logo",ariaLabel:i[3],$$slots:{default:[I4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new yt({props:r}),pe.push(()=>qe(e,"ref",o)),{c(){B(e.$$.fragment)},m(l,a){L(e,l,a),n=!0},p(l,[a]){let s={};a&2&&(s.disabled=!l[1]),a&4&&(s.testId=l[2]?"btn-vk-video-logo":"btn-vk-logo"),a&8&&(s.ariaLabel=l[3]),a&131124&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function A4(i,e,t){let n,o,r,{ref:l=void 0}=e,{logoClickable:a=!1}=e,{targetUrl:s=""}=e,{click:u}=e,c=Qt(),m=lt(),h=m.ui.currentGridType$;H(i,h,I=>t(12,n=I));let k=m.ui.isMobile;H(i,k,I=>t(13,o=I));let g=m.isCyrillicRelatedInterface$;H(i,g,I=>t(5,r=I));let w,y,P,v=()=>{var I,N;u(),(N=(I=m.callbacks)==null?void 0:I.onLogoClicked)==null||N.call(I),s&&window.open(s,"_blank")};function b(I){l=I,t(0,l)}i.$$set=I=>{"ref"in I&&t(0,l=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,P=(o||jr(n,"l"))&&y)};e:t(3,w=c.logoType==="vk_video"?W("tooltip_vk_video_logo"):W("tooltip_vk_logo"));e:t(2,y=c.logoType==="vk_video"||c.logoType==="vk_video_mobile");return[l,a,y,w,P,r,h,k,g,v,s,u,n,o,b]}var bu=class extends j{constructor(e){super(),G(this,e,A4,E4,K,{ref:0,logoClickable:1,targetUrl:10,click:11})}},Qr=bu;var bm=require("@vkontakte/videoplayer-core");var vu=require("@vkontakte/videoplayer-core");function M4(i){Te(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 V4(i){let e,t,n,o,r,l,a,s;return{c(){e=D("svg"),t=D("g"),n=D("path"),o=D("path"),r=D("path"),l=D("path"),a=D("path"),s=D("path"),f(n,"class","wave wave1 svelte-8z1bf5"),f(n,"d","M1 18v3h3c0-1.66-1.34-3-3-3z"),f(n,"fill","#fff"),f(o,"class","wave wave2 svelte-8z1bf5"),f(o,"d","M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z"),f(o,"fill","#fff"),f(r,"class","wave wave3 svelte-8z1bf5"),f(r,"d","M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z"),f(r,"fill","#fff"),f(l,"d","M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"),f(l,"fill","#fff"),f(a,"d","M0 0h24v24H0z"),f(s,"d","M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z"),f(s,"fill","#fff"),F(s,"hidden",!i[1]),f(t,"fill","none"),f(t,"fill-rule","evenodd"),f(e,"width","24"),f(e,"height","24"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"aria-hidden","true"),f(e,"data-testid","chromecast-icon"),f(e,"class","svelte-8z1bf5"),F(e,"connecting",i[2])},m(u,c){S(u,e,c),p(e,t),p(t,n),p(t,o),p(t,r),p(t,l),p(t,a),p(t,s)},p(u,c){c&2&&F(s,"hidden",!u[1]),c&4&&F(e,"connecting",u[2])},d(u){u&&C(e)}}}function L4(i){let e,t,n,o,r,l,a,s,u,c,m,h,k,g,w,y,P,v,b,I,N;return{c(){e=D("svg"),t=D("g"),n=D("mask"),o=D("path"),l=D("path"),a=D("path"),u=D("path"),c=D("defs"),m=D("clipPath"),h=D("path"),g=D("filter"),w=D("feFlood"),y=D("feColorMatrix"),P=D("feOffset"),v=D("feGaussianBlur"),b=D("feColorMatrix"),I=D("feBlend"),N=D("feBlend"),f(o,"fill",r=i[1]?"#2688EB":"#fff"),f(o,"d","M1.1 3.1h22v18h-22z"),f(l,"fill-rule","evenodd"),f(l,"clip-rule","evenodd"),f(l,"d","M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z"),f(n,"id","c"),f(n,"maskUnits","userSpaceOnUse"),f(n,"x","1.1"),f(n,"y","3.1"),f(n,"width","22"),f(n,"height","18"),f(n,"fill","#000"),f(a,"fill-rule","evenodd"),f(a,"clip-rule","evenodd"),f(a,"d","M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z"),f(a,"fill",s=i[1]?"#2688EB":"#fff"),f(u,"d","m18.097 5.938-.04.498.04-.498Zm.856.19-.227.446.227-.445Zm.918.919-.445.227.445-.227Zm.191.856-.498.04.498-.04Zm0 8.194-.498-.04.498.04Zm-.19.856-.446-.227.445.227Zm-.919.918-.227-.445.227.445Zm-.856.191.04.498-.04-.498Zm-1.86 1.838v-.5.5Zm2.007-.044.04.498-.04-.498Zm1.527-.381-.227-.446.227.446Zm1.704-1.704.445.227-.445-.227Zm.381-1.527.498.04-.498-.04Zm.044-2.006h-.5.5Zm0-4.476h-.5.5Zm-.044-2.006.498-.04-.498.04Zm-.381-1.527.445-.227-.445.227ZM19.77 4.525l-.227.446.227-.446Zm-1.527-.381.04-.498-.04.498ZM16.238 4.1v.5-.5ZM6 4.1v-.5.5ZM2.322 6.7l-.471-.167.471.167Zm1.697.6-.471-.167.471.167ZM6 5.9v-.5.5Zm-2.931 5.62-.038-.498.038.498Zm7.413 7.413.498.038-.498-.038Zm1.795.137.498.038-.498-.038ZM2.931 9.725l-.038-.498.038.498Zm-.829.966.499-.038-.499.038Zm1.025 4.443-.071-.495.071.495Zm-1.019-.763.495-.071-.495.07Zm.763-1.02.071.496-.07-.495ZM8.65 19.13l.495.072-.495-.072Zm-1.019.764-.07.494.07-.494Zm-.763-1.02.495.072-.495-.071ZM18.138 5.44c-.48-.04-1.091-.04-1.938-.04v1c.863 0 1.426.001 1.856.036l.082-.996Zm1.042.243c-.255-.13-.567-.205-1.042-.243l-.082.996c.414.034.58.092.67.138l.454-.89Zm1.137 1.137a2.6 2.6 0 0 0-1.137-1.137l-.454.891a1.6 1.6 0 0 1 .7.7l.89-.454Zm.244 1.042c-.04-.475-.114-.787-.244-1.042l-.891.454c.046.09.104.256.138.67l.997-.082ZM20.6 9.8c0-.846 0-1.458-.04-1.938l-.996.082c.035.43.036.993.036 1.856h1Zm0 4.4V9.8h-1v4.4h1Zm-.04 1.938c.04-.48.04-1.092.04-1.938h-1c0 .863-.001 1.426-.036 1.856l.997.082Zm-.243 1.042c.13-.255.205-.567.244-1.042l-.997-.082c-.034.414-.092.58-.138.67l.89.454Zm-1.137 1.137a2.6 2.6 0 0 0 1.137-1.137l-.891-.454a1.6 1.6 0 0 1-.7.7l.454.89Zm-1.042.244c.475-.04.787-.114 1.042-.244l-.454-.891c-.09.046-.256.104-.67.138l.082.997ZM16.2 18.6c.847 0 1.458 0 1.938-.04l-.082-.996c-.43.035-.993.036-1.856.036v1Zm-1.2 0h1.2v-1H15v1Zm-.4.4c0-.22.18-.4.4-.4v-1a1.4 1.4 0 0 0-1.4 1.4h1Zm.4.4a.4.4 0 0 1-.4-.4h-1a1.4 1.4 0 0 0 1.4 1.4v-1Zm1.238 0H15v1h1.238v-1Zm1.965-.042c-.512.042-1.15.042-1.965.042v1c.8 0 1.484 0 2.046-.045l-.081-.997Zm1.34-.329c-.386.198-.815.286-1.34.329l.081.997c.587-.049 1.163-.154 1.714-.435l-.454-.89Zm1.486-1.485a3.4 3.4 0 0 1-1.485 1.485l.454.891a4.4 4.4 0 0 0 1.922-1.922l-.89-.454Zm.329-1.341c-.043.525-.131.954-.329 1.34l.891.455c.281-.552.386-1.127.434-1.714l-.996-.081Zm.042-1.965c0 .815 0 1.453-.042 1.965l.997.081c.045-.561.045-1.246.045-2.046h-1Zm0 0h1-1Zm0-4.476v4.476h1V9.762h-1Zm0 0h1-1Zm-.042-1.965c.042.512.042 1.15.042 1.965h1c0-.8 0-1.484-.045-2.046l-.997.081Zm-.329-1.34c.198.386.286.815.329 1.34l.997-.081c-.049-.587-.154-1.162-.435-1.714l-.89.454ZM19.544 4.97a3.4 3.4 0 0 1 1.485 1.485l.891-.454a4.4 4.4 0 0 0-1.922-1.922l-.454.89Zm-1.341-.329c.525.043.954.132 1.34.329l.455-.891c-.552-.281-1.127-.387-1.714-.434l-.081.996ZM16.238 4.6c.815 0 1.453 0 1.965.042l.081-.996c-.562-.046-1.246-.046-2.046-.046v1Zm0 0v-1 1ZM6 4.6h10.238v-1H6v1Zm0-1v1-1Zm0 0a4.401 4.401 0 0 0-4.15 2.933l.944.334A3.401 3.401 0 0 1 6 4.6v-1ZM1.85 6.533a1.4 1.4 0 0 0 .854 1.787l.333-.943a.4.4 0 0 1-.243-.51l-.943-.334Zm.854 1.787a1.4 1.4 0 0 0 1.787-.853l-.943-.334a.4.4 0 0 1-.51.244l-.334.943Zm1.787-.853A1.601 1.601 0 0 1 6 6.4v-1c-1.131 0-2.095.722-2.452 1.733l.943.334ZM16.2 5.4H6v1h10.2v-1ZM3.602 11c-.192 0-.383.007-.571.022l.076.997A6.53 6.53 0 0 1 3.602 12v-1Zm7.4 7.4a7.4 7.4 0 0 0-7.4-7.4v1a6.4 6.4 0 0 1 6.4 6.4h1Zm-.022.571c.015-.188.022-.379.022-.571h-1c0 .167-.006.332-.019.495l.997.076Zm.369.43a.4.4 0 0 1-.369-.43l-.997-.076a1.4 1.4 0 0 0 1.29 1.502l.076-.997Zm.429-.37a.4.4 0 0 1-.43.37l-.075.996a1.4 1.4 0 0 0 1.502-1.29l-.997-.075Zm.024-.631c0 .213-.008.423-.024.632l.997.076c.018-.234.027-.47.027-.708h-1Zm-8.2-8.2a8.2 8.2 0 0 1 8.2 8.2h1a9.2 9.2 0 0 0-9.2-9.2v1Zm-.632.024c.209-.016.42-.024.632-.024v-1c-.238 0-.474.01-.708.027l.076.997Zm-.368.43a.4.4 0 0 1 .368-.43l-.076-.997a1.4 1.4 0 0 0-1.29 1.502l.998-.076Zm.429.368a.4.4 0 0 1-.43-.369l-.996.076a1.4 1.4 0 0 0 1.502 1.29l-.076-.997Zm.168 4.607c.13-.02.265-.029.403-.029v-1c-.185 0-.367.013-.545.039l.142.99Zm-1.585-1.187A1.4 1.4 0 0 0 3.2 15.629l-.142-.99a.4.4 0 0 1-.453-.34l-.99.143Zm1.187-1.585a1.4 1.4 0 0 0-1.187 1.585l.99-.142a.4.4 0 0 1 .34-.453l-.143-.99Zm.801-.057c-.271 0-.538.02-.8.057l.141.99c.216-.031.436-.047.659-.047v-1Zm5.6 5.6a5.6 5.6 0 0 0-5.6-5.6v1a4.6 4.6 0 0 1 4.6 4.6h1Zm-.057.8c.038-.262.057-.529.057-.8h-1c0 .223-.016.443-.047.659l.99.142ZM7.56 20.389A1.4 1.4 0 0 0 9.145 19.2l-.99-.142a.4.4 0 0 1-.453.34l-.142.99Zm-1.187-1.585a1.4 1.4 0 0 0 1.187 1.584l.142-.99a.4.4 0 0 1-.339-.452l-.99-.142Zm.029-.403c0 .138-.01.272-.029.403l.99.142c.026-.178.039-.36.039-.545h-1Zm-2.8-2.8a2.8 2.8 0 0 1 2.8 2.8h1a3.8 3.8 0 0 0-3.8-3.8v1Zm0 .8a2 2 0 0 0-2 2h1a1 1 0 0 1 1-1v-1Zm2 2a2 2 0 0 0-2-2v1a1 1 0 0 1 1 1h1Zm-2 2a2 2 0 0 0 2-2h-1a1 1 0 0 1-1 1v1Zm-2-2a2 2 0 0 0 2 2v-1a1 1 0 0 1-1-1h-1Z"),f(u,"fill","#000"),f(u,"fill-opacity",".12"),f(u,"mask","url(#c)"),f(t,"filter","url(#b)"),f(t,"clip-path","url(#a)"),f(h,"fill",k=i[1]?"#2688EB":"#fff"),f(h,"d","M0 0h24v24H0z"),f(m,"id","a"),f(w,"flood-opacity","0"),f(w,"result","BackgroundImageFix"),f(y,"in","SourceAlpha"),f(y,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(y,"result","hardAlpha"),f(v,"stdDeviation","2.5"),f(b,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(I,"in2","BackgroundImageFix"),f(I,"result","effect1_dropShadow_4085_178456"),f(N,"in","SourceGraphic"),f(N,"in2","effect1_dropShadow_4085_178456"),f(N,"result","shape"),f(g,"id","b"),f(g,"x","-3.4"),f(g,"y","-1.4"),f(g,"width","30.8"),f(g,"height","26.802"),f(g,"filterUnits","userSpaceOnUse"),f(g,"color-interpolation-filters","sRGB"),f(e,"width","24"),f(e,"height","24"),f(e,"fill","none"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"aria-hidden","true"),f(e,"data-testid","chromecast-mobile-icon")},m(M,O){S(M,e,O),p(e,t),p(t,n),p(n,o),p(n,l),p(t,a),p(t,u),p(e,c),p(c,m),p(m,h),p(c,g),p(g,w),p(g,y),p(g,P),p(g,v),p(g,b),p(g,I),p(g,N)},p(M,O){O&2&&r!==(r=M[1]?"#2688EB":"#fff")&&f(o,"fill",r),O&2&&s!==(s=M[1]?"#2688EB":"#fff")&&f(a,"fill",s),O&2&&k!==(k=M[1]?"#2688EB":"#fff")&&f(h,"fill",k)},d(M){M&&C(e)}}}function R4(i){let e;function t(r,l){return r[0]?L4:V4}let n=t(i,-1),o=n(i);return{c(){o.c(),e=ct()},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 B4(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===vu.ChromecastState.CONNECTING),t(1,r=o===vu.ChromecastState.CONNECTED)},[n,r,l,o]}var yu=class extends j{constructor(e){super(),G(this,e,B4,R4,K,{isMobile:0,state:3},M4)}},gm=yu;var vm=require("@vkontakte/videoplayer-shared");function D4(i){let e,t;return e=new gm({props:{isMobile:i[1],state:i[2]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isMobile=n[1]),o&4&&(r.state=n[2]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function N4(i){let e,t,n;function o(l){i[5](l)}let r={ariaLabel:i[4],click:i[3],testId:"btn-chromecast",$$slots:{default:[D4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new yt({props:r}),pe.push(()=>qe(e,"ref",o)),{c(){B(e.$$.fragment)},m(l,a){L(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){R(e,l)}}}function q4(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{state:r}=e,{click:l=vm.noop}=e,a;function s(u){n=u,t(0,n)}return i.$$set=u=>{"ref"in u&&t(0,n=u.ref),"isMobile"in u&&t(1,o=u.isMobile),"state"in u&&t(2,r=u.state),"click"in u&&t(3,l=u.click)},i.$$.update=()=>{if(i.$$.dirty&4)e:t(4,a=r===bm.ChromecastState.CONNECTED?W("tooltip_chromecast_on"):W("tooltip_chromecast_off"))},[n,o,r,l,a,s]}var wu=class extends j{constructor(e){super(),G(this,e,q4,N4,K,{ref:0,isMobile:1,state:2,click:3})}},Yr=wu;var Zr=require("@vkontakte/videoplayer-core");function O4(i){let e,t;return e=new Pr({props:{isActive:i[1]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isActive=n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function F4(i){let e,t;return e=new yt({props:{className:i[0]?"":"btn--live btn-full-opacity",testId:i[1]?"btn-live":"btn-live-offset",disabled:i[1]&&i[3]===Zr.PlaybackState.PLAYING,ariaLabel:i[2],click:i[4],$$slots:{default:[O4]},$$scope:{ctx:i}}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.className=n[0]?"":"btn--live btn-full-opacity"),o&2&&(r.testId=n[1]?"btn-live":"btn-live-offset"),o&10&&(r.disabled=n[1]&&n[3]===Zr.PlaybackState.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){R(e,n)}}}function H4(i,e,t){let n,{isMobile:o=!1}=e,{isActiveLive:r=!1}=e,{ariaLabel:l=""}=e,a=lt(),s=a.state.playbackState$;H(i,s,h=>t(3,n=h));let u=a.actions.internal.switchToActiveLive,c=a.actions.internal.togglePlay,m;return i.$$set=h=>{"isMobile"in h&&t(0,o=h.isMobile),"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,m=()=>{if(!r){u();return}n===Zr.PlaybackState.PAUSED&&c()})},[o,r,l,n,m,s]}var ku=class extends j{constructor(e){super(),G(this,e,H4,F4,K,{isMobile:0,isActiveLive:1,ariaLabel:2})}},Xr=ku;function z4(i){Te(i,"svelte-5ygsa2",'.tooltip-wrapper.svelte-5ygsa2{position:relative;display:block}.tooltip.svelte-5ygsa2{position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;transform:translateX(-50%)}.pointer.svelte-5ygsa2:after{position:absolute;bottom:0;left:50%;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;transform:translate(-50%, 5px)}.tooltip.active.svelte-5ygsa2{opacity:1;visibility:visible}')}function U4(i){let e,t,n,o,r=i[9].default,l=Ee(r,i,i[8],null);return{c(){e=T("div"),t=T("div"),l&&l.c(),f(t,"class","tooltip svelte-5ygsa2"),F(t,"active",i[0]),F(t,"pointer",i[1]),f(e,"class","tooltip-wrapper svelte-5ygsa2"),f(e,"style",n=`transform: translate(${i[5]}px, ${i[2]}px);`)},m(a,s){S(a,e,s),p(e,t),l&&l.m(t,null),i[10](t),i[11](e),o=!0},p(a,[s]){l&&l.p&&(!o||s&256)&&Me(l,r,a,a[8],o?Ae(r,a[8],s,null):Ve(a[8]),null),(!o||s&1)&&F(t,"active",a[0]),(!o||s&2)&&F(t,"pointer",a[1]),(!o||s&36&&n!==(n=`transform: translate(${a[5]}px, ${a[2]}px);`))&&f(e,"style",n)},i(a){o||(d(l,a),o=!0)},o(a){_(l,a),o=!1},d(a){a&&C(e),l&&l.d(a),i[10](null),i[11](null)}}}function K4(i,e,t){let n,{$$slots:o={},$$scope:r}=e,{active:l=!1}=e,{pointer:a=!1}=e,{translateXPx:s=0}=e,{translateYPx:u=0}=e,{containerWidth:c}=e,m,h;function k(y){if(!h)return 0;let{width:P}=h.getBoundingClientRect(),v=P/2;return y<v?v:y>c-v?c-v:y}function g(y){pe[y?"unshift":"push"](()=>{h=y,t(4,h)})}function w(y){pe[y?"unshift":"push"](()=>{m=y,t(3,m)})}return i.$$set=y=>{"active"in y&&t(0,l=y.active),"pointer"in y&&t(1,a=y.pointer),"translateXPx"in y&&t(6,s=y.translateXPx),"translateYPx"in y&&t(2,u=y.translateYPx),"containerWidth"in y&&t(7,c=y.containerWidth),"$$scope"in y&&t(8,r=y.$$scope)},i.$$.update=()=>{if(i.$$.dirty&64)e:t(5,n=k(s))},[l,a,u,m,h,n,s,c,r,o,g,w]}var Cu=class extends j{constructor(e){super(),G(this,e,K4,U4,K,{active:0,pointer:1,translateXPx:6,translateYPx:2,containerWidth:7},z4)}},ym=Cu;var Jr=(i,e,t)=>t.filter(n=>n.time<i*e).pop();function j4(i){Te(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 wm(i){let e;function t(r,l){return r[2]&&r[10].completed===!1?G4:W4}let n=t(i,-1),o=n(i);return{c(){o.c(),e=ct()},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 W4(i){let e=(i[10].text||"")+"",t;return{c(){t=Le(e)},m(n,o){S(n,t,o)},p(n,o){o&1024&&e!==(e=(n[10].text||"")+"")&&Ye(t,e)},d(n){n&&C(t)}}}function G4(i){let e=W("tooltip_episode_unfinished")+"",t;return{c(){t=Le(e)},m(n,o){S(n,t,o)},p:_e,d(n){n&&C(t)}}}function km(i){let e,t;return{c(){e=T("div"),t=Le(i[0]),f(e,"class","time svelte-l51fc1")},m(n,o){S(n,e,o),p(e,t)},p(n,o){o&1&&Ye(t,n[0])},d(n){n&&C(e)}}}function Q4(i){let e,t,n,o,r,l,a=i[10]&&wm(i),s=!i[2]&&km(i);return{c(){e=T("div"),t=T("div"),o=q(),r=T("div"),a&&a.c(),l=q(),s&&s.c(),f(t,"class","preview svelte-l51fc1"),f(t,"style",n=`width: ${i[3]}px; height: ${i[4]}px; background-image: url(${i[5]}); background-size: ${i[6]}px ${i[7]}px; background-position: ${i[8]}px ${i[9]}px; transform: translateY(${i[11]%180?-35:0}px) rotate(${i[11]}deg);`),f(r,"class","episode svelte-l51fc1"),f(e,"class","timeline-preview svelte-l51fc1"),F(e,"mobile",i[1])},m(u,c){S(u,e,c),p(e,t),p(e,o),p(e,r),a&&a.m(r,null),p(e,l),s&&s.m(e,null)},p(u,[c]){c&3064&&n!==(n=`width: ${u[3]}px; height: ${u[4]}px; background-image: url(${u[5]}); background-size: ${u[6]}px ${u[7]}px; background-position: ${u[8]}px ${u[9]}px; transform: translateY(${u[11]%180?-35:0}px) rotate(${u[11]}deg);`)&&f(t,"style",n),u[10]?a?a.p(u,c):(a=wm(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,c):(s=km(u),s.c(),s.m(e,null)),c&2&&F(e,"mobile",u[1])},i:_e,o:_e,d(u){u&&C(e),a&&a.d(),s&&s.d()}}}var Tl=150;function Y4(i,e,t){let n,{time:o=""}=e,{isMobile:r=!1}=e,{videoEpisodes:l=[]}=e,{previewThumbsData:a}=e,{progress:s=0}=e,{duration:u=0}=e,{isInteractive:c=!1}=e,h=lt().ui.rotateAlpha;H(i,h,O=>t(11,n=O));let k,g,w,y,P,v,b,I;function N(){let O=a.frameWidth,re=a.frameHeight;return O>Tl?(re=re/O*Tl,O=Tl):re>Tl&&(O=O/re*Tl,re=Tl),{width:O,height:re}}function M(O){let re;a.isUV?re=Math.floor(u*O/a.frequency):re=Math.min(a.countTotal,Math.max(0,Math.floor(a.countTotal*O)));let ae=Math.floor(re/a.countPerImage),Y=Math.floor(re%a.countPerImage/a.countPerRow),ee=re%a.countPerRow,A=Math.floor(a.countPerImage/a.countPerRow);!a.isUV&&ae===Math.floor(a.countTotal/a.countPerImage)&&(A=Math.floor(a.countTotal%a.countPerImage/a.countPerRow),a.countTotal%a.countPerImage%a.countPerRow>0&&A++);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 Z=k*x,z=g*A,U=-ee*k,V=-Y*g;return{imgSrc:a.links[ae],imgWidth:Z,imgHeight:z,imgOffsetX:U,imgOffsetY:V}}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,c=O.isInteractive)},i.$$.update=()=>{if(i.$$.dirty&32768)e:t(5,{imgSrc:w,imgWidth:y,imgHeight:P,imgOffsetX:v,imgOffsetY:b}=M(s),w,(t(6,y),t(15,s)),(t(7,P),t(15,s)),(t(8,v),t(15,s)),(t(9,b),t(15,s)));if(i.$$.dirty&106496)e:t(10,I=Jr(s,u,l))};e:t(3,{width:k,height:g}=N(),k,t(4,g));return[o,r,c,k,g,w,y,P,v,b,I,n,h,l,a,s,u]}var Su=class extends j{constructor(e){super(),G(this,e,Y4,Q4,K,{time:0,isMobile:1,videoEpisodes:13,previewThumbsData:14,progress:15,duration:16,isInteractive:2},j4)}},Cm=Su;function Z4(i){Te(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 X4(i){let e,t;return{c(){e=T("span"),t=Le(i[7]),f(e,"class","time svelte-5lzly8")},m(n,o){S(n,e,o),p(e,t)},p(n,o){o[0]&128&&Ye(t,n[7])},i:_e,o:_e,d(n){n&&C(e)}}}function J4(i){let e,t;return e=new Cm({props:{time:i[7],isMobile:i[10],videoEpisodes:i[3],previewThumbsData:i[21],progress:i[8],duration:i[1],isInteractive:i[23]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&128&&(r.time=n[7]),o[0]&1024&&(r.isMobile=n[10]),o[0]&8&&(r.videoEpisodes=n[3]),o[0]&256&&(r.progress=n[8]),o[0]&2&&(r.duration=n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function x4(i){let e,t,n,o,r=[J4,X4],l=[];function a(s,u){return s[14].features.timelinePreview&&s[21]&&!s[0]?0:1}return e=a(i,[-1,-1]),t=l[e]=r[e](i),{c(){t.c(),n=ct()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,u){let c=e;e=a(s,u),e===c?l[e].p(s,u):(ue(),_(l[c],1,1,()=>{l[c]=null}),fe(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&C(n),l[e].d(s)}}}function $4(i){let e,t,n,o,r=[i[9]],l={$$slots:{default:[x4]},$$scope:{ctx:i}};for(let a=0;a<r.length;a+=1)l=le(l,r[a]);return e=new ym({props:l}),n=new kl({props:{isActiveLive:i[11],isMobile:i[10],ariaLabel:W("aria_timeline"),ariaValueMin:0,ariaValueMax:i[1],ariaValueNow:Math.round(i[6]*100),ariaValueText:W("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(){B(e.$$.fragment),t=q(),B(n.$$.fragment)},m(a,s){L(e,a,s),S(a,t,s),L(n,a,s),o=!0},p(a,s){let u=s[0]&512?Re(r,[lc(a[9])]):{};s[0]&1419|s[1]&65536&&(u.$$scope={dirty:s,ctx:a}),e.$set(u);let c={};s[0]&2048&&(c.isActiveLive=a[11]),s[0]&1024&&(c.isMobile=a[10]),s[0]&2&&(c.ariaValueMax=a[1]),s[0]&64&&(c.ariaValueNow=Math.round(a[6]*100)),s[0]&48&&(c.ariaValueText=W("aria_timeline_value",{position:a[5],duration:a[4]})),s[0]&4096&&(c.loadedProgress=a[12]),s[0]&64&&(c.filledProgress=a[6]),s[0]&64&&(c.handleProgress=a[6]),s[0]&8&&(c.videoEpisodes=a[3]),s[0]&8192&&(c.disabled=a[13].has("TIMELINE")),s[0]&4&&(c.hideHandel=a[2]),n.$set(c)},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),R(e,a),R(n,a)}}}function ev(i,e,t){let n,o,r,l,a,s,u,c,m,h,k,{showTimeline:g=!1}=e,w=lt(),y=Qt(),P=w.state.bufferedProgress$;H(i,P,Se=>t(12,h=Se));let v=w.state.positionWithScrubbing$;H(i,v,Se=>t(39,s=Se));let b=w.state.duration$;H(i,b,Se=>t(1,r=Se));let I=w.state.isLive$;H(i,I,Se=>t(0,o=Se));let N=w.state.isActiveLive$;H(i,N,Se=>t(11,m=Se));let M=w.ui.isMobile;H(i,M,Se=>t(10,c=Se));let O=y.features.episodes?w.actions.internal.getVideoEpisodes():void 0,re=w.actions.internal.getPreviewThumbsData(),ae=w.state.interactiveEpisodes$;H(i,ae,Se=>t(40,u=Se));let Y=w.state.isInteractive,ee=w.state.isInteractiveTime$;H(i,ee,Se=>t(2,l=Se));let A=w.state.isInteractiveExpectation$;H(i,A,Se=>t(38,a=Se));let x=w.actions.internal.correctSeekTimeToInteractive,Z=w.ui.controls.disabledControls$;H(i,Z,Se=>t(13,k=Se));let z,U,V,Q,Ce=!1,Fe="",Ze=0,et=0,xe=0,ye;function X(Se){return!x||!Y?Se:x(Se*r)/r}function ke(Se){w.actions.internal.startScrubbing(X(Se))}function Ge(Se){l||w.actions.internal.progressScrubbing(X(Se))}function tt(Se){w.actions.internal.completeScrubbing(X(Se)),t(34,Ce=!1)}function rt(Se,se,We){Je(Se,se,We),t(34,Ce=!0)}function we(Se,se,We){Je(Se,se,We),t(34,Ce=!0)}function De(){t(34,Ce=!1)}function Je(Se,se,We){t(8,xe=X(Se)),t(35,Ze=se),We&&t(36,et=We),t(7,Fe=st(Se))}function st(Se){let se=zn((o?1-Se:Se)*r);return o?`-${se}`:se}return i.$$set=Se=>{"showTimeline"in Se&&t(33,g=Se.showTimeline)},i.$$.update=()=>{if(i.$$.dirty[1]&512)e:t(3,z=Y?u:O);if(i.$$.dirty[0]&2)e:t(4,U=zn(r));if(i.$$.dirty[1]&256)e:t(5,V=zn(s));if(i.$$.dirty[0]&2|i.$$.dirty[1]&256)e:t(6,Q=s/r);if(i.$$.dirty[0]&4|i.$$.dirty[1]&128)e:t(37,ye=a||l);if(i.$$.dirty[0]&1|i.$$.dirty[1]&124)e:t(9,n={containerWidth:et,translateXPx:Ze,translateYPx:Y&&re?-36:-16,active:Ce&&g&&!ye,pointer:!y.features.timelinePreview||!re||o})},[o,r,l,z,U,V,Q,Fe,xe,n,c,m,h,k,y,P,v,b,I,N,M,re,ae,Y,ee,A,Z,ke,Ge,tt,rt,we,De,g,Ce,Ze,et,ye,a,s,u]}var Tu=class extends j{constructor(e){super(),G(this,e,ev,$4,K,{showTimeline:33},Z4,[-1,-1])}},Sm=Tu;function tv(i){let e,t;return e=new kl({props:{ariaValueMin:0,ariaValueMax:i[0],ariaValueNow:Math.round(i[3]*100),ariaValueText:W("aria_timeline_value",{position:i[2],duration:i[1]}),filledProgress:i[3],isAds:!0,hideHandel:!0,squareBorders:i[4]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.ariaValueMax=n[0]),o&8&&(r.ariaValueNow=Math.round(n[3]*100)),o&6&&(r.ariaValueText=W("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){R(e,n)}}}function iv(i,e,t){let n,{position:o=0}=e,{duration:r=0}=e,a=lt().ui.isMobile;H(i,a,m=>t(4,n=m));let s,u,c;return i.$$set=m=>{"position"in m&&t(6,o=m.position),"duration"in m&&t(0,r=m.duration)},i.$$.update=()=>{if(i.$$.dirty&1)e:t(1,s=zn(r));if(i.$$.dirty&64)e:t(2,u=zn(o));if(i.$$.dirty&65)e:t(3,c=o/r)},[r,s,u,c,n,a,o]}var Pu=class extends j{constructor(e){super(),G(this,e,iv,tv,K,{position:6,duration:0})}},xr=Pu;function nv(i){Te(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=T("div"),f(e,"class","timeline-stub svelte-1gqonyf"),F(e,"mobile",i[2])},m(t,n){S(t,e,n)},p(t,n){n&4&&F(e,"mobile",t[2])},i:_e,o:_e,d(t){t&&C(e)}}}function lv(i){let e,t,n,o,r=[sv,rv],l=[];function a(s,u){return s[0]?0:1}return t=a(i,-1),n=l[t]=r[t](i),{c(){e=T("div"),n.c(),f(e,"class","timeline svelte-1gqonyf"),F(e,"mobile",i[2])},m(s,u){S(s,e,u),l[t].m(e,null),o=!0},p(s,u){let c=t;t=a(s,u),t===c?l[t].p(s,u):(ue(),_(l[c],1,1,()=>{l[c]=null}),fe(),n=l[t],n?n.p(s,u):(n=l[t]=r[t](s),n.c()),d(n,1),n.m(e,null)),(!o||u&4)&&F(e,"mobile",s[2])},i(s){o||(d(n),o=!0)},o(s){_(n),o=!1},d(s){s&&C(e),l[t].d()}}}function rv(i){let e,t;return e=new Sm({props:{showTimeline:i[1]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.showTimeline=n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function sv(i){let e,t;return e=new xr({props:{position:i[3],duration:i[4]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&8&&(r.position=n[3]),o&16&&(r.duration=n[4]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function av(i){let e,t,n,o,r=[lv,ov],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=ct()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let c=e;e=a(s,u),e===c?l[e].p(s,u):(ue(),_(l[c],1,1,()=>{l[c]=null}),fe(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&C(n),l[e].d(s)}}}function uv(i,e,t){let n,o,r,l,{isAds:a=!1}=e,{canRewindLive:s}=e,{isRewindableLive:u}=e,{isHidden:c=!1}=e,m=lt(),h=m.state.isLive$;H(i,h,P=>t(12,n=P));let k=m.ads.duration;H(i,k,P=>t(4,l=P));let g=m.ads.position;H(i,g,P=>t(3,r=P));let w=m.ui.isMobile;H(i,w,P=>t(2,o=P));let y;return i.$$set=P=>{"isAds"in P&&t(0,a=P.isAds),"canRewindLive"in P&&t(9,s=P.canRewindLive),"isRewindableLive"in P&&t(10,u=P.isRewindableLive),"isHidden"in P&&t(11,c=P.isHidden)},i.$$.update=()=>{if(i.$$.dirty&7681)e:t(1,y=!c&&(!n||n&&s&&u||a))},[a,y,o,r,l,h,k,g,w,s,u,c,n]}var Iu=class extends j{constructor(e){super(),G(this,e,uv,av,K,{isAds:0,canRewindLive:9,isRewindableLive:10,isHidden:11},nv)}},$r=Iu;var Im=require("@vkontakte/videoplayer-shared");function fv(i){let e,t,n,o,r,l=i[2].default,a=Ee(l,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-icon"},{style:"flex-shrink:0"},{role:"img"},i[0]],u={};for(let c=0;c<s.length;c+=1)u=le(u,s[c]);return{c(){e=D("svg"),a&&a.c(),t=D("path"),n=D("path"),o=D("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","m21.616 16.495-.012.07c-.156.852-.282 1.541-.427 2.093-.148.569-.333 1.063-.64 1.5a4.4 4.4 0 0 1-2.507 1.732c-.52.133-1.046.131-1.63.069-.568-.06-1.257-.187-2.11-.343l-4.34-.794c-.853-.156-1.542-.282-2.094-.426-.568-.149-1.062-.334-1.5-.642a4.4 4.4 0 0 1-1.731-2.507c-.133-.518-.131-1.045-.069-1.63.06-.567.187-1.257.343-2.11l.012-.068c.156-.853.282-1.542.427-2.095.148-.568.333-1.062.641-1.5a4.4 4.4 0 0 1 2.507-1.731c.518-.133 1.045-.131 1.63-.069.567.06 1.256.187 2.109.343l4.34.794c.853.156 1.542.282 2.094.426.568.149 1.062.334 1.5.642a4.4 4.4 0 0 1 1.731 2.506c.133.52.131 1.046.069 1.63-.06.568-.187 1.258-.343 2.11m-1.446-2.3c.052-.483.035-.769-.022-.993a2.6 2.6 0 0 0-1.023-1.481c-.19-.133-.45-.25-.921-.373-.48-.125-1.102-.24-1.997-.404l-4.272-.781c-.895-.164-1.518-.277-2.01-.33-.483-.051-.769-.035-.993.023-.6.153-1.125.516-1.481 1.023-.133.19-.25.45-.373.92-.125.48-.24 1.103-.403 1.998s-.277 1.518-.33 2.01c-.051.484-.035.77.023.994.153.6.516 1.125 1.023 1.481.189.133.45.25.92.373.48.125 1.102.24 1.997.404l4.272.781c.895.164 1.518.277 2.01.33.483.051.77.035.993-.023a2.6 2.6 0 0 0 1.481-1.023c.133-.19.25-.45.373-.92.125-.48.24-1.103.403-1.998s.278-1.518.33-2.01Z"),f(t,"clip-rule","evenodd"),f(n,"fill","#fff"),f(n,"fill-rule","evenodd"),f(n,"d","M18.187 7.488a.9.9 0 0 1-1.045-.727c-.145-.807-.199-1.086-.28-1.296A2.6 2.6 0 0 0 14.504 3.8c-.224-.006-.505.036-1.315.169l-5.846.962c-1.366.224-1.834.313-2.174.492A2.6 2.6 0 0 0 3.837 7.18c-.08.376-.039.85.114 2.226l.011.1a.9.9 0 1 1-1.787.198l-.01-.093-.019-.17c-.129-1.147-.217-1.937-.068-2.636A4.4 4.4 0 0 1 4.332 3.83c.633-.333 1.417-.461 2.556-.648l.163-.027 5.846-.961.098-.016c.674-.111 1.138-.188 1.556-.177a4.4 4.4 0 0 1 3.99 2.819c.15.39.234.853.355 1.526l.017.097a.9.9 0 0 1-.726 1.045"),f(n,"clip-rule","evenodd"),f(o,"fill","#fff"),f(o,"d","M12.724 12.414a.415.415 0 0 0-.69.231l-.72 4.18a.4.4 0 0 0 .025.221c.085.21.327.311.539.226l3.669-1.467a.406.406 0 0 0 .127-.68z"),be(e,u)},m(c,m){S(c,e,m),a&&a.m(e,null),p(e,t),p(e,n),p(e,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Me(a,l,c,c[1],r?Ae(l,c[1],m,null):Ve(c[1]),null),be(e,u=Re(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-icon"},{style:"flex-shrink:0"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){_(a,c),r=!1},d(c){c&&C(e),a&&a.d(c)}}}function cv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Eu=class extends j{constructor(e){super(),G(this,e,cv,fv,K,{})}},Tm=Eu;function dv(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"13"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"chevron-light-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=le(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M4.146 3.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L6.793 6.5 4.146 3.854a.5.5 0 0 1 0-.708"),f(t,"clip-rule","evenodd"),f(t,"opacity",".7"),be(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Me(r,o,s,s[1],n?Ae(o,s[1],u,null):Ve(s[1]),null),be(e,a=Re(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 mv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Au=class extends j{constructor(e){super(),G(this,e,mv,dv,K,{})}},Pm=Au;function pv(i){Te(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 _v(i){let e,t,n,o;e=new Tm({});function r(s,u){if(s[4]==="FULL")return bv;if(s[4]==="COUNT")return gv}let l=r(i,-1),a=l&&l(i);return{c(){B(e.$$.fragment),t=q(),a&&a.c(),n=ct()},m(s,u){L(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)),R(e,s),a&&a.d(s)}}}function hv(i){let e,t,n,o,r,l;return r=new Pm({}),{c(){e=T("span"),t=Le(i[2]),n=q(),o=T("div"),B(r.$$.fragment),f(e,"class","text mobile svelte-1yhs2ga"),f(o,"class","chevron-episodes svelte-1yhs2ga")},m(a,s){S(a,e,s),p(e,t),S(a,n,s),S(a,o,s),L(r,o,null),l=!0},p(a,s){(!l||s&4)&&Ye(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)),R(r)}}}function gv(i){let e,t=i[0].length+"",n;return{c(){e=T("span"),n=Le(t),f(e,"class","text count svelte-1yhs2ga")},m(o,r){S(o,e,r),p(e,n)},p(o,r){r&1&&t!==(t=o[0].length+"")&&Ye(n,t)},d(o){o&&C(e)}}}function bv(i){let e,t;return{c(){e=T("span"),t=Le(i[2]),f(e,"class","text svelte-1yhs2ga")},m(n,o){S(n,e,o),p(e,t)},p(n,o){o&4&&Ye(t,n[2])},d(n){n&&C(e)}}}function vv(i){let e,t,n,o,r=[hv,_v],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=ct()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,u){let c=e;e=a(s,u),e===c?l[e].p(s,u):(ue(),_(l[c],1,1,()=>{l[c]=null}),fe(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&C(n),l[e].d(s)}}}function yv(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:[vv]},$$scope:{ctx:i}};return i[1]!==void 0&&(r.ref=i[1]),e=new yt({props:r}),pe.push(()=>qe(e,"ref",o)),{c(){B(e.$$.fragment)},m(l,a){L(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){R(e,l)}}}function wv(i,e,t){var Y,ee,A;let n,o,r,l,a,s,{position:u=0}=e,{duration:c=0}=e,{timeCodes:m=[]}=e,h=lt(),k=(ee=(Y=h.callbacks)==null?void 0:Y.onEpisodeChanged)!=null?ee:Im.noop,g=!!((A=h.callbacks)!=null&&A.onEpisodeClicked),w=h.ui.currentGridType$;H(i,w,x=>t(18,a=x));let y=h.ui.episodes.openedByKeyboard$;H(i,y,x=>t(17,l=x));let P=h.ui.episodes.panelOpened$;H(i,P,x=>t(3,r=x));let v=h.ui.isMobile;H(i,v,x=>t(6,s=x));let b,I=x=>{var z,U,V;if(!!((z=h.callbacks)!=null&&z.onEpisodeClicked)){let Q=_l(x);y.set(Q),P.set(!0),(V=(U=h.callbacks)==null?void 0:U.onEpisodeClicked)==null||V.call(U,Q)}},N,M,O,re=(x,Z,z)=>ft(this,null,function*(){yield Xn(),(x==null?void 0:x.getAttribute("aria-expanded"))==="false"&&Z&&!z&&(y.set(!1),x.focus())});function ae(x){b=x,t(1,b)}return i.$$set=x=>{"position"in x&&t(13,u=x.position),"duration"in x&&t(14,c=x.duration),"timeCodes"in x&&t(0,m=x.timeCodes)},i.$$.update=()=>{if(i.$$.dirty&24576)e:t(16,n=u/c);if(i.$$.dirty&114689)e:{let x=Jr(n,c,m);x&&(N==null?void 0:N.text)!==x.text&&(k(x),t(15,N=x))}if(i.$$.dirty&32768)e:t(2,o=(N==null?void 0:N.text)||"");if(i.$$.dirty&262144)e:Un(a,"xl")?t(4,M="FULL"):Un(a,"m")&&nm(a,"xl")?t(4,M="COUNT"):t(4,M="SHORT");if(i.$$.dirty&4)e:t(5,O=`${W("tooltip_episodes")}: ${o}`);if(i.$$.dirty&131082)e:re(b,l,r)},[m,b,o,r,M,O,s,g,w,y,P,v,I,u,c,N,n,l,a,ae]}var Mu=class extends j{constructor(e){super(),G(this,e,wv,yv,K,{position:13,duration:14,timeCodes:0},pv)}},es=Mu;function kv(i){let e,t,n,o,r=i[2].default,l=Ee(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-to-interactive-icon"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=le(s,a[u]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),n=D("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M16.726 4.845C16.187 4.8 15.496 4.8 14.5 4.8H7.9a.9.9 0 1 1 0-1.8h6.639c.947 0 1.713 0 2.333.05.64.053 1.204.163 1.726.43a4.4 4.4 0 0 1 1.923 1.922c.266.523.377 1.087.429 1.726.05.62.05 1.386.05 2.334v5.076c0 .948 0 1.714-.05 2.334-.052.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.522.267-1.086.377-1.726.43-.62.05-1.386.05-2.333.05H7.9a.9.9 0 1 1 0-1.8h6.6c.995 0 1.687 0 2.226-.045.528-.043.828-.123 1.055-.238a2.6 2.6 0 0 0 1.136-1.137c.115-.226.195-.527.239-1.055.044-.538.044-1.23.044-2.225v-5c0-.995 0-1.687-.044-2.226-.043-.527-.124-.828-.239-1.054a2.6 2.6 0 0 0-1.136-1.137c-.227-.115-.527-.195-1.055-.238"),f(t,"clip-rule","evenodd"),f(n,"fill","#fff"),f(n,"d","M7.76 11.169V8.908c0-.708.704-1.143 1.252-.774l4.594 3.093c.525.353.525 1.193 0 1.546l-4.594 3.093c-.548.369-1.252-.066-1.252-.774v-2.261l-4.508 3.035C2.704 16.235 2 15.8 2 15.091V8.908c0-.708.704-1.143 1.252-.774z"),be(e,s)},m(u,c){S(u,e,c),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[c]){l&&l.p&&(!o||c&2)&&Me(l,r,u,u[1],o?Ae(r,u[1],c,null):Ve(u[1]),null),be(e,s=Re(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-to-interactive-icon"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&C(e),l&&l.d(u)}}}function Cv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Vu=class extends j{constructor(e){super(),G(this,e,Cv,kv,K,{})}},Em=Vu;function Sv(i){let e,t;return e=new Em({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Tv(i){let e,t,n;function o(l){i[4](l)}let r={className:i[1]?"hidden":"",testId:"btn-seek-to-interactive",ariaLabel:W("tooltip_interactive_seek"),disabled:i[2],click:i[3],$$slots:{default:[Sv]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new yt({props:r}),pe.push(()=>qe(e,"ref",o)),{c(){B(e.$$.fragment)},m(l,a){L(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){R(e,l)}}}function Pv(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 Lu=class extends j{constructor(e){super(),G(this,e,Pv,Tv,K,{ref:0,hidden:1,disabled:2,click:3})}},ts=Lu;function Iv(i){let e,t,n,o,r=i[2].default,l=Ee(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=le(s,a[u]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),n=D("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M16.777 3h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.2.72.523.923.918.141.277.19.557.21.814.02.237.02.521.02.83V7.19c0 .31 0 .594-.02.831-.02.256-.069.537-.21.813a2.1 2.1 0 0 1-.923.92c-.278.14-.56.188-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.919 2.1 2.1 0 0 1-.21-.813 8 8 0 0 1-.02-.63l-2.198-.002c-.495-.001-.81 0-1.05.018-.23.019-.309.05-.343.067a.8.8 0 0 0-.352.35c-.017.034-.049.113-.068.341-.02.24-.02.554-.02 1.046v5.57c0 .49 0 .804.02 1.043.019.228.05.306.068.34.077.15.2.273.35.35.035.017.113.049.342.067.24.02.555.021 1.048.022l2.203.003a8 8 0 0 1 .02-.627c.02-.256.069-.537.21-.813.203-.396.526-.718.923-.92.278-.14.56-.189.817-.21.238-.019.524-.019.834-.019h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.201.72.523.923.919.141.276.19.557.21.813.02.237.02.522.02.831v1.397c0 .31 0 .594-.02.831-.02.256-.069.537-.21.814a2.1 2.1 0 0 1-.923.919c-.278.14-.56.189-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.918 2.1 2.1 0 0 1-.21-.814 8 8 0 0 1-.02-.63l-2.24-.002c-.449 0-.839-.001-1.16-.028-.341-.028-.684-.09-1.016-.259a2.6 2.6 0 0 1-1.14-1.137c-.17-.33-.231-.672-.259-1.011-.026-.321-.026-.71-.026-1.156v-1.921H2.905A.903.903 0 0 1 2 11.992c0-.498.405-.901.905-.901h5.227V9.177c0-.448 0-.837.026-1.159.028-.34.09-.682.26-1.013a2.6 2.6 0 0 1 1.144-1.138c.332-.168.676-.23 1.017-.257.323-.025.714-.025 1.164-.024l2.23.003a8 8 0 0 1 .02-.627c.02-.257.069-.537.21-.814.203-.395.526-.717.923-.919.278-.14.56-.189.817-.21C16.18 3 16.467 3 16.777 3m-.833 1.837a1 1 0 0 1 .146-.02 10 10 0 0 1 .72-.014h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.021.3.3 0 0 1 .126.126 1 1 0 0 1 .021.145c.013.156.014.365.014.716v1.334c0 .352 0 .561-.014.716a1 1 0 0 1-.02.146.3.3 0 0 1-.127.125 1 1 0 0 1-.146.022c-.156.012-.366.013-.719.013H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.022.3.3 0 0 1-.126-.125 1 1 0 0 1-.021-.146 10 10 0 0 1-.014-.716V5.824c0-.351.001-.56.014-.716a1 1 0 0 1 .021-.145.3.3 0 0 1 .126-.126Zm0 11.018a1 1 0 0 1 .146-.022c.156-.012.366-.013.72-.013h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.022.3.3 0 0 1 .126.125 1 1 0 0 1 .021.146c.013.155.014.364.014.716v1.334c0 .351 0 .56-.014.716a1 1 0 0 1-.02.145.3.3 0 0 1-.127.126 1 1 0 0 1-.146.02c-.156.014-.366.014-.719.014H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.021.3.3 0 0 1-.126-.126 1 1 0 0 1-.021-.145 10 10 0 0 1-.014-.716v-1.334c0-.352.001-.561.014-.716a1 1 0 0 1 .021-.146.3.3 0 0 1 .126-.125Z"),f(t,"clip-rule","evenodd"),f(n,"fill","#fff"),f(n,"fill-rule","evenodd"),f(n,"d","M15.2 5.899v1.203c0 .594 0 .892.115 1.119.102.2.265.362.464.463.227.116.525.116 1.12.116H18.1c.595 0 .892 0 1.12-.116.199-.101.361-.264.463-.463.116-.227.116-.525.116-1.12V5.9c0-.595 0-.892-.116-1.12a1.06 1.06 0 0 0-.464-.463c-.227-.116-.524-.116-1.119-.116h-1.203c-.594 0-.892 0-1.119.116-.2.102-.362.264-.464.464-.115.227-.115.524-.115 1.119Zm-.051 11.03v1.143c0 .605 0 .908.118 1.139.103.203.268.368.472.472.23.117.533.117 1.138.117H18.1c.605 0 .907 0 1.138-.117a1.08 1.08 0 0 0 .472-.472c.118-.231.118-.534.118-1.139v-1.144c0-.605 0-.907-.118-1.138a1.08 1.08 0 0 0-.472-.472c-.231-.118-.534-.118-1.138-.118h-1.224c-.605 0-.907 0-1.138.118a1.08 1.08 0 0 0-.472.472c-.118.23-.118.533-.118 1.138Z"),f(n,"class","_closed"),f(n,"clip-rule","evenodd"),be(e,s)},m(u,c){S(u,e,c),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[c]){l&&l.p&&(!o||c&2)&&Me(l,r,u,u[1],o?Ae(r,u[1],c,null):Ve(u[1]),null),be(e,s=Re(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&C(e),l&&l.d(u)}}}function Ev(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Ru=class extends j{constructor(e){super(),G(this,e,Ev,Iv,K,{})}},Am=Ru;function Av(i){Te(i,"svelte-17ceof5",'svg[data-testid="graph-open-icon"] ._closed{visibility:hidden;opacity:0}')}function Mv(i){let e,t;return e=new Am({props:{"data-testid":i[0]?"graph-close-icon":"graph-open-icon"}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r["data-testid"]=n[0]?"graph-close-icon":"graph-open-icon"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Vv(i,e,t){let{isOpened:n=!1}=e;return i.$$set=o=>{"isOpened"in o&&t(0,n=o.isOpened)},[n]}var Bu=class extends j{constructor(e){super(),G(this,e,Vv,Mv,K,{isOpened:0},Av)}},Mm=Bu;function Lv(i){let e,t;return e=new Mm({props:{isOpened:i[3]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&8&&(r.isOpened=n[3]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Rv(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:[Lv]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new yt({props:r}),pe.push(()=>qe(e,"ref",o)),{c(){B(e.$$.fragment)},m(l,a){L(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){R(e,l)}}}function Bv(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:r=!1}=e,{graphIsOpened:l=!1}=e,{click:a}=e,s;function u(c){n=c,t(0,n)}return i.$$set=c=>{"ref"in c&&t(0,n=c.ref),"hidden"in c&&t(1,o=c.hidden),"disabled"in c&&t(2,r=c.disabled),"graphIsOpened"in c&&t(3,l=c.graphIsOpened),"click"in c&&t(4,a=c.click)},i.$$.update=()=>{if(i.$$.dirty&8)e:t(5,s=l?W("tooltip_interactive_graph_on"):W("tooltip_interactive_graph_off"))},[n,o,r,l,a,s,u]}var Du=class extends j{constructor(e){super(),G(this,e,Bv,Rv,K,{ref:0,hidden:1,disabled:2,graphIsOpened:3,click:4})}},is=Du;function Dv(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"replay-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=le(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","#fff"),f(t,"d","M12 9.096a.4.4 0 0 1-.67.296L7.044 5.493a.67.67 0 0 1 0-.986L11.33.608a.4.4 0 0 1 .67.296V4a8 8 0 1 1-8 8 1 1 0 1 1 2 0 6 6 0 1 0 6-6z"),be(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Me(r,o,s,s[1],n?Ae(o,s[1],u,null):Ve(s[1]),null),be(e,a=Re(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 Nv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Nu=class extends j{constructor(e){super(),G(this,e,Nv,Dv,K,{})}},ns=Nu;var Lm=require("@vkontakte/videoplayer-shared");function qv(i){Te(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 Vm(i){let e;return{c(){e=T("div"),f(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){S(t,e,n)},d(t){t&&C(e)}}}function Ov(i){let e,t,n,o,r=i[1]&&Vm(i);return n=new ns({}),{c(){r&&r.c(),e=q(),t=T("div"),B(n.$$.fragment),f(t,"class","svelte-1ot3duq"),F(t,"mobile",i[1])},m(l,a){r&&r.m(l,a),S(l,e,a),S(l,t,a),L(n,t,null),o=!0},p(l,a){l[1]?r||(r=Vm(l),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),(!o||a&2)&&F(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),R(n)}}}function Fv(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:W("tooltip_restart"),disabled:i[2],click:i[4],ariaKeyShortCut:io.KeyK,$$slots:{default:[Ov]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new yt({props:r}),pe.push(()=>qe(e,"ref",o)),{c(){B(e.$$.fragment)},m(l,a){L(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){R(e,l)}}}function Hv(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:r=!1}=e,{className:l=""}=e,{click:a=Lm.noop}=e;function s(u){n=u,t(0,n)}return i.$$set=u=>{"ref"in u&&t(0,n=u.ref),"isMobile"in u&&t(1,o=u.isMobile),"disabled"in u&&t(2,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 qu=class extends j{constructor(e){super(),G(this,e,Hv,Fv,K,{ref:0,isMobile:1,disabled:2,className:3,click:4},qv)}},Yl=qu;function zv(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"play-prev-chapter-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=le(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","#fff"),f(t,"d","M12.583 12.917v2.496a1 1 0 0 1-1.522.853l-5.583-3.413a1 1 0 0 1 0-1.706l5.583-3.413a1 1 0 0 1 1.522.853v2.496l5.478-3.349a1 1 0 0 1 1.522.853v6.826a1 1 0 0 1-1.522.853z"),be(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Me(r,o,s,s[1],n?Ae(o,s[1],u,null):Ve(s[1]),null),be(e,a=Re(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 Uv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Ou=class extends j{constructor(e){super(),G(this,e,Uv,zv,K,{})}},Rm=Ou;function Kv(i){let e,t;return e=new Rm({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function jv(i){let e,t,n;function o(l){i[4](l)}let r={className:i[1]?"hidden":"",testId:"btn-play-prev-chapter",ariaLabel:W("tooltip_interactive_go_back"),disabled:i[2],click:i[3],$$slots:{default:[Kv]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new yt({props:r}),pe.push(()=>qe(e,"ref",o)),{c(){B(e.$$.fragment)},m(l,a){L(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){R(e,l)}}}function Wv(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 Fu=class extends j{constructor(e){super(),G(this,e,Wv,jv,K,{ref:0,hidden:1,disabled:2,click:3})}},os=Fu;var Hu=require("@vkontakte/videoplayer-shared");function Gv(i){Te(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 Qv(i){let e,t,n,o;return{c(){e=T("img"),f(e,"class","icon svelte-1x1zctw"),Bs(e.src,t=i[0])||f(e,"src",t),f(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&&!Bs(e.src,t=r[0])&&f(e,"src",t)},d(r){r&&C(e),n=!1,o()}}}function Yv(i){let e;return{c(){e=T("div"),e.innerHTML='<div class="inner svelte-1x1zctw"></div>',f(e,"class","icon error-stub svelte-1x1zctw")},m(t,n){S(t,e,n)},p:_e,d(t){t&&C(e)}}}function Zv(i){let e;function t(r,l){return r[5]?Yv:Qv}let n=t(i,-1),o=n(i);return{c(){o.c(),e=ct()},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 Xv(i){let e,t;return e=new yt({props:{className:i[4]?"btn-full-opacity":"",ariaLabel:i[1],click:i[3],disabled:i[6],testId:i[2],$$slots:{default:[Zv]},$$scope:{ctx:i}}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let r={};o&16&&(r.className=n[4]?"btn-full-opacity":""),o&2&&(r.ariaLabel=n[1]),o&8&&(r.click=n[3]),o&64&&(r.disabled=n[6]),o&4&&(r.testId=n[2]),o&545&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Jv(i,e,t){let n,o,r,{iconUrl:l}=e,{ariaLabel:a}=e,{disabled:s=!1}=e,{testId:u}=e,{onClick:c=Hu.noop}=e,m=()=>{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,c=h.onClick)},i.$$.update=()=>{if(i.$$.dirty&8)e:t(4,n=c===Hu.noop);if(i.$$.dirty&272)e:t(6,o=n||s)};e:t(5,r=!1);return[l,a,u,c,n,r,o,m,s]}var zu=class extends j{constructor(e){super(),G(this,e,Jv,Xv,K,{iconUrl:0,ariaLabel:1,disabled:8,testId:2,onClick:3},Gv)}},ls=zu;var o0=require("@vkontakte/videoplayer-shared");var vn=require("@vkontakte/videoplayer-core"),wA=require("@vkontakte/videoplayer-shared"),gt=require("@vkontakte/videoplayer-shared"),co=require("@vkontakte/videoplayer-statistics"),kA=require("@vkontakte/videoplayer-interactive");var Vt=require("@vkontakte/videoplayer-shared");var Bm=(i,e)=>i<400||e<225?5:i<640||e<360?0:i<960||e<540?1:i<1280||e<720?2:3;var xv="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",rs=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 Vt.Subject,started$:new Vt.Subject,paused$:new Vt.Subject,resumed$:new Vt.Subject,ended$:new Vt.Subject,skipped$:new Vt.Subject,clicked$:new Vt.Subject};this.loadAdman=e=>new Promise((t,n)=>{let o,r=()=>{clearTimeout(o),delete window.admanAsyncInit,window.AdmanHTML?t():n()};(0,Vt.addScript)(xv,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)=>{(0,Vt.assertNonNullable)(this.adsState),(0,Vt.assertNonNullable)(this.playerState),(0,Vt.assertNonNullable)(this.actions),this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(t)}`}),this.events.started$.next(e),t.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"}),it(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})=>{(0,Vt.assertNonNullable)(this.adsState),this.adsState.position.set(e)};this.onAdPaused=()=>{(0,Vt.assertNonNullable)(this.adsState),this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")};this.onAdPlayed=()=>{(0,Vt.assertNonNullable)(this.adsState),this.log({message:"ad played"}),this.adsState.playbackState.set("playing")};this.onAdMidrollPoint=()=>{(0,Vt.assertNonNullable)(this.adman),(0,Vt.assertNonNullable)(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=()=>{var e;this.log({message:"ad clicked"}),(e=this.videoElement)==null||e.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:r,adsContainer:l,adsVideoElement:a,slotId:s,params:u={},duration:c,previewParam:m}=e,h,k=this.playerState&&it(this.playerState.vsid);k&&(h=parseInt(k,36));let g=at(Dt(at({dl:encodeURIComponent(window.location.href),autoplay:r,player_width:t,player_height:n,puid10:Bm(t,n),puid11:o?0:1,preview:m},h?{request_id:h}:{}),{duration:c}),u),w={slot:s,wrapper:l,videoEl:a,videoQuality:n,params:g,browser:{mobile:!1}},y=new window.AdmanHTML;y.setDebug(!1),y.onReady(this.onAdsReady),y.onStarted(this.onAdStarted),y.onPlayed(this.onAdPlayed),y.onPaused(this.onAdPaused),y.adMidrollPoint(this.onAdMidrollPoint),y.onClosed(this.onAdClosed),y.onSkipped(this.onAdSkipped),y.onClicked(this.onAdClicked),y.onTimeRemained(this.onAdTimeRemained),y.onCompleted(this.onAdCompleted),y.onError(this.onAdError),y.init(w),this.adman=y,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}(0,Vt.assertNonNullable)(this.actions),(0,Vt.assertNonNullable)(this.adsState),(0,Vt.assertNonNullable)(this.playerState);let t=this.currentAdSection==="postroll";this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.playerState.mobileUnmuteButtonVisible.set(!1),this.log({message:`switch to video, isPostroll: ${t}`}),t&&(this.adsState.postrollPassed.set(!0),this.log({message:"postroll passed"})),this.actions.switchFromAdsToVideo(!t)}togglePlay(){(0,Vt.assertNonNullable)(this.adsState),this.log({message:"toggle play"});let e=it(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){var t;this.log({message:`set volume ${e}`}),(t=this.adman)==null||t.setVolume(e),this.videoElement&&(this.videoElement.volume=e)}setFullscreen(e){var t;this.log({message:`set fullscreen ${e}`}),(t=this.adman)==null||t.setFullscreen(e)}startPreroll(){(0,Vt.assertNonNullable)(this.adman),this.isDestroyed||(this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.adman.start("preroll"))}startPostroll(){(0,Vt.assertNonNullable)(this.adman),(0,Vt.assertNonNullable)(this.actions),this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.adman.start("postroll")}play(){(0,Vt.assertNonNullable)(this.adman),this.log({message:"ad play"}),this.adman.resume(),this.events.resumed$.next()}pause(){(0,Vt.assertNonNullable)(this.adman),this.log({message:"ad pause"}),this.adman.pause(),this.events.paused$.next()}skip(){(0,Vt.assertNonNullable)(this.adman),this.log({message:"ad skip"}),this.adman.skip(),this.events.skipped$.next()}setPosition(e,t){var n;(n=this.adman)==null||n.setPosition(Math.floor(e),Math.floor(t))}destroy(){var e;this.log({message:"destroy"}),(e=this.adman)==null||e.destroy(),this.videoElement&&(0,Vt.clearVideoElement)(this.videoElement),this.isDestroyed=!0}};var Dm=i=>{let e=Math.round(i);return isNaN(e)||e<40?"":e>=40&&e<55?50:e>=55&&e<90?60:e>=90&&e<180?120:e>=180?240:""};var Uu=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e){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 ss,{startTime:u,endTime:c}=s.parse(a);r.startTime=u,r.endTime=c}else if(a.trim()!==""){let s=new Ku,{texts:u}=s.parse(a);r.texts=[...r.texts,...u]}(r.startTime||r.endTime)&&r.texts.length>0&&t.push(r)}return t}},ss=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}},Ku=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let t={texts:[]},o=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](l){let a=0,s=[];for(;a<l.length;){let u=["<",">"].reduce((c,m)=>{let h=l.indexOf(m,a);return c===-1||c>h?h:c},-1);if(u===-1){s.push(l.substring(a));break}s.push(l.substring(a,u)),a=u+1}return s}}),r=new ss;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}},Nm=Uu;var as=require("@vkontakte/videoplayer-shared");var To,ei,ju=0,Wu=!1,qm=(i,e,t)=>{var u;let n=i>=ju,o=i<ju,r=(c,m=0,h=0)=>c<m&&c<h,l=(c,m=0,h=0)=>c>=m&&c<=h,a=(c,m=0,h=0)=>c>m&&c>h,s=(u=t.find(({lang:c})=>c===e.value))==null?void 0:u.subtitles;if(ju=i,o&&(Wu=!1),(0,as.isNonNullable)(To)&&l(i,To.startTime,To.endTime)&&To.lang===e.value)return To;if(!(0,as.isNonNullable)(ei)&&(s!=null&&s.length)&&!Wu){let c=s.find(({startTime:m,endTime:h})=>l(i,m,h)||n&&r(i,m,h));ei=c&&Dt(at({},c),{lang:e.value}),To=void 0,!(0,as.isNonNullable)(ei)&&s[s.length-1].endTime<i&&(Wu=!0);return}else{if(l(i,ei==null?void 0:ei.startTime,ei==null?void 0:ei.endTime))return To=ei,ei=void 0,To;(n&&a(i,ei==null?void 0:ei.startTime,ei==null?void 0:ei.endTime)||o&&r(i,ei==null?void 0:ei.startTime,ei==null?void 0:ei.endTime))&&(ei=void 0)}};var Om=require("@vkontakte/videoplayer-shared"),Fm=require("@vkontakte/videoplayer-statistics"),us=class{constructor(e,t){this.oneStat=new Fm.OneStat(e,t),this.statSubscription=new Om.Subscription}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var Hm=({interfaceLanguage:i,isCyrillicRelatedInterface:e,videoId:t,isClip:n,isLiveCatchUpMode:o,statAuthToken:r,isAudioDisabled:l,canDownload:a,callbacks:s,webApi:u,videoEpisodes:c,previewThumbsData:m,uiConfig:h,coreConfig:k,player:g,disabledControls:w,isInteractive:y,interactiveRanges$:P,isInteractiveTime$:v,replayInteractive:b,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:N,additionalButtons:M,looped:O=!1,statistics:re,saveRate:ae})=>{var Dl,Nl,ql,il;let Y=Dt(at({},k),{configName:[...(Dl=k.configName)!=null?Dl:[],"ui"],isAudioDisabled:l,live:Dt(at({},(Nl=k.live)!=null?Nl:{}),{isLiveCatchUpMode:!!o})}),ee=h,A=g||new vn.Player(Y),x=new gt.Logger,Z=new rs(x,{loadTimeout:ee.ads.loadTimeout,initTimeout:ee.ads.initTimeout}),z=Uo.getInstance(),U=u==null?void 0:u.pictureInPictureApi,V=u==null?void 0:u.annotationsApi,Q=x.createComponentLog("Store"),Ce,Fe,Ze={},et=(0,gt.getCurrentBrowser)(),xe=re?Tt(re.oneStat.vsid$):Hn(void 0),ye=Be(vo()),X=(ql=U==null?void 0:U.info.isActive$)!=null?ql:new gt.ValueSubject(!1),ke=U==null?void 0:U.info.type,Ge=Be(0),tt=Be([]),rt=(0,gt.merge)(A.events.fatalError$,A.events.managedError$).subscribe(E=>tt.update(oe=>[...oe,E])),we=Hn(!1,E=>{let oe=A.events.fatalError$.subscribe(()=>E(!0));return()=>oe.unsubscribe()}),De=E=>ft(void 0,null,function*(){var He;let oe=Object.values(gt.InterfaceLanguage).includes(E);if(ee.downloadVKLanguages&&(oe&&ee.updateBuiltinLanguages||!Qs(E))){let mt;try{mt=yield(0,gt.loadVKLangPack)(E,fc,cc)}catch(Mt){(He=re==null?void 0:re.oneStat)==null||He.logError({errorType:"VKLangPack",fatal:!1}),z==null||z.report(Mt,{errorType:"VKLangPack",fatal:!1})}mt&&(Gs({language:E,pack:mt,fallback:ee.defaultLanguage}),Je.set(E))}Qs(E)&&Je.set(E)}),Je=Be(i),st=Be(e);De(i);let Se=(E,oe)=>{let Pe=it(Je);return Ys(Pe,E,oe,ee.defaultLanguage)},se=Be("thumb"),We=(()=>{let E=Ri([we,se],([oe,Pe])=>oe?"crashed":Pe);return Dt(at({},E),{is:oe=>it(E)===oe})})(),me=(()=>{let E=Be(new Set(w));return Dt(at({},E),{add:oe=>{E.update(Pe=>new Set([...Pe].concat(oe)))},remove:oe=>{E.update(Pe=>{let He=[...Pe];return new Set(Array.isArray(oe)?He.filter(mt=>!oe.includes(mt)):He.filter(mt=>mt!==oe))})},includes:oe=>{let Pe=it(E);return Array.isArray(oe)?oe.every(He=>Pe.has(He)):Pe.has(oe)}})})();Q({message:"create store"});let Ie=E=>{let oe=E.container;oe.append(A.experimental.element$.getValue()),ve=new MutationObserver(Pe=>{let{removedNodes:He}=Pe[0];He.length&&oe.append(A.experimental.element$.getValue())}),ve.observe(oe,{childList:!0})},Oe=E=>{Q({message:`init video, config: ${JSON.stringify(E)}`}),y?Ie(E):A.initVideo(E),E.subtitles&&A.setExternalTextTracks(E.subtitles),Ce=E},ce=new gt.Subject,Qe=E=>ce.next(E),$e=new gt.Subject,pt=new gt.Subject,bt=new gt.Subject,ve=null,Ct={actionRewind$:$e,actionSeek$:pt,inPiP$:X,inFullscreen$:new gt.Observable(E=>ye.subscribe(oe=>E.next(oe))),actionSetSubtitle$:bt,nextMovie$:ce};if(re){let{oneStat:E,statSubscription:oe}=re;oe.add(E.attachTo(A)),oe.add(E.attachToUi(Ct)),oe.add(E.attachToAds(Z.events)),E.authorize(r).catch(Pe=>{Q({message:`onestat auth error ${String(Pe)}`})})}if(z){let E=new gt.Subscription,oe=(Pe,He)=>E.add(Pe.subscribe(He));if(oe(A.events.managedError$,Pe=>{z.logIError(Pe)}),oe(A.events.fatalError$,Pe=>{z.logIError(Pe,!0)}),re){let{oneStat:Pe}=re;oe(Pe.experimental.error$,He=>{z.logIError(He)})}z.sentrySubscription.add(E)}let Lt=()=>{(0,gt.isIOS)()&&Fe&&Wc(Fe)},St=new gt.Subscription().add(A.experimental.element$.subscribe(E=>{E&&(Fe=E,E.classList.add("player-media"),jo(U)&&(U.updateVideoElement(),U.registryEventHandlers()),y&&E.setAttribute("pip","false"))})).add(A.events.ended$.subscribe(()=>{var E;Lt(),(E=s==null?void 0:s.onEnded)==null||E.call(s)})).add(A.events.started$.subscribe(()=>ft(void 0,null,function*(){var oe,Pe;jo(U)&&(yield U==null?void 0:U.revealPictureInPicture());let E=A.info.muted$.getValue();(oe=s==null?void 0:s.onStarted)==null||oe.call(s),(Pe=Ze.onStarted)==null||Pe.call(Ze,E)}))).add(A.events.willSeek$.subscribe(({from:E,to:oe})=>{var Pe;(Pe=s==null?void 0:s.onSeek)==null||Pe.call(s,E,oe)})).add(A.info.position$.subscribe(E=>{var Pe;let oe=A.info.duration$.getValue();(Pe=s==null?void 0:s.onTimeupdate)==null||Pe.call(s,oe,E),Z.setPosition(E,oe)})).add(A.events.fatalError$.subscribe(()=>{var E;(E=s==null?void 0:s.onCrashed)==null||E.call(s)})).add(A.events.firstBytes$.subscribe(()=>{kt.state.isFirstBytes$.set(!0)})).add(A.info.is3DVideo$.subscribe(E=>{kt.ui.is3DVideo.set(E)})).add(A.info.isEnded$.subscribe(E=>{y&&(E?(v!=null&&v.getValue()&&me.add(cr),me.add("PLAY_BUTTON")):me.remove("PLAY_BUTTON"))})).add(A.info.liveTime$.subscribe(E=>{var oe;(oe=s==null?void 0:s.onLiveTime)==null||oe.call(s,E)})).add(A.info.isStalled$.subscribe(E=>{var oe;(oe=s==null?void 0:s.onStalledChanged)==null||oe.call(s,E)})).add(Z.events.started$.subscribe(()=>{var E,oe;(oe=(E=s==null?void 0:s.adsInfo)==null?void 0:E.onStarted)==null||oe.call(E)})).add(Z.events.ended$.subscribe(()=>{var E,oe;(oe=(E=s==null?void 0:s.adsInfo)==null?void 0:E.onCompleted)==null||oe.call(E)})),ze=new gt.Subscription,Ut=()=>{ze.add(A.events.log$.subscribe(E=>{console.debug("%c sdk ","background:#9ddcf7;",`sdk component: ${E.component}`,E.message)})).add(x.log$.subscribe(E=>{console.debug("%c ui ","background:#f3da0b;",`ui component: ${E.component}.`,E.message)}))},Rt=()=>{ze.unsubscribe()},Et=(E,oe)=>{A.startCameraManualRotation(E,oe)},oi=(E=!1)=>{A.stopCameraManualRotation(E)},Nt=(E,oe,Pe)=>{A.moveCameraFocusPX(E,oe,Pe)},Kt=()=>{A.holdCamera()},he=()=>{A.releaseCamera()},Ke=Hn(A.info.position$.getValue(),E=>{let oe,Pe,He=()=>{let mt=A.info.playbackState$.getValue(),Mt=A.info.isLive$.getValue(),je=A.info.duration$.getValue(),vt=A.info.position$.getValue();if([vn.PlaybackState.PLAYING,vn.PlaybackState.PAUSED].includes(mt)){let hi=Mt?vt-je:A.getExactTime();hi!==Pe&&E(hi),Pe=hi}oe=requestAnimationFrame(He)};return He(),()=>cancelAnimationFrame(oe)}),ht=Tt(X),dt=Tt(A.info.playbackState$),Xe=Tt(A.info.currentBuffer$),Bt=Tt(A.info.isEnded$),Xt=Tt(A.info.isLive$),qt=ee.features.playbackRate?Tt(A.info.canChangePlaybackSpeed$):Hn(!1),Qi=Tt(A.info.liveBufferTime$),fn=Tt(A.info.volume$),ui=Tt(A.info.muted$),Bi=Hs(A.info.autoQualityLimits$.pipe((0,gt.map)(({max:E})=>E!==void 0)),((il=A.info.autoQualityLimits$.getValue())==null?void 0:il.max)!==void 0),yn=Tt(A.info.autoQualityLimitingAvailable$),Di=Tt(A.info.availableQualities$),cn=Tt(A.info.availableQualitiesFps$),gi=Tt(A.info.chromecastState$),Ni=Tt(A.info.chromecastDeviceName$),fi=Tt(A.info.currentFormat$),Ti=Tt(A.info.throughputEstimation$),Pi=Tt(A.info.videoBitrate$),Ii=Tt(A.info.intrinsicVideoSize$),li=Tt(A.info.duration$),jt=Tt(A.info.isAudioAvailable$),ti=null,Ei=A.info.isBuffering$,Yi=Hn(Ei.getValue(),E=>{let oe=Ei.subscribe(Pe=>{Pe&&ti===null?ti=window.setTimeout(()=>{E(Ei.getValue()),ti=null},ee.loaderDelay):E(Pe)});return()=>{oe.unsubscribe(),ti&&clearTimeout(ti)}}),Ai=()=>{ti&&clearTimeout(ti),ti=null},bi=Ri([li,Xt],([E,oe])=>oe?-E:E),Zi=Ri([dt],([E])=>E===vn.PlaybackState.PLAYING),wt=Tt(A.info.atLiveEdge$),Xi=Tt(A.info.atLiveDurationEdge$),Pt=Tt(A.info.position$),qi=Ri([Pt,li],([E,oe])=>isFinite(E)&&isFinite(oe)&&!!oe),Ji=Ri([gi],([E])=>E===vn.ChromecastState.CONNECTED),xi=Tt(A.info.availableVideoStreams$),ii=ee.features.audioLanguages?Tt(A.info.availableAudioStreams$):Hn([]),vi=Tt(A.info.currentVideoStream$),yi=Tt(A.info.currentAudioStream$),wi=E=>{E.language&&js(E.language),A.setVideoStream(E)},ci=E=>{E.language&&js(E.language),A.setAudioStream(E)},Ht=E=>{let oe;if(E.length===1&&(oe=E.at(0)),oe!=null||(oe=E.find(He=>"isDefault"in He&&He.isDefault)),oe)return oe;let Pe=qc();return Pe&&(oe=E.find(({language:He})=>Pe===He)),oe!=null||(oe=E.at(0)),oe},Mi=!1;St.add(A.info.availableAudioStreams$.subscribe(E=>{if(!Mi&&E.length){let oe=Ht(E);oe&&(A.setAudioStream(oe),Mi=!0)}}));let Oi=!1;St.add(A.info.availableVideoStreams$.subscribe(E=>{if(!Oi&&E.length){let oe=Ht(E);oe&&(A.setVideoStream(oe),Oi=!0)}}));let ri=Be(void 0),si=Tt(A.info.isAutoQualityEnabled$,E=>E&&ri.set(void 0)),di=Tt(A.info.currentQuality$,()=>ri.set(void 0)),$i=Ri([ri,di],([E,oe])=>E!=null?E:oe),wn=Ri([Di,cn,si,$i,fi],([E,oe,Pe,He,mt])=>{let Mt=[];mt!==vn.VideoFormat.MPEG&&Mt.push({value:"auto",displayValue:Se("auto_quality_option"),selected:Pe});let je=E.filter(vt=>vt!==gt.VideoQuality.INVARIANT);for(let vt of je){let hi=oe[vt],ho=vt===gt.VideoQuality.INVARIANT?Se("auto_quality_option"):vt;Mt.push({value:vt,displayValue:`${ho}${hi?Dm(hi):""}`,selected:Pe?!1:vt===He})}return Mt}),dn=Tt(A.info.currentPlaybackRate$),en=Ri([dn,wt,Xi],([E,oe,Pe])=>{let He=Pe||y?1:ee.controls.playbackRateMin,mt=oe?1:ee.controls.playbackRateMax,Mt=ee.controls.playbackRateStep,je=[];for(let vt=He;vt<=mt;vt+=Mt)je.push({value:vt,displayValue:vt===1?Se("playback_rate_1"):Se("playback_rate",{multiplier:vt.toString(10)}),selected:E===vt});return je}),Fi=ee.features.subtitles?Tt(A.info.availableTextTracks$):Hn([]),Jt=Ri([Fi],([E],oe)=>{let Pe=[],He=[];for(let mt of E)mt.url&&Pe.push(fetch(mt.url));Promise.allSettled(Pe).then(mt=>{for(let[Mt,je]of mt.entries())je.status==="fulfilled"&&je.value.text().then(vt=>{let hi=new Nm,ho=E[Mt].language,er=!!E[Mt].isAuto,tr=hi.parse(vt);ho&&tr&&He.push({lang:ho,subtitles:tr,isAuto:er}),Mt===mt.length-1&&oe(He)})})}),Wt={displayValue:Se("subtitles_off"),value:"off"},Yt=Be(at({},Wt)),Hi=Ri([Jt,Yt,Jt],([E,oe])=>{if((E==null?void 0:E.length)>0){let Pe=[Dt(at({},Wt),{selected:(oe==null?void 0:oe.value)===Wt.value})];for(let{lang:He,isAuto:mt}of E)Yo[He]&&Pe.push({displayValue:mt?Se("subtitles_auto",{language:Yo[He]}):Yo[He],value:He,selected:(oe==null?void 0:oe.value)===He,isAuto:mt});return Pe}else return[]}),zi=Ri([Ke,Yt,Jt],([E,oe,Pe])=>{if(oe&&oe.value!==Wt.value)return qm(E,oe,Pe)}),mn=Ri([zi],([E])=>E!=null&&E.texts?E.texts:[]),Ui=Be(!0),Ki=Ri([Xe,bi,Pt,Qi],([E,oe,Pe,He])=>{var vt;let mt=(vt=E==null?void 0:E.end)!=null?vt:0;if(!He)return mt/oe;let je=-Pe+He-oe;return(mt-je)/oe}),nt=Tt(A.info.availableSources$),mi=Ri([nt],([E])=>Object.keys((E==null?void 0:E[vn.VideoFormat.MPEG])||{}).length>0),ai=()=>{var Pe,He,mt;let E=Object.keys(((He=(Pe=A.info.availableSources$)==null?void 0:Pe.getValue())==null?void 0:He[vn.VideoFormat.MPEG])||{}),oe=(0,gt.getHighestQuality)(E)||gt.VideoQuality.Q_144P;return(mt=Ce.sources[vn.VideoFormat.MPEG])==null?void 0:mt[oe]},Ue=()=>{var oe;let E=ai();E?Cc(E,((oe=Ce==null?void 0:Ce.meta)==null?void 0:oe.title)||"video"):Q({message:"There is no URL for download video"})},tn=()=>{Q({message:"toggle muted"});let E=A.info.muted$.getValue(),He=!(A.info.volume$.getValue()===0||E);rn(He)},pn=()=>{kt.ui.settingsMenuVisible.set(!1)},nn=E=>{kt.ui.settingsMenuOpenedByKeyboard.set(!!E),kt.ui.settingsMenuVisible.set(!0)},on=E=>{it(kt.ui.settingsMenuVisible)?pn():nn(E)},ln=(E,oe=E,Pe=!1)=>{var Mt,je,vt;let He=!Pe,mt=A.info.muted$.getValue();Q({message:`set volume, volume: ${E}, preferredVolume: ${oe}, internalCall: ${He}`}),A.setVolume(E),Z.setVolume(E),He&&((Mt=s==null?void 0:s.onVolumeChange)==null||Mt.call(s,E)),Us(oe),mt?(A.setMuted(!1),He&&((je=s==null?void 0:s.onUnmute)==null||je.call(s)),_r(!1)):!mt&&E===0&&(A.setMuted(!0),He&&((vt=s==null?void 0:s.onMute)==null||vt.call(s)),_r(!0))},rn=(E,oe=!1)=>{var mt,Mt,je,vt;let Pe=!oe,He=A.info.volume$.getValue();if(Q({message:`set muted, currentVolume: ${He}, mute: ${E}, internalCall: ${Pe}`}),A.setMuted(E),Z.setVolume(E?0:He),_r(E),Pe&&(E?(mt=s==null?void 0:s.onMute)==null||mt.call(s):(Mt=s==null?void 0:s.onUnmute)==null||Mt.call(s)),He===0){let hi=(je=pr())!=null?je:ee.volumeDefault;hi===0&&(hi=ee.volumeMinRestore,Us(hi)),A.setVolume(hi),Z.setVolume(hi),Pe&&((vt=s==null?void 0:s.onVolumeChange)==null||vt.call(s,hi))}},_n=Be(!1),kn=E=>{_n.set(E),A.setLooped(E)};kn(O);let xt=()=>{A.prepare()},ji=()=>{if((0,gt.assertNonNullable)(kt),it(kt.ui.controls.disabledControls$).has("PLAY_BUTTON"))return;if(Q({message:"toggle play"}),it(kt.playerPhase)==="ads"){Z.togglePlay();return}let oe=()=>{var He;Q({message:"toggle play, call player.play"}),A.play(),(He=s==null?void 0:s.onPlay)==null||He.call(s)},Pe=()=>{var He;Q({message:"toggle play, call player.pause"}),A.pause(),(He=s==null?void 0:s.onPause)==null||He.call(s)};if(A.info.isEnded$.getValue()){if(Q({message:"toggle play, video ended, seek to 0"}),$e.next(),pt.next(co.SeekAction.REWIND),y){b==null||b();return}A.seekTime(0),oe()}else A.info.playbackState$.getValue()!==vn.PlaybackState.PLAYING?oe():Pe()},En=E=>{Q({message:`set quality, quality: ${E}`}),A.setAutoQuality(E==="auto"),E!=="auto"?(Mc(t,E),ri.set(E),A.setQuality(E)):Ks()},Bn=E=>{Q({message:`set trafficSavingEnabled, value: ${E}`}),A.setAutoQualityLimits({max:E?ee.trafficSavingLimit:void 0}),Dc(E)},Wi=E=>{A.setPlaybackRate(E),ee.features.saveRate&&ae&&!A.info.isLive$.getValue()&&Oc(E)},An=()=>{let E=it(en),oe=E.findIndex(({selected:He})=>He);if(oe===E.length-1)return;let Pe=E[oe+1];Wi(Pe.value)},Cn=()=>{let E=it(en),oe=E.findIndex(({selected:He})=>He);if(oe===0)return;let Pe=E[oe-1];Wi(Pe.value)},pi=E=>{E&&E.value!==Wt.value&&bt.next(E.isAuto?E.value+"_auto":E.value),Yt.set(E)},ni=()=>{let E=it(Hi),oe=it(Yt),Pe=it(Je);if((oe==null?void 0:oe.value)===Wt.value){let He=E.filter(mt=>mt.value!==Wt.value).find(mt=>mt.value===Pe)||E[1];pi(He!=null?He:at({},Wt))}else pi(Dt(at({},Wt),{selected:!1}))},sn=(E,oe,Pe=!0)=>{if(Q({message:`seek to time, time: ${E}`}),pt.next(oe),A.info.isLive$.getValue()){let He=A.info.duration$.getValue(),mt=Math.min(0,He+E);A.seekTime(mt,Pe)}else{if(v!=null&&v.getValue())return;A.seekTime(to(E),Pe)}},Dn=E=>{Q({message:`seek to episode start time: ${E}`}),sn(E,co.SeekAction.EPISODE,!0)},Mn=(E,oe)=>{Q({message:`seek to percent, percent: ${E}`});let Pe=Math.round(it(bi)*E);sn(Pe,oe,!1)},Zt=E=>{Q({message:`seek external, time: ${E}`}),pt.next(co.SeekAction.UNKNOWN),A.seekTime(A.info.isLive$.getValue()?-E:E)},Kn=E=>{var oe,Pe;Q({message:`set auto quality limitation. Max: ${(oe=E.max)!=null?oe:"none"}. Min: ${(Pe=E.min)!=null?Pe:"none"}`}),A.setAutoQualityLimits(E)},jn=E=>{Q({message:`seek external to episode start time: ${E}`}),sn(E,co.SeekAction.EPISODE,!0)},Nn=E=>{Q({message:`set playback rate to: ${E}`}),A.setPlaybackRate(E)},Vn=Be(void 0),hn=Be(!1),qn=E=>{Q({message:`start scrubbing, progress: ${E}`}),hn.set(!0),an(E)},an=E=>{Vn.set(E)},gn,Sn,ie=()=>{Vn.set(void 0),hn.set(!1)},$=()=>{clearTimeout(Sn),clearTimeout(gn),gn=window.setTimeout(()=>{ie()},500),Fe==null||Fe.removeEventListener("seeked",$)},_t=E=>{Q({message:`complete scrubbing, progress: ${E}`}),Mn(E,co.SeekAction.SLIDER),it(kt.ui.isMobile)&&it(kt.state.currentFormat$)===vn.VideoFormat.HLS?(Fe==null||Fe.addEventListener("seeked",$),Sn=window.setTimeout(()=>{$()},300)):ie()},Gt=Ri([Ke,bi,Vn],([E,oe,Pe],He)=>{He((0,gt.isNonNullable)(Pe)?Pe*oe:E)}),Tn=Be({width:0,height:0}),_i=Ri([Tn],([{width:E}],oe)=>{let Pe=om(E);oe(Pe)}),On=Be(!1),eo=Ri([_i,On],([E,oe])=>oe?M.filter(Pe=>!Pe.hideOnMobile):M.filter(Pe=>{var He;return!((He=Pe.hideOnDesktopGridTypes)!=null&&He.includes(E))})),Ln=Ri([On,we],([E,oe],Pe)=>{Pe(E&&oe)}),ne=()=>{pt.next(co.SeekAction.LIVE),Q({message:"switch to active live"}),A.seekTime(0),A.info.playbackState$.getValue()!==vn.PlaybackState.PLAYING&&kt.actions.internal.togglePlay()},Io=()=>Z.skip(),Rl=(E=!0)=>{(0,gt.assertNonNullable)(kt),Q({message:`switch from ads to video, callPlay: ${E}`}),se.set("video"),E&&A.play()},Bl=()=>{(0,gt.assertNonNullable)(kt),Q({message:"switch from video to ads"}),kt.actions.internal.pause(),Lt(),se.set("ads")},Eo=E=>{(0,gt.assertNonNullable)(kt);let oe=E?"waitingLive":"thumb";se.set(oe)},Ao=E=>{(0,gt.assertNonNullable)(kt);let oe=E?"waitingRecord":"thumb";se.set(oe)},lo=()=>((0,gt.assertNonNullable)(kt),wc(A,Ce,kt)),po=()=>((0,gt.assertNonNullable)(kt),kc(A,Ce,kt)),xo=()=>Fe,$o=()=>{Q({message:"toggle chromecast"}),A.toggleChromecast()},_o=E=>{var Pe;(0,gt.assertNonNullable)(kt);let oe=!E;if(it(kt.playerPhase)==="ads"){Q({message:`pause ads, internalCall: ${oe}`}),Z.pause();return}Q({message:`pause video, internalCall: ${oe}`}),oe&&((Pe=s==null?void 0:s.onPause)==null||Pe.call(s)),A.pause()},el=E=>{var Pe;(0,gt.assertNonNullable)(kt);let oe=!E;if(it(kt.playerPhase)==="ads"){Q({message:`play ads, internalCall: ${oe}`}),Z.play();return}Q({message:`play video, internalCall: ${oe}`}),oe&&((Pe=s==null?void 0:s.onPlay)==null||Pe.call(s)),A.play()},Mo=(E,oe)=>{(0,gt.assertNonNullable)(kt),Q({message:`first start, show ads: ${E}, internalCall: ${!oe}`}),E?se.set("ads"):(se.set("video"),oe?A.play():kt.actions.internal.togglePlay())},ro=()=>(Q({message:"getting time codes"}),c),Vo=()=>{let E=ro();if(!E||[0,1].includes(E.length))return;let oe=A.info.position$.getValue();return E.find(Pe=>Pe.time>oe)},tl=E=>{let oe=E;oe||(oe=Vo()),oe&&(Q({message:"seek to next episode"}),sn(oe.time,co.SeekAction.EPISODE,!0))},Lo=()=>{let E=ro();if(!E||[0,1].includes(E.length))return;let oe=A.info.position$.getValue(),Pe=E.findIndex(mt=>mt.time>oe),He=Pe===-1?E.length-2:Pe-2;if(!(He<0))return E[He]},J=E=>{let oe=E;oe||(oe=Lo()),oe&&(Q({message:"seek to prev episode"}),sn(oe.time,co.SeekAction.EPISODE,!0))},At=()=>(Q({message:"getting preview thumbs data"}),m),Pn=()=>ft(void 0,null,function*(){U!=null&&U.isActive()?yield U==null?void 0:U.remove():yield U==null?void 0:U.request()}),bn=(E=-90)=>{Ge.update(oe=>oe+E)},Wn=Be([]);P==null||P.subscribe(E=>{let oe=[];for(let Pe=0;Pe<E.length;Pe++){let{range:[He,mt],subjects:Mt}=E[Pe];Pe===0&&He!==0&&oe.push({time:0,text:"",interactive:!1,completed:!0}),oe.push({time:He/1e3,text:"",interactive:!0,completed:!Mt.length}),mt!==1/0&&oe.push({time:mt/1e3,text:"",interactive:!1,completed:!0})}Wn.set(oe)});let Gn=Be(!1);v==null||v.subscribe(E=>{E&&it(hn)&&ie()});let to=E=>{if(!y)return E;let oe=it(Wn),Pe=it(bi),mt=it(Pt)/Pe,Mt=oe.find(je=>je.interactive&&!je.completed&&je.time>mt);return typeof(Mt==null?void 0:Mt.time)=="number"?Math.min(E,Mt.time-.05):E},Ro=()=>{kt.ui.episodes.panelOpened$.set(!1)},Bo=()=>{clearTimeout(Sn),clearTimeout(gn),St.unsubscribe(),ze.unsubscribe(),A.destroy(),Z.destroy(),re==null||re.destroy(),z==null||z.destroy(),rt.unsubscribe(),ve==null||ve.disconnect(),ve=null},kt={interfaceLanguage$:Je,isCyrillicRelatedInterface$:st,initVideo:Oe,videoId:t,isClip:n,playerPhase:We,vsid:xe,state:{positionExact$:Ke,positionWithScrubbing$:Gt,duration$:bi,playbackState$:dt,isPlaying$:Zi,isLoaderVisible:Yi,bufferedProgress$:Ki,isLive$:Xt,canChangePlaybackSpeed$:qt,isActiveLive$:wt,isOldestAvailableLive$:Xi,isRewindableLive$:qi,isEnded$:Bt,muted$:ui,volume$:fn,trafficSavingEnabled$:Bi,autoQualityLimitingAvailable$:yn,availableVideoStreams$:xi,availableAudioStreams$:ii,videoStream$:vi,audioStream$:yi,currentQuality$:$i,isAutoQualityEnabled$:si,availableQualities$:wn,currentPlaybackRate$:dn,availablePlaybackRates$:en,currentSubtitle$:Yt,availableSubtitlesList$:Hi,currentSubtitleCaptions$:mn,isAutoSubtitleCaptionVisible$:Ui,chromecastState$:gi,chromecastDeviceName$:Ni,chromecastConnected$:Ji,currentFormat$:fi,throughputEstimation$:Ti,videoBitrate$:Pi,videoSize$:Ii,errorLog$:tt,crashed$:we,isAudioAvailable$:jt,isAudioDisabled:!!l,canDownload:ee.features.download&&!!a,availableSources$:nt,hasMpegSources$:mi,isInteractive:y,showInteractiveGraph:ee.features.interactiveGraph,showSeekToInteractive:ee.features.seekToInteractive,showPlayPrevChapter:ee.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:ee.features.interactiveTimeIndicator&&!!it(Wn).length,interactiveEpisodes$:Wn,isInteractiveTime$:v?Tt(v):Be(!1),graphIsOpened$:Be(!1),isInteractiveExpectation$:Gn,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:N,looped$:_n,isFirstBytes$:Be(!1)},ui:{controlsVisible:Be(!1),touched:Be(!1),controls:{prevButton:Be(void 0),playButton:Be(void 0),replayButton:Be(void 0),nextButton:Be(void 0),playPrevChapterButton:Be(void 0),seekToInteractiveButton:Be(void 0),interactiveGraphButton:Be(void 0),liveButton:Be(void 0),time:Be(void 0),episodes:Be(void 0),volume:Be(void 0),subtitles:Be(void 0),settings:Be(void 0),context:Be(void 0),chromecast:Be(void 0),pip:Be(void 0),fullscreen:Be(void 0),vkLogo:Be(void 0),interactiveTimeIndicator:Be(void 0),additionalButtons:M.length?M.reduce(E=>[...E,Be(void 0)],[]):[],disabledControls$:me},modals:{hotKeyMap:{show:Be(!1),data:Be({title:"",closeBtnText:"",groups:[]})}},isFullscreen:ye,rotateAlpha:Ge,isAutoplay:Be(!1),debugPanelVisible:Be(!1),episodes:{panelOpened$:Be(!1),openedByKeyboard$:Be(!1)},contextMenu:{visible$:Be(!1),btnRef$:Be(void 0),openedByBtnKeyboard$:Be(!1),openedByHotKey$:Be(!1),lastActiveElem$:Be(void 0),showContextMenuBtn$:Be(!1),position$:Be({top:0,left:0})},playerSize:Tn,isMobile:On,mobileNotReportControlHidden$:Ln,mobileUnmuteButtonExpanded:Be(!1),mobileUnmuteButtonVisible:Be(!1),icon3DVideoVisible:Be(!1),settingsMenuVisible:Be(!1),settingsMenuOpenedByKeyboard:Be(!1),scrubbingInProgress:hn,is3DVideo:Be(!1),isPictureInPictureActive$:ht,pictureInPictureType$:Hn(ke),clientInfo$:Hn(et),currentGridType$:_i,additionalButtons$:eo,interactiveHideMobileControls:Be(!1),overlayContainer$:Be(void 0),startedByKeyboard$:Be(!1)},ads:{position:Be(0),duration:Be(0),playbackState:Be("inactive"),canSkip:Be(!1),secondsToWatchBeforeSkip:Be(0),postrollPassed:Be(!1)},webApi:{pictureInPictureApi:U,annotationsApi:V},actions:{internal:{preload:xt,firstStart:E=>Mo(E,!1),pause:()=>_o(!1),togglePlay:ji,toggleMuted:tn,toggleSettingsMenu:on,openSettingsMenu:nn,closeSettingsMenu:pn,setVolume:ln,setVideoStream:wi,setAudioStream:ci,setQuality:En,setTrafficSavingEnabled:E=>Bn(E),setPlaybackRate:Wi,incrementPlaybackRate:An,decrementPlaybackRate:Cn,setSubtitle:pi,toggleSubtitle:ni,togglePictureInPicture:Pn,startScrubbing:qn,progressScrubbing:an,completeScrubbing:_t,toggleChromecast:$o,switchToActiveLive:ne,switchFromAdsToVideo:Rl,switchFromVideoToAds:Bl,skipAd:Io,setWaitingLive:Eo,setWaitingRecord:Ao,getDebugTextData:lo,getDebugPanelData:po,getVideoElement:xo,seekTime:(E,oe,Pe)=>sn(E,oe,Pe),clearDelayedBufferingCheckTimeout:Ai,seekEpisodeStartTime:Dn,seekToPercent:Mn,getNextEpisode:Vo,seekToNextEpisode:tl,getPrevEpisode:Lo,seekToPrevEpisode:J,startLogging:Ut,stopLogging:Rt,startCameraManualRotation:Et,stopCameraManualRotation:oi,moveCameraFocusPX:Nt,holdCamera:Kt,releaseCamera:he,getVideoEpisodes:ro,getPreviewThumbsData:At,downloadVideo:Ue,addLanguage:Gs,setLanguage:De,nextMovie:Qe,videoRotate:bn,correctSeekTimeToInteractive:to,replayInteractive:b,setLooped:kn},external:{firstStart:E=>Mo(E,!0),play:()=>el(!0),pause:()=>_o(!0),seekTime:E=>Zt(E),seekEpisodeStartTime:E=>jn(E),setPlaybackRate:E=>Nn(E),setAutoQualityLimits:E=>Kn(E),setMuted:E=>rn(E,!0),setVolume:E=>ln(E,E,!0),returnFocusToEpisodes:Ro}},callbacks:s,setUiCallbacks:E=>{Ze=at({},E)},getAdmanWrapper:()=>Z,getLogger:()=>x,destroy:Bo};return kt};var cs=(i,e,t,n)=>{var a;if(!i)return;let o=["tooltipPointerOffsetX","disabledControls$","additionalButtons"],r=["interactiveTimeIndicator"],l=i.getBoundingClientRect();for(let[s,u]of Object.entries(e))if(!["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(s)){let c=(a=t[s])==null?void 0:a.getBoundingClientRect(),m=(n||r.includes(s))&&!!c&&!!(c.right-c.left);u.set({positionStartX:0,positionEndX:0,left:m?Math.round(c.left-l.left):0,right:m?Math.round(c.right-l.left):0,top:m?Math.round(c.top-l.top):0,bottom:m?Math.round(c.bottom-l.top):0,isDisplayed:m})}};var ds=(i,e,t)=>ft(void 0,null,function*(){yield Xn(),e&&t&&(t.focus(),i.set(!1))});function e3(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"dots-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=le(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","#fff"),f(t,"d","M18 10c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m-6 4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m-6 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"),be(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Me(r,o,s,s[1],n?Ae(o,s[1],u,null):Ve(s[1]),null),be(e,a=Re(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 t3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Gu=class extends j{constructor(e){super(),G(this,e,t3,e3,K,{})}},zm=Gu;function i3(i){let e,t;return e=new zm({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function n3(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:[i3]},$$scope:{ctx:i}};return i[2]!==void 0&&(r.ref=i[2]),e=new yt({props:r}),pe.push(()=>qe(e,"ref",o)),{c(){B(e.$$.fragment)},m(l,a){L(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){R(e,l)}}}function o3(i,e,t){let n,{disabled:o=!1}=e,{ariaLabel:r=""}=e,l=lt(),a=l.ui.contextMenu.visible$;H(i,a,P=>t(3,n=P));let s=l.ui.contextMenu.openedByBtnKeyboard$,u=l.ui.contextMenu.showContextMenuBtn$,c=l.ui.contextMenu.position$,m=l.ui.contextMenu.btnRef$,h,k=P=>{let v=_l(P),b=f1(h);c.set(b),s.set(v),a.set(!n)},g=()=>{u.set(!0)},w=()=>{u.set(!1)};function y(P){h=P,t(2,h)}return i.$$set=P=>{"disabled"in P&&t(0,o=P.disabled),"ariaLabel"in P&&t(1,r=P.ariaLabel)},i.$$.update=()=>{if(i.$$.dirty&4)e:h&&m.set(h)},[o,r,h,n,a,k,g,w,y]}var Qu=class extends j{constructor(e){super(),G(this,e,o3,n3,K,{disabled:0,ariaLabel:1})}},Um=Qu;function l3(i){Te(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 r3(i){let e,t;return e=new Kr({props:{completed:!0}}),{c(){B(e.$$.fragment)},m(n,o){L(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){R(e,n)}}}function s3(i){let e,t,n,o,r,l,a,s,u,c;function m(k){i[22](k)}let h={tooltipContent:W("tooltip_interactive_interaction_time_indicator"),tooltipActive:i[5],initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:i[13],$$slots:{default:[r3]},$$scope:{ctx:i}};return i[0]!==void 0&&(h.ref=i[0]),t=new zt({props:h}),pe.push(()=>qe(t,"ref",m)),t.$on("click",i[14]),{c(){e=T("div"),B(t.$$.fragment),o=q(),r=T("div"),l=q(),a=T("div"),f(r,"class","ref-block svelte-17imlp9"),F(r,"hidden",i[1]),f(a,"class","pulse svelte-17imlp9"),F(a,"paused",i[4]),f(e,"class","interactive-episode-icon-animated svelte-17imlp9"),F(e,"mobile",i[2]),F(e,"fullscreen",i[6]),F(e,"invisible",i[1])},m(k,g){S(k,e,g),L(t,e,null),p(e,o),p(e,r),i[23](r),p(e,l),p(e,a),i[24](a),s=!0,u||(c=[de(e,"mousemove",ut(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)&&F(r,"hidden",k[1]),(!s||g[0]&16)&&F(a,"paused",k[4]),(!s||g[0]&4)&&F(e,"mobile",k[2]),(!s||g[0]&64)&&F(e,"fullscreen",k[6]),(!s||g[0]&2)&&F(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),R(t),i[23](null),i[24](null),u=!1,ot(c)}}}function a3(i,e,t){var Q;let n,o,r,l,a,s,{ref:u=void 0}=e,c,m=lt(),h=Qn(),{interactiveControlsOpacity$:k}=h;H(i,k,Ce=>t(18,o=Ce));let g=m.ui.isMobile;H(i,g,Ce=>t(2,a=Ce));let w=m.ui.isFullscreen;H(i,w,Ce=>t(6,s=Ce));let y=m.state.isInteractiveTime$;H(i,y,Ce=>t(19,r=Ce));let P=h.showInteractiveTimeIndicatorTooltip$;H(i,P,Ce=>t(17,n=Ce));let v=m.ui.controlsVisible;H(i,v,Ce=>t(20,l=Ce));let b=(Q=m.callbacks)==null?void 0:Q.onInteractiveTimeIndicatorClick,I,N,M,O=()=>{t(4,M=!0)},re=()=>{ae(),c==null||c.addEventListener("animationiteration",O,{once:!0})},ae=()=>{t(4,M=!1),c==null||c.removeEventListener("animationiteration",O)},Y=Ce=>{P.set(Ce)},ee,A=()=>{N||(P.set(!0),b==null||b())};Zn(()=>{P.clearTimeout(),ae()});let x=()=>{P.set(!1)};function Z(Ce){Fn.call(this,i,Ce)}function z(Ce){u=Ce,t(0,u)}function U(Ce){pe[Ce?"unshift":"push"](()=>{u=Ce,t(0,u)})}function V(Ce){pe[Ce?"unshift":"push"](()=>{c=Ce,t(3,c)})}return i.$$set=Ce=>{"ref"in Ce&&t(0,u=Ce.ref)},i.$$.update=()=>{if(i.$$.dirty[0]&1048580)e:t(16,I=!a&&l);if(i.$$.dirty[0]&851968)e:t(1,N=!r||!!o||I);if(i.$$.dirty[0]&2)e:t(4,M=N);if(i.$$.dirty[0]&131074)e:t(5,ee=n&&!N);if(i.$$.dirty[0]&131072)e:n?re():ae()},[u,N,a,c,M,ee,s,k,g,w,y,P,v,Y,A,x,I,n,o,r,l,Z,z,U,V]}var Yu=class extends j{constructor(e){super(),G(this,e,a3,s3,K,{ref:0},l3,[-1,-1])}},ms=Yu;function f3(i){Te(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 Km(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 jm(i){let e,t,n;function o(l){i[173](l)}let r={disabled:!i[9],tooltipContent:W("tooltip_previous"),$$slots:{default:[c3]},$$scope:{ctx:i}};return i[23].prevButton!==void 0&&(r.ref=i[23].prevButton),e=new zt({props:r}),pe.push(()=>qe(e,"ref",o)),{c(){B(e.$$.fragment)},m(l,a){L(e,l,a),n=!0},p(l,a){let s={};a[0]&512&&(s.disabled=!l[9]),a[0]&4608|a[6]&1073741824&&(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){R(e,l)}}}function c3(i){let e,t;return e=new Sl({props:{click:i[12],type:"prev",disabled:!i[9],isMobile:!1}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&4096&&(r.click=n[12]),o[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){R(e,n)}}}function Wm(i){let e,t,n;function o(l){i[174](l)}let r={disabled:i[74],tooltipContent:W("tooltip_restart"),$$slots:{default:[d3]},$$scope:{ctx:i}};return i[23].replayButton!==void 0&&(r.ref=i[23].replayButton),e=new zt({props:r}),pe.push(()=>qe(e,"ref",o)),{c(){B(e.$$.fragment)},m(l,a){L(e,l,a),n=!0},p(l,a){let s={};a[2]&4096&&(s.disabled=l[74]),a[2]&4096|a[6]&1073741824&&(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){R(e,l)}}}function d3(i){let e,t;return e=new Yl({props:{click:i[128],disabled:i[74]}}),{c(){B(e.$$.fragment)},m(n,o){L(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){R(e,n)}}}function Gm(i){let e,t,n;function o(l){i[176](l)}let r={tooltipContent:i[47],disabled:i[75],$$slots:{default:[m3]},$$scope:{ctx:i}};return i[23].playButton!==void 0&&(r.ref=i[23].playButton),e=new zt({props:r}),pe.push(()=>qe(e,"ref",o)),{c(){B(e.$$.fragment)},m(l,a){L(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[6]&1073741824&&(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){R(e,l)}}}function m3(i){let e,t,n;function o(l){i[175](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 Ql({props:r}),pe.push(()=>qe(e,"ref",o)),{c(){B(e.$$.fragment)},m(l,a){L(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){R(e,l)}}}function Qm(i){let e,t,n;function o(l){i[177](l)}let r={disabled:!i[8],tooltipContent:W("tooltip_next"),$$slots:{default:[p3]},$$scope:{ctx:i}};return i[23].nextButton!==void 0&&(r.ref=i[23].nextButton),e=new zt({props:r}),pe.push(()=>qe(e,"ref",o)),{c(){B(e.$$.fragment)},m(l,a){L(e,l,a),n=!0},p(l,a){let s={};a[0]&256&&(s.disabled=!l[8]),a[0]&2304|a[6]&1073741824&&(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){R(e,l)}}}function p3(i){let e,t;return e=new Sl({props:{click:i[11],type:"next",disabled:!i[8],isMobile:!1}}),{c(){B(e.$$.fragment)},m(n,o){L(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){R(e,n)}}}function _3(i){let e,t,n,o,r=i[121]&&h3(i),l=i[120]&&b3(i),a=i[119]&&y3(i);return{c(){r&&r.c(),e=q(),l&&l.c(),t=q(),a&&a.c(),n=ct()},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 h3(i){let e,t,n;function o(l){i[178](l)}let r={disabled:i[73],tooltipContent:W("tooltip_interactive_go_back"),disabledTooltipContent:W(i[124]),$$slots:{default:[g3]},$$scope:{ctx:i}};return i[23].playPrevChapterButton!==void 0&&(r.ref=i[23].playPrevChapterButton),e=new zt({props:r}),pe.push(()=>qe(e,"ref",o)),{c(){B(e.$$.fragment)},m(l,a){L(e,l,a),n=!0},p(l,a){let s={};a[2]&2048&&(s.disabled=l[73]),a[0]&131072|a[2]&2048|a[6]&1073741824&&(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){R(e,l)}}}function g3(i){let e,t;return e=new os({props:{disabled:i[73],click:i[17]}}),{c(){B(e.$$.fragment)},m(n,o){L(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){R(e,n)}}}function b3(i){let e,t,n;function o(l){i[179](l)}let r={disabled:i[76],tooltipContent:W("tooltip_interactive_seek"),disabledTooltipContent:W(i[78]),$$slots:{default:[v3]},$$scope:{ctx:i}};return i[23].seekToInteractiveButton!==void 0&&(r.ref=i[23].seekToInteractiveButton),e=new zt({props:r}),pe.push(()=>qe(e,"ref",o)),{c(){B(e.$$.fragment)},m(l,a){L(e,l,a),n=!0},p(l,a){let s={};a[2]&16384&&(s.disabled=l[76]),a[2]&65536&&(s.disabledTooltipContent=W(l[78])),a[0]&32768|a[2]&16384|a[6]&1073741824&&(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){R(e,l)}}}function v3(i){let e,t;return e=new ts({props:{disabled:i[76],click:i[15]}}),{c(){B(e.$$.fragment)},m(n,o){L(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){R(e,n)}}}function y3(i){let e,t,n;function o(l){i[180](l)}let r={tooltipContent:i[48],disabled:i[77],$$slots:{default:[w3]},$$scope:{ctx:i}};return i[23].interactiveGraphButton!==void 0&&(r.ref=i[23].interactiveGraphButton),e=new zt({props:r}),pe.push(()=>qe(e,"ref",o)),{c(){B(e.$$.fragment)},m(l,a){L(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[6]&1073741824&&(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){R(e,l)}}}function w3(i){let e,t;return e=new is({props:{click:i[16],graphIsOpened:i[31],disabled:i[77]}}),{c(){B(e.$$.fragment)},m(n,o){L(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){R(e,n)}}}function Ym(i){let e,t,n;function o(l){i[181](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 zt({props:r}),pe.push(()=>qe(e,"ref",o)),{c(){B(e.$$.fragment)},m(l,a){L(e,l,a),n=!0},p(l,a){let s={};a[1]&524288&&(s.tooltipContent=l[50]),a[0]&2097152|a[1]&524288|a[6]&1073741824&&(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){R(e,l)}}}function k3(i){let e,t;return e=new Xr({props:{isActiveLive:i[21],isMobile:!1,ariaLabel:i[50]}}),{c(){B(e.$$.fragment)},m(n,o){L(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){R(e,n)}}}function Zm(i){let e,t,n;function o(l){i[182](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 zr({props:r}),pe.push(()=>qe(e,"ref",o)),{c(){B(e.$$.fragment)},m(l,a){L(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){R(e,l)}}}function Xm(i){let e,t;return e=new es({props:{position:i[80],duration:i[82],timeCodes:i[101]}}),{c(){B(e.$$.fragment)},m(n,o){L(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){R(e,n)}}}function C3(i){let e,t,n=i[20]&&Xm(i);return{c(){n&&n.c(),e=ct()},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=Xm(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ue(),_(n,1,1,()=>{n=null}),fe())},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&C(e),n&&n.d(o)}}}function S3(i){var n;let e,t;return e=new ls({props:{iconUrl:i[209],ariaLabel:(n=i[210])!=null?n:i[213],testId:i[211],onClick:i[212]}}),{c(){B(e.$$.fragment)},m(o,r){L(e,o,r),t=!0},p(o,r){var a;let l={};r[0]&268435456&&(l.iconUrl=o[209]),r[0]&268435456&&(l.ariaLabel=(a=o[210])!=null?a:o[213]),r[0]&268435456&&(l.testId=o[211]),r[0]&268435456&&(l.onClick=o[212]),e.$set(l)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){_(e.$$.fragment,o),t=!1},d(o){R(e,o)}}}function Jm(i){let e,t;return e=new zt({props:{tooltipContent:i[213],width:40,$$slots:{default:[S3]},$$scope:{ctx:i}}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&268435456&&(r.tooltipContent=n[213]),o[0]&268435456|o[6]&1073741824&&(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){R(e,n)}}}function xm(i){let e,t,n;function o(l){i[185](l)}let r={disabled:!i[6],tooltipContent:i[51],disabledTooltipContent:"",$$slots:{default:[T3]},$$scope:{ctx:i}};return i[23].vkLogo!==void 0&&(r.ref=i[23].vkLogo),e=new zt({props:r}),pe.push(()=>qe(e,"ref",o)),{c(){B(e.$$.fragment)},m(l,a){L(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[6]&1073741824&&(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){R(e,l)}}}function T3(i){let e,t;return e=new Qr({props:{click:i[86],targetUrl:i[7],logoClickable:i[6]}}),{c(){B(e.$$.fragment)},m(n,o){L(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){R(e,n)}}}function P3(i){let e,t;return e=new rm({props:{click:i[127]}}),{c(){B(e.$$.fragment)},m(n,o){L(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){R(e,n)}}}function $m(i){let e,t,n;function o(l){i[187](l)}let r={tooltipContent:i[52],$$slots:{default:[I3]},$$scope:{ctx:i}};return i[23].subtitles!==void 0&&(r.ref=i[23].subtitles),e=new zt({props:r}),pe.push(()=>qe(e,"ref",o)),{c(){B(e.$$.fragment)},m(l,a){L(e,l,a),n=!0},p(l,a){let s={};a[1]&2097152&&(s.tooltipContent=l[52]),a[0]&262144|a[6]&1073741824&&(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){R(e,l)}}}function I3(i){let e,t;return e=new Kd({props:{isSubtitlesEnabled:i[18],click:i[87]}}),{c(){B(e.$$.fragment)},m(n,o){L(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){R(e,n)}}}function e0(i){var a;let e,t,n,o;function r(s){i[188](s)}let l={supportLink:i[10],playerControlsHeight:(a=i[46])==null?void 0:a.clientHeight,returnFocus:i[14]};return i[24]!==void 0&&(l.ref=i[24]),t=new Hr({props:l}),pe.push(()=>qe(t,"ref",r)),{c(){e=T("div"),B(t.$$.fragment),f(e,"class","settings-menu svelte-st0uzk")},m(s,u){S(s,e,u),L(t,e,null),o=!0},p(s,u){var m;let c={};u[0]&1024&&(c.supportLink=s[10]),u[1]&32768&&(c.playerControlsHeight=(m=s[46])==null?void 0:m.clientHeight),u[0]&16384&&(c.returnFocus=s[14]),!n&&u[0]&16777216&&(n=!0,c.ref=s[24],Ne(()=>n=!1)),t.$set(c)},i(s){o||(d(t.$$.fragment,s),o=!0)},o(s){_(t.$$.fragment,s),o=!1},d(s){s&&C(e),R(t)}}}function t0(i){let e,t,n;function o(l){i[190](l)}let r={tooltipContent:i[27]?void 0:W("tooltip_settings_off"),$$slots:{default:[E3]},$$scope:{ctx:i}};return i[23].settings!==void 0&&(r.ref=i[23].settings),e=new zt({props:r}),pe.push(()=>qe(e,"ref",o)),{c(){B(e.$$.fragment)},m(l,a){L(e,l,a),n=!0},p(l,a){let s={};a[0]&134217728&&(s.tooltipContent=l[27]?void 0:W("tooltip_settings_off")),a[0]&33554432|a[6]&1073741824&&(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){R(e,l)}}}function E3(i){let e,t,n;function o(l){i[189](l)}let r={};return i[25]!==void 0&&(r.ref=i[25]),e=new Wl({props:r}),pe.push(()=>qe(e,"ref",o)),{c(){B(e.$$.fragment)},m(l,a){L(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){R(e,l)}}}function A3(i){let e,t,n;function o(l){i[191](l)}let r={className:i[41]?"":"out-of-view",tooltipContent:i[49],$$slots:{default:[M3]},$$scope:{ctx:i}};return i[23].context!==void 0&&(r.ref=i[23].context),e=new zt({props:r}),pe.push(()=>qe(e,"ref",o)),{c(){B(e.$$.fragment)},m(l,a){L(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[6]&1073741824&&(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){R(e,l)}}}function M3(i){let e,t;return e=new Um({props:{ariaLabel:i[49]}}),{c(){B(e.$$.fragment)},m(n,o){L(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){R(e,n)}}}function i0(i){let e,t,n;function o(l){i[192](l)}let r={tooltipContent:i[53],$$slots:{default:[V3]},$$scope:{ctx:i}};return i[23].fullscreen!==void 0&&(r.ref=i[23].fullscreen),e=new zt({props:r}),pe.push(()=>qe(e,"ref",o)),{c(){B(e.$$.fragment)},m(l,a){L(e,l,a),n=!0},p(l,a){let s={};a[1]&4194304&&(s.tooltipContent=l[53]),a[0]&1073750016|a[6]&1073741824&&(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){R(e,l)}}}function V3(i){let e,t;return e=new Wr({props:{click:i[13],isFullscreen:i[30]}}),{c(){B(e.$$.fragment)},m(n,o){L(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){R(e,n)}}}function n0(i){let e,t,n;function o(l){i[193](l)}let r={tooltipContent:i[54],$$slots:{default:[L3]},$$scope:{ctx:i}};return i[23].chromecast!==void 0&&(r.ref=i[23].chromecast),e=new zt({props:r}),pe.push(()=>qe(e,"ref",o)),{c(){B(e.$$.fragment)},m(l,a){L(e,l,a),n=!0},p(l,a){let s={};a[1]&8388608&&(s.tooltipContent=l[54]),a[0]&536870912|a[6]&1073741824&&(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){R(e,l)}}}function L3(i){let e,t;return e=new Yr({props:{isMobile:!1,state:i[29],click:i[126]}}),{c(){B(e.$$.fragment)},m(n,o){L(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){R(e,n)}}}function R3(i){let e,t,n;function o(l){i[196](l)}let r={};return i[23].interactiveTimeIndicator!==void 0&&(r.ref=i[23].interactiveTimeIndicator),e=new ms({props:r}),pe.push(()=>qe(e,"ref",o)),{c(){B(e.$$.fragment)},m(l,a){L(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){R(e,l)}}}function B3(i){let e,t,n,o,r,l,a,s,u,c,m,h,k,g,w,y,P,v,b,I,N,M,O,re,ae,Y,ee,A,x,Z;t=new $r({props:{isHidden:!i[45],isAds:i[4],canRewindLive:i[5],isRewindableLive:i[32]}});let z=i[38]&&jm(i),U=i[35]&&Wm(i),V=i[36]&&Gm(i),Q=i[37]&&Qm(i),Ce=i[117]&&_3(i),Fe=!i[4]&&i[33]&&Ym(i),Ze=i[19]&&Zm(i);function et(me){i[183](me)}let xe={className:"w-max",disabled:!i[20],tooltipContent:W("tooltip_episodes"),$$slots:{default:[C3]},$$scope:{ctx:i}};i[23].episodes!==void 0&&(xe.ref=i[23].episodes),k=new zt({props:xe}),pe.push(()=>qe(k,"ref",et));let ye=It(i[28]),X=[];for(let me=0;me<ye.length;me+=1)X[me]=Jm(Km(i,ye,me));let ke=me=>_(X[me],1,1,()=>{X[me]=null}),Ge=i[43]&&!i[4]&&xm(i);function tt(me){i[186](me)}let rt={$$slots:{default:[P3]},$$scope:{ctx:i}};i[23].volume!==void 0&&(rt.ref=i[23].volume),I=new zt({props:rt}),pe.push(()=>qe(I,"ref",tt));let we=i[40]&&$m(i),De=!i[83]&&!i[4]&&e0(i),Je=i[42]&&!i[4]&&t0(i),st=i[84].features.contextMenuButton&&A3(i),Se=i[44]&&i0(i),se=i[39]&&n0(i),We=i[122]&&R3(i);return{c(){e=T("div"),B(t.$$.fragment),n=q(),o=T("div"),r=T("div"),z&&z.c(),l=q(),U&&U.c(),a=q(),V&&V.c(),s=q(),Q&&Q.c(),u=q(),Ce&&Ce.c(),c=q(),Fe&&Fe.c(),m=q(),Ze&&Ze.c(),h=q(),B(k.$$.fragment),y=q(),P=T("div");for(let me=0;me<X.length;me+=1)X[me].c();v=q(),Ge&&Ge.c(),b=q(),B(I.$$.fragment),M=q(),we&&we.c(),O=q(),De&&De.c(),re=q(),Je&&Je.c(),ae=q(),st&&st.c(),Y=q(),Se&&Se.c(),ee=q(),se&&se.c(),A=q(),We&&We.c(),x=ct(),f(r,"class","controls-left svelte-st0uzk"),Jn(()=>i[184].call(r)),f(P,"class","controls-right svelte-st0uzk"),f(o,"class","controls svelte-st0uzk"),f(e,"class","wrapper-bottom svelte-st0uzk"),F(e,"hidden",i[1]),F(e,"controls-hidden",!i[3]),F(e,"no-smooth",i[2])},m(me,Ie){S(me,e,Ie),L(t,e,null),p(e,n),p(e,o),p(o,r),z&&z.m(r,null),p(r,l),U&&U.m(r,null),p(r,a),V&&V.m(r,null),p(r,s),Q&&Q.m(r,null),p(r,u),Ce&&Ce.m(r,null),p(r,c),Fe&&Fe.m(r,null),p(r,m),Ze&&Ze.m(r,null),p(r,h),L(k,r,null),w=nl(r,i[184].bind(r)),p(o,y),p(o,P);for(let Oe=0;Oe<X.length;Oe+=1)X[Oe]&&X[Oe].m(P,null);p(P,v),Ge&&Ge.m(P,null),p(P,b),L(I,P,null),p(P,M),we&&we.m(P,null),p(P,O),De&&De.m(P,null),p(P,re),Je&&Je.m(P,null),p(P,ae),st&&st.m(P,null),p(P,Y),Se&&Se.m(P,null),p(P,ee),se&&se.m(P,null),i[194](o),i[195](e),S(me,A,Ie),We&&We.m(me,Ie),S(me,x,Ie),Z=!0},p(me,Ie){let Oe={};Ie[1]&16384&&(Oe.isHidden=!me[45]),Ie[0]&16&&(Oe.isAds=me[4]),Ie[0]&32&&(Oe.canRewindLive=me[5]),Ie[1]&2&&(Oe.isRewindableLive=me[32]),t.$set(Oe),me[38]?z?(z.p(me,Ie),Ie[1]&128&&d(z,1)):(z=jm(me),z.c(),d(z,1),z.m(r,l)):z&&(ue(),_(z,1,1,()=>{z=null}),fe()),me[35]?U?(U.p(me,Ie),Ie[1]&16&&d(U,1)):(U=Wm(me),U.c(),d(U,1),U.m(r,a)):U&&(ue(),_(U,1,1,()=>{U=null}),fe()),me[36]?V?(V.p(me,Ie),Ie[1]&32&&d(V,1)):(V=Gm(me),V.c(),d(V,1),V.m(r,s)):V&&(ue(),_(V,1,1,()=>{V=null}),fe()),me[37]?Q?(Q.p(me,Ie),Ie[1]&64&&d(Q,1)):(Q=Qm(me),Q.c(),d(Q,1),Q.m(r,u)):Q&&(ue(),_(Q,1,1,()=>{Q=null}),fe()),me[117]&&Ce.p(me,Ie),!me[4]&&me[33]?Fe?(Fe.p(me,Ie),Ie[0]&16|Ie[1]&4&&d(Fe,1)):(Fe=Ym(me),Fe.c(),d(Fe,1),Fe.m(r,m)):Fe&&(ue(),_(Fe,1,1,()=>{Fe=null}),fe()),me[19]?Ze?(Ze.p(me,Ie),Ie[0]&524288&&d(Ze,1)):(Ze=Zm(me),Ze.c(),d(Ze,1),Ze.m(r,h)):Ze&&(ue(),_(Ze,1,1,()=>{Ze=null}),fe());let ce={};if(Ie[0]&1048576&&(ce.disabled=!me[20]),Ie[0]&1048576|Ie[2]&1310720|Ie[6]&1073741824&&(ce.$$scope={dirty:Ie,ctx:me}),!g&&Ie[0]&8388608&&(g=!0,ce.ref=me[23].episodes,Ne(()=>g=!1)),k.$set(ce),Ie[0]&268435456){ye=It(me[28]);let $e;for($e=0;$e<ye.length;$e+=1){let pt=Km(me,ye,$e);X[$e]?(X[$e].p(pt,Ie),d(X[$e],1)):(X[$e]=Jm(pt),X[$e].c(),d(X[$e],1),X[$e].m(P,v))}for(ue(),$e=ye.length;$e<X.length;$e+=1)ke($e);fe()}me[43]&&!me[4]?Ge?(Ge.p(me,Ie),Ie[0]&16|Ie[1]&4096&&d(Ge,1)):(Ge=xm(me),Ge.c(),d(Ge,1),Ge.m(P,b)):Ge&&(ue(),_(Ge,1,1,()=>{Ge=null}),fe());let Qe={};Ie[6]&1073741824&&(Qe.$$scope={dirty:Ie,ctx:me}),!N&&Ie[0]&8388608&&(N=!0,Qe.ref=me[23].volume,Ne(()=>N=!1)),I.$set(Qe),me[40]?we?(we.p(me,Ie),Ie[1]&512&&d(we,1)):(we=$m(me),we.c(),d(we,1),we.m(P,O)):we&&(ue(),_(we,1,1,()=>{we=null}),fe()),!me[83]&&!me[4]?De?(De.p(me,Ie),Ie[0]&16|Ie[2]&2097152&&d(De,1)):(De=e0(me),De.c(),d(De,1),De.m(P,re)):De&&(ue(),_(De,1,1,()=>{De=null}),fe()),me[42]&&!me[4]?Je?(Je.p(me,Ie),Ie[0]&16|Ie[1]&2048&&d(Je,1)):(Je=t0(me),Je.c(),d(Je,1),Je.m(P,ae)):Je&&(ue(),_(Je,1,1,()=>{Je=null}),fe()),me[84].features.contextMenuButton&&st.p(me,Ie),me[44]?Se?(Se.p(me,Ie),Ie[1]&8192&&d(Se,1)):(Se=i0(me),Se.c(),d(Se,1),Se.m(P,ee)):Se&&(ue(),_(Se,1,1,()=>{Se=null}),fe()),me[39]?se?(se.p(me,Ie),Ie[1]&256&&d(se,1)):(se=n0(me),se.c(),d(se,1),se.m(P,null)):se&&(ue(),_(se,1,1,()=>{se=null}),fe()),(!Z||Ie[0]&2)&&F(e,"hidden",me[1]),(!Z||Ie[0]&8)&&F(e,"controls-hidden",!me[3]),(!Z||Ie[0]&4)&&F(e,"no-smooth",me[2]),me[122]&&We.p(me,Ie)},i(me){if(!Z){d(t.$$.fragment,me),d(z),d(U),d(V),d(Q),d(Ce),d(Fe),d(Ze),d(k.$$.fragment,me);for(let Ie=0;Ie<ye.length;Ie+=1)d(X[Ie]);d(Ge),d(I.$$.fragment,me),d(we),d(De),d(Je),d(st),d(Se),d(se),d(We),Z=!0}},o(me){_(t.$$.fragment,me),_(z),_(U),_(V),_(Q),_(Ce),_(Fe),_(Ze),_(k.$$.fragment,me),X=X.filter(Boolean);for(let Ie=0;Ie<X.length;Ie+=1)_(X[Ie]);_(Ge),_(I.$$.fragment,me),_(we),_(De),_(Je),_(st),_(Se),_(se),_(We),Z=!1},d(me){me&&(C(e),C(A),C(x)),R(t),z&&z.d(),U&&U.d(),V&&V.d(),Q&&Q.d(),Ce&&Ce.d(),Fe&&Fe.d(),Ze&&Ze.d(),R(k),w(),Li(X,me),Ge&&Ge.d(),R(I),we&&we.d(),De&&De.d(),Je&&Je.d(),st&&st.d(),Se&&Se.d(),se&&se.d(),i[194](null),i[195](null),We&&We.d(me)}}}function D3(i,e,t){var Uf,Kf;let n,o,r,l,a,s,u,c,m,h,k,g,w,y,P,v,b,I,N,M,O,re,ae,Y,ee,A,x,Z,z,U,V,Q,Ce=_e,Fe=()=>(Ce(),Ce=$t(ae,te=>t(144,Q=te)),ae),Ze,et=_e,xe=()=>(et(),et=$t(re,te=>t(145,Ze=te)),re),ye,X=_e,ke=()=>(X(),X=$t(O,te=>t(146,ye=te)),O),Ge,tt=_e,rt=()=>(tt(),tt=$t(M,te=>t(147,Ge=te)),M),we,De=_e,Je=()=>(De(),De=$t(N,te=>t(148,we=te)),N),st,Se=_e,se=()=>(Se(),Se=$t(I,te=>t(149,st=te)),I),We,me=_e,Ie=()=>(me(),me=$t(b,te=>t(150,We=te)),b),Oe,ce=_e,Qe=()=>(ce(),ce=$t(v,te=>t(151,Oe=te)),v),$e,pt=_e,bt=()=>(pt(),pt=$t(P,te=>t(152,$e=te)),P),ve,Ct=_e,Lt=()=>(Ct(),Ct=$t(y,te=>t(153,ve=te)),y),St,ze=_e,Ut=()=>(ze(),ze=$t(w,te=>t(154,St=te)),w),Rt,Et=_e,oi=()=>(Et(),Et=$t(g,te=>t(155,Rt=te)),g),Nt,Kt=_e,he=()=>(Kt(),Kt=$t(k,te=>t(156,Nt=te)),k),Ke,ht=_e,dt=()=>(ht(),ht=$t(h,te=>t(157,Ke=te)),h),Xe,Bt=_e,Xt=()=>(Bt(),Bt=$t(m,te=>t(158,Xe=te)),m),qt,Qi=_e,fn=()=>(Qi(),Qi=$t(c,te=>t(159,qt=te)),c),ui,Bi=_e,yn=()=>(Bi(),Bi=$t(u,te=>t(160,ui=te)),u),Di,cn,gi,Ni,fi,Ti,Pi,Ii,li,jt,ti,Ei,Yi,Ai,bi,Zi,wt,Xi,Pt,qi,Ji,xi,ii;i.$$.on_destroy.push(()=>Ce()),i.$$.on_destroy.push(()=>et()),i.$$.on_destroy.push(()=>X()),i.$$.on_destroy.push(()=>tt()),i.$$.on_destroy.push(()=>De()),i.$$.on_destroy.push(()=>Se()),i.$$.on_destroy.push(()=>me()),i.$$.on_destroy.push(()=>ce()),i.$$.on_destroy.push(()=>pt()),i.$$.on_destroy.push(()=>Ct()),i.$$.on_destroy.push(()=>ze()),i.$$.on_destroy.push(()=>Et()),i.$$.on_destroy.push(()=>Kt()),i.$$.on_destroy.push(()=>ht()),i.$$.on_destroy.push(()=>Bt()),i.$$.on_destroy.push(()=>Qi()),i.$$.on_destroy.push(()=>Bi());let{bottomHidden:vi}=e,{bottomNoSmooth:yi}=e,{showControls:wi}=e,{controlsElementRef:ci=void 0}=e,{isAds:Ht=!1}=e,{canRewindLive:Mi}=e,{logoClickable:Oi}=e,{logoHidden:ri}=e,{logoTargetUrl:si=""}=e,{showNextPrevButtons:di}=e,{nextButtonActive:$i}=e,{prevButtonActive:wn}=e,{isOneVideoPlaylist:dn=!1}=e,{supportLink:en}=e,{customFullscreenSupported:Fi=!0}=e,{playNextVideo:Jt}=e,{playPrevVideo:Wt}=e,{repeatPlaylist:Yt}=e,{toggleFullscreen:Hi}=e,{returnFocus:zi}=e,{seekToInteractive:mn}=e,{toggleGraph:Ui}=e,{playPrevChapter:Ki}=e,nt=lt(),mi=Qn(),ai=Qt(),Ue=nt.actions.internal.toggleMuted,tn=nt.actions.internal.togglePlay,pn=nt.actions.internal.pause,nn=nt.actions.internal.toggleSubtitle,on=(Uf=nt.callbacks)==null?void 0:Uf.onAudioDoesNotExistHint,ln=(Kf=nt.callbacks)==null?void 0:Kf.onAudioDisabledHint,rn=nt.state.duration$;H(i,rn,te=>t(82,xi=te));let _n=nt.state.positionWithScrubbing$;H(i,_n,te=>t(80,qi=te));let kn=nt.state.playbackState$;H(i,kn,te=>t(161,gi=te));let xt=nt.state.chromecastConnected$;H(i,xt,te=>t(83,ii=te));let ji=nt.state.isAudioAvailable$;H(i,ji,te=>t(197,Y=te));let En=nt.state.isAudioDisabled,Bn=nt.state.isEnded$;H(i,Bn,te=>t(169,Ai=te));let Wi=nt.state.isLive$;H(i,Wi,te=>t(33,Ii=te));let An=nt.state.isActiveLive$;H(i,An,te=>t(163,Ti=te));let Cn=nt.state.isRewindableLive$;H(i,Cn,te=>t(32,Pi=te));let pi=nt.ui.isPictureInPictureActive$;H(i,pi,te=>t(165,jt=te));let ni=nt.ui.pictureInPictureType$;H(i,ni,te=>t(164,li=te));let sn=nt.ui.settingsMenuVisible;H(i,sn,te=>t(27,x=te));let Dn=nt.ui.settingsMenuOpenedByKeyboard;H(i,Dn,te=>t(140,A=te));let Mn=nt.ui.controls,Zt=nt.actions.internal.getVideoEpisodes(),Kn=nt.state.chromecastState$;H(i,Kn,te=>t(29,Di=te));let jn=nt.state.availableSubtitlesList$;H(i,jn,te=>t(168,Yi=te));let Nn=nt.state.currentSubtitle$;H(i,Nn,te=>t(170,bi=te));let Vn=Mn.disabledControls$;H(i,Vn,te=>t(172,wt=te));let hn=nt.ui.contextMenu.visible$;H(i,hn,te=>t(162,Ni=te));let qn=nt.ui.contextMenu.showContextMenuBtn$;H(i,qn,te=>t(166,ti=te));let an=nt.ui.contextMenu.openedByBtnKeyboard$;H(i,an,te=>t(167,Ei=te));let gn=nt.ui.startedByKeyboard$;H(i,gn,te=>t(139,ee=te));let Sn=nt.ads.duration;H(i,Sn,te=>t(81,Ji=te));let ie=nt.ads.position;H(i,ie,te=>t(79,Pt=te));let $=nt.ads.playbackState;H(i,$,te=>t(171,Zi=te));let _t=nt.ui.isFullscreen;H(i,_t,te=>t(30,cn=te));let Gt=nt.ui.playerSize;H(i,Gt,te=>t(142,z=te));let Tn=nt.ui.currentGridType$;H(i,Tn,te=>t(143,U=te));let _i=nt.ui.additionalButtons$;H(i,_i,te=>t(28,V=te));let On=nt.actions.internal.getVideoElement,eo=nt.actions.internal.replayInteractive,Ln=nt.state.isInteractive,ne=nt.state.isInteractiveTime$;H(i,ne,te=>t(141,Z=te));let Io=nt.state.showInteractiveGraph,Rl=nt.state.showSeekToInteractive,Bl=nt.state.showPlayPrevChapter,Eo=nt.state.showInteractiveTimeIndicator,Ao=nt.state.graphIsOpened$;H(i,Ao,te=>t(31,fi=te));let lo=nt.state.playPrevChapterDisabledTooltip,po=mi.seekToInteractiveDisabledTooltip$;H(i,po,te=>t(78,Xi=te));let xo=()=>nt.actions.internal.toggleChromecast(),$o,_o,el,Mo,ro,Vo,tl,Lo,J,At,Pn,bn,Wn,Gn,to,Ro,Bo,kt,Dl,Nl,ql,il="",E=(te,Ms)=>{if(!te){t(50,il=W("tooltip_live"));return}Ms===Jo.PlaybackState.PAUSED&&t(50,il=W("tooltip_play"))},oe,Pe,He,mt,Mt,je={},vt,hi,ho,er,tr=(0,o0.throttleFn)(cs,260,{leading:!1}),ir,nr,or;function w_(){ko({isAudioDisabled:En,audioDisabledHintCallback:ln,isAudioAvailable:Y,audioIsNotExistHintCallback:on})&&Ue()}let k_=Ln?eo:dn?tn:Yt;function C_(te){i.$$.not_equal(je.prevButton,te)&&(je.prevButton=te,t(23,je))}function S_(te){i.$$.not_equal(je.replayButton,te)&&(je.replayButton=te,t(23,je))}function T_(te){or=te,t(26,or)}function P_(te){i.$$.not_equal(je.playButton,te)&&(je.playButton=te,t(23,je))}function I_(te){i.$$.not_equal(je.nextButton,te)&&(je.nextButton=te,t(23,je))}function E_(te){i.$$.not_equal(je.playPrevChapterButton,te)&&(je.playPrevChapterButton=te,t(23,je))}function A_(te){i.$$.not_equal(je.seekToInteractiveButton,te)&&(je.seekToInteractiveButton=te,t(23,je))}function M_(te){i.$$.not_equal(je.interactiveGraphButton,te)&&(je.interactiveGraphButton=te,t(23,je))}function V_(te){i.$$.not_equal(je.liveButton,te)&&(je.liveButton=te,t(23,je))}function L_(te){i.$$.not_equal(je.time,te)&&(je.time=te,t(23,je))}function R_(te){i.$$.not_equal(je.episodes,te)&&(je.episodes=te,t(23,je))}function B_(){Mt=this.clientWidth,t(22,Mt)}function D_(te){i.$$.not_equal(je.vkLogo,te)&&(je.vkLogo=te,t(23,je))}function N_(te){i.$$.not_equal(je.volume,te)&&(je.volume=te,t(23,je))}function q_(te){i.$$.not_equal(je.subtitles,te)&&(je.subtitles=te,t(23,je))}function O_(te){ir=te,t(24,ir)}function F_(te){nr=te,t(25,nr)}function H_(te){i.$$.not_equal(je.settings,te)&&(je.settings=te,t(23,je))}function z_(te){i.$$.not_equal(je.context,te)&&(je.context=te,t(23,je))}function U_(te){i.$$.not_equal(je.fullscreen,te)&&(je.fullscreen=te,t(23,je))}function K_(te){i.$$.not_equal(je.chromecast,te)&&(je.chromecast=te,t(23,je))}function j_(te){pe[te?"unshift":"push"](()=>{Bo=te,t(46,Bo)})}function W_(te){pe[te?"unshift":"push"](()=>{ci=te,t(0,ci)})}function G_(te){i.$$.not_equal(je.interactiveTimeIndicator,te)&&(je.interactiveTimeIndicator=te,t(23,je))}i.$$set=te=>{"bottomHidden"in te&&t(1,vi=te.bottomHidden),"bottomNoSmooth"in te&&t(2,yi=te.bottomNoSmooth),"showControls"in te&&t(3,wi=te.showControls),"controlsElementRef"in te&&t(0,ci=te.controlsElementRef),"isAds"in te&&t(4,Ht=te.isAds),"canRewindLive"in te&&t(5,Mi=te.canRewindLive),"logoClickable"in te&&t(6,Oi=te.logoClickable),"logoHidden"in te&&t(129,ri=te.logoHidden),"logoTargetUrl"in te&&t(7,si=te.logoTargetUrl),"showNextPrevButtons"in te&&t(130,di=te.showNextPrevButtons),"nextButtonActive"in te&&t(8,$i=te.nextButtonActive),"prevButtonActive"in te&&t(9,wn=te.prevButtonActive),"isOneVideoPlaylist"in te&&t(131,dn=te.isOneVideoPlaylist),"supportLink"in te&&t(10,en=te.supportLink),"customFullscreenSupported"in te&&t(132,Fi=te.customFullscreenSupported),"playNextVideo"in te&&t(11,Jt=te.playNextVideo),"playPrevVideo"in te&&t(12,Wt=te.playPrevVideo),"repeatPlaylist"in te&&t(133,Yt=te.repeatPlaylist),"toggleFullscreen"in te&&t(13,Hi=te.toggleFullscreen),"returnFocus"in te&&t(14,zi=te.returnFocus),"seekToInteractive"in te&&t(15,mn=te.seekToInteractive),"toggleGraph"in te&&t(16,Ui=te.toggleGraph),"playPrevChapter"in te&&t(17,Ki=te.playPrevChapter)},i.$$.update=()=>{if(i.$$.dirty[5]&131072)e:t(138,n=wt.has("EPISODE_BUTTON"));if(i.$$.dirty[5]&131072)e:t(77,o=wt.has("GRAPH_BUTTON"));if(i.$$.dirty[5]&131072)e:t(76,r=wt.has("SEEK_TO_INTERACTIVE_BUTTON"));if(i.$$.dirty[5]&131072)e:t(75,l=wt.has("PLAY_BUTTON"));if(i.$$.dirty[5]&131072)e:t(74,a=wt.has("REPLAY_BUTTON"));if(i.$$.dirty[5]&131072)e:t(73,s=wt.has("PLAY_PREV_CHAPTER_BUTTON"));if(i.$$.dirty[0]&16|i.$$.dirty[5]&65600)e:t(34,$o=Ht?Zi==="playing":gi===Jo.PlaybackState.PLAYING);if(i.$$.dirty[5]&32768)e:t(18,_o=bi.value!=="off");if(i.$$.dirty[0]&16|i.$$.dirty[5]&16384)e:t(35,el=Ai&&!Ht||Ln);if(i.$$.dirty[0]&16|i.$$.dirty[5]&16384)e:t(36,Mo=!Ai||Ln||Ht);if(i.$$.dirty[4]&524288)e:t(134,ro=Un(U,"m"));if(i.$$.dirty[0]&272|i.$$.dirty[4]&524352)e:t(37,Vo=di&&Un(U,"m")&&!Ht&&$i);if(i.$$.dirty[0]&528|i.$$.dirty[4]&524352)e:t(38,tl=di&&Un(U,"m")&&!Ht&&wn);if(i.$$.dirty[0]&536870912|i.$$.dirty[4]&524288|i.$$.dirty[5]&1536)e:t(39,Lo=Di!==Jo.ChromecastState.NOT_AVAILABLE&&!(jt&&li===1)&&Un(U,"m")&&!Ln);if(i.$$.dirty[4]&524288|i.$$.dirty[5]&8192)e:t(40,J=Yi.length>0&&Un(U,"m"));if(i.$$.dirty[5]&6144)e:t(41,At=Ei||ti);if(i.$$.dirty[4]&524288)e:t(42,Pn=Un(U,"s"));if(i.$$.dirty[4]&32)e:t(43,bn=!ri);if(i.$$.dirty[4]&524576|i.$$.dirty[5]&1536)e:t(44,Wn=ai.features.fullscreen&&(ri||Un(U,"s"))&&!(jt&&li===1)&&(Ln?Fi:!0));if(i.$$.dirty[0]&16|i.$$.dirty[1]&4)e:t(19,Gn=(!Ii||Ht)&&!(ai.features.interactiveHideTime&&Ln));if(i.$$.dirty[4]&262144)e:t(45,to=z.width>100);if(i.$$.dirty[0]&16|i.$$.dirty[1]&4|i.$$.dirty[4]&17408)e:t(20,Ro=!Ht&&!Ii&&!!(Zt!=null&&Zt.length)&&ro&&!n);if(i.$$.dirty[1]&2|i.$$.dirty[5]&256)e:t(21,kt=!Pi||Ti);if(i.$$.dirty[5]&64)e:t(47,Dl=gi===Jo.PlaybackState.PLAYING?W("tooltip_pause"):W("tooltip_play"));if(i.$$.dirty[1]&1)e:t(48,Nl=fi?W("tooltip_interactive_graph_on"):W("tooltip_interactive_graph_off"));if(i.$$.dirty[5]&128)e:t(49,ql=Ni?W("aria_label_context_menu_close"):W("aria_label_context_menu_open"));if(i.$$.dirty[0]&2097152|i.$$.dirty[5]&64)e:E(kt,gi);if(i.$$.dirty[0]&262144)e:t(52,Pe=_o?W("tooltip_subtitles_on"):W("tooltip_subtitles_off"));if(i.$$.dirty[0]&1073741824)e:t(53,He=cn?W("tooltip_fullscreen_on"):W("tooltip_fullscreen_off"));if(i.$$.dirty[0]&536870912)e:t(54,mt=Di===Jo.ChromecastState.CONNECTED?W("tooltip_chromecast_on"):W("tooltip_chromecast_off"));if(i.$$.dirty[0]&268435456|i.$$.dirty[4]&2146435072|i.$$.dirty[5]&63)e:t(135,vt={prevButton:ui?ui.right-ui.left:0,replayButton:qt?qt.right-qt.left:0,playButton:Xe?Xe.right-Xe.left:0,nextButton:Ke?Ke.right-Ke.left:0,playPrevChapterButton:Nt?Nt.right-Nt.left:0,seekToInteractiveButton:Rt?Rt.right-Rt.left:0,interactiveGraphButton:St?St.right-St.left:0,liveButton:ve?ve.right-ve.left:0,time:$e?$e.right-$e.left:0,episodes:Oe?Oe.right-Oe.left:0,vkLogo:We?We.right-We.left:0,volume:st?st.right-st.left:0,subtitles:we?we.right-we.left:0,settings:Ge?Ge.right-Ge.left:0,context:ye?ye.right-ye.left:0,fullscreen:Ze?Ze.right-Ze.left:0,chromecast:Q?Q.right-Q.left:0,additionalButtons:V.length?V.reduce(te=>[...te,40],[]):[]});if(i.$$.dirty[4]&6144)e:(!hi||hi<vt.time)&&t(136,hi=vt.time);if(i.$$.dirty[0]&5767168|i.$$.dirty[4]&530432)e:{let te=0;Ro&&(Un(U,"xl")?te=vt.time:te=60);let Ms=vt.prevButton+vt.playButton+vt.nextButton+vt.seekToInteractiveButton+vt.interactiveGraphButton+vt.liveButton+hi+te;t(137,ho=Gn&&Mt>=Ms)}if(i.$$.dirty[4]&532480)e:t(55,er=ho&&Un(U,"m"));if(i.$$.dirty[0]&8388616|i.$$.dirty[4]&393216)e:tr(On(),Mn,je,wi);if(i.$$.dirty[0]&167772160)e:hl(nr,x,Dn);if(i.$$.dirty[0]&150994944|i.$$.dirty[4]&65536)e:Qo(ir,x,A);if(i.$$.dirty[0]&67108864|i.$$.dirty[4]&32768)e:ds(gn,ee,or)};e:t(51,oe=ai.logoType==="vk_video"?W("tooltip_vk_video_logo"):W("tooltip_vk_logo"));e:yn(t(72,{prevButton:u,replayButton:c,playButton:m,nextButton:h,playPrevChapterButton:k,seekToInteractiveButton:g,interactiveGraphButton:w,liveButton:y,time:P,episodes:v,vkLogo:b,volume:I,subtitles:N,settings:M,context:O,fullscreen:re,chromecast:ae}=Mn,u,fn(t(71,c)),Xt(t(70,m)),dt(t(69,h)),he(t(68,k)),oi(t(67,g)),Ut(t(66,w)),Lt(t(65,y)),bt(t(64,P)),Qe(t(63,v)),Ie(t(62,b)),se(t(61,I)),Je(t(60,N)),rt(t(59,M)),ke(t(58,O)),xe(t(57,re)),Fe(t(56,ae))));return[ci,vi,yi,wi,Ht,Mi,Oi,si,$i,wn,en,Jt,Wt,Hi,zi,mn,Ui,Ki,_o,Gn,Ro,kt,Mt,je,ir,nr,or,x,V,Di,cn,fi,Pi,Ii,$o,el,Mo,Vo,tl,Lo,J,At,Pn,bn,Wn,to,Bo,Dl,Nl,ql,il,oe,Pe,He,mt,er,ae,re,O,M,N,I,b,v,P,y,w,g,k,h,m,c,u,s,a,l,r,o,Xi,Pt,qi,Ji,xi,ii,ai,tn,pn,nn,rn,_n,kn,xt,ji,Bn,Wi,An,Cn,pi,ni,sn,Dn,Zt,Kn,jn,Nn,Vn,hn,qn,an,gn,Sn,ie,$,_t,Gt,Tn,_i,Ln,ne,Io,Rl,Bl,Eo,Ao,lo,po,xo,w_,k_,ri,di,dn,Fi,Yt,ro,vt,hi,ho,n,ee,A,Z,z,U,Q,Ze,ye,Ge,we,st,We,Oe,$e,ve,St,Rt,Nt,Ke,Xe,qt,ui,gi,Ni,Ti,li,jt,ti,Ei,Yi,Ai,bi,Zi,wt,C_,S_,T_,P_,I_,E_,A_,M_,V_,L_,R_,B_,D_,N_,q_,O_,F_,H_,z_,U_,K_,j_,W_,G_]}var Zu=class extends j{constructor(e){super(),G(this,e,D3,B3,K,{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},f3,[-1,-1,-1,-1,-1,-1,-1])}},l0=Zu;var Pl=require("@vkontakte/videoplayer-core");function N3(i){let e,t,n,o,r,l=i[2].default,a=Ee(l,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"muted-icon"},{role:"img"},i[0]],u={};for(let c=0;c<s.length;c+=1)u=le(u,s[c]);return{c(){e=D("svg"),a&&a.c(),t=D("g"),n=D("path"),o=D("path"),f(n,"d","M0 0h24v24H0z"),f(o,"fill","#fff"),f(o,"d","M8.695 8.105 5.301 4.71a1 1 0 0 1 1.414-1.415L20.7 17.285a1 1 0 0 1-1.414 1.415L16 15.41V20a1 1 0 0 1-1 1c-.641 0-1.258-.25-1.72-.695L7.79 15H5a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h2.765zm2.88-2.77 1.704-1.642A2.48 2.48 0 0 1 15 3a1 1 0 0 1 1 1v5.76l-4.426-4.426Z"),f(t,"fill","none"),f(t,"fill-rule","evenodd"),be(e,u)},m(c,m){S(c,e,m),a&&a.m(e,null),p(e,t),p(t,n),p(t,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Me(a,l,c,c[1],r?Ae(l,c[1],m,null):Ve(c[1]),null),be(e,u=Re(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"muted-icon"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){_(a,c),r=!1},d(c){c&&C(e),a&&a.d(c)}}}function q3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Ju=class extends j{constructor(e){super(),G(this,e,q3,N3,K,{})}},r0=Ju;var a0=require("@vkontakte/videoplayer-shared");function O3(i){Te(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 s0(i){let e;return{c(){e=T("span"),e.textContent=`${W("mobile_unmute")}`,f(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=Rn(r,l(i)));let a=i[1]&&s0(i);return{c(){e=T("div"),t&&B(t.$$.fragment),n=q(),a&&a.c(),f(e,"class","container svelte-6gmlbk"),f(e,"aria-hidden","true"),F(e,"expanded",i[1])},m(s,u){S(s,e,u),t&&L(t,e,null),p(e,n),a&&a.m(e,null),o=!0},p(s,u){if(u&16&&r!==(r=s[4])){if(t){ue();let c=t;_(c.$$.fragment,1,0,()=>{R(c,1)}),fe()}r?(t=Rn(r,l(s)),B(t.$$.fragment),d(t.$$.fragment,1),L(t,e,n)):t=null}s[1]?a?a.p(s,u):(a=s0(s),a.c(),a.m(e,null)):a&&(a.d(1),a=null),(!o||u&2)&&F(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&&R(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 yt({props:r}),pe.push(()=>qe(e,"ref",o)),{c(){B(e.$$.fragment)},m(l,a){L(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){R(e,l)}}}function z3(i,e,t){let{muted:n=!1}=e,{expanded:o=!1}=e,{click:r=a0.noop}=e,{ref:l=void 0}=e,a,s;function u(c){l=c,t(0,l)}return i.$$set=c=>{"muted"in c&&t(5,n=c.muted),"expanded"in c&&t(1,o=c.expanded),"click"in c&&t(2,r=c.click),"ref"in c&&t(0,l=c.ref)},i.$$.update=()=>{if(i.$$.dirty&32)e:t(3,a=n?W("tooltip_volume"):W("tooltip_volume_muted"));if(i.$$.dirty&2)e:t(4,s=o?Xo:r0)},[l,o,r,a,s,n,u]}var xu=class extends j{constructor(e){super(),G(this,e,z3,H3,K,{muted:5,expanded:1,click:2,ref:0},O3)}},$u=xu;function U3(i){let e,t,n,o,r,l=i[2].default,a=Ee(l,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{role:"img"},i[0]],u={};for(let c=0;c<s.length;c+=1)u=le(u,s[c]);return{c(){e=D("svg"),a&&a.c(),t=D("path"),n=D("path"),o=D("path"),f(t,"fill","currentColor"),f(t,"d","M7.662 4h6.676c.808 0 1.469 0 2.006.044.556.045 1.058.142 1.526.381a3.9 3.9 0 0 1 1.705 1.704c.239.47.336.971.381 1.527C20 8.193 20 8.854 20 9.662V11.1a.9.9 0 0 1-1.8 0V9.7c0-.855 0-1.442-.038-1.897-.036-.445-.103-.684-.19-.856a2.1 2.1 0 0 0-.919-.918c-.172-.088-.411-.155-.856-.191C15.742 5.8 15.155 5.8 14.3 5.8H7.7c-.855 0-1.442 0-1.897.038-.445.036-.684.103-.856.19a2.1 2.1 0 0 0-.918.919c-.088.172-.155.411-.191.856C3.8 8.258 3.8 8.845 3.8 9.7v2.646c0 .855 0 1.442.038 1.897.036.445.103.683.19.856a2.1 2.1 0 0 0 .919.918c.172.088.411.155.856.191.455.037 1.042.038 1.897.038h2.4a.9.9 0 0 1 0 1.8H7.662c-.808 0-1.469 0-2.006-.044-.556-.045-1.058-.142-1.527-.381a3.9 3.9 0 0 1-1.704-1.704c-.239-.47-.336-.972-.381-1.527C2 13.852 2 13.192 2 12.384V9.662c0-.808 0-1.469.044-2.006.045-.556.142-1.058.381-1.527A3.9 3.9 0 0 1 4.13 4.425c.47-.239.971-.336 1.527-.381C6.193 4 6.854 4 7.662 4M13 16.8c0-.98 0-1.47.19-1.845a1.75 1.75 0 0 1 .766-.764C14.33 14 14.82 14 15.8 14h3.4c.98 0 1.47 0 1.845.19.329.168.596.436.764.766.191.374.191.864.191 1.844v.4c0 .98 0 1.47-.19 1.845a1.75 1.75 0 0 1-.765.764C20.67 20 20.18 20 19.2 20h-3.4c-.98 0-1.47 0-1.845-.19a1.75 1.75 0 0 1-.764-.765C13 18.67 13 18.18 13 17.2z"),f(t,"clip-rule","evenodd"),f(n,"fill","currentColor"),f(n,"d","m11.643 12.37-.007-.006L9.073 9.8H10.1a.9.9 0 1 0 0-1.8H6.9a.9.9 0 0 0-.9.9v3.2a.9.9 0 0 0 1.8 0v-1.022l2.53 2.524.134.134a.9.9 0 0 0 1.272-1.272z"),f(n,"class","hidden-not-active"),f(o,"fill","currentColor"),f(o,"d","m6.357 9.63.007.006L8.927 12.2H7.9a.9.9 0 1 0 0 1.8h3.2a.9.9 0 0 0 .9-.9V9.9a.9.9 0 0 0-1.8 0v1.022L7.67 8.397l-.134-.133a.9.9 0 0 0-1.272 1.272z"),f(o,"class","hidden-active"),be(e,u)},m(c,m){S(c,e,m),a&&a.m(e,null),p(e,t),p(e,n),p(e,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Me(a,l,c,c[1],r?Ae(l,c[1],m,null):Ve(c[1]),null),be(e,u=Re(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){_(a,c),r=!1},d(c){c&&C(e),a&&a.d(c)}}}function K3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var ef=class extends j{constructor(e){super(),G(this,e,K3,U3,K,{})}},u0=ef;function j3(i){Te(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 u0({props:{style:i[1],"data-testid":i[0]?"pip-icon--active":"pip-icon"}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let r={};o&2&&(r.style=n[1]),o&1&&(r["data-testid"]=n[0]?"pip-icon--active":"pip-icon"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(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 tf=class extends j{constructor(e){super(),G(this,e,G3,W3,K,{isActive:0},j3)}},f0=tf;var c0=require("@vkontakte/videoplayer-shared");function Q3(i){let e,t;return e=new f0({props:{isActive:i[1]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isActive=n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Y3(i){let e,t,n;function o(l){i[3](l)}let r={testId:"btn-pip",ariaLabel:W("menu_pip"),click:i[2],$$slots:{default:[Q3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new yt({props:r}),pe.push(()=>qe(e,"ref",o)),{c(){B(e.$$.fragment)},m(l,a){L(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){R(e,l)}}}function Z3(i,e,t){let{ref:n=void 0}=e,{isPictureInPictureActive:o=!1}=e,{click:r=c0.noop}=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 nf=class extends j{constructor(e){super(),G(this,e,Z3,Y3,K,{ref:0,isPictureInPictureActive:1,click:2})}},d0=nf;var D0=require("@vkontakte/videoplayer-shared");function X3(i){Te(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 m0(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 p0(i){let e,t,n,o,r,l,a,s,u,c,m,h,k,g,w,y,P,v=(!i[51]||i[53])&&_0(i),b=It(i[56]),I=[];for(let z=0;z<b.length;z+=1)I[z]=h0(m0(i,b,z));let N=z=>_(I[z],1,1,()=>{I[z]=null}),M=i[36]&&g0(i),O=i[37]&&b0(i),re=i[57]&&v0(i),ae=i[39]&&y0(i),Y=i[8]&&w0(i),ee=i[34]&&k0(i),A=i[33]&&C0(i),x=i[8]&&S0(i),Z=i[96]&&!i[29]&&T0(i);return{c(){e=T("div"),t=q(),n=T("div"),v&&v.c(),o=q(),r=T("div");for(let z=0;z<I.length;z+=1)I[z].c();l=q(),M&&M.c(),a=q(),O&&O.c(),s=q(),re&&re.c(),u=q(),ae&&ae.c(),c=q(),m=T("div"),Y&&Y.c(),h=q(),ee&&ee.c(),k=q(),A&&A.c(),g=q(),x&&x.c(),w=q(),Z&&Z.c(),y=ct(),f(e,"class","overlay-mobile svelte-1tcstu3"),F(e,"hidden",!i[42]),f(n,"class","wrapper-top-left svelte-1tcstu3"),F(n,"hidden",!i[3]),F(n,"fullscreen",i[52]),f(r,"class","wrapper-top-right svelte-1tcstu3"),F(r,"hidden",!i[3]&&!i[27]),F(r,"fullscreen",i[52]),f(m,"class","wrapper-middle svelte-1tcstu3"),F(m,"hidden",!i[3]||i[29])},m(z,U){S(z,e,U),S(z,t,U),S(z,n,U),v&&v.m(n,null),S(z,o,U),S(z,r,U);for(let V=0;V<I.length;V+=1)I[V]&&I[V].m(r,null);p(r,l),M&&M.m(r,null),p(r,a),O&&O.m(r,null),p(r,s),re&&re.m(r,null),p(r,u),ae&&ae.m(r,null),S(z,c,U),S(z,m,U),Y&&Y.m(m,null),p(m,h),ee&&ee.m(m,null),p(m,k),A&&A.m(m,null),p(m,g),x&&x.m(m,null),S(z,w,U),Z&&Z.m(z,U),S(z,y,U),P=!0},p(z,U){if((!P||U[1]&2048)&&F(e,"hidden",!z[42]),!z[51]||z[53]?v?(v.p(z,U),U[1]&5242880&&d(v,1)):(v=_0(z),v.c(),d(v,1),v.m(n,null)):v&&(ue(),_(v,1,1,()=>{v=null}),fe()),(!P||U[0]&8)&&F(n,"hidden",!z[3]),(!P||U[1]&2097152)&&F(n,"fullscreen",z[52]),U[1]&33554432){b=It(z[56]);let V;for(V=0;V<b.length;V+=1){let Q=m0(z,b,V);I[V]?(I[V].p(Q,U),d(I[V],1)):(I[V]=h0(Q),I[V].c(),d(I[V],1),I[V].m(r,l))}for(ue(),V=b.length;V<I.length;V+=1)N(V);fe()}z[36]?M?(M.p(z,U),U[1]&32&&d(M,1)):(M=g0(z),M.c(),d(M,1),M.m(r,a)):M&&(ue(),_(M,1,1,()=>{M=null}),fe()),z[37]?O?(O.p(z,U),U[1]&64&&d(O,1)):(O=b0(z),O.c(),d(O,1),O.m(r,s)):O&&(ue(),_(O,1,1,()=>{O=null}),fe()),z[57]?re?(re.p(z,U),U[1]&67108864&&d(re,1)):(re=v0(z),re.c(),d(re,1),re.m(r,u)):re&&(ue(),_(re,1,1,()=>{re=null}),fe()),z[39]?ae?(ae.p(z,U),U[1]&256&&d(ae,1)):(ae=y0(z),ae.c(),d(ae,1),ae.m(r,null)):ae&&(ue(),_(ae,1,1,()=>{ae=null}),fe()),(!P||U[0]&134217736)&&F(r,"hidden",!z[3]&&!z[27]),(!P||U[1]&2097152)&&F(r,"fullscreen",z[52]),z[8]?Y?(Y.p(z,U),U[0]&256&&d(Y,1)):(Y=w0(z),Y.c(),d(Y,1),Y.m(m,h)):Y&&(ue(),_(Y,1,1,()=>{Y=null}),fe()),z[34]?ee?(ee.p(z,U),U[1]&8&&d(ee,1)):(ee=k0(z),ee.c(),d(ee,1),ee.m(m,k)):ee&&(ue(),_(ee,1,1,()=>{ee=null}),fe()),z[33]?A?(A.p(z,U),U[1]&4&&d(A,1)):(A=C0(z),A.c(),d(A,1),A.m(m,g)):A&&(ue(),_(A,1,1,()=>{A=null}),fe()),z[8]?x?(x.p(z,U),U[0]&256&&d(x,1)):(x=S0(z),x.c(),d(x,1),x.m(m,null)):x&&(ue(),_(x,1,1,()=>{x=null}),fe()),(!P||U[0]&536870920)&&F(m,"hidden",!z[3]||z[29]),z[96]&&!z[29]?Z?(Z.p(z,U),U[0]&536870912&&d(Z,1)):(Z=T0(z),Z.c(),d(Z,1),Z.m(y.parentNode,y)):Z&&(ue(),_(Z,1,1,()=>{Z=null}),fe())},i(z){if(!P){d(v);for(let U=0;U<b.length;U+=1)d(I[U]);d(M),d(O),d(re),d(ae),d(Y),d(ee),d(A),d(x),d(Z),P=!0}},o(z){_(v),I=I.filter(Boolean);for(let U=0;U<I.length;U+=1)_(I[U]);_(M),_(O),_(re),_(ae),_(Y),_(ee),_(A),_(x),_(Z),P=!1},d(z){z&&(C(e),C(t),C(n),C(o),C(r),C(c),C(m),C(w),C(y)),v&&v.d(),Li(I,z),M&&M.d(),O&&O.d(),re&&re.d(),ae&&ae.d(),Y&&Y.d(),ee&&ee.d(),A&&A.d(),x&&x.d(),Z&&Z.d(z)}}}function _0(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 $u({props:r}),pe.push(()=>qe(e,"ref",o)),{c(){B(e.$$.fragment)},m(l,a){L(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){R(e,l)}}}function h0(i){var n;let e,t;return e=new ls({props:{iconUrl:i[169],ariaLabel:(n=i[170])!=null?n:i[173],testId:i[171],onClick:i[172]}}),{c(){B(e.$$.fragment)},m(o,r){L(e,o,r),t=!0},p(o,r){var a;let l={};r[1]&33554432&&(l.iconUrl=o[169]),r[1]&33554432&&(l.ariaLabel=(a=o[170])!=null?a:o[173]),r[1]&33554432&&(l.testId=o[171]),r[1]&33554432&&(l.onClick=o[172]),e.$set(l)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){_(e.$$.fragment,o),t=!1},d(o){R(e,o)}}}function g0(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 Yr({props:r}),pe.push(()=>qe(e,"ref",o)),{c(){B(e.$$.fragment)},m(l,a){L(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){R(e,l)}}}function b0(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 d0({props:r}),pe.push(()=>qe(e,"ref",o)),{c(){B(e.$$.fragment)},m(l,a){L(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){R(e,l)}}}function v0(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}),pe.push(()=>qe(e,"ref",o)),{c(){B(e.$$.fragment)},m(l,a){L(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){R(e,l)}}}function y0(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 Qr({props:r}),pe.push(()=>qe(e,"ref",o)),{c(){B(e.$$.fragment)},m(l,a){L(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){R(e,l)}}}function w0(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 Sl({props:r}),pe.push(()=>qe(e,"ref",o)),{c(){B(e.$$.fragment)},m(l,a){L(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){R(e,l)}}}function k0(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 Ql({props:r}),pe.push(()=>qe(e,"ref",o)),{c(){B(e.$$.fragment)},m(l,a){L(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){R(e,l)}}}function C0(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 Yl({props:r}),pe.push(()=>qe(e,"ref",o)),{c(){B(e.$$.fragment)},m(l,a){L(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){R(e,l)}}}function S0(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 Sl({props:r}),pe.push(()=>qe(e,"ref",o)),{c(){B(e.$$.fragment)},m(l,a){L(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){R(e,l)}}}function T0(i){let e,t,n,o,r=i[100]&&J3(i),l=i[98]&&x3(i),a=i[99]&&$3(i);return{c(){r&&r.c(),e=q(),l&&l.c(),t=q(),a&&a.c(),n=ct()},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 J3(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 os({props:s}),pe.push(()=>qe(t,"ref",a)),{c(){e=T("div"),B(t.$$.fragment),f(e,"class","wrapper-middle-left svelte-1tcstu3"),F(e,"fullscreen",i[52]),F(e,"hidden",!i[3])},m(u,c){S(u,e,c),L(t,e,null),o=!0,r||(l=de(e,"click",i[108]),r=!0)},p(u,c){let m={};c[0]&8&&(m.hidden=!u[3]),c[1]&65536&&(m.disabled=u[47]),c[0]&262144&&(m.click=u[18]),!n&&c[0]&1048576&&(n=!0,m.ref=u[20].playPrevChapterButton,Ne(()=>n=!1)),t.$set(m),(!o||c[1]&2097152)&&F(e,"fullscreen",u[52]),(!o||c[0]&8)&&F(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),R(t),r=!1,l()}}}function x3(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 is({props:a}),pe.push(()=>qe(t,"ref",l)),{c(){e=T("div"),B(t.$$.fragment),f(e,"class",o=Zf(i[100]?"wrapper-middle-left-second":"wrapper-middle-left")+" svelte-1tcstu3"),F(e,"fullscreen",i[52]),F(e,"hidden",!i[3]&&!i[58])},m(s,u){S(s,e,u),L(t,e,null),r=!0},p(s,u){let c={};u[0]&8|u[1]&134217728&&(c.hidden=!s[3]&&!s[58]),u[1]&524288&&(c.disabled=s[50]),u[0]&131072&&(c.click=s[17]),u[1]&134217728&&(c.graphIsOpened=s[58]),!n&&u[0]&1048576&&(n=!0,c.ref=s[20].interactiveGraphButton,Ne(()=>n=!1)),t.$set(c),(!r||u[1]&2097152)&&F(e,"fullscreen",s[52]),(!r||u[0]&8|u[1]&134217728)&&F(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),R(t)}}}function $3(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 ts({props:s}),pe.push(()=>qe(t,"ref",a)),{c(){e=T("div"),B(t.$$.fragment),f(e,"class","wrapper-middle-right svelte-1tcstu3"),F(e,"fullscreen",i[52]),F(e,"hidden",!i[3])},m(u,c){S(u,e,c),L(t,e,null),o=!0,r||(l=de(e,"click",i[109]),r=!0)},p(u,c){let m={};c[0]&8&&(m.hidden=!u[3]),c[1]&32768&&(m.disabled=u[46]),c[0]&65536&&(m.click=u[16]),!n&&c[0]&1048576&&(n=!0,m.ref=u[20].seekToInteractiveButton,Ne(()=>n=!1)),t.$set(m),(!o||c[1]&2097152)&&F(e,"fullscreen",u[52]),(!o||c[0]&8)&&F(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),R(t),r=!1,l()}}}function P0(i){let e,t,n,o,r,l=i[53]&&I0(i),a=i[32]&&E0(i);return o=new xr({props:{position:i[59],duration:i[60]}}),{c(){l&&l.c(),e=q(),a&&a.c(),t=q(),n=T("div"),B(o.$$.fragment),f(n,"class","wrapper-bottom ads-timeline-mobile svelte-1tcstu3"),F(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),L(o,n,null),r=!0},p(s,u){s[53]?l?(l.p(s,u),u[1]&4194304&&d(l,1)):(l=I0(s),l.c(),d(l,1),l.m(e.parentNode,e)):l&&(ue(),_(l,1,1,()=>{l=null}),fe()),s[32]?a?(a.p(s,u),u[1]&2&&d(a,1)):(a=E0(s),a.c(),d(a,1),a.m(t.parentNode,t)):a&&(ue(),_(a,1,1,()=>{a=null}),fe());let c={};u[1]&268435456&&(c.position=s[59]),u[1]&536870912&&(c.duration=s[60]),o.$set(c),(!r||u[1]&2097152)&&F(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),R(o)}}}function I0(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 $u({props:l}),pe.push(()=>qe(t,"ref",r)),{c(){e=T("div"),B(t.$$.fragment),f(e,"class","wrapper-top-right svelte-1tcstu3"),F(e,"fullscreen",i[52])},m(a,s){S(a,e,s),L(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)&&F(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),R(t)}}}function E0(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 Ql({props:l}),pe.push(()=>qe(t,"ref",r)),{c(){e=T("div"),B(t.$$.fragment),f(e,"class","wrapper-middle svelte-1tcstu3")},m(a,s){S(a,e,s),L(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),R(t)}}}function e5(i){let e,t,n;function o(l){i[144](l)}let r={disabled:i[48],$$slots:{default:[t5]},$$scope:{ctx:i}};return i[20].replayButton!==void 0&&(r.ref=i[20].replayButton),e=new zt({props:r}),pe.push(()=>qe(e,"ref",o)),{c(){B(e.$$.fragment)},m(l,a){L(e,l,a),n=!0},p(l,a){let s={};a[1]&131072&&(s.disabled=l[48]),a[1]&131072|a[5]&2097152&&(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){R(e,l)}}}function t5(i){let e,t;return e=new Yl({props:{disabled:i[48],click:i[95]}}),{c(){B(e.$$.fragment)},m(n,o){L(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){R(e,n)}}}function A0(i){let e,t,n;function o(l){i[145](l)}let r={$$slots:{default:[i5]},$$scope:{ctx:i}};return i[20].liveButton!==void 0&&(r.ref=i[20].liveButton),e=new zt({props:r}),pe.push(()=>qe(e,"ref",o)),{c(){B(e.$$.fragment)},m(l,a){L(e,l,a),n=!0},p(l,a){let s={};a[0]&524288|a[1]&16384|a[5]&2097152&&(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){R(e,l)}}}function i5(i){let e,t;return e=new Xr({props:{isActiveLive:i[19],isMobile:!0,ariaLabel:i[45]}}),{c(){B(e.$$.fragment)},m(n,o){L(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){R(e,n)}}}function M0(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 zr({props:r}),pe.push(()=>qe(e,"ref",o)),{c(){B(e.$$.fragment)},m(l,a){L(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){R(e,l)}}}function V0(i){let e,t,n,o;return n=new es({props:{position:i[61],duration:i[62],timeCodes:i[84]}}),{c(){e=T("div"),e.textContent="\xB7",t=q(),B(n.$$.fragment),f(e,"aria-hidden","true")},m(r,l){S(r,e,l),S(r,t,l),L(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)),R(n,r)}}}function n5(i){let e,t,n=i[43]&&V0(i);return{c(){n&&n.c(),e=ct()},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=V0(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ue(),_(n,1,1,()=>{n=null}),fe())},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&C(e),n&&n.d(o)}}}function L0(i){let e,t,n;function o(l){i[149](l)}let r={$$slots:{default:[o5]},$$scope:{ctx:i}};return i[20].settings!==void 0&&(r.ref=i[20].settings),e=new zt({props:r}),pe.push(()=>qe(e,"ref",o)),{c(){B(e.$$.fragment)},m(l,a){L(e,l,a),n=!0},p(l,a){let s={};a[0]&4194304|a[5]&2097152&&(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){R(e,l)}}}function o5(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}),pe.push(()=>qe(e,"ref",o)),{c(){B(e.$$.fragment)},m(l,a){L(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){R(e,l)}}}function R0(i){let e,t,n;function o(l){i[150](l)}let r={$$slots:{default:[l5]},$$scope:{ctx:i}};return i[20].fullscreen!==void 0&&(r.ref=i[20].fullscreen),e=new zt({props:r}),pe.push(()=>qe(e,"ref",o)),{c(){B(e.$$.fragment)},m(l,a){L(e,l,a),n=!0},p(l,a){let s={};a[0]&16384|a[1]&2097152|a[5]&2097152&&(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){R(e,l)}}}function l5(i){let e,t;return e=new Wr({props:{click:i[14],isFullscreen:i[52]}}),{c(){B(e.$$.fragment)},m(n,o){L(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){R(e,n)}}}function B0(i){let e,t,n,o;function r(a){i[153](a)}let l={supportLink:i[11],returnFocus:i[15]};return i[21]!==void 0&&(l.ref=i[21]),t=new Hr({props:l}),pe.push(()=>qe(t,"ref",r)),{c(){e=T("div"),B(t.$$.fragment),f(e,"class","settings-mobile svelte-1tcstu3")},m(a,s){S(a,e,s),L(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),R(t)}}}function r5(i){let e,t,n;function o(l){i[154](l)}let r={};return i[20].interactiveTimeIndicator!==void 0&&(r.ref=i[20].interactiveTimeIndicator),e=new ms({props:r}),pe.push(()=>qe(e,"ref",o)),{c(){B(e.$$.fragment)},m(l,a){L(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){R(e,l)}}}function s5(i){let e,t,n,o,r,l,a,s,u,c,m,h,k,g,w,y,P,v,b=!i[4]&&p0(i),I=i[4]&&i[30]!=="inactive"&&P0(i),N=i[96]&&e5(i),M=!i[4]&&i[25]&&A0(i),O=i[41]&&M0(i);function re(Z){i[147](Z)}let ae={className:"w-max",disabled:!i[43],$$slots:{default:[n5]},$$scope:{ctx:i}};i[20].episodes!==void 0&&(ae.ref=i[20].episodes),u=new zt({props:ae}),pe.push(()=>qe(u,"ref",re));let Y=i[38]&&L0(i),ee=i[40]&&R0(i);g=new $r({props:{isAds:i[4],canRewindLive:i[5],isRewindableLive:i[24]}});let A=i[23]&&B0(i),x=i[101]&&r5(i);return{c(){b&&b.c(),e=q(),I&&I.c(),t=q(),n=T("div"),o=T("div"),r=T("div"),N&&N.c(),l=q(),M&&M.c(),a=q(),O&&O.c(),s=q(),B(u.$$.fragment),m=q(),Y&&Y.c(),h=q(),ee&&ee.c(),k=q(),B(g.$$.fragment),w=q(),A&&A.c(),y=q(),x&&x.c(),P=ct(),f(r,"class","controls svelte-1tcstu3"),F(r,"mobile",!0),f(o,"class","controls-wrapper svelte-1tcstu3"),F(o,"fullscreen",i[52]),f(n,"class","wrapper-bottom svelte-1tcstu3"),F(n,"hidden",i[1]),F(n,"controls-hidden",!i[3]),F(n,"no-smooth",i[2]),F(n,"mobile",!0)},m(Z,z){b&&b.m(Z,z),S(Z,e,z),I&&I.m(Z,z),S(Z,t,z),S(Z,n,z),p(n,o),p(o,r),N&&N.m(r,null),p(r,l),M&&M.m(r,null),p(r,a),O&&O.m(r,null),p(r,s),L(u,r,null),p(r,m),Y&&Y.m(r,null),p(r,h),ee&&ee.m(r,null),i[151](r),p(o,k),L(g,o,null),i[152](n),S(Z,w,z),A&&A.m(Z,z),S(Z,y,z),x&&x.m(Z,z),S(Z,P,z),v=!0},p(Z,z){Z[4]?b&&(ue(),_(b,1,1,()=>{b=null}),fe()):b?(b.p(Z,z),z[0]&16&&d(b,1)):(b=p0(Z),b.c(),d(b,1),b.m(e.parentNode,e)),Z[4]&&Z[30]!=="inactive"?I?(I.p(Z,z),z[0]&1073741840&&d(I,1)):(I=P0(Z),I.c(),d(I,1),I.m(t.parentNode,t)):I&&(ue(),_(I,1,1,()=>{I=null}),fe()),Z[96]&&N.p(Z,z),!Z[4]&&Z[25]?M?(M.p(Z,z),z[0]&33554448&&d(M,1)):(M=A0(Z),M.c(),d(M,1),M.m(r,a)):M&&(ue(),_(M,1,1,()=>{M=null}),fe()),Z[41]?O?(O.p(Z,z),z[1]&1024&&d(O,1)):(O=M0(Z),O.c(),d(O,1),O.m(r,s)):O&&(ue(),_(O,1,1,()=>{O=null}),fe());let U={};z[1]&4096&&(U.disabled=!Z[43]),z[1]&1073745920|z[2]&1|z[5]&2097152&&(U.$$scope={dirty:z,ctx:Z}),!c&&z[0]&1048576&&(c=!0,U.ref=Z[20].episodes,Ne(()=>c=!1)),u.$set(U),Z[38]?Y?(Y.p(Z,z),z[1]&128&&d(Y,1)):(Y=L0(Z),Y.c(),d(Y,1),Y.m(r,h)):Y&&(ue(),_(Y,1,1,()=>{Y=null}),fe()),Z[40]?ee?(ee.p(Z,z),z[1]&512&&d(ee,1)):(ee=R0(Z),ee.c(),d(ee,1),ee.m(r,null)):ee&&(ue(),_(ee,1,1,()=>{ee=null}),fe());let V={};z[0]&16&&(V.isAds=Z[4]),z[0]&32&&(V.canRewindLive=Z[5]),z[0]&16777216&&(V.isRewindableLive=Z[24]),g.$set(V),(!v||z[1]&2097152)&&F(o,"fullscreen",Z[52]),(!v||z[0]&2)&&F(n,"hidden",Z[1]),(!v||z[0]&8)&&F(n,"controls-hidden",!Z[3]),(!v||z[0]&4)&&F(n,"no-smooth",Z[2]),Z[23]?A?(A.p(Z,z),z[0]&8388608&&d(A,1)):(A=B0(Z),A.c(),d(A,1),A.m(y.parentNode,y)):A&&(ue(),_(A,1,1,()=>{A=null}),fe()),Z[101]&&x.p(Z,z)},i(Z){v||(d(b),d(I),d(N),d(M),d(O),d(u.$$.fragment,Z),d(Y),d(ee),d(g.$$.fragment,Z),d(A),d(x),v=!0)},o(Z){_(b),_(I),_(N),_(M),_(O),_(u.$$.fragment,Z),_(Y),_(ee),_(g.$$.fragment,Z),_(A),_(x),v=!1},d(Z){Z&&(C(e),C(t),C(n),C(w),C(y),C(P)),b&&b.d(Z),I&&I.d(Z),N&&N.d(),M&&M.d(),O&&O.d(),R(u),Y&&Y.d(),ee&&ee.d(),i[151](null),R(g),i[152](null),A&&A.d(Z),x&&x.d(Z)}}}function a5(i,e,t){var eo,Ln;let n,o,r,l,a,s,u,c,m,h,k,g,w,y,P,v,b,I,N,M,O,re,ae,Y,ee,A,x,Z,z,U,V,Q,Ce,Fe,Ze,et,xe,{bottomHidden:ye}=e,{bottomNoSmooth:X}=e,{showControls:ke}=e,{controlsElementRef:Ge=void 0}=e,{isAds:tt=!1}=e,{canRewindLive:rt}=e,{logoClickable:we}=e,{logoHidden:De}=e,{logoTargetUrl:Je=""}=e,{showNextPrevButtons:st}=e,{nextButtonActive:Se}=e,{prevButtonActive:se}=e,{isOneVideoPlaylist:We=!1}=e,{supportLink:me}=e,{customFullscreenSupported:Ie=!0}=e,{playNextVideo:Oe}=e,{playPrevVideo:ce}=e,{repeatPlaylist:Qe}=e,{toggleFullscreen:$e}=e,{returnFocus:pt}=e,{seekToInteractive:bt}=e,{toggleGraph:ve}=e,{playPrevChapter:Ct}=e,{onDisabledPlayPrevChapterClick:Lt}=e,{onDisabledSeekToInteractiveClick:St}=e,ze=lt(),Ut=Qn(),Rt=Qt(),Et=ze.actions.internal.toggleMuted,oi=ze.actions.internal.togglePlay,Nt=ze.actions.internal.pause,Kt=(eo=ze.callbacks)==null?void 0:eo.onAudioDoesNotExistHint,he=(Ln=ze.callbacks)==null?void 0:Ln.onAudioDisabledHint,Ke=ze.playerPhase;H(i,Ke,ne=>t(126,O=ne));let ht=ze.state.duration$;H(i,ht,ne=>t(62,xe=ne));let dt=ze.state.positionWithScrubbing$;H(i,dt,ne=>t(61,et=ne));let Xe=ze.state.playbackState$;H(i,Xe,ne=>t(121,h=ne));let Bt=ze.state.isAudioAvailable$;H(i,Bt,ne=>t(51,k=ne));let Xt=ze.state.isAudioDisabled,qt=ze.state.isEnded$;H(i,qt,ne=>t(127,ae=ne));let Qi=ze.state.isLive$;H(i,Qi,ne=>t(25,v=ne));let fn=ze.state.muted$;H(i,fn,ne=>t(54,z=ne));let ui=ze.state.isActiveLive$;H(i,ui,ne=>t(124,y=ne));let Bi=ze.state.isRewindableLive$;H(i,Bi,ne=>t(24,P=ne));let yn=ze.ui.scrubbingInProgress;H(i,yn,ne=>t(29,re=ne));let Di=ze.ui.mobileNotReportControlHidden$;H(i,Di,ne=>t(27,N=ne));let cn=ze.ui.isPictureInPictureActive$;H(i,cn,ne=>t(26,I=ne));let gi=ze.ui.pictureInPictureType$;H(i,gi,ne=>t(125,b=ne));let Ni=ze.ui.mobileUnmuteButtonExpanded;H(i,Ni,ne=>t(55,U=ne));let fi=ze.ui.mobileUnmuteButtonVisible;H(i,fi,ne=>t(53,Z=ne));let Ti=ze.ui.settingsMenuVisible;H(i,Ti,ne=>t(23,m=ne));let Pi=ze.ui.settingsMenuOpenedByKeyboard;H(i,Pi,ne=>t(120,c=ne));let Ii=ze.ui.controls,li=ze.actions.internal.getVideoEpisodes(),jt=ze.webApi.pictureInPictureApi,ti=ze.state.chromecastState$;H(i,ti,ne=>t(28,M=ne));let Ei=ze.state.crashed$;H(i,Ei,ne=>t(57,Q=ne));let Yi=Ii.disabledControls$;H(i,Yi,ne=>t(128,ee=ne));let Ai=ze.ui.startedByKeyboard$;H(i,Ai,ne=>t(119,u=ne));let bi=ze.ads.duration;H(i,bi,ne=>t(60,Ze=ne));let Zi=ze.ads.position;H(i,Zi,ne=>t(59,Fe=ne));let wt=ze.ads.playbackState;H(i,wt,ne=>t(30,Y=ne));let Xi=ze.ui.isFullscreen;H(i,Xi,ne=>t(52,x=ne));let Pt=ze.ui.playerSize;H(i,Pt,ne=>t(123,w=ne));let qi=ze.ui.additionalButtons$;H(i,qi,ne=>t(56,V=ne));let Ji=ze.actions.internal.getVideoElement,xi=ze.actions.internal.replayInteractive,ii=ze.state.isInteractive,vi=ze.state.isInteractiveTime$;H(i,vi,ne=>t(122,g=ne));let yi=ze.state.showInteractiveGraph,wi=ze.state.showSeekToInteractive,ci=ze.state.showPlayPrevChapter,Ht=ze.state.showInteractiveTimeIndicator,Mi=ze.state.graphIsOpened$;H(i,Mi,ne=>t(58,Ce=ne));let Oi=Ut.seekToInteractiveDisabledTooltip$;H(i,Oi,ne=>t(129,A=ne));let ri,si,di,$i,wn,dn,en,Fi,Jt,Wt,Yt,Hi,zi,mn,Ui,Ki,nt,mi,ai,Ue={},tn=(0,D0.throttleFn)(cs,260,{leading:!1}),pn=()=>ze.actions.internal.toggleChromecast();function nn(){ko({isAudioDisabled:Xt,audioDisabledHintCallback:he,isAudioAvailable:k,audioIsNotExistHintCallback:Kt})&&Et()}function on(){return ft(this,null,function*(){jt!=null&&jt.isActive()?yield jt==null?void 0:jt.remove():yield jt==null?void 0:jt.request()})}function ln(){!Xt&&k&&fi.set(!1),nn()}let rn=We?oi:Qe,_n="",kn=(ne,Io)=>{if(!ne){t(45,_n=W("tooltip_live"));return}Io===Pl.PlaybackState.PAUSED&&t(45,_n=W("tooltip_play"))},xt,ji,En=()=>{s&&Lt(ri)},Bn=()=>{r&&St(si)};function Wi(ne){i.$$.not_equal(Ue.volume,ne)&&(Ue.volume=ne,t(20,Ue))}function An(ne){i.$$.not_equal(Ue.chromecast,ne)&&(Ue.chromecast=ne,t(20,Ue))}function Cn(ne){i.$$.not_equal(Ue.pip,ne)&&(Ue.pip=ne,t(20,Ue))}function pi(ne){ji=ne,t(22,ji)}function ni(ne){i.$$.not_equal(Ue.vkLogo,ne)&&(Ue.vkLogo=ne,t(20,Ue))}function sn(ne){i.$$.not_equal(Ue.prevButton,ne)&&(Ue.prevButton=ne,t(20,Ue))}function Dn(ne){i.$$.not_equal(Ue.playButton,ne)&&(Ue.playButton=ne,t(20,Ue))}function Mn(ne){i.$$.not_equal(Ue.replayButton,ne)&&(Ue.replayButton=ne,t(20,Ue))}function Zt(ne){i.$$.not_equal(Ue.nextButton,ne)&&(Ue.nextButton=ne,t(20,Ue))}function Kn(ne){i.$$.not_equal(Ue.playPrevChapterButton,ne)&&(Ue.playPrevChapterButton=ne,t(20,Ue))}function jn(ne){i.$$.not_equal(Ue.interactiveGraphButton,ne)&&(Ue.interactiveGraphButton=ne,t(20,Ue))}function Nn(ne){i.$$.not_equal(Ue.seekToInteractiveButton,ne)&&(Ue.seekToInteractiveButton=ne,t(20,Ue))}function Vn(ne){i.$$.not_equal(Ue.volume,ne)&&(Ue.volume=ne,t(20,Ue))}function hn(ne){i.$$.not_equal(Ue.playButton,ne)&&(Ue.playButton=ne,t(20,Ue))}function qn(ne){i.$$.not_equal(Ue.replayButton,ne)&&(Ue.replayButton=ne,t(20,Ue))}function an(ne){i.$$.not_equal(Ue.liveButton,ne)&&(Ue.liveButton=ne,t(20,Ue))}function gn(ne){i.$$.not_equal(Ue.time,ne)&&(Ue.time=ne,t(20,Ue))}function Sn(ne){i.$$.not_equal(Ue.episodes,ne)&&(Ue.episodes=ne,t(20,Ue))}function ie(ne){ji=ne,t(22,ji)}function $(ne){i.$$.not_equal(Ue.settings,ne)&&(Ue.settings=ne,t(20,Ue))}function _t(ne){i.$$.not_equal(Ue.fullscreen,ne)&&(Ue.fullscreen=ne,t(20,Ue))}function Gt(ne){pe[ne?"unshift":"push"](()=>{mi=ne,t(44,mi)})}function Tn(ne){pe[ne?"unshift":"push"](()=>{Ge=ne,t(0,Ge)})}function _i(ne){xt=ne,t(21,xt)}function On(ne){i.$$.not_equal(Ue.interactiveTimeIndicator,ne)&&(Ue.interactiveTimeIndicator=ne,t(20,Ue))}i.$$set=ne=>{"bottomHidden"in ne&&t(1,ye=ne.bottomHidden),"bottomNoSmooth"in ne&&t(2,X=ne.bottomNoSmooth),"showControls"in ne&&t(3,ke=ne.showControls),"controlsElementRef"in ne&&t(0,Ge=ne.controlsElementRef),"isAds"in ne&&t(4,tt=ne.isAds),"canRewindLive"in ne&&t(5,rt=ne.canRewindLive),"logoClickable"in ne&&t(6,we=ne.logoClickable),"logoHidden"in ne&&t(110,De=ne.logoHidden),"logoTargetUrl"in ne&&t(7,Je=ne.logoTargetUrl),"showNextPrevButtons"in ne&&t(8,st=ne.showNextPrevButtons),"nextButtonActive"in ne&&t(9,Se=ne.nextButtonActive),"prevButtonActive"in ne&&t(10,se=ne.prevButtonActive),"isOneVideoPlaylist"in ne&&t(111,We=ne.isOneVideoPlaylist),"supportLink"in ne&&t(11,me=ne.supportLink),"customFullscreenSupported"in ne&&t(112,Ie=ne.customFullscreenSupported),"playNextVideo"in ne&&t(12,Oe=ne.playNextVideo),"playPrevVideo"in ne&&t(13,ce=ne.playPrevVideo),"repeatPlaylist"in ne&&t(113,Qe=ne.repeatPlaylist),"toggleFullscreen"in ne&&t(14,$e=ne.toggleFullscreen),"returnFocus"in ne&&t(15,pt=ne.returnFocus),"seekToInteractive"in ne&&t(16,bt=ne.seekToInteractive),"toggleGraph"in ne&&t(17,ve=ne.toggleGraph),"playPrevChapter"in ne&&t(18,Ct=ne.playPrevChapter),"onDisabledPlayPrevChapterClick"in ne&&t(114,Lt=ne.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in ne&&t(115,St=ne.onDisabledSeekToInteractiveClick)},i.$$.update=()=>{if(i.$$.dirty[4]&32)e:si=W(A);if(i.$$.dirty[4]&16)e:t(118,n=ee.has("EPISODE_BUTTON"));if(i.$$.dirty[4]&16)e:t(50,o=ee.has("GRAPH_BUTTON"));if(i.$$.dirty[4]&16)e:t(46,r=ee.has("SEEK_TO_INTERACTIVE_BUTTON"));if(i.$$.dirty[4]&16)e:t(49,l=ee.has("PLAY_BUTTON"));if(i.$$.dirty[4]&16)e:t(48,a=ee.has("REPLAY_BUTTON"));if(i.$$.dirty[4]&16)e:t(47,s=ee.has("PLAY_PREV_CHAPTER_BUTTON"));if(i.$$.dirty[3]&268435456)e:t(31,di=h===Pl.PlaybackState.PLAYING);if(i.$$.dirty[0]&1073741824)e:t(32,$i=Y==="paused");if(i.$$.dirty[0]&16|i.$$.dirty[4]&8)e:t(33,wn=ae&&!tt&&!ii);if(i.$$.dirty[0]&16|i.$$.dirty[4]&8)e:t(34,dn=!ae||tt);if(i.$$.dirty[3]&1073741824)e:t(116,en=w.width>300);if(i.$$.dirty[3]&1073741824)e:t(35,Fi=w.width>400);if(i.$$.dirty[0]&536870912)e:t(117,Jt=re);if(i.$$.dirty[0]&469762048|i.$$.dirty[4]&2)e:t(36,Wt=M!==Pl.ChromecastState.NOT_AVAILABLE&&!(I&&b===1)&&!N&&!ii);if(i.$$.dirty[0]&402653184|i.$$.dirty[3]&16777216|i.$$.dirty[4]&6)e:{let ne=O==="waitingLive";t(37,Yt=!!jt&&M!==Pl.ChromecastState.CONNECTED&&!N&&(b===1&&ne||!ne)&&!Jt&&!ii)}if(i.$$.dirty[3]&16777216)e:t(38,Hi=!Jt);if(i.$$.dirty[3]&1073872896)e:t(39,zi=!De&&w.width>350);if(i.$$.dirty[0]&67108864|i.$$.dirty[3]&17301504|i.$$.dirty[4]&2)e:t(40,mn=Rt.features.fullscreen&&!(I&&b===1)&&(ii?Ie:!0)&&!Jt);if(i.$$.dirty[0]&33554448|i.$$.dirty[3]&1090519040)e:t(41,Ui=(!v||tt)&&w.width>260&&!Jt&&!(Rt.features.interactiveHideTime&&ii));if(i.$$.dirty[0]&8388616)e:t(42,Ki=m||ke);if(i.$$.dirty[0]&33554448|i.$$.dirty[3]&58720256)e:t(43,nt=!tt&&!v&&!!(li!=null&&li.length)&&en&&!n&&!Jt);if(i.$$.dirty[0]&16777216|i.$$.dirty[4]&1)e:t(19,ai=!P||y);if(i.$$.dirty[0]&1048584|i.$$.dirty[3]&1610612736)e:tn(Ji(),Ii,Ue,ke);if(i.$$.dirty[0]&524288|i.$$.dirty[3]&268435456)e:kn(ai,h);if(i.$$.dirty[0]&12582912)e:hl(ji,m,Pi);if(i.$$.dirty[0]&10485760|i.$$.dirty[3]&134217728)e:Qo(xt,m,c);if(i.$$.dirty[0]&1048576|i.$$.dirty[3]&67108864)e:ds(Ai,u,Ue.playButton)};e:ri=W(ze.state.playPrevChapterDisabledTooltip);return[Ge,ye,X,ke,tt,rt,we,Je,st,Se,se,me,Oe,ce,$e,pt,bt,ve,Ct,ai,Ue,xt,ji,m,P,v,I,N,M,re,Y,di,$i,wn,dn,Fi,Wt,Yt,Hi,zi,mn,Ui,Ki,nt,mi,_n,r,s,a,l,o,k,x,Z,z,U,V,Q,Ce,Fe,Ze,et,xe,oi,Nt,Ke,ht,dt,Xe,Bt,Xt,qt,Qi,fn,ui,Bi,yn,Di,cn,gi,Ni,fi,Ti,Pi,li,ti,Ei,Yi,Ai,bi,Zi,wt,Xi,Pt,qi,xi,ii,vi,yi,wi,ci,Ht,Mi,Oi,pn,on,ln,rn,En,Bn,De,We,Ie,Qe,Lt,St,en,Jt,n,u,c,h,g,w,y,b,O,ae,ee,A,Wi,An,Cn,pi,ni,sn,Dn,Mn,Zt,Kn,jn,Nn,Vn,hn,qn,an,gn,Sn,ie,$,_t,Gt,Tn,_i,On]}var of=class extends j{constructor(e){super(),G(this,e,a5,s5,K,{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])}},N0=of;function u5(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 l0({props:r}),pe.push(()=>qe(e,"controlsElementRef",o)),{c(){B(e.$$.fragment)},m(l,a){L(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){R(e,l)}}}function f5(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 N0({props:r}),pe.push(()=>qe(e,"controlsElementRef",o)),{c(){B(e.$$.fragment)},m(l,a){L(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){R(e,l)}}}function c5(i){let e,t,n,o,r=[f5,u5],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=ct()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let c=e;e=a(s,u),e===c?l[e].p(s,u):(ue(),_(l[c],1,1,()=>{l[c]=null}),fe(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&C(n),l[e].d(s)}}}function d5(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:c}=e,{logoHidden:m}=e,{logoTargetUrl:h=""}=e,{showNextPrevButtons:k}=e,{nextButtonActive:g}=e,{prevButtonActive:w}=e,{isOneVideoPlaylist:y=!1}=e,{supportLink:P}=e,{customFullscreenSupported:v=!0}=e,{playNextVideo:b}=e,{playPrevVideo:I}=e,{repeatPlaylist:N}=e,{toggleFullscreen:M}=e,{returnFocus:O=ps.noop}=e,{seekToInteractive:re}=e,{toggleGraph:ae}=e,{playPrevChapter:Y}=e,{onDisabledPlayPrevChapterClick:ee=ps.noop}=e,{onDisabledSeekToInteractiveClick:A=ps.noop}=e,Z=lt().ui.isMobile;H(i,Z,V=>t(25,n=V));function z(V){a=V,t(0,a)}function U(V){a=V,t(0,a)}return i.$$set=V=>{"bottomHidden"in V&&t(1,o=V.bottomHidden),"bottomNoSmooth"in V&&t(2,r=V.bottomNoSmooth),"showControls"in V&&t(3,l=V.showControls),"controlsElementRef"in V&&t(0,a=V.controlsElementRef),"isAds"in V&&t(4,s=V.isAds),"canRewindLive"in V&&t(5,u=V.canRewindLive),"logoClickable"in V&&t(6,c=V.logoClickable),"logoHidden"in V&&t(7,m=V.logoHidden),"logoTargetUrl"in V&&t(8,h=V.logoTargetUrl),"showNextPrevButtons"in V&&t(9,k=V.showNextPrevButtons),"nextButtonActive"in V&&t(10,g=V.nextButtonActive),"prevButtonActive"in V&&t(11,w=V.prevButtonActive),"isOneVideoPlaylist"in V&&t(12,y=V.isOneVideoPlaylist),"supportLink"in V&&t(13,P=V.supportLink),"customFullscreenSupported"in V&&t(14,v=V.customFullscreenSupported),"playNextVideo"in V&&t(15,b=V.playNextVideo),"playPrevVideo"in V&&t(16,I=V.playPrevVideo),"repeatPlaylist"in V&&t(17,N=V.repeatPlaylist),"toggleFullscreen"in V&&t(18,M=V.toggleFullscreen),"returnFocus"in V&&t(19,O=V.returnFocus),"seekToInteractive"in V&&t(20,re=V.seekToInteractive),"toggleGraph"in V&&t(21,ae=V.toggleGraph),"playPrevChapter"in V&&t(22,Y=V.playPrevChapter),"onDisabledPlayPrevChapterClick"in V&&t(23,ee=V.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in V&&t(24,A=V.onDisabledSeekToInteractiveClick)},[a,o,r,l,s,u,c,m,h,k,g,w,y,P,v,b,I,N,M,O,re,ae,Y,ee,A,n,Z,z,U]}var lf=class extends j{constructor(e){super(),G(this,e,d5,c5,K,{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})}},_s=lf;function m5(i){let e,t,n,o,r,l,a,s,u,c,m,h,k,g,w=i[2].default,y=Ee(w,i,i[1],null),P=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"51"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-icon"},{role:"img"},i[0]],v={};for(let b=0;b<P.length;b+=1)v=le(v,P[b]);return{c(){e=D("svg"),y&&y.c(),t=D("g"),n=D("path"),o=D("path"),r=D("defs"),l=D("filter"),a=D("feFlood"),s=D("feColorMatrix"),u=D("feOffset"),c=D("feGaussianBlur"),m=D("feColorMatrix"),h=D("feBlend"),k=D("feBlend"),f(n,"fill","#fff"),f(n,"d","M15.537 10.534a1.157 1.157 0 0 0 .003 1.96l7.658 4.823c.78.491 1.798-.065 1.798-.981v-3.3c7.265.512 13 6.568 13 13.964 0 7.732-6.268 14-14 14-5.98 0-11.088-3.75-13.093-9.032a1.5 1.5 0 0 0-2.805 1.064C10.531 39.441 16.73 44 23.996 44c9.39 0 17-7.611 17-17 0-9.053-7.076-16.453-16-16.971V6.664c0-.918-1.021-1.473-1.8-.98z"),f(o,"stroke","#000"),f(o,"stroke-opacity",".12"),f(o,"stroke-width",".5"),f(o,"d","M15.404 10.322a1.407 1.407 0 0 0 .003 2.384l7.657 4.823c.944.594 2.182-.076 2.182-1.193v-3.03c7.008.631 12.5 6.522 12.5 13.694 0 7.594-6.156 13.75-13.75 13.75-5.873 0-10.89-3.683-12.86-8.871a1.75 1.75 0 1 0-3.272 1.242c2.469 6.503 8.758 11.129 16.132 11.129 9.527 0 17.25-7.723 17.25-17.25 0-9.107-7.056-16.565-16-17.205V6.664c0-1.118-1.241-1.788-2.184-1.19z"),f(t,"filter","url(#a)"),f(a,"flood-opacity","0"),f(a,"result","BackgroundImageFix"),f(s,"in","SourceAlpha"),f(s,"result","hardAlpha"),f(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(c,"stdDeviation","2.5"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(h,"in2","BackgroundImageFix"),f(h,"result","effect1_dropShadow_2260_100684"),f(k,"in","SourceGraphic"),f(k,"in2","effect1_dropShadow_2260_100684"),f(k,"result","shape"),f(l,"id","a"),f(l,"width","43.996"),f(l,"height","49.5"),f(l,"x","2.5"),f(l,"y","0"),f(l,"color-interpolation-filters","sRGB"),f(l,"filterUnits","userSpaceOnUse"),be(e,v)},m(b,I){S(b,e,I),y&&y.m(e,null),p(e,t),p(t,n),p(t,o),p(e,r),p(r,l),p(l,a),p(l,s),p(l,u),p(l,c),p(l,m),p(l,h),p(l,k),g=!0},p(b,[I]){y&&y.p&&(!g||I&2)&&Me(y,w,b,b[1],g?Ae(w,b[1],I,null):Ve(b[1]),null),be(e,v=Re(P,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"51"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-icon"},{role:"img"},I&1&&b[0]]))},i(b){g||(d(y,b),g=!0)},o(b){_(y,b),g=!1},d(b){b&&C(e),y&&y.d(b)}}}function p5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var rf=class extends j{constructor(e){super(),G(this,e,p5,m5,K,{})}},q0=rf;function _5(i){let e,t;return e=new q0({props:{style:i[0]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.style=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function h5(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 sf=class extends j{constructor(e){super(),G(this,e,h5,_5,K,{reversed:1})}},O0=sf;function g5(i){let e,t,n,o,r,l,a,s,u,c,m,h,k,g,w,y,P=i[2].default,v=Ee(P,i,i[1],null),b=[{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 N=0;N<b.length;N+=1)I=le(I,b[N]);return{c(){e=D("svg"),v&&v.c(),t=D("g"),n=D("path"),o=D("path"),r=D("defs"),l=D("clipPath"),a=D("path"),s=D("filter"),u=D("feFlood"),c=D("feColorMatrix"),m=D("feOffset"),h=D("feGaussianBlur"),k=D("feColorMatrix"),g=D("feBlend"),w=D("feBlend"),f(n,"fill","#fff"),f(n,"fill-rule","evenodd"),f(n,"d","M28.167 7h-8.334c-2.463 0-4.404 0-5.966.128-1.594.13-2.925.4-4.134 1.016a10.5 10.5 0 0 0-4.589 4.59c-.616 1.208-.886 2.54-1.016 4.133C4 18.429 4 20.37 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.594-.13 2.925-.4 4.134-1.016a10.5 10.5 0 0 0 4.589-4.59c.616-1.208.886-2.54 1.016-4.133.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7M13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22m18.5 6a1.5 1.5 0 0 0 0 3h4a1.5 1.5 0 0 0 0-3zM22 22a1.5 1.5 0 0 1 1.5-1.5h11a1.5 1.5 0 0 1 0 3h-11A1.5 1.5 0 0 1 22 22"),f(n,"clip-rule","evenodd"),f(o,"stroke","#000"),f(o,"stroke-opacity",".12"),f(o,"stroke-width",".5"),f(o,"d","M28.167 6.75h-8.344c-2.455 0-4.405 0-5.977.128-1.609.132-2.976.407-4.226 1.044a10.75 10.75 0 0 0-4.698 4.698c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.609-.132 2.976-.407 4.226-1.044a10.75 10.75 0 0 0 4.698-4.698c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm17 7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm-7-7.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Z"),f(t,"clip-path","url(#c)"),f(t,"filter","url(#a)"),f(a,"fill","#fff"),f(a,"d","M0 0h48v48H0z"),f(l,"id","c"),f(u,"flood-opacity","0"),f(u,"result","BackgroundImageFix"),f(c,"in","SourceAlpha"),f(c,"result","hardAlpha"),f(c,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(h,"stdDeviation","2.5"),f(k,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(g,"in2","BackgroundImageFix"),f(g,"result","effect1_dropShadow_2260_104204"),f(w,"in","SourceGraphic"),f(w,"in2","effect1_dropShadow_2260_104204"),f(w,"result","shape"),f(s,"id","a"),f(s,"width","51"),f(s,"height","45"),f(s,"x","-1.5"),f(s,"y","1.5"),f(s,"color-interpolation-filters","sRGB"),f(s,"filterUnits","userSpaceOnUse"),be(e,I)},m(N,M){S(N,e,M),v&&v.m(e,null),p(e,t),p(t,n),p(t,o),p(e,r),p(r,l),p(l,a),p(r,s),p(s,u),p(s,c),p(s,m),p(s,h),p(s,k),p(s,g),p(s,w),y=!0},p(N,[M]){v&&v.p&&(!y||M&2)&&Me(v,P,N,N[1],y?Ae(P,N[1],M,null):Ve(N[1]),null),be(e,I=Re(b,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-on-icon"},{role:"img"},M&1&&N[0]]))},i(N){y||(d(v,N),y=!0)},o(N){_(v,N),y=!1},d(N){N&&C(e),v&&v.d(N)}}}function b5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var af=class extends j{constructor(e){super(),G(this,e,b5,g5,K,{})}},F0=af;function v5(i){let e,t,n,o,r,l,a,s,u,c,m,h,k,g,w,y,P,v=i[2].default,b=Ee(v,i,i[1],null),I=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-off-icon"},{role:"img"},i[0]],N={};for(let M=0;M<I.length;M+=1)N=le(N,I[M]);return{c(){e=D("svg"),b&&b.c(),t=D("g"),n=D("path"),o=D("path"),r=D("path"),l=D("defs"),a=D("clipPath"),s=D("path"),u=D("filter"),c=D("feFlood"),m=D("feColorMatrix"),h=D("feOffset"),k=D("feGaussianBlur"),g=D("feColorMatrix"),w=D("feBlend"),y=D("feBlend"),f(n,"fill","#fff"),f(n,"fill-rule","evenodd"),f(n,"d","M6.56 4.44a1.5 1.5 0 1 0-2.12 2.12l3.088 3.09a10.5 10.5 0 0 0-2.384 3.083c-.616 1.21-.886 2.54-1.016 4.134C4 18.429 4 20.369 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.437-.117 2.66-.348 3.773-.844l3.533 3.533a1.5 1.5 0 0 0 2.122-2.122l-37-37ZM13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22"),f(n,"clip-rule","evenodd"),f(o,"fill","#fff"),f(o,"d","M34.5 23.5h-4.639l12.552 12.551q.237-.381.443-.784c.616-1.21.886-2.54 1.016-4.134.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7h-8.334c-2.463 0-4.404 0-5.966.128l-.347.03L26.86 20.5h7.64a1.5 1.5 0 0 1 0 3"),f(r,"stroke","#000"),f(r,"stroke-opacity",".12"),f(r,"stroke-width",".5"),f(r,"d","M29.861 23.25h-.603l.427.427 12.55 12.551.223.223.167-.268q.243-.39.453-.803c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128h-8.354c-2.455 0-4.405 0-5.977.128q-.177.014-.35.032l-.527.051.374.374 13.341 13.342.074.073H34.5a1.25 1.25 0 1 1 0 2.5zM6.737 4.263a1.75 1.75 0 0 0-2.474 2.474l2.903 2.904a10.8 10.8 0 0 0-2.244 2.979c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.384-.114 2.59-.333 3.696-.797l3.413 3.412a1.75 1.75 0 1 0 2.474-2.474zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Z"),f(t,"clip-path","url(#c)"),f(t,"filter","url(#a)"),f(s,"fill","#fff"),f(s,"d","M0 0h48v48H0z"),f(a,"id","c"),f(c,"flood-opacity","0"),f(c,"result","BackgroundImageFix"),f(m,"in","SourceAlpha"),f(m,"result","hardAlpha"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(k,"stdDeviation","2.5"),f(g,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(w,"in2","BackgroundImageFix"),f(w,"result","effect1_dropShadow_2260_104293"),f(y,"in","SourceGraphic"),f(y,"in2","effect1_dropShadow_2260_104293"),f(y,"result","shape"),f(u,"id","a"),f(u,"width","51"),f(u,"height","51"),f(u,"x","-1.5"),f(u,"y","-1.5"),f(u,"color-interpolation-filters","sRGB"),f(u,"filterUnits","userSpaceOnUse"),be(e,N)},m(M,O){S(M,e,O),b&&b.m(e,null),p(e,t),p(t,n),p(t,o),p(t,r),p(e,l),p(l,a),p(a,s),p(l,u),p(u,c),p(u,m),p(u,h),p(u,k),p(u,g),p(u,w),p(u,y),P=!0},p(M,[O]){b&&b.p&&(!P||O&2)&&Me(b,v,M,M[1],P?Ae(v,M[1],O,null):Ve(M[1]),null),be(e,N=Re(I,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-off-icon"},{role:"img"},O&1&&M[0]]))},i(M){P||(d(b,M),P=!0)},o(M){_(b,M),P=!1},d(M){M&&C(e),b&&b.d(M)}}}function y5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var uf=class extends j{constructor(e){super(),G(this,e,y5,v5,K,{})}},H0=uf;function w5(i){let e,t;return e=new F0({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function k5(i){let e,t;return e=new H0({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function C5(i){let e,t,n,o,r=[k5,w5],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=ct()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let c=e;e=a(s,u),e!==c&&(ue(),_(l[c],1,1,()=>{l[c]=null}),fe(),t=l[e],t||(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&C(n),l[e].d(s)}}}function S5(i,e,t){let{isOff:n=!1}=e;return i.$$set=o=>{"isOff"in o&&t(0,n=o.isOff)},[n]}var ff=class extends j{constructor(e){super(),G(this,e,S5,C5,K,{isOff:0})}},cf=ff;function T5(i){let e,t,n,o,r,l,a,s,u,c,m,h,k,g,w=i[2].default,y=Ee(w,i,i[1],null),P=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"rate-change-icon"},{role:"img"},i[0]],v={};for(let b=0;b<P.length;b+=1)v=le(v,P[b]);return{c(){e=D("svg"),y&&y.c(),t=D("g"),n=D("path"),o=D("path"),r=D("defs"),l=D("filter"),a=D("feFlood"),s=D("feColorMatrix"),u=D("feOffset"),c=D("feGaussianBlur"),m=D("feColorMatrix"),h=D("feBlend"),k=D("feBlend"),f(n,"fill","#fff"),f(n,"d","M24 22.677v-5.87a1.2 1.2 0 0 0-1.792-1.045L9.51 22.955a1.2 1.2 0 0 0 0 2.088l12.697 7.192a1.2 1.2 0 0 0 1.791-1.044v-5.873l12.21 6.916A1.2 1.2 0 0 0 38 31.19V16.805a1.2 1.2 0 0 0-1.791-1.044z"),f(o,"stroke","#000"),f(o,"stroke-opacity",".12"),f(o,"stroke-width",".5"),f(o,"d","M24.25 16.806v5.442l11.835-6.704a1.45 1.45 0 0 1 2.165 1.261V31.19a1.45 1.45 0 0 1-2.165 1.262L24.25 25.747v5.444a1.45 1.45 0 0 1-2.164 1.262L9.388 25.26a1.45 1.45 0 0 1 0-2.523l12.697-7.192a1.45 1.45 0 0 1 2.164 1.261Z"),f(t,"filter","url(#a)"),f(a,"flood-opacity","0"),f(a,"result","BackgroundImageFix"),f(s,"in","SourceAlpha"),f(s,"result","hardAlpha"),f(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(c,"stdDeviation","2.5"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(h,"in2","BackgroundImageFix"),f(h,"result","effect1_dropShadow_2260_106627"),f(k,"in","SourceGraphic"),f(k,"in2","effect1_dropShadow_2260_106627"),f(k,"result","shape"),f(l,"id","a"),f(l,"width","40.098"),f(l,"height","27.785"),f(l,"x","3.402"),f(l,"y","10.105"),f(l,"color-interpolation-filters","sRGB"),f(l,"filterUnits","userSpaceOnUse"),be(e,v)},m(b,I){S(b,e,I),y&&y.m(e,null),p(e,t),p(t,n),p(t,o),p(e,r),p(r,l),p(l,a),p(l,s),p(l,u),p(l,c),p(l,m),p(l,h),p(l,k),g=!0},p(b,[I]){y&&y.p&&(!g||I&2)&&Me(y,w,b,b[1],g?Ae(w,b[1],I,null):Ve(b[1]),null),be(e,v=Re(P,[{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&&b[0]]))},i(b){g||(d(y,b),g=!0)},o(b){_(y,b),g=!1},d(b){b&&C(e),y&&y.d(b)}}}function P5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var df=class extends j{constructor(e){super(),G(this,e,P5,T5,K,{})}},z0=df;function I5(i){let e,t;return e=new z0({props:{style:i[0]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.style=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function E5(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=r=>{"reversed"in r&&t(1,o=r.reversed)},i.$$.update=()=>{if(i.$$.dirty&2)e:t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var mf=class extends j{constructor(e){super(),G(this,e,E5,I5,K,{reversed:1})}},U0=mf;function A5(i){let e,t,n,o,r,l,a,s,u,c,m,h,k,g,w=i[2].default,y=Ee(w,i,i[1],null),P=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-seek-icon"},{role:"img"},i[0]],v={};for(let b=0;b<P.length;b+=1)v=le(v,P[b]);return{c(){e=D("svg"),y&&y.c(),t=D("g"),n=D("path"),o=D("path"),r=D("defs"),l=D("filter"),a=D("feFlood"),s=D("feColorMatrix"),u=D("feOffset"),c=D("feGaussianBlur"),m=D("feColorMatrix"),h=D("feBlend"),k=D("feBlend"),f(n,"fill","#fff"),f(n,"d","M14 21.817c.631-.505 1.627-1.054 3.084-1.857l13.009-7.172c2.268-1.25 3.402-1.875 4.332-1.778a2.9 2.9 0 0 1 2.026 1.134c.549.73.549 1.991.549 4.511v14.69c0 2.52 0 3.78-.549 4.51a2.9 2.9 0 0 1-2.026 1.135c-.93.097-2.064-.528-4.332-1.778L17.084 28.04c-1.457-.803-2.453-1.352-3.084-1.857V34.5a1.5 1.5 0 0 1-3 0v-21a1.5 1.5 0 0 1 3 0z"),f(o,"stroke","#000"),f(o,"stroke-opacity",".12"),f(o,"stroke-width",".5"),f(o,"d","m16.964 19.74-.029.016c-1.162.641-2.046 1.129-2.685 1.567V13.5a1.75 1.75 0 1 0-3.5 0v21a1.75 1.75 0 1 0 3.5 0v-7.823c.639.438 1.523.926 2.685 1.567l.029.015 13.008 7.172.012.006c1.124.62 1.983 1.093 2.676 1.398.695.306 1.26.46 1.791.404a3.16 3.16 0 0 0 2.2-1.233c.317-.421.46-.976.53-1.711.069-.733.069-1.688.069-2.936V16.641c0-1.248 0-2.203-.07-2.936-.07-.735-.212-1.29-.529-1.711a3.16 3.16 0 0 0-2.2-1.233c-.53-.055-1.096.098-1.79.404-.694.305-1.553.778-2.677 1.398l-.012.006z"),f(t,"filter","url(#a)"),f(a,"flood-opacity","0"),f(a,"result","BackgroundImageFix"),f(s,"in","SourceAlpha"),f(s,"result","hardAlpha"),f(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(c,"stdDeviation","2.5"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(h,"in2","BackgroundImageFix"),f(h,"result","effect1_dropShadow_2340_106922"),f(k,"in","SourceGraphic"),f(k,"in2","effect1_dropShadow_2340_106922"),f(k,"result","shape"),f(l,"id","a"),f(l,"width","37"),f(l,"height","37"),f(l,"x","5.5"),f(l,"y","5.5"),f(l,"color-interpolation-filters","sRGB"),f(l,"filterUnits","userSpaceOnUse"),be(e,v)},m(b,I){S(b,e,I),y&&y.m(e,null),p(e,t),p(t,n),p(t,o),p(e,r),p(r,l),p(l,a),p(l,s),p(l,u),p(l,c),p(l,m),p(l,h),p(l,k),g=!0},p(b,[I]){y&&y.p&&(!g||I&2)&&Me(y,w,b,b[1],g?Ae(w,b[1],I,null):Ve(b[1]),null),be(e,v=Re(P,[{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&&b[0]]))},i(b){g||(d(y,b),g=!0)},o(b){_(y,b),g=!1},d(b){b&&C(e),y&&y.d(b)}}}function M5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var pf=class extends j{constructor(e){super(),G(this,e,M5,A5,K,{})}},K0=pf;function V5(i){let e,t;return e=new K0({props:{style:i[0]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.style=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function L5(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 _f=class extends j{constructor(e){super(),G(this,e,L5,V5,K,{reversed:1})}},j0=_f;function R5(i){Te(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 W0(i){let e,t=["BACKWARD_SEEK","FORWARD_SEEK"].includes(i[4]),n,o,r,l,a,s,u=["RATE_DOWN","RATE_UP"].includes(i[4]),c,m=["EPISODE_PREV","EPISODE_NEXT"].includes(i[4]),h,k,g,w,y,P=t&&G0(i),v=i[4]==="PAUSE"&&Q0(i),b=i[4]==="PLAY"&&Y0(i),I=i[4]==="REPLAY"&&Z0(i),N=i[4]==="SUBTITLES_OFF"&&X0(i),M=i[4]==="SUBTITLES_ON"&&J0(i),O=u&&x0(i),re=m&&$0(i),ae=i[4]==="MUTE"&&ep(i),Y=i[4]==="VOLUME"&&tp(i),ee=i[5]&&ip(i);return{c(){e=T("div"),P&&P.c(),n=q(),v&&v.c(),o=q(),b&&b.c(),r=q(),I&&I.c(),l=q(),N&&N.c(),a=q(),M&&M.c(),s=q(),O&&O.c(),c=q(),re&&re.c(),h=q(),ae&&ae.c(),k=q(),Y&&Y.c(),g=q(),ee&&ee.c(),w=ct(),f(e,"class","svelte-4ftgwp")},m(A,x){S(A,e,x),P&&P.m(e,null),p(e,n),v&&v.m(e,null),p(e,o),b&&b.m(e,null),p(e,r),I&&I.m(e,null),p(e,l),N&&N.m(e,null),p(e,a),M&&M.m(e,null),p(e,s),O&&O.m(e,null),p(e,c),re&&re.m(e,null),p(e,h),ae&&ae.m(e,null),p(e,k),Y&&Y.m(e,null),S(A,g,x),ee&&ee.m(A,x),S(A,w,x),y=!0},p(A,x){x&16&&(t=["BACKWARD_SEEK","FORWARD_SEEK"].includes(A[4])),t?P?(P.p(A,x),x&16&&d(P,1)):(P=G0(A),P.c(),d(P,1),P.m(e,n)):P&&(ue(),_(P,1,1,()=>{P=null}),fe()),A[4]==="PAUSE"?v?x&16&&d(v,1):(v=Q0(A),v.c(),d(v,1),v.m(e,o)):v&&(ue(),_(v,1,1,()=>{v=null}),fe()),A[4]==="PLAY"?b?x&16&&d(b,1):(b=Y0(A),b.c(),d(b,1),b.m(e,r)):b&&(ue(),_(b,1,1,()=>{b=null}),fe()),A[4]==="REPLAY"?I?x&16&&d(I,1):(I=Z0(A),I.c(),d(I,1),I.m(e,l)):I&&(ue(),_(I,1,1,()=>{I=null}),fe()),A[4]==="SUBTITLES_OFF"?N?x&16&&d(N,1):(N=X0(A),N.c(),d(N,1),N.m(e,a)):N&&(ue(),_(N,1,1,()=>{N=null}),fe()),A[4]==="SUBTITLES_ON"?M?x&16&&d(M,1):(M=J0(A),M.c(),d(M,1),M.m(e,s)):M&&(ue(),_(M,1,1,()=>{M=null}),fe()),x&16&&(u=["RATE_DOWN","RATE_UP"].includes(A[4])),u?O?(O.p(A,x),x&16&&d(O,1)):(O=x0(A),O.c(),d(O,1),O.m(e,c)):O&&(ue(),_(O,1,1,()=>{O=null}),fe()),x&16&&(m=["EPISODE_PREV","EPISODE_NEXT"].includes(A[4])),m?re?(re.p(A,x),x&16&&d(re,1)):(re=$0(A),re.c(),d(re,1),re.m(e,h)):re&&(ue(),_(re,1,1,()=>{re=null}),fe()),A[4]==="MUTE"?ae?x&16&&d(ae,1):(ae=ep(A),ae.c(),d(ae,1),ae.m(e,k)):ae&&(ue(),_(ae,1,1,()=>{ae=null}),fe()),A[4]==="VOLUME"?Y?x&16&&d(Y,1):(Y=tp(A),Y.c(),d(Y,1),Y.m(e,null)):Y&&(ue(),_(Y,1,1,()=>{Y=null}),fe()),A[5]?ee?ee.p(A,x):(ee=ip(A),ee.c(),ee.m(w.parentNode,w)):ee&&(ee.d(1),ee=null)},i(A){y||(d(P),d(v),d(b),d(I),d(N),d(M),d(O),d(re),d(ae),d(Y),y=!0)},o(A){_(P),_(v),_(b),_(I),_(N),_(M),_(O),_(re),_(ae),_(Y),y=!1},d(A){A&&(C(e),C(g),C(w)),P&&P.d(),v&&v.d(),b&&b.d(),I&&I.d(),N&&N.d(),M&&M.d(),O&&O.d(),re&&re.d(),ae&&ae.d(),Y&&Y.d(),ee&&ee.d(A)}}}function G0(i){let e,t;return e=new O0({props:{reversed:i[4]==="FORWARD_SEEK"}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.reversed=n[4]==="FORWARD_SEEK"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Q0(i){let e,t;return e=new Gr({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Y0(i){let e,t;return e=new Cl({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Z0(i){let e,t;return e=new ns({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function X0(i){let e,t;return e=new cf({props:{isOff:!0}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function J0(i){let e,t;return e=new cf({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function x0(i){let e,t;return e=new U0({props:{reversed:i[4]==="RATE_UP"}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.reversed=n[4]==="RATE_UP"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function $0(i){let e,t;return e=new j0({props:{reversed:i[4]==="EPISODE_NEXT"}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.reversed=n[4]==="EPISODE_NEXT"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function ep(i){let e,t;return e=new Xo({props:{volume:0}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function tp(i){let e,t;return e=new Xo({props:{volume:1}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function ip(i){let e,t;return{c(){e=T("span"),t=Le(i[5]),f(e,"class","hot-key-helpers-text svelte-4ftgwp")},m(n,o){S(n,e,o),p(e,t)},p(n,o){o&32&&Ye(t,n[5])},d(n){n&&C(e)}}}function B5(i){let e,t,n=!i[1]&&i[4]&&W0(i);return{c(){e=T("div"),n&&n.c(),f(e,"class","hot-key-helpers-container svelte-4ftgwp"),F(e,"hidden",i[1]),F(e,"hot-key-helpers-container--left",i[2]),F(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=W0(o),n.c(),d(n,1),n.m(e,null)):n&&(ue(),_(n,1,1,()=>{n=null}),fe()),(!t||r&2)&&F(e,"hidden",o[1]),(!t||r&4)&&F(e,"hot-key-helpers-container--left",o[2]),(!t||r&8)&&F(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 D5(i,e,t){let n,o=_e,r=()=>(o(),o=$t(l,h=>t(6,n=h)),l);i.$$.on_destroy.push(()=>o());let{data:l}=e;r();let a,s,u,c,m;return i.$$set=h=>{"data"in h&&r(t(0,l=h.data))},i.$$.update=()=>{if(i.$$.dirty&64)e:t(1,a=!n),t(2,s=(n==null?void 0:n.type)==="BACKWARD_SEEK"),t(3,u=(n==null?void 0:n.type)==="FORWARD_SEEK"),t(4,c=n==null?void 0:n.type),n!=null&&n.t?t(5,m=W(n.t.key,{value:n.t.value||""})):t(5,m=n==null?void 0:n.text)},[l,a,s,u,c,m,n]}var hf=class extends j{constructor(e){super(),G(this,e,D5,B5,K,{data:0},R5)}},np=hf;function N5(i){Te(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 q5(i){let e,t,n,o,r,l,a,s,u,c,m,h,k,g,w,y,P,v,b;return r=new xn({props:{direction:"up"}}),s=new xn({props:{direction:"up"}}),h=new xn({props:{direction:"up"}}),w=new xn({props:{direction:"up"}}),{c(){e=T("div"),t=T("div"),n=T("div"),o=T("div"),B(r.$$.fragment),l=q(),a=T("div"),B(s.$$.fragment),u=q(),c=T("div"),m=T("div"),B(h.$$.fragment),k=q(),g=T("div"),B(w.$$.fragment),f(o,"class","button button-up svelte-1yzc86r"),f(a,"class","button button-right svelte-1yzc86r"),f(n,"class","button-row svelte-1yzc86r"),f(m,"class","button button-left svelte-1yzc86r"),f(g,"class","button button-down svelte-1yzc86r"),f(c,"class","button-row svelte-1yzc86r"),f(t,"class","button-block svelte-1yzc86r"),f(t,"aria-hidden","true"),f(e,"class","immersive-controls svelte-1yzc86r"),f(e,"tabindex","0"),f(e,"role","button"),f(e,"aria-label",y=W("aria_label_spherical_control")),F(e,"m-shifted",i[0])},m(I,N){S(I,e,N),p(e,t),p(t,n),p(n,o),L(r,o,null),p(n,l),p(n,a),L(s,a,null),p(t,u),p(t,c),p(c,m),L(h,m,null),p(c,k),p(c,g),L(w,g,null),P=!0,v||(b=[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(m,"mousedown",i[4]),de(m,"mouseup",i[5]),de(m,"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])],v=!0)},p(I,[N]){(!P||N&1)&&F(e,"m-shifted",I[0])},i(I){P||(d(r.$$.fragment,I),d(s.$$.fragment,I),d(h.$$.fragment,I),d(w.$$.fragment,I),P=!0)},o(I){_(r.$$.fragment,I),_(s.$$.fragment,I),_(h.$$.fragment,I),_(w.$$.fragment,I),P=!1},d(I){I&&C(e),R(r),R(s),R(h),R(w),v=!1,ot(b)}}}function O5(i,e,t){let{isShifted:n=!1}=e,o=lt(),r=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),l=()=>{o.actions.internal.startCameraManualRotation(0,1)},a=()=>{o.actions.internal.startCameraManualRotation(0,-1)},s=()=>{o.actions.internal.startCameraManualRotation(1,0)},u=()=>{o.actions.internal.startCameraManualRotation(-1,0)},c=()=>(o.actions.internal.stopCameraManualRotation(),null),m=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(),c())};return i.$$set=k=>{"isShifted"in k&&t(0,n=k.isShifted)},[n,l,a,s,u,c,m,h]}var gf=class extends j{constructor(e){super(),G(this,e,O5,q5,K,{isShifted:0},N5)}},hs=gf;function F5(i){Te(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 op(i,e,t){let n=i.slice();return n[16]=e[t].value,n}function lp(i,e,t){let n=i.slice();return n[16]=e[t].value,n[17]=e[t].timeAppeared,n}function rp(i){let e,t;function n(l,a){return l[7]&&l[8]?U5:l[5]?z5:H5}let o=n(i,-1),r=o(i);return{c(){e=T("div"),t=T("span"),r.c(),f(t,"class","caption svelte-ovfyp5"),f(e,"class","subtitles-caption svelte-ovfyp5"),F(e,"mobile",i[3])},m(l,a){S(l,e,a),p(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&&F(e,"mobile",l[3])},d(l){l&&C(e),r.d()}}}function H5(i){let e,t=It(i[1]),n=[];for(let o=0;o<t.length;o+=1)n[o]=sp(op(i,t,o));return{c(){for(let o=0;o<n.length;o+=1)n[o].c();e=ct()},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=It(o[1]);let l;for(l=0;l<t.length;l+=1){let a=op(o,t,l);n[l]?n[l].p(a,r):(n[l]=sp(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),Li(n,o)}}}function z5(i){let e,t,n=It(i[6]),o=[];for(let r=0;r<n.length;r+=1)o[r]=up(lp(i,n,r));return{c(){e=T("span"),t=T("span");for(let r=0;r<o.length;r+=1)o[r].c();f(t,"class","caption-segment svelte-ovfyp5"),ki(t,"font-size",i[4]+"px"),f(e,"class","caption-line svelte-ovfyp5")},m(r,l){S(r,e,l),p(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=It(r[6]);let a;for(a=0;a<n.length;a+=1){let s=lp(r,n,a);o[a]?o[a].p(s,l):(o[a]=up(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&&ki(t,"font-size",r[4]+"px")},d(r){r&&C(e),Li(o,r)}}}function U5(i){let e,t,n=W("subtitles_auto_caption")+"",o;return{c(){e=T("span"),t=T("span"),o=Le(n),f(t,"class","caption-segment svelte-ovfyp5"),ki(t,"font-size",i[4]+"px"),f(e,"class","caption-line svelte-ovfyp5")},m(r,l){S(r,e,l),p(e,t),p(t,o)},p(r,l){l&16&&ki(t,"font-size",r[4]+"px")},d(r){r&&C(e)}}}function sp(i){let e,t,n=i[16]+"",o,r;return{c(){e=T("span"),t=T("span"),o=Le(n),r=q(),f(t,"class","caption-segment svelte-ovfyp5"),ki(t,"font-size",i[4]+"px"),f(e,"class","caption-line svelte-ovfyp5")},m(l,a){S(l,e,a),p(e,t),p(t,o),p(e,r)},p(l,a){a&2&&n!==(n=l[16]+"")&&Ye(o,n),a&16&&ki(t,"font-size",l[4]+"px")},d(l){l&&C(e)}}}function ap(i){let e=i[16]+"",t;return{c(){t=Le(e)},m(n,o){S(n,t,o)},p(n,o){o&64&&e!==(e=n[16]+"")&&Ye(t,e)},d(n){n&&C(t)}}}function up(i){let e,t=(!i[17]||i[17]<=i[2])&&ap(i);return{c(){t&&t.c(),e=ct()},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=ap(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){n&&C(e),t&&t.d(n)}}}function K5(i){let e,t=i[1].length>0&&rp(i);return{c(){e=T("div"),t&&t.c(),f(e,"class","subtitles-container svelte-ovfyp5"),F(e,"shifted",i[0]),F(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=rp(n),t.c(),t.m(e,null)):t&&(t.d(1),t=null),o&1&&F(e,"shifted",n[0]),o&288&&F(e,"auto",n[5]&&!n[8])},i:_e,o:_e,d(n){n&&C(e),t&&t.d()}}}function j5(i,e,t){let n,o,{shifted:r}=e,{captions:l}=e,{position:a}=e,{playerSize:s}=e,{isMobile:u=!1}=e,c=lt(),m=Qt(),h=c.state.currentSubtitle$;H(i,h,b=>t(12,n=b));let k=c.state.isAutoSubtitleCaptionVisible$;H(i,k,b=>t(8,o=b));let g,w,y,P,v;return Ft(()=>{v=window.setTimeout(()=>{k.set(!1)},m.autoSubtitlesTimeout)}),Zn(()=>{window.clearTimeout(v)}),i.$$set=b=>{"shifted"in b&&t(0,r=b.shifted),"captions"in b&&t(1,l=b.captions),"position"in b&&t(2,a=b.position),"playerSize"in b&&t(11,s=b.playerSize),"isMobile"in b&&t(3,u=b.isMobile)},i.$$.update=()=>{if(i.$$.dirty&2048)e:{let b=s.width*.02;t(4,g=b<=m.minSubtitlesFontSize?m.minSubtitlesFontSize:b)}if(i.$$.dirty&2)e:t(5,w=l.some(b=>b.type==="timestamp"));if(i.$$.dirty&2)e:t(6,y=l.reduce((b,{type:I,value:N})=>(I==="timestamp"?b.push({timeAppeared:Number(N),value:""}):b.length===0?b.push({value:String(N)}):b[b.length-1].value=String(N),b),[]));if(i.$$.dirty&4096)e:t(7,P=!!n.isAuto)},[r,l,a,u,g,w,y,P,o,h,k,s,n]}var bf=class extends j{constructor(e){super(),G(this,e,j5,K5,K,{shifted:0,captions:1,position:2,playerSize:11,isMobile:3},F5)}},gs=bf;function W5(i){Te(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 fp(i){let e,t,n;return{c(){e=T("div"),t=Le("\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 "),n=Le(i[1]),f(e,"class","text svelte-1o62kpz")},m(o,r){S(o,e,r),p(e,t),p(e,n)},p(o,r){r&2&&Ye(n,o[1])},d(o){o&&C(e)}}}function G5(i){let e,t,n,o,r,l,a=i[1]&&fp(i);return{c(){e=T("div"),t=T("div"),t.innerHTML='<svg class="icon svelte-1o62kpz" width="22" height="22" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path d="M1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm0-4v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11zm20-7H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="#fff"></path><path d="M0 0h24v24H0z"></path></g></svg>',n=q(),a&&a.c(),f(t,"class","icon_wrapper svelte-1o62kpz"),f(e,"class","wrapper svelte-1o62kpz"),f(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),p(e,t),p(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=fp(s),a.c(),a.m(e,null)):a&&(a.d(1),a=null),u&1&&o!==(o=`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${s[0]||""}')`)&&f(e,"style",o)},i:_e,o:_e,d(s){s&&C(e),a&&a.d(),r=!1,l()}}}function Q5(i,e,t){let{thumbUrl:n}=e,{chromecastDeviceName:o}=e;function r(l){Fn.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 vf=class extends j{constructor(e){super(),G(this,e,Q5,G5,K,{thumbUrl:0,chromecastDeviceName:1},W5)}},bs=vf;function Y5(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"200"},{height:"200"},{"aria-hidden":"true"},{"data-testid":"error-icon"},{viewBox:"460 190 130 90"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=le(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M460 193.998a3.997 3.997 0 0 1 3.997-3.998h122.006a4.003 4.003 0 0 1 3.997 3.998v82.004a3.997 3.997 0 0 1-3.997 3.998H463.997a4.003 4.003 0 0 1-3.997-3.998zm6 2.993c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm112-72c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zM507 232a6 6 0 1 0 0-12 6 6 0 0 0 0 12m36 0a6 6 0 1 0 0-12 6 6 0 0 0 0 12m-18.05 15c6.05 0 11.624 4.446 11.944 4.65 2.106 1.35 3.252.772 3.957.156s1.15-2.806-1.044-4.657c-1.735-1.48-5.806-5.16-14.856-5.15s-12.95 3.5-14.792 5.185c-1.84 1.685-2.288 3.498-.973 4.657s2.315 1.158 4.357-.327c-.007.007 5.357-4.515 11.408-4.515z"),be(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Me(r,o,s,s[1],n?Ae(o,s[1],u,null):Ve(s[1]),null),be(e,a=Re(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 Z5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var yf=class extends j{constructor(e){super(),G(this,e,Z5,Y5,K,{})}},cp=yf;function X5(i){Te(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 J5(i){let e,t,n;return t=new cp({}),{c(){e=T("div"),B(t.$$.fragment),f(e,"class","container svelte-13zpvm8")},m(o,r){S(o,e,r),L(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),R(t)}}}var wf=class extends j{constructor(e){super(),G(this,e,null,J5,K,{},X5)}},vs=wf;function x5(i){Te(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 $5(i){let e,t,n,o,r,l,a,s,u,c;return r=new Cl({}),{c(){e=T("div"),t=T("div"),n=T("div"),o=q(),B(r.$$.fragment),f(n,"class","playButtonBackground svelte-17wno3"),f(t,"class","playButton svelte-17wno3"),f(t,"tabindex","0"),f(t,"role","button"),f(t,"aria-label",l=W("tooltip_play")),f(e,"class","container svelte-17wno3"),f(e,"style",a=`background-color: #222; background-image: url('${i[0]||""}')`),F(e,"hidden",i[1])},m(m,h){S(m,e,h),p(e,t),p(t,n),p(t,o),L(r,t,null),s=!0,u||(c=[de(t,"keydown",i[3]),de(e,"click",ut(function(){Vi(i[2])&&i[2].apply(this,arguments)}))],u=!0)},p(m,[h]){i=m,(!s||h&1&&a!==(a=`background-color: #222; background-image: url('${i[0]||""}')`))&&f(e,"style",a),(!s||h&2)&&F(e,"hidden",i[1])},i(m){s||(d(r.$$.fragment,m),s=!0)},o(m){_(r.$$.fragment,m),s=!1},d(m){m&&C(e),R(r),u=!1,ot(c)}}}function e6(i,e,t){let{thumbUrl:n}=e,{hidden:o}=e,{startVideo:r}=e,a=lt().ui.startedByKeyboard$,s=u=>{let c=u.code;["Enter","Space"].includes(c)&&(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 kf=class extends j{constructor(e){super(),G(this,e,e6,$5,K,{thumbUrl:0,hidden:1,startVideo:2,handlePressKey:3},x5)}get handlePressKey(){return this.$$.ctx[3]}},ys=kf;function t6(i){Te(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 l6(i){let e,t;return{c(){e=T("div"),t=Ve(i[0]),f(e,"class","title svelte-1bcvcf2"),H(e,"hidden",i[1])},m(n,o){S(n,e,o),p(e,t)},p(n,[o]){o&1&&Ye(t,n[0]),o&2&&H(e,"hidden",n[1])},i:he,o:he,d(n){n&&C(e)}}}function r6(i,e,t){let{title:n=""}=e,{isHidden:o=!1}=e;return i.$$set=r=>{"title"in r&&t(0,n=r.title),"isHidden"in r&&t(1,o=r.isHidden)},[n,o]}var wf=class extends W{constructor(e){super(),Q(this,e,r6,l6,j,{title:0,isHidden:1},o6)}},dp=wf;function s6(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 mp(i){let e,t,n,o,r,l,a;return{c(){e=T("div"),t=T("span"),n=Ve(i[0]),o=O(),r=T("span"),r.textContent=`${G("waiting_live_day_value")}`,l=O(),a=T("span"),a.textContent=`${G("waiting_live_colon")}`,f(t,"class","cell__value svelte-1qpxtfg"),f(r,"class","cell__unit svelte-1qpxtfg"),f(e,"class","timer__cell cell svelte-1qpxtfg"),f(a,"class","timer__points svelte-1qpxtfg")},m(s,u){S(s,e,u),p(e,t),p(t,n),p(e,o),p(e,r),S(s,l,u),S(s,a,u)},p(s,u){u&1&&Ye(n,s[0])},d(s){s&&(C(e),C(l),C(a))}}}function pp(i){let e,t,n,o,r,l,a;return{c(){e=T("div"),t=T("span"),n=Ve(i[1]),o=O(),r=T("span"),r.textContent=`${G("waiting_live_hour_value")}`,l=O(),a=T("span"),a.textContent=`${G("waiting_live_colon")}`,f(t,"class","cell__value svelte-1qpxtfg"),f(r,"class","cell__unit svelte-1qpxtfg"),f(e,"class","timer__cell cell svelte-1qpxtfg"),f(a,"class","timer__points svelte-1qpxtfg")},m(s,u){S(s,e,u),p(e,t),p(t,n),p(e,o),p(e,r),S(s,l,u),S(s,a,u)},p(s,u){u&2&&Ye(n,s[1])},d(s){s&&(C(e),C(l),C(a))}}}function _p(i){let e,t,n,o,r,l,a;return{c(){e=T("div"),t=T("span"),n=Ve(i[2]),o=O(),r=T("span"),r.textContent=`${G("waiting_live_minute_value")}`,l=O(),a=T("span"),a.textContent=`${G("waiting_live_colon")}`,f(t,"class","cell__value svelte-1qpxtfg"),f(r,"class","cell__unit svelte-1qpxtfg"),f(e,"class","timer__cell cell svelte-1qpxtfg"),f(a,"class","timer__points svelte-1qpxtfg")},m(s,u){S(s,e,u),p(e,t),p(t,n),p(e,o),p(e,r),S(s,l,u),S(s,a,u)},p(s,u){u&4&&Ye(n,s[2])},d(s){s&&(C(e),C(l),C(a))}}}function hp(i){let e,t,n,o,r;return{c(){e=T("div"),t=T("span"),n=Ve(i[3]),o=O(),r=T("span"),r.textContent=`${G("waiting_live_second_value")}`,f(t,"class","cell__value svelte-1qpxtfg"),f(r,"class","cell__unit svelte-1qpxtfg"),f(e,"class","timer__cell cell svelte-1qpxtfg")},m(l,a){S(l,e,a),p(e,t),p(t,n),p(e,o),p(e,r)},p(l,a){a&8&&Ye(n,l[3])},d(l){l&&C(e)}}}function a6(i){let e,t,n,o,r=i[0]&&mp(i),l=i[1]&&pp(i),a=i[2]&&_p(i),s=i[3]&&hp(i);return{c(){e=T("div"),r&&r.c(),t=O(),l&&l.c(),n=O(),a&&a.c(),o=O(),s&&s.c(),f(e,"class","timer__container svelte-1qpxtfg")},m(u,c){S(u,e,c),r&&r.m(e,null),p(e,t),l&&l.m(e,null),p(e,n),a&&a.m(e,null),p(e,o),s&&s.m(e,null)},p(u,[c]){u[0]?r?r.p(u,c):(r=mp(u),r.c(),r.m(e,t)):r&&(r.d(1),r=null),u[1]?l?l.p(u,c):(l=pp(u),l.c(),l.m(e,n)):l&&(l.d(1),l=null),u[2]?a?a.p(u,c):(a=_p(u),a.c(),a.m(e,o)):a&&(a.d(1),a=null),u[3]?s?s.p(u,c):(s=hp(u),s.c(),s.m(e,null)):s&&(s.d(1),s=null)},i:he,o:he,d(u){u&&C(e),r&&r.d(),l&&l.d(),a&&a.d(),s&&s.d()}}}function u6(i,e,t){let{startTime:n}=e,{onTimerOver:o}=e,r,l,a,s,u,c=w=>String(w).padStart(2,"0"),m=w=>{let g=Math.floor(w/86400);g&&(w-=g*86400,t(0,r=c(g)));let k=Math.floor(w/3600);t(1,l=c(k));let y=Math.floor(w/60)%60;t(2,a=c(y));let I=w%60;t(3,s=c(I))},h=()=>{let w=Math.floor(Date.now()/1e3),g=n-w;m(g),g>=1?u=requestAnimationFrame(h):o()};return Ot(()=>{u=requestAnimationFrame(h)}),Zn(()=>{cancelAnimationFrame(u)}),i.$$set=w=>{"startTime"in w&&t(4,n=w.startTime),"onTimerOver"in w&&t(5,o=w.onTimerOver)},[r,l,a,s,n,o]}var kf=class extends W{constructor(e){super(),Q(this,e,u6,a6,j,{startTime:4,onTimerOver:5},s6)}},gp=kf;function f6(i){let e,t,n,o,r,l,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]],c={};for(let m=0;m<u.length;m+=1)c=re(c,u[m]);return{c(){e=q("svg"),s&&s.c(),t=q("path"),n=q("path"),o=q("path"),r=q("path"),f(t,"fill","#fefffe"),f(t,"d","M179.5-.5h40q127.56 18.67 171.5 140 5.724 19.896 8.5 40v40q-5.549 51.6-35.5 94-9.626-12.614-24.5-18.5-1.526-1.574-.5-3.5 39.742-61.7 23-133Q329.24 50.25 217.5 33 112.126 26.56 55 114.5q-40.395 74.102-9 152a152.3 152.3 0 0 0 14 25q1.026 1.926-.5 3.5-14.874 5.886-24.5 18.5-29.95-42.4-35.5-94v-40Q18.17 51.94 139.5 8q19.896-5.724 40-8.5"),ki(t,"opacity",".965"),f(n,"fill","#fefffe"),f(n,"d","M183.5 63.5q86.294-5.475 133.5 66 32.442 60.138 8 124a186.7 186.7 0 0 1-17.5 29.5 633 633 0 0 1-38-7q54.668-57.264 19.5-128.5Q252.733 91.244 185.5 97q-74.25 14.25-88.5 88.5-5.916 53.38 32.5 90.5a1150 1150 0 0 0-36 7.5q-2.294-.044-3.5-2-43.947-63.646-16-136 32.799-70.278 109.5-82"),ki(n,"opacity",".965"),f(o,"fill","#fefffe"),f(o,"d","M187.5 127.5q66.786-4.422 83.5 60 5.146 66.825-59.5 83.5-66.825 5.146-83.5-59.5-4.844-66.856 59.5-84"),ki(o,"opacity",".985"),f(r,"fill","#fefffe"),f(r,"d","M219.5 399.5h-40q-67.453-7.982-117-54a31.7 31.7 0 0 1 3.5-10q8.539-9.646 20.5-14.5 54.786-19.435 113-17.5 58.214-1.935 113 17.5 11.962 4.854 20.5 14.5a31.7 31.7 0 0 1 3.5 10q-49.547 46.018-117 54"),ki(r,"opacity",".986"),be(e,c)},m(m,h){S(m,e,h),s&&s.m(e,null),p(e,t),p(e,n),p(e,o),p(e,r),l=!0},p(m,[h]){s&&s.p&&(!l||h&2)&&Ae(s,a,m,m[1],l?Ee(a,m[1],h,null):Me(m[1]),null),be(e,c=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&&m[0]]))},i(m){l||(d(s,m),l=!0)},o(m){_(s,m),l=!1},d(m){m&&C(e),s&&s.d(m)}}}function c6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Cf=class extends W{constructor(e){super(),Q(this,e,c6,f6,j,{})}},bp=Cf;function d6(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 m6(i){let e,t,n,o,r;return o=new gp({props:{startTime:i[1]||0,onTimerOver:i[3]}}),{c(){e=T("div"),t=T("span"),t.textContent=`${G("waiting_live_timer_title")}`,n=O(),N(o.$$.fragment),f(t,"class","timer__title svelte-15pewff"),f(e,"class","waiting-timer timer svelte-15pewff")},m(l,a){S(l,e,a),p(e,t),p(e,n),B(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),D(o)}}}function p6(i){let e,t,n,o,r,l;return n=new bp({}),{c(){e=T("div"),t=T("div"),N(n.$$.fragment),o=O(),r=T("span"),r.textContent=`${G("waiting_live_upcoming_title")}`,f(t,"class","upcoming-icon svelte-15pewff"),f(r,"class","upcoming__title svelte-15pewff"),f(e,"class","upcoming svelte-15pewff")},m(a,s){S(a,e,s),p(e,t),B(n,t,null),p(e,o),p(e,r),l=!0},p:he,i(a){l||(d(n.$$.fragment,a),l=!0)},o(a){_(n.$$.fragment,a),l=!1},d(a){a&&C(e),D(n)}}}function _6(i){let e,t,n,o,r,l=[p6,m6],a=[];function s(u,c){return u[2]?0:1}return t=s(i,-1),n=a[t]=l[t](i),{c(){e=T("div"),n.c(),f(e,"class","waiting-container svelte-15pewff"),f(e,"style",o=`background-image: url(${i[2]?"":i[0]})`)},m(u,c){S(u,e,c),a[t].m(e,null),r=!0},p(u,[c]){let m=t;t=s(u,c),t===m?a[t].p(u,c):(ue(),_(a[m],1,1,()=>{a[m]=null}),fe(),n=a[t],n?n.p(u,c):(n=a[t]=l[t](u),n.c()),d(n,1),n.m(e,null)),(!r||c&5&&o!==(o=`background-image: url(${u[2]?"":u[0]})`))&&f(e,"style",o)},i(u){r||(d(n),r=!0)},o(u){_(n),r=!1},d(u){u&&C(e),a[t].d()}}}function h6(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 Sf=class extends W{constructor(e){super(),Q(this,e,h6,_6,j,{thumbUrl:0,startTime:1},d6)}},vs=Sf;function g6(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 b6(i){let e,t;return{c(){e=T("div"),t=T("p"),t.textContent=`${G("waiting_record_title")}`,f(t,"class","waiting-title svelte-1bcnzdw"),f(e,"class","waiting-container svelte-1bcnzdw")},m(n,o){S(n,e,o),p(e,t)},p:he,i:he,o:he,d(n){n&&C(e)}}}var Tf=class extends W{constructor(e){super(),Q(this,e,null,b6,j,{},g6)}},ys=Tf;var{window:v6}=Oo;function y6(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 yp(i){var n;let e,t;return e=new vs({props:{thumbUrl:i[3],startTime:(n=i[4])==null?void 0:n.startTime}}),{c(){N(e.$$.fragment)},m(o,r){B(e,o,r),t=!0},p(o,r){var a;let l={};r[0]&8&&(l.thumbUrl=o[3]),r[0]&16&&(l.startTime=(a=o[4])==null?void 0:a.startTime),e.$set(l)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){_(e.$$.fragment,o),t=!1},d(o){D(e,o)}}}function wp(i){let e,t;return e=new ys({}),{c(){N(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function kp(i){let e,t,n;return t=new Cr({props:{adsSlotId:i[8],adsParams:i[9],adsPreviewParam:i[10],duration:i[11]}}),{c(){e=T("div"),N(t.$$.fragment),f(e,"class","ads-container svelte-1o4wf3x"),H(e,"hidden",i[38]!=="ads")},m(o,r){S(o,e,r),B(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)&&H(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),D(t)}}}function Cp(i){let e,t;return e=new D1({props:{title:i[18],thumb:i[19],playNextVideo:i[23]}}),{c(){N(e.$$.fragment)},m(n,o){B(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){D(e,n)}}}function Sp(i){let e,t;return e=new dp({props:{title:i[2],isHidden:!i[36]}}),{c(){N(e.$$.fragment)},m(n,o){B(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){D(e,n)}}}function Tp(i){let e,t;return e=new ps({props:{isShifted:i[38]==="video"&&i[36]}}),{c(){N(e.$$.fragment)},m(n,o){B(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){D(e,n)}}}function Pp(i){let e,t,n;return t=new pr({props:{"aria-label":G("video360")}}),{c(){e=T("div"),N(t.$$.fragment),f(e,"class","spherical-video-icon svelte-1o4wf3x")},m(o,r){S(o,e,r),B(t,e,null),n=!0},p:he,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&C(e),D(t)}}}function Ip(i){let e,t;return e=new hs({props:{thumbUrl:i[3],chromecastDeviceName:i[54]}}),{c(){N(e.$$.fragment)},m(n,o){B(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){D(e,n)}}}function Ep(i){let e,t;return e=new _s({props:{shifted:i[36],captions:i[56],position:i[57],playerSize:i[34]}}),{c(){N(e.$$.fragment)},m(n,o){B(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){D(e,n)}}}function Ap(i){let e,t,n,o,r;return t=new gs({}),{c(){e=T("div"),N(t.$$.fragment)},m(l,a){S(l,e,a),B(t,e,null),n=!0,o||(r=[me(e,"contextmenu",qt(i[108])),me(e,"click",ft(i[119]))],o=!0)},p:he,i(l){n||(d(t.$$.fragment,l),n=!0)},o(l){_(t.$$.fragment,l),n=!1},d(l){l&&C(e),D(t),o=!1,nt(r)}}}function Mp(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 ms({props:r}),pe.push(()=>De(e,"controlsElementRef",o)),{c(){N(e.$$.fragment)},m(l,a){B(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],Be(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){D(e,l)}}}function Vp(i){let e,t;return e=new Lr({}),{c(){N(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Lp(i){let e,t;return e=new G1({}),{c(){N(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Rp(i){let e,t;return e=new Ar({}),{c(){N(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Bp(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,g,k,y,I,v,b,E,A,L,R,le;e=new bs({props:{hidden:i[38]!=="thumb"||i[37]||i[92]&&i[5],thumbUrl:i[3],startVideo:i[29]}});let ae=i[38]==="waitingLive"&&yp(i),Y=i[38]==="waitingRecord"&&wp(i),V=i[7]&&i[22]&&kp(i),ee=i[31]&&i[18]&&i[19]&&Cp(i),X=i[44]&&Sp(i),se=i[49]&&Tp(i),F=i[53]&&Pp(i),ne=i[39]&&Ip(i),P=i[55].value!=="off"&&Ep(i),U=i[37]&&Ap(i),we=i[22]&&Mp(i);g=new Tr({props:{isLive:i[59],isHidden:!i[43],isPlaying:i[51],position:i[57],duration:i[60]}}),y=new np({props:{data:i[103]}});function qe(J){i[159](J)}let Ze={supportLink:i[21],returnFocus:i[158],visible:i[33],playerContainerRef:i[40],controlsContainerRef:i[41],position:i[61]};i[32]!==void 0&&(Ze.menuElementRef=i[32]),v=new _1({props:Ze}),pe.push(()=>De(v,"menuElementRef",qe));let Xe=i[42]&&Vp(i),He=i[62]&&Lp(i),ye=i[63]&&Rp(i);return{c(){N(e.$$.fragment),t=O(),ae&&ae.c(),n=O(),Y&&Y.c(),o=O(),V&&V.c(),r=O(),ee&&ee.c(),l=O(),X&&X.c(),a=O(),se&&se.c(),s=O(),F&&F.c(),u=O(),ne&&ne.c(),c=O(),P&&P.c(),m=O(),U&&U.c(),h=O(),we&&we.c(),w=O(),N(g.$$.fragment),k=O(),N(y.$$.fragment),I=O(),N(v.$$.fragment),E=O(),Xe&&Xe.c(),A=O(),He&&He.c(),L=O(),ye&&ye.c(),R=dt()},m(J,ke){B(e,J,ke),S(J,t,ke),ae&&ae.m(J,ke),S(J,n,ke),Y&&Y.m(J,ke),S(J,o,ke),V&&V.m(J,ke),S(J,r,ke),ee&&ee.m(J,ke),S(J,l,ke),X&&X.m(J,ke),S(J,a,ke),se&&se.m(J,ke),S(J,s,ke),F&&F.m(J,ke),S(J,u,ke),ne&&ne.m(J,ke),S(J,c,ke),P&&P.m(J,ke),S(J,m,ke),U&&U.m(J,ke),S(J,h,ke),we&&we.m(J,ke),S(J,w,ke),B(g,J,ke),S(J,k,ke),B(y,J,ke),S(J,I,ke),B(v,J,ke),S(J,E,ke),Xe&&Xe.m(J,ke),S(J,A,ke),He&&He.m(J,ke),S(J,L,ke),ye&&ye.m(J,ke),S(J,R,ke),le=!0},p(J,ke){let it={};ke[0]&32|ke[1]&192&&(it.hidden=J[38]!=="thumb"||J[37]||J[92]&&J[5]),ke[0]&8&&(it.thumbUrl=J[3]),ke[0]&536870912&&(it.startVideo=J[29]),e.$set(it),J[38]==="waitingLive"?ae?(ae.p(J,ke),ke[1]&128&&d(ae,1)):(ae=yp(J),ae.c(),d(ae,1),ae.m(n.parentNode,n)):ae&&(ue(),_(ae,1,1,()=>{ae=null}),fe()),J[38]==="waitingRecord"?Y?ke[1]&128&&d(Y,1):(Y=wp(J),Y.c(),d(Y,1),Y.m(o.parentNode,o)):Y&&(ue(),_(Y,1,1,()=>{Y=null}),fe()),J[7]&&J[22]?V?(V.p(J,ke),ke[0]&4194432&&d(V,1)):(V=kp(J),V.c(),d(V,1),V.m(r.parentNode,r)):V&&(ue(),_(V,1,1,()=>{V=null}),fe()),J[31]&&J[18]&&J[19]?ee?(ee.p(J,ke),ke[0]&786432|ke[1]&1&&d(ee,1)):(ee=Cp(J),ee.c(),d(ee,1),ee.m(l.parentNode,l)):ee&&(ue(),_(ee,1,1,()=>{ee=null}),fe()),J[44]?X?(X.p(J,ke),ke[1]&8192&&d(X,1)):(X=Sp(J),X.c(),d(X,1),X.m(a.parentNode,a)):X&&(ue(),_(X,1,1,()=>{X=null}),fe()),J[49]?se?(se.p(J,ke),ke[1]&262144&&d(se,1)):(se=Tp(J),se.c(),d(se,1),se.m(s.parentNode,s)):se&&(ue(),_(se,1,1,()=>{se=null}),fe()),J[53]?F?(F.p(J,ke),ke[1]&4194304&&d(F,1)):(F=Pp(J),F.c(),d(F,1),F.m(u.parentNode,u)):F&&(ue(),_(F,1,1,()=>{F=null}),fe()),J[39]?ne?(ne.p(J,ke),ke[1]&256&&d(ne,1)):(ne=Ip(J),ne.c(),d(ne,1),ne.m(c.parentNode,c)):ne&&(ue(),_(ne,1,1,()=>{ne=null}),fe()),J[55].value!=="off"?P?(P.p(J,ke),ke[1]&16777216&&d(P,1)):(P=Ep(J),P.c(),d(P,1),P.m(m.parentNode,m)):P&&(ue(),_(P,1,1,()=>{P=null}),fe()),J[37]?U?(U.p(J,ke),ke[1]&64&&d(U,1)):(U=Ap(J),U.c(),d(U,1),U.m(h.parentNode,h)):U&&(ue(),_(U,1,1,()=>{U=null}),fe()),J[22]?we?(we.p(J,ke),ke[0]&4194304&&d(we,1)):(we=Mp(J),we.c(),d(we,1),we.m(w.parentNode,w)):we&&(ue(),_(we,1,1,()=>{we=null}),fe());let Oe={};ke[1]&268435456&&(Oe.isLive=J[59]),ke[1]&4096&&(Oe.isHidden=!J[43]),ke[1]&1048576&&(Oe.isPlaying=J[51]),ke[1]&67108864&&(Oe.position=J[57]),ke[1]&536870912&&(Oe.duration=J[60]),g.$set(Oe);let rt={};ke[0]&2097152&&(rt.supportLink=J[21]),ke[1]&131072&&(rt.returnFocus=J[158]),ke[1]&4&&(rt.visible=J[33]),ke[1]&512&&(rt.playerContainerRef=J[40]),ke[1]&1024&&(rt.controlsContainerRef=J[41]),ke[1]&1073741824&&(rt.position=J[61]),!b&&ke[1]&2&&(b=!0,rt.menuElementRef=J[32],Be(()=>b=!1)),v.$set(rt),J[42]?Xe?ke[1]&2048&&d(Xe,1):(Xe=Vp(J),Xe.c(),d(Xe,1),Xe.m(A.parentNode,A)):Xe&&(ue(),_(Xe,1,1,()=>{Xe=null}),fe()),J[62]?He?ke[2]&1&&d(He,1):(He=Lp(J),He.c(),d(He,1),He.m(L.parentNode,L)):He&&(ue(),_(He,1,1,()=>{He=null}),fe()),J[63]?ye?ke[2]&2&&d(ye,1):(ye=Rp(J),ye.c(),d(ye,1),ye.m(R.parentNode,R)):ye&&(ue(),_(ye,1,1,()=>{ye=null}),fe())},i(J){le||(d(e.$$.fragment,J),d(ae),d(Y),d(V),d(ee),d(X),d(se),d(F),d(ne),d(P),d(U),d(we),d(g.$$.fragment,J),d(y.$$.fragment,J),d(v.$$.fragment,J),d(Xe),d(He),d(ye),le=!0)},o(J){_(e.$$.fragment,J),_(ae),_(Y),_(V),_(ee),_(X),_(se),_(F),_(ne),_(P),_(U),_(we),_(g.$$.fragment,J),_(y.$$.fragment,J),_(v.$$.fragment,J),_(Xe),_(He),_(ye),le=!1},d(J){J&&(C(t),C(n),C(o),C(r),C(l),C(a),C(s),C(u),C(c),C(m),C(h),C(w),C(k),C(I),C(E),C(A),C(L),C(R)),D(e,J),ae&&ae.d(J),Y&&Y.d(J),V&&V.d(J),ee&&ee.d(J),X&&X.d(J),se&&se.d(J),F&&F.d(J),ne&&ne.d(J),P&&P.d(J),U&&U.d(J),we&&we.d(J),D(g,J),D(y,J),D(v,J),Xe&&Xe.d(J),He&&He.d(J),ye&&ye.d(J)}}}function w6(i){let e,t,n,o,r=i[52],l,a,s,u,c=Bp(i);return{c(){e=T("div"),t=T("div"),o=O(),c.c(),l=dt(),f(t,"class","video-container svelte-1o4wf3x"),f(t,"style",n=`transform: rotate(${i[35]}deg) scale(${i[46]})`),f(t,"data-testid","video-container"),f(t,"data-is-playing",i[51]),H(t,"fast-rotate",!i[1].isSmoothVideoRotate),f(e,"class","video-wrapper svelte-1o4wf3x"),H(e,"hidden",i[38]!=="video"),H(e,"nocursor",i[45])},m(m,h){S(m,e,h),p(e,t),i[155](t),S(m,o,h),c.m(m,h),S(m,l,h),a=!0,s||(u=[me(e,"contextmenu",qt(i[108])),me(e,"mousedown",qt(i[113])),me(e,"mouseup",qt(i[114])),me(e,"click",qt(i[116])),me(e,"dblclick",qt(i[115]))],s=!0)},p(m,h){(!a||h[1]&32784&&n!==(n=`transform: rotate(${m[35]}deg) scale(${m[46]})`))&&f(t,"style",n),(!a||h[1]&1048576)&&f(t,"data-is-playing",m[51]),(!a||h[0]&2)&&H(t,"fast-rotate",!m[1].isSmoothVideoRotate),(!a||h[1]&128)&&H(e,"hidden",m[38]!=="video"),(!a||h[1]&16384)&&H(e,"nocursor",m[45]),h[1]&2097152&&j(r,r=m[52])?(ue(),_(c,1,1,he),fe(),c=Bp(m),c.c(),d(c,1),c.m(l.parentNode,l)):c.p(m,h)},i(m){a||(d(c),a=!0)},o(m){_(c),a=!1},d(m){m&&(C(e),C(o),C(l)),i[155](null),c.d(m),s=!1,nt(u)}}}function k6(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:[w6]},$$scope:{ctx:i}};return t=new q1({props:s}),i[160](t),{c(){e=T("div"),N(t.$$.fragment),n=O(),o=T("div"),f(o,"class","overlay-container"),f(e,"class","player-wrapper svelte-1o4wf3x")},m(u,c){S(u,e,c),B(t,e,null),p(e,n),p(e,o),i[161](o),i[162](e),r=!0,l||(a=[me(v6,"blur",i[107]),me(e,"mouseenter",i[109]),me(e,"mouseleave",i[111]),me(e,"mousemove",i[112]),me(e,"click",i[120],!0),me(e,"focusin",i[110],!0)],l=!0)},p(u,c){let m={};c[1]&128&&(m.isAds=u[38]==="ads"),c[1]&65536&&(m.fakePlayButtonHandler=u[47]?u[105]:void 0),c[0]&1073741823|c[1]&2147418111|c[2]&3|c[6]&4&&(m.$$scope={dirty:c,ctx:u}),t.$set(m)},i(u){r||(d(t.$$.fragment,u),r=!0)},o(u){_(t.$$.fragment,u),r=!1},d(u){u&&C(e),i[160](null),D(t),i[161](null),i[162](null),l=!1,nt(a)}}}var Np=!0;function Pf(i){return i?i.offsetTop+Pf(i.offsetParent):0}function qp(i){return i?i.offsetLeft+qp(i.offsetParent):0}function C6(i,e,t){let n,o,r,l,a,s,u,c,m,h,w,g,k,y,I,v,b,E,A,L,R,le,ae,Y,V,ee,X,se,F,ne,P,U,we,qe,Ze,Xe,He,ye,J,ke,it,Oe,rt,{store:Ce}=e,{uiConfig:Je}=e,{title:at}=e,{thumbUrl:Ge}=e,{videoContainer:Ke}=e,{interactiveContainer:$e}=e,{live:de}=e,{autoplay:Ne}=e,{canRewindLive:Te}=e,{showAds:ze}=e,{adsSlotId:K=void 0}=e,{adsParams:ve=void 0}=e,{adsPreviewParam:et=void 0}=e,{duration:_t=void 0}=e,{logoClickable:vt}=e,{logoHidden:ce}=e,{logoTargetUrl:bt=""}=e,{showNextPrevButtons:Mt=!1}=e,{nextButtonActive:St=!1}=e,{prevButtonActive:je=!1}=e,{endScreenVideoTitle:jt=void 0}=e,{endScreenVideoThumb:Vt=void 0}=e,{isOneVideoPlaylist:Pt=!1}=e,{supportLink:oi}=e,{shadowRootContainer:Bt=void 0}=e,{outerContainerRef:Dt=void 0}=e,{playerStarted:_e=!1}=e,{fullScreenTarget:We=void 0}=e,{showMiniTimer:xe=!1}=e,{playNextVideo:lt=ws.noop}=e,{playPrevVideo:ht=ws.noop}=e,{repeatPlaylist:Gt=ws.noop}=e,{seekToInteractive:_i}=e,{toggleGraph:Nt}=e,{playPrevChapter:Yi}=e,{firstStart:an}=e,ai=Ce.getLogger().createComponentLog("Root component"),Di=Ce.interfaceLanguage$;z(i,Di,Z=>t(52,U=Z));let kn=Ce.state.playbackState$;z(i,kn,Z=>t(152,se=Z));let Ti=Ce.ads.playbackState;z(i,Ti,Z=>t(153,F=Z));let un=Ce.state.positionWithScrubbing$;z(i,un,Z=>t(57,He=Z));let hi=Ce.state.duration$;z(i,hi,Z=>t(60,ke=Z));let Ni=Ce.playerPhase;z(i,Ni,Z=>t(38,ae=Z));let gi=Ce.ui.isFullscreen;z(i,gi,Z=>t(142,g=Z));let Pi=Ce.ui.controlsVisible;z(i,Pi,Z=>t(36,E=Z));let bi=Ce.ui.settingsMenuVisible;z(i,bi,Z=>t(140,s=Z));let Ii=Ce.ui.scrubbingInProgress;z(i,Ii,Z=>t(144,v=Z));let Ht=Ce.ui.contextMenu.visible$;z(i,Ht,Z=>t(33,n=Z));let zt=Ce.ui.debugPanelVisible;z(i,zt,Z=>t(63,rt=Z));let fn=Ce.state.isLoaderVisible;z(i,fn,Z=>t(154,ne=Z));let Zi=Ce.state.isEnded$;z(i,Zi,Z=>t(141,c=Z));let ui=Ce.state.chromecastConnected$;z(i,ui,Z=>t(39,ee=Z));let Ei=Ce.state.chromecastDeviceName$;z(i,Ei,Z=>t(54,qe=Z));let Xi=Ce.ads.postrollPassed;z(i,Xi,Z=>t(147,R=Z));let qi=Ce.state.isLive$;z(i,qi,Z=>t(59,J=Z));let yt=Ce.state.isPlaying$;z(i,yt,Z=>t(51,P=Z));let cn=Ce.state.crashed$;z(i,cn,Z=>t(37,L=Z));let It=Ce.webApi.pictureInPictureApi,Oi=Ce.state.currentSubtitle$;z(i,Oi,Z=>t(55,Ze=Z));let Ji=Ce.state.currentSubtitleCaptions$;z(i,Ji,Z=>t(56,Xe=Z));let xi=Ce.state.duration$;z(i,xi,Z=>t(58,ye=Z));let ii=Ce.state.graphIsOpened$;z(i,ii,Z=>t(148,le=Z));let vi=Ce.ui.playerSize;z(i,vi,Z=>t(34,h=Z));let yi=Ce.ui.is3DVideo;z(i,yi,Z=>t(49,m=Z));let fi=Ce.ui.icon3DVideoVisible;z(i,fi,Z=>t(53,we=Z));let li=Ce.ui.rotateAlpha;z(i,li,Z=>t(35,I=Z));let Ut=Ce.state.isInteractive,ci=Ce.state.isInteractiveTime$;z(i,ci,Z=>t(145,b=Z));let Fi=Ce.state.isInteractiveExpectation$;z(i,Fi,Z=>t(151,X=Z));let Ai=Ce.state.hasInteractiveBranches,ri=Ce.ui.touched;z(i,ri,Z=>t(149,Y=Z));let di=Ce.ui.modals.hotKeyMap.data;z(i,di,Z=>t(169,u=Z));let $i=Ce.ui.modals.hotKeyMap.show;z(i,$i,Z=>t(62,Oe=Z));let en=Ce.ui.overlayContainer$,Cn=Ce.ui.controls.interactiveTimeIndicator;z(i,Cn,Z=>t(170,w=Z));let tn=Ce.state.showInteractiveTimeIndicator,Qt=Ce.ui.contextMenu.position$;z(i,Qt,Z=>t(61,it=Z));let Yt=Ce.actions.internal.closeSettingsMenu,{fakeIsPlaying$:Mi}=Qn();z(i,Mi,Z=>t(143,y=Z));let mi,nn,Hi,dn,Vi;di.set(Gc());let zi,ot,pi=Re(!1);z(i,pi,Z=>t(50,k=Z));let si,Fe=Re(!1);z(i,Fe,Z=>t(150,V=Z));let Ui=Re(),Sn=Re(!1);z(i,Sn,Z=>t(146,A=Z));let on=!1,Ki=!1,ln,rn,Tn,Mn,Jt,ji,mn=!1,Dn,pn=!1,{toggle:_n}=Mi,Pn=!1,xt=null,ni;It==null||It.setContext(Fl());let Nn=()=>{Ne&&!Ut&&Xt(Je.controls.hideTimeout)};Ce.setUiCallbacks({onStarted:Nn});let qn=()=>{window.clearTimeout(Hi),Fe.set(!1)},On=()=>{window.clearTimeout(dn),Ui.set(null)},Xt=Z=>{qn(),Fe.set(!0),Hi=window.setTimeout(()=>Fe.set(!1),Z);let Et=Z-100;si=window.setTimeout(()=>{k&&pi.set(!1)},Et>0?Et:Z)},jn=(Z,Et)=>{On(),Ui.set(Et),dn=window.setTimeout(()=>Ui.set(null),Z)},Vn=yi.subscribe(Z=>{fi.set(Z),Z&&(window.clearTimeout(Vi),Vi=window.setTimeout(()=>fi.set(!1),Je.controls.hide360IconTimeout))}),hn=()=>ct(this,null,function*(){var Et,Gi,vn,eo;let Z=ko();if(Z){let Gn=Kl(),so=Ln();Z=Gn===so||Gn===Bt}if(Z){Xt(Je.controls.hideTimeoutFullscreen);try{yield It==null?void 0:It.remove()}catch(Gn){ai({message:String(Gn)})}}gi.set(Z),Ce.getAdmanWrapper().setFullscreen(Z),g?(Gi=(Et=Ce.callbacks)==null?void 0:Et.onFullscreenEnter)==null||Gi.call(Et):(eo=(vn=Ce.callbacks)==null?void 0:vn.onFullscreenExit)==null||eo.call(vn)}),Wn=Z=>{let Et=Z;vi.set({width:Et.target.width,height:Et.target.height})};Ot(()=>{var Et;return wr(hn),Qo(It)&&(It==null||It.assignPlayerContainer(mi),It==null||It.registryExternalEventHandlers({resize:Wn})),$e&&((Et=Ke.parentElement)==null||Et.insertBefore($e,Ke.nextSibling)),()=>{window.clearTimeout(Hi),window.clearTimeout(si),window.clearTimeout(dn),window.clearTimeout(Vi),Vn(),It==null||It.dispose(),kr(hn)}});let Ln=()=>{let Z=Dt!=null?Dt:mi,Et=Z.getRootNode(),Gi=Et instanceof ShadowRoot?Et.host:Et,vn=We instanceof HTMLElement&&We.contains(Gi);return Je.allowChangingFullscreenTarget&&We&&vn?We:Z},In=()=>ct(this,null,function*(){ko()?(yield yr(document),ai({message:"exit fullscreen"})):(ai({message:"request fullscreen"}),yield vr(Ln()))}),Wi=()=>{Yt(),Ht.set(!1)},gn=Z=>{Ht.set(!0),Qt.set({left:Z.clientX,top:Z.clientY})};function En(){Sn.set(!0),Ut||Xt(Je.controls.hideTimeoutCursor)}function ie(){Ut||(pi.set(!0),Xt(Je.controls.hideTimeoutCursor))}function x(){Sn.set(!1),t(132,Ki=!1),t(131,on=!1),Pn=!1,Ce.actions.internal.releaseCamera()}function mt(Z){if(w&&tn){let Et=Z.currentTarget,Gi=Pf(Et),vn=qp(Et),eo=Z.pageX-vn,Gn=Z.pageY-Gi,{left:so,bottom:kt,right:vo}=w,ao=vo-so;return eo>=so-ao&&Gn<=kt+ao}}function Wt(Z){if(mi){let Et=Pf(Z.currentTarget),Gi=h.height,vn=Z.pageY-Et;if(mt(Z)){t(132,Ki=!1);return}vn<40?t(132,Ki=!0):vn>Gi-40?t(131,on=!0):(t(132,Ki=!1),s||t(131,on=!1))}}function bn(Z){Wt(Z),rn||Xt(Je.controls.hideTimeoutCursor),m&&Pn&&xt&&Ce.actions.internal.moveCameraFocusPX(xt.clientX-Z.clientX,xt.clientY-Z.clientY,Z.timeStamp-xt.timeStamp),xt=Z}let wi=Z=>{Z.button===0&&(Pn=!0,Ce.actions.internal.holdCamera()),Xt(Je.controls.hideTimeoutCursor)},Yn=Z=>{Z.button===0&&(xt=Z,Pn=!1,Ce.actions.internal.releaseCamera()),Xt(Je.controls.hideTimeoutCursor)},oo=()=>{Np&&(ai({message:"double click on video"}),In(),Xt(Je.controls.hideTimeoutCursor))},Rn=()=>{if(n||s){Wi();return}if(!(c&&!Ai)){if(pn)return _n();if(ni==null||ni.focus(),!_e){an(),Xt(Je.controls.hideTimeoutCursor);return}Ce.actions.internal.togglePlay(),Xt(Je.controls.hideTimeoutCursor)}},lo=Z=>{Wi(),ri.set(!0),Xt(Je.controls.hideTimeout),Z&&jn(Je.controls.hideHotKeyHelpers,Z)},te=()=>{var Z,Et;Wi(),(Z=Ce.callbacks)!=null&&Z.onOpenHotKeyMap?(Et=Ce.callbacks)==null||Et.onOpenHotKeyMap(u):$i.update(Gi=>!Gi)},Mo=()=>{if(n||s){Wi();return}},Dl=()=>{ri.set(!0)},Vo=Ce.ui.contextMenu.openedByBtnKeyboard$;z(i,Vo,Z=>t(139,a=Z));let Lo=Ce.ui.contextMenu.btnRef$;z(i,Lo,Z=>t(138,l=Z));let ro,ho=Ce.ui.contextMenu.openedByHotKey$;z(i,ho,Z=>t(137,r=Z));let Ro=Ce.ui.contextMenu.lastActiveElem$;z(i,Ro,Z=>t(136,o=Z));function tl(Z){pe[Z?"unshift":"push"](()=>{Ke=Z,t(0,Ke)})}let go=()=>ni==null?void 0:ni.focus();function bo(Z){nn=Z,t(41,nn)}let Bo=()=>ni==null?void 0:ni.focus();function Do(Z){ro=Z,t(32,ro)}function No(Z){pe[Z?"unshift":"push"](()=>{ni=Z,t(48,ni)})}function il(Z){pe[Z?"unshift":"push"](()=>{ot=Z,t(30,ot)})}function nl(Z){pe[Z?"unshift":"push"](()=>{mi=Z,t(40,mi)})}return i.$$set=Z=>{"store"in Z&&t(125,Ce=Z.store),"uiConfig"in Z&&t(1,Je=Z.uiConfig),"title"in Z&&t(2,at=Z.title),"thumbUrl"in Z&&t(3,Ge=Z.thumbUrl),"videoContainer"in Z&&t(0,Ke=Z.videoContainer),"interactiveContainer"in Z&&t(126,$e=Z.interactiveContainer),"live"in Z&&t(4,de=Z.live),"autoplay"in Z&&t(5,Ne=Z.autoplay),"canRewindLive"in Z&&t(6,Te=Z.canRewindLive),"showAds"in Z&&t(7,ze=Z.showAds),"adsSlotId"in Z&&t(8,K=Z.adsSlotId),"adsParams"in Z&&t(9,ve=Z.adsParams),"adsPreviewParam"in Z&&t(10,et=Z.adsPreviewParam),"duration"in Z&&t(11,_t=Z.duration),"logoClickable"in Z&&t(12,vt=Z.logoClickable),"logoHidden"in Z&&t(13,ce=Z.logoHidden),"logoTargetUrl"in Z&&t(14,bt=Z.logoTargetUrl),"showNextPrevButtons"in Z&&t(15,Mt=Z.showNextPrevButtons),"nextButtonActive"in Z&&t(16,St=Z.nextButtonActive),"prevButtonActive"in Z&&t(17,je=Z.prevButtonActive),"endScreenVideoTitle"in Z&&t(18,jt=Z.endScreenVideoTitle),"endScreenVideoThumb"in Z&&t(19,Vt=Z.endScreenVideoThumb),"isOneVideoPlaylist"in Z&&t(20,Pt=Z.isOneVideoPlaylist),"supportLink"in Z&&t(21,oi=Z.supportLink),"shadowRootContainer"in Z&&t(127,Bt=Z.shadowRootContainer),"outerContainerRef"in Z&&t(128,Dt=Z.outerContainerRef),"playerStarted"in Z&&t(22,_e=Z.playerStarted),"fullScreenTarget"in Z&&t(129,We=Z.fullScreenTarget),"showMiniTimer"in Z&&t(130,xe=Z.showMiniTimer),"playNextVideo"in Z&&t(23,lt=Z.playNextVideo),"playPrevVideo"in Z&&t(24,ht=Z.playPrevVideo),"repeatPlaylist"in Z&&t(25,Gt=Z.repeatPlaylist),"seekToInteractive"in Z&&t(26,_i=Z.seekToInteractive),"toggleGraph"in Z&&t(27,Nt=Z.toggleGraph),"playPrevChapter"in Z&&t(28,Yi=Z.playPrevChapter),"firstStart"in Z&&t(29,an=Z.firstStart)},i.$$.update=()=>{if(i.$$.dirty[1]&192|i.$$.dirty[4]&1610612736)e:t(42,zi=(ae==="video"&&ne||ae==="ads"&&F==="inactive")&&!L);if(i.$$.dirty[0]&1073741824)e:en.set(ot);if(i.$$.dirty[4]&268435456)e:t(133,ln=se!==Dp.PlaybackState.PLAYING);if(i.$$.dirty[4]&136381312)e:t(134,rn=b&&!s&&!(on||Ki)&&!(ln&&!X));if(i.$$.dirty[1]&448|i.$$.dirty[4]&68224512)e:Pi.set((ln||s||v||ee||V)&&!rn&&(ae==="video"||ae==="ads")&&!L);if(i.$$.dirty[0]&2|i.$$.dirty[1]&224|i.$$.dirty[4]&33554496)e:t(43,Tn=Je.features.thumbTimer&&xe&&ae==="video"&&!E&&!L&&!Ut&&(Je.hideThumbTimerAfterTouch&&!Y||!Je.hideThumbTimerAfterTouch));if(i.$$.dirty[1]&128|i.$$.dirty[4]&17039360)e:t(44,Mn=ae==="video"&&!le&&g);if(i.$$.dirty[0]&128|i.$$.dirty[1]&64|i.$$.dirty[4]&8519680)e:t(31,Jt=(ze&&R||!ze)&&c&&!L);if(i.$$.dirty[1]&33|i.$$.dirty[4]&6291456)e:t(45,ji=A&&!(E||Jt)&&!b);if(i.$$.dirty[0]&2|i.$$.dirty[4]&3147776)e:!v&&mn&&!b&&Xt(Je.controls.hideTimeoutCursor),t(135,mn=v);if(i.$$.dirty[0]&1|i.$$.dirty[1]&24)e:t(46,Dn=Ke&&I%180?h.height/h.width:1);if(i.$$.dirty[4]&524288)e:t(47,pn=y!==null);if(i.$$.dirty[1]&6|i.$$.dirty[4]&32768)e:Xo(ro,n,a);if(i.$$.dirty[1]&4|i.$$.dirty[4]&16384)e:{let Z=l;Z&&bl(Z,n,Vo)}if(i.$$.dirty[1]&6|i.$$.dirty[4]&8192)e:Xo(ro,n,r);if(i.$$.dirty[1]&4|i.$$.dirty[4]&4096)e:{let Z=o;Z&&a1(Z,n,ho)}},[Ke,Je,at,Ge,de,Ne,Te,ze,K,ve,et,_t,vt,ce,bt,Mt,St,je,jt,Vt,Pt,oi,_e,lt,ht,Gt,_i,Nt,Yi,an,ot,Jt,ro,n,h,I,E,L,ae,ee,mi,nn,zi,Tn,Mn,ji,Dn,pn,ni,m,k,P,U,we,qe,Ze,Xe,He,ye,J,ke,it,Oe,rt,Di,kn,Ti,un,hi,Ni,gi,Pi,bi,Ii,Ht,zt,fn,Zi,ui,Ei,Xi,qi,yt,cn,Oi,Ji,xi,ii,vi,yi,fi,li,Ut,ci,Fi,ri,di,$i,Cn,Qt,Mi,pi,Fe,Ui,Sn,_n,In,Wi,gn,En,ie,x,bn,wi,Yn,oo,Rn,lo,te,Mo,Dl,Vo,Lo,ho,Ro,Ce,$e,Bt,Dt,We,xe,on,Ki,ln,rn,mn,o,r,l,a,s,c,g,y,v,b,A,R,le,Y,V,X,se,F,ne,tl,go,bo,Bo,Do,No,il,nl]}var If=class extends W{constructor(e){super(),Q(this,e,C6,k6,j,{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])}},Op=If;var n_=require("@vkontakte/videoplayer-core"),_o=require("@vkontakte/videoplayer-shared");var Al=require("@vkontakte/videoplayer-shared"),Fp=i=>{if(!(0,Al.isIOS)(!0))return!1;let e=i.device===Al.CurrentClientDevice.iPad||(window==null?void 0:window.screen.width)>700,t=(0,Al.getIOSVersion)();return!e||e&&!!t&&t<16};function S6(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 Hp(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,g,k,y=G("doubletap_seek_step",{seconds:i[1].toFixed(0)})+"",I;return{c(){e=T("div"),n=O(),o=T("div"),r=T("div"),l=T("div"),s=O(),u=T("div"),m=O(),h=T("div"),g=O(),k=T("p"),I=Ve(y),f(e,"class",t="semicircle "+i[0]+" svelte-nhq2ld"),f(l,"class",a="triangle "+i[0]+" svelte-nhq2ld"),f(u,"class",c="triangle "+i[0]+" svelte-nhq2ld"),f(h,"class",w="triangle "+i[0]+" svelte-nhq2ld"),f(r,"class","triangles-wrapper svelte-nhq2ld"),f(k,"class","step-caption svelte-nhq2ld"),f(o,"class","info svelte-nhq2ld")},m(v,b){S(v,e,b),S(v,n,b),S(v,o,b),p(o,r),p(r,l),p(r,s),p(r,u),p(r,m),p(r,h),p(o,g),p(o,k),p(k,I)},p(v,b){b&1&&t!==(t="semicircle "+v[0]+" svelte-nhq2ld")&&f(e,"class",t),b&1&&a!==(a="triangle "+v[0]+" svelte-nhq2ld")&&f(l,"class",a),b&1&&c!==(c="triangle "+v[0]+" svelte-nhq2ld")&&f(u,"class",c),b&1&&w!==(w="triangle "+v[0]+" svelte-nhq2ld")&&f(h,"class",w),b&2&&y!==(y=G("doubletap_seek_step",{seconds:v[1].toFixed(0)})+"")&&Ye(I,y)},d(v){v&&(C(e),C(n),C(o))}}}function T6(i){let e,t,n,o,r=i[2]&&Hp(i);return{c(){e=T("div"),r&&r.c(),f(e,"class",t="double-click-area "+i[0]+" svelte-nhq2ld")},m(l,a){S(l,e,a),r&&r.m(e,null),n||(o=me(e,"click",ft(i[3]())),n=!0)},p(l,[a]){l[2]?r?r.p(l,a):(r=Hp(l),r.c(),r.m(e,null)):r&&(r.d(1),r=null),a&1&&t!==(t="double-click-area "+l[0]+" svelte-nhq2ld")&&f(e,"class",t)},i:he,o:he,d(l){l&&C(e),r&&r.d(),n=!1,o()}}}function P6(i,e,t){let{side:n}=e,{seekStep:o}=e,{handleSingleFirstClick:r}=e,{handleSecondClick:l}=e,a=!1,s=0,u=0,c=()=>{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 Zn(()=>{window.clearTimeout(s),window.clearTimeout(u)}),i.$$set=m=>{"side"in m&&t(0,n=m.side),"seekStep"in m&&t(1,o=m.seekStep),"handleSingleFirstClick"in m&&t(4,r=m.handleSingleFirstClick),"handleSecondClick"in m&&t(5,l=m.handleSecondClick)},[n,o,a,c,r,l]}var Ef=class extends W{constructor(e){super(),Q(this,e,P6,T6,j,{side:0,seekStep:1,handleSingleFirstClick:4,handleSecondClick:5},S6)}},Af=Ef;function I6(i,e,t){let{playNextVideo:n}=e;return Ot(()=>{n()}),i.$$set=o=>{"playNextVideo"in o&&t(0,n=o.playNextVideo)},[n]}var Mf=class extends W{constructor(e){super(),Q(this,e,I6,null,j,{playNextVideo:0})}},zp=Mf;var o_=require("@vkontakte/videoplayer-shared");var{window:E6}=Oo;function A6(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 Up(i){let e,t,n,o;e=new Af({props:{side:"left",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[100],handleSecondClick:i[131]}});let r=!i[49]&&Kp(i);return{c(){N(e.$$.fragment),t=O(),r&&r.c(),n=dt()},m(l,a){B(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&&(ue(),_(r,1,1,()=>{r=null}),fe()):r?(r.p(l,a),a[1]&262144&&d(r,1)):(r=Kp(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)),D(e,l),r&&r.d(l)}}}function Kp(i){let e,t;return e=new Af({props:{side:"right",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[100],handleSecondClick:i[132]}}),{c(){N(e.$$.fragment)},m(n,o){B(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){D(e,n)}}}function jp(i){var n;let e,t;return e=new vs({props:{thumbUrl:i[2],startTime:(n=i[3])==null?void 0:n.startTime}}),{c(){N(e.$$.fragment)},m(o,r){B(e,o,r),t=!0},p(o,r){var a;let l={};r[0]&4&&(l.thumbUrl=o[2]),r[0]&8&&(l.startTime=(a=o[3])==null?void 0:a.startTime),e.$set(l)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){_(e.$$.fragment,o),t=!1},d(o){D(e,o)}}}function Wp(i){let e,t;return e=new ys({}),{c(){N(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Gp(i){let e,t,n;return t=new Cr({props:{adsSlotId:i[7],adsParams:i[8],adsPreviewParam:i[9],duration:i[10]}}),{c(){e=T("div"),N(t.$$.fragment),f(e,"class","ads-container svelte-1jy89ut"),H(e,"hidden",i[34]!=="ads")},m(o,r){S(o,e,r),B(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)&&H(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),D(t)}}}function Qp(i){let e,t;return e=new zp({props:{playNextVideo:i[22]}}),{c(){N(e.$$.fragment)},m(n,o){B(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){D(e,n)}}}function Yp(i){let e,t;return e=new ps({}),{c(){N(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Zp(i){let e,t,n;return t=new pr({props:{"aria-label":G("video360")}}),{c(){e=T("div"),N(t.$$.fragment),f(e,"class","spherical-video-icon svelte-1jy89ut")},m(o,r){S(o,e,r),B(t,e,null),n=!0},p:he,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&C(e),D(t)}}}function Xp(i){let e,t;return e=new hs({props:{thumbUrl:i[2],chromecastDeviceName:i[52]}}),{c(){N(e.$$.fragment)},m(n,o){B(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){D(e,n)}}}function Jp(i){let e,t;return e=new _s({props:{shifted:i[30],captions:i[54],position:i[44],playerSize:i[31],isMobile:!0}}),{c(){N(e.$$.fragment)},m(n,o){B(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){D(e,n)}}}function xp(i){let e,t,n,o,r;return t=new gs({}),{c(){e=T("div"),N(t.$$.fragment)},m(l,a){S(l,e,a),B(t,e,null),n=!0,o||(r=me(e,"click",ft(i[101])),o=!0)},p:he,i(l){n||(d(t.$$.fragment,l),n=!0)},o(l){_(t.$$.fragment,l),n=!1},d(l){l&&C(e),D(t),o=!1,r()}}}function $p(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 ms({props:r}),pe.push(()=>De(e,"controlsElementRef",o)),{c(){N(e.$$.fragment)},m(l,a){B(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],Be(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){D(e,l)}}}function e_(i){let e,t;return e=new Lr({}),{c(){N(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function t_(i){let e,t;return e=new Ar({}),{c(){N(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function i_(i){let e,t,n=i[5]&&i[78]&&!i[48].has("TIMELINE"),o,r,l,a,s,u,c,m,h,w,g,k,y,I,v,b;e=new bs({props:{hidden:i[34]!=="thumb"||i[33]||i[89]&&i[4],thumbUrl:i[2],startVideo:i[28]}});let E=n&&Up(i),A=i[34]==="waitingLive"&&jp(i),L=i[34]==="waitingRecord"&&Wp(i),R=i[6]&&i[21]&&Gp(i),le=i[41]&&i[17]&&i[18]&&Qp(i),ae=i[50]&&Yp(i),Y=i[51]&&Zp(i),V=i[35]&&Xp(i),ee=i[53].value!=="off"&&Jp(i),X=i[33]&&xp(i),se=i[21]&&$p(i);k=new Tr({props:{isLive:i[56],isHidden:!i[40],isPlaying:i[46],position:i[44],duration:i[43]}});let F=i[38]&&e_(i),ne=i[57]&&t_(i);return{c(){N(e.$$.fragment),t=O(),E&&E.c(),o=O(),A&&A.c(),r=O(),L&&L.c(),l=O(),R&&R.c(),a=O(),le&&le.c(),s=O(),ae&&ae.c(),u=O(),Y&&Y.c(),c=O(),V&&V.c(),m=O(),ee&&ee.c(),h=O(),X&&X.c(),w=O(),se&&se.c(),g=O(),N(k.$$.fragment),y=O(),F&&F.c(),I=O(),ne&&ne.c(),v=dt()},m(P,U){B(e,P,U),S(P,t,U),E&&E.m(P,U),S(P,o,U),A&&A.m(P,U),S(P,r,U),L&&L.m(P,U),S(P,l,U),R&&R.m(P,U),S(P,a,U),le&&le.m(P,U),S(P,s,U),ae&&ae.m(P,U),S(P,u,U),Y&&Y.m(P,U),S(P,c,U),V&&V.m(P,U),S(P,m,U),ee&&ee.m(P,U),S(P,h,U),X&&X.m(P,U),S(P,w,U),se&&se.m(P,U),S(P,g,U),B(k,P,U),S(P,y,U),F&&F.m(P,U),S(P,I,U),ne&&ne.m(P,U),S(P,v,U),b=!0},p(P,U){let we={};U[0]&16|U[1]&12&&(we.hidden=P[34]!=="thumb"||P[33]||P[89]&&P[4]),U[0]&4&&(we.thumbUrl=P[2]),U[0]&268435456&&(we.startVideo=P[28]),e.$set(we),U[0]&32|U[1]&131072&&(n=P[5]&&P[78]&&!P[48].has("TIMELINE")),n?E?(E.p(P,U),U[0]&32|U[1]&131072&&d(E,1)):(E=Up(P),E.c(),d(E,1),E.m(o.parentNode,o)):E&&(ue(),_(E,1,1,()=>{E=null}),fe()),P[34]==="waitingLive"?A?(A.p(P,U),U[1]&8&&d(A,1)):(A=jp(P),A.c(),d(A,1),A.m(r.parentNode,r)):A&&(ue(),_(A,1,1,()=>{A=null}),fe()),P[34]==="waitingRecord"?L?U[1]&8&&d(L,1):(L=Wp(P),L.c(),d(L,1),L.m(l.parentNode,l)):L&&(ue(),_(L,1,1,()=>{L=null}),fe()),P[6]&&P[21]?R?(R.p(P,U),U[0]&2097216&&d(R,1)):(R=Gp(P),R.c(),d(R,1),R.m(a.parentNode,a)):R&&(ue(),_(R,1,1,()=>{R=null}),fe()),P[41]&&P[17]&&P[18]?le?(le.p(P,U),U[0]&393216|U[1]&1024&&d(le,1)):(le=Qp(P),le.c(),d(le,1),le.m(s.parentNode,s)):le&&(ue(),_(le,1,1,()=>{le=null}),fe()),P[50]?ae?U[1]&524288&&d(ae,1):(ae=Yp(P),ae.c(),d(ae,1),ae.m(u.parentNode,u)):ae&&(ue(),_(ae,1,1,()=>{ae=null}),fe()),P[51]?Y?(Y.p(P,U),U[1]&1048576&&d(Y,1)):(Y=Zp(P),Y.c(),d(Y,1),Y.m(c.parentNode,c)):Y&&(ue(),_(Y,1,1,()=>{Y=null}),fe()),P[35]?V?(V.p(P,U),U[1]&16&&d(V,1)):(V=Xp(P),V.c(),d(V,1),V.m(m.parentNode,m)):V&&(ue(),_(V,1,1,()=>{V=null}),fe()),P[53].value!=="off"?ee?(ee.p(P,U),U[1]&4194304&&d(ee,1)):(ee=Jp(P),ee.c(),d(ee,1),ee.m(h.parentNode,h)):ee&&(ue(),_(ee,1,1,()=>{ee=null}),fe()),P[33]?X?(X.p(P,U),U[1]&4&&d(X,1)):(X=xp(P),X.c(),d(X,1),X.m(w.parentNode,w)):X&&(ue(),_(X,1,1,()=>{X=null}),fe()),P[21]?se?(se.p(P,U),U[0]&2097152&&d(se,1)):(se=$p(P),se.c(),d(se,1),se.m(g.parentNode,g)):se&&(ue(),_(se,1,1,()=>{se=null}),fe());let qe={};U[1]&33554432&&(qe.isLive=P[56]),U[1]&512&&(qe.isHidden=!P[40]),U[1]&32768&&(qe.isPlaying=P[46]),U[1]&8192&&(qe.position=P[44]),U[1]&4096&&(qe.duration=P[43]),k.$set(qe),P[38]?F?U[1]&128&&d(F,1):(F=e_(P),F.c(),d(F,1),F.m(I.parentNode,I)):F&&(ue(),_(F,1,1,()=>{F=null}),fe()),P[57]?ne?U[1]&67108864&&d(ne,1):(ne=t_(P),ne.c(),d(ne,1),ne.m(v.parentNode,v)):ne&&(ue(),_(ne,1,1,()=>{ne=null}),fe())},i(P){b||(d(e.$$.fragment,P),d(E),d(A),d(L),d(R),d(le),d(ae),d(Y),d(V),d(ee),d(X),d(se),d(k.$$.fragment,P),d(F),d(ne),b=!0)},o(P){_(e.$$.fragment,P),_(E),_(A),_(L),_(R),_(le),_(ae),_(Y),_(V),_(ee),_(X),_(se),_(k.$$.fragment,P),_(F),_(ne),b=!1},d(P){P&&(C(t),C(o),C(r),C(l),C(a),C(s),C(u),C(c),C(m),C(h),C(w),C(g),C(y),C(I),C(v)),D(e,P),E&&E.d(P),A&&A.d(P),L&&L.d(P),R&&R.d(P),le&&le.d(P),ae&&ae.d(P),Y&&Y.d(P),V&&V.d(P),ee&&ee.d(P),X&&X.d(P),se&&se.d(P),D(k,P),F&&F.d(P),ne&&ne.d(P)}}}function M6(i){let e,t,n,o,r,l=i[47],a,s,u,c,m,h,w=i_(i);return{c(){e=T("div"),t=T("div"),n=T("div"),r=O(),w.c(),a=O(),s=T("div"),f(n,"class","video-container svelte-1jy89ut"),f(n,"style",o=`transform: rotate(${i[32]}deg) scale(${i[42]})`),f(n,"data-testid","video-container"),f(n,"data-is-playing",i[46]),H(n,"fast-rotate",!i[1].isSmoothVideoRotate),f(t,"class","video-wrapper svelte-1jy89ut"),H(t,"hidden",i[34]!=="video"),f(s,"class","overlay-container"),f(e,"class","player-wrapper svelte-1jy89ut"),f(e,"role","region"),f(e,"aria-label",u=G("aria_label_video_player")),f(e,"tabindex","-1")},m(g,k){S(g,e,k),p(e,t),p(t,n),i[130](n),p(e,r),w.m(e,null),p(e,a),p(e,s),i[134](s),i[135](e),c=!0,m||(h=[me(E6,"blur",i[99]),me(t,"click",qt(i[100])),me(e,"click",i[102],!0),me(e,"focusin",i[103],!0)],m=!0)},p(g,k){(!c||k[1]&2050&&o!==(o=`transform: rotate(${g[32]}deg) scale(${g[42]})`))&&f(n,"style",o),(!c||k[1]&32768)&&f(n,"data-is-playing",g[46]),(!c||k[0]&2)&&H(n,"fast-rotate",!g[1].isSmoothVideoRotate),(!c||k[1]&8)&&H(t,"hidden",g[34]!=="video"),k[1]&65536&&j(l,l=g[47])?(ue(),_(w,1,1,he),fe(),w=i_(g),w.c(),d(w,1),w.m(e,a)):w.p(g,k)},i(g){c||(d(w),c=!0)},o(g){_(w),c=!1},d(g){g&&C(e),i[130](null),w.d(g),i[134](null),i[135](null),m=!1,nt(h)}}}function V6(i,e,t){var gn,En;let n,o,r,l,a,s,u,c,m,h,w,g,k,y,I,v,b,E,A,L,R,le,ae,Y,V,ee,X,se,F,ne,P,U,we,qe,Ze,Xe,He,{store:ye}=e,{uiConfig:J}=e,{thumbUrl:ke}=e,{videoContainer:it}=e,{interactiveContainer:Oe}=e,{live:rt}=e,{autoplay:Ce}=e,{canRewindLive:Je}=e,{showAds:at}=e,{adsSlotId:Ge=void 0}=e,{adsParams:Ke=void 0}=e,{adsPreviewParam:$e=void 0}=e,{duration:de=void 0}=e,{logoClickable:Ne}=e,{logoHidden:Te}=e,{logoTargetUrl:ze=""}=e,{showNextPrevButtons:K=!1}=e,{nextButtonActive:ve=!1}=e,{prevButtonActive:et=!1}=e,{endScreenVideoTitle:_t=void 0}=e,{endScreenVideoThumb:vt=void 0}=e,{isOneVideoPlaylist:ce=!1}=e,{supportLink:bt}=e,{shadowRootContainer:Mt=void 0}=e,{outerContainerRef:St=void 0}=e,{showMiniTimer:je=!1}=e,{fullScreenTarget:jt=void 0}=e,{playerStarted:Vt=!1}=e,{playNextVideo:Pt=_o.noop}=e,{playPrevVideo:oi=_o.noop}=e,{repeatPlaylist:Bt=_o.noop}=e,{seekToInteractive:Dt}=e,{toggleGraph:_e}=e,{playPrevChapter:We}=e,{firstStart:xe}=e,{seekTime:lt}=e,ht=ye.getLogger().createComponentLog("Root component"),Gt=ye.interfaceLanguage$;z(i,Gt,ie=>t(47,X=ie));let _i=ye.state.playbackState$;z(i,_i,ie=>t(127,ae=ie));let Nt=ye.ads.playbackState;z(i,Nt,ie=>t(128,Y=ie));let Yi=ye.state.positionWithScrubbing$;z(i,Yi,ie=>t(44,a=ie));let an=ye.state.duration$;z(i,an,ie=>t(43,l=ie));let ai=ye.playerPhase;z(i,ai,ie=>t(34,A=ie));let Di=ye.ui.isFullscreen;z(i,Di,ie=>t(142,u=ie));let kn=ye.ui.controlsVisible;z(i,kn,ie=>t(30,o=ie));let Ti=ye.ui.interactiveHideMobileControls;z(i,Ti,ie=>t(119,w=ie));let un=ye.ui.settingsMenuVisible;z(i,un,ie=>t(118,n=ie));let hi=ye.ui.scrubbingInProgress;z(i,hi,ie=>t(120,k=ie));let Ni=ye.ui.debugPanelVisible;z(i,Ni,ie=>t(57,He=ie));let gi=ye.state.isLoaderVisible;z(i,gi,ie=>t(129,V=ie));let Pi=ye.state.isEnded$;z(i,Pi,ie=>t(122,v=ie));let bi=ye.state.chromecastConnected$;z(i,bi,ie=>t(35,L=ie));let Ii=ye.state.chromecastDeviceName$;z(i,Ii,ie=>t(52,U=ie));let Ht=ye.ads.postrollPassed;z(i,Ht,ie=>t(123,b=ie));let zt=ye.ui.mobileUnmuteButtonExpanded,fn=ye.ui.mobileUnmuteButtonVisible,Zi=ye.state.isLive$;z(i,Zi,ie=>t(56,Xe=ie));let ui=ye.state.isPlaying$;z(i,ui,ie=>t(46,ee=ie));let Ei=ye.state.isActiveLive$;z(i,Ei,ie=>t(49,F=ie));let Xi=ye.state.isRewindableLive$,qi=ye.state.crashed$;z(i,qi,ie=>t(33,I=ie));let yt=ye.webApi.pictureInPictureApi,cn=ye.state.videoSize$;z(i,cn,ie=>t(143,m=ie));let It=ye.state.currentSubtitle$;z(i,It,ie=>t(53,we=ie));let Oi=ye.state.currentSubtitleCaptions$;z(i,Oi,ie=>t(54,qe=ie));let Ji=ye.state.duration$;z(i,Ji,ie=>t(55,Ze=ie));let xi=ye.state.graphIsOpened$;z(i,xi,ie=>t(126,le=ie));let ii=ye.ui.playerSize;z(i,ii,ie=>t(31,c=ie));let vi=ye.ui.is3DVideo;z(i,vi,ie=>t(50,ne=ie));let yi=ye.ui.icon3DVideoVisible;z(i,yi,ie=>t(51,P=ie));let fi=ye.ui.rotateAlpha;z(i,fi,ie=>t(32,g=ie));let li=ye.state.isInteractive,Ut=ye.state.isInteractiveTime$;z(i,Ut,ie=>t(121,y=ie));let ci=ye.state.isInteractiveExpectation$;z(i,ci,ie=>t(125,R=ie));let Fi=ye.state.hasInteractiveBranches,Ai=ye.ui.controls.disabledControls$;z(i,Ai,ie=>t(48,se=ie));let ri=ye.ui.touched;z(i,ri,ie=>t(124,E=ie));let di=ye.ui.clientInfo$;z(i,di,ie=>t(141,s=ie));let $i=ye.ui.overlayContainer$,en=ye.state.isFirstBytes$;z(i,en,ie=>t(140,r=ie));let Cn=ye.actions.internal.closeSettingsMenu,tn=(gn=ye.callbacks)==null?void 0:gn.onDisabledPlayPrevChapterClick,Qt=(En=ye.callbacks)==null?void 0:En.onDisabledSeekToInteractiveClick,Yt,Mi,mi,nn,Hi,dn,Vi,zi=Re(!1);z(i,zi,ie=>t(45,h=ie));let ot,pi=!1,si,Fe=!1,Ui,Sn=!0,on,Ki,ln=!1,rn;yt==null||yt.setContext(Fl());let Tn=ie=>{clearTimeout(nn),ie&&(fn.set(!0),zt.set(!0),nn=window.setTimeout(()=>{zt.set(!1)},J.controls.collapseMobileUnmute),li||Jt(J.controls.hideTimeoutMobile))};ye.setUiCallbacks({onStarted:Tn});let Mn=()=>{window.clearTimeout(mi),t(113,pi=!1),w&&Ti.set(!1)},Jt=ie=>{Mn(),t(113,pi=!0),mi=window.setTimeout(()=>t(113,pi=!1),ie);let x=ie-100;ot=window.setTimeout(()=>{h&&zi.set(!1)},x>0?x:ie)},ji=vi.subscribe(ie=>{yi.set(ie),ie&&(window.clearTimeout(Hi),Hi=window.setTimeout(()=>yi.set(!1),J.controls.hide360IconTimeout))}),mn=()=>ct(this,null,function*(){var x,mt,Wt,bn;let ie=ko();if(ie){let wi=Kl(),Yn=_n(),oo=(0,o_.getCurrentBrowser)().browser===_o.CurrentClientBrowser.SamsungBrowser&&wi===Mt;ie=wi===Yn||oo}if(ie){Jt(J.controls.hideTimeoutFullscreen);try{yield yt==null?void 0:yt.remove()}catch(wi){ht({message:String(wi)})}try{let wi=m!=null&&m.width&&(m!=null&&m.height)?m:c;yield Wc(wi)}catch(wi){ht({message:String(wi)})}}Di.set(ie),ye.getAdmanWrapper().setFullscreen(ie),u?(mt=(x=ye.callbacks)==null?void 0:x.onFullscreenEnter)==null||mt.call(x):(bn=(Wt=ye.callbacks)==null?void 0:Wt.onFullscreenExit)==null||bn.call(Wt)}),Dn=ie=>{let x=ie;ii.set({width:x.target.width,height:x.target.height})};Ot(()=>{var x;return wr(mn),Qo(yt)&&(yt==null||yt.assignPlayerContainer(Yt),yt==null||yt.registryExternalEventHandlers({resize:Dn})),t(39,Sn=!Fp(s)),Oe&&((x=it.parentElement)==null||x.insertBefore(Oe,it.nextSibling)),()=>{window.clearTimeout(mi),window.clearTimeout(ot),window.clearTimeout(nn),window.clearTimeout(Hi),ji(),yt==null||yt.dispose(),kr(mn)}});let pn=ie=>{let x=a+(ie==="forward"?1:-1)*J.controls.seekStepMobile/1e3;x<0?x=0:x>l&&(x=l-1),t(115,Fe=!0),lt(x)},_n=()=>{let ie=(0,_o.isIOS)()||!St?Yt:St,x=ie.getRootNode(),mt=x instanceof ShadowRoot?x.host:x,Wt=jt instanceof HTMLElement&&jt.contains(mt);return J.allowChangingFullscreenTarget&&jt&&Wt?jt:ie},Pn=()=>ct(this,null,function*(){if(ko())yield yr(document),ht({message:"exit fullscreen"});else{if(ht({message:"request fullscreen"}),(0,_o.isIOS)()&&!r)return;yield vr(_n())}}),xt=()=>{Cn()},ni=()=>{if(n){xt();return}if(!Vt){xe(),Jt(J.controls.hideTimeoutCursor);return}t(115,Fe=!1),o?Mn():Jt(J.controls.hideTimeoutMobile)},Nn=()=>{if(n){xt();return}},qn=()=>{ri.set(!0)},On=()=>{li||(zi.set(!0),Jt(J.controls.hideTimeoutCursor))},Xt=ie=>{tn&&(tn(ie),Jt(J.controls.hideTimeoutMobile))},jn=ie=>{Qt&&(Qt(ie),Jt(J.controls.hideTimeoutMobile))};function Vn(ie){pe[ie?"unshift":"push"](()=>{it=ie,t(0,it)})}let hn=()=>pn("backward"),Wn=()=>pn("forward");function Ln(ie){Mi=ie,t(37,Mi)}function In(ie){pe[ie?"unshift":"push"](()=>{Vi=ie,t(29,Vi)})}function Wi(ie){pe[ie?"unshift":"push"](()=>{Yt=ie,t(36,Yt)})}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,ke=ie.thumbUrl),"videoContainer"in ie&&t(0,it=ie.videoContainer),"interactiveContainer"in ie&&t(107,Oe=ie.interactiveContainer),"live"in ie&&t(3,rt=ie.live),"autoplay"in ie&&t(4,Ce=ie.autoplay),"canRewindLive"in ie&&t(5,Je=ie.canRewindLive),"showAds"in ie&&t(6,at=ie.showAds),"adsSlotId"in ie&&t(7,Ge=ie.adsSlotId),"adsParams"in ie&&t(8,Ke=ie.adsParams),"adsPreviewParam"in ie&&t(9,$e=ie.adsPreviewParam),"duration"in ie&&t(10,de=ie.duration),"logoClickable"in ie&&t(11,Ne=ie.logoClickable),"logoHidden"in ie&&t(12,Te=ie.logoHidden),"logoTargetUrl"in ie&&t(13,ze=ie.logoTargetUrl),"showNextPrevButtons"in ie&&t(14,K=ie.showNextPrevButtons),"nextButtonActive"in ie&&t(15,ve=ie.nextButtonActive),"prevButtonActive"in ie&&t(16,et=ie.prevButtonActive),"endScreenVideoTitle"in ie&&t(17,_t=ie.endScreenVideoTitle),"endScreenVideoThumb"in ie&&t(18,vt=ie.endScreenVideoThumb),"isOneVideoPlaylist"in ie&&t(19,ce=ie.isOneVideoPlaylist),"supportLink"in ie&&t(20,bt=ie.supportLink),"shadowRootContainer"in ie&&t(108,Mt=ie.shadowRootContainer),"outerContainerRef"in ie&&t(109,St=ie.outerContainerRef),"showMiniTimer"in ie&&t(110,je=ie.showMiniTimer),"fullScreenTarget"in ie&&t(111,jt=ie.fullScreenTarget),"playerStarted"in ie&&t(21,Vt=ie.playerStarted),"playNextVideo"in ie&&t(22,Pt=ie.playNextVideo),"playPrevVideo"in ie&&t(23,oi=ie.playPrevVideo),"repeatPlaylist"in ie&&t(24,Bt=ie.repeatPlaylist),"seekToInteractive"in ie&&t(25,Dt=ie.seekToInteractive),"toggleGraph"in ie&&t(26,_e=ie.toggleGraph),"playPrevChapter"in ie&&t(27,We=ie.playPrevChapter),"firstStart"in ie&&t(28,xe=ie.firstStart),"seekTime"in ie&&t(112,lt=ie.seekTime)},i.$$.update=()=>{if(i.$$.dirty[1]&12|i.$$.dirty[4]&48)e:t(38,dn=(A==="video"&&V||A==="ads"&&Y==="inactive")&&!I);if(i.$$.dirty[0]&536870912)e:$i.set(Vi);if(i.$$.dirty[4]&8)e:t(114,si=ae!==n_.PlaybackState.PLAYING);if(i.$$.dirty[3]&607125504|i.$$.dirty[4]&6)e:t(116,Ui=le||w||!pi&&(v&&!!Fi||si&&R));if(i.$$.dirty[1]&28|i.$$.dirty[3]&183500800)e:kn.set((si||n||k||L||pi&&!Fe)&&!Ui&&A==="video"&&!I);if(i.$$.dirty[0]&1073741826|i.$$.dirty[1]&12|i.$$.dirty[3]&131072|i.$$.dirty[4]&1)e:t(40,on=J.features.thumbTimer&&je&&A==="video"&&!o&&!I&&!li&&(J.hideThumbTimerAfterTouch&&!E||!J.hideThumbTimerAfterTouch));if(i.$$.dirty[0]&64|i.$$.dirty[1]&4|i.$$.dirty[3]&1610612736)e:t(41,Ki=(at&&b||!at)&&v&&!I);if(i.$$.dirty[0]&2|i.$$.dirty[3]&419430400)e:!k&&ln&&!y&&Jt(J.controls.hideTimeoutMobile),t(117,ln=k);if(i.$$.dirty[0]&1|i.$$.dirty[1]&3)e:t(42,rn=it&&g%180?c.height/c.width:1)},[it,J,ke,rt,Ce,Je,at,Ge,Ke,$e,de,Ne,Te,ze,K,ve,et,_t,vt,ce,bt,Vt,Pt,oi,Bt,Dt,_e,We,xe,Vi,o,c,g,I,A,L,Yt,Mi,dn,Sn,on,Ki,rn,l,a,h,ee,X,se,F,ne,P,U,we,qe,Ze,Xe,He,Gt,_i,Nt,Yi,an,ai,Di,kn,Ti,un,hi,Ni,gi,Pi,bi,Ii,Ht,Zi,ui,Ei,Xi,qi,cn,It,Oi,Ji,xi,ii,vi,yi,fi,li,Ut,ci,Ai,ri,di,en,zi,pn,Pn,xt,ni,Nn,qn,On,Xt,jn,ye,Oe,Mt,St,je,jt,lt,pi,si,Fe,Ui,ln,n,w,k,y,v,b,E,R,le,ae,Y,V,Vn,hn,Wn,Ln,In,Wi]}var Vf=class extends W{constructor(e){super(),Q(this,e,V6,M6,j,{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},A6,[-1,-1,-1,-1,-1,-1])}},l_=Vf;function L6(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(
34
+ )}.hidden.svelte-1bcvcf2{visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0}`)}function i6(i){let e,t;return{c(){e=T("div"),t=Le(i[0]),f(e,"class","title svelte-1bcvcf2"),F(e,"hidden",i[1])},m(n,o){S(n,e,o),p(e,t)},p(n,[o]){o&1&&Ye(t,n[0]),o&2&&F(e,"hidden",n[1])},i:_e,o:_e,d(n){n&&C(e)}}}function n6(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 Cf=class extends j{constructor(e){super(),G(this,e,n6,i6,K,{title:0,isHidden:1},t6)}},dp=Cf;function o6(i){Te(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 mp(i){let e,t,n,o,r,l,a;return{c(){e=T("div"),t=T("span"),n=Le(i[0]),o=q(),r=T("span"),r.textContent=`${W("waiting_live_day_value")}`,l=q(),a=T("span"),a.textContent=`${W("waiting_live_colon")}`,f(t,"class","cell__value svelte-1qpxtfg"),f(r,"class","cell__unit svelte-1qpxtfg"),f(e,"class","timer__cell cell svelte-1qpxtfg"),f(a,"class","timer__points svelte-1qpxtfg")},m(s,u){S(s,e,u),p(e,t),p(t,n),p(e,o),p(e,r),S(s,l,u),S(s,a,u)},p(s,u){u&1&&Ye(n,s[0])},d(s){s&&(C(e),C(l),C(a))}}}function pp(i){let e,t,n,o,r,l,a;return{c(){e=T("div"),t=T("span"),n=Le(i[1]),o=q(),r=T("span"),r.textContent=`${W("waiting_live_hour_value")}`,l=q(),a=T("span"),a.textContent=`${W("waiting_live_colon")}`,f(t,"class","cell__value svelte-1qpxtfg"),f(r,"class","cell__unit svelte-1qpxtfg"),f(e,"class","timer__cell cell svelte-1qpxtfg"),f(a,"class","timer__points svelte-1qpxtfg")},m(s,u){S(s,e,u),p(e,t),p(t,n),p(e,o),p(e,r),S(s,l,u),S(s,a,u)},p(s,u){u&2&&Ye(n,s[1])},d(s){s&&(C(e),C(l),C(a))}}}function _p(i){let e,t,n,o,r,l,a;return{c(){e=T("div"),t=T("span"),n=Le(i[2]),o=q(),r=T("span"),r.textContent=`${W("waiting_live_minute_value")}`,l=q(),a=T("span"),a.textContent=`${W("waiting_live_colon")}`,f(t,"class","cell__value svelte-1qpxtfg"),f(r,"class","cell__unit svelte-1qpxtfg"),f(e,"class","timer__cell cell svelte-1qpxtfg"),f(a,"class","timer__points svelte-1qpxtfg")},m(s,u){S(s,e,u),p(e,t),p(t,n),p(e,o),p(e,r),S(s,l,u),S(s,a,u)},p(s,u){u&4&&Ye(n,s[2])},d(s){s&&(C(e),C(l),C(a))}}}function hp(i){let e,t,n,o,r;return{c(){e=T("div"),t=T("span"),n=Le(i[3]),o=q(),r=T("span"),r.textContent=`${W("waiting_live_second_value")}`,f(t,"class","cell__value svelte-1qpxtfg"),f(r,"class","cell__unit svelte-1qpxtfg"),f(e,"class","timer__cell cell svelte-1qpxtfg")},m(l,a){S(l,e,a),p(e,t),p(t,n),p(e,o),p(e,r)},p(l,a){a&8&&Ye(n,l[3])},d(l){l&&C(e)}}}function l6(i){let e,t,n,o,r=i[0]&&mp(i),l=i[1]&&pp(i),a=i[2]&&_p(i),s=i[3]&&hp(i);return{c(){e=T("div"),r&&r.c(),t=q(),l&&l.c(),n=q(),a&&a.c(),o=q(),s&&s.c(),f(e,"class","timer__container svelte-1qpxtfg")},m(u,c){S(u,e,c),r&&r.m(e,null),p(e,t),l&&l.m(e,null),p(e,n),a&&a.m(e,null),p(e,o),s&&s.m(e,null)},p(u,[c]){u[0]?r?r.p(u,c):(r=mp(u),r.c(),r.m(e,t)):r&&(r.d(1),r=null),u[1]?l?l.p(u,c):(l=pp(u),l.c(),l.m(e,n)):l&&(l.d(1),l=null),u[2]?a?a.p(u,c):(a=_p(u),a.c(),a.m(e,o)):a&&(a.d(1),a=null),u[3]?s?s.p(u,c):(s=hp(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 r6(i,e,t){let{startTime:n}=e,{onTimerOver:o}=e,r,l,a,s,u,c=k=>String(k).padStart(2,"0"),m=k=>{let g=Math.floor(k/86400);g&&(k-=g*86400,t(0,r=c(g)));let w=Math.floor(k/3600);t(1,l=c(w));let y=Math.floor(k/60)%60;t(2,a=c(y));let P=k%60;t(3,s=c(P))},h=()=>{let k=Math.floor(Date.now()/1e3),g=n-k;m(g),g>=1?u=requestAnimationFrame(h):o()};return Ft(()=>{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)},[r,l,a,s,n,o]}var Sf=class extends j{constructor(e){super(),G(this,e,r6,l6,K,{startTime:4,onTimerOver:5},o6)}},gp=Sf;function s6(i){let e,t,n,o,r,l,a=i[2].default,s=Ee(a,i,i[1],null),u=[{xmlns:"http://www.w3.org/2000/svg"},{"aria-hidden":"true"},{"data-testid":"podcast-icon"},{style:"shape-rendering:geometricPrecision;text-rendering:geometricPrecision;image-rendering:optimizeQuality;fill-rule:evenodd;clip-rule:evenodd;width:100%;height:100%"},{viewBox:"0 0 400 400"},{role:"img"},i[0]],c={};for(let m=0;m<u.length;m+=1)c=le(c,u[m]);return{c(){e=D("svg"),s&&s.c(),t=D("path"),n=D("path"),o=D("path"),r=D("path"),f(t,"fill","#fefffe"),f(t,"d","M179.5-.5h40q127.56 18.67 171.5 140 5.724 19.896 8.5 40v40q-5.549 51.6-35.5 94-9.626-12.614-24.5-18.5-1.526-1.574-.5-3.5 39.742-61.7 23-133Q329.24 50.25 217.5 33 112.126 26.56 55 114.5q-40.395 74.102-9 152a152.3 152.3 0 0 0 14 25q1.026 1.926-.5 3.5-14.874 5.886-24.5 18.5-29.95-42.4-35.5-94v-40Q18.17 51.94 139.5 8q19.896-5.724 40-8.5"),ki(t,"opacity",".965"),f(n,"fill","#fefffe"),f(n,"d","M183.5 63.5q86.294-5.475 133.5 66 32.442 60.138 8 124a186.7 186.7 0 0 1-17.5 29.5 633 633 0 0 1-38-7q54.668-57.264 19.5-128.5Q252.733 91.244 185.5 97q-74.25 14.25-88.5 88.5-5.916 53.38 32.5 90.5a1150 1150 0 0 0-36 7.5q-2.294-.044-3.5-2-43.947-63.646-16-136 32.799-70.278 109.5-82"),ki(n,"opacity",".965"),f(o,"fill","#fefffe"),f(o,"d","M187.5 127.5q66.786-4.422 83.5 60 5.146 66.825-59.5 83.5-66.825 5.146-83.5-59.5-4.844-66.856 59.5-84"),ki(o,"opacity",".985"),f(r,"fill","#fefffe"),f(r,"d","M219.5 399.5h-40q-67.453-7.982-117-54a31.7 31.7 0 0 1 3.5-10q8.539-9.646 20.5-14.5 54.786-19.435 113-17.5 58.214-1.935 113 17.5 11.962 4.854 20.5 14.5a31.7 31.7 0 0 1 3.5 10q-49.547 46.018-117 54"),ki(r,"opacity",".986"),be(e,c)},m(m,h){S(m,e,h),s&&s.m(e,null),p(e,t),p(e,n),p(e,o),p(e,r),l=!0},p(m,[h]){s&&s.p&&(!l||h&2)&&Me(s,a,m,m[1],l?Ae(a,m[1],h,null):Ve(m[1]),null),be(e,c=Re(u,[{xmlns:"http://www.w3.org/2000/svg"},{"aria-hidden":"true"},{"data-testid":"podcast-icon"},{style:"shape-rendering:geometricPrecision;text-rendering:geometricPrecision;image-rendering:optimizeQuality;fill-rule:evenodd;clip-rule:evenodd;width:100%;height:100%"},{viewBox:"0 0 400 400"},{role:"img"},h&1&&m[0]]))},i(m){l||(d(s,m),l=!0)},o(m){_(s,m),l=!1},d(m){m&&C(e),s&&s.d(m)}}}function a6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Tf=class extends j{constructor(e){super(),G(this,e,a6,s6,K,{})}},bp=Tf;function u6(i){Te(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,r;return o=new gp({props:{startTime:i[1]||0,onTimerOver:i[3]}}),{c(){e=T("div"),t=T("span"),t.textContent=`${W("waiting_live_timer_title")}`,n=q(),B(o.$$.fragment),f(t,"class","timer__title svelte-15pewff"),f(e,"class","waiting-timer timer svelte-15pewff")},m(l,a){S(l,e,a),p(e,t),p(e,n),L(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),R(o)}}}function c6(i){let e,t,n,o,r,l;return n=new bp({}),{c(){e=T("div"),t=T("div"),B(n.$$.fragment),o=q(),r=T("span"),r.textContent=`${W("waiting_live_upcoming_title")}`,f(t,"class","upcoming-icon svelte-15pewff"),f(r,"class","upcoming__title svelte-15pewff"),f(e,"class","upcoming svelte-15pewff")},m(a,s){S(a,e,s),p(e,t),L(n,t,null),p(e,o),p(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),R(n)}}}function d6(i){let e,t,n,o,r,l=[c6,f6],a=[];function s(u,c){return u[2]?0:1}return t=s(i,-1),n=a[t]=l[t](i),{c(){e=T("div"),n.c(),f(e,"class","waiting-container svelte-15pewff"),f(e,"style",o=`background-image: url(${i[2]?"":i[0]})`)},m(u,c){S(u,e,c),a[t].m(e,null),r=!0},p(u,[c]){let m=t;t=s(u,c),t===m?a[t].p(u,c):(ue(),_(a[m],1,1,()=>{a[m]=null}),fe(),n=a[t],n?n.p(u,c):(n=a[t]=l[t](u),n.c()),d(n,1),n.m(e,null)),(!r||c&5&&o!==(o=`background-image: url(${u[2]?"":u[0]})`))&&f(e,"style",o)},i(u){r||(d(n),r=!0)},o(u){_(n),r=!1},d(u){u&&C(e),a[t].d()}}}function m6(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 Pf=class extends j{constructor(e){super(),G(this,e,m6,d6,K,{thumbUrl:0,startTime:1},u6)}},ws=Pf;function p6(i){Te(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 _6(i){let e,t;return{c(){e=T("div"),t=T("p"),t.textContent=`${W("waiting_record_title")}`,f(t,"class","waiting-title svelte-1bcnzdw"),f(e,"class","waiting-container svelte-1bcnzdw")},m(n,o){S(n,e,o),p(e,t)},p:_e,i:_e,o:_e,d(n){n&&C(e)}}}var If=class extends j{constructor(e){super(),G(this,e,null,_6,K,{},p6)}},ks=If;var{window:h6}=Do;function g6(i){Te(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 yp(i){var n;let e,t;return e=new ws({props:{thumbUrl:i[3],startTime:(n=i[4])==null?void 0:n.startTime}}),{c(){B(e.$$.fragment)},m(o,r){L(e,o,r),t=!0},p(o,r){var a;let l={};r[0]&8&&(l.thumbUrl=o[3]),r[0]&16&&(l.startTime=(a=o[4])==null?void 0:a.startTime),e.$set(l)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){_(e.$$.fragment,o),t=!1},d(o){R(e,o)}}}function wp(i){let e,t;return e=new ks({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function kp(i){let e,t,n;return t=new Tr({props:{adsSlotId:i[8],adsParams:i[9],adsPreviewParam:i[10],duration:i[11]}}),{c(){e=T("div"),B(t.$$.fragment),f(e,"class","ads-container svelte-1o4wf3x"),F(e,"hidden",i[38]!=="ads")},m(o,r){S(o,e,r),L(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)&&F(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),R(t)}}}function Cp(i){let e,t;return e=new N1({props:{title:i[18],thumb:i[19],playNextVideo:i[23]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&262144&&(r.title=n[18]),o[0]&524288&&(r.thumb=n[19]),o[0]&8388608&&(r.playNextVideo=n[23]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Sp(i){let e,t;return e=new dp({props:{title:i[2],isHidden:!i[36]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&4&&(r.title=n[2]),o[1]&32&&(r.isHidden=!n[36]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Tp(i){let e,t;return e=new hs({props:{isShifted:i[38]==="video"&&i[36]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[1]&160&&(r.isShifted=n[38]==="video"&&n[36]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Pp(i){let e,t,n;return t=new hr({props:{"aria-label":W("video360")}}),{c(){e=T("div"),B(t.$$.fragment),f(e,"class","spherical-video-icon svelte-1o4wf3x")},m(o,r){S(o,e,r),L(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),R(t)}}}function Ip(i){let e,t;return e=new bs({props:{thumbUrl:i[3],chromecastDeviceName:i[54]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&8&&(r.thumbUrl=n[3]),o[1]&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){R(e,n)}}}function Ep(i){let e,t;return e=new gs({props:{shifted:i[36],captions:i[56],position:i[57],playerSize:i[34]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[1]&32&&(r.shifted=n[36]),o[1]&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){R(e,n)}}}function Ap(i){let e,t,n,o,r;return t=new vs({}),{c(){e=T("div"),B(t.$$.fragment)},m(l,a){S(l,e,a),L(t,e,null),n=!0,o||(r=[de(e,"contextmenu",Ot(i[108])),de(e,"click",ut(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),R(t),o=!1,ot(r)}}}function Mp(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 _s({props:r}),pe.push(()=>qe(e,"controlsElementRef",o)),{c(){B(e.$$.fragment)},m(l,a){L(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){R(e,l)}}}function Vp(i){let e,t;return e=new Br({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Lp(i){let e,t;return e=new Q1({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Rp(i){let e,t;return e=new Vr({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Bp(i){let e,t,n,o,r,l,a,s,u,c,m,h,k,g,w,y,P,v,b,I,N,M,O,re;e=new ys({props:{hidden:i[38]!=="thumb"||i[37]||i[92]&&i[5],thumbUrl:i[3],startVideo:i[29]}});let ae=i[38]==="waitingLive"&&yp(i),Y=i[38]==="waitingRecord"&&wp(i),ee=i[7]&&i[22]&&kp(i),A=i[31]&&i[18]&&i[19]&&Cp(i),x=i[44]&&Sp(i),Z=i[49]&&Tp(i),z=i[53]&&Pp(i),U=i[39]&&Ip(i),V=i[55].value!=="off"&&Ep(i),Q=i[37]&&Ap(i),Ce=i[22]&&Mp(i);g=new Ir({props:{isLive:i[59],isHidden:!i[43],isPlaying:i[51],position:i[57],duration:i[60]}}),y=new np({props:{data:i[103]}});function Fe(X){i[159](X)}let Ze={supportLink:i[21],returnFocus:i[158],visible:i[33],playerContainerRef:i[40],controlsContainerRef:i[41],position:i[61]};i[32]!==void 0&&(Ze.menuElementRef=i[32]),v=new h1({props:Ze}),pe.push(()=>qe(v,"menuElementRef",Fe));let et=i[42]&&Vp(i),xe=i[62]&&Lp(i),ye=i[63]&&Rp(i);return{c(){B(e.$$.fragment),t=q(),ae&&ae.c(),n=q(),Y&&Y.c(),o=q(),ee&&ee.c(),r=q(),A&&A.c(),l=q(),x&&x.c(),a=q(),Z&&Z.c(),s=q(),z&&z.c(),u=q(),U&&U.c(),c=q(),V&&V.c(),m=q(),Q&&Q.c(),h=q(),Ce&&Ce.c(),k=q(),B(g.$$.fragment),w=q(),B(y.$$.fragment),P=q(),B(v.$$.fragment),I=q(),et&&et.c(),N=q(),xe&&xe.c(),M=q(),ye&&ye.c(),O=ct()},m(X,ke){L(e,X,ke),S(X,t,ke),ae&&ae.m(X,ke),S(X,n,ke),Y&&Y.m(X,ke),S(X,o,ke),ee&&ee.m(X,ke),S(X,r,ke),A&&A.m(X,ke),S(X,l,ke),x&&x.m(X,ke),S(X,a,ke),Z&&Z.m(X,ke),S(X,s,ke),z&&z.m(X,ke),S(X,u,ke),U&&U.m(X,ke),S(X,c,ke),V&&V.m(X,ke),S(X,m,ke),Q&&Q.m(X,ke),S(X,h,ke),Ce&&Ce.m(X,ke),S(X,k,ke),L(g,X,ke),S(X,w,ke),L(y,X,ke),S(X,P,ke),L(v,X,ke),S(X,I,ke),et&&et.m(X,ke),S(X,N,ke),xe&&xe.m(X,ke),S(X,M,ke),ye&&ye.m(X,ke),S(X,O,ke),re=!0},p(X,ke){let Ge={};ke[0]&32|ke[1]&192&&(Ge.hidden=X[38]!=="thumb"||X[37]||X[92]&&X[5]),ke[0]&8&&(Ge.thumbUrl=X[3]),ke[0]&536870912&&(Ge.startVideo=X[29]),e.$set(Ge),X[38]==="waitingLive"?ae?(ae.p(X,ke),ke[1]&128&&d(ae,1)):(ae=yp(X),ae.c(),d(ae,1),ae.m(n.parentNode,n)):ae&&(ue(),_(ae,1,1,()=>{ae=null}),fe()),X[38]==="waitingRecord"?Y?ke[1]&128&&d(Y,1):(Y=wp(X),Y.c(),d(Y,1),Y.m(o.parentNode,o)):Y&&(ue(),_(Y,1,1,()=>{Y=null}),fe()),X[7]&&X[22]?ee?(ee.p(X,ke),ke[0]&4194432&&d(ee,1)):(ee=kp(X),ee.c(),d(ee,1),ee.m(r.parentNode,r)):ee&&(ue(),_(ee,1,1,()=>{ee=null}),fe()),X[31]&&X[18]&&X[19]?A?(A.p(X,ke),ke[0]&786432|ke[1]&1&&d(A,1)):(A=Cp(X),A.c(),d(A,1),A.m(l.parentNode,l)):A&&(ue(),_(A,1,1,()=>{A=null}),fe()),X[44]?x?(x.p(X,ke),ke[1]&8192&&d(x,1)):(x=Sp(X),x.c(),d(x,1),x.m(a.parentNode,a)):x&&(ue(),_(x,1,1,()=>{x=null}),fe()),X[49]?Z?(Z.p(X,ke),ke[1]&262144&&d(Z,1)):(Z=Tp(X),Z.c(),d(Z,1),Z.m(s.parentNode,s)):Z&&(ue(),_(Z,1,1,()=>{Z=null}),fe()),X[53]?z?(z.p(X,ke),ke[1]&4194304&&d(z,1)):(z=Pp(X),z.c(),d(z,1),z.m(u.parentNode,u)):z&&(ue(),_(z,1,1,()=>{z=null}),fe()),X[39]?U?(U.p(X,ke),ke[1]&256&&d(U,1)):(U=Ip(X),U.c(),d(U,1),U.m(c.parentNode,c)):U&&(ue(),_(U,1,1,()=>{U=null}),fe()),X[55].value!=="off"?V?(V.p(X,ke),ke[1]&16777216&&d(V,1)):(V=Ep(X),V.c(),d(V,1),V.m(m.parentNode,m)):V&&(ue(),_(V,1,1,()=>{V=null}),fe()),X[37]?Q?(Q.p(X,ke),ke[1]&64&&d(Q,1)):(Q=Ap(X),Q.c(),d(Q,1),Q.m(h.parentNode,h)):Q&&(ue(),_(Q,1,1,()=>{Q=null}),fe()),X[22]?Ce?(Ce.p(X,ke),ke[0]&4194304&&d(Ce,1)):(Ce=Mp(X),Ce.c(),d(Ce,1),Ce.m(k.parentNode,k)):Ce&&(ue(),_(Ce,1,1,()=>{Ce=null}),fe());let tt={};ke[1]&268435456&&(tt.isLive=X[59]),ke[1]&4096&&(tt.isHidden=!X[43]),ke[1]&1048576&&(tt.isPlaying=X[51]),ke[1]&67108864&&(tt.position=X[57]),ke[1]&536870912&&(tt.duration=X[60]),g.$set(tt);let rt={};ke[0]&2097152&&(rt.supportLink=X[21]),ke[1]&131072&&(rt.returnFocus=X[158]),ke[1]&4&&(rt.visible=X[33]),ke[1]&512&&(rt.playerContainerRef=X[40]),ke[1]&1024&&(rt.controlsContainerRef=X[41]),ke[1]&1073741824&&(rt.position=X[61]),!b&&ke[1]&2&&(b=!0,rt.menuElementRef=X[32],Ne(()=>b=!1)),v.$set(rt),X[42]?et?ke[1]&2048&&d(et,1):(et=Vp(X),et.c(),d(et,1),et.m(N.parentNode,N)):et&&(ue(),_(et,1,1,()=>{et=null}),fe()),X[62]?xe?ke[2]&1&&d(xe,1):(xe=Lp(X),xe.c(),d(xe,1),xe.m(M.parentNode,M)):xe&&(ue(),_(xe,1,1,()=>{xe=null}),fe()),X[63]?ye?ke[2]&2&&d(ye,1):(ye=Rp(X),ye.c(),d(ye,1),ye.m(O.parentNode,O)):ye&&(ue(),_(ye,1,1,()=>{ye=null}),fe())},i(X){re||(d(e.$$.fragment,X),d(ae),d(Y),d(ee),d(A),d(x),d(Z),d(z),d(U),d(V),d(Q),d(Ce),d(g.$$.fragment,X),d(y.$$.fragment,X),d(v.$$.fragment,X),d(et),d(xe),d(ye),re=!0)},o(X){_(e.$$.fragment,X),_(ae),_(Y),_(ee),_(A),_(x),_(Z),_(z),_(U),_(V),_(Q),_(Ce),_(g.$$.fragment,X),_(y.$$.fragment,X),_(v.$$.fragment,X),_(et),_(xe),_(ye),re=!1},d(X){X&&(C(t),C(n),C(o),C(r),C(l),C(a),C(s),C(u),C(c),C(m),C(h),C(k),C(w),C(P),C(I),C(N),C(M),C(O)),R(e,X),ae&&ae.d(X),Y&&Y.d(X),ee&&ee.d(X),A&&A.d(X),x&&x.d(X),Z&&Z.d(X),z&&z.d(X),U&&U.d(X),V&&V.d(X),Q&&Q.d(X),Ce&&Ce.d(X),R(g,X),R(y,X),R(v,X),et&&et.d(X),xe&&xe.d(X),ye&&ye.d(X)}}}function b6(i){let e,t,n,o,r=i[52],l,a,s,u,c=Bp(i);return{c(){e=T("div"),t=T("div"),o=q(),c.c(),l=ct(),f(t,"class","video-container svelte-1o4wf3x"),f(t,"style",n=`transform: rotate(${i[35]}deg) scale(${i[46]})`),f(t,"data-testid","video-container"),f(t,"data-is-playing",i[51]),F(t,"fast-rotate",!i[1].isSmoothVideoRotate),f(e,"class","video-wrapper svelte-1o4wf3x"),F(e,"hidden",i[38]!=="video"),F(e,"nocursor",i[45])},m(m,h){S(m,e,h),p(e,t),i[155](t),S(m,o,h),c.m(m,h),S(m,l,h),a=!0,s||(u=[de(e,"contextmenu",Ot(i[108])),de(e,"mousedown",Ot(i[113])),de(e,"mouseup",Ot(i[114])),de(e,"click",Ot(i[116])),de(e,"dblclick",Ot(i[115]))],s=!0)},p(m,h){(!a||h[1]&32784&&n!==(n=`transform: rotate(${m[35]}deg) scale(${m[46]})`))&&f(t,"style",n),(!a||h[1]&1048576)&&f(t,"data-is-playing",m[51]),(!a||h[0]&2)&&F(t,"fast-rotate",!m[1].isSmoothVideoRotate),(!a||h[1]&128)&&F(e,"hidden",m[38]!=="video"),(!a||h[1]&16384)&&F(e,"nocursor",m[45]),h[1]&2097152&&K(r,r=m[52])?(ue(),_(c,1,1,_e),fe(),c=Bp(m),c.c(),d(c,1),c.m(l.parentNode,l)):c.p(m,h)},i(m){a||(d(c),a=!0)},o(m){_(c),a=!1},d(m){m&&(C(e),C(o),C(l)),i[155](null),c.d(m),s=!1,ot(u)}}}function v6(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:[b6]},$$scope:{ctx:i}};return t=new O1({props:s}),i[160](t),{c(){e=T("div"),B(t.$$.fragment),n=q(),o=T("div"),f(o,"class","overlay-container"),f(e,"class","player-wrapper svelte-1o4wf3x")},m(u,c){S(u,e,c),L(t,e,null),p(e,n),p(e,o),i[161](o),i[162](e),r=!0,l||(a=[de(h6,"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,c){let m={};c[1]&128&&(m.isAds=u[38]==="ads"),c[1]&65536&&(m.fakePlayButtonHandler=u[47]?u[105]:void 0),c[0]&1073741823|c[1]&2147418111|c[2]&3|c[6]&4&&(m.$$scope={dirty:c,ctx:u}),t.$set(m)},i(u){r||(d(t.$$.fragment,u),r=!0)},o(u){_(t.$$.fragment,u),r=!1},d(u){u&&C(e),i[160](null),R(t),i[161](null),i[162](null),l=!1,ot(a)}}}var Np=!0;function Ef(i){return i?i.offsetTop+Ef(i.offsetParent):0}function qp(i){return i?i.offsetLeft+qp(i.offsetParent):0}function y6(i,e,t){let n,o,r,l,a,s,u,c,m,h,k,g,w,y,P,v,b,I,N,M,O,re,ae,Y,ee,A,x,Z,z,U,V,Q,Ce,Fe,Ze,et,xe,ye,X,ke,Ge,tt,rt,{store:we}=e,{uiConfig:De}=e,{title:Je}=e,{thumbUrl:st}=e,{videoContainer:Se}=e,{interactiveContainer:se}=e,{live:We}=e,{autoplay:me}=e,{canRewindLive:Ie}=e,{showAds:Oe}=e,{adsSlotId:ce=void 0}=e,{adsParams:Qe=void 0}=e,{adsPreviewParam:$e=void 0}=e,{duration:pt=void 0}=e,{logoClickable:bt}=e,{logoHidden:ve}=e,{logoTargetUrl:Ct=""}=e,{showNextPrevButtons:Lt=!1}=e,{nextButtonActive:St=!1}=e,{prevButtonActive:ze=!1}=e,{endScreenVideoTitle:Ut=void 0}=e,{endScreenVideoThumb:Rt=void 0}=e,{isOneVideoPlaylist:Et=!1}=e,{supportLink:oi}=e,{shadowRootContainer:Nt=void 0}=e,{outerContainerRef:Kt=void 0}=e,{playerStarted:he=!1}=e,{fullScreenTarget:Ke=void 0}=e,{showMiniTimer:ht=!1}=e,{playNextVideo:dt=Cs.noop}=e,{playPrevVideo:Xe=Cs.noop}=e,{repeatPlaylist:Bt=Cs.noop}=e,{seekToInteractive:Xt}=e,{toggleGraph:qt}=e,{playPrevChapter:Qi}=e,{firstStart:fn}=e,ui=we.getLogger().createComponentLog("Root component"),Bi=we.interfaceLanguage$;H(i,Bi,J=>t(52,Q=J));let yn=we.state.playbackState$;H(i,yn,J=>t(152,Z=J));let Di=we.ads.playbackState;H(i,Di,J=>t(153,z=J));let cn=we.state.positionWithScrubbing$;H(i,cn,J=>t(57,xe=J));let gi=we.state.duration$;H(i,gi,J=>t(60,ke=J));let Ni=we.playerPhase;H(i,Ni,J=>t(38,ae=J));let fi=we.ui.isFullscreen;H(i,fi,J=>t(142,g=J));let Ti=we.ui.controlsVisible;H(i,Ti,J=>t(36,I=J));let Pi=we.ui.settingsMenuVisible;H(i,Pi,J=>t(140,s=J));let Ii=we.ui.scrubbingInProgress;H(i,Ii,J=>t(144,v=J));let li=we.ui.contextMenu.visible$;H(i,li,J=>t(33,n=J));let jt=we.ui.debugPanelVisible;H(i,jt,J=>t(63,rt=J));let ti=we.state.isLoaderVisible;H(i,ti,J=>t(154,U=J));let Ei=we.state.isEnded$;H(i,Ei,J=>t(141,c=J));let Yi=we.state.chromecastConnected$;H(i,Yi,J=>t(39,A=J));let Ai=we.state.chromecastDeviceName$;H(i,Ai,J=>t(54,Fe=J));let bi=we.ads.postrollPassed;H(i,bi,J=>t(147,O=J));let Zi=we.state.isLive$;H(i,Zi,J=>t(59,X=J));let wt=we.state.isPlaying$;H(i,wt,J=>t(51,V=J));let Xi=we.state.crashed$;H(i,Xi,J=>t(37,M=J));let Pt=we.webApi.pictureInPictureApi,qi=we.state.currentSubtitle$;H(i,qi,J=>t(55,Ze=J));let Ji=we.state.currentSubtitleCaptions$;H(i,Ji,J=>t(56,et=J));let xi=we.state.duration$;H(i,xi,J=>t(58,ye=J));let ii=we.state.graphIsOpened$;H(i,ii,J=>t(148,re=J));let vi=we.ui.playerSize;H(i,vi,J=>t(34,h=J));let yi=we.ui.is3DVideo;H(i,yi,J=>t(49,m=J));let wi=we.ui.icon3DVideoVisible;H(i,wi,J=>t(53,Ce=J));let ci=we.ui.rotateAlpha;H(i,ci,J=>t(35,P=J));let Ht=we.state.isInteractive,Mi=we.state.isInteractiveTime$;H(i,Mi,J=>t(145,b=J));let Oi=we.state.isInteractiveExpectation$;H(i,Oi,J=>t(151,x=J));let ri=we.state.hasInteractiveBranches,si=we.ui.touched;H(i,si,J=>t(149,Y=J));let di=we.ui.modals.hotKeyMap.data;H(i,di,J=>t(169,u=J));let $i=we.ui.modals.hotKeyMap.show;H(i,$i,J=>t(62,tt=J));let wn=we.ui.overlayContainer$,dn=we.ui.controls.interactiveTimeIndicator;H(i,dn,J=>t(170,k=J));let en=we.state.showInteractiveTimeIndicator,Fi=we.ui.contextMenu.position$;H(i,Fi,J=>t(61,Ge=J));let Jt=we.actions.internal.closeSettingsMenu,{fakeIsPlaying$:Wt}=Qn();H(i,Wt,J=>t(143,y=J));let Yt,Hi,zi,mn,Ui;di.set(Qc());let Ki,nt,mi=Be(!1);H(i,mi,J=>t(50,w=J));let ai,Ue=Be(!1);H(i,Ue,J=>t(150,ee=J));let tn=Be(),pn=Be(!1);H(i,pn,J=>t(146,N=J));let nn=!1,on=!1,ln,rn,_n,kn,xt,ji,En=!1,Bn,Wi=!1,{toggle:An}=Wt,Cn=!1,pi=null,ni;Pt==null||Pt.setContext(Fl());let sn=()=>{me&&!Ht&&Zt(De.controls.hideTimeout)};we.setUiCallbacks({onStarted:sn});let Dn=()=>{window.clearTimeout(zi),Ue.set(!1)},Mn=()=>{window.clearTimeout(mn),tn.set(null)},Zt=J=>{Dn(),Ue.set(!0),zi=window.setTimeout(()=>Ue.set(!1),J);let At=J-100;ai=window.setTimeout(()=>{w&&mi.set(!1)},At>0?At:J)},Kn=(J,At)=>{Mn(),tn.set(At),mn=window.setTimeout(()=>tn.set(null),J)},jn=yi.subscribe(J=>{wi.set(J),J&&(window.clearTimeout(Ui),Ui=window.setTimeout(()=>wi.set(!1),De.controls.hide360IconTimeout))}),Nn=()=>ft(this,null,function*(){var At,Pn,bn,Wn;let J=vo();if(J){let Gn=Kl(),to=hn();J=Gn===to||Gn===Nt}if(J){Zt(De.controls.hideTimeoutFullscreen);try{yield Pt==null?void 0:Pt.remove()}catch(Gn){ui({message:String(Gn)})}}fi.set(J),we.getAdmanWrapper().setFullscreen(J),g?(Pn=(At=we.callbacks)==null?void 0:At.onFullscreenEnter)==null||Pn.call(At):(Wn=(bn=we.callbacks)==null?void 0:bn.onFullscreenExit)==null||Wn.call(bn)}),Vn=J=>{let At=J;vi.set({width:At.target.width,height:At.target.height})};Ft(()=>{var At;return Cr(Nn),jo(Pt)&&(Pt==null||Pt.assignPlayerContainer(Yt),Pt==null||Pt.registryExternalEventHandlers({resize:Vn})),se&&((At=Se.parentElement)==null||At.insertBefore(se,Se.nextSibling)),()=>{window.clearTimeout(zi),window.clearTimeout(ai),window.clearTimeout(mn),window.clearTimeout(Ui),jn(),Pt==null||Pt.dispose(),Sr(Nn)}});let hn=()=>{let J=Kt!=null?Kt:Yt,At=J.getRootNode(),Pn=At instanceof ShadowRoot?At.host:At,bn=Ke instanceof HTMLElement&&Ke.contains(Pn);return De.allowChangingFullscreenTarget&&Ke&&bn?Ke:J},qn=()=>ft(this,null,function*(){vo()?(yield kr(document),ui({message:"exit fullscreen"})):(ui({message:"request fullscreen"}),yield wr(hn()))}),an=()=>{Jt(),li.set(!1)},gn=J=>{li.set(!0),Fi.set({left:J.clientX,top:J.clientY})};function Sn(){pn.set(!0),Ht||Zt(De.controls.hideTimeoutCursor)}function ie(){Ht||(mi.set(!0),Zt(De.controls.hideTimeoutCursor))}function $(){pn.set(!1),t(132,on=!1),t(131,nn=!1),Cn=!1,we.actions.internal.releaseCamera()}function _t(J){if(k&&en){let At=J.currentTarget,Pn=Ef(At),bn=qp(At),Wn=J.pageX-bn,Gn=J.pageY-Pn,{left:to,bottom:Ro,right:Bo}=k,kt=Bo-to;return Wn>=to-kt&&Gn<=Ro+kt}}function Gt(J){if(Yt){let At=Ef(J.currentTarget),Pn=h.height,bn=J.pageY-At;if(_t(J)){t(132,on=!1);return}bn<40?t(132,on=!0):bn>Pn-40?t(131,nn=!0):(t(132,on=!1),s||t(131,nn=!1))}}function Tn(J){Gt(J),rn||Zt(De.controls.hideTimeoutCursor),m&&Cn&&pi&&we.actions.internal.moveCameraFocusPX(pi.clientX-J.clientX,pi.clientY-J.clientY,J.timeStamp-pi.timeStamp),pi=J}let _i=J=>{J.button===0&&(Cn=!0,we.actions.internal.holdCamera()),Zt(De.controls.hideTimeoutCursor)},On=J=>{J.button===0&&(pi=J,Cn=!1,we.actions.internal.releaseCamera()),Zt(De.controls.hideTimeoutCursor)},eo=()=>{Np&&(ui({message:"double click on video"}),qn(),Zt(De.controls.hideTimeoutCursor))},Ln=()=>{if(n||s){an();return}if(!(c&&!ri)){if(Wi)return An();if(ni==null||ni.focus(),!he){fn(),Zt(De.controls.hideTimeoutCursor);return}we.actions.internal.togglePlay(),Zt(De.controls.hideTimeoutCursor)}},ne=J=>{an(),si.set(!0),Zt(De.controls.hideTimeout),J&&Kn(De.controls.hideHotKeyHelpers,J)},Io=()=>{var J,At;an(),(J=we.callbacks)!=null&&J.onOpenHotKeyMap?(At=we.callbacks)==null||At.onOpenHotKeyMap(u):$i.update(Pn=>!Pn)},Rl=()=>{if(n||s){an();return}},Bl=()=>{si.set(!0)},Eo=we.ui.contextMenu.openedByBtnKeyboard$;H(i,Eo,J=>t(139,a=J));let Ao=we.ui.contextMenu.btnRef$;H(i,Ao,J=>t(138,l=J));let lo,po=we.ui.contextMenu.openedByHotKey$;H(i,po,J=>t(137,r=J));let xo=we.ui.contextMenu.lastActiveElem$;H(i,xo,J=>t(136,o=J));function $o(J){pe[J?"unshift":"push"](()=>{Se=J,t(0,Se)})}let _o=()=>ni==null?void 0:ni.focus();function el(J){Hi=J,t(41,Hi)}let Mo=()=>ni==null?void 0:ni.focus();function ro(J){lo=J,t(32,lo)}function Vo(J){pe[J?"unshift":"push"](()=>{ni=J,t(48,ni)})}function tl(J){pe[J?"unshift":"push"](()=>{nt=J,t(30,nt)})}function Lo(J){pe[J?"unshift":"push"](()=>{Yt=J,t(40,Yt)})}return i.$$set=J=>{"store"in J&&t(125,we=J.store),"uiConfig"in J&&t(1,De=J.uiConfig),"title"in J&&t(2,Je=J.title),"thumbUrl"in J&&t(3,st=J.thumbUrl),"videoContainer"in J&&t(0,Se=J.videoContainer),"interactiveContainer"in J&&t(126,se=J.interactiveContainer),"live"in J&&t(4,We=J.live),"autoplay"in J&&t(5,me=J.autoplay),"canRewindLive"in J&&t(6,Ie=J.canRewindLive),"showAds"in J&&t(7,Oe=J.showAds),"adsSlotId"in J&&t(8,ce=J.adsSlotId),"adsParams"in J&&t(9,Qe=J.adsParams),"adsPreviewParam"in J&&t(10,$e=J.adsPreviewParam),"duration"in J&&t(11,pt=J.duration),"logoClickable"in J&&t(12,bt=J.logoClickable),"logoHidden"in J&&t(13,ve=J.logoHidden),"logoTargetUrl"in J&&t(14,Ct=J.logoTargetUrl),"showNextPrevButtons"in J&&t(15,Lt=J.showNextPrevButtons),"nextButtonActive"in J&&t(16,St=J.nextButtonActive),"prevButtonActive"in J&&t(17,ze=J.prevButtonActive),"endScreenVideoTitle"in J&&t(18,Ut=J.endScreenVideoTitle),"endScreenVideoThumb"in J&&t(19,Rt=J.endScreenVideoThumb),"isOneVideoPlaylist"in J&&t(20,Et=J.isOneVideoPlaylist),"supportLink"in J&&t(21,oi=J.supportLink),"shadowRootContainer"in J&&t(127,Nt=J.shadowRootContainer),"outerContainerRef"in J&&t(128,Kt=J.outerContainerRef),"playerStarted"in J&&t(22,he=J.playerStarted),"fullScreenTarget"in J&&t(129,Ke=J.fullScreenTarget),"showMiniTimer"in J&&t(130,ht=J.showMiniTimer),"playNextVideo"in J&&t(23,dt=J.playNextVideo),"playPrevVideo"in J&&t(24,Xe=J.playPrevVideo),"repeatPlaylist"in J&&t(25,Bt=J.repeatPlaylist),"seekToInteractive"in J&&t(26,Xt=J.seekToInteractive),"toggleGraph"in J&&t(27,qt=J.toggleGraph),"playPrevChapter"in J&&t(28,Qi=J.playPrevChapter),"firstStart"in J&&t(29,fn=J.firstStart)},i.$$.update=()=>{if(i.$$.dirty[1]&192|i.$$.dirty[4]&1610612736)e:t(42,Ki=(ae==="video"&&U||ae==="ads"&&z==="inactive")&&!M);if(i.$$.dirty[0]&1073741824)e:wn.set(nt);if(i.$$.dirty[4]&268435456)e:t(133,ln=Z!==Dp.PlaybackState.PLAYING);if(i.$$.dirty[4]&136381312)e:t(134,rn=b&&!s&&!(nn||on)&&!(ln&&!x));if(i.$$.dirty[1]&448|i.$$.dirty[4]&68224512)e:Ti.set((ln||s||v||A||ee)&&!rn&&(ae==="video"||ae==="ads")&&!M);if(i.$$.dirty[0]&2|i.$$.dirty[1]&224|i.$$.dirty[4]&33554496)e:t(43,_n=De.features.thumbTimer&&ht&&ae==="video"&&!I&&!M&&!Ht&&(De.hideThumbTimerAfterTouch&&!Y||!De.hideThumbTimerAfterTouch));if(i.$$.dirty[1]&128|i.$$.dirty[4]&17039360)e:t(44,kn=ae==="video"&&!re&&g);if(i.$$.dirty[0]&128|i.$$.dirty[1]&64|i.$$.dirty[4]&8519680)e:t(31,xt=(Oe&&O||!Oe)&&c&&!M);if(i.$$.dirty[1]&33|i.$$.dirty[4]&6291456)e:t(45,ji=N&&!(I||xt)&&!b);if(i.$$.dirty[0]&2|i.$$.dirty[4]&3147776)e:!v&&En&&!b&&Zt(De.controls.hideTimeoutCursor),t(135,En=v);if(i.$$.dirty[0]&1|i.$$.dirty[1]&24)e:t(46,Bn=Se&&P%180?h.height/h.width:1);if(i.$$.dirty[4]&524288)e:t(47,Wi=y!==null);if(i.$$.dirty[1]&6|i.$$.dirty[4]&32768)e:Qo(lo,n,a);if(i.$$.dirty[1]&4|i.$$.dirty[4]&16384)e:{let J=l;J&&hl(J,n,Eo)}if(i.$$.dirty[1]&6|i.$$.dirty[4]&8192)e:Qo(lo,n,r);if(i.$$.dirty[1]&4|i.$$.dirty[4]&4096)e:{let J=o;J&&u1(J,n,po)}},[Se,De,Je,st,We,me,Ie,Oe,ce,Qe,$e,pt,bt,ve,Ct,Lt,St,ze,Ut,Rt,Et,oi,he,dt,Xe,Bt,Xt,qt,Qi,fn,nt,xt,lo,n,h,P,I,M,ae,A,Yt,Hi,Ki,_n,kn,ji,Bn,Wi,ni,m,w,V,Q,Ce,Fe,Ze,et,xe,ye,X,ke,Ge,tt,rt,Bi,yn,Di,cn,gi,Ni,fi,Ti,Pi,Ii,li,jt,ti,Ei,Yi,Ai,bi,Zi,wt,Xi,qi,Ji,xi,ii,vi,yi,wi,ci,Ht,Mi,Oi,si,di,$i,dn,Fi,Wt,mi,Ue,tn,pn,An,qn,an,gn,Sn,ie,$,Tn,_i,On,eo,Ln,ne,Io,Rl,Bl,Eo,Ao,po,xo,we,se,Nt,Kt,Ke,ht,nn,on,ln,rn,En,o,r,l,a,s,c,g,y,v,b,N,O,re,Y,ee,x,Z,z,U,$o,_o,el,Mo,ro,Vo,tl,Lo]}var Af=class extends j{constructor(e){super(),G(this,e,y6,v6,K,{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},g6,[-1,-1,-1,-1,-1,-1,-1])}},Op=Af;var n_=require("@vkontakte/videoplayer-core"),mo=require("@vkontakte/videoplayer-shared");var Il=require("@vkontakte/videoplayer-shared"),Fp=i=>{if(!(0,Il.isIOS)(!0))return!1;let e=i.device===Il.CurrentClientDevice.iPad||(window==null?void 0:window.screen.width)>700,t=(0,Il.getIOSVersion)();return!e||e&&!!t&&t<16};function w6(i){Te(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 Hp(i){let e,t,n,o,r,l,a,s,u,c,m,h,k,g,w,y=W("doubletap_seek_step",{seconds:i[1].toFixed(0)})+"",P;return{c(){e=T("div"),n=q(),o=T("div"),r=T("div"),l=T("div"),s=q(),u=T("div"),m=q(),h=T("div"),g=q(),w=T("p"),P=Le(y),f(e,"class",t="semicircle "+i[0]+" svelte-nhq2ld"),f(l,"class",a="triangle "+i[0]+" svelte-nhq2ld"),f(u,"class",c="triangle "+i[0]+" svelte-nhq2ld"),f(h,"class",k="triangle "+i[0]+" svelte-nhq2ld"),f(r,"class","triangles-wrapper svelte-nhq2ld"),f(w,"class","step-caption svelte-nhq2ld"),f(o,"class","info svelte-nhq2ld")},m(v,b){S(v,e,b),S(v,n,b),S(v,o,b),p(o,r),p(r,l),p(r,s),p(r,u),p(r,m),p(r,h),p(o,g),p(o,w),p(w,P)},p(v,b){b&1&&t!==(t="semicircle "+v[0]+" svelte-nhq2ld")&&f(e,"class",t),b&1&&a!==(a="triangle "+v[0]+" svelte-nhq2ld")&&f(l,"class",a),b&1&&c!==(c="triangle "+v[0]+" svelte-nhq2ld")&&f(u,"class",c),b&1&&k!==(k="triangle "+v[0]+" svelte-nhq2ld")&&f(h,"class",k),b&2&&y!==(y=W("doubletap_seek_step",{seconds:v[1].toFixed(0)})+"")&&Ye(P,y)},d(v){v&&(C(e),C(n),C(o))}}}function k6(i){let e,t,n,o,r=i[2]&&Hp(i);return{c(){e=T("div"),r&&r.c(),f(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",ut(i[3]())),n=!0)},p(l,[a]){l[2]?r?r.p(l,a):(r=Hp(l),r.c(),r.m(e,null)):r&&(r.d(1),r=null),a&1&&t!==(t="double-click-area "+l[0]+" svelte-nhq2ld")&&f(e,"class",t)},i:_e,o:_e,d(l){l&&C(e),r&&r.d(),n=!1,o()}}}function C6(i,e,t){let{side:n}=e,{seekStep:o}=e,{handleSingleFirstClick:r}=e,{handleSecondClick:l}=e,a=!1,s=0,u=0,c=()=>{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 Zn(()=>{window.clearTimeout(s),window.clearTimeout(u)}),i.$$set=m=>{"side"in m&&t(0,n=m.side),"seekStep"in m&&t(1,o=m.seekStep),"handleSingleFirstClick"in m&&t(4,r=m.handleSingleFirstClick),"handleSecondClick"in m&&t(5,l=m.handleSecondClick)},[n,o,a,c,r,l]}var Mf=class extends j{constructor(e){super(),G(this,e,C6,k6,K,{side:0,seekStep:1,handleSingleFirstClick:4,handleSecondClick:5},w6)}},Vf=Mf;function S6(i,e,t){let{playNextVideo:n}=e;return Ft(()=>{n()}),i.$$set=o=>{"playNextVideo"in o&&t(0,n=o.playNextVideo)},[n]}var Lf=class extends j{constructor(e){super(),G(this,e,S6,null,K,{playNextVideo:0})}},zp=Lf;var o_=require("@vkontakte/videoplayer-shared");var{window:T6}=Do;function P6(i){Te(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 Up(i){let e,t,n,o;e=new Vf({props:{side:"left",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[100],handleSecondClick:i[131]}});let r=!i[49]&&Kp(i);return{c(){B(e.$$.fragment),t=q(),r&&r.c(),n=ct()},m(l,a){L(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&&(ue(),_(r,1,1,()=>{r=null}),fe()):r?(r.p(l,a),a[1]&262144&&d(r,1)):(r=Kp(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)),R(e,l),r&&r.d(l)}}}function Kp(i){let e,t;return e=new Vf({props:{side:"right",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[100],handleSecondClick:i[132]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&2&&(r.seekStep=n[1].controls.seekStepMobile/1e3),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function jp(i){var n;let e,t;return e=new ws({props:{thumbUrl:i[2],startTime:(n=i[3])==null?void 0:n.startTime}}),{c(){B(e.$$.fragment)},m(o,r){L(e,o,r),t=!0},p(o,r){var a;let l={};r[0]&4&&(l.thumbUrl=o[2]),r[0]&8&&(l.startTime=(a=o[3])==null?void 0:a.startTime),e.$set(l)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){_(e.$$.fragment,o),t=!1},d(o){R(e,o)}}}function Wp(i){let e,t;return e=new ks({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Gp(i){let e,t,n;return t=new Tr({props:{adsSlotId:i[7],adsParams:i[8],adsPreviewParam:i[9],duration:i[10]}}),{c(){e=T("div"),B(t.$$.fragment),f(e,"class","ads-container svelte-1jy89ut"),F(e,"hidden",i[34]!=="ads")},m(o,r){S(o,e,r),L(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)&&F(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),R(t)}}}function Qp(i){let e,t;return e=new zp({props:{playNextVideo:i[22]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&4194304&&(r.playNextVideo=n[22]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Yp(i){let e,t;return e=new hs({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Zp(i){let e,t,n;return t=new hr({props:{"aria-label":W("video360")}}),{c(){e=T("div"),B(t.$$.fragment),f(e,"class","spherical-video-icon svelte-1jy89ut")},m(o,r){S(o,e,r),L(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),R(t)}}}function Xp(i){let e,t;return e=new bs({props:{thumbUrl:i[2],chromecastDeviceName:i[52]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o[0]&4&&(r.thumbUrl=n[2]),o[1]&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){R(e,n)}}}function Jp(i){let e,t;return e=new gs({props:{shifted:i[30],captions:i[54],position:i[44],playerSize:i[31],isMobile:!0}}),{c(){B(e.$$.fragment)},m(n,o){L(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){R(e,n)}}}function xp(i){let e,t,n,o,r;return t=new vs({}),{c(){e=T("div"),B(t.$$.fragment)},m(l,a){S(l,e,a),L(t,e,null),n=!0,o||(r=de(e,"click",ut(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),R(t),o=!1,r()}}}function $p(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 _s({props:r}),pe.push(()=>qe(e,"controlsElementRef",o)),{c(){B(e.$$.fragment)},m(l,a){L(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){R(e,l)}}}function e_(i){let e,t;return e=new Br({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function t_(i){let e,t;return e=new Vr({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function i_(i){let e,t,n=i[5]&&i[78]&&!i[48].has("TIMELINE"),o,r,l,a,s,u,c,m,h,k,g,w,y,P,v,b;e=new ys({props:{hidden:i[34]!=="thumb"||i[33]||i[89]&&i[4],thumbUrl:i[2],startVideo:i[28]}});let I=n&&Up(i),N=i[34]==="waitingLive"&&jp(i),M=i[34]==="waitingRecord"&&Wp(i),O=i[6]&&i[21]&&Gp(i),re=i[41]&&i[17]&&i[18]&&Qp(i),ae=i[50]&&Yp(i),Y=i[51]&&Zp(i),ee=i[35]&&Xp(i),A=i[53].value!=="off"&&Jp(i),x=i[33]&&xp(i),Z=i[21]&&$p(i);w=new Ir({props:{isLive:i[56],isHidden:!i[40],isPlaying:i[46],position:i[44],duration:i[43]}});let z=i[38]&&e_(i),U=i[57]&&t_(i);return{c(){B(e.$$.fragment),t=q(),I&&I.c(),o=q(),N&&N.c(),r=q(),M&&M.c(),l=q(),O&&O.c(),a=q(),re&&re.c(),s=q(),ae&&ae.c(),u=q(),Y&&Y.c(),c=q(),ee&&ee.c(),m=q(),A&&A.c(),h=q(),x&&x.c(),k=q(),Z&&Z.c(),g=q(),B(w.$$.fragment),y=q(),z&&z.c(),P=q(),U&&U.c(),v=ct()},m(V,Q){L(e,V,Q),S(V,t,Q),I&&I.m(V,Q),S(V,o,Q),N&&N.m(V,Q),S(V,r,Q),M&&M.m(V,Q),S(V,l,Q),O&&O.m(V,Q),S(V,a,Q),re&&re.m(V,Q),S(V,s,Q),ae&&ae.m(V,Q),S(V,u,Q),Y&&Y.m(V,Q),S(V,c,Q),ee&&ee.m(V,Q),S(V,m,Q),A&&A.m(V,Q),S(V,h,Q),x&&x.m(V,Q),S(V,k,Q),Z&&Z.m(V,Q),S(V,g,Q),L(w,V,Q),S(V,y,Q),z&&z.m(V,Q),S(V,P,Q),U&&U.m(V,Q),S(V,v,Q),b=!0},p(V,Q){let Ce={};Q[0]&16|Q[1]&12&&(Ce.hidden=V[34]!=="thumb"||V[33]||V[89]&&V[4]),Q[0]&4&&(Ce.thumbUrl=V[2]),Q[0]&268435456&&(Ce.startVideo=V[28]),e.$set(Ce),Q[0]&32|Q[1]&131072&&(n=V[5]&&V[78]&&!V[48].has("TIMELINE")),n?I?(I.p(V,Q),Q[0]&32|Q[1]&131072&&d(I,1)):(I=Up(V),I.c(),d(I,1),I.m(o.parentNode,o)):I&&(ue(),_(I,1,1,()=>{I=null}),fe()),V[34]==="waitingLive"?N?(N.p(V,Q),Q[1]&8&&d(N,1)):(N=jp(V),N.c(),d(N,1),N.m(r.parentNode,r)):N&&(ue(),_(N,1,1,()=>{N=null}),fe()),V[34]==="waitingRecord"?M?Q[1]&8&&d(M,1):(M=Wp(V),M.c(),d(M,1),M.m(l.parentNode,l)):M&&(ue(),_(M,1,1,()=>{M=null}),fe()),V[6]&&V[21]?O?(O.p(V,Q),Q[0]&2097216&&d(O,1)):(O=Gp(V),O.c(),d(O,1),O.m(a.parentNode,a)):O&&(ue(),_(O,1,1,()=>{O=null}),fe()),V[41]&&V[17]&&V[18]?re?(re.p(V,Q),Q[0]&393216|Q[1]&1024&&d(re,1)):(re=Qp(V),re.c(),d(re,1),re.m(s.parentNode,s)):re&&(ue(),_(re,1,1,()=>{re=null}),fe()),V[50]?ae?Q[1]&524288&&d(ae,1):(ae=Yp(V),ae.c(),d(ae,1),ae.m(u.parentNode,u)):ae&&(ue(),_(ae,1,1,()=>{ae=null}),fe()),V[51]?Y?(Y.p(V,Q),Q[1]&1048576&&d(Y,1)):(Y=Zp(V),Y.c(),d(Y,1),Y.m(c.parentNode,c)):Y&&(ue(),_(Y,1,1,()=>{Y=null}),fe()),V[35]?ee?(ee.p(V,Q),Q[1]&16&&d(ee,1)):(ee=Xp(V),ee.c(),d(ee,1),ee.m(m.parentNode,m)):ee&&(ue(),_(ee,1,1,()=>{ee=null}),fe()),V[53].value!=="off"?A?(A.p(V,Q),Q[1]&4194304&&d(A,1)):(A=Jp(V),A.c(),d(A,1),A.m(h.parentNode,h)):A&&(ue(),_(A,1,1,()=>{A=null}),fe()),V[33]?x?(x.p(V,Q),Q[1]&4&&d(x,1)):(x=xp(V),x.c(),d(x,1),x.m(k.parentNode,k)):x&&(ue(),_(x,1,1,()=>{x=null}),fe()),V[21]?Z?(Z.p(V,Q),Q[0]&2097152&&d(Z,1)):(Z=$p(V),Z.c(),d(Z,1),Z.m(g.parentNode,g)):Z&&(ue(),_(Z,1,1,()=>{Z=null}),fe());let Fe={};Q[1]&33554432&&(Fe.isLive=V[56]),Q[1]&512&&(Fe.isHidden=!V[40]),Q[1]&32768&&(Fe.isPlaying=V[46]),Q[1]&8192&&(Fe.position=V[44]),Q[1]&4096&&(Fe.duration=V[43]),w.$set(Fe),V[38]?z?Q[1]&128&&d(z,1):(z=e_(V),z.c(),d(z,1),z.m(P.parentNode,P)):z&&(ue(),_(z,1,1,()=>{z=null}),fe()),V[57]?U?Q[1]&67108864&&d(U,1):(U=t_(V),U.c(),d(U,1),U.m(v.parentNode,v)):U&&(ue(),_(U,1,1,()=>{U=null}),fe())},i(V){b||(d(e.$$.fragment,V),d(I),d(N),d(M),d(O),d(re),d(ae),d(Y),d(ee),d(A),d(x),d(Z),d(w.$$.fragment,V),d(z),d(U),b=!0)},o(V){_(e.$$.fragment,V),_(I),_(N),_(M),_(O),_(re),_(ae),_(Y),_(ee),_(A),_(x),_(Z),_(w.$$.fragment,V),_(z),_(U),b=!1},d(V){V&&(C(t),C(o),C(r),C(l),C(a),C(s),C(u),C(c),C(m),C(h),C(k),C(g),C(y),C(P),C(v)),R(e,V),I&&I.d(V),N&&N.d(V),M&&M.d(V),O&&O.d(V),re&&re.d(V),ae&&ae.d(V),Y&&Y.d(V),ee&&ee.d(V),A&&A.d(V),x&&x.d(V),Z&&Z.d(V),R(w,V),z&&z.d(V),U&&U.d(V)}}}function I6(i){let e,t,n,o,r,l=i[47],a,s,u,c,m,h,k=i_(i);return{c(){e=T("div"),t=T("div"),n=T("div"),r=q(),k.c(),a=q(),s=T("div"),f(n,"class","video-container svelte-1jy89ut"),f(n,"style",o=`transform: rotate(${i[32]}deg) scale(${i[42]})`),f(n,"data-testid","video-container"),f(n,"data-is-playing",i[46]),F(n,"fast-rotate",!i[1].isSmoothVideoRotate),f(t,"class","video-wrapper svelte-1jy89ut"),F(t,"hidden",i[34]!=="video"),f(s,"class","overlay-container"),f(e,"class","player-wrapper svelte-1jy89ut"),f(e,"role","region"),f(e,"aria-label",u=W("aria_label_video_player")),f(e,"tabindex","-1")},m(g,w){S(g,e,w),p(e,t),p(t,n),i[130](n),p(e,r),k.m(e,null),p(e,a),p(e,s),i[134](s),i[135](e),c=!0,m||(h=[de(T6,"blur",i[99]),de(t,"click",Ot(i[100])),de(e,"click",i[102],!0),de(e,"focusin",i[103],!0)],m=!0)},p(g,w){(!c||w[1]&2050&&o!==(o=`transform: rotate(${g[32]}deg) scale(${g[42]})`))&&f(n,"style",o),(!c||w[1]&32768)&&f(n,"data-is-playing",g[46]),(!c||w[0]&2)&&F(n,"fast-rotate",!g[1].isSmoothVideoRotate),(!c||w[1]&8)&&F(t,"hidden",g[34]!=="video"),w[1]&65536&&K(l,l=g[47])?(ue(),_(k,1,1,_e),fe(),k=i_(g),k.c(),d(k,1),k.m(e,a)):k.p(g,w)},i(g){c||(d(k),c=!0)},o(g){_(k),c=!1},d(g){g&&C(e),i[130](null),k.d(g),i[134](null),i[135](null),m=!1,ot(h)}}}function E6(i,e,t){var gn,Sn;let n,o,r,l,a,s,u,c,m,h,k,g,w,y,P,v,b,I,N,M,O,re,ae,Y,ee,A,x,Z,z,U,V,Q,Ce,Fe,Ze,et,xe,{store:ye}=e,{uiConfig:X}=e,{thumbUrl:ke}=e,{videoContainer:Ge}=e,{interactiveContainer:tt}=e,{live:rt}=e,{autoplay:we}=e,{canRewindLive:De}=e,{showAds:Je}=e,{adsSlotId:st=void 0}=e,{adsParams:Se=void 0}=e,{adsPreviewParam:se=void 0}=e,{duration:We=void 0}=e,{logoClickable:me}=e,{logoHidden:Ie}=e,{logoTargetUrl:Oe=""}=e,{showNextPrevButtons:ce=!1}=e,{nextButtonActive:Qe=!1}=e,{prevButtonActive:$e=!1}=e,{endScreenVideoTitle:pt=void 0}=e,{endScreenVideoThumb:bt=void 0}=e,{isOneVideoPlaylist:ve=!1}=e,{supportLink:Ct}=e,{shadowRootContainer:Lt=void 0}=e,{outerContainerRef:St=void 0}=e,{showMiniTimer:ze=!1}=e,{fullScreenTarget:Ut=void 0}=e,{playerStarted:Rt=!1}=e,{playNextVideo:Et=mo.noop}=e,{playPrevVideo:oi=mo.noop}=e,{repeatPlaylist:Nt=mo.noop}=e,{seekToInteractive:Kt}=e,{toggleGraph:he}=e,{playPrevChapter:Ke}=e,{firstStart:ht}=e,{seekTime:dt}=e,Xe=ye.getLogger().createComponentLog("Root component"),Bt=ye.interfaceLanguage$;H(i,Bt,ie=>t(47,x=ie));let Xt=ye.state.playbackState$;H(i,Xt,ie=>t(127,ae=ie));let qt=ye.ads.playbackState;H(i,qt,ie=>t(128,Y=ie));let Qi=ye.state.positionWithScrubbing$;H(i,Qi,ie=>t(44,a=ie));let fn=ye.state.duration$;H(i,fn,ie=>t(43,l=ie));let ui=ye.playerPhase;H(i,ui,ie=>t(34,N=ie));let Bi=ye.ui.isFullscreen;H(i,Bi,ie=>t(142,u=ie));let yn=ye.ui.controlsVisible;H(i,yn,ie=>t(30,o=ie));let Di=ye.ui.interactiveHideMobileControls;H(i,Di,ie=>t(119,k=ie));let cn=ye.ui.settingsMenuVisible;H(i,cn,ie=>t(118,n=ie));let gi=ye.ui.scrubbingInProgress;H(i,gi,ie=>t(120,w=ie));let Ni=ye.ui.debugPanelVisible;H(i,Ni,ie=>t(57,xe=ie));let fi=ye.state.isLoaderVisible;H(i,fi,ie=>t(129,ee=ie));let Ti=ye.state.isEnded$;H(i,Ti,ie=>t(122,v=ie));let Pi=ye.state.chromecastConnected$;H(i,Pi,ie=>t(35,M=ie));let Ii=ye.state.chromecastDeviceName$;H(i,Ii,ie=>t(52,Q=ie));let li=ye.ads.postrollPassed;H(i,li,ie=>t(123,b=ie));let jt=ye.ui.mobileUnmuteButtonExpanded,ti=ye.ui.mobileUnmuteButtonVisible,Ei=ye.state.isLive$;H(i,Ei,ie=>t(56,et=ie));let Yi=ye.state.isPlaying$;H(i,Yi,ie=>t(46,A=ie));let Ai=ye.state.isActiveLive$;H(i,Ai,ie=>t(49,z=ie));let bi=ye.state.isRewindableLive$,Zi=ye.state.crashed$;H(i,Zi,ie=>t(33,P=ie));let wt=ye.webApi.pictureInPictureApi,Xi=ye.state.videoSize$;H(i,Xi,ie=>t(143,m=ie));let Pt=ye.state.currentSubtitle$;H(i,Pt,ie=>t(53,Ce=ie));let qi=ye.state.currentSubtitleCaptions$;H(i,qi,ie=>t(54,Fe=ie));let Ji=ye.state.duration$;H(i,Ji,ie=>t(55,Ze=ie));let xi=ye.state.graphIsOpened$;H(i,xi,ie=>t(126,re=ie));let ii=ye.ui.playerSize;H(i,ii,ie=>t(31,c=ie));let vi=ye.ui.is3DVideo;H(i,vi,ie=>t(50,U=ie));let yi=ye.ui.icon3DVideoVisible;H(i,yi,ie=>t(51,V=ie));let wi=ye.ui.rotateAlpha;H(i,wi,ie=>t(32,g=ie));let ci=ye.state.isInteractive,Ht=ye.state.isInteractiveTime$;H(i,Ht,ie=>t(121,y=ie));let Mi=ye.state.isInteractiveExpectation$;H(i,Mi,ie=>t(125,O=ie));let Oi=ye.state.hasInteractiveBranches,ri=ye.ui.controls.disabledControls$;H(i,ri,ie=>t(48,Z=ie));let si=ye.ui.touched;H(i,si,ie=>t(124,I=ie));let di=ye.ui.clientInfo$;H(i,di,ie=>t(141,s=ie));let $i=ye.ui.overlayContainer$,wn=ye.state.isFirstBytes$;H(i,wn,ie=>t(140,r=ie));let dn=ye.actions.internal.closeSettingsMenu,en=(gn=ye.callbacks)==null?void 0:gn.onDisabledPlayPrevChapterClick,Fi=(Sn=ye.callbacks)==null?void 0:Sn.onDisabledSeekToInteractiveClick,Jt,Wt,Yt,Hi,zi,mn,Ui,Ki=Be(!1);H(i,Ki,ie=>t(45,h=ie));let nt,mi=!1,ai,Ue=!1,tn,pn=!0,nn,on,ln=!1,rn;wt==null||wt.setContext(Fl());let _n=ie=>{clearTimeout(Hi),ie&&(ti.set(!0),jt.set(!0),Hi=window.setTimeout(()=>{jt.set(!1)},X.controls.collapseMobileUnmute),ci||xt(X.controls.hideTimeoutMobile))};ye.setUiCallbacks({onStarted:_n});let kn=()=>{window.clearTimeout(Yt),t(113,mi=!1),k&&Di.set(!1)},xt=ie=>{kn(),t(113,mi=!0),Yt=window.setTimeout(()=>t(113,mi=!1),ie);let $=ie-100;nt=window.setTimeout(()=>{h&&Ki.set(!1)},$>0?$:ie)},ji=vi.subscribe(ie=>{yi.set(ie),ie&&(window.clearTimeout(zi),zi=window.setTimeout(()=>yi.set(!1),X.controls.hide360IconTimeout))}),En=()=>ft(this,null,function*(){var $,_t,Gt,Tn;let ie=vo();if(ie){let _i=Kl(),On=An(),eo=(0,o_.getCurrentBrowser)().browser===mo.CurrentClientBrowser.SamsungBrowser&&_i===Lt;ie=_i===On||eo}if(ie){xt(X.controls.hideTimeoutFullscreen);try{yield wt==null?void 0:wt.remove()}catch(_i){Xe({message:String(_i)})}try{let _i=m!=null&&m.width&&(m!=null&&m.height)?m:c;yield Gc(_i)}catch(_i){Xe({message:String(_i)})}}Bi.set(ie),ye.getAdmanWrapper().setFullscreen(ie),u?(_t=($=ye.callbacks)==null?void 0:$.onFullscreenEnter)==null||_t.call($):(Tn=(Gt=ye.callbacks)==null?void 0:Gt.onFullscreenExit)==null||Tn.call(Gt)}),Bn=ie=>{let $=ie;ii.set({width:$.target.width,height:$.target.height})};Ft(()=>{var $;return Cr(En),jo(wt)&&(wt==null||wt.assignPlayerContainer(Jt),wt==null||wt.registryExternalEventHandlers({resize:Bn})),t(39,pn=!Fp(s)),tt&&(($=Ge.parentElement)==null||$.insertBefore(tt,Ge.nextSibling)),()=>{window.clearTimeout(Yt),window.clearTimeout(nt),window.clearTimeout(Hi),window.clearTimeout(zi),ji(),wt==null||wt.dispose(),Sr(En)}});let Wi=ie=>{let $=a+(ie==="forward"?1:-1)*X.controls.seekStepMobile/1e3;$<0?$=0:$>l&&($=l-1),t(115,Ue=!0),dt($)},An=()=>{let ie=(0,mo.isIOS)()||!St?Jt:St,$=ie.getRootNode(),_t=$ instanceof ShadowRoot?$.host:$,Gt=Ut instanceof HTMLElement&&Ut.contains(_t);return X.allowChangingFullscreenTarget&&Ut&&Gt?Ut:ie},Cn=()=>ft(this,null,function*(){if(vo())yield kr(document),Xe({message:"exit fullscreen"});else{if(Xe({message:"request fullscreen"}),(0,mo.isIOS)()&&!r)return;yield wr(An())}}),pi=()=>{dn()},ni=()=>{if(n){pi();return}if(!Rt){ht(),xt(X.controls.hideTimeoutCursor);return}t(115,Ue=!1),o?kn():xt(X.controls.hideTimeoutMobile)},sn=()=>{if(n){pi();return}},Dn=()=>{si.set(!0)},Mn=()=>{ci||(Ki.set(!0),xt(X.controls.hideTimeoutCursor))},Zt=ie=>{en&&(en(ie),xt(X.controls.hideTimeoutMobile))},Kn=ie=>{Fi&&(Fi(ie),xt(X.controls.hideTimeoutMobile))};function jn(ie){pe[ie?"unshift":"push"](()=>{Ge=ie,t(0,Ge)})}let Nn=()=>Wi("backward"),Vn=()=>Wi("forward");function hn(ie){Wt=ie,t(37,Wt)}function qn(ie){pe[ie?"unshift":"push"](()=>{Ui=ie,t(29,Ui)})}function an(ie){pe[ie?"unshift":"push"](()=>{Jt=ie,t(36,Jt)})}return i.$$set=ie=>{"store"in ie&&t(106,ye=ie.store),"uiConfig"in ie&&t(1,X=ie.uiConfig),"thumbUrl"in ie&&t(2,ke=ie.thumbUrl),"videoContainer"in ie&&t(0,Ge=ie.videoContainer),"interactiveContainer"in ie&&t(107,tt=ie.interactiveContainer),"live"in ie&&t(3,rt=ie.live),"autoplay"in ie&&t(4,we=ie.autoplay),"canRewindLive"in ie&&t(5,De=ie.canRewindLive),"showAds"in ie&&t(6,Je=ie.showAds),"adsSlotId"in ie&&t(7,st=ie.adsSlotId),"adsParams"in ie&&t(8,Se=ie.adsParams),"adsPreviewParam"in ie&&t(9,se=ie.adsPreviewParam),"duration"in ie&&t(10,We=ie.duration),"logoClickable"in ie&&t(11,me=ie.logoClickable),"logoHidden"in ie&&t(12,Ie=ie.logoHidden),"logoTargetUrl"in ie&&t(13,Oe=ie.logoTargetUrl),"showNextPrevButtons"in ie&&t(14,ce=ie.showNextPrevButtons),"nextButtonActive"in ie&&t(15,Qe=ie.nextButtonActive),"prevButtonActive"in ie&&t(16,$e=ie.prevButtonActive),"endScreenVideoTitle"in ie&&t(17,pt=ie.endScreenVideoTitle),"endScreenVideoThumb"in ie&&t(18,bt=ie.endScreenVideoThumb),"isOneVideoPlaylist"in ie&&t(19,ve=ie.isOneVideoPlaylist),"supportLink"in ie&&t(20,Ct=ie.supportLink),"shadowRootContainer"in ie&&t(108,Lt=ie.shadowRootContainer),"outerContainerRef"in ie&&t(109,St=ie.outerContainerRef),"showMiniTimer"in ie&&t(110,ze=ie.showMiniTimer),"fullScreenTarget"in ie&&t(111,Ut=ie.fullScreenTarget),"playerStarted"in ie&&t(21,Rt=ie.playerStarted),"playNextVideo"in ie&&t(22,Et=ie.playNextVideo),"playPrevVideo"in ie&&t(23,oi=ie.playPrevVideo),"repeatPlaylist"in ie&&t(24,Nt=ie.repeatPlaylist),"seekToInteractive"in ie&&t(25,Kt=ie.seekToInteractive),"toggleGraph"in ie&&t(26,he=ie.toggleGraph),"playPrevChapter"in ie&&t(27,Ke=ie.playPrevChapter),"firstStart"in ie&&t(28,ht=ie.firstStart),"seekTime"in ie&&t(112,dt=ie.seekTime)},i.$$.update=()=>{if(i.$$.dirty[1]&12|i.$$.dirty[4]&48)e:t(38,mn=(N==="video"&&ee||N==="ads"&&Y==="inactive")&&!P);if(i.$$.dirty[0]&536870912)e:$i.set(Ui);if(i.$$.dirty[4]&8)e:t(114,ai=ae!==n_.PlaybackState.PLAYING);if(i.$$.dirty[3]&607125504|i.$$.dirty[4]&6)e:t(116,tn=re||k||!mi&&(v&&!!Oi||ai&&O));if(i.$$.dirty[1]&28|i.$$.dirty[3]&183500800)e:yn.set((ai||n||w||M||mi&&!Ue)&&!tn&&N==="video"&&!P);if(i.$$.dirty[0]&1073741826|i.$$.dirty[1]&12|i.$$.dirty[3]&131072|i.$$.dirty[4]&1)e:t(40,nn=X.features.thumbTimer&&ze&&N==="video"&&!o&&!P&&!ci&&(X.hideThumbTimerAfterTouch&&!I||!X.hideThumbTimerAfterTouch));if(i.$$.dirty[0]&64|i.$$.dirty[1]&4|i.$$.dirty[3]&1610612736)e:t(41,on=(Je&&b||!Je)&&v&&!P);if(i.$$.dirty[0]&2|i.$$.dirty[3]&419430400)e:!w&&ln&&!y&&xt(X.controls.hideTimeoutMobile),t(117,ln=w);if(i.$$.dirty[0]&1|i.$$.dirty[1]&3)e:t(42,rn=Ge&&g%180?c.height/c.width:1)},[Ge,X,ke,rt,we,De,Je,st,Se,se,We,me,Ie,Oe,ce,Qe,$e,pt,bt,ve,Ct,Rt,Et,oi,Nt,Kt,he,Ke,ht,Ui,o,c,g,P,N,M,Jt,Wt,mn,pn,nn,on,rn,l,a,h,A,x,Z,z,U,V,Q,Ce,Fe,Ze,et,xe,Bt,Xt,qt,Qi,fn,ui,Bi,yn,Di,cn,gi,Ni,fi,Ti,Pi,Ii,li,Ei,Yi,Ai,bi,Zi,Xi,Pt,qi,Ji,xi,ii,vi,yi,wi,ci,Ht,Mi,ri,si,di,wn,Ki,Wi,Cn,pi,ni,sn,Dn,Mn,Zt,Kn,ye,tt,Lt,St,ze,Ut,dt,mi,ai,Ue,tn,ln,n,k,w,y,v,b,I,O,re,ae,Y,ee,jn,Nn,Vn,hn,qn,an]}var Rf=class extends j{constructor(e){super(),G(this,e,E6,I6,K,{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},P6,[-1,-1,-1,-1,-1,-1])}},l_=Rf;function A6(i){Te(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 @@
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 R6(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 Op({props:r}),pe.push(()=>De(e,"videoContainer",o)),{c(){N(e.$$.fragment)},m(l,a){B(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],Be(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){D(e,l)}}}function B6(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 l_({props:r}),pe.push(()=>De(e,"videoContainer",o)),{c(){N(e.$$.fragment)},m(l,a){B(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],Be(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){D(e,l)}}}function D6(i){let e,t,n,o,r=[B6,R6],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=T("div"),n.c(),f(e,"class","root svelte-xfba9d")},m(s,u){S(s,e,u),l[t].m(e,null),o=!0},p(s,u){let c=t;t=a(s,u),t===c?l[t].p(s,u):(ue(),_(l[c],1,1,()=>{l[c]=null}),fe(),n=l[t],n?n.p(s,u):(n=l[t]=r[t](s),n.c()),d(n,1),n.m(e,null))},i(s){o||(d(n),o=!0)},o(s){_(n),o=!1},d(s){s&&C(e),l[t].d()}}}function N6(i,e,t){let n,{sources:o}=e,{store:r}=e,{microStoresRoot:l}=e,{videoConfig:a}=e,{uiConfig:s}=e,{title:u}=e,{thumbUrl:c}=e,{interactiveContainer:m}=e,{subtitles:h}=e,{live:w}=e,{preload:g}=e,{autoplay:k}=e,{volume:y=void 0}=e,{muted:I=void 0}=e,{fromTime:v}=e,{canRewindLive:b}=e,{showAds:E}=e,{adsSlotId:A=void 0}=e,{adsParams:L=void 0}=e,{adsPreviewParam:R=void 0}=e,{duration:le=void 0}=e,{logoClickable:ae}=e,{logoHidden:Y}=e,{isMobile:V}=e,{showNextPrevButtons:ee=!1}=e,{nextButtonActive:X=!1}=e,{prevButtonActive:se=!1}=e,{endScreenVideoTitle:F=void 0}=e,{endScreenVideoThumb:ne=void 0}=e,{isOneVideoPlaylist:P=!1}=e,{supportLink:U}=e,{shadowRootContainer:we=void 0}=e,{outerContainerRef:qe=void 0}=e,{fullScreenTarget:Ze=void 0}=e,{failoverHosts:Xe=void 0}=e,{showMiniTimer:He=!1}=e,{saveRate:ye}=e,{playNextVideo:J=$n.noop}=e,{playPrevVideo:ke=$n.noop}=e,{repeatPlaylist:it=$n.noop}=e,{seekToInteractive:Oe=$n.noop}=e,{toggleGraph:rt=$n.noop}=e,{playPrevChapter:Ce=$n.noop}=e,{volumeMultiplier:Je}=e,{subscribers:at,stores:Ge}=l;ac(s);let Ke=Zt(),$e=s.logoLink,de=r.ui.debugPanelVisible,Ne=r.ui.playerSize,Te=r.state.isLive$;z(i,Te,_e=>t(63,n=_e));let ze,K=null,ve=!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}),vc(r,Ge);let et=(_e=!1)=>{t(34,ve=!0),_e?r.actions.external.firstStart(E):r.actions.internal.firstStart(E)};function _t(_e){var _i;let We=o||_e;We&&r.initVideo({container:ze,sources:We,failoverHosts:Xe,subtitles:h,volumeMultiplier:Je});let xe=$n.safeStorage.get(Hl)==="true";de.set(xe),v>0&&r.actions.external.seekTime(v);let lt=V?Ke.volumeDefault:(_i=y!=null?y:dr())!=null?_i:Ke.volumeDefault,ht=I!=null?I:Rc();if(r.actions.external.setVolume(lt),r.actions.external.setMuted(ht),r.getAdmanWrapper().setInitialVolume(ht?0:lt),Ke.features.trafficSaving){let Nt=Dc();Nt&&r.actions.internal.setTrafficSavingEnabled(Nt)}if(Ke.features.saveRate&&ye){let Nt=Oc();Nt&&!n&&r.actions.internal.setPlaybackRate(Nt)}let Gt=Mc(r.videoId);Gt&&r.actions.internal.setQuality(Gt),r.ui.isAutoplay.set(k),k?et():g&&Ke.features.preload&&r.actions.internal.preload()}let vt=_e=>{if(window.ResizeObserver){let We,xe;K=new ResizeObserver((0,$n.throttleFn)(lt=>{let ht=lt[0];if(ht){if(ht.contentBoxSize){let Gt=Array.isArray(ht.contentBoxSize)?ht.contentBoxSize[0]:ht.contentBoxSize;We=Gt.inlineSize,xe=Gt.blockSize}else ht.contentRect&&(We=ht.contentRect.width,xe=ht.contentRect.height);Ne.set({width:We,height:xe})}},300)),K.observe(_e)}Ne.set({width:_e.clientWidth,height:_e.clientHeight})};Ot(()=>{vt(ze);let _e=at.map(xe=>xe.init({store:r,microStores:Ge,config:a}));if((w==null?void 0:w.status)==="upcoming"||(w==null?void 0:w.status)==="waiting"){r.actions.internal.setWaitingLive(!0);return}if(((w==null?void 0:w.status)==="finished"||(w==null?void 0:w.status)==="postlive")&&!Object.keys(o||[]).length){r.actions.internal.setWaitingRecord(!0);return}return _t(),()=>{K==null||K.disconnect(),_e.forEach(xe=>xe.unsubscribe()),r.destroy()}});function ce(){ve?r.actions.external.play():et(!0)}function bt(){r.actions.external.pause()}function Mt(_e){V||r.actions.external.setMuted(_e)}function St(_e){V||_e>=0&&_e<=1&&r.actions.external.setVolume(_e)}function je(_e){r.actions.internal.seekTime(_e,r_.SeekAction.UNKNOWN)}function jt(_e){r.actions.external.seekEpisodeStartTime(_e)}function Vt(){r.actions.external.returnFocusToEpisodes()}function Pt(_e){r.actions.external.setPlaybackRate(_e)}function oi(_e){r.actions.external.setAutoQualityLimits(_e)}function Bt(_e){ze=_e,t(33,ze)}function Dt(_e){ze=_e,t(33,ze)}return i.$$set=_e=>{"sources"in _e&&t(39,o=_e.sources),"store"in _e&&t(0,r=_e.store),"microStoresRoot"in _e&&t(40,l=_e.microStoresRoot),"videoConfig"in _e&&t(41,a=_e.videoConfig),"uiConfig"in _e&&t(42,s=_e.uiConfig),"title"in _e&&t(1,u=_e.title),"thumbUrl"in _e&&t(2,c=_e.thumbUrl),"interactiveContainer"in _e&&t(3,m=_e.interactiveContainer),"subtitles"in _e&&t(43,h=_e.subtitles),"live"in _e&&t(4,w=_e.live),"preload"in _e&&t(44,g=_e.preload),"autoplay"in _e&&t(5,k=_e.autoplay),"volume"in _e&&t(45,y=_e.volume),"muted"in _e&&t(46,I=_e.muted),"fromTime"in _e&&t(47,v=_e.fromTime),"canRewindLive"in _e&&t(6,b=_e.canRewindLive),"showAds"in _e&&t(7,E=_e.showAds),"adsSlotId"in _e&&t(8,A=_e.adsSlotId),"adsParams"in _e&&t(9,L=_e.adsParams),"adsPreviewParam"in _e&&t(10,R=_e.adsPreviewParam),"duration"in _e&&t(11,le=_e.duration),"logoClickable"in _e&&t(12,ae=_e.logoClickable),"logoHidden"in _e&&t(13,Y=_e.logoHidden),"isMobile"in _e&&t(14,V=_e.isMobile),"showNextPrevButtons"in _e&&t(15,ee=_e.showNextPrevButtons),"nextButtonActive"in _e&&t(16,X=_e.nextButtonActive),"prevButtonActive"in _e&&t(17,se=_e.prevButtonActive),"endScreenVideoTitle"in _e&&t(18,F=_e.endScreenVideoTitle),"endScreenVideoThumb"in _e&&t(19,ne=_e.endScreenVideoThumb),"isOneVideoPlaylist"in _e&&t(20,P=_e.isOneVideoPlaylist),"supportLink"in _e&&t(21,U=_e.supportLink),"shadowRootContainer"in _e&&t(22,we=_e.shadowRootContainer),"outerContainerRef"in _e&&t(23,qe=_e.outerContainerRef),"fullScreenTarget"in _e&&t(24,Ze=_e.fullScreenTarget),"failoverHosts"in _e&&t(48,Xe=_e.failoverHosts),"showMiniTimer"in _e&&t(25,He=_e.showMiniTimer),"saveRate"in _e&&t(49,ye=_e.saveRate),"playNextVideo"in _e&&t(26,J=_e.playNextVideo),"playPrevVideo"in _e&&t(27,ke=_e.playPrevVideo),"repeatPlaylist"in _e&&t(28,it=_e.repeatPlaylist),"seekToInteractive"in _e&&t(29,Oe=_e.seekToInteractive),"toggleGraph"in _e&&t(30,rt=_e.toggleGraph),"playPrevChapter"in _e&&t(31,Ce=_e.playPrevChapter),"volumeMultiplier"in _e&&t(50,Je=_e.volumeMultiplier)},i.$$.update=()=>{if(i.$$.dirty[0]&16385)e:r.ui.isMobile.set(V)},[r,u,c,m,w,k,b,E,A,L,R,le,ae,Y,V,ee,X,se,F,ne,P,U,we,qe,Ze,He,J,ke,it,Oe,rt,Ce,je,ze,ve,Ke,$e,Te,et,o,l,a,s,h,g,y,I,v,Xe,ye,Je,_t,ce,bt,Mt,St,jt,Vt,Pt,oi,Bt,Dt]}var Lf=class extends W{constructor(e){super(),Q(this,e,N6,D6,j,{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},L6,[-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]}},s_=Lf;function q6(i){let e,t,n,o=i[2].default,r=Ie(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=re(a,l[s]);return{c(){e=q("svg"),r&&r.c(),t=q("path"),f(t,"fill","currentColor"),f(t,"d","M38.245 6c3.566 0 4.859.371 6.162 1.069a7.27 7.27 0 0 1 3.025 3.024c.697 1.303 1.068 2.597 1.068 6.163v23.489c0 3.566-.371 4.859-1.069 6.162a7.27 7.27 0 0 1-3.024 3.025C43.104 49.629 41.811 50 38.245 50h-19.49c-3.565 0-4.859-.371-6.162-1.069a7.27 7.27 0 0 1-3.024-3.024C8.87 44.604 8.5 43.311 8.5 39.745v-23.49c0-3.565.371-4.859 1.069-6.162a7.27 7.27 0 0 1 3.024-3.024C13.896 6.37 15.19 6 18.756 6zm.314 3H18.756c-2.799 0-3.761.186-4.749.714a4.27 4.27 0 0 0-1.793 1.793c-.508.95-.7 1.876-.713 4.434L11.5 39.744c0 2.799.186 3.761.714 4.749a4.27 4.27 0 0 0 1.793 1.793c.988.528 1.95.714 4.749.714h19.489c2.798 0 3.76-.186 4.748-.714a4.27 4.27 0 0 0 1.793-1.793c.528-.988.714-1.95.714-4.748v-23.49c0-2.798-.186-3.76-.714-4.748a4.27 4.27 0 0 0-1.793-1.793c-.95-.508-1.876-.7-4.434-.713zM19.22 38c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134z"),be(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ae(r,o,s,s[1],n?Ee(o,s[1],u,null):Me(s[1]),null),be(e,a=Le(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 O6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Rf=class extends W{constructor(e){super(),Q(this,e,O6,q6,j,{})}},a_=Rf;function F6(i){let e,t;return e=new a_({props:{style:i[0]}}),{c(){N(e.$$.fragment)},m(n,o){B(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){D(e,n)}}}function H6(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 Bf=class extends W{constructor(e){super(),Q(this,e,H6,F6,j,{isWhite:1})}},u_=Bf;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 f_(i){let e,t;return{c(){e=T("div"),t=Ve(i[0]),f(e,"class","title svelte-1y9fytq")},m(n,o){S(n,e,o),p(e,t)},p(n,o){o&1&&Ye(t,n[0])},d(n){n&&C(e)}}}function c_(i){let e,t;return e=new u_({props:{isWhite:!!i[1]}}),{c(){N(e.$$.fragment)},m(n,o){B(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){D(e,n)}}}function U6(i){let e,t,n,o,r=i[0]&&f_(i),l=(!i[0]||!i[1])&&c_(i);return{c(){e=T("div"),r&&r.c(),t=O(),l&&l.c(),f(e,"class","playerStub svelte-1y9fytq"),f(e,"style",n=i[1]?`background-image: url('${i[1]}')`:"")},m(a,s){S(a,e,s),r&&r.m(e,null),p(e,t),l&&l.m(e,null),o=!0},p(a,[s]){a[0]?r?r.p(a,s):(r=f_(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=c_(a),l.c(),d(l,1),l.m(e,null)):l&&(ue(),_(l,1,1,()=>{l=null}),fe()),(!o||s&2&&n!==(n=a[1]?`background-image: url('${a[1]}')`:""))&&f(e,"style",n)},i(a){o||(d(l),o=!0)},o(a){_(l),o=!1},d(a){a&&C(e),r&&r.d(),l&&l.d()}}}function K6(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 Df=class extends W{constructor(e){super(),Q(this,e,K6,U6,j,{title:0,thumbUrl:1},z6)}},d_=Df;var Si=require("@vkontakte/videoplayer-shared"),BN=require("@vkontakte/videoplayer-core"),Rl=require("@vkontakte/videoplayer-statistics");var m_=require("@vkontakte/videoplayer-shared"),ks=class{constructor(){this.subscription=new m_.Subscription}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(o){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=tt(e.state.currentPlaybackRate$),o=tt(e.state.duration$);navigator.mediaSession.setPositionState({position:t,playbackRate:n,duration:o})}))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};var Ao=require("@vkontakte/videoplayer-shared");function j6(i){let e,t,n,o,r,l=i[2].default,a=Ie(l,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"56"},{fill:"none"},{"aria-label":"dummy-image"},{"data-testid":"pip-dummy-icon"},{role:"img"},i[0]],u={};for(let c=0;c<s.length;c+=1)u=re(u,s[c]);return{c(){e=q("svg"),a&&a.c(),t=q("g"),n=q("path"),o=q("path"),f(n,"d","m30.744 4 .744.005c2.981.046 4.526.385 6.127 1.24a8.77 8.77 0 0 1 3.475 3.347l.174.312.15.292c.772 1.553 1.066 3.18 1.085 6.251v9.045a1.5 1.5 0 0 1-3 .016l-.008-9.651c-.04-2.032-.228-3.12-.627-4.035l-.126-.27-.13-.252A5.77 5.77 0 0 0 36.2 7.891c-1.187-.635-2.339-.873-5.115-.89L22.255 7c-2.737 0-4.003.2-5.071.698l-.133.064-.251.13a5.77 5.77 0 0 0-2.409 2.408c-.635 1.187-.873 2.339-.89 5.114l-.001 20.83c0 2.738.2 4.004.698 5.072l.064.133.13.251a5.77 5.77 0 0 0 2.408 2.409c1.1.588 2.134.825 4.438.88l.323.006 3.695.005H26a1.5 1.5 0 0 1 0 3h-.756l-3.718-.005c-2.989-.047-4.526-.377-6.14-1.24a8.77 8.77 0 0 1-3.476-3.347l-.174-.312-.15-.292c-.731-1.472-1.036-3.016-1.08-5.803l-.006-.756v-20.49l.005-.743c.046-2.981.385-4.526 1.24-6.127a8.77 8.77 0 0 1 3.347-3.475l.312-.174.292-.15c1.472-.731 3.016-1.036 5.803-1.08L22.256 4z"),f(o,"d","M30.5 33.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C32.78 29 33.62 29 35.3 29h6.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311c.327.642.327 1.482.327 3.162v13.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C44.22 52 43.38 52 41.7 52h-6.4c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C30.5 49.72 30.5 48.88 30.5 47.2z"),f(t,"fill","#fff"),be(e,u)},m(c,m){S(c,e,m),a&&a.m(e,null),p(e,t),p(t,n),p(t,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Ae(a,l,c,c[1],r?Ee(l,c[1],m,null):Me(c[1]),null),be(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"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){_(a,c),r=!1},d(c){c&&C(e),a&&a.d(c)}}}function W6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=re(re({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Nf=class extends W{constructor(e){super(),Q(this,e,W6,j6,j,{})}},p_=Nf;function G6(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 Q6(i){let e,t,n,o,r,l,a;return n=new p_({}),{c(){e=T("div"),t=T("div"),N(n.$$.fragment),o=O(),r=T("span"),l=Ve(i[0]),f(t,"class","dummy-image svelte-1pbsod4"),H(t,"desktop",!i[1]),f(r,"class","title svelte-1pbsod4"),f(e,"class","player-pip-dummy svelte-1pbsod4"),H(e,"is-pip-api",i[2])},m(s,u){S(s,e,u),p(e,t),B(n,t,null),p(e,o),p(e,r),p(r,l),a=!0},p(s,[u]){(!a||u&2)&&H(t,"desktop",!s[1]),(!a||u&1)&&Ye(l,s[0])},i(s){a||(d(n.$$.fragment,s),a=!0)},o(s){_(n.$$.fragment,s),a=!1},d(s){s&&C(e),D(n)}}}function Y6(i,e,t){let n,o,r=st(),l=!!r.webApi.pictureInPictureApi,a=r.interfaceLanguage$;z(i,a,c=>t(5,n=c));let s=r.ui.isMobile;z(i,s,c=>t(1,o=c));let u;return i.$$.update=()=>{if(i.$$.dirty&32)e:t(0,u=n&&G("pip_dummy_title"))},[u,o,l,a,s,n]}var qf=class extends W{constructor(e){super(),Q(this,e,Y6,Q6,j,{},G6)}},__=qf;var Z6=460,X6=280,Zl=class{constructor(){this.info={isActive$:new Ao.ValueSubject(!1),type:1}}isSupported(){let e=(0,Ao.getCurrentBrowser)().browser===Ao.CurrentClientBrowser.Yandex,{isEmbed:t}=(0,Ao.detectEmbed)();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}request(){return ct(this,null,function*(){var r,l;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=yield documentPictureInPicture.requestWindow({width:Z6,height:X6,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let e=[...this.playerParentShadowRoot.styleSheets].map(a=>[...a.cssRules].map(s=>s.cssText).join(" ")).filter(Boolean).join(`
53
- `),t=document.createElement("style");t.textContent=e;let n=this.createStretchedContainer(),o=n.attachShadow({mode:"open"});o.append(t),o.append(this.playerDomElement),this.playerDummyElement=new __({target:this.playerParentShadowRoot,context:this.svelteContext}),(r=this.pipWindow)==null||r.document.body.append(n),this.info.isActive$.next(!0),(l=this.pipWindow)==null||l.addEventListener("unload",a=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(this.playerDummyElement.$destroy(),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1))})})}remove(){return ct(this,null,function*(){return new Promise(e=>{var t;(t=documentPictureInPicture.window)==null||t.close(),e()})})}dispose(){return ct(this,null,function*(){yield this.remove()})}createStretchedContainer(){let e=document.createElement("div");return e.style.width="100%",e.style.height="100%",e}};function h_(i){return i instanceof Zl}var Cs=class{static getLatestSupportedVersion(){let e=new Go,t=new Zl;if(t.isSupported())return t;if(e.isSupported())return e}};function Of(i,e){var o,r;let t=new Set([...Object.keys(i),...Object.keys(e)]),n={};for(let l of t)n[l]=(r=(o=e[l])!=null?o:i[l])!=null?r:void 0;return n}var g_="Inner error. Unexpectedly root annotation container null reference exception",b_="Annotation with such name already exists",v_="Annotation with such name does not exist";var Ml=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var Vl=require("@vkontakte/videoplayer-shared"),J6="1",x6=100,Ss=class{constructor(e){this.annotations=new Map;this.subscriptions=new Vl.Subscription;this.rootAnnotationsContainer=e;let t=(0,Vl.throttleFn)(()=>{for(let n of this.annotations.values())this.isElementExceedsBoundaries(n,this.playerSize.width,this.playerSize.height)?n.style.visibility="hidden":n.style.visibility="visible"},x6);this.subscriptions.add((0,Vl.observeElementSize)(this.rootAnnotationsContainer).subscribe(({width:n,height:o})=>{this.playerSize={width:n,height:o},t()})),this.mutationObserver=new MutationObserver(t),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,t){var n;if(!this.rootAnnotationsContainer)throw new Ml(g_);if(this.annotations.has(e))throw new Ml(b_);t.style.zIndex=(n=t.style.zIndex)!=null?n:J6,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(v_);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(){}};var Ll=require("@vkontakte/videoplayer-shared"),no=class{init({store:e,microStores:t,config:n}){return(0,Ll.assertNonNullable)(e),(0,Ll.assertNonNullable)(t),(0,Ll.assertNonNullable)(n),this.subscription=new Ll.Subscription,this.subscription}};var Xl=class extends no{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$=Rt(ut({},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(r=>{this.state$.set(r?!0:null)})),n}};var Jl=class extends no{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$=Rt(ut({},Re(null)),{toggle:()=>this.state$.update(t=>!t)})}init(t){let n=super.init(t),{microStores:o,store:r}=t,{fakeIsPlaying$:l}=o,{isInteractiveExpectation$:a,isPlaying$:s}=r.state,{controlsVisible:u,isMobile:c}=r.ui,m=tt(c),h=()=>m&&tt(u);return n.add(u.subscribe(w=>{if(!m)return;let g=tt(l);tt(s)?this.state$.set(w):g!==null&&this.state$.set(!g||w)})),n.add(s.subscribe(w=>{this.state$.set(!w||h())})),n.add(l.subscribe(w=>{if(w===null)return;let g=tt(a);if(h()){this.state$.set(!0);return}g&&this.state$.set(!w)})),n}};var xl=class extends no{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(r=>{r.length&&(r.every(l=>l.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),n}};var y_=require("@vkontakte/videoplayer-shared");var Ff=Re(!1),Ts=null,$l=class extends no{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$=Rt(ut({},Ff),{set:(t,n=!1)=>{t!==tt(Ff)&&(this.clearTimeout(),Ff.set(t),!t&&Ts&&(Ts=!1),t&&n&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()})}init(t){let n=super.init(t),{store:o,config:r}=t,{isInteractiveTime$:l,isPlaying$:a}=o.state,s=o.ui.controlsVisible,{interactiveTimeIndicator:u}=o.ui.controls;n.add(s.subscribe(m=>{tt(l)&&m&&this.state$.set(!1)}));let c=(r==null?void 0:r.interactiveData)||{tooltipHelpHintActive:!1};return n.add((0,y_.combine)({isPlaying$:a,isInteractiveTime$:l,interactiveTimeIndicator:u}).subscribe(({isPlaying$:m,isInteractiveTime$:h,interactiveTimeIndicator:w})=>{var g,k;if(!(!m||!(w!=null&&w.isDisplayed))){if(!h)return this.state$.set(!1);c.tooltipHelpHintActive&&Ts===null&&(Ts=!0,c.tooltipHelpHintActive=!1,this.state$.set(!0),(k=(g=o.callbacks)==null?void 0:g.onInteractiveTimeIndicatorHintDeactivated)==null||k.call(g))}})),n}clearTimeout(){window.clearTimeout(this.timeout)}};var w_=()=>[Xl,Jl,xl,$l].reduce(({subscribers:i,stores:e},t)=>{let n=new t;return{subscribers:[...i,n],stores:Rt(ut({},e),{[n.stateName]:n.state$})}},{subscribers:[],stores:{}});var $6={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:Si.InterfaceLanguage.RU,logoClickable:!1,logoHidden:!1,isMobile:(0,Si.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1},Ps=class extends HTMLElement{constructor(){var t;super();this.currentPlayingVideoIndex=0;this.needToRepeatPlaylist=!1;this.videoConfig=void 0;this.pictureInPictureApi=void 0;this.mediaSessionApi=void 0;this.unsubscribePlayerPhaseSubscription=void 0;this.annotationsApi=void 0;this.prevIsid=void 0;this.isInited=!1;this.logger=new Si.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new Si.Subscription,this.graphMadePause=!1,(t=window==null?void 0:window.videoPlayerConfig)!=null&&t.debugLogs&&this.subscription.add(this.logger.log$.subscribe(n=>{console.log("%c player web component ","background:#77dd77;",`${n.component}`,n.message)}))}connectedCallback(){var o,r;if(this.isInited)return;this.initPlayerRootContainers();let t=(o=this.getAttribute("stub-title"))!=null?o:void 0,n=(r=this.getAttribute("stub-thumb-url"))!=null?r:void 0;this.svelteStubComponent=new d_({target:this.playerContainer,props:{title:t,thumbUrl:n}})}disconnectedCallback(){var t,n,o,r,l,a;(t=this.annotationsApi)==null||t.destroy(),(n=this.mediaSessionApi)==null||n.destroy(),(o=this.svelteRootComponent)==null||o.$destroy(),(r=this.svelteStubComponent)==null||r.$destroy(),this.subscription.unsubscribe(),(l=this.unsubscribePlayerPhaseSubscription)==null||l.call(this),(a=this.interactiveController)==null||a.destroy()}initPlayerRootContainers(){this.rootContainer=document.createElement("div"),this.rootContainer.style.position="relative",this.rootContainer.className="root-container",this.rootContainer.style.width="100%",this.rootContainer.style.height="100%",this.shadowRootContainer=document.createElement("div"),this.shadowRootContainer.style.position="absolute",this.shadowRootContainer.className="shadow-root-container",this.shadowRootContainer.style.width="100%",this.shadowRootContainer.style.height="100%",this._shadowRoot=this.shadowRootContainer.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(this.shadowRootContainer),this.append(this.rootContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(t){var o;let n=(o=this.store)==null?void 0:o.ui.controls.disabledControls$;return(n==null?void 0:n.includes(t))||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let t=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:t.title,nextVideoThumb:t.thumbUrl}}createPlayer(t,n={},o){var ce,bt,Mt,St,je,jt,Vt,Pt,oi,Bt,Dt,_e,We;if(!this.videoConfig)return;let{albumId:r,statPlace:l,statUserSalt:a,statAuthToken:s,statTrackCode:u,refreshStatAuthToken:c,preload:m,autoplay:h,volume:w,muted:g,fromTime:k,canRewindLive:y,supportLink:I,showAds:v,adsSlotId:b,adsParams:E={},adsPreviewParam:A,interfaceLanguage:L,logoClickable:R,logoHidden:le,isMobile:ae,isAudioDisabled:Y,isLiveCatchUpMode:V,fullScreenTarget:ee,failoverHosts:X,canDownload:se,callbacks:F,interactiveData:ne,showThumbTimer:P,additionalButtons:U=[],repeat:we,saveRate:qe,volumeMultiplier:Ze}=Of(this.videoConfig,n),{sources:Xe,title:He,thumbUrl:ye,unitedVideoId:J,isClip:ke=!1,duration:it,adsParams:Oe={},videoEpisodes:rt,previewThumbsData:Ce,subtitles:Je,live:at}=t,Ge=ut(ut({},E),Oe),Ke=this.getNextVideoInfo(),$e={sources:Xe,title:He,thumbUrl:ye,subtitles:Je,unitedVideoId:J,isClip:ke,live:at,albumId:r,statPlace:l,autoplay:h,muted:g,volume:w,fromTime:k,canRewindLive:y,showAds:v,adsSlotId:b,adsParams:Ge,adsPreviewParam:A,duration:it,logoClickable:R,logoHidden:le,isMobile:ae,repeat:we,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Ke.nextVideoTitle,endScreenVideoThumb:Ke.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},de={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify($e)}`});let Ne=this.uiConfig.features.statistics&&!!J,{pid:Te}=((bt=(ce=this.videoConfig)==null?void 0:ce.interactiveData)==null?void 0:bt.projectInfo)||{};Ne&&(this.statistics=new ss(ut({movieId:J,albumId:r,place:l,trackCode:u,autoplay:(Mt=h&&!this.interactiveController)!=null?Mt:!1,mobile:ae,clip:ke,refDomain:this.videoConfig.refDomain},Te&&!this.isInited&&{projectId:Number(Te)}),ut({refreshAuthToken:c,userSalt:a,config:this.statisticsConfig},this.interactiveController&&{useIsid:!0,isid:this.prevIsid}))),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Wo(this.uiConfig.sentry,{version:Ko,env:fr},{movieId:J,albumId:r,place:l,autoplay:(St=h&&!this.interactiveController)!=null?St:!1,mobile:ae,clip:ke}),this.interactiveController&&((jt=this.prevIsid)!=null||(this.prevIsid=(je=this.statistics)==null?void 0:je.oneStat.isid$.getValue())),this.sentry=ut(ut({},this.sentry),Wo.getInstance());let K=!!ne,ve=[],et="tooltip_interactive_go_back_disabled_first";if(K&&this.interactiveController){let xe=this.interactiveController.state.isInitialChapter$.getValue(),lt=this.interactiveController.getHistoryState();xe&&ve.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||ve.push("SEEK_TO_INTERACTIVE_BUTTON"),lt.hasPrevChapter$.getValue()||(ve.push("PLAY_PREV_CHAPTER_BUTTON"),xe||(lt.isGoBackLimited$.getValue()?et="tooltip_interactive_go_back_disabled_limit":et="tooltip_interactive_go_back_disabled"))}let _t=()=>{var lt;this.isInited=!1,this.prevIsid=void 0;let xe=(o==null?void 0:o.info.isEnded$.getValue())&&((lt=this.interactiveController)==null?void 0:lt.state.isEndChapter$.getValue());F.onReplayInteractiveVideo&&!xe?F.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=Hm({player:o,interfaceLanguage:L,videoId:J,isClip:ke,isLiveCatchUpMode:V,isAudioDisabled:Y,statAuthToken:s,callbacks:F,webApi:de,videoEpisodes:rt,previewThumbsData:Ce,canDownload:se,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:ve,isInteractive:K,saveRate:qe,interactiveRanges$:(Vt=this.interactiveController)==null?void 0:Vt.state.interactiveRanges$,isInteractiveTime$:(Pt=this.interactiveController)==null?void 0:Pt.state.isInteractiveTime$,replayInteractive:_t,playPrevChapterDisabledTooltip:et,hasInteractiveBranches:!!((Bt=(oi=this.interactiveController)==null?void 0:oi.getChapterBranches())!=null&&Bt.length),additionalButtons:this.uiConfig.features.additionalButtons?U:[],looped:we&&this.videoConfig.videos.length===1,statistics:this.statistics});let{stores:vt}=this.microStoresRoot=w_();this.subscription.add(this.store.state.currentFormat$.subscribe(xe=>{var lt;return(lt=F==null?void 0:F.onCurrentFormatChanged)==null?void 0:lt.call(F,xe)})),this.subscription.add(vt.interactiveControlsOpacity$.subscribe(xe=>{var lt;xe!==null&&((lt=this==null?void 0:this.interactiveController)==null||lt.setDisabledControls(xe))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(xe=>{var lt;return(lt=F==null?void 0:F.onThroughputEstimationChanged)==null?void 0:lt.call(F,xe)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(xe=>{var lt;return(lt=F==null?void 0:F.onTrafficSavingEnabledChanged)==null?void 0:lt.call(F,xe)})),this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(xe=>{var lt;return(lt=F==null?void 0:F.onCurrentPlaybackRateChanged)==null?void 0:lt.call(F,xe)})),this.subscription.add(this.store.state.volume$.subscribe(xe=>{var lt;return(lt=F==null?void 0:F.onVolumeChange)==null?void 0:lt.call(F,xe)})),this.subscription.add(this.store.state.muted$.subscribe(xe=>{var lt,ht;return xe?(lt=F==null?void 0:F.onMute)==null?void 0:lt.call(F):(ht=F==null?void 0:F.onUnmute)==null?void 0:ht.call(F)})),this.subscription.add(this.store.state.videoBitrate$.subscribe(xe=>{var lt;return(lt=F==null?void 0:F.onVideoBitrateChanged)==null?void 0:lt.call(F,xe)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(xe=>{var ht;let lt=(ht=this.store)==null?void 0:ht.ui.controls.disabledControls$;lt&&(xe&&!lt.includes(zl)&&lt.add(zl),xe||lt.remove(zl))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(xe=>ct(this,null,function*(){var Gt;if(!((0,Si.getCurrentBrowser)().browser===Si.CurrentClientBrowser.SamsungBrowser)||!xe||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&(yield this.replayInteractiveChapter((Gt=this.videoConfig)==null?void 0:Gt.callbacks.onExternalFullscreenExit))}))),this.initMediaSession(),this.interactiveController&&Ne&&this.initInteractivesStatistics(),this.svelteRootComponent=new s_({target:this.playerContainer,props:{interactiveContainer:this.interactiveContainer,sources:Xe,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:He,thumbUrl:ye,subtitles:Je,live:at,preload:m,autoplay:h,muted:g,volume:w,fromTime:k,canRewindLive:y,supportLink:I,showAds:v,adsSlotId:b,adsParams:Ge,adsPreviewParam:A,duration:it,logoClickable:R,logoHidden:le,isMobile:ae,failoverHosts:X,fullScreenTarget:ee,saveRate:qe,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:Ze}}),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(We=(_e=(Dt=this.videoConfig)==null?void 0:Dt.callbacks)==null?void 0:_e.onInited)==null||We.call(_e))}addPlayerInfoSubscriptions(){var r;let t=this.store;if(!t)return;let n=(r=this.videoConfig)==null?void 0:r.callbacks;n&&this.subscription.add(t.playerPhase.subscribe(l=>{var a;return(a=n.onPlayerPhaseChanged)==null?void 0:a.call(n,l)})).add(t.state.playbackState$.subscribe(l=>{var a;return(a=n.onPlaybackStateChanged)==null?void 0:a.call(n,l)})).add(t.state.isLive$.subscribe(l=>{var a;return(a=n.onIsLiveChanged)==null?void 0:a.call(n,l)})).add(t.state.isActiveLive$.subscribe(l=>{var a;return(a=n.onIsActiveLiveChanged)==null?void 0:a.call(n,l)})).add(t.state.isAudioAvailable$.subscribe(l=>{var a;return(a=n.onIsAudioAvailableChanged)==null?void 0:a.call(n,l)})).add(t.state.currentQuality$.subscribe(l=>{var a;return(a=n.onCurrentQualityChanged)==null?void 0:a.call(n,l)})).add(t.state.availableQualities$.subscribe(l=>{var a;return(a=n.onAvailableQualitiesChanged)==null?void 0:a.call(n,l.map(({value:s})=>s).filter(s=>s!=="auto"))})).add(t.state.availableAudioStreams$.subscribe(l=>{l.length>1&&n.onAudioLanguagesAvailable&&n.onAudioLanguagesAvailable()})).add(t.ui.isPictureInPictureActive$.subscribe(l=>{var a,s;return l?(a=n.onPiPEnter)==null?void 0:a.call(n):(s=n.onPiPExit)==null?void 0:s.call(n)}));let o=n==null?void 0:n.uiInfo;o&&this.subscription.add(t.ui.controlsVisible.subscribe(l=>{var a;return(a=o.onControlsVisibleChanged)==null?void 0:a.call(o,l)})).add(t.ui.isMobile.subscribe(l=>{var a;return(a=o.onIsMobileChanged)==null?void 0:a.call(o,l)})).add(t.ui.playerSize.subscribe(l=>{var a;return(a=o.onPlayerSizeChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.prevButton.subscribe(l=>{var a;return(a=o.onPrevButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.playButton.subscribe(l=>{var a;return(a=o.onPlayButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.replayButton.subscribe(l=>{var a;return(a=o.onReplayButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.nextButton.subscribe(l=>{var a;return(a=o.onNextButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.playPrevChapterButton.subscribe(l=>{var a;return(a=o.onPlayPrevChapterChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.seekToInteractiveButton.subscribe(l=>{var a;return(a=o.onSeekToInteractiveButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.interactiveGraphButton.subscribe(l=>{var a;return(a=o.onGraphButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.liveButton.subscribe(l=>{var a;return(a=o.onLiveButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.time.subscribe(l=>{var a;return(a=o.onTimeUpdateChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.episodes.subscribe(l=>{var a;return(a=o.onEpisodesChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.subtitles.subscribe(l=>{var a;return(a=o.onSubtitlesChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.settings.subscribe(l=>{var a;return(a=o.onSettingsChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.fullscreen.subscribe(l=>{var a;return(a=o.onFullscreenChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.chromecast.subscribe(l=>{var a;return(a=o.onChromecastChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.pip.subscribe(l=>{var a;return(a=o.onPipChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.vkLogo.subscribe(l=>{var a;return(a=o.onVkLogoChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.interactiveTimeIndicator.subscribe(l=>{var a;return(a=o.onInteractiveTimeIndicatorChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.timeline.subscribe(l=>{var a;return(a=o.onTimelineChanged)==null?void 0:a.call(o,l)}))}playNextVideo(){var n;if(!this.videoConfig)return;let t=!0;if((n=this.videoConfig.callbacks)!=null&&n.onNextVideoClick)try{t=this.videoConfig.callbacks.onNextVideoClick()}catch(o){this.log({message:"onNextVideoClick callback failed to execute"})}t&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){var n;if(!this.videoConfig)return;let t=!0;if((n=this.videoConfig.callbacks)!=null&&n.onPrevVideoClick)try{t=this.videoConfig.callbacks.onPrevVideoClick()}catch(o){this.log({message:"onPrevVideoClick callback failed to execute"})}t&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}repeatPlaylist(){this.currentPlayingVideoIndex=0,this.log({message:"repeat playlist"}),this.createPlayerWithCurrentVideo()}createPlayerWithCurrentVideo(t,n=!0){var r;if(!this.videoConfig)return;let o=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!o){this.log({message:"no next video"});return}this.isInited&&(0,Si.isNonNullable)(o.unitedVideoId)&&this.store.actions.internal.nextMovie(o.unitedVideoId),(r=this.svelteRootComponent)==null||r.$destroy(),this.createPlayer(o,{autoplay:n,fromTime:0},t)}playPrevChapter(){var t;(t=this.interactiveController)==null||t.playPrevChapter()}seekToInteractive(){var n;let t=(n=this.interactiveController)==null?void 0:n.getNextInteractiveStartTime();typeof t=="number"&&this.seekTime(t/1e3)}toggleGraph(){var c,m;if(!this.isInited)return;let t=this.store,{isEnded$:n,playbackState$:o,graphIsOpened$:r}=t.state,{disabledControls$:l}=t.ui.controls,a=tt(n),s=tt(o);tt(r)?(r.set(!1),(c=this.interactiveController)==null||c.toggleGraphView(!1),l.remove(qs),!a&&this.graphMadePause&&this.play()):(this.graphMadePause=s==="playing",r.set(!0),(m=this.interactiveController)==null||m.toggleGraphView(!0),l.add(qs),!a&&this.graphMadePause&&this.pause())}initInteractives(){return ct(this,null,function*(){var t,n,o,r;if((t=this.videoConfig)!=null&&t.interactiveData)try{let{Interactives:l,EVENT_NAMES:a,CustomError:s}=yield import("@vkontakte/videoplayer-interactive");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactiveContainer");let u=(n=this.store)==null?void 0:n.interfaceLanguage$,c=u?tt(u):this.videoConfig.interfaceLanguage,{projectInfo:m,initChapterId:h,historyApi:w,videoLoader:g}=this.videoConfig.interactiveData;this.interactiveController=new l({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:c,graph:this.uiConfig.features.interactiveGraph,projectInfo:m,initChapterId:h,historyApi:w,vkVideoLoader:g,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig});let{isInteractiveExpectation$:k}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(this.interactiveController.getIsSeekable().subscribe(I=>{if(!this.isInited)return;let v=this.store;I?v.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):v.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(k.subscribe(I=>{this.store&&this.store.state.isInteractiveExpectation$.set(I)}));let y=!0;if(this.interactiveController.on(a.playerChanged,I=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]=Rt(ut({},I.config),{title:(m==null?void 0:m.title)||I.config.title});let v=y?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(I.player,v),y&&(y=!1)}),this.interactiveController.on(a.interactives,({type:I,actionType:v})=>{var E,A,L,R;if(!this.store)return;let b=k.getValue();if(I==="action-choice"&&v==="setRandomBranch"&&(this.store.state.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(ur)),I==="action-choice-canceled"){let le=tt(this.store.state.isPlaying$)||b;if((E=this.videoConfig)!=null&&E.isMobile&&le){this.store.ui.interactiveHideMobileControls.set(!0);return}(R=(A=this.videoConfig)==null?void 0:(L=A.callbacks).onDisabledInteractiveClick)==null||R.call(L)}}),yield this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(r=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&r.onInteractiveHistoryChanged){let I=this.interactiveController.getHistoryState();this.subscription.add(I.history$.subscribe(v=>{var b,E,A;v.length&&((A=(E=(b=this.videoConfig)==null?void 0:b.callbacks)==null?void 0:E.onInteractiveHistoryChanged)==null||A.call(E,v))}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var I,v,b,E;(I=this.microStoresRoot)==null||I.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(E=(v=this.videoConfig)==null?void 0:(b=v.callbacks).onInteractiveTimeIndicatorClick)==null||E.call(b)})),this.interactiveController.on(a.errors,I=>{this.log({message:I.toString()})})}catch(l){this.log({message:l.message})}})}initInteractivesStatistics(){return ct(this,null,function*(){var o,r;let{statSubscription:t,oneStat:n}=this.statistics;if(!(!t||!n||!this.interactiveController))try{let{INTERACTIVE_CLICK_ACTIONS:l}=yield import("@vkontakte/videoplayer-interactive"),a={[l.GO_NEXT_BUTTON]:Rl.InteractiveInterfaceClick.NEXT_BUTTON,[l.GO_NEXT_AREA]:Rl.InteractiveInterfaceClick.NEXT_AREA,[l.WATCH_AGAIN]:Rl.InteractiveInterfaceClick.WATCH_AGAIN,[l.OPEN_GRAPH]:Rl.InteractiveInterfaceClick.GRAPH_SHOW,[l.CLOSE_GRAPH]:Rl.InteractiveInterfaceClick.GRAPH_HIDE},{click$:s,nextMovie$:u}=this.interactiveController.getStatEvents(),c=new Si.Subject;s.subscribe(m=>{var h,w;m in a?c.next(a[m]):(n==null||n.logError({errorType:"InteractiveVideosAction",fatal:!1}),(w=(h=this.sentry).report)==null||w.call(h,new Error("InteractiveVideosAction"),{errorType:"InteractiveVideosAction",fatal:!1}))}),t.add(n.attachToInteractive({click$:c,nextMovie$:u}))}catch(l){n==null||n.logError({errorType:"InteractiveVideos",fatal:!1}),(r=(o=this.sentry).report)==null||r.call(o,l,{errorType:"InteractiveVideosAction",fatal:!1})}})}initPlayer(t,n={}){var o,r,l,a,s,u,c,m,h,w,g,k,y,I,v,b,E,A,L;if(!Array.isArray(t.videos)||t.videos.length===0&&!t.interactiveData)throw new Error("empty videos");this.videoConfig=Of($6,(0,Si.cloneDeepWith)(t,R=>R instanceof HTMLElement?R:void 0)),this.uiConfig=sc((o=n.ui)!=null?o:{}),this.coreConfig=(r=n.core)!=null?r:{configName:[]},this.statisticsConfig=(l=n.statistics)!=null?l:{},this.sentry={config:(a=this.uiConfig.sentry)!=null?a:{}},(0,Si.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(s=this.videoConfig.isMediaSessionEnabled)!=null?s:!0),(0,Si.isNonNullable)(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(c=(u=this.uiConfig.features.pip)!=null?u:this.videoConfig.isPictureInPictureEnabled)!=null?c:!0,this.uiConfig.features.dpip=(h=(m=this.uiConfig.features.dpip)!=null?m:this.videoConfig.isPictureInPictureEnabled)!=null?h:!0),this.videoConfig.isMobile=(w=this.uiConfig.isMobile)!=null?w:this.videoConfig.isMobile,(g=this.videoConfig).autoplay&&(g.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(k=this.uiConfig.ads.enable)!=null?k:this.videoConfig.showAds,this.videoConfig.adsSlotId=(y=this.uiConfig.ads.slot)!=null?y:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(I=this.uiConfig.ads.preview)!=null?I:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((v=this.uiConfig.showLogo)!=null?v:!this.videoConfig.logoHidden),(b=this.videoConfig).canRewindLive&&(b.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(E=this.videoConfig.supportLink)!=null?E:this.uiConfig.supportLink,this.currentPlayingVideoIndex=0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip&&(this.uiConfig.features.dpip?this.pictureInPictureApi=Cs.getLatestSupportedVersion():this.pictureInPictureApi=new Go),this.mediaSessionApi=this.uiConfig.features.mediaSession?new ks:void 0,this.annotationsApi=this.uiConfig.features.annotations?new Ss(this.rootContainer):void 0,(A=this.svelteStubComponent)==null||A.$destroy(),(L=this.svelteRootComponent)==null||L.$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]),h_(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateNextVideos(t){var o;if(!this.videoConfig)return;this.log({message:`update next videos, videos: ${JSON.stringify(t)}`}),this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...t);let n=this.getNextVideoInfo();(o=this.svelteRootComponent)==null||o.$set({showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:n.nextVideoTitle,endScreenVideoThumb:n.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()})}initMediaSession(){var t,n;this.mediaSessionApi&&((t=this.unsubscribePlayerPhaseSubscription)==null||t.call(this),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=(n=this.store)==null?void 0:n.playerPhase.subscribe(o=>{o==="video"?this.setupMediaSessionForVideo():o==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:t,thumbUrl:n}=ut({},this.videoConfig.videos[this.currentPlayingVideoIndex]),o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",r=>this.seekTime(r.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>this.playNextVideo()]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>this.playPrevVideo()])),this.mediaSessionApi.setMetaData({title:t,thumbUrl:n}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(t){this.log({message:t.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let t="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",n=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:t}),this.mediaSessionApi.updateActionHandlers(n),this.mediaSessionApi.attachToStore(this.store)}catch(t){this.log({message:t.message})}}play(){var t,n;this.isControlDisabled("PLAY_BUTTON")||(t=this.store)!=null&&t.playerPhase.is("waitingLive")||(this.log({message:"play"}),(n=this.svelteRootComponent)==null||n.play())}pause(){var t;this.log({message:"pause"}),(t=this.svelteRootComponent)==null||t.pause()}stop(){var n,o,r;if(!this.videoConfig)return;this.log({message:"stop"}),(n=this.svelteStubComponent)==null||n.$destroy(),(o=this.mediaSessionApi)==null||o.destroy();let t=this.videoConfig.videos[0];t&&((r=this.svelteRootComponent)==null||r.$destroy(),this.createPlayer(t))}setMuted(t){var n;this.log({message:`set muted, muted: ${t}`}),(n=this.svelteRootComponent)==null||n.setMuted(t)}setVolume(t){var n;this.log({message:`set volume, volume: ${t}`}),(n=this.svelteRootComponent)==null||n.setVolume(t)}setRepeat(t){var n;this.log({message:`set repeat, repeat: ${t}`}),this.needToRepeatPlaylist=t,(n=this.svelteRootComponent)==null||n.$set({needToRepeatPlaylist:this.needToRepeatPlaylist,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive()})}seekTime(t){var n;this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${t}`}),(n=this.svelteRootComponent)==null||n.seekTime(t))}seekEpisodeStartTime(t){var n;this.log({message:`seek episode start time, time: ${t}`}),(n=this.svelteRootComponent)==null||n.seekEpisodeStartTime(t)}returnFocusToEpisodes(){var t;this.log({message:"return focus to episodes button"}),(t=this.svelteRootComponent)==null||t.returnFocusToEpisodes()}setPlaybackRate(t){var n;this.log({message:`set playback rate to: ${t}`}),(n=this.svelteRootComponent)==null||n.setPlaybackRate(t)}setAutoQualityLimits(t){var n,o,r;this.log({message:`set auto quality limitation. Max: ${(n=t.max)!=null?n:"none"}. Min: ${(o=t.min)!=null?o:"none"}`}),(r=this.svelteRootComponent)==null||r.setAutoQualityLimits(t)}addLanguage(t){var n;(n=this.store)==null||n.actions.internal.addLanguage(t)}setLanguage(t){return ct(this,null,function*(){var n;yield(n=this.store)==null?void 0:n.actions.internal.setLanguage(t)})}setLiveStart(t){var n,o;this.log({message:"live started"}),(n=this.store)==null||n.actions.internal.setWaitingLive(!1),(o=this.svelteRootComponent)==null||o.initVideo(t),this.play()}setWaitRecord(){var t,n;this.log({message:"post live"}),(t=this.store)==null||t.actions.internal.setWaitingRecord(!0),(n=this.store)==null||n.destroy()}setLiveEnd(t){var n,o;this.log({message:"live ended"}),(n=this.store)==null||n.actions.internal.setWaitingRecord(!1),(o=this.svelteRootComponent)==null||o.$destroy(),this.createPlayer(t,{autoplay:!1})}getDeviceId(){var t,n;return(n=(t=this.statistics)==null?void 0:t.oneStat.getDeviceId())!=null?n:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}replayInteractiveChapter(t){return ct(this,null,function*(){var n;if(this.interactiveController&&((n=this.store)!=null&&n.state.positionExact$)){let{EVENT_NAMES:o}=yield import("@vkontakte/videoplayer-interactive"),r=tt(this.store.state.positionExact$),a=tt(this.store.state.interactiveEpisodes$).find(u=>!u.completed);this.interactiveController.once(o.playerChanged,()=>{a&&r>=a.time?this.seekTime(a.time):this.seekTime(r),t==null||t()});let s=this.interactiveController.getCurrentChapter();yield this.interactiveController.setChapter({chapterId:s.chapter.id,pushToHistory:!1})}})}showInteractiveIndicatorTooltip(t,n=!1){var o;(o=this.microStoresRoot)==null||o.stores.showInteractiveTimeIndicatorTooltip$.set(t,n)}switchToActiveLive(){var t;(t=this.store)==null||t.actions.internal.switchToActiveLive()}};var Bl=require("@vkontakte/videoplayer-shared"),Is=require("@vkontakte/videoplayer-core"),e8=()=>{window.customElements.define("vk-video-player",Ps)};
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 M6(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 Op({props:r}),pe.push(()=>qe(e,"videoContainer",o)),{c(){B(e.$$.fragment)},m(l,a){L(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){R(e,l)}}}function V6(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 l_({props:r}),pe.push(()=>qe(e,"videoContainer",o)),{c(){B(e.$$.fragment)},m(l,a){L(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){R(e,l)}}}function L6(i){let e,t,n,o,r=[V6,M6],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=T("div"),n.c(),f(e,"class","root svelte-xfba9d")},m(s,u){S(s,e,u),l[t].m(e,null),o=!0},p(s,u){let c=t;t=a(s,u),t===c?l[t].p(s,u):(ue(),_(l[c],1,1,()=>{l[c]=null}),fe(),n=l[t],n?n.p(s,u):(n=l[t]=r[t](s),n.c()),d(n,1),n.m(e,null))},i(s){o||(d(n),o=!0)},o(s){_(n),o=!1},d(s){s&&C(e),l[t].d()}}}function R6(i,e,t){let n,{sources:o}=e,{store:r}=e,{microStoresRoot:l}=e,{videoConfig:a}=e,{uiConfig:s}=e,{title:u}=e,{thumbUrl:c}=e,{interactiveContainer:m}=e,{subtitles:h}=e,{live:k}=e,{preload:g}=e,{autoplay:w}=e,{volume:y=void 0}=e,{muted:P=void 0}=e,{fromTime:v}=e,{canRewindLive:b}=e,{showAds:I}=e,{adsSlotId:N=void 0}=e,{adsParams:M=void 0}=e,{adsPreviewParam:O=void 0}=e,{duration:re=void 0}=e,{logoClickable:ae}=e,{logoHidden:Y}=e,{isMobile:ee}=e,{showNextPrevButtons:A=!1}=e,{nextButtonActive:x=!1}=e,{prevButtonActive:Z=!1}=e,{endScreenVideoTitle:z=void 0}=e,{endScreenVideoThumb:U=void 0}=e,{isOneVideoPlaylist:V=!1}=e,{supportLink:Q}=e,{shadowRootContainer:Ce=void 0}=e,{outerContainerRef:Fe=void 0}=e,{fullScreenTarget:Ze=void 0}=e,{failoverHosts:et=void 0}=e,{showMiniTimer:xe=!1}=e,{saveRate:ye}=e,{playNextVideo:X=$n.noop}=e,{playPrevVideo:ke=$n.noop}=e,{repeatPlaylist:Ge=$n.noop}=e,{seekToInteractive:tt=$n.noop}=e,{toggleGraph:rt=$n.noop}=e,{playPrevChapter:we=$n.noop}=e,{volumeMultiplier:De}=e,{subscribers:Je,stores:st}=l;uc(s);let Se=Qt(),se=s.logoLink,We=r.ui.debugPanelVisible,me=r.ui.playerSize,Ie=r.state.isLive$;H(i,Ie,he=>t(63,n=he));let Oe,ce=null,Qe=!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}),yc(r,st);let $e=(he=!1)=>{t(34,Qe=!0),he?r.actions.external.firstStart(I):r.actions.internal.firstStart(I)};function pt(he){var Xt;let Ke=o||he;Ke&&r.initVideo({container:Oe,sources:Ke,failoverHosts:et,subtitles:h,volumeMultiplier:De});let ht=$n.safeStorage.get(Hl)==="true";We.set(ht),v>0&&r.actions.external.seekTime(v);let dt=ee?Se.volumeDefault:(Xt=y!=null?y:pr())!=null?Xt:Se.volumeDefault,Xe=P!=null?P:Bc();if(r.actions.external.setVolume(dt),r.actions.external.setMuted(Xe),r.getAdmanWrapper().setInitialVolume(Xe?0:dt),Se.features.trafficSaving){let qt=Nc();qt&&r.actions.internal.setTrafficSavingEnabled(qt)}if(Se.features.saveRate&&ye){let qt=Fc();qt&&!n&&r.actions.internal.setPlaybackRate(qt)}let Bt=Vc(r.videoId);Bt&&r.actions.internal.setQuality(Bt),r.ui.isAutoplay.set(w),w?$e():g&&Se.features.preload&&r.actions.internal.preload()}let bt=he=>{if(window.ResizeObserver){let Ke,ht;ce=new ResizeObserver((0,$n.throttleFn)(dt=>{let Xe=dt[0];if(Xe){if(Xe.contentBoxSize){let Bt=Array.isArray(Xe.contentBoxSize)?Xe.contentBoxSize[0]:Xe.contentBoxSize;Ke=Bt.inlineSize,ht=Bt.blockSize}else Xe.contentRect&&(Ke=Xe.contentRect.width,ht=Xe.contentRect.height);me.set({width:Ke,height:ht})}},300)),ce.observe(he)}me.set({width:he.clientWidth,height:he.clientHeight})};Ft(()=>{bt(Oe);let he=Je.map(ht=>ht.init({store:r,microStores:st,config:a}));if((k==null?void 0:k.status)==="upcoming"||(k==null?void 0:k.status)==="waiting"){r.actions.internal.setWaitingLive(!0);return}if(((k==null?void 0:k.status)==="finished"||(k==null?void 0:k.status)==="postlive")&&!Object.keys(o||[]).length){r.actions.internal.setWaitingRecord(!0);return}return pt(),()=>{ce==null||ce.disconnect(),he.forEach(ht=>ht.unsubscribe()),r.destroy()}});function ve(){Qe?r.actions.external.play():$e(!0)}function Ct(){r.actions.external.pause()}function Lt(he){ee||r.actions.external.setMuted(he)}function St(he){ee||he>=0&&he<=1&&r.actions.external.setVolume(he)}function ze(he){r.actions.internal.seekTime(he,r_.SeekAction.UNKNOWN)}function Ut(he){r.actions.external.seekEpisodeStartTime(he)}function Rt(){r.actions.external.returnFocusToEpisodes()}function Et(he){r.actions.external.setPlaybackRate(he)}function oi(he){r.actions.external.setAutoQualityLimits(he)}function Nt(he){Oe=he,t(33,Oe)}function Kt(he){Oe=he,t(33,Oe)}return i.$$set=he=>{"sources"in he&&t(39,o=he.sources),"store"in he&&t(0,r=he.store),"microStoresRoot"in he&&t(40,l=he.microStoresRoot),"videoConfig"in he&&t(41,a=he.videoConfig),"uiConfig"in he&&t(42,s=he.uiConfig),"title"in he&&t(1,u=he.title),"thumbUrl"in he&&t(2,c=he.thumbUrl),"interactiveContainer"in he&&t(3,m=he.interactiveContainer),"subtitles"in he&&t(43,h=he.subtitles),"live"in he&&t(4,k=he.live),"preload"in he&&t(44,g=he.preload),"autoplay"in he&&t(5,w=he.autoplay),"volume"in he&&t(45,y=he.volume),"muted"in he&&t(46,P=he.muted),"fromTime"in he&&t(47,v=he.fromTime),"canRewindLive"in he&&t(6,b=he.canRewindLive),"showAds"in he&&t(7,I=he.showAds),"adsSlotId"in he&&t(8,N=he.adsSlotId),"adsParams"in he&&t(9,M=he.adsParams),"adsPreviewParam"in he&&t(10,O=he.adsPreviewParam),"duration"in he&&t(11,re=he.duration),"logoClickable"in he&&t(12,ae=he.logoClickable),"logoHidden"in he&&t(13,Y=he.logoHidden),"isMobile"in he&&t(14,ee=he.isMobile),"showNextPrevButtons"in he&&t(15,A=he.showNextPrevButtons),"nextButtonActive"in he&&t(16,x=he.nextButtonActive),"prevButtonActive"in he&&t(17,Z=he.prevButtonActive),"endScreenVideoTitle"in he&&t(18,z=he.endScreenVideoTitle),"endScreenVideoThumb"in he&&t(19,U=he.endScreenVideoThumb),"isOneVideoPlaylist"in he&&t(20,V=he.isOneVideoPlaylist),"supportLink"in he&&t(21,Q=he.supportLink),"shadowRootContainer"in he&&t(22,Ce=he.shadowRootContainer),"outerContainerRef"in he&&t(23,Fe=he.outerContainerRef),"fullScreenTarget"in he&&t(24,Ze=he.fullScreenTarget),"failoverHosts"in he&&t(48,et=he.failoverHosts),"showMiniTimer"in he&&t(25,xe=he.showMiniTimer),"saveRate"in he&&t(49,ye=he.saveRate),"playNextVideo"in he&&t(26,X=he.playNextVideo),"playPrevVideo"in he&&t(27,ke=he.playPrevVideo),"repeatPlaylist"in he&&t(28,Ge=he.repeatPlaylist),"seekToInteractive"in he&&t(29,tt=he.seekToInteractive),"toggleGraph"in he&&t(30,rt=he.toggleGraph),"playPrevChapter"in he&&t(31,we=he.playPrevChapter),"volumeMultiplier"in he&&t(50,De=he.volumeMultiplier)},i.$$.update=()=>{if(i.$$.dirty[0]&16385)e:r.ui.isMobile.set(ee)},[r,u,c,m,k,w,b,I,N,M,O,re,ae,Y,ee,A,x,Z,z,U,V,Q,Ce,Fe,Ze,xe,X,ke,Ge,tt,rt,we,ze,Oe,Qe,Se,se,Ie,$e,o,l,a,s,h,g,y,P,v,et,ye,De,pt,ve,Ct,Lt,St,Ut,Rt,Et,oi,Nt,Kt]}var Bf=class extends j{constructor(e){super(),G(this,e,R6,L6,K,{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},A6,[-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]}},s_=Bf;function B6(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"60"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"stub-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=le(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","currentColor"),f(t,"d","M38.245 6c3.566 0 4.859.371 6.162 1.069a7.27 7.27 0 0 1 3.025 3.024c.697 1.303 1.068 2.597 1.068 6.163v23.489c0 3.566-.371 4.859-1.069 6.162a7.27 7.27 0 0 1-3.024 3.025C43.104 49.629 41.811 50 38.245 50h-19.49c-3.565 0-4.859-.371-6.162-1.069a7.27 7.27 0 0 1-3.024-3.024C8.87 44.604 8.5 43.311 8.5 39.745v-23.49c0-3.565.371-4.859 1.069-6.162a7.27 7.27 0 0 1 3.024-3.024C13.896 6.37 15.19 6 18.756 6zm.314 3H18.756c-2.799 0-3.761.186-4.749.714a4.27 4.27 0 0 0-1.793 1.793c-.508.95-.7 1.876-.713 4.434L11.5 39.744c0 2.799.186 3.761.714 4.749a4.27 4.27 0 0 0 1.793 1.793c.988.528 1.95.714 4.749.714h19.489c2.798 0 3.76-.186 4.748-.714a4.27 4.27 0 0 0 1.793-1.793c.528-.988.714-1.95.714-4.748v-23.49c0-2.798-.186-3.76-.714-4.748a4.27 4.27 0 0 0-1.793-1.793c-.95-.508-1.876-.7-4.434-.713zM19.22 38c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134z"),be(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Me(r,o,s,s[1],n?Ae(o,s[1],u,null):Ve(s[1]),null),be(e,a=Re(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 D6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Df=class extends j{constructor(e){super(),G(this,e,D6,B6,K,{})}},a_=Df;function N6(i){let e,t;return e=new a_({props:{style:i[0]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.style=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function q6(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 Nf=class extends j{constructor(e){super(),G(this,e,q6,N6,K,{isWhite:1})}},u_=Nf;function O6(i){Te(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 f_(i){let e,t;return{c(){e=T("div"),t=Le(i[0]),f(e,"class","title svelte-1y9fytq")},m(n,o){S(n,e,o),p(e,t)},p(n,o){o&1&&Ye(t,n[0])},d(n){n&&C(e)}}}function c_(i){let e,t;return e=new u_({props:{isWhite:!!i[1]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isWhite=!!n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function F6(i){let e,t,n,o,r=i[0]&&f_(i),l=(!i[0]||!i[1])&&c_(i);return{c(){e=T("div"),r&&r.c(),t=q(),l&&l.c(),f(e,"class","playerStub svelte-1y9fytq"),f(e,"style",n=i[1]?`background-image: url('${i[1]}')`:"")},m(a,s){S(a,e,s),r&&r.m(e,null),p(e,t),l&&l.m(e,null),o=!0},p(a,[s]){a[0]?r?r.p(a,s):(r=f_(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=c_(a),l.c(),d(l,1),l.m(e,null)):l&&(ue(),_(l,1,1,()=>{l=null}),fe()),(!o||s&2&&n!==(n=a[1]?`background-image: url('${a[1]}')`:""))&&f(e,"style",n)},i(a){o||(d(l),o=!0)},o(a){_(l),o=!1},d(a){a&&C(e),r&&r.d(),l&&l.d()}}}function H6(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 qf=class extends j{constructor(e){super(),G(this,e,H6,F6,K,{title:0,thumbUrl:1},O6)}},d_=qf;var Si=require("@vkontakte/videoplayer-shared"),MN=require("@vkontakte/videoplayer-core"),Vl=require("@vkontakte/videoplayer-statistics");var Ss=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(o){throw new Error(`The media session action "${t}" is not supported yet.`)}}};var Po=require("@vkontakte/videoplayer-shared");function z6(i){let e,t,n,o,r,l=i[2].default,a=Ee(l,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"56"},{fill:"none"},{"aria-label":"dummy-image"},{"data-testid":"pip-dummy-icon"},{role:"img"},i[0]],u={};for(let c=0;c<s.length;c+=1)u=le(u,s[c]);return{c(){e=D("svg"),a&&a.c(),t=D("g"),n=D("path"),o=D("path"),f(n,"d","m30.744 4 .744.005c2.981.046 4.526.385 6.127 1.24a8.77 8.77 0 0 1 3.475 3.347l.174.312.15.292c.772 1.553 1.066 3.18 1.085 6.251v9.045a1.5 1.5 0 0 1-3 .016l-.008-9.651c-.04-2.032-.228-3.12-.627-4.035l-.126-.27-.13-.252A5.77 5.77 0 0 0 36.2 7.891c-1.187-.635-2.339-.873-5.115-.89L22.255 7c-2.737 0-4.003.2-5.071.698l-.133.064-.251.13a5.77 5.77 0 0 0-2.409 2.408c-.635 1.187-.873 2.339-.89 5.114l-.001 20.83c0 2.738.2 4.004.698 5.072l.064.133.13.251a5.77 5.77 0 0 0 2.408 2.409c1.1.588 2.134.825 4.438.88l.323.006 3.695.005H26a1.5 1.5 0 0 1 0 3h-.756l-3.718-.005c-2.989-.047-4.526-.377-6.14-1.24a8.77 8.77 0 0 1-3.476-3.347l-.174-.312-.15-.292c-.731-1.472-1.036-3.016-1.08-5.803l-.006-.756v-20.49l.005-.743c.046-2.981.385-4.526 1.24-6.127a8.77 8.77 0 0 1 3.347-3.475l.312-.174.292-.15c1.472-.731 3.016-1.036 5.803-1.08L22.256 4z"),f(o,"d","M30.5 33.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C32.78 29 33.62 29 35.3 29h6.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311c.327.642.327 1.482.327 3.162v13.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C44.22 52 43.38 52 41.7 52h-6.4c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C30.5 49.72 30.5 48.88 30.5 47.2z"),f(t,"fill","#fff"),be(e,u)},m(c,m){S(c,e,m),a&&a.m(e,null),p(e,t),p(t,n),p(t,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Me(a,l,c,c[1],r?Ae(l,c[1],m,null):Ve(c[1]),null),be(e,u=Re(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"56"},{fill:"none"},{"aria-label":"dummy-image"},{"data-testid":"pip-dummy-icon"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){_(a,c),r=!1},d(c){c&&C(e),a&&a.d(c)}}}function U6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=le(le({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Of=class extends j{constructor(e){super(),G(this,e,U6,z6,K,{})}},m_=Of;function K6(i){Te(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 j6(i){let e,t,n,o,r,l,a;return n=new m_({}),{c(){e=T("div"),t=T("div"),B(n.$$.fragment),o=q(),r=T("span"),l=Le(i[0]),f(t,"class","dummy-image svelte-1pbsod4"),F(t,"desktop",!i[1]),f(r,"class","title svelte-1pbsod4"),f(e,"class","player-pip-dummy svelte-1pbsod4"),F(e,"is-pip-api",i[2])},m(s,u){S(s,e,u),p(e,t),L(n,t,null),p(e,o),p(e,r),p(r,l),a=!0},p(s,[u]){(!a||u&2)&&F(t,"desktop",!s[1]),(!a||u&1)&&Ye(l,s[0])},i(s){a||(d(n.$$.fragment,s),a=!0)},o(s){_(n.$$.fragment,s),a=!1},d(s){s&&C(e),R(n)}}}function W6(i,e,t){let n,o,r=lt(),l=!!r.webApi.pictureInPictureApi,a=r.interfaceLanguage$;H(i,a,c=>t(5,n=c));let s=r.ui.isMobile;H(i,s,c=>t(1,o=c));let u;return i.$$.update=()=>{if(i.$$.dirty&32)e:t(0,u=n&&W("pip_dummy_title"))},[u,o,l,a,s,n]}var Ff=class extends j{constructor(e){super(),G(this,e,W6,j6,K,{},K6)}},p_=Ff;var G6=460,Q6=280,Zl=class{constructor(){this.info={isActive$:new Po.ValueSubject(!1),type:1}}isSupported(){let e=(0,Po.getCurrentBrowser)().browser===Po.CurrentClientBrowser.Yandex,{isEmbed:t}=(0,Po.detectEmbed)();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}request(){return ft(this,null,function*(){var r,l;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=yield documentPictureInPicture.requestWindow({width:G6,height:Q6,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let e=[...this.playerParentShadowRoot.styleSheets].map(a=>[...a.cssRules].map(s=>s.cssText).join(" ")).filter(Boolean).join(`
53
+ `),t=document.createElement("style");t.textContent=e;let n=this.createStretchedContainer(),o=n.attachShadow({mode:"open"});o.append(t),o.append(this.playerDomElement),this.playerDummyElement=new p_({target:this.playerParentShadowRoot,context:this.svelteContext}),(r=this.pipWindow)==null||r.document.body.append(n),this.info.isActive$.next(!0),(l=this.pipWindow)==null||l.addEventListener("unload",a=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(this.playerDummyElement.$destroy(),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1))})})}remove(){return ft(this,null,function*(){return new Promise(e=>{var t;(t=documentPictureInPicture.window)==null||t.close(),e()})})}dispose(){return ft(this,null,function*(){yield this.remove()})}createStretchedContainer(){let e=document.createElement("div");return e.style.width="100%",e.style.height="100%",e}};function __(i){return i instanceof Zl}var Ts=class{static getLatestSupportedVersion(){let e=new Ko,t=new Zl;if(t.isSupported())return t;if(e.isSupported())return e}};function Hf(i,e){var o,r;let t=new Set([...Object.keys(i),...Object.keys(e)]),n={};for(let l of t)n[l]=(r=(o=e[l])!=null?o:i[l])!=null?r:void 0;return n}var h_="Inner error. Unexpectedly root annotation container null reference exception",g_="Annotation with such name already exists",b_="Annotation with such name does not exist";var El=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var Al=require("@vkontakte/videoplayer-shared"),Y6="1",Z6=100,Ps=class{constructor(e){this.annotations=new Map;this.subscriptions=new Al.Subscription;this.rootAnnotationsContainer=e;let t=(0,Al.throttleFn)(()=>{for(let n of this.annotations.values())this.isElementExceedsBoundaries(n,this.playerSize.width,this.playerSize.height)?n.style.visibility="hidden":n.style.visibility="visible"},Z6);this.subscriptions.add((0,Al.observeElementSize)(this.rootAnnotationsContainer).subscribe(({width:n,height:o})=>{this.playerSize={width:n,height:o},t()})),this.mutationObserver=new MutationObserver(t),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,t){var n;if(!this.rootAnnotationsContainer)throw new El(h_);if(this.annotations.has(e))throw new El(g_);t.style.zIndex=(n=t.style.zIndex)!=null?n:Y6,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 El(b_);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(){}};var Ml=require("@vkontakte/videoplayer-shared"),oo=class{init({store:e,microStores:t,config:n}){return(0,Ml.assertNonNullable)(e),(0,Ml.assertNonNullable)(t),(0,Ml.assertNonNullable)(n),this.subscription=new Ml.Subscription,this.subscription}};var Xl=class extends oo{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$=Dt(at({},Be(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 Jl=class extends oo{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$=Dt(at({},Be(null)),{toggle:()=>this.state$.update(t=>!t)})}init(t){let n=super.init(t),{microStores:o,store:r}=t,{fakeIsPlaying$:l}=o,{isInteractiveExpectation$:a,isPlaying$:s}=r.state,{controlsVisible:u,isMobile:c}=r.ui,m=it(c),h=()=>m&&it(u);return n.add(u.subscribe(k=>{if(!m)return;let g=it(l);it(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=it(a);if(h()){this.state$.set(!0);return}g&&this.state$.set(!k)})),n}};var xl=class extends oo{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=Be("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}};var v_=require("@vkontakte/videoplayer-shared");var zf=Be(!1),Is=null,$l=class extends oo{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$=Dt(at({},zf),{set:(t,n=!1)=>{t!==it(zf)&&(this.clearTimeout(),zf.set(t),!t&&Is&&(Is=!1),t&&n&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()})}init(t){let n=super.init(t),{store:o,config:r}=t,{isInteractiveTime$:l,isPlaying$:a}=o.state,s=o.ui.controlsVisible,{interactiveTimeIndicator:u}=o.ui.controls;n.add(s.subscribe(m=>{it(l)&&m&&this.state$.set(!1)}));let c=(r==null?void 0:r.interactiveData)||{tooltipHelpHintActive:!1};return n.add((0,v_.combine)({isPlaying$:a,isInteractiveTime$:l,interactiveTimeIndicator:u}).subscribe(({isPlaying$:m,isInteractiveTime$:h,interactiveTimeIndicator:k})=>{var g,w;if(!(!m||!(k!=null&&k.isDisplayed))){if(!h)return this.state$.set(!1);c.tooltipHelpHintActive&&Is===null&&(Is=!0,c.tooltipHelpHintActive=!1,this.state$.set(!0),(w=(g=o.callbacks)==null?void 0:g.onInteractiveTimeIndicatorHintDeactivated)==null||w.call(g))}})),n}clearTimeout(){window.clearTimeout(this.timeout)}};var y_=()=>[Xl,Jl,xl,$l].reduce(({subscribers:i,stores:e},t)=>{let n=new t;return{subscribers:[...i,n],stores:Dt(at({},e),{[n.stateName]:n.state$})}},{subscribers:[],stores:{}});var X6={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:Si.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isMobile:(0,Si.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1},Es=class extends HTMLElement{constructor(){var t;super();this.currentPlayingVideoIndex=0;this.needToRepeatPlaylist=!1;this.videoConfig=void 0;this.pictureInPictureApi=void 0;this.mediaSessionApi=void 0;this.unsubscribePlayerPhaseSubscription=void 0;this.annotationsApi=void 0;this.prevIsid=void 0;this.isInited=!1;this.logger=new Si.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new Si.Subscription,this.graphMadePause=!1,(t=window==null?void 0:window.videoPlayerConfig)!=null&&t.debugLogs&&this.subscription.add(this.logger.log$.subscribe(n=>{console.log("%c player web component ","background:#77dd77;",`${n.component}`,n.message)}))}connectedCallback(){var o,r;if(this.isInited)return;this.initPlayerRootContainers();let t=(o=this.getAttribute("stub-title"))!=null?o:void 0,n=(r=this.getAttribute("stub-thumb-url"))!=null?r:void 0;this.svelteStubComponent=new d_({target:this.playerContainer,props:{title:t,thumbUrl:n}})}disconnectedCallback(){var t,n,o,r,l;(t=this.annotationsApi)==null||t.destroy(),(n=this.svelteRootComponent)==null||n.$destroy(),(o=this.svelteStubComponent)==null||o.$destroy(),this.subscription.unsubscribe(),(r=this.unsubscribePlayerPhaseSubscription)==null||r.call(this),(l=this.interactiveController)==null||l.destroy()}initPlayerRootContainers(){this.rootContainer=document.createElement("div"),this.rootContainer.style.position="relative",this.rootContainer.className="root-container",this.rootContainer.style.width="100%",this.rootContainer.style.height="100%",this.shadowRootContainer=document.createElement("div"),this.shadowRootContainer.style.position="absolute",this.shadowRootContainer.className="shadow-root-container",this.shadowRootContainer.style.width="100%",this.shadowRootContainer.style.height="100%",this._shadowRoot=this.shadowRootContainer.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(this.shadowRootContainer),this.append(this.rootContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(t){var o;let n=(o=this.store)==null?void 0:o.ui.controls.disabledControls$;return(n==null?void 0:n.includes(t))||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let t=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:t.title,nextVideoThumb:t.thumbUrl}}createPlayer(t,n={},o){var Ct,Lt,St,ze,Ut,Rt,Et,oi,Nt,Kt,he,Ke,ht;if(!this.videoConfig)return;let{albumId:r,statPlace:l,statUserSalt:a,statAuthToken:s,statTrackCode:u,refreshStatAuthToken:c,preload:m,autoplay:h,volume:k,muted:g,fromTime:w,canRewindLive:y,supportLink:P,showAds:v,adsSlotId:b,adsParams:I={},adsPreviewParam:N,interfaceLanguage:M,isCyrillicRelatedInterface:O,logoClickable:re,logoHidden:ae,isMobile:Y,isAudioDisabled:ee,isLiveCatchUpMode:A,fullScreenTarget:x,failoverHosts:Z,canDownload:z,callbacks:U,interactiveData:V,showThumbTimer:Q,additionalButtons:Ce=[],repeat:Fe,saveRate:Ze,volumeMultiplier:et}=Hf(this.videoConfig,n),{sources:xe,title:ye,thumbUrl:X,unitedVideoId:ke,isClip:Ge=!1,duration:tt,adsParams:rt={},videoEpisodes:we,previewThumbsData:De,subtitles:Je,live:st}=t,Se=at(at({},I),rt),se=this.getNextVideoInfo(),We={sources:xe,title:ye,thumbUrl:X,subtitles:Je,unitedVideoId:ke,isClip:Ge,live:st,albumId:r,statPlace:l,autoplay:h,muted:g,volume:k,fromTime:w,canRewindLive:y,showAds:v,adsSlotId:b,adsParams:Se,adsPreviewParam:N,duration:tt,logoClickable:re,logoHidden:ae,isMobile:Y,repeat:Fe,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:se.nextVideoTitle,endScreenVideoThumb:se.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},me={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(We)}`});let Ie=this.uiConfig.features.statistics&&!!ke,{pid:Oe}=((Lt=(Ct=this.videoConfig)==null?void 0:Ct.interactiveData)==null?void 0:Lt.projectInfo)||{};Ie&&(this.statistics=new us(at({movieId:ke,albumId:r,place:l,trackCode:u,autoplay:(St=h&&!this.interactiveController)!=null?St:!1,mobile:Y,clip:Ge,refDomain:this.videoConfig.refDomain},Oe&&!this.isInited&&{projectId:Number(Oe)}),at({refreshAuthToken:c,userSalt:a,config:this.statisticsConfig},this.interactiveController&&{useIsid:!0,isid:this.prevIsid}))),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Uo(this.uiConfig.sentry,{version:Ho,env:dr},{movieId:ke,albumId:r,place:l,autoplay:(ze=h&&!this.interactiveController)!=null?ze:!1,mobile:Y,clip:Ge}),this.interactiveController&&((Rt=this.prevIsid)!=null||(this.prevIsid=(Ut=this.statistics)==null?void 0:Ut.oneStat.isid$.getValue())),this.sentry=at(at({},this.sentry),Uo.getInstance());let Qe=!!V,$e=[],pt="tooltip_interactive_go_back_disabled_first";if(Qe&&this.interactiveController){let dt=this.interactiveController.state.isInitialChapter$.getValue(),Xe=this.interactiveController.getHistoryState();dt&&$e.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||$e.push("SEEK_TO_INTERACTIVE_BUTTON"),Xe.hasPrevChapter$.getValue()||($e.push("PLAY_PREV_CHAPTER_BUTTON"),dt||(Xe.isGoBackLimited$.getValue()?pt="tooltip_interactive_go_back_disabled_limit":pt="tooltip_interactive_go_back_disabled"))}let bt=()=>{var Xe;this.isInited=!1,this.prevIsid=void 0;let dt=(o==null?void 0:o.info.isEnded$.getValue())&&((Xe=this.interactiveController)==null?void 0:Xe.state.isEndChapter$.getValue());U.onReplayInteractiveVideo&&!dt?U.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=Hm({player:o,interfaceLanguage:M,isCyrillicRelatedInterface:O,videoId:ke,isClip:Ge,isLiveCatchUpMode:A,isAudioDisabled:ee,statAuthToken:s,callbacks:U,webApi:me,videoEpisodes:we,previewThumbsData:De,canDownload:z,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:$e,isInteractive:Qe,saveRate:Ze,interactiveRanges$:(Et=this.interactiveController)==null?void 0:Et.state.interactiveRanges$,isInteractiveTime$:(oi=this.interactiveController)==null?void 0:oi.state.isInteractiveTime$,replayInteractive:bt,playPrevChapterDisabledTooltip:pt,hasInteractiveBranches:!!((Kt=(Nt=this.interactiveController)==null?void 0:Nt.getChapterBranches())!=null&&Kt.length),additionalButtons:this.uiConfig.features.additionalButtons?Ce:[],looped:Fe&&this.videoConfig.videos.length===1,statistics:this.statistics});let{stores:ve}=this.microStoresRoot=y_();this.subscription.add(this.store.state.currentFormat$.subscribe(dt=>{var Xe;return(Xe=U==null?void 0:U.onCurrentFormatChanged)==null?void 0:Xe.call(U,dt)})),this.subscription.add(ve.interactiveControlsOpacity$.subscribe(dt=>{var Xe;dt!==null&&((Xe=this==null?void 0:this.interactiveController)==null||Xe.setDisabledControls(dt))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(dt=>{var Xe;return(Xe=U==null?void 0:U.onThroughputEstimationChanged)==null?void 0:Xe.call(U,dt)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(dt=>{var Xe;return(Xe=U==null?void 0:U.onTrafficSavingEnabledChanged)==null?void 0:Xe.call(U,dt)})),this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(dt=>{var Xe;return(Xe=U==null?void 0:U.onCurrentPlaybackRateChanged)==null?void 0:Xe.call(U,dt)})),this.subscription.add(this.store.state.volume$.subscribe(dt=>{var Xe;return(Xe=U==null?void 0:U.onVolumeChange)==null?void 0:Xe.call(U,dt)})),this.subscription.add(this.store.state.muted$.subscribe(dt=>{var Xe,Bt;return dt?(Xe=U==null?void 0:U.onMute)==null?void 0:Xe.call(U):(Bt=U==null?void 0:U.onUnmute)==null?void 0:Bt.call(U)})),this.subscription.add(this.store.state.videoBitrate$.subscribe(dt=>{var Xe;return(Xe=U==null?void 0:U.onVideoBitrateChanged)==null?void 0:Xe.call(U,dt)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(dt=>{var Bt;let Xe=(Bt=this.store)==null?void 0:Bt.ui.controls.disabledControls$;Xe&&(dt&&!Xe.includes(zl)&&Xe.add(zl),dt||Xe.remove(zl))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(dt=>ft(this,null,function*(){var Xt;if(!((0,Si.getCurrentBrowser)().browser===Si.CurrentClientBrowser.SamsungBrowser)||!dt||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&(yield this.replayInteractiveChapter((Xt=this.videoConfig)==null?void 0:Xt.callbacks.onExternalFullscreenExit))}))),this.initMediaSession(),this.interactiveController&&Ie&&this.initInteractivesStatistics(),this.svelteRootComponent=new s_({target:this.playerContainer,props:{interactiveContainer:this.interactiveContainer,sources:xe,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:ye,thumbUrl:X,subtitles:Je,live:st,preload:m,autoplay:h,muted:g,volume:k,fromTime:w,canRewindLive:y,supportLink:P,showAds:v,adsSlotId:b,adsParams:Se,adsPreviewParam:N,duration:tt,logoClickable:re,logoHidden:ae,isMobile:Y,failoverHosts:Z,fullScreenTarget:x,saveRate:Ze,shadowRootContainer:this.shadowRootContainer,showMiniTimer:Q,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:se.nextVideoTitle,endScreenVideoThumb:se.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playNextVideo:()=>this.playNextVideo(),playPrevVideo:()=>this.playPrevVideo(),repeatPlaylist:()=>this.repeatPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),toggleGraph:()=>this.toggleGraph(),volumeMultiplier:et}}),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(ht=(Ke=(he=this.videoConfig)==null?void 0:he.callbacks)==null?void 0:Ke.onInited)==null||ht.call(Ke))}addPlayerInfoSubscriptions(){var r;let t=this.store;if(!t)return;let n=(r=this.videoConfig)==null?void 0:r.callbacks;n&&this.subscription.add(t.playerPhase.subscribe(l=>{var a;return(a=n.onPlayerPhaseChanged)==null?void 0:a.call(n,l)})).add(t.state.playbackState$.subscribe(l=>{var a;return(a=n.onPlaybackStateChanged)==null?void 0:a.call(n,l)})).add(t.state.isLive$.subscribe(l=>{var a;return(a=n.onIsLiveChanged)==null?void 0:a.call(n,l)})).add(t.state.isActiveLive$.subscribe(l=>{var a;return(a=n.onIsActiveLiveChanged)==null?void 0:a.call(n,l)})).add(t.state.isAudioAvailable$.subscribe(l=>{var a;return(a=n.onIsAudioAvailableChanged)==null?void 0:a.call(n,l)})).add(t.state.currentQuality$.subscribe(l=>{var a;return(a=n.onCurrentQualityChanged)==null?void 0:a.call(n,l)})).add(t.state.availableQualities$.subscribe(l=>{var a;return(a=n.onAvailableQualitiesChanged)==null?void 0:a.call(n,l.map(({value:s})=>s).filter(s=>s!=="auto"))})).add(t.state.availableAudioStreams$.subscribe(l=>{l.length>1&&n.onAudioLanguagesAvailable&&n.onAudioLanguagesAvailable()})).add(t.ui.isPictureInPictureActive$.subscribe(l=>{var a,s;return l?(a=n.onPiPEnter)==null?void 0:a.call(n):(s=n.onPiPExit)==null?void 0:s.call(n)}));let o=n==null?void 0:n.uiInfo;o&&this.subscription.add(t.ui.controlsVisible.subscribe(l=>{var a;return(a=o.onControlsVisibleChanged)==null?void 0:a.call(o,l)})).add(t.ui.isMobile.subscribe(l=>{var a;return(a=o.onIsMobileChanged)==null?void 0:a.call(o,l)})).add(t.ui.playerSize.subscribe(l=>{var a;return(a=o.onPlayerSizeChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.prevButton.subscribe(l=>{var a;return(a=o.onPrevButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.playButton.subscribe(l=>{var a;return(a=o.onPlayButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.replayButton.subscribe(l=>{var a;return(a=o.onReplayButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.nextButton.subscribe(l=>{var a;return(a=o.onNextButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.playPrevChapterButton.subscribe(l=>{var a;return(a=o.onPlayPrevChapterChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.seekToInteractiveButton.subscribe(l=>{var a;return(a=o.onSeekToInteractiveButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.interactiveGraphButton.subscribe(l=>{var a;return(a=o.onGraphButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.liveButton.subscribe(l=>{var a;return(a=o.onLiveButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.time.subscribe(l=>{var a;return(a=o.onTimeUpdateChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.episodes.subscribe(l=>{var a;return(a=o.onEpisodesChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.subtitles.subscribe(l=>{var a;return(a=o.onSubtitlesChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.settings.subscribe(l=>{var a;return(a=o.onSettingsChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.fullscreen.subscribe(l=>{var a;return(a=o.onFullscreenChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.chromecast.subscribe(l=>{var a;return(a=o.onChromecastChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.pip.subscribe(l=>{var a;return(a=o.onPipChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.vkLogo.subscribe(l=>{var a;return(a=o.onVkLogoChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.interactiveTimeIndicator.subscribe(l=>{var a;return(a=o.onInteractiveTimeIndicatorChanged)==null?void 0:a.call(o,l)}))}playNextVideo(){var n;if(!this.videoConfig)return;let t=!0;if((n=this.videoConfig.callbacks)!=null&&n.onNextVideoClick)try{t=this.videoConfig.callbacks.onNextVideoClick()}catch(o){this.log({message:"onNextVideoClick callback failed to execute"})}t&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){var n;if(!this.videoConfig)return;let t=!0;if((n=this.videoConfig.callbacks)!=null&&n.onPrevVideoClick)try{t=this.videoConfig.callbacks.onPrevVideoClick()}catch(o){this.log({message:"onPrevVideoClick callback failed to execute"})}t&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}repeatPlaylist(){this.currentPlayingVideoIndex=0,this.log({message:"repeat playlist"}),this.createPlayerWithCurrentVideo()}createPlayerWithCurrentVideo(t,n=!0){var r;if(!this.videoConfig)return;let o=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!o){this.log({message:"no next video"});return}this.isInited&&(0,Si.isNonNullable)(o.unitedVideoId)&&this.store.actions.internal.nextMovie(o.unitedVideoId),(r=this.svelteRootComponent)==null||r.$destroy(),this.createPlayer(o,{autoplay:n,fromTime:0},t)}playPrevChapter(){var t;(t=this.interactiveController)==null||t.playPrevChapter()}seekToInteractive(){var n;let t=(n=this.interactiveController)==null?void 0:n.getNextInteractiveStartTime();typeof t=="number"&&this.seekTime(t/1e3)}toggleGraph(){var c,m;if(!this.isInited)return;let t=this.store,{isEnded$:n,playbackState$:o,graphIsOpened$:r}=t.state,{disabledControls$:l}=t.ui.controls,a=it(n),s=it(o);it(r)?(r.set(!1),(c=this.interactiveController)==null||c.toggleGraphView(!1),l.remove(Fs),!a&&this.graphMadePause&&this.play()):(this.graphMadePause=s==="playing",r.set(!0),(m=this.interactiveController)==null||m.toggleGraphView(!0),l.add(Fs),!a&&this.graphMadePause&&this.pause())}initInteractives(){return ft(this,null,function*(){var t,n,o,r;if((t=this.videoConfig)!=null&&t.interactiveData)try{let{Interactives:l,EVENT_NAMES:a,CustomError:s}=yield import("@vkontakte/videoplayer-interactive");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactiveContainer");let u=(n=this.store)==null?void 0:n.interfaceLanguage$,c=u?it(u):this.videoConfig.interfaceLanguage,{projectInfo:m,initChapterId:h,historyApi:k,videoLoader:g}=this.videoConfig.interactiveData;this.interactiveController=new l({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:c,graph:this.uiConfig.features.interactiveGraph,projectInfo:m,initChapterId:h,historyApi:k,vkVideoLoader:g,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig});let{isInteractiveExpectation$:w}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(this.interactiveController.getIsSeekable().subscribe(P=>{if(!this.isInited)return;let v=this.store;P?v.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):v.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(w.subscribe(P=>{this.store&&this.store.state.isInteractiveExpectation$.set(P)}));let y=!0;if(this.interactiveController.on(a.playerChanged,P=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]=Dt(at({},P.config),{title:(m==null?void 0:m.title)||P.config.title});let v=y?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(P.player,v),y&&(y=!1)}),this.interactiveController.on(a.interactives,({type:P,actionType:v})=>{var I,N,M,O;if(!this.store)return;let b=w.getValue();if(P==="action-choice"&&v==="setRandomBranch"&&(this.store.state.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(cr)),P==="action-choice-canceled"){let re=it(this.store.state.isPlaying$)||b;if((I=this.videoConfig)!=null&&I.isMobile&&re){this.store.ui.interactiveHideMobileControls.set(!0);return}(O=(N=this.videoConfig)==null?void 0:(M=N.callbacks).onDisabledInteractiveClick)==null||O.call(M)}}),yield this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(r=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&r.onInteractiveHistoryChanged){let P=this.interactiveController.getHistoryState();this.subscription.add(P.history$.subscribe(v=>{var b,I,N;v.length&&((N=(I=(b=this.videoConfig)==null?void 0:b.callbacks)==null?void 0:I.onInteractiveHistoryChanged)==null||N.call(I,v))}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var P,v,b,I;(P=this.microStoresRoot)==null||P.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(I=(v=this.videoConfig)==null?void 0:(b=v.callbacks).onInteractiveTimeIndicatorClick)==null||I.call(b)})),this.interactiveController.on(a.errors,P=>{this.log({message:P.toString()})})}catch(l){this.log({message:l.message})}})}initInteractivesStatistics(){return ft(this,null,function*(){var o,r;let{statSubscription:t,oneStat:n}=this.statistics;if(!(!t||!n||!this.interactiveController))try{let{INTERACTIVE_CLICK_ACTIONS:l}=yield import("@vkontakte/videoplayer-interactive"),a={[l.GO_NEXT_BUTTON]:Vl.InteractiveInterfaceClick.NEXT_BUTTON,[l.GO_NEXT_AREA]:Vl.InteractiveInterfaceClick.NEXT_AREA,[l.WATCH_AGAIN]:Vl.InteractiveInterfaceClick.WATCH_AGAIN,[l.OPEN_GRAPH]:Vl.InteractiveInterfaceClick.GRAPH_SHOW,[l.CLOSE_GRAPH]:Vl.InteractiveInterfaceClick.GRAPH_HIDE},{click$:s,nextMovie$:u}=this.interactiveController.getStatEvents(),c=new Si.Subject;s.subscribe(m=>{var h,k;m in a?c.next(a[m]):(n==null||n.logError({errorType:"InteractiveVideosAction",fatal:!1}),(k=(h=this.sentry).report)==null||k.call(h,new Error("InteractiveVideosAction"),{errorType:"InteractiveVideosAction",fatal:!1}))}),t.add(n.attachToInteractive({click$:c,nextMovie$:u}))}catch(l){n==null||n.logError({errorType:"InteractiveVideos",fatal:!1}),(r=(o=this.sentry).report)==null||r.call(o,l,{errorType:"InteractiveVideosAction",fatal:!1})}})}initPlayer(t,n={}){var o,r,l,a,s,u,c,m,h,k,g,w,y,P,v,b,I,N,M;if(!Array.isArray(t.videos)||t.videos.length===0&&!t.interactiveData)throw new Error("empty videos");this.videoConfig=Hf(X6,(0,Si.cloneDeepWith)(t,O=>O instanceof HTMLElement?O:void 0)),this.uiConfig=ac((o=n.ui)!=null?o:{}),this.coreConfig=(r=n.core)!=null?r:{configName:[]},this.statisticsConfig=(l=n.statistics)!=null?l:{},this.sentry={config:(a=this.uiConfig.sentry)!=null?a:{}},(0,Si.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(s=this.videoConfig.isMediaSessionEnabled)!=null?s:!0),(0,Si.isNonNullable)(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(c=(u=this.uiConfig.features.pip)!=null?u:this.videoConfig.isPictureInPictureEnabled)!=null?c:!0,this.uiConfig.features.dpip=(h=(m=this.uiConfig.features.dpip)!=null?m:this.videoConfig.isPictureInPictureEnabled)!=null?h:!0),this.videoConfig.isMobile=(k=this.uiConfig.isMobile)!=null?k:this.videoConfig.isMobile,(g=this.videoConfig).autoplay&&(g.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(w=this.uiConfig.ads.enable)!=null?w:this.videoConfig.showAds,this.videoConfig.adsSlotId=(y=this.uiConfig.ads.slot)!=null?y:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(P=this.uiConfig.ads.preview)!=null?P:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((v=this.uiConfig.showLogo)!=null?v:!this.videoConfig.logoHidden),(b=this.videoConfig).canRewindLive&&(b.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(I=this.videoConfig.supportLink)!=null?I:this.uiConfig.supportLink,this.currentPlayingVideoIndex=0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip&&(this.uiConfig.features.dpip?this.pictureInPictureApi=Ts.getLatestSupportedVersion():this.pictureInPictureApi=new Ko),this.mediaSessionApi=this.uiConfig.features.mediaSession?new Ss:void 0,this.annotationsApi=this.uiConfig.features.annotations?new Ps(this.rootContainer):void 0,(N=this.svelteStubComponent)==null||N.$destroy(),(M=this.svelteRootComponent)==null||M.$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]),__(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateNextVideos(t){var o;if(!this.videoConfig)return;this.log({message:`update next videos, videos: ${JSON.stringify(t)}`}),this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...t);let n=this.getNextVideoInfo();(o=this.svelteRootComponent)==null||o.$set({showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:n.nextVideoTitle,endScreenVideoThumb:n.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()})}initMediaSession(){var t,n;this.mediaSessionApi&&((t=this.unsubscribePlayerPhaseSubscription)==null||t.call(this),this.unsubscribePlayerPhaseSubscription=(n=this.store)==null?void 0:n.playerPhase.subscribe(o=>{o==="video"?this.setupMediaSessionForVideo():o==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:t,thumbUrl:n}=at({},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)}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(){var t,n;this.isControlDisabled("PLAY_BUTTON")||(t=this.store)!=null&&t.playerPhase.is("waitingLive")||(this.log({message:"play"}),(n=this.svelteRootComponent)==null||n.play())}pause(){var t;this.log({message:"pause"}),(t=this.svelteRootComponent)==null||t.pause()}stop(){var n,o;if(!this.videoConfig)return;this.log({message:"stop"}),(n=this.svelteStubComponent)==null||n.$destroy();let t=this.videoConfig.videos[0];t&&((o=this.svelteRootComponent)==null||o.$destroy(),this.createPlayer(t))}setMuted(t){var n;this.log({message:`set muted, muted: ${t}`}),(n=this.svelteRootComponent)==null||n.setMuted(t)}setVolume(t){var n;this.log({message:`set volume, volume: ${t}`}),(n=this.svelteRootComponent)==null||n.setVolume(t)}setRepeat(t){var n;this.log({message:`set repeat, repeat: ${t}`}),this.needToRepeatPlaylist=t,(n=this.svelteRootComponent)==null||n.$set({needToRepeatPlaylist:this.needToRepeatPlaylist,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive()})}seekTime(t){var n;this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${t}`}),(n=this.svelteRootComponent)==null||n.seekTime(t))}seekEpisodeStartTime(t){var n;this.log({message:`seek episode start time, time: ${t}`}),(n=this.svelteRootComponent)==null||n.seekEpisodeStartTime(t)}returnFocusToEpisodes(){var t;this.log({message:"return focus to episodes button"}),(t=this.svelteRootComponent)==null||t.returnFocusToEpisodes()}setPlaybackRate(t){var n;this.log({message:`set playback rate to: ${t}`}),(n=this.svelteRootComponent)==null||n.setPlaybackRate(t)}setAutoQualityLimits(t){var n,o,r;this.log({message:`set auto quality limitation. Max: ${(n=t.max)!=null?n:"none"}. Min: ${(o=t.min)!=null?o:"none"}`}),(r=this.svelteRootComponent)==null||r.setAutoQualityLimits(t)}addLanguage(t){var n;(n=this.store)==null||n.actions.internal.addLanguage(t)}setLanguage(t){return ft(this,null,function*(){var n;yield(n=this.store)==null?void 0:n.actions.internal.setLanguage(t)})}setLiveStart(t){var n,o;this.log({message:"live started"}),(n=this.store)==null||n.actions.internal.setWaitingLive(!1),(o=this.svelteRootComponent)==null||o.initVideo(t),this.play()}setWaitRecord(){var t,n;this.log({message:"post live"}),(t=this.store)==null||t.actions.internal.setWaitingRecord(!0),(n=this.store)==null||n.destroy()}setLiveEnd(t){var n,o;this.log({message:"live ended"}),(n=this.store)==null||n.actions.internal.setWaitingRecord(!1),(o=this.svelteRootComponent)==null||o.$destroy(),this.createPlayer(t,{autoplay:!1})}getDeviceId(){var t,n;return(n=(t=this.statistics)==null?void 0:t.oneStat.getDeviceId())!=null?n:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}replayInteractiveChapter(t){return ft(this,null,function*(){var n;if(this.interactiveController&&((n=this.store)!=null&&n.state.positionExact$)){let{EVENT_NAMES:o}=yield import("@vkontakte/videoplayer-interactive"),r=it(this.store.state.positionExact$),a=it(this.store.state.interactiveEpisodes$).find(u=>!u.completed);this.interactiveController.once(o.playerChanged,()=>{a&&r>=a.time?this.seekTime(a.time):this.seekTime(r),t==null||t()});let s=this.interactiveController.getCurrentChapter();yield this.interactiveController.setChapter({chapterId:s.chapter.id,pushToHistory:!1})}})}showInteractiveIndicatorTooltip(t,n=!1){var o;(o=this.microStoresRoot)==null||o.stores.showInteractiveTimeIndicatorTooltip$.set(t,n)}switchToActiveLive(){var t;(t=this.store)==null||t.actions.internal.switchToActiveLive()}};var Ll=require("@vkontakte/videoplayer-shared"),As=require("@vkontakte/videoplayer-core"),J6=()=>{window.customElements.define("vk-video-player",Es)};