@vkontakte/videoplayer 1.1.80 → 1.1.81-dev.169e8a40.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/es2015.cjs ADDED
@@ -0,0 +1,63 @@
1
+ /**
2
+ * @vkontakte/videoplayer v1.1.81-dev.169e8a40.0
3
+ * Thu, 15 Jan 2026 09:34:28 GMT
4
+ * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-81/doc/
5
+ */
6
+ "use strict";var B$=Object.create;var yd=Object.defineProperty,H$=Object.defineProperties,F$=Object.getOwnPropertyDescriptor,U$=Object.getOwnPropertyDescriptors,z$=Object.getOwnPropertyNames,Tg=Object.getOwnPropertySymbols,W$=Object.getPrototypeOf,Ig=Object.prototype.hasOwnProperty,K$=Object.prototype.propertyIsEnumerable;var Eg=t=>{throw TypeError(t)};var Xp=(t,e,i)=>e in t?yd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Pe=(t,e)=>{for(var i in e||(e={}))Ig.call(e,i)&&Xp(t,i,e[i]);if(Tg)for(var i of Tg(e))K$.call(e,i)&&Xp(t,i,e[i]);return t},Yt=(t,e)=>H$(t,U$(e));var q$=(t,e)=>{for(var i in e)yd(t,i,{get:e[i],enumerable:!0})},Pg=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of z$(e))!Ig.call(t,r)&&r!==i&&yd(t,r,{get:()=>e[r],enumerable:!(o=F$(e,r))||o.enumerable});return t};var kg=(t,e,i)=>(i=t!=null?B$(W$(t)):{},Pg(e||!t||!t.__esModule?yd(i,"default",{value:t,enumerable:!0}):i,t)),Q$=t=>Pg(yd({},"__esModule",{value:!0}),t);var cr=(t,e,i)=>Xp(t,typeof e!="symbol"?e+"":e,i),Zp=(t,e,i)=>e.has(t)||Eg("Cannot "+i);var Bi=(t,e,i)=>(Zp(t,e,"read from private field"),i?i.call(t):e.get(t)),js=(t,e,i)=>e.has(t)?Eg("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),xl=(t,e,i,o)=>(Zp(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),Ag=(t,e,i)=>(Zp(t,e,"access private method"),i);var ht=(t,e,i)=>new Promise((o,r)=>{var a=s=>{try{d(i.next(s))}catch(u){r(u)}},l=s=>{try{d(i.throw(s))}catch(u){r(u)}},d=s=>s.done?o(s.value):Promise.resolve(s.value).then(a,l);d((i=i.apply(t,e)).next())});var zT={};q$(zT,{ControlButtonType:()=>xc,GridTypes:()=>ts,InterfaceLanguage:()=>_d.InterfaceLanguage,MenuItemType:()=>Jl,PlayerPhase:()=>is,VERSION:()=>Ha,VKNumericLanguage:()=>_d.VKNumericLanguage,VideoFormat:()=>Up.VideoFormat,VideoQuality:()=>Up.VideoQuality,loadVKLangPack:()=>_d.loadVKLangPack,registerPlayerWebComponent:()=>UT});module.exports=Q$(zT);var Xs="[",Zs="[!",Sa="]",fs={};var io=Symbol(),qn=Symbol("filename"),Lg=Symbol("hmr"),Mg="http://www.w3.org/1999/xhtml",du="http://www.w3.org/2000/svg";var Jp="@attach";var cu=!0;var Rg,Ng,Vg=(Ng=(Rg=globalThis.process)==null?void 0:Rg.env)==null?void 0:Ng.NODE_ENV,ke=Vg&&!Vg.toLowerCase().startsWith("prod");var ur=Array.isArray,Og=Array.prototype.indexOf,xd=Array.from,ef=Object.keys,fo=Object.defineProperty,Yo=Object.getOwnPropertyDescriptor,uu=Object.getOwnPropertyDescriptors,tf=Object.prototype,Dg=Array.prototype,Ca=Object.getPrototypeOf,of=Object.isExtensible;function Js(t){return typeof t=="function"}var _t=()=>{};function Bg(t){return t()}function ea(t){for(var e=0;e<t.length;e++)t[e]()}var jo=Symbol("$state"),wl=Symbol("legacy props"),Hg=Symbol(""),pu=Symbol("proxy path"),fu=1,Sl=3,pr=8;function mu(t){return t===this.v}function Cl(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Fg(t,e){return t!==e}function Tl(t){return!Cl(t,this.v)}function Ug(){if(ke){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 zg(t){if(ke){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 Wg(){if(ke){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 Kg(t){if(ke){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 qg(){if(ke){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 Qg(){if(ke){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 Gg(){if(ke){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 Yg(t){if(ke){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 jg(t){if(ke){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 Xg(t){if(ke){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 Zg(){if(ke){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 Jg(){if(ke){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 eh(){if(ke){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 ms=!1,vs=!1;function th(){ms=!0}var wd=null;function Es(t){let e=Error(),i=e.stack;if(i){let o=i.split(`
23
+ `),r=[`
24
+ `];for(let a=0;a<o.length;a++){let l=o[a];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;fo(e,"stack",{value:r.join(`
25
+ `)}),fo(e,"name",{value:`${t}Error`})}return e}function Qr(t,e){return t.label=e,vu(t.v,e),t}function vu(t,e){var i;return(i=t==null?void 0:t[pu])==null||i.call(t,e),t}function Il(t){if(ke){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 Kt=null;function Sd(t){Kt=t}var fr=null;function Cd(t){fr=t}function El(t){return sf("getContext").get(t)}function Pl(t,e){return sf("setContext").set(t,e),e}function Td(){return sf("getAllContexts")}function B(t,e=!1,i){var o=Kt={p:Kt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};ms&&!e&&(Kt.l={s:null,u:null,r1:[],r2:Lr(!1)}),To(()=>{o.d=!0}),ke&&(Kt.function=i,fr=i)}function H(t){var l,d;let e=Kt;if(e!==null){t!==void 0&&(e.x=t);let s=e.e;if(s!==null){var i=$t,o=Dt;e.e=null;try{for(var r=0;r<s.length;r++){var a=s[r];mo(a.effect),Yi(a.reaction),Io(a.fn)}}finally{mo(i),Yi(o)}}Kt=e.p,ke&&(fr=(d=(l=e.p)==null?void 0:l.function)!=null?d:null),e.m=!0}return t||{}}function gs(){return!ms||Kt!==null&&Kt.l===null}function sf(t){var e;return Kt===null&&Il(t),(e=Kt.c)!=null?e:Kt.c=new Map(Y$(Kt)||void 0)}function Y$(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var j$=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function ui(t){if(typeof t!="object"||t===null||jo in t)return t;let e=Ca(t);if(e!==tf&&e!==Dg)return t;var i=new Map,o=ur(t),r=K(0),a=ke&&vs?Es("CreatedAt"):null,l=Dt,d=m=>{var p=Dt;Yi(l);var v=m();return Yi(p),v};o&&i.set("length",K(t.length,a));var s="";function u(m){s=m,Qr(r,`${s} version`);for(let[p,v]of i)Qr(v,Ta(s,p))}return new Proxy(t,{defineProperty(m,p,v){(!("value"in v)||v.configurable===!1||v.enumerable===!1||v.writable===!1)&&Zg();var b=i.get(p);return b===void 0?b=d(()=>{var y=K(v.value,a);return i.set(p,y),ke&&typeof p=="string"&&Qr(y,Ta(s,p)),y}):N(b,v.value,!0),!0},deleteProperty(m,p){var v=i.get(p);if(v===void 0){if(p in m){let g=d(()=>K(io,a));i.set(p,g),af(r),ke&&Qr(g,Ta(s,p))}}else{if(o&&typeof p=="string"){var b=i.get("length"),y=Number(p);Number.isInteger(y)&&y<b.v&&N(b,y)}N(v,io),af(r)}return!0},get(m,p,v){var w;if(p===jo)return t;if(ke&&p===pu)return u;var b=i.get(p),y=p in m;if(b===void 0&&(!y||(w=Yo(m,p))!=null&&w.writable)&&(b=d(()=>{var I=ui(y?m[p]:io),T=K(I,a);return ke&&Qr(T,Ta(s,p)),T}),i.set(p,b)),b!==void 0){var g=n(b);return g===io?void 0:g}return Reflect.get(m,p,v)},getOwnPropertyDescriptor(m,p){var v=Reflect.getOwnPropertyDescriptor(m,p);if(v&&"value"in v){var b=i.get(p);b&&(v.value=n(b))}else if(v===void 0){var y=i.get(p),g=y==null?void 0:y.v;if(y!==void 0&&g!==io)return{enumerable:!0,configurable:!0,value:g,writable:!0}}return v},has(m,p){var g;if(p===jo)return!0;var v=i.get(p),b=v!==void 0&&v.v!==io||Reflect.has(m,p);if(v!==void 0||$t!==null&&(!b||(g=Yo(m,p))!=null&&g.writable)){v===void 0&&(v=d(()=>{var w=b?ui(m[p]):io,I=K(w,a);return ke&&Qr(I,Ta(s,p)),I}),i.set(p,v));var y=n(v);if(y===io)return!1}return b},set(m,p,v,b){var P;var y=i.get(p),g=p in m;if(o&&p==="length")for(var w=v;w<y.v;w+=1){var I=i.get(w+"");I!==void 0?N(I,io):w in m&&(I=d(()=>K(io,a)),i.set(w+"",I),ke&&Qr(I,Ta(s,w)))}if(y===void 0)(!g||(P=Yo(m,p))!=null&&P.writable)&&(y=d(()=>K(void 0,a)),N(y,ui(v)),i.set(p,y),ke&&Qr(y,Ta(s,p)));else{g=y.v!==io;var T=d(()=>ui(v));N(y,T)}var O=Reflect.getOwnPropertyDescriptor(m,p);if(O!=null&&O.set&&O.set.call(b,v),!g){if(o&&typeof p=="string"){var L=i.get("length"),E=Number(p);Number.isInteger(E)&&E>=L.v&&N(L,E+1)}af(r)}return!0},ownKeys(m){n(r);var p=Reflect.ownKeys(m).filter(y=>{var g=i.get(y);return g===void 0||g.v!==io});for(var[v,b]of i)b.v!==io&&!(v in m)&&p.push(v);return p},setPrototypeOf(){Jg()}})}function Ta(t,e){var i;return typeof e=="symbol"?`${t}[Symbol(${(i=e.description)!=null?i:""})]`:j$.test(e)?`${t}.${e}`:/^\d+$/.test(e)?`${t}[${e}]`:`${t}['${e}']`}function af(t,e=1){N(t,t.v+e)}function kl(t){try{if(t!==null&&typeof t=="object"&&jo in t)return t[jo]}catch(e){}return t}function lf(t,e){return Object.is(kl(t),kl(e))}function Gr(t){var e=2050,i=Dt!==null&&(Dt.f&2)!==0?Dt:null;$t===null||i!==null&&(i.f&256)!==0?e|=256:$t.f|=1048576;let o={ctx:Kt,deps:null,effects:null,equals:mu,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:$t};return ke&&vs&&(o.created=Es("CreatedAt")),o}function f(t){let e=Gr(t);return _u(e),e}function In(t){let e=Gr(t);return e.equals=Tl,e}function gu(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)ji(e[i])}}var df=[];function X$(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function pf(t){var e,i=$t;if(mo(X$(t)),ke){let o=Ia;cf(new Set);try{df.includes(t)&&Ug(),df.push(t),gu(t),e=hu(t)}finally{mo(i),cf(o),df.pop()}}else try{gu(t),e=hu(t)}finally{mo(i)}return e}function ff(t){var e=pf(t);if(t.equals(e)||(t.v=e,t.wv=Id()),!Ps){var i=(ks||(t.f&256)!==0)&&t.deps!==null?4096:1024;En(t,i)}}var Ia=new Set,Al=new Map;function cf(t){Ia=t}function Lr(t,e){var i={f:0,v:t,reactions:null,equals:mu,rv:0,wv:0};return ke&&vs&&(i.created=e!=null?e:Es("CreatedAt"),i.updated=null,i.set_during_effect=!1,i.trace=null),i}function K(t,e){let i=Lr(t,e);return _u(i),i}function hs(t,e=!1,i=!0){var r,a;let o=Lr(t);return e||(o.equals=Tl),ms&&i&&Kt!==null&&Kt.l!==null&&((a=(r=Kt.l).s)!=null?a:r.s=[]).push(o),o}function N(t,e,i=!1){var r;Dt!==null&&(!gr||(Dt.f&262144)!==0)&&gs()&&(Dt.f&262162)!==0&&!((r=Zo)!=null&&r[1].includes(t)&&Zo[0]===Dt)&&eh();let o=i?ui(e):e;return ke&&vu(o,t.label),Ll(t,o)}function Ll(t,e){if(!t.equals(e)){var i=t.v;if(Ps?Al.set(t,e):Al.set(t,i),t.v=e,ke&&vs&&(t.updated=Es("UpdatedAt"),$t!==null&&(t.set_during_effect=!0)),(t.f&2)!==0&&((t.f&2048)!==0&&pf(t),En(t,(t.f&256)===0?1024:4096)),t.wv=Id(),oh(t,2048),gs()&&$t!==null&&($t.f&1024)!==0&&($t.f&96)===0&&(vr===null?nh([t]):vr.push(t)),ke&&Ia.size>0){let o=Array.from(Ia);for(let r of o)(r.f&1024)!==0&&En(r,4096),Pa(r)&&Ml(r);Ia.clear()}}return e}function oh(t,e){var i=t.reactions;if(i!==null)for(var o=gs(),r=i.length,a=0;a<r;a++){var l=i[a],d=l.f;if((d&2048)===0&&!(!o&&l===$t)){if(ke&&(d&262144)!==0){Ia.add(l);continue}En(l,e),(d&1280)!==0&&((d&2)!==0?oh(l,4096):Pd(l))}}}var Vl="font-weight: bold",Rl="font-weight: normal";function rh(t,e,i){ke?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`,Vl,Rl):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function sh(t){ke?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`,Vl,Rl):console.warn("https://svelte.dev/e/hydration_html_changed")}function ta(t){ke?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`,Vl,Rl):console.warn("https://svelte.dev/e/hydration_mismatch")}function ah(){ke?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`,Vl,Rl):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function lh(){ke?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",Vl,Rl):console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function bu(t){ke?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`,Vl,Rl):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var tt=!1;function vo(t){tt=t}var yt;function Ei(t){if(t===null)throw ta(),fs;return yt=t}function Xi(){return Ei(Jo(yt))}function S(t){if(tt){if(Jo(yt)!==null)throw ta(),fs;yt=t}}function pi(t=1){if(tt){for(var e=t,i=yt;e--;)i=Jo(i);yt=i}}function ka(){for(var t=0,e=yt;;){if(e.nodeType===pr){var i=e.data;if(i===Sa){if(t===0)return e;t-=1}else(i===Xs||i===Zs)&&(t+=1)}var o=Jo(e);e.remove(),e=o}}function $u(t){if(!t||t.nodeType!==pr)throw ta(),fs;return t.data}function dh(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:r}=t;t.indexOf=function(a,l){let d=i.call(this,a,l);if(d===-1){for(let s=l!=null?l:0;s<this.length;s+=1)if(kl(this[s])===a){bu("array.indexOf(...)");break}}return d},t.lastIndexOf=function(a,l){let d=o.call(this,a,l!=null?l:this.length-1);if(d===-1){for(let s=0;s<=(l!=null?l:this.length-1);s+=1)if(kl(this[s])===a){bu("array.lastIndexOf(...)");break}}return d},t.includes=function(a,l){let d=r.call(this,a,l);if(!d){for(let s=0;s<this.length;s+=1)if(kl(this[s])===a){bu("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=r}}var Aa,ch,kd,uh,ph;function yu(){if(Aa===void 0){Aa=window,ch=document,kd=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;uh=Yo(e,"firstChild").get,ph=Yo(e,"nextSibling").get,of(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),of(i)&&(i.__t=void 0),ke&&(t.__svelte_meta=null,dh())}}function Pn(t=""){return document.createTextNode(t)}function ki(t){return uh.call(t)}function Jo(t){return ph.call(t)}function C(t,e){if(!tt)return ki(t);var i=ki(yt);if(i===null)i=yt.appendChild(Pn());else if(e&&i.nodeType!==Sl){var o=Pn();return i==null||i.before(o),Ei(o),o}return Ei(i),i}function ce(t,e){var r,a;if(!tt){var i=ki(t);return i.nodeType===8&&i.data===""?Jo(i):i}if(e&&((r=yt)==null?void 0:r.nodeType)!==Sl){var o=Pn();return(a=yt)==null||a.before(o),Ei(o),o}return yt}function A(t,e=1,i=!1){let o=tt?yt:t;for(var r;e--;)r=o,o=Jo(o);if(!tt)return o;if(i&&(o==null?void 0:o.nodeType)!==Sl){var a=Pn();return o===null?r==null||r.after(a):o.before(a),Ei(a),a}return Ei(o),o}function Ad(t){t.textContent=""}function gf(t){$t===null&&Dt===null&&Kg(t),Dt!==null&&(Dt.f&256)!==0&&$t===null&&Wg(),Ps&&zg(t)}function Z$(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function La(t,e,i,o=!0){var s;var r=$t;if(ke)for(;r!==null&&(r.f&262144)!==0;)r=r.parent;var a={ctx:Kt,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(ke&&(a.component_function=fr),i)try{Ml(a),a.f|=32768}catch(u){throw ji(a),u}else e!==null&&Pd(a);var l=i&&a.deps===null&&a.first===null&&a.nodes_start===null&&a.teardown===null&&(a.f&1048704)===0;if(!l&&o&&(r!==null&&Z$(a,r),Dt!==null&&(Dt.f&2)!==0)){var d=Dt;((s=d.effects)!=null?s:d.effects=[]).push(a)}return a}function To(t){let e=La(8,null,!1);return En(e,1024),e.teardown=t,e}function Oe(t){var r;gf("$effect");var e=$t!==null&&($t.f&32)!==0&&Kt!==null&&!Kt.m;if(ke&&fo(t,"name",{value:"$effect"}),e){var i=Kt;((r=i.e)!=null?r:i.e=[]).push({fn:t,effect:$t,reaction:Dt})}else{var o=Io(t);return o}}function Vd(t){return gf("$effect.pre"),ke&&fo(t,"name",{value:"$effect.pre"}),en(t)}function Su(t){let e=La(64,t,!0);return()=>{ji(e)}}function mh(t){let e=La(64,t,!0);return(i={})=>new Promise(o=>{i.outro?jn(e,()=>{ji(e),o(void 0)}):(ji(e),o(void 0))})}function Io(t){return La(4,t,!1)}function en(t){return La(8,t,!0)}function D(t,e=[],i=Gr){if(ke)return en(()=>{var r=$t,a=()=>t(...l.map(n));fo(r.fn,"name",{value:"{expression}"}),fo(a,"name",{value:"{expression}"});let l=e.map(i);Zi(a)});let o=e.map(i);return Zi(()=>t(...o.map(n)))}function Zi(t,e=0){return La(24|e,t,!0)}function Hi(t,e=!0){return La(40,t,!0,e)}function hf(t){var e=t.teardown;if(e!==null){let i=Ps,o=Dt;mf(!0),Yi(null);try{e.call(null)}finally{mf(i),Yi(o)}}}function _f(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:ji(i,e),i=o}}function vh(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&ji(e),e=i}}function ji(t,e=!0){var i=!1;(e||(t.f&524288)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(bf(t.nodes_start,t.nodes_end),i=!0),_f(t,e&&!i),Rd(t,0),En(t,16384);var o=t.transitions;if(o!==null)for(let a of o)a.stop();hf(t);var r=t.parent;r!==null&&r.first!==null&&$f(t),ke&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function bf(t,e){for(;t!==null;){var i=t===e?null:Jo(t);t.remove(),t=i}}function $f(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 jn(t,e){var i=[];Cu(t,i,!0),yf(i,()=>{ji(t),e&&e()})}function yf(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var r of t)r.out(o)}else e()}function Cu(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,a=(o.f&65536)!==0||(o.f&32)!==0;Cu(o,e,a?i:!1),o=r}}}function Ls(t){gh(t,!0)}function gh(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;gh(i,r?e:!1),i=o}if(t.transitions!==null)for(let a of t.transitions)(a.is_global||e)&&a.in()}}var Nd=[],xf=[];function hh(){var t=Nd;Nd=[],ea(t)}function J$(){var t=xf;xf=[],ea(t)}function kn(t){Nd.length===0&&queueMicrotask(hh),Nd.push(t)}function _h(){Nd.length>0&&hh(),xf.length>0&&J$()}function $h(t){var e=$t;if(ke&&t instanceof Error&&e1(t,e),(e.f&32768)===0){if((e.f&128)===0)throw t;e.fn(t)}else Od(t,e)}function Od(t,e){for(;e!==null;){if((e.f&128)!==0)try{e.fn(t);return}catch(i){}e=e.parent}throw t}var bh=new WeakSet;function e1(t,e){var l,d;if(bh.has(t))return;bh.add(t);let i=Yo(t,"message");if(!(i&&!i.configurable)){for(var o=kd?" ":" ",r=`
38
+ ${o}in ${((l=e.fn)==null?void 0:l.name)||"<unknown>"}`,a=e.ctx;a!==null;)r+=`
39
+ ${o}in ${(d=a.function)==null?void 0:d[qn].split("/").pop()}`,a=a.p;fo(t,"message",{value:t.message+`
40
+ ${r}
41
+ `}),t.stack&&fo(t,"stack",{value:t.stack.split(`
42
+ `).filter(s=>!s.includes("svelte/src/internal")).join(`
43
+ `)})}}var Ma=!1,Nl=null,Va=!1,Ps=!1;function mf(t){Ps=t}var Dd=[],Bd=[],Dt=null,gr=!1;function Yi(t){Dt=t}var $t=null;function mo(t){$t=t}var Zo=null;function _u(t){Dt!==null&&Dt.f&2097152&&(Zo===null?Zo=[Dt,[t]]:Zo[1].push(t))}var An=null,hr=0,vr=null;function nh(t){vr=t}var wh=1,Iu=0,ks=!1,Eu=null;function Id(){return++wh}function Pa(t){var p,v;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,a,l=(e&512)!==0,d=o&&$t!==null&&!ks,s=i.length;if(l||d){var u=t,m=u.parent;for(r=0;r<s;r++)a=i[r],(l||!((p=a==null?void 0:a.reactions)!=null&&p.includes(u)))&&((v=a.reactions)!=null?v:a.reactions=[]).push(u);l&&(u.f^=512),d&&m!==null&&(m.f&256)===0&&(u.f^=256)}for(r=0;r<s;r++)if(a=i[r],Pa(a)&&ff(a),a.wv>t.wv)return!0}(!o||$t!==null&&!ks)&&En(t,1024)}return!1}function Sh(t,e,i=!0){var o=t.reactions;if(o!==null)for(var r=0;r<o.length;r++){var a=o[r];Zo!=null&&Zo[1].includes(t)&&Zo[0]===Dt||((a.f&2)!==0?Sh(a,e,!1):e===a&&(i?En(a,2048):(a.f&1024)!==0&&En(a,4096),Pd(a)))}}function hu(t){var b,y;var e=An,i=hr,o=vr,r=Dt,a=ks,l=Zo,d=Kt,s=gr,u=t.f;An=null,hr=0,vr=null,ks=(u&256)!==0&&(gr||!Va||Dt===null),Dt=(u&96)===0?t:null,Zo=null,Sd(t.ctx),gr=!1,Iu++,t.f|=2097152;try{var m=(0,t.fn)(),p=t.deps;if(An!==null){var v;if(Rd(t,hr),p!==null&&hr>0)for(p.length=hr+An.length,v=0;v<An.length;v++)p[hr+v]=An[v];else t.deps=p=An;if(!ks||(u&2)!==0&&t.reactions!==null)for(v=hr;v<p.length;v++)((y=(b=p[v]).reactions)!=null?y:b.reactions=[]).push(t)}else p!==null&&hr<p.length&&(Rd(t,hr),p.length=hr);if(gs()&&vr!==null&&!gr&&p!==null&&(t.f&6146)===0)for(v=0;v<vr.length;v++)Sh(vr[v],t);return r!==null&&r!==t&&(Iu++,vr!==null&&(o===null?o=vr:o.push(...vr))),m}catch(g){$h(g)}finally{An=e,hr=i,vr=o,Dt=r,ks=a,Zo=l,Sd(d),gr=s,t.f^=2097152}}function t1(t,e){let i=e.reactions;if(i!==null){var o=Og.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&&(An===null||!An.includes(e))&&(En(e,4096),(e.f&768)===0&&(e.f^=512),gu(e),Rd(e,0))}function Rd(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)t1(t,i[o])}function Ml(t){var e=t.f;if((e&16384)===0){En(t,1024);var i=$t,o=Va;if($t=t,Va=!0,ke){var r=fr;Cd(t.component_function)}try{(e&16)!==0?vh(t):_f(t),hf(t);var a=hu(t);if(t.teardown=typeof a=="function"?a:null,t.wv=wh,ke&&vs&&(t.f&2048)!==0&&t.deps!==null)for(var l of t.deps)l.set_during_effect&&(l.wv=Id(),l.set_during_effect=!1);ke&&Bd.push(t)}finally{Va=o,$t=i,ke&&Cd(r)}}}function yh(){console.error("Last ten effects were: ",Bd.slice(-10).map(t=>t.fn)),Bd=[]}function i1(){try{qg()}catch(t){if(ke&&fo(t,"stack",{value:""}),Nl!==null)if(ke)try{Od(t,Nl)}catch(e){throw yh(),e}else Od(t,Nl);else throw ke&&yh(),t}}function Sf(){var t=Va;try{var e=0;for(Va=!0;Dd.length>0;){e++>1e3&&i1();var i=Dd,o=i.length;Dd=[];for(var r=0;r<o;r++){var a=n1(i[r]);o1(a)}Al.clear()}}finally{Ma=!1,Va=t,Nl=null,ke&&(Bd=[])}}function o1(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];(o.f&24576)===0&&Pa(o)&&(Ml(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?$f(o):o.fn=null))}}function Pd(t){Ma||(Ma=!0,queueMicrotask(Sf));for(var e=Nl=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}Dd.push(e)}function n1(t){for(var e=[],i=t;i!==null;){var o=i.f,r=(o&96)!==0,a=r&&(o&1024)!==0;if(!a&&(o&8192)===0){(o&4)!==0?e.push(i):r?i.f^=1024:Pa(i)&&Ml(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 Ol(t){var e;for(t&&(Ma=!0,Sf(),Ma=!0,e=t());;){if(_h(),Dd.length===0)return Ma=!1,Nl=null,ke&&(Bd=[]),e;Ma=!0,Sf()}}function go(){return ht(this,null,function*(){yield Promise.resolve(),Ol()})}function n(t){var e=t.f,i=(e&2)!==0;if(Eu!==null&&Eu.add(t),Dt!==null&&!gr){if(!(Zo!=null&&Zo[1].includes(t))||Zo[0]!==Dt){var o=Dt.deps;t.rv<Iu&&(t.rv=Iu,An===null&&o!==null&&o[hr]===t?hr++:An===null?An=[t]:(!ks||!An.includes(t))&&An.push(t))}}else if(i&&t.deps===null&&t.effects===null){var r=t,a=r.parent;a!==null&&(a.f&256)===0&&(r.f^=256)}if(i&&(r=t,Pa(r)&&ff(r)),ke&&vs&&!gr&&wd!==null&&Dt!==null&&wd.reaction===Dt)if(t.trace)t.trace();else{var l=Es("TracedAt");if(l){var d=wd.entries.get(t);d===void 0&&(d={traces:[]},wd.entries.set(t,d));var s=d.traces[d.traces.length-1];l.stack!==(s==null?void 0:s.stack)&&d.traces.push(l)}}return Ps&&Al.has(t)?Al.get(t):t.v}function Pt(t){var e=gr;try{return gr=!0,t()}finally{gr=e}}var r1=-7169;function En(t,e){t.f=t.f&r1|e}function ku(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(jo in t)Pu(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&jo in i&&Pu(i)}}}function Pu(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{Pu(t[o],e)}catch(r){}let i=Ca(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=uu(i);for(let r in o){let a=o[r].get;if(a)try{a.call(t)}catch(l){}}}}}function Cf(t,e){if(e){let i=document.body;t.autofocus=!0,kn(()=>{document.activeElement===i&&t.focus()})}}function Hd(t){var e=Dt,i=$t;Yi(null),mo(null);try{return t()}finally{Yi(e),mo(i)}}var Tf=new Set,Au=new Set;function Ra(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 If(t,e,i,o={}){function r(a){if(o.capture||Dl.call(e,a),!a.cancelBubble)return Hd(()=>i==null?void 0:i.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?kn(()=>{e.addEventListener(t,r,o)}):e.addEventListener(t,r,o),r}function lt(t,e,i,o,r){var a={capture:o,passive:r},l=If(t,e,i,a);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&To(()=>{e.removeEventListener(t,l,a)})}function je(t){for(var e=0;e<t.length;e++)Tf.add(t[e]);for(var i of Au)i(t)}function Dl(t){var T;var e=this,i=e.ownerDocument,o=t.type,r=((T=t.composedPath)==null?void 0:T.call(t))||[],a=r[0]||t.target,l=0,d=t.__root;if(d){var s=r.indexOf(d);if(s!==-1&&(e===document||e===window)){t.__root=e;return}var u=r.indexOf(e);if(u===-1)return;s<=u&&(l=s)}if(a=r[l]||t.target,a!==e){fo(t,"currentTarget",{configurable:!0,get(){return a||i}});var m=Dt,p=$t;Yi(null),mo(null);try{for(var v,b=[];a!==null;){var y=a.assignedSlot||a.parentNode||a.host||null;try{var g=a["__"+o];if(g!=null&&(!a.disabled||t.target===a))if(ur(g)){var[w,...I]=g;w.apply(a,[t,...I])}else g.call(a,t)}catch(O){v?b.push(O):v=O}if(t.cancelBubble||y===e||y===null)break;a=y}if(v){for(let O of b)queueMicrotask(()=>{throw O});throw v}}finally{t.__root=e,delete t.currentTarget,Yi(m),mo(p)}}}var a1;function Ch(){a1=void 0}function Bl(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function Eo(t,e){var i=$t;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function M(t,e){var i=(e&1)!==0,o=(e&2)!==0,r,a=!t.startsWith("<!>");return()=>{if(tt)return Eo(yt,null),yt;r===void 0&&(r=Bl(a?t:"<!>"+t),i||(r=ki(r)));var l=o||kd?document.importNode(r,!0):r.cloneNode(!0);if(i){var d=ki(l),s=l.lastChild;Eo(d,s)}else Eo(l,l);return l}}function c1(t,e,i="svg"){var o=!t.startsWith("<!>"),r=(e&1)!==0,a=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(tt)return Eo(yt,null),yt;if(!l){var d=Bl(a),s=ki(d);if(r)for(l=document.createDocumentFragment();ki(s);)l.appendChild(ki(s));else l=ki(s)}var u=l.cloneNode(!0);if(r){var m=ki(u),p=u.lastChild;Eo(m,p)}else Eo(u,u);return u}}function Ce(t,e){return c1(t,e,"svg")}function _s(t=""){if(!tt){var e=Pn(t+"");return Eo(e,e),e}var i=yt;return i.nodeType!==Sl&&(i.before(i=Pn()),Ei(i)),Eo(i,i),i}function Le(){if(tt)return Eo(yt,null),yt;var t=document.createDocumentFragment(),e=document.createComment(""),i=Pn();return t.append(e,i),Eo(e,i),t}function $(t,e){if(tt){$t.nodes_end=yt,Xi();return}t!==null&&t.before(e)}var u1=/\r/g;function Ih(t){t=t.replace(u1,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function Eh(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var p1=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Ph(t){return p1.includes(t)}var f1=["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 m1={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 kh(t){var e;return t=t.toLowerCase(),(e=m1[t])!=null?e:t}var L3=[...f1,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var v1=["touchstart","touchmove"];function Ah(t){return v1.includes(t)}var g1=["$state","$state.raw","$derived","$derived.by"],M3=[...g1,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var h1=["textarea","script","style","title"];function Lh(t){return h1.includes(t)}function Lu(t){return t==null?void 0:t.replace(/\//g,"/​")}var Fd=!0;function Mu(t){Fd=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 Xr(t,e){return Mh(t,e)}function Pf(t,e){var l;yu(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=tt,r=yt;try{for(var a=ki(i);a&&(a.nodeType!==pr||a.data!==Xs);)a=Jo(a);if(!a)throw fs;vo(!0),Ei(a),Xi();let d=Mh(t,Yt(Pe({},e),{anchor:a}));if(yt===null||yt.nodeType!==pr||yt.data!==Sa)throw ta(),fs;return vo(!1),d}catch(d){if(d===fs)return e.recover===!1&&Qg(),yu(),Ad(i),vo(!1),Xr(t,e);throw d}finally{vo(o),Ei(r),Ch()}}var Hl=new Map;function Mh(t,{target:e,anchor:i,props:o={},events:r,context:a,intro:l=!0}){yu();var d=new Set,s=p=>{for(var v=0;v<p.length;v++){var b=p[v];if(!d.has(b)){d.add(b);var y=Ah(b);e.addEventListener(b,Dl,{passive:y});var g=Hl.get(b);g===void 0?(document.addEventListener(b,Dl,{passive:y}),Hl.set(b,1)):Hl.set(b,g+1)}}};s(xd(Tf)),Au.add(s);var u=void 0,m=mh(()=>{var p=i!=null?i:e.appendChild(Pn());return Hi(()=>{if(a){B({});var v=Kt;v.c=a}r&&(o.$$events=r),tt&&Eo(p,null),Fd=l,u=t(p,o)||{},Fd=!0,tt&&($t.nodes_end=yt),a&&H()}),()=>{var y;for(var v of d){e.removeEventListener(v,Dl);var b=Hl.get(v);--b===0?(document.removeEventListener(v,Dl),Hl.delete(v)):Hl.set(v,b)}Au.delete(s),p!==i&&((y=p.parentNode)==null||y.removeChild(p))}});return Ef.set(u,m),u}var Ef=new WeakMap;function Na(t,e){let i=Ef.get(t);return i?(Ef.delete(t),i(e)):(ke&&ah(),Promise.resolve())}function si(t,e,...i){var o=t,r=_t,a;Zi(()=>{r!==(r=e())&&(a&&(ji(a),a=null),ke&&r==null&&Gg(),a=Hi(()=>r(o,...i)))},65536),tt&&(o=yt)}if(ke){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;Xg(e)},set:o=>{i=o}})}};y1=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var y1;function Rt(t){Kt===null&&Il("onMount"),ms&&Kt.l!==null?$1(Kt).m.push(t):Oe(()=>{let e=Pt(t);if(typeof e=="function")return e})}function gn(t){Kt===null&&Il("onDestroy"),Rt(()=>()=>Pt(t))}function $1(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}var Vh=new Map;function Rh(t,e){var i=Vh.get(t);i||(i=new Set,Vh.set(t,i)),i.add(e)}function R(t,e,[i,o]=[0,0]){tt&&i===0&&Xi();var r=t,a=null,l=null,d=io,s=i>0?65536:0,u=!1;let m=(v,b=!0)=>{u=!0,p(b,v)},p=(v,b)=>{if(d===(d=v))return;let y=!1;if(tt&&o!==-1){if(i===0){let w=$u(r);w===Xs?o=0:w===Zs?o=1/0:(o=parseInt(w.substring(1)),o!==o&&(o=d?1/0:-1))}let g=o>i;!!d===g&&(r=ka(),Ei(r),vo(!1),y=!0,o=-1)}d?(a?Ls(a):b&&(a=Hi(()=>b(r))),l&&jn(l,()=>{l=null})):(l?Ls(l):b&&(l=Hi(()=>b(r,[i+1,o]))),a&&jn(a,()=>{a=null})),y&&vo(!0)};Zi(()=>{u=!1,e(m),u||p(null,null)},s),tt&&(r=yt)}function Ms(t,e,i){tt&&Xi();var o=t,r=io,a,l=gs()?Fg:Cl;Zi(()=>{l(r,r=e())&&(a&&jn(a),a=Hi(()=>i(o)))}),tt&&(o=yt)}var oa=null;function Lf(t){oa=t}function Ud(t,e){return e}function S1(t,e,i,o){for(var r=[],a=e.length,l=0;l<a;l++)Cu(e[l].e,r,!0);var d=a>0&&r.length===0&&i!==null;if(d){var s=i.parentNode;Ad(s),s.append(i),o.clear(),ia(t,e[0].prev,e[a-1].next)}yf(r,()=>{for(var u=0;u<a;u++){var m=e[u];d||(o.delete(m.k),ia(t,m.prev,m.next)),ji(m.e,!d)}})}function Ti(t,e,i,o,r,a=null){var l=t,d={flags:e,items:new Map,first:null},s=(e&4)!==0;if(s){var u=t;l=tt?Ei(ki(u)):u.appendChild(Pn())}tt&&Xi();var m=null,p=!1,v=In(()=>{var b=i();return ur(b)?b:b==null?[]:xd(b)});Zi(()=>{var b=n(v),y=b.length;if(p&&y===0)return;p=y===0;let g=!1;if(tt){var w=$u(l)===Zs;w!==(y===0)&&(l=ka(),Ei(l),vo(!1),g=!0)}if(tt){for(var I=null,T,O=0;O<y;O++){if(yt.nodeType===pr&&yt.data===Sa){l=yt,g=!0,vo(!1);break}var L=b[O],E=o(L,O);T=Dh(yt,d,I,null,L,E,O,r,e,i),d.items.set(E,T),I=T}y>0&&Ei(ka())}tt||C1(b,d,l,r,e,o,i),a!==null&&(y===0?m?Ls(m):m=Hi(()=>a(l)):m!==null&&jn(m,()=>{m=null})),g&&vo(!0),n(v)}),tt&&(l=yt)}function C1(t,e,i,o,r,a,l){var ee,we,ue,re;var d=(r&8)!==0,s=(r&3)!==0,u=t.length,m=e.items,p=e.first,v=p,b,y=null,g,w=[],I=[],T,O,L,E;if(d)for(E=0;E<u;E+=1)T=t[E],O=a(T,E),L=m.get(O),L!==void 0&&((ee=L.a)==null||ee.measure(),(g!=null?g:g=new Set).add(L));for(E=0;E<u;E+=1){if(T=t[E],O=a(T,E),L=m.get(O),L===void 0){var P=v?v.e.nodes_start:i;y=Dh(P,e,y,y===null?e.first:y.next,T,O,E,o,r,l),m.set(O,y),w=[],I=[],v=y.next;continue}if(s&&T1(L,T,E,r),(L.e.f&8192)!==0&&(Ls(L.e),d&&((we=L.a)==null||we.unfix(),(g!=null?g:g=new Set).delete(L))),L!==v){if(b!==void 0&&b.has(L)){if(w.length<I.length){var q=I[0],F;y=q.prev;var z=w[0],j=w[w.length-1];for(F=0;F<w.length;F+=1)Nh(w[F],q,i);for(F=0;F<I.length;F+=1)b.delete(I[F]);ia(e,z.prev,j.next),ia(e,y,z),ia(e,j,q),v=q,y=j,E-=1,w=[],I=[]}else b.delete(L),Nh(L,v,i),ia(e,L.prev,L.next),ia(e,L,y===null?e.first:y.next),ia(e,y,L),y=L;continue}for(w=[],I=[];v!==null&&v.k!==O;)(v.e.f&8192)===0&&(b!=null?b:b=new Set).add(v),I.push(v),v=v.next;if(v===null)continue;L=v}w.push(L),y=L,v=L.next}if(v!==null||b!==void 0){for(var ae=b===void 0?[]:xd(b);v!==null;)(v.e.f&8192)===0&&ae.push(v),v=v.next;var X=ae.length;if(X>0){var ne=(r&4)!==0&&u===0?i:null;if(d){for(E=0;E<X;E+=1)(ue=ae[E].a)==null||ue.measure();for(E=0;E<X;E+=1)(re=ae[E].a)==null||re.fix()}S1(e,ae,ne,m)}}d&&kn(()=>{var be;if(g!==void 0)for(L of g)(be=L.a)==null||be.apply()}),$t.first=e.first&&e.first.e,$t.last=y&&y.e}function T1(t,e,i,o){(o&1)!==0&&Ll(t.v,e),(o&2)!==0?Ll(t.i,i):t.i=i}function Dh(t,e,i,o,r,a,l,d,s,u){var m=oa,p=(s&1)!==0,v=(s&16)===0,b=p?v?hs(r,!1,!1):Lr(r):r,y=(s&2)===0?l:Lr(l);ke&&p&&(b.trace=()=>{var w=typeof y=="number"?l:y.v;u()[w]});var g={i:y,v:b,k:a,a:null,e:null,prev:i,next:o};oa=g;try{return g.e=Hi(()=>d(t,b,y,u),tt),g.e.prev=i&&i.e,g.e.next=o&&o.e,i===null?e.first=g:(i.next=g,i.e.next=g.e),o!==null&&(o.prev=g,o.e.prev=g.e),g}finally{oa=m}}function Nh(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,r=e?e.e.nodes_start:i,a=t.e.nodes_start;a!==o;){var l=Jo(a);r.before(a),a=l}}function ia(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 I1(t,e,i){var a,l;if(!e||e===Ih(String(i!=null?i:"")))return;let o,r=(a=t.__svelte_meta)==null?void 0:a.loc;r?o=`near ${r.file}:${r.line}:${r.column}`:(l=fr)!=null&&l[qn]&&(o=`in ${fr[qn]}`),sh(Lu(o))}function zd(t,e,i=!1,o=!1,r=!1){var a=t,l="";D(()=>{var b;var d=$t;if(l===(l=(b=e())!=null?b:"")){tt&&Xi();return}if(d.nodes_start!==null&&(bf(d.nodes_start,d.nodes_end),d.nodes_start=d.nodes_end=null),l!==""){if(tt){for(var s=yt.data,u=Xi(),m=u;u!==null&&(u.nodeType!==pr||u.data!=="");)m=u,u=Jo(u);if(u===null)throw ta(),fs;ke&&!r&&I1(u.parentNode,s,l),Eo(yt,m),a=Ei(u);return}var p=l+"";i?p=`<svg>${p}</svg>`:o&&(p=`<math>${p}</math>`);var v=Bl(p);if((i||o)&&(v=ki(v)),Eo(ki(v),v.lastChild),i||o)for(;ki(v);)a.before(ki(v));else a.before(v)}})}function Fi(t,e,i){tt&&Xi();var o=t,r,a;Zi(()=>{r!==(r=e())&&(a&&(jn(a),a=null),r&&(a=Hi(()=>i(o,r))))},65536),tt&&(o=yt)}function Oa(t,e,i,o,r,a){var y;let l=tt;tt&&Xi();var d=ke&&a&&((y=Kt)==null?void 0:y.function[qn]),s,u,m=null;tt&&yt.nodeType===fu&&(m=yt,Xi());var p=tt?yt:t,v,b=oa;Zi(()=>{let g=e()||null;var w=r?r():i||g==="svg"?du:null;if(g!==s){var I=oa;Lf(b),v&&(g===null?jn(v,()=>{v=null,u=null}):g===u?Ls(v):(ji(v),Mu(!1))),g&&g!==u&&(v=Hi(()=>{if(m=tt?m:w?document.createElementNS(w,g):document.createElement(g),ke&&a&&(m.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),Eo(m,m),o){tt&&Lh(g)&&m.append(document.createComment(""));var T=tt?ki(m):m.appendChild(Pn());tt&&(T===null?vo(!1):Ei(T)),o(m,T)}$t.nodes_end=m,p.before(m)})),s=g,s&&(u=s),Mu(!0),Lf(I)}},65536),l&&(vo(!0),Ei(p))}var Vf;function Bh(t){return Vf=t.target,new Mf(t)}var Vs,Mr,Mf=class{constructor(e){js(this,Vs);js(this,Mr);var a,l;var i=new Map,o=(d,s)=>{var u=hs(s,!1,!1);return i.set(d,u),u};let r=new Proxy(Yt(Pe({},e.props||{}),{$$events:{}}),{get(d,s){var u;return n((u=i.get(s))!=null?u:o(s,Reflect.get(d,s)))},has(d,s){var u;return s===wl?!0:(n((u=i.get(s))!=null?u:o(s,Reflect.get(d,s))),Reflect.has(d,s))},set(d,s,u){var m;return N((m=i.get(s))!=null?m:o(s,u),u),Reflect.set(d,s,u)}});xl(this,Mr,(e.hydrate?Pf:Xr)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:(a=e.intro)!=null?a:!1,recover:e.recover})),(!((l=e==null?void 0:e.props)!=null&&l.$$host)||e.sync===!1)&&Ol(),xl(this,Vs,r.$$events);for(let d of Object.keys(Bi(this,Mr)))d==="$set"||d==="$destroy"||d==="$on"||fo(this,d,{get(){return Bi(this,Mr)[d]},set(s){Bi(this,Mr)[d]=s},enumerable:!0});Bi(this,Mr).$set=d=>{Object.assign(r,d)},Bi(this,Mr).$destroy=()=>{Na(Bi(this,Mr))}}$set(e){Bi(this,Mr).$set(e)}$on(e,i){Bi(this,Vs)[e]=Bi(this,Vs)[e]||[];let o=(...r)=>i.call(this,...r);return Bi(this,Vs)[e].push(o),()=>{Bi(this,Vs)[e]=Bi(this,Vs)[e].filter(r=>r!==o)}}$destroy(){Bi(this,Mr).$destroy()}};Vs=new WeakMap,Mr=new WeakMap;function Q(t,e){kn(()=>{var r,a,l;var i=t.getRootNode(),o=i.host?i:(l=(r=i.head)!=null?r:i.ownerDocument.head)!=null?l:(a=Vf)==null?void 0:a.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),ke&&Rh(e.hash,d)}})}function Rs(t,e){var i=void 0,o;Zi(()=>{i!==(i=e())&&(o&&(ji(o),o=null),i&&(o=Hi(()=>{Io(()=>i(t))})))})}function Hh(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=Hh(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Fh(){for(var t,e,i=0,o="",r=arguments.length;i<r;i++)(t=arguments[i])&&(e=Hh(t))&&(o&&(o+=" "),o+=e);return o}function Wd(t){return typeof t=="object"?Fh(t):t!=null?t:""}var Uh=[...`
44
+ \r\f \v\uFEFF`];function Wh(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 a=r.length,l=0;(l=o.indexOf(r,l))>=0;){var d=l+a;(l===0||Uh.includes(o[l-1]))&&(d===o.length||Uh.includes(o[d]))?o=(l===0?"":o.substring(0,l))+o.substring(d+1):l=d}}return o===""?null:o}function zh(t,e=!1){var i=e?" !important;":";",o="";for(var r in t){var a=t[r];a!=null&&a!==""&&(o+=" "+r+": "+a+i)}return o}function Rf(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Kh(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 a=!1,l=0,d=!1,s=[];o&&s.push(...Object.keys(o).map(Rf)),r&&s.push(...Object.keys(r).map(Rf));var u=0,m=-1;let g=t.length;for(var p=0;p<g;p++){var v=t[p];if(d?v==="/"&&t[p-1]==="*"&&(d=!1):a?a===v&&(a=!1):v==="/"&&t[p+1]==="*"?d=!0:v==='"'||v==="'"?a=v:v==="("?l++:v===")"&&l--,!d&&a===!1&&l===0){if(v===":"&&m===-1)m=p;else if(v===";"||p===g-1){if(m!==-1){var b=Rf(t.substring(u,m).trim());if(!s.includes(b)){v!==";"&&p++;var y=t.substring(u,p).trim();i+=" "+y+";"}}u=p+1,m=-1}}}}return o&&(i+=zh(o)),r&&(i+=zh(r,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function se(t,e,i,o,r,a){var l=t.__className;if(tt||l!==i||l===void 0){var d=Wh(i,o,a);(!tt||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(a&&r!==a)for(var s in a){var u=!!a[s];(r==null||u!==!!r[s])&&t.classList.toggle(s,u)}return a}function Nf(t,e={},i,o){for(var r in i){var a=i[r];e[r]!==a&&(i[r]==null?t.style.removeProperty(r):t.style.setProperty(r,a,o))}}function qe(t,e,i,o){var r=t.__style;if(tt||r!==e){var a=Kh(e,o);(!tt||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(Nf(t,i==null?void 0:i[0],o[0]),Nf(t,i==null?void 0:i[1],o[1],"important")):Nf(t,i,o));return o}function Kd(t,e,i){if(t.multiple){if(e==null)return;if(!ur(e))return lh();for(var o of t.options)o.selected=e.includes(qh(o));return}for(o of t.options){var r=qh(o);if(lf(r,e)){o.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function Of(t){var e=new MutationObserver(()=>{Kd(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),To(()=>{e.disconnect()})}function qh(t){return"__value"in t?t.__value:t.value}var Fl=Symbol("class"),Ul=Symbol("style"),Yh=Symbol("is custom element"),jh=Symbol("is html");function Xh(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Me(t,e,i,o){var r=Jh(t);if(tt&&(r[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||R1(t,e,i!=null?i:"");return}r[e]!==(r[e]=i)&&(e==="loading"&&(t[Hg]=i),i==null?t.removeAttribute(e):typeof i!="string"&&e_(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Zh(t,e,i,o,r=!1){var L;var a=Jh(t),l=a[Yh],d=!a[jh];let s=tt&&l;s&&vo(!1);var u=e||{},m=t.tagName==="OPTION";for(var p in e)p in i||(i[p]=null);i.class?i.class=Wd(i.class):(o||i[Fl])&&(i.class=null),i[Ul]&&((L=i.style)!=null||(i.style=null));var v=e_(t);for(let E in i){let P=i[E];if(m&&E==="value"&&P==null){t.value=t.__value="",u[E]=P;continue}if(E==="class"){var b=t.namespaceURI==="http://www.w3.org/1999/xhtml";se(t,b,P,o,e==null?void 0:e[Fl],i[Fl]),u[E]=P,u[Fl]=i[Fl];continue}if(E==="style"){qe(t,P,e==null?void 0:e[Ul],i[Ul]),u[E]=P,u[Ul]=i[Ul];continue}var y=u[E];if(!(P===y&&!(P===void 0&&t.hasAttribute(E)))){u[E]=P;var g=E[0]+E[1];if(g!=="$$")if(g==="on"){let q={},F="$$"+E,z=E.slice(2);var w=Ph(z);if(Eh(z)&&(z=z.slice(0,-7),q.capture=!0),!w&&y){if(P!=null)continue;t.removeEventListener(z,u[F],q),u[F]=null}if(P!=null)if(w)t[`__${z}`]=P,je([z]);else{let j=function(ae){u[E].call(this,ae)};var O=j;u[F]=If(z,t,j,q)}else w&&(t[`__${z}`]=void 0)}else if(E==="style")Me(t,E,P);else if(E==="autofocus")Cf(t,!!P);else if(!l&&(E==="__value"||E==="value"&&P!=null))t.value=t.__value=P;else if(E==="selected"&&m)Xh(t,P);else{var I=E;d||(I=kh(I));var T=I==="defaultValue"||I==="defaultChecked";if(P==null&&!l&&!T)if(a[E]=null,I==="value"||I==="checked"){let q=t,F=e===void 0;if(I==="value"){let z=q.defaultValue;q.removeAttribute(I),q.defaultValue=z,q.value=q.__value=F?z:null}else{let z=q.defaultChecked;q.removeAttribute(I),q.defaultChecked=z,q.checked=F?z:!1}}else t.removeAttribute(E);else T||v.includes(I)&&(l||typeof P!="string")?t[I]=P:typeof P!="function"&&Me(t,I,P,r)}}}return s&&vo(!0),u}function oo(t,e,i=[],o,r=!1,a=Gr){let l=i.map(a);var d=void 0,s={},u=t.nodeName==="SELECT",m=!1;if(Zi(()=>{var v=e(...l.map(n)),b=Zh(t,d,v,o,r);m&&u&&"value"in v&&Kd(t,v.value,!1);for(let g of Object.getOwnPropertySymbols(s))v[g]||ji(s[g]);for(let g of Object.getOwnPropertySymbols(v)){var y=v[g];g.description===Jp&&(!d||y!==d[g])&&(s[g]&&ji(s[g]),s[g]=Hi(()=>Rs(t,()=>y))),b[g]=y}d=b}),u){var p=t;Io(()=>{Kd(p,d.value),Of(p)})}m=!0}function Jh(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[Yh]:t.nodeName.includes("-"),[jh]:t.namespaceURI===Mg}}var Qh=new Map;function e_(t){var e=Qh.get(t.nodeName);if(e)return e;Qh.set(t.nodeName,e=[]);for(var i,o=t,r=Element.prototype;r!==o;){i=uu(o);for(var a in i)i[a].set&&e.push(a);o=Ca(o)}return e}function R1(t,e,i){var o;ke&&(e==="srcset"&&N1(t,i)||Df((o=t.getAttribute(e))!=null?o:"",i)||rh(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function Df(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function Gh(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function N1(t,e){var i=Gh(t.srcset),o=Gh(e);return o.length===i.length&&o.every(([r,a],l)=>a===i[l][1]&&(Df(i[l][0],r)||Df(r,i[l][0])))}var O1=cu?()=>performance.now():()=>Date.now(),Zr={tick:t=>(cu?requestAnimationFrame:_t)(t),now:()=>O1(),tasks:new Set};function t_(){let t=Zr.now();Zr.tasks.forEach(e=>{e.c(t)||(Zr.tasks.delete(e),e.f())}),Zr.tasks.size!==0&&Zr.tick(t_)}function i_(t){let e;return Zr.tasks.size===0&&Zr.tick(t_),{promise:new Promise(i=>{Zr.tasks.add(e={c:t,f:i})}),abort(){Zr.tasks.delete(e)}}}function Vu(t,e){Hd(()=>{t.dispatchEvent(new CustomEvent(e))})}function F1(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 o_(t){let e={},i=t.split(";");for(let o of i){let[r,a]=o.split(":");if(!r||a===void 0)break;let l=F1(r.trim());e[l]=a.trim()}return e}var U1=t=>t;function Jr(t,e,i,o){var O;var r=(t&1)!==0,a=(t&2)!==0,l=r&&a,d=(t&4)!==0,s=l?"both":r?"in":"out",u,m=e.inert,p=e.style.overflow,v,b;function y(){var P;var L=Dt,E=$t;Yi(null),mo(null);try{return u!=null?u:u=i()(e,(P=o==null?void 0:o())!=null?P:{},{direction:s})}finally{Yi(L),mo(E)}}var g={is_global:d,in(){var L;if(e.inert=m,!r){b==null||b.abort(),(L=b==null?void 0:b.reset)==null||L.call(b);return}a||v==null||v.abort(),Vu(e,"introstart"),v=Bf(e,y(),b,1,()=>{Vu(e,"introend"),v==null||v.abort(),v=u=void 0,e.style.overflow=p})},out(L){if(!a){L==null||L(),u=void 0;return}e.inert=!0,Vu(e,"outrostart"),b=Bf(e,y(),v,0,()=>{Vu(e,"outroend"),L==null||L()})},stop:()=>{v==null||v.abort(),b==null||b.abort()}},w=$t;if(((O=w.transitions)!=null?O:w.transitions=[]).push(g),r&&Fd){var I=d;if(!I){for(var T=w.parent;T&&(T.f&65536)!==0;)for(;(T=T.parent)&&(T.f&16)===0;);I=!T||(T.f&32768)!==0}I&&Io(()=>{Pt(()=>g.in())})}}function Bf(t,e,i,o,r){var a=o===1;if(Js(e)){var l,d=!1;return kn(()=>{if(!d){var w=e({direction:a?"in":"out"});l=Bf(t,w,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:_t,deactivate:_t,reset:_t,t:()=>o};let{delay:s=0,css:u,tick:m,easing:p=U1}=e;var v=[];if(a&&i===void 0&&(m&&m(0,1),u)){var b=o_(u(0,1));v.push(b,b)}var y=()=>1-o,g=t.animate(v,{duration:s,fill:"forwards"});return g.onfinish=()=>{var z;g.cancel();var w=(z=i==null?void 0:i.t())!=null?z:1-o;i==null||i.abort();var I=o-w,T=e.duration*Math.abs(I),O=[];if(T>0){var L=!1;if(u)for(var E=Math.ceil(T/16.666666666666668),P=0;P<=E;P+=1){var q=w+I*p(P/E),F=o_(u(q,1-q));O.push(F),L||(L=F.overflow==="hidden")}L&&(t.style.overflow="hidden"),y=()=>{var j=g.currentTime;return w+I*p(j/T)},m&&i_(()=>{if(g.playState!=="running")return!1;var j=y();return m(j,1-j),!0})}g=t.animate(O,{duration:T,fill:"forwards"}),g.onfinish=()=>{y=()=>o,m==null||m(o,1-o),r()}},{abort:()=>{g&&(g.cancel(),g.effect=null,g.onfinish=_t)},deactivate:()=>{r=_t},reset:()=>{o===0&&(m==null||m(1,0))},t:()=>y()}}function Hf(t,e,i){var o=Yo(t,e);o&&o.set&&(t[e]=i,To(()=>{t[e]=null}))}var na,zl,qd,Nu,n_,Ou=class Ou{constructor(e){js(this,Nu);js(this,na,new WeakMap);js(this,zl);js(this,qd);xl(this,qd,e)}observe(e,i){var o=Bi(this,na).get(e)||new Set;return o.add(i),Bi(this,na).set(e,o),Ag(this,Nu,n_).call(this).observe(e,Bi(this,qd)),()=>{var r=Bi(this,na).get(e);r.delete(i),r.size===0&&(Bi(this,na).delete(e),Bi(this,zl).unobserve(e))}}};na=new WeakMap,zl=new WeakMap,qd=new WeakMap,Nu=new WeakSet,n_=function(){var e;return(e=Bi(this,zl))!=null?e:xl(this,zl,new ResizeObserver(i=>{for(var o of i){Ou.entries.set(o.target,o);for(var r of Bi(this,na).get(o.target)||[])r(o)}}))},cr(Ou,"entries",new WeakMap);var Ff=Ou;var z1=new Ff({box:"border-box"});function Ln(t,e,i){var o=z1.observe(t,()=>i(t[e]));Io(()=>(Pt(()=>i(t[e])),o))}function r_(t,e){return t===e||(t==null?void 0:t[jo])===e}function Ze(t={},e,i,o){return Io(()=>{var r,a;return en(()=>{r=a,a=(o==null?void 0:o())||[],Pt(()=>{t!==i(...a)&&(e(t,...a),r&&r_(i(...r),t)&&e(null,...r))})}),()=>{kn(()=>{a&&r_(i(...a),t)&&e(null,...a)})}}),t}function _o(t=!1){let e=Kt,i=e.l.u;if(!i)return;let o=()=>ku(e.s);if(t){let r=0,a={},l=Gr(()=>{let d=!1,s=e.s;for(let u in s)s[u]!==a[u]&&(a[u]=s[u],d=!0);return d&&r++,r});o=()=>n(l)}i.b.length&&Vd(()=>{s_(e,o),ea(i.b)}),Oe(()=>{let r=Pt(()=>i.m.map(Bg));return()=>{for(let a of r)typeof a=="function"&&a()}}),i.a.length&&Oe(()=>{s_(e,o),ea(i.a)})}function s_(t,e){if(t.l.s)for(let i of t.l.s)n(i);e()}function Qd(t,e,i){if(t==null)return e(void 0),i&&i(void 0),_t;let o=Pt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Wl=[];function Vr(t,e){return{subscribe:de(t,e).subscribe}}function de(t,e=_t){let i=null,o=new Set;function r(d){if(Cl(t,d)&&(t=d,i)){let s=!Wl.length;for(let u of o)u[1](),Wl.push(u,t);if(s){for(let u=0;u<Wl.length;u+=2)Wl[u][0](Wl[u+1]);Wl.length=0}}}function a(d){r(d(t))}function l(d,s=_t){let u=[d,s];return o.add(u),o.size===1&&(i=e(r,a)||_t),d(t),()=>{o.delete(u),o.size===0&&i&&(i(),i=null)}}return{set:r,update:a,subscribe:l}}function hi(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 a=e.length<2;return Vr(i,(l,d)=>{let s=!1,u=[],m=0,p=_t,v=()=>{if(m)return;p();let y=e(o?u[0]:u,l,d);a?l(y):p=typeof y=="function"?y:_t},b=r.map((y,g)=>Qd(y,w=>{u[g]=w,m&=~(1<<g),s&&v()},()=>{m|=1<<g}));return s=!0,v(),function(){ea(b),p(),s=!1}})}function _e(t){let e;return Qd(t,i=>e=i)(),e}var Du=!1,Uf=Symbol();function x(t,e,i){var a;let o=(a=i[e])!=null?a:i[e]={store:null,source:hs(void 0),unsubscribe:_t};if(o.store!==t&&!(Uf in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=_t;else{var r=!0;o.unsubscribe=Qd(t,l=>{r?o.source.v=l:N(o.source,l)}),r=!1}return t&&Uf in i?_e(t):n(o.source)}function Re(){let t={};function e(){To(()=>{for(var i in t)t[i].unsubscribe();fo(t,Uf,{enumerable:!1,value:!0})})}return[t,e]}function zf(t){var e=Du;try{return Du=!1,[t(),Du]}finally{Du=e}}var j1={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return ke&&jg(`${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 Mn(t,e,i){return new Proxy(ke?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},j1)}var X1={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Js(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];Js(r)&&(r=r());let a=Yo(r,e);if(a&&a.set)return a.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Js(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let r=Yo(o,e);return r&&!r.configurable&&(r.configurable=!0),r}}},has(t,e){if(e===jo||e===wl)return!1;for(let i of t.props)if(Js(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props)if(Js(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 es(...t){return new Proxy({props:t},X1)}function a_(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function h(t,e,i,o){var q,F;var r=(i&1)!==0,a=!ms||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,s=!1,u;l?[u,s]=zf(()=>t[e]):u=t[e];var m=jo in t||wl in t,p=l&&((F=(q=Yo(t,e))==null?void 0:q.set)!=null?F:m&&e in t&&(z=>t[e]=z))||void 0,v=o,b=!0,y=!1,g=()=>(y=!0,b&&(b=!1,d?v=Pt(o):v=o),v);u===void 0&&o!==void 0&&(p&&a&&Yg(e),u=g(),p&&p(u));var w;if(a)w=()=>{var z=t[e];return z===void 0?g():(b=!0,y=!1,z)};else{var I=(r?Gr:In)(()=>t[e]);I.f|=131072,w=()=>{var z=n(I);return z!==void 0&&(v=void 0),z===void 0?v:z}}if((i&4)===0&&a)return w;if(p){var T=t.$$legacy;return function(z,j){return arguments.length>0?((!a||!j||T||s)&&p(j?w():z),z):w()}}var O=!1,L=!1,E=hs(u),P=Gr(()=>{var z=w(),j=n(E);return O?(O=!1,L=!0,j):(L=!1,E.v=z)});return l&&n(P),r||(P.equals=Tl),function(z,j){if(Eu!==null&&(O=L,w(),n(E)),arguments.length>0){let ae=j?n(P):a&&l?ui(z):z;if(!P.equals(ae)){if(O=!0,N(E,ae),y&&v!==void 0&&(v=ae),a_(P))return z;Pt(()=>n(P))}return z}return a_(P)?P.v:n(P)}}var Z1;typeof HTMLElement=="function"&&(Z1=class extends HTMLElement{constructor(e,i,o){super();cr(this,"$$ctor");cr(this,"$$s");cr(this,"$$c");cr(this,"$$cn",!1);cr(this,"$$d",{});cr(this,"$$r",!1);cr(this,"$$p_d",{});cr(this,"$$l",{});cr(this,"$$l_u",new Map);cr(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))}}connectedCallback(){return ht(this,null,function*(){if(this.$$cn=!0,!this.$$c){let i=function(a){return l=>{let d=document.createElement("slot");a!=="default"&&(d.name=a),$(l,d)}};var e=i;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let o={},r=J1(this);for(let a of this.$$s)a in r&&(a==="default"&&!this.$$d.children?(this.$$d.children=i(a),o.default=!0):o[a]=i(a));for(let a of this.attributes){let l=this.$$g_p(a.name);l in this.$$d||(this.$$d[l]=Wf(l,a.value,this.$$p_d,"toProp"))}for(let a in this.$$p_d)!(a in this.$$d)&&this[a]!==void 0&&(this.$$d[a]=this[a],delete this[a]);this.$$c=Bh({component:this.$$ctor,target:this.shadowRoot||this,props:Yt(Pe({},this.$$d),{$$slots:o,$$host:this})}),this.$$me=Su(()=>{en(()=>{var a;this.$$r=!0;for(let l of ef(this.$$c)){if(!((a=this.$$p_d[l])!=null&&a.reflect))continue;this.$$d[l]=this.$$c[l];let d=Wf(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 a in this.$$l)for(let l of this.$$l[a]){let d=this.$$c.$on(a,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]=Wf(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 ef(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function Wf(t,e,i,o){var a;let r=(a=i[t])==null?void 0:a.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 J1(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var l_="5";var d_,c_,u_;typeof window!="undefined"&&((u_=(c_=(d_=window.__svelte)!=null?d_:window.__svelte={}).v)!=null?u_:c_.v=new Set).add(l_);var ud=require("@vkontakte/videoplayer-core/es2015"),EJ=require("@vkontakte/videoplayer-core/es2015"),pl=require("@vkontakte/videoplayer-shared/es2015"),$$=require("@vkontakte/videoplayer-statistics/es2015");var Da=require("@vkontakte/videoplayer-shared/es2015");var ey={isMobile:void 0,disableInvisibleComponentsTimeout:500,debugLog:!1,devNullLog:!1,defaultLanguage:Da.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:Da.VideoQuality.Q_480P,highQualityLimit:Da.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:[]},p_=t=>(0,Da.fillWithDefault)(t,ey),f_=t=>Pl("ui-config",t),Nt=()=>El("ui-config");var Gd="vk_player_debug_panel_opened";var m_="videoplayer",v_="videoplayer";var bs={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},g_=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),h_=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),__=new Set(["ShiftRight","ShiftLeft"]);var b_=["TIMELINE"],Yd=[...b_,"GRAPH_BUTTON"],Kf=[...b_,"PLAY_BUTTON"],jd=[...Yd,"PLAY_BUTTON"];var ts=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(ts||{}),Xd={xs:0,s:1,m:2,l:3,xl:4};var Zd=require("@vkontakte/videoplayer-shared/es2015"),$_=require("@vkontakte/videoplayer-core/es2015"),y_=require("@vkontakte/videoplayer-statistics/es2015");var Bu="prod",Ha="1.1.81-dev.169e8a40.0";var Fa=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var x_=Symbol("storeContext"),w_=Symbol("microStoresContext"),S_=(t,e)=>{Pl(x_,t),Pl(w_,e),Bu==="dev"&&(window.app={store:t,microStores:e})},ge=()=>{let t=El(x_);return(0,Zd.assertNonNullable)(t,"Store context is empty!"),t},bo=()=>{let t=El(w_);return(0,Zd.assertNonNullable)(t,"MicroStores context is empty!"),t},ai=(t,e)=>Fu(t,t.getValue(),e),Fu=(t,e,i)=>Vr(e,o=>{let r=t.subscribe(a=>{o(a),i==null||i(a)});return()=>r.unsubscribe()}),C_=(t,e,i,o)=>{var q,F,z,j,ae,X,ne,ee,we;let r=t.info,{width:a,height:l}=_e(i.ui.playerSize),d=(F=(q=r.throughputEstimation$.getValue())==null?void 0:q.toFixed(0))!=null?F:0,s=(j=(z=r.rttEstimation$.getValue())==null?void 0:z.toFixed(0))!=null?j:0,u=r.isAutoQualityEnabled$.getValue()?"auto":"manual",m=`${Ha} (core: ${$_.VERSION}, stat: ${y_.VERSION}, shared: ${Zd.VERSION})`,p=_e(i.state.errorLog$),v=p.length?`
45
+ `+p.map((ue,re)=>{var Ne;let be=`${re}) Type: ${ue.id}
46
+ `,$e=`Message: ${ue.message} (${ue.thrown})
47
+ `,J=`Trace: ${(Ne=ue.thrown)==null?void 0:Ne.stack}
48
+ `;return be+$e+J}).join(`
49
+ `):void 0,b=i.state.isAudioDisabled?"disabled":_e(i.state.isAudioAvailable$)?void 0:"unavailable",y=t.info.currentVideoStream$.getValue(),g=t.info.currentAudioStream$.getValue(),w=[];y&&w.push(`Video: ${(ae=y==null?void 0:y.codec)!=null?ae:""}`+(y!=null&&y.hdr?" (HDR)":"")),g&&w.push(`Audio: ${(X=g==null?void 0:g.codec)!=null?X:""}`+(g!=null&&g.language?` (${g.language})`:""));let I=r.currentQuality$.getValue(),T="";if(I){let ue=r.availableQualitiesFps$.getValue()[I];T=ue?`${ue}fps`:""}let O=r.httpConnectionType$.getValue(),L=(ee=(ne=r.currentBuffer$.getValue())==null?void 0:ne.end)!=null?ee:0,E=Math.max(L-_e(i.state.positionExact$),0),P={Version:m,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),TraceId:o,VSID:_e(i.vsid),"Content host":r.hostname$.getValue(),"Connection type":O?O+(r.httpConnectionReused$.getValue()?" (reused)":""):"",Throughput:`${d}Kbps @ ${s}ms RTT`,Format:r.currentFormat$.getValue(),"Available Formats":e!=null&&e.sources?Object.keys(e.sources).join(", "):"",Streams:w.join(", "),Quality:`${u} ${I!=null?I:""} ${T}`,"Available qualities":r.availableQualities$.getValue().join(", "),Audio:b,Position:`${_e(i.state.positionExact$)}s`,Buffer:`${E}s`,State:`${_e(i.playerPhase)} ${(we=r.playbackState$.getValue())!=null?we:""}`,"Player size":`${a}x${l}`,URL:window.location.href,Errors:v};return Object.entries(P).filter(([ue,re])=>re!==void 0).map(([ue,re])=>`${ue}: ${re}`).join(`
50
+ `)},T_=(t,e,i)=>{var F,z,j,ae;let o=t.info,{width:r,height:a}=_e(i.ui.playerSize),l={version:Ha,viewport:`${r}x${a}`,volume:Math.round(_e(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 m=o.currentBuffer$.getValue(),p=o.currentNativeBuffer$.getValue(),v=o.isLive$.getValue(),b=o.liveBufferTime$.getValue();m&&p&&(v&&b?(l.buffer=m.end-b,l.nativeBuffer=p.end-b):(l.buffer=Math.max(m.end-_e(i.state.positionExact$),0),l.nativeBuffer=Math.max(p.end-_e(i.state.positionExact$),0))),l.position=_e(i.state.positionExact$);let y=o.throughputEstimation$.getValue();y&&(l.speed=y);let g=o.videoBitrate$.getValue();g&&(l.bitrate=g);let w=o.liveLatency$.getValue();w&&(l.liveLatency=w);let I=o.currentVideoSegmentLength$.getValue();I&&(l.currentVideoSegmentLength=I);let T=o.currentAudioSegmentLength$.getValue();T&&(l.currentAudioSegmentLength=T);let O=_e(i.vsid);typeof O=="string"&&(l.vsid=O);let L=(F=t.info.currentVideoStream$.getValue())==null?void 0:F.codec;L&&(l.videoCodec=L);let E=(z=t.info.currentAudioStream$.getValue())==null?void 0:z.codec;E&&(l.audioCodec=E),((j=t.info.currentVideoStream$.getValue())==null?void 0:j.hdr)&&(l.hdr=!0);let q=(ae=t.info.currentAudioStream$.getValue())==null?void 0:ae.language;return q&&(l.audioLanguage=q),l},I_=(t,e)=>Fa(t,e,"mp4"),E_=t=>!t.type,P_=t=>!!t.type,k_=()=>{let e=[],i=0;return{add:(o,r)=>{e[i]=[o,r],i=(i+1)%10},find:o=>e.find(([r])=>r===o)}},Hu=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}download(e){return ht(this,null,function*(){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let i=yield fetch(e,{signal:this.destroyController.signal});if(i.ok)return yield i.text();throw i}finally{this.pendingDownloads.delete(e)}})}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};var _i=require("@vkontakte/videoplayer-shared/es2015"),J9=require("@vkontakte/videoplayer-core/es2015");var ty="vk_player_",A_="vk_player_prefer_traffic_saving_enabled",L_="vk_player_preferred_volume",M_="vk_player_prefer_volume_mute",Yf="vk_player_preferred_quality",qf="vk_player_preferred_default_quality_settings",Qf="vk_player_preferred_quality_settings_by_video",V_="vk_player_preferred_stream_language",R_="vk_player_preferred_rate",N_="vk_player_preferred_autoplay_next",Gf="vk_player_preferred_subtitles_language",O_="vk_player_user_video_prefs",D_=`${ty}preview_track_close_tooltip`,B_=t=>t>1?1:t<0?0:t,jf=t=>_i.safeStorage.set(L_,B_(t).toString(10)),Uu=()=>{let t=_i.safeStorage.get(L_);return(0,_i.isNullable)(t)?void 0:B_(parseFloat(t))},Xf=(t,e)=>_i.safeStorage.set(Yf,JSON.stringify({videoId:t,value:e})),zu=()=>_i.safeStorage.remove(Yf),Zf=t=>{let e=_i.safeStorage.get(Yf);if((0,_i.isNullable)(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){zu();return}return o},H_=(t,e)=>{e?_i.safeStorage.set(t,"true"):_i.safeStorage.remove(t)},Jf=t=>_i.safeStorage.get(t)==="true",em=t=>H_(M_,t),F_=()=>Jf(M_),Jd=t=>H_(A_,t),tm=()=>Jf(A_),U_=()=>_i.safeStorage.get(V_),im=t=>_i.safeStorage.set(V_,t),om=()=>_i.safeStorage.get(Gf),nm=t=>{t?_i.safeStorage.set(Gf,t):_i.safeStorage.remove(Gf)},z_=t=>_i.safeStorage.set(R_,JSON.stringify({rate:t})),W_=()=>{let t=_i.safeStorage.get(R_);if((0,_i.isNullable)(t))return;let{rate:e}=JSON.parse(t);return e},K_=t=>{_i.safeStorage.set(N_,String(t))},q_=()=>Jf(N_),iy=()=>{let t=m=>{_i.safeStorage.set(qf,JSON.stringify(m))},e=()=>{try{let m=_i.safeStorage.get(qf);return m?JSON.parse(m):null}catch(m){return null}},i=()=>{try{let m=_i.safeStorage.get(Qf);return m?JSON.parse(m):null}catch(m){return null}},o=m=>{_i.safeStorage.set(Qf,JSON.stringify(m))},r=m=>{u(m);let p=m?i():null;if(p&&(p==null?void 0:p.videoId)===m)return Yt(Pe({},p),{appliesTo:"to-video"});p&&a();let v=e();return v?Yt(Pe({},v),{appliesTo:"as-default"}):(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},a=()=>{_i.safeStorage.remove(Qf)},l=()=>{_i.safeStorage.remove(qf)},d=(m,p="as-default")=>{m.type==="exact_quality"||p==="to-video"?o(m):t(m)},s=m=>{let p=r(m);if(p){switch(p.type){case"traffic_saving":Jd(!0);break;case"exact_quality":Xf(m,p.quality)}a(),l()}},u=m=>{let p=Zf(m);if(p){o({type:"exact_quality",videoId:m,quality:p});return}tm()&&t({type:"traffic_saving",videoId:m}),Jd(!1),zu()};return{getPreferredQualitySettings:r,migrateSettingsToLegacyWay:s,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:a,getPreferredDefaultQualitySettings:e,getPreferredSubtitlesLanguage:om,savePreferredSubtitlesLanguage:nm}},{getPreferredQualitySettings:Q_,migrateSettingsToLegacyWay:G_,savePreferredQualitySettings:Wu,savePreferredDefaultQualitySettings:eV,removePreferredQualitySettingsByVideo:tV,getPreferredDefaultQualitySettings:Ku}=iy(),oy=3,ny=3,Y_=()=>{let t=_i.safeStorage.get(O_);if(t)try{return JSON.parse(t)}catch(e){return null}return null},qu=(t,e)=>{var r,a;let i=Y_();return(a=(r=i==null?void 0:i[t])==null?void 0:r[e])!=null?a:null},rm=(t,e,i)=>{var l,d,s;let o=(l=Y_())!=null?l:{},r=(s=(d=o[t])==null?void 0:d[e])!=null?s:{};Object.assign(r,i,{updatedTs:Date.now()}),t in o||(o[t]={}),o[t][e]=r;let a=ry(o);_i.safeStorage.set(O_,JSON.stringify(a))};function ry(t){let e=Object.entries(t).reduce((o,[r,a])=>{let l=0;return Object.values(a).forEach(d=>{l<d.updatedTs&&(l=d.updatedTs)}),o.push([r,l]),o},[]);return e.sort(([,o],[,r])=>o>r?-1:1),e.splice(ny),e.reduce((o,[r])=>(o[r]=sy(t[r]),o),{})}function sy(t){let e=Object.entries(t);return e.sort(([,i],[,o])=>i.updatedTs>o.updatedTs?-1:1),e.splice(oy),Object.fromEntries(e)}function j_(){_i.safeStorage.set(D_,JSON.stringify(!0))}function X_(){let t=_i.safeStorage.get(D_);try{return t?JSON.parse(t):!1}catch(e){return!1}}var ng=require("@vkontakte/videoplayer-core/es2015");th();var ra="var(--btn-color, #fff)";var ay=Ce('<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),ly=Ce('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill-rule="evenodd" clip-rule="evenodd"><!></svg>');function Je(t,e){var m;B(e,!0);let i=h(e,"width",19,()=>"24"),o=h(e,"height",19,()=>"24"),r=h(e,"fill",3,ra),a=(m=e.viewBox)!=null?m:`0 0 ${i()} ${o()}`;var l=ly(),d=C(l);{var s=p=>{var v=ay(),b=ce(v),y=C(b);si(y,()=>e.children),S(b),pi(),$(p,v)},u=p=>{var v=Le(),b=ce(v);si(b,()=>e.children),$(p,v)};R(d,p=>{e.shadow?p(s):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",a),Me(l,"fill",r()),qe(l,e.style),Me(l,"data-testid",e.testId)}),$(t,l),H()}var Kl=require("@vkontakte/videoplayer-shared/es2015");var dy={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:"Выйти из режима точной перемотки"},Z_=dy;var cy={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"},J_=cy;var Ns=new Map;Ns.set(Kl.InterfaceLanguage.EN,J_);Ns.set(Kl.InterfaceLanguage.RU,Z_);var eb=new Map,sm=({language:t,pack:e,fallback:i})=>{if(Ns.has(t)){let o=Ns.get(t);Ns.set(t,Pe(Pe({},o),e))}else Ns.set(t,e);eb.set(t,i)},am=t=>Ns.has(t),lm=(t,e,i,o)=>{var l;let r=Ns.get(t),a=r==null?void 0:r[e];if((0,Kl.isNullable)(a)){let d=(l=eb.get(t))!=null?l:o,s=d?Ns.get(d):void 0;a=s==null?void 0:s[e]}return(0,Kl.isNullable)(a)?e+Object.values(i!=null?i:{}).join(" "):i?a.replaceAll(/{(\w+?)}/g,(d,s)=>{var u;return(u=i[s])!=null?u:""}):a},G=(t,e)=>{let{interfaceLanguage$:i}=ge(),o=_e(i),r=Nt();return lm(o,t,e,r.defaultLanguage)};var uy=Ce('<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 ec(t,e){B(e,!1);let i=G("video360");_o(),Je(t,{width:"76",height:"45",get ariaLabel(){return i},testId:"video-360-icon",shadow:!0,children:(o,r)=>{var a=uy();$(o,a)},$$slots:{default:!0}}),H()}var MV=require("@vkontakte/videoplayer-core/es2015");var ql;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(ql||(ql={}));var py=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,fy=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,my=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Qu="?",vy="X-Sentry-Auth",gy=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function hy(t){if(!t.stack)return null;let e=[],i=t.stack.split(`
55
+ `),o,r;for(let a=0;a<i.length;++a){if(o=py.exec(i[a]))r={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||Qu,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=my.exec(i[a]))r={filename:o[2],function:o[1]||Qu,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=fy.exec(i[a]))a===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),r={filename:o[3],function:o[1]||Qu,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!r.function&&r.lineno&&(r.function=Qu),e.push(r)}return e.length?{value:tb(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function tb(t){return(t&&t.message||"No error message").split(`
56
+ `).filter(i=>!!i)[0]}function _y(t){try{let e=hy(t);if(e)return e}catch(e){}return{value:tb(t),type:t&&t.name,stacktrace:{frames:[]}}}function by(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var Gu=class{constructor(e){if(e&&e.dsn){let i=gy.exec(e.dsn),o=i?i.slice(1):[],r=o[5].split("/"),a=r.slice(0,-1).join("/");this.apiUrl=o[0]+"://"+o[3]+(o[4]?":"+o[4]:"")+(a?"/"+a:"")+"/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 Yt(Pe({},this.getRequestBlank()),{exception:{values:[_y(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(vy,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:by(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function ib(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function $y(){return window}var Yu=class t extends Gu{constructor(e,i=$y()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:r=u=>u,beforeBreadcrumb:a=u=>u,blacklistUrls:l=[],ignoreErrors:d=[],release:s=void 0}=this.options||{};this.plugins=o.map(u=>new u(this)),this.beforeSend=r,this.beforeBreadcrumb=a,this.blacklistUrls=l,this.ignoreErrors=d,this.release=s}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",Pe({},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",Pe({},e)),this}setUser(e){return this.setKeyState("user",Pe({},e)),this}clone(){let e=new t(Yt(Pe({},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:[Pe({timestamp:Date.now()/1e3},this.beforeBreadcrumb(e))]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send(Yt(Pe({},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=>ib(i,o))):!1}getRequestBlank(){return Pe(Yt(Pe({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(Pe({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=>ib(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],a=Array.isArray(r)?r:null,l=e[o],d=Array.isArray(l)?l:null;return Yt(Pe({},i),{[o]:a||d?[...a||[],...d||[]]:Pe(Pe({},typeof r!="string"?r:{}),typeof l!="string"?l:{})})},this._state)}setKeyState(e,i){this._state[e]=i}};var Ua=require("@vkontakte/videoplayer-shared/es2015");var ju=null,za=class{constructor(e,i,o={}){!ju&&e.dsn&&(this.sentryClient=new Yu({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new Ua.Subscription,this.options=e,this.context=o,ju=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),ju=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:a,options:l}=this,{sampleRate:d=0,whiteErrorIdList:s,whiteErrorCategoryList:u=[],blackErrorIdList:m,blackErrorCategoryList:p}=l,{errorType:v,category:b}=i;if((0,Ua.isNonNullable)(b)&&p.includes(b)||(0,Ua.isNonNullable)(v)&&m.includes(v))return;if(Math.random()<=d||(0,Ua.isNonNullable)(b)&&u.includes(b)||(0,Ua.isNonNullable)(v)&&s.includes(v)){Object.keys(i).length&&r.setTags(Pe({version:this.version},i)),(Object.keys(a).length||Object.keys(o).length)&&r.setExtras(Pe(Pe({},a),o));try{v&&r.captureMessage(v,i.fatal?ql.fatal:ql.error),r.report(e)}catch(g){console.error(g)}}}static getInstance(){return ju}};var is=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(is||{});var Xu=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()},Zu=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),ob=(t,e)=>e?!0:t.fullscreenEnabled||!!t.webkitFullscreenEnabled||!!t.mozFullscreenEnabled||!!t.msFullscreenEnabled,nb=t=>{let e=t;e!=null&&e.webkitExitFullscreen&&(e==null||e.webkitExitFullscreen())},tc=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},sa=()=>!!tc(),Ju=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},ep=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},rb=t=>{let e=window.screen;return(r=>ht(null,null,function*(){return 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 dm=require("@vkontakte/videoplayer-core/es2015"),sb=()=>({title:G("hotkey_map_modal_title"),closeBtnText:G("hotkey_map_modal_close_btn_text"),groups:[{title:G("hotkey_map_group_title_common"),items:[{description:G("hotkey_map_item_mute_description"),value:G("hotkey_map_item_mute_value")},{description:G("hotkey_map_item_volume_up_description"),value:G("hotkey_map_item_volume_up_value")},{description:G("hotkey_map_item_volume_down_description"),value:G("hotkey_map_item_volume_down_value")},{description:G("hotkey_map_item_pip_description"),value:G("hotkey_map_item_pip_value")},{description:G("hotkey_map_item_full_screen_description"),value:G("hotkey_map_item_full_screen_value")},{description:G("hotkey_map_item_show_context_menu_description"),value:G("hotkey_map_item_show_context_menu_value")},{description:G("hotkey_map_item_show_hotkey_map_description"),value:G("hotkey_map_item_show_hotkey_map_value")}]},{title:G("hotkey_map_group_title_playback"),items:[{description:G("hotkey_map_item_play_toggle_description"),value:G("hotkey_map_item_play_toggle_value")},{description:G("hotkey_map_item_seek_backward_description"),value:G("hotkey_map_item_seek_backward_value")},{description:G("hotkey_map_item_seek_forward_description"),value:G("hotkey_map_item_seek_forward_value")},{description:G("hotkey_map_item_fast_seek_backward_description"),value:G("hotkey_map_item_fast_seek_backward_value")},{description:G("hotkey_map_item_fast_seek_forward_description"),value:G("hotkey_map_item_fast_seek_forward_value")},{description:G("hotkey_map_item_rate_down_description"),value:G("hotkey_map_item_rate_down_value")},{description:G("hotkey_map_item_rate_up_description"),value:G("hotkey_map_item_rate_up_value")},{description:G("hotkey_map_item_prev_frame_description"),value:G("hotkey_map_item_prev_frame_value")},{description:G("hotkey_map_item_next_frame_description"),value:G("hotkey_map_item_next_frame_value")},{description:G("hotkey_map_item_jump_seek_description"),value:G("hotkey_map_item_jump_seek_value")},{description:G("hotkey_map_item_next_video_description"),value:G("hotkey_map_item_next_video_value")},{description:G("hotkey_map_item_prev_video_description"),value:G("hotkey_map_item_prev_video_value")}]},{title:G("hotkey_map_group_title_subtitles"),items:[{description:G("hotkey_map_item_subtitles_toggle_description"),value:G("hotkey_map_item_subtitles_toggle_value")}]},{title:G("hotkey_map_group_title_episodes"),items:[{description:G("hotkey_map_item_prev_episode_description"),value:dm.clientChecker.device.isApple?G("hotkey_map_item_prev_episode_mac_value"):G("hotkey_map_item_prev_episode_pc_value")},{description:G("hotkey_map_item_next_episode_description"),value:dm.clientChecker.device.isApple?G("hotkey_map_item_next_episode_mac_value"):G("hotkey_map_item_next_episode_pc_value")}]}]});var Ql=require("@vkontakte/videoplayer-shared/es2015");var Wa=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,Ql.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new Ql.ValueSubject(!1),isEnabled$:new Ql.ValueSubject(!1),type:0};this.info.isEnabled$=new Ql.ValueSubject(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.info.isActive$.getValue()}setContext(e){this.svelteContext=e}revealPictureInPicture(){return ht(this,null,function*(){this.isRequested&&(this.removeEventHandlers(),yield this.request(),this.addEventHandlers())})}request(){return ht(this,null,function*(){var e;if(!(!this.isSupported()||this.isActive()))try{yield(e=this.videoElement)==null?void 0:e.requestPictureInPicture()}catch(i){this.isRequested=!1}})}exit(){return ht(this,null,function*(){!this.isSupported()||!this.isActive()||(yield 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=Pe({},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)}dispose(){return ht(this,null,function*(){this.removeEventHandlers(),yield this.exit(),this.info.isActive$.next(!1),this.isRequested=!1})}onEnterPictureInPicture(e){var r,a;let o=e.pictureInPictureWindow;o&&(this.info.isActive$.next(!0),this.isRequested=!0,o.addEventListener("resize",this.eventHandlers.resize),(a=(r=this.externalEventHandlers).enterpictureinpicture)==null||a.call(r,e))}onLeavePictureInPicture(e){var r,a;let o=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,this.eventHandlers.resize.cancel(),o==null||o.removeEventListener("resize",this.eventHandlers.resize),(a=(r=this.externalEventHandlers).leavepictureinpicture)==null||a.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 Ka(t){return t instanceof Wa}var Gl=require("@vkontakte/videoplayer-shared/es2015");function um(t,e){B(e,!1);let i=ge();Rt(()=>{i.getAdmanWrapper().startPostroll()}),_o(),H()}var ab=require("@vkontakte/videoplayer-shared/es2015");var yy=Ce('<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>'),xy=Ce('<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 Rr(t,e){B(e,!0);let i=h(e,"direction",3,"left"),o=h(e,"useBtnColor",3,!1),r=f(()=>["up","down"].includes(i())),a=f(()=>["right","down"].includes(i())),l=f(()=>`chevron-icon--${i()}`),d=f(()=>(()=>{let m="";return n(a)&&(m+="transform: rotate(180deg);"),m.length?m:void 0})()),s=f(()=>o()?ra:"currentColor"),u=f(()=>n(r)?"7":"16");Je(t,{width:"12",get height(){return n(u)},get fill(){return n(s)},get testId(){return n(l)},get style(){return n(d)},children:(m,p)=>{var v=Le(),b=ce(v);{var y=w=>{var I=yy();$(w,I)},g=w=>{var I=xy();$(w,I)};R(b,w=>{n(r)?w(y):w(g,!1)})}$(m,v)},$$slots:{default:!0}}),H()}var wy=(t,e,i)=>{t.stopPropagation(),n(e)&&i()()},Sy=M('<div class="skip s-1i"> <!></div>'),Cy=M("<div><!></div>"),Ty={hash:"s-1i",code:".container.s-1i{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-1i{bottom:14px;font-size:15px;max-width:142px;top:unset}.skip.s-1i{align-items:flex-end;display:flex;gap:4px;white-space:nowrap}.skippable.s-1i{color:var(--white);cursor:pointer}.skippable.s-1i:hover{color:hsla(0,0%,100%,.75)}"};function pm(t,e){B(e,!0),Q(t,Ty);let[i,o]=Re(),r=()=>x(u,"$isMobile",i),a=h(e,"position",3,0),l=h(e,"secondsToWatchBeforeSkip",3,0),d=h(e,"skipAd",3,ab.noop),u=ge().ui.isMobile,m=f(()=>a()>0&&a()>=l());var p=Cy();let v;p.__click=[wy,m,d];var b=C(p);{var y=w=>{var I=Sy(),T=C(I),O=A(T);Rr(O,{direction:"right"}),S(I),D(L=>ve(T,`${L!=null?L:""} `),[()=>G("skip_ads_now")]),$(w,I)},g=w=>{var I=_s();D(T=>ve(I,T),[()=>G("skip_ads_after",{time:Math.ceil(l()-a()).toFixed(0)})]),$(w,I)};R(b,w=>{n(m)?w(y):w(g,!1)})}S(p),D(w=>v=se(p,1,"container s-1i",null,v,w),[()=>({"container-mobile":r(),skippable:n(m)})]),$(t,p),H(),o()}je(["click"]);var Iy=M('<button class="go-to-site s-1h"> </button>'),Ey={hash:"s-1h",code:"button.go-to-site.s-1h{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 fm(t,e){B(e,!1),Q(t,Ey),_o();var i=Iy(),o=C(i,!0);S(i),D(r=>ve(o,r),[()=>G("visit_advertiser")],In),$(t,i),H()}var Py=M('<div class="top-gradient-mobile s-k"></div>'),ky=M('<div class="container s-k"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),Ay={hash:"s-k",code:".container.s-k{height:100%;width:100%}.top-gradient-mobile.s-k{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 oc(t,e){B(e,!0),Q(t,Ay);let[i,o]=Re(),r=()=>x(F,"$canSkipAd",i),a=()=>x(q,"$adPlaybackState",i),l=()=>x(T,"$isMobile",i),d=()=>x(z,"$adPosition",i),s=()=>x(j,"$secondsToWatchBeforeSkipAd",i),u=()=>x(I,"$isVideoEnded",i),m=h(e,"adsSlotId",3,void 0),p=h(e,"adsParams",3,void 0),v=h(e,"adsAutoplayParam",3,void 0),b=h(e,"duration",3,0),y=h(e,"adsExternalApi",3,void 0),g=ge(),w=Nt(),I=g.state.isEnded$,T=g.ui.isMobile,O=w.ads.isMobileGoToSiteButton,L=K(void 0),E=K(void 0),P=!1,q=g.ads.playbackState,F=g.ads.canSkip,z=g.ads.position,j=g.ads.secondsToWatchBeforeSkip,ae=f(()=>r()&&a()!=="inactive"),X=f(()=>l()&&a()!=="inactive"&&O);Rt(()=>{let k=g.getAdmanWrapper();if(Gl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[(0,Gl.now)(),m()]}),!m()){k.onAdmanLoadingError();return}let Ke=()=>{var Ee;let{width:De,height:Be}=_e(g.ui.playerSize),nt=_e(g.ui.isFullscreen),U=(Ee=v())!=null?Ee:_e(g.ui.isAutoplay),Ae=w.ads.paramsOverride;return{width:De,height:Be,isFullscreen:nt,isAutoplay:U,adsContainer:n(L),adsVideoElement:n(E),slotId:m(),params:p(),paramsOverride:Ae,duration:b(),externalApi:y()}},Te=De=>ht(null,null,function*(){De&&(yield go());let Be=Ke();yield k.initAdman(Be),P=!0}),Z=new AbortController,ie=()=>{Z.abort()};return window.AdmanHTML?Te(!0).catch(()=>{k.onAdmanLoadingError()}):k.loadAdman(Z.signal).then(()=>Te(!1)).catch(()=>{k.onAdmanLoadingError()}),()=>{Gl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[(0,Gl.now)(),m()]}),!P&&ie()}});var ne=ky(),ee=C(ne);{var we=k=>{var Ke=Py();$(k,Ke)};R(ee,k=>{l()&&k(we)})}var ue=A(ee,2);Ze(ue,k=>N(E,k),()=>n(E));var re=A(ue,2);{var be=k=>{pm(k,{get position(){return d()},get secondsToWatchBeforeSkip(){return s()},get skipAd(){return g.actions.internal.skipAd}})};R(re,k=>{n(ae)&&k(be)})}var $e=A(re,2);{var J=k=>{um(k,{})};R($e,k=>{u()&&k(J)})}var Ne=A($e,2);{var fe=k=>{fm(k,{})};R(Ne,k=>{n(X)&&k(fe)})}S(ne),Ze(ne,k=>N(L,k),()=>n(L)),$(t,ne),H(),o()}var tn=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(a=>String(a).padStart(2,"0")).join(":");return i>0&&(r=`${i}:${r}`),r};var Ly=Ce('<path fill="#fff"></path>'),My=Ce("<path></path><!>",1);function nc(t,e){let i=h(e,"isActive",3,!1),o=f(()=>i()?"live-active-icon":"live-icon"),r=f(()=>i()?"var(--timeline-slider-filled-active-live-bg, #FF3347)":void 0),a="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";Je(t,{width:"42",height:"20",get testId(){return n(o)},get fill(){return n(r)},children:(l,d)=>{var s=My(),u=ce(s),m=A(u);{var p=v=>{var b=Ly();Me(b,"d",a),$(v,b)};R(m,v=>{i()&&v(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"+a}z`)),$(l,s)},$$slots:{default:!0}})}var Vy=M('<div class="equalizer s-e"><div class="col s-e"></div> <div class="col s-e"></div> <div class="col s-e"></div></div>'),Ry=M('<div class="live-icon s-e"><!></div>'),Ny=M('<span class="text s-e"> </span>'),Oy=M("<div><!> <!></div>"),Dy={hash:"s-e",code:".wrapper.s-e{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-e{background:var(--red);border-radius:2px;font-size:0;height:20px;line-height:20px;padding:0 7px}.equalizer.s-e{display:inline-block;height:10px;margin-right:4px;margin-top:-4px;position:relative;vertical-align:middle;width:10px}.live.s-e .equalizer:where(.s-e){margin-top:-2px}.equalizer.s-e .col:where(.s-e){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-e .equalizer:where(.s-e) .col:where(.s-e){animation-play-state:running}.equalizer.s-e .col:where(.s-e):first-child{animation-name:s-e-thumb-timer-equalizer-col1;left:0}.equalizer.s-e .col:where(.s-e):nth-child(2){animation-name:s-e-thumb-timer-equalizer-col2;left:3px}.equalizer.s-e .col:where(.s-e):nth-child(3){animation-name:s-e-thumb-timer-equalizer-col3;left:6px}.live-icon.s-e{display:inline-block;height:20px;margin:0 -7px;vertical-align:middle;width:42px}@keyframes s-e-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-e-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-e-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-e{color:var(--controls-time);font-size:13px;font-weight:500;line-height:16px}"};function rc(t,e){Q(t,Dy);let i=h(e,"withEqualizer",3,!1),o=h(e,"isLive",3,!1),r=h(e,"isPlaying",3,!1);var a=Oy();let l;var d=C(a);{var s=v=>{var b=Vy();$(v,b)};R(d,v=>{i()&&v(s)})}var u=A(d,2);{var m=v=>{var b=Ry(),y=C(b);nc(y,{isActive:!0}),S(b),$(v,b)},p=v=>{var b=Ny(),y=C(b,!0);S(b),D(()=>ve(y,e.time)),$(v,b)};R(u,v=>{o()?v(m):v(p,!1)})}S(a),D(v=>l=se(a,1,"wrapper s-e",null,l,v),[()=>({live:o(),playing:r()})]),$(t,a)}var Yl=(t,e,i)=>{let o;return()=>(window.clearTimeout(o),t?o=window.setTimeout(()=>e.set(!0),i):e.set(!1),()=>window.clearTimeout(o))};var By=M('<div role="timer" data-testid="thumb-timer"><!></div>'),Hy={hash:"s-i",code:".thumb-timer.s-i{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 sc(t,e){B(e,!0),Q(t,Hy);let[i,o]=Re(),r=()=>x(m,"$disabled",i),a=h(e,"isHidden",3,!1),l=h(e,"isLive",3,!1),d=h(e,"isPlaying",3,!1),s=Nt(),u=f(()=>tn(e.duration-e.position)),m=de(!1);var p=By();let v;var b=C(p);rc(b,{get time(){return n(u)},get isLive(){return l()},get isPlaying(){return d()},withEqualizer:!0}),S(p),Rs(p,()=>Yl(a()&&s.features.usePerformanceFix,m,s.disableInvisibleComponentsTimeout)),D(y=>v=se(p,1,"thumb-timer s-i",null,v,y),[()=>({"out-of-flow":r(),hidden:a()})]),$(t,p),H(),o()}var jl=t=>{if(!navigator.clipboard){lb(t);return}navigator.clipboard.writeText(t).catch(()=>lb(t))};function lb(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 hb=require("@vkontakte/videoplayer-core/es2015");var vm=require("@vkontakte/videoplayer-core/es2015");var mm="focus-hidden";var Nr=t=>{t.stopPropagation(),t.preventDefault()},gm=t=>{var e,i;(i=(e=t.parentNode)==null?void 0:e.firstElementChild)==null||i.classList.remove(mm)},Uy=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},zy=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},Wy=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},Ky=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},db=t=>t.code==="Escape",qy=t=>t.code==="ArrowLeft",ac=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},cb=t=>{Wy(t)?(Nr(t),zy(t.target)):Ky(t)&&(Nr(t),Uy(t.target))},da=t=>!vm.clientChecker.device.isAndroid&&(t==null?void 0:t.detail)===0||vm.clientChecker.device.isAndroid&&(t==null?void 0:t.pointerType)==="",Xl=(t,e,i)=>ht(null,null,function*(){yield go(),t&&!t.classList.contains("opened")&&!e&&_e(i)&&(yield go(),i.set(!1),t.focus())}),ub=(t,e,i)=>ht(null,null,function*(){yield go(),t&&!e&&_e(i)&&(i.set(!1),t.focus())}),lc=(t,e,i,o=!1)=>ht(null,null,function*(){if(yield go(),!!t&&e&&!o){let a=t.children[0];a==null||a.classList.toggle(mm,!i),a==null||a.focus()}}),pb=(t,e)=>ht(null,null,function*(){setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)}),tp=(t,e)=>{cb(t),gm(t.target),db(t)&&(Nr(t),e())},ip=(t,e)=>ht(null,null,function*(){ac(t,["ArrowRight"])&&(Nr(t),e())}),fb=(t,e,i)=>ht(null,null,function*(){if(cb(t),qy(t)){Nr(t),e();return}db(t)&&(Nr(t),i())}),Zl=(t,e)=>{ac(t)&&(Nr(t),e())},mb=(t,e,i)=>{if(ac(t))Nr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),Nr(t);return}o==="ArrowRight"&&!e&&(i(!0),Nr(t))}},vb=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,r=e.top+i;return{right:o,bottom:r}},gb=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 Ga=require("@vkontakte/videoplayer-shared/es2015");var os={"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 hm=require("@vkontakte/videoplayer-shared/es2015");var Gy=(t,e)=>{Zl(t,()=>e())},Yy=M('<li class="item s-1k" role="menuitem" tabindex="0"> </li>'),jy={hash:"s-1k",code:".item.s-1k{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-1k:hover{background:rgba(66,66,66,.5);color:var(--white)}"};function _m(t,e){B(e,!0),Q(t,jy);let i=h(e,"onClick",3,hm.noop),o=h(e,"closeContextMenu",3,hm.noop),r=d=>{d==null||d.stopPropagation(),i()(),o()()};var a=Yy();a.__click=r,a.__keydown=[Gy,r];var l=C(a,!0);S(a),D(()=>{var d;Me(a,"aria-label",(d=e.ariaLabel)!=null?d:e.label),Me(a,"data-testid",e.id),ve(l,e.label)}),$(t,a),H()}je(["click","keydown"]);var Qa=(t,e)=>t.weight-e.weight;var Jl=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(Jl||{});var Xy=(t,e)=>{tp(t,e)},Zy=t=>{t.preventDefault()},Jy=M('<ul role="menu" class="s-m"></ul>'),e0={hash:"s-m",code:"ul.s-m{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 bm(t,e){B(e,!0),Q(t,e0);let[i,o]=Re(),r=()=>x(we,"$playerPhase",i),a=()=>x(ae,"$isLive$",i),l=()=>x(ue,"$isPiPEnabled$",i),d=()=>x(j,"$chromecastState$",i),s=()=>x(re,"$pictureInPictureApiIsActive$",i),u=()=>x(ee,"$isLooped$",i),m=()=>x(X,"$positionExact$",i),p=()=>x(q,"$additionalContextMenuItems$",i),v=h(e,"visible",3,!1),b=h(e,"position",19,()=>({top:0,left:0})),y=h(e,"playerContainerRef",3,void 0),g=h(e,"menuElementRef",15,void 0),w=K(0),I=K(0),T=ge(),{pictureInPicture$:O}=bo(),L=Nt(),E=T.ui.contextMenu.visible$,P=T.ui.debugPanelVisible,q=T.ui.additionalContextMenuItems$,F=T.ui.t,z=T.actions.internal.togglePictureInPicture,j=T.state.chromecastState$,ae=T.state.isLive$,X=T.state.positionExact$,ne=T.state.isInteractive,ee=T.state.looped$,we=T.playerPhase,{isEnabled$:ue,isActive$:re}=O,be=f(()=>r()==="video"),$e=f(()=>!!a()&&n(be)),J=f(()=>["thumb","LiveWaitingStart","LiveWaitingRecover","LiveWaitingRecord"].includes(r())),Ne=f(()=>{var pe;return L.features.copyVideoLink&&((pe=T.callbacks)==null?void 0:pe.onCopyVideoLink)}),fe=f(()=>n(Ne)&&!n(J)&&!ne&&!n($e)),k=f(()=>{var pe;return!!((pe=T.callbacks)!=null&&pe.onCopyEmbedCodeClicked)}),Ke=f(()=>l()&&d()!==hb.ChromecastState.CONNECTED&&!ne&&n(be)),Te=f(()=>!ne&&!n(J)&&!n($e)),Z=f(()=>L.features.videoRotate&&!ne&&!n(J)),ie=f(()=>L.showSupport&&!s()),De=f(()=>L.features.saveTraceInfoToFile),Be=()=>{var pe;E.set(!1),(pe=e.returnFocus)==null||pe.call(e)},nt=(pe,ze)=>{if(!g()||!y())return;let Ge=g().getBoundingClientRect(),St=y().getBoundingClientRect();N(w,pe-St.left),N(I,ze-St.top),n(w)+Ge.width>St.width&&N(w,St.width-Ge.width),n(I)+Ge.height>St.height&&N(I,St.height-Ge.height),N(w,Math.max(n(w),0),!0),N(I,Math.max(n(I),0),!0)};Oe(()=>{ht(null,null,function*(){if(g()&&y()){yield go();let{top:ze,left:Ge,bottom:St,right:Ut}=b(),Mt=Ge!=null?Ge:0,ii=ze!=null?ze:0,Si=g().getBoundingClientRect();(0,Ga.isNullable)(Ge)&&!(0,Ga.isNullable)(Ut)&&(Mt=Ut-Si.width),(0,Ga.isNullable)(ze)&&!(0,Ga.isNullable)(St)&&(ii=St-Si.height),Mt=Math.max(Mt,0),ii=Math.max(ii,0),nt(Mt,ii)}})});let U=()=>{T.actions.internal.videoRotate()},Ae=()=>{(0,Ga.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),T.actions.internal.reportProblem(),T.actions.internal.pause()},Ee=()=>{let pe=T.actions.internal.getDebugTextData();if(L.features.saveDebugInfoToFile){let ze=new Blob([...pe],{type:"plain/text"}),Ge=window.URL.createObjectURL(ze);Fa(Ge,"vk_player_debug_info","txt")}else jl(T.actions.internal.getDebugTextData())},We=()=>{let pe=T.actions.internal.getTraceTextData(),ze=new Blob([...pe],{type:"application/json"}),Ge=window.URL.createObjectURL(ze);Fa(Ge,"vk_player_trace_info","json")},it=()=>{P.set(!0)},ye=()=>ht(null,null,function*(){var pe;try{z()}finally{(pe=e.returnFocus)==null||pe.call(e)}}),Ie=()=>{T.actions.internal.setLooped(!u())},He=()=>{var pe,ze;if(n(k)){let Ge=(ze=(pe=T.callbacks)==null?void 0:pe.onCopyEmbedCodeClicked)==null?void 0:ze.call(pe);Ge&&jl(Ge)}},Bt=(pe=!1)=>{var ze,Ge;if((ze=T.callbacks)!=null&&ze.onCopyVideoLink){let St=(Ge=T.callbacks)==null?void 0:Ge.onCopyVideoLink(pe,m());St&&jl(St)}},xt=f(()=>L.features.saveDebugInfoToFile?F("menu_save_debug"):F("menu_copy_debug")),Ht=f(()=>n(Ne)?{id:"copy-link",weight:os["copy-link"],label:F("menu_copy_video_link"),onClick:()=>Bt()}:void 0),dt=f(()=>n(fe)?{id:"copy-link-timestamp",weight:os["copy-link-timestamp"],label:F("menu_copy_video_link_with_timestamp"),onClick:()=>Bt(!0)}:void 0),Ct=f(()=>n(k)?{id:"copy-embed-code",weight:os["copy-embed-code"],label:F("menu_copy_embed_code"),onClick:He}:void 0),ti=f(()=>n(Ke)?{id:"pip",weight:os.pip,label:s()?F("menu_pip_close"):F("menu_pip"),onClick:ye}:void 0),Lt=f(()=>n(Te)?{id:"video-loop",weight:os["video-loop"],label:u()?F("menu_video_loop_off"):F("menu_video_loop_on"),ariaLabel:F("aria_label_menu_loop"),onClick:Ie}:void 0),Ft=f(()=>n(Z)?{id:"rotate",weight:os.rotate,label:F("menu_video_rotate"),ariaLabel:F("aria_label_menu_rotate"),onClick:U}:void 0),Qt=f(()=>n(ie)?{id:"report",weight:os.report,label:F("menu_report"),ariaLabel:`${F("menu_report")}. ${F("aria_label_new_tab_alert")}`,onClick:Ae}:void 0),Y=f(()=>({id:"save-debug",weight:os["save-debug"],label:n(xt),onClick:Ee})),Se=f(()=>n(De)?{id:"save-trace",weight:os["save-trace"],label:F("menu_save_debug"),onClick:We}:void 0),le=f(()=>({id:"debug-info",weight:os["debug-info"],label:F("menu_debug_overlay"),ariaLabel:F("aria_label_menu_debug_overlay"),onClick:it})),he=f(()=>[n(Ht),n(dt),n(Ct),n(ti),n(Lt),n(Ft),n(Qt),n(Y),n(Se),n(le),...p()].filter(pe=>!!pe).sort(Qa));var Ve=Le(),at=ce(Ve);{var vt=pe=>{var ze=Jy();ze.__contextmenu=[Zy],ze.__keydown=[Xy,Be],Ti(ze,21,()=>n(he),Ge=>Ge.id,(Ge,St)=>{_m(Ge,{get id(){return n(St).id},get label(){return n(St).label},get ariaLabel(){return n(St).ariaLabel},get onClick(){return n(St).onClick},closeContextMenu:Be})}),S(ze),Ze(ze,Ge=>g(Ge),()=>g()),D(()=>{var Ge,St;return qe(ze,`top: ${(Ge=n(I))!=null?Ge:""}px; left: ${(St=n(w))!=null?St:""}px;`)}),$(pe,ze)};R(at,pe=>{v()&&pe(vt)})}$(t,Ve),H(),o()}je(["contextmenu","keydown"]);var op=class{constructor(e){this.value=e,this.next=null}};var ed=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new op(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 t0=M('<div class="container s-1g"><canvas class="s-1g"></canvas></div>'),i0={hash:"s-1g",code:".container.s-1g{display:inline-block;height:16px;width:120px}canvas.s-1g{margin-top:2px;transform:scaleY(-1)}"};function dc(t,e){B(e,!0),Q(t,i0);let i=h(e,"values",19,()=>[]),o=K(void 0),r=K(null),a=16,l=120,d=60,s=l/d;Rt(()=>{n(o).width=l,n(o).height=a,N(r,n(o).getContext("2d"),!0)});function u(v,b,y,g,w){w===0&&(w=1),v.fillStyle="#fff",v.fillRect(b,y,g,w)}Oe(()=>{let v="";if(n(r)){let b=i()[0];for(let g=1;g<i().length;g++)i()[g]>b&&(b=i()[g]);n(r).clearRect(0,0,l,a);let y=d-1;for(let g=i().length-1;g>=0;g--){let w=y*s,I=b>0?a*(i()[g]/b):0;u(n(r),w,0,s,I),v=I+" "+v,y--}}});var m=t0(),p=C(m);Ze(p,v=>N(o,v),()=>n(o)),S(m),$(t,m),H()}var $m=require("@vkontakte/videoplayer-shared/es2015");var o0=(t,e)=>{t.stopPropagation(),$m.safeStorage.remove(Gd),e.set(!1)},n0=M('<div class="s-j"><div class="s-j">Video id</div> <span> </span></div>'),r0=M('<div class="s-j"><div class="s-j">VSID</div> <span> </span></div>'),s0=M('<div class="s-j"><div class="s-j">Provider</div> <span> </span></div>'),a0=M('<div class="s-j"><div class="s-j">Streams</div> <span> </span></div>'),l0=M('<div class="s-j"><div class="s-j">Viewport</div> <span> </span></div>'),d0=M('<div class="s-j"><div class="s-j">Video size</div> <span> </span></div>'),c0=M('<div class="s-j"><div class="s-j">CDN host</div> <span> </span></div>'),u0=M('<div class="s-j"><div class="s-j">Volume</div> <span> </span></div>'),p0=M('<div class="s-j"><div class="s-j">Position</div> <span> </span></div>'),f0=M('<div class="s-j"><div class="s-j">Buffer</div> <span> </span></div>'),m0=M('<div class="s-j"><div class="s-j">Nbuffer</div> <span> </span></div>'),v0=M('<div class="s-j"><div class="s-j">Live latency</div> <span> </span></div>'),g0=M('<div class="s-j"><div class="s-j">Segment</div> <span> </span></div>'),h0=M('<div class="s-j"><div class="s-j">Network</div> <!> <span> </span></div>'),_0=M('<div class="s-j"><div class="s-j">V bitrate</div> <!> <span> </span></div>'),b0=M('<div role="region"><button class="close s-j" title="закрыть">[x]</button> <div class="content s-j"><div class="s-j"><div class="s-j">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="s-j"><div class="s-j">Dropped</div> <span> </span></div> <!> <!> <div class="s-j"><div class="s-j">FPS</div> <!> <span> </span></div></div></div>'),$0={hash:"s-j",code:".container.s-j{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-j{left:16px;top:16px}button.close.s-j{background-color:transparent;border:none;color:#fff;cursor:pointer;outline:0;padding:0;position:absolute;right:5px;top:3px}.content.s-j{padding:5px}.content.s-j>div:where(.s-j)>div:where(.s-j){display:inline-block;padding:0 5px;text-align:right;width:60px}"};function cc(t,e){B(e,!0),Q(t,$0);let[i,o]=Re(),r=()=>x(d,"$isMobile",i),a=ge(),l=a.ui.debugPanelVisible,d=a.ui.isMobile,s=K(ui(a.actions.internal.getDebugPanelData())),u=a.actions.internal.getVideoElement(),m=K(0),p=K(0),v=K(0),b=new ed(60),y=new ed(60),g=new ed(60),w=K(ui([])),I=K(ui([])),T=K(ui([])),O=G("aria_label_debug_panel");Rt(()=>{$m.safeStorage.set(Gd,"true"),a.actions.internal.startLogging(),u&&(N(p,u.getVideoPlaybackQuality().droppedVideoFrames,!0),N(m,u.getVideoPlaybackQuality().totalVideoFrames,!0));let Y=window.setInterval(()=>{N(s,a.actions.internal.getDebugPanelData(),!0)},500),Se;return u&&(Se=window.setInterval(()=>{if(u){N(p,u.getVideoPlaybackQuality().droppedVideoFrames,!0);let le=u.getVideoPlaybackQuality().totalVideoFrames;N(v,le-n(m)),N(m,le,!0),b.push(n(v)),n(s).speed&&y.push(n(s).speed),n(s).bitrate&&g.push(n(s).bitrate),N(w,b.getValuesFromBottom(),!0),N(I,y.getValuesFromBottom(),!0),N(T,g.getValuesFromBottom(),!0)}},1e3)),()=>{a.actions.internal.stopLogging(),clearInterval(Y),Se&&clearInterval(Se)}});var L=b0();let E;var P=C(L);P.__click=[o0,l];var q=A(P,2),F=C(q),z=A(C(F),2),j=C(z,!0);S(z),S(F);var ae=A(F,2);{var X=Y=>{var Se=n0(),le=A(C(Se),2),he=C(le,!0);S(le),S(Se),D(()=>ve(he,n(s).id)),$(Y,Se)};R(ae,Y=>{n(s).id&&Y(X)})}var ne=A(ae,2);{var ee=Y=>{var Se=r0(),le=A(C(Se),2),he=C(le,!0);S(le),S(Se),D(()=>ve(he,n(s).vsid)),$(Y,Se)};R(ne,Y=>{n(s).vsid&&Y(ee)})}var we=A(ne,2);{var ue=Y=>{var Se=s0(),le=A(C(Se),2),he=C(le,!0);S(le),S(Se),D(()=>ve(he,n(s).provider)),$(Y,Se)};R(we,Y=>{n(s).provider&&Y(ue)})}var re=A(we,2);{var be=Y=>{var Se=a0(),le=A(C(Se),2),he=C(le);S(le),S(Se),D(()=>{var Ve,at;return ve(he,`Video: ${(Ve=n(s).videoCodec||"")!=null?Ve:""} ${n(s).hdr?"(HDR)":""}
57
+ &
58
+ Audio: ${(at=n(s).audioCodec||"")!=null?at:""} ${n(s).audioLanguage?`(${n(s).audioLanguage})`:""}`)}),$(Y,Se)};R(re,Y=>{(n(s).videoCodec||n(s).audioCodec)&&Y(be)})}var $e=A(re,2);{var J=Y=>{var Se=l0(),le=A(C(Se),2),he=C(le,!0);S(le),S(Se),D(()=>ve(he,n(s).viewport)),$(Y,Se)};R($e,Y=>{n(s).viewport&&Y(J)})}var Ne=A($e,2);{var fe=Y=>{var Se=d0(),le=A(C(Se),2),he=C(le,!0);S(le),S(Se),D(()=>ve(he,n(s).videoSize)),$(Y,Se)};R(Ne,Y=>{n(s).videoSize&&Y(fe)})}var k=A(Ne,2);{var Ke=Y=>{var Se=c0(),le=A(C(Se),2),he=C(le,!0);S(le),S(Se),D(()=>ve(he,n(s).cdn)),$(Y,Se)};R(k,Y=>{n(s).cdn&&Y(Ke)})}var Te=A(k,2);{var Z=Y=>{var Se=u0(),le=A(C(Se),2),he=C(le);S(le),S(Se),D(()=>{var Ve;return ve(he,`${(Ve=n(s).volume)!=null?Ve:""} %`)}),$(Y,Se)};R(Te,Y=>{n(s).volume&&Y(Z)})}var ie=A(Te,2);{var De=Y=>{var Se=p0(),le=A(C(Se),2),he=C(le);S(le),S(Se),D(Ve=>ve(he,`${Ve!=null?Ve:""} s`),[()=>n(s).position.toFixed(2)]),$(Y,Se)};R(ie,Y=>{n(s).position&&Y(De)})}var Be=A(ie,2);{var nt=Y=>{var Se=f0(),le=A(C(Se),2),he=C(le);S(le),S(Se),D(Ve=>ve(he,`${Ve!=null?Ve:""} s`),[()=>n(s).buffer.toFixed(2)]),$(Y,Se)};R(Be,Y=>{n(s).buffer&&Y(nt)})}var U=A(Be,2);{var Ae=Y=>{var Se=m0(),le=A(C(Se),2),he=C(le);S(le),S(Se),D(Ve=>ve(he,`${Ve!=null?Ve:""} s`),[()=>n(s).nativeBuffer.toFixed(2)]),$(Y,Se)};R(U,Y=>{n(s).nativeBuffer&&Y(Ae)})}var Ee=A(U,2);{var We=Y=>{var Se=v0(),le=A(C(Se),2),he=C(le);S(le),S(Se),D(Ve=>ve(he,`${Ve!=null?Ve:""} s`),[()=>n(s).liveLatency.toFixed(2)]),$(Y,Se)};R(Ee,Y=>{n(s).liveLatency&&Y(We)})}var it=A(Ee,2);{var ye=Y=>{var Se=g0(),le=A(C(Se),2),he=C(le,!0);S(le),S(Se),D(Ve=>ve(he,Ve),[()=>[{value:n(s).currentVideoSegmentLength,title:"Video:"},{value:n(s).currentAudioSegmentLength,title:"Audio:"}].filter(({value:Ve})=>Ve).map(({value:Ve,title:at})=>`${at} ${((Ve!=null?Ve:0)/1e3).toFixed(2)} s`).join(" & ")]),$(Y,Se)};R(it,Y=>{(n(s).currentVideoSegmentLength||n(s).currentAudioSegmentLength)&&Y(ye)})}var Ie=A(it,2),He=A(C(Ie),2),Bt=C(He);S(He),S(Ie);var xt=A(Ie,2);{var Ht=Y=>{var Se=h0(),le=A(C(Se),2);dc(le,{get values(){return n(I)}});var he=A(le,2),Ve=C(he);S(he),S(Se),D(at=>ve(Ve,`${at!=null?at:""} Kbps`),[()=>n(s).speed.toFixed(2)]),$(Y,Se)};R(xt,Y=>{n(s).speed&&Y(Ht)})}var dt=A(xt,2);{var Ct=Y=>{var Se=_0(),le=A(C(Se),2);dc(le,{get values(){return n(T)}});var he=A(le,2),Ve=C(he);S(he),S(Se),D(at=>ve(Ve,`${at!=null?at:""} Kbps`),[()=>n(s).bitrate.toFixed(2)]),$(Y,Se)};R(dt,Y=>{n(s).bitrate&&Y(Ct)})}var ti=A(dt,2),Lt=A(C(ti),2);dc(Lt,{get values(){return n(w)}});var Ft=A(Lt,2),Qt=C(Ft,!0);S(Ft),S(ti),S(q),S(L),D(Y=>{var Se,le;E=se(L,1,"container s-j",null,E,Y),Me(L,"aria-label",O),ve(j,n(s).version),ve(Bt,`${(Se=n(p))!=null?Se:""} / ${(le=n(m))!=null?le:""} frames`),ve(Qt,n(v))},[()=>({"container-mobile":r()})]),$(t,L),H(),o()}je(["click"]);var _b=require("@vkontakte/videoplayer-shared/es2015"),y0=(t,e)=>{t.stopPropagation(),e()()},x0=M('<div class="close s-1c"></div>'),w0={hash:"s-1c",code:'.close.s-1c{cursor:pointer;height:16px;opacity:.8;position:relative;transition:opacity .2s;width:16px}.close.s-1c:hover{opacity:1}.close.s-1c:after,.close.s-1c:before{background-color:var(--white);content:" ";height:16px;left:8px;position:absolute;width:2px}.close.s-1c:before{transform:rotate(45deg)}.close.s-1c:after{transform:rotate(-45deg)}'};function Os(t,e){B(e,!0),Q(t,w0);let i=h(e,"onClick",3,_b.noop);var o=x0();o.__click=[y0,i],$(t,o),H()}je(["click"]);var bb=require("@vkontakte/videoplayer-shared/es2015");var hn=t=>`width:${t}px;height:${t}px;`;var S0=Ce('<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 Vn(t,e){B(e,!0);let i=f(()=>hn(e.size));Je(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 a=S0();$(o,a)},$$slots:{default:!0}}),H()}var C0=M('<div class="timer s-1d"><canvas class="timer-canvas s-1d" width="100" height="100"></canvas> <!></div>'),T0={hash:"s-1d",code:".timer.s-1d{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-1d:hover{background:rgba(31,31,31,.85)}.timer-canvas.s-1d{height:50px;position:absolute;width:50px}"};function uc(t,e){B(e,!0),Q(t,T0);let i=h(e,"isRunning",3,!0),o=h(e,"onTimerEnded",3,bb.noop),r=5e3,a=K(void 0),l,d,s=0,u;Oe(()=>{i()&&Pt(()=>{d=Date.now(),s=requestAnimationFrame(p)})});let m=()=>{s&&(cancelAnimationFrame(s),s=0)},p=()=>{m(),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(),s=requestAnimationFrame(p)):o()())};Rt(()=>{l=n(a).getContext("2d"),l&&(l.lineWidth=6,l.lineCap="round",l.strokeStyle="#fff")}),gn(()=>{m()});var v=C0(),b=C(v);Ze(b,g=>N(a,g),()=>n(a));var y=A(b,2);Vn(y,{get size(){return"24"}}),S(v),$(t,v),H()}var I0=(t,e,i)=>{e(!1),i()},E0=M('<div class="overlay s-p"></div> <div class="next-video s-p"><div class="top s-p"><div class="caption s-p"> </div> <!></div> <div class="row s-p"><div class="column s-p"><div class="thumb s-p"><div></div> <!></div></div> <div class="column s-p"><div class="title s-p"> </div></div></div></div>',1),P0={hash:"s-p",code:".overlay.s-p{background:rgba(0,0,0,.72);height:100%;position:absolute;width:100%}.next-video.s-p{display:flex;flex-direction:column;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:362px}.top.s-p{display:flex;justify-content:space-between}.caption.s-p{color:var(--white);font-size:11px;font-weight:700;opacity:.8;text-transform:uppercase}.row.s-p{background:rgba(48,48,48,.8);cursor:pointer;display:flex;flex-direction:row;height:102px;margin-top:6px;width:100%}.column.s-p{display:flex;flex-basis:50%;flex-direction:column}.thumb.s-p{align-items:center;background:no-repeat 50%;background-size:cover;display:flex;justify-content:space-around;position:relative}.thumb.s-p,.thumb-overlay.s-p{height:100%;width:100%}.thumb-overlay.s-p{position:absolute}.thumb-overlay.withOpacity.s-p{background:var(--black);opacity:.3}.title.s-p{color:var(--white);font-size:12px;font-weight:700;line-height:1.6;max-height:52px;overflow:hidden;padding:10px 16px}"};function ym(t,e){B(e,!0),Q(t,P0);let[i,o]=Re(),r=()=>x(d,"$autoplayNextEnabled$",i),a=()=>x(s,"$timerNextVideoRunning$",i),l=ge(),d=l.ui.autoplayNextEnabled$,s=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,m=l.actions.internal.nextVideoAnnouncementShow,p=l.actions.internal.nextVideoAnnouncementClick,v=l.actions.internal.nextVideoAnnouncementAuto,b=l.actions.internal.nextVideoAnnouncementCancel,y=()=>{r()&&(u(!1),v())},g=()=>{e.clickCloseIcon(),b()};Rt(()=>{e.isHide||m(),e.isHide&&r()&&(u(!1),v())});var w=Le(),I=ce(w);{var T=O=>{var L=E0(),E=A(ce(L),2),P=C(E),q=C(P),F=C(q,!0);S(q);var z=A(q,2);Os(z,{onClick:g}),S(P);var j=A(P,2);j.__click=[I0,u,p];var ae=C(j),X=C(ae),ne=C(X);let ee;var we=A(ne,2);{var ue=J=>{let Ne=f(()=>a()&&r());uc(J,{get isRunning(){return n(Ne)},onTimerEnded:y})};R(we,J=>{r()&&J(ue)})}S(X),S(ae);var re=A(ae,2),be=C(re),$e=C(be,!0);S(be),S(re),S(j),S(E),D((J,Ne)=>{ve(F,J),qe(X,`background-image: url('${e.thumb}')`),ee=se(ne,1,"thumb-overlay s-p",null,ee,Ne),ve($e,e.title)},[()=>G("end_screen_next_video"),()=>({withOpacity:r()})]),$(O,L)};R(I,O=>{e.isHide||O(T)})}$(t,w),H(),o()}je(["click"]);var ua=require("@vkontakte/videoplayer-core/es2015"),$b=require("@vkontakte/videoplayer-shared/es2015"),Rn=require("@vkontakte/videoplayer-statistics/es2015");var xm=(t,e)=>Math.min(+(t+e).toFixed(2),1),wm=(t,e)=>Math.max(+(t-e).toFixed(2),0),np=(t,e,i)=>{let o=xm(e,i);e<1&&t.actions.internal.setVolume(o)},rp=(t,e,i)=>{let o=wm(e,i);e>0&&t.actions.internal.setVolume(o)};var ca=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:r})=>t?i?!0:(o==null||o(),!1):e?!0:(r==null||r(),!1);function sp(){var t,e,i;return(i=(e=(t=document.activeElement)==null?void 0:t.shadowRoot)==null?void 0:e.activeElement)!=null?i:null}var A0=(t,e)=>{e(t)},L0=M('<div class="keyboard-controls s-s" tabindex="-1" role="region"><!></div>'),M0={hash:"s-s",code:".keyboard-controls.s-s{bottom:0;left:0;position:absolute;right:0;top:0}"};function Sm(t,e){var Y,Se;B(e,!0),Q(t,M0);let[i,o]=Re(),r=()=>x(we,"$disabledControls$",i),a=()=>x(nt,"$isInteractiveTime$",i),l=()=>x(U,"$showInteractiveTimeIndicatorTooltip$",i),d=()=>x(z,"$playbackState$",i),s=()=>x(Ke,"$isEnded$",i),u=()=>x(fe,"$doubleForwardAvailable$",i),m=()=>x(Ne,"$doubleForwardOn$",i),p=()=>x(Te,"$overlayContainer$",i),v=()=>x(ae,"$adPlaybackState",i),b=()=>x(X,"$positionExact$",i),y=()=>x(ne,"$duration$",i),g=()=>x(De,"$isAudioAvailable$",i),w=()=>x(ee,"$volume$",i),I=()=>x(j,"$canChangePlaybackSpeed$",i),T=()=>x(ue,"$muted$",i),O=()=>x(re,"$currentSubtitle$",i),L=h(e,"nextButtonActive",3,!1),E=h(e,"prevButtonActive",3,!1),P=ge(),q=Nt(),F=P.getLogger().createComponentLog("KeyboardControls component"),z=P.state.playbackState$,j=P.state.canChangePlaybackSpeed$,ae=P.ads.playbackState,X=P.state.positionExact$,ne=P.state.duration$,ee=P.state.volume$,we=P.ui.controls.disabledControls$,ue=P.state.muted$,re=P.state.currentSubtitle$,be=P.ui.contextMenu.openedByHotKey$,$e=P.ui.contextMenu.lastActiveElem$,J=P.ui.contextMenu.visible$,Ne=P.ui.doubleForwardOn$,fe=P.ui.doubleForwardAvailable$,k=P.ui.contextMenu.position$,Ke=P.state.isEnded$,Te=P.ui.overlayContainer$,Z=(Y=P.callbacks)==null?void 0:Y.onAudioDoesNotExistHint,ie=(Se=P.callbacks)==null?void 0:Se.onAudioDisabledHint,De=P.state.isAudioAvailable$,Be=P.state.isAudioDisabled,nt=P.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:U}=bo(),Ae=0,Ee=!0,We=K(void 0),it=le=>(le!==Ee&&(Ee=le,Ae=0),Ae+=1,(q.controls.seekStepKeyboard+q.controls.seekStepKeyboard*Ae)/1e3),ye=!0,Ie=({type:le,repeat:he,disableDoubleForward:Ve})=>{let at=()=>{if(!r().has("PLAY_BUTTON"))if(a()&&l()&&U.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{P.actions.internal.togglePlay();let pe="PLAY";d()===ua.PlaybackState.PAUSED?pe="PAUSE":s()&&(pe="REPLAY"),e.showHotKeyHelpers({type:pe})}},vt=le==="down";if(!u()||Ve){vt&&at(),ye=!0;return}if(vt)ye=!1;else if(ye)return;if(vt){!he&&e.startDoubleForwardActivationTimer();return}m()||at(),e.stopDoubleForward(),ye=!0},He=le=>{let he=gb(p());k.set(he),$e.set(le.target),be.set(!0),J.set(!0)},Bt=(le,he=!1)=>{var mi,xi;let Ve=le.target,at=(mi=Ve==null?void 0:Ve.getAttribute("role"))==null?void 0:mi.includes("menuitem"),vt=Ve.classList.contains("btn"),pe=le.code;if(vt&&pe==="Space")return!1;let ze=h_.has(pe);if(at&&ze)return!1;let Ge=!g_.has(pe);if(le.ctrlKey&&Ge||le.altKey&&Ge||le.metaKey)return!1;let St=at&&pe==="Escape";__.has(pe)||St||e.hideContextMenu();let Ut=d()===ua.PlaybackState.PLAYING||d()===ua.PlaybackState.PAUSED,Mt=e.isAds&&(v()==="paused"||v()==="playing"),ii=!Mt&&!r().has("TIMELINE"),Si=le.shiftKey&&["Digit1","Numpad1"].includes(pe);if(!Si&&!(Ut||Mt))return!1;F({message:`key down, code: ${pe}, isExternal = ${he}`});let eo=!1,Ot=()=>{eo=!0,he||le.preventDefault()};if(Si)return He(le),Ot(),!0;switch(pe){case"KeyJ":case"ArrowLeft":{if(!ii)break;if(le.ctrlKey||le.altKey){let bt=P.actions.internal.getPrevEpisode();P.actions.internal.seekToPrevEpisode(bt),bt&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:bt.text}),Ot()}else{let bt=le.shiftKey?it(!1):q.controls.seekStepKeyboard/1e3,Xt=Math.max(b()-bt,0);b()>0&&(P.actions.internal.seekTime(Xt,Rn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:bt.toString()}),Ot())}break}case"KeyL":case"ArrowRight":{if(!ii)break;if(le.ctrlKey||le.altKey){let bt=P.actions.internal.getNextEpisode();P.actions.internal.seekToNextEpisode(bt),bt&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:bt.text}),Ot()}else{let bt=le.shiftKey?it(!0):q.controls.seekStepKeyboard/1e3,Xt=Math.min(b()+bt,y());Math.round(b())<Math.round(y())&&(P.actions.internal.seekTime(Xt,Rn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:bt.toString()}),Ot())}break}case"ArrowUp":{if(ca({isAudioDisabled:Be,audioDisabledHintCallback:ie,isAudioAvailable:g(),audioIsNotExistHintCallback:Z,isAds:e.isAds})){let bt=w(),Xt=q.controls.volumeStepKeyboard,Ii=bt<=1;if(np(P,bt,Xt),Ii){let zi=Math.round(xm(bt,Xt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:zi}})}}Ot();break}case"ArrowDown":{if(ca({isAudioDisabled:Be,audioDisabledHintCallback:ie,isAudioAvailable:g(),audioIsNotExistHintCallback:Z,isAds:e.isAds})){let bt=w(),Xt=q.controls.volumeStepKeyboard,Ii=bt>=0;if(rp(P,bt,Xt),Ii){let zi=Math.round(wm(bt,Xt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:zi}})}}Ot();break}case"Comma":{if(le.shiftKey){if(!m()&&I()){let bt=P.actions.internal.decrementPlaybackRate();e.showHotKeyHelpers({type:"RATE_DOWN",text:bt==null?void 0:bt.displayValue}),Ot()}}else{if(Mt||d()!==ua.PlaybackState.PAUSED)break;let bt=Math.max(b()-q.controls.seekStepFrame/1e3,0);b()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),P.actions.internal.clearDelayedBufferingCheckTimeout(),P.actions.internal.seekTime(bt,Rn.SeekAction.DOUBLE_TAP),Ot())}break}case"Period":{if(le.shiftKey){if(!m()&&I()){let bt=P.actions.internal.incrementPlaybackRate();e.showHotKeyHelpers({type:"RATE_UP",text:bt==null?void 0:bt.displayValue}),Ot()}}else{if(Mt||d()!==ua.PlaybackState.PAUSED)break;let bt=Math.min(b()+q.controls.seekStepFrame/1e3,y());b()<y()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),P.actions.internal.clearDelayedBufferingCheckTimeout(),P.actions.internal.seekTime(bt,Rn.SeekAction.DOUBLE_TAP),Ot())}break}case"KeyK":case"Space":Ie({type:"down",repeat:le.repeat,disableDoubleForward:"KeyK"===pe}),Ot();break;case"KeyM":{ca({isAudioDisabled:Be,audioDisabledHintCallback:ie,isAudioAvailable:g(),audioIsNotExistHintCallback:Z,isAds:e.isAds})&&(e.showHotKeyHelpers({type:T()?"VOLUME":"MUTE"}),P.actions.internal.toggleMuted()),Ot();break}case"KeyF":e.toggleFullscreen(),Ot();break;case"KeyC":P.actions.internal.toggleSubtitle(),O().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(xi=O())==null?void 0:xi.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),Ot();break;case"KeyI":P.actions.internal.togglePictureInPicture(),Ot();break;case"Digit1":case"Numpad1":e.showHotKeyHelpers(),P.actions.internal.seekToPercent(.1,Rn.SeekAction.DOUBLE_TAP),Ot();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),P.actions.internal.seekToPercent(.2,Rn.SeekAction.DOUBLE_TAP),Ot();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),P.actions.internal.seekToPercent(.3,Rn.SeekAction.DOUBLE_TAP),Ot();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),P.actions.internal.seekToPercent(.4,Rn.SeekAction.DOUBLE_TAP),Ot();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),P.actions.internal.seekToPercent(.5,Rn.SeekAction.DOUBLE_TAP),Ot();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),P.actions.internal.seekToPercent(.6,Rn.SeekAction.DOUBLE_TAP),Ot();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),P.actions.internal.seekToPercent(.7,Rn.SeekAction.DOUBLE_TAP),Ot();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),P.actions.internal.seekToPercent(.8,Rn.SeekAction.DOUBLE_TAP),Ot();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),P.actions.internal.seekToPercent(.9,Rn.SeekAction.DOUBLE_TAP),Ot();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),P.actions.internal.seekToPercent(0,Rn.SeekAction.DOUBLE_TAP),Ot();break;case"Slash":{le.shiftKey&&q.features.hotKeyMapModal&&(e.showKeyMap(),Ot());break}case"KeyN":le.shiftKey&&L()&&(P.actions.internal.nextVideoClick(),Ot());break;case"KeyP":le.shiftKey&&E()&&(P.actions.internal.prevVideoClick(),Ot());break;case"ShiftLeft":case"ShiftRight":Ot();break;case"Tab":case"Escape":case"Enter":break;default:(0,$b.checkNever)(pe);break}return eo},xt=le=>{let he=le.code;if(le.ctrlKey||le.altKey||le.metaKey)return;let Ve=d()===ua.PlaybackState.PLAYING||d()===ua.PlaybackState.PAUSED,at=e.isAds&&(v()==="paused"||v()==="playing");if(Ve||at)switch(he){case"ShiftLeft":case"ShiftRight":Ae=0;break;case"Space":Ie({type:"up"});break}},Ht=G("aria_label_video_player"),dt=()=>{var le;return(le=n(We))==null?void 0:le.focus()},Ct=()=>n(We)===sp(),ti=le=>le.type==="keydown"?Bt(le,!0):(le.type==="keyup"&&xt(le),!1);var Lt=L0();Lt.__keyup=xt,Lt.__keydown=[A0,Bt];var Ft=C(Lt);si(Ft,()=>{var le;return(le=e.children)!=null?le:_t}),S(Lt),Ze(Lt,le=>N(We,le),()=>n(We)),D(()=>Me(Lt,"aria-label",Ht)),$(t,Lt);var Qt=H({focus:dt,isFocused:Ct,handleExternalKeyboardEvent:ti});return o(),Qt}je(["keyup","keydown"]);var V0=M('<div class="container s-l"><div class="dot s-l"></div> <div class="dot s-l"></div> <div class="dot s-l"></div></div>'),R0={hash:"s-l",code:".container.s-l{display:flex;left:50%;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%)}.dot.s-l:first-child{animation-delay:0s}.dot.s-l:nth-child(2){animation-delay:.18s}.dot.s-l:nth-child(3){animation-delay:.36s}@keyframes s-l-dot_animation{0%{opacity:.2}30%{opacity:1}to{opacity:.2}}.dot.s-l{animation-duration:.75s;animation-iteration-count:infinite;animation-name:s-l-dot_animation;background:var(--btn-color);border-radius:4px;height:8px;width:8px}.dot.s-l+.dot:where(.s-l){margin-left:4px}"};function Ya(t,e){Q(t,R0);let i=h(e,"style",3,"");var o=V0();D(()=>qe(o,i())),$(t,o)}var N0=Ce('<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 Cm(t,e){Je(t,{get fill(){return e.fill},children:(i,o)=>{var r=N0();$(i,r)},$$slots:{default:!0}})}var ja=require("@vkontakte/videoplayer-shared/es2015"),O0=t=>{t.stopPropagation()},D0=M("<button><!></button>"),B0={hash:"s-1l",code:"button.btn.s-1l{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-1l{width:100%}button.btn--live.s-1l{padding:10px 4px}button.btn-jc-l.s-1l{justify-content:left}button.btn-m.s-1l{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-1l,button.btn-m--play.s-1l{align-items:center;display:flex;justify-content:center}button.btn-m--play.s-1l{height:var(--big-play-size);padding:16px;position:relative;width:var(--big-play-size)}button.btn-m--next.s-1l,button.btn-m--prev.s-1l{height:50px;position:absolute;width:50px}button.btn-m--prev.s-1l{right:calc(100% + 35px)}button.btn-m--next.s-1l{left:calc(100% + 35px)}button.btn.s-1l:disabled{cursor:default;pointer-events:none}button.btn.s-1l:not(.btn-full-opacity):disabled{opacity:.4}button.btn.s-1l:not(:disabled):hover{opacity:.8}button.pr-0.s-1l{padding-right:0}button.pl-0.s-1l{padding-left:0}"};function qt(t,e){B(e,!0),Q(t,B0);let i=h(e,"className",3,""),o=h(e,"style",3,""),r=h(e,"disabled",3,void 0),a=h(e,"testId",3,void 0),l=h(e,"ariaHidden",3,void 0),d=h(e,"ariaLabel",3,void 0),s=h(e,"ref",15,void 0),u=h(e,"ariaKeyShortCut",3,void 0),m=h(e,"ariaExpanded",3,void 0),p=h(e,"tabIndex",3,0),v=h(e,"click",3,ja.noop),b=h(e,"focus",3,ja.noop),y=h(e,"blur",3,ja.noop),g=f(()=>v()===ja.noop?null:L=>{L.stopPropagation(),v()(L)}),w=f(()=>b()===ja.noop?null:L=>{L.preventDefault(),b()()}),I=f(()=>y()===ja.noop?null:L=>{L.preventDefault(),y()()});var T=D0();T.__pointerdown=[O0],T.__click=function(...L){var E;(E=n(g))==null||E.apply(this,L)};var O=C(T);si(O,()=>{var L;return(L=e.children)!=null?L:_t}),S(T),Ze(T,L=>s(L),()=>s()),D(()=>{var L,E,P,q,F,z,j,ae;se(T,1,`btn ${(L=i())!=null?L:""}`,"s-1l"),qe(T,o()||null),T.disabled=(E=r())!=null?E:null,Me(T,"aria-hidden",(P=l())!=null?P:null),Me(T,"aria-label",(q=d())!=null?q:null),Me(T,"aria-keyshortcuts",(F=u())!=null?F:null),Me(T,"aria-expanded",(z=m())!=null?z:null),Me(T,"data-testid",(j=a())!=null?j:null),Me(T,"tabindex",p()),Me(T,"role",e.role),Me(T,"aria-checked",(ae=e.areaChecked)!=null?ae:null)}),lt("focus",T,function(...L){var E;(E=n(w))==null||E.apply(this,L)}),lt("blur",T,function(...L){var E;(E=n(I))==null||E.apply(this,L)}),$(t,T),H()}je(["pointerdown","click"]);var H0=(t,e)=>{t.key==="Escape"&&e.onClose(),(t.key==="ArrowUp"||t.key==="ArrowDown")&&t.stopPropagation()},F0=M('<div class="modal-header s-18"><h3 class="modal-title s-18"> </h3> <!></div>'),U0=M('<div class="modal-overlay s-18"><div class="modal-container s-18" role="dialog" aria-modal="true"><!> <div class="modal-scroll s-18" tabindex="0" role="scrollbar"><div class="modal-main s-18"><!></div></div></div></div>'),z0={hash:"s-18",code:'.modal-overlay.s-18{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-18{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-18{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-18{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-18{height:100%;margin:8px 4px 8px 0;overflow-x:hidden;overflow-y:auto}.modal-scroll.s-18::-webkit-scrollbar{width:8px}.modal-scroll.s-18::-webkit-scrollbar-track{background-color:transparent;border-radius:4px;box-shadow:none;margin-right:2px}.modal-scroll.s-18::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:#666;border:1px solid transparent;border-radius:5px;min-height:40px}.modal-scroll.s-18::-webkit-scrollbar-thumb:hover{background-color:#777}.modal-main.s-18{margin:-8px -4px 0 0}'};function Tm(t,e){B(e,!0),Q(t,z0);let i=h(e,"showHeader",3,!0),o=h(e,"showCloseCross",3,!0),r=K(void 0),a=K(void 0),{webApi:{focusManager:l}}=ge(),d=G("hotkey_map_modal_close_btn_text");Rt(()=>{var g;return(g=n(r))==null||g.focus(),n(a)&&l&&(l.setContainerForFocusLock(n(a)),l.activateLock()),()=>l==null?void 0:l.deactivateLock()});var s=U0();s.__keydown=[H0,e];var u=C(s),m=C(u);{var p=g=>{var w=F0(),I=C(w),T=C(I,!0);S(I);var O=A(I,2);{var L=E=>{qt(E,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",get ariaLabel(){return d},children:(P,q)=>{Cm(P,{fill:"currentColor"})},$$slots:{default:!0}})};R(O,E=>{o()&&E(L)})}S(w),D(()=>ve(T,e.title)),$(g,w)};R(m,g=>{i()&&g(p)})}var v=A(m,2),b=C(v),y=C(b);si(y,()=>{var g;return(g=e.children)!=null?g:_t}),S(b),S(v),Ze(v,g=>N(r,g),()=>n(r)),S(u),Ze(u,g=>N(a,g),()=>n(a)),S(s),$(t,s),H()}je(["keydown"]);var W0=new Set(["BR"]),yb=t=>{var r;let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),o=i.length;for(;o--;){let a=i[o],l=a.tagName;W0.has(l)||(r=a.parentElement)==null||r.removeChild(a)}return e.innerHTML};var K0=M('<li class="hot-key-map-item s-o"><span class="hot-key-map-item-description s-o"><!></span> &nbsp; <span class="hot-key-map-item-value s-o"> </span></li>'),q0=M('<div class="hot-key-map-group s-o"><h5 class="hot-key-map-group-title s-o"> </h5> <ul class="hot-key-map-group-items s-o"></ul></div>'),Q0=M('<div class="hot-key-map s-o"></div>'),G0={hash:"s-o",code:'.hot-key-map.s-o{box-sizing:border-box;color:var(--black);overflow-x:hidden}.hot-key-map-group.s-o{border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px}.hot-key-map-group.s-o:last-child{border-bottom:none}.hot-key-map-group-title.s-o{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-o,.hot-key-map-item.s-o{margin:0;padding:12px 0;width:100%}.hot-key-map-group-items.s-o{box-sizing:border-box;list-style:none;margin:0;padding:0}.hot-key-map-item.s-o{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-o{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-o{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-o,.hot-key-map-item-value.s-o{font-feature-settings:"clig" off,"liga" off;font-size:13px;font-style:normal;font-weight:400;line-height:16px}'};function Im(t,e){B(e,!1),Q(t,G0);let[i,o]=Re(),r=()=>x(l,"$data",i),a=ge(),{data:l,show:d}=a.ui.modals.hotKeyMap,s=()=>{d.set(!1)};_o(),Tm(t,{get title(){return r().title},onClose:s,children:(u,m)=>{var p=Q0();Ti(p,5,()=>r().groups,({title:v,items:b})=>v,(v,b)=>{let y=()=>n(b).title,g=()=>n(b).items;var w=q0(),I=C(w),T=C(I,!0);S(I);var O=A(I,2);Ti(O,5,g,({description:L,value:E})=>E,(L,E)=>{let P=()=>n(E).description,q=()=>n(E).value;var F=K0(),z=C(F),j=C(z);zd(j,()=>yb(P())),S(z);var ae=A(z,2),X=C(ae,!0);S(ae),S(F),D(()=>ve(X,q())),$(L,F)}),S(O),S(w),D(()=>ve(T,y())),$(v,w)}),S(p),$(u,p)},$$slots:{default:!0}}),H(),o()}var wv=require("@vkontakte/videoplayer-shared/es2015");var ol=require("@vkontakte/videoplayer-core/es2015");var xb=require("@vkontakte/videoplayer-shared/es2015");var Y0=M('<div class="pillow s-1y"><!></div>'),j0={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 Em(t,e){Q(t,j0);var i=Y0(),o=C(i);si(o,()=>{var r;return(r=e.children)!=null?r:_t}),S(i),D(()=>Me(i,"data-testid",e.testId)),$(t,i)}var td=require("@vkontakte/videoplayer-shared/es2015");var X0=Ce('<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 Pm(t,e){let i=Mn(e,["$$slots","$$events","$$legacy","children"]);var o=X0();oo(o,()=>Pe({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"currentColor","fill-rule":"evenodd",role:"img"},i));var r=C(o);si(r,()=>{var a;return(a=e.children)!=null?a:_t}),pi(),S(o),$(t,o)}var Z0=Ce('<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 km(t,e){let i=Mn(e,["$$slots","$$events","$$legacy","children"]);var o=Z0();oo(o,()=>Pe({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"currentColor","fill-rule":"evenodd",role:"img"},i));var r=C(o);si(r,()=>{var a;return(a=e.children)!=null?a:_t}),pi(),S(o),$(t,o)}var J0=Ce('<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 Am(t,e){let i=Mn(e,["$$slots","$$events","$$legacy","children"]);var o=J0();oo(o,()=>Pe({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"currentColor",role:"img"},i));var r=C(o);si(r,()=>{var a;return(a=e.children)!=null?a:_t}),pi(),S(o),$(t,o)}var ex=Ce('<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 Lm(t,e){let i=Mn(e,["$$slots","$$events","$$legacy","children"]);var o=ex();oo(o,()=>Pe({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"currentColor",role:"img"},i));var r=C(o);si(r,()=>{var a;return(a=e.children)!=null?a:_t}),pi(),S(o),$(t,o)}var tx=Ce('<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 Mm(t,e){let i=Mn(e,["$$slots","$$events","$$legacy","children"]);var o=tx();oo(o,()=>Pe({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"currentColor",role:"img"},i));var r=C(o);si(r,()=>{var a;return(a=e.children)!=null?a:_t}),pi(),S(o),$(t,o)}var ap=t=>{switch(t){case td.VideoQuality.Q_720P:return Am;case td.VideoQuality.Q_1080P:return Lm;case td.VideoQuality.Q_1440P:return Mm;case td.VideoQuality.Q_2160P:return Pm;case td.VideoQuality.Q_4320P:return km}};var ix=Ce('<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 Vm(t,e){Je(t,{get testId(){return e.testId},children:(i,o)=>{var r=ix();$(i,r)},$$slots:{default:!0}})}var ox=Ce('<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 Rm(t,e){Je(t,{get testId(){return e.testId},children:(i,o)=>{var r=ox();$(i,r)},$$slots:{default:!0}})}var nx=M('<div aria-hidden="true"><!> <!></div>'),rx={hash:"s-1w",code:".icon.s-1w{display:flex;height:24px;position:relative;width:24px}.icon.s-1w .pillow{position:absolute;right:-9px;top:1px}.icon.triple.s-1w .pillow{right:-13px}.icon.s-1w svg[data-testid=settings-icon--labeled] ._full{opacity:0;visibility:hidden}"};function pc(t,e){B(e,!0),Q(t,rx);let i=h(e,"isMobile",3,!1),o=h(e,"currentQuality",3,void 0),r=f(()=>o()?(0,xb.getVideoQualityLabel)(o()):""),a=f(()=>ap(o())),l=f(()=>n(r).length>2);var d=Le(),s=ce(d);{var u=p=>{Vm(p,{testId:"settings-mobile-icon"})},m=p=>{var v=nx();let b;var y=C(v);{var g=T=>{let O=f(()=>`${n(r)}-pill-icon`);Em(T,{get testId(){return n(O)},children:(L,E)=>{var P=Le(),q=ce(P);Fi(q,()=>n(a),(F,z)=>{z(F,{})}),$(L,P)},$$slots:{default:!0}})};R(y,T=>{n(a)&&T(g)})}var w=A(y,2);let I=f(()=>n(a)?"settings-icon--labeled":"settings-icon");Rm(w,{get testId(){return n(I)}}),S(v),D(T=>b=se(v,1,"icon s-1w",null,b,T),[()=>({triple:n(l)})]),$(p,v)};R(s,p=>{i()?p(u):p(m,!1)})}$(t,d),H()}var sx=M('<span class="settings-icon-wrapper s-1z"><!></span>'),ax={hash:"s-1z",code:".settings-icon-wrapper.s-1z{position:relative;width:24px}"};function id(t,e){B(e,!0),Q(t,ax);let[i,o]=Re(),r=()=>x(u,"$settingsMenuVisible",i),a=()=>x(v,"$isMobile",i),l=()=>x(s,"$currentQuality",i),d=ge(),s=d.state.currentQuality$,u=d.ui.settingsMenu.visible$,m=d.actions.internal.openSettingsMenu,p=d.actions.internal.closeSettingsMenu,v=d.ui.isMobile,b=d.ui.t,y=K(void 0);Oe(()=>{n(y)&&Pt(()=>{e.ref$.set(n(y))})});let g=b("aria_label_settings");function w(T){return ht(this,null,function*(){let O=da(T);r()?p():m(O,go)})}let I=f(()=>r()?"opened":"");qt(t,{get className(){return n(I)},testId:"settings-btn",click:w,get ariaLabel(){return g},get ariaExpanded(){return r()},get ref(){return n(y)},set ref(T){N(y,T,!0)},children:(T,O)=>{var L=sx(),E=C(L);pc(E,{get isMobile(){return a()},get currentQuality(){return l()}}),S(L),$(T,L)},$$slots:{default:!0}}),H(),o()}var lx=Ce('<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),dx=Ce("<path></path>");function pa(t,e){B(e,!0);let i=f(()=>`subtitles-icon${e.type==="off"?"-off":e.type==="outline"?"-outline":""}`),o=f(()=>hn(e.size));Je(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,a)=>{var l=Le(),d=ce(l);{var s=m=>{var p=lx();pi(),$(m,p)},u=m=>{var p=dx();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`)),$(m,p)};R(d,m=>{e.type==="off"?m(s):m(u,!1)})}$(r,l)},$$slots:{default:!0}}),H()}function Nm(t,e){B(e,!0);let i=h(e,"isSubtitlesEnabled",3,!1),r=ge().ui.t,a=f(()=>i()?r("tooltip_subtitles_on"):r("tooltip_subtitles_off"));qt(t,{testId:"subtitles-btn",get ariaLabel(){return n(a)},get click(){return e.click},get ariaKeyShortCut(){return bs.KeyC},role:"button",children:(l,d)=>{let s=f(()=>i()?void 0:"outline");pa(l,{get size(){return"24"},get type(){return n(s)}})},$$slots:{default:!0}}),H()}var cx=M('<span class="duration s-21" data-testid="video_duration"> </span>'),ux=M('<div><span class="current s-21" data-testid="current_time"> </span> <!></div>'),px={hash:"s-21",code:'.time.s-21{align-items:center;color:var(--controls-time);display:flex;font-variant-numeric:tabular-nums;font-weight:500;padding:12px 6px}.time.mobile.s-21{padding:0 0 0 8px}.current.s-21{position:relative}.duration.s-21{opacity:.7}.duration.s-21:before{content:" / ";white-space:pre}'};function fc(t,e){B(e,!0),Q(t,px);let i=h(e,"isMobile",3,!1),o=h(e,"isHidden",3,!1),r=h(e,"showDuration",3,!0),a=h(e,"ref",15),l=Nt(),d=de(!1),s=f(()=>tn(e.duration)),u=f(()=>tn(e.position));var m=ux();let p;var v=C(m),b=C(v,!0);S(v);var y=A(v,2);{var g=w=>{var I=cx(),T=C(I,!0);S(I),D(()=>ve(T,n(s))),$(w,I)};R(y,w=>{r()&&w(g)})}S(m),Rs(m,()=>Yl(o()&&l.features.usePerformanceFix,d,l.disableInvisibleComponentsTimeout)),Ze(m,w=>a(w),()=>a()),D(w=>{p=se(m,1,"time s-21",null,p,w),ve(b,n(u))},[()=>({mobile:i()})]),$(t,m),H()}var vc=require("@vkontakte/videoplayer-shared/es2015");var fx=Ce('<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),mx=Ce("<path></path>"),vx=Ce('<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 fa(t,e){B(e,!0);let i=h(e,"volume",3,1),o=h(e,"muted",3,!1),r=(u,m)=>m?"off":u>.5?"max":u>.2?"mid":u>0?"min":"off",a=f(()=>r(i(),o())),l=f(()=>hn(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",s="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";Je(t,{get style(){return n(l)},get testId(){var u;return`volume-${(u=n(a))!=null?u:""}-icon`},get shadow(){return e.shadow},children:(u,m)=>{var p=vx(),v=A(ce(p));{var b=g=>{var w=fx();pi(),$(g,w)},y=g=>{var w=mx();D(()=>Me(w,"d",`${d}${n(a)==="max"?s:""}`)),$(g,w)};R(v,g=>{n(a)==="off"?g(b):g(y,!1)})}$(u,p)},$$slots:{default:!0}}),H()}var ko=require("@vkontakte/videoplayer-shared/es2015");var lp=require("@vkontakte/videoplayer-shared/es2015");var wb=require("@vkontakte/videoplayer-shared/es2015");var gx=M('<div class="overlay"><!></div>');function Om(t,e){B(e,!0);let[i,o]=Re(),r=()=>x(l,"$overlayContainer$",i),l=ge().ui.overlayContainer$,d=K(void 0),s=v=>{!v||!n(d)||!v.contains(n(d))||v.removeChild(n(d))},u=v=>{!v||!n(d)||v.contains(n(d))||v.appendChild(n(d))};Oe(()=>{u(r())}),Rt(()=>(u(r()),()=>s(r())));var m=gx(),p=C(m);si(p,()=>{var v;return(v=e.children)!=null?v:_t}),S(m),Ze(m,v=>N(d,v),()=>n(d)),$(t,m),H(),o()}var hx=M('<div class="tooltip s-1n"><div class="content s-1n"> </div> <div class="tooltip-pointer s-1n"></div></div>'),_x=M("<div><!></div> <!>",1),bx={hash:"s-1n",code:'.tooltip-wrapper.s-1n{display:flex;flex-direction:column;min-width:0}.full-width.s-1n{width:100%}.tooltip.s-1n{bottom:100%;left:0;opacity:0;position:absolute;transition:opacity .2s,visibility .2s;visibility:hidden}.content.s-1n{background-color:rgba(41,41,41,.8);border-radius:3px;color:var(--white);display:inline-block;padding:6px 10px}.tooltip-pointer.s-1n{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 Xa(t,e){B(e,!0),Q(t,bx);let[i,o]=Re(),r=()=>x(j,"$overlayContainer$",i),a=()=>x(z,"$containerSize",i),l=h(e,"isMobile",3,!1),d=h(e,"content",3,""),s=h(e,"active",15,!1),u=h(e,"translateX",3,0),m=h(e,"translateY",3,0),p=h(e,"isFullWidthWrapper",3,!1),v=h(e,"maxTooltipWidth",3,void 0),b=h(e,"placement",3,"top"),y=h(e,"onVisibilityChange",3,wb.noop),g=5,w=K(void 0),I=K(void 0),T,O=K(0),L=K(0),E=K(0),P=K(0),q=Nt(),F=ge(),z=F.ui.playerSize,j=F.ui.overlayContainer$;Oe(()=>{Pt(()=>{y()(s())})});let ae=F.getLogger().createComponentLog("Tooltip component"),X=()=>{if(!r()||!n(I)||!n(w))return;N(L,g);let U=r().getBoundingClientRect(),Ae=n(w).getBoundingClientRect(),Ee=Ae.width,We=n(I).clientWidth,it=a().width,ye=(Ee-We)/2,Ie=Ae.left+u()-U.left,He=Ie+ye,Bt=Ae.top+m()-U.top,xt=We/2-g,Ht=He<8,dt=He+We>it-8;Ht&&(He=8,xt=Ie+Ae.width/2-2.5*g),dt&&(He=it-8-We,xt=Ae.left-U.left+Ae.width/2-He-g),N(E,He,!0),N(P,Bt),N(O,xt,!0)},ne=()=>{!r()||!n(I)||!n(w)||N(L,-g)},ee=()=>{if(!r()||!n(I)||!n(w))return;N(O,g);let U=r().getBoundingClientRect(),Ae=n(w).getBoundingClientRect(),Ee=Ae.height,We=n(I).clientHeight,it=(Ee-We)/2+We,ye=Ae.left+u()-U.left-n(I).clientWidth,Ie=2,He=ye-g;He<8&&(He=8);let xt=Ae.top+m()-U.top+it,Ht=Ie-it/2,dt=Ie-g;N(E,He,!0),N(P,xt),N(L,Ht),N(O,dt)},we=()=>{!r()||!n(I)||!n(w)||N(O,-g)},ue=()=>{switch(b()){case"top":X();break;case"bottom":ne();break;case"left":ee();break;default:we()}},re=()=>{try{if(!r()||!n(w))return;ue(),s(!0)}catch(U){ae({message:String(U)})}},be=()=>{s(!1)},$e=()=>{n(I)&&(T||(T=window.setTimeout(re,q.controls.hideTimeoutTooltips)),s()&&re())},J=()=>{be(),window.clearTimeout(T),T=void 0},Ne=(U,Ae,Ee)=>{let We="";switch(b()){case"top":We=`transform: translate(${U}px, ${Ae}px);`;break;case"bottom":We=`transform: translate(${U}px, ${Ae}px); top: auto; bottom: 100%;`;break;case"left":We=`transform: translate(${U}px, ${Ae}px); left: 0; right: auto;`;break;default:We=`transform: translate(${U}px, ${Ae}px);`}return We+=` max-width: ${v()===void 0?"auto":`${v()}px`};`,We+=` opacity: ${Ee?1:0}; visibility: ${Ee?"visible":"hidden"}`,We},fe=(U,Ae)=>{let Ee="";switch(b()){case"top":Ee=`transform: translate(${U}px, ${Ae}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Ee=`transform: translate(${U}px, ${Ae}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Ee=`transform: translate(${U}px, ${Ae}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Ee=`transform: translate(${U}px, ${Ae}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Ee},k=f(()=>Ne(n(E),n(P),s())),Ke=f(()=>fe(n(O),n(L)));Rt(ue),gn(()=>window.clearTimeout(T));var Te=_x(),Z=ce(Te);let ie;Z.__pointermove=$e,Z.__pointerdown=J,Z.__pointerup=function(...U){var Ae;(Ae=e.disableMouseupTooltipShow?void 0:$e)==null||Ae.apply(this,U)};var De=C(Z);si(De,()=>{var U;return(U=e.children)!=null?U:_t}),S(Z),Ze(Z,U=>N(w,U),()=>n(w));var Be=A(Z,2);{var nt=U=>{Om(U,{children:(Ae,Ee)=>{var We=hx(),it=C(We),ye=C(it,!0);S(it);var Ie=A(it,2);S(We),Ze(We,He=>N(I,He),()=>n(I)),D(()=>{qe(We,n(k)),ve(ye,d()),qe(Ie,n(Ke))}),$(Ae,We)},$$slots:{default:!0}})};R(Be,U=>{d()&&!l()&&U(nt)})}D(U=>ie=se(Z,1,"tooltip-wrapper s-1n",null,ie,U),[()=>({"full-width":p()})]),lt("pointerenter",Z,$e),lt("pointerleave",Z,J),$(t,Te),H(),o()}je(["pointermove","pointerdown","pointerup"]);var Sb=t=>{t.stopPropagation()},$x=M("<div><!></div>"),yx={hash:"s-1j",code:".btn-container.s-1j{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-1j{min-width:0;width:100%}"};function Po(t,e){B(e,!0),Q(t,yx);let[i,o]=Re(),r=()=>x(u,"$isGraphOpened$",i),a=()=>x(s,"$isMobile",i),l=ge(),d=bo(),s=l.ui.isMobile,u=d.graphIsOpened$,m=l.ui.t,p=h(e,"className",3,""),v=h(e,"disabled",3,!1),b=h(e,"hasTooltip",3,!0),y=h(e,"ref",15,void 0),g=h(e,"width",15,void 0),w=h(e,"isFullWidthTooltip",3,!0),I=h(e,"tooltipContent",3,""),T=h(e,"tooltipVisible",3,!1),O=h(e,"tooltipPlacement",3,"top"),L=h(e,"disabledTooltipContent",19,()=>m("tooltip_button_disabled")),E=h(e,"isAriaHidden",3,!1),P=h(e,"onTooltipVisibilityChange",3,lp.noop),q=h(e,"initialTranslateXPx",3,0),F=h(e,"initialTranslateYPx",19,()=>-18),z=h(e,"mouseEnter",3,lp.noop),j=h(e,"mouseLeave",3,lp.noop),ae=f(()=>v()?r()?m("tooltip_disabled_when_graph_on"):L():I()),X=K(!1);Oe(()=>{T()||N(X,!1)});var ne=$x();ne.__pointerdown=[Sb],ne.__click=[Sb];var ee=C(ne);{var we=re=>{Xa(re,{get content(){return n(ae)},get translateX(){return q()},get translateY(){return F()},get isFullWidthWrapper(){return w()},get placement(){return O()},get onVisibilityChange(){return P()},get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},get active(){return n(X)},set active(be){N(X,be,!0)},children:(be,$e)=>{var J=Le(),Ne=ce(J);si(Ne,()=>{var fe;return(fe=e.children)!=null?fe:_t}),$(be,J)},$$slots:{default:!0}})},ue=re=>{var be=Le(),$e=ce(be);si($e,()=>{var J;return(J=e.children)!=null?J:_t}),$(re,be)};R(ee,re=>{b()&&n(ae)&&!a()?re(we):re(ue,!1)})}S(ne),Ze(ne,re=>y(re),()=>y()),D(()=>{var re;se(ne,1,`btn-container ${(re=p())!=null?re:""}`,"s-1j"),Me(ne,"aria-hidden",E()||null)}),lt("mouseenter",ne,function(...re){var be;(be=z())==null||be.apply(this,re)}),lt("mouseleave",ne,function(...re){var be;(be=j())==null||be.apply(this,re)}),Ln(ne,"clientWidth",g),$(t,ne),H(),o()}je(["pointerdown","click"]);var xx=Ce('<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 mc(t,e){let i=f(()=>(e.completed,"interactive-episode-completed-icon"));Je(t,{width:"20",height:"20",fill:"none",get testId(){return n(i)},children:(o,r)=>{var a=xx(),l=ce(a),d=A(l);D(()=>{Me(l,"fill",ra),Me(l,"fill-opacity",e.completed?1:.24),Me(d,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),$(o,a)},$$slots:{default:!0}})}var wx=M("<div><!></div>"),Sx={hash:"s-16",code:".interactive-episode-icon.s-16{cursor:default;height:20px;position:absolute;transform:translateX(-50%);width:20px}.interactive-episode-icon.disabled.s-16{opacity:.4;pointer-events:none}"};function Dm(t,e){B(e,!0),Q(t,Sx);let o=ge().ui.t,r=K(0),a=f(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));Po(t,{get tooltipContent(){return n(a)},initialTranslateXPx:-10,initialTranslateYPx:-10,get disabled(){return e.disabled},get width(){return n(r)},isAriaHidden:!0,isFullWidthTooltip:!1,children:(l,d)=>{var s=wx();let u;var m=C(s);let p=f(()=>!!e.videoEpisode.completed);mc(m,{get completed(){return n(p)}}),S(s),D(v=>{u=se(s,1,"interactive-episode-icon s-16",null,u,v),qe(s,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),Ln(s,"clientWidth",v=>N(r,v)),$(l,s)},$$slots:{default:!0}}),H()}var Cx=M('<div><div class="video-episode-inner s-17"><div class="video-episode-loaded s-17"></div> <div></div></div></div>'),Tx=M('<div class="video-episodes-wrap s-17"></div>'),Ix={hash:"s-17",code:".video-episodes-wrap.s-17{height:100%;position:absolute;width:100%}.video-episode.s-17{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-17:first-child{padding-left:0}.video-episode.s-17:last-child{padding-right:0}.video-episode.s-17:not(.disabled):where(:hover,:active){transform:scaleY(1.5)}.video-episode-filled.s-17,.video-episode-inner.s-17,.video-episode-loaded.s-17{border-radius:var(--slider-radius);height:var(--slider-height);position:absolute}.video-episode-inner.s-17{background:var(--slider-bg);overflow:hidden;position:absolute;width:calc(100% - var(--slider-video-episode-gap)*2)}.video-episode.s-17:first-child .video-episode-inner:where(.s-17),.video-episode.s-17:last-child .video-episode-inner:where(.s-17){width:calc(100% - var(--slider-video-episode-gap))}.video-episode-loaded.s-17{background:var(--slider-loaded-bg);transition:transform .2s}.video-episode-filled.s-17,.video-episode-loaded.s-17{border-radius:var(--slider-radius);height:100%;left:-100%;position:absolute;width:100%}.video-episode-filled.s-17{background-color:var(--slider-filled-bg)}"};function Bm(t,e){Q(t,Ix);let i=h(e,"videoEpisodes",19,()=>[]);var o=Tx();Ti(o,21,i,r=>r.from,(r,a)=>{var l=Cx();let d;var s=C(l),u=C(s),m=A(u,2);let p;S(s),S(l),D((v,b)=>{d=se(l,1,"video-episode s-17",null,d,v),qe(l,`left: ${n(a).from}%; width: ${n(a).width}%`),qe(u,`transform: translateX(${n(a).loadedWidth/n(a).width*100}%)`),p=se(m,1,"video-episode-filled s-17",null,p,b),qe(m,`transform: translateX(${n(a).filledWidth/n(a).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),$(r,l)}),S(o),$(t,o)}function Ex(t,e,i,o,r,a,l){if(t.preventDefault(),e()&&N(i,e().getBoundingClientRect(),!0),o()||n(r)||!e())return;N(r,!0);let d=a(t.clientX,t.clientY);l()(d,t),e().setPointerCapture(t.pointerId)}function Px(t,e,i,o,r,a,l,d){if(t.preventDefault(),e())return;let s=i(t.clientX,t.clientY),u=o(t.clientX);r()(s,u,n(a).width,t),n(l)&&d()(s)}function kx(t,e,i,o,r){if(t.preventDefault(),e()||!n(i))return;N(i,!1);let a=o(t.clientX,t.clientY);r()(a,t)}function Ax(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}function Lx(t,e,i,o,r,a){let l=e(t.clientX,t.clientY);i()&&o()(l),N(r,!1),a()(l)}var Mx=M("<div></div>"),Vx=M('<div class="bars s-h"><div class="loaded s-h"></div> <div></div></div>'),Rx=M('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),Nx={hash:"s-h",code:'.interactive-icons.s-h{position:absolute;top:-28px;width:calc(100% - 20px)}.interactive-icons.mobile.s-h{top:-10px}.slider.s-h{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-h{cursor:default}.slider.s-h: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-h{background:var(--slider-bg);overflow:hidden}.bars.s-h,.loaded.s-h{border-radius:var(--slider-radius);height:100%;position:absolute;width:100%}.loaded.s-h{background:var(--slider-loaded-bg);left:-100%;transition:transform .2s;will-change:transform}.filled.s-h{background-color:var(--slider-filled-bg);border-radius:var(--slider-radius);height:100%;left:-100%;position:absolute;width:100%}.slider.square.s-h,.slider.square.s-h .filled:where(.s-h),.slider.square.s-h .loaded:where(.s-h),.slider.square.s-h>.bars:where(.s-h){border-radius:unset}.filled.active-live.s-h{background-color:var(--timeline-slider-filled-active-live-bg)}.filled.ads.s-h{background-color:var(--slider-filled-ads)}.handleWrap.s-h{left:-100%;position:absolute;width:100%}.handle.s-h{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-h{background-color:var(--timeline-slider-handle-active-live-bg)}.handle-always-visible.s-h .handle:where(.s-h),.slider-dragging.s-h .handle:where(.s-h),.slider.s-h:hover .handle:where(.s-h){opacity:1;transform:scale(1);visibility:visible}.slider-dragging.s-h .handle:where(.s-h){transform:scale(1.3)}.slider-vertical.s-h{left:-8px;position:absolute;top:-18px;transform:rotate(-90deg);transform-origin:0 0}.slider.disabled.s-h{cursor:default;opacity:.4}'};function Za(t,e){B(e,!0),Q(t,Nx);let i=h(e,"ref",15,void 0),o=h(e,"className",3,""),r=h(e,"testId",3,void 0),a=h(e,"isHidden",3,!1),l=h(e,"isVertical",3,!1),d=h(e,"isActiveLive",3,!1),s=h(e,"isMobile",3,!1),u=h(e,"squareBorders",3,!1),m=h(e,"videoEpisodes",19,()=>[]),p=h(e,"withWheelHandler",3,!1),v=h(e,"isInteractive",3,!1),b=h(e,"disabled",3,!1),y=h(e,"hideHandel",3,!1),g=h(e,"onPointerDown",3,ko.noop),w=h(e,"onHandleMove",3,ko.noop),I=h(e,"onPointerUp",3,ko.noop),T=h(e,"onPointerEnter",3,ko.noop),O=h(e,"onPointerMove",3,ko.noop),L=h(e,"onPointerLeave",3,ko.noop),E=h(e,"onMouseEnter",3,ko.noop),P=h(e,"onMouseLeave",3,ko.noop),q=h(e,"onWheelUp",3,ko.noop),F=h(e,"onWheelDown",3,ko.noop),z=h(e,"onWheelLeft",3,ko.noop),j=h(e,"onWheelRight",3,ko.noop),ae=h(e,"onDisabledClick",3,ko.noop),X=h(e,"loadedProgress",3,0),ne=h(e,"filledProgress",3,0),ee=h(e,"handleProgress",3,0),we=h(e,"ariaLabel",3,""),ue=h(e,"ariaValueMin",3,void 0),re=h(e,"ariaValueMax",3,void 0),be=h(e,"ariaValueNow",3,void 0),$e=h(e,"ariaValueText",3,""),J=h(e,"onContextMenu",3,ko.noop),Ne=h(e,"handleAlwaysVisible",3,!1),fe=Nt(),k=K(void 0),Ke=K(!1),Te=f(()=>{var he;return(he=re())!=null?he:0}),Z=f(()=>{var he;return(0,ko.isNonNullable)(m())&&((he=m()[m().length-1])==null?void 0:he.time)<n(Te)}),ie=f(()=>(0,ko.isNonNullable)(m())&&m().length&&n(Z)&&n(Te)?it(X()*100,ne()*100):[]);function De(he){if(he.preventDefault(),i()&&N(k,i().getBoundingClientRect(),!0),b())return;let Ve=Ee(he.clientX,he.clientY),at=We(he.clientX);T()(Ve,at,n(k).width)}function Be(he){he.preventDefault(),!b()&&L()()}function nt(){E()()}function U(){P()()}function Ae(he){b()||p()&&(he.preventDefault(),he.deltaY<0?q()():he.deltaY>0?F()():he.deltaX>0?j()():z()())}function Ee(he,Ve){return l()?Math.max(0,Math.min(1,(n(k).height-(Ve-n(k).top))/n(k).height)):Math.min(Math.max(he-n(k).x,0),n(k).width)/n(k).width}function We(he){return Math.min(Math.max(he-n(k).x,0),n(k).width)}function it(he,Ve){let at=fe.features.episodesClustering&&!v()?fe.episodeMinWidthPc:0,vt=[],pe=m()[0].time/n(Te)*100,ze=0,Ge=0;for(let Mt=1;Mt<m().length;Mt++)ze=m()[Mt].time/n(Te)*100,ze-pe>at&&(vt.push({from:pe,width:Math.max(0,ze-pe),loadedWidth:Math.max(0,Math.min(ze,he)-pe),filledWidth:Math.max(0,Math.min(ze,Ve)-pe),interactive:m()[Mt-1].interactive,completed:m()[Mt-1].completed}),pe=m()[Mt].time/n(Te)*100,Ge++);let St={from:pe,width:Math.max(0,100-pe),loadedWidth:Math.max(0,Math.min(he,100)-pe),filledWidth:Math.max(0,Math.min(Ve,100)-pe),interactive:m()[Ge].interactive,completed:m()[Ge].completed};100-pe<at?(Ge-=1,vt[Ge].width+=100-pe,vt[Ge].loadedWidth+=Math.max(0,Math.min(he,100)-pe),vt[Ge].filledWidth+=Math.max(0,Math.min(Ve,100)-pe)):vt[Ge]=St;let Ut=m()[0].time;if(Ut!==0){let Mt=Ut/n(Te)*100;vt.unshift({from:0,width:Mt,loadedWidth:Math.min(Mt,he),filledWidth:Math.min(Mt,Ve)})}return vt}function ye(he){return Math.max(0,Math.min(100,he*100))}let Ie=f(()=>ye(X())),He=f(()=>ye(ne()));var Bt=Rx(),xt=ce(Bt);{var Ht=he=>{var Ve=Mx();let at;Ti(Ve,21,()=>n(ie),vt=>vt.from,(vt,pe)=>{var ze=Le(),Ge=ce(ze);{var St=Ut=>{Dm(Ut,{get videoEpisode(){return n(pe)},get disabled(){return b()}})};R(Ge,Ut=>{n(pe).interactive&&Ut(St)})}$(vt,ze)}),S(Ve),D(vt=>at=se(Ve,1,"interactive-icons s-h",null,at,vt),[()=>({mobile:s(),hidden:s()&&!n(Ke)})]),$(he,Ve)};R(xt,he=>{v()&&he(Ht)})}var dt=A(xt,2);let Ct;dt.__pointerdown=[Ex,i,k,b,Ke,Ee,g],dt.__pointermove=[Px,b,Ee,We,O,k,Ke,w],dt.__pointerup=[kx,b,Ke,Ee,I],dt.__click=[Ax,b,ae,Ee],dt.__contextmenu=[Lx,Ee,b,ae,Ke,J];var ti=C(dt);{var Lt=he=>{Bm(he,{get videoEpisodes(){return n(ie)},get disabled(){return b()},get isMobile(){return s()}})},Ft=he=>{var Ve=Vx(),at=C(Ve),vt=A(at,2);let pe;S(Ve),D(ze=>{Me(at,"data-value",n(Ie)),qe(at,`transform: translateX(${n(Ie)}%);`),pe=se(vt,1,"filled s-h",null,pe,ze),Me(vt,"data-value",n(He)),qe(vt,`transform: translateX(${n(He)}%);`)},[()=>({"active-live":d()})]),$(he,Ve)};R(ti,he=>{n(ie).length?he(Lt):he(Ft,!1)})}var Qt=A(ti,2);let Y;var Se=C(Qt);let le;S(Qt),S(dt),Ze(dt,he=>i(he),()=>i()),D((he,Ve,at,vt)=>{var pe,ze;Ct=se(dt,1,`slider ${(pe=o())!=null?pe:""}`,"s-h",Ct,he),Me(dt,"aria-label",we()),Me(dt,"aria-valuemin",ue()),Me(dt,"aria-valuemax",re()),Me(dt,"aria-valuenow",be()),Me(dt,"aria-valuetext",$e()),Me(dt,"data-testid",(ze=r())!=null?ze:null),Y=se(Qt,1,"handleWrap s-h",null,Y,Ve),qe(Qt,at),le=se(Se,1,"handle s-h",null,le,vt)},[()=>({disabled:b(),"slider-dragging":n(Ke),hidden:a(),"handle-always-visible":Ne(),"slider-vertical":l(),"no-handle":y(),square:u()}),()=>({hidden:y()}),()=>`transform: translateX(${ye(ee())}%);`,()=>({"active-live":d()})]),lt("pointerenter",dt,De),lt("pointerleave",dt,Be),lt("mouseenter",dt,nt),lt("mouseleave",dt,U),lt("wheel",dt,Ae),$(t,Bt),H()}je(["pointerdown","pointermove","pointerup","click","contextmenu"]);var no=(t,e)=>Xd[t]>=Xd[e];var Ds=(t,e)=>Xd[t]<=Xd[e],Cb=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var Dx=M("<div><!></div>"),Bx=M("<div><!> <!></div>"),Hx={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 Hm(t,e){var We,it;B(e,!0),Q(t,Hx);let[i,o]=Re(),r=()=>x(O,"$isAudioAvailable$",i),a=()=>x(v,"$muted$",i),l=()=>x(p,"$volume$",i),d=()=>x(w,"$currentGridType$",i),s=()=>x(De,"$controlsVisible",i),u=ge(),m=Nt(),p=u.state.volume$,v=u.state.muted$,{setVolume:b,startVolumeChanging:y,stopVolumeChanging:g}=u.actions.internal,w=u.ui.currentGridType$,I=(We=u.callbacks)==null?void 0:We.onAudioDoesNotExistHint,T=(it=u.callbacks)==null?void 0:it.onAudioDisabledHint,O=u.state.isAudioAvailable$,L=u.state.isAudioDisabled,E=u.ui.t,P=K(!1),q,F=f(()=>e.isAds||r()),z=f(()=>!n(F)||a()||l()===0),j=f(()=>Ds(d(),"l")),ae=f(()=>n(j)?"":n(z)?!r()||L?E("tooltip_sound_unavailable"):E("tooltip_volume"):E("tooltip_volume_muted")),X=f(()=>n(z)?E("tooltip_volume"):E("tooltip_volume_muted")),ne=f(()=>n(z)?0:l()),ee=!1,we=f(()=>e.isAds?!1:L?!T:r()?!1:!I);function ue(ye){y(),b(ye)}function re(){np(u,l(),m.controls.volumeStepWheel)}function be(){rp(u,l(),m.controls.volumeStepWheel)}function $e(ye){b(ye)}function J(ye){b(ye),g()}function Ne(){ee=!0}function fe(){ee=!1,Te()}function k(){clearTimeout(q),N(P,!0)}function Ke(){Te()}function Te(){q=window.setTimeout(()=>{ee||N(P,!1)},m.controls.volumeBarTimeout)}function Z(ye){ye.preventDefault(),ye.deltaY<0?re():ye.deltaY>0&&be()}let ie=K(!1),De=u.ui.controlsVisible;Oe(()=>{s()||N(ie,!1)});var Be=Bx();let nt;var U=C(Be);Xa(U,{get content(){return n(ae)},translateY:-18,get active(){return n(ie)},set active(ye){N(ie,ye,!0)},children:(ye,Ie)=>{let He=f(()=>n(j)?"btn-volume-vertical":"btn-volume-horizontal");qt(ye,{className:"btn-full-opacity",get disabled(){return n(we)},get testId(){return n(He)},get ariaLabel(){return n(X)},get click(){return e.click},get ariaKeyShortCut(){return bs.KeyM},role:"button",children:(Bt,xt)=>{fa(Bt,{get size(){return"24"},get volume(){return l()},get muted(){return n(z)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var Ae=A(U,2);{var Ee=ye=>{var Ie=Dx();let He;var Bt=C(Ie);let xt=f(()=>n(j)?"volumeBar-slider-vertical":""),Ht=f(()=>n(j)&&!n(P)),dt=f(()=>n(j)?Ne:vc.noop),Ct=f(()=>n(j)?fe:vc.noop),ti=f(()=>Math.round(n(ne)*100)),Lt=f(()=>`${Math.round(n(ne)*100)}%`),Ft=f(()=>n(j)?"volume-slider-vertical":"volume-slider");Za(Bt,{get className(){return n(xt)},get isHidden(){return n(Ht)},get isVertical(){return n(j)},withWheelHandler:!0,onWheelUp:re,onWheelDown:be,onPointerDown:ue,onHandleMove:$e,onPointerUp:J,get onPointerEnter(){return n(dt)},get onPointerLeave(){return n(Ct)},ariaLabel:"Ползунок громкости",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return n(ti)},get ariaValueText(){return n(Lt)},get filledProgress(){return n(ne)},get handleProgress(){return n(ne)},get testId(){return n(Ft)}}),S(Ie),D(Qt=>He=se(Ie,1,"volumeBar s-28",null,He,Qt),[()=>({"volumeBar-vertical":n(j)})]),$(ye,Ie)};R(Ae,ye=>{n(F)&&ye(Ee)})}S(Be),D(ye=>nt=se(Be,1,"volumeBar-container s-28",null,nt,ye),[()=>({vertical:n(j)})]),lt("mouseenter",Be,function(...ye){var Ie;(Ie=n(j)?k:vc.noop)==null||Ie.apply(this,ye)}),lt("mouseleave",Be,function(...ye){var Ie;(Ie=n(j)?Ke:vc.noop)==null||Ie.apply(this,ye)}),lt("wheel",Be,Z),$(t,Be),H(),o()}var Tb=require("@vkontakte/videoplayer-shared/es2015");var Fx=Ce('<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>'),Ux=Ce('<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 Fm(t,e){let i=h(e,"isFullscreen",8,!1),o=In(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");Je(t,{get testId(){return n(o)},children:(r,a)=>{var l=Le(),d=ce(l);{var s=m=>{var p=Fx();$(m,p)},u=m=>{var p=Ux();$(m,p)};R(d,m=>{i()?m(s):m(u,!1)})}$(r,l)},$$slots:{default:!0}})}function gc(t,e){B(e,!0);let i=h(e,"isFullscreen",3,!1),o=h(e,"click",3,Tb.noop),r=ge(),a=r.ui.isFullscreenOpenedByKeyboard,l=r.ui.t,d=f(()=>i()?l("tooltip_fullscreen_on"):l("tooltip_fullscreen_off"));qt(t,{testId:"fullscreen-btn",get ariaLabel(){return n(d)},click:u=>{let m=da(u);a.set(m),o()()},get ariaKeyShortCut(){return bs.KeyF},role:"button",children:(u,m)=>{Fm(u,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),H()}var zx=Ce('<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 Um(t,e){let i=Mn(e,["$$slots","$$events","$$legacy","children"]);var o=zx();oo(o,()=>Pe({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=C(o);si(r,()=>{var a;return(a=e.children)!=null?a:_t}),pi(),S(o),$(t,o)}var Wx=Ce('<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 zm(t,e){let i=Mn(e,["$$slots","$$events","$$legacy","children"]);var o=Wx();oo(o,()=>Pe({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=C(o);si(r,()=>{var a;return(a=e.children)!=null?a:_t}),pi(6),S(o),$(t,o)}var Kx={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 Wm(t,e){B(e,!0),Q(t,Kx);let i=h(e,"short",3,!1),o=h(e,"isCyrillic",3,!0),r=h(e,"logo",19,()=>"vk_video"),a="vk-video-logo-icon--short",l=24,d=f(()=>!o()&&!i()?91:i()?l:95),s=f(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?a:"vk-video-logo-icon"),u=f(()=>`0 0 ${n(d)} 24`);zm(t,{get width(){return n(d)},height:"24",get viewBox(){return n(u)},get"data-testid"(){return n(s)},get"data-logo"(){return r()}}),H()}function hc(t,e){B(e,!0);let[i,o]=Re(),r=()=>x(b,"$isMobile",i),a=()=>x(v,"$currentGridType$",i),l=()=>x(g,"$isCyrillicRelatedInterface$",i),d=h(e,"ref",15,void 0),s=h(e,"logoClickable",3,!1),u=h(e,"targetUrl",3,""),m=Nt(),p=ge(),v=p.ui.currentGridType$,b=p.ui.isMobile,y=p.ui.t,g=p.isCyrillicRelatedInterface$,w=f(()=>m.logoType!=="vk"),I=f(()=>n(w)?y("tooltip_vk_video_logo"):y("tooltip_vk_logo")),T=f(()=>(r()&&Ds(a(),"m")||Ds(a(),"l"))&&n(w)),O=()=>{var P,q;e.click(),(P=p.callbacks)!=null&&P.onLogoClicked?(q=p.callbacks)==null||q.onLogoClicked():u()&&window.open(u(),"_blank")},L=f(()=>!s()),E=f(()=>n(w)?"btn-vk-video-logo":"btn-vk-logo");qt(t,{className:"btn-full-opacity",get disabled(){return n(L)},click:O,get testId(){return n(E)},get ariaLabel(){return n(I)},get ref(){return d()},set ref(P){d(P)},children:(P,q)=>{var F=Le(),z=ce(F);{var j=X=>{Wm(X,{get logo(){return m.logoType},get short(){return n(T)},get isCyrillic(){return l()}})},ae=X=>{Um(X,{})};R(z,X=>{n(w)?X(j):X(ae,!1)})}$(P,F)},$$slots:{default:!0}}),H(),o()}var Eb=require("@vkontakte/videoplayer-core/es2015");var Km=require("@vkontakte/videoplayer-core/es2015");var qx=Ce('<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-19"></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-19"></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-19"></path>',1),Qx=Ce('<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),Gx={hash:"s-19",code:".animated.s-19{animation-duration:1s;animation-iteration-count:infinite}.wave1.animated.s-19{animation-name:s-19-wave1}.wave2.animated.s-19{animation-name:s-19-wave2}.wave3.animated.s-19{animation-name:s-19-wave3}@keyframes s-19-wave1{0%{opacity:.3}33%{opacity:1}66%{opacity:1}to{opacity:1}}@keyframes s-19-wave2{0%{opacity:.3}33%{opacity:.3}66%{opacity:1}to{opacity:1}}@keyframes s-19-wave3{0%{opacity:.3}33%{opacity:.3}66%{opacity:.3}to{opacity:1}}"};function _c(t,e){B(e,!0),Q(t,Gx);let i=h(e,"isMobile",3,!1),o=f(()=>e.iconState===Km.ChromecastState.CONNECTED),r=f(()=>e.iconState===Km.ChromecastState.CONNECTING),a=f(()=>n(o)?"#2688EB":ra),l=f(()=>e.size?hn(e.size):void 0);var d=Le(),s=ce(d);{var u=p=>{Je(p,{get fill(){return n(a)},get style(){return n(l)},testId:"chromecast-mobile-icon",children:(v,b)=>{var y=qx();pi(2),$(v,y)},$$slots:{default:!0}})},m=p=>{Je(p,{get style(){return n(l)},testId:"chromecast-icon",children:(v,b)=>{var y=Qx(),g=ce(y);let w;var I=A(g);let T;var O=A(I);let L;var E=A(O);let P;var q=A(E);let F;D((z,j,ae,X,ne)=>{w=se(g,0,"wave2 s-19",null,w,z),T=se(I,0,"wave3 s-19",null,T,j),L=se(O,0,"wave1 s-19",null,L,ae),P=se(E,0,"s-19",null,P,X),F=se(q,0,"s-19",null,F,ne)},[()=>({animated:n(r)}),()=>({animated:n(r)}),()=>({animated:n(r)}),()=>({hidden:n(o)}),()=>({hidden:!n(o)})]),$(v,y)},$$slots:{default:!0}})};R(s,p=>{i()?p(u):p(m,!1)})}$(t,d),H()}var Pb=require("@vkontakte/videoplayer-shared/es2015");function bc(t,e){B(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"isMobile",3,!1),r=h(e,"click",3,Pb.noop),l=ge().ui.t,d=f(()=>e.state===Eb.ChromecastState.CONNECTED?l("tooltip_chromecast_on"):l("tooltip_chromecast_off"));qt(t,{get ariaLabel(){return n(d)},get click(){return r()},testId:"btn-chromecast",get ref(){return i()},set ref(s){i(s)},children:(s,u)=>{_c(s,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),H()}var kb=require("@vkontakte/videoplayer-shared/es2015");var Yx=Ce('<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 qm(t){Je(t,{testId:"episodes-icon",children:(e,i)=>{var o=Yx();pi(2),$(e,o)},$$slots:{default:!0}})}var dp=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var jx=M('<span class="text mobile s-23"> </span> <div class="chevron-episodes s-23" data-testid="btn-episodes_icon"><!></div>',1),Xx=M('<span class="text s-23"> </span>'),Zx=M('<span class="text count s-23"> </span>'),Jx=M('<span class="icon s-23"><!></span> <!>',1),e2={hash:"s-23",code:".icon.s-23{flex-shrink:0}.text.s-23{overflow:hidden;padding:0 8px;text-overflow:ellipsis;white-space:nowrap}.text.count.s-23{overflow:visible}.text.mobile.s-23{padding:0 3px 0 4px}.chevron-episodes.s-23{margin-bottom:-6px;opacity:.7;transform:scale(.8)}"};function $c(t,e){var ee,we,ue;B(e,!0),Q(t,e2);let[i,o]=Re(),r=()=>x(y,"$currentGridType$",i),a=()=>x(g,"$openedByKeyboard$",i),l=()=>x(w,"$panelOpened$",i),d=()=>x(I,"$isMobile",i),s=h(e,"position",3,0),u=h(e,"duration",3,0),m=h(e,"timeCodes",19,()=>[]),p=ge(),v=(we=(ee=p.callbacks)==null?void 0:ee.onEpisodeChanged)!=null?we:kb.noop,b=!!((ue=p.callbacks)!=null&&ue.onEpisodeClicked),y=p.ui.currentGridType$,g=p.ui.episodes.openedByKeyboard$,w=p.ui.episodes.panelOpened$,I=p.ui.isMobile,T=p.ui.t,O=K(void 0),L=re=>{var $e,J,Ne;if(!!(($e=p.callbacks)!=null&&$e.onEpisodeClicked)){let fe=da(re);g.set(fe),w.set(!0),(Ne=(J=p.callbacks)==null?void 0:J.onEpisodeClicked)==null||Ne.call(J,fe)}},E=K(null),P=f(()=>s()/u());Oe(()=>{var be;let re=dp(n(P),u(),m());re?((be=n(E))==null?void 0:be.time)!==re.time&&(v(re),N(E,re,!0)):N(E,null)});let q=f(()=>{var re;return((re=n(E))==null?void 0:re.text)||""}),F=f(()=>no(r(),"xl")?"FULL":no(r(),"m")?"COUNT":"SHORT"),z=f(()=>`${T("tooltip_episodes")}: ${n(q)}`),j=(re,be,$e)=>ht(null,null,function*(){yield go(),(re==null?void 0:re.getAttribute("aria-expanded"))==="false"&&be&&!$e&&Pt(()=>{g.set(!1),re.focus()})});Oe(()=>{j(n(O),a(),l())});var ae=Le(),X=ce(ae);{var ne=re=>{let be=f(()=>d()?"px-0":""),$e=f(()=>!b);qt(re,{get className(){var J;return`w-max btn-full-opacity btn-jc-l ${(J=n(be))!=null?J:""}`},testId:"btn-episodes",click:L,get disabled(){return n($e)},get ariaExpanded(){return l()},get ariaLabel(){return n(z)},get ref(){return n(O)},set ref(J){N(O,J,!0)},children:(J,Ne)=>{var fe=Le(),k=ce(fe);{var Ke=Z=>{var ie=jx(),De=ce(ie),Be=C(De,!0);S(De);var nt=A(De,2),U=C(nt);Rr(U,{direction:"right"}),S(nt),D(()=>ve(Be,n(q))),$(Z,ie)},Te=Z=>{var ie=Jx(),De=ce(ie),Be=C(De);qm(Be,{}),S(De);var nt=A(De,2);{var U=Ee=>{var We=Xx(),it=C(We,!0);S(We),D(()=>ve(it,n(q))),$(Ee,We)},Ae=(Ee,We)=>{{var it=ye=>{var Ie=Zx(),He=C(Ie,!0);S(Ie),D(()=>ve(He,m().length)),$(ye,Ie)};R(Ee,ye=>{n(F)==="COUNT"&&ye(it)},We)}};R(nt,Ee=>{n(F)==="FULL"?Ee(U):Ee(Ae,!1)})}$(Z,ie)};R(k,Z=>{d()?Z(Ke):Z(Te,!1)})}$(J,fe)},$$slots:{default:!0}})};R(X,re=>{n(E)&&re(ne)})}$(t,ae),H(),o()}var mv=require("@vkontakte/videoplayer-shared/es2015");var bi=require("@vkontakte/videoplayer-core/es2015"),st=require("@vkontakte/videoplayer-shared/es2015"),ys=require("@vkontakte/videoplayer-statistics/es2015");var Qe=require("@vkontakte/videoplayer-shared/es2015"),ro=require("@vkontakte/videoplayer-shared/es2015");var t2="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",cp=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 ro.Subject,loadStarted$:new ro.Subject,loadEnded$:new ro.Subject,loadError$:new ro.Subject,ready$:new ro.Subject,slotRequested$:new ro.Subject,started$:new ro.Subject,timeRemained$:new ro.Subject,paused$:new ro.Subject,resumed$:new ro.Subject,ended$:new ro.Subject,empty$:new ro.Subject,skipped$:new ro.Subject,clicked$:new ro.Subject,closed$:new ro.Subject,error$:new ro.Subject};this.loadAdman=e=>(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[(0,Qe.now)()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((i,o)=>{let r;this.events.loadStarted$.next();let a=()=>{clearTimeout(r),delete window.admanAsyncInit,window.AdmanHTML?(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[(0,Qe.now)()]}),i(),this.events.loadEnded$.next()):(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[(0,Qe.now)()]}),o())};(0,ro.addScript)(t2,e,this.loadTimeout).then(()=>{Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[(0,Qe.now)()]}),window.AdmanHTML?(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[(0,Qe.now)()]}),i(),this.events.loadEnded$.next()):(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[(0,Qe.now)()]}),window.admanAsyncInit=a,r=window.setTimeout(a,this.initTimeout))}).catch(l=>{Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(l)],numbers:[(0,Qe.now)()]}),o(),clearTimeout(r)})});this.loadAdmanNPM=e=>new Promise((i,o)=>{let r;this.events.loadStarted$.next();let a=()=>{clearTimeout(r),delete window.admanAsyncInit,window.AdmanHTML?(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[(0,Qe.now)()]}),i(),this.events.loadEnded$.next()):(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[(0,Qe.now)()]}),o())},l=()=>{d=!0,o()},d=!1,s=window.setTimeout(()=>{Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[(0,Qe.now)()]}),l()},this.loadTimeout);e.addEventListener("abort",l),e.aborted&&(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[(0,Qe.now)()]}),l()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[(0,Qe.now)()]}),!d&&(window.AdmanHTML?(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[(0,Qe.now)()]}),i(),this.events.loadEnded$.next()):(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[(0,Qe.now)()]}),window.admanAsyncInit=a,r=window.setTimeout(a,this.initTimeout)))},l).finally(()=>{clearTimeout(r),clearTimeout(s),e.removeEventListener("abort",l)})});this.onAdsReady=()=>{Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[(0,Qe.now)()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{var o;Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[(0,Qe.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?_e(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;Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Qe.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;Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Qe.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(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[(0,Qe.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;Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Qe.now)()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Qe.now)()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Qe.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;Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Qe.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")=>{Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[(0,Qe.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"),Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[(0,Qe.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")}initAdman(e){return ht(this,null,function*(){var O,L;if(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[(0,Qe.now)(),e.slotId]}),this.adman)return;this.events.init$.next(e.slotId),this.startWatchDog();let{width:i,height:o,isAutoplay:r,adsContainer:a,adsVideoElement:l,slotId:d,params:s={},paramsOverride:u={},duration:m,externalApi:p}=e;this.externalApi=p;let v,b=this.playerState&&_e(this.playerState.vsid);b&&(this.isVsidOriginal?v=b:v=parseInt(b,36));let{isEmbed:y,immediateOrigin:g}=(0,Qe.detectEmbed)(),w=(O=y?g:window.location.href)!=null?O:window.location.href,I=Pe(Yt(Pe(Yt(Pe({},s),{dl:encodeURIComponent(w),autoplay:r?1:0,player_width:i,player_height:o}),v?{request_id:v}:{}),{duration:m}),u);I=Object.fromEntries(Object.entries(I).filter(([E,P])=>(0,Qe.isNonNullable)(P)));let T={slot:d,wrapper:a,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),(L=this.externalApi)!=null&&L.videoGetAds){let P=yield this.safeExternalCall(this.externalApi.videoGetAds,I);P&&(delete T.slot,delete T.params,Object.assign(T,{json:P}))}E.init(T),this.adman=E,this.videoElement=l,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(T)}`})}catch(E){Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(E)],numbers:[(0,Qe.now)()]}),this.onAdError("could not init adman")}})}switchToVideo(e=!1){var o,r,a;if(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[(0,Qe.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)}(a=(r=this.actions).switchFromAdsToVideo)==null||a.call(r,!i)}}setPostrollPassed(e){var i;(i=this.adsState)==null||i.postrollPassed.set(e),this.log({message:"postroll passed"})}togglePlay(){var e;if(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Qe.now)()]}),this.adsState){this.log({message:"toggle play"});let i=_e(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(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[(0,Qe.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(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Qe.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(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Qe.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(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Qe.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(Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Qe.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,a,l,d,s,u,m,p,v;Qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[(0,Qe.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),(a=this.adman)==null||a.adMidrollPoint(void 0),(l=this.adman)==null||l.onClosed(void 0),(d=this.adman)==null||d.onSkipped(void 0),(s=this.adman)==null||s.onClicked(void 0),(u=this.adman)==null||u.onTimeRemained(void 0),(m=this.adman)==null||m.onCompleted(void 0),(p=this.adman)==null||p.onError(void 0),(v=this.adman)==null||v.destroy(),this.videoElement&&(0,ro.clearVideoElement)(this.videoElement),this.isDestroyed=!0}safeExternalCall(e,...i){return ht(this,null,function*(){var o;try{return yield e(...i)}catch(r){return this.onAdError((o=r==null?void 0:r.message)!=null?o:"External call failed"),null}})}};var Ab=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 Qm=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 a of r){let l={startTime:0,endTime:0,texts:[],lang:i},d=a.split(this.oneLineRegExp);for(let s of d)if(!l.startTime&&!l.endTime){let u=new up,{startTime:m,endTime:p}=u.parse(s);l.startTime=m,l.endTime=p}else if(s.trim()!==""){let u=new Gm,{texts:m}=u.parse(s);l.texts=[...l.texts,...m]}(l.startTime||l.endTime)&&l.texts.length>0&&o.push(l)}return o}},up=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 a=Number(e)*60*60,l=Number(i)*60,d=Number(o),s=+`0.${r}`;return a+l+d+s}},Gm=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,s=[];for(;d<l.length;){let u=["<",">"].reduce((m,p)=>{let v=l.indexOf(p,d);return m===-1||m>v?v:m},-1);if(u===-1){s.push(l.substring(d));break}s.push(l.substring(d,u)),d=u+1}return s}}),a=new up;for(let l of r)a.isTime(l)?i.texts.push({type:"timestamp",value:a.parseTime(l)}):i.texts.push({type:"text",value:l});return i}},Lb=Qm;var fp=require("@vkontakte/videoplayer-shared/es2015"),Ja,Ri,Ym=0,jm=!1,Mb="",Vb=(t,e=0,i=0)=>t<e&&t<i,pp=(t,e=0,i=0)=>t>=e&&t<=i,i2=(t,e=0,i=0)=>t>e&&t>i,Rb=(t,e,i,o=!1)=>{var d;let r=(d=i.find(({id:s})=>s===e.value))==null?void 0:d.subtitles;if(o)return r==null?void 0:r.find(({startTime:u,endTime:m})=>pp(t,u,m));let a=t>=Ym,l=t<Ym;if(Ym=t,l&&(jm=!1),(0,fp.isNonNullable)(Ja)&&pp(t,Ja.startTime,Ja.endTime)&&Mb===e.value)return Ja;if(!(0,fp.isNonNullable)(Ri)&&(r!=null&&r.length)&&!jm){Ri=r.find(({startTime:u,endTime:m})=>pp(t,u,m)||a&&Vb(t,u,m)),Ja=void 0,!(0,fp.isNonNullable)(Ri)&&r[r.length-1].endTime<t&&(jm=!0);return}else{if(pp(t,Ri==null?void 0:Ri.startTime,Ri==null?void 0:Ri.endTime))return Ja=Ri,Ri=void 0,Mb=e.value,Ja;(a&&i2(t,Ri==null?void 0:Ri.startTime,Ri==null?void 0:Ri.endTime)||l&&Vb(t,Ri==null?void 0:Ri.startTime,Ri==null?void 0:Ri.endTime))&&(Ri=void 0)}};var mp={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"},o2={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"},yc=t=>{var e,i;return(i=(e=mp[t])!=null?e:mp[o2[t]])!=null?i:void 0};var Nb=require("@vkontakte/videoplayer-shared/es2015"),ZB=require("@vkontakte/videoplayer-statistics/es2015"),vp=class{constructor(e,i,o,r=new Nb.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 xc=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(xc||{});var $s=t=>t!=null?t:0,Bs=(t,e)=>{var r,a;let i=(r=t==null?void 0:t.getBoundingClientRect)==null?void 0:r.call(t),o=(a=e==null?void 0:e.getBoundingClientRect)==null?void 0:a.call(e);return{top:Math.round($s(i==null?void 0:i.top)-$s(o==null?void 0:o.top)),left:Math.round($s(i==null?void 0:i.left)-$s(o==null?void 0:o.left)),bottom:Math.round($s(i==null?void 0:i.bottom)-$s(o==null?void 0:o.top)),right:Math.round($s(i==null?void 0:i.right)-$s(o==null?void 0:o.left))}},od=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:$s(e==null?void 0:e.width),height:$s(e==null?void 0:e.height)}};var Nn="off";var nd=t=>!!(Math.round(Math.abs(t)/90)%2);var Ob=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:r,statAuthToken:a,isAudioDisabled:l,canDownload:d,callbacks:s,webApi:u,videoEpisodes:m,previewThumbsData:p,uiConfig:v,coreConfig:b,player:y,disabledControls:g,isInteractive:w,interactiveRanges$:I,isInteractiveTime$:T,replayInteractive:O,stopPlayer:L,hasInteractiveBranches:E,playPrevChapterDisabledTooltip:P,additionalButtons:q,additionalSettingsMenuItems:F,additionalContextMenuItems:z,playPrevVideo:j,playNextVideo:ae,onVideoChanged:X,looped:ne=!1,statistics:ee,saveRate:we,internalsExposure:ue,playerView:re,playerId:be})=>{var wg,Sg,Cg;let $e=Yt(Pe({},b),{configName:[...(wg=b.configName)!=null?wg:[],"ui"],isAudioDisabled:l,live:Yt(Pe({},(Sg=b.live)!=null?Sg:{}),{isLiveCatchUpMode:!!r})}),J=v,Ne=st.TracerFactory.createRootTracer(J.features.tracer),fe=Ne.createComponentTracer("Store"),k=y||new bi.Player($e,Ne,{playerId:be,onDevNullLog:s==null?void 0:s.onDevNullLog});ue==null||ue.expose({corePlayer:k});let Ke=new st.Logger,Te=new cp(Ke,{loadTimeout:J.ads.loadTimeout,initTimeout:J.ads.initTimeout,runtimeTimeout:J.ads.runtimeTimeout,useAdmanFromNPM:J.ads.useAdmanFromNPM,volumeMultiplier:J.ads.volumeMultiplier,isVsidOriginal:J.ads.isVsidOriginal}),Z=za.getInstance(),ie=u==null?void 0:u.pictureInPictureApi,De=u==null?void 0:u.annotationsApi,Be=u==null?void 0:u.slotsApi,nt=u==null?void 0:u.focusManager,U=Ke.createComponentLog("Store"),Ae,Ee,We={},it=new Hu,ye=new st.Subscription,Ie="",He=de(!1),Bt=ee&&ee.oneStat?ai(ee.oneStat.vsid$):Vr(void 0),xt=de(sa()),Ht=de(!1),dt=()=>ob(document,bi.clientChecker.device.isIOS),Ct=(Cg=ie==null?void 0:ie.info.isActive$)!=null?Cg:new st.ValueSubject(!1),ti=de(0),Lt=de(!1),Ft=de(!1),Qt=de([]),Y=(0,st.merge)(k.events.fatalError$,k.events.managedError$).subscribe(c=>Qt.update(_=>[..._,c])),Se=Vr(!1,c=>{let _=k.events.fatalError$.subscribe(()=>c(!0));return()=>_.unsubscribe()}),le=c=>ht(null,null,function*(){var oe;let _=Object.values(st.InterfaceLanguage).includes(c);if(J.downloadVKLanguages&&(_&&J.updateBuiltinLanguages||!am(c))){let xe;try{xe=yield(0,st.loadVKLangPack)(c,m_,v_)}catch(Xe){(oe=ee==null?void 0:ee.oneStat)==null||oe.logError({errorType:"VKLangPack",fatal:!1}),Z==null||Z.report(Xe,{errorType:"VKLangPack",fatal:!1})}xe&&(sm({language:c,pack:xe,fallback:J.defaultLanguage}),he.set(c),Ve.update(Xe=>Xe+1))}am(c)&&he.set(c)}),he=de(t),Ve=de(0),at=de(e);le(t);let vt=(c,_)=>{let V=_e(he);return lm(V,c,_,J.defaultLanguage)},pe=de("thumb");pe.subscribe(c=>{c==="ads"&&k.info.playbackState$.getValue()&&St()});let ze=(()=>{let c=hi([Se,pe],([_,V])=>_?"crashed":V);return Yt(Pe({},c),{is:_=>_e(c)===_})})(),Ge=de(),St=()=>{Ge.set({muted:k.info.muted$.getValue()})},Ut=(()=>{let c=de(new Set(g));return Yt(Pe({},c),{add:_=>{c.update(V=>new Set([...V].concat(_)))},remove:_=>{c.update(V=>{let oe=[...V];return new Set(Array.isArray(_)?oe.filter(xe=>!_.includes(xe)):oe.filter(xe=>xe!==_))})},includes:_=>{let V=_e(c);return Array.isArray(_)?_.every(oe=>V.has(oe)):V.has(_)}})})(),Mt=de({width:0,height:0}),ii=null,Si=k.info.isBuffering$,eo=Vr(Si.getValue(),c=>{let _=Si.subscribe(V=>{V&&ii===null?ii=window.setTimeout(()=>{c(Si.getValue()),ii=null},J.loaderDelay):c(V)});return()=>{_.unsubscribe(),ii&&clearTimeout(ii)}});fe.log("create store"),U({message:"create store"});let Ot=c=>{let _=c.container,V=()=>{ei=new MutationObserver(xe=>{let{removedNodes:Xe}=xe[0];Xe.length&&_.append(k.experimental.element$.getValue())}),ei.observe(_,{childList:!0})},oe=k.experimental.element$.getValue();if(oe)_.append(oe),V();else{let xe=k.experimental.element$.pipe((0,st.filter)(Xe=>!!Xe),(0,st.once)()).subscribe(Xe=>{_.append(Xe),V()});ye.add(xe)}},mi=c=>{U({message:`init video, config: ${JSON.stringify(c)}`}),w?Ot(c):(st.devNull.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[(0,st.now)()]}),k.initVideo(c)),fe.log("init video",{isInteractive:w}),c.subtitles&&k.setExternalTextTracks(c.subtitles),Ae=c,Ie=c.subtitlesForcedLanguage||""},xi=new st.Subject,bt=c=>xi.next(c),Xt=new st.Subject,Ii=new st.Subject,zi=new st.Subject,ei=null,kt={actionRewind$:Xt,actionSeek$:Ii,inPiP$:Ct,inFullscreen$:new st.Observable(c=>xt.subscribe(_=>c.next(_))),actionSetSubtitle$:zi,nextMovie$:xi},Ye=new st.Subject,vi=new st.Subject,$o={actionSeek$:Ii,actionSubtitlesSwitched$:Ye,actionQuality$:vi,playerSize$:new st.Observable(c=>Mt.subscribe(_=>c.next(_))),inPiP$:Ct,inFullscreen$:new st.Observable(c=>xt.subscribe(_=>c.next(_))),isLoaderVisible$:new st.Observable(c=>eo.subscribe(_=>c.next(_)))};if(ee){let{oneStat:c,thinOneStat:_,mediascopePixel:V,statSubscription:oe}=ee;c&&(w||oe.add(c.attachTo(k)),oe.add(c.attachToUi(kt)),oe.add(c.attachToAds(Te.events)),c.authorize(a).catch(xe=>{U({message:`onestat auth error ${String(xe)}`})}),V&&V.attachTo(k)),_&&(oe.add(_.attachTo(k,Te.events)),oe.add(_.attachToUi($o)),oe.add(_.attachToAds(Te.events)),_.updateContext({isMobile:_e(He)}),_.authorize(a))}if(Z){let c=new st.Subscription,_=(V,oe)=>c.add(V.subscribe(oe));if(_(k.events.managedError$,V=>{Z.logIError(V)}),_(k.events.fatalError$,V=>{Z.logIError(V,!0)}),ee){let{oneStat:V}=ee;V&&_(V.experimental.error$,oe=>{Z.logIError(oe)})}Z.sentrySubscription.add(c)}let Ao=()=>{if(bi.clientChecker.device.isIOS&&Ee)try{nb(Ee)}catch(c){U({message:`exitIosSafariFullscreen failed: ${c}`})}};ye.add(k.experimental.element$.subscribe(c=>{c&&(Ee=c,c.classList.add("player-media"),Ka(ie)&&ie.updateVideoElement(),w&&c.setAttribute("pip","false"),(re==="preview"||!J.features.pip&&!J.features.dpip)&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(k.events.ended$.subscribe(()=>{var c;Ao(),(c=s==null?void 0:s.onEnded)==null||c.call(s)})).add(k.events.looped$.subscribe(()=>{var c;(c=s==null?void 0:s.onLooped)==null||c.call(s)})).add(k.events.started$.subscribe(()=>ht(null,null,function*(){var _,V;Ka(ie)&&(yield ie==null?void 0:ie.revealPictureInPicture());let c=k.info.muted$.getValue();(_=s==null?void 0:s.onStarted)==null||_.call(s),(V=We.onStarted)==null||V.call(We,c)}))).add(k.events.willSeek$.subscribe(({from:c,to:_})=>{var V;(V=s==null?void 0:s.onSeek)==null||V.call(s,c,_)})).add(k.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=s==null?void 0:s.onAutoplaySoundProhibited)==null||c.call(s)})).add(k.info.position$.subscribe(c=>{var V;let _=k.info.duration$.getValue();isFinite(_)&&_>0&&((V=s==null?void 0:s.onTimeupdate)==null||V.call(s,_,c),Te.setPosition(c,_))})).add(k.events.fatalError$.subscribe(c=>{var _;(_=s==null?void 0:s.onCrashed)==null||_.call(s,c?`${c.id}: ${c.message}`:void 0)})).add(k.events.fetcherRecoverableError$.subscribe(c=>{var _;(_=s==null?void 0:s.onRecoverableError)==null||_.call(s,c?`${c.id}: ${c.message}`:void 0)})).add(k.events.loadedMetadata$.subscribe(()=>{Lt.set(!0)})).add(k.info.is3DVideo$.subscribe(c=>{Ft.set(c)})).add(k.info.isEnded$.subscribe(c=>{w&&(c?(T!=null&&T.getValue()&&Ut.add(jd),Ut.add("PLAY_BUTTON")):Ut.remove("PLAY_BUTTON"))})).add(k.info.liveTime$.subscribe(c=>{var _;(_=s==null?void 0:s.onLiveTime)==null||_.call(s,c)})).add(k.info.isStalled$.subscribe(c=>{var _;(_=s==null?void 0:s.onStalledChanged)==null||_.call(s,c)})).add(k.info.isLiveEnded$.subscribe(c=>{var _;return c&&((_=s==null?void 0:s.onLiveEnded)==null?void 0:_.call(s))})).add(Te.events.loadStarted$.subscribe(()=>{var c,_;return(_=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onLoadStarted)==null?void 0:_.call(c)})).add(Te.events.loadEnded$.subscribe(()=>{var c,_;return(_=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onLoadEnded)==null?void 0:_.call(c)})).add(Te.events.loadError$.subscribe(()=>{var c,_;return(_=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onLoadError)==null?void 0:_.call(c)})).add(Te.events.init$.subscribe(()=>{var c,_;return(_=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onInit)==null?void 0:_.call(c)})).add(Te.events.ready$.subscribe(()=>{var c,_;return(_=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onReady)==null?void 0:_.call(c)})).add(Te.events.started$.subscribe(c=>{var _,V;return(V=(_=s==null?void 0:s.adsInfo)==null?void 0:_.onStarted)==null?void 0:V.call(_,c)})).add(Te.events.timeRemained$.subscribe(c=>{var _,V;return(V=(_=s==null?void 0:s.adsInfo)==null?void 0:_.onTimeRemained)==null?void 0:V.call(_,c)})).add(Te.events.ended$.subscribe(c=>{var _,V;return(V=(_=s==null?void 0:s.adsInfo)==null?void 0:_.onCompleted)==null?void 0:V.call(_,c)})).add(Te.events.empty$.subscribe(()=>{var c,_;return(_=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onEmpty)==null?void 0:_.call(c)})).add(Te.events.clicked$.subscribe(c=>{var _,V;return(V=(_=s==null?void 0:s.adsInfo)==null?void 0:_.onClicked)==null?void 0:V.call(_,c)})).add(Te.events.closed$.subscribe(c=>{var _,V;return(V=(_=s==null?void 0:s.adsInfo)==null?void 0:_.onClosed)==null?void 0:V.call(_,c)})).add(Te.events.error$.subscribe(c=>{var _,V;return(V=(_=s==null?void 0:s.adsInfo)==null?void 0:_.onError)==null?void 0:V.call(_,c)})).add(Te.events.paused$.subscribe(()=>{var c,_;return(_=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onPaused)==null?void 0:_.call(c)})).add(Te.events.resumed$.subscribe(()=>{var c,_;return(_=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onResumed)==null?void 0:_.call(c)}));let Lo=new st.Subscription,Tt=()=>{var Xe,At,Wt;let{debugLog:c}=J,_,V="#9df7b7",oe="#efd169";if(c&&c!==!0){let{colors:jt}=c;_=c.tag,V=(Xe=jt==null?void 0:jt[0])!=null?Xe:V,oe=(Wt=(At=jt==null?void 0:jt[1])!=null?At:jt==null?void 0:jt[0])!=null?Wt:oe}let xe=_?`: ${_}`:"";Lo.add(k.events.log$.subscribe(jt=>{console.debug(`%c sdk${xe} `,`background:${V};`,`sdk component: ${jt.component}`,jt.message)})).add(Ke.log$.subscribe(jt=>{console.debug(`%c ui${xe} `,`background:${oe};`,`ui component: ${jt.component}.`,jt.message)}))},zt=()=>{Lo.unsubscribe()},W=(c,_)=>{fe.log("start camera manual rotation",{mx:c,my:_}),k.startCameraManualRotation(c,_)},Vt=(c=!1)=>{fe.log("stop camera manual rotation",{immediate:c}),k.stopCameraManualRotation(c)},li=(c,_,V)=>{fe.log("move camera focus px",{xpx:c,ypx:_,dt:V}),k.moveCameraFocusPX(c,_,V)},gt=()=>{k.holdCamera()},oi=()=>{k.releaseCamera()},ft=Vr(k.info.position$.getValue(),c=>{let _,V,oe=()=>{let xe=k.info.playbackState$.getValue(),Xe=k.info.isLive$.getValue(),At=k.info.duration$.getValue(),Wt=k.info.position$.getValue();if(xe&&[bi.PlaybackState.PLAYING,bi.PlaybackState.PAUSED].includes(xe)){let jt=Xe?Wt-At:k.getExactTime();jt!==V&&c(jt),V=jt}_=requestAnimationFrame(oe)};return oe(),()=>cancelAnimationFrame(_)}),rt=ai(k.info.playbackState$),ao=ai(k.info.isBuffering$),Ni=hi([rt,ao],([c,_])=>_?"buffering":c),bn=ai(k.info.currentBuffer$),$n=ai(k.info.isEnded$),Mi=ai(k.info.isLive$),Vi=J.features.playbackRate?ai(k.info.canChangePlaybackSpeed$):Vr(!1),Or=ai(k.info.liveBufferTime$),Mo=ai(k.info.volume$),lo=ai(k.info.muted$),Ai=Fu(k.info.predefinedQualityLimitType$.pipe((0,st.map)(c=>c===bi.PredefinedQualityLimits.TRAFFIC_SAVING)),k.info.predefinedQualityLimitType$.getValue()===bi.PredefinedQualityLimits.TRAFFIC_SAVING),Vo=Fu(k.info.predefinedQualityLimitType$.pipe((0,st.map)(c=>c===bi.PredefinedQualityLimits.HIGH_QUALITY)),k.info.predefinedQualityLimitType$.getValue()===bi.PredefinedQualityLimits.HIGH_QUALITY),Ro=ai(k.info.autoQualityLimitingAvailable$),On=ai(k.info.availableQualities$),Dr=ai(k.info.availableQualitiesFps$),_r=ai(k.info.chromecastState$),rs=ai(k.info.chromecastDeviceName$),ss=ai(k.info.currentFormat$),as=ai(k.info.throughputEstimation$),Jn=ai(k.info.videoBitrate$),Br=ai(k.info.intrinsicVideoSize$),on=ai(k.info.duration$),Dn=ai(k.info.isAudioAvailable$),br=()=>{ii&&clearTimeout(ii),ii=null},No=hi([on,Mi],([c,_])=>_?-c:c),er=hi([rt],([c])=>c===bi.PlaybackState.PLAYING),$r=ai(k.info.atLiveEdge$),Hr=ai(k.info.atLiveDurationEdge$),Bn=ai(k.info.position$),yr=hi([Bn,on],([c,_])=>isFinite(c)&&isFinite(_)&&!!_),ls=hi([_r],([c])=>c===bi.ChromecastState.CONNECTED),Oo=ai(k.info.availableVideoStreams$),tr=J.features.audioLanguages?ai(k.info.availableAudioStreams$):Vr([]),to=ai(k.info.currentVideoStream$),ir=ai(k.info.currentAudioStream$),or=c=>{c.language&&im(c.language),k.setVideoStream(c)},ct=(c,_)=>{k.setAudioStream(c),Fo(_)&&(c.language&&im(c.language),J.features.userVideoPrefs&&i&&rm(J.userSalt,String(i),{audioTrackId:c.id}))},ni=c=>{let _;if(c.length===1&&(_=c.at(0)),_!=null||(_=c.find(oe=>"isDefault"in oe&&oe.isDefault)),J.features.userVideoPrefs&&i){let oe=qu(J.userSalt,String(i));if(oe!=null&&oe.audioTrackId){let xe=c.find(Xe=>Xe.id===oe.audioTrackId);_=xe!=null?xe:_}}let V=U_();return V&&(_!=null||(_=c.find(({language:oe})=>V===oe))),_!=null||(_=c.at(0)),_},Fr=c=>{fe.log("change audio stream",{id:c});let _=k.info.availableAudioStreams$.getValue().find(V=>V.id===c);_&&ct(_,!0)},xr=!1;ye.add(k.info.availableAudioStreams$.subscribe(c=>{if(!xr&&c.length){let _=ni(c);_&&(k.setAudioStream(_),xr=!0)}})),tr.subscribe(c=>{var _;(_=s==null?void 0:s.onAvailableAudioStreamsChanged)==null||_.call(s,c.map(({label:V="",id:oe="",language:xe=""})=>({label:V,language:xe,id:oe})))}),ir.subscribe(c=>{var _;return c&&((_=s==null?void 0:s.onAudioStreamChanged)==null?void 0:_.call(s,c.id))});let Ur=!1;ye.add(k.info.availableVideoStreams$.subscribe(c=>{if(!Ur&&c.length){let _=ni(c);_&&(k.setVideoStream(_),Ur=!0)}}));let nn=de(void 0),wr=ai(k.info.isAutoQualityEnabled$,c=>c&&nn.set(void 0)),rn=ai(k.info.currentQuality$,()=>nn.set(void 0)),yn=hi([nn,rn],([c,_])=>c!=null?c:_),nr=hi(ss,c=>c!==bi.VideoFormat.MPEG),rr=hi([On,Dr,wr,yn,nr],([c,_,V,oe,xe])=>{let Xe=[];xe&&Xe.push({value:"auto",displayValue:vt("auto_quality_option"),selected:V});let At=c.filter(Wt=>!(0,st.isInvariantQuality)(Wt));for(let Wt of At){let jt=_[Wt];Xe.push({value:Wt,displayValue:`${Wt}${jt?Ab(jt):""}`,selected:V?!1:Wt===oe})}return Xe}),Do=ai(k.info.currentPlaybackRate$),xn=hi([Do,$r,Hr],([c,_,V])=>{let oe=V||w?1:J.controls.playbackRateMin,xe=_?1:J.controls.playbackRateMax,Xe=J.controls.playbackRateStep,At=[];for(let Wt=oe;Wt<=xe;Wt+=Xe)At.push({value:Wt,displayValue:Wt===1?vt("playback_rate_1"):vt("playback_rate",{multiplier:Wt.toString(10)}),selected:c===Wt});return At}),sn=()=>({displayValue:vt("subtitles_off"),value:Nn,language:""}),Hn=de(sn()),Ci=hi([Hn,Ve],([c],_)=>{c.value===Nn?_(sn()):_(c)}),an=J.features.subtitles?ai(k.info.availableTextTracks$):Vr([]),wn=k_(),Sr=hi([an,Ci],([c,_],V)=>{var Xe;let oe=[],xe=c.find(({id:At})=>At===_.value);if(xe!=null&&xe.url){let[,At]=(Xe=wn.find(xe.url))!=null?Xe:[];if(At){V(At);return}it.download(xe.url).then(Wt=>{if(!Wt||it.isDestroyed())return;let jt=new Lb,Ys=xe.language;if(Ys){let O$=!!xe.isAuto,D$=jt.parse(Wt,Ys);oe.push({lang:Ys,subtitles:D$,isAuto:O$,id:xe.id})}wn.add(xe.url,oe),_e(Ci).value===_.value&&V(oe)}).catch(Wt=>{var jt;(jt=ee==null?void 0:ee.oneStat)==null||jt.logError({errorType:"Subtitles download",fatal:!1}),Z==null||Z.report(Wt,{errorType:"Subtitles download",fatal:!1})})}V(oe)}),Cr=hi([Do,er,Ci],([c,_,V],oe)=>{let At;if(k.info.isLive$.getValue()&&_&&V.value!==Nn){let jt=()=>{let Ys=1e3/(3*c);At=setTimeout(jt,Ys),oe(Date.now())};return jt(),()=>clearTimeout(At)}}),ln=hi([an,Ci],([c,_])=>{if(!c.length)return[];let V=[];for(let{language:oe,isAuto:xe,id:Xe}of c){let At=oe&&yc(oe);oe&&At&&V.push({displayValue:xe?vt("subtitles_auto",{language:At}):At,value:Xe,selected:(_==null?void 0:_.value)===Xe,isAuto:xe,language:oe})}return V.length?(V.unshift(Yt(Pe({},sn()),{selected:(_==null?void 0:_.value)===Nn})),V):[]}),Sn={available:[],prev:[]},wt=()=>{var _,V;let c=k.experimental.getCurrentTime$.getValue();return(V=(_=c==null?void 0:c())!=null?_:Ee==null?void 0:Ee.currentTime)!=null?V:0},It=hi([ft,Ci,Sr,Cr],([c,_,V,oe])=>{var Xe;let xe=k.info.isLive$.getValue();if(xe&&Sn.prev!==V){let At=V.find(({id:jt})=>jt===_.value),Wt=Sn.prev.find(({id:jt})=>jt===_.value);if(At){let jt=Yt(Pe({},At),{subtitles:[...(Xe=Wt==null?void 0:Wt.subtitles)!=null?Xe:[],...At.subtitles]});Sn.available=[jt],Sn.prev=V}}if(_&&_.value!==Nn){let At=xe?wt():c,Wt=xe?Sn.available:V;return Rb(At,_,Wt,xe)}}),co=hi([It],([c])=>c!=null&&c.texts?c.texts:[]);ye.add(Ci.subscribe(c=>{var _,V;if(c.value===Nn)(_=s==null?void 0:s.onSubtitleOff)==null||_.call(s);else{let oe=Object.entries(mp).find(([xe,Xe])=>Xe===c.displayValue);(V=s==null?void 0:s.onSubtitleOn)==null||V.call(s,oe?oe[0]:"",c.value)}}));let Bo=de(!0),yo=hi([bn,No,Bn,Or],([c,_,V,oe])=>{var Wt;let xe=(Wt=c==null?void 0:c.end)!=null?Wt:0;if(!oe)return xe/_;let At=-V+oe-_;return(xe-At)/_}),Ho=ai(k.info.availableSources$),ho=hi([Ho],([c])=>Object.keys((c==null?void 0:c[bi.VideoFormat.MPEG])||{}).length>0),xo=()=>{var V,oe,xe;let c=Object.keys(((oe=(V=k.info.availableSources$)==null?void 0:V.getValue())==null?void 0:oe[bi.VideoFormat.MPEG])||{}),_=(0,st.getHighestQuality)(c)||st.VideoQuality.Q_144P;return(xe=Ae.sources[bi.VideoFormat.MPEG])==null?void 0:xe[_]},Li=()=>{var _;let c=xo();if(c)fe.log("download video",{url:c}),I_(c,((_=Ae==null?void 0:Ae.meta)==null?void 0:_.title)||"video");else{let V="There is no URL for download video";fe.log("download video",{message:V}),U({message:V})}},zr=()=>{U({message:"toggle muted"});let c=k.info.muted$.getValue();k.info.volume$.getValue()===0&&!c?Ir(Tr(),!1):sr(!c,!1)},Fn=()=>{var c;if(Gt.ui.settingsMenu.visible$.set(!1),!_e(Gt.ui.settingsSubMenu.visible$)){let _=_e(Gt.ui.settingsMenu.ref$);if((c=s==null?void 0:s.uiInfo)!=null&&c.onSettingsMenu&&_){let oe=od(_),xe={top:0,left:0,bottom:0,right:0};s.uiInfo.onSettingsMenu({visible:!1,size:oe,position:xe,name:"settings"})}}fe.log("close settings menu")},ws=(c,_=()=>Promise.resolve())=>ht(null,null,function*(){var xe;Gt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),Gt.ui.settingsMenu.visible$.set(!0),yield _();let V=_e(Gt.ui.settingsMenu.ref$),oe=wa();if((xe=s==null?void 0:s.uiInfo)!=null&&xe.onSettingsMenu&&V&&oe){let At=od(V),Wt=Bs(V,oe);s.uiInfo.onSettingsMenu({visible:!0,size:At,position:Wt,name:"settings"})}fe.log("open settings menu",{wasOpenedByKeyboard:c})}),Wi=(c,_=!1)=>{var Xe;Gt.ui.settingsSubMenu.visible$.set(!1);let V=_e(Gt.ui.settingsMenu.ref$),oe=wa(),xe=_e(Gt.ui.settingsMenu.visible$);if((Xe=s==null?void 0:s.uiInfo)!=null&&Xe.onSettingsMenu&&V&&oe)if(xe&&!_){let Wt=od(V),jt=Bs(V,oe);s.uiInfo.onSettingsMenu({visible:!0,size:Wt,position:jt,name:"settings"})}else{let Wt=od(c),jt={top:0,left:0,bottom:0,right:0},Ys=_e(Gt.ui.settingsSubMenu.name$);s.uiInfo.onSettingsMenu({visible:!1,size:Wt,position:jt,name:Ys})}fe.log("close settings sub menu")},Ss=(c,_)=>{var oe;Gt.ui.settingsSubMenu.visible$.set(!0),Gt.ui.settingsSubMenu.ref$.set(_),Gt.ui.settingsSubMenu.name$.set(c);let V=wa();if((oe=s==null?void 0:s.uiInfo)!=null&&oe.onSettingsMenu&&_&&V){let Xe=od(_),At=Bs(_,V);s.uiInfo.onSettingsMenu({visible:!0,name:c,size:Xe,position:At})}fe.log("open settings sub menu",{name:c})},Tr=()=>{var _;let c=Math.max(J.volumeMinRestore,(_=Uu())!=null?_:0);return c===0?J.volumeDefault:c},Fo=c=>{let _=J.features.savePreferredStatesOnUserActionOnly;return!_||_&&!c},Ir=(c,_)=>{let V=c===0?Tr():c,oe=k.info.muted$.getValue();U({message:`set volume, volume: ${c}, preferredVolume: ${V}`});let xe=!l||ze.is("ads");oe&&c>0&&xe&&(oe=!1,Fo(_)&&em(!1)),k.setVolume(c,oe),Te.setVolume(c),Fo(_)&&jf(V)},sr=(c,_)=>{let V=k.info.volume$.getValue();U({message:`set muted, currentVolume: ${V}, mute: ${c}`});let oe=ze.is("ads");if(k.setMuted(c,oe),Te.setVolume(c?0:V),Fo(_)&&(!oe||!c)&&em(c),!c&&V===0){let xe=Tr();k.setVolume(xe),Fo(_)&&jf(xe),Te.setVolume(xe)}},ar=de(!1),dn=c=>{var _,V;fe.log("set looped",{isLooped:c}),ar.set(c),k.setLooped(c),(V=(_=s==null?void 0:s.uiInfo)==null?void 0:_.onLoopedChanged)==null||V.call(_,c)};dn(ne);let Fe=()=>{var c,_;(_=(c=s==null?void 0:s.uiInfo)==null?void 0:c.onReportProblem)==null||_.call(c)},Et=(c,_=!1)=>{var V;U({message:`set autoplayNextEnabled, value: ${c}`}),fe.log("set autoplay next enabled",{autoplayNextEnabled:c}),Gt.ui.autoplayNextEnabled$.set(c),K_(c),_&&((V=s==null?void 0:s.onSetAutoplayNextEnabled)==null||V.call(s,c))},fi=c=>{U({message:`set timerNextVideoRunning, value: ${c}`}),fe.log("set timer next video running",{timerNextVideoRunning:c}),Gt.ui.timerNextVideoRunning$.set(c)},Uo=(c=!0)=>{var V;let _=!0;if(c&&(s!=null&&s.onPrevVideoClick))try{_=(V=s==null?void 0:s.onPrevVideoClick)==null?void 0:V.call(s)}catch(oe){U({message:"onPrevVideoClick callback failed to execute"})}X(!0),_&&j()},wo=(c=!0)=>{var V;let _=!0;if(c&&(s!=null&&s.onNextVideoClick))try{_=(V=s==null?void 0:s.onNextVideoClick)==null?void 0:V.call(s)}catch(oe){U({message:"onNextVideoClick callback failed to execute"})}X(!1),_&&ae()},zo=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementShow)==null||c.call(s)},Ki=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementClick)==null||c.call(s)},So=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementAuto)==null||c.call(s)},Un=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementCancel)==null||c.call(s)},Er=()=>{k.prepare()},Co=()=>{(0,st.assertNonNullable)(Gt);let c=_e(Gt.ui.controls.disabledControls$),_=_e(Gt.playerPhase),V={playerPhase:_,isInteractive:w,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(U({message:"toggle play"}),_==="ads"){V.action="play",fe.log("toggle adman play",V),Te.togglePlay();return}let oe=()=>{var Xe;U({message:"toggle play, call player.play"}),V.action="play",k.play(),(Xe=s==null?void 0:s.onPlay)==null||Xe.call(s)},xe=()=>{var Xe;U({message:"toggle play, call player.pause"}),V.action="pause",k.pause(),(Xe=s==null?void 0:s.onPause)==null||Xe.call(s)};if(k.info.isEnded$.getValue()){if(U({message:"toggle play, video ended, seek to 0"}),Xt.next(),Ii.next(ys.SeekAction.REWIND),w){O==null||O();return}k.seekTime(0),oe()}else k.info.playbackState$.getValue()!==bi.PlaybackState.PLAYING?oe():xe();fe.log("toggle play",V)},qi=(c,{changeReason:_="default",appliesTo:V="to-video",byUser:oe=!1}={},xe)=>{U({message:`set quality, quality: ${c}`}),fe.log("set quality",{quality:c}),oe&&vi.next(c),k.setAutoQuality(c==="auto");let{qualityDetailsSubMenuEnabled:Xe}=J.features;zu(),c!=="auto"?(Xe?(Wu({type:"exact_quality",quality:c,videoId:i},V),k.setPredefinedQualityLimits(bi.PredefinedQualityLimits.UNKNOWN)):Xf(i,c),nn.set(c),k.setQuality(c)):Xe&&_==="default"&&(Wr("auto_quality",V,xe),_e(Ai)&&Cn(!1,void 0,xe),_e(Vo)&&Wo(!1,void 0,xe))},Cn=(c,_="as-default",V)=>{U({message:`set trafficSavingEnabled, value: ${c}`}),fe.log("set traffic saving enabled",{trafficSavingEnabled:c});let oe=c?bi.PredefinedQualityLimits.TRAFFIC_SAVING:bi.PredefinedQualityLimits.UNKNOWN;J.features.qualityDetailsSubMenuEnabled?(lr(oe,_,V),Jd(!1)):(k.setPredefinedQualityLimits(oe),Fo(V)&&Jd(c))},Wo=(c,_="as-default",V)=>{U({message:`set highQualityEnabled, value: ${c}`}),fe.log("set high quality enabled",{highQualityEnabled:c}),lr(c?bi.PredefinedQualityLimits.HIGH_QUALITY:bi.PredefinedQualityLimits.UNKNOWN,_,V)},lr=(c,_,V)=>{c!==bi.PredefinedQualityLimits.UNKNOWN&&(_e(Ro)&&!_e(wr)&&qi("auto",{appliesTo:_,changeReason:"limit-changed"},V),Wr(c,_,V)),k.setPredefinedQualityLimits(c)},Wr=(c,_,V)=>{Fo(V)&&(Wu({type:c,videoId:i},_),_==="as-default"&&Wu({type:c,videoId:i},"to-video"))},zn=(c,_=!0)=>{fe.log("set playback rate",{playbackRate:c}),k.setPlaybackRate(c),J.features.saveRate&&we&&!k.info.isLive$.getValue()&&_&&z_(c)},ds=()=>{let c=_e(Vi),_=_e(xn),V=_.findIndex(({selected:xe})=>xe);if(V===_.length-1||!c)return _[V];let oe=_[V+1];return zn(oe.value),oe},et=()=>{let c=_e(Vi),_=_e(xn),V=_.findIndex(({selected:xe})=>xe);if(V===0||!c)return _[V];let oe=_[V-1];return zn(oe.value),oe},Zt=(c=Yt(Pe({},sn()),{selected:!1}),_)=>{fe.log("set subtitles",Pe({},c)),c.value!==Nn&&zi.next(c.isAuto?c.value+"_auto":c.value),Ye.next({enabled:c.value!==Nn,lang:c.language,auto:!!c.isAuto}),Hn.set(c),Fo(_)&&(nm(c.value===Nn?void 0:c.language),J.features.userVideoPrefs&&i&&rm(J.userSalt,String(i),{subtitleTrackId:c.value===Nn?void 0:c.value}))},Pi=c=>{fe.log("toggle subtitles");let _=_e(Ci);(_==null?void 0:_.value)===Nn?cn(c):Wn(c)},Ko=(c,_)=>{fe.log("change subtitle",{enabled:c}),c?cn(!0,_):Wn(!0)},cn=(c,_)=>{fe.log("subtitle on");let V=_e(ln),oe=_e(he),xe=Ie!=null?Ie:oe,Xe;_&&(Xe=V.find(At=>At.value===_)),Xe!=null||(Xe=V.filter(At=>At.value!==Nn).find(At=>At.language===xe)),Zt(Xe!=null?Xe:V[1],c)},Wn=c=>{fe.log("subtitle off"),Zt(void 0,c)};ye.add(k.info.availableTextTracks$.subscribe(c=>{var V;function _(){let oe=[];for(let{language:xe,isAuto:Xe,id:At}of c){let Wt=xe&&yc(xe);xe&&Wt&&oe.push({id:At,language:xe,title:Xe?vt("subtitles_auto",{language:Wt}):Wt})}return oe}(V=s==null?void 0:s.onAvailableSubtitlesChanged)==null||V.call(s,_())}));let qo=de(!0),dr=c=>{qo.set(c)},Kn=(c,_,V=!0)=>{var oe;if(U({message:`seek to time, time: ${c}`}),fe.log("seek to time",{time:c,action:_,forcePrecise:V}),Ii.next(_),k.info.isLive$.getValue()){let xe=k.info.duration$.getValue(),Xe=Math.min(0,xe+c);k.seekTime(Xe,V)}else{if(T!=null&&T.getValue())return;k.info.isEnded$.getValue()&&(U({message:"seek after ended, call callbacks.onPlay"}),(oe=s==null?void 0:s.onPlay)==null||oe.call(s)),k.seekTime(fn(c),V)}},ga=c=>{U({message:`seek to episode start time: ${c}`}),fe.log("seek to episode start time",{time:c}),Kn(c,ys.SeekAction.EPISODE,!0)},cs=(c,_,V=!1)=>{U({message:`seek to percent, percent: ${c}`}),fe.log("seek to percent",{percent:c,action:_});let oe=_e(No)*c;Kn(oe,_,V)},ha=c=>{U({message:`seek external, time: ${c}`}),fe.log("seek external",{time:c}),Ii.next(ys.SeekAction.UNKNOWN),k.seekTime(k.info.isLive$.getValue()?-c:c)},_a=c=>{var oe,xe;let _=(oe=c.max)!=null?oe:"none",V=(xe=c.min)!=null?xe:"none";U({message:`set auto quality limitation. Max: ${_}. Min: ${V}`}),fe.log("set auto quality limits",{max:_,min:V}),k.setAutoQualityLimits(c)},ut=c=>{U({message:`seek external to episode start time: ${c}`}),fe.log("seek external to episode start time",{time:c}),Kn(c,ys.SeekAction.EPISODE,!0)},di=c=>{U({message:`set playback rate to: ${c}`}),fe.log("set playback rate external",{playbackRate:c}),k.setPlaybackRate(c)},gi=de(!1),un=de(!1),Kr=hi([No],([c])=>!!p&&c>=J.suitableDurationForUsingRichSeek&&J.features.useRichSeek&&!w),Tn=((p==null?void 0:p.frameWidth)||0)>=((p==null?void 0:p.frameHeight)||0),Cs=hi([ti],([c])=>{let _=nd(c);return Tn?!_:_});ye.add(ze.subscribe(c=>{c!=="video"&&gi.set(!1)}));let qr=de(void 0),Oi=de(!1),me=c=>{U({message:`start scrubbing, progress: ${c}`}),fe.log("start scrubbing",{progress:c}),Oi.set(!0),pt(c)},pt=c=>{qr.set(c)},ri,$i,ci=()=>{qr.set(void 0),Oi.set(!1)},uo=()=>{clearTimeout($i),clearTimeout(ri),ri=window.setTimeout(()=>{ci()},500),Ee==null||Ee.removeEventListener("seeked",uo)},Qo=(c,_=!1)=>{U({message:`complete scrubbing, progress: ${c}`}),fe.log("complete scrubbing",{progress:c}),cs(c,ys.SeekAction.SLIDER,_),_e(Gt.ui.isMobile)&&_e(Gt.state.currentFormat$)===bi.VideoFormat.HLS?(Ee==null||Ee.addEventListener("seeked",uo),$i=window.setTimeout(()=>{uo()},300)):ci()},Ts=hi([ft,No,qr],([c,_,V],oe)=>{oe((0,st.isNonNullable)(V)?V*_:c)}),us=de(!1),Is=()=>{us.set(!0)},ps=()=>{us.set(!1)},Ks=hi([Mt],([{width:c}],_)=>{let V=Cb(c);_(V)}),qs=q.filter(c=>E_(c)),ba=hi([Ks,He],([c,_])=>_?qs.filter(V=>!V.hideOnMobile):qs.filter(V=>{var oe;return!((oe=V.hideOnDesktopGridTypes)!=null&&oe.includes(c))})),pn=de(q.filter(c=>P_(c))),Qs=hi([pn,Ks],([c,_])=>c.filter(V=>{var oe;return!((oe=V.hideOnDesktopGridTypes)!=null&&oe.includes(_))})),$a=hi([Qs,ba],([c,_])=>[...J.features.additionalButtonsDesktopControlPanelRight?c.filter(V=>V.type==="desktop-control-panel-right"):[],...J.features.additionalButtons?_.map((V,oe)=>{var xe;return{id:oe,weight:oe,type:"desktop-control-panel-right",testId:V.testId,icon:V.iconUrl,onClick:V.onClick,ariaLabel:(xe=V.ariaLabel)!=null?xe:V.tooltip,tooltipText:V.tooltip}}):[]].filter(V=>!v.disabledAdditionalButtonIds.includes(V.id))),Pr=de(F),ml=hi([Pr],([c])=>J.features.additionalSettingsMenuItems?c.map(_=>_.type==="SWITCH"?Yt(Pe({},_),{onClick:_.onChangeEnabled}):_):[]),bd=(c,_)=>{let V=_e(pn).map(oe=>oe.id!==c?oe:Pe(Pe({},oe),_));pn.set(V)},vl=c=>{let _=_e(pn);if(_.some(V=>V.id===c.id)){U({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}_.push(c),pn.set(_)},gl=c=>{let _=_e(pn);if(!_.some(V=>V.id===c)){U({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}_=_.filter(V=>V.id!==c),pn.set(_)},hl=c=>{Ii.next(ys.SeekAction.LIVE),U({message:"live switch to low latency "+c}),fe.log("live switch to low latency "+c),k.setLiveLowLatency(c)},$d=(c,_)=>{let V=_e(Pr).map(oe=>oe.id!==c?oe:Pe(Pe({},oe),_));Pr.set(V)},ya=c=>{let _=_e(Pr);if(_.some(V=>V.id===c.id)){U({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}_.push(c),Pr.set(_)},_l=c=>{let _=_e(Pr);if(!_.some(V=>V.id===c)){U({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}_=_.filter(V=>V.id!==c),Pr.set(_)},ot=de(z),mt=hi([ot],([c])=>J.features.additionalContextMenuItems?c:[]),Qi=(c,_)=>{let V=_e(ot).map(oe=>oe.id!==c?oe:Pe(Pe({},oe),_));ot.set(V)},Go=c=>{let _=_e(ot);if(_.some(V=>V.id===c.id)){U({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}_.push(c),ot.set(_)},Gi=c=>{let _=_e(ot);if(!_.some(V=>V.id===c)){U({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}_=_.filter(V=>V.id!==c),ot.set(_)},wi=hi([He,Se],([c,_],V)=>{V(c&&_)}),Di=()=>{Ii.next(ys.SeekAction.LIVE),U({message:"switch to active live"}),fe.log("switch to active live"),k.seekTime(0),k.info.playbackState$.getValue()!==bi.PlaybackState.PLAYING&&Gt.actions.internal.togglePlay()},xa=()=>{fe.log("skip adman"),Te.skip()},bl=(c=!0)=>{var oe;(0,st.assertNonNullable)(Gt),U({message:`switch from ads to video, callPlay: ${c}`}),fe.log("switch from ads to video",{callPlay:c}),pe.set("video"),c&&k.play(),l&&sr(!0,!0);let _=(oe=_e(Ge))==null?void 0:oe.muted,V=!k.info.muted$.getValue();_!==void 0&&!V&&sr(_,!0),Ge.set(void 0)},zp=()=>{(0,st.assertNonNullable)(Gt),U({message:"switch from video to ads"}),fe.log("switch from video to ads"),Gt.actions.internal.pause(),Ao(),pe.set("ads")},Jc=c=>{(0,st.assertNonNullable)(Gt);let _=c?"LiveWaitingStart":"thumb";fe.log("set live waiting start",{state:c,playerPhase:_}),pe.set(_)},Wp=c=>{(0,st.assertNonNullable)(Gt);let _=c?"LiveWaitingRecover":"thumb";fe.log("set live waiting recover",{state:c,playerPhase:_}),pe.set(_)},eu=c=>{(0,st.assertNonNullable)(Gt);let _=c?"LiveWaitingRecord":"thumb";fe.log("set live waiting record",{state:c,playerPhase:_}),pe.set(_)},Kp=()=>((0,st.assertNonNullable)(Gt),fe.log("get debug text data"),C_(k,Ae,Gt,Ne.getTraceId())),tu=()=>((0,st.assertNonNullable)(Gt),JSON.stringify(Ne.getFinishedSpans())),qp=()=>((0,st.assertNonNullable)(Gt),T_(k,Ae,Gt)),wa=()=>Ee,iu=()=>{U({message:"toggle chromecast"}),fe.log("toggle chromecast"),k.toggleChromecast()},Gs=c=>{var V;if((0,st.assertNonNullable)(Gt),k.info.isEnded$.getValue())return;let _=!c;if(_e(Gt.playerPhase)==="ads"){U({message:`pause ads, internalCall: ${_}`}),fe.log("pause ads",{internalCall:_}),Te.pause();return}U({message:`pause video, internalCall: ${_}`}),fe.log("pause video",{internalCall:_}),_&&((V=s==null?void 0:s.onPause)==null||V.call(s)),k.pause()},$l=c=>{var V;(0,st.assertNonNullable)(Gt);let _=!c;if(_e(Gt.playerPhase)==="ads"){U({message:`play ads, internalCall: ${_}`}),fe.log("play ads",{internalCall:_}),Te.play();return}U({message:`play video, internalCall: ${_}`}),fe.log("play video",{internalCall:_}),_&&((V=s==null?void 0:s.onPlay)==null||V.call(s)),k.play()},ou=c=>{(0,st.assertNonNullable)(Gt);let _=!c;if(_e(Gt.playerPhase)==="ads"){U({message:"player cannot be stopped during ads via external method"});return}U({message:`player will be stopped, internalCall: ${_}`}),L==null||L()},nu=(c,_)=>{(0,st.assertNonNullable)(Gt),U({message:`first start, show ads: ${c}, internalCall: ${!_}`}),fe.log("first start",{showAds:c,external:_}),c?pe.set("ads"):(pe.set("video"),_?k.play():Gt.actions.internal.togglePlay())},yl=()=>(U({message:"getting time codes"}),m),ru=()=>{let c=yl();if(!c||[0,1].includes(c.length))return;let _=k.info.position$.getValue();return c.find(V=>V.time>_)},su=c=>{let _=c;_||(_=ru());let V=k.info.position$.getValue();fe.log("seek to next episode",Pe({currentTime:V},_)),_&&(U({message:"seek to next episode"}),Kn(_.time,ys.SeekAction.EPISODE,!0))},au=()=>{let c=yl();if(!c||[0,1].includes(c.length))return;let _=k.info.position$.getValue(),V=c.findIndex(xe=>xe.time>_),oe=V===-1?c.length-2:V-2;if(!(oe<0))return c[oe]},Qp=c=>{let _=c;_||(_=au());let V=k.info.position$.getValue();fe.log("seek to prev episode",Pe({currentTime:V},_)),_&&(U({message:"seek to prev episode"}),Kn(_.time,ys.SeekAction.EPISODE,!0))},Gp=()=>(U({message:"getting preview thumbs data"}),fe.log("get preview thumbs data",Pe({},p)),p),Ue=()=>ht(null,null,function*(){let c=ie==null?void 0:ie.isActive(),_="none";ie!=null&&ie.isActive()?(_="exit",yield ie==null?void 0:ie.exit()):(_="request",yield ie==null?void 0:ie.request()),fe.log("toggle picture in picture",{isActive:c,action:_})}),yi=(c=-90)=>{fe.log("rotate video",{alphaDiff:c}),ti.update(_=>_+c)},po=de([]);I==null||I.subscribe(c=>{let _=[];for(let V=0;V<c.length;V++){let{range:[oe,xe],subjects:Xe}=c[V];V===0&&oe!==0&&_.push({time:0,text:"",interactive:!1,completed:!0}),_.push({time:oe/1e3,text:"",interactive:!0,completed:J.features.interactiveTimeOpenUri?!Xe.length||Xe.every(At=>At.isRemoved):!Xe.length}),xe!==1/0&&_.push({time:xe/1e3,text:"",interactive:!1,completed:!0})}po.set(_)});let kr=de(!1);T==null||T.subscribe(c=>{c&&_e(Oi)&&ci()});let fn=c=>{if(!w)return c;let _=_e(po),V=_e(No),xe=_e(Bn)/V,Xe=_.find(At=>At.interactive&&!At.completed&&At.time>xe);return typeof(Xe==null?void 0:Xe.time)=="number"?Math.min(c,Xe.time-.05):c},k$=()=>{Gt.ui.episodes.panelOpened$.set(!1)},A$=()=>{fe.log("destroy store"),clearTimeout($i),clearTimeout(ri),ye.unsubscribe(),Lo.unsubscribe(),k.destroy(),Te.destroy(),ee==null||ee.destroy(),Z==null||Z.destroy(),Y.unsubscribe(),ei==null||ei.disconnect(),ei=null,it.destroy()},L$=hi([$r,ze,Vi],([c,_,V])=>v.features.doubleForwardAvailable&&!c&&_==="video"&&V),Yp=de(!1),yg=2,lu=null,xg=c=>{if(!_e(er)&&c)return;let _=k.info.currentPlaybackRate$.getValue();c?_!==yg&&(lu=_,zn(yg,!1),Yp.set(!0)):(lu&&zn(lu,!1),Yp.set(!1),lu=null)};ze.subscribe(c=>{c!=="video"&&xg(!1)});let M$=()=>{Gs(!1),gi.set(!0)},V$=()=>{$l(!1),gi.set(!1)},jp=!1,R$=()=>{un.set(!0),jp=k.info.playbackState$.getValue()===bi.PlaybackState.PLAYING,Gs(!1)},N$=()=>{un.set(!1),!_e(gi)&&jp&&$l(!1),jp=!1};k.events.playing$.subscribe(()=>{_e(gi)&&Gs(!1)});let Gt={interfaceLanguage$:he,isCyrillicRelatedInterface$:at,initVideo:mi,videoId:i,isClip:o,playerPhase:ze,vsid:Bt,state:{positionExact$:ft,positionWithScrubbing$:Ts,duration$:No,playbackState$:rt,playbackStateRealistic$:Ni,isPlaying$:er,isLoaderVisible:eo,bufferedProgress$:yo,isLive$:Mi,canChangePlaybackSpeed$:Vi,isActiveLive$:$r,isOldestAvailableLive$:Hr,isRewindableLive$:yr,isEnded$:$n,muted$:lo,volume$:Mo,trafficSavingEnabled$:Ai,highQualityEnabled$:Vo,autoQualityLimitingAvailable$:Ro,availableVideoStreams$:Oo,availableAudioStreams$:tr,videoStream$:to,audioStream$:ir,currentQuality$:yn,isAutoQualityEnabled$:wr,availableQualities$:rr,currentPlaybackRate$:Do,availablePlaybackRates$:xn,currentSubtitle$:Ci,availableTextTracks$:an,availableSubtitlesList$:ln,currentSubtitleCaptions$:co,isAutoSubtitleCaptionVisible$:Bo,chromecastState$:_r,chromecastDeviceName$:rs,chromecastConnected$:ls,currentFormat$:ss,throughputEstimation$:as,videoBitrate$:Jn,videoSize$:Br,errorLog$:Qt,crashed$:Se,isAudioAvailable$:Dn,isAudioDisabled:!!l,canDownload:J.features.download&&!!d,availableSources$:Ho,hasMpegSources$:ho,isInteractive:w,showInteractiveGraph:J.features.interactiveGraph,showSeekToInteractive:J.features.seekToInteractive,showPlayPrevChapter:J.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:J.features.interactiveTimeIndicator&&!!_e(po).length,interactiveEpisodes$:po,isInteractiveTime$:T?ai(T):de(!1),isInteractiveExpectation$:kr,hasInteractiveBranches:E,playPrevChapterDisabledTooltip:P,looped$:ar,loadedMetadata$:Lt,isAutoQualityAvailable$:nr,previewTrackActive:gi,previewTrackDragInProgress:un},ui:{t:vt,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$:Ut},modals:{hotKeyMap:{show:de(!1),data:de({title:"",closeBtnText:"",groups:[]})}},isFullscreen:xt,isFullscreenOpenedByKeyboard:Ht,rotateAlpha:ti,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:Mt,isMobile:He,mobileNotReportControlHidden$:wi,icon3DVideoVisible:de(!1),scrubbingInProgress:Oi,volumeChangingInProgress:us,is3DVideo:Ft,currentGridType$:Ks,additionalButtonsDeprecated$:ba,additionalDesktopControlPanelRightButtons$:$a,additionalSettingsMenuItems$:ml,additionalContextMenuItems$:mt,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:qo,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$:Yp,doubleForwardAvailable$:L$,previewTrackNotificationVisible:de(!1),previewTrackActive:gi,previewTrackDragInProgress:un,previewTrackAvailable:Kr,isPreviewTrackHorizontallyAligned:Cs},ads:{position:de(0),duration:de(0),playbackState:de("inactive"),canSkip:de(!1),secondsToWatchBeforeSkip:de(0),postrollPassed:de(!1)},webApi:{pictureInPictureApi:ie,annotationsApi:De,slotsApi:Be,focusManager:nt},actions:{internal:{preload:Er,firstStart:c=>nu(c,!1),play:()=>$l(!1),pause:()=>Gs(!1),togglePlay:Co,toggleMuted:zr,openSettingsMenu:ws,closeSettingsMenu:Fn,openSettingsSubMenu:Ss,closeSettingsSubMenu:Wi,setVolume:c=>Ir(c,!1),setMuted:c=>sr(c,!1),startVolumeChanging:Is,stopVolumeChanging:ps,setVideoStream:or,setAudioStream:c=>ct(c,!1),setQuality:(c,_)=>qi(c,_,!1),setTrafficSavingEnabled:(c,_)=>Cn(c,_,!1),setHighQualityEnabled:(c,_)=>Wo(c,_,!1),setPlaybackRate:zn,incrementPlaybackRate:ds,decrementPlaybackRate:et,setSubtitle:c=>Zt(c,!1),toggleSubtitle:()=>Pi(!1),togglePictureInPicture:Ue,startScrubbing:me,progressScrubbing:pt,completeScrubbing:Qo,toggleChromecast:iu,switchToActiveLive:Di,switchFromAdsToVideo:bl,switchFromVideoToAds:zp,skipAd:xa,setLiveWaitingStart:Jc,setLiveWaitingRecover:Wp,setLiveWaitingRecord:eu,getDebugTextData:Kp,getTraceTextData:tu,getDebugPanelData:qp,getVideoElement:wa,seekTime:(c,_,V)=>Kn(c,_,V),clearDelayedBufferingCheckTimeout:br,seekEpisodeStartTime:ga,seekToPercent:cs,getNextEpisode:ru,seekToNextEpisode:su,getPrevEpisode:au,seekToPrevEpisode:Qp,startLogging:Tt,stopLogging:zt,startCameraManualRotation:W,stopCameraManualRotation:Vt,moveCameraFocusPX:li,holdCamera:gt,releaseCamera:oi,getVideoEpisodes:yl,getPreviewThumbsData:Gp,downloadVideo:Li,addLanguage:sm,setLanguage:le,nextMovie:bt,videoRotate:yi,correctSeekTimeToInteractive:fn,replayInteractive:O,setLooped:dn,reportProblem:Fe,setAutoplayNextEnabled:Et,setTimerNextVideoRunning:fi,prevVideoClick:Uo,nextVideoClick:wo,nextVideoAnnouncementShow:zo,nextVideoAnnouncementClick:Ki,nextVideoAnnouncementAuto:So,nextVideoAnnouncementCancel:Un,checkFullscreenSupport:dt,changeDoubleForwardOn:xg,closePreviewTrack:V$,previewTrackOpened:M$,previewTrackDragStarted:R$,previewTrackDragFinished:N$},external:{firstStart:c=>nu(c,!0),play:()=>$l(!0),pause:()=>Gs(!0),stop:()=>ou(!0),seekTime:c=>ha(c),seekEpisodeStartTime:c=>ut(c),setPlaybackRate:c=>di(c),setAutoQualityLimits:c=>_a(c),setMuted:c=>sr(c,!0),toggleSubtitle:()=>Pi(!0),changeSubtitle:Ko,setVolume:c=>Ir(c,!0),returnFocusToEpisodes:k$,updateAdditionalSettingsItem:$d,addAdditionalSettingsItem:ya,removeAdditionalSettingsItem:_l,updateAdditionalContextItem:Qi,addAdditionalContextItem:Go,removeAdditionalContextItem:Gi,updateAdditionalButton:bd,addAdditionalButton:vl,removeAdditionalButton:gl,setLiveLowLatency:hl,hideControls:()=>dr(!1),showControls:()=>dr(!0),setQuality:c=>qi(c,{appliesTo:"to-video"},!0),setTrafficSavingEnabled:c=>Cn(c,"to-video",!0),setHighQualityEnabled:c=>Wo(c,"to-video",!0),changeAudioStream:Fr}},callbacks:s,setUiCallbacks:c=>{We=Pe({},c)},getAdmanWrapper:()=>Te,getLogger:()=>Ke,getPlayer:()=>k,destroy:A$};return Gt};function Xn(t,e,i,o){var m;let r=(m=e[i])==null?void 0:m.getBoundingClientRect(),a=o&&!!r&&!!(r.right-r.left),{top:l,left:d,bottom:s,right:u}=Bs(e[i],t||void 0);return{left:a?d:0,right:a?u:0,top:a?l:0,bottom:a?s:0,isDisplayed:a}}var n2=["disabledControls$","additionalButtons"],r2=["interactiveTimeIndicator"],sd=(t,e,i,o)=>{if(t){for(let[r,a]of Object.entries(e))if(!n2.includes(r)){let l=o||r2.includes(r);a.set(Xn(t,i,r,l))}}};var gp=(t,e,i)=>ht(null,null,function*(){yield go(),e&&i&&(i.focus(),t.set(!1))});var s2=Ce('<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 Xm(t){Je(t,{children:(e,i)=>{var o=s2();$(e,o)},$$slots:{default:!0}})}function Zm(t,e){B(e,!0);let[i,o]=Re(),r=()=>x(s,"$contextMenuVisible$",i),a=h(e,"disabled",3,!1),l=h(e,"ariaLabel",3,""),d=ge(),s=d.ui.contextMenu.visible$,u=d.ui.contextMenu.openedByBtnKeyboard$,m=d.ui.contextMenu.showContextMenuBtn$,p=d.ui.contextMenu.position$,v=d.ui.contextMenu.btnRef$,b=K(void 0);Oe(()=>{n(b)&&Pt(()=>{v.set(n(b))})});let y=T=>{let O=da(T),L=vb(n(b));p.set(L),u.set(O),s.set(!r())},g=()=>{m.set(!0)},w=()=>{m.set(!1)},I=f(()=>r()?"opened":"");qt(t,{get className(){return n(I)},testId:"btn-context-menu",get disabled(){return a()},get ariaLabel(){return l()},click:y,focus:g,blur:w,get ariaExpanded(){return r()},get ref(){return n(b)},set ref(T){N(b,T,!0)},children:(T,O)=>{Xm(T,{})},$$slots:{default:!0}}),H(),o()}var a2=t=>{t.stopPropagation()},l2=M("<div><!> <div></div> <div></div></div>"),d2={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 wc(t,e){var Z;B(e,!0),Q(t,d2);let[i,o]=Re(),r=()=>x(w,"$isMobile",i),a=()=>x(L,"$areControlsVisible",i),l=()=>x(P,"$currentGridType$",i),d=()=>x(T,"$isInteractiveTime$",i),s=()=>x(g,"$interactiveControlsOpacity$",i),u=()=>x(O,"$showInteractiveTimeIndicatorTooltip$",i),m=()=>x(I,"$isFullscreen",i),p=h(e,"ref",15,void 0),v=K(void 0),b=ge(),y=bo(),{interactiveControlsOpacity$:g}=y,w=b.ui.isMobile,I=b.ui.isFullscreen,T=b.state.isInteractiveTime$,O=y.showInteractiveTimeIndicatorTooltip$,L=b.ui.controlsVisible,E=(Z=b.callbacks)==null?void 0:Z.onInteractiveTimeIndicatorClick,P=b.ui.currentGridType$,q=f(()=>!r()&&a()),F=f(()=>Ds(l(),"s")),z=f(()=>!d()||!!s()||n(q)),j=K(!1);Oe(()=>{N(j,n(z),!0)});let ae=()=>{N(j,!0)},X=()=>{var ie;ne(),(ie=n(v))==null||ie.addEventListener("animationiteration",ae,{once:!0})},ne=()=>{var ie;N(j,!1),(ie=n(v))==null||ie.removeEventListener("animationiteration",ae)},ee=ie=>{O.set(ie)},we=f(()=>u()&&!n(z));Oe(()=>{u()?X():ne()});let ue=()=>{n(z)||(O.set(!0),E==null||E())};gn(()=>{O.clearTimeout(),ne()});let re=()=>{O.set(!1)},be=G("tooltip_interactive_interaction_time_indicator");var $e=l2();let J;$e.__mousemove=[a2],$e.__click=ue;var Ne=C($e);Po(Ne,{get tooltipContent(){return be},get tooltipVisible(){return n(we)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:ee,get ref(){return p()},set ref(ie){p(ie)},children:(ie,De)=>{mc(ie,{completed:!0})},$$slots:{default:!0}});var fe=A(Ne,2);let k;Ze(fe,ie=>p(ie),()=>p());var Ke=A(fe,2);let Te;Ze(Ke,ie=>N(v,ie),()=>n(v)),S($e),D((ie,De,Be)=>{J=se($e,1,"interactive-episode-icon-animated s-27",null,J,ie),k=se(fe,1,"ref-block s-27",null,k,De),Te=se(Ke,1,"pulse s-27",null,Te,Be)},[()=>({mobile:r(),fullscreen:m(),invisible:n(z),"icon-small":n(F)}),()=>({hidden:n(z)}),()=>({paused:n(j)})]),lt("mouseleave",$e,re),$(t,$e),H(),o()}je(["mousemove","click"]);function hp(t,e){B(e,!0);let i=h(e,"tooltipEnabled",3,!0),o=h(e,"disabled",3,!1),r=h(e,"className",3,void 0),a=h(e,"ref",15),l=h(e,"tooltipVisible",3,!1);Po(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 a()},set ref(d){a(d)},children:(d,s)=>{var u=Le();let m=f(()=>e.buttonComponent);var p=ce(u);Fi(p,()=>n(m),(v,b)=>{b(v,es(()=>{var y;return(y=e.buttonComponentProps)!=null?y:{}}))}),$(d,u)},$$slots:{default:!0}}),H()}var Hs={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var u2=Ce('<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 ma(t,e){B(e,!0);let i=h(e,"reversed",3,!1),o=f(()=>i()?"transform: scaleX(-1);transform-origin: 50%;":void 0),r=f(()=>`${hn(e.size)}${n(o)}`),a=f(()=>i()?"prev-icon":"next-icon");Je(t,{get width(){return"48"},get height(){return"48"},get style(){return n(r)},get testId(){return n(a)},get shadow(){return e.shadow},children:(l,d)=>{var s=u2();$(l,s)},$$slots:{default:!0}}),H()}var p2=M('<div class="icon-background-mobile s-22"><!></div>'),f2={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:100%;justify-content:space-around;left:0;position:absolute;top:0;width:100%}"};function el(t,e){B(e,!0),Q(t,f2);let i=h(e,"ref",15,void 0),o=h(e,"isMobile",3,!1),r=h(e,"disabled",3,!1),l=ge().ui.t,d=f(()=>e.type==="prev"?l("tooltip_previous"):l("tooltip_next")),s=f(()=>e.type==="prev"?l("hotkey_map_item_prev_video_value"):l("hotkey_map_item_next_video_value")),u=f(()=>`btn-${o()?"m":"d"}--${e.type}`);qt(t,{get className(){return n(u)},get testId(){var m;return`btn-${(m=e.type)!=null?m:""}`},get disabled(){return r()},get ariaLabel(){return n(d)},get click(){return e.click},get ariaKeyShortCut(){return n(s)},get ref(){return i()},set ref(m){i(m)},children:(m,p)=>{var v=Le(),b=ce(v);{var y=w=>{var I=p2(),T=C(I);let O=f(()=>e.type==="prev");ma(T,{get size(){return"32"},get reversed(){return n(O)}}),S(I),$(w,I)},g=w=>{let I=f(()=>e.type==="prev");ma(w,{get size(){return"24"},get reversed(){return n(I)}})};R(b,w=>{o()?w(y):w(g,!1)})}$(m,v)},$$slots:{default:!0}}),H()}var m2=Ce('<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 Sc(t,e){B(e,!0);let i=f(()=>hn(e.size));Je(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 a=m2();$(o,a)},$$slots:{default:!0}}),H()}var Db=require("@vkontakte/videoplayer-shared/es2015");var v2=M('<div class="icon-background-mobile s-26"></div>'),g2=M("<!> <div><!></div>",1),h2={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 ad(t,e){B(e,!0),Q(t,h2);let i=h(e,"ref",15,void 0),o=h(e,"isMobile",3,!1),r=h(e,"disabled",3,!1),a=h(e,"className",3,""),l=h(e,"click",3,Db.noop),d=G("tooltip_restart"),s=f(()=>`${o()?"btn-m--play":""} ${a()}`);qt(t,{get className(){return n(s)},testId:"replay-btn",get ariaLabel(){return d},get disabled(){return r()},get click(){return l()},get ariaKeyShortCut(){return bs.KeyK},get ref(){return i()},set ref(u){i(u)},children:(u,m)=>{var p=g2(),v=ce(p);{var b=T=>{var O=v2();$(T,O)};R(v,T=>{o()&&T(b)})}var y=A(v,2);let g;var w=C(y);let I=f(()=>o()?"48":"24");Sc(w,{get size(){return n(I)}}),S(y),D(T=>g=se(y,1,"s-26",null,g,T),[()=>({mobile:o()})]),$(u,p)},$$slots:{default:!0}}),H()}var _2=Ce('<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 Fs(t,e){B(e,!0);let i=f(()=>hn(e.size));Je(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 a=_2();$(o,a)},$$slots:{default:!0}}),H()}var Bb=require("@vkontakte/videoplayer-shared/es2015");var b2=M('<div class="icon-background-mobile s-25"><!></div>'),$2={hash:"s-25",code:".icon-background-mobile.s-25{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 ld(t,e){B(e,!0),Q(t,$2);let[i,o]=Re(),r=()=>x(a,"$fakeIsPlaying$",i),{fakeIsPlaying$:a}=bo(),l=h(e,"ref",15,void 0),d=h(e,"isMobile",3,!1),s=h(e,"isPlaying",3,!1),u=h(e,"disabled",3,!1),m=h(e,"className",3,""),p=h(e,"click",3,Bb.noop),b=ge().ui.t,{toggle:y}=a,g=f(()=>y),w=f(()=>r()!==null),I=f(()=>n(w)?r():s()),T=f(()=>n(I)?b("tooltip_pause"):b("tooltip_play")),O=f(()=>n(I)?Fs:Vn),L=f(()=>`${d()?"btn-m--play":""} ${m()}`),E=f(()=>n(w)?n(g):p());qt(t,{get className(){return n(L)},testId:"play-btn",get click(){return n(E)},get disabled(){return u()},get ariaLabel(){return n(T)},get ariaKeyShortCut(){return bs.KeyK},get ref(){return l()},set ref(P){l(P)},children:(P,q)=>{var F=Le();let z=f(()=>n(O));var j=ce(F);{var ae=ne=>{var ee=b2(),we=C(ee);Fi(we,()=>n(z),(ue,re)=>{re(ue,{get size(){return"48"}})}),S(ee),$(ne,ee)},X=ne=>{var ee=Le(),we=ce(ee);Fi(we,()=>n(z),(ue,re)=>{re(ue,{get size(){return"24"}})}),$(ne,ee)};R(j,ne=>{d()?ne(ae):ne(X,!1)})}$(P,F)},$$slots:{default:!0}}),H(),o()}var y2=Ce('<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 Jm(t){Je(t,{testId:"play-prev-chapter-icon",children:(e,i)=>{var o=y2();$(e,o)},$$slots:{default:!0}})}function Cc(t,e){B(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"hidden",3,!1),r=h(e,"disabled",3,!1),a=G("tooltip_interactive_go_back"),l=f(()=>o()?"hidden":"");qt(t,{get className(){return n(l)},testId:"play-prev-chapter-btn",get ariaLabel(){return a},get disabled(){return r()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,s)=>{Jm(d,{})},$$slots:{default:!0}}),H()}var x2=M('<span class="gutter s-24"><span><!></span></span>'),w2={hash:"s-24",code:".gutter.s-24{--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-24{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-24{background-color:var(--toggle-color-autoplay-on);transform:translateX(calc(var(--gutterWidth) - var(--togglerWidth) + var(--togglerGap)))}"};function Tc(t,e){B(e,!0),Q(t,w2);let[i,o]=Re(),r=()=>x(s,"$autoplayNextEnabled$",i),a=h(e,"ref",15,void 0),l=ge(),d=l.ui.t,s=l.ui.autoplayNextEnabled$,u=l.actions.internal.setAutoplayNextEnabled,m=()=>{u(!r(),!0)},p=d("aria_label_autoplay"),v="12",b="#000",y=f(()=>r()?"true":"false");qt(t,{click:m,get ariaLabel(){return p},role:"switch",get areaChecked(){return n(y)},get ref(){return a()},set ref(g){a(g)},children:(g,w)=>{var I=x2(),T=C(I);let O;var L=C(T);{var E=q=>{Vn(q,{get size(){return v},fill:b})},P=q=>{Fs(q,{get size(){return v},fill:b})};R(L,q=>{r()?q(E):q(P,!1)})}S(T),S(I),D(q=>O=se(T,1,"toggler s-24",null,O,q),[()=>({enabled:r()})]),$(g,I)},$$slots:{default:!0}}),H(),o()}var S2=Ce('<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 ev(t){Je(t,{testId:"seek-to-interactive-icon",children:(e,i)=>{var o=S2();pi(),$(e,o)},$$slots:{default:!0}})}function Ic(t,e){B(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"hidden",3,!1),r=h(e,"disabled",3,!1),a=G("tooltip_interactive_seek"),l=f(()=>o()?"hidden":"");qt(t,{get className(){return n(l)},testId:"btn-seek-to-interactive",get ariaLabel(){return a},get disabled(){return r()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,s)=>{ev(d,{})},$$slots:{default:!0}}),H()}var C2=Ce('<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>'),T2=Ce('<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 tv(t,e){let i=h(e,"isOpened",3,!1),o=f(()=>i()?"graph-close-icon":"graph-open-icon");Je(t,{get testId(){return n(o)},children:(r,a)=>{var l=T2(),d=A(ce(l));{var s=u=>{var m=C2();$(u,m)};R(d,u=>{i()&&u(s)})}$(r,l)},$$slots:{default:!0}})}function Ec(t,e){B(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"hidden",3,!1),r=h(e,"disabled",3,!1),a=h(e,"graphIsOpened",3,!1),d=ge().ui.t,s=f(()=>a()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),u=f(()=>o()?"hidden":"");qt(t,{get className(){return n(u)},testId:"btn-graph",get disabled(){return r()},get ariaLabel(){return n(s)},get click(){return e.click},get ref(){return i()},set ref(m){i(m)},children:(m,p)=>{let v=f(()=>!!a());tv(m,{get isOpened(){return n(v)}})},$$slots:{default:!0}}),H()}var iv=require("@vkontakte/videoplayer-core/es2015");function Pc(t,e){B(e,!0);let[i,o]=Re(),r=()=>x(u,"$playbackState$",i),a=h(e,"isMobile",3,!1),l=h(e,"isLiveActive",3,!1),d=h(e,"ariaLabel",3,""),s=ge(),u=s.state.playbackState$,m=s.actions.internal.switchToActiveLive,p=s.actions.internal.togglePlay,v=f(()=>()=>{if(!l()){m();return}r()===iv.PlaybackState.PAUSED&&p()}),b=f(()=>a()?"":"btn--live btn-full-opacity"),y=f(()=>l()?"btn-live":"btn-live-offset"),g=f(()=>l()&&r()===iv.PlaybackState.PLAYING);qt(t,{get className(){return n(b)},get testId(){return n(y)},get disabled(){return n(g)},get ariaLabel(){return d()},get click(){return n(v)},children:(w,I)=>{nc(w,{get isActive(){return l()}})},$$slots:{default:!0}}),H(),o()}var ov=require("@vkontakte/videoplayer-shared/es2015");var I2=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),E2=M('<img class="icon" aria-hidden="true"/>');function tl(t,e){"use strict";let i=K(!1),o=()=>{N(i,!0)};var r=Le(),a=ce(r);{var l=s=>{var u=I2();$(s,u)},d=s=>{var u=E2();D(()=>Me(u,"src",e.icon)),lt("error",u,o),Ra(u),$(s,u)};R(a,s=>{n(i)?s(l):s(d,!1)})}$(t,r)}function nv(t,e){B(e,!0);let i=h(e,"disabled",3,!1),o=h(e,"onClick",3,ov.noop),r=h(e,"ref",15),a=f(()=>o()===ov.noop),l=f(()=>n(a)||i()),d=f(()=>n(a)?"btn-full-opacity":"");Po(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(s){r(s)},children:(s,u)=>{let m=f(()=>{var p;return(p=e.testId)!=null?p:e.id});qt(s,{get className(){return n(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return n(l)},get testId(){return n(m)},children:(p,v)=>{tl(p,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),H()}var Hb=t=>!!t.buttonComponent;var Us={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var _p=(t,e,i,o)=>{if(t)for(let[r,a]of Object.entries(e))a.set(Xn(t,i,r,o))};var bp=require("@vkontakte/videoplayer-shared/es2015"),Fb=10,Ub=40,rv=.2,k2=.5,A2=65,L2=114,M2=4,zb=({onPreviewTrackOpened:t,getTimelineRef:e,isHorizontal:i})=>{let o=f(()=>i?A2:L2),r=K(!1),a=K(0),l=K(0),d=f(()=>n(o)+Fb-Ub-M2),s=f(()=>(0,bp.interpolate)(n(a),[rv,1],[0,-n(d)])),u=f(()=>(0,bp.interpolate)(n(a),[rv,1],[0,Ub])),m=f(()=>(0,bp.interpolate)(n(a),[rv,1],[0,n(o)+Fb]));return{progressBarY:()=>n(s),controlsY:()=>n(u),calculatedHeight:()=>n(m),onPointerDown:g=>{var w;N(l,((w=e())==null?void 0:w.getBoundingClientRect().bottom)||0,!0),N(r,!0)},onPointerMove:g=>{if(!n(r))return;let w=Math.max(Math.min(g.clientY-n(l),0),-n(d));N(a,Math.abs(w/n(d)),!0)},onPointerUp:()=>{N(r,!1),N(a,n(a)>=k2?1:0,!0),n(a)===1&&t()},closePreviewTrack:()=>{N(a,0)}}};var V2=t=>t;function xs(t,{delay:e=0,duration:i=400,easing:o=V2}={}){let r=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:a=>`opacity: ${a*r}`}}var R2=M('<span class="root s-2b"> </span>'),N2={hash:"s-2b",code:".root.s-2b{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 sv(t,e){Q(t,N2);var i=R2(),o=C(i,!0);S(i),D(()=>ve(o,e.time)),$(t,i)}var O2=M('<div class="tooltip-wrapper s-15"><div><!></div></div>'),D2={hash:"s-15",code:'.tooltip-wrapper.s-15{display:block;position:relative}.tooltip.s-15{bottom:100%;opacity:0;position:absolute;transform:translateX(-50%);transition:opacity .2s;visibility:hidden}.pointer.s-15: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-15{opacity:1;visibility:visible}'};function av(t,e){Q(t,D2);let i=h(e,"active",3,!1),o=h(e,"pointer",3,!1),r=h(e,"translateXPx",3,0),a=h(e,"translateYPx",3,0),l=h(e,"leftOffset",3,0),d=h(e,"rightOffset",3,0),s=K(void 0),u=K(void 0);function m(w){if(!n(u))return 0;let{width:I}=n(u).getBoundingClientRect(),T=I/2;return w<T?T+l():w>e.containerWidth-T?e.containerWidth-T-d():w}let p=f(()=>m(r()));var v=O2(),b=C(v);let y;var g=C(b);si(g,()=>{var w;return(w=e.children)!=null?w:_t}),S(b),Ze(b,w=>N(u,w),()=>n(u)),S(v),Ze(v,w=>N(s,w),()=>n(s)),D(w=>{qe(v,`transform: translate(${n(p)}px, ${a()}px);`),y=se(b,1,"tooltip s-15",null,y,w),qe(b,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),$(t,v)}var Wb=t=>Math.abs(t)/90%4===1;var B2=M('<div class="preview s-14"></div>'),H2=M('<div class="time s-14"> </div>'),F2=M('<div><!> <div class="episode s-14"><!></div> <!></div>'),U2={hash:"s-14",code:".timeline-preview.s-14{border-radius:2px;bottom:18px;pointer-events:none}.timeline-preview.mobile.s-14{bottom:72px}.preview.s-14{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-14{margin-bottom:4px;margin-top:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.episode.s-14,.time.s-14{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-14{color:var(--white)}"};function lv(t,e){B(e,!0),Q(t,U2);let[i,o]=Re(),r=()=>x(y,"$rotateAlpha",i),a=()=>x(g,"$playerSize",i),l={MOBILE:150,DESKTOP:278},d=h(e,"time",3,""),s=h(e,"isMobile",3,!1),u=h(e,"videoEpisodes",19,()=>[]),m=h(e,"progress",3,0),p=h(e,"duration",3,0),v=h(e,"isInteractive",3,!1),b=ge(),y=b.ui.rotateAlpha,g=b.ui.playerSize,w=K(0),I=K(0),T=K(""),O=K(0),L=K(0),E=K(0),P=K(0),q=f(()=>dp(m(),p(),u())),F=f(()=>nd(r())),z=f(()=>Wb(r())),j=f(ne),ae=f(()=>(n(z)?1:-1)*(n(w)/2-n(I)/2)),X=f(()=>n(ae)*-1);Oe(()=>{(Z=>{N(w,Z.width,!0),N(I,Z.height,!0)})(we())}),Oe(()=>{(Z=>{N(T,Z.imgSrc,!0),N(O,Z.imgWidth,!0),N(L,Z.imgHeight,!0),N(E,Z.imgOffsetX,!0),N(P,Z.imgOffsetY,!0)})(ue(m()))});function ne(){var Be;let Z=s()?l.MOBILE:l.DESKTOP,{isVertical:ie}=ee(),De=30;return(Be=n(q))!=null&&Be.text&&(De+=16),(ie||n(F))&&(De+=18,De+=50),Math.min(Math.max(a().height-De,0),Z)}function ee(){let Z=e.previewThumbsData.frameWidth,ie=e.previewThumbsData.frameHeight,De=ie>Z;return{width:Z,height:ie,isHorizontal:!De,isVertical:De}}function we(){let{height:Z,isHorizontal:ie,isVertical:De,width:Be}=ee();return ie&&(Z=Z/Be*n(j),Be=n(j)),De&&(Be=Be/Z*n(j),Z=n(j)),{width:Be,height:Z}}function ue(Z){let ie;e.previewThumbsData.isUV?ie=Math.floor(p()*Z/e.previewThumbsData.frequency):ie=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*Z)));let De=Math.floor(ie/e.previewThumbsData.countPerImage),Be=Math.floor(ie%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),nt=ie%e.previewThumbsData.countPerRow,U=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&De===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(U=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&U++);let Ae=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&De===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(Ae=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Ee=n(w)*Ae,We=n(I)*U,it=-nt*n(w),ye=-Be*n(I);return{imgSrc:e.previewThumbsData.links[De],imgWidth:Ee,imgHeight:We,imgOffsetX:it,imgOffsetY:ye}}var re=F2();let be;var $e=C(re);{var J=Z=>{var ie=B2();D(()=>qe(ie,`width: ${n(w)}px; height: ${n(I)}px; background-image: url(${n(T)}); background-size: ${n(O)}px ${n(L)}px; background-position: ${n(E)}px ${n(P)}px;
61
+ transform: rotate(${r()}deg) ${n(F)?`translate(${n(ae)}px, ${n(X)}px)`:""};
62
+ `)),$(Z,ie)};R($e,Z=>{n(T)&&Z(J)})}var Ne=A($e,2),fe=C(Ne);{var k=Z=>{var ie=Le(),De=ce(ie);{var Be=U=>{var Ae=_s();D(Ee=>ve(Ae,Ee),[()=>G("tooltip_episode_unfinished")]),$(U,Ae)},nt=U=>{var Ae=_s();D(()=>ve(Ae,n(q).text||"")),$(U,Ae)};R(De,U=>{v()&&n(q).completed===!1?U(Be):U(nt,!1)})}$(Z,ie)};R(fe,Z=>{n(q)&&Z(k)})}S(Ne);var Ke=A(Ne,2);{var Te=Z=>{var ie=H2(),De=C(ie,!0);S(ie),D(()=>ve(De,d())),$(Z,ie)};R(Ke,Z=>{v()||Z(Te)})}S(re),D(Z=>{be=se(re,1,"timeline-preview s-14",null,be,Z),qe(re,`width: ${n(F)?n(I):n(w)}px;`)},[()=>({mobile:s()})]),$(t,re),H(),o()}var z2=M('<span class="time s-g"> </span>'),W2=M("<!> <!>",1),K2={hash:"s-g",code:".time.s-g{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 dv(t,e){var le,he,Ve,at,vt;B(e,!0),Q(t,K2);let[i,o]=Re(),r=()=>x(X,"$interactiveEpisodes$",i),a=()=>x(P,"$duration$",i),l=()=>x(E,"$position$",i),d=()=>x(we,"$isInteractiveExpectation$",i),s=()=>x(ee,"$isInteractiveTime$",i),u=()=>x($e,"$previewTrackActive",i),m=()=>x(q,"$isLive$",i),p=()=>x(be,"$disabledControls$",i),v=()=>x(z,"$isMobile",i),b=()=>x(F,"$isActiveLive$",i),y=()=>x(L,"$bufferedProgress$",i),g=h(e,"showTimeline",3,!1),w=h(e,"withEpisodes",3,!0),I=h(e,"ref",15,void 0),T=ge(),O=Nt(),L=T.state.bufferedProgress$,E=T.state.positionWithScrubbing$,P=T.state.duration$,q=T.state.isLive$,F=T.state.isActiveLive$,z=T.ui.isMobile,j=O.features.episodes&&w()?T.actions.internal.getVideoEpisodes():void 0,ae=T.actions.internal.getPreviewThumbsData(),X=T.state.interactiveEpisodes$,ne=T.state.isInteractive,ee=T.state.isInteractiveTime$,we=T.state.isInteractiveExpectation$,ue=T.actions.internal.correctSeekTimeToInteractive,re=(le=T.callbacks)==null?void 0:le.onDisabledTimelineClick,be=T.ui.controls.disabledControls$,$e=T.ui.previewTrackActive,J=(Ve=(he=T.callbacks)==null?void 0:he.uiInfo)==null?void 0:Ve.onTimelineMouseEnter,Ne=(vt=(at=T.callbacks)==null?void 0:at.uiInfo)==null?void 0:vt.onTimelineMouseLeave,fe=T.ui.t,k=O.features.interactiveResponsiveUi,Ke=f(()=>ne?r():j),Te=f(()=>tn(a())),Z=f(()=>tn(l())),ie=f(()=>l()/a()),De=f(()=>d()||s()),Be=K(!1),nt=K(""),U=K(0),Ae=K(0),Ee=K(0),We=f(()=>({containerWidth:n(Ae),translateXPx:n(U),translateYPx:ne&&ae?-36:-16,active:n(Be)&&g()&&!n(De)&&!k&&!u(),pointer:!O.features.timelinePreview||!ae||m()})),it=fe("aria_timeline"),ye=f(()=>fe("aria_timeline_value",{position:n(Z),duration:n(Te)}));function Ie(pe){return!ue||!ne?pe:ue(pe*a())/a()}function He(pe,ze){var Ge;(Ge=e.onSliderPointerDown)==null||Ge.call(e,ze),T.actions.internal.startScrubbing(Ie(pe))}function Bt(pe){s()||T.actions.internal.progressScrubbing(Ie(pe))}function xt(pe){var ze;T.actions.internal.completeScrubbing(Ie(pe)),N(Be,!1),(ze=e.onSliderPointerUp)==null||ze.call(e)}function Ht(pe,ze,Ge){var St;(St=e.onSliderPointerEnter)==null||St.call(e,pe),ti(pe,ze,Ge),N(Be,!0)}function dt(pe,ze,Ge,St){var Ut;(Ut=e.onSliderMove)==null||Ut.call(e,St,pe),ti(pe,ze,Ge),N(Be,!0)}function Ct(){var pe;N(Be,!1),(pe=e.onSliderLeave)==null||pe.call(e)}function ti(pe,ze,Ge){N(Ee,Ie(pe),!0),N(U,ze,!0),Ge&&N(Ae,Ge,!0),N(nt,Lt(pe),!0)}function Lt(pe){let ze=tn((m()?1-pe:pe)*a());return m()?`-${ze}`:ze}let Ft=f(()=>p().has("TIMELINE"));var Qt=W2(),Y=ce(Qt);av(Y,es(()=>n(We),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(pe,ze)=>{var Ge=Le(),St=ce(Ge);{var Ut=ii=>{lv(ii,{get time(){return n(nt)},get isMobile(){return v()},get videoEpisodes(){return n(Ke)},get previewThumbsData(){return ae},get progress(){return n(Ee)},get duration(){return a()},get isInteractive(){return ne}})},Mt=ii=>{var Si=z2(),eo=C(Si,!0);S(Si),D(()=>ve(eo,n(nt))),$(ii,Si)};R(St,ii=>{O.features.timelinePreview&&ae&&!m()?ii(Ut):ii(Mt,!1)})}$(pe,Ge)},$$slots:{default:!0}}));var Se=A(Y,2);Za(Se,{className:"timeline-slider",get isActiveLive(){return b()},get isMobile(){return v()},get ariaLabel(){return it},ariaValueMin:0,get ariaValueMax(){return a()},get ariaValueNow(){return l()},get ariaValueText(){return n(ye)},get loadedProgress(){return y()},get filledProgress(){return n(ie)},get handleProgress(){return n(ie)},get videoEpisodes(){return n(Ke)},onPointerDown:He,onHandleMove:Bt,onPointerMove:dt,onPointerUp:xt,onPointerEnter:Ht,onPointerLeave:Ct,get onMouseEnter(){return J},get onMouseLeave(){return Ne},get onDisabledClick(){return re},get isInteractive(){return ne},get disabled(){return n(Ft)},get handleAlwaysVisible(){return u()},get hideHandel(){return s()},testId:"progress_bar",onContextMenu:xt,get ref(){return I()},set ref(pe){I(pe)}}),$(t,Qt),H(),o()}var q2={hash:"s-f",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 kc(t,e){B(e,!0),Q(t,q2);let[i,o]=Re(),r=()=>x(s,"$isMobile",i),a=h(e,"position",3,0),l=h(e,"duration",3,0),d=ge(),s=d.ui.isMobile,u=d.ui.t,m=f(()=>tn(l())),p=f(()=>tn(a())),v=f(()=>a()/l()),b=f(()=>u("aria_timeline_value",{position:n(p),duration:n(m)})),y=f(()=>Math.round(n(v)*100));Za(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return l()},get ariaValueNow(){return n(y)},get ariaValueText(){return n(b)},get filledProgress(){return n(v)},hideHandel:!0,get squareBorders(){return r()}}),H(),o()}var Q2=M("<div><!></div>"),G2=M("<div></div>"),Y2={hash:"s-d",code:".timeline.s-d{align-items:center;bottom:0;box-sizing:border-box;display:flex;min-width:86px;pointer-events:all;position:relative;width:100%}.timeline.mobile.s-d{height:16px;margin-top:6px;padding:6px 12px 7px}.withoutPadding.s-d{padding:0}.timeline-stub.s-d{min-width:20px;width:100%}.timeline-stub.mobile.s-d{height:8px}"};function il(t,e){B(e,!0),Q(t,Y2);let[i,o]=Re(),r=()=>x(w,"$isLive$",i),a=()=>x(O,"$isMobile",i),l=()=>x(L,"$disabled",i),d=()=>x(T,"$adPosition",i),s=()=>x(I,"$adDuration",i),u=h(e,"isAds",3,!1),m=h(e,"isHidden",3,!1),p=h(e,"timelineNotAvailable",3,!1),v=h(e,"needPadding",3,!0),b=h(e,"ref",15,void 0),y=ge(),g=Nt(),w=y.state.isLive$,I=y.ads.duration,T=y.ads.position,O=y.ui.isMobile,L=de(!1),E=f(()=>!p()&&(!r()||r()&&e.canRewindLive&&e.isRewindableLive||u()));var P=Le(),q=ce(P);{var F=j=>{var ae=Q2();let X;var ne=C(ae);{var ee=ue=>{kc(ue,{get position(){return d()},get duration(){return s()}})},we=ue=>{dv(ue,{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 b()},set ref(re){b(re)}})};R(ne,ue=>{u()?ue(ee):ue(we,!1)})}S(ae),Rs(ae,()=>Yl(m()&&g.features.usePerformanceFix,L,g.disableInvisibleComponentsTimeout)),D(ue=>X=se(ae,1,"timeline s-d",null,X,ue),[()=>({withoutPadding:!v(),mobile:a(),"out-of-flow":l()})]),$(j,ae)},z=j=>{var ae=G2();let X;D(ne=>X=se(ae,1,"timeline-stub s-d",null,X,ne),[()=>({mobile:a()})]),$(j,ae)};R(q,j=>{n(E)?j(F):j(z,!1)})}$(t,P),H(),o()}var Kb=require("@vkontakte/videoplayer-shared/es2015");var j2=(t,e,i,o,r,a,l)=>{N(e,!0),N(i,t.clientX,!0),N(o,n(r),!0),a(l())},X2=M("<div></div>"),Z2=M('<div><div class="track s-2c"></div></div>'),J2={hash:"s-2c",code:'.root.s-2c{display:flex;height:var(--preview-track-frame-height-horizontal);overflow:hidden;position:relative;width:100%}.root.is-vertical-video.s-2c,.root.vertically-rotated.s-2c{height:var(--preview-track-frame-height-vertical)}.root.s-2c: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-2c{bottom:0;display:flex;left:0;padding:0 50%;top:0}.frame.s-2c,.track.s-2c{position:absolute}.frame.s-2c{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-2c .frame:where(.s-2c){transform-origin:0 0}.rotate-1.s-2c{transform:rotate(-90deg) translateX(-100%)}.rotate-2.s-2c{transform:rotate(-180deg)}.rotate-3.s-2c{transform:rotate(-270deg) translateY(-100%)}'};function uv(t,e){B(e,!0),Q(t,J2);let[i,o]=Re(),r=()=>x(O,"$rotateAlpha",i),a=()=>x(g,"$position$",i),l=()=>x(y,"$duration$",i),d=ge(),{countPerImage:s=0,countPerRow:u=0,countTotal:m=0,links:p=[],frameHeight:v=0,frameWidth:b=0}=d.actions.internal.getPreviewThumbsData()||{},{duration$:y,positionWithScrubbing$:g}=d.state,{startScrubbing:w,progressScrubbing:I,completeScrubbing:T}=d.actions.internal,O=d.ui.rotateAlpha,L=K(void 0),E=K(!1),P=K(0),q=K(0),F=K(0),z=K(0),j=f(()=>v<=b),ae=f(()=>nd(r())),X=f(()=>n(j)?!n(ae):n(ae)),ne=114,ee=65,we=3,ue=f(()=>n(X)?ne:ee),re=f(()=>n(j)?ne:ee),be=f(()=>n(j)?"var(--preview-track-frame-height-horizontal)":"var(--preview-track-frame-height-vertical)"),$e=f(()=>m*n(ue)),J=K(0);Oe(()=>{N(z,Math.ceil(-n(F)/n(ue))-1),N(F,-n($e)*a()/l())});let Ne=()=>{T(fe(),!0)},fe=()=>l()*-n(F)/n($e)/l(),k=!1,Ke=ye=>{if(!n(E))return!1;let Ie=ye.clientX-n(P);N(F,n(q)+Ie),N(F,Math.max(Math.min(n(F),0),-n($e)),!0),Math.abs(Ie)>1&&(k=!0),I(fe())},Te=ye=>{n(E)&&(N(E,!1),!k&&ye&&N(F,-(ye.offsetX-n(J)/2)),k=!1,Ne())},Z=()=>{n(E)&&Te()},ie=f(()=>s/u),De=(ye,Ie)=>{if(ye!==p.length-1)return u;let He=0,Bt=Ie*u;for(let xt=1;xt<=u;xt++)ye*s+He+Bt<m&&He++;return He},Be=f(()=>Math.floor(n(z)/s)),nt=f(()=>(0,Kb.getRangeAroundIndex)(3,n(Be),p.length-1)),U=(ye,Ie,He)=>{let Bt=s*n(ue);return ye*Bt+Ie*n(ue)*u+n(J)/2-we/2+He*n(ue)},Ae=f(()=>[`--row-numbers: ${n(ie)}`,`--column-numbers: ${u}`,`--frame-width: ${n(re)}px`,`--frame-height: ${n(be)}`].join(";"));var Ee=Z2();let We;var it=C(Ee);it.__pointerdown=[j2,E,P,q,F,w,fe],it.__pointermove=Ke,it.__pointerup=Te,Ti(it,20,()=>n(nt),ye=>ye,(ye,Ie)=>{var He=Le(),Bt=ce(He);Ti(Bt,16,()=>Array.from({length:n(ie)},(xt,Ht)=>Ht),xt=>xt,(xt,Ht)=>{var dt=Le(),Ct=ce(dt);Ti(Ct,16,()=>Array.from({length:De(Ie,Ht)},(ti,Lt)=>Lt),ti=>ti,(ti,Lt)=>{var Ft=X2();D((Qt,Y)=>{qe(Ft,Qt),se(Ft,1,Y,"s-2c")},[()=>`--row-index: ${Ht}; --column-index: ${Lt}; left: ${U(Ie,Ht,Lt)}px; background-image: url(${p[Ie]});`,()=>`frame rotate-${Math.abs(r())/90%4}`]),$(ti,Ft)}),$(xt,dt)}),$(ye,He)}),S(it),S(Ee),Ze(Ee,ye=>N(L,ye),()=>n(L)),D(ye=>{We=se(Ee,1,"root s-2c",null,We,ye),qe(Ee,n(Ae)),qe(it,`transform: translateX(${n(F)}px); width: ${n($e)}px;`)},[()=>({"is-vertical-video":!n(j),"vertically-rotated":n(ae)})]),lt("mouseleave",it,Z),Ln(Ee,"clientWidth",ye=>N(J,ye)),$(t,Ee),H(),o()}je(["pointerdown","pointermove","pointerup"]);var ew=M('<div class="notification s-2d"><span class="description s-2d"> </span></div>'),tw={hash:"s-2d",code:".notification.s-2d{background:var(--notification-bg);border-radius:var(--notification-radius);padding:9px 14px 10px 12px}.description.s-2d{font-size:14px;line-height:18px}"};function pv(t,e){B(e,!1),Q(t,tw);let i=340,{ui:{t:o}}=ge();_o();var r=ew(),a=C(r),l=C(a,!0);S(a),S(r),D(d=>ve(l,d),[()=>o("preview_track_close_tooltip")],In),Jr(3,r,()=>xs,()=>({duration:i})),$(t,r),H()}var qb=require("@vkontakte/videoplayer-shared/es2015"),iw=M('<div class="preview-track-close tooltip s-29"><!></div>'),ow=M('<div class="preview-track-control s-29"><!> <div class="preview-track-close s-29"><!></div> <!></div>'),nw=M('<div class="wrapper-preview-track s-29"><!></div>'),rw=M('<div class="enriched-timeline s-29"><!> <!> <!></div>'),sw={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 fv(t,e){B(e,!0),Q(t,sw);let[i,o]=Re(),r=()=>x(g,"$playerSize",i),a=()=>x(y,"$duration$",i),l=()=>x(w,"$previewTrackActive",i),d=()=>x(v,"$position$",i),s=()=>x(b,"$isRewindableLive$",i),u=h(e,"timelineRef",15,void 0),m=ge(),p=200,{positionWithScrubbing$:v,isRewindableLive$:b,duration$:y}=m.state,{playerSize:g,previewTrackActive:w}=m.ui,{countPerImage:I=0,links:T=[],frequency:O=0}=m.actions.internal.getPreviewThumbsData()||{},L=f(()=>r().width>100),E=K(!X_()),P=()=>{n(E)&&(j_(),N(E,!1))},q=ue=>{let re=Math.floor(a()*ue/O),be=Math.floor(re/I),$e=(0,qb.getRangeAroundIndex)(3,be,T.length-1);for(let J of $e){let Ne=new Image;Ne.src=T[J]}},F=(ue,re)=>{q(re),!l()&&e.onTimelineMove(ue)};var z=rw(),j=C(z);{var ae=ue=>{var re=ow(),be=C(re);let $e=f(()=>tn(d()));sv(be,{get time(){return n($e)}});var J=A(be,2),Ne=C(J);Os(Ne,{onClick:()=>m.actions.internal.closePreviewTrack()}),S(J);var fe=A(J,2);{var k=Ke=>{var Te=iw(),Z=C(Te);pv(Z,{}),S(Te),$(Ke,Te)};R(fe,Ke=>{n(E)&&Ke(k)})}S(re),lt("mouseleave",J,P),Jr(3,re,()=>xs,()=>({duration:p})),$(ue,re)};R(j,ue=>{l()&&ue(ae)})}var X=A(j,2);let ne=f(()=>!n(L));il(X,{get isHidden(){return n(ne)},get isAds(){return e.isAds},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return s()},onSliderMove:F,get onSliderPointerDown(){return e.onTimelinePointerDown},get onSliderPointerUp(){return e.onTimelinePointerUp},get onSliderLeave(){return e.onTimelinePointerLeave},onSliderPointerEnter:q,get ref(){return u()},set ref(ue){u(ue)}});var ee=A(X,2);{var we=ue=>{var re=nw(),be=C(re);uv(be,{}),S(re),D(()=>qe(re,`height: ${e.animatedPreviewTrackHeight}px;`)),$(ue,re)};R(ee,ue=>{e.previewTrackAvailable&&ue(we)})}S(z),D(()=>qe(z,`transform: translateY(${e.animatedOffsetY}px);`)),$(t,z),H(),o()}var lw=M('<div><!> <div class="controls s-1e" data-testid="player_controls"><div class="controls-left s-1e"><!> <!> <!></div> <div class="controls-right s-1e"></div></div></div> <!>',1),dw={hash:"s-1e",code:'.wrapper-bottom.s-1e{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-1e:before{background:var(--controls-gradient);content:"";height:var(--controls-gradient-height);position:absolute;width:100%}.wrapper-bottom.s-1e>:where(.s-1e){pointer-events:auto}.controls.s-1e{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-1e,.controls-right.s-1e{align-content:center;display:flex}.controls-left.s-1e{flex-grow:1;min-width:0;overflow:hidden}.controls-left.s-1e >:not(:first-child),.controls-right.s-1e >*{margin-left:var(--controls-desktop-item-margin-left)}.controls-hidden.s-1e{transform:translateY(100%);visibility:visible}.wrapper-bottom.no-smooth.s-1e{transition:none}'};function vv(t,e){var ya,_l;B(e,!0),Q(t,dw);let[i,o]=Re(),r=()=>x(Ao,"$disabledControls$",i),a=()=>x(rt,"$adPlaybackState",i),l=()=>x(Mt,"$playbackState$",i),d=()=>x($o,"$currentSubtitle$",i),s=()=>x(eo,"$isEnded$",i),u=()=>x(bn,"$currentGridType$",i),m=()=>x(Ot,"$isLive$",i),p=()=>x(Ye,"$chromecastState$",i),v=()=>x(bt,"$isPictureInPictureActive",i),b=()=>x(Xt,"$pictureInPictureType$",i),y=()=>x(vi,"$availableSubtitlesList$",i),g=()=>x(zt,"$contextMenuOpenedByKeyboard$",i),w=()=>x(Tt,"$showContextMenuBtn$",i),I=()=>x(xi,"$isRewindableLive$",i),T=()=>x(mi,"$isActiveLive$",i),O=()=>x(as,"$graphIsOpened$",i),L=()=>x(Lo,"$contextMenuVisible$",i),E=()=>x(ao,"$isFullscreen",i),P=()=>x(Mi,"$autoplayNextEnabled",i),q=()=>x(n(Bo),"$prevButton",i),F=()=>x(n(yo),"$replayButton",i),z=()=>x(n(Ho),"$playButton",i),j=()=>x(n(ho),"$nextButton",i),ae=()=>x(n(xo),"$playPrevChapterButton",i),X=()=>x(n(Li),"$seekToInteractiveButton",i),ne=()=>x(n(zr),"$interactiveGraphButton",i),ee=()=>x(n(Fn),"$liveButton",i),we=()=>x(n(ws),"$time",i),ue=()=>x(n(Wi),"$episodes",i),re=()=>x(n(Ss),"$vkLogo",i),be=()=>x(n(Tr),"$volume",i),$e=()=>x(n(Fo),"$subtitles",i),J=()=>x(n(Ir),"$settings",i),Ne=()=>x(n(sr),"$context",i),fe=()=>x(n(ar),"$fullscreen",i),k=()=>x(n(dn),"$chromecast",i),Ke=()=>x($n,"$additionalDesktopControlPanelRightButtons$",i),Te=()=>x(Ni,"$playerSize",i),Z=()=>x(Vo,"$isInteractiveTime$",i),ie=()=>x(di,"$previewTrackActive",i),De=()=>x(Ii,"$settingsMenuVisible",i),Be=()=>x(Ki,"$settingButtonRef$",i),nt=()=>x(W,"$startedByKeyboard$",i),U=()=>x(ii,"$isAudioAvailable$",i),Ae=()=>x(Qt,"$fakeIsPlaying$",i),Ee=()=>x(ss,"$seekToInteractiveDisabledTooltip$",i),We=()=>x(Kr,"$isPreviewTrackHorizontallyAligned$",i),it=()=>x(un,"$previewTrackAvailable",i),ye=()=>x(gi,"$previewTrackDragInProgress",i),Ie=()=>x(ft,"$adPosition",i),He=()=>x(Ut,"$position$",i),Bt=()=>x(oi,"$adDuration",i),xt=()=>x(St,"$duration$",i),Ht=h(e,"playerControlsWrapperRef",15,void 0),dt=h(e,"playerControlsRef",15,void 0),Ct=h(e,"isAds",3,!1),ti=h(e,"logoTargetUrl",3,""),Lt=h(e,"isOneVideoPlaylist",3,!1),Ft=h(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:Qt}=bo(),Y=ge(),Se=bo(),le=Nt(),he=Y.actions.internal.toggleMuted,Ve=Y.actions.internal.togglePlay,at=Y.actions.internal.pause,vt=Y.actions.internal.toggleSubtitle,pe=Y.actions.internal.checkFullscreenSupport,ze=(ya=Y.callbacks)==null?void 0:ya.onAudioDoesNotExistHint,Ge=(_l=Y.callbacks)==null?void 0:_l.onAudioDisabledHint,St=Y.state.duration$,Ut=Y.state.positionWithScrubbing$,Mt=Y.state.playbackState$,ii=Y.state.isAudioAvailable$,Si=Y.state.isAudioDisabled,eo=Y.state.isEnded$,Ot=Y.state.isLive$,mi=Y.state.isActiveLive$,xi=Y.state.isRewindableLive$,{isActive$:bt,type$:Xt}=Se.pictureInPicture$,Ii=Y.ui.settingsMenu.visible$,zi=Y.ui.settingsMenu.openedByBtnKeyboard$,ei=Y.ui.controls,kt=Y.actions.internal.getVideoEpisodes(),Ye=Y.state.chromecastState$,vi=Y.state.availableSubtitlesList$,$o=Y.state.currentSubtitle$,Ao=ei.disabledControls$,Lo=Y.ui.contextMenu.visible$,Tt=Y.ui.contextMenu.showContextMenuBtn$,zt=Y.ui.contextMenu.openedByBtnKeyboard$,W=Y.ui.startedByKeyboard$,Vt=Y.ui.controlBlocks,li=Y.ui.previewTrackNotificationVisible,gt=Y.ui.t,oi=Y.ads.duration,ft=Y.ads.position,rt=Y.ads.playbackState,ao=Y.ui.isFullscreen,Ni=Y.ui.playerSize,bn=Y.ui.currentGridType$,$n=Y.ui.additionalDesktopControlPanelRightButtons$,Mi=Y.ui.autoplayNextEnabled$,Vi=Y.actions.internal.getVideoElement,Or=Y.actions.internal.replayInteractive,Mo=Y.actions.internal.prevVideoClick,lo=Y.actions.internal.nextVideoClick,Ai=Y.state.isInteractive,Vo=Y.state.isInteractiveTime$,Ro=Y.state.showInteractiveGraph,On=Y.state.showSeekToInteractive,Dr=Y.state.showPlayPrevChapter,_r=Y.state.showInteractiveTimeIndicator,rs=Y.state.playPrevChapterDisabledTooltip,ss=Se.seekToInteractiveDisabledTooltip$,as=Se.graphIsOpened$,Jn=le.features.interactiveResponsiveUi,Br=f(()=>r().has("EPISODE_BUTTON")),on=f(()=>r().has("GRAPH_BUTTON")),Dn=f(()=>r().has("SEEK_TO_INTERACTIVE_BUTTON")),br=f(()=>r().has("PLAY_BUTTON")),No=f(()=>r().has("REPLAY_BUTTON")),er=f(()=>r().has("PLAY_PREV_CHAPTER_BUTTON")),$r=()=>Y.actions.internal.toggleChromecast(),Hr=f(()=>Ct()?a()==="playing":l()===ol.PlaybackState.PLAYING),Bn=f(()=>d().value!=="off"),yr=f(()=>s()&&!Ct()||Ai),ls=f(()=>Jn?n(yr)&&no(u(),"m"):n(yr)),Oo=f(()=>!s()||Ai||Ct()),tr=f(()=>no(u(),"m")),to=f(()=>e.showNextPrevButtons&&no(u(),"m")&&!Ct()&&e.nextButtonActive),ir=f(()=>e.showNextPrevButtons&&no(u(),"m")&&!Ct()&&e.prevButtonActive),or=f(()=>!Ct()&&!!m()),ct=f(()=>p()!==ol.ChromecastState.NOT_AVAILABLE&&!(v()&&b()===1)&&no(u(),"m")&&!Ai),ni=f(()=>e.showAutoplayNext&&!Lt()&&no(u(),"s")),Fr=f(()=>y().length>0&&no(u(),"m")),xr=f(()=>g()||w()),Ur=f(()=>no(u(),"s")&&!Ct()),nn=f(()=>!e.logoHidden&&!Ct()),wr=f(()=>le.features.fullscreen&&pe()&&(e.logoHidden||no(u(),Jn?"xs":"s"))&&!(v()&&b()===1)&&(Ai?Ft():!0)),rn=f(()=>(!m()||Ct())&&!(le.features.interactiveHideTime&&Ai)),yn=f(()=>Ro&&no(u(),"m")),nr=f(()=>Jn?On&&no(u(),"s"):On),rr=f(()=>Jn?Dr&&no(u(),"s"):Dr),Do=f(()=>!Ct()&&!m()&&!!(kt!=null&&kt.length)&&n(tr)&&!n(Br)),xn=f(()=>!I()||!!T()),sn=f(()=>O()?gt("tooltip_interactive_graph_on"):gt("tooltip_interactive_graph_off")),Hn=f(()=>L()?gt("tooltip_context_menu_close"):gt("tooltip_context_menu_open")),Ci=(ot,mt)=>ot?mt&&mt===ol.PlaybackState.PAUSED?gt("tooltip_play"):"":gt("tooltip_live"),an=f(()=>Ci(n(xn),l())),wn=f(()=>le.logoType==="vk_video"?gt("tooltip_vk_video_logo"):gt("tooltip_vk_logo")),Sr=f(()=>n(Bn)?gt("tooltip_subtitles_on"):gt("tooltip_subtitles_off")),Cr=f(()=>E()?gt("tooltip_fullscreen_on"):gt("tooltip_fullscreen_off")),ln=f(()=>p()===ol.ChromecastState.CONNECTED?gt("tooltip_chromecast_on"):gt("tooltip_chromecast_off")),Sn=f(()=>P()?gt("tooltip_autoplay_on"):gt("tooltip_autoplay_off")),wt=K(0),It=ui({}),co=ui({}),Bo=f(()=>ei.prevButton),yo=f(()=>ei.replayButton),Ho=f(()=>ei.playButton),ho=f(()=>ei.nextButton),xo=f(()=>ei.playPrevChapterButton),Li=f(()=>ei.seekToInteractiveButton),zr=f(()=>ei.interactiveGraphButton),Fn=f(()=>ei.liveButton),ws=f(()=>ei.time),Wi=f(()=>ei.episodes),Ss=f(()=>ei.vkLogo),Tr=f(()=>ei.volume),Fo=f(()=>ei.subtitles),Ir=f(()=>ei.settings),sr=f(()=>ei.context),ar=f(()=>ei.fullscreen),dn=f(()=>ei.chromecast),Fe=f(()=>({prevButton:q()?q().right-q().left:0,replayButton:F()?F().right-F().left:0,playButton:z()?z().right-z().left:0,nextButton:j()?j().right-j().left:0,playPrevChapterButton:ae()?ae().right-ae().left:0,seekToInteractiveButton:X()?X().right-X().left:0,interactiveGraphButton:ne()?ne().right-ne().left:0,liveButton:ee()?ee().right-ee().left:0,time:we()?we().right-we().left:0,episodes:ue()?ue().right-ue().left:0,vkLogo:re()?re().right-re().left:0,volume:be()?be().right-be().left:0,subtitles:$e()?$e().right-$e().left:0,settings:J()?J().right-J().left:0,context:Ne()?Ne().right-Ne().left:0,fullscreen:fe()?fe().right-fe().left:0,chromecast:k()?k().right-k().left:0,additionalButtons:Ke().length?Ke().reduce(ot=>[...ot,40],[]):[]})),Et=K(0);Oe(()=>{(!n(Et)||n(Et)<n(Fe).time)&&Pt(()=>N(Et,n(Fe).time,!0))});let fi=K(!1);Oe(()=>{let ot=0;n(Do)&&(no(u(),"xl")?ot=n(Fe).time:ot=60);let mt=n(Fe).prevButton+n(Fe).playButton+n(Fe).nextButton+n(Fe).seekToInteractiveButton+n(Fe).interactiveGraphButton+n(Fe).liveButton+n(Et)+ot;N(fi,n(rn)&&n(wt)>=mt,!0)});let Uo=f(()=>n(fi)&&no(u(),"m")),wo=(0,mv.debounceFn)(sd,260),zo=(0,mv.debounceFn)(_p,260);Oe(()=>{Te(),Z(),ie(),wo(Vi(),ei,It,e.showControls),zo(Vi(),Vt,co,e.showControls)}),Oe(()=>{co.bottom=Ht()});let Ki=de();Oe(()=>{De(),Be()&&Pt(()=>Xl(Be(),De(),zi))});let So;Oe(()=>{nt(),Pt(()=>gp(W,nt(),So))});function Un(){ca({isAudioDisabled:Si,isAudioAvailable:U(),isAds:Ct(),audioIsNotExistHintCallback:ze,audioDisabledHintCallback:Ge})&&he()}let Er=Ai?Or:Ve,Co=f(()=>Ae()!==null),qi=f(()=>n(Co)?Ae():n(Hr)),Cn=f(()=>n(qi)?gt("tooltip_pause"):gt("tooltip_play")),Wo=gt("tooltip_episodes"),lr=f(()=>{var ot,mt,Qi,Go;return n(ir)?{id:"prevButton",type:"desktop-control-panel-left",weight:Hs.prevButton,buttonComponent:el,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:Mo.bind(null,!0)},tooltipEnabled:!((mt=(ot=Y.callbacks)==null?void 0:ot.uiInfo)!=null&&mt.onPrevButtonMouseEnter)&&!((Go=(Qi=Y.callbacks)==null?void 0:Qi.uiInfo)!=null&&Go.onPrevButtonMouseLeave),mouseEnter:()=>{var Gi,wi,Di;(Di=(wi=(Gi=Y.callbacks)==null?void 0:Gi.uiInfo)==null?void 0:wi.onPrevButtonMouseEnter)==null||Di.call(wi,Xn(Vi(),It,"prevButton",e.showControls))},mouseLeave:()=>{var Gi,wi,Di;(Di=(wi=(Gi=Y.callbacks)==null?void 0:Gi.uiInfo)==null?void 0:wi.onPrevButtonMouseLeave)==null||Di.call(wi,Xn(Vi(),It,"prevButton",e.showControls))},tooltipText:gt("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),Wr=f(()=>n(ls)?{id:"replayButton",type:"desktop-control-panel-left",weight:Hs.replayButton,buttonComponent:ad,buttonComponentProps:{disabled:n(No),click:Er},tooltipText:gt("tooltip_restart"),disabled:n(No)}:void 0),zn=f(()=>n(Oo)?{id:"playButton",type:"desktop-control-panel-left",weight:Hs.playButton,buttonComponent:ld,buttonComponentProps:{disabled:n(br),isPlaying:n(Hr),click:Ve},tooltipText:n(Cn),disabled:n(br)}:void 0),ds=f(()=>{var ot,mt,Qi,Go;return n(to)?{id:"nextButton",type:"desktop-control-panel-left",weight:Hs.nextButton,buttonComponent:el,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:lo.bind(null,!0)},tooltipEnabled:!((mt=(ot=Y.callbacks)==null?void 0:ot.uiInfo)!=null&&mt.onNextButtonMouseEnter)&&!((Go=(Qi=Y.callbacks)==null?void 0:Qi.uiInfo)!=null&&Go.onNextButtonMouseLeave),mouseEnter:()=>{var Gi,wi,Di;(Di=(wi=(Gi=Y.callbacks)==null?void 0:Gi.uiInfo)==null?void 0:wi.onNextButtonMouseEnter)==null||Di.call(wi,Xn(Vi(),It,"nextButton",e.showControls))},mouseLeave:()=>{var Gi,wi,Di;(Di=(wi=(Gi=Y.callbacks)==null?void 0:Gi.uiInfo)==null?void 0:wi.onNextButtonMouseLeave)==null||Di.call(wi,Xn(Vi(),It,"nextButton",e.showControls))},tooltipText:gt("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),et=f(()=>Ai&&n(rr)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:Hs.playPrevChapterButton,buttonComponent:Cc,buttonComponentProps:{disabled:n(er),click:e.playPrevChapter},tooltipText:gt("tooltip_interactive_go_back"),disabledTooltipContent:gt(rs),disabled:n(er)}:void 0),Zt=f(()=>Ai&&n(nr)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:Hs.seekToInteractiveButton,buttonComponent:Ic,buttonComponentProps:{disabled:n(Dn),click:e.seekToInteractive},tooltipText:gt("tooltip_interactive_seek"),disabled:n(Dn),disabledTooltipContent:gt(Ee())}:void 0),Pi=f(()=>Ai&&n(yn)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:Hs.interactiveGraphButton,buttonComponent:Ec,buttonComponentProps:{disabled:n(on),click:as.toggle,graphIsOpened:O()},tooltipText:n(sn)}:void 0),Ko=f(()=>n(or)?{id:"liveButton",type:"desktop-control-panel-left",weight:Hs.liveButton,buttonComponent:Pc,buttonComponentProps:{isLiveActive:n(xn),ariaLabel:n(an)},tooltipText:n(an),disabled:n(xn)&&l()===ol.PlaybackState.PLAYING}:void 0),cn=f(()=>[n(lr),n(Wr),n(zn),n(ds),n(et),n(Zt),n(Pi),n(Ko)].filter(ot=>!!ot).sort(Qa)),Wn=f(()=>n(nn)?{id:"vkLogo",type:"desktop-control-panel-right",weight:Us.vkLogo,buttonComponent:hc,buttonComponentProps:{targetUrl:ti(),logoClickable:e.logoClickable,click:at},tooltipText:n(wn),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),qo=f(()=>n(ni)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:Us.autoplayNext,buttonComponent:Tc,tooltipText:n(Sn)}:void 0),dr=f(()=>({id:"volume",type:"desktop-control-panel-right",weight:Us.volume,buttonComponent:Hm,buttonComponentProps:{click:Un,isAds:Ct()}})),Kn=f(()=>n(Fr)?{id:"subtitles",type:"desktop-control-panel-right",weight:Us.subtitles,buttonComponent:Nm,buttonComponentProps:{isSubtitlesEnabled:n(Bn),click:vt},tooltipText:n(Sr)}:void 0),ga=f(()=>n(Ur)?{id:"settings",type:"desktop-control-panel-right",weight:Us.settings,buttonComponent:id,buttonComponentProps:{ref$:Ki},tooltipText:De()?void 0:gt("tooltip_settings_off")}:void 0),cs=f(()=>le.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:Us.context,buttonComponent:Zm,buttonComponentProps:{ariaLabel:gt("aria_label_context_menu")},className:n(xr)?"":"out-of-view",tooltipText:n(Hn)}:void 0),ha=f(()=>n(wr)?{id:"fullscreen",type:"desktop-control-panel-right",weight:Us.fullscreen,buttonComponent:gc,buttonComponentProps:{isFullscreen:E(),click:e.toggleFullscreen},tooltipText:n(Cr)}:void 0),_a=f(()=>n(ct)?{id:"chromecast",type:"desktop-control-panel-right",weight:Us.chromecast,buttonComponent:bc,buttonComponentProps:{state:p(),click:$r},tooltipText:n(ln)}:void 0),ut=f(()=>[n(Wn),n(qo),n(dr),n(Kn),n(ga),n(cs),n(ha),n(_a),...Ke()].filter(ot=>!!ot).sort(Qa)),di=Y.ui.previewTrackActive,gi=Y.ui.previewTrackDragInProgress,un=Y.ui.previewTrackAvailable,Kr=Y.ui.isPreviewTrackHorizontallyAligned,Tn=f(()=>zb({onPreviewTrackOpened:Y.actions.internal.previewTrackOpened,getTimelineRef:()=>It.timeline,isHorizontal:We()})),Cs=f(()=>n(Tn).progressBarY),qr=f(()=>n(Tn).controlsY),Oi=f(()=>n(Tn).onPointerDown),me=f(()=>n(Tn).onPointerMove),pt=f(()=>n(Tn).onPointerUp),ri=f(()=>n(Tn).calculatedHeight),$i=f(()=>n(Tn).closePreviewTrack);Oe(()=>{ie()?li.set(!1):n($i)()});let ci;Rt(()=>()=>ci&&clearTimeout(ci));let uo=ot=>{ie()||!it()||(n(Oi)(ot),ci=setTimeout(()=>{Y.actions.internal.previewTrackDragStarted()},200))},Qo=()=>{ie()||n(pt)(),ci&&clearTimeout(ci),ye()&&Y.actions.internal.previewTrackDragFinished()},Ts=ot=>{n(me)(ot),!ie()&&it()&&!ie()&&li.set(!0)},us=()=>{li.set(!1)};var Is=lw(),ps=ce(Is);let Ks;var qs=C(ps);{var ba=ot=>{let mt=f(()=>n(Cs)()),Qi=f(()=>n(ri)());fv(ot,{get animatedOffsetY(){return n(mt)},get animatedPreviewTrackHeight(){return n(Qi)},get canRewindLive(){return e.canRewindLive},get isAds(){return Ct()},onTimelineMove:Ts,onTimelinePointerDown:uo,onTimelinePointerUp:Qo,onTimelinePointerLeave:us,get previewTrackAvailable(){return it()},get timelineRef(){return It.timeline},set timelineRef(Go){It.timeline=Go}})};R(qs,ot=>{e.showControls&&ot(ba)})}var pn=A(qs,2),Qs=C(pn),$a=C(Qs);Ti($a,17,()=>n(cn),ot=>ot.id,(ot,mt)=>{hp(ot,{get buttonComponent(){return n(mt).buttonComponent},get buttonComponentProps(){return n(mt).buttonComponentProps},get tooltipText(){return n(mt).tooltipText},get disabledTooltipContent(){return n(mt).disabledTooltipContent},get disabled(){return n(mt).disabled},get className(){return n(mt).className},get tooltipEnabled(){return n(mt).tooltipEnabled},get mouseEnter(){return n(mt).mouseEnter},get mouseLeave(){return n(mt).mouseLeave},get tooltipVisible(){return e.showControls},get ref(){return It[n(mt).id]},set ref(Qi){It[n(mt).id]=Qi}})});var Pr=A($a,2);{var ml=ot=>{let mt=f(()=>!e.showControls),Qi=f(()=>Ct()?Ie():He()),Go=f(()=>Ct()?Bt():xt());fc(ot,{get isHidden(){return n(mt)},isMobile:!1,get showDuration(){return n(Uo)},get position(){return n(Qi)},get duration(){return n(Go)},get ref(){return It.time},set ref(Gi){It.time=Gi}})};R(Pr,ot=>{n(rn)&&ot(ml)})}var bd=A(Pr,2);let vl=f(()=>!n(Do));Po(bd,{className:"w-max",get disabled(){return n(vl)},get tooltipContent(){return Wo},get tooltipVisible(){return e.showControls},get ref(){return It.episodes},set ref(ot){It.episodes=ot},children:(ot,mt)=>{var Qi=Le(),Go=ce(Qi);{var Gi=wi=>{$c(wi,{get position(){return He()},get duration(){return xt()},get timeCodes(){return kt}})};R(Go,wi=>{n(Do)&&wi(Gi)})}$(ot,Qi)},$$slots:{default:!0}}),S(Qs);var gl=A(Qs,2);Ti(gl,21,()=>n(ut),ot=>ot.id,(ot,mt)=>{var Qi=Le(),Go=ce(Qi);{var Gi=Di=>{hp(Di,{get buttonComponent(){return n(mt).buttonComponent},get buttonComponentProps(){return n(mt).buttonComponentProps},get tooltipText(){return n(mt).tooltipText},get disabledTooltipContent(){return n(mt).disabledTooltipContent},get disabled(){return n(mt).disabled},get className(){return n(mt).className},get tooltipVisible(){return e.showControls},get ref(){return It[n(mt).id]},set ref(xa){It[n(mt).id]=xa}})},wi=Di=>{let xa=f(()=>!!n(mt).disabled);nv(Di,{get id(){return n(mt).id},get testId(){return n(mt).testId},get icon(){return n(mt).icon},get ariaLabel(){return n(mt).ariaLabel},get tooltipText(){return n(mt).tooltipText},get disabledTooltipContent(){return n(mt).disabledTooltipContent},get disabled(){return n(xa)},get onClick(){return n(mt).onClick},get disableMouseupTooltipShow(){return n(mt).disableMouseupTooltipShow},get tooltipVisible(){return e.showControls},get ref(){return It[n(mt).id]},set ref(bl){It[n(mt).id]=bl}})};R(Go,Di=>{Hb(n(mt))?Di(Gi):Di(wi,!1)})}$(ot,Qi)}),S(gl),S(pn),Ze(pn,ot=>dt(ot),()=>dt()),S(ps),Ze(ps,ot=>Ht(ot),()=>Ht());var hl=A(ps,2);{var $d=ot=>{wc(ot,{get ref(){return It.interactiveTimeIndicator},set ref(mt){It.interactiveTimeIndicator=mt}})};R(hl,ot=>{_r&&ot($d)})}D((ot,mt)=>{Ks=se(ps,1,"wrapper-bottom s-1e",null,Ks,ot),qe(pn,mt),pn.inert=ie()},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth||ye()}),()=>`transform: translateY(${n(qr)()}px);`]),Ln(Qs,"clientWidth",ot=>N(wt,ot)),$(t,Is),H(),o()}var dd=require("@vkontakte/videoplayer-core/es2015");var gv=require("@vkontakte/videoplayer-shared/es2015");var cw=M('<div class="icon icon-error-stub s-20"><div class="inner s-20"></div></div>'),uw=M('<img class="icon s-20" aria-hidden="true"/>'),pw={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 hv(t,e){Q(t,pw);let i=h(e,"disabled",3,!1),o=h(e,"onClick",3,gv.noop),r=f(()=>o()===gv.noop),a=f(()=>n(r)||i()),l=K(!1),d=()=>{N(l,!0)},s=f(()=>n(r)?"btn-full-opacity":"");qt(t,{get className(){return n(s)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return n(a)},get testId(){return e.testId},children:(u,m)=>{var p=Le(),v=ce(p);{var b=g=>{var w=cw();$(g,w)},y=g=>{var w=uw();D(()=>Me(w,"src",e.iconUrl)),lt("error",w,d),Ra(w),$(g,w)};R(v,g=>{n(l)?g(b):g(y,!1)})}$(u,p)},$$slots:{default:!0}})}var fw=Ce('<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 _v(t){Je(t,{testId:"muted-icon",children:(e,i)=>{var o=fw();$(e,o)},$$slots:{default:!0}})}var Qb=require("@vkontakte/videoplayer-shared/es2015");function $p(t,e){B(e,!0);let i=h(e,"muted",3,!1),o=h(e,"click",3,Qb.noop),r=h(e,"ref",15,void 0),l=ge().ui.t,d=f(()=>i()?l("tooltip_volume"):l("tooltip_volume_muted")),s=f(()=>i()?"btn-mobile-muted":"btn-mobile-unmuted");qt(t,{get testId(){return n(s)},get click(){return o()},get ariaLabel(){return n(d)},role:"button",get ref(){return r()},set ref(u){r(u)},children:(u,m)=>{var p=Le(),v=ce(p);{var b=g=>{_v(g,{})},y=g=>{fa(g,{get size(){return"24"}})};R(v,g=>{i()?g(b):g(y,!1)})}$(u,p)},$$slots:{default:!0}}),H()}var mw=Ce('<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>'),vw=Ce('<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>'),gw=Ce('<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 bv(t,e){let i=h(e,"isActive",3,!1),o=f(()=>i()?"pip-icon--active":"pip-icon");Je(t,{get testId(){return n(o)},children:(r,a)=>{var l=gw(),d=A(ce(l));{var s=m=>{var p=mw();$(m,p)},u=m=>{var p=vw();$(m,p)};R(d,m=>{i()?m(s):m(u,!1)})}$(r,l)},$$slots:{default:!0}})}var Gb=require("@vkontakte/videoplayer-shared/es2015");function $v(t,e){B(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"isPictureInPictureActive",3,!1),r=h(e,"click",3,Gb.noop),a=G("menu_pip");qt(t,{testId:"btn-pip",get ariaLabel(){return a},get click(){return r()},get ref(){return i()},set ref(l){i(l)},children:(l,d)=>{bv(l,{get isActive(){return o()}})},$$slots:{default:!0}}),H()}var yv=require("@vkontakte/videoplayer-shared/es2015");var hw=(t,e,i,o)=>{n(e)&&i.onDisabledPlayPrevChapterClick(n(o))},_w=(t,e,i,o)=>{n(e)&&i.onDisabledSeekToInteractiveClick(n(o))},bw=M("<div><!></div>"),$w=M("<div><!></div>"),yw=M("<div><!></div>"),xw=M("<!> <!> <!>",1),ww=M("<div></div> <div></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),Sw=M('<div class="wrapper-middle s-1b"><!></div>'),Cw=M("<div><!></div> <!> <div><!></div>",1),Tw=M('<div aria-hidden="true">·</div> <!>',1),Iw=M('<!> <!> <div><div><div class="controls mobile s-1b" data-testid="bottom-controls"><div class="controls-group contain s-1b"><!> <!> <!> <!></div> <div class="controls-group s-1b"><!> <!> <!></div></div> <!></div></div> <!>',1),Ew={hash:"s-1b",code:".wrapper-bottom.s-1b{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-1b>:where(.s-1b){pointer-events:auto}.wrapper-bottom.ads-timeline-mobile.s-1b{height:9px;padding:0 4px 4px}.wrapper-middle.s-1b{align-items:center;left:50%;top:50%;transform:translate(-50%,-50%)}.wrapper-middle.s-1b,.wrapper-top-right.s-1b{display:flex;position:absolute;transition:opacity var(--controls-transition-duration);z-index:var(--controls-container-z-index)}.wrapper-top-right.s-1b{right:8px;top:4px}.wrapper-top-left.s-1b{left:8px;position:absolute;top:4px;z-index:var(--controls-container-z-index)}.wrapper-middle-left.s-1b,.wrapper-middle-left-second.s-1b,.wrapper-middle-right.s-1b{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-1b{left:12px}.wrapper-middle-left-second.s-1b{left:64px}.wrapper-middle-right.s-1b{right:12px}.controls.s-1b{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-1b,.controls-group.s-1b{display:flex}.controls-group.contain.s-1b{min-width:0}.controls-group.s-1b >:not(:first-child){margin-left:8px}.hidden.s-1b{opacity:0;visibility:hidden}.controls-hidden.s-1b{transform:translateY(100%);visibility:visible}.wrapper-bottom.no-smooth.s-1b{transition:none}.overlay-mobile.s-1b{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-1b,.wrapper-top-right.fullscreen.s-1b{top:16px}.controls-wrapper.fullscreen.s-1b{bottom:30px;position:absolute;width:calc(100% - 8px)}}@media screen and (orientation:landscape){.wrapper-top-left.fullscreen.s-1b{left:44px;top:12px}.wrapper-top-right.fullscreen.s-1b{right:44px;top:12px}.wrapper-middle-left.fullscreen.s-1b{left:44px}.wrapper-middle-left-second.fullscreen.s-1b{left:96px}.wrapper-middle-right.fullscreen.s-1b{right:44px}.controls-wrapper.fullscreen.s-1b{bottom:32px;left:36px;position:absolute;right:36px;width:calc(100% - 72px)}}"};function xv(t,e){var ar,dn;B(e,!0),Q(t,Ew);let[i,o]=Re(),r=()=>x(Ni,"$seekToInteractiveDisabledTooltip$",i),a=()=>x(ei,"$disabledControls$",i),l=()=>x(Lt,"$playbackState$",i),d=()=>x(Ao,"$adPlaybackState",i),s=()=>x(Y,"$isEnded$",i),u=()=>x(Tt,"$playerSize",i),m=()=>x(vt,"$scrubbingInProgress",i),p=()=>x(Ii,"$chromecastState$",i),v=()=>x(ze,"$isPictureInPictureActive",i),b=()=>x(Ge,"$pictureInPictureType$",i),y=()=>x(pe,"$mobileNotReportControlHidden$",i),g=()=>x(xi,"$chromecastHidden",i),w=()=>x(dt,"$playerPhase",i),I=()=>x(Ot,"$pipHidden",i),T=()=>x(Ye,"$currentGridType$",i),O=()=>x(Si,"$vkLogoHidden",i),L=()=>x(ii,"$volumeHidden",i),E=()=>x(Se,"$isLive$",i),P=()=>x(St,"$settingsMenuVisible",i),q=()=>x(at,"$isRewindableLive$",i),F=()=>x(Ve,"$isActiveLive$",i),z=()=>x(Ft,"$isAudioAvailable$",i),j=()=>x(he,"$muted$",i),ae=()=>x(le,"$volume$",i),X=()=>x(gt,"$isInteractiveTime$",i),ne=()=>x(nr,"$settingButtonRef$",i),ee=()=>x(kt,"$startedByKeyboard$",i),we=()=>x(Lo,"$isFullscreen",i),ue=()=>x(zt,"$additionalButtons$",i),re=()=>x(eo,"$autoplayNextToggleHidden",i),be=()=>x(zi,"$crashed$",i),$e=()=>x(mi,"$settingsHidden",i),J=()=>x(bn,"$graphIsOpened$",i),Ne=()=>x($o,"$adPosition",i),fe=()=>x(vi,"$adDuration",i),k=()=>x(ti,"$position$",i),Ke=()=>x(Ct,"$duration$",i),Te=h(e,"playerControlsWrapperRef",15,void 0),Z=h(e,"playerControlsRef",15,void 0),ie=h(e,"isAds",3,!1),De=h(e,"logoTargetUrl",3,""),Be=h(e,"isOneVideoPlaylist",3,!1),nt=h(e,"customFullscreenSupported",3,!0),U=ge(),Ae=bo(),Ee=Nt(),We=U.actions.internal.toggleMuted,it=U.actions.internal.togglePlay,ye=U.actions.internal.pause,Ie=U.actions.internal.prevVideoClick,He=U.actions.internal.nextVideoClick,Bt=U.actions.internal.checkFullscreenSupport,xt=(ar=U.callbacks)==null?void 0:ar.onAudioDoesNotExistHint,Ht=(dn=U.callbacks)==null?void 0:dn.onAudioDisabledHint,dt=U.playerPhase,Ct=U.state.duration$,ti=U.state.positionWithScrubbing$,Lt=U.state.playbackState$,Ft=U.state.isAudioAvailable$,Qt=U.state.isAudioDisabled,Y=U.state.isEnded$,Se=U.state.isLive$,le=U.state.volume$,he=U.state.muted$,Ve=U.state.isActiveLive$,at=U.state.isRewindableLive$,vt=U.ui.scrubbingInProgress,pe=U.ui.mobileNotReportControlHidden$,{isActive$:ze,type$:Ge}=Ae.pictureInPicture$,St=U.ui.settingsMenu.visible$,Ut=U.ui.settingsMenu.openedByBtnKeyboard$,Mt=U.ui.controls,{volume:ii,vkLogo:Si,autoplayNextToggle:eo,pip:Ot,settings:mi,chromecast:xi}=U.ui.hiddenControls,bt=U.actions.internal.getVideoEpisodes(),Xt=U.webApi.pictureInPictureApi,Ii=U.state.chromecastState$,zi=U.state.crashed$,ei=Mt.disabledControls$,kt=U.ui.startedByKeyboard$,Ye=U.ui.currentGridType$,vi=U.ads.duration,$o=U.ads.position,Ao=U.ads.playbackState,Lo=U.ui.isFullscreen,Tt=U.ui.playerSize,zt=U.ui.additionalButtonsDeprecated$,W=U.actions.internal.getVideoElement,Vt=U.actions.internal.replayInteractive,li=U.state.isInteractive,gt=U.state.isInteractiveTime$,oi=U.state.showInteractiveGraph,ft=U.state.showSeekToInteractive,rt=U.state.showPlayPrevChapter,ao=U.state.showInteractiveTimeIndicator,Ni=Ae.seekToInteractiveDisabledTooltip$,bn=Ae.graphIsOpened$,$n=U.ui.controlBlocks,Mi=f(()=>G(U.state.playPrevChapterDisabledTooltip)),Vi=f(()=>G(r())),Or=f(()=>a().has("EPISODE_BUTTON")),Mo=f(()=>a().has("GRAPH_BUTTON")),lo=f(()=>a().has("SEEK_TO_INTERACTIVE_BUTTON")),Ai=f(()=>a().has("PLAY_BUTTON")),Vo=f(()=>a().has("REPLAY_BUTTON")),Ro=f(()=>a().has("PLAY_PREV_CHAPTER_BUTTON")),On=f(()=>l()===dd.PlaybackState.PLAYING),Dr=f(()=>d()==="paused"),_r=f(()=>s()&&!ie()&&!li),rs=f(()=>!s()||ie()),ss=f(()=>e.showNextPrevButtons&&!ie()&&e.prevButtonActive),as=f(()=>e.showNextPrevButtons&&!ie()&&e.nextButtonActive),Jn=f(()=>u().width>300),Br=f(()=>u().width>400),on=f(m),Dn=f(()=>p()!==dd.ChromecastState.NOT_AVAILABLE&&!(v()&&b()===1)&&!y()&&!li&&!g()),br=f(()=>w()==="LiveWaitingStart"),No=f(()=>!!Xt&&p()!==dd.ChromecastState.CONNECTED&&!y()&&(b()===1&&n(br)||!n(br))&&!n(on)&&!li&&!I()),er=K(!1);Rt(()=>{let Fe=Xt==null?void 0:Xt.info.isActive$.subscribe(Et=>N(er,Et,!0));return()=>Fe==null?void 0:Fe.unsubscribe()});let $r=f(()=>!n(on)&&no(T(),"s")),Hr=f(()=>!e.logoHidden&&u().width>350&&!O()),Bn=f(()=>Ee.features.fullscreen&&Bt()&&!(v()&&b()===1)&&(li?nt():!0)&&!n(on)&&!n(er)),yr=f(()=>!L()&&!n(on)),ls=f(()=>(!E()||ie())&&u().width>260&&!n(on)&&!(Ee.features.interactiveHideTime&&li)),Oo=f(()=>P()||e.showControls),tr=f(()=>!ie()&&!E()&&!!(bt!=null&&bt.length)&&n(Jn)&&!n(Or)&&!n(on)),to=f(()=>!q()||!!F()),ir=f(()=>oi&&no(T(),"m")),or=f(()=>!z()||j()||ae()===0),ct=ui({}),ni=ui({}),Fr=(0,yv.debounceFn)(sd,260),xr=(0,yv.debounceFn)(_p,260);Oe(()=>{u(),X(),Fr(W(),Mt,ct,e.showControls),xr(W(),$n,ni,e.showControls)});let Ur=()=>U.actions.internal.toggleChromecast();function nn(){return ht(this,null,function*(){Xt!=null&&Xt.isActive()?yield Xt==null?void 0:Xt.exit():yield Xt==null?void 0:Xt.request()})}function wr(){ca({isAudioDisabled:Qt,audioDisabledHintCallback:Ht,isAudioAvailable:z(),audioIsNotExistHintCallback:xt,isAds:ie()})&&We()}let rn=K(""),yn=(Fe,Et)=>{if(!Fe){N(rn,G("tooltip_live"),!0);return}Et&&Et===dd.PlaybackState.PAUSED&&N(rn,G("tooltip_play"),!0)};Oe(()=>{yn(n(to),l())});let nr=de();Oe(()=>{ne()&&Xl(ne(),P(),Ut)}),Oe(()=>{gp(kt,ee(),ct.playButton)});var rr=Iw(),Do=ce(rr);{var xn=Fe=>{var Et=ww(),fi=ce(Et);let Uo;var wo=A(fi,2);let zo;Ze(wo,ut=>ni.topLeft=ut,()=>ni==null?void 0:ni.topLeft);var Ki=A(wo,2);let So;var Un=C(Ki);Ti(Un,1,ue,({iconUrl:ut,ariaLabel:di,testId:gi,onClick:un,tooltip:Kr})=>ut,(ut,di)=>{let gi=()=>n(di).iconUrl,un=()=>n(di).ariaLabel,Kr=()=>n(di).testId,Tn=()=>n(di).onClick,Cs=()=>n(di).tooltip,qr=f(()=>{var Oi;return(Oi=un())!=null?Oi:Cs()});hv(ut,{get iconUrl(){return gi()},get ariaLabel(){return n(qr)},get testId(){return Kr()},get onClick(){return Tn()}})});var Er=A(Un,2);{var Co=ut=>{Tc(ut,{get ref(){return ct.autoplayNextToggle},set ref(di){ct.autoplayNextToggle=di}})};R(Er,ut=>{e.showAutoplayNext&&!Be()&&!re()&&ut(Co)})}var qi=A(Er,2);{var Cn=ut=>{bc(ut,{isMobile:!0,click:Ur,get state(){return p()},get ref(){return ct.chromecast},set ref(di){ct.chromecast=di}})};R(qi,ut=>{n(Dn)&&ut(Cn)})}var Wo=A(qi,2);{var lr=ut=>{$v(ut,{click:nn,get isPictureInPictureActive(){return v()},get ref(){return ct.pip},set ref(di){ct.pip=di}})};R(Wo,ut=>{n(No)&&ut(lr)})}var Wr=A(Wo,2);{var zn=ut=>{id(ut,{get ref$(){return nr}})};R(Wr,ut=>{be()&&!$e()&&ut(zn)})}var ds=A(Wr,2);{var et=ut=>{hc(ut,{get click(){return ye},get targetUrl(){return De()},get logoClickable(){return e.logoClickable},get ref(){return ct.vkLogo},set ref(di){ct.vkLogo=di}})};R(ds,ut=>{n(Hr)&&ut(et)})}S(Ki),Ze(Ki,ut=>ni.topRight=ut,()=>ni==null?void 0:ni.topRight);var Zt=A(Ki,2);let Pi;var Ko=C(Zt);{var cn=ut=>{let di=f(()=>Ie.bind(null,!0));el(ut,{get click(){return n(di)},type:"prev",isMobile:!0,get ref(){return ct.prevButton},set ref(gi){ct.prevButton=gi}})};R(Ko,ut=>{n(ss)&&ut(cn)})}var Wn=A(Ko,2);{var qo=ut=>{ld(ut,{get disabled(){return n(Ai)},get click(){return it},isMobile:!0,get isPlaying(){return n(On)},get ref(){return ct.playButton},set ref(di){ct.playButton=di}})};R(Wn,ut=>{n(rs)&&ut(qo)})}var dr=A(Wn,2);{var Kn=ut=>{ad(ut,{get disabled(){return n(Vo)},get click(){return it},isMobile:!0,get ref(){return ct.replayButton},set ref(di){ct.replayButton=di}})};R(dr,ut=>{n(_r)&&ut(Kn)})}var ga=A(dr,2);{var cs=ut=>{let di=f(()=>He.bind(null,!0));el(ut,{get click(){return n(di)},type:"next",isMobile:!0,get ref(){return ct.nextButton},set ref(gi){ct.nextButton=gi}})};R(ga,ut=>{n(as)&&ut(cs)})}S(Zt),Ze(Zt,ut=>ni.middle=ut,()=>ni==null?void 0:ni.middle);var ha=A(Zt,2);{var _a=ut=>{var di=xw(),gi=ce(di);{var un=Oi=>{var me=bw();let pt;me.__click=[hw,Ro,e,Mi];var ri=C(me);let $i=f(()=>!e.showControls);Cc(ri,{get hidden(){return n($i)},get disabled(){return n(Ro)},get click(){return e.playPrevChapter},get ref(){return ct.playPrevChapterButton},set ref(ci){ct.playPrevChapterButton=ci}}),S(me),D(ci=>pt=se(me,1,"wrapper-middle-left s-1b",null,pt,ci),[()=>({fullscreen:we(),hidden:!e.showControls})]),$(Oi,me)};R(gi,Oi=>{rt&&Oi(un)})}var Kr=A(gi,2);{var Tn=Oi=>{var me=$w();let pt;var ri=C(me);let $i=f(()=>!e.showControls&&!J());Ec(ri,{get hidden(){return n($i)},get disabled(){return n(Mo)},get click(){return bn.toggle},get graphIsOpened(){return J()},get ref(){return ct.interactiveGraphButton},set ref(ci){ct.interactiveGraphButton=ci}}),S(me),D(ci=>pt=se(me,1,Wd(rt?"wrapper-middle-left-second":"wrapper-middle-left"),"s-1b",pt,ci),[()=>({fullscreen:we(),hidden:!e.showControls&&!J()})]),$(Oi,me)};R(Kr,Oi=>{n(ir)&&Oi(Tn)})}var Cs=A(Kr,2);{var qr=Oi=>{var me=yw();let pt;me.__click=[_w,lo,e,Vi];var ri=C(me);let $i=f(()=>!e.showControls);Ic(ri,{get hidden(){return n($i)},get disabled(){return n(lo)},get click(){return e.seekToInteractive},get ref(){return ct.seekToInteractiveButton},set ref(ci){ct.seekToInteractiveButton=ci}}),S(me),D(ci=>pt=se(me,1,"wrapper-middle-right s-1b",null,pt,ci),[()=>({fullscreen:we(),hidden:!e.showControls})]),$(Oi,me)};R(Cs,Oi=>{ft&&Oi(qr)})}$(ut,di)};R(ha,ut=>{li&&!m()&&ut(_a)})}D((ut,di,gi,un)=>{Uo=se(fi,1,"overlay-mobile s-1b",null,Uo,ut),zo=se(wo,1,"wrapper-top-left s-1b",null,zo,di),So=se(Ki,1,"wrapper-top-right s-1b",null,So,gi),Pi=se(Zt,1,"wrapper-middle s-1b",null,Pi,un)},[()=>({hidden:!n(Oo)}),()=>({hidden:!e.showControls,fullscreen:we()}),()=>({hidden:!e.showControls&&!y(),fullscreen:we()}),()=>({hidden:!e.showControls||m()||e.endScreenShown&&e.showNextPrevButtons})]),$(Fe,Et)};R(Do,Fe=>{ie()||Fe(xn)})}var sn=A(Do,2);{var Hn=Fe=>{var Et=Cw(),fi=ce(Et);let Uo;var wo=C(fi);$p(wo,{get muted(){return j()},click:wr,get ref(){return ct.volume},set ref(Co){ct.volume=Co}}),S(fi);var zo=A(fi,2);{var Ki=Co=>{var qi=Sw(),Cn=C(qi);let Wo=f(()=>!n(Dr));ld(Cn,{get disabled(){return n(Ai)},get click(){return it},isMobile:!0,get isPlaying(){return n(Wo)},get ref(){return ct.playButton},set ref(lr){ct.playButton=lr}}),S(qi),$(Co,qi)};R(zo,Co=>{n(Dr)&&Co(Ki)})}var So=A(zo,2);let Un;var Er=C(So);kc(Er,{get position(){return Ne()},get duration(){return fe()}}),S(So),D((Co,qi)=>{Uo=se(fi,1,"wrapper-top-right s-1b",null,Uo,Co),Un=se(So,1,"wrapper-bottom ads-timeline-mobile s-1b",null,Un,qi)},[()=>({fullscreen:we()}),()=>({fullscreen:we()})]),$(Fe,Et)};R(sn,Fe=>{ie()&&d()!=="inactive"&&Fe(Hn)})}var Ci=A(sn,2);let an;var wn=C(Ci);let Sr;var Cr=C(wn),ln=C(Cr),Sn=C(ln);{var wt=Fe=>{Po(Fe,{get disabled(){return n(Vo)},get ref(){return ct.replayButton},set ref(Et){ct.replayButton=Et},children:(Et,fi)=>{ad(Et,{get disabled(){return n(Vo)},get click(){return Vt}})},$$slots:{default:!0}})};R(Sn,Fe=>{li&&Fe(wt)})}var It=A(Sn,2);{var co=Fe=>{Po(Fe,{get ref(){return ct.liveButton},set ref(Et){ct.liveButton=Et},children:(Et,fi)=>{Pc(Et,{get isLiveActive(){return n(to)},isMobile:!0,get ariaLabel(){return n(rn)}})},$$slots:{default:!0}})};R(It,Fe=>{!ie()&&E()&&Fe(co)})}var Bo=A(It,2);{var yo=Fe=>{let Et=f(()=>ie()?Ne():k()),fi=f(()=>ie()?fe():Ke()),Uo=f(()=>!e.showControls);fc(Fe,{get showDuration(){return n(Br)},get position(){return n(Et)},get duration(){return n(fi)},isMobile:!0,get isHidden(){return n(Uo)},get ref(){return ct.time},set ref(wo){ct.time=wo}})};R(Bo,Fe=>{n(ls)&&Fe(yo)})}var Ho=A(Bo,2);let ho=f(()=>!n(tr));Po(Ho,{className:"w-max",get disabled(){return n(ho)},get ref(){return ct.episodes},set ref(Fe){ct.episodes=Fe},children:(Fe,Et)=>{var fi=Le(),Uo=ce(fi);{var wo=zo=>{var Ki=Tw(),So=A(ce(Ki),2);$c(So,{get position(){return k()},get duration(){return Ke()},get timeCodes(){return bt}}),$(zo,Ki)};R(Uo,zo=>{n(tr)&&zo(wo)})}$(Fe,fi)},$$slots:{default:!0}}),S(ln),Ze(ln,Fe=>ni.bottomLeft=Fe,()=>ni==null?void 0:ni.bottomLeft);var xo=A(ln,2),Li=C(xo);{var zr=Fe=>{Po(Fe,{get ref(){return ct.volume},set ref(Et){ct.volume=Et},children:(Et,fi)=>{$p(Et,{get muted(){return n(or)},click:wr})},$$slots:{default:!0}})};R(Li,Fe=>{n(yr)&&Fe(zr)})}var Fn=A(Li,2);{var ws=Fe=>{Po(Fe,{get ref(){return ct.settings},set ref(Et){ct.settings=Et},children:(Et,fi)=>{id(Et,{get ref$(){return nr}})},$$slots:{default:!0}})};R(Fn,Fe=>{n($r)&&Fe(ws)})}var Wi=A(Fn,2);{var Ss=Fe=>{Po(Fe,{get ref(){return ct.fullscreen},set ref(Et){ct.fullscreen=Et},children:(Et,fi)=>{gc(Et,{get click(){return e.toggleFullscreen},get isFullscreen(){return we()}})},$$slots:{default:!0}})};R(Wi,Fe=>{n(Bn)&&Fe(Ss)})}S(xo),Ze(xo,Fe=>ni.bottomRight=Fe,()=>ni==null?void 0:ni.bottomRight),S(Cr),Ze(Cr,Fe=>Z(Fe),()=>Z());var Tr=A(Cr,2);let Fo=f(()=>!e.showControls);il(Tr,{get isHidden(){return n(Fo)},get isAds(){return ie()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return q()},get ref(){return ct.timeline},set ref(Fe){ct.timeline=Fe}}),S(wn),Ze(wn,Fe=>ni.bottom=Fe,()=>ni==null?void 0:ni.bottom),S(Ci),Ze(Ci,Fe=>Te(Fe),()=>Te());var Ir=A(Ci,2);{var sr=Fe=>{wc(Fe,{get ref(){return ct.interactiveTimeIndicator},set ref(Et){ct.interactiveTimeIndicator=Et}})};R(Ir,Fe=>{ao&&Fe(sr)})}D((Fe,Et)=>{an=se(Ci,1,"wrapper-bottom mobile s-1b",null,an,Fe),Sr=se(wn,1,"controls-wrapper s-1b",null,Sr,Et)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth}),()=>({fullscreen:we()})]),$(t,rr),H(),o()}je(["click"]);function Ac(t,e){B(e,!0);let[i,o]=Re(),r=()=>x(I,"$isMobile",i),a=h(e,"bottomNoSmooth",3,!1),l=h(e,"playerControlsWrapperRef",15,void 0),d=h(e,"playerControlsRef",15,void 0),s=h(e,"isAds",3,!1),u=h(e,"logoTargetUrl",3,""),m=h(e,"showAutoplayNext",3,!1),p=h(e,"isOneVideoPlaylist",3,!1),v=h(e,"customFullscreenSupported",3,!0),b=h(e,"endScreenShown",3,!1),y=h(e,"onDisabledPlayPrevChapterClick",3,wv.noop),g=h(e,"onDisabledSeekToInteractiveClick",3,wv.noop),I=ge().ui.isMobile,T=K(!1);Rt(()=>{let P=setTimeout(()=>N(T,!0),0);return()=>clearTimeout(P)});var O=Le(),L=ce(O);{var E=P=>{var q=Le(),F=ce(q);{var z=ae=>{xv(ae,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return a()},get showControls(){return e.showControls},get isAds(){return s()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},get showAutoplayNext(){return m()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get isOneVideoPlaylist(){return p()},get customFullscreenSupported(){return v()},get endScreenShown(){return b()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return y()},get onDisabledSeekToInteractiveClick(){return g()},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(X){l(X)},get playerControlsRef(){return d()},set playerControlsRef(X){d(X)}})},j=ae=>{vv(ae,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return a()},get showControls(){return e.showControls},get isAds(){return s()},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 m()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get customFullscreenSupported(){return v()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(X){l(X)},get playerControlsRef(){return d()},set playerControlsRef(X){d(X)}})};R(F,ae=>{r()?ae(z):ae(j,!1)})}$(P,q)};R(L,P=>{n(T)&&P(E)})}$(t,O),H(),o()}var Pw=Ce('<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 Lc(t,e){B(e,!0);let i=f(()=>e.reversed?"transform:scaleX(-1);transform-origin:50% 0;":""),o=f(()=>`${hn(e.size)}${n(i)}`);Je(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,a)=>{var l=Pw();$(r,l)},$$slots:{default:!0}}),H()}var kw=Ce('<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 Sv(t,e){B(e,!0);let i=h(e,"reversed",3,!1),o=f(()=>i()?"transform:scaleX(-1);transform-origin: 50% 0;":void 0),r=f(()=>`seek-icon-${i()?"backward":"forward"}`);Je(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:(a,l)=>{var d=kw();$(a,d)},$$slots:{default:!0}}),H()}var Aw=M('<span class="hot-key-helpers-text s-n"> </span>'),Lw=M('<div data-testid="hotkey-helper-icon" class="s-n"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),Mw=M("<div><!></div>"),Vw={hash:"s-n",code:'.hot-key-helpers-container.s-n{align-items:center;animation:s-n-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-n{left:calc(25% - 100px)}.hot-key-helpers-container--right.s-n{left:calc(75% - 100px)}.hot-key-helpers-text.s-n{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-n{animation:s-n-fadeOut ease var(--controls-transition-duration);height:0;visibility:hidden;width:0}@keyframes s-n-fadeIn{0%{opacity:0}to{opacity:1}}@keyframes s-n-fadeOut{0%{opacity:1}to{opacity:0}}'};function Cv(t,e){B(e,!0),Q(t,Vw);let[i,o]=Re(),r=()=>x(e.data,"$data",i),a=ge(),{features:l}=Nt(),d=a.ui.t,s=f(()=>!r()),u=f(()=>{var I;return((I=r())==null?void 0:I.type)==="BACKWARD_SEEK"}),m=f(()=>{var I;return((I=r())==null?void 0:I.type)==="FORWARD_SEEK"}),p=f(()=>{var I;return(I=r())==null?void 0:I.type}),v=f(()=>{var I,T;return(I=r())!=null&&I.t?d(r().t.key,{value:r().t.value||""}):(T=r())==null?void 0:T.text});var b=Mw();let y;var g=C(b);{var w=I=>{var T=Lw(),O=ce(T),L=C(O);{var E=Z=>{let ie=f(()=>n(p)==="BACKWARD_SEEK");Sv(Z,{get reversed(){return n(ie)},shadow:!0})};R(L,Z=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(n(p))&&Z(E)})}var P=A(L,2);{var q=Z=>{Fs(Z,{get size(){return"48"},shadow:!0})};R(P,Z=>{n(p)==="PAUSE"&&!l.playbackStatusShow&&Z(q)})}var F=A(P,2);{var z=Z=>{Vn(Z,{get size(){return"48"},shadow:!0})};R(F,Z=>{n(p)==="PLAY"&&!l.playbackStatusShow&&Z(z)})}var j=A(F,2);{var ae=Z=>{Sc(Z,{get size(){return"48"},shadow:!0})};R(j,Z=>{n(p)==="REPLAY"&&!l.playbackStatusShow&&Z(ae)})}var X=A(j,2);{var ne=Z=>{pa(Z,{get size(){return"48"},type:"off",shadow:!0})};R(X,Z=>{n(p)==="SUBTITLES_OFF"&&Z(ne)})}var ee=A(X,2);{var we=Z=>{pa(Z,{get size(){return"48"},shadow:!0})};R(ee,Z=>{n(p)==="SUBTITLES_ON"&&Z(we)})}var ue=A(ee,2);{var re=Z=>{let ie=f(()=>n(p)==="RATE_DOWN");Lc(Z,{get size(){return"48"},get reversed(){return n(ie)},testId:"rate-change-icon",shadow:!0})};R(ue,Z=>{["RATE_DOWN","RATE_UP"].includes(n(p))&&Z(re)})}var be=A(ue,2);{var $e=Z=>{let ie=f(()=>n(p)==="EPISODE_PREV");ma(Z,{get size(){return"48"},get reversed(){return n(ie)},shadow:!0})};R(be,Z=>{["EPISODE_PREV","EPISODE_NEXT"].includes(n(p))&&Z($e)})}var J=A(be,2);{var Ne=Z=>{fa(Z,{get size(){return"48"},volume:0,shadow:!0})};R(J,Z=>{n(p)==="MUTE"&&Z(Ne)})}var fe=A(J,2);{var k=Z=>{fa(Z,{get size(){return"48"},volume:1,shadow:!0})};R(fe,Z=>{n(p)==="VOLUME"&&Z(k)})}S(O);var Ke=A(O,2);{var Te=Z=>{var ie=Aw(),De=C(ie,!0);S(ie),D(()=>ve(De,n(v))),$(Z,ie)};R(Ke,Z=>{n(v)&&Z(Te)})}D(()=>Me(O,"data-type",n(p))),$(I,T)};R(g,I=>{!n(s)&&n(p)&&I(w)})}S(b),D(I=>y=se(b,1,"hot-key-helpers-container s-n",null,y,I),[()=>({hidden:n(s),"hot-key-helpers-container--left":n(u),"hot-key-helpers-container--right":n(m)})]),$(t,b),H(),o()}var Rw=(t,e,i,o,r,a)=>{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":a();break}},Nw=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},Ow=M('<div tabindex="0" role="button"><div class="button-block s-y" aria-hidden="true"><div class="button-row s-y"><div class="button button-up s-y"><!></div> <div class="button button-right s-y"><!></div></div> <div class="button-row s-y"><div class="button button-left s-y"><!></div> <div class="button button-down s-y"><!></div></div></div></div>'),Dw={hash:"s-y",code:".immersive-controls.s-y{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-y{left:20px;top:50px}.button-block.s-y{height:40px;margin:auto;transform:rotate(45deg);width:40px}.button-row.s-y{display:flex;flex-direction:row;position:relative}.button.s-y{cursor:pointer;height:20px;text-align:center;width:20px}.button.s-y svg{opacity:.7;transition:opacity .2s linear}.button.button-up.s-y svg{transform:rotate(-45deg) translate(-1px,-1px)}.button.button-right.s-y svg{transform:rotate(45deg) translate(1px,-1px)}.button.button-down.s-y svg{transform:rotate(135deg) translate(1px,-3px)}.button.button-left.s-y svg{transform:rotate(-135deg) translate(-1px,-3px)}.button.s-y:hover svg{opacity:1}"};function Mc(t,e){B(e,!0),Q(t,Dw);let i=h(e,"isShifted",3,!1),o=ge(),r=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),a=()=>{o.actions.internal.startCameraManualRotation(0,1)},l=()=>{o.actions.internal.startCameraManualRotation(0,-1)},d=()=>{o.actions.internal.startCameraManualRotation(1,0)},s=()=>{o.actions.internal.startCameraManualRotation(-1,0)},u=()=>(o.actions.internal.stopCameraManualRotation(),null),m=G("aria_label_spherical_control");var p=Ow();let v;p.__keydown=[Rw,r,a,l,s,d],p.__keyup=[Nw,r,u];var b=C(p),y=C(b),g=C(y);g.__mousedown=a,g.__mouseup=u;var w=C(g);Rr(w,{direction:"up",useBtnColor:!0}),S(g);var I=A(g,2);I.__mousedown=d,I.__mouseup=u;var T=C(I);Rr(T,{direction:"up",useBtnColor:!0}),S(I),S(y);var O=A(y,2),L=C(O);L.__mousedown=s,L.__mouseup=u;var E=C(L);Rr(E,{direction:"up",useBtnColor:!0}),S(L);var P=A(L,2);P.__mousedown=l,P.__mouseup=u;var q=C(P);Rr(q,{direction:"up",useBtnColor:!0}),S(P),S(O),S(b),S(p),D(F=>{v=se(p,1,"immersive-controls s-y",null,v,F),Me(p,"aria-label",m)},[()=>({"m-shifted":i()})]),lt("mouseleave",g,u),lt("mouseleave",I,u),lt("mouseleave",L,u),lt("mouseleave",P,u),$(t,p),H()}je(["keydown","keyup","mousedown","mouseup"]);var zs=require("@vkontakte/videoplayer-shared/es2015");var Yb=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var yp=class{constructor(){this.flickeringTimeout=Yb(1e3);this.subscriptions=new zs.Subscription;this.isAuto=!1;this.isLive=!1;this.captions$=new zs.ValueSubject([]);this.captionsPrepared$=new zs.ValueSubject([])}subscribe(){return this.subscriptions.add(this.captions$.pipe((0,zs.filter)(()=>this.isEnabled()),(0,zs.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:a,value:l},d)=>(o&&!d||(a==="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 Bw=M('<span class="caption-line s-b"><span class="caption-segment s-b"> </span></span>'),Hw=M('<span class="caption-line s-b"><span class="caption-segment s-b"></span></span>'),Fw=M('<span class="caption-line s-b"><span class="caption-segment s-b"> </span></span>'),Uw=M('<div><span class="caption s-b"><!></span></div>'),zw=M("<div><!></div>"),Ww={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 rl(t,e){B(e,!0),Q(t,Ww);let[i,o]=Re(),r=()=>x(v,"$currentSubtitle$",i),a=()=>x(y,"$isLive$",i),l=()=>x(g,"$isFullscreen",i),d=()=>x(w,"$previewTrackActive",i),s=()=>x(b,"$isAutoSubtitleCaptionVisible$",i),u=h(e,"isMobile",3,!1),m=ge(),p=Nt(),v=m.state.currentSubtitle$,b=m.state.isAutoSubtitleCaptionVisible$,y=m.state.isLive$,g=m.ui.isFullscreen,w=m.ui.previewTrackActive,I=f(()=>!!r().isAuto),T=f(()=>!!a()),O=f(()=>e.playerSize.width*.02),L=f(()=>u()&&!l()||n(O)<=p.minSubtitlesFontSize?p.minSubtitlesFontSize:n(O)),E=K(null);Oe(()=>{var X,ne,ee;(X=n(E))==null||X.setIsAuto(n(I)),(ne=n(E))==null||ne.setIsLive(n(T)),(ee=n(E))==null||ee.setCaptions(e.captions)});let P=K(ui([[]]));Rt(()=>{N(E,new yp().subscribe(),!0);let X=n(E).captionsPrepared$.subscribe(ne=>{N(P,ne,!0)});return()=>{var ne;(ne=n(E))==null||ne.destroy(),X.unsubscribe()}}),Rt(()=>{if(n(I)){let X=window.setTimeout(()=>{b.set(!1)},p.autoSubtitlesTimeout);return()=>{window.clearTimeout(X)}}else b.set(!1)});let q=f(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var F=zw();let z;var j=C(F);{var ae=X=>{var ne=Uw();let ee;var we=C(ne),ue=C(we);{var re=$e=>{var J=Bw(),Ne=C(J),fe=C(Ne,!0);S(Ne),S(J),D(k=>{var Ke;qe(Ne,`font-size: ${(Ke=n(L))!=null?Ke:""}px`),ve(fe,k)},[()=>G("subtitles_auto_caption")]),$($e,J)},be=($e,J)=>{{var Ne=k=>{var Ke=Le(),Te=ce(Ke);Ti(Te,17,()=>n(P),Ud,(Z,ie)=>{var De=Hw(),Be=C(De);Ti(Be,21,()=>n(ie),({value:nt,timeAppeared:U})=>U,(nt,U)=>{let Ae=()=>n(U).value,Ee=()=>n(U).timeAppeared;var We=Le(),it=ce(We);{var ye=Ie=>{var He=_s();D(()=>ve(He,Ae())),$(Ie,He)};R(it,Ie=>{(!Ee()||Ee()<=e.position)&&Ie(ye)})}$(nt,We)}),S(Be),S(De),D(()=>{var nt;return qe(Be,`font-size: ${(nt=n(L))!=null?nt:""}px`)}),$(Z,De)}),$(k,Ke)},fe=k=>{var Ke=Le(),Te=ce(Ke);Ti(Te,17,()=>e.captions,({value:Z})=>Z,(Z,ie)=>{let De=()=>n(ie).value;var Be=Fw(),nt=C(Be),U=C(nt,!0);S(nt),S(Be),D(()=>{var Ae;qe(nt,`font-size: ${(Ae=n(L))!=null?Ae:""}px`),ve(U,De())}),$(Z,Be)}),$(k,Ke)};R($e,k=>{var Ke;n(I)&&((Ke=n(P))!=null&&Ke.length)?k(Ne):k(fe,!1)},J)}};R(ue,$e=>{n(I)&&s()?$e(re):$e(be,!1)})}S(we),S(ne),D($e=>{var J;ee=se(ne,1,"subtitles-caption s-b",null,ee,$e),qe(ne,`--subtitles-caption-margin: ${(J=n(q))!=null?J:""}%`)},[()=>({mobile:u()})]),$(X,ne)};R(j,X=>{var ne;(e.captions.length||(ne=n(P))!=null&&ne.length)&&X(ae)})}S(F),D(X=>z=se(F,1,"subtitles-container s-b",null,z,X),[()=>({shifted:e.shifted,"preview-track-active":d(),auto:n(I)&&!n(T)&&!s()})]),$(t,F),H(),o()}var jb=require("@vkontakte/videoplayer-core/es2015");var Kw=M('<div class="text s-v"> </div>'),qw=M('<div><div class="icon_wrapper s-v"><!></div> <!></div>'),Qw={hash:"s-v",code:".wrapper.s-v{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-v{background-size:cover}.icon_wrapper.s-v{align-items:center;display:flex;flex-direction:column;width:400px}.text.s-v{margin-top:20px}"};function Vc(t,e){B(e,!0),Q(t,Qw);let i=h(e,"chromecastDeviceName",3,"chromecastDeviceName"),o=Nt();var r=qw();let a;r.__contextmenu=function(...m){var p;(p=e.onContextMenu)==null||p.apply(this,m)},r.__click=function(...m){var p;(p=e.onClick)==null||p.apply(this,m)},r.__dblclick=function(...m){var p;(p=e.onDblClick)==null||p.apply(this,m)};var l=C(r),d=C(l);_c(d,{get size(){return"48"},get iconState(){return jb.ChromecastState.CONNECTED}}),S(l);var s=A(l,2);{var u=m=>{var p=Kw(),v=C(p);S(p),D(()=>{var b;return ve(v,`Видео воспроизводится на ${(b=i())!=null?b:""}`)}),$(m,p)};R(s,m=>{i()&&m(u)})}S(r),D(m=>{a=se(r,1,"wrapper s-v",null,a,m),qe(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})]),$(t,r),H()}je(["contextmenu","click","dblclick"]);var Gw=Ce('<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 Tv(t){Je(t,{width:"200",height:"200",viewBox:"460 190 130 90",testId:"error-icon",children:(e,i)=>{var o=Gw();$(e,o)},$$slots:{default:!0}})}var Yw=M('<div class="container s-5"><!></div>'),jw={hash:"s-5",code:".container.s-5{align-items:center;background:#000;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}"};function sl(t){Q(t,jw);var e=Yw(),i=C(e);Tv(i,{}),S(e),$(t,e)}var Xw=M('<div class="playButton s-a" tabindex="0" role="button"><div class="playButtonBackground s-a"></div> <!></div>'),Zw=M('<div data-testid="unstarted-thumb"><!></div>'),Jw={hash:"s-a",code:".container.s-a{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-a{opacity:0;visibility:hidden}.container.bgCover.s-a{background-size:cover}.playButton.s-a{align-items:center;display:flex;height:var(--big-play-size);justify-content:center;margin:auto;width:var(--big-play-size)}.playButton.s-a,.playButtonBackground.s-a{bottom:0;left:0;position:absolute;right:0;top:0}.playButtonBackground.s-a{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-a:hover .playButtonBackground:where(.s-a){background-color:var(--big-play-hover-bg-color);transform:scale(1.15)}.playButton.s-a svg{position:relative}"};function al(t,e){B(e,!0),Q(t,Jw);let i=h(e,"iconVisible",3,!0),o=ge(),r=Nt(),a=o.ui.startedByKeyboard$,l=G("tooltip_play"),d=b=>{var g;let y=b.code;["Enter","Space"].includes(y)&&(b.stopPropagation(),b.preventDefault(),a.set(!0),(g=e.startVideo)==null||g.call(e))},s=b=>{var y,g;b.stopPropagation(),(y=e.startVideo)==null||y.call(e),(g=e.onClick)==null||g.call(e,b)};var u=Zw();let m;u.__click=s,u.__contextmenu=function(...b){var y;(y=e.onContextMenu)==null||y.apply(this,b)};var p=C(u);{var v=b=>{var y=Xw();y.__keydown=d;var g=A(C(y),2);Vn(g,{get size(){return"48"}}),S(y),D(()=>Me(y,"aria-label",l)),$(b,y)};R(p,b=>{i()&&b(v)})}return S(u),D(b=>{m=se(u,1,"container s-a",null,m,b),qe(u,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:r.features.previewNoEmptySpace})]),$(t,u),H({handlePressKey:d,handleClick:s})}je(["click","contextmenu","keydown"]);var eS=M('<span class="text s-r"> </span>'),tS=(t,e)=>{var i;return(i=e.onTitleClicked)==null?void 0:i.call(e)},iS=M('<a target="_blank" class="link s-r"><!></a>'),oS=(t,e)=>e.onTitleClicked(),nS=M("<button><!></button>"),rS=M('<div data-testid="video_title"><!></div>'),sS={hash:"s-r",code:".title.s-r{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-r,.title.s-r{color:var(--white)}.link.s-r{pointer-events:auto;text-decoration:none}.link.s-r:hover{text-decoration:underline}.text.s-r{pointer-events:auto}.size-sm.s-r{font-size:14px;font-weight:500;line-height:18px}.hidden.s-r{opacity:0;transform:translateY(calc(var(--controls-gradient-height)*-1));visibility:hidden}"};function Iv(t,e){B(e,!0),Q(t,sS);let i=b=>{var y=eS(),g=C(y,!0);S(y),Ze(y,w=>l(w),()=>l()),D(()=>ve(g,o())),lt("mouseenter",y,function(...w){var I;(I=e.onMouseEnter)==null||I.apply(this,w)}),lt("mouseleave",y,function(...w){var I;(I=e.onMouseLeave)==null||I.apply(this,w)}),$(b,y)},o=h(e,"title",3,""),r=h(e,"isHidden",3,!1),a=h(e,"size",3,"md"),l=h(e,"ref",15),d=K(void 0);Rt(()=>{var y;requestAnimationFrame(()=>{var g;(g=e.onVisibilityChanged)==null||g.call(e,!0)});function b(g){var w;g.propertyName==="transform"&&((w=e.onVisibilityChanged)==null||w.call(e,!r()))}return(y=n(d))==null||y.addEventListener("transitionend",b),()=>{var g;return(g=n(d))==null?void 0:g.removeEventListener("transitionend",b)}});var s=rS();let u;var m=C(s);{var p=b=>{var y=iS();y.__click=[tS,e];var g=C(y);i(g),S(y),D(()=>Me(y,"href",e.titleLinkHref)),$(b,y)},v=(b,y)=>{{var g=I=>{var T=nS();T.__click=[oS,e];var O=C(T);i(O),S(T),$(I,T)},w=I=>{i(I)};R(b,I=>{e.onTitleClicked?I(g):I(w,!1)},y)}};R(m,b=>{e.titleLinkHref?b(p):b(v,!1)})}S(s),Ze(s,b=>N(d,b),()=>n(d)),D(b=>u=se(s,1,`title size-${a()}`,"s-r",u,b),[()=>({hidden:r()})]),$(t,s),H()}je(["click"]);var Xb=require("@vkontakte/videoplayer-shared/es2015");var aS=M('<div class="timer__cell cell s-1a"><span class="cell__value s-1a"> </span> <span class="cell__unit s-1a"> </span></div> <span class="timer__points s-1a"> </span>',1),lS=M('<div class="timer__cell cell s-1a"><span class="cell__value s-1a"> </span> <span class="cell__unit s-1a"> </span></div> <span class="timer__points s-1a"> </span>',1),dS=M('<div class="timer__cell cell s-1a"><span class="cell__value s-1a"> </span> <span class="cell__unit s-1a"> </span></div> <span class="timer__points s-1a"> </span>',1),cS=M('<div class="timer__cell cell s-1a"><span class="cell__value s-1a"> </span> <span class="cell__unit s-1a"> </span></div>'),uS=M("<div><!> <!> <!> <!></div>"),pS={hash:"s-1a",code:".timer__container.s-1a{align-items:flex-start;display:flex;justify-content:center}.cell.s-1a{align-items:center;display:flex;flex-direction:column}.cell__value.s-1a{font-size:48px;font-weight:600;line-height:1.2}.small.s-1a .cell__value:where(.s-1a){font-size:24px}.cell__unit.s-1a{font-size:14px;font-weight:400;line-height:1.2}.small.s-1a .cell__unit:where(.s-1a){font-size:12px}.timer__points.s-1a{display:inline-block;font-size:42px;font-weight:600;line-height:1.2;margin:0 8px}.small.s-1a .timer__points:where(.s-1a){font-size:20px}"};function Ev(t,e){B(e,!0),Q(t,pS);let i=K(""),o=K(""),r=K(""),a=K(""),l,d=32,s=d/2,u=F=>String(F).padStart(2,"0"),m=F=>Math.max(F.length,1),p=F=>`${(e.isSmallSize?s:d)*m(F)}px`,v=F=>{let z=Math.floor(F/86400);z&&(F-=z*86400,N(i,u(z),!0));let j=Math.floor(F/3600);N(o,u(j),!0);let ae=Math.floor(F/60)%60;N(r,u(ae),!0);let X=F%60;N(a,u(X),!0)},b=()=>{let F=Math.floor(Date.now()/1e3),z=e.startTime-F;v(z),z>=1?l=requestAnimationFrame(b):e.onTimerOver()};Rt(()=>{l=requestAnimationFrame(b)}),gn(()=>{cancelAnimationFrame(l)});var y=uS();let g;var w=C(y);{var I=F=>{var z=aS(),j=ce(z);let ae;var X=C(j),ne=C(X,!0);S(X);var ee=A(X,2),we=C(ee,!0);S(ee),S(j);var ue=A(j,2),re=C(ue,!0);S(ue),D((be,$e,J)=>{ae=qe(j,"",ae,{width:be}),ve(ne,n(i)),ve(we,$e),ve(re,J)},[()=>p(n(i)),()=>G("waiting_live_day_value"),()=>G("waiting_live_colon")]),$(F,z)};R(w,F=>{n(i)&&F(I)})}var T=A(w,2);{var O=F=>{var z=lS(),j=ce(z);let ae;var X=C(j),ne=C(X,!0);S(X);var ee=A(X,2),we=C(ee,!0);S(ee),S(j);var ue=A(j,2),re=C(ue,!0);S(ue),D((be,$e,J)=>{ae=qe(j,"",ae,{width:be}),ve(ne,n(o)),ve(we,$e),ve(re,J)},[()=>p(n(o)),()=>G("waiting_live_hour_value"),()=>G("waiting_live_colon")]),$(F,z)};R(T,F=>{n(o)&&F(O)})}var L=A(T,2);{var E=F=>{var z=dS(),j=ce(z);let ae;var X=C(j),ne=C(X,!0);S(X);var ee=A(X,2),we=C(ee,!0);S(ee),S(j);var ue=A(j,2),re=C(ue,!0);S(ue),D((be,$e,J)=>{ae=qe(j,"",ae,{width:be}),ve(ne,n(r)),ve(we,$e),ve(re,J)},[()=>p(n(r)),()=>G("waiting_live_minute_value"),()=>G("waiting_live_colon")]),$(F,z)};R(L,F=>{n(r)&&F(E)})}var P=A(L,2);{var q=F=>{var z=cS();let j;var ae=C(z),X=C(ae,!0);S(ae);var ne=A(ae,2),ee=C(ne,!0);S(ne),S(z),D((we,ue)=>{j=qe(z,"",j,{width:we}),ve(X,n(a)),ve(ee,ue)},[()=>p(n(a)),()=>G("waiting_live_second_value")]),$(F,z)};R(P,F=>{n(a)&&F(q)})}S(y),D(F=>g=se(y,1,"timer__container s-1a",null,g,F),[()=>({small:e.isSmallSize})]),$(t,y),H()}var fS=M('<div class="waiting s-q"><span> </span></div>'),mS=M('<div class="upcoming-timer timer s-q"><span> </span> <!></div>'),vS=M('<div class="waiting-container s-q"><!></div>'),gS={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 Rc(t,e){B(e,!0),Q(t,gS);let i=h(e,"startTime",3,0),o=f(()=>i()<Math.floor(Date.now()/1e3)),r=K(void 0),a=K(void 0),l=0,d=K(void 0),s=K(void 0),u=f(()=>{var w,I;return((w=n(d))!=null?w:1/0)<=509||((I=n(s))!=null?I:1/0)<=320}),m=f(()=>{var w,I;return!n(u)&&(((w=n(d))!=null?w:1/0)<=699||((I=n(s))!=null?I:1/0)<=599)}),p=e.onUpcomingLiveViewStateChanged?(0,Xb.throttleFn)(()=>{cancelAnimationFrame(l),l=requestAnimationFrame(()=>{let w={type:n(o)?"expired":"default",size:n(u)?"s":n(m)?"m":"l"},I=n(o)?n(r):n(a);e.onUpcomingLiveViewStateChanged(w,I)})},300):void 0;Oe(()=>{n(s),n(d),n(o),p==null||p()}),gn(()=>{if(cancelAnimationFrame(l),p==null||p.cancel(),e.onUpcomingLiveViewStateChanged){let w={type:n(o)?"expired":"default",size:n(u)?"s":n(m)?"m":"l"};e.onUpcomingLiveViewStateChanged(w)}});var v=vS();v.__contextmenu=function(...w){var I;(I=e.onContextMenu)==null||I.apply(this,w)},v.__click=function(...w){var I;(I=e.onClick)==null||I.apply(this,w)};var b=C(v);{var y=w=>{var I=fS(),T=C(I);let O;var L=C(T,!0);S(T),S(I),Ze(I,E=>N(r,E),()=>n(r)),D((E,P)=>{O=se(T,1,"waiting__title s-q",null,O,E),ve(L,P)},[()=>({medium:n(m),small:n(u)}),()=>G("waiting_live_upcoming_title")]),$(w,I)},g=w=>{var I=mS(),T=C(I);let O;var L=C(T,!0);S(T);var E=A(T,2);let P=f(()=>n(u)||n(m)),q=f(()=>i()||0);Ev(E,{get isSmallSize(){return n(P)},get startTime(){return n(q)},onTimerOver:()=>N(o,!0)}),S(I),Ze(I,F=>N(a,F),()=>n(a)),D((F,z)=>{O=se(T,1,"timer__title s-q",null,O,F),ve(L,z)},[()=>({medium:n(m),small:n(u)}),()=>G("waiting_live_timer_title")]),$(w,I)};R(b,w=>{n(o)?w(y):w(g,!1)})}S(v),D(()=>qe(v,`background-image: url(${e.thumbUrl})`)),Ln(v,"clientWidth",w=>N(d,w)),Ln(v,"clientHeight",w=>N(s,w)),$(t,v),H()}je(["contextmenu","click"]);var hS=M('<div class="waiting-container s-t"><div class="waiting-caption s-t"><!> <p class="waiting-title s-t"> </p></div></div>'),_S={hash:"s-t",code:'.waiting-container.s-t{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-t,.waiting-container.s-t:before{height:100%;left:0;position:absolute;top:0;width:100%}.waiting-container.s-t:before{backdrop-filter:blur(10px);background-color:rgba(0,0,0,.4);content:""}.waiting-caption.s-t{align-items:center;display:flex;flex-direction:column;position:relative}.waiting-title.s-t{font-size:20px;font-weight:400;line-height:1.2;margin:0;padding:20px;text-align:center}'};function ll(t,e){B(e,!0),Q(t,_S);let i=h(e,"thumbUrl",3,""),o={recover:G("waiting_live_recover_title"),record:G("waiting_record_title")},r=f(()=>o[e.kind]||"");var a=hS();a.__contextmenu=function(...m){var p;(p=e.onContextMenu)==null||p.apply(this,m)},a.__click=function(...m){var p;(p=e.onClick)==null||p.apply(this,m)};var l=C(a),d=C(l);Ya(d,{style:"position: static; transform: translate(0, 0)"});var s=A(d,2),u=C(s,!0);S(s),S(l),S(a),D(()=>{qe(a,`background-image: url('${i()}')`),ve(u,n(r))}),$(t,a),H()}je(["contextmenu","click"]);var bS=Ce('<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 Pv(t){Je(t,{width:"16",height:"16",testId:"check-mark-icon",children:(e,i)=>{var o=bS();$(e,o)},$$slots:{default:!0}})}var $S=M('<div class="select-icon s-1x"><!></div>'),yS={hash:"s-1x",code:".select-icon.s-1x{margin-right:auto;opacity:.9;padding-right:12px;position:relative;top:3px}"};function Nc(t){Q(t,yS);var e=$S(),i=C(e);Pv(i,{}),S(e),$(t,e)}var xS=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},wS=(t,e)=>{Zl(t,()=>e.item.selectItem(e.item.value))},SS=M("<p> </p>"),CS=M('<p class="sublabel s-1u"> </p>'),TS=M('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),IS={hash:"s-1u",code:".menu-item-value.s-1u{align-items:end;display:flex;flex-direction:column;min-width:0}.menu-item-value[data-selected=false].s-1u{--select-icon-width:16px;--icon-padding:12px;margin-left:calc(var(--icon-padding) + var(--select-icon-width))}.label.s-1u,.sublabel.s-1u{max-width:100%;overflow:hidden;text-overflow:ellipsis}.sublabel.s-1u{opacity:.5}"};function kv(t,e){B(e,!0),Q(t,IS);let i=h(e,"isMobile",3,!1);var o=TS();let r;o.__click=[xS,e],o.__keydown=[wS,e];var a=C(o);{var l=y=>{Nc(y,{})};R(a,y=>{e.item.selected&&y(l)})}var d=A(a,2);let s;var u=C(d);{var m=y=>{var g=Le(),w=ce(g);Fi(w,()=>e.item.valueComponent,(I,T)=>{T(I,es(()=>{var O;return(O=e.item.valueComponentParams)!=null?O:{}}))}),$(y,g)},p=y=>{var g=SS();let w;var I=C(g,!0);S(g),D(T=>{var O;w=se(g,1,"label s-1u",null,w,T),ve(I,(O=e.item.label)!=null?O:e.item.value)},[()=>({mobile:i()})]),$(y,g)};R(u,y=>{e.item.valueComponent?y(m):y(p,!1)})}var v=A(u,2);{var b=y=>{var g=CS(),w=C(g,!0);S(g),D(()=>ve(w,e.item.sublabel)),$(y,g)};R(v,y=>{e.item.sublabel&&y(b)})}S(d),S(o),D((y,g,w)=>{var I;r=se(o,1,"item",null,r,y),Me(o,"data-value",(I=e.item.dataValue)!=null?I:e.item.value),Me(o,"aria-label",g),Me(o,"data-testid",e.item.dataTestid),s=se(d,1,"menu-item-value s-1u",null,s,w),Me(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>{var y,g;return(g=(y=e.item.ariaLabel)!=null?y:e.item.label)!=null?g:e.item.value.toString()},()=>({"submenu-value-mobile":i()})]),$(t,o),H()}je(["click","keydown"]);var ES=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function Av(t,e){B(e,!0);let i=h(e,"isMobile",3,!1),o=h(e,"refMenuItems",15),r=f(()=>()=>e.openSubMenuList(e.item.children)),a=f(()=>g=>ip(g,n(r)));var l=ES();let d;l.__click=function(...g){var w;(w=n(r))==null||w.apply(this,g)},l.__keydown=function(...g){var w;(w=n(a))==null||w.apply(this,g)};var s=C(l);{var u=g=>{Nc(g,{})};R(s,g=>{e.item.selected&&g(u)})}var m=A(s,2);let p;var v=C(m);{var b=g=>{var w=Le();let I=f(()=>e.item.valueComponent);var T=ce(w);Fi(T,()=>n(I),(O,L)=>{L(O,es(()=>{var E;return(E=e.item.valueComponentParams)!=null?E:{}}))}),$(g,w)},y=g=>{var w=_s();D(()=>ve(w,e.item.label)),$(g,w)};R(v,g=>{e.item.valueComponent?g(b):g(y,!1)})}S(m),S(l),Ze(l,g=>o(o()[e.item.id]=g,!0),()=>{var g;return(g=o())==null?void 0:g[e.item.id]}),D((g,w)=>{var I;d=se(l,1,"item",null,d,g),Me(l,"aria-label",(I=e.item.ariaLabel)!=null?I:e.item.label),Me(l,"data-testid",e.item.id),p=se(m,1,"menu-item-value",null,p,w)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),$(t,l),H()}je(["click","keydown"]);var ns={"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 kS=(t,e)=>{fb(t,e.returnFromSubMenu,e.closeSettingsMenu)},AS=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},LS=(t,e)=>{ac(t)&&(Nr(t),e.returnFromSubMenu())},MS=M('<div><ul role="menu"><li role="menuitem" tabindex="0" data-testid="return-to-settings-menu"><!> <p class="title s-1m"> </p></li> <!></ul></div>'),VS={hash:"s-1m",code:".sub-menu.s-1m{--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-1m .item.mobile{font-size:14px;line-height:var(--item-label-line-height);padding:var(--item-padding-vertical-mobile) 17px}.sub-menu.s-1m{padding-top:calc(var(--edge-item-padding-vertical) + var(--item-padding-vertical) + var(--item-label-line-height))}.sub-menu.mobile.s-1m{padding-top:calc(var(--edge-item-padding-vertical-mobile) + var(--item-padding-vertical-mobile) + var(--item-label-line-height) + 1px)}.sub-menu.s-1m .items:where(.s-1m) .item.header:where(.s-1m){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-1m .title:where(.s-1m){margin-left:8px}.sub-menu.s-1m .item{padding:var(--item-padding-vertical) 12px;padding-right:22px}.items.s-1m .item:first-child:not(.mobile){padding-top:var(--edge-item-padding-vertical)}.items.s-1m .item:last-child:not(.mobile){padding-bottom:var(--edge-item-padding-vertical)}.items.s-1m .item.mobile:first-child{padding-top:var(--edge-item-padding-vertical-mobile)}.items.s-1m .item.mobile:last-child{padding-bottom:var(--edge-item-padding-vertical-mobile)}.sub-menu.s-1m .item.bottomBordered{border-bottom:var(--divider-border)}.sub-menu.s-1m .item .sublabel{font-size:12px;line-height:14px}.item.s-1m:not(.mobile) p:where(.s-1m),.sub-menu.s-1m .item:not(.mobile) .label{font-size:13px;line-height:var(--item-label-line-height)}"};function Mv(t,e){B(e,!0),Q(t,VS);let[i,o]=Re(),r=()=>x(p,"$isFullscreen",i),a=()=>x(v,"$playerSize",i),l=h(e,"isMobile",3,!1),d=h(e,"playerControlsHeight",3,0),s=h(e,"ariaLabelReturnFromSubMenu",19,()=>G("aria_label_submenu_back")),u=h(e,"listRef",15);Rt(()=>{let X=e.items.findIndex(ne=>ne.selected);u().children[X+1].focus()});let m=ge(),p=m.ui.isFullscreen,v=m.ui.playerSize,b=K(void 0),y=K(0),g=K(0),w=f(()=>l()&&r()?`max-height: ${Math.round(a().height*.6)}px`:l()?"":`max-height: ${a().height-32-n(g)-d()}px; overflow: auto;`),I=f(()=>Math.max(e.minWidth,n(y)));var T=MS();let O;var L=C(T);let E;L.__keydown=[kS,e];var P=C(L);let q;P.__click=[AS,e],P.__keydown=[LS,e];var F=C(P);Rr(F,{direction:"left"});var z=A(F,2),j=C(z,!0);S(z),S(P),Ze(P,X=>N(b,X),()=>n(b));var ae=A(P,2);Ti(ae,17,()=>e.items,Ud,(X,ne)=>{var ee=Le(),we=ce(ee);{var ue=be=>{kv(be,{get item(){return n(ne)},get isMobile(){return l()}})},re=(be,$e)=>{{var J=Ne=>{Av(Ne,{get isMobile(){return l()},get item(){return n(ne)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};R(be,Ne=>{n(ne).type==="OPEN_SUB_MENU"&&Ne(J)},$e)}};R(we,be=>{n(ne).type==="SELECT_VALUE"?be(ue):be(re,!1)})}$(X,ee)}),S(L),Ze(L,X=>u(X),()=>u()),S(T),D((X,ne,ee)=>{O=se(T,1,"sub-menu menu s-1m",null,O,X),Me(T,"data-testid",`${e.id}-sub-menu`),qe(T,`min-width: ${n(I)}px`),E=se(L,1,"items s-1m",null,E,ne),qe(L,n(w)),q=se(P,1,"item header back s-1m",null,q,ee),Me(P,"aria-label",s()),ve(j,e.title)},[()=>({desktop:!l(),mobile:l()}),()=>({mobile:l()}),()=>({mobile:l()})]),Ln(P,"clientWidth",X=>N(y,X)),Ln(P,"clientHeight",X=>N(g,X)),$(t,T),H(),o()}je(["keydown","click"]);var Jb=require("@vkontakte/videoplayer-shared/es2015");var RS=(t,e)=>ip(t,e()),NS=(t,e)=>{t.stopPropagation(),e()()},OS=M('<div class="value s-1o"> </div>'),DS=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),BS={hash:"s-1o",code:".value.s-1o{opacity:.7;overflow:hidden;position:relative;text-overflow:ellipsis}"};function Vv(t,e){B(e,!0),Q(t,BS);let i=h(e,"isMobile",3,!1),o=h(e,"onClick",3,Jb.noop),r=h(e,"valueComponent",3,void 0),a=h(e,"iconProps",19,()=>({})),l=h(e,"ref",15);var d=DS();let s;d.__click=[NS,o],d.__keydown=[RS,o];var u=C(d),m=C(u);{var p=T=>{tl(T,{get icon(){return e.icon}})},v=T=>{var O=Le();let L=f(()=>e.icon);var E=ce(O);Fi(E,()=>n(L),(P,q)=>{q(P,es(a))}),$(T,O)};R(m,T=>{typeof e.icon=="string"?T(p):T(v,!1)})}S(u);var b=A(u,2),y=C(b,!0);S(b);var g=A(b,2);{var w=T=>{var O=Le();let L=f(r);var E=ce(O);Fi(E,()=>n(L),(P,q)=>{q(P,{})}),$(T,O)},I=T=>{var O=OS(),L=C(O,!0);S(O),D(()=>ve(L,e.value)),$(T,O)};R(g,T=>{r()?T(w):T(I,!1)})}S(d),Ze(d,T=>l(T),()=>l()),D(T=>{s=se(d,1,"item",null,s,T),Me(d,"aria-label",e.ariaLabel),Me(d,"data-testid",e.id),ve(y,e.label)},[()=>({mobile:i()})]),$(t,d),H()}je(["click","keydown"]);var Rv=require("@vkontakte/videoplayer-shared/es2015");var HS=(t,e)=>{Zl(t,()=>e())},FS=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),US=M('<img class="icon" aria-hidden="true"/>'),zS=M('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label s-1p"> </div></li>'),WS={hash:"s-1p",code:".label.s-1p{overflow:hidden;text-overflow:ellipsis}"};function Nv(t,e){B(e,!0),Q(t,WS);let i=h(e,"isMobile",3,!1),o=h(e,"onClick",3,Rv.noop),r=h(e,"closeSettings",3,Rv.noop),a=K(!1),l=()=>{N(a,!0)},d=w=>{w==null||w.stopPropagation(),o()(),r()()};var s=zS();let u;s.__click=d,s.__keydown=[HS,d];var m=C(s),p=C(m);{var v=w=>{var I=Le(),T=ce(I);{var O=E=>{var P=FS();$(E,P)},L=E=>{var P=US();D(()=>Me(P,"src",e.icon)),lt("error",P,l),Ra(P),$(E,P)};R(T,E=>{n(a)?E(O):E(L,!1)})}$(w,I)},b=w=>{var I=Le();let T=f(()=>e.icon);var O=ce(I);Fi(O,()=>n(T),(L,E)=>{E(L,{})}),$(w,I)};R(p,w=>{typeof e.icon=="string"?w(v):w(b,!1)})}S(m);var y=A(m,2),g=C(y,!0);S(y),S(s),D(w=>{var I;u=se(s,1,"item",null,u,w),Me(s,"aria-label",(I=e.ariaLabel)!=null?I:e.label),Me(s,"data-testid",e.id),ve(g,e.label)},[()=>({mobile:i()})]),$(t,s),H()}je(["click","keydown"]);var e$=require("@vkontakte/videoplayer-shared/es2015");var KS=M('<div class="toggle_wrap s-1r"><div></div> <div class="toggle-label s-1r"></div></div>'),qS={hash:"s-1r",code:'.toggle_wrap.s-1r{cursor:pointer;font-size:12px;line-height:15px;min-height:15px;padding:0;user-select:none}.toggle.s-1r{background-color:var(--toggle-color-separator);border-radius:45px;cursor:pointer;float:right;height:9px;margin-top:3px;width:28px}.toggle.s-1r: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-1r:after{background-color:var(--toggle-color-on);left:13px}.toggle-label.s-1r{overflow:hidden}'};function Ov(t,e){Q(t,qS);let i=h(e,"enabled",3,!1);var o=KS(),r=C(o);let a;pi(2),S(o),D(l=>a=se(r,1,"toggle s-1r",null,a,l),[()=>({on:i()})]),$(t,o)}var QS=(t,e,i)=>{mb(t,e(),o=>i()(o))},GS=(t,e,i)=>{t.stopPropagation(),e()(!i())},YS=M('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),jS=M('<li role="menuitem" tabindex="0"><!></li>');function Dv(t,e){B(e,!0);let i=h(e,"isMobile",3,!1),o=h(e,"onClick",3,e$.noop),r=h(e,"enabled",3,!1),a=h(e,"tooltipText",3,void 0),l=h(e,"maxTooltipWidth",3,void 0);var d=jS();let s;d.__click=[GS,o,r],d.__keydown=[QS,r,o];var u=C(d);Xa(u,{get content(){return a()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return l()},children:(m,p)=>{var v=YS();let b;var y=C(v),g=C(y);{var w=E=>{tl(E,{get icon(){return e.icon}})},I=E=>{var P=Le();let q=f(()=>e.icon);var F=ce(P);Fi(F,()=>n(q),(z,j)=>{j(z,{})}),$(E,P)};R(g,E=>{typeof e.icon=="string"?E(w):E(I,!1)})}S(y);var T=A(y,2),O=C(T,!0);S(T);var L=A(T,2);Ov(L,{get enabled(){return r()}}),S(v),D(E=>{b=se(v,1,"switch-wrapper",null,b,E),ve(O,e.label)},[()=>({mobile:i()})]),$(m,v)},$$slots:{default:!0}}),S(d),D(m=>{var p;s=se(d,1,"item switch-item",null,s,m),Me(d,"aria-label",(p=e.ariaLabel)!=null?p:e.label),Me(d,"data-testid",e.id)},[()=>({mobile:i()})]),$(t,d),H()}je(["click","keydown"]);var Dc=require("@vkontakte/videoplayer-shared/es2015");var t$=()=>{let t=K(ui([])),e=f(()=>(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 i$=require("@vkontakte/videoplayer-shared/es2015");var XS=M('<div class="quality-icon s-1q"><!></div>'),ZS=M('<div class="quality-label s-1q"><span> </span> <!></div>'),JS={hash:"s-1q",code:".quality-label.s-1q{position:relative}.quality.s-1q{font-size:13px;line-height:18px}.quality.sub.s-1q{opacity:.7}.quality-icon.s-1q{display:flex;padding-left:2px;position:absolute;right:0;top:0;transform:translateX(100%)}.quality-icon.s-1q svg{color:var(--blue-light)}"};function dl(t,e){B(e,!0),Q(t,JS);let i=h(e,"isSubCase",3,!1),o=f(()=>e.quality?(0,i$.getVideoQualityLabel)(e.quality):""),r=f(()=>ap(e.quality));var a=ZS(),l=C(a);let d;var s=C(l,!0);S(l);var u=A(l,2);{var m=p=>{var v=XS();let b=f(()=>n(r));var y=C(v);Fi(y,()=>n(b),(g,w)=>{w(g,{})}),S(v),D(()=>Me(v,"data-testid",`${n(o)}-icon`)),$(p,v)};R(u,p=>{n(r)&&!e.isMobile&&p(m)})}S(a),D(p=>{d=se(l,1,"s-1q",null,d,p),ve(s,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),$(t,a),H()}var s$=require("@vkontakte/videoplayer-shared/es2015");var Bv=require("@vkontakte/videoplayer-core/es2015");var o$=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},n$=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=o$({quality:t,availableQualities:e});return i?t===Bv.VideoQuality.INVARIANT?G("auto_quality_invariant"):G("auto_quality",{actual:o}):o},r$=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===Bv.VideoQuality.INVARIANT?i:`${i}${o$({quality:t,availableQualities:e})}`:"...";var eC=M('<div class="menu-item-value-wrapper s-1t"><!></div>'),tC={hash:"s-1t",code:".menu-item-value-wrapper.s-1t{line-height:normal}"};function cd(t,e){B(e,!0),Q(t,tC);let[i,o]=Re(),r=()=>x(s,"$currentQuality$",i),a=()=>x(u,"$availableQualities$",i),l=()=>x(m,"$isMobile$",i),d=ge(),s=d.state.currentQuality$,u=d.state.availableQualities$,m=d.ui.isMobile,p=" · ",v=f(()=>e.prefix+(e.selected&&r()!==s$.VideoQuality.INVARIANT?p:"")),b=f(()=>r$({prefix:n(v),quality:r(),availableQualities:a(),onlyPrefix:!e.selected}));var y=eC(),g=C(y);let w=f(()=>e.selected?r():void 0);dl(g,{get quality(){return n(w)},get label(){return n(b)},get isMobile(){return l()},isSubCase:!0}),S(y),$(t,y),H(),o()}var iC=t=>{let e=t.join("|"),i="<(?<keyhtml>.*?)(?<propshtml> .*?)?>(?<childrenhtml>.*?)</\\k<keyhtml>>",o=`{(?<keyi18n>${e})}(?<childreni18n>.*?){/\\k<keyi18n>}`,r="<(?<keyhtmlself>.*?)(?<propshtmlself> .*?)?/?>",a=`{(?<keyi18nself>${e})}`;return new RegExp(`${i}|${o}|${r}|${a}`,"g")},oC={br:!0,span:!0},Hv=(t,e={})=>{var d,s,u,m,p,v,b;if(!t)return t;let i=Pe(Pe({},oC),e),o=Object.keys(i);if(!o.length)return t;let r=iC(o),a=[],l=0;for(let y of t.matchAll(r)){let g=y[0],w=((d=y.groups)==null?void 0:d.keyhtml)||((s=y.groups)==null?void 0:s.keyi18n)||((u=y.groups)==null?void 0:u.keyhtmlself)||((m=y.groups)==null?void 0:m.keyi18nself)||"",{index:I}=y;if(!i[w]){a.push(t.slice(l,I)),l=I+g.length;continue}let T=(p=y.groups)!=null&&p.childrenhtml?Hv(y.groups.childrenhtml,i):"",O=(v=y.groups)!=null&&v.childrenhtml?g.replace(new RegExp((b=y.groups)==null?void 0:b.childrenhtml),()=>T||""):g;a.push(t.slice(l,I),O),l=I+g.length}return l===0?t:(a.push(t.slice(l)),a.join(""))};function Oc(t,e){B(e,!1);let i=h(e,"message",8),o=Hv(i());_o();var r=Le(),a=ce(r);{var l=d=>{var s=Le(),u=ce(s);zd(u,()=>o),$(d,s)};R(a,d=>{o&&d(l)})}$(t,r),H()}var nC=M('<p class="quality-applies sublabel s-1s"><!></p>'),rC={hash:"s-1s",code:".quality-applies.s-1s{color:hsla(0,0%,100%,.5);display:flex;justify-content:end;padding:3px 0}.quality-applies span{color:#70c1ff}"};function Fv(t,e){B(e,!1),Q(t,rC),_o();var i=nC(),o=C(i);let r=In(()=>G("quality_applience",{action:`<span>${G("quality_applience_action")}</span>`}));Oc(o,{get message(){return n(r)}}),S(i),$(t,i),H()}var l$=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"quality-other-settings",type:"OPEN_SUB_MENU",label:G("other_quality"),selected:o,valueComponent:cd,valueComponentParams:{prefix:G("other_quality"),selected:o},children:"quality-other-settings"}},Uv=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"quality-auto",type:"SELECT_VALUE",value:"auto",label:G("auto_quality_limit"),valueComponent:e?cd:void 0,valueComponentParams:{prefix:G("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),d$=()=>({id:"quality-appliance-settings",type:"OPEN_SUB_MENU",valueComponent:Fv,bottomBordered:!0,children:"quality-appliance"}),zv=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"quality-high",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:G("high_quality"),valueComponent:t?cd:void 0,valueComponentParams:{prefix:G("high_quality"),selected:i},sublabel:G("high_quality_description")}),Wv=({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:G("traffic_saving_quality"),valueComponent:t?cd:void 0,valueComponentParams:{prefix:G("traffic_saving_quality"),selected:i},sublabel:G("traffic_saving_quality_description")});var xp=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),wp=(t,e)=>{var l;if(!t)return"";let{language:i,label:o}=t,r;if(i==="und"?r=void 0:i&&(r=(l=yc(i))!=null?l:i),o&&i&&r){let d=e.filter(s=>s.label===o&&s.language===i);if(d.length===1)return G("audio_stream_display_language_label",{language:r,label:o});{let s=xp(t,d);return G("audio_stream_display_language_label_index",{language:r,label:o,index:s})}}if(o){let d=e.filter(s=>s.label===o);if(d.length===1)return o;{let s=xp(t,d);return G("audio_stream_display_label_index",{label:o,index:s})}}if(i&&r){let d=e.filter(s=>s.language===i);if(d.length===1)return r;{let s=xp(t,d);return G("audio_stream_display_language_index",{language:r,index:s})}}let a=xp(t,e);return G("audio_stream_display_unknown",{index:a})};var sC={"quality-settings":t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:r}=t,a=[];return i&&a.push({handler:Uv,selected:e&&!o&&!r||!1}),a.push({handler:Wv,selected:o},{handler:zv,selected:r}),{title:G("submenu_quality"),id:"quality-settings",items:[d$(t),...a.map(({handler:l,selected:d})=>l({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),l$(t)]}},"quality-other-settings":({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"quality-other-settings",title:G("submenu_quality"),closeSettingsMenu:t,items:i.map(r=>({type:"SELECT_VALUE",value:r.value,valueComponent:dl,valueComponentParams:{quality:r.value,label:r.displayValue,isMobile:o,isSubCase:!0},selectItem:a=>e(a,"to-video"),selected:r.selected,label:r.displayValue}))}),"quality-appliance":t=>{var i,o,r;let{closeSettingsMenu:e}=t;return{id:"quality-appliance",title:G("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:Uv,selected:((i=Ku())==null?void 0:i.type)==="auto_quality"},{handler:Wv,selected:((o=Ku())==null?void 0:o.type)==="traffic_saving"},{handler:zv,selected:((r=Ku())==null?void 0:r.type)==="high_quality"}].map(({handler:a,selected:l})=>a({labelWithQuality:!1,appliesTo:"as-default",selected:l},t))}},"audio-tracks":({closeSettingsMenu:t,availableAudioStreams:e,currentAudioStream:i,selectAudioLanguage:o})=>({id:"audio-tracks",title:G("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:wp(r,e)}))}),"playback-rate":({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"playback-rate",title:G("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:G("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i.value,selectItem:()=>e(i),selected:i.selected,label:i.displayValue,dataTestid:i.value===Nn?"sub_off":void 0}))})},c$=({subMenuId:t,context:e})=>t?[sC[t](e)]:[];var aC=Ce('<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 Kv(t){Je(t,{testId:"traffic-saving-icon",children:(e,i)=>{var o=aC();$(e,o)},$$slots:{default:!0}})}var lC=Ce('<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 qv(t){Je(t,{width:"18",height:"15",children:(e,i)=>{var o=lC();$(e,o)},$$slots:{default:!0}})}var dC=Ce('<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 Qv(t){Je(t,{testId:"play-speed-icon",children:(e,i)=>{var o=dC();$(e,o)},$$slots:{default:!0}})}var cC=Ce('<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 Gv(t){Je(t,{testId:"download-icon",children:(e,i)=>{var o=cC();$(e,o)},$$slots:{default:!0}})}var uC=Ce('<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 Yv(t){Je(t,{testId:"report-icon",children:(e,i)=>{var o=uC();$(e,o)},$$slots:{default:!0}})}var pC=Ce('<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 Sp(t){Je(t,{children:(e,i)=>{var o=pC();$(e,o)},$$slots:{default:!0}})}var fC=Ce('<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 jv(t){Je(t,{testId:"info-icon",children:(e,i)=>{var o=fC();$(e,o)},$$slots:{default:!0}})}var mC=M('<div class="menu-item-value-wrapper s-1v"><!></div>'),vC={hash:"s-1v",code:".menu-item-value-wrapper.s-1v{line-height:normal}"};function Xv(t,e){B(e,!0),Q(t,vC);let[i,o]=Re(),r=()=>x(u,"$currentQuality$",i),a=()=>x(m,"$availableQualities$",i),l=()=>x(p,"$isAutoQualityEnabled$",i),d=()=>x(v,"$isMobile$",i),s=ge(),u=s.state.currentQuality$,m=s.state.availableQualities$,p=s.state.isAutoQualityEnabled$,v=s.ui.isMobile,b=f(()=>n$({quality:r(),availableQualities:a(),isAutoQualityEnabled:l()}));var y=mC(),g=C(y);dl(g,{get quality(){return r()},get label(){return n(b)},get isMobile(){return d()}}),S(y),$(t,y),H(),o()}var hC={"quality-settings":({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?G("auto_quality_option"):e)||"";return{id:"quality-settings",type:"OPEN_SUB_MENU",ariaLabel:G("aria_label_menu_quality",{actual:o}),icon:pc,label:G("menu_quality"),value:e,valueComponent:Xv,weight:ns["quality-settings"],children:i?"quality-settings":"quality-other-settings"}},"traffic-saving-switch":({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"traffic-saving-switch",weight:ns["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:G("aria_label_submenu_traffic_saving"),icon:Kv,label:G("menu_traffic_saving"),enabled:t,tooltipText:G("traffic_saving_helper_text"),maxTooltipWidth:175}),"audio-tracks-settings":({currentAudioStream:t,availableAudioStreams:e})=>{let i=wp(t,e);return{id:"audio-tracks-settings",weight:ns["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:G("aria_label_menu_audio_languages",{actual:i}),icon:qv,label:G("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:ns["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:G("aria_label_menu_rate",{actual:i}),icon:Qv,label:G("menu_playback_rate"),value:`${e}x`,children:"playback-rate"}},"subtitles-settings":({currentSubtitle:t})=>({id:"subtitles-settings",weight:ns["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:G("aria_label_menu_subtitle",{actual:t.displayValue}),icon:pa,iconProps:{type:"outline"},label:G("subtitles_caption"),value:t.displayValue,children:"subtitles"}),download:({onDownloadClick:t})=>({id:"download",weight:ns.download,type:"CLICK",onClick:t,label:G("download_video_caption"),ariaLabel:G("aria_label_menu_download"),icon:Gv}),"show-support":({onReportProblemClick:t})=>({id:"show-support",weight:ns.report,type:"CLICK",onClick:t,label:G("menu_report"),ariaLabel:`${G("menu_report")}. ${G("aria_label_new_tab_alert")}`,icon:Yv,isHiddenFor:["desktop"]}),"copy-data":({onCopyDataClick:t})=>({id:"copy-data",weight:ns["copy-data"],type:"CLICK",onClick:t,label:G("menu_copy_debug"),ariaLabel:G("menu_copy_debug"),icon:Sp,isHiddenFor:["desktop"]}),"save-trace-info":({onSaveTraceDataClick:t})=>({id:"save-trace-info",weight:ns["save-trace-info"],type:"CLICK",onClick:t,label:G("menu_save_debug"),ariaLabel:G("menu_save_debug"),icon:Sp,isHiddenFor:["desktop"]}),"debug-info":({toggleShowDebugInfo:t})=>({id:"debug-info",weight:ns["debug-info"],type:"CLICK",onClick:t,ariaLabel:G("aria_label_menu_debug_overlay"),label:G("menu_debug_overlay"),icon:jv,isHiddenFor:["desktop"]})},u$=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(r=>hC[r](e)),...i.map(r=>Yt(Pe({},r),{isAdditional:!0}))].filter(r=>{var a,l,d;return!((a=r==null?void 0:r.isHiddenFor)!=null&&a.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(Qa)};var bC=(t,e)=>{tp(t,e)},$C=M('<div><div> </div> <div class="close s-u"></div></div>'),yC=M('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),xC=M("<div><!> <!></div>"),wC={hash:"s-u",code:'.settings-menu-container.mobile.s-u{width:100%;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.settings-menu-container.s-u ul{list-style-type:none;margin:0;padding:0}.settings-menu-container.s-u .menu{background-color:var(--settings-bg);border-radius:var(--settings-radius);overflow:hidden;transition:opacity .2s,visibility .2s}.settings-menu-container.s-u .menu .item:first-child:not(.mobile){border-top-left-radius:var(--settings-radius);border-top-right-radius:var(--settings-radius)}.settings-menu-container.s-u .menu .item:last-child{border-bottom-left-radius:var(--settings-radius);border-bottom-right-radius:var(--settings-radius)}.settings-menu-container.s-u .settings-menu .item:first-child:not(.mobile){padding-top:6px}.settings-menu-container.s-u .settings-menu .item:last-child:not(.mobile){padding-bottom:6px}.settings-menu-container.s-u .menu.desktop{bottom:0;max-width:100%;position:absolute;right:0}.settings-menu.s-u{line-height:40px}.settings-menu.desktop.s-u{min-width:300px}.settings-menu-container.s-u .menu.mobile{background:var(--mobile-settings-bg);font-size:15px;line-height:50px;width:100%}.settings-menu-container.s-u .menu.mobile.hidden{display:none}.settings-menu-container.s-u .menu .item:not(.switch-item),.settings-menu-container.s-u .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-u .menu .item:hover{background-color:var(--settings-item-bg-hover)}.settings-menu-container.s-u .menu .item.mobile:hover{background:var(--mobile-settings-bg)}.settings-menu.s-u .item:not(.switch-item),.settings-menu.s-u .switch-wrapper{padding:0 32px 0 18px}.settings-menu.s-u .item.mobile:not(.switch-item),.settings-menu.s-u .switch-wrapper.mobile{padding:0 14px}.settings-menu.s-u .icon-wrapper{align-items:center;display:flex;height:24px;justify-content:center;margin-right:16px;min-width:24px;width:24px}.settings-menu.s-u .label{flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis}.settings-menu.s-u .item.header.mobile:where(.s-u){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-u .items::-webkit-scrollbar{width:8px}.settings-menu-container.s-u .items::-webkit-scrollbar-track{background-color:#3a3a3a;border-radius:4px;box-shadow:none}.settings-menu-container.s-u .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-u .items::-webkit-scrollbar-thumb:hover{background-color:#777}.settings-menu-container.s-u .items.mobile{max-height:160px;overflow-x:hidden;overflow-y:auto;text-align:left}.close.s-u{height:12px;margin-right:-12px;padding:12px;position:relative;width:12px}.close.s-u:after,.close.s-u:before{background-color:var(--white);content:" ";height:12px;left:18px;position:absolute;width:2px}.close.s-u:before{transform:rotate(45deg)}.close.s-u:after{transform:rotate(-45deg)}'};function Bc(t,e){B(e,!0),Q(t,wC);let[i,o]=Re(),r=()=>x(Be,"$settingsMenuVisible",i),a=()=>x(nt,"$settingsMenuOpenedByKeyboard",i),l=()=>x(He,"$debugPanelVisible",i),d=()=>x(Ae,"$isMobile",i),s=()=>x(Ie,"$playerSize",i),u=()=>x(De,"$hasMpegSources$",i),m=()=>x(Ee,"$mobileNotReportControlHidden$",i),p=()=>x(J,"$autoQualityLimitingAvailable$",i),v=()=>x(Z,"$availableSubtitlesList$",i),b=()=>x(We,"$isLiveWithPlaybackSpeed",i),y=()=>x(re,"$availableAudioStreams$",i),g=()=>x(Ke,"$availablePlaybackRates$",i),w=()=>x(ue,"$currentAudioStream$",i),I=()=>x(k,"$currentPlaybackRate$",i),T=()=>x(it,"$trafficSavingEnabled",i),O=()=>x(be,"$currentQuality$",i),L=()=>x(Ne,"$isAutoQualityEnabled$",i),E=()=>x(Te,"$currentSubtitle$",i),P=()=>x(xt,"$additionalSettingsMenuItems$",i),q=()=>x(fe,"$isAutoQualityAvailable$",i),F=()=>x($e,"$availableQualities$",i),z=()=>x(ye,"$highQualityEnabled",i),j=h(e,"ref",15,void 0),ae=h(e,"playerControlsHeight",3,0),X=ui({}),ne=ui({}),ee=ge(),we=Nt(),ue=ee.state.audioStream$,re=ee.state.availableAudioStreams$,be=ee.state.currentQuality$,$e=ee.state.availableQualities$,J=ee.state.autoQualityLimitingAvailable$,Ne=ee.state.isAutoQualityEnabled$,fe=ee.state.isAutoQualityAvailable$,k=ee.state.currentPlaybackRate$,Ke=ee.state.availablePlaybackRates$,Te=ee.state.currentSubtitle$,Z=ee.state.availableSubtitlesList$,ie=ee.state.canDownload,De=ee.state.hasMpegSources$,Be=ee.ui.settingsMenu.visible$,nt=ee.ui.settingsMenu.openedByBtnKeyboard$,U=ee.ui.settingsMenu.ref$,Ae=ee.ui.isMobile,Ee=ee.ui.mobileNotReportControlHidden$,We=ee.state.canChangePlaybackSpeed$,it=ee.state.trafficSavingEnabled$,ye=ee.state.highQualityEnabled$,Ie=ee.ui.playerSize,He=ee.ui.debugPanelVisible,Bt=ee.state.isInteractiveTime$,xt=ee.ui.additionalSettingsMenuItems$,Ht=ee.ui.t,dt=ee.actions.internal.downloadVideo,Ct=ee.actions.internal.closeSettingsMenu,ti=ee.actions.internal.openSettingsSubMenu,Lt=ee.actions.internal.closeSettingsSubMenu,Ft=K(!1),Qt=K(void 0),Y=t$();Oe(()=>{!r()&&Y.current&&(Lt(ne[Y.current]),Y.popAllSubMenus())}),Oe(()=>{r()||N(Qt,void 0)}),Oe(()=>{!Y.current&&n(Qt)&&pb(X,n(Qt))}),Oe(()=>{j()&&U.set(j())});function Se(Tt){return ht(this,null,function*(){var W;Y.pushSubMenu(Tt),yield go(),ti(Tt,ne[Tt]);let zt=(W=j())==null?void 0:W.firstElementChild;zt&&gm(zt)})}function le(Tt){var zt;Tt==null||Tt.stopPropagation(),a()||(zt=e.returnFocus)==null||zt.call(e),Ct(),N(Ft,!1)}function he(Tt,zt){ee.actions.internal.setQuality(Tt,{appliesTo:zt,byUser:!0}),le()}function Ve(Tt){ee.actions.internal.setAudioStream(Tt),le()}function at(Tt,zt){ee.actions.internal.setTrafficSavingEnabled(Tt,zt),we.features.qualityDetailsSubMenuEnabled&&le()}function vt(Tt,zt){ee.actions.internal.setHighQualityEnabled(Tt,zt),le()}function pe(Tt){ee.actions.internal.setPlaybackRate(Tt),le()}function ze(Tt){ee.actions.internal.setSubtitle(Tt),le()}function Ge(){dt()}function St(){(0,Dc.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),ee.actions.internal.reportProblem(),ee.actions.internal.pause()}function Ut(){jl(ee.actions.internal.getDebugTextData())}let Mt=()=>{let Tt=ee.actions.internal.getTraceTextData(),zt=new Blob([...Tt],{type:"application/json"}),W=window.URL.createObjectURL(zt);Fa(W,"vk_player_trace_info","json")};function ii(){He.set(!l())}function Si(){N(Ft,!0)}function eo(){N(Ft,!1)}function Ot(){return d()?`max-height: ${Math.round(s().height*.6)}px`:`max-height: ${s().height-32-ae()}px; overflow: auto;`}let mi=f(()=>ie&&u()&&!m()),xi=f(()=>we.features.trafficSaving&&!m()&&p()&&!we.features.qualityDetailsSubMenuEnabled),bt=f(()=>v().length>0&&!m()),Xt=f(()=>!!b()&&!m()),Ii=f(()=>we.features.audioLanguages&&y().length>=2&&!m()),zi=f(()=>!m());Rt(()=>Bt.subscribe(Tt=>{Tt&&!d()&&!n(Ft)&&!a()&&le()}));let ei=f(()=>{let Tt=[n(zi)&&"quality-settings",n(Ii)&&"audio-tracks-settings",n(Xt)&&"playback-rate-settings",n(bt)&&"subtitles-settings",n(xi)&&"traffic-saving-switch",n(mi)&&"download",we.showSupport&&"show-support","copy-data",we.features.saveTraceInfoToFile&&"save-trace-info","debug-info"].filter(zt=>!!zt);return u$({items:Tt,context:{qualityDetailsSubMenuEnabled:we.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:g(),currentAudioStream:w(),availableAudioStreams:y(),currentPlaybackRate:I(),selectPlaybackRate:pe,trafficSavingEnabled:T(),toggleTrafficSaving:at,currentQuality:O()||Dc.VideoQuality.INVARIANT,isAutoQualityEnabled:L()||!1,currentSubtitle:E(),isMobile:d(),onDownloadClick:Ge,onCopyDataClick:Ut,onReportProblemClick:St,onSaveTraceDataClick:Mt,toggleShowDebugInfo:ii},additionalSettingsMenuItems:P()})}),kt=f(()=>c$({subMenuId:Y.current,context:{availablePlaybackRates:g(),selectPlaybackRate:pe,trafficSavingEnabled:T(),toggleTrafficSaving:at,currentQuality:O()||Dc.VideoQuality.INVARIANT,isAutoQualityEnabled:L()||!1,isAutoQualityAvailable:q()||!1,availableQualities:F(),highQualityEnabled:z(),toggleHighQuality:vt,availableAudioStreams:y(),availableSubtitlesList:v(),closeSettingsMenu:Ct,currentAudioStream:w(),isMobile:d(),selectAudioLanguage:Ve,selectQuality:he,selectSubtitle:ze}}));var Ye=xC();let vi;var $o=C(Ye);{var Ao=Tt=>{var zt=yC();let W;zt.__keydown=[bC,Ct];var Vt=C(zt);{var li=ft=>{var rt=$C();let ao;var Ni=C(rt),bn=C(Ni,!0);S(Ni);var $n=A(Ni,2);$n.__click=le,S(rt),D((Mi,Vi)=>{ao=se(rt,1,"item header s-u",null,ao,Mi),ve(bn,Vi)},[()=>({mobile:d()}),()=>Ht("submenu_settings")]),$(ft,rt)};R(Vt,ft=>{d()&&ft(li)})}var gt=A(Vt,2);let oi;Ti(gt,21,()=>n(ei),ft=>ft.id,(ft,rt)=>{var ao=Le(),Ni=ce(ao);{var bn=Mi=>{Vv(Mi,{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:()=>{Se(n(rt).children),N(Qt,n(rt).id,!0)},get ref(){return X[n(rt).id]},set ref(Vi){X[n(rt).id]=Vi}})},$n=(Mi,Vi)=>{{var Or=lo=>{let Ai=f(()=>`${n(rt).id}-menu-item`);Nv(lo,{get isMobile(){return d()},get id(){return n(Ai)},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})},Mo=(lo,Ai)=>{{var Vo=Ro=>{let On=f(()=>`${n(rt).id}-menu-item`);Dv(Ro,{get isMobile(){return d()},get id(){return n(On)},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}})};R(lo,Ro=>{n(rt).type==="SWITCH"&&Ro(Vo)},Ai)}};R(Mi,lo=>{n(rt).type==="CLICK"?lo(Or):lo(Mo,!1)},Vi)}};R(Ni,Mi=>{n(rt).type==="OPEN_SUB_MENU"?Mi(bn):Mi($n,!1)})}$(ft,ao)}),S(gt),Ze(gt,ft=>j(ft),()=>j()),S(zt),D((ft,rt,ao)=>{W=se(zt,1,"settings-menu menu s-u",null,W,ft),oi=se(gt,1,"items",null,oi,rt),qe(gt,ao)},[()=>({desktop:!d(),mobile:d(),hidden:!!Y.current}),()=>({mobile:d()}),Ot]),lt("mouseenter",zt,Si),lt("mouseleave",zt,eo),$(Tt,zt)};R($o,Tt=>{r()&&Tt(Ao)})}var Lo=A($o,2);Ti(Lo,17,()=>n(kt),Tt=>Tt.id,(Tt,zt)=>{let W=f(()=>{var Vt;return(Vt=n(zt).minWidth)!=null?Vt:137});Mv(Tt,{get isMobile(){return d()},get playerControlsHeight(){return ae()},get returnFromSubMenu(){return Y.popSubMenu},get id(){return n(zt).id},get title(){return n(zt).title},get closeSettingsMenu(){return Ct},openSubMenuList:Se,get items(){return n(zt).items},get minWidth(){return n(W)},get refMenuItems(){return X},get listRef(){return ne[n(zt).id]},set listRef(Vt){ne[n(zt).id]=Vt}})}),S(Ye),D(Tt=>vi=se(Ye,1,"settings-menu-container s-u",null,vi,Tt),[()=>({mobile:d(),hidden:!r()})]),$(t,Ye),H(),o()}je(["keydown","click"]);var SC=M('<button class="btn s-1f"> </button>'),CC={hash:"s-1f",code:"button.btn.s-1f{background:hsla(0,0%,100%,.1);border-radius:8px;font-size:14px;line-height:18px;margin-top:12px;padding:6px 12px 7px}"};function Zv(t,e){Q(t,CC);var i=SC();i.__click=function(...r){var a;(a=e.onClick)==null||a.apply(this,r)};var o=C(i,!0);S(i),D(()=>ve(o,e.label)),$(t,i)}je(["click"]);var TC=M('<div class="container s-z"><div class="notification s-z"><div><p class="description s-z"><!></p> <!></div> <!></div></div>'),IC={hash:"s-z",code:".container.s-z{display:flex;justify-content:center;left:0;pointer-events:none;position:absolute;right:0;top:20px}.notification.s-z{background:var(--notification-bg);border-radius:var(--notification-radius);display:inline-flex;gap:10px;padding:9px 14px 10px 12px;pointer-events:auto}.description.s-z{font-size:13px;line-height:16px;margin:0;white-space:pre}"};function Hc(t,e){B(e,!0),Q(t,IC);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=Nt(),{ui:{t:r}}=ge(),a=r(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var l=TC(),d=C(l),s=C(d),u=C(s),m=C(u);Oc(m,{get message(){return a}}),S(u);var p=A(u,2);{var v=y=>{let g=f(()=>r("slow_video_notification_button"));Zv(y,{get label(){return n(g)},get onClick(){return e.onSelectAutoQuality}})};R(p,y=>{o||y(v)})}S(s);var b=A(s,2);Os(b,{get onClick(){return e.onClose}}),S(d),S(l),Jr(3,d,()=>xs,()=>({duration:i})),$(t,l),H()}var Fc=require("@vkontakte/videoplayer-shared/es2015");var cl="annotation",Cp=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:a,hideAllControls:l}=i;return this.disabledIds.has(r)?{success:!1,message:"current slotId is disabled via config"}:(e.setAttribute("slot",cl),this.setupSlotStyles(e,o),this.shadowRootContainer.append(e),this.slots.set(r,{rootElement:e,options:i}),a&&this.runHidingControlsWhenIntersected(r,a),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"}}runHidingControlsWhenIntersected(r,a){return ht(this,arguments,function*(e,{observedSlotElementId:i,controlsToObserve:o}){var v;let l=this.slots.get(e);if(!l)return;let d=yield this.findSlotElement(l.rootElement,i,e),{controls:s,hiddenControls:u}=((v=this.store)==null?void 0:v.ui)||{},m=new MutationObserver(b=>b.forEach(()=>{let y=Bs(d,this.shadowRootContainer);o.forEach(g=>{let w=s==null?void 0:s[g],I=w?_e(w):null,T=u==null?void 0:u[g];I&&(T==null||T.set((0,Fc.isIntersecting)(I,y)))})}));m.observe(d,{childList:!0,subtree:!0}),l.observer=m;let p=new Fc.Subscription;o.forEach(b=>{s&&p.add(s[b].subscribe(y=>{let g=u==null?void 0:u[b];y&&y.isDisplayed?g==null||g.set((0,Fc.isIntersecting)(y,Bs(d,this.shadowRootContainer))):g==null||g.set(!1)}))}),l.subs=p})}findSlotElement(e,i,o){return ht(this,null,function*(){return new Promise(r=>{let a=null,l=new MutationObserver(()=>{if(a=e.querySelector(`#${i}`),a){l.disconnect();let s=this.slots.get(o);s&&(s.observerForFindingSlotElement=void 0),r(a)}});l.observe(e,{childList:!0,subtree:!0});let d=this.slots.get(o);d&&(d.observerForFindingSlotElement=l)})})}remove(e){var u,m;let i=this.slots.get(e);if(!i)return;let{rootElement:o,observer:r,observerForFindingSlotElement:a,subs:l,options:{controlsBehaviour:d,hideAllControls:s}}=i;o&&o.remove(),[r,a].forEach(p=>p==null?void 0:p.disconnect()),l==null||l.unsubscribe(),this.slots.delete(e),s&&((u=this.store)==null||u.ui.isControlsAvailable.set(!0)),(m=d==null?void 0:d.controlsToObserve)==null||m.forEach(p=>{var v,b;(b=(v=this.store)==null?void 0:v.ui.hiddenControls[p])==null||b.set(!1)})}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}haveSlots(){return this.slots.size>0}};var EC=M('<div class="container s-6"><!></div>'),PC={hash:"s-6",code:".container.s-6{align-items:center;animation-fill-mode:forwards;animation-name:s-6-videoPlayerStatusIconPopup;background-color:#00000073;border-radius:100%;display:flex;height:64px;justify-content:center;width:64px;will-change:opacity,scale}@keyframes s-6-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 Uc(t,e){B(e,!0),Q(t,PC);let i=h(e,"reversed",3,!1);var o=Le(),r=ce(o);Ms(r,()=>e.Icon,a=>{var l=EC(),d=C(l);Fi(d,()=>e.Icon,(s,u)=>{u(s,{get size(){return"48"},get reversed(){return i()}})}),S(l),D(()=>qe(l,`animation-duration: ${e.duration}ms`)),$(a,l)}),$(t,o),H()}var Jv=require("@vkontakte/videoplayer-core/es2015"),kC=M('<div class="container s-x"><!></div>'),AC={hash:"s-x",code:".container.s-x{align-items:center;display:flex;height:100%;justify-content:center;pointer-events:none;position:absolute;width:100%}"};function eg(t,e){B(e,!0),Q(t,AC);let[i,o]=Re(),r=()=>x(s,"$playbackState$",i),a=()=>x(m,"$previewTrackActive",i),l=()=>x(p,"$previewTrackDragInProgress",i),d=()=>x(u,"$isPlaying$",i),{state:{playbackState$:s,isPlaying$:u},ui:{previewTrackActive:m,previewTrackDragInProgress:p}}=ge(),{features:{playbackStatusShow:v},playbackStatusAnimationDuration:b}=Nt(),y=0,g=K(null),w=K(!1);Oe(()=>{r()===Jv.PlaybackState.PLAYING?N(g,Vn,!0):r()===Jv.PlaybackState.PAUSED?N(g,Fs,!0):N(g,null)}),Oe(()=>{if(!(!v||a()||l()))return y=window.setTimeout(()=>{y=0,N(g,null)},b),()=>{y&&(window.clearTimeout(y),y=0)}}),Oe(()=>{d()&&!n(w)&&(N(w,!0),N(g,null))});var I=Le(),T=ce(I);{var O=L=>{var E=kC(),P=C(E);Uc(P,{get duration(){return b},get Icon(){return n(g)}}),S(E),$(L,E)};R(T,L=>{n(g)&&v&&L(O)})}$(t,I),H(),o()}var LC=M('<div><div data-testid="video-container"></div></div>'),MC={hash:"s-c",code:".video-container.s-c,.video-wrapper.s-c{height:100%;left:0;position:absolute;top:0;width:100%}.video-wrapper.s-c{background:var(--black)}.video-container.s-c,.video-wrapper.s-c{z-index:var(--video-container-z-index)}.video-container.s-c{transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.s-c{transition:none}.nocursor.s-c{cursor:none}"};function ul(t,e){B(e,!0),Q(t,MC);let[i,o]=Re(),r=()=>x(p,"$rotateAlpha",i),a=()=>x(v,"$playerSize",i),l=()=>x(m,"$playerPhase",i),d=()=>x(y,"$chromecastConnected$",i),s=()=>x(b,"$isPlaying$",i),u=h(e,"videoContainer",15),{playerPhase:m,ui:{rotateAlpha:p,playerSize:v},state:{isPlaying$:b,chromecastConnected$:y}}=ge(),{isSmoothVideoRotate:g}=Nt(),w=f(()=>u()&&r()%180?a().height/a().width:1);var I=LC();let T;I.__contextmenu=function(...E){var P;(P=e.onContextMenu)==null||P.apply(this,E)},I.__mousedown=function(...E){var P;(P=e.onMouseDown)==null||P.apply(this,E)},I.__mouseup=function(...E){var P;(P=e.onMouseUp)==null||P.apply(this,E)},I.__click=function(...E){var P;(P=e.onClick)==null||P.apply(this,E)},I.__dblclick=function(...E){var P;(P=e.onDblClick)==null||P.apply(this,E)};var O=C(I);let L;Ze(O,E=>u(E),()=>u()),S(I),D((E,P)=>{T=se(I,1,"video-wrapper s-c",null,T,E),L=se(O,1,"video-container s-c",null,L,P),qe(O,`transform: rotate(${r()}deg) scale(${n(w)})`),Me(O,"data-is-playing",s())},[()=>({hidden:l()!=="video"||d(),nocursor:e.hideCursor}),()=>({"fast-rotate":!g})]),$(t,I),H(),o()}je(["contextmenu","mousedown","mouseup","click","dblclick"]);var VC=M('<div><span class="text s-11"> </span> <!></div>'),RC={hash:"s-11",code:".root.s-11{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-11,.root.visible.s-11{transform:translateX(-50%)}.root.visible.s-11{opacity:1;visibility:visible}.text.s-11{font-size:13px;font-weight:600;line-height:16px}"};function tg(t,e){B(e,!0),Q(t,RC);let{ui:{t:i}}=ge();var o=VC();let r;var a=C(o),l=C(a,!0);S(a);var d=A(a,2);Lc(d,{get size(){return"16"},fill:"currentColor"}),S(o),D((s,u)=>{r=se(o,1,"root s-11",null,r,s),ve(l,u)},[()=>({visible:e.isVisible}),()=>i("double_forward_label")]),$(t,o),H()}var NC=M('<div class="container s-10" role="button" data-testid="preview-track-overlay"><div class="icon s-10"><!></div></div>'),OC={hash:"s-10",code:".container.s-10{background-color:rgba(0,0,0,.48);cursor:pointer;height:100%;position:absolute;width:100%}.container.s-10,.icon.s-10{align-items:center;display:flex;justify-content:center}.icon.s-10{background-color:#00000073;border-radius:100%;height:64px;transition:transform .2s;transition-timing-function:ease-out;width:64px;will-change:transform}.container.s-10:hover .icon:where(.s-10){transform:scale(1.15)}"};function ig(t,e){B(e,!1),Q(t,OC);let o=ge().actions.internal.closePreviewTrack,r=200,a=u=>{u.stopPropagation(),o()};_o();var l=NC();l.__click=a;var d=C(l),s=C(d);return Vn(s,{get size(){return"32"}}),S(d),S(l),Jr(3,l,()=>xs,()=>({duration:r})),$(t,l),Hf(e,"handleClick",a),H({handleClick:a})}je(["click"]);var DC=M('<div class="container s-w"><div class="notification s-w"><span class="text s-w"> </span></div></div>'),BC={hash:"s-w",code:".container.s-w{display:flex;justify-content:center;left:0;pointer-events:none;position:absolute;right:0;top:20px}.notification.s-w{background-color:var(--black-alpha-40);border-radius:var(--notification-radius);padding:10px 16px}.text.s-w{font-size:14px;font-weight:500;line-height:18px}"};function og(t,e){B(e,!1),Q(t,BC);let{ui:{t:i}}=ge();_o();var o=DC(),r=C(o),a=C(r),l=C(a,!0);S(a),S(r),S(o),D(d=>ve(l,d),[()=>i("preview_track_notification_text")],In),Jr(3,r,()=>xs,()=>({duration:340})),$(t,o),H()}var HC=(t,e,i,o,r,a)=>{if(t.stopPropagation(),e()||o()){a();return}},FC=M("<div><!></div>"),UC=M('<div class="spherical-video-icon s-8"><!></div>'),zC=M("<div><!></div>"),WC=M('<div class="settings-menu s-8"><!></div>'),KC=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),qC=M("<!> <!> <!>",1),QC=M('<div class="blocked s-8"></div>'),GC=M('<div class="player-wrapper s-8"><!> <div class="overlay-container"></div></div> <!>',1),YC={hash:"s-8",code:".blocked.s-8,.player-wrapper.s-8{height:100%;position:absolute;width:100%}.blocked.s-8{z-index:var(--overlay-container-z-index)}.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-menu.s-8{bottom:57px;left:0;position:absolute;right:18px;transition:opacity .2s;z-index:var(--settings-menu-z-index)}"};function rg(t,e){B(e,!0),Q(t,YC);let[i,o]=Re(),r=()=>x(xr,"$notificationsToShow$",i),a=()=>x(xi,"$playerPhase",i),l=()=>x(Ao,"$isLoaderVisible",i),d=()=>x(eo,"$adPlaybackState",i),s=()=>x(gt,"$crashed",i),u=()=>x(Vi,"$isInteractiveTime$",i),m=()=>x(zi,"$settingsMenuVisible",i),p=()=>x(Or,"$isInteractiveExpectation$",i),v=()=>x(Ii,"$controlsVisible",i),b=()=>x(lo,"$touched",i),y=()=>x(ls,"$graphIsOpened$",i),g=()=>x(bt,"$isFullscreen",i),w=()=>x(Jn,"$autoplayNextEnabled$",i),I=()=>x(W,"$postrollPassed",i),T=()=>x(Lo,"$isEnded$",i),O=()=>x(xn,"$cursorInside",i),L=()=>x(on,"$isControlsAvailable",i),E=()=>x(br,"$doubleForwardOn$",i),P=()=>x(Bn,"$fakeIsPlaying$",i),q=()=>x(yn,"$bottomNoSmooth",i),F=()=>x(Dr,"$interactiveTimeIndicator",i),z=()=>x(Ni,"$playerSize",i),j=()=>x(bn,"$is3DVideo",i),ae=()=>x(No,"$doubleForwardAvailable$",i),X=()=>x(vi,"$contextMenuVisible$",i),ne=()=>x(Si,"$playbackState$",i),ee=()=>x(Ai,"$hotKeyMapData",i),we=()=>x(kt,"$scrubbingInProgress",i),ue=()=>x(Ye,"$volumeChangingInProgress",i),re=()=>x(Tt,"$chromecastConnected$",i),be=()=>x(rr,"$controlsTimeoutActive",i),$e=()=>x(ei,"$settingsMenuOpenedByKeyboard",i),J=()=>x(Ko,"$contextMenuOpenedByKeyboard$",i),Ne=()=>x(qo,"$contextMenuOpenedByHotKey$",i),fe=()=>x(cn,"$contextMenuButtonRef$",i),k=()=>x(dr,"$contextMenuLastActiveElem$",i),Ke=()=>x(Xt,"$isFullscreenOpenedByKeyboard",i),Te=()=>x(Ro,"$positionExact$",i),Z=()=>x(ii,"$language$",i),ie=()=>x(ga,"$previewTrackActive$",i),De=()=>x($n,"$icon3DVideoVisible",i),Be=()=>x(zt,"$chromecastDeviceName$",i),nt=()=>x(rt,"$currentSubtitle$",i),U=()=>x(ao,"$currentSubtitleCaptions$",i),Ae=()=>x(Ot,"$position$",i),Ee=()=>x(mi,"$duration$",i),We=()=>x(Vt,"$isLive$",i),it=()=>x(li,"$isPlaying$",i),ye=()=>x(rs,"$contextMenuPosition$",i),Ie=()=>x(er,"$previewTrackNotificationVisible$",i),He=()=>x(Vo,"$showHotKeyMap",i),Bt=()=>x($o,"$debugPanelVisible",i),xt=()=>x(Br,"$userActionsDisabled$",i),Ht=h(e,"videoContainer",15),dt=h(e,"adsSlotId",3,void 0),Ct=h(e,"adsParams",3,void 0),ti=h(e,"adsAutoplayParam",3,void 0),Lt=h(e,"duration",3,void 0),Ft=h(e,"logoTargetUrl",3,""),Qt=h(e,"showNextPrevButtons",3,!1),Y=h(e,"nextButtonActive",3,!1),Se=h(e,"prevButtonActive",3,!1),le=h(e,"endScreenVideoTitle",3,void 0),he=h(e,"endScreenVideoThumb",3,void 0),Ve=h(e,"isOneVideoPlaylist",3,!1),at=h(e,"shadowRootContainer",3,void 0),vt=h(e,"outerContainerRef",3,void 0),pe=h(e,"playerStarted",3,!1),ze=h(e,"fullScreenTarget",3,void 0),Ge=h(e,"showMiniTimer",3,!1),St=h(e,"showEndScreen",3,!0),Ut=h(e,"keyboardControls",15),Mt=e.store.getLogger().createComponentLog("Root component"),ii=e.store.interfaceLanguage$,Si=e.store.state.playbackState$,eo=e.store.ads.playbackState,Ot=e.store.state.positionWithScrubbing$,mi=e.store.state.duration$,xi=e.store.playerPhase,bt=e.store.ui.isFullscreen,Xt=e.store.ui.isFullscreenOpenedByKeyboard,Ii=e.store.ui.controlsVisible,zi=e.store.ui.settingsMenu.visible$,ei=e.store.ui.settingsMenu.openedByBtnKeyboard$,kt=e.store.ui.scrubbingInProgress,Ye=e.store.ui.volumeChangingInProgress,vi=e.store.ui.contextMenu.visible$,$o=e.store.ui.debugPanelVisible,Ao=e.store.state.isLoaderVisible,Lo=e.store.state.isEnded$,Tt=e.store.state.chromecastConnected$,zt=e.store.state.chromecastDeviceName$,W=e.store.ads.postrollPassed,Vt=e.store.state.isLive$,li=e.store.state.isPlaying$,gt=e.store.state.crashed$,oi=e.store.webApi.annotationsApi,ft=e.store.webApi.pictureInPictureApi,rt=e.store.state.currentSubtitle$,ao=e.store.state.currentSubtitleCaptions$,Ni=e.store.ui.playerSize,bn=e.store.ui.is3DVideo,$n=e.store.ui.icon3DVideoVisible,Mi=e.store.state.isInteractive,Vi=e.store.state.isInteractiveTime$,Or=e.store.state.isInteractiveExpectation$,Mo=e.store.state.hasInteractiveBranches,lo=e.store.ui.touched,Ai=e.store.ui.modals.hotKeyMap.data,Vo=e.store.ui.modals.hotKeyMap.show,Ro=e.store.state.positionExact$,On=e.store.ui.overlayContainer$,Dr=e.store.ui.controls.interactiveTimeIndicator,_r=e.store.state.showInteractiveTimeIndicator,rs=e.store.ui.contextMenu.position$,ss=e.store.actions.internal.setQuality,as=e.store.actions.internal.closeSettingsMenu,Jn=e.store.ui.autoplayNextEnabled$,Br=e.store.ui.userActionsDisabled,on=e.store.ui.isControlsAvailable,Dn=e.store.ui.videoTitleInfo,br=e.store.ui.doubleForwardOn$,No=e.store.ui.doubleForwardAvailable$,er=e.store.ui.previewTrackNotificationVisible,$r=e.store.actions.internal.getVideoElement,Hr=e.store.actions.internal.checkFullscreenSupport,{fakeIsPlaying$:Bn,notifications$:yr,graphIsOpened$:ls}=bo(),Oo=K(void 0),tr=K(void 0),to=K(void 0),ir=K(void 0),or,ct,ni;Ai.set(sb());let{closeNotification:Fr,notificationsToShow$:xr}=yr,Ur=f(()=>!!r().slow_video),nn=()=>Fr("slow_video"),wr=f(()=>(a()==="video"&&l()||a()==="ads"&&d()==="inactive")&&!s()),rn=K(void 0),yn=de(!1),nr,rr=de(!1),Do=de(),xn=de(!1),sn=K(!1),Hn=K(!1),Ci=K(!1),an=K(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),wn=f(()=>u()&&!m()&&!(n(sn)||n(Hn))&&!(n(Ci)&&!p())),Sr=!0,Cr=f(()=>e.uiConfig.features.thumbTimer&&Ge()&&a()==="video"&&!v()&&!s()&&!Mi&&(e.uiConfig.hideThumbTimerAfterTouch&&!b()||!e.uiConfig.hideThumbTimerAfterTouch)),ln=e.uiConfig.titleShowBehaviour,Sn=f(()=>!["video","thumb"].includes(a())||ln==="never"||y()?!1:ln==="fullscreen"?g():!0),wt=f(()=>ln==="always"||a()==="thumb"?!1:!v()),It=K(!1),co=f(()=>(St()||e.showAutoplayNext&&w())&&!!le()&&!!he()&&(e.showAds&&I()||!e.showAds)&&T()&&!s()&&!n(It)),Bo=f(()=>O()&&!(v()||n(co))&&!u()&&L()&&!E()),yo=K(!1),Ho=f(()=>P()!==null),{toggle:ho}=Bn,xo=!1,Li=null;ft==null||ft.setContext(Td());let zr=()=>{e.autoplay&&!Mi&&e.uiConfig.controls.showOnStartupAtAutoplay&&Wi(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:zr});let Fn=()=>{window.clearTimeout(or),rr.set(!1)},ws=()=>{window.clearTimeout(ct),Do.set(null)},Wi=me=>{Fn(),rr.set(!0),or=window.setTimeout(()=>rr.set(!1),me);let pt=me-100;nr=window.setTimeout(()=>{q()&&yn.set(!1)},pt>0?pt:me)},Ss=(me,pt)=>{ws(),Do.set(pt),ct=window.setTimeout(()=>Do.set(null),me)},Tr=bn.subscribe(me=>{$n.set(me),me&&(window.clearTimeout(ni),ni=window.setTimeout(()=>$n.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Fo=()=>ht(null,null,function*(){var pt,ri,$i,ci;let me=sa();if(me){let uo=tc(),Qo=ar();me=uo===Qo||uo===at()}if(me){Wi(e.uiConfig.controls.hideTimeoutFullscreen);try{yield ft==null?void 0:ft.exit()}catch(uo){Mt({message:String(uo)})}}bt.set(me),e.store.getAdmanWrapper().setFullscreen(me),g()?(ri=(pt=e.store.callbacks)==null?void 0:pt.onFullscreenEnter)==null||ri.call(pt):(ci=($i=e.store.callbacks)==null?void 0:$i.onFullscreenExit)==null||ci.call($i)}),Ir=me=>{let{width:pt,height:ri}=me.target;Ni.set({width:pt,height:ri})},sr=()=>{let{width:me,height:pt}=n(Oo).getBoundingClientRect();Ni.set({width:me,height:pt})};Rt(()=>{var pt;return Ju(Fo),e.uiConfig.features.annotationsInside&&(oi==null||oi.init(n(Oo))),Ka(ft)&&(ft==null||ft.assignPlayerContainer(n(Oo)),ft==null||ft.setExternalEventHandlers({resize:Ir,leavepictureinpicture:sr})),e.interactiveContainer&&((pt=Ht().parentElement)==null||pt.insertBefore(e.interactiveContainer,Ht().nextSibling)),()=>{window.clearTimeout(or),window.clearTimeout(nr),window.clearTimeout(ct),window.clearTimeout(ni),Tr(),ft==null||ft.dispose().catch(ri=>{Mt({message:String(ri)})}),ep(Fo)}});let ar=()=>{let me=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!vt()?n(Oo):vt(),pt=me.getRootNode(),ri=pt instanceof ShadowRoot?pt.host:pt,$i=ze()instanceof HTMLElement&&ze().contains(ri);return e.uiConfig.allowChangingFullscreenTarget&&ze()&&$i?ze():me},dn=()=>{vi.set(!1)},Fe=()=>{as(),dn()},Et=()=>ht(null,null,function*(){if(!Hr()){Mt({message:"fullscreen disabled"});return}dn(),sa()?(yield Zu(document),Mt({message:"exit fullscreen"})):(Mt({message:"request fullscreen"}),yield Xu(ar()))}),fi=me=>{y()||(me.preventDefault(),vi.set(!0),rs.set({left:me.clientX,top:me.clientY}))};function Uo(){xn.set(!0),Mi||Wi(e.uiConfig.controls.hideTimeoutCursor)}function wo(me){var ci,uo;let{relatedTarget:pt}=me,$i=!!(pt&&((ci=n(to))!=null&&ci.contains(pt)))&&((uo=Ut())==null?void 0:uo.isFocused());!Mi&&!$i&&(yn.set(!0),Wi(e.uiConfig.controls.hideTimeoutCursor))}function zo(){xn.set(!1),N(Hn,!1),N(sn,!1),xo=!1,e.store.actions.internal.releaseCamera(),Wi(e.uiConfig.controls.hideTimeout),E()&&Wo()}function Ki(me){return me?me.offsetTop+Ki(me.offsetParent):0}function So(me){return me?me.offsetLeft+So(me.offsetParent):0}function Un(me){if(F()&&_r){let pt=me.currentTarget,ri=Ki(pt),$i=So(pt),ci=me.pageX-$i,uo=me.pageY-ri,{left:Qo,bottom:Ts,right:us}=F(),Is=us-Qo;return ci>=Qo-Is&&uo<=Ts+Is}}function Er(me){if(n(Oo)){let pt=Ki(me.currentTarget),ri=z().height,$i=me.pageY-pt;if(Un(me)){N(Hn,!1);return}$i<40?N(Hn,!0):$i>ri-40?N(sn,!0):(N(Hn,!1),m()||N(sn,!1))}}function Co(me){Er(me),!n(wn)&&!E()&&Wi(e.uiConfig.controls.hideTimeoutCursor),j()&&xo&&Li&&e.store.actions.internal.moveCameraFocusPX(Li.clientX-me.clientX,Li.clientY-me.clientY,me.timeStamp-Li.timeStamp),Li=me}let qi=null,Cn=()=>{qi=window.setTimeout(()=>{e.store.actions.internal.changeDoubleForwardOn(!0),Fn()},e.uiConfig.doubleForwardActivationTime)},Wo=()=>{e.store.actions.internal.changeDoubleForwardOn(!1),qi&&clearTimeout(qi),qi=null},lr=me=>{me.preventDefault(),me.button===0&&(xo=!0,e.store.actions.internal.holdCamera(),ae()&&Cn()),!xo&&Wi(e.uiConfig.controls.hideTimeoutCursor)},Wr=me=>{me.preventDefault(),me.button===0&&(Li=me,xo=!1,e.store.actions.internal.releaseCamera()),!E()&&Wi(e.uiConfig.controls.hideTimeoutCursor)},zn=me=>{me.preventDefault(),Sr&&(Mt({message:"double click on video"}),Et(),Wi(e.uiConfig.controls.hideTimeoutCursor))},ds=me=>{var pt;if(me.preventDefault(),E()){Wo();return}if(qi&&Wo(),X()||m()){Fe();return}if(!(T()&&!Mo)){if(n(Ho))return ho();if((pt=Ut())==null||pt.focus(),!pe()){e.firstStart(),Wi(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||ne()!==ng.PlaybackState.PLAYING)&&e.store.actions.internal.togglePlay(),Wi(e.uiConfig.controls.hideTimeoutCursor)}},et=me=>{Fe(),lo.set(!0),Wi(e.uiConfig.controls.hideTimeout),me&&Ss(e.uiConfig.controls.hideHotKeyHelpers,me)},Zt=()=>{var me,pt;Fe(),(me=e.store.callbacks)!=null&&me.onOpenHotKeyMap?(pt=e.store.callbacks)==null||pt.onOpenHotKeyMap(ee()):Vo.update(ri=>!ri)},Pi=()=>{lo.set(!0)},Ko=e.store.ui.contextMenu.openedByBtnKeyboard$,cn=e.store.ui.contextMenu.btnRef$,Wn=K(void 0),qo=e.store.ui.contextMenu.openedByHotKey$,dr=e.store.ui.contextMenu.lastActiveElem$,Kn=K(!1),ga=e.store.ui.previewTrackActive;Oe(()=>{On.set(n(rn))}),Oe(()=>{N(Ci,n(an)&&ne()!==ng.PlaybackState.PLAYING,!0),n(an)||Pt(()=>N(an,!0))}),Oe(()=>{var pt,ri;let me=(n(Ci)||T()||m()||we()||ue()||re()||be()||n(Kn))&&!n(wn)&&(a()==="video"||a()==="ads")&&!s()&&L();Ii.set(me),!me&&!be()&&((pt=n(to))!=null&&pt.contains(sp()))&&((ri=Ut())==null||ri.focus())}),Oe(()=>{!we()&&n(yo)&&!u()&&Wi(e.uiConfig.controls.hideTimeoutCursor),Pt(()=>N(yo,we(),!0))}),Oe(()=>{n(ir),m(),$e(),Pt(()=>lc(n(ir),m(),$e()))}),Oe(()=>{n(Wn),X(),J(),Ne(),Pt(()=>{let me=J()||Ne();lc(n(Wn),X(),me)})}),Oe(()=>{let me=fe();me&&(X(),Pt(()=>Xl(me,X(),Ko)))}),Oe(()=>{let me=k();me&&(X(),Pt(()=>ub(me,X(),qo)))}),Oe(()=>{var me;!Ke()&&g()&&(Pt(()=>Xt.set(!1)),(me=Ut())==null||me.focus())}),Oe(()=>{y()&&Fe()});let cs=K(void 0),ha=me=>{Dn.set(Xn($r(),{title:n(cs)},"title",me))},_a=(me,pt)=>{var uo,Qo;let ri=(Qo=(uo=e.store.callbacks)==null?void 0:uo.uiInfo)==null?void 0:Qo.onUpcomingLiveViewStateChanged;if(!ri)return;let $i=!!pt,ci=Pe(Pe({},Xn(n(Oo),{upcomingLiveScreen:pt},"upcomingLiveScreen",$i)),me);ri(ci)},ut=f(()=>{var me;return(me=e.getVideoDeeplink)==null?void 0:me.call(e,Te())});var di=GC();lt("blur",Aa,Fe);var gi=ce(di);gi.__mousemove=Co;var un=C(gi);let Kr=f(()=>a()==="ads"),Tn=f(()=>n(Ho)?ho:void 0);Ze(Sm(un,{startDoubleForwardActivationTimer:Cn,stopDoubleForward:Wo,toggleFullscreen:Et,hideContextMenu:Fe,showHotKeyHelpers:et,showKeyMap:Zt,get isAds(){return n(Kr)},get fakePlayButtonHandler(){return n(Tn)},get nextButtonActive(){return Y()},get prevButtonActive(){return Se()},children:(me,pt)=>{var ri=qC(),$i=ce(ri);ul($i,{get hideCursor(){return n(Bo)},onClick:ds,onContextMenu:fi,onMouseDown:lr,onMouseUp:Wr,onDblClick:zn,get videoContainer(){return Ht()},set videoContainer(Qo){Ht(Qo)}});var ci=A($i,2);Oa(ci,()=>"slot",!1,(Qo,Ts)=>{oo(Qo,()=>({name:cl}))});var uo=A(ci,2);Ms(uo,Z,Qo=>{var Ts=KC(),us=ce(Ts);let Is=f(()=>a()!=="thumb"||s()||Mi&&e.autoplay);al(us,{get hidden(){return n(Is)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart},onContextMenu:fi,onClick:dn});var ps=A(us,2);{var Ks=Ue=>{ig(Ue,{})};R(ps,Ue=>{ie()&&Ue(Ks)})}var qs=A(ps,2);eg(qs,{});var ba=A(qs,2);tg(ba,{get isVisible(){return E()}});var pn=A(ba,2);{var Qs=Ue=>{let yi=f(()=>{var po;return(po=e.live)==null?void 0:po.startTime});Rc(Ue,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(yi)},onUpcomingLiveViewStateChanged:_a,onContextMenu:fi,onClick:dn})};R(pn,Ue=>{a()==="LiveWaitingStart"&&Ue(Qs)})}var $a=A(pn,2);{var Pr=Ue=>{ll(Ue,{kind:"recover",get thumbUrl(){return e.thumbUrl},onContextMenu:fi,onClick:dn})};R($a,Ue=>{a()==="LiveWaitingRecover"&&Ue(Pr)})}var ml=A($a,2);{var bd=Ue=>{ll(Ue,{kind:"record",get thumbUrl(){return e.thumbUrl},onContextMenu:fi,onClick:dn})};R(ml,Ue=>{a()==="LiveWaitingRecord"&&Ue(bd)})}var vl=A(ml,2);{var gl=Ue=>{var yi=FC();let po;var kr=C(yi);oc(kr,{get adsSlotId(){return dt()},get adsParams(){return Ct()},get adsAutoplayParam(){return ti()},get duration(){return Lt()},get adsExternalApi(){return e.adsExternalApi}}),S(yi),D(fn=>po=se(yi,1,"ads-container s-8",null,po,fn),[()=>({hidden:a()!=="ads"})]),$(Ue,yi)};R(vl,Ue=>{e.showAds&&pe()&&Ue(gl)})}var hl=A(vl,2);{var $d=Ue=>{let yi=f(()=>!St()&&e.showAutoplayNext&&w());ym(Ue,{get title(){return le()},get thumb(){return he()},get isHide(){return n(yi)},clickCloseIcon:()=>N(It,!0)})};R(hl,Ue=>{n(co)&&le()&&he()&&Ue($d)})}var ya=A(hl,2);{var _l=Ue=>{let yi=f(()=>g()?"md":"sm"),po=f(()=>{var kr;return(kr=e.store.callbacks)==null?void 0:kr.onTitleClicked});Iv(Ue,{get title(){return e.title},get isHidden(){return n(wt)},onVisibilityChanged:ha,get titleLinkHref(){return n(ut)},onMouseEnter:()=>{N(Kn,!0)},onMouseLeave:()=>{N(Kn,!1)},get size(){return n(yi)},get onTitleClicked(){return n(po)},get ref(){return n(cs)},set ref(kr){N(cs,kr,!0)}})};R(ya,Ue=>{n(Sn)&&Ue(_l)})}var ot=A(ya,2);{var mt=Ue=>{let yi=f(()=>a()==="video"&&v());Mc(Ue,{get isShifted(){return n(yi)}})};R(ot,Ue=>{j()&&Ue(mt)})}var Qi=A(ot,2);{var Go=Ue=>{var yi=UC(),po=C(yi);ec(po,{}),S(yi),$(Ue,yi)};R(Qi,Ue=>{De()&&Ue(Go)})}var Gi=A(Qi,2);{var wi=Ue=>{Vc(Ue,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return Be()},onClick:ds,onContextMenu:fi,onDblClick:zn})};R(Gi,Ue=>{re()&&Ue(wi)})}var Di=A(Gi,2);{var xa=Ue=>{rl(Ue,{get shifted(){return v()},get captions(){return U()},get position(){return Ae()},get playerSize(){return z()}})};R(Di,Ue=>{nt().value!=="off"&&Ue(xa)})}var bl=A(Di,2);{var zp=Ue=>{var yi=zC();yi.__contextmenu=fi,yi.__click=[HC,X,vi,m,zi,Fe];var po=C(yi);sl(po,{}),S(yi),$(Ue,yi)};R(bl,Ue=>{s()&&Ue(zp)})}var Jc=A(bl,2);{var Wp=Ue=>{let yi=f(()=>a()==="thumb"||a()==="LiveWaitingStart"||a()==="LiveWaitingRecover"||a()==="LiveWaitingRecord"),po=f(()=>a()==="ads"),kr=f(()=>e.canRewindLive&&Ee()!==0);Ac(Ue,{get bottomHidden(){return n(yi)},get bottomNoSmooth(){return q()},get showControls(){return v()},get isAds(){return n(po)},get canRewindLive(){return n(kr)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Ft()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Qt()},get nextButtonActive(){return Y()},get prevButtonActive(){return Se()},get isOneVideoPlaylist(){return Ve()},customFullscreenSupported:Sr,toggleFullscreen:Et,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return n(tr)},set playerControlsWrapperRef(fn){N(tr,fn,!0)},get playerControlsRef(){return n(to)},set playerControlsRef(fn){N(to,fn,!0)}})};R(Jc,Ue=>{pe()&&Ue(Wp)})}var eu=A(Jc,2);{var Kp=Ue=>{var yi=WC(),po=C(yi);let kr=f(()=>{var fn;return(fn=n(to))==null?void 0:fn.clientHeight});Bc(po,{get supportLink(){return e.supportLink},get playerControlsHeight(){return n(kr)},returnFocus:()=>{var fn;return(fn=Ut())==null?void 0:fn.focus()},get ref(){return n(ir)},set ref(fn){N(ir,fn,!0)}}),S(yi),$(Ue,yi)};R(eu,Ue=>{!re()&&a()!=="ads"&&Ue(Kp)})}var tu=A(eu,2);let qp=f(()=>!n(Cr));sc(tu,{get isLive(){return We()},get isHidden(){return n(qp)},get isPlaying(){return it()},get position(){return Ae()},get duration(){return Ee()}});var wa=A(tu,2);Cv(wa,{get data(){return Do}});var iu=A(wa,2);bm(iu,{get supportLink(){return e.supportLink},returnFocus:()=>{var Ue;return(Ue=Ut())==null?void 0:Ue.focus()},get visible(){return X()},get playerContainerRef(){return n(Oo)},get position(){return ye()},get menuElementRef(){return n(Wn)},set menuElementRef(Ue){N(Wn,Ue,!0)}});var Gs=A(iu,2);{var $l=Ue=>{Hc(Ue,{onClose:nn,onSelectAutoQuality:()=>{ss("auto"),nn()}})};R(Gs,Ue=>{n(Ur)&&Ue($l)})}var ou=A(Gs,2);{var nu=Ue=>{og(Ue,{})};R(ou,Ue=>{Ie()&&Ue(nu)})}var yl=A(ou,2);{var ru=Ue=>{Ya(Ue,{})};R(yl,Ue=>{n(wr)&&Ue(ru)})}var su=A(yl,2);{var au=Ue=>{Im(Ue,{})};R(su,Ue=>{He()&&Ue(au)})}var Qp=A(su,2);{var Gp=Ue=>{cc(Ue,{})};R(Qp,Ue=>{Bt()&&Ue(Gp)})}$(Qo,Ts)}),$(me,ri)},$$slots:{default:!0}}),me=>Ut(me),()=>Ut());var Cs=A(un,2);Ze(Cs,me=>N(rn,me),()=>n(rn)),S(gi),Ze(gi,me=>N(Oo,me),()=>n(Oo));var qr=A(gi,2);{var Oi=me=>{var pt=QC();$(me,pt)};R(qr,me=>{xt()&&me(Oi)})}lt("mouseenter",gi,Uo),lt("mouseleave",gi,zo),lt("click",gi,Pi,!0),lt("focusin",gi,wo,!0),$(t,di),H(),o()}je(["mousemove","contextmenu","click"]);var va=require("@vkontakte/videoplayer-core/es2015"),_$=require("@vkontakte/videoplayer-shared/es2015");var jC=M('<div></div> <div class="info s-12"><div class="triangles-wrapper s-12"><div></div> <div></div> <div></div></div> <p class="step-caption s-12"> </p></div>',1),XC=M("<div><!></div>"),ZC={hash:"s-12",code:".double-click-area.s-12{height:100%;overflow:hidden;position:absolute;top:0;width:25%}.double-click-area.left.s-12{left:0}.double-click-area.right.s-12{right:0}.semicircle.s-12{background-color:rgba(0,0,0,.5);height:100%;position:absolute;top:0;width:100%}.semicircle.left.s-12{border-bottom-right-radius:50%;border-top-right-radius:50%;left:0}.semicircle.right.s-12{border-bottom-left-radius:50%;border-top-left-radius:50%;right:0}.info.s-12{align-items:center;flex-direction:column;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.info.s-12,.triangles-wrapper.s-12{display:flex;justify-content:center}.triangles-wrapper.s-12{margin-bottom:10px;position:relative}.triangle.s-12{animation:s-12-blink .5s infinite;border-bottom:6px solid transparent;border-top:6px solid transparent;height:0;opacity:0;width:0}.triangle.left.s-12:nth-child(3),.triangle.right.s-12:first-child{animation-delay:0s}.triangle.left.s-12:nth-child(2),.triangle.right.s-12:nth-child(2){animation-delay:.1s}.triangle.left.s-12:first-child,.triangle.right.s-12:nth-child(3){animation-delay:.2s}@keyframes s-12-blink{0%{opacity:0}50%{opacity:1}to{opacity:0}}.triangle.left.s-12{border-right:8px solid var(--white)}.triangle.right.s-12{border-left:8px solid var(--white)}.triangle.s-12:not(:last-child){margin-right:5px}.step-caption.s-12{color:var(--white);font-size:12px;line-height:1;margin:0;text-align:center}"};function Tp(t,e){B(e,!0),Q(t,ZC);let i=h(e,"seekStep",3,0),o=K(!1),r=0,a=0,l=K(ui(i())),d=p=>{p.stopPropagation(),a+=1,N(l,i()*(a-1)),a===1?e.handleSingleFirstClick(p):(N(o,!0),e.handleSecondClick()),window.clearTimeout(r),r=window.setTimeout(()=>{a=0,N(o,!1)},300)};gn(()=>{window.clearTimeout(r)});var s=XC();s.__click=d;var u=C(s);{var m=p=>{var v=jC(),b=ce(v),y=A(b,2),g=C(y),w=C(g),I=A(w,2),T=A(I,2);S(g);var O=A(g,2),L=C(O,!0);S(O),S(y),D(E=>{var P,q,F,z;se(b,1,`semicircle ${(P=e.side)!=null?P:""}`,"s-12"),se(w,1,`triangle ${(q=e.side)!=null?q:""}`,"s-12"),se(I,1,`triangle ${(F=e.side)!=null?F:""}`,"s-12"),se(T,1,`triangle ${(z=e.side)!=null?z:""}`,"s-12"),ve(L,E)},[()=>G("doubletap_seek_step",{seconds:n(l).toFixed(0)})]),$(p,v)};R(u,p=>{n(o)&&p(m)})}S(s),D(()=>{var p;return se(s,1,`double-click-area ${(p=e.side)!=null?p:""}`,"s-12")}),$(t,s),H()}je(["click"]);var JC=(t,e,i)=>{e(!1),i()},eT=M('<div class="overlay s-13"></div> <div class="next-video s-13"><div class="top s-13"><div class="caption s-13"> </div> <!></div> <div class="row s-13"><div class="column s-13"><div class="thumb s-13"><div></div> <!></div></div> <div class="column s-13"><div class="title s-13"> </div></div></div></div>',1),tT={hash:"s-13",code:".overlay.s-13{background:rgba(0,0,0,.72);height:100%;position:absolute;width:100%}.next-video.s-13{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-13{display:flex;justify-content:space-between}.caption.s-13{color:var(--white);font-size:11px;font-weight:700;opacity:.8;text-transform:uppercase}.row.s-13{background:rgba(48,48,48,.8);cursor:pointer;display:flex;flex-direction:row;height:102px;margin-top:6px;width:100%}.column.s-13{display:flex;flex-basis:50%;flex-direction:column}.thumb.s-13{align-items:center;background:no-repeat 50%;background-size:cover;display:flex;justify-content:space-around;position:relative}.thumb.s-13,.thumb-overlay.s-13{height:100%;width:100%}.thumb-overlay.s-13{position:absolute}.thumb-overlay.withOpacity.s-13{background:var(--black);opacity:.3}.title.s-13{color:var(--white);font-size:12px;font-weight:700;line-height:1.6;max-height:52px;overflow:hidden;padding:10px 16px}"};function sg(t,e){B(e,!0),Q(t,tT);let[i,o]=Re(),r=()=>x(d,"$autoplayNextEnabled$",i),a=()=>x(s,"$timerNextVideoRunning$",i),l=ge(),d=l.ui.autoplayNextEnabled$,s=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,m=l.actions.internal.nextVideoAnnouncementShow,p=l.actions.internal.nextVideoAnnouncementClick,v=l.actions.internal.nextVideoAnnouncementAuto,b=l.actions.internal.nextVideoAnnouncementCancel,y=()=>{u(!1),v()},g=()=>{e.clickCloseIcon(),b()};Rt(()=>{e.isHide||m(),e.isHide&&r()&&(u(!1),v())});var w=Le(),I=ce(w);{var T=O=>{var L=eT(),E=A(ce(L),2),P=C(E),q=C(P),F=C(q,!0);S(q);var z=A(q,2);Os(z,{onClick:g}),S(P);var j=A(P,2);j.__click=[JC,u,p];var ae=C(j),X=C(ae),ne=C(X);let ee;var we=A(ne,2);{var ue=J=>{uc(J,{get isRunning(){return a()},onTimerEnded:y})};R(we,J=>{r()&&J(ue)})}S(X),S(ae);var re=A(ae,2),be=C(re),$e=C(be,!0);S(be),S(re),S(j),S(E),D((J,Ne)=>{ve(F,J),qe(X,`background-image: url('${e.thumb}')`),ee=se(ne,1,"thumb-overlay s-13",null,ee,Ne),ve($e,e.title)},[()=>r()?G("end_screen_next_video"):G("end_screen_recommended_video"),()=>({withOpacity:r()})]),$(O,L)};R(I,O=>{e.isHide||O(T)})}$(t,w),H(),o()}je(["click"]);var f$=require("@vkontakte/videoplayer-core/es2015");var m$=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Rt(()=>{f$.clientChecker.device.isIOS&&(o=setTimeout(()=>{let a=t().querySelector("video");if(!a)return;let l=()=>e(!0),d=()=>e(!1);a.addEventListener("webkitbeginfullscreen",l),a.addEventListener("webkitendfullscreen",d),i=()=>{a.removeEventListener("webkitbeginfullscreen",l),a.removeEventListener("webkitendfullscreen",d)}},0))}),gn(()=>{i==null||i(),clearTimeout(o)})};var v$=require("@vkontakte/videoplayer-core/es2015");var Ip=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 g$=require("@vkontakte/videoplayer-core/es2015"),h$=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:r,availableSubtitlesList$:a,currentFormat$:l,availableTextTracks$:d}=t.state,s=null,u=()=>e().querySelector("video"),m=()=>g$.clientChecker.device.isIOS&&_e(l)===v$.VideoFormat.DASH_LIVE_CMAF,p=()=>{s==null||s(),s=null},v=b=>{if(p(),!m()||!b)return;let y=u();if(!y)return;let g=new Ip(y),w=_e(d),I=_e(a),T=_e(r);for(let E of w)I.some(q=>q.value===E.id)&&g.attach(E,T.value===E.id);let O=d.subscribe(E=>{for(let P of E)g.updateSrc(P)}),L=()=>{let E=g.getCurrentShowingId();o(_e(a).find(P=>P.value===E))};y.textTracks.addEventListener("change",L),s=()=>{O(),g.detachAll(),y.textTracks.removeEventListener("change",L)}};Rt(()=>i.subscribe(v)),gn(p)};var iT=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},oT=M("<!> <!>",1),nT=M("<div><!></div>"),rT=M('<div class="spherical-video-icon s-9"><!></div>'),sT=M("<div><!></div>"),aT=M('<div class="settings-mobile s-9"><!></div>'),lT=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),dT=M('<div class="player-wrapper s-9" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),cT={hash:"s-9",code:".player-wrapper.s-9{height:100%;position:absolute;width:100%}.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-mobile.s-9{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 ag(t,e){var ln,Sn;B(e,!0),Q(t,cT);let[i,o]=Re(),r=()=>x(Ve,"$playerPhase",i),a=()=>x(Si,"$isLoaderVisible",i),l=()=>x(Se,"$adPlaybackState",i),d=()=>x(ei,"$crashed",i),s=()=>x(ss,"$notificationsToShow$",i),u=()=>x(Y,"$playbackState$",i),m=()=>x(Lt,"$graphIsOpened$",i),p=()=>x(ze,"$interactiveHideMobileControls",i),v=()=>x(eo,"$isEnded$",i),b=()=>x(gt,"$isInteractiveExpectation$",i),y=()=>x(vt,"$controlsVisible",i),g=()=>x(rt,"$touched",i),w=()=>x(Ni,"$autoplayNextEnabled$",i),I=()=>x(xi,"$postrollPassed",i),T=()=>x(Br,"$bottomNoSmooth",i),O=()=>x(vi,"$videoSize",i),L=()=>x(Tt,"$playerSize",i),E=()=>x(at,"$isFullscreen",i),P=()=>x(le,"$position$",i),q=()=>x(he,"$duration$",i),F=()=>x(bn,"$loadedMetadata",i),z=()=>x(Ge,"$settingsMenuVisible",i),j=()=>x(Ut,"$scrubbingInProgress",i),ae=()=>x(Mt,"$volumeChangingInProgress",i),X=()=>x(Ot,"$chromecastConnected$",i),ne=()=>x(pe,"$isControlsAvailable",i),ee=()=>x(li,"$isInteractiveTime$",i),we=()=>x(Ii,"$isActiveLive",i),ue=()=>x(St,"$settingsMenuOpenedByKeyboard",i),re=()=>x(Qt,"$language$",i),be=()=>x(ft,"$disabledControls$",i),$e=()=>x(zt,"$is3DVideo",i),J=()=>x(W,"$icon3DVideoVisible",i),Ne=()=>x(mi,"$chromecastDeviceName$",i),fe=()=>x($o,"$currentSubtitle$",i),k=()=>x(Ao,"$currentSubtitleCaptions$",i),Ke=()=>x(Lo,"$realDuration$",i),Te=()=>x(bt,"$isLive$",i),Z=()=>x(Xt,"$isPlaying$",i),ie=()=>x(ii,"$debugPanelVisible",i),De=h(e,"videoContainer",15),Be=h(e,"adsSlotId",3,void 0),nt=h(e,"adsParams",3,void 0),U=h(e,"adsAutoplayParam",3,void 0),Ae=h(e,"duration",3,void 0),Ee=h(e,"logoTargetUrl",3,""),We=h(e,"showNextPrevButtons",3,!1),it=h(e,"nextButtonActive",3,!1),ye=h(e,"prevButtonActive",3,!1),Ie=h(e,"endScreenVideoTitle",3,void 0),He=h(e,"endScreenVideoThumb",3,void 0),Bt=h(e,"isOneVideoPlaylist",3,!1),xt=h(e,"showMiniTimer",3,!1),Ht=h(e,"fullScreenTarget",3,void 0),dt=h(e,"playerStarted",3,!1),Ct=h(e,"showEndScreen",3,!0),{notifications$:ti,graphIsOpened$:Lt}=bo(),Ft=e.store.getLogger().createComponentLog("Root component"),Qt=e.store.interfaceLanguage$,Y=e.store.state.playbackState$,Se=e.store.ads.playbackState,le=e.store.state.positionWithScrubbing$,he=e.store.state.duration$,Ve=e.store.playerPhase,at=e.store.ui.isFullscreen,vt=e.store.ui.controlsVisible,pe=e.store.ui.isControlsAvailable,ze=e.store.ui.interactiveHideMobileControls,Ge=e.store.ui.settingsMenu.visible$,St=e.store.ui.settingsMenu.openedByBtnKeyboard$,Ut=e.store.ui.scrubbingInProgress,Mt=e.store.ui.volumeChangingInProgress,ii=e.store.ui.debugPanelVisible,Si=e.store.state.isLoaderVisible,eo=e.store.state.isEnded$,Ot=e.store.state.chromecastConnected$,mi=e.store.state.chromecastDeviceName$,xi=e.store.ads.postrollPassed,bt=e.store.state.isLive$,Xt=e.store.state.isPlaying$,Ii=e.store.state.isActiveLive$,zi=e.store.state.isRewindableLive$,ei=e.store.state.crashed$,kt=e.store.webApi.annotationsApi,Ye=e.store.webApi.pictureInPictureApi,vi=e.store.state.videoSize$,$o=e.store.state.currentSubtitle$,Ao=e.store.state.currentSubtitleCaptions$,Lo=e.store.state.duration$,Tt=e.store.ui.playerSize,zt=e.store.ui.is3DVideo,W=e.store.ui.icon3DVideoVisible,Vt=e.store.state.isInteractive,li=e.store.state.isInteractiveTime$,gt=e.store.state.isInteractiveExpectation$,oi=e.store.state.hasInteractiveBranches,ft=e.store.ui.controls.disabledControls$,rt=e.store.ui.touched,ao=e.store.ui.overlayContainer$,Ni=e.store.ui.autoplayNextEnabled$,bn=e.store.state.loadedMetadata$,$n=e.store.actions.internal.closeSettingsMenu,Mi=(ln=e.store.callbacks)==null?void 0:ln.onDisabledPlayPrevChapterClick,Vi=(Sn=e.store.callbacks)==null?void 0:Sn.onDisabledSeekToInteractiveClick,Or=e.store.actions.internal.setQuality,Mo=K(void 0),lo=K(void 0),Ai=K(void 0),Vo=K(void 0),Ro,On,Dr=f(()=>(r()==="video"&&a()||r()==="ads"&&l()==="inactive")&&!d()),_r=K(void 0),{closeNotification:rs,notificationsToShow$:ss}=ti,as=f(()=>!!s().slow_video),Jn=()=>rs("slow_video"),Br=de(!1),on,Dn=K(!1),br=f(()=>u()!==va.PlaybackState.PLAYING),No=K(!1),er=f(()=>m()||p()||!n(Dn)&&(v()&&!!oi||n(br)&&b())),$r=K(!0),Hr=f(()=>e.uiConfig.features.thumbTimer&&xt()&&r()==="video"&&!y()&&!d()&&!Vt&&(e.uiConfig.hideThumbTimerAfterTouch&&!g()||!e.uiConfig.hideThumbTimerAfterTouch)),Bn=K(!1),yr=f(()=>(Ct()||e.showAutoplayNext&&w())&&!!Ie()&&!!He()&&(e.showAds&&I()||!e.showAds)&&v()&&!d()&&!n(Bn)),ls=K(!1);Ye==null||Ye.setContext(Td());let Oo=wt=>{wt&&!Vt&&to(e.uiConfig.controls.hideTimeoutMobile)};e.store.setUiCallbacks({onStarted:Oo});let tr=()=>{clearTimeout(Ro),N(Dn,!1),p()&&ze.set(!1)},to=wt=>{tr(),N(Dn,!0),Ro=setTimeout(()=>N(Dn,!1),wt);let It=wt-100;on=setTimeout(()=>{T()&&Br.set(!1)},It>0?It:wt)},ir=zt.subscribe(wt=>{W.set(wt),wt&&(clearTimeout(On),On=setTimeout(()=>W.set(!1),e.uiConfig.controls.hide360IconTimeout))}),or=(...It)=>ht(null,[...It],function*(wt=sa()){var co,Bo,yo,Ho,ho,xo;if(wt&&!va.clientChecker.device.isIOS){let Li=tc(),zr=nn(),Fn=va.clientChecker.browser.isSamsungBrowser&&Li===e.shadowRootContainer;wt=Li===zr||Fn}if(wt){to(e.uiConfig.controls.hideTimeoutFullscreen);try{yield Ye==null?void 0:Ye.exit()}catch(Li){Ft({message:String(Li)})}try{let Li=(co=O())!=null&&co.width&&((Bo=O())!=null&&Bo.height)?O():L();yield rb(Li)}catch(Li){Ft({message:String(Li)})}}at.set(wt),e.store.getAdmanWrapper().setFullscreen(wt),E()?(Ho=(yo=e.store.callbacks)==null?void 0:yo.onFullscreenEnter)==null||Ho.call(yo):(xo=(ho=e.store.callbacks)==null?void 0:ho.onFullscreenExit)==null||xo.call(ho)}),ct=wt=>{let It=wt,{width:co,height:Bo}=It.target;Tt.set({width:co,height:Bo})},ni=()=>{let{width:wt,height:It}=n(Mo).getBoundingClientRect();Tt.set({width:wt,height:It})};Rt(()=>{var wt;return Ju(or),e.uiConfig.features.annotationsInside&&(kt==null||kt.init(n(Mo))),Ka(Ye)&&(Ye==null||Ye.assignPlayerContainer(n(Mo)),Ye==null||Ye.setExternalEventHandlers({resize:ct,leavepictureinpicture:ni})),N($r,!va.clientChecker.device.isIphoneOrOldIpad),e.interactiveContainer&&((wt=De().parentElement)==null||wt.insertBefore(e.interactiveContainer,De().nextSibling)),()=>{clearTimeout(Ro),clearTimeout(on),clearTimeout(On),ir(),Ye==null||Ye.dispose().catch(It=>{Ft({message:String(It)})}),ep(or)}});let Fr=K(!0),xr=K(!0),Ur=wt=>{let It=P()+(wt==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;It<0?(N(Fr,!1),It=0):It>=q()&&(N(xr,!1),It=q()),N(No,!0),e.seekTime(It)},nn=()=>va.clientChecker.device.isIOS?n(Mo):!e.uiConfig.allowChangingFullscreenTarget||!Ht()?e.outerContainerRef:Ht().contains(e.outerContainerRef)?Ht():e.outerContainerRef,wr=()=>ht(null,null,function*(){try{if(sa())yield Zu(document),Ft({message:"exit fullscreen"});else{if(Ft({message:"request fullscreen"}),va.clientChecker.device.isIOS&&!F())return;yield Xu(nn())}}catch(wt){Ft({message:String(wt)})}}),rn=()=>{$n()},yn=wt=>{if(wt.preventDefault(),z()){rn();return}if(!dt()){e.firstStart(),to(e.uiConfig.controls.hideTimeoutCursor);return}N(No,!1),y()?tr():to(e.uiConfig.controls.hideTimeoutMobile)},nr=()=>{rt.set(!0)},rr=()=>{Vt||(Br.set(!0),to(e.uiConfig.controls.hideTimeoutCursor))},Do=wt=>{Mi&&(Mi(wt),to(e.uiConfig.controls.hideTimeoutMobile))},xn=wt=>{Vi&&(Vi(wt),to(e.uiConfig.controls.hideTimeoutMobile))};Oe(()=>{ao.set(n(_r))}),Oe(()=>{vt.set((n(br)||z()||j()||ae()||X()||!n(yr)&&(v()||n(Dn)&&!n(No)))&&!n(er)&&r()==="video"&&!d()&&ne())}),Oe(()=>{!j()&&n(ls)&&!ee()&&to(e.uiConfig.controls.hideTimeoutMobile),N(ls,j(),!0)}),Oe(()=>{N(Fr,P()>0),N(xr,!we()&&P()<q(),!0)}),Oe(()=>{lc(n(Vo),z(),ue(),!0)});let sn=G("aria_label_video_player");m$({fullScreenChangeHandler:or,getFullscreenTarget:nn}),h$({store:e.store,getFullscreenTarget:nn});let Hn=(wt,It)=>{var Ho,ho;let co=(ho=(Ho=e.store.callbacks)==null?void 0:Ho.uiInfo)==null?void 0:ho.onUpcomingLiveViewStateChanged;if(!co)return;let Bo=!!It,yo=Pe(Pe({},Xn(n(Mo),{upcomingLiveScreen:It},"upcomingLiveScreen",Bo)),wt);co(yo)};var Ci=dT();lt("blur",Aa,rn);var an=C(Ci);ul(an,{onClick:yn,get videoContainer(){return De()},set videoContainer(wt){De(wt)}});var wn=A(an,2);Oa(wn,()=>"slot",!1,(wt,It)=>{oo(wt,()=>({name:cl}))});var Sr=A(wn,2);Ms(Sr,re,wt=>{var It=lT(),co=ce(It);let Bo=f(()=>r()!=="thumb"||d()||Vt&&e.autoplay||e.uiConfig.features.disableThumbUnstartedOnAutoplay&&e.autoplay);al(co,{get hidden(){return n(Bo)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var yo=A(co,2);{var Ho=et=>{var Zt=oT(),Pi=ce(Zt);{var Ko=qo=>{let dr=f(()=>e.uiConfig.controls.seekStepMobile/1e3);Tp(qo,{side:"left",get seekStep(){return n(dr)},handleSingleFirstClick:yn,handleSecondClick:()=>Ur("backward")})};R(Pi,qo=>{n(Fr)&&qo(Ko)})}var cn=A(Pi,2);{var Wn=qo=>{let dr=f(()=>e.uiConfig.controls.seekStepMobile/1e3);Tp(qo,{side:"right",get seekStep(){return n(dr)},handleSingleFirstClick:yn,handleSecondClick:()=>Ur("forward")})};R(cn,qo=>{n(xr)&&qo(Wn)})}$(et,Zt)};R(yo,et=>{e.canRewindLive&&zi&&!be().has("TIMELINE")&&et(Ho)})}var ho=A(yo,2);{var xo=et=>{let Zt=f(()=>{var Pi;return(Pi=e.live)==null?void 0:Pi.startTime});Rc(et,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(Zt)},onUpcomingLiveViewStateChanged:Hn})};R(ho,et=>{r()==="LiveWaitingStart"&&et(xo)})}var Li=A(ho,2);{var zr=et=>{ll(et,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};R(Li,et=>{r()==="LiveWaitingRecover"&&et(zr)})}var Fn=A(Li,2);{var ws=et=>{ll(et,{kind:"record",get thumbUrl(){return e.thumbUrl}})};R(Fn,et=>{r()==="LiveWaitingRecord"&&et(ws)})}var Wi=A(Fn,2);{var Ss=et=>{var Zt=nT();let Pi;var Ko=C(Zt);oc(Ko,{get adsSlotId(){return Be()},get adsParams(){return nt()},get adsAutoplayParam(){return U()},get duration(){return Ae()},get adsExternalApi(){return e.adsExternalApi}}),S(Zt),D(cn=>Pi=se(Zt,1,"ads-container s-9",null,Pi,cn),[()=>({hidden:r()!=="ads"})]),$(et,Zt)};R(Wi,et=>{e.showAds&&dt()&&et(Ss)})}var Tr=A(Wi,2);{var Fo=et=>{let Zt=f(()=>!Ct()&&e.showAutoplayNext&&w());sg(et,{get title(){return Ie()},get thumb(){return He()},get isHide(){return n(Zt)},clickCloseIcon:()=>N(Bn,!0)})};R(Tr,et=>{n(yr)&&Ie()&&He()&&et(Fo)})}var Ir=A(Tr,2);{var sr=et=>{Mc(et,{})};R(Ir,et=>{$e()&&et(sr)})}var ar=A(Ir,2);{var dn=et=>{var Zt=rT(),Pi=C(Zt);ec(Pi,{}),S(Zt),$(et,Zt)};R(ar,et=>{J()&&et(dn)})}var Fe=A(ar,2);{var Et=et=>{Vc(et,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return Ne()},onClick:yn})};R(Fe,et=>{X()&&et(Et)})}var fi=A(Fe,2);{var Uo=et=>{rl(et,{get shifted(){return y()},get captions(){return k()},get position(){return P()},get playerSize(){return L()},isMobile:!0})};R(fi,et=>{fe().value!=="off"&&et(Uo)})}var wo=A(fi,2);{var zo=et=>{var Zt=sT();Zt.__click=[iT,z,Ge,rn];var Pi=C(Zt);sl(Pi,{}),S(Zt),$(et,Zt)};R(wo,et=>{d()&&et(zo)})}var Ki=A(wo,2);{var So=et=>{let Zt=f(()=>r()==="thumb"||r()==="LiveWaitingStart"||r()==="LiveWaitingRecover"||r()==="LiveWaitingRecord"||r()==="ads"),Pi=f(()=>r()==="ads"),Ko=f(()=>e.canRewindLive&&Ke()!==0);Ac(et,{get bottomHidden(){return n(Zt)},get showControls(){return y()},get bottomNoSmooth(){return T()},get isAds(){return n(Pi)},get canRewindLive(){return n(Ko)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Ee()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return We()},get nextButtonActive(){return it()},get prevButtonActive(){return ye()},get isOneVideoPlaylist(){return Bt()},get customFullscreenSupported(){return n($r)},get endScreenShown(){return n(yr)},toggleFullscreen:wr,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:Do,onDisabledSeekToInteractiveClick:xn,get playerControlsWrapperRef(){return n(lo)},set playerControlsWrapperRef(cn){N(lo,cn,!0)},get playerControlsRef(){return n(Ai)},set playerControlsRef(cn){N(Ai,cn,!0)}})};R(Ki,et=>{dt()&&et(So)})}var Un=A(Ki,2);{var Er=et=>{var Zt=aT(),Pi=C(Zt);Bc(Pi,{get supportLink(){return e.supportLink},get returnFocus(){return _$.noop},get ref(){return n(Vo)},set ref(Ko){N(Vo,Ko,!0)}}),S(Zt),$(et,Zt)};R(Un,et=>{z()&&et(Er)})}var Co=A(Un,2);let qi=f(()=>!n(Hr));sc(Co,{get isLive(){return Te()},get isHidden(){return n(qi)},get isPlaying(){return Z()},get position(){return P()},get duration(){return q()}});var Cn=A(Co,2);{var Wo=et=>{Ya(et,{})};R(Cn,et=>{n(Dr)&&et(Wo)})}var lr=A(Cn,2);{var Wr=et=>{cc(et,{})};R(lr,et=>{ie()&&et(Wr)})}var zn=A(lr,2);{var ds=et=>{Hc(et,{onClose:Jn,onSelectAutoQuality:()=>{Or("auto"),Jn()}})};R(zn,et=>{n(as)&&et(ds)})}$(wt,It)});var Cr=A(Sr,2);Ze(Cr,wt=>N(_r,wt),()=>n(_r)),S(Ci),Ze(Ci,wt=>N(Mo,wt),()=>n(Mo)),D(()=>Me(Ci,"aria-label",sn)),lt("click",Ci,nr,!0),lt("focusin",Ci,rr,!0),$(t,Ci),H(),o()}je(["click"]);function Ep(t){let e="";return so(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),so(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),so(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),so(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),so(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),so(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),so(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),so(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),so(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),so(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),so(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),so(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),so(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),so(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),so(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),so(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),so(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),so(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),so(t.font)&&(e+=`--font:${t.font};`),so(t.controlsGradientHeight)&&(e+=`--controls-gradient-height:${t.controlsGradientHeight};`),so(t.controlsGradient)&&(e+=`--controls-gradient:${t.controlsGradient};`),e.length&&e||void 0}function so(t){return typeof t=="string"&&!t.includes(";")}var b$=require("@vkontakte/videoplayer-shared/es2015");var uT=M('<div class="time-container s-7"><!></div>'),pT=M('<div class="player-wrapper s-7" role="region"><!> <!> <!> <!> <!> <div><!></div></div>'),fT={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 lg(t,e){B(e,!0),Q(t,fT);let[i,o]=Re(),r=()=>x(ee,"$scrubbingInProgress",i),a=()=>x(X,"$playerSize",i),l=()=>x(P,"$isPlaying$",i),d=()=>x(L,"$duration$",i),s=()=>x(z,"$positionWithScrubbing$",i),u=()=>x(T,"$playerPhase",i),m=()=>x(O,"$crashed$",i),p=()=>x(q,"$currentSubtitle$",i),v=()=>x(F,"$currentSubtitleCaptions$",i),b=()=>x(E,"$positionExact$",i),y=()=>x(j,"$isLive$",i),g=()=>x(ae,"$isRewindableLive$",i),w=h(e,"outsideDuration",3,0),I=h(e,"videoContainer",15),{playerPhase:T,state:{crashed$:O,duration$:L,positionExact$:E,isPlaying$:P,currentSubtitle$:q,currentSubtitleCaptions$:F,positionWithScrubbing$:z,isLive$:j,isRewindableLive$:ae},ui:{playerSize:X,controls:ne,scrubbingInProgress:ee},actions:{internal:{getVideoElement:we}}}=ge(),ue=8,re=K(!1),be=ui({}),$e=K(!1),J=f(()=>!r()&&!n($e)),Ne=()=>{N(re,!0)},fe=()=>{N(re,!1)},k=(0,b$.debounceFn)(sd,260);Oe(()=>{a(),k(we(),ne,be,n(re))});let Ke=f(()=>l()?tn(d()-s()):tn(isFinite(d())?d():w()));var Te=pT(),Z=C(Te);ul(Z,{hideCursor:!1,get videoContainer(){return I()},set videoContainer(Ie){I(Ie)}});var ie=A(Z,2);Oa(ie,()=>"slot",!1,(Ie,He)=>{oo(Ie,()=>({name:cl}))});var De=A(ie,2);let Be=f(()=>u()!=="thumb"||m());al(De,{get hidden(){return n(Be)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var nt=A(De,2);{var U=Ie=>{rl(Ie,{shifted:!1,get captions(){return v()},get position(){return b()},get playerSize(){return a()}})};R(nt,Ie=>{p().value!=="off"&&n(J)&&Ie(U)})}var Ae=A(nt,2);{var Ee=Ie=>{var He=uT(),Bt=C(He);rc(Bt,{get isLive(){return y()},get isPlaying(){return l()},get time(){return n(Ke)}}),S(He),$(Ie,He)};R(Ae,Ie=>{n(J)&&Ie(Ee)})}var We=A(Ae,2);let it;var ye=C(We);il(ye,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return g()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:ue,tooltipRightOffset:ue,get ref(){return be.timeline},set ref(Ie){be.timeline=Ie}}),S(We),S(Te),D(Ie=>it=se(We,1,"timeline s-7",null,it,Ie),[()=>({visible:n(re)})]),lt("mouseenter",Te,Ne),lt("mouseleave",Te,fe),lt("mouseenter",We,()=>N($e,!0)),lt("mouseleave",We,()=>N($e,!1)),$(t,Te),H(),o()}var mT=M("<div><!></div>"),vT={hash:"s-0",code:'.vk-vp-root.s-0{--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-0{overflow:visible}.vk-vp-root.s-0 *{-webkit-tap-highlight-color:transparent}.vk-vp-root.s-0 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-0 p{margin:0}.vk-vp-root.s-0 svg:not(.interactive-root svg){pointer-events:none}.vk-vp-root.s-0 .interactive-root{font-family:var(--vk-vp-int-custom-font,inherit)}.vk-vp-root.s-0 :focus,.vk-vp-root.s-0 :focus-visible{outline:none}.vk-vp-root.s-0 :focus-visible{border-radius:var(--focused-outline-radius);box-shadow:var(--focused-element-shadow)}.vk-vp-root.s-0 .focus-hidden:focus-visible{box-shadow:none}.vk-vp-root.s-0 .hidden{opacity:0;visibility:hidden}.vk-vp-root.s-0 .out-of-flow{content-visibility:hidden!important}.vk-vp-root.s-0 .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-0 .out-of-view{left:-1000vh!important;position:absolute!important}.vk-vp-root.s-0 .icon.icon-error-stub{align-items:center;display:flex;justify-content:center}'};function dg(t,e){B(e,!0),Q(t,vT);let[i,o]=Re(),r=()=>x(dt,"$isLive$",i),a=()=>x(kt,"$availableSubtitlesList$",i),l=()=>x(Ye,"$isPreviewTrackHorizontallyAligned$",i),d=h(e,"sources",7),s=h(e,"store",7),u=h(e,"microStoresRoot",7),m=h(e,"videoConfig",7),p=h(e,"uiConfig",7),v=h(e,"title",7),b=h(e,"thumbUrl",7),y=h(e,"interactiveContainer",7),g=h(e,"interactiveController",7),w=h(e,"subtitles",7),I=h(e,"subtitlesForcedLanguage",7),T=h(e,"live",7),O=h(e,"preload",7),L=h(e,"autoplay",7),E=h(e,"volume",7,void 0),P=h(e,"muted",7,void 0),q=h(e,"fromTime",7),F=h(e,"canRewindLive",7),z=h(e,"showAds",7),j=h(e,"adsSlotId",7,void 0),ae=h(e,"adsParams",7,void 0),X=h(e,"adsAutoplayParam",7,void 0),ne=h(e,"duration",7,void 0),ee=h(e,"logoClickable",7),we=h(e,"logoHidden",7),ue=h(e,"isMobile",7),re=h(e,"showNextPrevButtons",7,!1),be=h(e,"nextButtonActive",7,!1),$e=h(e,"prevButtonActive",7,!1),J=h(e,"endScreenVideoTitle",7,void 0),Ne=h(e,"endScreenVideoThumb",7,void 0),fe=h(e,"isOneVideoPlaylist",7,!1),k=h(e,"supportLink",7),Ke=h(e,"shadowRootContainer",7),Te=h(e,"outerContainerRef",7),Z=h(e,"fullScreenTarget",7,void 0),ie=h(e,"failoverHosts",7,void 0),De=h(e,"showMiniTimer",7,!1),Be=h(e,"saveRate",7),nt=h(e,"seekToInteractive",7,pl.noop),U=h(e,"playPrevChapter",7,pl.noop),Ae=h(e,"volumeMultiplier",7),Ee=h(e,"showAutoplayNext",7),We=h(e,"showEndScreen",7,!0),it=h(e,"keyboardControls",15,void 0),{subscribers:ye,stores:Ie}=u();f_(p());let He=Nt(),Bt=p().logoLink,xt=s().ui.debugPanelVisible,Ht=s().ui.playerSize,dt=s().state.isLive$,ti=s().state.isInteractive&&ud.clientChecker.device.isAndroid,Lt=K(void 0),Ft=null,Qt=K(!1);s().getAdmanWrapper().init({switchFromAdsToVideo:s().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:s().actions.internal.switchFromVideoToAds,setMuted:s().actions.external.setMuted},s().ads,{vsid:s().vsid}),S_(s(),Ie),Oe(()=>{var W,Vt;s().ui.isMobile.set(ue()),(Vt=(W=m().callbacks)==null?void 0:W.onDomReady)==null||Vt.call(W)});let Y=(W=!1)=>{N(Qt,!0),W?s().actions.external.firstStart(z()):s().actions.internal.firstStart(z())},Se=()=>{if(He.features.qualityDetailsSubMenuEnabled){let W=Q_(s().videoId);if(W)switch(W.type){case"high_quality":s().actions.internal.setHighQualityEnabled(!0,W.appliesTo);break;case"traffic_saving":s().actions.internal.setTrafficSavingEnabled(!0,W.appliesTo);break;case"exact_quality":s().actions.internal.setQuality(W.quality);break}}else{G_(s().videoId),tm()&&s().actions.internal.setTrafficSavingEnabled(!0);let Vt=Zf(s().videoId);Vt&&s().actions.internal.setQuality(Vt)}};function le(W){var ft,rt,ao;let Vt=d()||W;Vt&&s().initVideo({container:n(Lt),sources:Vt,failoverHosts:ie(),subtitles:w(),subtitlesForcedLanguage:I(),volumeMultiplier:Ae()});let li=pl.safeStorage.get(Gd)==="true";xt.set(li),q()>0&&s().actions.external.seekTime(q());let gt=ue()?He.volumeDefault:(rt=(ft=E())!=null?ft:Uu())!=null?rt:He.volumeDefault,oi=(ao=P())!=null?ao:F_();if(s().actions.external.setVolume(gt),s().actions.external.setMuted(oi),s().getAdmanWrapper().setInitialVolume(oi?0:gt),Se(),He.features.saveRate&&Be()){let Ni=W_();Ni&&!r()&&s().actions.internal.setPlaybackRate(Ni)}if(Ee()){let Ni=q_();Ni&&s().actions.internal.setAutoplayNextEnabled(Ni)}s().ui.isAutoplay.set(L()),L()&&Y(),O()&&He.features.preload&&s().actions.internal.preload()}let he=W=>{if(window.ResizeObserver){let Vt,li;Ft=new ResizeObserver((0,pl.throttleFn)(gt=>{let oi=gt[0];if(oi.contentBoxSize){let ft=Array.isArray(oi.contentBoxSize)?oi.contentBoxSize[0]:oi.contentBoxSize;Vt=ft.inlineSize,li=ft.blockSize}else oi.contentRect&&(Vt=oi.contentRect.width,li=oi.contentRect.height);Ht.set({width:Vt,height:li})},300)),Ft.observe(W)}W.clientWidth&&W.clientHeight&&Ht.set({width:W.clientWidth,height:W.clientHeight})},Ve=()=>{document.hidden&&s().actions.external.stop()};Rt(()=>{var li,gt,oi,ft;ti&&document.addEventListener("visibilitychange",Ve),He.debugLog&&s().actions.internal.startLogging(),he(n(Lt));let W=ye.map(rt=>rt.init({store:s(),microStores:Ie,config:m(),interactiveController:g(),uiConfig:p()})),Vt=()=>{ti&&document.removeEventListener("visibilitychange",Ve),Ft==null||Ft.disconnect(),W.forEach(rt=>rt.unsubscribe()),s().destroy()};return((li=T())==null?void 0:li.status)==="upcoming"?(s().actions.internal.setLiveWaitingStart(!0),Vt):((gt=T())==null?void 0:gt.status)==="waiting"?(s().actions.internal.setLiveWaitingRecover(!0),Vt):(((oi=T())==null?void 0:oi.status)==="finished"||((ft=T())==null?void 0:ft.status)==="postlive")&&!(d()&&(0,ud.areValidLiveRecordSources)(d()))?(s().actions.internal.setLiveWaitingRecord(!0),Vt):(le(),Vt)});function at(){n(Qt)?s().actions.external.play():Y(!0)}function vt(){s().actions.external.pause()}function pe(W){s().actions.external.setMuted(W)}function ze(){s().actions.external.toggleSubtitle()}function Ge(W,Vt){s().actions.external.changeSubtitle(W,Vt)}function St(W){s().actions.external.changeAudioStream(W)}function Ut(){var W;(W=s().webApi.slotsApi)!=null&&W.haveSlots()&&s().actions.external.hideControls()}function Mt(){var W;(W=s().webApi.slotsApi)!=null&&W.haveSlots()&&s().actions.external.showControls()}function ii(W){ue()||W>=0&&W<=1&&s().actions.external.setVolume(W)}function Si(W){s().actions.internal.seekTime(W,$$.SeekAction.UNKNOWN)}function eo(W){s().actions.external.seekEpisodeStartTime(W)}function Ot(){s().actions.external.returnFocusToEpisodes()}function mi(W){s().actions.external.setPlaybackRate(W)}function xi(W){s().actions.external.setAutoQualityLimits(W)}function bt(){s().actions.external.setQuality("auto")}function Xt(W){s().actions.external.setTrafficSavingEnabled(W)}function Ii(W){s().actions.external.setHighQualityEnabled(W)}let zi=Ep(He.view),ei=m().playerView==="preview",kt=s().state.availableSubtitlesList$;if(He.features.initSubtitles){let W=!1;Oe(()=>{var Vt;if(!W&&a().length){W=!0;let li;if(He.features.userVideoPrefs&&s().videoId){let oi=qu(He.userSalt,String(s().videoId));oi!=null&&oi.subtitleTrackId&&(li=a().find(ft=>ft.value===oi.subtitleTrackId))}let gt=(Vt=I())!=null?Vt:om();gt&&(li=a().find(oi=>oi.language===gt)),s().actions.internal.setSubtitle(li)}})}let Ye=s().ui.isPreviewTrackHorizontallyAligned;var vi=mT();let $o;var Ao=C(vi);{var Lo=W=>{ag(W,{get store(){return s()},get uiConfig(){return He},get thumbUrl(){return b()},get interactiveContainer(){return y()},get live(){return T()},get autoplay(){return L()},get canRewindLive(){return F()},get showAds(){return z()},get adsSlotId(){return j()},get adsParams(){return ae()},get adsAutoplayParam(){return X()},get duration(){return ne()},get logoClickable(){return ee()},get logoHidden(){return we()},get logoTargetUrl(){return Bt},get nextButtonActive(){return be()},get prevButtonActive(){return $e()},get endScreenVideoTitle(){return J()},get endScreenVideoThumb(){return Ne()},get isOneVideoPlaylist(){return fe()},get supportLink(){return k()},get shadowRootContainer(){return Ke()},get outerContainerRef(){return Te()},get fullScreenTarget(){return Z()},get showMiniTimer(){return De()},get playerStarted(){return n(Qt)},get seekToInteractive(){return nt()},get playPrevChapter(){return U()},firstStart:Y,seekTime:Si,get showEndScreen(){return We()},get showAutoplayNext(){return Ee()},get showNextPrevButtons(){return re()},get adsExternalApi(){return e.adsExternalApi},get videoContainer(){return n(Lt)},set videoContainer(Vt){N(Lt,Vt,!0)}})},Tt=W=>{var Vt=Le(),li=ce(Vt);{var gt=ft=>{lg(ft,{get thumbUrl(){return b()},get outsideDuration(){return ne()},get canRewindLive(){return F()},get videoContainer(){return n(Lt)},set videoContainer(rt){N(Lt,rt,!0)}})},oi=ft=>{rg(ft,{get store(){return s()},get uiConfig(){return He},get title(){return v()},get thumbUrl(){return b()},get interactiveContainer(){return y()},get live(){return T()},get autoplay(){return L()},get canRewindLive(){return F()},get showAds(){return z()},get adsSlotId(){return j()},get adsParams(){return ae()},get adsAutoplayParam(){return X()},get duration(){return ne()},get logoClickable(){return ee()},get logoHidden(){return we()},get logoTargetUrl(){return Bt},get nextButtonActive(){return be()},get prevButtonActive(){return $e()},get endScreenVideoTitle(){return J()},get endScreenVideoThumb(){return Ne()},get isOneVideoPlaylist(){return fe()},get supportLink(){return k()},get shadowRootContainer(){return Ke()},get outerContainerRef(){return Te()},get fullScreenTarget(){return Z()},get showMiniTimer(){return De()},get playerStarted(){return n(Qt)},get seekToInteractive(){return nt()},get playPrevChapter(){return U()},firstStart:Y,get showEndScreen(){return We()},get showAutoplayNext(){return Ee()},get showNextPrevButtons(){return re()},get adsExternalApi(){return e.adsExternalApi},get getVideoDeeplink(){return e.getVideoDeeplink},get videoContainer(){return n(Lt)},set videoContainer(rt){N(Lt,rt,!0)},get keyboardControls(){return it()},set keyboardControls(rt){it(rt)}})};R(li,ft=>{ei?ft(gt):ft(oi,!1)})}$(W,Vt)};R(Ao,W=>{ue()?W(Lo):W(Tt,!1)})}S(vi),D(W=>{$o=se(vi,1,"vk-vp-root s-0",null,$o,W),qe(vi,zi)},[()=>({"root--miui-browser":ud.clientChecker.device.isMobile&&ud.clientChecker.browser.isMiuiBrowser,"visible-outside":ei,"preview-track-horizontally-alinged":l()})]),$(t,vi);var zt=H({initVideo:le,play:at,pause:vt,setMuted:pe,toggleSubtitle:ze,changeSubtitle:Ge,changeAudioStream:St,hideControls:Ut,showControls:Mt,setVolume:ii,seekTime:Si,seekEpisodeStartTime:eo,returnFocusToEpisodes:Ot,setPlaybackRate:mi,setAutoQualityLimits:xi,setAutoQuality:bt,toggleTrafficSaving:Xt,toggleHighQuality:Ii,get sources(){return d()},set sources(W){d(W)},get store(){return s()},set store(W){s(W)},get microStoresRoot(){return u()},set microStoresRoot(W){u(W)},get videoConfig(){return m()},set videoConfig(W){m(W)},get uiConfig(){return p()},set uiConfig(W){p(W)},get title(){return v()},set title(W){v(W)},get thumbUrl(){return b()},set thumbUrl(W){b(W)},get interactiveContainer(){return y()},set interactiveContainer(W){y(W)},get interactiveController(){return g()},set interactiveController(W){g(W)},get subtitles(){return w()},set subtitles(W){w(W)},get subtitlesForcedLanguage(){return I()},set subtitlesForcedLanguage(W){I(W)},get live(){return T()},set live(W){T(W)},get preload(){return O()},set preload(W){O(W)},get autoplay(){return L()},set autoplay(W){L(W)},get volume(){return E()},set volume(W){E(W)},get muted(){return P()},set muted(W){P(W)},get fromTime(){return q()},set fromTime(W){q(W)},get canRewindLive(){return F()},set canRewindLive(W){F(W)},get showAds(){return z()},set showAds(W){z(W)},get adsSlotId(){return j()},set adsSlotId(W){j(W)},get adsParams(){return ae()},set adsParams(W){ae(W)},get adsAutoplayParam(){return X()},set adsAutoplayParam(W){X(W)},get duration(){return ne()},set duration(W){ne(W)},get logoClickable(){return ee()},set logoClickable(W){ee(W)},get logoHidden(){return we()},set logoHidden(W){we(W)},get isMobile(){return ue()},set isMobile(W){ue(W)},get showNextPrevButtons(){return re()},set showNextPrevButtons(W){re(W)},get nextButtonActive(){return be()},set nextButtonActive(W){be(W)},get prevButtonActive(){return $e()},set prevButtonActive(W){$e(W)},get endScreenVideoTitle(){return J()},set endScreenVideoTitle(W){J(W)},get endScreenVideoThumb(){return Ne()},set endScreenVideoThumb(W){Ne(W)},get isOneVideoPlaylist(){return fe()},set isOneVideoPlaylist(W){fe(W)},get supportLink(){return k()},set supportLink(W){k(W)},get shadowRootContainer(){return Ke()},set shadowRootContainer(W){Ke(W)},get outerContainerRef(){return Te()},set outerContainerRef(W){Te(W)},get fullScreenTarget(){return Z()},set fullScreenTarget(W){Z(W)},get failoverHosts(){return ie()},set failoverHosts(W){ie(W)},get showMiniTimer(){return De()},set showMiniTimer(W){De(W)},get saveRate(){return Be()},set saveRate(W){Be(W)},get showAutoplayNext(){return Ee()},set showAutoplayNext(W){Ee(W)},get seekToInteractive(){return nt()},set seekToInteractive(W){nt(W)},get playPrevChapter(){return U()},set playPrevChapter(W){U(W)},get volumeMultiplier(){return Ae()},set volumeMultiplier(W){Ae(W)},get showEndScreen(){return We()},set showEndScreen(W){We(W)},get keyboardControls(){return it()},set keyboardControls(W){it(W)}});return o(),zt}var gT=Ce('<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 cg(t,e){let i=h(e,"isWhite",3,!1),o=f(()=>i()?"#fff":"#909499");Je(t,{width:"57",height:"60",get fill(){return n(o)},testId:"stub-icon",children:(r,a)=>{var l=gT();pi(9),$(r,l)},$$slots:{default:!0}})}var hT=M('<div class="title s-1"> </div>'),_T=M('<div class="playerStub s-1"><!> <!></div>'),bT={hash:"s-1",code:".playerStub.s-1{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-1{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 ug(t,e){Q(t,bT);var i=_T(),o=C(i);{var r=d=>{var s=hT(),u=C(s,!0);S(s),D(()=>ve(u,e.title)),$(d,s)};R(o,d=>{e.title&&d(r)})}var a=A(o,2);{var l=d=>{let s=f(()=>!!e.thumbUrl);cg(d,{get isWhite(){return n(s)}})};R(a,d=>{(!e.title||!e.thumbUrl)&&d(l)})}S(i),D(()=>qe(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),$(t,i)}var $T=M('<div class="playerError s-2"><!></div>'),yT={hash:"s-2",code:".playerError.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%}"};function pg(t){Q(t,yT);var e=$T(),i=C(e);sl(i,{}),S(e),$(t,e)}var Fp=require("@vkontakte/videoplayer-shared/es2015"),Ui=require("@vkontakte/videoplayer-shared/es2015"),Zc=require("@vkontakte/videoplayer-core/es2015"),hd=require("@vkontakte/videoplayer-statistics/es2015");var kp=require("@vkontakte/videoplayer-shared/es2015"),Pp=class{constructor(){this.subscription=new kp.Subscription,this.logger=new kp.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,a]of e)try{(o=(i=navigator.mediaSession).setActionHandler)==null||o.call(i,r,a)}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 a,l;let o=_e(e.state.currentPlaybackRate$),r=_e(e.state.duration$);if(!(!isFinite(i)||!isFinite(r)))try{(l=(a=navigator.mediaSession).setPositionState)==null||l.call(a,{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 fd=require("@vkontakte/videoplayer-shared/es2015");var xT=Ce('<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),wT=M('<div><div><!></div> <span class="title s-4"> </span></div>'),ST={hash:"s-4",code:".player-pip-dummy.s-4{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-4{position:relative}.dummy-image.s-4 svg{transform:scale(1.07143)}.dummy-image.desktop.s-4{transform:scale(1.07143) rotate(-90deg) rotateY(180deg)}.title.s-4{color:#fff;font-size:16px;padding:18px 20px 10px;text-align:center}"};function fg(t,e){B(e,!0),Q(t,ST);let[i,o]=Re(),r=()=>x(u,"$interfaceLanguage$",i),a=()=>x(m,"$isMobile$",i),l=ge(),d=Nt(),s=!!l.webApi.pictureInPictureApi,u=l.interfaceLanguage$,m=l.ui.isMobile,p=l.ui.t,v=f(()=>r()&&p("pip_dummy_title")),b=Ep(d.view);var y=wT();let g;var w=C(y);let I;var T=C(w);Je(T,{width:"57",height:"56",testId:"pip-dummy-icon",children:(E,P)=>{var q=xT();pi(),$(E,q)},$$slots:{default:!0}}),S(w);var O=A(w,2),L=C(O,!0);S(O),S(y),D((E,P)=>{g=se(y,1,"player-pip-dummy s-4",null,g,E),qe(y,b),I=se(w,1,"dummy-image s-4",null,I,P),ve(L,n(v))},[()=>({"is-pip-api":s}),()=>({desktop:!a()})]),$(t,y),H(),o()}var CT=Object.defineProperty,TT=(t,e,i)=>e in t?CT(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,pd=(t,e,i)=>TT(t,typeof e!="symbol"?e+"":e,i),mg=(t,e,i)=>new Promise((o,r)=>{var a=s=>{try{d(i.next(s))}catch(u){r(u)}},l=s=>{try{d(i.throw(s))}catch(u){r(u)}},d=s=>s.done?o(s.value):Promise.resolve(s.value).then(a,l);d((i=i.apply(t,e)).next())}),IT=460,ET=280,zc=class{constructor({enabled:e=!0}={enabled:!0}){pd(this,"playerDomElement"),pd(this,"playerParentShadowRoot"),pd(this,"playerDummyElement"),pd(this,"svelteContext"),pd(this,"pipWindow"),pd(this,"info",{isActive$:new fd.ValueSubject(!1),isEnabled$:new fd.ValueSubject(!1),type:1}),this.info.isEnabled$=new fd.ValueSubject(e)}isSupported(){let{isEmbed:e}=(0,fd.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}request(){return mg(this,null,function*(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=yield documentPictureInPicture.requestWindow({width:IT,height:ET,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let o=[...this.playerParentShadowRoot.styleSheets].map(s=>[...s.cssRules].map(u=>u.cssText).join(" ")).filter(Boolean).join(`
63
+ `),r=document.createElement("style");r.textContent=o;let a=this.createStretchedContainer(),l=a.attachShadow({mode:"open"});l.append(r),l.append(this.playerDomElement);let d={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=Xr(fg,d),(e=this.pipWindow)==null||e.document.body.append(a),this.info.isActive$.next(!0),(i=this.pipWindow)==null||i.addEventListener("unload",s=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(Na(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1),this.pipWindow=void 0)})})}exit(){return mg(this,null,function*(){return new Promise(e=>{var i;this.pipWindow&&((i=documentPictureInPicture.window)==null||i.close()),e()})})}dispose(){return mg(this,null,function*(){yield 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 y$(t){return t instanceof zc}var Ap=class{static getLatestSupportedVersion(e){let i=new Wa(e),o=new zc(e);if(o.isSupported())return o;if(i.isSupported())return i}};function Wc(t,e){var r,a;let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let l of i)o[l]=(a=(r=e[l])!=null?r:t[l])!=null?a:void 0;return o}var x$="Inner error. Unexpectedly root annotation container null reference exception",w$="Annotation with such name already exists",S$="Annotation with such name does not exist";var md=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var vd=require("@vkontakte/videoplayer-shared/es2015"),PT="1",kT=100,Lp=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new vd.Subscription}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=(0,vd.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"},kT);this.subscriptions.add((0,vd.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 md(x$);if(this.annotations.has(e))throw new md(w$);i.style.zIndex=(o=i.style.zIndex)!=null?o:PT,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 md(S$);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,a=e.offsetLeft,l=e.offsetWidth,d=e.offsetHeight;return r<0||a<0||a+l>i||r+d>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};var fl=require("@vkontakte/videoplayer-shared/es2015"),_n=class{init({store:e,microStores:i,interactiveController:o,config:r}){return(0,fl.assertNonNullable)(e),(0,fl.assertNonNullable)(i),(0,fl.assertNonNullable)(r),r.interactiveData&&(0,fl.assertNonNullable)(o),this.subscription=new fl.Subscription,this.subscription}};var Kc=class extends _n{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$=Yt(Pe({},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(a=>{this.state$.set(a?!0:null)})),o}};var qc=class extends _n{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$=Yt(Pe({},de(null)),{toggle:()=>this.state$.update(i=>!i)})}init(i){let o=super.init(i),{microStores:r,store:a}=i,{fakeIsPlaying$:l}=r,{isInteractiveExpectation$:d,isPlaying$:s}=a.state,{controlsVisible:u,isMobile:m}=a.ui,p=_e(m),v=()=>p&&_e(u);return o.add(u.subscribe(b=>{if(!p)return;let y=_e(l);_e(s)?this.state$.set(b):y!==null&&this.state$.set(!y||b)})),o.add(s.subscribe(b=>{this.state$.set(!b||v())})),o.add(l.subscribe(b=>{if(b===null)return;let y=_e(d);if(v()){this.state$.set(!0);return}y&&this.state$.set(!b)})),o}};var Qc=class extends _n{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(a=>{a.length&&(a.every(l=>l.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};var C$=require("@vkontakte/videoplayer-shared/es2015");var vg=de(!1),Mp=null,Gc=class extends _n{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$=Yt(Pe({},vg),{set:(i,o=!1)=>{i!==_e(vg)&&(this.clearTimeout(),vg.set(i),!i&&Mp&&(Mp=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()})}init(i){let o=super.init(i),{store:r,config:a}=i,{isInteractiveTime$:l,isPlaying$:d}=r.state,s=r.ui.controlsVisible,{interactiveTimeIndicator:u}=r.ui.controls;o.add(s.subscribe(p=>{_e(l)&&p&&this.state$.set(!1)}));let m=(a==null?void 0:a.interactiveData)||{tooltipHelpHintActive:!1};return o.add((0,C$.combine)({isPlaying$:d,isInteractiveTime$:l,interactiveTimeIndicator:u}).subscribe(({isPlaying$:p,isInteractiveTime$:v,interactiveTimeIndicator:b})=>{var y,g;if(!(!p||!(b!=null&&b.isDisplayed))){if(!v)return this.state$.set(!1);m.tooltipHelpHintActive&&Mp===null&&(Mp=!0,m.tooltipHelpHintActive=!1,this.state$.set(!0),(g=(y=r.callbacks)==null?void 0:y.onInteractiveTimeIndicatorHintDeactivated)==null||g.call(y))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};var Vp=require("@vkontakte/videoplayer-shared/es2015");var Yc=class extends _n{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$=Yt(Pe({},de(null)),{toggle:Vp.noop});this.checkIfShouldHide=i=>Ds(i,"s")}init(i){let o=super.init(i),{store:r,interactiveController:a}=i,l=r.ui.currentGridType$,d=r.getLogger().createComponentLog("GraphIsOpened microStore");return this.state$.toggle=()=>ht(this,null,function*(){if(this.checkIfShouldHide(_e(l)))return;let s=_e(this.state$),{isEnded$:u,playbackState$:m}=r.state,{disabledControls$:p}=r.ui.controls,v=_e(u),b=_e(m);if(s)try{yield a==null?void 0:a.toggleGraphView(!1),this.state$.set(!1),p.remove(Kf),!v&&this.graphMadePause&&r.actions.internal.play()}catch(y){d({message:"Cant hide graph"})}else{this.graphMadePause=b==="playing";try{yield a==null?void 0:a.toggleGraphView(!0),this.state$.set(!0),p.add(Kf),!v&&this.graphMadePause&&r.actions.internal.pause()}catch(y){d({message:"Cant show graph"})}}}),o.add((0,Vp.combine)({graphIsOpened:this.state$,currentGridType:l}).subscribe(m=>ht(this,[m],function*({graphIsOpened:s,currentGridType:u}){if(this.checkIfShouldHide(u)&&s)try{yield a==null?void 0:a.toggleGraphView(!1),this.state$.set(!1)}catch(v){d({message:"Cant hide graph"})}}))),o}};var gg=require("@vkontakte/videoplayer-shared/es2015"),jc=class extends _n{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$:a,isEnabled$:l,type:d}}=r.webApi.pictureInPictureApi||{info:{isActive$:new gg.ValueSubject(!1),isEnabled$:new gg.ValueSubject(!1)}};return o.add(a.subscribe(s=>{this.state$.isActive$.set(s)})),o.add(l.subscribe(s=>{this.state$.isEnabled$.set(s)})),this.state$.type$.set(d),o}};var Np=require("@vkontakte/videoplayer-shared/es2015");var Rp=require("@vkontakte/videoplayer-shared/es2015");var T$=({maxShowCount:t,timeout:e})=>{let i=[t!==0?AT({maxCount:t}):void 0,e!==0?LT({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(r=>r.notificationShowed(o)),canShowNotification:o=>i.every(r=>r.canShowNotification(o))}},AT=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,r;e[i]=((o=e[i])!=null?o:0)+1,Rp.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}}},LT=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(Rp.safeStorage.get(e)||"{}")}catch(a){return{}}},o=a=>Rp.safeStorage.set(e,JSON.stringify(a)),r=a=>{let l=i();delete l[a],o(l)};return{notificationShowed:a=>{o(Yt(Pe({},i()),{[a]:{timeout:t,launchTime:Date.now()}}))},canShowNotification:a=>{let l=i()[a];if(l){let d=Date.now()-l.launchTime>t;return d&&r(a),d}else return!0}}};var Xc=class extends _n{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:a,timeoutShowSlowVideoNotification:l,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:s}}}=i;this.notificationManager=T$({maxShowCount:a,timeout:l});let u=r.getPlayer();return o.add(u.events.severeStallOccured$.pipe((0,Np.filterChanged)(),(0,Np.filter)(m=>m)).subscribe(()=>{d&&!u.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(s&&r.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var I$=()=>[Kc,qc,Qc,Gc,Yc,jc,Xc].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:Yt(Pe({},e),{[o.stateName]:o.state$})}},{subscribers:[],stores:{}});var gd=require("@vkontakte/videoplayer-shared/es2015");var Op=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 Dp=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 Op(()=>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 MT=M('<div class="root s-3"><!></div>'),VT={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 hg(t,e){B(e,!0),Q(t,VT);let i=null,o=K(null);Oe(()=>(n(o)&&(i=window.setTimeout(()=>{N(o,null)},e.animationDuration)),()=>{i&&clearTimeout(i)}));function r(s){e.playbackStatusShow&&N(o,s?"prev":"next",!0)}var a=Le(),l=ce(a);{var d=s=>{var u=Le(),m=ce(u);Ms(m,()=>n(o),p=>{var v=MT(),b=C(v);let y=f(()=>n(o)==="prev");Uc(b,{get duration(){return e.animationDuration},get Icon(){return ma},get reversed(){return n(y)}}),S(v),$(p,v)}),$(s,u)};R(l,s=>{e.playbackStatusShow&&n(o)&&s(d)})}return $(t,a),H({startVideoChangedAnimation:r})}var E$=require("@vkontakte/videoplayer-shared/es2015"),_g=(0,E$.getWindow)().HTMLElement||class{constructor(){this.isConnected=!1}};var RT=Object.defineProperty,NT=Object.defineProperties,OT=Object.getOwnPropertyDescriptors,P$=Object.getOwnPropertySymbols,DT=Object.prototype.hasOwnProperty,BT=Object.prototype.propertyIsEnumerable,$g=(t,e,i)=>e in t?RT(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Ws=(t,e)=>{for(var i in e||(e={}))DT.call(e,i)&&$g(t,i,e[i]);if(P$)for(var i of P$(e))BT.call(e,i)&&$g(t,i,e[i]);return t},HT=(t,e)=>NT(t,OT(e)),Jt=(t,e,i)=>$g(t,typeof e!="symbol"?e+"":e,i),Bp=(t,e,i)=>new Promise((o,r)=>{var a=s=>{try{d(i.next(s))}catch(u){r(u)}},l=s=>{try{d(i.throw(s))}catch(u){r(u)}},d=s=>s.done?o(s.value):Promise.resolve(s.value).then(a,l);d((i=i.apply(t,e)).next())}),FT={preload:!0,autoplay:!1,repeat:!1,loop:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:Ui.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:(0,Zc.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},Zn=K(void 0),bg=ui({animationDuration:0,playbackStatusShow:!1}),Hp=class extends _g{constructor(){super(),Jt(this,"svelteStubComponent"),Jt(this,"svelteRootComponent"),Jt(this,"sveltePersistentLayerComponent"),Jt(this,"svelteErrorComponent"),Jt(this,"store"),Jt(this,"microStoresRoot"),Jt(this,"statistics"),Jt(this,"sentry"),Jt(this,"_shadowRoot"),Jt(this,"playerContainer"),Jt(this,"rootContainer"),Jt(this,"stateContainer"),Jt(this,"shadowRootContainer"),Jt(this,"playerId"),Jt(this,"uiConfig"),Jt(this,"coreConfig"),Jt(this,"statisticsConfig"),Jt(this,"interactiveController"),Jt(this,"interactiveContainer"),Jt(this,"graphMadePause"),Jt(this,"currentPlayingVideoIndex",0),Jt(this,"needToRepeatPlaylist",!1),Jt(this,"videoConfig"),Jt(this,"pictureInPictureApi"),Jt(this,"mediaSessionApi"),Jt(this,"unsubscribePlayerPhaseSubscription"),Jt(this,"logger"),Jt(this,"log"),Jt(this,"subscription"),Jt(this,"interactiveSubscription"),Jt(this,"annotationsApi"),Jt(this,"slotsApi"),Jt(this,"focusManager"),Jt(this,"prevIsid"),Jt(this,"isInited",!1),Jt(this,"postponedInitParams",null),Jt(this,"internalsExposure",null),Jt(this,"shadowDOMCallbacksDisabled",!1),Jt(this,"fatalError$",new Fp.ValueSubject(null)),Jt(this,"createOneStat",(e,i={})=>{var o,r,a,l;if(!this.videoConfig)return;let{albumId:d,statPlace:s,statUserSalt:u,statTrackCode:m,statVKAppId:p,refreshStatAuthToken:v,autoplay:b,isMobile:y,isTouch:g,refDomain:w,deviceId:I,interactiveData:T}=Wc(this.videoConfig,i),O=(o=T==null?void 0:T.projectInfo)==null?void 0:o.pid,L=(a=(r=this.interactiveController)==null?void 0:r.state.isReplay$.getValue())!=null?a:!1;L&&(this.prevIsid=void 0);let{unitedVideoId:E,isClip:P=!1}=e;if(this.uiConfig.features.statistics&&E)try{return new hd.OneStat(Ws({movieId:E,albumId:d,place:s,trackCode:m,vkAppId:p,autoplay:(l=b&&!this.interactiveController)!=null?l:!1,mobile:g!=null?g:y,clip:P,refDomain:w,deviceId:I,isPreviewPlayerView:this.videoConfig.playerView==="preview"},O&&(!this.isInited||L)&&{projectId:Number(O)}),Ws({refreshAuthToken:v,userSalt:u,config:this.statisticsConfig},this.interactiveController&&{useIsid:!0,isid:this.prevIsid}))}catch(F){console.error(F),this.log({message:F.message})}}),gd.devNull.create("ui"),this.logger=new Ui.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new Ui.Subscription,this.interactiveSubscription=new Ui.Subscription,this.graphMadePause=!1,this.fatalError$.subscribe(e=>{this.unmountComponent(this.svelteErrorComponent),e&&(this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.svelteErrorComponent=Xr(pg,{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,a=ui({title:o,thumbUrl:r}),l={target:this.playerContainer,props:a};this.svelteStubComponent=Xr(ug,l),this.sveltePersistentLayerComponent=Xr(hg,{target:this.playerContainer,props:bg}),this.postponedInitParams&&(this.initPlayer(...this.postponedInitParams),this.postponedInitParams=null)}updatePersistentLayerProps(){if(!this.uiConfig)return;let{playbackStatusNextVideoAnimationDuration:e,features:{playbackStatusShow:i,playbackStatusNextVideoShow:o}}=this.uiConfig;bg.animationDuration=e,bg.playbackStatusShow=i&&o}disconnectedCallback(){var e,i,o,r,a,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(),(a=this.unsubscribePlayerPhaseSubscription)==null||a.call(this),(l=this.interactiveController)==null||l.destroy(),this.interactiveSubscription.unsubscribe(),(d=this.internalsExposure)==null||d.destroy(),gd.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:a}=Wc(this.videoConfig,i),{unitedVideoId:l}=e;if(this.uiConfig.features.thinStatistics&&l)return new hd.ThinOneStat.ThinOneStat({deviceId:o,movieId:l,preload:r,isPreviewPlayerView:this.videoConfig.playerView==="preview"},{config:this.statisticsConfig,refreshAuthToken:a})}createPlayer(e,i={},o){var r,a,l,d,s,u,m,p,v,b;if(!this.videoConfig)return;let{albumId:y,statPlace:g,statAuthToken:w,preload:I,autoplay:T,volume:O,muted:L,fromTime:E,canRewindLive:P,supportLink:q,showAds:F,adsSlotId:z,adsParams:j={},adsAutoplayParam:ae,interfaceLanguage:X,isCyrillicRelatedInterface:ne,logoClickable:ee,logoHidden:we,isMobile:ue,isTouch:re,isAudioDisabled:be,isLiveCatchUpMode:$e,fullScreenTarget:J,failoverHosts:Ne,canDownload:fe,callbacks:k,interactiveData:Ke,showThumbTimer:Te,additionalButtons:Z=[],additionalSettingsMenuItems:ie=[],additionalContextMenuItems:De=[],repeat:Be,loop:nt,saveRate:U,volumeMultiplier:Ae,showEndScreen:Ee,showAutoplayNext:We,mediascopePixels:it}=Wc(this.videoConfig,i),{sources:ye,title:Ie,thumbUrl:He,unitedVideoId:Bt,isClip:xt=!1,duration:Ht,adsParams:dt={},videoEpisodes:Ct,previewThumbsData:ti,subtitles:Lt,subtitlesForcedLanguage:Ft,live:Qt,adsExternalApi:Y}=e;if(!ye&&!Qt){let mi=new Error("empty sources and live");this.fatalError$.next(mi),(r=k.onCrashed)==null||r.call(k,mi.message);return}let Se=Ws(Ws({},j),dt),le=this.getNextVideoInfo(),he={sources:ye,title:Ie,thumbUrl:He,subtitles:Lt,subtitlesForcedLanguage:Ft,unitedVideoId:Bt,isClip:xt,live:Qt,albumId:y,statPlace:g,autoplay:T,muted:L,volume:O,fromTime:E,canRewindLive:P,showAds:F,adsSlotId:z,adsParams:Se,adsAutoplayParam:ae,duration:Ht,logoClickable:ee,logoHidden:we,isTouch:re!=null?re:ue,repeat:Be,loop:nt,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:le.nextVideoTitle,endScreenVideoThumb:le.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Ve={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi,focusManager:this.focusManager};this.log({message:`create player, props: ${JSON.stringify(he)}`});let at=(a=this.interactiveController)==null?void 0:a.state.statistics$.getValue(),vt=(at==null?void 0:at.oneStat)||this.createOneStat(e,i),pe=this.createThinOneStat(e,i),ze;it&&(ze=new hd.MediascopePixel({pixels:it})),(vt||pe)&&(this.statistics=new vp(vt,pe,ze,at==null?void 0:at.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new za(this.uiConfig.sentry,{version:Ha,env:Bu},{movieId:Bt,albumId:y,place:g,autoplay:(l=T&&!this.interactiveController)!=null?l:!1,mobile:re!=null?re:ue,clip:xt}),this.interactiveController&&((u=this.prevIsid)!=null||(this.prevIsid=(s=(d=this.statistics)==null?void 0:d.oneStat)==null?void 0:s.isid$.getValue())),this.sentry=Ws(Ws({},this.sentry),za.getInstance());let St=!!Ke,Ut=[],Mt="tooltip_interactive_go_back_disabled_first";if(St&&this.interactiveController){let mi=this.interactiveController.state.isInitialChapter$.getValue(),xi=this.interactiveController.getHistoryState();mi&&Ut.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||Ut.push("SEEK_TO_INTERACTIVE_BUTTON"),xi.hasPrevChapter$.getValue()||(Ut.push("PLAY_PREV_CHAPTER_BUTTON"),mi||(xi.isGoBackLimited$.getValue()?Mt="tooltip_interactive_go_back_disabled_limit":Mt="tooltip_interactive_go_back_disabled"))}let ii=()=>{var mi;this.isInited=!1,this.prevIsid=void 0;let xi=(o==null?void 0:o.info.isEnded$.getValue())&&((mi=this.interactiveController)==null?void 0:mi.state.isEndChapter$.getValue());k.onReplayInteractiveVideo&&!xi?k.onReplayInteractiveVideo():this.replayInteractiveVideo()},Si=Be&&this.videoConfig.videos.length===1;this.store=Ob({player:o,interfaceLanguage:X,isCyrillicRelatedInterface:ne,videoId:Bt,isClip:xt,isLiveCatchUpMode:$e,isAudioDisabled:be,statAuthToken:w,callbacks:k,webApi:Ve,videoEpisodes:Ct,previewThumbsData:ti,canDownload:fe,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:Ut,isInteractive:St,saveRate:U,interactiveRanges$:(m=this.interactiveController)==null?void 0:m.state.interactiveRanges$,isInteractiveTime$:(p=this.interactiveController)==null?void 0:p.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:ii,playPrevChapterDisabledTooltip:Mt,hasInteractiveBranches:!!((b=(v=this.interactiveController)==null?void 0:v.getChapterBranches())!=null&&b.length),additionalButtons:this.uiConfig.features.additionalButtons?Z:[],additionalSettingsMenuItems:ie!=null?ie:[],additionalContextMenuItems:De!=null?De:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),onVideoChanged:mi=>{var xi;return(xi=this.sveltePersistentLayerComponent)==null?void 0:xi.startVideoChangedAnimation(mi)},looped:this.uiConfig.features.useLoopSetting?nt:Si,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView,playerId:this.playerId});let{stores:eo}=this.microStoresRoot=I$(),Ot=()=>{var mi,xi,bt,Xt,Ii,zi;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(kt=>{var Ye;return(Ye=k==null?void 0:k.onCurrentFormatChanged)==null?void 0:Ye.call(k,kt)})),this.subscription.add(eo.interactiveControlsOpacity$.subscribe(kt=>{var Ye;kt!==null&&((Ye=this==null?void 0:this.interactiveController)==null||Ye.setDisabledControls(kt))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(kt=>{var Ye;return(Ye=k==null?void 0:k.onThroughputEstimationChanged)==null?void 0:Ye.call(k,kt)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(kt=>{var Ye;return(Ye=k==null?void 0:k.onTrafficSavingEnabledChanged)==null?void 0:Ye.call(k,kt)})),this.subscription.add(this.store.state.highQualityEnabled$.subscribe(kt=>{var Ye;return(Ye=k==null?void 0:k.onHighQualityEnabledChanged)==null?void 0:Ye.call(k,kt)})),this.subscription.add(this.store.state.isAutoQualityEnabled$.subscribe(kt=>{var Ye;return(Ye=k==null?void 0:k.onAutoQualityEnabledChanged)==null?void 0:Ye.call(k,!!kt)})),this.subscription.add(new Ui.Observable(kt=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(Ye=>kt.next(Ye)))}).pipe((0,Ui.skip)(1)).subscribe(kt=>{var Ye;return(Ye=k==null?void 0:k.onCurrentPlaybackRateChanged)==null?void 0:Ye.call(k,kt)})),this.subscription.add(this.store.state.volume$.subscribe(kt=>{var Ye;return(Ye=k==null?void 0:k.onVolumeChange)==null?void 0:Ye.call(k,kt)})),this.subscription.add(this.store.state.muted$.subscribe(kt=>{var Ye,vi,$o,Ao;if(kt)(Ye=k==null?void 0:k.onMute)==null||Ye.call(k);else{let Lo=($o=((vi=this.store)==null?void 0:vi.state.volume$)&&_e(this.store.state.volume$))!=null?$o:0;(Ao=k==null?void 0:k.onUnmute)==null||Ao.call(k,Lo)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(kt=>{var Ye;return(Ye=k==null?void 0:k.onVideoBitrateChanged)==null?void 0:Ye.call(k,kt)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(kt=>{var Ye;let vi=(Ye=this.store)==null?void 0:Ye.ui.controls.disabledControls$;vi&&(kt&&!vi.includes(Yd)&&vi.add(Yd),kt||vi.remove(Yd))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(kt=>Bp(this,null,function*(){var Ye;if(!Zc.clientChecker.browser.isSamsungBrowser||!kt||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&(yield this.replayInteractiveChapter((Ye=this.videoConfig)==null?void 0:Ye.callbacks.onExternalFullscreenExit))}))),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(kt=>{var Ye;return(Ye=k==null?void 0:k.onVSIDChanged)==null?void 0:Ye.call(k,kt)})),this.initMediaSession(),N(Zn,{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:ye,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:Ie,thumbUrl:He,subtitles:Lt,subtitlesForcedLanguage:Ft,live:Qt,preload:I,autoplay:T,muted:L,volume:O,fromTime:E,canRewindLive:P,supportLink:q,showAds:F,adsSlotId:z,adsParams:Se,adsAutoplayParam:ae,duration:Ht,logoClickable:ee,logoHidden:we,isMobile:re!=null?re:ue,failoverHosts:Ne,fullScreenTarget:J,saveRate:U,shadowRootContainer:this.shadowRootContainer,showMiniTimer:Te,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:Ae,showEndScreen:Ee,showAutoplayNext:We,adsExternalApi:Y,getVideoDeeplink:this.videoConfig.getVideoDeeplink},!0);let ei={target:this.playerContainer,props:n(Zn)};this.svelteRootComponent=Xr(dg,ei),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(bt=(xi=(mi=this.videoConfig)==null?void 0:mi.callbacks)==null?void 0:xi.onInited)==null||bt.call(xi)),(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&&((zi=(Ii=this.videoConfig)==null?void 0:Ii.callbacks)!=null&&zi.onDevNullLog)?gd.devNull.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):gd.devNull.destroy("ui")};this.coreConfig.asyncResolveClientChecker?Zc.clientChecker.isInited$.subscribe(mi=>{mi&&(console.log("UI SDK async start"),Ot())}):Ot()}addPlayerInfoSubscriptions(){var e,i;let o=this.store,r=(e=this.microStoresRoot)==null?void 0:e.stores;if(!o||!r)return;let a=(i=this.videoConfig)==null?void 0:i.callbacks;a&&this.subscription.add(o.playerPhase.subscribe(d=>{var s;return(s=a.onPlayerPhaseChanged)==null?void 0:s.call(a,d)})).add(o.state.playbackState$.subscribe(d=>{var s;return d&&((s=a.onPlaybackStateChanged)==null?void 0:s.call(a,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 s;return(s=a.onIsLiveChanged)==null?void 0:s.call(a,d)})).add(o.state.isActiveLive$.subscribe(d=>{var s;return(s=a.onIsActiveLiveChanged)==null?void 0:s.call(a,d)})).add(o.state.isAudioAvailable$.subscribe(d=>{var s;return(s=a.onIsAudioAvailableChanged)==null?void 0:s.call(a,d)})).add(o.state.currentQuality$.subscribe(d=>{var s;return(s=a.onCurrentQualityChanged)==null?void 0:s.call(a,d)})).add(o.state.availableQualities$.subscribe(d=>{var s;return(s=a.onAvailableQualitiesChanged)==null?void 0:s.call(a,d.map(({value:u})=>u).filter(u=>u!=="auto"))})).add(o.state.availableAudioStreams$.subscribe(d=>{d.length>1&&a.onAudioLanguagesAvailable&&a.onAudioLanguagesAvailable()})).add(r.pictureInPicture$.isActive$.subscribe(d=>{var s,u;return d?(s=a.onPiPEnter)==null?void 0:s.call(a):(u=a.onPiPExit)==null?void 0:u.call(a)}));let l=a==null?void 0:a.uiInfo;l&&this.subscription.add(o.ui.controlsVisible.subscribe(d=>{var s;return(s=l.onControlsVisibleChanged)==null?void 0:s.call(l,d)})).add(o.ui.isMobile.subscribe(d=>{var s;return(s=l.onIsMobileChanged)==null?void 0:s.call(l,d)})).add(o.ui.playerSize.subscribe(d=>{var s;return(s=l.onPlayerSizeChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.prevButton.subscribe(d=>{var s;return(s=l.onPrevButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.playButton.subscribe(d=>{var s;return(s=l.onPlayButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.replayButton.subscribe(d=>{var s;return(s=l.onReplayButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.nextButton.subscribe(d=>{var s;return(s=l.onNextButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.playPrevChapterButton.subscribe(d=>{var s;return(s=l.onPlayPrevChapterChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.seekToInteractiveButton.subscribe(d=>{var s;return(s=l.onSeekToInteractiveButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.interactiveGraphButton.subscribe(d=>{var s;return(s=l.onGraphButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.liveButton.subscribe(d=>{var s;return(s=l.onLiveButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.time.subscribe(d=>{var s;return(s=l.onTimeUpdateChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.episodes.subscribe(d=>{var s;return(s=l.onEpisodesChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.subtitles.subscribe(d=>{var s;return(s=l.onSubtitlesChanged)==null?void 0:s.call(l,d)})).add(o.ui.controlBlocks.topLeft.subscribe(d=>{var s;return(s=l.onTopLeftControlBlockChanged)==null?void 0:s.call(l,d)})).add(o.ui.controlBlocks.topRight.subscribe(d=>{var s;return(s=l.onTopRightControlBlockChanged)==null?void 0:s.call(l,d)})).add(o.ui.controlBlocks.bottomLeft.subscribe(d=>{var s;return(s=l.onBottomLeftControlBlockChanged)==null?void 0:s.call(l,d)})).add(o.ui.controlBlocks.bottomRight.subscribe(d=>{var s;return(s=l.onBottomRightControlBlockChanged)==null?void 0:s.call(l,d)})).add(o.ui.controlBlocks.middle.subscribe(d=>{var s;return(s=l.onMiddleControlBlockChanged)==null?void 0:s.call(l,d)})).add(o.ui.controlBlocks.bottom.subscribe(d=>{var s;return(s=l.onBottomControlBlockChanged)==null?void 0:s.call(l,d)})).add(o.ui.videoTitleInfo.subscribe(d=>{var s;return(s=l.onTitleChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.settings.subscribe(d=>{var s;return(s=l.onSettingsChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.fullscreen.subscribe(d=>{var s;return(s=l.onFullscreenChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.chromecast.subscribe(d=>{var s;return(s=l.onChromecastChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.pip.subscribe(d=>{var s;return(s=l.onPipChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.vkLogo.subscribe(d=>{var s;return(s=l.onVkLogoChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.interactiveTimeIndicator.subscribe(d=>{var s;return(s=l.onInteractiveTimeIndicatorChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.timeline.subscribe(d=>{var s;return(s=l.onTimelineChanged)==null?void 0:s.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,Ui.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)}initInteractives(){return Bp(this,null,function*(){var e,i,o,r,a,l;if((e=this.videoConfig)!=null&&e.interactiveData)try{let{Interactives:d}=yield import("@vkontakte/videoplayer-interactive/es2015");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let s=(i=this.store)==null?void 0:i.interfaceLanguage$,u=s?_e(s):this.videoConfig.interfaceLanguage,{projectInfo:m,initChapterId:p,historyApi:v,videoLoader:b}=this.videoConfig.interactiveData;this.interactiveController=new d({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:u,graph:this.uiConfig.features.interactiveGraph,projectInfo:m,initChapterId:p,historyApi:v,vkVideoLoader:b,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$:g}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(g.subscribe(I=>{if(!this.isInited)return;let T=this.store;I?T.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):T.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(y.subscribe(I=>{this.store&&this.store.state.isInteractiveExpectation$.set(I)}));let w=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(I=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]=HT(Ws({},I.config),{title:(m==null?void 0:m.title)||I.config.title});let T=w?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(I.player,T),w&&(w=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:I,actionType:T})=>{var O,L,E,P,q,F;if(!this.store||!this.microStoresRoot)return;let z=y.getValue();if(I==="action-choice"&&T==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(jd)),I==="action-choice-canceled"){let j=_e(this.store.state.isPlaying$)||z;if(((E=(O=this.videoConfig)==null?void 0:O.isTouch)!=null?E:(L=this.videoConfig)!=null&&L.isMobile)&&j){this.store.ui.interactiveHideMobileControls.set(!0);return}(F=(P=this.videoConfig)==null?void 0:(q=P.callbacks).onDisabledInteractiveClick)==null||F.call(q)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:I,removeAllOpenURI:T})=>{this.store&&I==="container-fake-removed"&&T&&this.store.ui.controls.disabledControls$.remove(jd)})),yield this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(r=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&r.onInteractiveHistoryChanged){let I=this.interactiveController.getHistoryState();this.subscription.add(I.history$.subscribe(T=>{var O,L,E;T.length&&((E=(L=(O=this.videoConfig)==null?void 0:O.callbacks)==null?void 0:L.onInteractiveHistoryChanged)==null||E.call(L,T))}))}(l=(a=this.videoConfig)==null?void 0:a.callbacks)!=null&&l.onInteractiveChapterChanged&&this.subscription.add(this.interactiveController.events.chapterChanged$.subscribe(I=>{var T,O,L;(L=(T=this.videoConfig)==null?void 0:(O=T.callbacks).onInteractiveChapterChanged)==null||L.call(O,I.chapter,I.manifestVideo)})),this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var I,T,O,L;(I=this.microStoresRoot)==null||I.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(L=(T=this.videoConfig)==null?void 0:(O=T.callbacks).onInteractiveTimeIndicatorClick)==null||L.call(O)})),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,a,l,d,s,u,m,p,v,b,y,g,w,I,T,O,L,E,P,q,F,z,j,ae;if(!this.isConnected){this.postponedInitParams=[e,i];return}if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData){let X=new Error("empty videos");this.fatalError$.next(X),(r=(o=e.callbacks)==null?void 0:o.onCrashed)==null||r.call(o,X.message);return}else this.fatalError$.next(null);if(this.videoConfig=Wc(FT,(0,Ui.cloneDeepWith)(e,X=>X instanceof _g?X:void 0)),this.playerId=(0,Ui.getPlayerId)(e.playerId),this.uiConfig=p_((a=i.ui)!=null?a:{}),this.updatePersistentLayerProps(),this.coreConfig=(l=i.core)!=null?l:{configName:[]},this.statisticsConfig=(d=i.statistics)!=null?d:{},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:(s=this.uiConfig.sentry)!=null?s:{}},this.uiConfig.features.exposeInternalsToGlobal&&((u=this.internalsExposure)!=null||(this.internalsExposure=new Ui.InternalsExposure("ui",this.playerId))),gd.devNull.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+((m=this.videoConfig)==null?void 0:m.showAds)],numbers:[(0,Fp.now)()]}),(0,Ui.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(v=(p=this.uiConfig.features.mediaSession)!=null?p:this.videoConfig.isMediaSessionEnabled)!=null?v:!0),(0,Ui.isNonNullable)(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(y=(b=this.uiConfig.features.pip)!=null?b:this.videoConfig.isPictureInPictureEnabled)!=null?y:!0,this.uiConfig.features.dpip=(w=(g=this.uiConfig.features.dpip)!=null?g:this.videoConfig.isPictureInPictureEnabled)!=null?w:!0),this.uiConfig.ads.paramsOverride=Ws({preview:(I=this.uiConfig.ads.preview)!=null?I:this.videoConfig.adsPreviewParam},this.uiConfig.ads.paramsOverride),this.videoConfig.isTouch=(O=(T=this.uiConfig.isMobile)!=null?T:this.videoConfig.isTouch)!=null?O:this.videoConfig.isMobile,(L=this.videoConfig).autoplay&&(L.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(E=this.uiConfig.ads.enable)!=null?E:this.videoConfig.showAds,this.videoConfig.adsSlotId=(P=this.uiConfig.ads.slot)!=null?P:this.videoConfig.adsSlotId,this.videoConfig.logoHidden=!((q=this.uiConfig.showLogo)!=null?q:!this.videoConfig.logoHidden),(F=this.videoConfig).canRewindLive&&(F.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&&((j=this.videoConfig.videos)!=null&&j[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let X={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=Ap.getLatestSupportedVersion(X):this.pictureInPictureApi=new Wa(X)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new Pp:void 0,this.slotsApi=this.uiConfig.features.slots?new Cp(this.uiConfig.disabledSlotIds):void 0,this.annotationsApi=this.uiConfig.features.annotations?new Lp(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),this.focusManager=this._shadowRoot?new Dp(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]),y$(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(ae=this.slotsApi)==null||ae.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(Zn)&&(n(Zn).showNextPrevButtons=this.needToShowNextPrevButtons(),n(Zn).nextButtonActive=this.isNextButtonActive(),n(Zn).prevButtonActive=this.isPrevButtonActive(),n(Zn).endScreenVideoTitle=o.nextVideoTitle,n(Zn).endScreenVideoThumb=o.nextVideoThumb,n(Zn).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}=Ws({},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,a,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(a=(r=this.videoConfig)==null?void 0:r.callbacks)==null?void 0:a.onNextVideoClick)==null||l.call(a)}catch(d){this.log({message:"onNextVideoClick callback failed to execute"})}else this.playNextVideo()}]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>{var r,a,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(a=(r=this.videoConfig)==null?void 0:r.callbacks)==null?void 0:a.onPrevVideoClick)==null||l.call(a)}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(Zn)&&(n(Zn).needToRepeatPlaylist=this.needToRepeatPlaylist,n(Zn).showNextPrevButtons=this.needToShowNextPrevButtons(),n(Zn).nextButtonActive=this.isNextButtonActive(),n(Zn).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)}setLanguage(e){return Bp(this,null,function*(){var i;yield(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 a=()=>{var l;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!0)};r&&a(),(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var l;r||a(),(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 a;(a=this.store)==null||a.actions.internal.setLiveWaitingRecord(!0)};o&&r(),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var a;o||r(),(a=this.store)==null||a.destroy()})}setLiveEnd(e){var i;let o=this.isLiveTailPlaying(),r=!o;this.log({message:`live ended: liveTailPlaying = ${o}`});let a=()=>{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){a();return}(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=a)}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()}replayInteractiveChapter(e){return Bp(this,null,function*(){var i,o;if(this.interactiveController&&((i=this.store)!=null&&i.state.positionExact$)){let r=_e(this.store.state.positionExact$),l=_e(this.store.state.interactiveEpisodes$).find(s=>!s.completed);this.interactiveController.events.playerChanged$.pipe((0,Ui.once)()).subscribe(()=>{l&&r>=l.time?this.seekTime(l.time):this.seekTime(r),e==null||e()});let d=this.interactiveController.getCurrentChapter();yield 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&&Na(e)}};var _d=require("@vkontakte/videoplayer-shared/es2015"),Up=require("@vkontakte/videoplayer-core/es2015"),UT=()=>{window.customElements.define("vk-video-player",Hp)};