@vkontakte/videoplayer 1.1.38-dev.5abfbe45.0 → 1.1.38-dev.5decff27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/es2018.cjs.js CHANGED
@@ -1,17 +1,17 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.38-dev.5abfbe45.0
3
- * Wed, 10 Jul 2024 00:45:09 GMT
2
+ * @vkontakte/videoplayer v1.1.38-dev.5decff27.0
3
+ * Wed, 10 Jul 2024 10:54:08 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-38/doc/
5
5
  */
6
- "use strict";var L2=Object.create;var Ll=Object.defineProperty;var B2=Object.getOwnPropertyDescriptor;var R2=Object.getOwnPropertyNames;var D2=Object.getPrototypeOf,N2=Object.prototype.hasOwnProperty;var O2=(i,e,t)=>e in i?Ll(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var F2=(i,e)=>{for(var t in e)Ll(i,t,{get:e[t],enumerable:!0})},Df=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of R2(e))!N2.call(i,o)&&o!==t&&Ll(i,o,{get:()=>e[o],enumerable:!(n=B2(e,o))||n.enumerable});return i};var Nf=(i,e,t)=>(t=i!=null?L2(D2(i)):{},Df(e||!i||!i.__esModule?Ll(t,"default",{value:i,enumerable:!0}):t,i)),H2=i=>Df(Ll({},"__esModule",{value:!0}),i);var qi=(i,e,t)=>(O2(i,typeof e!="symbol"?e+"":e,t),t);var B6={};F2(B6,{GridTypes:()=>_o,InterfaceLanguage:()=>Ml.InterfaceLanguage,VERSION:()=>No,VKNumericLanguage:()=>Ml.VKNumericLanguage,VideoFormat:()=>ys.VideoFormat,VideoQuality:()=>ys.VideoQuality,loadVKLangPack:()=>Ml.loadVKLangPack,registerPlayerWebComponent:()=>L6});module.exports=H2(B6);function me(){}function se(i,e){for(let t in e)i[t]=e[t];return i}function Cs(i){return i()}function xl(){return Object.create(null)}function xe(i){i.forEach(Cs)}function Ii(i){return typeof i=="function"}function U(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var Jl;function Ss(i,e){return Jl||(Jl=document.createElement("a")),Jl.href=e,i===Jl.href}function Of(i){return Object.keys(i).length===0}function Xt(i,...e){if(i==null){for(let n of e)n(void 0);return me}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function tt(i){let e;return Xt(i,t=>e=t)(),e}function q(i,e,t){i.$$.on_destroy.push(Xt(e,t))}function Ee(i,e,t,n){if(i){let o=Ff(i,e,t,n);return i[0](o)}}function Ff(i,e,t,n){return i[1]&&n?se(t.ctx.slice(),i[1](n(e))):t.ctx}function Me(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let 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 Ve(i,e,t,n,o,r){if(o){let l=Ff(e,t,n,r);i.p(l,o)}}function Ae(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function he(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function Hf(i){return i==null?"":i}var Ao=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var $l=class i{constructor(e){qi(this,"_listeners","WeakMap"in Ao?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)})}};$l.entries="WeakMap"in Ao?new WeakMap:void 0;var zf=!1;function qf(){zf=!0}function Uf(){zf=!1}function p(i,e){i.appendChild(e)}function Pe(i,e,t){let n=Kf(i);if(!n.getElementById(e)){let o=P("style");o.id=e,o.textContent=t,U2(n,o)}}function Kf(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function U2(i,e){return p(i.head||i,e),e.sheet}function C(i,e,t){i.insertBefore(e,t||null)}function k(i){i.parentNode&&i.parentNode.removeChild(i)}function Ei(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function P(i){return document.createElement(i)}function V(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Re(i){return document.createTextNode(i)}function z(){return Re(" ")}function lt(){return Re("")}function de(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function Bt(i){return function(e){return e.preventDefault(),i.call(this,e)}}function rt(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function ge(i,e){for(let t in e)f(i,t,e[t])}function Wf(i){return Array.from(i.childNodes)}function je(i,e){e=""+e,i.data!==e&&(i.data=e)}function yi(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}var er;function K2(){if(er===void 0){er=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(i){er=!0}}return er}function tl(i,e){getComputedStyle(i).position==="static"&&(i.style.position="relative");let n=P("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;let o=K2(),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(),k(n)}}function H(i,e,t){i.classList.toggle(e,!!t)}function Gf(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Mn(i,e){return new i(e)}var po;function ro(i){po=i}function il(){if(!po)throw new Error("Function called outside component initialization");return po}function Rt(i){il().$$.on_mount.push(i)}function jn(i){il().$$.on_destroy.push(i)}function nl(i,e){return il().$$.context.set(i,e),e}function ol(i){return il().$$.context.get(i)}function Bl(){return il().$$.context}function Dn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var Lo=[];var pe=[],rl=[],Ts=[],Qf=Promise.resolve(),Is=!1;function Es(){Is||(Is=!0,Qf.then(tr))}function Qn(){return Es(),Qf}function Yn(i){rl.push(i)}function Oe(i){Ts.push(i)}var Ps=new Set,ll=0;function tr(){if(ll!==0)return;let i=po;do{try{for(;ll<Lo.length;){let e=Lo[ll];ll++,ro(e),Z2(e.$$)}}catch(e){throw Lo.length=0,ll=0,e}for(ro(null),Lo.length=0,ll=0;pe.length;)pe.pop()();for(let e=0;e<rl.length;e+=1){let t=rl[e];Ps.has(t)||(Ps.add(t),t())}rl.length=0}while(Lo.length);for(;Ts.length;)Ts.pop()();Is=!1,Ps.clear(),ro(i)}function Z2(i){if(i.fragment!==null){i.update(),xe(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Yn)}}function Yf(i){let e=[],t=[];rl.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),rl=e}var ir=new Set,Bo;function ue(){Bo={r:0,c:[],p:Bo}}function fe(){Bo.r||xe(Bo.c),Bo=Bo.p}function d(i,e){i&&i.i&&(ir.delete(i),i.i(e))}function _(i,e,t,n){if(i&&i.o){if(ir.has(i))return;ir.add(i),Bo.c.push(()=>{ir.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function St(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function Be(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let l=i[r],a=e[r];if(a){for(let s in l)s in a||(n[s]=1);for(let s in a)o[s]||(t[s]=a[s],o[s]=1);i[r]=a}else for(let s in l)o[s]=1}for(let l in n)l in t||(t[l]=void 0);return t}function Zf(i){return typeof i=="object"&&i!==null?i:{}}var X2=["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"],J2=new Set([...X2]);function Fe(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function N(i){i&&i.c()}function R(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Yn(()=>{let r=i.$$.on_mount.map(Cs).filter(Ii);i.$$.on_destroy?i.$$.on_destroy.push(...r):xe(r),i.$$.on_mount=[]}),o.forEach(Yn)}function D(i,e){let t=i.$$;t.fragment!==null&&(Yf(t.after_update),xe(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&&(Lo.push(i),Es(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function W(i,e,t,n,o,r,l,a=[-1]){let s=po;ro(i);let u=i.$$={fragment:null,ctx:[],props:r,update:me,not_equal:o,bound:xl(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:xl(),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,...S)=>{let b=S.length?S[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=b)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](b),c&&$2(i,m)),h}):[],u.update(),c=!0,xe(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){qf();let m=Wf(e.target);u.fragment&&u.fragment.l(m),m.forEach(k)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),R(i,e.target,e.anchor),Uf(),tr()}ro(s)}var e_;typeof HTMLElement=="function"&&(e_=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))}}async connectedCallback(){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){C(u,l,c)},d:function(u){u&&k(l)}}}};var e=t;if(await Promise.resolve(),!this.$$connected)return;let n={},o=Gf(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]=Xf(l,r.value,this.$$props_definition,"toProp"))}this.$$component=new this.$$componentCtor({target:this.shadowRoot||this,props:{...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]=Xf(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 Xf(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 K=class{constructor(){qi(this,"$$");qi(this,"$$set")}$destroy(){D(this,1),this.$destroy=me}$on(e,t){if(!Ii(t))return me;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Of(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Jf="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Jf);var PR=require("@vkontakte/videoplayer-core"),Xn=require("@vkontakte/videoplayer-shared"),Wp=require("@vkontakte/videoplayer-statistics");var sl=require("@vkontakte/videoplayer-shared");var t_={isMobile:void 0,defaultLanguage:sl.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:sl.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:!0},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}},xf=i=>(0,sl.fillWithDefault)(i,t_),$f=i=>nl("ui-config",i),Ht=()=>ol("ui-config");var Rl="vk_player_debug_panel_opened";var ec="videoplayer",tc="videoplayer";var $n={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},ic=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),nc=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),oc=new Set(["ShiftRight","ShiftLeft"]);var lc=["TIMELINE"],Dl=[...lc,"GRAPH_BUTTON"],Ms=[...lc,"PLAY_BUTTON"],nr=[...Dl,"PLAY_BUTTON"];var _o=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(_o||{}),Do={xs:0,s:1,m:2,l:3,xl:4};var al=[];function qn(i,e){return{subscribe:Ne(i,e).subscribe}}function Ne(i,e=me){let t,n=new Set;function o(a){if(U(i,a)&&(i=a,t)){let s=!al.length;for(let u of n)u[1](),al.push(u,i);if(s){for(let u=0;u<al.length;u+=2)al[u][0](al[u+1]);al.length=0}}}function r(a){o(a(i))}function l(a,s=me){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,r)||me),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:l}}function Mi(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return qn(t,(l,a)=>{let s=!1,u=[],c=0,m=me,h=()=>{if(c)return;m();let b=e(n?u[0]:u,l,a);r?l(b):m=Ii(b)?b:me},S=o.map((b,w)=>Xt(b,y=>{u[w]=y,c&=~(1<<w),s&&h()},()=>{c|=1<<w}));return s=!0,h(),function(){xe(S),m(),s=!1}})}var Nl=require("@vkontakte/videoplayer-shared"),rc=require("@vkontakte/videoplayer-core"),sc=require("@vkontakte/videoplayer-statistics");var or="prod",No="1.1.38-dev.5abfbe45.0";var lr=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var ac=Symbol("storeContext"),uc=Symbol("microStoresContext"),fc=(i,e)=>{nl(ac,i),nl(uc,e),or==="dev"&&(window.app={store:i,microStores:e})},it=()=>{let i=ol(ac);return(0,Nl.assertNonNullable)(i,"Store context is empty!"),i},Un=()=>{let i=ol(uc);return(0,Nl.assertNonNullable)(i,"MicroStores context is empty!"),i},vt=(i,e)=>Vs(i,i.getValue(),e),Vs=(i,e,t)=>qn(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),cc=(i,e,t)=>{var b,w,y,T;let n=i.info,{width:o,height:r}=tt(t.ui.playerSize),l=(w=(b=n.throughputEstimation$.getValue())==null?void 0:b.toFixed(0))!=null?w:0,a=(T=(y=n.rttEstimation$.getValue())==null?void 0:y.toFixed(0))!=null?T:0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${No} (core: ${rc.VERSION}, stat: ${sc.VERSION}, shared: ${Nl.VERSION})`,c=tt(t.state.errorLog$),m=c.length?`
7
- `+c.map((v,g)=>{var F;let E=`${g}) Type: ${v.id}
8
- `,B=`Message: ${v.message} (${v.thrown})
9
- `,L=`Trace: ${(F=v.thrown)==null?void 0:F.stack}
10
- `;return E+B+L}).join(`
11
- `):void 0,h=t.state.isAudioDisabled?"disabled":tt(t.state.isAudioAvailable$)?void 0:"unavailable",S={Version:u,Browser:navigator.userAgent,Config:i.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(t.videoId),"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(", "),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(S).filter(([v,g])=>g!==void 0).map(([v,g])=>`${v}: ${g}`).join(`
12
- `)},dc=(i,e,t)=>{let n=i.info,{width:o,height:r}=tt(t.ui.playerSize),l={version:No,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();c&&(l.buffer=Math.max(c.end-tt(t.state.positionExact$),0));let m=n.throughputEstimation$.getValue();m&&(l.speed=m);let h=n.videoBitrate$.getValue();h&&(l.bitrate=h);let S=n.currentVideoSegmentLength$.getValue();S&&(l.currentVideoSegmentLength=S);let b=n.currentAudioSegmentLength$.getValue();return b&&(l.currentAudioSegmentLength=b),l},mc=(i,e)=>lr(i,e,"mp4");var Vn=require("@vkontakte/videoplayer-shared"),pc="vk_player_prefer_traffic_saving_enabled",_c="vk_player_preferred_volume",hc="vk_player_prefer_volume_mute",As="vk_player_preferred_quality",gc="vk_player_preferred_stream_language",bc=i=>i>1?1:i<0?0:i,Ls=i=>Vn.safeStorage.set(_c,bc(i).toString(10)),rr=()=>{let i=Vn.safeStorage.get(_c);return(0,Vn.isNullable)(i)?void 0:bc(parseFloat(i))},vc=(i,e)=>Vn.safeStorage.set(As,JSON.stringify({videoId:i,value:e})),Bs=()=>Vn.safeStorage.remove(As),yc=i=>{let e=Vn.safeStorage.get(As);if((0,Vn.isNullable)(e))return;let{videoId:t,value:n}=JSON.parse(e);if(i!==t){Bs();return}return n},wc=(i,e)=>{e?Vn.safeStorage.set(i,"true"):Vn.safeStorage.remove(i)},kc=i=>Vn.safeStorage.get(i)==="true",sr=i=>wc(hc,i),Cc=()=>kc(hc),Sc=i=>wc(pc,i),Pc=()=>kc(pc),Tc=()=>Vn.safeStorage.get(gc),Rs=i=>Vn.safeStorage.set(gc,i);var yp=require("@vkontakte/videoplayer-core"),ps=require("@vkontakte/videoplayer-shared");function i_(i){let e,t,n,o,r,l,a,s,u,c,m,h,S,b,w,y,T,v=i[2].default,g=Ee(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]],B={};for(let L=0;L<E.length;L+=1)B=se(B,E[L]);return{c(){e=V("svg"),g&&g.c(),t=V("g"),n=V("path"),o=V("path"),r=V("path"),l=V("path"),a=V("path"),s=V("defs"),u=V("filter"),c=V("feFlood"),m=V("feColorMatrix"),h=V("feOffset"),S=V("feGaussianBlur"),b=V("feColorMatrix"),w=V("feBlend"),y=V("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(S,"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(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"),ge(e,B)},m(L,F){C(L,e,F),g&&g.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,S),p(u,b),p(u,w),p(u,y),T=!0},p(L,[F]){g&&g.p&&(!T||F&2)&&Ve(g,v,L,L[1],T?Me(v,L[1],F,null):Ae(L[1]),null),ge(e,B=Be(E,[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},F&1&&L[0]]))},i(L){T||(d(g,L),T=!0)},o(L){_(g,L),T=!1},d(L){L&&k(e),g&&g.d(L)}}}function n_(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Ds=class extends K{constructor(e){super(),W(this,e,n_,i_,U,{})}},ar=Ds;var ul=require("@vkontakte/videoplayer-shared");var o_={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_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",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"},Ic=o_;var l_={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_audio_languages:"Audio track",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"},Ec=l_;var so=new Map;so.set(ul.InterfaceLanguage.EN,Ec);so.set(ul.InterfaceLanguage.RU,Ic);var Mc=new Map,Ns=({language:i,pack:e,fallback:t})=>{if(so.has(i)){let n=so.get(i);so.set(i,{...n,...e})}else so.set(i,e);Mc.set(i,t)},Os=i=>so.has(i),Fs=(i,e,t,n)=>{var l;let o=so.get(i),r=o==null?void 0:o[e];if((0,ul.isNullable)(r)){let a=(l=Mc.get(i))!=null?l:n,s=a?so.get(a):void 0;r=s==null?void 0:s[e]}return(0,ul.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}=it(),n=tt(t),o=Ht();return Fs(n,i,e,o.defaultLanguage)};var w9=require("@vkontakte/videoplayer-core");var fl;(function(i){i.fatal="fatal",i.error="error",i.warning="warning",i.log="log",i.info="info",i.debug="debug",i.critical="critical"})(fl||(fl={}));var r_=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,s_=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,a_=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,ur="?",u_="X-Sentry-Auth",f_=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function c_(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=r_.exec(t[r]))o={filename:n[2]&&n[2].indexOf("address at ")===0?n[2].substr(11):n[2],function:n[1]||ur,lineno:n[3]?+n[3]:null,colno:n[4]?+n[4]:null};else if(n=a_.exec(t[r]))o={filename:n[2],function:n[1]||ur,lineno:+n[3],colno:n[4]?+n[4]:null};else if(n=s_.exec(t[r]))r===0&&!n[5]&&i.columnNumber!==void 0&&(e[0].column=i.columnNumber+1),o={filename:n[3],function:n[1]||ur,lineno:n[4]?+n[4]:null,colno:n[5]?+n[5]:null};else continue;!o.function&&o.lineno&&(o.function=ur),e.push(o)}return e.length?{value:Vc(i),type:i.name,stacktrace:{frames:e.reverse()}}:null}function Vc(i){return(i&&i.message||"No error message").split(`
14
- `).filter(t=>!!t)[0]}function d_(i){try{let e=c_(i);if(e)return e}catch(e){}return{value:Vc(i),type:i&&i.name,stacktrace:{frames:[]}}}function m_(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,i=>{let e=Math.random()*16|0;return(i==="x"?e:e&3|8).toString(16)})}var fr=class{constructor(e){if(e&&e.dsn){let t=f_.exec(e.dsn),n=t?t.slice(1):[],o=n[5].split("/"),r=o.slice(0,-1).join("/");this.apiUrl=n[0]+"://"+n[3]+(n[4]?":"+n[4]:"")+(r?"/"+r:"")+"/api/"+o.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+n[1]+(n[2]?",sentry_secret="+n[2]:"")}this.environment=e&&e.environment}prepare(e){return{...this.getRequestBlank(),exception:{values:[d_(e)]}}}report(e){this.send(this.prepare(e))}send(e){!this.apiUrl||!e||this.createRequest(e)}createRequest(e){let t=new XMLHttpRequest;t.open("POST",this.apiUrl,!0),t.setRequestHeader("Content-type","application/json"),t.setRequestHeader(u_,this.authHeader||""),t.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:m_(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function Ac(i,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(i):typeof e=="string"?i.indexOf(e)!==-1:!1}function p_(){return window}var cr=class i extends fr{constructor(e,t=p_()){super(e),this.options=e,this.window=t,this.destroyed=!1,this._state={};let{plugins:n=[],beforeSend:o=u=>u,beforeBreadcrumb:r=u=>u,blacklistUrls:l=[],ignoreErrors:a=[],release:s=void 0}=this.options||{};this.plugins=n.map(u=>new u(this)),this.beforeSend=o,this.beforeBreadcrumb=r,this.blacklistUrls=l,this.ignoreErrors=a,this.release=s}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",{...e}),this}setTag(e,t){return this.extendState({tags:{[e]:t}}),this}setExtra(e,t){return this.extendState({extra:{[e]:t}}),this}setExtras(e){return this.setKeyState("extra",{...e}),this}setUser(e){return this.setKeyState("user",{...e}),this}clone(){let e=new i({...this.options,plugins:[]});return e.extendState(this.state),e}withScope(e){let t=this.clone();e(t),t.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[{timestamp:Date.now()/1e3,...this.beforeBreadcrumb(e)}]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,t){this.send({...this.getRequestBlank(),message:e,level:t})}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(t=>this.ignoreErrors.some(n=>Ac(t,n))):!1}getRequestBlank(){return{request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}},...super.getRequestBlank(),sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"},...this.state}}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend({release:this.release,...e})),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:t="",value:n=""}=e.exception.values&&e.exception.values[0]||{};return[`${n}`,`${t}: ${n}`]}catch(t){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let t=this.getEventFilterUrl(e);return t?this.blacklistUrls.some(n=>Ac(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{...t,[n]:r||a?[...r||[],...a||[]]:{...typeof o!="string"?o:{},...typeof l!="string"?l:{}}}},this._state)}setKeyState(e,t){this._state[e]=t}};var Oo=require("@vkontakte/videoplayer-shared");var dr=null,Fo=class{constructor(e,t,n={}){!dr&&e.dsn&&(this.sentryClient=new cr({dsn:e.dsn,environment:t.env}),this.version=t.version,this.sentrySubscription=new Oo.Subscription,this.options=e,this.context=n,dr=this)}destroy(){var e,t;(e=this.sentryClient)==null||e.destroy(),(t=this.sentrySubscription)==null||t.unsubscribe(),dr=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:S}=t;if((0,Oo.isNonNullable)(S)&&m.includes(S)||(0,Oo.isNonNullable)(h)&&c.includes(h))return;if(Math.random()<=a||(0,Oo.isNonNullable)(S)&&u.includes(S)||(0,Oo.isNonNullable)(h)&&s.includes(h)){Object.keys(t).length&&o.setTags({version:this.version,...t}),(Object.keys(r).length||Object.keys(n).length)&&o.setExtras({...r,...n});try{h&&o.captureMessage(h,t.fatal?fl.fatal:fl.error),o.report(e)}catch(w){console.error(w)}}}static getInstance(){return dr}};var mr=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()},pr=i=>i.exitFullscreen?i.exitFullscreen():i.msExitFullscreen?i.msExitFullscreen():i.webkitExitFullscreen?i.webkitExitFullscreen():i.mozCancelFullScreen?i.mozCancelFullScreen():Promise.reject(),Lc=i=>{let e=i;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},ho=()=>{let i=document;return!!(i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement||i.msFullscreenElement)},_r=i=>{document.addEventListener("fullscreenchange",i),document.addEventListener("webkitfullscreenchange",i),document.addEventListener("mozfullscreenchange",i),document.addEventListener("MSFullscreenChange",i)},hr=i=>{document.removeEventListener("fullscreenchange",i),document.removeEventListener("webkitfullscreenchange",i),document.removeEventListener("mozfullscreenchange",i),document.removeEventListener("MSFullscreenChange",i)},Bc=i=>{let e=window.screen;return(async o=>e.orientation?e.orientation.lock(o):e.mozLockOrientation?e.mozLockOrientation(o):e.msLockOrientation?e.msLockOrientation(o):Promise.reject())(((o={width:0,height:0})=>o.width<=o.height?"portrait":"landscape")(i))};var Hs=require("@vkontakte/videoplayer-shared"),Rc=()=>({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,Hs.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,Hs.isMacLike)()?G("hotkey_map_item_next_episode_mac_value"):G("hotkey_map_item_next_episode_pc_value")}]}]});var go=require("@vkontakte/videoplayer-shared");var Ho=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,go.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new go.ValueSubject(this.isActive()),type:0}}isSupported(){let e=(0,go.getCurrentBrowser)().browser===go.CurrentClientBrowser.Yandex;return document.pictureInPictureEnabled&&!e}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}setContext(e){this.svelteContext=e}async revealPictureInPicture(){this.isRequested&&(this.unregistryEventHandlers(),await this.request(),this.registryEventHandlers())}async request(){var e;if(!(!this.isSupported()||this.isActive()))try{await((e=this.videoElement)==null?void 0:e.requestPictureInPicture())}catch(t){this.isRequested=!1}}async remove(){!this.isSupported()||!this.isActive()||await 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={...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)}async dispose(){this.unregistryEventHandlers(),await 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 zo(i){return i instanceof Ho}function __(i){let e=it();return Rt(()=>{e.getAdmanWrapper().startPostroll()}),[]}var Us=class extends K{constructor(e){super(),W(this,e,__,null,U,{})}},Dc=Us;var Nc=require("@vkontakte/videoplayer-shared");function h_(i){Pe(i,"svelte-1k4i25s",".container.svelte-1k4i25s.svelte-1k4i25s{position:absolute;top:14px;right:16px;padding:6px 10px;font-size:13px;color:#fff;background:rgba(0, 0, 0, 0.56);border-radius:6px;transition:color .2s}.container-mobile.svelte-1k4i25s.svelte-1k4i25s{bottom:14px;top:unset;font-size:15px;max-width:142px}.icon.svelte-1k4i25s.svelte-1k4i25s{margin-left:4px;position:relative;top:2px;fill:var(--white);transition:fill .2s}.skip.svelte-1k4i25s.svelte-1k4i25s{width:86px}.skippable.svelte-1k4i25s.svelte-1k4i25s{cursor:pointer;color:var(--white)}.skippable.svelte-1k4i25s.svelte-1k4i25s:hover{color:rgba(255, 255, 255, .75)}.skippable.svelte-1k4i25s:hover .icon.svelte-1k4i25s{fill:rgba(255, 255, 255, .75)}")}function g_(i){let e=G("skip_ads_after",{time:Math.ceil(i[1]-i[0]).toFixed(0)})+"",t;return{c(){t=Re(e)},m(n,o){C(n,t,o)},p(n,o){o&3&&e!==(e=G("skip_ads_after",{time:Math.ceil(n[1]-n[0]).toFixed(0)})+"")&&je(t,e)},d(n){n&&k(t)}}}function b_(i){let e,t=G("skip_ads_now")+"",n,o,r,l,a,s;return{c(){e=P("div"),n=Re(t),o=z(),r=V("svg"),l=V("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){C(u,e,c),p(e,n),p(e,o),p(e,r),p(r,l),a||(s=de(e,"click",rt(function(){Ii(i[2])&&i[2].apply(this,arguments)})),a=!0)},p(u,c){i=u},d(u){u&&k(e),a=!1,s()}}}function v_(i){let e;function t(r,l){return r[3]?b_:g_}let n=t(i,-1),o=n(i);return{c(){e=P("div"),o.c(),f(e,"class","container svelte-1k4i25s"),H(e,"container-mobile",i[4]),H(e,"skippable",i[3])},m(r,l){C(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:me,o:me,d(r){r&&k(e),o.d()}}}function y_(i,e,t){let n,{position:o=0}=e,{secondsToWatchBeforeSkip:r=0}=e,{skipAd:l=Nc.noop}=e,s=it().ui.isMobile;q(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 Ks=class extends K{constructor(e){super(),W(this,e,y_,v_,U,{position:0,secondsToWatchBeforeSkip:1,skipAd:2},h_)}},Oc=Ks;function w_(i){Pe(i,"svelte-1wy3dql","button.svelte-1wy3dql{position:absolute;pointer-events:none;bottom:14px;left:16px;font-size:15px;background:white;border:none;padding:6px 10px;border-radius:6px;color:black}")}function k_(i){let e;return{c(){e=P("button"),e.textContent=`${G("visit_advertiser")}`,f(e,"class","svelte-1wy3dql")},m(t,n){C(t,e,n)},p:me,i:me,o:me,d(t){t&&k(e)}}}var Ws=class extends K{constructor(e){super(),W(this,e,null,k_,U,{},w_)}},Fc=Ws;function C_(i){Pe(i,"svelte-354ajf",`.container.svelte-354ajf{width:100%;height:100%}.top-gradient-mobile.svelte-354ajf{position:absolute;width:100%;height:80px;top:0;left:0;pointer-events:none;background:linear-gradient(
6
+ "use strict";var S2=Object.create;var kl=Object.defineProperty;var P2=Object.getOwnPropertyDescriptor;var T2=Object.getOwnPropertyNames;var I2=Object.getPrototypeOf,E2=Object.prototype.hasOwnProperty;var M2=(i,e,t)=>e in i?kl(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var V2=(i,e)=>{for(var t in e)kl(i,t,{get:e[t],enumerable:!0})},Bf=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of T2(e))!E2.call(i,o)&&o!==t&&kl(i,o,{get:()=>e[o],enumerable:!(n=P2(e,o))||n.enumerable});return i};var Rf=(i,e,t)=>(t=i!=null?S2(I2(i)):{},Bf(e||!i||!i.__esModule?kl(t,"default",{value:i,enumerable:!0}):t,i)),A2=i=>Bf(kl({},"__esModule",{value:!0}),i);var qi=(i,e,t)=>(M2(i,typeof e!="symbol"?e+"":e,t),t);var C6={};V2(C6,{GridTypes:()=>fo,InterfaceLanguage:()=>bl.InterfaceLanguage,VERSION:()=>Vo,VKNumericLanguage:()=>bl.VKNumericLanguage,VideoFormat:()=>hs.VideoFormat,VideoQuality:()=>hs.VideoQuality,loadVKLangPack:()=>bl.loadVKLangPack,registerPlayerWebComponent:()=>k6});module.exports=A2(C6);function de(){}function oe(i,e){for(let t in e)i[t]=e[t];return i}function vs(i){return i()}function Ql(){return Object.create(null)}function nt(i){i.forEach(vs)}function Vi(i){return typeof i=="function"}function q(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var jl;function ys(i,e){return jl||(jl=document.createElement("a")),jl.href=e,i===jl.href}function Df(i){return Object.keys(i).length===0}function Wt(i,...e){if(i==null){for(let n of e)n(void 0);return de}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function tt(i){let e;return Wt(i,t=>e=t)(),e}function z(i,e,t){i.$$.on_destroy.push(Wt(e,t))}function Ee(i,e,t,n){if(i){let o=Nf(i,e,t,n);return i[0](o)}}function Nf(i,e,t,n){return i[1]&&n?oe(t.ctx.slice(),i[1](n(e))):t.ctx}function Me(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let 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 Ve(i,e,t,n,o,r){if(o){let l=Nf(e,t,n,r);i.p(l,o)}}function Ae(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function he(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function Of(i){return i==null?"":i}var Po=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var Yl=class i{constructor(e){qi(this,"_listeners","WeakMap"in Po?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)})}};Yl.entries="WeakMap"in Po?new WeakMap:void 0;var Ff=!1;function Hf(){Ff=!0}function zf(){Ff=!1}function p(i,e){i.appendChild(e)}function Se(i,e,t){let n=qf(i);if(!n.getElementById(e)){let o=T("style");o.id=e,o.textContent=t,R2(n,o)}}function qf(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function R2(i,e){return p(i.head||i,e),e.sheet}function C(i,e,t){i.insertBefore(e,t||null)}function k(i){i.parentNode&&i.parentNode.removeChild(i)}function Ui(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function T(i){return document.createElement(i)}function V(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function De(i){return document.createTextNode(i)}function F(){return De(" ")}function lt(){return De("")}function me(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function Bt(i){return function(e){return e.preventDefault(),i.call(this,e)}}function st(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function ge(i,e){for(let t in e)f(i,t,e[t])}function Uf(i){return Array.from(i.childNodes)}function Ye(i,e){e=""+e,i.data!==e&&(i.data=e)}function _i(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}var Zl;function D2(){if(Zl===void 0){Zl=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(i){Zl=!0}}return Zl}function jo(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=D2(),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(),k(n)}}function H(i,e,t){i.classList.toggle(e,!!t)}function Kf(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function kn(i,e){return new i(e)}var uo;function to(i){uo=i}function Qo(){if(!uo)throw new Error("Function called outside component initialization");return uo}function Rt(i){Qo().$$.on_mount.push(i)}function Un(i){Qo().$$.on_destroy.push(i)}function Yo(i,e){return Qo().$$.context.set(i,e),e}function Zo(i){return Qo().$$.context.get(i)}function Cl(){return Qo().$$.context}function In(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var To=[];var pe=[],Jo=[],ks=[],Gf=Promise.resolve(),Cs=!1;function Ss(){Cs||(Cs=!0,Gf.then(Xl))}function Kn(){return Ss(),Gf}function Wn(i){Jo.push(i)}function Fe(i){ks.push(i)}var ws=new Set,Xo=0;function Xl(){if(Xo!==0)return;let i=uo;do{try{for(;Xo<To.length;){let e=To[Xo];Xo++,to(e),q2(e.$$)}}catch(e){throw To.length=0,Xo=0,e}for(to(null),To.length=0,Xo=0;pe.length;)pe.pop()();for(let e=0;e<Jo.length;e+=1){let t=Jo[e];ws.has(t)||(ws.add(t),t())}Jo.length=0}while(To.length);for(;ks.length;)ks.pop()();Cs=!1,ws.clear(),to(i)}function q2(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(Wn)}}function jf(i){let e=[],t=[];Jo.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),Jo=e}var Jl=new Set,Io;function fe(){Io={r:0,c:[],p:Io}}function ce(){Io.r||nt(Io.c),Io=Io.p}function d(i,e){i&&i.i&&(Jl.delete(i),i.i(e))}function _(i,e,t,n){if(i&&i.o){if(Jl.has(i))return;Jl.add(i),Io.c.push(()=>{Jl.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 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 Qf(i){return typeof i=="object"&&i!==null?i:{}}var U2=["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"],K2=new Set([...U2]);function He(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function D(i){i&&i.c()}function L(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Wn(()=>{let r=i.$$.on_mount.map(vs).filter(Vi);i.$$.on_destroy?i.$$.on_destroy.push(...r):nt(r),i.$$.on_mount=[]}),o.forEach(Wn)}function B(i,e){let t=i.$$;t.fragment!==null&&(jf(t.after_update),nt(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function G2(i,e){i.$$.dirty[0]===-1&&(To.push(i),Ss(),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=uo;to(i);let u=i.$$={fragment:null,ctx:[],props:r,update:de,not_equal:o,bound:Ql(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:Ql(),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 b=w.length?w[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=b)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](b),c&&G2(i,m)),h}):[],u.update(),c=!0,nt(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Hf();let m=Uf(e.target);u.fragment&&u.fragment.l(m),m.forEach(k)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),L(i,e.target,e.anchor),zf(),Xl()}to(s)}var j2;typeof HTMLElement=="function"&&(j2=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))}}async connectedCallback(){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){C(u,l,c)},d:function(u){u&&k(l)}}}};var e=t;if(await Promise.resolve(),!this.$$connected)return;let n={},o=Kf(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]=Yf(l,r.value,this.$$props_definition,"toProp"))}this.$$component=new this.$$componentCtor({target:this.shadowRoot||this,props:{...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]=Yf(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 Yf(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 K=class{constructor(){qi(this,"$$");qi(this,"$$set")}$destroy(){B(this,1),this.$destroy=de}$on(e,t){if(!Vi(t))return de;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&&!Df(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Zf="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Zf);var cR=require("@vkontakte/videoplayer-core"),Gn=require("@vkontakte/videoplayer-shared"),Np=require("@vkontakte/videoplayer-statistics");var xo=require("@vkontakte/videoplayer-shared");var Q2={isMobile:void 0,defaultLanguage:xo.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:xo.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,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}},Xf=i=>(0,xo.fillWithDefault)(i,Q2),Jf=i=>Yo("ui-config",i),zt=()=>Zo("ui-config");var Sl="vk_player_debug_panel_opened";var xf="videoplayer",$f="videoplayer";var Yn={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},ec=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),tc=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),ic=new Set(["ShiftRight","ShiftLeft"]);var nc=["TIMELINE"],Pl=[...nc,"GRAPH_BUTTON"],Ps=[...nc,"PLAY_BUTTON"],xl=[...Pl,"PLAY_BUTTON"];var fo=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(fo||{}),Mo={xs:0,s:1,m:2,l:3,xl:4};var $o=[];function Bn(i,e){return{subscribe:Ne(i,e).subscribe}}function Ne(i,e=de){let t,n=new Set;function o(a){if(q(i,a)&&(i=a,t)){let s=!$o.length;for(let u of n)u[1](),$o.push(u,i);if(s){for(let u=0;u<$o.length;u+=2)$o[u][0]($o[u+1]);$o.length=0}}}function r(a){o(a(i))}function l(a,s=de){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,r)||de),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:l}}function Ai(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 Bn(t,(l,a)=>{let s=!1,u=[],c=0,m=de,h=()=>{if(c)return;m();let b=e(n?u[0]:u,l,a);r?l(b):m=Vi(b)?b:de},w=o.map((b,S)=>Wt(b,y=>{u[S]=y,c&=~(1<<S),s&&h()},()=>{c|=1<<S}));return s=!0,h(),function(){nt(w),m(),s=!1}})}var Tl=require("@vkontakte/videoplayer-shared"),oc=require("@vkontakte/videoplayer-core"),lc=require("@vkontakte/videoplayer-statistics");var $l="prod",Vo="1.1.38-dev.5decff27.0";var er=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var rc=Symbol("storeContext"),sc=Symbol("microStoresContext"),ac=(i,e)=>{Yo(rc,i),Yo(sc,e),$l==="dev"&&(window.app={store:i,microStores:e})},it=()=>{let i=Zo(rc);return(0,Tl.assertNonNullable)(i,"Store context is empty!"),i},Rn=()=>{let i=Zo(sc);return(0,Tl.assertNonNullable)(i,"MicroStores context is empty!"),i},It=(i,e)=>Ts(i,i.getValue(),e),Ts=(i,e,t)=>Bn(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),uc=(i,e,t)=>{var b,S,y,P;let n=i.info,{width:o,height:r}=tt(t.ui.playerSize),l=(S=(b=n.throughputEstimation$.getValue())==null?void 0:b.toFixed(0))!=null?S:0,a=(P=(y=n.rttEstimation$.getValue())==null?void 0:y.toFixed(0))!=null?P:0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${Vo} (core: ${oc.VERSION}, stat: ${lc.VERSION}, shared: ${Tl.VERSION})`,c=tt(t.state.errorLog$),m=c.length?`
7
+ `+c.map((v,g)=>{var U;let I=`${g}) Type: ${v.id}
8
+ `,N=`Message: ${v.message} (${v.thrown})
9
+ `,W=`Trace: ${(U=v.thrown)==null?void 0:U.stack}
10
+ `;return I+N+W}).join(`
11
+ `):void 0,h=t.state.isAudioDisabled?"disabled":tt(t.state.isAudioAvailable$)?void 0:"unavailable",w={Version:u,Browser:navigator.userAgent,Config:i.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(t.videoId),"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(", "),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(w).filter(([v,g])=>g!==void 0).map(([v,g])=>`${v}: ${g}`).join(`
12
+ `)},fc=(i,e,t)=>{let n=i.info,{width:o,height:r}=tt(t.ui.playerSize),l={version:Vo,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();c&&(l.buffer=Math.max(c.end-tt(t.state.positionExact$),0));let m=n.throughputEstimation$.getValue();m&&(l.speed=m);let h=n.videoBitrate$.getValue();h&&(l.bitrate=h);let w=n.currentVideoSegmentLength$.getValue();w&&(l.currentVideoSegmentLength=w);let b=n.currentAudioSegmentLength$.getValue();return b&&(l.currentAudioSegmentLength=b),l},cc=(i,e)=>er(i,e,"mp4");var bn=require("@vkontakte/videoplayer-shared"),j7=require("@vkontakte/videoplayer-core"),dc="vk_player_prefer_traffic_saving_enabled",mc="vk_player_preferred_volume",pc="vk_player_prefer_volume_mute",Is="vk_player_preferred_quality",_c="vk_player_preferred_rate",hc=i=>i>1?1:i<0?0:i,Es=i=>bn.safeStorage.set(mc,hc(i).toString(10)),tr=()=>{let i=bn.safeStorage.get(mc);return(0,bn.isNullable)(i)?void 0:hc(parseFloat(i))},gc=(i,e)=>bn.safeStorage.set(Is,JSON.stringify({videoId:i,value:e})),Ms=()=>bn.safeStorage.remove(Is),bc=i=>{let e=bn.safeStorage.get(Is);if((0,bn.isNullable)(e))return;let{videoId:t,value:n}=JSON.parse(e);if(i!==t){Ms();return}return n},vc=(i,e)=>{e?bn.safeStorage.set(i,"true"):bn.safeStorage.remove(i)},yc=i=>bn.safeStorage.get(i)==="true",ir=i=>vc(pc,i),wc=()=>yc(pc),kc=i=>vc(dc,i),Cc=()=>yc(dc),Sc=i=>bn.safeStorage.set(_c,JSON.stringify({rate:i})),Pc=()=>{let i=bn.safeStorage.get(_c);if((0,bn.isNullable)(i))return;let{rate:e}=JSON.parse(i);return e};var dp=require("@vkontakte/videoplayer-core"),fs=require("@vkontakte/videoplayer-shared");function Y2(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,b,S,y,P,v=i[2].default,g=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 W=0;W<I.length;W+=1)N=oe(N,I[W]);return{c(){e=V("svg"),g&&g.c(),t=V("g"),n=V("path"),o=V("path"),r=V("path"),l=V("path"),a=V("path"),s=V("defs"),u=V("filter"),c=V("feFlood"),m=V("feColorMatrix"),h=V("feOffset"),w=V("feGaussianBlur"),b=V("feColorMatrix"),S=V("feBlend"),y=V("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(b,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(S,"in2","BackgroundImageFix"),f(S,"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"),ge(e,N)},m(W,U){C(W,e,U),g&&g.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,b),p(u,S),p(u,y),P=!0},p(W,[U]){g&&g.p&&(!P||U&2)&&Ve(g,v,W,W[1],P?Me(v,W[1],U,null):Ae(W[1]),null),ge(e,N=Re(I,[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},U&1&&W[0]]))},i(W){P||(d(g,W),P=!0)},o(W){_(g,W),P=!1},d(W){W&&k(e),g&&g.d(W)}}}function Z2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Vs=class extends K{constructor(e){super(),G(this,e,Z2,Y2,q,{})}},nr=Vs;var el=require("@vkontakte/videoplayer-shared");var X2={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",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",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_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"},Tc=X2;var J2={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",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",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_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"},Ic=J2;var io=new Map;io.set(el.InterfaceLanguage.EN,Ic);io.set(el.InterfaceLanguage.RU,Tc);var Ec=new Map,As=({language:i,pack:e,fallback:t})=>{if(io.has(i)){let n=io.get(i);io.set(i,{...n,...e})}else io.set(i,e);Ec.set(i,t)},Ls=i=>io.has(i),Bs=(i,e,t,n)=>{var l;let o=io.get(i),r=o==null?void 0:o[e];if((0,el.isNullable)(r)){let a=(l=Ec.get(i))!=null?l:n,s=a?io.get(a):void 0;r=s==null?void 0:s[e]}return(0,el.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},Q=(i,e)=>{let{interfaceLanguage$:t}=it(),n=tt(t),o=zt();return Bs(n,i,e,o.defaultLanguage)};var d9=require("@vkontakte/videoplayer-core");var tl;(function(i){i.fatal="fatal",i.error="error",i.warning="warning",i.log="log",i.info="info",i.debug="debug",i.critical="critical"})(tl||(tl={}));var x2=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,$2=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,e_=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,or="?",t_="X-Sentry-Auth",i_=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function n_(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=x2.exec(t[r]))o={filename:n[2]&&n[2].indexOf("address at ")===0?n[2].substr(11):n[2],function:n[1]||or,lineno:n[3]?+n[3]:null,colno:n[4]?+n[4]:null};else if(n=e_.exec(t[r]))o={filename:n[2],function:n[1]||or,lineno:+n[3],colno:n[4]?+n[4]:null};else if(n=$2.exec(t[r]))r===0&&!n[5]&&i.columnNumber!==void 0&&(e[0].column=i.columnNumber+1),o={filename:n[3],function:n[1]||or,lineno:n[4]?+n[4]:null,colno:n[5]?+n[5]:null};else continue;!o.function&&o.lineno&&(o.function=or),e.push(o)}return e.length?{value:Mc(i),type:i.name,stacktrace:{frames:e.reverse()}}:null}function Mc(i){return(i&&i.message||"No error message").split(`
14
+ `).filter(t=>!!t)[0]}function o_(i){try{let e=n_(i);if(e)return e}catch(e){}return{value:Mc(i),type:i&&i.name,stacktrace:{frames:[]}}}function l_(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,i=>{let e=Math.random()*16|0;return(i==="x"?e:e&3|8).toString(16)})}var lr=class{constructor(e){if(e&&e.dsn){let t=i_.exec(e.dsn),n=t?t.slice(1):[],o=n[5].split("/"),r=o.slice(0,-1).join("/");this.apiUrl=n[0]+"://"+n[3]+(n[4]?":"+n[4]:"")+(r?"/"+r:"")+"/api/"+o.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+n[1]+(n[2]?",sentry_secret="+n[2]:"")}this.environment=e&&e.environment}prepare(e){return{...this.getRequestBlank(),exception:{values:[o_(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(t_,this.authHeader||""),t.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:l_(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function Vc(i,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(i):typeof e=="string"?i.indexOf(e)!==-1:!1}function r_(){return window}var rr=class i extends lr{constructor(e,t=r_()){super(e),this.options=e,this.window=t,this.destroyed=!1,this._state={};let{plugins:n=[],beforeSend:o=u=>u,beforeBreadcrumb:r=u=>u,blacklistUrls:l=[],ignoreErrors:a=[],release:s=void 0}=this.options||{};this.plugins=n.map(u=>new u(this)),this.beforeSend=o,this.beforeBreadcrumb=r,this.blacklistUrls=l,this.ignoreErrors=a,this.release=s}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",{...e}),this}setTag(e,t){return this.extendState({tags:{[e]:t}}),this}setExtra(e,t){return this.extendState({extra:{[e]:t}}),this}setExtras(e){return this.setKeyState("extra",{...e}),this}setUser(e){return this.setKeyState("user",{...e}),this}clone(){let e=new i({...this.options,plugins:[]});return e.extendState(this.state),e}withScope(e){let t=this.clone();e(t),t.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[{timestamp:Date.now()/1e3,...this.beforeBreadcrumb(e)}]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,t){this.send({...this.getRequestBlank(),message:e,level:t})}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(t=>this.ignoreErrors.some(n=>Vc(t,n))):!1}getRequestBlank(){return{request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}},...super.getRequestBlank(),sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"},...this.state}}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend({release:this.release,...e})),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:t="",value:n=""}=e.exception.values&&e.exception.values[0]||{};return[`${n}`,`${t}: ${n}`]}catch(t){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let t=this.getEventFilterUrl(e);return t?this.blacklistUrls.some(n=>Vc(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{...t,[n]:r||a?[...r||[],...a||[]]:{...typeof o!="string"?o:{},...typeof l!="string"?l:{}}}},this._state)}setKeyState(e,t){this._state[e]=t}};var Ao=require("@vkontakte/videoplayer-shared");var sr=null,Lo=class{constructor(e,t,n={}){!sr&&e.dsn&&(this.sentryClient=new rr({dsn:e.dsn,environment:t.env}),this.version=t.version,this.sentrySubscription=new Ao.Subscription,this.options=e,this.context=n,sr=this)}destroy(){var e,t;(e=this.sentryClient)==null||e.destroy(),(t=this.sentrySubscription)==null||t.unsubscribe(),sr=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,Ao.isNonNullable)(w)&&m.includes(w)||(0,Ao.isNonNullable)(h)&&c.includes(h))return;if(Math.random()<=a||(0,Ao.isNonNullable)(w)&&u.includes(w)||(0,Ao.isNonNullable)(h)&&s.includes(h)){Object.keys(t).length&&o.setTags({version:this.version,...t}),(Object.keys(r).length||Object.keys(n).length)&&o.setExtras({...r,...n});try{h&&o.captureMessage(h,t.fatal?tl.fatal:tl.error),o.report(e)}catch(S){console.error(S)}}}static getInstance(){return sr}};var ar=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()},ur=i=>i.exitFullscreen?i.exitFullscreen():i.msExitFullscreen?i.msExitFullscreen():i.webkitExitFullscreen?i.webkitExitFullscreen():i.mozCancelFullScreen?i.mozCancelFullScreen():Promise.reject(),Ac=i=>{let e=i;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},co=()=>{let i=document;return!!(i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement||i.msFullscreenElement)},fr=i=>{document.addEventListener("fullscreenchange",i),document.addEventListener("webkitfullscreenchange",i),document.addEventListener("mozfullscreenchange",i),document.addEventListener("MSFullscreenChange",i)},cr=i=>{document.removeEventListener("fullscreenchange",i),document.removeEventListener("webkitfullscreenchange",i),document.removeEventListener("mozfullscreenchange",i),document.removeEventListener("MSFullscreenChange",i)},Lc=i=>{let e=window.screen;return(async o=>e.orientation?e.orientation.lock(o):e.mozLockOrientation?e.mozLockOrientation(o):e.msLockOrientation?e.msLockOrientation(o):Promise.reject())(((o={width:0,height:0})=>o.width<=o.height?"portrait":"landscape")(i))};var Rs=require("@vkontakte/videoplayer-shared"),Bc=()=>({title:Q("hotkey_map_modal_title"),closeBtnText:Q("hotkey_map_modal_close_btn_text"),groups:[{title:Q("hotkey_map_group_title_common"),items:[{description:Q("hotkey_map_item_mute_description"),value:Q("hotkey_map_item_mute_value")},{description:Q("hotkey_map_item_volume_up_description"),value:Q("hotkey_map_item_volume_up_value")},{description:Q("hotkey_map_item_volume_down_description"),value:Q("hotkey_map_item_volume_down_value")},{description:Q("hotkey_map_item_pip_description"),value:Q("hotkey_map_item_pip_value")},{description:Q("hotkey_map_item_full_screen_description"),value:Q("hotkey_map_item_full_screen_value")},{description:Q("hotkey_map_item_show_context_menu_description"),value:Q("hotkey_map_item_show_context_menu_value")},{description:Q("hotkey_map_item_show_hotkey_map_description"),value:Q("hotkey_map_item_show_hotkey_map_value")}]},{title:Q("hotkey_map_group_title_playback"),items:[{description:Q("hotkey_map_item_play_toggle_description"),value:Q("hotkey_map_item_play_toggle_value")},{description:Q("hotkey_map_item_seek_backward_description"),value:Q("hotkey_map_item_seek_backward_value")},{description:Q("hotkey_map_item_seek_forward_description"),value:Q("hotkey_map_item_seek_forward_value")},{description:Q("hotkey_map_item_fast_seek_backward_description"),value:Q("hotkey_map_item_fast_seek_backward_value")},{description:Q("hotkey_map_item_fast_seek_forward_description"),value:Q("hotkey_map_item_fast_seek_forward_value")},{description:Q("hotkey_map_item_rate_down_description"),value:Q("hotkey_map_item_rate_down_value")},{description:Q("hotkey_map_item_rate_up_description"),value:Q("hotkey_map_item_rate_up_value")},{description:Q("hotkey_map_item_prev_frame_description"),value:Q("hotkey_map_item_prev_frame_value")},{description:Q("hotkey_map_item_next_frame_description"),value:Q("hotkey_map_item_next_frame_value")},{description:Q("hotkey_map_item_jump_seek_description"),value:Q("hotkey_map_item_jump_seek_value")}]},{title:Q("hotkey_map_group_title_subtitles"),items:[{description:Q("hotkey_map_item_subtitles_toggle_description"),value:Q("hotkey_map_item_subtitles_toggle_value")}]},{title:Q("hotkey_map_group_title_episodes"),items:[{description:Q("hotkey_map_item_prev_episode_description"),value:(0,Rs.isMacLike)()?Q("hotkey_map_item_prev_episode_mac_value"):Q("hotkey_map_item_prev_episode_pc_value")},{description:Q("hotkey_map_item_next_episode_description"),value:(0,Rs.isMacLike)()?Q("hotkey_map_item_next_episode_mac_value"):Q("hotkey_map_item_next_episode_pc_value")}]}]});var mo=require("@vkontakte/videoplayer-shared");var Bo=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,mo.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new mo.ValueSubject(this.isActive()),type:0}}isSupported(){let e=(0,mo.getCurrentBrowser)().browser===mo.CurrentClientBrowser.Yandex;return document.pictureInPictureEnabled&&!e}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}setContext(e){this.svelteContext=e}async revealPictureInPicture(){this.isRequested&&(this.unregistryEventHandlers(),await this.request(),this.registryEventHandlers())}async request(){var e;if(!(!this.isSupported()||this.isActive()))try{await((e=this.videoElement)==null?void 0:e.requestPictureInPicture())}catch(t){this.isRequested=!1}}async remove(){!this.isSupported()||!this.isActive()||await 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={...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)}async dispose(){this.unregistryEventHandlers(),await 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 Ro(i){return i instanceof Bo}function s_(i){let e=it();return Rt(()=>{e.getAdmanWrapper().startPostroll()}),[]}var Os=class extends K{constructor(e){super(),G(this,e,s_,null,q,{})}},Rc=Os;var Dc=require("@vkontakte/videoplayer-shared");function a_(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 u_(i){let e=Q("skip_ads_after",{time:Math.ceil(i[1]-i[0]).toFixed(0)})+"",t;return{c(){t=De(e)},m(n,o){C(n,t,o)},p(n,o){o&3&&e!==(e=Q("skip_ads_after",{time:Math.ceil(n[1]-n[0]).toFixed(0)})+"")&&Ye(t,e)},d(n){n&&k(t)}}}function f_(i){let e,t=Q("skip_ads_now")+"",n,o,r,l,a,s;return{c(){e=T("div"),n=De(t),o=F(),r=V("svg"),l=V("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){C(u,e,c),p(e,n),p(e,o),p(e,r),p(r,l),a||(s=me(e,"click",st(function(){Vi(i[2])&&i[2].apply(this,arguments)})),a=!0)},p(u,c){i=u},d(u){u&&k(e),a=!1,s()}}}function c_(i){let e;function t(r,l){return r[3]?f_:u_}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){C(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:de,o:de,d(r){r&&k(e),o.d()}}}function d_(i,e,t){let n,{position:o=0}=e,{secondsToWatchBeforeSkip:r=0}=e,{skipAd:l=Dc.noop}=e,s=it().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 Fs=class extends K{constructor(e){super(),G(this,e,d_,c_,q,{position:0,secondsToWatchBeforeSkip:1,skipAd:2},a_)}},Nc=Fs;function m_(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 p_(i){let e;return{c(){e=T("button"),e.textContent=`${Q("visit_advertiser")}`,f(e,"class","svelte-1wy3dql")},m(t,n){C(t,e,n)},p:de,i:de,o:de,d(t){t&&k(e)}}}var Hs=class extends K{constructor(e){super(),G(this,e,null,p_,q,{},m_)}},Oc=Hs;function __(i){Se(i,"svelte-354ajf",`.container.svelte-354ajf{width:100%;height:100%}.top-gradient-mobile.svelte-354ajf{position:absolute;width:100%;height:80px;top:0;left:0;pointer-events:none;background:linear-gradient(
15
15
  360deg,
16
16
  rgba(0, 0, 0, 0) 0%,
17
17
  rgba(0, 0, 0, 0.05) 12%,
@@ -21,15 +21,15 @@
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 Hc(i){let e;return{c(){e=P("div"),f(e,"class","top-gradient-mobile svelte-354ajf")},m(t,n){C(t,e,n)},d(t){t&&k(e)}}}function zc(i){let e,t;return e=new Oc({props:{position:i[5],secondsToWatchBeforeSkip:i[6],skipAd:i[8].actions.internal.skipAd}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&32&&(r.position=n[5]),o&64&&(r.secondsToWatchBeforeSkip=n[6]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function qc(i){let e,t;return e=new Dc({}),{c(){N(e.$$.fragment)},m(n,o){R(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 Uc(i){let e,t;return e=new Fc({}),{c(){N(e.$$.fragment)},m(n,o){R(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 S_(i){let e,t,n,o,r,l,a,s=i[0]&&Hc(i),u=i[3]&&zc(i),c=i[7]&&qc(i),m=i[4]&&Uc(i);return{c(){e=P("div"),s&&s.c(),t=z(),n=P("video"),o=z(),u&&u.c(),r=z(),c&&c.c(),l=z(),m&&m.c(),yi(n,"width","100%"),yi(n,"height","100%"),n.playsInline=!0,f(e,"class","container svelte-354ajf")},m(h,S){C(h,e,S),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,[S]){h[0]?s||(s=Hc(h),s.c(),s.m(e,t)):s&&(s.d(1),s=null),h[3]?u?(u.p(h,S),S&8&&d(u,1)):(u=zc(h),u.c(),d(u,1),u.m(e,r)):u&&(ue(),_(u,1,1,()=>{u=null}),fe()),h[7]?c?S&128&&d(c,1):(c=qc(h),c.c(),d(c,1),c.m(e,l)):c&&(ue(),_(c,1,1,()=>{c=null}),fe()),h[4]?m?S&16&&d(m,1):(m=Uc(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&&k(e),s&&s.d(),i[19](null),u&&u.d(),c&&c.d(),m&&m.d(),i[20](null)}}}function P_(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=it(),S=h.state.isEnded$;q(i,S,I=>t(7,a=I));let b=h.ui.isMobile;q(i,b,I=>t(0,o=I));let w,y,T=!1,v=h.ads.playbackState;q(i,v,I=>t(18,n=I));let g=h.ads.canSkip,E=h.ads.position;q(i,E,I=>t(5,r=I));let B=h.ads.secondsToWatchBeforeSkip;q(i,B,I=>t(6,l=I));let L,F;Rt(()=>{let I=new AbortController,le=()=>{I.abort()},$=h.getAdmanWrapper();if(!s){$.onAdmanLoadingError();return}let{width:j,height:x}=tt(h.ui.playerSize),O=tt(h.ui.isFullscreen),Q=tt(h.ui.isAutoplay),A={width:j,height:x,isFullscreen:O,isAutoplay:Q,adsContainer:w,adsVideoElement:y,slotId:s,params:u,previewParam:c,duration:m};return window.AdmanHTML?($.initAdman(A),T=!0):$.loadAdman(I.signal).then(()=>{$.initAdman(A),T=!0}).catch(()=>{$.onAdmanLoadingError()}),()=>{!T&&le()}});function ae(I){pe[I?"unshift":"push"](()=>{y=I,t(2,y)})}function oe(I){pe[I?"unshift":"push"](()=>{w=I,t(1,w)})}return i.$$set=I=>{"adsSlotId"in I&&t(14,s=I.adsSlotId),"adsParams"in I&&t(15,u=I.adsParams),"adsPreviewParam"in I&&t(16,c=I.adsPreviewParam),"duration"in I&&t(17,m=I.duration)},i.$$.update=()=>{if(i.$$.dirty&262144)e:t(3,L=g&&n!=="inactive");if(i.$$.dirty&262145)e:t(4,F=o&&n!=="inactive")},[o,w,y,L,F,r,l,a,h,S,b,v,E,B,s,u,c,m,n,ae,oe]}var Gs=class extends K{constructor(e){super(),W(this,e,P_,S_,U,{adsSlotId:14,adsParams:15,adsPreviewParam:16,duration:17},C_)}},gr=Gs;var Nn=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 T_(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=se(s,a[u]);return{c(){e=V("svg"),l&&l.c(),t=V("path"),n=V("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"),ge(e,s)},m(u,c){C(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)&&Ve(l,r,u,u[1],o?Me(r,u[1],c,null):Ae(u[1]),null),ge(e,s=Be(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{"aria-hidden":"true"},{"data-testid":"live-icon"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&k(e),l&&l.d(u)}}}function I_(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var js=class extends K{constructor(e){super(),W(this,e,I_,T_,U,{})}},Kc=js;function E_(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=se(s,a[u]);return{c(){e=V("svg"),l&&l.c(),t=V("rect"),n=V("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"),ge(e,s)},m(u,c){C(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)&&Ve(l,r,u,u[1],o?Me(r,u[1],c,null):Ae(u[1]),null),ge(e,s=Be(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"live-active-icon"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&k(e),l&&l.d(u)}}}function M_(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Qs=class extends K{constructor(e){super(),W(this,e,M_,E_,U,{})}},Wc=Qs;function V_(i){let e,t;return e=new Kc({}),{c(){N(e.$$.fragment)},m(n,o){R(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 A_(i){let e,t;return e=new Wc({}),{c(){N(e.$$.fragment)},m(n,o){R(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 L_(i){let e,t,n,o,r=[A_,V_],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=lt()},m(s,u){l[e].m(s,u),C(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&&k(n),l[e].d(s)}}}function B_(i,e,t){let{isActive:n=!1}=e;return i.$$set=o=>{"isActive"in o&&t(0,n=o.isActive)},[n]}var Ys=class extends K{constructor(e){super(),W(this,e,B_,L_,U,{isActive:0})}},br=Ys;function R_(i){Pe(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 D_(i){let e=Nn(i[4]-i[3])+"",t;return{c(){t=Re(e)},m(n,o){C(n,t,o)},p(n,o){o&24&&e!==(e=Nn(n[4]-n[3])+"")&&je(t,e)},i:me,o:me,d(n){n&&k(t)}}}function N_(i){let e,t,n;return t=new br({props:{isActive:!0}}),{c(){e=P("div"),N(t.$$.fragment),f(e,"class","thumb-timer-live-icon svelte-7pnl2h")},m(o,r){C(o,e,r),R(t,e,null),n=!0},p:me,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),D(t)}}}function O_(i){let e,t,n,o,r,l,a,s=[N_,D_],u=[];function c(m,h){return m[1]?0:1}return r=c(i,-1),l=u[r]=s[r](i),{c(){e=P("div"),t=P("div"),t.innerHTML='<div class="col svelte-7pnl2h"></div> <div class="col svelte-7pnl2h"></div> <div class="col svelte-7pnl2h"></div>',n=z(),o=P("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){C(m,e,h),p(e,t),p(e,n),p(e,o),u[r].m(o,null),a=!0},p(m,[h]){let S=r;r=c(m,h),r===S?u[r].p(m,h):(ue(),_(u[S],1,1,()=>{u[S]=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&&k(e),u[r].d()}}}function F_(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 Zs=class extends K{constructor(e){super(),W(this,e,F_,O_,U,{isHidden:0,isLive:1,isPlaying:2,position:3,duration:4},R_)}},vr=Zs;var Ol=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 Xs=require("@vkontakte/videoplayer-core");var jc=require("@vkontakte/videoplayer-shared"),H_=(0,jc.isAndroid)(),Uo=i=>{i.stopPropagation(),i.preventDefault()},z_=i=>{var t;let e=i.previousElementSibling;e||(e=(t=i.parentNode)==null?void 0:t.lastElementChild),e==null||e.focus()},q_=i=>{var t;let e=i.nextElementSibling;e||(e=(t=i.parentNode)==null?void 0:t.firstElementChild),e==null||e.focus()},U_=i=>{let e=i.code;return e==="Tab"&&!i.shiftKey||e==="ArrowDown"},K_=i=>{let e=i.code;return e==="Tab"||e==="ArrowUp"},Qc=i=>i.code==="Escape",W_=i=>i.code==="ArrowLeft",Yc=(i,e=!0)=>{let t=i.code;return["Enter","Space"].includes(t)||!e&&t==="ArrowRight"},Zc=i=>{if(U_(i)){Uo(i),q_(i.target);return}K_(i)&&(Uo(i),z_(i.target))},dl=i=>(i==null?void 0:i.detail)===0||H_&&(i==null?void 0:i.pointerType)==="",ml=async(i,e,t)=>{await Qn(),i&&!i.classList.contains("opened")&&!e&&tt(t)&&(await Qn(),t.set(!1),i.focus())},Xc=async(i,e,t)=>{await Qn(),i&&!e&&tt(t)&&(t.set(!1),i.focus())},Ko=async(i,e,t)=>{await Qn(),!!i&&e&&t&&setTimeout(()=>{i.firstChild.focus()},100)},pl=async(i,e,t)=>{!!i&&t&&(e.set(!1),setTimeout(()=>{i.focus()},100))},yr=(i,e)=>{Zc(i),Qc(i)&&(Uo(i),e())},_l=async(i,e,t)=>{if(Yc(i,!1)){Uo(i),e(),await Qn();let n=t();n==null||n.focus()}},hl=async(i,e,t,n)=>{if(Zc(i),W_(i)){Uo(i),e(),t.set(!0);return}Qc(i)&&(Uo(i),n())},Ui=(i,e)=>{Yc(i)&&(Uo(i),e())},Jc=i=>{let e=i.getBoundingClientRect(),t=-14,n=e.left+e.width,o=e.top+t;return{right:n,bottom:o}},xc=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 Fl=require("@vkontakte/videoplayer-shared");function G_(i){Pe(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 $c(i){var le;let e,t,n,o,r,l,a,s,u,c=(i[10].features.saveDebugInfoToFile?G("menu_save_debug"):G("menu_copy_debug"))+"",m,h,S,b,w=G("menu_debug_overlay")+"",y,T,v,g,E=i[10].features.copyVideoLink&&((le=i[9].callbacks)==null?void 0:le.onCopyVideoLink)&&j_(i),B=i[12]&&i[6]!==Xs.ChromecastState.CONNECTED&&!i[17]&&t1(i);function L($,j){return $[4]?Y_:Q_}let F=L(i,[-1,-1]),ae=F(i),oe=i[10].features.videoRotate&&!i[17]&&Z_(i),I=i[10].showSupport&&!i[7]&&i1(i);return{c(){e=P("ul"),E&&E.c(),t=z(),B&&B.c(),n=z(),o=P("li"),ae.c(),l=z(),oe&&oe.c(),a=z(),I&&I.c(),s=z(),u=P("li"),m=Re(c),S=z(),b=P("li"),y=Re(w),f(o,"tabindex","0"),f(o,"role","menuitem"),f(o,"aria-label",r=G("aria_label_menu_loop")),f(o,"class","svelte-1vzqlps"),f(u,"tabindex","0"),f(u,"role","menuitem"),f(u,"aria-label",h=i[10].features.saveDebugInfoToFile?G("menu_save_debug"):G("menu_copy_debug")),f(u,"class","svelte-1vzqlps"),f(b,"tabindex","0"),f(b,"role","menuitem"),f(b,"aria-label",T=i[8]?G("aria_label_menu_debug_overlay_disable"):G("aria_label_menu_debug_overlay_enable")),f(b,"class","svelte-1vzqlps"),f(e,"role","menu"),yi(e,"top",i[3]+"px"),yi(e,"left",i[2]+"px"),f(e,"class","svelte-1vzqlps")},m($,j){C($,e,j),E&&E.m(e,null),p(e,t),B&&B.m(e,null),p(e,n),p(e,o),ae.m(o,null),p(e,l),oe&&oe.m(e,null),p(e,a),I&&I.m(e,null),p(e,s),p(e,u),p(u,m),p(e,S),p(e,b),p(b,y),i[42](e),v||(g=[de(o,"click",rt(i[24])),de(o,"keydown",i[30]),de(u,"click",rt(i[21])),de(u,"keydown",i[32]),de(b,"click",rt(i[22])),de(b,"keydown",i[33]),de(e,"contextmenu",Bt(i[39])),de(e,"keydown",i[26])],v=!0)},p($,j){var x;$[10].features.copyVideoLink&&((x=$[9].callbacks)!=null&&x.onCopyVideoLink)&&E.p($,j),$[12]&&$[6]!==Xs.ChromecastState.CONNECTED&&!$[17]?B?B.p($,j):(B=t1($),B.c(),B.m(e,n)):B&&(B.d(1),B=null),F===(F=L($,j))&&ae?ae.p($,j):(ae.d(1),ae=F($),ae&&(ae.c(),ae.m(o,null))),$[10].features.videoRotate&&!$[17]&&oe.p($,j),$[10].showSupport&&!$[7]?I?I.p($,j):(I=i1($),I.c(),I.m(e,s)):I&&(I.d(1),I=null),j[0]&256&&T!==(T=$[8]?G("aria_label_menu_debug_overlay_disable"):G("aria_label_menu_debug_overlay_enable"))&&f(b,"aria-label",T),j[0]&8&&yi(e,"top",$[3]+"px"),j[0]&4&&yi(e,"left",$[2]+"px")},d($){$&&k(e),E&&E.d(),B&&B.d(),ae.d(),oe&&oe.d(),I&&I.d(),i[42](null),v=!1,xe(g)}}}function j_(i){let e,t=G("menu_copy_video_link")+"",n,o,r,l,a,s,u=!i[5]&&!i[17]&&e1(i);return{c(){e=P("li"),n=Re(t),r=z(),u&&u.c(),l=lt(),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){C(c,e,m),p(e,n),C(c,r,m),u&&u.m(c,m),C(c,l,m),a||(s=[de(e,"click",rt(i[40])),de(e,"keydown",i[27])],a=!0)},p(c,m){!c[5]&&!c[17]?u?u.p(c,m):(u=e1(c),u.c(),u.m(l.parentNode,l)):u&&(u.d(1),u=null)},d(c){c&&(k(e),k(r),k(l)),u&&u.d(c),a=!1,xe(s)}}}function e1(i){let e,t=G("menu_copy_video_link_with_timestamp")+"",n,o,r,l;return{c(){e=P("li"),n=Re(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){C(a,e,s),p(e,n),r||(l=[de(e,"click",rt(i[41])),de(e,"keydown",i[28])],r=!0)},p:me,d(a){a&&k(e),r=!1,xe(l)}}}function t1(i){let e,t=G("menu_pip")+"",n,o,r,l;return{c(){e=P("li"),n=Re(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){C(a,e,s),p(e,n),r||(l=[de(e,"click",rt(i[23])),de(e,"keydown",i[29])],r=!0)},p:me,d(a){a&&k(e),r=!1,xe(l)}}}function Q_(i){let e=G("menu_video_loop_on")+"",t;return{c(){t=Re(e)},m(n,o){C(n,t,o)},p:me,d(n){n&&k(t)}}}function Y_(i){let e=G("menu_video_loop_off")+"",t;return{c(){t=Re(e)},m(n,o){C(n,t,o)},p:me,d(n){n&&k(t)}}}function Z_(i){let e,t=G("menu_video_rotate")+"",n,o,r,l;return{c(){e=P("li"),n=Re(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){C(a,e,s),p(e,n),r||(l=[de(e,"click",rt(i[19])),de(e,"keydown",i[30])],r=!0)},p:me,d(a){a&&k(e),r=!1,xe(l)}}}function i1(i){let e,t=G("menu_report")+"",n,o,r,l;return{c(){e=P("li"),n=Re(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){C(a,e,s),p(e,n),r||(l=[de(e,"click",rt(i[20])),de(e,"keydown",i[31])],r=!0)},p:me,d(a){a&&k(e),r=!1,xe(l)}}}function X_(i){let e,t=i[1]&&$c(i);return{c(){t&&t.c(),e=lt()},m(n,o){t&&t.m(n,o),C(n,e,o)},p(n,o){n[1]?t?t.p(n,o):(t=$c(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},i:me,o:me,d(n){n&&k(e),t&&t.d(n)}}}function J_(i,e,t){var ke;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:S=void 0}=e,{menuElementRef:b=void 0}=e,{returnFocus:w}=e,y=0,T=0,v=it(),g=Ht(),E=v.ui.contextMenu.visible$,B=v.ui.debugPanelVisible;q(i,B,Z=>t(8,s=Z));let L=v.webApi.pictureInPictureApi,F=(ke=v.webApi.pictureInPictureApi)==null?void 0:ke.info.isActive$;q(i,F,Z=>t(7,a=Z));let ae=v.state.chromecastState$;q(i,ae,Z=>t(6,l=Z));let oe=v.state.isLive$;q(i,oe,Z=>t(5,r=Z));let I=v.state.positionExact$;q(i,I,Z=>t(43,n=Z));let le=v.state.isInteractive,$=v.state.looped$;q(i,$,Z=>t(4,o=Z));let j=()=>{E.set(!1)},x=(Z,Ce)=>{if(!b||!h||!S)return;let ce=b.getBoundingClientRect(),Ie=h.getBoundingClientRect();t(2,y=Z-Ie.left),t(3,T=Ce-Ie.top),y+ce.width>Ie.width&&t(2,y=Ie.width-ce.width),T+ce.height>Ie.height&&t(3,T=Ie.height-ce.height),t(2,y=Math.max(y,0)),t(3,T=Math.max(T,0))},O=()=>{j(),v.actions.internal.videoRotate()},Q=()=>{window.open(c,"_blank"),j(),v.actions.internal.pause()},A=()=>{let Z=v.actions.internal.getDebugTextData();if(g.features.saveDebugInfoToFile){let Ce=new Blob([...Z],{type:"plain/text"}),ce=window.URL.createObjectURL(Ce);lr(ce,"vk_player_debug_info","txt")}else Ol(v.actions.internal.getDebugTextData());j(),w==null||w()},Y=()=>{B.set(!0),j(),w==null||w()},Te=async()=>{try{L!=null&&L.isActive()?await(L==null?void 0:L.remove()):await(L==null?void 0:L.request())}finally{j(),w==null||w()}},Qe=()=>{v.actions.internal.setLooped(!o),j()},Ke=(Z=!1)=>{var Ce,ce;if((Ce=v.callbacks)!=null&&Ce.onCopyVideoLink){let Ie=(ce=v.callbacks)==null?void 0:ce.onCopyVideoLink(Z,n);Ie&&Ol(Ie)}j()},Xe=Z=>{yr(Z,j)},We=Z=>{Ui(Z,()=>Ke())},ye=Z=>{Ui(Z,()=>Ke(!0))},X=Z=>{Ui(Z,()=>Te())},ve=Z=>{Ui(Z,()=>O())},He=Z=>{Ui(Z,()=>Q())},Ze=Z=>{Ui(Z,()=>A())},$e=Z=>{Ui(Z,()=>Y())};function be(Z){Dn.call(this,i,Z)}let De=()=>Ke(),Ue=()=>Ke(!0);function nt(Z){pe[Z?"unshift":"push"](()=>{b=Z,t(0,b)})}return i.$$set=Z=>{"visible"in Z&&t(1,u=Z.visible),"supportLink"in Z&&t(34,c=Z.supportLink),"position"in Z&&t(35,m=Z.position),"playerContainerRef"in Z&&t(36,h=Z.playerContainerRef),"controlsContainerRef"in Z&&t(37,S=Z.controlsContainerRef),"menuElementRef"in Z&&t(0,b=Z.menuElementRef),"returnFocus"in Z&&t(38,w=Z.returnFocus)},i.$$.update=()=>{if(i.$$.dirty[0]&1|i.$$.dirty[1]&112){e:if(b&&h&&S){let{top:Z,left:Ce,bottom:ce,right:Ie}=m,Je=Ce!=null?Ce:0,ft=Z!=null?Z:0,pt=b.getBoundingClientRect();(0,Fl.isNullable)(Ce)&&!(0,Fl.isNullable)(Ie)&&(Je=Ie-pt.width),(0,Fl.isNullable)(Z)&&!(0,Fl.isNullable)(ce)&&(ft=ce-pt.height),Je=Math.max(Je,0),ft=Math.max(ft,0),x(Je,ft)}}},[b,u,y,T,o,r,l,a,s,v,g,B,L,F,ae,oe,I,le,$,O,Q,A,Y,Te,Qe,Ke,Xe,We,ye,X,ve,He,Ze,$e,c,m,h,S,w,be,De,Ue,nt]}var Js=class extends K{constructor(e){super(),W(this,e,J_,X_,U,{visible:1,supportLink:34,position:35,playerContainerRef:36,controlsContainerRef:37,menuElementRef:0,returnFocus:38},G_,[-1,-1])}},n1=Js;var wr=class{constructor(e){this.value=e,this.next=null}};var gl=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let t=new wr(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 x_(i){Pe(i,"svelte-1ssl9eb",".container.svelte-1ssl9eb{display:inline-block;width:120px;height:16px}canvas.svelte-1ssl9eb{transform:scale(1, -1);margin-top:2px}")}function $_(i){let e,t;return{c(){e=P("div"),t=P("canvas"),f(t,"class","svelte-1ssl9eb"),f(e,"class","container svelte-1ssl9eb")},m(n,o){C(n,e,o),p(e,t),i[3](t)},p:me,i:me,o:me,d(n){n&&k(e),i[3](null)}}}var xs=16,$s=120,o1=60;function eh(i,e,t,n,o){o===0&&(o=1),i.fillStyle="#fff",i.fillRect(e,t,n,o)}function th(i,e,t){let{values:n=[]}=e,o,r,l=$s/o1;Rt(()=>{t(0,o.width=$s,o),t(0,o.height=xs,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,$s,xs);let c=o1-1;for(let m=n.length-1;m>=0;m--){let h=c*l,S=u>0?xs*(n[m]/u):0;eh(r,h,0,l,S),s=S+" "+s,c--}}}},[o,n,r,a]}var ea=class extends K{constructor(e){super(),W(this,e,th,$_,U,{values:1},x_)}},kr=ea;var ta=require("@vkontakte/videoplayer-shared");function ih(i){Pe(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 l1(i){let e,t,n,o,r=i[0].id+"",l;return{c(){e=P("div"),t=P("div"),t.textContent="Video id",n=z(),o=P("span"),l=Re(r),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(a,s){C(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+"")&&je(l,r)},d(a){a&&k(e)}}}function r1(i){let e,t,n,o,r=i[0].provider+"",l;return{c(){e=P("div"),t=P("div"),t.textContent="Provider",n=z(),o=P("span"),l=Re(r),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(a,s){C(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+"")&&je(l,r)},d(a){a&&k(e)}}}function s1(i){let e,t,n,o,r=i[0].viewport+"",l;return{c(){e=P("div"),t=P("div"),t.textContent="Viewport",n=z(),o=P("span"),l=Re(r),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(a,s){C(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+"")&&je(l,r)},d(a){a&&k(e)}}}function a1(i){let e,t,n,o,r=i[0].videoSize+"",l;return{c(){e=P("div"),t=P("div"),t.textContent="Video size",n=z(),o=P("span"),l=Re(r),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(a,s){C(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+"")&&je(l,r)},d(a){a&&k(e)}}}function u1(i){let e,t,n,o,r=i[0].cdn+"",l;return{c(){e=P("div"),t=P("div"),t.textContent="CDN host",n=z(),o=P("span"),l=Re(r),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(a,s){C(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+"")&&je(l,r)},d(a){a&&k(e)}}}function f1(i){let e,t,n,o,r=i[0].volume+"",l,a;return{c(){e=P("div"),t=P("div"),t.textContent="Volume",n=z(),o=P("span"),l=Re(r),a=Re(" %"),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(s,u){C(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+"")&&je(l,r)},d(s){s&&k(e)}}}function c1(i){let e,t,n,o,r=i[0].buffer.toFixed(2)+"",l,a;return{c(){e=P("div"),t=P("div"),t.textContent="Buffer",n=z(),o=P("span"),l=Re(r),a=Re(" s"),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(s,u){C(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)+"")&&je(l,r)},d(s){s&&k(e)}}}function d1(i){let e,t,n,o,r=[{value:i[0].currentVideoSegmentLength,title:"Video"},{value:i[0].currentAudioSegmentLength,title:"Audio"}].filter(_1).map(h1).join(" / ")+"",l;return{c(){e=P("div"),t=P("div"),t.textContent="Segment",n=z(),o=P("span"),l=Re(r),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(a,s){C(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(_1).map(h1).join(" / ")+"")&&je(l,r)},d(a){a&&k(e)}}}function m1(i){let e,t,n,o,r,l,a=i[0].speed.toFixed(2)+"",s,u,c;return o=new kr({props:{values:i[5]}}),{c(){e=P("div"),t=P("div"),t.textContent="Network",n=z(),N(o.$$.fragment),r=z(),l=P("span"),s=Re(a),u=Re(" Kbps"),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(m,h){C(m,e,h),p(e,t),p(e,n),R(o,e,null),p(e,r),p(e,l),p(l,s),p(l,u),c=!0},p(m,h){let S={};h&32&&(S.values=m[5]),o.$set(S),(!c||h&1)&&a!==(a=m[0].speed.toFixed(2)+"")&&je(s,a)},i(m){c||(d(o.$$.fragment,m),c=!0)},o(m){_(o.$$.fragment,m),c=!1},d(m){m&&k(e),D(o)}}}function p1(i){let e,t,n,o,r,l,a=i[0].bitrate.toFixed(2)+"",s,u,c;return o=new kr({props:{values:i[6]}}),{c(){e=P("div"),t=P("div"),t.textContent="V bitrate",n=z(),N(o.$$.fragment),r=z(),l=P("span"),s=Re(a),u=Re(" Kbps"),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(m,h){C(m,e,h),p(e,t),p(e,n),R(o,e,null),p(e,r),p(e,l),p(l,s),p(l,u),c=!0},p(m,h){let S={};h&64&&(S.values=m[6]),o.$set(S),(!c||h&1)&&a!==(a=m[0].bitrate.toFixed(2)+"")&&je(s,a)},i(m){c||(d(o.$$.fragment,m),c=!0)},o(m){_(o.$$.fragment,m),c=!1},d(m){m&&k(e),D(o)}}}function nh(i){let e,t,n,o,r,l,a,s,u=i[0].version+"",c,m,h,S,b,w,y,T,v,g,E,B,L,F,ae,oe,I,le,$,j,x,O,Q,A,Y,Te,Qe,Ke,Xe,We,ye,X,ve=i[0].id&&l1(i),He=i[0].provider&&r1(i),Ze=i[0].viewport&&s1(i),$e=i[0].videoSize&&a1(i),be=i[0].cdn&&u1(i),De=i[0].volume&&f1(i),Ue=i[0].buffer&&c1(i),nt=(i[0].currentVideoSegmentLength||i[0].currentAudioSegmentLength)&&d1(i),ke=i[0].speed&&m1(i),Z=i[0].bitrate&&p1(i);return Y=new kr({props:{values:i[4]}}),{c(){e=P("div"),t=P("button"),t.textContent="[x]",n=z(),o=P("div"),r=P("div"),l=P("div"),l.textContent="Version",a=z(),s=P("span"),c=Re(u),m=z(),ve&&ve.c(),h=z(),He&&He.c(),S=z(),Ze&&Ze.c(),b=z(),$e&&$e.c(),w=z(),be&&be.c(),y=z(),De&&De.c(),T=z(),Ue&&Ue.c(),v=z(),nt&&nt.c(),g=z(),E=P("div"),B=P("div"),B.textContent="Dropped",L=z(),F=P("span"),ae=Re(i[2]),oe=Re(" / "),I=Re(i[1]),le=Re(" frames"),$=z(),ke&&ke.c(),j=z(),Z&&Z.c(),x=z(),O=P("div"),Q=P("div"),Q.textContent="FPS",A=z(),N(Y.$$.fragment),Te=z(),Qe=P("span"),Ke=Re(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(B,"class","svelte-1fypj5i"),f(E,"class","svelte-1fypj5i"),f(Q,"class","svelte-1fypj5i"),f(O,"class","svelte-1fypj5i"),f(o,"class","content svelte-1fypj5i"),f(e,"class","container svelte-1fypj5i"),f(e,"role","region"),f(e,"aria-label",Xe=G("aria_label_debug_panel")),H(e,"container-mobile",i[7])},m(Ce,ce){C(Ce,e,ce),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),ve&&ve.m(o,null),p(o,h),He&&He.m(o,null),p(o,S),Ze&&Ze.m(o,null),p(o,b),$e&&$e.m(o,null),p(o,w),be&&be.m(o,null),p(o,y),De&&De.m(o,null),p(o,T),Ue&&Ue.m(o,null),p(o,v),nt&&nt.m(o,null),p(o,g),p(o,E),p(E,B),p(E,L),p(E,F),p(F,ae),p(F,oe),p(F,I),p(F,le),p(o,$),ke&&ke.m(o,null),p(o,j),Z&&Z.m(o,null),p(o,x),p(o,O),p(O,Q),p(O,A),R(Y,O,null),p(O,Te),p(O,Qe),p(Qe,Ke),We=!0,ye||(X=de(t,"click",rt(i[9])),ye=!0)},p(Ce,[ce]){(!We||ce&1)&&u!==(u=Ce[0].version+"")&&je(c,u),Ce[0].id?ve?ve.p(Ce,ce):(ve=l1(Ce),ve.c(),ve.m(o,h)):ve&&(ve.d(1),ve=null),Ce[0].provider?He?He.p(Ce,ce):(He=r1(Ce),He.c(),He.m(o,S)):He&&(He.d(1),He=null),Ce[0].viewport?Ze?Ze.p(Ce,ce):(Ze=s1(Ce),Ze.c(),Ze.m(o,b)):Ze&&(Ze.d(1),Ze=null),Ce[0].videoSize?$e?$e.p(Ce,ce):($e=a1(Ce),$e.c(),$e.m(o,w)):$e&&($e.d(1),$e=null),Ce[0].cdn?be?be.p(Ce,ce):(be=u1(Ce),be.c(),be.m(o,y)):be&&(be.d(1),be=null),Ce[0].volume?De?De.p(Ce,ce):(De=f1(Ce),De.c(),De.m(o,T)):De&&(De.d(1),De=null),Ce[0].buffer?Ue?Ue.p(Ce,ce):(Ue=c1(Ce),Ue.c(),Ue.m(o,v)):Ue&&(Ue.d(1),Ue=null),Ce[0].currentVideoSegmentLength||Ce[0].currentAudioSegmentLength?nt?nt.p(Ce,ce):(nt=d1(Ce),nt.c(),nt.m(o,g)):nt&&(nt.d(1),nt=null),(!We||ce&4)&&je(ae,Ce[2]),(!We||ce&2)&&je(I,Ce[1]),Ce[0].speed?ke?(ke.p(Ce,ce),ce&1&&d(ke,1)):(ke=m1(Ce),ke.c(),d(ke,1),ke.m(o,j)):ke&&(ue(),_(ke,1,1,()=>{ke=null}),fe()),Ce[0].bitrate?Z?(Z.p(Ce,ce),ce&1&&d(Z,1)):(Z=p1(Ce),Z.c(),d(Z,1),Z.m(o,x)):Z&&(ue(),_(Z,1,1,()=>{Z=null}),fe());let Ie={};ce&16&&(Ie.values=Ce[4]),Y.$set(Ie),(!We||ce&8)&&je(Ke,Ce[3]),(!We||ce&128)&&H(e,"container-mobile",Ce[7])},i(Ce){We||(d(ke),d(Z),d(Y.$$.fragment,Ce),We=!0)},o(Ce){_(ke),_(Z),_(Y.$$.fragment,Ce),We=!1},d(Ce){Ce&&k(e),ve&&ve.d(),He&&He.d(),Ze&&Ze.d(),$e&&$e.d(),be&&be.d(),De&&De.d(),Ue&&Ue.d(),nt&&nt.d(),ke&&ke.d(),Z&&Z.d(),D(Y),ye=!1,X()}}}var _1=({value:i})=>i,h1=({value:i,title:e})=>`${e} ${((i!=null?i:0)/1e3).toFixed(2)} s`;function oh(i,e,t){let n,o=it(),r=o.ui.debugPanelVisible,l=o.ui.isMobile;q(i,l,g=>t(7,n=g));let a=()=>{ta.safeStorage.remove(Rl),r.set(!1)},s=o.actions.internal.getDebugPanelData(),u=o.actions.internal.getVideoElement(),c=0,m=0,h=0,S=new gl(60),b=new gl(60),w=new gl(60),y=[],T=[],v=[];return Rt(()=>{ta.safeStorage.set(Rl,"true"),o.actions.internal.startLogging(),u&&(t(2,m=u.getVideoPlaybackQuality().droppedVideoFrames),t(1,c=u.getVideoPlaybackQuality().totalVideoFrames));let g=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 B=u.getVideoPlaybackQuality().totalVideoFrames;t(3,h=B-c),t(1,c=B),S.push(h),s.speed&&b.push(s.speed),s.bitrate&&w.push(s.bitrate),t(4,y=S.getValuesFromBottom()),t(5,T=b.getValuesFromBottom()),t(6,v=w.getValuesFromBottom())}},1e3)),()=>{o.actions.internal.stopLogging(),clearInterval(g),E&&clearInterval(E)}}),[s,c,m,h,y,T,v,n,l,a]}var ia=class extends K{constructor(e){super(),W(this,e,oh,nh,U,{},ih)}},Cr=ia;function lh(i){Pe(i,"svelte-1ome55p",".close.svelte-1ome55p{cursor:pointer;opacity:0.8;transition:opacity 0.2s;position:relative;width:16px;height:16px}.close.svelte-1ome55p:hover{opacity:1}.close.svelte-1ome55p:before,.close.svelte-1ome55p:after{position:absolute;left:8px;content:' ';height:16px;width:2px;background-color:var(--white)}.close.svelte-1ome55p:before{transform:rotate(45deg)}.close.svelte-1ome55p:after{transform:rotate(-45deg)}")}function rh(i){let e,t,n;return{c(){e=P("div"),f(e,"class","close svelte-1ome55p")},m(o,r){C(o,e,r),t||(n=de(e,"click",rt(i[0])),t=!0)},p:me,i:me,o:me,d(o){o&&k(e),t=!1,n()}}}function sh(i){function e(t){Dn.call(this,i,t)}return[e]}var na=class extends K{constructor(e){super(),W(this,e,sh,rh,U,{},lh)}},g1=na;var b1=require("@vkontakte/videoplayer-shared");function ah(i){Pe(i,"svelte-8jhsry",`.timer.svelte-8jhsry{border-radius:50%;transition:background .2s;background:rgba(31, 31, 31, .65);width:50px;height:50px;display:flex;align-items:center;justify-content:space-around}.timer.svelte-8jhsry:hover{background:rgba(31, 31, 31, .85)
25
- }.timer-canvas.svelte-8jhsry{width:50px;height:50px;position:absolute}.timer-play-icon.svelte-8jhsry{width:22px;height:26px}`)}function uh(i){let e,t,n,o,r,l,a;return{c(){e=P("div"),t=P("canvas"),n=z(),o=V("svg"),r=V("g"),l=V("g"),a=V("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){C(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:me,i:me,o:me,d(s){s&&k(e),i[2](null)}}}var fh=5e3;function ch(i,e,t){let{onTimerEnded:n=b1.noop}=e,o;Rt(()=>{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)/fh;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 oa=class extends K{constructor(e){super(),W(this,e,ch,uh,U,{onTimerEnded:1},ah)}},v1=oa;function dh(i){Pe(i,"svelte-kisfwc",".overlay.svelte-kisfwc{width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute}.next-video.svelte-kisfwc{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;width:362px;flex-direction:column}.top.svelte-kisfwc{display:flex;justify-content:space-between}.caption.svelte-kisfwc{font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8}.row.svelte-kisfwc{height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;flex-wrap:wrap;width:100%}.column.svelte-kisfwc{display:flex;flex-direction:column;flex-basis:50%}.thumb.svelte-kisfwc{width:100%;height:100%;background:no-repeat center;background-size:cover;display:flex;align-items:center;position:relative;justify-content:space-around}.thumb-overlay.svelte-kisfwc{width:100%;height:100%;background:var(--black);opacity:0.3;position:absolute}.title.svelte-kisfwc{padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden}")}function y1(i){let e,t;return e=new v1({props:{onTimerEnded:i[2]}}),{c(){N(e.$$.fragment)},m(n,o){R(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 mh(i){let e,t,n,o,r,l,a,s,u,c,m,h,S,b,w,y,T,v,g,E,B;a=new g1({}),a.$on("click",i[4]);let L=i[3]&&y1(i);return{c(){e=P("div"),t=z(),n=P("div"),o=P("div"),r=P("div"),r.textContent="\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",l=z(),N(a.$$.fragment),s=z(),u=P("div"),c=P("div"),m=P("div"),h=P("div"),S=z(),L&&L.c(),w=z(),y=P("div"),T=P("div"),v=Re(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",b=`background-image: url('${i[1]}')`),f(c,"class","column svelte-kisfwc"),f(T,"class","title svelte-kisfwc"),f(y,"class","column svelte-kisfwc"),f(u,"class","row svelte-kisfwc"),f(n,"class","next-video svelte-kisfwc")},m(F,ae){C(F,e,ae),C(F,t,ae),C(F,n,ae),p(n,o),p(o,r),p(o,l),R(a,o,null),p(n,s),p(n,u),p(u,c),p(c,m),p(m,h),p(m,S),L&&L.m(m,null),p(u,w),p(u,y),p(y,T),p(T,v),g=!0,E||(B=de(u,"click",function(){Ii(i[2])&&i[2].apply(this,arguments)}),E=!0)},p(F,[ae]){i=F,i[3]?L?(L.p(i,ae),ae&8&&d(L,1)):(L=y1(i),L.c(),d(L,1),L.m(m,null)):L&&(ue(),_(L,1,1,()=>{L=null}),fe()),(!g||ae&2&&b!==(b=`background-image: url('${i[1]}')`))&&f(m,"style",b),(!g||ae&1)&&je(v,i[0])},i(F){g||(d(a.$$.fragment,F),d(L),g=!0)},o(F){_(a.$$.fragment,F),_(L),g=!1},d(F){F&&(k(e),k(t),k(n)),D(a),L&&L.d(),E=!1,B()}}}function ph(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 la=class extends K{constructor(e){super(),W(this,e,ph,mh,U,{title:0,thumb:1,playNextVideo:2},dh)}},w1=la;var yo=require("@vkontakte/videoplayer-core"),k1=require("@vkontakte/videoplayer-shared"),Sn=require("@vkontakte/videoplayer-statistics");var ra=(i,e)=>Math.min(+(i+e).toFixed(2),1),sa=(i,e)=>Math.max(+(i-e).toFixed(2),0),Sr=(i,e,t)=>{let n=ra(e,t);e<1&&i.actions.internal.setVolume(n)},Pr=(i,e,t)=>{let n=sa(e,t);e>0&&i.actions.internal.setVolume(n)};var vo=({isAudioDisabled:i,audioDisabledHintCallback:e,isAudioAvailable:t,audioIsNotExistHintCallback:n})=>i?(e==null||e(),!1):t?!0:(n==null||n(),!1);function hh(i){Pe(i,"svelte-10kkmxz",".keyboard-controls.svelte-10kkmxz{position:absolute;left:0;right:0;top:0;bottom:0}")}function gh(i){let e,t,n,o,r,l=i[26].default,a=Ee(l,i,i[25],null);return{c(){e=P("div"),a&&a.c(),f(e,"class","keyboard-controls svelte-10kkmxz"),f(e,"tabindex","-1"),f(e,"role","region"),f(e,"aria-label",t=G("aria_label_video_player"))},m(s,u){C(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)&&Ve(a,l,s,s[25],n?Me(l,s[25],u,null):Ae(s[25]),null)},i(s){n||(d(a,s),n=!0)},o(s){_(a,s),n=!1},d(s){s&&k(e),a&&a.d(s),i[27](null),o=!1,xe(r)}}}function bh(i,e,t){var It,mt;let n,o,r,l,a,s,u,c,m,h,S,b,w,y,T,{$$slots:v={},$$scope:g}=e,{isAds:E}=e,{hideContextMenu:B}=e,{toggleFullscreen:L}=e,{showHotKeyHelpers:F}=e,{showKeyMap:ae}=e,{fakePlayButtonHandler:oe}=e,I=it(),le=Ht(),$=I.getLogger().createComponentLog("KeyboardControls component"),j=I.state.playbackState$;q(i,j,we=>t(31,o=we));let x=I.ads.playbackState;q(i,x,we=>t(30,n=we));let O=I.state.positionExact$;q(i,O,we=>t(41,b=we));let Q=I.state.duration$;q(i,Q,we=>t(40,S=we));let A=I.state.volume$;q(i,A,we=>t(44,T=we));let Y=I.ui.controls.disabledControls$;q(i,Y,we=>t(39,h=we));let Te=I.state.muted$;q(i,Te,we=>t(34,a=we));let Qe=I.state.currentSubtitle$;q(i,Qe,we=>t(33,l=we));let Ke=I.state.currentPlaybackRate$;q(i,Ke,we=>t(42,w=we));let Xe=I.state.availablePlaybackRates$;q(i,Xe,we=>t(43,y=we));let We=I.ui.contextMenu.openedByHotKey$,ye=I.ui.contextMenu.lastActiveElem$,X=I.ui.contextMenu.visible$,ve=I.ui.contextMenu.position$,He=I.state.isEnded$;q(i,He,we=>t(36,u=we));let Ze=I.ui.overlayContainer$;q(i,Ze,we=>t(32,r=we));let $e=(It=I.callbacks)==null?void 0:It.onAudioDoesNotExistHint,be=(mt=I.callbacks)==null?void 0:mt.onAudioDisabledHint,De=I.state.isAudioAvailable$;q(i,De,we=>t(35,s=we));let Ue=I.state.isAudioDisabled,nt=I.state.isInteractiveTime$;q(i,nt,we=>t(38,m=we));let{showInteractiveTimeIndicatorTooltip$:ke}=Un();q(i,ke,we=>t(37,c=we));let Z=0,Ce=!0,ce,Ie=()=>ce==null?void 0:ce.focus(),Je=we=>(we!==Ce&&(Ce=we,Z=0),Z+=1,(le.controls.seekStepKeyboard+le.controls.seekStepKeyboard*Z)/1e3),ft=we=>{var st;let yt=we.target,Et=(st=yt==null?void 0:yt.getAttribute("role"))==null?void 0:st.includes("menuitem"),Pt=yt.classList.contains("btn"),ze=we.code;if(Pt&&ze==="Space")return;let qt=nc.has(ze);if(Et&&qt)return;let _e=!ic.has(ze);if(we.ctrlKey&&_e||we.altKey&&_e||we.metaKey)return;let _t=Et&&ze==="Escape";oc.has(ze)||_t||B();let Mt=o===yo.PlaybackState.PLAYING||o===yo.PlaybackState.PAUSED,ht=E&&(n==="paused"||n==="playing"),bt=!ht&&!h.has("TIMELINE");if(Mt||ht)switch($({message:`key down, code: ${ze}`}),ze){case"KeyJ":case"ArrowLeft":{if(!bt)break;if(we.ctrlKey||we.altKey){let Le=I.actions.internal.getPrevEpisode();I.actions.internal.seekToPrevEpisode(Le),Le&&F({type:"EPISODE_PREV",text:Le.text}),we.preventDefault()}else{let Le=we.shiftKey?Je(!1):le.controls.seekStepKeyboard/1e3,dt=Math.max(b-Le,0);b>0&&(I.actions.internal.seekTime(dt,Sn.SeekAction.DOUBLE_TAP),F({type:"BACKWARD_SEEK",text:Le.toString()}),we.preventDefault())}break}case"KeyL":case"ArrowRight":{if(!bt)break;if(we.ctrlKey||we.altKey){let Le=I.actions.internal.getNextEpisode();I.actions.internal.seekToNextEpisode(Le),Le&&F({type:"EPISODE_NEXT",text:Le.text}),we.preventDefault()}else{let Le=we.shiftKey?Je(!0):le.controls.seekStepKeyboard/1e3,dt=Math.min(b+Le,S);Math.round(b)<Math.round(S)&&(I.actions.internal.seekTime(dt,Sn.SeekAction.DOUBLE_TAP),F({type:"FORWARD_SEEK",text:Le.toString()}),we.preventDefault())}break}case"ArrowUp":{if(vo({isAudioDisabled:Ue,audioDisabledHintCallback:be,isAudioAvailable:s,audioIsNotExistHintCallback:$e})){let Le=T,dt=le.controls.volumeStepKeyboard,ii=Le<=1;if(Sr(I,Le,dt),ii){let Ut=Math.round(ra(Le,dt)*100).toString();F({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Ut}})}}we.preventDefault();break}case"ArrowDown":{if(vo({isAudioDisabled:Ue,audioDisabledHintCallback:be,isAudioAvailable:s,audioIsNotExistHintCallback:$e})){let Le=T,dt=le.controls.volumeStepKeyboard,ii=Le>=0;if(Pr(I,Le,dt),ii){let Ut=Math.round(sa(Le,dt)*100).toString();F({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Ut}})}}we.preventDefault();break}case"Comma":{if(we.shiftKey){I.actions.internal.decrementPlaybackRate();let Le=y.find(dt=>dt.value===w);F({type:"RATE_DOWN",text:Le==null?void 0:Le.displayValue}),we.preventDefault()}else{if(ht||o!==yo.PlaybackState.PAUSED)break;let Le=Math.max(b-le.controls.seekStepFrame/1e3,0);b>0&&(F({type:"BACKWARD_SEEK"}),I.actions.internal.clearDelayedBufferingCheckTimeout(),I.actions.internal.seekTime(Le,Sn.SeekAction.DOUBLE_TAP),we.preventDefault())}break}case"Period":{if(we.shiftKey){I.actions.internal.incrementPlaybackRate();let Le=y.find(dt=>dt.value===w);F({type:"RATE_UP",text:Le==null?void 0:Le.displayValue}),we.preventDefault()}else{if(ht||o!==yo.PlaybackState.PAUSED)break;let Le=Math.min(b+le.controls.seekStepFrame/1e3,S);b<S&&(F({type:"FORWARD_SEEK"}),I.actions.internal.clearDelayedBufferingCheckTimeout(),I.actions.internal.seekTime(Le,Sn.SeekAction.DOUBLE_TAP),we.preventDefault())}break}case"KeyK":case"Space":if(!h.has("PLAY_BUTTON"))if(m&&c&&ke.set(!1),oe)oe();else{I.actions.internal.togglePlay();let Le="PLAY";o===yo.PlaybackState.PAUSED?Le="PAUSE":u&&(Le="REPLAY"),F({type:Le})}we.preventDefault();break;case"KeyM":{vo({isAudioDisabled:Ue,audioDisabledHintCallback:be,isAudioAvailable:s,audioIsNotExistHintCallback:$e})&&(F({type:a?"VOLUME":"MUTE"}),I.actions.internal.toggleMuted()),we.preventDefault();break}case"KeyF":L(),we.preventDefault();break;case"KeyC":I.actions.internal.toggleSubtitle(),l.value!=="off"?F({type:"SUBTITLES_ON",text:l==null?void 0:l.displayValue}):F({type:"SUBTITLES_OFF"}),we.preventDefault();break;case"KeyI":I.actions.internal.togglePictureInPicture(),we.preventDefault();break;case"Digit1":case"Numpad1":if(we.shiftKey){let Le=xc(r);ve.set(Le),ye.set(yt),We.set(!0),X.set(!0),we.preventDefault();break}F(),I.actions.internal.seekToPercent(.1,Sn.SeekAction.DOUBLE_TAP),we.preventDefault();break;case"Digit2":case"Numpad2":F(),I.actions.internal.seekToPercent(.2,Sn.SeekAction.DOUBLE_TAP),we.preventDefault();break;case"Digit3":case"Numpad3":F(),I.actions.internal.seekToPercent(.3,Sn.SeekAction.DOUBLE_TAP),we.preventDefault();break;case"Digit4":case"Numpad4":F(),I.actions.internal.seekToPercent(.4,Sn.SeekAction.DOUBLE_TAP),we.preventDefault();break;case"Digit5":case"Numpad5":F(),I.actions.internal.seekToPercent(.5,Sn.SeekAction.DOUBLE_TAP),we.preventDefault();break;case"Digit6":case"Numpad6":F(),I.actions.internal.seekToPercent(.6,Sn.SeekAction.DOUBLE_TAP),we.preventDefault();break;case"Digit7":case"Numpad7":F(),I.actions.internal.seekToPercent(.7,Sn.SeekAction.DOUBLE_TAP),we.preventDefault();break;case"Digit8":case"Numpad8":F(),I.actions.internal.seekToPercent(.8,Sn.SeekAction.DOUBLE_TAP),we.preventDefault();break;case"Digit9":case"Numpad9":F(),I.actions.internal.seekToPercent(.9,Sn.SeekAction.DOUBLE_TAP),we.preventDefault();break;case"Digit0":case"Numpad0":F(),I.actions.internal.seekToPercent(0,Sn.SeekAction.DOUBLE_TAP),we.preventDefault();break;case"Slash":{we.shiftKey&&le.features.hotKeyMapModal&&(ae(),we.preventDefault());break}case"ShiftLeft":case"ShiftRight":we.preventDefault();break;case"Tab":case"Escape":case"Enter":break;default:(0,k1.checkNever)(ze);break}},pt=we=>{let yt=we.code;if(we.ctrlKey||we.altKey||we.metaKey)return;let Et=o===yo.PlaybackState.PLAYING||o===yo.PlaybackState.PAUSED,Pt=E&&(n==="paused"||n==="playing");if(Et||Pt)switch(yt){case"ShiftLeft":case"ShiftRight":Z=0;break}};function ut(we){pe[we?"unshift":"push"](()=>{ce=we,t(0,ce)})}return i.$$set=we=>{"isAds"in we&&t(18,E=we.isAds),"hideContextMenu"in we&&t(19,B=we.hideContextMenu),"toggleFullscreen"in we&&t(20,L=we.toggleFullscreen),"showHotKeyHelpers"in we&&t(21,F=we.showHotKeyHelpers),"showKeyMap"in we&&t(22,ae=we.showKeyMap),"fakePlayButtonHandler"in we&&t(23,oe=we.fakePlayButtonHandler),"$$scope"in we&&t(25,g=we.$$scope)},[ce,j,x,O,Q,A,Y,Te,Qe,Ke,Xe,He,Ze,De,nt,ke,ft,pt,E,B,L,F,ae,oe,Ie,g,v,ut]}var aa=class extends K{constructor(e){super(),W(this,e,bh,gh,U,{isAds:18,hideContextMenu:19,toggleFullscreen:20,showHotKeyHelpers:21,showKeyMap:22,fakePlayButtonHandler:23,focus:24},hh,[-1,-1])}get focus(){return this.$$.ctx[24]}},C1=aa;function vh(i){Pe(i,"svelte-8nkw5s",".container.svelte-8nkw5s.svelte-8nkw5s{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none;display:flex}.dot.svelte-8nkw5s.svelte-8nkw5s:nth-child(1){animation-delay:calc(0 * 180ms)}.dot.svelte-8nkw5s.svelte-8nkw5s:nth-child(2){animation-delay:calc(1 * 180ms)}.dot.svelte-8nkw5s.svelte-8nkw5s:nth-child(3){animation-delay:calc(2 * 180ms)}@keyframes svelte-8nkw5s-dot_animation{0%{opacity:0.2}30%{opacity:1}100%{opacity:0.2}}.dot.svelte-8nkw5s.svelte-8nkw5s{border-radius:4px;width:8px;height:8px;background:var(--white);animation-duration:750ms;animation-name:svelte-8nkw5s-dot_animation;animation-iteration-count:infinite}.dot.svelte-8nkw5s+.dot.svelte-8nkw5s{margin-left:4px}")}function yh(i){let e;return{c(){e=P("div"),e.innerHTML='<div class="dot svelte-8nkw5s"></div> <div class="dot svelte-8nkw5s"></div> <div class="dot svelte-8nkw5s"></div>',f(e,"class","container svelte-8nkw5s")},m(t,n){C(t,e,n)},p:me,i:me,o:me,d(t){t&&k(e)}}}var ua=class extends K{constructor(e){super(),W(this,e,null,yh,U,{},vh)}},Tr=ua;function wh(i){let e,t,n,o,r,l,a,s,u,c,m,h,S,b,w=i[2].default,y=Ee(w,i,i[1],null),T=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"cross-icon"},{role:"img"},i[0]],v={};for(let g=0;g<T.length;g+=1)v=se(v,T[g]);return{c(){e=V("svg"),y&&y.c(),t=V("g"),n=V("path"),o=V("path"),r=V("defs"),l=V("filter"),a=V("feFlood"),s=V("feColorMatrix"),u=V("feOffset"),c=V("feGaussianBlur"),m=V("feColorMatrix"),h=V("feBlend"),S=V("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(S,"in","SourceGraphic"),f(S,"in2","effect1_dropShadow_2422_111980"),f(S,"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"),ge(e,v)},m(g,E){C(g,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,S),b=!0},p(g,[E]){y&&y.p&&(!b||E&2)&&Ve(y,w,g,g[1],b?Me(w,g[1],E,null):Ae(g[1]),null),ge(e,v=Be(T,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"cross-icon"},{role:"img"},E&1&&g[0]]))},i(g){b||(d(y,g),b=!0)},o(g){_(y,g),b=!1},d(g){g&&k(e),y&&y.d(g)}}}function kh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var fa=class extends K{constructor(e){super(),W(this,e,kh,wh,U,{})}},S1=fa;var eo=require("@vkontakte/videoplayer-shared");function Ch(i){Pe(i,"svelte-1anemql",".btn.svelte-1anemql{padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center}.w-max.svelte-1anemql{width:100%}.btn--live.svelte-1anemql{padding:10px 4px}.btn-m.svelte-1anemql{position:absolute;left:12px;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center}.btn-m--play.svelte-1anemql{width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;position:relative;padding:16px}.btn.svelte-1anemql:disabled{cursor:default;pointer-events:none}.btn.svelte-1anemql:not(.btn-full-opacity):disabled{opacity:0.4}.btn.svelte-1anemql:not(:disabled):hover{opacity:0.8}.pr-0.svelte-1anemql{padding-right:0}.pl-0.svelte-1anemql{padding-left:0}")}function Sh(i){let e,t,n,o,r,l,a,s,u,c,m,h,S=i[14].default,b=Ee(S,i,i[13],null);return{c(){var w,y,T,v,g,E;e=P("button"),b&&b.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=(T=i[6])!=null?T:null),f(e,"aria-keyshortcuts",a=(v=i[7])!=null?v:null),f(e,"aria-expanded",s=(g=i[8])!=null?g:null),f(e,"data-testid",u=(E=i[4])!=null?E:null),f(e,"tabindex",i[9])},m(w,y){C(w,e,y),b&&b.m(e,null),i[16](e),c=!0,m||(h=[de(e,"pointerdown",rt(Bt(i[15]))),de(e,"click",rt(Bt(function(){Ii(i[10]===eo.noop?null:i[10])&&(i[10]===eo.noop?null:i[10]).apply(this,arguments)}))),de(e,"focus",Bt(function(){Ii(i[11]===eo.noop?null:i[11])&&(i[11]===eo.noop?null:i[11]).apply(this,arguments)})),de(e,"blur",Bt(function(){Ii(i[12]===eo.noop?null:i[12])&&(i[12]===eo.noop?null:i[12]).apply(this,arguments)}))],m=!0)},p(w,[y]){var T,v,g,E,B,L;i=w,b&&b.p&&(!c||y&8192)&&Ve(b,S,i,i[13],c?Me(S,i[13],y,null):Ae(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=(T=i[3])!=null?T: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=(g=i[6])!=null?g: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=(B=i[8])!=null?B: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(w){c||(d(b,w),c=!0)},o(w){_(b,w),c=!1},d(w){w&&k(e),b&&b.d(w),i[16](null),m=!1,xe(h)}}}function Ph(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:S=void 0}=e,{tabIndex:b=0}=e,{click:w=eo.noop}=e,{focus:y=eo.noop}=e,{blur:T=eo.noop}=e;function v(E){Dn.call(this,i,E)}function g(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,S=E.ariaExpanded),"tabIndex"in E&&t(9,b=E.tabIndex),"click"in E&&t(10,w=E.click),"focus"in E&&t(11,y=E.focus),"blur"in E&&t(12,T=E.blur),"$$scope"in E&&t(13,o=E.$$scope)},[m,r,l,a,s,u,c,h,S,b,w,y,T,o,n,v,g]}var ca=class extends K{constructor(e){super(),W(this,e,Ph,Sh,U,{className:1,style:2,disabled:3,testId:4,ariaHidden:5,ariaLabel:6,ref:0,ariaKeyShortCut:7,ariaExpanded:8,tabIndex:9,click:10,focus:11,blur:12},Ch)}},gt=ca;function Th(i){Pe(i,"svelte-1witlsj",".modal-overlay.svelte-1witlsj{position:absolute;top:0;bottom:0;left:0;right:0;background:transparent;display:flex;align-items:center;justify-content:center}.modal-container.svelte-1witlsj{display:flex;flex-direction:column;width:calc(100% - 32px);max-width:600px;height:calc(100% - 24px);max-height:490px;background:var(--mobile-settings-bg);color:var(--white);border-radius:8px}.modal-header.svelte-1witlsj{box-sizing:border-box;display:flex;justify-content:space-between;align-items:start;height:40px;padding:8px 10px;border-bottom:1px solid var(--white-alpha-24)}.modal-title.svelte-1witlsj{margin:3px 0 0 6px;color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px}.modal-scroll.svelte-1witlsj{overflow-y:auto;overflow-x:hidden;margin:8px 4px 8px 0;height:100%}.modal-scroll.svelte-1witlsj::-webkit-scrollbar{width:8px}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-track{box-shadow:none;background-color:transparent;border-radius:4px;margin-right:2px}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb{min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb:hover{background-color:#777}.modal-main.svelte-1witlsj{margin:-8px -4px 0 0}")}function P1(i){let e,t,n,o,r,l=i[2]&&T1(i);return{c(){e=P("div"),t=P("h3"),n=Re(i[3]),o=z(),l&&l.c(),f(t,"class","modal-title svelte-1witlsj"),f(e,"class","modal-header svelte-1witlsj")},m(a,s){C(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)&&je(n,a[3]),a[2]?l?(l.p(a,s),s&4&&d(l,1)):(l=T1(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&&k(e),l&&l.d()}}}function T1(i){let e,t;return e=new gt({props:{click:i[0],testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:G("hotkey_map_modal_close_btn_text"),$$slots:{default:[Ih]},$$scope:{ctx:i}}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&1&&(r.click=n[0]),o&32&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Ih(i){let e,t;return e=new S1({}),{c(){N(e.$$.fragment)},m(n,o){R(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 Eh(i){let e,t,n,o,r,l,a=i[1]&&P1(i),s=i[4].default,u=Ee(s,i,i[5],null);return{c(){e=P("div"),t=P("div"),a&&a.c(),n=z(),o=P("div"),r=P("div"),u&&u.c(),f(r,"class","modal-main svelte-1witlsj"),f(o,"class","modal-scroll svelte-1witlsj"),f(t,"class","modal-container svelte-1witlsj"),f(e,"class","modal-overlay svelte-1witlsj")},m(c,m){C(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=P1(c),a.c(),d(a,1),a.m(t,n)):a&&(ue(),_(a,1,1,()=>{a=null}),fe()),u&&u.p&&(!l||m&32)&&Ve(u,s,c,c[5],l?Me(s,c[5],m,null):Ae(c[5]),null)},i(c){l||(d(a),d(u,c),l=!0)},o(c){_(a),_(u,c),l=!1},d(c){c&&k(e),a&&a.d(),u&&u.d(c)}}}function Mh(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 da=class extends K{constructor(e){super(),W(this,e,Mh,Eh,U,{onClose:0,showHeader:1,showCloseCross:2,title:3},Th)}},I1=da;var Vh=new Set(["BR"]),ma=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;Vh.has(l)||(o=r.parentElement)==null||o.removeChild(r)}return e.innerHTML};function Ah(i){Pe(i,"svelte-quklnq",".hot-key-map.svelte-quklnq{color:var(--black);box-sizing:border-box;overflow-x:hidden}.hot-key-map-group.svelte-quklnq{border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px}.hot-key-map-group.svelte-quklnq:last-child{border-bottom:none}.hot-key-map-group-title.svelte-quklnq{color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px}.hot-key-map-group-title.svelte-quklnq,.hot-key-map-item.svelte-quklnq{padding:12px 0;margin:0;width:100%}.hot-key-map-group-items.svelte-quklnq{box-sizing:border-box;list-style:none;padding:0;margin:0}.hot-key-map-item.svelte-quklnq{box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;--videoplayer-hotkey-item-value-width:156px;--videoplayer-hotkey-item-value-padding-left:24px}.hot-key-map-item-description.svelte-quklnq{color:var(--white-alpha-72);width:calc(100% - var(--videoplayer-hotkey-item-value-width) - var(--videoplayer-hotkey-item-value-padding-left));max-width:388px}.hot-key-map-item-value.svelte-quklnq{color:var(--white);width:var(--videoplayer-hotkey-item-value-width);padding-left:var(--videoplayer-hotkey-item-value-padding-left);letter-spacing:-0.14px}.hot-key-map-item-description.svelte-quklnq,.hot-key-map-item-value.svelte-quklnq{font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:400;line-height:16px}")}function E1(i,e,t){let n=i.slice();return n[5]=e[t].title,n[6]=e[t].items,n}function M1(i,e,t){let n=i.slice();return n[9]=e[t].description,n[10]=e[t].value,n}function V1(i){let e,t,n=ma(i[9])+"",o,r,l=i[10]+"",a,s;return{c(){e=P("li"),t=P("span"),o=z(),r=P("span"),a=Re(l),s=z(),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){C(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=ma(u[9])+"")&&(t.innerHTML=n),c&1&&l!==(l=u[10]+"")&&je(a,l)},d(u){u&&k(e)}}}function A1(i){let e,t,n=i[5]+"",o,r,l,a,s=St(i[6]),u=[];for(let c=0;c<s.length;c+=1)u[c]=V1(M1(i,s,c));return{c(){e=P("div"),t=P("h5"),o=Re(n),r=z(),l=P("ul");for(let c=0;c<u.length;c+=1)u[c].c();a=z(),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){C(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]+"")&&je(o,n),m&1){s=St(c[6]);let h;for(h=0;h<s.length;h+=1){let S=M1(c,s,h);u[h]?u[h].p(S,m):(u[h]=V1(S),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&&k(e),Ei(u,c)}}}function Lh(i){let e,t=St(i[0].groups),n=[];for(let o=0;o<t.length;o+=1)n[o]=A1(E1(i,t,o));return{c(){e=P("div");for(let o=0;o<n.length;o+=1)n[o].c();f(e,"class","hot-key-map svelte-quklnq")},m(o,r){C(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=St(o[0].groups);let l;for(l=0;l<t.length;l+=1){let a=E1(o,t,l);n[l]?n[l].p(a,r):(n[l]=A1(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&&k(e),Ei(n,o)}}}function Bh(i){let e,t;return e=new I1({props:{title:i[0].title,onClose:i[2],$$slots:{default:[Lh]},$$scope:{ctx:i}}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.title=n[0].title),o&8193&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Rh(i,e,t){let n,o=it(),{data:r,show:l}=o.ui.modals.hotKeyMap;return q(i,r,s=>t(0,n=s)),[n,r,()=>{l.set(!1)}]}var pa=class extends K{constructor(e){super(),W(this,e,Rh,Bh,U,{},Ah)}},L1=pa;var ls=require("@vkontakte/videoplayer-shared");var Qo=require("@vkontakte/videoplayer-core");var Td=require("@vkontakte/videoplayer-core");var Wo={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-PT":"Portugu\xEAs",el:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",pl:"Polski",fr:"Fran\xE7ais",ko:"\uD55C\uAD6D\uC5B4","zh-CN":"\u6C49\u8BED",lt:"Lietuvi\u0173",ja:"\u65E5\u672C\u8A9E",cs:"\u010Ce\u0161tina",et:"Eesti",tt:"\u0422\u0430\u0442\u0430\u0440\u0447\u0430",ba:"\u0411\u0430\u0448\u04A1\u043E\u0440\u0442\u0441\u0430",cv:"\u0427\u0103\u0432\u0430\u0448\u043B\u0430",sk:"Sloven\u010Dina",ro:"Rom\xE2n\u0103",no:"Norsk",lv:"Latvie\u0161u",az:"Az\u0259rbaycan dili",hy:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",sv:"Svenska",nl:"Nederlands",tk:"T\xFCrkmen",ka:"\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8",da:"Dansk",uz:"O\u2018zbek",th:"\u0E20\u0E32\u0E29\u0E32\u0E44\u0E17\u0E22",id:"Bahasa Indonesia",tg:"\u0422\u043E\u04B7\u0438\u043A\u04E3",sl:"Sloven\u0161\u010Dina",bs:"Bosanski","pt-BR":"Portugu\xEAs brasileiro",fa:"\u0641\u0627\u0631\u0633\u06CC",vi:"Ti\u1EBFng Vi\u1EC7t",hi:"\u0939\u093F\u0928\u094D\u0926\u0940",si:"\u0DC3\u0DD2\u0D82\u0DC4\u0DBD",bn:"\u09AC\u09BE\u0982\u09B2\u09BE",tl:"Tagalog",mn:"\u041C\u043E\u043D\u0433\u043E\u043B",my:"\u1017\u1019\u102C\u1005\u102C",tr:"T\xFCrk\xE7e",ne:"\u0928\u0947\u092A\u093E\u0932\u0940",ur:"\u0627\u0631\u062F\u0648",ky:"\u041A\u044B\u0440\u0433\u044B\u0437 \u0442\u0438\u043B\u0438",pa:"\u067E\u0646\u062C\u0627\u0628\u06CC",os:"\u0418\u0440\u043E\u043D",kn:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",sw:"Kiswahili",kk:"\u049A\u0430\u0437\u0430\u049B\u0448\u0430",ar:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",he:"\u05E2\u05D1\u05E8\u05D9\u05EA",ab:"\u0410\u04A7\u0441\u0448\u04D9\u0430",eu:"Euskara",eo:"Esperanto"},B1={abk:"as",ara:"ar",aze:"az",bak:"ba",bel:"be",ben:"bn",bos:"bs",bul:"bg",ces:"cs",chv:"cv",dan:"da",deu:"de",ell:"el",eng:"en",epo:"eo",est:"et",eus:"eu",fas:"fa",fin:"fi",fra:"fr",heb:"he",hin:"hi",hrv:"hr",hun:"hu",hye:"hy",ind:"id",ita:"it",jpn:"ja",kan:"kn",kat:"ka",kaz:"kk",kir:"ky",kor:"ko",lav:"lv",lit:"lt",mon:"mn",mya:"my",nep:"ne",nld:"nl",nor:"no",oss:"os",pan:"pa",pol:"pl",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 Ik=require("@vkontakte/videoplayer-shared");function Dh(i){Pe(i,"svelte-1oe0j8n",".pillow.svelte-1oe0j8n{background-color:#679FF8;color:var(--white);font-size:6px;font-weight:600;-webkit-font-smoothing:antialiased;padding:2px 4px;border-radius:12px}")}function Nh(i){let e,t,n=i[1].default,o=Ee(n,i,i[0],null);return{c(){e=P("div"),o&&o.c(),f(e,"class","pillow svelte-1oe0j8n")},m(r,l){C(r,e,l),o&&o.m(e,null),t=!0},p(r,[l]){o&&o.p&&(!t||l&1)&&Ve(o,n,r,r[0],t?Me(n,r[0],l,null):Ae(r[0]),null)},i(r){t||(d(o,r),t=!0)},o(r){_(o,r),t=!1},d(r){r&&k(e),o&&o.d(r)}}}function Oh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{"$$scope"in r&&t(0,o=r.$$scope)},[o,n]}var _a=class extends K{constructor(e){super(),W(this,e,Oh,Nh,U,{},Dh)}},R1=_a;var bl=require("@vkontakte/videoplayer-core");function Fh(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=se(s,a[u]);return{c(){e=V("svg"),l&&l.c(),t=V("path"),n=V("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"),ge(e,s)},m(u,c){C(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)&&Ve(l,r,u,u[1],o?Me(r,u[1],c,null):Ae(u[1]),null),ge(e,s=Be(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&k(e),l&&l.d(u)}}}function Hh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var ha=class extends K{constructor(e){super(),W(this,e,Hh,Fh,U,{})}},D1=ha;function zh(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=se(s,a[u]);return{c(){e=V("svg"),l&&l.c(),t=V("path"),n=V("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"),ge(e,s)},m(u,c){C(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)&&Ve(l,r,u,u[1],o?Me(r,u[1],c,null):Ae(u[1]),null),ge(e,s=Be(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&k(e),l&&l.d(u)}}}function qh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var ga=class extends K{constructor(e){super(),W(this,e,qh,zh,U,{})}},N1=ga;function Uh(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=se(a,l[s]);return{c(){e=V("svg"),r&&r.c(),t=V("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"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Be(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function Kh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var ba=class extends K{constructor(e){super(),W(this,e,Kh,Uh,U,{})}},O1=ba;function Wh(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=se(a,l[s]);return{c(){e=V("svg"),r&&r.c(),t=V("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"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Be(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"13"},{height:"5"},{fill:"none"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function Gh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var va=class extends K{constructor(e){super(),W(this,e,Gh,Wh,U,{})}},Ir=va;function jh(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=se(s,a[u]);return{c(){e=V("svg"),l&&l.c(),t=V("path"),n=V("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"),ge(e,s)},m(u,c){C(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)&&Ve(l,r,u,u[1],o?Me(r,u[1],c,null):Ae(u[1]),null),ge(e,s=Be(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"15"},{height:"7"},{fill:"none"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&k(e),l&&l.d(u)}}}function Qh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var ya=class extends K{constructor(e){super(),W(this,e,Qh,jh,U,{})}},Er=ya;var wo=i=>{switch(i){case bl.VideoQuality.Q_720P:return O1;case bl.VideoQuality.Q_1080P:return Ir;case bl.VideoQuality.Q_1440P:return Er;case bl.VideoQuality.Q_2160P:return D1;case bl.VideoQuality.Q_4320P:return N1}};function Yh(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=se(a,l[s]);return{c(){e=V("svg"),r&&r.c(),t=V("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"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Be(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"settings-mobile-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function Zh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var wa=class extends K{constructor(e){super(),W(this,e,Zh,Yh,U,{})}},F1=wa;function Xh(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=se(s,a[u]);return{c(){e=V("svg"),l&&l.c(),t=V("path"),n=V("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"),ge(e,s)},m(u,c){C(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)&&Ve(l,r,u,u[1],o?Me(r,u[1],c,null):Ae(u[1]),null),ge(e,s=Be(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"settings-icon"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&k(e),l&&l.d(u)}}}function Jh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var ka=class extends K{constructor(e){super(),W(this,e,Jh,Xh,U,{})}},H1=ka;function xh(i){Pe(i,"svelte-8t5w85",'.icon.svelte-8t5w85{display:flex;position:relative;width:24px;height:24px}.icon.svelte-8t5w85 .pillow{position:absolute;top:1px;right:-9px}.icon.triple.svelte-8t5w85 .pillow{right:-13px}.icon.svelte-8t5w85 svg[data-testid="settings-icon--labeled"] ._full{visibility:hidden;opacity:0}')}function $h(i){let e,t,n,o,r=i[1]&&z1(i);return n=new H1({props:{"data-testid":i[1]?"settings-icon--labeled":"settings-icon"}}),{c(){e=P("div"),r&&r.c(),t=z(),N(n.$$.fragment),f(e,"class","icon svelte-8t5w85"),f(e,"aria-hidden","true"),H(e,"triple",i[2])},m(l,a){C(l,e,a),r&&r.m(e,null),p(e,t),R(n,e,null),o=!0},p(l,a){l[1]?r?(r.p(l,a),a&2&&d(r,1)):(r=z1(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&&k(e),r&&r.d(),D(n)}}}function eg(i){let e,t;return e=new F1({}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p:me,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function z1(i){let e,t;return e=new R1({props:{$$slots:{default:[tg]},$$scope:{ctx:i}}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&18&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function tg(i){let e,t,n;var o=i[1];function r(l){return{}}return o&&(e=Mn(o,r(i))),{c(){e&&N(e.$$.fragment),t=lt()},m(l,a){e&&R(e,l,a),C(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=Mn(o,r(l)),N(e.$$.fragment),d(e.$$.fragment,1),R(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&&k(t),e&&D(e,l)}}}function ig(i){let e,t,n,o,r=[eg,$h],l=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=lt()},m(s,u){l[e].m(s,u),C(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&&k(n),l[e].d(s)}}}function ng(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=wo(r));if(i.$$.dirty&2)e:t(2,l=!!n&&[Ir,Er].includes(n))},[o,n,l,r]}var Ca=class extends K{constructor(e){super(),W(this,e,ng,ig,U,{isMobile:0,currentQuality:3},xh)}},Mr=Ca;function og(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=se(a,l[s]);return{c(){e=V("svg"),r&&r.c(),t=V("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"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Be(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"18"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-empty-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function lg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Sa=class extends K{constructor(e){super(),W(this,e,lg,og,U,{})}},Vr=Sa;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:"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=se(a,l[s]);return{c(){e=V("svg"),r&&r.c(),t=V("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"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Be(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"19"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"download-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function sg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Pa=class extends K{constructor(e){super(),W(this,e,sg,rg,U,{})}},q1=Pa;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:"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=se(a,l[s]);return{c(){e=V("svg"),r&&r.c(),t=V("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"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Be(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"17"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"traffic-saving-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function ug(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Ta=class extends K{constructor(e){super(),W(this,e,ug,ag,U,{})}},U1=Ta;function fg(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=se(u,s[c]);return{c(){e=V("svg"),a&&a.c(),t=V("g"),n=V("path"),o=V("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"),ge(e,u)},m(c,m){C(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)&&Ve(a,l,c,c[1],r?Me(l,c[1],m,null):Ae(c[1]),null),ge(e,u=Be(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"play-speed-icon"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){_(a,c),r=!1},d(c){c&&k(e),a&&a.d(c)}}}function cg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Ia=class extends K{constructor(e){super(),W(this,e,cg,fg,U,{})}},K1=Ia;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:"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=se(a,l[s]);return{c(){e=V("svg"),r&&r.c(),t=V("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"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Be(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"15"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"audio-languages-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function mg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Ea=class extends K{constructor(e){super(),W(this,e,mg,dg,U,{})}},W1=Ea;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:"12"},{height:"7"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=se(a,l[s]);return{c(){e=V("svg"),r&&r.c(),t=V("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"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Be(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"7"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function _g(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Ma=class extends K{constructor(e){super(),W(this,e,_g,pg,U,{})}},G1=Ma;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:"12"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=se(a,l[s]);return{c(){e=V("svg"),r&&r.c(),t=V("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"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Be(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function gg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Va=class extends K{constructor(e){super(),W(this,e,gg,hg,U,{})}},j1=Va;function bg(i){let e,t;return e=new j1({props:{style:i[2],"data-testid":i[0]?"chevron-icon--right":"chevron-icon--left"}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&4&&(r.style=n[2]),o&1&&(r["data-testid"]=n[0]?"chevron-icon--right":"chevron-icon--left"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function vg(i){let e,t;return e=new G1({props:{style:i[2],"data-testid":i[0]?"chevron-icon--down":"chevron-icon--up"}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&4&&(r.style=n[2]),o&1&&(r["data-testid"]=n[0]?"chevron-icon--down":"chevron-icon--up"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function yg(i){let e,t,n,o,r=[vg,bg],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=lt()},m(s,u){l[e].m(s,u),C(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&&k(n),l[e].d(s)}}}function wg(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 Aa=class extends K{constructor(e){super(),W(this,e,wg,yg,U,{direction:3})}},Zn=Aa;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:"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=se(a,l[s]);return{c(){e=V("svg"),r&&r.c(),t=V("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"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Be(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"report-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function Cg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var La=class extends K{constructor(e){super(),W(this,e,Cg,kg,U,{})}},Q1=La;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:"16"},{"aria-hidden":"true"},{"data-testid":"check-mark-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=se(a,l[s]);return{c(){e=V("svg"),r&&r.c(),t=V("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"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Be(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"16"},{"aria-hidden":"true"},{"data-testid":"check-mark-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function Pg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Ba=class extends K{constructor(e){super(),W(this,e,Pg,Sg,U,{})}},Go=Ba;function Tg(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=se(a,l[s]);return{c(){e=V("svg"),r&&r.c(),t=V("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"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Be(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"copy-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function Ig(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Ra=class extends K{constructor(e){super(),W(this,e,Ig,Tg,U,{})}},Y1=Ra;function Eg(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=se(a,l[s]);return{c(){e=V("svg"),r&&r.c(),t=V("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"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Be(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"info-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function Mg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Da=class extends K{constructor(e){super(),W(this,e,Mg,Eg,U,{})}},Z1=Da;function Vg(i){Pe(i,"svelte-5r0p3","ul.svelte-5r0p3.svelte-5r0p3{margin:0;padding:0}.menu.svelte-5r0p3.svelte-5r0p3{background-color:rgba(17, 17, 17, 0.8);border-radius:8px;line-height:40px;transition:opacity 0.2s, visibility 0.2s}.container-mobile.svelte-5r0p3.svelte-5r0p3{width:100%}.menu-desktop.svelte-5r0p3.svelte-5r0p3{position:absolute;right:0;bottom:0}.menu-mobile.svelte-5r0p3.svelte-5r0p3{width:100%;background:var(--mobile-settings-bg);font-size:15px;line-height:50px}.menu-mobile.hidden.svelte-5r0p3.svelte-5r0p3{display:none}.menu-subList.svelte-5r0p3.svelte-5r0p3{min-width:134px;padding-bottom:0}.menu-subList-subtitles.svelte-5r0p3.svelte-5r0p3{min-width:164px}.menu-subList-traffic-saving.svelte-5r0p3.svelte-5r0p3{min-width:286px}.item.svelte-5r0p3.svelte-5r0p3{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-5r0p3.svelte-5r0p3{padding:0 14px}.item-quality.item-mobile.svelte-5r0p3.svelte-5r0p3,.item-traffic-saving.item-mobile.svelte-5r0p3.svelte-5r0p3,.item-helper-text.item-mobile.svelte-5r0p3.svelte-5r0p3{flex-direction:row-reverse}.item-helper-text.svelte-5r0p3.svelte-5r0p3{cursor:auto;pointer-events:none;white-space:normal;padding:7px 24px 7px 18px}.item-helper-text.svelte-5r0p3 span.svelte-5r0p3{color:rgba(255, 255, 255, 0.48);line-height:18px;text-align:end}.item-helper-text.item-mobile.svelte-5r0p3.svelte-5r0p3{padding:7px 14px}.item-helper-text.item-mobile.svelte-5r0p3 span.svelte-5r0p3{text-align:start}.quality-title-mobile.svelte-5r0p3.svelte-5r0p3{flex-grow:1}.item.svelte-5r0p3.svelte-5r0p3:hover{background-color:rgba(255, 255, 255, 0.08)}.item-mobile.svelte-5r0p3.svelte-5r0p3:hover{background:var(--mobile-settings-bg)}.menu-subList.svelte-5r0p3 .item.svelte-5r0p3{color:rgba(255, 255, 255, 0.9)}.menu-subList.svelte-5r0p3 .item.svelte-5r0p3:last-child{margin-bottom:4px}.menu-icon-wrapper.svelte-5r0p3.svelte-5r0p3{width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin-right:16px}.menu-title.svelte-5r0p3.svelte-5r0p3{flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis}.menu-value.svelte-5r0p3.svelte-5r0p3{position:relative;opacity:0.7}.menu-valueIcon.svelte-5r0p3.svelte-5r0p3{position:absolute;top:-10px;right:-18px;width:15px}.menu-valueIcon-list.svelte-5r0p3.svelte-5r0p3{position:absolute;top:-7px;width:15px;right:6px}.menu-valueIcon.svelte-5r0p3 svg,.menu-valueIcon-list.svelte-5r0p3 svg{color:var(--blue-light)}.menu-divider.svelte-5r0p3.svelte-5r0p3{background-color:rgba(255, 255, 255, 0.3);height:1px;margin-bottom:4px}.menu-header.svelte-5r0p3.svelte-5r0p3{color:var(--white);cursor:pointer;justify-content:space-between;display:flex}.itemIcon.svelte-5r0p3.svelte-5r0p3{margin-right:auto;padding-right:12px;opacity:0.9}.items.svelte-5r0p3.svelte-5r0p3::-webkit-scrollbar{width:8px}.items.svelte-5r0p3.svelte-5r0p3::-webkit-scrollbar-track{box-shadow:none;background-color:#3a3a3a;border-radius:4px}.items.svelte-5r0p3.svelte-5r0p3::-webkit-scrollbar-thumb{min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box}.items.svelte-5r0p3.svelte-5r0p3::-webkit-scrollbar-thumb:hover{background-color:#777}.items-mobile.svelte-5r0p3.svelte-5r0p3{overflow-y:auto;max-height:160px;text-align:left}.close.svelte-5r0p3.svelte-5r0p3{position:relative;width:12px;height:12px;padding:12px;margin-right:-12px}.close.svelte-5r0p3.svelte-5r0p3:before,.close.svelte-5r0p3.svelte-5r0p3:after{position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white)}.close.svelte-5r0p3.svelte-5r0p3:before{transform:rotate(45deg)}.close.svelte-5r0p3.svelte-5r0p3:after{transform:rotate(-45deg)}")}function X1(i,e,t){let n=i.slice();return n[164]=e[t],n}function J1(i,e,t){let n=i.slice();return n[167]=e[t],n}function x1(i,e,t){let n=i.slice();return n[170]=e[t],n}function $1(i,e,t){let n=i.slice();return n[173]=e[t],n}function ed(i){let e,t,n,o,r,l,a,s,u,c,m,h,S,b=i[40]&&td(i),w=i[30]&&id(i),y=i[29]&&od(i),T=i[28]&&ld(i),v=i[27]&&rd(i),g=i[26]&&sd(i),E=i[25]&&ad(i),B=i[40]&&ud(i);return{c(){e=P("div"),b&&b.c(),t=z(),n=P("ul"),w&&w.c(),o=z(),y&&y.c(),r=z(),T&&T.c(),l=z(),v&&v.c(),a=z(),g&&g.c(),s=z(),E&&E.c(),u=z(),B&&B.c(),f(n,"class","items svelte-5r0p3"),f(n,"role","menu"),f(n,"style",c=i[85]()),H(n,"items-mobile",i[40]),f(e,"class","menu svelte-5r0p3"),H(e,"menu-desktop",!i[40]),H(e,"menu-mobile",i[40]),H(e,"hidden",!i[13])},m(L,F){C(L,e,F),b&&b.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),T&&T.m(n,null),p(n,l),v&&v.m(n,null),p(n,a),g&&g.m(n,null),p(n,s),E&&E.m(n,null),p(n,u),B&&B.m(n,null),i[130](n),m=!0,h||(S=[de(e,"keydown",i[91]),de(e,"mouseenter",i[82]),de(e,"mouseleave",i[83])],h=!0)},p(L,F){L[40]?b?b.p(L,F):(b=td(L),b.c(),b.m(e,t)):b&&(b.d(1),b=null),L[30]?w?(w.p(L,F),F[0]&1073741824&&d(w,1)):(w=id(L),w.c(),d(w,1),w.m(n,o)):w&&(ue(),_(w,1,1,()=>{w=null}),fe()),L[29]?y?(y.p(L,F),F[0]&536870912&&d(y,1)):(y=od(L),y.c(),d(y,1),y.m(n,r)):y&&(ue(),_(y,1,1,()=>{y=null}),fe()),L[28]?T?(T.p(L,F),F[0]&268435456&&d(T,1)):(T=ld(L),T.c(),d(T,1),T.m(n,l)):T&&(ue(),_(T,1,1,()=>{T=null}),fe()),L[27]?v?(v.p(L,F),F[0]&134217728&&d(v,1)):(v=rd(L),v.c(),d(v,1),v.m(n,a)):v&&(ue(),_(v,1,1,()=>{v=null}),fe()),L[26]?g?(g.p(L,F),F[0]&67108864&&d(g,1)):(g=sd(L),g.c(),d(g,1),g.m(n,s)):g&&(ue(),_(g,1,1,()=>{g=null}),fe()),L[25]?E?(E.p(L,F),F[0]&33554432&&d(E,1)):(E=ad(L),E.c(),d(E,1),E.m(n,u)):E&&(ue(),_(E,1,1,()=>{E=null}),fe()),L[40]?B?(B.p(L,F),F[1]&512&&d(B,1)):(B=ud(L),B.c(),d(B,1),B.m(n,null)):B&&(ue(),_(B,1,1,()=>{B=null}),fe()),(!m||F[1]&512)&&H(n,"items-mobile",L[40]),(!m||F[1]&512)&&H(e,"menu-desktop",!L[40]),(!m||F[1]&512)&&H(e,"menu-mobile",L[40]),(!m||F[0]&8192)&&H(e,"hidden",!L[13])},i(L){m||(d(w),d(y),d(T),d(v),d(g),d(E),d(B),m=!0)},o(L){_(w),_(y),_(T),_(v),_(g),_(E),_(B),m=!1},d(L){L&&k(e),b&&b.d(),w&&w.d(),y&&y.d(),T&&T.d(),v&&v.d(),g&&g.d(),E&&E.d(),B&&B.d(),i[130](null),h=!1,xe(S)}}}function td(i){let e,t,n,o,r,l,a,s;return{c(){e=P("div"),t=P("div"),t.textContent=`${G("submenu_settings")}`,n=z(),o=P("div"),r=z(),l=P("div"),f(o,"class","close svelte-5r0p3"),f(e,"class","item menu-header svelte-5r0p3"),H(e,"item-mobile",i[40]),f(l,"class","menu-divider svelte-5r0p3")},m(u,c){C(u,e,c),p(e,t),p(e,n),p(e,o),C(u,r,c),C(u,l,c),a||(s=de(o,"click",rt(i[66])),a=!0)},p(u,c){c[1]&512&&H(e,"item-mobile",u[40])},d(u){u&&(k(e),k(r),k(l)),a=!1,s()}}}function id(i){let e,t,n,o,r,l,a,s,u,c,m,h,S;n=new Mr({});let b=i[39]&&!i[40]&&nd(i);return{c(){e=P("li"),t=P("div"),N(n.$$.fragment),o=z(),r=P("div"),r.textContent=`${G("menu_quality")}`,l=z(),a=P("div"),s=Re(i[19]),u=z(),b&&b.c(),f(t,"class","menu-icon-wrapper svelte-5r0p3"),f(r,"class","menu-title svelte-5r0p3"),f(a,"class","menu-value svelte-5r0p3"),f(e,"class","item svelte-5r0p3"),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(w,y){C(w,e,y),p(e,t),R(n,t,null),p(e,o),p(e,r),p(e,l),p(e,a),p(a,s),p(a,u),b&&b.m(a,null),i[125](e),m=!0,h||(S=[de(e,"click",rt(i[67])),de(e,"keydown",i[92])],h=!0)},p(w,y){(!m||y[0]&524288)&&je(s,w[19]),w[39]&&!w[40]?b?(b.p(w,y),y[1]&768&&d(b,1)):(b=nd(w),b.c(),d(b,1),b.m(a,null)):b&&(ue(),_(b,1,1,()=>{b=null}),fe()),(!m||y[1]&2&&c!==(c=G("aria_label_menu_quality",{actual:w[32]})))&&f(e,"aria-label",c),(!m||y[1]&512)&&H(e,"item-mobile",w[40])},i(w){m||(d(n.$$.fragment,w),d(b),m=!0)},o(w){_(n.$$.fragment,w),_(b),m=!1},d(w){w&&k(e),D(n),b&&b.d(),i[125](null),h=!1,xe(S)}}}function nd(i){let e,t,n;var o=i[39];function r(l){return{}}return o&&(t=Mn(o,r(i))),{c(){e=P("div"),t&&N(t.$$.fragment),f(e,"class","menu-valueIcon svelte-5r0p3")},m(l,a){C(l,e,a),t&&R(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=Mn(o,r(l)),N(t.$$.fragment),d(t.$$.fragment,1),R(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&&k(e),t&&D(t)}}}function od(i){let e,t,n,o,r,l,a,s=i[84](i[41])+"",u,c,m,h,S;return n=new W1({}),{c(){e=P("li"),t=P("div"),N(n.$$.fragment),o=z(),r=P("div"),r.textContent=`${G("menu_audio_languages")}`,l=z(),a=P("div"),u=Re(s),f(t,"class","menu-icon-wrapper svelte-5r0p3"),f(r,"class","menu-title svelte-5r0p3"),f(a,"class","menu-value svelte-5r0p3"),f(e,"class","item svelte-5r0p3"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",c=G("aria_label_menu_audio_languages",{actual:i[84](i[41])})),f(e,"aria-haspopup","true"),H(e,"item-mobile",i[40])},m(b,w){C(b,e,w),p(e,t),R(n,t,null),p(e,o),p(e,r),p(e,l),p(e,a),p(a,u),i[126](e),m=!0,h||(S=[de(e,"click",rt(i[68])),de(e,"keydown",i[93])],h=!0)},p(b,w){(!m||w[1]&1024)&&s!==(s=b[84](b[41])+"")&&je(u,s),(!m||w[1]&1024&&c!==(c=G("aria_label_menu_audio_languages",{actual:b[84](b[41])})))&&f(e,"aria-label",c),(!m||w[1]&512)&&H(e,"item-mobile",b[40])},i(b){m||(d(n.$$.fragment,b),m=!0)},o(b){_(n.$$.fragment,b),m=!1},d(b){b&&k(e),D(n),i[126](null),h=!1,xe(S)}}}function ld(i){let e,t,n,o,r,l,a,s,u,c,m,h,S;return n=new K1({}),{c(){e=P("li"),t=P("div"),N(n.$$.fragment),o=z(),r=P("div"),r.textContent=`${G("menu_playback_rate")}`,l=z(),a=P("div"),s=Re(i[11]),u=Re("x"),f(t,"class","menu-icon-wrapper svelte-5r0p3"),f(r,"class","menu-title svelte-5r0p3"),f(a,"class","menu-value svelte-5r0p3"),f(e,"class","item svelte-5r0p3"),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(b,w){C(b,e,w),p(e,t),R(n,t,null),p(e,o),p(e,r),p(e,l),p(e,a),p(a,s),p(a,u),i[127](e),m=!0,h||(S=[de(e,"click",rt(Bt(i[73]))),de(e,"keydown",i[98])],h=!0)},p(b,w){(!m||w[0]&2048)&&je(s,b[11]),(!m||w[1]&4&&c!==(c=G("aria_label_menu_rate",{actual:b[33]})))&&f(e,"aria-label",c),(!m||w[1]&512)&&H(e,"item-mobile",b[40])},i(b){m||(d(n.$$.fragment,b),m=!0)},o(b){_(n.$$.fragment,b),m=!1},d(b){b&&k(e),D(n),i[127](null),h=!1,xe(S)}}}function rd(i){let e,t,n,o,r,l,a,s=i[42].displayValue+"",u,c,m,h,S;return n=new Vr({}),{c(){e=P("li"),t=P("div"),N(n.$$.fragment),o=z(),r=P("div"),r.textContent=`${G("subtitles_caption")}`,l=z(),a=P("div"),u=Re(s),f(t,"class","menu-icon-wrapper svelte-5r0p3"),f(r,"class","menu-title svelte-5r0p3"),f(a,"class","menu-value svelte-5r0p3"),f(e,"class","item svelte-5r0p3"),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(b,w){C(b,e,w),p(e,t),R(n,t,null),p(e,o),p(e,r),p(e,l),p(e,a),p(a,u),i[128](e),m=!0,h||(S=[de(e,"click",rt(i[75])),de(e,"keydown",i[101])],h=!0)},p(b,w){(!m||w[1]&2048)&&s!==(s=b[42].displayValue+"")&&je(u,s),(!m||w[1]&2048&&c!==(c=G("aria_label_menu_subtitle",{actual:b[42].displayValue})))&&f(e,"aria-label",c),(!m||w[1]&512)&&H(e,"item-mobile",b[40])},i(b){m||(d(n.$$.fragment,b),m=!0)},o(b){_(n.$$.fragment,b),m=!1},d(b){b&&k(e),D(n),i[128](null),h=!1,xe(S)}}}function sd(i){let e,t,n,o,r,l,a,s,u,c,m,h;return n=new U1({}),{c(){e=P("li"),t=P("div"),N(n.$$.fragment),o=z(),r=P("div"),r.textContent=`${G("menu_traffic_saving")}`,l=z(),a=P("div"),s=Re(i[31]),f(t,"class","menu-icon-wrapper svelte-5r0p3"),f(r,"class","menu-title svelte-5r0p3"),f(a,"class","menu-value svelte-5r0p3"),f(e,"class","item svelte-5r0p3"),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(S,b){C(S,e,b),p(e,t),R(n,t,null),p(e,o),p(e,r),p(e,l),p(e,a),p(a,s),i[129](e),c=!0,m||(h=[de(e,"click",rt(i[69])),de(e,"keydown",i[104])],m=!0)},p(S,b){(!c||b[1]&1)&&je(s,S[31]),(!c||b[1]&1&&u!==(u=G("aria_label_menu_traffic_saving",{actual:S[31]})))&&f(e,"aria-label",u),(!c||b[1]&512)&&H(e,"item-mobile",S[40])},i(S){c||(d(n.$$.fragment,S),c=!0)},o(S){_(n.$$.fragment,S),c=!1},d(S){S&&k(e),D(n),i[129](null),m=!1,xe(h)}}}function ad(i){let e,t,n,o,r,l,a,s,u;return n=new q1({}),{c(){e=P("li"),t=P("div"),N(n.$$.fragment),o=z(),r=P("div"),r.textContent=`${G("download_video_caption")}`,f(t,"class","menu-icon-wrapper svelte-5r0p3"),f(r,"class","menu-title svelte-5r0p3"),f(e,"class","item svelte-5r0p3"),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){C(c,e,m),p(e,t),R(n,t,null),p(e,o),p(e,r),a=!0,s||(u=[de(e,"click",rt(i[78])),de(e,"keydown",i[107])],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&&k(e),D(n),s=!1,xe(u)}}}function ud(i){let e,t,n,o,r,l,a,s,u,c,m,h,S,b,w,y,T,v=i[44].showSupport&&Ag(i);return o=new Y1({}),m=new Z1({}),{c(){v&&v.c(),e=z(),t=P("li"),n=P("div"),N(o.$$.fragment),r=z(),l=P("div"),l.textContent=`${G("menu_copy_debug")}`,s=z(),u=P("li"),c=P("div"),N(m.$$.fragment),h=z(),S=P("div"),S.textContent=`${G("menu_debug_overlay")}`,f(n,"class","menu-icon-wrapper svelte-5r0p3"),f(l,"class","menu-title svelte-5r0p3"),f(t,"class","item item-mobile svelte-5r0p3"),f(t,"role","menuitem"),f(t,"tabindex","0"),f(t,"aria-label",a=G("menu_copy_debug")),f(c,"class","menu-icon-wrapper svelte-5r0p3"),f(S,"class","menu-title svelte-5r0p3"),f(u,"class","item item-mobile svelte-5r0p3"),f(u,"role","menuitem"),f(u,"tabindex","0"),f(u,"aria-label",b=i[43]?G("aria_label_menu_debug_overlay_disable"):G("aria_label_menu_debug_overlay_enable"))},m(g,E){v&&v.m(g,E),C(g,e,E),C(g,t,E),p(t,n),R(o,n,null),p(t,r),p(t,l),C(g,s,E),C(g,u,E),p(u,c),R(m,c,null),p(u,h),p(u,S),w=!0,y||(T=[de(t,"click",rt(i[80])),de(t,"keydown",i[109]),de(u,"click",rt(i[81])),de(u,"keydown",i[110])],y=!0)},p(g,E){g[44].showSupport&&v.p(g,E),(!w||E[1]&4096&&b!==(b=g[43]?G("aria_label_menu_debug_overlay_disable"):G("aria_label_menu_debug_overlay_enable")))&&f(u,"aria-label",b)},i(g){w||(d(v),d(o.$$.fragment,g),d(m.$$.fragment,g),w=!0)},o(g){_(v),_(o.$$.fragment,g),_(m.$$.fragment,g),w=!1},d(g){g&&(k(e),k(t),k(s),k(u)),v&&v.d(g),D(o),D(m),y=!1,xe(T)}}}function Ag(i){let e,t,n,o,r,l,a,s,u;return n=new Q1({}),{c(){e=P("li"),t=P("div"),N(n.$$.fragment),o=z(),r=P("div"),r.textContent=`${G("menu_report")}`,f(t,"class","menu-icon-wrapper svelte-5r0p3"),f(r,"class","menu-title svelte-5r0p3"),f(e,"class","item item-mobile svelte-5r0p3"),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){C(c,e,m),p(e,t),R(n,t,null),p(e,o),p(e,r),a=!0,s||(u=[de(e,"click",rt(i[79])),de(e,"keydown",i[108])],s=!0)},p:me,i(c){a||(d(n.$$.fragment,c),a=!0)},o(c){_(n.$$.fragment,c),a=!1},d(c){c&&k(e),D(n),s=!1,xe(u)}}}function fd(i){let e,t,n,o,r,l,a,s,u,c,m,h,S,b;n=new Zn({props:{direction:"left"}});let w=St(i[10]),y=[];for(let v=0;v<w.length;v+=1)y[v]=md($1(i,w,v));let T=v=>_(y[v],1,1,()=>{y[v]=null});return{c(){var v;e=P("div"),t=P("div"),N(n.$$.fragment),o=z(),r=P("div"),r.textContent=`${G("submenu_quality")}`,a=z(),s=P("div"),u=z(),c=P("ul");for(let g=0;g<y.length;g+=1)y[g].c();f(t,"class","item menu-header svelte-5r0p3"),f(t,"aria-label",l=G("aria_label_submenu_back")),H(t,"item-mobile",i[40]),f(s,"class","menu-divider svelte-5r0p3"),f(c,"class","items svelte-5r0p3"),f(c,"role","menu"),f(c,"style",m=i[85]((v=i[20])==null?void 0:v.clientHeight,!0)),H(c,"items-mobile",i[40]),f(e,"class","menu menu-subList svelte-5r0p3"),H(e,"menu-desktop",!i[40]),H(e,"menu-mobile",i[40])},m(v,g){C(v,e,g),p(e,t),R(n,t,null),p(t,o),p(t,r),i[131](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[134](c),h=!0,S||(b=[de(t,"click",rt(i[77])),de(c,"keydown",i[94])],S=!0)},p(v,g){var E;if((!h||g[1]&512)&&H(t,"item-mobile",v[40]),g[0]&1024|g[1]&512|g[2]&256|g[3]&4){w=St(v[10]);let B;for(B=0;B<w.length;B+=1){let L=$1(v,w,B);y[B]?(y[B].p(L,g),d(y[B],1)):(y[B]=md(L),y[B].c(),d(y[B],1),y[B].m(c,null))}for(ue(),B=w.length;B<y.length;B+=1)T(B);fe()}(!h||g[0]&1048576&&m!==(m=v[85]((E=v[20])==null?void 0:E.clientHeight,!0)))&&f(c,"style",m),(!h||g[1]&512)&&H(c,"items-mobile",v[40]),(!h||g[1]&512)&&H(e,"menu-desktop",!v[40]),(!h||g[1]&512)&&H(e,"menu-mobile",v[40])},i(v){if(!h){d(n.$$.fragment,v);for(let g=0;g<w.length;g+=1)d(y[g]);h=!0}},o(v){_(n.$$.fragment,v),y=y.filter(Boolean);for(let g=0;g<y.length;g+=1)_(y[g]);h=!1},d(v){v&&k(e),D(n),i[131](null),Ei(y,v),i[134](null),S=!1,xe(b)}}}function cd(i){let e,t,n;return t=new Go({}),{c(){e=P("div"),N(t.$$.fragment),f(e,"class","itemIcon svelte-5r0p3")},m(o,r){C(o,e,r),R(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),D(t)}}}function dd(i){let e,t,n;var o=wo(i[173].value);function r(l){return{}}return o&&(t=Mn(o,r(i))),{c(){e=P("div"),t&&N(t.$$.fragment),f(e,"class","menu-valueIcon-list svelte-5r0p3")},m(l,a){C(l,e,a),t&&R(t,e,null),n=!0},p(l,a){if(a[0]&1024&&o!==(o=wo(l[173].value))){if(t){ue();let s=t;_(s.$$.fragment,1,0,()=>{D(s,1)}),fe()}o?(t=Mn(o,r(l)),N(t.$$.fragment),d(t.$$.fragment,1),R(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&&k(e),t&&D(t)}}}function md(i){let e,t,n,o=i[173].displayValue+"",r,l,a=!i[40]&&wo(i[173].value),s,u,c,m,h,S,b=i[173].selected&&cd(i),w=a&&dd(i);function y(){return i[132](i[173])}function T(...v){return i[133](i[173],...v)}return{c(){e=P("li"),b&&b.c(),t=z(),n=P("div"),r=Re(o),l=z(),w&&w.c(),s=z(),f(n,"class","svelte-5r0p3"),H(n,"quality-title-mobile",i[40]),f(e,"class","item item-quality svelte-5r0p3"),f(e,"data-value",u=i[173].value),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",c=i[173].displayValue),H(e,"item-mobile",i[40])},m(v,g){C(v,e,g),b&&b.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||(S=[de(e,"click",rt(y)),de(e,"keydown",T)],h=!0)},p(v,g){i=v,i[173].selected?b?g[0]&1024&&d(b,1):(b=cd(i),b.c(),d(b,1),b.m(e,t)):b&&(ue(),_(b,1,1,()=>{b=null}),fe()),(!m||g[0]&1024)&&o!==(o=i[173].displayValue+"")&&je(r,o),(!m||g[1]&512)&&H(n,"quality-title-mobile",i[40]),g[0]&1024|g[1]&512&&(a=!i[40]&&wo(i[173].value)),a?w?(w.p(i,g),g[0]&1024|g[1]&512&&d(w,1)):(w=dd(i),w.c(),d(w,1),w.m(e,s)):w&&(ue(),_(w,1,1,()=>{w=null}),fe()),(!m||g[0]&1024&&u!==(u=i[173].value))&&f(e,"data-value",u),(!m||g[0]&1024&&c!==(c=i[173].displayValue))&&f(e,"aria-label",c),(!m||g[1]&512)&&H(e,"item-mobile",i[40])},i(v){m||(d(b),d(w),m=!0)},o(v){_(b),_(w),m=!1},d(v){v&&k(e),b&&b.d(),w&&w.d(),h=!1,xe(S)}}}function pd(i){let e,t,n,o,r,l,a,s,u,c,m,h,S,b;n=new Zn({props:{direction:"left"}});let w=St(i[9]),y=[];for(let v=0;v<w.length;v+=1)y[v]=hd(x1(i,w,v));let T=v=>_(y[v],1,1,()=>{y[v]=null});return{c(){var v;e=P("div"),t=P("div"),N(n.$$.fragment),o=z(),r=P("div"),r.textContent=`${G("submenu_audio_languages")}`,a=z(),s=P("div"),u=z(),c=P("ul");for(let g=0;g<y.length;g+=1)y[g].c();f(t,"class","item menu-header svelte-5r0p3"),f(t,"aria-label",l=G("aria_label_submenu_back")),H(t,"item-mobile",i[40]),f(s,"class","menu-divider svelte-5r0p3"),f(c,"class","items svelte-5r0p3"),f(c,"role","menu"),f(c,"style",m=i[85]((v=i[21])==null?void 0:v.clientHeight,!0)),H(c,"items-mobile",i[40]),f(e,"class","menu menu-subList svelte-5r0p3"),H(e,"menu-desktop",!i[40]),H(e,"menu-mobile",i[40])},m(v,g){C(v,e,g),p(e,t),R(n,t,null),p(t,o),p(t,r),i[135](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[138](c),h=!0,S||(b=[de(t,"click",rt(i[77])),de(c,"keydown",i[96])],S=!0)},p(v,g){var E;if((!h||g[1]&512)&&H(t,"item-mobile",v[40]),g[0]&512|g[1]&1536|g[2]&4194816|g[3]&16){w=St(v[9]);let B;for(B=0;B<w.length;B+=1){let L=x1(v,w,B);y[B]?(y[B].p(L,g),d(y[B],1)):(y[B]=hd(L),y[B].c(),d(y[B],1),y[B].m(c,null))}for(ue(),B=w.length;B<y.length;B+=1)T(B);fe()}(!h||g[0]&2097152&&m!==(m=v[85]((E=v[21])==null?void 0:E.clientHeight,!0)))&&f(c,"style",m),(!h||g[1]&512)&&H(c,"items-mobile",v[40]),(!h||g[1]&512)&&H(e,"menu-desktop",!v[40]),(!h||g[1]&512)&&H(e,"menu-mobile",v[40])},i(v){if(!h){d(n.$$.fragment,v);for(let g=0;g<w.length;g+=1)d(y[g]);h=!0}},o(v){_(n.$$.fragment,v),y=y.filter(Boolean);for(let g=0;g<y.length;g+=1)_(y[g]);h=!1},d(v){v&&k(e),D(n),i[135](null),Ei(y,v),i[138](null),S=!1,xe(b)}}}function _d(i){let e,t,n;return t=new Go({}),{c(){e=P("div"),N(t.$$.fragment),f(e,"class","itemIcon svelte-5r0p3")},m(o,r){C(o,e,r),R(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),D(t)}}}function hd(i){var w;let e,t,n,o=i[84](i[170])+"",r,l,a,s,u,c,m,h=i[170].id===((w=i[41])==null?void 0:w.id)&&_d(i);function S(){return i[136](i[170])}function b(...y){return i[137](i[170],...y)}return{c(){e=P("li"),h&&h.c(),t=z(),n=P("div"),r=Re(o),l=z(),f(n,"class","svelte-5r0p3"),H(n,"quality-title-mobile",i[40]),f(e,"class","item item-quality svelte-5r0p3"),f(e,"data-value",a=i[170].id),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",s=i[84](i[170])),H(e,"item-mobile",i[40])},m(y,T){C(y,e,T),h&&h.m(e,null),p(e,t),p(e,n),p(n,r),p(e,l),u=!0,c||(m=[de(e,"click",rt(S)),de(e,"keydown",b)],c=!0)},p(y,T){var v;i=y,i[170].id===((v=i[41])==null?void 0:v.id)?h?T[0]&512|T[1]&1024&&d(h,1):(h=_d(i),h.c(),d(h,1),h.m(e,t)):h&&(ue(),_(h,1,1,()=>{h=null}),fe()),(!u||T[0]&512)&&o!==(o=i[84](i[170])+"")&&je(r,o),(!u||T[1]&512)&&H(n,"quality-title-mobile",i[40]),(!u||T[0]&512&&a!==(a=i[170].id))&&f(e,"data-value",a),(!u||T[0]&512&&s!==(s=i[84](i[170])))&&f(e,"aria-label",s),(!u||T[1]&512)&&H(e,"item-mobile",i[40])},i(y){u||(d(h),u=!0)},o(y){_(h),u=!1},d(y){y&&k(e),h&&h.d(),c=!1,xe(m)}}}function gd(i){let e,t,n,o,r,l,a,s,u,c,m,h,S,b;n=new Zn({props:{direction:"left"}});let w=St(i[8]),y=[];for(let v=0;v<w.length;v+=1)y[v]=vd(J1(i,w,v));let T=v=>_(y[v],1,1,()=>{y[v]=null});return{c(){var v;e=P("div"),t=P("div"),N(n.$$.fragment),o=z(),r=P("div"),r.textContent=`${G("submenu_playback_rate")}`,a=z(),s=P("div"),u=z(),c=P("ul");for(let g=0;g<y.length;g+=1)y[g].c();f(t,"class","item menu-header svelte-5r0p3"),f(t,"aria-label",l=G("aria_label_submenu_back")),H(t,"item-mobile",i[40]),f(s,"class","menu-divider svelte-5r0p3"),f(c,"class","items svelte-5r0p3"),f(c,"role","menu"),f(c,"style",m=i[85]((v=i[22])==null?void 0:v.clientHeight,!0)),H(c,"items-mobile",i[40]),f(e,"class","menu menu-subList svelte-5r0p3"),H(e,"menu-desktop",!i[40]),H(e,"menu-mobile",i[40])},m(v,g){C(v,e,g),p(e,t),R(n,t,null),p(t,o),p(t,r),i[139](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[142](c),h=!0,S||(b=[de(t,"click",rt(i[77])),de(c,"keydown",i[99])],S=!0)},p(v,g){var E;if((!h||g[1]&512)&&H(t,"item-mobile",v[40]),g[0]&256|g[1]&512|g[2]&4096|g[3]&128){w=St(v[8]);let B;for(B=0;B<w.length;B+=1){let L=J1(v,w,B);y[B]?(y[B].p(L,g),d(y[B],1)):(y[B]=vd(L),y[B].c(),d(y[B],1),y[B].m(c,null))}for(ue(),B=w.length;B<y.length;B+=1)T(B);fe()}(!h||g[0]&4194304&&m!==(m=v[85]((E=v[22])==null?void 0:E.clientHeight,!0)))&&f(c,"style",m),(!h||g[1]&512)&&H(c,"items-mobile",v[40]),(!h||g[1]&512)&&H(e,"menu-desktop",!v[40]),(!h||g[1]&512)&&H(e,"menu-mobile",v[40])},i(v){if(!h){d(n.$$.fragment,v);for(let g=0;g<w.length;g+=1)d(y[g]);h=!0}},o(v){_(n.$$.fragment,v),y=y.filter(Boolean);for(let g=0;g<y.length;g+=1)_(y[g]);h=!1},d(v){v&&k(e),D(n),i[139](null),Ei(y,v),i[142](null),S=!1,xe(b)}}}function bd(i){let e,t,n;return t=new Go({}),{c(){e=P("div"),N(t.$$.fragment),f(e,"class","itemIcon svelte-5r0p3")},m(o,r){C(o,e,r),R(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),D(t)}}}function vd(i){let e,t,n,o=i[167].displayValue+"",r,l,a,s,u,c,m,h=i[167].selected&&bd(i);function S(){return i[140](i[167])}function b(...w){return i[141](i[167],...w)}return{c(){e=P("li"),h&&h.c(),t=z(),n=P("div"),r=Re(o),l=z(),f(n,"class","svelte-5r0p3"),H(n,"quality-title-mobile",i[40]),f(e,"class","item item-quality svelte-5r0p3"),f(e,"data-value",a=i[167].value),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",s=i[167].displayValue),H(e,"item-mobile",i[40])},m(w,y){C(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",rt(S)),de(e,"keydown",b)],c=!0)},p(w,y){i=w,i[167].selected?h?y[0]&256&&d(h,1):(h=bd(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[167].displayValue+"")&&je(r,o),(!u||y[1]&512)&&H(n,"quality-title-mobile",i[40]),(!u||y[0]&256&&a!==(a=i[167].value))&&f(e,"data-value",a),(!u||y[0]&256&&s!==(s=i[167].displayValue))&&f(e,"aria-label",s),(!u||y[1]&512)&&H(e,"item-mobile",i[40])},i(w){u||(d(h),u=!0)},o(w){_(h),u=!1},d(w){w&&k(e),h&&h.d(),c=!1,xe(m)}}}function yd(i){let e,t,n,o,r,l,a,s,u,c,m,h,S,b,w,y,T,v,g,E,B,L,F,ae,oe,I,le,$,j;n=new Zn({props:{direction:"left"}});let x=!i[6]&&wd(i),O=i[6]&&kd(i);return{c(){var Q;e=P("div"),t=P("div"),N(n.$$.fragment),o=z(),r=P("div"),r.textContent=`${G("submenu_traffic_saving")}`,a=z(),s=P("div"),u=z(),c=P("div"),m=P("ul"),h=P("li"),x&&x.c(),S=z(),b=P("div"),b.textContent=`${G("traffic_saving_disable")}`,y=z(),T=P("li"),O&&O.c(),v=z(),g=P("div"),g.textContent=`${G("traffic_saving_enable")}`,B=z(),L=P("div"),F=z(),ae=P("div"),oe=P("span"),oe.textContent=`${G("traffic_saving_helper_text")}`,f(t,"class","item menu-header svelte-5r0p3"),f(t,"aria-label",l=G("aria_label_submenu_back")),H(t,"item-mobile",i[40]),f(s,"class","menu-divider svelte-5r0p3"),f(b,"class","svelte-5r0p3"),H(b,"quality-title-mobile",i[40]),f(h,"class","item item-traffic-saving svelte-5r0p3"),f(h,"role","menuitem"),f(h,"tabindex","0"),f(h,"aria-label",w=G("aria_label_submenu_traffic_saving_off")),H(h,"item-mobile",i[40]),f(g,"class","svelte-5r0p3"),H(g,"quality-title-mobile",i[40]),f(T,"class","item item-traffic-saving svelte-5r0p3"),f(T,"role","menuitem"),f(T,"tabindex","0"),f(T,"aria-label",E=`${G("aria_label_submenu_traffic_saving_on")}. ${G("traffic_saving_helper_text")}`),H(T,"item-mobile",i[40]),f(m,"class","items svelte-5r0p3"),f(m,"role","menu"),H(m,"items-mobile",i[40]),f(L,"class","menu-divider svelte-5r0p3"),f(oe,"class","svelte-5r0p3"),f(ae,"class","item item-helper-text svelte-5r0p3"),H(ae,"item-mobile",i[40]),f(c,"style",I=i[85]((Q=i[23])==null?void 0:Q.clientHeight,!0)),f(e,"class","menu menu-subList menu-subList-traffic-saving svelte-5r0p3"),H(e,"menu-desktop",!i[40]),H(e,"menu-mobile",i[40])},m(Q,A){C(Q,e,A),p(e,t),R(n,t,null),p(t,o),p(t,r),i[143](t),p(e,a),p(e,s),p(e,u),p(e,c),p(c,m),p(m,h),x&&x.m(h,null),p(h,S),p(h,b),p(m,y),p(m,T),O&&O.m(T,null),p(T,v),p(T,g),i[148](m),p(c,B),p(c,L),p(c,F),p(c,ae),p(ae,oe),le=!0,$||(j=[de(t,"click",rt(i[77])),de(h,"click",rt(i[144])),de(h,"keydown",i[145]),de(T,"click",rt(i[146])),de(T,"keydown",i[147]),de(m,"keydown",i[105])],$=!0)},p(Q,A){var Y;(!le||A[1]&512)&&H(t,"item-mobile",Q[40]),Q[6]?x&&(ue(),_(x,1,1,()=>{x=null}),fe()):x?A[0]&64&&d(x,1):(x=wd(Q),x.c(),d(x,1),x.m(h,S)),(!le||A[1]&512)&&H(b,"quality-title-mobile",Q[40]),(!le||A[1]&512)&&H(h,"item-mobile",Q[40]),Q[6]?O?A[0]&64&&d(O,1):(O=kd(Q),O.c(),d(O,1),O.m(T,v)):O&&(ue(),_(O,1,1,()=>{O=null}),fe()),(!le||A[1]&512)&&H(g,"quality-title-mobile",Q[40]),(!le||A[1]&512)&&H(T,"item-mobile",Q[40]),(!le||A[1]&512)&&H(m,"items-mobile",Q[40]),(!le||A[1]&512)&&H(ae,"item-mobile",Q[40]),(!le||A[0]&8388608&&I!==(I=Q[85]((Y=Q[23])==null?void 0:Y.clientHeight,!0)))&&f(c,"style",I),(!le||A[1]&512)&&H(e,"menu-desktop",!Q[40]),(!le||A[1]&512)&&H(e,"menu-mobile",Q[40])},i(Q){le||(d(n.$$.fragment,Q),d(x),d(O),le=!0)},o(Q){_(n.$$.fragment,Q),_(x),_(O),le=!1},d(Q){Q&&k(e),D(n),i[143](null),x&&x.d(),O&&O.d(),i[148](null),$=!1,xe(j)}}}function wd(i){let e,t,n;return t=new Go({}),{c(){e=P("div"),N(t.$$.fragment),f(e,"class","itemIcon svelte-5r0p3")},m(o,r){C(o,e,r),R(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),D(t)}}}function kd(i){let e,t,n;return t=new Go({}),{c(){e=P("div"),N(t.$$.fragment),f(e,"class","itemIcon svelte-5r0p3")},m(o,r){C(o,e,r),R(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),D(t)}}}function Cd(i){let e,t,n,o,r,l,a,s,u,c,m,h;n=new Zn({props:{direction:"left"}});let S=St(i[7]),b=[];for(let y=0;y<S.length;y+=1)b[y]=Pd(X1(i,S,y));let w=y=>_(b[y],1,1,()=>{b[y]=null});return{c(){var y;e=P("div"),t=P("div"),N(n.$$.fragment),o=z(),r=P("div"),r.textContent=`${G("subtitles_caption")}`,a=z(),s=P("ul");for(let T=0;T<b.length;T+=1)b[T].c();f(t,"class","item menu-header svelte-5r0p3"),f(t,"aria-label",l=G("aria_label_submenu_back")),H(t,"item-mobile",i[40]),f(s,"class","items svelte-5r0p3"),f(s,"role","menu"),f(s,"style",u=i[85]((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-5r0p3"),H(e,"menu-desktop",!i[40]),H(e,"menu-mobile",i[40])},m(y,T){C(y,e,T),p(e,t),R(n,t,null),p(t,o),p(t,r),i[149](t),p(e,a),p(e,s);for(let v=0;v<b.length;v+=1)b[v]&&b[v].m(s,null);i[152](s),c=!0,m||(h=[de(t,"click",rt(i[77])),de(s,"keydown",i[102])],m=!0)},p(y,T){var v;if((!c||T[1]&512)&&H(t,"item-mobile",y[40]),T[0]&128|T[1]&512|T[2]&16384|T[3]&1024){S=St(y[7]);let g;for(g=0;g<S.length;g+=1){let E=X1(y,S,g);b[g]?(b[g].p(E,T),d(b[g],1)):(b[g]=Pd(E),b[g].c(),d(b[g],1),b[g].m(s,null))}for(ue(),g=S.length;g<b.length;g+=1)w(g);fe()}(!c||T[0]&16777216&&u!==(u=y[85]((v=y[24])==null?void 0:v.clientHeight,!0)))&&f(s,"style",u),(!c||T[1]&512)&&H(s,"items-mobile",y[40]),(!c||T[1]&512)&&H(e,"menu-desktop",!y[40]),(!c||T[1]&512)&&H(e,"menu-mobile",y[40])},i(y){if(!c){d(n.$$.fragment,y);for(let T=0;T<S.length;T+=1)d(b[T]);c=!0}},o(y){_(n.$$.fragment,y),b=b.filter(Boolean);for(let T=0;T<b.length;T+=1)_(b[T]);c=!1},d(y){y&&k(e),D(n),i[149](null),Ei(b,y),i[152](null),m=!1,xe(h)}}}function Sd(i){let e,t,n;return t=new Go({}),{c(){e=P("div"),N(t.$$.fragment),f(e,"class","itemIcon svelte-5r0p3")},m(o,r){C(o,e,r),R(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),D(t)}}}function Pd(i){let e,t,n,o=i[164].displayValue+"",r,l,a,s,u,c,m,h=i[164].selected&&Sd(i);function S(){return i[150](i[164])}function b(...w){return i[151](i[164],...w)}return{c(){e=P("li"),h&&h.c(),t=z(),n=P("div"),r=Re(o),l=z(),f(n,"class","svelte-5r0p3"),H(n,"quality-title-mobile",i[40]),f(e,"class","item item-quality svelte-5r0p3"),f(e,"data-value",a=i[164].value),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",s=i[164].displayValue),H(e,"item-mobile",i[40])},m(w,y){C(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",rt(S)),de(e,"keydown",b)],c=!0)},p(w,y){i=w,i[164].selected?h?y[0]&128&&d(h,1):(h=Sd(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[164].displayValue+"")&&je(r,o),(!u||y[1]&512)&&H(n,"quality-title-mobile",i[40]),(!u||y[0]&128&&a!==(a=i[164].value))&&f(e,"data-value",a),(!u||y[0]&128&&s!==(s=i[164].displayValue))&&f(e,"aria-label",s),(!u||y[1]&512)&&H(e,"item-mobile",i[40])},i(w){u||(d(h),u=!0)},o(w){_(h),u=!1},d(w){w&&k(e),h&&h.d(),c=!1,xe(m)}}}function Lg(i){let e,t,n,o,r,l,a,s=i[12]&&ed(i),u=i[14]&&fd(i),c=i[15]&&pd(i),m=i[16]&&gd(i),h=i[18]&&yd(i),S=i[17]&&Cd(i);return{c(){e=P("div"),s&&s.c(),t=z(),u&&u.c(),n=z(),c&&c.c(),o=z(),m&&m.c(),r=z(),h&&h.c(),l=z(),S&&S.c(),f(e,"class","svelte-5r0p3"),H(e,"hidden",!i[12]),H(e,"container-mobile",i[40])},m(b,w){C(b,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),S&&S.m(e,null),a=!0},p(b,w){b[12]?s?(s.p(b,w),w[0]&4096&&d(s,1)):(s=ed(b),s.c(),d(s,1),s.m(e,t)):s&&(ue(),_(s,1,1,()=>{s=null}),fe()),b[14]?u?(u.p(b,w),w[0]&16384&&d(u,1)):(u=fd(b),u.c(),d(u,1),u.m(e,n)):u&&(ue(),_(u,1,1,()=>{u=null}),fe()),b[15]?c?(c.p(b,w),w[0]&32768&&d(c,1)):(c=pd(b),c.c(),d(c,1),c.m(e,o)):c&&(ue(),_(c,1,1,()=>{c=null}),fe()),b[16]?m?(m.p(b,w),w[0]&65536&&d(m,1)):(m=gd(b),m.c(),d(m,1),m.m(e,r)):m&&(ue(),_(m,1,1,()=>{m=null}),fe()),b[18]?h?(h.p(b,w),w[0]&262144&&d(h,1)):(h=yd(b),h.c(),d(h,1),h.m(e,l)):h&&(ue(),_(h,1,1,()=>{h=null}),fe()),b[17]?S?(S.p(b,w),w[0]&131072&&d(S,1)):(S=Cd(b),S.c(),d(S,1),S.m(e,null)):S&&(ue(),_(S,1,1,()=>{S=null}),fe()),(!a||w[0]&4096)&&H(e,"hidden",!b[12]),(!a||w[1]&512)&&H(e,"container-mobile",b[40])},i(b){a||(d(s),d(u),d(c),d(m),d(h),d(S),a=!0)},o(b){_(s),_(u),_(c),_(m),_(h),_(S),a=!1},d(b){b&&k(e),s&&s.d(),u&&u.d(),c&&c.d(),m&&m.d(),h&&h.d(),S&&S.d()}}}var Bg=18;function Rg(i,e,t){let n,o,r,l,a,s,u,c,m,h,S,b,w,y,T,v,g,E,B,L,F,ae,oe,I,le,$,j,{ref:x=void 0}=e,{supportLink:O}=e,{playerControlsHeight:Q=0}=e,{returnFocus:A}=e,Y=it(),Te=Ht(),Qe=Y.state.audioStream$;q(i,Qe,te=>t(41,b=te));let Ke=Y.state.availableAudioStreams$;q(i,Ke,te=>t(9,w=te));let Xe=Y.state.currentQuality$;q(i,Xe,te=>t(119,v=te));let We=Y.state.availableQualities$;q(i,We,te=>t(10,y=te));let ye=Y.state.autoQualityLimitingAvailable$;q(i,ye,te=>t(123,L=te));let X=Y.state.isAutoQualityEnabled$;q(i,X,te=>t(120,g=te));let ve=Y.state.currentPlaybackRate$;q(i,ve,te=>t(11,T=te));let He=Y.state.availablePlaybackRates$;q(i,He,te=>t(8,m=te));let Ze=Y.state.currentSubtitle$;q(i,Ze,te=>t(42,$=te));let $e=Y.state.availableSubtitlesList$;q(i,$e,te=>t(7,u=te));let be=Y.state.canDownload,De=Y.state.hasMpegSources$;q(i,De,te=>t(124,F=te));let Ue=Y.ui.settingsMenuVisible;q(i,Ue,te=>t(12,le=te));let nt=Y.ui.settingsMenuOpenedByKeyboard;q(i,nt,te=>t(154,o=te));let ke=Y.ui.isMobile;q(i,ke,te=>t(40,r=te));let Z=Y.ui.mobileNotReportControlHidden$;q(i,Z,te=>t(121,E=te));let Ce=Y.state.canChangePlaybackSpeed$;q(i,Ce,te=>t(122,B=te));let ce=Y.ui.isFullscreen;q(i,ce,te=>t(157,I=te));let Ie=Y.state.trafficSavingEnabled$;q(i,Ie,te=>t(6,a=te));let Je=Y.ui.playerSize;q(i,Je,te=>t(156,oe=te));let ft=Y.ui.debugPanelVisible;q(i,ft,te=>t(43,j=te));let pt=Y.ui.playerSize;q(i,pt,te=>t(155,ae=te));let ut=Y.state.isInteractiveTime$,It=Y.actions.internal.downloadVideo,mt=Y.actions.internal.closeSettingsMenu,we=!0,yt=!1,Et=!1,Pt=!1,ze=!1,qt=!1,_e=!1;function _t(){o||A==null||A(),mt(),_e=!1}function Mt(){t(13,we=!1),t(14,yt=!0)}function ht(){t(13,we=!1),t(15,Et=!0)}function bt(){t(13,we=!1),t(18,qt=!0)}function st(te){Y.actions.internal.setQuality(te),_t()}function Le(te){Y.actions.internal.setAudioStream(te),_t()}function dt(te){Y.actions.internal.setTrafficSavingEnabled(te),_t()}function ii(){t(13,we=!1),t(16,Pt=!0)}function Ut(te){Y.actions.internal.setPlaybackRate(te),_t()}function Ki(){t(13,we=!1),t(17,ze=!0)}function Wi(te){Y.actions.internal.setSubtitle(te),_t()}function xt(){t(13,we=!0),t(14,yt=!1),t(15,Et=!1),t(16,Pt=!1),t(17,ze=!1),t(18,qt=!1)}function Vi(){It(),_t()}function Gi(){window.open(O,"_blank"),_t(),Y.actions.internal.pause()}function mi(){Ol(Y.actions.internal.getDebugTextData()),_t()}function Ai(){ft.set(!0),_t()}function sn(){_e=!0}function ji(){_e=!1}function Qi(te){var ot,si;return te?te.label?te.label:te.language?(si=(ot=Wo[te.language])!=null?ot:Wo[B1[te.language]])!=null?si:te.language:te.id:""}function Li(te,ot,si){if(!te)return"...";let Wn=ot.find(xn=>xn.value===te),Jn=Wn?Wn.displayValue:te;return si?te===Td.VideoQuality.INVARIANT?G("auto_quality_invariant"):G("auto_quality",{actual:Jn}):Jn}let Bi,pi,wi,ki,Nt,$t;function Kt(te=0,ot=!1){return r&&I&&ot?`max-height: ${Math.round(oe.height*.6)}px`:r?"":`max-height: ${ae.height-Bg-te-Q}px; overflow: auto;`}let Yi,ai,Zi,Ci,Ri,Ct,ni,Vt,an,Di,Xi,Ni,Wt,ui=Ne(!1);q(i,ui,te=>t(118,S=te));let _i=Ne(!1);q(i,_i,te=>t(117,h=te));let fi,ei,Ft=Ne(!1);q(i,Ft,te=>t(116,c=te));let Oi,Ji,Gt=Ne(!1);q(i,Gt,te=>t(115,s=te));let Si,ci,hi=Ne(!1);q(i,hi,te=>t(114,l=te));let bn=te=>{yr(te,mt)},xi=async te=>{_l(te,Mt,()=>{let ot=y.findIndex(si=>si.selected);return Ni.childNodes[ot]})},zt=async te=>{_l(te,ht,()=>{let ot=w.findIndex(si=>si===b);return Wt.childNodes[ot]})},oi=async te=>{hl(te,xt,ui,mt)},jt=(te,ot)=>{Ui(te,()=>st(ot))},gi=async te=>{hl(te,xt,_i,mt)},Pi=(te,ot)=>{Ui(te,()=>Y.actions.internal.setAudioStream(ot))},$i=async te=>{_l(te,ii,()=>{let ot=m.findIndex(si=>si.selected);return ei.childNodes[ot]})},un=async te=>{hl(te,xt,Ft,mt)},bi=(te,ot)=>{Ui(te,()=>Ut(ot))},en=async te=>{_l(te,Ki,()=>{let ot=u.findIndex(si=>si.selected);return Ji.childNodes[ot]})},tn=async te=>{hl(te,xt,Gt,mt)},Ye=(te,ot)=>{Ui(te,()=>Wi(ot))},nn=async te=>{_l(te,bt,()=>{let ot=a?2:0;return ci.childNodes[ot]})},Qt=async te=>{hl(te,xt,hi,mt)},qe=(te,ot)=>{Ui(te,()=>dt(ot))},fn=te=>{Ui(te,()=>Vi())},on=te=>{Ui(te,()=>Gi())},Fi=te=>{Ui(te,()=>mi())},ln=te=>{Ui(te,()=>Ai())};Rt(()=>{let te=ut.subscribe(ot=>{ot&&!r&&!_e&&!o&&_t()});return()=>{te()}});function cn(te){pe[te?"unshift":"push"](()=>{Di=te,t(1,Di)})}function An(te){pe[te?"unshift":"push"](()=>{Xi=te,t(2,Xi)})}function dn(te){pe[te?"unshift":"push"](()=>{fi=te,t(3,fi)})}function di(te){pe[te?"unshift":"push"](()=>{Oi=te,t(4,Oi)})}function mn(te){pe[te?"unshift":"push"](()=>{Si=te,t(5,Si)})}function li(te){pe[te?"unshift":"push"](()=>{x=te,t(0,x)})}function Fn(te){pe[te?"unshift":"push"](()=>{pi=te,t(20,pi)})}let pn=te=>st(te.value),vn=(te,ot)=>jt(ot,te.value);function rn(te){pe[te?"unshift":"push"](()=>{Ni=te,t(34,Ni)})}function ri(te){pe[te?"unshift":"push"](()=>{wi=te,t(21,wi)})}let ti=te=>Le(te),Ln=(te,ot)=>Pi(ot,te);function Hn(te){pe[te?"unshift":"push"](()=>{Wt=te,t(35,Wt)})}function Bn(te){pe[te?"unshift":"push"](()=>{ki=te,t(22,ki)})}let Yt=te=>Ut(te.value),Pn=(te,ot)=>bi(ot,te.value);function Tn(te){pe[te?"unshift":"push"](()=>{ei=te,t(36,ei)})}function _n(te){pe[te?"unshift":"push"](()=>{Nt=te,t(23,Nt)})}let zn=()=>dt(!1),In=te=>qe(te,!1),Hi=()=>dt(!0),yn=te=>qe(te,!0);function wn(te){pe[te?"unshift":"push"](()=>{ci=te,t(38,ci)})}function ne(te){pe[te?"unshift":"push"](()=>{$t=te,t(24,$t)})}let wt=te=>Wi(te),kn=(te,ot)=>Ye(ot,te);function zi(te){pe[te?"unshift":"push"](()=>{Ji=te,t(37,Ji)})}return i.$$set=te=>{"ref"in te&&t(0,x=te.ref),"supportLink"in te&&t(111,O=te.supportLink),"playerControlsHeight"in te&&t(112,Q=te.playerControlsHeight),"returnFocus"in te&&t(113,A=te.returnFocus)},i.$$.update=()=>{var te;if(i.$$.dirty[0]&4096)e:le&&(t(13,we=!0),t(14,yt=!1),t(15,Et=!1),t(16,Pt=!1),t(17,ze=!1),t(18,qt=!1));if(i.$$.dirty[3]&67108864)e:t(39,n=wo(v));if(i.$$.dirty[0]&1024|i.$$.dirty[3]&201326592)e:t(19,Bi=Li(v,y,g));if(i.$$.dirty[3]&268435456|i.$$.dirty[4]&1)e:t(25,Yi=be&&F&&!E);if(i.$$.dirty[3]&1342177280)e:t(26,ai=Te.features.trafficSaving&&!E&&L);if(i.$$.dirty[0]&128|i.$$.dirty[3]&268435456)e:t(27,Zi=u.length>0&&!E);if(i.$$.dirty[3]&805306368)e:t(28,Ci=!!B&&!E);if(i.$$.dirty[0]&512|i.$$.dirty[3]&268435456)e:t(29,Ri=Te.features.audioLanguages&&w.length>=2&&!E);if(i.$$.dirty[3]&268435456)e:t(30,Ct=!E);if(i.$$.dirty[0]&64)e:t(31,ni=a?G("traffic_saving_on"):G("traffic_saving_off"));if(i.$$.dirty[3]&201326592)e:t(32,Vt=g?G("auto_quality_option"):v);if(i.$$.dirty[0]&2304)e:t(33,an=(te=m.find(ot=>ot.value===T))==null?void 0:te.displayValue);if(i.$$.dirty[0]&2|i.$$.dirty[3]&33554432)e:pl(Di,ui,S);if(i.$$.dirty[0]&4|i.$$.dirty[3]&16777216)e:pl(Xi,_i,h);if(i.$$.dirty[0]&8|i.$$.dirty[3]&8388608)e:pl(fi,Ft,c);if(i.$$.dirty[0]&16|i.$$.dirty[3]&4194304)e:pl(Oi,Gt,s);if(i.$$.dirty[0]&32|i.$$.dirty[3]&2097152)e:pl(Si,hi,l)},[x,Di,Xi,fi,Oi,Si,a,u,m,w,y,T,le,we,yt,Et,Pt,ze,qt,Bi,pi,wi,ki,Nt,$t,Yi,ai,Zi,Ci,Ri,Ct,ni,Vt,an,Ni,Wt,ei,Ji,ci,n,r,b,$,j,Te,Qe,Ke,Xe,We,ye,X,ve,He,Ze,$e,De,Ue,nt,ke,Z,Ce,ce,Ie,Je,ft,pt,_t,Mt,ht,bt,st,Le,dt,ii,Ut,Ki,Wi,xt,Vi,Gi,mi,Ai,sn,ji,Qi,Kt,ui,_i,Ft,Gt,hi,bn,xi,zt,oi,jt,gi,Pi,$i,un,bi,en,tn,Ye,nn,Qt,qe,fn,on,Fi,ln,O,Q,A,l,s,c,h,S,v,g,E,B,L,F,cn,An,dn,di,mn,li,Fn,pn,vn,rn,ri,ti,Ln,Hn,Bn,Yt,Pn,Tn,_n,zn,In,Hi,yn,wn,ne,wt,kn,zi]}var Na=class extends K{constructor(e){super(),W(this,e,Rg,Lg,U,{ref:0,supportLink:111,playerControlsHeight:112,returnFocus:113},Vg,[-1,-1,-1,-1,-1,-1])}},Ar=Na;function Dg(i){Pe(i,"svelte-d9t49t",".settings-icon-wrapper.svelte-d9t49t{position:relative;width:24px}")}function Ng(i){let e,t,n;return t=new Mr({props:{isMobile:i[3],currentQuality:i[4]}}),{c(){e=P("span"),N(t.$$.fragment),f(e,"class","settings-icon-wrapper svelte-d9t49t")},m(o,r){C(o,e,r),R(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&&k(e),D(t)}}}function Og(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:[Ng]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new gt({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){R(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],Oe(()=>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 Fg(i,e,t){let n,o,r,{ref:l=void 0}=e,a=it(),s=a.state.currentQuality$;q(i,s,w=>t(4,r=w));let u=a.ui.settingsMenuVisible;q(i,u,w=>t(1,n=w));let c=a.actions.internal.toggleSettingsMenu,m=a.ui.isMobile;q(i,m,w=>t(3,o=w));let h;function S(w){let y=dl(w);c(y)}function b(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?G("tooltip_settings_on"):G("tooltip_settings_off"))},[l,n,h,o,r,s,u,m,S,b]}var Oa=class extends K{constructor(e){super(),W(this,e,Fg,Og,U,{ref:0},Dg)}},Hl=Oa;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:"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=se(a,l[s]);return{c(){e=V("svg"),r&&r.c(),t=V("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"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Be(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-pained-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function zg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Fa=class extends K{constructor(e){super(),W(this,e,zg,Hg,U,{})}},Id=Fa;function qg(i){let e,t;return e=new Vr({}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Ug(i){let e,t;return e=new Id({}),{c(){N(e.$$.fragment)},m(n,o){R(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 Kg(i){let e,t,n,o,r=[Ug,qg],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=lt()},m(s,u){l[e].m(s,u),C(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&&k(n),l[e].d(s)}}}function Wg(i){let e,t;return e=new gt({props:{testId:"btn-Subtitles",ariaLabel:i[2],click:i[1],ariaKeyShortCut:$n.KeyC,$$slots:{default:[Kg]},$$scope:{ctx:i}}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,[o]){let r={};o&4&&(r.ariaLabel=n[2]),o&2&&(r.click=n[1]),o&9&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Gg(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 Ha=class extends K{constructor(e){super(),W(this,e,Gg,Wg,U,{isSubtitlesEnabled:0,click:1})}},Ed=Ha;function jg(i){Pe(i,"svelte-19o2urr",".time.svelte-19o2urr{display:flex;align-items:center;font-weight:500;font-variant-numeric:tabular-nums;padding:12px 6px}.time.mobile.svelte-19o2urr{padding:0 0 0 8px}.current.svelte-19o2urr{position:relative}.duration.svelte-19o2urr{opacity:0.7}.duration.svelte-19o2urr:before{content:' / ';white-space:pre}")}function Md(i){let e,t;return{c(){e=P("span"),t=Re(i[3]),f(e,"class","duration svelte-19o2urr")},m(n,o){C(n,e,o),p(e,t)},p(n,o){o&8&&je(t,n[3])},d(n){n&&k(e)}}}function Qg(i){let e,t,n,o,r=i[2]&&Md(i);return{c(){e=P("div"),t=P("span"),n=Re(i[4]),o=z(),r&&r.c(),f(t,"class","current svelte-19o2urr"),f(e,"class","time svelte-19o2urr"),H(e,"mobile",i[1])},m(l,a){C(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&&je(n,l[4]),l[2]?r?r.p(l,a):(r=Md(l),r.c(),r.m(e,null)):r&&(r.d(1),r=null),a&2&&H(e,"mobile",l[1])},i:me,o:me,d(l){l&&k(e),r&&r.d(),i[7](null)}}}function Yg(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=Nn(o));if(i.$$.dirty&64)e:t(4,u=Nn(r))},[a,n,l,s,u,o,r,c]}var za=class extends K{constructor(e){super(),W(this,e,Yg,Qg,U,{isMobile:1,duration:5,position:6,showDuration:2,ref:0},jg)}},Lr=za;var ao=require("@vkontakte/videoplayer-shared");function Zg(i){Pe(i,"svelte-1n5yyua",".icon.svelte-1n5yyua.svelte-1n5yyua{display:block;width:24px;height:24px}.icon.svelte-1n5yyua .cross.svelte-1n5yyua{visibility:hidden}.icon[data-value='off'].svelte-1n5yyua .wave1.svelte-1n5yyua,.icon[data-value='off'].svelte-1n5yyua .wave2.svelte-1n5yyua{visibility:hidden}.icon[data-value='off'].svelte-1n5yyua .cross.svelte-1n5yyua{visibility:visible}.icon[data-value='mid'].svelte-1n5yyua .wave2.svelte-1n5yyua,.icon[data-value='min'].svelte-1n5yyua .wave2.svelte-1n5yyua{visibility:hidden}")}function Xg(i){let e,t,n,o,r,l;return{c(){e=V("svg"),t=V("g"),n=V("path"),o=V("path"),r=V("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){C(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:me,o:me,d(a){a&&k(e)}}}function Jg(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 qa=class extends K{constructor(e){super(),W(this,e,Jg,Xg,U,{volume:1,muted:2},Zg)}},jo=qa;var Kn=require("@vkontakte/videoplayer-shared");var Bd=require("@vkontakte/videoplayer-shared");var Ld=require("@vkontakte/videoplayer-shared");function xg(i){let e,t,n=i[4].default,o=Ee(n,i,i[3],null);return{c(){e=P("div"),o&&o.c(),f(e,"class","overlay")},m(r,l){C(r,e,l),o&&o.m(e,null),i[5](e),t=!0},p(r,[l]){o&&o.p&&(!t||l&8)&&Ve(o,n,r,r[3],t?Me(n,r[3],l,null):Ae(r[3]),null)},i(r){t||(d(o,r),t=!0)},o(r){_(o,r),t=!1},d(r){r&&k(e),o&&o.d(r),i[5](null)}}}function $g(i,e,t){let n,{$$slots:o={},$$scope:r}=e,a=it().ui.overlayContainer$;q(i,a,h=>t(2,n=h));let s,u=h=>{!h||!s||!h.contains(s)||h.removeChild(s)},c=h=>{!h||!s||h.contains(s)||h.appendChild(s)};Rt(()=>(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 Ua=class extends K{constructor(e){super(),W(this,e,$g,xg,U,{})}},Vd=Ua;function eb(i){Pe(i,"svelte-tny135",'.tooltip-wrapper.svelte-tny135{display:flex;flex-direction:column;min-width:0}.full-width.svelte-tny135{width:100%}.tooltip.svelte-tny135{position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;left:0}.content.svelte-tny135{display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8)}.tooltip.active.svelte-tny135{opacity:1;visibility:visible}.tooltip-pointer.svelte-tny135{position:absolute;bottom:0;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0}.bottom-placement-pointer.svelte-tny135{top:0;bottom:auto}')}function Ad(i){let e,t;return e=new Vd({props:{$$slots:{default:[tb]},$$scope:{ctx:i}}}),{c(){N(e.$$.fragment)},m(n,o){R(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 tb(i){let e,t,n,o,r,l,a;return{c(){e=P("div"),t=P("div"),n=Re(i[1]),o=z(),r=P("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){C(s,e,u),p(e,t),p(t,n),p(e,o),p(e,r),i[20](e)},p(s,u){u&2&&je(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&&k(e),i[20](null)}}}function ib(i){let e,t,n,o,r,l,a=i[18].default,s=Ee(a,i,i[21],null),u=i[1]&&Ad(i);return{c(){e=P("div"),s&&s.c(),t=z(),u&&u.c(),n=lt(),f(e,"class","tooltip-wrapper svelte-tny135"),H(e,"full-width",i[2])},m(c,m){C(c,e,m),s&&s.m(e,null),i[19](e),C(c,t,m),u&&u.m(c,m),C(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)&&Ve(s,a,c,c[21],o?Me(a,c[21],m,null):Ae(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=Ad(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&&(k(e),k(t),k(n)),s&&s.d(c),i[19](null),u&&u.d(c),r=!1,xe(l)}}}var zl=5;function nb(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:S=Ld.noop}=e,b=h==="top",w,y,T,v=0,g=b?zl:-zl,E=0,B=0,L=Ht(),F=it(),ae=F.ui.playerSize;q(i,ae,Y=>t(24,o=Y));let oe=F.ui.overlayContainer$;q(i,oe,Y=>t(23,n=Y));let I=F.getLogger().createComponentLog("Tooltip component"),le=()=>{if(!n||!y||!w)return;let Y=n.getBoundingClientRect(),Te=w.getBoundingClientRect(),Qe=Te.width,Ke=y.clientWidth,Xe=o.width,We=(Qe-Ke)/2,ye=Te.left+u-Y.left,X=ye+We,ve=Te.top+c-Y.top,He=Ke/2-zl,Ze=X<8,$e=X+Ke>Xe-8;Ze&&(X=8,He=ye+Te.width/2-2.5*zl),$e&&(X=Xe-8-Ke,He=Te.left-Y.left+Te.width/2-X-zl),t(6,E=X),t(7,B=ve),t(5,v=He)},$=()=>{try{if(!n||!w)return;le(),t(0,s=!0)}catch(Y){I({message:String(Y)})}},j=()=>{t(0,s=!1)},x=()=>{y&&(T||(T=window.setTimeout($,L.controls.hideTimeoutTooltips)),s&&$())},O=()=>{j(),window.clearTimeout(T),T=void 0};Rt(le),jn(()=>window.clearTimeout(T));function Q(Y){pe[Y?"unshift":"push"](()=>{w=Y,t(3,w)})}function A(Y){pe[Y?"unshift":"push"](()=>{y=Y,t(4,y)})}return i.$$set=Y=>{"content"in Y&&t(1,a=Y.content),"active"in Y&&t(0,s=Y.active),"translateX"in Y&&t(14,u=Y.translateX),"translateY"in Y&&t(15,c=Y.translateY),"isFullWidthWrapper"in Y&&t(2,m=Y.isFullWidthWrapper),"placement"in Y&&t(16,h=Y.placement),"onVisibilityChange"in Y&&t(17,S=Y.onVisibilityChange),"$$scope"in Y&&t(21,l=Y.$$scope)},i.$$.update=()=>{if(i.$$.dirty&131073)e:S(s)},[s,a,m,w,y,v,E,B,b,g,ae,oe,x,O,u,c,h,S,r,Q,A,l]}var Ka=class extends K{constructor(e){super(),W(this,e,nb,ib,U,{content:1,active:0,translateX:14,translateY:15,isFullWidthWrapper:2,placement:16,onVisibilityChange:17},eb)}},Br=Ka;function ob(i){Pe(i,"svelte-p9r045",".btn-container.svelte-p9r045{position:relative;display:flex;align-items:center;height:100%;transition:var(--button-hover-transition);will-change:opacity;-webkit-tap-highlight-color:transparent}.w-max.svelte-p9r045{width:100%;min-width:0}")}function lb(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)&&Ve(n,t,o,o[24],e?Me(t,o[24],r,null):Ae(o[24]),null)},i(o){e||(d(n,o),e=!0)},o(o){_(n,o),e=!1},d(o){n&&n.d(o)}}}function rb(i){let e,t;return e=new Br({props:{content:i[12],translateX:i[10],translateY:i[11],isFullWidthWrapper:i[4],active:i[6],placement:i[7],onVisibilityChange:i[9],$$slots:{default:[sb]},$$scope:{ctx:i}}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&4096&&(r.content=n[12]),o&1024&&(r.translateX=n[10]),o&2048&&(r.translateY=n[11]),o&16&&(r.isFullWidthWrapper=n[4]),o&64&&(r.active=n[6]),o&128&&(r.placement=n[7]),o&512&&(r.onVisibilityChange=n[9]),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 sb(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)&&Ve(n,t,o,o[24],e?Me(t,o[24],r,null):Ae(o[24]),null)},i(o){e||(d(n,o),e=!0)},o(o){_(n,o),e=!1},d(o){n&&n.d(o)}}}function ab(i){let e,t,n,o,r,l,a,s,u,c=[rb,lb],m=[];function h(S,b){return S[3]&&S[5]&&!S[13]?0:1}return t=h(i,-1),n=m[t]=c[t](i),{c(){e=P("div"),n.c(),f(e,"class",o="btn-container "+i[2]+" svelte-p9r045"),f(e,"aria-hidden",r=i[8]||null),Yn(()=>i[23].call(e))},m(S,b){C(S,e,b),m[t].m(e,null),i[22](e),l=tl(e,i[23].bind(e)),a=!0,s||(u=[de(e,"pointerdown",rt(Bt(i[20]))),de(e,"click",rt(Bt(i[21])))],s=!0)},p(S,[b]){let w=t;t=h(S,b),t===w?m[t].p(S,b):(ue(),_(m[w],1,1,()=>{m[w]=null}),fe(),n=m[t],n?n.p(S,b):(n=m[t]=c[t](S),n.c()),d(n,1),n.m(e,null)),(!a||b&4&&o!==(o="btn-container "+S[2]+" svelte-p9r045"))&&f(e,"class",o),(!a||b&256&&r!==(r=S[8]||null))&&f(e,"aria-hidden",r)},i(S){a||(d(n),a=!0)},o(S){_(n),a=!1},d(S){S&&k(e),m[t].d(),i[22](null),l(),s=!1,xe(u)}}}function ub(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:S=""}=e,{tooltipActive:b=!1}=e,{tooltipPlacement:w="top"}=e,{disabledTooltipContent:y=G("tooltip_button_disabled")}=e,{isAriaHidden:T=!1}=e,{onTooltipVisibilityChange:v=Bd.noop}=e,{initialTranslateXPx:g=0}=e,{initialTranslateYPx:E=-18}=e,B=it(),L=B.ui.isMobile;q(i,L,j=>t(13,o=j));let F=B.state.graphIsOpened$;q(i,F,j=>t(18,n=j));let ae;function oe(j){Dn.call(this,i,j)}function I(j){Dn.call(this,i,j)}function le(j){pe[j?"unshift":"push"](()=>{c=j,t(0,c)})}function $(){m=this.clientWidth,t(1,m)}return i.$$set=j=>{"className"in j&&t(2,a=j.className),"disabled"in j&&t(16,s=j.disabled),"hasTooltip"in j&&t(3,u=j.hasTooltip),"ref"in j&&t(0,c=j.ref),"width"in j&&t(1,m=j.width),"isFullWidthTooltip"in j&&t(4,h=j.isFullWidthTooltip),"tooltipContent"in j&&t(5,S=j.tooltipContent),"tooltipActive"in j&&t(6,b=j.tooltipActive),"tooltipPlacement"in j&&t(7,w=j.tooltipPlacement),"disabledTooltipContent"in j&&t(17,y=j.disabledTooltipContent),"isAriaHidden"in j&&t(8,T=j.isAriaHidden),"onTooltipVisibilityChange"in j&&t(9,v=j.onTooltipVisibilityChange),"initialTranslateXPx"in j&&t(10,g=j.initialTranslateXPx),"initialTranslateYPx"in j&&t(11,E=j.initialTranslateYPx),"$$scope"in j&&t(24,l=j.$$scope)},i.$$.update=()=>{if(i.$$.dirty&458784)e:s?t(12,ae=n?G("tooltip_disabled_when_graph_on"):y):t(12,ae=S)},[c,m,a,u,h,S,b,w,T,v,g,E,ae,o,L,F,s,y,n,r,oe,I,le,$,l]}var Wa=class extends K{constructor(e){super(),W(this,e,ub,ab,U,{className:2,disabled:16,hasTooltip:3,ref:0,width:1,isFullWidthTooltip:4,tooltipContent:5,tooltipActive:6,tooltipPlacement:7,disabledTooltipContent:17,isAriaHidden:8,onTooltipVisibilityChange:9,initialTranslateXPx:10,initialTranslateYPx:11},ob)}},Ot=Wa;function fb(i){let e,t,n,o,r,l;return{c(){e=V("svg"),t=V("rect"),o=V("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){C(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:me,o:me,d(a){a&&k(e)}}}function cb(i,e,t){let{completed:n}=e;return i.$$set=o=>{"completed"in o&&t(0,n=o.completed)},[n]}var Ga=class extends K{constructor(e){super(),W(this,e,cb,fb,U,{completed:0})}},Rr=Ga;function db(i){Pe(i,"svelte-bklhpe",".interactive-episode-icon.svelte-bklhpe{width:20px;height:20px;position:absolute;transform:translateX(-50%);cursor:default}.interactive-episode-icon.disabled.svelte-bklhpe{pointer-events:none;opacity:0.4}")}function mb(i){let e,t,n,o,r;return t=new Rr({props:{completed:!!i[0].completed}}),{c(){e=P("div"),N(t.$$.fragment),f(e,"class","interactive-episode-icon svelte-bklhpe"),f(e,"style",n=`left: ${i[0].from+i[0].width/2}%`),Yn(()=>i[3].call(e)),H(e,"disabled",i[1])},m(l,a){C(l,e,a),R(t,e,null),o=tl(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&&k(e),D(t),o()}}}function pb(i){let e,t;return e=new Ot({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:[mb]},$$scope:{ctx:i}}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.tooltipContent=G(n[0].completed?"tooltip_episode_finished":"tooltip_episode_unfinished")),o&2&&(r.disabled=n[1]),o&4&&(r.width=n[2]||0),o&23&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function _b(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 ja=class extends K{constructor(e){super(),W(this,e,_b,pb,U,{videoEpisode:0,disabled:1},db)}},Rd=ja;function hb(i){Pe(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 Dd(i,e,t){let n=i.slice();return n[2]=e[t],n}function Nd(i){let e,t,n,o,r,l,a,s,u;return{c(){e=P("div"),t=P("div"),n=P("div"),r=z(),l=P("div"),s=z(),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}%)`),H(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}%`),H(e,"mobile",i[1])},m(c,m){C(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&&H(l,"mobile",c[1]),m&1&&u!==(u=`left: ${c[2].from}%; width: ${c[2].width}%`)&&f(e,"style",u),m&2&&H(e,"mobile",c[1])},d(c){c&&k(e)}}}function gb(i){let e,t=St(i[0]),n=[];for(let o=0;o<t.length;o+=1)n[o]=Nd(Dd(i,t,o));return{c(){e=P("div");for(let o=0;o<n.length;o+=1)n[o].c();f(e,"class","video-episodes-wrap svelte-1h9p3m2")},m(o,r){C(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=St(o[0]);let l;for(l=0;l<t.length;l+=1){let a=Dd(o,t,l);n[l]?n[l].p(a,r):(n[l]=Nd(a),n[l].c(),n[l].m(e,null))}for(;l<n.length;l+=1)n[l].d(1);n.length=t.length}},i:me,o:me,d(o){o&&k(e),Ei(n,o)}}}function bb(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 Qa=class extends K{constructor(e){super(),W(this,e,bb,gb,U,{videoEpisodes:0,isMobile:1},hb)}},Od=Qa;function vb(i){Pe(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 Fd(i,e,t){let n=i.slice();return n[48]=e[t],n}function Hd(i){let e,t,n=St(i[21]),o=[];for(let l=0;l<n.length;l+=1)o[l]=qd(Fd(i,n,l));let r=l=>_(o[l],1,1,()=>{o[l]=null});return{c(){e=P("div");for(let l=0;l<o.length;l+=1)o[l].c();f(e,"class","interactive-icons svelte-1golz1y"),H(e,"mobile",i[5]),H(e,"hidden",i[5]&&!i[20])},m(l,a){C(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=St(l[21]);let s;for(s=0;s<n.length;s+=1){let u=Fd(l,n,s);o[s]?(o[s].p(u,a),d(o[s],1)):(o[s]=qd(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)&&H(e,"mobile",l[5]),(!t||a[0]&1048608)&&H(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&&k(e),Ei(o,l)}}}function zd(i){let e,t;return e=new Rd({props:{videoEpisode:i[48],disabled:i[9]}}),{c(){N(e.$$.fragment)},m(n,o){R(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){D(e,n)}}}function qd(i){let e,t,n=i[48].interactive&&zd(i);return{c(){n&&n.c(),e=lt()},m(o,r){n&&n.m(o,r),C(o,e,r),t=!0},p(o,r){o[48].interactive?n?(n.p(o,r),r[0]&2097152&&d(n,1)):(n=zd(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&&k(e),n&&n.d(o)}}}function yb(i){let e,t,n,o,r,l;return{c(){e=P("div"),t=P("div"),o=z(),r=P("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}%);`),H(r,"active-live",i[4]),H(r,"ads",i[6]),f(e,"class","bars svelte-1golz1y")},m(a,s){C(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&&H(r,"active-live",a[4]),s[0]&64&&H(r,"ads",a[6])},i:me,o:me,d(a){a&&k(e)}}}function wb(i){let e,t;return e=new Od({props:{videoEpisodes:i[21],isMobile:i[5]}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&2097152&&(r.videoEpisodes=n[21]),o[0]&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){D(e,n)}}}function kb(i){let e,t,n,o,r,l,a,s,u,c,m,h,S,b=i[8]&&Hd(i),w=[wb,yb],y=[];function T(v,g){return v[21].length?0:1}return n=T(i,[-1,-1]),o=y[n]=w[n](i),{c(){var v;b&&b.c(),e=z(),t=P("div"),o.c(),r=z(),l=P("div"),a=P("div"),f(a,"class","handle svelte-1golz1y"),H(a,"active-live",i[4]),f(l,"class","handleWrap svelte-1golz1y"),f(l,"style",s=`transform: translateX(${i[13]*100}%);`),H(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),H(t,"disabled",i[9]),H(t,"slider-dragging",i[20]),H(t,"hidden",i[2]),H(t,"slider-vertical",i[3]),H(t,"no-handle",i[10]),H(t,"square",i[7])},m(v,g){b&&b.m(v,g),C(v,e,g),C(v,t,g),y[n].m(t,null),p(t,r),p(t,l),p(l,a),i[42](t),m=!0,h||(S=[de(t,"pointerdown",Bt(i[22])),de(t,"pointermove",Bt(i[23])),de(t,"pointerup",Bt(i[24])),de(t,"pointerenter",Bt(i[25])),de(t,"pointerleave",Bt(i[26])),de(t,"click",rt(Kn.noop)),de(t,"wheel",i[27])],h=!0)},p(v,g){var B;v[8]?b?(b.p(v,g),g[0]&256&&d(b,1)):(b=Hd(v),b.c(),d(b,1),b.m(e.parentNode,e)):b&&(ue(),_(b,1,1,()=>{b=null}),fe());let E=n;n=T(v,g),n===E?y[n].p(v,g):(ue(),_(y[E],1,1,()=>{y[E]=null}),fe(),o=y[n],o?o.p(v,g):(o=y[n]=w[n](v),o.c()),d(o,1),o.m(t,r)),(!m||g[0]&16)&&H(a,"active-live",v[4]),(!m||g[0]&8192&&s!==(s=`transform: translateX(${v[13]*100}%);`))&&f(l,"style",s),(!m||g[0]&1024)&&H(l,"hidden",v[10]),(!m||g[0]&1&&u!==(u="slider "+v[0]+" svelte-1golz1y"))&&f(t,"class",u),(!m||g[0]&16384)&&f(t,"aria-label",v[14]),(!m||g[0]&32768)&&f(t,"aria-valuemin",v[15]),(!m||g[0]&65536)&&f(t,"aria-valuemax",v[16]),(!m||g[0]&131072)&&f(t,"aria-valuenow",v[17]),(!m||g[0]&262144)&&f(t,"aria-valuetext",v[18]),(!m||g[0]&2&&c!==(c=(B=v[1])!=null?B:null))&&f(t,"data-testid",c),(!m||g[0]&513)&&H(t,"disabled",v[9]),(!m||g[0]&1048577)&&H(t,"slider-dragging",v[20]),(!m||g[0]&5)&&H(t,"hidden",v[2]),(!m||g[0]&9)&&H(t,"slider-vertical",v[3]),(!m||g[0]&1025)&&H(t,"no-handle",v[10]),(!m||g[0]&129)&&H(t,"square",v[7])},i(v){m||(d(b),d(o),m=!0)},o(v){_(b),_(o),m=!1},d(v){v&&(k(e),k(t)),b&&b.d(v),y[n].d(),i[42](null),h=!1,xe(S)}}}function Cb(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:S=[]}=e,{withWheelHandler:b=!1}=e,{isInteractive:w=!1}=e,{disabled:y=!1}=e,{hideHandel:T=!1}=e,v,g,{onPointerDown:E=Kn.noop}=e,{onHandleMove:B=Kn.noop}=e,{onPointerUp:L=Kn.noop}=e,{onPointerEnter:F=Kn.noop}=e,{onPointerMove:ae=Kn.noop}=e,{onPointerLeave:oe=Kn.noop}=e,{onWheelUp:I=Kn.noop}=e,{onWheelDown:le=Kn.noop}=e,{onWheelLeft:$=Kn.noop}=e,{onWheelRight:j=Kn.noop}=e,{loadedProgress:x=0}=e,{filledProgress:O=0}=e,{handleProgress:Q=0}=e,{ariaLabel:A=""}=e,{ariaValueMin:Y=void 0}=e,{ariaValueMax:Te=void 0}=e,{ariaValueNow:Qe=void 0}=e,{ariaValueText:Ke=""}=e,Xe=Ht(),We=!1,ye;function X(Z){if(We)return;t(20,We=!0),g=v.getBoundingClientRect();let Ce=De(Z.clientX,Z.clientY);E(Ce),v.setPointerCapture(Z.pointerId)}function ve(Z){let Ce=De(Z.clientX,Z.clientY),ce=Ue(Z.clientX);ae(Ce,ce,g.width),We&&B(Ce)}function He(Z){if(!We)return;t(20,We=!1);let Ce=De(Z.clientX,Z.clientY);L(Ce)}function Ze(Z){g=v.getBoundingClientRect();let Ce=De(Z.clientX,Z.clientY),ce=Ue(Z.clientX);F(Ce,ce,g.width)}function $e(){oe()}function be(Z){b&&(Z.preventDefault(),Z.deltaY<0?I():Z.deltaY>0?le():Z.deltaX>0?j():$())}function De(Z,Ce){return s?Math.max(0,Math.min(1,(g.height-(Ce-g.top))/g.height)):Math.min(Math.max(Z-g.x,0),g.width)/g.width}function Ue(Z){return Math.min(Math.max(Z-g.x,0),g.width)}function nt(Z,Ce){let ce=Xe.features.episodesClustering&&!w?Xe.episodeMinWidthPc:0,Ie=[],Je=0,ft=0,pt=0;for(let mt=1;mt<S.length;mt++)ft=S[mt].time/ye*100,ft-Je>ce&&(Ie.push({from:Je,width:Math.max(0,ft-Je),loadedWidth:Math.max(0,Math.min(ft,Z)-Je),filledWidth:Math.max(0,Math.min(ft,Ce)-Je),interactive:S[mt-1].interactive,completed:S[mt-1].completed}),Je=S[mt].time/ye*100,pt++);let ut={from:Je,width:Math.max(0,100-Je),loadedWidth:Math.max(0,Math.min(Z,100)-Je),filledWidth:Math.max(0,Math.min(Ce,100)-Je),interactive:S[pt].interactive,completed:S[pt].completed};100-Je<ce?(pt-=1,Ie[pt].width+=100-Je,Ie[pt].loadedWidth+=Math.max(0,Math.min(Z,100)-Je),Ie[pt].filledWidth+=Math.max(0,Math.min(Ce,100)-Je)):Ie[pt]=ut;let It=S[0].time;if(It!==0){let mt=It/ye*100;Ie.unshift({from:0,width:mt,loadedWidth:Math.min(mt,Z),filledWidth:Math.min(mt,Ce)})}return Ie}function ke(Z){pe[Z?"unshift":"push"](()=>{v=Z,t(19,v)})}return i.$$set=Z=>{"className"in Z&&t(0,r=Z.className),"testId"in Z&&t(1,l=Z.testId),"isHidden"in Z&&t(2,a=Z.isHidden),"isVertical"in Z&&t(3,s=Z.isVertical),"isActiveLive"in Z&&t(4,u=Z.isActiveLive),"isMobile"in Z&&t(5,c=Z.isMobile),"isAds"in Z&&t(6,m=Z.isAds),"squareBorders"in Z&&t(7,h=Z.squareBorders),"videoEpisodes"in Z&&t(28,S=Z.videoEpisodes),"withWheelHandler"in Z&&t(29,b=Z.withWheelHandler),"isInteractive"in Z&&t(8,w=Z.isInteractive),"disabled"in Z&&t(9,y=Z.disabled),"hideHandel"in Z&&t(10,T=Z.hideHandel),"onPointerDown"in Z&&t(30,E=Z.onPointerDown),"onHandleMove"in Z&&t(31,B=Z.onHandleMove),"onPointerUp"in Z&&t(32,L=Z.onPointerUp),"onPointerEnter"in Z&&t(33,F=Z.onPointerEnter),"onPointerMove"in Z&&t(34,ae=Z.onPointerMove),"onPointerLeave"in Z&&t(35,oe=Z.onPointerLeave),"onWheelUp"in Z&&t(36,I=Z.onWheelUp),"onWheelDown"in Z&&t(37,le=Z.onWheelDown),"onWheelLeft"in Z&&t(38,$=Z.onWheelLeft),"onWheelRight"in Z&&t(39,j=Z.onWheelRight),"loadedProgress"in Z&&t(11,x=Z.loadedProgress),"filledProgress"in Z&&t(12,O=Z.filledProgress),"handleProgress"in Z&&t(13,Q=Z.handleProgress),"ariaLabel"in Z&&t(14,A=Z.ariaLabel),"ariaValueMin"in Z&&t(15,Y=Z.ariaValueMin),"ariaValueMax"in Z&&t(16,Te=Z.ariaValueMax),"ariaValueNow"in Z&&t(17,Qe=Z.ariaValueNow),"ariaValueText"in Z&&t(18,Ke=Z.ariaValueText)},i.$$.update=()=>{var Z;if(i.$$.dirty[0]&65536)e:t(40,ye=Te!=null?Te:0);if(i.$$.dirty[0]&268435456|i.$$.dirty[1]&512)e:t(41,n=((Z=S[S.length-1])==null?void 0:Z.time)<ye);if(i.$$.dirty[0]&268441600|i.$$.dirty[1]&1536)e:t(21,o=S.length&&n&&ye?nt(x*100,O*100):[])},[r,l,a,s,u,c,m,h,w,y,T,x,O,Q,A,Y,Te,Qe,Ke,v,We,o,X,ve,He,Ze,$e,be,S,b,E,B,L,F,ae,oe,I,le,$,j,ye,n,ke]}var Ya=class extends K{constructor(e){super(),W(this,e,Cb,kb,U,{className:0,testId:1,isHidden:2,isVertical:3,isActiveLive:4,isMobile:5,isAds:6,squareBorders:7,videoEpisodes:28,withWheelHandler:29,isInteractive:8,disabled:9,hideHandel:10,onPointerDown:30,onHandleMove:31,onPointerUp:32,onPointerEnter:33,onPointerMove:34,onPointerLeave:35,onWheelUp:36,onWheelDown:37,onWheelLeft:38,onWheelRight:39,loadedProgress:11,filledProgress:12,handleProgress:13,ariaLabel:14,ariaValueMin:15,ariaValueMax:16,ariaValueNow:17,ariaValueText:18},vb,[-1,-1])}},vl=Ya;var On=(i,e)=>Do[i]>=Do[e],Ud=(i,e)=>Do[i]<Do[e],Dr=(i,e)=>Do[i]<=Do[e],Kd=i=>i>699?"xl":i>599?"l":i>509?"m":i>320?"s":"xs";function Sb(i){Pe(i,"svelte-1l78lz9",".volumeBar-container.svelte-1l78lz9{display:flex;align-items:center}.volumeBar-container.vertical.svelte-1l78lz9,.vertical.svelte-1l78lz9 .tooltip-wrapper,.vertical.svelte-1l78lz9 .btn{width:40px}.volumeBar.svelte-1l78lz9{display:flex;align-items:center;margin:0 8px;position:relative;width:70px}.volumeBar-slider-vertical{width:50px !important}.volumeBar-vertical.svelte-1l78lz9{padding:0 8px 0 0;width:0}")}function Pb(i){let e,t;return e=new jo({props:{volume:i[3],muted:i[1]}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&8&&(r.volume=n[3]),o[0]&2&&(r.muted=n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Tb(i){let e,t;return e=new gt({props:{className:"btn-full-opacity",disabled:i[9],testId:i[2]?"btn-volume-vertical":"btn-volume-horizontal",ariaLabel:i[7],click:i[0],ariaKeyShortCut:$n.KeyM,$$slots:{default:[Pb]},$$scope:{ctx:i}}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&512&&(r.disabled=n[9]),o[0]&4&&(r.testId=n[2]?"btn-volume-vertical":"btn-volume-horizontal"),o[0]&128&&(r.ariaLabel=n[7]),o[0]&1&&(r.click=n[0]),o[0]&10|o[1]&32&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Wd(i){let e,t,n;return t=new vl({props:{className:i[2]?"volumeBar-slider-vertical":"",isHidden:i[2]&&!i[5],isVertical:i[2],withWheelHandler:!0,onWheelUp:i[15],onWheelDown:i[16],onPointerDown:i[14],onHandleMove:i[17],onPointerUp:i[18],onPointerEnter:i[2]?i[19]:ao.noop,onPointerLeave:i[2]?i[20]:ao.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=P("div"),N(t.$$.fragment),f(e,"class","volumeBar svelte-1l78lz9"),H(e,"volumeBar-vertical",i[2])},m(o,r){C(o,e,r),R(t,e,null),n=!0},p(o,r){let l={};r[0]&4&&(l.className=o[2]?"volumeBar-slider-vertical":""),r[0]&36&&(l.isHidden=o[2]&&!o[5]),r[0]&4&&(l.isVertical=o[2]),r[0]&4&&(l.onPointerEnter=o[2]?o[19]:ao.noop),r[0]&4&&(l.onPointerLeave=o[2]?o[20]:ao.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&&k(e),D(t)}}}function Ib(i){let e,t,n,o,r,l;t=new Br({props:{content:i[6],translateY:-18,$$slots:{default:[Tb]},$$scope:{ctx:i}}});let a=i[4]&&Wd(i);return{c(){e=P("div"),N(t.$$.fragment),n=z(),a&&a.c(),f(e,"class","volumeBar-container svelte-1l78lz9"),H(e,"vertical",i[2])},m(s,u){C(s,e,u),R(t,e,null),p(e,n),a&&a.m(e,null),o=!0,r||(l=[de(e,"mouseenter",function(){Ii(i[2]?i[21]:ao.noop)&&(i[2]?i[21]:ao.noop).apply(this,arguments)}),de(e,"mouseleave",function(){Ii(i[2]?i[22]:ao.noop)&&(i[2]?i[22]:ao.noop).apply(this,arguments)}),de(e,"wheel",Bt(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=Wd(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&&k(e),D(t),a&&a.d(),r=!1,xe(l)}}}function Eb(i,e,t){var We,ye;let n,o,r,l,{click:a}=e,s=it(),u=Ht(),c=s.state.volume$;q(i,c,X=>t(3,n=X));let m=s.state.muted$;q(i,m,X=>t(25,l=X));let h=s.actions.internal.setVolume,S=s.ui.currentGridType$;q(i,S,X=>t(24,r=X));let b=(We=s.callbacks)==null?void 0:We.onAudioDoesNotExistHint,w=(ye=s.callbacks)==null?void 0:ye.onAudioDisabledHint,y=s.state.isAudioAvailable$;q(i,y,X=>t(4,o=X));let T=s.state.isAudioDisabled,v=!1,g,E,B,L,F,ae,oe=1,I=!1,le=!1;function $(X){oe=n,h(X)}function j(){Sr(s,n,u.controls.volumeStepWheel)}function x(){Pr(s,n,u.controls.volumeStepWheel)}function O(X){h(X)}function Q(X){let ve=X;h(ve,ve===0?oe:ve)}function A(){I=!0}function Y(){I=!1,Ke()}function Te(){clearTimeout(g),t(5,v=!0)}function Qe(){Ke()}function Ke(){g=window.setTimeout(()=>{I||t(5,v=!1)},u.controls.volumeBarTimeout)}function Xe(X){X.deltaY<0?j():X.deltaY>0&&x()}return i.$$set=X=>{"click"in X&&t(0,a=X.click)},i.$$.update=()=>{if(i.$$.dirty[0]&33554448)e:t(1,L=!o||l);if(i.$$.dirty[0]&16777216)e:t(2,F=Dr(r,"s"));if(i.$$.dirty[0]&6)e:F?t(6,E=""):t(6,E=L?G("tooltip_volume"):G("tooltip_volume_muted")),t(7,B=L?G("tooltip_volume"):G("tooltip_volume_muted"));if(i.$$.dirty[0]&10)e:t(8,ae=L?0:n);if(i.$$.dirty[0]&16)e:t(9,le=T&&!w||!o&&!b)},[a,L,F,n,o,v,E,B,ae,le,c,m,S,y,$,j,x,O,Q,A,Y,Te,Qe,Xe,r,l]}var Za=class extends K{constructor(e){super(),W(this,e,Eb,Ib,U,{click:0},Sb,[-1,-1])}},Gd=Za;var Yd=require("@vkontakte/videoplayer-shared");function Mb(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=se(u,s[c]);return{c(){e=V("svg"),a&&a.c(),t=V("g"),n=V("path"),o=V("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"),ge(e,u)},m(c,m){C(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)&&Ve(a,l,c,c[1],r?Me(l,c[1],m,null):Ae(c[1]),null),ge(e,u=Be(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&&k(e),a&&a.d(c)}}}function Vb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Xa=class extends K{constructor(e){super(),W(this,e,Vb,Mb,U,{})}},jd=Xa;function Ab(i){Pe(i,"svelte-17t966y",'svg[data-testid="close-fullscreen-icon"] ._enter,svg[data-testid="open-fullscreen-icon"] ._exit{visibility:hidden;opacity:0}')}function Lb(i){let e,t;return e=new jd({props:{"data-testid":i[0]?"close-fullscreen-icon":"open-fullscreen-icon"}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r["data-testid"]=n[0]?"close-fullscreen-icon":"open-fullscreen-icon"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Bb(i,e,t){let{isFullscreen:n=!1}=e;return i.$$set=o=>{"isFullscreen"in o&&t(0,n=o.isFullscreen)},[n]}var Ja=class extends K{constructor(e){super(),W(this,e,Bb,Lb,U,{isFullscreen:0},Ab)}},Qd=Ja;function Rb(i){let e,t;return e=new Qd({props:{isFullscreen:i[0]}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&1&&(r.isFullscreen=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Db(i){let e,t;return e=new gt({props:{testId:"btn-fullscreen",ariaLabel:i[2],click:i[1],ariaKeyShortCut:$n.KeyF,$$slots:{default:[Rb]},$$scope:{ctx:i}}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,[o]){let r={};o&4&&(r.ariaLabel=n[2]),o&2&&(r.click=n[1]),o&9&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Nb(i,e,t){let{isFullscreen:n=!1}=e,{click:o=Yd.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 xa=class extends K{constructor(e){super(),W(this,e,Nb,Db,U,{isFullscreen:0,click:1})}},Nr=xa;function Ob(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=se(a,l[s]);return{c(){e=V("svg"),r&&r.c(),t=V("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"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Be(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"play-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function Fb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var $a=class extends K{constructor(e){super(),W(this,e,Fb,Ob,U,{})}},yl=$a;function Hb(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=se(a,l[s]);return{c(){e=V("svg"),r&&r.c(),t=V("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"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Be(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"pause-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function zb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var eu=class extends K{constructor(e){super(),W(this,e,zb,Hb,U,{})}},Or=eu;var Xd=require("@vkontakte/videoplayer-shared");function qb(i){Pe(i,"svelte-1ot3duq",".mobile.svelte-1ot3duq{position:relative;display:flex;align-items:center;justify-content:center}.mobile.svelte-1ot3duq svg{transform:scale(2)}.icon-background-mobile.svelte-1ot3duq{position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px)}")}function Zd(i){let e;return{c(){e=P("div"),f(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){C(t,e,n)},d(t){t&&k(e)}}}function Ub(i){let e,t,n,o,r=i[1]&&Zd(i);var l=i[8];function a(s){return{}}return l&&(n=Mn(l,a(i))),{c(){r&&r.c(),e=z(),t=P("div"),n&&N(n.$$.fragment),f(t,"class","svelte-1ot3duq"),H(t,"mobile",i[1])},m(s,u){r&&r.m(s,u),C(s,e,u),C(s,t,u),n&&R(n,t,null),o=!0},p(s,u){if(s[1]?r||(r=Zd(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=Mn(l,a(s)),N(n.$$.fragment),d(n.$$.fragment,1),R(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&&(k(e),k(t)),r&&r.d(s),n&&D(n)}}}function Kb(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:$n.KeyK,$$slots:{default:[Ub]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new gt({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){R(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],Oe(()=>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 Wb(i,e,t){let n,o,{fakeIsPlaying$:r}=Un();q(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=Xd.noop}=e,{toggle:h}=r,S,b,w,y;function T(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,b=o!==null);if(i.$$.dirty&5152)e:t(11,w=b?o:s);if(i.$$.dirty&2048)e:t(7,y=w?G("tooltip_pause"):G("tooltip_play"));if(i.$$.dirty&2048)e:t(8,n=w?Or:yl)};e:t(6,S=h);return[l,a,u,c,m,b,S,y,n,r,s,w,o,T]}var tu=class extends K{constructor(e){super(),W(this,e,Wb,Kb,U,{ref:0,isMobile:1,isPlaying:10,disabled:2,className:3,click:4},qb)}},ql=tu;function Gb(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=se(a,l[s]);return{c(){e=V("svg"),r&&r.c(),t=V("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"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Be(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"26"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function jb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var iu=class extends K{constructor(e){super(),W(this,e,jb,Gb,U,{})}},Jd=iu;function Qb(i){let e,t;return e=new Jd({props:{style:i[1],"data-testid":i[0]?"prev-icon":"next-icon"}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,[o]){let r={};o&2&&(r.style=n[1]),o&1&&(r["data-testid"]=n[0]?"prev-icon":"next-icon"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Yb(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 nu=class extends K{constructor(e){super(),W(this,e,Yb,Qb,U,{isPrev:0,isMobile:2})}},xd=nu;function Zb(i){let e,t;return e=new xd({props:{isMobile:i[1],isPrev:i[3]==="prev"}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isMobile=n[1]),o&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 Xb(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:[Zb]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new gt({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){R(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],Oe(()=>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 Jb(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 ou=class extends K{constructor(e){super(),W(this,e,Jb,Xb,U,{ref:0,isMobile:1,disabled:2,type:3,click:4})}},wl=ou;function xb(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=se(a,l[s]);return{c(){e=V("svg"),r&&r.c(),t=V("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"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Be(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"vk-logo-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function $b(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var lu=class extends K{constructor(e){super(),W(this,e,$b,xb,U,{})}},$d=lu;function e4(i){Pe(i,"svelte-1bbobod",".mobile.svelte-1bbobod{transform:scale(1.1) translateY(-1px)}")}function em(i){let e,t,n,o,r,l,a;return{c(){e=V("path"),t=V("path"),n=V("path"),o=V("path"),r=V("path"),l=V("path"),a=V("path"),f(e,"d","M30.7286 15.0483H33.2239L36.8885 5H35.0776L32.1402 13.2809H31.8551L29.0175 5H27.1781L30.7286 15.0483Z"),f(e,"fill","white"),f(t,"d","M46.2591 15.0483L41.6392 9.84599L45.9026 5H43.7923L40.2276 9.09059H39.814V5H38.103V15.0483H39.814V10.7439H40.2418L44.0062 15.0483H46.2591Z"),f(t,"fill","white"),f(n,"d","M56.0753 9.88875C56.9594 9.54668 57.5155 8.76277 57.5155 7.73656C57.5155 6.14023 56.1894 5 54.2502 5H50.329V15.0483H54.5354C56.4888 15.0483 57.8149 13.9081 57.8149 12.2405C57.8149 11.0717 57.159 10.2023 56.0753 9.88875ZM52.04 6.49656H54.2502C55.1628 6.49656 55.7902 7.05242 55.7902 7.87909C55.7902 8.69151 55.1628 9.24737 54.2502 9.24737H52.04V6.49656ZM54.5354 13.5518H52.04V10.7439H54.5354C55.4337 10.7439 56.0611 11.314 56.0611 12.1407C56.0611 12.9816 55.4337 13.5518 54.5354 13.5518Z"),f(n,"fill","white"),f(o,"d","M59.3767 15.0483H61.701L64.4672 9.54668H64.6954V15.0483H66.2638V7.63679H63.9396L61.1734 13.1384H60.9452V7.63679H59.3767V15.0483Z"),f(o,"fill","white"),f(r,"d","M67.3373 17.2575H68.9771V15.0483H74.3099V17.2575H75.9497V13.5518H74.6664V7.63679H69.2337L68.863 11.4281C68.7347 12.7678 68.3354 13.5518 67.5227 13.5518H67.3373V17.2575ZM69.8326 13.5518C70.2319 13.1669 70.403 12.5113 70.517 11.3996L70.7452 9.13335H73.0266V13.5518H69.8326Z"),f(r,"fill","white"),f(l,"d","M84.222 11.257C84.222 9.11909 82.625 7.49426 80.372 7.49426C78.1191 7.49426 76.5221 9.10484 76.5221 11.3425C76.5221 13.5803 78.1191 15.1908 80.372 15.1908C81.912 15.1908 83.3664 14.4639 83.9225 13.0529L82.3826 12.7963C82.0261 13.3237 81.3416 13.6943 80.4718 13.6943C79.217 13.6943 78.39 12.9246 78.2332 11.7844H84.1934C84.2077 11.6276 84.222 11.4566 84.222 11.257ZM80.372 8.91955C81.3987 8.91955 82.1687 9.57519 82.4396 10.5016H78.333C78.6039 9.54668 79.3739 8.91955 80.372 8.91955Z"),f(l,"fill","white"),f(a,"d","M89.0359 15.1908C91.3602 15.1908 92.9999 13.5945 92.9999 11.3425C92.9999 9.09059 91.3602 7.49426 89.0359 7.49426C86.7117 7.49426 85.0719 9.09059 85.0719 11.3425C85.0719 13.5945 86.7117 15.1908 89.0359 15.1908ZM89.0359 13.6943C87.6956 13.6943 86.783 12.7393 86.783 11.3425C86.783 9.94576 87.6956 8.99082 89.0359 8.99082C90.3763 8.99082 91.2889 9.94576 91.2889 11.3425C91.2889 12.7393 90.3763 13.6943 89.0359 13.6943Z"),f(a,"fill","white")},m(s,u){C(s,e,u),C(s,t,u),C(s,n,u),C(s,o,u),C(s,r,u),C(s,l,u),C(s,a,u)},d(s){s&&(k(e),k(t),k(n),k(o),k(r),k(l),k(a))}}}function t4(i){let e,t,n,o=!i[0]&&em(i);return{c(){e=V("svg"),t=V("path"),o&&o.c(),f(t,"d","M19.0283 1.47947C17.5482 1.47862e-05 15.3189 -2.59106e-06 10.8969 -1.8179e-06L10.1111 -1.68051e-06C5.68913 -9.0734e-07 3.47814 1.72463e-05 1.97977 1.47947C0.499685 2.95892 0.499757 5.18723 0.499758 9.60732L0.499758 10.3927C0.499758 14.8128 0.499687 17.0228 1.97978 18.5205C3.45987 20 5.68914 20 10.1111 20L10.8969 20C15.3189 20 17.5299 20 19.0283 18.5205C20.5084 17.0411 20.5084 14.8128 20.5084 10.3927L20.5084 9.60732C20.5084 5.16896 20.5084 2.95892 19.0283 1.47947ZM8.06464 14.8128C6.69419 15.3242 5.21408 14.4658 4.93999 13.0046C4.73899 12.0183 4.64761 10.9954 4.64761 9.93605C4.64761 8.91322 4.73899 7.90867 4.93999 6.94064C5.21408 5.47945 6.69419 4.62102 8.06464 5.13244C9.91018 5.80823 11.5913 6.84928 13.0166 8.18261C14.0581 9.15064 14.0581 10.8128 13.0166 11.7808C11.573 13.0959 9.89191 14.137 8.06464 14.8128ZM19.9602 10.3744C19.9602 14.6484 19.9601 16.7854 18.6262 18.1005C17.5116 19.2146 15.8305 19.3972 12.7973 19.4155C13.9302 19.2328 14.7342 18.9041 15.3554 18.2648C16.6893 16.9132 16.6893 14.7397 16.6893 10.3744L16.6893 9.57075C16.6893 5.20546 16.6893 3.032 15.3554 1.6804C14.7342 1.04113 13.9302 0.712308 12.7973 0.52966C15.8305 0.566189 17.5116 0.748873 18.6079 1.84476C19.9418 3.1781 19.9419 5.31505 19.9419 9.57075L19.9419 10.3744L19.9602 10.3744ZM11.6826 9.68036C11.8653 9.84474 11.8653 10.137 11.6826 10.3013C10.4401 11.4338 8.99653 12.3105 7.40681 12.895C7.16926 12.9863 6.91344 12.8402 6.85863 12.5845C6.69417 11.7443 6.60283 10.8676 6.60283 9.97262C6.60282 9.09591 6.69417 8.23744 6.85862 7.39726C6.91344 7.14155 7.16926 6.9954 7.40681 7.08672C8.97826 7.67119 10.4401 8.54794 11.6826 9.68036Z"),f(t,"fill","white"),f(e,"width",i[2]),f(e,"height","20"),f(e,"viewBox",n="0 0 "+(i[2]+1)+" 20"),f(e,"fill","none"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"aria-hidden","true"),f(e,"data-testid",i[3]),f(e,"class","svelte-1bbobod"),H(e,"mobile",i[1])},m(r,l){C(r,e,l),p(e,t),o&&o.m(e,null)},p(r,[l]){r[0]?o&&(o.d(1),o=null):o||(o=em(r),o.c(),o.m(e,null)),l&4&&f(e,"width",r[2]),l&4&&n!==(n="0 0 "+(r[2]+1)+" 20")&&f(e,"viewBox",n),l&8&&f(e,"data-testid",r[3]),l&2&&H(e,"mobile",r[1])},i:me,o:me,d(r){r&&k(e),o&&o.d()}}}function i4(i,e,t){let{short:n=!1}=e,{isMobile:o=!1}=e,r,l;return i.$$set=a=>{"short"in a&&t(0,n=a.short),"isMobile"in a&&t(1,o=a.isMobile)},i.$$.update=()=>{if(i.$$.dirty&1)e:t(2,r=n?20:93),t(3,l=n?"vk-video-logo-icon--short":"vk-video-logo-icon")},[n,o,r,l]}var ru=class extends K{constructor(e){super(),W(this,e,i4,t4,U,{short:0,isMobile:1},e4)}},tm=ru;function n4(i){let e,t,n,o,r,l,a,s,u,c,m,h,S;return{c(){e=V("svg"),t=V("g"),n=V("path"),o=V("path"),r=V("defs"),l=V("filter"),a=V("feFlood"),s=V("feColorMatrix"),u=V("feOffset"),c=V("feGaussianBlur"),m=V("feColorMatrix"),h=V("feBlend"),S=V("feBlend"),f(n,"fill-rule","evenodd"),f(n,"clip-rule","evenodd"),f(n,"d","M15 16.6C15 14.6398 15 13.6597 15.3815 12.911C15.717 12.2525 16.2525 11.717 16.911 11.3815C17.6597 11 18.6398 11 20.6 11H21.96C24.4242 11 25.6563 11 26.5976 11.4796C27.4255 11.9014 28.0986 12.5745 28.5204 13.4024C29 14.3437 29 15.5758 29 18.04V21.96C29 24.4242 29 25.6563 28.5204 26.5976C28.0986 27.4255 27.4255 28.0986 26.5976 28.5204C25.6563 29 24.4242 29 21.96 29H20.6C18.6398 29 17.6597 29 16.911 28.6185C16.2525 28.283 15.717 27.7475 15.3815 27.089C15 26.3403 15 25.3602 15 23.4V16.6ZM24.2646 18.3443C25.1663 18.8828 25.6171 19.1521 25.7699 19.5007C25.9032 19.805 25.9032 20.1511 25.7699 20.4554C25.6171 20.804 25.1663 21.0733 24.2646 21.6118L21.8788 23.0367C20.9363 23.5997 20.465 23.8812 20.0774 23.8445C19.7393 23.8125 19.4311 23.6376 19.2303 23.3638C19 23.0498 19 22.5008 19 21.403V18.5531C19 17.4552 19 16.9063 19.2303 16.5923C19.4311 16.3185 19.7393 16.1436 20.0774 16.1116C20.465 16.0749 20.9363 16.3564 21.8788 16.9193L24.2646 18.3443ZM13 17.04C13 14.5758 13 13.3437 13.4796 12.4025C13.7214 11.9278 14.0459 11.504 14.4348 11.1493C14.0394 11.2203 13.7058 11.325 13.4024 11.4796C12.5745 11.9015 11.9014 12.5746 11.4796 13.4025C11 14.3437 11 15.5758 11 18.04V21.96C11 24.4243 11 25.6564 11.4796 26.5976C11.9014 27.4255 12.5745 28.0986 13.4024 28.5205C13.7058 28.6751 14.0394 28.7798 14.4348 28.8508C14.0459 28.4961 13.7214 28.0723 13.4796 27.5976C13 26.6564 13 25.4243 13 22.96V17.04Z"),f(n,"fill","white"),f(o,"d","M14.6032 11.334L15.2433 10.7501L14.3906 10.9032C13.9767 10.9775 13.6187 11.0888 13.2889 11.2569C12.414 11.7027 11.7026 12.414 11.2568 13.289C10.9961 13.8007 10.872 14.3806 10.8108 15.1298C10.75 15.8737 10.75 16.8061 10.75 18.0284V18.04V21.96V21.9717C10.75 23.194 10.75 24.1264 10.8108 24.8703C10.872 25.6195 10.9961 26.1994 11.2568 26.7111C11.7026 27.5861 12.414 28.2974 13.2889 28.7432C13.6187 28.9113 13.9767 29.0225 14.3906 29.0969L15.2433 29.25L14.6032 28.6661C14.2365 28.3315 13.9304 27.9318 13.7023 27.4841C13.4835 27.0546 13.3678 26.5478 13.3091 25.8296C13.2502 25.1084 13.25 24.1963 13.25 22.96V17.04C13.25 15.8038 13.2502 14.8917 13.3091 14.1705C13.3678 13.4522 13.4835 12.9455 13.7023 12.516C13.9304 12.0683 14.2365 11.6686 14.6032 11.334ZM15.1587 12.7975C14.947 13.213 14.8475 13.6818 14.7985 14.2808C14.75 14.8747 14.75 15.6181 14.75 16.5884V16.6V23.4V23.4116C14.75 24.3819 14.75 25.1253 14.7985 25.7192C14.8475 26.3182 14.947 26.787 15.1587 27.2025C15.5183 27.9081 16.0919 28.4818 16.7975 28.8413C17.213 29.053 17.6818 29.1525 18.2808 29.2015C18.8747 29.25 19.6181 29.25 20.5884 29.25H20.6H21.96H21.9717C23.1939 29.25 24.1264 29.25 24.8703 29.1892C25.6194 29.128 26.1993 29.0039 26.7111 28.7432C27.586 28.2974 28.2974 27.586 28.7432 26.7111C29.0039 26.1993 29.128 25.6194 29.1892 24.8703C29.25 24.1264 29.25 23.1939 29.25 21.9717V21.96V18.04V18.0283C29.25 16.8061 29.25 15.8736 29.1892 15.1297C29.128 14.3806 29.0039 13.8007 28.7432 13.2889C28.2974 12.414 27.586 11.7026 26.7111 11.2568C26.1993 10.9961 25.6194 10.872 24.8703 10.8108C24.1264 10.75 23.1939 10.75 21.9717 10.75H21.96H20.6H20.5884C19.6181 10.75 18.8747 10.75 18.2808 10.7985C17.6818 10.8475 17.213 10.947 16.7975 11.1587C16.0919 11.5183 15.5183 12.0919 15.1587 12.7975ZM24.1364 18.5589C24.5914 18.8307 24.9178 19.0259 25.1508 19.1958C25.3846 19.3661 25.4915 19.4884 25.5409 19.601C25.6462 19.8413 25.6462 20.1147 25.5409 20.355C25.4915 20.4677 25.3846 20.59 25.1508 20.7603C24.9178 20.9302 24.5914 21.1254 24.1364 21.3972L21.7506 22.8221C21.2751 23.1061 20.9332 23.31 20.662 23.44C20.3893 23.5707 20.2254 23.6074 20.1009 23.5956C19.8339 23.5703 19.5905 23.4322 19.4319 23.2159C19.358 23.1151 19.3054 22.9556 19.2778 22.6545C19.2503 22.3549 19.25 21.9568 19.25 21.403V18.5531C19.25 17.9992 19.2503 17.6012 19.2778 17.3016C19.3054 17.0005 19.358 16.841 19.4319 16.7402C19.5905 16.5239 19.8339 16.3858 20.1009 16.3605C20.2254 16.3487 20.3893 16.3854 20.662 16.5161C20.9332 16.6461 21.2751 16.85 21.7506 17.134L24.1364 18.5589Z"),f(o,"stroke","black"),f(o,"stroke-opacity","0.12"),f(o,"stroke-width","0.5"),f(t,"filter","url(#filter0_d_207_5101)"),f(a,"flood-opacity","0"),f(a,"result","BackgroundImageFix"),f(s,"in","SourceAlpha"),f(s,"type","matrix"),f(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(s,"result","hardAlpha"),f(c,"stdDeviation","2.5"),f(m,"type","matrix"),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,"mode","normal"),f(h,"in2","BackgroundImageFix"),f(h,"result","effect1_dropShadow_207_5101"),f(S,"mode","normal"),f(S,"in","SourceGraphic"),f(S,"in2","effect1_dropShadow_207_5101"),f(S,"result","shape"),f(l,"id","filter0_d_207_5101"),f(l,"x","5.5"),f(l,"y","5.35095"),f(l,"width","29"),f(l,"height","29.2982"),f(l,"filterUnits","userSpaceOnUse"),f(l,"color-interpolation-filters","sRGB"),f(e,"width","40"),f(e,"height","40"),f(e,"viewBox","0 0 40 40"),f(e,"fill","none"),f(e,"xmlns","http://www.w3.org/2000/svg")},m(b,w){C(b,e,w),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,S)},p:me,i:me,o:me,d(b){b&&k(e)}}}var su=class extends K{constructor(e){super(),W(this,e,null,n4,U,{})}},im=su;function l4(i){let e,t;return e=new $d({}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p:me,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function r4(i){let e,t;return e=new tm({props:{short:i[5]}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&32&&(r.short=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 s4(i){let e,t;return e=new im({}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p:me,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function a4(i){let e,t,n,o,r=[s4,r4,l4],l=[];function a(s,u){return s[7]||s[4]?0:s[2]?1:2}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=lt()},m(s,u){l[e].m(s,u),C(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&&k(n),l[e].d(s)}}}function u4(i){let e,t,n;function o(l){i[13](l)}let r={className:"btn-full-opacity",disabled:!i[1],click:i[8],testId:i[2]?"btn-vk-video-logo":"btn-vk-logo",ariaLabel:i[3],$$slots:{default:[a4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new gt({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){R(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&65588&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],Oe(()=>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,e,t){let n,o,{ref:r=void 0}=e,{logoClickable:l=!1}=e,{targetUrl:a=""}=e,{click:s}=e,u=Ht(),c=it(),m=c.ui.currentGridType$;q(i,m,g=>t(11,n=g));let h=c.ui.isMobile;q(i,h,g=>t(12,o=g));let S,b,w,y,T=()=>{var g,E;s(),(E=(g=c.callbacks)==null?void 0:g.onLogoClicked)==null||E.call(g),a&&window.open(a,"_blank")};function v(g){r=g,t(0,r)}i.$$set=g=>{"ref"in g&&t(0,r=g.ref),"logoClickable"in g&&t(1,l=g.logoClickable),"targetUrl"in g&&t(9,a=g.targetUrl),"click"in g&&t(10,s=g.click)},i.$$.update=()=>{if(i.$$.dirty&6148)e:t(5,y=(o||Dr(n,"l"))&&b)};e:t(3,S=u.logoType==="vk_video"?G("tooltip_vk_video_logo"):G("tooltip_vk_logo"));e:t(2,b=u.logoType==="vk_video");e:t(4,w=u.logoType==="vk_video_mobile");return[r,l,b,S,w,y,m,h,T,a,s,n,o,v]}var au=class extends K{constructor(e){super(),W(this,e,f4,u4,U,{ref:0,logoClickable:1,targetUrl:9,click:10})}},Fr=au;var om=require("@vkontakte/videoplayer-core");var uu=require("@vkontakte/videoplayer-core");function c4(i){Pe(i,"svelte-8z1bf5",".connecting.svelte-8z1bf5 .wave.svelte-8z1bf5{animation-duration:1s;animation-iteration-count:infinite}.connecting.svelte-8z1bf5 .wave1.svelte-8z1bf5{animation-name:svelte-8z1bf5-wave1}.connecting.svelte-8z1bf5 .wave2.svelte-8z1bf5{animation-name:svelte-8z1bf5-wave2}.connecting.svelte-8z1bf5 .wave3.svelte-8z1bf5{animation-name:svelte-8z1bf5-wave3}@keyframes svelte-8z1bf5-wave1{0%{opacity:0.3}33%{opacity:1}66%{opacity:1}100%{opacity:1}}@keyframes svelte-8z1bf5-wave2{0%{opacity:0.3}33%{opacity:0.3}66%{opacity:1}100%{opacity:1}}@keyframes svelte-8z1bf5-wave3{0%{opacity:0.3}33%{opacity:0.3}66%{opacity:0.3}100%{opacity:1}}")}function d4(i){let e,t,n,o,r,l,a,s;return{c(){e=V("svg"),t=V("g"),n=V("path"),o=V("path"),r=V("path"),l=V("path"),a=V("path"),s=V("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){C(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&&k(e)}}}function m4(i){let e,t,n,o,r,l,a,s,u,c,m,h,S,b,w,y,T,v,g,E,B;return{c(){e=V("svg"),t=V("g"),n=V("mask"),o=V("path"),l=V("path"),a=V("path"),u=V("path"),c=V("defs"),m=V("clipPath"),h=V("path"),b=V("filter"),w=V("feFlood"),y=V("feColorMatrix"),T=V("feOffset"),v=V("feGaussianBlur"),g=V("feColorMatrix"),E=V("feBlend"),B=V("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",S=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(g,"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(B,"in","SourceGraphic"),f(B,"in2","effect1_dropShadow_4085_178456"),f(B,"result","shape"),f(b,"id","b"),f(b,"x","-3.4"),f(b,"y","-1.4"),f(b,"width","30.8"),f(b,"height","26.802"),f(b,"filterUnits","userSpaceOnUse"),f(b,"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,F){C(L,e,F),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,b),p(b,w),p(b,y),p(b,T),p(b,v),p(b,g),p(b,E),p(b,B)},p(L,F){F&2&&r!==(r=L[1]?"#2688EB":"#fff")&&f(o,"fill",r),F&2&&s!==(s=L[1]?"#2688EB":"#fff")&&f(a,"fill",s),F&2&&S!==(S=L[1]?"#2688EB":"#fff")&&f(h,"fill",S)},d(L){L&&k(e)}}}function p4(i){let e;function t(r,l){return r[0]?m4:d4}let n=t(i,-1),o=n(i);return{c(){o.c(),e=lt()},m(r,l){o.m(r,l),C(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:me,o:me,d(r){r&&k(e),o.d(r)}}}function _4(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===uu.ChromecastState.CONNECTING),t(1,r=o===uu.ChromecastState.CONNECTED)},[n,r,l,o]}var fu=class extends K{constructor(e){super(),W(this,e,_4,p4,U,{isMobile:0,state:3},c4)}},nm=fu;var lm=require("@vkontakte/videoplayer-shared");function h4(i){let e,t;return e=new nm({props:{isMobile:i[1],state:i[2]}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isMobile=n[1]),o&4&&(r.state=n[2]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function g4(i){let e,t,n;function o(l){i[5](l)}let r={ariaLabel:i[4],click:i[3],testId:"btn-chromecast",$$slots:{default:[h4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new gt({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){R(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],Oe(()=>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 b4(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{state:r}=e,{click:l=lm.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===om.ChromecastState.CONNECTED?G("tooltip_chromecast_on"):G("tooltip_chromecast_off"))},[n,o,r,l,a,s]}var cu=class extends K{constructor(e){super(),W(this,e,b4,g4,U,{ref:0,isMobile:1,state:2,click:3})}},Hr=cu;var zr=require("@vkontakte/videoplayer-core");function v4(i){let e,t;return e=new br({props:{isActive:i[1]}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isActive=n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function y4(i){let e,t;return e=new gt({props:{className:i[0]?"":"btn--live btn-full-opacity",testId:i[1]?"btn-live":"btn-live-offset",disabled:i[1]&&i[3]===zr.PlaybackState.PLAYING,ariaLabel:i[2],click:i[4],$$slots:{default:[v4]},$$scope:{ctx:i}}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.className=n[0]?"":"btn--live btn-full-opacity"),o&2&&(r.testId=n[1]?"btn-live":"btn-live-offset"),o&10&&(r.disabled=n[1]&&n[3]===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){D(e,n)}}}function w4(i,e,t){let n,{isMobile:o=!1}=e,{isActiveLive:r=!1}=e,{ariaLabel:l=""}=e,a=it(),s=a.state.playbackState$;q(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 du=class extends K{constructor(e){super(),W(this,e,w4,y4,U,{isMobile:0,isActiveLive:1,ariaLabel:2})}},qr=du;function k4(i){Pe(i,"svelte-5ygsa2",'.tooltip-wrapper.svelte-5ygsa2{position:relative;display:block}.tooltip.svelte-5ygsa2{position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;transform:translateX(-50%)}.pointer.svelte-5ygsa2:after{position:absolute;bottom:0;left:50%;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;transform:translate(-50%, 5px)}.tooltip.active.svelte-5ygsa2{opacity:1;visibility:visible}')}function C4(i){let e,t,n,o,r=i[9].default,l=Ee(r,i,i[8],null);return{c(){e=P("div"),t=P("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){C(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)&&Ve(l,r,a,a[8],o?Me(r,a[8],s,null):Ae(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&&k(e),l&&l.d(a),i[10](null),i[11](null)}}}function S4(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 S(y){if(!h)return 0;let{width:T}=h.getBoundingClientRect(),v=T/2;return y<v?v:y>c-v?c-v:y}function b(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=S(s))},[l,a,u,m,h,n,s,c,r,o,b,w]}var mu=class extends K{constructor(e){super(),W(this,e,S4,C4,U,{active:0,pointer:1,translateXPx:6,translateYPx:2,containerWidth:7},k4)}},rm=mu;var Ur=(i,e,t)=>t.filter(n=>n.time<i*e).pop();function P4(i){Pe(i,"svelte-l51fc1",".timeline-preview.svelte-l51fc1{bottom:18px;border-radius:2px;pointer-events:none}.timeline-preview.mobile.svelte-l51fc1{bottom:72px}.preview.svelte-l51fc1{margin-bottom:10px;background-color:var(--timeline-preview-bg);box-shadow:0 0 2px var(--timeline-preview-shadow), 0 8px 24px var(--timeline-preview-shadow);border-radius:8px;border:1px solid var(--white)}.episode.svelte-l51fc1{margin-top:10px;margin-bottom:4px;font-size:13px;line-height:16px;text-shadow:0 8px 24px var(--timeline-preview-shadow), 0 0 2px var(--timeline-preview-shadow);max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;font-weight:500}.time.svelte-l51fc1{font-size:13px;line-height:16px;text-align:center;color:var(--slider-filled-bg);text-shadow:0 8px 24px var(--timeline-preview-shadow), 0 0 2px var(--timeline-preview-shadow);font-weight:500}")}function sm(i){let e;function t(r,l){return r[2]&&r[10].completed===!1?I4:T4}let n=t(i,-1),o=n(i);return{c(){o.c(),e=lt()},m(r,l){o.m(r,l),C(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&&k(e),o.d(r)}}}function T4(i){let e=(i[10].text||"")+"",t;return{c(){t=Re(e)},m(n,o){C(n,t,o)},p(n,o){o&1024&&e!==(e=(n[10].text||"")+"")&&je(t,e)},d(n){n&&k(t)}}}function I4(i){let e=G("tooltip_episode_unfinished")+"",t;return{c(){t=Re(e)},m(n,o){C(n,t,o)},p:me,d(n){n&&k(t)}}}function E4(i){let e,t,n,o,r,l,a,s,u=i[10]&&sm(i);return{c(){e=P("div"),t=P("div"),o=z(),r=P("div"),u&&u.c(),l=z(),a=P("div"),s=Re(i[0]),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(a,"class","time svelte-l51fc1"),f(e,"class","timeline-preview svelte-l51fc1"),H(e,"mobile",i[1])},m(c,m){C(c,e,m),p(e,t),p(e,o),p(e,r),u&&u.m(r,null),p(e,l),p(e,a),p(a,s)},p(c,[m]){m&3064&&n!==(n=`width: ${c[3]}px; height: ${c[4]}px; background-image: url(${c[5]}); background-size: ${c[6]}px ${c[7]}px; background-position: ${c[8]}px ${c[9]}px; transform: translateY(${c[11]%180?-35:0}px) rotate(${c[11]}deg);`)&&f(t,"style",n),c[10]?u?u.p(c,m):(u=sm(c),u.c(),u.m(r,null)):u&&(u.d(1),u=null),m&1&&je(s,c[0]),m&2&&H(e,"mobile",c[1])},i:me,o:me,d(c){c&&k(e),u&&u.d()}}}var kl=150;function M4(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=it().ui.rotateAlpha;q(i,h,F=>t(11,n=F));let S,b,w,y,T,v,g,E;function B(){let F=a.frameWidth,ae=a.frameHeight;return F>kl?(ae=ae/F*kl,F=kl):ae>kl&&(F=F/ae*kl,ae=kl),{width:F,height:ae}}function L(F){let ae;a.isUV?ae=Math.floor(u*F/a.frequency):ae=Math.min(a.countTotal,Math.max(0,Math.floor(a.countTotal*F)));let oe=Math.floor(ae/a.countPerImage),I=Math.floor(ae%a.countPerImage/a.countPerRow),le=ae%a.countPerRow,$=Math.floor(a.countPerImage/a.countPerRow);!a.isUV&&oe===Math.floor(a.countTotal/a.countPerImage)&&($=Math.floor(a.countTotal%a.countPerImage/a.countPerRow),a.countTotal%a.countPerImage%a.countPerRow>0&&$++);let j=a.countPerRow;!a.isUV&&oe===Math.floor(a.countTotal/a.countPerImage)&&a.countTotal%a.countPerImage>0&&(j=Math.min(a.countPerRow,a.countTotal%a.countPerImage));let x=S*j,O=b*$,Q=-le*S,A=-I*b;return{imgSrc:a.links[oe],imgWidth:x,imgHeight:O,imgOffsetX:Q,imgOffsetY:A}}i.$$set=F=>{"time"in F&&t(0,o=F.time),"isMobile"in F&&t(1,r=F.isMobile),"videoEpisodes"in F&&t(13,l=F.videoEpisodes),"previewThumbsData"in F&&t(14,a=F.previewThumbsData),"progress"in F&&t(15,s=F.progress),"duration"in F&&t(16,u=F.duration),"isInteractive"in F&&t(2,c=F.isInteractive)},i.$$.update=()=>{if(i.$$.dirty&32768)e:t(5,{imgSrc:w,imgWidth:y,imgHeight:T,imgOffsetX:v,imgOffsetY:g}=L(s),w,(t(6,y),t(15,s)),(t(7,T),t(15,s)),(t(8,v),t(15,s)),(t(9,g),t(15,s)));if(i.$$.dirty&106496)e:t(10,E=Ur(s,u,l))};e:t(3,{width:S,height:b}=B(),S,t(4,b));return[o,r,c,S,b,w,y,T,v,g,E,n,h,l,a,s,u]}var pu=class extends K{constructor(e){super(),W(this,e,M4,E4,U,{time:0,isMobile:1,videoEpisodes:13,previewThumbsData:14,progress:15,duration:16,isInteractive:2},P4)}},am=pu;function V4(i){Pe(i,"svelte-5lzly8",".time.svelte-5lzly8{display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8)}")}function A4(i){let e,t;return{c(){e=P("span"),t=Re(i[7]),f(e,"class","time svelte-5lzly8")},m(n,o){C(n,e,o),p(e,t)},p(n,o){o[0]&128&&je(t,n[7])},i:me,o:me,d(n){n&&k(e)}}}function L4(i){let e,t;return e=new am({props:{time:i[7],isMobile:i[10],videoEpisodes:i[3],previewThumbsData:i[21],progress:i[8],duration:i[1],isInteractive:i[23]}}),{c(){N(e.$$.fragment)},m(n,o){R(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){D(e,n)}}}function B4(i){let e,t,n,o,r=[L4,A4],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=lt()},m(s,u){l[e].m(s,u),C(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&&k(n),l[e].d(s)}}}function R4(i){let e,t,n,o,r=[i[9]],l={$$slots:{default:[B4]},$$scope:{ctx:i}};for(let a=0;a<r.length;a+=1)l=se(l,r[a]);return e=new rm({props:l}),n=new vl({props:{isActiveLive:i[11],isMobile:i[10],ariaLabel:G("aria_timeline"),ariaValueMin:0,ariaValueMax:i[1],ariaValueNow:Math.round(i[6]*100),ariaValueText:G("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(){N(e.$$.fragment),t=z(),N(n.$$.fragment)},m(a,s){R(e,a,s),C(a,t,s),R(n,a,s),o=!0},p(a,s){let u=s[0]&512?Be(r,[Zf(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=G("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&&k(t),D(e,a),D(n,a)}}}function D4(i,e,t){let n,o,r,l,a,s,u,c,m,h,S,{showTimeline:b=!1}=e,w=it(),y=Ht(),T=w.state.bufferedProgress$;q(i,T,ke=>t(12,h=ke));let v=w.state.positionWithScrubbing$;q(i,v,ke=>t(39,s=ke));let g=w.state.duration$;q(i,g,ke=>t(1,r=ke));let E=w.state.isLive$;q(i,E,ke=>t(0,o=ke));let B=w.state.isActiveLive$;q(i,B,ke=>t(11,m=ke));let L=w.ui.isMobile;q(i,L,ke=>t(10,c=ke));let F=y.features.episodes?w.actions.internal.getVideoEpisodes():void 0,ae=w.actions.internal.getPreviewThumbsData(),oe=w.state.interactiveEpisodes$;q(i,oe,ke=>t(40,u=ke));let I=w.state.isInteractive,le=w.state.isInteractiveTime$;q(i,le,ke=>t(2,l=ke));let $=w.state.isInteractiveExpectation$;q(i,$,ke=>t(38,a=ke));let j=w.actions.internal.correctSeekTimeToInteractive,x=w.ui.controls.disabledControls$;q(i,x,ke=>t(13,S=ke));let O,Q,A,Y,Te=!1,Qe="",Ke=0,Xe=0,We=0,ye;function X(ke){return!j||!I?ke:j(ke*r)/r}function ve(ke){w.actions.internal.startScrubbing(X(ke))}function He(ke){l||w.actions.internal.progressScrubbing(X(ke))}function Ze(ke){w.actions.internal.completeScrubbing(X(ke)),t(34,Te=!1)}function $e(ke,Z,Ce){Ue(ke,Z,Ce),t(34,Te=!0)}function be(ke,Z,Ce){Ue(ke,Z,Ce),t(34,Te=!0)}function De(){t(34,Te=!1)}function Ue(ke,Z,Ce){t(8,We=ke),t(35,Ke=Z),Ce&&t(36,Xe=Ce),t(7,Qe=nt(ke))}function nt(ke){let Z=Nn((o?1-ke:ke)*r);return o?`-${Z}`:Z}return i.$$set=ke=>{"showTimeline"in ke&&t(33,b=ke.showTimeline)},i.$$.update=()=>{if(i.$$.dirty[1]&512)e:t(3,O=I?u:F);if(i.$$.dirty[0]&2)e:t(4,Q=Nn(r));if(i.$$.dirty[1]&256)e:t(5,A=Nn(s));if(i.$$.dirty[0]&2|i.$$.dirty[1]&256)e:t(6,Y=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:Xe,translateXPx:Ke,translateYPx:I&&ae?-36:-16,active:Te&&b&&!ye,pointer:!y.features.timelinePreview||!ae||o})},[o,r,l,O,Q,A,Y,Qe,We,n,c,m,h,S,y,T,v,g,E,B,L,ae,oe,I,le,$,x,ve,He,Ze,$e,be,De,b,Te,Ke,Xe,ye,a,s,u]}var _u=class extends K{constructor(e){super(),W(this,e,D4,R4,U,{showTimeline:33},V4,[-1,-1])}},um=_u;function N4(i){let e,t;return e=new vl({props:{ariaValueMin:0,ariaValueMax:i[0],ariaValueNow:Math.round(i[3]*100),ariaValueText:G("aria_timeline_value",{position:i[2],duration:i[1]}),filledProgress:i[3],isAds:!0,hideHandel:!0,squareBorders:i[4]}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.ariaValueMax=n[0]),o&8&&(r.ariaValueNow=Math.round(n[3]*100)),o&6&&(r.ariaValueText=G("aria_timeline_value",{position:n[2],duration:n[1]})),o&8&&(r.filledProgress=n[3]),o&16&&(r.squareBorders=n[4]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function O4(i,e,t){let n,{position:o=0}=e,{duration:r=0}=e,a=it().ui.isMobile;q(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=Nn(r));if(i.$$.dirty&64)e:t(2,u=Nn(o));if(i.$$.dirty&65)e:t(3,c=o/r)},[r,s,u,c,n,a,o]}var hu=class extends K{constructor(e){super(),W(this,e,O4,N4,U,{position:6,duration:0})}},Kr=hu;function F4(i){Pe(i,"svelte-1gqonyf",".timeline.svelte-1gqonyf{position:relative;pointer-events:all;display:flex;align-items:center;bottom:0;width:100%;min-width:86px;padding:3px 10px 4px;box-sizing:border-box}.timeline.mobile.svelte-1gqonyf{height:16px;padding:6px 12px 7px;margin-top:6px}.timeline-stub.svelte-1gqonyf{width:100%;min-width:20px}.timeline-stub.mobile.svelte-1gqonyf{height:8px}")}function H4(i){let e;return{c(){e=P("div"),f(e,"class","timeline-stub svelte-1gqonyf"),H(e,"mobile",i[2])},m(t,n){C(t,e,n)},p(t,n){n&4&&H(e,"mobile",t[2])},i:me,o:me,d(t){t&&k(e)}}}function z4(i){let e,t,n,o,r=[U4,q4],l=[];function a(s,u){return s[0]?0:1}return t=a(i,-1),n=l[t]=r[t](i),{c(){e=P("div"),n.c(),f(e,"class","timeline svelte-1gqonyf"),H(e,"mobile",i[2])},m(s,u){C(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)&&H(e,"mobile",s[2])},i(s){o||(d(n),o=!0)},o(s){_(n),o=!1},d(s){s&&k(e),l[t].d()}}}function q4(i){let e,t;return e=new um({props:{showTimeline:i[1]}}),{c(){N(e.$$.fragment)},m(n,o){R(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){D(e,n)}}}function U4(i){let e,t;return e=new Kr({props:{position:i[3],duration:i[4]}}),{c(){N(e.$$.fragment)},m(n,o){R(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){D(e,n)}}}function K4(i){let e,t,n,o,r=[z4,H4],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=lt()},m(s,u){l[e].m(s,u),C(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&&k(n),l[e].d(s)}}}function W4(i,e,t){let n,o,r,l,{isAds:a=!1}=e,{canRewindLive:s}=e,{isRewindableLive:u}=e,{isHidden:c=!1}=e,m=it(),h=m.state.isLive$;q(i,h,T=>t(12,n=T));let S=m.ads.duration;q(i,S,T=>t(4,l=T));let b=m.ads.position;q(i,b,T=>t(3,r=T));let w=m.ui.isMobile;q(i,w,T=>t(2,o=T));let y;return i.$$set=T=>{"isAds"in T&&t(0,a=T.isAds),"canRewindLive"in T&&t(9,s=T.canRewindLive),"isRewindableLive"in T&&t(10,u=T.isRewindableLive),"isHidden"in T&&t(11,c=T.isHidden)},i.$$.update=()=>{if(i.$$.dirty&7681)e:t(1,y=!c&&(!n||n&&s&&u||a))},[a,y,o,r,l,h,S,b,w,s,u,c,n]}var gu=class extends K{constructor(e){super(),W(this,e,W4,K4,U,{isAds:0,canRewindLive:9,isRewindableLive:10,isHidden:11},F4)}},Wr=gu;var dm=require("@vkontakte/videoplayer-shared");function G4(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=se(u,s[c]);return{c(){e=V("svg"),a&&a.c(),t=V("path"),n=V("path"),o=V("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"),ge(e,u)},m(c,m){C(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)&&Ve(a,l,c,c[1],r?Me(l,c[1],m,null):Ae(c[1]),null),ge(e,u=Be(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-icon"},{style:"flex-shrink:0"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){_(a,c),r=!1},d(c){c&&k(e),a&&a.d(c)}}}function j4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var bu=class extends K{constructor(e){super(),W(this,e,j4,G4,U,{})}},fm=bu;function Q4(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=se(a,l[s]);return{c(){e=V("svg"),r&&r.c(),t=V("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"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Be(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"13"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"chevron-light-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function Y4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var vu=class extends K{constructor(e){super(),W(this,e,Y4,Q4,U,{})}},cm=vu;function Z4(i){Pe(i,"svelte-1yhs2ga",".text.svelte-1yhs2ga{padding:0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.text.count.svelte-1yhs2ga{overflow:visible}.text.mobile.svelte-1yhs2ga{padding:0 3px 0 4px}.chevron-episodes.svelte-1yhs2ga{margin-bottom:-4px}")}function X4(i){let e,t,n,o;e=new fm({});function r(s,u){if(s[4]==="FULL")return $4;if(s[4]==="COUNT")return x4}let l=r(i,-1),a=l&&l(i);return{c(){N(e.$$.fragment),t=z(),a&&a.c(),n=lt()},m(s,u){R(e,s,u),C(s,t,u),a&&a.m(s,u),C(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&&(k(t),k(n)),D(e,s),a&&a.d(s)}}}function J4(i){let e,t,n,o,r,l;return r=new cm({}),{c(){e=P("span"),t=Re(i[2]),n=z(),o=P("div"),N(r.$$.fragment),f(e,"class","text mobile svelte-1yhs2ga"),f(o,"class","chevron-episodes svelte-1yhs2ga")},m(a,s){C(a,e,s),p(e,t),C(a,n,s),C(a,o,s),R(r,o,null),l=!0},p(a,s){(!l||s&4)&&je(t,a[2])},i(a){l||(d(r.$$.fragment,a),l=!0)},o(a){_(r.$$.fragment,a),l=!1},d(a){a&&(k(e),k(n),k(o)),D(r)}}}function x4(i){let e,t=i[0].length+"",n;return{c(){e=P("span"),n=Re(t),f(e,"class","text count svelte-1yhs2ga")},m(o,r){C(o,e,r),p(e,n)},p(o,r){r&1&&t!==(t=o[0].length+"")&&je(n,t)},d(o){o&&k(e)}}}function $4(i){let e,t;return{c(){e=P("span"),t=Re(i[2]),f(e,"class","text svelte-1yhs2ga")},m(n,o){C(n,e,o),p(e,t)},p(n,o){o&4&&je(t,n[2])},d(n){n&&k(e)}}}function e3(i){let e,t,n,o,r=[J4,X4],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=lt()},m(s,u){l[e].m(s,u),C(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&&k(n),l[e].d(s)}}}function t3(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:[e3]},$$scope:{ctx:i}};return i[1]!==void 0&&(r.ref=i[1]),e=new gt({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){R(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],Oe(()=>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 i3(i,e,t){var I,le,$;let n,o,r,l,a,s,{position:u=0}=e,{duration:c=0}=e,{timeCodes:m=[]}=e,h=it(),S=(le=(I=h.callbacks)==null?void 0:I.onEpisodeChanged)!=null?le:dm.noop,b=!!(($=h.callbacks)!=null&&$.onEpisodeClicked),w=h.ui.currentGridType$;q(i,w,j=>t(18,a=j));let y=h.ui.episodes.openedByKeyboard$;q(i,y,j=>t(17,l=j));let T=h.ui.episodes.panelOpened$;q(i,T,j=>t(3,r=j));let v=h.ui.isMobile;q(i,v,j=>t(6,s=j));let g,E=j=>{var O,Q,A;if(!!((O=h.callbacks)!=null&&O.onEpisodeClicked)){let Y=dl(j);y.set(Y),T.set(!0),(A=(Q=h.callbacks)==null?void 0:Q.onEpisodeClicked)==null||A.call(Q,Y)}},B,L,F,ae=async(j,x,O)=>{await Qn(),(j==null?void 0:j.getAttribute("aria-expanded"))==="false"&&x&&!O&&(y.set(!1),j.focus())};function oe(j){g=j,t(1,g)}return i.$$set=j=>{"position"in j&&t(13,u=j.position),"duration"in j&&t(14,c=j.duration),"timeCodes"in j&&t(0,m=j.timeCodes)},i.$$.update=()=>{if(i.$$.dirty&24576)e:t(16,n=u/c);if(i.$$.dirty&114689)e:{let j=Ur(n,c,m);j&&(B==null?void 0:B.text)!==j.text&&(S(j),t(15,B=j))}if(i.$$.dirty&32768)e:t(2,o=(B==null?void 0:B.text)||"");if(i.$$.dirty&262144)e:On(a,"xl")?t(4,L="FULL"):On(a,"m")&&Ud(a,"xl")?t(4,L="COUNT"):t(4,L="SHORT");if(i.$$.dirty&4)e:t(5,F=`${G("tooltip_episodes")}: ${o}`);if(i.$$.dirty&131082)e:ae(g,l,r)},[m,g,o,r,L,F,s,b,w,y,T,v,E,u,c,B,n,l,a,oe]}var yu=class extends K{constructor(e){super(),W(this,e,i3,t3,U,{position:13,duration:14,timeCodes:0},Z4)}},Gr=yu;function n3(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=se(s,a[u]);return{c(){e=V("svg"),l&&l.c(),t=V("path"),n=V("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"),ge(e,s)},m(u,c){C(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)&&Ve(l,r,u,u[1],o?Me(r,u[1],c,null):Ae(u[1]),null),ge(e,s=Be(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-to-interactive-icon"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&k(e),l&&l.d(u)}}}function o3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var wu=class extends K{constructor(e){super(),W(this,e,o3,n3,U,{})}},mm=wu;function l3(i){let e,t;return e=new mm({}),{c(){N(e.$$.fragment)},m(n,o){R(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[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:[l3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new gt({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){R(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],Oe(()=>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{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 ku=class extends K{constructor(e){super(),W(this,e,s3,r3,U,{ref:0,hidden:1,disabled:2,click:3})}},jr=ku;function a3(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=se(s,a[u]);return{c(){e=V("svg"),l&&l.c(),t=V("path"),n=V("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"),ge(e,s)},m(u,c){C(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)&&Ve(l,r,u,u[1],o?Me(r,u[1],c,null):Ae(u[1]),null),ge(e,s=Be(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&k(e),l&&l.d(u)}}}function u3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Cu=class extends K{constructor(e){super(),W(this,e,u3,a3,U,{})}},pm=Cu;function f3(i){Pe(i,"svelte-17ceof5",'svg[data-testid="graph-open-icon"] ._closed{visibility:hidden;opacity:0}')}function c3(i){let e,t;return e=new pm({props:{"data-testid":i[0]?"graph-close-icon":"graph-open-icon"}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r["data-testid"]=n[0]?"graph-close-icon":"graph-open-icon"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function d3(i,e,t){let{isOpened:n=!1}=e;return i.$$set=o=>{"isOpened"in o&&t(0,n=o.isOpened)},[n]}var Su=class extends K{constructor(e){super(),W(this,e,d3,c3,U,{isOpened:0},f3)}},_m=Su;function m3(i){let e,t;return e=new _m({props:{isOpened:i[3]}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&8&&(r.isOpened=n[3]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function p3(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:[m3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new gt({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){R(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],Oe(()=>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,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 Pu=class extends K{constructor(e){super(),W(this,e,_3,p3,U,{ref:0,hidden:1,disabled:2,graphIsOpened:3,click:4})}},Qr=Pu;function h3(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=se(a,l[s]);return{c(){e=V("svg"),r&&r.c(),t=V("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"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Be(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"replay-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function g3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Tu=class extends K{constructor(e){super(),W(this,e,g3,h3,U,{})}},Yr=Tu;var gm=require("@vkontakte/videoplayer-shared");function b3(i){Pe(i,"svelte-1ot3duq",".mobile.svelte-1ot3duq{position:relative;display:flex;align-items:center;justify-content:center}.mobile.svelte-1ot3duq svg{transform:scale(2)}.icon-background-mobile.svelte-1ot3duq{position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px)}")}function hm(i){let e;return{c(){e=P("div"),f(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){C(t,e,n)},d(t){t&&k(e)}}}function v3(i){let e,t,n,o,r=i[1]&&hm(i);return n=new Yr({}),{c(){r&&r.c(),e=z(),t=P("div"),N(n.$$.fragment),f(t,"class","svelte-1ot3duq"),H(t,"mobile",i[1])},m(l,a){r&&r.m(l,a),C(l,e,a),C(l,t,a),R(n,t,null),o=!0},p(l,a){l[1]?r||(r=hm(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&&(k(e),k(t)),r&&r.d(l),D(n)}}}function y3(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:$n.KeyK,$$slots:{default:[v3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new gt({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){R(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],Oe(()=>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 w3(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:r=!1}=e,{className:l=""}=e,{click:a=gm.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 Iu=class extends K{constructor(e){super(),W(this,e,w3,y3,U,{ref:0,isMobile:1,disabled:2,className:3,click:4},b3)}},Ul=Iu;function k3(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=se(a,l[s]);return{c(){e=V("svg"),r&&r.c(),t=V("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"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Be(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"play-prev-chapter-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function C3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Eu=class extends K{constructor(e){super(),W(this,e,C3,k3,U,{})}},bm=Eu;function S3(i){let e,t;return e=new bm({}),{c(){N(e.$$.fragment)},m(n,o){R(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 P3(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:[S3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new gt({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){R(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],Oe(()=>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,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:r=!1}=e,{click:l}=e;function a(s){n=s,t(0,n)}return i.$$set=s=>{"ref"in s&&t(0,n=s.ref),"hidden"in s&&t(1,o=s.hidden),"disabled"in s&&t(2,r=s.disabled),"click"in s&&t(3,l=s.click)},[n,o,r,l,a]}var Mu=class extends K{constructor(e){super(),W(this,e,T3,P3,U,{ref:0,hidden:1,disabled:2,click:3})}},Zr=Mu;var Vu=require("@vkontakte/videoplayer-shared");function I3(i){Pe(i,"svelte-1x1zctw",".icon.svelte-1x1zctw{width:24px !important;height:24px !important;;}.error-stub.svelte-1x1zctw{display:flex;justify-content:center;align-items:center}.inner.svelte-1x1zctw{width:16px;height:16px;background-color:var(--white)}")}function E3(i){let e,t,n,o;return{c(){e=P("img"),f(e,"class","icon svelte-1x1zctw"),Ss(e.src,t=i[0])||f(e,"src",t),f(e,"aria-hidden","true")},m(r,l){C(r,e,l),n||(o=de(e,"error",i[7]),n=!0)},p(r,l){l&1&&!Ss(e.src,t=r[0])&&f(e,"src",t)},d(r){r&&k(e),n=!1,o()}}}function M3(i){let e;return{c(){e=P("div"),e.innerHTML='<div class="inner svelte-1x1zctw"></div>',f(e,"class","icon error-stub svelte-1x1zctw")},m(t,n){C(t,e,n)},p:me,d(t){t&&k(e)}}}function V3(i){let e;function t(r,l){return r[5]?M3:E3}let n=t(i,-1),o=n(i);return{c(){o.c(),e=lt()},m(r,l){o.m(r,l),C(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&&k(e),o.d(r)}}}function A3(i){let e,t;return e=new gt({props:{className:i[4]?"btn-full-opacity":"",ariaLabel:i[1],click:i[3],disabled:i[6],testId:i[2],$$slots:{default:[V3]},$$scope:{ctx:i}}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,[o]){let r={};o&16&&(r.className=n[4]?"btn-full-opacity":""),o&2&&(r.ariaLabel=n[1]),o&8&&(r.click=n[3]),o&64&&(r.disabled=n[6]),o&4&&(r.testId=n[2]),o&545&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function L3(i,e,t){let n,o,r,{iconUrl:l}=e,{ariaLabel:a}=e,{disabled:s=!1}=e,{testId:u}=e,{onClick:c=Vu.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===Vu.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 Au=class extends K{constructor(e){super(),W(this,e,L3,A3,U,{iconUrl:0,ariaLabel:1,disabled:8,testId:2,onClick:3},I3)}},Xr=Au;var Km=require("@vkontakte/videoplayer-shared");var hn=require("@vkontakte/videoplayer-core"),zE=require("@vkontakte/videoplayer-shared"),ct=require("@vkontakte/videoplayer-shared"),uo=require("@vkontakte/videoplayer-statistics"),qE=require("@vkontakte/videoplayer-interactive");var Dt=require("@vkontakte/videoplayer-shared");var vm=(i,e)=>i<400||e<225?5:i<640||e<360?0:i<960||e<540?1:i<1280||e<720?2:3;var B3="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",Jr=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 Dt.Subject,started$:new Dt.Subject,paused$:new Dt.Subject,resumed$:new Dt.Subject,ended$:new Dt.Subject,skipped$:new Dt.Subject,clicked$:new Dt.Subject};this.loadAdman=e=>new Promise((t,n)=>{let o,r=()=>{clearTimeout(o),delete window.admanAsyncInit,window.AdmanHTML?t():n()};(0,Dt.addScript)(B3,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,Dt.assertNonNullable)(this.adsState),(0,Dt.assertNonNullable)(this.playerState),(0,Dt.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,Dt.assertNonNullable)(this.adsState),this.adsState.position.set(e)};this.onAdPaused=()=>{(0,Dt.assertNonNullable)(this.adsState),this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")};this.onAdPlayed=()=>{(0,Dt.assertNonNullable)(this.adsState),this.log({message:"ad played"}),this.adsState.playbackState.set("playing")};this.onAdMidrollPoint=()=>{(0,Dt.assertNonNullable)(this.adman),(0,Dt.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,S=this.playerState&&tt(this.playerState.vsid);S&&(h=parseInt(S,36));let b={dl:encodeURIComponent(window.location.href),autoplay:r,player_width:t,player_height:n,puid10:vm(t,n),puid11:o?0:1,preview:m,...h?{request_id:h}:{},duration:c,...u},w={slot:s,wrapper:l,videoEl:a,videoQuality:n,params:b,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,Dt.assertNonNullable)(this.actions),(0,Dt.assertNonNullable)(this.adsState),(0,Dt.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,Dt.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,Dt.assertNonNullable)(this.adman),this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.adman.start("preroll")}startPostroll(){(0,Dt.assertNonNullable)(this.adman),(0,Dt.assertNonNullable)(this.actions),this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.adman.start("postroll")}play(){(0,Dt.assertNonNullable)(this.adman),this.log({message:"ad play"}),this.adman.resume(),this.events.resumed$.next()}pause(){(0,Dt.assertNonNullable)(this.adman),this.log({message:"ad pause"}),this.adman.pause(),this.events.paused$.next()}skip(){(0,Dt.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 ym=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 Lu=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 xr,{startTime:u,endTime:c}=s.parse(a);r.startTime=u,r.endTime=c}else if(a.trim()!==""){let s=new Bu,{texts:u}=s.parse(a);r.texts=[...r.texts,...u]}(r.startTime||r.endTime)&&r.texts.length>0&&t.push(r)}return t}},xr=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}},Bu=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 xr;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}},wm=Lu;var $r=require("@vkontakte/videoplayer-shared"),ko,Jt,Ru=0,Du=!1,km=(i,e,t)=>{var u;let n=i>=Ru,o=i<Ru,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(Ru=i,o&&(Du=!1),(0,$r.isNonNullable)(ko)&&l(i,ko.startTime,ko.endTime)&&ko.lang===e.value)return ko;if(!(0,$r.isNonNullable)(Jt)&&(s!=null&&s.length)&&!Du){let c=s.find(({startTime:m,endTime:h})=>l(i,m,h)||n&&r(i,m,h));Jt=c&&{...c,lang:e.value},ko=void 0,!(0,$r.isNonNullable)(Jt)&&s[s.length-1].endTime<i&&(Du=!0);return}else{if(l(i,Jt==null?void 0:Jt.startTime,Jt==null?void 0:Jt.endTime))return ko=Jt,Jt=void 0,ko;(n&&a(i,Jt==null?void 0:Jt.startTime,Jt==null?void 0:Jt.endTime)||o&&r(i,Jt==null?void 0:Jt.startTime,Jt==null?void 0:Jt.endTime))&&(Jt=void 0)}};var Cm=require("@vkontakte/videoplayer-shared"),Sm=require("@vkontakte/videoplayer-statistics"),es=class{constructor(e,t){this.oneStat=new Sm.OneStat(e,t),this.statSubscription=new Cm.Subscription}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var Pm=({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:S,disabledControls:b,isInteractive:w,interactiveRanges$:y,isInteractiveTime$:T,replayInteractive:v,hasInteractiveBranches:g,playPrevChapterDisabledTooltip:E,additionalButtons:B,looped:L=!1,statistics:F})=>{var lo,$o,el,Al;let ae={...h,configName:[...(lo=h.configName)!=null?lo:[],"ui"],isAudioDisabled:r,live:{...($o=h.live)!=null?$o:{},isLiveCatchUpMode:!!n}},oe=m,I=S||new hn.Player(ae),le=new ct.Logger,$=new Jr(le,{loadTimeout:oe.ads.loadTimeout,initTimeout:oe.ads.initTimeout}),j=Fo.getInstance(),x=s==null?void 0:s.pictureInPictureApi,O=s==null?void 0:s.annotationsApi,Q=le.createComponentLog("Store"),A,Y,Te={},Qe=(0,ct.getCurrentBrowser)(),Ke=F?vt(F.oneStat.vsid$):qn(void 0),Xe=Ne(ho()),We=(el=x==null?void 0:x.info.isActive$)!=null?el:new ct.ValueSubject(!1),ye=x==null?void 0:x.info.type,X=Ne(0),ve=Ne([]),He=(0,ct.merge)(I.events.fatalError$,I.events.managedError$).subscribe(M=>ve.update(re=>[...re,M])),Ze=qn(!1,M=>{let re=I.events.fatalError$.subscribe(()=>M(!0));return()=>re.unsubscribe()}),$e=async M=>{var Ge;let re=Object.values(ct.InterfaceLanguage).includes(M);if(oe.downloadVKLanguages&&(re&&oe.updateBuiltinLanguages||!Os(M))){let at;try{at=await(0,ct.loadVKLangPack)(M,ec,tc)}catch(At){(Ge=F==null?void 0:F.oneStat)==null||Ge.logError({errorType:"VKLangPack",fatal:!1}),j==null||j.report(At,{errorType:"VKLangPack",fatal:!1})}at&&(Ns({language:M,pack:at,fallback:oe.defaultLanguage}),be.set(M))}Os(M)&&be.set(M)},be=Ne(i);$e(i);let De=(M,re)=>{let Se=tt(be);return Fs(Se,M,re,oe.defaultLanguage)},Ue=Ne("thumb"),nt=(()=>{let M=Mi([Ze,Ue],([re,Se])=>re?"crashed":Se);return{...M,is:re=>tt(M)===re}})(),ke=(()=>{let M=Ne(new Set(b));return{...M,add:re=>{M.update(Se=>new Set([...Se].concat(re)))},remove:re=>{M.update(Se=>{let Ge=[...Se];return new Set(Array.isArray(re)?Ge.filter(at=>!re.includes(at)):Ge.filter(at=>at!==re))})},includes:re=>{let Se=tt(M);return Array.isArray(re)?re.every(Ge=>Se.has(Ge)):Se.has(re)}}})();Q({message:"create store"});let Z=M=>{let re=M.container;re.append(I.experimental.element$.getValue()),ut=new MutationObserver(Se=>{let{removedNodes:Ge}=Se[0];Ge.length&&re.append(I.experimental.element$.getValue())}),ut.observe(re,{childList:!0})},Ce=M=>{Q({message:`init video, config: ${JSON.stringify(M)}`}),w?Z(M):I.initVideo(M),M.subtitles&&I.setExternalTextTracks(M.subtitles),A=M},ce=new ct.Subject,Ie=M=>ce.next(M),Je=new ct.Subject,ft=new ct.Subject,pt=new ct.Subject,ut=null,It={actionRewind$:Je,actionSeek$:ft,inPiP$:We,inFullscreen$:new ct.Observable(M=>Xe.subscribe(re=>M.next(re))),actionSetSubtitle$:pt,nextMovie$:ce};if(F){let{oneStat:M,statSubscription:re}=F;re.add(M.attachTo(I)),re.add(M.attachToUi(It)),re.add(M.attachToAds($.events)),M.authorize(o).catch(Se=>{Q({message:`onestat auth error ${String(Se)}`})})}if(j){let M=new ct.Subscription,re=(Se,Ge)=>M.add(Se.subscribe(Ge));if(re(I.events.managedError$,Se=>{j.logIError(Se)}),re(I.events.fatalError$,Se=>{j.logIError(Se,!0)}),F){let{oneStat:Se}=F;re(Se.experimental.error$,Ge=>{j.logIError(Ge)})}j.sentrySubscription.add(M)}let mt=()=>{(0,ct.isIOS)()&&Y&&Lc(Y)},we=new ct.Subscription().add(I.experimental.element$.subscribe(M=>{M&&(Y=M,M.classList.add("player-media"),zo(x)&&(x.updateVideoElement(),x.registryEventHandlers()),w&&M.setAttribute("pip","false"))})).add(I.events.ended$.subscribe(()=>{var M;mt(),(M=a==null?void 0:a.onEnded)==null||M.call(a)})).add(I.events.started$.subscribe(async()=>{var re,Se;zo(x)&&await(x==null?void 0:x.revealPictureInPicture());let M=I.info.muted$.getValue();(re=a==null?void 0:a.onStarted)==null||re.call(a),(Se=Te.onStarted)==null||Se.call(Te,M)})).add(I.events.willSeek$.subscribe(({from:M,to:re})=>{var Se;(Se=a==null?void 0:a.onSeek)==null||Se.call(a,M,re)})).add(I.info.position$.subscribe(M=>{var Se;let re=I.info.duration$.getValue();(Se=a==null?void 0:a.onTimeupdate)==null||Se.call(a,re,M),$.setPosition(M,re)})).add(I.events.fatalError$.subscribe(()=>{var M;(M=a==null?void 0:a.onCrashed)==null||M.call(a)})).add(I.events.firstBytes$.subscribe(()=>{kt.state.isFirstBytes$.set(!0)})).add(I.info.is3DVideo$.subscribe(M=>{kt.ui.is3DVideo.set(M)})).add(I.info.isEnded$.subscribe(M=>{w&&(M?(T!=null&&T.getValue()&&ke.add(nr),ke.add("PLAY_BUTTON")):ke.remove("PLAY_BUTTON"))})).add(I.info.liveTime$.subscribe(M=>{var re;(re=a==null?void 0:a.onLiveTime)==null||re.call(a,M)})).add(I.info.isStalled$.subscribe(M=>{var re;(re=a==null?void 0:a.onStalledChanged)==null||re.call(a,M)})),yt=new ct.Subscription,Et=()=>{yt.add(I.events.log$.subscribe(M=>{console.debug("%c sdk ","background:#9ddcf7;",`sdk component: ${M.component}`,M.message)})).add(le.log$.subscribe(M=>{console.debug("%c ui ","background:#f3da0b;",`ui component: ${M.component}.`,M.message)}))},Pt=()=>{yt.unsubscribe()},ze=(M,re)=>{I.startCameraManualRotation(M,re)},qt=(M=!1)=>{I.stopCameraManualRotation(M)},_e=(M,re,Se)=>{I.moveCameraFocusPX(M,re,Se)},_t=()=>{I.holdCamera()},Mt=()=>{I.releaseCamera()},ht=qn(I.info.position$.getValue(),M=>{let re,Se,Ge=()=>{let at=I.info.playbackState$.getValue(),At=I.info.isLive$.getValue(),Zt=I.info.duration$.getValue(),Lt=I.info.position$.getValue();if([hn.PlaybackState.PLAYING,hn.PlaybackState.PAUSED].includes(at)){let vi=At?Lt-Zt:I.getExactTime();vi!==Se&&M(vi),Se=vi}re=requestAnimationFrame(Ge)};return Ge(),()=>cancelAnimationFrame(re)}),bt=vt(We),st=vt(I.info.playbackState$),Le=vt(I.info.currentBuffer$),dt=vt(I.info.isEnded$),ii=vt(I.info.isLive$),Ut=oe.features.playbackRate?vt(I.info.canChangePlaybackSpeed$):qn(!1),Ki=vt(I.info.liveBufferTime$),Wi=vt(I.info.volume$),xt=vt(I.info.muted$),Vi=Vs(I.info.autoQualityLimits$.pipe((0,ct.map)(({max:M})=>M!==void 0)),((Al=I.info.autoQualityLimits$.getValue())==null?void 0:Al.max)!==void 0),Gi=vt(I.info.autoQualityLimitingAvailable$),mi=vt(I.info.availableQualities$),Ai=vt(I.info.availableQualitiesFps$),sn=vt(I.info.chromecastState$),ji=vt(I.info.chromecastDeviceName$),Qi=vt(I.info.currentFormat$),Li=vt(I.info.throughputEstimation$),Bi=vt(I.info.videoBitrate$),pi=vt(I.info.intrinsicVideoSize$),wi=vt(I.info.duration$),ki=vt(I.info.isAudioAvailable$),Nt=null,$t=I.info.isBuffering$,Kt=qn($t.getValue(),M=>{let re=$t.subscribe(Se=>{Se&&Nt===null?Nt=window.setTimeout(()=>{M($t.getValue()),Nt=null},oe.loaderDelay):M(Se)});return()=>{re.unsubscribe(),Nt&&clearTimeout(Nt)}}),Yi=()=>{Nt&&clearTimeout(Nt),Nt=null},ai=Mi([wi,ii],([M,re])=>re?-M:M),Zi=Mi([st],([M])=>M===hn.PlaybackState.PLAYING),Ci=vt(I.info.atLiveEdge$),Ri=vt(I.info.atLiveDurationEdge$),Ct=vt(I.info.position$),ni=Mi([Ct,wi],([M,re])=>isFinite(M)&&isFinite(re)&&!!re),Vt=Mi([sn],([M])=>M===hn.ChromecastState.CONNECTED),an=vt(I.info.availableVideoStreams$),Di=vt(I.info.availableAudioStreams$),Xi=vt(I.info.currentVideoStream$),Ni=vt(I.info.currentAudioStream$),Wt=M=>{M.language&&Rs(M.language),I.setVideoStream(M)},ui=M=>{M.language&&Rs(M.language),I.setAudioStream(M)},_i=M=>{let re;if(M.length===1&&(re=M.at(0)),re!=null||(re=M.find(Ge=>"isDefault"in Ge&&Ge.isDefault)),re)return re;let Se=Tc();return Se&&(re=M.find(({language:Ge})=>Se===Ge)),re!=null||(re=M.at(0)),re},fi=!1;I.info.availableAudioStreams$.subscribe(M=>{if(!fi&&M.length){let re=_i(M);re&&(I.setAudioStream(re),fi=!0)}});let ei=!1;I.info.availableVideoStreams$.subscribe(M=>{if(!ei&&M.length){let re=_i(M);re&&(I.setVideoStream(re),ei=!0)}});let Ft=Ne(void 0),Oi=vt(I.info.isAutoQualityEnabled$,M=>M&&Ft.set(void 0)),Ji=vt(I.info.currentQuality$,()=>Ft.set(void 0)),Gt=Mi([Ft,Ji],([M,re])=>M!=null?M:re),Si=Mi([mi,Ai,Oi,Gt,Qi],([M,re,Se,Ge,at])=>{let At=[];at!==hn.VideoFormat.MPEG&&At.push({value:"auto",displayValue:De("auto_quality_option"),selected:Se});let Zt=M.filter(Lt=>Lt!==ct.VideoQuality.INVARIANT);for(let Lt of Zt){let vi=re[Lt],et=Lt===ct.VideoQuality.INVARIANT?De("auto_quality_option"):Lt;At.push({value:Lt,displayValue:`${et}${vi?ym(vi):""}`,selected:Se?!1:Lt===Ge})}return At}),ci=vt(I.info.currentPlaybackRate$),hi=Mi([ci,Ci,Ri],([M,re,Se])=>{let Ge=Se||w?1:oe.controls.playbackRateMin,at=re?1:oe.controls.playbackRateMax,At=oe.controls.playbackRateStep,Zt=[];for(let Lt=Ge;Lt<=at;Lt+=At)Zt.push({value:Lt,displayValue:Lt===1?De("playback_rate_1"):De("playback_rate",{multiplier:Lt.toString(10)}),selected:M===Lt});return Zt}),bn=oe.features.subtitles?vt(I.info.availableTextTracks$):qn([]),xi=Mi([bn],([M],re)=>{let Se=[],Ge=[];for(let at of M)at.url&&Se.push(fetch(at.url));Promise.allSettled(Se).then(at=>{for(let[At,Zt]of at.entries())Zt.status==="fulfilled"&&Zt.value.text().then(Lt=>{let vi=new wm,et=M[At].language,Rn=!!M[At].isAuto,mo=vi.parse(Lt);et&&mo&&Ge.push({lang:et,subtitles:mo,isAuto:Rn}),At===at.length-1&&re(Ge)})})}),zt={displayValue:De("subtitles_off"),value:"off"},oi=Ne({...zt}),jt=Mi([xi,oi,xi],([M,re])=>{if((M==null?void 0:M.length)>0){let Se=[{...zt,selected:(re==null?void 0:re.value)===zt.value}];for(let{lang:Ge,isAuto:at}of M)Wo[Ge]&&Se.push({displayValue:at?De("subtitles_auto",{language:Wo[Ge]}):Wo[Ge],value:Ge,selected:(re==null?void 0:re.value)===Ge,isAuto:at});return Se}else return[]}),gi=Mi([ht,oi,xi],([M,re,Se])=>{if(re&&re.value!==zt.value)return km(M,re,Se)}),Pi=Mi([gi],([M])=>M!=null&&M.texts?M.texts:[]),$i=Ne(!0),un=Mi([Le,ai,Ct,Ki],([M,re,Se,Ge])=>{var Lt;let at=(Lt=M==null?void 0:M.end)!=null?Lt:0;if(!Ge)return at/re;let Zt=-Se+Ge-re;return(at-Zt)/re}),bi=vt(I.info.availableSources$),en=Mi([bi],([M])=>Object.keys((M==null?void 0:M[hn.VideoFormat.MPEG])||{}).length>0),tn=()=>{var Se,Ge,at;let M=Object.keys(((Ge=(Se=I.info.availableSources$)==null?void 0:Se.getValue())==null?void 0:Ge[hn.VideoFormat.MPEG])||{}),re=(0,ct.getHighestQuality)(M)||ct.VideoQuality.Q_144P;return(at=A.sources[hn.VideoFormat.MPEG])==null?void 0:at[re]},Ye=()=>{var re;let M=tn();M?mc(M,((re=A==null?void 0:A.meta)==null?void 0:re.title)||"video"):Q({message:"There is no URL for download video"})},nn=()=>{Q({message:"toggle muted"});let M=I.info.muted$.getValue(),Ge=!(I.info.volume$.getValue()===0||M);Fi(Ge)},Qt=()=>{kt.ui.settingsMenuVisible.set(!1)},qe=M=>{kt.ui.settingsMenuOpenedByKeyboard.set(!!M),kt.ui.settingsMenuVisible.set(!0)},fn=M=>{tt(kt.ui.settingsMenuVisible)?Qt():qe(M)},on=(M,re=M,Se=!1)=>{var At,Zt,Lt;let Ge=!Se,at=I.info.muted$.getValue();Q({message:`set volume, volume: ${M}, preferredVolume: ${re}, internalCall: ${Ge}`}),I.setVolume(M),$.setVolume(M),Ge&&((At=a==null?void 0:a.onVolumeChange)==null||At.call(a,M)),Ls(re),at?(I.setMuted(!1),Ge&&((Zt=a==null?void 0:a.onUnmute)==null||Zt.call(a)),sr(!1)):!at&&M===0&&(I.setMuted(!0),Ge&&((Lt=a==null?void 0:a.onMute)==null||Lt.call(a)),sr(!0))},Fi=(M,re=!1)=>{var at,At,Zt,Lt;let Se=!re,Ge=I.info.volume$.getValue();if(Q({message:`set muted, currentVolume: ${Ge}, mute: ${M}, internalCall: ${Se}`}),I.setMuted(M),$.setVolume(M?0:Ge),sr(M),Se&&(M?(at=a==null?void 0:a.onMute)==null||at.call(a):(At=a==null?void 0:a.onUnmute)==null||At.call(a)),Ge===0){let vi=(Zt=rr())!=null?Zt:oe.volumeDefault;vi===0&&(vi=oe.volumeMinRestore,Ls(vi)),I.setVolume(vi),$.setVolume(vi),Se&&((Lt=a==null?void 0:a.onVolumeChange)==null||Lt.call(a,vi))}},ln=Ne(!1),cn=M=>{ln.set(M),I.setLooped(M)};cn(L);let An=()=>{I.prepare()},dn=()=>{var re,Se;if((0,ct.assertNonNullable)(kt),!tt(kt.ui.controls.disabledControls$).has("PLAY_BUTTON")){if(Q({message:"toggle play"}),tt(kt.playerPhase)==="ads"){$.togglePlay();return}if(I.info.playbackState$.getValue()!==hn.PlaybackState.PLAYING){if(I.info.isEnded$.getValue()){if(Q({message:"toggle play, video ended, seek to 0"}),Je.next(),ft.next(uo.SeekAction.REWIND),w){v==null||v();return}I.seekTime(0)}Q({message:"toggle play, call player.play"}),I.play(),(re=a==null?void 0:a.onPlay)==null||re.call(a)}else Q({message:"toggle play, call player.pause"}),I.pause(),(Se=a==null?void 0:a.onPause)==null||Se.call(a)}},di=M=>{Q({message:`set quality, quality: ${M}`}),I.setAutoQuality(M==="auto"),M!=="auto"?(vc(e,M),Ft.set(M),I.setQuality(M)):Bs()},mn=M=>{Q({message:`set trafficSavingEnabled, value: ${M}`}),I.setAutoQualityLimits({max:M?oe.trafficSavingLimit:void 0}),Sc(M)},li=M=>{I.setPlaybackRate(M)},Fn=()=>{let M=tt(hi),re=M.findIndex(({selected:Ge})=>Ge);if(re===M.length-1)return;let Se=M[re+1];li(Se.value)},pn=()=>{let M=tt(hi),re=M.findIndex(({selected:Ge})=>Ge);if(re===0)return;let Se=M[re-1];li(Se.value)},vn=M=>{M&&M.value!==zt.value&&pt.next(M.isAuto?M.value+"_auto":M.value),oi.set(M)},rn=()=>{let M=tt(jt),re=tt(oi),Se=tt(be);if((re==null?void 0:re.value)===zt.value){let Ge=M.filter(at=>at.value!==zt.value).find(at=>at.value===Se)||M[1];vn(Ge!=null?Ge:{...zt})}else vn({...zt,selected:!1})},ri=(M,re,Se=!0)=>{if(Q({message:`seek to time, time: ${M}`}),ft.next(re),I.info.isLive$.getValue()){let Ge=I.info.duration$.getValue(),at=Math.min(0,Ge+M);I.seekTime(at,Se)}else{if(T!=null&&T.getValue())return;I.seekTime(oo(M),Se)}},ti=M=>{Q({message:`seek to episode start time: ${M}`}),ri(M,uo.SeekAction.EPISODE,!0)},Ln=(M,re)=>{Q({message:`seek to percent, percent: ${M}`});let Se=Math.round(tt(ai)*M);ri(Se,re,!1)},Hn=M=>{Q({message:`seek external, time: ${M}`}),ft.next(uo.SeekAction.UNKNOWN),I.seekTime(I.info.isLive$.getValue()?-M:M)},Bn=M=>{var re,Se;Q({message:`set auto quality limitation. Max: ${(re=M.max)!=null?re:"none"}. Min: ${(Se=M.min)!=null?Se:"none"}`}),I.setAutoQualityLimits(M)},Yt=M=>{Q({message:`seek external to episode start time: ${M}`}),ri(M,uo.SeekAction.EPISODE,!0)},Pn=M=>{Q({message:`set playback rate to: ${M}`}),I.setPlaybackRate(M)},Tn=Ne(void 0),_n=Ne(!1),zn=M=>{Q({message:`start scrubbing, progress: ${M}`}),_n.set(!0),In(M)},In=M=>{Tn.set(M)},Hi,yn,wn=()=>{Tn.set(void 0),_n.set(!1)},ne=()=>{clearTimeout(yn),clearTimeout(Hi),Hi=window.setTimeout(()=>{wn()},500),Y==null||Y.removeEventListener("seeked",ne)},wt=M=>{Q({message:`complete scrubbing, progress: ${M}`}),Ln(M,uo.SeekAction.SLIDER),tt(kt.ui.isMobile)&&tt(kt.state.currentFormat$)===hn.VideoFormat.HLS?(Y==null||Y.addEventListener("seeked",ne),yn=window.setTimeout(()=>{ne()},300)):wn()},kn=Mi([ht,ai,Tn],([M,re,Se],Ge)=>{Ge((0,ct.isNonNullable)(Se)?Se*re:M)}),zi=Ne({width:0,height:0}),te=Mi([zi],([{width:M}],re)=>{let Se=Kd(M);re(Se)}),ot=Ne(!1),si=Mi([te,ot],([M,re])=>re?B.filter(Se=>!Se.hideOnMobile):B.filter(Se=>{var Ge;return!((Ge=Se.hideOnDesktopGridTypes)!=null&&Ge.includes(M))})),Wn=Mi([ot,Ze],([M,re],Se)=>{Se(M&&re)}),Jn=()=>{ft.next(uo.SeekAction.LIVE),Q({message:"switch to active live"}),I.seekTime(0),I.info.playbackState$.getValue()!==hn.PlaybackState.PLAYING&&kt.actions.internal.togglePlay()},xn=()=>$.skip(),En=(M=!0)=>{(0,ct.assertNonNullable)(kt),Q({message:`switch from ads to video, callPlay: ${M}`}),Ue.set("video"),M&&I.play()},ie=()=>{(0,ct.assertNonNullable)(kt),Q({message:"switch from video to ads"}),kt.actions.internal.pause(),mt(),Ue.set("ads")},So=M=>{(0,ct.assertNonNullable)(kt);let re=M?"waitingLive":"thumb";Ue.set(re)},Po=M=>{(0,ct.assertNonNullable)(kt);let re=M?"waitingRecord":"thumb";Ue.set(re)},Zo=()=>((0,ct.assertNonNullable)(kt),cc(I,A,kt)),io=()=>((0,ct.assertNonNullable)(kt),dc(I,A,kt)),fo=()=>Y,Xo=()=>{Q({message:"toggle chromecast"}),I.toggleChromecast()},To=M=>{var Se;(0,ct.assertNonNullable)(kt);let re=!M;if(tt(kt.playerPhase)==="ads"){Q({message:`pause ads, internalCall: ${re}`}),$.pause();return}Q({message:`pause video, internalCall: ${re}`}),re&&((Se=a==null?void 0:a.onPause)==null||Se.call(a)),I.pause()},Vl=M=>{var Se;(0,ct.assertNonNullable)(kt);let re=!M;if(tt(kt.playerPhase)==="ads"){Q({message:`play ads, internalCall: ${re}`}),$.play();return}Q({message:`play video, internalCall: ${re}`}),re&&((Se=a==null?void 0:a.onPlay)==null||Se.call(a)),I.play()},Io=(M,re)=>{(0,ct.assertNonNullable)(kt),Q({message:`first start, show ads: ${M}, internalCall: ${!re}`}),M?Ue.set("ads"):(Ue.set("video"),re?I.play():kt.actions.internal.togglePlay())},no=()=>(Q({message:"getting time codes"}),u),Eo=()=>{let M=no();if(!M||[0,1].includes(M.length))return;let re=I.info.position$.getValue();return M.find(Se=>Se.time>re)},Jo=M=>{let re=M;re||(re=Eo()),re&&(Q({message:"seek to next episode"}),ri(re.time,uo.SeekAction.EPISODE,!0))},co=()=>{let M=no();if(!M||[0,1].includes(M.length))return;let re=I.info.position$.getValue(),Se=M.findIndex(at=>at.time>re),Ge=Se===-1?M.length-2:Se-2;if(!(Ge<0))return M[Ge]},xo=M=>{let re=M;re||(re=co()),re&&(Q({message:"seek to prev episode"}),ri(re.time,uo.SeekAction.EPISODE,!0))},J=()=>(Q({message:"getting preview thumbs data"}),c),Tt=async()=>{x!=null&&x.isActive()?await(x==null?void 0:x.remove()):await(x==null?void 0:x.request())},Cn=(M=-90)=>{X.update(re=>re+M)},Ti=Ne([]);y==null||y.subscribe(M=>{let re=[];for(let Se=0;Se<M.length;Se++){let{range:[Ge,at],subjects:At}=M[Se];Se===0&&Ge!==0&&re.push({time:0,text:"",interactive:!1,completed:!0}),re.push({time:Ge/1e3,text:"",interactive:!0,completed:!At.length}),at!==1/0&&re.push({time:at/1e3,text:"",interactive:!1,completed:!0})}Ti.set(re)});let Gn=Ne(!1);T==null||T.subscribe(M=>{M&&tt(_n)&&wn()});let oo=M=>{if(!w)return M;let re=tt(Ti),Se=tt(ai),at=tt(Ct)/Se,At=re.find(Zt=>Zt.interactive&&!Zt.completed&&Zt.time>at);return typeof(At==null?void 0:At.time)=="number"?Math.min(M,At.time-.05):M},Mo=()=>{kt.ui.episodes.panelOpened$.set(!1)},Vo=()=>{clearTimeout(yn),clearTimeout(Hi),we.unsubscribe(),yt.unsubscribe(),I.destroy(),$.destroy(),F==null||F.destroy(),j==null||j.destroy(),He.unsubscribe(),ut==null||ut.disconnect(),ut=null},kt={interfaceLanguage$:be,initVideo:Ce,videoId:e,isClip:t,playerPhase:nt,vsid:Ke,state:{positionExact$:ht,positionWithScrubbing$:kn,duration$:ai,playbackState$:st,isPlaying$:Zi,isLoaderVisible:Kt,bufferedProgress$:un,isLive$:ii,canChangePlaybackSpeed$:Ut,isActiveLive$:Ci,isOldestAvailableLive$:Ri,isRewindableLive$:ni,isEnded$:dt,muted$:xt,volume$:Wi,trafficSavingEnabled$:Vi,autoQualityLimitingAvailable$:Gi,availableVideoStreams$:an,availableAudioStreams$:Di,videoStream$:Xi,audioStream$:Ni,currentQuality$:Gt,isAutoQualityEnabled$:Oi,availableQualities$:Si,currentPlaybackRate$:ci,availablePlaybackRates$:hi,currentSubtitle$:oi,availableSubtitlesList$:jt,currentSubtitleCaptions$:Pi,isAutoSubtitleCaptionVisible$:$i,chromecastState$:sn,chromecastDeviceName$:ji,chromecastConnected$:Vt,currentFormat$:Qi,throughputEstimation$:Li,videoBitrate$:Bi,videoSize$:pi,errorLog$:ve,crashed$:Ze,isAudioAvailable$:ki,isAudioDisabled:!!r,canDownload:oe.features.download&&!!l,availableSources$:bi,hasMpegSources$:en,isInteractive:w,showInteractiveGraph:oe.features.interactiveGraph,showSeekToInteractive:oe.features.seekToInteractive,showPlayPrevChapter:oe.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:oe.features.interactiveTimeIndicator&&!!tt(Ti).length,interactiveEpisodes$:Ti,isInteractiveTime$:T?vt(T):Ne(!1),graphIsOpened$:Ne(!1),isInteractiveExpectation$:Gn,hasInteractiveBranches:g,playPrevChapterDisabledTooltip:E,looped$:ln,isFirstBytes$:Ne(!1)},ui:{controlsVisible:Ne(!1),touched:Ne(!1),controls:{prevButton:Ne(void 0),playButton:Ne(void 0),replayButton:Ne(void 0),nextButton:Ne(void 0),playPrevChapterButton:Ne(void 0),seekToInteractiveButton:Ne(void 0),interactiveGraphButton:Ne(void 0),liveButton:Ne(void 0),time:Ne(void 0),episodes:Ne(void 0),volume:Ne(void 0),subtitles:Ne(void 0),settings:Ne(void 0),context:Ne(void 0),chromecast:Ne(void 0),pip:Ne(void 0),fullscreen:Ne(void 0),vkLogo:Ne(void 0),interactiveTimeIndicator:Ne(void 0),additionalButtons:B.length?B.reduce(M=>[...M,Ne(void 0)],[]):[],disabledControls$:ke},modals:{hotKeyMap:{show:Ne(!1),data:Ne({title:"",closeBtnText:"",groups:[]})}},isFullscreen:Xe,rotateAlpha:X,isAutoplay:Ne(!1),debugPanelVisible:Ne(!1),episodes:{panelOpened$:Ne(!1),openedByKeyboard$:Ne(!1)},contextMenu:{visible$:Ne(!1),btnRef$:Ne(void 0),openedByBtnKeyboard$:Ne(!1),openedByHotKey$:Ne(!1),lastActiveElem$:Ne(void 0),showContextMenuBtn$:Ne(!1),position$:Ne({top:0,left:0})},playerSize:zi,isMobile:ot,mobileNotReportControlHidden$:Wn,mobileUnmuteButtonExpanded:Ne(!1),mobileUnmuteButtonVisible:Ne(!1),icon3DVideoVisible:Ne(!1),settingsMenuVisible:Ne(!1),settingsMenuOpenedByKeyboard:Ne(!1),scrubbingInProgress:_n,is3DVideo:Ne(!1),isPictureInPictureActive$:bt,pictureInPictureType$:qn(ye),clientInfo$:qn(Qe),currentGridType$:te,additionalButtons$:si,interactiveHideMobileControls:Ne(!1),overlayContainer$:Ne(void 0),startedByKeyboard$:Ne(!1)},ads:{position:Ne(0),duration:Ne(0),playbackState:Ne("inactive"),canSkip:Ne(!1),secondsToWatchBeforeSkip:Ne(0),postrollPassed:Ne(!1)},webApi:{pictureInPictureApi:x,annotationsApi:O},actions:{internal:{preload:An,firstStart:M=>Io(M,!1),pause:()=>To(!1),togglePlay:dn,toggleMuted:nn,toggleSettingsMenu:fn,openSettingsMenu:qe,closeSettingsMenu:Qt,setVolume:on,setVideoStream:Wt,setAudioStream:ui,setQuality:di,setTrafficSavingEnabled:M=>mn(M),setPlaybackRate:li,incrementPlaybackRate:Fn,decrementPlaybackRate:pn,setSubtitle:vn,toggleSubtitle:rn,togglePictureInPicture:Tt,startScrubbing:zn,progressScrubbing:In,completeScrubbing:wt,toggleChromecast:Xo,switchToActiveLive:Jn,switchFromAdsToVideo:En,switchFromVideoToAds:ie,skipAd:xn,setWaitingLive:So,setWaitingRecord:Po,getDebugTextData:Zo,getDebugPanelData:io,getVideoElement:fo,seekTime:(M,re,Se)=>ri(M,re,Se),clearDelayedBufferingCheckTimeout:Yi,seekEpisodeStartTime:ti,seekToPercent:Ln,getNextEpisode:Eo,seekToNextEpisode:Jo,getPrevEpisode:co,seekToPrevEpisode:xo,startLogging:Et,stopLogging:Pt,startCameraManualRotation:ze,stopCameraManualRotation:qt,moveCameraFocusPX:_e,holdCamera:_t,releaseCamera:Mt,getVideoEpisodes:no,getPreviewThumbsData:J,downloadVideo:Ye,addLanguage:Ns,setLanguage:$e,nextMovie:Ie,videoRotate:Cn,correctSeekTimeToInteractive:oo,replayInteractive:v,setLooped:cn},external:{firstStart:M=>Io(M,!0),play:()=>Vl(!0),pause:()=>To(!0),seekTime:M=>Hn(M),seekEpisodeStartTime:M=>Yt(M),setPlaybackRate:M=>Pn(M),setAutoQualityLimits:M=>Bn(M),setMuted:M=>Fi(M,!0),setVolume:M=>on(M,M,!0),returnFocusToEpisodes:Mo}},callbacks:a,setUiCallbacks:M=>{Te={...M}},getAdmanWrapper:()=>$,getLogger:()=>le,destroy:Vo};return kt};var is=(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 ns=async(i,e,t)=>{await Qn(),e&&t&&(t.focus(),i.set(!1))};function D3(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=se(a,l[s]);return{c(){e=V("svg"),r&&r.c(),t=V("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"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Be(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"dots-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function N3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Nu=class extends K{constructor(e){super(),W(this,e,N3,D3,U,{})}},Tm=Nu;function O3(i){let e,t;return e=new Tm({}),{c(){N(e.$$.fragment)},m(n,o){R(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 F3(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:[O3]},$$scope:{ctx:i}};return i[2]!==void 0&&(r.ref=i[2]),e=new gt({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){R(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],Oe(()=>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,e,t){let n,{disabled:o=!1}=e,{ariaLabel:r=""}=e,l=it(),a=l.ui.contextMenu.visible$;q(i,a,T=>t(3,n=T));let s=l.ui.contextMenu.openedByBtnKeyboard$,u=l.ui.contextMenu.showContextMenuBtn$,c=l.ui.contextMenu.position$,m=l.ui.contextMenu.btnRef$,h,S=T=>{let v=dl(T),g=Jc(h);c.set(g),s.set(v),a.set(!n)},b=()=>{u.set(!0)},w=()=>{u.set(!1)};function y(T){h=T,t(2,h)}return i.$$set=T=>{"disabled"in T&&t(0,o=T.disabled),"ariaLabel"in T&&t(1,r=T.ariaLabel)},i.$$.update=()=>{if(i.$$.dirty&4)e:h&&m.set(h)},[o,r,h,n,a,S,b,w,y]}var Ou=class extends K{constructor(e){super(),W(this,e,H3,F3,U,{disabled:0,ariaLabel:1})}},Im=Ou;function z3(i){Pe(i,"svelte-17imlp9",".interactive-episode-icon-animated.svelte-17imlp9{position:absolute;top:16px;right:16px;width:32px;height:32px;transition:0.3s;opacity:1}.invisible.svelte-17imlp9{opacity:0;visibility:hidden}.fullscreen.svelte-17imlp9:not(.mobile){width:40px;top:19px;right:23px;height:40px}.mobile.svelte-17imlp9{width:28px;height:28px;top:12px;right:14px}.fullscreen.mobile.svelte-17imlp9{width:32px;height:32px}@media screen and (orientation: portrait){.interactive-episode-icon-animated.mobile.fullscreen.svelte-17imlp9{top:40px;right:16px}}@keyframes svelte-17imlp9-pulse{0%{transform:scale(1);border-width:1px;opacity:0}10%{opacity:1}50%{transform:scale(1.5);border-width:1px;opacity:0.5}100%{transform:scale(1.5);border-width:0.5px;opacity:0}}.pulse.svelte-17imlp9{display:block;content:'';border:1px solid #fff;position:absolute;top:0;left:0;right:0;bottom:0;border-radius:100%;transform:scale(1.8);animation:1s svelte-17imlp9-pulse infinite;transition:0.3s;pointer-events:none}.pulse.paused.svelte-17imlp9{animation-play-state:paused}.interactive-episode-icon-animated svg{width:100%;height:100%}.ref-block.svelte-17imlp9{position:absolute;top:0;width:100%;height:100%;visibility:hidden}.hidden.svelte-17imlp9{display:none}")}function q3(i){let e,t;return e=new Rr({props:{completed:!0}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p:me,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function U3(i){let e,t,n,o,r,l,a,s,u,c;function m(S){i[22](S)}let h={tooltipContent:G("tooltip_interactive_interaction_time_indicator"),tooltipActive:i[5],initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:i[13],$$slots:{default:[q3]},$$scope:{ctx:i}};return i[0]!==void 0&&(h.ref=i[0]),t=new Ot({props:h}),pe.push(()=>Fe(t,"ref",m)),t.$on("click",i[14]),{c(){e=P("div"),N(t.$$.fragment),o=z(),r=P("div"),l=z(),a=P("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(S,b){C(S,e,b),R(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",rt(i[21])),de(e,"mouseleave",i[15])],u=!0)},p(S,b){let w={};b[0]&32&&(w.tooltipActive=S[5]),b[1]&1&&(w.$$scope={dirty:b,ctx:S}),!n&&b[0]&1&&(n=!0,w.ref=S[0],Oe(()=>n=!1)),t.$set(w),(!s||b[0]&2)&&H(r,"hidden",S[1]),(!s||b[0]&16)&&H(a,"paused",S[4]),(!s||b[0]&4)&&H(e,"mobile",S[2]),(!s||b[0]&64)&&H(e,"fullscreen",S[6]),(!s||b[0]&2)&&H(e,"invisible",S[1])},i(S){s||(d(t.$$.fragment,S),s=!0)},o(S){_(t.$$.fragment,S),s=!1},d(S){S&&k(e),D(t),i[23](null),i[24](null),u=!1,xe(c)}}}function K3(i,e,t){var Y;let n,o,r,l,a,s,{ref:u=void 0}=e,c,m=it(),h=Un(),{interactiveControlsOpacity$:S}=h;q(i,S,Te=>t(18,o=Te));let b=m.ui.isMobile;q(i,b,Te=>t(2,a=Te));let w=m.ui.isFullscreen;q(i,w,Te=>t(6,s=Te));let y=m.state.isInteractiveTime$;q(i,y,Te=>t(19,r=Te));let T=h.showInteractiveTimeIndicatorTooltip$;q(i,T,Te=>t(17,n=Te));let v=m.ui.controlsVisible;q(i,v,Te=>t(20,l=Te));let g=(Y=m.callbacks)==null?void 0:Y.onInteractiveTimeIndicatorClick,E,B,L,F=()=>{t(4,L=!0)},ae=()=>{oe(),c==null||c.addEventListener("animationiteration",F,{once:!0})},oe=()=>{t(4,L=!1),c==null||c.removeEventListener("animationiteration",F)},I=Te=>{T.set(Te)},le,$=()=>{B||(T.set(!0),g==null||g())};jn(()=>{T.clearTimeout(),oe()});let j=()=>{T.set(!1)};function x(Te){Dn.call(this,i,Te)}function O(Te){u=Te,t(0,u)}function Q(Te){pe[Te?"unshift":"push"](()=>{u=Te,t(0,u)})}function A(Te){pe[Te?"unshift":"push"](()=>{c=Te,t(3,c)})}return i.$$set=Te=>{"ref"in Te&&t(0,u=Te.ref)},i.$$.update=()=>{if(i.$$.dirty[0]&1048580)e:t(16,E=!a&&l);if(i.$$.dirty[0]&851968)e:t(1,B=!r||!!o||E);if(i.$$.dirty[0]&2)e:t(4,L=B);if(i.$$.dirty[0]&131074)e:t(5,le=n&&!B);if(i.$$.dirty[0]&131072)e:n?ae():oe()},[u,B,a,c,L,le,s,S,b,w,y,T,v,I,$,j,E,n,o,r,l,x,O,Q,A]}var Fu=class extends K{constructor(e){super(),W(this,e,K3,U3,U,{ref:0},z3,[-1,-1])}},os=Fu;function G3(i){Pe(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 Em(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 Mm(i){let e,t,n;function o(l){i[173](l)}let r={disabled:!i[9],tooltipContent:G("tooltip_previous"),$$slots:{default:[j3]},$$scope:{ctx:i}};return i[23].prevButton!==void 0&&(r.ref=i[23].prevButton),e=new Ot({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){R(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,Oe(()=>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){let e,t;return e=new wl({props:{click:i[12],type:"prev",disabled:!i[9],isMobile:!1}}),{c(){N(e.$$.fragment)},m(n,o){R(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 Vm(i){let e,t,n;function o(l){i[174](l)}let r={disabled:i[74],tooltipContent:G("tooltip_restart"),$$slots:{default:[Q3]},$$scope:{ctx:i}};return i[23].replayButton!==void 0&&(r.ref=i[23].replayButton),e=new Ot({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){R(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,Oe(()=>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;return e=new Ul({props:{click:i[128],disabled:i[74]}}),{c(){N(e.$$.fragment)},m(n,o){R(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 Am(i){let e,t,n;function o(l){i[176](l)}let r={tooltipContent:i[47],disabled:i[75],$$slots:{default:[Y3]},$$scope:{ctx:i}};return i[23].playButton!==void 0&&(r.ref=i[23].playButton),e=new Ot({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){R(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,Oe(()=>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,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(()=>Fe(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){R(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],Oe(()=>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 Lm(i){let e,t,n;function o(l){i[177](l)}let r={disabled:!i[8],tooltipContent:G("tooltip_next"),$$slots:{default:[Z3]},$$scope:{ctx:i}};return i[23].nextButton!==void 0&&(r.ref=i[23].nextButton),e=new Ot({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){R(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,Oe(()=>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 Z3(i){let e,t;return e=new wl({props:{click:i[11],type:"next",disabled:!i[8],isMobile:!1}}),{c(){N(e.$$.fragment)},m(n,o){R(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 X3(i){let e,t,n,o,r=i[121]&&J3(i),l=i[120]&&$3(i),a=i[119]&&tv(i);return{c(){r&&r.c(),e=z(),l&&l.c(),t=z(),a&&a.c(),n=lt()},m(s,u){r&&r.m(s,u),C(s,e,u),l&&l.m(s,u),C(s,t,u),a&&a.m(s,u),C(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&&(k(e),k(t),k(n)),r&&r.d(s),l&&l.d(s),a&&a.d(s)}}}function J3(i){let e,t,n;function o(l){i[178](l)}let r={disabled:i[73],tooltipContent:G("tooltip_interactive_go_back"),disabledTooltipContent:G(i[124]),$$slots:{default:[x3]},$$scope:{ctx:i}};return i[23].playPrevChapterButton!==void 0&&(r.ref=i[23].playPrevChapterButton),e=new Ot({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){R(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,Oe(()=>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){let e,t;return e=new Zr({props:{disabled:i[73],click:i[17]}}),{c(){N(e.$$.fragment)},m(n,o){R(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 $3(i){let e,t,n;function o(l){i[179](l)}let r={disabled:i[76],tooltipContent:G("tooltip_interactive_seek"),disabledTooltipContent:G(i[78]),$$slots:{default:[ev]},$$scope:{ctx:i}};return i[23].seekToInteractiveButton!==void 0&&(r.ref=i[23].seekToInteractiveButton),e=new Ot({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){R(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[6]&1073741824&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].seekToInteractiveButton,Oe(()=>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 ev(i){let e,t;return e=new jr({props:{disabled:i[76],click:i[15]}}),{c(){N(e.$$.fragment)},m(n,o){R(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 tv(i){let e,t,n;function o(l){i[180](l)}let r={tooltipContent:i[48],disabled:i[77],$$slots:{default:[iv]},$$scope:{ctx:i}};return i[23].interactiveGraphButton!==void 0&&(r.ref=i[23].interactiveGraphButton),e=new Ot({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){R(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,Oe(()=>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 iv(i){let e,t;return e=new Qr({props:{click:i[16],graphIsOpened:i[31],disabled:i[77]}}),{c(){N(e.$$.fragment)},m(n,o){R(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 Bm(i){let e,t,n;function o(l){i[181](l)}let r={tooltipContent:i[50],$$slots:{default:[nv]},$$scope:{ctx:i}};return i[23].liveButton!==void 0&&(r.ref=i[23].liveButton),e=new Ot({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){R(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,Oe(()=>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 nv(i){let e,t;return e=new qr({props:{isActiveLive:i[21],isMobile:!1,ariaLabel:i[50]}}),{c(){N(e.$$.fragment)},m(n,o){R(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 Rm(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 Lr({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){R(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,Oe(()=>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 Dm(i){let e,t;return e=new Gr({props:{position:i[80],duration:i[82],timeCodes:i[101]}}),{c(){N(e.$$.fragment)},m(n,o){R(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 ov(i){let e,t,n=i[20]&&Dm(i);return{c(){n&&n.c(),e=lt()},m(o,r){n&&n.m(o,r),C(o,e,r),t=!0},p(o,r){o[20]?n?(n.p(o,r),r[0]&1048576&&d(n,1)):(n=Dm(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&&k(e),n&&n.d(o)}}}function lv(i){var n;let e,t;return e=new Xr({props:{iconUrl:i[209],ariaLabel:(n=i[210])!=null?n:i[213],testId:i[211],onClick:i[212]}}),{c(){N(e.$$.fragment)},m(o,r){R(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){D(e,o)}}}function Nm(i){let e,t;return e=new Ot({props:{tooltipContent:i[213],width:40,$$slots:{default:[lv]},$$scope:{ctx:i}}}),{c(){N(e.$$.fragment)},m(n,o){R(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){D(e,n)}}}function Om(i){let e,t,n;function o(l){i[185](l)}let r={disabled:!i[6],tooltipContent:i[51],$$slots:{default:[rv]},$$scope:{ctx:i}};return i[23].vkLogo!==void 0&&(r.ref=i[23].vkLogo),e=new Ot({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){R(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,Oe(()=>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 rv(i){let e,t;return e=new Fr({props:{click:i[86],targetUrl:i[7],logoClickable:i[6]}}),{c(){N(e.$$.fragment)},m(n,o){R(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 sv(i){let e,t;return e=new Gd({props:{click:i[127]}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p:me,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Fm(i){let e,t,n;function o(l){i[187](l)}let r={tooltipContent:i[52],$$slots:{default:[av]},$$scope:{ctx:i}};return i[23].subtitles!==void 0&&(r.ref=i[23].subtitles),e=new Ot({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){R(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,Oe(()=>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 av(i){let e,t;return e=new Ed({props:{isSubtitlesEnabled:i[18],click:i[87]}}),{c(){N(e.$$.fragment)},m(n,o){R(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 Hm(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 Ar({props:l}),pe.push(()=>Fe(t,"ref",r)),{c(){e=P("div"),N(t.$$.fragment),f(e,"class","settings-menu svelte-st0uzk")},m(s,u){C(s,e,u),R(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],Oe(()=>n=!1)),t.$set(c)},i(s){o||(d(t.$$.fragment,s),o=!0)},o(s){_(t.$$.fragment,s),o=!1},d(s){s&&k(e),D(t)}}}function zm(i){let e,t,n;function o(l){i[190](l)}let r={tooltipContent:i[27]?void 0:G("tooltip_settings_off"),$$slots:{default:[uv]},$$scope:{ctx:i}};return i[23].settings!==void 0&&(r.ref=i[23].settings),e=new Ot({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){R(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[6]&1073741824&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].settings,Oe(()=>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 uv(i){let e,t,n;function o(l){i[189](l)}let r={};return i[25]!==void 0&&(r.ref=i[25]),e=new Hl({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){R(e,l,a),n=!0},p(l,a){let s={};!t&&a[0]&33554432&&(t=!0,s.ref=l[25],Oe(()=>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 fv(i){let e,t,n;function o(l){i[191](l)}let r={className:i[41]?"":"out-of-view",tooltipContent:i[49],$$slots:{default:[cv]},$$scope:{ctx:i}};return i[23].context!==void 0&&(r.ref=i[23].context),e=new Ot({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){R(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,Oe(()=>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){let e,t;return e=new Im({props:{ariaLabel:i[49]}}),{c(){N(e.$$.fragment)},m(n,o){R(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 qm(i){let e,t,n;function o(l){i[192](l)}let r={tooltipContent:i[53],$$slots:{default:[dv]},$$scope:{ctx:i}};return i[23].fullscreen!==void 0&&(r.ref=i[23].fullscreen),e=new Ot({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){R(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,Oe(()=>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 dv(i){let e,t;return e=new Nr({props:{click:i[13],isFullscreen:i[30]}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&8192&&(r.click=n[13]),o[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 Um(i){let e,t,n;function o(l){i[193](l)}let r={tooltipContent:i[54],$$slots:{default:[mv]},$$scope:{ctx:i}};return i[23].chromecast!==void 0&&(r.ref=i[23].chromecast),e=new Ot({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){R(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,Oe(()=>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 mv(i){let e,t;return e=new Hr({props:{isMobile:!1,state:i[29],click:i[126]}}),{c(){N(e.$$.fragment)},m(n,o){R(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 pv(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 os({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){R(e,l,a),n=!0},p(l,a){let s={};!t&&a[0]&8388608&&(t=!0,s.ref=l[23].interactiveTimeIndicator,Oe(()=>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 _v(i){let e,t,n,o,r,l,a,s,u,c,m,h,S,b,w,y,T,v,g,E,B,L,F,ae,oe,I,le,$,j,x;t=new Wr({props:{isHidden:!i[45],isAds:i[4],canRewindLive:i[5],isRewindableLive:i[32]}});let O=i[38]&&Mm(i),Q=i[35]&&Vm(i),A=i[36]&&Am(i),Y=i[37]&&Lm(i),Te=i[117]&&X3(i),Qe=!i[4]&&i[33]&&Bm(i),Ke=i[19]&&Rm(i);function Xe(ce){i[183](ce)}let We={className:"w-max",disabled:!i[20],tooltipContent:G("tooltip_episodes"),$$slots:{default:[ov]},$$scope:{ctx:i}};i[23].episodes!==void 0&&(We.ref=i[23].episodes),S=new Ot({props:We}),pe.push(()=>Fe(S,"ref",Xe));let ye=St(i[28]),X=[];for(let ce=0;ce<ye.length;ce+=1)X[ce]=Nm(Em(i,ye,ce));let ve=ce=>_(X[ce],1,1,()=>{X[ce]=null}),He=i[43]&&!i[4]&&Om(i);function Ze(ce){i[186](ce)}let $e={$$slots:{default:[sv]},$$scope:{ctx:i}};i[23].volume!==void 0&&($e.ref=i[23].volume),E=new Ot({props:$e}),pe.push(()=>Fe(E,"ref",Ze));let be=i[40]&&Fm(i),De=!i[83]&&!i[4]&&Hm(i),Ue=i[42]&&!i[4]&&zm(i),nt=i[84].features.contextMenuButton&&fv(i),ke=i[44]&&qm(i),Z=i[39]&&Um(i),Ce=i[122]&&pv(i);return{c(){e=P("div"),N(t.$$.fragment),n=z(),o=P("div"),r=P("div"),O&&O.c(),l=z(),Q&&Q.c(),a=z(),A&&A.c(),s=z(),Y&&Y.c(),u=z(),Te&&Te.c(),c=z(),Qe&&Qe.c(),m=z(),Ke&&Ke.c(),h=z(),N(S.$$.fragment),y=z(),T=P("div");for(let ce=0;ce<X.length;ce+=1)X[ce].c();v=z(),He&&He.c(),g=z(),N(E.$$.fragment),L=z(),be&&be.c(),F=z(),De&&De.c(),ae=z(),Ue&&Ue.c(),oe=z(),nt&&nt.c(),I=z(),ke&&ke.c(),le=z(),Z&&Z.c(),$=z(),Ce&&Ce.c(),j=lt(),f(r,"class","controls-left svelte-st0uzk"),Yn(()=>i[184].call(r)),f(T,"class","controls-right svelte-st0uzk"),f(o,"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(ce,Ie){C(ce,e,Ie),R(t,e,null),p(e,n),p(e,o),p(o,r),O&&O.m(r,null),p(r,l),Q&&Q.m(r,null),p(r,a),A&&A.m(r,null),p(r,s),Y&&Y.m(r,null),p(r,u),Te&&Te.m(r,null),p(r,c),Qe&&Qe.m(r,null),p(r,m),Ke&&Ke.m(r,null),p(r,h),R(S,r,null),w=tl(r,i[184].bind(r)),p(o,y),p(o,T);for(let Je=0;Je<X.length;Je+=1)X[Je]&&X[Je].m(T,null);p(T,v),He&&He.m(T,null),p(T,g),R(E,T,null),p(T,L),be&&be.m(T,null),p(T,F),De&&De.m(T,null),p(T,ae),Ue&&Ue.m(T,null),p(T,oe),nt&&nt.m(T,null),p(T,I),ke&&ke.m(T,null),p(T,le),Z&&Z.m(T,null),i[194](o),i[195](e),C(ce,$,Ie),Ce&&Ce.m(ce,Ie),C(ce,j,Ie),x=!0},p(ce,Ie){let Je={};Ie[1]&16384&&(Je.isHidden=!ce[45]),Ie[0]&16&&(Je.isAds=ce[4]),Ie[0]&32&&(Je.canRewindLive=ce[5]),Ie[1]&2&&(Je.isRewindableLive=ce[32]),t.$set(Je),ce[38]?O?(O.p(ce,Ie),Ie[1]&128&&d(O,1)):(O=Mm(ce),O.c(),d(O,1),O.m(r,l)):O&&(ue(),_(O,1,1,()=>{O=null}),fe()),ce[35]?Q?(Q.p(ce,Ie),Ie[1]&16&&d(Q,1)):(Q=Vm(ce),Q.c(),d(Q,1),Q.m(r,a)):Q&&(ue(),_(Q,1,1,()=>{Q=null}),fe()),ce[36]?A?(A.p(ce,Ie),Ie[1]&32&&d(A,1)):(A=Am(ce),A.c(),d(A,1),A.m(r,s)):A&&(ue(),_(A,1,1,()=>{A=null}),fe()),ce[37]?Y?(Y.p(ce,Ie),Ie[1]&64&&d(Y,1)):(Y=Lm(ce),Y.c(),d(Y,1),Y.m(r,u)):Y&&(ue(),_(Y,1,1,()=>{Y=null}),fe()),ce[117]&&Te.p(ce,Ie),!ce[4]&&ce[33]?Qe?(Qe.p(ce,Ie),Ie[0]&16|Ie[1]&4&&d(Qe,1)):(Qe=Bm(ce),Qe.c(),d(Qe,1),Qe.m(r,m)):Qe&&(ue(),_(Qe,1,1,()=>{Qe=null}),fe()),ce[19]?Ke?(Ke.p(ce,Ie),Ie[0]&524288&&d(Ke,1)):(Ke=Rm(ce),Ke.c(),d(Ke,1),Ke.m(r,h)):Ke&&(ue(),_(Ke,1,1,()=>{Ke=null}),fe());let ft={};if(Ie[0]&1048576&&(ft.disabled=!ce[20]),Ie[0]&1048576|Ie[2]&1310720|Ie[6]&1073741824&&(ft.$$scope={dirty:Ie,ctx:ce}),!b&&Ie[0]&8388608&&(b=!0,ft.ref=ce[23].episodes,Oe(()=>b=!1)),S.$set(ft),Ie[0]&268435456){ye=St(ce[28]);let ut;for(ut=0;ut<ye.length;ut+=1){let It=Em(ce,ye,ut);X[ut]?(X[ut].p(It,Ie),d(X[ut],1)):(X[ut]=Nm(It),X[ut].c(),d(X[ut],1),X[ut].m(T,v))}for(ue(),ut=ye.length;ut<X.length;ut+=1)ve(ut);fe()}ce[43]&&!ce[4]?He?(He.p(ce,Ie),Ie[0]&16|Ie[1]&4096&&d(He,1)):(He=Om(ce),He.c(),d(He,1),He.m(T,g)):He&&(ue(),_(He,1,1,()=>{He=null}),fe());let pt={};Ie[6]&1073741824&&(pt.$$scope={dirty:Ie,ctx:ce}),!B&&Ie[0]&8388608&&(B=!0,pt.ref=ce[23].volume,Oe(()=>B=!1)),E.$set(pt),ce[40]?be?(be.p(ce,Ie),Ie[1]&512&&d(be,1)):(be=Fm(ce),be.c(),d(be,1),be.m(T,F)):be&&(ue(),_(be,1,1,()=>{be=null}),fe()),!ce[83]&&!ce[4]?De?(De.p(ce,Ie),Ie[0]&16|Ie[2]&2097152&&d(De,1)):(De=Hm(ce),De.c(),d(De,1),De.m(T,ae)):De&&(ue(),_(De,1,1,()=>{De=null}),fe()),ce[42]&&!ce[4]?Ue?(Ue.p(ce,Ie),Ie[0]&16|Ie[1]&2048&&d(Ue,1)):(Ue=zm(ce),Ue.c(),d(Ue,1),Ue.m(T,oe)):Ue&&(ue(),_(Ue,1,1,()=>{Ue=null}),fe()),ce[84].features.contextMenuButton&&nt.p(ce,Ie),ce[44]?ke?(ke.p(ce,Ie),Ie[1]&8192&&d(ke,1)):(ke=qm(ce),ke.c(),d(ke,1),ke.m(T,le)):ke&&(ue(),_(ke,1,1,()=>{ke=null}),fe()),ce[39]?Z?(Z.p(ce,Ie),Ie[1]&256&&d(Z,1)):(Z=Um(ce),Z.c(),d(Z,1),Z.m(T,null)):Z&&(ue(),_(Z,1,1,()=>{Z=null}),fe()),(!x||Ie[0]&2)&&H(e,"hidden",ce[1]),(!x||Ie[0]&8)&&H(e,"controls-hidden",!ce[3]),(!x||Ie[0]&4)&&H(e,"no-smooth",ce[2]),ce[122]&&Ce.p(ce,Ie)},i(ce){if(!x){d(t.$$.fragment,ce),d(O),d(Q),d(A),d(Y),d(Te),d(Qe),d(Ke),d(S.$$.fragment,ce);for(let Ie=0;Ie<ye.length;Ie+=1)d(X[Ie]);d(He),d(E.$$.fragment,ce),d(be),d(De),d(Ue),d(nt),d(ke),d(Z),d(Ce),x=!0}},o(ce){_(t.$$.fragment,ce),_(O),_(Q),_(A),_(Y),_(Te),_(Qe),_(Ke),_(S.$$.fragment,ce),X=X.filter(Boolean);for(let Ie=0;Ie<X.length;Ie+=1)_(X[Ie]);_(He),_(E.$$.fragment,ce),_(be),_(De),_(Ue),_(nt),_(ke),_(Z),_(Ce),x=!1},d(ce){ce&&(k(e),k($),k(j)),D(t),O&&O.d(),Q&&Q.d(),A&&A.d(),Y&&Y.d(),Te&&Te.d(),Qe&&Qe.d(),Ke&&Ke.d(),D(S),w(),Ei(X,ce),He&&He.d(),D(E),be&&be.d(),De&&De.d(),Ue&&Ue.d(),nt&&nt.d(),ke&&ke.d(),Z&&Z.d(),i[194](null),i[195](null),Ce&&Ce.d(ce)}}}function hv(i,e,t){var Bf,Rf;let n,o,r,l,a,s,u,c,m,h,S,b,w,y,T,v,g,E,B,L,F,ae,oe,I,le,$,j,x,O,Q,A,Y,Te=me,Qe=()=>(Te(),Te=Xt(oe,ee=>t(144,Y=ee)),oe),Ke,Xe=me,We=()=>(Xe(),Xe=Xt(ae,ee=>t(145,Ke=ee)),ae),ye,X=me,ve=()=>(X(),X=Xt(F,ee=>t(146,ye=ee)),F),He,Ze=me,$e=()=>(Ze(),Ze=Xt(L,ee=>t(147,He=ee)),L),be,De=me,Ue=()=>(De(),De=Xt(B,ee=>t(148,be=ee)),B),nt,ke=me,Z=()=>(ke(),ke=Xt(E,ee=>t(149,nt=ee)),E),Ce,ce=me,Ie=()=>(ce(),ce=Xt(g,ee=>t(150,Ce=ee)),g),Je,ft=me,pt=()=>(ft(),ft=Xt(v,ee=>t(151,Je=ee)),v),ut,It=me,mt=()=>(It(),It=Xt(T,ee=>t(152,ut=ee)),T),we,yt=me,Et=()=>(yt(),yt=Xt(y,ee=>t(153,we=ee)),y),Pt,ze=me,qt=()=>(ze(),ze=Xt(w,ee=>t(154,Pt=ee)),w),_e,_t=me,Mt=()=>(_t(),_t=Xt(b,ee=>t(155,_e=ee)),b),ht,bt=me,st=()=>(bt(),bt=Xt(S,ee=>t(156,ht=ee)),S),Le,dt=me,ii=()=>(dt(),dt=Xt(h,ee=>t(157,Le=ee)),h),Ut,Ki=me,Wi=()=>(Ki(),Ki=Xt(m,ee=>t(158,Ut=ee)),m),xt,Vi=me,Gi=()=>(Vi(),Vi=Xt(c,ee=>t(159,xt=ee)),c),mi,Ai=me,sn=()=>(Ai(),Ai=Xt(u,ee=>t(160,mi=ee)),u),ji,Qi,Li,Bi,pi,wi,ki,Nt,$t,Kt,Yi,ai,Zi,Ci,Ri,Ct,ni,Vt,an,Di,Xi,Ni,Wt;i.$$.on_destroy.push(()=>Te()),i.$$.on_destroy.push(()=>Xe()),i.$$.on_destroy.push(()=>X()),i.$$.on_destroy.push(()=>Ze()),i.$$.on_destroy.push(()=>De()),i.$$.on_destroy.push(()=>ke()),i.$$.on_destroy.push(()=>ce()),i.$$.on_destroy.push(()=>ft()),i.$$.on_destroy.push(()=>It()),i.$$.on_destroy.push(()=>yt()),i.$$.on_destroy.push(()=>ze()),i.$$.on_destroy.push(()=>_t()),i.$$.on_destroy.push(()=>bt()),i.$$.on_destroy.push(()=>dt()),i.$$.on_destroy.push(()=>Ki()),i.$$.on_destroy.push(()=>Vi()),i.$$.on_destroy.push(()=>Ai());let{bottomHidden:ui}=e,{bottomNoSmooth:_i}=e,{showControls:fi}=e,{controlsElementRef:ei=void 0}=e,{isAds:Ft=!1}=e,{canRewindLive:Oi}=e,{logoClickable:Ji}=e,{logoHidden:Gt}=e,{logoTargetUrl:Si=""}=e,{showNextPrevButtons:ci}=e,{nextButtonActive:hi}=e,{prevButtonActive:bn}=e,{isOneVideoPlaylist:xi=!1}=e,{supportLink:zt}=e,{customFullscreenSupported:oi=!0}=e,{playNextVideo:jt}=e,{playPrevVideo:gi}=e,{repeatPlaylist:Pi}=e,{toggleFullscreen:$i}=e,{returnFocus:un}=e,{seekToInteractive:bi}=e,{toggleGraph:en}=e,{playPrevChapter:tn}=e,Ye=it(),nn=Un(),Qt=Ht(),qe=Ye.actions.internal.toggleMuted,fn=Ye.actions.internal.togglePlay,on=Ye.actions.internal.pause,Fi=Ye.actions.internal.toggleSubtitle,ln=(Bf=Ye.callbacks)==null?void 0:Bf.onAudioDoesNotExistHint,cn=(Rf=Ye.callbacks)==null?void 0:Rf.onAudioDisabledHint,An=Ye.state.duration$;q(i,An,ee=>t(82,Ni=ee));let dn=Ye.state.positionWithScrubbing$;q(i,dn,ee=>t(80,Di=ee));let di=Ye.state.playbackState$;q(i,di,ee=>t(161,Li=ee));let mn=Ye.state.chromecastConnected$;q(i,mn,ee=>t(83,Wt=ee));let li=Ye.state.isAudioAvailable$;q(i,li,ee=>t(197,I=ee));let Fn=Ye.state.isAudioDisabled,pn=Ye.state.isEnded$;q(i,pn,ee=>t(169,Ci=ee));let vn=Ye.state.isLive$;q(i,vn,ee=>t(33,Nt=ee));let rn=Ye.state.isActiveLive$;q(i,rn,ee=>t(163,wi=ee));let ri=Ye.state.isRewindableLive$;q(i,ri,ee=>t(32,ki=ee));let ti=Ye.ui.isPictureInPictureActive$;q(i,ti,ee=>t(165,Kt=ee));let Ln=Ye.ui.pictureInPictureType$;q(i,Ln,ee=>t(164,$t=ee));let Hn=Ye.ui.settingsMenuVisible;q(i,Hn,ee=>t(27,j=ee));let Bn=Ye.ui.settingsMenuOpenedByKeyboard;q(i,Bn,ee=>t(140,$=ee));let Yt=Ye.ui.controls,Pn=Ye.actions.internal.getVideoEpisodes(),Tn=Ye.state.chromecastState$;q(i,Tn,ee=>t(29,ji=ee));let _n=Ye.state.availableSubtitlesList$;q(i,_n,ee=>t(168,Zi=ee));let zn=Ye.state.currentSubtitle$;q(i,zn,ee=>t(170,Ri=ee));let In=Yt.disabledControls$;q(i,In,ee=>t(172,ni=ee));let Hi=Ye.ui.contextMenu.visible$;q(i,Hi,ee=>t(162,Bi=ee));let yn=Ye.ui.contextMenu.showContextMenuBtn$;q(i,yn,ee=>t(166,Yi=ee));let wn=Ye.ui.contextMenu.openedByBtnKeyboard$;q(i,wn,ee=>t(167,ai=ee));let ne=Ye.ui.startedByKeyboard$;q(i,ne,ee=>t(139,le=ee));let wt=Ye.ads.duration;q(i,wt,ee=>t(81,Xi=ee));let kn=Ye.ads.position;q(i,kn,ee=>t(79,an=ee));let zi=Ye.ads.playbackState;q(i,zi,ee=>t(171,Ct=ee));let te=Ye.ui.isFullscreen;q(i,te,ee=>t(30,Qi=ee));let ot=Ye.ui.playerSize;q(i,ot,ee=>t(142,O=ee));let si=Ye.ui.currentGridType$;q(i,si,ee=>t(143,Q=ee));let Wn=Ye.ui.additionalButtons$;q(i,Wn,ee=>t(28,A=ee));let Jn=Ye.actions.internal.getVideoElement,xn=Ye.actions.internal.replayInteractive,En=Ye.state.isInteractive,ie=Ye.state.isInteractiveTime$;q(i,ie,ee=>t(141,x=ee));let So=Ye.state.showInteractiveGraph,Po=Ye.state.showSeekToInteractive,Zo=Ye.state.showPlayPrevChapter,io=Ye.state.showInteractiveTimeIndicator,fo=Ye.state.graphIsOpened$;q(i,fo,ee=>t(31,pi=ee));let Xo=Ye.state.playPrevChapterDisabledTooltip,To=nn.seekToInteractiveDisabledTooltip$;q(i,To,ee=>t(78,Vt=ee));let Vl=()=>Ye.actions.internal.toggleChromecast(),Io,no,Eo,Jo,co,xo,J,Tt,Cn,Ti,Gn,oo,Mo,Vo,kt,lo,$o,el,Al,M,re,Se="",Ge=(ee,ks)=>{if(!ee){t(50,Se=G("tooltip_live"));return}ks===Qo.PlaybackState.PAUSED&&t(50,Se=G("tooltip_play"))},at,At,Zt,Lt,vi,et={},Rn,mo,ws,Lf,l2=(0,Km.throttleFn)(is,260,{leading:!1}),Yl,Zl,Xl;function r2(){vo({isAudioDisabled:Fn,audioDisabledHintCallback:cn,isAudioAvailable:I,audioIsNotExistHintCallback:ln})&&qe()}let s2=En?xn:xi?fn:Pi;function a2(ee){i.$$.not_equal(et.prevButton,ee)&&(et.prevButton=ee,t(23,et))}function u2(ee){i.$$.not_equal(et.replayButton,ee)&&(et.replayButton=ee,t(23,et))}function f2(ee){Xl=ee,t(26,Xl)}function c2(ee){i.$$.not_equal(et.playButton,ee)&&(et.playButton=ee,t(23,et))}function d2(ee){i.$$.not_equal(et.nextButton,ee)&&(et.nextButton=ee,t(23,et))}function m2(ee){i.$$.not_equal(et.playPrevChapterButton,ee)&&(et.playPrevChapterButton=ee,t(23,et))}function p2(ee){i.$$.not_equal(et.seekToInteractiveButton,ee)&&(et.seekToInteractiveButton=ee,t(23,et))}function _2(ee){i.$$.not_equal(et.interactiveGraphButton,ee)&&(et.interactiveGraphButton=ee,t(23,et))}function h2(ee){i.$$.not_equal(et.liveButton,ee)&&(et.liveButton=ee,t(23,et))}function g2(ee){i.$$.not_equal(et.time,ee)&&(et.time=ee,t(23,et))}function b2(ee){i.$$.not_equal(et.episodes,ee)&&(et.episodes=ee,t(23,et))}function v2(){vi=this.clientWidth,t(22,vi)}function y2(ee){i.$$.not_equal(et.vkLogo,ee)&&(et.vkLogo=ee,t(23,et))}function w2(ee){i.$$.not_equal(et.volume,ee)&&(et.volume=ee,t(23,et))}function k2(ee){i.$$.not_equal(et.subtitles,ee)&&(et.subtitles=ee,t(23,et))}function C2(ee){Yl=ee,t(24,Yl)}function S2(ee){Zl=ee,t(25,Zl)}function P2(ee){i.$$.not_equal(et.settings,ee)&&(et.settings=ee,t(23,et))}function T2(ee){i.$$.not_equal(et.context,ee)&&(et.context=ee,t(23,et))}function I2(ee){i.$$.not_equal(et.fullscreen,ee)&&(et.fullscreen=ee,t(23,et))}function E2(ee){i.$$.not_equal(et.chromecast,ee)&&(et.chromecast=ee,t(23,et))}function M2(ee){pe[ee?"unshift":"push"](()=>{$o=ee,t(46,$o)})}function V2(ee){pe[ee?"unshift":"push"](()=>{ei=ee,t(0,ei)})}function A2(ee){i.$$.not_equal(et.interactiveTimeIndicator,ee)&&(et.interactiveTimeIndicator=ee,t(23,et))}i.$$set=ee=>{"bottomHidden"in ee&&t(1,ui=ee.bottomHidden),"bottomNoSmooth"in ee&&t(2,_i=ee.bottomNoSmooth),"showControls"in ee&&t(3,fi=ee.showControls),"controlsElementRef"in ee&&t(0,ei=ee.controlsElementRef),"isAds"in ee&&t(4,Ft=ee.isAds),"canRewindLive"in ee&&t(5,Oi=ee.canRewindLive),"logoClickable"in ee&&t(6,Ji=ee.logoClickable),"logoHidden"in ee&&t(129,Gt=ee.logoHidden),"logoTargetUrl"in ee&&t(7,Si=ee.logoTargetUrl),"showNextPrevButtons"in ee&&t(130,ci=ee.showNextPrevButtons),"nextButtonActive"in ee&&t(8,hi=ee.nextButtonActive),"prevButtonActive"in ee&&t(9,bn=ee.prevButtonActive),"isOneVideoPlaylist"in ee&&t(131,xi=ee.isOneVideoPlaylist),"supportLink"in ee&&t(10,zt=ee.supportLink),"customFullscreenSupported"in ee&&t(132,oi=ee.customFullscreenSupported),"playNextVideo"in ee&&t(11,jt=ee.playNextVideo),"playPrevVideo"in ee&&t(12,gi=ee.playPrevVideo),"repeatPlaylist"in ee&&t(133,Pi=ee.repeatPlaylist),"toggleFullscreen"in ee&&t(13,$i=ee.toggleFullscreen),"returnFocus"in ee&&t(14,un=ee.returnFocus),"seekToInteractive"in ee&&t(15,bi=ee.seekToInteractive),"toggleGraph"in ee&&t(16,en=ee.toggleGraph),"playPrevChapter"in ee&&t(17,tn=ee.playPrevChapter)},i.$$.update=()=>{if(i.$$.dirty[5]&131072)e:t(138,n=ni.has("EPISODE_BUTTON"));if(i.$$.dirty[5]&131072)e:t(77,o=ni.has("GRAPH_BUTTON"));if(i.$$.dirty[5]&131072)e:t(76,r=ni.has("SEEK_TO_INTERACTIVE_BUTTON"));if(i.$$.dirty[5]&131072)e:t(75,l=ni.has("PLAY_BUTTON"));if(i.$$.dirty[5]&131072)e:t(74,a=ni.has("REPLAY_BUTTON"));if(i.$$.dirty[5]&131072)e:t(73,s=ni.has("PLAY_PREV_CHAPTER_BUTTON"));if(i.$$.dirty[0]&16|i.$$.dirty[5]&65600)e:t(34,Io=Ft?Ct==="playing":Li===Qo.PlaybackState.PLAYING);if(i.$$.dirty[5]&32768)e:t(18,no=Ri.value!=="off");if(i.$$.dirty[0]&16|i.$$.dirty[5]&16384)e:t(35,Eo=Ci&&!Ft||En);if(i.$$.dirty[0]&16|i.$$.dirty[5]&16384)e:t(36,Jo=!Ci||En||Ft);if(i.$$.dirty[4]&524288)e:t(134,co=On(Q,"m"));if(i.$$.dirty[0]&272|i.$$.dirty[4]&524352)e:t(37,xo=ci&&On(Q,"m")&&!Ft&&hi);if(i.$$.dirty[0]&528|i.$$.dirty[4]&524352)e:t(38,J=ci&&On(Q,"m")&&!Ft&&bn);if(i.$$.dirty[0]&536870912|i.$$.dirty[4]&524288|i.$$.dirty[5]&1536)e:t(39,Tt=ji!==Qo.ChromecastState.NOT_AVAILABLE&&!(Kt&&$t===1)&&On(Q,"m")&&!En);if(i.$$.dirty[4]&524288|i.$$.dirty[5]&8192)e:t(40,Cn=Zi.length>0&&On(Q,"m"));if(i.$$.dirty[5]&6144)e:t(41,Ti=ai||Yi);if(i.$$.dirty[4]&524288)e:t(42,Gn=On(Q,"s"));if(i.$$.dirty[4]&32)e:t(43,oo=!Gt);if(i.$$.dirty[4]&524576|i.$$.dirty[5]&1536)e:t(44,Mo=Qt.features.fullscreen&&(Gt||On(Q,"s"))&&!(Kt&&$t===1)&&(En?oi:!0));if(i.$$.dirty[0]&16|i.$$.dirty[1]&4)e:t(19,Vo=(!Nt||Ft)&&!(Qt.features.interactiveHideTime&&En));if(i.$$.dirty[4]&262144)e:t(45,kt=O.width>100);if(i.$$.dirty[0]&16|i.$$.dirty[1]&4|i.$$.dirty[4]&17408)e:t(20,lo=!Ft&&!Nt&&!!(Pn!=null&&Pn.length)&&co&&!n);if(i.$$.dirty[1]&2|i.$$.dirty[5]&256)e:t(21,el=!ki||wi);if(i.$$.dirty[5]&64)e:t(47,Al=Li===Qo.PlaybackState.PLAYING?G("tooltip_pause"):G("tooltip_play"));if(i.$$.dirty[1]&1)e:t(48,M=pi?G("tooltip_interactive_graph_on"):G("tooltip_interactive_graph_off"));if(i.$$.dirty[5]&128)e:t(49,re=Bi?G("aria_label_context_menu_close"):G("aria_label_context_menu_open"));if(i.$$.dirty[0]&2097152|i.$$.dirty[5]&64)e:Ge(el,Li);if(i.$$.dirty[0]&262144)e:t(52,At=no?G("tooltip_subtitles_on"):G("tooltip_subtitles_off"));if(i.$$.dirty[0]&1073741824)e:t(53,Zt=Qi?G("tooltip_fullscreen_on"):G("tooltip_fullscreen_off"));if(i.$$.dirty[0]&536870912)e:t(54,Lt=ji===Qo.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,Rn={prevButton:mi?mi.right-mi.left:0,replayButton:xt?xt.right-xt.left:0,playButton:Ut?Ut.right-Ut.left:0,nextButton:Le?Le.right-Le.left:0,playPrevChapterButton:ht?ht.right-ht.left:0,seekToInteractiveButton:_e?_e.right-_e.left:0,interactiveGraphButton:Pt?Pt.right-Pt.left:0,liveButton:we?we.right-we.left:0,time:ut?ut.right-ut.left:0,episodes:Je?Je.right-Je.left:0,vkLogo:Ce?Ce.right-Ce.left:0,volume:nt?nt.right-nt.left:0,subtitles:be?be.right-be.left:0,settings:He?He.right-He.left:0,context:ye?ye.right-ye.left:0,fullscreen:Ke?Ke.right-Ke.left:0,chromecast:Y?Y.right-Y.left:0,additionalButtons:A.length?A.reduce(ee=>[...ee,40],[]):[]});if(i.$$.dirty[4]&6144)e:(!mo||mo<Rn.time)&&t(136,mo=Rn.time);if(i.$$.dirty[0]&5767168|i.$$.dirty[4]&530432)e:{let ee=0;lo&&(On(Q,"xl")?ee=Rn.time:ee=60);let ks=Rn.prevButton+Rn.playButton+Rn.nextButton+Rn.seekToInteractiveButton+Rn.interactiveGraphButton+Rn.liveButton+mo+ee;t(137,ws=Vo&&vi>=ks)}if(i.$$.dirty[4]&532480)e:t(55,Lf=ws&&On(Q,"m"));if(i.$$.dirty[0]&8388616|i.$$.dirty[4]&393216)e:l2(Jn(),Yt,et,fi);if(i.$$.dirty[0]&167772160)e:ml(Zl,j,Bn);if(i.$$.dirty[0]&150994944|i.$$.dirty[4]&65536)e:Ko(Yl,j,$);if(i.$$.dirty[0]&67108864|i.$$.dirty[4]&32768)e:ns(ne,le,Xl)};e:t(51,at=Qt.logoType==="vk_video"?G("tooltip_vk_video_logo"):G("tooltip_vk_logo"));e:sn(t(72,{prevButton:u,replayButton:c,playButton:m,nextButton:h,playPrevChapterButton:S,seekToInteractiveButton:b,interactiveGraphButton:w,liveButton:y,time:T,episodes:v,vkLogo:g,volume:E,subtitles:B,settings:L,context:F,fullscreen:ae,chromecast:oe}=Yt,u,Gi(t(71,c)),Wi(t(70,m)),ii(t(69,h)),st(t(68,S)),Mt(t(67,b)),qt(t(66,w)),Et(t(65,y)),mt(t(64,T)),pt(t(63,v)),Ie(t(62,g)),Z(t(61,E)),Ue(t(60,B)),$e(t(59,L)),ve(t(58,F)),We(t(57,ae)),Qe(t(56,oe))));return[ei,ui,_i,fi,Ft,Oi,Ji,Si,hi,bn,zt,jt,gi,$i,un,bi,en,tn,no,Vo,lo,el,vi,et,Yl,Zl,Xl,j,A,ji,Qi,pi,ki,Nt,Io,Eo,Jo,xo,J,Tt,Cn,Ti,Gn,oo,Mo,kt,$o,Al,M,re,Se,at,At,Zt,Lt,Lf,oe,ae,F,L,B,E,g,v,T,y,w,b,S,h,m,c,u,s,a,l,r,o,Vt,an,Di,Xi,Ni,Wt,Qt,fn,on,Fi,An,dn,di,mn,li,pn,vn,rn,ri,ti,Ln,Hn,Bn,Pn,Tn,_n,zn,In,Hi,yn,wn,ne,wt,kn,zi,te,ot,si,Wn,En,ie,So,Po,Zo,io,fo,Xo,To,Vl,r2,s2,Gt,ci,xi,oi,Pi,co,Rn,mo,ws,n,le,$,x,O,Q,Y,Ke,ye,He,be,nt,Ce,Je,ut,we,Pt,_e,ht,Le,Ut,xt,mi,Li,Bi,wi,$t,Kt,Yi,ai,Zi,Ci,Ri,Ct,ni,a2,u2,f2,c2,d2,m2,p2,_2,h2,g2,b2,v2,y2,w2,k2,C2,S2,P2,T2,I2,E2,M2,V2,A2]}var Hu=class extends K{constructor(e){super(),W(this,e,hv,_v,U,{bottomHidden:1,bottomNoSmooth:2,showControls:3,controlsElementRef:0,isAds:4,canRewindLive:5,logoClickable:6,logoHidden:129,logoTargetUrl:7,showNextPrevButtons:130,nextButtonActive:8,prevButtonActive:9,isOneVideoPlaylist:131,supportLink:10,customFullscreenSupported:132,playNextVideo:11,playPrevVideo:12,repeatPlaylist:133,toggleFullscreen:13,returnFocus:14,seekToInteractive:15,toggleGraph:16,playPrevChapter:17},G3,[-1,-1,-1,-1,-1,-1,-1])}},Wm=Hu;var Cl=require("@vkontakte/videoplayer-core");function gv(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=se(u,s[c]);return{c(){e=V("svg"),a&&a.c(),t=V("g"),n=V("path"),o=V("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"),ge(e,u)},m(c,m){C(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)&&Ve(a,l,c,c[1],r?Me(l,c[1],m,null):Ae(c[1]),null),ge(e,u=Be(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"muted-icon"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){_(a,c),r=!1},d(c){c&&k(e),a&&a.d(c)}}}function bv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var qu=class extends K{constructor(e){super(),W(this,e,bv,gv,U,{})}},Gm=qu;var Qm=require("@vkontakte/videoplayer-shared");function vv(i){Pe(i,"svelte-6gmlbk",".container.svelte-6gmlbk{display:flex;align-items:center}.expanded.svelte-6gmlbk{background-color:rgba(0, 0, 0, 0.56);border-radius:6px}.text.svelte-6gmlbk{font-size:15px;margin-left:8px}")}function jm(i){let e;return{c(){e=P("span"),e.textContent=`${G("mobile_unmute")}`,f(e,"class","text svelte-6gmlbk")},m(t,n){C(t,e,n)},p:me,d(t){t&&k(e)}}}function yv(i){let e,t,n,o;var r=i[4];function l(s){return{}}r&&(t=Mn(r,l(i)));let a=i[1]&&jm(i);return{c(){e=P("div"),t&&N(t.$$.fragment),n=z(),a&&a.c(),f(e,"class","container svelte-6gmlbk"),f(e,"aria-hidden","true"),H(e,"expanded",i[1])},m(s,u){C(s,e,u),t&&R(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=Mn(r,l(s)),N(t.$$.fragment),d(t.$$.fragment,1),R(t,e,n)):t=null}s[1]?a?a.p(s,u):(a=jm(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&&k(e),t&&D(t),a&&a.d()}}}function wv(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:[yv]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new gt({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){R(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],Oe(()=>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 kv(i,e,t){let{muted:n=!1}=e,{expanded:o=!1}=e,{click:r=Qm.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?jo:Gm)},[l,o,r,a,s,n,u]}var Uu=class extends K{constructor(e){super(),W(this,e,kv,wv,U,{muted:5,expanded:1,click:2,ref:0},vv)}},Ku=Uu;function Cv(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=se(u,s[c]);return{c(){e=V("svg"),a&&a.c(),t=V("path"),n=V("path"),o=V("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"),ge(e,u)},m(c,m){C(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)&&Ve(a,l,c,c[1],r?Me(l,c[1],m,null):Ae(c[1]),null),ge(e,u=Be(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&&k(e),a&&a.d(c)}}}function Sv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Wu=class extends K{constructor(e){super(),W(this,e,Sv,Cv,U,{})}},Ym=Wu;function Pv(i){Pe(i,"svelte-sba75o",'svg[data-testid="pip-icon--active"] .hidden-not-active,svg[data-testid="pip-icon"] .hidden-active{visibility:hidden;opacity:0}')}function Tv(i){let e,t;return e=new Ym({props:{style:i[1],"data-testid":i[0]?"pip-icon--active":"pip-icon"}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,[o]){let r={};o&2&&(r.style=n[1]),o&1&&(r["data-testid"]=n[0]?"pip-icon--active":"pip-icon"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Iv(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 Gu=class extends K{constructor(e){super(),W(this,e,Iv,Tv,U,{isActive:0},Pv)}},Zm=Gu;var Xm=require("@vkontakte/videoplayer-shared");function Ev(i){let e,t;return e=new Zm({props:{isActive:i[1]}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isActive=n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Mv(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:[Ev]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new gt({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){R(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],Oe(()=>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 Vv(i,e,t){let{ref:n=void 0}=e,{isPictureInPictureActive:o=!1}=e,{click:r=Xm.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 ju=class extends K{constructor(e){super(),W(this,e,Vv,Mv,U,{ref:0,isPictureInPictureActive:1,click:2})}},Jm=ju;var y0=require("@vkontakte/videoplayer-shared");function Av(i){Pe(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 xm(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 $m(i){let e,t,n,o,r,l,a,s,u,c,m,h,S,b,w,y,T,v=(!i[51]||i[53])&&e0(i),g=St(i[56]),E=[];for(let O=0;O<g.length;O+=1)E[O]=t0(xm(i,g,O));let B=O=>_(E[O],1,1,()=>{E[O]=null}),L=i[36]&&i0(i),F=i[37]&&n0(i),ae=i[57]&&o0(i),oe=i[39]&&l0(i),I=i[8]&&r0(i),le=i[34]&&s0(i),$=i[33]&&a0(i),j=i[8]&&u0(i),x=i[96]&&!i[29]&&f0(i);return{c(){e=P("div"),t=z(),n=P("div"),v&&v.c(),o=z(),r=P("div");for(let O=0;O<E.length;O+=1)E[O].c();l=z(),L&&L.c(),a=z(),F&&F.c(),s=z(),ae&&ae.c(),u=z(),oe&&oe.c(),c=z(),m=P("div"),I&&I.c(),h=z(),le&&le.c(),S=z(),$&&$.c(),b=z(),j&&j.c(),w=z(),x&&x.c(),y=lt(),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(O,Q){C(O,e,Q),C(O,t,Q),C(O,n,Q),v&&v.m(n,null),C(O,o,Q),C(O,r,Q);for(let A=0;A<E.length;A+=1)E[A]&&E[A].m(r,null);p(r,l),L&&L.m(r,null),p(r,a),F&&F.m(r,null),p(r,s),ae&&ae.m(r,null),p(r,u),oe&&oe.m(r,null),C(O,c,Q),C(O,m,Q),I&&I.m(m,null),p(m,h),le&&le.m(m,null),p(m,S),$&&$.m(m,null),p(m,b),j&&j.m(m,null),C(O,w,Q),x&&x.m(O,Q),C(O,y,Q),T=!0},p(O,Q){if((!T||Q[1]&2048)&&H(e,"hidden",!O[42]),!O[51]||O[53]?v?(v.p(O,Q),Q[1]&5242880&&d(v,1)):(v=e0(O),v.c(),d(v,1),v.m(n,null)):v&&(ue(),_(v,1,1,()=>{v=null}),fe()),(!T||Q[0]&8)&&H(n,"hidden",!O[3]),(!T||Q[1]&2097152)&&H(n,"fullscreen",O[52]),Q[1]&33554432){g=St(O[56]);let A;for(A=0;A<g.length;A+=1){let Y=xm(O,g,A);E[A]?(E[A].p(Y,Q),d(E[A],1)):(E[A]=t0(Y),E[A].c(),d(E[A],1),E[A].m(r,l))}for(ue(),A=g.length;A<E.length;A+=1)B(A);fe()}O[36]?L?(L.p(O,Q),Q[1]&32&&d(L,1)):(L=i0(O),L.c(),d(L,1),L.m(r,a)):L&&(ue(),_(L,1,1,()=>{L=null}),fe()),O[37]?F?(F.p(O,Q),Q[1]&64&&d(F,1)):(F=n0(O),F.c(),d(F,1),F.m(r,s)):F&&(ue(),_(F,1,1,()=>{F=null}),fe()),O[57]?ae?(ae.p(O,Q),Q[1]&67108864&&d(ae,1)):(ae=o0(O),ae.c(),d(ae,1),ae.m(r,u)):ae&&(ue(),_(ae,1,1,()=>{ae=null}),fe()),O[39]?oe?(oe.p(O,Q),Q[1]&256&&d(oe,1)):(oe=l0(O),oe.c(),d(oe,1),oe.m(r,null)):oe&&(ue(),_(oe,1,1,()=>{oe=null}),fe()),(!T||Q[0]&134217736)&&H(r,"hidden",!O[3]&&!O[27]),(!T||Q[1]&2097152)&&H(r,"fullscreen",O[52]),O[8]?I?(I.p(O,Q),Q[0]&256&&d(I,1)):(I=r0(O),I.c(),d(I,1),I.m(m,h)):I&&(ue(),_(I,1,1,()=>{I=null}),fe()),O[34]?le?(le.p(O,Q),Q[1]&8&&d(le,1)):(le=s0(O),le.c(),d(le,1),le.m(m,S)):le&&(ue(),_(le,1,1,()=>{le=null}),fe()),O[33]?$?($.p(O,Q),Q[1]&4&&d($,1)):($=a0(O),$.c(),d($,1),$.m(m,b)):$&&(ue(),_($,1,1,()=>{$=null}),fe()),O[8]?j?(j.p(O,Q),Q[0]&256&&d(j,1)):(j=u0(O),j.c(),d(j,1),j.m(m,null)):j&&(ue(),_(j,1,1,()=>{j=null}),fe()),(!T||Q[0]&536870920)&&H(m,"hidden",!O[3]||O[29]),O[96]&&!O[29]?x?(x.p(O,Q),Q[0]&536870912&&d(x,1)):(x=f0(O),x.c(),d(x,1),x.m(y.parentNode,y)):x&&(ue(),_(x,1,1,()=>{x=null}),fe())},i(O){if(!T){d(v);for(let Q=0;Q<g.length;Q+=1)d(E[Q]);d(L),d(F),d(ae),d(oe),d(I),d(le),d($),d(j),d(x),T=!0}},o(O){_(v),E=E.filter(Boolean);for(let Q=0;Q<E.length;Q+=1)_(E[Q]);_(L),_(F),_(ae),_(oe),_(I),_(le),_($),_(j),_(x),T=!1},d(O){O&&(k(e),k(t),k(n),k(o),k(r),k(c),k(m),k(w),k(y)),v&&v.d(),Ei(E,O),L&&L.d(),F&&F.d(),ae&&ae.d(),oe&&oe.d(),I&&I.d(),le&&le.d(),$&&$.d(),j&&j.d(),x&&x.d(O)}}}function e0(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 Ku({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){R(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,Oe(()=>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){var n;let e,t;return e=new Xr({props:{iconUrl:i[169],ariaLabel:(n=i[170])!=null?n:i[173],testId:i[171],onClick:i[172]}}),{c(){N(e.$$.fragment)},m(o,r){R(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){D(e,o)}}}function i0(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 Hr({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){R(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,Oe(()=>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 n0(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 Jm({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){R(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,Oe(()=>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 o0(i){let e,t,n;function o(l){i[133](l)}let r={};return i[22]!==void 0&&(r.ref=i[22]),e=new Hl({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){R(e,l,a),n=!0},p(l,a){let s={};!t&&a[0]&4194304&&(t=!0,s.ref=l[22],Oe(()=>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 l0(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 Fr({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){R(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,Oe(()=>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[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 wl({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){R(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,Oe(()=>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[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(()=>Fe(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){R(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,Oe(()=>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 a0(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 Ul({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){R(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,Oe(()=>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 u0(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 wl({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){R(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,Oe(()=>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 f0(i){let e,t,n,o,r=i[100]&&Lv(i),l=i[98]&&Bv(i),a=i[99]&&Rv(i);return{c(){r&&r.c(),e=z(),l&&l.c(),t=z(),a&&a.c(),n=lt()},m(s,u){r&&r.m(s,u),C(s,e,u),l&&l.m(s,u),C(s,t,u),a&&a.m(s,u),C(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&&(k(e),k(t),k(n)),r&&r.d(s),l&&l.d(s),a&&a.d(s)}}}function Lv(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 Zr({props:s}),pe.push(()=>Fe(t,"ref",a)),{c(){e=P("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){C(u,e,c),R(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,Oe(()=>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&&k(e),D(t),r=!1,l()}}}function Bv(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 Qr({props:a}),pe.push(()=>Fe(t,"ref",l)),{c(){e=P("div"),N(t.$$.fragment),f(e,"class",o=Hf(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){C(s,e,u),R(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,Oe(()=>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&&k(e),D(t)}}}function Rv(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 jr({props:s}),pe.push(()=>Fe(t,"ref",a)),{c(){e=P("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){C(u,e,c),R(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,Oe(()=>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&&k(e),D(t),r=!1,l()}}}function c0(i){let e,t,n,o,r,l=i[53]&&d0(i),a=i[32]&&m0(i);return o=new Kr({props:{position:i[59],duration:i[60]}}),{c(){l&&l.c(),e=z(),a&&a.c(),t=z(),n=P("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),C(s,e,u),a&&a.m(s,u),C(s,t,u),C(s,n,u),R(o,n,null),r=!0},p(s,u){s[53]?l?(l.p(s,u),u[1]&4194304&&d(l,1)):(l=d0(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=m0(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&&(k(e),k(t),k(n)),l&&l.d(s),a&&a.d(s),D(o)}}}function d0(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 Ku({props:l}),pe.push(()=>Fe(t,"ref",r)),{c(){e=P("div"),N(t.$$.fragment),f(e,"class","wrapper-top-right svelte-1tcstu3"),H(e,"fullscreen",i[52])},m(a,s){C(a,e,s),R(t,e,null),o=!0},p(a,s){let u={};s[1]&8388608&&(u.muted=a[54]),!n&&s[0]&1048576&&(n=!0,u.ref=a[20].volume,Oe(()=>n=!1)),t.$set(u),(!o||s[1]&2097152)&&H(e,"fullscreen",a[52])},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){_(t.$$.fragment,a),o=!1},d(a){a&&k(e),D(t)}}}function m0(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(()=>Fe(t,"ref",r)),{c(){e=P("div"),N(t.$$.fragment),f(e,"class","wrapper-middle svelte-1tcstu3")},m(a,s){C(a,e,s),R(t,e,null),o=!0},p(a,s){let u={};s[1]&262144&&(u.disabled=a[49]),s[1]&2&&(u.isPlaying=!a[32]),!n&&s[0]&1048576&&(n=!0,u.ref=a[20].playButton,Oe(()=>n=!1)),t.$set(u)},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){_(t.$$.fragment,a),o=!1},d(a){a&&k(e),D(t)}}}function Dv(i){let e,t,n;function o(l){i[144](l)}let r={disabled:i[48],$$slots:{default:[Nv]},$$scope:{ctx:i}};return i[20].replayButton!==void 0&&(r.ref=i[20].replayButton),e=new Ot({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){R(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,Oe(()=>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 Nv(i){let e,t;return e=new Ul({props:{disabled:i[48],click:i[95]}}),{c(){N(e.$$.fragment)},m(n,o){R(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 p0(i){let e,t,n;function o(l){i[145](l)}let r={$$slots:{default:[Ov]},$$scope:{ctx:i}};return i[20].liveButton!==void 0&&(r.ref=i[20].liveButton),e=new Ot({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){R(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,Oe(()=>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 Ov(i){let e,t;return e=new qr({props:{isActiveLive:i[19],isMobile:!0,ariaLabel:i[45]}}),{c(){N(e.$$.fragment)},m(n,o){R(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 _0(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 Lr({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){R(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,Oe(()=>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){let e,t,n,o;return n=new Gr({props:{position:i[61],duration:i[62],timeCodes:i[84]}}),{c(){e=P("div"),e.textContent="\xB7",t=z(),N(n.$$.fragment),f(e,"aria-hidden","true")},m(r,l){C(r,e,l),C(r,t,l),R(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&&(k(e),k(t)),D(n,r)}}}function Fv(i){let e,t,n=i[43]&&h0(i);return{c(){n&&n.c(),e=lt()},m(o,r){n&&n.m(o,r),C(o,e,r),t=!0},p(o,r){o[43]?n?(n.p(o,r),r[1]&4096&&d(n,1)):(n=h0(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&&k(e),n&&n.d(o)}}}function g0(i){let e,t,n;function o(l){i[149](l)}let r={$$slots:{default:[Hv]},$$scope:{ctx:i}};return i[20].settings!==void 0&&(r.ref=i[20].settings),e=new Ot({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){R(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,Oe(()=>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){let e,t,n;function o(l){i[148](l)}let r={};return i[22]!==void 0&&(r.ref=i[22]),e=new Hl({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){R(e,l,a),n=!0},p(l,a){let s={};!t&&a[0]&4194304&&(t=!0,s.ref=l[22],Oe(()=>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[150](l)}let r={$$slots:{default:[zv]},$$scope:{ctx:i}};return i[20].fullscreen!==void 0&&(r.ref=i[20].fullscreen),e=new Ot({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){R(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,Oe(()=>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 zv(i){let e,t;return e=new Nr({props:{click:i[14],isFullscreen:i[52]}}),{c(){N(e.$$.fragment)},m(n,o){R(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 v0(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 Ar({props:l}),pe.push(()=>Fe(t,"ref",r)),{c(){e=P("div"),N(t.$$.fragment),f(e,"class","settings-mobile svelte-1tcstu3")},m(a,s){C(a,e,s),R(t,e,null),o=!0},p(a,s){let u={};s[0]&2048&&(u.supportLink=a[11]),s[0]&32768&&(u.returnFocus=a[15]),!n&&s[0]&2097152&&(n=!0,u.ref=a[21],Oe(()=>n=!1)),t.$set(u)},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){_(t.$$.fragment,a),o=!1},d(a){a&&k(e),D(t)}}}function qv(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 os({props:r}),pe.push(()=>Fe(e,"ref",o)),{c(){N(e.$$.fragment)},m(l,a){R(e,l,a),n=!0},p(l,a){let s={};!t&&a[0]&1048576&&(t=!0,s.ref=l[20].interactiveTimeIndicator,Oe(()=>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 Uv(i){let e,t,n,o,r,l,a,s,u,c,m,h,S,b,w,y,T,v,g=!i[4]&&$m(i),E=i[4]&&i[30]!=="inactive"&&c0(i),B=i[96]&&Dv(i),L=!i[4]&&i[25]&&p0(i),F=i[41]&&_0(i);function ae(x){i[147](x)}let oe={className:"w-max",disabled:!i[43],$$slots:{default:[Fv]},$$scope:{ctx:i}};i[20].episodes!==void 0&&(oe.ref=i[20].episodes),u=new Ot({props:oe}),pe.push(()=>Fe(u,"ref",ae));let I=i[38]&&g0(i),le=i[40]&&b0(i);b=new Wr({props:{isAds:i[4],canRewindLive:i[5],isRewindableLive:i[24]}});let $=i[23]&&v0(i),j=i[101]&&qv(i);return{c(){g&&g.c(),e=z(),E&&E.c(),t=z(),n=P("div"),o=P("div"),r=P("div"),B&&B.c(),l=z(),L&&L.c(),a=z(),F&&F.c(),s=z(),N(u.$$.fragment),m=z(),I&&I.c(),h=z(),le&&le.c(),S=z(),N(b.$$.fragment),w=z(),$&&$.c(),y=z(),j&&j.c(),T=lt(),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(x,O){g&&g.m(x,O),C(x,e,O),E&&E.m(x,O),C(x,t,O),C(x,n,O),p(n,o),p(o,r),B&&B.m(r,null),p(r,l),L&&L.m(r,null),p(r,a),F&&F.m(r,null),p(r,s),R(u,r,null),p(r,m),I&&I.m(r,null),p(r,h),le&&le.m(r,null),i[151](r),p(o,S),R(b,o,null),i[152](n),C(x,w,O),$&&$.m(x,O),C(x,y,O),j&&j.m(x,O),C(x,T,O),v=!0},p(x,O){x[4]?g&&(ue(),_(g,1,1,()=>{g=null}),fe()):g?(g.p(x,O),O[0]&16&&d(g,1)):(g=$m(x),g.c(),d(g,1),g.m(e.parentNode,e)),x[4]&&x[30]!=="inactive"?E?(E.p(x,O),O[0]&1073741840&&d(E,1)):(E=c0(x),E.c(),d(E,1),E.m(t.parentNode,t)):E&&(ue(),_(E,1,1,()=>{E=null}),fe()),x[96]&&B.p(x,O),!x[4]&&x[25]?L?(L.p(x,O),O[0]&33554448&&d(L,1)):(L=p0(x),L.c(),d(L,1),L.m(r,a)):L&&(ue(),_(L,1,1,()=>{L=null}),fe()),x[41]?F?(F.p(x,O),O[1]&1024&&d(F,1)):(F=_0(x),F.c(),d(F,1),F.m(r,s)):F&&(ue(),_(F,1,1,()=>{F=null}),fe());let Q={};O[1]&4096&&(Q.disabled=!x[43]),O[1]&1073745920|O[2]&1|O[5]&2097152&&(Q.$$scope={dirty:O,ctx:x}),!c&&O[0]&1048576&&(c=!0,Q.ref=x[20].episodes,Oe(()=>c=!1)),u.$set(Q),x[38]?I?(I.p(x,O),O[1]&128&&d(I,1)):(I=g0(x),I.c(),d(I,1),I.m(r,h)):I&&(ue(),_(I,1,1,()=>{I=null}),fe()),x[40]?le?(le.p(x,O),O[1]&512&&d(le,1)):(le=b0(x),le.c(),d(le,1),le.m(r,null)):le&&(ue(),_(le,1,1,()=>{le=null}),fe());let A={};O[0]&16&&(A.isAds=x[4]),O[0]&32&&(A.canRewindLive=x[5]),O[0]&16777216&&(A.isRewindableLive=x[24]),b.$set(A),(!v||O[1]&2097152)&&H(o,"fullscreen",x[52]),(!v||O[0]&2)&&H(n,"hidden",x[1]),(!v||O[0]&8)&&H(n,"controls-hidden",!x[3]),(!v||O[0]&4)&&H(n,"no-smooth",x[2]),x[23]?$?($.p(x,O),O[0]&8388608&&d($,1)):($=v0(x),$.c(),d($,1),$.m(y.parentNode,y)):$&&(ue(),_($,1,1,()=>{$=null}),fe()),x[101]&&j.p(x,O)},i(x){v||(d(g),d(E),d(B),d(L),d(F),d(u.$$.fragment,x),d(I),d(le),d(b.$$.fragment,x),d($),d(j),v=!0)},o(x){_(g),_(E),_(B),_(L),_(F),_(u.$$.fragment,x),_(I),_(le),_(b.$$.fragment,x),_($),_(j),v=!1},d(x){x&&(k(e),k(t),k(n),k(w),k(y),k(T)),g&&g.d(x),E&&E.d(x),B&&B.d(),L&&L.d(),F&&F.d(),D(u),I&&I.d(),le&&le.d(),i[151](null),D(b),i[152](null),$&&$.d(x),j&&j.d(x)}}}function Kv(i,e,t){var xn,En;let n,o,r,l,a,s,u,c,m,h,S,b,w,y,T,v,g,E,B,L,F,ae,oe,I,le,$,j,x,O,Q,A,Y,Te,Qe,Ke,Xe,We,{bottomHidden:ye}=e,{bottomNoSmooth:X}=e,{showControls:ve}=e,{controlsElementRef:He=void 0}=e,{isAds:Ze=!1}=e,{canRewindLive:$e}=e,{logoClickable:be}=e,{logoHidden:De}=e,{logoTargetUrl:Ue=""}=e,{showNextPrevButtons:nt}=e,{nextButtonActive:ke}=e,{prevButtonActive:Z}=e,{isOneVideoPlaylist:Ce=!1}=e,{supportLink:ce}=e,{customFullscreenSupported:Ie=!0}=e,{playNextVideo:Je}=e,{playPrevVideo:ft}=e,{repeatPlaylist:pt}=e,{toggleFullscreen:ut}=e,{returnFocus:It}=e,{seekToInteractive:mt}=e,{toggleGraph:we}=e,{playPrevChapter:yt}=e,{onDisabledPlayPrevChapterClick:Et}=e,{onDisabledSeekToInteractiveClick:Pt}=e,ze=it(),qt=Un(),_e=Ht(),_t=ze.actions.internal.toggleMuted,Mt=ze.actions.internal.togglePlay,ht=ze.actions.internal.pause,bt=(xn=ze.callbacks)==null?void 0:xn.onAudioDoesNotExistHint,st=(En=ze.callbacks)==null?void 0:En.onAudioDisabledHint,Le=ze.playerPhase;q(i,Le,ie=>t(126,F=ie));let dt=ze.state.duration$;q(i,dt,ie=>t(62,We=ie));let ii=ze.state.positionWithScrubbing$;q(i,ii,ie=>t(61,Xe=ie));let Ut=ze.state.playbackState$;q(i,Ut,ie=>t(121,h=ie));let Ki=ze.state.isAudioAvailable$;q(i,Ki,ie=>t(51,S=ie));let Wi=ze.state.isAudioDisabled,xt=ze.state.isEnded$;q(i,xt,ie=>t(127,oe=ie));let Vi=ze.state.isLive$;q(i,Vi,ie=>t(25,v=ie));let Gi=ze.state.muted$;q(i,Gi,ie=>t(54,O=ie));let mi=ze.state.isActiveLive$;q(i,mi,ie=>t(124,y=ie));let Ai=ze.state.isRewindableLive$;q(i,Ai,ie=>t(24,T=ie));let sn=ze.ui.scrubbingInProgress;q(i,sn,ie=>t(29,ae=ie));let ji=ze.ui.mobileNotReportControlHidden$;q(i,ji,ie=>t(27,B=ie));let Qi=ze.ui.isPictureInPictureActive$;q(i,Qi,ie=>t(26,E=ie));let Li=ze.ui.pictureInPictureType$;q(i,Li,ie=>t(125,g=ie));let Bi=ze.ui.mobileUnmuteButtonExpanded;q(i,Bi,ie=>t(55,Q=ie));let pi=ze.ui.mobileUnmuteButtonVisible;q(i,pi,ie=>t(53,x=ie));let wi=ze.ui.settingsMenuVisible;q(i,wi,ie=>t(23,m=ie));let ki=ze.ui.settingsMenuOpenedByKeyboard;q(i,ki,ie=>t(120,c=ie));let Nt=ze.ui.controls,$t=ze.actions.internal.getVideoEpisodes(),Kt=ze.webApi.pictureInPictureApi,Yi=ze.state.chromecastState$;q(i,Yi,ie=>t(28,L=ie));let ai=ze.state.crashed$;q(i,ai,ie=>t(57,Y=ie));let Zi=Nt.disabledControls$;q(i,Zi,ie=>t(128,le=ie));let Ci=ze.ui.startedByKeyboard$;q(i,Ci,ie=>t(119,u=ie));let Ri=ze.ads.duration;q(i,Ri,ie=>t(60,Ke=ie));let Ct=ze.ads.position;q(i,Ct,ie=>t(59,Qe=ie));let ni=ze.ads.playbackState;q(i,ni,ie=>t(30,I=ie));let Vt=ze.ui.isFullscreen;q(i,Vt,ie=>t(52,j=ie));let an=ze.ui.playerSize;q(i,an,ie=>t(123,w=ie));let Di=ze.ui.additionalButtons$;q(i,Di,ie=>t(56,A=ie));let Xi=ze.actions.internal.getVideoElement,Ni=ze.actions.internal.replayInteractive,Wt=ze.state.isInteractive,ui=ze.state.isInteractiveTime$;q(i,ui,ie=>t(122,b=ie));let _i=ze.state.showInteractiveGraph,fi=ze.state.showSeekToInteractive,ei=ze.state.showPlayPrevChapter,Ft=ze.state.showInteractiveTimeIndicator,Oi=ze.state.graphIsOpened$;q(i,Oi,ie=>t(58,Te=ie));let Ji=qt.seekToInteractiveDisabledTooltip$;q(i,Ji,ie=>t(129,$=ie));let Gt,Si,ci,hi,bn,xi,zt,oi,jt,gi,Pi,$i,un,bi,en,tn,Ye,nn,Qt,qe={},fn=(0,y0.throttleFn)(is,260,{leading:!1}),on=()=>ze.actions.internal.toggleChromecast();function Fi(){vo({isAudioDisabled:Wi,audioDisabledHintCallback:st,isAudioAvailable:S,audioIsNotExistHintCallback:bt})&&_t()}async function ln(){Kt!=null&&Kt.isActive()?await(Kt==null?void 0:Kt.remove()):await(Kt==null?void 0:Kt.request())}function cn(){!Wi&&S&&pi.set(!1),Fi()}let An=Ce?Mt:pt,dn="",di=(ie,So)=>{if(!ie){t(45,dn=G("tooltip_live"));return}So===Cl.PlaybackState.PAUSED&&t(45,dn=G("tooltip_play"))},mn,li,Fn=()=>{s&&Et(Gt)},pn=()=>{r&&Pt(Si)};function vn(ie){i.$$.not_equal(qe.volume,ie)&&(qe.volume=ie,t(20,qe))}function rn(ie){i.$$.not_equal(qe.chromecast,ie)&&(qe.chromecast=ie,t(20,qe))}function ri(ie){i.$$.not_equal(qe.pip,ie)&&(qe.pip=ie,t(20,qe))}function ti(ie){li=ie,t(22,li)}function Ln(ie){i.$$.not_equal(qe.vkLogo,ie)&&(qe.vkLogo=ie,t(20,qe))}function Hn(ie){i.$$.not_equal(qe.prevButton,ie)&&(qe.prevButton=ie,t(20,qe))}function Bn(ie){i.$$.not_equal(qe.playButton,ie)&&(qe.playButton=ie,t(20,qe))}function Yt(ie){i.$$.not_equal(qe.replayButton,ie)&&(qe.replayButton=ie,t(20,qe))}function Pn(ie){i.$$.not_equal(qe.nextButton,ie)&&(qe.nextButton=ie,t(20,qe))}function Tn(ie){i.$$.not_equal(qe.playPrevChapterButton,ie)&&(qe.playPrevChapterButton=ie,t(20,qe))}function _n(ie){i.$$.not_equal(qe.interactiveGraphButton,ie)&&(qe.interactiveGraphButton=ie,t(20,qe))}function zn(ie){i.$$.not_equal(qe.seekToInteractiveButton,ie)&&(qe.seekToInteractiveButton=ie,t(20,qe))}function In(ie){i.$$.not_equal(qe.volume,ie)&&(qe.volume=ie,t(20,qe))}function Hi(ie){i.$$.not_equal(qe.playButton,ie)&&(qe.playButton=ie,t(20,qe))}function yn(ie){i.$$.not_equal(qe.replayButton,ie)&&(qe.replayButton=ie,t(20,qe))}function wn(ie){i.$$.not_equal(qe.liveButton,ie)&&(qe.liveButton=ie,t(20,qe))}function ne(ie){i.$$.not_equal(qe.time,ie)&&(qe.time=ie,t(20,qe))}function wt(ie){i.$$.not_equal(qe.episodes,ie)&&(qe.episodes=ie,t(20,qe))}function kn(ie){li=ie,t(22,li)}function zi(ie){i.$$.not_equal(qe.settings,ie)&&(qe.settings=ie,t(20,qe))}function te(ie){i.$$.not_equal(qe.fullscreen,ie)&&(qe.fullscreen=ie,t(20,qe))}function ot(ie){pe[ie?"unshift":"push"](()=>{nn=ie,t(44,nn)})}function si(ie){pe[ie?"unshift":"push"](()=>{He=ie,t(0,He)})}function Wn(ie){mn=ie,t(21,mn)}function Jn(ie){i.$$.not_equal(qe.interactiveTimeIndicator,ie)&&(qe.interactiveTimeIndicator=ie,t(20,qe))}i.$$set=ie=>{"bottomHidden"in ie&&t(1,ye=ie.bottomHidden),"bottomNoSmooth"in ie&&t(2,X=ie.bottomNoSmooth),"showControls"in ie&&t(3,ve=ie.showControls),"controlsElementRef"in ie&&t(0,He=ie.controlsElementRef),"isAds"in ie&&t(4,Ze=ie.isAds),"canRewindLive"in ie&&t(5,$e=ie.canRewindLive),"logoClickable"in ie&&t(6,be=ie.logoClickable),"logoHidden"in ie&&t(110,De=ie.logoHidden),"logoTargetUrl"in ie&&t(7,Ue=ie.logoTargetUrl),"showNextPrevButtons"in ie&&t(8,nt=ie.showNextPrevButtons),"nextButtonActive"in ie&&t(9,ke=ie.nextButtonActive),"prevButtonActive"in ie&&t(10,Z=ie.prevButtonActive),"isOneVideoPlaylist"in ie&&t(111,Ce=ie.isOneVideoPlaylist),"supportLink"in ie&&t(11,ce=ie.supportLink),"customFullscreenSupported"in ie&&t(112,Ie=ie.customFullscreenSupported),"playNextVideo"in ie&&t(12,Je=ie.playNextVideo),"playPrevVideo"in ie&&t(13,ft=ie.playPrevVideo),"repeatPlaylist"in ie&&t(113,pt=ie.repeatPlaylist),"toggleFullscreen"in ie&&t(14,ut=ie.toggleFullscreen),"returnFocus"in ie&&t(15,It=ie.returnFocus),"seekToInteractive"in ie&&t(16,mt=ie.seekToInteractive),"toggleGraph"in ie&&t(17,we=ie.toggleGraph),"playPrevChapter"in ie&&t(18,yt=ie.playPrevChapter),"onDisabledPlayPrevChapterClick"in ie&&t(114,Et=ie.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in ie&&t(115,Pt=ie.onDisabledSeekToInteractiveClick)},i.$$.update=()=>{if(i.$$.dirty[4]&32)e:Si=G($);if(i.$$.dirty[4]&16)e:t(118,n=le.has("EPISODE_BUTTON"));if(i.$$.dirty[4]&16)e:t(50,o=le.has("GRAPH_BUTTON"));if(i.$$.dirty[4]&16)e:t(46,r=le.has("SEEK_TO_INTERACTIVE_BUTTON"));if(i.$$.dirty[4]&16)e:t(49,l=le.has("PLAY_BUTTON"));if(i.$$.dirty[4]&16)e:t(48,a=le.has("REPLAY_BUTTON"));if(i.$$.dirty[4]&16)e:t(47,s=le.has("PLAY_PREV_CHAPTER_BUTTON"));if(i.$$.dirty[3]&268435456)e:t(31,ci=h===Cl.PlaybackState.PLAYING);if(i.$$.dirty[0]&1073741824)e:t(32,hi=I==="paused");if(i.$$.dirty[0]&16|i.$$.dirty[4]&8)e:t(33,bn=oe&&!Ze&&!Wt);if(i.$$.dirty[0]&16|i.$$.dirty[4]&8)e:t(34,xi=!oe||Ze);if(i.$$.dirty[3]&1073741824)e:t(116,zt=w.width>300);if(i.$$.dirty[3]&1073741824)e:t(35,oi=w.width>400);if(i.$$.dirty[0]&536870912)e:t(117,jt=ae);if(i.$$.dirty[0]&469762048|i.$$.dirty[4]&2)e:t(36,gi=L!==Cl.ChromecastState.NOT_AVAILABLE&&!(E&&g===1)&&!B&&!Wt);if(i.$$.dirty[0]&402653184|i.$$.dirty[3]&16777216|i.$$.dirty[4]&6)e:{let ie=F==="waitingLive";t(37,Pi=!!Kt&&L!==Cl.ChromecastState.CONNECTED&&!B&&(g===1&&ie||!ie)&&!jt&&!Wt)}if(i.$$.dirty[3]&16777216)e:t(38,$i=!jt);if(i.$$.dirty[3]&1073872896)e:t(39,un=!De&&w.width>350);if(i.$$.dirty[0]&67108864|i.$$.dirty[3]&17301504|i.$$.dirty[4]&2)e:t(40,bi=_e.features.fullscreen&&!(E&&g===1)&&(Wt?Ie:!0)&&!jt);if(i.$$.dirty[0]&33554448|i.$$.dirty[3]&1090519040)e:t(41,en=(!v||Ze)&&w.width>260&&!jt&&!(_e.features.interactiveHideTime&&Wt));if(i.$$.dirty[0]&8388616)e:t(42,tn=m||ve);if(i.$$.dirty[0]&33554448|i.$$.dirty[3]&58720256)e:t(43,Ye=!Ze&&!v&&!!($t!=null&&$t.length)&&zt&&!n&&!jt);if(i.$$.dirty[0]&16777216|i.$$.dirty[4]&1)e:t(19,Qt=!T||y);if(i.$$.dirty[0]&1048584|i.$$.dirty[3]&1610612736)e:fn(Xi(),Nt,qe,ve);if(i.$$.dirty[0]&524288|i.$$.dirty[3]&268435456)e:di(Qt,h);if(i.$$.dirty[0]&12582912)e:ml(li,m,ki);if(i.$$.dirty[0]&10485760|i.$$.dirty[3]&134217728)e:Ko(mn,m,c);if(i.$$.dirty[0]&1048576|i.$$.dirty[3]&67108864)e:ns(Ci,u,qe.playButton)};e:Gt=G(ze.state.playPrevChapterDisabledTooltip);return[He,ye,X,ve,Ze,$e,be,Ue,nt,ke,Z,ce,Je,ft,ut,It,mt,we,yt,Qt,qe,mn,li,m,T,v,E,B,L,ae,I,ci,hi,bn,xi,oi,gi,Pi,$i,un,bi,en,tn,Ye,nn,dn,r,s,a,l,o,S,j,x,O,Q,A,Y,Te,Qe,Ke,Xe,We,Mt,ht,Le,dt,ii,Ut,Ki,Wi,xt,Vi,Gi,mi,Ai,sn,ji,Qi,Li,Bi,pi,wi,ki,$t,Yi,ai,Zi,Ci,Ri,Ct,ni,Vt,an,Di,Ni,Wt,ui,_i,fi,ei,Ft,Oi,Ji,on,ln,cn,An,Fn,pn,De,Ce,Ie,pt,Et,Pt,zt,jt,n,u,c,h,b,w,y,g,F,oe,le,$,vn,rn,ri,ti,Ln,Hn,Bn,Yt,Pn,Tn,_n,zn,In,Hi,yn,wn,ne,wt,kn,zi,te,ot,si,Wn,Jn]}var Qu=class extends K{constructor(e){super(),W(this,e,Kv,Uv,U,{bottomHidden:1,bottomNoSmooth:2,showControls:3,controlsElementRef:0,isAds:4,canRewindLive:5,logoClickable:6,logoHidden:110,logoTargetUrl:7,showNextPrevButtons:8,nextButtonActive:9,prevButtonActive:10,isOneVideoPlaylist:111,supportLink:11,customFullscreenSupported:112,playNextVideo:12,playPrevVideo:13,repeatPlaylist:113,toggleFullscreen:14,returnFocus:15,seekToInteractive:16,toggleGraph:17,playPrevChapter:18,onDisabledPlayPrevChapterClick:114,onDisabledSeekToInteractiveClick:115},Av,[-1,-1,-1,-1,-1,-1])}},w0=Qu;function Wv(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 Wm({props:r}),pe.push(()=>Fe(e,"controlsElementRef",o)),{c(){N(e.$$.fragment)},m(l,a){R(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],Oe(()=>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 Gv(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 w0({props:r}),pe.push(()=>Fe(e,"controlsElementRef",o)),{c(){N(e.$$.fragment)},m(l,a){R(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],Oe(()=>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 jv(i){let e,t,n,o,r=[Gv,Wv],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=lt()},m(s,u){l[e].m(s,u),C(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&&k(n),l[e].d(s)}}}function Qv(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:S}=e,{nextButtonActive:b}=e,{prevButtonActive:w}=e,{isOneVideoPlaylist:y=!1}=e,{supportLink:T}=e,{customFullscreenSupported:v=!0}=e,{playNextVideo:g}=e,{playPrevVideo:E}=e,{repeatPlaylist:B}=e,{toggleFullscreen:L}=e,{returnFocus:F=ls.noop}=e,{seekToInteractive:ae}=e,{toggleGraph:oe}=e,{playPrevChapter:I}=e,{onDisabledPlayPrevChapterClick:le=ls.noop}=e,{onDisabledSeekToInteractiveClick:$=ls.noop}=e,x=it().ui.isMobile;q(i,x,A=>t(25,n=A));function O(A){a=A,t(0,a)}function Q(A){a=A,t(0,a)}return i.$$set=A=>{"bottomHidden"in A&&t(1,o=A.bottomHidden),"bottomNoSmooth"in A&&t(2,r=A.bottomNoSmooth),"showControls"in A&&t(3,l=A.showControls),"controlsElementRef"in A&&t(0,a=A.controlsElementRef),"isAds"in A&&t(4,s=A.isAds),"canRewindLive"in A&&t(5,u=A.canRewindLive),"logoClickable"in A&&t(6,c=A.logoClickable),"logoHidden"in A&&t(7,m=A.logoHidden),"logoTargetUrl"in A&&t(8,h=A.logoTargetUrl),"showNextPrevButtons"in A&&t(9,S=A.showNextPrevButtons),"nextButtonActive"in A&&t(10,b=A.nextButtonActive),"prevButtonActive"in A&&t(11,w=A.prevButtonActive),"isOneVideoPlaylist"in A&&t(12,y=A.isOneVideoPlaylist),"supportLink"in A&&t(13,T=A.supportLink),"customFullscreenSupported"in A&&t(14,v=A.customFullscreenSupported),"playNextVideo"in A&&t(15,g=A.playNextVideo),"playPrevVideo"in A&&t(16,E=A.playPrevVideo),"repeatPlaylist"in A&&t(17,B=A.repeatPlaylist),"toggleFullscreen"in A&&t(18,L=A.toggleFullscreen),"returnFocus"in A&&t(19,F=A.returnFocus),"seekToInteractive"in A&&t(20,ae=A.seekToInteractive),"toggleGraph"in A&&t(21,oe=A.toggleGraph),"playPrevChapter"in A&&t(22,I=A.playPrevChapter),"onDisabledPlayPrevChapterClick"in A&&t(23,le=A.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in A&&t(24,$=A.onDisabledSeekToInteractiveClick)},[a,o,r,l,s,u,c,m,h,S,b,w,y,T,v,g,E,B,L,F,ae,oe,I,le,$,n,x,O,Q]}var Yu=class extends K{constructor(e){super(),W(this,e,Qv,jv,U,{bottomHidden:1,bottomNoSmooth:2,showControls:3,controlsElementRef:0,isAds:4,canRewindLive:5,logoClickable:6,logoHidden:7,logoTargetUrl:8,showNextPrevButtons:9,nextButtonActive:10,prevButtonActive:11,isOneVideoPlaylist:12,supportLink:13,customFullscreenSupported:14,playNextVideo:15,playPrevVideo:16,repeatPlaylist:17,toggleFullscreen:18,returnFocus:19,seekToInteractive:20,toggleGraph:21,playPrevChapter:22,onDisabledPlayPrevChapterClick:23,onDisabledSeekToInteractiveClick:24})}},rs=Yu;function Yv(i){let e,t,n,o,r,l,a,s,u,c,m,h,S,b,w=i[2].default,y=Ee(w,i,i[1],null),T=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"51"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-icon"},{role:"img"},i[0]],v={};for(let g=0;g<T.length;g+=1)v=se(v,T[g]);return{c(){e=V("svg"),y&&y.c(),t=V("g"),n=V("path"),o=V("path"),r=V("defs"),l=V("filter"),a=V("feFlood"),s=V("feColorMatrix"),u=V("feOffset"),c=V("feGaussianBlur"),m=V("feColorMatrix"),h=V("feBlend"),S=V("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(S,"in","SourceGraphic"),f(S,"in2","effect1_dropShadow_2260_100684"),f(S,"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"),ge(e,v)},m(g,E){C(g,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,S),b=!0},p(g,[E]){y&&y.p&&(!b||E&2)&&Ve(y,w,g,g[1],b?Me(w,g[1],E,null):Ae(g[1]),null),ge(e,v=Be(T,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"51"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-icon"},{role:"img"},E&1&&g[0]]))},i(g){b||(d(y,g),b=!0)},o(g){_(y,g),b=!1},d(g){g&&k(e),y&&y.d(g)}}}function Zv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Zu=class extends K{constructor(e){super(),W(this,e,Zv,Yv,U,{})}},k0=Zu;function Xv(i){let e,t;return e=new k0({props:{style:i[0]}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.style=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Jv(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 Xu=class extends K{constructor(e){super(),W(this,e,Jv,Xv,U,{reversed:1})}},C0=Xu;function xv(i){let e,t,n,o,r,l,a,s,u,c,m,h,S,b,w,y,T=i[2].default,v=Ee(T,i,i[1],null),g=[{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 B=0;B<g.length;B+=1)E=se(E,g[B]);return{c(){e=V("svg"),v&&v.c(),t=V("g"),n=V("path"),o=V("path"),r=V("defs"),l=V("clipPath"),a=V("path"),s=V("filter"),u=V("feFlood"),c=V("feColorMatrix"),m=V("feOffset"),h=V("feGaussianBlur"),S=V("feColorMatrix"),b=V("feBlend"),w=V("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(S,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(b,"in2","BackgroundImageFix"),f(b,"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"),ge(e,E)},m(B,L){C(B,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,S),p(s,b),p(s,w),y=!0},p(B,[L]){v&&v.p&&(!y||L&2)&&Ve(v,T,B,B[1],y?Me(T,B[1],L,null):Ae(B[1]),null),ge(e,E=Be(g,[{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&&B[0]]))},i(B){y||(d(v,B),y=!0)},o(B){_(v,B),y=!1},d(B){B&&k(e),v&&v.d(B)}}}function $v(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Ju=class extends K{constructor(e){super(),W(this,e,$v,xv,U,{})}},S0=Ju;function e5(i){let e,t,n,o,r,l,a,s,u,c,m,h,S,b,w,y,T,v=i[2].default,g=Ee(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]],B={};for(let L=0;L<E.length;L+=1)B=se(B,E[L]);return{c(){e=V("svg"),g&&g.c(),t=V("g"),n=V("path"),o=V("path"),r=V("path"),l=V("defs"),a=V("clipPath"),s=V("path"),u=V("filter"),c=V("feFlood"),m=V("feColorMatrix"),h=V("feOffset"),S=V("feGaussianBlur"),b=V("feColorMatrix"),w=V("feBlend"),y=V("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(S,"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(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"),ge(e,B)},m(L,F){C(L,e,F),g&&g.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,S),p(u,b),p(u,w),p(u,y),T=!0},p(L,[F]){g&&g.p&&(!T||F&2)&&Ve(g,v,L,L[1],T?Me(v,L[1],F,null):Ae(L[1]),null),ge(e,B=Be(E,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-off-icon"},{role:"img"},F&1&&L[0]]))},i(L){T||(d(g,L),T=!0)},o(L){_(g,L),T=!1},d(L){L&&k(e),g&&g.d(L)}}}function t5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var xu=class extends K{constructor(e){super(),W(this,e,t5,e5,U,{})}},P0=xu;function i5(i){let e,t;return e=new S0({}),{c(){N(e.$$.fragment)},m(n,o){R(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 n5(i){let e,t;return e=new P0({}),{c(){N(e.$$.fragment)},m(n,o){R(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 o5(i){let e,t,n,o,r=[n5,i5],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=lt()},m(s,u){l[e].m(s,u),C(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&&k(n),l[e].d(s)}}}function l5(i,e,t){let{isOff:n=!1}=e;return i.$$set=o=>{"isOff"in o&&t(0,n=o.isOff)},[n]}var $u=class extends K{constructor(e){super(),W(this,e,l5,o5,U,{isOff:0})}},ef=$u;function r5(i){let e,t,n,o,r,l,a,s,u,c,m,h,S,b,w=i[2].default,y=Ee(w,i,i[1],null),T=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"rate-change-icon"},{role:"img"},i[0]],v={};for(let g=0;g<T.length;g+=1)v=se(v,T[g]);return{c(){e=V("svg"),y&&y.c(),t=V("g"),n=V("path"),o=V("path"),r=V("defs"),l=V("filter"),a=V("feFlood"),s=V("feColorMatrix"),u=V("feOffset"),c=V("feGaussianBlur"),m=V("feColorMatrix"),h=V("feBlend"),S=V("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(S,"in","SourceGraphic"),f(S,"in2","effect1_dropShadow_2260_106627"),f(S,"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"),ge(e,v)},m(g,E){C(g,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,S),b=!0},p(g,[E]){y&&y.p&&(!b||E&2)&&Ve(y,w,g,g[1],b?Me(w,g[1],E,null):Ae(g[1]),null),ge(e,v=Be(T,[{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&&g[0]]))},i(g){b||(d(y,g),b=!0)},o(g){_(y,g),b=!1},d(g){g&&k(e),y&&y.d(g)}}}function s5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var tf=class extends K{constructor(e){super(),W(this,e,s5,r5,U,{})}},T0=tf;function a5(i){let e,t;return e=new T0({props:{style:i[0]}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.style=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function u5(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 nf=class extends K{constructor(e){super(),W(this,e,u5,a5,U,{reversed:1})}},I0=nf;function f5(i){let e,t,n,o,r,l,a,s,u,c,m,h,S,b,w=i[2].default,y=Ee(w,i,i[1],null),T=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-seek-icon"},{role:"img"},i[0]],v={};for(let g=0;g<T.length;g+=1)v=se(v,T[g]);return{c(){e=V("svg"),y&&y.c(),t=V("g"),n=V("path"),o=V("path"),r=V("defs"),l=V("filter"),a=V("feFlood"),s=V("feColorMatrix"),u=V("feOffset"),c=V("feGaussianBlur"),m=V("feColorMatrix"),h=V("feBlend"),S=V("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(S,"in","SourceGraphic"),f(S,"in2","effect1_dropShadow_2340_106922"),f(S,"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"),ge(e,v)},m(g,E){C(g,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,S),b=!0},p(g,[E]){y&&y.p&&(!b||E&2)&&Ve(y,w,g,g[1],b?Me(w,g[1],E,null):Ae(g[1]),null),ge(e,v=Be(T,[{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&&g[0]]))},i(g){b||(d(y,g),b=!0)},o(g){_(y,g),b=!1},d(g){g&&k(e),y&&y.d(g)}}}function c5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var of=class extends K{constructor(e){super(),W(this,e,c5,f5,U,{})}},E0=of;function d5(i){let e,t;return e=new E0({props:{style:i[0]}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.style=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function m5(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=r=>{"reversed"in r&&t(1,o=r.reversed)},i.$$.update=()=>{if(i.$$.dirty&2)e:t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var lf=class extends K{constructor(e){super(),W(this,e,m5,d5,U,{reversed:1})}},M0=lf;function p5(i){Pe(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 V0(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,S,b,w,y,T=t&&A0(i),v=i[4]==="PAUSE"&&L0(i),g=i[4]==="PLAY"&&B0(i),E=i[4]==="REPLAY"&&R0(i),B=i[4]==="SUBTITLES_OFF"&&D0(i),L=i[4]==="SUBTITLES_ON"&&N0(i),F=u&&O0(i),ae=m&&F0(i),oe=i[4]==="MUTE"&&H0(i),I=i[4]==="VOLUME"&&z0(i),le=i[5]&&q0(i);return{c(){e=P("div"),T&&T.c(),n=z(),v&&v.c(),o=z(),g&&g.c(),r=z(),E&&E.c(),l=z(),B&&B.c(),a=z(),L&&L.c(),s=z(),F&&F.c(),c=z(),ae&&ae.c(),h=z(),oe&&oe.c(),S=z(),I&&I.c(),b=z(),le&&le.c(),w=lt(),f(e,"class","svelte-4ftgwp")},m($,j){C($,e,j),T&&T.m(e,null),p(e,n),v&&v.m(e,null),p(e,o),g&&g.m(e,null),p(e,r),E&&E.m(e,null),p(e,l),B&&B.m(e,null),p(e,a),L&&L.m(e,null),p(e,s),F&&F.m(e,null),p(e,c),ae&&ae.m(e,null),p(e,h),oe&&oe.m(e,null),p(e,S),I&&I.m(e,null),C($,b,j),le&&le.m($,j),C($,w,j),y=!0},p($,j){j&16&&(t=["BACKWARD_SEEK","FORWARD_SEEK"].includes($[4])),t?T?(T.p($,j),j&16&&d(T,1)):(T=A0($),T.c(),d(T,1),T.m(e,n)):T&&(ue(),_(T,1,1,()=>{T=null}),fe()),$[4]==="PAUSE"?v?j&16&&d(v,1):(v=L0($),v.c(),d(v,1),v.m(e,o)):v&&(ue(),_(v,1,1,()=>{v=null}),fe()),$[4]==="PLAY"?g?j&16&&d(g,1):(g=B0($),g.c(),d(g,1),g.m(e,r)):g&&(ue(),_(g,1,1,()=>{g=null}),fe()),$[4]==="REPLAY"?E?j&16&&d(E,1):(E=R0($),E.c(),d(E,1),E.m(e,l)):E&&(ue(),_(E,1,1,()=>{E=null}),fe()),$[4]==="SUBTITLES_OFF"?B?j&16&&d(B,1):(B=D0($),B.c(),d(B,1),B.m(e,a)):B&&(ue(),_(B,1,1,()=>{B=null}),fe()),$[4]==="SUBTITLES_ON"?L?j&16&&d(L,1):(L=N0($),L.c(),d(L,1),L.m(e,s)):L&&(ue(),_(L,1,1,()=>{L=null}),fe()),j&16&&(u=["RATE_DOWN","RATE_UP"].includes($[4])),u?F?(F.p($,j),j&16&&d(F,1)):(F=O0($),F.c(),d(F,1),F.m(e,c)):F&&(ue(),_(F,1,1,()=>{F=null}),fe()),j&16&&(m=["EPISODE_PREV","EPISODE_NEXT"].includes($[4])),m?ae?(ae.p($,j),j&16&&d(ae,1)):(ae=F0($),ae.c(),d(ae,1),ae.m(e,h)):ae&&(ue(),_(ae,1,1,()=>{ae=null}),fe()),$[4]==="MUTE"?oe?j&16&&d(oe,1):(oe=H0($),oe.c(),d(oe,1),oe.m(e,S)):oe&&(ue(),_(oe,1,1,()=>{oe=null}),fe()),$[4]==="VOLUME"?I?j&16&&d(I,1):(I=z0($),I.c(),d(I,1),I.m(e,null)):I&&(ue(),_(I,1,1,()=>{I=null}),fe()),$[5]?le?le.p($,j):(le=q0($),le.c(),le.m(w.parentNode,w)):le&&(le.d(1),le=null)},i($){y||(d(T),d(v),d(g),d(E),d(B),d(L),d(F),d(ae),d(oe),d(I),y=!0)},o($){_(T),_(v),_(g),_(E),_(B),_(L),_(F),_(ae),_(oe),_(I),y=!1},d($){$&&(k(e),k(b),k(w)),T&&T.d(),v&&v.d(),g&&g.d(),E&&E.d(),B&&B.d(),L&&L.d(),F&&F.d(),ae&&ae.d(),oe&&oe.d(),I&&I.d(),le&&le.d($)}}}function A0(i){let e,t;return e=new C0({props:{reversed:i[4]==="FORWARD_SEEK"}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.reversed=n[4]==="FORWARD_SEEK"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function L0(i){let e,t;return e=new Or({}),{c(){N(e.$$.fragment)},m(n,o){R(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 B0(i){let e,t;return e=new yl({}),{c(){N(e.$$.fragment)},m(n,o){R(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 R0(i){let e,t;return e=new Yr({}),{c(){N(e.$$.fragment)},m(n,o){R(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 D0(i){let e,t;return e=new ef({props:{isOff:!0}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function N0(i){let e,t;return e=new ef({}),{c(){N(e.$$.fragment)},m(n,o){R(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 O0(i){let e,t;return e=new I0({props:{reversed:i[4]==="RATE_UP"}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.reversed=n[4]==="RATE_UP"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function F0(i){let e,t;return e=new M0({props:{reversed:i[4]==="EPISODE_NEXT"}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.reversed=n[4]==="EPISODE_NEXT"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function H0(i){let e,t;return e=new jo({props:{volume:0}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function z0(i){let e,t;return e=new jo({props:{volume:1}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function q0(i){let e,t;return{c(){e=P("span"),t=Re(i[5]),f(e,"class","hot-key-helpers-text svelte-4ftgwp")},m(n,o){C(n,e,o),p(e,t)},p(n,o){o&32&&je(t,n[5])},d(n){n&&k(e)}}}function _5(i){let e,t,n=!i[1]&&i[4]&&V0(i);return{c(){e=P("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){C(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=V0(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&&k(e),n&&n.d()}}}function h5(i,e,t){let n,o=me,r=()=>(o(),o=Xt(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 rf=class extends K{constructor(e){super(),W(this,e,h5,_5,U,{data:0},p5)}},U0=rf;function g5(i){Pe(i,"svelte-1yzc86r",".immersive-controls.svelte-1yzc86r{position:absolute;display:flex;flex-direction:row;top:10px;left:10px;width:56px;height:56px;background-color:rgba(0, 0, 0, .56);border-radius:8px;transition-property:top, left;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn)}.immersive-controls.m-shifted.svelte-1yzc86r{top:50px;left:20px}.button-block.svelte-1yzc86r{width:40px;height:40px;margin:auto auto;transform:rotate(45deg)}.button-row.svelte-1yzc86r{display:flex;flex-direction:row;position:relative}.button.svelte-1yzc86r{width:20px;height:20px;text-align:center;cursor:pointer}.button.svelte-1yzc86r svg{opacity:0.7;transition:opacity linear 0.2s}.button.button-up.svelte-1yzc86r svg{transform:rotate(-45deg) translate(-1px, -1px)}.button.button-right.svelte-1yzc86r svg{transform:rotate(45deg) translate(1px, -1px)}.button.button-down.svelte-1yzc86r svg{transform:rotate(135deg) translate(1px, -3px)}.button.button-left.svelte-1yzc86r svg{transform:rotate(-135deg) translate(-1px, -3px)}.button.svelte-1yzc86r:hover svg{opacity:1}")}function b5(i){let e,t,n,o,r,l,a,s,u,c,m,h,S,b,w,y,T,v,g;return r=new Zn({props:{direction:"up"}}),s=new Zn({props:{direction:"up"}}),h=new Zn({props:{direction:"up"}}),w=new Zn({props:{direction:"up"}}),{c(){e=P("div"),t=P("div"),n=P("div"),o=P("div"),N(r.$$.fragment),l=z(),a=P("div"),N(s.$$.fragment),u=z(),c=P("div"),m=P("div"),N(h.$$.fragment),S=z(),b=P("div"),N(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(b,"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,B){C(E,e,B),p(e,t),p(t,n),p(n,o),R(r,o,null),p(n,l),p(n,a),R(s,a,null),p(t,u),p(t,c),p(c,m),R(h,m,null),p(c,S),p(c,b),R(w,b,null),T=!0,v||(g=[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(b,"mousedown",i[2]),de(b,"mouseup",i[5]),de(b,"mouseleave",i[5]),de(e,"keydown",i[6]),de(e,"keyup",i[7])],v=!0)},p(E,[B]){(!T||B&1)&&H(e,"m-shifted",E[0])},i(E){T||(d(r.$$.fragment,E),d(s.$$.fragment,E),d(h.$$.fragment,E),d(w.$$.fragment,E),T=!0)},o(E){_(r.$$.fragment,E),_(s.$$.fragment,E),_(h.$$.fragment,E),_(w.$$.fragment,E),T=!1},d(E){E&&k(e),D(r),D(s),D(h),D(w),v=!1,xe(g)}}}function v5(i,e,t){let{isShifted:n=!1}=e,o=it(),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=S=>{if(r.has(S.code))switch(S.preventDefault(),S.stopPropagation(),S.code){case"ArrowUp":l();break;case"ArrowDown":a();break;case"ArrowLeft":u();break;case"ArrowRight":s();break}},h=S=>{r.has(S.code)&&(S.preventDefault(),S.stopPropagation(),c())};return i.$$set=S=>{"isShifted"in S&&t(0,n=S.isShifted)},[n,l,a,s,u,c,m,h]}var sf=class extends K{constructor(e){super(),W(this,e,v5,b5,U,{isShifted:0},g5)}},ss=sf;function y5(i){Pe(i,"svelte-ovfyp5",".subtitles-container.svelte-ovfyp5.svelte-ovfyp5{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;transition:transform var(--controls-transition-duration)}.subtitles-container.shifted.svelte-ovfyp5.svelte-ovfyp5{transform:translateY(calc(var(--controls-height) * -1))}.subtitles-caption.svelte-ovfyp5.svelte-ovfyp5{position:absolute;left:4%;right:4%;bottom:4%;display:flex;justify-content:center}.subtitles-caption.mobile.svelte-ovfyp5.svelte-ovfyp5{bottom:8%}.subtitles-container.auto.svelte-ovfyp5 .subtitles-caption.svelte-ovfyp5{left:24%;right:24%}.caption.svelte-ovfyp5.svelte-ovfyp5{display:block;overflow-wrap:normal;padding:4px 8px;border-radius:4px;background:rgba(0, 0, 0, 0.4)}.subtitles-container.auto.svelte-ovfyp5 .caption.svelte-ovfyp5{width:100%}.caption-line.svelte-ovfyp5.svelte-ovfyp5{display:block;text-align:center}.subtitles-container.auto.svelte-ovfyp5 .caption-line.svelte-ovfyp5{text-align:left}.caption-segment.svelte-ovfyp5.svelte-ovfyp5{display:inline-block;line-height:1.2;font-size:13px;color:var(--white);white-space:pre-wrap}")}function K0(i,e,t){let n=i.slice();return n[16]=e[t].value,n}function W0(i,e,t){let n=i.slice();return n[16]=e[t].value,n[17]=e[t].timeAppeared,n}function G0(i){let e,t;function n(l,a){return l[7]&&l[8]?C5:l[5]?k5:w5}let o=n(i,-1),r=o(i);return{c(){e=P("div"),t=P("span"),r.c(),f(t,"class","caption svelte-ovfyp5"),f(e,"class","subtitles-caption svelte-ovfyp5"),H(e,"mobile",i[3])},m(l,a){C(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&&k(e),r.d()}}}function w5(i){let e,t=St(i[1]),n=[];for(let o=0;o<t.length;o+=1)n[o]=j0(K0(i,t,o));return{c(){for(let o=0;o<n.length;o+=1)n[o].c();e=lt()},m(o,r){for(let l=0;l<n.length;l+=1)n[l]&&n[l].m(o,r);C(o,e,r)},p(o,r){if(r&18){t=St(o[1]);let l;for(l=0;l<t.length;l+=1){let a=K0(o,t,l);n[l]?n[l].p(a,r):(n[l]=j0(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&&k(e),Ei(n,o)}}}function k5(i){let e,t,n=St(i[6]),o=[];for(let r=0;r<n.length;r+=1)o[r]=Y0(W0(i,n,r));return{c(){e=P("span"),t=P("span");for(let r=0;r<o.length;r+=1)o[r].c();f(t,"class","caption-segment svelte-ovfyp5"),yi(t,"font-size",i[4]+"px"),f(e,"class","caption-line svelte-ovfyp5")},m(r,l){C(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=St(r[6]);let a;for(a=0;a<n.length;a+=1){let s=W0(r,n,a);o[a]?o[a].p(s,l):(o[a]=Y0(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&&yi(t,"font-size",r[4]+"px")},d(r){r&&k(e),Ei(o,r)}}}function C5(i){let e,t,n=G("subtitles_auto_caption")+"",o;return{c(){e=P("span"),t=P("span"),o=Re(n),f(t,"class","caption-segment svelte-ovfyp5"),yi(t,"font-size",i[4]+"px"),f(e,"class","caption-line svelte-ovfyp5")},m(r,l){C(r,e,l),p(e,t),p(t,o)},p(r,l){l&16&&yi(t,"font-size",r[4]+"px")},d(r){r&&k(e)}}}function j0(i){let e,t,n=i[16]+"",o,r;return{c(){e=P("span"),t=P("span"),o=Re(n),r=z(),f(t,"class","caption-segment svelte-ovfyp5"),yi(t,"font-size",i[4]+"px"),f(e,"class","caption-line svelte-ovfyp5")},m(l,a){C(l,e,a),p(e,t),p(t,o),p(e,r)},p(l,a){a&2&&n!==(n=l[16]+"")&&je(o,n),a&16&&yi(t,"font-size",l[4]+"px")},d(l){l&&k(e)}}}function Q0(i){let e=i[16]+"",t;return{c(){t=Re(e)},m(n,o){C(n,t,o)},p(n,o){o&64&&e!==(e=n[16]+"")&&je(t,e)},d(n){n&&k(t)}}}function Y0(i){let e,t=(!i[17]||i[17]<=i[2])&&Q0(i);return{c(){t&&t.c(),e=lt()},m(n,o){t&&t.m(n,o),C(n,e,o)},p(n,o){!n[17]||n[17]<=n[2]?t?t.p(n,o):(t=Q0(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){n&&k(e),t&&t.d(n)}}}function S5(i){let e,t=i[1].length>0&&G0(i);return{c(){e=P("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){C(n,e,o),t&&t.m(e,null)},p(n,[o]){n[1].length>0?t?t.p(n,o):(t=G0(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:me,o:me,d(n){n&&k(e),t&&t.d()}}}function P5(i,e,t){let n,o,{shifted:r}=e,{captions:l}=e,{position:a}=e,{playerSize:s}=e,{isMobile:u=!1}=e,c=it(),m=Ht(),h=c.state.currentSubtitle$;q(i,h,g=>t(12,n=g));let S=c.state.isAutoSubtitleCaptionVisible$;q(i,S,g=>t(8,o=g));let b,w,y,T,v;return Rt(()=>{v=window.setTimeout(()=>{S.set(!1)},m.autoSubtitlesTimeout)}),jn(()=>{window.clearTimeout(v)}),i.$$set=g=>{"shifted"in g&&t(0,r=g.shifted),"captions"in g&&t(1,l=g.captions),"position"in g&&t(2,a=g.position),"playerSize"in g&&t(11,s=g.playerSize),"isMobile"in g&&t(3,u=g.isMobile)},i.$$.update=()=>{if(i.$$.dirty&2048)e:{let g=s.width*.02;t(4,b=g<=m.minSubtitlesFontSize?m.minSubtitlesFontSize:g)}if(i.$$.dirty&2)e:t(5,w=l.some(g=>g.type==="timestamp"));if(i.$$.dirty&2)e:t(6,y=l.reduce((g,{type:E,value:B})=>(E==="timestamp"?g.push({timeAppeared:Number(B),value:""}):g.length===0?g.push({value:String(B)}):g[g.length-1].value=String(B),g),[]));if(i.$$.dirty&4096)e:t(7,T=!!n.isAuto)},[r,l,a,u,b,w,y,T,o,h,S,s,n]}var af=class extends K{constructor(e){super(),W(this,e,P5,S5,U,{shifted:0,captions:1,position:2,playerSize:11,isMobile:3},y5)}},as=af;function T5(i){Pe(i,"svelte-1o62kpz",".wrapper.svelte-1o62kpz{height:100%;background-position:center;background-size:cover;display:flex;align-items:center;justify-content:center;font-size:16px;flex-direction:column}.icon_wrapper.svelte-1o62kpz{display:flex;flex-direction:column;align-items:center;width:400px}.icon.svelte-1o62kpz{width:50px;height:50px}.text.svelte-1o62kpz{margin-top:20px}")}function Z0(i){let e,t,n;return{c(){e=P("div"),t=Re("\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 "),n=Re(i[1]),f(e,"class","text svelte-1o62kpz")},m(o,r){C(o,e,r),p(e,t),p(e,n)},p(o,r){r&2&&je(n,o[1])},d(o){o&&k(e)}}}function I5(i){let e,t,n,o,r,l,a=i[1]&&Z0(i);return{c(){e=P("div"),t=P("div"),t.innerHTML='<svg class="icon svelte-1o62kpz" width="22" height="22" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path d="M1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm0-4v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11zm20-7H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="#fff"></path><path d="M0 0h24v24H0z"></path></g></svg>',n=z(),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){C(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=Z0(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:me,o:me,d(s){s&&k(e),a&&a.d(),r=!1,l()}}}function E5(i,e,t){let{thumbUrl:n}=e,{chromecastDeviceName:o}=e;function r(l){Dn.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 uf=class extends K{constructor(e){super(),W(this,e,E5,I5,U,{thumbUrl:0,chromecastDeviceName:1},T5)}},us=uf;function M5(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=se(a,l[s]);return{c(){e=V("svg"),r&&r.c(),t=V("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"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Be(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"200"},{height:"200"},{"aria-hidden":"true"},{"data-testid":"error-icon"},{viewBox:"460 190 130 90"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function V5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var ff=class extends K{constructor(e){super(),W(this,e,V5,M5,U,{})}},X0=ff;function A5(i){Pe(i,"svelte-13zpvm8",".container.svelte-13zpvm8{position:absolute;top:0;bottom:0;left:0;right:0;background:#000;display:flex;align-items:center;justify-content:center}")}function L5(i){let e,t,n;return t=new X0({}),{c(){e=P("div"),N(t.$$.fragment),f(e,"class","container svelte-13zpvm8")},m(o,r){C(o,e,r),R(t,e,null),n=!0},p:me,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),D(t)}}}var cf=class extends K{constructor(e){super(),W(this,e,null,L5,U,{},A5)}},fs=cf;function B5(i){Pe(i,"svelte-17wno3",".container.svelte-17wno3.svelte-17wno3{position:absolute;top:0;bottom:0;left:0;right:0;background-position:center;background-size:cover;cursor:pointer;transition:opacity 0.2s, visibility 0.2s;will-change:opacity}.container.hidden.svelte-17wno3.svelte-17wno3{opacity:0;visibility:hidden}.playButton.svelte-17wno3.svelte-17wno3{position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center}.playButtonBackground.svelte-17wno3.svelte-17wno3{position:absolute;top:0;bottom:0;left:0;right:0;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);transition:background 0.2s, transform 0.2s;transition-timing-function:ease-out;will-change:background, transform}.container.svelte-17wno3:hover .playButtonBackground.svelte-17wno3{background-color:var(--big-play-hover-bg-color);transform:scale(1.15)}.playButton.svelte-17wno3 svg{transform:scale(2)}")}function R5(i){let e,t,n,o,r,l,a,s,u,c;return r=new yl({}),{c(){e=P("div"),t=P("div"),n=P("div"),o=z(),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){C(m,e,h),p(e,t),p(t,n),p(t,o),R(r,t,null),s=!0,u||(c=[de(t,"keydown",i[3]),de(e,"click",rt(function(){Ii(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&&k(e),D(r),u=!1,xe(c)}}}function D5(i,e,t){let{thumbUrl:n}=e,{hidden:o}=e,{startVideo:r}=e,a=it().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 df=class extends K{constructor(e){super(),W(this,e,D5,R5,U,{thumbUrl:0,hidden:1,startVideo:2,handlePressKey:3},B5)}get handlePressKey(){return this.$$.ctx[3]}},cs=df;function N5(i){Pe(i,"svelte-1bcvcf2",`.title.svelte-1bcvcf2{position:absolute;pointer-events:none;left:0;top:0;width:100%;height:var(--controls-gradient-height);font-size:15px;color:var(--white);box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transition-property:visibility, transform, opacity;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);will-change:transform, opacity;background:linear-gradient(
24
+ )}`)}function Fc(i){let e;return{c(){e=T("div"),f(e,"class","top-gradient-mobile svelte-354ajf")},m(t,n){C(t,e,n)},d(t){t&&k(e)}}}function Hc(i){let e,t;return e=new Nc({props:{position:i[5],secondsToWatchBeforeSkip:i[6],skipAd:i[8].actions.internal.skipAd}}),{c(){D(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){B(e,n)}}}function zc(i){let e,t;return e=new Rc({}),{c(){D(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){B(e,n)}}}function qc(i){let e,t;return e=new Oc({}),{c(){D(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){B(e,n)}}}function h_(i){let e,t,n,o,r,l,a,s=i[0]&&Fc(i),u=i[3]&&Hc(i),c=i[7]&&zc(i),m=i[4]&&qc(i);return{c(){e=T("div"),s&&s.c(),t=F(),n=T("video"),o=F(),u&&u.c(),r=F(),c&&c.c(),l=F(),m&&m.c(),_i(n,"width","100%"),_i(n,"height","100%"),n.playsInline=!0,f(e,"class","container svelte-354ajf")},m(h,w){C(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=Fc(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=Hc(h),u.c(),d(u,1),u.m(e,r)):u&&(fe(),_(u,1,1,()=>{u=null}),ce()),h[7]?c?w&128&&d(c,1):(c=zc(h),c.c(),d(c,1),c.m(e,l)):c&&(fe(),_(c,1,1,()=>{c=null}),ce()),h[4]?m?w&16&&d(m,1):(m=qc(h),m.c(),d(m,1),m.m(e,null)):m&&(fe(),_(m,1,1,()=>{m=null}),ce())},i(h){a||(d(u),d(c),d(m),a=!0)},o(h){_(u),_(c),_(m),a=!1},d(h){h&&k(e),s&&s.d(),i[19](null),u&&u.d(),c&&c.d(),m&&m.d(),i[20](null)}}}function g_(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=it(),w=h.state.isEnded$;z(i,w,O=>t(7,a=O));let b=h.ui.isMobile;z(i,b,O=>t(0,o=O));let S,y,P=!1,v=h.ads.playbackState;z(i,v,O=>t(18,n=O));let g=h.ads.canSkip,I=h.ads.position;z(i,I,O=>t(5,r=O));let N=h.ads.secondsToWatchBeforeSkip;z(i,N,O=>t(6,l=O));let W,U;Rt(()=>{let O=new AbortController,R=()=>{O.abort()},x=h.getAdmanWrapper();if(!s){x.onAdmanLoadingError();return}let{width:Y,height:J}=tt(h.ui.playerSize),E=tt(h.ui.isFullscreen),te=tt(h.ui.isAutoplay),M={width:Y,height:J,isFullscreen:E,isAutoplay:te,adsContainer:S,adsVideoElement:y,slotId:s,params:u,previewParam:c,duration:m};return window.AdmanHTML?(x.initAdman(M),P=!0):x.loadAdman(O.signal).then(()=>{x.initAdman(M),P=!0}).catch(()=>{x.onAdmanLoadingError()}),()=>{!P&&R()}});function le(O){pe[O?"unshift":"push"](()=>{y=O,t(2,y)})}function ae(O){pe[O?"unshift":"push"](()=>{S=O,t(1,S)})}return i.$$set=O=>{"adsSlotId"in O&&t(14,s=O.adsSlotId),"adsParams"in O&&t(15,u=O.adsParams),"adsPreviewParam"in O&&t(16,c=O.adsPreviewParam),"duration"in O&&t(17,m=O.duration)},i.$$.update=()=>{if(i.$$.dirty&262144)e:t(3,W=g&&n!=="inactive");if(i.$$.dirty&262145)e:t(4,U=o&&n!=="inactive")},[o,S,y,W,U,r,l,a,h,w,b,v,I,N,s,u,c,m,n,le,ae]}var zs=class extends K{constructor(e){super(),G(this,e,g_,h_,q,{adsSlotId:14,adsParams:15,adsPreviewParam:16,duration:17},__)}},dr=zs;var En=i=>{if(!isFinite(i))return"00:00";let e=Math.round(i),t=Math.floor(e/(60*60));e-=t*3600;let n=Math.floor(e/60);return e-=n*60,(t>0?[t,n,e]:[n,e]).map(r=>r>9?String(r):`0${r}`).join(":")};function b_(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=oe(s,a[u]);return{c(){e=V("svg"),l&&l.c(),t=V("path"),n=V("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"),ge(e,s)},m(u,c){C(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)&&Ve(l,r,u,u[1],o?Me(r,u[1],c,null):Ae(u[1]),null),ge(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&&k(e),l&&l.d(u)}}}function v_(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var qs=class extends K{constructor(e){super(),G(this,e,v_,b_,q,{})}},Uc=qs;function y_(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=oe(s,a[u]);return{c(){e=V("svg"),l&&l.c(),t=V("rect"),n=V("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"),ge(e,s)},m(u,c){C(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)&&Ve(l,r,u,u[1],o?Me(r,u[1],c,null):Ae(u[1]),null),ge(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&&k(e),l&&l.d(u)}}}function w_(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Us=class extends K{constructor(e){super(),G(this,e,w_,y_,q,{})}},Kc=Us;function k_(i){let e,t;return e=new Uc({}),{c(){D(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){B(e,n)}}}function C_(i){let e,t;return e=new Kc({}),{c(){D(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){B(e,n)}}}function S_(i){let e,t,n,o,r=[C_,k_],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=lt()},m(s,u){l[e].m(s,u),C(s,n,u),o=!0},p(s,[u]){let c=e;e=a(s,u),e!==c&&(fe(),_(l[c],1,1,()=>{l[c]=null}),ce(),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&&k(n),l[e].d(s)}}}function P_(i,e,t){let{isActive:n=!1}=e;return i.$$set=o=>{"isActive"in o&&t(0,n=o.isActive)},[n]}var Ks=class extends K{constructor(e){super(),G(this,e,P_,S_,q,{isActive:0})}},mr=Ks;function T_(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 I_(i){let e=En(i[4]-i[3])+"",t;return{c(){t=De(e)},m(n,o){C(n,t,o)},p(n,o){o&24&&e!==(e=En(n[4]-n[3])+"")&&Ye(t,e)},i:de,o:de,d(n){n&&k(t)}}}function E_(i){let e,t,n;return t=new mr({props:{isActive:!0}}),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","thumb-timer-live-icon svelte-7pnl2h")},m(o,r){C(o,e,r),L(t,e,null),n=!0},p:de,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),B(t)}}}function M_(i){let e,t,n,o,r,l,a,s=[E_,I_],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=F(),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){C(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):(fe(),_(u[w],1,1,()=>{u[w]=null}),ce(),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&&k(e),u[r].d()}}}function V_(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 Ws=class extends K{constructor(e){super(),G(this,e,V_,M_,q,{isHidden:0,isLive:1,isPlaying:2,position:3,duration:4},T_)}},pr=Ws;var Il=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 Gs=require("@vkontakte/videoplayer-core");var Gc=require("@vkontakte/videoplayer-shared"),A_=(0,Gc.isAndroid)(),No=i=>{i.stopPropagation(),i.preventDefault()},L_=i=>{var t;let e=i.previousElementSibling;e||(e=(t=i.parentNode)==null?void 0:t.lastElementChild),e==null||e.focus()},B_=i=>{var t;let e=i.nextElementSibling;e||(e=(t=i.parentNode)==null?void 0:t.firstElementChild),e==null||e.focus()},R_=i=>{let e=i.code;return e==="Tab"&&!i.shiftKey||e==="ArrowDown"},D_=i=>{let e=i.code;return e==="Tab"||e==="ArrowUp"},jc=i=>i.code==="Escape",N_=i=>i.code==="ArrowLeft",Qc=(i,e=!0)=>{let t=i.code;return["Enter","Space"].includes(t)||!e&&t==="ArrowRight"},Yc=i=>{if(R_(i)){No(i),B_(i.target);return}D_(i)&&(No(i),L_(i.target))},nl=i=>(i==null?void 0:i.detail)===0||A_&&(i==null?void 0:i.pointerType)==="",ol=async(i,e,t)=>{await Kn(),i&&!i.classList.contains("opened")&&!e&&tt(t)&&(await Kn(),t.set(!1),i.focus())},Zc=async(i,e,t)=>{await Kn(),i&&!e&&tt(t)&&(t.set(!1),i.focus())},Oo=async(i,e,t)=>{await Kn(),!!i&&e&&t&&setTimeout(()=>{i.firstChild.focus()},100)},El=async(i,e,t)=>{!!i&&t&&(e.set(!1),setTimeout(()=>{i.focus()},100))},_r=(i,e)=>{Yc(i),jc(i)&&(No(i),e())},Ml=async(i,e,t)=>{if(Qc(i,!1)){No(i),e(),await Kn();let n=t();n==null||n.focus()}},Vl=async(i,e,t,n)=>{if(Yc(i),N_(i)){No(i),e(),t.set(!0);return}jc(i)&&(No(i),n())},xi=(i,e)=>{Qc(i)&&(No(i),e())},Xc=i=>{let e=i.getBoundingClientRect(),t=-14,n=e.left+e.width,o=e.top+t;return{right:n,bottom:o}},Jc=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 Al=require("@vkontakte/videoplayer-shared");function O_(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 xc(i){var R;let e,t,n,o,r,l,a,s,u,c=(i[10].features.saveDebugInfoToFile?Q("menu_save_debug"):Q("menu_copy_debug"))+"",m,h,w,b,S=Q("menu_debug_overlay")+"",y,P,v,g,I=i[10].features.copyVideoLink&&((R=i[9].callbacks)==null?void 0:R.onCopyVideoLink)&&F_(i),N=i[12]&&i[6]!==Gs.ChromecastState.CONNECTED&&!i[17]&&e1(i);function W(x,Y){return x[4]?z_:H_}let U=W(i,[-1,-1]),le=U(i),ae=i[10].features.videoRotate&&!i[17]&&q_(i),O=i[10].showSupport&&!i[7]&&t1(i);return{c(){e=T("ul"),I&&I.c(),t=F(),N&&N.c(),n=F(),o=T("li"),le.c(),l=F(),ae&&ae.c(),a=F(),O&&O.c(),s=F(),u=T("li"),m=De(c),w=F(),b=T("li"),y=De(S),f(o,"tabindex","0"),f(o,"role","menuitem"),f(o,"aria-label",r=Q("aria_label_menu_loop")),f(o,"class","svelte-1vzqlps"),f(u,"tabindex","0"),f(u,"role","menuitem"),f(u,"aria-label",h=i[10].features.saveDebugInfoToFile?Q("menu_save_debug"):Q("menu_copy_debug")),f(u,"class","svelte-1vzqlps"),f(b,"tabindex","0"),f(b,"role","menuitem"),f(b,"aria-label",P=i[8]?Q("aria_label_menu_debug_overlay_disable"):Q("aria_label_menu_debug_overlay_enable")),f(b,"class","svelte-1vzqlps"),f(e,"role","menu"),_i(e,"top",i[3]+"px"),_i(e,"left",i[2]+"px"),f(e,"class","svelte-1vzqlps")},m(x,Y){C(x,e,Y),I&&I.m(e,null),p(e,t),N&&N.m(e,null),p(e,n),p(e,o),le.m(o,null),p(e,l),ae&&ae.m(e,null),p(e,a),O&&O.m(e,null),p(e,s),p(e,u),p(u,m),p(e,w),p(e,b),p(b,y),i[42](e),v||(g=[me(o,"click",st(i[24])),me(o,"keydown",i[30]),me(u,"click",st(i[21])),me(u,"keydown",i[32]),me(b,"click",st(i[22])),me(b,"keydown",i[33]),me(e,"contextmenu",Bt(i[39])),me(e,"keydown",i[26])],v=!0)},p(x,Y){var J;x[10].features.copyVideoLink&&((J=x[9].callbacks)!=null&&J.onCopyVideoLink)&&I.p(x,Y),x[12]&&x[6]!==Gs.ChromecastState.CONNECTED&&!x[17]?N?N.p(x,Y):(N=e1(x),N.c(),N.m(e,n)):N&&(N.d(1),N=null),U===(U=W(x,Y))&&le?le.p(x,Y):(le.d(1),le=U(x),le&&(le.c(),le.m(o,null))),x[10].features.videoRotate&&!x[17]&&ae.p(x,Y),x[10].showSupport&&!x[7]?O?O.p(x,Y):(O=t1(x),O.c(),O.m(e,s)):O&&(O.d(1),O=null),Y[0]&256&&P!==(P=x[8]?Q("aria_label_menu_debug_overlay_disable"):Q("aria_label_menu_debug_overlay_enable"))&&f(b,"aria-label",P),Y[0]&8&&_i(e,"top",x[3]+"px"),Y[0]&4&&_i(e,"left",x[2]+"px")},d(x){x&&k(e),I&&I.d(),N&&N.d(),le.d(),ae&&ae.d(),O&&O.d(),i[42](null),v=!1,nt(g)}}}function F_(i){let e,t=Q("menu_copy_video_link")+"",n,o,r,l,a,s,u=!i[5]&&!i[17]&&$c(i);return{c(){e=T("li"),n=De(t),r=F(),u&&u.c(),l=lt(),f(e,"tabindex","0"),f(e,"role","menuitem"),f(e,"aria-label",o=Q("menu_copy_video_link")),f(e,"class","svelte-1vzqlps")},m(c,m){C(c,e,m),p(e,n),C(c,r,m),u&&u.m(c,m),C(c,l,m),a||(s=[me(e,"click",st(i[40])),me(e,"keydown",i[27])],a=!0)},p(c,m){!c[5]&&!c[17]?u?u.p(c,m):(u=$c(c),u.c(),u.m(l.parentNode,l)):u&&(u.d(1),u=null)},d(c){c&&(k(e),k(r),k(l)),u&&u.d(c),a=!1,nt(s)}}}function $c(i){let e,t=Q("menu_copy_video_link_with_timestamp")+"",n,o,r,l;return{c(){e=T("li"),n=De(t),f(e,"tabindex","0"),f(e,"role","menuitem"),f(e,"aria-label",o=Q("menu_copy_video_link_with_timestamp")),f(e,"class","svelte-1vzqlps")},m(a,s){C(a,e,s),p(e,n),r||(l=[me(e,"click",st(i[41])),me(e,"keydown",i[28])],r=!0)},p:de,d(a){a&&k(e),r=!1,nt(l)}}}function e1(i){let e,t=Q("menu_pip")+"",n,o,r,l;return{c(){e=T("li"),n=De(t),f(e,"tabindex","0"),f(e,"role","menuitem"),f(e,"aria-label",o=Q("menu_pip")),f(e,"class","svelte-1vzqlps")},m(a,s){C(a,e,s),p(e,n),r||(l=[me(e,"click",st(i[23])),me(e,"keydown",i[29])],r=!0)},p:de,d(a){a&&k(e),r=!1,nt(l)}}}function H_(i){let e=Q("menu_video_loop_on")+"",t;return{c(){t=De(e)},m(n,o){C(n,t,o)},p:de,d(n){n&&k(t)}}}function z_(i){let e=Q("menu_video_loop_off")+"",t;return{c(){t=De(e)},m(n,o){C(n,t,o)},p:de,d(n){n&&k(t)}}}function q_(i){let e,t=Q("menu_video_rotate")+"",n,o,r,l;return{c(){e=T("li"),n=De(t),f(e,"tabindex","0"),f(e,"role","menuitem"),f(e,"aria-label",o=Q("aria_label_menu_rotate")),f(e,"class","svelte-1vzqlps")},m(a,s){C(a,e,s),p(e,n),r||(l=[me(e,"click",st(i[19])),me(e,"keydown",i[30])],r=!0)},p:de,d(a){a&&k(e),r=!1,nt(l)}}}function t1(i){let e,t=Q("menu_report")+"",n,o,r,l;return{c(){e=T("li"),n=De(t),f(e,"tabindex","0"),f(e,"role","menuitem"),f(e,"aria-label",o=`${Q("menu_report")}. ${Q("aria_label_new_tab_alert")}`),f(e,"class","svelte-1vzqlps")},m(a,s){C(a,e,s),p(e,n),r||(l=[me(e,"click",st(i[20])),me(e,"keydown",i[31])],r=!0)},p:de,d(a){a&&k(e),r=!1,nt(l)}}}function U_(i){let e,t=i[1]&&xc(i);return{c(){t&&t.c(),e=lt()},m(n,o){t&&t.m(n,o),C(n,e,o)},p(n,o){n[1]?t?t.p(n,o):(t=xc(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},i:de,o:de,d(n){n&&k(e),t&&t.d(n)}}}function K_(i,e,t){var Te;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:b=void 0}=e,{returnFocus:S}=e,y=0,P=0,v=it(),g=zt(),I=v.ui.contextMenu.visible$,N=v.ui.debugPanelVisible;z(i,N,Z=>t(8,s=Z));let W=v.webApi.pictureInPictureApi,U=(Te=v.webApi.pictureInPictureApi)==null?void 0:Te.info.isActive$;z(i,U,Z=>t(7,a=Z));let le=v.state.chromecastState$;z(i,le,Z=>t(6,l=Z));let ae=v.state.isLive$;z(i,ae,Z=>t(5,r=Z));let O=v.state.positionExact$;z(i,O,Z=>t(43,n=Z));let R=v.state.isInteractive,x=v.state.looped$;z(i,x,Z=>t(4,o=Z));let Y=()=>{I.set(!1)},J=(Z,Ce)=>{if(!b||!h||!w)return;let ue=b.getBoundingClientRect(),Ie=h.getBoundingClientRect();t(2,y=Z-Ie.left),t(3,P=Ce-Ie.top),y+ue.width>Ie.width&&t(2,y=Ie.width-ue.width),P+ue.height>Ie.height&&t(3,P=Ie.height-ue.height),t(2,y=Math.max(y,0)),t(3,P=Math.max(P,0))},E=()=>{Y(),v.actions.internal.videoRotate()},te=()=>{window.open(c,"_blank"),Y(),v.actions.internal.pause()},M=()=>{let Z=v.actions.internal.getDebugTextData();if(g.features.saveDebugInfoToFile){let Ce=new Blob([...Z],{type:"plain/text"}),ue=window.URL.createObjectURL(Ce);er(ue,"vk_player_debug_info","txt")}else Il(v.actions.internal.getDebugTextData());Y(),S==null||S()},ee=()=>{N.set(!0),Y(),S==null||S()},ke=async()=>{try{W!=null&&W.isActive()?await(W==null?void 0:W.remove()):await(W==null?void 0:W.request())}finally{Y(),S==null||S()}},Ge=()=>{v.actions.internal.setLooped(!o),Y()},Ue=(Z=!1)=>{var Ce,ue;if((Ce=v.callbacks)!=null&&Ce.onCopyVideoLink){let Ie=(ue=v.callbacks)==null?void 0:ue.onCopyVideoLink(Z,n);Ie&&Il(Ie)}Y()},xe=Z=>{_r(Z,Y)},je=Z=>{xi(Z,()=>Ue())},ve=Z=>{xi(Z,()=>Ue(!0))},X=Z=>{xi(Z,()=>ke())},be=Z=>{xi(Z,()=>E())},Oe=Z=>{xi(Z,()=>te())},$e=Z=>{xi(Z,()=>M())},et=Z=>{xi(Z,()=>ee())};function ye(Z){In.call(this,i,Z)}let Le=()=>Ue(),Ke=()=>Ue(!0);function Xe(Z){pe[Z?"unshift":"push"](()=>{b=Z,t(0,b)})}return i.$$set=Z=>{"visible"in Z&&t(1,u=Z.visible),"supportLink"in Z&&t(34,c=Z.supportLink),"position"in Z&&t(35,m=Z.position),"playerContainerRef"in Z&&t(36,h=Z.playerContainerRef),"controlsContainerRef"in Z&&t(37,w=Z.controlsContainerRef),"menuElementRef"in Z&&t(0,b=Z.menuElementRef),"returnFocus"in Z&&t(38,S=Z.returnFocus)},i.$$.update=()=>{if(i.$$.dirty[0]&1|i.$$.dirty[1]&112){e:if(b&&h&&w){let{top:Z,left:Ce,bottom:ue,right:Ie}=m,Je=Ce!=null?Ce:0,at=Z!=null?Z:0,ut=b.getBoundingClientRect();(0,Al.isNullable)(Ce)&&!(0,Al.isNullable)(Ie)&&(Je=Ie-ut.width),(0,Al.isNullable)(Z)&&!(0,Al.isNullable)(ue)&&(at=ue-ut.height),Je=Math.max(Je,0),at=Math.max(at,0),J(Je,at)}}},[b,u,y,P,o,r,l,a,s,v,g,N,W,U,le,ae,O,R,x,E,te,M,ee,ke,Ge,Ue,xe,je,ve,X,be,Oe,$e,et,c,m,h,w,S,ye,Le,Ke,Xe]}var js=class extends K{constructor(e){super(),G(this,e,K_,U_,q,{visible:1,supportLink:34,position:35,playerContainerRef:36,controlsContainerRef:37,menuElementRef:0,returnFocus:38},O_,[-1,-1])}},i1=js;var hr=class{constructor(e){this.value=e,this.next=null}};var ll=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let t=new hr(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 W_(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 G_(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){C(n,e,o),p(e,t),i[3](t)},p:de,i:de,o:de,d(n){n&&k(e),i[3](null)}}}var Qs=16,Ys=120,n1=60;function j_(i,e,t,n,o){o===0&&(o=1),i.fillStyle="#fff",i.fillRect(e,t,n,o)}function Q_(i,e,t){let{values:n=[]}=e,o,r,l=Ys/n1;Rt(()=>{t(0,o.width=Ys,o),t(0,o.height=Qs,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,Ys,Qs);let c=n1-1;for(let m=n.length-1;m>=0;m--){let h=c*l,w=u>0?Qs*(n[m]/u):0;j_(r,h,0,l,w),s=w+" "+s,c--}}}},[o,n,r,a]}var Zs=class extends K{constructor(e){super(),G(this,e,Q_,G_,q,{values:1},W_)}},gr=Zs;var Xs=require("@vkontakte/videoplayer-shared");function Y_(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 o1(i){let e,t,n,o,r=i[0].id+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="Video id",n=F(),o=T("span"),l=De(r),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(a,s){C(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&&k(e)}}}function l1(i){let e,t,n,o,r=i[0].provider+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="Provider",n=F(),o=T("span"),l=De(r),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(a,s){C(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&&k(e)}}}function r1(i){let e,t,n,o,r=i[0].viewport+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="Viewport",n=F(),o=T("span"),l=De(r),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(a,s){C(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&&k(e)}}}function s1(i){let e,t,n,o,r=i[0].videoSize+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="Video size",n=F(),o=T("span"),l=De(r),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(a,s){C(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&&k(e)}}}function a1(i){let e,t,n,o,r=i[0].cdn+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="CDN host",n=F(),o=T("span"),l=De(r),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(a,s){C(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&&k(e)}}}function u1(i){let e,t,n,o,r=i[0].volume+"",l,a;return{c(){e=T("div"),t=T("div"),t.textContent="Volume",n=F(),o=T("span"),l=De(r),a=De(" %"),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(s,u){C(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&&k(e)}}}function f1(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=F(),o=T("span"),l=De(r),a=De(" s"),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(s,u){C(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&&k(e)}}}function c1(i){let e,t,n,o,r=[{value:i[0].currentVideoSegmentLength,title:"Video"},{value:i[0].currentAudioSegmentLength,title:"Audio"}].filter(p1).map(_1).join(" / ")+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="Segment",n=F(),o=T("span"),l=De(r),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(a,s){C(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(p1).map(_1).join(" / ")+"")&&Ye(l,r)},d(a){a&&k(e)}}}function d1(i){let e,t,n,o,r,l,a=i[0].speed.toFixed(2)+"",s,u,c;return o=new gr({props:{values:i[5]}}),{c(){e=T("div"),t=T("div"),t.textContent="Network",n=F(),D(o.$$.fragment),r=F(),l=T("span"),s=De(a),u=De(" Kbps"),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(m,h){C(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 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&&k(e),B(o)}}}function m1(i){let e,t,n,o,r,l,a=i[0].bitrate.toFixed(2)+"",s,u,c;return o=new gr({props:{values:i[6]}}),{c(){e=T("div"),t=T("div"),t.textContent="V bitrate",n=F(),D(o.$$.fragment),r=F(),l=T("span"),s=De(a),u=De(" Kbps"),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(m,h){C(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 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&&k(e),B(o)}}}function Z_(i){let e,t,n,o,r,l,a,s,u=i[0].version+"",c,m,h,w,b,S,y,P,v,g,I,N,W,U,le,ae,O,R,x,Y,J,E,te,M,ee,ke,Ge,Ue,xe,je,ve,X,be=i[0].id&&o1(i),Oe=i[0].provider&&l1(i),$e=i[0].viewport&&r1(i),et=i[0].videoSize&&s1(i),ye=i[0].cdn&&a1(i),Le=i[0].volume&&u1(i),Ke=i[0].buffer&&f1(i),Xe=(i[0].currentVideoSegmentLength||i[0].currentAudioSegmentLength)&&c1(i),Te=i[0].speed&&d1(i),Z=i[0].bitrate&&m1(i);return ee=new gr({props:{values:i[4]}}),{c(){e=T("div"),t=T("button"),t.textContent="[x]",n=F(),o=T("div"),r=T("div"),l=T("div"),l.textContent="Version",a=F(),s=T("span"),c=De(u),m=F(),be&&be.c(),h=F(),Oe&&Oe.c(),w=F(),$e&&$e.c(),b=F(),et&&et.c(),S=F(),ye&&ye.c(),y=F(),Le&&Le.c(),P=F(),Ke&&Ke.c(),v=F(),Xe&&Xe.c(),g=F(),I=T("div"),N=T("div"),N.textContent="Dropped",W=F(),U=T("span"),le=De(i[2]),ae=De(" / "),O=De(i[1]),R=De(" frames"),x=F(),Te&&Te.c(),Y=F(),Z&&Z.c(),J=F(),E=T("div"),te=T("div"),te.textContent="FPS",M=F(),D(ee.$$.fragment),ke=F(),Ge=T("span"),Ue=De(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(N,"class","svelte-1fypj5i"),f(I,"class","svelte-1fypj5i"),f(te,"class","svelte-1fypj5i"),f(E,"class","svelte-1fypj5i"),f(o,"class","content svelte-1fypj5i"),f(e,"class","container svelte-1fypj5i"),f(e,"role","region"),f(e,"aria-label",xe=Q("aria_label_debug_panel")),H(e,"container-mobile",i[7])},m(Ce,ue){C(Ce,e,ue),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),be&&be.m(o,null),p(o,h),Oe&&Oe.m(o,null),p(o,w),$e&&$e.m(o,null),p(o,b),et&&et.m(o,null),p(o,S),ye&&ye.m(o,null),p(o,y),Le&&Le.m(o,null),p(o,P),Ke&&Ke.m(o,null),p(o,v),Xe&&Xe.m(o,null),p(o,g),p(o,I),p(I,N),p(I,W),p(I,U),p(U,le),p(U,ae),p(U,O),p(U,R),p(o,x),Te&&Te.m(o,null),p(o,Y),Z&&Z.m(o,null),p(o,J),p(o,E),p(E,te),p(E,M),L(ee,E,null),p(E,ke),p(E,Ge),p(Ge,Ue),je=!0,ve||(X=me(t,"click",st(i[9])),ve=!0)},p(Ce,[ue]){(!je||ue&1)&&u!==(u=Ce[0].version+"")&&Ye(c,u),Ce[0].id?be?be.p(Ce,ue):(be=o1(Ce),be.c(),be.m(o,h)):be&&(be.d(1),be=null),Ce[0].provider?Oe?Oe.p(Ce,ue):(Oe=l1(Ce),Oe.c(),Oe.m(o,w)):Oe&&(Oe.d(1),Oe=null),Ce[0].viewport?$e?$e.p(Ce,ue):($e=r1(Ce),$e.c(),$e.m(o,b)):$e&&($e.d(1),$e=null),Ce[0].videoSize?et?et.p(Ce,ue):(et=s1(Ce),et.c(),et.m(o,S)):et&&(et.d(1),et=null),Ce[0].cdn?ye?ye.p(Ce,ue):(ye=a1(Ce),ye.c(),ye.m(o,y)):ye&&(ye.d(1),ye=null),Ce[0].volume?Le?Le.p(Ce,ue):(Le=u1(Ce),Le.c(),Le.m(o,P)):Le&&(Le.d(1),Le=null),Ce[0].buffer?Ke?Ke.p(Ce,ue):(Ke=f1(Ce),Ke.c(),Ke.m(o,v)):Ke&&(Ke.d(1),Ke=null),Ce[0].currentVideoSegmentLength||Ce[0].currentAudioSegmentLength?Xe?Xe.p(Ce,ue):(Xe=c1(Ce),Xe.c(),Xe.m(o,g)):Xe&&(Xe.d(1),Xe=null),(!je||ue&4)&&Ye(le,Ce[2]),(!je||ue&2)&&Ye(O,Ce[1]),Ce[0].speed?Te?(Te.p(Ce,ue),ue&1&&d(Te,1)):(Te=d1(Ce),Te.c(),d(Te,1),Te.m(o,Y)):Te&&(fe(),_(Te,1,1,()=>{Te=null}),ce()),Ce[0].bitrate?Z?(Z.p(Ce,ue),ue&1&&d(Z,1)):(Z=m1(Ce),Z.c(),d(Z,1),Z.m(o,J)):Z&&(fe(),_(Z,1,1,()=>{Z=null}),ce());let Ie={};ue&16&&(Ie.values=Ce[4]),ee.$set(Ie),(!je||ue&8)&&Ye(Ue,Ce[3]),(!je||ue&128)&&H(e,"container-mobile",Ce[7])},i(Ce){je||(d(Te),d(Z),d(ee.$$.fragment,Ce),je=!0)},o(Ce){_(Te),_(Z),_(ee.$$.fragment,Ce),je=!1},d(Ce){Ce&&k(e),be&&be.d(),Oe&&Oe.d(),$e&&$e.d(),et&&et.d(),ye&&ye.d(),Le&&Le.d(),Ke&&Ke.d(),Xe&&Xe.d(),Te&&Te.d(),Z&&Z.d(),B(ee),ve=!1,X()}}}var p1=({value:i})=>i,_1=({value:i,title:e})=>`${e} ${((i!=null?i:0)/1e3).toFixed(2)} s`;function X_(i,e,t){let n,o=it(),r=o.ui.debugPanelVisible,l=o.ui.isMobile;z(i,l,g=>t(7,n=g));let a=()=>{Xs.safeStorage.remove(Sl),r.set(!1)},s=o.actions.internal.getDebugPanelData(),u=o.actions.internal.getVideoElement(),c=0,m=0,h=0,w=new ll(60),b=new ll(60),S=new ll(60),y=[],P=[],v=[];return Rt(()=>{Xs.safeStorage.set(Sl,"true"),o.actions.internal.startLogging(),u&&(t(2,m=u.getVideoPlaybackQuality().droppedVideoFrames),t(1,c=u.getVideoPlaybackQuality().totalVideoFrames));let g=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),w.push(h),s.speed&&b.push(s.speed),s.bitrate&&S.push(s.bitrate),t(4,y=w.getValuesFromBottom()),t(5,P=b.getValuesFromBottom()),t(6,v=S.getValuesFromBottom())}},1e3)),()=>{o.actions.internal.stopLogging(),clearInterval(g),I&&clearInterval(I)}}),[s,c,m,h,y,P,v,n,l,a]}var Js=class extends K{constructor(e){super(),G(this,e,X_,Z_,q,{},Y_)}},br=Js;function J_(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 x_(i){let e,t,n;return{c(){e=T("div"),f(e,"class","close svelte-1ome55p")},m(o,r){C(o,e,r),t||(n=me(e,"click",st(i[0])),t=!0)},p:de,i:de,o:de,d(o){o&&k(e),t=!1,n()}}}function $_(i){function e(t){In.call(this,i,t)}return[e]}var xs=class extends K{constructor(e){super(),G(this,e,$_,x_,q,{},J_)}},h1=xs;var g1=require("@vkontakte/videoplayer-shared");function eh(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)
25
+ }.timer-canvas.svelte-8jhsry{width:50px;height:50px;position:absolute}.timer-play-icon.svelte-8jhsry{width:22px;height:26px}`)}function th(i){let e,t,n,o,r,l,a;return{c(){e=T("div"),t=T("canvas"),n=F(),o=V("svg"),r=V("g"),l=V("g"),a=V("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){C(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:de,i:de,o:de,d(s){s&&k(e),i[2](null)}}}var ih=5e3;function nh(i,e,t){let{onTimerEnded:n=g1.noop}=e,o;Rt(()=>{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 $s=class extends K{constructor(e){super(),G(this,e,nh,th,q,{onTimerEnded:1},eh)}},b1=$s;function oh(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 v1(i){let e,t;return e=new b1({props:{onTimerEnded:i[2]}}),{c(){D(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){B(e,n)}}}function lh(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,b,S,y,P,v,g,I,N;a=new h1({}),a.$on("click",i[4]);let W=i[3]&&v1(i);return{c(){e=T("div"),t=F(),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=F(),D(a.$$.fragment),s=F(),u=T("div"),c=T("div"),m=T("div"),h=T("div"),w=F(),W&&W.c(),S=F(),y=T("div"),P=T("div"),v=De(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",b=`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(U,le){C(U,e,le),C(U,t,le),C(U,n,le),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,w),W&&W.m(m,null),p(u,S),p(u,y),p(y,P),p(P,v),g=!0,I||(N=me(u,"click",function(){Vi(i[2])&&i[2].apply(this,arguments)}),I=!0)},p(U,[le]){i=U,i[3]?W?(W.p(i,le),le&8&&d(W,1)):(W=v1(i),W.c(),d(W,1),W.m(m,null)):W&&(fe(),_(W,1,1,()=>{W=null}),ce()),(!g||le&2&&b!==(b=`background-image: url('${i[1]}')`))&&f(m,"style",b),(!g||le&1)&&Ye(v,i[0])},i(U){g||(d(a.$$.fragment,U),d(W),g=!0)},o(U){_(a.$$.fragment,U),_(W),g=!1},d(U){U&&(k(e),k(t),k(n)),B(a),W&&W.d(),I=!1,N()}}}function rh(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 ea=class extends K{constructor(e){super(),G(this,e,rh,lh,q,{title:0,thumb:1,playNextVideo:2},oh)}},y1=ea;var ho=require("@vkontakte/videoplayer-core"),w1=require("@vkontakte/videoplayer-shared"),vn=require("@vkontakte/videoplayer-statistics");var ta=(i,e)=>Math.min(+(i+e).toFixed(2),1),ia=(i,e)=>Math.max(+(i-e).toFixed(2),0),vr=(i,e,t)=>{let n=ta(e,t);e<1&&i.actions.internal.setVolume(n)},yr=(i,e,t)=>{let n=ia(e,t);e>0&&i.actions.internal.setVolume(n)};var _o=({isAudioDisabled:i,audioDisabledHintCallback:e,isAudioAvailable:t,audioIsNotExistHintCallback:n})=>i?(e==null||e(),!1):t?!0:(n==null||n(),!1);function ah(i){Se(i,"svelte-10kkmxz",".keyboard-controls.svelte-10kkmxz{position:absolute;left:0;right:0;top:0;bottom:0}")}function uh(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=Q("aria_label_video_player"))},m(s,u){C(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)&&Ve(a,l,s,s[25],n?Me(l,s[25],u,null):Ae(s[25]),null)},i(s){n||(d(a,s),n=!0)},o(s){_(a,s),n=!1},d(s){s&&k(e),a&&a.d(s),i[27](null),o=!1,nt(r)}}}function fh(i,e,t){var ht,gt;let n,o,r,l,a,s,u,c,m,h,w,b,S,y,P,{$$slots:v={},$$scope:g}=e,{isAds:I}=e,{hideContextMenu:N}=e,{toggleFullscreen:W}=e,{showHotKeyHelpers:U}=e,{showKeyMap:le}=e,{fakePlayButtonHandler:ae}=e,O=it(),R=zt(),x=O.getLogger().createComponentLog("KeyboardControls component"),Y=O.state.playbackState$;z(i,Y,we=>t(31,o=we));let J=O.ads.playbackState;z(i,J,we=>t(30,n=we));let E=O.state.positionExact$;z(i,E,we=>t(41,b=we));let te=O.state.duration$;z(i,te,we=>t(40,w=we));let M=O.state.volume$;z(i,M,we=>t(44,P=we));let ee=O.ui.controls.disabledControls$;z(i,ee,we=>t(39,h=we));let ke=O.state.muted$;z(i,ke,we=>t(34,a=we));let Ge=O.state.currentSubtitle$;z(i,Ge,we=>t(33,l=we));let Ue=O.state.currentPlaybackRate$;z(i,Ue,we=>t(42,S=we));let xe=O.state.availablePlaybackRates$;z(i,xe,we=>t(43,y=we));let je=O.ui.contextMenu.openedByHotKey$,ve=O.ui.contextMenu.lastActiveElem$,X=O.ui.contextMenu.visible$,be=O.ui.contextMenu.position$,Oe=O.state.isEnded$;z(i,Oe,we=>t(36,u=we));let $e=O.ui.overlayContainer$;z(i,$e,we=>t(32,r=we));let et=(ht=O.callbacks)==null?void 0:ht.onAudioDoesNotExistHint,ye=(gt=O.callbacks)==null?void 0:gt.onAudioDisabledHint,Le=O.state.isAudioAvailable$;z(i,Le,we=>t(35,s=we));let Ke=O.state.isAudioDisabled,Xe=O.state.isInteractiveTime$;z(i,Xe,we=>t(38,m=we));let{showInteractiveTimeIndicatorTooltip$:Te}=Rn();z(i,Te,we=>t(37,c=we));let Z=0,Ce=!0,ue,Ie=()=>ue==null?void 0:ue.focus(),Je=we=>(we!==Ce&&(Ce=we,Z=0),Z+=1,(R.controls.seekStepKeyboard+R.controls.seekStepKeyboard*Z)/1e3),at=we=>{var bt;let pt=we.target,Et=(bt=pt==null?void 0:pt.getAttribute("role"))==null?void 0:bt.includes("menuitem"),Mt=pt.classList.contains("btn"),ze=we.code;if(Mt&&ze==="Space")return;let Ut=tc.has(ze);if(Et&&Ut)return;let Ft=!ec.has(ze);if(we.ctrlKey&&Ft||we.altKey&&Ft||we.metaKey)return;let _e=Et&&ze==="Escape";ic.has(ze)||_e||N();let Nt=o===ho.PlaybackState.PLAYING||o===ho.PlaybackState.PAUSED,mt=I&&(n==="paused"||n==="playing"),vt=!mt&&!h.has("TIMELINE");if(Nt||mt)switch(x({message:`key down, code: ${ze}`}),ze){case"KeyJ":case"ArrowLeft":{if(!vt)break;if(we.ctrlKey||we.altKey){let Be=O.actions.internal.getPrevEpisode();O.actions.internal.seekToPrevEpisode(Be),Be&&U({type:"EPISODE_PREV",text:Be.text}),we.preventDefault()}else{let Be=we.shiftKey?Je(!1):R.controls.seekStepKeyboard/1e3,Qe=Math.max(b-Be,0);b>0&&(O.actions.internal.seekTime(Qe,vn.SeekAction.DOUBLE_TAP),U({type:"BACKWARD_SEEK",text:Be.toString()}),we.preventDefault())}break}case"KeyL":case"ArrowRight":{if(!vt)break;if(we.ctrlKey||we.altKey){let Be=O.actions.internal.getNextEpisode();O.actions.internal.seekToNextEpisode(Be),Be&&U({type:"EPISODE_NEXT",text:Be.text}),we.preventDefault()}else{let Be=we.shiftKey?Je(!0):R.controls.seekStepKeyboard/1e3,Qe=Math.min(b+Be,w);Math.round(b)<Math.round(w)&&(O.actions.internal.seekTime(Qe,vn.SeekAction.DOUBLE_TAP),U({type:"FORWARD_SEEK",text:Be.toString()}),we.preventDefault())}break}case"ArrowUp":{if(_o({isAudioDisabled:Ke,audioDisabledHintCallback:ye,isAudioAvailable:s,audioIsNotExistHintCallback:et})){let Be=P,Qe=R.controls.volumeStepKeyboard,wt=Be<=1;if(vr(O,Be,Qe),wt){let jt=Math.round(ta(Be,Qe)*100).toString();U({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:jt}})}}we.preventDefault();break}case"ArrowDown":{if(_o({isAudioDisabled:Ke,audioDisabledHintCallback:ye,isAudioAvailable:s,audioIsNotExistHintCallback:et})){let Be=P,Qe=R.controls.volumeStepKeyboard,wt=Be>=0;if(yr(O,Be,Qe),wt){let jt=Math.round(ia(Be,Qe)*100).toString();U({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:jt}})}}we.preventDefault();break}case"Comma":{if(we.shiftKey){O.actions.internal.decrementPlaybackRate();let Be=y.find(Qe=>Qe.value===S);U({type:"RATE_DOWN",text:Be==null?void 0:Be.displayValue}),we.preventDefault()}else{if(mt||o!==ho.PlaybackState.PAUSED)break;let Be=Math.max(b-R.controls.seekStepFrame/1e3,0);b>0&&(U({type:"BACKWARD_SEEK"}),O.actions.internal.clearDelayedBufferingCheckTimeout(),O.actions.internal.seekTime(Be,vn.SeekAction.DOUBLE_TAP),we.preventDefault())}break}case"Period":{if(we.shiftKey){O.actions.internal.incrementPlaybackRate();let Be=y.find(Qe=>Qe.value===S);U({type:"RATE_UP",text:Be==null?void 0:Be.displayValue}),we.preventDefault()}else{if(mt||o!==ho.PlaybackState.PAUSED)break;let Be=Math.min(b+R.controls.seekStepFrame/1e3,w);b<w&&(U({type:"FORWARD_SEEK"}),O.actions.internal.clearDelayedBufferingCheckTimeout(),O.actions.internal.seekTime(Be,vn.SeekAction.DOUBLE_TAP),we.preventDefault())}break}case"KeyK":case"Space":if(!h.has("PLAY_BUTTON"))if(m&&c&&Te.set(!1),ae)ae();else{O.actions.internal.togglePlay();let Be="PLAY";o===ho.PlaybackState.PAUSED?Be="PAUSE":u&&(Be="REPLAY"),U({type:Be})}we.preventDefault();break;case"KeyM":{_o({isAudioDisabled:Ke,audioDisabledHintCallback:ye,isAudioAvailable:s,audioIsNotExistHintCallback:et})&&(U({type:a?"VOLUME":"MUTE"}),O.actions.internal.toggleMuted()),we.preventDefault();break}case"KeyF":W(),we.preventDefault();break;case"KeyC":O.actions.internal.toggleSubtitle(),l.value!=="off"?U({type:"SUBTITLES_ON",text:l==null?void 0:l.displayValue}):U({type:"SUBTITLES_OFF"}),we.preventDefault();break;case"KeyI":O.actions.internal.togglePictureInPicture(),we.preventDefault();break;case"Digit1":case"Numpad1":if(we.shiftKey){let Be=Jc(r);be.set(Be),ve.set(pt),je.set(!0),X.set(!0),we.preventDefault();break}U(),O.actions.internal.seekToPercent(.1,vn.SeekAction.DOUBLE_TAP),we.preventDefault();break;case"Digit2":case"Numpad2":U(),O.actions.internal.seekToPercent(.2,vn.SeekAction.DOUBLE_TAP),we.preventDefault();break;case"Digit3":case"Numpad3":U(),O.actions.internal.seekToPercent(.3,vn.SeekAction.DOUBLE_TAP),we.preventDefault();break;case"Digit4":case"Numpad4":U(),O.actions.internal.seekToPercent(.4,vn.SeekAction.DOUBLE_TAP),we.preventDefault();break;case"Digit5":case"Numpad5":U(),O.actions.internal.seekToPercent(.5,vn.SeekAction.DOUBLE_TAP),we.preventDefault();break;case"Digit6":case"Numpad6":U(),O.actions.internal.seekToPercent(.6,vn.SeekAction.DOUBLE_TAP),we.preventDefault();break;case"Digit7":case"Numpad7":U(),O.actions.internal.seekToPercent(.7,vn.SeekAction.DOUBLE_TAP),we.preventDefault();break;case"Digit8":case"Numpad8":U(),O.actions.internal.seekToPercent(.8,vn.SeekAction.DOUBLE_TAP),we.preventDefault();break;case"Digit9":case"Numpad9":U(),O.actions.internal.seekToPercent(.9,vn.SeekAction.DOUBLE_TAP),we.preventDefault();break;case"Digit0":case"Numpad0":U(),O.actions.internal.seekToPercent(0,vn.SeekAction.DOUBLE_TAP),we.preventDefault();break;case"Slash":{we.shiftKey&&R.features.hotKeyMapModal&&(le(),we.preventDefault());break}case"ShiftLeft":case"ShiftRight":we.preventDefault();break;case"Tab":case"Escape":case"Enter":break;default:(0,w1.checkNever)(ze);break}},ut=we=>{let pt=we.code;if(we.ctrlKey||we.altKey||we.metaKey)return;let Et=o===ho.PlaybackState.PLAYING||o===ho.PlaybackState.PAUSED,Mt=I&&(n==="paused"||n==="playing");if(Et||Mt)switch(pt){case"ShiftLeft":case"ShiftRight":Z=0;break}};function ft(we){pe[we?"unshift":"push"](()=>{ue=we,t(0,ue)})}return i.$$set=we=>{"isAds"in we&&t(18,I=we.isAds),"hideContextMenu"in we&&t(19,N=we.hideContextMenu),"toggleFullscreen"in we&&t(20,W=we.toggleFullscreen),"showHotKeyHelpers"in we&&t(21,U=we.showHotKeyHelpers),"showKeyMap"in we&&t(22,le=we.showKeyMap),"fakePlayButtonHandler"in we&&t(23,ae=we.fakePlayButtonHandler),"$$scope"in we&&t(25,g=we.$$scope)},[ue,Y,J,E,te,M,ee,ke,Ge,Ue,xe,Oe,$e,Le,Xe,Te,at,ut,I,N,W,U,le,ae,Ie,g,v,ft]}var na=class extends K{constructor(e){super(),G(this,e,fh,uh,q,{isAds:18,hideContextMenu:19,toggleFullscreen:20,showHotKeyHelpers:21,showKeyMap:22,fakePlayButtonHandler:23,focus:24},ah,[-1,-1])}get focus(){return this.$$.ctx[24]}},k1=na;function ch(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 dh(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){C(t,e,n)},p:de,i:de,o:de,d(t){t&&k(e)}}}var oa=class extends K{constructor(e){super(),G(this,e,null,dh,q,{},ch)}},wr=oa;function mh(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,b,S=i[2].default,y=Ee(S,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 g=0;g<P.length;g+=1)v=oe(v,P[g]);return{c(){e=V("svg"),y&&y.c(),t=V("g"),n=V("path"),o=V("path"),r=V("defs"),l=V("filter"),a=V("feFlood"),s=V("feColorMatrix"),u=V("feOffset"),c=V("feGaussianBlur"),m=V("feColorMatrix"),h=V("feBlend"),w=V("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"),ge(e,v)},m(g,I){C(g,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,w),b=!0},p(g,[I]){y&&y.p&&(!b||I&2)&&Ve(y,S,g,g[1],b?Me(S,g[1],I,null):Ae(g[1]),null),ge(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&&g[0]]))},i(g){b||(d(y,g),b=!0)},o(g){_(y,g),b=!1},d(g){g&&k(e),y&&y.d(g)}}}function ph(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var la=class extends K{constructor(e){super(),G(this,e,ph,mh,q,{})}},C1=la;var Zn=require("@vkontakte/videoplayer-shared");function _h(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 hh(i){let e,t,n,o,r,l,a,s,u,c,m,h,w=i[14].default,b=Ee(w,i,i[13],null);return{c(){var S,y,P,v,g,I;e=T("button"),b&&b.c(),f(e,"class",t="btn "+i[1]+" svelte-1anemql"),f(e,"style",n=i[2]||null),e.disabled=o=(S=i[3])!=null?S: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=(g=i[8])!=null?g:null),f(e,"data-testid",u=(I=i[4])!=null?I:null),f(e,"tabindex",i[9])},m(S,y){C(S,e,y),b&&b.m(e,null),i[16](e),c=!0,m||(h=[me(e,"pointerdown",st(Bt(i[15]))),me(e,"click",st(Bt(function(){Vi(i[10]===Zn.noop?null:i[10])&&(i[10]===Zn.noop?null:i[10]).apply(this,arguments)}))),me(e,"focus",Bt(function(){Vi(i[11]===Zn.noop?null:i[11])&&(i[11]===Zn.noop?null:i[11]).apply(this,arguments)})),me(e,"blur",Bt(function(){Vi(i[12]===Zn.noop?null:i[12])&&(i[12]===Zn.noop?null:i[12]).apply(this,arguments)}))],m=!0)},p(S,[y]){var P,v,g,I,N,W;i=S,b&&b.p&&(!c||y&8192)&&Ve(b,w,i,i[13],c?Me(w,i[13],y,null):Ae(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=(g=i[6])!=null?g: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=(W=i[4])!=null?W:null))&&f(e,"data-testid",u),(!c||y&512)&&f(e,"tabindex",i[9])},i(S){c||(d(b,S),c=!0)},o(S){_(b,S),c=!1},d(S){S&&k(e),b&&b.d(S),i[16](null),m=!1,nt(h)}}}function gh(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:b=0}=e,{click:S=Zn.noop}=e,{focus:y=Zn.noop}=e,{blur:P=Zn.noop}=e;function v(I){In.call(this,i,I)}function g(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,w=I.ariaExpanded),"tabIndex"in I&&t(9,b=I.tabIndex),"click"in I&&t(10,S=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,w,b,S,y,P,o,n,v,g]}var ra=class extends K{constructor(e){super(),G(this,e,gh,hh,q,{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},_h)}},_t=ra;function bh(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 S1(i){let e,t,n,o,r,l=i[2]&&P1(i);return{c(){e=T("div"),t=T("h3"),n=De(i[3]),o=F(),l&&l.c(),f(t,"class","modal-title svelte-1witlsj"),f(e,"class","modal-header svelte-1witlsj")},m(a,s){C(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=P1(a),l.c(),d(l,1),l.m(e,null)):l&&(fe(),_(l,1,1,()=>{l=null}),ce())},i(a){r||(d(l),r=!0)},o(a){_(l),r=!1},d(a){a&&k(e),l&&l.d()}}}function P1(i){let e,t;return e=new _t({props:{click:i[0],testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:Q("hotkey_map_modal_close_btn_text"),$$slots:{default:[vh]},$$scope:{ctx:i}}}),{c(){D(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){B(e,n)}}}function vh(i){let e,t;return e=new C1({}),{c(){D(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){B(e,n)}}}function yh(i){let e,t,n,o,r,l,a=i[1]&&S1(i),s=i[4].default,u=Ee(s,i,i[5],null);return{c(){e=T("div"),t=T("div"),a&&a.c(),n=F(),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){C(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=S1(c),a.c(),d(a,1),a.m(t,n)):a&&(fe(),_(a,1,1,()=>{a=null}),ce()),u&&u.p&&(!l||m&32)&&Ve(u,s,c,c[5],l?Me(s,c[5],m,null):Ae(c[5]),null)},i(c){l||(d(a),d(u,c),l=!0)},o(c){_(a),_(u,c),l=!1},d(c){c&&k(e),a&&a.d(),u&&u.d(c)}}}function wh(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 sa=class extends K{constructor(e){super(),G(this,e,wh,yh,q,{onClose:0,showHeader:1,showCloseCross:2,title:3},bh)}},T1=sa;var kh=new Set(["BR"]),aa=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;kh.has(l)||(o=r.parentElement)==null||o.removeChild(r)}return e.innerHTML};function Ch(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 I1(i,e,t){let n=i.slice();return n[5]=e[t].title,n[6]=e[t].items,n}function E1(i,e,t){let n=i.slice();return n[9]=e[t].description,n[10]=e[t].value,n}function M1(i){let e,t,n=aa(i[9])+"",o,r,l=i[10]+"",a,s;return{c(){e=T("li"),t=T("span"),o=F(),r=T("span"),a=De(l),s=F(),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){C(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=aa(u[9])+"")&&(t.innerHTML=n),c&1&&l!==(l=u[10]+"")&&Ye(a,l)},d(u){u&&k(e)}}}function V1(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]=M1(E1(i,s,c));return{c(){e=T("div"),t=T("h5"),o=De(n),r=F(),l=T("ul");for(let c=0;c<u.length;c+=1)u[c].c();a=F(),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){C(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=E1(c,s,h);u[h]?u[h].p(w,m):(u[h]=M1(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&&k(e),Ui(u,c)}}}function Sh(i){let e,t=Tt(i[0].groups),n=[];for(let o=0;o<t.length;o+=1)n[o]=V1(I1(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){C(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=I1(o,t,l);n[l]?n[l].p(a,r):(n[l]=V1(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&&k(e),Ui(n,o)}}}function Ph(i){let e,t;return e=new T1({props:{title:i[0].title,onClose:i[2],$$slots:{default:[Sh]},$$scope:{ctx:i}}}),{c(){D(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){B(e,n)}}}function Th(i,e,t){let n,o=it(),{data:r,show:l}=o.ui.modals.hotKeyMap;return z(i,r,s=>t(0,n=s)),[n,r,()=>{l.set(!1)}]}var ua=class extends K{constructor(e){super(),G(this,e,Th,Ph,q,{},Ch)}},A1=ua;var ts=require("@vkontakte/videoplayer-shared");var Ho=require("@vkontakte/videoplayer-core");var bd=require("@vkontakte/videoplayer-core");var gk=require("@vkontakte/videoplayer-shared");function Ih(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 Eh(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){C(r,e,l),o&&o.m(e,null),t=!0},p(r,[l]){o&&o.p&&(!t||l&1)&&Ve(o,n,r,r[0],t?Me(n,r[0],l,null):Ae(r[0]),null)},i(r){t||(d(o,r),t=!0)},o(r){_(o,r),t=!1},d(r){r&&k(e),o&&o.d(r)}}}function Mh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{"$$scope"in r&&t(0,o=r.$$scope)},[o,n]}var fa=class extends K{constructor(e){super(),G(this,e,Mh,Eh,q,{},Ih)}},L1=fa;var rl=require("@vkontakte/videoplayer-core");function Vh(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=oe(s,a[u]);return{c(){e=V("svg"),l&&l.c(),t=V("path"),n=V("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"),ge(e,s)},m(u,c){C(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)&&Ve(l,r,u,u[1],o?Me(r,u[1],c,null):Ae(u[1]),null),ge(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&&k(e),l&&l.d(u)}}}function Ah(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var ca=class extends K{constructor(e){super(),G(this,e,Ah,Vh,q,{})}},B1=ca;function Lh(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=oe(s,a[u]);return{c(){e=V("svg"),l&&l.c(),t=V("path"),n=V("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"),ge(e,s)},m(u,c){C(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)&&Ve(l,r,u,u[1],o?Me(r,u[1],c,null):Ae(u[1]),null),ge(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&&k(e),l&&l.d(u)}}}function Bh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var da=class extends K{constructor(e){super(),G(this,e,Bh,Lh,q,{})}},R1=da;function Rh(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=oe(a,l[s]);return{c(){e=V("svg"),r&&r.c(),t=V("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"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(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&&k(e),r&&r.d(s)}}}function Dh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var ma=class extends K{constructor(e){super(),G(this,e,Dh,Rh,q,{})}},D1=ma;function Nh(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=oe(a,l[s]);return{c(){e=V("svg"),r&&r.c(),t=V("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"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(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&&k(e),r&&r.d(s)}}}function Oh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var pa=class extends K{constructor(e){super(),G(this,e,Oh,Nh,q,{})}},kr=pa;function Fh(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=oe(s,a[u]);return{c(){e=V("svg"),l&&l.c(),t=V("path"),n=V("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"),ge(e,s)},m(u,c){C(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)&&Ve(l,r,u,u[1],o?Me(r,u[1],c,null):Ae(u[1]),null),ge(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&&k(e),l&&l.d(u)}}}function Hh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var _a=class extends K{constructor(e){super(),G(this,e,Hh,Fh,q,{})}},Cr=_a;var go=i=>{switch(i){case rl.VideoQuality.Q_720P:return D1;case rl.VideoQuality.Q_1080P:return kr;case rl.VideoQuality.Q_1440P:return Cr;case rl.VideoQuality.Q_2160P:return B1;case rl.VideoQuality.Q_4320P:return R1}};function zh(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=oe(a,l[s]);return{c(){e=V("svg"),r&&r.c(),t=V("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"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(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&&k(e),r&&r.d(s)}}}function qh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var ha=class extends K{constructor(e){super(),G(this,e,qh,zh,q,{})}},N1=ha;function Uh(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=oe(s,a[u]);return{c(){e=V("svg"),l&&l.c(),t=V("path"),n=V("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"),ge(e,s)},m(u,c){C(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)&&Ve(l,r,u,u[1],o?Me(r,u[1],c,null):Ae(u[1]),null),ge(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&&k(e),l&&l.d(u)}}}function Kh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var ga=class extends K{constructor(e){super(),G(this,e,Kh,Uh,q,{})}},O1=ga;function Wh(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 Gh(i){let e,t,n,o,r=i[1]&&F1(i);return n=new O1({props:{"data-testid":i[1]?"settings-icon--labeled":"settings-icon"}}),{c(){e=T("div"),r&&r.c(),t=F(),D(n.$$.fragment),f(e,"class","icon svelte-8t5w85"),f(e,"aria-hidden","true"),H(e,"triple",i[2])},m(l,a){C(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=F1(l),r.c(),d(r,1),r.m(e,t)):r&&(fe(),_(r,1,1,()=>{r=null}),ce());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&&k(e),r&&r.d(),B(n)}}}function jh(i){let e,t;return e=new N1({}),{c(){D(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p:de,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function F1(i){let e,t;return e=new L1({props:{$$slots:{default:[Qh]},$$scope:{ctx:i}}}),{c(){D(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){B(e,n)}}}function Qh(i){let e,t,n;var o=i[1];function r(l){return{}}return o&&(e=kn(o,r(i))),{c(){e&&D(e.$$.fragment),t=lt()},m(l,a){e&&L(e,l,a),C(l,t,a),n=!0},p(l,a){if(a&2&&o!==(o=l[1])){if(e){fe();let s=e;_(s.$$.fragment,1,0,()=>{B(s,1)}),ce()}o?(e=kn(o,r(l)),D(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&&k(t),e&&B(e,l)}}}function Yh(i){let e,t,n,o,r=[jh,Gh],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=lt()},m(s,u){l[e].m(s,u),C(s,n,u),o=!0},p(s,[u]){let c=e;e=a(s,u),e===c?l[e].p(s,u):(fe(),_(l[c],1,1,()=>{l[c]=null}),ce(),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&&k(n),l[e].d(s)}}}function Zh(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=go(r));if(i.$$.dirty&2)e:t(2,l=!!n&&[kr,Cr].includes(n))},[o,n,l,r]}var ba=class extends K{constructor(e){super(),G(this,e,Zh,Yh,q,{isMobile:0,currentQuality:3},Wh)}},Sr=ba;function Xh(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=oe(a,l[s]);return{c(){e=V("svg"),r&&r.c(),t=V("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"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(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&&k(e),r&&r.d(s)}}}function Jh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var va=class extends K{constructor(e){super(),G(this,e,Jh,Xh,q,{})}},Pr=va;function xh(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=oe(a,l[s]);return{c(){e=V("svg"),r&&r.c(),t=V("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"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(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&&k(e),r&&r.d(s)}}}function $h(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var ya=class extends K{constructor(e){super(),G(this,e,$h,xh,q,{})}},H1=ya;function eg(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=oe(a,l[s]);return{c(){e=V("svg"),r&&r.c(),t=V("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"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(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&&k(e),r&&r.d(s)}}}function tg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var wa=class extends K{constructor(e){super(),G(this,e,tg,eg,q,{})}},z1=wa;function ig(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=oe(u,s[c]);return{c(){e=V("svg"),a&&a.c(),t=V("g"),n=V("path"),o=V("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"),ge(e,u)},m(c,m){C(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)&&Ve(a,l,c,c[1],r?Me(l,c[1],m,null):Ae(c[1]),null),ge(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&&k(e),a&&a.d(c)}}}function ng(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var ka=class extends K{constructor(e){super(),G(this,e,ng,ig,q,{})}},q1=ka;function og(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=oe(a,l[s]);return{c(){e=V("svg"),r&&r.c(),t=V("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"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(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&&k(e),r&&r.d(s)}}}function lg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Ca=class extends K{constructor(e){super(),G(this,e,lg,og,q,{})}},U1=Ca;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:"12"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=V("svg"),r&&r.c(),t=V("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"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(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&&k(e),r&&r.d(s)}}}function sg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Sa=class extends K{constructor(e){super(),G(this,e,sg,rg,q,{})}},K1=Sa;function ag(i){let e,t;return e=new K1({props:{style:i[2],"data-testid":i[0]?"chevron-icon--right":"chevron-icon--left"}}),{c(){D(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){B(e,n)}}}function ug(i){let e,t;return e=new U1({props:{style:i[2],"data-testid":i[0]?"chevron-icon--down":"chevron-icon--up"}}),{c(){D(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){B(e,n)}}}function fg(i){let e,t,n,o,r=[ug,ag],l=[];function a(s,u){return s[1]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=lt()},m(s,u){l[e].m(s,u),C(s,n,u),o=!0},p(s,[u]){let c=e;e=a(s,u),e===c?l[e].p(s,u):(fe(),_(l[c],1,1,()=>{l[c]=null}),ce(),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&&k(n),l[e].d(s)}}}function cg(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 Pa=class extends K{constructor(e){super(),G(this,e,cg,fg,q,{direction:3})}},Xn=Pa;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":"report-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=V("svg"),r&&r.c(),t=V("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"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(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&&k(e),r&&r.d(s)}}}function mg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Ta=class extends K{constructor(e){super(),G(this,e,mg,dg,q,{})}},W1=Ta;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:"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=oe(a,l[s]);return{c(){e=V("svg"),r&&r.c(),t=V("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"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(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&&k(e),r&&r.d(s)}}}function _g(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Ia=class extends K{constructor(e){super(),G(this,e,_g,pg,q,{})}},sl=Ia;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":"copy-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=V("svg"),r&&r.c(),t=V("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"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(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&&k(e),r&&r.d(s)}}}function gg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Ea=class extends K{constructor(e){super(),G(this,e,gg,hg,q,{})}},G1=Ea;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:"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=oe(a,l[s]);return{c(){e=V("svg"),r&&r.c(),t=V("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"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(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&&k(e),r&&r.d(s)}}}function vg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Ma=class extends K{constructor(e){super(),G(this,e,vg,bg,q,{})}},j1=Ma;function yg(i){Se(i,"svelte-5r0p3","ul.svelte-5r0p3.svelte-5r0p3{margin:0;padding:0}.menu.svelte-5r0p3.svelte-5r0p3{background-color:rgba(17, 17, 17, 0.8);border-radius:8px;line-height:40px;transition:opacity 0.2s, visibility 0.2s}.container-mobile.svelte-5r0p3.svelte-5r0p3{width:100%}.menu-desktop.svelte-5r0p3.svelte-5r0p3{position:absolute;right:0;bottom:0}.menu-mobile.svelte-5r0p3.svelte-5r0p3{width:100%;background:var(--mobile-settings-bg);font-size:15px;line-height:50px}.menu-mobile.hidden.svelte-5r0p3.svelte-5r0p3{display:none}.menu-subList.svelte-5r0p3.svelte-5r0p3{min-width:134px;padding-bottom:0}.menu-subList-subtitles.svelte-5r0p3.svelte-5r0p3{min-width:164px}.menu-subList-traffic-saving.svelte-5r0p3.svelte-5r0p3{min-width:286px}.item.svelte-5r0p3.svelte-5r0p3{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-5r0p3.svelte-5r0p3{padding:0 14px}.item-quality.item-mobile.svelte-5r0p3.svelte-5r0p3,.item-traffic-saving.item-mobile.svelte-5r0p3.svelte-5r0p3,.item-helper-text.item-mobile.svelte-5r0p3.svelte-5r0p3{flex-direction:row-reverse}.item-helper-text.svelte-5r0p3.svelte-5r0p3{cursor:auto;pointer-events:none;white-space:normal;padding:7px 24px 7px 18px}.item-helper-text.svelte-5r0p3 span.svelte-5r0p3{color:rgba(255, 255, 255, 0.48);line-height:18px;text-align:end}.item-helper-text.item-mobile.svelte-5r0p3.svelte-5r0p3{padding:7px 14px}.item-helper-text.item-mobile.svelte-5r0p3 span.svelte-5r0p3{text-align:start}.quality-title-mobile.svelte-5r0p3.svelte-5r0p3{flex-grow:1}.item.svelte-5r0p3.svelte-5r0p3:hover{background-color:rgba(255, 255, 255, 0.08)}.item-mobile.svelte-5r0p3.svelte-5r0p3:hover{background:var(--mobile-settings-bg)}.menu-subList.svelte-5r0p3 .item.svelte-5r0p3{color:rgba(255, 255, 255, 0.9)}.menu-subList.svelte-5r0p3 .item.svelte-5r0p3:last-child{margin-bottom:4px}.menu-icon-wrapper.svelte-5r0p3.svelte-5r0p3{width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin-right:16px}.menu-title.svelte-5r0p3.svelte-5r0p3{flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis}.menu-value.svelte-5r0p3.svelte-5r0p3{position:relative;opacity:0.7}.menu-valueIcon.svelte-5r0p3.svelte-5r0p3{position:absolute;top:-10px;right:-18px;width:15px}.menu-valueIcon-list.svelte-5r0p3.svelte-5r0p3{position:absolute;top:-7px;width:15px;right:6px}.menu-valueIcon.svelte-5r0p3 svg,.menu-valueIcon-list.svelte-5r0p3 svg{color:var(--blue-light)}.menu-divider.svelte-5r0p3.svelte-5r0p3{background-color:rgba(255, 255, 255, 0.3);height:1px;margin-bottom:4px}.menu-header.svelte-5r0p3.svelte-5r0p3{color:var(--white);cursor:pointer;justify-content:space-between;display:flex}.itemIcon.svelte-5r0p3.svelte-5r0p3{margin-right:auto;padding-right:12px;opacity:0.9}.items.svelte-5r0p3.svelte-5r0p3::-webkit-scrollbar{width:8px}.items.svelte-5r0p3.svelte-5r0p3::-webkit-scrollbar-track{box-shadow:none;background-color:#3a3a3a;border-radius:4px}.items.svelte-5r0p3.svelte-5r0p3::-webkit-scrollbar-thumb{min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box}.items.svelte-5r0p3.svelte-5r0p3::-webkit-scrollbar-thumb:hover{background-color:#777}.items-mobile.svelte-5r0p3.svelte-5r0p3{overflow-y:auto;max-height:160px;text-align:left}.close.svelte-5r0p3.svelte-5r0p3{position:relative;width:12px;height:12px;padding:12px;margin-right:-12px}.close.svelte-5r0p3.svelte-5r0p3:before,.close.svelte-5r0p3.svelte-5r0p3:after{position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white)}.close.svelte-5r0p3.svelte-5r0p3:before{transform:rotate(45deg)}.close.svelte-5r0p3.svelte-5r0p3:after{transform:rotate(-45deg)}")}function Q1(i,e,t){let n=i.slice();return n[142]=e[t],n}function Y1(i,e,t){let n=i.slice();return n[145]=e[t],n}function Z1(i,e,t){let n=i.slice();return n[148]=e[t],n}function X1(i){let e,t,n,o,r,l,a,s,u,c,m,h,w=i[34]&&J1(i),b=i[25]&&x1(i),S=i[24]&&ed(i),y=i[23]&&td(i),P=i[22]&&id(i),v=i[21]&&nd(i),g=i[34]&&od(i);return{c(){e=T("div"),w&&w.c(),t=F(),n=T("ul"),b&&b.c(),o=F(),S&&S.c(),r=F(),y&&y.c(),l=F(),P&&P.c(),a=F(),v&&v.c(),s=F(),g&&g.c(),f(n,"class","items svelte-5r0p3"),f(n,"role","menu"),f(n,"style",u=i[73]()),H(n,"items-mobile",i[34]),f(e,"class","menu svelte-5r0p3"),H(e,"menu-desktop",!i[34]),H(e,"menu-mobile",i[34]),H(e,"hidden",!i[11])},m(I,N){C(I,e,N),w&&w.m(e,null),p(e,t),p(e,n),b&&b.m(n,null),p(n,o),S&&S.m(n,null),p(n,r),y&&y.m(n,null),p(n,l),P&&P.m(n,null),p(n,a),v&&v.m(n,null),p(n,s),g&&g.m(n,null),i[112](n),c=!0,m||(h=[me(e,"keydown",i[78]),me(e,"mouseenter",i[71]),me(e,"mouseleave",i[72])],m=!0)},p(I,N){I[34]?w?w.p(I,N):(w=J1(I),w.c(),w.m(e,t)):w&&(w.d(1),w=null),I[25]?b?(b.p(I,N),N[0]&33554432&&d(b,1)):(b=x1(I),b.c(),d(b,1),b.m(n,o)):b&&(fe(),_(b,1,1,()=>{b=null}),ce()),I[24]?S?(S.p(I,N),N[0]&16777216&&d(S,1)):(S=ed(I),S.c(),d(S,1),S.m(n,r)):S&&(fe(),_(S,1,1,()=>{S=null}),ce()),I[23]?y?(y.p(I,N),N[0]&8388608&&d(y,1)):(y=td(I),y.c(),d(y,1),y.m(n,l)):y&&(fe(),_(y,1,1,()=>{y=null}),ce()),I[22]?P?(P.p(I,N),N[0]&4194304&&d(P,1)):(P=id(I),P.c(),d(P,1),P.m(n,a)):P&&(fe(),_(P,1,1,()=>{P=null}),ce()),I[21]?v?(v.p(I,N),N[0]&2097152&&d(v,1)):(v=nd(I),v.c(),d(v,1),v.m(n,s)):v&&(fe(),_(v,1,1,()=>{v=null}),ce()),I[34]?g?(g.p(I,N),N[1]&8&&d(g,1)):(g=od(I),g.c(),d(g,1),g.m(n,null)):g&&(fe(),_(g,1,1,()=>{g=null}),ce()),(!c||N[1]&8)&&H(n,"items-mobile",I[34]),(!c||N[1]&8)&&H(e,"menu-desktop",!I[34]),(!c||N[1]&8)&&H(e,"menu-mobile",I[34]),(!c||N[0]&2048)&&H(e,"hidden",!I[11])},i(I){c||(d(b),d(S),d(y),d(P),d(v),d(g),c=!0)},o(I){_(b),_(S),_(y),_(P),_(v),_(g),c=!1},d(I){I&&k(e),w&&w.d(),b&&b.d(),S&&S.d(),y&&y.d(),P&&P.d(),v&&v.d(),g&&g.d(),i[112](null),m=!1,nt(h)}}}function J1(i){let e,t,n,o,r,l,a,s;return{c(){e=T("div"),t=T("div"),t.textContent=`${Q("submenu_settings")}`,n=F(),o=T("div"),r=F(),l=T("div"),f(o,"class","close svelte-5r0p3"),f(e,"class","item menu-header svelte-5r0p3"),H(e,"item-mobile",i[34]),f(l,"class","menu-divider svelte-5r0p3")},m(u,c){C(u,e,c),p(e,t),p(e,n),p(e,o),C(u,r,c),C(u,l,c),a||(s=me(o,"click",st(i[57])),a=!0)},p(u,c){c[1]&8&&H(e,"item-mobile",u[34])},d(u){u&&(k(e),k(r),k(l)),a=!1,s()}}}function x1(i){let e,t,n,o,r,l,a,s,u,c,m,h,w;n=new Sr({});let b=i[33]&&!i[34]&&$1(i);return{c(){e=T("li"),t=T("div"),D(n.$$.fragment),o=F(),r=T("div"),r.textContent=`${Q("menu_quality")}`,l=F(),a=T("div"),s=De(i[16]),u=F(),b&&b.c(),f(t,"class","menu-icon-wrapper svelte-5r0p3"),f(r,"class","menu-title svelte-5r0p3"),f(a,"class","menu-value svelte-5r0p3"),f(e,"class","item svelte-5r0p3"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",c=Q("aria_label_menu_quality",{actual:i[27]})),f(e,"aria-haspopup","true"),H(e,"item-mobile",i[34])},m(S,y){C(S,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),b&&b.m(a,null),i[108](e),m=!0,h||(w=[me(e,"click",st(i[58])),me(e,"keydown",i[79])],h=!0)},p(S,y){(!m||y[0]&65536)&&Ye(s,S[16]),S[33]&&!S[34]?b?(b.p(S,y),y[1]&12&&d(b,1)):(b=$1(S),b.c(),d(b,1),b.m(a,null)):b&&(fe(),_(b,1,1,()=>{b=null}),ce()),(!m||y[0]&134217728&&c!==(c=Q("aria_label_menu_quality",{actual:S[27]})))&&f(e,"aria-label",c),(!m||y[1]&8)&&H(e,"item-mobile",S[34])},i(S){m||(d(n.$$.fragment,S),d(b),m=!0)},o(S){_(n.$$.fragment,S),_(b),m=!1},d(S){S&&k(e),B(n),b&&b.d(),i[108](null),h=!1,nt(w)}}}function $1(i){let e,t,n;var o=i[33];function r(l){return{}}return o&&(t=kn(o,r(i))),{c(){e=T("div"),t&&D(t.$$.fragment),f(e,"class","menu-valueIcon svelte-5r0p3")},m(l,a){C(l,e,a),t&&L(t,e,null),n=!0},p(l,a){if(a[1]&4&&o!==(o=l[33])){if(t){fe();let s=t;_(s.$$.fragment,1,0,()=>{B(s,1)}),ce()}o?(t=kn(o,r(l)),D(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&&k(e),t&&B(t)}}}function ed(i){let e,t,n,o,r,l,a,s,u,c,m,h,w;return n=new q1({}),{c(){e=T("li"),t=T("div"),D(n.$$.fragment),o=F(),r=T("div"),r.textContent=`${Q("menu_playback_rate")}`,l=F(),a=T("div"),s=De(i[9]),u=De("x"),f(t,"class","menu-icon-wrapper svelte-5r0p3"),f(r,"class","menu-title svelte-5r0p3"),f(a,"class","menu-value svelte-5r0p3"),f(e,"class","item svelte-5r0p3"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",c=Q("aria_label_menu_rate",{actual:i[28]})),f(e,"aria-haspopup","true"),H(e,"item-mobile",i[34])},m(b,S){C(b,e,S),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[109](e),m=!0,h||(w=[me(e,"click",st(Bt(i[62]))),me(e,"keydown",i[82])],h=!0)},p(b,S){(!m||S[0]&512)&&Ye(s,b[9]),(!m||S[0]&268435456&&c!==(c=Q("aria_label_menu_rate",{actual:b[28]})))&&f(e,"aria-label",c),(!m||S[1]&8)&&H(e,"item-mobile",b[34])},i(b){m||(d(n.$$.fragment,b),m=!0)},o(b){_(n.$$.fragment,b),m=!1},d(b){b&&k(e),B(n),i[109](null),h=!1,nt(w)}}}function td(i){let e,t,n,o,r,l,a,s=i[35].displayValue+"",u,c,m,h,w;return n=new Pr({}),{c(){e=T("li"),t=T("div"),D(n.$$.fragment),o=F(),r=T("div"),r.textContent=`${Q("subtitles_caption")}`,l=F(),a=T("div"),u=De(s),f(t,"class","menu-icon-wrapper svelte-5r0p3"),f(r,"class","menu-title svelte-5r0p3"),f(a,"class","menu-value svelte-5r0p3"),f(e,"class","item svelte-5r0p3"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",c=Q("aria_label_menu_subtitle",{actual:i[35].displayValue})),f(e,"aria-haspopup","true"),H(e,"item-mobile",i[34])},m(b,S){C(b,e,S),p(e,t),L(n,t,null),p(e,o),p(e,r),p(e,l),p(e,a),p(a,u),i[110](e),m=!0,h||(w=[me(e,"click",st(i[64])),me(e,"keydown",i[85])],h=!0)},p(b,S){(!m||S[1]&16)&&s!==(s=b[35].displayValue+"")&&Ye(u,s),(!m||S[1]&16&&c!==(c=Q("aria_label_menu_subtitle",{actual:b[35].displayValue})))&&f(e,"aria-label",c),(!m||S[1]&8)&&H(e,"item-mobile",b[34])},i(b){m||(d(n.$$.fragment,b),m=!0)},o(b){_(n.$$.fragment,b),m=!1},d(b){b&&k(e),B(n),i[110](null),h=!1,nt(w)}}}function id(i){let e,t,n,o,r,l,a,s,u,c,m,h;return n=new z1({}),{c(){e=T("li"),t=T("div"),D(n.$$.fragment),o=F(),r=T("div"),r.textContent=`${Q("menu_traffic_saving")}`,l=F(),a=T("div"),s=De(i[26]),f(t,"class","menu-icon-wrapper svelte-5r0p3"),f(r,"class","menu-title svelte-5r0p3"),f(a,"class","menu-value svelte-5r0p3"),f(e,"class","item svelte-5r0p3"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",u=Q("aria_label_menu_traffic_saving",{actual:i[26]})),f(e,"aria-haspopup","true"),H(e,"item-mobile",i[34])},m(w,b){C(w,e,b),p(e,t),L(n,t,null),p(e,o),p(e,r),p(e,l),p(e,a),p(a,s),i[111](e),c=!0,m||(h=[me(e,"click",st(i[59])),me(e,"keydown",i[88])],m=!0)},p(w,b){(!c||b[0]&67108864)&&Ye(s,w[26]),(!c||b[0]&67108864&&u!==(u=Q("aria_label_menu_traffic_saving",{actual:w[26]})))&&f(e,"aria-label",u),(!c||b[1]&8)&&H(e,"item-mobile",w[34])},i(w){c||(d(n.$$.fragment,w),c=!0)},o(w){_(n.$$.fragment,w),c=!1},d(w){w&&k(e),B(n),i[111](null),m=!1,nt(h)}}}function nd(i){let e,t,n,o,r,l,a,s,u;return n=new H1({}),{c(){e=T("li"),t=T("div"),D(n.$$.fragment),o=F(),r=T("div"),r.textContent=`${Q("download_video_caption")}`,f(t,"class","menu-icon-wrapper svelte-5r0p3"),f(r,"class","menu-title svelte-5r0p3"),f(e,"class","item svelte-5r0p3"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",l=Q("aria_label_menu_download")),H(e,"item-mobile",i[34])},m(c,m){C(c,e,m),p(e,t),L(n,t,null),p(e,o),p(e,r),a=!0,s||(u=[me(e,"click",st(i[67])),me(e,"keydown",i[91])],s=!0)},p(c,m){(!a||m[1]&8)&&H(e,"item-mobile",c[34])},i(c){a||(d(n.$$.fragment,c),a=!0)},o(c){_(n.$$.fragment,c),a=!1},d(c){c&&k(e),B(n),s=!1,nt(u)}}}function od(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,b,S,y,P,v=i[37].showSupport&&wg(i);return o=new G1({}),m=new j1({}),{c(){v&&v.c(),e=F(),t=T("li"),n=T("div"),D(o.$$.fragment),r=F(),l=T("div"),l.textContent=`${Q("menu_copy_debug")}`,s=F(),u=T("li"),c=T("div"),D(m.$$.fragment),h=F(),w=T("div"),w.textContent=`${Q("menu_debug_overlay")}`,f(n,"class","menu-icon-wrapper svelte-5r0p3"),f(l,"class","menu-title svelte-5r0p3"),f(t,"class","item item-mobile svelte-5r0p3"),f(t,"role","menuitem"),f(t,"tabindex","0"),f(t,"aria-label",a=Q("menu_copy_debug")),f(c,"class","menu-icon-wrapper svelte-5r0p3"),f(w,"class","menu-title svelte-5r0p3"),f(u,"class","item item-mobile svelte-5r0p3"),f(u,"role","menuitem"),f(u,"tabindex","0"),f(u,"aria-label",b=i[36]?Q("aria_label_menu_debug_overlay_disable"):Q("aria_label_menu_debug_overlay_enable"))},m(g,I){v&&v.m(g,I),C(g,e,I),C(g,t,I),p(t,n),L(o,n,null),p(t,r),p(t,l),C(g,s,I),C(g,u,I),p(u,c),L(m,c,null),p(u,h),p(u,w),S=!0,y||(P=[me(t,"click",st(i[69])),me(t,"keydown",i[93]),me(u,"click",st(i[70])),me(u,"keydown",i[94])],y=!0)},p(g,I){g[37].showSupport&&v.p(g,I),(!S||I[1]&32&&b!==(b=g[36]?Q("aria_label_menu_debug_overlay_disable"):Q("aria_label_menu_debug_overlay_enable")))&&f(u,"aria-label",b)},i(g){S||(d(v),d(o.$$.fragment,g),d(m.$$.fragment,g),S=!0)},o(g){_(v),_(o.$$.fragment,g),_(m.$$.fragment,g),S=!1},d(g){g&&(k(e),k(t),k(s),k(u)),v&&v.d(g),B(o),B(m),y=!1,nt(P)}}}function wg(i){let e,t,n,o,r,l,a,s,u;return n=new W1({}),{c(){e=T("li"),t=T("div"),D(n.$$.fragment),o=F(),r=T("div"),r.textContent=`${Q("menu_report")}`,f(t,"class","menu-icon-wrapper svelte-5r0p3"),f(r,"class","menu-title svelte-5r0p3"),f(e,"class","item item-mobile svelte-5r0p3"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",l=`${Q("menu_report")}. ${Q("aria_label_new_tab_alert")}`)},m(c,m){C(c,e,m),p(e,t),L(n,t,null),p(e,o),p(e,r),a=!0,s||(u=[me(e,"click",st(i[68])),me(e,"keydown",i[92])],s=!0)},p:de,i(c){a||(d(n.$$.fragment,c),a=!0)},o(c){_(n.$$.fragment,c),a=!1},d(c){c&&k(e),B(n),s=!1,nt(u)}}}function ld(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,b;n=new Xn({props:{direction:"left"}});let S=Tt(i[8]),y=[];for(let v=0;v<S.length;v+=1)y[v]=ad(Z1(i,S,v));let P=v=>_(y[v],1,1,()=>{y[v]=null});return{c(){var v;e=T("div"),t=T("div"),D(n.$$.fragment),o=F(),r=T("div"),r.textContent=`${Q("submenu_quality")}`,a=F(),s=T("div"),u=F(),c=T("ul");for(let g=0;g<y.length;g+=1)y[g].c();f(t,"class","item menu-header svelte-5r0p3"),f(t,"aria-label",l=Q("aria_label_submenu_back")),H(t,"item-mobile",i[34]),f(s,"class","menu-divider svelte-5r0p3"),f(c,"class","items svelte-5r0p3"),f(c,"role","menu"),f(c,"style",m=i[73]((v=i[17])==null?void 0:v.clientHeight,!0)),H(c,"items-mobile",i[34]),f(e,"class","menu menu-subList svelte-5r0p3"),H(e,"menu-desktop",!i[34]),H(e,"menu-mobile",i[34])},m(v,g){C(v,e,g),p(e,t),L(n,t,null),p(t,o),p(t,r),i[113](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[116](c),h=!0,w||(b=[me(t,"click",st(i[66])),me(c,"keydown",i[80])],w=!0)},p(v,g){var I;if((!h||g[1]&8)&&H(t,"item-mobile",v[34]),g[0]&256|g[1]&536870920|g[2]&524288){S=Tt(v[8]);let N;for(N=0;N<S.length;N+=1){let W=Z1(v,S,N);y[N]?(y[N].p(W,g),d(y[N],1)):(y[N]=ad(W),y[N].c(),d(y[N],1),y[N].m(c,null))}for(fe(),N=S.length;N<y.length;N+=1)P(N);ce()}(!h||g[0]&131072&&m!==(m=v[73]((I=v[17])==null?void 0:I.clientHeight,!0)))&&f(c,"style",m),(!h||g[1]&8)&&H(c,"items-mobile",v[34]),(!h||g[1]&8)&&H(e,"menu-desktop",!v[34]),(!h||g[1]&8)&&H(e,"menu-mobile",v[34])},i(v){if(!h){d(n.$$.fragment,v);for(let g=0;g<S.length;g+=1)d(y[g]);h=!0}},o(v){_(n.$$.fragment,v),y=y.filter(Boolean);for(let g=0;g<y.length;g+=1)_(y[g]);h=!1},d(v){v&&k(e),B(n),i[113](null),Ui(y,v),i[116](null),w=!1,nt(b)}}}function rd(i){let e,t,n;return t=new sl({}),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","itemIcon svelte-5r0p3")},m(o,r){C(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&&k(e),B(t)}}}function sd(i){let e,t,n;var o=go(i[148].value);function r(l){return{}}return o&&(t=kn(o,r(i))),{c(){e=T("div"),t&&D(t.$$.fragment),f(e,"class","menu-valueIcon-list svelte-5r0p3")},m(l,a){C(l,e,a),t&&L(t,e,null),n=!0},p(l,a){if(a[0]&256&&o!==(o=go(l[148].value))){if(t){fe();let s=t;_(s.$$.fragment,1,0,()=>{B(s,1)}),ce()}o?(t=kn(o,r(l)),D(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&&k(e),t&&B(t)}}}function ad(i){let e,t,n,o=i[148].displayValue+"",r,l,a=!i[34]&&go(i[148].value),s,u,c,m,h,w,b=i[148].selected&&rd(i),S=a&&sd(i);function y(){return i[114](i[148])}function P(...v){return i[115](i[148],...v)}return{c(){e=T("li"),b&&b.c(),t=F(),n=T("div"),r=De(o),l=F(),S&&S.c(),s=F(),f(n,"class","svelte-5r0p3"),H(n,"quality-title-mobile",i[34]),f(e,"class","item item-quality svelte-5r0p3"),f(e,"data-value",u=i[148].value),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",c=i[148].displayValue),H(e,"item-mobile",i[34])},m(v,g){C(v,e,g),b&&b.m(e,null),p(e,t),p(e,n),p(n,r),p(e,l),S&&S.m(e,null),p(e,s),m=!0,h||(w=[me(e,"click",st(y)),me(e,"keydown",P)],h=!0)},p(v,g){i=v,i[148].selected?b?g[0]&256&&d(b,1):(b=rd(i),b.c(),d(b,1),b.m(e,t)):b&&(fe(),_(b,1,1,()=>{b=null}),ce()),(!m||g[0]&256)&&o!==(o=i[148].displayValue+"")&&Ye(r,o),(!m||g[1]&8)&&H(n,"quality-title-mobile",i[34]),g[0]&256|g[1]&8&&(a=!i[34]&&go(i[148].value)),a?S?(S.p(i,g),g[0]&256|g[1]&8&&d(S,1)):(S=sd(i),S.c(),d(S,1),S.m(e,s)):S&&(fe(),_(S,1,1,()=>{S=null}),ce()),(!m||g[0]&256&&u!==(u=i[148].value))&&f(e,"data-value",u),(!m||g[0]&256&&c!==(c=i[148].displayValue))&&f(e,"aria-label",c),(!m||g[1]&8)&&H(e,"item-mobile",i[34])},i(v){m||(d(b),d(S),m=!0)},o(v){_(b),_(S),m=!1},d(v){v&&k(e),b&&b.d(),S&&S.d(),h=!1,nt(w)}}}function ud(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,b;n=new Xn({props:{direction:"left"}});let S=Tt(i[7]),y=[];for(let v=0;v<S.length;v+=1)y[v]=cd(Y1(i,S,v));let P=v=>_(y[v],1,1,()=>{y[v]=null});return{c(){var v;e=T("div"),t=T("div"),D(n.$$.fragment),o=F(),r=T("div"),r.textContent=`${Q("submenu_playback_rate")}`,a=F(),s=T("div"),u=F(),c=T("ul");for(let g=0;g<y.length;g+=1)y[g].c();f(t,"class","item menu-header svelte-5r0p3"),f(t,"aria-label",l=Q("aria_label_submenu_back")),H(t,"item-mobile",i[34]),f(s,"class","menu-divider svelte-5r0p3"),f(c,"class","items svelte-5r0p3"),f(c,"role","menu"),f(c,"style",m=i[73]((v=i[18])==null?void 0:v.clientHeight,!0)),H(c,"items-mobile",i[34]),f(e,"class","menu menu-subList svelte-5r0p3"),H(e,"menu-desktop",!i[34]),H(e,"menu-mobile",i[34])},m(v,g){C(v,e,g),p(e,t),L(n,t,null),p(t,o),p(t,r),i[117](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[120](c),h=!0,w||(b=[me(t,"click",st(i[66])),me(c,"keydown",i[83])],w=!0)},p(v,g){var I;if((!h||g[1]&8)&&H(t,"item-mobile",v[34]),g[0]&128|g[1]&8|g[2]&4194306){S=Tt(v[7]);let N;for(N=0;N<S.length;N+=1){let W=Y1(v,S,N);y[N]?(y[N].p(W,g),d(y[N],1)):(y[N]=cd(W),y[N].c(),d(y[N],1),y[N].m(c,null))}for(fe(),N=S.length;N<y.length;N+=1)P(N);ce()}(!h||g[0]&262144&&m!==(m=v[73]((I=v[18])==null?void 0:I.clientHeight,!0)))&&f(c,"style",m),(!h||g[1]&8)&&H(c,"items-mobile",v[34]),(!h||g[1]&8)&&H(e,"menu-desktop",!v[34]),(!h||g[1]&8)&&H(e,"menu-mobile",v[34])},i(v){if(!h){d(n.$$.fragment,v);for(let g=0;g<S.length;g+=1)d(y[g]);h=!0}},o(v){_(n.$$.fragment,v),y=y.filter(Boolean);for(let g=0;g<y.length;g+=1)_(y[g]);h=!1},d(v){v&&k(e),B(n),i[117](null),Ui(y,v),i[120](null),w=!1,nt(b)}}}function fd(i){let e,t,n;return t=new sl({}),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","itemIcon svelte-5r0p3")},m(o,r){C(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&&k(e),B(t)}}}function cd(i){let e,t,n,o=i[145].displayValue+"",r,l,a,s,u,c,m,h=i[145].selected&&fd(i);function w(){return i[118](i[145])}function b(...S){return i[119](i[145],...S)}return{c(){e=T("li"),h&&h.c(),t=F(),n=T("div"),r=De(o),l=F(),f(n,"class","svelte-5r0p3"),H(n,"quality-title-mobile",i[34]),f(e,"class","item item-quality svelte-5r0p3"),f(e,"data-value",a=i[145].value),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",s=i[145].displayValue),H(e,"item-mobile",i[34])},m(S,y){C(S,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",st(w)),me(e,"keydown",b)],c=!0)},p(S,y){i=S,i[145].selected?h?y[0]&128&&d(h,1):(h=fd(i),h.c(),d(h,1),h.m(e,t)):h&&(fe(),_(h,1,1,()=>{h=null}),ce()),(!u||y[0]&128)&&o!==(o=i[145].displayValue+"")&&Ye(r,o),(!u||y[1]&8)&&H(n,"quality-title-mobile",i[34]),(!u||y[0]&128&&a!==(a=i[145].value))&&f(e,"data-value",a),(!u||y[0]&128&&s!==(s=i[145].displayValue))&&f(e,"aria-label",s),(!u||y[1]&8)&&H(e,"item-mobile",i[34])},i(S){u||(d(h),u=!0)},o(S){_(h),u=!1},d(S){S&&k(e),h&&h.d(),c=!1,nt(m)}}}function dd(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,b,S,y,P,v,g,I,N,W,U,le,ae,O,R,x,Y;n=new Xn({props:{direction:"left"}});let J=!i[5]&&md(i),E=i[5]&&pd(i);return{c(){var te;e=T("div"),t=T("div"),D(n.$$.fragment),o=F(),r=T("div"),r.textContent=`${Q("submenu_traffic_saving")}`,a=F(),s=T("div"),u=F(),c=T("div"),m=T("ul"),h=T("li"),J&&J.c(),w=F(),b=T("div"),b.textContent=`${Q("traffic_saving_disable")}`,y=F(),P=T("li"),E&&E.c(),v=F(),g=T("div"),g.textContent=`${Q("traffic_saving_enable")}`,N=F(),W=T("div"),U=F(),le=T("div"),ae=T("span"),ae.textContent=`${Q("traffic_saving_helper_text")}`,f(t,"class","item menu-header svelte-5r0p3"),f(t,"aria-label",l=Q("aria_label_submenu_back")),H(t,"item-mobile",i[34]),f(s,"class","menu-divider svelte-5r0p3"),f(b,"class","svelte-5r0p3"),H(b,"quality-title-mobile",i[34]),f(h,"class","item item-traffic-saving svelte-5r0p3"),f(h,"role","menuitem"),f(h,"tabindex","0"),f(h,"aria-label",S=Q("aria_label_submenu_traffic_saving_off")),H(h,"item-mobile",i[34]),f(g,"class","svelte-5r0p3"),H(g,"quality-title-mobile",i[34]),f(P,"class","item item-traffic-saving svelte-5r0p3"),f(P,"role","menuitem"),f(P,"tabindex","0"),f(P,"aria-label",I=`${Q("aria_label_submenu_traffic_saving_on")}. ${Q("traffic_saving_helper_text")}`),H(P,"item-mobile",i[34]),f(m,"class","items svelte-5r0p3"),f(m,"role","menu"),H(m,"items-mobile",i[34]),f(W,"class","menu-divider svelte-5r0p3"),f(ae,"class","svelte-5r0p3"),f(le,"class","item item-helper-text svelte-5r0p3"),H(le,"item-mobile",i[34]),f(c,"style",O=i[73]((te=i[19])==null?void 0:te.clientHeight,!0)),f(e,"class","menu menu-subList menu-subList-traffic-saving svelte-5r0p3"),H(e,"menu-desktop",!i[34]),H(e,"menu-mobile",i[34])},m(te,M){C(te,e,M),p(e,t),L(n,t,null),p(t,o),p(t,r),i[121](t),p(e,a),p(e,s),p(e,u),p(e,c),p(c,m),p(m,h),J&&J.m(h,null),p(h,w),p(h,b),p(m,y),p(m,P),E&&E.m(P,null),p(P,v),p(P,g),i[126](m),p(c,N),p(c,W),p(c,U),p(c,le),p(le,ae),R=!0,x||(Y=[me(t,"click",st(i[66])),me(h,"click",st(i[122])),me(h,"keydown",i[123]),me(P,"click",st(i[124])),me(P,"keydown",i[125]),me(m,"keydown",i[89])],x=!0)},p(te,M){var ee;(!R||M[1]&8)&&H(t,"item-mobile",te[34]),te[5]?J&&(fe(),_(J,1,1,()=>{J=null}),ce()):J?M[0]&32&&d(J,1):(J=md(te),J.c(),d(J,1),J.m(h,w)),(!R||M[1]&8)&&H(b,"quality-title-mobile",te[34]),(!R||M[1]&8)&&H(h,"item-mobile",te[34]),te[5]?E?M[0]&32&&d(E,1):(E=pd(te),E.c(),d(E,1),E.m(P,v)):E&&(fe(),_(E,1,1,()=>{E=null}),ce()),(!R||M[1]&8)&&H(g,"quality-title-mobile",te[34]),(!R||M[1]&8)&&H(P,"item-mobile",te[34]),(!R||M[1]&8)&&H(m,"items-mobile",te[34]),(!R||M[1]&8)&&H(le,"item-mobile",te[34]),(!R||M[0]&524288&&O!==(O=te[73]((ee=te[19])==null?void 0:ee.clientHeight,!0)))&&f(c,"style",O),(!R||M[1]&8)&&H(e,"menu-desktop",!te[34]),(!R||M[1]&8)&&H(e,"menu-mobile",te[34])},i(te){R||(d(n.$$.fragment,te),d(J),d(E),R=!0)},o(te){_(n.$$.fragment,te),_(J),_(E),R=!1},d(te){te&&k(e),B(n),i[121](null),J&&J.d(),E&&E.d(),i[126](null),x=!1,nt(Y)}}}function md(i){let e,t,n;return t=new sl({}),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","itemIcon svelte-5r0p3")},m(o,r){C(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&&k(e),B(t)}}}function pd(i){let e,t,n;return t=new sl({}),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","itemIcon svelte-5r0p3")},m(o,r){C(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&&k(e),B(t)}}}function _d(i){let e,t,n,o,r,l,a,s,u,c,m,h;n=new Xn({props:{direction:"left"}});let w=Tt(i[6]),b=[];for(let y=0;y<w.length;y+=1)b[y]=gd(Q1(i,w,y));let S=y=>_(b[y],1,1,()=>{b[y]=null});return{c(){var y;e=T("div"),t=T("div"),D(n.$$.fragment),o=F(),r=T("div"),r.textContent=`${Q("subtitles_caption")}`,a=F(),s=T("ul");for(let P=0;P<b.length;P+=1)b[P].c();f(t,"class","item menu-header svelte-5r0p3"),f(t,"aria-label",l=Q("aria_label_submenu_back")),H(t,"item-mobile",i[34]),f(s,"class","items svelte-5r0p3"),f(s,"role","menu"),f(s,"style",u=i[73]((y=i[20])==null?void 0:y.clientHeight,!0)),H(s,"items-mobile",i[34]),f(e,"class","menu menu-subList menu-subList-subtitles svelte-5r0p3"),H(e,"menu-desktop",!i[34]),H(e,"menu-mobile",i[34])},m(y,P){C(y,e,P),p(e,t),L(n,t,null),p(t,o),p(t,r),i[127](t),p(e,a),p(e,s);for(let v=0;v<b.length;v+=1)b[v]&&b[v].m(s,null);i[130](s),c=!0,m||(h=[me(t,"click",st(i[66])),me(s,"keydown",i[86])],m=!0)},p(y,P){var v;if((!c||P[1]&8)&&H(t,"item-mobile",y[34]),P[0]&64|P[1]&8|P[2]&33554440){w=Tt(y[6]);let g;for(g=0;g<w.length;g+=1){let I=Q1(y,w,g);b[g]?(b[g].p(I,P),d(b[g],1)):(b[g]=gd(I),b[g].c(),d(b[g],1),b[g].m(s,null))}for(fe(),g=w.length;g<b.length;g+=1)S(g);ce()}(!c||P[0]&1048576&&u!==(u=y[73]((v=y[20])==null?void 0:v.clientHeight,!0)))&&f(s,"style",u),(!c||P[1]&8)&&H(s,"items-mobile",y[34]),(!c||P[1]&8)&&H(e,"menu-desktop",!y[34]),(!c||P[1]&8)&&H(e,"menu-mobile",y[34])},i(y){if(!c){d(n.$$.fragment,y);for(let P=0;P<w.length;P+=1)d(b[P]);c=!0}},o(y){_(n.$$.fragment,y),b=b.filter(Boolean);for(let P=0;P<b.length;P+=1)_(b[P]);c=!1},d(y){y&&k(e),B(n),i[127](null),Ui(b,y),i[130](null),m=!1,nt(h)}}}function hd(i){let e,t,n;return t=new sl({}),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","itemIcon svelte-5r0p3")},m(o,r){C(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&&k(e),B(t)}}}function gd(i){let e,t,n,o=i[142].displayValue+"",r,l,a,s,u,c,m,h=i[142].selected&&hd(i);function w(){return i[128](i[142])}function b(...S){return i[129](i[142],...S)}return{c(){e=T("li"),h&&h.c(),t=F(),n=T("div"),r=De(o),l=F(),f(n,"class","svelte-5r0p3"),H(n,"quality-title-mobile",i[34]),f(e,"class","item item-quality svelte-5r0p3"),f(e,"data-value",a=i[142].value),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",s=i[142].displayValue),H(e,"item-mobile",i[34])},m(S,y){C(S,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",st(w)),me(e,"keydown",b)],c=!0)},p(S,y){i=S,i[142].selected?h?y[0]&64&&d(h,1):(h=hd(i),h.c(),d(h,1),h.m(e,t)):h&&(fe(),_(h,1,1,()=>{h=null}),ce()),(!u||y[0]&64)&&o!==(o=i[142].displayValue+"")&&Ye(r,o),(!u||y[1]&8)&&H(n,"quality-title-mobile",i[34]),(!u||y[0]&64&&a!==(a=i[142].value))&&f(e,"data-value",a),(!u||y[0]&64&&s!==(s=i[142].displayValue))&&f(e,"aria-label",s),(!u||y[1]&8)&&H(e,"item-mobile",i[34])},i(S){u||(d(h),u=!0)},o(S){_(h),u=!1},d(S){S&&k(e),h&&h.d(),c=!1,nt(m)}}}function kg(i){let e,t,n,o,r,l,a=i[10]&&X1(i),s=i[12]&&ld(i),u=i[13]&&ud(i),c=i[15]&&dd(i),m=i[14]&&_d(i);return{c(){e=T("div"),a&&a.c(),t=F(),s&&s.c(),n=F(),u&&u.c(),o=F(),c&&c.c(),r=F(),m&&m.c(),f(e,"class","svelte-5r0p3"),H(e,"hidden",!i[10]),H(e,"container-mobile",i[34])},m(h,w){C(h,e,w),a&&a.m(e,null),p(e,t),s&&s.m(e,null),p(e,n),u&&u.m(e,null),p(e,o),c&&c.m(e,null),p(e,r),m&&m.m(e,null),l=!0},p(h,w){h[10]?a?(a.p(h,w),w[0]&1024&&d(a,1)):(a=X1(h),a.c(),d(a,1),a.m(e,t)):a&&(fe(),_(a,1,1,()=>{a=null}),ce()),h[12]?s?(s.p(h,w),w[0]&4096&&d(s,1)):(s=ld(h),s.c(),d(s,1),s.m(e,n)):s&&(fe(),_(s,1,1,()=>{s=null}),ce()),h[13]?u?(u.p(h,w),w[0]&8192&&d(u,1)):(u=ud(h),u.c(),d(u,1),u.m(e,o)):u&&(fe(),_(u,1,1,()=>{u=null}),ce()),h[15]?c?(c.p(h,w),w[0]&32768&&d(c,1)):(c=dd(h),c.c(),d(c,1),c.m(e,r)):c&&(fe(),_(c,1,1,()=>{c=null}),ce()),h[14]?m?(m.p(h,w),w[0]&16384&&d(m,1)):(m=_d(h),m.c(),d(m,1),m.m(e,null)):m&&(fe(),_(m,1,1,()=>{m=null}),ce()),(!l||w[0]&1024)&&H(e,"hidden",!h[10]),(!l||w[1]&8)&&H(e,"container-mobile",h[34])},i(h){l||(d(a),d(s),d(u),d(c),d(m),l=!0)},o(h){_(a),_(s),_(u),_(c),_(m),l=!1},d(h){h&&k(e),a&&a.d(),s&&s.d(),u&&u.d(),c&&c.d(),m&&m.d()}}}var Cg=18;function Sg(i,e,t){let n,o,r,l,a,s,u,c,m,h,w,b,S,y,P,v,g,I,N,W,U,le,ae,O,{ref:R=void 0}=e,{supportLink:x}=e,{playerControlsHeight:Y=0}=e,{returnFocus:J}=e,E=it(),te=zt(),M=E.state.currentQuality$;z(i,M,re=>t(102,S=re));let ee=E.state.availableQualities$;z(i,ee,re=>t(8,w=re));let ke=E.state.autoQualityLimitingAvailable$;z(i,ke,re=>t(106,g=re));let Ge=E.state.isAutoQualityEnabled$;z(i,Ge,re=>t(103,y=re));let Ue=E.state.currentPlaybackRate$;z(i,Ue,re=>t(9,b=re));let xe=E.state.availablePlaybackRates$;z(i,xe,re=>t(7,m=re));let je=E.state.currentSubtitle$;z(i,je,re=>t(35,ae=re));let ve=E.state.availableSubtitlesList$;z(i,ve,re=>t(6,u=re));let X=E.state.canDownload,be=E.state.hasMpegSources$;z(i,be,re=>t(107,I=re));let Oe=E.ui.settingsMenuVisible;z(i,Oe,re=>t(10,le=re));let $e=E.ui.settingsMenuOpenedByKeyboard;z(i,$e,re=>t(132,o=re));let et=E.ui.isMobile;z(i,et,re=>t(34,r=re));let ye=E.ui.mobileNotReportControlHidden$;z(i,ye,re=>t(104,P=re));let Le=E.state.canChangePlaybackSpeed$;z(i,Le,re=>t(105,v=re));let Ke=E.ui.isFullscreen;z(i,Ke,re=>t(135,U=re));let Xe=E.state.trafficSavingEnabled$;z(i,Xe,re=>t(5,a=re));let Te=E.ui.playerSize;z(i,Te,re=>t(134,W=re));let Z=E.ui.debugPanelVisible;z(i,Z,re=>t(36,O=re));let Ce=E.ui.playerSize;z(i,Ce,re=>t(133,N=re));let ue=E.state.isInteractiveTime$,Ie=E.actions.internal.downloadVideo,Je=E.actions.internal.closeSettingsMenu,at=!0,ut=!1,ft=!1,ht=!1,gt=!1,we=!1;function pt(){o||J==null||J(),Je(),we=!1}function Et(){t(11,at=!1),t(12,ut=!0)}function Mt(){t(11,at=!1),t(15,gt=!0)}function ze(re){E.actions.internal.setQuality(re),pt()}function Ut(re){E.actions.internal.setTrafficSavingEnabled(re),pt()}function Ft(){t(11,at=!1),t(13,ft=!0)}function _e(re){E.actions.internal.setPlaybackRate(re),pt()}function Nt(){t(11,at=!1),t(14,ht=!0)}function mt(re){E.actions.internal.setSubtitle(re),pt()}function vt(){t(11,at=!0),t(12,ut=!1),t(13,ft=!1),t(14,ht=!1),t(15,gt=!1)}function bt(){Ie(),pt()}function Be(){window.open(x,"_blank"),pt(),E.actions.internal.pause()}function Qe(){Il(E.actions.internal.getDebugTextData()),pt()}function wt(){Z.set(!0),pt()}function jt(){we=!0}function $i(){we=!1}function fn(re,dt,mi){if(!re)return"...";let pi=dt.find(Xt=>Xt.value===re),li=pi?pi.displayValue:re;return mi?re===bd.VideoQuality.INVARIANT?Q("auto_quality_invariant"):Q("auto_quality",{actual:li}):li}let hi,gi,Li,ei,bi;function cn(re=0,dt=!1){return r&&U&&dt?`max-height: ${Math.round(W.height*.6)}px`:r?"":`max-height: ${N.height-Cg-re-Y}px; overflow: auto;`}let vi,Ki,ri,Bi,yi,Wi,wi,si,At,Lt,ki=Ne(!1);z(i,ki,re=>t(101,h=re));let Ci,Qt,ai=Ne(!1);z(i,ai,re=>t(100,c=re));let ui,yt,Ht=Ne(!1);z(i,Ht,re=>t(99,s=re));let Ct,Ri,ti=Ne(!1);z(i,ti,re=>t(98,l=re));let dn=re=>{_r(re,Je)},mn=async re=>{Ml(re,Et,()=>{let dt=w.findIndex(mi=>mi.selected);return Lt.childNodes[dt]})},Jt=async re=>{Vl(re,vt,ki,Je)},Si=(re,dt)=>{xi(re,()=>ze(dt))},Gi=async re=>{Ml(re,Ft,()=>{let dt=m.findIndex(mi=>mi.selected);return Qt.childNodes[dt]})},Pi=async re=>{Vl(re,vt,ai,Je)},fi=(re,dt)=>{xi(re,()=>_e(dt))},Yt=async re=>{Ml(re,Nt,()=>{let dt=u.findIndex(mi=>mi.selected);return yt.childNodes[dt]})},xt=async re=>{Vl(re,vt,Ht,Je)},Ti=(re,dt)=>{xi(re,()=>mt(dt))},ii=async re=>{Ml(re,Mt,()=>{let dt=a?2:0;return Ri.childNodes[dt]})},en=async re=>{Vl(re,vt,ti,Je)},Ii=(re,dt)=>{xi(re,()=>Ut(dt))},pn=re=>{xi(re,()=>bt())},_n=re=>{xi(re,()=>Be())},tn=re=>{xi(re,()=>Qe())},ji=re=>{xi(re,()=>wt())};Rt(()=>{let re=ue.subscribe(dt=>{dt&&!r&&!we&&!o&&pt()});return()=>{re()}});function Di(re){pe[re?"unshift":"push"](()=>{At=re,t(1,At)})}function $t(re){pe[re?"unshift":"push"](()=>{Ci=re,t(2,Ci)})}function ci(re){pe[re?"unshift":"push"](()=>{ui=re,t(3,ui)})}function Ei(re){pe[re?"unshift":"push"](()=>{Ct=re,t(4,Ct)})}function Ni(re){pe[re?"unshift":"push"](()=>{R=re,t(0,R)})}function nn(re){pe[re?"unshift":"push"](()=>{gi=re,t(17,gi)})}let Mi=re=>ze(re.value),Oi=(re,dt)=>Si(dt,re.value);function Fi(re){pe[re?"unshift":"push"](()=>{Lt=re,t(29,Lt)})}function Ze(re){pe[re?"unshift":"push"](()=>{Li=re,t(18,Li)})}let Qi=re=>_e(re.value),Zt=(re,dt)=>fi(dt,re.value);function qe(re){pe[re?"unshift":"push"](()=>{Qt=re,t(30,Qt)})}function on(re){pe[re?"unshift":"push"](()=>{ei=re,t(19,ei)})}let Hi=()=>Ut(!1),Yi=re=>Ii(re,!1),ln=()=>Ut(!0),Zi=re=>Ii(re,!0);function Cn(re){pe[re?"unshift":"push"](()=>{Ri=re,t(32,Ri)})}function ni(re){pe[re?"unshift":"push"](()=>{bi=re,t(20,bi)})}let oi=re=>mt(re),Xi=(re,dt)=>Ti(dt,re);function di(re){pe[re?"unshift":"push"](()=>{yt=re,t(31,yt)})}return i.$$set=re=>{"ref"in re&&t(0,R=re.ref),"supportLink"in re&&t(95,x=re.supportLink),"playerControlsHeight"in re&&t(96,Y=re.playerControlsHeight),"returnFocus"in re&&t(97,J=re.returnFocus)},i.$$.update=()=>{var re;if(i.$$.dirty[0]&1024)e:le&&(t(11,at=!0),t(12,ut=!1),t(13,ft=!1),t(14,ht=!1),t(15,gt=!1));if(i.$$.dirty[3]&512)e:t(33,n=go(S));if(i.$$.dirty[0]&256|i.$$.dirty[3]&1536)e:t(16,hi=fn(S,w,y));if(i.$$.dirty[3]&18432)e:t(21,vi=X&&I&&!P);if(i.$$.dirty[3]&10240)e:t(22,Ki=te.features.trafficSaving&&!P&&g);if(i.$$.dirty[0]&64|i.$$.dirty[3]&2048)e:t(23,ri=u.length>0&&!P);if(i.$$.dirty[3]&6144)e:t(24,Bi=!!v&&!P);if(i.$$.dirty[3]&2048)e:t(25,yi=!P);if(i.$$.dirty[0]&32)e:t(26,Wi=a?Q("traffic_saving_on"):Q("traffic_saving_off"));if(i.$$.dirty[3]&1536)e:t(27,wi=y?Q("auto_quality_option"):S);if(i.$$.dirty[0]&640)e:t(28,si=(re=m.find(dt=>dt.value===b))==null?void 0:re.displayValue);if(i.$$.dirty[0]&2|i.$$.dirty[3]&256)e:El(At,ki,h);if(i.$$.dirty[0]&4|i.$$.dirty[3]&128)e:El(Ci,ai,c);if(i.$$.dirty[0]&8|i.$$.dirty[3]&64)e:El(ui,Ht,s);if(i.$$.dirty[0]&16|i.$$.dirty[3]&32)e:El(Ct,ti,l)},[R,At,Ci,ui,Ct,a,u,m,w,b,le,at,ut,ft,ht,gt,hi,gi,Li,ei,bi,vi,Ki,ri,Bi,yi,Wi,wi,si,Lt,Qt,yt,Ri,n,r,ae,O,te,M,ee,ke,Ge,Ue,xe,je,ve,be,Oe,$e,et,ye,Le,Ke,Xe,Te,Z,Ce,pt,Et,Mt,ze,Ut,Ft,_e,Nt,mt,vt,bt,Be,Qe,wt,jt,$i,cn,ki,ai,Ht,ti,dn,mn,Jt,Si,Gi,Pi,fi,Yt,xt,Ti,ii,en,Ii,pn,_n,tn,ji,x,Y,J,l,s,c,h,S,y,P,v,g,I,Di,$t,ci,Ei,Ni,nn,Mi,Oi,Fi,Ze,Qi,Zt,qe,on,Hi,Yi,ln,Zi,Cn,ni,oi,Xi,di]}var Va=class extends K{constructor(e){super(),G(this,e,Sg,kg,q,{ref:0,supportLink:95,playerControlsHeight:96,returnFocus:97},yg,[-1,-1,-1,-1,-1])}},Tr=Va;function Pg(i){Se(i,"svelte-d9t49t",".settings-icon-wrapper.svelte-d9t49t{position:relative;width:24px}")}function Tg(i){let e,t,n;return t=new Sr({props:{isMobile:i[3],currentQuality:i[4]}}),{c(){e=T("span"),D(t.$$.fragment),f(e,"class","settings-icon-wrapper svelte-d9t49t")},m(o,r){C(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&&k(e),B(t)}}}function Ig(i){let e,t,n;function o(l){i[9](l)}let r={className:i[1]?"opened":"",testId:"btn-settings",click:i[8],ariaLabel:i[2],ariaExpanded:i[1],$$slots:{default:[Tg]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new _t({props:r}),pe.push(()=>He(e,"ref",o)),{c(){D(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],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function Eg(i,e,t){let n,o,r,{ref:l=void 0}=e,a=it(),s=a.state.currentQuality$;z(i,s,S=>t(4,r=S));let u=a.ui.settingsMenuVisible;z(i,u,S=>t(1,n=S));let c=a.actions.internal.toggleSettingsMenu,m=a.ui.isMobile;z(i,m,S=>t(3,o=S));let h;function w(S){let y=nl(S);c(y)}function b(S){l=S,t(0,l)}return i.$$set=S=>{"ref"in S&&t(0,l=S.ref)},i.$$.update=()=>{if(i.$$.dirty&2)e:t(2,h=n?Q("tooltip_settings_on"):Q("tooltip_settings_off"))},[l,n,h,o,r,s,u,m,w,b]}var Aa=class extends K{constructor(e){super(),G(this,e,Eg,Ig,q,{ref:0},Pg)}},Ll=Aa;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:"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=oe(a,l[s]);return{c(){e=V("svg"),r&&r.c(),t=V("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"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(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&&k(e),r&&r.d(s)}}}function Vg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var La=class extends K{constructor(e){super(),G(this,e,Vg,Mg,q,{})}},vd=La;function Ag(i){let e,t;return e=new Pr({}),{c(){D(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){B(e,n)}}}function Lg(i){let e,t;return e=new vd({}),{c(){D(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){B(e,n)}}}function Bg(i){let e,t,n,o,r=[Lg,Ag],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=lt()},m(s,u){l[e].m(s,u),C(s,n,u),o=!0},p(s,u){let c=e;e=a(s,u),e!==c&&(fe(),_(l[c],1,1,()=>{l[c]=null}),ce(),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&&k(n),l[e].d(s)}}}function Rg(i){let e,t;return e=new _t({props:{testId:"btn-Subtitles",ariaLabel:i[2],click:i[1],ariaKeyShortCut:Yn.KeyC,$$slots:{default:[Bg]},$$scope:{ctx:i}}}),{c(){D(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){B(e,n)}}}function Dg(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?Q("tooltip_subtitles_on"):Q("tooltip_subtitles_off"))},[n,o,r]}var Ba=class extends K{constructor(e){super(),G(this,e,Dg,Rg,q,{isSubtitlesEnabled:0,click:1})}},yd=Ba;function Ng(i){Se(i,"svelte-19o2urr",".time.svelte-19o2urr{display:flex;align-items:center;font-weight:500;font-variant-numeric:tabular-nums;padding:12px 6px}.time.mobile.svelte-19o2urr{padding:0 0 0 8px}.current.svelte-19o2urr{position:relative}.duration.svelte-19o2urr{opacity:0.7}.duration.svelte-19o2urr:before{content:' / ';white-space:pre}")}function wd(i){let e,t;return{c(){e=T("span"),t=De(i[3]),f(e,"class","duration svelte-19o2urr")},m(n,o){C(n,e,o),p(e,t)},p(n,o){o&8&&Ye(t,n[3])},d(n){n&&k(e)}}}function Og(i){let e,t,n,o,r=i[2]&&wd(i);return{c(){e=T("div"),t=T("span"),n=De(i[4]),o=F(),r&&r.c(),f(t,"class","current svelte-19o2urr"),f(e,"class","time svelte-19o2urr"),H(e,"mobile",i[1])},m(l,a){C(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=wd(l),r.c(),r.m(e,null)):r&&(r.d(1),r=null),a&2&&H(e,"mobile",l[1])},i:de,o:de,d(l){l&&k(e),r&&r.d(),i[7](null)}}}function Fg(i,e,t){let{isMobile:n=!1}=e,{duration:o}=e,{position:r}=e,{showDuration:l=!0}=e,{ref:a}=e,s,u;function 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=En(o));if(i.$$.dirty&64)e:t(4,u=En(r))},[a,n,l,s,u,o,r,c]}var Ra=class extends K{constructor(e){super(),G(this,e,Fg,Og,q,{isMobile:1,duration:5,position:6,showDuration:2,ref:0},Ng)}},Ir=Ra;var no=require("@vkontakte/videoplayer-shared");function Hg(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 zg(i){let e,t,n,o,r,l;return{c(){e=V("svg"),t=V("g"),n=V("path"),o=V("path"),r=V("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){C(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:de,o:de,d(a){a&&k(e)}}}function qg(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 Da=class extends K{constructor(e){super(),G(this,e,qg,zg,q,{volume:1,muted:2},Hg)}},Fo=Da;var Dn=require("@vkontakte/videoplayer-shared");var Pd=require("@vkontakte/videoplayer-shared");var Sd=require("@vkontakte/videoplayer-shared");function Ug(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){C(r,e,l),o&&o.m(e,null),i[5](e),t=!0},p(r,[l]){o&&o.p&&(!t||l&8)&&Ve(o,n,r,r[3],t?Me(n,r[3],l,null):Ae(r[3]),null)},i(r){t||(d(o,r),t=!0)},o(r){_(o,r),t=!1},d(r){r&&k(e),o&&o.d(r),i[5](null)}}}function Kg(i,e,t){let n,{$$slots:o={},$$scope:r}=e,a=it().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)};Rt(()=>(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 Na=class extends K{constructor(e){super(),G(this,e,Kg,Ug,q,{})}},kd=Na;function Wg(i){Se(i,"svelte-tny135",'.tooltip-wrapper.svelte-tny135{display:flex;flex-direction:column;min-width:0}.full-width.svelte-tny135{width:100%}.tooltip.svelte-tny135{position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;left:0}.content.svelte-tny135{display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8)}.tooltip.active.svelte-tny135{opacity:1;visibility:visible}.tooltip-pointer.svelte-tny135{position:absolute;bottom:0;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0}.bottom-placement-pointer.svelte-tny135{top:0;bottom:auto}')}function Cd(i){let e,t;return e=new kd({props:{$$slots:{default:[Gg]},$$scope:{ctx:i}}}),{c(){D(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){B(e,n)}}}function Gg(i){let e,t,n,o,r,l,a;return{c(){e=T("div"),t=T("div"),n=De(i[1]),o=F(),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){C(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&&k(e),i[20](null)}}}function jg(i){let e,t,n,o,r,l,a=i[18].default,s=Ee(a,i,i[21],null),u=i[1]&&Cd(i);return{c(){e=T("div"),s&&s.c(),t=F(),u&&u.c(),n=lt(),f(e,"class","tooltip-wrapper svelte-tny135"),H(e,"full-width",i[2])},m(c,m){C(c,e,m),s&&s.m(e,null),i[19](e),C(c,t,m),u&&u.m(c,m),C(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)&&Ve(s,a,c,c[21],o?Me(a,c[21],m,null):Ae(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=Cd(c),u.c(),d(u,1),u.m(n.parentNode,n)):u&&(fe(),_(u,1,1,()=>{u=null}),ce())},i(c){o||(d(s,c),d(u),o=!0)},o(c){_(s,c),_(u),o=!1},d(c){c&&(k(e),k(t),k(n)),s&&s.d(c),i[19](null),u&&u.d(c),r=!1,nt(l)}}}var Bl=5;function Qg(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=Sd.noop}=e,b=h==="top",S,y,P,v=0,g=b?Bl:-Bl,I=0,N=0,W=zt(),U=it(),le=U.ui.playerSize;z(i,le,ee=>t(24,o=ee));let ae=U.ui.overlayContainer$;z(i,ae,ee=>t(23,n=ee));let O=U.getLogger().createComponentLog("Tooltip component"),R=()=>{if(!n||!y||!S)return;let ee=n.getBoundingClientRect(),ke=S.getBoundingClientRect(),Ge=ke.width,Ue=y.clientWidth,xe=o.width,je=(Ge-Ue)/2,ve=ke.left+u-ee.left,X=ve+je,be=ke.top+c-ee.top,Oe=Ue/2-Bl,$e=X<8,et=X+Ue>xe-8;$e&&(X=8,Oe=ve+ke.width/2-2.5*Bl),et&&(X=xe-8-Ue,Oe=ke.left-ee.left+ke.width/2-X-Bl),t(6,I=X),t(7,N=be),t(5,v=Oe)},x=()=>{try{if(!n||!S)return;R(),t(0,s=!0)}catch(ee){O({message:String(ee)})}},Y=()=>{t(0,s=!1)},J=()=>{y&&(P||(P=window.setTimeout(x,W.controls.hideTimeoutTooltips)),s&&x())},E=()=>{Y(),window.clearTimeout(P),P=void 0};Rt(R),Un(()=>window.clearTimeout(P));function te(ee){pe[ee?"unshift":"push"](()=>{S=ee,t(3,S)})}function M(ee){pe[ee?"unshift":"push"](()=>{y=ee,t(4,y)})}return i.$$set=ee=>{"content"in ee&&t(1,a=ee.content),"active"in ee&&t(0,s=ee.active),"translateX"in ee&&t(14,u=ee.translateX),"translateY"in ee&&t(15,c=ee.translateY),"isFullWidthWrapper"in ee&&t(2,m=ee.isFullWidthWrapper),"placement"in ee&&t(16,h=ee.placement),"onVisibilityChange"in ee&&t(17,w=ee.onVisibilityChange),"$$scope"in ee&&t(21,l=ee.$$scope)},i.$$.update=()=>{if(i.$$.dirty&131073)e:w(s)},[s,a,m,S,y,v,I,N,b,g,le,ae,J,E,u,c,h,w,r,te,M,l]}var Oa=class extends K{constructor(e){super(),G(this,e,Qg,jg,q,{content:1,active:0,translateX:14,translateY:15,isFullWidthWrapper:2,placement:16,onVisibilityChange:17},Wg)}},Er=Oa;function Yg(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 Zg(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)&&Ve(n,t,o,o[24],e?Me(t,o[24],r,null):Ae(o[24]),null)},i(o){e||(d(n,o),e=!0)},o(o){_(n,o),e=!1},d(o){n&&n.d(o)}}}function Xg(i){let e,t;return e=new Er({props:{content:i[12],translateX:i[10],translateY:i[11],isFullWidthWrapper:i[4],active:i[6],placement:i[7],onVisibilityChange:i[9],$$slots:{default:[Jg]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&4096&&(r.content=n[12]),o&1024&&(r.translateX=n[10]),o&2048&&(r.translateY=n[11]),o&16&&(r.isFullWidthWrapper=n[4]),o&64&&(r.active=n[6]),o&128&&(r.placement=n[7]),o&512&&(r.onVisibilityChange=n[9]),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){B(e,n)}}}function Jg(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)&&Ve(n,t,o,o[24],e?Me(t,o[24],r,null):Ae(o[24]),null)},i(o){e||(d(n,o),e=!0)},o(o){_(n,o),e=!1},d(o){n&&n.d(o)}}}function xg(i){let e,t,n,o,r,l,a,s,u,c=[Xg,Zg],m=[];function h(w,b){return w[3]&&w[5]&&!w[13]?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[8]||null),Wn(()=>i[23].call(e))},m(w,b){C(w,e,b),m[t].m(e,null),i[22](e),l=jo(e,i[23].bind(e)),a=!0,s||(u=[me(e,"pointerdown",st(Bt(i[20]))),me(e,"click",st(Bt(i[21])))],s=!0)},p(w,[b]){let S=t;t=h(w,b),t===S?m[t].p(w,b):(fe(),_(m[S],1,1,()=>{m[S]=null}),ce(),n=m[t],n?n.p(w,b):(n=m[t]=c[t](w),n.c()),d(n,1),n.m(e,null)),(!a||b&4&&o!==(o="btn-container "+w[2]+" svelte-p9r045"))&&f(e,"class",o),(!a||b&256&&r!==(r=w[8]||null))&&f(e,"aria-hidden",r)},i(w){a||(d(n),a=!0)},o(w){_(n),a=!1},d(w){w&&k(e),m[t].d(),i[22](null),l(),s=!1,nt(u)}}}function $g(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:b=!1}=e,{tooltipPlacement:S="top"}=e,{disabledTooltipContent:y=Q("tooltip_button_disabled")}=e,{isAriaHidden:P=!1}=e,{onTooltipVisibilityChange:v=Pd.noop}=e,{initialTranslateXPx:g=0}=e,{initialTranslateYPx:I=-18}=e,N=it(),W=N.ui.isMobile;z(i,W,Y=>t(13,o=Y));let U=N.state.graphIsOpened$;z(i,U,Y=>t(18,n=Y));let le;function ae(Y){In.call(this,i,Y)}function O(Y){In.call(this,i,Y)}function R(Y){pe[Y?"unshift":"push"](()=>{c=Y,t(0,c)})}function x(){m=this.clientWidth,t(1,m)}return i.$$set=Y=>{"className"in Y&&t(2,a=Y.className),"disabled"in Y&&t(16,s=Y.disabled),"hasTooltip"in Y&&t(3,u=Y.hasTooltip),"ref"in Y&&t(0,c=Y.ref),"width"in Y&&t(1,m=Y.width),"isFullWidthTooltip"in Y&&t(4,h=Y.isFullWidthTooltip),"tooltipContent"in Y&&t(5,w=Y.tooltipContent),"tooltipActive"in Y&&t(6,b=Y.tooltipActive),"tooltipPlacement"in Y&&t(7,S=Y.tooltipPlacement),"disabledTooltipContent"in Y&&t(17,y=Y.disabledTooltipContent),"isAriaHidden"in Y&&t(8,P=Y.isAriaHidden),"onTooltipVisibilityChange"in Y&&t(9,v=Y.onTooltipVisibilityChange),"initialTranslateXPx"in Y&&t(10,g=Y.initialTranslateXPx),"initialTranslateYPx"in Y&&t(11,I=Y.initialTranslateYPx),"$$scope"in Y&&t(24,l=Y.$$scope)},i.$$.update=()=>{if(i.$$.dirty&458784)e:s?t(12,le=n?Q("tooltip_disabled_when_graph_on"):y):t(12,le=w)},[c,m,a,u,h,w,b,S,P,v,g,I,le,o,W,U,s,y,n,r,ae,O,R,x,l]}var Fa=class extends K{constructor(e){super(),G(this,e,$g,xg,q,{className:2,disabled:16,hasTooltip:3,ref:0,width:1,isFullWidthTooltip:4,tooltipContent:5,tooltipActive:6,tooltipPlacement:7,disabledTooltipContent:17,isAriaHidden:8,onTooltipVisibilityChange:9,initialTranslateXPx:10,initialTranslateYPx:11},Yg)}},Ot=Fa;function eb(i){let e,t,n,o,r,l;return{c(){e=V("svg"),t=V("rect"),o=V("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){C(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:de,o:de,d(a){a&&k(e)}}}function tb(i,e,t){let{completed:n}=e;return i.$$set=o=>{"completed"in o&&t(0,n=o.completed)},[n]}var Ha=class extends K{constructor(e){super(),G(this,e,tb,eb,q,{completed:0})}},Mr=Ha;function ib(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 nb(i){let e,t,n,o,r;return t=new Mr({props:{completed:!!i[0].completed}}),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","interactive-episode-icon svelte-bklhpe"),f(e,"style",n=`left: ${i[0].from+i[0].width/2}%`),Wn(()=>i[3].call(e)),H(e,"disabled",i[1])},m(l,a){C(l,e,a),L(t,e,null),o=jo(e,i[3].bind(e)),r=!0},p(l,a){let s={};a&1&&(s.completed=!!l[0].completed),t.$set(s),(!r||a&1&&n!==(n=`left: ${l[0].from+l[0].width/2}%`))&&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&&k(e),B(t),o()}}}function ob(i){let e,t;return e=new Ot({props:{tooltipContent:Q(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:[nb]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.tooltipContent=Q(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){B(e,n)}}}function lb(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 za=class extends K{constructor(e){super(),G(this,e,lb,ob,q,{videoEpisode:0,disabled:1},ib)}},Td=za;function rb(i){Se(i,"svelte-1h9p3m2",".video-episodes-wrap.svelte-1h9p3m2{position:absolute;width:100%;height:100%}.video-episode.svelte-1h9p3m2{position:absolute;height:calc(3 * var(--slider-height));box-sizing:border-box;margin-top:-5px;padding:var(--slider-height) var(--slider-video-episode-gap);transition:transform 0.2s}.video-episode.svelte-1h9p3m2:where(:hover, :active){transform:scaleY(1.5)}.video-episode-inner.svelte-1h9p3m2,.video-episode-loaded.svelte-1h9p3m2,.video-episode-filled.svelte-1h9p3m2{position:absolute;height:var(--slider-height);border-radius:var(--slider-radius)}.video-episode-inner.svelte-1h9p3m2{position:absolute;overflow:hidden;width:calc(100% - 2 * var(--slider-video-episode-gap));background:var(--slider-bg)}.video-episode-loaded.svelte-1h9p3m2{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s}.video-episode-filled.svelte-1h9p3m2{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg)}")}function Id(i,e,t){let n=i.slice();return n[2]=e[t],n}function Ed(i){let e,t,n,o,r,l,a,s,u;return{c(){e=T("div"),t=T("div"),n=T("div"),r=F(),l=T("div"),s=F(),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}%)`),H(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}%`),H(e,"mobile",i[1])},m(c,m){C(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&&H(l,"mobile",c[1]),m&1&&u!==(u=`left: ${c[2].from}%; width: ${c[2].width}%`)&&f(e,"style",u),m&2&&H(e,"mobile",c[1])},d(c){c&&k(e)}}}function sb(i){let e,t=Tt(i[0]),n=[];for(let o=0;o<t.length;o+=1)n[o]=Ed(Id(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){C(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=Tt(o[0]);let l;for(l=0;l<t.length;l+=1){let a=Id(o,t,l);n[l]?n[l].p(a,r):(n[l]=Ed(a),n[l].c(),n[l].m(e,null))}for(;l<n.length;l+=1)n[l].d(1);n.length=t.length}},i:de,o:de,d(o){o&&k(e),Ui(n,o)}}}function ab(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 qa=class extends K{constructor(e){super(),G(this,e,ab,sb,q,{videoEpisodes:0,isMobile:1},rb)}},Md=qa;function ub(i){Se(i,"svelte-1golz1y",".interactive-icons.svelte-1golz1y.svelte-1golz1y{position:absolute;width:calc(100% - 20px);top:-28px}.interactive-icons.mobile.svelte-1golz1y.svelte-1golz1y{top:-10px}.slider.svelte-1golz1y.svelte-1golz1y{position:relative;height:var(--slider-height);border-radius:var(--slider-radius);cursor:pointer;transition:visibility 0.2s, opacity 0.2s;will-change:opacity, transform;width:100%;touch-action:none;-webkit-tap-highlight-color:transparent}.no-handle.svelte-1golz1y.svelte-1golz1y{cursor:default}.slider.svelte-1golz1y.svelte-1golz1y:before{content:'';position:absolute;left:0;right:0;top:calc(-1 * (var(--controls-height) / 2 - var(--slider-height)) / 2);height:calc(var(--controls-height) / 2)}.bars.svelte-1golz1y.svelte-1golz1y{position:absolute;width:100%;height:100%;border-radius:var(--slider-radius);overflow:hidden;background:var(--slider-bg)}.loaded.svelte-1golz1y.svelte-1golz1y{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s}.filled.svelte-1golz1y.svelte-1golz1y{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg)}.slider.square.svelte-1golz1y.svelte-1golz1y,.slider.square.svelte-1golz1y>.bars.svelte-1golz1y,.slider.square.svelte-1golz1y .loaded.svelte-1golz1y,.slider.square.svelte-1golz1y .filled.svelte-1golz1y{border-radius:unset}.filled.active-live.svelte-1golz1y.svelte-1golz1y{background-color:var(--slider-filled-active-live-bg)}.filled.ads.svelte-1golz1y.svelte-1golz1y{background-color:var(--slider-filled-ads)}.handleWrap.svelte-1golz1y.svelte-1golz1y{position:absolute;left:-100%;width:100%}.handle.svelte-1golz1y.svelte-1golz1y{position:absolute;width:var(--slider-handle-size);height:var(--slider-handle-size);right:calc(-1 * var(--slider-handle-size) / 2);top:calc((var(--slider-height) - var(--slider-handle-size)) / 2);border-radius:50%;background-color:var(--slider-filled-bg);visibility:hidden;opacity:0;transform:scale(0);transition:opacity 0.2s, transform 0.2s, visibility 0.2s;will-change:opacity, transform}.handle.active-live.svelte-1golz1y.svelte-1golz1y{background-color:var(--slider-filled-active-live-bg)}.slider.svelte-1golz1y:hover .handle.svelte-1golz1y,.slider-dragging.svelte-1golz1y .handle.svelte-1golz1y{visibility:visible;opacity:1;transform:scale(1)}.slider-dragging.svelte-1golz1y .handle.svelte-1golz1y{transform:scale(1.3)}.slider-vertical.svelte-1golz1y.svelte-1golz1y{position:absolute;left:-8px;top:-18px;transform-origin:0 0;transform:rotate(-90deg)}.slider.disabled.svelte-1golz1y.svelte-1golz1y{cursor:default;pointer-events:none;opacity:0.4}")}function Vd(i,e,t){let n=i.slice();return n[48]=e[t],n}function Ad(i){let e,t,n=Tt(i[21]),o=[];for(let l=0;l<n.length;l+=1)o[l]=Bd(Vd(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"),H(e,"mobile",i[5]),H(e,"hidden",i[5]&&!i[20])},m(l,a){C(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=Tt(l[21]);let s;for(s=0;s<n.length;s+=1){let u=Vd(l,n,s);o[s]?(o[s].p(u,a),d(o[s],1)):(o[s]=Bd(u),o[s].c(),d(o[s],1),o[s].m(e,null))}for(fe(),s=n.length;s<o.length;s+=1)r(s);ce()}(!t||a[0]&32)&&H(e,"mobile",l[5]),(!t||a[0]&1048608)&&H(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&&k(e),Ui(o,l)}}}function Ld(i){let e,t;return e=new Td({props:{videoEpisode:i[48],disabled:i[9]}}),{c(){D(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){B(e,n)}}}function Bd(i){let e,t,n=i[48].interactive&&Ld(i);return{c(){n&&n.c(),e=lt()},m(o,r){n&&n.m(o,r),C(o,e,r),t=!0},p(o,r){o[48].interactive?n?(n.p(o,r),r[0]&2097152&&d(n,1)):(n=Ld(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(fe(),_(n,1,1,()=>{n=null}),ce())},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&k(e),n&&n.d(o)}}}function fb(i){let e,t,n,o,r,l;return{c(){e=T("div"),t=T("div"),o=F(),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}%);`),H(r,"active-live",i[4]),H(r,"ads",i[6]),f(e,"class","bars svelte-1golz1y")},m(a,s){C(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&&H(r,"active-live",a[4]),s[0]&64&&H(r,"ads",a[6])},i:de,o:de,d(a){a&&k(e)}}}function cb(i){let e,t;return e=new Md({props:{videoEpisodes:i[21],isMobile:i[5]}}),{c(){D(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){B(e,n)}}}function db(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,b=i[8]&&Ad(i),S=[cb,fb],y=[];function P(v,g){return v[21].length?0:1}return n=P(i,[-1,-1]),o=y[n]=S[n](i),{c(){var v;b&&b.c(),e=F(),t=T("div"),o.c(),r=F(),l=T("div"),a=T("div"),f(a,"class","handle svelte-1golz1y"),H(a,"active-live",i[4]),f(l,"class","handleWrap svelte-1golz1y"),f(l,"style",s=`transform: translateX(${i[13]*100}%);`),H(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),H(t,"disabled",i[9]),H(t,"slider-dragging",i[20]),H(t,"hidden",i[2]),H(t,"slider-vertical",i[3]),H(t,"no-handle",i[10]),H(t,"square",i[7])},m(v,g){b&&b.m(v,g),C(v,e,g),C(v,t,g),y[n].m(t,null),p(t,r),p(t,l),p(l,a),i[42](t),m=!0,h||(w=[me(t,"pointerdown",Bt(i[22])),me(t,"pointermove",Bt(i[23])),me(t,"pointerup",Bt(i[24])),me(t,"pointerenter",Bt(i[25])),me(t,"pointerleave",Bt(i[26])),me(t,"click",st(Dn.noop)),me(t,"wheel",i[27])],h=!0)},p(v,g){var N;v[8]?b?(b.p(v,g),g[0]&256&&d(b,1)):(b=Ad(v),b.c(),d(b,1),b.m(e.parentNode,e)):b&&(fe(),_(b,1,1,()=>{b=null}),ce());let I=n;n=P(v,g),n===I?y[n].p(v,g):(fe(),_(y[I],1,1,()=>{y[I]=null}),ce(),o=y[n],o?o.p(v,g):(o=y[n]=S[n](v),o.c()),d(o,1),o.m(t,r)),(!m||g[0]&16)&&H(a,"active-live",v[4]),(!m||g[0]&8192&&s!==(s=`transform: translateX(${v[13]*100}%);`))&&f(l,"style",s),(!m||g[0]&1024)&&H(l,"hidden",v[10]),(!m||g[0]&1&&u!==(u="slider "+v[0]+" svelte-1golz1y"))&&f(t,"class",u),(!m||g[0]&16384)&&f(t,"aria-label",v[14]),(!m||g[0]&32768)&&f(t,"aria-valuemin",v[15]),(!m||g[0]&65536)&&f(t,"aria-valuemax",v[16]),(!m||g[0]&131072)&&f(t,"aria-valuenow",v[17]),(!m||g[0]&262144)&&f(t,"aria-valuetext",v[18]),(!m||g[0]&2&&c!==(c=(N=v[1])!=null?N:null))&&f(t,"data-testid",c),(!m||g[0]&513)&&H(t,"disabled",v[9]),(!m||g[0]&1048577)&&H(t,"slider-dragging",v[20]),(!m||g[0]&5)&&H(t,"hidden",v[2]),(!m||g[0]&9)&&H(t,"slider-vertical",v[3]),(!m||g[0]&1025)&&H(t,"no-handle",v[10]),(!m||g[0]&129)&&H(t,"square",v[7])},i(v){m||(d(b),d(o),m=!0)},o(v){_(b),_(o),m=!1},d(v){v&&(k(e),k(t)),b&&b.d(v),y[n].d(),i[42](null),h=!1,nt(w)}}}function mb(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:w=[]}=e,{withWheelHandler:b=!1}=e,{isInteractive:S=!1}=e,{disabled:y=!1}=e,{hideHandel:P=!1}=e,v,g,{onPointerDown:I=Dn.noop}=e,{onHandleMove:N=Dn.noop}=e,{onPointerUp:W=Dn.noop}=e,{onPointerEnter:U=Dn.noop}=e,{onPointerMove:le=Dn.noop}=e,{onPointerLeave:ae=Dn.noop}=e,{onWheelUp:O=Dn.noop}=e,{onWheelDown:R=Dn.noop}=e,{onWheelLeft:x=Dn.noop}=e,{onWheelRight:Y=Dn.noop}=e,{loadedProgress:J=0}=e,{filledProgress:E=0}=e,{handleProgress:te=0}=e,{ariaLabel:M=""}=e,{ariaValueMin:ee=void 0}=e,{ariaValueMax:ke=void 0}=e,{ariaValueNow:Ge=void 0}=e,{ariaValueText:Ue=""}=e,xe=zt(),je=!1,ve;function X(Z){if(je)return;t(20,je=!0),g=v.getBoundingClientRect();let Ce=Le(Z.clientX,Z.clientY);I(Ce),v.setPointerCapture(Z.pointerId)}function be(Z){let Ce=Le(Z.clientX,Z.clientY),ue=Ke(Z.clientX);le(Ce,ue,g.width),je&&N(Ce)}function Oe(Z){if(!je)return;t(20,je=!1);let Ce=Le(Z.clientX,Z.clientY);W(Ce)}function $e(Z){g=v.getBoundingClientRect();let Ce=Le(Z.clientX,Z.clientY),ue=Ke(Z.clientX);U(Ce,ue,g.width)}function et(){ae()}function ye(Z){b&&(Z.preventDefault(),Z.deltaY<0?O():Z.deltaY>0?R():Z.deltaX>0?Y():x())}function Le(Z,Ce){return s?Math.max(0,Math.min(1,(g.height-(Ce-g.top))/g.height)):Math.min(Math.max(Z-g.x,0),g.width)/g.width}function Ke(Z){return Math.min(Math.max(Z-g.x,0),g.width)}function Xe(Z,Ce){let ue=xe.features.episodesClustering&&!S?xe.episodeMinWidthPc:0,Ie=[],Je=0,at=0,ut=0;for(let gt=1;gt<w.length;gt++)at=w[gt].time/ve*100,at-Je>ue&&(Ie.push({from:Je,width:Math.max(0,at-Je),loadedWidth:Math.max(0,Math.min(at,Z)-Je),filledWidth:Math.max(0,Math.min(at,Ce)-Je),interactive:w[gt-1].interactive,completed:w[gt-1].completed}),Je=w[gt].time/ve*100,ut++);let ft={from:Je,width:Math.max(0,100-Je),loadedWidth:Math.max(0,Math.min(Z,100)-Je),filledWidth:Math.max(0,Math.min(Ce,100)-Je),interactive:w[ut].interactive,completed:w[ut].completed};100-Je<ue?(ut-=1,Ie[ut].width+=100-Je,Ie[ut].loadedWidth+=Math.max(0,Math.min(Z,100)-Je),Ie[ut].filledWidth+=Math.max(0,Math.min(Ce,100)-Je)):Ie[ut]=ft;let ht=w[0].time;if(ht!==0){let gt=ht/ve*100;Ie.unshift({from:0,width:gt,loadedWidth:Math.min(gt,Z),filledWidth:Math.min(gt,Ce)})}return Ie}function Te(Z){pe[Z?"unshift":"push"](()=>{v=Z,t(19,v)})}return i.$$set=Z=>{"className"in Z&&t(0,r=Z.className),"testId"in Z&&t(1,l=Z.testId),"isHidden"in Z&&t(2,a=Z.isHidden),"isVertical"in Z&&t(3,s=Z.isVertical),"isActiveLive"in Z&&t(4,u=Z.isActiveLive),"isMobile"in Z&&t(5,c=Z.isMobile),"isAds"in Z&&t(6,m=Z.isAds),"squareBorders"in Z&&t(7,h=Z.squareBorders),"videoEpisodes"in Z&&t(28,w=Z.videoEpisodes),"withWheelHandler"in Z&&t(29,b=Z.withWheelHandler),"isInteractive"in Z&&t(8,S=Z.isInteractive),"disabled"in Z&&t(9,y=Z.disabled),"hideHandel"in Z&&t(10,P=Z.hideHandel),"onPointerDown"in Z&&t(30,I=Z.onPointerDown),"onHandleMove"in Z&&t(31,N=Z.onHandleMove),"onPointerUp"in Z&&t(32,W=Z.onPointerUp),"onPointerEnter"in Z&&t(33,U=Z.onPointerEnter),"onPointerMove"in Z&&t(34,le=Z.onPointerMove),"onPointerLeave"in Z&&t(35,ae=Z.onPointerLeave),"onWheelUp"in Z&&t(36,O=Z.onWheelUp),"onWheelDown"in Z&&t(37,R=Z.onWheelDown),"onWheelLeft"in Z&&t(38,x=Z.onWheelLeft),"onWheelRight"in Z&&t(39,Y=Z.onWheelRight),"loadedProgress"in Z&&t(11,J=Z.loadedProgress),"filledProgress"in Z&&t(12,E=Z.filledProgress),"handleProgress"in Z&&t(13,te=Z.handleProgress),"ariaLabel"in Z&&t(14,M=Z.ariaLabel),"ariaValueMin"in Z&&t(15,ee=Z.ariaValueMin),"ariaValueMax"in Z&&t(16,ke=Z.ariaValueMax),"ariaValueNow"in Z&&t(17,Ge=Z.ariaValueNow),"ariaValueText"in Z&&t(18,Ue=Z.ariaValueText)},i.$$.update=()=>{var Z;if(i.$$.dirty[0]&65536)e:t(40,ve=ke!=null?ke:0);if(i.$$.dirty[0]&268435456|i.$$.dirty[1]&512)e:t(41,n=((Z=w[w.length-1])==null?void 0:Z.time)<ve);if(i.$$.dirty[0]&268441600|i.$$.dirty[1]&1536)e:t(21,o=w.length&&n&&ve?Xe(J*100,E*100):[])},[r,l,a,s,u,c,m,h,S,y,P,J,E,te,M,ee,ke,Ge,Ue,v,je,o,X,be,Oe,$e,et,ye,w,b,I,N,W,U,le,ae,O,R,x,Y,ve,n,Te]}var Ua=class extends K{constructor(e){super(),G(this,e,mb,db,q,{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},ub,[-1,-1])}},al=Ua;var Mn=(i,e)=>Mo[i]>=Mo[e],Rd=(i,e)=>Mo[i]<Mo[e],Vr=(i,e)=>Mo[i]<=Mo[e],Dd=i=>i>699?"xl":i>599?"l":i>509?"m":i>320?"s":"xs";function pb(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 _b(i){let e,t;return e=new Fo({props:{volume:i[3],muted:i[1]}}),{c(){D(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){B(e,n)}}}function hb(i){let e,t;return e=new _t({props:{className:"btn-full-opacity",disabled:i[9],testId:i[2]?"btn-volume-vertical":"btn-volume-horizontal",ariaLabel:i[7],click:i[0],ariaKeyShortCut:Yn.KeyM,$$slots:{default:[_b]},$$scope:{ctx:i}}}),{c(){D(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){B(e,n)}}}function Nd(i){let e,t,n;return t=new al({props:{className:i[2]?"volumeBar-slider-vertical":"",isHidden:i[2]&&!i[5],isVertical:i[2],withWheelHandler:!0,onWheelUp:i[15],onWheelDown:i[16],onPointerDown:i[14],onHandleMove:i[17],onPointerUp:i[18],onPointerEnter:i[2]?i[19]:no.noop,onPointerLeave:i[2]?i[20]:no.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"),D(t.$$.fragment),f(e,"class","volumeBar svelte-1l78lz9"),H(e,"volumeBar-vertical",i[2])},m(o,r){C(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]:no.noop),r[0]&4&&(l.onPointerLeave=o[2]?o[20]:no.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&&k(e),B(t)}}}function gb(i){let e,t,n,o,r,l;t=new Er({props:{content:i[6],translateY:-18,$$slots:{default:[hb]},$$scope:{ctx:i}}});let a=i[4]&&Nd(i);return{c(){e=T("div"),D(t.$$.fragment),n=F(),a&&a.c(),f(e,"class","volumeBar-container svelte-1l78lz9"),H(e,"vertical",i[2])},m(s,u){C(s,e,u),L(t,e,null),p(e,n),a&&a.m(e,null),o=!0,r||(l=[me(e,"mouseenter",function(){Vi(i[2]?i[21]:no.noop)&&(i[2]?i[21]:no.noop).apply(this,arguments)}),me(e,"mouseleave",function(){Vi(i[2]?i[22]:no.noop)&&(i[2]?i[22]:no.noop).apply(this,arguments)}),me(e,"wheel",Bt(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=Nd(i),a.c(),d(a,1),a.m(e,null)):a&&(fe(),_(a,1,1,()=>{a=null}),ce()),(!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&&k(e),B(t),a&&a.d(),r=!1,nt(l)}}}function bb(i,e,t){var je,ve;let n,o,r,l,{click:a}=e,s=it(),u=zt(),c=s.state.volume$;z(i,c,X=>t(3,n=X));let m=s.state.muted$;z(i,m,X=>t(25,l=X));let h=s.actions.internal.setVolume,w=s.ui.currentGridType$;z(i,w,X=>t(24,r=X));let b=(je=s.callbacks)==null?void 0:je.onAudioDoesNotExistHint,S=(ve=s.callbacks)==null?void 0:ve.onAudioDisabledHint,y=s.state.isAudioAvailable$;z(i,y,X=>t(4,o=X));let P=s.state.isAudioDisabled,v=!1,g,I,N,W,U,le,ae=1,O=!1,R=!1;function x(X){ae=n,h(X)}function Y(){vr(s,n,u.controls.volumeStepWheel)}function J(){yr(s,n,u.controls.volumeStepWheel)}function E(X){h(X)}function te(X){let be=X;h(be,be===0?ae:be)}function M(){O=!0}function ee(){O=!1,Ue()}function ke(){clearTimeout(g),t(5,v=!0)}function Ge(){Ue()}function Ue(){g=window.setTimeout(()=>{O||t(5,v=!1)},u.controls.volumeBarTimeout)}function xe(X){X.deltaY<0?Y():X.deltaY>0&&J()}return i.$$set=X=>{"click"in X&&t(0,a=X.click)},i.$$.update=()=>{if(i.$$.dirty[0]&33554448)e:t(1,W=!o||l);if(i.$$.dirty[0]&16777216)e:t(2,U=Vr(r,"s"));if(i.$$.dirty[0]&6)e:U?t(6,I=""):t(6,I=W?Q("tooltip_volume"):Q("tooltip_volume_muted")),t(7,N=W?Q("tooltip_volume"):Q("tooltip_volume_muted"));if(i.$$.dirty[0]&10)e:t(8,le=W?0:n);if(i.$$.dirty[0]&16)e:t(9,R=P&&!S||!o&&!b)},[a,W,U,n,o,v,I,N,le,R,c,m,w,y,x,Y,J,E,te,M,ee,ke,Ge,xe,r,l]}var Ka=class extends K{constructor(e){super(),G(this,e,bb,gb,q,{click:0},pb,[-1,-1])}},Od=Ka;var zd=require("@vkontakte/videoplayer-shared");function vb(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=oe(u,s[c]);return{c(){e=V("svg"),a&&a.c(),t=V("g"),n=V("path"),o=V("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"),ge(e,u)},m(c,m){C(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)&&Ve(a,l,c,c[1],r?Me(l,c[1],m,null):Ae(c[1]),null),ge(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&&k(e),a&&a.d(c)}}}function yb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Wa=class extends K{constructor(e){super(),G(this,e,yb,vb,q,{})}},Fd=Wa;function wb(i){Se(i,"svelte-17t966y",'svg[data-testid="close-fullscreen-icon"] ._enter,svg[data-testid="open-fullscreen-icon"] ._exit{visibility:hidden;opacity:0}')}function kb(i){let e,t;return e=new Fd({props:{"data-testid":i[0]?"close-fullscreen-icon":"open-fullscreen-icon"}}),{c(){D(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){B(e,n)}}}function Cb(i,e,t){let{isFullscreen:n=!1}=e;return i.$$set=o=>{"isFullscreen"in o&&t(0,n=o.isFullscreen)},[n]}var Ga=class extends K{constructor(e){super(),G(this,e,Cb,kb,q,{isFullscreen:0},wb)}},Hd=Ga;function Sb(i){let e,t;return e=new Hd({props:{isFullscreen:i[0]}}),{c(){D(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){B(e,n)}}}function Pb(i){let e,t;return e=new _t({props:{testId:"btn-fullscreen",ariaLabel:i[2],click:i[1],ariaKeyShortCut:Yn.KeyF,$$slots:{default:[Sb]},$$scope:{ctx:i}}}),{c(){D(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){B(e,n)}}}function Tb(i,e,t){let{isFullscreen:n=!1}=e,{click:o=zd.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?Q("tooltip_fullscreen_on"):Q("tooltip_fullscreen_off"))},[n,o,r]}var ja=class extends K{constructor(e){super(),G(this,e,Tb,Pb,q,{isFullscreen:0,click:1})}},Ar=ja;function Ib(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=oe(a,l[s]);return{c(){e=V("svg"),r&&r.c(),t=V("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"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(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&&k(e),r&&r.d(s)}}}function Eb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Qa=class extends K{constructor(e){super(),G(this,e,Eb,Ib,q,{})}},ul=Qa;function Mb(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=oe(a,l[s]);return{c(){e=V("svg"),r&&r.c(),t=V("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"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(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&&k(e),r&&r.d(s)}}}function Vb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Ya=class extends K{constructor(e){super(),G(this,e,Vb,Mb,q,{})}},Lr=Ya;var Ud=require("@vkontakte/videoplayer-shared");function Ab(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 qd(i){let e;return{c(){e=T("div"),f(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){C(t,e,n)},d(t){t&&k(e)}}}function Lb(i){let e,t,n,o,r=i[1]&&qd(i);var l=i[8];function a(s){return{}}return l&&(n=kn(l,a(i))),{c(){r&&r.c(),e=F(),t=T("div"),n&&D(n.$$.fragment),f(t,"class","svelte-1ot3duq"),H(t,"mobile",i[1])},m(s,u){r&&r.m(s,u),C(s,e,u),C(s,t,u),n&&L(n,t,null),o=!0},p(s,u){if(s[1]?r||(r=qd(s),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),u&256&&l!==(l=s[8])){if(n){fe();let c=n;_(c.$$.fragment,1,0,()=>{B(c,1)}),ce()}l?(n=kn(l,a(s)),D(n.$$.fragment),d(n.$$.fragment,1),L(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&&(k(e),k(t)),r&&r.d(s),n&&B(n)}}}function Bb(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:Yn.KeyK,$$slots:{default:[Lb]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new _t({props:r}),pe.push(()=>He(e,"ref",o)),{c(){D(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],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function Rb(i,e,t){let n,o,{fakeIsPlaying$:r}=Rn();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=Ud.noop}=e,{toggle:h}=r,w,b,S,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,b=o!==null);if(i.$$.dirty&5152)e:t(11,S=b?o:s);if(i.$$.dirty&2048)e:t(7,y=S?Q("tooltip_pause"):Q("tooltip_play"));if(i.$$.dirty&2048)e:t(8,n=S?Lr:ul)};e:t(6,w=h);return[l,a,u,c,m,b,w,y,n,r,s,S,o,P]}var Za=class extends K{constructor(e){super(),G(this,e,Rb,Bb,q,{ref:0,isMobile:1,isPlaying:10,disabled:2,className:3,click:4},Ab)}},Rl=Za;function Db(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=oe(a,l[s]);return{c(){e=V("svg"),r&&r.c(),t=V("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"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(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&&k(e),r&&r.d(s)}}}function Nb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Xa=class extends K{constructor(e){super(),G(this,e,Nb,Db,q,{})}},Kd=Xa;function Ob(i){let e,t;return e=new Kd({props:{style:i[1],"data-testid":i[0]?"prev-icon":"next-icon"}}),{c(){D(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){B(e,n)}}}function Fb(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 Ja=class extends K{constructor(e){super(),G(this,e,Fb,Ob,q,{isPrev:0,isMobile:2})}},Wd=Ja;function Hb(i){let e,t;return e=new Wd({props:{isMobile:i[1],isPrev:i[3]==="prev"}}),{c(){D(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){B(e,n)}}}function zb(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:[Hb]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new _t({props:r}),pe.push(()=>He(e,"ref",o)),{c(){D(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],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function qb(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"?Q("tooltip_previous"):Q("tooltip_next"))},[n,o,r,l,a,s,u]}var xa=class extends K{constructor(e){super(),G(this,e,qb,zb,q,{ref:0,isMobile:1,disabled:2,type:3,click:4})}},fl=xa;function Ub(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=oe(a,l[s]);return{c(){e=V("svg"),r&&r.c(),t=V("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"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(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&&k(e),r&&r.d(s)}}}function Kb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var $a=class extends K{constructor(e){super(),G(this,e,Kb,Ub,q,{})}},Gd=$a;function Wb(i){Se(i,"svelte-1bbobod",".mobile.svelte-1bbobod{transform:scale(1.1) translateY(-1px)}")}function jd(i){let e,t,n,o,r,l,a;return{c(){e=V("path"),t=V("path"),n=V("path"),o=V("path"),r=V("path"),l=V("path"),a=V("path"),f(e,"d","M30.7286 15.0483H33.2239L36.8885 5H35.0776L32.1402 13.2809H31.8551L29.0175 5H27.1781L30.7286 15.0483Z"),f(e,"fill","white"),f(t,"d","M46.2591 15.0483L41.6392 9.84599L45.9026 5H43.7923L40.2276 9.09059H39.814V5H38.103V15.0483H39.814V10.7439H40.2418L44.0062 15.0483H46.2591Z"),f(t,"fill","white"),f(n,"d","M56.0753 9.88875C56.9594 9.54668 57.5155 8.76277 57.5155 7.73656C57.5155 6.14023 56.1894 5 54.2502 5H50.329V15.0483H54.5354C56.4888 15.0483 57.8149 13.9081 57.8149 12.2405C57.8149 11.0717 57.159 10.2023 56.0753 9.88875ZM52.04 6.49656H54.2502C55.1628 6.49656 55.7902 7.05242 55.7902 7.87909C55.7902 8.69151 55.1628 9.24737 54.2502 9.24737H52.04V6.49656ZM54.5354 13.5518H52.04V10.7439H54.5354C55.4337 10.7439 56.0611 11.314 56.0611 12.1407C56.0611 12.9816 55.4337 13.5518 54.5354 13.5518Z"),f(n,"fill","white"),f(o,"d","M59.3767 15.0483H61.701L64.4672 9.54668H64.6954V15.0483H66.2638V7.63679H63.9396L61.1734 13.1384H60.9452V7.63679H59.3767V15.0483Z"),f(o,"fill","white"),f(r,"d","M67.3373 17.2575H68.9771V15.0483H74.3099V17.2575H75.9497V13.5518H74.6664V7.63679H69.2337L68.863 11.4281C68.7347 12.7678 68.3354 13.5518 67.5227 13.5518H67.3373V17.2575ZM69.8326 13.5518C70.2319 13.1669 70.403 12.5113 70.517 11.3996L70.7452 9.13335H73.0266V13.5518H69.8326Z"),f(r,"fill","white"),f(l,"d","M84.222 11.257C84.222 9.11909 82.625 7.49426 80.372 7.49426C78.1191 7.49426 76.5221 9.10484 76.5221 11.3425C76.5221 13.5803 78.1191 15.1908 80.372 15.1908C81.912 15.1908 83.3664 14.4639 83.9225 13.0529L82.3826 12.7963C82.0261 13.3237 81.3416 13.6943 80.4718 13.6943C79.217 13.6943 78.39 12.9246 78.2332 11.7844H84.1934C84.2077 11.6276 84.222 11.4566 84.222 11.257ZM80.372 8.91955C81.3987 8.91955 82.1687 9.57519 82.4396 10.5016H78.333C78.6039 9.54668 79.3739 8.91955 80.372 8.91955Z"),f(l,"fill","white"),f(a,"d","M89.0359 15.1908C91.3602 15.1908 92.9999 13.5945 92.9999 11.3425C92.9999 9.09059 91.3602 7.49426 89.0359 7.49426C86.7117 7.49426 85.0719 9.09059 85.0719 11.3425C85.0719 13.5945 86.7117 15.1908 89.0359 15.1908ZM89.0359 13.6943C87.6956 13.6943 86.783 12.7393 86.783 11.3425C86.783 9.94576 87.6956 8.99082 89.0359 8.99082C90.3763 8.99082 91.2889 9.94576 91.2889 11.3425C91.2889 12.7393 90.3763 13.6943 89.0359 13.6943Z"),f(a,"fill","white")},m(s,u){C(s,e,u),C(s,t,u),C(s,n,u),C(s,o,u),C(s,r,u),C(s,l,u),C(s,a,u)},d(s){s&&(k(e),k(t),k(n),k(o),k(r),k(l),k(a))}}}function Gb(i){let e,t,n,o=!i[0]&&jd(i);return{c(){e=V("svg"),t=V("path"),o&&o.c(),f(t,"d","M19.0283 1.47947C17.5482 1.47862e-05 15.3189 -2.59106e-06 10.8969 -1.8179e-06L10.1111 -1.68051e-06C5.68913 -9.0734e-07 3.47814 1.72463e-05 1.97977 1.47947C0.499685 2.95892 0.499757 5.18723 0.499758 9.60732L0.499758 10.3927C0.499758 14.8128 0.499687 17.0228 1.97978 18.5205C3.45987 20 5.68914 20 10.1111 20L10.8969 20C15.3189 20 17.5299 20 19.0283 18.5205C20.5084 17.0411 20.5084 14.8128 20.5084 10.3927L20.5084 9.60732C20.5084 5.16896 20.5084 2.95892 19.0283 1.47947ZM8.06464 14.8128C6.69419 15.3242 5.21408 14.4658 4.93999 13.0046C4.73899 12.0183 4.64761 10.9954 4.64761 9.93605C4.64761 8.91322 4.73899 7.90867 4.93999 6.94064C5.21408 5.47945 6.69419 4.62102 8.06464 5.13244C9.91018 5.80823 11.5913 6.84928 13.0166 8.18261C14.0581 9.15064 14.0581 10.8128 13.0166 11.7808C11.573 13.0959 9.89191 14.137 8.06464 14.8128ZM19.9602 10.3744C19.9602 14.6484 19.9601 16.7854 18.6262 18.1005C17.5116 19.2146 15.8305 19.3972 12.7973 19.4155C13.9302 19.2328 14.7342 18.9041 15.3554 18.2648C16.6893 16.9132 16.6893 14.7397 16.6893 10.3744L16.6893 9.57075C16.6893 5.20546 16.6893 3.032 15.3554 1.6804C14.7342 1.04113 13.9302 0.712308 12.7973 0.52966C15.8305 0.566189 17.5116 0.748873 18.6079 1.84476C19.9418 3.1781 19.9419 5.31505 19.9419 9.57075L19.9419 10.3744L19.9602 10.3744ZM11.6826 9.68036C11.8653 9.84474 11.8653 10.137 11.6826 10.3013C10.4401 11.4338 8.99653 12.3105 7.40681 12.895C7.16926 12.9863 6.91344 12.8402 6.85863 12.5845C6.69417 11.7443 6.60283 10.8676 6.60283 9.97262C6.60282 9.09591 6.69417 8.23744 6.85862 7.39726C6.91344 7.14155 7.16926 6.9954 7.40681 7.08672C8.97826 7.67119 10.4401 8.54794 11.6826 9.68036Z"),f(t,"fill","white"),f(e,"width",i[2]),f(e,"height","20"),f(e,"viewBox",n="0 0 "+(i[2]+1)+" 20"),f(e,"fill","none"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"aria-hidden","true"),f(e,"data-testid",i[3]),f(e,"class","svelte-1bbobod"),H(e,"mobile",i[1])},m(r,l){C(r,e,l),p(e,t),o&&o.m(e,null)},p(r,[l]){r[0]?o&&(o.d(1),o=null):o||(o=jd(r),o.c(),o.m(e,null)),l&4&&f(e,"width",r[2]),l&4&&n!==(n="0 0 "+(r[2]+1)+" 20")&&f(e,"viewBox",n),l&8&&f(e,"data-testid",r[3]),l&2&&H(e,"mobile",r[1])},i:de,o:de,d(r){r&&k(e),o&&o.d()}}}function jb(i,e,t){let{short:n=!1}=e,{isMobile:o=!1}=e,r,l;return i.$$set=a=>{"short"in a&&t(0,n=a.short),"isMobile"in a&&t(1,o=a.isMobile)},i.$$.update=()=>{if(i.$$.dirty&1)e:t(2,r=n?20:93),t(3,l=n?"vk-video-logo-icon--short":"vk-video-logo-icon")},[n,o,r,l]}var eu=class extends K{constructor(e){super(),G(this,e,jb,Gb,q,{short:0,isMobile:1},Wb)}},Qd=eu;function Qb(i){let e,t,n,o,r,l,a,s,u,c,m,h,w;return{c(){e=V("svg"),t=V("g"),n=V("path"),o=V("path"),r=V("defs"),l=V("filter"),a=V("feFlood"),s=V("feColorMatrix"),u=V("feOffset"),c=V("feGaussianBlur"),m=V("feColorMatrix"),h=V("feBlend"),w=V("feBlend"),f(n,"fill-rule","evenodd"),f(n,"clip-rule","evenodd"),f(n,"d","M15 16.6C15 14.6398 15 13.6597 15.3815 12.911C15.717 12.2525 16.2525 11.717 16.911 11.3815C17.6597 11 18.6398 11 20.6 11H21.96C24.4242 11 25.6563 11 26.5976 11.4796C27.4255 11.9014 28.0986 12.5745 28.5204 13.4024C29 14.3437 29 15.5758 29 18.04V21.96C29 24.4242 29 25.6563 28.5204 26.5976C28.0986 27.4255 27.4255 28.0986 26.5976 28.5204C25.6563 29 24.4242 29 21.96 29H20.6C18.6398 29 17.6597 29 16.911 28.6185C16.2525 28.283 15.717 27.7475 15.3815 27.089C15 26.3403 15 25.3602 15 23.4V16.6ZM24.2646 18.3443C25.1663 18.8828 25.6171 19.1521 25.7699 19.5007C25.9032 19.805 25.9032 20.1511 25.7699 20.4554C25.6171 20.804 25.1663 21.0733 24.2646 21.6118L21.8788 23.0367C20.9363 23.5997 20.465 23.8812 20.0774 23.8445C19.7393 23.8125 19.4311 23.6376 19.2303 23.3638C19 23.0498 19 22.5008 19 21.403V18.5531C19 17.4552 19 16.9063 19.2303 16.5923C19.4311 16.3185 19.7393 16.1436 20.0774 16.1116C20.465 16.0749 20.9363 16.3564 21.8788 16.9193L24.2646 18.3443ZM13 17.04C13 14.5758 13 13.3437 13.4796 12.4025C13.7214 11.9278 14.0459 11.504 14.4348 11.1493C14.0394 11.2203 13.7058 11.325 13.4024 11.4796C12.5745 11.9015 11.9014 12.5746 11.4796 13.4025C11 14.3437 11 15.5758 11 18.04V21.96C11 24.4243 11 25.6564 11.4796 26.5976C11.9014 27.4255 12.5745 28.0986 13.4024 28.5205C13.7058 28.6751 14.0394 28.7798 14.4348 28.8508C14.0459 28.4961 13.7214 28.0723 13.4796 27.5976C13 26.6564 13 25.4243 13 22.96V17.04Z"),f(n,"fill","white"),f(o,"d","M14.6032 11.334L15.2433 10.7501L14.3906 10.9032C13.9767 10.9775 13.6187 11.0888 13.2889 11.2569C12.414 11.7027 11.7026 12.414 11.2568 13.289C10.9961 13.8007 10.872 14.3806 10.8108 15.1298C10.75 15.8737 10.75 16.8061 10.75 18.0284V18.04V21.96V21.9717C10.75 23.194 10.75 24.1264 10.8108 24.8703C10.872 25.6195 10.9961 26.1994 11.2568 26.7111C11.7026 27.5861 12.414 28.2974 13.2889 28.7432C13.6187 28.9113 13.9767 29.0225 14.3906 29.0969L15.2433 29.25L14.6032 28.6661C14.2365 28.3315 13.9304 27.9318 13.7023 27.4841C13.4835 27.0546 13.3678 26.5478 13.3091 25.8296C13.2502 25.1084 13.25 24.1963 13.25 22.96V17.04C13.25 15.8038 13.2502 14.8917 13.3091 14.1705C13.3678 13.4522 13.4835 12.9455 13.7023 12.516C13.9304 12.0683 14.2365 11.6686 14.6032 11.334ZM15.1587 12.7975C14.947 13.213 14.8475 13.6818 14.7985 14.2808C14.75 14.8747 14.75 15.6181 14.75 16.5884V16.6V23.4V23.4116C14.75 24.3819 14.75 25.1253 14.7985 25.7192C14.8475 26.3182 14.947 26.787 15.1587 27.2025C15.5183 27.9081 16.0919 28.4818 16.7975 28.8413C17.213 29.053 17.6818 29.1525 18.2808 29.2015C18.8747 29.25 19.6181 29.25 20.5884 29.25H20.6H21.96H21.9717C23.1939 29.25 24.1264 29.25 24.8703 29.1892C25.6194 29.128 26.1993 29.0039 26.7111 28.7432C27.586 28.2974 28.2974 27.586 28.7432 26.7111C29.0039 26.1993 29.128 25.6194 29.1892 24.8703C29.25 24.1264 29.25 23.1939 29.25 21.9717V21.96V18.04V18.0283C29.25 16.8061 29.25 15.8736 29.1892 15.1297C29.128 14.3806 29.0039 13.8007 28.7432 13.2889C28.2974 12.414 27.586 11.7026 26.7111 11.2568C26.1993 10.9961 25.6194 10.872 24.8703 10.8108C24.1264 10.75 23.1939 10.75 21.9717 10.75H21.96H20.6H20.5884C19.6181 10.75 18.8747 10.75 18.2808 10.7985C17.6818 10.8475 17.213 10.947 16.7975 11.1587C16.0919 11.5183 15.5183 12.0919 15.1587 12.7975ZM24.1364 18.5589C24.5914 18.8307 24.9178 19.0259 25.1508 19.1958C25.3846 19.3661 25.4915 19.4884 25.5409 19.601C25.6462 19.8413 25.6462 20.1147 25.5409 20.355C25.4915 20.4677 25.3846 20.59 25.1508 20.7603C24.9178 20.9302 24.5914 21.1254 24.1364 21.3972L21.7506 22.8221C21.2751 23.1061 20.9332 23.31 20.662 23.44C20.3893 23.5707 20.2254 23.6074 20.1009 23.5956C19.8339 23.5703 19.5905 23.4322 19.4319 23.2159C19.358 23.1151 19.3054 22.9556 19.2778 22.6545C19.2503 22.3549 19.25 21.9568 19.25 21.403V18.5531C19.25 17.9992 19.2503 17.6012 19.2778 17.3016C19.3054 17.0005 19.358 16.841 19.4319 16.7402C19.5905 16.5239 19.8339 16.3858 20.1009 16.3605C20.2254 16.3487 20.3893 16.3854 20.662 16.5161C20.9332 16.6461 21.2751 16.85 21.7506 17.134L24.1364 18.5589Z"),f(o,"stroke","black"),f(o,"stroke-opacity","0.12"),f(o,"stroke-width","0.5"),f(t,"filter","url(#filter0_d_207_5101)"),f(a,"flood-opacity","0"),f(a,"result","BackgroundImageFix"),f(s,"in","SourceAlpha"),f(s,"type","matrix"),f(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(s,"result","hardAlpha"),f(c,"stdDeviation","2.5"),f(m,"type","matrix"),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,"mode","normal"),f(h,"in2","BackgroundImageFix"),f(h,"result","effect1_dropShadow_207_5101"),f(w,"mode","normal"),f(w,"in","SourceGraphic"),f(w,"in2","effect1_dropShadow_207_5101"),f(w,"result","shape"),f(l,"id","filter0_d_207_5101"),f(l,"x","5.5"),f(l,"y","5.35095"),f(l,"width","29"),f(l,"height","29.2982"),f(l,"filterUnits","userSpaceOnUse"),f(l,"color-interpolation-filters","sRGB"),f(e,"width","40"),f(e,"height","40"),f(e,"viewBox","0 0 40 40"),f(e,"fill","none"),f(e,"xmlns","http://www.w3.org/2000/svg")},m(b,S){C(b,e,S),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)},p:de,i:de,o:de,d(b){b&&k(e)}}}var tu=class extends K{constructor(e){super(),G(this,e,null,Qb,q,{})}},Yd=tu;function Zb(i){let e,t;return e=new Gd({}),{c(){D(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p:de,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Xb(i){let e,t;return e=new Qd({props:{short:i[5]}}),{c(){D(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let r={};o&32&&(r.short=n[5]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Jb(i){let e,t;return e=new Yd({}),{c(){D(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p:de,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function xb(i){let e,t,n,o,r=[Jb,Xb,Zb],l=[];function a(s,u){return s[7]||s[4]?0:s[2]?1:2}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=lt()},m(s,u){l[e].m(s,u),C(s,n,u),o=!0},p(s,u){let c=e;e=a(s,u),e===c?l[e].p(s,u):(fe(),_(l[c],1,1,()=>{l[c]=null}),ce(),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&&k(n),l[e].d(s)}}}function $b(i){let e,t,n;function o(l){i[13](l)}let r={className:"btn-full-opacity",disabled:!i[1],click:i[8],testId:i[2]?"btn-vk-video-logo":"btn-vk-logo",ariaLabel:i[3],$$slots:{default:[xb]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new _t({props:r}),pe.push(()=>He(e,"ref",o)),{c(){D(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&65588&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function e4(i,e,t){let n,o,{ref:r=void 0}=e,{logoClickable:l=!1}=e,{targetUrl:a=""}=e,{click:s}=e,u=zt(),c=it(),m=c.ui.currentGridType$;z(i,m,g=>t(11,n=g));let h=c.ui.isMobile;z(i,h,g=>t(12,o=g));let w,b,S,y,P=()=>{var g,I;s(),(I=(g=c.callbacks)==null?void 0:g.onLogoClicked)==null||I.call(g),a&&window.open(a,"_blank")};function v(g){r=g,t(0,r)}i.$$set=g=>{"ref"in g&&t(0,r=g.ref),"logoClickable"in g&&t(1,l=g.logoClickable),"targetUrl"in g&&t(9,a=g.targetUrl),"click"in g&&t(10,s=g.click)},i.$$.update=()=>{if(i.$$.dirty&6148)e:t(5,y=(o||Vr(n,"l"))&&b)};e:t(3,w=u.logoType==="vk_video"?Q("tooltip_vk_video_logo"):Q("tooltip_vk_logo"));e:t(2,b=u.logoType==="vk_video");e:t(4,S=u.logoType==="vk_video_mobile");return[r,l,b,w,S,y,m,h,P,a,s,n,o,v]}var iu=class extends K{constructor(e){super(),G(this,e,e4,$b,q,{ref:0,logoClickable:1,targetUrl:9,click:10})}},Br=iu;var Xd=require("@vkontakte/videoplayer-core");var nu=require("@vkontakte/videoplayer-core");function t4(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 i4(i){let e,t,n,o,r,l,a,s;return{c(){e=V("svg"),t=V("g"),n=V("path"),o=V("path"),r=V("path"),l=V("path"),a=V("path"),s=V("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){C(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&&k(e)}}}function n4(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,b,S,y,P,v,g,I,N;return{c(){e=V("svg"),t=V("g"),n=V("mask"),o=V("path"),l=V("path"),a=V("path"),u=V("path"),c=V("defs"),m=V("clipPath"),h=V("path"),b=V("filter"),S=V("feFlood"),y=V("feColorMatrix"),P=V("feOffset"),v=V("feGaussianBlur"),g=V("feColorMatrix"),I=V("feBlend"),N=V("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(S,"flood-opacity","0"),f(S,"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(g,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(I,"in2","BackgroundImageFix"),f(I,"result","effect1_dropShadow_4085_178456"),f(N,"in","SourceGraphic"),f(N,"in2","effect1_dropShadow_4085_178456"),f(N,"result","shape"),f(b,"id","b"),f(b,"x","-3.4"),f(b,"y","-1.4"),f(b,"width","30.8"),f(b,"height","26.802"),f(b,"filterUnits","userSpaceOnUse"),f(b,"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(W,U){C(W,e,U),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,b),p(b,S),p(b,y),p(b,P),p(b,v),p(b,g),p(b,I),p(b,N)},p(W,U){U&2&&r!==(r=W[1]?"#2688EB":"#fff")&&f(o,"fill",r),U&2&&s!==(s=W[1]?"#2688EB":"#fff")&&f(a,"fill",s),U&2&&w!==(w=W[1]?"#2688EB":"#fff")&&f(h,"fill",w)},d(W){W&&k(e)}}}function o4(i){let e;function t(r,l){return r[0]?n4:i4}let n=t(i,-1),o=n(i);return{c(){o.c(),e=lt()},m(r,l){o.m(r,l),C(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:de,o:de,d(r){r&&k(e),o.d(r)}}}function l4(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===nu.ChromecastState.CONNECTING),t(1,r=o===nu.ChromecastState.CONNECTED)},[n,r,l,o]}var ou=class extends K{constructor(e){super(),G(this,e,l4,o4,q,{isMobile:0,state:3},t4)}},Zd=ou;var Jd=require("@vkontakte/videoplayer-shared");function r4(i){let e,t;return e=new Zd({props:{isMobile:i[1],state:i[2]}}),{c(){D(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){B(e,n)}}}function s4(i){let e,t,n;function o(l){i[5](l)}let r={ariaLabel:i[4],click:i[3],testId:"btn-chromecast",$$slots:{default:[r4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new _t({props:r}),pe.push(()=>He(e,"ref",o)),{c(){D(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],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function a4(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{state:r}=e,{click:l=Jd.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===Xd.ChromecastState.CONNECTED?Q("tooltip_chromecast_on"):Q("tooltip_chromecast_off"))},[n,o,r,l,a,s]}var lu=class extends K{constructor(e){super(),G(this,e,a4,s4,q,{ref:0,isMobile:1,state:2,click:3})}},Rr=lu;var Dr=require("@vkontakte/videoplayer-core");function u4(i){let e,t;return e=new mr({props:{isActive:i[1]}}),{c(){D(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){B(e,n)}}}function f4(i){let e,t;return e=new _t({props:{className:i[0]?"":"btn--live btn-full-opacity",testId:i[1]?"btn-live":"btn-live-offset",disabled:i[1]&&i[3]===Dr.PlaybackState.PLAYING,ariaLabel:i[2],click:i[4],$$slots:{default:[u4]},$$scope:{ctx:i}}}),{c(){D(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]===Dr.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){B(e,n)}}}function c4(i,e,t){let n,{isMobile:o=!1}=e,{isActiveLive:r=!1}=e,{ariaLabel:l=""}=e,a=it(),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===Dr.PlaybackState.PAUSED&&c()})},[o,r,l,n,m,s]}var ru=class extends K{constructor(e){super(),G(this,e,c4,f4,q,{isMobile:0,isActiveLive:1,ariaLabel:2})}},Nr=ru;function d4(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 m4(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"),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){C(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)&&Ve(l,r,a,a[8],o?Me(r,a[8],s,null):Ae(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&&k(e),l&&l.d(a),i[10](null),i[11](null)}}}function p4(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:P}=h.getBoundingClientRect(),v=P/2;return y<v?v:y>c-v?c-v:y}function b(y){pe[y?"unshift":"push"](()=>{h=y,t(4,h)})}function S(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,b,S]}var su=class extends K{constructor(e){super(),G(this,e,p4,m4,q,{active:0,pointer:1,translateXPx:6,translateYPx:2,containerWidth:7},d4)}},xd=su;var Or=(i,e,t)=>t.filter(n=>n.time<i*e).pop();function _4(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 $d(i){let e;function t(r,l){return r[2]&&r[10].completed===!1?g4:h4}let n=t(i,-1),o=n(i);return{c(){o.c(),e=lt()},m(r,l){o.m(r,l),C(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&&k(e),o.d(r)}}}function h4(i){let e=(i[10].text||"")+"",t;return{c(){t=De(e)},m(n,o){C(n,t,o)},p(n,o){o&1024&&e!==(e=(n[10].text||"")+"")&&Ye(t,e)},d(n){n&&k(t)}}}function g4(i){let e=Q("tooltip_episode_unfinished")+"",t;return{c(){t=De(e)},m(n,o){C(n,t,o)},p:de,d(n){n&&k(t)}}}function b4(i){let e,t,n,o,r,l,a,s,u=i[10]&&$d(i);return{c(){e=T("div"),t=T("div"),o=F(),r=T("div"),u&&u.c(),l=F(),a=T("div"),s=De(i[0]),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(a,"class","time svelte-l51fc1"),f(e,"class","timeline-preview svelte-l51fc1"),H(e,"mobile",i[1])},m(c,m){C(c,e,m),p(e,t),p(e,o),p(e,r),u&&u.m(r,null),p(e,l),p(e,a),p(a,s)},p(c,[m]){m&3064&&n!==(n=`width: ${c[3]}px; height: ${c[4]}px; background-image: url(${c[5]}); background-size: ${c[6]}px ${c[7]}px; background-position: ${c[8]}px ${c[9]}px; transform: translateY(${c[11]%180?-35:0}px) rotate(${c[11]}deg);`)&&f(t,"style",n),c[10]?u?u.p(c,m):(u=$d(c),u.c(),u.m(r,null)):u&&(u.d(1),u=null),m&1&&Ye(s,c[0]),m&2&&H(e,"mobile",c[1])},i:de,o:de,d(c){c&&k(e),u&&u.d()}}}var cl=150;function v4(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=it().ui.rotateAlpha;z(i,h,U=>t(11,n=U));let w,b,S,y,P,v,g,I;function N(){let U=a.frameWidth,le=a.frameHeight;return U>cl?(le=le/U*cl,U=cl):le>cl&&(U=U/le*cl,le=cl),{width:U,height:le}}function W(U){let le;a.isUV?le=Math.floor(u*U/a.frequency):le=Math.min(a.countTotal,Math.max(0,Math.floor(a.countTotal*U)));let ae=Math.floor(le/a.countPerImage),O=Math.floor(le%a.countPerImage/a.countPerRow),R=le%a.countPerRow,x=Math.floor(a.countPerImage/a.countPerRow);!a.isUV&&ae===Math.floor(a.countTotal/a.countPerImage)&&(x=Math.floor(a.countTotal%a.countPerImage/a.countPerRow),a.countTotal%a.countPerImage%a.countPerRow>0&&x++);let Y=a.countPerRow;!a.isUV&&ae===Math.floor(a.countTotal/a.countPerImage)&&a.countTotal%a.countPerImage>0&&(Y=Math.min(a.countPerRow,a.countTotal%a.countPerImage));let J=w*Y,E=b*x,te=-R*w,M=-O*b;return{imgSrc:a.links[ae],imgWidth:J,imgHeight:E,imgOffsetX:te,imgOffsetY:M}}i.$$set=U=>{"time"in U&&t(0,o=U.time),"isMobile"in U&&t(1,r=U.isMobile),"videoEpisodes"in U&&t(13,l=U.videoEpisodes),"previewThumbsData"in U&&t(14,a=U.previewThumbsData),"progress"in U&&t(15,s=U.progress),"duration"in U&&t(16,u=U.duration),"isInteractive"in U&&t(2,c=U.isInteractive)},i.$$.update=()=>{if(i.$$.dirty&32768)e:t(5,{imgSrc:S,imgWidth:y,imgHeight:P,imgOffsetX:v,imgOffsetY:g}=W(s),S,(t(6,y),t(15,s)),(t(7,P),t(15,s)),(t(8,v),t(15,s)),(t(9,g),t(15,s)));if(i.$$.dirty&106496)e:t(10,I=Or(s,u,l))};e:t(3,{width:w,height:b}=N(),w,t(4,b));return[o,r,c,w,b,S,y,P,v,g,I,n,h,l,a,s,u]}var au=class extends K{constructor(e){super(),G(this,e,v4,b4,q,{time:0,isMobile:1,videoEpisodes:13,previewThumbsData:14,progress:15,duration:16,isInteractive:2},_4)}},em=au;function y4(i){Se(i,"svelte-5lzly8",".time.svelte-5lzly8{display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8)}")}function w4(i){let e,t;return{c(){e=T("span"),t=De(i[7]),f(e,"class","time svelte-5lzly8")},m(n,o){C(n,e,o),p(e,t)},p(n,o){o[0]&128&&Ye(t,n[7])},i:de,o:de,d(n){n&&k(e)}}}function k4(i){let e,t;return e=new em({props:{time:i[7],isMobile:i[10],videoEpisodes:i[3],previewThumbsData:i[21],progress:i[8],duration:i[1],isInteractive:i[23]}}),{c(){D(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){B(e,n)}}}function C4(i){let e,t,n,o,r=[k4,w4],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=lt()},m(s,u){l[e].m(s,u),C(s,n,u),o=!0},p(s,u){let c=e;e=a(s,u),e===c?l[e].p(s,u):(fe(),_(l[c],1,1,()=>{l[c]=null}),ce(),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&&k(n),l[e].d(s)}}}function S4(i){let e,t,n,o,r=[i[9]],l={$$slots:{default:[C4]},$$scope:{ctx:i}};for(let a=0;a<r.length;a+=1)l=oe(l,r[a]);return e=new xd({props:l}),n=new al({props:{isActiveLive:i[11],isMobile:i[10],ariaLabel:Q("aria_timeline"),ariaValueMin:0,ariaValueMax:i[1],ariaValueNow:Math.round(i[6]*100),ariaValueText:Q("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(){D(e.$$.fragment),t=F(),D(n.$$.fragment)},m(a,s){L(e,a,s),C(a,t,s),L(n,a,s),o=!0},p(a,s){let u=s[0]&512?Re(r,[Qf(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=Q("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&&k(t),B(e,a),B(n,a)}}}function P4(i,e,t){let n,o,r,l,a,s,u,c,m,h,w,{showTimeline:b=!1}=e,S=it(),y=zt(),P=S.state.bufferedProgress$;z(i,P,Te=>t(12,h=Te));let v=S.state.positionWithScrubbing$;z(i,v,Te=>t(39,s=Te));let g=S.state.duration$;z(i,g,Te=>t(1,r=Te));let I=S.state.isLive$;z(i,I,Te=>t(0,o=Te));let N=S.state.isActiveLive$;z(i,N,Te=>t(11,m=Te));let W=S.ui.isMobile;z(i,W,Te=>t(10,c=Te));let U=y.features.episodes?S.actions.internal.getVideoEpisodes():void 0,le=S.actions.internal.getPreviewThumbsData(),ae=S.state.interactiveEpisodes$;z(i,ae,Te=>t(40,u=Te));let O=S.state.isInteractive,R=S.state.isInteractiveTime$;z(i,R,Te=>t(2,l=Te));let x=S.state.isInteractiveExpectation$;z(i,x,Te=>t(38,a=Te));let Y=S.actions.internal.correctSeekTimeToInteractive,J=S.ui.controls.disabledControls$;z(i,J,Te=>t(13,w=Te));let E,te,M,ee,ke=!1,Ge="",Ue=0,xe=0,je=0,ve;function X(Te){return!Y||!O?Te:Y(Te*r)/r}function be(Te){S.actions.internal.startScrubbing(X(Te))}function Oe(Te){l||S.actions.internal.progressScrubbing(X(Te))}function $e(Te){S.actions.internal.completeScrubbing(X(Te)),t(34,ke=!1)}function et(Te,Z,Ce){Ke(Te,Z,Ce),t(34,ke=!0)}function ye(Te,Z,Ce){Ke(Te,Z,Ce),t(34,ke=!0)}function Le(){t(34,ke=!1)}function Ke(Te,Z,Ce){t(8,je=Te),t(35,Ue=Z),Ce&&t(36,xe=Ce),t(7,Ge=Xe(Te))}function Xe(Te){let Z=En((o?1-Te:Te)*r);return o?`-${Z}`:Z}return i.$$set=Te=>{"showTimeline"in Te&&t(33,b=Te.showTimeline)},i.$$.update=()=>{if(i.$$.dirty[1]&512)e:t(3,E=O?u:U);if(i.$$.dirty[0]&2)e:t(4,te=En(r));if(i.$$.dirty[1]&256)e:t(5,M=En(s));if(i.$$.dirty[0]&2|i.$$.dirty[1]&256)e:t(6,ee=s/r);if(i.$$.dirty[0]&4|i.$$.dirty[1]&128)e:t(37,ve=a||l);if(i.$$.dirty[0]&1|i.$$.dirty[1]&124)e:t(9,n={containerWidth:xe,translateXPx:Ue,translateYPx:O&&le?-36:-16,active:ke&&b&&!ve,pointer:!y.features.timelinePreview||!le||o})},[o,r,l,E,te,M,ee,Ge,je,n,c,m,h,w,y,P,v,g,I,N,W,le,ae,O,R,x,J,be,Oe,$e,et,ye,Le,b,ke,Ue,xe,ve,a,s,u]}var uu=class extends K{constructor(e){super(),G(this,e,P4,S4,q,{showTimeline:33},y4,[-1,-1])}},tm=uu;function T4(i){let e,t;return e=new al({props:{ariaValueMin:0,ariaValueMax:i[0],ariaValueNow:Math.round(i[3]*100),ariaValueText:Q("aria_timeline_value",{position:i[2],duration:i[1]}),filledProgress:i[3],isAds:!0,hideHandel:!0,squareBorders:i[4]}}),{c(){D(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=Q("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){B(e,n)}}}function I4(i,e,t){let n,{position:o=0}=e,{duration:r=0}=e,a=it().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=En(r));if(i.$$.dirty&64)e:t(2,u=En(o));if(i.$$.dirty&65)e:t(3,c=o/r)},[r,s,u,c,n,a,o]}var fu=class extends K{constructor(e){super(),G(this,e,I4,T4,q,{position:6,duration:0})}},Fr=fu;function E4(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 M4(i){let e;return{c(){e=T("div"),f(e,"class","timeline-stub svelte-1gqonyf"),H(e,"mobile",i[2])},m(t,n){C(t,e,n)},p(t,n){n&4&&H(e,"mobile",t[2])},i:de,o:de,d(t){t&&k(e)}}}function V4(i){let e,t,n,o,r=[L4,A4],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"),H(e,"mobile",i[2])},m(s,u){C(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):(fe(),_(l[c],1,1,()=>{l[c]=null}),ce(),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)&&H(e,"mobile",s[2])},i(s){o||(d(n),o=!0)},o(s){_(n),o=!1},d(s){s&&k(e),l[t].d()}}}function A4(i){let e,t;return e=new tm({props:{showTimeline:i[1]}}),{c(){D(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){B(e,n)}}}function L4(i){let e,t;return e=new Fr({props:{position:i[3],duration:i[4]}}),{c(){D(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){B(e,n)}}}function B4(i){let e,t,n,o,r=[V4,M4],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=lt()},m(s,u){l[e].m(s,u),C(s,n,u),o=!0},p(s,[u]){let c=e;e=a(s,u),e===c?l[e].p(s,u):(fe(),_(l[c],1,1,()=>{l[c]=null}),ce(),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&&k(n),l[e].d(s)}}}function R4(i,e,t){let n,o,r,l,{isAds:a=!1}=e,{canRewindLive:s}=e,{isRewindableLive:u}=e,{isHidden:c=!1}=e,m=it(),h=m.state.isLive$;z(i,h,P=>t(12,n=P));let w=m.ads.duration;z(i,w,P=>t(4,l=P));let b=m.ads.position;z(i,b,P=>t(3,r=P));let S=m.ui.isMobile;z(i,S,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,w,b,S,s,u,c,n]}var cu=class extends K{constructor(e){super(),G(this,e,R4,B4,q,{isAds:0,canRewindLive:9,isRewindableLive:10,isHidden:11},E4)}},Hr=cu;var om=require("@vkontakte/videoplayer-shared");function D4(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=oe(u,s[c]);return{c(){e=V("svg"),a&&a.c(),t=V("path"),n=V("path"),o=V("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"),ge(e,u)},m(c,m){C(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)&&Ve(a,l,c,c[1],r?Me(l,c[1],m,null):Ae(c[1]),null),ge(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&&k(e),a&&a.d(c)}}}function N4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var du=class extends K{constructor(e){super(),G(this,e,N4,D4,q,{})}},im=du;function O4(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=oe(a,l[s]);return{c(){e=V("svg"),r&&r.c(),t=V("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"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(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&&k(e),r&&r.d(s)}}}function F4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var mu=class extends K{constructor(e){super(),G(this,e,F4,O4,q,{})}},nm=mu;function H4(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 z4(i){let e,t,n,o;e=new im({});function r(s,u){if(s[4]==="FULL")return K4;if(s[4]==="COUNT")return U4}let l=r(i,-1),a=l&&l(i);return{c(){D(e.$$.fragment),t=F(),a&&a.c(),n=lt()},m(s,u){L(e,s,u),C(s,t,u),a&&a.m(s,u),C(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&&(k(t),k(n)),B(e,s),a&&a.d(s)}}}function q4(i){let e,t,n,o,r,l;return r=new nm({}),{c(){e=T("span"),t=De(i[2]),n=F(),o=T("div"),D(r.$$.fragment),f(e,"class","text mobile svelte-1yhs2ga"),f(o,"class","chevron-episodes svelte-1yhs2ga")},m(a,s){C(a,e,s),p(e,t),C(a,n,s),C(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&&(k(e),k(n),k(o)),B(r)}}}function U4(i){let e,t=i[0].length+"",n;return{c(){e=T("span"),n=De(t),f(e,"class","text count svelte-1yhs2ga")},m(o,r){C(o,e,r),p(e,n)},p(o,r){r&1&&t!==(t=o[0].length+"")&&Ye(n,t)},d(o){o&&k(e)}}}function K4(i){let e,t;return{c(){e=T("span"),t=De(i[2]),f(e,"class","text svelte-1yhs2ga")},m(n,o){C(n,e,o),p(e,t)},p(n,o){o&4&&Ye(t,n[2])},d(n){n&&k(e)}}}function W4(i){let e,t,n,o,r=[q4,z4],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=lt()},m(s,u){l[e].m(s,u),C(s,n,u),o=!0},p(s,u){let c=e;e=a(s,u),e===c?l[e].p(s,u):(fe(),_(l[c],1,1,()=>{l[c]=null}),ce(),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&&k(n),l[e].d(s)}}}function G4(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:[W4]},$$scope:{ctx:i}};return i[1]!==void 0&&(r.ref=i[1]),e=new _t({props:r}),pe.push(()=>He(e,"ref",o)),{c(){D(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],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function j4(i,e,t){var O,R,x;let n,o,r,l,a,s,{position:u=0}=e,{duration:c=0}=e,{timeCodes:m=[]}=e,h=it(),w=(R=(O=h.callbacks)==null?void 0:O.onEpisodeChanged)!=null?R:om.noop,b=!!((x=h.callbacks)!=null&&x.onEpisodeClicked),S=h.ui.currentGridType$;z(i,S,Y=>t(18,a=Y));let y=h.ui.episodes.openedByKeyboard$;z(i,y,Y=>t(17,l=Y));let P=h.ui.episodes.panelOpened$;z(i,P,Y=>t(3,r=Y));let v=h.ui.isMobile;z(i,v,Y=>t(6,s=Y));let g,I=Y=>{var E,te,M;if(!!((E=h.callbacks)!=null&&E.onEpisodeClicked)){let ee=nl(Y);y.set(ee),P.set(!0),(M=(te=h.callbacks)==null?void 0:te.onEpisodeClicked)==null||M.call(te,ee)}},N,W,U,le=async(Y,J,E)=>{await Kn(),(Y==null?void 0:Y.getAttribute("aria-expanded"))==="false"&&J&&!E&&(y.set(!1),Y.focus())};function ae(Y){g=Y,t(1,g)}return i.$$set=Y=>{"position"in Y&&t(13,u=Y.position),"duration"in Y&&t(14,c=Y.duration),"timeCodes"in Y&&t(0,m=Y.timeCodes)},i.$$.update=()=>{if(i.$$.dirty&24576)e:t(16,n=u/c);if(i.$$.dirty&114689)e:{let Y=Or(n,c,m);Y&&(N==null?void 0:N.text)!==Y.text&&(w(Y),t(15,N=Y))}if(i.$$.dirty&32768)e:t(2,o=(N==null?void 0:N.text)||"");if(i.$$.dirty&262144)e:Mn(a,"xl")?t(4,W="FULL"):Mn(a,"m")&&Rd(a,"xl")?t(4,W="COUNT"):t(4,W="SHORT");if(i.$$.dirty&4)e:t(5,U=`${Q("tooltip_episodes")}: ${o}`);if(i.$$.dirty&131082)e:le(g,l,r)},[m,g,o,r,W,U,s,b,S,y,P,v,I,u,c,N,n,l,a,ae]}var pu=class extends K{constructor(e){super(),G(this,e,j4,G4,q,{position:13,duration:14,timeCodes:0},H4)}},zr=pu;function Q4(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=oe(s,a[u]);return{c(){e=V("svg"),l&&l.c(),t=V("path"),n=V("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"),ge(e,s)},m(u,c){C(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)&&Ve(l,r,u,u[1],o?Me(r,u[1],c,null):Ae(u[1]),null),ge(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&&k(e),l&&l.d(u)}}}function Y4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var _u=class extends K{constructor(e){super(),G(this,e,Y4,Q4,q,{})}},lm=_u;function Z4(i){let e,t;return e=new lm({}),{c(){D(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){B(e,n)}}}function X4(i){let e,t,n;function o(l){i[4](l)}let r={className:i[1]?"hidden":"",testId:"btn-seek-to-interactive",ariaLabel:Q("tooltip_interactive_seek"),disabled:i[2],click:i[3],$$slots:{default:[Z4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new _t({props:r}),pe.push(()=>He(e,"ref",o)),{c(){D(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],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function J4(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 hu=class extends K{constructor(e){super(),G(this,e,J4,X4,q,{ref:0,hidden:1,disabled:2,click:3})}},qr=hu;function x4(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=oe(s,a[u]);return{c(){e=V("svg"),l&&l.c(),t=V("path"),n=V("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"),ge(e,s)},m(u,c){C(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)&&Ve(l,r,u,u[1],o?Me(r,u[1],c,null):Ae(u[1]),null),ge(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&&k(e),l&&l.d(u)}}}function $4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var gu=class extends K{constructor(e){super(),G(this,e,$4,x4,q,{})}},rm=gu;function e3(i){Se(i,"svelte-17ceof5",'svg[data-testid="graph-open-icon"] ._closed{visibility:hidden;opacity:0}')}function t3(i){let e,t;return e=new rm({props:{"data-testid":i[0]?"graph-close-icon":"graph-open-icon"}}),{c(){D(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){B(e,n)}}}function i3(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 K{constructor(e){super(),G(this,e,i3,t3,q,{isOpened:0},e3)}},sm=bu;function n3(i){let e,t;return e=new sm({props:{isOpened:i[3]}}),{c(){D(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){B(e,n)}}}function o3(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:[n3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new _t({props:r}),pe.push(()=>He(e,"ref",o)),{c(){D(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],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function l3(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?Q("tooltip_interactive_graph_on"):Q("tooltip_interactive_graph_off"))},[n,o,r,l,a,s,u]}var vu=class extends K{constructor(e){super(),G(this,e,l3,o3,q,{ref:0,hidden:1,disabled:2,graphIsOpened:3,click:4})}},Ur=vu;function r3(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=oe(a,l[s]);return{c(){e=V("svg"),r&&r.c(),t=V("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"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(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&&k(e),r&&r.d(s)}}}function s3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var yu=class extends K{constructor(e){super(),G(this,e,s3,r3,q,{})}},Kr=yu;var um=require("@vkontakte/videoplayer-shared");function a3(i){Se(i,"svelte-1ot3duq",".mobile.svelte-1ot3duq{position:relative;display:flex;align-items:center;justify-content:center}.mobile.svelte-1ot3duq svg{transform:scale(2)}.icon-background-mobile.svelte-1ot3duq{position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px)}")}function am(i){let e;return{c(){e=T("div"),f(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){C(t,e,n)},d(t){t&&k(e)}}}function u3(i){let e,t,n,o,r=i[1]&&am(i);return n=new Kr({}),{c(){r&&r.c(),e=F(),t=T("div"),D(n.$$.fragment),f(t,"class","svelte-1ot3duq"),H(t,"mobile",i[1])},m(l,a){r&&r.m(l,a),C(l,e,a),C(l,t,a),L(n,t,null),o=!0},p(l,a){l[1]?r||(r=am(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&&(k(e),k(t)),r&&r.d(l),B(n)}}}function f3(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:Q("tooltip_restart"),disabled:i[2],click:i[4],ariaKeyShortCut:Yn.KeyK,$$slots:{default:[u3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new _t({props:r}),pe.push(()=>He(e,"ref",o)),{c(){D(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],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function c3(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:r=!1}=e,{className:l=""}=e,{click:a=um.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 wu=class extends K{constructor(e){super(),G(this,e,c3,f3,q,{ref:0,isMobile:1,disabled:2,className:3,click:4},a3)}},Dl=wu;function d3(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=oe(a,l[s]);return{c(){e=V("svg"),r&&r.c(),t=V("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"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(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&&k(e),r&&r.d(s)}}}function m3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var ku=class extends K{constructor(e){super(),G(this,e,m3,d3,q,{})}},fm=ku;function p3(i){let e,t;return e=new fm({}),{c(){D(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){B(e,n)}}}function _3(i){let e,t,n;function o(l){i[4](l)}let r={className:i[1]?"hidden":"",testId:"btn-play-prev-chapter",ariaLabel:Q("tooltip_interactive_go_back"),disabled:i[2],click:i[3],$$slots:{default:[p3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new _t({props:r}),pe.push(()=>He(e,"ref",o)),{c(){D(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],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function h3(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 Cu=class extends K{constructor(e){super(),G(this,e,h3,_3,q,{ref:0,hidden:1,disabled:2,click:3})}},Wr=Cu;var Su=require("@vkontakte/videoplayer-shared");function g3(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 b3(i){let e,t,n,o;return{c(){e=T("img"),f(e,"class","icon svelte-1x1zctw"),ys(e.src,t=i[0])||f(e,"src",t),f(e,"aria-hidden","true")},m(r,l){C(r,e,l),n||(o=me(e,"error",i[7]),n=!0)},p(r,l){l&1&&!ys(e.src,t=r[0])&&f(e,"src",t)},d(r){r&&k(e),n=!1,o()}}}function v3(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){C(t,e,n)},p:de,d(t){t&&k(e)}}}function y3(i){let e;function t(r,l){return r[5]?v3:b3}let n=t(i,-1),o=n(i);return{c(){o.c(),e=lt()},m(r,l){o.m(r,l),C(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&&k(e),o.d(r)}}}function w3(i){let e,t;return e=new _t({props:{className:i[4]?"btn-full-opacity":"",ariaLabel:i[1],click:i[3],disabled:i[6],testId:i[2],$$slots:{default:[y3]},$$scope:{ctx:i}}}),{c(){D(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){B(e,n)}}}function k3(i,e,t){let n,o,r,{iconUrl:l}=e,{ariaLabel:a}=e,{disabled:s=!1}=e,{testId:u}=e,{onClick:c=Su.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===Su.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 Pu=class extends K{constructor(e){super(),G(this,e,k3,w3,q,{iconUrl:0,ariaLabel:1,disabled:8,testId:2,onClick:3},g3)}},Gr=Pu;var Dm=require("@vkontakte/videoplayer-shared");var an=require("@vkontakte/videoplayer-core"),TE=require("@vkontakte/videoplayer-shared"),ct=require("@vkontakte/videoplayer-shared"),oo=require("@vkontakte/videoplayer-statistics"),IE=require("@vkontakte/videoplayer-interactive");var Dt=require("@vkontakte/videoplayer-shared");var cm=(i,e)=>i<400||e<225?5:i<640||e<360?0:i<960||e<540?1:i<1280||e<720?2:3;var C3="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",jr=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 Dt.Subject,started$:new Dt.Subject,paused$:new Dt.Subject,resumed$:new Dt.Subject,ended$:new Dt.Subject,skipped$:new Dt.Subject,clicked$:new Dt.Subject};this.loadAdman=e=>new Promise((t,n)=>{let o,r=()=>{clearTimeout(o),delete window.admanAsyncInit,window.AdmanHTML?t():n()};(0,Dt.addScript)(C3,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,Dt.assertNonNullable)(this.adsState),(0,Dt.assertNonNullable)(this.playerState),(0,Dt.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,Dt.assertNonNullable)(this.adsState),this.adsState.position.set(e)};this.onAdPaused=()=>{(0,Dt.assertNonNullable)(this.adsState),this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")};this.onAdPlayed=()=>{(0,Dt.assertNonNullable)(this.adsState),this.log({message:"ad played"}),this.adsState.playbackState.set("playing")};this.onAdMidrollPoint=()=>{(0,Dt.assertNonNullable)(this.adman),(0,Dt.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 b={dl:encodeURIComponent(window.location.href),autoplay:r,player_width:t,player_height:n,puid10:cm(t,n),puid11:o?0:1,preview:m,...h?{request_id:h}:{},duration:c,...u},S={slot:s,wrapper:l,videoEl:a,videoQuality:n,params:b,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(S),this.adman=y,this.videoElement=a,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(S)}`})}switchToVideo(e=!1){if(this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}(0,Dt.assertNonNullable)(this.actions),(0,Dt.assertNonNullable)(this.adsState),(0,Dt.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,Dt.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,Dt.assertNonNullable)(this.adman),this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.adman.start("preroll")}startPostroll(){(0,Dt.assertNonNullable)(this.adman),(0,Dt.assertNonNullable)(this.actions),this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.adman.start("postroll")}play(){(0,Dt.assertNonNullable)(this.adman),this.log({message:"ad play"}),this.adman.resume(),this.events.resumed$.next()}pause(){(0,Dt.assertNonNullable)(this.adman),this.log({message:"ad pause"}),this.adman.pause(),this.events.paused$.next()}skip(){(0,Dt.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 Tu=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 Qr,{startTime:u,endTime:c}=s.parse(a);r.startTime=u,r.endTime=c}else if(a.trim()!==""){let s=new Iu,{texts:u}=s.parse(a);r.texts=[...r.texts,...u]}(r.startTime||r.endTime)&&r.texts.length>0&&t.push(r)}return t}},Qr=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}},Iu=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 Qr;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}},mm=Tu;var Yr=require("@vkontakte/videoplayer-shared"),bo,Gt,Eu=0,Mu=!1,pm=(i,e,t)=>{var u;let n=i>=Eu,o=i<Eu,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(Eu=i,o&&(Mu=!1),(0,Yr.isNonNullable)(bo)&&l(i,bo.startTime,bo.endTime)&&bo.lang===e.value)return bo;if(!(0,Yr.isNonNullable)(Gt)&&(s!=null&&s.length)&&!Mu){let c=s.find(({startTime:m,endTime:h})=>l(i,m,h)||n&&r(i,m,h));Gt=c&&{...c,lang:e.value},bo=void 0,!(0,Yr.isNonNullable)(Gt)&&s[s.length-1].endTime<i&&(Mu=!0);return}else{if(l(i,Gt==null?void 0:Gt.startTime,Gt==null?void 0:Gt.endTime))return bo=Gt,Gt=void 0,bo;(n&&a(i,Gt==null?void 0:Gt.startTime,Gt==null?void 0:Gt.endTime)||o&&r(i,Gt==null?void 0:Gt.startTime,Gt==null?void 0:Gt.endTime))&&(Gt=void 0)}};var Zr={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-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"};var _m=require("@vkontakte/videoplayer-shared"),hm=require("@vkontakte/videoplayer-statistics"),Xr=class{constructor(e,t){this.oneStat=new hm.OneStat(e,t),this.statSubscription=new _m.Subscription}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var gm=({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:b,isInteractive:S,interactiveRanges$:y,isInteractiveTime$:P,replayInteractive:v,hasInteractiveBranches:g,playPrevChapterDisabledTooltip:I,additionalButtons:N,looped:W=!1,statistics:U,saveRate:le})=>{var kt,sn,Ji,Ln;let ae={...h,configName:[...(kt=h.configName)!=null?kt:[],"ui"],isAudioDisabled:r,live:{...(sn=h.live)!=null?sn:{},isLiveCatchUpMode:!!n}},O=m,R=w||new an.Player(ae),x=new ct.Logger,Y=new jr(x,{loadTimeout:O.ads.loadTimeout,initTimeout:O.ads.initTimeout}),J=Lo.getInstance(),E=s==null?void 0:s.pictureInPictureApi,te=s==null?void 0:s.annotationsApi,M=x.createComponentLog("Store"),ee,ke,Ge={},Ue=(0,ct.getCurrentBrowser)(),xe=U?It(U.oneStat.vsid$):Bn(void 0),je=Ne(co()),ve=(Ji=E==null?void 0:E.info.isActive$)!=null?Ji:new ct.ValueSubject(!1),X=E==null?void 0:E.info.type,be=Ne(0),Oe=Ne([]),$e=(0,ct.merge)(R.events.fatalError$,R.events.managedError$).subscribe(A=>Oe.update(se=>[...se,A])),et=Bn(!1,A=>{let se=R.events.fatalError$.subscribe(()=>A(!0));return()=>se.unsubscribe()}),ye=async A=>{var We;let se=Object.values(ct.InterfaceLanguage).includes(A);if(O.downloadVKLanguages&&(se&&O.updateBuiltinLanguages||!Ls(A))){let rt;try{rt=await(0,ct.loadVKLangPack)(A,xf,$f)}catch(Pt){(We=U==null?void 0:U.oneStat)==null||We.logError({errorType:"VKLangPack",fatal:!1}),J==null||J.report(Pt,{errorType:"VKLangPack",fatal:!1})}rt&&(As({language:A,pack:rt,fallback:O.defaultLanguage}),Le.set(A))}Ls(A)&&Le.set(A)},Le=Ne(i);ye(i);let Ke=(A,se)=>{let Pe=tt(Le);return Bs(Pe,A,se,O.defaultLanguage)},Xe=Ne("thumb"),Te=(()=>{let A=Ai([et,Xe],([se,Pe])=>se?"crashed":Pe);return{...A,is:se=>tt(A)===se}})(),Z=(()=>{let A=Ne(new Set(b));return{...A,add:se=>{A.update(Pe=>new Set([...Pe].concat(se)))},remove:se=>{A.update(Pe=>{let We=[...Pe];return new Set(Array.isArray(se)?We.filter(rt=>!se.includes(rt)):We.filter(rt=>rt!==se))})},includes:se=>{let Pe=tt(A);return Array.isArray(se)?se.every(We=>Pe.has(We)):Pe.has(se)}}})();M({message:"create store"});let Ce=A=>{let se=A.container;se.append(R.experimental.element$.getValue()),ht=new MutationObserver(Pe=>{let{removedNodes:We}=Pe[0];We.length&&se.append(R.experimental.element$.getValue())}),ht.observe(se,{childList:!0})},ue=A=>{M({message:`init video, config: ${JSON.stringify(A)}`}),S?Ce(A):R.initVideo(A),A.subtitles&&R.setExternalTextTracks(A.subtitles),ee=A},Ie=new ct.Subject,Je=A=>Ie.next(A),at=new ct.Subject,ut=new ct.Subject,ft=new ct.Subject,ht=null,gt={actionRewind$:at,actionSeek$:ut,inPiP$:ve,inFullscreen$:new ct.Observable(A=>je.subscribe(se=>A.next(se))),actionSetSubtitle$:ft,nextMovie$:Ie};if(U){let{oneStat:A,statSubscription:se}=U;se.add(A.attachTo(R)),se.add(A.attachToUi(gt)),se.add(A.attachToAds(Y.events)),A.authorize(o).catch(Pe=>{M({message:`onestat auth error ${String(Pe)}`})})}if(J){let A=new ct.Subscription,se=(Pe,We)=>A.add(Pe.subscribe(We));if(se(R.events.managedError$,Pe=>{J.logIError(Pe)}),se(R.events.fatalError$,Pe=>{J.logIError(Pe,!0)}),U){let{oneStat:Pe}=U;se(Pe.experimental.error$,We=>{J.logIError(We)})}J.sentrySubscription.add(A)}let we=()=>{(0,ct.isIOS)()&&ke&&Ac(ke)},pt=new ct.Subscription().add(R.experimental.element$.subscribe(A=>{A&&(ke=A,A.classList.add("player-media"),Ro(E)&&(E.updateVideoElement(),E.registryEventHandlers()),S&&A.setAttribute("pip","false"))})).add(R.events.ended$.subscribe(()=>{var A;we(),(A=a==null?void 0:a.onEnded)==null||A.call(a)})).add(R.events.started$.subscribe(async()=>{var se,Pe;Ro(E)&&await(E==null?void 0:E.revealPictureInPicture());let A=R.info.muted$.getValue();(se=a==null?void 0:a.onStarted)==null||se.call(a),(Pe=Ge.onStarted)==null||Pe.call(Ge,A)})).add(R.events.willSeek$.subscribe(({from:A,to:se})=>{var Pe;(Pe=a==null?void 0:a.onSeek)==null||Pe.call(a,A,se)})).add(R.info.position$.subscribe(A=>{var Pe;let se=R.info.duration$.getValue();(Pe=a==null?void 0:a.onTimeupdate)==null||Pe.call(a,se,A),Y.setPosition(A,se)})).add(R.events.fatalError$.subscribe(()=>{var A;(A=a==null?void 0:a.onCrashed)==null||A.call(a)})).add(R.events.firstBytes$.subscribe(()=>{j.state.isFirstBytes$.set(!0)})).add(R.info.is3DVideo$.subscribe(A=>{j.ui.is3DVideo.set(A)})).add(R.info.isEnded$.subscribe(A=>{S&&(A?(P!=null&&P.getValue()&&Z.add(xl),Z.add("PLAY_BUTTON")):Z.remove("PLAY_BUTTON"))})).add(R.info.liveTime$.subscribe(A=>{var se;(se=a==null?void 0:a.onLiveTime)==null||se.call(a,A)})).add(R.info.isStalled$.subscribe(A=>{var se;(se=a==null?void 0:a.onStalledChanged)==null||se.call(a,A)})),Et=new ct.Subscription,Mt=()=>{Et.add(R.events.log$.subscribe(A=>{console.debug("%c sdk ","background:#9ddcf7;",`sdk component: ${A.component}`,A.message)})).add(x.log$.subscribe(A=>{console.debug("%c ui ","background:#f3da0b;",`ui component: ${A.component}.`,A.message)}))},ze=()=>{Et.unsubscribe()},Ut=(A,se)=>{R.startCameraManualRotation(A,se)},Ft=(A=!1)=>{R.stopCameraManualRotation(A)},_e=(A,se,Pe)=>{R.moveCameraFocusPX(A,se,Pe)},Nt=()=>{R.holdCamera()},mt=()=>{R.releaseCamera()},vt=Bn(R.info.position$.getValue(),A=>{let se,Pe,We=()=>{let rt=R.info.playbackState$.getValue(),Pt=R.info.isLive$.getValue(),qt=R.info.duration$.getValue(),Vt=R.info.position$.getValue();if([an.PlaybackState.PLAYING,an.PlaybackState.PAUSED].includes(rt)){let zi=Pt?Vt-qt:R.getExactTime();zi!==Pe&&A(zi),Pe=zi}se=requestAnimationFrame(We)};return We(),()=>cancelAnimationFrame(se)}),bt=It(ve),Be=It(R.info.playbackState$),Qe=It(R.info.currentBuffer$),wt=It(R.info.isEnded$),jt=It(R.info.isLive$),$i=O.features.playbackRate?It(R.info.canChangePlaybackSpeed$):Bn(!1),fn=It(R.info.liveBufferTime$),hi=It(R.info.volume$),gi=It(R.info.muted$),Li=Ts(R.info.autoQualityLimits$.pipe((0,ct.map)(({max:A})=>A!==void 0)),((Ln=R.info.autoQualityLimits$.getValue())==null?void 0:Ln.max)!==void 0),ei=It(R.info.autoQualityLimitingAvailable$),bi=It(R.info.availableQualities$),cn=It(R.info.availableQualitiesFps$),vi=It(R.info.chromecastState$),Ki=It(R.info.chromecastDeviceName$),ri=It(R.info.currentFormat$),Bi=It(R.info.throughputEstimation$),yi=It(R.info.videoBitrate$),Wi=It(R.info.intrinsicVideoSize$),wi=It(R.info.duration$),si=It(R.info.isAudioAvailable$),At=null,Lt=R.info.isBuffering$,ki=Bn(Lt.getValue(),A=>{let se=Lt.subscribe(Pe=>{Pe&&At===null?At=window.setTimeout(()=>{A(Lt.getValue()),At=null},O.loaderDelay):A(Pe)});return()=>{se.unsubscribe(),At&&clearTimeout(At)}}),Ci=()=>{At&&clearTimeout(At),At=null},Qt=Ai([wi,jt],([A,se])=>se?-A:A),ai=Ai([Be],([A])=>A===an.PlaybackState.PLAYING),ui=It(R.info.atLiveEdge$),yt=It(R.info.atLiveDurationEdge$),Ht=It(R.info.position$),Ct=Ai([Ht,wi],([A,se])=>isFinite(A)&&isFinite(se)&&!!se),Ri=Ai([vi],([A])=>A===an.ChromecastState.CONNECTED),ti=Ne(void 0),dn=It(R.info.isAutoQualityEnabled$,A=>A&&ti.set(void 0)),mn=It(R.info.currentQuality$,()=>ti.set(void 0)),Jt=Ai([ti,mn],([A,se])=>A!=null?A:se),Si=Ai([bi,cn,dn,Jt,ri],([A,se,Pe,We,rt])=>{let Pt=[];rt!==an.VideoFormat.MPEG&&Pt.push({value:"auto",displayValue:Ke("auto_quality_option"),selected:Pe});let qt=A.filter(Vt=>Vt!==ct.VideoQuality.INVARIANT);for(let Vt of qt){let zi=se[Vt],So=Vt===ct.VideoQuality.INVARIANT?Ke("auto_quality_option"):Vt;Pt.push({value:Vt,displayValue:`${So}${zi?dm(zi):""}`,selected:Pe?!1:Vt===We})}return Pt}),Gi=It(R.info.currentPlaybackRate$),Pi=Ai([Gi,ui,yt],([A,se,Pe])=>{let We=Pe||S?1:O.controls.playbackRateMin,rt=se?1:O.controls.playbackRateMax,Pt=O.controls.playbackRateStep,qt=[];for(let Vt=We;Vt<=rt;Vt+=Pt)qt.push({value:Vt,displayValue:Vt===1?Ke("playback_rate_1"):Ke("playback_rate",{multiplier:Vt.toString(10)}),selected:A===Vt});return qt}),fi=O.features.subtitles?It(R.info.availableTextTracks$):Bn([]),Yt=Ai([fi],([A],se)=>{let Pe=[],We=[];for(let rt of A)rt.url&&Pe.push(fetch(rt.url));Promise.allSettled(Pe).then(rt=>{for(let[Pt,qt]of rt.entries())qt.status==="fulfilled"&&qt.value.text().then(Vt=>{let zi=new mm,So=A[Pt].language,yl=!!A[Pt].isAuto,ql=zi.parse(Vt);So&&ql&&We.push({lang:So,subtitles:ql,isAuto:yl}),Pt===rt.length-1&&se(We)})})}),xt={displayValue:Ke("subtitles_off"),value:"off"},Ti=Ne({...xt}),ii=Ai([Yt,Ti,Yt],([A,se])=>{if((A==null?void 0:A.length)>0){let Pe=[{...xt,selected:(se==null?void 0:se.value)===xt.value}];for(let{lang:We,isAuto:rt}of A)Zr[We]&&Pe.push({displayValue:rt?Ke("subtitles_auto",{language:Zr[We]}):Zr[We],value:We,selected:(se==null?void 0:se.value)===We,isAuto:rt});return Pe}else return[]}),en=Ai([vt,Ti,Yt],([A,se,Pe])=>{if(se&&se.value!==xt.value)return pm(A,se,Pe)}),Ii=Ai([en],([A])=>A!=null&&A.texts?A.texts:[]),pn=Ne(!0),_n=Ai([Qe,Qt,Ht,fn],([A,se,Pe,We])=>{var Vt;let rt=(Vt=A==null?void 0:A.end)!=null?Vt:0;if(!We)return rt/se;let qt=-Pe+We-se;return(rt-qt)/se}),tn=It(R.info.availableSources$),ji=Ai([tn],([A])=>Object.keys((A==null?void 0:A[an.VideoFormat.MPEG])||{}).length>0),Di=()=>{var Pe,We,rt;let A=Object.keys(((We=(Pe=R.info.availableSources$)==null?void 0:Pe.getValue())==null?void 0:We[an.VideoFormat.MPEG])||{}),se=(0,ct.getHighestQuality)(A)||ct.VideoQuality.Q_144P;return(rt=ee.sources[an.VideoFormat.MPEG])==null?void 0:rt[se]},$t=()=>{var se;let A=Di();A?cc(A,((se=ee==null?void 0:ee.meta)==null?void 0:se.title)||"video"):M({message:"There is no URL for download video"})},ci=()=>{M({message:"toggle muted"});let A=R.info.muted$.getValue(),We=!(R.info.volume$.getValue()===0||A);Oi(We)},Ei=()=>{j.ui.settingsMenuVisible.set(!1)},Ni=A=>{j.ui.settingsMenuOpenedByKeyboard.set(!!A),j.ui.settingsMenuVisible.set(!0)},nn=A=>{tt(j.ui.settingsMenuVisible)?Ei():Ni(A)},Mi=(A,se=A,Pe=!1)=>{var Pt,qt,Vt;let We=!Pe,rt=R.info.muted$.getValue();M({message:`set volume, volume: ${A}, preferredVolume: ${se}, internalCall: ${We}`}),R.setVolume(A),Y.setVolume(A),We&&((Pt=a==null?void 0:a.onVolumeChange)==null||Pt.call(a,A)),Es(se),rt?(R.setMuted(!1),We&&((qt=a==null?void 0:a.onUnmute)==null||qt.call(a)),ir(!1)):!rt&&A===0&&(R.setMuted(!0),We&&((Vt=a==null?void 0:a.onMute)==null||Vt.call(a)),ir(!0))},Oi=(A,se=!1)=>{var rt,Pt,qt,Vt;let Pe=!se,We=R.info.volume$.getValue();if(M({message:`set muted, currentVolume: ${We}, mute: ${A}, internalCall: ${Pe}`}),R.setMuted(A),Y.setVolume(A?0:We),ir(A),Pe&&(A?(rt=a==null?void 0:a.onMute)==null||rt.call(a):(Pt=a==null?void 0:a.onUnmute)==null||Pt.call(a)),We===0){let zi=(qt=tr())!=null?qt:O.volumeDefault;zi===0&&(zi=O.volumeMinRestore,Es(zi)),R.setVolume(zi),Y.setVolume(zi),Pe&&((Vt=a==null?void 0:a.onVolumeChange)==null||Vt.call(a,zi))}},Fi=Ne(!1),Ze=A=>{Fi.set(A),R.setLooped(A)};Ze(W);let Qi=()=>{R.prepare()},Zt=()=>{var se,Pe;if((0,ct.assertNonNullable)(j),!tt(j.ui.controls.disabledControls$).has("PLAY_BUTTON")){if(M({message:"toggle play"}),tt(j.playerPhase)==="ads"){Y.togglePlay();return}if(R.info.playbackState$.getValue()!==an.PlaybackState.PLAYING){if(R.info.isEnded$.getValue()){if(M({message:"toggle play, video ended, seek to 0"}),at.next(),ut.next(oo.SeekAction.REWIND),S){v==null||v();return}R.seekTime(0)}M({message:"toggle play, call player.play"}),R.play(),(se=a==null?void 0:a.onPlay)==null||se.call(a)}else M({message:"toggle play, call player.pause"}),R.pause(),(Pe=a==null?void 0:a.onPause)==null||Pe.call(a)}},qe=A=>{M({message:`set quality, quality: ${A}`}),R.setAutoQuality(A==="auto"),A!=="auto"?(gc(e,A),ti.set(A),R.setQuality(A)):Ms()},on=A=>{M({message:`set trafficSavingEnabled, value: ${A}`}),R.setAutoQualityLimits({max:A?O.trafficSavingLimit:void 0}),kc(A)},Hi=A=>{R.info.isLive$.getValue()||(R.setPlaybackRate(A),O.features.saveRate&&le&&Sc(A))},Yi=()=>{let A=tt(Pi),se=A.findIndex(({selected:We})=>We);if(se===A.length-1)return;let Pe=A[se+1];Hi(Pe.value)},ln=()=>{let A=tt(Pi),se=A.findIndex(({selected:We})=>We);if(se===0)return;let Pe=A[se-1];Hi(Pe.value)},Zi=A=>{A&&A.value!==xt.value&&ft.next(A.isAuto?A.value+"_auto":A.value),Ti.set(A)},Cn=()=>{let A=tt(ii),se=tt(Ti),Pe=tt(Le);if((se==null?void 0:se.value)===xt.value){let We=A.filter(rt=>rt.value!==xt.value).find(rt=>rt.value===Pe)||A[1];Zi(We!=null?We:{...xt})}else Zi({...xt,selected:!1})},ni=(A,se,Pe=!0)=>{if(M({message:`seek to time, time: ${A}`}),ut.next(se),R.info.isLive$.getValue()){let We=R.info.duration$.getValue(),rt=Math.min(0,We+A);R.seekTime(rt,Pe)}else{if(P!=null&&P.getValue())return;R.seekTime(ko(A),Pe)}},oi=A=>{M({message:`seek to episode start time: ${A}`}),ni(A,oo.SeekAction.EPISODE,!0)},Xi=(A,se)=>{M({message:`seek to percent, percent: ${A}`});let Pe=Math.round(tt(Qt)*A);ni(Pe,se,!1)},di=A=>{M({message:`seek external, time: ${A}`}),ut.next(oo.SeekAction.UNKNOWN),R.seekTime(R.info.isLive$.getValue()?-A:A)},re=A=>{var se,Pe;M({message:`set auto quality limitation. Max: ${(se=A.max)!=null?se:"none"}. Min: ${(Pe=A.min)!=null?Pe:"none"}`}),R.setAutoQualityLimits(A)},dt=A=>{M({message:`seek external to episode start time: ${A}`}),ni(A,oo.SeekAction.EPISODE,!0)},mi=A=>{M({message:`set playback rate to: ${A}`}),R.setPlaybackRate(A)},pi=Ne(void 0),li=Ne(!1),Xt=A=>{M({message:`start scrubbing, progress: ${A}`}),li.set(!0),Nn(A)},Nn=A=>{pi.set(A)},Vn,Sn,Kt=()=>{pi.set(void 0),li.set(!1)},yn=()=>{clearTimeout(Sn),clearTimeout(Vn),Vn=window.setTimeout(()=>{Kt()},500),ke==null||ke.removeEventListener("seeked",yn)},jn=A=>{M({message:`complete scrubbing, progress: ${A}`}),Xi(A,oo.SeekAction.SLIDER),tt(j.ui.isMobile)&&tt(j.state.currentFormat$)===an.VideoFormat.HLS?(ke==null||ke.addEventListener("seeked",yn),Sn=window.setTimeout(()=>{yn()},300)):Kt()},On=Ai([vt,Qt,pi],([A,se,Pe],We)=>{We((0,ct.isNonNullable)(Pe)?Pe*se:A)}),Fn=Ne({width:0,height:0}),An=Ai([Fn],([{width:A}],se)=>{let Pe=Dd(A);se(Pe)}),rn=Ne(!1),Hn=Ai([An,rn],([A,se])=>se?N.filter(Pe=>!Pe.hideOnMobile):N.filter(Pe=>{var We;return!((We=Pe.hideOnDesktopGridTypes)!=null&&We.includes(A))})),zn=Ai([rn,et],([A,se],Pe)=>{Pe(A&&se)}),ne=()=>{ut.next(oo.SeekAction.LIVE),M({message:"switch to active live"}),R.seekTime(0),R.info.playbackState$.getValue()!==an.PlaybackState.PLAYING&&j.actions.internal.togglePlay()},St=()=>Y.skip(),Pn=(A=!0)=>{(0,ct.assertNonNullable)(j),M({message:`switch from ads to video, callPlay: ${A}`}),Xe.set("video"),A&&R.play()},hn=()=>{(0,ct.assertNonNullable)(j),M({message:"switch from video to ads"}),j.actions.internal.pause(),we(),Xe.set("ads")},Tn=A=>{(0,ct.assertNonNullable)(j);let se=A?"waitingLive":"thumb";Xe.set(se)},wn=A=>{(0,ct.assertNonNullable)(j);let se=A?"waitingRecord":"thumb";Xe.set(se)},lo=()=>((0,ct.assertNonNullable)(j),uc(R,ee,j)),ro=()=>((0,ct.assertNonNullable)(j),fc(R,ee,j)),yo=()=>ke,so=()=>{M({message:"toggle chromecast"}),R.toggleChromecast()},gn=A=>{var Pe;(0,ct.assertNonNullable)(j);let se=!A;if(tt(j.playerPhase)==="ads"){M({message:`pause ads, internalCall: ${se}`}),Y.pause();return}M({message:`pause video, internalCall: ${se}`}),se&&((Pe=a==null?void 0:a.onPause)==null||Pe.call(a)),R.pause()},ie=A=>{var Pe;(0,ct.assertNonNullable)(j);let se=!A;if(tt(j.playerPhase)==="ads"){M({message:`play ads, internalCall: ${se}`}),Y.play();return}M({message:`play video, internalCall: ${se}`}),se&&((Pe=a==null?void 0:a.onPlay)==null||Pe.call(a)),R.play()},ao=(A,se)=>{(0,ct.assertNonNullable)(j),M({message:`first start, show ads: ${A}, internalCall: ${!se}`}),A?Xe.set("ads"):(Xe.set("video"),se?R.play():j.actions.internal.togglePlay())},xn=()=>(M({message:"getting time codes"}),u),wo=()=>{let A=xn();if(!A||[0,1].includes(A.length))return;let se=R.info.position$.getValue();return A.find(Pe=>Pe.time>se)},$n=A=>{let se=A;se||(se=wo()),se&&(M({message:"seek to next episode"}),ni(se.time,oo.SeekAction.EPISODE,!0))},eo=()=>{let A=xn();if(!A||[0,1].includes(A.length))return;let se=R.info.position$.getValue(),Pe=A.findIndex(rt=>rt.time>se),We=Pe===-1?A.length-2:Pe-2;if(!(We<0))return A[We]},qo=A=>{let se=A;se||(se=eo()),se&&(M({message:"seek to prev episode"}),ni(se.time,oo.SeekAction.EPISODE,!0))},Uo=()=>(M({message:"getting preview thumbs data"}),c),vl=async()=>{E!=null&&E.isActive()?await(E==null?void 0:E.remove()):await(E==null?void 0:E.request())},Ko=(A=-90)=>{be.update(se=>se+A)},Qn=Ne([]);y==null||y.subscribe(A=>{let se=[];for(let Pe=0;Pe<A.length;Pe++){let{range:[We,rt],subjects:Pt}=A[Pe];Pe===0&&We!==0&&se.push({time:0,text:"",interactive:!1,completed:!0}),se.push({time:We/1e3,text:"",interactive:!0,completed:!Pt.length}),rt!==1/0&&se.push({time:rt/1e3,text:"",interactive:!1,completed:!0})}Qn.set(se)});let Wo=Ne(!1);P==null||P.subscribe(A=>{A&&tt(li)&&Kt()});let ko=A=>{if(!S)return A;let se=tt(Qn),Pe=tt(Qt),rt=tt(Ht)/Pe,Pt=se.find(qt=>qt.interactive&&!qt.completed&&qt.time>rt);return typeof(Pt==null?void 0:Pt.time)=="number"?Math.min(A,Pt.time-.05):A},Co=()=>{j.ui.episodes.panelOpened$.set(!1)},Go=()=>{clearTimeout(Sn),clearTimeout(Vn),pt.unsubscribe(),Et.unsubscribe(),R.destroy(),Y.destroy(),U==null||U.destroy(),J==null||J.destroy(),$e.unsubscribe(),ht==null||ht.disconnect(),ht=null},j={interfaceLanguage$:Le,initVideo:ue,videoId:e,isClip:t,playerPhase:Te,vsid:xe,state:{positionExact$:vt,positionWithScrubbing$:On,duration$:Qt,playbackState$:Be,isPlaying$:ai,isLoaderVisible:ki,bufferedProgress$:_n,isLive$:jt,canChangePlaybackSpeed$:$i,isActiveLive$:ui,isOldestAvailableLive$:yt,isRewindableLive$:Ct,isEnded$:wt,muted$:gi,volume$:hi,trafficSavingEnabled$:Li,autoQualityLimitingAvailable$:ei,currentQuality$:Jt,isAutoQualityEnabled$:dn,availableQualities$:Si,currentPlaybackRate$:Gi,availablePlaybackRates$:Pi,currentSubtitle$:Ti,availableSubtitlesList$:ii,currentSubtitleCaptions$:Ii,isAutoSubtitleCaptionVisible$:pn,chromecastState$:vi,chromecastDeviceName$:Ki,chromecastConnected$:Ri,currentFormat$:ri,throughputEstimation$:Bi,videoBitrate$:yi,videoSize$:Wi,errorLog$:Oe,crashed$:et,isAudioAvailable$:si,isAudioDisabled:!!r,canDownload:O.features.download&&!!l,availableSources$:tn,hasMpegSources$:ji,isInteractive:S,showInteractiveGraph:O.features.interactiveGraph,showSeekToInteractive:O.features.seekToInteractive,showPlayPrevChapter:O.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:O.features.interactiveTimeIndicator&&!!tt(Qn).length,interactiveEpisodes$:Qn,isInteractiveTime$:P?It(P):Ne(!1),graphIsOpened$:Ne(!1),isInteractiveExpectation$:Wo,hasInteractiveBranches:g,playPrevChapterDisabledTooltip:I,looped$:Fi,isFirstBytes$:Ne(!1)},ui:{controlsVisible:Ne(!1),touched:Ne(!1),controls:{prevButton:Ne(void 0),playButton:Ne(void 0),replayButton:Ne(void 0),nextButton:Ne(void 0),playPrevChapterButton:Ne(void 0),seekToInteractiveButton:Ne(void 0),interactiveGraphButton:Ne(void 0),liveButton:Ne(void 0),time:Ne(void 0),episodes:Ne(void 0),volume:Ne(void 0),subtitles:Ne(void 0),settings:Ne(void 0),context:Ne(void 0),chromecast:Ne(void 0),pip:Ne(void 0),fullscreen:Ne(void 0),vkLogo:Ne(void 0),interactiveTimeIndicator:Ne(void 0),additionalButtons:N.length?N.reduce(A=>[...A,Ne(void 0)],[]):[],disabledControls$:Z},modals:{hotKeyMap:{show:Ne(!1),data:Ne({title:"",closeBtnText:"",groups:[]})}},isFullscreen:je,rotateAlpha:be,isAutoplay:Ne(!1),debugPanelVisible:Ne(!1),episodes:{panelOpened$:Ne(!1),openedByKeyboard$:Ne(!1)},contextMenu:{visible$:Ne(!1),btnRef$:Ne(void 0),openedByBtnKeyboard$:Ne(!1),openedByHotKey$:Ne(!1),lastActiveElem$:Ne(void 0),showContextMenuBtn$:Ne(!1),position$:Ne({top:0,left:0})},playerSize:Fn,isMobile:rn,mobileNotReportControlHidden$:zn,mobileUnmuteButtonExpanded:Ne(!1),mobileUnmuteButtonVisible:Ne(!1),icon3DVideoVisible:Ne(!1),settingsMenuVisible:Ne(!1),settingsMenuOpenedByKeyboard:Ne(!1),scrubbingInProgress:li,is3DVideo:Ne(!1),isPictureInPictureActive$:bt,pictureInPictureType$:Bn(X),clientInfo$:Bn(Ue),currentGridType$:An,additionalButtons$:Hn,interactiveHideMobileControls:Ne(!1),overlayContainer$:Ne(void 0),startedByKeyboard$:Ne(!1)},ads:{position:Ne(0),duration:Ne(0),playbackState:Ne("inactive"),canSkip:Ne(!1),secondsToWatchBeforeSkip:Ne(0),postrollPassed:Ne(!1)},webApi:{pictureInPictureApi:E,annotationsApi:te},actions:{internal:{preload:Qi,firstStart:A=>ao(A,!1),pause:()=>gn(!1),togglePlay:Zt,toggleMuted:ci,toggleSettingsMenu:nn,openSettingsMenu:Ni,closeSettingsMenu:Ei,setVolume:Mi,setQuality:qe,setTrafficSavingEnabled:A=>on(A),setPlaybackRate:Hi,incrementPlaybackRate:Yi,decrementPlaybackRate:ln,setSubtitle:Zi,toggleSubtitle:Cn,togglePictureInPicture:vl,startScrubbing:Xt,progressScrubbing:Nn,completeScrubbing:jn,toggleChromecast:so,switchToActiveLive:ne,switchFromAdsToVideo:Pn,switchFromVideoToAds:hn,skipAd:St,setWaitingLive:Tn,setWaitingRecord:wn,getDebugTextData:lo,getDebugPanelData:ro,getVideoElement:yo,seekTime:(A,se,Pe)=>ni(A,se,Pe),clearDelayedBufferingCheckTimeout:Ci,seekEpisodeStartTime:oi,seekToPercent:Xi,getNextEpisode:wo,seekToNextEpisode:$n,getPrevEpisode:eo,seekToPrevEpisode:qo,startLogging:Mt,stopLogging:ze,startCameraManualRotation:Ut,stopCameraManualRotation:Ft,moveCameraFocusPX:_e,holdCamera:Nt,releaseCamera:mt,getVideoEpisodes:xn,getPreviewThumbsData:Uo,downloadVideo:$t,addLanguage:As,setLanguage:ye,nextMovie:Je,videoRotate:Ko,correctSeekTimeToInteractive:ko,replayInteractive:v,setLooped:Ze},external:{firstStart:A=>ao(A,!0),play:()=>ie(!0),pause:()=>gn(!0),seekTime:A=>di(A),seekEpisodeStartTime:A=>dt(A),setPlaybackRate:A=>mi(A),setAutoQualityLimits:A=>re(A),setMuted:A=>Oi(A,!0),setVolume:A=>Mi(A,A,!0),returnFocusToEpisodes:Co}},callbacks:a,setUiCallbacks:A=>{Ge={...A}},getAdmanWrapper:()=>Y,getLogger:()=>x,destroy:Go};return j};var xr=(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 $r=async(i,e,t)=>{await Kn(),e&&t&&(t.focus(),i.set(!1))};function P3(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=oe(a,l[s]);return{c(){e=V("svg"),r&&r.c(),t=V("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"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(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&&k(e),r&&r.d(s)}}}function T3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Vu=class extends K{constructor(e){super(),G(this,e,T3,P3,q,{})}},bm=Vu;function I3(i){let e,t;return e=new bm({}),{c(){D(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){B(e,n)}}}function E3(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 _t({props:r}),pe.push(()=>He(e,"ref",o)),{c(){D(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],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function M3(i,e,t){let n,{disabled:o=!1}=e,{ariaLabel:r=""}=e,l=it(),a=l.ui.contextMenu.visible$;z(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,w=P=>{let v=nl(P),g=Xc(h);c.set(g),s.set(v),a.set(!n)},b=()=>{u.set(!0)},S=()=>{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,w,b,S,y]}var Au=class extends K{constructor(e){super(),G(this,e,M3,E3,q,{disabled:0,ariaLabel:1})}},vm=Au;function V3(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 A3(i){let e,t;return e=new Mr({props:{completed:!0}}),{c(){D(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p:de,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function L3(i){let e,t,n,o,r,l,a,s,u,c;function m(w){i[22](w)}let h={tooltipContent:Q("tooltip_interactive_interaction_time_indicator"),tooltipActive:i[5],initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:i[13],$$slots:{default:[A3]},$$scope:{ctx:i}};return i[0]!==void 0&&(h.ref=i[0]),t=new Ot({props:h}),pe.push(()=>He(t,"ref",m)),t.$on("click",i[14]),{c(){e=T("div"),D(t.$$.fragment),o=F(),r=T("div"),l=F(),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,b){C(w,e,b),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=[me(e,"mousemove",st(i[21])),me(e,"mouseleave",i[15])],u=!0)},p(w,b){let S={};b[0]&32&&(S.tooltipActive=w[5]),b[1]&1&&(S.$$scope={dirty:b,ctx:w}),!n&&b[0]&1&&(n=!0,S.ref=w[0],Fe(()=>n=!1)),t.$set(S),(!s||b[0]&2)&&H(r,"hidden",w[1]),(!s||b[0]&16)&&H(a,"paused",w[4]),(!s||b[0]&4)&&H(e,"mobile",w[2]),(!s||b[0]&64)&&H(e,"fullscreen",w[6]),(!s||b[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&&k(e),B(t),i[23](null),i[24](null),u=!1,nt(c)}}}function B3(i,e,t){var ee;let n,o,r,l,a,s,{ref:u=void 0}=e,c,m=it(),h=Rn(),{interactiveControlsOpacity$:w}=h;z(i,w,ke=>t(18,o=ke));let b=m.ui.isMobile;z(i,b,ke=>t(2,a=ke));let S=m.ui.isFullscreen;z(i,S,ke=>t(6,s=ke));let y=m.state.isInteractiveTime$;z(i,y,ke=>t(19,r=ke));let P=h.showInteractiveTimeIndicatorTooltip$;z(i,P,ke=>t(17,n=ke));let v=m.ui.controlsVisible;z(i,v,ke=>t(20,l=ke));let g=(ee=m.callbacks)==null?void 0:ee.onInteractiveTimeIndicatorClick,I,N,W,U=()=>{t(4,W=!0)},le=()=>{ae(),c==null||c.addEventListener("animationiteration",U,{once:!0})},ae=()=>{t(4,W=!1),c==null||c.removeEventListener("animationiteration",U)},O=ke=>{P.set(ke)},R,x=()=>{N||(P.set(!0),g==null||g())};Un(()=>{P.clearTimeout(),ae()});let Y=()=>{P.set(!1)};function J(ke){In.call(this,i,ke)}function E(ke){u=ke,t(0,u)}function te(ke){pe[ke?"unshift":"push"](()=>{u=ke,t(0,u)})}function M(ke){pe[ke?"unshift":"push"](()=>{c=ke,t(3,c)})}return i.$$set=ke=>{"ref"in ke&&t(0,u=ke.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,W=N);if(i.$$.dirty[0]&131074)e:t(5,R=n&&!N);if(i.$$.dirty[0]&131072)e:n?le():ae()},[u,N,a,c,W,R,s,w,b,S,y,P,v,O,x,Y,I,n,o,r,l,J,E,te,M]}var Lu=class extends K{constructor(e){super(),G(this,e,B3,L3,q,{ref:0},V3,[-1,-1])}},es=Lu;function D3(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 ym(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 wm(i){let e,t,n;function o(l){i[173](l)}let r={disabled:!i[9],tooltipContent:Q("tooltip_previous"),$$slots:{default:[N3]},$$scope:{ctx:i}};return i[23].prevButton!==void 0&&(r.ref=i[23].prevButton),e=new Ot({props:r}),pe.push(()=>He(e,"ref",o)),{c(){D(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,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function N3(i){let e,t;return e=new fl({props:{click:i[12],type:"prev",disabled:!i[9],isMobile:!1}}),{c(){D(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){B(e,n)}}}function km(i){let e,t,n;function o(l){i[174](l)}let r={disabled:i[74],tooltipContent:Q("tooltip_restart"),$$slots:{default:[O3]},$$scope:{ctx:i}};return i[23].replayButton!==void 0&&(r.ref=i[23].replayButton),e=new Ot({props:r}),pe.push(()=>He(e,"ref",o)),{c(){D(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,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function O3(i){let e,t;return e=new Dl({props:{click:i[128],disabled:i[74]}}),{c(){D(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){B(e,n)}}}function Cm(i){let e,t,n;function o(l){i[176](l)}let r={tooltipContent:i[47],disabled:i[75],$$slots:{default:[F3]},$$scope:{ctx:i}};return i[23].playButton!==void 0&&(r.ref=i[23].playButton),e=new Ot({props:r}),pe.push(()=>He(e,"ref",o)),{c(){D(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,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function F3(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 Rl({props:r}),pe.push(()=>He(e,"ref",o)),{c(){D(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],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function Sm(i){let e,t,n;function o(l){i[177](l)}let r={disabled:!i[8],tooltipContent:Q("tooltip_next"),$$slots:{default:[H3]},$$scope:{ctx:i}};return i[23].nextButton!==void 0&&(r.ref=i[23].nextButton),e=new Ot({props:r}),pe.push(()=>He(e,"ref",o)),{c(){D(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,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function H3(i){let e,t;return e=new fl({props:{click:i[11],type:"next",disabled:!i[8],isMobile:!1}}),{c(){D(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){B(e,n)}}}function z3(i){let e,t,n,o,r=i[121]&&q3(i),l=i[120]&&K3(i),a=i[119]&&G3(i);return{c(){r&&r.c(),e=F(),l&&l.c(),t=F(),a&&a.c(),n=lt()},m(s,u){r&&r.m(s,u),C(s,e,u),l&&l.m(s,u),C(s,t,u),a&&a.m(s,u),C(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&&(k(e),k(t),k(n)),r&&r.d(s),l&&l.d(s),a&&a.d(s)}}}function q3(i){let e,t,n;function o(l){i[178](l)}let r={disabled:i[73],tooltipContent:Q("tooltip_interactive_go_back"),disabledTooltipContent:Q(i[124]),$$slots:{default:[U3]},$$scope:{ctx:i}};return i[23].playPrevChapterButton!==void 0&&(r.ref=i[23].playPrevChapterButton),e=new Ot({props:r}),pe.push(()=>He(e,"ref",o)),{c(){D(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,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function U3(i){let e,t;return e=new Wr({props:{disabled:i[73],click:i[17]}}),{c(){D(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){B(e,n)}}}function K3(i){let e,t,n;function o(l){i[179](l)}let r={disabled:i[76],tooltipContent:Q("tooltip_interactive_seek"),disabledTooltipContent:Q(i[78]),$$slots:{default:[W3]},$$scope:{ctx:i}};return i[23].seekToInteractiveButton!==void 0&&(r.ref=i[23].seekToInteractiveButton),e=new Ot({props:r}),pe.push(()=>He(e,"ref",o)),{c(){D(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=Q(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,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function W3(i){let e,t;return e=new qr({props:{disabled:i[76],click:i[15]}}),{c(){D(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){B(e,n)}}}function G3(i){let e,t,n;function o(l){i[180](l)}let r={tooltipContent:i[48],disabled:i[77],$$slots:{default:[j3]},$$scope:{ctx:i}};return i[23].interactiveGraphButton!==void 0&&(r.ref=i[23].interactiveGraphButton),e=new Ot({props:r}),pe.push(()=>He(e,"ref",o)),{c(){D(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,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function j3(i){let e,t;return e=new Ur({props:{click:i[16],graphIsOpened:i[31],disabled:i[77]}}),{c(){D(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){B(e,n)}}}function Pm(i){let e,t,n;function o(l){i[181](l)}let r={tooltipContent:i[50],$$slots:{default:[Q3]},$$scope:{ctx:i}};return i[23].liveButton!==void 0&&(r.ref=i[23].liveButton),e=new Ot({props:r}),pe.push(()=>He(e,"ref",o)),{c(){D(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,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function Q3(i){let e,t;return e=new Nr({props:{isActiveLive:i[21],isMobile:!1,ariaLabel:i[50]}}),{c(){D(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){B(e,n)}}}function Tm(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 Ir({props:r}),pe.push(()=>He(e,"ref",o)),{c(){D(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,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function Im(i){let e,t;return e=new zr({props:{position:i[80],duration:i[82],timeCodes:i[101]}}),{c(){D(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){B(e,n)}}}function Y3(i){let e,t,n=i[20]&&Im(i);return{c(){n&&n.c(),e=lt()},m(o,r){n&&n.m(o,r),C(o,e,r),t=!0},p(o,r){o[20]?n?(n.p(o,r),r[0]&1048576&&d(n,1)):(n=Im(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(fe(),_(n,1,1,()=>{n=null}),ce())},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&k(e),n&&n.d(o)}}}function Z3(i){var n;let e,t;return e=new Gr({props:{iconUrl:i[209],ariaLabel:(n=i[210])!=null?n:i[213],testId:i[211],onClick:i[212]}}),{c(){D(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){B(e,o)}}}function Em(i){let e,t;return e=new Ot({props:{tooltipContent:i[213],width:40,$$slots:{default:[Z3]},$$scope:{ctx:i}}}),{c(){D(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){B(e,n)}}}function Mm(i){let e,t,n;function o(l){i[185](l)}let r={disabled:!i[6],tooltipContent:i[51],$$slots:{default:[X3]},$$scope:{ctx:i}};return i[23].vkLogo!==void 0&&(r.ref=i[23].vkLogo),e=new Ot({props:r}),pe.push(()=>He(e,"ref",o)),{c(){D(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,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function X3(i){let e,t;return e=new Br({props:{click:i[86],targetUrl:i[7],logoClickable:i[6]}}),{c(){D(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){B(e,n)}}}function J3(i){let e,t;return e=new Od({props:{click:i[127]}}),{c(){D(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p:de,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Vm(i){let e,t,n;function o(l){i[187](l)}let r={tooltipContent:i[52],$$slots:{default:[x3]},$$scope:{ctx:i}};return i[23].subtitles!==void 0&&(r.ref=i[23].subtitles),e=new Ot({props:r}),pe.push(()=>He(e,"ref",o)),{c(){D(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,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function x3(i){let e,t;return e=new yd({props:{isSubtitlesEnabled:i[18],click:i[87]}}),{c(){D(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){B(e,n)}}}function Am(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 Tr({props:l}),pe.push(()=>He(t,"ref",r)),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","settings-menu svelte-st0uzk")},m(s,u){C(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],Fe(()=>n=!1)),t.$set(c)},i(s){o||(d(t.$$.fragment,s),o=!0)},o(s){_(t.$$.fragment,s),o=!1},d(s){s&&k(e),B(t)}}}function Lm(i){let e,t,n;function o(l){i[190](l)}let r={tooltipContent:i[27]?void 0:Q("tooltip_settings_off"),$$slots:{default:[$3]},$$scope:{ctx:i}};return i[23].settings!==void 0&&(r.ref=i[23].settings),e=new Ot({props:r}),pe.push(()=>He(e,"ref",o)),{c(){D(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:Q("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,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function $3(i){let e,t,n;function o(l){i[189](l)}let r={};return i[25]!==void 0&&(r.ref=i[25]),e=new Ll({props:r}),pe.push(()=>He(e,"ref",o)),{c(){D(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],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function ev(i){let e,t,n;function o(l){i[191](l)}let r={className:i[41]?"":"out-of-view",tooltipContent:i[49],$$slots:{default:[tv]},$$scope:{ctx:i}};return i[23].context!==void 0&&(r.ref=i[23].context),e=new Ot({props:r}),pe.push(()=>He(e,"ref",o)),{c(){D(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,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function tv(i){let e,t;return e=new vm({props:{ariaLabel:i[49]}}),{c(){D(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){B(e,n)}}}function Bm(i){let e,t,n;function o(l){i[192](l)}let r={tooltipContent:i[53],$$slots:{default:[iv]},$$scope:{ctx:i}};return i[23].fullscreen!==void 0&&(r.ref=i[23].fullscreen),e=new Ot({props:r}),pe.push(()=>He(e,"ref",o)),{c(){D(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,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function iv(i){let e,t;return e=new Ar({props:{click:i[13],isFullscreen:i[30]}}),{c(){D(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){B(e,n)}}}function Rm(i){let e,t,n;function o(l){i[193](l)}let r={tooltipContent:i[54],$$slots:{default:[nv]},$$scope:{ctx:i}};return i[23].chromecast!==void 0&&(r.ref=i[23].chromecast),e=new Ot({props:r}),pe.push(()=>He(e,"ref",o)),{c(){D(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,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function nv(i){let e,t;return e=new Rr({props:{isMobile:!1,state:i[29],click:i[126]}}),{c(){D(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){B(e,n)}}}function ov(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 es({props:r}),pe.push(()=>He(e,"ref",o)),{c(){D(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,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function lv(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,b,S,y,P,v,g,I,N,W,U,le,ae,O,R,x,Y,J;t=new Hr({props:{isHidden:!i[45],isAds:i[4],canRewindLive:i[5],isRewindableLive:i[32]}});let E=i[38]&&wm(i),te=i[35]&&km(i),M=i[36]&&Cm(i),ee=i[37]&&Sm(i),ke=i[117]&&z3(i),Ge=!i[4]&&i[33]&&Pm(i),Ue=i[19]&&Tm(i);function xe(ue){i[183](ue)}let je={className:"w-max",disabled:!i[20],tooltipContent:Q("tooltip_episodes"),$$slots:{default:[Y3]},$$scope:{ctx:i}};i[23].episodes!==void 0&&(je.ref=i[23].episodes),w=new Ot({props:je}),pe.push(()=>He(w,"ref",xe));let ve=Tt(i[28]),X=[];for(let ue=0;ue<ve.length;ue+=1)X[ue]=Em(ym(i,ve,ue));let be=ue=>_(X[ue],1,1,()=>{X[ue]=null}),Oe=i[43]&&!i[4]&&Mm(i);function $e(ue){i[186](ue)}let et={$$slots:{default:[J3]},$$scope:{ctx:i}};i[23].volume!==void 0&&(et.ref=i[23].volume),I=new Ot({props:et}),pe.push(()=>He(I,"ref",$e));let ye=i[40]&&Vm(i),Le=!i[83]&&!i[4]&&Am(i),Ke=i[42]&&!i[4]&&Lm(i),Xe=i[84].features.contextMenuButton&&ev(i),Te=i[44]&&Bm(i),Z=i[39]&&Rm(i),Ce=i[122]&&ov(i);return{c(){e=T("div"),D(t.$$.fragment),n=F(),o=T("div"),r=T("div"),E&&E.c(),l=F(),te&&te.c(),a=F(),M&&M.c(),s=F(),ee&&ee.c(),u=F(),ke&&ke.c(),c=F(),Ge&&Ge.c(),m=F(),Ue&&Ue.c(),h=F(),D(w.$$.fragment),y=F(),P=T("div");for(let ue=0;ue<X.length;ue+=1)X[ue].c();v=F(),Oe&&Oe.c(),g=F(),D(I.$$.fragment),W=F(),ye&&ye.c(),U=F(),Le&&Le.c(),le=F(),Ke&&Ke.c(),ae=F(),Xe&&Xe.c(),O=F(),Te&&Te.c(),R=F(),Z&&Z.c(),x=F(),Ce&&Ce.c(),Y=lt(),f(r,"class","controls-left svelte-st0uzk"),Wn(()=>i[184].call(r)),f(P,"class","controls-right svelte-st0uzk"),f(o,"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(ue,Ie){C(ue,e,Ie),L(t,e,null),p(e,n),p(e,o),p(o,r),E&&E.m(r,null),p(r,l),te&&te.m(r,null),p(r,a),M&&M.m(r,null),p(r,s),ee&&ee.m(r,null),p(r,u),ke&&ke.m(r,null),p(r,c),Ge&&Ge.m(r,null),p(r,m),Ue&&Ue.m(r,null),p(r,h),L(w,r,null),S=jo(r,i[184].bind(r)),p(o,y),p(o,P);for(let Je=0;Je<X.length;Je+=1)X[Je]&&X[Je].m(P,null);p(P,v),Oe&&Oe.m(P,null),p(P,g),L(I,P,null),p(P,W),ye&&ye.m(P,null),p(P,U),Le&&Le.m(P,null),p(P,le),Ke&&Ke.m(P,null),p(P,ae),Xe&&Xe.m(P,null),p(P,O),Te&&Te.m(P,null),p(P,R),Z&&Z.m(P,null),i[194](o),i[195](e),C(ue,x,Ie),Ce&&Ce.m(ue,Ie),C(ue,Y,Ie),J=!0},p(ue,Ie){let Je={};Ie[1]&16384&&(Je.isHidden=!ue[45]),Ie[0]&16&&(Je.isAds=ue[4]),Ie[0]&32&&(Je.canRewindLive=ue[5]),Ie[1]&2&&(Je.isRewindableLive=ue[32]),t.$set(Je),ue[38]?E?(E.p(ue,Ie),Ie[1]&128&&d(E,1)):(E=wm(ue),E.c(),d(E,1),E.m(r,l)):E&&(fe(),_(E,1,1,()=>{E=null}),ce()),ue[35]?te?(te.p(ue,Ie),Ie[1]&16&&d(te,1)):(te=km(ue),te.c(),d(te,1),te.m(r,a)):te&&(fe(),_(te,1,1,()=>{te=null}),ce()),ue[36]?M?(M.p(ue,Ie),Ie[1]&32&&d(M,1)):(M=Cm(ue),M.c(),d(M,1),M.m(r,s)):M&&(fe(),_(M,1,1,()=>{M=null}),ce()),ue[37]?ee?(ee.p(ue,Ie),Ie[1]&64&&d(ee,1)):(ee=Sm(ue),ee.c(),d(ee,1),ee.m(r,u)):ee&&(fe(),_(ee,1,1,()=>{ee=null}),ce()),ue[117]&&ke.p(ue,Ie),!ue[4]&&ue[33]?Ge?(Ge.p(ue,Ie),Ie[0]&16|Ie[1]&4&&d(Ge,1)):(Ge=Pm(ue),Ge.c(),d(Ge,1),Ge.m(r,m)):Ge&&(fe(),_(Ge,1,1,()=>{Ge=null}),ce()),ue[19]?Ue?(Ue.p(ue,Ie),Ie[0]&524288&&d(Ue,1)):(Ue=Tm(ue),Ue.c(),d(Ue,1),Ue.m(r,h)):Ue&&(fe(),_(Ue,1,1,()=>{Ue=null}),ce());let at={};if(Ie[0]&1048576&&(at.disabled=!ue[20]),Ie[0]&1048576|Ie[2]&1310720|Ie[6]&1073741824&&(at.$$scope={dirty:Ie,ctx:ue}),!b&&Ie[0]&8388608&&(b=!0,at.ref=ue[23].episodes,Fe(()=>b=!1)),w.$set(at),Ie[0]&268435456){ve=Tt(ue[28]);let ft;for(ft=0;ft<ve.length;ft+=1){let ht=ym(ue,ve,ft);X[ft]?(X[ft].p(ht,Ie),d(X[ft],1)):(X[ft]=Em(ht),X[ft].c(),d(X[ft],1),X[ft].m(P,v))}for(fe(),ft=ve.length;ft<X.length;ft+=1)be(ft);ce()}ue[43]&&!ue[4]?Oe?(Oe.p(ue,Ie),Ie[0]&16|Ie[1]&4096&&d(Oe,1)):(Oe=Mm(ue),Oe.c(),d(Oe,1),Oe.m(P,g)):Oe&&(fe(),_(Oe,1,1,()=>{Oe=null}),ce());let ut={};Ie[6]&1073741824&&(ut.$$scope={dirty:Ie,ctx:ue}),!N&&Ie[0]&8388608&&(N=!0,ut.ref=ue[23].volume,Fe(()=>N=!1)),I.$set(ut),ue[40]?ye?(ye.p(ue,Ie),Ie[1]&512&&d(ye,1)):(ye=Vm(ue),ye.c(),d(ye,1),ye.m(P,U)):ye&&(fe(),_(ye,1,1,()=>{ye=null}),ce()),!ue[83]&&!ue[4]?Le?(Le.p(ue,Ie),Ie[0]&16|Ie[2]&2097152&&d(Le,1)):(Le=Am(ue),Le.c(),d(Le,1),Le.m(P,le)):Le&&(fe(),_(Le,1,1,()=>{Le=null}),ce()),ue[42]&&!ue[4]?Ke?(Ke.p(ue,Ie),Ie[0]&16|Ie[1]&2048&&d(Ke,1)):(Ke=Lm(ue),Ke.c(),d(Ke,1),Ke.m(P,ae)):Ke&&(fe(),_(Ke,1,1,()=>{Ke=null}),ce()),ue[84].features.contextMenuButton&&Xe.p(ue,Ie),ue[44]?Te?(Te.p(ue,Ie),Ie[1]&8192&&d(Te,1)):(Te=Bm(ue),Te.c(),d(Te,1),Te.m(P,R)):Te&&(fe(),_(Te,1,1,()=>{Te=null}),ce()),ue[39]?Z?(Z.p(ue,Ie),Ie[1]&256&&d(Z,1)):(Z=Rm(ue),Z.c(),d(Z,1),Z.m(P,null)):Z&&(fe(),_(Z,1,1,()=>{Z=null}),ce()),(!J||Ie[0]&2)&&H(e,"hidden",ue[1]),(!J||Ie[0]&8)&&H(e,"controls-hidden",!ue[3]),(!J||Ie[0]&4)&&H(e,"no-smooth",ue[2]),ue[122]&&Ce.p(ue,Ie)},i(ue){if(!J){d(t.$$.fragment,ue),d(E),d(te),d(M),d(ee),d(ke),d(Ge),d(Ue),d(w.$$.fragment,ue);for(let Ie=0;Ie<ve.length;Ie+=1)d(X[Ie]);d(Oe),d(I.$$.fragment,ue),d(ye),d(Le),d(Ke),d(Xe),d(Te),d(Z),d(Ce),J=!0}},o(ue){_(t.$$.fragment,ue),_(E),_(te),_(M),_(ee),_(ke),_(Ge),_(Ue),_(w.$$.fragment,ue),X=X.filter(Boolean);for(let Ie=0;Ie<X.length;Ie+=1)_(X[Ie]);_(Oe),_(I.$$.fragment,ue),_(ye),_(Le),_(Ke),_(Xe),_(Te),_(Z),_(Ce),J=!1},d(ue){ue&&(k(e),k(x),k(Y)),B(t),E&&E.d(),te&&te.d(),M&&M.d(),ee&&ee.d(),ke&&ke.d(),Ge&&Ge.d(),Ue&&Ue.d(),B(w),S(),Ui(X,ue),Oe&&Oe.d(),B(I),ye&&ye.d(),Le&&Le.d(),Ke&&Ke.d(),Xe&&Xe.d(),Te&&Te.d(),Z&&Z.d(),i[194](null),i[195](null),Ce&&Ce.d(ue)}}}function rv(i,e,t){var Af,Lf;let n,o,r,l,a,s,u,c,m,h,w,b,S,y,P,v,g,I,N,W,U,le,ae,O,R,x,Y,J,E,te,M,ee,ke=de,Ge=()=>(ke(),ke=Wt(ae,$=>t(144,ee=$)),ae),Ue,xe=de,je=()=>(xe(),xe=Wt(le,$=>t(145,Ue=$)),le),ve,X=de,be=()=>(X(),X=Wt(U,$=>t(146,ve=$)),U),Oe,$e=de,et=()=>($e(),$e=Wt(W,$=>t(147,Oe=$)),W),ye,Le=de,Ke=()=>(Le(),Le=Wt(N,$=>t(148,ye=$)),N),Xe,Te=de,Z=()=>(Te(),Te=Wt(I,$=>t(149,Xe=$)),I),Ce,ue=de,Ie=()=>(ue(),ue=Wt(g,$=>t(150,Ce=$)),g),Je,at=de,ut=()=>(at(),at=Wt(v,$=>t(151,Je=$)),v),ft,ht=de,gt=()=>(ht(),ht=Wt(P,$=>t(152,ft=$)),P),we,pt=de,Et=()=>(pt(),pt=Wt(y,$=>t(153,we=$)),y),Mt,ze=de,Ut=()=>(ze(),ze=Wt(S,$=>t(154,Mt=$)),S),Ft,_e=de,Nt=()=>(_e(),_e=Wt(b,$=>t(155,Ft=$)),b),mt,vt=de,bt=()=>(vt(),vt=Wt(w,$=>t(156,mt=$)),w),Be,Qe=de,wt=()=>(Qe(),Qe=Wt(h,$=>t(157,Be=$)),h),jt,$i=de,fn=()=>($i(),$i=Wt(m,$=>t(158,jt=$)),m),hi,gi=de,Li=()=>(gi(),gi=Wt(c,$=>t(159,hi=$)),c),ei,bi=de,cn=()=>(bi(),bi=Wt(u,$=>t(160,ei=$)),u),vi,Ki,ri,Bi,yi,Wi,wi,si,At,Lt,ki,Ci,Qt,ai,ui,yt,Ht,Ct,Ri,ti,dn,mn,Jt;i.$$.on_destroy.push(()=>ke()),i.$$.on_destroy.push(()=>xe()),i.$$.on_destroy.push(()=>X()),i.$$.on_destroy.push(()=>$e()),i.$$.on_destroy.push(()=>Le()),i.$$.on_destroy.push(()=>Te()),i.$$.on_destroy.push(()=>ue()),i.$$.on_destroy.push(()=>at()),i.$$.on_destroy.push(()=>ht()),i.$$.on_destroy.push(()=>pt()),i.$$.on_destroy.push(()=>ze()),i.$$.on_destroy.push(()=>_e()),i.$$.on_destroy.push(()=>vt()),i.$$.on_destroy.push(()=>Qe()),i.$$.on_destroy.push(()=>$i()),i.$$.on_destroy.push(()=>gi()),i.$$.on_destroy.push(()=>bi());let{bottomHidden:Si}=e,{bottomNoSmooth:Gi}=e,{showControls:Pi}=e,{controlsElementRef:fi=void 0}=e,{isAds:Yt=!1}=e,{canRewindLive:xt}=e,{logoClickable:Ti}=e,{logoHidden:ii}=e,{logoTargetUrl:en=""}=e,{showNextPrevButtons:Ii}=e,{nextButtonActive:pn}=e,{prevButtonActive:_n}=e,{isOneVideoPlaylist:tn=!1}=e,{supportLink:ji}=e,{customFullscreenSupported:Di=!0}=e,{playNextVideo:$t}=e,{playPrevVideo:ci}=e,{repeatPlaylist:Ei}=e,{toggleFullscreen:Ni}=e,{returnFocus:nn}=e,{seekToInteractive:Mi}=e,{toggleGraph:Oi}=e,{playPrevChapter:Fi}=e,Ze=it(),Qi=Rn(),Zt=zt(),qe=Ze.actions.internal.toggleMuted,on=Ze.actions.internal.togglePlay,Hi=Ze.actions.internal.pause,Yi=Ze.actions.internal.toggleSubtitle,ln=(Af=Ze.callbacks)==null?void 0:Af.onAudioDoesNotExistHint,Zi=(Lf=Ze.callbacks)==null?void 0:Lf.onAudioDisabledHint,Cn=Ze.state.duration$;z(i,Cn,$=>t(82,mn=$));let ni=Ze.state.positionWithScrubbing$;z(i,ni,$=>t(80,ti=$));let oi=Ze.state.playbackState$;z(i,oi,$=>t(161,ri=$));let Xi=Ze.state.chromecastConnected$;z(i,Xi,$=>t(83,Jt=$));let di=Ze.state.isAudioAvailable$;z(i,di,$=>t(197,O=$));let re=Ze.state.isAudioDisabled,dt=Ze.state.isEnded$;z(i,dt,$=>t(169,ai=$));let mi=Ze.state.isLive$;z(i,mi,$=>t(33,si=$));let pi=Ze.state.isActiveLive$;z(i,pi,$=>t(163,Wi=$));let li=Ze.state.isRewindableLive$;z(i,li,$=>t(32,wi=$));let Xt=Ze.ui.isPictureInPictureActive$;z(i,Xt,$=>t(165,Lt=$));let Nn=Ze.ui.pictureInPictureType$;z(i,Nn,$=>t(164,At=$));let Vn=Ze.ui.settingsMenuVisible;z(i,Vn,$=>t(27,Y=$));let Sn=Ze.ui.settingsMenuOpenedByKeyboard;z(i,Sn,$=>t(140,x=$));let Kt=Ze.ui.controls,yn=Ze.actions.internal.getVideoEpisodes(),jn=Ze.state.chromecastState$;z(i,jn,$=>t(29,vi=$));let On=Ze.state.availableSubtitlesList$;z(i,On,$=>t(168,Qt=$));let Fn=Ze.state.currentSubtitle$;z(i,Fn,$=>t(170,ui=$));let An=Kt.disabledControls$;z(i,An,$=>t(172,Ht=$));let rn=Ze.ui.contextMenu.visible$;z(i,rn,$=>t(162,Bi=$));let Hn=Ze.ui.contextMenu.showContextMenuBtn$;z(i,Hn,$=>t(166,ki=$));let zn=Ze.ui.contextMenu.openedByBtnKeyboard$;z(i,zn,$=>t(167,Ci=$));let ne=Ze.ui.startedByKeyboard$;z(i,ne,$=>t(139,R=$));let St=Ze.ads.duration;z(i,St,$=>t(81,dn=$));let Pn=Ze.ads.position;z(i,Pn,$=>t(79,Ri=$));let hn=Ze.ads.playbackState;z(i,hn,$=>t(171,yt=$));let Tn=Ze.ui.isFullscreen;z(i,Tn,$=>t(30,Ki=$));let wn=Ze.ui.playerSize;z(i,wn,$=>t(142,E=$));let lo=Ze.ui.currentGridType$;z(i,lo,$=>t(143,te=$));let ro=Ze.ui.additionalButtons$;z(i,ro,$=>t(28,M=$));let yo=Ze.actions.internal.getVideoElement,so=Ze.actions.internal.replayInteractive,gn=Ze.state.isInteractive,ie=Ze.state.isInteractiveTime$;z(i,ie,$=>t(141,J=$));let ao=Ze.state.showInteractiveGraph,xn=Ze.state.showSeekToInteractive,wo=Ze.state.showPlayPrevChapter,$n=Ze.state.showInteractiveTimeIndicator,eo=Ze.state.graphIsOpened$;z(i,eo,$=>t(31,yi=$));let qo=Ze.state.playPrevChapterDisabledTooltip,Uo=Qi.seekToInteractiveDisabledTooltip$;z(i,Uo,$=>t(78,Ct=$));let vl=()=>Ze.actions.internal.toggleChromecast(),Ko,Qn,Wo,ko,Co,Go,j,kt,sn,Ji,Ln,A,se,Pe,We,rt,Pt,qt,Vt,zi,So,yl="",ql=($,bs)=>{if(!$){t(50,yl=Q("tooltip_live"));return}bs===Ho.PlaybackState.PAUSED&&t(50,yl=Q("tooltip_play"))},Tf,If,Ef,Mf,Ul,ot={},qn,wl,gs,Vf,Jp=(0,Dm.throttleFn)(xr,260,{leading:!1}),Kl,Wl,Gl;function xp(){_o({isAudioDisabled:re,audioDisabledHintCallback:Zi,isAudioAvailable:O,audioIsNotExistHintCallback:ln})&&qe()}let $p=gn?so:tn?on:Ei;function e2($){i.$$.not_equal(ot.prevButton,$)&&(ot.prevButton=$,t(23,ot))}function t2($){i.$$.not_equal(ot.replayButton,$)&&(ot.replayButton=$,t(23,ot))}function i2($){Gl=$,t(26,Gl)}function n2($){i.$$.not_equal(ot.playButton,$)&&(ot.playButton=$,t(23,ot))}function o2($){i.$$.not_equal(ot.nextButton,$)&&(ot.nextButton=$,t(23,ot))}function l2($){i.$$.not_equal(ot.playPrevChapterButton,$)&&(ot.playPrevChapterButton=$,t(23,ot))}function r2($){i.$$.not_equal(ot.seekToInteractiveButton,$)&&(ot.seekToInteractiveButton=$,t(23,ot))}function s2($){i.$$.not_equal(ot.interactiveGraphButton,$)&&(ot.interactiveGraphButton=$,t(23,ot))}function a2($){i.$$.not_equal(ot.liveButton,$)&&(ot.liveButton=$,t(23,ot))}function u2($){i.$$.not_equal(ot.time,$)&&(ot.time=$,t(23,ot))}function f2($){i.$$.not_equal(ot.episodes,$)&&(ot.episodes=$,t(23,ot))}function c2(){Ul=this.clientWidth,t(22,Ul)}function d2($){i.$$.not_equal(ot.vkLogo,$)&&(ot.vkLogo=$,t(23,ot))}function m2($){i.$$.not_equal(ot.volume,$)&&(ot.volume=$,t(23,ot))}function p2($){i.$$.not_equal(ot.subtitles,$)&&(ot.subtitles=$,t(23,ot))}function _2($){Kl=$,t(24,Kl)}function h2($){Wl=$,t(25,Wl)}function g2($){i.$$.not_equal(ot.settings,$)&&(ot.settings=$,t(23,ot))}function b2($){i.$$.not_equal(ot.context,$)&&(ot.context=$,t(23,ot))}function v2($){i.$$.not_equal(ot.fullscreen,$)&&(ot.fullscreen=$,t(23,ot))}function y2($){i.$$.not_equal(ot.chromecast,$)&&(ot.chromecast=$,t(23,ot))}function w2($){pe[$?"unshift":"push"](()=>{Pt=$,t(46,Pt)})}function k2($){pe[$?"unshift":"push"](()=>{fi=$,t(0,fi)})}function C2($){i.$$.not_equal(ot.interactiveTimeIndicator,$)&&(ot.interactiveTimeIndicator=$,t(23,ot))}i.$$set=$=>{"bottomHidden"in $&&t(1,Si=$.bottomHidden),"bottomNoSmooth"in $&&t(2,Gi=$.bottomNoSmooth),"showControls"in $&&t(3,Pi=$.showControls),"controlsElementRef"in $&&t(0,fi=$.controlsElementRef),"isAds"in $&&t(4,Yt=$.isAds),"canRewindLive"in $&&t(5,xt=$.canRewindLive),"logoClickable"in $&&t(6,Ti=$.logoClickable),"logoHidden"in $&&t(129,ii=$.logoHidden),"logoTargetUrl"in $&&t(7,en=$.logoTargetUrl),"showNextPrevButtons"in $&&t(130,Ii=$.showNextPrevButtons),"nextButtonActive"in $&&t(8,pn=$.nextButtonActive),"prevButtonActive"in $&&t(9,_n=$.prevButtonActive),"isOneVideoPlaylist"in $&&t(131,tn=$.isOneVideoPlaylist),"supportLink"in $&&t(10,ji=$.supportLink),"customFullscreenSupported"in $&&t(132,Di=$.customFullscreenSupported),"playNextVideo"in $&&t(11,$t=$.playNextVideo),"playPrevVideo"in $&&t(12,ci=$.playPrevVideo),"repeatPlaylist"in $&&t(133,Ei=$.repeatPlaylist),"toggleFullscreen"in $&&t(13,Ni=$.toggleFullscreen),"returnFocus"in $&&t(14,nn=$.returnFocus),"seekToInteractive"in $&&t(15,Mi=$.seekToInteractive),"toggleGraph"in $&&t(16,Oi=$.toggleGraph),"playPrevChapter"in $&&t(17,Fi=$.playPrevChapter)},i.$$.update=()=>{if(i.$$.dirty[5]&131072)e:t(138,n=Ht.has("EPISODE_BUTTON"));if(i.$$.dirty[5]&131072)e:t(77,o=Ht.has("GRAPH_BUTTON"));if(i.$$.dirty[5]&131072)e:t(76,r=Ht.has("SEEK_TO_INTERACTIVE_BUTTON"));if(i.$$.dirty[5]&131072)e:t(75,l=Ht.has("PLAY_BUTTON"));if(i.$$.dirty[5]&131072)e:t(74,a=Ht.has("REPLAY_BUTTON"));if(i.$$.dirty[5]&131072)e:t(73,s=Ht.has("PLAY_PREV_CHAPTER_BUTTON"));if(i.$$.dirty[0]&16|i.$$.dirty[5]&65600)e:t(34,Ko=Yt?yt==="playing":ri===Ho.PlaybackState.PLAYING);if(i.$$.dirty[5]&32768)e:t(18,Qn=ui.value!=="off");if(i.$$.dirty[0]&16|i.$$.dirty[5]&16384)e:t(35,Wo=ai&&!Yt||gn);if(i.$$.dirty[0]&16|i.$$.dirty[5]&16384)e:t(36,ko=!ai||gn||Yt);if(i.$$.dirty[4]&524288)e:t(134,Co=Mn(te,"m"));if(i.$$.dirty[0]&272|i.$$.dirty[4]&524352)e:t(37,Go=Ii&&Mn(te,"m")&&!Yt&&pn);if(i.$$.dirty[0]&528|i.$$.dirty[4]&524352)e:t(38,j=Ii&&Mn(te,"m")&&!Yt&&_n);if(i.$$.dirty[0]&536870912|i.$$.dirty[4]&524288|i.$$.dirty[5]&1536)e:t(39,kt=vi!==Ho.ChromecastState.NOT_AVAILABLE&&!(Lt&&At===1)&&Mn(te,"m")&&!gn);if(i.$$.dirty[4]&524288|i.$$.dirty[5]&8192)e:t(40,sn=Qt.length>0&&Mn(te,"m"));if(i.$$.dirty[5]&6144)e:t(41,Ji=Ci||ki);if(i.$$.dirty[4]&524288)e:t(42,Ln=Mn(te,"s"));if(i.$$.dirty[4]&32)e:t(43,A=!ii);if(i.$$.dirty[4]&524576|i.$$.dirty[5]&1536)e:t(44,se=Zt.features.fullscreen&&(ii||Mn(te,"s"))&&!(Lt&&At===1)&&(gn?Di:!0));if(i.$$.dirty[0]&16|i.$$.dirty[1]&4)e:t(19,Pe=(!si||Yt)&&!(Zt.features.interactiveHideTime&&gn));if(i.$$.dirty[4]&262144)e:t(45,We=E.width>100);if(i.$$.dirty[0]&16|i.$$.dirty[1]&4|i.$$.dirty[4]&17408)e:t(20,rt=!Yt&&!si&&!!(yn!=null&&yn.length)&&Co&&!n);if(i.$$.dirty[1]&2|i.$$.dirty[5]&256)e:t(21,qt=!wi||Wi);if(i.$$.dirty[5]&64)e:t(47,Vt=ri===Ho.PlaybackState.PLAYING?Q("tooltip_pause"):Q("tooltip_play"));if(i.$$.dirty[1]&1)e:t(48,zi=yi?Q("tooltip_interactive_graph_on"):Q("tooltip_interactive_graph_off"));if(i.$$.dirty[5]&128)e:t(49,So=Bi?Q("aria_label_context_menu_close"):Q("aria_label_context_menu_open"));if(i.$$.dirty[0]&2097152|i.$$.dirty[5]&64)e:ql(qt,ri);if(i.$$.dirty[0]&262144)e:t(52,If=Qn?Q("tooltip_subtitles_on"):Q("tooltip_subtitles_off"));if(i.$$.dirty[0]&1073741824)e:t(53,Ef=Ki?Q("tooltip_fullscreen_on"):Q("tooltip_fullscreen_off"));if(i.$$.dirty[0]&536870912)e:t(54,Mf=vi===Ho.ChromecastState.CONNECTED?Q("tooltip_chromecast_on"):Q("tooltip_chromecast_off"));if(i.$$.dirty[0]&268435456|i.$$.dirty[4]&2146435072|i.$$.dirty[5]&63)e:t(135,qn={prevButton:ei?ei.right-ei.left:0,replayButton:hi?hi.right-hi.left:0,playButton:jt?jt.right-jt.left:0,nextButton:Be?Be.right-Be.left:0,playPrevChapterButton:mt?mt.right-mt.left:0,seekToInteractiveButton:Ft?Ft.right-Ft.left:0,interactiveGraphButton:Mt?Mt.right-Mt.left:0,liveButton:we?we.right-we.left:0,time:ft?ft.right-ft.left:0,episodes:Je?Je.right-Je.left:0,vkLogo:Ce?Ce.right-Ce.left:0,volume:Xe?Xe.right-Xe.left:0,subtitles:ye?ye.right-ye.left:0,settings:Oe?Oe.right-Oe.left:0,context:ve?ve.right-ve.left:0,fullscreen:Ue?Ue.right-Ue.left:0,chromecast:ee?ee.right-ee.left:0,additionalButtons:M.length?M.reduce($=>[...$,40],[]):[]});if(i.$$.dirty[4]&6144)e:(!wl||wl<qn.time)&&t(136,wl=qn.time);if(i.$$.dirty[0]&5767168|i.$$.dirty[4]&530432)e:{let $=0;rt&&(Mn(te,"xl")?$=qn.time:$=60);let bs=qn.prevButton+qn.playButton+qn.nextButton+qn.seekToInteractiveButton+qn.interactiveGraphButton+qn.liveButton+wl+$;t(137,gs=Pe&&Ul>=bs)}if(i.$$.dirty[4]&532480)e:t(55,Vf=gs&&Mn(te,"m"));if(i.$$.dirty[0]&8388616|i.$$.dirty[4]&393216)e:Jp(yo(),Kt,ot,Pi);if(i.$$.dirty[0]&167772160)e:ol(Wl,Y,Sn);if(i.$$.dirty[0]&150994944|i.$$.dirty[4]&65536)e:Oo(Kl,Y,x);if(i.$$.dirty[0]&67108864|i.$$.dirty[4]&32768)e:$r(ne,R,Gl)};e:t(51,Tf=Zt.logoType==="vk_video"?Q("tooltip_vk_video_logo"):Q("tooltip_vk_logo"));e:cn(t(72,{prevButton:u,replayButton:c,playButton:m,nextButton:h,playPrevChapterButton:w,seekToInteractiveButton:b,interactiveGraphButton:S,liveButton:y,time:P,episodes:v,vkLogo:g,volume:I,subtitles:N,settings:W,context:U,fullscreen:le,chromecast:ae}=Kt,u,Li(t(71,c)),fn(t(70,m)),wt(t(69,h)),bt(t(68,w)),Nt(t(67,b)),Ut(t(66,S)),Et(t(65,y)),gt(t(64,P)),ut(t(63,v)),Ie(t(62,g)),Z(t(61,I)),Ke(t(60,N)),et(t(59,W)),be(t(58,U)),je(t(57,le)),Ge(t(56,ae))));return[fi,Si,Gi,Pi,Yt,xt,Ti,en,pn,_n,ji,$t,ci,Ni,nn,Mi,Oi,Fi,Qn,Pe,rt,qt,Ul,ot,Kl,Wl,Gl,Y,M,vi,Ki,yi,wi,si,Ko,Wo,ko,Go,j,kt,sn,Ji,Ln,A,se,We,Pt,Vt,zi,So,yl,Tf,If,Ef,Mf,Vf,ae,le,U,W,N,I,g,v,P,y,S,b,w,h,m,c,u,s,a,l,r,o,Ct,Ri,ti,dn,mn,Jt,Zt,on,Hi,Yi,Cn,ni,oi,Xi,di,dt,mi,pi,li,Xt,Nn,Vn,Sn,yn,jn,On,Fn,An,rn,Hn,zn,ne,St,Pn,hn,Tn,wn,lo,ro,gn,ie,ao,xn,wo,$n,eo,qo,Uo,vl,xp,$p,ii,Ii,tn,Di,Ei,Co,qn,wl,gs,n,R,x,J,E,te,ee,Ue,ve,Oe,ye,Xe,Ce,Je,ft,we,Mt,Ft,mt,Be,jt,hi,ei,ri,Bi,Wi,At,Lt,ki,Ci,Qt,ai,ui,yt,Ht,e2,t2,i2,n2,o2,l2,r2,s2,a2,u2,f2,c2,d2,m2,p2,_2,h2,g2,b2,v2,y2,w2,k2,C2]}var Bu=class extends K{constructor(e){super(),G(this,e,rv,lv,q,{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},D3,[-1,-1,-1,-1,-1,-1,-1])}},Nm=Bu;var dl=require("@vkontakte/videoplayer-core");function sv(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=oe(u,s[c]);return{c(){e=V("svg"),a&&a.c(),t=V("g"),n=V("path"),o=V("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"),ge(e,u)},m(c,m){C(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)&&Ve(a,l,c,c[1],r?Me(l,c[1],m,null):Ae(c[1]),null),ge(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&&k(e),a&&a.d(c)}}}function av(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Du=class extends K{constructor(e){super(),G(this,e,av,sv,q,{})}},Om=Du;var Hm=require("@vkontakte/videoplayer-shared");function uv(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 Fm(i){let e;return{c(){e=T("span"),e.textContent=`${Q("mobile_unmute")}`,f(e,"class","text svelte-6gmlbk")},m(t,n){C(t,e,n)},p:de,d(t){t&&k(e)}}}function fv(i){let e,t,n,o;var r=i[4];function l(s){return{}}r&&(t=kn(r,l(i)));let a=i[1]&&Fm(i);return{c(){e=T("div"),t&&D(t.$$.fragment),n=F(),a&&a.c(),f(e,"class","container svelte-6gmlbk"),f(e,"aria-hidden","true"),H(e,"expanded",i[1])},m(s,u){C(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){fe();let c=t;_(c.$$.fragment,1,0,()=>{B(c,1)}),ce()}r?(t=kn(r,l(s)),D(t.$$.fragment),d(t.$$.fragment,1),L(t,e,n)):t=null}s[1]?a?a.p(s,u):(a=Fm(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&&k(e),t&&B(t),a&&a.d()}}}function cv(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:[fv]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new _t({props:r}),pe.push(()=>He(e,"ref",o)),{c(){D(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],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function dv(i,e,t){let{muted:n=!1}=e,{expanded:o=!1}=e,{click:r=Hm.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?Q("tooltip_volume"):Q("tooltip_volume_muted"));if(i.$$.dirty&2)e:t(4,s=o?Fo:Om)},[l,o,r,a,s,n,u]}var Nu=class extends K{constructor(e){super(),G(this,e,dv,cv,q,{muted:5,expanded:1,click:2,ref:0},uv)}},Ou=Nu;function mv(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=oe(u,s[c]);return{c(){e=V("svg"),a&&a.c(),t=V("path"),n=V("path"),o=V("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"),ge(e,u)},m(c,m){C(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)&&Ve(a,l,c,c[1],r?Me(l,c[1],m,null):Ae(c[1]),null),ge(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&&k(e),a&&a.d(c)}}}function pv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Fu=class extends K{constructor(e){super(),G(this,e,pv,mv,q,{})}},zm=Fu;function _v(i){Se(i,"svelte-sba75o",'svg[data-testid="pip-icon--active"] .hidden-not-active,svg[data-testid="pip-icon"] .hidden-active{visibility:hidden;opacity:0}')}function hv(i){let e,t;return e=new zm({props:{style:i[1],"data-testid":i[0]?"pip-icon--active":"pip-icon"}}),{c(){D(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){B(e,n)}}}function gv(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 Hu=class extends K{constructor(e){super(),G(this,e,gv,hv,q,{isActive:0},_v)}},qm=Hu;var Um=require("@vkontakte/videoplayer-shared");function bv(i){let e,t;return e=new qm({props:{isActive:i[1]}}),{c(){D(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){B(e,n)}}}function vv(i){let e,t,n;function o(l){i[3](l)}let r={testId:"btn-pip",ariaLabel:Q("menu_pip"),click:i[2],$$slots:{default:[bv]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new _t({props:r}),pe.push(()=>He(e,"ref",o)),{c(){D(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],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function yv(i,e,t){let{ref:n=void 0}=e,{isPictureInPictureActive:o=!1}=e,{click:r=Um.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 zu=class extends K{constructor(e){super(),G(this,e,yv,vv,q,{ref:0,isPictureInPictureActive:1,click:2})}},Km=zu;var d0=require("@vkontakte/videoplayer-shared");function wv(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 Wm(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 Gm(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,b,S,y,P,v=(!i[51]||i[53])&&jm(i),g=Tt(i[56]),I=[];for(let E=0;E<g.length;E+=1)I[E]=Qm(Wm(i,g,E));let N=E=>_(I[E],1,1,()=>{I[E]=null}),W=i[36]&&Ym(i),U=i[37]&&Zm(i),le=i[57]&&Xm(i),ae=i[39]&&Jm(i),O=i[8]&&xm(i),R=i[34]&&$m(i),x=i[33]&&e0(i),Y=i[8]&&t0(i),J=i[96]&&!i[29]&&i0(i);return{c(){e=T("div"),t=F(),n=T("div"),v&&v.c(),o=F(),r=T("div");for(let E=0;E<I.length;E+=1)I[E].c();l=F(),W&&W.c(),a=F(),U&&U.c(),s=F(),le&&le.c(),u=F(),ae&&ae.c(),c=F(),m=T("div"),O&&O.c(),h=F(),R&&R.c(),w=F(),x&&x.c(),b=F(),Y&&Y.c(),S=F(),J&&J.c(),y=lt(),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(E,te){C(E,e,te),C(E,t,te),C(E,n,te),v&&v.m(n,null),C(E,o,te),C(E,r,te);for(let M=0;M<I.length;M+=1)I[M]&&I[M].m(r,null);p(r,l),W&&W.m(r,null),p(r,a),U&&U.m(r,null),p(r,s),le&&le.m(r,null),p(r,u),ae&&ae.m(r,null),C(E,c,te),C(E,m,te),O&&O.m(m,null),p(m,h),R&&R.m(m,null),p(m,w),x&&x.m(m,null),p(m,b),Y&&Y.m(m,null),C(E,S,te),J&&J.m(E,te),C(E,y,te),P=!0},p(E,te){if((!P||te[1]&2048)&&H(e,"hidden",!E[42]),!E[51]||E[53]?v?(v.p(E,te),te[1]&5242880&&d(v,1)):(v=jm(E),v.c(),d(v,1),v.m(n,null)):v&&(fe(),_(v,1,1,()=>{v=null}),ce()),(!P||te[0]&8)&&H(n,"hidden",!E[3]),(!P||te[1]&2097152)&&H(n,"fullscreen",E[52]),te[1]&33554432){g=Tt(E[56]);let M;for(M=0;M<g.length;M+=1){let ee=Wm(E,g,M);I[M]?(I[M].p(ee,te),d(I[M],1)):(I[M]=Qm(ee),I[M].c(),d(I[M],1),I[M].m(r,l))}for(fe(),M=g.length;M<I.length;M+=1)N(M);ce()}E[36]?W?(W.p(E,te),te[1]&32&&d(W,1)):(W=Ym(E),W.c(),d(W,1),W.m(r,a)):W&&(fe(),_(W,1,1,()=>{W=null}),ce()),E[37]?U?(U.p(E,te),te[1]&64&&d(U,1)):(U=Zm(E),U.c(),d(U,1),U.m(r,s)):U&&(fe(),_(U,1,1,()=>{U=null}),ce()),E[57]?le?(le.p(E,te),te[1]&67108864&&d(le,1)):(le=Xm(E),le.c(),d(le,1),le.m(r,u)):le&&(fe(),_(le,1,1,()=>{le=null}),ce()),E[39]?ae?(ae.p(E,te),te[1]&256&&d(ae,1)):(ae=Jm(E),ae.c(),d(ae,1),ae.m(r,null)):ae&&(fe(),_(ae,1,1,()=>{ae=null}),ce()),(!P||te[0]&134217736)&&H(r,"hidden",!E[3]&&!E[27]),(!P||te[1]&2097152)&&H(r,"fullscreen",E[52]),E[8]?O?(O.p(E,te),te[0]&256&&d(O,1)):(O=xm(E),O.c(),d(O,1),O.m(m,h)):O&&(fe(),_(O,1,1,()=>{O=null}),ce()),E[34]?R?(R.p(E,te),te[1]&8&&d(R,1)):(R=$m(E),R.c(),d(R,1),R.m(m,w)):R&&(fe(),_(R,1,1,()=>{R=null}),ce()),E[33]?x?(x.p(E,te),te[1]&4&&d(x,1)):(x=e0(E),x.c(),d(x,1),x.m(m,b)):x&&(fe(),_(x,1,1,()=>{x=null}),ce()),E[8]?Y?(Y.p(E,te),te[0]&256&&d(Y,1)):(Y=t0(E),Y.c(),d(Y,1),Y.m(m,null)):Y&&(fe(),_(Y,1,1,()=>{Y=null}),ce()),(!P||te[0]&536870920)&&H(m,"hidden",!E[3]||E[29]),E[96]&&!E[29]?J?(J.p(E,te),te[0]&536870912&&d(J,1)):(J=i0(E),J.c(),d(J,1),J.m(y.parentNode,y)):J&&(fe(),_(J,1,1,()=>{J=null}),ce())},i(E){if(!P){d(v);for(let te=0;te<g.length;te+=1)d(I[te]);d(W),d(U),d(le),d(ae),d(O),d(R),d(x),d(Y),d(J),P=!0}},o(E){_(v),I=I.filter(Boolean);for(let te=0;te<I.length;te+=1)_(I[te]);_(W),_(U),_(le),_(ae),_(O),_(R),_(x),_(Y),_(J),P=!1},d(E){E&&(k(e),k(t),k(n),k(o),k(r),k(c),k(m),k(S),k(y)),v&&v.d(),Ui(I,E),W&&W.d(),U&&U.d(),le&&le.d(),ae&&ae.d(),O&&O.d(),R&&R.d(),x&&x.d(),Y&&Y.d(),J&&J.d(E)}}}function jm(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 Ou({props:r}),pe.push(()=>He(e,"ref",o)),{c(){D(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,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function Qm(i){var n;let e,t;return e=new Gr({props:{iconUrl:i[169],ariaLabel:(n=i[170])!=null?n:i[173],testId:i[171],onClick:i[172]}}),{c(){D(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){B(e,o)}}}function Ym(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 Rr({props:r}),pe.push(()=>He(e,"ref",o)),{c(){D(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,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function Zm(i){let e,t,n;function o(l){i[132](l)}let r={click:i[105],isPictureInPictureActive:i[26]};return i[20].pip!==void 0&&(r.ref=i[20].pip),e=new Km({props:r}),pe.push(()=>He(e,"ref",o)),{c(){D(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,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function Xm(i){let e,t,n;function o(l){i[133](l)}let r={};return i[22]!==void 0&&(r.ref=i[22]),e=new Ll({props:r}),pe.push(()=>He(e,"ref",o)),{c(){D(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],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function Jm(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 Br({props:r}),pe.push(()=>He(e,"ref",o)),{c(){D(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,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function xm(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 fl({props:r}),pe.push(()=>He(e,"ref",o)),{c(){D(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,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function $m(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 Rl({props:r}),pe.push(()=>He(e,"ref",o)),{c(){D(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,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function e0(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 Dl({props:r}),pe.push(()=>He(e,"ref",o)),{c(){D(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,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function t0(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 fl({props:r}),pe.push(()=>He(e,"ref",o)),{c(){D(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,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function i0(i){let e,t,n,o,r=i[100]&&kv(i),l=i[98]&&Cv(i),a=i[99]&&Sv(i);return{c(){r&&r.c(),e=F(),l&&l.c(),t=F(),a&&a.c(),n=lt()},m(s,u){r&&r.m(s,u),C(s,e,u),l&&l.m(s,u),C(s,t,u),a&&a.m(s,u),C(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&&(k(e),k(t),k(n)),r&&r.d(s),l&&l.d(s),a&&a.d(s)}}}function kv(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 Wr({props:s}),pe.push(()=>He(t,"ref",a)),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","wrapper-middle-left svelte-1tcstu3"),H(e,"fullscreen",i[52]),H(e,"hidden",!i[3])},m(u,c){C(u,e,c),L(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,Fe(()=>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&&k(e),B(t),r=!1,l()}}}function Cv(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 Ur({props:a}),pe.push(()=>He(t,"ref",l)),{c(){e=T("div"),D(t.$$.fragment),f(e,"class",o=Of(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){C(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,Fe(()=>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&&k(e),B(t)}}}function Sv(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 qr({props:s}),pe.push(()=>He(t,"ref",a)),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","wrapper-middle-right svelte-1tcstu3"),H(e,"fullscreen",i[52]),H(e,"hidden",!i[3])},m(u,c){C(u,e,c),L(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,Fe(()=>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&&k(e),B(t),r=!1,l()}}}function n0(i){let e,t,n,o,r,l=i[53]&&o0(i),a=i[32]&&l0(i);return o=new Fr({props:{position:i[59],duration:i[60]}}),{c(){l&&l.c(),e=F(),a&&a.c(),t=F(),n=T("div"),D(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),C(s,e,u),a&&a.m(s,u),C(s,t,u),C(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=o0(s),l.c(),d(l,1),l.m(e.parentNode,e)):l&&(fe(),_(l,1,1,()=>{l=null}),ce()),s[32]?a?(a.p(s,u),u[1]&2&&d(a,1)):(a=l0(s),a.c(),d(a,1),a.m(t.parentNode,t)):a&&(fe(),_(a,1,1,()=>{a=null}),ce());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&&(k(e),k(t),k(n)),l&&l.d(s),a&&a.d(s),B(o)}}}function o0(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 Ou({props:l}),pe.push(()=>He(t,"ref",r)),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","wrapper-top-right svelte-1tcstu3"),H(e,"fullscreen",i[52])},m(a,s){C(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,Fe(()=>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&&k(e),B(t)}}}function l0(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 Rl({props:l}),pe.push(()=>He(t,"ref",r)),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","wrapper-middle svelte-1tcstu3")},m(a,s){C(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,Fe(()=>n=!1)),t.$set(u)},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){_(t.$$.fragment,a),o=!1},d(a){a&&k(e),B(t)}}}function Pv(i){let e,t,n;function o(l){i[144](l)}let r={disabled:i[48],$$slots:{default:[Tv]},$$scope:{ctx:i}};return i[20].replayButton!==void 0&&(r.ref=i[20].replayButton),e=new Ot({props:r}),pe.push(()=>He(e,"ref",o)),{c(){D(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,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function Tv(i){let e,t;return e=new Dl({props:{disabled:i[48],click:i[95]}}),{c(){D(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){B(e,n)}}}function r0(i){let e,t,n;function o(l){i[145](l)}let r={$$slots:{default:[Iv]},$$scope:{ctx:i}};return i[20].liveButton!==void 0&&(r.ref=i[20].liveButton),e=new Ot({props:r}),pe.push(()=>He(e,"ref",o)),{c(){D(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,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function Iv(i){let e,t;return e=new Nr({props:{isActiveLive:i[19],isMobile:!0,ariaLabel:i[45]}}),{c(){D(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){B(e,n)}}}function s0(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 Ir({props:r}),pe.push(()=>He(e,"ref",o)),{c(){D(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,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function a0(i){let e,t,n,o;return n=new zr({props:{position:i[61],duration:i[62],timeCodes:i[84]}}),{c(){e=T("div"),e.textContent="\xB7",t=F(),D(n.$$.fragment),f(e,"aria-hidden","true")},m(r,l){C(r,e,l),C(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&&(k(e),k(t)),B(n,r)}}}function Ev(i){let e,t,n=i[43]&&a0(i);return{c(){n&&n.c(),e=lt()},m(o,r){n&&n.m(o,r),C(o,e,r),t=!0},p(o,r){o[43]?n?(n.p(o,r),r[1]&4096&&d(n,1)):(n=a0(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(fe(),_(n,1,1,()=>{n=null}),ce())},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&k(e),n&&n.d(o)}}}function u0(i){let e,t,n;function o(l){i[149](l)}let r={$$slots:{default:[Mv]},$$scope:{ctx:i}};return i[20].settings!==void 0&&(r.ref=i[20].settings),e=new Ot({props:r}),pe.push(()=>He(e,"ref",o)),{c(){D(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,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function Mv(i){let e,t,n;function o(l){i[148](l)}let r={};return i[22]!==void 0&&(r.ref=i[22]),e=new Ll({props:r}),pe.push(()=>He(e,"ref",o)),{c(){D(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],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function f0(i){let e,t,n;function o(l){i[150](l)}let r={$$slots:{default:[Vv]},$$scope:{ctx:i}};return i[20].fullscreen!==void 0&&(r.ref=i[20].fullscreen),e=new Ot({props:r}),pe.push(()=>He(e,"ref",o)),{c(){D(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,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function Vv(i){let e,t;return e=new Ar({props:{click:i[14],isFullscreen:i[52]}}),{c(){D(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){B(e,n)}}}function c0(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 Tr({props:l}),pe.push(()=>He(t,"ref",r)),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","settings-mobile svelte-1tcstu3")},m(a,s){C(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],Fe(()=>n=!1)),t.$set(u)},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){_(t.$$.fragment,a),o=!1},d(a){a&&k(e),B(t)}}}function Av(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 es({props:r}),pe.push(()=>He(e,"ref",o)),{c(){D(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,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function Lv(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,b,S,y,P,v,g=!i[4]&&Gm(i),I=i[4]&&i[30]!=="inactive"&&n0(i),N=i[96]&&Pv(i),W=!i[4]&&i[25]&&r0(i),U=i[41]&&s0(i);function le(J){i[147](J)}let ae={className:"w-max",disabled:!i[43],$$slots:{default:[Ev]},$$scope:{ctx:i}};i[20].episodes!==void 0&&(ae.ref=i[20].episodes),u=new Ot({props:ae}),pe.push(()=>He(u,"ref",le));let O=i[38]&&u0(i),R=i[40]&&f0(i);b=new Hr({props:{isAds:i[4],canRewindLive:i[5],isRewindableLive:i[24]}});let x=i[23]&&c0(i),Y=i[101]&&Av(i);return{c(){g&&g.c(),e=F(),I&&I.c(),t=F(),n=T("div"),o=T("div"),r=T("div"),N&&N.c(),l=F(),W&&W.c(),a=F(),U&&U.c(),s=F(),D(u.$$.fragment),m=F(),O&&O.c(),h=F(),R&&R.c(),w=F(),D(b.$$.fragment),S=F(),x&&x.c(),y=F(),Y&&Y.c(),P=lt(),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(J,E){g&&g.m(J,E),C(J,e,E),I&&I.m(J,E),C(J,t,E),C(J,n,E),p(n,o),p(o,r),N&&N.m(r,null),p(r,l),W&&W.m(r,null),p(r,a),U&&U.m(r,null),p(r,s),L(u,r,null),p(r,m),O&&O.m(r,null),p(r,h),R&&R.m(r,null),i[151](r),p(o,w),L(b,o,null),i[152](n),C(J,S,E),x&&x.m(J,E),C(J,y,E),Y&&Y.m(J,E),C(J,P,E),v=!0},p(J,E){J[4]?g&&(fe(),_(g,1,1,()=>{g=null}),ce()):g?(g.p(J,E),E[0]&16&&d(g,1)):(g=Gm(J),g.c(),d(g,1),g.m(e.parentNode,e)),J[4]&&J[30]!=="inactive"?I?(I.p(J,E),E[0]&1073741840&&d(I,1)):(I=n0(J),I.c(),d(I,1),I.m(t.parentNode,t)):I&&(fe(),_(I,1,1,()=>{I=null}),ce()),J[96]&&N.p(J,E),!J[4]&&J[25]?W?(W.p(J,E),E[0]&33554448&&d(W,1)):(W=r0(J),W.c(),d(W,1),W.m(r,a)):W&&(fe(),_(W,1,1,()=>{W=null}),ce()),J[41]?U?(U.p(J,E),E[1]&1024&&d(U,1)):(U=s0(J),U.c(),d(U,1),U.m(r,s)):U&&(fe(),_(U,1,1,()=>{U=null}),ce());let te={};E[1]&4096&&(te.disabled=!J[43]),E[1]&1073745920|E[2]&1|E[5]&2097152&&(te.$$scope={dirty:E,ctx:J}),!c&&E[0]&1048576&&(c=!0,te.ref=J[20].episodes,Fe(()=>c=!1)),u.$set(te),J[38]?O?(O.p(J,E),E[1]&128&&d(O,1)):(O=u0(J),O.c(),d(O,1),O.m(r,h)):O&&(fe(),_(O,1,1,()=>{O=null}),ce()),J[40]?R?(R.p(J,E),E[1]&512&&d(R,1)):(R=f0(J),R.c(),d(R,1),R.m(r,null)):R&&(fe(),_(R,1,1,()=>{R=null}),ce());let M={};E[0]&16&&(M.isAds=J[4]),E[0]&32&&(M.canRewindLive=J[5]),E[0]&16777216&&(M.isRewindableLive=J[24]),b.$set(M),(!v||E[1]&2097152)&&H(o,"fullscreen",J[52]),(!v||E[0]&2)&&H(n,"hidden",J[1]),(!v||E[0]&8)&&H(n,"controls-hidden",!J[3]),(!v||E[0]&4)&&H(n,"no-smooth",J[2]),J[23]?x?(x.p(J,E),E[0]&8388608&&d(x,1)):(x=c0(J),x.c(),d(x,1),x.m(y.parentNode,y)):x&&(fe(),_(x,1,1,()=>{x=null}),ce()),J[101]&&Y.p(J,E)},i(J){v||(d(g),d(I),d(N),d(W),d(U),d(u.$$.fragment,J),d(O),d(R),d(b.$$.fragment,J),d(x),d(Y),v=!0)},o(J){_(g),_(I),_(N),_(W),_(U),_(u.$$.fragment,J),_(O),_(R),_(b.$$.fragment,J),_(x),_(Y),v=!1},d(J){J&&(k(e),k(t),k(n),k(S),k(y),k(P)),g&&g.d(J),I&&I.d(J),N&&N.d(),W&&W.d(),U&&U.d(),B(u),O&&O.d(),R&&R.d(),i[151](null),B(b),i[152](null),x&&x.d(J),Y&&Y.d(J)}}}function Bv(i,e,t){var so,gn;let n,o,r,l,a,s,u,c,m,h,w,b,S,y,P,v,g,I,N,W,U,le,ae,O,R,x,Y,J,E,te,M,ee,ke,Ge,Ue,xe,je,{bottomHidden:ve}=e,{bottomNoSmooth:X}=e,{showControls:be}=e,{controlsElementRef:Oe=void 0}=e,{isAds:$e=!1}=e,{canRewindLive:et}=e,{logoClickable:ye}=e,{logoHidden:Le}=e,{logoTargetUrl:Ke=""}=e,{showNextPrevButtons:Xe}=e,{nextButtonActive:Te}=e,{prevButtonActive:Z}=e,{isOneVideoPlaylist:Ce=!1}=e,{supportLink:ue}=e,{customFullscreenSupported:Ie=!0}=e,{playNextVideo:Je}=e,{playPrevVideo:at}=e,{repeatPlaylist:ut}=e,{toggleFullscreen:ft}=e,{returnFocus:ht}=e,{seekToInteractive:gt}=e,{toggleGraph:we}=e,{playPrevChapter:pt}=e,{onDisabledPlayPrevChapterClick:Et}=e,{onDisabledSeekToInteractiveClick:Mt}=e,ze=it(),Ut=Rn(),Ft=zt(),_e=ze.actions.internal.toggleMuted,Nt=ze.actions.internal.togglePlay,mt=ze.actions.internal.pause,vt=(so=ze.callbacks)==null?void 0:so.onAudioDoesNotExistHint,bt=(gn=ze.callbacks)==null?void 0:gn.onAudioDisabledHint,Be=ze.playerPhase;z(i,Be,ie=>t(126,U=ie));let Qe=ze.state.duration$;z(i,Qe,ie=>t(62,je=ie));let wt=ze.state.positionWithScrubbing$;z(i,wt,ie=>t(61,xe=ie));let jt=ze.state.playbackState$;z(i,jt,ie=>t(121,h=ie));let $i=ze.state.isAudioAvailable$;z(i,$i,ie=>t(51,w=ie));let fn=ze.state.isAudioDisabled,hi=ze.state.isEnded$;z(i,hi,ie=>t(127,ae=ie));let gi=ze.state.isLive$;z(i,gi,ie=>t(25,v=ie));let Li=ze.state.muted$;z(i,Li,ie=>t(54,E=ie));let ei=ze.state.isActiveLive$;z(i,ei,ie=>t(124,y=ie));let bi=ze.state.isRewindableLive$;z(i,bi,ie=>t(24,P=ie));let cn=ze.ui.scrubbingInProgress;z(i,cn,ie=>t(29,le=ie));let vi=ze.ui.mobileNotReportControlHidden$;z(i,vi,ie=>t(27,N=ie));let Ki=ze.ui.isPictureInPictureActive$;z(i,Ki,ie=>t(26,I=ie));let ri=ze.ui.pictureInPictureType$;z(i,ri,ie=>t(125,g=ie));let Bi=ze.ui.mobileUnmuteButtonExpanded;z(i,Bi,ie=>t(55,te=ie));let yi=ze.ui.mobileUnmuteButtonVisible;z(i,yi,ie=>t(53,J=ie));let Wi=ze.ui.settingsMenuVisible;z(i,Wi,ie=>t(23,m=ie));let wi=ze.ui.settingsMenuOpenedByKeyboard;z(i,wi,ie=>t(120,c=ie));let si=ze.ui.controls,At=ze.actions.internal.getVideoEpisodes(),Lt=ze.webApi.pictureInPictureApi,ki=ze.state.chromecastState$;z(i,ki,ie=>t(28,W=ie));let Ci=ze.state.crashed$;z(i,Ci,ie=>t(57,ee=ie));let Qt=si.disabledControls$;z(i,Qt,ie=>t(128,R=ie));let ai=ze.ui.startedByKeyboard$;z(i,ai,ie=>t(119,u=ie));let ui=ze.ads.duration;z(i,ui,ie=>t(60,Ue=ie));let yt=ze.ads.position;z(i,yt,ie=>t(59,Ge=ie));let Ht=ze.ads.playbackState;z(i,Ht,ie=>t(30,O=ie));let Ct=ze.ui.isFullscreen;z(i,Ct,ie=>t(52,Y=ie));let Ri=ze.ui.playerSize;z(i,Ri,ie=>t(123,S=ie));let ti=ze.ui.additionalButtons$;z(i,ti,ie=>t(56,M=ie));let dn=ze.actions.internal.getVideoElement,mn=ze.actions.internal.replayInteractive,Jt=ze.state.isInteractive,Si=ze.state.isInteractiveTime$;z(i,Si,ie=>t(122,b=ie));let Gi=ze.state.showInteractiveGraph,Pi=ze.state.showSeekToInteractive,fi=ze.state.showPlayPrevChapter,Yt=ze.state.showInteractiveTimeIndicator,xt=ze.state.graphIsOpened$;z(i,xt,ie=>t(58,ke=ie));let Ti=Ut.seekToInteractiveDisabledTooltip$;z(i,Ti,ie=>t(129,x=ie));let ii,en,Ii,pn,_n,tn,ji,Di,$t,ci,Ei,Ni,nn,Mi,Oi,Fi,Ze,Qi,Zt,qe={},on=(0,d0.throttleFn)(xr,260,{leading:!1}),Hi=()=>ze.actions.internal.toggleChromecast();function Yi(){_o({isAudioDisabled:fn,audioDisabledHintCallback:bt,isAudioAvailable:w,audioIsNotExistHintCallback:vt})&&_e()}async function ln(){Lt!=null&&Lt.isActive()?await(Lt==null?void 0:Lt.remove()):await(Lt==null?void 0:Lt.request())}function Zi(){!fn&&w&&yi.set(!1),Yi()}let Cn=Ce?Nt:ut,ni="",oi=(ie,ao)=>{if(!ie){t(45,ni=Q("tooltip_live"));return}ao===dl.PlaybackState.PAUSED&&t(45,ni=Q("tooltip_play"))},Xi,di,re=()=>{s&&Et(ii)},dt=()=>{r&&Mt(en)};function mi(ie){i.$$.not_equal(qe.volume,ie)&&(qe.volume=ie,t(20,qe))}function pi(ie){i.$$.not_equal(qe.chromecast,ie)&&(qe.chromecast=ie,t(20,qe))}function li(ie){i.$$.not_equal(qe.pip,ie)&&(qe.pip=ie,t(20,qe))}function Xt(ie){di=ie,t(22,di)}function Nn(ie){i.$$.not_equal(qe.vkLogo,ie)&&(qe.vkLogo=ie,t(20,qe))}function Vn(ie){i.$$.not_equal(qe.prevButton,ie)&&(qe.prevButton=ie,t(20,qe))}function Sn(ie){i.$$.not_equal(qe.playButton,ie)&&(qe.playButton=ie,t(20,qe))}function Kt(ie){i.$$.not_equal(qe.replayButton,ie)&&(qe.replayButton=ie,t(20,qe))}function yn(ie){i.$$.not_equal(qe.nextButton,ie)&&(qe.nextButton=ie,t(20,qe))}function jn(ie){i.$$.not_equal(qe.playPrevChapterButton,ie)&&(qe.playPrevChapterButton=ie,t(20,qe))}function On(ie){i.$$.not_equal(qe.interactiveGraphButton,ie)&&(qe.interactiveGraphButton=ie,t(20,qe))}function Fn(ie){i.$$.not_equal(qe.seekToInteractiveButton,ie)&&(qe.seekToInteractiveButton=ie,t(20,qe))}function An(ie){i.$$.not_equal(qe.volume,ie)&&(qe.volume=ie,t(20,qe))}function rn(ie){i.$$.not_equal(qe.playButton,ie)&&(qe.playButton=ie,t(20,qe))}function Hn(ie){i.$$.not_equal(qe.replayButton,ie)&&(qe.replayButton=ie,t(20,qe))}function zn(ie){i.$$.not_equal(qe.liveButton,ie)&&(qe.liveButton=ie,t(20,qe))}function ne(ie){i.$$.not_equal(qe.time,ie)&&(qe.time=ie,t(20,qe))}function St(ie){i.$$.not_equal(qe.episodes,ie)&&(qe.episodes=ie,t(20,qe))}function Pn(ie){di=ie,t(22,di)}function hn(ie){i.$$.not_equal(qe.settings,ie)&&(qe.settings=ie,t(20,qe))}function Tn(ie){i.$$.not_equal(qe.fullscreen,ie)&&(qe.fullscreen=ie,t(20,qe))}function wn(ie){pe[ie?"unshift":"push"](()=>{Qi=ie,t(44,Qi)})}function lo(ie){pe[ie?"unshift":"push"](()=>{Oe=ie,t(0,Oe)})}function ro(ie){Xi=ie,t(21,Xi)}function yo(ie){i.$$.not_equal(qe.interactiveTimeIndicator,ie)&&(qe.interactiveTimeIndicator=ie,t(20,qe))}i.$$set=ie=>{"bottomHidden"in ie&&t(1,ve=ie.bottomHidden),"bottomNoSmooth"in ie&&t(2,X=ie.bottomNoSmooth),"showControls"in ie&&t(3,be=ie.showControls),"controlsElementRef"in ie&&t(0,Oe=ie.controlsElementRef),"isAds"in ie&&t(4,$e=ie.isAds),"canRewindLive"in ie&&t(5,et=ie.canRewindLive),"logoClickable"in ie&&t(6,ye=ie.logoClickable),"logoHidden"in ie&&t(110,Le=ie.logoHidden),"logoTargetUrl"in ie&&t(7,Ke=ie.logoTargetUrl),"showNextPrevButtons"in ie&&t(8,Xe=ie.showNextPrevButtons),"nextButtonActive"in ie&&t(9,Te=ie.nextButtonActive),"prevButtonActive"in ie&&t(10,Z=ie.prevButtonActive),"isOneVideoPlaylist"in ie&&t(111,Ce=ie.isOneVideoPlaylist),"supportLink"in ie&&t(11,ue=ie.supportLink),"customFullscreenSupported"in ie&&t(112,Ie=ie.customFullscreenSupported),"playNextVideo"in ie&&t(12,Je=ie.playNextVideo),"playPrevVideo"in ie&&t(13,at=ie.playPrevVideo),"repeatPlaylist"in ie&&t(113,ut=ie.repeatPlaylist),"toggleFullscreen"in ie&&t(14,ft=ie.toggleFullscreen),"returnFocus"in ie&&t(15,ht=ie.returnFocus),"seekToInteractive"in ie&&t(16,gt=ie.seekToInteractive),"toggleGraph"in ie&&t(17,we=ie.toggleGraph),"playPrevChapter"in ie&&t(18,pt=ie.playPrevChapter),"onDisabledPlayPrevChapterClick"in ie&&t(114,Et=ie.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in ie&&t(115,Mt=ie.onDisabledSeekToInteractiveClick)},i.$$.update=()=>{if(i.$$.dirty[4]&32)e:en=Q(x);if(i.$$.dirty[4]&16)e:t(118,n=R.has("EPISODE_BUTTON"));if(i.$$.dirty[4]&16)e:t(50,o=R.has("GRAPH_BUTTON"));if(i.$$.dirty[4]&16)e:t(46,r=R.has("SEEK_TO_INTERACTIVE_BUTTON"));if(i.$$.dirty[4]&16)e:t(49,l=R.has("PLAY_BUTTON"));if(i.$$.dirty[4]&16)e:t(48,a=R.has("REPLAY_BUTTON"));if(i.$$.dirty[4]&16)e:t(47,s=R.has("PLAY_PREV_CHAPTER_BUTTON"));if(i.$$.dirty[3]&268435456)e:t(31,Ii=h===dl.PlaybackState.PLAYING);if(i.$$.dirty[0]&1073741824)e:t(32,pn=O==="paused");if(i.$$.dirty[0]&16|i.$$.dirty[4]&8)e:t(33,_n=ae&&!$e&&!Jt);if(i.$$.dirty[0]&16|i.$$.dirty[4]&8)e:t(34,tn=!ae||$e);if(i.$$.dirty[3]&1073741824)e:t(116,ji=S.width>300);if(i.$$.dirty[3]&1073741824)e:t(35,Di=S.width>400);if(i.$$.dirty[0]&536870912)e:t(117,$t=le);if(i.$$.dirty[0]&469762048|i.$$.dirty[4]&2)e:t(36,ci=W!==dl.ChromecastState.NOT_AVAILABLE&&!(I&&g===1)&&!N&&!Jt);if(i.$$.dirty[0]&402653184|i.$$.dirty[3]&16777216|i.$$.dirty[4]&6)e:{let ie=U==="waitingLive";t(37,Ei=!!Lt&&W!==dl.ChromecastState.CONNECTED&&!N&&(g===1&&ie||!ie)&&!$t&&!Jt)}if(i.$$.dirty[3]&16777216)e:t(38,Ni=!$t);if(i.$$.dirty[3]&1073872896)e:t(39,nn=!Le&&S.width>350);if(i.$$.dirty[0]&67108864|i.$$.dirty[3]&17301504|i.$$.dirty[4]&2)e:t(40,Mi=Ft.features.fullscreen&&!(I&&g===1)&&(Jt?Ie:!0)&&!$t);if(i.$$.dirty[0]&33554448|i.$$.dirty[3]&1090519040)e:t(41,Oi=(!v||$e)&&S.width>260&&!$t&&!(Ft.features.interactiveHideTime&&Jt));if(i.$$.dirty[0]&8388616)e:t(42,Fi=m||be);if(i.$$.dirty[0]&33554448|i.$$.dirty[3]&58720256)e:t(43,Ze=!$e&&!v&&!!(At!=null&&At.length)&&ji&&!n&&!$t);if(i.$$.dirty[0]&16777216|i.$$.dirty[4]&1)e:t(19,Zt=!P||y);if(i.$$.dirty[0]&1048584|i.$$.dirty[3]&1610612736)e:on(dn(),si,qe,be);if(i.$$.dirty[0]&524288|i.$$.dirty[3]&268435456)e:oi(Zt,h);if(i.$$.dirty[0]&12582912)e:ol(di,m,wi);if(i.$$.dirty[0]&10485760|i.$$.dirty[3]&134217728)e:Oo(Xi,m,c);if(i.$$.dirty[0]&1048576|i.$$.dirty[3]&67108864)e:$r(ai,u,qe.playButton)};e:ii=Q(ze.state.playPrevChapterDisabledTooltip);return[Oe,ve,X,be,$e,et,ye,Ke,Xe,Te,Z,ue,Je,at,ft,ht,gt,we,pt,Zt,qe,Xi,di,m,P,v,I,N,W,le,O,Ii,pn,_n,tn,Di,ci,Ei,Ni,nn,Mi,Oi,Fi,Ze,Qi,ni,r,s,a,l,o,w,Y,J,E,te,M,ee,ke,Ge,Ue,xe,je,Nt,mt,Be,Qe,wt,jt,$i,fn,hi,gi,Li,ei,bi,cn,vi,Ki,ri,Bi,yi,Wi,wi,At,ki,Ci,Qt,ai,ui,yt,Ht,Ct,Ri,ti,mn,Jt,Si,Gi,Pi,fi,Yt,xt,Ti,Hi,ln,Zi,Cn,re,dt,Le,Ce,Ie,ut,Et,Mt,ji,$t,n,u,c,h,b,S,y,g,U,ae,R,x,mi,pi,li,Xt,Nn,Vn,Sn,Kt,yn,jn,On,Fn,An,rn,Hn,zn,ne,St,Pn,hn,Tn,wn,lo,ro,yo]}var qu=class extends K{constructor(e){super(),G(this,e,Bv,Lv,q,{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},wv,[-1,-1,-1,-1,-1,-1])}},m0=qu;function Rv(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 Nm({props:r}),pe.push(()=>He(e,"controlsElementRef",o)),{c(){D(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],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function Dv(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 m0({props:r}),pe.push(()=>He(e,"controlsElementRef",o)),{c(){D(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],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function Nv(i){let e,t,n,o,r=[Dv,Rv],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=lt()},m(s,u){l[e].m(s,u),C(s,n,u),o=!0},p(s,[u]){let c=e;e=a(s,u),e===c?l[e].p(s,u):(fe(),_(l[c],1,1,()=>{l[c]=null}),ce(),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&&k(n),l[e].d(s)}}}function Ov(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:b}=e,{prevButtonActive:S}=e,{isOneVideoPlaylist:y=!1}=e,{supportLink:P}=e,{customFullscreenSupported:v=!0}=e,{playNextVideo:g}=e,{playPrevVideo:I}=e,{repeatPlaylist:N}=e,{toggleFullscreen:W}=e,{returnFocus:U=ts.noop}=e,{seekToInteractive:le}=e,{toggleGraph:ae}=e,{playPrevChapter:O}=e,{onDisabledPlayPrevChapterClick:R=ts.noop}=e,{onDisabledSeekToInteractiveClick:x=ts.noop}=e,J=it().ui.isMobile;z(i,J,M=>t(25,n=M));function E(M){a=M,t(0,a)}function te(M){a=M,t(0,a)}return i.$$set=M=>{"bottomHidden"in M&&t(1,o=M.bottomHidden),"bottomNoSmooth"in M&&t(2,r=M.bottomNoSmooth),"showControls"in M&&t(3,l=M.showControls),"controlsElementRef"in M&&t(0,a=M.controlsElementRef),"isAds"in M&&t(4,s=M.isAds),"canRewindLive"in M&&t(5,u=M.canRewindLive),"logoClickable"in M&&t(6,c=M.logoClickable),"logoHidden"in M&&t(7,m=M.logoHidden),"logoTargetUrl"in M&&t(8,h=M.logoTargetUrl),"showNextPrevButtons"in M&&t(9,w=M.showNextPrevButtons),"nextButtonActive"in M&&t(10,b=M.nextButtonActive),"prevButtonActive"in M&&t(11,S=M.prevButtonActive),"isOneVideoPlaylist"in M&&t(12,y=M.isOneVideoPlaylist),"supportLink"in M&&t(13,P=M.supportLink),"customFullscreenSupported"in M&&t(14,v=M.customFullscreenSupported),"playNextVideo"in M&&t(15,g=M.playNextVideo),"playPrevVideo"in M&&t(16,I=M.playPrevVideo),"repeatPlaylist"in M&&t(17,N=M.repeatPlaylist),"toggleFullscreen"in M&&t(18,W=M.toggleFullscreen),"returnFocus"in M&&t(19,U=M.returnFocus),"seekToInteractive"in M&&t(20,le=M.seekToInteractive),"toggleGraph"in M&&t(21,ae=M.toggleGraph),"playPrevChapter"in M&&t(22,O=M.playPrevChapter),"onDisabledPlayPrevChapterClick"in M&&t(23,R=M.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in M&&t(24,x=M.onDisabledSeekToInteractiveClick)},[a,o,r,l,s,u,c,m,h,w,b,S,y,P,v,g,I,N,W,U,le,ae,O,R,x,n,J,E,te]}var Uu=class extends K{constructor(e){super(),G(this,e,Ov,Nv,q,{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})}},is=Uu;function Fv(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,b,S=i[2].default,y=Ee(S,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 g=0;g<P.length;g+=1)v=oe(v,P[g]);return{c(){e=V("svg"),y&&y.c(),t=V("g"),n=V("path"),o=V("path"),r=V("defs"),l=V("filter"),a=V("feFlood"),s=V("feColorMatrix"),u=V("feOffset"),c=V("feGaussianBlur"),m=V("feColorMatrix"),h=V("feBlend"),w=V("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"),ge(e,v)},m(g,I){C(g,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,w),b=!0},p(g,[I]){y&&y.p&&(!b||I&2)&&Ve(y,S,g,g[1],b?Me(S,g[1],I,null):Ae(g[1]),null),ge(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&&g[0]]))},i(g){b||(d(y,g),b=!0)},o(g){_(y,g),b=!1},d(g){g&&k(e),y&&y.d(g)}}}function Hv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Ku=class extends K{constructor(e){super(),G(this,e,Hv,Fv,q,{})}},p0=Ku;function zv(i){let e,t;return e=new p0({props:{style:i[0]}}),{c(){D(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){B(e,n)}}}function qv(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 Wu=class extends K{constructor(e){super(),G(this,e,qv,zv,q,{reversed:1})}},_0=Wu;function Uv(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,b,S,y,P=i[2].default,v=Ee(P,i,i[1],null),g=[{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<g.length;N+=1)I=oe(I,g[N]);return{c(){e=V("svg"),v&&v.c(),t=V("g"),n=V("path"),o=V("path"),r=V("defs"),l=V("clipPath"),a=V("path"),s=V("filter"),u=V("feFlood"),c=V("feColorMatrix"),m=V("feOffset"),h=V("feGaussianBlur"),w=V("feColorMatrix"),b=V("feBlend"),S=V("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(b,"in2","BackgroundImageFix"),f(b,"result","effect1_dropShadow_2260_104204"),f(S,"in","SourceGraphic"),f(S,"in2","effect1_dropShadow_2260_104204"),f(S,"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"),ge(e,I)},m(N,W){C(N,e,W),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,b),p(s,S),y=!0},p(N,[W]){v&&v.p&&(!y||W&2)&&Ve(v,P,N,N[1],y?Me(P,N[1],W,null):Ae(N[1]),null),ge(e,I=Re(g,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-on-icon"},{role:"img"},W&1&&N[0]]))},i(N){y||(d(v,N),y=!0)},o(N){_(v,N),y=!1},d(N){N&&k(e),v&&v.d(N)}}}function Kv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Gu=class extends K{constructor(e){super(),G(this,e,Kv,Uv,q,{})}},h0=Gu;function Wv(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,b,S,y,P,v=i[2].default,g=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 W=0;W<I.length;W+=1)N=oe(N,I[W]);return{c(){e=V("svg"),g&&g.c(),t=V("g"),n=V("path"),o=V("path"),r=V("path"),l=V("defs"),a=V("clipPath"),s=V("path"),u=V("filter"),c=V("feFlood"),m=V("feColorMatrix"),h=V("feOffset"),w=V("feGaussianBlur"),b=V("feColorMatrix"),S=V("feBlend"),y=V("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(b,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(S,"in2","BackgroundImageFix"),f(S,"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"),ge(e,N)},m(W,U){C(W,e,U),g&&g.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,b),p(u,S),p(u,y),P=!0},p(W,[U]){g&&g.p&&(!P||U&2)&&Ve(g,v,W,W[1],P?Me(v,W[1],U,null):Ae(W[1]),null),ge(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"},U&1&&W[0]]))},i(W){P||(d(g,W),P=!0)},o(W){_(g,W),P=!1},d(W){W&&k(e),g&&g.d(W)}}}function Gv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var ju=class extends K{constructor(e){super(),G(this,e,Gv,Wv,q,{})}},g0=ju;function jv(i){let e,t;return e=new h0({}),{c(){D(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){B(e,n)}}}function Qv(i){let e,t;return e=new g0({}),{c(){D(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){B(e,n)}}}function Yv(i){let e,t,n,o,r=[Qv,jv],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=lt()},m(s,u){l[e].m(s,u),C(s,n,u),o=!0},p(s,[u]){let c=e;e=a(s,u),e!==c&&(fe(),_(l[c],1,1,()=>{l[c]=null}),ce(),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&&k(n),l[e].d(s)}}}function Zv(i,e,t){let{isOff:n=!1}=e;return i.$$set=o=>{"isOff"in o&&t(0,n=o.isOff)},[n]}var Qu=class extends K{constructor(e){super(),G(this,e,Zv,Yv,q,{isOff:0})}},Yu=Qu;function Xv(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,b,S=i[2].default,y=Ee(S,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 g=0;g<P.length;g+=1)v=oe(v,P[g]);return{c(){e=V("svg"),y&&y.c(),t=V("g"),n=V("path"),o=V("path"),r=V("defs"),l=V("filter"),a=V("feFlood"),s=V("feColorMatrix"),u=V("feOffset"),c=V("feGaussianBlur"),m=V("feColorMatrix"),h=V("feBlend"),w=V("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"),ge(e,v)},m(g,I){C(g,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,w),b=!0},p(g,[I]){y&&y.p&&(!b||I&2)&&Ve(y,S,g,g[1],b?Me(S,g[1],I,null):Ae(g[1]),null),ge(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&&g[0]]))},i(g){b||(d(y,g),b=!0)},o(g){_(y,g),b=!1},d(g){g&&k(e),y&&y.d(g)}}}function Jv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Zu=class extends K{constructor(e){super(),G(this,e,Jv,Xv,q,{})}},b0=Zu;function xv(i){let e,t;return e=new b0({props:{style:i[0]}}),{c(){D(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){B(e,n)}}}function $v(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 Xu=class extends K{constructor(e){super(),G(this,e,$v,xv,q,{reversed:1})}},v0=Xu;function e5(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,b,S=i[2].default,y=Ee(S,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 g=0;g<P.length;g+=1)v=oe(v,P[g]);return{c(){e=V("svg"),y&&y.c(),t=V("g"),n=V("path"),o=V("path"),r=V("defs"),l=V("filter"),a=V("feFlood"),s=V("feColorMatrix"),u=V("feOffset"),c=V("feGaussianBlur"),m=V("feColorMatrix"),h=V("feBlend"),w=V("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"),ge(e,v)},m(g,I){C(g,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,w),b=!0},p(g,[I]){y&&y.p&&(!b||I&2)&&Ve(y,S,g,g[1],b?Me(S,g[1],I,null):Ae(g[1]),null),ge(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&&g[0]]))},i(g){b||(d(y,g),b=!0)},o(g){_(y,g),b=!1},d(g){g&&k(e),y&&y.d(g)}}}function t5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Ju=class extends K{constructor(e){super(),G(this,e,t5,e5,q,{})}},y0=Ju;function i5(i){let e,t;return e=new y0({props:{style:i[0]}}),{c(){D(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){B(e,n)}}}function n5(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 xu=class extends K{constructor(e){super(),G(this,e,n5,i5,q,{reversed:1})}},w0=xu;function o5(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 k0(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,b,S,y,P=t&&C0(i),v=i[4]==="PAUSE"&&S0(i),g=i[4]==="PLAY"&&P0(i),I=i[4]==="REPLAY"&&T0(i),N=i[4]==="SUBTITLES_OFF"&&I0(i),W=i[4]==="SUBTITLES_ON"&&E0(i),U=u&&M0(i),le=m&&V0(i),ae=i[4]==="MUTE"&&A0(i),O=i[4]==="VOLUME"&&L0(i),R=i[5]&&B0(i);return{c(){e=T("div"),P&&P.c(),n=F(),v&&v.c(),o=F(),g&&g.c(),r=F(),I&&I.c(),l=F(),N&&N.c(),a=F(),W&&W.c(),s=F(),U&&U.c(),c=F(),le&&le.c(),h=F(),ae&&ae.c(),w=F(),O&&O.c(),b=F(),R&&R.c(),S=lt(),f(e,"class","svelte-4ftgwp")},m(x,Y){C(x,e,Y),P&&P.m(e,null),p(e,n),v&&v.m(e,null),p(e,o),g&&g.m(e,null),p(e,r),I&&I.m(e,null),p(e,l),N&&N.m(e,null),p(e,a),W&&W.m(e,null),p(e,s),U&&U.m(e,null),p(e,c),le&&le.m(e,null),p(e,h),ae&&ae.m(e,null),p(e,w),O&&O.m(e,null),C(x,b,Y),R&&R.m(x,Y),C(x,S,Y),y=!0},p(x,Y){Y&16&&(t=["BACKWARD_SEEK","FORWARD_SEEK"].includes(x[4])),t?P?(P.p(x,Y),Y&16&&d(P,1)):(P=C0(x),P.c(),d(P,1),P.m(e,n)):P&&(fe(),_(P,1,1,()=>{P=null}),ce()),x[4]==="PAUSE"?v?Y&16&&d(v,1):(v=S0(x),v.c(),d(v,1),v.m(e,o)):v&&(fe(),_(v,1,1,()=>{v=null}),ce()),x[4]==="PLAY"?g?Y&16&&d(g,1):(g=P0(x),g.c(),d(g,1),g.m(e,r)):g&&(fe(),_(g,1,1,()=>{g=null}),ce()),x[4]==="REPLAY"?I?Y&16&&d(I,1):(I=T0(x),I.c(),d(I,1),I.m(e,l)):I&&(fe(),_(I,1,1,()=>{I=null}),ce()),x[4]==="SUBTITLES_OFF"?N?Y&16&&d(N,1):(N=I0(x),N.c(),d(N,1),N.m(e,a)):N&&(fe(),_(N,1,1,()=>{N=null}),ce()),x[4]==="SUBTITLES_ON"?W?Y&16&&d(W,1):(W=E0(x),W.c(),d(W,1),W.m(e,s)):W&&(fe(),_(W,1,1,()=>{W=null}),ce()),Y&16&&(u=["RATE_DOWN","RATE_UP"].includes(x[4])),u?U?(U.p(x,Y),Y&16&&d(U,1)):(U=M0(x),U.c(),d(U,1),U.m(e,c)):U&&(fe(),_(U,1,1,()=>{U=null}),ce()),Y&16&&(m=["EPISODE_PREV","EPISODE_NEXT"].includes(x[4])),m?le?(le.p(x,Y),Y&16&&d(le,1)):(le=V0(x),le.c(),d(le,1),le.m(e,h)):le&&(fe(),_(le,1,1,()=>{le=null}),ce()),x[4]==="MUTE"?ae?Y&16&&d(ae,1):(ae=A0(x),ae.c(),d(ae,1),ae.m(e,w)):ae&&(fe(),_(ae,1,1,()=>{ae=null}),ce()),x[4]==="VOLUME"?O?Y&16&&d(O,1):(O=L0(x),O.c(),d(O,1),O.m(e,null)):O&&(fe(),_(O,1,1,()=>{O=null}),ce()),x[5]?R?R.p(x,Y):(R=B0(x),R.c(),R.m(S.parentNode,S)):R&&(R.d(1),R=null)},i(x){y||(d(P),d(v),d(g),d(I),d(N),d(W),d(U),d(le),d(ae),d(O),y=!0)},o(x){_(P),_(v),_(g),_(I),_(N),_(W),_(U),_(le),_(ae),_(O),y=!1},d(x){x&&(k(e),k(b),k(S)),P&&P.d(),v&&v.d(),g&&g.d(),I&&I.d(),N&&N.d(),W&&W.d(),U&&U.d(),le&&le.d(),ae&&ae.d(),O&&O.d(),R&&R.d(x)}}}function C0(i){let e,t;return e=new _0({props:{reversed:i[4]==="FORWARD_SEEK"}}),{c(){D(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){B(e,n)}}}function S0(i){let e,t;return e=new Lr({}),{c(){D(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){B(e,n)}}}function P0(i){let e,t;return e=new ul({}),{c(){D(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){B(e,n)}}}function T0(i){let e,t;return e=new Kr({}),{c(){D(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){B(e,n)}}}function I0(i){let e,t;return e=new Yu({props:{isOff:!0}}),{c(){D(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){B(e,n)}}}function E0(i){let e,t;return e=new Yu({}),{c(){D(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){B(e,n)}}}function M0(i){let e,t;return e=new v0({props:{reversed:i[4]==="RATE_UP"}}),{c(){D(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){B(e,n)}}}function V0(i){let e,t;return e=new w0({props:{reversed:i[4]==="EPISODE_NEXT"}}),{c(){D(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){B(e,n)}}}function A0(i){let e,t;return e=new Fo({props:{volume:0}}),{c(){D(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){B(e,n)}}}function L0(i){let e,t;return e=new Fo({props:{volume:1}}),{c(){D(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){B(e,n)}}}function B0(i){let e,t;return{c(){e=T("span"),t=De(i[5]),f(e,"class","hot-key-helpers-text svelte-4ftgwp")},m(n,o){C(n,e,o),p(e,t)},p(n,o){o&32&&Ye(t,n[5])},d(n){n&&k(e)}}}function l5(i){let e,t,n=!i[1]&&i[4]&&k0(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){C(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=k0(o),n.c(),d(n,1),n.m(e,null)):n&&(fe(),_(n,1,1,()=>{n=null}),ce()),(!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&&k(e),n&&n.d()}}}function r5(i,e,t){let n,o=de,r=()=>(o(),o=Wt(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=Q(n.t.key,{value:n.t.value||""})):t(5,m=n==null?void 0:n.text)},[l,a,s,u,c,m,n]}var $u=class extends K{constructor(e){super(),G(this,e,r5,l5,q,{data:0},o5)}},R0=$u;function s5(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 a5(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,b,S,y,P,v,g;return r=new Xn({props:{direction:"up"}}),s=new Xn({props:{direction:"up"}}),h=new Xn({props:{direction:"up"}}),S=new Xn({props:{direction:"up"}}),{c(){e=T("div"),t=T("div"),n=T("div"),o=T("div"),D(r.$$.fragment),l=F(),a=T("div"),D(s.$$.fragment),u=F(),c=T("div"),m=T("div"),D(h.$$.fragment),w=F(),b=T("div"),D(S.$$.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(b,"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=Q("aria_label_spherical_control")),H(e,"m-shifted",i[0])},m(I,N){C(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,w),p(c,b),L(S,b,null),P=!0,v||(g=[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(b,"mousedown",i[2]),me(b,"mouseup",i[5]),me(b,"mouseleave",i[5]),me(e,"keydown",i[6]),me(e,"keyup",i[7])],v=!0)},p(I,[N]){(!P||N&1)&&H(e,"m-shifted",I[0])},i(I){P||(d(r.$$.fragment,I),d(s.$$.fragment,I),d(h.$$.fragment,I),d(S.$$.fragment,I),P=!0)},o(I){_(r.$$.fragment,I),_(s.$$.fragment,I),_(h.$$.fragment,I),_(S.$$.fragment,I),P=!1},d(I){I&&k(e),B(r),B(s),B(h),B(S),v=!1,nt(g)}}}function u5(i,e,t){let{isShifted:n=!1}=e,o=it(),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 ef=class extends K{constructor(e){super(),G(this,e,u5,a5,q,{isShifted:0},s5)}},ns=ef;function f5(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 D0(i,e,t){let n=i.slice();return n[16]=e[t].value,n}function N0(i,e,t){let n=i.slice();return n[16]=e[t].value,n[17]=e[t].timeAppeared,n}function O0(i){let e,t;function n(l,a){return l[7]&&l[8]?m5:l[5]?d5:c5}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){C(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&&k(e),r.d()}}}function c5(i){let e,t=Tt(i[1]),n=[];for(let o=0;o<t.length;o+=1)n[o]=F0(D0(i,t,o));return{c(){for(let o=0;o<n.length;o+=1)n[o].c();e=lt()},m(o,r){for(let l=0;l<n.length;l+=1)n[l]&&n[l].m(o,r);C(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=D0(o,t,l);n[l]?n[l].p(a,r):(n[l]=F0(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&&k(e),Ui(n,o)}}}function d5(i){let e,t,n=Tt(i[6]),o=[];for(let r=0;r<n.length;r+=1)o[r]=z0(N0(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"),_i(t,"font-size",i[4]+"px"),f(e,"class","caption-line svelte-ovfyp5")},m(r,l){C(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=N0(r,n,a);o[a]?o[a].p(s,l):(o[a]=z0(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&&_i(t,"font-size",r[4]+"px")},d(r){r&&k(e),Ui(o,r)}}}function m5(i){let e,t,n=Q("subtitles_auto_caption")+"",o;return{c(){e=T("span"),t=T("span"),o=De(n),f(t,"class","caption-segment svelte-ovfyp5"),_i(t,"font-size",i[4]+"px"),f(e,"class","caption-line svelte-ovfyp5")},m(r,l){C(r,e,l),p(e,t),p(t,o)},p(r,l){l&16&&_i(t,"font-size",r[4]+"px")},d(r){r&&k(e)}}}function F0(i){let e,t,n=i[16]+"",o,r;return{c(){e=T("span"),t=T("span"),o=De(n),r=F(),f(t,"class","caption-segment svelte-ovfyp5"),_i(t,"font-size",i[4]+"px"),f(e,"class","caption-line svelte-ovfyp5")},m(l,a){C(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&&_i(t,"font-size",l[4]+"px")},d(l){l&&k(e)}}}function H0(i){let e=i[16]+"",t;return{c(){t=De(e)},m(n,o){C(n,t,o)},p(n,o){o&64&&e!==(e=n[16]+"")&&Ye(t,e)},d(n){n&&k(t)}}}function z0(i){let e,t=(!i[17]||i[17]<=i[2])&&H0(i);return{c(){t&&t.c(),e=lt()},m(n,o){t&&t.m(n,o),C(n,e,o)},p(n,o){!n[17]||n[17]<=n[2]?t?t.p(n,o):(t=H0(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){n&&k(e),t&&t.d(n)}}}function p5(i){let e,t=i[1].length>0&&O0(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){C(n,e,o),t&&t.m(e,null)},p(n,[o]){n[1].length>0?t?t.p(n,o):(t=O0(n),t.c(),t.m(e,null)):t&&(t.d(1),t=null),o&1&&H(e,"shifted",n[0]),o&288&&H(e,"auto",n[5]&&!n[8])},i:de,o:de,d(n){n&&k(e),t&&t.d()}}}function _5(i,e,t){let n,o,{shifted:r}=e,{captions:l}=e,{position:a}=e,{playerSize:s}=e,{isMobile:u=!1}=e,c=it(),m=zt(),h=c.state.currentSubtitle$;z(i,h,g=>t(12,n=g));let w=c.state.isAutoSubtitleCaptionVisible$;z(i,w,g=>t(8,o=g));let b,S,y,P,v;return Rt(()=>{v=window.setTimeout(()=>{w.set(!1)},m.autoSubtitlesTimeout)}),Un(()=>{window.clearTimeout(v)}),i.$$set=g=>{"shifted"in g&&t(0,r=g.shifted),"captions"in g&&t(1,l=g.captions),"position"in g&&t(2,a=g.position),"playerSize"in g&&t(11,s=g.playerSize),"isMobile"in g&&t(3,u=g.isMobile)},i.$$.update=()=>{if(i.$$.dirty&2048)e:{let g=s.width*.02;t(4,b=g<=m.minSubtitlesFontSize?m.minSubtitlesFontSize:g)}if(i.$$.dirty&2)e:t(5,S=l.some(g=>g.type==="timestamp"));if(i.$$.dirty&2)e:t(6,y=l.reduce((g,{type:I,value:N})=>(I==="timestamp"?g.push({timeAppeared:Number(N),value:""}):g.length===0?g.push({value:String(N)}):g[g.length-1].value=String(N),g),[]));if(i.$$.dirty&4096)e:t(7,P=!!n.isAuto)},[r,l,a,u,b,S,y,P,o,h,w,s,n]}var tf=class extends K{constructor(e){super(),G(this,e,_5,p5,q,{shifted:0,captions:1,position:2,playerSize:11,isMobile:3},f5)}},os=tf;function h5(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 q0(i){let e,t,n;return{c(){e=T("div"),t=De("\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 "),n=De(i[1]),f(e,"class","text svelte-1o62kpz")},m(o,r){C(o,e,r),p(e,t),p(e,n)},p(o,r){r&2&&Ye(n,o[1])},d(o){o&&k(e)}}}function g5(i){let e,t,n,o,r,l,a=i[1]&&q0(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=F(),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){C(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=q0(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:de,o:de,d(s){s&&k(e),a&&a.d(),r=!1,l()}}}function b5(i,e,t){let{thumbUrl:n}=e,{chromecastDeviceName:o}=e;function r(l){In.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 nf=class extends K{constructor(e){super(),G(this,e,b5,g5,q,{thumbUrl:0,chromecastDeviceName:1},h5)}},ls=nf;function v5(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=oe(a,l[s]);return{c(){e=V("svg"),r&&r.c(),t=V("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"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(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&&k(e),r&&r.d(s)}}}function y5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var of=class extends K{constructor(e){super(),G(this,e,y5,v5,q,{})}},U0=of;function w5(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 k5(i){let e,t,n;return t=new U0({}),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","container svelte-13zpvm8")},m(o,r){C(o,e,r),L(t,e,null),n=!0},p:de,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),B(t)}}}var lf=class extends K{constructor(e){super(),G(this,e,null,k5,q,{},w5)}},rs=lf;function C5(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 S5(i){let e,t,n,o,r,l,a,s,u,c;return r=new ul({}),{c(){e=T("div"),t=T("div"),n=T("div"),o=F(),D(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=Q("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){C(m,e,h),p(e,t),p(t,n),p(t,o),L(r,t,null),s=!0,u||(c=[me(t,"keydown",i[3]),me(e,"click",st(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)&&H(e,"hidden",i[1])},i(m){s||(d(r.$$.fragment,m),s=!0)},o(m){_(r.$$.fragment,m),s=!1},d(m){m&&k(e),B(r),u=!1,nt(c)}}}function P5(i,e,t){let{thumbUrl:n}=e,{hidden:o}=e,{startVideo:r}=e,a=it().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 rf=class extends K{constructor(e){super(),G(this,e,P5,S5,q,{thumbUrl:0,hidden:1,startVideo:2,handlePressKey:3},C5)}get handlePressKey(){return this.$$.ctx[3]}},ss=rf;function T5(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
26
  0deg,
27
27
  rgba(0, 0, 0, 0) 0%,
28
28
  rgba(0, 0, 0, 0.02) 19%,
29
29
  rgba(0, 0, 0, 0.10) 34%,
30
30
  rgba(0, 0, 0, 0.40) 60%,
31
31
  rgba(0, 0, 0, 0.60) 100%
32
- )}.hidden.svelte-1bcvcf2{visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0}`)}function O5(i){let e,t;return{c(){e=P("div"),t=Re(i[0]),f(e,"class","title svelte-1bcvcf2"),H(e,"hidden",i[1])},m(n,o){C(n,e,o),p(e,t)},p(n,[o]){o&1&&je(t,n[0]),o&2&&H(e,"hidden",n[1])},i:me,o:me,d(n){n&&k(e)}}}function F5(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 mf=class extends K{constructor(e){super(),W(this,e,F5,O5,U,{title:0,isHidden:1},N5)}},J0=mf;function H5(i){Pe(i,"svelte-1qpxtfg",".timer__container.svelte-1qpxtfg{display:flex;align-items:flex-start;justify-content:center}.cell.svelte-1qpxtfg{display:flex;flex-direction:column;align-items:center;width:62px}.cell__value.svelte-1qpxtfg{font-size:48px;line-height:1.2;font-weight:700}.cell__unit.svelte-1qpxtfg{font-size:14px;line-height:1.2;font-weight:400}.timer__points.svelte-1qpxtfg{display:inline-block;margin:0 8px;font-size:42px;line-height:1.2;font-weight:600}")}function x0(i){let e,t,n,o,r,l,a;return{c(){e=P("div"),t=P("span"),n=Re(i[0]),o=z(),r=P("span"),r.textContent=`${G("waiting_live_day_value")}`,l=z(),a=P("span"),a.textContent=`${G("waiting_live_colon")}`,f(t,"class","cell__value svelte-1qpxtfg"),f(r,"class","cell__unit svelte-1qpxtfg"),f(e,"class","timer__cell cell svelte-1qpxtfg"),f(a,"class","timer__points svelte-1qpxtfg")},m(s,u){C(s,e,u),p(e,t),p(t,n),p(e,o),p(e,r),C(s,l,u),C(s,a,u)},p(s,u){u&1&&je(n,s[0])},d(s){s&&(k(e),k(l),k(a))}}}function $0(i){let e,t,n,o,r,l,a;return{c(){e=P("div"),t=P("span"),n=Re(i[1]),o=z(),r=P("span"),r.textContent=`${G("waiting_live_hour_value")}`,l=z(),a=P("span"),a.textContent=`${G("waiting_live_colon")}`,f(t,"class","cell__value svelte-1qpxtfg"),f(r,"class","cell__unit svelte-1qpxtfg"),f(e,"class","timer__cell cell svelte-1qpxtfg"),f(a,"class","timer__points svelte-1qpxtfg")},m(s,u){C(s,e,u),p(e,t),p(t,n),p(e,o),p(e,r),C(s,l,u),C(s,a,u)},p(s,u){u&2&&je(n,s[1])},d(s){s&&(k(e),k(l),k(a))}}}function ep(i){let e,t,n,o,r,l,a;return{c(){e=P("div"),t=P("span"),n=Re(i[2]),o=z(),r=P("span"),r.textContent=`${G("waiting_live_minute_value")}`,l=z(),a=P("span"),a.textContent=`${G("waiting_live_colon")}`,f(t,"class","cell__value svelte-1qpxtfg"),f(r,"class","cell__unit svelte-1qpxtfg"),f(e,"class","timer__cell cell svelte-1qpxtfg"),f(a,"class","timer__points svelte-1qpxtfg")},m(s,u){C(s,e,u),p(e,t),p(t,n),p(e,o),p(e,r),C(s,l,u),C(s,a,u)},p(s,u){u&4&&je(n,s[2])},d(s){s&&(k(e),k(l),k(a))}}}function tp(i){let e,t,n,o,r;return{c(){e=P("div"),t=P("span"),n=Re(i[3]),o=z(),r=P("span"),r.textContent=`${G("waiting_live_second_value")}`,f(t,"class","cell__value svelte-1qpxtfg"),f(r,"class","cell__unit svelte-1qpxtfg"),f(e,"class","timer__cell cell svelte-1qpxtfg")},m(l,a){C(l,e,a),p(e,t),p(t,n),p(e,o),p(e,r)},p(l,a){a&8&&je(n,l[3])},d(l){l&&k(e)}}}function z5(i){let e,t,n,o,r=i[0]&&x0(i),l=i[1]&&$0(i),a=i[2]&&ep(i),s=i[3]&&tp(i);return{c(){e=P("div"),r&&r.c(),t=z(),l&&l.c(),n=z(),a&&a.c(),o=z(),s&&s.c(),f(e,"class","timer__container svelte-1qpxtfg")},m(u,c){C(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=x0(u),r.c(),r.m(e,t)):r&&(r.d(1),r=null),u[1]?l?l.p(u,c):(l=$0(u),l.c(),l.m(e,n)):l&&(l.d(1),l=null),u[2]?a?a.p(u,c):(a=ep(u),a.c(),a.m(e,o)):a&&(a.d(1),a=null),u[3]?s?s.p(u,c):(s=tp(u),s.c(),s.m(e,null)):s&&(s.d(1),s=null)},i:me,o:me,d(u){u&&k(e),r&&r.d(),l&&l.d(),a&&a.d(),s&&s.d()}}}function q5(i,e,t){let{startTime:n}=e,{onTimerOver:o}=e,r,l,a,s,u,c=S=>String(S).padStart(2,"0"),m=S=>{let b=Math.floor(S/86400);b&&(S-=b*86400,t(0,r=c(b)));let w=Math.floor(S/3600);t(1,l=c(w));let y=Math.floor(S/60)%60;t(2,a=c(y));let T=S%60;t(3,s=c(T))},h=()=>{let S=Math.floor(Date.now()/1e3),b=n-S;m(b),b>=1?u=requestAnimationFrame(h):o()};return Rt(()=>{u=requestAnimationFrame(h)}),jn(()=>{cancelAnimationFrame(u)}),i.$$set=S=>{"startTime"in S&&t(4,n=S.startTime),"onTimerOver"in S&&t(5,o=S.onTimerOver)},[r,l,a,s,n,o]}var pf=class extends K{constructor(e){super(),W(this,e,q5,z5,U,{startTime:4,onTimerOver:5},H5)}},ip=pf;function U5(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=se(c,u[m]);return{c(){e=V("svg"),s&&s.c(),t=V("path"),n=V("path"),o=V("path"),r=V("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"),yi(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"),yi(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"),yi(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"),yi(r,"opacity",".986"),ge(e,c)},m(m,h){C(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)&&Ve(s,a,m,m[1],l?Me(a,m[1],h,null):Ae(m[1]),null),ge(e,c=Be(u,[{xmlns:"http://www.w3.org/2000/svg"},{"aria-hidden":"true"},{"data-testid":"podcast-icon"},{style:"shape-rendering:geometricPrecision;text-rendering:geometricPrecision;image-rendering:optimizeQuality;fill-rule:evenodd;clip-rule:evenodd;width:100%;height:100%"},{viewBox:"0 0 400 400"},{role:"img"},h&1&&m[0]]))},i(m){l||(d(s,m),l=!0)},o(m){_(s,m),l=!1},d(m){m&&k(e),s&&s.d(m)}}}function K5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var _f=class extends K{constructor(e){super(),W(this,e,K5,U5,U,{})}},np=_f;function W5(i){Pe(i,"svelte-15pewff",".waiting-container.svelte-15pewff{position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat}.waiting-container.svelte-15pewff::before{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.56);z-index:1}.upcoming.svelte-15pewff{position:absolute;top:50%;left:0;width:100%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:0}.upcoming-icon.svelte-15pewff{width:20%;max-width:200px;margin-bottom:20px}.upcoming__title.svelte-15pewff{font-size:14px;line-height:1.2;font-weight:400}.waiting-timer.svelte-15pewff{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:2}.timer.svelte-15pewff{display:flex;flex-direction:column;align-items:center;justify-content:center}.timer__title.svelte-15pewff{display:inline-block;vertical-align:middle;margin-bottom:12px;font-size:14px;line-height:1.2;font-weight:400}")}function G5(i){let e,t,n,o,r;return o=new ip({props:{startTime:i[1]||0,onTimerOver:i[3]}}),{c(){e=P("div"),t=P("span"),t.textContent=`${G("waiting_live_timer_title")}`,n=z(),N(o.$$.fragment),f(t,"class","timer__title svelte-15pewff"),f(e,"class","waiting-timer timer svelte-15pewff")},m(l,a){C(l,e,a),p(e,t),p(e,n),R(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&&k(e),D(o)}}}function j5(i){let e,t,n,o,r,l;return n=new np({}),{c(){e=P("div"),t=P("div"),N(n.$$.fragment),o=z(),r=P("span"),r.textContent=`${G("waiting_live_upcoming_title")}`,f(t,"class","upcoming-icon svelte-15pewff"),f(r,"class","upcoming__title svelte-15pewff"),f(e,"class","upcoming svelte-15pewff")},m(a,s){C(a,e,s),p(e,t),R(n,t,null),p(e,o),p(e,r),l=!0},p:me,i(a){l||(d(n.$$.fragment,a),l=!0)},o(a){_(n.$$.fragment,a),l=!1},d(a){a&&k(e),D(n)}}}function Q5(i){let e,t,n,o,r,l=[j5,G5],a=[];function s(u,c){return u[2]?0:1}return t=s(i,-1),n=a[t]=l[t](i),{c(){e=P("div"),n.c(),f(e,"class","waiting-container svelte-15pewff"),f(e,"style",o=`background-image: url(${i[2]?"":i[0]})`)},m(u,c){C(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&&k(e),a[t].d()}}}function Y5(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 hf=class extends K{constructor(e){super(),W(this,e,Y5,Q5,U,{thumbUrl:0,startTime:1},W5)}},ds=hf;function Z5(i){Pe(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 X5(i){let e,t;return{c(){e=P("div"),t=P("p"),t.textContent=`${G("waiting_record_title")}`,f(t,"class","waiting-title svelte-1bcnzdw"),f(e,"class","waiting-container svelte-1bcnzdw")},m(n,o){C(n,e,o),p(e,t)},p:me,i:me,o:me,d(n){n&&k(e)}}}var gf=class extends K{constructor(e){super(),W(this,e,null,X5,U,{},Z5)}},ms=gf;var{window:J5}=Ao;function x5(i){Pe(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 lp(i){var n;let e,t;return e=new ds({props:{thumbUrl:i[3],startTime:(n=i[4])==null?void 0:n.startTime}}),{c(){N(e.$$.fragment)},m(o,r){R(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 rp(i){let e,t;return e=new ms({}),{c(){N(e.$$.fragment)},m(n,o){R(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 sp(i){let e,t,n;return t=new gr({props:{adsSlotId:i[8],adsParams:i[9],adsPreviewParam:i[10],duration:i[11]}}),{c(){e=P("div"),N(t.$$.fragment),f(e,"class","ads-container svelte-1o4wf3x"),H(e,"hidden",i[38]!=="ads")},m(o,r){C(o,e,r),R(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&&k(e),D(t)}}}function ap(i){let e,t;return e=new w1({props:{title:i[18],thumb:i[19],playNextVideo:i[23]}}),{c(){N(e.$$.fragment)},m(n,o){R(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 up(i){let e,t;return e=new J0({props:{title:i[2],isHidden:!i[36]}}),{c(){N(e.$$.fragment)},m(n,o){R(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 fp(i){let e,t;return e=new ss({props:{isShifted:i[38]==="video"&&i[36]}}),{c(){N(e.$$.fragment)},m(n,o){R(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 cp(i){let e,t,n;return t=new ar({props:{"aria-label":G("video360")}}),{c(){e=P("div"),N(t.$$.fragment),f(e,"class","spherical-video-icon svelte-1o4wf3x")},m(o,r){C(o,e,r),R(t,e,null),n=!0},p:me,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),D(t)}}}function dp(i){let e,t;return e=new us({props:{thumbUrl:i[3],chromecastDeviceName:i[53]}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&8&&(r.thumbUrl=n[3]),o[1]&4194304&&(r.chromecastDeviceName=n[53]),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 mp(i){let e,t;return e=new as({props:{shifted:i[36],captions:i[55],position:i[56],playerSize:i[34]}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[1]&32&&(r.shifted=n[36]),o[1]&16777216&&(r.captions=n[55]),o[1]&33554432&&(r.position=n[56]),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 pp(i){let e,t,n,o,r;return t=new fs({}),{c(){e=P("div"),N(t.$$.fragment)},m(l,a){C(l,e,a),R(t,e,null),n=!0,o||(r=[de(e,"contextmenu",Bt(i[108])),de(e,"click",rt(i[119]))],o=!0)},p:me,i(l){n||(d(t.$$.fragment,l),n=!0)},o(l){_(t.$$.fragment,l),n=!1},d(l){l&&k(e),D(t),o=!1,xe(r)}}}function _p(i){let e,t,n;function o(l){i[156](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[57]!==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:wp,playNextVideo:i[23],playPrevVideo:i[24],repeatPlaylist:i[25],toggleFullscreen:i[106],returnFocus:i[155],seekToInteractive:i[26],toggleGraph:i[27],playPrevChapter:i[28]};return i[41]!==void 0&&(r.controlsElementRef=i[41]),e=new rs({props:r}),pe.push(()=>Fe(e,"controlsElementRef",o)),{c(){N(e.$$.fragment)},m(l,a){R(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]&67108864&&(s.canRewindLive=l[6]&&l[57]!==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[155]),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],Oe(()=>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 hp(i){let e,t;return e=new Tr({}),{c(){N(e.$$.fragment)},m(n,o){R(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;return e=new L1({}),{c(){N(e.$$.fragment)},m(n,o){R(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;return e=new Cr({}),{c(){N(e.$$.fragment)},m(n,o){R(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 vp(i){let e,t,n,o,r,l,a,s,u,c,m,h,S,b,w,y,T,v,g,E,B,L,F,ae;e=new cs({props:{hidden:i[38]!=="thumb"||i[37]||i[92]&&i[5],thumbUrl:i[3],startVideo:i[29]}});let oe=i[38]==="waitingLive"&&lp(i),I=i[38]==="waitingRecord"&&rp(i),le=i[7]&&i[22]&&sp(i),$=i[31]&&i[18]&&i[19]&&ap(i),j=i[44]&&up(i),x=i[49]&&fp(i),O=i[52]&&cp(i),Q=i[39]&&dp(i),A=i[54].value!=="off"&&mp(i),Y=i[37]&&pp(i),Te=i[22]&&_p(i);b=new vr({props:{isLive:i[58],isHidden:!i[43],isPlaying:i[59],position:i[56],duration:i[60]}}),y=new U0({props:{data:i[103]}});function Qe(X){i[158](X)}let Ke={supportLink:i[21],returnFocus:i[157],visible:i[33],playerContainerRef:i[40],controlsContainerRef:i[41],position:i[61]};i[32]!==void 0&&(Ke.menuElementRef=i[32]),v=new n1({props:Ke}),pe.push(()=>Fe(v,"menuElementRef",Qe));let Xe=i[42]&&hp(i),We=i[62]&&gp(i),ye=i[63]&&bp(i);return{c(){N(e.$$.fragment),t=z(),oe&&oe.c(),n=z(),I&&I.c(),o=z(),le&&le.c(),r=z(),$&&$.c(),l=z(),j&&j.c(),a=z(),x&&x.c(),s=z(),O&&O.c(),u=z(),Q&&Q.c(),c=z(),A&&A.c(),m=z(),Y&&Y.c(),h=z(),Te&&Te.c(),S=z(),N(b.$$.fragment),w=z(),N(y.$$.fragment),T=z(),N(v.$$.fragment),E=z(),Xe&&Xe.c(),B=z(),We&&We.c(),L=z(),ye&&ye.c(),F=lt()},m(X,ve){R(e,X,ve),C(X,t,ve),oe&&oe.m(X,ve),C(X,n,ve),I&&I.m(X,ve),C(X,o,ve),le&&le.m(X,ve),C(X,r,ve),$&&$.m(X,ve),C(X,l,ve),j&&j.m(X,ve),C(X,a,ve),x&&x.m(X,ve),C(X,s,ve),O&&O.m(X,ve),C(X,u,ve),Q&&Q.m(X,ve),C(X,c,ve),A&&A.m(X,ve),C(X,m,ve),Y&&Y.m(X,ve),C(X,h,ve),Te&&Te.m(X,ve),C(X,S,ve),R(b,X,ve),C(X,w,ve),R(y,X,ve),C(X,T,ve),R(v,X,ve),C(X,E,ve),Xe&&Xe.m(X,ve),C(X,B,ve),We&&We.m(X,ve),C(X,L,ve),ye&&ye.m(X,ve),C(X,F,ve),ae=!0},p(X,ve){let He={};ve[0]&32|ve[1]&192&&(He.hidden=X[38]!=="thumb"||X[37]||X[92]&&X[5]),ve[0]&8&&(He.thumbUrl=X[3]),ve[0]&536870912&&(He.startVideo=X[29]),e.$set(He),X[38]==="waitingLive"?oe?(oe.p(X,ve),ve[1]&128&&d(oe,1)):(oe=lp(X),oe.c(),d(oe,1),oe.m(n.parentNode,n)):oe&&(ue(),_(oe,1,1,()=>{oe=null}),fe()),X[38]==="waitingRecord"?I?ve[1]&128&&d(I,1):(I=rp(X),I.c(),d(I,1),I.m(o.parentNode,o)):I&&(ue(),_(I,1,1,()=>{I=null}),fe()),X[7]&&X[22]?le?(le.p(X,ve),ve[0]&4194432&&d(le,1)):(le=sp(X),le.c(),d(le,1),le.m(r.parentNode,r)):le&&(ue(),_(le,1,1,()=>{le=null}),fe()),X[31]&&X[18]&&X[19]?$?($.p(X,ve),ve[0]&786432|ve[1]&1&&d($,1)):($=ap(X),$.c(),d($,1),$.m(l.parentNode,l)):$&&(ue(),_($,1,1,()=>{$=null}),fe()),X[44]?j?(j.p(X,ve),ve[1]&8192&&d(j,1)):(j=up(X),j.c(),d(j,1),j.m(a.parentNode,a)):j&&(ue(),_(j,1,1,()=>{j=null}),fe()),X[49]?x?(x.p(X,ve),ve[1]&262144&&d(x,1)):(x=fp(X),x.c(),d(x,1),x.m(s.parentNode,s)):x&&(ue(),_(x,1,1,()=>{x=null}),fe()),X[52]?O?(O.p(X,ve),ve[1]&2097152&&d(O,1)):(O=cp(X),O.c(),d(O,1),O.m(u.parentNode,u)):O&&(ue(),_(O,1,1,()=>{O=null}),fe()),X[39]?Q?(Q.p(X,ve),ve[1]&256&&d(Q,1)):(Q=dp(X),Q.c(),d(Q,1),Q.m(c.parentNode,c)):Q&&(ue(),_(Q,1,1,()=>{Q=null}),fe()),X[54].value!=="off"?A?(A.p(X,ve),ve[1]&8388608&&d(A,1)):(A=mp(X),A.c(),d(A,1),A.m(m.parentNode,m)):A&&(ue(),_(A,1,1,()=>{A=null}),fe()),X[37]?Y?(Y.p(X,ve),ve[1]&64&&d(Y,1)):(Y=pp(X),Y.c(),d(Y,1),Y.m(h.parentNode,h)):Y&&(ue(),_(Y,1,1,()=>{Y=null}),fe()),X[22]?Te?(Te.p(X,ve),ve[0]&4194304&&d(Te,1)):(Te=_p(X),Te.c(),d(Te,1),Te.m(S.parentNode,S)):Te&&(ue(),_(Te,1,1,()=>{Te=null}),fe());let Ze={};ve[1]&134217728&&(Ze.isLive=X[58]),ve[1]&4096&&(Ze.isHidden=!X[43]),ve[1]&268435456&&(Ze.isPlaying=X[59]),ve[1]&33554432&&(Ze.position=X[56]),ve[1]&536870912&&(Ze.duration=X[60]),b.$set(Ze);let $e={};ve[0]&2097152&&($e.supportLink=X[21]),ve[1]&131072&&($e.returnFocus=X[157]),ve[1]&4&&($e.visible=X[33]),ve[1]&512&&($e.playerContainerRef=X[40]),ve[1]&1024&&($e.controlsContainerRef=X[41]),ve[1]&1073741824&&($e.position=X[61]),!g&&ve[1]&2&&(g=!0,$e.menuElementRef=X[32],Oe(()=>g=!1)),v.$set($e),X[42]?Xe?ve[1]&2048&&d(Xe,1):(Xe=hp(X),Xe.c(),d(Xe,1),Xe.m(B.parentNode,B)):Xe&&(ue(),_(Xe,1,1,()=>{Xe=null}),fe()),X[62]?We?ve[2]&1&&d(We,1):(We=gp(X),We.c(),d(We,1),We.m(L.parentNode,L)):We&&(ue(),_(We,1,1,()=>{We=null}),fe()),X[63]?ye?ve[2]&2&&d(ye,1):(ye=bp(X),ye.c(),d(ye,1),ye.m(F.parentNode,F)):ye&&(ue(),_(ye,1,1,()=>{ye=null}),fe())},i(X){ae||(d(e.$$.fragment,X),d(oe),d(I),d(le),d($),d(j),d(x),d(O),d(Q),d(A),d(Y),d(Te),d(b.$$.fragment,X),d(y.$$.fragment,X),d(v.$$.fragment,X),d(Xe),d(We),d(ye),ae=!0)},o(X){_(e.$$.fragment,X),_(oe),_(I),_(le),_($),_(j),_(x),_(O),_(Q),_(A),_(Y),_(Te),_(b.$$.fragment,X),_(y.$$.fragment,X),_(v.$$.fragment,X),_(Xe),_(We),_(ye),ae=!1},d(X){X&&(k(t),k(n),k(o),k(r),k(l),k(a),k(s),k(u),k(c),k(m),k(h),k(S),k(w),k(T),k(E),k(B),k(L),k(F)),D(e,X),oe&&oe.d(X),I&&I.d(X),le&&le.d(X),$&&$.d(X),j&&j.d(X),x&&x.d(X),O&&O.d(X),Q&&Q.d(X),A&&A.d(X),Y&&Y.d(X),Te&&Te.d(X),D(b,X),D(y,X),D(v,X),Xe&&Xe.d(X),We&&We.d(X),ye&&ye.d(X)}}}function $5(i){let e,t,n,o,r=i[51],l,a,s,u,c=vp(i);return{c(){e=P("div"),t=P("div"),o=z(),c.c(),l=lt(),f(t,"class","video-container svelte-1o4wf3x"),f(t,"style",n=`transform: rotate(${i[35]}deg) scale(${i[46]})`),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){C(m,e,h),p(e,t),i[154](t),C(m,o,h),c.m(m,h),C(m,l,h),a=!0,s||(u=[de(e,"contextmenu",Bt(i[108])),de(e,"mousedown",Bt(i[113])),de(e,"mouseup",Bt(i[114])),de(e,"click",Bt(i[116])),de(e,"dblclick",Bt(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[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]&1048576&&U(r,r=m[51])?(ue(),_(c,1,1,me),fe(),c=vp(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&&(k(e),k(o),k(l)),i[154](null),c.d(m),s=!1,xe(u)}}}function e6(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:[$5]},$$scope:{ctx:i}};return t=new C1({props:s}),i[159](t),{c(){e=P("div"),N(t.$$.fragment),n=z(),o=P("div"),f(o,"class","overlay-container"),f(e,"class","player-wrapper svelte-1o4wf3x")},m(u,c){C(u,e,c),R(t,e,null),p(e,n),p(e,o),i[160](o),i[161](e),r=!0,l||(a=[de(J5,"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]&1&&(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&&k(e),i[159](null),D(t),i[160](null),i[161](null),l=!1,xe(a)}}}var wp=!0;function bf(i){return i?i.offsetTop+bf(i.offsetParent):0}function kp(i){return i?i.offsetLeft+kp(i.offsetParent):0}function t6(i,e,t){let n,o,r,l,a,s,u,c,m,h,S,b,w,y,T,v,g,E,B,L,F,ae,oe,I,le,$,j,x,O,Q,A,Y,Te,Qe,Ke,Xe,We,ye,X,ve,He,Ze,$e,{store:be}=e,{uiConfig:De}=e,{title:Ue}=e,{thumbUrl:nt}=e,{videoContainer:ke}=e,{interactiveContainer:Z}=e,{live:Ce}=e,{autoplay:ce}=e,{canRewindLive:Ie}=e,{showAds:Je}=e,{adsSlotId:ft=void 0}=e,{adsParams:pt=void 0}=e,{adsPreviewParam:ut=void 0}=e,{duration:It=void 0}=e,{logoClickable:mt}=e,{logoHidden:we}=e,{logoTargetUrl:yt=""}=e,{showNextPrevButtons:Et=!1}=e,{nextButtonActive:Pt=!1}=e,{prevButtonActive:ze=!1}=e,{endScreenVideoTitle:qt=void 0}=e,{endScreenVideoThumb:_e=void 0}=e,{isOneVideoPlaylist:_t=!1}=e,{supportLink:Mt}=e,{outerContainerRef:ht=void 0}=e,{playerStarted:bt=!1}=e,{fullScreenTarget:st=void 0}=e,{showMiniTimer:Le=!1}=e,{playNextVideo:dt=ps.noop}=e,{playPrevVideo:ii=ps.noop}=e,{repeatPlaylist:Ut=ps.noop}=e,{seekToInteractive:Ki}=e,{toggleGraph:Wi}=e,{playPrevChapter:xt}=e,{firstStart:Vi}=e,Gi=be.getLogger().createComponentLog("Root component"),mi=be.interfaceLanguage$;q(i,mi,J=>t(51,A=J));let Ai=be.state.playbackState$;q(i,Ai,J=>t(151,x=J));let sn=be.ads.playbackState;q(i,sn,J=>t(152,O=J));let ji=be.state.positionWithScrubbing$;q(i,ji,J=>t(56,Xe=J));let Qi=be.state.duration$;q(i,Qi,J=>t(60,ve=J));let Li=be.playerPhase;q(i,Li,J=>t(38,oe=J));let Bi=be.ui.isFullscreen;q(i,Bi,J=>t(141,b=J));let pi=be.ui.controlsVisible;q(i,pi,J=>t(36,E=J));let wi=be.ui.settingsMenuVisible;q(i,wi,J=>t(139,s=J));let ki=be.ui.scrubbingInProgress;q(i,ki,J=>t(143,v=J));let Nt=be.ui.contextMenu.visible$;q(i,Nt,J=>t(33,n=J));let $t=be.ui.debugPanelVisible;q(i,$t,J=>t(63,$e=J));let Kt=be.state.isLoaderVisible;q(i,Kt,J=>t(153,Q=J));let Yi=be.state.isEnded$;q(i,Yi,J=>t(140,c=J));let ai=be.state.chromecastConnected$;q(i,ai,J=>t(39,$=J));let Zi=be.state.chromecastDeviceName$;q(i,Zi,J=>t(53,Te=J));let Ci=be.ads.postrollPassed;q(i,Ci,J=>t(146,F=J));let Ri=be.state.isLive$;q(i,Ri,J=>t(58,ye=J));let Ct=be.state.isPlaying$;q(i,Ct,J=>t(59,X=J));let ni=be.state.crashed$;q(i,ni,J=>t(37,L=J));let Vt=be.webApi.pictureInPictureApi,an=be.state.currentSubtitle$;q(i,an,J=>t(54,Qe=J));let Di=be.state.currentSubtitleCaptions$;q(i,Di,J=>t(55,Ke=J));let Xi=be.state.duration$;q(i,Xi,J=>t(57,We=J));let Ni=be.state.graphIsOpened$;q(i,Ni,J=>t(147,ae=J));let Wt=be.ui.playerSize;q(i,Wt,J=>t(34,h=J));let ui=be.ui.is3DVideo;q(i,ui,J=>t(49,m=J));let _i=be.ui.icon3DVideoVisible;q(i,_i,J=>t(52,Y=J));let fi=be.ui.rotateAlpha;q(i,fi,J=>t(35,T=J));let ei=be.state.isInteractive,Ft=be.state.isInteractiveTime$;q(i,Ft,J=>t(144,g=J));let Oi=be.state.isInteractiveExpectation$;q(i,Oi,J=>t(150,j=J));let Ji=be.state.hasInteractiveBranches,Gt=be.ui.touched;q(i,Gt,J=>t(148,I=J));let Si=be.ui.modals.hotKeyMap.data;q(i,Si,J=>t(168,u=J));let ci=be.ui.modals.hotKeyMap.show;q(i,ci,J=>t(62,Ze=J));let hi=be.ui.overlayContainer$,bn=be.ui.controls.interactiveTimeIndicator;q(i,bn,J=>t(169,S=J));let xi=be.state.showInteractiveTimeIndicator,zt=be.ui.contextMenu.position$;q(i,zt,J=>t(61,He=J));let oi=be.actions.internal.closeSettingsMenu,{fakeIsPlaying$:jt}=Un();q(i,jt,J=>t(142,y=J));let gi,Pi,$i,un,bi;Si.set(Rc());let en,tn,Ye=Ne(!1);q(i,Ye,J=>t(50,w=J));let nn,Qt=Ne(!1);q(i,Qt,J=>t(149,le=J));let qe=Ne(),fn=Ne(!1);q(i,fn,J=>t(145,B=J));let on=!1,Fi=!1,ln,cn,An,dn,di,mn,li=!1,Fn,pn=!1,{toggle:vn}=jt,rn=!1,ri=null,ti;Vt==null||Vt.setContext(Bl());let Ln=()=>{ce&&!ei&&Yt(De.controls.hideTimeout)};be.setUiCallbacks({onStarted:Ln});let Hn=()=>{window.clearTimeout($i),Qt.set(!1)},Bn=()=>{window.clearTimeout(un),qe.set(null)},Yt=J=>{Hn(),Qt.set(!0),$i=window.setTimeout(()=>Qt.set(!1),J);let Tt=J-100;nn=window.setTimeout(()=>{w&&Ye.set(!1)},Tt>0?Tt:J)},Pn=(J,Tt)=>{Bn(),qe.set(Tt),un=window.setTimeout(()=>qe.set(null),J)},Tn=ui.subscribe(J=>{_i.set(J),J&&(window.clearTimeout(bi),bi=window.setTimeout(()=>_i.set(!1),De.controls.hide360IconTimeout))}),_n=async()=>{var Tt,Cn,Ti,Gn;let J=ho();if(J){Yt(De.controls.hideTimeoutFullscreen);try{await(Vt==null?void 0:Vt.remove())}catch(oo){Gi({message:String(oo)})}}Bi.set(J),be.getAdmanWrapper().setFullscreen(J),b?(Cn=(Tt=be.callbacks)==null?void 0:Tt.onFullscreenEnter)==null||Cn.call(Tt):(Gn=(Ti=be.callbacks)==null?void 0:Ti.onFullscreenExit)==null||Gn.call(Ti)},zn=J=>{let Tt=J;Wt.set({width:Tt.target.width,height:Tt.target.height})};Rt(()=>{var Tt;return _r(_n),zo(Vt)&&(Vt==null||Vt.assignPlayerContainer(gi),Vt==null||Vt.registryExternalEventHandlers({resize:zn})),Z&&((Tt=ke.parentElement)==null||Tt.insertBefore(Z,ke.nextSibling)),()=>{window.clearTimeout($i),window.clearTimeout(nn),window.clearTimeout(un),window.clearTimeout(bi),Tn(),Vt==null||Vt.dispose(),hr(_n)}});let In=async()=>{if(ho())await pr(document),Gi({message:"exit fullscreen"});else{Gi({message:"request fullscreen"});let J=ht!=null?ht:gi,Tt=J.getRootNode(),Cn=Tt instanceof ShadowRoot?Tt.host:Tt,Ti=st instanceof HTMLElement&&st.contains(Cn),Gn=De.allowChangingFullscreenTarget&&st&&Ti?st:J;await mr(Gn)}},Hi=()=>{oi(),Nt.set(!1)},yn=J=>{Nt.set(!0),zt.set({left:J.clientX,top:J.clientY})};function wn(){fn.set(!0),ei||Yt(De.controls.hideTimeoutCursor)}function ne(){ei||(Ye.set(!0),Yt(De.controls.hideTimeoutCursor))}function wt(){fn.set(!1),t(131,Fi=!1),t(130,on=!1),rn=!1,be.actions.internal.releaseCamera()}function kn(J){if(S&&xi){let Tt=J.currentTarget,Cn=bf(Tt),Ti=kp(Tt),Gn=J.pageX-Ti,oo=J.pageY-Cn,{left:Mo,bottom:Vo,right:kt}=S,lo=kt-Mo;return Gn>=Mo-lo&&oo<=Vo+lo}}function zi(J){if(gi){let Tt=bf(J.currentTarget),Cn=h.height,Ti=J.pageY-Tt;if(kn(J)){t(131,Fi=!1);return}Ti<40?t(131,Fi=!0):Ti>Cn-40?t(130,on=!0):(t(131,Fi=!1),s||t(130,on=!1))}}function te(J){zi(J),cn||Yt(De.controls.hideTimeoutCursor),m&&rn&&ri&&be.actions.internal.moveCameraFocusPX(ri.clientX-J.clientX,ri.clientY-J.clientY,J.timeStamp-ri.timeStamp),ri=J}let ot=J=>{J.button===0&&(rn=!0,be.actions.internal.holdCamera()),Yt(De.controls.hideTimeoutCursor)},si=J=>{J.button===0&&(ri=J,rn=!1,be.actions.internal.releaseCamera()),Yt(De.controls.hideTimeoutCursor)},Wn=()=>{wp&&(Gi({message:"double click on video"}),In(),Yt(De.controls.hideTimeoutCursor))},Jn=()=>{if(n||s){Hi();return}if(!(c&&!Ji)){if(pn)return vn();if(ti==null||ti.focus(),!bt){Vi(),Yt(De.controls.hideTimeoutCursor);return}be.actions.internal.togglePlay(),Yt(De.controls.hideTimeoutCursor)}},xn=J=>{Hi(),Gt.set(!0),Yt(De.controls.hideTimeout),J&&Pn(De.controls.hideHotKeyHelpers,J)},En=()=>{var J,Tt;Hi(),(J=be.callbacks)!=null&&J.onOpenHotKeyMap?(Tt=be.callbacks)==null||Tt.onOpenHotKeyMap(u):ci.update(Cn=>!Cn)},ie=()=>{if(n||s){Hi();return}},So=()=>{Gt.set(!0)},Po=be.ui.contextMenu.openedByBtnKeyboard$;q(i,Po,J=>t(138,a=J));let Zo=be.ui.contextMenu.btnRef$;q(i,Zo,J=>t(137,l=J));let io,fo=be.ui.contextMenu.openedByHotKey$;q(i,fo,J=>t(136,r=J));let Xo=be.ui.contextMenu.lastActiveElem$;q(i,Xo,J=>t(135,o=J));function To(J){pe[J?"unshift":"push"](()=>{ke=J,t(0,ke)})}let Vl=()=>ti==null?void 0:ti.focus();function Io(J){Pi=J,t(41,Pi)}let no=()=>ti==null?void 0:ti.focus();function Eo(J){io=J,t(32,io)}function Jo(J){pe[J?"unshift":"push"](()=>{ti=J,t(48,ti)})}function co(J){pe[J?"unshift":"push"](()=>{tn=J,t(30,tn)})}function xo(J){pe[J?"unshift":"push"](()=>{gi=J,t(40,gi)})}return i.$$set=J=>{"store"in J&&t(125,be=J.store),"uiConfig"in J&&t(1,De=J.uiConfig),"title"in J&&t(2,Ue=J.title),"thumbUrl"in J&&t(3,nt=J.thumbUrl),"videoContainer"in J&&t(0,ke=J.videoContainer),"interactiveContainer"in J&&t(126,Z=J.interactiveContainer),"live"in J&&t(4,Ce=J.live),"autoplay"in J&&t(5,ce=J.autoplay),"canRewindLive"in J&&t(6,Ie=J.canRewindLive),"showAds"in J&&t(7,Je=J.showAds),"adsSlotId"in J&&t(8,ft=J.adsSlotId),"adsParams"in J&&t(9,pt=J.adsParams),"adsPreviewParam"in J&&t(10,ut=J.adsPreviewParam),"duration"in J&&t(11,It=J.duration),"logoClickable"in J&&t(12,mt=J.logoClickable),"logoHidden"in J&&t(13,we=J.logoHidden),"logoTargetUrl"in J&&t(14,yt=J.logoTargetUrl),"showNextPrevButtons"in J&&t(15,Et=J.showNextPrevButtons),"nextButtonActive"in J&&t(16,Pt=J.nextButtonActive),"prevButtonActive"in J&&t(17,ze=J.prevButtonActive),"endScreenVideoTitle"in J&&t(18,qt=J.endScreenVideoTitle),"endScreenVideoThumb"in J&&t(19,_e=J.endScreenVideoThumb),"isOneVideoPlaylist"in J&&t(20,_t=J.isOneVideoPlaylist),"supportLink"in J&&t(21,Mt=J.supportLink),"outerContainerRef"in J&&t(127,ht=J.outerContainerRef),"playerStarted"in J&&t(22,bt=J.playerStarted),"fullScreenTarget"in J&&t(128,st=J.fullScreenTarget),"showMiniTimer"in J&&t(129,Le=J.showMiniTimer),"playNextVideo"in J&&t(23,dt=J.playNextVideo),"playPrevVideo"in J&&t(24,ii=J.playPrevVideo),"repeatPlaylist"in J&&t(25,Ut=J.repeatPlaylist),"seekToInteractive"in J&&t(26,Ki=J.seekToInteractive),"toggleGraph"in J&&t(27,Wi=J.toggleGraph),"playPrevChapter"in J&&t(28,xt=J.playPrevChapter),"firstStart"in J&&t(29,Vi=J.firstStart)},i.$$.update=()=>{if(i.$$.dirty[1]&192|i.$$.dirty[4]&805306368)e:t(42,en=(oe==="video"&&Q||oe==="ads"&&O==="inactive")&&!L);if(i.$$.dirty[0]&1073741824)e:hi.set(tn);if(i.$$.dirty[4]&134217728)e:t(132,ln=x!==yp.PlaybackState.PLAYING);if(i.$$.dirty[4]&68190656)e:t(133,cn=g&&!s&&!(on||Fi)&&!(ln&&!j));if(i.$$.dirty[1]&448|i.$$.dirty[4]&34112256)e:pi.set((ln||s||v||$||le)&&!cn&&(oe==="video"||oe==="ads")&&!L);if(i.$$.dirty[0]&2|i.$$.dirty[1]&224|i.$$.dirty[4]&16777248)e:t(43,An=De.features.thumbTimer&&Le&&oe==="video"&&!E&&!L&&!ei&&(De.hideThumbTimerAfterTouch&&!I||!De.hideThumbTimerAfterTouch));if(i.$$.dirty[1]&128|i.$$.dirty[4]&8519680)e:t(44,dn=oe==="video"&&!ae&&b);if(i.$$.dirty[0]&128|i.$$.dirty[1]&64|i.$$.dirty[4]&4259840)e:t(31,di=(Je&&F||!Je)&&c&&!L);if(i.$$.dirty[1]&33|i.$$.dirty[4]&3145728)e:t(45,mn=B&&!(E||di)&&!g);if(i.$$.dirty[0]&2|i.$$.dirty[4]&1573888)e:!v&&li&&!g&&Yt(De.controls.hideTimeoutCursor),t(134,li=v);if(i.$$.dirty[0]&1|i.$$.dirty[1]&24)e:t(46,Fn=ke&&T%180?h.height/h.width:1);if(i.$$.dirty[4]&262144)e:t(47,pn=y!==null);if(i.$$.dirty[1]&6|i.$$.dirty[4]&16384)e:Ko(io,n,a);if(i.$$.dirty[1]&4|i.$$.dirty[4]&8192)e:{let J=l;J&&ml(J,n,Po)}if(i.$$.dirty[1]&6|i.$$.dirty[4]&4096)e:Ko(io,n,r);if(i.$$.dirty[1]&4|i.$$.dirty[4]&2048)e:{let J=o;J&&Xc(J,n,fo)}},[ke,De,Ue,nt,Ce,ce,Ie,Je,ft,pt,ut,It,mt,we,yt,Et,Pt,ze,qt,_e,_t,Mt,bt,dt,ii,Ut,Ki,Wi,xt,Vi,tn,di,io,n,h,T,E,L,oe,$,gi,Pi,en,An,dn,mn,Fn,pn,ti,m,w,A,Y,Te,Qe,Ke,Xe,We,ye,X,ve,He,Ze,$e,mi,Ai,sn,ji,Qi,Li,Bi,pi,wi,ki,Nt,$t,Kt,Yi,ai,Zi,Ci,Ri,Ct,ni,an,Di,Xi,Ni,Wt,ui,_i,fi,ei,Ft,Oi,Gt,Si,ci,bn,zt,jt,Ye,Qt,qe,fn,vn,In,Hi,yn,wn,ne,wt,te,ot,si,Wn,Jn,xn,En,ie,So,Po,Zo,fo,Xo,be,Z,ht,st,Le,on,Fi,ln,cn,li,o,r,l,a,s,c,b,y,v,g,B,F,ae,I,le,j,x,O,Q,To,Vl,Io,no,Eo,Jo,co,xo]}var vf=class extends K{constructor(e){super(),W(this,e,t6,e6,U,{store:125,uiConfig:1,title:2,thumbUrl:3,videoContainer:0,interactiveContainer:126,live:4,autoplay:5,canRewindLive:6,showAds:7,adsSlotId:8,adsParams:9,adsPreviewParam:10,duration:11,logoClickable:12,logoHidden:13,logoTargetUrl:14,showNextPrevButtons:15,nextButtonActive:16,prevButtonActive:17,endScreenVideoTitle:18,endScreenVideoThumb:19,isOneVideoPlaylist:20,supportLink:21,outerContainerRef:127,playerStarted:22,fullScreenTarget:128,showMiniTimer:129,playNextVideo:23,playPrevVideo:24,repeatPlaylist:25,seekToInteractive:26,toggleGraph:27,playPrevChapter:28,firstStart:29},x5,[-1,-1,-1,-1,-1,-1,-1])}},Cp=vf;var Up=require("@vkontakte/videoplayer-core"),Yo=require("@vkontakte/videoplayer-shared");var Sl=require("@vkontakte/videoplayer-shared"),Sp=i=>{if(!(0,Sl.isIOS)(!0))return!1;let e=i.device===Sl.CurrentClientDevice.iPad||(window==null?void 0:window.screen.width)>700,t=(0,Sl.getIOSVersion)();return!e||e&&!!t&&t<16};function i6(i){Pe(i,"svelte-nhq2ld",".double-click-area.svelte-nhq2ld{position:absolute;top:0;height:100%;width:25%;overflow:hidden}.double-click-area.left.svelte-nhq2ld{left:0}.double-click-area.right.svelte-nhq2ld{right:0}.semicircle.svelte-nhq2ld{position:absolute;top:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5)}.semicircle.left.svelte-nhq2ld{left:0;border-top-right-radius:50%;border-bottom-right-radius:50%}.semicircle.right.svelte-nhq2ld{right:0;border-top-left-radius:50%;border-bottom-left-radius:50%}.info.svelte-nhq2ld{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;flex-direction:column;align-items:center;justify-content:center}.triangles-wrapper.svelte-nhq2ld{position:relative;display:flex;margin-bottom:10px;justify-content:center}.triangle.svelte-nhq2ld{width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;animation:svelte-nhq2ld-blink 500ms infinite;opacity:0}.triangle.right.svelte-nhq2ld:nth-child(1),.triangle.left.svelte-nhq2ld:nth-child(3){animation-delay:0ms}.triangle.right.svelte-nhq2ld:nth-child(2),.triangle.left.svelte-nhq2ld:nth-child(2){animation-delay:100ms}.triangle.right.svelte-nhq2ld:nth-child(3),.triangle.left.svelte-nhq2ld:nth-child(1){animation-delay:200ms}@keyframes svelte-nhq2ld-blink{0%{opacity:0}50%{opacity:1}100%{opacity:0}}.triangle.left.svelte-nhq2ld{border-right:8px solid var(--white)}.triangle.right.svelte-nhq2ld{border-left:8px solid var(--white)}.triangle.svelte-nhq2ld:not(:last-child){margin-right:5px}.step-caption.svelte-nhq2ld{margin:0;text-align:center;font-size:12px;line-height:1;color:var(--white)}")}function Pp(i){let e,t,n,o,r,l,a,s,u,c,m,h,S,b,w,y=G("doubletap_seek_step",{seconds:i[1].toFixed(0)})+"",T;return{c(){e=P("div"),n=z(),o=P("div"),r=P("div"),l=P("div"),s=z(),u=P("div"),m=z(),h=P("div"),b=z(),w=P("p"),T=Re(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",S="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,g){C(v,e,g),C(v,n,g),C(v,o,g),p(o,r),p(r,l),p(r,s),p(r,u),p(r,m),p(r,h),p(o,b),p(o,w),p(w,T)},p(v,g){g&1&&t!==(t="semicircle "+v[0]+" svelte-nhq2ld")&&f(e,"class",t),g&1&&a!==(a="triangle "+v[0]+" svelte-nhq2ld")&&f(l,"class",a),g&1&&c!==(c="triangle "+v[0]+" svelte-nhq2ld")&&f(u,"class",c),g&1&&S!==(S="triangle "+v[0]+" svelte-nhq2ld")&&f(h,"class",S),g&2&&y!==(y=G("doubletap_seek_step",{seconds:v[1].toFixed(0)})+"")&&je(T,y)},d(v){v&&(k(e),k(n),k(o))}}}function n6(i){let e,t,n,o,r=i[2]&&Pp(i);return{c(){e=P("div"),r&&r.c(),f(e,"class",t="double-click-area "+i[0]+" svelte-nhq2ld")},m(l,a){C(l,e,a),r&&r.m(e,null),n||(o=de(e,"click",rt(i[3]())),n=!0)},p(l,[a]){l[2]?r?r.p(l,a):(r=Pp(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:me,o:me,d(l){l&&k(e),r&&r.d(),n=!1,o()}}}function o6(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 jn(()=>{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 yf=class extends K{constructor(e){super(),W(this,e,o6,n6,U,{side:0,seekStep:1,handleSingleFirstClick:4,handleSecondClick:5},i6)}},wf=yf;function l6(i,e,t){let{playNextVideo:n}=e;return Rt(()=>{n()}),i.$$set=o=>{"playNextVideo"in o&&t(0,n=o.playNextVideo)},[n]}var kf=class extends K{constructor(e){super(),W(this,e,l6,null,U,{playNextVideo:0})}},Tp=kf;var{window:r6}=Ao;function s6(i){Pe(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 Ip(i){let e,t,n,o;e=new wf({props:{side:"left",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[100],handleSecondClick:i[130]}});let r=!i[48]&&Ep(i);return{c(){N(e.$$.fragment),t=z(),r&&r.c(),n=lt()},m(l,a){R(e,l,a),C(l,t,a),r&&r.m(l,a),C(l,n,a),o=!0},p(l,a){let s={};a[0]&2&&(s.seekStep=l[1].controls.seekStepMobile/1e3),e.$set(s),l[48]?r&&(ue(),_(r,1,1,()=>{r=null}),fe()):r?(r.p(l,a),a[1]&131072&&d(r,1)):(r=Ep(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&&(k(t),k(n)),D(e,l),r&&r.d(l)}}}function Ep(i){let e,t;return e=new wf({props:{side:"right",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[100],handleSecondClick:i[131]}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&2&&(r.seekStep=n[1].controls.seekStepMobile/1e3),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Mp(i){var n;let e,t;return e=new ds({props:{thumbUrl:i[2],startTime:(n=i[3])==null?void 0:n.startTime}}),{c(){N(e.$$.fragment)},m(o,r){R(e,o,r),t=!0},p(o,r){var a;let 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 Vp(i){let e,t;return e=new ms({}),{c(){N(e.$$.fragment)},m(n,o){R(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 Ap(i){let e,t,n;return t=new gr({props:{adsSlotId:i[7],adsParams:i[8],adsPreviewParam:i[9],duration:i[10]}}),{c(){e=P("div"),N(t.$$.fragment),f(e,"class","ads-container svelte-1jy89ut"),H(e,"hidden",i[34]!=="ads")},m(o,r){C(o,e,r),R(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&&k(e),D(t)}}}function Lp(i){let e,t;return e=new Tp({props:{playNextVideo:i[22]}}),{c(){N(e.$$.fragment)},m(n,o){R(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 Bp(i){let e,t;return e=new ss({}),{c(){N(e.$$.fragment)},m(n,o){R(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,n;return t=new ar({props:{"aria-label":G("video360")}}),{c(){e=P("div"),N(t.$$.fragment),f(e,"class","spherical-video-icon svelte-1jy89ut")},m(o,r){C(o,e,r),R(t,e,null),n=!0},p:me,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),D(t)}}}function Dp(i){let e,t;return e=new us({props:{thumbUrl:i[2],chromecastDeviceName:i[51]}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&4&&(r.thumbUrl=n[2]),o[1]&1048576&&(r.chromecastDeviceName=n[51]),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 Np(i){let e,t;return e=new as({props:{shifted:i[30],captions:i[53],position:i[44],playerSize:i[31],isMobile:!0}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&1073741824&&(r.shifted=n[30]),o[1]&4194304&&(r.captions=n[53]),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 Op(i){let e,t,n,o,r;return t=new fs({}),{c(){e=P("div"),N(t.$$.fragment)},m(l,a){C(l,e,a),R(t,e,null),n=!0,o||(r=de(e,"click",rt(i[101])),o=!0)},p:me,i(l){n||(d(t.$$.fragment,l),n=!0)},o(l){_(t.$$.fragment,l),n=!1},d(l){l&&k(e),D(t),o=!1,r()}}}function Fp(i){let e,t,n;function o(l){i[132](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[54]!==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 rs({props:r}),pe.push(()=>Fe(e,"controlsElementRef",o)),{c(){N(e.$$.fragment)},m(l,a){R(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]&8388608&&(s.canRewindLive=l[5]&&l[54]!==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],Oe(()=>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 Hp(i){let e,t;return e=new Tr({}),{c(){N(e.$$.fragment)},m(n,o){R(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;return e=new Cr({}),{c(){N(e.$$.fragment)},m(n,o){R(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 qp(i){let e,t,n=i[5]&&i[78]&&!i[47].has("TIMELINE"),o,r,l,a,s,u,c,m,h,S,b,w,y,T,v,g;e=new cs({props:{hidden:i[34]!=="thumb"||i[33]||i[89]&&i[4],thumbUrl:i[2],startVideo:i[28]}});let E=n&&Ip(i),B=i[34]==="waitingLive"&&Mp(i),L=i[34]==="waitingRecord"&&Vp(i),F=i[6]&&i[21]&&Ap(i),ae=i[41]&&i[17]&&i[18]&&Lp(i),oe=i[49]&&Bp(i),I=i[50]&&Rp(i),le=i[35]&&Dp(i),$=i[52].value!=="off"&&Np(i),j=i[33]&&Op(i),x=i[21]&&Fp(i);w=new vr({props:{isLive:i[55],isHidden:!i[40],isPlaying:i[56],position:i[44],duration:i[43]}});let O=i[38]&&Hp(i),Q=i[57]&&zp(i);return{c(){N(e.$$.fragment),t=z(),E&&E.c(),o=z(),B&&B.c(),r=z(),L&&L.c(),l=z(),F&&F.c(),a=z(),ae&&ae.c(),s=z(),oe&&oe.c(),u=z(),I&&I.c(),c=z(),le&&le.c(),m=z(),$&&$.c(),h=z(),j&&j.c(),S=z(),x&&x.c(),b=z(),N(w.$$.fragment),y=z(),O&&O.c(),T=z(),Q&&Q.c(),v=lt()},m(A,Y){R(e,A,Y),C(A,t,Y),E&&E.m(A,Y),C(A,o,Y),B&&B.m(A,Y),C(A,r,Y),L&&L.m(A,Y),C(A,l,Y),F&&F.m(A,Y),C(A,a,Y),ae&&ae.m(A,Y),C(A,s,Y),oe&&oe.m(A,Y),C(A,u,Y),I&&I.m(A,Y),C(A,c,Y),le&&le.m(A,Y),C(A,m,Y),$&&$.m(A,Y),C(A,h,Y),j&&j.m(A,Y),C(A,S,Y),x&&x.m(A,Y),C(A,b,Y),R(w,A,Y),C(A,y,Y),O&&O.m(A,Y),C(A,T,Y),Q&&Q.m(A,Y),C(A,v,Y),g=!0},p(A,Y){let Te={};Y[0]&16|Y[1]&12&&(Te.hidden=A[34]!=="thumb"||A[33]||A[89]&&A[4]),Y[0]&4&&(Te.thumbUrl=A[2]),Y[0]&268435456&&(Te.startVideo=A[28]),e.$set(Te),Y[0]&32|Y[1]&65536&&(n=A[5]&&A[78]&&!A[47].has("TIMELINE")),n?E?(E.p(A,Y),Y[0]&32|Y[1]&65536&&d(E,1)):(E=Ip(A),E.c(),d(E,1),E.m(o.parentNode,o)):E&&(ue(),_(E,1,1,()=>{E=null}),fe()),A[34]==="waitingLive"?B?(B.p(A,Y),Y[1]&8&&d(B,1)):(B=Mp(A),B.c(),d(B,1),B.m(r.parentNode,r)):B&&(ue(),_(B,1,1,()=>{B=null}),fe()),A[34]==="waitingRecord"?L?Y[1]&8&&d(L,1):(L=Vp(A),L.c(),d(L,1),L.m(l.parentNode,l)):L&&(ue(),_(L,1,1,()=>{L=null}),fe()),A[6]&&A[21]?F?(F.p(A,Y),Y[0]&2097216&&d(F,1)):(F=Ap(A),F.c(),d(F,1),F.m(a.parentNode,a)):F&&(ue(),_(F,1,1,()=>{F=null}),fe()),A[41]&&A[17]&&A[18]?ae?(ae.p(A,Y),Y[0]&393216|Y[1]&1024&&d(ae,1)):(ae=Lp(A),ae.c(),d(ae,1),ae.m(s.parentNode,s)):ae&&(ue(),_(ae,1,1,()=>{ae=null}),fe()),A[49]?oe?Y[1]&262144&&d(oe,1):(oe=Bp(A),oe.c(),d(oe,1),oe.m(u.parentNode,u)):oe&&(ue(),_(oe,1,1,()=>{oe=null}),fe()),A[50]?I?(I.p(A,Y),Y[1]&524288&&d(I,1)):(I=Rp(A),I.c(),d(I,1),I.m(c.parentNode,c)):I&&(ue(),_(I,1,1,()=>{I=null}),fe()),A[35]?le?(le.p(A,Y),Y[1]&16&&d(le,1)):(le=Dp(A),le.c(),d(le,1),le.m(m.parentNode,m)):le&&(ue(),_(le,1,1,()=>{le=null}),fe()),A[52].value!=="off"?$?($.p(A,Y),Y[1]&2097152&&d($,1)):($=Np(A),$.c(),d($,1),$.m(h.parentNode,h)):$&&(ue(),_($,1,1,()=>{$=null}),fe()),A[33]?j?(j.p(A,Y),Y[1]&4&&d(j,1)):(j=Op(A),j.c(),d(j,1),j.m(S.parentNode,S)):j&&(ue(),_(j,1,1,()=>{j=null}),fe()),A[21]?x?(x.p(A,Y),Y[0]&2097152&&d(x,1)):(x=Fp(A),x.c(),d(x,1),x.m(b.parentNode,b)):x&&(ue(),_(x,1,1,()=>{x=null}),fe());let Qe={};Y[1]&16777216&&(Qe.isLive=A[55]),Y[1]&512&&(Qe.isHidden=!A[40]),Y[1]&33554432&&(Qe.isPlaying=A[56]),Y[1]&8192&&(Qe.position=A[44]),Y[1]&4096&&(Qe.duration=A[43]),w.$set(Qe),A[38]?O?Y[1]&128&&d(O,1):(O=Hp(A),O.c(),d(O,1),O.m(T.parentNode,T)):O&&(ue(),_(O,1,1,()=>{O=null}),fe()),A[57]?Q?Y[1]&67108864&&d(Q,1):(Q=zp(A),Q.c(),d(Q,1),Q.m(v.parentNode,v)):Q&&(ue(),_(Q,1,1,()=>{Q=null}),fe())},i(A){g||(d(e.$$.fragment,A),d(E),d(B),d(L),d(F),d(ae),d(oe),d(I),d(le),d($),d(j),d(x),d(w.$$.fragment,A),d(O),d(Q),g=!0)},o(A){_(e.$$.fragment,A),_(E),_(B),_(L),_(F),_(ae),_(oe),_(I),_(le),_($),_(j),_(x),_(w.$$.fragment,A),_(O),_(Q),g=!1},d(A){A&&(k(t),k(o),k(r),k(l),k(a),k(s),k(u),k(c),k(m),k(h),k(S),k(b),k(y),k(T),k(v)),D(e,A),E&&E.d(A),B&&B.d(A),L&&L.d(A),F&&F.d(A),ae&&ae.d(A),oe&&oe.d(A),I&&I.d(A),le&&le.d(A),$&&$.d(A),j&&j.d(A),x&&x.d(A),D(w,A),O&&O.d(A),Q&&Q.d(A)}}}function a6(i){let e,t,n,o,r,l=i[46],a,s,u,c,m,h,S=qp(i);return{c(){e=P("div"),t=P("div"),n=P("div"),r=z(),S.c(),a=z(),s=P("div"),f(n,"class","video-container svelte-1jy89ut"),f(n,"style",o=`transform: rotate(${i[32]}deg) scale(${i[42]})`),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(b,w){C(b,e,w),p(e,t),p(t,n),i[129](n),p(e,r),S.m(e,null),p(e,a),p(e,s),i[133](s),i[134](e),c=!0,m||(h=[de(r6,"blur",i[99]),de(t,"click",Bt(i[100])),de(e,"click",i[102],!0),de(e,"focusin",i[103],!0)],m=!0)},p(b,w){(!c||w[1]&2050&&o!==(o=`transform: rotate(${b[32]}deg) scale(${b[42]})`))&&f(n,"style",o),(!c||w[0]&2)&&H(n,"fast-rotate",!b[1].isSmoothVideoRotate),(!c||w[1]&8)&&H(t,"hidden",b[34]!=="video"),w[1]&32768&&U(l,l=b[46])?(ue(),_(S,1,1,me),fe(),S=qp(b),S.c(),d(S,1),S.m(e,a)):S.p(b,w)},i(b){c||(d(S),c=!0)},o(b){_(S),c=!1},d(b){b&&k(e),i[129](null),S.d(b),i[133](null),i[134](null),m=!1,xe(h)}}}function u6(i,e,t){var yn,wn;let n,o,r,l,a,s,u,c,m,h,S,b,w,y,T,v,g,E,B,L,F,ae,oe,I,le,$,j,x,O,Q,A,Y,Te,Qe,Ke,Xe,We,{store:ye}=e,{uiConfig:X}=e,{thumbUrl:ve}=e,{videoContainer:He}=e,{interactiveContainer:Ze}=e,{live:$e}=e,{autoplay:be}=e,{canRewindLive:De}=e,{showAds:Ue}=e,{adsSlotId:nt=void 0}=e,{adsParams:ke=void 0}=e,{adsPreviewParam:Z=void 0}=e,{duration:Ce=void 0}=e,{logoClickable:ce}=e,{logoHidden:Ie}=e,{logoTargetUrl:Je=""}=e,{showNextPrevButtons:ft=!1}=e,{nextButtonActive:pt=!1}=e,{prevButtonActive:ut=!1}=e,{endScreenVideoTitle:It=void 0}=e,{endScreenVideoThumb:mt=void 0}=e,{isOneVideoPlaylist:we=!1}=e,{supportLink:yt}=e,{outerContainerRef:Et=void 0}=e,{showMiniTimer:Pt=!1}=e,{fullScreenTarget:ze=void 0}=e,{playerStarted:qt=!1}=e,{playNextVideo:_e=Yo.noop}=e,{playPrevVideo:_t=Yo.noop}=e,{repeatPlaylist:Mt=Yo.noop}=e,{seekToInteractive:ht}=e,{toggleGraph:bt}=e,{playPrevChapter:st}=e,{firstStart:Le}=e,{seekTime:dt}=e,ii=ye.getLogger().createComponentLog("Root component"),Ut=ye.interfaceLanguage$;q(i,Ut,ne=>t(46,$=ne));let Ki=ye.state.playbackState$;q(i,Ki,ne=>t(126,oe=ne));let Wi=ye.ads.playbackState;q(i,Wi,ne=>t(127,I=ne));let xt=ye.state.positionWithScrubbing$;q(i,xt,ne=>t(44,a=ne));let Vi=ye.state.duration$;q(i,Vi,ne=>t(43,l=ne));let Gi=ye.playerPhase;q(i,Gi,ne=>t(34,B=ne));let mi=ye.ui.isFullscreen;q(i,mi,ne=>t(141,u=ne));let Ai=ye.ui.controlsVisible;q(i,Ai,ne=>t(30,o=ne));let sn=ye.ui.interactiveHideMobileControls;q(i,sn,ne=>t(118,S=ne));let ji=ye.ui.settingsMenuVisible;q(i,ji,ne=>t(117,n=ne));let Qi=ye.ui.scrubbingInProgress;q(i,Qi,ne=>t(119,w=ne));let Li=ye.ui.debugPanelVisible;q(i,Li,ne=>t(57,We=ne));let Bi=ye.state.isLoaderVisible;q(i,Bi,ne=>t(128,le=ne));let pi=ye.state.isEnded$;q(i,pi,ne=>t(121,v=ne));let wi=ye.state.chromecastConnected$;q(i,wi,ne=>t(35,L=ne));let ki=ye.state.chromecastDeviceName$;q(i,ki,ne=>t(51,A=ne));let Nt=ye.ads.postrollPassed;q(i,Nt,ne=>t(122,g=ne));let $t=ye.ui.mobileUnmuteButtonExpanded,Kt=ye.ui.mobileUnmuteButtonVisible,Yi=ye.state.isLive$;q(i,Yi,ne=>t(55,Ke=ne));let ai=ye.state.isPlaying$;q(i,ai,ne=>t(56,Xe=ne));let Zi=ye.state.isActiveLive$;q(i,Zi,ne=>t(48,x=ne));let Ci=ye.state.isRewindableLive$,Ri=ye.state.crashed$;q(i,Ri,ne=>t(33,T=ne));let Ct=ye.webApi.pictureInPictureApi,ni=ye.state.videoSize$;q(i,ni,ne=>t(142,m=ne));let Vt=ye.state.currentSubtitle$;q(i,Vt,ne=>t(52,Y=ne));let an=ye.state.currentSubtitleCaptions$;q(i,an,ne=>t(53,Te=ne));let Di=ye.state.duration$;q(i,Di,ne=>t(54,Qe=ne));let Xi=ye.state.graphIsOpened$;q(i,Xi,ne=>t(125,ae=ne));let Ni=ye.ui.playerSize;q(i,Ni,ne=>t(31,c=ne));let Wt=ye.ui.is3DVideo;q(i,Wt,ne=>t(49,O=ne));let ui=ye.ui.icon3DVideoVisible;q(i,ui,ne=>t(50,Q=ne));let _i=ye.ui.rotateAlpha;q(i,_i,ne=>t(32,b=ne));let fi=ye.state.isInteractive,ei=ye.state.isInteractiveTime$;q(i,ei,ne=>t(120,y=ne));let Ft=ye.state.isInteractiveExpectation$;q(i,Ft,ne=>t(124,F=ne));let Oi=ye.state.hasInteractiveBranches,Ji=ye.ui.controls.disabledControls$;q(i,Ji,ne=>t(47,j=ne));let Gt=ye.ui.touched;q(i,Gt,ne=>t(123,E=ne));let Si=ye.ui.clientInfo$;q(i,Si,ne=>t(140,s=ne));let ci=ye.ui.overlayContainer$,hi=ye.state.isFirstBytes$;q(i,hi,ne=>t(139,r=ne));let bn=ye.actions.internal.closeSettingsMenu,xi=(yn=ye.callbacks)==null?void 0:yn.onDisabledPlayPrevChapterClick,zt=(wn=ye.callbacks)==null?void 0:wn.onDisabledSeekToInteractiveClick,oi,jt,gi,Pi,$i,un,bi,en=Ne(!1);q(i,en,ne=>t(45,h=ne));let tn,Ye=!1,nn,Qt=!1,qe,fn=!0,on,Fi,ln=!1,cn;Ct==null||Ct.setContext(Bl());let An=ne=>{clearTimeout(Pi),ne&&(Kt.set(!0),$t.set(!0),Pi=window.setTimeout(()=>{$t.set(!1)},X.controls.collapseMobileUnmute),fi||di(X.controls.hideTimeoutMobile))};ye.setUiCallbacks({onStarted:An});let dn=()=>{window.clearTimeout(gi),t(112,Ye=!1),S&&sn.set(!1)},di=ne=>{dn(),t(112,Ye=!0),gi=window.setTimeout(()=>t(112,Ye=!1),ne);let wt=ne-100;tn=window.setTimeout(()=>{h&&en.set(!1)},wt>0?wt:ne)},mn=Wt.subscribe(ne=>{ui.set(ne),ne&&(window.clearTimeout($i),$i=window.setTimeout(()=>ui.set(!1),X.controls.hide360IconTimeout))}),li=async()=>{var wt,kn,zi,te;let ne=ho();if(ne){di(X.controls.hideTimeoutFullscreen);try{await(Ct==null?void 0:Ct.remove())}catch(ot){ii({message:String(ot)})}try{let ot=m!=null&&m.width&&(m!=null&&m.height)?m:c;await Bc(ot)}catch(ot){ii({message:String(ot)})}}mi.set(ne),ye.getAdmanWrapper().setFullscreen(ne),u?(kn=(wt=ye.callbacks)==null?void 0:wt.onFullscreenEnter)==null||kn.call(wt):(te=(zi=ye.callbacks)==null?void 0:zi.onFullscreenExit)==null||te.call(zi)},Fn=ne=>{let wt=ne;Ni.set({width:wt.target.width,height:wt.target.height})};Rt(()=>{var wt;return _r(li),zo(Ct)&&(Ct==null||Ct.assignPlayerContainer(oi),Ct==null||Ct.registryExternalEventHandlers({resize:Fn})),t(39,fn=!Sp(s)),Ze&&((wt=He.parentElement)==null||wt.insertBefore(Ze,He.nextSibling)),()=>{window.clearTimeout(gi),window.clearTimeout(tn),window.clearTimeout(Pi),window.clearTimeout($i),mn(),Ct==null||Ct.dispose(),hr(li)}});let pn=ne=>{let wt=a+(ne==="forward"?1:-1)*X.controls.seekStepMobile/1e3;wt<0?wt=0:wt>l&&(wt=l-1),t(114,Qt=!0),dt(wt)},vn=async()=>{if(ho())await pr(document),ii({message:"exit fullscreen"});else{if(ii({message:"request fullscreen"}),(0,Yo.isIOS)()&&!r)return;let ne=(0,Yo.isIOS)()||!Et?oi:Et,wt=ne.getRootNode(),kn=wt instanceof ShadowRoot?wt.host:wt,zi=ze instanceof HTMLElement&&ze.contains(kn),te=X.allowChangingFullscreenTarget&&ze&&zi?ze:ne;await mr(te)}},rn=()=>{bn()},ri=()=>{if(n){rn();return}if(!qt){Le(),di(X.controls.hideTimeoutCursor);return}t(114,Qt=!1),o?dn():di(X.controls.hideTimeoutMobile)},ti=()=>{if(n){rn();return}},Ln=()=>{Gt.set(!0)},Hn=()=>{fi||(en.set(!0),di(X.controls.hideTimeoutCursor))},Bn=ne=>{xi&&(xi(ne),di(X.controls.hideTimeoutMobile))},Yt=ne=>{zt&&(zt(ne),di(X.controls.hideTimeoutMobile))};function Pn(ne){pe[ne?"unshift":"push"](()=>{He=ne,t(0,He)})}let Tn=()=>pn("backward"),_n=()=>pn("forward");function zn(ne){jt=ne,t(37,jt)}function In(ne){pe[ne?"unshift":"push"](()=>{bi=ne,t(29,bi)})}function Hi(ne){pe[ne?"unshift":"push"](()=>{oi=ne,t(36,oi)})}return i.$$set=ne=>{"store"in ne&&t(106,ye=ne.store),"uiConfig"in ne&&t(1,X=ne.uiConfig),"thumbUrl"in ne&&t(2,ve=ne.thumbUrl),"videoContainer"in ne&&t(0,He=ne.videoContainer),"interactiveContainer"in ne&&t(107,Ze=ne.interactiveContainer),"live"in ne&&t(3,$e=ne.live),"autoplay"in ne&&t(4,be=ne.autoplay),"canRewindLive"in ne&&t(5,De=ne.canRewindLive),"showAds"in ne&&t(6,Ue=ne.showAds),"adsSlotId"in ne&&t(7,nt=ne.adsSlotId),"adsParams"in ne&&t(8,ke=ne.adsParams),"adsPreviewParam"in ne&&t(9,Z=ne.adsPreviewParam),"duration"in ne&&t(10,Ce=ne.duration),"logoClickable"in ne&&t(11,ce=ne.logoClickable),"logoHidden"in ne&&t(12,Ie=ne.logoHidden),"logoTargetUrl"in ne&&t(13,Je=ne.logoTargetUrl),"showNextPrevButtons"in ne&&t(14,ft=ne.showNextPrevButtons),"nextButtonActive"in ne&&t(15,pt=ne.nextButtonActive),"prevButtonActive"in ne&&t(16,ut=ne.prevButtonActive),"endScreenVideoTitle"in ne&&t(17,It=ne.endScreenVideoTitle),"endScreenVideoThumb"in ne&&t(18,mt=ne.endScreenVideoThumb),"isOneVideoPlaylist"in ne&&t(19,we=ne.isOneVideoPlaylist),"supportLink"in ne&&t(20,yt=ne.supportLink),"outerContainerRef"in ne&&t(108,Et=ne.outerContainerRef),"showMiniTimer"in ne&&t(109,Pt=ne.showMiniTimer),"fullScreenTarget"in ne&&t(110,ze=ne.fullScreenTarget),"playerStarted"in ne&&t(21,qt=ne.playerStarted),"playNextVideo"in ne&&t(22,_e=ne.playNextVideo),"playPrevVideo"in ne&&t(23,_t=ne.playPrevVideo),"repeatPlaylist"in ne&&t(24,Mt=ne.repeatPlaylist),"seekToInteractive"in ne&&t(25,ht=ne.seekToInteractive),"toggleGraph"in ne&&t(26,bt=ne.toggleGraph),"playPrevChapter"in ne&&t(27,st=ne.playPrevChapter),"firstStart"in ne&&t(28,Le=ne.firstStart),"seekTime"in ne&&t(111,dt=ne.seekTime)},i.$$.update=()=>{if(i.$$.dirty[1]&12|i.$$.dirty[4]&24)e:t(38,un=(B==="video"&&le||B==="ads"&&I==="inactive")&&!T);if(i.$$.dirty[0]&536870912)e:ci.set(bi);if(i.$$.dirty[4]&4)e:t(113,nn=oe!==Up.PlaybackState.PLAYING);if(i.$$.dirty[3]&303562752|i.$$.dirty[4]&3)e:t(115,qe=ae||S||!Ye&&(v&&!!Oi||nn&&F));if(i.$$.dirty[1]&28|i.$$.dirty[3]&91750400)e:Ai.set((nn||n||w||L||Ye&&!Qt)&&!qe&&B==="video"&&!T);if(i.$$.dirty[0]&1073741826|i.$$.dirty[1]&12|i.$$.dirty[3]&1073807360)e:t(40,on=X.features.thumbTimer&&Pt&&B==="video"&&!o&&!T&&!fi&&(X.hideThumbTimerAfterTouch&&!E||!X.hideThumbTimerAfterTouch));if(i.$$.dirty[0]&64|i.$$.dirty[1]&4|i.$$.dirty[3]&805306368)e:t(41,Fi=(Ue&&g||!Ue)&&v&&!T);if(i.$$.dirty[0]&2|i.$$.dirty[3]&209715200)e:!w&&ln&&!y&&di(X.controls.hideTimeoutMobile),t(116,ln=w);if(i.$$.dirty[0]&1|i.$$.dirty[1]&3)e:t(42,cn=He&&b%180?c.height/c.width:1)},[He,X,ve,$e,be,De,Ue,nt,ke,Z,Ce,ce,Ie,Je,ft,pt,ut,It,mt,we,yt,qt,_e,_t,Mt,ht,bt,st,Le,bi,o,c,b,T,B,L,oi,jt,un,fn,on,Fi,cn,l,a,h,$,j,x,O,Q,A,Y,Te,Qe,Ke,Xe,We,Ut,Ki,Wi,xt,Vi,Gi,mi,Ai,sn,ji,Qi,Li,Bi,pi,wi,ki,Nt,Yi,ai,Zi,Ci,Ri,ni,Vt,an,Di,Xi,Ni,Wt,ui,_i,fi,ei,Ft,Ji,Gt,Si,hi,en,pn,vn,rn,ri,ti,Ln,Hn,Bn,Yt,ye,Ze,Et,Pt,ze,dt,Ye,nn,Qt,qe,ln,n,S,w,y,v,g,E,F,ae,oe,I,le,Pn,Tn,_n,zn,In,Hi]}var Cf=class extends K{constructor(e){super(),W(this,e,u6,a6,U,{store:106,uiConfig:1,thumbUrl:2,videoContainer:0,interactiveContainer:107,live:3,autoplay:4,canRewindLive:5,showAds:6,adsSlotId:7,adsParams:8,adsPreviewParam:9,duration:10,logoClickable:11,logoHidden:12,logoTargetUrl:13,showNextPrevButtons:14,nextButtonActive:15,prevButtonActive:16,endScreenVideoTitle:17,endScreenVideoThumb:18,isOneVideoPlaylist:19,supportLink:20,outerContainerRef:108,showMiniTimer:109,fullScreenTarget:110,playerStarted:21,playNextVideo:22,playPrevVideo:23,repeatPlaylist:24,seekToInteractive:25,toggleGraph:26,playPrevChapter:27,firstStart:28,seekTime:111},s6,[-1,-1,-1,-1,-1,-1])}},Kp=Cf;function f6(i){Pe(i,"svelte-cghoty",`.root.svelte-cghoty{--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(
32
+ )}.hidden.svelte-1bcvcf2{visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0}`)}function I5(i){let e,t;return{c(){e=T("div"),t=De(i[0]),f(e,"class","title svelte-1bcvcf2"),H(e,"hidden",i[1])},m(n,o){C(n,e,o),p(e,t)},p(n,[o]){o&1&&Ye(t,n[0]),o&2&&H(e,"hidden",n[1])},i:de,o:de,d(n){n&&k(e)}}}function E5(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 sf=class extends K{constructor(e){super(),G(this,e,E5,I5,q,{title:0,isHidden:1},T5)}},K0=sf;function M5(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 W0(i){let e,t,n,o,r,l,a;return{c(){e=T("div"),t=T("span"),n=De(i[0]),o=F(),r=T("span"),r.textContent=`${Q("waiting_live_day_value")}`,l=F(),a=T("span"),a.textContent=`${Q("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){C(s,e,u),p(e,t),p(t,n),p(e,o),p(e,r),C(s,l,u),C(s,a,u)},p(s,u){u&1&&Ye(n,s[0])},d(s){s&&(k(e),k(l),k(a))}}}function G0(i){let e,t,n,o,r,l,a;return{c(){e=T("div"),t=T("span"),n=De(i[1]),o=F(),r=T("span"),r.textContent=`${Q("waiting_live_hour_value")}`,l=F(),a=T("span"),a.textContent=`${Q("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){C(s,e,u),p(e,t),p(t,n),p(e,o),p(e,r),C(s,l,u),C(s,a,u)},p(s,u){u&2&&Ye(n,s[1])},d(s){s&&(k(e),k(l),k(a))}}}function j0(i){let e,t,n,o,r,l,a;return{c(){e=T("div"),t=T("span"),n=De(i[2]),o=F(),r=T("span"),r.textContent=`${Q("waiting_live_minute_value")}`,l=F(),a=T("span"),a.textContent=`${Q("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){C(s,e,u),p(e,t),p(t,n),p(e,o),p(e,r),C(s,l,u),C(s,a,u)},p(s,u){u&4&&Ye(n,s[2])},d(s){s&&(k(e),k(l),k(a))}}}function Q0(i){let e,t,n,o,r;return{c(){e=T("div"),t=T("span"),n=De(i[3]),o=F(),r=T("span"),r.textContent=`${Q("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){C(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&&k(e)}}}function V5(i){let e,t,n,o,r=i[0]&&W0(i),l=i[1]&&G0(i),a=i[2]&&j0(i),s=i[3]&&Q0(i);return{c(){e=T("div"),r&&r.c(),t=F(),l&&l.c(),n=F(),a&&a.c(),o=F(),s&&s.c(),f(e,"class","timer__container svelte-1qpxtfg")},m(u,c){C(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=W0(u),r.c(),r.m(e,t)):r&&(r.d(1),r=null),u[1]?l?l.p(u,c):(l=G0(u),l.c(),l.m(e,n)):l&&(l.d(1),l=null),u[2]?a?a.p(u,c):(a=j0(u),a.c(),a.m(e,o)):a&&(a.d(1),a=null),u[3]?s?s.p(u,c):(s=Q0(u),s.c(),s.m(e,null)):s&&(s.d(1),s=null)},i:de,o:de,d(u){u&&k(e),r&&r.d(),l&&l.d(),a&&a.d(),s&&s.d()}}}function A5(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 b=Math.floor(w/86400);b&&(w-=b*86400,t(0,r=c(b)));let S=Math.floor(w/3600);t(1,l=c(S));let y=Math.floor(w/60)%60;t(2,a=c(y));let P=w%60;t(3,s=c(P))},h=()=>{let w=Math.floor(Date.now()/1e3),b=n-w;m(b),b>=1?u=requestAnimationFrame(h):o()};return Rt(()=>{u=requestAnimationFrame(h)}),Un(()=>{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 af=class extends K{constructor(e){super(),G(this,e,A5,V5,q,{startTime:4,onTimerOver:5},M5)}},Y0=af;function L5(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=oe(c,u[m]);return{c(){e=V("svg"),s&&s.c(),t=V("path"),n=V("path"),o=V("path"),r=V("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"),_i(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"),_i(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"),_i(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"),_i(r,"opacity",".986"),ge(e,c)},m(m,h){C(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)&&Ve(s,a,m,m[1],l?Me(a,m[1],h,null):Ae(m[1]),null),ge(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&&k(e),s&&s.d(m)}}}function B5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var uf=class extends K{constructor(e){super(),G(this,e,B5,L5,q,{})}},Z0=uf;function R5(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 D5(i){let e,t,n,o,r;return o=new Y0({props:{startTime:i[1]||0,onTimerOver:i[3]}}),{c(){e=T("div"),t=T("span"),t.textContent=`${Q("waiting_live_timer_title")}`,n=F(),D(o.$$.fragment),f(t,"class","timer__title svelte-15pewff"),f(e,"class","waiting-timer timer svelte-15pewff")},m(l,a){C(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&&k(e),B(o)}}}function N5(i){let e,t,n,o,r,l;return n=new Z0({}),{c(){e=T("div"),t=T("div"),D(n.$$.fragment),o=F(),r=T("span"),r.textContent=`${Q("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){C(a,e,s),p(e,t),L(n,t,null),p(e,o),p(e,r),l=!0},p:de,i(a){l||(d(n.$$.fragment,a),l=!0)},o(a){_(n.$$.fragment,a),l=!1},d(a){a&&k(e),B(n)}}}function O5(i){let e,t,n,o,r,l=[N5,D5],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){C(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):(fe(),_(a[m],1,1,()=>{a[m]=null}),ce(),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&&k(e),a[t].d()}}}function F5(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 ff=class extends K{constructor(e){super(),G(this,e,F5,O5,q,{thumbUrl:0,startTime:1},R5)}},as=ff;function H5(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 z5(i){let e,t;return{c(){e=T("div"),t=T("p"),t.textContent=`${Q("waiting_record_title")}`,f(t,"class","waiting-title svelte-1bcnzdw"),f(e,"class","waiting-container svelte-1bcnzdw")},m(n,o){C(n,e,o),p(e,t)},p:de,i:de,o:de,d(n){n&&k(e)}}}var cf=class extends K{constructor(e){super(),G(this,e,null,z5,q,{},H5)}},us=cf;var{window:q5}=Po;function U5(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 J0(i){var n;let e,t;return e=new as({props:{thumbUrl:i[3],startTime:(n=i[4])==null?void 0:n.startTime}}),{c(){D(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){B(e,o)}}}function x0(i){let e,t;return e=new us({}),{c(){D(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){B(e,n)}}}function $0(i){let e,t,n;return t=new dr({props:{adsSlotId:i[8],adsParams:i[9],adsPreviewParam:i[10],duration:i[11]}}),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","ads-container svelte-1o4wf3x"),H(e,"hidden",i[38]!=="ads")},m(o,r){C(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)&&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&&k(e),B(t)}}}function ep(i){let e,t;return e=new y1({props:{title:i[18],thumb:i[19],playNextVideo:i[23]}}),{c(){D(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){B(e,n)}}}function tp(i){let e,t;return e=new K0({props:{title:i[2],isHidden:!i[36]}}),{c(){D(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){B(e,n)}}}function ip(i){let e,t;return e=new ns({props:{isShifted:i[38]==="video"&&i[36]}}),{c(){D(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){B(e,n)}}}function np(i){let e,t,n;return t=new nr({props:{"aria-label":Q("video360")}}),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","spherical-video-icon svelte-1o4wf3x")},m(o,r){C(o,e,r),L(t,e,null),n=!0},p:de,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),B(t)}}}function op(i){let e,t;return e=new ls({props:{thumbUrl:i[3],chromecastDeviceName:i[53]}}),{c(){D(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]&4194304&&(r.chromecastDeviceName=n[53]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function lp(i){let e,t;return e=new os({props:{shifted:i[36],captions:i[55],position:i[56],playerSize:i[34]}}),{c(){D(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]&16777216&&(r.captions=n[55]),o[1]&33554432&&(r.position=n[56]),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){B(e,n)}}}function rp(i){let e,t,n,o,r;return t=new rs({}),{c(){e=T("div"),D(t.$$.fragment)},m(l,a){C(l,e,a),L(t,e,null),n=!0,o||(r=[me(e,"contextmenu",Bt(i[108])),me(e,"click",st(i[119]))],o=!0)},p:de,i(l){n||(d(t.$$.fragment,l),n=!0)},o(l){_(t.$$.fragment,l),n=!1},d(l){l&&k(e),B(t),o=!1,nt(r)}}}function sp(i){let e,t,n;function o(l){i[156](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[57]!==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:mp,playNextVideo:i[23],playPrevVideo:i[24],repeatPlaylist:i[25],toggleFullscreen:i[106],returnFocus:i[155],seekToInteractive:i[26],toggleGraph:i[27],playPrevChapter:i[28]};return i[41]!==void 0&&(r.controlsElementRef=i[41]),e=new is({props:r}),pe.push(()=>He(e,"controlsElementRef",o)),{c(){D(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]&67108864&&(s.canRewindLive=l[6]&&l[57]!==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[155]),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],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function ap(i){let e,t;return e=new wr({}),{c(){D(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){B(e,n)}}}function up(i){let e,t;return e=new A1({}),{c(){D(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){B(e,n)}}}function fp(i){let e,t;return e=new br({}),{c(){D(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){B(e,n)}}}function cp(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,b,S,y,P,v,g,I,N,W,U,le;e=new ss({props:{hidden:i[38]!=="thumb"||i[37]||i[92]&&i[5],thumbUrl:i[3],startVideo:i[29]}});let ae=i[38]==="waitingLive"&&J0(i),O=i[38]==="waitingRecord"&&x0(i),R=i[7]&&i[22]&&$0(i),x=i[31]&&i[18]&&i[19]&&ep(i),Y=i[44]&&tp(i),J=i[49]&&ip(i),E=i[52]&&np(i),te=i[39]&&op(i),M=i[54].value!=="off"&&lp(i),ee=i[37]&&rp(i),ke=i[22]&&sp(i);b=new pr({props:{isLive:i[58],isHidden:!i[43],isPlaying:i[59],position:i[56],duration:i[60]}}),y=new R0({props:{data:i[103]}});function Ge(X){i[158](X)}let Ue={supportLink:i[21],returnFocus:i[157],visible:i[33],playerContainerRef:i[40],controlsContainerRef:i[41],position:i[61]};i[32]!==void 0&&(Ue.menuElementRef=i[32]),v=new i1({props:Ue}),pe.push(()=>He(v,"menuElementRef",Ge));let xe=i[42]&&ap(i),je=i[62]&&up(i),ve=i[63]&&fp(i);return{c(){D(e.$$.fragment),t=F(),ae&&ae.c(),n=F(),O&&O.c(),o=F(),R&&R.c(),r=F(),x&&x.c(),l=F(),Y&&Y.c(),a=F(),J&&J.c(),s=F(),E&&E.c(),u=F(),te&&te.c(),c=F(),M&&M.c(),m=F(),ee&&ee.c(),h=F(),ke&&ke.c(),w=F(),D(b.$$.fragment),S=F(),D(y.$$.fragment),P=F(),D(v.$$.fragment),I=F(),xe&&xe.c(),N=F(),je&&je.c(),W=F(),ve&&ve.c(),U=lt()},m(X,be){L(e,X,be),C(X,t,be),ae&&ae.m(X,be),C(X,n,be),O&&O.m(X,be),C(X,o,be),R&&R.m(X,be),C(X,r,be),x&&x.m(X,be),C(X,l,be),Y&&Y.m(X,be),C(X,a,be),J&&J.m(X,be),C(X,s,be),E&&E.m(X,be),C(X,u,be),te&&te.m(X,be),C(X,c,be),M&&M.m(X,be),C(X,m,be),ee&&ee.m(X,be),C(X,h,be),ke&&ke.m(X,be),C(X,w,be),L(b,X,be),C(X,S,be),L(y,X,be),C(X,P,be),L(v,X,be),C(X,I,be),xe&&xe.m(X,be),C(X,N,be),je&&je.m(X,be),C(X,W,be),ve&&ve.m(X,be),C(X,U,be),le=!0},p(X,be){let Oe={};be[0]&32|be[1]&192&&(Oe.hidden=X[38]!=="thumb"||X[37]||X[92]&&X[5]),be[0]&8&&(Oe.thumbUrl=X[3]),be[0]&536870912&&(Oe.startVideo=X[29]),e.$set(Oe),X[38]==="waitingLive"?ae?(ae.p(X,be),be[1]&128&&d(ae,1)):(ae=J0(X),ae.c(),d(ae,1),ae.m(n.parentNode,n)):ae&&(fe(),_(ae,1,1,()=>{ae=null}),ce()),X[38]==="waitingRecord"?O?be[1]&128&&d(O,1):(O=x0(X),O.c(),d(O,1),O.m(o.parentNode,o)):O&&(fe(),_(O,1,1,()=>{O=null}),ce()),X[7]&&X[22]?R?(R.p(X,be),be[0]&4194432&&d(R,1)):(R=$0(X),R.c(),d(R,1),R.m(r.parentNode,r)):R&&(fe(),_(R,1,1,()=>{R=null}),ce()),X[31]&&X[18]&&X[19]?x?(x.p(X,be),be[0]&786432|be[1]&1&&d(x,1)):(x=ep(X),x.c(),d(x,1),x.m(l.parentNode,l)):x&&(fe(),_(x,1,1,()=>{x=null}),ce()),X[44]?Y?(Y.p(X,be),be[1]&8192&&d(Y,1)):(Y=tp(X),Y.c(),d(Y,1),Y.m(a.parentNode,a)):Y&&(fe(),_(Y,1,1,()=>{Y=null}),ce()),X[49]?J?(J.p(X,be),be[1]&262144&&d(J,1)):(J=ip(X),J.c(),d(J,1),J.m(s.parentNode,s)):J&&(fe(),_(J,1,1,()=>{J=null}),ce()),X[52]?E?(E.p(X,be),be[1]&2097152&&d(E,1)):(E=np(X),E.c(),d(E,1),E.m(u.parentNode,u)):E&&(fe(),_(E,1,1,()=>{E=null}),ce()),X[39]?te?(te.p(X,be),be[1]&256&&d(te,1)):(te=op(X),te.c(),d(te,1),te.m(c.parentNode,c)):te&&(fe(),_(te,1,1,()=>{te=null}),ce()),X[54].value!=="off"?M?(M.p(X,be),be[1]&8388608&&d(M,1)):(M=lp(X),M.c(),d(M,1),M.m(m.parentNode,m)):M&&(fe(),_(M,1,1,()=>{M=null}),ce()),X[37]?ee?(ee.p(X,be),be[1]&64&&d(ee,1)):(ee=rp(X),ee.c(),d(ee,1),ee.m(h.parentNode,h)):ee&&(fe(),_(ee,1,1,()=>{ee=null}),ce()),X[22]?ke?(ke.p(X,be),be[0]&4194304&&d(ke,1)):(ke=sp(X),ke.c(),d(ke,1),ke.m(w.parentNode,w)):ke&&(fe(),_(ke,1,1,()=>{ke=null}),ce());let $e={};be[1]&134217728&&($e.isLive=X[58]),be[1]&4096&&($e.isHidden=!X[43]),be[1]&268435456&&($e.isPlaying=X[59]),be[1]&33554432&&($e.position=X[56]),be[1]&536870912&&($e.duration=X[60]),b.$set($e);let et={};be[0]&2097152&&(et.supportLink=X[21]),be[1]&131072&&(et.returnFocus=X[157]),be[1]&4&&(et.visible=X[33]),be[1]&512&&(et.playerContainerRef=X[40]),be[1]&1024&&(et.controlsContainerRef=X[41]),be[1]&1073741824&&(et.position=X[61]),!g&&be[1]&2&&(g=!0,et.menuElementRef=X[32],Fe(()=>g=!1)),v.$set(et),X[42]?xe?be[1]&2048&&d(xe,1):(xe=ap(X),xe.c(),d(xe,1),xe.m(N.parentNode,N)):xe&&(fe(),_(xe,1,1,()=>{xe=null}),ce()),X[62]?je?be[2]&1&&d(je,1):(je=up(X),je.c(),d(je,1),je.m(W.parentNode,W)):je&&(fe(),_(je,1,1,()=>{je=null}),ce()),X[63]?ve?be[2]&2&&d(ve,1):(ve=fp(X),ve.c(),d(ve,1),ve.m(U.parentNode,U)):ve&&(fe(),_(ve,1,1,()=>{ve=null}),ce())},i(X){le||(d(e.$$.fragment,X),d(ae),d(O),d(R),d(x),d(Y),d(J),d(E),d(te),d(M),d(ee),d(ke),d(b.$$.fragment,X),d(y.$$.fragment,X),d(v.$$.fragment,X),d(xe),d(je),d(ve),le=!0)},o(X){_(e.$$.fragment,X),_(ae),_(O),_(R),_(x),_(Y),_(J),_(E),_(te),_(M),_(ee),_(ke),_(b.$$.fragment,X),_(y.$$.fragment,X),_(v.$$.fragment,X),_(xe),_(je),_(ve),le=!1},d(X){X&&(k(t),k(n),k(o),k(r),k(l),k(a),k(s),k(u),k(c),k(m),k(h),k(w),k(S),k(P),k(I),k(N),k(W),k(U)),B(e,X),ae&&ae.d(X),O&&O.d(X),R&&R.d(X),x&&x.d(X),Y&&Y.d(X),J&&J.d(X),E&&E.d(X),te&&te.d(X),M&&M.d(X),ee&&ee.d(X),ke&&ke.d(X),B(b,X),B(y,X),B(v,X),xe&&xe.d(X),je&&je.d(X),ve&&ve.d(X)}}}function K5(i){let e,t,n,o,r=i[51],l,a,s,u,c=cp(i);return{c(){e=T("div"),t=T("div"),o=F(),c.c(),l=lt(),f(t,"class","video-container svelte-1o4wf3x"),f(t,"style",n=`transform: rotate(${i[35]}deg) scale(${i[46]})`),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){C(m,e,h),p(e,t),i[154](t),C(m,o,h),c.m(m,h),C(m,l,h),a=!0,s||(u=[me(e,"contextmenu",Bt(i[108])),me(e,"mousedown",Bt(i[113])),me(e,"mouseup",Bt(i[114])),me(e,"click",Bt(i[116])),me(e,"dblclick",Bt(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[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]&1048576&&q(r,r=m[51])?(fe(),_(c,1,1,de),ce(),c=cp(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&&(k(e),k(o),k(l)),i[154](null),c.d(m),s=!1,nt(u)}}}function W5(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:[K5]},$$scope:{ctx:i}};return t=new k1({props:s}),i[159](t),{c(){e=T("div"),D(t.$$.fragment),n=F(),o=T("div"),f(o,"class","overlay-container"),f(e,"class","player-wrapper svelte-1o4wf3x")},m(u,c){C(u,e,c),L(t,e,null),p(e,n),p(e,o),i[160](o),i[161](e),r=!0,l||(a=[me(q5,"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]&1&&(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&&k(e),i[159](null),B(t),i[160](null),i[161](null),l=!1,nt(a)}}}var mp=!0;function df(i){return i?i.offsetTop+df(i.offsetParent):0}function pp(i){return i?i.offsetLeft+pp(i.offsetParent):0}function G5(i,e,t){let n,o,r,l,a,s,u,c,m,h,w,b,S,y,P,v,g,I,N,W,U,le,ae,O,R,x,Y,J,E,te,M,ee,ke,Ge,Ue,xe,je,ve,X,be,Oe,$e,et,{store:ye}=e,{uiConfig:Le}=e,{title:Ke}=e,{thumbUrl:Xe}=e,{videoContainer:Te}=e,{interactiveContainer:Z}=e,{live:Ce}=e,{autoplay:ue}=e,{canRewindLive:Ie}=e,{showAds:Je}=e,{adsSlotId:at=void 0}=e,{adsParams:ut=void 0}=e,{adsPreviewParam:ft=void 0}=e,{duration:ht=void 0}=e,{logoClickable:gt}=e,{logoHidden:we}=e,{logoTargetUrl:pt=""}=e,{showNextPrevButtons:Et=!1}=e,{nextButtonActive:Mt=!1}=e,{prevButtonActive:ze=!1}=e,{endScreenVideoTitle:Ut=void 0}=e,{endScreenVideoThumb:Ft=void 0}=e,{isOneVideoPlaylist:_e=!1}=e,{supportLink:Nt}=e,{outerContainerRef:mt=void 0}=e,{playerStarted:vt=!1}=e,{fullScreenTarget:bt=void 0}=e,{showMiniTimer:Be=!1}=e,{playNextVideo:Qe=fs.noop}=e,{playPrevVideo:wt=fs.noop}=e,{repeatPlaylist:jt=fs.noop}=e,{seekToInteractive:$i}=e,{toggleGraph:fn}=e,{playPrevChapter:hi}=e,{firstStart:gi}=e,Li=ye.getLogger().createComponentLog("Root component"),ei=ye.interfaceLanguage$;z(i,ei,j=>t(51,M=j));let bi=ye.state.playbackState$;z(i,bi,j=>t(151,J=j));let cn=ye.ads.playbackState;z(i,cn,j=>t(152,E=j));let vi=ye.state.positionWithScrubbing$;z(i,vi,j=>t(56,xe=j));let Ki=ye.state.duration$;z(i,Ki,j=>t(60,be=j));let ri=ye.playerPhase;z(i,ri,j=>t(38,ae=j));let Bi=ye.ui.isFullscreen;z(i,Bi,j=>t(141,b=j));let yi=ye.ui.controlsVisible;z(i,yi,j=>t(36,I=j));let Wi=ye.ui.settingsMenuVisible;z(i,Wi,j=>t(139,s=j));let wi=ye.ui.scrubbingInProgress;z(i,wi,j=>t(143,v=j));let si=ye.ui.contextMenu.visible$;z(i,si,j=>t(33,n=j));let At=ye.ui.debugPanelVisible;z(i,At,j=>t(63,et=j));let Lt=ye.state.isLoaderVisible;z(i,Lt,j=>t(153,te=j));let ki=ye.state.isEnded$;z(i,ki,j=>t(140,c=j));let Ci=ye.state.chromecastConnected$;z(i,Ci,j=>t(39,x=j));let Qt=ye.state.chromecastDeviceName$;z(i,Qt,j=>t(53,ke=j));let ai=ye.ads.postrollPassed;z(i,ai,j=>t(146,U=j));let ui=ye.state.isLive$;z(i,ui,j=>t(58,ve=j));let yt=ye.state.isPlaying$;z(i,yt,j=>t(59,X=j));let Ht=ye.state.crashed$;z(i,Ht,j=>t(37,W=j));let Ct=ye.webApi.pictureInPictureApi,Ri=ye.state.currentSubtitle$;z(i,Ri,j=>t(54,Ge=j));let ti=ye.state.currentSubtitleCaptions$;z(i,ti,j=>t(55,Ue=j));let dn=ye.state.duration$;z(i,dn,j=>t(57,je=j));let mn=ye.state.graphIsOpened$;z(i,mn,j=>t(147,le=j));let Jt=ye.ui.playerSize;z(i,Jt,j=>t(34,h=j));let Si=ye.ui.is3DVideo;z(i,Si,j=>t(49,m=j));let Gi=ye.ui.icon3DVideoVisible;z(i,Gi,j=>t(52,ee=j));let Pi=ye.ui.rotateAlpha;z(i,Pi,j=>t(35,P=j));let fi=ye.state.isInteractive,Yt=ye.state.isInteractiveTime$;z(i,Yt,j=>t(144,g=j));let xt=ye.state.isInteractiveExpectation$;z(i,xt,j=>t(150,Y=j));let Ti=ye.state.hasInteractiveBranches,ii=ye.ui.touched;z(i,ii,j=>t(148,O=j));let en=ye.ui.modals.hotKeyMap.data;z(i,en,j=>t(168,u=j));let Ii=ye.ui.modals.hotKeyMap.show;z(i,Ii,j=>t(62,$e=j));let pn=ye.ui.overlayContainer$,_n=ye.ui.controls.interactiveTimeIndicator;z(i,_n,j=>t(169,w=j));let tn=ye.state.showInteractiveTimeIndicator,ji=ye.ui.contextMenu.position$;z(i,ji,j=>t(61,Oe=j));let Di=ye.actions.internal.closeSettingsMenu,{fakeIsPlaying$:$t}=Rn();z(i,$t,j=>t(142,y=j));let ci,Ei,Ni,nn,Mi;en.set(Bc());let Oi,Fi,Ze=Ne(!1);z(i,Ze,j=>t(50,S=j));let Qi,Zt=Ne(!1);z(i,Zt,j=>t(149,R=j));let qe=Ne(),on=Ne(!1);z(i,on,j=>t(145,N=j));let Hi=!1,Yi=!1,ln,Zi,Cn,ni,oi,Xi,di=!1,re,dt=!1,{toggle:mi}=$t,pi=!1,li=null,Xt;Ct==null||Ct.setContext(Cl());let Nn=()=>{ue&&!fi&&Kt(Le.controls.hideTimeout)};ye.setUiCallbacks({onStarted:Nn});let Vn=()=>{window.clearTimeout(Ni),Zt.set(!1)},Sn=()=>{window.clearTimeout(nn),qe.set(null)},Kt=j=>{Vn(),Zt.set(!0),Ni=window.setTimeout(()=>Zt.set(!1),j);let kt=j-100;Qi=window.setTimeout(()=>{S&&Ze.set(!1)},kt>0?kt:j)},yn=(j,kt)=>{Sn(),qe.set(kt),nn=window.setTimeout(()=>qe.set(null),j)},jn=Si.subscribe(j=>{Gi.set(j),j&&(window.clearTimeout(Mi),Mi=window.setTimeout(()=>Gi.set(!1),Le.controls.hide360IconTimeout))}),On=async()=>{var kt,sn,Ji,Ln;let j=co();if(j){Kt(Le.controls.hideTimeoutFullscreen);try{await(Ct==null?void 0:Ct.remove())}catch(A){Li({message:String(A)})}}Bi.set(j),ye.getAdmanWrapper().setFullscreen(j),b?(sn=(kt=ye.callbacks)==null?void 0:kt.onFullscreenEnter)==null||sn.call(kt):(Ln=(Ji=ye.callbacks)==null?void 0:Ji.onFullscreenExit)==null||Ln.call(Ji)},Fn=j=>{let kt=j;Jt.set({width:kt.target.width,height:kt.target.height})};Rt(()=>{var kt;return fr(On),Ro(Ct)&&(Ct==null||Ct.assignPlayerContainer(ci),Ct==null||Ct.registryExternalEventHandlers({resize:Fn})),Z&&((kt=Te.parentElement)==null||kt.insertBefore(Z,Te.nextSibling)),()=>{window.clearTimeout(Ni),window.clearTimeout(Qi),window.clearTimeout(nn),window.clearTimeout(Mi),jn(),Ct==null||Ct.dispose(),cr(On)}});let An=async()=>{if(co())await ur(document),Li({message:"exit fullscreen"});else{Li({message:"request fullscreen"});let j=mt!=null?mt:ci,kt=j.getRootNode(),sn=kt instanceof ShadowRoot?kt.host:kt,Ji=bt instanceof HTMLElement&&bt.contains(sn),Ln=Le.allowChangingFullscreenTarget&&bt&&Ji?bt:j;await ar(Ln)}},rn=()=>{Di(),si.set(!1)},Hn=j=>{si.set(!0),ji.set({left:j.clientX,top:j.clientY})};function zn(){on.set(!0),fi||Kt(Le.controls.hideTimeoutCursor)}function ne(){fi||(Ze.set(!0),Kt(Le.controls.hideTimeoutCursor))}function St(){on.set(!1),t(131,Yi=!1),t(130,Hi=!1),pi=!1,ye.actions.internal.releaseCamera()}function Pn(j){if(w&&tn){let kt=j.currentTarget,sn=df(kt),Ji=pp(kt),Ln=j.pageX-Ji,A=j.pageY-sn,{left:se,bottom:Pe,right:We}=w,rt=We-se;return Ln>=se-rt&&A<=Pe+rt}}function hn(j){if(ci){let kt=df(j.currentTarget),sn=h.height,Ji=j.pageY-kt;if(Pn(j)){t(131,Yi=!1);return}Ji<40?t(131,Yi=!0):Ji>sn-40?t(130,Hi=!0):(t(131,Yi=!1),s||t(130,Hi=!1))}}function Tn(j){hn(j),Zi||Kt(Le.controls.hideTimeoutCursor),m&&pi&&li&&ye.actions.internal.moveCameraFocusPX(li.clientX-j.clientX,li.clientY-j.clientY,j.timeStamp-li.timeStamp),li=j}let wn=j=>{j.button===0&&(pi=!0,ye.actions.internal.holdCamera()),Kt(Le.controls.hideTimeoutCursor)},lo=j=>{j.button===0&&(li=j,pi=!1,ye.actions.internal.releaseCamera()),Kt(Le.controls.hideTimeoutCursor)},ro=()=>{mp&&(Li({message:"double click on video"}),An(),Kt(Le.controls.hideTimeoutCursor))},yo=()=>{if(n||s){rn();return}if(!(c&&!Ti)){if(dt)return mi();if(Xt==null||Xt.focus(),!vt){gi(),Kt(Le.controls.hideTimeoutCursor);return}ye.actions.internal.togglePlay(),Kt(Le.controls.hideTimeoutCursor)}},so=j=>{rn(),ii.set(!0),Kt(Le.controls.hideTimeout),j&&yn(Le.controls.hideHotKeyHelpers,j)},gn=()=>{var j,kt;rn(),(j=ye.callbacks)!=null&&j.onOpenHotKeyMap?(kt=ye.callbacks)==null||kt.onOpenHotKeyMap(u):Ii.update(sn=>!sn)},ie=()=>{if(n||s){rn();return}},ao=()=>{ii.set(!0)},xn=ye.ui.contextMenu.openedByBtnKeyboard$;z(i,xn,j=>t(138,a=j));let wo=ye.ui.contextMenu.btnRef$;z(i,wo,j=>t(137,l=j));let $n,eo=ye.ui.contextMenu.openedByHotKey$;z(i,eo,j=>t(136,r=j));let qo=ye.ui.contextMenu.lastActiveElem$;z(i,qo,j=>t(135,o=j));function Uo(j){pe[j?"unshift":"push"](()=>{Te=j,t(0,Te)})}let vl=()=>Xt==null?void 0:Xt.focus();function Ko(j){Ei=j,t(41,Ei)}let Qn=()=>Xt==null?void 0:Xt.focus();function Wo(j){$n=j,t(32,$n)}function ko(j){pe[j?"unshift":"push"](()=>{Xt=j,t(48,Xt)})}function Co(j){pe[j?"unshift":"push"](()=>{Fi=j,t(30,Fi)})}function Go(j){pe[j?"unshift":"push"](()=>{ci=j,t(40,ci)})}return i.$$set=j=>{"store"in j&&t(125,ye=j.store),"uiConfig"in j&&t(1,Le=j.uiConfig),"title"in j&&t(2,Ke=j.title),"thumbUrl"in j&&t(3,Xe=j.thumbUrl),"videoContainer"in j&&t(0,Te=j.videoContainer),"interactiveContainer"in j&&t(126,Z=j.interactiveContainer),"live"in j&&t(4,Ce=j.live),"autoplay"in j&&t(5,ue=j.autoplay),"canRewindLive"in j&&t(6,Ie=j.canRewindLive),"showAds"in j&&t(7,Je=j.showAds),"adsSlotId"in j&&t(8,at=j.adsSlotId),"adsParams"in j&&t(9,ut=j.adsParams),"adsPreviewParam"in j&&t(10,ft=j.adsPreviewParam),"duration"in j&&t(11,ht=j.duration),"logoClickable"in j&&t(12,gt=j.logoClickable),"logoHidden"in j&&t(13,we=j.logoHidden),"logoTargetUrl"in j&&t(14,pt=j.logoTargetUrl),"showNextPrevButtons"in j&&t(15,Et=j.showNextPrevButtons),"nextButtonActive"in j&&t(16,Mt=j.nextButtonActive),"prevButtonActive"in j&&t(17,ze=j.prevButtonActive),"endScreenVideoTitle"in j&&t(18,Ut=j.endScreenVideoTitle),"endScreenVideoThumb"in j&&t(19,Ft=j.endScreenVideoThumb),"isOneVideoPlaylist"in j&&t(20,_e=j.isOneVideoPlaylist),"supportLink"in j&&t(21,Nt=j.supportLink),"outerContainerRef"in j&&t(127,mt=j.outerContainerRef),"playerStarted"in j&&t(22,vt=j.playerStarted),"fullScreenTarget"in j&&t(128,bt=j.fullScreenTarget),"showMiniTimer"in j&&t(129,Be=j.showMiniTimer),"playNextVideo"in j&&t(23,Qe=j.playNextVideo),"playPrevVideo"in j&&t(24,wt=j.playPrevVideo),"repeatPlaylist"in j&&t(25,jt=j.repeatPlaylist),"seekToInteractive"in j&&t(26,$i=j.seekToInteractive),"toggleGraph"in j&&t(27,fn=j.toggleGraph),"playPrevChapter"in j&&t(28,hi=j.playPrevChapter),"firstStart"in j&&t(29,gi=j.firstStart)},i.$$.update=()=>{if(i.$$.dirty[1]&192|i.$$.dirty[4]&805306368)e:t(42,Oi=(ae==="video"&&te||ae==="ads"&&E==="inactive")&&!W);if(i.$$.dirty[0]&1073741824)e:pn.set(Fi);if(i.$$.dirty[4]&134217728)e:t(132,ln=J!==dp.PlaybackState.PLAYING);if(i.$$.dirty[4]&68190656)e:t(133,Zi=g&&!s&&!(Hi||Yi)&&!(ln&&!Y));if(i.$$.dirty[1]&448|i.$$.dirty[4]&34112256)e:yi.set((ln||s||v||x||R)&&!Zi&&(ae==="video"||ae==="ads")&&!W);if(i.$$.dirty[0]&2|i.$$.dirty[1]&224|i.$$.dirty[4]&16777248)e:t(43,Cn=Le.features.thumbTimer&&Be&&ae==="video"&&!I&&!W&&!fi&&(Le.hideThumbTimerAfterTouch&&!O||!Le.hideThumbTimerAfterTouch));if(i.$$.dirty[1]&128|i.$$.dirty[4]&8519680)e:t(44,ni=ae==="video"&&!le&&b);if(i.$$.dirty[0]&128|i.$$.dirty[1]&64|i.$$.dirty[4]&4259840)e:t(31,oi=(Je&&U||!Je)&&c&&!W);if(i.$$.dirty[1]&33|i.$$.dirty[4]&3145728)e:t(45,Xi=N&&!(I||oi)&&!g);if(i.$$.dirty[0]&2|i.$$.dirty[4]&1573888)e:!v&&di&&!g&&Kt(Le.controls.hideTimeoutCursor),t(134,di=v);if(i.$$.dirty[0]&1|i.$$.dirty[1]&24)e:t(46,re=Te&&P%180?h.height/h.width:1);if(i.$$.dirty[4]&262144)e:t(47,dt=y!==null);if(i.$$.dirty[1]&6|i.$$.dirty[4]&16384)e:Oo($n,n,a);if(i.$$.dirty[1]&4|i.$$.dirty[4]&8192)e:{let j=l;j&&ol(j,n,xn)}if(i.$$.dirty[1]&6|i.$$.dirty[4]&4096)e:Oo($n,n,r);if(i.$$.dirty[1]&4|i.$$.dirty[4]&2048)e:{let j=o;j&&Zc(j,n,eo)}},[Te,Le,Ke,Xe,Ce,ue,Ie,Je,at,ut,ft,ht,gt,we,pt,Et,Mt,ze,Ut,Ft,_e,Nt,vt,Qe,wt,jt,$i,fn,hi,gi,Fi,oi,$n,n,h,P,I,W,ae,x,ci,Ei,Oi,Cn,ni,Xi,re,dt,Xt,m,S,M,ee,ke,Ge,Ue,xe,je,ve,X,be,Oe,$e,et,ei,bi,cn,vi,Ki,ri,Bi,yi,Wi,wi,si,At,Lt,ki,Ci,Qt,ai,ui,yt,Ht,Ri,ti,dn,mn,Jt,Si,Gi,Pi,fi,Yt,xt,ii,en,Ii,_n,ji,$t,Ze,Zt,qe,on,mi,An,rn,Hn,zn,ne,St,Tn,wn,lo,ro,yo,so,gn,ie,ao,xn,wo,eo,qo,ye,Z,mt,bt,Be,Hi,Yi,ln,Zi,di,o,r,l,a,s,c,b,y,v,g,N,U,le,O,R,Y,J,E,te,Uo,vl,Ko,Qn,Wo,ko,Co,Go]}var mf=class extends K{constructor(e){super(),G(this,e,G5,W5,q,{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,outerContainerRef:127,playerStarted:22,fullScreenTarget:128,showMiniTimer:129,playNextVideo:23,playPrevVideo:24,repeatPlaylist:25,seekToInteractive:26,toggleGraph:27,playPrevChapter:28,firstStart:29},U5,[-1,-1,-1,-1,-1,-1,-1])}},_p=mf;var Rp=require("@vkontakte/videoplayer-core"),zo=require("@vkontakte/videoplayer-shared");var ml=require("@vkontakte/videoplayer-shared"),hp=i=>{if(!(0,ml.isIOS)(!0))return!1;let e=i.device===ml.CurrentClientDevice.iPad||(window==null?void 0:window.screen.width)>700,t=(0,ml.getIOSVersion)();return!e||e&&!!t&&t<16};function j5(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 gp(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,b,S,y=Q("doubletap_seek_step",{seconds:i[1].toFixed(0)})+"",P;return{c(){e=T("div"),n=F(),o=T("div"),r=T("div"),l=T("div"),s=F(),u=T("div"),m=F(),h=T("div"),b=F(),S=T("p"),P=De(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(S,"class","step-caption svelte-nhq2ld"),f(o,"class","info svelte-nhq2ld")},m(v,g){C(v,e,g),C(v,n,g),C(v,o,g),p(o,r),p(r,l),p(r,s),p(r,u),p(r,m),p(r,h),p(o,b),p(o,S),p(S,P)},p(v,g){g&1&&t!==(t="semicircle "+v[0]+" svelte-nhq2ld")&&f(e,"class",t),g&1&&a!==(a="triangle "+v[0]+" svelte-nhq2ld")&&f(l,"class",a),g&1&&c!==(c="triangle "+v[0]+" svelte-nhq2ld")&&f(u,"class",c),g&1&&w!==(w="triangle "+v[0]+" svelte-nhq2ld")&&f(h,"class",w),g&2&&y!==(y=Q("doubletap_seek_step",{seconds:v[1].toFixed(0)})+"")&&Ye(P,y)},d(v){v&&(k(e),k(n),k(o))}}}function Q5(i){let e,t,n,o,r=i[2]&&gp(i);return{c(){e=T("div"),r&&r.c(),f(e,"class",t="double-click-area "+i[0]+" svelte-nhq2ld")},m(l,a){C(l,e,a),r&&r.m(e,null),n||(o=me(e,"click",st(i[3]())),n=!0)},p(l,[a]){l[2]?r?r.p(l,a):(r=gp(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:de,o:de,d(l){l&&k(e),r&&r.d(),n=!1,o()}}}function Y5(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 Un(()=>{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 pf=class extends K{constructor(e){super(),G(this,e,Y5,Q5,q,{side:0,seekStep:1,handleSingleFirstClick:4,handleSecondClick:5},j5)}},_f=pf;function Z5(i,e,t){let{playNextVideo:n}=e;return Rt(()=>{n()}),i.$$set=o=>{"playNextVideo"in o&&t(0,n=o.playNextVideo)},[n]}var hf=class extends K{constructor(e){super(),G(this,e,Z5,null,q,{playNextVideo:0})}},bp=hf;var{window:X5}=Po;function J5(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 vp(i){let e,t,n,o;e=new _f({props:{side:"left",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[100],handleSecondClick:i[130]}});let r=!i[48]&&yp(i);return{c(){D(e.$$.fragment),t=F(),r&&r.c(),n=lt()},m(l,a){L(e,l,a),C(l,t,a),r&&r.m(l,a),C(l,n,a),o=!0},p(l,a){let s={};a[0]&2&&(s.seekStep=l[1].controls.seekStepMobile/1e3),e.$set(s),l[48]?r&&(fe(),_(r,1,1,()=>{r=null}),ce()):r?(r.p(l,a),a[1]&131072&&d(r,1)):(r=yp(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&&(k(t),k(n)),B(e,l),r&&r.d(l)}}}function yp(i){let e,t;return e=new _f({props:{side:"right",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[100],handleSecondClick:i[131]}}),{c(){D(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){B(e,n)}}}function wp(i){var n;let e,t;return e=new as({props:{thumbUrl:i[2],startTime:(n=i[3])==null?void 0:n.startTime}}),{c(){D(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){B(e,o)}}}function kp(i){let e,t;return e=new us({}),{c(){D(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){B(e,n)}}}function Cp(i){let e,t,n;return t=new dr({props:{adsSlotId:i[7],adsParams:i[8],adsPreviewParam:i[9],duration:i[10]}}),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","ads-container svelte-1jy89ut"),H(e,"hidden",i[34]!=="ads")},m(o,r){C(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)&&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&&k(e),B(t)}}}function Sp(i){let e,t;return e=new bp({props:{playNextVideo:i[22]}}),{c(){D(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){B(e,n)}}}function Pp(i){let e,t;return e=new ns({}),{c(){D(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){B(e,n)}}}function Tp(i){let e,t,n;return t=new nr({props:{"aria-label":Q("video360")}}),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","spherical-video-icon svelte-1jy89ut")},m(o,r){C(o,e,r),L(t,e,null),n=!0},p:de,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),B(t)}}}function Ip(i){let e,t;return e=new ls({props:{thumbUrl:i[2],chromecastDeviceName:i[51]}}),{c(){D(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]&1048576&&(r.chromecastDeviceName=n[51]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Ep(i){let e,t;return e=new os({props:{shifted:i[30],captions:i[53],position:i[44],playerSize:i[31],isMobile:!0}}),{c(){D(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]&4194304&&(r.captions=n[53]),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){B(e,n)}}}function Mp(i){let e,t,n,o,r;return t=new rs({}),{c(){e=T("div"),D(t.$$.fragment)},m(l,a){C(l,e,a),L(t,e,null),n=!0,o||(r=me(e,"click",st(i[101])),o=!0)},p:de,i(l){n||(d(t.$$.fragment,l),n=!0)},o(l){_(t.$$.fragment,l),n=!1},d(l){l&&k(e),B(t),o=!1,r()}}}function Vp(i){let e,t,n;function o(l){i[132](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[54]!==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 is({props:r}),pe.push(()=>He(e,"controlsElementRef",o)),{c(){D(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]&8388608&&(s.canRewindLive=l[5]&&l[54]!==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],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function Ap(i){let e,t;return e=new wr({}),{c(){D(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){B(e,n)}}}function Lp(i){let e,t;return e=new br({}),{c(){D(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){B(e,n)}}}function Bp(i){let e,t,n=i[5]&&i[78]&&!i[47].has("TIMELINE"),o,r,l,a,s,u,c,m,h,w,b,S,y,P,v,g;e=new ss({props:{hidden:i[34]!=="thumb"||i[33]||i[89]&&i[4],thumbUrl:i[2],startVideo:i[28]}});let I=n&&vp(i),N=i[34]==="waitingLive"&&wp(i),W=i[34]==="waitingRecord"&&kp(i),U=i[6]&&i[21]&&Cp(i),le=i[41]&&i[17]&&i[18]&&Sp(i),ae=i[49]&&Pp(i),O=i[50]&&Tp(i),R=i[35]&&Ip(i),x=i[52].value!=="off"&&Ep(i),Y=i[33]&&Mp(i),J=i[21]&&Vp(i);S=new pr({props:{isLive:i[55],isHidden:!i[40],isPlaying:i[56],position:i[44],duration:i[43]}});let E=i[38]&&Ap(i),te=i[57]&&Lp(i);return{c(){D(e.$$.fragment),t=F(),I&&I.c(),o=F(),N&&N.c(),r=F(),W&&W.c(),l=F(),U&&U.c(),a=F(),le&&le.c(),s=F(),ae&&ae.c(),u=F(),O&&O.c(),c=F(),R&&R.c(),m=F(),x&&x.c(),h=F(),Y&&Y.c(),w=F(),J&&J.c(),b=F(),D(S.$$.fragment),y=F(),E&&E.c(),P=F(),te&&te.c(),v=lt()},m(M,ee){L(e,M,ee),C(M,t,ee),I&&I.m(M,ee),C(M,o,ee),N&&N.m(M,ee),C(M,r,ee),W&&W.m(M,ee),C(M,l,ee),U&&U.m(M,ee),C(M,a,ee),le&&le.m(M,ee),C(M,s,ee),ae&&ae.m(M,ee),C(M,u,ee),O&&O.m(M,ee),C(M,c,ee),R&&R.m(M,ee),C(M,m,ee),x&&x.m(M,ee),C(M,h,ee),Y&&Y.m(M,ee),C(M,w,ee),J&&J.m(M,ee),C(M,b,ee),L(S,M,ee),C(M,y,ee),E&&E.m(M,ee),C(M,P,ee),te&&te.m(M,ee),C(M,v,ee),g=!0},p(M,ee){let ke={};ee[0]&16|ee[1]&12&&(ke.hidden=M[34]!=="thumb"||M[33]||M[89]&&M[4]),ee[0]&4&&(ke.thumbUrl=M[2]),ee[0]&268435456&&(ke.startVideo=M[28]),e.$set(ke),ee[0]&32|ee[1]&65536&&(n=M[5]&&M[78]&&!M[47].has("TIMELINE")),n?I?(I.p(M,ee),ee[0]&32|ee[1]&65536&&d(I,1)):(I=vp(M),I.c(),d(I,1),I.m(o.parentNode,o)):I&&(fe(),_(I,1,1,()=>{I=null}),ce()),M[34]==="waitingLive"?N?(N.p(M,ee),ee[1]&8&&d(N,1)):(N=wp(M),N.c(),d(N,1),N.m(r.parentNode,r)):N&&(fe(),_(N,1,1,()=>{N=null}),ce()),M[34]==="waitingRecord"?W?ee[1]&8&&d(W,1):(W=kp(M),W.c(),d(W,1),W.m(l.parentNode,l)):W&&(fe(),_(W,1,1,()=>{W=null}),ce()),M[6]&&M[21]?U?(U.p(M,ee),ee[0]&2097216&&d(U,1)):(U=Cp(M),U.c(),d(U,1),U.m(a.parentNode,a)):U&&(fe(),_(U,1,1,()=>{U=null}),ce()),M[41]&&M[17]&&M[18]?le?(le.p(M,ee),ee[0]&393216|ee[1]&1024&&d(le,1)):(le=Sp(M),le.c(),d(le,1),le.m(s.parentNode,s)):le&&(fe(),_(le,1,1,()=>{le=null}),ce()),M[49]?ae?ee[1]&262144&&d(ae,1):(ae=Pp(M),ae.c(),d(ae,1),ae.m(u.parentNode,u)):ae&&(fe(),_(ae,1,1,()=>{ae=null}),ce()),M[50]?O?(O.p(M,ee),ee[1]&524288&&d(O,1)):(O=Tp(M),O.c(),d(O,1),O.m(c.parentNode,c)):O&&(fe(),_(O,1,1,()=>{O=null}),ce()),M[35]?R?(R.p(M,ee),ee[1]&16&&d(R,1)):(R=Ip(M),R.c(),d(R,1),R.m(m.parentNode,m)):R&&(fe(),_(R,1,1,()=>{R=null}),ce()),M[52].value!=="off"?x?(x.p(M,ee),ee[1]&2097152&&d(x,1)):(x=Ep(M),x.c(),d(x,1),x.m(h.parentNode,h)):x&&(fe(),_(x,1,1,()=>{x=null}),ce()),M[33]?Y?(Y.p(M,ee),ee[1]&4&&d(Y,1)):(Y=Mp(M),Y.c(),d(Y,1),Y.m(w.parentNode,w)):Y&&(fe(),_(Y,1,1,()=>{Y=null}),ce()),M[21]?J?(J.p(M,ee),ee[0]&2097152&&d(J,1)):(J=Vp(M),J.c(),d(J,1),J.m(b.parentNode,b)):J&&(fe(),_(J,1,1,()=>{J=null}),ce());let Ge={};ee[1]&16777216&&(Ge.isLive=M[55]),ee[1]&512&&(Ge.isHidden=!M[40]),ee[1]&33554432&&(Ge.isPlaying=M[56]),ee[1]&8192&&(Ge.position=M[44]),ee[1]&4096&&(Ge.duration=M[43]),S.$set(Ge),M[38]?E?ee[1]&128&&d(E,1):(E=Ap(M),E.c(),d(E,1),E.m(P.parentNode,P)):E&&(fe(),_(E,1,1,()=>{E=null}),ce()),M[57]?te?ee[1]&67108864&&d(te,1):(te=Lp(M),te.c(),d(te,1),te.m(v.parentNode,v)):te&&(fe(),_(te,1,1,()=>{te=null}),ce())},i(M){g||(d(e.$$.fragment,M),d(I),d(N),d(W),d(U),d(le),d(ae),d(O),d(R),d(x),d(Y),d(J),d(S.$$.fragment,M),d(E),d(te),g=!0)},o(M){_(e.$$.fragment,M),_(I),_(N),_(W),_(U),_(le),_(ae),_(O),_(R),_(x),_(Y),_(J),_(S.$$.fragment,M),_(E),_(te),g=!1},d(M){M&&(k(t),k(o),k(r),k(l),k(a),k(s),k(u),k(c),k(m),k(h),k(w),k(b),k(y),k(P),k(v)),B(e,M),I&&I.d(M),N&&N.d(M),W&&W.d(M),U&&U.d(M),le&&le.d(M),ae&&ae.d(M),O&&O.d(M),R&&R.d(M),x&&x.d(M),Y&&Y.d(M),J&&J.d(M),B(S,M),E&&E.d(M),te&&te.d(M)}}}function x5(i){let e,t,n,o,r,l=i[46],a,s,u,c,m,h,w=Bp(i);return{c(){e=T("div"),t=T("div"),n=T("div"),r=F(),w.c(),a=F(),s=T("div"),f(n,"class","video-container svelte-1jy89ut"),f(n,"style",o=`transform: rotate(${i[32]}deg) scale(${i[42]})`),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=Q("aria_label_video_player")),f(e,"tabindex","-1")},m(b,S){C(b,e,S),p(e,t),p(t,n),i[129](n),p(e,r),w.m(e,null),p(e,a),p(e,s),i[133](s),i[134](e),c=!0,m||(h=[me(X5,"blur",i[99]),me(t,"click",Bt(i[100])),me(e,"click",i[102],!0),me(e,"focusin",i[103],!0)],m=!0)},p(b,S){(!c||S[1]&2050&&o!==(o=`transform: rotate(${b[32]}deg) scale(${b[42]})`))&&f(n,"style",o),(!c||S[0]&2)&&H(n,"fast-rotate",!b[1].isSmoothVideoRotate),(!c||S[1]&8)&&H(t,"hidden",b[34]!=="video"),S[1]&32768&&q(l,l=b[46])?(fe(),_(w,1,1,de),ce(),w=Bp(b),w.c(),d(w,1),w.m(e,a)):w.p(b,S)},i(b){c||(d(w),c=!0)},o(b){_(w),c=!1},d(b){b&&k(e),i[129](null),w.d(b),i[133](null),i[134](null),m=!1,nt(h)}}}function $5(i,e,t){var Hn,zn;let n,o,r,l,a,s,u,c,m,h,w,b,S,y,P,v,g,I,N,W,U,le,ae,O,R,x,Y,J,E,te,M,ee,ke,Ge,Ue,xe,je,{store:ve}=e,{uiConfig:X}=e,{thumbUrl:be}=e,{videoContainer:Oe}=e,{interactiveContainer:$e}=e,{live:et}=e,{autoplay:ye}=e,{canRewindLive:Le}=e,{showAds:Ke}=e,{adsSlotId:Xe=void 0}=e,{adsParams:Te=void 0}=e,{adsPreviewParam:Z=void 0}=e,{duration:Ce=void 0}=e,{logoClickable:ue}=e,{logoHidden:Ie}=e,{logoTargetUrl:Je=""}=e,{showNextPrevButtons:at=!1}=e,{nextButtonActive:ut=!1}=e,{prevButtonActive:ft=!1}=e,{endScreenVideoTitle:ht=void 0}=e,{endScreenVideoThumb:gt=void 0}=e,{isOneVideoPlaylist:we=!1}=e,{supportLink:pt}=e,{outerContainerRef:Et=void 0}=e,{showMiniTimer:Mt=!1}=e,{fullScreenTarget:ze=void 0}=e,{playerStarted:Ut=!1}=e,{playNextVideo:Ft=zo.noop}=e,{playPrevVideo:_e=zo.noop}=e,{repeatPlaylist:Nt=zo.noop}=e,{seekToInteractive:mt}=e,{toggleGraph:vt}=e,{playPrevChapter:bt}=e,{firstStart:Be}=e,{seekTime:Qe}=e,wt=ve.getLogger().createComponentLog("Root component"),jt=ve.interfaceLanguage$;z(i,jt,ne=>t(46,x=ne));let $i=ve.state.playbackState$;z(i,$i,ne=>t(126,ae=ne));let fn=ve.ads.playbackState;z(i,fn,ne=>t(127,O=ne));let hi=ve.state.positionWithScrubbing$;z(i,hi,ne=>t(44,a=ne));let gi=ve.state.duration$;z(i,gi,ne=>t(43,l=ne));let Li=ve.playerPhase;z(i,Li,ne=>t(34,N=ne));let ei=ve.ui.isFullscreen;z(i,ei,ne=>t(141,u=ne));let bi=ve.ui.controlsVisible;z(i,bi,ne=>t(30,o=ne));let cn=ve.ui.interactiveHideMobileControls;z(i,cn,ne=>t(118,w=ne));let vi=ve.ui.settingsMenuVisible;z(i,vi,ne=>t(117,n=ne));let Ki=ve.ui.scrubbingInProgress;z(i,Ki,ne=>t(119,S=ne));let ri=ve.ui.debugPanelVisible;z(i,ri,ne=>t(57,je=ne));let Bi=ve.state.isLoaderVisible;z(i,Bi,ne=>t(128,R=ne));let yi=ve.state.isEnded$;z(i,yi,ne=>t(121,v=ne));let Wi=ve.state.chromecastConnected$;z(i,Wi,ne=>t(35,W=ne));let wi=ve.state.chromecastDeviceName$;z(i,wi,ne=>t(51,M=ne));let si=ve.ads.postrollPassed;z(i,si,ne=>t(122,g=ne));let At=ve.ui.mobileUnmuteButtonExpanded,Lt=ve.ui.mobileUnmuteButtonVisible,ki=ve.state.isLive$;z(i,ki,ne=>t(55,Ue=ne));let Ci=ve.state.isPlaying$;z(i,Ci,ne=>t(56,xe=ne));let Qt=ve.state.isActiveLive$;z(i,Qt,ne=>t(48,J=ne));let ai=ve.state.isRewindableLive$,ui=ve.state.crashed$;z(i,ui,ne=>t(33,P=ne));let yt=ve.webApi.pictureInPictureApi,Ht=ve.state.videoSize$;z(i,Ht,ne=>t(142,m=ne));let Ct=ve.state.currentSubtitle$;z(i,Ct,ne=>t(52,ee=ne));let Ri=ve.state.currentSubtitleCaptions$;z(i,Ri,ne=>t(53,ke=ne));let ti=ve.state.duration$;z(i,ti,ne=>t(54,Ge=ne));let dn=ve.state.graphIsOpened$;z(i,dn,ne=>t(125,le=ne));let mn=ve.ui.playerSize;z(i,mn,ne=>t(31,c=ne));let Jt=ve.ui.is3DVideo;z(i,Jt,ne=>t(49,E=ne));let Si=ve.ui.icon3DVideoVisible;z(i,Si,ne=>t(50,te=ne));let Gi=ve.ui.rotateAlpha;z(i,Gi,ne=>t(32,b=ne));let Pi=ve.state.isInteractive,fi=ve.state.isInteractiveTime$;z(i,fi,ne=>t(120,y=ne));let Yt=ve.state.isInteractiveExpectation$;z(i,Yt,ne=>t(124,U=ne));let xt=ve.state.hasInteractiveBranches,Ti=ve.ui.controls.disabledControls$;z(i,Ti,ne=>t(47,Y=ne));let ii=ve.ui.touched;z(i,ii,ne=>t(123,I=ne));let en=ve.ui.clientInfo$;z(i,en,ne=>t(140,s=ne));let Ii=ve.ui.overlayContainer$,pn=ve.state.isFirstBytes$;z(i,pn,ne=>t(139,r=ne));let _n=ve.actions.internal.closeSettingsMenu,tn=(Hn=ve.callbacks)==null?void 0:Hn.onDisabledPlayPrevChapterClick,ji=(zn=ve.callbacks)==null?void 0:zn.onDisabledSeekToInteractiveClick,Di,$t,ci,Ei,Ni,nn,Mi,Oi=Ne(!1);z(i,Oi,ne=>t(45,h=ne));let Fi,Ze=!1,Qi,Zt=!1,qe,on=!0,Hi,Yi,ln=!1,Zi;yt==null||yt.setContext(Cl());let Cn=ne=>{clearTimeout(Ei),ne&&(Lt.set(!0),At.set(!0),Ei=window.setTimeout(()=>{At.set(!1)},X.controls.collapseMobileUnmute),Pi||oi(X.controls.hideTimeoutMobile))};ve.setUiCallbacks({onStarted:Cn});let ni=()=>{window.clearTimeout(ci),t(112,Ze=!1),w&&cn.set(!1)},oi=ne=>{ni(),t(112,Ze=!0),ci=window.setTimeout(()=>t(112,Ze=!1),ne);let St=ne-100;Fi=window.setTimeout(()=>{h&&Oi.set(!1)},St>0?St:ne)},Xi=Jt.subscribe(ne=>{Si.set(ne),ne&&(window.clearTimeout(Ni),Ni=window.setTimeout(()=>Si.set(!1),X.controls.hide360IconTimeout))}),di=async()=>{var St,Pn,hn,Tn;let ne=co();if(ne){oi(X.controls.hideTimeoutFullscreen);try{await(yt==null?void 0:yt.remove())}catch(wn){wt({message:String(wn)})}try{let wn=m!=null&&m.width&&(m!=null&&m.height)?m:c;await Lc(wn)}catch(wn){wt({message:String(wn)})}}ei.set(ne),ve.getAdmanWrapper().setFullscreen(ne),u?(Pn=(St=ve.callbacks)==null?void 0:St.onFullscreenEnter)==null||Pn.call(St):(Tn=(hn=ve.callbacks)==null?void 0:hn.onFullscreenExit)==null||Tn.call(hn)},re=ne=>{let St=ne;mn.set({width:St.target.width,height:St.target.height})};Rt(()=>{var St;return fr(di),Ro(yt)&&(yt==null||yt.assignPlayerContainer(Di),yt==null||yt.registryExternalEventHandlers({resize:re})),t(39,on=!hp(s)),$e&&((St=Oe.parentElement)==null||St.insertBefore($e,Oe.nextSibling)),()=>{window.clearTimeout(ci),window.clearTimeout(Fi),window.clearTimeout(Ei),window.clearTimeout(Ni),Xi(),yt==null||yt.dispose(),cr(di)}});let dt=ne=>{let St=a+(ne==="forward"?1:-1)*X.controls.seekStepMobile/1e3;St<0?St=0:St>l&&(St=l-1),t(114,Zt=!0),Qe(St)},mi=async()=>{if(co())await ur(document),wt({message:"exit fullscreen"});else{if(wt({message:"request fullscreen"}),(0,zo.isIOS)()&&!r)return;let ne=(0,zo.isIOS)()||!Et?Di:Et,St=ne.getRootNode(),Pn=St instanceof ShadowRoot?St.host:St,hn=ze instanceof HTMLElement&&ze.contains(Pn),Tn=X.allowChangingFullscreenTarget&&ze&&hn?ze:ne;await ar(Tn)}},pi=()=>{_n()},li=()=>{if(n){pi();return}if(!Ut){Be(),oi(X.controls.hideTimeoutCursor);return}t(114,Zt=!1),o?ni():oi(X.controls.hideTimeoutMobile)},Xt=()=>{if(n){pi();return}},Nn=()=>{ii.set(!0)},Vn=()=>{Pi||(Oi.set(!0),oi(X.controls.hideTimeoutCursor))},Sn=ne=>{tn&&(tn(ne),oi(X.controls.hideTimeoutMobile))},Kt=ne=>{ji&&(ji(ne),oi(X.controls.hideTimeoutMobile))};function yn(ne){pe[ne?"unshift":"push"](()=>{Oe=ne,t(0,Oe)})}let jn=()=>dt("backward"),On=()=>dt("forward");function Fn(ne){$t=ne,t(37,$t)}function An(ne){pe[ne?"unshift":"push"](()=>{Mi=ne,t(29,Mi)})}function rn(ne){pe[ne?"unshift":"push"](()=>{Di=ne,t(36,Di)})}return i.$$set=ne=>{"store"in ne&&t(106,ve=ne.store),"uiConfig"in ne&&t(1,X=ne.uiConfig),"thumbUrl"in ne&&t(2,be=ne.thumbUrl),"videoContainer"in ne&&t(0,Oe=ne.videoContainer),"interactiveContainer"in ne&&t(107,$e=ne.interactiveContainer),"live"in ne&&t(3,et=ne.live),"autoplay"in ne&&t(4,ye=ne.autoplay),"canRewindLive"in ne&&t(5,Le=ne.canRewindLive),"showAds"in ne&&t(6,Ke=ne.showAds),"adsSlotId"in ne&&t(7,Xe=ne.adsSlotId),"adsParams"in ne&&t(8,Te=ne.adsParams),"adsPreviewParam"in ne&&t(9,Z=ne.adsPreviewParam),"duration"in ne&&t(10,Ce=ne.duration),"logoClickable"in ne&&t(11,ue=ne.logoClickable),"logoHidden"in ne&&t(12,Ie=ne.logoHidden),"logoTargetUrl"in ne&&t(13,Je=ne.logoTargetUrl),"showNextPrevButtons"in ne&&t(14,at=ne.showNextPrevButtons),"nextButtonActive"in ne&&t(15,ut=ne.nextButtonActive),"prevButtonActive"in ne&&t(16,ft=ne.prevButtonActive),"endScreenVideoTitle"in ne&&t(17,ht=ne.endScreenVideoTitle),"endScreenVideoThumb"in ne&&t(18,gt=ne.endScreenVideoThumb),"isOneVideoPlaylist"in ne&&t(19,we=ne.isOneVideoPlaylist),"supportLink"in ne&&t(20,pt=ne.supportLink),"outerContainerRef"in ne&&t(108,Et=ne.outerContainerRef),"showMiniTimer"in ne&&t(109,Mt=ne.showMiniTimer),"fullScreenTarget"in ne&&t(110,ze=ne.fullScreenTarget),"playerStarted"in ne&&t(21,Ut=ne.playerStarted),"playNextVideo"in ne&&t(22,Ft=ne.playNextVideo),"playPrevVideo"in ne&&t(23,_e=ne.playPrevVideo),"repeatPlaylist"in ne&&t(24,Nt=ne.repeatPlaylist),"seekToInteractive"in ne&&t(25,mt=ne.seekToInteractive),"toggleGraph"in ne&&t(26,vt=ne.toggleGraph),"playPrevChapter"in ne&&t(27,bt=ne.playPrevChapter),"firstStart"in ne&&t(28,Be=ne.firstStart),"seekTime"in ne&&t(111,Qe=ne.seekTime)},i.$$.update=()=>{if(i.$$.dirty[1]&12|i.$$.dirty[4]&24)e:t(38,nn=(N==="video"&&R||N==="ads"&&O==="inactive")&&!P);if(i.$$.dirty[0]&536870912)e:Ii.set(Mi);if(i.$$.dirty[4]&4)e:t(113,Qi=ae!==Rp.PlaybackState.PLAYING);if(i.$$.dirty[3]&303562752|i.$$.dirty[4]&3)e:t(115,qe=le||w||!Ze&&(v&&!!xt||Qi&&U));if(i.$$.dirty[1]&28|i.$$.dirty[3]&91750400)e:bi.set((Qi||n||S||W||Ze&&!Zt)&&!qe&&N==="video"&&!P);if(i.$$.dirty[0]&1073741826|i.$$.dirty[1]&12|i.$$.dirty[3]&1073807360)e:t(40,Hi=X.features.thumbTimer&&Mt&&N==="video"&&!o&&!P&&!Pi&&(X.hideThumbTimerAfterTouch&&!I||!X.hideThumbTimerAfterTouch));if(i.$$.dirty[0]&64|i.$$.dirty[1]&4|i.$$.dirty[3]&805306368)e:t(41,Yi=(Ke&&g||!Ke)&&v&&!P);if(i.$$.dirty[0]&2|i.$$.dirty[3]&209715200)e:!S&&ln&&!y&&oi(X.controls.hideTimeoutMobile),t(116,ln=S);if(i.$$.dirty[0]&1|i.$$.dirty[1]&3)e:t(42,Zi=Oe&&b%180?c.height/c.width:1)},[Oe,X,be,et,ye,Le,Ke,Xe,Te,Z,Ce,ue,Ie,Je,at,ut,ft,ht,gt,we,pt,Ut,Ft,_e,Nt,mt,vt,bt,Be,Mi,o,c,b,P,N,W,Di,$t,nn,on,Hi,Yi,Zi,l,a,h,x,Y,J,E,te,M,ee,ke,Ge,Ue,xe,je,jt,$i,fn,hi,gi,Li,ei,bi,cn,vi,Ki,ri,Bi,yi,Wi,wi,si,ki,Ci,Qt,ai,ui,Ht,Ct,Ri,ti,dn,mn,Jt,Si,Gi,Pi,fi,Yt,Ti,ii,en,pn,Oi,dt,mi,pi,li,Xt,Nn,Vn,Sn,Kt,ve,$e,Et,Mt,ze,Qe,Ze,Qi,Zt,qe,ln,n,w,S,y,v,g,I,U,le,ae,O,R,yn,jn,On,Fn,An,rn]}var gf=class extends K{constructor(e){super(),G(this,e,$5,x5,q,{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,outerContainerRef:108,showMiniTimer:109,fullScreenTarget:110,playerStarted:21,playNextVideo:22,playPrevVideo:23,repeatPlaylist:24,seekToInteractive:25,toggleGraph:26,playPrevChapter:27,firstStart:28,seekTime:111},J5,[-1,-1,-1,-1,-1,-1])}},Dp=gf;function e6(i){Se(i,"svelte-cghoty",`.root.svelte-cghoty{--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(
33
33
  180deg,
34
34
  rgba(0, 0, 0, 0.00) 0%,
35
35
  rgba(0, 0, 0, 0.01) 6.67%,
@@ -47,5 +47,5 @@
47
47
  rgba(0, 0, 0, 0.96) 86.67%,
48
48
  rgba(0, 0, 0, 0.99) 93.33%,
49
49
  #000 100%
50
- );--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)}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 c6(i){let e,t,n;function o(l){i[57](l)}let r={store:i[0],uiConfig:i[34],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[35],showNextPrevButtons:i[15],nextButtonActive:i[16],prevButtonActive:i[17],endScreenVideoTitle:i[18],endScreenVideoThumb:i[19],isOneVideoPlaylist:i[20],supportLink:i[21],outerContainerRef:i[22],fullScreenTarget:i[23],showMiniTimer:i[24],playerStarted:i[33],playNextVideo:i[25],playPrevVideo:i[26],repeatPlaylist:i[27],seekToInteractive:i[28],toggleGraph:i[29],playPrevChapter:i[30],firstStart:i[36]};return i[32]!==void 0&&(r.videoContainer=i[32]),e=new Cp({props:r}),pe.push(()=>Fe(e,"videoContainer",o)),{c(){N(e.$$.fragment)},m(l,a){R(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.outerContainerRef=l[22]),a[0]&8388608&&(s.fullScreenTarget=l[23]),a[0]&16777216&&(s.showMiniTimer=l[24]),a[1]&4&&(s.playerStarted=l[33]),a[0]&33554432&&(s.playNextVideo=l[25]),a[0]&67108864&&(s.playPrevVideo=l[26]),a[0]&134217728&&(s.repeatPlaylist=l[27]),a[0]&268435456&&(s.seekToInteractive=l[28]),a[0]&536870912&&(s.toggleGraph=l[29]),a[0]&1073741824&&(s.playPrevChapter=l[30]),!t&&a[1]&2&&(t=!0,s.videoContainer=l[32],Oe(()=>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;function o(l){i[56](l)}let r={store:i[0],uiConfig:i[34],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[35],showNextPrevButtons:i[15],nextButtonActive:i[16],prevButtonActive:i[17],endScreenVideoTitle:i[18],endScreenVideoThumb:i[19],isOneVideoPlaylist:i[20],supportLink:i[21],outerContainerRef:i[22],fullScreenTarget:i[23],showMiniTimer:i[24],playerStarted:i[33],playNextVideo:i[25],playPrevVideo:i[26],repeatPlaylist:i[27],seekToInteractive:i[28],toggleGraph:i[29],playPrevChapter:i[30],firstStart:i[36],seekTime:i[31]};return i[32]!==void 0&&(r.videoContainer=i[32]),e=new Kp({props:r}),pe.push(()=>Fe(e,"videoContainer",o)),{c(){N(e.$$.fragment)},m(l,a){R(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.outerContainerRef=l[22]),a[0]&8388608&&(s.fullScreenTarget=l[23]),a[0]&16777216&&(s.showMiniTimer=l[24]),a[1]&4&&(s.playerStarted=l[33]),a[0]&33554432&&(s.playNextVideo=l[25]),a[0]&67108864&&(s.playPrevVideo=l[26]),a[0]&134217728&&(s.repeatPlaylist=l[27]),a[0]&268435456&&(s.seekToInteractive=l[28]),a[0]&536870912&&(s.toggleGraph=l[29]),a[0]&1073741824&&(s.playPrevChapter=l[30]),!t&&a[1]&2&&(t=!0,s.videoContainer=l[32],Oe(()=>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 m6(i){let e,t,n,o,r=[d6,c6],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=P("div"),n.c(),f(e,"class","root svelte-cghoty")},m(s,u){C(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&&k(e),l[t].d()}}}function p6(i,e,t){let{sources:n}=e,{store:o}=e,{microStoresRoot:r}=e,{videoConfig:l}=e,{uiConfig:a}=e,{title:s}=e,{thumbUrl:u}=e,{interactiveContainer:c}=e,{subtitles:m}=e,{live:h}=e,{preload:S}=e,{autoplay:b}=e,{volume:w=void 0}=e,{muted:y=void 0}=e,{fromTime:T}=e,{canRewindLive:v}=e,{showAds:g}=e,{adsSlotId:E=void 0}=e,{adsParams:B=void 0}=e,{adsPreviewParam:L=void 0}=e,{duration:F=void 0}=e,{logoClickable:ae}=e,{logoHidden:oe}=e,{isMobile:I}=e,{showNextPrevButtons:le=!1}=e,{nextButtonActive:$=!1}=e,{prevButtonActive:j=!1}=e,{endScreenVideoTitle:x=void 0}=e,{endScreenVideoThumb:O=void 0}=e,{isOneVideoPlaylist:Q=!1}=e,{supportLink:A}=e,{outerContainerRef:Y=void 0}=e,{fullScreenTarget:Te=void 0}=e,{failoverHosts:Qe=void 0}=e,{showMiniTimer:Ke=!1}=e,{playNextVideo:Xe=Xn.noop}=e,{playPrevVideo:We=Xn.noop}=e,{repeatPlaylist:ye=Xn.noop}=e,{seekToInteractive:X=Xn.noop}=e,{toggleGraph:ve=Xn.noop}=e,{playPrevChapter:He=Xn.noop}=e,{subscribers:Ze,stores:$e}=r;$f(a);let be=Ht(),De=a.logoLink,Ue=o.ui.debugPanelVisible,nt=o.ui.playerSize,ke,Z=null,Ce=!1;o.getAdmanWrapper().init({switchFromAdsToVideo:o.actions.internal.switchFromAdsToVideo,switchFromVideoToAds:o.actions.internal.switchFromVideoToAds,setMuted:o.actions.external.setMuted},o.ads,{isMobile:o.ui.isMobile,mobileUnmuteButtonVisible:o.ui.mobileUnmuteButtonVisible,vsid:o.vsid}),fc(o,$e);let ce=(_e=!1)=>{t(33,Ce=!0),_e?o.actions.external.firstStart(g):o.actions.internal.firstStart(g)};function Ie(_e){var Le;let _t=n||_e;_t&&o.initVideo({container:ke,sources:_t,failoverHosts:Qe,subtitles:m});let Mt=Xn.safeStorage.get(Rl)==="true";Ue.set(Mt),T>0&&o.actions.external.seekTime(T);let ht=I?be.volumeDefault:(Le=w!=null?w:rr())!=null?Le:be.volumeDefault,bt=y!=null?y:Cc();if(o.actions.external.setVolume(ht),o.actions.external.setMuted(bt),o.getAdmanWrapper().setInitialVolume(bt?0:ht),be.features.trafficSaving){let dt=Pc();dt&&o.actions.internal.setTrafficSavingEnabled(dt)}let st=yc(o.videoId);st&&o.actions.internal.setQuality(st),o.ui.isAutoplay.set(b),b?ce():S&&be.features.preload&&o.actions.internal.preload()}let Je=_e=>{if(window.ResizeObserver){let _t,Mt;Z=new ResizeObserver((0,Xn.throttleFn)(ht=>{let bt=ht[0];if(bt){if(bt.contentBoxSize){let st=Array.isArray(bt.contentBoxSize)?bt.contentBoxSize[0]:bt.contentBoxSize;_t=st.inlineSize,Mt=st.blockSize}else bt.contentRect&&(_t=bt.contentRect.width,Mt=bt.contentRect.height);nt.set({width:_t,height:Mt})}},300)),Z.observe(_e)}nt.set({width:_e.clientWidth,height:_e.clientHeight})};Rt(()=>{Je(ke);let _e=Ze.map(Mt=>Mt.init({store:o,microStores:$e,config:l}));if((h==null?void 0:h.status)==="upcoming"||(h==null?void 0:h.status)==="waiting"){o.actions.internal.setWaitingLive(!0);return}if(((h==null?void 0:h.status)==="finished"||(h==null?void 0:h.status)==="postlive")&&!Object.keys(n||[]).length){o.actions.internal.setWaitingRecord(!0);return}return Ie(),()=>{Z==null||Z.disconnect(),_e.forEach(Mt=>Mt.unsubscribe()),o.destroy()}});function ft(){Ce?o.actions.external.play():ce(!0)}function pt(){o.actions.external.pause()}function ut(_e){I||o.actions.external.setMuted(_e)}function It(_e){I||_e>=0&&_e<=1&&o.actions.external.setVolume(_e)}function mt(_e){o.actions.internal.seekTime(_e,Wp.SeekAction.UNKNOWN)}function we(_e){o.actions.external.seekEpisodeStartTime(_e)}function yt(){o.actions.external.returnFocusToEpisodes()}function Et(_e){o.actions.external.setPlaybackRate(_e)}function Pt(_e){o.actions.external.setAutoQualityLimits(_e)}function ze(_e){ke=_e,t(32,ke)}function qt(_e){ke=_e,t(32,ke)}return i.$$set=_e=>{"sources"in _e&&t(37,n=_e.sources),"store"in _e&&t(0,o=_e.store),"microStoresRoot"in _e&&t(38,r=_e.microStoresRoot),"videoConfig"in _e&&t(39,l=_e.videoConfig),"uiConfig"in _e&&t(40,a=_e.uiConfig),"title"in _e&&t(1,s=_e.title),"thumbUrl"in _e&&t(2,u=_e.thumbUrl),"interactiveContainer"in _e&&t(3,c=_e.interactiveContainer),"subtitles"in _e&&t(41,m=_e.subtitles),"live"in _e&&t(4,h=_e.live),"preload"in _e&&t(42,S=_e.preload),"autoplay"in _e&&t(5,b=_e.autoplay),"volume"in _e&&t(43,w=_e.volume),"muted"in _e&&t(44,y=_e.muted),"fromTime"in _e&&t(45,T=_e.fromTime),"canRewindLive"in _e&&t(6,v=_e.canRewindLive),"showAds"in _e&&t(7,g=_e.showAds),"adsSlotId"in _e&&t(8,E=_e.adsSlotId),"adsParams"in _e&&t(9,B=_e.adsParams),"adsPreviewParam"in _e&&t(10,L=_e.adsPreviewParam),"duration"in _e&&t(11,F=_e.duration),"logoClickable"in _e&&t(12,ae=_e.logoClickable),"logoHidden"in _e&&t(13,oe=_e.logoHidden),"isMobile"in _e&&t(14,I=_e.isMobile),"showNextPrevButtons"in _e&&t(15,le=_e.showNextPrevButtons),"nextButtonActive"in _e&&t(16,$=_e.nextButtonActive),"prevButtonActive"in _e&&t(17,j=_e.prevButtonActive),"endScreenVideoTitle"in _e&&t(18,x=_e.endScreenVideoTitle),"endScreenVideoThumb"in _e&&t(19,O=_e.endScreenVideoThumb),"isOneVideoPlaylist"in _e&&t(20,Q=_e.isOneVideoPlaylist),"supportLink"in _e&&t(21,A=_e.supportLink),"outerContainerRef"in _e&&t(22,Y=_e.outerContainerRef),"fullScreenTarget"in _e&&t(23,Te=_e.fullScreenTarget),"failoverHosts"in _e&&t(46,Qe=_e.failoverHosts),"showMiniTimer"in _e&&t(24,Ke=_e.showMiniTimer),"playNextVideo"in _e&&t(25,Xe=_e.playNextVideo),"playPrevVideo"in _e&&t(26,We=_e.playPrevVideo),"repeatPlaylist"in _e&&t(27,ye=_e.repeatPlaylist),"seekToInteractive"in _e&&t(28,X=_e.seekToInteractive),"toggleGraph"in _e&&t(29,ve=_e.toggleGraph),"playPrevChapter"in _e&&t(30,He=_e.playPrevChapter)},i.$$.update=()=>{if(i.$$.dirty[0]&16385)e:o.ui.isMobile.set(I)},[o,s,u,c,h,b,v,g,E,B,L,F,ae,oe,I,le,$,j,x,O,Q,A,Y,Te,Ke,Xe,We,ye,X,ve,He,mt,ke,Ce,be,De,ce,n,r,l,a,m,S,w,y,T,Qe,Ie,ft,pt,ut,It,we,yt,Et,Pt,ze,qt]}var Sf=class extends K{constructor(e){super(),W(this,e,p6,m6,U,{sources:37,store:0,microStoresRoot:38,videoConfig:39,uiConfig:40,title:1,thumbUrl:2,interactiveContainer:3,subtitles:41,live:4,preload:42,autoplay:5,volume:43,muted:44,fromTime:45,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,outerContainerRef:22,fullScreenTarget:23,failoverHosts:46,showMiniTimer:24,playNextVideo:25,playPrevVideo:26,repeatPlaylist:27,seekToInteractive:28,toggleGraph:29,playPrevChapter:30,initVideo:47,play:48,pause:49,setMuted:50,setVolume:51,seekTime:31,seekEpisodeStartTime:52,returnFocusToEpisodes:53,setPlaybackRate:54,setAutoQualityLimits:55},f6,[-1,-1,-1])}get initVideo(){return this.$$.ctx[47]}get play(){return this.$$.ctx[48]}get pause(){return this.$$.ctx[49]}get setMuted(){return this.$$.ctx[50]}get setVolume(){return this.$$.ctx[51]}get seekTime(){return this.$$.ctx[31]}get seekEpisodeStartTime(){return this.$$.ctx[52]}get returnFocusToEpisodes(){return this.$$.ctx[53]}get setPlaybackRate(){return this.$$.ctx[54]}get setAutoQualityLimits(){return this.$$.ctx[55]}},Gp=Sf;function _6(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=se(a,l[s]);return{c(){e=V("svg"),r&&r.c(),t=V("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"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Be(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"60"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"stub-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function h6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Pf=class extends K{constructor(e){super(),W(this,e,h6,_6,U,{})}},jp=Pf;function g6(i){let e,t;return e=new jp({props:{style:i[0]}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.style=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function b6(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 Tf=class extends K{constructor(e){super(),W(this,e,b6,g6,U,{isWhite:1})}},Qp=Tf;function v6(i){Pe(i,"svelte-1y9fytq",".playerStub.svelte-1y9fytq{width:100%;height:100%;background-color:#222;display:flex;justify-content:center;align-items:center;position:relative;background-position:center;background-size:cover;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif}.title.svelte-1y9fytq{position:absolute;left:0;top:0;width:100%;font-size:15px;color:#fff;box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}")}function Yp(i){let e,t;return{c(){e=P("div"),t=Re(i[0]),f(e,"class","title svelte-1y9fytq")},m(n,o){C(n,e,o),p(e,t)},p(n,o){o&1&&je(t,n[0])},d(n){n&&k(e)}}}function Zp(i){let e,t;return e=new Qp({props:{isWhite:!!i[1]}}),{c(){N(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isWhite=!!n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function y6(i){let e,t,n,o,r=i[0]&&Yp(i),l=(!i[0]||!i[1])&&Zp(i);return{c(){e=P("div"),r&&r.c(),t=z(),l&&l.c(),f(e,"class","playerStub svelte-1y9fytq"),f(e,"style",n=i[1]?`background-image: url('${i[1]}')`:"")},m(a,s){C(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=Yp(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=Zp(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&&k(e),r&&r.d(),l&&l.d()}}}function w6(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 If=class extends K{constructor(e){super(),W(this,e,w6,y6,U,{title:0,thumbUrl:1},v6)}},Xp=If;var gn=require("@vkontakte/videoplayer-shared"),FD=require("@vkontakte/videoplayer-core"),El=require("@vkontakte/videoplayer-statistics");var _s=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 Co=require("@vkontakte/videoplayer-shared");function k6(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=se(u,s[c]);return{c(){e=V("svg"),a&&a.c(),t=V("g"),n=V("path"),o=V("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"),ge(e,u)},m(c,m){C(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)&&Ve(a,l,c,c[1],r?Me(l,c[1],m,null):Ae(c[1]),null),ge(e,u=Be(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"56"},{fill:"none"},{"aria-label":"dummy-image"},{"data-testid":"pip-dummy-icon"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){_(a,c),r=!1},d(c){c&&k(e),a&&a.d(c)}}}function C6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=se(se({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Ef=class extends K{constructor(e){super(),W(this,e,C6,k6,U,{})}},Jp=Ef;function S6(i){Pe(i,"svelte-1pbsod4",".player-pip-dummy.svelte-1pbsod4{width:100%;height:100%;background-color:#19191A;display:flex;flex-direction:column;justify-content:center;align-items:center;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif}.player-pip-dummy.is-pip-api.svelte-1pbsod4{position:relative}.dummy-image.svelte-1pbsod4 svg{transform:scale(1.07143)}.dummy-image.desktop.svelte-1pbsod4{transform:scale(1.07143) rotate(-90deg) rotateY(180deg)}.title.svelte-1pbsod4{font-size:16px;color:#fff;padding:18px 20px 10px;text-align:center}")}function P6(i){let e,t,n,o,r,l,a;return n=new Jp({}),{c(){e=P("div"),t=P("div"),N(n.$$.fragment),o=z(),r=P("span"),l=Re(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){C(s,e,u),p(e,t),R(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)&&je(l,s[0])},i(s){a||(d(n.$$.fragment,s),a=!0)},o(s){_(n.$$.fragment,s),a=!1},d(s){s&&k(e),D(n)}}}function T6(i,e,t){let n,o,r=it(),l=!!r.webApi.pictureInPictureApi,a=r.interfaceLanguage$;q(i,a,c=>t(5,n=c));let s=r.ui.isMobile;q(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 Mf=class extends K{constructor(e){super(),W(this,e,T6,P6,U,{},S6)}},xp=Mf;var I6=460,E6=280,Kl=class{constructor(){this.info={isActive$:new Co.ValueSubject(!1),type:1}}isSupported(){let e=(0,Co.getCurrentBrowser)().browser===Co.CurrentClientBrowser.Yandex,{isEmbed:t}=(0,Co.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}async request(){var r,l;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:I6,height:E6,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(`
51
- `),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 xp({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))})}async remove(){return new Promise(e=>{var t;(t=documentPictureInPicture.window)==null||t.close(),e()})}async dispose(){await this.remove()}createStretchedContainer(){let e=document.createElement("div");return e.style.width="100%",e.style.height="100%",e}};function $p(i){return i instanceof Kl}var hs=class{static getLatestSupportedVersion(){let e=new Ho,t=new Kl;if(t.isSupported())return t;if(e.isSupported())return e}};function Vf(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 e2="Inner error. Unexpectedly root annotation container null reference exception",t2="Annotation with such name already exists",i2="Annotation with such name does not exist";var Pl=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var Tl=require("@vkontakte/videoplayer-shared"),M6="1",V6=100,gs=class{constructor(e){this.annotations=new Map;this.subscriptions=new Tl.Subscription;this.rootAnnotationsContainer=e;let t=(0,Tl.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"},V6);this.subscriptions.add((0,Tl.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 Pl(e2);if(this.annotations.has(e))throw new Pl(t2);t.style.zIndex=(n=t.style.zIndex)!=null?n:M6,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 Pl(i2);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 Il=require("@vkontakte/videoplayer-shared"),to=class{init({store:e,microStores:t,config:n}){return(0,Il.assertNonNullable)(e),(0,Il.assertNonNullable)(t),(0,Il.assertNonNullable)(n),this.subscription=new Il.Subscription,this.subscription}};var Wl=class extends to{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...Ne(null),toggle:()=>this.state$.update(t=>!t)}}init(t){let n=super.init(t),{isInteractiveExpectation$:o}=t.store.state;return n.add(o.subscribe(r=>{this.state$.set(r?!0:null)})),n}};var Gl=class extends to{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...Ne(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(S=>{if(!m)return;let b=tt(l);tt(s)?this.state$.set(S):b!==null&&this.state$.set(!b||S)})),n.add(s.subscribe(S=>{this.state$.set(!S||h())})),n.add(l.subscribe(S=>{if(S===null)return;let b=tt(a);if(h()){this.state$.set(!0);return}b&&this.state$.set(!S)})),n}};var jl=class extends to{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=Ne("tooltip_chapter_without_interactive")}init(t){let n=super.init(t),{store:o}=t;return n.add(o.state.interactiveEpisodes$.subscribe(r=>{r.length&&(r.every(l=>l.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),n}};var n2=require("@vkontakte/videoplayer-shared"),Af=Ne(!1),bs=null,Ql=class extends to{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...Af,set:(t,n=!1)=>{t!==tt(Af)&&(this.clearTimeout(),Af.set(t),!t&&bs&&(bs=!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,n2.combine)({isPlaying$:a,isInteractiveTime$:l,interactiveTimeIndicator:u}).subscribe(({isPlaying$:m,isInteractiveTime$:h,interactiveTimeIndicator:S})=>{var b,w;if(!(!m||!(S!=null&&S.isDisplayed))){if(!h)return this.state$.set(!1);c.tooltipHelpHintActive&&bs===null&&(bs=!0,c.tooltipHelpHintActive=!1,this.state$.set(!0),(w=(b=o.callbacks)==null?void 0:b.onInteractiveTimeIndicatorHintDeactivated)==null||w.call(b))}})),n}clearTimeout(){window.clearTimeout(this.timeout)}};var o2=()=>[Wl,Gl,jl,Ql].reduce(({subscribers:i,stores:e},t)=>{let n=new t;return{subscribers:[...i,n],stores:{...e,[n.stateName]:n.state$}}},{subscribers:[],stores:{}});var A6={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:gn.InterfaceLanguage.RU,logoClickable:!1,logoHidden:!1,isMobile:(0,gn.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]}},vs=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 gn.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new gn.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 Xp({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%";let t=document.createElement("div");t.style.position="absolute",t.className="shadow-root-container",t.style.width="100%",t.style.height="100%",this._shadowRoot=t.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(t),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 It,mt,we,yt,Et,Pt,ze,qt,_e,_t,Mt,ht,bt;if(!this.videoConfig)return;let{albumId:r,statPlace:l,statUserSalt:a,statAuthToken:s,statTrackCode:u,refreshStatAuthToken:c,preload:m,autoplay:h,volume:S,muted:b,fromTime:w,canRewindLive:y,supportLink:T,showAds:v,adsSlotId:g,adsParams:E={},adsPreviewParam:B,interfaceLanguage:L,logoClickable:F,logoHidden:ae,isMobile:oe,isAudioDisabled:I,isLiveCatchUpMode:le,fullScreenTarget:$,failoverHosts:j,canDownload:x,callbacks:O,interactiveData:Q,showThumbTimer:A,additionalButtons:Y=[],repeat:Te}=Vf(this.videoConfig,n),{sources:Qe,title:Ke,thumbUrl:Xe,unitedVideoId:We,isClip:ye=!1,duration:X,adsParams:ve={},videoEpisodes:He,previewThumbsData:Ze,subtitles:$e,live:be}=t,De={...E,...ve},Ue=this.getNextVideoInfo(),nt={sources:Qe,title:Ke,thumbUrl:Xe,subtitles:$e,unitedVideoId:We,isClip:ye,live:be,albumId:r,statPlace:l,autoplay:h,muted:b,volume:S,fromTime:w,canRewindLive:y,showAds:v,adsSlotId:g,adsParams:De,adsPreviewParam:B,duration:X,logoClickable:F,logoHidden:ae,isMobile:oe,repeat:Te,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Ue.nextVideoTitle,endScreenVideoThumb:Ue.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},ke={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(nt)}`});let Z=this.uiConfig.features.statistics&&!!We,{pid:Ce}=((mt=(It=this.videoConfig)==null?void 0:It.interactiveData)==null?void 0:mt.projectInfo)||{};Z&&(this.statistics=new es({movieId:We,albumId:r,place:l,trackCode:u,autoplay:(we=h&&!this.interactiveController)!=null?we:!1,mobile:oe,clip:ye,refDomain:this.videoConfig.refDomain,...Ce&&!this.isInited&&{projectId:Number(Ce)}},{refreshAuthToken:c,userSalt:a,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Fo(this.uiConfig.sentry,{version:No,env:or},{movieId:We,albumId:r,place:l,autoplay:(yt=h&&!this.interactiveController)!=null?yt:!1,mobile:oe,clip:ye}),this.interactiveController&&((Pt=this.prevIsid)!=null||(this.prevIsid=(Et=this.statistics)==null?void 0:Et.oneStat.isid$.getValue())),this.sentry={...this.sentry,...Fo.getInstance()};let Ie=!!Q,Je=[],ft="tooltip_interactive_go_back_disabled_first";if(Ie&&this.interactiveController){let st=this.interactiveController.state.isInitialChapter$.getValue(),Le=this.interactiveController.getHistoryState();st&&Je.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||Je.push("SEEK_TO_INTERACTIVE_BUTTON"),Le.hasPrevChapter$.getValue()||(Je.push("PLAY_PREV_CHAPTER_BUTTON"),st||(Le.isGoBackLimited$.getValue()?ft="tooltip_interactive_go_back_disabled_limit":ft="tooltip_interactive_go_back_disabled"))}let pt=()=>{var Le;this.isInited=!1,this.prevIsid=void 0;let st=(o==null?void 0:o.info.isEnded$.getValue())&&((Le=this.interactiveController)==null?void 0:Le.state.isEndChapter$.getValue());O.onReplayInteractiveVideo&&!st?O.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=Pm({player:o,interfaceLanguage:L,videoId:We,isClip:ye,isLiveCatchUpMode:le,isAudioDisabled:I,statAuthToken:s,callbacks:O,webApi:ke,videoEpisodes:He,previewThumbsData:Ze,canDownload:x,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:Je,isInteractive:Ie,interactiveRanges$:(ze=this.interactiveController)==null?void 0:ze.state.interactiveRanges$,isInteractiveTime$:(qt=this.interactiveController)==null?void 0:qt.state.isInteractiveTime$,replayInteractive:pt,playPrevChapterDisabledTooltip:ft,hasInteractiveBranches:!!((_t=(_e=this.interactiveController)==null?void 0:_e.getChapterBranches())!=null&&_t.length),additionalButtons:this.uiConfig.features.additionalButtons?Y:[],looped:Te&&this.videoConfig.videos.length===1,statistics:this.statistics});let{stores:ut}=this.microStoresRoot=o2();this.subscription.add(this.store.state.currentFormat$.subscribe(st=>{var Le;return(Le=O==null?void 0:O.onCurrentFormatChanged)==null?void 0:Le.call(O,st)})),this.subscription.add(ut.interactiveControlsOpacity$.subscribe(st=>{var Le;st!==null&&((Le=this==null?void 0:this.interactiveController)==null||Le.setDisabledControls(st))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(st=>{var Le;return(Le=O==null?void 0:O.onThroughputEstimationChanged)==null?void 0:Le.call(O,st)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(st=>{var Le;return(Le=O==null?void 0:O.onTrafficSavingEnabledChanged)==null?void 0:Le.call(O,st)})),this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(st=>{var Le;return(Le=O==null?void 0:O.onCurrentPlaybackRateChanged)==null?void 0:Le.call(O,st)})),this.subscription.add(this.store.state.volume$.subscribe(st=>{var Le;return(Le=O==null?void 0:O.onVolumeChange)==null?void 0:Le.call(O,st)})),this.subscription.add(this.store.state.muted$.subscribe(st=>{var Le,dt;return st?(Le=O==null?void 0:O.onMute)==null?void 0:Le.call(O):(dt=O==null?void 0:O.onUnmute)==null?void 0:dt.call(O)})),this.subscription.add(this.store.state.videoBitrate$.subscribe(st=>{var Le;return(Le=O==null?void 0:O.onVideoBitrateChanged)==null?void 0:Le.call(O,st)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(st=>{var dt;let Le=(dt=this.store)==null?void 0:dt.ui.controls.disabledControls$;Le&&(st&&!Le.includes(Dl)&&Le.add(Dl),st||Le.remove(Dl))})),this.initMediaSession(),this.interactiveController&&Z&&this.initInteractivesStatistics(),this.svelteRootComponent=new Gp({target:this.playerContainer,props:{interactiveContainer:this.interactiveContainer,sources:Qe,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:Ke,thumbUrl:Xe,subtitles:$e,live:be,preload:m,autoplay:h,muted:b,volume:S,fromTime:w,canRewindLive:y,supportLink:T,showAds:v,adsSlotId:g,adsParams:De,adsPreviewParam:B,duration:X,logoClickable:F,logoHidden:ae,isMobile:oe,failoverHosts:j,fullScreenTarget:$,showMiniTimer:A,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Ue.nextVideoTitle,endScreenVideoThumb:Ue.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playNextVideo:()=>this.playNextVideo(),playPrevVideo:()=>this.playPrevVideo(),repeatPlaylist:()=>this.repeatPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),toggleGraph:()=>this.toggleGraph()}}),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(bt=(ht=(Mt=this.videoConfig)==null?void 0:Mt.callbacks)==null?void 0:ht.onInited)==null||bt.call(ht))}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.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,gn.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(Ms),!a&&this.graphMadePause&&this.play()):(this.graphMadePause=s==="playing",r.set(!0),(m=this.interactiveController)==null||m.toggleGraphView(!0),l.add(Ms),!a&&this.graphMadePause&&this.pause())}async initInteractives(){var t,n,o,r;if((t=this.videoConfig)!=null&&t.interactiveData)try{let{Interactives:l,EVENT_NAMES:a,CustomError:s}=await 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:S,videoLoader:b}=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:S,vkVideoLoader:b,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(T=>{if(!this.isInited)return;let v=this.store;T?v.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):v.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(w.subscribe(T=>{this.store&&this.store.state.isInteractiveExpectation$.set(T)}));let y=!0;if(this.interactiveController.on(a.playerChanged,T=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...T.config,title:(m==null?void 0:m.title)||T.config.title};let v=y?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(T.player,v),y&&(y=!1)}),this.interactiveController.on(a.interactives,({type:T,actionType:v})=>{var E,B,L,F;if(!this.store)return;let g=w.getValue();if(T==="action-choice"&&v==="setRandomBranch"&&(this.store.state.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(nr)),T==="action-choice-canceled"){let ae=tt(this.store.state.isPlaying$)||g;if((E=this.videoConfig)!=null&&E.isMobile&&ae){this.store.ui.interactiveHideMobileControls.set(!0);return}(F=(B=this.videoConfig)==null?void 0:(L=B.callbacks).onDisabledInteractiveClick)==null||F.call(L)}}),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(r=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&r.onInteractiveHistoryChanged){let T=this.interactiveController.getHistoryState();this.subscription.add(T.history$.subscribe(v=>{var g,E,B;v.length&&((B=(E=(g=this.videoConfig)==null?void 0:g.callbacks)==null?void 0:E.onInteractiveHistoryChanged)==null||B.call(E,v))}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var T,v,g,E;(T=this.microStoresRoot)==null||T.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(E=(v=this.videoConfig)==null?void 0:(g=v.callbacks).onInteractiveTimeIndicatorClick)==null||E.call(g)})),this.interactiveController.on(a.errors,T=>{this.log({message:T.toString()})})}catch(l){this.log({message:l.message})}}async initInteractivesStatistics(){var o,r;let{statSubscription:t,oneStat:n}=this.statistics;if(!(!t||!n||!this.interactiveController))try{let{INTERACTIVE_CLICK_ACTIONS:l}=await import("@vkontakte/videoplayer-interactive"),a={[l.GO_NEXT_BUTTON]:El.InteractiveInterfaceClick.NEXT_BUTTON,[l.GO_NEXT_AREA]:El.InteractiveInterfaceClick.NEXT_AREA,[l.WATCH_AGAIN]:El.InteractiveInterfaceClick.WATCH_AGAIN,[l.OPEN_GRAPH]:El.InteractiveInterfaceClick.GRAPH_SHOW,[l.CLOSE_GRAPH]:El.InteractiveInterfaceClick.GRAPH_HIDE},{click$:s,nextMovie$:u}=this.interactiveController.getStatEvents(),c=new gn.Subject;s.subscribe(m=>{var h,S;m in a?c.next(a[m]):(n==null||n.logError({errorType:"InteractiveVideosAction",fatal:!1}),(S=(h=this.sentry).report)==null||S.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,S,b,w,y,T,v,g,E,B,L;if(!Array.isArray(t.videos)||t.videos.length===0&&!t.interactiveData)throw new Error("empty videos");this.videoConfig=Vf(A6,(0,gn.cloneDeepWith)(t,F=>F instanceof HTMLElement?F:void 0)),this.uiConfig=xf((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,gn.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(s=this.videoConfig.isMediaSessionEnabled)!=null?s:!0),(0,gn.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=(S=this.uiConfig.isMobile)!=null?S:this.videoConfig.isMobile,(b=this.videoConfig).autoplay&&(b.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=(T=this.uiConfig.ads.preview)!=null?T:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((v=this.uiConfig.showLogo)!=null?v:!this.videoConfig.logoHidden),(g=this.videoConfig).canRewindLive&&(g.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=hs.getLatestSupportedVersion():this.pictureInPictureApi=new Ho),this.mediaSessionApi=this.uiConfig.features.mediaSession?new _s:void 0,this.annotationsApi=this.uiConfig.features.annotations?new gs(this.rootContainer):void 0,(B=this.svelteStubComponent)==null||B.$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]),$p(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}={...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)}async setLanguage(t){var n;await((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()}showInteractiveIndicatorTooltip(t,n=!1){var o;(o=this.microStoresRoot)==null||o.stores.showInteractiveTimeIndicatorTooltip$.set(t,n)}};var Ml=require("@vkontakte/videoplayer-shared"),ys=require("@vkontakte/videoplayer-core"),L6=()=>{window.customElements.define("vk-video-player",vs)};
50
+ );--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)}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 t6(i){let e,t,n;function o(l){i[58](l)}let r={store:i[0],uiConfig:i[34],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[35],showNextPrevButtons:i[15],nextButtonActive:i[16],prevButtonActive:i[17],endScreenVideoTitle:i[18],endScreenVideoThumb:i[19],isOneVideoPlaylist:i[20],supportLink:i[21],outerContainerRef:i[22],fullScreenTarget:i[23],showMiniTimer:i[24],playerStarted:i[33],playNextVideo:i[25],playPrevVideo:i[26],repeatPlaylist:i[27],seekToInteractive:i[28],toggleGraph:i[29],playPrevChapter:i[30],firstStart:i[36]};return i[32]!==void 0&&(r.videoContainer=i[32]),e=new _p({props:r}),pe.push(()=>He(e,"videoContainer",o)),{c(){D(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.outerContainerRef=l[22]),a[0]&8388608&&(s.fullScreenTarget=l[23]),a[0]&16777216&&(s.showMiniTimer=l[24]),a[1]&4&&(s.playerStarted=l[33]),a[0]&33554432&&(s.playNextVideo=l[25]),a[0]&67108864&&(s.playPrevVideo=l[26]),a[0]&134217728&&(s.repeatPlaylist=l[27]),a[0]&268435456&&(s.seekToInteractive=l[28]),a[0]&536870912&&(s.toggleGraph=l[29]),a[0]&1073741824&&(s.playPrevChapter=l[30]),!t&&a[1]&2&&(t=!0,s.videoContainer=l[32],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function i6(i){let e,t,n;function o(l){i[57](l)}let r={store:i[0],uiConfig:i[34],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[35],showNextPrevButtons:i[15],nextButtonActive:i[16],prevButtonActive:i[17],endScreenVideoTitle:i[18],endScreenVideoThumb:i[19],isOneVideoPlaylist:i[20],supportLink:i[21],outerContainerRef:i[22],fullScreenTarget:i[23],showMiniTimer:i[24],playerStarted:i[33],playNextVideo:i[25],playPrevVideo:i[26],repeatPlaylist:i[27],seekToInteractive:i[28],toggleGraph:i[29],playPrevChapter:i[30],firstStart:i[36],seekTime:i[31]};return i[32]!==void 0&&(r.videoContainer=i[32]),e=new Dp({props:r}),pe.push(()=>He(e,"videoContainer",o)),{c(){D(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.outerContainerRef=l[22]),a[0]&8388608&&(s.fullScreenTarget=l[23]),a[0]&16777216&&(s.showMiniTimer=l[24]),a[1]&4&&(s.playerStarted=l[33]),a[0]&33554432&&(s.playNextVideo=l[25]),a[0]&67108864&&(s.playPrevVideo=l[26]),a[0]&134217728&&(s.repeatPlaylist=l[27]),a[0]&268435456&&(s.seekToInteractive=l[28]),a[0]&536870912&&(s.toggleGraph=l[29]),a[0]&1073741824&&(s.playPrevChapter=l[30]),!t&&a[1]&2&&(t=!0,s.videoContainer=l[32],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function n6(i){let e,t,n,o,r=[i6,t6],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-cghoty")},m(s,u){C(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):(fe(),_(l[c],1,1,()=>{l[c]=null}),ce(),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&&k(e),l[t].d()}}}function o6(i,e,t){let{sources:n}=e,{store:o}=e,{microStoresRoot:r}=e,{videoConfig:l}=e,{uiConfig:a}=e,{title:s}=e,{thumbUrl:u}=e,{interactiveContainer:c}=e,{subtitles:m}=e,{live:h}=e,{preload:w}=e,{autoplay:b}=e,{volume:S=void 0}=e,{muted:y=void 0}=e,{fromTime:P}=e,{canRewindLive:v}=e,{showAds:g}=e,{adsSlotId:I=void 0}=e,{adsParams:N=void 0}=e,{adsPreviewParam:W=void 0}=e,{duration:U=void 0}=e,{logoClickable:le}=e,{logoHidden:ae}=e,{isMobile:O}=e,{showNextPrevButtons:R=!1}=e,{nextButtonActive:x=!1}=e,{prevButtonActive:Y=!1}=e,{endScreenVideoTitle:J=void 0}=e,{endScreenVideoThumb:E=void 0}=e,{isOneVideoPlaylist:te=!1}=e,{supportLink:M}=e,{outerContainerRef:ee=void 0}=e,{fullScreenTarget:ke=void 0}=e,{failoverHosts:Ge=void 0}=e,{showMiniTimer:Ue=!1}=e,{saveRate:xe}=e,{playNextVideo:je=Gn.noop}=e,{playPrevVideo:ve=Gn.noop}=e,{repeatPlaylist:X=Gn.noop}=e,{seekToInteractive:be=Gn.noop}=e,{toggleGraph:Oe=Gn.noop}=e,{playPrevChapter:$e=Gn.noop}=e,{subscribers:et,stores:ye}=r;Jf(a);let Le=zt(),Ke=a.logoLink,Xe=o.ui.debugPanelVisible,Te=o.ui.playerSize,Z,Ce=null,ue=!1;o.getAdmanWrapper().init({switchFromAdsToVideo:o.actions.internal.switchFromAdsToVideo,switchFromVideoToAds:o.actions.internal.switchFromVideoToAds,setMuted:o.actions.external.setMuted},o.ads,{isMobile:o.ui.isMobile,mobileUnmuteButtonVisible:o.ui.mobileUnmuteButtonVisible,vsid:o.vsid}),ac(o,ye);let Ie=(_e=!1)=>{t(33,ue=!0),_e?o.actions.external.firstStart(g):o.actions.internal.firstStart(g)};function Je(_e){var Qe;let Nt=n||_e;Nt&&o.initVideo({container:Z,sources:Nt,failoverHosts:Ge,subtitles:m});let mt=Gn.safeStorage.get(Sl)==="true";Xe.set(mt),P>0&&o.actions.external.seekTime(P);let vt=O?Le.volumeDefault:(Qe=S!=null?S:tr())!=null?Qe:Le.volumeDefault,bt=y!=null?y:wc();if(o.actions.external.setVolume(vt),o.actions.external.setMuted(bt),o.getAdmanWrapper().setInitialVolume(bt?0:vt),Le.features.trafficSaving){let wt=Cc();wt&&o.actions.internal.setTrafficSavingEnabled(wt)}if(Le.features.saveRate&&xe){let wt=Pc();wt&&o.actions.internal.setPlaybackRate(wt)}let Be=bc(o.videoId);Be&&o.actions.internal.setQuality(Be),o.ui.isAutoplay.set(b),b?Ie():w&&Le.features.preload&&o.actions.internal.preload()}let at=_e=>{if(window.ResizeObserver){let Nt,mt;Ce=new ResizeObserver((0,Gn.throttleFn)(vt=>{let bt=vt[0];if(bt){if(bt.contentBoxSize){let Be=Array.isArray(bt.contentBoxSize)?bt.contentBoxSize[0]:bt.contentBoxSize;Nt=Be.inlineSize,mt=Be.blockSize}else bt.contentRect&&(Nt=bt.contentRect.width,mt=bt.contentRect.height);Te.set({width:Nt,height:mt})}},300)),Ce.observe(_e)}Te.set({width:_e.clientWidth,height:_e.clientHeight})};Rt(()=>{at(Z);let _e=et.map(mt=>mt.init({store:o,microStores:ye,config:l}));if((h==null?void 0:h.status)==="upcoming"||(h==null?void 0:h.status)==="waiting"){o.actions.internal.setWaitingLive(!0);return}if(((h==null?void 0:h.status)==="finished"||(h==null?void 0:h.status)==="postlive")&&!Object.keys(n||[]).length){o.actions.internal.setWaitingRecord(!0);return}return Je(),()=>{Ce==null||Ce.disconnect(),_e.forEach(mt=>mt.unsubscribe()),o.destroy()}});function ut(){ue?o.actions.external.play():Ie(!0)}function ft(){o.actions.external.pause()}function ht(_e){O||o.actions.external.setMuted(_e)}function gt(_e){O||_e>=0&&_e<=1&&o.actions.external.setVolume(_e)}function we(_e){o.actions.internal.seekTime(_e,Np.SeekAction.UNKNOWN)}function pt(_e){o.actions.external.seekEpisodeStartTime(_e)}function Et(){o.actions.external.returnFocusToEpisodes()}function Mt(_e){o.actions.external.setPlaybackRate(_e)}function ze(_e){o.actions.external.setAutoQualityLimits(_e)}function Ut(_e){Z=_e,t(32,Z)}function Ft(_e){Z=_e,t(32,Z)}return i.$$set=_e=>{"sources"in _e&&t(37,n=_e.sources),"store"in _e&&t(0,o=_e.store),"microStoresRoot"in _e&&t(38,r=_e.microStoresRoot),"videoConfig"in _e&&t(39,l=_e.videoConfig),"uiConfig"in _e&&t(40,a=_e.uiConfig),"title"in _e&&t(1,s=_e.title),"thumbUrl"in _e&&t(2,u=_e.thumbUrl),"interactiveContainer"in _e&&t(3,c=_e.interactiveContainer),"subtitles"in _e&&t(41,m=_e.subtitles),"live"in _e&&t(4,h=_e.live),"preload"in _e&&t(42,w=_e.preload),"autoplay"in _e&&t(5,b=_e.autoplay),"volume"in _e&&t(43,S=_e.volume),"muted"in _e&&t(44,y=_e.muted),"fromTime"in _e&&t(45,P=_e.fromTime),"canRewindLive"in _e&&t(6,v=_e.canRewindLive),"showAds"in _e&&t(7,g=_e.showAds),"adsSlotId"in _e&&t(8,I=_e.adsSlotId),"adsParams"in _e&&t(9,N=_e.adsParams),"adsPreviewParam"in _e&&t(10,W=_e.adsPreviewParam),"duration"in _e&&t(11,U=_e.duration),"logoClickable"in _e&&t(12,le=_e.logoClickable),"logoHidden"in _e&&t(13,ae=_e.logoHidden),"isMobile"in _e&&t(14,O=_e.isMobile),"showNextPrevButtons"in _e&&t(15,R=_e.showNextPrevButtons),"nextButtonActive"in _e&&t(16,x=_e.nextButtonActive),"prevButtonActive"in _e&&t(17,Y=_e.prevButtonActive),"endScreenVideoTitle"in _e&&t(18,J=_e.endScreenVideoTitle),"endScreenVideoThumb"in _e&&t(19,E=_e.endScreenVideoThumb),"isOneVideoPlaylist"in _e&&t(20,te=_e.isOneVideoPlaylist),"supportLink"in _e&&t(21,M=_e.supportLink),"outerContainerRef"in _e&&t(22,ee=_e.outerContainerRef),"fullScreenTarget"in _e&&t(23,ke=_e.fullScreenTarget),"failoverHosts"in _e&&t(46,Ge=_e.failoverHosts),"showMiniTimer"in _e&&t(24,Ue=_e.showMiniTimer),"saveRate"in _e&&t(47,xe=_e.saveRate),"playNextVideo"in _e&&t(25,je=_e.playNextVideo),"playPrevVideo"in _e&&t(26,ve=_e.playPrevVideo),"repeatPlaylist"in _e&&t(27,X=_e.repeatPlaylist),"seekToInteractive"in _e&&t(28,be=_e.seekToInteractive),"toggleGraph"in _e&&t(29,Oe=_e.toggleGraph),"playPrevChapter"in _e&&t(30,$e=_e.playPrevChapter)},i.$$.update=()=>{if(i.$$.dirty[0]&16385)e:o.ui.isMobile.set(O)},[o,s,u,c,h,b,v,g,I,N,W,U,le,ae,O,R,x,Y,J,E,te,M,ee,ke,Ue,je,ve,X,be,Oe,$e,we,Z,ue,Le,Ke,Ie,n,r,l,a,m,w,S,y,P,Ge,xe,Je,ut,ft,ht,gt,pt,Et,Mt,ze,Ut,Ft]}var bf=class extends K{constructor(e){super(),G(this,e,o6,n6,q,{sources:37,store:0,microStoresRoot:38,videoConfig:39,uiConfig:40,title:1,thumbUrl:2,interactiveContainer:3,subtitles:41,live:4,preload:42,autoplay:5,volume:43,muted:44,fromTime:45,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,outerContainerRef:22,fullScreenTarget:23,failoverHosts:46,showMiniTimer:24,saveRate:47,playNextVideo:25,playPrevVideo:26,repeatPlaylist:27,seekToInteractive:28,toggleGraph:29,playPrevChapter:30,initVideo:48,play:49,pause:50,setMuted:51,setVolume:52,seekTime:31,seekEpisodeStartTime:53,returnFocusToEpisodes:54,setPlaybackRate:55,setAutoQualityLimits:56},e6,[-1,-1,-1])}get initVideo(){return this.$$.ctx[48]}get play(){return this.$$.ctx[49]}get pause(){return this.$$.ctx[50]}get setMuted(){return this.$$.ctx[51]}get setVolume(){return this.$$.ctx[52]}get seekTime(){return this.$$.ctx[31]}get seekEpisodeStartTime(){return this.$$.ctx[53]}get returnFocusToEpisodes(){return this.$$.ctx[54]}get setPlaybackRate(){return this.$$.ctx[55]}get setAutoQualityLimits(){return this.$$.ctx[56]}},Op=bf;function l6(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=oe(a,l[s]);return{c(){e=V("svg"),r&&r.c(),t=V("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"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(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&&k(e),r&&r.d(s)}}}function r6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var vf=class extends K{constructor(e){super(),G(this,e,r6,l6,q,{})}},Fp=vf;function s6(i){let e,t;return e=new Fp({props:{style:i[0]}}),{c(){D(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){B(e,n)}}}function a6(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 yf=class extends K{constructor(e){super(),G(this,e,a6,s6,q,{isWhite:1})}},Hp=yf;function u6(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 zp(i){let e,t;return{c(){e=T("div"),t=De(i[0]),f(e,"class","title svelte-1y9fytq")},m(n,o){C(n,e,o),p(e,t)},p(n,o){o&1&&Ye(t,n[0])},d(n){n&&k(e)}}}function qp(i){let e,t;return e=new Hp({props:{isWhite:!!i[1]}}),{c(){D(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){B(e,n)}}}function f6(i){let e,t,n,o,r=i[0]&&zp(i),l=(!i[0]||!i[1])&&qp(i);return{c(){e=T("div"),r&&r.c(),t=F(),l&&l.c(),f(e,"class","playerStub svelte-1y9fytq"),f(e,"style",n=i[1]?`background-image: url('${i[1]}')`:"")},m(a,s){C(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=zp(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=qp(a),l.c(),d(l,1),l.m(e,null)):l&&(fe(),_(l,1,1,()=>{l=null}),ce()),(!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&&k(e),r&&r.d(),l&&l.d()}}}function c6(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 wf=class extends K{constructor(e){super(),G(this,e,c6,f6,q,{title:0,thumbUrl:1},u6)}},Up=wf;var un=require("@vkontakte/videoplayer-shared"),SD=require("@vkontakte/videoplayer-core"),gl=require("@vkontakte/videoplayer-statistics");var cs=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 vo=require("@vkontakte/videoplayer-shared");function d6(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=oe(u,s[c]);return{c(){e=V("svg"),a&&a.c(),t=V("g"),n=V("path"),o=V("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"),ge(e,u)},m(c,m){C(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)&&Ve(a,l,c,c[1],r?Me(l,c[1],m,null):Ae(c[1]),null),ge(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&&k(e),a&&a.d(c)}}}function m6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var kf=class extends K{constructor(e){super(),G(this,e,m6,d6,q,{})}},Kp=kf;function p6(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 _6(i){let e,t,n,o,r,l,a;return n=new Kp({}),{c(){e=T("div"),t=T("div"),D(n.$$.fragment),o=F(),r=T("span"),l=De(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){C(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)&&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&&k(e),B(n)}}}function h6(i,e,t){let n,o,r=it(),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&&Q("pip_dummy_title"))},[u,o,l,a,s,n]}var Cf=class extends K{constructor(e){super(),G(this,e,h6,_6,q,{},p6)}},Wp=Cf;var g6=460,b6=280,Nl=class{constructor(){this.info={isActive$:new vo.ValueSubject(!1),type:1}}isSupported(){let e=(0,vo.getCurrentBrowser)().browser===vo.CurrentClientBrowser.Yandex,{isEmbed:t}=(0,vo.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}async request(){var r,l;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:g6,height:b6,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(`
51
+ `),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 Wp({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))})}async remove(){return new Promise(e=>{var t;(t=documentPictureInPicture.window)==null||t.close(),e()})}async dispose(){await this.remove()}createStretchedContainer(){let e=document.createElement("div");return e.style.width="100%",e.style.height="100%",e}};function Gp(i){return i instanceof Nl}var ds=class{static getLatestSupportedVersion(){let e=new Bo,t=new Nl;if(t.isSupported())return t;if(e.isSupported())return e}};function Sf(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 jp="Inner error. Unexpectedly root annotation container null reference exception",Qp="Annotation with such name already exists",Yp="Annotation with such name does not exist";var pl=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var _l=require("@vkontakte/videoplayer-shared"),v6="1",y6=100,ms=class{constructor(e){this.annotations=new Map;this.subscriptions=new _l.Subscription;this.rootAnnotationsContainer=e;let t=(0,_l.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"},y6);this.subscriptions.add((0,_l.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 pl(jp);if(this.annotations.has(e))throw new pl(Qp);t.style.zIndex=(n=t.style.zIndex)!=null?n:v6,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 pl(Yp);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 hl=require("@vkontakte/videoplayer-shared"),Jn=class{init({store:e,microStores:t,config:n}){return(0,hl.assertNonNullable)(e),(0,hl.assertNonNullable)(t),(0,hl.assertNonNullable)(n),this.subscription=new hl.Subscription,this.subscription}};var Ol=class extends Jn{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...Ne(null),toggle:()=>this.state$.update(t=>!t)}}init(t){let n=super.init(t),{isInteractiveExpectation$:o}=t.store.state;return n.add(o.subscribe(r=>{this.state$.set(r?!0:null)})),n}};var Fl=class extends Jn{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...Ne(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 b=tt(l);tt(s)?this.state$.set(w):b!==null&&this.state$.set(!b||w)})),n.add(s.subscribe(w=>{this.state$.set(!w||h())})),n.add(l.subscribe(w=>{if(w===null)return;let b=tt(a);if(h()){this.state$.set(!0);return}b&&this.state$.set(!w)})),n}};var Hl=class extends Jn{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=Ne("tooltip_chapter_without_interactive")}init(t){let n=super.init(t),{store:o}=t;return n.add(o.state.interactiveEpisodes$.subscribe(r=>{r.length&&(r.every(l=>l.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),n}};var Zp=require("@vkontakte/videoplayer-shared"),Pf=Ne(!1),ps=null,zl=class extends Jn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...Pf,set:(t,n=!1)=>{t!==tt(Pf)&&(this.clearTimeout(),Pf.set(t),!t&&ps&&(ps=!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,Zp.combine)({isPlaying$:a,isInteractiveTime$:l,interactiveTimeIndicator:u}).subscribe(({isPlaying$:m,isInteractiveTime$:h,interactiveTimeIndicator:w})=>{var b,S;if(!(!m||!(w!=null&&w.isDisplayed))){if(!h)return this.state$.set(!1);c.tooltipHelpHintActive&&ps===null&&(ps=!0,c.tooltipHelpHintActive=!1,this.state$.set(!0),(S=(b=o.callbacks)==null?void 0:b.onInteractiveTimeIndicatorHintDeactivated)==null||S.call(b))}})),n}clearTimeout(){window.clearTimeout(this.timeout)}};var Xp=()=>[Ol,Fl,Hl,zl].reduce(({subscribers:i,stores:e},t)=>{let n=new t;return{subscribers:[...i,n],stores:{...e,[n.stateName]:n.state$}}},{subscribers:[],stores:{}});var w6={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:un.InterfaceLanguage.RU,logoClickable:!1,logoHidden:!1,isMobile:(0,un.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0},_s=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 un.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new un.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 Up({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%";let t=document.createElement("div");t.style.position="absolute",t.className="shadow-root-container",t.style.width="100%",t.style.height="100%",this._shadowRoot=t.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(t),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 gt,we,pt,Et,Mt,ze,Ut,Ft,_e,Nt,mt,vt,bt;if(!this.videoConfig)return;let{albumId:r,statPlace:l,statUserSalt:a,statAuthToken:s,statTrackCode:u,refreshStatAuthToken:c,preload:m,autoplay:h,volume:w,muted:b,fromTime:S,canRewindLive:y,supportLink:P,showAds:v,adsSlotId:g,adsParams:I={},adsPreviewParam:N,interfaceLanguage:W,logoClickable:U,logoHidden:le,isMobile:ae,isAudioDisabled:O,isLiveCatchUpMode:R,fullScreenTarget:x,failoverHosts:Y,canDownload:J,callbacks:E,interactiveData:te,showThumbTimer:M,additionalButtons:ee=[],repeat:ke,saveRate:Ge}=Sf(this.videoConfig,n),{sources:Ue,title:xe,thumbUrl:je,unitedVideoId:ve,isClip:X=!1,duration:be,adsParams:Oe={},videoEpisodes:$e,previewThumbsData:et,subtitles:ye,live:Le}=t,Ke={...I,...Oe},Xe=this.getNextVideoInfo(),Te={sources:Ue,title:xe,thumbUrl:je,subtitles:ye,unitedVideoId:ve,isClip:X,live:Le,albumId:r,statPlace:l,autoplay:h,muted:b,volume:w,fromTime:S,canRewindLive:y,showAds:v,adsSlotId:g,adsParams:Ke,adsPreviewParam:N,duration:be,logoClickable:U,logoHidden:le,isMobile:ae,repeat:ke,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Xe.nextVideoTitle,endScreenVideoThumb:Xe.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Z={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(Te)}`});let Ce=this.uiConfig.features.statistics&&!!ve,{pid:ue}=((we=(gt=this.videoConfig)==null?void 0:gt.interactiveData)==null?void 0:we.projectInfo)||{};Ce&&(this.statistics=new Xr({movieId:ve,albumId:r,place:l,trackCode:u,autoplay:(pt=h&&!this.interactiveController)!=null?pt:!1,mobile:ae,clip:X,refDomain:this.videoConfig.refDomain,...ue&&!this.isInited&&{projectId:Number(ue)}},{refreshAuthToken:c,userSalt:a,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Lo(this.uiConfig.sentry,{version:Vo,env:$l},{movieId:ve,albumId:r,place:l,autoplay:(Et=h&&!this.interactiveController)!=null?Et:!1,mobile:ae,clip:X}),this.interactiveController&&((ze=this.prevIsid)!=null||(this.prevIsid=(Mt=this.statistics)==null?void 0:Mt.oneStat.isid$.getValue())),this.sentry={...this.sentry,...Lo.getInstance()};let Je=!!te,at=[],ut="tooltip_interactive_go_back_disabled_first";if(Je&&this.interactiveController){let Be=this.interactiveController.state.isInitialChapter$.getValue(),Qe=this.interactiveController.getHistoryState();Be&&at.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||at.push("SEEK_TO_INTERACTIVE_BUTTON"),Qe.hasPrevChapter$.getValue()||(at.push("PLAY_PREV_CHAPTER_BUTTON"),Be||(Qe.isGoBackLimited$.getValue()?ut="tooltip_interactive_go_back_disabled_limit":ut="tooltip_interactive_go_back_disabled"))}let ft=()=>{var Qe;this.isInited=!1,this.prevIsid=void 0;let Be=(o==null?void 0:o.info.isEnded$.getValue())&&((Qe=this.interactiveController)==null?void 0:Qe.state.isEndChapter$.getValue());E.onReplayInteractiveVideo&&!Be?E.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=gm({player:o,interfaceLanguage:W,videoId:ve,isClip:X,isLiveCatchUpMode:R,isAudioDisabled:O,statAuthToken:s,callbacks:E,webApi:Z,videoEpisodes:$e,previewThumbsData:et,canDownload:J,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:at,isInteractive:Je,saveRate:Ge,interactiveRanges$:(Ut=this.interactiveController)==null?void 0:Ut.state.interactiveRanges$,isInteractiveTime$:(Ft=this.interactiveController)==null?void 0:Ft.state.isInteractiveTime$,replayInteractive:ft,playPrevChapterDisabledTooltip:ut,hasInteractiveBranches:!!((Nt=(_e=this.interactiveController)==null?void 0:_e.getChapterBranches())!=null&&Nt.length),additionalButtons:this.uiConfig.features.additionalButtons?ee:[],looped:ke&&this.videoConfig.videos.length===1,statistics:this.statistics});let{stores:ht}=this.microStoresRoot=Xp();this.subscription.add(this.store.state.currentFormat$.subscribe(Be=>{var Qe;return(Qe=E==null?void 0:E.onCurrentFormatChanged)==null?void 0:Qe.call(E,Be)})),this.subscription.add(ht.interactiveControlsOpacity$.subscribe(Be=>{var Qe;Be!==null&&((Qe=this==null?void 0:this.interactiveController)==null||Qe.setDisabledControls(Be))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(Be=>{var Qe;return(Qe=E==null?void 0:E.onThroughputEstimationChanged)==null?void 0:Qe.call(E,Be)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(Be=>{var Qe;return(Qe=E==null?void 0:E.onTrafficSavingEnabledChanged)==null?void 0:Qe.call(E,Be)})),this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(Be=>{var Qe;return(Qe=E==null?void 0:E.onCurrentPlaybackRateChanged)==null?void 0:Qe.call(E,Be)})),this.subscription.add(this.store.state.volume$.subscribe(Be=>{var Qe;return(Qe=E==null?void 0:E.onVolumeChange)==null?void 0:Qe.call(E,Be)})),this.subscription.add(this.store.state.muted$.subscribe(Be=>{var Qe,wt;return Be?(Qe=E==null?void 0:E.onMute)==null?void 0:Qe.call(E):(wt=E==null?void 0:E.onUnmute)==null?void 0:wt.call(E)})),this.subscription.add(this.store.state.videoBitrate$.subscribe(Be=>{var Qe;return(Qe=E==null?void 0:E.onVideoBitrateChanged)==null?void 0:Qe.call(E,Be)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(Be=>{var wt;let Qe=(wt=this.store)==null?void 0:wt.ui.controls.disabledControls$;Qe&&(Be&&!Qe.includes(Pl)&&Qe.add(Pl),Be||Qe.remove(Pl))})),this.initMediaSession(),this.interactiveController&&Ce&&this.initInteractivesStatistics(),this.svelteRootComponent=new Op({target:this.playerContainer,props:{interactiveContainer:this.interactiveContainer,sources:Ue,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:xe,thumbUrl:je,subtitles:ye,live:Le,preload:m,autoplay:h,muted:b,volume:w,fromTime:S,canRewindLive:y,supportLink:P,showAds:v,adsSlotId:g,adsParams:Ke,adsPreviewParam:N,duration:be,logoClickable:U,logoHidden:le,isMobile:ae,failoverHosts:Y,fullScreenTarget:x,saveRate:Ge,showMiniTimer:M,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Xe.nextVideoTitle,endScreenVideoThumb:Xe.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playNextVideo:()=>this.playNextVideo(),playPrevVideo:()=>this.playPrevVideo(),repeatPlaylist:()=>this.repeatPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),toggleGraph:()=>this.toggleGraph()}}),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(bt=(vt=(mt=this.videoConfig)==null?void 0:mt.callbacks)==null?void 0:vt.onInited)==null||bt.call(vt))}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.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,un.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(Ps),!a&&this.graphMadePause&&this.play()):(this.graphMadePause=s==="playing",r.set(!0),(m=this.interactiveController)==null||m.toggleGraphView(!0),l.add(Ps),!a&&this.graphMadePause&&this.pause())}async initInteractives(){var t,n,o,r;if((t=this.videoConfig)!=null&&t.interactiveData)try{let{Interactives:l,EVENT_NAMES:a,CustomError:s}=await 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:b}=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:b,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig});let{isInteractiveExpectation$:S}=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(S.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]={...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,W,U;if(!this.store)return;let g=S.getValue();if(P==="action-choice"&&v==="setRandomBranch"&&(this.store.state.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(xl)),P==="action-choice-canceled"){let le=tt(this.store.state.isPlaying$)||g;if((I=this.videoConfig)!=null&&I.isMobile&&le){this.store.ui.interactiveHideMobileControls.set(!0);return}(U=(N=this.videoConfig)==null?void 0:(W=N.callbacks).onDisabledInteractiveClick)==null||U.call(W)}}),await 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 g,I,N;v.length&&((N=(I=(g=this.videoConfig)==null?void 0:g.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,g,I;(P=this.microStoresRoot)==null||P.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(I=(v=this.videoConfig)==null?void 0:(g=v.callbacks).onInteractiveTimeIndicatorClick)==null||I.call(g)})),this.interactiveController.on(a.errors,P=>{this.log({message:P.toString()})})}catch(l){this.log({message:l.message})}}async initInteractivesStatistics(){var o,r;let{statSubscription:t,oneStat:n}=this.statistics;if(!(!t||!n||!this.interactiveController))try{let{INTERACTIVE_CLICK_ACTIONS:l}=await import("@vkontakte/videoplayer-interactive"),a={[l.GO_NEXT_BUTTON]:gl.InteractiveInterfaceClick.NEXT_BUTTON,[l.GO_NEXT_AREA]:gl.InteractiveInterfaceClick.NEXT_AREA,[l.WATCH_AGAIN]:gl.InteractiveInterfaceClick.WATCH_AGAIN,[l.OPEN_GRAPH]:gl.InteractiveInterfaceClick.GRAPH_SHOW,[l.CLOSE_GRAPH]:gl.InteractiveInterfaceClick.GRAPH_HIDE},{click$:s,nextMovie$:u}=this.interactiveController.getStatEvents(),c=new un.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,b,S,y,P,v,g,I,N,W;if(!Array.isArray(t.videos)||t.videos.length===0&&!t.interactiveData)throw new Error("empty videos");this.videoConfig=Sf(w6,(0,un.cloneDeepWith)(t,U=>U instanceof HTMLElement?U:void 0)),this.uiConfig=Xf((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,un.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(s=this.videoConfig.isMediaSessionEnabled)!=null?s:!0),(0,un.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,(b=this.videoConfig).autoplay&&(b.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(S=this.uiConfig.ads.enable)!=null?S: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),(g=this.videoConfig).canRewindLive&&(g.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=ds.getLatestSupportedVersion():this.pictureInPictureApi=new Bo),this.mediaSessionApi=this.uiConfig.features.mediaSession?new cs:void 0,this.annotationsApi=this.uiConfig.features.annotations?new ms(this.rootContainer):void 0,(N=this.svelteStubComponent)==null||N.$destroy(),(W=this.svelteRootComponent)==null||W.$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]),Gp(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}={...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)}async setLanguage(t){var n;await((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()}showInteractiveIndicatorTooltip(t,n=!1){var o;(o=this.microStoresRoot)==null||o.stores.showInteractiveTimeIndicatorTooltip$.set(t,n)}};var bl=require("@vkontakte/videoplayer-shared"),hs=require("@vkontakte/videoplayer-core"),k6=()=>{window.customElements.define("vk-video-player",_s)};