@vkontakte/videoplayer 1.1.80 → 1.1.81-dev.10447541.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 ADDED
@@ -0,0 +1,63 @@
1
+ /**
2
+ * @vkontakte/videoplayer v1.1.81-dev.10447541.0
3
+ * Wed, 14 Jan 2026 08:03:07 GMT
4
+ * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-81/doc/
5
+ */
6
+ "use strict";var E$=Object.create;var hd=Object.defineProperty;var k$=Object.getOwnPropertyDescriptor;var P$=Object.getOwnPropertyNames;var A$=Object.getPrototypeOf,L$=Object.prototype.hasOwnProperty;var gg=t=>{throw TypeError(t)};var M$=(t,e,i)=>e in t?hd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var V$=(t,e)=>{for(var i in e)hd(t,i,{get:e[i],enumerable:!0})},hg=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of P$(e))!L$.call(t,r)&&r!==i&&hd(t,r,{get:()=>e[r],enumerable:!(o=k$(e,r))||o.enumerable});return t};var _g=(t,e,i)=>(i=t!=null?E$(A$(t)):{},hg(e||!t||!t.__esModule?hd(i,"default",{value:t,enumerable:!0}):i,t)),R$=t=>hg(hd({},"__esModule",{value:!0}),t);var dr=(t,e,i)=>M$(t,typeof e!="symbol"?e+"":e,i),Wp=(t,e,i)=>e.has(t)||gg("Cannot "+i);var Mi=(t,e,i)=>(Wp(t,e,"read from private field"),i?i.call(t):e.get(t)),qs=(t,e,i)=>e.has(t)?gg("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),vl=(t,e,i,o)=>(Wp(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),bg=(t,e,i)=>(Wp(t,e,"access private method"),i);var CT={};V$(CT,{ControlButtonType:()=>_c,GridTypes:()=>Zr,InterfaceLanguage:()=>ud.InterfaceLanguage,MenuItemType:()=>ql,PlayerPhase:()=>Jr,VERSION:()=>Ra,VKNumericLanguage:()=>ud.VKNumericLanguage,VideoFormat:()=>Dp.VideoFormat,VideoQuality:()=>Dp.VideoQuality,loadVKLangPack:()=>ud.loadVKLangPack,registerPlayerWebComponent:()=>ST});module.exports=R$(CT);var Qs="[",Gs="[!",ba="]",ps={};var eo=Symbol(),Qn=Symbol("filename"),$g=Symbol("hmr"),yg="http://www.w3.org/1999/xhtml",ru="http://www.w3.org/2000/svg";var Kp="@attach";var su=!0;var wg,Sg,xg=(Sg=(wg=globalThis.process)==null?void 0:wg.env)==null?void 0:Sg.NODE_ENV,Pe=xg&&!xg.toLowerCase().startsWith("prod");var cr=Array.isArray,Cg=Array.prototype.indexOf,_d=Array.from,qp=Object.keys,mo=Object.defineProperty,Wo=Object.getOwnPropertyDescriptor,au=Object.getOwnPropertyDescriptors,Qp=Object.prototype,Tg=Array.prototype,$a=Object.getPrototypeOf,Gp=Object.isExtensible;function Ys(t){return typeof t=="function"}var vt=()=>{};function Ig(t){return t()}function js(t){for(var e=0;e<t.length;e++)t[e]()}var Ko=Symbol("$state"),gl=Symbol("legacy props"),Eg=Symbol(""),lu=Symbol("proxy path"),du=1,hl=3,ur=8;function cu(t){return t===this.v}function _l(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function kg(t,e){return t!==e}function bl(t){return!_l(t,this.v)}function Pg(){if(Pe){let t=new Error(`derived_references_self
7
+ A derived value cannot reference itself recursively
8
+ https://svelte.dev/e/derived_references_self`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/derived_references_self")}function Ag(t){if(Pe){let e=new Error(`effect_in_teardown
9
+ \`${t}\` cannot be used inside an effect cleanup function
10
+ https://svelte.dev/e/effect_in_teardown`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_in_teardown")}function Lg(){if(Pe){let t=new Error("effect_in_unowned_derived\nEffect cannot be created inside a `$derived` value that was not itself created inside an effect\nhttps://svelte.dev/e/effect_in_unowned_derived");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Mg(t){if(Pe){let e=new Error(`effect_orphan
11
+ \`${t}\` can only be used inside an effect (e.g. during component initialisation)
12
+ https://svelte.dev/e/effect_orphan`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_orphan")}function Vg(){if(Pe){let t=new Error(`effect_update_depth_exceeded
13
+ Maximum update depth exceeded. This can happen when a reactive block or effect repeatedly sets a new value. Svelte limits the number of nested updates to prevent infinite loops
14
+ https://svelte.dev/e/effect_update_depth_exceeded`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Rg(){if(Pe){let t=new Error(`hydration_failed
15
+ Failed to hydrate the application
16
+ https://svelte.dev/e/hydration_failed`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/hydration_failed")}function Ng(){if(Pe){let t=new Error("invalid_snippet\nCould not `{@render}` snippet due to the expression being `null` or `undefined`. Consider using optional chaining `{@render snippet?.()}`\nhttps://svelte.dev/e/invalid_snippet");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/invalid_snippet")}function Dg(t){if(Pe){let e=new Error(`props_invalid_value
17
+ Cannot do \`bind:${t}={undefined}\` when \`${t}\` has a fallback value
18
+ https://svelte.dev/e/props_invalid_value`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/props_invalid_value")}function Og(t){if(Pe){let e=new Error(`props_rest_readonly
19
+ Rest element properties of \`$props()\` such as \`${t}\` are readonly
20
+ https://svelte.dev/e/props_rest_readonly`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/props_rest_readonly")}function Bg(t){if(Pe){let e=new Error(`rune_outside_svelte
21
+ The \`${t}\` rune is only available inside \`.svelte\` and \`.svelte.js/ts\` files
22
+ https://svelte.dev/e/rune_outside_svelte`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/rune_outside_svelte")}function Fg(){if(Pe){let t=new Error("state_descriptors_fixed\nProperty descriptors defined on `$state` objects must contain `value` and always be `enumerable`, `configurable` and `writable`.\nhttps://svelte.dev/e/state_descriptors_fixed");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Hg(){if(Pe){let t=new Error("state_prototype_fixed\nCannot set prototype of `$state` object\nhttps://svelte.dev/e/state_prototype_fixed");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Ug(){if(Pe){let t=new Error("state_unsafe_mutation\nUpdating state inside `$derived(...)`, `$inspect(...)` or a template expression is forbidden. If the value should not be reactive, declare it without `$state`\nhttps://svelte.dev/e/state_unsafe_mutation");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_unsafe_mutation")}var fs=!1,ms=!1;function zg(){fs=!0}var bd=null;function Ts(t){let e=Error(),i=e.stack;if(i){let o=i.split(`
23
+ `),r=[`
24
+ `];for(let s=0;s<o.length;s++){let l=o[s];if(l!=="Error"){if(l.includes("validate_each_keys"))return null;l.includes("svelte/src/internal")||r.push(l)}}if(r.length===1)return null;mo(e,"stack",{value:r.join(`
25
+ `)}),mo(e,"name",{value:`${t}Error`})}return e}function Wr(t,e){return t.label=e,uu(t.v,e),t}function uu(t,e){var i;return(i=t==null?void 0:t[lu])==null||i.call(t,e),t}function $l(t){if(Pe){let e=new Error(`lifecycle_outside_component
26
+ \`${t}(...)\` can only be used during component initialisation
27
+ https://svelte.dev/e/lifecycle_outside_component`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/lifecycle_outside_component")}var Wt=null;function $d(t){Wt=t}var pr=null;function yd(t){pr=t}function yl(t){return Xp("getContext").get(t)}function xl(t,e){return Xp("setContext").set(t,e),e}function xd(){return Xp("getAllContexts")}function B(t,e=!1,i){var o=Wt={p:Wt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};fs&&!e&&(Wt.l={s:null,u:null,r1:[],r2:kr(!1)}),Ao(()=>{o.d=!0}),Pe&&(Wt.function=i,pr=i)}function F(t){var l,d;let e=Wt;if(e!==null){t!==void 0&&(e.x=t);let a=e.e;if(a!==null){var i=_t,o=Nt;e.e=null;try{for(var r=0;r<a.length;r++){var s=a[r];vo(s.effect),Wi(s.reaction),Lo(s.fn)}}finally{vo(i),Wi(o)}}Wt=e.p,Pe&&(pr=(d=(l=e.p)==null?void 0:l.function)!=null?d:null),e.m=!0}return t||{}}function vs(){return!fs||Wt!==null&&Wt.l===null}function Xp(t){var e;return Wt===null&&$l(t),(e=Wt.c)!=null?e:Wt.c=new Map(D$(Wt)||void 0)}function D$(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var O$=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function si(t){if(typeof t!="object"||t===null||Ko in t)return t;let e=$a(t);if(e!==Qp&&e!==Tg)return t;var i=new Map,o=cr(t),r=q(0),s=Pe&&ms?Ts("CreatedAt"):null,l=Nt,d=f=>{var p=Nt;Wi(l);var m=f();return Wi(p),m};o&&i.set("length",q(t.length,s));var a="";function u(f){a=f,Wr(r,`${a} version`);for(let[p,m]of i)Wr(m,ya(a,p))}return new Proxy(t,{defineProperty(f,p,m){(!("value"in m)||m.configurable===!1||m.enumerable===!1||m.writable===!1)&&Fg();var $=i.get(p);return $===void 0?$=d(()=>{var y=q(m.value,s);return i.set(p,y),Pe&&typeof p=="string"&&Wr(y,ya(a,p)),y}):N($,m.value,!0),!0},deleteProperty(f,p){var m=i.get(p);if(m===void 0){if(p in f){let _=d(()=>q(eo,s));i.set(p,_),Zp(r),Pe&&Wr(_,ya(a,p))}}else{if(o&&typeof p=="string"){var $=i.get("length"),y=Number(p);Number.isInteger(y)&&y<$.v&&N($,y)}N(m,eo),Zp(r)}return!0},get(f,p,m){var x;if(p===Ko)return t;if(Pe&&p===lu)return u;var $=i.get(p),y=p in f;if($===void 0&&(!y||(x=Wo(f,p))!=null&&x.writable)&&($=d(()=>{var I=si(y?f[p]:eo),C=q(I,s);return Pe&&Wr(C,ya(a,p)),C}),i.set(p,$)),$!==void 0){var _=n($);return _===eo?void 0:_}return Reflect.get(f,p,m)},getOwnPropertyDescriptor(f,p){var m=Reflect.getOwnPropertyDescriptor(f,p);if(m&&"value"in m){var $=i.get(p);$&&(m.value=n($))}else if(m===void 0){var y=i.get(p),_=y==null?void 0:y.v;if(y!==void 0&&_!==eo)return{enumerable:!0,configurable:!0,value:_,writable:!0}}return m},has(f,p){var _;if(p===Ko)return!0;var m=i.get(p),$=m!==void 0&&m.v!==eo||Reflect.has(f,p);if(m!==void 0||_t!==null&&(!$||(_=Wo(f,p))!=null&&_.writable)){m===void 0&&(m=d(()=>{var x=$?si(f[p]):eo,I=q(x,s);return Pe&&Wr(I,ya(a,p)),I}),i.set(p,m));var y=n(m);if(y===eo)return!1}return $},set(f,p,m,$){var k;var y=i.get(p),_=p in f;if(o&&p==="length")for(var x=m;x<y.v;x+=1){var I=i.get(x+"");I!==void 0?N(I,eo):x in f&&(I=d(()=>q(eo,s)),i.set(x+"",I),Pe&&Wr(I,ya(a,x)))}if(y===void 0)(!_||(k=Wo(f,p))!=null&&k.writable)&&(y=d(()=>q(void 0,s)),N(y,si(m)),i.set(p,y),Pe&&Wr(y,ya(a,p)));else{_=y.v!==eo;var C=d(()=>si(m));N(y,C)}var R=Reflect.getOwnPropertyDescriptor(f,p);if(R!=null&&R.set&&R.set.call($,m),!_){if(o&&typeof p=="string"){var A=i.get("length"),E=Number(p);Number.isInteger(E)&&E>=A.v&&N(A,E+1)}Zp(r)}return!0},ownKeys(f){n(r);var p=Reflect.ownKeys(f).filter(y=>{var _=i.get(y);return _===void 0||_.v!==eo});for(var[m,$]of i)$.v!==eo&&!(m in f)&&p.push(m);return p},setPrototypeOf(){Hg()}})}function ya(t,e){var i;return typeof e=="symbol"?`${t}[Symbol(${(i=e.description)!=null?i:""})]`:O$.test(e)?`${t}.${e}`:/^\d+$/.test(e)?`${t}[${e}]`:`${t}['${e}']`}function Zp(t,e=1){N(t,t.v+e)}function wl(t){try{if(t!==null&&typeof t=="object"&&Ko in t)return t[Ko]}catch(e){}return t}function Jp(t,e){return Object.is(wl(t),wl(e))}function Kr(t){var e=2050,i=Nt!==null&&(Nt.f&2)!==0?Nt:null;_t===null||i!==null&&(i.f&256)!==0?e|=256:_t.f|=1048576;let o={ctx:Wt,deps:null,effects:null,equals:cu,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:_t};return Pe&&ms&&(o.created=Ts("CreatedAt")),o}function v(t){let e=Kr(t);return mu(e),e}function Tn(t){let e=Kr(t);return e.equals=bl,e}function pu(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)Ki(e[i])}}var ef=[];function B$(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function nf(t){var e,i=_t;if(vo(B$(t)),Pe){let o=xa;tf(new Set);try{ef.includes(t)&&Pg(),ef.push(t),pu(t),e=fu(t)}finally{vo(i),tf(o),ef.pop()}}else try{pu(t),e=fu(t)}finally{vo(i)}return e}function rf(t){var e=nf(t);if(t.equals(e)||(t.v=e,t.wv=wd()),!Is){var i=(Es||(t.f&256)!==0)&&t.deps!==null?4096:1024;In(t,i)}}var xa=new Set,Sl=new Map;function tf(t){xa=t}function kr(t,e){var i={f:0,v:t,reactions:null,equals:cu,rv:0,wv:0};return Pe&&ms&&(i.created=e!=null?e:Ts("CreatedAt"),i.updated=null,i.set_during_effect=!1,i.trace=null),i}function q(t,e){let i=kr(t,e);return mu(i),i}function gs(t,e=!1,i=!0){var r,s;let o=kr(t);return e||(o.equals=bl),fs&&i&&Wt!==null&&Wt.l!==null&&((s=(r=Wt.l).s)!=null?s:r.s=[]).push(o),o}function N(t,e,i=!1){var r;Nt!==null&&(!vr||(Nt.f&262144)!==0)&&vs()&&(Nt.f&262162)!==0&&!((r=Qo)!=null&&r[1].includes(t)&&Qo[0]===Nt)&&Ug();let o=i?si(e):e;return Pe&&uu(o,t.label),Cl(t,o)}function Cl(t,e){if(!t.equals(e)){var i=t.v;if(Is?Sl.set(t,e):Sl.set(t,i),t.v=e,Pe&&ms&&(t.updated=Ts("UpdatedAt"),_t!==null&&(t.set_during_effect=!0)),(t.f&2)!==0&&((t.f&2048)!==0&&nf(t),In(t,(t.f&256)===0?1024:4096)),t.wv=wd(),Kg(t,2048),vs()&&_t!==null&&(_t.f&1024)!==0&&(_t.f&96)===0&&(mr===null?qg([t]):mr.push(t)),Pe&&xa.size>0){let o=Array.from(xa);for(let r of o)(r.f&1024)!==0&&In(r,4096),Sa(r)&&Tl(r);xa.clear()}}return e}function Kg(t,e){var i=t.reactions;if(i!==null)for(var o=vs(),r=i.length,s=0;s<r;s++){var l=i[s],d=l.f;if((d&2048)===0&&!(!o&&l===_t)){if(Pe&&(d&262144)!==0){xa.add(l);continue}In(l,e),(d&1280)!==0&&((d&2)!==0?Kg(l,4096):Cd(l))}}}var Il="font-weight: bold",El="font-weight: normal";function Qg(t,e,i){Pe?console.warn(`%c[svelte] hydration_attribute_changed
28
+ %cThe \`${t}\` attribute on \`${e}\` changed its value between server and client renders. The client value, \`${i}\`, will be ignored in favour of the server value
29
+ https://svelte.dev/e/hydration_attribute_changed`,Il,El):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function Gg(t){Pe?console.warn(`%c[svelte] hydration_html_changed
30
+ %c${t?`The value of an \`{@html ...}\` block ${t} changed between server and client renders. The client value will be ignored in favour of the server value`:"The value of an `{@html ...}` block changed between server and client renders. The client value will be ignored in favour of the server value"}
31
+ https://svelte.dev/e/hydration_html_changed`,Il,El):console.warn("https://svelte.dev/e/hydration_html_changed")}function Xs(t){Pe?console.warn(`%c[svelte] hydration_mismatch
32
+ %c${t?`Hydration failed because the initial UI does not match what was rendered on the server. The error occurred near ${t}`:"Hydration failed because the initial UI does not match what was rendered on the server"}
33
+ https://svelte.dev/e/hydration_mismatch`,Il,El):console.warn("https://svelte.dev/e/hydration_mismatch")}function Yg(){Pe?console.warn(`%c[svelte] lifecycle_double_unmount
34
+ %cTried to unmount a component that was not mounted
35
+ https://svelte.dev/e/lifecycle_double_unmount`,Il,El):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function jg(){Pe?console.warn("%c[svelte] select_multiple_invalid_value\n%cThe `value` property of a `<select multiple>` element should be an array, but it received a non-array value. The selection will be kept as is.\nhttps://svelte.dev/e/select_multiple_invalid_value",Il,El):console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function vu(t){Pe?console.warn(`%c[svelte] state_proxy_equality_mismatch
36
+ %cReactive \`$state(...)\` proxies and the values they proxy have different identities. Because of this, comparisons with \`${t}\` will produce unexpected results
37
+ https://svelte.dev/e/state_proxy_equality_mismatch`,Il,El):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var tt=!1;function go(t){tt=t}var bt;function wi(t){if(t===null)throw Xs(),ps;return bt=t}function qi(){return wi(Go(bt))}function S(t){if(tt){if(Go(bt)!==null)throw Xs(),ps;bt=t}}function ai(t=1){if(tt){for(var e=t,i=bt;e--;)i=Go(i);bt=i}}function Ca(){for(var t=0,e=bt;;){if(e.nodeType===ur){var i=e.data;if(i===ba){if(t===0)return e;t-=1}else(i===Qs||i===Gs)&&(t+=1)}var o=Go(e);e.remove(),e=o}}function gu(t){if(!t||t.nodeType!==ur)throw Xs(),ps;return t.data}function Xg(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:r}=t;t.indexOf=function(s,l){let d=i.call(this,s,l);if(d===-1){for(let a=l!=null?l:0;a<this.length;a+=1)if(wl(this[a])===s){vu("array.indexOf(...)");break}}return d},t.lastIndexOf=function(s,l){let d=o.call(this,s,l!=null?l:this.length-1);if(d===-1){for(let a=0;a<=(l!=null?l:this.length-1);a+=1)if(wl(this[a])===s){vu("array.lastIndexOf(...)");break}}return d},t.includes=function(s,l){let d=r.call(this,s,l);if(!d){for(let a=0;a<this.length;a+=1)if(wl(this[a])===s){vu("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=r}}var Ta,Zg,Td,Jg,eh;function hu(){if(Ta===void 0){Ta=window,Zg=document,Td=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;Jg=Wo(e,"firstChild").get,eh=Wo(e,"nextSibling").get,Gp(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),Gp(i)&&(i.__t=void 0),Pe&&(t.__svelte_meta=null,Xg())}}function En(t=""){return document.createTextNode(t)}function Ci(t){return Jg.call(t)}function Go(t){return eh.call(t)}function T(t,e){if(!tt)return Ci(t);var i=Ci(bt);if(i===null)i=bt.appendChild(En());else if(e&&i.nodeType!==hl){var o=En();return i==null||i.before(o),wi(o),o}return wi(i),i}function ue(t,e){var r,s;if(!tt){var i=Ci(t);return i.nodeType===8&&i.data===""?Go(i):i}if(e&&((r=bt)==null?void 0:r.nodeType)!==hl){var o=En();return(s=bt)==null||s.before(o),wi(o),o}return bt}function P(t,e=1,i=!1){let o=tt?bt:t;for(var r;e--;)r=o,o=Go(o);if(!tt)return o;if(i&&(o==null?void 0:o.nodeType)!==hl){var s=En();return o===null?r==null||r.after(s):o.before(s),wi(s),s}return wi(o),o}function Id(t){t.textContent=""}function lf(t){_t===null&&Nt===null&&Mg(t),Nt!==null&&(Nt.f&256)!==0&&_t===null&&Lg(),Is&&Ag(t)}function F$(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function Ia(t,e,i,o=!0){var a;var r=_t;if(Pe)for(;r!==null&&(r.f&262144)!==0;)r=r.parent;var s={ctx:Wt,deps:null,nodes_start:null,nodes_end:null,f:t|2048,first:null,fn:e,last:null,next:null,parent:r,prev:null,teardown:null,transitions:null,wv:0};if(Pe&&(s.component_function=pr),i)try{Tl(s),s.f|=32768}catch(u){throw Ki(s),u}else e!==null&&Cd(s);var l=i&&s.deps===null&&s.first===null&&s.nodes_start===null&&s.teardown===null&&(s.f&1048704)===0;if(!l&&o&&(r!==null&&F$(s,r),Nt!==null&&(Nt.f&2)!==0)){var d=Nt;((a=d.effects)!=null?a:d.effects=[]).push(s)}return s}function Ao(t){let e=Ia(8,null,!1);return In(e,1024),e.teardown=t,e}function De(t){var r;lf("$effect");var e=_t!==null&&(_t.f&32)!==0&&Wt!==null&&!Wt.m;if(Pe&&mo(t,"name",{value:"$effect"}),e){var i=Wt;((r=i.e)!=null?r:i.e=[]).push({fn:t,effect:_t,reaction:Nt})}else{var o=Lo(t);return o}}function Pd(t){return lf("$effect.pre"),Pe&&mo(t,"name",{value:"$effect.pre"}),Yo(t)}function $u(t){let e=Ia(64,t,!0);return()=>{Ki(e)}}function ih(t){let e=Ia(64,t,!0);return(i={})=>new Promise(o=>{i.outro?Xn(e,()=>{Ki(e),o(void 0)}):(Ki(e),o(void 0))})}function Lo(t){return Ia(4,t,!1)}function Yo(t){return Ia(8,t,!0)}function D(t,e=[],i=Kr){if(Pe)return Yo(()=>{var r=_t,s=()=>t(...l.map(n));mo(r.fn,"name",{value:"{expression}"}),mo(s,"name",{value:"{expression}"});let l=e.map(i);Qi(s)});let o=e.map(i);return Qi(()=>t(...o.map(n)))}function Qi(t,e=0){return Ia(24|e,t,!0)}function Vi(t,e=!0){return Ia(40,t,!0,e)}function df(t){var e=t.teardown;if(e!==null){let i=Is,o=Nt;sf(!0),Wi(null);try{e.call(null)}finally{sf(i),Wi(o)}}}function cf(t,e=!1){var i=t.first;for(t.first=t.last=null;i!==null;){var o=i.next;(i.f&64)!==0?i.parent=null:Ki(i,e),i=o}}function oh(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&Ki(e),e=i}}function Ki(t,e=!0){var i=!1;(e||(t.f&524288)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(uf(t.nodes_start,t.nodes_end),i=!0),cf(t,e&&!i),Ad(t,0),In(t,16384);var o=t.transitions;if(o!==null)for(let s of o)s.stop();df(t);var r=t.parent;r!==null&&r.first!==null&&pf(t),Pe&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function uf(t,e){for(;t!==null;){var i=t===e?null:Go(t);t.remove(),t=i}}function pf(t){var e=t.parent,i=t.prev,o=t.next;i!==null&&(i.next=o),o!==null&&(o.prev=i),e!==null&&(e.first===t&&(e.first=o),e.last===t&&(e.last=i))}function Xn(t,e){var i=[];yu(t,i,!0),ff(i,()=>{Ki(t),e&&e()})}function ff(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var r of t)r.out(o)}else e()}function yu(t,e,i){if((t.f&8192)===0){if(t.f^=8192,t.transitions!==null)for(let l of t.transitions)(l.is_global||i)&&e.push(l);for(var o=t.first;o!==null;){var r=o.next,s=(o.f&65536)!==0||(o.f&32)!==0;yu(o,e,s?i:!1),o=r}}}function Ps(t){nh(t,!0)}function nh(t,e){if((t.f&8192)!==0){t.f^=8192;for(var i=t.first;i!==null;){var o=i.next,r=(i.f&65536)!==0||(i.f&32)!==0;nh(i,r?e:!1),i=o}if(t.transitions!==null)for(let s of t.transitions)(s.is_global||e)&&s.in()}}var Ld=[],mf=[];function rh(){var t=Ld;Ld=[],js(t)}function H$(){var t=mf;mf=[],js(t)}function kn(t){Ld.length===0&&queueMicrotask(rh),Ld.push(t)}function sh(){Ld.length>0&&rh(),mf.length>0&&H$()}function lh(t){var e=_t;if(Pe&&t instanceof Error&&U$(t,e),(e.f&32768)===0){if((e.f&128)===0)throw t;e.fn(t)}else Md(t,e)}function Md(t,e){for(;e!==null;){if((e.f&128)!==0)try{e.fn(t);return}catch(i){}e=e.parent}throw t}var ah=new WeakSet;function U$(t,e){var l,d;if(ah.has(t))return;ah.add(t);let i=Wo(t,"message");if(!(i&&!i.configurable)){for(var o=Td?" ":" ",r=`
38
+ ${o}in ${((l=e.fn)==null?void 0:l.name)||"<unknown>"}`,s=e.ctx;s!==null;)r+=`
39
+ ${o}in ${(d=s.function)==null?void 0:d[Qn].split("/").pop()}`,s=s.p;mo(t,"message",{value:t.message+`
40
+ ${r}
41
+ `}),t.stack&&mo(t,"stack",{value:t.stack.split(`
42
+ `).filter(a=>!a.includes("svelte/src/internal")).join(`
43
+ `)})}}var Ea=!1,kl=null,ka=!1,Is=!1;function sf(t){Is=t}var Vd=[],Rd=[],Nt=null,vr=!1;function Wi(t){Nt=t}var _t=null;function vo(t){_t=t}var Qo=null;function mu(t){Nt!==null&&Nt.f&2097152&&(Qo===null?Qo=[Nt,[t]]:Qo[1].push(t))}var Pn=null,gr=0,mr=null;function qg(t){mr=t}var uh=1,wu=0,Es=!1,Su=null;function wd(){return++uh}function Sa(t){var p,m;var e=t.f;if((e&2048)!==0)return!0;if((e&4096)!==0){var i=t.deps,o=(e&256)!==0;if(i!==null){var r,s,l=(e&512)!==0,d=o&&_t!==null&&!Es,a=i.length;if(l||d){var u=t,f=u.parent;for(r=0;r<a;r++)s=i[r],(l||!((p=s==null?void 0:s.reactions)!=null&&p.includes(u)))&&((m=s.reactions)!=null?m:s.reactions=[]).push(u);l&&(u.f^=512),d&&f!==null&&(f.f&256)===0&&(u.f^=256)}for(r=0;r<a;r++)if(s=i[r],Sa(s)&&rf(s),s.wv>t.wv)return!0}(!o||_t!==null&&!Es)&&In(t,1024)}return!1}function ph(t,e,i=!0){var o=t.reactions;if(o!==null)for(var r=0;r<o.length;r++){var s=o[r];Qo!=null&&Qo[1].includes(t)&&Qo[0]===Nt||((s.f&2)!==0?ph(s,e,!1):e===s&&(i?In(s,2048):(s.f&1024)!==0&&In(s,4096),Cd(s)))}}function fu(t){var $,y;var e=Pn,i=gr,o=mr,r=Nt,s=Es,l=Qo,d=Wt,a=vr,u=t.f;Pn=null,gr=0,mr=null,Es=(u&256)!==0&&(vr||!ka||Nt===null),Nt=(u&96)===0?t:null,Qo=null,$d(t.ctx),vr=!1,wu++,t.f|=2097152;try{var f=(0,t.fn)(),p=t.deps;if(Pn!==null){var m;if(Ad(t,gr),p!==null&&gr>0)for(p.length=gr+Pn.length,m=0;m<Pn.length;m++)p[gr+m]=Pn[m];else t.deps=p=Pn;if(!Es||(u&2)!==0&&t.reactions!==null)for(m=gr;m<p.length;m++)((y=($=p[m]).reactions)!=null?y:$.reactions=[]).push(t)}else p!==null&&gr<p.length&&(Ad(t,gr),p.length=gr);if(vs()&&mr!==null&&!vr&&p!==null&&(t.f&6146)===0)for(m=0;m<mr.length;m++)ph(mr[m],t);return r!==null&&r!==t&&(wu++,mr!==null&&(o===null?o=mr:o.push(...mr))),f}catch(_){lh(_)}finally{Pn=e,gr=i,mr=o,Nt=r,Es=s,Qo=l,$d(d),vr=a,t.f^=2097152}}function z$(t,e){let i=e.reactions;if(i!==null){var o=Cg.call(i,t);if(o!==-1){var r=i.length-1;r===0?i=e.reactions=null:(i[o]=i[r],i.pop())}}i===null&&(e.f&2)!==0&&(Pn===null||!Pn.includes(e))&&(In(e,4096),(e.f&768)===0&&(e.f^=512),pu(e),Ad(e,0))}function Ad(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)z$(t,i[o])}function Tl(t){var e=t.f;if((e&16384)===0){In(t,1024);var i=_t,o=ka;if(_t=t,ka=!0,Pe){var r=pr;yd(t.component_function)}try{(e&16)!==0?oh(t):cf(t),df(t);var s=fu(t);if(t.teardown=typeof s=="function"?s:null,t.wv=uh,Pe&&ms&&(t.f&2048)!==0&&t.deps!==null)for(var l of t.deps)l.set_during_effect&&(l.wv=wd(),l.set_during_effect=!1);Pe&&Rd.push(t)}finally{ka=o,_t=i,Pe&&yd(r)}}}function dh(){console.error("Last ten effects were: ",Rd.slice(-10).map(t=>t.fn)),Rd=[]}function W$(){try{Vg()}catch(t){if(Pe&&mo(t,"stack",{value:""}),kl!==null)if(Pe)try{Md(t,kl)}catch(e){throw dh(),e}else Md(t,kl);else throw Pe&&dh(),t}}function gf(){var t=ka;try{var e=0;for(ka=!0;Vd.length>0;){e++>1e3&&W$();var i=Vd,o=i.length;Vd=[];for(var r=0;r<o;r++){var s=q$(i[r]);K$(s)}Sl.clear()}}finally{Ea=!1,ka=t,kl=null,Pe&&(Rd=[])}}function K$(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];(o.f&24576)===0&&Sa(o)&&(Tl(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?pf(o):o.fn=null))}}function Cd(t){Ea||(Ea=!0,queueMicrotask(gf));for(var e=kl=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}Vd.push(e)}function q$(t){for(var e=[],i=t;i!==null;){var o=i.f,r=(o&96)!==0,s=r&&(o&1024)!==0;if(!s&&(o&8192)===0){(o&4)!==0?e.push(i):r?i.f^=1024:Sa(i)&&Tl(i);var l=i.first;if(l!==null){i=l;continue}}var d=i.parent;for(i=i.next;i===null&&d!==null;)i=d.next,d=d.parent}return e}function Pl(t){var e;for(t&&(Ea=!0,gf(),Ea=!0,e=t());;){if(sh(),Vd.length===0)return Ea=!1,kl=null,Pe&&(Rd=[]),e;Ea=!0,gf()}}async function ho(){await Promise.resolve(),Pl()}function n(t){var e=t.f,i=(e&2)!==0;if(Su!==null&&Su.add(t),Nt!==null&&!vr){if(!(Qo!=null&&Qo[1].includes(t))||Qo[0]!==Nt){var o=Nt.deps;t.rv<wu&&(t.rv=wu,Pn===null&&o!==null&&o[gr]===t?gr++:Pn===null?Pn=[t]:(!Es||!Pn.includes(t))&&Pn.push(t))}}else if(i&&t.deps===null&&t.effects===null){var r=t,s=r.parent;s!==null&&(s.f&256)===0&&(r.f^=256)}if(i&&(r=t,Sa(r)&&rf(r)),Pe&&ms&&!vr&&bd!==null&&Nt!==null&&bd.reaction===Nt)if(t.trace)t.trace();else{var l=Ts("TracedAt");if(l){var d=bd.entries.get(t);d===void 0&&(d={traces:[]},bd.entries.set(t,d));var a=d.traces[d.traces.length-1];l.stack!==(a==null?void 0:a.stack)&&d.traces.push(l)}}return Is&&Sl.has(t)?Sl.get(t):t.v}function Tt(t){var e=vr;try{return vr=!0,t()}finally{vr=e}}var Q$=-7169;function In(t,e){t.f=t.f&Q$|e}function Tu(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Ko in t)Cu(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Ko in i&&Cu(i)}}}function Cu(t,e=new Set){if(typeof t=="object"&&t!==null&&!(t instanceof EventTarget)&&!e.has(t)){e.add(t),t instanceof Date&&t.getTime();for(let o in t)try{Cu(t[o],e)}catch(r){}let i=$a(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=au(i);for(let r in o){let s=o[r].get;if(s)try{s.call(t)}catch(l){}}}}}function hf(t,e){if(e){let i=document.body;t.autofocus=!0,kn(()=>{document.activeElement===i&&t.focus()})}}function Nd(t){var e=Nt,i=_t;Wi(null),vo(null);try{return t()}finally{Wi(e),vo(i)}}var _f=new Set,Iu=new Set;function Pa(t){if(!tt)return;t.removeAttribute("onload"),t.removeAttribute("onerror");let e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function bf(t,e,i,o={}){function r(s){if(o.capture||Al.call(e,s),!s.cancelBubble)return Nd(()=>i==null?void 0:i.call(this,s))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?kn(()=>{e.addEventListener(t,r,o)}):e.addEventListener(t,r,o),r}function dt(t,e,i,o,r){var s={capture:o,passive:r},l=bf(t,e,i,s);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Ao(()=>{e.removeEventListener(t,l,s)})}function Ye(t){for(var e=0;e<t.length;e++)_f.add(t[e]);for(var i of Iu)i(t)}function Al(t){var C;var e=this,i=e.ownerDocument,o=t.type,r=((C=t.composedPath)==null?void 0:C.call(t))||[],s=r[0]||t.target,l=0,d=t.__root;if(d){var a=r.indexOf(d);if(a!==-1&&(e===document||e===window)){t.__root=e;return}var u=r.indexOf(e);if(u===-1)return;a<=u&&(l=a)}if(s=r[l]||t.target,s!==e){mo(t,"currentTarget",{configurable:!0,get(){return s||i}});var f=Nt,p=_t;Wi(null),vo(null);try{for(var m,$=[];s!==null;){var y=s.assignedSlot||s.parentNode||s.host||null;try{var _=s["__"+o];if(_!=null&&(!s.disabled||t.target===s))if(cr(_)){var[x,...I]=_;x.apply(s,[t,...I])}else _.call(s,t)}catch(R){m?$.push(R):m=R}if(t.cancelBubble||y===e||y===null)break;s=y}if(m){for(let R of $)queueMicrotask(()=>{throw R});throw m}}finally{t.__root=e,delete t.currentTarget,Wi(f),vo(p)}}}var Y$;function fh(){Y$=void 0}function Ll(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function Mo(t,e){var i=_t;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function L(t,e){var i=(e&1)!==0,o=(e&2)!==0,r,s=!t.startsWith("<!>");return()=>{if(tt)return Mo(bt,null),bt;r===void 0&&(r=Ll(s?t:"<!>"+t),i||(r=Ci(r)));var l=o||Td?document.importNode(r,!0):r.cloneNode(!0);if(i){var d=Ci(l),a=l.lastChild;Mo(d,a)}else Mo(l,l);return l}}function Z$(t,e,i="svg"){var o=!t.startsWith("<!>"),r=(e&1)!==0,s=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(tt)return Mo(bt,null),bt;if(!l){var d=Ll(s),a=Ci(d);if(r)for(l=document.createDocumentFragment();Ci(a);)l.appendChild(Ci(a));else l=Ci(a)}var u=l.cloneNode(!0);if(r){var f=Ci(u),p=u.lastChild;Mo(f,p)}else Mo(u,u);return u}}function Ie(t,e){return Z$(t,e,"svg")}function hs(t=""){if(!tt){var e=En(t+"");return Mo(e,e),e}var i=bt;return i.nodeType!==hl&&(i.before(i=En()),wi(i)),Mo(i,i),i}function Ae(){if(tt)return Mo(bt,null),bt;var t=document.createDocumentFragment(),e=document.createComment(""),i=En();return t.append(e,i),Mo(e,i),t}function b(t,e){if(tt){_t.nodes_end=bt,qi();return}t!==null&&t.before(e)}var J$=/\r/g;function vh(t){t=t.replace(J$,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function gh(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var e1=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function hh(t){return e1.includes(t)}var t1=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","webkitdirectory","defer","disablepictureinpicture","disableremoteplayback"];var i1={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function _h(t){var e;return t=t.toLowerCase(),(e=i1[t])!=null?e:t}var fk=[...t1,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var o1=["touchstart","touchmove"];function bh(t){return o1.includes(t)}var n1=["$state","$state.raw","$derived","$derived.by"],mk=[...n1,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var r1=["textarea","script","style","title"];function $h(t){return r1.includes(t)}function Eu(t){return t==null?void 0:t.replace(/\//g,"/​")}var Dd=!0;function ku(t){Dd=t}function ve(t,e){var o;var i=e==null?"":typeof e=="object"?e+"":e;i!==((o=t.__t)!=null?o:t.__t=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function Gr(t,e){return yh(t,e)}function yf(t,e){var l;hu(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=tt,r=bt;try{for(var s=Ci(i);s&&(s.nodeType!==ur||s.data!==Qs);)s=Go(s);if(!s)throw ps;go(!0),wi(s),qi();let d=yh(t,{...e,anchor:s});if(bt===null||bt.nodeType!==ur||bt.data!==ba)throw Xs(),ps;return go(!1),d}catch(d){if(d===ps)return e.recover===!1&&Rg(),hu(),Id(i),go(!1),Gr(t,e);throw d}finally{go(o),wi(r),fh()}}var Ml=new Map;function yh(t,{target:e,anchor:i,props:o={},events:r,context:s,intro:l=!0}){hu();var d=new Set,a=p=>{for(var m=0;m<p.length;m++){var $=p[m];if(!d.has($)){d.add($);var y=bh($);e.addEventListener($,Al,{passive:y});var _=Ml.get($);_===void 0?(document.addEventListener($,Al,{passive:y}),Ml.set($,1)):Ml.set($,_+1)}}};a(_d(_f)),Iu.add(a);var u=void 0,f=ih(()=>{var p=i!=null?i:e.appendChild(En());return Vi(()=>{if(s){B({});var m=Wt;m.c=s}r&&(o.$$events=r),tt&&Mo(p,null),Dd=l,u=t(p,o)||{},Dd=!0,tt&&(_t.nodes_end=bt),s&&F()}),()=>{var y;for(var m of d){e.removeEventListener(m,Al);var $=Ml.get(m);--$===0?(document.removeEventListener(m,Al),Ml.delete(m)):Ml.set(m,$)}Iu.delete(a),p!==i&&((y=p.parentNode)==null||y.removeChild(p))}});return $f.set(u,f),u}var $f=new WeakMap;function Aa(t,e){let i=$f.get(t);return i?($f.delete(t),i(e)):(Pe&&Yg(),Promise.resolve())}function ii(t,e,...i){var o=t,r=vt,s;Qi(()=>{r!==(r=e())&&(s&&(Ki(s),s=null),Pe&&r==null&&Ng(),s=Vi(()=>r(o,...i)))},65536),tt&&(o=bt)}if(Pe){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;Bg(e)},set:o=>{i=o}})}};d1=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var d1;function Vt(t){Wt===null&&$l("onMount"),fs&&Wt.l!==null?l1(Wt).m.push(t):De(()=>{let e=Tt(t);if(typeof e=="function")return e})}function dn(t){Wt===null&&$l("onDestroy"),Vt(()=>()=>Tt(t))}function l1(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}var xh=new Map;function wh(t,e){var i=xh.get(t);i||(i=new Set,xh.set(t,i)),i.add(e)}function V(t,e,[i,o]=[0,0]){tt&&i===0&&qi();var r=t,s=null,l=null,d=eo,a=i>0?65536:0,u=!1;let f=(m,$=!0)=>{u=!0,p($,m)},p=(m,$)=>{if(d===(d=m))return;let y=!1;if(tt&&o!==-1){if(i===0){let x=gu(r);x===Qs?o=0:x===Gs?o=1/0:(o=parseInt(x.substring(1)),o!==o&&(o=d?1/0:-1))}let _=o>i;!!d===_&&(r=Ca(),wi(r),go(!1),y=!0,o=-1)}d?(s?Ps(s):$&&(s=Vi(()=>$(r))),l&&Xn(l,()=>{l=null})):(l?Ps(l):$&&(l=Vi(()=>$(r,[i+1,o]))),s&&Xn(s,()=>{s=null})),y&&go(!0)};Qi(()=>{u=!1,e(f),u||p(null,null)},a),tt&&(r=bt)}function As(t,e,i){tt&&qi();var o=t,r=eo,s,l=vs()?kg:_l;Qi(()=>{l(r,r=e())&&(s&&Xn(s),s=Vi(()=>i(o)))}),tt&&(o=bt)}var Js=null;function Sf(t){Js=t}function Od(t,e){return e}function p1(t,e,i,o){for(var r=[],s=e.length,l=0;l<s;l++)yu(e[l].e,r,!0);var d=s>0&&r.length===0&&i!==null;if(d){var a=i.parentNode;Id(a),a.append(i),o.clear(),Zs(t,e[0].prev,e[s-1].next)}ff(r,()=>{for(var u=0;u<s;u++){var f=e[u];d||(o.delete(f.k),Zs(t,f.prev,f.next)),Ki(f.e,!d)}})}function bi(t,e,i,o,r,s=null){var l=t,d={flags:e,items:new Map,first:null},a=(e&4)!==0;if(a){var u=t;l=tt?wi(Ci(u)):u.appendChild(En())}tt&&qi();var f=null,p=!1,m=Tn(()=>{var $=i();return cr($)?$:$==null?[]:_d($)});Qi(()=>{var $=n(m),y=$.length;if(p&&y===0)return;p=y===0;let _=!1;if(tt){var x=gu(l)===Gs;x!==(y===0)&&(l=Ca(),wi(l),go(!1),_=!0)}if(tt){for(var I=null,C,R=0;R<y;R++){if(bt.nodeType===ur&&bt.data===ba){l=bt,_=!0,go(!1);break}var A=$[R],E=o(A,R);C=Th(bt,d,I,null,A,E,R,r,e,i),d.items.set(E,C),I=C}y>0&&wi(Ca())}tt||f1($,d,l,r,e,o,i),s!==null&&(y===0?f?Ps(f):f=Vi(()=>s(l)):f!==null&&Xn(f,()=>{f=null})),_&&go(!0),n(m)}),tt&&(l=bt)}function f1(t,e,i,o,r,s,l){var J,Ce,me,ee;var d=(r&8)!==0,a=(r&3)!==0,u=t.length,f=e.items,p=e.first,m=p,$,y=null,_,x=[],I=[],C,R,A,E;if(d)for(E=0;E<u;E+=1)C=t[E],R=s(C,E),A=f.get(R),A!==void 0&&((J=A.a)==null||J.measure(),(_!=null?_:_=new Set).add(A));for(E=0;E<u;E+=1){if(C=t[E],R=s(C,E),A=f.get(R),A===void 0){var k=m?m.e.nodes_start:i;y=Th(k,e,y,y===null?e.first:y.next,C,R,E,o,r,l),f.set(R,y),x=[],I=[],m=y.next;continue}if(a&&m1(A,C,E,r),(A.e.f&8192)!==0&&(Ps(A.e),d&&((Ce=A.a)==null||Ce.unfix(),(_!=null?_:_=new Set).delete(A))),A!==m){if($!==void 0&&$.has(A)){if(x.length<I.length){var Q=I[0],H;y=Q.prev;var z=x[0],X=x[x.length-1];for(H=0;H<x.length;H+=1)Sh(x[H],Q,i);for(H=0;H<I.length;H+=1)$.delete(I[H]);Zs(e,z.prev,X.next),Zs(e,y,z),Zs(e,X,Q),m=Q,y=X,E-=1,x=[],I=[]}else $.delete(A),Sh(A,m,i),Zs(e,A.prev,A.next),Zs(e,A,y===null?e.first:y.next),Zs(e,y,A),y=A;continue}for(x=[],I=[];m!==null&&m.k!==R;)(m.e.f&8192)===0&&($!=null?$:$=new Set).add(m),I.push(m),m=m.next;if(m===null)continue;A=m}x.push(A),y=A,m=A.next}if(m!==null||$!==void 0){for(var se=$===void 0?[]:_d($);m!==null;)(m.e.f&8192)===0&&se.push(m),m=m.next;var Z=se.length;if(Z>0){var oe=(r&4)!==0&&u===0?i:null;if(d){for(E=0;E<Z;E+=1)(me=se[E].a)==null||me.measure();for(E=0;E<Z;E+=1)(ee=se[E].a)==null||ee.fix()}p1(e,se,oe,f)}}d&&kn(()=>{var _e;if(_!==void 0)for(A of _)(_e=A.a)==null||_e.apply()}),_t.first=e.first&&e.first.e,_t.last=y&&y.e}function m1(t,e,i,o){(o&1)!==0&&Cl(t.v,e),(o&2)!==0?Cl(t.i,i):t.i=i}function Th(t,e,i,o,r,s,l,d,a,u){var f=Js,p=(a&1)!==0,m=(a&16)===0,$=p?m?gs(r,!1,!1):kr(r):r,y=(a&2)===0?l:kr(l);Pe&&p&&($.trace=()=>{var x=typeof y=="number"?l:y.v;u()[x]});var _={i:y,v:$,k:s,a:null,e:null,prev:i,next:o};Js=_;try{return _.e=Vi(()=>d(t,$,y,u),tt),_.e.prev=i&&i.e,_.e.next=o&&o.e,i===null?e.first=_:(i.next=_,i.e.next=_.e),o!==null&&(o.prev=_,o.e.prev=_.e),_}finally{Js=f}}function Sh(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,r=e?e.e.nodes_start:i,s=t.e.nodes_start;s!==o;){var l=Go(s);r.before(s),s=l}}function Zs(t,e,i){e===null?t.first=i:(e.next=i,e.e.next=i&&i.e),i!==null&&(i.prev=e,i.e.prev=e&&e.e)}function v1(t,e,i){var s,l;if(!e||e===vh(String(i!=null?i:"")))return;let o,r=(s=t.__svelte_meta)==null?void 0:s.loc;r?o=`near ${r.file}:${r.line}:${r.column}`:(l=pr)!=null&&l[Qn]&&(o=`in ${pr[Qn]}`),Gg(Eu(o))}function Bd(t,e,i=!1,o=!1,r=!1){var s=t,l="";D(()=>{var $;var d=_t;if(l===(l=($=e())!=null?$:"")){tt&&qi();return}if(d.nodes_start!==null&&(uf(d.nodes_start,d.nodes_end),d.nodes_start=d.nodes_end=null),l!==""){if(tt){for(var a=bt.data,u=qi(),f=u;u!==null&&(u.nodeType!==ur||u.data!=="");)f=u,u=Go(u);if(u===null)throw Xs(),ps;Pe&&!r&&v1(u.parentNode,a,l),Mo(bt,f),s=wi(u);return}var p=l+"";i?p=`<svg>${p}</svg>`:o&&(p=`<math>${p}</math>`);var m=Ll(p);if((i||o)&&(m=Ci(m)),Mo(Ci(m),m.lastChild),i||o)for(;Ci(m);)s.before(Ci(m));else s.before(m)}})}function Ri(t,e,i){tt&&qi();var o=t,r,s;Qi(()=>{r!==(r=e())&&(s&&(Xn(s),s=null),r&&(s=Vi(()=>i(o,r))))},65536),tt&&(o=bt)}function La(t,e,i,o,r,s){var y;let l=tt;tt&&qi();var d=Pe&&s&&((y=Wt)==null?void 0:y.function[Qn]),a,u,f=null;tt&&bt.nodeType===du&&(f=bt,qi());var p=tt?bt:t,m,$=Js;Qi(()=>{let _=e()||null;var x=r?r():i||_==="svg"?ru:null;if(_!==a){var I=Js;Sf($),m&&(_===null?Xn(m,()=>{m=null,u=null}):_===u?Ps(m):(Ki(m),ku(!1))),_&&_!==u&&(m=Vi(()=>{if(f=tt?f:x?document.createElementNS(x,_):document.createElement(_),Pe&&s&&(f.__svelte_meta={loc:{file:d,line:s[0],column:s[1]}}),Mo(f,f),o){tt&&$h(_)&&f.append(document.createComment(""));var C=tt?Ci(f):f.appendChild(En());tt&&(C===null?go(!1):wi(C)),o(f,C)}_t.nodes_end=f,p.before(f)})),a=_,a&&(u=a),ku(!0),Sf(I)}},65536),l&&(go(!0),wi(p))}var Tf;function Ih(t){return Tf=t.target,new Cf(t)}var Ls,Pr,Cf=class{constructor(e){qs(this,Ls);qs(this,Pr);var s,l;var i=new Map,o=(d,a)=>{var u=gs(a,!1,!1);return i.set(d,u),u};let r=new Proxy({...e.props||{},$$events:{}},{get(d,a){var u;return n((u=i.get(a))!=null?u:o(a,Reflect.get(d,a)))},has(d,a){var u;return a===gl?!0:(n((u=i.get(a))!=null?u:o(a,Reflect.get(d,a))),Reflect.has(d,a))},set(d,a,u){var f;return N((f=i.get(a))!=null?f:o(a,u),u),Reflect.set(d,a,u)}});vl(this,Pr,(e.hydrate?yf:Gr)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:(s=e.intro)!=null?s:!1,recover:e.recover})),(!((l=e==null?void 0:e.props)!=null&&l.$$host)||e.sync===!1)&&Pl(),vl(this,Ls,r.$$events);for(let d of Object.keys(Mi(this,Pr)))d==="$set"||d==="$destroy"||d==="$on"||mo(this,d,{get(){return Mi(this,Pr)[d]},set(a){Mi(this,Pr)[d]=a},enumerable:!0});Mi(this,Pr).$set=d=>{Object.assign(r,d)},Mi(this,Pr).$destroy=()=>{Aa(Mi(this,Pr))}}$set(e){Mi(this,Pr).$set(e)}$on(e,i){Mi(this,Ls)[e]=Mi(this,Ls)[e]||[];let o=(...r)=>i.call(this,...r);return Mi(this,Ls)[e].push(o),()=>{Mi(this,Ls)[e]=Mi(this,Ls)[e].filter(r=>r!==o)}}$destroy(){Mi(this,Pr).$destroy()}};Ls=new WeakMap,Pr=new WeakMap;function G(t,e){kn(()=>{var r,s,l;var i=t.getRootNode(),o=i.host?i:(l=(r=i.head)!=null?r:i.ownerDocument.head)!=null?l:(s=Tf)==null?void 0:s.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),Pe&&wh(e.hash,d)}})}function Ms(t,e){var i=void 0,o;Qi(()=>{i!==(i=e())&&(o&&(Ki(o),o=null),i&&(o=Vi(()=>{Lo(()=>i(t))})))})}function Eh(t){var e,i,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var r=t.length;for(e=0;e<r;e++)t[e]&&(i=Eh(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function kh(){for(var t,e,i=0,o="",r=arguments.length;i<r;i++)(t=arguments[i])&&(e=Eh(t))&&(o&&(o+=" "),o+=e);return o}function Fd(t){return typeof t=="object"?kh(t):t!=null?t:""}var Ph=[...`
44
+ \r\f \v\uFEFF`];function Lh(t,e,i){var o=t==null?"":""+t;if(e&&(o=o?o+" "+e:e),i){for(var r in i)if(i[r])o=o?o+" "+r:r;else if(o.length)for(var s=r.length,l=0;(l=o.indexOf(r,l))>=0;){var d=l+s;(l===0||Ph.includes(o[l-1]))&&(d===o.length||Ph.includes(o[d]))?o=(l===0?"":o.substring(0,l))+o.substring(d+1):l=d}}return o===""?null:o}function Ah(t,e=!1){var i=e?" !important;":";",o="";for(var r in t){var s=t[r];s!=null&&s!==""&&(o+=" "+r+": "+s+i)}return o}function If(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Mh(t,e){if(e){var i="",o,r;if(Array.isArray(e)?(o=e[0],r=e[1]):o=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var s=!1,l=0,d=!1,a=[];o&&a.push(...Object.keys(o).map(If)),r&&a.push(...Object.keys(r).map(If));var u=0,f=-1;let _=t.length;for(var p=0;p<_;p++){var m=t[p];if(d?m==="/"&&t[p-1]==="*"&&(d=!1):s?s===m&&(s=!1):m==="/"&&t[p+1]==="*"?d=!0:m==='"'||m==="'"?s=m:m==="("?l++:m===")"&&l--,!d&&s===!1&&l===0){if(m===":"&&f===-1)f=p;else if(m===";"||p===_-1){if(f!==-1){var $=If(t.substring(u,f).trim());if(!a.includes($)){m!==";"&&p++;var y=t.substring(u,p).trim();i+=" "+y+";"}}u=p+1,f=-1}}}}return o&&(i+=Ah(o)),r&&(i+=Ah(r,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function re(t,e,i,o,r,s){var l=t.__className;if(tt||l!==i||l===void 0){var d=Lh(i,o,s);(!tt||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(s&&r!==s)for(var a in s){var u=!!s[a];(r==null||u!==!!r[a])&&t.classList.toggle(a,u)}return s}function Ef(t,e={},i,o){for(var r in i){var s=i[r];e[r]!==s&&(i[r]==null?t.style.removeProperty(r):t.style.setProperty(r,s,o))}}function We(t,e,i,o){var r=t.__style;if(tt||r!==e){var s=Mh(e,o);(!tt||s!==t.getAttribute("style"))&&(s==null?t.removeAttribute("style"):t.style.cssText=s),t.__style=e}else o&&(Array.isArray(o)?(Ef(t,i==null?void 0:i[0],o[0]),Ef(t,i==null?void 0:i[1],o[1],"important")):Ef(t,i,o));return o}function Hd(t,e,i){if(t.multiple){if(e==null)return;if(!cr(e))return jg();for(var o of t.options)o.selected=e.includes(Vh(o));return}for(o of t.options){var r=Vh(o);if(Jp(r,e)){o.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function kf(t){var e=new MutationObserver(()=>{Hd(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Ao(()=>{e.disconnect()})}function Vh(t){return"__value"in t?t.__value:t.value}var Vl=Symbol("class"),Rl=Symbol("style"),Dh=Symbol("is custom element"),Oh=Symbol("is html");function Bh(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Me(t,e,i,o){var r=Hh(t);if(tt&&(r[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||w1(t,e,i!=null?i:"");return}r[e]!==(r[e]=i)&&(e==="loading"&&(t[Eg]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Uh(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Fh(t,e,i,o,r=!1){var A;var s=Hh(t),l=s[Dh],d=!s[Oh];let a=tt&&l;a&&go(!1);var u=e||{},f=t.tagName==="OPTION";for(var p in e)p in i||(i[p]=null);i.class?i.class=Fd(i.class):(o||i[Vl])&&(i.class=null),i[Rl]&&((A=i.style)!=null||(i.style=null));var m=Uh(t);for(let E in i){let k=i[E];if(f&&E==="value"&&k==null){t.value=t.__value="",u[E]=k;continue}if(E==="class"){var $=t.namespaceURI==="http://www.w3.org/1999/xhtml";re(t,$,k,o,e==null?void 0:e[Vl],i[Vl]),u[E]=k,u[Vl]=i[Vl];continue}if(E==="style"){We(t,k,e==null?void 0:e[Rl],i[Rl]),u[E]=k,u[Rl]=i[Rl];continue}var y=u[E];if(!(k===y&&!(k===void 0&&t.hasAttribute(E)))){u[E]=k;var _=E[0]+E[1];if(_!=="$$")if(_==="on"){let Q={},H="$$"+E,z=E.slice(2);var x=hh(z);if(gh(z)&&(z=z.slice(0,-7),Q.capture=!0),!x&&y){if(k!=null)continue;t.removeEventListener(z,u[H],Q),u[H]=null}if(k!=null)if(x)t[`__${z}`]=k,Ye([z]);else{let X=function(se){u[E].call(this,se)};var R=X;u[H]=bf(z,t,X,Q)}else x&&(t[`__${z}`]=void 0)}else if(E==="style")Me(t,E,k);else if(E==="autofocus")hf(t,!!k);else if(!l&&(E==="__value"||E==="value"&&k!=null))t.value=t.__value=k;else if(E==="selected"&&f)Bh(t,k);else{var I=E;d||(I=_h(I));var C=I==="defaultValue"||I==="defaultChecked";if(k==null&&!l&&!C)if(s[E]=null,I==="value"||I==="checked"){let Q=t,H=e===void 0;if(I==="value"){let z=Q.defaultValue;Q.removeAttribute(I),Q.defaultValue=z,Q.value=Q.__value=H?z:null}else{let z=Q.defaultChecked;Q.removeAttribute(I),Q.defaultChecked=z,Q.checked=H?z:!1}}else t.removeAttribute(E);else C||m.includes(I)&&(l||typeof k!="string")?t[I]=k:typeof k!="function"&&Me(t,I,k,r)}}}return a&&go(!0),u}function to(t,e,i=[],o,r=!1,s=Kr){let l=i.map(s);var d=void 0,a={},u=t.nodeName==="SELECT",f=!1;if(Qi(()=>{var m=e(...l.map(n)),$=Fh(t,d,m,o,r);f&&u&&"value"in m&&Hd(t,m.value,!1);for(let _ of Object.getOwnPropertySymbols(a))m[_]||Ki(a[_]);for(let _ of Object.getOwnPropertySymbols(m)){var y=m[_];_.description===Kp&&(!d||y!==d[_])&&(a[_]&&Ki(a[_]),a[_]=Vi(()=>Ms(t,()=>y))),$[_]=y}d=$}),u){var p=t;Lo(()=>{Hd(p,d.value),kf(p)})}f=!0}function Hh(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[Dh]:t.nodeName.includes("-"),[Oh]:t.namespaceURI===yg}}var Rh=new Map;function Uh(t){var e=Rh.get(t.nodeName);if(e)return e;Rh.set(t.nodeName,e=[]);for(var i,o=t,r=Element.prototype;r!==o;){i=au(o);for(var s in i)i[s].set&&e.push(s);o=$a(o)}return e}function w1(t,e,i){var o;Pe&&(e==="srcset"&&S1(t,i)||Pf((o=t.getAttribute(e))!=null?o:"",i)||Qg(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function Pf(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function Nh(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function S1(t,e){var i=Nh(t.srcset),o=Nh(e);return o.length===i.length&&o.every(([r,s],l)=>s===i[l][1]&&(Pf(i[l][0],r)||Pf(r,i[l][0])))}var C1=su?()=>performance.now():()=>Date.now(),Yr={tick:t=>(su?requestAnimationFrame:vt)(t),now:()=>C1(),tasks:new Set};function zh(){let t=Yr.now();Yr.tasks.forEach(e=>{e.c(t)||(Yr.tasks.delete(e),e.f())}),Yr.tasks.size!==0&&Yr.tick(zh)}function Wh(t){let e;return Yr.tasks.size===0&&Yr.tick(zh),{promise:new Promise(i=>{Yr.tasks.add(e={c:t,f:i})}),abort(){Yr.tasks.delete(e)}}}function Pu(t,e){Nd(()=>{t.dispatchEvent(new CustomEvent(e))})}function k1(t){if(t==="float")return"cssFloat";if(t==="offset")return"cssOffset";if(t.startsWith("--"))return t;let e=t.split("-");return e.length===1?e[0]:e[0]+e.slice(1).map(i=>i[0].toUpperCase()+i.slice(1)).join("")}function Kh(t){let e={},i=t.split(";");for(let o of i){let[r,s]=o.split(":");if(!r||s===void 0)break;let l=k1(r.trim());e[l]=s.trim()}return e}var P1=t=>t;function jr(t,e,i,o){var R;var r=(t&1)!==0,s=(t&2)!==0,l=r&&s,d=(t&4)!==0,a=l?"both":r?"in":"out",u,f=e.inert,p=e.style.overflow,m,$;function y(){var k;var A=Nt,E=_t;Wi(null),vo(null);try{return u!=null?u:u=i()(e,(k=o==null?void 0:o())!=null?k:{},{direction:a})}finally{Wi(A),vo(E)}}var _={is_global:d,in(){var A;if(e.inert=f,!r){$==null||$.abort(),(A=$==null?void 0:$.reset)==null||A.call($);return}s||m==null||m.abort(),Pu(e,"introstart"),m=Af(e,y(),$,1,()=>{Pu(e,"introend"),m==null||m.abort(),m=u=void 0,e.style.overflow=p})},out(A){if(!s){A==null||A(),u=void 0;return}e.inert=!0,Pu(e,"outrostart"),$=Af(e,y(),m,0,()=>{Pu(e,"outroend"),A==null||A()})},stop:()=>{m==null||m.abort(),$==null||$.abort()}},x=_t;if(((R=x.transitions)!=null?R:x.transitions=[]).push(_),r&&Dd){var I=d;if(!I){for(var C=x.parent;C&&(C.f&65536)!==0;)for(;(C=C.parent)&&(C.f&16)===0;);I=!C||(C.f&32768)!==0}I&&Lo(()=>{Tt(()=>_.in())})}}function Af(t,e,i,o,r){var s=o===1;if(Ys(e)){var l,d=!1;return kn(()=>{if(!d){var x=e({direction:s?"in":"out"});l=Af(t,x,i,o,r)}}),{abort:()=>{d=!0,l==null||l.abort()},deactivate:()=>l.deactivate(),reset:()=>l.reset(),t:()=>l.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return r(),{abort:vt,deactivate:vt,reset:vt,t:()=>o};let{delay:a=0,css:u,tick:f,easing:p=P1}=e;var m=[];if(s&&i===void 0&&(f&&f(0,1),u)){var $=Kh(u(0,1));m.push($,$)}var y=()=>1-o,_=t.animate(m,{duration:a,fill:"forwards"});return _.onfinish=()=>{var z;_.cancel();var x=(z=i==null?void 0:i.t())!=null?z:1-o;i==null||i.abort();var I=o-x,C=e.duration*Math.abs(I),R=[];if(C>0){var A=!1;if(u)for(var E=Math.ceil(C/16.666666666666668),k=0;k<=E;k+=1){var Q=x+I*p(k/E),H=Kh(u(Q,1-Q));R.push(H),A||(A=H.overflow==="hidden")}A&&(t.style.overflow="hidden"),y=()=>{var X=_.currentTime;return x+I*p(X/C)},f&&Wh(()=>{if(_.playState!=="running")return!1;var X=y();return f(X,1-X),!0})}_=t.animate(R,{duration:C,fill:"forwards"}),_.onfinish=()=>{y=()=>o,f==null||f(o,1-o),r()}},{abort:()=>{_&&(_.cancel(),_.effect=null,_.onfinish=vt)},deactivate:()=>{r=vt},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>y()}}function Lf(t,e,i){var o=Wo(t,e);o&&o.set&&(t[e]=i,Ao(()=>{t[e]=null}))}var ea,Nl,Ud,Lu,qh,Mu=class Mu{constructor(e){qs(this,Lu);qs(this,ea,new WeakMap);qs(this,Nl);qs(this,Ud);vl(this,Ud,e)}observe(e,i){var o=Mi(this,ea).get(e)||new Set;return o.add(i),Mi(this,ea).set(e,o),bg(this,Lu,qh).call(this).observe(e,Mi(this,Ud)),()=>{var r=Mi(this,ea).get(e);r.delete(i),r.size===0&&(Mi(this,ea).delete(e),Mi(this,Nl).unobserve(e))}}};ea=new WeakMap,Nl=new WeakMap,Ud=new WeakMap,Lu=new WeakSet,qh=function(){var e;return(e=Mi(this,Nl))!=null?e:vl(this,Nl,new ResizeObserver(i=>{for(var o of i){Mu.entries.set(o.target,o);for(var r of Mi(this,ea).get(o.target)||[])r(o)}}))},dr(Mu,"entries",new WeakMap);var Mf=Mu;var A1=new Mf({box:"border-box"});function An(t,e,i){var o=A1.observe(t,()=>i(t[e]));Lo(()=>(Tt(()=>i(t[e])),o))}function Qh(t,e){return t===e||(t==null?void 0:t[Ko])===e}function Xe(t={},e,i,o){return Lo(()=>{var r,s;return Yo(()=>{r=s,s=(o==null?void 0:o())||[],Tt(()=>{t!==i(...s)&&(e(t,...s),r&&Qh(i(...r),t)&&e(null,...r))})}),()=>{kn(()=>{s&&Qh(i(...s),t)&&e(null,...s)})}}),t}function So(t=!1){let e=Wt,i=e.l.u;if(!i)return;let o=()=>Tu(e.s);if(t){let r=0,s={},l=Kr(()=>{let d=!1,a=e.s;for(let u in a)a[u]!==s[u]&&(s[u]=a[u],d=!0);return d&&r++,r});o=()=>n(l)}i.b.length&&Pd(()=>{Gh(e,o),js(i.b)}),De(()=>{let r=Tt(()=>i.m.map(Ig));return()=>{for(let s of r)typeof s=="function"&&s()}}),i.a.length&&De(()=>{Gh(e,o),js(i.a)})}function Gh(t,e){if(t.l.s)for(let i of t.l.s)n(i);e()}function zd(t,e,i){if(t==null)return e(void 0),i&&i(void 0),vt;let o=Tt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Dl=[];function Ar(t,e){return{subscribe:de(t,e).subscribe}}function de(t,e=vt){let i=null,o=new Set;function r(d){if(_l(t,d)&&(t=d,i)){let a=!Dl.length;for(let u of o)u[1](),Dl.push(u,t);if(a){for(let u=0;u<Dl.length;u+=2)Dl[u][0](Dl[u+1]);Dl.length=0}}}function s(d){r(d(t))}function l(d,a=vt){let u=[d,a];return o.add(u),o.size===1&&(i=e(r,s)||vt),d(t),()=>{o.delete(u),o.size===0&&i&&(i(),i=null)}}return{set:r,update:s,subscribe:l}}function fi(t,e,i){let o=!Array.isArray(t),r=o?[t]:t;if(!r.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let s=e.length<2;return Ar(i,(l,d)=>{let a=!1,u=[],f=0,p=vt,m=()=>{if(f)return;p();let y=e(o?u[0]:u,l,d);s?l(y):p=typeof y=="function"?y:vt},$=r.map((y,_)=>zd(y,x=>{u[_]=x,f&=~(1<<_),a&&m()},()=>{f|=1<<_}));return a=!0,m(),function(){js($),p(),a=!1}})}function be(t){let e;return zd(t,i=>e=i)(),e}var Vu=!1,Vf=Symbol();function w(t,e,i){var s;let o=(s=i[e])!=null?s:i[e]={store:null,source:gs(void 0),unsubscribe:vt};if(o.store!==t&&!(Vf in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=vt;else{var r=!0;o.unsubscribe=zd(t,l=>{r?o.source.v=l:N(o.source,l)}),r=!1}return t&&Vf in i?be(t):n(o.source)}function Ne(){let t={};function e(){Ao(()=>{for(var i in t)t[i].unsubscribe();mo(t,Vf,{enumerable:!1,value:!0})})}return[t,e]}function Rf(t){var e=Vu;try{return Vu=!1,[t(),Vu]}finally{Vu=e}}var O1={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Pe&&Og(`${t.name}.${String(e)}`),!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function Ln(t,e,i){return new Proxy(Pe?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},O1)}var B1={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Ys(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o)return o[e]}},set(t,e,i){let o=t.props.length;for(;o--;){let r=t.props[o];Ys(r)&&(r=r());let s=Wo(r,e);if(s&&s.set)return s.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Ys(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let r=Wo(o,e);return r&&!r.configurable&&(r.configurable=!0),r}}},has(t,e){if(e===Ko||e===gl)return!1;for(let i of t.props)if(Ys(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props)if(Ys(i)&&(i=i()),!!i){for(let o in i)e.includes(o)||e.push(o);for(let o of Object.getOwnPropertySymbols(i))e.includes(o)||e.push(o)}return e}};function Xr(...t){return new Proxy({props:t},B1)}function Yh(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function g(t,e,i,o){var Q,H;var r=(i&1)!==0,s=!fs||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,a=!1,u;l?[u,a]=Rf(()=>t[e]):u=t[e];var f=Ko in t||gl in t,p=l&&((H=(Q=Wo(t,e))==null?void 0:Q.set)!=null?H:f&&e in t&&(z=>t[e]=z))||void 0,m=o,$=!0,y=!1,_=()=>(y=!0,$&&($=!1,d?m=Tt(o):m=o),m);u===void 0&&o!==void 0&&(p&&s&&Dg(e),u=_(),p&&p(u));var x;if(s)x=()=>{var z=t[e];return z===void 0?_():($=!0,y=!1,z)};else{var I=(r?Kr:Tn)(()=>t[e]);I.f|=131072,x=()=>{var z=n(I);return z!==void 0&&(m=void 0),z===void 0?m:z}}if((i&4)===0&&s)return x;if(p){var C=t.$$legacy;return function(z,X){return arguments.length>0?((!s||!X||C||a)&&p(X?x():z),z):x()}}var R=!1,A=!1,E=gs(u),k=Kr(()=>{var z=x(),X=n(E);return R?(R=!1,A=!0,X):(A=!1,E.v=z)});return l&&n(k),r||(k.equals=bl),function(z,X){if(Su!==null&&(R=A,x(),n(E)),arguments.length>0){let se=X?n(k):s&&l?si(z):z;if(!k.equals(se)){if(R=!0,N(E,se),y&&m!==void 0&&(m=se),Yh(k))return z;Tt(()=>n(k))}return z}return Yh(k)?k.v:n(k)}}var F1;typeof HTMLElement=="function"&&(F1=class extends HTMLElement{constructor(e,i,o){super();dr(this,"$$ctor");dr(this,"$$s");dr(this,"$$c");dr(this,"$$cn",!1);dr(this,"$$d",{});dr(this,"$$r",!1);dr(this,"$$p_d",{});dr(this,"$$l",{});dr(this,"$$l_u",new Map);dr(this,"$$me");this.$$ctor=e,this.$$s=i,o&&this.attachShadow({mode:"open"})}addEventListener(e,i,o){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(i),this.$$c){let r=this.$$c.$on(e,i);this.$$l_u.set(i,r)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let r=this.$$l_u.get(i);r&&(r(),this.$$l_u.delete(i))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let i=function(s){return l=>{let d=document.createElement("slot");s!=="default"&&(d.name=s),b(l,d)}};var e=i;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let o={},r=H1(this);for(let s of this.$$s)s in r&&(s==="default"&&!this.$$d.children?(this.$$d.children=i(s),o.default=!0):o[s]=i(s));for(let s of this.attributes){let l=this.$$g_p(s.name);l in this.$$d||(this.$$d[l]=Nf(l,s.value,this.$$p_d,"toProp"))}for(let s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=Ih({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=$u(()=>{Yo(()=>{var s;this.$$r=!0;for(let l of qp(this.$$c)){if(!((s=this.$$p_d[l])!=null&&s.reflect))continue;this.$$d[l]=this.$$c[l];let d=Nf(l,this.$$d[l],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,d)}this.$$r=!1})});for(let s in this.$$l)for(let l of this.$$l[s]){let d=this.$$c.$on(s,l);this.$$l_u.set(l,d)}this.$$l={}}}attributeChangedCallback(e,i,o){var r;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Nf(e,o,this.$$p_d,"toProp"),(r=this.$$c)==null||r.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return qp(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function Nf(t,e,i,o){var s;let r=(s=i[t])==null?void 0:s.type;if(e=r==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!i[t])return e;if(o==="toAttribute")switch(r){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(r){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function H1(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var jh="5";var Xh,Zh,Jh;typeof window!="undefined"&&((Jh=(Zh=(Xh=window.__svelte)!=null?Xh:window.__svelte={}).v)!=null?Jh:Zh.v=new Set).add(jh);var nd=require("@vkontakte/videoplayer-core/es2018"),PZ=require("@vkontakte/videoplayer-core/es2018"),al=require("@vkontakte/videoplayer-shared/es2018"),l$=require("@vkontakte/videoplayer-statistics/es2018");var Ma=require("@vkontakte/videoplayer-shared/es2018");var U1={isMobile:void 0,disableInvisibleComponentsTimeout:500,debugLog:!1,devNullLog:!1,defaultLanguage:Ma.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:Ma.VideoQuality.Q_480P,highQualityLimit:Ma.VideoQuality.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,thinStatistics:!1,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,tracer:!1,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,interactiveControlsTapPlace:!1,interactiveControlsFillAnimation:!1,interactiveControlsHideAnimation:!1,interactiveHistoryEndChapterFix:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,initSubtitles:!0,useCallbackForMediaSessionNextPrevClick:!1,usePerformanceFix:!1,userVideoPrefs:!1,savePreferredStatesOnUserActionOnly:!1,useLoopSetting:!1,doubleForwardAvailable:!1,useRichSeek:!1,disableThumbUnstartedOnAutoplay:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,paramsOverride:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null,font:null,focusedOutlineWidth:null,focusedOutlineRadius:null,controlsDesktopPaddingHorizontal:null,timelinePaddingHorizontal:null,settingsBackgroundColor:null,controlsGradientHeight:null,controlsGradient:null},userSalt:"0",doubleForwardActivationTime:600,playbackStatusAnimationDuration:1e3,playbackStatusNextVideoAnimationDuration:1e3,suitableDurationForUsingRichSeek:180,titleShowBehaviour:"fullscreen",disabledSlotIds:[],disabledAdditionalButtonIds:[]},e_=t=>(0,Ma.fillWithDefault)(t,U1),t_=t=>xl("ui-config",t),Rt=()=>yl("ui-config");var Wd="vk_player_debug_panel_opened";var i_="videoplayer",o_="videoplayer";var _s={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},n_=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),r_=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),s_=new Set(["ShiftRight","ShiftLeft"]);var a_=["TIMELINE"],Kd=[...a_,"GRAPH_BUTTON"],Df=[...a_,"PLAY_BUTTON"],qd=[...Kd,"PLAY_BUTTON"];var Zr=(s=>(s.XS="xs",s.S="s",s.M="m",s.L="l",s.XL="xl",s))(Zr||{}),Qd={xs:0,s:1,m:2,l:3,xl:4};var Gd=require("@vkontakte/videoplayer-shared/es2018"),l_=require("@vkontakte/videoplayer-core/es2018"),d_=require("@vkontakte/videoplayer-statistics/es2018");var Ru="prod",Ra="1.1.81-dev.10447541.0";var Na=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var c_=Symbol("storeContext"),u_=Symbol("microStoresContext"),p_=(t,e)=>{xl(c_,t),xl(u_,e),Ru==="dev"&&(window.app={store:t,microStores:e})},he=()=>{let t=yl(c_);return(0,Gd.assertNonNullable)(t,"Store context is empty!"),t},Co=()=>{let t=yl(u_);return(0,Gd.assertNonNullable)(t,"MicroStores context is empty!"),t},oi=(t,e)=>Du(t,t.getValue(),e),Du=(t,e,i)=>Ar(e,o=>{let r=t.subscribe(s=>{o(s),i==null||i(s)});return()=>r.unsubscribe()}),f_=(t,e,i,o,r=["meta config not provided"])=>{var H,z,X,se,Z,oe,J,Ce,me;let s=t.info,{width:l,height:d}=be(i.ui.playerSize),a=(z=(H=s.throughputEstimation$.getValue())==null?void 0:H.toFixed(0))!=null?z:0,u=(se=(X=s.rttEstimation$.getValue())==null?void 0:X.toFixed(0))!=null?se:0,f=s.isAutoQualityEnabled$.getValue()?"auto":"manual",p=`${Ra} (core: ${l_.VERSION}, stat: ${d_.VERSION}, shared: ${Gd.VERSION})`,m=be(i.state.errorLog$),$=m.length?`
45
+ `+m.map((ee,_e)=>{var Qe;let we=`${_e}) Type: ${ee.id}
46
+ `,ge=`Message: ${ee.message} (${ee.thrown})
47
+ `,pe=`Trace: ${(Qe=ee.thrown)==null?void 0:Qe.stack}
48
+ `;return we+ge+pe}).join(`
49
+ `):void 0,y=i.state.isAudioDisabled?"disabled":be(i.state.isAudioAvailable$)?void 0:"unavailable",_=t.info.currentVideoStream$.getValue(),x=t.info.currentAudioStream$.getValue(),I=[];_&&I.push(`Video: ${(Z=_==null?void 0:_.codec)!=null?Z:""}`+(_!=null&&_.hdr?" (HDR)":"")),x&&I.push(`Audio: ${(oe=x==null?void 0:x.codec)!=null?oe:""}`+(x!=null&&x.language?` (${x.language})`:""));let C=s.currentQuality$.getValue(),R="";if(C){let ee=s.availableQualitiesFps$.getValue()[C];R=ee?`${ee}fps`:""}let A=s.httpConnectionType$.getValue(),E=(Ce=(J=s.currentBuffer$.getValue())==null?void 0:J.end)!=null?Ce:0,k=Math.max(E-be(i.state.positionExact$),0),Q={Version:p,Browser:navigator.userAgent,Config:r.join(", "),"United video id":String(i.videoId),TraceId:o,VSID:be(i.vsid),"Content host":s.hostname$.getValue(),"Connection type":A?A+(s.httpConnectionReused$.getValue()?" (reused)":""):"",Throughput:`${a}Kbps @ ${u}ms RTT`,Format:s.currentFormat$.getValue(),"Available Formats":e!=null&&e.sources?Object.keys(e.sources).join(", "):"",Streams:I.join(", "),Quality:`${f} ${C!=null?C:""} ${R}`,"Available qualities":s.availableQualities$.getValue().join(", "),Audio:y,Position:`${be(i.state.positionExact$)}s`,Buffer:`${k}s`,State:`${be(i.playerPhase)} ${(me=s.playbackState$.getValue())!=null?me:""}`,"Player size":`${l}x${d}`,URL:window.location.href,Errors:$};return Object.entries(Q).filter(([ee,_e])=>_e!==void 0).map(([ee,_e])=>`${ee}: ${_e}`).join(`
50
+ `)},m_=(t,e,i)=>{var H,z,X,se;let o=t.info,{width:r,height:s}=be(i.ui.playerSize),l={version:Ra,viewport:`${r}x${s}`,volume:Math.round(be(i.state.volume$)*100)};l.id=i.videoId,o.currentFormat$.getValue()&&(l.provider=o.currentFormat$.getValue()),o.hostname$.getValue()&&(l.cdn=o.hostname$.getValue());let u=o.intrinsicVideoSize$.getValue();u&&(l.videoSize=`${u.width}x${u.height}`);let f=o.currentBuffer$.getValue(),p=o.currentNativeBuffer$.getValue(),m=o.isLive$.getValue(),$=o.liveBufferTime$.getValue();f&&p&&(m&&$?(l.buffer=f.end-$,l.nativeBuffer=p.end-$):(l.buffer=Math.max(f.end-be(i.state.positionExact$),0),l.nativeBuffer=Math.max(p.end-be(i.state.positionExact$),0))),l.position=be(i.state.positionExact$);let y=o.throughputEstimation$.getValue();y&&(l.speed=y);let _=o.videoBitrate$.getValue();_&&(l.bitrate=_);let x=o.liveLatency$.getValue();x&&(l.liveLatency=x);let I=o.currentVideoSegmentLength$.getValue();I&&(l.currentVideoSegmentLength=I);let C=o.currentAudioSegmentLength$.getValue();C&&(l.currentAudioSegmentLength=C);let R=be(i.vsid);typeof R=="string"&&(l.vsid=R);let A=(H=t.info.currentVideoStream$.getValue())==null?void 0:H.codec;A&&(l.videoCodec=A);let E=(z=t.info.currentAudioStream$.getValue())==null?void 0:z.codec;E&&(l.audioCodec=E),((X=t.info.currentVideoStream$.getValue())==null?void 0:X.hdr)&&(l.hdr=!0);let Q=(se=t.info.currentAudioStream$.getValue())==null?void 0:se.language;return Q&&(l.audioLanguage=Q),l},v_=(t,e)=>Na(t,e,"mp4"),g_=t=>!t.type,h_=t=>!!t.type,__=()=>{let e=[],i=0;return{add:(o,r)=>{e[i]=[o,r],i=(i+1)%10},find:o=>e.find(([r])=>r===o)}},Nu=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}async download(e){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let i=await fetch(e,{signal:this.destroyController.signal});if(i.ok)return await i.text();throw i}finally{this.pendingDownloads.delete(e)}}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};var mi=require("@vkontakte/videoplayer-shared/es2018"),L9=require("@vkontakte/videoplayer-core/es2018"),z1="vk_player_",b_="vk_player_prefer_traffic_saving_enabled",$_="vk_player_preferred_volume",y_="vk_player_prefer_volume_mute",Hf="vk_player_preferred_quality",Of="vk_player_preferred_default_quality_settings",Bf="vk_player_preferred_quality_settings_by_video",x_="vk_player_preferred_stream_language",w_="vk_player_preferred_rate",S_="vk_player_preferred_autoplay_next",Ff="vk_player_preferred_subtitles_language",C_="vk_player_user_video_prefs",T_=`${z1}preview_track_close_tooltip`,I_=t=>t>1?1:t<0?0:t,Uf=t=>mi.safeStorage.set($_,I_(t).toString(10)),Ou=()=>{let t=mi.safeStorage.get($_);return(0,mi.isNullable)(t)?void 0:I_(parseFloat(t))},zf=(t,e)=>mi.safeStorage.set(Hf,JSON.stringify({videoId:t,value:e})),Bu=()=>mi.safeStorage.remove(Hf),Wf=t=>{let e=mi.safeStorage.get(Hf);if((0,mi.isNullable)(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){Bu();return}return o},E_=(t,e)=>{e?mi.safeStorage.set(t,"true"):mi.safeStorage.remove(t)},Kf=t=>mi.safeStorage.get(t)==="true",qf=t=>E_(y_,t),k_=()=>Kf(y_),Yd=t=>E_(b_,t),Qf=()=>Kf(b_),P_=()=>mi.safeStorage.get(x_),Gf=t=>mi.safeStorage.set(x_,t),Yf=()=>mi.safeStorage.get(Ff),jf=t=>{t?mi.safeStorage.set(Ff,t):mi.safeStorage.remove(Ff)},A_=t=>mi.safeStorage.set(w_,JSON.stringify({rate:t})),L_=()=>{let t=mi.safeStorage.get(w_);if((0,mi.isNullable)(t))return;let{rate:e}=JSON.parse(t);return e},M_=t=>{mi.safeStorage.set(S_,String(t))},V_=()=>Kf(S_),W1=()=>{let t=f=>{mi.safeStorage.set(Of,JSON.stringify(f))},e=()=>{try{let f=mi.safeStorage.get(Of);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=mi.safeStorage.get(Bf);return f?JSON.parse(f):null}catch(f){return null}},o=f=>{mi.safeStorage.set(Bf,JSON.stringify(f))},r=f=>{u(f);let p=f?i():null;if(p&&(p==null?void 0:p.videoId)===f)return{...p,appliesTo:"to-video"};p&&s();let m=e();return m?{...m,appliesTo:"as-default"}:(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},s=()=>{mi.safeStorage.remove(Bf)},l=()=>{mi.safeStorage.remove(Of)},d=(f,p="as-default")=>{f.type==="exact_quality"||p==="to-video"?o(f):t(f)},a=f=>{let p=r(f);if(p){switch(p.type){case"traffic_saving":Yd(!0);break;case"exact_quality":zf(f,p.quality)}s(),l()}},u=f=>{let p=Wf(f);if(p){o({type:"exact_quality",videoId:f,quality:p});return}Qf()&&t({type:"traffic_saving",videoId:f}),Yd(!1),Bu()};return{getPreferredQualitySettings:r,migrateSettingsToLegacyWay:a,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:s,getPreferredDefaultQualitySettings:e,getPreferredSubtitlesLanguage:Yf,savePreferredSubtitlesLanguage:jf}},{getPreferredQualitySettings:R_,migrateSettingsToLegacyWay:N_,savePreferredQualitySettings:Fu,savePreferredDefaultQualitySettings:M9,removePreferredQualitySettingsByVideo:V9,getPreferredDefaultQualitySettings:Hu}=W1(),K1=3,q1=3,D_=()=>{let t=mi.safeStorage.get(C_);if(t)try{return JSON.parse(t)}catch(e){return null}return null},Uu=(t,e)=>{var r,s;let i=D_();return(s=(r=i==null?void 0:i[t])==null?void 0:r[e])!=null?s:null},Xf=(t,e,i)=>{var l,d,a;let o=(l=D_())!=null?l:{},r=(a=(d=o[t])==null?void 0:d[e])!=null?a:{};Object.assign(r,i,{updatedTs:Date.now()}),t in o||(o[t]={}),o[t][e]=r;let s=Q1(o);mi.safeStorage.set(C_,JSON.stringify(s))};function Q1(t){let e=Object.entries(t).reduce((o,[r,s])=>{let l=0;return Object.values(s).forEach(d=>{l<d.updatedTs&&(l=d.updatedTs)}),o.push([r,l]),o},[]);return e.sort(([,o],[,r])=>o>r?-1:1),e.splice(q1),e.reduce((o,[r])=>(o[r]=G1(t[r]),o),{})}function G1(t){let e=Object.entries(t);return e.sort(([,i],[,o])=>i.updatedTs>o.updatedTs?-1:1),e.splice(K1),Object.fromEntries(e)}function O_(){mi.safeStorage.set(T_,JSON.stringify(!0))}function B_(){let t=mi.safeStorage.get(T_);try{return t?JSON.parse(t):!1}catch(e){return!1}}var jv=require("@vkontakte/videoplayer-core/es2018");zg();var ta="var(--btn-color, #fff)";var Y1=Ie('<g filter="url(#strokeAndShadow)"><!></g><defs><filter x="-12" width="72" y="-12" height="72" id="strokeAndShadow"><feMorphology operator="dilate" radius=".4" result="outer"></feMorphology><feFlood flood-color="rgba(0,0,0,0.1)" result="outerColor"></feFlood><feComposite operator="in" in="outerColor" in2="outer" result="outerOutline"></feComposite><feDropShadow in="SourceGraphic" dx="0" dy="0" stdDeviation="3" flood-color="rgba(0,0,0,0.4)" result="outerShadow"></feDropShadow><feMerge><feMergeNode in="outerShadow"></feMergeNode><feMergeNode in="outerOutline"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter></defs>',1),j1=Ie('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill-rule="evenodd" clip-rule="evenodd"><!></svg>');function Ze(t,e){var f;B(e,!0);let i=g(e,"width",19,()=>"24"),o=g(e,"height",19,()=>"24"),r=g(e,"fill",3,ta),s=(f=e.viewBox)!=null?f:`0 0 ${i()} ${o()}`;var l=j1(),d=T(l);{var a=p=>{var m=Y1(),$=ue(m),y=T($);ii(y,()=>e.children),S($),ai(),b(p,m)},u=p=>{var m=Ae(),$=ue(m);ii($,()=>e.children),b(p,m)};V(d,p=>{e.shadow?p(a):p(u,!1)})}S(l),D(()=>{Me(l,"aria-label",e.ariaLabel),Me(l,"aria-hidden",!e.ariaLabel),Me(l,"width",i()),Me(l,"height",o()),Me(l,"viewBox",s),Me(l,"fill",r()),We(l,e.style),Me(l,"data-testid",e.testId)}),b(t,l),F()}var Ol=require("@vkontakte/videoplayer-shared/es2018");var X1={auto_quality_invariant:"Авто",auto_quality:"Авто ({actual})",auto_quality_option:"Авто",other_quality:"Другое",high_quality:"Высокое качество",high_quality_description:"Будет использовано больше трафика",auto_quality_limit:"Автоматически",traffic_saving_quality:"Экономия трафика",traffic_saving_quality_description:"Видео грузятся быстрее, но качество ниже",default_quality_for_any_video:"Качество для всех видео",quality_applience:"Качество по умолчанию можно {action}",quality_applience_action:"изменить",menu_quality:"Качество",menu_traffic_saving:"Экономия данных",menu_playback_rate:"Скорость",menu_report:"Сообщить о проблеме",menu_pip:"Картинка в картинке",menu_pip_close:"Развернуть видео",menu_copy_video_link:"Скопировать ссылку на видео",menu_copy_video_link_with_timestamp:"Скопировать ссылку на кадр",menu_video_rotate:"Повернуть",menu_video_loop_on:"Включить повторение",menu_video_loop_off:"Отключить повторение",menu_chromecast:"Chromecast трансляция",menu_copy_debug:"Копировать данные для диагностики",menu_save_debug:"Сохранить данные для диагностики",menu_debug_overlay:"Техническая информация",menu_copy_embed_code:"Копировать код для встраивания",menu_audio_languages:"Звуковая дорожка",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"Дорожка {index}",pip_dummy_title:"Видео воспроизводится в режиме картинка в картинке",submenu_quality:"Качество",submenu_playback_rate:"Скорость",submenu_settings:"Настройки",submenu_traffic_saving:"Экономия данных",submenu_audio_languages:"Звуковая дорожка",playing_ads:"Реклама {timeleft}",skip_ads_now:"Пропустить рекламу",skip_ads_after:"Пропустить {time}с",visit_advertiser:"Перейти на сайт",aria_timeline:"Ползунок временной шкалы",aria_timeline_value:"{position} (общая длительность {duration}",doubletap_seek_step:"{seconds} секунд",playback_rate_1:"Обычная",playback_rate:"{multiplier}x",video360:"панорамное видео",subtitles_caption:"Субтитры",subtitles_auto:"{language} (Автоматические)",subtitles_off:"Выкл.",subtitles_auto_caption:"Автоматические субтитры",subtitles_turn_on:"Включить субтитры",subtitles_turn_off:"Выключить субтитры",traffic_saving_off:"Откл.",traffic_saving_on:"Вкл.",traffic_saving_helper_text:"При включении качество видео будет снижено для экономии трафика",tooltip_button_disabled:"Кнопка недоступна",tooltip_previous:"Предыдущее видео",tooltip_restart:"Начать заново",tooltip_play:"Смотреть",tooltip_pause:"Пауза",tooltip_next:"Следующее видео",tooltip_interactive_go_back:"Вернуться к предыдущей главе",tooltip_interactive_go_back_disabled:"История прохождения недоступна",tooltip_interactive_go_back_disabled_first:"Вы смотрите первую главу",tooltip_interactive_go_back_disabled_limit:"Лимит возвратов исчерпан",tooltip_chapter_without_interactive:"В этой главе нет интерактива",tooltip_interactive_of_chapter_completed:"Интерактивы этой главы уже пройдены",tooltip_interactive_seek:"Перейти к интерактиву",tooltip_interactive_graph_off:"Показать карту сюжета",tooltip_interactive_graph_on:"Скрыть карту сюжета",tooltip_live:"Перемотать на актуальный лайв",tooltip_episodes:"Эпизоды",tooltip_volume:"Включить звук",tooltip_volume_muted:"Выключить звук",tooltip_sound_unavailable:"Звук недоступен",tooltip_subtitles_off:"Включить субтитры",tooltip_subtitles_on:"Выключить субтитры",tooltip_settings_off:"Открыть настройки",tooltip_settings_on:"Закрыть настройки",tooltip_fullscreen_off:"На весь экран",tooltip_fullscreen_on:"Выйти из полноэкранного режима",tooltip_chromecast_off:"Включить Chromecast",tooltip_chromecast_on:"Выключить Chromecast",tooltip_episode_finished:"Вы уже сделали свой выбор",tooltip_episode_unfinished:"Не пройдено",tooltip_disabled_when_interactive:"Интерактив уже идёт",tooltip_disabled_when_graph_on:"Кнопка недоступна во время просмотра карты",tooltip_interactive_interaction_time_indicator:"Нажмите на элемент интерактива",tooltip_vk_logo:"Открыть в VK Видео",tooltip_vk_video_logo:"Перейти в VK Видео",tooltip_autoplay_off:"Включить автовоспроизведение",tooltip_autoplay_on:"Отключить автовоспроизведение",tooltip_context_menu_open:"Открыть контекстное меню",tooltip_context_menu_close:"Закрыть контекстное меню",download_video_caption:"Скачать видео",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"Быстрые клавиши",hotkey_map_modal_close_btn_text:"Закрыть",hotkey_map_group_title_common:"Общие",hotkey_map_group_title_playback:"Воспроизведение",hotkey_map_group_title_subtitles:"Субтитры",hotkey_map_group_title_episodes:"Эпизоды",hotkey_map_item_mute_description:"Включить или отключить звук",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"Увеличить громкость",hotkey_map_item_volume_up_value:"Стрелка вверх",hotkey_map_item_volume_down_description:"Уменьшить громкость",hotkey_map_item_volume_down_value:"Стрелка вниз",hotkey_map_item_pip_description:"Свернуть или развернуть мини-проигрыватель",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"Включить или выключить полноэкранный режим",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"Скрыть или показать контекстное меню",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"Скрыть или показать список горячих клавиш",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"Приостановить или продолжить воспроизведение",hotkey_map_item_play_toggle_value:"Пробел (или k)",hotkey_map_item_seek_backward_description:"Перемотать ролик на 10 секунд назад",hotkey_map_item_seek_backward_value:"Стрелка влево (или j)",hotkey_map_item_seek_forward_description:"Перемотать ролик на 10 секунд вперёд",hotkey_map_item_seek_forward_value:"Стрелка вправо (или l)",hotkey_map_item_fast_seek_backward_description:"Ускоренная перемотка назад",hotkey_map_item_fast_seek_backward_value:"Shift + Стрелка влево",hotkey_map_item_fast_seek_forward_description:"Ускоренная перемотка вперёд",hotkey_map_item_fast_seek_forward_value:"Shift + Стрелка вправо",hotkey_map_item_rate_down_description:"Уменьшить скорость воспроизведения",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"Увеличить скорость воспроизведения",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"Перейти к предыдущему кадру <br />(когда воспроизведение приостановлено)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"Перейти к следующему кадру <br />(когда воспроизведение приостановлено)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"Перейти к определённому моменту видео <br />(например, при нажатии на цифру «7» ролик будет перемотан до временной отметки, которая соответствует 70% от длительности видео)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"Включить или отключить субтитры",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"Перейти к предыдущему эпизоду",hotkey_map_item_prev_episode_pc_value:"Ctrl + Стрелка влево",hotkey_map_item_prev_episode_mac_value:"Option + Стрелка влево",hotkey_map_item_next_episode_description:"Перейти к следующему эпизоду",hotkey_map_item_next_episode_pc_value:"Ctrl + Стрелка вправо",hotkey_map_item_next_episode_mac_value:"Option + Стрелка вправо",hotkey_map_item_next_video_description:"Перейти к следующему видео",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"Перейти к предыдущему видео",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"дн",waiting_live_hour_value:"ч",waiting_live_minute_value:"мин",waiting_live_second_value:"сек",waiting_live_colon:":",waiting_live_upcoming_title:"Трансляция еще не началась",waiting_live_timer_title:"До начала трансляции осталось",waiting_live_recover_title:"Трансляция приостановлена - она продолжится, когда автор вернётся",waiting_record_title:"Трансляция завершена - запись появится позже",aria_label_video_player:"Видео плеер",aria_label_spherical_control:"Контроллер для сферического видео. Используйте клавиши со стрелками для панорамирования видео.",aria_label_debug_panel:"Область с технической информацией, сделайте скриншот для техподдержки",aria_label_new_tab_alert:"Откроется в новой вкладке.",aria_label_menu_quality:"Качество: {actual}",aria_label_menu_audio_languages:"Язык аудио: {actual}",aria_label_menu_rate:"Скорость: {actual}",aria_label_menu_subtitle:"Субтитры: {actual}",aria_label_menu_download:"Скачать видео",aria_label_menu_debug_overlay:"Отображение технической информации",aria_label_menu_rotate:"Повернуть видео на 90 градусов",aria_label_menu_loop:"Переключение режима повторения",aria_label_submenu_back:"Вернуться в меню настроек",aria_label_submenu_traffic_saving:"Режим экономии данных",aria_label_settings:"Настройки",aria_label_context_menu:"Контекстное меню",aria_label_autoplay:"Автовоспроизведение",end_screen_next_video:"Следующее видео",end_screen_recommended_video:"Рекомендуемое видео",slow_video_notification_button:"Выбрать качество «Авто»",slow_video_notification_force_description:`Видео грузится слишком медленно,
51
+ качество изменено на «Авто»`,slow_video_notification_suggest_description:`Видео загружается слишком медленно -
52
+ попробуйте изменить качество на «Авто»`,double_forward_label:"2x",preview_track_notification_text:"Потяните вверх для точной перемотки",preview_track_close_tooltip:"Выйти из режима точной перемотки"},F_=X1;var Z1={auto_quality_invariant:"Auto",auto_quality:"Auto ({actual})",auto_quality_option:"Auto",other_quality:"Other",high_quality:"High quality",high_quality_description:"Uses more data",auto_quality_limit:"Auto",traffic_saving_quality:"Data saving",traffic_saving_quality_description:"Videos load faster but at lower quality",quality_applience:"You can {action} the default quality",quality_applience_action:"change",default_quality_for_any_video:"Quality for all videos",menu_quality:"Quality",menu_playback_rate:"Playback rate",menu_traffic_saving:"Data saving",menu_report:"Report a problem",menu_pip:"Picture in picture",menu_pip_close:"Expand video",menu_copy_video_link:"Copy video link",menu_copy_video_link_with_timestamp:"Copy link with timestamp",menu_video_rotate:"Rotate",menu_video_loop_on:"Enable loop",menu_video_loop_off:"Disable loop",menu_chromecast:"Chromecast stream",menu_copy_debug:"Copy debug info",menu_save_debug:"Save debug info",menu_debug_overlay:"Tech stats",menu_copy_embed_code:"Copy embed code",menu_audio_languages:"Audio track",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"Audio track {index}",pip_dummy_title:"Video plays in picture-in-picture mode",submenu_quality:"Quality",submenu_playback_rate:"Playback rate",submenu_traffic_saving:"Data saving",submenu_settings:"Settings",submenu_audio_languages:"Audio track",playing_ads:"Ads {timeleft}",skip_ads_after:"Skip ads",skip_ads_now:"Skip {time}s",visit_advertiser:"Visit site",aria_timeline:"Time scale slider",aria_timeline_value:"{position} out of {duration}",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_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:"Volume off",tooltip_volume_muted:"Turn volume on",tooltip_sound_unavailable:"Sound unavailable",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",tooltip_autoplay_off:"Turn autoplay on",tooltip_autoplay_on:"Turn autoplay off",tooltip_context_menu_open:"Open context menu",tooltip_context_menu_close:"Close context menu",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",hotkey_map_item_next_video_description:"Next video",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"Previous video",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"d",waiting_live_hour_value:"h",waiting_live_minute_value:"min",waiting_live_second_value:"sec",waiting_live_colon:":",waiting_live_upcoming_title:"The broadcast hasn't started yet",waiting_live_timer_title:"Before the start of the broadcast left",waiting_live_recover_title:"The broadcast has been paused - it will resume when the author returns",waiting_record_title:"The broadcast completed - recording will appear later",aria_label_video_player:"Video player",aria_label_spherical_control:"Spherical video control. Use the arrow keys to pan the video.",aria_label_debug_panel:"Technical information area, take a screenshot for technical support",aria_label_new_tab_alert:"Opens in a new tab.",aria_label_menu_quality:"Quality: {actual}",aria_label_menu_audio_languages:"Audio language: {actual}",aria_label_menu_rate:"Rate: {actual}",aria_label_menu_subtitle:"Subtitles: {actual}",aria_label_menu_download:"Download video",aria_label_menu_debug_overlay:"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:"Data saving mode",aria_label_settings:"Settings",aria_label_context_menu:"Context menu",aria_label_autoplay:"Autoplay",end_screen_next_video:"Next video",end_screen_recommended_video:"Recommended video",slow_video_notification_button:"Select Auto quality",slow_video_notification_force_description:`The video is loading too slowly,
53
+ so the quality was changed to Auto`,slow_video_notification_suggest_description:`The video is loading too slowly.
54
+ Try switching the quality to Auto.`,double_forward_label:"2x",preview_track_notification_text:"pull up to open precise rewind",preview_track_close_tooltip:"dismiss precise rewind"},H_=Z1;var Vs=new Map;Vs.set(Ol.InterfaceLanguage.EN,H_);Vs.set(Ol.InterfaceLanguage.RU,F_);var U_=new Map,Zf=({language:t,pack:e,fallback:i})=>{if(Vs.has(t)){let o=Vs.get(t);Vs.set(t,{...o,...e})}else Vs.set(t,e);U_.set(t,i)},Jf=t=>Vs.has(t),em=(t,e,i,o)=>{var l;let r=Vs.get(t),s=r==null?void 0:r[e];if((0,Ol.isNullable)(s)){let d=(l=U_.get(t))!=null?l:o,a=d?Vs.get(d):void 0;s=a==null?void 0:a[e]}return(0,Ol.isNullable)(s)?e+Object.values(i!=null?i:{}).join(" "):i?s.replaceAll(/{(\w+?)}/g,(d,a)=>{var u;return(u=i[a])!=null?u:""}):s},j=(t,e)=>{let{interfaceLanguage$:i}=he(),o=be(i),r=Rt();return em(o,t,e,r.defaultLanguage)};var J1=Ie('<path d="M26.86 15.18a3.7 3.7 0 0 0 2.53-3.6C29.4 8.91 27.2 7 24.07 7c-1.96 0-3.57.78-4.67 2.29l-.1.15a1.33 1.33 0 0 0 .26 1.85c.54.4 1.3.35 1.74-.16l.2-.25a3 3 0 0 1 2.5-1.3c1.53 0 2.6.91 2.6 2.25 0 1.36-1.09 2.27-2.65 2.27h-.58a1.23 1.23 0 0 0 0 2.47h.58c1.75 0 2.91.98 2.91 2.39 0 1.45-1.19 2.46-2.88 2.46a3.2 3.2 0 0 1-2.89-1.6l-.2-.29a1.4 1.4 0 0 0-2.05-.25 1.3 1.3 0 0 0-.3 1.68l.21.33A6 6 0 0 0 24 24c3.28 0 5.63-2.04 5.63-4.92a4 4 0 0 0-2.77-3.9M37.73 12.68c-.46 0-1 .04-1.5.16L38.8 9.1a1.34 1.34 0 1 0-2.2-1.52l-3.76 5.47C31.43 15.18 31 16.87 31 18.33 31 21.8 33.56 24 37.19 24c3.6 0 6.16-2.4 6.16-5.77a5.4 5.4 0 0 0-5.63-5.56m-.53 8.74c-1.98 0-3.33-1.27-3.33-3.14 0-1.85 1.35-3.14 3.33-3.14 1.95 0 3.3 1.29 3.3 3.14 0 1.87-1.35 3.14-3.3 3.14m20.8-5.9c0 5.03-2.7 8.43-6.63 8.43s-6.62-3.4-6.62-8.44 2.7-8.44 6.62-8.44S58 10.47 58 15.51m-10.35 0c0 3.56 1.49 5.85 3.72 5.85s3.72-2.3 3.72-5.86-1.48-5.86-3.72-5.86c-2.23 0-3.72 2.3-3.72 5.86M67 9.49A3.5 3.5 0 0 1 63.51 13 3.5 3.5 0 0 1 60 9.49 3.5 3.5 0 0 1 63.51 6 3.5 3.5 0 0 1 67 9.49m-5 0c0 .83.68 1.51 1.51 1.51.81 0 1.5-.68 1.5-1.51 0-.81-.69-1.5-1.5-1.5-.83 0-1.51.69-1.51 1.5ZM67 23.5c0-1.32-1.2-3.1-4.2-4.67a1.5 1.5 0 1 1 1.4-2.66c3.25 1.72 5.8 4.26 5.8 7.33 0 3.13-2.56 5.55-6.09 7.27-3.63 1.77-8.82 3.06-15.26 3.72a1.5 1.5 0 0 1-.3-2.98c6.25-.64 11.05-1.88 14.25-3.44 3.3-1.6 4.4-3.27 4.4-4.57M38.88 35H38c-9.64 0-17.45-1.13-22.9-3.02-2.72-.94-4.94-2.1-6.5-3.47C7.01 27.14 6 25.44 6 23.5a6.2 6.2 0 0 1 1.9-4.25 16 16 0 0 1 4.43-3.1 1.5 1.5 0 1 1 1.34 2.7q-2.39 1.19-3.59 2.46C9.3 22.14 9 22.87 9 23.5c0 .8.4 1.74 1.57 2.76s3 2.01 5.51 2.89C21.11 30.89 28.55 32 38 32h.88l-1.44-1.44a1.5 1.5 0 0 1 2.12-2.12l4 4h.01a1.5 1.5 0 0 1 .32 1.63 2 2 0 0 1-.33.5l-4 4a1.5 1.5 0 0 1-2.12-2.13z"></path>');function jd(t,e){B(e,!1);let i=j("video360");So(),Ze(t,{width:"76",height:"45",get ariaLabel(){return i},testId:"video-360-icon",shadow:!0,children:(o,r)=>{var s=J1();b(o,s)},$$slots:{default:!0}}),F()}var aV=require("@vkontakte/videoplayer-core/es2018");var Bl;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(Bl||(Bl={}));var ey=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,ty=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,iy=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,zu="?",oy="X-Sentry-Auth",ny=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function ry(t){if(!t.stack)return null;let e=[],i=t.stack.split(`
55
+ `),o,r;for(let s=0;s<i.length;++s){if(o=ey.exec(i[s]))r={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||zu,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=iy.exec(i[s]))r={filename:o[2],function:o[1]||zu,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=ty.exec(i[s]))s===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),r={filename:o[3],function:o[1]||zu,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!r.function&&r.lineno&&(r.function=zu),e.push(r)}return e.length?{value:z_(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function z_(t){return(t&&t.message||"No error message").split(`
56
+ `).filter(i=>!!i)[0]}function sy(t){try{let e=ry(t);if(e)return e}catch(e){}return{value:z_(t),type:t&&t.name,stacktrace:{frames:[]}}}function ay(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var Wu=class{constructor(e){if(e&&e.dsn){let i=ny.exec(e.dsn),o=i?i.slice(1):[],r=o[5].split("/"),s=r.slice(0,-1).join("/");this.apiUrl=o[0]+"://"+o[3]+(o[4]?":"+o[4]:"")+(s?"/"+s:"")+"/api/"+r.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+o[1]+(o[2]?",sentry_secret="+o[2]:"")}this.environment=e&&e.environment}prepare(e){return{...this.getRequestBlank(),exception:{values:[sy(e)]}}}report(e){this.send(this.prepare(e))}send(e){!this.apiUrl||!e||this.createRequest(e)}createRequest(e){let i=new XMLHttpRequest;i.open("POST",this.apiUrl,!0),i.setRequestHeader("Content-type","application/json"),i.setRequestHeader(oy,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:ay(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function W_(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function ly(){return window}var Ku=class t extends Wu{constructor(e,i=ly()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:r=u=>u,beforeBreadcrumb:s=u=>u,blacklistUrls:l=[],ignoreErrors:d=[],release:a=void 0}=this.options||{};this.plugins=o.map(u=>new u(this)),this.beforeSend=r,this.beforeBreadcrumb=s,this.blacklistUrls=l,this.ignoreErrors=d,this.release=a}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",{...e}),this}setTag(e,i){return this.extendState({tags:{[e]:i}}),this}setExtra(e,i){return this.extendState({extra:{[e]:i}}),this}setExtras(e){return this.setKeyState("extra",{...e}),this}setUser(e){return this.setKeyState("user",{...e}),this}clone(){let e=new t({...this.options,plugins:[]});return e.extendState(this.state),e}withScope(e){let i=this.clone();e(i),i.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,i){this.send({...this.getRequestBlank(),message:e,level:i})}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(i=>this.ignoreErrors.some(o=>W_(i,o))):!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:i="",value:o=""}=e.exception.values&&e.exception.values[0]||{};return[`${o}`,`${i}: ${o}`]}catch(i){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let i=this.getEventFilterUrl(e);return i?this.blacklistUrls.some(o=>W_(i,o)):!1}getEventFilterUrl(e){try{if(e.exception){let i=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return i&&i[i.length-1].filename||null}return null}catch(i){return null}}extendState(e){this._state=Object.keys(e).reduce((i,o)=>{let r=this._state[o],s=Array.isArray(r)?r:null,l=e[o],d=Array.isArray(l)?l:null;return{...i,[o]:s||d?[...s||[],...d||[]]:{...typeof r!="string"?r:{},...typeof l!="string"?l:{}}}},this._state)}setKeyState(e,i){this._state[e]=i}};var Da=require("@vkontakte/videoplayer-shared/es2018");var qu=null,Oa=class{constructor(e,i,o={}){!qu&&e.dsn&&(this.sentryClient=new Ku({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new Da.Subscription,this.options=e,this.context=o,qu=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),qu=null}logIError(e,i=!1){e.thrown&&this.report(e.thrown,{fatal:i,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,i={},o={}){let{sentryClient:r,context:s,options:l}=this,{sampleRate:d=0,whiteErrorIdList:a,whiteErrorCategoryList:u=[],blackErrorIdList:f,blackErrorCategoryList:p}=l,{errorType:m,category:$}=i;if((0,Da.isNonNullable)($)&&p.includes($)||(0,Da.isNonNullable)(m)&&f.includes(m))return;if(Math.random()<=d||(0,Da.isNonNullable)($)&&u.includes($)||(0,Da.isNonNullable)(m)&&a.includes(m)){Object.keys(i).length&&r.setTags({version:this.version,...i}),(Object.keys(s).length||Object.keys(o).length)&&r.setExtras({...s,...o});try{m&&r.captureMessage(m,i.fatal?Bl.fatal:Bl.error),r.report(e)}catch(_){console.error(_)}}}static getInstance(){return qu}};var Jr=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(Jr||{});var Qu=t=>{if(t.requestFullscreen)return t.requestFullscreen();if(t.msRequestFullscreen)return t.msRequestFullscreen();if(t.webkitRequestFullscreen)return t.webkitRequestFullscreen();if(t.mozRequestFullScreen)return t.mozRequestFullScreen();let e=t.querySelector("video");return e!=null&&e.webkitEnterFullscreen?(e.webkitEnterFullscreen(),Promise.resolve()):Promise.reject()},Gu=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),K_=(t,e)=>e?!0:t.fullscreenEnabled||!!t.webkitFullscreenEnabled||!!t.mozFullscreenEnabled||!!t.msFullscreenEnabled,q_=t=>{let e=t;e!=null&&e.webkitExitFullscreen&&(e==null||e.webkitExitFullscreen())},Xd=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},ia=()=>!!Xd(),Yu=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},ju=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},Q_=t=>{let e=window.screen;return(async r=>e.orientation?e.orientation.lock(r):e.mozLockOrientation?e.mozLockOrientation(r):e.msLockOrientation?e.msLockOrientation(r):Promise.reject())(((r={width:0,height:0})=>r.width<=r.height?"portrait":"landscape")(t))};var tm=require("@vkontakte/videoplayer-core/es2018"),G_=()=>({title:j("hotkey_map_modal_title"),closeBtnText:j("hotkey_map_modal_close_btn_text"),groups:[{title:j("hotkey_map_group_title_common"),items:[{description:j("hotkey_map_item_mute_description"),value:j("hotkey_map_item_mute_value")},{description:j("hotkey_map_item_volume_up_description"),value:j("hotkey_map_item_volume_up_value")},{description:j("hotkey_map_item_volume_down_description"),value:j("hotkey_map_item_volume_down_value")},{description:j("hotkey_map_item_pip_description"),value:j("hotkey_map_item_pip_value")},{description:j("hotkey_map_item_full_screen_description"),value:j("hotkey_map_item_full_screen_value")},{description:j("hotkey_map_item_show_context_menu_description"),value:j("hotkey_map_item_show_context_menu_value")},{description:j("hotkey_map_item_show_hotkey_map_description"),value:j("hotkey_map_item_show_hotkey_map_value")}]},{title:j("hotkey_map_group_title_playback"),items:[{description:j("hotkey_map_item_play_toggle_description"),value:j("hotkey_map_item_play_toggle_value")},{description:j("hotkey_map_item_seek_backward_description"),value:j("hotkey_map_item_seek_backward_value")},{description:j("hotkey_map_item_seek_forward_description"),value:j("hotkey_map_item_seek_forward_value")},{description:j("hotkey_map_item_fast_seek_backward_description"),value:j("hotkey_map_item_fast_seek_backward_value")},{description:j("hotkey_map_item_fast_seek_forward_description"),value:j("hotkey_map_item_fast_seek_forward_value")},{description:j("hotkey_map_item_rate_down_description"),value:j("hotkey_map_item_rate_down_value")},{description:j("hotkey_map_item_rate_up_description"),value:j("hotkey_map_item_rate_up_value")},{description:j("hotkey_map_item_prev_frame_description"),value:j("hotkey_map_item_prev_frame_value")},{description:j("hotkey_map_item_next_frame_description"),value:j("hotkey_map_item_next_frame_value")},{description:j("hotkey_map_item_jump_seek_description"),value:j("hotkey_map_item_jump_seek_value")},{description:j("hotkey_map_item_next_video_description"),value:j("hotkey_map_item_next_video_value")},{description:j("hotkey_map_item_prev_video_description"),value:j("hotkey_map_item_prev_video_value")}]},{title:j("hotkey_map_group_title_subtitles"),items:[{description:j("hotkey_map_item_subtitles_toggle_description"),value:j("hotkey_map_item_subtitles_toggle_value")}]},{title:j("hotkey_map_group_title_episodes"),items:[{description:j("hotkey_map_item_prev_episode_description"),value:tm.clientChecker.device.isApple?j("hotkey_map_item_prev_episode_mac_value"):j("hotkey_map_item_prev_episode_pc_value")},{description:j("hotkey_map_item_next_episode_description"),value:tm.clientChecker.device.isApple?j("hotkey_map_item_next_episode_mac_value"):j("hotkey_map_item_next_episode_pc_value")}]}]});var Fl=require("@vkontakte/videoplayer-shared/es2018"),Ba=class{constructor({enabled:e=!0}={enabled:!0}){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,Fl.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new Fl.ValueSubject(!1),isEnabled$:new Fl.ValueSubject(!1),type:0};this.info.isEnabled$=new Fl.ValueSubject(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.info.isActive$.getValue()}setContext(e){this.svelteContext=e}async revealPictureInPicture(){this.isRequested&&(this.removeEventHandlers(),await this.request(),this.addEventHandlers())}async request(){var e;if(!(!this.isSupported()||this.isActive()))try{await((e=this.videoElement)==null?void 0:e.requestPictureInPicture())}catch(i){this.isRequested=!1}}async exit(){!this.isSupported()||!this.isActive()||await document.exitPictureInPicture()}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){this.isSupported()&&this.exit().finally(()=>{var e;this.removeEventHandlers(),this.videoElement=(e=this.playerContainer)==null?void 0:e.querySelector("video"),this.addEventHandlers()})}addEventHandlers(){var e,i;(e=this.videoElement)==null||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}setExternalEventHandlers(e){this.externalEventHandlers={...e}}removeEventHandlers(){var e,i;(e=this.videoElement)==null||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}async dispose(){this.removeEventHandlers(),await this.exit(),this.info.isActive$.next(!1),this.isRequested=!1}onEnterPictureInPicture(e){var r,s;let o=e.pictureInPictureWindow;o&&(this.info.isActive$.next(!0),this.isRequested=!0,o.addEventListener("resize",this.eventHandlers.resize),(s=(r=this.externalEventHandlers).enterpictureinpicture)==null||s.call(r,e))}onLeavePictureInPicture(e){var r,s;let o=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,this.eventHandlers.resize.cancel(),o==null||o.removeEventListener("resize",this.eventHandlers.resize),(s=(r=this.externalEventHandlers).leavepictureinpicture)==null||s.call(r,e)}onResize(e){var i,o;(o=(i=this.externalEventHandlers).resize)==null||o.call(i,e)}setEnabled(e){this.info.isEnabled$.next(e)}};function Fa(t){return t instanceof Ba}var Hl=require("@vkontakte/videoplayer-shared/es2018");function om(t,e){B(e,!1);let i=he();Vt(()=>{i.getAdmanWrapper().startPostroll()}),So(),F()}var Y_=require("@vkontakte/videoplayer-shared/es2018");var dy=Ie('<path d="M11.74 6.74a.9.9 0 0 1-1.28 0L6 2.27 1.54 6.74A.9.9 0 1 1 .26 5.46l5.1-5.1a.9.9 0 0 1 1.28 0l5.1 5.1a.9.9 0 0 1 0 1.28Z"></path>'),cy=Ie('<path 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.272L5.773 8z"></path>');function Lr(t,e){B(e,!0);let i=g(e,"direction",3,"left"),o=g(e,"useBtnColor",3,!1),r=v(()=>["up","down"].includes(i())),s=v(()=>["right","down"].includes(i())),l=v(()=>`chevron-icon--${i()}`),d=v(()=>(()=>{let f="";return n(s)&&(f+="transform: rotate(180deg);"),f.length?f:void 0})()),a=v(()=>o()?ta:"currentColor"),u=v(()=>n(r)?"7":"16");Ze(t,{width:"12",get height(){return n(u)},get fill(){return n(a)},get testId(){return n(l)},get style(){return n(d)},children:(f,p)=>{var m=Ae(),$=ue(m);{var y=x=>{var I=dy();b(x,I)},_=x=>{var I=cy();b(x,I)};V($,x=>{n(r)?x(y):x(_,!1)})}b(f,m)},$$slots:{default:!0}}),F()}var uy=(t,e,i)=>{t.stopPropagation(),n(e)&&i()()},py=L('<div class="skip s-17"> <!></div>'),fy=L("<div><!></div>"),my={hash:"s-17",code:".container.s-17{background:rgba(0,0,0,.56);border-radius:6px;color:#fff;font-size:13px;padding:6px 10px;position:absolute;right:16px;top:14px;transition:color .2s}.container-mobile.s-17{bottom:14px;font-size:15px;max-width:142px;top:unset}.skip.s-17{align-items:flex-end;display:flex;gap:4px;white-space:nowrap}.skippable.s-17{color:var(--white);cursor:pointer}.skippable.s-17:hover{color:hsla(0,0%,100%,.75)}"};function nm(t,e){B(e,!0),G(t,my);let[i,o]=Ne(),r=()=>w(u,"$isMobile",i),s=g(e,"position",3,0),l=g(e,"secondsToWatchBeforeSkip",3,0),d=g(e,"skipAd",3,Y_.noop),u=he().ui.isMobile,f=v(()=>s()>0&&s()>=l());var p=fy();let m;p.__click=[uy,f,d];var $=T(p);{var y=x=>{var I=py(),C=T(I),R=P(C);Lr(R,{direction:"right"}),S(I),D(A=>ve(C,`${A!=null?A:""} `),[()=>j("skip_ads_now")]),b(x,I)},_=x=>{var I=hs();D(C=>ve(I,C),[()=>j("skip_ads_after",{time:Math.ceil(l()-s()).toFixed(0)})]),b(x,I)};V($,x=>{n(f)?x(y):x(_,!1)})}S(p),D(x=>m=re(p,1,"container s-17",null,m,x),[()=>({"container-mobile":r(),skippable:n(f)})]),b(t,p),F(),o()}Ye(["click"]);var vy=L('<button class="go-to-site s-16"> </button>'),gy={hash:"s-16",code:"button.go-to-site.s-16{background:#fff;border:none;border-radius:6px;bottom:14px;color:#000;font-size:15px;left:16px;padding:6px 10px;pointer-events:none;position:absolute}"};function rm(t,e){B(e,!1),G(t,gy),So();var i=vy(),o=T(i,!0);S(i),D(r=>ve(o,r),[()=>j("visit_advertiser")],Tn),b(t,i),F()}var hy=L('<div class="top-gradient-mobile s-h"></div>'),_y=L('<div class="container s-h"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),by={hash:"s-h",code:".container.s-h{height:100%;width:100%}.top-gradient-mobile.s-h{background:linear-gradient(1turn,transparent,rgba(0,0,0,.05) 12%,rgba(0,0,0,.15) 25%,rgba(0,0,0,.3) 45%,rgba(0,0,0,.4) 57%,rgba(0,0,0,.5) 77%,rgba(0,0,0,.55) 88%,rgba(0,0,0,.65));height:80px;left:0;pointer-events:none;position:absolute;top:0;width:100%}"};function Jd(t,e){B(e,!0),G(t,by);let[i,o]=Ne(),r=()=>w(H,"$canSkipAd",i),s=()=>w(Q,"$adPlaybackState",i),l=()=>w(C,"$isMobile",i),d=()=>w(z,"$adPosition",i),a=()=>w(X,"$secondsToWatchBeforeSkipAd",i),u=()=>w(I,"$isVideoEnded",i),f=g(e,"adsSlotId",3,void 0),p=g(e,"adsParams",3,void 0),m=g(e,"adsAutoplayParam",3,void 0),$=g(e,"duration",3,0),y=g(e,"adsExternalApi",3,void 0),_=he(),x=Rt(),I=_.state.isEnded$,C=_.ui.isMobile,R=x.ads.isMobileGoToSiteButton,A=q(void 0),E=q(void 0),k=!1,Q=_.ads.playbackState,H=_.ads.canSkip,z=_.ads.position,X=_.ads.secondsToWatchBeforeSkip,se=v(()=>r()&&s()!=="inactive"),Z=v(()=>l()&&s()!=="inactive"&&R);Vt(()=>{let U=_.getAdmanWrapper();if(Hl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[(0,Hl.now)(),f()]}),!f()){U.onAdmanLoadingError();return}let O=()=>{var Re;let{width:xe,height:Oe}=be(_.ui.playerSize),it=be(_.ui.isFullscreen),ne=(Re=m())!=null?Re:be(_.ui.isAutoplay),ce=x.ads.paramsOverride;return{width:xe,height:Oe,isFullscreen:it,isAutoplay:ne,adsContainer:n(A),adsVideoElement:n(E),slotId:f(),params:p(),paramsOverride:ce,duration:$(),externalApi:y()}},Ge=async xe=>{xe&&await ho();let Oe=O();await U.initAdman(Oe),k=!0},K=new AbortController,ae=()=>{K.abort()};return window.AdmanHTML?Ge(!0).catch(()=>{U.onAdmanLoadingError()}):U.loadAdman(K.signal).then(()=>Ge(!1)).catch(()=>{U.onAdmanLoadingError()}),()=>{Hl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[(0,Hl.now)(),f()]}),!k&&ae()}});var oe=_y(),J=T(oe);{var Ce=U=>{var O=hy();b(U,O)};V(J,U=>{l()&&U(Ce)})}var me=P(J,2);Xe(me,U=>N(E,U),()=>n(E));var ee=P(me,2);{var _e=U=>{nm(U,{get position(){return d()},get secondsToWatchBeforeSkip(){return a()},get skipAd(){return _.actions.internal.skipAd}})};V(ee,U=>{n(se)&&U(_e)})}var we=P(ee,2);{var ge=U=>{om(U,{})};V(we,U=>{u()&&U(ge)})}var pe=P(we,2);{var Qe=U=>{rm(U,{})};V(pe,U=>{n(Z)&&U(Qe)})}S(oe),Xe(oe,U=>N(A,U),()=>n(A)),b(t,oe),F(),o()}var jo=t=>{if(!isFinite(t))return"00:00";let e=Math.round(t),i=Math.floor(e/(60*60));e-=i*3600;let o=Math.floor(e/60);e-=o*60;let r=[o,e].map(s=>String(s).padStart(2,"0")).join(":");return i>0&&(r=`${i}:${r}`),r};var $y=Ie('<path fill="#fff"></path>'),yy=Ie("<path></path><!>",1);function ec(t,e){let i=g(e,"isActive",3,!1),o=v(()=>i()?"live-active-icon":"live-icon"),r=v(()=>i()?"var(--timeline-slider-filled-active-live-bg, #FF3347)":void 0),s="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.32 9.31-2.55-7.82a1 1 0 0 1-.12-.37L19 6.1a1 1 0 1 1 2-.2l2 6.4 2-6.4a1 1 0 0 1 2 .2v.02a1 1 0 0 1-.13.37l-2.55 7.82a1 1 0 0 1-.95.69h-.74a1 1 0 0 1-.95-.69";Ze(t,{width:"42",height:"20",get testId(){return n(o)},get fill(){return n(r)},children:(l,d)=>{var a=yy(),u=ue(a),f=P(u);{var p=m=>{var $=$y();Me($,"d",s),b(m,$)};V(f,m=>{i()&&m(p)})}D(()=>Me(u,"d",`M5 0h32s5 0 5 5v10s0 5 -5 5h-32s-5 0 -5 -5v-10s0 -5 5 -5${i()?"":"M5.5 2h31s3.5 0 3.5 3.5v9s0 3.5-3.5 3.5h-31s-3.5 0-3.5-3.5v-9s0-3.5 3.5-3.5"+s}z`)),b(l,a)},$$slots:{default:!0}})}var xy=L('<div class="equalizer s-a"><div class="col s-a"></div> <div class="col s-a"></div> <div class="col s-a"></div></div>'),wy=L('<div class="live-icon s-a"><!></div>'),Sy=L('<span class="text s-a"> </span>'),Cy=L("<div><!> <!></div>"),Ty={hash:"s-a",code:".wrapper.s-a{background-color:var(--black-alpha-40);border-radius:4px;padding:2px 6px;transition:visibility var(--controls-transition-duration),opacity var(--controls-transition-duration);white-space:nowrap}.wrapper.live.s-a{background:var(--red);border-radius:2px;font-size:0;height:20px;line-height:20px;padding:0 7px}.equalizer.s-a{display:inline-block;height:10px;margin-right:4px;margin-top:-4px;position:relative;vertical-align:middle;width:10px}.live.s-a .equalizer:where(.s-a){margin-top:-2px}.equalizer.s-a .col:where(.s-a){animation:1.5s linear infinite alternate;animation-play-state:paused;background:var(--btn-color,--white);bottom:0;height:10px;margin-right:2px;position:absolute;transform-origin:50% 100%;width:2px}.playing.s-a .equalizer:where(.s-a) .col:where(.s-a){animation-play-state:running}.equalizer.s-a .col:where(.s-a):first-child{animation-name:s-a-thumb-timer-equalizer-col1;left:0}.equalizer.s-a .col:where(.s-a):nth-child(2){animation-name:s-a-thumb-timer-equalizer-col2;left:3px}.equalizer.s-a .col:where(.s-a):nth-child(3){animation-name:s-a-thumb-timer-equalizer-col3;left:6px}.live-icon.s-a{display:inline-block;height:20px;margin:0 -7px;vertical-align:middle;width:42px}@keyframes s-a-thumb-timer-equalizer-col1{0%{transform:scaleY(.1)}25%{transform:scaleY(.8)}50%{transform:scaleY(.4)}75%{transform:scaleY(.6)}to{transform:scaleY(.1)}}@keyframes s-a-thumb-timer-equalizer-col2{0%{transform:scaleY(1)}25%{transform:scaleY(.3)}50%{transform:scaleY(.9)}75%{transform:scaleY(.6)}to{transform:scaleY(1)}}@keyframes s-a-thumb-timer-equalizer-col3{0%{transform:scaleY(.6)}25%{transform:scaleY(.9)}50%{transform:scaleY(.1)}75%{transform:scaleY(.9)}to{transform:scaleY(.6)}}.text.s-a{color:var(--controls-time);font-size:13px;font-weight:500;line-height:16px}"};function tc(t,e){G(t,Ty);let i=g(e,"withEqualizer",3,!1),o=g(e,"isLive",3,!1),r=g(e,"isPlaying",3,!1);var s=Cy();let l;var d=T(s);{var a=m=>{var $=xy();b(m,$)};V(d,m=>{i()&&m(a)})}var u=P(d,2);{var f=m=>{var $=wy(),y=T($);ec(y,{isActive:!0}),S($),b(m,$)},p=m=>{var $=Sy(),y=T($,!0);S($),D(()=>ve(y,e.time)),b(m,$)};V(u,m=>{o()?m(f):m(p,!1)})}S(s),D(m=>l=re(s,1,"wrapper s-a",null,l,m),[()=>({live:o(),playing:r()})]),b(t,s)}var Ul=(t,e,i)=>{let o;return()=>(window.clearTimeout(o),t?o=window.setTimeout(()=>e.set(!0),i):e.set(!1),()=>window.clearTimeout(o))};var Iy=L('<div role="timer" data-testid="thumb-timer"><!></div>'),Ey={hash:"s-j",code:".thumb-timer.s-j{bottom:0;margin:8px;position:absolute;right:0;transition:visibility var(--controls-transition-duration),opacity var(--controls-transition-duration);z-index:var(--thumb-timer-z-index)}"};function ic(t,e){B(e,!0),G(t,Ey);let[i,o]=Ne(),r=()=>w(f,"$disabled",i),s=g(e,"isHidden",3,!1),l=g(e,"isLive",3,!1),d=g(e,"isPlaying",3,!1),a=Rt(),u=v(()=>jo(e.duration-e.position)),f=de(!1);var p=Iy();let m;var $=T(p);tc($,{get time(){return n(u)},get isLive(){return l()},get isPlaying(){return d()},withEqualizer:!0}),S(p),Ms(p,()=>Ul(s()&&a.features.usePerformanceFix,f,a.disableInvisibleComponentsTimeout)),D(y=>m=re(p,1,"thumb-timer s-j",null,m,y),[()=>({"out-of-flow":r(),hidden:s()})]),b(t,p),F(),o()}var zl=t=>{if(!navigator.clipboard){j_(t);return}navigator.clipboard.writeText(t).catch(()=>j_(t))};function j_(t){if(document.queryCommandSupported&&document.queryCommandSupported("copy")){let e=document.createElement("textarea");e.textContent=t,e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e),e.select();try{document.execCommand("copy")}finally{document.body.removeChild(e)}}}var rb=require("@vkontakte/videoplayer-core/es2018");var am=require("@vkontakte/videoplayer-core/es2018");var sm="focus-hidden";var Mr=t=>{t.stopPropagation(),t.preventDefault()},lm=t=>{var e,i;(i=(e=t.parentNode)==null?void 0:e.firstElementChild)==null||i.classList.remove(sm)},Py=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},Ay=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},Ly=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},My=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},X_=t=>t.code==="Escape",Vy=t=>t.code==="ArrowLeft",oc=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},Z_=t=>{Ly(t)?(Mr(t),Ay(t.target)):My(t)&&(Mr(t),Py(t.target))},ra=t=>!am.clientChecker.device.isAndroid&&(t==null?void 0:t.detail)===0||am.clientChecker.device.isAndroid&&(t==null?void 0:t.pointerType)==="",Wl=async(t,e,i)=>{await ho(),t&&!t.classList.contains("opened")&&!e&&be(i)&&(await ho(),i.set(!1),t.focus())},J_=async(t,e,i)=>{await ho(),t&&!e&&be(i)&&(i.set(!1),t.focus())},nc=async(t,e,i,o=!1)=>{if(await ho(),!!t&&e&&!o){let s=t.children[0];s==null||s.classList.toggle(sm,!i),s==null||s.focus()}},eb=async(t,e)=>{setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)},Xu=(t,e)=>{Z_(t),lm(t.target),X_(t)&&(Mr(t),e())},Zu=async(t,e)=>{oc(t,["ArrowRight"])&&(Mr(t),e())},tb=async(t,e,i)=>{if(Z_(t),Vy(t)){Mr(t),e();return}X_(t)&&(Mr(t),i())},Kl=(t,e)=>{oc(t)&&(Mr(t),e())},ib=(t,e,i)=>{if(oc(t))Mr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),Mr(t);return}o==="ArrowRight"&&!e&&(i(!0),Mr(t))}},ob=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,r=e.top+i;return{right:o,bottom:r}},nb=t=>{if(!t)return{top:0,left:0};let e=t.getBoundingClientRect(),i=-58,o=8,r=e.left+o;return{bottom:e.bottom+i,left:r}};var za=require("@vkontakte/videoplayer-shared/es2018");var es={"copy-link":100,"copy-link-timestamp":200,"copy-embed-code":300,pip:400,"video-loop":500,rotate:600,report:700,"save-debug":800,"save-trace":900,"debug-info":1e3};var dm=require("@vkontakte/videoplayer-shared/es2018");var Ny=(t,e)=>{Kl(t,()=>e())},Dy=L('<li class="item s-1q" role="menuitem" tabindex="0"> </li>'),Oy={hash:"s-1q",code:".item.s-1q{color:hsla(0,0%,100%,.72);cursor:pointer;display:block;font-size:13px;letter-spacing:-.14px;line-height:18px;padding:8px 16px;position:relative;white-space:nowrap}.item.s-1q:hover{background:rgba(66,66,66,.5);color:var(--white)}"};function cm(t,e){B(e,!0),G(t,Oy);let i=g(e,"onClick",3,dm.noop),o=g(e,"closeContextMenu",3,dm.noop),r=d=>{d==null||d.stopPropagation(),i()(),o()()};var s=Dy();s.__click=r,s.__keydown=[Ny,r];var l=T(s,!0);S(s),D(()=>{var d;Me(s,"aria-label",(d=e.ariaLabel)!=null?d:e.label),Me(s,"data-testid",e.id),ve(l,e.label)}),b(t,s),F()}Ye(["click","keydown"]);var Ua=(t,e)=>t.weight-e.weight;var ql=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(ql||{});var By=(t,e)=>{Xu(t,e)},Fy=t=>{t.preventDefault()},Hy=L('<ul role="menu" class="s-1c"></ul>'),Uy={hash:"s-1c",code:"ul.s-1c{background:rgba(0,0,0,.72);border-radius:8px;list-style:none;margin:0;max-height:100%;max-width:100%;overflow-x:hidden;overflow-y:auto;padding:6px 0;position:absolute;transition:visibility .1s,opacity .1s;z-index:var(--context-menu-z-index)}"};function um(t,e){B(e,!0),G(t,Uy);let[i,o]=Ne(),r=()=>w(Ce,"$playerPhase",i),s=()=>w(se,"$isLive$",i),l=()=>w(me,"$isPiPEnabled$",i),d=()=>w(X,"$chromecastState$",i),a=()=>w(ee,"$pictureInPictureApiIsActive$",i),u=()=>w(J,"$isLooped$",i),f=()=>w(Z,"$positionExact$",i),p=()=>w(Q,"$additionalContextMenuItems$",i),m=g(e,"visible",3,!1),$=g(e,"position",19,()=>({top:0,left:0})),y=g(e,"playerContainerRef",3,void 0),_=g(e,"menuElementRef",15,void 0),x=q(0),I=q(0),C=he(),{pictureInPicture$:R}=Co(),A=Rt(),E=C.ui.contextMenu.visible$,k=C.ui.debugPanelVisible,Q=C.ui.additionalContextMenuItems$,H=C.ui.t,z=C.actions.internal.togglePictureInPicture,X=C.state.chromecastState$,se=C.state.isLive$,Z=C.state.positionExact$,oe=C.state.isInteractive,J=C.state.looped$,Ce=C.playerPhase,{isEnabled$:me,isActive$:ee}=R,_e=v(()=>r()==="video"),we=v(()=>!!s()&&n(_e)),ge=v(()=>["thumb","LiveWaitingStart","LiveWaitingRecover","LiveWaitingRecord"].includes(r())),pe=v(()=>{var fe;return A.features.copyVideoLink&&((fe=C.callbacks)==null?void 0:fe.onCopyVideoLink)}),Qe=v(()=>n(pe)&&!n(ge)&&!oe&&!n(we)),U=v(()=>{var fe;return!!((fe=C.callbacks)!=null&&fe.onCopyEmbedCodeClicked)}),O=v(()=>l()&&d()!==rb.ChromecastState.CONNECTED&&!oe&&n(_e)),Ge=v(()=>!oe&&!n(ge)&&!n(we)),K=v(()=>A.features.videoRotate&&!oe&&!n(ge)),ae=v(()=>A.showSupport&&!a()),xe=v(()=>A.features.saveTraceInfoToFile),Oe=()=>{var fe;E.set(!1),(fe=e.returnFocus)==null||fe.call(e)},it=(fe,Ue)=>{if(!_()||!y())return;let ze=_().getBoundingClientRect(),at=y().getBoundingClientRect();N(x,fe-at.left),N(I,Ue-at.top),n(x)+ze.width>at.width&&N(x,at.width-ze.width),n(I)+ze.height>at.height&&N(I,at.height-ze.height),N(x,Math.max(n(x),0),!0),N(I,Math.max(n(I),0),!0)};De(()=>{(async()=>{if(_()&&y()){await ho();let{top:Ue,left:ze,bottom:at,right:jt}=$(),Ft=ze!=null?ze:0,ci=Ue!=null?Ue:0,li=_().getBoundingClientRect();(0,za.isNullable)(ze)&&!(0,za.isNullable)(jt)&&(Ft=jt-li.width),(0,za.isNullable)(Ue)&&!(0,za.isNullable)(at)&&(ci=at-li.height),Ft=Math.max(Ft,0),ci=Math.max(ci,0),it(Ft,ci)}})()});let ne=()=>{C.actions.internal.videoRotate()},ce=()=>{(0,za.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),C.actions.internal.reportProblem(),C.actions.internal.pause()},Re=()=>{let fe=C.actions.internal.getDebugTextData();if(A.features.saveDebugInfoToFile){let Ue=new Blob([...fe],{type:"plain/text"}),ze=window.URL.createObjectURL(Ue);Na(ze,"vk_player_debug_info","txt")}else zl(C.actions.internal.getDebugTextData())},Ve=()=>{let fe=C.actions.internal.getTraceTextData(),Ue=new Blob([...fe],{type:"application/json"}),ze=window.URL.createObjectURL(Ue);Na(ze,"vk_player_trace_info","json")},et=()=>{k.set(!0)},ke=async()=>{var fe;try{z()}finally{(fe=e.returnFocus)==null||fe.call(e)}},Te=()=>{C.actions.internal.setLooped(!u())},Be=()=>{var fe,Ue;if(n(U)){let ze=(Ue=(fe=C.callbacks)==null?void 0:fe.onCopyEmbedCodeClicked)==null?void 0:Ue.call(fe);ze&&zl(ze)}},It=(fe=!1)=>{var Ue,ze;if((Ue=C.callbacks)!=null&&Ue.onCopyVideoLink){let at=(ze=C.callbacks)==null?void 0:ze.onCopyVideoLink(fe,f());at&&zl(at)}},$t=v(()=>A.features.saveDebugInfoToFile?H("menu_save_debug"):H("menu_copy_debug")),Ot=v(()=>n(pe)?{id:"copy-link",weight:es["copy-link"],label:H("menu_copy_video_link"),onClick:()=>It()}:void 0),ct=v(()=>n(Qe)?{id:"copy-link-timestamp",weight:es["copy-link-timestamp"],label:H("menu_copy_video_link_with_timestamp"),onClick:()=>It(!0)}:void 0),Et=v(()=>n(U)?{id:"copy-embed-code",weight:es["copy-embed-code"],label:H("menu_copy_embed_code"),onClick:Be}:void 0),ei=v(()=>n(O)?{id:"pip",weight:es.pip,label:a()?H("menu_pip_close"):H("menu_pip"),onClick:ke}:void 0),kt=v(()=>n(Ge)?{id:"video-loop",weight:es["video-loop"],label:u()?H("menu_video_loop_off"):H("menu_video_loop_on"),ariaLabel:H("aria_label_menu_loop"),onClick:Te}:void 0),Dt=v(()=>n(K)?{id:"rotate",weight:es.rotate,label:H("menu_video_rotate"),ariaLabel:H("aria_label_menu_rotate"),onClick:ne}:void 0),Ht=v(()=>n(ae)?{id:"report",weight:es.report,label:H("menu_report"),ariaLabel:`${H("menu_report")}. ${H("aria_label_new_tab_alert")}`,onClick:ce}:void 0),Y=v(()=>({id:"save-debug",weight:es["save-debug"],label:n($t),onClick:Re})),Ee=v(()=>n(xe)?{id:"save-trace",weight:es["save-trace"],label:H("menu_save_debug"),onClick:Ve}:void 0),le=v(()=>({id:"debug-info",weight:es["debug-info"],label:H("menu_debug_overlay"),ariaLabel:H("aria_label_menu_debug_overlay"),onClick:et})),$e=v(()=>[n(Ot),n(ct),n(Et),n(ei),n(kt),n(Dt),n(Ht),n(Y),n(Ee),n(le),...p()].filter(fe=>!!fe).sort(Ua));var Le=Ae(),nt=ue(Le);{var St=fe=>{var Ue=Hy();Ue.__contextmenu=[Fy],Ue.__keydown=[By,Oe],bi(Ue,21,()=>n($e),ze=>ze.id,(ze,at)=>{cm(ze,{get id(){return n(at).id},get label(){return n(at).label},get ariaLabel(){return n(at).ariaLabel},get onClick(){return n(at).onClick},closeContextMenu:Oe})}),S(Ue),Xe(Ue,ze=>_(ze),()=>_()),D(()=>{var ze,at;return We(Ue,`top: ${(ze=n(I))!=null?ze:""}px; left: ${(at=n(x))!=null?at:""}px;`)}),b(fe,Ue)};V(nt,fe=>{m()&&fe(St)})}b(t,Le),F(),o()}Ye(["contextmenu","keydown"]);var Ju=class{constructor(e){this.value=e,this.next=null}};var Ql=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new Ju(e);this.top?(this.top.next=i,this.top=i):(this.top=i,this.bottom=i),this.size++,this.size>this.maxSize&&this.bottom&&(this.bottom=this.bottom.next)}getValuesFromBottom(){let e=[],i=this.bottom;for(;i;)e.push(i.value),i=i.next;return e}};var zy=L('<div class="container s-14"><canvas class="s-14"></canvas></div>'),Wy={hash:"s-14",code:".container.s-14{display:inline-block;height:16px;width:120px}canvas.s-14{margin-top:2px;transform:scaleY(-1)}"};function rc(t,e){B(e,!0),G(t,Wy);let i=g(e,"values",19,()=>[]),o=q(void 0),r=q(null),s=16,l=120,d=60,a=l/d;Vt(()=>{n(o).width=l,n(o).height=s,N(r,n(o).getContext("2d"),!0)});function u(m,$,y,_,x){x===0&&(x=1),m.fillStyle="#fff",m.fillRect($,y,_,x)}De(()=>{let m="";if(n(r)){let $=i()[0];for(let _=1;_<i().length;_++)i()[_]>$&&($=i()[_]);n(r).clearRect(0,0,l,s);let y=d-1;for(let _=i().length-1;_>=0;_--){let x=y*a,I=$>0?s*(i()[_]/$):0;u(n(r),x,0,a,I),m=I+" "+m,y--}}});var f=zy(),p=T(f);Xe(p,m=>N(o,m),()=>n(o)),S(f),b(t,f),F()}var pm=require("@vkontakte/videoplayer-shared/es2018");var Ky=(t,e)=>{t.stopPropagation(),pm.safeStorage.remove(Wd),e.set(!1)},qy=L('<div class="s-i"><div class="s-i">Video id</div> <span> </span></div>'),Qy=L('<div class="s-i"><div class="s-i">VSID</div> <span> </span></div>'),Gy=L('<div class="s-i"><div class="s-i">Provider</div> <span> </span></div>'),Yy=L('<div class="s-i"><div class="s-i">Streams</div> <span> </span></div>'),jy=L('<div class="s-i"><div class="s-i">Viewport</div> <span> </span></div>'),Xy=L('<div class="s-i"><div class="s-i">Video size</div> <span> </span></div>'),Zy=L('<div class="s-i"><div class="s-i">CDN host</div> <span> </span></div>'),Jy=L('<div class="s-i"><div class="s-i">Volume</div> <span> </span></div>'),e0=L('<div class="s-i"><div class="s-i">Position</div> <span> </span></div>'),t0=L('<div class="s-i"><div class="s-i">Buffer</div> <span> </span></div>'),i0=L('<div class="s-i"><div class="s-i">Nbuffer</div> <span> </span></div>'),o0=L('<div class="s-i"><div class="s-i">Live latency</div> <span> </span></div>'),n0=L('<div class="s-i"><div class="s-i">Segment</div> <span> </span></div>'),r0=L('<div class="s-i"><div class="s-i">Network</div> <!> <span> </span></div>'),s0=L('<div class="s-i"><div class="s-i">V bitrate</div> <!> <span> </span></div>'),a0=L('<div role="region"><button class="close s-i" title="закрыть">[x]</button> <div class="content s-i"><div class="s-i"><div class="s-i">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="s-i"><div class="s-i">Dropped</div> <span> </span></div> <!> <!> <div class="s-i"><div class="s-i">FPS</div> <!> <span> </span></div></div></div>'),l0={hash:"s-i",code:".container.s-i{background:rgba(28,28,28,.8);border-radius:4px;color:#fff;font-size:10px;left:20px;min-width:160px;position:absolute;text-align:left;top:45px;user-select:text;z-index:var(--debug-panel-z-index)}.container-mobile.s-i{left:16px;top:16px}button.close.s-i{background-color:transparent;border:none;color:#fff;cursor:pointer;outline:0;padding:0;position:absolute;right:5px;top:3px}.content.s-i{padding:5px}.content.s-i>div:where(.s-i)>div:where(.s-i){display:inline-block;padding:0 5px;text-align:right;width:60px}"};function sc(t,e){B(e,!0),G(t,l0);let[i,o]=Ne(),r=()=>w(d,"$isMobile",i),s=he(),l=s.ui.debugPanelVisible,d=s.ui.isMobile,a=q(si(s.actions.internal.getDebugPanelData())),u=s.actions.internal.getVideoElement(),f=q(0),p=q(0),m=q(0),$=new Ql(60),y=new Ql(60),_=new Ql(60),x=q(si([])),I=q(si([])),C=q(si([])),R=j("aria_label_debug_panel");Vt(()=>{pm.safeStorage.set(Wd,"true"),s.actions.internal.startLogging(),u&&(N(p,u.getVideoPlaybackQuality().droppedVideoFrames,!0),N(f,u.getVideoPlaybackQuality().totalVideoFrames,!0));let Y=window.setInterval(()=>{N(a,s.actions.internal.getDebugPanelData(),!0)},500),Ee;return u&&(Ee=window.setInterval(()=>{if(u){N(p,u.getVideoPlaybackQuality().droppedVideoFrames,!0);let le=u.getVideoPlaybackQuality().totalVideoFrames;N(m,le-n(f)),N(f,le,!0),$.push(n(m)),n(a).speed&&y.push(n(a).speed),n(a).bitrate&&_.push(n(a).bitrate),N(x,$.getValuesFromBottom(),!0),N(I,y.getValuesFromBottom(),!0),N(C,_.getValuesFromBottom(),!0)}},1e3)),()=>{s.actions.internal.stopLogging(),clearInterval(Y),Ee&&clearInterval(Ee)}});var A=a0();let E;var k=T(A);k.__click=[Ky,l];var Q=P(k,2),H=T(Q),z=P(T(H),2),X=T(z,!0);S(z),S(H);var se=P(H,2);{var Z=Y=>{var Ee=qy(),le=P(T(Ee),2),$e=T(le,!0);S(le),S(Ee),D(()=>ve($e,n(a).id)),b(Y,Ee)};V(se,Y=>{n(a).id&&Y(Z)})}var oe=P(se,2);{var J=Y=>{var Ee=Qy(),le=P(T(Ee),2),$e=T(le,!0);S(le),S(Ee),D(()=>ve($e,n(a).vsid)),b(Y,Ee)};V(oe,Y=>{n(a).vsid&&Y(J)})}var Ce=P(oe,2);{var me=Y=>{var Ee=Gy(),le=P(T(Ee),2),$e=T(le,!0);S(le),S(Ee),D(()=>ve($e,n(a).provider)),b(Y,Ee)};V(Ce,Y=>{n(a).provider&&Y(me)})}var ee=P(Ce,2);{var _e=Y=>{var Ee=Yy(),le=P(T(Ee),2),$e=T(le);S(le),S(Ee),D(()=>{var Le,nt;return ve($e,`Video: ${(Le=n(a).videoCodec||"")!=null?Le:""} ${n(a).hdr?"(HDR)":""}
57
+ &
58
+ Audio: ${(nt=n(a).audioCodec||"")!=null?nt:""} ${n(a).audioLanguage?`(${n(a).audioLanguage})`:""}`)}),b(Y,Ee)};V(ee,Y=>{(n(a).videoCodec||n(a).audioCodec)&&Y(_e)})}var we=P(ee,2);{var ge=Y=>{var Ee=jy(),le=P(T(Ee),2),$e=T(le,!0);S(le),S(Ee),D(()=>ve($e,n(a).viewport)),b(Y,Ee)};V(we,Y=>{n(a).viewport&&Y(ge)})}var pe=P(we,2);{var Qe=Y=>{var Ee=Xy(),le=P(T(Ee),2),$e=T(le,!0);S(le),S(Ee),D(()=>ve($e,n(a).videoSize)),b(Y,Ee)};V(pe,Y=>{n(a).videoSize&&Y(Qe)})}var U=P(pe,2);{var O=Y=>{var Ee=Zy(),le=P(T(Ee),2),$e=T(le,!0);S(le),S(Ee),D(()=>ve($e,n(a).cdn)),b(Y,Ee)};V(U,Y=>{n(a).cdn&&Y(O)})}var Ge=P(U,2);{var K=Y=>{var Ee=Jy(),le=P(T(Ee),2),$e=T(le);S(le),S(Ee),D(()=>{var Le;return ve($e,`${(Le=n(a).volume)!=null?Le:""} %`)}),b(Y,Ee)};V(Ge,Y=>{n(a).volume&&Y(K)})}var ae=P(Ge,2);{var xe=Y=>{var Ee=e0(),le=P(T(Ee),2),$e=T(le);S(le),S(Ee),D(Le=>ve($e,`${Le!=null?Le:""} s`),[()=>n(a).position.toFixed(2)]),b(Y,Ee)};V(ae,Y=>{n(a).position&&Y(xe)})}var Oe=P(ae,2);{var it=Y=>{var Ee=t0(),le=P(T(Ee),2),$e=T(le);S(le),S(Ee),D(Le=>ve($e,`${Le!=null?Le:""} s`),[()=>n(a).buffer.toFixed(2)]),b(Y,Ee)};V(Oe,Y=>{n(a).buffer&&Y(it)})}var ne=P(Oe,2);{var ce=Y=>{var Ee=i0(),le=P(T(Ee),2),$e=T(le);S(le),S(Ee),D(Le=>ve($e,`${Le!=null?Le:""} s`),[()=>n(a).nativeBuffer.toFixed(2)]),b(Y,Ee)};V(ne,Y=>{n(a).nativeBuffer&&Y(ce)})}var Re=P(ne,2);{var Ve=Y=>{var Ee=o0(),le=P(T(Ee),2),$e=T(le);S(le),S(Ee),D(Le=>ve($e,`${Le!=null?Le:""} s`),[()=>n(a).liveLatency.toFixed(2)]),b(Y,Ee)};V(Re,Y=>{n(a).liveLatency&&Y(Ve)})}var et=P(Re,2);{var ke=Y=>{var Ee=n0(),le=P(T(Ee),2),$e=T(le,!0);S(le),S(Ee),D(Le=>ve($e,Le),[()=>[{value:n(a).currentVideoSegmentLength,title:"Video:"},{value:n(a).currentAudioSegmentLength,title:"Audio:"}].filter(({value:Le})=>Le).map(({value:Le,title:nt})=>`${nt} ${((Le!=null?Le:0)/1e3).toFixed(2)} s`).join(" & ")]),b(Y,Ee)};V(et,Y=>{(n(a).currentVideoSegmentLength||n(a).currentAudioSegmentLength)&&Y(ke)})}var Te=P(et,2),Be=P(T(Te),2),It=T(Be);S(Be),S(Te);var $t=P(Te,2);{var Ot=Y=>{var Ee=r0(),le=P(T(Ee),2);rc(le,{get values(){return n(I)}});var $e=P(le,2),Le=T($e);S($e),S(Ee),D(nt=>ve(Le,`${nt!=null?nt:""} Kbps`),[()=>n(a).speed.toFixed(2)]),b(Y,Ee)};V($t,Y=>{n(a).speed&&Y(Ot)})}var ct=P($t,2);{var Et=Y=>{var Ee=s0(),le=P(T(Ee),2);rc(le,{get values(){return n(C)}});var $e=P(le,2),Le=T($e);S($e),S(Ee),D(nt=>ve(Le,`${nt!=null?nt:""} Kbps`),[()=>n(a).bitrate.toFixed(2)]),b(Y,Ee)};V(ct,Y=>{n(a).bitrate&&Y(Et)})}var ei=P(ct,2),kt=P(T(ei),2);rc(kt,{get values(){return n(x)}});var Dt=P(kt,2),Ht=T(Dt,!0);S(Dt),S(ei),S(Q),S(A),D(Y=>{var Ee,le;E=re(A,1,"container s-i",null,E,Y),Me(A,"aria-label",R),ve(X,n(a).version),ve(It,`${(Ee=n(p))!=null?Ee:""} / ${(le=n(f))!=null?le:""} frames`),ve(Ht,n(m))},[()=>({"container-mobile":r()})]),b(t,A),F(),o()}Ye(["click"]);var sb=require("@vkontakte/videoplayer-shared/es2018"),d0=(t,e)=>{t.stopPropagation(),e()()},c0=L('<div class="close s-13"></div>'),u0={hash:"s-13",code:'.close.s-13{cursor:pointer;height:16px;opacity:.8;position:relative;transition:opacity .2s;width:16px}.close.s-13:hover{opacity:1}.close.s-13:after,.close.s-13:before{background-color:var(--white);content:" ";height:16px;left:8px;position:absolute;width:2px}.close.s-13:before{transform:rotate(45deg)}.close.s-13:after{transform:rotate(-45deg)}'};function Rs(t,e){B(e,!0),G(t,u0);let i=g(e,"onClick",3,sb.noop);var o=c0();o.__click=[d0,i],b(t,o),F()}Ye(["click"]);var ab=require("@vkontakte/videoplayer-shared/es2018");var cn=t=>`width:${t}px;height:${t}px;`;var p0=Ie('<path d="m14.4 8.76 24.02 13.85a1.6 1.6 0 0 1 0 2.78L14.4 39.24a1.6 1.6 0 0 1-2.4-1.39v-27.7a1.6 1.6 0 0 1 2.4-1.39"></path>');function Mn(t,e){B(e,!0);let i=v(()=>cn(e.size));Ze(t,{get width(){return"48"},get height(){return"48"},get fill(){return e.fill},get style(){return n(i)},testId:"play-icon",get shadow(){return e.shadow},children:(o,r)=>{var s=p0();b(o,s)},$$slots:{default:!0}}),F()}var f0=L('<div class="timer s-12"><canvas class="timer-canvas s-12" width="100" height="100"></canvas> <!></div>'),m0={hash:"s-12",code:".timer.s-12{align-items:center;background:rgba(31,31,31,.65);border-radius:50%;display:flex;height:50px;justify-content:space-around;transition:background .2s;width:50px}.timer.s-12:hover{background:rgba(31,31,31,.85)}.timer-canvas.s-12{height:50px;position:absolute;width:50px}"};function ac(t,e){B(e,!0),G(t,m0);let i=g(e,"isRunning",3,!0),o=g(e,"onTimerEnded",3,ab.noop),r=5e3,s=q(void 0),l,d,a=0,u;De(()=>{i()&&Tt(()=>{d=Date.now(),a=requestAnimationFrame(p)})});let f=()=>{a&&(cancelAnimationFrame(a),a=0)},p=()=>{f(),i()&&(u=(Date.now()-d)/r,u<1?(l==null||l.clearRect(0,0,100,100),l==null||l.beginPath(),l==null||l.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*u),l==null||l.stroke(),a=requestAnimationFrame(p)):o()())};Vt(()=>{l=n(s).getContext("2d"),l&&(l.lineWidth=6,l.lineCap="round",l.strokeStyle="#fff")}),dn(()=>{f()});var m=f0(),$=T(m);Xe($,_=>N(s,_),()=>n(s));var y=P($,2);Mn(y,{get size(){return"24"}}),S(m),b(t,m),F()}var v0=(t,e,i)=>{e(!1),i()},g0=L('<div class="overlay s-19"></div> <div class="next-video s-19"><div class="top s-19"><div class="caption s-19"> </div> <!></div> <div class="row s-19"><div class="column s-19"><div class="thumb s-19"><div></div> <!></div></div> <div class="column s-19"><div class="title s-19"> </div></div></div></div>',1),h0={hash:"s-19",code:".overlay.s-19{background:rgba(0,0,0,.72);height:100%;position:absolute;width:100%}.next-video.s-19{display:flex;flex-direction:column;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:362px}.top.s-19{display:flex;justify-content:space-between}.caption.s-19{color:var(--white);font-size:11px;font-weight:700;opacity:.8;text-transform:uppercase}.row.s-19{background:rgba(48,48,48,.8);cursor:pointer;display:flex;flex-direction:row;height:102px;margin-top:6px;width:100%}.column.s-19{display:flex;flex-basis:50%;flex-direction:column}.thumb.s-19{align-items:center;background:no-repeat 50%;background-size:cover;display:flex;justify-content:space-around;position:relative}.thumb.s-19,.thumb-overlay.s-19{height:100%;width:100%}.thumb-overlay.s-19{position:absolute}.thumb-overlay.withOpacity.s-19{background:var(--black);opacity:.3}.title.s-19{color:var(--white);font-size:12px;font-weight:700;line-height:1.6;max-height:52px;overflow:hidden;padding:10px 16px}"};function fm(t,e){B(e,!0),G(t,h0);let[i,o]=Ne(),r=()=>w(d,"$autoplayNextEnabled$",i),s=()=>w(a,"$timerNextVideoRunning$",i),l=he(),d=l.ui.autoplayNextEnabled$,a=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,f=l.actions.internal.nextVideoAnnouncementShow,p=l.actions.internal.nextVideoAnnouncementClick,m=l.actions.internal.nextVideoAnnouncementAuto,$=l.actions.internal.nextVideoAnnouncementCancel,y=()=>{r()&&(u(!1),m())},_=()=>{e.clickCloseIcon(),$()};Vt(()=>{e.isHide||f(),e.isHide&&r()&&(u(!1),m())});var x=Ae(),I=ue(x);{var C=R=>{var A=g0(),E=P(ue(A),2),k=T(E),Q=T(k),H=T(Q,!0);S(Q);var z=P(Q,2);Rs(z,{onClick:_}),S(k);var X=P(k,2);X.__click=[v0,u,p];var se=T(X),Z=T(se),oe=T(Z);let J;var Ce=P(oe,2);{var me=ge=>{let pe=v(()=>s()&&r());ac(ge,{get isRunning(){return n(pe)},onTimerEnded:y})};V(Ce,ge=>{r()&&ge(me)})}S(Z),S(se);var ee=P(se,2),_e=T(ee),we=T(_e,!0);S(_e),S(ee),S(X),S(E),D((ge,pe)=>{ve(H,ge),We(Z,`background-image: url('${e.thumb}')`),J=re(oe,1,"thumb-overlay s-19",null,J,pe),ve(we,e.title)},[()=>j("end_screen_next_video"),()=>({withOpacity:r()})]),b(R,A)};V(I,R=>{e.isHide||R(C)})}b(t,x),F(),o()}Ye(["click"]);var aa=require("@vkontakte/videoplayer-core/es2018"),lb=require("@vkontakte/videoplayer-shared/es2018"),Vn=require("@vkontakte/videoplayer-statistics/es2018");var mm=(t,e)=>Math.min(+(t+e).toFixed(2),1),vm=(t,e)=>Math.max(+(t-e).toFixed(2),0),ep=(t,e,i)=>{let o=mm(e,i);e<1&&t.actions.internal.setVolume(o)},tp=(t,e,i)=>{let o=vm(e,i);e>0&&t.actions.internal.setVolume(o)};var sa=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:r})=>t?i?!0:(o==null||o(),!1):e?!0:(r==null||r(),!1);function ip(){var t,e,i;return(i=(e=(t=document.activeElement)==null?void 0:t.shadowRoot)==null?void 0:e.activeElement)!=null?i:null}var b0=(t,e)=>{e(t)},$0=L('<div class="keyboard-controls s-1d" tabindex="-1" role="region"><!></div>'),y0={hash:"s-1d",code:".keyboard-controls.s-1d{bottom:0;left:0;position:absolute;right:0;top:0}"};function gm(t,e){var Y,Ee;B(e,!0),G(t,y0);let[i,o]=Ne(),r=()=>w(Ce,"$disabledControls$",i),s=()=>w(it,"$isInteractiveTime$",i),l=()=>w(ne,"$showInteractiveTimeIndicatorTooltip$",i),d=()=>w(z,"$playbackState$",i),a=()=>w(O,"$isEnded$",i),u=()=>w(Qe,"$doubleForwardAvailable$",i),f=()=>w(pe,"$doubleForwardOn$",i),p=()=>w(Ge,"$overlayContainer$",i),m=()=>w(se,"$adPlaybackState",i),$=()=>w(Z,"$positionExact$",i),y=()=>w(oe,"$duration$",i),_=()=>w(xe,"$isAudioAvailable$",i),x=()=>w(J,"$volume$",i),I=()=>w(X,"$canChangePlaybackSpeed$",i),C=()=>w(me,"$muted$",i),R=()=>w(ee,"$currentSubtitle$",i),A=g(e,"nextButtonActive",3,!1),E=g(e,"prevButtonActive",3,!1),k=he(),Q=Rt(),H=k.getLogger().createComponentLog("KeyboardControls component"),z=k.state.playbackState$,X=k.state.canChangePlaybackSpeed$,se=k.ads.playbackState,Z=k.state.positionExact$,oe=k.state.duration$,J=k.state.volume$,Ce=k.ui.controls.disabledControls$,me=k.state.muted$,ee=k.state.currentSubtitle$,_e=k.ui.contextMenu.openedByHotKey$,we=k.ui.contextMenu.lastActiveElem$,ge=k.ui.contextMenu.visible$,pe=k.ui.doubleForwardOn$,Qe=k.ui.doubleForwardAvailable$,U=k.ui.contextMenu.position$,O=k.state.isEnded$,Ge=k.ui.overlayContainer$,K=(Y=k.callbacks)==null?void 0:Y.onAudioDoesNotExistHint,ae=(Ee=k.callbacks)==null?void 0:Ee.onAudioDisabledHint,xe=k.state.isAudioAvailable$,Oe=k.state.isAudioDisabled,it=k.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:ne}=Co(),ce=0,Re=!0,Ve=q(void 0),et=le=>(le!==Re&&(Re=le,ce=0),ce+=1,(Q.controls.seekStepKeyboard+Q.controls.seekStepKeyboard*ce)/1e3),ke=!0,Te=({type:le,repeat:$e,disableDoubleForward:Le})=>{let nt=()=>{if(!r().has("PLAY_BUTTON"))if(s()&&l()&&ne.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{k.actions.internal.togglePlay();let fe="PLAY";d()===aa.PlaybackState.PAUSED?fe="PAUSE":a()&&(fe="REPLAY"),e.showHotKeyHelpers({type:fe})}},St=le==="down";if(!u()||Le){St&&nt(),ke=!0;return}if(St)ke=!1;else if(ke)return;if(St){!$e&&e.startDoubleForwardActivationTimer();return}f()||nt(),e.stopDoubleForward(),ke=!0},Be=le=>{let $e=nb(p());U.set($e),we.set(le.target),_e.set(!0),ge.set(!0)},It=(le,$e=!1)=>{var ui,hi;let Le=le.target,nt=(ui=Le==null?void 0:Le.getAttribute("role"))==null?void 0:ui.includes("menuitem"),St=Le.classList.contains("btn"),fe=le.code;if(St&&fe==="Space")return!1;let Ue=r_.has(fe);if(nt&&Ue)return!1;let ze=!n_.has(fe);if(le.ctrlKey&&ze||le.altKey&&ze||le.metaKey)return!1;let at=nt&&fe==="Escape";s_.has(fe)||at||e.hideContextMenu();let jt=d()===aa.PlaybackState.PLAYING||d()===aa.PlaybackState.PAUSED,Ft=e.isAds&&(m()==="paused"||m()==="playing"),ci=!Ft&&!r().has("TIMELINE"),li=le.shiftKey&&["Digit1","Numpad1"].includes(fe);if(!li&&!(jt||Ft))return!1;H({message:`key down, code: ${fe}, isExternal = ${$e}`});let Di=!1,At=()=>{Di=!0,$e||le.preventDefault()};if(li)return Be(le),At(),!0;switch(fe){case"KeyJ":case"ArrowLeft":{if(!ci)break;if(le.ctrlKey||le.altKey){let mt=k.actions.internal.getPrevEpisode();k.actions.internal.seekToPrevEpisode(mt),mt&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:mt.text}),At()}else{let mt=le.shiftKey?et(!1):Q.controls.seekStepKeyboard/1e3,Xt=Math.max($()-mt,0);$()>0&&(k.actions.internal.seekTime(Xt,Vn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:mt.toString()}),At())}break}case"KeyL":case"ArrowRight":{if(!ci)break;if(le.ctrlKey||le.altKey){let mt=k.actions.internal.getNextEpisode();k.actions.internal.seekToNextEpisode(mt),mt&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:mt.text}),At()}else{let mt=le.shiftKey?et(!0):Q.controls.seekStepKeyboard/1e3,Xt=Math.min($()+mt,y());Math.round($())<Math.round(y())&&(k.actions.internal.seekTime(Xt,Vn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:mt.toString()}),At())}break}case"ArrowUp":{if(sa({isAudioDisabled:Oe,audioDisabledHintCallback:ae,isAudioAvailable:_(),audioIsNotExistHintCallback:K,isAds:e.isAds})){let mt=x(),Xt=Q.controls.volumeStepKeyboard,Oi=mt<=1;if(ep(k,mt,Xt),Oi){let Si=Math.round(mm(mt,Xt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Si}})}}At();break}case"ArrowDown":{if(sa({isAudioDisabled:Oe,audioDisabledHintCallback:ae,isAudioAvailable:_(),audioIsNotExistHintCallback:K,isAds:e.isAds})){let mt=x(),Xt=Q.controls.volumeStepKeyboard,Oi=mt>=0;if(tp(k,mt,Xt),Oi){let Si=Math.round(vm(mt,Xt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Si}})}}At();break}case"Comma":{if(le.shiftKey){if(!f()&&I()){let mt=k.actions.internal.decrementPlaybackRate();e.showHotKeyHelpers({type:"RATE_DOWN",text:mt==null?void 0:mt.displayValue}),At()}}else{if(Ft||d()!==aa.PlaybackState.PAUSED)break;let mt=Math.max($()-Q.controls.seekStepFrame/1e3,0);$()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),k.actions.internal.clearDelayedBufferingCheckTimeout(),k.actions.internal.seekTime(mt,Vn.SeekAction.DOUBLE_TAP),At())}break}case"Period":{if(le.shiftKey){if(!f()&&I()){let mt=k.actions.internal.incrementPlaybackRate();e.showHotKeyHelpers({type:"RATE_UP",text:mt==null?void 0:mt.displayValue}),At()}}else{if(Ft||d()!==aa.PlaybackState.PAUSED)break;let mt=Math.min($()+Q.controls.seekStepFrame/1e3,y());$()<y()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),k.actions.internal.clearDelayedBufferingCheckTimeout(),k.actions.internal.seekTime(mt,Vn.SeekAction.DOUBLE_TAP),At())}break}case"KeyK":case"Space":Te({type:"down",repeat:le.repeat,disableDoubleForward:"KeyK"===fe}),At();break;case"KeyM":{sa({isAudioDisabled:Oe,audioDisabledHintCallback:ae,isAudioAvailable:_(),audioIsNotExistHintCallback:K,isAds:e.isAds})&&(e.showHotKeyHelpers({type:C()?"VOLUME":"MUTE"}),k.actions.internal.toggleMuted()),At();break}case"KeyF":e.toggleFullscreen(),At();break;case"KeyC":k.actions.internal.toggleSubtitle(),R().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(hi=R())==null?void 0:hi.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),At();break;case"KeyI":k.actions.internal.togglePictureInPicture(),At();break;case"Digit1":case"Numpad1":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.1,Vn.SeekAction.DOUBLE_TAP),At();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.2,Vn.SeekAction.DOUBLE_TAP),At();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.3,Vn.SeekAction.DOUBLE_TAP),At();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.4,Vn.SeekAction.DOUBLE_TAP),At();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.5,Vn.SeekAction.DOUBLE_TAP),At();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.6,Vn.SeekAction.DOUBLE_TAP),At();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.7,Vn.SeekAction.DOUBLE_TAP),At();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.8,Vn.SeekAction.DOUBLE_TAP),At();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.9,Vn.SeekAction.DOUBLE_TAP),At();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(0,Vn.SeekAction.DOUBLE_TAP),At();break;case"Slash":{le.shiftKey&&Q.features.hotKeyMapModal&&(e.showKeyMap(),At());break}case"KeyN":le.shiftKey&&A()&&(k.actions.internal.nextVideoClick(),At());break;case"KeyP":le.shiftKey&&E()&&(k.actions.internal.prevVideoClick(),At());break;case"ShiftLeft":case"ShiftRight":At();break;case"Tab":case"Escape":case"Enter":break;default:(0,lb.checkNever)(fe);break}return Di},$t=le=>{let $e=le.code;if(le.ctrlKey||le.altKey||le.metaKey)return;let Le=d()===aa.PlaybackState.PLAYING||d()===aa.PlaybackState.PAUSED,nt=e.isAds&&(m()==="paused"||m()==="playing");if(Le||nt)switch($e){case"ShiftLeft":case"ShiftRight":ce=0;break;case"Space":Te({type:"up"});break}},Ot=j("aria_label_video_player"),ct=()=>{var le;return(le=n(Ve))==null?void 0:le.focus()},Et=()=>n(Ve)===ip(),ei=le=>le.type==="keydown"?It(le,!0):(le.type==="keyup"&&$t(le),!1);var kt=$0();kt.__keyup=$t,kt.__keydown=[b0,It];var Dt=T(kt);ii(Dt,()=>{var le;return(le=e.children)!=null?le:vt}),S(kt),Xe(kt,le=>N(Ve,le),()=>n(Ve)),D(()=>Me(kt,"aria-label",Ot)),b(t,kt);var Ht=F({focus:ct,isFocused:Et,handleExternalKeyboardEvent:ei});return o(),Ht}Ye(["keyup","keydown"]);var x0=L('<div class="container s-o"><div class="dot s-o"></div> <div class="dot s-o"></div> <div class="dot s-o"></div></div>'),w0={hash:"s-o",code:".container.s-o{display:flex;left:50%;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%)}.dot.s-o:first-child{animation-delay:0s}.dot.s-o:nth-child(2){animation-delay:.18s}.dot.s-o:nth-child(3){animation-delay:.36s}@keyframes s-o-dot_animation{0%{opacity:.2}30%{opacity:1}to{opacity:.2}}.dot.s-o{animation-duration:.75s;animation-iteration-count:infinite;animation-name:s-o-dot_animation;background:var(--btn-color);border-radius:4px;height:8px;width:8px}.dot.s-o+.dot:where(.s-o){margin-left:4px}"};function Wa(t,e){G(t,w0);let i=g(e,"style",3,"");var o=x0();D(()=>We(o,i())),b(t,o)}var S0=Ie('<path d="M5.26 5.26a.9.9 0 0 1 1.28 0L12 10.73l5.46-5.47a.9.9 0 0 1 1.28 1.28L13.27 12l5.47 5.46a.9.9 0 1 1-1.28 1.28L12 13.27l-5.46 5.47a.9.9 0 1 1-1.28-1.28L10.73 12 5.26 6.54a.9.9 0 0 1 0-1.28Z"></path>');function hm(t,e){Ze(t,{get fill(){return e.fill},children:(i,o)=>{var r=S0();b(i,r)},$$slots:{default:!0}})}var Ka=require("@vkontakte/videoplayer-shared/es2018"),C0=t=>{t.stopPropagation()},T0=L("<button><!></button>"),I0={hash:"s-1u",code:"button.btn.s-1u{align-items:center;display:flex;flex-direction:row;height:var(--controls-height);justify-content:center;margin:0;padding:8px;will-change:opacity}button.w-max.s-1u{width:100%}button.btn--live.s-1u{padding:10px 4px}button.btn-jc-l.s-1u{justify-content:left}button.btn-m.s-1u{background-color:rgba(0,0,0,.56);border-radius:12px;height:44px;left:12px;position:absolute;top:50%;transform:translateY(-50%);transition:opacity var(--controls-transition-duration);width:44px}button.btn-m.s-1u,button.btn-m--play.s-1u{align-items:center;display:flex;justify-content:center}button.btn-m--play.s-1u{height:var(--big-play-size);padding:16px;position:relative;width:var(--big-play-size)}button.btn-m--next.s-1u,button.btn-m--prev.s-1u{height:50px;position:absolute;width:50px}button.btn-m--prev.s-1u{right:calc(100% + 35px)}button.btn-m--next.s-1u{left:calc(100% + 35px)}button.btn.s-1u:disabled{cursor:default;pointer-events:none}button.btn.s-1u:not(.btn-full-opacity):disabled{opacity:.4}button.btn.s-1u:not(:disabled):hover{opacity:.8}button.pr-0.s-1u{padding-right:0}button.pl-0.s-1u{padding-left:0}"};function Kt(t,e){B(e,!0),G(t,I0);let i=g(e,"className",3,""),o=g(e,"style",3,""),r=g(e,"disabled",3,void 0),s=g(e,"testId",3,void 0),l=g(e,"ariaHidden",3,void 0),d=g(e,"ariaLabel",3,void 0),a=g(e,"ref",15,void 0),u=g(e,"ariaKeyShortCut",3,void 0),f=g(e,"ariaExpanded",3,void 0),p=g(e,"tabIndex",3,0),m=g(e,"click",3,Ka.noop),$=g(e,"focus",3,Ka.noop),y=g(e,"blur",3,Ka.noop),_=v(()=>m()===Ka.noop?null:A=>{A.stopPropagation(),m()(A)}),x=v(()=>$()===Ka.noop?null:A=>{A.preventDefault(),$()()}),I=v(()=>y()===Ka.noop?null:A=>{A.preventDefault(),y()()});var C=T0();C.__pointerdown=[C0],C.__click=function(...A){var E;(E=n(_))==null||E.apply(this,A)};var R=T(C);ii(R,()=>{var A;return(A=e.children)!=null?A:vt}),S(C),Xe(C,A=>a(A),()=>a()),D(()=>{var A,E,k,Q,H,z,X,se;re(C,1,`btn ${(A=i())!=null?A:""}`,"s-1u"),We(C,o()||null),C.disabled=(E=r())!=null?E:null,Me(C,"aria-hidden",(k=l())!=null?k:null),Me(C,"aria-label",(Q=d())!=null?Q:null),Me(C,"aria-keyshortcuts",(H=u())!=null?H:null),Me(C,"aria-expanded",(z=f())!=null?z:null),Me(C,"data-testid",(X=s())!=null?X:null),Me(C,"tabindex",p()),Me(C,"role",e.role),Me(C,"aria-checked",(se=e.areaChecked)!=null?se:null)}),dt("focus",C,function(...A){var E;(E=n(x))==null||E.apply(this,A)}),dt("blur",C,function(...A){var E;(E=n(I))==null||E.apply(this,A)}),b(t,C),F()}Ye(["pointerdown","click"]);var E0=(t,e)=>{t.key==="Escape"&&e.onClose(),(t.key==="ArrowUp"||t.key==="ArrowDown")&&t.stopPropagation()},k0=L('<div class="modal-header s-1n"><h3 class="modal-title s-1n"> </h3> <!></div>'),P0=L('<div class="modal-overlay s-1n"><div class="modal-container s-1n" role="dialog" aria-modal="true"><!> <div class="modal-scroll s-1n" tabindex="0" role="scrollbar"><div class="modal-main s-1n"><!></div></div></div></div>'),A0={hash:"s-1n",code:'.modal-overlay.s-1n{align-items:center;background:transparent;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0;z-index:var(--modal-z-index)}.modal-container.s-1n{background:var(--mobile-settings-bg);border-radius:8px;color:var(--white);display:flex;flex-direction:column;height:calc(100% - 24px);max-height:490px;max-width:600px;width:calc(100% - 32px)}.modal-header.s-1n{align-items:start;border-bottom:1px solid var(--white-alpha-24);box-sizing:border-box;display:flex;height:40px;justify-content:space-between;padding:8px 10px}.modal-title.s-1n{color:var(--white);font-feature-settings:"clig" off,"liga" off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;margin:3px 0 0 6px}.modal-scroll.s-1n{height:100%;margin:8px 4px 8px 0;overflow-x:hidden;overflow-y:auto}.modal-scroll.s-1n::-webkit-scrollbar{width:8px}.modal-scroll.s-1n::-webkit-scrollbar-track{background-color:transparent;border-radius:4px;box-shadow:none;margin-right:2px}.modal-scroll.s-1n::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:#666;border:1px solid transparent;border-radius:5px;min-height:40px}.modal-scroll.s-1n::-webkit-scrollbar-thumb:hover{background-color:#777}.modal-main.s-1n{margin:-8px -4px 0 0}'};function _m(t,e){B(e,!0),G(t,A0);let i=g(e,"showHeader",3,!0),o=g(e,"showCloseCross",3,!0),r=q(void 0),s=q(void 0),{webApi:{focusManager:l}}=he(),d=j("hotkey_map_modal_close_btn_text");Vt(()=>{var _;return(_=n(r))==null||_.focus(),n(s)&&l&&(l.setContainerForFocusLock(n(s)),l.activateLock()),()=>l==null?void 0:l.deactivateLock()});var a=P0();a.__keydown=[E0,e];var u=T(a),f=T(u);{var p=_=>{var x=k0(),I=T(x),C=T(I,!0);S(I);var R=P(I,2);{var A=E=>{Kt(E,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",get ariaLabel(){return d},children:(k,Q)=>{hm(k,{fill:"currentColor"})},$$slots:{default:!0}})};V(R,E=>{o()&&E(A)})}S(x),D(()=>ve(C,e.title)),b(_,x)};V(f,_=>{i()&&_(p)})}var m=P(f,2),$=T(m),y=T($);ii(y,()=>{var _;return(_=e.children)!=null?_:vt}),S($),S(m),Xe(m,_=>N(r,_),()=>n(r)),S(u),Xe(u,_=>N(s,_),()=>n(s)),S(a),b(t,a),F()}Ye(["keydown"]);var L0=new Set(["BR"]),db=t=>{var r;let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),o=i.length;for(;o--;){let s=i[o],l=s.tagName;L0.has(l)||(r=s.parentElement)==null||r.removeChild(s)}return e.innerHTML};var M0=L('<li class="hot-key-map-item s-1f"><span class="hot-key-map-item-description s-1f"><!></span> &nbsp; <span class="hot-key-map-item-value s-1f"> </span></li>'),V0=L('<div class="hot-key-map-group s-1f"><h5 class="hot-key-map-group-title s-1f"> </h5> <ul class="hot-key-map-group-items s-1f"></ul></div>'),R0=L('<div class="hot-key-map s-1f"></div>'),N0={hash:"s-1f",code:'.hot-key-map.s-1f{box-sizing:border-box;color:var(--black);overflow-x:hidden}.hot-key-map-group.s-1f{border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px}.hot-key-map-group.s-1f:last-child{border-bottom:none}.hot-key-map-group-title.s-1f{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.s-1f,.hot-key-map-item.s-1f{margin:0;padding:12px 0;width:100%}.hot-key-map-group-items.s-1f{box-sizing:border-box;list-style:none;margin:0;padding:0}.hot-key-map-item.s-1f{align-items:center;box-sizing:border-box;display:flex;justify-content:space-between;--videoplayer-hotkey-item-value-width:156px;--videoplayer-hotkey-item-value-padding-left:24px}.hot-key-map-item-description.s-1f{color:var(--white-alpha-72);max-width:388px;width:calc(100% - var(--videoplayer-hotkey-item-value-width) - var(--videoplayer-hotkey-item-value-padding-left))}.hot-key-map-item-value.s-1f{color:var(--white);letter-spacing:-.14px;padding-left:var(--videoplayer-hotkey-item-value-padding-left);width:var(--videoplayer-hotkey-item-value-width)}.hot-key-map-item-description.s-1f,.hot-key-map-item-value.s-1f{font-feature-settings:"clig" off,"liga" off;font-size:13px;font-style:normal;font-weight:400;line-height:16px}'};function bm(t,e){B(e,!1),G(t,N0);let[i,o]=Ne(),r=()=>w(l,"$data",i),s=he(),{data:l,show:d}=s.ui.modals.hotKeyMap,a=()=>{d.set(!1)};So(),_m(t,{get title(){return r().title},onClose:a,children:(u,f)=>{var p=R0();bi(p,5,()=>r().groups,({title:m,items:$})=>m,(m,$)=>{let y=()=>n($).title,_=()=>n($).items;var x=V0(),I=T(x),C=T(I,!0);S(I);var R=P(I,2);bi(R,5,_,({description:A,value:E})=>E,(A,E)=>{let k=()=>n(E).description,Q=()=>n(E).value;var H=M0(),z=T(H),X=T(z);Bd(X,()=>db(k())),S(z);var se=P(z,2),Z=T(se,!0);S(se),S(H),D(()=>ve(Z,Q())),b(A,H)}),S(R),S(x),D(()=>ve(C,y())),b(m,x)}),S(p),b(u,p)},$$slots:{default:!0}}),F(),o()}var vv=require("@vkontakte/videoplayer-shared/es2018");var Za=require("@vkontakte/videoplayer-core/es2018");var cb=require("@vkontakte/videoplayer-shared/es2018");var D0=L('<div class="pillow s-1y"><!></div>'),O0={hash:"s-1y",code:".pillow.s-1y{background-color:#679ff8;color:var(--white);font-size:6px;font-weight:600;-webkit-font-smoothing:antialiased;border-radius:12px;padding:2px 4px}"};function $m(t,e){G(t,O0);var i=D0(),o=T(i);ii(o,()=>{var r;return(r=e.children)!=null?r:vt}),S(i),D(()=>Me(i,"data-testid",e.testId)),b(t,i)}var Gl=require("@vkontakte/videoplayer-shared/es2018");var B0=Ie('<svg><!><path d="M5.52 5c.32 0 .51-.2.51-.54V3.5l.5-.51 1.46 1.74c.16.2.3.28.51.28a.5.5 0 0 0 .5-.5c0-.14-.07-.29-.22-.48L7.3 2.3 8.8.87c.16-.14.2-.25.2-.4A.47.47 0 0 0 8.52 0c-.18 0-.3.07-.45.22l-2 2.03h-.04V.54C6.03.2 5.84 0 5.52 0S5 .2 5 .54v3.92c0 .34.2.54.52.54M2.55 1.05 1.05 3.1h1.5zM3.5 3.1V.83C3.5.03 2.41-.3 1.94.35L.14 2.82A.75.75 0 0 0 .75 4h1.8v.55c0 .25.25.45.5.45a.45.45 0 0 0 .45-.45V4h.05a.45.45 0 0 0 0-.9z"></path></svg>');function ym(t,e){let i=Ln(e,["$$slots","$$events","$$legacy","children"]);var o=B0();to(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"currentColor","fill-rule":"evenodd",role:"img",...i}));var r=T(o);ii(r,()=>{var s;return(s=e.children)!=null?s:vt}),ai(),S(o),b(t,o)}var F0=Ie('<svg><!><path d="M5.51 5c.33 0 .52-.2.52-.54V3.5l.49-.51L7.99 4.7c.16.21.3.29.51.29a.49.49 0 0 0 .5-.5c0-.14-.07-.29-.22-.48L7.29 2.3 8.82.87C8.95.73 9 .62 9 .47A.47.47 0 0 0 8.52 0c-.17 0-.3.07-.44.22L6.06 2.25h-.03V.54C6.03.2 5.83 0 5.5 0S5 .2 5 .54v3.92c0 .34.19.54.51.54M2 0c-.35 0-.67.06-.95.17a1.5 1.5 0 0 0-.66.49c-.15.2-.23.44-.23.7 0 .43.21.76.62 1-.23.11-.41.26-.55.44-.15.2-.23.44-.23.71 0 .29.08.55.25.78.18.23.41.4.71.52.3.13.65.19 1.04.19s.73-.06 1.03-.19c.3-.12.54-.3.71-.52a1.26 1.26 0 0 0 .03-1.49 1.45 1.45 0 0 0-.55-.44c.4-.23.62-.57.62-1a1.14 1.14 0 0 0-.24-.7 1.44 1.44 0 0 0-.66-.49A2.4 2.4 0 0 0 2 0m-.57.96C1.56.86 1.75.8 2 .8s.43.06.56.16a.51.51 0 0 1 .2.43c0 .2-.06.34-.2.44A.87.87 0 0 1 2 2a.9.9 0 0 1-.57-.16.52.52 0 0 1-.2-.44c0-.18.06-.32.2-.43ZM1.08 3.5a.6.6 0 0 1 .24-.5c.16-.13.38-.2.68-.2s.52.07.68.2a.6.6 0 0 1 .24.5.63.63 0 0 1-.24.52c-.16.12-.38.19-.68.19s-.52-.07-.68-.19a.64.64 0 0 1-.24-.52"></path></svg>');function xm(t,e){let i=Ln(e,["$$slots","$$events","$$legacy","children"]);var o=F0();to(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"currentColor","fill-rule":"evenodd",role:"img",...i}));var r=T(o);ii(r,()=>{var s;return(s=e.children)!=null?s:vt}),ai(),S(o),b(t,o)}var H0=Ie('<svg><!><path d="M5.52 5h1.1C8.1 5 9 4.07 9 2.5S8.1 0 6.62 0h-1.1C5.19 0 5 .2 5 .54v3.92c0 .34.2.54.52.54m.51-.85V.85h.47C7.41.85 8 1.47 8 2.5c0 1.07-.58 1.65-1.5 1.65zM.52 5c.32 0 .51-.2.51-.54V2.92h1.94v1.54c0 .34.19.54.51.54S4 4.8 4 4.46V.54C4 .2 3.8 0 3.48 0s-.51.2-.51.54v1.53H1.03V.54C1.03.2.84 0 .52 0S0 .2 0 .54v3.99c0 .34.2.47.52.47"></path></svg>');function wm(t,e){let i=Ln(e,["$$slots","$$events","$$legacy","children"]);var o=H0();to(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"currentColor",role:"img",...i}));var r=T(o);ii(r,()=>{var s;return(s=e.children)!=null?s:vt}),ai(),S(o),b(t,o)}var U0=Ie('<svg><!><path d="M9.52 5h1.1C12.1 5 13 4.07 13 2.5S12.1 0 10.62 0h-1.1C9.19 0 9 .2 9 .54v3.92c0 .34.2.54.52.54m.51-.85V.85h.47c.91 0 1.5.62 1.5 1.65 0 1.07-.58 1.65-1.5 1.65zM4.52 5c.32 0 .51-.2.51-.54V2.92h1.94v1.54c0 .34.19.54.51.54S8 4.8 8 4.46V.54C8 .2 7.8 0 7.48 0s-.51.2-.51.54v1.53H5.03V.54C5.03.2 4.84 0 4.52 0S4 .2 4 .54v3.99c0 .34.2.47.52.47m-4 0c.32 0 .51-.2.51-.54V3h1.33c.27 0 .45-.15.45-.41 0-.25-.18-.4-.45-.4H1.03V.84h1.5C2.81.85 3 .7 3 .43S2.8 0 2.53 0H.52C.19 0 0 .2 0 .54v3.92C0 4.8.2 5 .52 5"></path></svg>');function Sm(t,e){let i=Ln(e,["$$slots","$$events","$$legacy","children"]);var o=U0();to(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"currentColor",role:"img",...i}));var r=T(o);ii(r,()=>{var s;return(s=e.children)!=null?s:vt}),ai(),S(o),b(t,o)}var z0=Ie('<svg><!><path d="M11.52 5.75h1.1c1.48 0 2.38-.94 2.38-2.5s-.9-2.5-2.38-2.5h-1.1c-.33 0-.52.2-.52.54V5.2c0 .34.2.54.52.54Zm.51-.85V1.6h.47c.91 0 1.5.62 1.5 1.65 0 1.07-.58 1.65-1.5 1.65zm-5.51.85c.32 0 .51-.2.51-.54V3.67h1.94v1.54c0 .34.19.54.51.54s.52-.2.52-.54V1.3c0-.34-.2-.54-.52-.54s-.51.2-.51.54v1.53H7.03V1.3c0-.34-.19-.54-.51-.54S6 .95 6 1.29v3.99c0 .34.2.47.52.47m-3.18-.09a4 4 0 0 1-.84.09C1.04 5.75 0 4.88 0 3.3 0 1.73 1.04.75 2.5.75S5 1.73 5 3.3c0 .87-.27 1.46-.78 1.88l.2.3a.5.5 0 0 1-.84.55zm-.52-.78-.24-.35a.5.5 0 1 1 .84-.56l.24.37c.18-.26.29-.62.29-1.04 0-1.03-.64-1.65-1.45-1.65s-1.45.62-1.45 1.65.64 1.6 1.45 1.6c.08 0 .2 0 .32-.02"></path></svg>');function Cm(t,e){let i=Ln(e,["$$slots","$$events","$$legacy","children"]);var o=z0();to(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"currentColor",role:"img",...i}));var r=T(o);ii(r,()=>{var s;return(s=e.children)!=null?s:vt}),ai(),S(o),b(t,o)}var op=t=>{switch(t){case Gl.VideoQuality.Q_720P:return wm;case Gl.VideoQuality.Q_1080P:return Sm;case Gl.VideoQuality.Q_1440P:return Cm;case Gl.VideoQuality.Q_2160P:return ym;case Gl.VideoQuality.Q_4320P:return xm}};var W0=Ie('<path d="M12.72 2.21q1.8.07 2.41 1.96l.06.21.06.2.06.23.06.16.04.01.06-.02.14-.05.15-.07c1.42-.66 2.5-.53 3.4.44l.12.14.82 1.02c.73.96.7 2 0 3.1l-.13.19-.12.16-.14.2-.07.12-.04.05v.03l.1.06.13.07.15.09c1.39.7 1.96 1.64 1.74 2.93l-.04.19-.24 1.06c-.16.68-.28 1-.77 1.45-.48.43-1.02.61-1.73.67l-.22.02h-.2l-.25.02-.18.02.02.14v.1l.04.17c.32 1.53-.04 2.56-1.19 3.2l-.17.1-1.17.57q-1.64.73-3.02-.7l-.15-.17-.13-.15-.17-.19-.1-.1-.05-.04-.1.09-.1.1-.12.14c-.95 1.13-1.95 1.54-3.17 1.07l-.18-.08-1.05-.5-.31-.17a2 2 0 0 1-1-1.06 3 3 0 0 1-.16-1.88l.04-.23.04-.24.02-.17-.1-.02-.15-.01h-.18c-1.56-.04-2.48-.62-2.85-1.89l-.05-.18-.3-1.28q-.33-1.77 1.37-2.78l.2-.11.17-.1.22-.12.15-.1v-.02l-.06-.1-.08-.13-.1-.14c-.94-1.25-1.04-2.34-.28-3.4L4 6.32l.82-1.01c.8-.92 1.8-1.1 3.04-.64l.2.08.19.08.22.1.13.04.04-.01.03-.1.05-.13.04-.17c.36-1.43 1.09-2.24 2.4-2.35h1.58Zm-.05 1.8h-1.34l-.14.01c-.28.04-.47.2-.65.83l-.04.16-.06.2a6 6 0 0 1-.46 1.14 6 6 0 0 0-1.15.56 7 7 0 0 1-1.16-.35l-.35-.16q-.37-.15-.59-.17h-.08a.6.6 0 0 0-.4.19l-.08.07-.78.98-.1.12c-.18.26-.2.5.2 1.08l.22.31q.34.48.6 1.1-.2.59-.27 1.2-.51.45-1.01.73l-.34.18c-.62.34-.7.56-.65.88l.01.08.28 1.21.04.16c.1.3.27.47.97.5l.39.02q.57.03 1.22.2.35.53.78.97a6 6 0 0 1-.12 1.45c-.2.95-.01 1.1.38 1.3l1.13.54a1 1 0 0 0 .34.1l.06-.01q.26-.03.67-.49l.26-.3q.4-.42.95-.83l.3.02.3.01h.3l.3-.03q.56.4.95.84l.26.3c.32.36.53.48.73.48h.07l.18-.05.09-.04 1.13-.54.14-.08c.3-.17.42-.4.24-1.22a6 6 0 0 1-.12-1.45q.44-.45.78-.97a7 7 0 0 1 1.22-.2l.39-.01c.81-.04.91-.26 1-.66l.27-1.15c.09-.4.1-.64-.62-1.03l-.34-.18a6 6 0 0 1-1.01-.73 6 6 0 0 0-.27-1.2q.26-.62.6-1.1l.22-.31c.4-.58.38-.81.2-1.08l-.05-.06-.78-.97c-.14-.18-.26-.3-.46-.33h-.07q-.23 0-.67.17l-.35.16a6 6 0 0 1-1.16.35 6 6 0 0 0-1.15-.56 7 7 0 0 1-.45-1.1l-.11-.4c-.2-.68-.4-.81-.72-.83zM12 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"></path>');function Tm(t,e){Ze(t,{get testId(){return e.testId},children:(i,o)=>{var r=W0();b(i,r)},$$slots:{default:!0}})}var K0=Ie('<path d="M13.25 2.83c.23.75.38 1.5 1.63 2.23 1.4.38 2.08 0 2.72-.42.66-.45.86-.32 1.12-.06l.65.64c.29.3.4.42 0 1.18-.38.7-.8 1.33-.42 2.73.72 1.25 1.47 1.47 2.22 1.62.78.16.83.39.83.76v.9c0 .42 0 .59-.83.84-.75.23-1.5.38-2.23 1.63-.38 1.4 0 2.08.42 2.72.45.66.32.86.06 1.12l-.64.65c-.3.29-.42.4-1.18 0-.7-.38-1.34-.8-2.73-.42-1.25.72-1.47 1.47-1.62 2.22-.16.78-.39.83-.76.83h-.9c-.42 0-.59 0-.84-.83-.23-.75-.38-1.5-1.63-2.23-1.4-.38-2.08 0-2.72.42-.66.45-.86.32-1.12.06l-.65-.64c-.29-.3-.4-.42 0-1.18.38-.7.8-1.34.42-2.73-.72-1.25-1.47-1.47-2.22-1.62-.78-.16-.83-.39-.83-.76v-.9c0-.42 0-.59.83-.84.75-.23 1.5-.38 2.22-1.63.38-1.4 0-2.08-.42-2.72-.44-.66-.31-.86-.05-1.12l.64-.65c.3-.29.42-.4 1.18 0 .7.38 1.33.8 2.73.42 1.25-.72 1.47-1.47 1.62-2.22.16-.78.39-.83.76-.83h.9c.42 0 .59 0 .84.83M12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5"></path>');function Im(t,e){Ze(t,{get testId(){return e.testId},children:(i,o)=>{var r=K0();b(i,r)},$$slots:{default:!0}})}var q0=L('<div aria-hidden="true"><!> <!></div>'),Q0={hash:"s-1v",code:".icon.s-1v{display:flex;height:24px;position:relative;width:24px}.icon.s-1v .pillow{position:absolute;right:-9px;top:1px}.icon.triple.s-1v .pillow{right:-13px}.icon.s-1v svg[data-testid=settings-icon--labeled] ._full{opacity:0;visibility:hidden}"};function lc(t,e){B(e,!0),G(t,Q0);let i=g(e,"isMobile",3,!1),o=g(e,"currentQuality",3,void 0),r=v(()=>o()?(0,cb.getVideoQualityLabel)(o()):""),s=v(()=>op(o())),l=v(()=>n(r).length>2);var d=Ae(),a=ue(d);{var u=p=>{Tm(p,{testId:"settings-mobile-icon"})},f=p=>{var m=q0();let $;var y=T(m);{var _=C=>{let R=v(()=>`${n(r)}-pill-icon`);$m(C,{get testId(){return n(R)},children:(A,E)=>{var k=Ae(),Q=ue(k);Ri(Q,()=>n(s),(H,z)=>{z(H,{})}),b(A,k)},$$slots:{default:!0}})};V(y,C=>{n(s)&&C(_)})}var x=P(y,2);let I=v(()=>n(s)?"settings-icon--labeled":"settings-icon");Im(x,{get testId(){return n(I)}}),S(m),D(C=>$=re(m,1,"icon s-1v",null,$,C),[()=>({triple:n(l)})]),b(p,m)};V(a,p=>{i()?p(u):p(f,!1)})}b(t,d),F()}var G0=L('<span class="settings-icon-wrapper s-1z"><!></span>'),Y0={hash:"s-1z",code:".settings-icon-wrapper.s-1z{position:relative;width:24px}"};function Yl(t,e){B(e,!0),G(t,Y0);let[i,o]=Ne(),r=()=>w(u,"$settingsMenuVisible",i),s=()=>w(m,"$isMobile",i),l=()=>w(a,"$currentQuality",i),d=he(),a=d.state.currentQuality$,u=d.ui.settingsMenu.visible$,f=d.actions.internal.openSettingsMenu,p=d.actions.internal.closeSettingsMenu,m=d.ui.isMobile,$=d.ui.t,y=q(void 0);De(()=>{n(y)&&Tt(()=>{e.ref$.set(n(y))})});let _=$("aria_label_settings");async function x(C){let R=ra(C);r()?p():f(R,ho)}let I=v(()=>r()?"opened":"");Kt(t,{get className(){return n(I)},testId:"settings-btn",click:x,get ariaLabel(){return _},get ariaExpanded(){return r()},get ref(){return n(y)},set ref(C){N(y,C,!0)},children:(C,R)=>{var A=G0(),E=T(A);lc(E,{get isMobile(){return s()},get currentQuality(){return l()}}),S(A),b(C,A)},$$slots:{default:!0}}),F(),o()}var j0=Ie('<path d="M6.56 4.44a1.5 1.5 0 1 0-2.12 2.12l3.09 3.09a11 11 0 0 0-2.39 3.08 11 11 0 0 0-1.01 4.14C4 18.43 4 20.37 4 22.83v2.34c0 2.46 0 4.4.13 5.96.13 1.6.4 2.93 1.01 4.14a10.5 10.5 0 0 0 4.6 4.59c1.2.61 2.53.88 4.13 1.01 1.56.13 3.5.13 5.96.13h8.34c2.46 0 4.4 0 5.96-.13 1.44-.12 2.66-.35 3.78-.84l3.53 3.53a1.5 1.5 0 0 0 2.12-2.12zM13.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"></path><path d="M34.5 23.5h-4.64l12.55 12.55q.23-.37.45-.78a11 11 0 0 0 1.01-4.14c.13-1.56.13-3.5.13-5.96v-2.34c0-2.46 0-4.4-.13-5.96a11 11 0 0 0-1.01-4.14 10.5 10.5 0 0 0-4.6-4.59 11 11 0 0 0-4.13-1.01C32.57 7 30.63 7 28.17 7h-8.34c-2.46 0-4.4 0-5.96.13l-.35.03L26.86 20.5h7.64a1.5 1.5 0 0 1 0 3"></path>',1),X0=Ie("<path></path>");function la(t,e){B(e,!0);let i=v(()=>`subtitles-icon${e.type==="off"?"-off":e.type==="outline"?"-outline":""}`),o=v(()=>cn(e.size));Ze(t,{get width(){return"48"},get height(){return"48"},get style(){return n(o)},get testId(){return n(i)},get shadow(){return e.shadow},children:(r,s)=>{var l=Ae(),d=ue(l);{var a=f=>{var p=j0();ai(),b(f,p)},u=f=>{var p=X0();D(()=>Me(p,"d",`M16.92 8h14.16q2.82-.02 4.66.1c1.28.1 2.4.32 3.46.86a8.8 8.8 90 013.84 3.84c.54 1.04.76 2.18.86 3.46q.12 1.84.1 4.66v6.16q.02 2.82-.1 4.66a10 10 90 01-.86 3.46 8.8 8.8 90 01-3.84 3.84 10 10 90 01-3.46.86q-1.84.12-4.66.1H16.92q-2.82.02-4.66-.1a10 10 90 01-3.46-.86 8.8 8.8 90 01-3.84-3.84 10 10 90 01-.86-3.46Q4 29.9 4 27.08v-6.16q-.02-2.82.1-4.66c.1-1.28.32-2.4.86-3.46A8.8 8.8 90 018.8 8.96a10 10 90 013.46-.86Q14.1 8 16.92 8
59
+ ${e.type==="outline"?"M12.54 11.68c-1.04.1-1.64.26-2.1.48a5.2 5.2 90 00-2.28 2.28c-.22.46-.4 1.06-.48 2.1-.08 1.08-.08 2.46-.08 4.46v6c0 2 0 3.38.08 4.46.1 1.04.26 1.64.48 2.1q.78 1.5 2.28 2.28c.46.22 1.06.4 2.1.48 1.08.08 2.48.08 4.46.08h14c2 0 3.38 0 4.46-.08 1.04-.1 1.64-.26 2.1-.48a5.2 5.2 90 002.28-2.28c.22-.46.4-1.06.48-2.1.08-1.08.08-2.48.08-4.46v-6c0-2 0-3.38-.08-4.46a6 6 90 00-.48-2.1 5.2 5.2 90 00-2.28-2.28c-.46-.22-1.06-.4-2.1-.48-1.08-.08-2.48-.08-4.46-.08h-14c-2 0-3.38 0-4.46.08":""}
60
+ M12 29.8c0-1 .8-1.8 1.8-1.8h10.4a1.8 1.8 90 010 3.6H13.8a1.8 1.8 90 01-1.8-1.8m0-7.6c0-1 .8-1.8 1.8-1.8h3.4a1.8 1.8 90 110 3.6H13.8a1.8 1.8 90 01-1.8-1.8m17 7.6c0-1 .8-1.8 1.8-1.8h3.4a1.8 1.8 90 110 3.6h-3.4a1.8 1.8 90 01-1.8-1.8M22 22.2c0-1 .8-1.8 1.8-1.8h10.4a1.8 1.8 90 010 3.6h-10.4a1.8 1.8 90 01-1.8-1.8`)),b(f,p)};V(d,f=>{e.type==="off"?f(a):f(u,!1)})}b(r,l)},$$slots:{default:!0}}),F()}function Em(t,e){B(e,!0);let i=g(e,"isSubtitlesEnabled",3,!1),r=he().ui.t,s=v(()=>i()?r("tooltip_subtitles_on"):r("tooltip_subtitles_off"));Kt(t,{testId:"subtitles-btn",get ariaLabel(){return n(s)},get click(){return e.click},get ariaKeyShortCut(){return _s.KeyC},role:"button",children:(l,d)=>{let a=v(()=>i()?void 0:"outline");la(l,{get size(){return"24"},get type(){return n(a)}})},$$slots:{default:!0}}),F()}var Z0=L('<span class="duration s-23" data-testid="video_duration"> </span>'),J0=L('<div><span class="current s-23" data-testid="current_time"> </span> <!></div>'),ex={hash:"s-23",code:'.time.s-23{align-items:center;color:var(--controls-time);display:flex;font-variant-numeric:tabular-nums;font-weight:500;padding:12px 6px}.time.mobile.s-23{padding:0 0 0 8px}.current.s-23{position:relative}.duration.s-23{opacity:.7}.duration.s-23:before{content:" / ";white-space:pre}'};function dc(t,e){B(e,!0),G(t,ex);let i=g(e,"isMobile",3,!1),o=g(e,"isHidden",3,!1),r=g(e,"showDuration",3,!0),s=g(e,"ref",15),l=Rt(),d=de(!1),a=v(()=>jo(e.duration)),u=v(()=>jo(e.position));var f=J0();let p;var m=T(f),$=T(m,!0);S(m);var y=P(m,2);{var _=x=>{var I=Z0(),C=T(I,!0);S(I),D(()=>ve(C,n(a))),b(x,I)};V(y,x=>{r()&&x(_)})}S(f),Ms(f,()=>Ul(o()&&l.features.usePerformanceFix,d,l.disableInvisibleComponentsTimeout)),Xe(f,x=>s(x),()=>s()),D(x=>{p=re(f,1,"time s-23",null,p,x),ve($,n(u))},[()=>({mobile:i()})]),b(t,f),F()}var uc=require("@vkontakte/videoplayer-shared/es2018");var tx=Ie('<path d="M21.8632 10.0832C22.2147 9.73171 22.7852 9.73171 23.1367 10.0832C23.4881 10.4347 23.4881 11.0051 23.1367 11.3566L18.6367 15.8566C18.2852 16.2081 17.7147 16.2081 17.3632 15.8566C17.0117 15.5051 17.0117 14.9347 17.3632 14.5832L21.8632 10.0832Z"></path><path d="M17.3632 11.3566C17.0117 11.0051 17.0117 10.4347 17.3632 10.0832C17.7147 9.73171 18.2852 9.73171 18.6367 10.0832L23.1367 14.5832C23.4881 14.9347 23.4881 15.5051 23.1367 15.8566C22.7852 16.2081 22.2147 16.2081 21.8632 15.8566L17.3632 11.3566Z"></path>',1),ix=Ie("<path></path>"),ox=Ie('<path d="M14 3.96997C14.5523 3.96997 15 4.41769 15 4.96997V20.97C15 21.5223 14.5523 21.97 14 21.97C13.3585 21.97 12.7422 21.7208 12.2808 21.2751L6.79013 15.97H4C2.89543 15.97 2 15.0745 2 13.97V11.97C2 10.8654 2.89543 9.96997 4 9.96997H6.765L12.2794 4.66337C12.7417 4.21849 13.3584 3.96997 14 3.96997Z"></path><!>',1);function da(t,e){B(e,!0);let i=g(e,"volume",3,1),o=g(e,"muted",3,!1),r=(u,f)=>f?"off":u>.5?"max":u>.2?"mid":u>0?"min":"off",s=v(()=>r(i(),o())),l=v(()=>cn(e.size)),d="M16.8748 8.85259C17.2324 8.50731 17.8021 8.51726 18.1474 8.87481C18.5465 9.28803 18.8614 9.77691 19.0757 10.3128C19.2901 10.8486 19.4 11.4218 19.4 12C19.4 12.5782 19.2901 13.1514 19.0757 13.6872C18.8614 14.2231 18.5465 14.712 18.1474 15.1252C17.8021 15.4827 17.2324 15.4927 16.8748 15.1474C16.5173 14.8021 16.5073 14.2324 16.8526 13.8748C17.0876 13.6314 17.2757 13.3408 17.4045 13.0187C17.5333 12.6966 17.6 12.3504 17.6 12C17.6 11.6496 17.5333 11.3034 17.4045 10.9813C17.2757 10.6592 17.0876 10.3686 16.8526 10.1252C16.5073 9.76764 16.5173 9.19788 16.8748 8.85259Z",a="M19.2636 6.2636C19.6151 5.91213 20.1849 5.91213 20.5364 6.2636C21.2516 6.97878 21.9929 7.99659 22.3989 8.97678C22.7959 9.93525 23.0003 10.9625 23.0003 12C23.0003 13.0374 22.7959 14.0647 22.3989 15.0232C21.9929 16.0034 21.2516 17.0212 20.5364 17.7364C20.1849 18.0879 19.6151 18.0879 19.2636 17.7364C18.9121 17.3849 18.9121 16.8151 19.2636 16.4636C19.8484 15.8788 20.4384 15.0527 20.7359 14.3343C21.0425 13.5943 21.2003 12.801 21.2003 12C21.2003 11.1989 21.0425 10.4057 20.7359 9.66561C20.4384 8.94724 19.8484 8.12124 19.2636 7.5364C18.9121 7.18492 18.9121 6.61508 19.2636 6.2636Z";Ze(t,{get style(){return n(l)},get testId(){var u;return`volume-${(u=n(s))!=null?u:""}-icon`},get shadow(){return e.shadow},children:(u,f)=>{var p=ox(),m=P(ue(p));{var $=_=>{var x=tx();ai(),b(_,x)},y=_=>{var x=ix();D(()=>Me(x,"d",`${d}${n(s)==="max"?a:""}`)),b(_,x)};V(m,_=>{n(s)==="off"?_($):_(y,!1)})}b(u,p)},$$slots:{default:!0}}),F()}var Ro=require("@vkontakte/videoplayer-shared/es2018");var np=require("@vkontakte/videoplayer-shared/es2018");var ub=require("@vkontakte/videoplayer-shared/es2018");var nx=L('<div class="overlay"><!></div>');function km(t,e){B(e,!0);let[i,o]=Ne(),r=()=>w(l,"$overlayContainer$",i),l=he().ui.overlayContainer$,d=q(void 0),a=m=>{!m||!n(d)||!m.contains(n(d))||m.removeChild(n(d))},u=m=>{!m||!n(d)||m.contains(n(d))||m.appendChild(n(d))};De(()=>{u(r())}),Vt(()=>(u(r()),()=>a(r())));var f=nx(),p=T(f);ii(p,()=>{var m;return(m=e.children)!=null?m:vt}),S(f),Xe(f,m=>N(d,m),()=>n(d)),b(t,f),F(),o()}var rx=L('<div class="tooltip s-1j"><div class="content s-1j"> </div> <div class="tooltip-pointer s-1j"></div></div>'),sx=L("<div><!></div> <!>",1),ax={hash:"s-1j",code:'.tooltip-wrapper.s-1j{display:flex;flex-direction:column;min-width:0}.full-width.s-1j{width:100%}.tooltip.s-1j{bottom:100%;left:0;opacity:0;position:absolute;transition:opacity .2s,visibility .2s;visibility:hidden}.content.s-1j{background-color:rgba(41,41,41,.8);border-radius:3px;color:var(--white);display:inline-block;padding:6px 10px}.tooltip-pointer.s-1j{border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid rgba(41,41,41,.8);bottom:0;content:" ";font-size:0;line-height:0;position:absolute;width:0}'};function qa(t,e){B(e,!0),G(t,ax);let[i,o]=Ne(),r=()=>w(X,"$overlayContainer$",i),s=()=>w(z,"$containerSize",i),l=g(e,"isMobile",3,!1),d=g(e,"content",3,""),a=g(e,"active",15,!1),u=g(e,"translateX",3,0),f=g(e,"translateY",3,0),p=g(e,"isFullWidthWrapper",3,!1),m=g(e,"maxTooltipWidth",3,void 0),$=g(e,"placement",3,"top"),y=g(e,"onVisibilityChange",3,ub.noop),_=5,x=q(void 0),I=q(void 0),C,R=q(0),A=q(0),E=q(0),k=q(0),Q=Rt(),H=he(),z=H.ui.playerSize,X=H.ui.overlayContainer$;De(()=>{Tt(()=>{y()(a())})});let se=H.getLogger().createComponentLog("Tooltip component"),Z=()=>{if(!r()||!n(I)||!n(x))return;N(A,_);let ne=r().getBoundingClientRect(),ce=n(x).getBoundingClientRect(),Re=ce.width,Ve=n(I).clientWidth,et=s().width,ke=(Re-Ve)/2,Te=ce.left+u()-ne.left,Be=Te+ke,It=ce.top+f()-ne.top,$t=Ve/2-_,Ot=Be<8,ct=Be+Ve>et-8;Ot&&(Be=8,$t=Te+ce.width/2-2.5*_),ct&&(Be=et-8-Ve,$t=ce.left-ne.left+ce.width/2-Be-_),N(E,Be,!0),N(k,It),N(R,$t,!0)},oe=()=>{!r()||!n(I)||!n(x)||N(A,-_)},J=()=>{if(!r()||!n(I)||!n(x))return;N(R,_);let ne=r().getBoundingClientRect(),ce=n(x).getBoundingClientRect(),Re=ce.height,Ve=n(I).clientHeight,et=(Re-Ve)/2+Ve,ke=ce.left+u()-ne.left-n(I).clientWidth,Te=2,Be=ke-_;Be<8&&(Be=8);let $t=ce.top+f()-ne.top+et,Ot=Te-et/2,ct=Te-_;N(E,Be,!0),N(k,$t),N(A,Ot),N(R,ct)},Ce=()=>{!r()||!n(I)||!n(x)||N(R,-_)},me=()=>{switch($()){case"top":Z();break;case"bottom":oe();break;case"left":J();break;default:Ce()}},ee=()=>{try{if(!r()||!n(x))return;me(),a(!0)}catch(ne){se({message:String(ne)})}},_e=()=>{a(!1)},we=()=>{n(I)&&(C||(C=window.setTimeout(ee,Q.controls.hideTimeoutTooltips)),a()&&ee())},ge=()=>{_e(),window.clearTimeout(C),C=void 0},pe=(ne,ce,Re)=>{let Ve="";switch($()){case"top":Ve=`transform: translate(${ne}px, ${ce}px);`;break;case"bottom":Ve=`transform: translate(${ne}px, ${ce}px); top: auto; bottom: 100%;`;break;case"left":Ve=`transform: translate(${ne}px, ${ce}px); left: 0; right: auto;`;break;default:Ve=`transform: translate(${ne}px, ${ce}px);`}return Ve+=` max-width: ${m()===void 0?"auto":`${m()}px`};`,Ve+=` opacity: ${Re?1:0}; visibility: ${Re?"visible":"hidden"}`,Ve},Qe=(ne,ce)=>{let Re="";switch($()){case"top":Re=`transform: translate(${ne}px, ${ce}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Re=`transform: translate(${ne}px, ${ce}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Re=`transform: translate(${ne}px, ${ce}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Re=`transform: translate(${ne}px, ${ce}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Re},U=v(()=>pe(n(E),n(k),a())),O=v(()=>Qe(n(R),n(A)));Vt(me),dn(()=>window.clearTimeout(C));var Ge=sx(),K=ue(Ge);let ae;K.__pointermove=we,K.__pointerdown=ge,K.__pointerup=function(...ne){var ce;(ce=e.disableMouseupTooltipShow?void 0:we)==null||ce.apply(this,ne)};var xe=T(K);ii(xe,()=>{var ne;return(ne=e.children)!=null?ne:vt}),S(K),Xe(K,ne=>N(x,ne),()=>n(x));var Oe=P(K,2);{var it=ne=>{km(ne,{children:(ce,Re)=>{var Ve=rx(),et=T(Ve),ke=T(et,!0);S(et);var Te=P(et,2);S(Ve),Xe(Ve,Be=>N(I,Be),()=>n(I)),D(()=>{We(Ve,n(U)),ve(ke,d()),We(Te,n(O))}),b(ce,Ve)},$$slots:{default:!0}})};V(Oe,ne=>{d()&&!l()&&ne(it)})}D(ne=>ae=re(K,1,"tooltip-wrapper s-1j",null,ae,ne),[()=>({"full-width":p()})]),dt("pointerenter",K,we),dt("pointerleave",K,ge),b(t,Ge),F(),o()}Ye(["pointermove","pointerdown","pointerup"]);var pb=t=>{t.stopPropagation()},lx=L("<div><!></div>"),dx={hash:"s-18",code:".btn-container.s-18{align-items:center;display:flex;height:100%;position:relative;transition:var(--button-hover-transition);will-change:opacity;-webkit-tap-highlight-color:transparent}.w-max.s-18{min-width:0;width:100%}"};function Vo(t,e){B(e,!0),G(t,dx);let[i,o]=Ne(),r=()=>w(u,"$isGraphOpened$",i),s=()=>w(a,"$isMobile",i),l=he(),d=Co(),a=l.ui.isMobile,u=d.graphIsOpened$,f=l.ui.t,p=g(e,"className",3,""),m=g(e,"disabled",3,!1),$=g(e,"hasTooltip",3,!0),y=g(e,"ref",15,void 0),_=g(e,"width",15,void 0),x=g(e,"isFullWidthTooltip",3,!0),I=g(e,"tooltipContent",3,""),C=g(e,"tooltipVisible",3,!1),R=g(e,"tooltipPlacement",3,"top"),A=g(e,"disabledTooltipContent",19,()=>f("tooltip_button_disabled")),E=g(e,"isAriaHidden",3,!1),k=g(e,"onTooltipVisibilityChange",3,np.noop),Q=g(e,"initialTranslateXPx",3,0),H=g(e,"initialTranslateYPx",19,()=>-18),z=g(e,"mouseEnter",3,np.noop),X=g(e,"mouseLeave",3,np.noop),se=v(()=>m()?r()?f("tooltip_disabled_when_graph_on"):A():I()),Z=q(!1);De(()=>{C()||N(Z,!1)});var oe=lx();oe.__pointerdown=[pb],oe.__click=[pb];var J=T(oe);{var Ce=ee=>{qa(ee,{get content(){return n(se)},get translateX(){return Q()},get translateY(){return H()},get isFullWidthWrapper(){return x()},get placement(){return R()},get onVisibilityChange(){return k()},get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},get active(){return n(Z)},set active(_e){N(Z,_e,!0)},children:(_e,we)=>{var ge=Ae(),pe=ue(ge);ii(pe,()=>{var Qe;return(Qe=e.children)!=null?Qe:vt}),b(_e,ge)},$$slots:{default:!0}})},me=ee=>{var _e=Ae(),we=ue(_e);ii(we,()=>{var ge;return(ge=e.children)!=null?ge:vt}),b(ee,_e)};V(J,ee=>{$()&&n(se)&&!s()?ee(Ce):ee(me,!1)})}S(oe),Xe(oe,ee=>y(ee),()=>y()),D(()=>{var ee;re(oe,1,`btn-container ${(ee=p())!=null?ee:""}`,"s-18"),Me(oe,"aria-hidden",E()||null)}),dt("mouseenter",oe,function(...ee){var _e;(_e=z())==null||_e.apply(this,ee)}),dt("mouseleave",oe,function(...ee){var _e;(_e=X())==null||_e.apply(this,ee)}),An(oe,"clientWidth",_),b(t,oe),F(),o()}Ye(["pointerdown","click"]);var cx=Ie('<rect width="20" height="20" rx="10"></rect><path d="m12.53 8.69.06.19-.22-.64a.83.83 0 0 0-1.6.47l.13.48-.23-.85a.82.82 0 0 0-1.6.24l-.73-2.93a.85.85 0 0 0-1.65.4L8 11.34l-1.12-1.16a.8.8 0 0 0-1.21 1.03l2.23 2.94s1.23 1.83 4.3 1.23c2.43-.48 3.25-2.67 2.58-4.88l-.55-2.3a.88.88 0 1 0-1.7.49"></path>',1);function cc(t,e){let i=v(()=>(e.completed,"interactive-episode-completed-icon"));Ze(t,{width:"20",height:"20",fill:"none",get testId(){return n(i)},children:(o,r)=>{var s=cx(),l=ue(s),d=P(l);D(()=>{Me(l,"fill",ta),Me(l,"fill-opacity",e.completed?1:.24),Me(d,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),b(o,s)},$$slots:{default:!0}})}var ux=L("<div><!></div>"),px={hash:"s-y",code:".interactive-episode-icon.s-y{cursor:default;height:20px;position:absolute;transform:translateX(-50%);width:20px}.interactive-episode-icon.disabled.s-y{opacity:.4;pointer-events:none}"};function Pm(t,e){B(e,!0),G(t,px);let o=he().ui.t,r=q(0),s=v(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));Vo(t,{get tooltipContent(){return n(s)},initialTranslateXPx:-10,initialTranslateYPx:-10,get disabled(){return e.disabled},get width(){return n(r)},isAriaHidden:!0,isFullWidthTooltip:!1,children:(l,d)=>{var a=ux();let u;var f=T(a);let p=v(()=>!!e.videoEpisode.completed);cc(f,{get completed(){return n(p)}}),S(a),D(m=>{u=re(a,1,"interactive-episode-icon s-y",null,u,m),We(a,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),An(a,"clientWidth",m=>N(r,m)),b(l,a)},$$slots:{default:!0}}),F()}var fx=L('<div><div class="video-episode-inner s-x"><div class="video-episode-loaded s-x"></div> <div></div></div></div>'),mx=L('<div class="video-episodes-wrap s-x"></div>'),vx={hash:"s-x",code:".video-episodes-wrap.s-x{height:100%;position:absolute;width:100%}.video-episode.s-x{box-sizing:border-box;height:calc(var(--slider-height)*3);margin-top:calc(var(--slider-height)*-1);padding:var(--slider-height) var(--slider-video-episode-gap);position:absolute;transition:transform .2s}.video-episode.s-x:first-child{padding-left:0}.video-episode.s-x:last-child{padding-right:0}.video-episode.s-x:not(.disabled):where(:hover,:active){transform:scaleY(1.5)}.video-episode-filled.s-x,.video-episode-inner.s-x,.video-episode-loaded.s-x{border-radius:var(--slider-radius);height:var(--slider-height);position:absolute}.video-episode-inner.s-x{background:var(--slider-bg);overflow:hidden;position:absolute;width:calc(100% - var(--slider-video-episode-gap)*2)}.video-episode.s-x:first-child .video-episode-inner:where(.s-x),.video-episode.s-x:last-child .video-episode-inner:where(.s-x){width:calc(100% - var(--slider-video-episode-gap))}.video-episode-loaded.s-x{background:var(--slider-loaded-bg);transition:transform .2s}.video-episode-filled.s-x,.video-episode-loaded.s-x{border-radius:var(--slider-radius);height:100%;left:-100%;position:absolute;width:100%}.video-episode-filled.s-x{background-color:var(--slider-filled-bg)}"};function Am(t,e){G(t,vx);let i=g(e,"videoEpisodes",19,()=>[]);var o=mx();bi(o,21,i,r=>r.from,(r,s)=>{var l=fx();let d;var a=T(l),u=T(a),f=P(u,2);let p;S(a),S(l),D((m,$)=>{d=re(l,1,"video-episode s-x",null,d,m),We(l,`left: ${n(s).from}%; width: ${n(s).width}%`),We(u,`transform: translateX(${n(s).loadedWidth/n(s).width*100}%)`),p=re(f,1,"video-episode-filled s-x",null,p,$),We(f,`transform: translateX(${n(s).filledWidth/n(s).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),b(r,l)}),S(o),b(t,o)}function gx(t,e,i,o,r,s,l){if(t.preventDefault(),e()&&N(i,e().getBoundingClientRect(),!0),o()||n(r)||!e())return;N(r,!0);let d=s(t.clientX,t.clientY);l()(d,t),e().setPointerCapture(t.pointerId)}function hx(t,e,i,o,r,s,l,d){if(t.preventDefault(),e())return;let a=i(t.clientX,t.clientY),u=o(t.clientX);r()(a,u,n(s).width,t),n(l)&&d()(a)}function _x(t,e,i,o,r){if(t.preventDefault(),e()||!n(i))return;N(i,!1);let s=o(t.clientX,t.clientY);r()(s,t)}function bx(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}function $x(t,e,i,o,r,s){let l=e(t.clientX,t.clientY);i()&&o()(l),N(r,!1),s()(l)}var yx=L("<div></div>"),xx=L('<div class="bars s-s"><div class="loaded s-s"></div> <div></div></div>'),wx=L('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),Sx={hash:"s-s",code:'.interactive-icons.s-s{position:absolute;top:-28px;width:calc(100% - 20px)}.interactive-icons.mobile.s-s{top:-10px}.slider.s-s{border-radius:var(--slider-radius);cursor:pointer;height:var(--slider-height);position:relative;touch-action:none;transition:opacity .2s;width:100%;will-change:opacity,transform;-webkit-tap-highlight-color:transparent}.no-handle.s-s{cursor:default}.slider.s-s:before{content:"";height:calc(var(--controls-height)/2);left:0;position:absolute;right:0;top:calc((var(--controls-height)/2 - var(--slider-height))*-1/2)}.bars.s-s{background:var(--slider-bg);overflow:hidden}.bars.s-s,.loaded.s-s{border-radius:var(--slider-radius);height:100%;position:absolute;width:100%}.loaded.s-s{background:var(--slider-loaded-bg);left:-100%;transition:transform .2s;will-change:transform}.filled.s-s{background-color:var(--slider-filled-bg);border-radius:var(--slider-radius);height:100%;left:-100%;position:absolute;width:100%}.slider.square.s-s,.slider.square.s-s .filled:where(.s-s),.slider.square.s-s .loaded:where(.s-s),.slider.square.s-s>.bars:where(.s-s){border-radius:unset}.filled.active-live.s-s{background-color:var(--timeline-slider-filled-active-live-bg)}.filled.ads.s-s{background-color:var(--slider-filled-ads)}.handleWrap.s-s{left:-100%;position:absolute;width:100%}.handle.s-s{background-color:var(--slider-handle-bg);border-radius:50%;height:var(--slider-handle-size);opacity:0;position:absolute;right:calc(var(--slider-handle-size)*-1/2);top:calc((var(--slider-height) - var(--slider-handle-size))/2);transform:scale(0);transition:opacity .2s,transform .2s;visibility:hidden;width:var(--slider-handle-size);will-change:opacity,transform}.handle.active-live.s-s{background-color:var(--timeline-slider-handle-active-live-bg)}.handle-always-visible.s-s .handle:where(.s-s),.slider-dragging.s-s .handle:where(.s-s),.slider.s-s:hover .handle:where(.s-s){opacity:1;transform:scale(1);visibility:visible}.slider-dragging.s-s .handle:where(.s-s){transform:scale(1.3)}.slider-vertical.s-s{left:-8px;position:absolute;top:-18px;transform:rotate(-90deg);transform-origin:0 0}.slider.disabled.s-s{cursor:default;opacity:.4}'};function Qa(t,e){B(e,!0),G(t,Sx);let i=g(e,"ref",15,void 0),o=g(e,"className",3,""),r=g(e,"testId",3,void 0),s=g(e,"isHidden",3,!1),l=g(e,"isVertical",3,!1),d=g(e,"isActiveLive",3,!1),a=g(e,"isMobile",3,!1),u=g(e,"squareBorders",3,!1),f=g(e,"videoEpisodes",19,()=>[]),p=g(e,"withWheelHandler",3,!1),m=g(e,"isInteractive",3,!1),$=g(e,"disabled",3,!1),y=g(e,"hideHandel",3,!1),_=g(e,"onPointerDown",3,Ro.noop),x=g(e,"onHandleMove",3,Ro.noop),I=g(e,"onPointerUp",3,Ro.noop),C=g(e,"onPointerEnter",3,Ro.noop),R=g(e,"onPointerMove",3,Ro.noop),A=g(e,"onPointerLeave",3,Ro.noop),E=g(e,"onMouseEnter",3,Ro.noop),k=g(e,"onMouseLeave",3,Ro.noop),Q=g(e,"onWheelUp",3,Ro.noop),H=g(e,"onWheelDown",3,Ro.noop),z=g(e,"onWheelLeft",3,Ro.noop),X=g(e,"onWheelRight",3,Ro.noop),se=g(e,"onDisabledClick",3,Ro.noop),Z=g(e,"loadedProgress",3,0),oe=g(e,"filledProgress",3,0),J=g(e,"handleProgress",3,0),Ce=g(e,"ariaLabel",3,""),me=g(e,"ariaValueMin",3,void 0),ee=g(e,"ariaValueMax",3,void 0),_e=g(e,"ariaValueNow",3,void 0),we=g(e,"ariaValueText",3,""),ge=g(e,"onContextMenu",3,Ro.noop),pe=g(e,"handleAlwaysVisible",3,!1),Qe=Rt(),U=q(void 0),O=q(!1),Ge=v(()=>{var $e;return($e=ee())!=null?$e:0}),K=v(()=>{var $e;return(0,Ro.isNonNullable)(f())&&(($e=f()[f().length-1])==null?void 0:$e.time)<n(Ge)}),ae=v(()=>(0,Ro.isNonNullable)(f())&&f().length&&n(K)&&n(Ge)?et(Z()*100,oe()*100):[]);function xe($e){if($e.preventDefault(),i()&&N(U,i().getBoundingClientRect(),!0),$())return;let Le=Re($e.clientX,$e.clientY),nt=Ve($e.clientX);C()(Le,nt,n(U).width)}function Oe($e){$e.preventDefault(),!$()&&A()()}function it(){E()()}function ne(){k()()}function ce($e){$()||p()&&($e.preventDefault(),$e.deltaY<0?Q()():$e.deltaY>0?H()():$e.deltaX>0?X()():z()())}function Re($e,Le){return l()?Math.max(0,Math.min(1,(n(U).height-(Le-n(U).top))/n(U).height)):Math.min(Math.max($e-n(U).x,0),n(U).width)/n(U).width}function Ve($e){return Math.min(Math.max($e-n(U).x,0),n(U).width)}function et($e,Le){let nt=Qe.features.episodesClustering&&!m()?Qe.episodeMinWidthPc:0,St=[],fe=f()[0].time/n(Ge)*100,Ue=0,ze=0;for(let Ft=1;Ft<f().length;Ft++)Ue=f()[Ft].time/n(Ge)*100,Ue-fe>nt&&(St.push({from:fe,width:Math.max(0,Ue-fe),loadedWidth:Math.max(0,Math.min(Ue,$e)-fe),filledWidth:Math.max(0,Math.min(Ue,Le)-fe),interactive:f()[Ft-1].interactive,completed:f()[Ft-1].completed}),fe=f()[Ft].time/n(Ge)*100,ze++);let at={from:fe,width:Math.max(0,100-fe),loadedWidth:Math.max(0,Math.min($e,100)-fe),filledWidth:Math.max(0,Math.min(Le,100)-fe),interactive:f()[ze].interactive,completed:f()[ze].completed};100-fe<nt?(ze-=1,St[ze].width+=100-fe,St[ze].loadedWidth+=Math.max(0,Math.min($e,100)-fe),St[ze].filledWidth+=Math.max(0,Math.min(Le,100)-fe)):St[ze]=at;let jt=f()[0].time;if(jt!==0){let Ft=jt/n(Ge)*100;St.unshift({from:0,width:Ft,loadedWidth:Math.min(Ft,$e),filledWidth:Math.min(Ft,Le)})}return St}function ke($e){return Math.max(0,Math.min(100,$e*100))}let Te=v(()=>ke(Z())),Be=v(()=>ke(oe()));var It=wx(),$t=ue(It);{var Ot=$e=>{var Le=yx();let nt;bi(Le,21,()=>n(ae),St=>St.from,(St,fe)=>{var Ue=Ae(),ze=ue(Ue);{var at=jt=>{Pm(jt,{get videoEpisode(){return n(fe)},get disabled(){return $()}})};V(ze,jt=>{n(fe).interactive&&jt(at)})}b(St,Ue)}),S(Le),D(St=>nt=re(Le,1,"interactive-icons s-s",null,nt,St),[()=>({mobile:a(),hidden:a()&&!n(O)})]),b($e,Le)};V($t,$e=>{m()&&$e(Ot)})}var ct=P($t,2);let Et;ct.__pointerdown=[gx,i,U,$,O,Re,_],ct.__pointermove=[hx,$,Re,Ve,R,U,O,x],ct.__pointerup=[_x,$,O,Re,I],ct.__click=[bx,$,se,Re],ct.__contextmenu=[$x,Re,$,se,O,ge];var ei=T(ct);{var kt=$e=>{Am($e,{get videoEpisodes(){return n(ae)},get disabled(){return $()},get isMobile(){return a()}})},Dt=$e=>{var Le=xx(),nt=T(Le),St=P(nt,2);let fe;S(Le),D(Ue=>{Me(nt,"data-value",n(Te)),We(nt,`transform: translateX(${n(Te)}%);`),fe=re(St,1,"filled s-s",null,fe,Ue),Me(St,"data-value",n(Be)),We(St,`transform: translateX(${n(Be)}%);`)},[()=>({"active-live":d()})]),b($e,Le)};V(ei,$e=>{n(ae).length?$e(kt):$e(Dt,!1)})}var Ht=P(ei,2);let Y;var Ee=T(Ht);let le;S(Ht),S(ct),Xe(ct,$e=>i($e),()=>i()),D(($e,Le,nt,St)=>{var fe,Ue;Et=re(ct,1,`slider ${(fe=o())!=null?fe:""}`,"s-s",Et,$e),Me(ct,"aria-label",Ce()),Me(ct,"aria-valuemin",me()),Me(ct,"aria-valuemax",ee()),Me(ct,"aria-valuenow",_e()),Me(ct,"aria-valuetext",we()),Me(ct,"data-testid",(Ue=r())!=null?Ue:null),Y=re(Ht,1,"handleWrap s-s",null,Y,Le),We(Ht,nt),le=re(Ee,1,"handle s-s",null,le,St)},[()=>({disabled:$(),"slider-dragging":n(O),hidden:s(),"handle-always-visible":pe(),"slider-vertical":l(),"no-handle":y(),square:u()}),()=>({hidden:y()}),()=>`transform: translateX(${ke(J())}%);`,()=>({"active-live":d()})]),dt("pointerenter",ct,xe),dt("pointerleave",ct,Oe),dt("mouseenter",ct,it),dt("mouseleave",ct,ne),dt("wheel",ct,ce),b(t,It),F()}Ye(["pointerdown","pointermove","pointerup","click","contextmenu"]);var io=(t,e)=>Qd[t]>=Qd[e];var Ns=(t,e)=>Qd[t]<=Qd[e],fb=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var Tx=L("<div><!></div>"),Ix=L("<div><!> <!></div>"),Ex={hash:"s-28",code:".volumeBar-container.s-28{align-items:center;display:flex}.vertical.s-28 .btn,.vertical.s-28 .tooltip-wrapper,.volumeBar-container.vertical.s-28{width:40px}.volumeBar.s-28{align-items:center;display:flex;margin:0 8px;position:relative;width:70px;--slider-height:var(--slider-volume-height);--slider-radius:var(--slider-volume-radius);--slider-handle-size:var(--slider-volume-handle-size);--slider-bg:var(--volume-slider-bg);--slider-filled-bg:var(--volume-slider-filled-bg);--slider-handle-bg:var(--volume-slider-handle-bg)}.volumeBar-slider-vertical{width:50px!important}.volumeBar-vertical.s-28{padding:0 8px 0 0;width:0}"};function Lm(t,e){var Ve,et;B(e,!0),G(t,Ex);let[i,o]=Ne(),r=()=>w(R,"$isAudioAvailable$",i),s=()=>w(m,"$muted$",i),l=()=>w(p,"$volume$",i),d=()=>w(x,"$currentGridType$",i),a=()=>w(xe,"$controlsVisible",i),u=he(),f=Rt(),p=u.state.volume$,m=u.state.muted$,{setVolume:$,startVolumeChanging:y,stopVolumeChanging:_}=u.actions.internal,x=u.ui.currentGridType$,I=(Ve=u.callbacks)==null?void 0:Ve.onAudioDoesNotExistHint,C=(et=u.callbacks)==null?void 0:et.onAudioDisabledHint,R=u.state.isAudioAvailable$,A=u.state.isAudioDisabled,E=u.ui.t,k=q(!1),Q,H=v(()=>e.isAds||r()),z=v(()=>!n(H)||s()||l()===0),X=v(()=>Ns(d(),"l")),se=v(()=>n(X)?"":n(z)?!r()||A?E("tooltip_sound_unavailable"):E("tooltip_volume"):E("tooltip_volume_muted")),Z=v(()=>n(z)?E("tooltip_volume"):E("tooltip_volume_muted")),oe=v(()=>n(z)?0:l()),J=!1,Ce=v(()=>e.isAds?!1:A?!C:r()?!1:!I);function me(ke){y(),$(ke)}function ee(){ep(u,l(),f.controls.volumeStepWheel)}function _e(){tp(u,l(),f.controls.volumeStepWheel)}function we(ke){$(ke)}function ge(ke){$(ke),_()}function pe(){J=!0}function Qe(){J=!1,Ge()}function U(){clearTimeout(Q),N(k,!0)}function O(){Ge()}function Ge(){Q=window.setTimeout(()=>{J||N(k,!1)},f.controls.volumeBarTimeout)}function K(ke){ke.preventDefault(),ke.deltaY<0?ee():ke.deltaY>0&&_e()}let ae=q(!1),xe=u.ui.controlsVisible;De(()=>{a()||N(ae,!1)});var Oe=Ix();let it;var ne=T(Oe);qa(ne,{get content(){return n(se)},translateY:-18,get active(){return n(ae)},set active(ke){N(ae,ke,!0)},children:(ke,Te)=>{let Be=v(()=>n(X)?"btn-volume-vertical":"btn-volume-horizontal");Kt(ke,{className:"btn-full-opacity",get disabled(){return n(Ce)},get testId(){return n(Be)},get ariaLabel(){return n(Z)},get click(){return e.click},get ariaKeyShortCut(){return _s.KeyM},role:"button",children:(It,$t)=>{da(It,{get size(){return"24"},get volume(){return l()},get muted(){return n(z)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var ce=P(ne,2);{var Re=ke=>{var Te=Tx();let Be;var It=T(Te);let $t=v(()=>n(X)?"volumeBar-slider-vertical":""),Ot=v(()=>n(X)&&!n(k)),ct=v(()=>n(X)?pe:uc.noop),Et=v(()=>n(X)?Qe:uc.noop),ei=v(()=>Math.round(n(oe)*100)),kt=v(()=>`${Math.round(n(oe)*100)}%`),Dt=v(()=>n(X)?"volume-slider-vertical":"volume-slider");Qa(It,{get className(){return n($t)},get isHidden(){return n(Ot)},get isVertical(){return n(X)},withWheelHandler:!0,onWheelUp:ee,onWheelDown:_e,onPointerDown:me,onHandleMove:we,onPointerUp:ge,get onPointerEnter(){return n(ct)},get onPointerLeave(){return n(Et)},ariaLabel:"Ползунок громкости",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return n(ei)},get ariaValueText(){return n(kt)},get filledProgress(){return n(oe)},get handleProgress(){return n(oe)},get testId(){return n(Dt)}}),S(Te),D(Ht=>Be=re(Te,1,"volumeBar s-28",null,Be,Ht),[()=>({"volumeBar-vertical":n(X)})]),b(ke,Te)};V(ce,ke=>{n(H)&&ke(Re)})}S(Oe),D(ke=>it=re(Oe,1,"volumeBar-container s-28",null,it,ke),[()=>({vertical:n(X)})]),dt("mouseenter",Oe,function(...ke){var Te;(Te=n(X)?U:uc.noop)==null||Te.apply(this,ke)}),dt("mouseleave",Oe,function(...ke){var Te;(Te=n(X)?O:uc.noop)==null||Te.apply(this,ke)}),dt("wheel",Oe,K),b(t,Oe),F(),o()}var mb=require("@vkontakte/videoplayer-shared/es2018");var kx=Ie('<path d="M4.58 13.98a1 1 0 0 1 .99-1h4.45a1 1 0 0 1 1 1v4.45a.99.99 0 0 1-1.99 0v-2.05L5.71 19.7a1 1 0 1 1-1.41-1.4l3.32-3.32H5.57a1 1 0 0 1-.99-1m10.39-6.36 3.32-3.32a1 1 0 1 1 1.41 1.4l-3.32 3.32h2.05a.99.99 0 0 1 0 1.98H14a1 1 0 0 1-1-1V5.57a.99.99 0 1 1 1.98 0z"></path>'),Px=Ie('<path d="M10.5 19a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-4.5a1 1 0 0 1 2 0v2.07l3.36-3.36a1 1 0 0 1 1.42 0l.01.01a1 1 0 0 1 0 1.42L7.43 18H9.5a1 1 0 0 1 1 1M18 7.43l-3.36 3.36a1 1 0 0 1-1.42 0l-.01-.01a1 1 0 0 1 0-1.42L16.57 6H14.5a1 1 0 0 1 0-2H19a1 1 0 0 1 1 1v4.5a1 1 0 0 1-2 0z"></path>');function Mm(t,e){let i=g(e,"isFullscreen",8,!1),o=Tn(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");Ze(t,{get testId(){return n(o)},children:(r,s)=>{var l=Ae(),d=ue(l);{var a=f=>{var p=kx();b(f,p)},u=f=>{var p=Px();b(f,p)};V(d,f=>{i()?f(a):f(u,!1)})}b(r,l)},$$slots:{default:!0}})}function pc(t,e){B(e,!0);let i=g(e,"isFullscreen",3,!1),o=g(e,"click",3,mb.noop),r=he(),s=r.ui.isFullscreenOpenedByKeyboard,l=r.ui.t,d=v(()=>i()?l("tooltip_fullscreen_on"):l("tooltip_fullscreen_off"));Kt(t,{testId:"fullscreen-btn",get ariaLabel(){return n(d)},click:u=>{let f=ra(u);s.set(f),o()()},get ariaKeyShortCut(){return _s.KeyF},role:"button",children:(u,f)=>{Mm(u,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),F()}var Ax=Ie('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4.26 4.26C3 5.54 3 7.57 3 11.65v.72c0 4.07 0 6.11 1.26 7.38C5.54 21 7.57 21 11.65 21h.72c4.07 0 6.11 0 7.38-1.26C21 18.47 21 16.43 21 12.36v-.72c0-4.07 0-6.11-1.26-7.38C18.47 3 16.43 3 12.36 3h-.72C7.57 3 5.53 3 4.26 4.26M6 8.5c.1 4.68 2.56 7.5 6.61 7.5h.24v-2.68c1.47.15 2.57 1.25 3.02 2.68H18a6 6 0 0 0-3-3.76 5.7 5.7 0 0 0 2.55-3.74h-1.94c-.4 1.49-1.61 2.84-2.77 2.97V8.5h-1.96v5.2c-1.2-.3-2.76-1.76-2.83-5.2z" clip-rule="evenodd"></path></svg>');function Vm(t,e){let i=Ln(e,["$$slots","$$events","$$legacy","children"]);var o=Ax();to(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"vk-logo-icon",role:"img",...i}));var r=T(o);ii(r,()=>{var s;return(s=e.children)!=null?s:vt}),ai(),S(o),b(t,o)}var Lx=Ie('<svg><!><svg data-logo="vk_video"><path d="M7 8.6c0-1.96 0-2.94.38-3.69a3.5 3.5 0 0 1 1.53-1.53C9.66 3 10.64 3 12.6 3h1.36c2.46 0 3.7 0 4.64.48a4.4 4.4 0 0 1 1.92 1.92c.48.94.48 2.18.48 4.64v3.92c0 2.46 0 3.7-.48 4.64a4.4 4.4 0 0 1-1.92 1.92c-.94.48-2.18.48-4.64.48H12.6c-1.96 0-2.94 0-3.69-.38a3.5 3.5 0 0 1-1.53-1.53C7 18.34 7 17.36 7 15.4zm9.26 1.74c.9.54 1.36.81 1.51 1.16.13.3.13.65 0 .96-.15.34-.6.61-1.5 1.15l-2.4 1.43c-.93.56-1.4.84-1.8.8-.33-.03-.64-.2-.84-.48-.23-.31-.23-.86-.23-1.96v-2.85c0-1.1 0-1.64.23-1.96q.31-.42.85-.48c.38-.04.86.25 1.8.8zM5 9.04c0-2.46 0-3.7.48-4.64q.37-.71.95-1.25-.58.1-1.03.33A4.4 4.4 0 0 0 3.48 5.4C3 6.34 3 7.58 3 10.04v3.92c0 2.46 0 3.7.48 4.64a4.4 4.4 0 0 0 1.92 1.92q.45.23 1.03.33a4 4 0 0 1-.95-1.25C5 18.66 5 17.42 5 14.96z"></path></svg><svg x="4" y="3" data-logo="play_market"><path d="M0 1.26v15.47q0 .66.34 1L9.52 9 .33.28C.08.53 0 .92 0 1.26"></path><path d="M.33.28.38.23c.34-.3.89-.32 1.49 0l10.75 5.81-2.6 2.48zm10.29 8.75 2.88 2.45-.53.29-.34.18-2.58-2.44-9.71 8.22c.33.34.9.37 1.53.04l11.1-6 .53-.29 2.73-1.47c1.03-.56 1.03-1.47 0-2.02l-2.77-1.5-.84-.45.84.45.1.05z"></path></svg><svg x="3" data-logo="app_store"><path d="M17.62 16.37q-.48 1.09-1.15 2.03-.9 1.27-1.48 1.75-.88.8-1.9.83-.72 0-1.76-.42a5 5 0 0 0-1.89-.4q-.9 0-1.94.4a5 5 0 0 1-1.68.44q-.98.04-1.95-.85-.62-.53-1.55-1.82a13 13 0 0 1-1.63-3.2 12 12 0 0 1-.69-3.8q0-2.1.93-3.64A5.4 5.4 0 0 1 5.5 5.03q.77 0 2.03.46t1.62.47q.26 0 1.79-.55a6 6 0 0 1 2.43-.42 5.2 5.2 0 0 1 4.05 2.09q-2.4 1.44-2.4 4.02a4.4 4.4 0 0 0 1.49 3.34q.66.61 1.48.95-.18.5-.38.98M13.5.42q0 1.58-1.17 2.94c-.94 1.08-2.07 1.7-3.3 1.6L9 4.56c0-1 .45-2.08 1.24-2.96q.6-.67 1.5-1.12.93-.44 1.74-.48z"></path></svg><path d="M32.55 17.04h2.5L38.7 7h-1.8l-2.94 8.28h-.28L30.84 7H29zm15.52 0-4.61-5.2L47.72 7H45.6l-3.56 4.09h-.42V7h-1.7v10.04h1.7v-4.3h.43l3.76 4.3z"></path><path d="M57.89 11.89a2.2 2.2 0 0 0 1.44-2.16C59.33 8.14 58 7 56.06 7h-3.92v10.04h4.2c1.96 0 3.29-1.14 3.29-2.8 0-1.17-.66-2.04-1.74-2.35m-4.04-3.4h2.21c.92 0 1.54.56 1.54 1.39 0 .8-.62 1.36-1.54 1.36h-2.2zm2.5 7.06h-2.5v-2.81h2.5c.9 0 1.52.57 1.52 1.4 0 .84-.62 1.4-1.52 1.4m4.84 1.5h2.32l2.77-5.5h.22v5.5h1.57v-7.4h-2.32l-2.77 5.5h-.22v-5.5h-1.57zm7.96 2.21h1.64v-2.2h5.33v2.2h1.64v-3.7h-1.29V9.64h-5.43l-.37 3.78c-.13 1.34-.53 2.13-1.34 2.13h-.18zm2.49-3.7c.4-.39.57-1.04.68-2.15l.23-2.27h2.28v4.42zm14.38-2.3a3.7 3.7 0 0 0-3.84-3.76 3.7 3.7 0 0 0-3.85 3.85 3.7 3.7 0 0 0 3.85 3.84c1.54 0 2.99-.72 3.55-2.13l-1.54-.26c-.36.53-1.04.9-1.91.9-1.26 0-2.09-.77-2.24-1.91H86zm-3.84-2.33c1.02 0 1.8.65 2.06 1.58h-4.1a2.1 2.1 0 0 1 2.04-1.58m8.66 6.26c2.32 0 3.96-1.6 3.96-3.84 0-2.25-1.64-3.85-3.96-3.85s-3.97 1.6-3.97 3.85 1.64 3.84 3.97 3.84m0-1.5c-1.34 0-2.25-.95-2.25-2.34 0-1.4.9-2.35 2.25-2.35 1.34 0 2.25.95 2.25 2.35s-.91 2.35-2.25 2.35" class="_ru"></path><path d="M35.02 17.36h-2.48L29 7.42h1.83l2.83 8.2h.28l2.93-8.2h1.8zm8.41-5.15 4.6 5.15h-2.24l-3.75-4.26h-.43v4.26h-1.7V7.42h1.7v4.05h.41l3.55-4.05h2.1zm13.37 5.15h-2.48L50.8 7.42h1.83l2.82 8.2h.29l2.92-8.2h1.8zm6.46 0h-1.64v-7.33h1.64zm-.81-8.37q-.45 0-.74-.27a1 1 0 0 1-.28-.72q0-.44.28-.72.3-.28.74-.28t.72.28q.3.29.29.72 0 .44-.29.72t-.72.27m5.93 8.51q-1.03 0-1.86-.48a3.5 3.5 0 0 1-1.29-1.35 4 4 0 0 1-.45-1.98q0-1.1.45-1.95.46-.88 1.3-1.36.81-.5 1.85-.5.9 0 1.6.38.68.35 1.13.88V7.42h1.63v9.94h-1.22l-.34-1.18q-.46.54-1.17.94a3.4 3.4 0 0 1-1.63.38m.4-1.45q1.04 0 1.68-.65.65-.66.65-1.7t-.65-1.7a2.2 2.2 0 0 0-1.68-.66 2.2 2.2 0 0 0-1.66.66q-.64.66-.64 1.7t.64 1.7q.64.65 1.66.65m13.15-2.44-.03.52h-5.94q.12.86.71 1.38.6.51 1.52.51.63 0 1.13-.24.51-.24.78-.65l1.53.26q-.39 1.01-1.38 1.56-.96.55-2.16.55-1.1 0-1.98-.48a3.6 3.6 0 0 1-1.85-3.33q0-1.1.48-1.95.5-.88 1.37-1.36a4 4 0 0 1 1.98-.5q1.11 0 1.98.5.88.48 1.36 1.34.5.86.5 1.89m-3.84-2.31q-.73 0-1.29.42-.53.42-.74 1.14h4.1a2.2 2.2 0 0 0-2.07-1.56m8.66 6.2q-1.14 0-2.04-.48a3.7 3.7 0 0 1-1.4-1.35 4 4 0 0 1-.5-1.98q0-1.1.5-1.95.5-.88 1.4-1.36.9-.5 2.04-.5t2.03.5q.91.48 1.4 1.36.52.86.52 1.95 0 1.11-.51 1.98-.5.86-1.4 1.35-.9.48-2.04.48m0-1.48q.99 0 1.62-.63.63-.66.63-1.7t-.63-1.67a2.2 2.2 0 0 0-1.62-.65q-.99 0-1.62.65-.62.63-.62 1.67 0 1.05.62 1.7.63.63 1.62.63" class="_en"></path></svg>');function Rm(t,e){let i=Ln(e,["$$slots","$$events","$$legacy","children"]);var o=Lx();to(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"var(--btn-color, #fff)","fill-rule":"evenodd","aria-hidden":"true","clip-rule":"evenodd",viewBox:"0 0 95 24",role:"img",...i}));var r=T(o);ii(r,()=>{var s;return(s=e.children)!=null?s:vt}),ai(6),S(o),b(t,o)}var Mx={hash:"s-2a",code:"svg [data-logo],svg[data-testid=vk-video-logo-icon--en] ._ru,svg[data-testid=vk-video-logo-icon--short] ._en,svg[data-testid=vk-video-logo-icon--short] ._ru,svg[data-testid=vk-video-logo-icon] ._en{opacity:0;visibility:hidden}svg[data-logo=app_store] [data-logo=app_store],svg[data-logo=play_market] [data-logo=play_market],svg[data-logo=vk_video] [data-logo=vk_video]{opacity:1;visibility:visible}"};function Nm(t,e){B(e,!0),G(t,Mx);let i=g(e,"short",3,!1),o=g(e,"isCyrillic",3,!0),r=g(e,"logo",19,()=>"vk_video"),s="vk-video-logo-icon--short",l=24,d=v(()=>!o()&&!i()?91:i()?l:95),a=v(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?s:"vk-video-logo-icon"),u=v(()=>`0 0 ${n(d)} 24`);Rm(t,{get width(){return n(d)},height:"24",get viewBox(){return n(u)},get"data-testid"(){return n(a)},get"data-logo"(){return r()}}),F()}function fc(t,e){B(e,!0);let[i,o]=Ne(),r=()=>w($,"$isMobile",i),s=()=>w(m,"$currentGridType$",i),l=()=>w(_,"$isCyrillicRelatedInterface$",i),d=g(e,"ref",15,void 0),a=g(e,"logoClickable",3,!1),u=g(e,"targetUrl",3,""),f=Rt(),p=he(),m=p.ui.currentGridType$,$=p.ui.isMobile,y=p.ui.t,_=p.isCyrillicRelatedInterface$,x=v(()=>f.logoType!=="vk"),I=v(()=>n(x)?y("tooltip_vk_video_logo"):y("tooltip_vk_logo")),C=v(()=>(r()&&Ns(s(),"m")||Ns(s(),"l"))&&n(x)),R=()=>{var k,Q;e.click(),(k=p.callbacks)!=null&&k.onLogoClicked?(Q=p.callbacks)==null||Q.onLogoClicked():u()&&window.open(u(),"_blank")},A=v(()=>!a()),E=v(()=>n(x)?"btn-vk-video-logo":"btn-vk-logo");Kt(t,{className:"btn-full-opacity",get disabled(){return n(A)},click:R,get testId(){return n(E)},get ariaLabel(){return n(I)},get ref(){return d()},set ref(k){d(k)},children:(k,Q)=>{var H=Ae(),z=ue(H);{var X=Z=>{Nm(Z,{get logo(){return f.logoType},get short(){return n(C)},get isCyrillic(){return l()}})},se=Z=>{Vm(Z,{})};V(z,Z=>{n(x)?Z(X):Z(se,!1)})}b(k,H)},$$slots:{default:!0}}),F(),o()}var gb=require("@vkontakte/videoplayer-core/es2018");var Dm=require("@vkontakte/videoplayer-core/es2018");var Vx=Ie('<path d="M3.6 13.3a5.1 5.1 0 0 1 5.05 5.83.9.9 0 0 1-1.78-.26 3.3 3.3 0 0 0-3.74-3.74.9.9 0 0 1-.26-1.78c.24-.03.49-.05.73-.05Z" class="s-z"></path><path d="M3.6 9.7a8.7 8.7 0 0 1 8.68 9.37.9.9 0 0 1-1.8-.14c.02-.17.02-.35.02-.53a6.9 6.9 0 0 0-7.43-6.88.9.9 0 0 1-.14-1.8l.67-.02ZM3.6 16.9a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3Z" class="s-z"></path><path d="M16.24 4.1c.8 0 1.47 0 2 .04a4 4 0 0 1 1.53.38 3.9 3.9 0 0 1 1.7 1.71 4 4 0 0 1 .39 1.53c.04.53.04 1.2.04 2v4.48c0 .8 0 1.47-.04 2a4 4 0 0 1-.38 1.53 3.9 3.9 0 0 1-1.7 1.7 4 4 0 0 1-1.54.39c-.53.04-1.2.04-2 .04H15a.9.9 0 0 1 0-1.8h1.2c.85 0 1.44 0 1.9-.04.44-.03.68-.1.85-.19.4-.2.72-.52.92-.92.09-.17.16-.4.2-.85.03-.46.03-1.05.03-1.9V9.8c0-.85 0-1.44-.04-1.9-.03-.44-.1-.68-.19-.85a2.1 2.1 0 0 0-.92-.92 2.25 2.25 0 0 0-.85-.2 25.9 25.9 0 0 0-1.9-.03H5.83a2.1 2.1 0 0 0-1.81 1.4.9.9 0 1 1-1.7-.6A3.9 3.9 0 0 1 6 4.1h10.24Z" class="s-z"></path>',1),Rx=Ie('<path d="M3.60219 13.2993C6.41858 13.2995 8.70256 15.5835 8.70278 18.3999C8.70277 18.6469 8.68424 18.8909 8.65004 19.1294C8.57937 19.6212 8.12333 19.9625 7.63149 19.8921C7.13968 19.8213 6.79823 19.3654 6.86879 18.8735C6.89087 18.7195 6.90199 18.5611 6.902 18.3999C6.90178 16.5776 5.42447 15.1003 3.60219 15.1001C3.441 15.1001 3.28267 15.1112 3.12856 15.1333C2.63666 15.2039 2.18077 14.8624 2.11 14.3706C2.03966 13.8788 2.38091 13.4227 2.8727 13.3521C3.11125 13.3178 3.35516 13.2993 3.60219 13.2993Z"></path><path d="M3.60219 9.69971C8.40682 9.69977 12.3021 13.5953 12.3024 18.3999C12.3024 18.6248 12.2938 18.8489 12.277 19.0698C12.239 19.5651 11.8065 19.9365 11.3112 19.8989C10.8157 19.8611 10.4445 19.4286 10.4821 18.9331C10.4954 18.7576 10.5026 18.5791 10.5026 18.3999C10.5023 14.5894 7.41271 11.5005 3.60219 11.5005C3.42268 11.5005 3.24474 11.5066 3.06899 11.52C2.57352 11.5578 2.14115 11.1863 2.10317 10.6909C2.06587 10.1957 2.43694 9.76287 2.93227 9.7251C3.15348 9.70823 3.37699 9.69971 3.60219 9.69971Z"></path><path d="M3.60219 16.8999C4.43047 16.8999 5.10198 17.5717 5.10219 18.3999C5.10209 19.2282 4.43054 19.8999 3.60219 19.8999C2.77383 19.8999 2.10229 19.2282 2.10219 18.3999C2.10241 17.5717 2.7739 16.8999 3.60219 16.8999Z"></path><path d="M16.2379 4.1001C17.0459 4.10009 17.7067 4.10017 18.2438 4.14404C18.7997 4.18946 19.3022 4.28599 19.7711 4.5249C20.5049 4.89882 21.1014 5.49623 21.4752 6.22998C21.714 6.69873 21.8107 7.20063 21.8561 7.75635C21.9 8.29338 21.9001 8.95424 21.9 9.76221V14.2378C21.9001 15.0458 21.9 15.7066 21.8561 16.2437C21.8107 16.7996 21.7141 17.3021 21.4752 17.771C21.1014 18.5046 20.5048 19.1012 19.7711 19.4751C19.3022 19.714 18.7997 19.8105 18.2438 19.856C17.7067 19.8998 17.0459 19.8999 16.2379 19.8999H14.9997C14.503 19.8996 14.1005 19.4972 14.1002 19.0005C14.1002 18.5036 14.5028 18.1004 14.9997 18.1001H16.1998C17.0548 18.1001 17.6422 18.0992 18.0973 18.062C18.5419 18.0257 18.7809 17.9596 18.9538 17.8716C19.3489 17.6702 19.6704 17.3487 19.8717 16.9536C19.9598 16.7808 20.0258 16.5417 20.0622 16.0972C20.0993 15.6421 20.1002 15.0546 20.1002 14.1997V9.80029C20.1002 8.94536 20.0993 8.35794 20.0622 7.90283C20.0258 7.45834 19.9598 7.21921 19.8717 7.04639C19.6704 6.6514 19.3487 6.33073 18.9538 6.12939C18.7809 6.04133 18.5419 5.97431 18.0973 5.93799C17.6422 5.9008 17.0548 5.8999 16.1998 5.8999H6.00063L5.83071 5.90674C4.99191 5.97398 4.28981 6.53462 4.01918 7.30029C3.85342 7.76872 3.33928 8.01472 2.87075 7.84912C2.40214 7.68346 2.15628 7.16833 2.32192 6.69971C2.85696 5.18632 4.30125 4.1001 6.00063 4.1001H16.2379Z"></path><path d="M2.95114 7.11345C2.42394 7.1914 1.90399 6.78569 2.00995 6.2634C2.05777 6.0277 2.12517 5.82449 2.22018 5.63803C2.5078 5.07354 2.96674 4.6146 3.53123 4.32698C4.17296 4 5.01304 4 6.6932 4H17.2001C18.8803 4 19.7204 4 20.3621 4.32698C20.9266 4.6146 21.3855 5.07354 21.6731 5.63803C22.0001 6.27976 22.0001 7.11984 22.0001 8.8V15.2C22.0001 16.8802 22.0001 17.7202 21.6731 18.362C21.3855 18.9265 20.9266 19.3854 20.3621 19.673C19.7204 20 18.8803 20 17.2001 20H15.7196C15.2009 20 14.8203 19.5134 14.8938 19C14.9638 18.5101 15.0001 18.0093 15.0001 17.5C15.0001 11.701 10.2991 7 4.5001 7C3.97384 7 3.45662 7.03872 2.95114 7.11345Z"></path>',1),Nx={hash:"s-z",code:".animated.s-z{animation-duration:1s;animation-iteration-count:infinite}.wave1.animated.s-z{animation-name:s-z-wave1}.wave2.animated.s-z{animation-name:s-z-wave2}.wave3.animated.s-z{animation-name:s-z-wave3}@keyframes s-z-wave1{0%{opacity:.3}33%{opacity:1}66%{opacity:1}to{opacity:1}}@keyframes s-z-wave2{0%{opacity:.3}33%{opacity:.3}66%{opacity:1}to{opacity:1}}@keyframes s-z-wave3{0%{opacity:.3}33%{opacity:.3}66%{opacity:.3}to{opacity:1}}"};function mc(t,e){B(e,!0),G(t,Nx);let i=g(e,"isMobile",3,!1),o=v(()=>e.iconState===Dm.ChromecastState.CONNECTED),r=v(()=>e.iconState===Dm.ChromecastState.CONNECTING),s=v(()=>n(o)?"#2688EB":ta),l=v(()=>e.size?cn(e.size):void 0);var d=Ae(),a=ue(d);{var u=p=>{Ze(p,{get fill(){return n(s)},get style(){return n(l)},testId:"chromecast-mobile-icon",children:(m,$)=>{var y=Vx();ai(2),b(m,y)},$$slots:{default:!0}})},f=p=>{Ze(p,{get style(){return n(l)},testId:"chromecast-icon",children:(m,$)=>{var y=Rx(),_=ue(y);let x;var I=P(_);let C;var R=P(I);let A;var E=P(R);let k;var Q=P(E);let H;D((z,X,se,Z,oe)=>{x=re(_,0,"wave2 s-z",null,x,z),C=re(I,0,"wave3 s-z",null,C,X),A=re(R,0,"wave1 s-z",null,A,se),k=re(E,0,"s-z",null,k,Z),H=re(Q,0,"s-z",null,H,oe)},[()=>({animated:n(r)}),()=>({animated:n(r)}),()=>({animated:n(r)}),()=>({hidden:n(o)}),()=>({hidden:!n(o)})]),b(m,y)},$$slots:{default:!0}})};V(a,p=>{i()?p(u):p(f,!1)})}b(t,d),F()}var hb=require("@vkontakte/videoplayer-shared/es2018");function vc(t,e){B(e,!0);let i=g(e,"ref",15,void 0),o=g(e,"isMobile",3,!1),r=g(e,"click",3,hb.noop),l=he().ui.t,d=v(()=>e.state===gb.ChromecastState.CONNECTED?l("tooltip_chromecast_on"):l("tooltip_chromecast_off"));Kt(t,{get ariaLabel(){return n(d)},get click(){return r()},testId:"btn-chromecast",get ref(){return i()},set ref(a){i(a)},children:(a,u)=>{mc(a,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),F()}var _b=require("@vkontakte/videoplayer-shared/es2018");var Dx=Ie('<path d="m21.62 16.5-.02.07q-.22 1.27-.42 2.09a5 5 0 0 1-.64 1.5 4.4 4.4 0 0 1-2.51 1.73q-.77.18-1.63.07t-2.11-.34l-4.34-.8q-1.27-.22-2.1-.42a5 5 0 0 1-1.5-.65 4.4 4.4 0 0 1-1.72-2.5 5 5 0 0 1-.07-1.63q.1-.84.34-2.11l.01-.07q.22-1.27.43-2.1a5 5 0 0 1 .64-1.5 4.4 4.4 0 0 1 2.5-1.73 5 5 0 0 1 1.64-.07q.83.1 2.1.35l4.34.8q1.28.21 2.1.42a5 5 0 0 1 1.5.64 4.4 4.4 0 0 1 1.73 2.5q.18.78.07 1.64-.1.83-.34 2.1m-1.45-2.3c.05-.49.03-.77-.02-1a2.6 2.6 0 0 0-1.02-1.48 3 3 0 0 0-.93-.37c-.48-.13-1.1-.24-2-.4l-4.26-.79c-.9-.16-1.52-.27-2.01-.33a3 3 0 0 0-1 .03 2.6 2.6 0 0 0-1.48 1.02 3 3 0 0 0-.37.92c-.13.48-.24 1.1-.4 2s-.28 1.51-.33 2c-.06.5-.04.78.02 1 .15.6.51 1.13 1.02 1.48.19.13.45.25.92.37.48.13 1.1.25 2 .4l4.27.79c.9.16 1.52.28 2.01.33s.77.03 1-.02a2.6 2.6 0 0 0 1.47-1.03c.14-.19.25-.45.38-.92.12-.48.24-1.1.4-2s.28-1.51.33-2"></path><path d="M18.19 7.49a.9.9 0 0 1-1.05-.73c-.14-.8-.2-1.08-.28-1.3A2.6 2.6 0 0 0 14.5 3.8c-.22 0-.5.04-1.31.17l-5.85.96a8 8 0 0 0-2.17.5 2.6 2.6 0 0 0-1.33 1.75c-.08.38-.04.85.11 2.23l.01.1a.9.9 0 1 1-1.78.2l-.01-.1-.02-.17a9 9 0 0 1-.07-2.64 4.4 4.4 0 0 1 2.25-2.97c.63-.33 1.42-.46 2.56-.65l.16-.03 5.85-.96.1-.01c.67-.11 1.13-.19 1.55-.18a4.4 4.4 0 0 1 4 2.82c.14.39.23.85.35 1.53l.01.1a.9.9 0 0 1-.72 1.04"></path><path d="M12.72 12.41a.42.42 0 0 0-.69.23l-.72 4.18a.4.4 0 0 0 .03.23c.08.2.33.3.54.22l3.67-1.47a.4.4 0 0 0 .12-.68z"></path>',1);function Om(t){Ze(t,{testId:"episodes-icon",children:(e,i)=>{var o=Dx();ai(2),b(e,o)},$$slots:{default:!0}})}var rp=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var Ox=L('<span class="text mobile s-24"> </span> <div class="chevron-episodes s-24" data-testid="btn-episodes_icon"><!></div>',1),Bx=L('<span class="text s-24"> </span>'),Fx=L('<span class="text count s-24"> </span>'),Hx=L('<span class="icon s-24"><!></span> <!>',1),Ux={hash:"s-24",code:".icon.s-24{flex-shrink:0}.text.s-24{overflow:hidden;padding:0 8px;text-overflow:ellipsis;white-space:nowrap}.text.count.s-24{overflow:visible}.text.mobile.s-24{padding:0 3px 0 4px}.chevron-episodes.s-24{margin-bottom:-6px;opacity:.7;transform:scale(.8)}"};function gc(t,e){var J,Ce,me;B(e,!0),G(t,Ux);let[i,o]=Ne(),r=()=>w(y,"$currentGridType$",i),s=()=>w(_,"$openedByKeyboard$",i),l=()=>w(x,"$panelOpened$",i),d=()=>w(I,"$isMobile",i),a=g(e,"position",3,0),u=g(e,"duration",3,0),f=g(e,"timeCodes",19,()=>[]),p=he(),m=(Ce=(J=p.callbacks)==null?void 0:J.onEpisodeChanged)!=null?Ce:_b.noop,$=!!((me=p.callbacks)!=null&&me.onEpisodeClicked),y=p.ui.currentGridType$,_=p.ui.episodes.openedByKeyboard$,x=p.ui.episodes.panelOpened$,I=p.ui.isMobile,C=p.ui.t,R=q(void 0),A=ee=>{var we,ge,pe;if(!!((we=p.callbacks)!=null&&we.onEpisodeClicked)){let Qe=ra(ee);_.set(Qe),x.set(!0),(pe=(ge=p.callbacks)==null?void 0:ge.onEpisodeClicked)==null||pe.call(ge,Qe)}},E=q(null),k=v(()=>a()/u());De(()=>{var _e;let ee=rp(n(k),u(),f());ee?((_e=n(E))==null?void 0:_e.time)!==ee.time&&(m(ee),N(E,ee,!0)):N(E,null)});let Q=v(()=>{var ee;return((ee=n(E))==null?void 0:ee.text)||""}),H=v(()=>io(r(),"xl")?"FULL":io(r(),"m")?"COUNT":"SHORT"),z=v(()=>`${C("tooltip_episodes")}: ${n(Q)}`),X=async(ee,_e,we)=>{await ho(),(ee==null?void 0:ee.getAttribute("aria-expanded"))==="false"&&_e&&!we&&Tt(()=>{_.set(!1),ee.focus()})};De(()=>{X(n(R),s(),l())});var se=Ae(),Z=ue(se);{var oe=ee=>{let _e=v(()=>d()?"px-0":""),we=v(()=>!$);Kt(ee,{get className(){var ge;return`w-max btn-full-opacity btn-jc-l ${(ge=n(_e))!=null?ge:""}`},testId:"btn-episodes",click:A,get disabled(){return n(we)},get ariaExpanded(){return l()},get ariaLabel(){return n(z)},get ref(){return n(R)},set ref(ge){N(R,ge,!0)},children:(ge,pe)=>{var Qe=Ae(),U=ue(Qe);{var O=K=>{var ae=Ox(),xe=ue(ae),Oe=T(xe,!0);S(xe);var it=P(xe,2),ne=T(it);Lr(ne,{direction:"right"}),S(it),D(()=>ve(Oe,n(Q))),b(K,ae)},Ge=K=>{var ae=Hx(),xe=ue(ae),Oe=T(xe);Om(Oe,{}),S(xe);var it=P(xe,2);{var ne=Re=>{var Ve=Bx(),et=T(Ve,!0);S(Ve),D(()=>ve(et,n(Q))),b(Re,Ve)},ce=(Re,Ve)=>{{var et=ke=>{var Te=Fx(),Be=T(Te,!0);S(Te),D(()=>ve(Be,f().length)),b(ke,Te)};V(Re,ke=>{n(H)==="COUNT"&&ke(et)},Ve)}};V(it,Re=>{n(H)==="FULL"?Re(ne):Re(ce,!1)})}b(K,ae)};V(U,K=>{d()?K(O):K(Ge,!1)})}b(ge,Qe)},$$slots:{default:!0}})};V(Z,ee=>{n(E)&&ee(oe)})}b(t,se),F(),o()}var sv=require("@vkontakte/videoplayer-shared/es2018");var vi=require("@vkontakte/videoplayer-core/es2018"),st=require("@vkontakte/videoplayer-shared/es2018"),$s=require("@vkontakte/videoplayer-statistics/es2018");var Ke=require("@vkontakte/videoplayer-shared/es2018"),oo=require("@vkontakte/videoplayer-shared/es2018"),zx="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",sp=class{constructor(e,i){this.adman=null;this.initialVolume=1;this.videoElement=null;this.currentAdSection=null;this.actions=null;this.adsState=null;this.playerState=null;this.events={init$:new oo.Subject,loadStarted$:new oo.Subject,loadEnded$:new oo.Subject,loadError$:new oo.Subject,ready$:new oo.Subject,slotRequested$:new oo.Subject,started$:new oo.Subject,timeRemained$:new oo.Subject,paused$:new oo.Subject,resumed$:new oo.Subject,ended$:new oo.Subject,empty$:new oo.Subject,skipped$:new oo.Subject,clicked$:new oo.Subject,closed$:new oo.Subject,error$:new oo.Subject};this.loadAdman=e=>(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[(0,Ke.now)()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((i,o)=>{let r;this.events.loadStarted$.next();let s=()=>{clearTimeout(r),delete window.admanAsyncInit,window.AdmanHTML?(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[(0,Ke.now)()]}),i(),this.events.loadEnded$.next()):(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[(0,Ke.now)()]}),o())};(0,oo.addScript)(zx,e,this.loadTimeout).then(()=>{Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[(0,Ke.now)()]}),window.AdmanHTML?(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[(0,Ke.now)()]}),i(),this.events.loadEnded$.next()):(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[(0,Ke.now)()]}),window.admanAsyncInit=s,r=window.setTimeout(s,this.initTimeout))}).catch(l=>{Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(l)],numbers:[(0,Ke.now)()]}),o(),clearTimeout(r)})});this.loadAdmanNPM=e=>new Promise((i,o)=>{let r;this.events.loadStarted$.next();let s=()=>{clearTimeout(r),delete window.admanAsyncInit,window.AdmanHTML?(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[(0,Ke.now)()]}),i(),this.events.loadEnded$.next()):(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[(0,Ke.now)()]}),o())},l=()=>{d=!0,o()},d=!1,a=window.setTimeout(()=>{Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[(0,Ke.now)()]}),l()},this.loadTimeout);e.addEventListener("abort",l),e.aborted&&(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[(0,Ke.now)()]}),l()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[(0,Ke.now)()]}),!d&&(window.AdmanHTML?(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[(0,Ke.now)()]}),i(),this.events.loadEnded$.next()):(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[(0,Ke.now)()]}),window.admanAsyncInit=s,r=window.setTimeout(s,this.initTimeout)))},l).finally(()=>{clearTimeout(r),clearTimeout(a),e.removeEventListener("abort",l)})});this.onAdsReady=()=>{Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[(0,Ke.now)()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{var o;Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[(0,Ke.now)(),i.bannerID]}),this.adsState&&this.playerState&&this.actions?(this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(i)}`}),this.events.started$.next(e),i.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"})),this.adsState.duration.set(i.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(i.allowClose),this.adsState.secondsToWatchBeforeSkip.set(i.allowCloseDelay),this.startWatchDog(),(o=this.externalApi)!=null&&o.videoTrackAdEvent&&this.safeExternalCall(this.externalApi.videoTrackAdEvent,e,String(i.bannerID))):this.onAdError("Started callback failed: Adman is not initialized")};this.onAdTimeRemained=e=>{var o;((o=this.adsState)!=null&&o.playbackState?be(this.adsState.playbackState):void 0)!=="inactive"&&(this.adsState?(this.adsState.position.set(e.currentTime),this.events.timeRemained$.next(e),this.startWatchDog()):this.onAdError("TimeRemained callback failed: Adman state is not initialized"))};this.onAdPaused=()=>{var e;Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ke.now)()]}),this.stopWatchDog(),this.adsState?(this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")):this.onAdError("Paused callback failed: Adman state is not initialized")};this.onAdPlayed=()=>{var e;Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ke.now)()]}),this.startWatchDog(),this.adsState?(this.log({message:"ad played"}),this.adsState.playbackState.set("playing")):this.onAdError("Player callback failed: Adman is not initialized")};this.onAdMidrollPoint=()=>{if(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[(0,Ke.now)()]}),this.adman&&this.actions){this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch(e){this.onAdError("could not start midroll")}}else this.onAdError("Midroll callback failed: Adman is not initialized")};this.onAdSkipped=()=>{var e;Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ke.now)()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ke.now)()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ke.now)()]}),this.log({message:"ad completed"}),this.currentAdSection?(this.events.ended$.next(this.currentAdSection),this.currentAdSection==="postroll"&&this.setPostrollPassed(!0)):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{var e,i;Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ke.now)()]}),this.log({message:"ad clicked"}),(i=this.videoElement)==null||i.pause(),this.currentAdSection&&this.events.clicked$.next(this.currentAdSection),this.stopWatchDog()};this.onAdError=(e="ad error")=>{Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[(0,Ke.now)()]}),this.log({message:e}),this.events.error$.next(e),this.currentAdSection==="postroll"&&this.setPostrollPassed(!0),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[(0,Ke.now)()]}),this.loadTimeout=i.loadTimeout,this.initTimeout=i.initTimeout,this.runtimeTimeout=i.runtimeTimeout,this.useAdmanFromNPM=i.useAdmanFromNPM,this.volumeMultiplier=Math.max(0,Math.min(i.volumeMultiplier,1)),this.isVsidOriginal=i.isVsidOriginal}init(e,i,o){this.actions=e,this.adsState=i,this.playerState=o}onAdmanLoadingError(){this.onAdError("adman loading error")}async initAdman(e){var R,A;if(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[(0,Ke.now)(),e.slotId]}),this.adman)return;this.events.init$.next(e.slotId),this.startWatchDog();let{width:i,height:o,isAutoplay:r,adsContainer:s,adsVideoElement:l,slotId:d,params:a={},paramsOverride:u={},duration:f,externalApi:p}=e;this.externalApi=p;let m,$=this.playerState&&be(this.playerState.vsid);$&&(this.isVsidOriginal?m=$:m=parseInt($,36));let{isEmbed:y,immediateOrigin:_}=(0,Ke.detectEmbed)(),x=(R=y?_:window.location.href)!=null?R:window.location.href,I={...a,dl:encodeURIComponent(x),autoplay:r?1:0,player_width:i,player_height:o,...m?{request_id:m}:{},duration:f,...u};I=Object.fromEntries(Object.entries(I).filter(([E,k])=>(0,Ke.isNonNullable)(k)));let C={slot:d,wrapper:s,videoEl:l,videoQuality:o,params:I,browser:{mobile:!1}};try{let E=new window.AdmanHTML;if(E.onReady(this.onAdsReady),E.onStarted(this.onAdStarted),E.onPlayed(this.onAdPlayed),E.onPaused(this.onAdPaused),E.adMidrollPoint(this.onAdMidrollPoint),E.onClosed(this.onAdClosed),E.onSkipped(this.onAdSkipped),E.onClicked(this.onAdClicked),E.onTimeRemained(this.onAdTimeRemained),E.onCompleted(this.onAdCompleted),E.onError(this.onAdError),E.setDebug(!1),(A=this.externalApi)!=null&&A.videoGetAds){let k=await this.safeExternalCall(this.externalApi.videoGetAds,I);k&&(delete C.slot,delete C.params,Object.assign(C,{json:k}))}E.init(C),this.adman=E,this.videoElement=l,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(C)}`})}catch(E){Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(E)],numbers:[(0,Ke.now)()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,r,s;if(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[(0,Ke.now)()]}),this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}let i=this.currentAdSection==="postroll";if(this.actions){if(this.adsState&&this.playerState)this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.log({message:`switch to video, isPostroll: ${i}`});else{let l="Switch to video: Adman state was not updated correctly";this.log({message:l}),this.events.error$.next(l)}(s=(r=this.actions).switchFromAdsToVideo)==null||s.call(r,!i)}}setPostrollPassed(e){var i;(i=this.adsState)==null||i.postrollPassed.set(e),this.log({message:"postroll passed"})}togglePlay(){var e;if(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ke.now)()]}),this.adsState){this.log({message:"toggle play"});let i=be(this.adsState.playbackState);i==="playing"?this.pause():i==="paused"&&this.play()}else this.onAdError("Can not toggle play: Adman state is not initialized")}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){let i=e*this.volumeMultiplier;if(this.log({message:`set volume ${i}`}),this.adman)try{this.adman.setVolume(i)}catch(o){this.onAdError("could not set ad volume")}this.videoElement&&(this.videoElement.volume=i)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch(i){this.onAdError("could not set ad fullscreen")}}startPreroll(){if(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[(0,Ke.now)()]}),this.adman){if(!this.isDestroyed){this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.startWatchDog();try{this.adman.start("preroll")}catch(e){this.onAdError("could not start preroll")}}}else this.onAdError("Can not start preroll: Adman is not initialized")}startPostroll(){var e;if(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ke.now)()]}),this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch(i){this.onAdError("could not start postroll")}}else this.onAdError("Can not start postroll: Adman is not initialized")}startWatchDog(){this.watchDogTimeout&&this.stopWatchDog(),this.watchDogTimeout=window.setTimeout(()=>this.onAdError("Watchdog timeout"),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){var e;if(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ke.now)()]}),this.adman){this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch(i){this.onAdError("could not resume ad")}}else this.onAdError("Can not play: Adman is not initialized")}pause(){var e;if(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ke.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch(i){this.onAdError("could not pause ad")}}else this.onAdError("Can not pause: Adman is not initialized")}skip(){var e;if(Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ke.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch(i){this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}setPosition(e,i){var o;(o=this.adman)==null||o.setPosition(Math.floor(e),Math.floor(i))}destroy(){var e,i,o,r,s,l,d,a,u,f,p,m;Ke.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[(0,Ke.now)()]}),this.log({message:"destroy"}),this.stopWatchDog(),(e=this.adman)==null||e.onReady(void 0),(i=this.adman)==null||i.onStarted(void 0),(o=this.adman)==null||o.onPlayed(void 0),(r=this.adman)==null||r.onPaused(void 0),(s=this.adman)==null||s.adMidrollPoint(void 0),(l=this.adman)==null||l.onClosed(void 0),(d=this.adman)==null||d.onSkipped(void 0),(a=this.adman)==null||a.onClicked(void 0),(u=this.adman)==null||u.onTimeRemained(void 0),(f=this.adman)==null||f.onCompleted(void 0),(p=this.adman)==null||p.onError(void 0),(m=this.adman)==null||m.destroy(),this.videoElement&&(0,oo.clearVideoElement)(this.videoElement),this.isDestroyed=!0}async safeExternalCall(e,...i){var o;try{return await e(...i)}catch(r){return this.onAdError((o=r==null?void 0:r.message)!=null?o:"External call failed"),null}}};var bb=t=>{let e=Math.round(t);return isNaN(e)||e<40?"":e>=40&&e<55?50:e>=55&&e<90?60:e>=90&&e<180?120:e>=180?240:""};var Bm=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e,i){let o=[],r=e.split(this.twoLinesRegExp);for(let s of r){let l={startTime:0,endTime:0,texts:[],lang:i},d=s.split(this.oneLineRegExp);for(let a of d)if(!l.startTime&&!l.endTime){let u=new ap,{startTime:f,endTime:p}=u.parse(a);l.startTime=f,l.endTime=p}else if(a.trim()!==""){let u=new Fm,{texts:f}=u.parse(a);l.texts=[...l.texts,...f]}(l.startTime||l.endTime)&&l.texts.length>0&&o.push(l)}return o}},ap=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 i={startTime:0,endTime:0},o=this.timingRegExp.exec(e);return o&&(i.startTime=this.calcTime(o[1],o[2],o[3],o[4]),i.endTime=this.calcTime(o[6],o[7],o[8],o[9])),i}parseTime(e){let i=this.timeRegExp.exec(e);return i?this.calcTime(i[1],i[2],i[3],i[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",i="0",o="0",r="0"){let s=Number(e)*60*60,l=Number(i)*60,d=Number(o),a=+`0.${r}`;return s+l+d+a}},Fm=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},r=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](l){let d=0,a=[];for(;d<l.length;){let u=["<",">"].reduce((f,p)=>{let m=l.indexOf(p,d);return f===-1||f>m?m:f},-1);if(u===-1){a.push(l.substring(d));break}a.push(l.substring(d,u)),d=u+1}return a}}),s=new ap;for(let l of r)s.isTime(l)?i.texts.push({type:"timestamp",value:s.parseTime(l)}):i.texts.push({type:"text",value:l});return i}},$b=Bm;var dp=require("@vkontakte/videoplayer-shared/es2018"),Ga,Ai,Hm=0,Um=!1,yb="",xb=(t,e=0,i=0)=>t<e&&t<i,lp=(t,e=0,i=0)=>t>=e&&t<=i,Wx=(t,e=0,i=0)=>t>e&&t>i,wb=(t,e,i,o=!1)=>{var d;let r=(d=i.find(({id:a})=>a===e.value))==null?void 0:d.subtitles;if(o)return r==null?void 0:r.find(({startTime:u,endTime:f})=>lp(t,u,f));let s=t>=Hm,l=t<Hm;if(Hm=t,l&&(Um=!1),(0,dp.isNonNullable)(Ga)&&lp(t,Ga.startTime,Ga.endTime)&&yb===e.value)return Ga;if(!(0,dp.isNonNullable)(Ai)&&(r!=null&&r.length)&&!Um){Ai=r.find(({startTime:u,endTime:f})=>lp(t,u,f)||s&&xb(t,u,f)),Ga=void 0,!(0,dp.isNonNullable)(Ai)&&r[r.length-1].endTime<t&&(Um=!0);return}else{if(lp(t,Ai==null?void 0:Ai.startTime,Ai==null?void 0:Ai.endTime))return Ga=Ai,Ai=void 0,yb=e.value,Ga;(s&&Wx(t,Ai==null?void 0:Ai.startTime,Ai==null?void 0:Ai.endTime)||l&&xb(t,Ai==null?void 0:Ai.startTime,Ai==null?void 0:Ai.endTime))&&(Ai=void 0)}};var cp={ru:"Русский",en:"English",uk:"Українська",be:"Беларуская (тарашкевiца)",es:"Español",fi:"Suomi",de:"Deutsch",it:"Italiano",bg:"Български",hr:"Hrvatski",hu:"Magyar",sr:"Српски",pt:"Português",el:"Ελληνικά",pl:"Polski",fr:"Français",ko:"한국어","zh-CN":"汉语",lt:"Lietuvių",ja:"日本語",cs:"Čeština",et:"Eesti",tt:"Татарча",ba:"Башҡортса",cv:"Чăвашла",sk:"Slovenčina",ro:"Română",no:"Norsk",lv:"Latviešu",az:"Azərbaycan dili",hy:"Հայերեն",sv:"Svenska",nl:"Nederlands",tk:"Türkmen",ka:"ქართული",da:"Dansk",uz:"O‘zbek",th:"ภาษาไทย",id:"Bahasa Indonesia",tg:"Тоҷикӣ",sl:"Slovenščina",bs:"Bosanski","pt-BR":"Português brasileiro",fa:"فارسی",vi:"Tiếng Việt",hi:"हिन्दी",si:"සිංහල",bn:"বাংলা",tl:"Tagalog",mn:"Монгол",my:"ဗမာစာ",tr:"Türkçe",ne:"नेपाली",ur:"اردو",ky:"Кыргыз тили",pa:"پنجابی",os:"Ирон",kn:"ಕನ್ನಡ",sw:"Kiswahili",kk:"Қазақша",ar:"العربية",he:"עברית",ab:"Аҧсшәа",eu:"Euskara",eo:"Esperanto"},Kx={abk:"as",ara:"ar",aze:"az",bak:"ba",bel:"be",ben:"bn",bos:"bs",bul:"bg",ces:"cs",chv:"cv",dan:"da",deu:"de",ell:"el",eng:"en",epo:"eo",est:"et",eus:"eu",fas:"fa",fin:"fi",fra:"fr",heb:"he",hin:"hi",hrv:"hr",hun:"hu",hye:"hy",ind:"id",ita:"it",jpn:"ja",kan:"kn",kat:"ka",kaz:"kk",kir:"ky",kor:"ko",lav:"lv",lit:"lt",mon:"mn",mya:"my",nep:"ne",nld:"nl",nor:"no",oss:"os",pan:"pa",pol:"pl",por:"pt",ron:"ro",rus:"ru",sin:"si",slk:"sk",slv:"sl",spa:"es",srp:"sr",swa:"sw",swe:"sv",tat:"tt",tgk:"tg",tgl:"tl",tha:"th",tuk:"tk",tur:"tr",ukr:"uk",urd:"ur",uzb:"uz",vie:"vi"},hc=t=>{var e,i;return(i=(e=cp[t])!=null?e:cp[Kx[t]])!=null?i:void 0};var Sb=require("@vkontakte/videoplayer-shared/es2018"),uB=require("@vkontakte/videoplayer-statistics/es2018"),up=class{constructor(e,i,o,r=new Sb.Subscription){this.oneStat=e;this.thinOneStat=i;this.mediascopePixel=o;this.statSubscription=r}destroy(){var e,i,o;(e=this.oneStat)==null||e.destroy(),(i=this.thinOneStat)==null||i.destroy(),(o=this.mediascopePixel)==null||o.destroy(),this.statSubscription.unsubscribe()}};var _c=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(_c||{});var bs=t=>t!=null?t:0,Ds=(t,e)=>{var r,s;let i=(r=t==null?void 0:t.getBoundingClientRect)==null?void 0:r.call(t),o=(s=e==null?void 0:e.getBoundingClientRect)==null?void 0:s.call(e);return{top:Math.round(bs(i==null?void 0:i.top)-bs(o==null?void 0:o.top)),left:Math.round(bs(i==null?void 0:i.left)-bs(o==null?void 0:o.left)),bottom:Math.round(bs(i==null?void 0:i.bottom)-bs(o==null?void 0:o.top)),right:Math.round(bs(i==null?void 0:i.right)-bs(o==null?void 0:o.left))}},jl=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:bs(e==null?void 0:e.width),height:bs(e==null?void 0:e.height)}};var Rn="off";var Xl=t=>!!(Math.round(Math.abs(t)/90)%2);var Cb=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:r,statAuthToken:s,isAudioDisabled:l,canDownload:d,callbacks:a,webApi:u,videoEpisodes:f,previewThumbsData:p,uiConfig:m,coreConfig:$,player:y,disabledControls:_,isInteractive:x,interactiveRanges$:I,isInteractiveTime$:C,replayInteractive:R,stopPlayer:A,hasInteractiveBranches:E,playPrevChapterDisabledTooltip:k,additionalButtons:Q,additionalSettingsMenuItems:H,additionalContextMenuItems:z,playPrevVideo:X,playNextVideo:se,onVideoChanged:Z,looped:oe=!1,statistics:J,saveRate:Ce,internalsExposure:me,playerView:ee,playerId:_e,metaConfig:we})=>{var mg,vg;let ge={...$,isAudioDisabled:l,live:{...(mg=$.live)!=null?mg:{},isLiveCatchUpMode:!!r}},pe=m,Qe=st.TracerFactory.createRootTracer(pe.features.tracer),U=Qe.createComponentTracer("Store"),O=y||new vi.Player(ge,Qe,{playerId:_e,onDevNullLog:a==null?void 0:a.onDevNullLog});me==null||me.expose({corePlayer:O});let Ge=new st.Logger,K=new sp(Ge,{loadTimeout:pe.ads.loadTimeout,initTimeout:pe.ads.initTimeout,runtimeTimeout:pe.ads.runtimeTimeout,useAdmanFromNPM:pe.ads.useAdmanFromNPM,volumeMultiplier:pe.ads.volumeMultiplier,isVsidOriginal:pe.ads.isVsidOriginal}),ae=Oa.getInstance(),xe=u==null?void 0:u.pictureInPictureApi,Oe=u==null?void 0:u.annotationsApi,it=u==null?void 0:u.slotsApi,ne=u==null?void 0:u.focusManager,ce=Ge.createComponentLog("Store"),Re,Ve,et={},ke=new Nu,Te=new st.Subscription,Be="",It=de(!1),$t=J&&J.oneStat?oi(J.oneStat.vsid$):Ar(void 0),Ot=de(ia()),ct=de(!1),Et=()=>K_(document,vi.clientChecker.device.isIOS),ei=(vg=xe==null?void 0:xe.info.isActive$)!=null?vg:new st.ValueSubject(!1),kt=de(0),Dt=de(!1),Ht=de(!1),Y=de([]),Ee=(0,st.merge)(O.events.fatalError$,O.events.managedError$).subscribe(c=>Y.update(h=>[...h,c])),le=Ar(!1,c=>{let h=O.events.fatalError$.subscribe(()=>c(!0));return()=>h.unsubscribe()}),$e=async c=>{var ie;let h=Object.values(st.InterfaceLanguage).includes(c);if(pe.downloadVKLanguages&&(h&&pe.updateBuiltinLanguages||!Jf(c))){let Se;try{Se=await(0,st.loadVKLangPack)(c,i_,o_)}catch(je){(ie=J==null?void 0:J.oneStat)==null||ie.logError({errorType:"VKLangPack",fatal:!1}),ae==null||ae.report(je,{errorType:"VKLangPack",fatal:!1})}Se&&(Zf({language:c,pack:Se,fallback:pe.defaultLanguage}),Le.set(c),nt.update(je=>je+1))}Jf(c)&&Le.set(c)},Le=de(t),nt=de(0),St=de(e);$e(t);let fe=(c,h)=>{let M=be(Le);return em(M,c,h,pe.defaultLanguage)},Ue=de("thumb");Ue.subscribe(c=>{c==="ads"&&O.info.playbackState$.getValue()&&jt()});let ze=(()=>{let c=fi([le,Ue],([h,M])=>h?"crashed":M);return{...c,is:h=>be(c)===h}})(),at=de(),jt=()=>{at.set({muted:O.info.muted$.getValue()})},Ft=(()=>{let c=de(new Set(_));return{...c,add:h=>{c.update(M=>new Set([...M].concat(h)))},remove:h=>{c.update(M=>{let ie=[...M];return new Set(Array.isArray(h)?ie.filter(Se=>!h.includes(Se)):ie.filter(Se=>Se!==h))})},includes:h=>{let M=be(c);return Array.isArray(h)?h.every(ie=>M.has(ie)):M.has(h)}}})(),ci=de({width:0,height:0}),li=null,Di=O.info.isBuffering$,At=Ar(Di.getValue(),c=>{let h=Di.subscribe(M=>{M&&li===null?li=window.setTimeout(()=>{c(Di.getValue()),li=null},pe.loaderDelay):c(M)});return()=>{h.unsubscribe(),li&&clearTimeout(li)}});U.log("create store"),ce({message:"create store"});let ui=c=>{let h=c.container,M=()=>{gt=new MutationObserver(Se=>{let{removedNodes:je}=Se[0];je.length&&h.append(O.experimental.element$.getValue())}),gt.observe(h,{childList:!0})},ie=O.experimental.element$.getValue();if(ie)h.append(ie),M();else{let Se=O.experimental.element$.pipe((0,st.filter)(je=>!!je),(0,st.once)()).subscribe(je=>{h.append(je),M()});Te.add(Se)}},hi=c=>{ce({message:`init video, config: ${JSON.stringify(c)}`}),x?ui(c):(st.devNull.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[(0,st.now)()]}),O.initVideo(c)),U.log("init video",{isInteractive:x}),c.subtitles&&O.setExternalTextTracks(c.subtitles),Re=c,Be=c.subtitlesForcedLanguage||""},mt=new st.Subject,Xt=c=>mt.next(c),Oi=new st.Subject,Si=new st.Subject,ti=new st.Subject,gt=null,qe={actionRewind$:Oi,actionSeek$:Si,inPiP$:ei,inFullscreen$:new st.Observable(c=>Ot.subscribe(h=>c.next(h))),actionSetSubtitle$:ti,nextMovie$:mt},_i=new st.Subject,_o=new st.Subject,Xo={actionSeek$:Si,actionSubtitlesSwitched$:_i,actionQuality$:_o,playerSize$:new st.Observable(c=>ci.subscribe(h=>c.next(h))),inPiP$:ei,inFullscreen$:new st.Observable(c=>Ot.subscribe(h=>c.next(h))),isLoaderVisible$:new st.Observable(c=>At.subscribe(h=>c.next(h)))};if(J){let{oneStat:c,thinOneStat:h,mediascopePixel:M,statSubscription:ie}=J;c&&(x||ie.add(c.attachTo(O)),ie.add(c.attachToUi(qe)),ie.add(c.attachToAds(K.events)),c.authorize(s).catch(Se=>{ce({message:`onestat auth error ${String(Se)}`})}),M&&M.attachTo(O)),h&&(ie.add(h.attachTo(O,K.events)),ie.add(h.attachToUi(Xo)),ie.add(h.attachToAds(K.events)),h.updateContext({isMobile:be(It)}),h.authorize(s))}if(ae){let c=new st.Subscription,h=(M,ie)=>c.add(M.subscribe(ie));if(h(O.events.managedError$,M=>{ae.logIError(M)}),h(O.events.fatalError$,M=>{ae.logIError(M,!0)}),J){let{oneStat:M}=J;M&&h(M.experimental.error$,ie=>{ae.logIError(ie)})}ae.sentrySubscription.add(c)}let Zo=()=>{if(vi.clientChecker.device.isIOS&&Ve)try{q_(Ve)}catch(c){ce({message:`exitIosSafariFullscreen failed: ${c}`})}};Te.add(O.experimental.element$.subscribe(c=>{c&&(Ve=c,c.classList.add("player-media"),Fa(xe)&&xe.updateVideoElement(),x&&c.setAttribute("pip","false"),(ee==="preview"||!pe.features.pip&&!pe.features.dpip)&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(O.events.ended$.subscribe(()=>{var c;Zo(),(c=a==null?void 0:a.onEnded)==null||c.call(a)})).add(O.events.looped$.subscribe(()=>{var c;(c=a==null?void 0:a.onLooped)==null||c.call(a)})).add(O.events.started$.subscribe(async()=>{var h,M;Fa(xe)&&await(xe==null?void 0:xe.revealPictureInPicture());let c=O.info.muted$.getValue();(h=a==null?void 0:a.onStarted)==null||h.call(a),(M=et.onStarted)==null||M.call(et,c)})).add(O.events.willSeek$.subscribe(({from:c,to:h})=>{var M;(M=a==null?void 0:a.onSeek)==null||M.call(a,c,h)})).add(O.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=a==null?void 0:a.onAutoplaySoundProhibited)==null||c.call(a)})).add(O.info.position$.subscribe(c=>{var M;let h=O.info.duration$.getValue();isFinite(h)&&h>0&&((M=a==null?void 0:a.onTimeupdate)==null||M.call(a,h,c),K.setPosition(c,h))})).add(O.events.fatalError$.subscribe(c=>{var h;(h=a==null?void 0:a.onCrashed)==null||h.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(O.events.fetcherRecoverableError$.subscribe(c=>{var h;(h=a==null?void 0:a.onRecoverableError)==null||h.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(O.events.loadedMetadata$.subscribe(()=>{Dt.set(!0)})).add(O.info.is3DVideo$.subscribe(c=>{Ht.set(c)})).add(O.info.isEnded$.subscribe(c=>{x&&(c?(C!=null&&C.getValue()&&Ft.add(qd),Ft.add("PLAY_BUTTON")):Ft.remove("PLAY_BUTTON"))})).add(O.info.liveTime$.subscribe(c=>{var h;(h=a==null?void 0:a.onLiveTime)==null||h.call(a,c)})).add(O.info.isStalled$.subscribe(c=>{var h;(h=a==null?void 0:a.onStalledChanged)==null||h.call(a,c)})).add(O.info.isLiveEnded$.subscribe(c=>{var h;return c&&((h=a==null?void 0:a.onLiveEnded)==null?void 0:h.call(a))})).add(K.events.loadStarted$.subscribe(()=>{var c,h;return(h=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadStarted)==null?void 0:h.call(c)})).add(K.events.loadEnded$.subscribe(()=>{var c,h;return(h=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadEnded)==null?void 0:h.call(c)})).add(K.events.loadError$.subscribe(()=>{var c,h;return(h=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadError)==null?void 0:h.call(c)})).add(K.events.init$.subscribe(()=>{var c,h;return(h=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onInit)==null?void 0:h.call(c)})).add(K.events.ready$.subscribe(()=>{var c,h;return(h=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onReady)==null?void 0:h.call(c)})).add(K.events.started$.subscribe(c=>{var h,M;return(M=(h=a==null?void 0:a.adsInfo)==null?void 0:h.onStarted)==null?void 0:M.call(h,c)})).add(K.events.timeRemained$.subscribe(c=>{var h,M;return(M=(h=a==null?void 0:a.adsInfo)==null?void 0:h.onTimeRemained)==null?void 0:M.call(h,c)})).add(K.events.ended$.subscribe(c=>{var h,M;return(M=(h=a==null?void 0:a.adsInfo)==null?void 0:h.onCompleted)==null?void 0:M.call(h,c)})).add(K.events.empty$.subscribe(()=>{var c,h;return(h=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onEmpty)==null?void 0:h.call(c)})).add(K.events.clicked$.subscribe(c=>{var h,M;return(M=(h=a==null?void 0:a.adsInfo)==null?void 0:h.onClicked)==null?void 0:M.call(h,c)})).add(K.events.closed$.subscribe(c=>{var h,M;return(M=(h=a==null?void 0:a.adsInfo)==null?void 0:h.onClosed)==null?void 0:M.call(h,c)})).add(K.events.error$.subscribe(c=>{var h,M;return(M=(h=a==null?void 0:a.adsInfo)==null?void 0:h.onError)==null?void 0:M.call(h,c)})).add(K.events.paused$.subscribe(()=>{var c,h;return(h=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onPaused)==null?void 0:h.call(c)})).add(K.events.resumed$.subscribe(()=>{var c,h;return(h=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onResumed)==null?void 0:h.call(c)}));let yt=new st.Subscription,Ut=()=>{var je,Pt,zt;let{debugLog:c}=pe,h,M="#9df7b7",ie="#efd169";if(c&&c!==!0){let{colors:Gt}=c;h=c.tag,M=(je=Gt==null?void 0:Gt[0])!=null?je:M,ie=(zt=(Pt=Gt==null?void 0:Gt[1])!=null?Pt:Gt==null?void 0:Gt[0])!=null?zt:ie}let Se=h?`: ${h}`:"";yt.add(O.events.log$.subscribe(Gt=>{console.debug(`%c sdk${Se} `,`background:${M};`,`sdk component: ${Gt.component}`,Gt.message)})).add(Ge.log$.subscribe(Gt=>{console.debug(`%c ui${Se} `,`background:${ie};`,`ui component: ${Gt.component}.`,Gt.message)}))},W=()=>{yt.unsubscribe()},Lt=(c,h)=>{U.log("start camera manual rotation",{mx:c,my:h}),O.startCameraManualRotation(c,h)},ni=(c=!1)=>{U.log("stop camera manual rotation",{immediate:c}),O.stopCameraManualRotation(c)},ut=(c,h,M)=>{U.log("move camera focus px",{xpx:c,ypx:h,dt:M}),O.moveCameraFocusPX(c,h,M)},Ct=()=>{O.holdCamera()},Zt=()=>{O.releaseCamera()},rt=Ar(O.info.position$.getValue(),c=>{let h,M,ie=()=>{let Se=O.info.playbackState$.getValue(),je=O.info.isLive$.getValue(),Pt=O.info.duration$.getValue(),zt=O.info.position$.getValue();if(Se&&[vi.PlaybackState.PLAYING,vi.PlaybackState.PAUSED].includes(Se)){let Gt=je?zt-Pt:O.getExactTime();Gt!==M&&c(Gt),M=Gt}h=requestAnimationFrame(ie)};return ie(),()=>cancelAnimationFrame(h)}),ki=oi(O.info.playbackState$),Bi=oi(O.info.isBuffering$),Jo=fi([ki,Bi],([c,h])=>h?"buffering":c),No=oi(O.info.currentBuffer$),bo=oi(O.info.isEnded$),Fi=oi(O.info.isLive$),Nn=pe.features.playbackRate?oi(O.info.canChangePlaybackSpeed$):Ar(!1),$o=oi(O.info.liveBufferTime$),yo=oi(O.info.volume$),Pi=oi(O.info.muted$),en=Du(O.info.predefinedQualityLimitType$.pipe((0,st.map)(c=>c===vi.PredefinedQualityLimits.TRAFFIC_SAVING)),O.info.predefinedQualityLimitType$.getValue()===vi.PredefinedQualityLimits.TRAFFIC_SAVING),Do=Du(O.info.predefinedQualityLimitType$.pipe((0,st.map)(c=>c===vi.PredefinedQualityLimits.HIGH_QUALITY)),O.info.predefinedQualityLimitType$.getValue()===vi.PredefinedQualityLimits.HIGH_QUALITY),pn=oi(O.info.autoQualityLimitingAvailable$),hr=oi(O.info.availableQualities$),Vr=oi(O.info.availableQualitiesFps$),is=oi(O.info.chromecastState$),xs=oi(O.info.chromecastDeviceName$),Rr=oi(O.info.currentFormat$),er=oi(O.info.throughputEstimation$),Nr=oi(O.info.videoBitrate$),fn=oi(O.info.intrinsicVideoSize$),mn=oi(O.info.duration$),_r=oi(O.info.isAudioAvailable$),br=()=>{li&&clearTimeout(li),li=null},tn=fi([mn,Fi],([c,h])=>h?-c:c),tr=fi([ki],([c])=>c===vi.PlaybackState.PLAYING),$r=oi(O.info.atLiveEdge$),yr=oi(O.info.atLiveDurationEdge$),Hi=oi(O.info.position$),Dr=fi([Hi,mn],([c,h])=>isFinite(c)&&isFinite(h)&&!!h),ir=fi([is],([c])=>c===vi.ChromecastState.CONNECTED),Dn=oi(O.info.availableVideoStreams$),ro=pe.features.audioLanguages?oi(O.info.availableAudioStreams$):Ar([]),Or=oi(O.info.currentVideoStream$),On=oi(O.info.currentAudioStream$),ht=c=>{c.language&&Gf(c.language),O.setVideoStream(c)},ri=(c,h)=>{O.setAudioStream(c),To(h)&&(c.language&&Gf(c.language),pe.features.userVideoPrefs&&i&&Xf(pe.userSalt,String(i),{audioTrackId:c.id}))},xr=c=>{let h;if(c.length===1&&(h=c.at(0)),h!=null||(h=c.find(ie=>"isDefault"in ie&&ie.isDefault)),pe.features.userVideoPrefs&&i){let ie=Uu(pe.userSalt,String(i));if(ie!=null&&ie.audioTrackId){let Se=c.find(je=>je.id===ie.audioTrackId);h=Se!=null?Se:h}}let M=P_();return M&&(h!=null||(h=c.find(({language:ie})=>M===ie))),h!=null||(h=c.at(0)),h},wr=c=>{U.log("change audio stream",{id:c});let h=O.info.availableAudioStreams$.getValue().find(M=>M.id===c);h&&ri(h,!0)},Br=!1;Te.add(O.info.availableAudioStreams$.subscribe(c=>{if(!Br&&c.length){let h=xr(c);h&&(O.setAudioStream(h),Br=!0)}})),ro.subscribe(c=>{var h;(h=a==null?void 0:a.onAvailableAudioStreamsChanged)==null||h.call(a,c.map(({label:M="",id:ie="",language:Se=""})=>({label:M,language:Se,id:ie})))}),On.subscribe(c=>{var h;return c&&((h=a==null?void 0:a.onAudioStreamChanged)==null?void 0:h.call(a,c.id))});let vn=!1;Te.add(O.info.availableVideoStreams$.subscribe(c=>{if(!vn&&c.length){let h=xr(c);h&&(O.setVideoStream(h),vn=!0)}}));let gn=de(void 0),Oo=oi(O.info.isAutoQualityEnabled$,c=>c&&gn.set(void 0)),hn=oi(O.info.currentQuality$,()=>gn.set(void 0)),_n=fi([gn,hn],([c,h])=>c!=null?c:h),or=fi(Rr,c=>c!==vi.VideoFormat.MPEG),bn=fi([hr,Vr,Oo,_n,or],([c,h,M,ie,Se])=>{let je=[];Se&&je.push({value:"auto",displayValue:fe("auto_quality_option"),selected:M});let Pt=c.filter(zt=>!(0,st.isInvariantQuality)(zt));for(let zt of Pt){let Gt=h[zt];je.push({value:zt,displayValue:`${zt}${Gt?bb(Gt):""}`,selected:M?!1:zt===ie})}return je}),Bo=oi(O.info.currentPlaybackRate$),Bn=fi([Bo,$r,yr],([c,h,M])=>{let ie=M||x?1:pe.controls.playbackRateMin,Se=h?1:pe.controls.playbackRateMax,je=pe.controls.playbackRateStep,Pt=[];for(let zt=ie;zt<=Se;zt+=je)Pt.push({value:zt,displayValue:zt===1?fe("playback_rate_1"):fe("playback_rate",{multiplier:zt.toString(10)}),selected:c===zt});return Pt}),Fn=()=>({displayValue:fe("subtitles_off"),value:Rn,language:""}),Yi=de(Fn()),so=fi([Yi,nt],([c],h)=>{c.value===Rn?h(Fn()):h(c)}),$n=pe.features.subtitles?oi(O.info.availableTextTracks$):Ar([]),Hn=__(),Sr=fi([$n,so],([c,h],M)=>{var je;let ie=[],Se=c.find(({id:Pt})=>Pt===h.value);if(Se!=null&&Se.url){let[,Pt]=(je=Hn.find(Se.url))!=null?je:[];if(Pt){M(Pt);return}ke.download(Se.url).then(zt=>{if(!zt||ke.isDestroyed())return;let Gt=new $b,Ks=Se.language;if(Ks){let T$=!!Se.isAuto,I$=Gt.parse(zt,Ks);ie.push({lang:Ks,subtitles:I$,isAuto:T$,id:Se.id})}Hn.add(Se.url,ie),be(so).value===h.value&&M(ie)}).catch(zt=>{var Gt;(Gt=J==null?void 0:J.oneStat)==null||Gt.logError({errorType:"Subtitles download",fatal:!1}),ae==null||ae.report(zt,{errorType:"Subtitles download",fatal:!1})})}M(ie)}),nr=fi([Bo,tr,so],([c,h,M],ie)=>{let Pt;if(O.info.isLive$.getValue()&&h&&M.value!==Rn){let Gt=()=>{let Ks=1e3/(3*c);Pt=setTimeout(Gt,Ks),ie(Date.now())};return Gt(),()=>clearTimeout(Pt)}}),rr=fi([$n,so],([c,h])=>{if(!c.length)return[];let M=[];for(let{language:ie,isAuto:Se,id:je}of c){let Pt=ie&&hc(ie);ie&&Pt&&M.push({displayValue:Se?fe("subtitles_auto",{language:Pt}):Pt,value:je,selected:(h==null?void 0:h.value)===je,isAuto:Se,language:ie})}return M.length?(M.unshift({...Fn(),selected:(h==null?void 0:h.value)===Rn}),M):[]}),pt={available:[],prev:[]},xt=()=>{var h,M;let c=O.experimental.getCurrentTime$.getValue();return(M=(h=c==null?void 0:c())!=null?h:Ve==null?void 0:Ve.currentTime)!=null?M:0},ao=fi([rt,so,Sr,nr],([c,h,M,ie])=>{var je;let Se=O.info.isLive$.getValue();if(Se&&pt.prev!==M){let Pt=M.find(({id:Gt})=>Gt===h.value),zt=pt.prev.find(({id:Gt})=>Gt===h.value);if(Pt){let Gt={...Pt,subtitles:[...(je=zt==null?void 0:zt.subtitles)!=null?je:[],...Pt.subtitles]};pt.available=[Gt],pt.prev=M}}if(h&&h.value!==Rn){let Pt=Se?xt():c,zt=Se?pt.available:M;return wb(Pt,h,zt,Se)}}),lo=fi([ao],([c])=>c!=null&&c.texts?c.texts:[]);Te.add(so.subscribe(c=>{var h,M;if(c.value===Rn)(h=a==null?void 0:a.onSubtitleOff)==null||h.call(a);else{let ie=Object.entries(cp).find(([Se,je])=>je===c.displayValue);(M=a==null?void 0:a.onSubtitleOn)==null||M.call(a,ie?ie[0]:"",c.value)}}));let on=de(!0),ji=fi([No,tn,Hi,$o],([c,h,M,ie])=>{var zt;let Se=(zt=c==null?void 0:c.end)!=null?zt:0;if(!ie)return Se/h;let Pt=-M+ie-h;return(Se-Pt)/h}),Ui=oi(O.info.availableSources$),co=fi([Ui],([c])=>Object.keys((c==null?void 0:c[vi.VideoFormat.MPEG])||{}).length>0),Un=()=>{var M,ie,Se;let c=Object.keys(((ie=(M=O.info.availableSources$)==null?void 0:M.getValue())==null?void 0:ie[vi.VideoFormat.MPEG])||{}),h=(0,st.getHighestQuality)(c)||st.VideoQuality.Q_144P;return(Se=Re.sources[vi.VideoFormat.MPEG])==null?void 0:Se[h]},Fr=()=>{var h;let c=Un();if(c)U.log("download video",{url:c}),v_(c,((h=Re==null?void 0:Re.meta)==null?void 0:h.title)||"video");else{let M="There is no URL for download video";U.log("download video",{message:M}),ce({message:M})}},Li=()=>{ce({message:"toggle muted"});let c=O.info.muted$.getValue();O.info.volume$.getValue()===0&&!c?nn(Hr(),!1):Xi(!c,!1)},ws=()=>{var c;if(Qt.ui.settingsMenu.visible$.set(!1),!be(Qt.ui.settingsSubMenu.visible$)){let h=be(Qt.ui.settingsMenu.ref$);if((c=a==null?void 0:a.uiInfo)!=null&&c.onSettingsMenu&&h){let ie=jl(h),Se={top:0,left:0,bottom:0,right:0};a.uiInfo.onSettingsMenu({visible:!1,size:ie,position:Se,name:"settings"})}}U.log("close settings menu")},os=async(c,h=()=>Promise.resolve())=>{var Se;Qt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),Qt.ui.settingsMenu.visible$.set(!0),await h();let M=be(Qt.ui.settingsMenu.ref$),ie=_a();if((Se=a==null?void 0:a.uiInfo)!=null&&Se.onSettingsMenu&&M&&ie){let Pt=jl(M),zt=Ds(M,ie);a.uiInfo.onSettingsMenu({visible:!0,size:Pt,position:zt,name:"settings"})}U.log("open settings menu",{wasOpenedByKeyboard:c})},ns=(c,h=!1)=>{var je;Qt.ui.settingsSubMenu.visible$.set(!1);let M=be(Qt.ui.settingsMenu.ref$),ie=_a(),Se=be(Qt.ui.settingsMenu.visible$);if((je=a==null?void 0:a.uiInfo)!=null&&je.onSettingsMenu&&M&&ie)if(Se&&!h){let zt=jl(M),Gt=Ds(M,ie);a.uiInfo.onSettingsMenu({visible:!0,size:zt,position:Gt,name:"settings"})}else{let zt=jl(c),Gt={top:0,left:0,bottom:0,right:0},Ks=be(Qt.ui.settingsSubMenu.name$);a.uiInfo.onSettingsMenu({visible:!1,size:zt,position:Gt,name:Ks})}U.log("close settings sub menu")},rs=(c,h)=>{var ie;Qt.ui.settingsSubMenu.visible$.set(!0),Qt.ui.settingsSubMenu.ref$.set(h),Qt.ui.settingsSubMenu.name$.set(c);let M=_a();if((ie=a==null?void 0:a.uiInfo)!=null&&ie.onSettingsMenu&&h&&M){let je=jl(h),Pt=Ds(h,M);a.uiInfo.onSettingsMenu({visible:!0,name:c,size:je,position:Pt})}U.log("open settings sub menu",{name:c})},Hr=()=>{var h;let c=Math.max(pe.volumeMinRestore,(h=Ou())!=null?h:0);return c===0?pe.volumeDefault:c},To=c=>{let h=pe.features.savePreferredStatesOnUserActionOnly;return!h||h&&!c},nn=(c,h)=>{let M=c===0?Hr():c,ie=O.info.muted$.getValue();ce({message:`set volume, volume: ${c}, preferredVolume: ${M}`});let Se=!l||ze.is("ads");ie&&c>0&&Se&&(ie=!1,To(h)&&qf(!1)),O.setVolume(c,ie),K.setVolume(c),To(h)&&Uf(M)},Xi=(c,h)=>{let M=O.info.volume$.getValue();ce({message:`set muted, currentVolume: ${M}, mute: ${c}`});let ie=ze.is("ads");if(O.setMuted(c,ie),K.setVolume(c?0:M),To(h)&&(!ie||!c)&&qf(c),!c&&M===0){let Se=Hr();O.setVolume(Se),To(h)&&Uf(Se),K.setVolume(Se)}},sr=de(!1),Fe=c=>{var h,M;U.log("set looped",{isLooped:c}),sr.set(c),O.setLooped(c),(M=(h=a==null?void 0:a.uiInfo)==null?void 0:h.onLoopedChanged)==null||M.call(h,c)};Fe(oe);let Mt=()=>{var c,h;(h=(c=a==null?void 0:a.uiInfo)==null?void 0:c.onReportProblem)==null||h.call(c)},$i=(c,h=!1)=>{var M;ce({message:`set autoplayNextEnabled, value: ${c}`}),U.log("set autoplay next enabled",{autoplayNextEnabled:c}),Qt.ui.autoplayNextEnabled$.set(c),M_(c),h&&((M=a==null?void 0:a.onSetAutoplayNextEnabled)==null||M.call(a,c))},Fo=c=>{ce({message:`set timerNextVideoRunning, value: ${c}`}),U.log("set timer next video running",{timerNextVideoRunning:c}),Qt.ui.timerNextVideoRunning$.set(c)},uo=(c=!0)=>{var M;let h=!0;if(c&&(a!=null&&a.onPrevVideoClick))try{h=(M=a==null?void 0:a.onPrevVideoClick)==null?void 0:M.call(a)}catch(ie){ce({message:"onPrevVideoClick callback failed to execute"})}Z(!0),h&&X()},Io=(c=!0)=>{var M;let h=!0;if(c&&(a!=null&&a.onNextVideoClick))try{h=(M=a==null?void 0:a.onNextVideoClick)==null?void 0:M.call(a)}catch(ie){ce({message:"onNextVideoClick callback failed to execute"})}Z(!1),h&&se()},po=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementShow)==null||c.call(a)},Ho=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementClick)==null||c.call(a)},zn=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementAuto)==null||c.call(a)},rn=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementCancel)==null||c.call(a)},xo=()=>{O.prepare()},wo=()=>{(0,st.assertNonNullable)(Qt);let c=be(Qt.ui.controls.disabledControls$),h=be(Qt.playerPhase),M={playerPhase:h,isInteractive:x,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(ce({message:"toggle play"}),h==="ads"){M.action="play",U.log("toggle adman play",M),K.togglePlay();return}let ie=()=>{var je;ce({message:"toggle play, call player.play"}),M.action="play",O.play(),(je=a==null?void 0:a.onPlay)==null||je.call(a)},Se=()=>{var je;ce({message:"toggle play, call player.pause"}),M.action="pause",O.pause(),(je=a==null?void 0:a.onPause)==null||je.call(a)};if(O.info.isEnded$.getValue()){if(ce({message:"toggle play, video ended, seek to 0"}),Oi.next(),Si.next($s.SeekAction.REWIND),x){R==null||R();return}O.seekTime(0),ie()}else O.info.playbackState$.getValue()!==vi.PlaybackState.PLAYING?ie():Se();U.log("toggle play",M)},Wn=(c,{changeReason:h="default",appliesTo:M="to-video",byUser:ie=!1}={},Se)=>{ce({message:`set quality, quality: ${c}`}),U.log("set quality",{quality:c}),ie&&_o.next(c),O.setAutoQuality(c==="auto");let{qualityDetailsSubMenuEnabled:je}=pe.features;Bu(),c!=="auto"?(je?(Fu({type:"exact_quality",quality:c,videoId:i},M),O.setPredefinedQualityLimits(vi.PredefinedQualityLimits.UNKNOWN)):zf(i,c),gn.set(c),O.setQuality(c)):je&&h==="default"&&(ss("auto_quality",M,Se),be(en)&&Kn(!1,void 0,Se),be(Do)&&yn(!1,void 0,Se))},Kn=(c,h="as-default",M)=>{ce({message:`set trafficSavingEnabled, value: ${c}`}),U.log("set traffic saving enabled",{trafficSavingEnabled:c});let ie=c?vi.PredefinedQualityLimits.TRAFFIC_SAVING:vi.PredefinedQualityLimits.UNKNOWN;pe.features.qualityDetailsSubMenuEnabled?(Cr(ie,h,M),Yd(!1)):(O.setPredefinedQualityLimits(ie),To(M)&&Yd(c))},yn=(c,h="as-default",M)=>{ce({message:`set highQualityEnabled, value: ${c}`}),U.log("set high quality enabled",{highQualityEnabled:c}),Cr(c?vi.PredefinedQualityLimits.HIGH_QUALITY:vi.PredefinedQualityLimits.UNKNOWN,h,M)},Cr=(c,h,M)=>{c!==vi.PredefinedQualityLimits.UNKNOWN&&(be(pn)&&!be(Oo)&&Wn("auto",{appliesTo:h,changeReason:"limit-changed"},M),ss(c,h,M)),O.setPredefinedQualityLimits(c)},ss=(c,h,M)=>{To(M)&&(Fu({type:c,videoId:i},h),h==="as-default"&&Fu({type:c,videoId:i},"to-video"))},ar=(c,h=!0)=>{U.log("set playback rate",{playbackRate:c}),O.setPlaybackRate(c),pe.features.saveRate&&Ce&&!O.info.isLive$.getValue()&&h&&A_(c)},Je=()=>{let c=be(Nn),h=be(Bn),M=h.findIndex(({selected:Se})=>Se);if(M===h.length-1||!c)return h[M];let ie=h[M+1];return ar(ie.value),ie},Jt=()=>{let c=be(Nn),h=be(Bn),M=h.findIndex(({selected:Se})=>Se);if(M===0||!c)return h[M];let ie=h[M-1];return ar(ie.value),ie},yi=(c={...Fn(),selected:!1},h)=>{U.log("set subtitles",{...c}),c.value!==Rn&&ti.next(c.isAuto?c.value+"_auto":c.value),_i.next({enabled:c.value!==Rn,lang:c.language,auto:!!c.isAuto}),Yi.set(c),To(h)&&(jf(c.value===Rn?void 0:c.language),pe.features.userVideoPrefs&&i&&Xf(pe.userSalt,String(i),{subtitleTrackId:c.value===Rn?void 0:c.value}))},fo=c=>{U.log("toggle subtitles");let h=be(so);(h==null?void 0:h.value)===Rn?Ur(c):Eo(c)},sn=(c,h)=>{U.log("change subtitle",{enabled:c}),c?Ur(!0,h):Eo(!0)},Ur=(c,h)=>{U.log("subtitle on");let M=be(rr),ie=be(Le),Se=Be!=null?Be:ie,je;h&&(je=M.find(Pt=>Pt.value===h)),je!=null||(je=M.filter(Pt=>Pt.value!==Rn).find(Pt=>Pt.language===Se)),yi(je!=null?je:M[1],c)},Eo=c=>{U.log("subtitle off"),yi(void 0,c)};Te.add(O.info.availableTextTracks$.subscribe(c=>{var M;function h(){let ie=[];for(let{language:Se,isAuto:je,id:Pt}of c){let zt=Se&&hc(Se);Se&&zt&&ie.push({id:Pt,language:Se,title:je?fe("subtitles_auto",{language:zt}):zt})}return ie}(M=a==null?void 0:a.onAvailableSubtitlesChanged)==null||M.call(a,h())}));let lr=de(!0),as=c=>{lr.set(c)},Tr=(c,h,M=!0)=>{var ie;if(ce({message:`seek to time, time: ${c}`}),U.log("seek to time",{time:c,action:h,forcePrecise:M}),Si.next(h),O.info.isLive$.getValue()){let Se=O.info.duration$.getValue(),je=Math.min(0,Se+c);O.seekTime(je,M)}else{if(C!=null&&C.getValue())return;O.info.isEnded$.getValue()&&(ce({message:"seek after ended, call callbacks.onPlay"}),(ie=a==null?void 0:a.onPlay)==null||ie.call(a)),O.seekTime(ug(c),M)}},pa=c=>{ce({message:`seek to episode start time: ${c}`}),U.log("seek to episode start time",{time:c}),Tr(c,$s.SeekAction.EPISODE,!0)},Ss=(c,h,M=!1)=>{ce({message:`seek to percent, percent: ${c}`}),U.log("seek to percent",{percent:c,action:h});let ie=be(tn)*c;Tr(ie,h,M)},xn=c=>{ce({message:`seek external, time: ${c}`}),U.log("seek external",{time:c}),Si.next($s.SeekAction.UNKNOWN),O.seekTime(O.info.isLive$.getValue()?-c:c)},lt=c=>{var ie,Se;let h=(ie=c.max)!=null?ie:"none",M=(Se=c.min)!=null?Se:"none";ce({message:`set auto quality limitation. Max: ${h}. Min: ${M}`}),U.log("set auto quality limits",{max:h,min:M}),O.setAutoQualityLimits(c)},di=c=>{ce({message:`seek external to episode start time: ${c}`}),U.log("seek external to episode start time",{time:c}),Tr(c,$s.SeekAction.EPISODE,!0)},Uo=c=>{ce({message:`set playback rate to: ${c}`}),U.log("set playback rate external",{playbackRate:c}),O.setPlaybackRate(c)},ko=de(!1),qn=de(!1),wn=fi([tn],([c])=>!!p&&c>=pe.suitableDurationForUsingRichSeek&&pe.features.useRichSeek&&!x),ye=((p==null?void 0:p.frameWidth)||0)>=((p==null?void 0:p.frameHeight)||0),wt=fi([kt],([c])=>{let h=Xl(c);return ye?!h:h});Te.add(ze.subscribe(c=>{c!=="video"&&ko.set(!1)}));let Bt=de(void 0),qt=de(!1),Ti=c=>{ce({message:`start scrubbing, progress: ${c}`}),U.log("start scrubbing",{progress:c}),qt.set(!0),Ii(c)},Ii=c=>{Bt.set(c)},Ei,xi,ls=()=>{Bt.set(void 0),qt.set(!1)},ds=()=>{clearTimeout(xi),clearTimeout(Ei),Ei=window.setTimeout(()=>{ls()},500),Ve==null||Ve.removeEventListener("seeked",ds)},dl=(c,h=!1)=>{ce({message:`complete scrubbing, progress: ${c}`}),U.log("complete scrubbing",{progress:c}),Ss(c,$s.SeekAction.SLIDER,h),be(Qt.ui.isMobile)&&be(Qt.state.currentFormat$)===vi.VideoFormat.HLS?(Ve==null||Ve.addEventListener("seeked",ds),xi=window.setTimeout(()=>{ds()},300)):ls()},pd=fi([rt,tn,Bt],([c,h,M],ie)=>{ie((0,st.isNonNullable)(M)?M*h:c)}),Cs=de(!1),cs=()=>{Cs.set(!0)},fa=()=>{Cs.set(!1)},Us=fi([ci],([{width:c}],h)=>{let M=fb(c);h(M)}),ma=Q.filter(c=>g_(c)),us=fi([Us,It],([c,h])=>h?ma.filter(M=>!M.hideOnMobile):ma.filter(M=>{var ie;return!((ie=M.hideOnDesktopGridTypes)!=null&&ie.includes(c))})),Sn=de(Q.filter(c=>h_(c))),cl=fi([Sn,Us],([c,h])=>c.filter(M=>{var ie;return!((ie=M.hideOnDesktopGridTypes)!=null&&ie.includes(h))})),va=fi([cl,us],([c,h])=>[...pe.features.additionalButtonsDesktopControlPanelRight?c.filter(M=>M.type==="desktop-control-panel-right"):[],...pe.features.additionalButtons?h.map((M,ie)=>{var Se;return{id:ie,weight:ie,type:"desktop-control-panel-right",testId:M.testId,icon:M.iconUrl,onClick:M.onClick,ariaLabel:(Se=M.ariaLabel)!=null?Se:M.tooltip,tooltipText:M.tooltip}}):[]].filter(M=>!m.disabledAdditionalButtonIds.includes(M.id))),zr=de(H),ul=fi([zr],([c])=>pe.features.additionalSettingsMenuItems?c.map(h=>h.type==="SWITCH"?{...h,onClick:h.onChangeEnabled}:h):[]),fd=(c,h)=>{let M=be(Sn).map(ie=>ie.id!==c?ie:{...ie,...h});Sn.set(M)},ga=c=>{let h=be(Sn);if(h.some(M=>M.id===c.id)){ce({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}h.push(c),Sn.set(h)},md=c=>{let h=be(Sn);if(!h.some(M=>M.id===c)){ce({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}h=h.filter(M=>M.id!==c),Sn.set(h)},pl=c=>{Si.next($s.SeekAction.LIVE),ce({message:"live switch to low latency "+c}),U.log("live switch to low latency "+c),O.setLiveLowLatency(c)},fl=(c,h)=>{let M=be(zr).map(ie=>ie.id!==c?ie:{...ie,...h});zr.set(M)},ha=c=>{let h=be(zr);if(h.some(M=>M.id===c.id)){ce({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}h.push(c),zr.set(h)},ft=c=>{let h=be(zr);if(!h.some(M=>M.id===c)){ce({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}h=h.filter(M=>M.id!==c),zr.set(h)},ot=de(z),Zi=fi([ot],([c])=>pe.features.additionalContextMenuItems?c:[]),Po=(c,h)=>{let M=be(ot).map(ie=>ie.id!==c?ie:{...ie,...h});ot.set(M)},Ji=c=>{let h=be(ot);if(h.some(M=>M.id===c.id)){ce({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}h.push(c),ot.set(h)},gi=c=>{let h=be(ot);if(!h.some(M=>M.id===c)){ce({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}h=h.filter(M=>M.id!==c),ot.set(h)},zi=fi([It,le],([c,h],M)=>{M(c&&h)}),zs=()=>{Si.next($s.SeekAction.LIVE),ce({message:"switch to active live"}),U.log("switch to active live"),O.seekTime(0),O.info.playbackState$.getValue()!==vi.PlaybackState.PLAYING&&Qt.actions.internal.togglePlay()},vd=()=>{U.log("skip adman"),K.skip()},Yc=(c=!0)=>{var ie;(0,st.assertNonNullable)(Qt),ce({message:`switch from ads to video, callPlay: ${c}`}),U.log("switch from ads to video",{callPlay:c}),Ue.set("video"),c&&O.play(),l&&Xi(!0,!0);let h=(ie=be(at))==null?void 0:ie.muted,M=!O.info.muted$.getValue();h!==void 0&&!M&&Xi(h,!0),at.set(void 0)},Op=()=>{(0,st.assertNonNullable)(Qt),ce({message:"switch from video to ads"}),U.log("switch from video to ads"),Qt.actions.internal.pause(),Zo(),Ue.set("ads")},jc=c=>{(0,st.assertNonNullable)(Qt);let h=c?"LiveWaitingStart":"thumb";U.log("set live waiting start",{state:c,playerPhase:h}),Ue.set(h)},Bp=c=>{(0,st.assertNonNullable)(Qt);let h=c?"LiveWaitingRecover":"thumb";U.log("set live waiting recover",{state:c,playerPhase:h}),Ue.set(h)},Xc=c=>{(0,st.assertNonNullable)(Qt);let h=c?"LiveWaitingRecord":"thumb";U.log("set live waiting record",{state:c,playerPhase:h}),Ue.set(h)},Zc=()=>((0,st.assertNonNullable)(Qt),U.log("get debug text data"),f_(O,Re,Qt,Qe.getTraceId(),we)),Jc=()=>((0,st.assertNonNullable)(Qt),JSON.stringify(Qe.getFinishedSpans())),Fp=()=>((0,st.assertNonNullable)(Qt),m_(O,Re,Qt)),_a=()=>Ve,Hp=()=>{ce({message:"toggle chromecast"}),U.log("toggle chromecast"),O.toggleChromecast()},Ws=c=>{var M;if((0,st.assertNonNullable)(Qt),O.info.isEnded$.getValue())return;let h=!c;if(be(Qt.playerPhase)==="ads"){ce({message:`pause ads, internalCall: ${h}`}),U.log("pause ads",{internalCall:h}),K.pause();return}ce({message:`pause video, internalCall: ${h}`}),U.log("pause video",{internalCall:h}),h&&((M=a==null?void 0:a.onPause)==null||M.call(a)),O.pause()},ml=c=>{var M;(0,st.assertNonNullable)(Qt);let h=!c;if(be(Qt.playerPhase)==="ads"){ce({message:`play ads, internalCall: ${h}`}),U.log("play ads",{internalCall:h}),K.play();return}ce({message:`play video, internalCall: ${h}`}),U.log("play video",{internalCall:h}),h&&((M=a==null?void 0:a.onPlay)==null||M.call(a)),O.play()},eu=c=>{(0,st.assertNonNullable)(Qt);let h=!c;if(be(Qt.playerPhase)==="ads"){ce({message:"player cannot be stopped during ads via external method"});return}ce({message:`player will be stopped, internalCall: ${h}`}),A==null||A()},tu=(c,h)=>{(0,st.assertNonNullable)(Qt),ce({message:`first start, show ads: ${c}, internalCall: ${!h}`}),U.log("first start",{showAds:c,external:h}),c?Ue.set("ads"):(Ue.set("video"),h?O.play():Qt.actions.internal.togglePlay())},gd=()=>(ce({message:"getting time codes"}),f),iu=()=>{let c=gd();if(!c||[0,1].includes(c.length))return;let h=O.info.position$.getValue();return c.find(M=>M.time>h)},He=c=>{let h=c;h||(h=iu());let M=O.info.position$.getValue();U.log("seek to next episode",{currentTime:M,...h}),h&&(ce({message:"seek to next episode"}),Tr(h.time,$s.SeekAction.EPISODE,!0))},pi=()=>{let c=gd();if(!c||[0,1].includes(c.length))return;let h=O.info.position$.getValue(),M=c.findIndex(Se=>Se.time>h),ie=M===-1?c.length-2:M-2;if(!(ie<0))return c[ie]},zo=c=>{let h=c;h||(h=pi());let M=O.info.position$.getValue();U.log("seek to prev episode",{currentTime:M,...h}),h&&(ce({message:"seek to prev episode"}),Tr(h.time,$s.SeekAction.EPISODE,!0))},Ir=()=>(ce({message:"getting preview thumbs data"}),U.log("get preview thumbs data",{...p}),p),Cn=async()=>{let c=xe==null?void 0:xe.isActive(),h="none";xe!=null&&xe.isActive()?(h="exit",await(xe==null?void 0:xe.exit())):(h="request",await(xe==null?void 0:xe.request())),U.log("toggle picture in picture",{isActive:c,action:h})},h$=(c=-90)=>{U.log("rotate video",{alphaDiff:c}),kt.update(h=>h+c)},ou=de([]);I==null||I.subscribe(c=>{let h=[];for(let M=0;M<c.length;M++){let{range:[ie,Se],subjects:je}=c[M];M===0&&ie!==0&&h.push({time:0,text:"",interactive:!1,completed:!0}),h.push({time:ie/1e3,text:"",interactive:!0,completed:pe.features.interactiveTimeOpenUri?!je.length||je.every(Pt=>Pt.isRemoved):!je.length}),Se!==1/0&&h.push({time:Se/1e3,text:"",interactive:!1,completed:!0})}ou.set(h)});let _$=de(!1);C==null||C.subscribe(c=>{c&&be(qt)&&ls()});let ug=c=>{if(!x)return c;let h=be(ou),M=be(tn),Se=be(Hi)/M,je=h.find(Pt=>Pt.interactive&&!Pt.completed&&Pt.time>Se);return typeof(je==null?void 0:je.time)=="number"?Math.min(c,je.time-.05):c},b$=()=>{Qt.ui.episodes.panelOpened$.set(!1)},$$=()=>{U.log("destroy store"),clearTimeout(xi),clearTimeout(Ei),Te.unsubscribe(),yt.unsubscribe(),O.destroy(),K.destroy(),J==null||J.destroy(),ae==null||ae.destroy(),Ee.unsubscribe(),gt==null||gt.disconnect(),gt=null,ke.destroy()},y$=fi([$r,ze,Nn],([c,h,M])=>m.features.doubleForwardAvailable&&!c&&h==="video"&&M),Up=de(!1),pg=2,nu=null,fg=c=>{if(!be(tr)&&c)return;let h=O.info.currentPlaybackRate$.getValue();c?h!==pg&&(nu=h,ar(pg,!1),Up.set(!0)):(nu&&ar(nu,!1),Up.set(!1),nu=null)};ze.subscribe(c=>{c!=="video"&&fg(!1)});let x$=()=>{Ws(!1),ko.set(!0)},w$=()=>{ml(!1),ko.set(!1)},zp=!1,S$=()=>{qn.set(!0),zp=O.info.playbackState$.getValue()===vi.PlaybackState.PLAYING,Ws(!1)},C$=()=>{qn.set(!1),!be(ko)&&zp&&ml(!1),zp=!1};O.events.playing$.subscribe(()=>{be(ko)&&Ws(!1)});let Qt={interfaceLanguage$:Le,isCyrillicRelatedInterface$:St,initVideo:hi,videoId:i,isClip:o,playerPhase:ze,vsid:$t,state:{positionExact$:rt,positionWithScrubbing$:pd,duration$:tn,playbackState$:ki,playbackStateRealistic$:Jo,isPlaying$:tr,isLoaderVisible:At,bufferedProgress$:ji,isLive$:Fi,canChangePlaybackSpeed$:Nn,isActiveLive$:$r,isOldestAvailableLive$:yr,isRewindableLive$:Dr,isEnded$:bo,muted$:Pi,volume$:yo,trafficSavingEnabled$:en,highQualityEnabled$:Do,autoQualityLimitingAvailable$:pn,availableVideoStreams$:Dn,availableAudioStreams$:ro,videoStream$:Or,audioStream$:On,currentQuality$:_n,isAutoQualityEnabled$:Oo,availableQualities$:bn,currentPlaybackRate$:Bo,availablePlaybackRates$:Bn,currentSubtitle$:so,availableTextTracks$:$n,availableSubtitlesList$:rr,currentSubtitleCaptions$:lo,isAutoSubtitleCaptionVisible$:on,chromecastState$:is,chromecastDeviceName$:xs,chromecastConnected$:ir,currentFormat$:Rr,throughputEstimation$:er,videoBitrate$:Nr,videoSize$:fn,errorLog$:Y,crashed$:le,isAudioAvailable$:_r,isAudioDisabled:!!l,canDownload:pe.features.download&&!!d,availableSources$:Ui,hasMpegSources$:co,isInteractive:x,showInteractiveGraph:pe.features.interactiveGraph,showSeekToInteractive:pe.features.seekToInteractive,showPlayPrevChapter:pe.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:pe.features.interactiveTimeIndicator&&!!be(ou).length,interactiveEpisodes$:ou,isInteractiveTime$:C?oi(C):de(!1),isInteractiveExpectation$:_$,hasInteractiveBranches:E,playPrevChapterDisabledTooltip:k,looped$:sr,loadedMetadata$:Dt,isAutoQualityAvailable$:or,previewTrackActive:ko,previewTrackDragInProgress:qn},ui:{t:fe,controlsVisible:de(!1),touched:de(!1),controls:{prevButton:de(void 0),playButton:de(void 0),replayButton:de(void 0),nextButton:de(void 0),playPrevChapterButton:de(void 0),seekToInteractiveButton:de(void 0),interactiveGraphButton:de(void 0),liveButton:de(void 0),time:de(void 0),episodes:de(void 0),volume:de(void 0),subtitles:de(void 0),settings:de(void 0),context:de(void 0),chromecast:de(void 0),pip:de(void 0),fullscreen:de(void 0),vkLogo:de(void 0),interactiveTimeIndicator:de(void 0),timeline:de(void 0),autoplayNextToggle:de(void 0),additionalButtons:Q.length?Q.reduce(c=>[...c,de(void 0)],[]):[],disabledControls$:Ft},modals:{hotKeyMap:{show:de(!1),data:de({title:"",closeBtnText:"",groups:[]})}},isFullscreen:Ot,isFullscreenOpenedByKeyboard:ct,rotateAlpha:kt,isAutoplay:de(!1),debugPanelVisible:de(!1),episodes:{panelOpened$:de(!1),openedByKeyboard$:de(!1)},contextMenu:{visible$:de(!1),btnRef$:de(void 0),openedByBtnKeyboard$:de(!1),openedByHotKey$:de(!1),lastActiveElem$:de(void 0),showContextMenuBtn$:de(!1),position$:de({top:0,left:0})},playerSize:ci,isMobile:It,mobileNotReportControlHidden$:zi,icon3DVideoVisible:de(!1),scrubbingInProgress:qt,volumeChangingInProgress:Cs,is3DVideo:Ht,currentGridType$:Us,additionalButtonsDeprecated$:us,additionalDesktopControlPanelRightButtons$:va,additionalSettingsMenuItems$:ul,additionalContextMenuItems$:Zi,interactiveHideMobileControls:de(!1),overlayContainer$:de(void 0),startedByKeyboard$:de(!1),autoplayNextEnabled$:de(!1),timerNextVideoRunning$:de(!0),settingsMenu:{visible$:de(!1),ref$:de(void 0),openedByBtnKeyboard$:de(!1)},settingsSubMenu:{visible$:de(!1),ref$:de(void 0),name$:de(void 0)},userActionsDisabled:de(!1),hiddenControls:{volume:de(!1),vkLogo:de(!1),pip:de(!1),chromecast:de(!1),settings:de(!1)},isControlsAvailable:lr,controlBlocks:{topLeft:de(void 0),topRight:de(void 0),middle:de(void 0),bottom:de(void 0),bottomLeft:de(void 0),bottomRight:de(void 0)},videoTitleInfo:de(void 0),doubleForwardOn$:Up,doubleForwardAvailable$:y$,previewTrackNotificationVisible:de(!1),previewTrackActive:ko,previewTrackDragInProgress:qn,previewTrackAvailable:wn,isPreviewTrackHorizontallyAligned:wt},ads:{position:de(0),duration:de(0),playbackState:de("inactive"),canSkip:de(!1),secondsToWatchBeforeSkip:de(0),postrollPassed:de(!1)},webApi:{pictureInPictureApi:xe,annotationsApi:Oe,slotsApi:it,focusManager:ne},actions:{internal:{preload:xo,firstStart:c=>tu(c,!1),play:()=>ml(!1),pause:()=>Ws(!1),togglePlay:wo,toggleMuted:Li,openSettingsMenu:os,closeSettingsMenu:ws,openSettingsSubMenu:rs,closeSettingsSubMenu:ns,setVolume:c=>nn(c,!1),setMuted:c=>Xi(c,!1),startVolumeChanging:cs,stopVolumeChanging:fa,setVideoStream:ht,setAudioStream:c=>ri(c,!1),setQuality:(c,h)=>Wn(c,h,!1),setTrafficSavingEnabled:(c,h)=>Kn(c,h,!1),setHighQualityEnabled:(c,h)=>yn(c,h,!1),setPlaybackRate:ar,incrementPlaybackRate:Je,decrementPlaybackRate:Jt,setSubtitle:c=>yi(c,!1),toggleSubtitle:()=>fo(!1),togglePictureInPicture:Cn,startScrubbing:Ti,progressScrubbing:Ii,completeScrubbing:dl,toggleChromecast:Hp,switchToActiveLive:zs,switchFromAdsToVideo:Yc,switchFromVideoToAds:Op,skipAd:vd,setLiveWaitingStart:jc,setLiveWaitingRecover:Bp,setLiveWaitingRecord:Xc,getDebugTextData:Zc,getTraceTextData:Jc,getDebugPanelData:Fp,getVideoElement:_a,seekTime:(c,h,M)=>Tr(c,h,M),clearDelayedBufferingCheckTimeout:br,seekEpisodeStartTime:pa,seekToPercent:Ss,getNextEpisode:iu,seekToNextEpisode:He,getPrevEpisode:pi,seekToPrevEpisode:zo,startLogging:Ut,stopLogging:W,startCameraManualRotation:Lt,stopCameraManualRotation:ni,moveCameraFocusPX:ut,holdCamera:Ct,releaseCamera:Zt,getVideoEpisodes:gd,getPreviewThumbsData:Ir,downloadVideo:Fr,addLanguage:Zf,setLanguage:$e,nextMovie:Xt,videoRotate:h$,correctSeekTimeToInteractive:ug,replayInteractive:R,setLooped:Fe,reportProblem:Mt,setAutoplayNextEnabled:$i,setTimerNextVideoRunning:Fo,prevVideoClick:uo,nextVideoClick:Io,nextVideoAnnouncementShow:po,nextVideoAnnouncementClick:Ho,nextVideoAnnouncementAuto:zn,nextVideoAnnouncementCancel:rn,checkFullscreenSupport:Et,changeDoubleForwardOn:fg,closePreviewTrack:w$,previewTrackOpened:x$,previewTrackDragStarted:S$,previewTrackDragFinished:C$},external:{firstStart:c=>tu(c,!0),play:()=>ml(!0),pause:()=>Ws(!0),stop:()=>eu(!0),seekTime:c=>xn(c),seekEpisodeStartTime:c=>di(c),setPlaybackRate:c=>Uo(c),setAutoQualityLimits:c=>lt(c),setMuted:c=>Xi(c,!0),toggleSubtitle:()=>fo(!0),changeSubtitle:sn,setVolume:c=>nn(c,!0),returnFocusToEpisodes:b$,updateAdditionalSettingsItem:fl,addAdditionalSettingsItem:ha,removeAdditionalSettingsItem:ft,updateAdditionalContextItem:Po,addAdditionalContextItem:Ji,removeAdditionalContextItem:gi,updateAdditionalButton:fd,addAdditionalButton:ga,removeAdditionalButton:md,setLiveLowLatency:pl,hideControls:()=>as(!1),showControls:()=>as(!0),setQuality:c=>Wn(c,{appliesTo:"to-video"},!0),setTrafficSavingEnabled:c=>Kn(c,"to-video",!0),setHighQualityEnabled:c=>yn(c,"to-video",!0),changeAudioStream:wr}},callbacks:a,setUiCallbacks:c=>{et={...c}},getAdmanWrapper:()=>K,getLogger:()=>Ge,getPlayer:()=>O,destroy:$$};return Qt};function Zn(t,e,i,o){var f;let r=(f=e[i])==null?void 0:f.getBoundingClientRect(),s=o&&!!r&&!!(r.right-r.left),{top:l,left:d,bottom:a,right:u}=Ds(e[i],t||void 0);return{left:s?d:0,right:s?u:0,top:s?l:0,bottom:s?a:0,isDisplayed:s}}var qx=["disabledControls$","additionalButtons"],Qx=["interactiveTimeIndicator"],Jl=(t,e,i,o)=>{if(t){for(let[r,s]of Object.entries(e))if(!qx.includes(r)){let l=o||Qx.includes(r);s.set(Zn(t,i,r,l))}}};var pp=async(t,e,i)=>{await ho(),e&&i&&(i.focus(),t.set(!1))};var Gx=Ie('<path d="M18 10c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2Zm-6 4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2Zm-6 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2Z"></path>');function zm(t){Ze(t,{children:(e,i)=>{var o=Gx();b(e,o)},$$slots:{default:!0}})}function Wm(t,e){B(e,!0);let[i,o]=Ne(),r=()=>w(a,"$contextMenuVisible$",i),s=g(e,"disabled",3,!1),l=g(e,"ariaLabel",3,""),d=he(),a=d.ui.contextMenu.visible$,u=d.ui.contextMenu.openedByBtnKeyboard$,f=d.ui.contextMenu.showContextMenuBtn$,p=d.ui.contextMenu.position$,m=d.ui.contextMenu.btnRef$,$=q(void 0);De(()=>{n($)&&Tt(()=>{m.set(n($))})});let y=C=>{let R=ra(C),A=ob(n($));p.set(A),u.set(R),a.set(!r())},_=()=>{f.set(!0)},x=()=>{f.set(!1)},I=v(()=>r()?"opened":"");Kt(t,{get className(){return n(I)},testId:"btn-context-menu",get disabled(){return s()},get ariaLabel(){return l()},click:y,focus:_,blur:x,get ariaExpanded(){return r()},get ref(){return n($)},set ref(C){N($,C,!0)},children:(C,R)=>{zm(C,{})},$$slots:{default:!0}}),F(),o()}var Yx=t=>{t.stopPropagation()},jx=L("<div><!> <div></div> <div></div></div>"),Xx={hash:"s-27",code:'.interactive-episode-icon-animated.s-27{height:32px;opacity:1;position:absolute;right:16px;top:16px;transition:.3s;width:32px}.interactive-episode-icon-animated.icon-small.s-27{height:28px;width:28px}.invisible.s-27{opacity:0;visibility:hidden}.fullscreen.s-27:not(.mobile){height:40px;right:23px;top:19px;width:40px}.mobile.s-27{height:28px;right:14px;top:12px;width:28px}.fullscreen.mobile.s-27{height:32px;width:32px}@media screen and (orientation:portrait){.interactive-episode-icon-animated.mobile.fullscreen.s-27{right:16px;top:40px}}@keyframes s-27-pulse{0%{border-width:1px;opacity:0;transform:scale(1)}10%{opacity:1}50%{border-width:1px;opacity:.5;transform:scale(1.5)}to{border-width:.5px;opacity:0;transform:scale(1.5)}}.pulse.s-27{animation:s-27-pulse 1s infinite;border:1px solid #fff;border-radius:100%;bottom:0;content:"";display:block;left:0;pointer-events:none;position:absolute;right:0;top:0;transform:scale(1.8);transition:.3s}.pulse.paused.s-27{animation-play-state:paused}.interactive-episode-icon-animated svg{height:100%;width:100%}.ref-block.s-27{height:100%;position:absolute;top:0;visibility:hidden;width:100%}.hidden.s-27{display:none}'};function bc(t,e){var K;B(e,!0),G(t,Xx);let[i,o]=Ne(),r=()=>w(x,"$isMobile",i),s=()=>w(A,"$areControlsVisible",i),l=()=>w(k,"$currentGridType$",i),d=()=>w(C,"$isInteractiveTime$",i),a=()=>w(_,"$interactiveControlsOpacity$",i),u=()=>w(R,"$showInteractiveTimeIndicatorTooltip$",i),f=()=>w(I,"$isFullscreen",i),p=g(e,"ref",15,void 0),m=q(void 0),$=he(),y=Co(),{interactiveControlsOpacity$:_}=y,x=$.ui.isMobile,I=$.ui.isFullscreen,C=$.state.isInteractiveTime$,R=y.showInteractiveTimeIndicatorTooltip$,A=$.ui.controlsVisible,E=(K=$.callbacks)==null?void 0:K.onInteractiveTimeIndicatorClick,k=$.ui.currentGridType$,Q=v(()=>!r()&&s()),H=v(()=>Ns(l(),"s")),z=v(()=>!d()||!!a()||n(Q)),X=q(!1);De(()=>{N(X,n(z),!0)});let se=()=>{N(X,!0)},Z=()=>{var ae;oe(),(ae=n(m))==null||ae.addEventListener("animationiteration",se,{once:!0})},oe=()=>{var ae;N(X,!1),(ae=n(m))==null||ae.removeEventListener("animationiteration",se)},J=ae=>{R.set(ae)},Ce=v(()=>u()&&!n(z));De(()=>{u()?Z():oe()});let me=()=>{n(z)||(R.set(!0),E==null||E())};dn(()=>{R.clearTimeout(),oe()});let ee=()=>{R.set(!1)},_e=j("tooltip_interactive_interaction_time_indicator");var we=jx();let ge;we.__mousemove=[Yx],we.__click=me;var pe=T(we);Vo(pe,{get tooltipContent(){return _e},get tooltipVisible(){return n(Ce)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:J,get ref(){return p()},set ref(ae){p(ae)},children:(ae,xe)=>{cc(ae,{completed:!0})},$$slots:{default:!0}});var Qe=P(pe,2);let U;Xe(Qe,ae=>p(ae),()=>p());var O=P(Qe,2);let Ge;Xe(O,ae=>N(m,ae),()=>n(m)),S(we),D((ae,xe,Oe)=>{ge=re(we,1,"interactive-episode-icon-animated s-27",null,ge,ae),U=re(Qe,1,"ref-block s-27",null,U,xe),Ge=re(O,1,"pulse s-27",null,Ge,Oe)},[()=>({mobile:r(),fullscreen:f(),invisible:n(z),"icon-small":n(H)}),()=>({hidden:n(z)}),()=>({paused:n(X)})]),dt("mouseleave",we,ee),b(t,we),F(),o()}Ye(["mousemove","click"]);function fp(t,e){B(e,!0);let i=g(e,"tooltipEnabled",3,!0),o=g(e,"disabled",3,!1),r=g(e,"className",3,void 0),s=g(e,"ref",15),l=g(e,"tooltipVisible",3,!1);Vo(t,{get disabled(){return o()},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},get hasTooltip(){return i()},get mouseEnter(){return e.mouseEnter},get mouseLeave(){return e.mouseLeave},get tooltipVisible(){return l()},get className(){return r()},get ref(){return s()},set ref(d){s(d)},children:(d,a)=>{var u=Ae();let f=v(()=>e.buttonComponent);var p=ue(u);Ri(p,()=>n(f),(m,$)=>{$(m,Xr(()=>{var y;return(y=e.buttonComponentProps)!=null?y:{}}))}),b(d,u)},$$slots:{default:!0}}),F()}var Os={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var Jx=Ie('<path d="M32 21.68V15a2 2 90 114 0v18a2 2 90 01-4 0v-6.66l-16.3 9.32A2.48 2.48 90 0112 33.56V14.46c0-1.9 2.06-3.08 3.7-2.12z"></path>');function ca(t,e){B(e,!0);let i=g(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);transform-origin: 50%;":void 0),r=v(()=>`${cn(e.size)}${n(o)}`),s=v(()=>i()?"prev-icon":"next-icon");Ze(t,{get width(){return"48"},get height(){return"48"},get style(){return n(r)},get testId(){return n(s)},get shadow(){return e.shadow},children:(l,d)=>{var a=Jx();b(l,a)},$$slots:{default:!0}}),F()}var e2=L('<div class="icon-background-mobile s-21"><!></div>'),t2={hash:"s-21",code:".icon-background-mobile.s-21{align-items:center;background-color:var(--big-play-bg-color);border-radius:var(--big-play-radius);display:flex;height:100%;justify-content:space-around;left:0;position:absolute;top:0;width:100%}"};function Ya(t,e){B(e,!0),G(t,t2);let i=g(e,"ref",15,void 0),o=g(e,"isMobile",3,!1),r=g(e,"disabled",3,!1),l=he().ui.t,d=v(()=>e.type==="prev"?l("tooltip_previous"):l("tooltip_next")),a=v(()=>e.type==="prev"?l("hotkey_map_item_prev_video_value"):l("hotkey_map_item_next_video_value")),u=v(()=>`btn-${o()?"m":"d"}--${e.type}`);Kt(t,{get className(){return n(u)},get testId(){var f;return`btn-${(f=e.type)!=null?f:""}`},get disabled(){return r()},get ariaLabel(){return n(d)},get click(){return e.click},get ariaKeyShortCut(){return n(a)},get ref(){return i()},set ref(f){i(f)},children:(f,p)=>{var m=Ae(),$=ue(m);{var y=x=>{var I=e2(),C=T(I);let R=v(()=>e.type==="prev");ca(C,{get size(){return"32"},get reversed(){return n(R)}}),S(I),b(x,I)},_=x=>{let I=v(()=>e.type==="prev");ca(x,{get size(){return"24"},get reversed(){return n(I)}})};V($,x=>{o()?x(y):x(_,!1)})}b(f,m)},$$slots:{default:!0}}),F()}var i2=Ie('<path d="M24 21.2a.8.8 90 01-1.34.6L14.08 14a1.34 1.34 90 010-2l8.6-7.8a.8.8 90 011.32.6V11a16 16 90 11-16 16 2 2 90 114 0 12 12 90 1012-12z"></path>');function $c(t,e){B(e,!0);let i=v(()=>cn(e.size));Ze(t,{get width(){return"48"},get height(){return"48"},get style(){return n(i)},testId:"replay-icon",get shadow(){return e.shadow},children:(o,r)=>{var s=i2();b(o,s)},$$slots:{default:!0}}),F()}var Tb=require("@vkontakte/videoplayer-shared/es2018");var o2=L('<div class="icon-background-mobile s-26"></div>'),n2=L("<!> <div><!></div>",1),r2={hash:"s-26",code:".mobile.s-26{align-items:center;display:flex;justify-content:center;position:relative}.icon-background-mobile.s-26{background-color:var(--big-play-bg-color);border-radius:var(--big-play-radius);height:calc(100% - 32px);left:16px;position:absolute;top:16px;width:calc(100% - 32px)}"};function ed(t,e){B(e,!0),G(t,r2);let i=g(e,"ref",15,void 0),o=g(e,"isMobile",3,!1),r=g(e,"disabled",3,!1),s=g(e,"className",3,""),l=g(e,"click",3,Tb.noop),d=j("tooltip_restart"),a=v(()=>`${o()?"btn-m--play":""} ${s()}`);Kt(t,{get className(){return n(a)},testId:"replay-btn",get ariaLabel(){return d},get disabled(){return r()},get click(){return l()},get ariaKeyShortCut(){return _s.KeyK},get ref(){return i()},set ref(u){i(u)},children:(u,f)=>{var p=n2(),m=ue(p);{var $=C=>{var R=o2();b(C,R)};V(m,C=>{o()&&C($)})}var y=P(m,2);let _;var x=T(y);let I=v(()=>o()?"48":"24");$c(x,{get size(){return n(I)}}),S(y),D(C=>_=re(y,1,"s-26",null,_,C),[()=>({mobile:o()})]),b(u,p)},$$slots:{default:!0}}),F()}var s2=Ie('<path d="m17.4 10 1.6.2a2 2 90 01.8.8l.2 1.6v22.8l-.2 1.6a2 2 90 01-.8.8l-1.6.2h-4l-1.4-.2a2 2 90 01-.8-.8l-.2-1.6V12.6l.2-1.6a2 2 90 01.8-.8l1.6-.2h3.801zm16 0 1.6.2a2 2 90 01.8.8l.2 1.6v22.8l-.2 1.6a2 2 90 01-.8.8l-1.6.2h-4l-1.4-.2a2 2 90 01-.8-.8l-.2-1.6V12.6l.2-1.6a2 2 90 01.8-.8l1.6-.2h4z"></path>');function Bs(t,e){B(e,!0);let i=v(()=>cn(e.size));Ze(t,{get width(){return"48"},get height(){return"48"},get fill(){return e.fill},get style(){return n(i)},testId:"pause-icon",get shadow(){return e.shadow},children:(o,r)=>{var s=s2();b(o,s)},$$slots:{default:!0}}),F()}var Ib=require("@vkontakte/videoplayer-shared/es2018");var a2=L('<div class="icon-background-mobile s-22"><!></div>'),l2={hash:"s-22",code:".icon-background-mobile.s-22{align-items:center;background-color:var(--big-play-bg-color);border-radius:var(--big-play-radius);display:flex;height:calc(100% - 32px);justify-content:space-around;left:16px;position:absolute;top:16px;width:calc(100% - 32px)}"};function td(t,e){B(e,!0),G(t,l2);let[i,o]=Ne(),r=()=>w(s,"$fakeIsPlaying$",i),{fakeIsPlaying$:s}=Co(),l=g(e,"ref",15,void 0),d=g(e,"isMobile",3,!1),a=g(e,"isPlaying",3,!1),u=g(e,"disabled",3,!1),f=g(e,"className",3,""),p=g(e,"click",3,Ib.noop),$=he().ui.t,{toggle:y}=s,_=v(()=>y),x=v(()=>r()!==null),I=v(()=>n(x)?r():a()),C=v(()=>n(I)?$("tooltip_pause"):$("tooltip_play")),R=v(()=>n(I)?Bs:Mn),A=v(()=>`${d()?"btn-m--play":""} ${f()}`),E=v(()=>n(x)?n(_):p());Kt(t,{get className(){return n(A)},testId:"play-btn",get click(){return n(E)},get disabled(){return u()},get ariaLabel(){return n(C)},get ariaKeyShortCut(){return _s.KeyK},get ref(){return l()},set ref(k){l(k)},children:(k,Q)=>{var H=Ae();let z=v(()=>n(R));var X=ue(H);{var se=oe=>{var J=a2(),Ce=T(J);Ri(Ce,()=>n(z),(me,ee)=>{ee(me,{get size(){return"48"}})}),S(J),b(oe,J)},Z=oe=>{var J=Ae(),Ce=ue(J);Ri(Ce,()=>n(z),(me,ee)=>{ee(me,{get size(){return"24"}})}),b(oe,J)};V(X,oe=>{d()?oe(se):oe(Z,!1)})}b(k,H)},$$slots:{default:!0}}),F(),o()}var d2=Ie('<path d="M12.58 12.92v2.5a1 1 0 0 1-1.52.85l-5.58-3.42a1 1 0 0 1 0-1.7l5.58-3.42a1 1 0 0 1 1.52.86v2.5l5.48-3.36a1 1 0 0 1 1.52.86v6.82a1 1 0 0 1-1.52.86z"></path>');function Km(t){Ze(t,{testId:"play-prev-chapter-icon",children:(e,i)=>{var o=d2();b(e,o)},$$slots:{default:!0}})}function yc(t,e){B(e,!0);let i=g(e,"ref",15,void 0),o=g(e,"hidden",3,!1),r=g(e,"disabled",3,!1),s=j("tooltip_interactive_go_back"),l=v(()=>o()?"hidden":"");Kt(t,{get className(){return n(l)},testId:"play-prev-chapter-btn",get ariaLabel(){return s},get disabled(){return r()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,a)=>{Km(d,{})},$$slots:{default:!0}}),F()}var c2=L('<span class="gutter s-25"><span><!></span></span>'),u2={hash:"s-25",code:".gutter.s-25{--gutterWidth:32px;--gutterHeight:12px;--togglerWidth:18px;--togglerHeight:18px;--togglerGap:calc(var(--togglerWidth)/6);background-color:hsla(0,0%,100%,.3);border-radius:50px;height:var(--gutterHeight);position:relative;width:var(--gutterWidth)}.toggler.s-25{align-items:center;background-color:#626364;border-radius:50%;display:flex;height:var(--togglerHeight);justify-content:center;left:0;position:absolute;top:calc((var(--togglerHeight) - var(--gutterHeight))/2*-1);transform:translateX(calc(var(--togglerGap)*-1));transition-duration:.2s;transition-property:background-color,transform;transition-timing-function:ease;width:var(--togglerWidth)}.toggler.enabled.s-25{background-color:var(--toggle-color-autoplay-on);transform:translateX(calc(var(--gutterWidth) - var(--togglerWidth) + var(--togglerGap)))}"};function xc(t,e){B(e,!0),G(t,u2);let[i,o]=Ne(),r=()=>w(a,"$autoplayNextEnabled$",i),s=g(e,"ref",15,void 0),l=he(),d=l.ui.t,a=l.ui.autoplayNextEnabled$,u=l.actions.internal.setAutoplayNextEnabled,f=()=>{u(!r(),!0)},p=d("aria_label_autoplay"),m="12",$="#000",y=v(()=>r()?"true":"false");Kt(t,{click:f,get ariaLabel(){return p},role:"switch",get areaChecked(){return n(y)},get ref(){return s()},set ref(_){s(_)},children:(_,x)=>{var I=c2(),C=T(I);let R;var A=T(C);{var E=Q=>{Mn(Q,{get size(){return m},fill:$})},k=Q=>{Bs(Q,{get size(){return m},fill:$})};V(A,Q=>{r()?Q(E):Q(k,!1)})}S(C),S(I),D(Q=>R=re(C,1,"toggler s-25",null,R,Q),[()=>({enabled:r()})]),b(_,I)},$$slots:{default:!0}}),F(),o()}var p2=Ie('<path d="M16.73 4.85c-.54-.05-1.23-.05-2.23-.05H7.9a.9.9 0 1 1 0-1.8h6.64q1.41-.01 2.33.05c.64.05 1.2.16 1.73.43a4.4 4.4 0 0 1 1.92 1.92c.27.52.38 1.09.43 1.73q.06.92.05 2.33v5.08q.01 1.41-.05 2.33a5 5 0 0 1-.43 1.73 4.4 4.4 0 0 1-1.92 1.92 5 5 0 0 1-1.73.43q-.92.06-2.33.05H7.9a.9.9 0 1 1 0-1.8h6.6c1 0 1.69 0 2.23-.04.52-.05.82-.13 1.05-.24a2.6 2.6 0 0 0 1.14-1.14c.11-.23.2-.53.24-1.06s.04-1.23.04-2.22v-5c0-1 0-1.69-.04-2.23a3 3 0 0 0-.24-1.05 2.6 2.6 0 0 0-1.14-1.14c-.23-.11-.53-.2-1.05-.24"></path><path d="M7.76 11.17V8.9c0-.71.7-1.15 1.25-.78l4.6 3.1a.96.96 0 0 1 0 1.54L9 15.87c-.55.37-1.25-.07-1.25-.78v-2.26l-4.5 3.04C2.7 16.24 2 15.8 2 15.09V8.91c0-.71.7-1.15 1.25-.78z "></path>',1);function qm(t){Ze(t,{testId:"seek-to-interactive-icon",children:(e,i)=>{var o=p2();ai(),b(e,o)},$$slots:{default:!0}})}function wc(t,e){B(e,!0);let i=g(e,"ref",15,void 0),o=g(e,"hidden",3,!1),r=g(e,"disabled",3,!1),s=j("tooltip_interactive_seek"),l=v(()=>o()?"hidden":"");Kt(t,{get className(){return n(l)},testId:"btn-seek-to-interactive",get ariaLabel(){return s},get disabled(){return r()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,a)=>{qm(d,{})},$$slots:{default:!0}}),F()}var f2=Ie('<path d="M15.2 5.9v1.2c0 .6 0 .9.12 1.12q.15.3.46.46c.23.12.52.12 1.12.12h1.2c.6 0 .9 0 1.12-.12q.3-.15.46-.46c.12-.23.12-.52.12-1.12V5.9c0-.6 0-.9-.12-1.12a1 1 0 0 0-.46-.46c-.23-.12-.52-.12-1.12-.12h-1.2c-.6 0-.9 0-1.12.12q-.3.15-.47.46c-.11.23-.11.53-.11 1.12m-.05 11.03v1.14c0 .6 0 .91.12 1.14q.15.31.47.47c.23.12.53.12 1.14.12h1.22c.6 0 .9 0 1.14-.12a1 1 0 0 0 .47-.47c.12-.23.12-.53.12-1.14v-1.14c0-.6 0-.9-.12-1.14a1 1 0 0 0-.47-.47c-.23-.12-.54-.12-1.14-.12h-1.22c-.6 0-.91 0-1.14.12a1 1 0 0 0-.47.47c-.12.23-.12.53-.12 1.14"></path>'),m2=Ie('<path d="M16.78 3h1.42q.47 0 .83.02.4.02.82.21.61.31.92.92.2.41.21.81.03.36.02.83v1.4q0 .47-.02.83-.02.4-.21.81a2 2 0 0 1-.92.92 2 2 0 0 1-.82.21q-.36.02-.83.02h-1.42q-.47 0-.84-.02a2 2 0 0 1-.81-.2 2 2 0 0 1-.93-.93 2 2 0 0 1-.2-.8l-.03-.64h-2.2c-.49 0-.8 0-1.04.02a1 1 0 0 0-.35.06 1 1 0 0 0-.35.35 1 1 0 0 0-.07.35c-.02.24-.02.55-.02 1.04v5.57c0 .5 0 .8.02 1.04s.05.31.07.34q.12.23.35.35c.03.02.11.05.34.07s.56.02 1.05.02h2.2q0-.34.02-.62.01-.4.21-.81.31-.61.93-.92.42-.2.81-.21.37-.02.84-.02h1.42q.47 0 .83.02.4.01.82.2.61.31.92.93.2.41.21.8.03.37.02.84v1.4q0 .47-.02.83-.02.39-.21.81a2 2 0 0 1-.92.92q-.43.2-.82.21-.36.02-.83.02h-1.42q-.47 0-.84-.02a2 2 0 0 1-.81-.21 2 2 0 0 1-.93-.92 2 2 0 0 1-.2-.81l-.03-.63h-2.24q-.68 0-1.16-.03a3 3 0 0 1-1.01-.26 2.6 2.6 0 0 1-1.14-1.14 3 3 0 0 1-.26-1q-.04-.5-.03-1.16v-1.93H2.9A.9.9 0 0 1 2 12c0-.5.4-.9.9-.9h5.23V9.18q0-.68.03-1.16.02-.51.26-1.02a2.6 2.6 0 0 1 1.14-1.13q.5-.24 1.02-.26.48-.04 1.16-.02h2.23q0-.34.02-.63.01-.4.21-.81.31-.61.93-.92.42-.2.81-.21.37-.02.84-.02m-.84 1.84.15-.02c.16-.02.37-.02.72-.02h1.35c.36 0 .57 0 .72.02l.15.02a.3.3 0 0 1 .12.12l.03.15.01.71v1.34l-.01.71-.02.15a.3.3 0 0 1-.13.13l-.15.02-.72.01h-1.35l-.72-.01-.15-.03a.3.3 0 0 1-.12-.12l-.02-.15-.02-.71V5.82q0-.5.02-.71l.02-.15a.3.3 0 0 1 .12-.12m0 11.02.15-.03.72-.01h1.35l.72.01.15.03a.3.3 0 0 1 .12.12l.03.15.01.71v1.34l-.01.71-.02.15a.3.3 0 0 1-.13.12l-.15.02c-.15.02-.36.02-.72.02h-1.35c-.35 0-.56 0-.72-.02l-.15-.02a.3.3 0 0 1-.12-.12l-.02-.15-.02-.71v-1.34c0-.35 0-.56.02-.71l.02-.15a.3.3 0 0 1 .12-.13"></path><!>',1);function Qm(t,e){let i=g(e,"isOpened",3,!1),o=v(()=>i()?"graph-close-icon":"graph-open-icon");Ze(t,{get testId(){return n(o)},children:(r,s)=>{var l=m2(),d=P(ue(l));{var a=u=>{var f=f2();b(u,f)};V(d,u=>{i()&&u(a)})}b(r,l)},$$slots:{default:!0}})}function Sc(t,e){B(e,!0);let i=g(e,"ref",15,void 0),o=g(e,"hidden",3,!1),r=g(e,"disabled",3,!1),s=g(e,"graphIsOpened",3,!1),d=he().ui.t,a=v(()=>s()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),u=v(()=>o()?"hidden":"");Kt(t,{get className(){return n(u)},testId:"btn-graph",get disabled(){return r()},get ariaLabel(){return n(a)},get click(){return e.click},get ref(){return i()},set ref(f){i(f)},children:(f,p)=>{let m=v(()=>!!s());Qm(f,{get isOpened(){return n(m)}})},$$slots:{default:!0}}),F()}var Gm=require("@vkontakte/videoplayer-core/es2018");function Cc(t,e){B(e,!0);let[i,o]=Ne(),r=()=>w(u,"$playbackState$",i),s=g(e,"isMobile",3,!1),l=g(e,"isLiveActive",3,!1),d=g(e,"ariaLabel",3,""),a=he(),u=a.state.playbackState$,f=a.actions.internal.switchToActiveLive,p=a.actions.internal.togglePlay,m=v(()=>()=>{if(!l()){f();return}r()===Gm.PlaybackState.PAUSED&&p()}),$=v(()=>s()?"":"btn--live btn-full-opacity"),y=v(()=>l()?"btn-live":"btn-live-offset"),_=v(()=>l()&&r()===Gm.PlaybackState.PLAYING);Kt(t,{get className(){return n($)},get testId(){return n(y)},get disabled(){return n(_)},get ariaLabel(){return d()},get click(){return n(m)},children:(x,I)=>{ec(x,{get isActive(){return l()}})},$$slots:{default:!0}}),F(),o()}var Ym=require("@vkontakte/videoplayer-shared/es2018");var v2=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),g2=L('<img class="icon" aria-hidden="true"/>');function ja(t,e){"use strict";let i=q(!1),o=()=>{N(i,!0)};var r=Ae(),s=ue(r);{var l=a=>{var u=v2();b(a,u)},d=a=>{var u=g2();D(()=>Me(u,"src",e.icon)),dt("error",u,o),Pa(u),b(a,u)};V(s,a=>{n(i)?a(l):a(d,!1)})}b(t,r)}function jm(t,e){B(e,!0);let i=g(e,"disabled",3,!1),o=g(e,"onClick",3,Ym.noop),r=g(e,"ref",15),s=v(()=>o()===Ym.noop),l=v(()=>n(s)||i()),d=v(()=>n(s)?"btn-full-opacity":"");Vo(t,{get disabled(){return n(l)},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},width:40,get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},get tooltipVisible(){return e.tooltipVisible},get ref(){return r()},set ref(a){r(a)},children:(a,u)=>{let f=v(()=>{var p;return(p=e.testId)!=null?p:e.id});Kt(a,{get className(){return n(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return n(l)},get testId(){return n(f)},children:(p,m)=>{ja(p,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),F()}var Eb=t=>!!t.buttonComponent;var Fs={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var mp=(t,e,i,o)=>{if(t)for(let[r,s]of Object.entries(e))s.set(Zn(t,i,r,o))};var vp=require("@vkontakte/videoplayer-shared/es2018"),kb=10,Pb=40,Xm=.2,_2=.5,b2=65,$2=114,y2=4,Ab=({onPreviewTrackOpened:t,getTimelineRef:e,isHorizontal:i})=>{let o=v(()=>i?b2:$2),r=q(!1),s=q(0),l=q(0),d=v(()=>n(o)+kb-Pb-y2),a=v(()=>(0,vp.interpolate)(n(s),[Xm,1],[0,-n(d)])),u=v(()=>(0,vp.interpolate)(n(s),[Xm,1],[0,Pb])),f=v(()=>(0,vp.interpolate)(n(s),[Xm,1],[0,n(o)+kb]));return{progressBarY:()=>n(a),controlsY:()=>n(u),calculatedHeight:()=>n(f),onPointerDown:_=>{var x;N(l,((x=e())==null?void 0:x.getBoundingClientRect().bottom)||0,!0),N(r,!0)},onPointerMove:_=>{if(!n(r))return;let x=Math.max(Math.min(_.clientY-n(l),0),-n(d));N(s,Math.abs(x/n(d)),!0)},onPointerUp:()=>{N(r,!1),N(s,n(s)>=_2?1:0,!0),n(s)===1&&t()},closePreviewTrack:()=>{N(s,0)}}};var x2=t=>t;function ys(t,{delay:e=0,duration:i=400,easing:o=x2}={}){let r=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:s=>`opacity: ${s*r}`}}var w2=L('<span class="root s-2d"> </span>'),S2={hash:"s-2d",code:".root.s-2d{box-shadow:0 8px 24px 0 rgba(0,0,0,.08);box-shadow:0 0 2px 0 rgba(0,0,0,.08);color:#fff;font-size:13px;font-weight:500;line-height:16px}"};function Zm(t,e){G(t,S2);var i=w2(),o=T(i,!0);S(i),D(()=>ve(o,e.time)),b(t,i)}var C2=L('<div class="tooltip-wrapper s-u"><div><!></div></div>'),T2={hash:"s-u",code:'.tooltip-wrapper.s-u{display:block;position:relative}.tooltip.s-u{bottom:100%;opacity:0;position:absolute;transform:translateX(-50%);transition:opacity .2s;visibility:hidden}.pointer.s-u:after{border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid rgba(41,41,41,.8);bottom:0;content:" ";font-size:0;left:50%;line-height:0;position:absolute;transform:translate(-50%,5px);width:0}.tooltip.active.s-u{opacity:1;visibility:visible}'};function Jm(t,e){G(t,T2);let i=g(e,"active",3,!1),o=g(e,"pointer",3,!1),r=g(e,"translateXPx",3,0),s=g(e,"translateYPx",3,0),l=g(e,"leftOffset",3,0),d=g(e,"rightOffset",3,0),a=q(void 0),u=q(void 0);function f(x){if(!n(u))return 0;let{width:I}=n(u).getBoundingClientRect(),C=I/2;return x<C?C+l():x>e.containerWidth-C?e.containerWidth-C-d():x}let p=v(()=>f(r()));var m=C2(),$=T(m);let y;var _=T($);ii(_,()=>{var x;return(x=e.children)!=null?x:vt}),S($),Xe($,x=>N(u,x),()=>n(u)),S(m),Xe(m,x=>N(a,x),()=>n(a)),D(x=>{We(m,`transform: translate(${n(p)}px, ${s()}px);`),y=re($,1,"tooltip s-u",null,y,x),We($,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),b(t,m)}var Lb=t=>Math.abs(t)/90%4===1;var I2=L('<div class="preview s-v"></div>'),E2=L('<div class="time s-v"> </div>'),k2=L('<div><!> <div class="episode s-v"><!></div> <!></div>'),P2={hash:"s-v",code:".timeline-preview.s-v{border-radius:2px;bottom:18px;pointer-events:none}.timeline-preview.mobile.s-v{bottom:72px}.preview.s-v{background-color:var(--timeline-preview-bg);border:1px solid var(--white);border-radius:8px;box-shadow:0 0 2px var(--timeline-preview-shadow),0 8px 24px var(--timeline-preview-shadow)}.episode.s-v{margin-bottom:4px;margin-top:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.episode.s-v,.time.s-v{font-size:13px;font-weight:500;line-height:16px;text-align:center;text-shadow:0 8px 24px var(--timeline-preview-shadow),0 0 2px var(--timeline-preview-shadow)}.time.s-v{color:var(--white)}"};function ev(t,e){B(e,!0),G(t,P2);let[i,o]=Ne(),r=()=>w(y,"$rotateAlpha",i),s=()=>w(_,"$playerSize",i),l={MOBILE:150,DESKTOP:278},d=g(e,"time",3,""),a=g(e,"isMobile",3,!1),u=g(e,"videoEpisodes",19,()=>[]),f=g(e,"progress",3,0),p=g(e,"duration",3,0),m=g(e,"isInteractive",3,!1),$=he(),y=$.ui.rotateAlpha,_=$.ui.playerSize,x=q(0),I=q(0),C=q(""),R=q(0),A=q(0),E=q(0),k=q(0),Q=v(()=>rp(f(),p(),u())),H=v(()=>Xl(r())),z=v(()=>Lb(r())),X=v(oe),se=v(()=>(n(z)?1:-1)*(n(x)/2-n(I)/2)),Z=v(()=>n(se)*-1);De(()=>{(K=>{N(x,K.width,!0),N(I,K.height,!0)})(Ce())}),De(()=>{(K=>{N(C,K.imgSrc,!0),N(R,K.imgWidth,!0),N(A,K.imgHeight,!0),N(E,K.imgOffsetX,!0),N(k,K.imgOffsetY,!0)})(me(f()))});function oe(){var Oe;let K=a()?l.MOBILE:l.DESKTOP,{isVertical:ae}=J(),xe=30;return(Oe=n(Q))!=null&&Oe.text&&(xe+=16),(ae||n(H))&&(xe+=18,xe+=50),Math.min(Math.max(s().height-xe,0),K)}function J(){let K=e.previewThumbsData.frameWidth,ae=e.previewThumbsData.frameHeight,xe=ae>K;return{width:K,height:ae,isHorizontal:!xe,isVertical:xe}}function Ce(){let{height:K,isHorizontal:ae,isVertical:xe,width:Oe}=J();return ae&&(K=K/Oe*n(X),Oe=n(X)),xe&&(Oe=Oe/K*n(X),K=n(X)),{width:Oe,height:K}}function me(K){let ae;e.previewThumbsData.isUV?ae=Math.floor(p()*K/e.previewThumbsData.frequency):ae=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*K)));let xe=Math.floor(ae/e.previewThumbsData.countPerImage),Oe=Math.floor(ae%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),it=ae%e.previewThumbsData.countPerRow,ne=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&xe===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(ne=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&ne++);let ce=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&xe===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(ce=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Re=n(x)*ce,Ve=n(I)*ne,et=-it*n(x),ke=-Oe*n(I);return{imgSrc:e.previewThumbsData.links[xe],imgWidth:Re,imgHeight:Ve,imgOffsetX:et,imgOffsetY:ke}}var ee=k2();let _e;var we=T(ee);{var ge=K=>{var ae=I2();D(()=>We(ae,`width: ${n(x)}px; height: ${n(I)}px; background-image: url(${n(C)}); background-size: ${n(R)}px ${n(A)}px; background-position: ${n(E)}px ${n(k)}px;
61
+ transform: rotate(${r()}deg) ${n(H)?`translate(${n(se)}px, ${n(Z)}px)`:""};
62
+ `)),b(K,ae)};V(we,K=>{n(C)&&K(ge)})}var pe=P(we,2),Qe=T(pe);{var U=K=>{var ae=Ae(),xe=ue(ae);{var Oe=ne=>{var ce=hs();D(Re=>ve(ce,Re),[()=>j("tooltip_episode_unfinished")]),b(ne,ce)},it=ne=>{var ce=hs();D(()=>ve(ce,n(Q).text||"")),b(ne,ce)};V(xe,ne=>{m()&&n(Q).completed===!1?ne(Oe):ne(it,!1)})}b(K,ae)};V(Qe,K=>{n(Q)&&K(U)})}S(pe);var O=P(pe,2);{var Ge=K=>{var ae=E2(),xe=T(ae,!0);S(ae),D(()=>ve(xe,d())),b(K,ae)};V(O,K=>{m()||K(Ge)})}S(ee),D(K=>{_e=re(ee,1,"timeline-preview s-v",null,_e,K),We(ee,`width: ${n(H)?n(I):n(x)}px;`)},[()=>({mobile:a()})]),b(t,ee),F(),o()}var A2=L('<span class="time s-f"> </span>'),L2=L("<!> <!>",1),M2={hash:"s-f",code:".time.s-f{background-color:rgba(41,41,41,.8);border-radius:3px;color:var(--white);display:inline-block;padding:6px 10px}.timeline-slider{--slider-bg:var(--timeline-slider-bg);--slider-filled-bg:var(--timeline-slider-filled-bg);--slider-handle-bg:var(--timeline-slider-handle-bg);--slider-loaded-bg:var(--timeline-slider-loaded-bg)}"};function tv(t,e){var le,$e,Le,nt,St;B(e,!0),G(t,M2);let[i,o]=Ne(),r=()=>w(Z,"$interactiveEpisodes$",i),s=()=>w(k,"$duration$",i),l=()=>w(E,"$position$",i),d=()=>w(Ce,"$isInteractiveExpectation$",i),a=()=>w(J,"$isInteractiveTime$",i),u=()=>w(we,"$previewTrackActive",i),f=()=>w(Q,"$isLive$",i),p=()=>w(_e,"$disabledControls$",i),m=()=>w(z,"$isMobile",i),$=()=>w(H,"$isActiveLive$",i),y=()=>w(A,"$bufferedProgress$",i),_=g(e,"showTimeline",3,!1),x=g(e,"withEpisodes",3,!0),I=g(e,"ref",15,void 0),C=he(),R=Rt(),A=C.state.bufferedProgress$,E=C.state.positionWithScrubbing$,k=C.state.duration$,Q=C.state.isLive$,H=C.state.isActiveLive$,z=C.ui.isMobile,X=R.features.episodes&&x()?C.actions.internal.getVideoEpisodes():void 0,se=C.actions.internal.getPreviewThumbsData(),Z=C.state.interactiveEpisodes$,oe=C.state.isInteractive,J=C.state.isInteractiveTime$,Ce=C.state.isInteractiveExpectation$,me=C.actions.internal.correctSeekTimeToInteractive,ee=(le=C.callbacks)==null?void 0:le.onDisabledTimelineClick,_e=C.ui.controls.disabledControls$,we=C.ui.previewTrackActive,ge=(Le=($e=C.callbacks)==null?void 0:$e.uiInfo)==null?void 0:Le.onTimelineMouseEnter,pe=(St=(nt=C.callbacks)==null?void 0:nt.uiInfo)==null?void 0:St.onTimelineMouseLeave,Qe=C.ui.t,U=R.features.interactiveResponsiveUi,O=v(()=>oe?r():X),Ge=v(()=>jo(s())),K=v(()=>jo(l())),ae=v(()=>l()/s()),xe=v(()=>d()||a()),Oe=q(!1),it=q(""),ne=q(0),ce=q(0),Re=q(0),Ve=v(()=>({containerWidth:n(ce),translateXPx:n(ne),translateYPx:oe&&se?-36:-16,active:n(Oe)&&_()&&!n(xe)&&!U&&!u(),pointer:!R.features.timelinePreview||!se||f()})),et=Qe("aria_timeline"),ke=v(()=>Qe("aria_timeline_value",{position:n(K),duration:n(Ge)}));function Te(fe){return!me||!oe?fe:me(fe*s())/s()}function Be(fe,Ue){var ze;(ze=e.onSliderPointerDown)==null||ze.call(e,Ue),C.actions.internal.startScrubbing(Te(fe))}function It(fe){a()||C.actions.internal.progressScrubbing(Te(fe))}function $t(fe){var Ue;C.actions.internal.completeScrubbing(Te(fe)),N(Oe,!1),(Ue=e.onSliderPointerUp)==null||Ue.call(e)}function Ot(fe,Ue,ze){var at;(at=e.onSliderPointerEnter)==null||at.call(e,fe),ei(fe,Ue,ze),N(Oe,!0)}function ct(fe,Ue,ze,at){var jt;(jt=e.onSliderMove)==null||jt.call(e,at,fe),ei(fe,Ue,ze),N(Oe,!0)}function Et(){var fe;N(Oe,!1),(fe=e.onSliderLeave)==null||fe.call(e)}function ei(fe,Ue,ze){N(Re,Te(fe),!0),N(ne,Ue,!0),ze&&N(ce,ze,!0),N(it,kt(fe),!0)}function kt(fe){let Ue=jo((f()?1-fe:fe)*s());return f()?`-${Ue}`:Ue}let Dt=v(()=>p().has("TIMELINE"));var Ht=L2(),Y=ue(Ht);Jm(Y,Xr(()=>n(Ve),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(fe,Ue)=>{var ze=Ae(),at=ue(ze);{var jt=ci=>{ev(ci,{get time(){return n(it)},get isMobile(){return m()},get videoEpisodes(){return n(O)},get previewThumbsData(){return se},get progress(){return n(Re)},get duration(){return s()},get isInteractive(){return oe}})},Ft=ci=>{var li=A2(),Di=T(li,!0);S(li),D(()=>ve(Di,n(it))),b(ci,li)};V(at,ci=>{R.features.timelinePreview&&se&&!f()?ci(jt):ci(Ft,!1)})}b(fe,ze)},$$slots:{default:!0}}));var Ee=P(Y,2);Qa(Ee,{className:"timeline-slider",get isActiveLive(){return $()},get isMobile(){return m()},get ariaLabel(){return et},ariaValueMin:0,get ariaValueMax(){return s()},get ariaValueNow(){return l()},get ariaValueText(){return n(ke)},get loadedProgress(){return y()},get filledProgress(){return n(ae)},get handleProgress(){return n(ae)},get videoEpisodes(){return n(O)},onPointerDown:Be,onHandleMove:It,onPointerMove:ct,onPointerUp:$t,onPointerEnter:Ot,onPointerLeave:Et,get onMouseEnter(){return ge},get onMouseLeave(){return pe},get onDisabledClick(){return ee},get isInteractive(){return oe},get disabled(){return n(Dt)},get handleAlwaysVisible(){return u()},get hideHandel(){return a()},testId:"progress_bar",onContextMenu:$t,get ref(){return I()},set ref(fe){I(fe)}}),b(t,Ht),F(),o()}var V2={hash:"s-g",code:".timeline-ads-slider{--slider-bg:var(--timeline-slider-bg);--slider-filled-bg:var(--timeline-slider-filled-bg);--slider-handle-bg:var(--timeline-slider-handle-bg);--slider-loaded-bg:var(--timeline-slider-loaded-bg)}"};function Tc(t,e){B(e,!0),G(t,V2);let[i,o]=Ne(),r=()=>w(a,"$isMobile",i),s=g(e,"position",3,0),l=g(e,"duration",3,0),d=he(),a=d.ui.isMobile,u=d.ui.t,f=v(()=>jo(l())),p=v(()=>jo(s())),m=v(()=>s()/l()),$=v(()=>u("aria_timeline_value",{position:n(p),duration:n(f)})),y=v(()=>Math.round(n(m)*100));Qa(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return l()},get ariaValueNow(){return n(y)},get ariaValueText(){return n($)},get filledProgress(){return n(m)},hideHandel:!0,get squareBorders(){return r()}}),F(),o()}var R2=L("<div><!></div>"),N2=L("<div></div>"),D2={hash:"s-c",code:".timeline.s-c{align-items:center;bottom:0;box-sizing:border-box;display:flex;min-width:86px;pointer-events:all;position:relative;width:100%}.timeline.mobile.s-c{height:16px;margin-top:6px;padding:6px 12px 7px}.withoutPadding.s-c{padding:0}.timeline-stub.s-c{min-width:20px;width:100%}.timeline-stub.mobile.s-c{height:8px}"};function Xa(t,e){B(e,!0),G(t,D2);let[i,o]=Ne(),r=()=>w(x,"$isLive$",i),s=()=>w(R,"$isMobile",i),l=()=>w(A,"$disabled",i),d=()=>w(C,"$adPosition",i),a=()=>w(I,"$adDuration",i),u=g(e,"isAds",3,!1),f=g(e,"isHidden",3,!1),p=g(e,"timelineNotAvailable",3,!1),m=g(e,"needPadding",3,!0),$=g(e,"ref",15,void 0),y=he(),_=Rt(),x=y.state.isLive$,I=y.ads.duration,C=y.ads.position,R=y.ui.isMobile,A=de(!1),E=v(()=>!p()&&(!r()||r()&&e.canRewindLive&&e.isRewindableLive||u()));var k=Ae(),Q=ue(k);{var H=X=>{var se=R2();let Z;var oe=T(se);{var J=me=>{Tc(me,{get position(){return d()},get duration(){return a()}})},Ce=me=>{tv(me,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return n(E)},get withEpisodes(){return e.withEpisodes},get onSliderMove(){return e.onSliderMove},get onSliderPointerDown(){return e.onSliderPointerDown},get onSliderPointerUp(){return e.onSliderPointerUp},get onSliderLeave(){return e.onSliderLeave},get onSliderPointerEnter(){return e.onSliderPointerEnter},get ref(){return $()},set ref(ee){$(ee)}})};V(oe,me=>{u()?me(J):me(Ce,!1)})}S(se),Ms(se,()=>Ul(f()&&_.features.usePerformanceFix,A,_.disableInvisibleComponentsTimeout)),D(me=>Z=re(se,1,"timeline s-c",null,Z,me),[()=>({withoutPadding:!m(),mobile:s(),"out-of-flow":l()})]),b(X,se)},z=X=>{var se=N2();let Z;D(oe=>Z=re(se,1,"timeline-stub s-c",null,Z,oe),[()=>({mobile:s()})]),b(X,se)};V(Q,X=>{n(E)?X(H):X(z,!1)})}b(t,k),F(),o()}var Mb=require("@vkontakte/videoplayer-shared/es2018");var O2=(t,e,i,o,r,s,l)=>{N(e,!0),N(i,t.clientX,!0),N(o,n(r),!0),s(l())},B2=L("<div></div>"),F2=L('<div><div class="track s-2b"></div></div>'),H2={hash:"s-2b",code:'.root.s-2b{display:flex;height:var(--preview-track-frame-height-horizontal);overflow:hidden;position:relative;width:100%}.root.is-vertical-video.s-2b,.root.vertically-rotated.s-2b{height:var(--preview-track-frame-height-vertical)}.root.s-2b:after{background-color:#fff;box-shadow:0 2px 2px 0 rgba(0,0,0,.12);box-shadow:0 0 2px 0 rgba(0,0,0,.06);content:"";height:100%;margin:0 auto;pointer-events:none;width:3px;z-index:1}.track.s-2b{bottom:0;display:flex;left:0;padding:0 50%;top:0}.frame.s-2b,.track.s-2b{position:absolute}.frame.s-2b{background-position-x:calc(var(--column-index)*-1*var(--frame-width));background-position-y:calc(var(--frame-height)*-1*var(--row-index));background-size:calc(var(--frame-width)*var(--column-numbers)) calc(var(--frame-height)*var(--row-numbers));flex-shrink:0;height:var(--frame-height);pointer-events:none;transform-origin:center;width:var(--frame-width)}.vertically-rotated.s-2b .frame:where(.s-2b){transform-origin:0 0}.rotate-1.s-2b{transform:rotate(-90deg) translateX(-100%)}.rotate-2.s-2b{transform:rotate(-180deg)}.rotate-3.s-2b{transform:rotate(-270deg) translateY(-100%)}'};function ov(t,e){B(e,!0),G(t,H2);let[i,o]=Ne(),r=()=>w(R,"$rotateAlpha",i),s=()=>w(_,"$position$",i),l=()=>w(y,"$duration$",i),d=he(),{countPerImage:a=0,countPerRow:u=0,countTotal:f=0,links:p=[],frameHeight:m=0,frameWidth:$=0}=d.actions.internal.getPreviewThumbsData()||{},{duration$:y,positionWithScrubbing$:_}=d.state,{startScrubbing:x,progressScrubbing:I,completeScrubbing:C}=d.actions.internal,R=d.ui.rotateAlpha,A=q(void 0),E=q(!1),k=q(0),Q=q(0),H=q(0),z=q(0),X=v(()=>m<=$),se=v(()=>Xl(r())),Z=v(()=>n(X)?!n(se):n(se)),oe=114,J=65,Ce=3,me=v(()=>n(Z)?oe:J),ee=v(()=>n(X)?oe:J),_e=v(()=>n(X)?"var(--preview-track-frame-height-horizontal)":"var(--preview-track-frame-height-vertical)"),we=v(()=>f*n(me)),ge=q(0);De(()=>{N(z,Math.ceil(-n(H)/n(me))-1),N(H,-n(we)*s()/l())});let pe=()=>{C(Qe(),!0)},Qe=()=>l()*-n(H)/n(we)/l(),U=!1,O=ke=>{if(!n(E))return!1;let Te=ke.clientX-n(k);N(H,n(Q)+Te),N(H,Math.max(Math.min(n(H),0),-n(we)),!0),Math.abs(Te)>1&&(U=!0),I(Qe())},Ge=ke=>{n(E)&&(N(E,!1),!U&&ke&&N(H,-(ke.offsetX-n(ge)/2)),U=!1,pe())},K=()=>{n(E)&&Ge()},ae=v(()=>a/u),xe=(ke,Te)=>{if(ke!==p.length-1)return u;let Be=0,It=Te*u;for(let $t=1;$t<=u;$t++)ke*a+Be+It<f&&Be++;return Be},Oe=v(()=>Math.floor(n(z)/a)),it=v(()=>(0,Mb.getRangeAroundIndex)(3,n(Oe),p.length-1)),ne=(ke,Te,Be)=>{let It=a*n(me);return ke*It+Te*n(me)*u+n(ge)/2-Ce/2+Be*n(me)},ce=v(()=>[`--row-numbers: ${n(ae)}`,`--column-numbers: ${u}`,`--frame-width: ${n(ee)}px`,`--frame-height: ${n(_e)}`].join(";"));var Re=F2();let Ve;var et=T(Re);et.__pointerdown=[O2,E,k,Q,H,x,Qe],et.__pointermove=O,et.__pointerup=Ge,bi(et,20,()=>n(it),ke=>ke,(ke,Te)=>{var Be=Ae(),It=ue(Be);bi(It,16,()=>Array.from({length:n(ae)},($t,Ot)=>Ot),$t=>$t,($t,Ot)=>{var ct=Ae(),Et=ue(ct);bi(Et,16,()=>Array.from({length:xe(Te,Ot)},(ei,kt)=>kt),ei=>ei,(ei,kt)=>{var Dt=B2();D((Ht,Y)=>{We(Dt,Ht),re(Dt,1,Y,"s-2b")},[()=>`--row-index: ${Ot}; --column-index: ${kt}; left: ${ne(Te,Ot,kt)}px; background-image: url(${p[Te]});`,()=>`frame rotate-${Math.abs(r())/90%4}`]),b(ei,Dt)}),b($t,ct)}),b(ke,Be)}),S(et),S(Re),Xe(Re,ke=>N(A,ke),()=>n(A)),D(ke=>{Ve=re(Re,1,"root s-2b",null,Ve,ke),We(Re,n(ce)),We(et,`transform: translateX(${n(H)}px); width: ${n(we)}px;`)},[()=>({"is-vertical-video":!n(X),"vertically-rotated":n(se)})]),dt("mouseleave",et,K),An(Re,"clientWidth",ke=>N(ge,ke)),b(t,Re),F(),o()}Ye(["pointerdown","pointermove","pointerup"]);var U2=L('<div class="notification s-2c"><span class="description s-2c"> </span></div>'),z2={hash:"s-2c",code:".notification.s-2c{background:var(--notification-bg);border-radius:var(--notification-radius);padding:9px 14px 10px 12px}.description.s-2c{font-size:14px;line-height:18px}"};function nv(t,e){B(e,!1),G(t,z2);let i=340,{ui:{t:o}}=he();So();var r=U2(),s=T(r),l=T(s,!0);S(s),S(r),D(d=>ve(l,d),[()=>o("preview_track_close_tooltip")],Tn),jr(3,r,()=>ys,()=>({duration:i})),b(t,r),F()}var Vb=require("@vkontakte/videoplayer-shared/es2018"),W2=L('<div class="preview-track-close tooltip s-29"><!></div>'),K2=L('<div class="preview-track-control s-29"><!> <div class="preview-track-close s-29"><!></div> <!></div>'),q2=L('<div class="wrapper-preview-track s-29"><!></div>'),Q2=L('<div class="enriched-timeline s-29"><!> <!> <!></div>'),G2={hash:"s-29",code:".enriched-timeline.s-29{padding:var(--timeline-padding-vertical-top) var(--timeline-padding-horizontal) var(--timeline-padding-vertical-bottom);pointer-events:auto;position:relative}.preview-track-control.s-29{align-items:center;display:flex;justify-content:center;left:0;padding:0 calc(var(--timeline-padding-horizontal));pointer-events:none;position:absolute;right:0;top:calc((var(--timeline-height) + var(--preview-track-controls-top))*-1)}.preview-track-close.s-29{pointer-events:auto;position:absolute;right:calc(var(--timeline-padding-horizontal))}.preview-track-close.tooltip.s-29{bottom:32px;opacity:0;transition:opacity .2s}.preview-track-close.s-29:hover+.tooltip:where(.s-29){opacity:1}.wrapper-preview-track.s-29{box-sizing:border-box;left:0;overflow:hidden;padding:0 calc(var(--timeline-padding-horizontal));position:absolute;right:0;z-index:-1}"};function rv(t,e){B(e,!0),G(t,G2);let[i,o]=Ne(),r=()=>w(_,"$playerSize",i),s=()=>w(y,"$duration$",i),l=()=>w(x,"$previewTrackActive",i),d=()=>w(m,"$position$",i),a=()=>w($,"$isRewindableLive$",i),u=g(e,"timelineRef",15,void 0),f=he(),p=200,{positionWithScrubbing$:m,isRewindableLive$:$,duration$:y}=f.state,{playerSize:_,previewTrackActive:x}=f.ui,{countPerImage:I=0,links:C=[],frequency:R=0}=f.actions.internal.getPreviewThumbsData()||{},A=v(()=>r().width>100),E=q(!B_()),k=()=>{n(E)&&(O_(),N(E,!1))},Q=me=>{let ee=Math.floor(s()*me/R),_e=Math.floor(ee/I),we=(0,Vb.getRangeAroundIndex)(3,_e,C.length-1);for(let ge of we){let pe=new Image;pe.src=C[ge]}},H=(me,ee)=>{Q(ee),!l()&&e.onTimelineMove(me)};var z=Q2(),X=T(z);{var se=me=>{var ee=K2(),_e=T(ee);let we=v(()=>jo(d()));Zm(_e,{get time(){return n(we)}});var ge=P(_e,2),pe=T(ge);Rs(pe,{onClick:()=>f.actions.internal.closePreviewTrack()}),S(ge);var Qe=P(ge,2);{var U=O=>{var Ge=W2(),K=T(Ge);nv(K,{}),S(Ge),b(O,Ge)};V(Qe,O=>{n(E)&&O(U)})}S(ee),dt("mouseleave",ge,k),jr(3,ee,()=>ys,()=>({duration:p})),b(me,ee)};V(X,me=>{l()&&me(se)})}var Z=P(X,2);let oe=v(()=>!n(A));Xa(Z,{get isHidden(){return n(oe)},get isAds(){return e.isAds},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return a()},onSliderMove:H,get onSliderPointerDown(){return e.onTimelinePointerDown},get onSliderPointerUp(){return e.onTimelinePointerUp},get onSliderLeave(){return e.onTimelinePointerLeave},onSliderPointerEnter:Q,get ref(){return u()},set ref(me){u(me)}});var J=P(Z,2);{var Ce=me=>{var ee=q2(),_e=T(ee);ov(_e,{}),S(ee),D(()=>We(ee,`height: ${e.animatedPreviewTrackHeight}px;`)),b(me,ee)};V(J,me=>{e.previewTrackAvailable&&me(Ce)})}S(z),D(()=>We(z,`transform: translateY(${e.animatedOffsetY}px);`)),b(t,z),F(),o()}var j2=L('<div><!> <div class="controls s-11" data-testid="player_controls"><div class="controls-left s-11"><!> <!> <!></div> <div class="controls-right s-11"></div></div></div> <!>',1),X2={hash:"s-11",code:'.wrapper-bottom.s-11{bottom:0;box-sizing:border-box;display:flex;flex-direction:column;justify-content:flex-end;left:0;pointer-events:none;position:absolute;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);width:100%;will-change:transform;z-index:var(--controls-container-z-index)}.wrapper-bottom.s-11:before{background:var(--controls-gradient);content:"";height:var(--controls-gradient-height);position:absolute;width:100%}.wrapper-bottom.s-11>:where(.s-11){pointer-events:auto}.controls.s-11{align-items:center;box-sizing:border-box;display:flex;font-size:13px;height:var(--controls-height);justify-content:space-between;padding:0 var(--controls-desktop-padding-horizontal) 4px;white-space:nowrap;width:100%}.controls-left.s-11,.controls-right.s-11{align-content:center;display:flex}.controls-left.s-11{flex-grow:1;min-width:0;overflow:hidden}.controls-left.s-11 >:not(:first-child),.controls-right.s-11 >*{margin-left:var(--controls-desktop-item-margin-left)}.controls-hidden.s-11{transform:translateY(100%);visibility:visible}.wrapper-bottom.no-smooth.s-11{transition:none}'};function av(t,e){var fl,ha;B(e,!0),G(t,X2);let[i,o]=Ne(),r=()=>w(Xo,"$disabledControls$",i),s=()=>w(rt,"$adPlaybackState",i),l=()=>w(Ft,"$playbackState$",i),d=()=>w(_o,"$currentSubtitle$",i),a=()=>w(Di,"$isEnded$",i),u=()=>w(Jo,"$currentGridType$",i),f=()=>w(At,"$isLive$",i),p=()=>w(qe,"$chromecastState$",i),m=()=>w(mt,"$isPictureInPictureActive",i),$=()=>w(Xt,"$pictureInPictureType$",i),y=()=>w(_i,"$availableSubtitlesList$",i),_=()=>w(Ut,"$contextMenuOpenedByKeyboard$",i),x=()=>w(yt,"$showContextMenuBtn$",i),I=()=>w(hi,"$isRewindableLive$",i),C=()=>w(ui,"$isActiveLive$",i),R=()=>w(Rr,"$graphIsOpened$",i),A=()=>w(Zo,"$contextMenuVisible$",i),E=()=>w(ki,"$isFullscreen",i),k=()=>w(bo,"$autoplayNextEnabled",i),Q=()=>w(n(lo),"$prevButton",i),H=()=>w(n(on),"$replayButton",i),z=()=>w(n(ji),"$playButton",i),X=()=>w(n(Ui),"$nextButton",i),se=()=>w(n(co),"$playPrevChapterButton",i),Z=()=>w(n(Un),"$seekToInteractiveButton",i),oe=()=>w(n(Fr),"$interactiveGraphButton",i),J=()=>w(n(Li),"$liveButton",i),Ce=()=>w(n(ws),"$time",i),me=()=>w(n(os),"$episodes",i),ee=()=>w(n(ns),"$vkLogo",i),_e=()=>w(n(rs),"$volume",i),we=()=>w(n(Hr),"$subtitles",i),ge=()=>w(n(To),"$settings",i),pe=()=>w(n(nn),"$context",i),Qe=()=>w(n(Xi),"$fullscreen",i),U=()=>w(n(sr),"$chromecast",i),O=()=>w(No,"$additionalDesktopControlPanelRightButtons$",i),Ge=()=>w(Bi,"$playerSize",i),K=()=>w(en,"$isInteractiveTime$",i),ae=()=>w(di,"$previewTrackActive",i),xe=()=>w(Oi,"$settingsMenuVisible",i),Oe=()=>w(po,"$settingButtonRef$",i),it=()=>w(W,"$startedByKeyboard$",i),ne=()=>w(ci,"$isAudioAvailable$",i),ce=()=>w(Ht,"$fakeIsPlaying$",i),Re=()=>w(xs,"$seekToInteractiveDisabledTooltip$",i),Ve=()=>w(qn,"$isPreviewTrackHorizontallyAligned$",i),et=()=>w(ko,"$previewTrackAvailable",i),ke=()=>w(Uo,"$previewTrackDragInProgress",i),Te=()=>w(Zt,"$adPosition",i),Be=()=>w(jt,"$position$",i),It=()=>w(Ct,"$adDuration",i),$t=()=>w(at,"$duration$",i),Ot=g(e,"playerControlsWrapperRef",15,void 0),ct=g(e,"playerControlsRef",15,void 0),Et=g(e,"isAds",3,!1),ei=g(e,"logoTargetUrl",3,""),kt=g(e,"isOneVideoPlaylist",3,!1),Dt=g(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:Ht}=Co(),Y=he(),Ee=Co(),le=Rt(),$e=Y.actions.internal.toggleMuted,Le=Y.actions.internal.togglePlay,nt=Y.actions.internal.pause,St=Y.actions.internal.toggleSubtitle,fe=Y.actions.internal.checkFullscreenSupport,Ue=(fl=Y.callbacks)==null?void 0:fl.onAudioDoesNotExistHint,ze=(ha=Y.callbacks)==null?void 0:ha.onAudioDisabledHint,at=Y.state.duration$,jt=Y.state.positionWithScrubbing$,Ft=Y.state.playbackState$,ci=Y.state.isAudioAvailable$,li=Y.state.isAudioDisabled,Di=Y.state.isEnded$,At=Y.state.isLive$,ui=Y.state.isActiveLive$,hi=Y.state.isRewindableLive$,{isActive$:mt,type$:Xt}=Ee.pictureInPicture$,Oi=Y.ui.settingsMenu.visible$,Si=Y.ui.settingsMenu.openedByBtnKeyboard$,ti=Y.ui.controls,gt=Y.actions.internal.getVideoEpisodes(),qe=Y.state.chromecastState$,_i=Y.state.availableSubtitlesList$,_o=Y.state.currentSubtitle$,Xo=ti.disabledControls$,Zo=Y.ui.contextMenu.visible$,yt=Y.ui.contextMenu.showContextMenuBtn$,Ut=Y.ui.contextMenu.openedByBtnKeyboard$,W=Y.ui.startedByKeyboard$,Lt=Y.ui.controlBlocks,ni=Y.ui.previewTrackNotificationVisible,ut=Y.ui.t,Ct=Y.ads.duration,Zt=Y.ads.position,rt=Y.ads.playbackState,ki=Y.ui.isFullscreen,Bi=Y.ui.playerSize,Jo=Y.ui.currentGridType$,No=Y.ui.additionalDesktopControlPanelRightButtons$,bo=Y.ui.autoplayNextEnabled$,Fi=Y.actions.internal.getVideoElement,Nn=Y.actions.internal.replayInteractive,$o=Y.actions.internal.prevVideoClick,yo=Y.actions.internal.nextVideoClick,Pi=Y.state.isInteractive,en=Y.state.isInteractiveTime$,Do=Y.state.showInteractiveGraph,pn=Y.state.showSeekToInteractive,hr=Y.state.showPlayPrevChapter,Vr=Y.state.showInteractiveTimeIndicator,is=Y.state.playPrevChapterDisabledTooltip,xs=Ee.seekToInteractiveDisabledTooltip$,Rr=Ee.graphIsOpened$,er=le.features.interactiveResponsiveUi,Nr=v(()=>r().has("EPISODE_BUTTON")),fn=v(()=>r().has("GRAPH_BUTTON")),mn=v(()=>r().has("SEEK_TO_INTERACTIVE_BUTTON")),_r=v(()=>r().has("PLAY_BUTTON")),br=v(()=>r().has("REPLAY_BUTTON")),tn=v(()=>r().has("PLAY_PREV_CHAPTER_BUTTON")),tr=()=>Y.actions.internal.toggleChromecast(),$r=v(()=>Et()?s()==="playing":l()===Za.PlaybackState.PLAYING),yr=v(()=>d().value!=="off"),Hi=v(()=>a()&&!Et()||Pi),Dr=v(()=>er?n(Hi)&&io(u(),"m"):n(Hi)),ir=v(()=>!a()||Pi||Et()),Dn=v(()=>io(u(),"m")),ro=v(()=>e.showNextPrevButtons&&io(u(),"m")&&!Et()&&e.nextButtonActive),Or=v(()=>e.showNextPrevButtons&&io(u(),"m")&&!Et()&&e.prevButtonActive),On=v(()=>!Et()&&!!f()),ht=v(()=>p()!==Za.ChromecastState.NOT_AVAILABLE&&!(m()&&$()===1)&&io(u(),"m")&&!Pi),ri=v(()=>e.showAutoplayNext&&!kt()&&io(u(),"s")),xr=v(()=>y().length>0&&io(u(),"m")),wr=v(()=>_()||x()),Br=v(()=>io(u(),"s")&&!Et()),vn=v(()=>!e.logoHidden&&!Et()),gn=v(()=>le.features.fullscreen&&fe()&&(e.logoHidden||io(u(),er?"xs":"s"))&&!(m()&&$()===1)&&(Pi?Dt():!0)),Oo=v(()=>(!f()||Et())&&!(le.features.interactiveHideTime&&Pi)),hn=v(()=>Do&&io(u(),"m")),_n=v(()=>er?pn&&io(u(),"s"):pn),or=v(()=>er?hr&&io(u(),"s"):hr),bn=v(()=>!Et()&&!f()&&!!(gt!=null&&gt.length)&&n(Dn)&&!n(Nr)),Bo=v(()=>!I()||!!C()),Bn=v(()=>R()?ut("tooltip_interactive_graph_on"):ut("tooltip_interactive_graph_off")),Fn=v(()=>A()?ut("tooltip_context_menu_close"):ut("tooltip_context_menu_open")),Yi=(ft,ot)=>ft?ot&&ot===Za.PlaybackState.PAUSED?ut("tooltip_play"):"":ut("tooltip_live"),so=v(()=>Yi(n(Bo),l())),$n=v(()=>le.logoType==="vk_video"?ut("tooltip_vk_video_logo"):ut("tooltip_vk_logo")),Hn=v(()=>n(yr)?ut("tooltip_subtitles_on"):ut("tooltip_subtitles_off")),Sr=v(()=>E()?ut("tooltip_fullscreen_on"):ut("tooltip_fullscreen_off")),nr=v(()=>p()===Za.ChromecastState.CONNECTED?ut("tooltip_chromecast_on"):ut("tooltip_chromecast_off")),rr=v(()=>k()?ut("tooltip_autoplay_on"):ut("tooltip_autoplay_off")),pt=q(0),xt=si({}),ao=si({}),lo=v(()=>ti.prevButton),on=v(()=>ti.replayButton),ji=v(()=>ti.playButton),Ui=v(()=>ti.nextButton),co=v(()=>ti.playPrevChapterButton),Un=v(()=>ti.seekToInteractiveButton),Fr=v(()=>ti.interactiveGraphButton),Li=v(()=>ti.liveButton),ws=v(()=>ti.time),os=v(()=>ti.episodes),ns=v(()=>ti.vkLogo),rs=v(()=>ti.volume),Hr=v(()=>ti.subtitles),To=v(()=>ti.settings),nn=v(()=>ti.context),Xi=v(()=>ti.fullscreen),sr=v(()=>ti.chromecast),Fe=v(()=>({prevButton:Q()?Q().right-Q().left:0,replayButton:H()?H().right-H().left:0,playButton:z()?z().right-z().left:0,nextButton:X()?X().right-X().left:0,playPrevChapterButton:se()?se().right-se().left:0,seekToInteractiveButton:Z()?Z().right-Z().left:0,interactiveGraphButton:oe()?oe().right-oe().left:0,liveButton:J()?J().right-J().left:0,time:Ce()?Ce().right-Ce().left:0,episodes:me()?me().right-me().left:0,vkLogo:ee()?ee().right-ee().left:0,volume:_e()?_e().right-_e().left:0,subtitles:we()?we().right-we().left:0,settings:ge()?ge().right-ge().left:0,context:pe()?pe().right-pe().left:0,fullscreen:Qe()?Qe().right-Qe().left:0,chromecast:U()?U().right-U().left:0,additionalButtons:O().length?O().reduce(ft=>[...ft,40],[]):[]})),Mt=q(0);De(()=>{(!n(Mt)||n(Mt)<n(Fe).time)&&Tt(()=>N(Mt,n(Fe).time,!0))});let $i=q(!1);De(()=>{let ft=0;n(bn)&&(io(u(),"xl")?ft=n(Fe).time:ft=60);let ot=n(Fe).prevButton+n(Fe).playButton+n(Fe).nextButton+n(Fe).seekToInteractiveButton+n(Fe).interactiveGraphButton+n(Fe).liveButton+n(Mt)+ft;N($i,n(Oo)&&n(pt)>=ot,!0)});let Fo=v(()=>n($i)&&io(u(),"m")),uo=(0,sv.debounceFn)(Jl,260),Io=(0,sv.debounceFn)(mp,260);De(()=>{Ge(),K(),ae(),uo(Fi(),ti,xt,e.showControls),Io(Fi(),Lt,ao,e.showControls)}),De(()=>{ao.bottom=Ot()});let po=de();De(()=>{xe(),Oe()&&Tt(()=>Wl(Oe(),xe(),Si))});let Ho;De(()=>{it(),Tt(()=>pp(W,it(),Ho))});function zn(){sa({isAudioDisabled:li,isAudioAvailable:ne(),isAds:Et(),audioIsNotExistHintCallback:Ue,audioDisabledHintCallback:ze})&&$e()}let rn=Pi?Nn:Le,xo=v(()=>ce()!==null),wo=v(()=>n(xo)?ce():n($r)),Wn=v(()=>n(wo)?ut("tooltip_pause"):ut("tooltip_play")),Kn=ut("tooltip_episodes"),yn=v(()=>{var ft,ot,Zi,Po;return n(Or)?{id:"prevButton",type:"desktop-control-panel-left",weight:Os.prevButton,buttonComponent:Ya,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:$o.bind(null,!0)},tooltipEnabled:!((ot=(ft=Y.callbacks)==null?void 0:ft.uiInfo)!=null&&ot.onPrevButtonMouseEnter)&&!((Po=(Zi=Y.callbacks)==null?void 0:Zi.uiInfo)!=null&&Po.onPrevButtonMouseLeave),mouseEnter:()=>{var Ji,gi,zi;(zi=(gi=(Ji=Y.callbacks)==null?void 0:Ji.uiInfo)==null?void 0:gi.onPrevButtonMouseEnter)==null||zi.call(gi,Zn(Fi(),xt,"prevButton",e.showControls))},mouseLeave:()=>{var Ji,gi,zi;(zi=(gi=(Ji=Y.callbacks)==null?void 0:Ji.uiInfo)==null?void 0:gi.onPrevButtonMouseLeave)==null||zi.call(gi,Zn(Fi(),xt,"prevButton",e.showControls))},tooltipText:ut("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),Cr=v(()=>n(Dr)?{id:"replayButton",type:"desktop-control-panel-left",weight:Os.replayButton,buttonComponent:ed,buttonComponentProps:{disabled:n(br),click:rn},tooltipText:ut("tooltip_restart"),disabled:n(br)}:void 0),ss=v(()=>n(ir)?{id:"playButton",type:"desktop-control-panel-left",weight:Os.playButton,buttonComponent:td,buttonComponentProps:{disabled:n(_r),isPlaying:n($r),click:Le},tooltipText:n(Wn),disabled:n(_r)}:void 0),ar=v(()=>{var ft,ot,Zi,Po;return n(ro)?{id:"nextButton",type:"desktop-control-panel-left",weight:Os.nextButton,buttonComponent:Ya,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:yo.bind(null,!0)},tooltipEnabled:!((ot=(ft=Y.callbacks)==null?void 0:ft.uiInfo)!=null&&ot.onNextButtonMouseEnter)&&!((Po=(Zi=Y.callbacks)==null?void 0:Zi.uiInfo)!=null&&Po.onNextButtonMouseLeave),mouseEnter:()=>{var Ji,gi,zi;(zi=(gi=(Ji=Y.callbacks)==null?void 0:Ji.uiInfo)==null?void 0:gi.onNextButtonMouseEnter)==null||zi.call(gi,Zn(Fi(),xt,"nextButton",e.showControls))},mouseLeave:()=>{var Ji,gi,zi;(zi=(gi=(Ji=Y.callbacks)==null?void 0:Ji.uiInfo)==null?void 0:gi.onNextButtonMouseLeave)==null||zi.call(gi,Zn(Fi(),xt,"nextButton",e.showControls))},tooltipText:ut("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),Je=v(()=>Pi&&n(or)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:Os.playPrevChapterButton,buttonComponent:yc,buttonComponentProps:{disabled:n(tn),click:e.playPrevChapter},tooltipText:ut("tooltip_interactive_go_back"),disabledTooltipContent:ut(is),disabled:n(tn)}:void 0),Jt=v(()=>Pi&&n(_n)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:Os.seekToInteractiveButton,buttonComponent:wc,buttonComponentProps:{disabled:n(mn),click:e.seekToInteractive},tooltipText:ut("tooltip_interactive_seek"),disabled:n(mn),disabledTooltipContent:ut(Re())}:void 0),yi=v(()=>Pi&&n(hn)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:Os.interactiveGraphButton,buttonComponent:Sc,buttonComponentProps:{disabled:n(fn),click:Rr.toggle,graphIsOpened:R()},tooltipText:n(Bn)}:void 0),fo=v(()=>n(On)?{id:"liveButton",type:"desktop-control-panel-left",weight:Os.liveButton,buttonComponent:Cc,buttonComponentProps:{isLiveActive:n(Bo),ariaLabel:n(so)},tooltipText:n(so),disabled:n(Bo)&&l()===Za.PlaybackState.PLAYING}:void 0),sn=v(()=>[n(yn),n(Cr),n(ss),n(ar),n(Je),n(Jt),n(yi),n(fo)].filter(ft=>!!ft).sort(Ua)),Ur=v(()=>n(vn)?{id:"vkLogo",type:"desktop-control-panel-right",weight:Fs.vkLogo,buttonComponent:fc,buttonComponentProps:{targetUrl:ei(),logoClickable:e.logoClickable,click:nt},tooltipText:n($n),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),Eo=v(()=>n(ri)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:Fs.autoplayNext,buttonComponent:xc,tooltipText:n(rr)}:void 0),lr=v(()=>({id:"volume",type:"desktop-control-panel-right",weight:Fs.volume,buttonComponent:Lm,buttonComponentProps:{click:zn,isAds:Et()}})),as=v(()=>n(xr)?{id:"subtitles",type:"desktop-control-panel-right",weight:Fs.subtitles,buttonComponent:Em,buttonComponentProps:{isSubtitlesEnabled:n(yr),click:St},tooltipText:n(Hn)}:void 0),Tr=v(()=>n(Br)?{id:"settings",type:"desktop-control-panel-right",weight:Fs.settings,buttonComponent:Yl,buttonComponentProps:{ref$:po},tooltipText:xe()?void 0:ut("tooltip_settings_off")}:void 0),pa=v(()=>le.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:Fs.context,buttonComponent:Wm,buttonComponentProps:{ariaLabel:ut("aria_label_context_menu")},className:n(wr)?"":"out-of-view",tooltipText:n(Fn)}:void 0),Ss=v(()=>n(gn)?{id:"fullscreen",type:"desktop-control-panel-right",weight:Fs.fullscreen,buttonComponent:pc,buttonComponentProps:{isFullscreen:E(),click:e.toggleFullscreen},tooltipText:n(Sr)}:void 0),xn=v(()=>n(ht)?{id:"chromecast",type:"desktop-control-panel-right",weight:Fs.chromecast,buttonComponent:vc,buttonComponentProps:{state:p(),click:tr},tooltipText:n(nr)}:void 0),lt=v(()=>[n(Ur),n(Eo),n(lr),n(as),n(Tr),n(pa),n(Ss),n(xn),...O()].filter(ft=>!!ft).sort(Ua)),di=Y.ui.previewTrackActive,Uo=Y.ui.previewTrackDragInProgress,ko=Y.ui.previewTrackAvailable,qn=Y.ui.isPreviewTrackHorizontallyAligned,wn=v(()=>Ab({onPreviewTrackOpened:Y.actions.internal.previewTrackOpened,getTimelineRef:()=>xt.timeline,isHorizontal:Ve()})),ye=v(()=>n(wn).progressBarY),wt=v(()=>n(wn).controlsY),Bt=v(()=>n(wn).onPointerDown),qt=v(()=>n(wn).onPointerMove),Ti=v(()=>n(wn).onPointerUp),Ii=v(()=>n(wn).calculatedHeight),Ei=v(()=>n(wn).closePreviewTrack);De(()=>{ae()?ni.set(!1):n(Ei)()});let xi;Vt(()=>()=>xi&&clearTimeout(xi));let ls=ft=>{ae()||!et()||(n(Bt)(ft),xi=setTimeout(()=>{Y.actions.internal.previewTrackDragStarted()},200))},ds=()=>{ae()||n(Ti)(),xi&&clearTimeout(xi),ke()&&Y.actions.internal.previewTrackDragFinished()},dl=ft=>{n(qt)(ft),!ae()&&et()&&!ae()&&ni.set(!0)},pd=()=>{ni.set(!1)};var Cs=j2(),cs=ue(Cs);let fa;var Us=T(cs);{var ma=ft=>{let ot=v(()=>n(ye)()),Zi=v(()=>n(Ii)());rv(ft,{get animatedOffsetY(){return n(ot)},get animatedPreviewTrackHeight(){return n(Zi)},get canRewindLive(){return e.canRewindLive},get isAds(){return Et()},onTimelineMove:dl,onTimelinePointerDown:ls,onTimelinePointerUp:ds,onTimelinePointerLeave:pd,get previewTrackAvailable(){return et()},get timelineRef(){return xt.timeline},set timelineRef(Po){xt.timeline=Po}})};V(Us,ft=>{e.showControls&&ft(ma)})}var us=P(Us,2),Sn=T(us),cl=T(Sn);bi(cl,17,()=>n(sn),ft=>ft.id,(ft,ot)=>{fp(ft,{get buttonComponent(){return n(ot).buttonComponent},get buttonComponentProps(){return n(ot).buttonComponentProps},get tooltipText(){return n(ot).tooltipText},get disabledTooltipContent(){return n(ot).disabledTooltipContent},get disabled(){return n(ot).disabled},get className(){return n(ot).className},get tooltipEnabled(){return n(ot).tooltipEnabled},get mouseEnter(){return n(ot).mouseEnter},get mouseLeave(){return n(ot).mouseLeave},get tooltipVisible(){return e.showControls},get ref(){return xt[n(ot).id]},set ref(Zi){xt[n(ot).id]=Zi}})});var va=P(cl,2);{var zr=ft=>{let ot=v(()=>!e.showControls),Zi=v(()=>Et()?Te():Be()),Po=v(()=>Et()?It():$t());dc(ft,{get isHidden(){return n(ot)},isMobile:!1,get showDuration(){return n(Fo)},get position(){return n(Zi)},get duration(){return n(Po)},get ref(){return xt.time},set ref(Ji){xt.time=Ji}})};V(va,ft=>{n(Oo)&&ft(zr)})}var ul=P(va,2);let fd=v(()=>!n(bn));Vo(ul,{className:"w-max",get disabled(){return n(fd)},get tooltipContent(){return Kn},get tooltipVisible(){return e.showControls},get ref(){return xt.episodes},set ref(ft){xt.episodes=ft},children:(ft,ot)=>{var Zi=Ae(),Po=ue(Zi);{var Ji=gi=>{gc(gi,{get position(){return Be()},get duration(){return $t()},get timeCodes(){return gt}})};V(Po,gi=>{n(bn)&&gi(Ji)})}b(ft,Zi)},$$slots:{default:!0}}),S(Sn);var ga=P(Sn,2);bi(ga,21,()=>n(lt),ft=>ft.id,(ft,ot)=>{var Zi=Ae(),Po=ue(Zi);{var Ji=zi=>{fp(zi,{get buttonComponent(){return n(ot).buttonComponent},get buttonComponentProps(){return n(ot).buttonComponentProps},get tooltipText(){return n(ot).tooltipText},get disabledTooltipContent(){return n(ot).disabledTooltipContent},get disabled(){return n(ot).disabled},get className(){return n(ot).className},get tooltipVisible(){return e.showControls},get ref(){return xt[n(ot).id]},set ref(zs){xt[n(ot).id]=zs}})},gi=zi=>{let zs=v(()=>!!n(ot).disabled);jm(zi,{get id(){return n(ot).id},get testId(){return n(ot).testId},get icon(){return n(ot).icon},get ariaLabel(){return n(ot).ariaLabel},get tooltipText(){return n(ot).tooltipText},get disabledTooltipContent(){return n(ot).disabledTooltipContent},get disabled(){return n(zs)},get onClick(){return n(ot).onClick},get disableMouseupTooltipShow(){return n(ot).disableMouseupTooltipShow},get tooltipVisible(){return e.showControls},get ref(){return xt[n(ot).id]},set ref(vd){xt[n(ot).id]=vd}})};V(Po,zi=>{Eb(n(ot))?zi(Ji):zi(gi,!1)})}b(ft,Zi)}),S(ga),S(us),Xe(us,ft=>ct(ft),()=>ct()),S(cs),Xe(cs,ft=>Ot(ft),()=>Ot());var md=P(cs,2);{var pl=ft=>{bc(ft,{get ref(){return xt.interactiveTimeIndicator},set ref(ot){xt.interactiveTimeIndicator=ot}})};V(md,ft=>{Vr&&ft(pl)})}D((ft,ot)=>{fa=re(cs,1,"wrapper-bottom s-11",null,fa,ft),We(us,ot),us.inert=ae()},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth||ke()}),()=>`transform: translateY(${n(wt)()}px);`]),An(Sn,"clientWidth",ft=>N(pt,ft)),b(t,Cs),F(),o()}var id=require("@vkontakte/videoplayer-core/es2018");var lv=require("@vkontakte/videoplayer-shared/es2018");var Z2=L('<div class="icon icon-error-stub s-20"><div class="inner s-20"></div></div>'),J2=L('<img class="icon s-20" aria-hidden="true"/>'),ew={hash:"s-20",code:".icon.s-20{height:24px!important;width:24px!important}.inner.s-20{background-color:var(--white);height:16px;width:16px}"};function dv(t,e){G(t,ew);let i=g(e,"disabled",3,!1),o=g(e,"onClick",3,lv.noop),r=v(()=>o()===lv.noop),s=v(()=>n(r)||i()),l=q(!1),d=()=>{N(l,!0)},a=v(()=>n(r)?"btn-full-opacity":"");Kt(t,{get className(){return n(a)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return n(s)},get testId(){return e.testId},children:(u,f)=>{var p=Ae(),m=ue(p);{var $=_=>{var x=Z2();b(_,x)},y=_=>{var x=J2();D(()=>Me(x,"src",e.iconUrl)),dt("error",x,d),Pa(x),b(_,x)};V(m,_=>{n(l)?_($):_(y,!1)})}b(u,p)},$$slots:{default:!0}})}var tw=Ie('<path d="M8.7 8.1 5.3 4.72A1 1 0 0 1 6.72 3.3L20.7 17.29a1 1 0 0 1-1.41 1.41L16 15.41V20a1 1 0 0 1-1 1c-.64 0-1.26-.25-1.72-.7L7.79 15H5a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h2.77zm2.88-2.76 1.7-1.65A2.5 2.5 0 0 1 15 3a1 1 0 0 1 1 1v5.76z"></path>');function cv(t){Ze(t,{testId:"muted-icon",children:(e,i)=>{var o=tw();b(e,o)},$$slots:{default:!0}})}var Rb=require("@vkontakte/videoplayer-shared/es2018");function gp(t,e){B(e,!0);let i=g(e,"muted",3,!1),o=g(e,"click",3,Rb.noop),r=g(e,"ref",15,void 0),l=he().ui.t,d=v(()=>i()?l("tooltip_volume"):l("tooltip_volume_muted")),a=v(()=>i()?"btn-mobile-muted":"btn-mobile-unmuted");Kt(t,{get testId(){return n(a)},get click(){return o()},get ariaLabel(){return n(d)},role:"button",get ref(){return r()},set ref(u){r(u)},children:(u,f)=>{var p=Ae(),m=ue(p);{var $=_=>{cv(_,{})},y=_=>{da(_,{get size(){return"24"}})};V(m,_=>{i()?_($):_(y,!1)})}b(u,p)},$$slots:{default:!0}}),F()}var iw=Ie('<path d="M11.64 12.37 9.07 9.8h1.03a.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.02l2.53 2.52.13.14a.9.9 0 0 0 1.28-1.28z"></path>'),ow=Ie('<path d="m6.36 9.63 2.57 2.57H7.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.02L7.67 8.4l-.13-.14a.9.9 0 0 0-1.28 1.28z"></path>'),nw=Ie('<path d="M7.66 4h6.68q1.2-.01 2 .04.83.06 1.53.38a4 4 0 0 1 1.7 1.7c.24.48.34.98.39 1.54q.05.8.04 2v1.44a.9.9 0 0 1-1.8 0V9.7c0-.85 0-1.44-.04-1.9-.03-.44-.1-.68-.19-.85a2 2 0 0 0-.92-.92 2 2 0 0 0-.85-.2c-.46-.03-1.04-.03-1.9-.03H7.7c-.85 0-1.44 0-1.9.04-.44.03-.68.1-.85.19a2 2 0 0 0-.92.92c-.09.17-.16.4-.2.85-.03.46-.03 1.05-.03 1.9v2.65c0 .85 0 1.44.04 1.9.03.44.1.68.19.85a2 2 0 0 0 .92.92c.17.08.4.15.85.19.46.03 1.04.04 1.9.04h2.4a.9.9 0 0 1 0 1.8H7.66q-1.2.01-2-.05a4 4 0 0 1-1.53-.38 4 4 0 0 1-1.7-1.7 4 4 0 0 1-.39-1.53q-.05-.8-.04-2V9.65q-.01-1.2.04-2c.05-.56.15-1.06.39-1.53a4 4 0 0 1 1.7-1.7c.47-.24.97-.34 1.53-.39q.8-.05 2-.04M13 16.8c0-.98 0-1.47.19-1.84a2 2 0 0 1 .77-.77c.37-.19.86-.19 1.84-.19h3.4c.98 0 1.47 0 1.85.19q.5.27.76.77c.19.37.19.86.19 1.84v.4c0 .98 0 1.47-.19 1.85a2 2 0 0 1-.77.76c-.37.19-.86.19-1.84.19h-3.4c-.98 0-1.47 0-1.85-.19a2 2 0 0 1-.76-.76c-.19-.38-.19-.87-.19-1.85z"></path><!>',1);function uv(t,e){let i=g(e,"isActive",3,!1),o=v(()=>i()?"pip-icon--active":"pip-icon");Ze(t,{get testId(){return n(o)},children:(r,s)=>{var l=nw(),d=P(ue(l));{var a=f=>{var p=iw();b(f,p)},u=f=>{var p=ow();b(f,p)};V(d,f=>{i()?f(a):f(u,!1)})}b(r,l)},$$slots:{default:!0}})}var Nb=require("@vkontakte/videoplayer-shared/es2018");function pv(t,e){B(e,!0);let i=g(e,"ref",15,void 0),o=g(e,"isPictureInPictureActive",3,!1),r=g(e,"click",3,Nb.noop),s=j("menu_pip");Kt(t,{testId:"btn-pip",get ariaLabel(){return s},get click(){return r()},get ref(){return i()},set ref(l){i(l)},children:(l,d)=>{uv(l,{get isActive(){return o()}})},$$slots:{default:!0}}),F()}var fv=require("@vkontakte/videoplayer-shared/es2018");var rw=(t,e,i,o)=>{n(e)&&i.onDisabledPlayPrevChapterClick(n(o))},sw=(t,e,i,o)=>{n(e)&&i.onDisabledSeekToInteractiveClick(n(o))},aw=L("<div><!></div>"),lw=L("<div><!></div>"),dw=L("<div><!></div>"),cw=L("<!> <!> <!>",1),uw=L("<div></div> <div></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),pw=L('<div class="wrapper-middle s-10"><!></div>'),fw=L("<div><!></div> <!> <div><!></div>",1),mw=L('<div aria-hidden="true">·</div> <!>',1),vw=L('<!> <!> <div><div><div class="controls mobile s-10" data-testid="bottom-controls"><div class="controls-group contain s-10"><!> <!> <!> <!></div> <div class="controls-group s-10"><!> <!> <!></div></div> <!></div></div> <!>',1),gw={hash:"s-10",code:".wrapper-bottom.s-10{background:var(--controls-gradient);bottom:0;box-sizing:border-box;display:flex;flex-direction:column;height:var(--controls-gradient-height);justify-content:flex-end;left:0;padding:0 4px 8px;pointer-events:none;position:absolute;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);width:100%;z-index:var(--controls-container-z-index)}.wrapper-bottom.s-10>:where(.s-10){pointer-events:auto}.wrapper-bottom.ads-timeline-mobile.s-10{height:9px;padding:0 4px 4px}.wrapper-middle.s-10{align-items:center;left:50%;top:50%;transform:translate(-50%,-50%)}.wrapper-middle.s-10,.wrapper-top-right.s-10{display:flex;position:absolute;transition:opacity var(--controls-transition-duration);z-index:var(--controls-container-z-index)}.wrapper-top-right.s-10{right:8px;top:4px}.wrapper-top-left.s-10{left:8px;position:absolute;top:4px;z-index:var(--controls-container-z-index)}.wrapper-middle-left.s-10,.wrapper-middle-left-second.s-10,.wrapper-middle-right.s-10{align-items:center;background-color:rgba(0,0,0,.56);border-radius:12px;display:flex;height:44px;justify-content:center;position:absolute;top:50%;transform:translateY(-50%);transition:opacity var(--controls-transition-duration);width:44px}.wrapper-middle-left.s-10{left:12px}.wrapper-middle-left-second.s-10{left:64px}.wrapper-middle-right.s-10{right:12px}.controls.s-10{align-items:center;box-sizing:border-box;font-size:13px;height:var(--controls-height);justify-content:space-between;padding:0 4px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);white-space:nowrap;width:100%;will-change:transform}.controls.s-10,.controls-group.s-10{display:flex}.controls-group.contain.s-10{min-width:0}.controls-group.s-10 >:not(:first-child){margin-left:8px}.hidden.s-10{opacity:0;visibility:hidden}.controls-hidden.s-10{transform:translateY(100%);visibility:visible}.wrapper-bottom.no-smooth.s-10{transition:none}.overlay-mobile.s-10{background-color:rgba(0,0,0,.3);height:100%;left:0;pointer-events:none;position:absolute;top:0;transition:opacity var(--controls-transition-duration);width:100%}@media screen and (orientation:portrait){.wrapper-top-left.fullscreen.s-10,.wrapper-top-right.fullscreen.s-10{top:16px}.controls-wrapper.fullscreen.s-10{bottom:30px;position:absolute;width:calc(100% - 8px)}}@media screen and (orientation:landscape){.wrapper-top-left.fullscreen.s-10{left:44px;top:12px}.wrapper-top-right.fullscreen.s-10{right:44px;top:12px}.wrapper-middle-left.fullscreen.s-10{left:44px}.wrapper-middle-left-second.fullscreen.s-10{left:96px}.wrapper-middle-right.fullscreen.s-10{right:44px}.controls-wrapper.fullscreen.s-10{bottom:32px;left:36px;position:absolute;right:36px;width:calc(100% - 72px)}}"};function mv(t,e){var Xi,sr;B(e,!0),G(t,gw);let[i,o]=Ne(),r=()=>w(Bi,"$seekToInteractiveDisabledTooltip$",i),s=()=>w(ti,"$disabledControls$",i),l=()=>w(kt,"$playbackState$",i),d=()=>w(Xo,"$adPlaybackState",i),a=()=>w(Y,"$isEnded$",i),u=()=>w(yt,"$playerSize",i),f=()=>w(St,"$scrubbingInProgress",i),p=()=>w(Oi,"$chromecastState$",i),m=()=>w(Ue,"$isPictureInPictureActive",i),$=()=>w(ze,"$pictureInPictureType$",i),y=()=>w(fe,"$mobileNotReportControlHidden$",i),_=()=>w(hi,"$chromecastHidden",i),x=()=>w(ct,"$playerPhase",i),I=()=>w(At,"$pipHidden",i),C=()=>w(qe,"$currentGridType$",i),R=()=>w(li,"$vkLogoHidden",i),A=()=>w(ci,"$volumeHidden",i),E=()=>w(Ee,"$isLive$",i),k=()=>w(at,"$settingsMenuVisible",i),Q=()=>w(nt,"$isRewindableLive$",i),H=()=>w(Le,"$isActiveLive$",i),z=()=>w(Dt,"$isAudioAvailable$",i),X=()=>w($e,"$muted$",i),se=()=>w(le,"$volume$",i),Z=()=>w(ut,"$isInteractiveTime$",i),oe=()=>w(_n,"$settingButtonRef$",i),J=()=>w(gt,"$startedByKeyboard$",i),Ce=()=>w(Zo,"$isFullscreen",i),me=()=>w(Ut,"$additionalButtons$",i),ee=()=>w(Di,"$autoplayNextToggleHidden",i),_e=()=>w(Si,"$crashed$",i),we=()=>w(ui,"$settingsHidden",i),ge=()=>w(Jo,"$graphIsOpened$",i),pe=()=>w(_o,"$adPosition",i),Qe=()=>w(_i,"$adDuration",i),U=()=>w(ei,"$position$",i),O=()=>w(Et,"$duration$",i),Ge=g(e,"playerControlsWrapperRef",15,void 0),K=g(e,"playerControlsRef",15,void 0),ae=g(e,"isAds",3,!1),xe=g(e,"logoTargetUrl",3,""),Oe=g(e,"isOneVideoPlaylist",3,!1),it=g(e,"customFullscreenSupported",3,!0),ne=he(),ce=Co(),Re=Rt(),Ve=ne.actions.internal.toggleMuted,et=ne.actions.internal.togglePlay,ke=ne.actions.internal.pause,Te=ne.actions.internal.prevVideoClick,Be=ne.actions.internal.nextVideoClick,It=ne.actions.internal.checkFullscreenSupport,$t=(Xi=ne.callbacks)==null?void 0:Xi.onAudioDoesNotExistHint,Ot=(sr=ne.callbacks)==null?void 0:sr.onAudioDisabledHint,ct=ne.playerPhase,Et=ne.state.duration$,ei=ne.state.positionWithScrubbing$,kt=ne.state.playbackState$,Dt=ne.state.isAudioAvailable$,Ht=ne.state.isAudioDisabled,Y=ne.state.isEnded$,Ee=ne.state.isLive$,le=ne.state.volume$,$e=ne.state.muted$,Le=ne.state.isActiveLive$,nt=ne.state.isRewindableLive$,St=ne.ui.scrubbingInProgress,fe=ne.ui.mobileNotReportControlHidden$,{isActive$:Ue,type$:ze}=ce.pictureInPicture$,at=ne.ui.settingsMenu.visible$,jt=ne.ui.settingsMenu.openedByBtnKeyboard$,Ft=ne.ui.controls,{volume:ci,vkLogo:li,autoplayNextToggle:Di,pip:At,settings:ui,chromecast:hi}=ne.ui.hiddenControls,mt=ne.actions.internal.getVideoEpisodes(),Xt=ne.webApi.pictureInPictureApi,Oi=ne.state.chromecastState$,Si=ne.state.crashed$,ti=Ft.disabledControls$,gt=ne.ui.startedByKeyboard$,qe=ne.ui.currentGridType$,_i=ne.ads.duration,_o=ne.ads.position,Xo=ne.ads.playbackState,Zo=ne.ui.isFullscreen,yt=ne.ui.playerSize,Ut=ne.ui.additionalButtonsDeprecated$,W=ne.actions.internal.getVideoElement,Lt=ne.actions.internal.replayInteractive,ni=ne.state.isInteractive,ut=ne.state.isInteractiveTime$,Ct=ne.state.showInteractiveGraph,Zt=ne.state.showSeekToInteractive,rt=ne.state.showPlayPrevChapter,ki=ne.state.showInteractiveTimeIndicator,Bi=ce.seekToInteractiveDisabledTooltip$,Jo=ce.graphIsOpened$,No=ne.ui.controlBlocks,bo=v(()=>j(ne.state.playPrevChapterDisabledTooltip)),Fi=v(()=>j(r())),Nn=v(()=>s().has("EPISODE_BUTTON")),$o=v(()=>s().has("GRAPH_BUTTON")),yo=v(()=>s().has("SEEK_TO_INTERACTIVE_BUTTON")),Pi=v(()=>s().has("PLAY_BUTTON")),en=v(()=>s().has("REPLAY_BUTTON")),Do=v(()=>s().has("PLAY_PREV_CHAPTER_BUTTON")),pn=v(()=>l()===id.PlaybackState.PLAYING),hr=v(()=>d()==="paused"),Vr=v(()=>a()&&!ae()&&!ni),is=v(()=>!a()||ae()),xs=v(()=>e.showNextPrevButtons&&!ae()&&e.prevButtonActive),Rr=v(()=>e.showNextPrevButtons&&!ae()&&e.nextButtonActive),er=v(()=>u().width>300),Nr=v(()=>u().width>400),fn=v(f),mn=v(()=>p()!==id.ChromecastState.NOT_AVAILABLE&&!(m()&&$()===1)&&!y()&&!ni&&!_()),_r=v(()=>x()==="LiveWaitingStart"),br=v(()=>!!Xt&&p()!==id.ChromecastState.CONNECTED&&!y()&&($()===1&&n(_r)||!n(_r))&&!n(fn)&&!ni&&!I()),tn=q(!1);Vt(()=>{let Fe=Xt==null?void 0:Xt.info.isActive$.subscribe(Mt=>N(tn,Mt,!0));return()=>Fe==null?void 0:Fe.unsubscribe()});let tr=v(()=>!n(fn)&&io(C(),"s")),$r=v(()=>!e.logoHidden&&u().width>350&&!R()),yr=v(()=>Re.features.fullscreen&&It()&&!(m()&&$()===1)&&(ni?it():!0)&&!n(fn)&&!n(tn)),Hi=v(()=>!A()&&!n(fn)),Dr=v(()=>(!E()||ae())&&u().width>260&&!n(fn)&&!(Re.features.interactiveHideTime&&ni)),ir=v(()=>k()||e.showControls),Dn=v(()=>!ae()&&!E()&&!!(mt!=null&&mt.length)&&n(er)&&!n(Nn)&&!n(fn)),ro=v(()=>!Q()||!!H()),Or=v(()=>Ct&&io(C(),"m")),On=v(()=>!z()||X()||se()===0),ht=si({}),ri=si({}),xr=(0,fv.debounceFn)(Jl,260),wr=(0,fv.debounceFn)(mp,260);De(()=>{u(),Z(),xr(W(),Ft,ht,e.showControls),wr(W(),No,ri,e.showControls)});let Br=()=>ne.actions.internal.toggleChromecast();async function vn(){Xt!=null&&Xt.isActive()?await(Xt==null?void 0:Xt.exit()):await(Xt==null?void 0:Xt.request())}function gn(){sa({isAudioDisabled:Ht,audioDisabledHintCallback:Ot,isAudioAvailable:z(),audioIsNotExistHintCallback:$t,isAds:ae()})&&Ve()}let Oo=q(""),hn=(Fe,Mt)=>{if(!Fe){N(Oo,j("tooltip_live"),!0);return}Mt&&Mt===id.PlaybackState.PAUSED&&N(Oo,j("tooltip_play"),!0)};De(()=>{hn(n(ro),l())});let _n=de();De(()=>{oe()&&Wl(oe(),k(),jt)}),De(()=>{pp(gt,J(),ht.playButton)});var or=vw(),bn=ue(or);{var Bo=Fe=>{var Mt=uw(),$i=ue(Mt);let Fo;var uo=P($i,2);let Io;Xe(uo,lt=>ri.topLeft=lt,()=>ri==null?void 0:ri.topLeft);var po=P(uo,2);let Ho;var zn=T(po);bi(zn,1,me,({iconUrl:lt,ariaLabel:di,testId:Uo,onClick:ko,tooltip:qn})=>lt,(lt,di)=>{let Uo=()=>n(di).iconUrl,ko=()=>n(di).ariaLabel,qn=()=>n(di).testId,wn=()=>n(di).onClick,ye=()=>n(di).tooltip,wt=v(()=>{var Bt;return(Bt=ko())!=null?Bt:ye()});dv(lt,{get iconUrl(){return Uo()},get ariaLabel(){return n(wt)},get testId(){return qn()},get onClick(){return wn()}})});var rn=P(zn,2);{var xo=lt=>{xc(lt,{get ref(){return ht.autoplayNextToggle},set ref(di){ht.autoplayNextToggle=di}})};V(rn,lt=>{e.showAutoplayNext&&!Oe()&&!ee()&&lt(xo)})}var wo=P(rn,2);{var Wn=lt=>{vc(lt,{isMobile:!0,click:Br,get state(){return p()},get ref(){return ht.chromecast},set ref(di){ht.chromecast=di}})};V(wo,lt=>{n(mn)&&lt(Wn)})}var Kn=P(wo,2);{var yn=lt=>{pv(lt,{click:vn,get isPictureInPictureActive(){return m()},get ref(){return ht.pip},set ref(di){ht.pip=di}})};V(Kn,lt=>{n(br)&&lt(yn)})}var Cr=P(Kn,2);{var ss=lt=>{Yl(lt,{get ref$(){return _n}})};V(Cr,lt=>{_e()&&!we()&&lt(ss)})}var ar=P(Cr,2);{var Je=lt=>{fc(lt,{get click(){return ke},get targetUrl(){return xe()},get logoClickable(){return e.logoClickable},get ref(){return ht.vkLogo},set ref(di){ht.vkLogo=di}})};V(ar,lt=>{n($r)&&lt(Je)})}S(po),Xe(po,lt=>ri.topRight=lt,()=>ri==null?void 0:ri.topRight);var Jt=P(po,2);let yi;var fo=T(Jt);{var sn=lt=>{let di=v(()=>Te.bind(null,!0));Ya(lt,{get click(){return n(di)},type:"prev",isMobile:!0,get ref(){return ht.prevButton},set ref(Uo){ht.prevButton=Uo}})};V(fo,lt=>{n(xs)&&lt(sn)})}var Ur=P(fo,2);{var Eo=lt=>{td(lt,{get disabled(){return n(Pi)},get click(){return et},isMobile:!0,get isPlaying(){return n(pn)},get ref(){return ht.playButton},set ref(di){ht.playButton=di}})};V(Ur,lt=>{n(is)&&lt(Eo)})}var lr=P(Ur,2);{var as=lt=>{ed(lt,{get disabled(){return n(en)},get click(){return et},isMobile:!0,get ref(){return ht.replayButton},set ref(di){ht.replayButton=di}})};V(lr,lt=>{n(Vr)&&lt(as)})}var Tr=P(lr,2);{var pa=lt=>{let di=v(()=>Be.bind(null,!0));Ya(lt,{get click(){return n(di)},type:"next",isMobile:!0,get ref(){return ht.nextButton},set ref(Uo){ht.nextButton=Uo}})};V(Tr,lt=>{n(Rr)&&lt(pa)})}S(Jt),Xe(Jt,lt=>ri.middle=lt,()=>ri==null?void 0:ri.middle);var Ss=P(Jt,2);{var xn=lt=>{var di=cw(),Uo=ue(di);{var ko=Bt=>{var qt=aw();let Ti;qt.__click=[rw,Do,e,bo];var Ii=T(qt);let Ei=v(()=>!e.showControls);yc(Ii,{get hidden(){return n(Ei)},get disabled(){return n(Do)},get click(){return e.playPrevChapter},get ref(){return ht.playPrevChapterButton},set ref(xi){ht.playPrevChapterButton=xi}}),S(qt),D(xi=>Ti=re(qt,1,"wrapper-middle-left s-10",null,Ti,xi),[()=>({fullscreen:Ce(),hidden:!e.showControls})]),b(Bt,qt)};V(Uo,Bt=>{rt&&Bt(ko)})}var qn=P(Uo,2);{var wn=Bt=>{var qt=lw();let Ti;var Ii=T(qt);let Ei=v(()=>!e.showControls&&!ge());Sc(Ii,{get hidden(){return n(Ei)},get disabled(){return n($o)},get click(){return Jo.toggle},get graphIsOpened(){return ge()},get ref(){return ht.interactiveGraphButton},set ref(xi){ht.interactiveGraphButton=xi}}),S(qt),D(xi=>Ti=re(qt,1,Fd(rt?"wrapper-middle-left-second":"wrapper-middle-left"),"s-10",Ti,xi),[()=>({fullscreen:Ce(),hidden:!e.showControls&&!ge()})]),b(Bt,qt)};V(qn,Bt=>{n(Or)&&Bt(wn)})}var ye=P(qn,2);{var wt=Bt=>{var qt=dw();let Ti;qt.__click=[sw,yo,e,Fi];var Ii=T(qt);let Ei=v(()=>!e.showControls);wc(Ii,{get hidden(){return n(Ei)},get disabled(){return n(yo)},get click(){return e.seekToInteractive},get ref(){return ht.seekToInteractiveButton},set ref(xi){ht.seekToInteractiveButton=xi}}),S(qt),D(xi=>Ti=re(qt,1,"wrapper-middle-right s-10",null,Ti,xi),[()=>({fullscreen:Ce(),hidden:!e.showControls})]),b(Bt,qt)};V(ye,Bt=>{Zt&&Bt(wt)})}b(lt,di)};V(Ss,lt=>{ni&&!f()&&lt(xn)})}D((lt,di,Uo,ko)=>{Fo=re($i,1,"overlay-mobile s-10",null,Fo,lt),Io=re(uo,1,"wrapper-top-left s-10",null,Io,di),Ho=re(po,1,"wrapper-top-right s-10",null,Ho,Uo),yi=re(Jt,1,"wrapper-middle s-10",null,yi,ko)},[()=>({hidden:!n(ir)}),()=>({hidden:!e.showControls,fullscreen:Ce()}),()=>({hidden:!e.showControls&&!y(),fullscreen:Ce()}),()=>({hidden:!e.showControls||f()||e.endScreenShown&&e.showNextPrevButtons})]),b(Fe,Mt)};V(bn,Fe=>{ae()||Fe(Bo)})}var Bn=P(bn,2);{var Fn=Fe=>{var Mt=fw(),$i=ue(Mt);let Fo;var uo=T($i);gp(uo,{get muted(){return X()},click:gn,get ref(){return ht.volume},set ref(xo){ht.volume=xo}}),S($i);var Io=P($i,2);{var po=xo=>{var wo=pw(),Wn=T(wo);let Kn=v(()=>!n(hr));td(Wn,{get disabled(){return n(Pi)},get click(){return et},isMobile:!0,get isPlaying(){return n(Kn)},get ref(){return ht.playButton},set ref(yn){ht.playButton=yn}}),S(wo),b(xo,wo)};V(Io,xo=>{n(hr)&&xo(po)})}var Ho=P(Io,2);let zn;var rn=T(Ho);Tc(rn,{get position(){return pe()},get duration(){return Qe()}}),S(Ho),D((xo,wo)=>{Fo=re($i,1,"wrapper-top-right s-10",null,Fo,xo),zn=re(Ho,1,"wrapper-bottom ads-timeline-mobile s-10",null,zn,wo)},[()=>({fullscreen:Ce()}),()=>({fullscreen:Ce()})]),b(Fe,Mt)};V(Bn,Fe=>{ae()&&d()!=="inactive"&&Fe(Fn)})}var Yi=P(Bn,2);let so;var $n=T(Yi);let Hn;var Sr=T($n),nr=T(Sr),rr=T(nr);{var pt=Fe=>{Vo(Fe,{get disabled(){return n(en)},get ref(){return ht.replayButton},set ref(Mt){ht.replayButton=Mt},children:(Mt,$i)=>{ed(Mt,{get disabled(){return n(en)},get click(){return Lt}})},$$slots:{default:!0}})};V(rr,Fe=>{ni&&Fe(pt)})}var xt=P(rr,2);{var ao=Fe=>{Vo(Fe,{get ref(){return ht.liveButton},set ref(Mt){ht.liveButton=Mt},children:(Mt,$i)=>{Cc(Mt,{get isLiveActive(){return n(ro)},isMobile:!0,get ariaLabel(){return n(Oo)}})},$$slots:{default:!0}})};V(xt,Fe=>{!ae()&&E()&&Fe(ao)})}var lo=P(xt,2);{var on=Fe=>{let Mt=v(()=>ae()?pe():U()),$i=v(()=>ae()?Qe():O()),Fo=v(()=>!e.showControls);dc(Fe,{get showDuration(){return n(Nr)},get position(){return n(Mt)},get duration(){return n($i)},isMobile:!0,get isHidden(){return n(Fo)},get ref(){return ht.time},set ref(uo){ht.time=uo}})};V(lo,Fe=>{n(Dr)&&Fe(on)})}var ji=P(lo,2);let Ui=v(()=>!n(Dn));Vo(ji,{className:"w-max",get disabled(){return n(Ui)},get ref(){return ht.episodes},set ref(Fe){ht.episodes=Fe},children:(Fe,Mt)=>{var $i=Ae(),Fo=ue($i);{var uo=Io=>{var po=mw(),Ho=P(ue(po),2);gc(Ho,{get position(){return U()},get duration(){return O()},get timeCodes(){return mt}}),b(Io,po)};V(Fo,Io=>{n(Dn)&&Io(uo)})}b(Fe,$i)},$$slots:{default:!0}}),S(nr),Xe(nr,Fe=>ri.bottomLeft=Fe,()=>ri==null?void 0:ri.bottomLeft);var co=P(nr,2),Un=T(co);{var Fr=Fe=>{Vo(Fe,{get ref(){return ht.volume},set ref(Mt){ht.volume=Mt},children:(Mt,$i)=>{gp(Mt,{get muted(){return n(On)},click:gn})},$$slots:{default:!0}})};V(Un,Fe=>{n(Hi)&&Fe(Fr)})}var Li=P(Un,2);{var ws=Fe=>{Vo(Fe,{get ref(){return ht.settings},set ref(Mt){ht.settings=Mt},children:(Mt,$i)=>{Yl(Mt,{get ref$(){return _n}})},$$slots:{default:!0}})};V(Li,Fe=>{n(tr)&&Fe(ws)})}var os=P(Li,2);{var ns=Fe=>{Vo(Fe,{get ref(){return ht.fullscreen},set ref(Mt){ht.fullscreen=Mt},children:(Mt,$i)=>{pc(Mt,{get click(){return e.toggleFullscreen},get isFullscreen(){return Ce()}})},$$slots:{default:!0}})};V(os,Fe=>{n(yr)&&Fe(ns)})}S(co),Xe(co,Fe=>ri.bottomRight=Fe,()=>ri==null?void 0:ri.bottomRight),S(Sr),Xe(Sr,Fe=>K(Fe),()=>K());var rs=P(Sr,2);let Hr=v(()=>!e.showControls);Xa(rs,{get isHidden(){return n(Hr)},get isAds(){return ae()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return Q()},get ref(){return ht.timeline},set ref(Fe){ht.timeline=Fe}}),S($n),Xe($n,Fe=>ri.bottom=Fe,()=>ri==null?void 0:ri.bottom),S(Yi),Xe(Yi,Fe=>Ge(Fe),()=>Ge());var To=P(Yi,2);{var nn=Fe=>{bc(Fe,{get ref(){return ht.interactiveTimeIndicator},set ref(Mt){ht.interactiveTimeIndicator=Mt}})};V(To,Fe=>{ki&&Fe(nn)})}D((Fe,Mt)=>{so=re(Yi,1,"wrapper-bottom mobile s-10",null,so,Fe),Hn=re($n,1,"controls-wrapper s-10",null,Hn,Mt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth}),()=>({fullscreen:Ce()})]),b(t,or),F(),o()}Ye(["click"]);function Ic(t,e){B(e,!0);let[i,o]=Ne(),r=()=>w(I,"$isMobile",i),s=g(e,"bottomNoSmooth",3,!1),l=g(e,"playerControlsWrapperRef",15,void 0),d=g(e,"playerControlsRef",15,void 0),a=g(e,"isAds",3,!1),u=g(e,"logoTargetUrl",3,""),f=g(e,"showAutoplayNext",3,!1),p=g(e,"isOneVideoPlaylist",3,!1),m=g(e,"customFullscreenSupported",3,!0),$=g(e,"endScreenShown",3,!1),y=g(e,"onDisabledPlayPrevChapterClick",3,vv.noop),_=g(e,"onDisabledSeekToInteractiveClick",3,vv.noop),I=he().ui.isMobile,C=q(!1);Vt(()=>{let k=setTimeout(()=>N(C,!0),0);return()=>clearTimeout(k)});var R=Ae(),A=ue(R);{var E=k=>{var Q=Ae(),H=ue(Q);{var z=se=>{mv(se,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return s()},get showControls(){return e.showControls},get isAds(){return a()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},get showAutoplayNext(){return f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get isOneVideoPlaylist(){return p()},get customFullscreenSupported(){return m()},get endScreenShown(){return $()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return y()},get onDisabledSeekToInteractiveClick(){return _()},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(Z){l(Z)},get playerControlsRef(){return d()},set playerControlsRef(Z){d(Z)}})},X=se=>{av(se,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return s()},get showControls(){return e.showControls},get isAds(){return a()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},get isOneVideoPlaylist(){return p()},get showAutoplayNext(){return f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get customFullscreenSupported(){return m()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(Z){l(Z)},get playerControlsRef(){return d()},set playerControlsRef(Z){d(Z)}})};V(H,se=>{r()?se(z):se(X,!1)})}b(k,Q)};V(A,k=>{n(C)&&k(E)})}b(t,R),F(),o()}var hw=Ie('<path d="M23.75 31.2v-5.45l-11.84 6.7a1.45 1.45 180 01-2.16-1.25v-14.4a1.45 1.45 180 012.16-1.26l11.84 6.7v-5.44a1.45 1.45 180 012.16-1.26l12.7 7.19a1.45 1.45 180 010 2.52l-12.7 7.2a1.45 1.45 180 01-2.16-1.27Z"></path>');function Ec(t,e){B(e,!0);let i=v(()=>e.reversed?"transform:scaleX(-1);transform-origin:50% 0;":""),o=v(()=>`${cn(e.size)}${n(i)}`);Ze(t,{get width(){return"48"},get height(){return"48"},get fill(){return e.fill},get style(){return n(o)},get testId(){return e.testId},get shadow(){return e.shadow},children:(r,s)=>{var l=hw();b(r,l)},$$slots:{default:!0}}),F()}var _w=Ie('<path d="M32.46 9.53a1.16 1.16 90 010 1.96l-7.66 4.83c-.78.49-1.8-.07-1.8-.98v-3.3a14 14 90 1014.1 18.93 1.5 1.5 90 012.8 1.06 17 17 90 11-16.9-23V5.66c0-.91 1.03-1.47 1.8-.98z"></path>');function gv(t,e){B(e,!0);let i=g(e,"reversed",3,!1),o=v(()=>i()?"transform:scaleX(-1);transform-origin: 50% 0;":void 0),r=v(()=>`seek-icon-${i()?"backward":"forward"}`);Ze(t,{get width(){return"48"},get height(){return"48"},get style(){return n(o)},get testId(){return n(r)},get shadow(){return e.shadow},children:(s,l)=>{var d=_w();b(s,d)},$$slots:{default:!0}}),F()}var bw=L('<span class="hot-key-helpers-text s-1b"> </span>'),$w=L('<div data-testid="hotkey-helper-icon" class="s-1b"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),yw=L("<div><!></div>"),xw={hash:"s-1b",code:'.hot-key-helpers-container.s-1b{align-items:center;animation:s-1b-fadeIn ease var(--controls-transition-duration);box-sizing:border-box;display:flex;flex-direction:column;height:120px;left:calc(50% - 100px);padding-top:14px;position:absolute;top:calc(50% - 40px);width:200px;z-index:var(--hot-key-helpers-container-z-index)}.hot-key-helpers-container--left.s-1b{left:calc(25% - 100px)}.hot-key-helpers-container--right.s-1b{left:calc(75% - 100px)}.hot-key-helpers-text.s-1b{display:-webkit-box;font-feature-settings:"clig" off,"liga" off;font-size:15px;font-style:normal;font-weight:600;letter-spacing:-.105px;-webkit-line-clamp:2;line-height:20px;margin-top:4px;max-height:40px;overflow:hidden;text-align:center;text-overflow:ellipsis;text-shadow:0 0 5px rgba(0,0,0,.16);white-space:pre-wrap;width:100%;-webkit-box-orient:vertical}.hidden.s-1b{animation:s-1b-fadeOut ease var(--controls-transition-duration);height:0;visibility:hidden;width:0}@keyframes s-1b-fadeIn{0%{opacity:0}to{opacity:1}}@keyframes s-1b-fadeOut{0%{opacity:1}to{opacity:0}}'};function hv(t,e){B(e,!0),G(t,xw);let[i,o]=Ne(),r=()=>w(e.data,"$data",i),s=he(),{features:l}=Rt(),d=s.ui.t,a=v(()=>!r()),u=v(()=>{var I;return((I=r())==null?void 0:I.type)==="BACKWARD_SEEK"}),f=v(()=>{var I;return((I=r())==null?void 0:I.type)==="FORWARD_SEEK"}),p=v(()=>{var I;return(I=r())==null?void 0:I.type}),m=v(()=>{var I,C;return(I=r())!=null&&I.t?d(r().t.key,{value:r().t.value||""}):(C=r())==null?void 0:C.text});var $=yw();let y;var _=T($);{var x=I=>{var C=$w(),R=ue(C),A=T(R);{var E=K=>{let ae=v(()=>n(p)==="BACKWARD_SEEK");gv(K,{get reversed(){return n(ae)},shadow:!0})};V(A,K=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(n(p))&&K(E)})}var k=P(A,2);{var Q=K=>{Bs(K,{get size(){return"48"},shadow:!0})};V(k,K=>{n(p)==="PAUSE"&&!l.playbackStatusShow&&K(Q)})}var H=P(k,2);{var z=K=>{Mn(K,{get size(){return"48"},shadow:!0})};V(H,K=>{n(p)==="PLAY"&&!l.playbackStatusShow&&K(z)})}var X=P(H,2);{var se=K=>{$c(K,{get size(){return"48"},shadow:!0})};V(X,K=>{n(p)==="REPLAY"&&!l.playbackStatusShow&&K(se)})}var Z=P(X,2);{var oe=K=>{la(K,{get size(){return"48"},type:"off",shadow:!0})};V(Z,K=>{n(p)==="SUBTITLES_OFF"&&K(oe)})}var J=P(Z,2);{var Ce=K=>{la(K,{get size(){return"48"},shadow:!0})};V(J,K=>{n(p)==="SUBTITLES_ON"&&K(Ce)})}var me=P(J,2);{var ee=K=>{let ae=v(()=>n(p)==="RATE_DOWN");Ec(K,{get size(){return"48"},get reversed(){return n(ae)},testId:"rate-change-icon",shadow:!0})};V(me,K=>{["RATE_DOWN","RATE_UP"].includes(n(p))&&K(ee)})}var _e=P(me,2);{var we=K=>{let ae=v(()=>n(p)==="EPISODE_PREV");ca(K,{get size(){return"48"},get reversed(){return n(ae)},shadow:!0})};V(_e,K=>{["EPISODE_PREV","EPISODE_NEXT"].includes(n(p))&&K(we)})}var ge=P(_e,2);{var pe=K=>{da(K,{get size(){return"48"},volume:0,shadow:!0})};V(ge,K=>{n(p)==="MUTE"&&K(pe)})}var Qe=P(ge,2);{var U=K=>{da(K,{get size(){return"48"},volume:1,shadow:!0})};V(Qe,K=>{n(p)==="VOLUME"&&K(U)})}S(R);var O=P(R,2);{var Ge=K=>{var ae=bw(),xe=T(ae,!0);S(ae),D(()=>ve(xe,n(m))),b(K,ae)};V(O,K=>{n(m)&&K(Ge)})}D(()=>Me(R,"data-type",n(p))),b(I,C)};V(_,I=>{!n(a)&&n(p)&&I(x)})}S($),D(I=>y=re($,1,"hot-key-helpers-container s-1b",null,y,I),[()=>({hidden:n(a),"hot-key-helpers-container--left":n(u),"hot-key-helpers-container--right":n(f)})]),b(t,$),F(),o()}var ww=(t,e,i,o,r,s)=>{if(e.has(t.code))switch(t.preventDefault(),t.stopPropagation(),t.code){case"ArrowUp":i();break;case"ArrowDown":o();break;case"ArrowLeft":r();break;case"ArrowRight":s();break}},Sw=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},Cw=L('<div tabindex="0" role="button"><div class="button-block s-m" aria-hidden="true"><div class="button-row s-m"><div class="button button-up s-m"><!></div> <div class="button button-right s-m"><!></div></div> <div class="button-row s-m"><div class="button button-left s-m"><!></div> <div class="button button-down s-m"><!></div></div></div></div>'),Tw={hash:"s-m",code:".immersive-controls.s-m{background-color:rgba(0,0,0,.56);border-radius:8px;display:flex;flex-direction:row;height:56px;left:10px;position:absolute;top:10px;transition-duration:var(--controls-transition-duration);transition-property:top,left;transition-timing-function:var(--controls-transition-fn);width:56px}.immersive-controls.m-shifted.s-m{left:20px;top:50px}.button-block.s-m{height:40px;margin:auto;transform:rotate(45deg);width:40px}.button-row.s-m{display:flex;flex-direction:row;position:relative}.button.s-m{cursor:pointer;height:20px;text-align:center;width:20px}.button.s-m svg{opacity:.7;transition:opacity .2s linear}.button.button-up.s-m svg{transform:rotate(-45deg) translate(-1px,-1px)}.button.button-right.s-m svg{transform:rotate(45deg) translate(1px,-1px)}.button.button-down.s-m svg{transform:rotate(135deg) translate(1px,-3px)}.button.button-left.s-m svg{transform:rotate(-135deg) translate(-1px,-3px)}.button.s-m:hover svg{opacity:1}"};function kc(t,e){B(e,!0),G(t,Tw);let i=g(e,"isShifted",3,!1),o=he(),r=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),s=()=>{o.actions.internal.startCameraManualRotation(0,1)},l=()=>{o.actions.internal.startCameraManualRotation(0,-1)},d=()=>{o.actions.internal.startCameraManualRotation(1,0)},a=()=>{o.actions.internal.startCameraManualRotation(-1,0)},u=()=>(o.actions.internal.stopCameraManualRotation(),null),f=j("aria_label_spherical_control");var p=Cw();let m;p.__keydown=[ww,r,s,l,a,d],p.__keyup=[Sw,r,u];var $=T(p),y=T($),_=T(y);_.__mousedown=s,_.__mouseup=u;var x=T(_);Lr(x,{direction:"up",useBtnColor:!0}),S(_);var I=P(_,2);I.__mousedown=d,I.__mouseup=u;var C=T(I);Lr(C,{direction:"up",useBtnColor:!0}),S(I),S(y);var R=P(y,2),A=T(R);A.__mousedown=a,A.__mouseup=u;var E=T(A);Lr(E,{direction:"up",useBtnColor:!0}),S(A);var k=P(A,2);k.__mousedown=l,k.__mouseup=u;var Q=T(k);Lr(Q,{direction:"up",useBtnColor:!0}),S(k),S(R),S($),S(p),D(H=>{m=re(p,1,"immersive-controls s-m",null,m,H),Me(p,"aria-label",f)},[()=>({"m-shifted":i()})]),dt("mouseleave",_,u),dt("mouseleave",I,u),dt("mouseleave",A,u),dt("mouseleave",k,u),b(t,p),F()}Ye(["keydown","keyup","mousedown","mouseup"]);var Hs=require("@vkontakte/videoplayer-shared/es2018");var Db=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var hp=class{constructor(){this.flickeringTimeout=Db(1e3);this.subscriptions=new Hs.Subscription;this.isAuto=!1;this.isLive=!1;this.captions$=new Hs.ValueSubject([]);this.captionsPrepared$=new Hs.ValueSubject([])}subscribe(){return this.subscriptions.add(this.captions$.pipe((0,Hs.filter)(()=>this.isEnabled()),(0,Hs.filterChanged)()).subscribe(e=>{this.processCaptions(e)})),this}setIsAuto(e){this.isAuto=e}setIsLive(e){this.isLive=e}setCaptions(e){this.captions$.next(e)}destroy(){this.subscriptions.unsubscribe(),this.flickeringTimeout.clear()}isEnabled(){return this.isAuto&&!this.isLive}processCaptions(e){if(!e.length){this.flickeringTimeout.add(()=>{this.captionsPrepared$.next([])});return}this.flickeringTimeout.clear();let i=[],o=e.length>1&&e[0].type!=="timestamp"&&e[1].type!=="timestamp";o&&i.push([{value:String(e[0].value),timeAppeared:null}]),i.push(e.reduce((r,{type:s,value:l},d)=>(o&&!d||(s==="timestamp"?r.push({timeAppeared:Number(l),value:""}):r.length===0?r.push({value:String(l)}):r[r.length-1].value=String(l)),r),[])),this.captionsPrepared$.next(i)}};var Iw=L('<span class="caption-line s-b"><span class="caption-segment s-b"> </span></span>'),Ew=L('<span class="caption-line s-b"><span class="caption-segment s-b"></span></span>'),kw=L('<span class="caption-line s-b"><span class="caption-segment s-b"> </span></span>'),Pw=L('<div><span class="caption s-b"><!></span></div>'),Aw=L("<div><!></div>"),Lw={hash:"s-b",code:".subtitles-container.s-b{height:100%;left:0;pointer-events:none;position:absolute;top:0;transition:transform var(--controls-transition-duration);width:100%}.subtitles-container.shifted.s-b{transform:translateY(calc(var(--controls-height)*-1))}.subtitles-container.preview-track-active.s-b{transform:translateY(calc(var(--preview-track-height)*-1))}.preview-track-active.s-b .subtitles-caption:where(.s-b){bottom:var(--preview-track-controls-top-offset)}.subtitles-caption.s-b{bottom:4%;display:flex;justify-content:center;left:4%;position:absolute;right:4%}.subtitles-caption.mobile.s-b{bottom:8%}.subtitles-container.auto.s-b .subtitles-caption:where(.s-b){left:var(--subtitles-caption-margin);right:var(--subtitles-caption-margin)}.caption.s-b{background:rgba(0,0,0,.4);border-radius:4px;display:block;overflow-wrap:normal;padding:4px 8px}.subtitles-container.auto.s-b .caption:where(.s-b){width:100%}.caption-line.s-b{display:block;text-align:center}.subtitles-container.auto.s-b .caption-line:where(.s-b){text-align:left}.caption-segment.s-b{color:var(--white);display:inline-block;font-size:13px;line-height:1.2;white-space:pre-wrap}"};function el(t,e){B(e,!0),G(t,Lw);let[i,o]=Ne(),r=()=>w(m,"$currentSubtitle$",i),s=()=>w(y,"$isLive$",i),l=()=>w(_,"$isFullscreen",i),d=()=>w(x,"$previewTrackActive",i),a=()=>w($,"$isAutoSubtitleCaptionVisible$",i),u=g(e,"isMobile",3,!1),f=he(),p=Rt(),m=f.state.currentSubtitle$,$=f.state.isAutoSubtitleCaptionVisible$,y=f.state.isLive$,_=f.ui.isFullscreen,x=f.ui.previewTrackActive,I=v(()=>!!r().isAuto),C=v(()=>!!s()),R=v(()=>e.playerSize.width*.02),A=v(()=>u()&&!l()||n(R)<=p.minSubtitlesFontSize?p.minSubtitlesFontSize:n(R)),E=q(null);De(()=>{var Z,oe,J;(Z=n(E))==null||Z.setIsAuto(n(I)),(oe=n(E))==null||oe.setIsLive(n(C)),(J=n(E))==null||J.setCaptions(e.captions)});let k=q(si([[]]));Vt(()=>{N(E,new hp().subscribe(),!0);let Z=n(E).captionsPrepared$.subscribe(oe=>{N(k,oe,!0)});return()=>{var oe;(oe=n(E))==null||oe.destroy(),Z.unsubscribe()}}),Vt(()=>{if(n(I)){let Z=window.setTimeout(()=>{$.set(!1)},p.autoSubtitlesTimeout);return()=>{window.clearTimeout(Z)}}else $.set(!1)});let Q=v(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var H=Aw();let z;var X=T(H);{var se=Z=>{var oe=Pw();let J;var Ce=T(oe),me=T(Ce);{var ee=we=>{var ge=Iw(),pe=T(ge),Qe=T(pe,!0);S(pe),S(ge),D(U=>{var O;We(pe,`font-size: ${(O=n(A))!=null?O:""}px`),ve(Qe,U)},[()=>j("subtitles_auto_caption")]),b(we,ge)},_e=(we,ge)=>{{var pe=U=>{var O=Ae(),Ge=ue(O);bi(Ge,17,()=>n(k),Od,(K,ae)=>{var xe=Ew(),Oe=T(xe);bi(Oe,21,()=>n(ae),({value:it,timeAppeared:ne})=>ne,(it,ne)=>{let ce=()=>n(ne).value,Re=()=>n(ne).timeAppeared;var Ve=Ae(),et=ue(Ve);{var ke=Te=>{var Be=hs();D(()=>ve(Be,ce())),b(Te,Be)};V(et,Te=>{(!Re()||Re()<=e.position)&&Te(ke)})}b(it,Ve)}),S(Oe),S(xe),D(()=>{var it;return We(Oe,`font-size: ${(it=n(A))!=null?it:""}px`)}),b(K,xe)}),b(U,O)},Qe=U=>{var O=Ae(),Ge=ue(O);bi(Ge,17,()=>e.captions,({value:K})=>K,(K,ae)=>{let xe=()=>n(ae).value;var Oe=kw(),it=T(Oe),ne=T(it,!0);S(it),S(Oe),D(()=>{var ce;We(it,`font-size: ${(ce=n(A))!=null?ce:""}px`),ve(ne,xe())}),b(K,Oe)}),b(U,O)};V(we,U=>{var O;n(I)&&((O=n(k))!=null&&O.length)?U(pe):U(Qe,!1)},ge)}};V(me,we=>{n(I)&&a()?we(ee):we(_e,!1)})}S(Ce),S(oe),D(we=>{var ge;J=re(oe,1,"subtitles-caption s-b",null,J,we),We(oe,`--subtitles-caption-margin: ${(ge=n(Q))!=null?ge:""}%`)},[()=>({mobile:u()})]),b(Z,oe)};V(X,Z=>{var oe;(e.captions.length||(oe=n(k))!=null&&oe.length)&&Z(se)})}S(H),D(Z=>z=re(H,1,"subtitles-container s-b",null,z,Z),[()=>({shifted:e.shifted,"preview-track-active":d(),auto:n(I)&&!n(C)&&!a()})]),b(t,H),F(),o()}var Ob=require("@vkontakte/videoplayer-core/es2018");var Mw=L('<div class="text s-p"> </div>'),Vw=L('<div><div class="icon_wrapper s-p"><!></div> <!></div>'),Rw={hash:"s-p",code:".wrapper.s-p{align-items:center;background-position:50%;background-repeat:no-repeat;background-size:contain;display:flex;flex-direction:column;font-size:16px;height:100%;justify-content:center}.wrapper.bgCover.s-p{background-size:cover}.icon_wrapper.s-p{align-items:center;display:flex;flex-direction:column;width:400px}.text.s-p{margin-top:20px}"};function Pc(t,e){B(e,!0),G(t,Rw);let i=g(e,"chromecastDeviceName",3,"chromecastDeviceName"),o=Rt();var r=Vw();let s;r.__contextmenu=function(...f){var p;(p=e.onContextMenu)==null||p.apply(this,f)},r.__click=function(...f){var p;(p=e.onClick)==null||p.apply(this,f)},r.__dblclick=function(...f){var p;(p=e.onDblClick)==null||p.apply(this,f)};var l=T(r),d=T(l);mc(d,{get size(){return"48"},get iconState(){return Ob.ChromecastState.CONNECTED}}),S(l);var a=P(l,2);{var u=f=>{var p=Mw(),m=T(p);S(p),D(()=>{var $;return ve(m,`Видео воспроизводится на ${($=i())!=null?$:""}`)}),b(f,p)};V(a,f=>{i()&&f(u)})}S(r),D(f=>{s=re(r,1,"wrapper s-p",null,s,f),We(r,`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${e.thumbUrl||""}')`)},[()=>({bgCover:o.features.previewNoEmptySpace})]),b(t,r),F()}Ye(["contextmenu","click","dblclick"]);var Nw=Ie('<path d="M460 194a4 4 0 0 1 4-4h122a4 4 0 0 1 4 4v82a4 4 0 0 1-4 4H464a4 4 0 0 1-4-4zm6 3a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm112-72a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm-71-37a6 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.62 4.45 11.94 4.65 2.11 1.35 3.26.77 3.96.16s1.15-2.81-1.04-4.66c-1.74-1.48-5.8-5.16-14.86-5.15s-12.95 3.5-14.8 5.18c-1.83 1.69-2.28 3.5-.96 4.66s2.31 1.16 4.35-.33c0 .01 5.36-4.51 11.41-4.51"></path>');function _v(t){Ze(t,{width:"200",height:"200",viewBox:"460 190 130 90",testId:"error-icon",children:(e,i)=>{var o=Nw();b(e,o)},$$slots:{default:!0}})}var Dw=L('<div class="container s-4"><!></div>'),Ow={hash:"s-4",code:".container.s-4{align-items:center;background:#000;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}"};function tl(t){G(t,Ow);var e=Dw(),i=T(e);_v(i,{}),S(e),b(t,e)}var Bw=L('<div class="playButton s-e" tabindex="0" role="button"><div class="playButtonBackground s-e"></div> <!></div>'),Fw=L('<div data-testid="unstarted-thumb"><!></div>'),Hw={hash:"s-e",code:".container.s-e{background-position:50%;background-repeat:no-repeat;background-size:contain;bottom:0;cursor:pointer;left:0;position:absolute;right:0;top:0;transition:opacity .2s,visibility .2s;will-change:opacity}.container.hidden.s-e{opacity:0;visibility:hidden}.container.bgCover.s-e{background-size:cover}.playButton.s-e{align-items:center;display:flex;height:var(--big-play-size);justify-content:center;margin:auto;width:var(--big-play-size)}.playButton.s-e,.playButtonBackground.s-e{bottom:0;left:0;position:absolute;right:0;top:0}.playButtonBackground.s-e{background-color:var(--big-play-bg-color);border-radius:var(--big-play-radius);transition:background .2s,transform .2s;transition-timing-function:ease-out;will-change:background,transform}.container.s-e:hover .playButtonBackground:where(.s-e){background-color:var(--big-play-hover-bg-color);transform:scale(1.15)}.playButton.s-e svg{position:relative}"};function il(t,e){B(e,!0),G(t,Hw);let i=g(e,"iconVisible",3,!0),o=he(),r=Rt(),s=o.ui.startedByKeyboard$,l=j("tooltip_play"),d=$=>{var _;let y=$.code;["Enter","Space"].includes(y)&&($.stopPropagation(),$.preventDefault(),s.set(!0),(_=e.startVideo)==null||_.call(e))},a=$=>{var y,_;$.stopPropagation(),(y=e.startVideo)==null||y.call(e),(_=e.onClick)==null||_.call(e,$)};var u=Fw();let f;u.__click=a,u.__contextmenu=function(...$){var y;(y=e.onContextMenu)==null||y.apply(this,$)};var p=T(u);{var m=$=>{var y=Bw();y.__keydown=d;var _=P(T(y),2);Mn(_,{get size(){return"48"}}),S(y),D(()=>Me(y,"aria-label",l)),b($,y)};V(p,$=>{i()&&$(m)})}return S(u),D($=>{f=re(u,1,"container s-e",null,f,$),We(u,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:r.features.previewNoEmptySpace})]),b(t,u),F({handlePressKey:d,handleClick:a})}Ye(["click","contextmenu","keydown"]);var Uw=L('<span class="text s-1a"> </span>'),zw=(t,e)=>{var i;return(i=e.onTitleClicked)==null?void 0:i.call(e)},Ww=L('<a target="_blank" class="link s-1a"><!></a>'),Kw=L('<div data-testid="video_title"><!></div>'),qw={hash:"s-1a",code:".title.s-1a{background:linear-gradient(0deg,transparent,rgba(0,0,0,.02) 19%,rgba(0,0,0,.1) 34%,rgba(0,0,0,.4) 60%,rgba(0,0,0,.6));box-sizing:border-box;font-size:15px;height:var(--controls-gradient-height);left:0;overflow:hidden;padding:18px 20px 10px;pointer-events:none;position:absolute;text-overflow:ellipsis;top:0;transition-duration:var(--controls-transition-duration);transition-property:visibility,transform,opacity;transition-timing-function:var(--controls-transition-fn);white-space:nowrap;width:100%;will-change:transform,opacity;z-index:var(--controls-container-z-index)}.link.s-1a,.title.s-1a{color:var(--white)}.link.s-1a{pointer-events:auto;text-decoration:none}.link.s-1a:hover{text-decoration:underline}.text.s-1a{pointer-events:auto}.size-sm.s-1a{font-size:14px;font-weight:500;line-height:18px}.hidden.s-1a{opacity:0;transform:translateY(calc(var(--controls-gradient-height)*-1));visibility:hidden}"};function bv(t,e){var y;B(e,!0),G(t,qw);let i=_=>{var x=Uw(),I=T(x,!0);S(x),Xe(x,C=>l(C),()=>l()),D(()=>ve(I,o())),dt("mouseenter",x,function(...C){var R;(R=e.onMouseEnter)==null||R.apply(this,C)}),dt("mouseleave",x,function(...C){var R;(R=e.onMouseLeave)==null||R.apply(this,C)}),b(_,x)},o=g(e,"title",3,""),r=g(e,"isHidden",3,!1),s=g(e,"size",3,"md"),l=g(e,"ref",15),d=q(void 0);Vt(()=>{var x;requestAnimationFrame(()=>{var I;(I=e.onVisibilityChanged)==null||I.call(e,!0)});function _(I){var C;I.propertyName==="transform"&&((C=e.onVisibilityChanged)==null||C.call(e,!r()))}return(x=n(d))==null||x.addEventListener("transitionend",_),()=>{var I;return(I=n(d))==null?void 0:I.removeEventListener("transitionend",_)}});let a=(y=e.getVideoDeeplink)==null?void 0:y.call(e);var u=Kw();let f;var p=T(u);{var m=_=>{var x=Ww();x.__click=[zw,e];var I=T(x);i(I),S(x),D(()=>Me(x,"href",a||"")),b(_,x)},$=_=>{i(_)};V(p,_=>{a||e.onTitleClicked?_(m):_($,!1)})}S(u),Xe(u,_=>N(d,_),()=>n(d)),D(_=>f=re(u,1,`title size-${s()}`,"s-1a",f,_),[()=>({hidden:r()})]),b(t,u),F()}Ye(["click"]);var Bb=require("@vkontakte/videoplayer-shared/es2018");var Qw=L('<div class="timer__cell cell s-w"><span class="cell__value s-w"> </span> <span class="cell__unit s-w"> </span></div> <span class="timer__points s-w"> </span>',1),Gw=L('<div class="timer__cell cell s-w"><span class="cell__value s-w"> </span> <span class="cell__unit s-w"> </span></div> <span class="timer__points s-w"> </span>',1),Yw=L('<div class="timer__cell cell s-w"><span class="cell__value s-w"> </span> <span class="cell__unit s-w"> </span></div> <span class="timer__points s-w"> </span>',1),jw=L('<div class="timer__cell cell s-w"><span class="cell__value s-w"> </span> <span class="cell__unit s-w"> </span></div>'),Xw=L("<div><!> <!> <!> <!></div>"),Zw={hash:"s-w",code:".timer__container.s-w{align-items:flex-start;display:flex;justify-content:center}.cell.s-w{align-items:center;display:flex;flex-direction:column}.cell__value.s-w{font-size:48px;font-weight:600;line-height:1.2}.small.s-w .cell__value:where(.s-w){font-size:24px}.cell__unit.s-w{font-size:14px;font-weight:400;line-height:1.2}.small.s-w .cell__unit:where(.s-w){font-size:12px}.timer__points.s-w{display:inline-block;font-size:42px;font-weight:600;line-height:1.2;margin:0 8px}.small.s-w .timer__points:where(.s-w){font-size:20px}"};function $v(t,e){B(e,!0),G(t,Zw);let i=q(""),o=q(""),r=q(""),s=q(""),l,d=32,a=d/2,u=H=>String(H).padStart(2,"0"),f=H=>Math.max(H.length,1),p=H=>`${(e.isSmallSize?a:d)*f(H)}px`,m=H=>{let z=Math.floor(H/86400);z&&(H-=z*86400,N(i,u(z),!0));let X=Math.floor(H/3600);N(o,u(X),!0);let se=Math.floor(H/60)%60;N(r,u(se),!0);let Z=H%60;N(s,u(Z),!0)},$=()=>{let H=Math.floor(Date.now()/1e3),z=e.startTime-H;m(z),z>=1?l=requestAnimationFrame($):e.onTimerOver()};Vt(()=>{l=requestAnimationFrame($)}),dn(()=>{cancelAnimationFrame(l)});var y=Xw();let _;var x=T(y);{var I=H=>{var z=Qw(),X=ue(z);let se;var Z=T(X),oe=T(Z,!0);S(Z);var J=P(Z,2),Ce=T(J,!0);S(J),S(X);var me=P(X,2),ee=T(me,!0);S(me),D((_e,we,ge)=>{se=We(X,"",se,{width:_e}),ve(oe,n(i)),ve(Ce,we),ve(ee,ge)},[()=>p(n(i)),()=>j("waiting_live_day_value"),()=>j("waiting_live_colon")]),b(H,z)};V(x,H=>{n(i)&&H(I)})}var C=P(x,2);{var R=H=>{var z=Gw(),X=ue(z);let se;var Z=T(X),oe=T(Z,!0);S(Z);var J=P(Z,2),Ce=T(J,!0);S(J),S(X);var me=P(X,2),ee=T(me,!0);S(me),D((_e,we,ge)=>{se=We(X,"",se,{width:_e}),ve(oe,n(o)),ve(Ce,we),ve(ee,ge)},[()=>p(n(o)),()=>j("waiting_live_hour_value"),()=>j("waiting_live_colon")]),b(H,z)};V(C,H=>{n(o)&&H(R)})}var A=P(C,2);{var E=H=>{var z=Yw(),X=ue(z);let se;var Z=T(X),oe=T(Z,!0);S(Z);var J=P(Z,2),Ce=T(J,!0);S(J),S(X);var me=P(X,2),ee=T(me,!0);S(me),D((_e,we,ge)=>{se=We(X,"",se,{width:_e}),ve(oe,n(r)),ve(Ce,we),ve(ee,ge)},[()=>p(n(r)),()=>j("waiting_live_minute_value"),()=>j("waiting_live_colon")]),b(H,z)};V(A,H=>{n(r)&&H(E)})}var k=P(A,2);{var Q=H=>{var z=jw();let X;var se=T(z),Z=T(se,!0);S(se);var oe=P(se,2),J=T(oe,!0);S(oe),S(z),D((Ce,me)=>{X=We(z,"",X,{width:Ce}),ve(Z,n(s)),ve(J,me)},[()=>p(n(s)),()=>j("waiting_live_second_value")]),b(H,z)};V(k,H=>{n(s)&&H(Q)})}S(y),D(H=>_=re(y,1,"timer__container s-w",null,_,H),[()=>({small:e.isSmallSize})]),b(t,y),F()}var Jw=L('<div class="waiting s-q"><span> </span></div>'),eS=L('<div class="upcoming-timer timer s-q"><span> </span> <!></div>'),tS=L('<div class="waiting-container s-q"><!></div>'),iS={hash:"s-q",code:'.waiting-container.s-q{background-color:var(--black);background-position:50%;background-repeat:no-repeat;background-size:cover;white-space:nowrap}.waiting-container.s-q,.waiting-container.s-q:before{height:100%;left:0;position:absolute;top:0;width:100%}.waiting-container.s-q:before{backdrop-filter:blur(15px);background-color:rgba(0,0,0,.56);content:"";z-index:1}.waiting.s-q{align-items:center;display:flex;flex-direction:column;justify-content:center;left:0;position:absolute;top:50%;transform:translateY(-50%);width:100%;z-index:2}.waiting__title.s-q{font-size:20px;font-weight:600;line-height:1.2}.upcoming-timer.s-q{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:2}.timer.s-q{align-items:center;display:flex;flex-direction:column;justify-content:center}.timer__title.s-q{display:inline-block;font-size:20px;font-weight:600;line-height:1.2;margin-bottom:12px;vertical-align:middle}.small.s-q{font-size:15px}.medium.s-q{font-size:17px}'};function Ac(t,e){B(e,!0),G(t,iS);let i=g(e,"startTime",3,0),o=v(()=>i()<Math.floor(Date.now()/1e3)),r=q(void 0),s=q(void 0),l=0,d=q(void 0),a=q(void 0),u=v(()=>{var x,I;return((x=n(d))!=null?x:1/0)<=509||((I=n(a))!=null?I:1/0)<=320}),f=v(()=>{var x,I;return!n(u)&&(((x=n(d))!=null?x:1/0)<=699||((I=n(a))!=null?I:1/0)<=599)}),p=e.onUpcomingLiveViewStateChanged?(0,Bb.throttleFn)(()=>{cancelAnimationFrame(l),l=requestAnimationFrame(()=>{let x={type:n(o)?"expired":"default",size:n(u)?"s":n(f)?"m":"l"},I=n(o)?n(r):n(s);e.onUpcomingLiveViewStateChanged(x,I)})},300):void 0;De(()=>{n(a),n(d),n(o),p==null||p()}),dn(()=>{if(cancelAnimationFrame(l),p==null||p.cancel(),e.onUpcomingLiveViewStateChanged){let x={type:n(o)?"expired":"default",size:n(u)?"s":n(f)?"m":"l"};e.onUpcomingLiveViewStateChanged(x)}});var m=tS();m.__contextmenu=function(...x){var I;(I=e.onContextMenu)==null||I.apply(this,x)},m.__click=function(...x){var I;(I=e.onClick)==null||I.apply(this,x)};var $=T(m);{var y=x=>{var I=Jw(),C=T(I);let R;var A=T(C,!0);S(C),S(I),Xe(I,E=>N(r,E),()=>n(r)),D((E,k)=>{R=re(C,1,"waiting__title s-q",null,R,E),ve(A,k)},[()=>({medium:n(f),small:n(u)}),()=>j("waiting_live_upcoming_title")]),b(x,I)},_=x=>{var I=eS(),C=T(I);let R;var A=T(C,!0);S(C);var E=P(C,2);let k=v(()=>n(u)||n(f)),Q=v(()=>i()||0);$v(E,{get isSmallSize(){return n(k)},get startTime(){return n(Q)},onTimerOver:()=>N(o,!0)}),S(I),Xe(I,H=>N(s,H),()=>n(s)),D((H,z)=>{R=re(C,1,"timer__title s-q",null,R,H),ve(A,z)},[()=>({medium:n(f),small:n(u)}),()=>j("waiting_live_timer_title")]),b(x,I)};V($,x=>{n(o)?x(y):x(_,!1)})}S(m),D(()=>We(m,`background-image: url(${e.thumbUrl})`)),An(m,"clientWidth",x=>N(d,x)),An(m,"clientHeight",x=>N(a,x)),b(t,m),F()}Ye(["contextmenu","click"]);var oS=L('<div class="waiting-container s-n"><div class="waiting-caption s-n"><!> <p class="waiting-title s-n"> </p></div></div>'),nS={hash:"s-n",code:'.waiting-container.s-n{align-items:center;background-color:var(--black);background-position:50%;background-repeat:no-repeat;background-size:cover;display:flex;justify-content:center}.waiting-container.s-n,.waiting-container.s-n:before{height:100%;left:0;position:absolute;top:0;width:100%}.waiting-container.s-n:before{backdrop-filter:blur(10px);background-color:rgba(0,0,0,.4);content:""}.waiting-caption.s-n{align-items:center;display:flex;flex-direction:column;position:relative}.waiting-title.s-n{font-size:20px;font-weight:400;line-height:1.2;margin:0;padding:20px;text-align:center}'};function ol(t,e){B(e,!0),G(t,nS);let i=g(e,"thumbUrl",3,""),o={recover:j("waiting_live_recover_title"),record:j("waiting_record_title")},r=v(()=>o[e.kind]||"");var s=oS();s.__contextmenu=function(...f){var p;(p=e.onContextMenu)==null||p.apply(this,f)},s.__click=function(...f){var p;(p=e.onClick)==null||p.apply(this,f)};var l=T(s),d=T(l);Wa(d,{style:"position: static; transform: translate(0, 0)"});var a=P(d,2),u=T(a,!0);S(a),S(l),S(s),D(()=>{We(s,`background-image: url('${i()}')`),ve(u,n(r))}),b(t,s),F()}Ye(["contextmenu","click"]);var rS=Ie('<path 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"></path>');function yv(t){Ze(t,{width:"16",height:"16",testId:"check-mark-icon",children:(e,i)=>{var o=rS();b(e,o)},$$slots:{default:!0}})}var sS=L('<div class="select-icon s-1x"><!></div>'),aS={hash:"s-1x",code:".select-icon.s-1x{margin-right:auto;opacity:.9;padding-right:12px;position:relative;top:3px}"};function Lc(t){G(t,aS);var e=sS(),i=T(e);yv(i,{}),S(e),b(t,e)}var lS=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},dS=(t,e)=>{Kl(t,()=>e.item.selectItem(e.item.value))},cS=L("<p> </p>"),uS=L('<p class="sublabel s-1t"> </p>'),pS=L('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),fS={hash:"s-1t",code:".menu-item-value.s-1t{align-items:end;display:flex;flex-direction:column;min-width:0}.menu-item-value[data-selected=false].s-1t{--select-icon-width:16px;--icon-padding:12px;margin-left:calc(var(--icon-padding) + var(--select-icon-width))}.label.s-1t,.sublabel.s-1t{max-width:100%;overflow:hidden;text-overflow:ellipsis}.sublabel.s-1t{opacity:.5}"};function xv(t,e){B(e,!0),G(t,fS);let i=g(e,"isMobile",3,!1);var o=pS();let r;o.__click=[lS,e],o.__keydown=[dS,e];var s=T(o);{var l=y=>{Lc(y,{})};V(s,y=>{e.item.selected&&y(l)})}var d=P(s,2);let a;var u=T(d);{var f=y=>{var _=Ae(),x=ue(_);Ri(x,()=>e.item.valueComponent,(I,C)=>{C(I,Xr(()=>{var R;return(R=e.item.valueComponentParams)!=null?R:{}}))}),b(y,_)},p=y=>{var _=cS();let x;var I=T(_,!0);S(_),D(C=>{var R;x=re(_,1,"label s-1t",null,x,C),ve(I,(R=e.item.label)!=null?R:e.item.value)},[()=>({mobile:i()})]),b(y,_)};V(u,y=>{e.item.valueComponent?y(f):y(p,!1)})}var m=P(u,2);{var $=y=>{var _=uS(),x=T(_,!0);S(_),D(()=>ve(x,e.item.sublabel)),b(y,_)};V(m,y=>{e.item.sublabel&&y($)})}S(d),S(o),D((y,_,x)=>{var I;r=re(o,1,"item",null,r,y),Me(o,"data-value",(I=e.item.dataValue)!=null?I:e.item.value),Me(o,"aria-label",_),Me(o,"data-testid",e.item.dataTestid),a=re(d,1,"menu-item-value s-1t",null,a,x),Me(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>{var y,_;return(_=(y=e.item.ariaLabel)!=null?y:e.item.label)!=null?_:e.item.value.toString()},()=>({"submenu-value-mobile":i()})]),b(t,o),F()}Ye(["click","keydown"]);var mS=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function wv(t,e){B(e,!0);let i=g(e,"isMobile",3,!1),o=g(e,"refMenuItems",15),r=v(()=>()=>e.openSubMenuList(e.item.children)),s=v(()=>_=>Zu(_,n(r)));var l=mS();let d;l.__click=function(..._){var x;(x=n(r))==null||x.apply(this,_)},l.__keydown=function(..._){var x;(x=n(s))==null||x.apply(this,_)};var a=T(l);{var u=_=>{Lc(_,{})};V(a,_=>{e.item.selected&&_(u)})}var f=P(a,2);let p;var m=T(f);{var $=_=>{var x=Ae();let I=v(()=>e.item.valueComponent);var C=ue(x);Ri(C,()=>n(I),(R,A)=>{A(R,Xr(()=>{var E;return(E=e.item.valueComponentParams)!=null?E:{}}))}),b(_,x)},y=_=>{var x=hs();D(()=>ve(x,e.item.label)),b(_,x)};V(m,_=>{e.item.valueComponent?_($):_(y,!1)})}S(f),S(l),Xe(l,_=>o(o()[e.item.id]=_,!0),()=>{var _;return(_=o())==null?void 0:_[e.item.id]}),D((_,x)=>{var I;d=re(l,1,"item",null,d,_),Me(l,"aria-label",(I=e.item.ariaLabel)!=null?I:e.item.label),Me(l,"data-testid",e.item.id),p=re(f,1,"menu-item-value",null,p,x)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),b(t,l),F()}Ye(["click","keydown"]);var ts={"quality-settings":100,"audio-language-settings":200,"playback-rate-settings":300,"subtitles-settings":400,"traffic-saving-settings":500,download:600,report:700,"copy-data":800,"save-trace-info":900,"debug-info":1e3};var gS=(t,e)=>{tb(t,e.returnFromSubMenu,e.closeSettingsMenu)},hS=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},_S=(t,e)=>{oc(t)&&(Mr(t),e.returnFromSubMenu())},bS=L('<div><ul role="menu"><li role="menuitem" tabindex="0" data-testid="return-to-settings-menu"><!> <p class="title s-1k"> </p></li> <!></ul></div>'),$S={hash:"s-1k",code:".sub-menu.s-1k{--item-padding-vertical-mobile:16px;--item-padding-vertical:7px;--item-label-line-height:18px;--edge-item-padding-vertical-mobile:calc(6px + var(--item-padding-vertical-mobile));--edge-item-padding-vertical:calc(8px + var(--item-padding-vertical))}.sub-menu.s-1k .item.mobile{font-size:14px;line-height:var(--item-label-line-height);padding:var(--item-padding-vertical-mobile) 17px}.sub-menu.s-1k{padding-top:calc(var(--edge-item-padding-vertical) + var(--item-padding-vertical) + var(--item-label-line-height))}.sub-menu.mobile.s-1k{padding-top:calc(var(--edge-item-padding-vertical-mobile) + var(--item-padding-vertical-mobile) + var(--item-label-line-height) + 1px)}.sub-menu.s-1k .items:where(.s-1k) .item.header:where(.s-1k){border-bottom:var(--divider-border);display:flex;justify-content:space-between;left:0;min-width:max-content;position:absolute;right:0;top:0}.header.s-1k .title:where(.s-1k){margin-left:8px}.sub-menu.s-1k .item{padding:var(--item-padding-vertical) 12px;padding-right:22px}.items.s-1k .item:first-child:not(.mobile){padding-top:var(--edge-item-padding-vertical)}.items.s-1k .item:last-child:not(.mobile){padding-bottom:var(--edge-item-padding-vertical)}.items.s-1k .item.mobile:first-child{padding-top:var(--edge-item-padding-vertical-mobile)}.items.s-1k .item.mobile:last-child{padding-bottom:var(--edge-item-padding-vertical-mobile)}.sub-menu.s-1k .item.bottomBordered{border-bottom:var(--divider-border)}.sub-menu.s-1k .item .sublabel{font-size:12px;line-height:14px}.item.s-1k:not(.mobile) p:where(.s-1k),.sub-menu.s-1k .item:not(.mobile) .label{font-size:13px;line-height:var(--item-label-line-height)}"};function Cv(t,e){B(e,!0),G(t,$S);let[i,o]=Ne(),r=()=>w(p,"$isFullscreen",i),s=()=>w(m,"$playerSize",i),l=g(e,"isMobile",3,!1),d=g(e,"playerControlsHeight",3,0),a=g(e,"ariaLabelReturnFromSubMenu",19,()=>j("aria_label_submenu_back")),u=g(e,"listRef",15);Vt(()=>{let Z=e.items.findIndex(oe=>oe.selected);u().children[Z+1].focus()});let f=he(),p=f.ui.isFullscreen,m=f.ui.playerSize,$=q(void 0),y=q(0),_=q(0),x=v(()=>l()&&r()?`max-height: ${Math.round(s().height*.6)}px`:l()?"":`max-height: ${s().height-32-n(_)-d()}px; overflow: auto;`),I=v(()=>Math.max(e.minWidth,n(y)));var C=bS();let R;var A=T(C);let E;A.__keydown=[gS,e];var k=T(A);let Q;k.__click=[hS,e],k.__keydown=[_S,e];var H=T(k);Lr(H,{direction:"left"});var z=P(H,2),X=T(z,!0);S(z),S(k),Xe(k,Z=>N($,Z),()=>n($));var se=P(k,2);bi(se,17,()=>e.items,Od,(Z,oe)=>{var J=Ae(),Ce=ue(J);{var me=_e=>{xv(_e,{get item(){return n(oe)},get isMobile(){return l()}})},ee=(_e,we)=>{{var ge=pe=>{wv(pe,{get isMobile(){return l()},get item(){return n(oe)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};V(_e,pe=>{n(oe).type==="OPEN_SUB_MENU"&&pe(ge)},we)}};V(Ce,_e=>{n(oe).type==="SELECT_VALUE"?_e(me):_e(ee,!1)})}b(Z,J)}),S(A),Xe(A,Z=>u(Z),()=>u()),S(C),D((Z,oe,J)=>{R=re(C,1,"sub-menu menu s-1k",null,R,Z),Me(C,"data-testid",`${e.id}-sub-menu`),We(C,`min-width: ${n(I)}px`),E=re(A,1,"items s-1k",null,E,oe),We(A,n(x)),Q=re(k,1,"item header back s-1k",null,Q,J),Me(k,"aria-label",a()),ve(X,e.title)},[()=>({desktop:!l(),mobile:l()}),()=>({mobile:l()}),()=>({mobile:l()})]),An(k,"clientWidth",Z=>N(y,Z)),An(k,"clientHeight",Z=>N(_,Z)),b(t,C),F(),o()}Ye(["keydown","click"]);var Hb=require("@vkontakte/videoplayer-shared/es2018");var yS=(t,e)=>Zu(t,e()),xS=(t,e)=>{t.stopPropagation(),e()()},wS=L('<div class="value s-1l"> </div>'),SS=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),CS={hash:"s-1l",code:".value.s-1l{opacity:.7;overflow:hidden;position:relative;text-overflow:ellipsis}"};function Tv(t,e){B(e,!0),G(t,CS);let i=g(e,"isMobile",3,!1),o=g(e,"onClick",3,Hb.noop),r=g(e,"valueComponent",3,void 0),s=g(e,"iconProps",19,()=>({})),l=g(e,"ref",15);var d=SS();let a;d.__click=[xS,o],d.__keydown=[yS,o];var u=T(d),f=T(u);{var p=C=>{ja(C,{get icon(){return e.icon}})},m=C=>{var R=Ae();let A=v(()=>e.icon);var E=ue(R);Ri(E,()=>n(A),(k,Q)=>{Q(k,Xr(s))}),b(C,R)};V(f,C=>{typeof e.icon=="string"?C(p):C(m,!1)})}S(u);var $=P(u,2),y=T($,!0);S($);var _=P($,2);{var x=C=>{var R=Ae();let A=v(r);var E=ue(R);Ri(E,()=>n(A),(k,Q)=>{Q(k,{})}),b(C,R)},I=C=>{var R=wS(),A=T(R,!0);S(R),D(()=>ve(A,e.value)),b(C,R)};V(_,C=>{r()?C(x):C(I,!1)})}S(d),Xe(d,C=>l(C),()=>l()),D(C=>{a=re(d,1,"item",null,a,C),Me(d,"aria-label",e.ariaLabel),Me(d,"data-testid",e.id),ve(y,e.label)},[()=>({mobile:i()})]),b(t,d),F()}Ye(["click","keydown"]);var Iv=require("@vkontakte/videoplayer-shared/es2018");var TS=(t,e)=>{Kl(t,()=>e())},IS=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),ES=L('<img class="icon" aria-hidden="true"/>'),kS=L('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label s-1m"> </div></li>'),PS={hash:"s-1m",code:".label.s-1m{overflow:hidden;text-overflow:ellipsis}"};function Ev(t,e){B(e,!0),G(t,PS);let i=g(e,"isMobile",3,!1),o=g(e,"onClick",3,Iv.noop),r=g(e,"closeSettings",3,Iv.noop),s=q(!1),l=()=>{N(s,!0)},d=x=>{x==null||x.stopPropagation(),o()(),r()()};var a=kS();let u;a.__click=d,a.__keydown=[TS,d];var f=T(a),p=T(f);{var m=x=>{var I=Ae(),C=ue(I);{var R=E=>{var k=IS();b(E,k)},A=E=>{var k=ES();D(()=>Me(k,"src",e.icon)),dt("error",k,l),Pa(k),b(E,k)};V(C,E=>{n(s)?E(R):E(A,!1)})}b(x,I)},$=x=>{var I=Ae();let C=v(()=>e.icon);var R=ue(I);Ri(R,()=>n(C),(A,E)=>{E(A,{})}),b(x,I)};V(p,x=>{typeof e.icon=="string"?x(m):x($,!1)})}S(f);var y=P(f,2),_=T(y,!0);S(y),S(a),D(x=>{var I;u=re(a,1,"item",null,u,x),Me(a,"aria-label",(I=e.ariaLabel)!=null?I:e.label),Me(a,"data-testid",e.id),ve(_,e.label)},[()=>({mobile:i()})]),b(t,a),F()}Ye(["click","keydown"]);var Ub=require("@vkontakte/videoplayer-shared/es2018");var AS=L('<div class="toggle_wrap s-1p"><div></div> <div class="toggle-label s-1p"></div></div>'),LS={hash:"s-1p",code:'.toggle_wrap.s-1p{cursor:pointer;font-size:12px;line-height:15px;min-height:15px;padding:0;user-select:none}.toggle.s-1p{background-color:var(--toggle-color-separator);border-radius:45px;cursor:pointer;float:right;height:9px;margin-top:3px;width:28px}.toggle.s-1p:after{background-color:var(--toggle-color-off);border-radius:50%;content:"";float:left;height:15px;left:0;position:relative;top:-3px;transition:left .1s ease;width:15px}.toggle.on.s-1p:after{background-color:var(--toggle-color-on);left:13px}.toggle-label.s-1p{overflow:hidden}'};function kv(t,e){G(t,LS);let i=g(e,"enabled",3,!1);var o=AS(),r=T(o);let s;ai(2),S(o),D(l=>s=re(r,1,"toggle s-1p",null,s,l),[()=>({on:i()})]),b(t,o)}var MS=(t,e,i)=>{ib(t,e(),o=>i()(o))},VS=(t,e,i)=>{t.stopPropagation(),e()(!i())},RS=L('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),NS=L('<li role="menuitem" tabindex="0"><!></li>');function Pv(t,e){B(e,!0);let i=g(e,"isMobile",3,!1),o=g(e,"onClick",3,Ub.noop),r=g(e,"enabled",3,!1),s=g(e,"tooltipText",3,void 0),l=g(e,"maxTooltipWidth",3,void 0);var d=NS();let a;d.__click=[VS,o,r],d.__keydown=[MS,r,o];var u=T(d);qa(u,{get content(){return s()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return l()},children:(f,p)=>{var m=RS();let $;var y=T(m),_=T(y);{var x=E=>{ja(E,{get icon(){return e.icon}})},I=E=>{var k=Ae();let Q=v(()=>e.icon);var H=ue(k);Ri(H,()=>n(Q),(z,X)=>{X(z,{})}),b(E,k)};V(_,E=>{typeof e.icon=="string"?E(x):E(I,!1)})}S(y);var C=P(y,2),R=T(C,!0);S(C);var A=P(C,2);kv(A,{get enabled(){return r()}}),S(m),D(E=>{$=re(m,1,"switch-wrapper",null,$,E),ve(R,e.label)},[()=>({mobile:i()})]),b(f,m)},$$slots:{default:!0}}),S(d),D(f=>{var p;a=re(d,1,"item switch-item",null,a,f),Me(d,"aria-label",(p=e.ariaLabel)!=null?p:e.label),Me(d,"data-testid",e.id)},[()=>({mobile:i()})]),b(t,d),F()}Ye(["click","keydown"]);var Vc=require("@vkontakte/videoplayer-shared/es2018");var zb=()=>{let t=q(si([])),e=v(()=>(n(t).length?n(t).at(-1):null)||null);return{get current(){return n(e)},pushSubMenu:i=>{n(t).push(i)},popSubMenu:()=>{N(t,n(t).slice(0,-1),!0)},popAllSubMenus:()=>{N(t,[],!0)}}};var Wb=require("@vkontakte/videoplayer-shared/es2018");var DS=L('<div class="quality-icon s-1o"><!></div>'),OS=L('<div class="quality-label s-1o"><span> </span> <!></div>'),BS={hash:"s-1o",code:".quality-label.s-1o{position:relative}.quality.s-1o{font-size:13px;line-height:18px}.quality.sub.s-1o{opacity:.7}.quality-icon.s-1o{display:flex;padding-left:2px;position:absolute;right:0;top:0;transform:translateX(100%)}.quality-icon.s-1o svg{color:var(--blue-light)}"};function nl(t,e){B(e,!0),G(t,BS);let i=g(e,"isSubCase",3,!1),o=v(()=>e.quality?(0,Wb.getVideoQualityLabel)(e.quality):""),r=v(()=>op(e.quality));var s=OS(),l=T(s);let d;var a=T(l,!0);S(l);var u=P(l,2);{var f=p=>{var m=DS();let $=v(()=>n(r));var y=T(m);Ri(y,()=>n($),(_,x)=>{x(_,{})}),S(m),D(()=>Me(m,"data-testid",`${n(o)}-icon`)),b(p,m)};V(u,p=>{n(r)&&!e.isMobile&&p(f)})}S(s),D(p=>{d=re(l,1,"s-1o",null,d,p),ve(a,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),b(t,s),F()}var Gb=require("@vkontakte/videoplayer-shared/es2018");var Av=require("@vkontakte/videoplayer-core/es2018");var Kb=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},qb=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=Kb({quality:t,availableQualities:e});return i?t===Av.VideoQuality.INVARIANT?j("auto_quality_invariant"):j("auto_quality",{actual:o}):o},Qb=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===Av.VideoQuality.INVARIANT?i:`${i}${Kb({quality:t,availableQualities:e})}`:"...";var FS=L('<div class="menu-item-value-wrapper s-1s"><!></div>'),HS={hash:"s-1s",code:".menu-item-value-wrapper.s-1s{line-height:normal}"};function od(t,e){B(e,!0),G(t,HS);let[i,o]=Ne(),r=()=>w(a,"$currentQuality$",i),s=()=>w(u,"$availableQualities$",i),l=()=>w(f,"$isMobile$",i),d=he(),a=d.state.currentQuality$,u=d.state.availableQualities$,f=d.ui.isMobile,p=" · ",m=v(()=>e.prefix+(e.selected&&r()!==Gb.VideoQuality.INVARIANT?p:"")),$=v(()=>Qb({prefix:n(m),quality:r(),availableQualities:s(),onlyPrefix:!e.selected}));var y=FS(),_=T(y);let x=v(()=>e.selected?r():void 0);nl(_,{get quality(){return n(x)},get label(){return n($)},get isMobile(){return l()},isSubCase:!0}),S(y),b(t,y),F(),o()}var US=t=>{let e=t.join("|"),i="<(?<keyhtml>.*?)(?<propshtml> .*?)?>(?<childrenhtml>.*?)</\\k<keyhtml>>",o=`{(?<keyi18n>${e})}(?<childreni18n>.*?){/\\k<keyi18n>}`,r="<(?<keyhtmlself>.*?)(?<propshtmlself> .*?)?/?>",s=`{(?<keyi18nself>${e})}`;return new RegExp(`${i}|${o}|${r}|${s}`,"g")},zS={br:!0,span:!0},Lv=(t,e={})=>{var d,a,u,f,p,m,$;if(!t)return t;let i={...zS,...e},o=Object.keys(i);if(!o.length)return t;let r=US(o),s=[],l=0;for(let y of t.matchAll(r)){let _=y[0],x=((d=y.groups)==null?void 0:d.keyhtml)||((a=y.groups)==null?void 0:a.keyi18n)||((u=y.groups)==null?void 0:u.keyhtmlself)||((f=y.groups)==null?void 0:f.keyi18nself)||"",{index:I}=y;if(!i[x]){s.push(t.slice(l,I)),l=I+_.length;continue}let C=(p=y.groups)!=null&&p.childrenhtml?Lv(y.groups.childrenhtml,i):"",R=(m=y.groups)!=null&&m.childrenhtml?_.replace(new RegExp(($=y.groups)==null?void 0:$.childrenhtml),()=>C||""):_;s.push(t.slice(l,I),R),l=I+_.length}return l===0?t:(s.push(t.slice(l)),s.join(""))};function Mc(t,e){B(e,!1);let i=g(e,"message",8),o=Lv(i());So();var r=Ae(),s=ue(r);{var l=d=>{var a=Ae(),u=ue(a);Bd(u,()=>o),b(d,a)};V(s,d=>{o&&d(l)})}b(t,r),F()}var WS=L('<p class="quality-applies sublabel s-1r"><!></p>'),KS={hash:"s-1r",code:".quality-applies.s-1r{color:hsla(0,0%,100%,.5);display:flex;justify-content:end;padding:3px 0}.quality-applies span{color:#70c1ff}"};function Mv(t,e){B(e,!1),G(t,KS),So();var i=WS(),o=T(i);let r=Tn(()=>j("quality_applience",{action:`<span>${j("quality_applience_action")}</span>`}));Mc(o,{get message(){return n(r)}}),S(i),b(t,i),F()}var jb=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"quality-other-settings",type:"OPEN_SUB_MENU",label:j("other_quality"),selected:o,valueComponent:od,valueComponentParams:{prefix:j("other_quality"),selected:o},children:"quality-other-settings"}},Vv=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"quality-auto",type:"SELECT_VALUE",value:"auto",label:j("auto_quality_limit"),valueComponent:e?od:void 0,valueComponentParams:{prefix:j("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),Xb=()=>({id:"quality-appliance-settings",type:"OPEN_SUB_MENU",valueComponent:Mv,bottomBordered:!0,children:"quality-appliance"}),Rv=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"quality-high",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:j("high_quality"),valueComponent:t?od:void 0,valueComponentParams:{prefix:j("high_quality"),selected:i},sublabel:j("high_quality_description")}),Nv=({labelWithQuality:t,appliesTo:e,selected:i},{toggleTrafficSaving:o})=>({id:"quality-traffic-saving",type:"SELECT_VALUE",value:"save_traffic",selectItem:()=>o(!0,e),selected:i,label:j("traffic_saving_quality"),valueComponent:t?od:void 0,valueComponentParams:{prefix:j("traffic_saving_quality"),selected:i},sublabel:j("traffic_saving_quality_description")});var _p=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),bp=(t,e)=>{var l;if(!t)return"";let{language:i,label:o}=t,r;if(i==="und"?r=void 0:i&&(r=(l=hc(i))!=null?l:i),o&&i&&r){let d=e.filter(a=>a.label===o&&a.language===i);if(d.length===1)return j("audio_stream_display_language_label",{language:r,label:o});{let a=_p(t,d);return j("audio_stream_display_language_label_index",{language:r,label:o,index:a})}}if(o){let d=e.filter(a=>a.label===o);if(d.length===1)return o;{let a=_p(t,d);return j("audio_stream_display_label_index",{label:o,index:a})}}if(i&&r){let d=e.filter(a=>a.language===i);if(d.length===1)return r;{let a=_p(t,d);return j("audio_stream_display_language_index",{language:r,index:a})}}let s=_p(t,e);return j("audio_stream_display_unknown",{index:s})};var qS={"quality-settings":t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:r}=t,s=[];return i&&s.push({handler:Vv,selected:e&&!o&&!r||!1}),s.push({handler:Nv,selected:o},{handler:Rv,selected:r}),{title:j("submenu_quality"),id:"quality-settings",items:[Xb(t),...s.map(({handler:l,selected:d})=>l({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),jb(t)]}},"quality-other-settings":({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"quality-other-settings",title:j("submenu_quality"),closeSettingsMenu:t,items:i.map(r=>({type:"SELECT_VALUE",value:r.value,valueComponent:nl,valueComponentParams:{quality:r.value,label:r.displayValue,isMobile:o,isSubCase:!0},selectItem:s=>e(s,"to-video"),selected:r.selected,label:r.displayValue}))}),"quality-appliance":t=>{var i,o,r;let{closeSettingsMenu:e}=t;return{id:"quality-appliance",title:j("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:Vv,selected:((i=Hu())==null?void 0:i.type)==="auto_quality"},{handler:Nv,selected:((o=Hu())==null?void 0:o.type)==="traffic_saving"},{handler:Rv,selected:((r=Hu())==null?void 0:r.type)==="high_quality"}].map(({handler:s,selected:l})=>s({labelWithQuality:!1,appliesTo:"as-default",selected:l},t))}},"audio-tracks":({closeSettingsMenu:t,availableAudioStreams:e,currentAudioStream:i,selectAudioLanguage:o})=>({id:"audio-tracks",title:j("submenu_audio_languages"),closeSettingsMenu:t,items:e.map(r=>({type:"SELECT_VALUE",value:r,dataValue:r.id,selectItem:o,selected:r.id===(i==null?void 0:i.id),label:bp(r,e)}))}),"playback-rate":({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"playback-rate",title:j("submenu_playback_rate"),closeSettingsMenu:t,items:e.map(o=>({type:"SELECT_VALUE",value:o.value,selectItem:i,selected:o.selected,label:o.displayValue}))}),subtitles:({availableSubtitlesList:t,selectSubtitle:e})=>({id:"subtitles",minWidth:164,title:j("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i.value,selectItem:()=>e(i),selected:i.selected,label:i.displayValue,dataTestid:i.value===Rn?"sub_off":void 0}))})},Zb=({subMenuId:t,context:e})=>t?[qS[t](e)]:[];var QS=Ie('<path d="M3.1 9.5c0-2.24 0-3.36.44-4.22A4 4 0 015.28 3.54C6.14 3.1 7.26 3.1 9.5 3.1h5c2.24 0 3.36 0 4.22.44a4 4 0 011.74 1.74c.44.86.44 1.98.44 4.22s0 3.36-.44 4.22a4 4 0 01-1.74 1.74c-.84.43-1.93.44-4.07.44l.55 2.2h1.9a.9.9 0 010 1.8H6.9a.9.9 0 110-1.8h1.9l.55-2.2c-2.14 0-3.23-.01-4.07-.44a4 4 0 01-1.74-1.74C3.1 12.86 3.1 11.74 3.1 9.5m11.4-4.6h-5c-1.15 0-1.9 0-2.48.05-.56.04-.79.12-.92.19a2.2 2.2 0 00-.96.96 2 2 0 00-.2.92C4.9 7.6 4.9 8.35 4.9 9.5s0 1.9.05 2.48c.04.56.12.79.19.92q.33.63.96.96c.13.07.36.15.92.2.58.04 1.33.04 2.48.04h5c1.15 0 1.9 0 2.48-.05.56-.04.79-.12.92-.19a2.2 2.2 0 00.96-.96c.07-.13.15-.36.2-.92.04-.58.04-1.33.04-2.48s0-1.9-.05-2.48a3 3 0 00-.19-.92 2.2 2.2 0 00-.96-.96 2 2 0 00-.92-.2c-.58-.04-1.33-.04-2.48-.04m-3.3 11-.55 2.2h2.7l-.55-2.2z"></path>');function Dv(t){Ze(t,{testId:"traffic-saving-icon",children:(e,i)=>{var o=QS();b(e,o)},$$slots:{default:!0}})}var GS=Ie('<path d="M8.3 14.25c1.86 1.9 5.5.02 5.5-3.55V5.64l2.4-.7A2.74 2.74 0 0 0 18 2.37V.64a.75.75 0 0 0-.92-.62l-.26.06C15.88.3 14.93.51 14 .8c-1.33.45-2.03 1.62-2.01 3.08V9c-3.89.2-5.64 3.29-3.7 5.25ZM.9.1a.9.9 0 0 0 0 1.8h8.2a.9.9 0 0 0 0-1.8H.9ZM.9 5.1a.9.9 0 1 0 0 1.8h7.2a.9.9 0 0 0 0-1.8H.9ZM0 11c0-.5.4-.9.9-.9h4.18a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 11Z"></path>');function Ov(t){Ze(t,{width:"18",height:"15",children:(e,i)=>{var o=GS();b(e,o)},$$slots:{default:!0}})}var YS=Ie('<path d="M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A8 8 0 0 1 11 4.07M5.69 7.1 4.26 5.68A10 10 0 0 0 2.05 11h2.02a8 8 0 0 1 1.62-3.9M2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A8 8 0 0 1 4.07 13zM11 21.95v-2.02a8 8 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.69 8.58l4.74 2.73a.8.8 0 0 1 0 1.37l-4.74 2.74a.8.8 0 0 1-1.19-.68V9.26a.8.8 0 0 1 1.19-.68"></path>');function Bv(t){Ze(t,{testId:"play-speed-icon",children:(e,i)=>{var o=YS();b(e,o)},$$slots:{default:!0}})}var jS=Ie('<path d="M12 2a.9.9 0 01.9.9v10.93l4.56-4.57a.9.9 0 011.28 1.28l-6.1 6.1a.9.9 0 01-1.28 0l-6.1-6.1a.9.9 0 111.28-1.28l4.56 4.57V2.9A.9.9 0 0112 2M4 20a.9.9 0 01.9-.9h14.2a.9.9 0 110 1.8H4.9A.9.9 0 014 20"></path>');function Fv(t){Ze(t,{testId:"download-icon",children:(e,i)=>{var o=jS();b(e,o)},$$slots:{default:!0}})}var XS=Ie('<path d="M8.86 2.1h6.28c.67 0 1.2.21 1.68.7l4.38 4.38c.48.48.7 1 .7 1.68v6.28c0 .68-.22 1.2-.7 1.68l-4.38 4.38c-.48.48-1 .7-1.68.7H8.86c-.68 0-1.2-.22-1.68-.7L2.8 16.82c-.48-.48-.7-1-.7-1.68V8.86c0-.68.22-1.2.7-1.68L7.18 2.8c.48-.49 1-.7 1.68-.7m-.44 2L4.1 8.43c-.18.18-.21.24-.21.5v6.17c0 .25.03.31.2.5l4.32 4.3c.18.18.24.21.5.21h6.17c.25 0 .31-.03.5-.2l4.3-4.32c.18-.18.21-.24.21-.5V8.92c0-.25-.03-.31-.2-.5l-4.32-4.3c-.18-.18-.24-.21-.5-.21H8.92c-.25 0-.32.03-.5.2M13 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"></path>');function Hv(t){Ze(t,{testId:"report-icon",children:(e,i)=>{var o=XS();b(e,o)},$$slots:{default:!0}})}var ZS=Ie('<path d="M4 12.3V12c0-1.47 0-2.55.08-3.4.07-.9.21-1.48.45-1.95a4.85 4.85 0 0 1 2.12-2.12 5.1 5.1 0 0 1 1.95-.45C9.5 4 10.68 4 12.3 4h4.51c-.03-.16-.09-.33-.17-.49a2.4 2.4 0 0 0-1.05-1.05c-.3-.16-.63-.21-.93-.24-.29-.02-.64-.02-1.03-.02h-1.37c-1.58 0-2.81 0-3.81.08a6.84 6.84 0 0 0-2.62.64 6.65 6.65 0 0 0-2.9 2.91c-.4.76-.57 1.6-.65 2.62-.08 1-.08 2.23-.08 3.81v1.37c0 .4 0 .74.02 1.03.03.3.08.62.24.93A2.4 2.4 0 0 0 4 16.8V12.3ZM10.08 6h-.03c-.53 0-.97 0-1.33.03-.39.03-.76.1-1.12.28a2.9 2.9 0 0 0-1.3 1.3c-.17.35-.24.72-.27 1.1C6 9.09 6 9.53 6 10.06v7.9c0 .53 0 .97.03 1.33.03.39.1.76.28 1.12a2.9 2.9 0 0 0 1.3 1.3c.35.17.72.24 1.1.27.37.03.81.03 1.33.03h6.91c.53 0 .97 0 1.33-.03.39-.03.76-.1 1.12-.28a2.9 2.9 0 0 0 1.3-1.3c.17-.35.24-.72.27-1.1.03-.37.03-.81.03-1.34v-7.9c0-.53 0-.97-.03-1.33-.03-.39-.1-.76-.28-1.12a2.9 2.9 0 0 0-1.3-1.3 2.96 2.96 0 0 0-1.1-.27C17.91 6 17.47 6 16.94 6h-6.87ZM8.41 7.92c.06-.04.18-.07.45-.1.28-.02.65-.02 1.22-.02h6.84c.57 0 .94 0 1.22.02.27.03.39.06.45.1.21.1.39.28.5.49.03.06.06.18.09.45.02.28.02.65.02 1.22v7.84c0 .57 0 .94-.02 1.22-.03.27-.06.39-.1.45-.1.21-.28.39-.49.5-.06.03-.18.06-.45.09-.28.02-.65.02-1.22.02h-6.84c-.57 0-.94 0-1.22-.02a1.23 1.23 0 0 1-.45-.1 1.1 1.1 0 0 1-.5-.49 1.23 1.23 0 0 1-.09-.45c-.02-.28-.02-.65-.02-1.22v-7.84c0-.57 0-.94.02-1.22.03-.27.06-.39.1-.45.1-.21.28-.39.49-.5Z"></path>');function $p(t){Ze(t,{children:(e,i)=>{var o=ZS();b(e,o)},$$slots:{default:!0}})}var JS=Ie('<path d="M12 20.1a8.1 8.1 0 1 0 0-16.2 8.1 8.1 0 0 0 0 16.2m0 1.9a10 10 0 1 1 0-20 10 10 0 0 1 0 20m0-12.37A1.32 1.32 0 1 1 12 7a1.32 1.32 0 0 1 0 2.63m-.95 2.82c0-.54.43-.98.95-.98s.95.44.95.98v3.83c0 .54-.43.98-.95.98a.96.96 0 0 1-.95-.98z"></path>');function Uv(t){Ze(t,{testId:"info-icon",children:(e,i)=>{var o=JS();b(e,o)},$$slots:{default:!0}})}var eC=L('<div class="menu-item-value-wrapper s-1w"><!></div>'),tC={hash:"s-1w",code:".menu-item-value-wrapper.s-1w{line-height:normal}"};function zv(t,e){B(e,!0),G(t,tC);let[i,o]=Ne(),r=()=>w(u,"$currentQuality$",i),s=()=>w(f,"$availableQualities$",i),l=()=>w(p,"$isAutoQualityEnabled$",i),d=()=>w(m,"$isMobile$",i),a=he(),u=a.state.currentQuality$,f=a.state.availableQualities$,p=a.state.isAutoQualityEnabled$,m=a.ui.isMobile,$=v(()=>qb({quality:r(),availableQualities:s(),isAutoQualityEnabled:l()}));var y=eC(),_=T(y);nl(_,{get quality(){return r()},get label(){return n($)},get isMobile(){return d()}}),S(y),b(t,y),F(),o()}var oC={"quality-settings":({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?j("auto_quality_option"):e)||"";return{id:"quality-settings",type:"OPEN_SUB_MENU",ariaLabel:j("aria_label_menu_quality",{actual:o}),icon:lc,label:j("menu_quality"),value:e,valueComponent:zv,weight:ts["quality-settings"],children:i?"quality-settings":"quality-other-settings"}},"traffic-saving-switch":({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"traffic-saving-switch",weight:ts["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:j("aria_label_submenu_traffic_saving"),icon:Dv,label:j("menu_traffic_saving"),enabled:t,tooltipText:j("traffic_saving_helper_text"),maxTooltipWidth:175}),"audio-tracks-settings":({currentAudioStream:t,availableAudioStreams:e})=>{let i=bp(t,e);return{id:"audio-tracks-settings",weight:ts["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:j("aria_label_menu_audio_languages",{actual:i}),icon:Ov,label:j("menu_audio_languages"),value:i,children:"audio-tracks"}},"playback-rate-settings":({availablePlaybackRates:t,currentPlaybackRate:e})=>{var o;let i=((o=t.find(r=>r.value===e))==null?void 0:o.displayValue)||"";return{id:"playback-rate-settings",weight:ts["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:j("aria_label_menu_rate",{actual:i}),icon:Bv,label:j("menu_playback_rate"),value:`${e}x`,children:"playback-rate"}},"subtitles-settings":({currentSubtitle:t})=>({id:"subtitles-settings",weight:ts["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:j("aria_label_menu_subtitle",{actual:t.displayValue}),icon:la,iconProps:{type:"outline"},label:j("subtitles_caption"),value:t.displayValue,children:"subtitles"}),download:({onDownloadClick:t})=>({id:"download",weight:ts.download,type:"CLICK",onClick:t,label:j("download_video_caption"),ariaLabel:j("aria_label_menu_download"),icon:Fv}),"show-support":({onReportProblemClick:t})=>({id:"show-support",weight:ts.report,type:"CLICK",onClick:t,label:j("menu_report"),ariaLabel:`${j("menu_report")}. ${j("aria_label_new_tab_alert")}`,icon:Hv,isHiddenFor:["desktop"]}),"copy-data":({onCopyDataClick:t})=>({id:"copy-data",weight:ts["copy-data"],type:"CLICK",onClick:t,label:j("menu_copy_debug"),ariaLabel:j("menu_copy_debug"),icon:$p,isHiddenFor:["desktop"]}),"save-trace-info":({onSaveTraceDataClick:t})=>({id:"save-trace-info",weight:ts["save-trace-info"],type:"CLICK",onClick:t,label:j("menu_save_debug"),ariaLabel:j("menu_save_debug"),icon:$p,isHiddenFor:["desktop"]}),"debug-info":({toggleShowDebugInfo:t})=>({id:"debug-info",weight:ts["debug-info"],type:"CLICK",onClick:t,ariaLabel:j("aria_label_menu_debug_overlay"),label:j("menu_debug_overlay"),icon:Uv,isHiddenFor:["desktop"]})},Jb=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(r=>oC[r](e)),...i.map(r=>({...r,isAdditional:!0}))].filter(r=>{var s,l,d;return!((s=r==null?void 0:r.isHiddenFor)!=null&&s.length)||!((l=r==null?void 0:r.isHiddenFor)!=null&&l.includes("desktop"))&&!o||!((d=r==null?void 0:r.isHiddenFor)!=null&&d.includes("mobile"))&&o}).sort(Ua)};var rC=(t,e)=>{Xu(t,e)},sC=L('<div><div> </div> <div class="close s-t"></div></div>'),aC=L('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),lC=L("<div><!> <!></div>"),dC={hash:"s-t",code:'.settings-menu-container.mobile.s-t{width:100%;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.settings-menu-container.s-t ul{list-style-type:none;margin:0;padding:0}.settings-menu-container.s-t .menu{background-color:var(--settings-bg);border-radius:var(--settings-radius);overflow:hidden;transition:opacity .2s,visibility .2s}.settings-menu-container.s-t .menu .item:first-child:not(.mobile){border-top-left-radius:var(--settings-radius);border-top-right-radius:var(--settings-radius)}.settings-menu-container.s-t .menu .item:last-child{border-bottom-left-radius:var(--settings-radius);border-bottom-right-radius:var(--settings-radius)}.settings-menu-container.s-t .settings-menu .item:first-child:not(.mobile){padding-top:6px}.settings-menu-container.s-t .settings-menu .item:last-child:not(.mobile){padding-bottom:6px}.settings-menu-container.s-t .menu.desktop{bottom:0;max-width:100%;position:absolute;right:0}.settings-menu.s-t{line-height:40px}.settings-menu.desktop.s-t{min-width:300px}.settings-menu-container.s-t .menu.mobile{background:var(--mobile-settings-bg);font-size:15px;line-height:50px;width:100%}.settings-menu-container.s-t .menu.mobile.hidden{display:none}.settings-menu-container.s-t .menu .item:not(.switch-item),.settings-menu-container.s-t .menu .switch-wrapper{align-items:center;color:var(--white);cursor:pointer;display:flex;justify-content:flex-end;position:relative;white-space:nowrap}.settings-menu-container.s-t .menu .item:hover{background-color:var(--settings-item-bg-hover)}.settings-menu-container.s-t .menu .item.mobile:hover{background:var(--mobile-settings-bg)}.settings-menu.s-t .item:not(.switch-item),.settings-menu.s-t .switch-wrapper{padding:0 32px 0 18px}.settings-menu.s-t .item.mobile:not(.switch-item),.settings-menu.s-t .switch-wrapper.mobile{padding:0 14px}.settings-menu.s-t .icon-wrapper{align-items:center;display:flex;height:24px;justify-content:center;margin-right:16px;min-width:24px;width:24px}.settings-menu.s-t .label{flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis}.settings-menu.s-t .item.header.mobile:where(.s-t){border-bottom:var(--divider-border);color:var(--white);column-gap:12px;cursor:pointer;display:flex;justify-content:space-between;margin-bottom:4px}.settings-menu-container.s-t .items::-webkit-scrollbar{width:8px}.settings-menu-container.s-t .items::-webkit-scrollbar-track{background-color:#3a3a3a;border-radius:4px;box-shadow:none}.settings-menu-container.s-t .items::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:#666;border:1px solid transparent;border-radius:5px;min-height:40px}.settings-menu-container.s-t .items::-webkit-scrollbar-thumb:hover{background-color:#777}.settings-menu-container.s-t .items.mobile{max-height:160px;overflow-x:hidden;overflow-y:auto;text-align:left}.close.s-t{height:12px;margin-right:-12px;padding:12px;position:relative;width:12px}.close.s-t:after,.close.s-t:before{background-color:var(--white);content:" ";height:12px;left:18px;position:absolute;width:2px}.close.s-t:before{transform:rotate(45deg)}.close.s-t:after{transform:rotate(-45deg)}'};function Rc(t,e){B(e,!0),G(t,dC);let[i,o]=Ne(),r=()=>w(Oe,"$settingsMenuVisible",i),s=()=>w(it,"$settingsMenuOpenedByKeyboard",i),l=()=>w(Be,"$debugPanelVisible",i),d=()=>w(ce,"$isMobile",i),a=()=>w(Te,"$playerSize",i),u=()=>w(xe,"$hasMpegSources$",i),f=()=>w(Re,"$mobileNotReportControlHidden$",i),p=()=>w(ge,"$autoQualityLimitingAvailable$",i),m=()=>w(K,"$availableSubtitlesList$",i),$=()=>w(Ve,"$isLiveWithPlaybackSpeed",i),y=()=>w(ee,"$availableAudioStreams$",i),_=()=>w(O,"$availablePlaybackRates$",i),x=()=>w(me,"$currentAudioStream$",i),I=()=>w(U,"$currentPlaybackRate$",i),C=()=>w(et,"$trafficSavingEnabled",i),R=()=>w(_e,"$currentQuality$",i),A=()=>w(pe,"$isAutoQualityEnabled$",i),E=()=>w(Ge,"$currentSubtitle$",i),k=()=>w($t,"$additionalSettingsMenuItems$",i),Q=()=>w(Qe,"$isAutoQualityAvailable$",i),H=()=>w(we,"$availableQualities$",i),z=()=>w(ke,"$highQualityEnabled",i),X=g(e,"ref",15,void 0),se=g(e,"playerControlsHeight",3,0),Z=si({}),oe=si({}),J=he(),Ce=Rt(),me=J.state.audioStream$,ee=J.state.availableAudioStreams$,_e=J.state.currentQuality$,we=J.state.availableQualities$,ge=J.state.autoQualityLimitingAvailable$,pe=J.state.isAutoQualityEnabled$,Qe=J.state.isAutoQualityAvailable$,U=J.state.currentPlaybackRate$,O=J.state.availablePlaybackRates$,Ge=J.state.currentSubtitle$,K=J.state.availableSubtitlesList$,ae=J.state.canDownload,xe=J.state.hasMpegSources$,Oe=J.ui.settingsMenu.visible$,it=J.ui.settingsMenu.openedByBtnKeyboard$,ne=J.ui.settingsMenu.ref$,ce=J.ui.isMobile,Re=J.ui.mobileNotReportControlHidden$,Ve=J.state.canChangePlaybackSpeed$,et=J.state.trafficSavingEnabled$,ke=J.state.highQualityEnabled$,Te=J.ui.playerSize,Be=J.ui.debugPanelVisible,It=J.state.isInteractiveTime$,$t=J.ui.additionalSettingsMenuItems$,Ot=J.ui.t,ct=J.actions.internal.downloadVideo,Et=J.actions.internal.closeSettingsMenu,ei=J.actions.internal.openSettingsSubMenu,kt=J.actions.internal.closeSettingsSubMenu,Dt=q(!1),Ht=q(void 0),Y=zb();De(()=>{!r()&&Y.current&&(kt(oe[Y.current]),Y.popAllSubMenus())}),De(()=>{r()||N(Ht,void 0)}),De(()=>{!Y.current&&n(Ht)&&eb(Z,n(Ht))}),De(()=>{X()&&ne.set(X())});async function Ee(yt){var W;Y.pushSubMenu(yt),await ho(),ei(yt,oe[yt]);let Ut=(W=X())==null?void 0:W.firstElementChild;Ut&&lm(Ut)}function le(yt){var Ut;yt==null||yt.stopPropagation(),s()||(Ut=e.returnFocus)==null||Ut.call(e),Et(),N(Dt,!1)}function $e(yt,Ut){J.actions.internal.setQuality(yt,{appliesTo:Ut,byUser:!0}),le()}function Le(yt){J.actions.internal.setAudioStream(yt),le()}function nt(yt,Ut){J.actions.internal.setTrafficSavingEnabled(yt,Ut),Ce.features.qualityDetailsSubMenuEnabled&&le()}function St(yt,Ut){J.actions.internal.setHighQualityEnabled(yt,Ut),le()}function fe(yt){J.actions.internal.setPlaybackRate(yt),le()}function Ue(yt){J.actions.internal.setSubtitle(yt),le()}function ze(){ct()}function at(){(0,Vc.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),J.actions.internal.reportProblem(),J.actions.internal.pause()}function jt(){zl(J.actions.internal.getDebugTextData())}let Ft=()=>{let yt=J.actions.internal.getTraceTextData(),Ut=new Blob([...yt],{type:"application/json"}),W=window.URL.createObjectURL(Ut);Na(W,"vk_player_trace_info","json")};function ci(){Be.set(!l())}function li(){N(Dt,!0)}function Di(){N(Dt,!1)}function At(){return d()?`max-height: ${Math.round(a().height*.6)}px`:`max-height: ${a().height-32-se()}px; overflow: auto;`}let ui=v(()=>ae&&u()&&!f()),hi=v(()=>Ce.features.trafficSaving&&!f()&&p()&&!Ce.features.qualityDetailsSubMenuEnabled),mt=v(()=>m().length>0&&!f()),Xt=v(()=>!!$()&&!f()),Oi=v(()=>Ce.features.audioLanguages&&y().length>=2&&!f()),Si=v(()=>!f());Vt(()=>It.subscribe(yt=>{yt&&!d()&&!n(Dt)&&!s()&&le()}));let ti=v(()=>{let yt=[n(Si)&&"quality-settings",n(Oi)&&"audio-tracks-settings",n(Xt)&&"playback-rate-settings",n(mt)&&"subtitles-settings",n(hi)&&"traffic-saving-switch",n(ui)&&"download",Ce.showSupport&&"show-support","copy-data",Ce.features.saveTraceInfoToFile&&"save-trace-info","debug-info"].filter(Ut=>!!Ut);return Jb({items:yt,context:{qualityDetailsSubMenuEnabled:Ce.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:_(),currentAudioStream:x(),availableAudioStreams:y(),currentPlaybackRate:I(),selectPlaybackRate:fe,trafficSavingEnabled:C(),toggleTrafficSaving:nt,currentQuality:R()||Vc.VideoQuality.INVARIANT,isAutoQualityEnabled:A()||!1,currentSubtitle:E(),isMobile:d(),onDownloadClick:ze,onCopyDataClick:jt,onReportProblemClick:at,onSaveTraceDataClick:Ft,toggleShowDebugInfo:ci},additionalSettingsMenuItems:k()})}),gt=v(()=>Zb({subMenuId:Y.current,context:{availablePlaybackRates:_(),selectPlaybackRate:fe,trafficSavingEnabled:C(),toggleTrafficSaving:nt,currentQuality:R()||Vc.VideoQuality.INVARIANT,isAutoQualityEnabled:A()||!1,isAutoQualityAvailable:Q()||!1,availableQualities:H(),highQualityEnabled:z(),toggleHighQuality:St,availableAudioStreams:y(),availableSubtitlesList:m(),closeSettingsMenu:Et,currentAudioStream:x(),isMobile:d(),selectAudioLanguage:Le,selectQuality:$e,selectSubtitle:Ue}}));var qe=lC();let _i;var _o=T(qe);{var Xo=yt=>{var Ut=aC();let W;Ut.__keydown=[rC,Et];var Lt=T(Ut);{var ni=Zt=>{var rt=sC();let ki;var Bi=T(rt),Jo=T(Bi,!0);S(Bi);var No=P(Bi,2);No.__click=le,S(rt),D((bo,Fi)=>{ki=re(rt,1,"item header s-t",null,ki,bo),ve(Jo,Fi)},[()=>({mobile:d()}),()=>Ot("submenu_settings")]),b(Zt,rt)};V(Lt,Zt=>{d()&&Zt(ni)})}var ut=P(Lt,2);let Ct;bi(ut,21,()=>n(ti),Zt=>Zt.id,(Zt,rt)=>{var ki=Ae(),Bi=ue(ki);{var Jo=bo=>{Tv(bo,{get isMobile(){return d()},get id(){return n(rt).id},get icon(){return n(rt).icon},get iconProps(){return n(rt).iconProps},get label(){return n(rt).label},get ariaLabel(){return n(rt).ariaLabel},get value(){return n(rt).value},get valueComponent(){return n(rt).valueComponent},onClick:()=>{Ee(n(rt).children),N(Ht,n(rt).id,!0)},get ref(){return Z[n(rt).id]},set ref(Fi){Z[n(rt).id]=Fi}})},No=(bo,Fi)=>{{var Nn=yo=>{let Pi=v(()=>`${n(rt).id}-menu-item`);Ev(yo,{get isMobile(){return d()},get id(){return n(Pi)},get onClick(){return n(rt).onClick},get icon(){return n(rt).icon},get label(){return n(rt).label},get ariaLabel(){return n(rt).ariaLabel},closeSettings:le})},$o=(yo,Pi)=>{{var en=Do=>{let pn=v(()=>`${n(rt).id}-menu-item`);Pv(Do,{get isMobile(){return d()},get id(){return n(pn)},get onClick(){return n(rt).onClick},get icon(){return n(rt).icon},get label(){return n(rt).label},get ariaLabel(){return n(rt).ariaLabel},get enabled(){return n(rt).enabled},get tooltipText(){return n(rt).tooltipText},get maxTooltipWidth(){return n(rt).maxTooltipWidth}})};V(yo,Do=>{n(rt).type==="SWITCH"&&Do(en)},Pi)}};V(bo,yo=>{n(rt).type==="CLICK"?yo(Nn):yo($o,!1)},Fi)}};V(Bi,bo=>{n(rt).type==="OPEN_SUB_MENU"?bo(Jo):bo(No,!1)})}b(Zt,ki)}),S(ut),Xe(ut,Zt=>X(Zt),()=>X()),S(Ut),D((Zt,rt,ki)=>{W=re(Ut,1,"settings-menu menu s-t",null,W,Zt),Ct=re(ut,1,"items",null,Ct,rt),We(ut,ki)},[()=>({desktop:!d(),mobile:d(),hidden:!!Y.current}),()=>({mobile:d()}),At]),dt("mouseenter",Ut,li),dt("mouseleave",Ut,Di),b(yt,Ut)};V(_o,yt=>{r()&&yt(Xo)})}var Zo=P(_o,2);bi(Zo,17,()=>n(gt),yt=>yt.id,(yt,Ut)=>{let W=v(()=>{var Lt;return(Lt=n(Ut).minWidth)!=null?Lt:137});Cv(yt,{get isMobile(){return d()},get playerControlsHeight(){return se()},get returnFromSubMenu(){return Y.popSubMenu},get id(){return n(Ut).id},get title(){return n(Ut).title},get closeSettingsMenu(){return Et},openSubMenuList:Ee,get items(){return n(Ut).items},get minWidth(){return n(W)},get refMenuItems(){return Z},get listRef(){return oe[n(Ut).id]},set listRef(Lt){oe[n(Ut).id]=Lt}})}),S(qe),D(yt=>_i=re(qe,1,"settings-menu-container s-t",null,_i,yt),[()=>({mobile:d(),hidden:!r()})]),b(t,qe),F(),o()}Ye(["keydown","click"]);var cC=L('<button class="btn s-15"> </button>'),uC={hash:"s-15",code:"button.btn.s-15{background:hsla(0,0%,100%,.1);border-radius:8px;font-size:14px;line-height:18px;margin-top:12px;padding:6px 12px 7px}"};function Wv(t,e){G(t,uC);var i=cC();i.__click=function(...r){var s;(s=e.onClick)==null||s.apply(this,r)};var o=T(i,!0);S(i),D(()=>ve(o,e.label)),b(t,i)}Ye(["click"]);var pC=L('<div class="container s-r"><div class="notification s-r"><div><p class="description s-r"><!></p> <!></div> <!></div></div>'),fC={hash:"s-r",code:".container.s-r{display:flex;justify-content:center;left:0;pointer-events:none;position:absolute;right:0;top:20px}.notification.s-r{background:var(--notification-bg);border-radius:var(--notification-radius);display:inline-flex;gap:10px;padding:9px 14px 10px 12px;pointer-events:auto}.description.s-r{font-size:13px;line-height:16px;margin:0;white-space:pre}"};function Nc(t,e){B(e,!0),G(t,fC);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=Rt(),{ui:{t:r}}=he(),s=r(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var l=pC(),d=T(l),a=T(d),u=T(a),f=T(u);Mc(f,{get message(){return s}}),S(u);var p=P(u,2);{var m=y=>{let _=v(()=>r("slow_video_notification_button"));Wv(y,{get label(){return n(_)},get onClick(){return e.onSelectAutoQuality}})};V(p,y=>{o||y(m)})}S(a);var $=P(a,2);Rs($,{get onClick(){return e.onClose}}),S(d),S(l),jr(3,d,()=>ys,()=>({duration:i})),b(t,l),F()}var Dc=require("@vkontakte/videoplayer-shared/es2018"),rl="annotation",yp=class{constructor(e){this.slots=new Map;this.disabledIds=new Set(e)}init(e,i){this.shadowRootContainer=e,this.store=i}add(e,i){var d;let{overlay:o,id:r,controlsBehaviour:s,hideAllControls:l}=i;return this.disabledIds.has(r)?{success:!1,message:"current slotId is disabled via config"}:(e.setAttribute("slot",rl),this.setupSlotStyles(e,o),this.shadowRootContainer.append(e),this.slots.set(r,{rootElement:e,options:i}),s&&this.runHidingControlsWhenIntersected(r,s),l&&((d=this.store)==null||d.ui.isControlsAvailable.set(!1)),{success:!0})}setupSlotStyles(e,i){switch(e.style.position="absolute",i){case"over_video":e.style.zIndex="calc(var(--video-container-z-index) + 1)";break;case"over_controls":e.style.zIndex="calc(var(--controls-container-z-index) + 1)";break;default:e.style.zIndex="0"}}async runHidingControlsWhenIntersected(e,{observedSlotElementId:i,controlsToObserve:o}){var f;let r=this.slots.get(e);if(!r)return;let s=await this.findSlotElement(r.rootElement,i,e),{controls:l,hiddenControls:d}=((f=this.store)==null?void 0:f.ui)||{},a=new MutationObserver(p=>p.forEach(()=>{let m=Ds(s,this.shadowRootContainer);o.forEach($=>{let y=l==null?void 0:l[$],_=y?be(y):null,x=d==null?void 0:d[$];_&&(x==null||x.set((0,Dc.isIntersecting)(_,m)))})}));a.observe(s,{childList:!0,subtree:!0}),r.observer=a;let u=new Dc.Subscription;o.forEach(p=>{l&&u.add(l[p].subscribe(m=>{let $=d==null?void 0:d[p];m&&m.isDisplayed?$==null||$.set((0,Dc.isIntersecting)(m,Ds(s,this.shadowRootContainer))):$==null||$.set(!1)}))}),r.subs=u}async findSlotElement(e,i,o){return new Promise(r=>{let s=null,l=new MutationObserver(()=>{if(s=e.querySelector(`#${i}`),s){l.disconnect();let a=this.slots.get(o);a&&(a.observerForFindingSlotElement=void 0),r(s)}});l.observe(e,{childList:!0,subtree:!0});let d=this.slots.get(o);d&&(d.observerForFindingSlotElement=l)})}remove(e){var u,f;let i=this.slots.get(e);if(!i)return;let{rootElement:o,observer:r,observerForFindingSlotElement:s,subs:l,options:{controlsBehaviour:d,hideAllControls:a}}=i;o&&o.remove(),[r,s].forEach(p=>p==null?void 0:p.disconnect()),l==null||l.unsubscribe(),this.slots.delete(e),a&&((u=this.store)==null||u.ui.isControlsAvailable.set(!0)),(f=d==null?void 0:d.controlsToObserve)==null||f.forEach(p=>{var m,$;($=(m=this.store)==null?void 0:m.ui.hiddenControls[p])==null||$.set(!1)})}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}haveSlots(){return this.slots.size>0}};var mC=L('<div class="container s-5"><!></div>'),vC={hash:"s-5",code:".container.s-5{align-items:center;animation-fill-mode:forwards;animation-name:s-5-videoPlayerStatusIconPopup;background-color:#00000073;border-radius:100%;display:flex;height:64px;justify-content:center;width:64px;will-change:opacity,scale}@keyframes s-5-videoPlayerStatusIconPopup{0%{opacity:0;scale:.6}10%{animation-timing-function:ease-in;opacity:1;scale:1}75%{opacity:1;scale:1}90%{animation-timing-function:ease-out;opacity:0;scale:.4}to{opacity:0;scale:0}}"};function Oc(t,e){B(e,!0),G(t,vC);let i=g(e,"reversed",3,!1);var o=Ae(),r=ue(o);As(r,()=>e.Icon,s=>{var l=mC(),d=T(l);Ri(d,()=>e.Icon,(a,u)=>{u(a,{get size(){return"48"},get reversed(){return i()}})}),S(l),D(()=>We(l,`animation-duration: ${e.duration}ms`)),b(s,l)}),b(t,o),F()}var Kv=require("@vkontakte/videoplayer-core/es2018"),gC=L('<div class="container s-1e"><!></div>'),hC={hash:"s-1e",code:".container.s-1e{align-items:center;display:flex;height:100%;justify-content:center;pointer-events:none;position:absolute;width:100%}"};function qv(t,e){B(e,!0),G(t,hC);let[i,o]=Ne(),r=()=>w(a,"$playbackState$",i),s=()=>w(f,"$previewTrackActive",i),l=()=>w(p,"$previewTrackDragInProgress",i),d=()=>w(u,"$isPlaying$",i),{state:{playbackState$:a,isPlaying$:u},ui:{previewTrackActive:f,previewTrackDragInProgress:p}}=he(),{features:{playbackStatusShow:m},playbackStatusAnimationDuration:$}=Rt(),y=0,_=q(null),x=q(!1);De(()=>{r()===Kv.PlaybackState.PLAYING?N(_,Mn,!0):r()===Kv.PlaybackState.PAUSED?N(_,Bs,!0):N(_,null)}),De(()=>{if(!(!m||s()||l()))return y=window.setTimeout(()=>{y=0,N(_,null)},$),()=>{y&&(window.clearTimeout(y),y=0)}}),De(()=>{d()&&!n(x)&&(N(x,!0),N(_,null))});var I=Ae(),C=ue(I);{var R=A=>{var E=gC(),k=T(E);Oc(k,{get duration(){return $},get Icon(){return n(_)}}),S(E),b(A,E)};V(C,A=>{n(_)&&m&&A(R)})}b(t,I),F(),o()}var _C=L('<div><div data-testid="video-container"></div></div>'),bC={hash:"s-d",code:".video-container.s-d,.video-wrapper.s-d{height:100%;left:0;position:absolute;top:0;width:100%}.video-wrapper.s-d{background:var(--black)}.video-container.s-d,.video-wrapper.s-d{z-index:var(--video-container-z-index)}.video-container.s-d{transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.s-d{transition:none}.nocursor.s-d{cursor:none}"};function sl(t,e){B(e,!0),G(t,bC);let[i,o]=Ne(),r=()=>w(p,"$rotateAlpha",i),s=()=>w(m,"$playerSize",i),l=()=>w(f,"$playerPhase",i),d=()=>w(y,"$chromecastConnected$",i),a=()=>w($,"$isPlaying$",i),u=g(e,"videoContainer",15),{playerPhase:f,ui:{rotateAlpha:p,playerSize:m},state:{isPlaying$:$,chromecastConnected$:y}}=he(),{isSmoothVideoRotate:_}=Rt(),x=v(()=>u()&&r()%180?s().height/s().width:1);var I=_C();let C;I.__contextmenu=function(...E){var k;(k=e.onContextMenu)==null||k.apply(this,E)},I.__mousedown=function(...E){var k;(k=e.onMouseDown)==null||k.apply(this,E)},I.__mouseup=function(...E){var k;(k=e.onMouseUp)==null||k.apply(this,E)},I.__click=function(...E){var k;(k=e.onClick)==null||k.apply(this,E)},I.__dblclick=function(...E){var k;(k=e.onDblClick)==null||k.apply(this,E)};var R=T(I);let A;Xe(R,E=>u(E),()=>u()),S(I),D((E,k)=>{C=re(I,1,"video-wrapper s-d",null,C,E),A=re(R,1,"video-container s-d",null,A,k),We(R,`transform: rotate(${r()}deg) scale(${n(x)})`),Me(R,"data-is-playing",a())},[()=>({hidden:l()!=="video"||d(),nocursor:e.hideCursor}),()=>({"fast-rotate":!_})]),b(t,I),F(),o()}Ye(["contextmenu","mousedown","mouseup","click","dblclick"]);var $C=L('<div><span class="text s-1g"> </span> <!></div>'),yC={hash:"s-1g",code:".root.s-1g{background-color:var(--double-forward-bg);border-radius:100px;color:var(--white);display:flex;gap:4px;left:50%;opacity:0;padding:6px 12px;pointer-events:none;position:absolute;top:24px;transition:opacity var(--controls-transition-duration) var(--controls-transition-fn);visibility:hidden}.root.s-1g,.root.visible.s-1g{transform:translateX(-50%)}.root.visible.s-1g{opacity:1;visibility:visible}.text.s-1g{font-size:13px;font-weight:600;line-height:16px}"};function Qv(t,e){B(e,!0),G(t,yC);let{ui:{t:i}}=he();var o=$C();let r;var s=T(o),l=T(s,!0);S(s);var d=P(s,2);Ec(d,{get size(){return"16"},fill:"currentColor"}),S(o),D((a,u)=>{r=re(o,1,"root s-1g",null,r,a),ve(l,u)},[()=>({visible:e.isVisible}),()=>i("double_forward_label")]),b(t,o),F()}var xC=L('<div class="container s-1h" role="button" data-testid="preview-track-overlay"><div class="icon s-1h"><!></div></div>'),wC={hash:"s-1h",code:".container.s-1h{background-color:rgba(0,0,0,.48);cursor:pointer;height:100%;position:absolute;width:100%}.container.s-1h,.icon.s-1h{align-items:center;display:flex;justify-content:center}.icon.s-1h{background-color:#00000073;border-radius:100%;height:64px;transition:transform .2s;transition-timing-function:ease-out;width:64px;will-change:transform}.container.s-1h:hover .icon:where(.s-1h){transform:scale(1.15)}"};function Gv(t,e){B(e,!1),G(t,wC);let o=he().actions.internal.closePreviewTrack,r=200,s=u=>{u.stopPropagation(),o()};So();var l=xC();l.__click=s;var d=T(l),a=T(d);return Mn(a,{get size(){return"32"}}),S(d),S(l),jr(3,l,()=>ys,()=>({duration:r})),b(t,l),Lf(e,"handleClick",s),F({handleClick:s})}Ye(["click"]);var SC=L('<div class="container s-1i"><div class="notification s-1i"><span class="text s-1i"> </span></div></div>'),CC={hash:"s-1i",code:".container.s-1i{display:flex;justify-content:center;left:0;pointer-events:none;position:absolute;right:0;top:20px}.notification.s-1i{background-color:var(--black-alpha-40);border-radius:var(--notification-radius);padding:10px 16px}.text.s-1i{font-size:14px;font-weight:500;line-height:18px}"};function Yv(t,e){B(e,!1),G(t,CC);let{ui:{t:i}}=he();So();var o=SC(),r=T(o),s=T(r),l=T(s,!0);S(s),S(r),S(o),D(d=>ve(l,d),[()=>i("preview_track_notification_text")],Tn),jr(3,r,()=>ys,()=>({duration:340})),b(t,o),F()}var TC=(t,e,i,o,r,s)=>{if(t.stopPropagation(),e()||o()){s();return}},IC=L("<div><!></div>"),EC=L('<div class="spherical-video-icon s-9"><!></div>'),kC=L("<div><!></div>"),PC=L('<div class="settings-menu s-9"><!></div>'),AC=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),LC=L("<!> <!> <!>",1),MC=L('<div class="blocked s-9"></div>'),VC=L('<div class="player-wrapper s-9"><!> <div class="overlay-container"></div></div> <!>',1),RC={hash:"s-9",code:".blocked.s-9,.player-wrapper.s-9{height:100%;position:absolute;width:100%}.blocked.s-9{z-index:var(--overlay-container-z-index)}.player-wrapper.s-9 .player-media{background:var(--black);height:100%;left:0;position:absolute;top:0;transition:transform .2s ease-in-out;width:100%}.spherical-video-icon.s-9{display:inline-block;left:calc(50% - 38px);position:absolute;top:calc(50% - 23px)}.ads-container.s-9{background:var(--black);height:100%;left:0;position:absolute;top:0;width:100%;z-index:var(--ads-container-z-index)}.settings-menu.s-9{bottom:57px;left:0;position:absolute;right:18px;transition:opacity .2s;z-index:var(--settings-menu-z-index)}"};function Xv(t,e){B(e,!0),G(t,RC);let[i,o]=Ne(),r=()=>w(ri,"$notificationsToShow$",i),s=()=>w(ui,"$playerPhase",i),l=()=>w(_o,"$isLoaderVisible",i),d=()=>w(li,"$adPlaybackState",i),a=()=>w(ni,"$crashed",i),u=()=>w(bo,"$isInteractiveTime$",i),f=()=>w(Oi,"$settingsMenuVisible",i),p=()=>w(Fi,"$isInteractiveExpectation$",i),m=()=>w(Xt,"$controlsVisible",i),$=()=>w($o,"$touched",i),y=()=>w(yr,"$graphIsOpened$",i),_=()=>w(hi,"$isFullscreen",i),x=()=>w(xs,"$autoplayNextEnabled$",i),I=()=>w(Ut,"$postrollPassed",i),C=()=>w(Xo,"$isEnded$",i),R=()=>w(or,"$cursorInside",i),A=()=>w(er,"$isControlsAvailable",i),E=()=>w(fn,"$doubleForwardOn$",i),k=()=>w(tr,"$fakeIsPlaying$",i),Q=()=>w(gn,"$bottomNoSmooth",i),H=()=>w(Do,"$interactiveTimeIndicator",i),z=()=>w(ki,"$playerSize",i),X=()=>w(Bi,"$is3DVideo",i),se=()=>w(mn,"$doubleForwardAvailable$",i),Z=()=>w(qe,"$contextMenuVisible$",i),oe=()=>w(ci,"$playbackState$",i),J=()=>w(yo,"$hotKeyMapData",i),Ce=()=>w(ti,"$scrubbingInProgress",i),me=()=>w(gt,"$volumeChangingInProgress",i),ee=()=>w(Zo,"$chromecastConnected$",i),_e=()=>w(hn,"$controlsTimeoutActive",i),we=()=>w(Si,"$settingsMenuOpenedByKeyboard",i),ge=()=>w(Jt,"$contextMenuOpenedByKeyboard$",i),pe=()=>w(sn,"$contextMenuOpenedByHotKey$",i),Qe=()=>w(yi,"$contextMenuButtonRef$",i),U=()=>w(Ur,"$contextMenuLastActiveElem$",i),O=()=>w(mt,"$isFullscreenOpenedByKeyboard",i),Ge=()=>w(Ft,"$language$",i),K=()=>w(lr,"$previewTrackActive$",i),ae=()=>w(Jo,"$icon3DVideoVisible",i),xe=()=>w(yt,"$chromecastDeviceName$",i),Oe=()=>w(Zt,"$currentSubtitle$",i),it=()=>w(rt,"$currentSubtitleCaptions$",i),ne=()=>w(Di,"$position$",i),ce=()=>w(At,"$duration$",i),Re=()=>w(W,"$isLive$",i),Ve=()=>w(Lt,"$isPlaying$",i),et=()=>w(hr,"$contextMenuPosition$",i),ke=()=>w(_r,"$previewTrackNotificationVisible$",i),Te=()=>w(Pi,"$showHotKeyMap",i),Be=()=>w(_i,"$debugPanelVisible",i),It=()=>w(Rr,"$userActionsDisabled$",i),$t=g(e,"videoContainer",15),Ot=g(e,"adsSlotId",3,void 0),ct=g(e,"adsParams",3,void 0),Et=g(e,"adsAutoplayParam",3,void 0),ei=g(e,"duration",3,void 0),kt=g(e,"logoTargetUrl",3,""),Dt=g(e,"showNextPrevButtons",3,!1),Ht=g(e,"nextButtonActive",3,!1),Y=g(e,"prevButtonActive",3,!1),Ee=g(e,"endScreenVideoTitle",3,void 0),le=g(e,"endScreenVideoThumb",3,void 0),$e=g(e,"isOneVideoPlaylist",3,!1),Le=g(e,"shadowRootContainer",3,void 0),nt=g(e,"outerContainerRef",3,void 0),St=g(e,"playerStarted",3,!1),fe=g(e,"fullScreenTarget",3,void 0),Ue=g(e,"showMiniTimer",3,!1),ze=g(e,"showEndScreen",3,!0),at=g(e,"keyboardControls",15),jt=e.store.getLogger().createComponentLog("Root component"),Ft=e.store.interfaceLanguage$,ci=e.store.state.playbackState$,li=e.store.ads.playbackState,Di=e.store.state.positionWithScrubbing$,At=e.store.state.duration$,ui=e.store.playerPhase,hi=e.store.ui.isFullscreen,mt=e.store.ui.isFullscreenOpenedByKeyboard,Xt=e.store.ui.controlsVisible,Oi=e.store.ui.settingsMenu.visible$,Si=e.store.ui.settingsMenu.openedByBtnKeyboard$,ti=e.store.ui.scrubbingInProgress,gt=e.store.ui.volumeChangingInProgress,qe=e.store.ui.contextMenu.visible$,_i=e.store.ui.debugPanelVisible,_o=e.store.state.isLoaderVisible,Xo=e.store.state.isEnded$,Zo=e.store.state.chromecastConnected$,yt=e.store.state.chromecastDeviceName$,Ut=e.store.ads.postrollPassed,W=e.store.state.isLive$,Lt=e.store.state.isPlaying$,ni=e.store.state.crashed$,ut=e.store.webApi.annotationsApi,Ct=e.store.webApi.pictureInPictureApi,Zt=e.store.state.currentSubtitle$,rt=e.store.state.currentSubtitleCaptions$,ki=e.store.ui.playerSize,Bi=e.store.ui.is3DVideo,Jo=e.store.ui.icon3DVideoVisible,No=e.store.state.isInteractive,bo=e.store.state.isInteractiveTime$,Fi=e.store.state.isInteractiveExpectation$,Nn=e.store.state.hasInteractiveBranches,$o=e.store.ui.touched,yo=e.store.ui.modals.hotKeyMap.data,Pi=e.store.ui.modals.hotKeyMap.show,en=e.store.ui.overlayContainer$,Do=e.store.ui.controls.interactiveTimeIndicator,pn=e.store.state.showInteractiveTimeIndicator,hr=e.store.ui.contextMenu.position$,Vr=e.store.actions.internal.setQuality,is=e.store.actions.internal.closeSettingsMenu,xs=e.store.ui.autoplayNextEnabled$,Rr=e.store.ui.userActionsDisabled,er=e.store.ui.isControlsAvailable,Nr=e.store.ui.videoTitleInfo,fn=e.store.ui.doubleForwardOn$,mn=e.store.ui.doubleForwardAvailable$,_r=e.store.ui.previewTrackNotificationVisible,br=e.store.actions.internal.getVideoElement,tn=e.store.actions.internal.checkFullscreenSupport,{fakeIsPlaying$:tr,notifications$:$r,graphIsOpened$:yr}=Co(),Hi=q(void 0),Dr=q(void 0),ir=q(void 0),Dn=q(void 0),ro,Or,On;yo.set(G_());let{closeNotification:ht,notificationsToShow$:ri}=$r,xr=v(()=>!!r().slow_video),wr=()=>ht("slow_video"),Br=v(()=>(s()==="video"&&l()||s()==="ads"&&d()==="inactive")&&!a()),vn=q(void 0),gn=de(!1),Oo,hn=de(!1),_n=de(),or=de(!1),bn=q(!1),Bo=q(!1),Bn=q(!1),Fn=q(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),Yi=v(()=>u()&&!f()&&!(n(bn)||n(Bo))&&!(n(Bn)&&!p())),so=!0,$n=v(()=>e.uiConfig.features.thumbTimer&&Ue()&&s()==="video"&&!m()&&!a()&&!No&&(e.uiConfig.hideThumbTimerAfterTouch&&!$()||!e.uiConfig.hideThumbTimerAfterTouch)),Hn=e.uiConfig.titleShowBehaviour,Sr=v(()=>!["video","thumb"].includes(s())||Hn==="never"||y()?!1:Hn==="fullscreen"?_():!0),nr=v(()=>Hn==="always"||s()==="thumb"?!1:!m()),rr=q(!1),pt=v(()=>(ze()||e.showAutoplayNext&&x())&&!!Ee()&&!!le()&&(e.showAds&&I()||!e.showAds)&&C()&&!a()&&!n(rr)),xt=v(()=>R()&&!(m()||n(pt))&&!u()&&A()&&!E()),ao=q(!1),lo=v(()=>k()!==null),{toggle:on}=tr,ji=!1,Ui=null;Ct==null||Ct.setContext(xd());let co=()=>{e.autoplay&&!No&&e.uiConfig.controls.showOnStartupAtAutoplay&&Li(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:co});let Un=()=>{window.clearTimeout(ro),hn.set(!1)},Fr=()=>{window.clearTimeout(Or),_n.set(null)},Li=ye=>{Un(),hn.set(!0),ro=window.setTimeout(()=>hn.set(!1),ye);let wt=ye-100;Oo=window.setTimeout(()=>{Q()&&gn.set(!1)},wt>0?wt:ye)},ws=(ye,wt)=>{Fr(),_n.set(wt),Or=window.setTimeout(()=>_n.set(null),ye)},os=Bi.subscribe(ye=>{Jo.set(ye),ye&&(window.clearTimeout(On),On=window.setTimeout(()=>Jo.set(!1),e.uiConfig.controls.hide360IconTimeout))}),ns=async()=>{var wt,Bt,qt,Ti;let ye=ia();if(ye){let Ii=Xd(),Ei=To();ye=Ii===Ei||Ii===Le()}if(ye){Li(e.uiConfig.controls.hideTimeoutFullscreen);try{await(Ct==null?void 0:Ct.exit())}catch(Ii){jt({message:String(Ii)})}}hi.set(ye),e.store.getAdmanWrapper().setFullscreen(ye),_()?(Bt=(wt=e.store.callbacks)==null?void 0:wt.onFullscreenEnter)==null||Bt.call(wt):(Ti=(qt=e.store.callbacks)==null?void 0:qt.onFullscreenExit)==null||Ti.call(qt)},rs=ye=>{let{width:wt,height:Bt}=ye.target;ki.set({width:wt,height:Bt})},Hr=()=>{let{width:ye,height:wt}=n(Hi).getBoundingClientRect();ki.set({width:ye,height:wt})};Vt(()=>{var wt;return Yu(ns),e.uiConfig.features.annotationsInside&&(ut==null||ut.init(n(Hi))),Fa(Ct)&&(Ct==null||Ct.assignPlayerContainer(n(Hi)),Ct==null||Ct.setExternalEventHandlers({resize:rs,leavepictureinpicture:Hr})),e.interactiveContainer&&((wt=$t().parentElement)==null||wt.insertBefore(e.interactiveContainer,$t().nextSibling)),()=>{window.clearTimeout(ro),window.clearTimeout(Oo),window.clearTimeout(Or),window.clearTimeout(On),os(),Ct==null||Ct.dispose().catch(Bt=>{jt({message:String(Bt)})}),ju(ns)}});let To=()=>{let ye=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!nt()?n(Hi):nt(),wt=ye.getRootNode(),Bt=wt instanceof ShadowRoot?wt.host:wt,qt=fe()instanceof HTMLElement&&fe().contains(Bt);return e.uiConfig.allowChangingFullscreenTarget&&fe()&&qt?fe():ye},nn=()=>{qe.set(!1)},Xi=()=>{is(),nn()},sr=async()=>{if(!tn()){jt({message:"fullscreen disabled"});return}nn(),ia()?(await Gu(document),jt({message:"exit fullscreen"})):(jt({message:"request fullscreen"}),await Qu(To()))},Fe=ye=>{y()||(ye.preventDefault(),qe.set(!0),hr.set({left:ye.clientX,top:ye.clientY}))};function Mt(){or.set(!0),No||Li(e.uiConfig.controls.hideTimeoutCursor)}function $i(ye){var Ti,Ii;let{relatedTarget:wt}=ye,qt=!!(wt&&((Ti=n(ir))!=null&&Ti.contains(wt)))&&((Ii=at())==null?void 0:Ii.isFocused());!No&&!qt&&(gn.set(!0),Li(e.uiConfig.controls.hideTimeoutCursor))}function Fo(){or.set(!1),N(Bo,!1),N(bn,!1),ji=!1,e.store.actions.internal.releaseCamera(),Li(e.uiConfig.controls.hideTimeout),E()&&wo()}function uo(ye){return ye?ye.offsetTop+uo(ye.offsetParent):0}function Io(ye){return ye?ye.offsetLeft+Io(ye.offsetParent):0}function po(ye){if(H()&&pn){let wt=ye.currentTarget,Bt=uo(wt),qt=Io(wt),Ti=ye.pageX-qt,Ii=ye.pageY-Bt,{left:Ei,bottom:xi,right:ls}=H(),ds=ls-Ei;return Ti>=Ei-ds&&Ii<=xi+ds}}function Ho(ye){if(n(Hi)){let wt=uo(ye.currentTarget),Bt=z().height,qt=ye.pageY-wt;if(po(ye)){N(Bo,!1);return}qt<40?N(Bo,!0):qt>Bt-40?N(bn,!0):(N(Bo,!1),f()||N(bn,!1))}}function zn(ye){Ho(ye),!n(Yi)&&!E()&&Li(e.uiConfig.controls.hideTimeoutCursor),X()&&ji&&Ui&&e.store.actions.internal.moveCameraFocusPX(Ui.clientX-ye.clientX,Ui.clientY-ye.clientY,ye.timeStamp-Ui.timeStamp),Ui=ye}let rn=null,xo=()=>{rn=window.setTimeout(()=>{e.store.actions.internal.changeDoubleForwardOn(!0),Un()},e.uiConfig.doubleForwardActivationTime)},wo=()=>{e.store.actions.internal.changeDoubleForwardOn(!1),rn&&clearTimeout(rn),rn=null},Wn=ye=>{ye.preventDefault(),ye.button===0&&(ji=!0,e.store.actions.internal.holdCamera(),se()&&xo()),!ji&&Li(e.uiConfig.controls.hideTimeoutCursor)},Kn=ye=>{ye.preventDefault(),ye.button===0&&(Ui=ye,ji=!1,e.store.actions.internal.releaseCamera()),!E()&&Li(e.uiConfig.controls.hideTimeoutCursor)},yn=ye=>{ye.preventDefault(),so&&(jt({message:"double click on video"}),sr(),Li(e.uiConfig.controls.hideTimeoutCursor))},Cr=ye=>{var wt;if(ye.preventDefault(),E()){wo();return}if(rn&&wo(),Z()||f()){Xi();return}if(!(C()&&!Nn)){if(n(lo))return on();if((wt=at())==null||wt.focus(),!St()){e.firstStart(),Li(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||oe()!==jv.PlaybackState.PLAYING)&&e.store.actions.internal.togglePlay(),Li(e.uiConfig.controls.hideTimeoutCursor)}},ss=ye=>{Xi(),$o.set(!0),Li(e.uiConfig.controls.hideTimeout),ye&&ws(e.uiConfig.controls.hideHotKeyHelpers,ye)},ar=()=>{var ye,wt;Xi(),(ye=e.store.callbacks)!=null&&ye.onOpenHotKeyMap?(wt=e.store.callbacks)==null||wt.onOpenHotKeyMap(J()):Pi.update(Bt=>!Bt)},Je=()=>{$o.set(!0)},Jt=e.store.ui.contextMenu.openedByBtnKeyboard$,yi=e.store.ui.contextMenu.btnRef$,fo=q(void 0),sn=e.store.ui.contextMenu.openedByHotKey$,Ur=e.store.ui.contextMenu.lastActiveElem$,Eo=q(!1),lr=e.store.ui.previewTrackActive;De(()=>{en.set(n(vn))}),De(()=>{N(Bn,n(Fn)&&oe()!==jv.PlaybackState.PLAYING,!0),n(Fn)||Tt(()=>N(Fn,!0))}),De(()=>{var wt,Bt;let ye=(n(Bn)||C()||f()||Ce()||me()||ee()||_e()||n(Eo))&&!n(Yi)&&(s()==="video"||s()==="ads")&&!a()&&A();Xt.set(ye),!ye&&!_e()&&((wt=n(ir))!=null&&wt.contains(ip()))&&((Bt=at())==null||Bt.focus())}),De(()=>{!Ce()&&n(ao)&&!u()&&Li(e.uiConfig.controls.hideTimeoutCursor),Tt(()=>N(ao,Ce(),!0))}),De(()=>{n(Dn),f(),we(),Tt(()=>nc(n(Dn),f(),we()))}),De(()=>{n(fo),Z(),ge(),pe(),Tt(()=>{let ye=ge()||pe();nc(n(fo),Z(),ye)})}),De(()=>{let ye=Qe();ye&&(Z(),Tt(()=>Wl(ye,Z(),Jt)))}),De(()=>{let ye=U();ye&&(Z(),Tt(()=>J_(ye,Z(),sn)))}),De(()=>{var ye;!O()&&_()&&(Tt(()=>mt.set(!1)),(ye=at())==null||ye.focus())}),De(()=>{y()&&Xi()});let as=q(void 0),Tr=ye=>{Nr.set(Zn(br(),{title:n(as)},"title",ye))},pa=(ye,wt)=>{var Ii,Ei;let Bt=(Ei=(Ii=e.store.callbacks)==null?void 0:Ii.uiInfo)==null?void 0:Ei.onUpcomingLiveViewStateChanged;if(!Bt)return;let qt=!!wt,Ti={...Zn(n(Hi),{upcomingLiveScreen:wt},"upcomingLiveScreen",qt),...ye};Bt(Ti)};var Ss=VC();dt("blur",Ta,Xi);var xn=ue(Ss);xn.__mousemove=zn;var lt=T(xn);let di=v(()=>s()==="ads"),Uo=v(()=>n(lo)?on:void 0);Xe(gm(lt,{startDoubleForwardActivationTimer:xo,stopDoubleForward:wo,toggleFullscreen:sr,hideContextMenu:Xi,showHotKeyHelpers:ss,showKeyMap:ar,get isAds(){return n(di)},get fakePlayButtonHandler(){return n(Uo)},get nextButtonActive(){return Ht()},get prevButtonActive(){return Y()},children:(ye,wt)=>{var Bt=LC(),qt=ue(Bt);sl(qt,{get hideCursor(){return n(xt)},onClick:Cr,onContextMenu:Fe,onMouseDown:Wn,onMouseUp:Kn,onDblClick:yn,get videoContainer(){return $t()},set videoContainer(Ei){$t(Ei)}});var Ti=P(qt,2);La(Ti,()=>"slot",!1,(Ei,xi)=>{to(Ei,()=>({name:rl}))});var Ii=P(Ti,2);As(Ii,Ge,Ei=>{var xi=AC(),ls=ue(xi);let ds=v(()=>s()!=="thumb"||a()||No&&e.autoplay);il(ls,{get hidden(){return n(ds)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart},onContextMenu:Fe,onClick:nn});var dl=P(ls,2);{var pd=He=>{Gv(He,{})};V(dl,He=>{K()&&He(pd)})}var Cs=P(dl,2);qv(Cs,{});var cs=P(Cs,2);Qv(cs,{get isVisible(){return E()}});var fa=P(cs,2);{var Us=He=>{let pi=v(()=>{var zo;return(zo=e.live)==null?void 0:zo.startTime});Ac(He,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(pi)},onUpcomingLiveViewStateChanged:pa,onContextMenu:Fe,onClick:nn})};V(fa,He=>{s()==="LiveWaitingStart"&&He(Us)})}var ma=P(fa,2);{var us=He=>{ol(He,{kind:"recover",get thumbUrl(){return e.thumbUrl},onContextMenu:Fe,onClick:nn})};V(ma,He=>{s()==="LiveWaitingRecover"&&He(us)})}var Sn=P(ma,2);{var cl=He=>{ol(He,{kind:"record",get thumbUrl(){return e.thumbUrl},onContextMenu:Fe,onClick:nn})};V(Sn,He=>{s()==="LiveWaitingRecord"&&He(cl)})}var va=P(Sn,2);{var zr=He=>{var pi=IC();let zo;var Ir=T(pi);Jd(Ir,{get adsSlotId(){return Ot()},get adsParams(){return ct()},get adsAutoplayParam(){return Et()},get duration(){return ei()},get adsExternalApi(){return e.adsExternalApi}}),S(pi),D(Cn=>zo=re(pi,1,"ads-container s-9",null,zo,Cn),[()=>({hidden:s()!=="ads"})]),b(He,pi)};V(va,He=>{e.showAds&&St()&&He(zr)})}var ul=P(va,2);{var fd=He=>{let pi=v(()=>!ze()&&e.showAutoplayNext&&x());fm(He,{get title(){return Ee()},get thumb(){return le()},get isHide(){return n(pi)},clickCloseIcon:()=>N(rr,!0)})};V(ul,He=>{n(pt)&&Ee()&&le()&&He(fd)})}var ga=P(ul,2);{var md=He=>{let pi=v(()=>_()?"md":"sm"),zo=v(()=>{var Ir;return(Ir=e.store.callbacks)==null?void 0:Ir.onTitleClicked});bv(He,{get title(){return e.title},get getVideoDeeplink(){return e.getVideoDeeplink},get isHidden(){return n(nr)},onVisibilityChanged:Tr,onMouseEnter:()=>{N(Eo,!0)},onMouseLeave:()=>{N(Eo,!1)},get size(){return n(pi)},get onTitleClicked(){return n(zo)},get ref(){return n(as)},set ref(Ir){N(as,Ir,!0)}})};V(ga,He=>{n(Sr)&&He(md)})}var pl=P(ga,2);{var fl=He=>{let pi=v(()=>s()==="video"&&m());kc(He,{get isShifted(){return n(pi)}})};V(pl,He=>{X()&&He(fl)})}var ha=P(pl,2);{var ft=He=>{var pi=EC(),zo=T(pi);jd(zo,{}),S(pi),b(He,pi)};V(ha,He=>{ae()&&He(ft)})}var ot=P(ha,2);{var Zi=He=>{Pc(He,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return xe()},onClick:Cr,onContextMenu:Fe,onDblClick:yn})};V(ot,He=>{ee()&&He(Zi)})}var Po=P(ot,2);{var Ji=He=>{el(He,{get shifted(){return m()},get captions(){return it()},get position(){return ne()},get playerSize(){return z()}})};V(Po,He=>{Oe().value!=="off"&&He(Ji)})}var gi=P(Po,2);{var zi=He=>{var pi=kC();pi.__contextmenu=Fe,pi.__click=[TC,Z,qe,f,Oi,Xi];var zo=T(pi);tl(zo,{}),S(pi),b(He,pi)};V(gi,He=>{a()&&He(zi)})}var zs=P(gi,2);{var vd=He=>{let pi=v(()=>s()==="thumb"||s()==="LiveWaitingStart"||s()==="LiveWaitingRecover"||s()==="LiveWaitingRecord"),zo=v(()=>s()==="ads"),Ir=v(()=>e.canRewindLive&&ce()!==0);Ic(He,{get bottomHidden(){return n(pi)},get bottomNoSmooth(){return Q()},get showControls(){return m()},get isAds(){return n(zo)},get canRewindLive(){return n(Ir)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return kt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Dt()},get nextButtonActive(){return Ht()},get prevButtonActive(){return Y()},get isOneVideoPlaylist(){return $e()},customFullscreenSupported:so,toggleFullscreen:sr,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return n(Dr)},set playerControlsWrapperRef(Cn){N(Dr,Cn,!0)},get playerControlsRef(){return n(ir)},set playerControlsRef(Cn){N(ir,Cn,!0)}})};V(zs,He=>{St()&&He(vd)})}var Yc=P(zs,2);{var Op=He=>{var pi=PC(),zo=T(pi);let Ir=v(()=>{var Cn;return(Cn=n(ir))==null?void 0:Cn.clientHeight});Rc(zo,{get supportLink(){return e.supportLink},get playerControlsHeight(){return n(Ir)},returnFocus:()=>{var Cn;return(Cn=at())==null?void 0:Cn.focus()},get ref(){return n(Dn)},set ref(Cn){N(Dn,Cn,!0)}}),S(pi),b(He,pi)};V(Yc,He=>{!ee()&&s()!=="ads"&&He(Op)})}var jc=P(Yc,2);let Bp=v(()=>!n($n));ic(jc,{get isLive(){return Re()},get isHidden(){return n(Bp)},get isPlaying(){return Ve()},get position(){return ne()},get duration(){return ce()}});var Xc=P(jc,2);hv(Xc,{get data(){return _n}});var Zc=P(Xc,2);um(Zc,{get supportLink(){return e.supportLink},returnFocus:()=>{var He;return(He=at())==null?void 0:He.focus()},get visible(){return Z()},get playerContainerRef(){return n(Hi)},get position(){return et()},get menuElementRef(){return n(fo)},set menuElementRef(He){N(fo,He,!0)}});var Jc=P(Zc,2);{var Fp=He=>{Nc(He,{onClose:wr,onSelectAutoQuality:()=>{Vr("auto"),wr()}})};V(Jc,He=>{n(xr)&&He(Fp)})}var _a=P(Jc,2);{var Hp=He=>{Yv(He,{})};V(_a,He=>{ke()&&He(Hp)})}var Ws=P(_a,2);{var ml=He=>{Wa(He,{})};V(Ws,He=>{n(Br)&&He(ml)})}var eu=P(Ws,2);{var tu=He=>{bm(He,{})};V(eu,He=>{Te()&&He(tu)})}var gd=P(eu,2);{var iu=He=>{sc(He,{})};V(gd,He=>{Be()&&He(iu)})}b(Ei,xi)}),b(ye,Bt)},$$slots:{default:!0}}),ye=>at(ye),()=>at());var ko=P(lt,2);Xe(ko,ye=>N(vn,ye),()=>n(vn)),S(xn),Xe(xn,ye=>N(Hi,ye),()=>n(Hi));var qn=P(xn,2);{var wn=ye=>{var wt=MC();b(ye,wt)};V(qn,ye=>{It()&&ye(wn)})}dt("mouseenter",xn,Mt),dt("mouseleave",xn,Fo),dt("click",xn,Je,!0),dt("focusin",xn,$i,!0),b(t,Ss),F(),o()}Ye(["mousemove","contextmenu","click"]);var ua=require("@vkontakte/videoplayer-core/es2018"),s$=require("@vkontakte/videoplayer-shared/es2018");var NC=L('<div></div> <div class="info s-l"><div class="triangles-wrapper s-l"><div></div> <div></div> <div></div></div> <p class="step-caption s-l"> </p></div>',1),DC=L("<div><!></div>"),OC={hash:"s-l",code:".double-click-area.s-l{height:100%;overflow:hidden;position:absolute;top:0;width:25%}.double-click-area.left.s-l{left:0}.double-click-area.right.s-l{right:0}.semicircle.s-l{background-color:rgba(0,0,0,.5);height:100%;position:absolute;top:0;width:100%}.semicircle.left.s-l{border-bottom-right-radius:50%;border-top-right-radius:50%;left:0}.semicircle.right.s-l{border-bottom-left-radius:50%;border-top-left-radius:50%;right:0}.info.s-l{align-items:center;flex-direction:column;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.info.s-l,.triangles-wrapper.s-l{display:flex;justify-content:center}.triangles-wrapper.s-l{margin-bottom:10px;position:relative}.triangle.s-l{animation:s-l-blink .5s infinite;border-bottom:6px solid transparent;border-top:6px solid transparent;height:0;opacity:0;width:0}.triangle.left.s-l:nth-child(3),.triangle.right.s-l:first-child{animation-delay:0s}.triangle.left.s-l:nth-child(2),.triangle.right.s-l:nth-child(2){animation-delay:.1s}.triangle.left.s-l:first-child,.triangle.right.s-l:nth-child(3){animation-delay:.2s}@keyframes s-l-blink{0%{opacity:0}50%{opacity:1}to{opacity:0}}.triangle.left.s-l{border-right:8px solid var(--white)}.triangle.right.s-l{border-left:8px solid var(--white)}.triangle.s-l:not(:last-child){margin-right:5px}.step-caption.s-l{color:var(--white);font-size:12px;line-height:1;margin:0;text-align:center}"};function xp(t,e){B(e,!0),G(t,OC);let i=g(e,"seekStep",3,0),o=q(!1),r=0,s=0,l=q(si(i())),d=p=>{p.stopPropagation(),s+=1,N(l,i()*(s-1)),s===1?e.handleSingleFirstClick(p):(N(o,!0),e.handleSecondClick()),window.clearTimeout(r),r=window.setTimeout(()=>{s=0,N(o,!1)},300)};dn(()=>{window.clearTimeout(r)});var a=DC();a.__click=d;var u=T(a);{var f=p=>{var m=NC(),$=ue(m),y=P($,2),_=T(y),x=T(_),I=P(x,2),C=P(I,2);S(_);var R=P(_,2),A=T(R,!0);S(R),S(y),D(E=>{var k,Q,H,z;re($,1,`semicircle ${(k=e.side)!=null?k:""}`,"s-l"),re(x,1,`triangle ${(Q=e.side)!=null?Q:""}`,"s-l"),re(I,1,`triangle ${(H=e.side)!=null?H:""}`,"s-l"),re(C,1,`triangle ${(z=e.side)!=null?z:""}`,"s-l"),ve(A,E)},[()=>j("doubletap_seek_step",{seconds:n(l).toFixed(0)})]),b(p,m)};V(u,p=>{n(o)&&p(f)})}S(a),D(()=>{var p;return re(a,1,`double-click-area ${(p=e.side)!=null?p:""}`,"s-l")}),b(t,a),F()}Ye(["click"]);var BC=(t,e,i)=>{e(!1),i()},FC=L('<div class="overlay s-k"></div> <div class="next-video s-k"><div class="top s-k"><div class="caption s-k"> </div> <!></div> <div class="row s-k"><div class="column s-k"><div class="thumb s-k"><div></div> <!></div></div> <div class="column s-k"><div class="title s-k"> </div></div></div></div>',1),HC={hash:"s-k",code:".overlay.s-k{background:rgba(0,0,0,.72);height:100%;position:absolute;width:100%}.next-video.s-k{display:flex;flex-direction:column;left:50%;margin:0 auto;max-width:362px;min-width:320px;padding-bottom:12px;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:var(--end-screen-mobile-z-index)}.top.s-k{display:flex;justify-content:space-between}.caption.s-k{color:var(--white);font-size:11px;font-weight:700;opacity:.8;text-transform:uppercase}.row.s-k{background:rgba(48,48,48,.8);cursor:pointer;display:flex;flex-direction:row;height:102px;margin-top:6px;width:100%}.column.s-k{display:flex;flex-basis:50%;flex-direction:column}.thumb.s-k{align-items:center;background:no-repeat 50%;background-size:cover;display:flex;justify-content:space-around;position:relative}.thumb.s-k,.thumb-overlay.s-k{height:100%;width:100%}.thumb-overlay.s-k{position:absolute}.thumb-overlay.withOpacity.s-k{background:var(--black);opacity:.3}.title.s-k{color:var(--white);font-size:12px;font-weight:700;line-height:1.6;max-height:52px;overflow:hidden;padding:10px 16px}"};function Zv(t,e){B(e,!0),G(t,HC);let[i,o]=Ne(),r=()=>w(d,"$autoplayNextEnabled$",i),s=()=>w(a,"$timerNextVideoRunning$",i),l=he(),d=l.ui.autoplayNextEnabled$,a=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,f=l.actions.internal.nextVideoAnnouncementShow,p=l.actions.internal.nextVideoAnnouncementClick,m=l.actions.internal.nextVideoAnnouncementAuto,$=l.actions.internal.nextVideoAnnouncementCancel,y=()=>{u(!1),m()},_=()=>{e.clickCloseIcon(),$()};Vt(()=>{e.isHide||f(),e.isHide&&r()&&(u(!1),m())});var x=Ae(),I=ue(x);{var C=R=>{var A=FC(),E=P(ue(A),2),k=T(E),Q=T(k),H=T(Q,!0);S(Q);var z=P(Q,2);Rs(z,{onClick:_}),S(k);var X=P(k,2);X.__click=[BC,u,p];var se=T(X),Z=T(se),oe=T(Z);let J;var Ce=P(oe,2);{var me=ge=>{ac(ge,{get isRunning(){return s()},onTimerEnded:y})};V(Ce,ge=>{r()&&ge(me)})}S(Z),S(se);var ee=P(se,2),_e=T(ee),we=T(_e,!0);S(_e),S(ee),S(X),S(E),D((ge,pe)=>{ve(H,ge),We(Z,`background-image: url('${e.thumb}')`),J=re(oe,1,"thumb-overlay s-k",null,J,pe),ve(we,e.title)},[()=>r()?j("end_screen_next_video"):j("end_screen_recommended_video"),()=>({withOpacity:r()})]),b(R,A)};V(I,R=>{e.isHide||R(C)})}b(t,x),F(),o()}Ye(["click"]);var t$=require("@vkontakte/videoplayer-core/es2018");var i$=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Vt(()=>{t$.clientChecker.device.isIOS&&(o=setTimeout(()=>{let s=t().querySelector("video");if(!s)return;let l=()=>e(!0),d=()=>e(!1);s.addEventListener("webkitbeginfullscreen",l),s.addEventListener("webkitendfullscreen",d),i=()=>{s.removeEventListener("webkitbeginfullscreen",l),s.removeEventListener("webkitendfullscreen",d)}},0))}),dn(()=>{i==null||i(),clearTimeout(o)})};var o$=require("@vkontakte/videoplayer-core/es2018");var wp=class{constructor(e){this.video=e}getTracksArray(){return Array.from(this.video.getElementsByTagName("track"))}attach(e,i=!1){let o=document.createElement("track");o.setAttribute("src",e.url),o.setAttribute("id",e.id),e.label&&o.setAttribute("label",e.label),e.language&&o.setAttribute("srclang",e.language),i&&(o.track.mode="showing"),this.video.appendChild(o)}detachAll(){for(let e of this.getTracksArray())this.video.removeChild(e)}updateSrc(e){let i=this.getTracksArray().find(o=>o.id===e.id);i&&(i.src=e.url)}getCurrentShowingId(){var e,i;return(i=(e=this.getTracksArray().find(o=>o.track.mode==="showing"))==null?void 0:e.id)!=null?i:null}};var n$=require("@vkontakte/videoplayer-core/es2018"),r$=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:r,availableSubtitlesList$:s,currentFormat$:l,availableTextTracks$:d}=t.state,a=null,u=()=>e().querySelector("video"),f=()=>n$.clientChecker.device.isIOS&&be(l)===o$.VideoFormat.DASH_LIVE_CMAF,p=()=>{a==null||a(),a=null},m=$=>{if(p(),!f()||!$)return;let y=u();if(!y)return;let _=new wp(y),x=be(d),I=be(s),C=be(r);for(let E of x)I.some(Q=>Q.value===E.id)&&_.attach(E,C.value===E.id);let R=d.subscribe(E=>{for(let k of E)_.updateSrc(k)}),A=()=>{let E=_.getCurrentShowingId();o(be(s).find(k=>k.value===E))};y.textTracks.addEventListener("change",A),a=()=>{R(),_.detachAll(),y.textTracks.removeEventListener("change",A)}};Vt(()=>i.subscribe(m)),dn(p)};var UC=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},zC=L("<!> <!>",1),WC=L("<div><!></div>"),KC=L('<div class="spherical-video-icon s-8"><!></div>'),qC=L("<div><!></div>"),QC=L('<div class="settings-mobile s-8"><!></div>'),GC=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),YC=L('<div class="player-wrapper s-8" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),jC={hash:"s-8",code:".player-wrapper.s-8{height:100%;position:absolute;width:100%}.player-wrapper.s-8 .player-media{background:var(--black);height:100%;left:0;position:absolute;top:0;transition:transform .2s ease-in-out;width:100%}.spherical-video-icon.s-8{display:inline-block;left:calc(50% - 38px);position:absolute;top:calc(50% - 23px)}.ads-container.s-8{background:var(--black);height:100%;left:0;position:absolute;top:0;width:100%;z-index:var(--ads-container-z-index)}.settings-mobile.s-8{align-items:center;display:flex;left:50%;max-width:320px;position:absolute;top:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);width:90%;z-index:var(--settings-menu-z-index)}"};function Jv(t,e){var nr,rr;B(e,!0),G(t,jC);let[i,o]=Ne(),r=()=>w(Le,"$playerPhase",i),s=()=>w(li,"$isLoaderVisible",i),l=()=>w(Ee,"$adPlaybackState",i),d=()=>w(ti,"$crashed",i),a=()=>w(xs,"$notificationsToShow$",i),u=()=>w(Y,"$playbackState$",i),f=()=>w(kt,"$graphIsOpened$",i),p=()=>w(Ue,"$interactiveHideMobileControls",i),m=()=>w(Di,"$isEnded$",i),$=()=>w(ut,"$isInteractiveExpectation$",i),y=()=>w(St,"$controlsVisible",i),_=()=>w(rt,"$touched",i),x=()=>w(Bi,"$autoplayNextEnabled$",i),I=()=>w(hi,"$postrollPassed",i),C=()=>w(Nr,"$bottomNoSmooth",i),R=()=>w(_i,"$videoSize",i),A=()=>w(yt,"$playerSize",i),E=()=>w(nt,"$isFullscreen",i),k=()=>w(le,"$position$",i),Q=()=>w($e,"$duration$",i),H=()=>w(Jo,"$loadedMetadata",i),z=()=>w(ze,"$settingsMenuVisible",i),X=()=>w(jt,"$scrubbingInProgress",i),se=()=>w(Ft,"$volumeChangingInProgress",i),Z=()=>w(At,"$chromecastConnected$",i),oe=()=>w(fe,"$isControlsAvailable",i),J=()=>w(ni,"$isInteractiveTime$",i),Ce=()=>w(Oi,"$isActiveLive",i),me=()=>w(at,"$settingsMenuOpenedByKeyboard",i),ee=()=>w(Ht,"$language$",i),_e=()=>w(Zt,"$disabledControls$",i),we=()=>w(Ut,"$is3DVideo",i),ge=()=>w(W,"$icon3DVideoVisible",i),pe=()=>w(ui,"$chromecastDeviceName$",i),Qe=()=>w(_o,"$currentSubtitle$",i),U=()=>w(Xo,"$currentSubtitleCaptions$",i),O=()=>w(Zo,"$realDuration$",i),Ge=()=>w(mt,"$isLive$",i),K=()=>w(Xt,"$isPlaying$",i),ae=()=>w(ci,"$debugPanelVisible",i),xe=g(e,"videoContainer",15),Oe=g(e,"adsSlotId",3,void 0),it=g(e,"adsParams",3,void 0),ne=g(e,"adsAutoplayParam",3,void 0),ce=g(e,"duration",3,void 0),Re=g(e,"logoTargetUrl",3,""),Ve=g(e,"showNextPrevButtons",3,!1),et=g(e,"nextButtonActive",3,!1),ke=g(e,"prevButtonActive",3,!1),Te=g(e,"endScreenVideoTitle",3,void 0),Be=g(e,"endScreenVideoThumb",3,void 0),It=g(e,"isOneVideoPlaylist",3,!1),$t=g(e,"showMiniTimer",3,!1),Ot=g(e,"fullScreenTarget",3,void 0),ct=g(e,"playerStarted",3,!1),Et=g(e,"showEndScreen",3,!0),{notifications$:ei,graphIsOpened$:kt}=Co(),Dt=e.store.getLogger().createComponentLog("Root component"),Ht=e.store.interfaceLanguage$,Y=e.store.state.playbackState$,Ee=e.store.ads.playbackState,le=e.store.state.positionWithScrubbing$,$e=e.store.state.duration$,Le=e.store.playerPhase,nt=e.store.ui.isFullscreen,St=e.store.ui.controlsVisible,fe=e.store.ui.isControlsAvailable,Ue=e.store.ui.interactiveHideMobileControls,ze=e.store.ui.settingsMenu.visible$,at=e.store.ui.settingsMenu.openedByBtnKeyboard$,jt=e.store.ui.scrubbingInProgress,Ft=e.store.ui.volumeChangingInProgress,ci=e.store.ui.debugPanelVisible,li=e.store.state.isLoaderVisible,Di=e.store.state.isEnded$,At=e.store.state.chromecastConnected$,ui=e.store.state.chromecastDeviceName$,hi=e.store.ads.postrollPassed,mt=e.store.state.isLive$,Xt=e.store.state.isPlaying$,Oi=e.store.state.isActiveLive$,Si=e.store.state.isRewindableLive$,ti=e.store.state.crashed$,gt=e.store.webApi.annotationsApi,qe=e.store.webApi.pictureInPictureApi,_i=e.store.state.videoSize$,_o=e.store.state.currentSubtitle$,Xo=e.store.state.currentSubtitleCaptions$,Zo=e.store.state.duration$,yt=e.store.ui.playerSize,Ut=e.store.ui.is3DVideo,W=e.store.ui.icon3DVideoVisible,Lt=e.store.state.isInteractive,ni=e.store.state.isInteractiveTime$,ut=e.store.state.isInteractiveExpectation$,Ct=e.store.state.hasInteractiveBranches,Zt=e.store.ui.controls.disabledControls$,rt=e.store.ui.touched,ki=e.store.ui.overlayContainer$,Bi=e.store.ui.autoplayNextEnabled$,Jo=e.store.state.loadedMetadata$,No=e.store.actions.internal.closeSettingsMenu,bo=(nr=e.store.callbacks)==null?void 0:nr.onDisabledPlayPrevChapterClick,Fi=(rr=e.store.callbacks)==null?void 0:rr.onDisabledSeekToInteractiveClick,Nn=e.store.actions.internal.setQuality,$o=q(void 0),yo=q(void 0),Pi=q(void 0),en=q(void 0),Do,pn,hr=v(()=>(r()==="video"&&s()||r()==="ads"&&l()==="inactive")&&!d()),Vr=q(void 0),{closeNotification:is,notificationsToShow$:xs}=ei,Rr=v(()=>!!a().slow_video),er=()=>is("slow_video"),Nr=de(!1),fn,mn=q(!1),_r=v(()=>u()!==ua.PlaybackState.PLAYING),br=q(!1),tn=v(()=>f()||p()||!n(mn)&&(m()&&!!Ct||n(_r)&&$())),tr=q(!0),$r=v(()=>e.uiConfig.features.thumbTimer&&$t()&&r()==="video"&&!y()&&!d()&&!Lt&&(e.uiConfig.hideThumbTimerAfterTouch&&!_()||!e.uiConfig.hideThumbTimerAfterTouch)),yr=q(!1),Hi=v(()=>(Et()||e.showAutoplayNext&&x())&&!!Te()&&!!Be()&&(e.showAds&&I()||!e.showAds)&&m()&&!d()&&!n(yr)),Dr=q(!1);qe==null||qe.setContext(xd());let ir=pt=>{pt&&!Lt&&ro(e.uiConfig.controls.hideTimeoutMobile)};e.store.setUiCallbacks({onStarted:ir});let Dn=()=>{clearTimeout(Do),N(mn,!1),p()&&Ue.set(!1)},ro=pt=>{Dn(),N(mn,!0),Do=setTimeout(()=>N(mn,!1),pt);let xt=pt-100;fn=setTimeout(()=>{C()&&Nr.set(!1)},xt>0?xt:pt)},Or=Ut.subscribe(pt=>{W.set(pt),pt&&(clearTimeout(pn),pn=setTimeout(()=>W.set(!1),e.uiConfig.controls.hide360IconTimeout))}),On=async(pt=ia())=>{var xt,ao,lo,on,ji,Ui;if(pt&&!ua.clientChecker.device.isIOS){let co=Xd(),Un=vn(),Fr=ua.clientChecker.browser.isSamsungBrowser&&co===e.shadowRootContainer;pt=co===Un||Fr}if(pt){ro(e.uiConfig.controls.hideTimeoutFullscreen);try{await(qe==null?void 0:qe.exit())}catch(co){Dt({message:String(co)})}try{let co=(xt=R())!=null&&xt.width&&((ao=R())!=null&&ao.height)?R():A();await Q_(co)}catch(co){Dt({message:String(co)})}}nt.set(pt),e.store.getAdmanWrapper().setFullscreen(pt),E()?(on=(lo=e.store.callbacks)==null?void 0:lo.onFullscreenEnter)==null||on.call(lo):(Ui=(ji=e.store.callbacks)==null?void 0:ji.onFullscreenExit)==null||Ui.call(ji)},ht=pt=>{let xt=pt,{width:ao,height:lo}=xt.target;yt.set({width:ao,height:lo})},ri=()=>{let{width:pt,height:xt}=n($o).getBoundingClientRect();yt.set({width:pt,height:xt})};Vt(()=>{var pt;return Yu(On),e.uiConfig.features.annotationsInside&&(gt==null||gt.init(n($o))),Fa(qe)&&(qe==null||qe.assignPlayerContainer(n($o)),qe==null||qe.setExternalEventHandlers({resize:ht,leavepictureinpicture:ri})),N(tr,!ua.clientChecker.device.isIphoneOrOldIpad),e.interactiveContainer&&((pt=xe().parentElement)==null||pt.insertBefore(e.interactiveContainer,xe().nextSibling)),()=>{clearTimeout(Do),clearTimeout(fn),clearTimeout(pn),Or(),qe==null||qe.dispose().catch(xt=>{Dt({message:String(xt)})}),ju(On)}});let xr=q(!0),wr=q(!0),Br=pt=>{let xt=k()+(pt==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;xt<0?(N(xr,!1),xt=0):xt>=Q()&&(N(wr,!1),xt=Q()),N(br,!0),e.seekTime(xt)},vn=()=>ua.clientChecker.device.isIOS?n($o):!e.uiConfig.allowChangingFullscreenTarget||!Ot()?e.outerContainerRef:Ot().contains(e.outerContainerRef)?Ot():e.outerContainerRef,gn=async()=>{try{if(ia())await Gu(document),Dt({message:"exit fullscreen"});else{if(Dt({message:"request fullscreen"}),ua.clientChecker.device.isIOS&&!H())return;await Qu(vn())}}catch(pt){Dt({message:String(pt)})}},Oo=()=>{No()},hn=pt=>{if(pt.preventDefault(),z()){Oo();return}if(!ct()){e.firstStart(),ro(e.uiConfig.controls.hideTimeoutCursor);return}N(br,!1),y()?Dn():ro(e.uiConfig.controls.hideTimeoutMobile)},_n=()=>{rt.set(!0)},or=()=>{Lt||(Nr.set(!0),ro(e.uiConfig.controls.hideTimeoutCursor))},bn=pt=>{bo&&(bo(pt),ro(e.uiConfig.controls.hideTimeoutMobile))},Bo=pt=>{Fi&&(Fi(pt),ro(e.uiConfig.controls.hideTimeoutMobile))};De(()=>{ki.set(n(Vr))}),De(()=>{St.set((n(_r)||z()||X()||se()||Z()||!n(Hi)&&(m()||n(mn)&&!n(br)))&&!n(tn)&&r()==="video"&&!d()&&oe())}),De(()=>{!X()&&n(Dr)&&!J()&&ro(e.uiConfig.controls.hideTimeoutMobile),N(Dr,X(),!0)}),De(()=>{N(xr,k()>0),N(wr,!Ce()&&k()<Q(),!0)}),De(()=>{nc(n(en),z(),me(),!0)});let Bn=j("aria_label_video_player");i$({fullScreenChangeHandler:On,getFullscreenTarget:vn}),r$({store:e.store,getFullscreenTarget:vn});let Fn=(pt,xt)=>{var ji,Ui;let ao=(Ui=(ji=e.store.callbacks)==null?void 0:ji.uiInfo)==null?void 0:Ui.onUpcomingLiveViewStateChanged;if(!ao)return;let lo=!!xt,on={...Zn(n($o),{upcomingLiveScreen:xt},"upcomingLiveScreen",lo),...pt};ao(on)};var Yi=YC();dt("blur",Ta,Oo);var so=T(Yi);sl(so,{onClick:hn,get videoContainer(){return xe()},set videoContainer(pt){xe(pt)}});var $n=P(so,2);La($n,()=>"slot",!1,(pt,xt)=>{to(pt,()=>({name:rl}))});var Hn=P($n,2);As(Hn,ee,pt=>{var xt=GC(),ao=ue(xt);let lo=v(()=>r()!=="thumb"||d()||Lt&&e.autoplay||e.uiConfig.features.disableThumbUnstartedOnAutoplay&&e.autoplay);il(ao,{get hidden(){return n(lo)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var on=P(ao,2);{var ji=Je=>{var Jt=zC(),yi=ue(Jt);{var fo=Eo=>{let lr=v(()=>e.uiConfig.controls.seekStepMobile/1e3);xp(Eo,{side:"left",get seekStep(){return n(lr)},handleSingleFirstClick:hn,handleSecondClick:()=>Br("backward")})};V(yi,Eo=>{n(xr)&&Eo(fo)})}var sn=P(yi,2);{var Ur=Eo=>{let lr=v(()=>e.uiConfig.controls.seekStepMobile/1e3);xp(Eo,{side:"right",get seekStep(){return n(lr)},handleSingleFirstClick:hn,handleSecondClick:()=>Br("forward")})};V(sn,Eo=>{n(wr)&&Eo(Ur)})}b(Je,Jt)};V(on,Je=>{e.canRewindLive&&Si&&!_e().has("TIMELINE")&&Je(ji)})}var Ui=P(on,2);{var co=Je=>{let Jt=v(()=>{var yi;return(yi=e.live)==null?void 0:yi.startTime});Ac(Je,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(Jt)},onUpcomingLiveViewStateChanged:Fn})};V(Ui,Je=>{r()==="LiveWaitingStart"&&Je(co)})}var Un=P(Ui,2);{var Fr=Je=>{ol(Je,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};V(Un,Je=>{r()==="LiveWaitingRecover"&&Je(Fr)})}var Li=P(Un,2);{var ws=Je=>{ol(Je,{kind:"record",get thumbUrl(){return e.thumbUrl}})};V(Li,Je=>{r()==="LiveWaitingRecord"&&Je(ws)})}var os=P(Li,2);{var ns=Je=>{var Jt=WC();let yi;var fo=T(Jt);Jd(fo,{get adsSlotId(){return Oe()},get adsParams(){return it()},get adsAutoplayParam(){return ne()},get duration(){return ce()},get adsExternalApi(){return e.adsExternalApi}}),S(Jt),D(sn=>yi=re(Jt,1,"ads-container s-8",null,yi,sn),[()=>({hidden:r()!=="ads"})]),b(Je,Jt)};V(os,Je=>{e.showAds&&ct()&&Je(ns)})}var rs=P(os,2);{var Hr=Je=>{let Jt=v(()=>!Et()&&e.showAutoplayNext&&x());Zv(Je,{get title(){return Te()},get thumb(){return Be()},get isHide(){return n(Jt)},clickCloseIcon:()=>N(yr,!0)})};V(rs,Je=>{n(Hi)&&Te()&&Be()&&Je(Hr)})}var To=P(rs,2);{var nn=Je=>{kc(Je,{})};V(To,Je=>{we()&&Je(nn)})}var Xi=P(To,2);{var sr=Je=>{var Jt=KC(),yi=T(Jt);jd(yi,{}),S(Jt),b(Je,Jt)};V(Xi,Je=>{ge()&&Je(sr)})}var Fe=P(Xi,2);{var Mt=Je=>{Pc(Je,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return pe()},onClick:hn})};V(Fe,Je=>{Z()&&Je(Mt)})}var $i=P(Fe,2);{var Fo=Je=>{el(Je,{get shifted(){return y()},get captions(){return U()},get position(){return k()},get playerSize(){return A()},isMobile:!0})};V($i,Je=>{Qe().value!=="off"&&Je(Fo)})}var uo=P($i,2);{var Io=Je=>{var Jt=qC();Jt.__click=[UC,z,ze,Oo];var yi=T(Jt);tl(yi,{}),S(Jt),b(Je,Jt)};V(uo,Je=>{d()&&Je(Io)})}var po=P(uo,2);{var Ho=Je=>{let Jt=v(()=>r()==="thumb"||r()==="LiveWaitingStart"||r()==="LiveWaitingRecover"||r()==="LiveWaitingRecord"||r()==="ads"),yi=v(()=>r()==="ads"),fo=v(()=>e.canRewindLive&&O()!==0);Ic(Je,{get bottomHidden(){return n(Jt)},get showControls(){return y()},get bottomNoSmooth(){return C()},get isAds(){return n(yi)},get canRewindLive(){return n(fo)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Re()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Ve()},get nextButtonActive(){return et()},get prevButtonActive(){return ke()},get isOneVideoPlaylist(){return It()},get customFullscreenSupported(){return n(tr)},get endScreenShown(){return n(Hi)},toggleFullscreen:gn,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:bn,onDisabledSeekToInteractiveClick:Bo,get playerControlsWrapperRef(){return n(yo)},set playerControlsWrapperRef(sn){N(yo,sn,!0)},get playerControlsRef(){return n(Pi)},set playerControlsRef(sn){N(Pi,sn,!0)}})};V(po,Je=>{ct()&&Je(Ho)})}var zn=P(po,2);{var rn=Je=>{var Jt=QC(),yi=T(Jt);Rc(yi,{get supportLink(){return e.supportLink},get returnFocus(){return s$.noop},get ref(){return n(en)},set ref(fo){N(en,fo,!0)}}),S(Jt),b(Je,Jt)};V(zn,Je=>{z()&&Je(rn)})}var xo=P(zn,2);let wo=v(()=>!n($r));ic(xo,{get isLive(){return Ge()},get isHidden(){return n(wo)},get isPlaying(){return K()},get position(){return k()},get duration(){return Q()}});var Wn=P(xo,2);{var Kn=Je=>{Wa(Je,{})};V(Wn,Je=>{n(hr)&&Je(Kn)})}var yn=P(Wn,2);{var Cr=Je=>{sc(Je,{})};V(yn,Je=>{ae()&&Je(Cr)})}var ss=P(yn,2);{var ar=Je=>{Nc(Je,{onClose:er,onSelectAutoQuality:()=>{Nn("auto"),er()}})};V(ss,Je=>{n(Rr)&&Je(ar)})}b(pt,xt)});var Sr=P(Hn,2);Xe(Sr,pt=>N(Vr,pt),()=>n(Vr)),S(Yi),Xe(Yi,pt=>N($o,pt),()=>n($o)),D(()=>Me(Yi,"aria-label",Bn)),dt("click",Yi,_n,!0),dt("focusin",Yi,or,!0),b(t,Yi),F(),o()}Ye(["click"]);function Sp(t){let e="";return no(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),no(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),no(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),no(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),no(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),no(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),no(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),no(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),no(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),no(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),no(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),no(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),no(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),no(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),no(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),no(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),no(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),no(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),no(t.font)&&(e+=`--font:${t.font};`),no(t.controlsGradientHeight)&&(e+=`--controls-gradient-height:${t.controlsGradientHeight};`),no(t.controlsGradient)&&(e+=`--controls-gradient:${t.controlsGradient};`),e.length&&e||void 0}function no(t){return typeof t=="string"&&!t.includes(";")}var a$=require("@vkontakte/videoplayer-shared/es2018");var XC=L('<div class="time-container s-7"><!></div>'),ZC=L('<div class="player-wrapper s-7" role="region"><!> <!> <!> <!> <!> <div><!></div></div>'),JC={hash:"s-7",code:".player-wrapper.s-7{height:100%;position:absolute;width:100%}.player-wrapper.s-7 .player-media{background:var(--black);height:100%;left:0;position:absolute;top:0;transition:transform .2s ease-in-out;width:100%}.timeline.s-7{bottom:0;left:0;opacity:0;opacity:1;position:absolute;transition:opacity var(--controls-transition-duration) var(--controls-transition-fn);width:100%;z-index:var(--controls-container-z-index)}.visible.s-7{opacity:1}.time-container.s-7{bottom:8px;position:absolute;right:8px;z-index:var(--thumb-timer-z-index)}"};function eg(t,e){B(e,!0),G(t,JC);let[i,o]=Ne(),r=()=>w(J,"$scrubbingInProgress",i),s=()=>w(Z,"$playerSize",i),l=()=>w(k,"$isPlaying$",i),d=()=>w(A,"$duration$",i),a=()=>w(z,"$positionWithScrubbing$",i),u=()=>w(C,"$playerPhase",i),f=()=>w(R,"$crashed$",i),p=()=>w(Q,"$currentSubtitle$",i),m=()=>w(H,"$currentSubtitleCaptions$",i),$=()=>w(E,"$positionExact$",i),y=()=>w(X,"$isLive$",i),_=()=>w(se,"$isRewindableLive$",i),x=g(e,"outsideDuration",3,0),I=g(e,"videoContainer",15),{playerPhase:C,state:{crashed$:R,duration$:A,positionExact$:E,isPlaying$:k,currentSubtitle$:Q,currentSubtitleCaptions$:H,positionWithScrubbing$:z,isLive$:X,isRewindableLive$:se},ui:{playerSize:Z,controls:oe,scrubbingInProgress:J},actions:{internal:{getVideoElement:Ce}}}=he(),me=8,ee=q(!1),_e=si({}),we=q(!1),ge=v(()=>!r()&&!n(we)),pe=()=>{N(ee,!0)},Qe=()=>{N(ee,!1)},U=(0,a$.debounceFn)(Jl,260);De(()=>{s(),U(Ce(),oe,_e,n(ee))});let O=v(()=>l()?jo(d()-a()):jo(isFinite(d())?d():x()));var Ge=ZC(),K=T(Ge);sl(K,{hideCursor:!1,get videoContainer(){return I()},set videoContainer(Te){I(Te)}});var ae=P(K,2);La(ae,()=>"slot",!1,(Te,Be)=>{to(Te,()=>({name:rl}))});var xe=P(ae,2);let Oe=v(()=>u()!=="thumb"||f());il(xe,{get hidden(){return n(Oe)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var it=P(xe,2);{var ne=Te=>{el(Te,{shifted:!1,get captions(){return m()},get position(){return $()},get playerSize(){return s()}})};V(it,Te=>{p().value!=="off"&&n(ge)&&Te(ne)})}var ce=P(it,2);{var Re=Te=>{var Be=XC(),It=T(Be);tc(It,{get isLive(){return y()},get isPlaying(){return l()},get time(){return n(O)}}),S(Be),b(Te,Be)};V(ce,Te=>{n(ge)&&Te(Re)})}var Ve=P(ce,2);let et;var ke=T(Ve);Xa(ke,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return _()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:me,tooltipRightOffset:me,get ref(){return _e.timeline},set ref(Te){_e.timeline=Te}}),S(Ve),S(Ge),D(Te=>et=re(Ve,1,"timeline s-7",null,et,Te),[()=>({visible:n(ee)})]),dt("mouseenter",Ge,pe),dt("mouseleave",Ge,Qe),dt("mouseenter",Ve,()=>N(we,!0)),dt("mouseleave",Ve,()=>N(we,!1)),b(t,Ge),F(),o()}var eT=L("<div><!></div>"),tT={hash:"s-1",code:'.vk-vp-root.s-1{--white:#fff;--black:#000;--red:#ff3347;--blue-light:#70c1ff;--black-alpha-40:rgba(0,0,0,.4);--white-alpha-24:hsla(0,0%,100%,.24);--white-alpha-72:hsla(0,0%,100%,.72);--devider-gray:#dce1e6;--text-gray:#626d7a;--font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;--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;--controls-desktop-padding-horizontal:4px;--focused:var(--white);--focused-outline-width:2px;--focused-outline-radius:0;--focused-element-shadow:inset 0 0 0 var(--focused-outline-width) 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,.5);--big-play-hover-bg-color:rgba(0,0,0,.6);--big-play-icon-width:38px;--big-play-icon-height:33px;--interactive-episode-complete:#5c9ce6;--slider-bg:hsla(0,0%,100%,.4);--slider-filled-bg:var(--white);--slider-handle-bg:var(--white);--slider-loaded-bg:hsla(0,0%,100%,.4);--slider-height:3px;--slider-video-episode-gap:1.5px;--slider-radius:0px;--slider-handle-size:12px;--slider-filled-ads:#67a5eb;--slider-disabled-color:hsla(0,0%,97%,.31);--slider-volume-height:5px;--slider-volume-radius:calc(var(--slider-volume-height)/2);--slider-volume-handle-size:13px;--timeline-slider-filled-active-live-bg:var(--red);--timeline-slider-handle-active-live-bg:var(--red);--timeline-slider-bg:var(--slider-bg);--timeline-slider-filled-bg:var(--slider-filled-bg);--timeline-slider-handle-bg:var(--slider-handle-bg);--timeline-slider-loaded-bg:var(--slider-loaded-bg);--volume-slider-bg:var(--slider-bg);--volume-slider-filled-bg:var(--slider-filled-bg);--volume-slider-handle-bg:var(--slider-handle-bg);--controls-time:var(--white);--controls-gradient:linear-gradient(180deg,transparent 0%,rgba(0,0,0,.005) 6.67%,rgba(0,0,0,.02) 13.33%,rgba(1,1,1,.04) 20%,rgba(1,1,1,.07) 26.67%,rgba(2,2,2,.11) 33.33%,rgba(3,3,3,.16) 40%,rgba(4,4,4,.22) 46.67%,rgba(6,6,6,.28) 53.33%,rgba(7,7,7,.33) 60%,rgba(8,8,8,.38) 66.67%,rgba(9,9,9,.42) 73.33%,rgba(9,9,9,.46) 80%,hsla(0,0%,4%,.48) 86.67%,hsla(0,0%,4%,.5));--timeline-preview-shadow:rgba(0,0,0,.08);--timeline-preview-bg:#222;--timeline-padding-horizontal:10px;--timeline-padding-vertical-top:3px;--timeline-padding-vertical-bottom:4px;--timeline-height:calc(var(--timeline-padding-vertical-bottom) + var(--timeline-padding-vertical-top) + var(--slider-height));--preview-track-frame-height-vertical:114px;--preview-track-frame-height-horizontal:65px;--preview-track-controls-top:16px;--preview-track-time-line-height:16px;--preview-track-bottom-offset:10px;--preview-track-height:calc(var(--preview-track-frame-height-vertical) + var(--preview-track-bottom-offset));--preview-track-controls-top-offset:calc(var(--timeline-height) + var(--preview-track-controls-top) + var(--preview-track-time-line-height));--settings-bg:rgba(0,0,0,.72);--settings-item-bg-hover:hsla(0,0%,100%,.08);--settings-radius:8px;--mobile-settings-bg:#2c2d2e;--divider-border:1px solid var(--white-alpha-24);--toggle-color-separator:#363738;--toggle-color-off:#656565;--toggle-color-on:#71aaeb;--toggle-color-autoplay-on:var(--white);--notification-bg:#2c2d2e;--notification-radius:8px;--button-hover-transition:opacity 0.2s;--video-container-z-index:0;--controls-container-z-index:1;--ads-container-z-index:1;--end-screen-mobile-z-index:1;--notification-z-index:1;--thumb-timer-z-index:2;--debug-panel-z-index:2;--modal-z-index:2;--settings-menu-z-index:2;--context-menu-z-index:3;--hot-key-helpers-container-z-index:3;--overlay-container-z-index:4;--rotate-transition-duration:0.25s;--btn-color:var(--white);--double-forward-bg:rgba(0,0,0,.6);background:var(--black);color:var(--white);font-family:var(--vk-vp-custom-font,var(--font));font-size:12px;height:100%;line-height:normal;outline:0;overflow:hidden;position:relative;user-select:none;width:100%}.vk-vp-root.visible-outside.s-1{overflow:visible}.vk-vp-root.s-1 *{-webkit-tap-highlight-color:transparent}.vk-vp-root.s-1 button{background:transparent;border:none;color:inherit;font:inherit;line-height:normal;margin:0;overflow:visible;padding:0;width:auto;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;cursor:pointer}.vk-vp-root.s-1 p{margin:0}.vk-vp-root.s-1 svg:not(.interactive-root svg){pointer-events:none}.vk-vp-root.s-1 .interactive-root{font-family:var(--vk-vp-int-custom-font,inherit)}.vk-vp-root.s-1 :focus,.vk-vp-root.s-1 :focus-visible{outline:none}.vk-vp-root.s-1 :focus-visible{border-radius:var(--focused-outline-radius);box-shadow:var(--focused-element-shadow)}.vk-vp-root.s-1 .focus-hidden:focus-visible{box-shadow:none}.vk-vp-root.s-1 .hidden{opacity:0;visibility:hidden}.vk-vp-root.s-1 .out-of-flow{content-visibility:hidden!important}.vk-vp-root.s-1 .overlay-container{height:100%;left:0;pointer-events:none;position:fixed;top:0;width:100%;z-index:var(--overlay-container-z-index)}.vk-vp-root.s-1 .out-of-view{left:-1000vh!important;position:absolute!important}.vk-vp-root.s-1 .icon.icon-error-stub{align-items:center;display:flex;justify-content:center}'};function tg(t,e){B(e,!0),G(t,tT);let[i,o]=Ne(),r=()=>w(ct,"$isLive$",i),s=()=>w(gt,"$availableSubtitlesList$",i),l=()=>w(qe,"$isPreviewTrackHorizontallyAligned$",i),d=g(e,"sources",7),a=g(e,"store",7),u=g(e,"microStoresRoot",7),f=g(e,"videoConfig",7),p=g(e,"uiConfig",7),m=g(e,"title",7),$=g(e,"thumbUrl",7),y=g(e,"interactiveContainer",7),_=g(e,"interactiveController",7),x=g(e,"subtitles",7),I=g(e,"subtitlesForcedLanguage",7),C=g(e,"live",7),R=g(e,"preload",7),A=g(e,"autoplay",7),E=g(e,"volume",7,void 0),k=g(e,"muted",7,void 0),Q=g(e,"fromTime",7),H=g(e,"canRewindLive",7),z=g(e,"showAds",7),X=g(e,"adsSlotId",7,void 0),se=g(e,"adsParams",7,void 0),Z=g(e,"adsAutoplayParam",7,void 0),oe=g(e,"duration",7,void 0),J=g(e,"logoClickable",7),Ce=g(e,"logoHidden",7),me=g(e,"isMobile",7),ee=g(e,"showNextPrevButtons",7,!1),_e=g(e,"nextButtonActive",7,!1),we=g(e,"prevButtonActive",7,!1),ge=g(e,"endScreenVideoTitle",7,void 0),pe=g(e,"endScreenVideoThumb",7,void 0),Qe=g(e,"isOneVideoPlaylist",7,!1),U=g(e,"supportLink",7),O=g(e,"shadowRootContainer",7),Ge=g(e,"outerContainerRef",7),K=g(e,"fullScreenTarget",7,void 0),ae=g(e,"failoverHosts",7,void 0),xe=g(e,"showMiniTimer",7,!1),Oe=g(e,"saveRate",7),it=g(e,"seekToInteractive",7,al.noop),ne=g(e,"playPrevChapter",7,al.noop),ce=g(e,"volumeMultiplier",7),Re=g(e,"showAutoplayNext",7),Ve=g(e,"showEndScreen",7,!0),et=g(e,"keyboardControls",15,void 0),{subscribers:ke,stores:Te}=u();t_(p());let Be=Rt(),It=p().logoLink,$t=a().ui.debugPanelVisible,Ot=a().ui.playerSize,ct=a().state.isLive$,ei=a().state.isInteractive&&nd.clientChecker.device.isAndroid,kt=q(void 0),Dt=null,Ht=q(!1);a().getAdmanWrapper().init({switchFromAdsToVideo:a().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:a().actions.internal.switchFromVideoToAds,setMuted:a().actions.external.setMuted},a().ads,{vsid:a().vsid}),p_(a(),Te),De(()=>{var W,Lt;a().ui.isMobile.set(me()),(Lt=(W=f().callbacks)==null?void 0:W.onDomReady)==null||Lt.call(W)});let Y=(W=!1)=>{N(Ht,!0),W?a().actions.external.firstStart(z()):a().actions.internal.firstStart(z())},Ee=()=>{if(Be.features.qualityDetailsSubMenuEnabled){let W=R_(a().videoId);if(W)switch(W.type){case"high_quality":a().actions.internal.setHighQualityEnabled(!0,W.appliesTo);break;case"traffic_saving":a().actions.internal.setTrafficSavingEnabled(!0,W.appliesTo);break;case"exact_quality":a().actions.internal.setQuality(W.quality);break}}else{N_(a().videoId),Qf()&&a().actions.internal.setTrafficSavingEnabled(!0);let Lt=Wf(a().videoId);Lt&&a().actions.internal.setQuality(Lt)}};function le(W){var Zt,rt,ki;let Lt=d()||W;Lt&&a().initVideo({container:n(kt),sources:Lt,failoverHosts:ae(),subtitles:x(),subtitlesForcedLanguage:I(),volumeMultiplier:ce()});let ni=al.safeStorage.get(Wd)==="true";$t.set(ni),Q()>0&&a().actions.external.seekTime(Q());let ut=me()?Be.volumeDefault:(rt=(Zt=E())!=null?Zt:Ou())!=null?rt:Be.volumeDefault,Ct=(ki=k())!=null?ki:k_();if(a().actions.external.setVolume(ut),a().actions.external.setMuted(Ct),a().getAdmanWrapper().setInitialVolume(Ct?0:ut),Ee(),Be.features.saveRate&&Oe()){let Bi=L_();Bi&&!r()&&a().actions.internal.setPlaybackRate(Bi)}if(Re()){let Bi=V_();Bi&&a().actions.internal.setAutoplayNextEnabled(Bi)}a().ui.isAutoplay.set(A()),A()&&Y(),R()&&Be.features.preload&&a().actions.internal.preload()}let $e=W=>{if(window.ResizeObserver){let Lt,ni;Dt=new ResizeObserver((0,al.throttleFn)(ut=>{let Ct=ut[0];if(Ct.contentBoxSize){let Zt=Array.isArray(Ct.contentBoxSize)?Ct.contentBoxSize[0]:Ct.contentBoxSize;Lt=Zt.inlineSize,ni=Zt.blockSize}else Ct.contentRect&&(Lt=Ct.contentRect.width,ni=Ct.contentRect.height);Ot.set({width:Lt,height:ni})},300)),Dt.observe(W)}W.clientWidth&&W.clientHeight&&Ot.set({width:W.clientWidth,height:W.clientHeight})},Le=()=>{document.hidden&&a().actions.external.stop()};Vt(()=>{var ni,ut,Ct,Zt;ei&&document.addEventListener("visibilitychange",Le),Be.debugLog&&a().actions.internal.startLogging(),$e(n(kt));let W=ke.map(rt=>rt.init({store:a(),microStores:Te,config:f(),interactiveController:_(),uiConfig:p()})),Lt=()=>{ei&&document.removeEventListener("visibilitychange",Le),Dt==null||Dt.disconnect(),W.forEach(rt=>rt.unsubscribe()),a().destroy()};return((ni=C())==null?void 0:ni.status)==="upcoming"?(a().actions.internal.setLiveWaitingStart(!0),Lt):((ut=C())==null?void 0:ut.status)==="waiting"?(a().actions.internal.setLiveWaitingRecover(!0),Lt):(((Ct=C())==null?void 0:Ct.status)==="finished"||((Zt=C())==null?void 0:Zt.status)==="postlive")&&!(d()&&(0,nd.areValidLiveRecordSources)(d()))?(a().actions.internal.setLiveWaitingRecord(!0),Lt):(le(),Lt)});function nt(){n(Ht)?a().actions.external.play():Y(!0)}function St(){a().actions.external.pause()}function fe(W){a().actions.external.setMuted(W)}function Ue(){a().actions.external.toggleSubtitle()}function ze(W,Lt){a().actions.external.changeSubtitle(W,Lt)}function at(W){a().actions.external.changeAudioStream(W)}function jt(){var W;(W=a().webApi.slotsApi)!=null&&W.haveSlots()&&a().actions.external.hideControls()}function Ft(){var W;(W=a().webApi.slotsApi)!=null&&W.haveSlots()&&a().actions.external.showControls()}function ci(W){me()||W>=0&&W<=1&&a().actions.external.setVolume(W)}function li(W){a().actions.internal.seekTime(W,l$.SeekAction.UNKNOWN)}function Di(W){a().actions.external.seekEpisodeStartTime(W)}function At(){a().actions.external.returnFocusToEpisodes()}function ui(W){a().actions.external.setPlaybackRate(W)}function hi(W){a().actions.external.setAutoQualityLimits(W)}function mt(){a().actions.external.setQuality("auto")}function Xt(W){a().actions.external.setTrafficSavingEnabled(W)}function Oi(W){a().actions.external.setHighQualityEnabled(W)}let Si=Sp(Be.view),ti=f().playerView==="preview",gt=a().state.availableSubtitlesList$;if(Be.features.initSubtitles){let W=!1;De(()=>{var Lt;if(!W&&s().length){W=!0;let ni;if(Be.features.userVideoPrefs&&a().videoId){let Ct=Uu(Be.userSalt,String(a().videoId));Ct!=null&&Ct.subtitleTrackId&&(ni=s().find(Zt=>Zt.value===Ct.subtitleTrackId))}let ut=(Lt=I())!=null?Lt:Yf();ut&&(ni=s().find(Ct=>Ct.language===ut)),a().actions.internal.setSubtitle(ni)}})}let qe=a().ui.isPreviewTrackHorizontallyAligned;var _i=eT();let _o;var Xo=T(_i);{var Zo=W=>{Jv(W,{get store(){return a()},get uiConfig(){return Be},get thumbUrl(){return $()},get interactiveContainer(){return y()},get live(){return C()},get autoplay(){return A()},get canRewindLive(){return H()},get showAds(){return z()},get adsSlotId(){return X()},get adsParams(){return se()},get adsAutoplayParam(){return Z()},get duration(){return oe()},get logoClickable(){return J()},get logoHidden(){return Ce()},get logoTargetUrl(){return It},get nextButtonActive(){return _e()},get prevButtonActive(){return we()},get endScreenVideoTitle(){return ge()},get endScreenVideoThumb(){return pe()},get isOneVideoPlaylist(){return Qe()},get supportLink(){return U()},get shadowRootContainer(){return O()},get outerContainerRef(){return Ge()},get fullScreenTarget(){return K()},get showMiniTimer(){return xe()},get playerStarted(){return n(Ht)},get seekToInteractive(){return it()},get playPrevChapter(){return ne()},firstStart:Y,seekTime:li,get showEndScreen(){return Ve()},get showAutoplayNext(){return Re()},get showNextPrevButtons(){return ee()},get adsExternalApi(){return e.adsExternalApi},get videoContainer(){return n(kt)},set videoContainer(Lt){N(kt,Lt,!0)}})},yt=W=>{var Lt=Ae(),ni=ue(Lt);{var ut=Zt=>{eg(Zt,{get thumbUrl(){return $()},get outsideDuration(){return oe()},get canRewindLive(){return H()},get videoContainer(){return n(kt)},set videoContainer(rt){N(kt,rt,!0)}})},Ct=Zt=>{Xv(Zt,{get store(){return a()},get uiConfig(){return Be},get title(){return m()},get thumbUrl(){return $()},get interactiveContainer(){return y()},get live(){return C()},get autoplay(){return A()},get canRewindLive(){return H()},get showAds(){return z()},get adsSlotId(){return X()},get adsParams(){return se()},get adsAutoplayParam(){return Z()},get duration(){return oe()},get logoClickable(){return J()},get logoHidden(){return Ce()},get logoTargetUrl(){return It},get nextButtonActive(){return _e()},get prevButtonActive(){return we()},get endScreenVideoTitle(){return ge()},get endScreenVideoThumb(){return pe()},get isOneVideoPlaylist(){return Qe()},get supportLink(){return U()},get shadowRootContainer(){return O()},get outerContainerRef(){return Ge()},get fullScreenTarget(){return K()},get showMiniTimer(){return xe()},get playerStarted(){return n(Ht)},get seekToInteractive(){return it()},get playPrevChapter(){return ne()},firstStart:Y,get showEndScreen(){return Ve()},get showAutoplayNext(){return Re()},get showNextPrevButtons(){return ee()},get adsExternalApi(){return e.adsExternalApi},get getVideoDeeplink(){return e.getVideoDeeplink},get videoContainer(){return n(kt)},set videoContainer(rt){N(kt,rt,!0)},get keyboardControls(){return et()},set keyboardControls(rt){et(rt)}})};V(ni,Zt=>{ti?Zt(ut):Zt(Ct,!1)})}b(W,Lt)};V(Xo,W=>{me()?W(Zo):W(yt,!1)})}S(_i),D(W=>{_o=re(_i,1,"vk-vp-root s-1",null,_o,W),We(_i,Si)},[()=>({"root--miui-browser":nd.clientChecker.device.isMobile&&nd.clientChecker.browser.isMiuiBrowser,"visible-outside":ti,"preview-track-horizontally-alinged":l()})]),b(t,_i);var Ut=F({initVideo:le,play:nt,pause:St,setMuted:fe,toggleSubtitle:Ue,changeSubtitle:ze,changeAudioStream:at,hideControls:jt,showControls:Ft,setVolume:ci,seekTime:li,seekEpisodeStartTime:Di,returnFocusToEpisodes:At,setPlaybackRate:ui,setAutoQualityLimits:hi,setAutoQuality:mt,toggleTrafficSaving:Xt,toggleHighQuality:Oi,get sources(){return d()},set sources(W){d(W)},get store(){return a()},set store(W){a(W)},get microStoresRoot(){return u()},set microStoresRoot(W){u(W)},get videoConfig(){return f()},set videoConfig(W){f(W)},get uiConfig(){return p()},set uiConfig(W){p(W)},get title(){return m()},set title(W){m(W)},get thumbUrl(){return $()},set thumbUrl(W){$(W)},get interactiveContainer(){return y()},set interactiveContainer(W){y(W)},get interactiveController(){return _()},set interactiveController(W){_(W)},get subtitles(){return x()},set subtitles(W){x(W)},get subtitlesForcedLanguage(){return I()},set subtitlesForcedLanguage(W){I(W)},get live(){return C()},set live(W){C(W)},get preload(){return R()},set preload(W){R(W)},get autoplay(){return A()},set autoplay(W){A(W)},get volume(){return E()},set volume(W){E(W)},get muted(){return k()},set muted(W){k(W)},get fromTime(){return Q()},set fromTime(W){Q(W)},get canRewindLive(){return H()},set canRewindLive(W){H(W)},get showAds(){return z()},set showAds(W){z(W)},get adsSlotId(){return X()},set adsSlotId(W){X(W)},get adsParams(){return se()},set adsParams(W){se(W)},get adsAutoplayParam(){return Z()},set adsAutoplayParam(W){Z(W)},get duration(){return oe()},set duration(W){oe(W)},get logoClickable(){return J()},set logoClickable(W){J(W)},get logoHidden(){return Ce()},set logoHidden(W){Ce(W)},get isMobile(){return me()},set isMobile(W){me(W)},get showNextPrevButtons(){return ee()},set showNextPrevButtons(W){ee(W)},get nextButtonActive(){return _e()},set nextButtonActive(W){_e(W)},get prevButtonActive(){return we()},set prevButtonActive(W){we(W)},get endScreenVideoTitle(){return ge()},set endScreenVideoTitle(W){ge(W)},get endScreenVideoThumb(){return pe()},set endScreenVideoThumb(W){pe(W)},get isOneVideoPlaylist(){return Qe()},set isOneVideoPlaylist(W){Qe(W)},get supportLink(){return U()},set supportLink(W){U(W)},get shadowRootContainer(){return O()},set shadowRootContainer(W){O(W)},get outerContainerRef(){return Ge()},set outerContainerRef(W){Ge(W)},get fullScreenTarget(){return K()},set fullScreenTarget(W){K(W)},get failoverHosts(){return ae()},set failoverHosts(W){ae(W)},get showMiniTimer(){return xe()},set showMiniTimer(W){xe(W)},get saveRate(){return Oe()},set saveRate(W){Oe(W)},get showAutoplayNext(){return Re()},set showAutoplayNext(W){Re(W)},get seekToInteractive(){return it()},set seekToInteractive(W){it(W)},get playPrevChapter(){return ne()},set playPrevChapter(W){ne(W)},get volumeMultiplier(){return ce()},set volumeMultiplier(W){ce(W)},get showEndScreen(){return Ve()},set showEndScreen(W){Ve(W)},get keyboardControls(){return et()},set keyboardControls(W){et(W)}});return o(),Ut}var iT=Ie('<defs><path id="rect" d="m2.72 0c.45 0 .6.05.77.13a1 1 0 01.38.38c.09.16.13.33.13.77v1.44c0 .44-.04.6-.13.77a1 1 0 01-.38.38c-.16.08-.32.13-.77.13h-1.44c-.44 0-.6-.05-.77-.13a1 1 0 01-.37-.38c-.1-.16-.14-.33-.14-.77v-1.44c0-.44.05-.6.13-.77a1 1 0 01.38-.38c.17-.08.33-.13.77-.13z"></path></defs><path d="M38.24 6c3.57 0 4.86.37 6.17 1.07a7.3 7.3 0 0 1 3.02 3.02c.7 1.3 1.07 2.6 1.07 6.17v23.49c0 3.56-.37 4.85-1.07 6.16a7.3 7.3 0 0 1-3.02 3.02c-1.3.7-2.6 1.07-6.16 1.07h-19.5c-3.56 0-4.85-.37-6.16-1.07a7.3 7.3 0 0 1-3.02-3.02c-.7-1.3-1.07-2.6-1.07-6.16v-23.5c0-3.56.37-4.85 1.07-6.16a7.3 7.3 0 0 1 3.02-3.02C13.9 6.37 15.2 6 18.76 6zm.32 3h-19.8c-2.8 0-3.77.19-4.75.71a4.3 4.3 0 0 0-1.8 1.8c-.5.95-.7 1.87-.7 4.43l-.01 23.8c0 2.8.19 3.76.71 4.75a4.3 4.3 0 0 0 1.8 1.8c.98.52 1.95.71 4.75.71h19.49c2.8 0 3.76-.19 4.74-.71a4.3 4.3 0 0 0 1.8-1.8c.52-.98.71-1.95.71-4.74v-23.5c0-2.8-.19-3.75-.71-4.74a4.3 4.3 0 0 0-1.8-1.8c-.95-.5-1.87-.7-4.43-.7z"></path><use xlink:href="#rect" x="16.5" y="14"></use><use xlink:href="#rect" x="16.5" y="22"></use><use xlink:href="#rect" x="16.5" y="30"></use><use xlink:href="#rect" x="16.5" y="38"></use><use xlink:href="#rect" x="37" y="14"></use><use xlink:href="#rect" x="37" y="22"></use><use xlink:href="#rect" x="37" y="30"></use><use xlink:href="#rect" x="37" y="38"></use>',1);function ig(t,e){let i=g(e,"isWhite",3,!1),o=v(()=>i()?"#fff":"#909499");Ze(t,{width:"57",height:"60",get fill(){return n(o)},testId:"stub-icon",children:(r,s)=>{var l=iT();ai(9),b(r,l)},$$slots:{default:!0}})}var oT=L('<div class="title s-2"> </div>'),nT=L('<div class="playerStub s-2"><!> <!></div>'),rT={hash:"s-2",code:".playerStub.s-2{align-items:center;background-color:#222;background-position:50%;background-size:cover;display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;height:100%;justify-content:center;position:relative;width:100%}.title.s-2{box-sizing:border-box;color:#fff;font-size:15px;left:0;overflow:hidden;padding:18px 20px 10px;position:absolute;text-overflow:ellipsis;top:0;white-space:nowrap;width:100%}"};function og(t,e){G(t,rT);var i=nT(),o=T(i);{var r=d=>{var a=oT(),u=T(a,!0);S(a),D(()=>ve(u,e.title)),b(d,a)};V(o,d=>{e.title&&d(r)})}var s=P(o,2);{var l=d=>{let a=v(()=>!!e.thumbUrl);ig(d,{get isWhite(){return n(a)}})};V(s,d=>{(!e.title||!e.thumbUrl)&&d(l)})}S(i),D(()=>We(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),b(t,i)}var sT=L('<div class="playerError s-0"><!></div>'),aT={hash:"s-0",code:".playerError.s-0{align-items:center;background-color:#222;background-position:50%;background-size:cover;display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;height:100%;justify-content:center;position:relative;width:100%}"};function ng(t){G(t,aT);var e=sT(),i=T(e);tl(i,{}),S(e),b(t,e)}var Np=require("@vkontakte/videoplayer-shared/es2018"),Ni=require("@vkontakte/videoplayer-shared/es2018"),Gc=require("@vkontakte/videoplayer-core/es2018"),cd=require("@vkontakte/videoplayer-statistics/es2018");var Tp=require("@vkontakte/videoplayer-shared/es2018"),Cp=class{constructor(){this.subscription=new Tp.Subscription,this.logger=new Tp.Logger,this.log=this.logger.createComponentLog("MediaSessionApi")}isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:i="",thumbUrl:o=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:i,artwork:[{src:o,sizes:"96x96",type:"image/png"},{src:o,sizes:"128x128",type:"image/png"},{src:o,sizes:"192x192",type:"image/png"},{src:o,sizes:"256x256",type:"image/png"},{src:o,sizes:"384x384",type:"image/png"},{src:o,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",null],["seekbackward",null],["seekforward",null]];this.setActionHandlers(e)}setActionHandlers(e){var i,o;if(this.isSupported())for(let[r,s]of e)try{(o=(i=navigator.mediaSession).setActionHandler)==null||o.call(i,r,s)}catch(l){throw new Error(`The media session action "${r}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||(this.clearSubscriptions(),this.subscription.add(e.state.positionExact$.subscribe(i=>{var s,l;let o=be(e.state.currentPlaybackRate$),r=be(e.state.duration$);if(!(!isFinite(i)||!isFinite(r)))try{(l=(s=navigator.mediaSession).setPositionState)==null||l.call(s,{position:i,playbackRate:o,duration:r})}catch(d){this.log({message:`MediaSession setPositionState can't call with position: ${i} and duration: ${r}`})}})))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};var sd=require("@vkontakte/videoplayer-shared/es2018");var lT=Ie('<path d="M31.257 3.998c3.037.01 4.52.39 6.13 1.24a9 9 0 013.47 3.35l.17.31.15.3c.78 1.55 1.07 3.18 1.09 6.25v9.04a1.5 1.5 0 01-3 .02v-9.65c-.05-2.04-.24-3.12-.64-4.04l-.12-.27-.13-.25A6 6 0 0036.2 7.9c-1.19-.64-2.34-.88-5.11-.9h-8.84c-2.73 0-4 .2-5.07.7l-.25.13a6 6 0 00-2.4 2.41c-.64 1.19-.88 2.34-.9 5.11v20.83c0 2.74.2 4 .7 5.08l.13.25a6 6 0 002.41 2.4c1.1.6 2.13.83 4.44.89H26a1.5 1.5 0 010 3h-4.47c-3-.05-4.53-.38-6.14-1.24a9 9 0 01-3.48-3.35l-.15-.3c-.73-1.47-1.04-3.01-1.08-5.8V15c.05-2.98.39-4.52 1.25-6.12a9 9 0 013.293-3.582c1.85-.871 2.623-1.27 5.747-1.27z"></path><path d="M30.5 33.8c0-1.68 0-2.52.33-3.16a3 3 0 0 1 1.3-1.31c.65-.33 1.49-.33 3.17-.33h6.4c1.68 0 2.52 0 3.16.33a3 3 0 0 1 1.31 1.3c.33.65.33 1.49.33 3.17v13.4c0 1.68 0 2.52-.33 3.16a3 3 0 0 1-1.3 1.31c-.65.33-1.49.33-3.17.33h-6.4c-1.68 0-2.52 0-3.16-.33a3 3 0 0 1-1.31-1.3c-.33-.65-.33-1.49-.33-3.17z"></path>',1),dT=L('<div><div><!></div> <span class="title s-6"> </span></div>'),cT={hash:"s-6",code:".player-pip-dummy.s-6{align-items:center;background-color:#19191a;display:flex;flex-direction:column;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;height:100%;justify-content:center;width:100%}.player-pip-dummy.is-pip-api.s-6{position:relative}.dummy-image.s-6 svg{transform:scale(1.07143)}.dummy-image.desktop.s-6{transform:scale(1.07143) rotate(-90deg) rotateY(180deg)}.title.s-6{color:#fff;font-size:16px;padding:18px 20px 10px;text-align:center}"};function rg(t,e){B(e,!0),G(t,cT);let[i,o]=Ne(),r=()=>w(u,"$interfaceLanguage$",i),s=()=>w(f,"$isMobile$",i),l=he(),d=Rt(),a=!!l.webApi.pictureInPictureApi,u=l.interfaceLanguage$,f=l.ui.isMobile,p=l.ui.t,m=v(()=>r()&&p("pip_dummy_title")),$=Sp(d.view);var y=dT();let _;var x=T(y);let I;var C=T(x);Ze(C,{width:"57",height:"56",testId:"pip-dummy-icon",children:(E,k)=>{var Q=lT();ai(),b(E,Q)},$$slots:{default:!0}}),S(x);var R=P(x,2),A=T(R,!0);S(R),S(y),D((E,k)=>{_=re(y,1,"player-pip-dummy s-6",null,_,E),We(y,$),I=re(x,1,"dummy-image s-6",null,I,k),ve(A,n(m))},[()=>({"is-pip-api":a}),()=>({desktop:!s()})]),b(t,y),F(),o()}var uT=Object.defineProperty,pT=(t,e,i)=>e in t?uT(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,rd=(t,e,i)=>pT(t,typeof e!="symbol"?e+"":e,i),fT=460,mT=280,Bc=class{constructor({enabled:e=!0}={enabled:!0}){rd(this,"playerDomElement"),rd(this,"playerParentShadowRoot"),rd(this,"playerDummyElement"),rd(this,"svelteContext"),rd(this,"pipWindow"),rd(this,"info",{isActive$:new sd.ValueSubject(!1),isEnabled$:new sd.ValueSubject(!1),type:1}),this.info.isEnabled$=new sd.ValueSubject(e)}isSupported(){let{isEmbed:e}=(0,sd.detectEmbed)();return"documentPictureInPicture"in window&&!e}isActive(){return this.info.isActive$.getValue()}setPlayerDomElement(e,i){this.playerDomElement=e,this.playerParentShadowRoot=i}setContext(e){this.svelteContext=e}async request(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:fT,height:mT,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let o=[...this.playerParentShadowRoot.styleSheets].map(a=>[...a.cssRules].map(u=>u.cssText).join(" ")).filter(Boolean).join(`
63
+ `),r=document.createElement("style");r.textContent=o;let s=this.createStretchedContainer(),l=s.attachShadow({mode:"open"});l.append(r),l.append(this.playerDomElement);let d={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=Gr(rg,d),(e=this.pipWindow)==null||e.document.body.append(s),this.info.isActive$.next(!0),(i=this.pipWindow)==null||i.addEventListener("unload",a=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(Aa(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1),this.pipWindow=void 0)})}async exit(){return new Promise(e=>{var i;this.pipWindow&&((i=documentPictureInPicture.window)==null||i.close()),e()})}async dispose(){await this.exit()}setEnabled(e){this.info.isEnabled$.next(e)}createStretchedContainer(){let e=document.createElement("div");return e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",e.style.height="100%",e}};function d$(t){return t instanceof Bc}var Ip=class{static getLatestSupportedVersion(e){let i=new Ba(e),o=new Bc(e);if(o.isSupported())return o;if(i.isSupported())return i}};function Fc(t,e){var r,s;let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let l of i)o[l]=(s=(r=e[l])!=null?r:t[l])!=null?s:void 0;return o}var c$="Inner error. Unexpectedly root annotation container null reference exception",u$="Annotation with such name already exists",p$="Annotation with such name does not exist";var ad=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var ld=require("@vkontakte/videoplayer-shared/es2018"),vT="1",gT=100,Ep=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new ld.Subscription}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=(0,ld.throttleFn)(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},gT);this.subscriptions.add((0,ld.observeElementSize)(this.rootAnnotationsContainer).subscribe(({width:o,height:r})=>{this.playerSize={width:o,height:r},i()})),this.mutationObserver=new MutationObserver(i),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,i){var o;if(!this.rootAnnotationsContainer)throw new ad(c$);if(this.annotations.has(e))throw new ad(u$);i.style.zIndex=(o=i.style.zIndex)!=null?o:vT,i.style.position="absolute",this.rootAnnotationsContainer.append(i),this.annotations.set(e,i)}get(e){let i=this.annotations.get(e);if(!i)throw new ad(p$);return i}remove(e){let i=this.get(e);this.annotations.delete(e)&&i.remove()}clear(){for(let e in this.annotations.keys())this.remove(e)}destroy(){var e;this.annotations.clear(),this.subscriptions.unsubscribe(),(e=this.mutationObserver)==null||e.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,i,o){let r=e.offsetTop,s=e.offsetLeft,l=e.offsetWidth,d=e.offsetHeight;return r<0||s<0||s+l>i||r+d>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};var ll=require("@vkontakte/videoplayer-shared/es2018"),un=class{init({store:e,microStores:i,interactiveController:o,config:r}){return(0,ll.assertNonNullable)(e),(0,ll.assertNonNullable)(i),(0,ll.assertNonNullable)(r),r.interactiveData&&(0,ll.assertNonNullable)(o),this.subscription=new ll.Subscription,this.subscription}};var Hc=class extends un{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...de(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{isInteractiveExpectation$:r}=i.store.state;return o.add(r.subscribe(s=>{this.state$.set(s?!0:null)})),o}};var Uc=class extends un{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...de(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{microStores:r,store:s}=i,{fakeIsPlaying$:l}=r,{isInteractiveExpectation$:d,isPlaying$:a}=s.state,{controlsVisible:u,isMobile:f}=s.ui,p=be(f),m=()=>p&&be(u);return o.add(u.subscribe($=>{if(!p)return;let y=be(l);be(a)?this.state$.set($):y!==null&&this.state$.set(!y||$)})),o.add(a.subscribe($=>{this.state$.set(!$||m())})),o.add(l.subscribe($=>{if($===null)return;let y=be(d);if(m()){this.state$.set(!0);return}y&&this.state$.set(!$)})),o}};var zc=class extends un{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=de("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:r}=i;return o.add(r.state.interactiveEpisodes$.subscribe(s=>{s.length&&(s.every(l=>l.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};var f$=require("@vkontakte/videoplayer-shared/es2018"),sg=de(!1),kp=null,Wc=class extends un{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...sg,set:(i,o=!1)=>{i!==be(sg)&&(this.clearTimeout(),sg.set(i),!i&&kp&&(kp=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()}}init(i){let o=super.init(i),{store:r,config:s}=i,{isInteractiveTime$:l,isPlaying$:d}=r.state,a=r.ui.controlsVisible,{interactiveTimeIndicator:u}=r.ui.controls;o.add(a.subscribe(p=>{be(l)&&p&&this.state$.set(!1)}));let f=(s==null?void 0:s.interactiveData)||{tooltipHelpHintActive:!1};return o.add((0,f$.combine)({isPlaying$:d,isInteractiveTime$:l,interactiveTimeIndicator:u}).subscribe(({isPlaying$:p,isInteractiveTime$:m,interactiveTimeIndicator:$})=>{var y,_;if(!(!p||!($!=null&&$.isDisplayed))){if(!m)return this.state$.set(!1);f.tooltipHelpHintActive&&kp===null&&(kp=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),(_=(y=r.callbacks)==null?void 0:y.onInteractiveTimeIndicatorHintDeactivated)==null||_.call(y))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};var Pp=require("@vkontakte/videoplayer-shared/es2018");var Kc=class extends un{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...de(null),toggle:Pp.noop};this.checkIfShouldHide=i=>Ns(i,"s")}init(i){let o=super.init(i),{store:r,interactiveController:s}=i,l=r.ui.currentGridType$,d=r.getLogger().createComponentLog("GraphIsOpened microStore");return this.state$.toggle=async()=>{if(this.checkIfShouldHide(be(l)))return;let a=be(this.state$),{isEnded$:u,playbackState$:f}=r.state,{disabledControls$:p}=r.ui.controls,m=be(u),$=be(f);if(a)try{await(s==null?void 0:s.toggleGraphView(!1)),this.state$.set(!1),p.remove(Df),!m&&this.graphMadePause&&r.actions.internal.play()}catch(y){d({message:"Cant hide graph"})}else{this.graphMadePause=$==="playing";try{await(s==null?void 0:s.toggleGraphView(!0)),this.state$.set(!0),p.add(Df),!m&&this.graphMadePause&&r.actions.internal.pause()}catch(y){d({message:"Cant show graph"})}}},o.add((0,Pp.combine)({graphIsOpened:this.state$,currentGridType:l}).subscribe(async({graphIsOpened:a,currentGridType:u})=>{if(this.checkIfShouldHide(u)&&a)try{await(s==null?void 0:s.toggleGraphView(!1)),this.state$.set(!1)}catch(p){d({message:"Cant hide graph"})}})),o}};var ag=require("@vkontakte/videoplayer-shared/es2018"),qc=class extends un{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:de(!1),isEnabled$:de(!1),type$:de(void 0)}}init(i){let o=super.init(i),{store:r}=i,{info:{isActive$:s,isEnabled$:l,type:d}}=r.webApi.pictureInPictureApi||{info:{isActive$:new ag.ValueSubject(!1),isEnabled$:new ag.ValueSubject(!1)}};return o.add(s.subscribe(a=>{this.state$.isActive$.set(a)})),o.add(l.subscribe(a=>{this.state$.isEnabled$.set(a)})),this.state$.type$.set(d),o}};var Lp=require("@vkontakte/videoplayer-shared/es2018");var Ap=require("@vkontakte/videoplayer-shared/es2018"),m$=({maxShowCount:t,timeout:e})=>{let i=[t!==0?hT({maxCount:t}):void 0,e!==0?_T({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(r=>r.notificationShowed(o)),canShowNotification:o=>i.every(r=>r.canShowNotification(o))}},hT=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,r;e[i]=((o=e[i])!=null?o:0)+1,Ap.safeStorage.set("videoplayer_notifications_manager_count",JSON.stringify((r=e[i])!=null?r:0))},canShowNotification:i=>{var o;return((o=e[i])!=null?o:0)<t}}},_T=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(Ap.safeStorage.get(e)||"{}")}catch(s){return{}}},o=s=>Ap.safeStorage.set(e,JSON.stringify(s)),r=s=>{let l=i();delete l[s],o(l)};return{notificationShowed:s=>{o({...i(),[s]:{timeout:t,launchTime:Date.now()}})},canShowNotification:s=>{let l=i()[s];if(l){let d=Date.now()-l.launchTime>t;return d&&r(s),d}else return!0}}};var Qc=class extends un{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:de({}),showNotification:i=>{this.state$.notificationsToShow$.update(o=>(o[i]=!0,o)),this.notificationManager.notificationShowed(i)},closeNotification:i=>{this.state$.notificationsToShow$.update(o=>(delete o[i],o))}}}init(i){let o=super.init(i),{store:r,uiConfig:{features:{maxCountShowSlowVideoNotification:s,timeoutShowSlowVideoNotification:l,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:a}}}=i;this.notificationManager=m$({maxShowCount:s,timeout:l});let u=r.getPlayer();return o.add(u.events.severeStallOccured$.pipe((0,Lp.filterChanged)(),(0,Lp.filter)(f=>f)).subscribe(()=>{d&&!u.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(a&&r.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var v$=()=>[Hc,Uc,zc,Wc,Kc,qc,Qc].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:{...e,[o.stateName]:o.state$}}},{subscribers:[],stores:{}});var dd=require("@vkontakte/videoplayer-shared/es2018");var Mp=class{constructor(e){this.getActiveElement=e;this.focusableElements=[];this.isActive=!1;this.handleTabKey=e=>{if(this.updateFocusableElements(),!this.focusableElements.length)return;let i=this.focusableElements[0],o=this.focusableElements[this.focusableElements.length-1],r=this.getActiveElement();e.shiftKey&&r===i?(e.preventDefault(),o.focus()):!e.shiftKey&&r===o&&(e.preventDefault(),i.focus())}}activate(){this.isActive||(document.addEventListener("keydown",this.handleTabKey),this.isActive=!0)}deactivate(){this.isActive&&(document.removeEventListener("keydown",this.handleTabKey),this.isActive=!1,this.focusableElements=[])}updateFocusableElements(){this.isActive&&(this.focusableElements=this.getFocusableElements())}getFocusableElements(){let e=["button:not([disabled])","[href]:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"]):not([disabled])'].join(", ");return Array.from(this.container.querySelectorAll(e)).filter(i=>!i.disabled&&i.offsetParent!==null)}destroy(){this.deactivate()}setContainer(e){this.container=e}};var Vp=class{constructor(e){this.shadowRoot=e;this.lastFocusedNode=null;this.init=()=>{this.shadowRoot.addEventListener("focusin",this.handleFocusChange)};this.handleFocusChange=()=>{this.lastFocusedNode=this.shadowRoot.activeElement};this.restoreFocus=()=>{var e;(e=this.lastFocusedNode)==null||e.focus()};this.focusLock=new Mp(()=>this.lastFocusedNode),this.init()}destroy(){this.shadowRoot.removeEventListener("focusin",this.handleFocusChange),this.focusLock.destroy()}getLastFocusedNode(){return this.lastFocusedNode}activateLock(){this.focusLock.activate()}deactivateLock(){this.focusLock.deactivate()}setContainerForFocusLock(e){this.focusLock.setContainer(e)}};var bT=L('<div class="root s-3"><!></div>'),$T={hash:"s-3",code:".root.s-3{align-items:center;display:flex;inset:0;justify-content:center;pointer-events:none;position:absolute;z-index:1}"};function lg(t,e){B(e,!0),G(t,$T);let i=null,o=q(null);De(()=>(n(o)&&(i=window.setTimeout(()=>{N(o,null)},e.animationDuration)),()=>{i&&clearTimeout(i)}));function r(a){e.playbackStatusShow&&N(o,a?"prev":"next",!0)}var s=Ae(),l=ue(s);{var d=a=>{var u=Ae(),f=ue(u);As(f,()=>n(o),p=>{var m=bT(),$=T(m);let y=v(()=>n(o)==="prev");Oc($,{get duration(){return e.animationDuration},get Icon(){return ca},get reversed(){return n(y)}}),S(m),b(p,m)}),b(a,u)};V(l,a=>{e.playbackStatusShow&&n(o)&&a(d)})}return b(t,s),F({startVideoChangedAnimation:r})}var g$=require("@vkontakte/videoplayer-shared/es2018"),dg=(0,g$.getWindow)().HTMLElement||class{constructor(){this.isConnected=!1}};var yT=Object.defineProperty,xT=(t,e,i)=>e in t?yT(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Yt=(t,e,i)=>xT(t,typeof e!="symbol"?e+"":e,i),wT={preload:!0,autoplay:!1,repeat:!1,loop:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:Ni.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:(0,Gc.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},Jn=q(void 0),cg=si({animationDuration:0,playbackStatusShow:!1}),Rp=class extends dg{constructor(){super(),Yt(this,"svelteStubComponent"),Yt(this,"svelteRootComponent"),Yt(this,"sveltePersistentLayerComponent"),Yt(this,"svelteErrorComponent"),Yt(this,"store"),Yt(this,"microStoresRoot"),Yt(this,"statistics"),Yt(this,"sentry"),Yt(this,"_shadowRoot"),Yt(this,"playerContainer"),Yt(this,"rootContainer"),Yt(this,"stateContainer"),Yt(this,"shadowRootContainer"),Yt(this,"playerId"),Yt(this,"uiConfig"),Yt(this,"coreConfig"),Yt(this,"statisticsConfig"),Yt(this,"metaConfig"),Yt(this,"interactiveController"),Yt(this,"interactiveContainer"),Yt(this,"graphMadePause"),Yt(this,"currentPlayingVideoIndex",0),Yt(this,"needToRepeatPlaylist",!1),Yt(this,"videoConfig"),Yt(this,"pictureInPictureApi"),Yt(this,"mediaSessionApi"),Yt(this,"unsubscribePlayerPhaseSubscription"),Yt(this,"logger"),Yt(this,"log"),Yt(this,"subscription"),Yt(this,"interactiveSubscription"),Yt(this,"annotationsApi"),Yt(this,"slotsApi"),Yt(this,"focusManager"),Yt(this,"prevIsid"),Yt(this,"isInited",!1),Yt(this,"postponedInitParams",null),Yt(this,"internalsExposure",null),Yt(this,"shadowDOMCallbacksDisabled",!1),Yt(this,"fatalError$",new Np.ValueSubject(null)),Yt(this,"createOneStat",(e,i={})=>{var o,r,s,l;if(!this.videoConfig)return;let{albumId:d,statPlace:a,statUserSalt:u,statTrackCode:f,statVKAppId:p,refreshStatAuthToken:m,autoplay:$,isMobile:y,isTouch:_,refDomain:x,deviceId:I,interactiveData:C}=Fc(this.videoConfig,i),R=(o=C==null?void 0:C.projectInfo)==null?void 0:o.pid,A=(s=(r=this.interactiveController)==null?void 0:r.state.isReplay$.getValue())!=null?s:!1;A&&(this.prevIsid=void 0);let{unitedVideoId:E,isClip:k=!1}=e;if(this.uiConfig.features.statistics&&E)try{return new cd.OneStat({movieId:E,albumId:d,place:a,trackCode:f,vkAppId:p,autoplay:(l=$&&!this.interactiveController)!=null?l:!1,mobile:_!=null?_:y,clip:k,refDomain:x,deviceId:I,isPreviewPlayerView:this.videoConfig.playerView==="preview",...R&&(!this.isInited||A)&&{projectId:Number(R)}},{refreshAuthToken:m,userSalt:u,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})}catch(H){console.error(H),this.log({message:H.message})}}),dd.devNull.create("ui"),this.logger=new Ni.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new Ni.Subscription,this.interactiveSubscription=new Ni.Subscription,this.graphMadePause=!1,this.fatalError$.subscribe(e=>{this.unmountComponent(this.svelteErrorComponent),e&&(this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.svelteErrorComponent=Gr(ng,{target:this.playerContainer}))})}connectedCallback(){var e,i;if(this.rootContainer)return;this.initPlayerRootContainers();let o=(e=this.getAttribute("stub-title"))!=null?e:void 0,r=(i=this.getAttribute("stub-thumb-url"))!=null?i:void 0,s=si({title:o,thumbUrl:r}),l={target:this.playerContainer,props:s};this.svelteStubComponent=Gr(og,l),this.sveltePersistentLayerComponent=Gr(lg,{target:this.playerContainer,props:cg}),this.postponedInitParams&&(this.initPlayer(...this.postponedInitParams),this.postponedInitParams=null)}updatePersistentLayerProps(){if(!this.uiConfig)return;let{playbackStatusNextVideoAnimationDuration:e,features:{playbackStatusShow:i,playbackStatusNextVideoShow:o}}=this.uiConfig;cg.animationDuration=e,cg.playbackStatusShow=i&&o}disconnectedCallback(){var e,i,o,r,s,l,d;this.shadowDOMCallbacksDisabled||((e=this.annotationsApi)==null||e.destroy(),(i=this.slotsApi)==null||i.destroy(),(o=this.focusManager)==null||o.destroy(),(r=this.mediaSessionApi)==null||r.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteErrorComponent),this.unmountComponent(this.sveltePersistentLayerComponent),this.subscription.unsubscribe(),(s=this.unsubscribePlayerPhaseSubscription)==null||s.call(this),(l=this.interactiveController)==null||l.destroy(),this.interactiveSubscription.unsubscribe(),(d=this.internalsExposure)==null||d.destroy(),dd.devNull.destroy("ui"))}initPlayerRootContainers(){this.rootContainer=document.createElement("div"),this.rootContainer.style.position="relative",this.rootContainer.className="root-container",this.rootContainer.style.width="100%",this.rootContainer.style.height="100%",this.rootContainer.style.minHeight="206px",this.shadowRootContainer=document.createElement("div"),this.shadowRootContainer.style.position="absolute",this.shadowRootContainer.className="shadow-root-container",this.shadowRootContainer.style.width="100%",this.shadowRootContainer.style.height="100%",this._shadowRoot=this.shadowRootContainer.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(this.shadowRootContainer),this.stateContainer=document.createElement("div"),this.stateContainer.className="state-container",this.stateContainer.style.width="1px",this.stateContainer.style.height="1px",this.stateContainer.style.position="absolute",this.stateContainer.style.backgroundColor="transparent",this.stateContainer.style.left="-100000px",this.append(this.rootContainer),this.append(this.stateContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1&&this.videoConfig.showNextPrevButtons:!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(e){var i;let o=(i=this.store)==null?void 0:i.ui.controls.disabledControls$;return(o==null?void 0:o.includes(e))||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let e=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:e.title,nextVideoThumb:e.thumbUrl}}createThinOneStat(e,i={}){if(!this.videoConfig)return;let{deviceId:o,preload:r,refreshStatAuthToken:s}=Fc(this.videoConfig,i),{unitedVideoId:l}=e;if(this.uiConfig.features.thinStatistics&&l)return new cd.ThinOneStat.ThinOneStat({deviceId:o,movieId:l,preload:r,isPreviewPlayerView:this.videoConfig.playerView==="preview"},{config:this.statisticsConfig,refreshAuthToken:s})}createPlayer(e,i={},o){var r,s,l,d,a,u,f,p,m,$;if(!this.videoConfig)return;let{albumId:y,statPlace:_,statAuthToken:x,preload:I,autoplay:C,volume:R,muted:A,fromTime:E,canRewindLive:k,supportLink:Q,showAds:H,adsSlotId:z,adsParams:X={},adsAutoplayParam:se,interfaceLanguage:Z,isCyrillicRelatedInterface:oe,logoClickable:J,logoHidden:Ce,isMobile:me,isTouch:ee,isAudioDisabled:_e,isLiveCatchUpMode:we,fullScreenTarget:ge,failoverHosts:pe,canDownload:Qe,callbacks:U,interactiveData:O,showThumbTimer:Ge,additionalButtons:K=[],additionalSettingsMenuItems:ae=[],additionalContextMenuItems:xe=[],repeat:Oe,loop:it,saveRate:ne,volumeMultiplier:ce,showEndScreen:Re,showAutoplayNext:Ve,mediascopePixels:et}=Fc(this.videoConfig,i),{sources:ke,title:Te,thumbUrl:Be,unitedVideoId:It,isClip:$t=!1,duration:Ot,adsParams:ct={},videoEpisodes:Et,previewThumbsData:ei,subtitles:kt,subtitlesForcedLanguage:Dt,live:Ht,adsExternalApi:Y}=e;if(!ke&&!Ht){let ui=new Error("empty sources and live");this.fatalError$.next(ui),(r=U.onCrashed)==null||r.call(U,ui.message);return}let Ee={...X,...ct},le=this.getNextVideoInfo(),$e={sources:ke,title:Te,thumbUrl:Be,subtitles:kt,subtitlesForcedLanguage:Dt,unitedVideoId:It,isClip:$t,live:Ht,albumId:y,statPlace:_,autoplay:C,muted:A,volume:R,fromTime:E,canRewindLive:k,showAds:H,adsSlotId:z,adsParams:Ee,adsAutoplayParam:se,duration:Ot,logoClickable:J,logoHidden:Ce,isTouch:ee!=null?ee:me,repeat:Oe,loop:it,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:le.nextVideoTitle,endScreenVideoThumb:le.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Le={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi,focusManager:this.focusManager};this.log({message:`create player, props: ${JSON.stringify($e)}`});let nt=(s=this.interactiveController)==null?void 0:s.state.statistics$.getValue(),St=(nt==null?void 0:nt.oneStat)||this.createOneStat(e,i),fe=this.createThinOneStat(e,i),Ue;et&&(Ue=new cd.MediascopePixel({pixels:et})),(St||fe)&&(this.statistics=new up(St,fe,Ue,nt==null?void 0:nt.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Oa(this.uiConfig.sentry,{version:Ra,env:Ru},{movieId:It,albumId:y,place:_,autoplay:(l=C&&!this.interactiveController)!=null?l:!1,mobile:ee!=null?ee:me,clip:$t}),this.interactiveController&&((u=this.prevIsid)!=null||(this.prevIsid=(a=(d=this.statistics)==null?void 0:d.oneStat)==null?void 0:a.isid$.getValue())),this.sentry={...this.sentry,...Oa.getInstance()};let at=!!O,jt=[],Ft="tooltip_interactive_go_back_disabled_first";if(at&&this.interactiveController){let ui=this.interactiveController.state.isInitialChapter$.getValue(),hi=this.interactiveController.getHistoryState();ui&&jt.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||jt.push("SEEK_TO_INTERACTIVE_BUTTON"),hi.hasPrevChapter$.getValue()||(jt.push("PLAY_PREV_CHAPTER_BUTTON"),ui||(hi.isGoBackLimited$.getValue()?Ft="tooltip_interactive_go_back_disabled_limit":Ft="tooltip_interactive_go_back_disabled"))}let ci=()=>{var ui;this.isInited=!1,this.prevIsid=void 0;let hi=(o==null?void 0:o.info.isEnded$.getValue())&&((ui=this.interactiveController)==null?void 0:ui.state.isEndChapter$.getValue());U.onReplayInteractiveVideo&&!hi?U.onReplayInteractiveVideo():this.replayInteractiveVideo()},li=Oe&&this.videoConfig.videos.length===1;this.store=Cb({player:o,interfaceLanguage:Z,isCyrillicRelatedInterface:oe,videoId:It,isClip:$t,isLiveCatchUpMode:we,isAudioDisabled:_e,statAuthToken:x,callbacks:U,webApi:Le,videoEpisodes:Et,previewThumbsData:ei,canDownload:Qe,uiConfig:this.uiConfig,coreConfig:this.coreConfig,metaConfig:this.metaConfig,disabledControls:jt,isInteractive:at,saveRate:ne,interactiveRanges$:(f=this.interactiveController)==null?void 0:f.state.interactiveRanges$,isInteractiveTime$:(p=this.interactiveController)==null?void 0:p.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:ci,playPrevChapterDisabledTooltip:Ft,hasInteractiveBranches:!!(($=(m=this.interactiveController)==null?void 0:m.getChapterBranches())!=null&&$.length),additionalButtons:this.uiConfig.features.additionalButtons?K:[],additionalSettingsMenuItems:ae!=null?ae:[],additionalContextMenuItems:xe!=null?xe:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),onVideoChanged:ui=>{var hi;return(hi=this.sveltePersistentLayerComponent)==null?void 0:hi.startVideoChangedAnimation(ui)},looped:this.uiConfig.features.useLoopSetting?it:li,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView,playerId:this.playerId});let{stores:Di}=this.microStoresRoot=v$(),At=()=>{var ui,hi,mt,Xt,Oi,Si;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(gt=>{var qe;return(qe=U==null?void 0:U.onCurrentFormatChanged)==null?void 0:qe.call(U,gt)})),this.subscription.add(Di.interactiveControlsOpacity$.subscribe(gt=>{var qe;gt!==null&&((qe=this==null?void 0:this.interactiveController)==null||qe.setDisabledControls(gt))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(gt=>{var qe;return(qe=U==null?void 0:U.onThroughputEstimationChanged)==null?void 0:qe.call(U,gt)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(gt=>{var qe;return(qe=U==null?void 0:U.onTrafficSavingEnabledChanged)==null?void 0:qe.call(U,gt)})),this.subscription.add(this.store.state.highQualityEnabled$.subscribe(gt=>{var qe;return(qe=U==null?void 0:U.onHighQualityEnabledChanged)==null?void 0:qe.call(U,gt)})),this.subscription.add(this.store.state.isAutoQualityEnabled$.subscribe(gt=>{var qe;return(qe=U==null?void 0:U.onAutoQualityEnabledChanged)==null?void 0:qe.call(U,!!gt)})),this.subscription.add(new Ni.Observable(gt=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(qe=>gt.next(qe)))}).pipe((0,Ni.skip)(1)).subscribe(gt=>{var qe;return(qe=U==null?void 0:U.onCurrentPlaybackRateChanged)==null?void 0:qe.call(U,gt)})),this.subscription.add(this.store.state.volume$.subscribe(gt=>{var qe;return(qe=U==null?void 0:U.onVolumeChange)==null?void 0:qe.call(U,gt)})),this.subscription.add(this.store.state.muted$.subscribe(gt=>{var qe,_i,_o,Xo;if(gt)(qe=U==null?void 0:U.onMute)==null||qe.call(U);else{let Zo=(_o=((_i=this.store)==null?void 0:_i.state.volume$)&&be(this.store.state.volume$))!=null?_o:0;(Xo=U==null?void 0:U.onUnmute)==null||Xo.call(U,Zo)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(gt=>{var qe;return(qe=U==null?void 0:U.onVideoBitrateChanged)==null?void 0:qe.call(U,gt)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(gt=>{var qe;let _i=(qe=this.store)==null?void 0:qe.ui.controls.disabledControls$;_i&&(gt&&!_i.includes(Kd)&&_i.add(Kd),gt||_i.remove(Kd))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async gt=>{var qe;if(!Gc.clientChecker.browser.isSamsungBrowser||!gt||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter((qe=this.videoConfig)==null?void 0:qe.callbacks.onExternalFullscreenExit)})),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(gt=>{var qe;return(qe=U==null?void 0:U.onVSIDChanged)==null?void 0:qe.call(U,gt)})),this.initMediaSession(),N(Jn,{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:ke,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:Te,thumbUrl:Be,subtitles:kt,subtitlesForcedLanguage:Dt,live:Ht,preload:I,autoplay:C,muted:A,volume:R,fromTime:E,canRewindLive:k,supportLink:Q,showAds:H,adsSlotId:z,adsParams:Ee,adsAutoplayParam:se,duration:Ot,logoClickable:J,logoHidden:Ce,isMobile:ee!=null?ee:me,failoverHosts:pe,fullScreenTarget:ge,saveRate:ne,shadowRootContainer:this.shadowRootContainer,showMiniTimer:Ge,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:le.nextVideoTitle,endScreenVideoThumb:le.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:ce,showEndScreen:Re,showAutoplayNext:Ve,adsExternalApi:Y,getVideoDeeplink:this.videoConfig.getVideoDeeplink},!0);let ti={target:this.playerContainer,props:n(Jn)};this.svelteRootComponent=Gr(tg,ti),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(mt=(hi=(ui=this.videoConfig)==null?void 0:ui.callbacks)==null?void 0:hi.onInited)==null||mt.call(hi)),(Xt=this.internalsExposure)==null||Xt.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((Si=(Oi=this.videoConfig)==null?void 0:Oi.callbacks)!=null&&Si.onDevNullLog)?dd.devNull.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):dd.devNull.destroy("ui")};this.coreConfig.asyncResolveClientChecker?Gc.clientChecker.isInited$.subscribe(ui=>{ui&&(console.log("UI SDK async start"),At())}):At()}addPlayerInfoSubscriptions(){var e,i;let o=this.store,r=(e=this.microStoresRoot)==null?void 0:e.stores;if(!o||!r)return;let s=(i=this.videoConfig)==null?void 0:i.callbacks;s&&this.subscription.add(o.playerPhase.subscribe(d=>{var a;return(a=s.onPlayerPhaseChanged)==null?void 0:a.call(s,d)})).add(o.state.playbackState$.subscribe(d=>{var a;return d&&((a=s.onPlaybackStateChanged)==null?void 0:a.call(s,d))})).add(o.state.playbackStateRealistic$.subscribe(d=>{d?this.stateContainer.setAttribute("data-playback-state",d):this.stateContainer.removeAttribute("data-playback-state")})).add(o.state.isLive$.subscribe(d=>{var a;return(a=s.onIsLiveChanged)==null?void 0:a.call(s,d)})).add(o.state.isActiveLive$.subscribe(d=>{var a;return(a=s.onIsActiveLiveChanged)==null?void 0:a.call(s,d)})).add(o.state.isAudioAvailable$.subscribe(d=>{var a;return(a=s.onIsAudioAvailableChanged)==null?void 0:a.call(s,d)})).add(o.state.currentQuality$.subscribe(d=>{var a;return(a=s.onCurrentQualityChanged)==null?void 0:a.call(s,d)})).add(o.state.availableQualities$.subscribe(d=>{var a;return(a=s.onAvailableQualitiesChanged)==null?void 0:a.call(s,d.map(({value:u})=>u).filter(u=>u!=="auto"))})).add(o.state.availableAudioStreams$.subscribe(d=>{d.length>1&&s.onAudioLanguagesAvailable&&s.onAudioLanguagesAvailable()})).add(r.pictureInPicture$.isActive$.subscribe(d=>{var a,u;return d?(a=s.onPiPEnter)==null?void 0:a.call(s):(u=s.onPiPExit)==null?void 0:u.call(s)}));let l=s==null?void 0:s.uiInfo;l&&this.subscription.add(o.ui.controlsVisible.subscribe(d=>{var a;return(a=l.onControlsVisibleChanged)==null?void 0:a.call(l,d)})).add(o.ui.isMobile.subscribe(d=>{var a;return(a=l.onIsMobileChanged)==null?void 0:a.call(l,d)})).add(o.ui.playerSize.subscribe(d=>{var a;return(a=l.onPlayerSizeChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.prevButton.subscribe(d=>{var a;return(a=l.onPrevButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.playButton.subscribe(d=>{var a;return(a=l.onPlayButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.replayButton.subscribe(d=>{var a;return(a=l.onReplayButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.nextButton.subscribe(d=>{var a;return(a=l.onNextButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.playPrevChapterButton.subscribe(d=>{var a;return(a=l.onPlayPrevChapterChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.seekToInteractiveButton.subscribe(d=>{var a;return(a=l.onSeekToInteractiveButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.interactiveGraphButton.subscribe(d=>{var a;return(a=l.onGraphButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.liveButton.subscribe(d=>{var a;return(a=l.onLiveButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.time.subscribe(d=>{var a;return(a=l.onTimeUpdateChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.episodes.subscribe(d=>{var a;return(a=l.onEpisodesChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.subtitles.subscribe(d=>{var a;return(a=l.onSubtitlesChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.topLeft.subscribe(d=>{var a;return(a=l.onTopLeftControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.topRight.subscribe(d=>{var a;return(a=l.onTopRightControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottomLeft.subscribe(d=>{var a;return(a=l.onBottomLeftControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottomRight.subscribe(d=>{var a;return(a=l.onBottomRightControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.middle.subscribe(d=>{var a;return(a=l.onMiddleControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottom.subscribe(d=>{var a;return(a=l.onBottomControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.videoTitleInfo.subscribe(d=>{var a;return(a=l.onTitleChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.settings.subscribe(d=>{var a;return(a=l.onSettingsChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.fullscreen.subscribe(d=>{var a;return(a=l.onFullscreenChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.chromecast.subscribe(d=>{var a;return(a=l.onChromecastChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.pip.subscribe(d=>{var a;return(a=l.onPipChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.vkLogo.subscribe(d=>{var a;return(a=l.onVkLogoChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.interactiveTimeIndicator.subscribe(d=>{var a;return(a=l.onInteractiveTimeIndicatorChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.timeline.subscribe(d=>{var a;return(a=l.onTimelineChanged)==null?void 0:a.call(l,d)}))}playNextVideo(){this.videoConfig&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){this.videoConfig&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}createPlayerWithCurrentVideo(e,i=!0){var o;if(!this.videoConfig)return;let r=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!r){this.log({message:"no next video"});return}this.isInited&&(0,Ni.isNonNullable)(r.unitedVideoId)&&((o=this.store)==null||o.actions.internal.nextMovie(r.unitedVideoId)),this.unmountComponent(this.svelteRootComponent),this.createPlayer(r,{autoplay:i,fromTime:0},e)}playPrevChapter(){var e;(e=this.interactiveController)==null||e.playPrevChapter()}seekToInteractive(){var e;let i=(e=this.interactiveController)==null?void 0:e.getNextInteractiveStartTime();typeof i=="number"&&this.seekTime(i/1e3)}async initInteractives(){var e,i,o,r,s,l;if((e=this.videoConfig)!=null&&e.interactiveData)try{let{Interactives:d}=await import("@vkontakte/videoplayer-interactive/es2018");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let a=(i=this.store)==null?void 0:i.interfaceLanguage$,u=a?be(a):this.videoConfig.interfaceLanguage,{projectInfo:f,initChapterId:p,historyApi:m,videoLoader:$}=this.videoConfig.interactiveData;this.interactiveController=new d({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:u,graph:this.uiConfig.features.interactiveGraph,projectInfo:f,initChapterId:p,historyApi:m,vkVideoLoader:$,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,interactiveTimeOpenUri:this.uiConfig.features.interactiveTimeOpenUri,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat,isTouch:this.videoConfig.isTouch,animationsFeatureToggles:{areaControlShadow:this.uiConfig.features.interactiveAreaControlShadow,controlsExpectTimeBlinkAnimation:this.uiConfig.features.interactiveControlsExpectTimeBlinkAnimation,controlsTapPlace:this.uiConfig.features.interactiveControlsTapPlace,controlsFillAnimation:this.uiConfig.features.interactiveControlsFillAnimation,controlsHideAnimation:this.uiConfig.features.interactiveControlsHideAnimation},endChapterHistoryFix:this.uiConfig.features.interactiveHistoryEndChapterFix});let{isInteractiveExpectation$:y,isSeekable$:_}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(_.subscribe(I=>{if(!this.isInited)return;let C=this.store;I?C.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):C.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(y.subscribe(I=>{this.store&&this.store.state.isInteractiveExpectation$.set(I)}));let x=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(I=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...I.config,title:(f==null?void 0:f.title)||I.config.title};let C=x?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(I.player,C),x&&(x=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:I,actionType:C})=>{var R,A,E,k,Q,H;if(!this.store||!this.microStoresRoot)return;let z=y.getValue();if(I==="action-choice"&&C==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(qd)),I==="action-choice-canceled"){let X=be(this.store.state.isPlaying$)||z;if(((E=(R=this.videoConfig)==null?void 0:R.isTouch)!=null?E:(A=this.videoConfig)!=null&&A.isMobile)&&X){this.store.ui.interactiveHideMobileControls.set(!0);return}(H=(k=this.videoConfig)==null?void 0:(Q=k.callbacks).onDisabledInteractiveClick)==null||H.call(Q)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:I,removeAllOpenURI:C})=>{this.store&&I==="container-fake-removed"&&C&&this.store.ui.controls.disabledControls$.remove(qd)})),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(r=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&r.onInteractiveHistoryChanged){let I=this.interactiveController.getHistoryState();this.subscription.add(I.history$.subscribe(C=>{var R,A,E;C.length&&((E=(A=(R=this.videoConfig)==null?void 0:R.callbacks)==null?void 0:A.onInteractiveHistoryChanged)==null||E.call(A,C))}))}(l=(s=this.videoConfig)==null?void 0:s.callbacks)!=null&&l.onInteractiveChapterChanged&&this.subscription.add(this.interactiveController.events.chapterChanged$.subscribe(I=>{var C,R,A;(A=(C=this.videoConfig)==null?void 0:(R=C.callbacks).onInteractiveChapterChanged)==null||A.call(R,I.chapter,I.manifestVideo)})),this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var I,C,R,A;(I=this.microStoresRoot)==null||I.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(A=(C=this.videoConfig)==null?void 0:(R=C.callbacks).onInteractiveTimeIndicatorClick)==null||A.call(R)})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(I=>{this.log({message:I.toString()})}))}catch(d){this.log({message:d.message})}}initPlayer(e,i={}){var o,r,s,l,d,a,u,f,p,m,$,y,_,x,I,C,R,A,E,k,Q,H,z,X,se;if(!this.isConnected){this.postponedInitParams=[e,i];return}if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData){let Z=new Error("empty videos");this.fatalError$.next(Z),(r=(o=e.callbacks)==null?void 0:o.onCrashed)==null||r.call(o,Z.message);return}else this.fatalError$.next(null);if(this.videoConfig=Fc(wT,(0,Ni.cloneDeepWith)(e,Z=>Z instanceof dg?Z:void 0)),this.playerId=(0,Ni.getPlayerId)(e.playerId),this.uiConfig=e_((s=i.ui)!=null?s:{}),this.updatePersistentLayerProps(),this.coreConfig=(l=i.core)!=null?l:{},this.statisticsConfig=(d=i.statistics)!=null?d:{},this.metaConfig=i.meta,this.uiConfig.features.forcePlayerDisplayBlock&&(this.rootContainer&&(this.rootContainer.style.minHeight="unset"),this.style.display="block",this.style.width="100%",this.style.height="100%"),this.videoConfig.playerView==="preview"&&(this.playerContainer.style.contain="none"),this.sentry={config:(a=this.uiConfig.sentry)!=null?a:{}},this.uiConfig.features.exposeInternalsToGlobal&&((u=this.internalsExposure)!=null||(this.internalsExposure=new Ni.InternalsExposure("ui",this.playerId))),dd.devNull.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+((f=this.videoConfig)==null?void 0:f.showAds)],numbers:[(0,Np.now)()]}),(0,Ni.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(m=(p=this.uiConfig.features.mediaSession)!=null?p:this.videoConfig.isMediaSessionEnabled)!=null?m:!0),(0,Ni.isNonNullable)(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(y=($=this.uiConfig.features.pip)!=null?$:this.videoConfig.isPictureInPictureEnabled)!=null?y:!0,this.uiConfig.features.dpip=(x=(_=this.uiConfig.features.dpip)!=null?_:this.videoConfig.isPictureInPictureEnabled)!=null?x:!0),this.uiConfig.ads.paramsOverride={preview:(I=this.uiConfig.ads.preview)!=null?I:this.videoConfig.adsPreviewParam,...this.uiConfig.ads.paramsOverride},this.videoConfig.isTouch=(R=(C=this.uiConfig.isMobile)!=null?C:this.videoConfig.isTouch)!=null?R:this.videoConfig.isMobile,(A=this.videoConfig).autoplay&&(A.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(E=this.uiConfig.ads.enable)!=null?E:this.videoConfig.showAds,this.videoConfig.adsSlotId=(k=this.uiConfig.ads.slot)!=null?k:this.videoConfig.adsSlotId,this.videoConfig.logoHidden=!((Q=this.uiConfig.showLogo)!=null?Q:!this.videoConfig.logoHidden),(H=this.videoConfig).canRewindLive&&(H.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(z=this.videoConfig.supportLink)!=null?z:this.uiConfig.supportLink,this.videoConfig.showEndScreen=this.uiConfig.features.endScreen&&this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=this.uiConfig.features.autoplayNext&&this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=this.uiConfig.features.nextPrevButtons&&this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((X=this.videoConfig.videos)!=null&&X[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let Z={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=Ip.getLatestSupportedVersion(Z):this.pictureInPictureApi=new Ba(Z)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new Cp:void 0,this.slotsApi=this.uiConfig.features.slots?new yp(this.uiConfig.disabledSlotIds):void 0,this.annotationsApi=this.uiConfig.features.annotations?new Ep(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),this.focusManager=this._shadowRoot?new Vp(this._shadowRoot):void 0,this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteErrorComponent),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveSubscription.unsubscribe()),this.videoConfig.interactiveData?this.initInteractives():this.createPlayer(this.videoConfig.videos[this.currentPlayingVideoIndex]),d$(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(se=this.slotsApi)==null||se.init(this.shadowRootContainer,this.store)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateVideos(e,i){if(!this.videoConfig)return;this.log({message:`update ${i} videos, videos: ${JSON.stringify(e)}`}),i==="prev"?(this.videoConfig.videos.splice(0,this.currentPlayingVideoIndex),this.videoConfig.videos.unshift(...e),this.currentPlayingVideoIndex=e.length):i==="next"&&(this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...e));let o=this.getNextVideoInfo();n(Jn)&&(n(Jn).showNextPrevButtons=this.needToShowNextPrevButtons(),n(Jn).nextButtonActive=this.isNextButtonActive(),n(Jn).prevButtonActive=this.isPrevButtonActive(),n(Jn).endScreenVideoTitle=o.nextVideoTitle,n(Jn).endScreenVideoThumb=o.nextVideoThumb,n(Jn).isOneVideoPlaylist=this.isOneVideoPlaylist())}updatePrevVideos(e){this.updateVideos(e,"prev")}updateNextVideos(e){this.updateVideos(e,"next")}initMediaSession(){var e,i;this.mediaSessionApi&&((e=this.unsubscribePlayerPhaseSubscription)==null||e.call(this),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=(i=this.store)==null?void 0:i.playerPhase.subscribe(o=>{o==="video"?this.setupMediaSessionForVideo():o==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:e,thumbUrl:i}={...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",()=>{var r,s,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(s=(r=this.videoConfig)==null?void 0:r.callbacks)==null?void 0:s.onNextVideoClick)==null||l.call(s)}catch(d){this.log({message:"onNextVideoClick callback failed to execute"})}else this.playNextVideo()}]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>{var r,s,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(s=(r=this.videoConfig)==null?void 0:r.callbacks)==null?void 0:s.onPrevVideoClick)==null||l.call(s)}catch(d){this.log({message:"onPrevVideoClick callback failed to execute"})}else this.playPrevVideo()}])),this.mediaSessionApi.setMetaData({title:e,thumbUrl:i}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let e="Реклама",i=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:e}),this.mediaSessionApi.updateActionHandlers(i),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}moveTo(e){this.shadowDOMCallbacksDisabled=!0,e.append(this),this.shadowDOMCallbacksDisabled=!1}play(){var e,i,o,r;this.isControlDisabled("PLAY_BUTTON")||(e=this.store)!=null&&e.playerPhase.is("LiveWaitingStart")||(i=this.store)!=null&&i.playerPhase.is("LiveWaitingRecover")||(o=this.store)!=null&&o.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),(r=this.svelteRootComponent)==null||r.play())}pause(){var e;this.log({message:"pause"}),(e=this.svelteRootComponent)==null||e.pause()}stop(){var e;if(!this.videoConfig)return;this.log({message:"stop"});let i=!!this.interactiveController;i&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveContainer=void 0,this.interactiveSubscription.unsubscribe()),this.unmountComponent(this.svelteStubComponent),(e=this.mediaSessionApi)==null||e.destroy();let o=this.videoConfig.videos[0];o&&(this.unmountComponent(this.svelteRootComponent),i?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(o))}setMuted(e){var i;this.log({message:`set muted, muted: ${e}`}),(i=this.svelteRootComponent)==null||i.setMuted(e)}toggleSubtitle(){var e;this.log({message:"toggle subtitle"}),(e=this.svelteRootComponent)==null||e.toggleSubtitle()}changeSubtitle(e,i){var o;this.log({message:"change subtitle"}),(o=this.svelteRootComponent)==null||o.changeSubtitle(e,i)}hideControls(){var e;this.log({message:"hide controls"}),(e=this.svelteRootComponent)==null||e.hideControls()}showControls(){var e;this.log({message:"show controls"}),(e=this.svelteRootComponent)==null||e.showControls()}setPiPEnabled(e){var i,o;(o=(i=this.store)==null?void 0:i.webApi.pictureInPictureApi)==null||o.setEnabled(e)}setVolume(e){var i;this.log({message:`set volume, volume: ${e}`}),(i=this.svelteRootComponent)==null||i.setVolume(e)}setRepeat(e){this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,n(Jn)&&(n(Jn).needToRepeatPlaylist=this.needToRepeatPlaylist,n(Jn).showNextPrevButtons=this.needToShowNextPrevButtons(),n(Jn).nextButtonActive=this.isNextButtonActive(),n(Jn).prevButtonActive=this.isPrevButtonActive())}seekTime(e){var i;this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekTime(e))}seekEpisodeStartTime(e){var i;this.log({message:`seek episode start time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekEpisodeStartTime(e)}returnFocusToEpisodes(){var e;this.log({message:"return focus to episodes button"}),(e=this.svelteRootComponent)==null||e.returnFocusToEpisodes()}setPlaybackRate(e){var i;this.log({message:`set playback rate to: ${e}`}),(i=this.svelteRootComponent)==null||i.setPlaybackRate(e)}setAutoQualityLimits(e){var i,o,r;this.log({message:`set auto quality limitation. Max: ${(i=e.max)!=null?i:"none"}. Min: ${(o=e.min)!=null?o:"none"}`}),(r=this.svelteRootComponent)==null||r.setAutoQualityLimits(e)}setAutoQuality(){var e;(e=this.svelteRootComponent)==null||e.setAutoQuality()}toggleTrafficSaving(e){var i;(i=this.svelteRootComponent)==null||i.toggleTrafficSaving(e)}toggleHighQuality(e){var i;(i=this.svelteRootComponent)==null||i.toggleHighQuality(e)}changeAudioStream(e){var i;(i=this.svelteRootComponent)==null||i.changeAudioStream(e)}addLanguage(e){var i;(i=this.store)==null||i.actions.internal.addLanguage(e)}async setLanguage(e){var i;await((i=this.store)==null?void 0:i.actions.internal.setLanguage(e))}setLiveStart(e){var i,o;let r=this.isLiveTailPlaying();this.log({message:`live started: liveTailPlaying = ${r}`}),r||((i=this.store)==null||i.actions.internal.setLiveWaitingRecover(!1),(o=this.store)==null||o.actions.internal.setLiveWaitingStart(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!0}))}setLiveWaitingStart(){var e;this.log({message:"live waiting"}),(e=this.store)==null||e.actions.internal.setLiveWaitingStart(!0)}isLiveTailPlaying(){var e;let i=(e=this.store)==null?void 0:e.getPlayer();if(!i)return!1;let{info:o}=i;return o.canPlayLiveTailBuffer$.getValue()&&!o.isStalled$.getValue()&&!o.atLiveEdge$.getValue()}setLiveWaitingRecover(e=!1){var i;let o=this.isLiveTailPlaying(),r=e||!o;this.log({message:`live waiting recover: forceImmediate = ${e}, liveTailPlaying = ${o}`});let s=()=>{var l;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!0)};r&&s(),(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var l;r||s(),(l=this.store)==null||l.destroy()})}setLiveWaitingRecord(){var e;let i=this.isLiveTailPlaying(),o=!i;this.log({message:`live waiting record: liveTailPlaying = ${i}`});let r=()=>{var s;(s=this.store)==null||s.actions.internal.setLiveWaitingRecord(!0)};o&&r(),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var s;o||r(),(s=this.store)==null||s.destroy()})}setLiveEnd(e){var i;let o=this.isLiveTailPlaying(),r=!o;this.log({message:`live ended: liveTailPlaying = ${o}`});let s=()=>{var l,d;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!1),(d=this.store)==null||d.actions.internal.setLiveWaitingRecord(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!1})};if(r){s();return}(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=s)}setLiveLowLatency(e){var i;this.log({message:"live switch to low latency "+e}),(i=this.store)==null||i.actions.external.setLiveLowLatency(e)}setLooped(e){var i;(i=this.store)==null||i.actions.internal.setLooped(e)}getDebugData(){var e,i;return(i=(e=this.store)==null?void 0:e.actions.internal.getDebugTextData())!=null?i:""}getDeviceId(){var e,i,o;return(o=(i=(e=this.statistics)==null?void 0:e.oneStat)==null?void 0:i.getDeviceId())!=null?o:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}async replayInteractiveChapter(e){var i,o;if(this.interactiveController&&((i=this.store)!=null&&i.state.positionExact$)){let r=be(this.store.state.positionExact$),l=be(this.store.state.interactiveEpisodes$).find(a=>!a.completed);this.interactiveController.events.playerChanged$.pipe((0,Ni.once)()).subscribe(()=>{l&&r>=l.time?this.seekTime(l.time):this.seekTime(r),e==null||e()});let d=this.interactiveController.getCurrentChapter();await this.interactiveController.setChapter({chapterId:(o=d==null?void 0:d.chapter)==null?void 0:o.id,pushToHistory:!1})}}showInteractiveIndicatorTooltip(e,i=!1){var o;(o=this.microStoresRoot)==null||o.stores.showInteractiveTimeIndicatorTooltip$.set(e,i)}switchToActiveLive(){var e;(e=this.store)==null||e.actions.internal.switchToActiveLive()}updateAdditionalSettingsItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalSettingsItem(e,i)}addAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalSettingsItem(e)}removeAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalSettingsItem(e)}updateAdditionalContextItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalContextItem(e,i)}addAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalContextItem(e)}removeAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalContextItem(e)}updateAdditionalButton(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalButton(e,i)}addAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.addAdditionalButton(e)}removeAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalButton(e)}updateStatContext(e){this.statistics&&(this.statistics.oneStat&&this.statistics.oneStat.updateContext(e),this.statistics.thinOneStat&&this.statistics.thinOneStat.updateContext(e))}handleTimerNextVideo(e){var i;(i=this.store)==null||i.actions.internal.setTimerNextVideoRunning(e)}togglePictureInPicture(){var e;(e=this.store)==null||e.actions.internal.togglePictureInPicture()}focus(){var e,i,o;(o=(i=(e=this.svelteRootComponent)==null?void 0:e.keyboardControls)==null?void 0:i.focus)==null||o.call(i)}restoreFocus(){var e;(e=this.focusManager)==null||e.restoreFocus()}handleExternalKeyboardEvent(e){var i,o;return!!((o=(i=this.svelteRootComponent)==null?void 0:i.keyboardControls)!=null&&o.handleExternalKeyboardEvent(e))}setAutoplayNext(e){var i;(i=this.store)==null||i.actions.internal.setAutoplayNextEnabled(e)}getTotalViewTime(){var e,i;return(i=(e=this.statistics)==null?void 0:e.thinOneStat)==null?void 0:i.getTotalViewTime()}unmountComponent(e){e&&Aa(e)}};var ud=require("@vkontakte/videoplayer-shared/es2018"),Dp=require("@vkontakte/videoplayer-core/es2018"),ST=()=>{window.customElements.define("vk-video-player",Rp)};