@vkontakte/videoplayer 1.1.84 → 1.1.85-dev.01c6bd35.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 +47 -49
- package/es2015.esm.js +51 -53
- package/es2018.cjs +37 -39
- package/es2018.esm.js +37 -39
- package/es2024.cjs +39 -41
- package/es2024.esm.js +39 -41
- package/esnext.cjs +39 -41
- package/esnext.esm.js +39 -41
- package/evergreen.esm.js +39 -41
- package/package.json +5 -5
- package/types/VKVideoPlayer/index.svelte.d.ts +0 -1
- package/types/config.d.ts +7 -11
- package/types/index.d.ts +3 -2
- package/types/store/index.d.ts +2 -0
- package/types/types/index.d.ts +6 -9
- package/types/utils/webAPI/pictureInPictureApi/documentPictureInPictureApi.svelte.d.ts +2 -1
- package/types/utils/webAPI/pictureInPictureApi/factory.d.ts +3 -0
- package/types/utils/webAPI/pictureInPictureApi/index.d.ts +4 -0
- package/types/utils/webAPI/pictureInPictureApi/pictureInPictureApi.d.ts +1 -1
- package/types/utils/webAPI/pictureInPictureApi/utils.d.ts +3 -0
- package/types/services/sentry.d.ts +0 -28
- package/types/utils/webAPI/pictureInPictureApi/pictureInPictureApiFactory.d.ts +0 -4
package/es2015.cjs
CHANGED
|
@@ -1,63 +1,61 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vkontakte/videoplayer v1.1.
|
|
3
|
-
*
|
|
4
|
-
* https://st.mycdn.me/static/vkontakte-videoplayer/1-1-
|
|
2
|
+
* @vkontakte/videoplayer v1.1.85-dev.01c6bd35.0
|
|
3
|
+
* Wed, 25 Feb 2026 12:59:59 GMT
|
|
4
|
+
* https://st.mycdn.me/static/vkontakte-videoplayer/1-1-85/doc/
|
|
5
5
|
*/
|
|
6
|
-
"use strict";var
|
|
6
|
+
"use strict";var U$=Object.create;var xd=Object.defineProperty,z$=Object.defineProperties,W$=Object.getOwnPropertyDescriptor,K$=Object.getOwnPropertyDescriptors,Q$=Object.getOwnPropertyNames,Pg=Object.getOwnPropertySymbols,q$=Object.getPrototypeOf,kg=Object.prototype.hasOwnProperty,G$=Object.prototype.propertyIsEnumerable;var Ag=t=>{throw TypeError(t)};var jp=(t,e,i)=>e in t?xd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Ye=(t,e)=>{for(var i in e||(e={}))kg.call(e,i)&&jp(t,i,e[i]);if(Pg)for(var i of Pg(e))G$.call(e,i)&&jp(t,i,e[i]);return t},ti=(t,e)=>z$(t,K$(e));var Y$=(t,e)=>{for(var i in e)xd(t,i,{get:e[i],enumerable:!0})},Lg=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of Q$(e))!kg.call(t,r)&&r!==i&&xd(t,r,{get:()=>e[r],enumerable:!(o=W$(e,r))||o.enumerable});return t};var Mg=(t,e,i)=>(i=t!=null?U$(q$(t)):{},Lg(e||!t||!t.__esModule?xd(i,"default",{value:t,enumerable:!0}):i,t)),j$=t=>Lg(xd({},"__esModule",{value:!0}),t);var mr=(t,e,i)=>jp(t,typeof e!="symbol"?e+"":e,i),Xp=(t,e,i)=>e.has(t)||Ag("Cannot "+i);var Fi=(t,e,i)=>(Xp(t,e,"read from private field"),i?i.call(t):e.get(t)),oa=(t,e,i)=>e.has(t)?Ag("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),xl=(t,e,i,o)=>(Xp(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),Vg=(t,e,i)=>(Xp(t,e,"access private method"),i);var yt=(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={};Y$(zT,{ControlButtonType:()=>Cc,GridTypes:()=>rs,InterfaceLanguage:()=>md.InterfaceLanguage,MenuItemType:()=>Xl,PlayerPhase:()=>ss,VERSION:()=>Qa,VKNumericLanguage:()=>md.VKNumericLanguage,VideoFormat:()=>Fp.VideoFormat,VideoQuality:()=>Fp.VideoQuality,isDpipSupported:()=>il,isPiPSupported:()=>Ks,loadVKLangPack:()=>md.loadVKLangPack,registerPlayerWebComponent:()=>UT});module.exports=j$(zT);var na="[",ra="[!",ka="]",bs={};var no=Symbol(),jn=Symbol("filename"),Rg=Symbol("hmr"),Dg="http://www.w3.org/1999/xhtml",du="http://www.w3.org/2000/svg";var Zp="@attach";var cu=!0;var Ng,Bg,Og=(Bg=(Ng=globalThis.process)==null?void 0:Ng.env)==null?void 0:Bg.NODE_ENV,Me=Og&&!Og.toLowerCase().startsWith("prod");var vr=Array.isArray,Fg=Array.prototype.indexOf,wd=Array.from,Jp=Object.keys,mo=Object.defineProperty,qo=Object.getOwnPropertyDescriptor,uu=Object.getOwnPropertyDescriptors,ef=Object.prototype,Hg=Array.prototype,Aa=Object.getPrototypeOf,tf=Object.isExtensible;function sa(t){return typeof t=="function"}var xt=()=>{};function Ug(t){return t()}function aa(t){for(var e=0;e<t.length;e++)t[e]()}var Go=Symbol("$state"),wl=Symbol("legacy props"),zg=Symbol(""),pu=Symbol("proxy path"),fu=1,Sl=3,gr=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 Wg(t,e){return t!==e}function Tl(t){return!Cl(t,this.v)}function Kg(){if(Me){let t=new Error(`derived_references_self
|
|
7
7
|
A derived value cannot reference itself recursively
|
|
8
|
-
https://svelte.dev/e/derived_references_self`);throw
|
|
9
|
-
\`${
|
|
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
|
|
11
|
-
\`${
|
|
12
|
-
https://svelte.dev/e/effect_orphan`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_orphan")}function Yg(){if(Me){let
|
|
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 Qg(t){if(Me){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 qg(){if(Me){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 Gg(t){if(Me){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 Yg(){if(Me){let t=new Error(`effect_update_depth_exceeded
|
|
13
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
|
|
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 jg(){if(Me){let t=new Error(`hydration_failed
|
|
15
15
|
Failed to hydrate the application
|
|
16
|
-
https://svelte.dev/e/hydration_failed`);throw
|
|
17
|
-
Cannot do \`bind:${
|
|
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(
|
|
19
|
-
Rest element properties of \`$props()\` such as \`${
|
|
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 eh(
|
|
21
|
-
The \`${
|
|
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 th(){if(Me){let
|
|
16
|
+
https://svelte.dev/e/hydration_failed`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/hydration_failed")}function Xg(){if(Me){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 Zg(t){if(Me){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(Me){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 eh(t){if(Me){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 th(){if(Me){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 ih(){if(Me){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 oh(){if(Me){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 $s=!1,ys=!1;function nh(){$s=!0}var Sd=null;function Ms(t){let e=Error(),i=e.stack;if(i){let o=i.split(`
|
|
23
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;
|
|
25
|
-
`)}),
|
|
26
|
-
\`${
|
|
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
|
|
28
|
-
%cThe \`${
|
|
29
|
-
https://svelte.dev/e/hydration_attribute_changed`,
|
|
30
|
-
%c${
|
|
31
|
-
https://svelte.dev/e/hydration_html_changed`,
|
|
32
|
-
%c${
|
|
33
|
-
https://svelte.dev/e/hydration_mismatch`,
|
|
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;mo(e,"stack",{value:r.join(`
|
|
25
|
+
`)}),mo(e,"name",{value:`${t}Error`})}return e}function Zr(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(Me){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 Ht=null;function Cd(t){Ht=t}var hr=null;function Td(t){hr=t}function El(t){return rf("getContext").get(t)}function Pl(t,e){return rf("setContext").set(t,e),e}function Id(){return rf("getAllContexts")}function B(t,e=!1,i){var o=Ht={p:Ht,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};$s&&!e&&(Ht.l={s:null,u:null,r1:[],r2:Rr(!1)}),ko(()=>{o.d=!0}),Me&&(Ht.function=i,hr=i)}function F(t){var l,d;let e=Ht;if(e!==null){t!==void 0&&(e.x=t);let s=e.e;if(s!==null){var i=wt,o=Dt;e.e=null;try{for(var r=0;r<s.length;r++){var a=s[r];vo(a.effect),qi(a.reaction),Ao(a.fn)}}finally{vo(i),qi(o)}}Ht=e.p,Me&&(hr=(d=(l=e.p)==null?void 0:l.function)!=null?d:null),e.m=!0}return t||{}}function xs(){return!$s||Ht!==null&&Ht.l===null}function rf(t){var e;return Ht===null&&Il(t),(e=Ht.c)!=null?e:Ht.c=new Map(Z$(Ht)||void 0)}function Z$(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 ri(t){if(typeof t!="object"||t===null||Go in t)return t;let e=Aa(t);if(e!==ef&&e!==Hg)return t;var i=new Map,o=vr(t),r=K(0),a=Me&&ys?Ms("CreatedAt"):null,l=Dt,d=f=>{var p=Dt;qi(l);var v=f();return qi(p),v};o&&i.set("length",K(t.length,a));var s="";function u(f){s=f,Zr(r,`${s} version`);for(let[p,v]of i)Zr(v,La(s,p))}return new Proxy(t,{defineProperty(f,p,v){(!("value"in v)||v.configurable===!1||v.enumerable===!1||v.writable===!1)&&th();var b=i.get(p);return b===void 0?b=d(()=>{var y=K(v.value,a);return i.set(p,y),Me&&typeof p=="string"&&Zr(y,La(s,p)),y}):D(b,v.value,!0),!0},deleteProperty(f,p){var v=i.get(p);if(v===void 0){if(p in f){let _=d(()=>K(no,a));i.set(p,_),sf(r),Me&&Zr(_,La(s,p))}}else{if(o&&typeof p=="string"){var b=i.get("length"),y=Number(p);Number.isInteger(y)&&y<b.v&&D(b,y)}D(v,no),sf(r)}return!0},get(f,p,v){var w;if(p===Go)return t;if(Me&&p===pu)return u;var b=i.get(p),y=p in f;if(b===void 0&&(!y||(w=qo(f,p))!=null&&w.writable)&&(b=d(()=>{var I=ri(y?f[p]:no),T=K(I,a);return Me&&Zr(T,La(s,p)),T}),i.set(p,b)),b!==void 0){var _=n(b);return _===no?void 0:_}return Reflect.get(f,p,v)},getOwnPropertyDescriptor(f,p){var v=Reflect.getOwnPropertyDescriptor(f,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),_=y==null?void 0:y.v;if(y!==void 0&&_!==no)return{enumerable:!0,configurable:!0,value:_,writable:!0}}return v},has(f,p){var _;if(p===Go)return!0;var v=i.get(p),b=v!==void 0&&v.v!==no||Reflect.has(f,p);if(v!==void 0||wt!==null&&(!b||(_=qo(f,p))!=null&&_.writable)){v===void 0&&(v=d(()=>{var w=b?ri(f[p]):no,I=K(w,a);return Me&&Zr(I,La(s,p)),I}),i.set(p,v));var y=n(v);if(y===no)return!1}return b},set(f,p,v,b){var E;var y=i.get(p),_=p in f;if(o&&p==="length")for(var w=v;w<y.v;w+=1){var I=i.get(w+"");I!==void 0?D(I,no):w in f&&(I=d(()=>K(no,a)),i.set(w+"",I),Me&&Zr(I,La(s,w)))}if(y===void 0)(!_||(E=qo(f,p))!=null&&E.writable)&&(y=d(()=>K(void 0,a)),D(y,ri(v)),i.set(p,y),Me&&Zr(y,La(s,p)));else{_=y.v!==no;var T=d(()=>ri(v));D(y,T)}var R=Reflect.getOwnPropertyDescriptor(f,p);if(R!=null&&R.set&&R.set.call(b,v),!_){if(o&&typeof p=="string"){var A=i.get("length"),P=Number(p);Number.isInteger(P)&&P>=A.v&&D(A,P+1)}sf(r)}return!0},ownKeys(f){n(r);var p=Reflect.ownKeys(f).filter(y=>{var _=i.get(y);return _===void 0||_.v!==no});for(var[v,b]of i)b.v!==no&&!(v in f)&&p.push(v);return p},setPrototypeOf(){ih()}})}function La(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 sf(t,e=1){D(t,t.v+e)}function kl(t){try{if(t!==null&&typeof t=="object"&&Go in t)return t[Go]}catch(e){}return t}function af(t,e){return Object.is(kl(t),kl(e))}function Jr(t){var e=2050,i=Dt!==null&&(Dt.f&2)!==0?Dt:null;wt===null||i!==null&&(i.f&256)!==0?e|=256:wt.f|=1048576;let o={ctx:Ht,deps:null,effects:null,equals:mu,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:wt};return Me&&ys&&(o.created=Ms("CreatedAt")),o}function m(t){let e=Jr(t);return _u(e),e}function br(t){let e=Jr(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)Gi(e[i])}}var lf=[];function e1(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function uf(t){var e,i=wt;if(vo(e1(t)),Me){let o=Ma;df(new Set);try{lf.includes(t)&&Kg(),lf.push(t),gu(t),e=hu(t)}finally{vo(i),df(o),lf.pop()}}else try{gu(t),e=hu(t)}finally{vo(i)}return e}function pf(t){var e=uf(t);if(t.equals(e)||(t.v=e,t.wv=Ed()),!Vs){var i=(Rs||(t.f&256)!==0)&&t.deps!==null?4096:1024;Ln(t,i)}}var Ma=new Set,Al=new Map;function df(t){Ma=t}function Rr(t,e){var i={f:0,v:t,reactions:null,equals:mu,rv:0,wv:0};return Me&&ys&&(i.created=e!=null?e:Ms("CreatedAt"),i.updated=null,i.set_during_effect=!1,i.trace=null),i}function K(t,e){let i=Rr(t,e);return _u(i),i}function ws(t,e=!1,i=!0){var r,a;let o=Rr(t);return e||(o.equals=Tl),$s&&i&&Ht!==null&&Ht.l!==null&&((a=(r=Ht.l).s)!=null?a:r.s=[]).push(o),o}function D(t,e,i=!1){var r;Dt!==null&&(!yr||(Dt.f&262144)!==0)&&xs()&&(Dt.f&262162)!==0&&!((r=jo)!=null&&r[1].includes(t)&&jo[0]===Dt)&&oh();let o=i?ri(e):e;return Me&&vu(o,t.label),Ll(t,o)}function Ll(t,e){if(!t.equals(e)){var i=t.v;if(Vs?Al.set(t,e):Al.set(t,i),t.v=e,Me&&ys&&(t.updated=Ms("UpdatedAt"),wt!==null&&(t.set_during_effect=!0)),(t.f&2)!==0&&((t.f&2048)!==0&&uf(t),Ln(t,(t.f&256)===0?1024:4096)),t.wv=Ed(),sh(t,2048),xs()&&wt!==null&&(wt.f&1024)!==0&&(wt.f&96)===0&&($r===null?ah([t]):$r.push(t)),Me&&Ma.size>0){let o=Array.from(Ma);for(let r of o)(r.f&1024)!==0&&Ln(r,4096),Ra(r)&&Ml(r);Ma.clear()}}return e}function sh(t,e){var i=t.reactions;if(i!==null)for(var o=xs(),r=i.length,a=0;a<r;a++){var l=i[a],d=l.f;if((d&2048)===0&&!(!o&&l===wt)){if(Me&&(d&262144)!==0){Ma.add(l);continue}Ln(l,e),(d&1280)!==0&&((d&2)!==0?sh(l,4096):kd(l))}}}var Vl="font-weight: bold",Rl="font-weight: normal";function lh(t,e,i){Me?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 dh(t){Me?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 la(t){Me?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 ch(){Me?console.warn(`%c[svelte] lifecycle_double_unmount
|
|
34
34
|
%cTried to unmount a component that was not mounted
|
|
35
|
-
https://svelte.dev/e/lifecycle_double_unmount`,
|
|
36
|
-
%cReactive \`$state(...)\` proxies and the values they proxy have different identities. Because of this, comparisons with \`${
|
|
37
|
-
https://svelte.dev/e/state_proxy_equality_mismatch`,
|
|
35
|
+
https://svelte.dev/e/lifecycle_double_unmount`,Vl,Rl):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function uh(){Me?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){Me?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 rt=!1;function go(t){rt=t}var St;function Ti(t){if(t===null)throw la(),bs;return St=t}function Yi(){return Ti(Xo(St))}function S(t){if(rt){if(Xo(St)!==null)throw la(),bs;St=t}}function Jt(t=1){if(rt){for(var e=t,i=St;e--;)i=Xo(i);St=i}}function Da(){for(var t=0,e=St;;){if(e.nodeType===gr){var i=e.data;if(i===ka){if(t===0)return e;t-=1}else(i===na||i===ra)&&(t+=1)}var o=Xo(e);e.remove(),e=o}}function $u(t){if(!t||t.nodeType!==gr)throw la(),bs;return t.data}function ph(){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 Oa,fh,Ad,mh,vh;function yu(){if(Oa===void 0){Oa=window,fh=document,Ad=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;mh=qo(e,"firstChild").get,vh=qo(e,"nextSibling").get,tf(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),tf(i)&&(i.__t=void 0),Me&&(t.__svelte_meta=null,ph())}}function Mn(t=""){return document.createTextNode(t)}function Ai(t){return mh.call(t)}function Xo(t){return vh.call(t)}function C(t,e){if(!rt)return Ai(t);var i=Ai(St);if(i===null)i=St.appendChild(Mn());else if(e&&i.nodeType!==Sl){var o=Mn();return i==null||i.before(o),Ti(o),o}return Ti(i),i}function le(t,e){var r,a;if(!rt){var i=Ai(t);return i.nodeType===8&&i.data===""?Xo(i):i}if(e&&((r=St)==null?void 0:r.nodeType)!==Sl){var o=Mn();return(a=St)==null||a.before(o),Ti(o),o}return St}function k(t,e=1,i=!1){let o=rt?St:t;for(var r;e--;)r=o,o=Xo(o);if(!rt)return o;if(i&&(o==null?void 0:o.nodeType)!==Sl){var a=Mn();return o===null?r==null||r.after(a):o.before(a),Ti(a),a}return Ti(o),o}function Ld(t){t.textContent=""}function vf(t){wt===null&&Dt===null&&Gg(t),Dt!==null&&(Dt.f&256)!==0&&wt===null&&qg(),Vs&&Qg(t)}function t1(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function Na(t,e,i,o=!0){var s;var r=wt;if(Me)for(;r!==null&&(r.f&262144)!==0;)r=r.parent;var a={ctx:Ht,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(Me&&(a.component_function=hr),i)try{Ml(a),a.f|=32768}catch(u){throw Gi(a),u}else e!==null&&kd(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&&t1(a,r),Dt!==null&&(Dt.f&2)!==0)){var d=Dt;((s=d.effects)!=null?s:d.effects=[]).push(a)}return a}function ko(t){let e=Na(8,null,!1);return Ln(e,1024),e.teardown=t,e}function Fe(t){var r;vf("$effect");var e=wt!==null&&(wt.f&32)!==0&&Ht!==null&&!Ht.m;if(Me&&mo(t,"name",{value:"$effect"}),e){var i=Ht;((r=i.e)!=null?r:i.e=[]).push({fn:t,effect:wt,reaction:Dt})}else{var o=Ao(t);return o}}function Rd(t){return vf("$effect.pre"),Me&&mo(t,"name",{value:"$effect.pre"}),Zo(t)}function Su(t){let e=Na(64,t,!0);return()=>{Gi(e)}}function hh(t){let e=Na(64,t,!0);return(i={})=>new Promise(o=>{i.outro?er(e,()=>{Gi(e),o(void 0)}):(Gi(e),o(void 0))})}function Ao(t){return Na(4,t,!1)}function Zo(t){return Na(8,t,!0)}function O(t,e=[],i=Jr){if(Me)return Zo(()=>{var r=wt,a=()=>t(...l.map(n));mo(r.fn,"name",{value:"{expression}"}),mo(a,"name",{value:"{expression}"});let l=e.map(i);ji(a)});let o=e.map(i);return ji(()=>t(...o.map(n)))}function ji(t,e=0){return Na(24|e,t,!0)}function Hi(t,e=!0){return Na(40,t,!0,e)}function gf(t){var e=t.teardown;if(e!==null){let i=Vs,o=Dt;ff(!0),qi(null);try{e.call(null)}finally{ff(i),qi(o)}}}function hf(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:Gi(i,e),i=o}}function _h(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&Gi(e),e=i}}function Gi(t,e=!0){var i=!1;(e||(t.f&524288)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(_f(t.nodes_start,t.nodes_end),i=!0),hf(t,e&&!i),Dd(t,0),Ln(t,16384);var o=t.transitions;if(o!==null)for(let a of o)a.stop();gf(t);var r=t.parent;r!==null&&r.first!==null&&bf(t),Me&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function _f(t,e){for(;t!==null;){var i=t===e?null:Xo(t);t.remove(),t=i}}function bf(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 er(t,e){var i=[];Cu(t,i,!0),$f(i,()=>{Gi(t),e&&e()})}function $f(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 Os(t){bh(t,!0)}function bh(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;bh(i,r?e:!1),i=o}if(t.transitions!==null)for(let a of t.transitions)(a.is_global||e)&&a.in()}}var Od=[],yf=[];function $h(){var t=Od;Od=[],aa(t)}function i1(){var t=yf;yf=[],aa(t)}function Vn(t){Od.length===0&&queueMicrotask($h),Od.push(t)}function yh(){Od.length>0&&$h(),yf.length>0&&i1()}function wh(t){var e=wt;if(Me&&t instanceof Error&&o1(t,e),(e.f&32768)===0){if((e.f&128)===0)throw t;e.fn(t)}else Nd(t,e)}function Nd(t,e){for(;e!==null;){if((e.f&128)!==0)try{e.fn(t);return}catch(i){}e=e.parent}throw t}var xh=new WeakSet;function o1(t,e){var l,d;if(xh.has(t))return;xh.add(t);let i=qo(t,"message");if(!(i&&!i.configurable)){for(var o=Ad?" ":" ",r=`
|
|
38
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[
|
|
39
|
+
${o}in ${(d=a.function)==null?void 0:d[jn].split("/").pop()}`,a=a.p;mo(t,"message",{value:t.message+`
|
|
40
40
|
${r}
|
|
41
|
-
`}),
|
|
41
|
+
`}),t.stack&&mo(t,"stack",{value:t.stack.split(`
|
|
42
42
|
`).filter(s=>!s.includes("svelte/src/internal")).join(`
|
|
43
|
-
`)})}}var Da=!1,Rl=null,Ba=!1,ks=!1;function gf(i){ks=i}var Dd=[],Bd=[],Bt=null,pr=!1;function Zi(i){Bt=i}var $t=null;function _o(i){$t=i}var Xo=null;function _u(i){Bt!==null&&Bt.f&2097152&&(Xo===null?Xo=[Bt,[i]]:Xo[1].push(i))}var Tn=null,fr=0,ur=null;function ah(i){ur=i}var Th=1,Iu=0,As=!1,Eu=null;function Id(){return++Th}function Va(i){var p,v;var e=i.f;if((e&2048)!==0)return!0;if((e&4096)!==0){var t=i.deps,o=(e&256)!==0;if(t!==null){var r,a,l=(e&512)!==0,d=o&&$t!==null&&!As,s=t.length;if(l||d){var u=i,m=u.parent;for(r=0;r<s;r++)a=t[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=t[r],Va(a)&&vf(a),a.wv>i.wv)return!0}(!o||$t!==null&&!As)&&wn(i,1024)}return!1}function Ih(i,e,t=!0){var o=i.reactions;if(o!==null)for(var r=0;r<o.length;r++){var a=o[r];Xo!=null&&Xo[1].includes(i)&&Xo[0]===Bt||((a.f&2)!==0?Ih(a,e,!1):e===a&&(t?wn(a,2048):(a.f&1024)!==0&&wn(a,4096),Pd(a)))}}function hu(i){var b,y;var e=Tn,t=fr,o=ur,r=Bt,a=As,l=Xo,d=zt,s=pr,u=i.f;Tn=null,fr=0,ur=null,As=(u&256)!==0&&(pr||!Ba||Bt===null),Bt=(u&96)===0?i:null,Xo=null,Sd(i.ctx),pr=!1,Iu++,i.f|=2097152;try{var m=(0,i.fn)(),p=i.deps;if(Tn!==null){var v;if(Rd(i,fr),p!==null&&fr>0)for(p.length=fr+Tn.length,v=0;v<Tn.length;v++)p[fr+v]=Tn[v];else i.deps=p=Tn;if(!As||(u&2)!==0&&i.reactions!==null)for(v=fr;v<p.length;v++)((y=(b=p[v]).reactions)!=null?y:b.reactions=[]).push(i)}else p!==null&&fr<p.length&&(Rd(i,fr),p.length=fr);if(_s()&&ur!==null&&!pr&&p!==null&&(i.f&6146)===0)for(v=0;v<ur.length;v++)Ih(ur[v],i);return r!==null&&r!==i&&(Iu++,ur!==null&&(o===null?o=ur:o.push(...ur))),m}catch(_){wh(_)}finally{Tn=e,fr=t,ur=o,Bt=r,As=a,Xo=l,Sd(d),pr=s,i.f^=2097152}}function l1(i,e){let t=e.reactions;if(t!==null){var o=Hg.call(t,i);if(o!==-1){var r=t.length-1;r===0?t=e.reactions=null:(t[o]=t[r],t.pop())}}t===null&&(e.f&2)!==0&&(Tn===null||!Tn.includes(e))&&(wn(e,4096),(e.f&768)===0&&(e.f^=512),gu(e),Rd(e,0))}function Rd(i,e){var t=i.deps;if(t!==null)for(var o=e;o<t.length;o++)l1(i,t[o])}function Ll(i){var e=i.f;if((e&16384)===0){wn(i,1024);var t=$t,o=Ba;if($t=i,Ba=!0,Me){var r=lr;Cd(i.component_function)}try{(e&16)!==0?_h(i):$f(i),bf(i);var a=hu(i);if(i.teardown=typeof a=="function"?a:null,i.wv=Th,Me&&hs&&(i.f&2048)!==0&&i.deps!==null)for(var l of i.deps)l.set_during_effect&&(l.wv=Id(),l.set_during_effect=!1);Me&&Bd.push(i)}finally{Ba=o,$t=t,Me&&Cd(r)}}}function Sh(){console.error("Last ten effects were: ",Bd.slice(-10).map(i=>i.fn)),Bd=[]}function d1(){try{Yg()}catch(i){if(Me&&ho(i,"stack",{value:""}),Rl!==null)if(Me)try{Nd(i,Rl)}catch(e){throw Sh(),e}else Nd(i,Rl);else throw Me&&Sh(),i}}function Tf(){var i=Ba;try{var e=0;for(Ba=!0;Dd.length>0;){e++>1e3&&d1();var t=Dd,o=t.length;Dd=[];for(var r=0;r<o;r++){var a=u1(t[r]);c1(a)}kl.clear()}}finally{Da=!1,Ba=i,Rl=null,Me&&(Bd=[])}}function c1(i){var e=i.length;if(e!==0)for(var t=0;t<e;t++){var o=i[t];(o.f&24576)===0&&Va(o)&&(Ll(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?xf(o):o.fn=null))}}function Pd(i){Da||(Da=!0,queueMicrotask(Tf));for(var e=Rl=i;e.parent!==null;){e=e.parent;var t=e.f;if((t&96)!==0){if((t&1024)===0)return;e.f^=1024}}Dd.push(e)}function u1(i){for(var e=[],t=i;t!==null;){var o=t.f,r=(o&96)!==0,a=r&&(o&1024)!==0;if(!a&&(o&8192)===0){(o&4)!==0?e.push(t):r?t.f^=1024:Va(t)&&Ll(t);var l=t.first;if(l!==null){t=l;continue}}var d=t.parent;for(t=t.next;t===null&&d!==null;)t=d.next,d=d.parent}return e}function Ol(i){var e;for(i&&(Da=!0,Tf(),Da=!0,e=i());;){if(yh(),Dd.length===0)return Da=!1,Rl=null,Me&&(Bd=[]),e;Da=!0,Tf()}}function $o(){return gt(this,null,function*(){yield Promise.resolve(),Ol()})}function n(i){var e=i.f,t=(e&2)!==0;if(Eu!==null&&Eu.add(i),Bt!==null&&!pr){if(!(Xo!=null&&Xo[1].includes(i))||Xo[0]!==Bt){var o=Bt.deps;i.rv<Iu&&(i.rv=Iu,Tn===null&&o!==null&&o[fr]===i?fr++:Tn===null?Tn=[i]:(!As||!Tn.includes(i))&&Tn.push(i))}}else if(t&&i.deps===null&&i.effects===null){var r=i,a=r.parent;a!==null&&(a.f&256)===0&&(r.f^=256)}if(t&&(r=i,Va(r)&&vf(r)),Me&&hs&&!pr&&wd!==null&&Bt!==null&&wd.reaction===Bt)if(i.trace)i.trace();else{var l=Ps("TracedAt");if(l){var d=wd.entries.get(i);d===void 0&&(d={traces:[]},wd.entries.set(i,d));var s=d.traces[d.traces.length-1];l.stack!==(s==null?void 0:s.stack)&&d.traces.push(l)}}return ks&&kl.has(i)?kl.get(i):i.v}function At(i){var e=pr;try{return pr=!0,i()}finally{pr=e}}var p1=-7169;function wn(i,e){i.f=i.f&p1|e}function ku(i){if(!(typeof i!="object"||!i||i instanceof EventTarget)){if(Yo in i)Pu(i);else if(!Array.isArray(i))for(let e in i){let t=i[e];typeof t=="object"&&t&&Yo in t&&Pu(t)}}}function Pu(i,e=new Set){if(typeof i=="object"&&i!==null&&!(i instanceof EventTarget)&&!e.has(i)){e.add(i),i instanceof Date&&i.getTime();for(let o in i)try{Pu(i[o],e)}catch(r){}let t=ka(i);if(t!==Object.prototype&&t!==Array.prototype&&t!==Map.prototype&&t!==Set.prototype&&t!==Date.prototype){let o=uu(t);for(let r in o){let a=o[r].get;if(a)try{a.call(i)}catch(l){}}}}}function If(i,e){if(e){let t=document.body;i.autofocus=!0,Cn(()=>{document.activeElement===t&&i.focus()})}}function Hd(i){var e=Bt,t=$t;Zi(null),_o(null);try{return i()}finally{Zi(e),_o(t)}}var Ef=new Set,Au=new Set;function Ha(i){if(!nt)return;i.removeAttribute("onload"),i.removeAttribute("onerror");let e=i.__e;e!==void 0&&(i.__e=void 0,queueMicrotask(()=>{i.isConnected&&i.dispatchEvent(e)}))}function Pf(i,e,t,o={}){function r(a){if(o.capture||Nl.call(e,a),!a.cancelBubble)return Hd(()=>t==null?void 0:t.call(this,a))}return i.startsWith("pointer")||i.startsWith("touch")||i==="wheel"?Cn(()=>{e.addEventListener(i,r,o)}):e.addEventListener(i,r,o),r}function pt(i,e,t,o,r){var a={capture:o,passive:r},l=Pf(i,e,t,a);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Ro(()=>{e.removeEventListener(i,l,a)})}function tt(i){for(var e=0;e<i.length;e++)Ef.add(i[e]);for(var t of Au)t(i)}function Nl(i){var T;var e=this,t=e.ownerDocument,o=i.type,r=((T=i.composedPath)==null?void 0:T.call(i))||[],a=r[0]||i.target,l=0,d=i.__root;if(d){var s=r.indexOf(d);if(s!==-1&&(e===document||e===window)){i.__root=e;return}var u=r.indexOf(e);if(u===-1)return;s<=u&&(l=s)}if(a=r[l]||i.target,a!==e){ho(i,"currentTarget",{configurable:!0,get(){return a||t}});var m=Bt,p=$t;Zi(null),_o(null);try{for(var v,b=[];a!==null;){var y=a.assignedSlot||a.parentNode||a.host||null;try{var _=a["__"+o];if(_!=null&&(!a.disabled||i.target===a))if(sr(_)){var[x,...I]=_;x.apply(a,[i,...I])}else _.call(a,i)}catch(R){v?b.push(R):v=R}if(i.cancelBubble||y===e||y===null)break;a=y}if(v){for(let R of b)queueMicrotask(()=>{throw R});throw v}}finally{i.__root=e,delete i.currentTarget,Zi(m),_o(p)}}}var m1;function Eh(){m1=void 0}function Dl(i){var e=document.createElement("template");return e.innerHTML=i.replaceAll("<!>","<!---->"),e.content}function No(i,e){var t=$t;t.nodes_start===null&&(t.nodes_start=i,t.nodes_end=e)}function L(i,e){var t=(e&1)!==0,o=(e&2)!==0,r,a=!i.startsWith("<!>");return()=>{if(nt)return No(yt,null),yt;r===void 0&&(r=Dl(a?i:"<!>"+i),t||(r=ki(r)));var l=o||kd?document.importNode(r,!0):r.cloneNode(!0);if(t){var d=ki(l),s=l.lastChild;No(d,s)}else No(l,l);return l}}function h1(i,e,t="svg"){var o=!i.startsWith("<!>"),r=(e&1)!==0,a=`<${t}>${o?i:"<!>"+i}</${t}>`,l;return()=>{if(nt)return No(yt,null),yt;if(!l){var d=Dl(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;No(m,p)}else No(u,u);return u}}function Ee(i,e){return h1(i,e,"svg")}function $s(i=""){if(!nt){var e=Sn(i+"");return No(e,e),e}var t=yt;return t.nodeType!==wl&&(t.before(t=Sn()),Ii(t)),No(t,t),t}function Ve(){if(nt)return No(yt,null),yt;var i=document.createDocumentFragment(),e=document.createComment(""),t=Sn();return i.append(e,t),No(e,t),i}function $(i,e){if(nt){$t.nodes_end=yt,eo();return}i!==null&&i.before(e)}var _1=/\r/g;function kh(i){i=i.replace(_1,"");let e=5381,t=i.length;for(;t--;)e=(e<<5)-e^i.charCodeAt(t);return(e>>>0).toString(36)}function Ah(i){return i.endsWith("capture")&&i!=="gotpointercapture"&&i!=="lostpointercapture"}var b1=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Lh(i){return b1.includes(i)}var $1=["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 y1={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 Mh(i){var e;return i=i.toLowerCase(),(e=y1[i])!=null?e:i}var BP=[...$1,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var x1=["touchstart","touchmove"];function Vh(i){return x1.includes(i)}var w1=["$state","$state.raw","$derived","$derived.by"],HP=[...w1,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var S1=["textarea","script","style","title"];function Rh(i){return S1.includes(i)}function Lu(i){return i==null?void 0:i.replace(/\//g,"/")}var Fd=!0;function Mu(i){Fd=i}function he(i,e){var o;var t=e==null?"":typeof e=="object"?e+"":e;t!==((o=i.__t)!=null?o:i.__t=i.nodeValue)&&(i.__t=t,i.nodeValue=t+"")}function ts(i,e){return Oh(i,e)}function Af(i,e){var l;yu(),e.intro=(l=e.intro)!=null?l:!1;let t=e.target,o=nt,r=yt;try{for(var a=ki(t);a&&(a.nodeType!==ar||a.data!==Js);)a=Zo(a);if(!a)throw vs;bo(!0),Ii(a),eo();let d=Oh(i,Gt(Le({},e),{anchor:a}));if(yt===null||yt.nodeType!==ar||yt.data!==Pa)throw oa(),vs;return bo(!1),d}catch(d){if(d===vs)return e.recover===!1&&jg(),yu(),Ad(t),bo(!1),ts(i,e);throw d}finally{bo(o),Ii(r),Eh()}}var Bl=new Map;function Oh(i,{target:e,anchor:t,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=Vh(b);e.addEventListener(b,Nl,{passive:y});var _=Bl.get(b);_===void 0?(document.addEventListener(b,Nl,{passive:y}),Bl.set(b,1)):Bl.set(b,_+1)}}};s(xd(Ef)),Au.add(s);var u=void 0,m=hh(()=>{var p=t!=null?t:e.appendChild(Sn());return Fi(()=>{if(a){B({});var v=zt;v.c=a}r&&(o.$$events=r),nt&&No(p,null),Fd=l,u=i(p,o)||{},Fd=!0,nt&&($t.nodes_end=yt),a&&H()}),()=>{var y;for(var v of d){e.removeEventListener(v,Nl);var b=Bl.get(v);--b===0?(document.removeEventListener(v,Nl),Bl.delete(v)):Bl.set(v,b)}Au.delete(s),p!==t&&((y=p.parentNode)==null||y.removeChild(p))}});return kf.set(u,m),u}var kf=new WeakMap;function Fa(i,e){let t=kf.get(i);return t?(kf.delete(i),t(e)):(Me&&ch(),Promise.resolve())}function ai(i,e,...t){var o=i,r=ht,a;to(()=>{r!==(r=e())&&(a&&(Ji(a),a=null),Me&&r==null&&Xg(),a=Fi(()=>r(o,...t)))},65536),nt&&(o=yt)}if(Me){let i=function(e){if(!(e in globalThis)){let t;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(t!==void 0)return t;eh(e)},set:o=>{t=o}})}};E1=i,i("$state"),i("$effect"),i("$derived"),i("$inspect"),i("$props"),i("$bindable")}var E1;function Ot(i){zt===null&&Tl("onMount"),gs&&zt.l!==null?I1(zt).m.push(i):Be(()=>{let e=At(i);if(typeof e=="function")return e})}function mn(i){zt===null&&Tl("onDestroy"),Ot(()=>()=>At(i))}function I1(i){var t;var e=i.l;return(t=e.u)!=null?t:e.u={a:[],b:[],m:[]}}var Nh=new Map;function Dh(i,e){var t=Nh.get(i);t||(t=new Set,Nh.set(i,t)),t.add(e)}function V(i,e,[t,o]=[0,0]){nt&&t===0&&eo();var r=i,a=null,l=null,d=ro,s=t>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(nt&&o!==-1){if(t===0){let x=$u(r);x===Js?o=0:x===ea?o=1/0:(o=parseInt(x.substring(1)),o!==o&&(o=d?1/0:-1))}let _=o>t;!!d===_&&(r=Ra(),Ii(r),bo(!1),y=!0,o=-1)}d?(a?Ms(a):b&&(a=Fi(()=>b(r))),l&&Gn(l,()=>{l=null})):(l?Ms(l):b&&(l=Fi(()=>b(r,[t+1,o]))),a&&Gn(a,()=>{a=null})),y&&bo(!0)};to(()=>{u=!1,e(m),u||p(null,null)},s),nt&&(r=yt)}function Vs(i,e,t){nt&&eo();var o=i,r=ro,a,l=_s()?Wg:Sl;to(()=>{l(r,r=e())&&(a&&Gn(a),a=Fi(()=>t(o)))}),nt&&(o=yt)}var ra=null;function Vf(i){ra=i}function Ud(i,e){return e}function A1(i,e,t,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&&t!==null;if(d){var s=t.parentNode;Ad(s),s.append(t),o.clear(),na(i,e[0].prev,e[a-1].next)}wf(r,()=>{for(var u=0;u<a;u++){var m=e[u];d||(o.delete(m.k),na(i,m.prev,m.next)),Ji(m.e,!d)}})}function wi(i,e,t,o,r,a=null){var l=i,d={flags:e,items:new Map,first:null},s=(e&4)!==0;if(s){var u=i;l=nt?Ii(ki(u)):u.appendChild(Sn())}nt&&eo();var m=null,p=!1,v=cr(()=>{var b=t();return sr(b)?b:b==null?[]:xd(b)});to(()=>{var b=n(v),y=b.length;if(p&&y===0)return;p=y===0;let _=!1;if(nt){var x=$u(l)===ea;x!==(y===0)&&(l=Ra(),Ii(l),bo(!1),_=!0)}if(nt){for(var I=null,T,R=0;R<y;R++){if(yt.nodeType===ar&&yt.data===Pa){l=yt,_=!0,bo(!1);break}var A=b[R],P=o(A,R);T=Fh(yt,d,I,null,A,P,R,r,e,t),d.items.set(P,T),I=T}y>0&&Ii(Ra())}nt||L1(b,d,l,r,e,o,t),a!==null&&(y===0?m?Ms(m):m=Fi(()=>a(l)):m!==null&&Gn(m,()=>{m=null})),_&&bo(!0),n(v)}),nt&&(l=yt)}function L1(i,e,t,o,r,a,l){var Z,Ce,fe,oe;var d=(r&8)!==0,s=(r&3)!==0,u=i.length,m=e.items,p=e.first,v=p,b,y=null,_,x=[],I=[],T,R,A,P;if(d)for(P=0;P<u;P+=1)T=i[P],R=a(T,P),A=m.get(R),A!==void 0&&((Z=A.a)==null||Z.measure(),(_!=null?_:_=new Set).add(A));for(P=0;P<u;P+=1){if(T=i[P],R=a(T,P),A=m.get(R),A===void 0){var E=v?v.e.nodes_start:t;y=Fh(E,e,y,y===null?e.first:y.next,T,R,P,o,r,l),m.set(R,y),x=[],I=[],v=y.next;continue}if(s&&M1(A,T,P,r),(A.e.f&8192)!==0&&(Ms(A.e),d&&((Ce=A.a)==null||Ce.unfix(),(_!=null?_:_=new Set).delete(A))),A!==v){if(b!==void 0&&b.has(A)){if(x.length<I.length){var K=I[0],F;y=K.prev;var z=x[0],X=x[x.length-1];for(F=0;F<x.length;F+=1)Bh(x[F],K,t);for(F=0;F<I.length;F+=1)b.delete(I[F]);na(e,z.prev,X.next),na(e,y,z),na(e,X,K),v=K,y=X,P-=1,x=[],I=[]}else b.delete(A),Bh(A,v,t),na(e,A.prev,A.next),na(e,A,y===null?e.first:y.next),na(e,y,A),y=A;continue}for(x=[],I=[];v!==null&&v.k!==R;)(v.e.f&8192)===0&&(b!=null?b:b=new Set).add(v),I.push(v),v=v.next;if(v===null)continue;A=v}x.push(A),y=A,v=A.next}if(v!==null||b!==void 0){for(var se=b===void 0?[]:xd(b);v!==null;)(v.e.f&8192)===0&&se.push(v),v=v.next;var Y=se.length;if(Y>0){var re=(r&4)!==0&&u===0?t:null;if(d){for(P=0;P<Y;P+=1)(fe=se[P].a)==null||fe.measure();for(P=0;P<Y;P+=1)(oe=se[P].a)==null||oe.fix()}A1(e,se,re,m)}}d&&Cn(()=>{var pe;if(_!==void 0)for(A of _)(pe=A.a)==null||pe.apply()}),$t.first=e.first&&e.first.e,$t.last=y&&y.e}function M1(i,e,t,o){(o&1)!==0&&Al(i.v,e),(o&2)!==0?Al(i.i,t):i.i=t}function Fh(i,e,t,o,r,a,l,d,s,u){var m=ra,p=(s&1)!==0,v=(s&16)===0,b=p?v?bs(r,!1,!1):Or(r):r,y=(s&2)===0?l:Or(l);Me&&p&&(b.trace=()=>{var x=typeof y=="number"?l:y.v;u()[x]});var _={i:y,v:b,k:a,a:null,e:null,prev:t,next:o};ra=_;try{return _.e=Fi(()=>d(i,b,y,u),nt),_.e.prev=t&&t.e,_.e.next=o&&o.e,t===null?e.first=_:(t.next=_,t.e.next=_.e),o!==null&&(o.prev=_,o.e.prev=_.e),_}finally{ra=m}}function Bh(i,e,t){for(var o=i.next?i.next.e.nodes_start:t,r=e?e.e.nodes_start:t,a=i.e.nodes_start;a!==o;){var l=Zo(a);r.before(a),a=l}}function na(i,e,t){e===null?i.first=t:(e.next=t,e.e.next=t&&t.e),t!==null&&(t.prev=e,t.e.prev=e&&e.e)}function V1(i,e,t){var a,l;if(!e||e===kh(String(t!=null?t:"")))return;let o,r=(a=i.__svelte_meta)==null?void 0:a.loc;r?o=`near ${r.file}:${r.line}:${r.column}`:(l=lr)!=null&&l[Wn]&&(o=`in ${lr[Wn]}`),dh(Lu(o))}function zd(i,e,t=!1,o=!1,r=!1){var a=i,l="";N(()=>{var b;var d=$t;if(l===(l=(b=e())!=null?b:"")){nt&&eo();return}if(d.nodes_start!==null&&(yf(d.nodes_start,d.nodes_end),d.nodes_start=d.nodes_end=null),l!==""){if(nt){for(var s=yt.data,u=eo(),m=u;u!==null&&(u.nodeType!==ar||u.data!=="");)m=u,u=Zo(u);if(u===null)throw oa(),vs;Me&&!r&&V1(u.parentNode,s,l),No(yt,m),a=Ii(u);return}var p=l+"";t?p=`<svg>${p}</svg>`:o&&(p=`<math>${p}</math>`);var v=Dl(p);if((t||o)&&(v=ki(v)),No(ki(v),v.lastChild),t||o)for(;ki(v);)a.before(ki(v));else a.before(v)}})}function Ui(i,e,t){nt&&eo();var o=i,r,a;to(()=>{r!==(r=e())&&(a&&(Gn(a),a=null),r&&(a=Fi(()=>t(o,r))))},65536),nt&&(o=yt)}function Ua(i,e,t,o,r,a){var y;let l=nt;nt&&eo();var d=Me&&a&&((y=zt)==null?void 0:y.function[Wn]),s,u,m=null;nt&&yt.nodeType===fu&&(m=yt,eo());var p=nt?yt:i,v,b=ra;to(()=>{let _=e()||null;var x=r?r():t||_==="svg"?du:null;if(_!==s){var I=ra;Vf(b),v&&(_===null?Gn(v,()=>{v=null,u=null}):_===u?Ms(v):(Ji(v),Mu(!1))),_&&_!==u&&(v=Fi(()=>{if(m=nt?m:x?document.createElementNS(x,_):document.createElement(_),Me&&a&&(m.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),No(m,m),o){nt&&Rh(_)&&m.append(document.createComment(""));var T=nt?ki(m):m.appendChild(Sn());nt&&(T===null?bo(!1):Ii(T)),o(m,T)}$t.nodes_end=m,p.before(m)})),s=_,s&&(u=s),Mu(!0),Vf(I)}},65536),l&&(bo(!0),Ii(p))}var Of;function Uh(i){return Of=i.target,new Rf(i)}var Rs,Nr,Rf=class{constructor(e){Zs(this,Rs);Zs(this,Nr);var a,l;var t=new Map,o=(d,s)=>{var u=bs(s,!1,!1);return t.set(d,u),u};let r=new Proxy(Gt(Le({},e.props||{}),{$$events:{}}),{get(d,s){var u;return n((u=t.get(s))!=null?u:o(s,Reflect.get(d,s)))},has(d,s){var u;return s===xl?!0:(n((u=t.get(s))!=null?u:o(s,Reflect.get(d,s))),Reflect.has(d,s))},set(d,s,u){var m;return O((m=t.get(s))!=null?m:o(s,u),u),Reflect.set(d,s,u)}});yl(this,Nr,(e.hydrate?Af:ts)(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(),yl(this,Rs,r.$$events);for(let d of Object.keys(Hi(this,Nr)))d==="$set"||d==="$destroy"||d==="$on"||ho(this,d,{get(){return Hi(this,Nr)[d]},set(s){Hi(this,Nr)[d]=s},enumerable:!0});Hi(this,Nr).$set=d=>{Object.assign(r,d)},Hi(this,Nr).$destroy=()=>{Fa(Hi(this,Nr))}}$set(e){Hi(this,Nr).$set(e)}$on(e,t){Hi(this,Rs)[e]=Hi(this,Rs)[e]||[];let o=(...r)=>t.call(this,...r);return Hi(this,Rs)[e].push(o),()=>{Hi(this,Rs)[e]=Hi(this,Rs)[e].filter(r=>r!==o)}}$destroy(){Hi(this,Nr).$destroy()}};Rs=new WeakMap,Nr=new WeakMap;function G(i,e){Cn(()=>{var r,a,l;var t=i.getRootNode(),o=t.host?t:(l=(r=t.head)!=null?r:t.ownerDocument.head)!=null?l:(a=Of)==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),Me&&Dh(e.hash,d)}})}function Os(i,e){var t=void 0,o;to(()=>{t!==(t=e())&&(o&&(Ji(o),o=null),t&&(o=Fi(()=>{Oo(()=>t(i))})))})}function zh(i){var e,t,o="";if(typeof i=="string"||typeof i=="number")o+=i;else if(typeof i=="object")if(Array.isArray(i)){var r=i.length;for(e=0;e<r;e++)i[e]&&(t=zh(i[e]))&&(o&&(o+=" "),o+=t)}else for(t in i)i[t]&&(o&&(o+=" "),o+=t);return o}function Wh(){for(var i,e,t=0,o="",r=arguments.length;t<r;t++)(i=arguments[t])&&(e=zh(i))&&(o&&(o+=" "),o+=e);return o}function Wd(i){return typeof i=="object"?Wh(i):i!=null?i:""}var Kh=[...`
|
|
44
|
-
\r\f \v\uFEFF`];function Qh(i,e,t){var o=i==null?"":""+i;if(e&&(o=o?o+" "+e:e),t){for(var r in t)if(t[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||Kh.includes(o[l-1]))&&(d===o.length||Kh.includes(o[d]))?o=(l===0?"":o.substring(0,l))+o.substring(d+1):l=d}}return o===""?null:o}function qh(i,e=!1){var t=e?" !important;":";",o="";for(var r in i){var a=i[r];a!=null&&a!==""&&(o+=" "+r+": "+a+t)}return o}function Nf(i){return i[0]!=="-"||i[1]!=="-"?i.toLowerCase():i}function Gh(i,e){if(e){var t="",o,r;if(Array.isArray(e)?(o=e[0],r=e[1]):o=e,i){i=String(i).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var a=!1,l=0,d=!1,s=[];o&&s.push(...Object.keys(o).map(Nf)),r&&s.push(...Object.keys(r).map(Nf));var u=0,m=-1;let _=i.length;for(var p=0;p<_;p++){var v=i[p];if(d?v==="/"&&i[p-1]==="*"&&(d=!1):a?a===v&&(a=!1):v==="/"&&i[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===_-1){if(m!==-1){var b=Nf(i.substring(u,m).trim());if(!s.includes(b)){v!==";"&&p++;var y=i.substring(u,p).trim();t+=" "+y+";"}}u=p+1,m=-1}}}}return o&&(t+=qh(o)),r&&(t+=qh(r,!0)),t=t.trim(),t===""?null:t}return i==null?null:String(i)}function ne(i,e,t,o,r,a){var l=i.__className;if(nt||l!==t||l===void 0){var d=Qh(t,o,a);(!nt||d!==i.getAttribute("class"))&&(d==null?i.removeAttribute("class"):e?i.className=d:i.setAttribute("class",d)),i.__className=t}else if(a&&r!==a)for(var s in a){var u=!!a[s];(r==null||u!==!!r[s])&&i.classList.toggle(s,u)}return a}function Df(i,e={},t,o){for(var r in t){var a=t[r];e[r]!==a&&(t[r]==null?i.style.removeProperty(r):i.style.setProperty(r,a,o))}}function Ye(i,e,t,o){var r=i.__style;if(nt||r!==e){var a=Gh(e,o);(!nt||a!==i.getAttribute("style"))&&(a==null?i.removeAttribute("style"):i.style.cssText=a),i.__style=e}else o&&(Array.isArray(o)?(Df(i,t==null?void 0:t[0],o[0]),Df(i,t==null?void 0:t[1],o[1],"important")):Df(i,t,o));return o}function Kd(i,e,t){if(i.multiple){if(e==null)return;if(!sr(e))return uh();for(var o of i.options)o.selected=e.includes(Yh(o));return}for(o of i.options){var r=Yh(o);if(cf(r,e)){o.selected=!0;return}}(!t||e!==void 0)&&(i.selectedIndex=-1)}function Bf(i){var e=new MutationObserver(()=>{Kd(i,i.__value)});e.observe(i,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Ro(()=>{e.disconnect()})}function Yh(i){return"__value"in i?i.__value:i.value}var Hl=Symbol("class"),Fl=Symbol("style"),Zh=Symbol("is custom element"),Jh=Symbol("is html");function e_(i,e){e?i.hasAttribute("selected")||i.setAttribute("selected",""):i.removeAttribute("selected")}function Oe(i,e,t,o){var r=i_(i);if(nt&&(r[e]=i.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&i.nodeName==="LINK")){o||U1(i,e,t!=null?t:"");return}r[e]!==(r[e]=t)&&(e==="loading"&&(i[zg]=t),t==null?i.removeAttribute(e):typeof t!="string"&&o_(i).includes(e)?i[e]=t:i.setAttribute(e,t))}function t_(i,e,t,o,r=!1){var A;var a=i_(i),l=a[Zh],d=!a[Jh];let s=nt&&l;s&&bo(!1);var u=e||{},m=i.tagName==="OPTION";for(var p in e)p in t||(t[p]=null);t.class?t.class=Wd(t.class):(o||t[Hl])&&(t.class=null),t[Fl]&&((A=t.style)!=null||(t.style=null));var v=o_(i);for(let P in t){let E=t[P];if(m&&P==="value"&&E==null){i.value=i.__value="",u[P]=E;continue}if(P==="class"){var b=i.namespaceURI==="http://www.w3.org/1999/xhtml";ne(i,b,E,o,e==null?void 0:e[Hl],t[Hl]),u[P]=E,u[Hl]=t[Hl];continue}if(P==="style"){Ye(i,E,e==null?void 0:e[Fl],t[Fl]),u[P]=E,u[Fl]=t[Fl];continue}var y=u[P];if(!(E===y&&!(E===void 0&&i.hasAttribute(P)))){u[P]=E;var _=P[0]+P[1];if(_!=="$$")if(_==="on"){let K={},F="$$"+P,z=P.slice(2);var x=Lh(z);if(Ah(z)&&(z=z.slice(0,-7),K.capture=!0),!x&&y){if(E!=null)continue;i.removeEventListener(z,u[F],K),u[F]=null}if(E!=null)if(x)i[`__${z}`]=E,tt([z]);else{let X=function(se){u[P].call(this,se)};var R=X;u[F]=Pf(z,i,X,K)}else x&&(i[`__${z}`]=void 0)}else if(P==="style")Oe(i,P,E);else if(P==="autofocus")If(i,!!E);else if(!l&&(P==="__value"||P==="value"&&E!=null))i.value=i.__value=E;else if(P==="selected"&&m)e_(i,E);else{var I=P;d||(I=Mh(I));var T=I==="defaultValue"||I==="defaultChecked";if(E==null&&!l&&!T)if(a[P]=null,I==="value"||I==="checked"){let K=i,F=e===void 0;if(I==="value"){let z=K.defaultValue;K.removeAttribute(I),K.defaultValue=z,K.value=K.__value=F?z:null}else{let z=K.defaultChecked;K.removeAttribute(I),K.defaultChecked=z,K.checked=F?z:!1}}else i.removeAttribute(P);else T||v.includes(I)&&(l||typeof E!="string")?i[I]=E:typeof E!="function"&&Oe(i,I,E,r)}}}return s&&bo(!0),u}function so(i,e,t=[],o,r=!1,a=Zr){let l=t.map(a);var d=void 0,s={},u=i.nodeName==="SELECT",m=!1;if(to(()=>{var v=e(...l.map(n)),b=t_(i,d,v,o,r);m&&u&&"value"in v&&Kd(i,v.value,!1);for(let _ of Object.getOwnPropertySymbols(s))v[_]||Ji(s[_]);for(let _ of Object.getOwnPropertySymbols(v)){var y=v[_];_.description===tf&&(!d||y!==d[_])&&(s[_]&&Ji(s[_]),s[_]=Fi(()=>Os(i,()=>y))),b[_]=y}d=b}),u){var p=i;Oo(()=>{Kd(p,d.value),Bf(p)})}m=!0}function i_(i){var e;return(e=i.__attributes)!=null?e:i.__attributes={[Zh]:i.nodeName.includes("-"),[Jh]:i.namespaceURI===Og}}var jh=new Map;function o_(i){var e=jh.get(i.nodeName);if(e)return e;jh.set(i.nodeName,e=[]);for(var t,o=i,r=Element.prototype;r!==o;){t=uu(o);for(var a in t)t[a].set&&e.push(a);o=ka(o)}return e}function U1(i,e,t){var o;Me&&(e==="srcset"&&z1(i,t)||Hf((o=i.getAttribute(e))!=null?o:"",t)||lh(e,i.outerHTML.replace(i.innerHTML,i.innerHTML&&"..."),String(t)))}function Hf(i,e){return i===e?!0:new URL(i,document.baseURI).href===new URL(e,document.baseURI).href}function Xh(i){return i.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function z1(i,e){var t=Xh(i.srcset),o=Xh(e);return o.length===t.length&&o.every(([r,a],l)=>a===t[l][1]&&(Hf(t[l][0],r)||Hf(r,t[l][0])))}var W1=cu?()=>performance.now():()=>Date.now(),is={tick:i=>(cu?requestAnimationFrame:ht)(i),now:()=>W1(),tasks:new Set};function n_(){let i=is.now();is.tasks.forEach(e=>{e.c(i)||(is.tasks.delete(e),e.f())}),is.tasks.size!==0&&is.tick(n_)}function r_(i){let e;return is.tasks.size===0&&is.tick(n_),{promise:new Promise(t=>{is.tasks.add(e={c:i,f:t})}),abort(){is.tasks.delete(e)}}}function Vu(i,e){Hd(()=>{i.dispatchEvent(new CustomEvent(e))})}function G1(i){if(i==="float")return"cssFloat";if(i==="offset")return"cssOffset";if(i.startsWith("--"))return i;let e=i.split("-");return e.length===1?e[0]:e[0]+e.slice(1).map(t=>t[0].toUpperCase()+t.slice(1)).join("")}function s_(i){let e={},t=i.split(";");for(let o of t){let[r,a]=o.split(":");if(!r||a===void 0)break;let l=G1(r.trim());e[l]=a.trim()}return e}var Y1=i=>i;function Ns(i,e,t,o){var R;var r=(i&1)!==0,a=(i&2)!==0,l=r&&a,d=(i&4)!==0,s=l?"both":r?"in":"out",u,m=e.inert,p=e.style.overflow,v,b;function y(){var E;var A=Bt,P=$t;Zi(null),_o(null);try{return u!=null?u:u=t()(e,(E=o==null?void 0:o())!=null?E:{},{direction:s})}finally{Zi(A),_o(P)}}var _={is_global:d,in(){var A;if(e.inert=m,!r){b==null||b.abort(),(A=b==null?void 0:b.reset)==null||A.call(b);return}a||v==null||v.abort(),Vu(e,"introstart"),v=Ff(e,y(),b,1,()=>{Vu(e,"introend"),v==null||v.abort(),v=u=void 0,e.style.overflow=p})},out(A){if(!a){A==null||A(),u=void 0;return}e.inert=!0,Vu(e,"outrostart"),b=Ff(e,y(),v,0,()=>{Vu(e,"outroend"),A==null||A()})},stop:()=>{v==null||v.abort(),b==null||b.abort()}},x=$t;if(((R=x.transitions)!=null?R:x.transitions=[]).push(_),r&&Fd){var I=d;if(!I){for(var T=x.parent;T&&(T.f&65536)!==0;)for(;(T=T.parent)&&(T.f&16)===0;);I=!T||(T.f&32768)!==0}I&&Oo(()=>{At(()=>_.in())})}}function Ff(i,e,t,o,r){var a=o===1;if(ta(e)){var l,d=!1;return Cn(()=>{if(!d){var x=e({direction:a?"in":"out"});l=Ff(i,x,t,o,r)}}),{abort:()=>{d=!0,l==null||l.abort()},deactivate:()=>l.deactivate(),reset:()=>l.reset(),t:()=>l.t()}}if(t==null||t.deactivate(),!(e!=null&&e.duration))return r(),{abort:ht,deactivate:ht,reset:ht,t:()=>o};let{delay:s=0,css:u,tick:m,easing:p=Y1}=e;var v=[];if(a&&t===void 0&&(m&&m(0,1),u)){var b=s_(u(0,1));v.push(b,b)}var y=()=>1-o,_=i.animate(v,{duration:s,fill:"forwards"});return _.onfinish=()=>{var z;_.cancel();var x=(z=t==null?void 0:t.t())!=null?z:1-o;t==null||t.abort();var I=o-x,T=e.duration*Math.abs(I),R=[];if(T>0){var A=!1;if(u)for(var P=Math.ceil(T/16.666666666666668),E=0;E<=P;E+=1){var K=x+I*p(E/P),F=s_(u(K,1-K));R.push(F),A||(A=F.overflow==="hidden")}A&&(i.style.overflow="hidden"),y=()=>{var X=_.currentTime;return x+I*p(X/T)},m&&r_(()=>{if(_.playState!=="running")return!1;var X=y();return m(X,1-X),!0})}_=i.animate(R,{duration:T,fill:"forwards"}),_.onfinish=()=>{y=()=>o,m==null||m(o,1-o),r()}},{abort:()=>{_&&(_.cancel(),_.effect=null,_.onfinish=ht)},deactivate:()=>{r=ht},reset:()=>{o===0&&(m==null||m(1,0))},t:()=>y()}}function Uf(i,e,t){var o=Go(i,e);o&&o.set&&(i[e]=t,Ro(()=>{i[e]=null}))}var sa,Ul,qd,Ou,a_,Nu=class Nu{constructor(e){Zs(this,Ou);Zs(this,sa,new WeakMap);Zs(this,Ul);Zs(this,qd);yl(this,qd,e)}observe(e,t){var o=Hi(this,sa).get(e)||new Set;return o.add(t),Hi(this,sa).set(e,o),Vg(this,Ou,a_).call(this).observe(e,Hi(this,qd)),()=>{var r=Hi(this,sa).get(e);r.delete(t),r.size===0&&(Hi(this,sa).delete(e),Hi(this,Ul).unobserve(e))}}};sa=new WeakMap,Ul=new WeakMap,qd=new WeakMap,Ou=new WeakSet,a_=function(){var e;return(e=Hi(this,Ul))!=null?e:yl(this,Ul,new ResizeObserver(t=>{for(var o of t){Nu.entries.set(o.target,o);for(var r of Hi(this,sa).get(o.target)||[])r(o)}}))},rr(Nu,"entries",new WeakMap);var zf=Nu;var j1=new zf({box:"border-box"});function In(i,e,t){var o=j1.observe(i,()=>t(i[e]));Oo(()=>(At(()=>t(i[e])),o))}function l_(i,e){return i===e||(i==null?void 0:i[Yo])===e}function ot(i={},e,t,o){return Oo(()=>{var r,a;return Jo(()=>{r=a,a=(o==null?void 0:o())||[],At(()=>{i!==t(...a)&&(e(i,...a),r&&l_(t(...r),i)&&e(null,...r))})}),()=>{Cn(()=>{a&&l_(t(...a),i)&&e(null,...a)})}}),i}function en(i=!1){let e=zt,t=e.l.u;if(!t)return;let o=()=>ku(e.s);if(i){let r=0,a={},l=Zr(()=>{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)}t.b.length&&Vd(()=>{d_(e,o),ia(t.b)}),Be(()=>{let r=At(()=>t.m.map(Ug));return()=>{for(let a of r)typeof a=="function"&&a()}}),t.a.length&&Be(()=>{d_(e,o),ia(t.a)})}function d_(i,e){if(i.l.s)for(let t of i.l.s)n(t);e()}function Qd(i,e,t){if(i==null)return e(void 0),t&&t(void 0),ht;let o=At(()=>i.subscribe(e,t));return o.unsubscribe?()=>o.unsubscribe():o}var zl=[];function Dr(i,e){return{subscribe:ae(i,e).subscribe}}function ae(i,e=ht){let t=null,o=new Set;function r(d){if(Sl(i,d)&&(i=d,t)){let s=!zl.length;for(let u of o)u[1](),zl.push(u,i);if(s){for(let u=0;u<zl.length;u+=2)zl[u][0](zl[u+1]);zl.length=0}}}function a(d){r(d(i))}function l(d,s=ht){let u=[d,s];return o.add(u),o.size===1&&(t=e(r,a)||ht),d(i),()=>{o.delete(u),o.size===0&&t&&(t(),t=null)}}return{set:r,update:a,subscribe:l}}function vi(i,e,t){let o=!Array.isArray(i),r=o?[i]:i;if(!r.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let a=e.length<2;return Dr(t,(l,d)=>{let s=!1,u=[],m=0,p=ht,v=()=>{if(m)return;p();let y=e(o?u[0]:u,l,d);a?l(y):p=typeof y=="function"?y:ht},b=r.map((y,_)=>Qd(y,x=>{u[_]=x,m&=~(1<<_),s&&v()},()=>{m|=1<<_}));return s=!0,v(),function(){ia(b),p(),s=!1}})}function $e(i){let e;return Qd(i,t=>e=t)(),e}var Du=!1,Wf=Symbol();function w(i,e,t){var a;let o=(a=t[e])!=null?a:t[e]={store:null,source:bs(void 0),unsubscribe:ht};if(o.store!==i&&!(Wf in t))if(o.unsubscribe(),o.store=i!=null?i:null,i==null)o.source.v=void 0,o.unsubscribe=ht;else{var r=!0;o.unsubscribe=Qd(i,l=>{r?o.source.v=l:O(o.source,l)}),r=!1}return i&&Wf in t?$e(i):n(o.source)}function De(){let i={};function e(){Ro(()=>{for(var t in i)i[t].unsubscribe();ho(i,Wf,{enumerable:!1,value:!0})})}return[i,e]}function Kf(i){var e=Du;try{return Du=!1,[i(),Du]}finally{Du=e}}var oy={get(i,e){if(!i.exclude.includes(e))return i.props[e]},set(i,e){return Me&&Jg(`${i.name}.${String(e)}`),!1},getOwnPropertyDescriptor(i,e){if(!i.exclude.includes(e)&&e in i.props)return{enumerable:!0,configurable:!0,value:i.props[e]}},has(i,e){return i.exclude.includes(e)?!1:e in i.props},ownKeys(i){return Reflect.ownKeys(i.props).filter(e=>!i.exclude.includes(e))}};function En(i,e,t){return new Proxy(Me?{props:i,exclude:e,name:t,other:{},to_proxy:[]}:{props:i,exclude:e},oy)}var ny={get(i,e){let t=i.props.length;for(;t--;){let o=i.props[t];if(ta(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o)return o[e]}},set(i,e,t){let o=i.props.length;for(;o--;){let r=i.props[o];ta(r)&&(r=r());let a=Go(r,e);if(a&&a.set)return a.set(t),!0}return!1},getOwnPropertyDescriptor(i,e){let t=i.props.length;for(;t--;){let o=i.props[t];if(ta(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let r=Go(o,e);return r&&!r.configurable&&(r.configurable=!0),r}}},has(i,e){if(e===Yo||e===xl)return!1;for(let t of i.props)if(ta(t)&&(t=t()),t!=null&&e in t)return!0;return!1},ownKeys(i){let e=[];for(let t of i.props)if(ta(t)&&(t=t()),!!t){for(let o in t)e.includes(o)||e.push(o);for(let o of Object.getOwnPropertySymbols(t))e.includes(o)||e.push(o)}return e}};function os(...i){return new Proxy({props:i},ny)}function c_(i){var e,t;return(t=(e=i.ctx)==null?void 0:e.d)!=null?t:!1}function h(i,e,t,o){var K,F;var r=(t&1)!==0,a=!gs||(t&2)!==0,l=(t&8)!==0,d=(t&16)!==0,s=!1,u;l?[u,s]=Kf(()=>i[e]):u=i[e];var m=Yo in i||xl in i,p=l&&((F=(K=Go(i,e))==null?void 0:K.set)!=null?F:m&&e in i&&(z=>i[e]=z))||void 0,v=o,b=!0,y=!1,_=()=>(y=!0,b&&(b=!1,d?v=At(o):v=o),v);u===void 0&&o!==void 0&&(p&&a&&Zg(e),u=_(),p&&p(u));var x;if(a)x=()=>{var z=i[e];return z===void 0?_():(b=!0,y=!1,z)};else{var I=(r?Zr:cr)(()=>i[e]);I.f|=131072,x=()=>{var z=n(I);return z!==void 0&&(v=void 0),z===void 0?v:z}}if((t&4)===0&&a)return x;if(p){var T=i.$$legacy;return function(z,X){return arguments.length>0?((!a||!X||T||s)&&p(X?x():z),z):x()}}var R=!1,A=!1,P=bs(u),E=Zr(()=>{var z=x(),X=n(P);return R?(R=!1,A=!0,X):(A=!1,P.v=z)});return l&&n(E),r||(E.equals=Cl),function(z,X){if(Eu!==null&&(R=A,x(),n(P)),arguments.length>0){let se=X?n(E):a&&l?ui(z):z;if(!E.equals(se)){if(R=!0,O(P,se),y&&v!==void 0&&(v=se),c_(E))return z;At(()=>n(E))}return z}return c_(E)?E.v:n(E)}}var ry;typeof HTMLElement=="function"&&(ry=class extends HTMLElement{constructor(e,t,o){super();rr(this,"$$ctor");rr(this,"$$s");rr(this,"$$c");rr(this,"$$cn",!1);rr(this,"$$d",{});rr(this,"$$r",!1);rr(this,"$$p_d",{});rr(this,"$$l",{});rr(this,"$$l_u",new Map);rr(this,"$$me");this.$$ctor=e,this.$$s=t,o&&this.attachShadow({mode:"open"})}addEventListener(e,t,o){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,o)}removeEventListener(e,t,o){if(super.removeEventListener(e,t,o),this.$$c){let r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}connectedCallback(){return gt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(a){return l=>{let d=document.createElement("slot");a!=="default"&&(d.name=a),$(l,d)}};var e=t;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let o={},r=sy(this);for(let a of this.$$s)a in r&&(a==="default"&&!this.$$d.children?(this.$$d.children=t(a),o.default=!0):o[a]=t(a));for(let a of this.attributes){let l=this.$$g_p(a.name);l in this.$$d||(this.$$d[l]=qf(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=Uh({component:this.$$ctor,target:this.shadowRoot||this,props:Gt(Le({},this.$$d),{$$slots:o,$$host:this})}),this.$$me=Su(()=>{Jo(()=>{var a;this.$$r=!0;for(let l of of(this.$$c)){if(!((a=this.$$p_d[l])!=null&&a.reflect))continue;this.$$d[l]=this.$$c[l];let d=qf(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,t,o){var r;this.$$r||(e=this.$$g_p(e),this.$$d[e]=qf(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 of(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function qf(i,e,t,o){var a;let r=(a=t[i])==null?void 0:a.type;if(e=r==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!t[i])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 sy(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}var u_="5";var p_,f_,m_;typeof window!="undefined"&&((m_=(f_=(p_=window.__svelte)!=null?p_:window.__svelte={}).v)!=null?m_:f_.v=new Set).add(u_);var dd=require("@vkontakte/videoplayer-core/es2015"),RJ=require("@vkontakte/videoplayer-core/es2015"),ml=require("@vkontakte/videoplayer-shared/es2015"),T$=require("@vkontakte/videoplayer-statistics/es2015");var za=require("@vkontakte/videoplayer-shared/es2015");var ay={isMobile:void 0,disableInvisibleComponentsTimeout:500,debugLog:!1,devNullLog:!1,defaultLanguage:za.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:za.VideoQuality.Q_480P,highQualityLimit:za.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,apptracer:{enabled:!1,sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},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},disablePiPResizeHandling:!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:[]},v_=i=>(0,za.fillWithDefault)(i,ay),g_=i=>El("ui-config",i),Nt=()=>Il("ui-config");var Gd="vk_player_debug_panel_opened";var h_="videoplayer",__="videoplayer";var ys={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},b_=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),$_=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),y_=new Set(["ShiftRight","ShiftLeft"]);var x_=["TIMELINE"],Yd=[...x_,"GRAPH_BUTTON"],Qf=[...x_,"PLAY_BUTTON"],jd=[...Yd,"PLAY_BUTTON"];var ns=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(ns||{}),Xd={xs:0,s:1,m:2,l:3,xl:4};var Jd=require("@vkontakte/videoplayer-shared/es2015"),w_=require("@vkontakte/videoplayer-core/es2015"),S_=require("@vkontakte/videoplayer-statistics/es2015");var Zd="prod",aa="1.1.84";var Ka=(i,e,t)=>{let o=document.createElement("a");o.href=i,o.download=`${e}.${t}`,o.style.display="none",o.click()};var C_=Symbol("storeContext"),T_=Symbol("microStoresContext"),I_=(i,e)=>{El(C_,i),El(T_,e),Zd==="dev"&&(window.app={store:i,microStores:e})},ye=()=>{let i=Il(C_);return(0,Jd.assertNonNullable)(i,"Store context is empty!"),i},To=()=>{let i=Il(T_);return(0,Jd.assertNonNullable)(i,"MicroStores context is empty!"),i},li=(i,e)=>Hu(i,i.getValue(),e),Hu=(i,e,t)=>Dr(e,o=>{let r=i.subscribe(a=>{o(a),t==null||t(a)});return()=>r.unsubscribe()}),E_=(i,e,t,o,r=["meta config not provided"])=>{var F,z,X,se,Y,re,Z,Ce,fe;let a=i.info,{width:l,height:d}=$e(t.ui.playerSize),s=(z=(F=a.throughputEstimation$.getValue())==null?void 0:F.toFixed(0))!=null?z:0,u=(se=(X=a.rttEstimation$.getValue())==null?void 0:X.toFixed(0))!=null?se:0,m=a.isAutoQualityEnabled$.getValue()?"auto":"manual",p=`${aa} (core: ${w_.VERSION}, stat: ${S_.VERSION}, shared: ${Jd.VERSION})`,v=$e(t.state.errorLog$),b=v.length?`
|
|
45
|
-
`+v.map((
|
|
46
|
-
`,
|
|
47
|
-
`,
|
|
48
|
-
`;return
|
|
49
|
-
`):void 0,y=
|
|
50
|
-
`)},P_=(i,e,t)=>{var F,z,X,se;let o=i.info,{width:r,height:a}=$e(t.ui.playerSize),l={version:aa,viewport:`${r}x${a}`,volume:Math.round($e(t.state.volume$)*100)};l.id=t.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(t.state.positionExact$),0),l.nativeBuffer=Math.max(p.end-$e(t.state.positionExact$),0))),l.position=$e(t.state.positionExact$);let y=o.throughputEstimation$.getValue();y&&(l.speed=y);let _=o.videoBitrate$.getValue();_&&(l.bitrate=_);let x=o.liveLatency$.getValue();x&&(l.liveLatency=x);let I=o.currentVideoSegmentLength$.getValue();I&&(l.currentVideoSegmentLength=I);let T=o.currentAudioSegmentLength$.getValue();T&&(l.currentAudioSegmentLength=T);let R=$e(t.vsid);typeof R=="string"&&(l.vsid=R);let A=(F=i.info.currentVideoStream$.getValue())==null?void 0:F.codec;A&&(l.videoCodec=A);let P=(z=i.info.currentAudioStream$.getValue())==null?void 0:z.codec;P&&(l.audioCodec=P),((X=i.info.currentVideoStream$.getValue())==null?void 0:X.hdr)&&(l.hdr=!0);let K=(se=i.info.currentAudioStream$.getValue())==null?void 0:se.language;return K&&(l.audioLanguage=K),l},k_=(i,e)=>Ka(i,e,"mp4"),A_=i=>!i.type,L_=i=>!!i.type,M_=()=>{let e=[],t=0;return{add:(o,r)=>{e[t]=[o,r],t=(t+1)%10},find:o=>e.find(([r])=>r===o)}},Bu=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}download(e){return gt(this,null,function*(){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let t=yield fetch(e,{signal:this.destroyController.signal});if(t.ok)return yield t.text();throw t}finally{this.pendingDownloads.delete(e)}})}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};var gi=require("@vkontakte/videoplayer-shared/es2015"),sV=require("@vkontakte/videoplayer-core/es2015");var ly="vk_player_",V_="vk_player_prefer_traffic_saving_enabled",R_="vk_player_preferred_volume",O_="vk_player_prefer_volume_mute",Xf="vk_player_preferred_quality",Gf="vk_player_preferred_default_quality_settings",Yf="vk_player_preferred_quality_settings_by_video",N_="vk_player_preferred_stream_language",D_="vk_player_preferred_rate",B_="vk_player_preferred_autoplay_next",jf="vk_player_preferred_subtitles_language",H_="vk_player_user_video_prefs",F_=`${ly}preview_track_close_tooltip`,U_=i=>i>1?1:i<0?0:i,Zf=i=>gi.safeStorage.set(R_,U_(i).toString(10)),Fu=()=>{let i=gi.safeStorage.get(R_);return(0,gi.isNullable)(i)?void 0:U_(parseFloat(i))},Jf=(i,e)=>gi.safeStorage.set(Xf,JSON.stringify({videoId:i,value:e})),Uu=()=>gi.safeStorage.remove(Xf),em=i=>{let e=gi.safeStorage.get(Xf);if((0,gi.isNullable)(e))return;let{videoId:t,value:o}=JSON.parse(e);if(i!==t){Uu();return}return o},z_=(i,e)=>{e?gi.safeStorage.set(i,"true"):gi.safeStorage.remove(i)},tm=i=>gi.safeStorage.get(i)==="true",im=i=>z_(O_,i),W_=()=>tm(O_),ec=i=>z_(V_,i),om=()=>tm(V_),K_=()=>gi.safeStorage.get(N_),nm=i=>gi.safeStorage.set(N_,i),rm=()=>gi.safeStorage.get(jf),sm=i=>{i?gi.safeStorage.set(jf,i):gi.safeStorage.remove(jf)},q_=i=>gi.safeStorage.set(D_,JSON.stringify({rate:i})),Q_=()=>{let i=gi.safeStorage.get(D_);if((0,gi.isNullable)(i))return;let{rate:e}=JSON.parse(i);return e},G_=i=>{gi.safeStorage.set(B_,String(i))},Y_=()=>tm(B_),dy=()=>{let i=m=>{gi.safeStorage.set(Gf,JSON.stringify(m))},e=()=>{try{let m=gi.safeStorage.get(Gf);return m?JSON.parse(m):null}catch(m){return null}},t=()=>{try{let m=gi.safeStorage.get(Yf);return m?JSON.parse(m):null}catch(m){return null}},o=m=>{gi.safeStorage.set(Yf,JSON.stringify(m))},r=m=>{u(m);let p=m?t():null;if(p&&(p==null?void 0:p.videoId)===m)return Gt(Le({},p),{appliesTo:"to-video"});p&&a();let v=e();return v?Gt(Le({},v),{appliesTo:"as-default"}):(i({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},a=()=>{gi.safeStorage.remove(Yf)},l=()=>{gi.safeStorage.remove(Gf)},d=(m,p="as-default")=>{m.type==="exact_quality"||p==="to-video"?o(m):i(m)},s=m=>{let p=r(m);if(p){switch(p.type){case"traffic_saving":ec(!0);break;case"exact_quality":Jf(m,p.quality)}a(),l()}},u=m=>{let p=em(m);if(p){o({type:"exact_quality",videoId:m,quality:p});return}om()&&i({type:"traffic_saving",videoId:m}),ec(!1),Uu()};return{getPreferredQualitySettings:r,migrateSettingsToLegacyWay:s,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:i,removePreferredQualitySettingsByVideo:a,getPreferredDefaultQualitySettings:e,getPreferredSubtitlesLanguage:rm,savePreferredSubtitlesLanguage:sm}},{getPreferredQualitySettings:j_,migrateSettingsToLegacyWay:X_,savePreferredQualitySettings:zu,savePreferredDefaultQualitySettings:aV,removePreferredQualitySettingsByVideo:lV,getPreferredDefaultQualitySettings:Wu}=dy(),cy=3,uy=3,Z_=()=>{let i=gi.safeStorage.get(H_);if(i)try{return JSON.parse(i)}catch(e){return null}return null},Ku=(i,e)=>{var r,a;let t=Z_();return(a=(r=t==null?void 0:t[i])==null?void 0:r[e])!=null?a:null},am=(i,e,t)=>{var l,d,s;let o=(l=Z_())!=null?l:{},r=(s=(d=o[i])==null?void 0:d[e])!=null?s:{};Object.assign(r,t,{updatedTs:Date.now()}),i in o||(o[i]={}),o[i][e]=r;let a=py(o);gi.safeStorage.set(H_,JSON.stringify(a))};function py(i){let e=Object.entries(i).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(uy),e.reduce((o,[r])=>(o[r]=fy(i[r]),o),{})}function fy(i){let e=Object.entries(i);return e.sort(([,t],[,o])=>t.updatedTs>o.updatedTs?-1:1),e.splice(cy),Object.fromEntries(e)}function J_(){gi.safeStorage.set(F_,JSON.stringify(!0))}function eb(){let i=gi.safeStorage.get(F_);try{return i?JSON.parse(i):!1}catch(e){return!1}}var ag=require("@vkontakte/videoplayer-core/es2015");nh();var la="var(--btn-color, #fff)";var my=Ee('<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),vy=Ee('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill-rule="evenodd" clip-rule="evenodd"><!></svg>');function et(i,e){var m;B(e,!0);let t=h(e,"width",19,()=>"24"),o=h(e,"height",19,()=>"24"),r=h(e,"fill",3,la),a=(m=e.viewBox)!=null?m:`0 0 ${t()} ${o()}`;var l=vy(),d=C(l);{var s=p=>{var v=my(),b=le(v),y=C(b);ai(y,()=>e.children),S(b),ri(),$(p,v)},u=p=>{var v=Ve(),b=le(v);ai(b,()=>e.children),$(p,v)};V(d,p=>{e.shadow?p(s):p(u,!1)})}S(l),N(()=>{Oe(l,"aria-label",e.ariaLabel),Oe(l,"aria-hidden",!e.ariaLabel),Oe(l,"width",t()),Oe(l,"height",o()),Oe(l,"viewBox",a),Oe(l,"fill",r()),Ye(l,e.style),Oe(l,"data-testid",e.testId)}),$(i,l),H()}var Wl=require("@vkontakte/videoplayer-shared/es2015");var gy={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:`Видео грузится слишком медленно,
|
|
43
|
+
`)})}}var Ba=!1,Dl=null,Fa=!1,Vs=!1;function ff(t){Vs=t}var Bd=[],Fd=[],Dt=null,yr=!1;function qi(t){Dt=t}var wt=null;function vo(t){wt=t}var jo=null;function _u(t){Dt!==null&&Dt.f&2097152&&(jo===null?jo=[Dt,[t]]:jo[1].push(t))}var Rn=null,xr=0,$r=null;function ah(t){$r=t}var Th=1,Iu=0,Rs=!1,Eu=null;function Ed(){return++Th}function Ra(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&&wt!==null&&!Rs,s=i.length;if(l||d){var u=t,f=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&&f!==null&&(f.f&256)===0&&(u.f^=256)}for(r=0;r<s;r++)if(a=i[r],Ra(a)&&pf(a),a.wv>t.wv)return!0}(!o||wt!==null&&!Rs)&&Ln(t,1024)}return!1}function Ih(t,e,i=!0){var o=t.reactions;if(o!==null)for(var r=0;r<o.length;r++){var a=o[r];jo!=null&&jo[1].includes(t)&&jo[0]===Dt||((a.f&2)!==0?Ih(a,e,!1):e===a&&(i?Ln(a,2048):(a.f&1024)!==0&&Ln(a,4096),kd(a)))}}function hu(t){var b,y;var e=Rn,i=xr,o=$r,r=Dt,a=Rs,l=jo,d=Ht,s=yr,u=t.f;Rn=null,xr=0,$r=null,Rs=(u&256)!==0&&(yr||!Fa||Dt===null),Dt=(u&96)===0?t:null,jo=null,Cd(t.ctx),yr=!1,Iu++,t.f|=2097152;try{var f=(0,t.fn)(),p=t.deps;if(Rn!==null){var v;if(Dd(t,xr),p!==null&&xr>0)for(p.length=xr+Rn.length,v=0;v<Rn.length;v++)p[xr+v]=Rn[v];else t.deps=p=Rn;if(!Rs||(u&2)!==0&&t.reactions!==null)for(v=xr;v<p.length;v++)((y=(b=p[v]).reactions)!=null?y:b.reactions=[]).push(t)}else p!==null&&xr<p.length&&(Dd(t,xr),p.length=xr);if(xs()&&$r!==null&&!yr&&p!==null&&(t.f&6146)===0)for(v=0;v<$r.length;v++)Ih($r[v],t);return r!==null&&r!==t&&(Iu++,$r!==null&&(o===null?o=$r:o.push(...$r))),f}catch(_){wh(_)}finally{Rn=e,xr=i,$r=o,Dt=r,Rs=a,jo=l,Cd(d),yr=s,t.f^=2097152}}function n1(t,e){let i=e.reactions;if(i!==null){var o=Fg.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&&(Rn===null||!Rn.includes(e))&&(Ln(e,4096),(e.f&768)===0&&(e.f^=512),gu(e),Dd(e,0))}function Dd(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)n1(t,i[o])}function Ml(t){var e=t.f;if((e&16384)===0){Ln(t,1024);var i=wt,o=Fa;if(wt=t,Fa=!0,Me){var r=hr;Td(t.component_function)}try{(e&16)!==0?_h(t):hf(t),gf(t);var a=hu(t);if(t.teardown=typeof a=="function"?a:null,t.wv=Th,Me&&ys&&(t.f&2048)!==0&&t.deps!==null)for(var l of t.deps)l.set_during_effect&&(l.wv=Ed(),l.set_during_effect=!1);Me&&Fd.push(t)}finally{Fa=o,wt=i,Me&&Td(r)}}}function Sh(){console.error("Last ten effects were: ",Fd.slice(-10).map(t=>t.fn)),Fd=[]}function r1(){try{Yg()}catch(t){if(Me&&mo(t,"stack",{value:""}),Dl!==null)if(Me)try{Nd(t,Dl)}catch(e){throw Sh(),e}else Nd(t,Dl);else throw Me&&Sh(),t}}function wf(){var t=Fa;try{var e=0;for(Fa=!0;Bd.length>0;){e++>1e3&&r1();var i=Bd,o=i.length;Bd=[];for(var r=0;r<o;r++){var a=a1(i[r]);s1(a)}Al.clear()}}finally{Ba=!1,Fa=t,Dl=null,Me&&(Fd=[])}}function s1(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];(o.f&24576)===0&&Ra(o)&&(Ml(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?bf(o):o.fn=null))}}function kd(t){Ba||(Ba=!0,queueMicrotask(wf));for(var e=Dl=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}Bd.push(e)}function a1(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:Ra(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&&(Ba=!0,wf(),Ba=!0,e=t());;){if(yh(),Bd.length===0)return Ba=!1,Dl=null,Me&&(Fd=[]),e;Ba=!0,wf()}}function ho(){return yt(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&&!yr){if(!(jo!=null&&jo[1].includes(t))||jo[0]!==Dt){var o=Dt.deps;t.rv<Iu&&(t.rv=Iu,Rn===null&&o!==null&&o[xr]===t?xr++:Rn===null?Rn=[t]:(!Rs||!Rn.includes(t))&&Rn.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,Ra(r)&&pf(r)),Me&&ys&&!yr&&Sd!==null&&Dt!==null&&Sd.reaction===Dt)if(t.trace)t.trace();else{var l=Ms("TracedAt");if(l){var d=Sd.entries.get(t);d===void 0&&(d={traces:[]},Sd.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 Vs&&Al.has(t)?Al.get(t):t.v}function kt(t){var e=yr;try{return yr=!0,t()}finally{yr=e}}var l1=-7169;function Ln(t,e){t.f=t.f&l1|e}function ku(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Go in t)Pu(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Go 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=Aa(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 Sf(t,e){if(e){let i=document.body;t.autofocus=!0,Vn(()=>{document.activeElement===i&&t.focus()})}}function Hd(t){var e=Dt,i=wt;qi(null),vo(null);try{return t()}finally{qi(e),vo(i)}}var Cf=new Set,Au=new Set;function Ha(t){if(!rt)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 Tf(t,e,i,o={}){function r(a){if(o.capture||Nl.call(e,a),!a.cancelBubble)return Hd(()=>i==null?void 0:i.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Vn(()=>{e.addEventListener(t,r,o)}):e.addEventListener(t,r,o),r}function vt(t,e,i,o,r){var a={capture:o,passive:r},l=Tf(t,e,i,a);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&ko(()=>{e.removeEventListener(t,l,a)})}function Je(t){for(var e=0;e<t.length;e++)Cf.add(t[e]);for(var i of Au)i(t)}function Nl(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){mo(t,"currentTarget",{configurable:!0,get(){return a||i}});var f=Dt,p=wt;qi(null),vo(null);try{for(var v,b=[];a!==null;){var y=a.assignedSlot||a.parentNode||a.host||null;try{var _=a["__"+o];if(_!=null&&(!a.disabled||t.target===a))if(vr(_)){var[w,...I]=_;w.apply(a,[t,...I])}else _.call(a,t)}catch(R){v?b.push(R):v=R}if(t.cancelBubble||y===e||y===null)break;a=y}if(v){for(let R of b)queueMicrotask(()=>{throw R});throw v}}finally{t.__root=e,delete t.currentTarget,qi(f),vo(p)}}}var c1;function Eh(){c1=void 0}function Bl(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function Lo(t,e){var i=wt;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function L(t,e){var i=(e&1)!==0,o=(e&2)!==0,r,a=!t.startsWith("<!>");return()=>{if(rt)return Lo(St,null),St;r===void 0&&(r=Bl(a?t:"<!>"+t),i||(r=Ai(r)));var l=o||Ad?document.importNode(r,!0):r.cloneNode(!0);if(i){var d=Ai(l),s=l.lastChild;Lo(d,s)}else Lo(l,l);return l}}function f1(t,e,i="svg"){var o=!t.startsWith("<!>"),r=(e&1)!==0,a=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(rt)return Lo(St,null),St;if(!l){var d=Bl(a),s=Ai(d);if(r)for(l=document.createDocumentFragment();Ai(s);)l.appendChild(Ai(s));else l=Ai(s)}var u=l.cloneNode(!0);if(r){var f=Ai(u),p=u.lastChild;Lo(f,p)}else Lo(u,u);return u}}function ke(t,e){return f1(t,e,"svg")}function Ss(t=""){if(!rt){var e=Mn(t+"");return Lo(e,e),e}var i=St;return i.nodeType!==Sl&&(i.before(i=Mn()),Ti(i)),Lo(i,i),i}function Ve(){if(rt)return Lo(St,null),St;var t=document.createDocumentFragment(),e=document.createComment(""),i=Mn();return t.append(e,i),Lo(e,i),t}function $(t,e){if(rt){wt.nodes_end=St,Yi();return}t!==null&&t.before(e)}var m1=/\r/g;function kh(t){t=t.replace(m1,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function Ah(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var v1=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Lh(t){return v1.includes(t)}var g1=["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 h1={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 Mh(t){var e;return t=t.toLowerCase(),(e=h1[t])!=null?e:t}var LP=[...g1,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var _1=["touchstart","touchmove"];function Vh(t){return _1.includes(t)}var b1=["$state","$state.raw","$derived","$derived.by"],MP=[...b1,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var $1=["textarea","script","style","title"];function Rh(t){return $1.includes(t)}function Lu(t){return t==null?void 0:t.replace(/\//g,"/")}var Ud=!0;function Mu(t){Ud=t}function he(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 is(t,e){return Dh(t,e)}function Ef(t,e){var l;yu(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=rt,r=St;try{for(var a=Ai(i);a&&(a.nodeType!==gr||a.data!==na);)a=Xo(a);if(!a)throw bs;go(!0),Ti(a),Yi();let d=Dh(t,ti(Ye({},e),{anchor:a}));if(St===null||St.nodeType!==gr||St.data!==ka)throw la(),bs;return go(!1),d}catch(d){if(d===bs)return e.recover===!1&&jg(),yu(),Ld(i),go(!1),is(t,e);throw d}finally{go(o),Ti(r),Eh()}}var Fl=new Map;function Dh(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=Vh(b);e.addEventListener(b,Nl,{passive:y});var _=Fl.get(b);_===void 0?(document.addEventListener(b,Nl,{passive:y}),Fl.set(b,1)):Fl.set(b,_+1)}}};s(wd(Cf)),Au.add(s);var u=void 0,f=hh(()=>{var p=i!=null?i:e.appendChild(Mn());return Hi(()=>{if(a){B({});var v=Ht;v.c=a}r&&(o.$$events=r),rt&&Lo(p,null),Ud=l,u=t(p,o)||{},Ud=!0,rt&&(wt.nodes_end=St),a&&F()}),()=>{var y;for(var v of d){e.removeEventListener(v,Nl);var b=Fl.get(v);--b===0?(document.removeEventListener(v,Nl),Fl.delete(v)):Fl.set(v,b)}Au.delete(s),p!==i&&((y=p.parentNode)==null||y.removeChild(p))}});return If.set(u,f),u}var If=new WeakMap;function Ua(t,e){let i=If.get(t);return i?(If.delete(t),i(e)):(Me&&ch(),Promise.resolve())}function ii(t,e,...i){var o=t,r=xt,a;ji(()=>{r!==(r=e())&&(a&&(Gi(a),a=null),Me&&r==null&&Xg(),a=Hi(()=>r(o,...i)))},65536),rt&&(o=St)}if(Me){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;eh(e)},set:o=>{i=o}})}};S1=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var S1;function Mt(t){Ht===null&&Il("onMount"),$s&&Ht.l!==null?w1(Ht).m.push(t):Fe(()=>{let e=kt(t);if(typeof e=="function")return e})}function pn(t){Ht===null&&Il("onDestroy"),Mt(()=>()=>kt(t))}function w1(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}var Oh=new Map;function Nh(t,e){var i=Oh.get(t);i||(i=new Set,Oh.set(t,i)),i.add(e)}function M(t,e,[i,o]=[0,0]){rt&&i===0&&Yi();var r=t,a=null,l=null,d=no,s=i>0?65536:0,u=!1;let f=(v,b=!0)=>{u=!0,p(b,v)},p=(v,b)=>{if(d===(d=v))return;let y=!1;if(rt&&o!==-1){if(i===0){let w=$u(r);w===na?o=0:w===ra?o=1/0:(o=parseInt(w.substring(1)),o!==o&&(o=d?1/0:-1))}let _=o>i;!!d===_&&(r=Da(),Ti(r),go(!1),y=!0,o=-1)}d?(a?Os(a):b&&(a=Hi(()=>b(r))),l&&er(l,()=>{l=null})):(l?Os(l):b&&(l=Hi(()=>b(r,[i+1,o]))),a&&er(a,()=>{a=null})),y&&go(!0)};ji(()=>{u=!1,e(f),u||p(null,null)},s),rt&&(r=St)}function Ns(t,e,i){rt&&Yi();var o=t,r=no,a,l=xs()?Wg:Cl;ji(()=>{l(r,r=e())&&(a&&er(a),a=Hi(()=>i(o)))}),rt&&(o=St)}var ca=null;function Af(t){ca=t}function zd(t,e){return e}function I1(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;Ld(s),s.append(i),o.clear(),da(t,e[0].prev,e[a-1].next)}$f(r,()=>{for(var u=0;u<a;u++){var f=e[u];d||(o.delete(f.k),da(t,f.prev,f.next)),Gi(f.e,!d)}})}function wi(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=rt?Ti(Ai(u)):u.appendChild(Mn())}rt&&Yi();var f=null,p=!1,v=br(()=>{var b=i();return vr(b)?b:b==null?[]:wd(b)});ji(()=>{var b=n(v),y=b.length;if(p&&y===0)return;p=y===0;let _=!1;if(rt){var w=$u(l)===ra;w!==(y===0)&&(l=Da(),Ti(l),go(!1),_=!0)}if(rt){for(var I=null,T,R=0;R<y;R++){if(St.nodeType===gr&&St.data===ka){l=St,_=!0,go(!1);break}var A=b[R],P=o(A,R);T=Hh(St,d,I,null,A,P,R,r,e,i),d.items.set(P,T),I=T}y>0&&Ti(Da())}rt||E1(b,d,l,r,e,o,i),a!==null&&(y===0?f?Os(f):f=Hi(()=>a(l)):f!==null&&er(f,()=>{f=null})),_&&go(!0),n(v)}),rt&&(l=St)}function E1(t,e,i,o,r,a,l){var de,ae,pe,ee;var d=(r&8)!==0,s=(r&3)!==0,u=t.length,f=e.items,p=e.first,v=p,b,y=null,_,w=[],I=[],T,R,A,P;if(d)for(P=0;P<u;P+=1)T=t[P],R=a(T,P),A=f.get(R),A!==void 0&&((de=A.a)==null||de.measure(),(_!=null?_:_=new Set).add(A));for(P=0;P<u;P+=1){if(T=t[P],R=a(T,P),A=f.get(R),A===void 0){var E=v?v.e.nodes_start:i;y=Hh(E,e,y,y===null?e.first:y.next,T,R,P,o,r,l),f.set(R,y),w=[],I=[],v=y.next;continue}if(s&&P1(A,T,P,r),(A.e.f&8192)!==0&&(Os(A.e),d&&((ae=A.a)==null||ae.unfix(),(_!=null?_:_=new Set).delete(A))),A!==v){if(b!==void 0&&b.has(A)){if(w.length<I.length){var z=I[0],U;y=z.prev;var W=w[0],Y=w[w.length-1];for(U=0;U<w.length;U+=1)Bh(w[U],z,i);for(U=0;U<I.length;U+=1)b.delete(I[U]);da(e,W.prev,Y.next),da(e,y,W),da(e,Y,z),v=z,y=Y,P-=1,w=[],I=[]}else b.delete(A),Bh(A,v,i),da(e,A.prev,A.next),da(e,A,y===null?e.first:y.next),da(e,y,A),y=A;continue}for(w=[],I=[];v!==null&&v.k!==R;)(v.e.f&8192)===0&&(b!=null?b:b=new Set).add(v),I.push(v),v=v.next;if(v===null)continue;A=v}w.push(A),y=A,v=A.next}if(v!==null||b!==void 0){for(var te=b===void 0?[]:wd(b);v!==null;)(v.e.f&8192)===0&&te.push(v),v=v.next;var J=te.length;if(J>0){var oe=(r&4)!==0&&u===0?i:null;if(d){for(P=0;P<J;P+=1)(pe=te[P].a)==null||pe.measure();for(P=0;P<J;P+=1)(ee=te[P].a)==null||ee.fix()}I1(e,te,oe,f)}}d&&Vn(()=>{var $e;if(_!==void 0)for(A of _)($e=A.a)==null||$e.apply()}),wt.first=e.first&&e.first.e,wt.last=y&&y.e}function P1(t,e,i,o){(o&1)!==0&&Ll(t.v,e),(o&2)!==0?Ll(t.i,i):t.i=i}function Hh(t,e,i,o,r,a,l,d,s,u){var f=ca,p=(s&1)!==0,v=(s&16)===0,b=p?v?ws(r,!1,!1):Rr(r):r,y=(s&2)===0?l:Rr(l);Me&&p&&(b.trace=()=>{var w=typeof y=="number"?l:y.v;u()[w]});var _={i:y,v:b,k:a,a:null,e:null,prev:i,next:o};ca=_;try{return _.e=Hi(()=>d(t,b,y,u),rt),_.e.prev=i&&i.e,_.e.next=o&&o.e,i===null?e.first=_:(i.next=_,i.e.next=_.e),o!==null&&(o.prev=_,o.e.prev=_.e),_}finally{ca=f}}function Bh(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=Xo(a);r.before(a),a=l}}function da(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 k1(t,e,i){var a,l;if(!e||e===kh(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=hr)!=null&&l[jn]&&(o=`in ${hr[jn]}`),dh(Lu(o))}function Wd(t,e,i=!1,o=!1,r=!1){var a=t,l="";O(()=>{var b;var d=wt;if(l===(l=(b=e())!=null?b:"")){rt&&Yi();return}if(d.nodes_start!==null&&(_f(d.nodes_start,d.nodes_end),d.nodes_start=d.nodes_end=null),l!==""){if(rt){for(var s=St.data,u=Yi(),f=u;u!==null&&(u.nodeType!==gr||u.data!=="");)f=u,u=Xo(u);if(u===null)throw la(),bs;Me&&!r&&k1(u.parentNode,s,l),Lo(St,f),a=Ti(u);return}var p=l+"";i?p=`<svg>${p}</svg>`:o&&(p=`<math>${p}</math>`);var v=Bl(p);if((i||o)&&(v=Ai(v)),Lo(Ai(v),v.lastChild),i||o)for(;Ai(v);)a.before(Ai(v));else a.before(v)}})}function Ui(t,e,i){rt&&Yi();var o=t,r,a;ji(()=>{r!==(r=e())&&(a&&(er(a),a=null),r&&(a=Hi(()=>i(o,r))))},65536),rt&&(o=St)}function za(t,e,i,o,r,a){var y;let l=rt;rt&&Yi();var d=Me&&a&&((y=Ht)==null?void 0:y.function[jn]),s,u,f=null;rt&&St.nodeType===fu&&(f=St,Yi());var p=rt?St:t,v,b=ca;ji(()=>{let _=e()||null;var w=r?r():i||_==="svg"?du:null;if(_!==s){var I=ca;Af(b),v&&(_===null?er(v,()=>{v=null,u=null}):_===u?Os(v):(Gi(v),Mu(!1))),_&&_!==u&&(v=Hi(()=>{if(f=rt?f:w?document.createElementNS(w,_):document.createElement(_),Me&&a&&(f.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),Lo(f,f),o){rt&&Rh(_)&&f.append(document.createComment(""));var T=rt?Ai(f):f.appendChild(Mn());rt&&(T===null?go(!1):Ti(T)),o(f,T)}wt.nodes_end=f,p.before(f)})),s=_,s&&(u=s),Mu(!0),Af(I)}},65536),l&&(go(!0),Ti(p))}var Mf;function Uh(t){return Mf=t.target,new Lf(t)}var Bs,Dr,Lf=class{constructor(e){oa(this,Bs);oa(this,Dr);var a,l;var i=new Map,o=(d,s)=>{var u=ws(s,!1,!1);return i.set(d,u),u};let r=new Proxy(ti(Ye({},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 f;return D((f=i.get(s))!=null?f:o(s,u),u),Reflect.set(d,s,u)}});xl(this,Dr,(e.hydrate?Ef:is)(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,Bs,r.$$events);for(let d of Object.keys(Fi(this,Dr)))d==="$set"||d==="$destroy"||d==="$on"||mo(this,d,{get(){return Fi(this,Dr)[d]},set(s){Fi(this,Dr)[d]=s},enumerable:!0});Fi(this,Dr).$set=d=>{Object.assign(r,d)},Fi(this,Dr).$destroy=()=>{Ua(Fi(this,Dr))}}$set(e){Fi(this,Dr).$set(e)}$on(e,i){Fi(this,Bs)[e]=Fi(this,Bs)[e]||[];let o=(...r)=>i.call(this,...r);return Fi(this,Bs)[e].push(o),()=>{Fi(this,Bs)[e]=Fi(this,Bs)[e].filter(r=>r!==o)}}$destroy(){Fi(this,Dr).$destroy()}};Bs=new WeakMap,Dr=new WeakMap;function Q(t,e){Vn(()=>{var r,a,l;var i=t.getRootNode(),o=i.host?i:(l=(r=i.head)!=null?r:i.ownerDocument.head)!=null?l:(a=Mf)==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),Me&&Nh(e.hash,d)}})}function Fs(t,e){var i=void 0,o;ji(()=>{i!==(i=e())&&(o&&(Gi(o),o=null),i&&(o=Hi(()=>{Ao(()=>i(t))})))})}function zh(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=zh(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Wh(){for(var t,e,i=0,o="",r=arguments.length;i<r;i++)(t=arguments[i])&&(e=zh(t))&&(o&&(o+=" "),o+=e);return o}function Kd(t){return typeof t=="object"?Wh(t):t!=null?t:""}var Kh=[...`
|
|
44
|
+
\r\f \v\uFEFF`];function qh(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||Kh.includes(o[l-1]))&&(d===o.length||Kh.includes(o[d]))?o=(l===0?"":o.substring(0,l))+o.substring(d+1):l=d}}return o===""?null:o}function Qh(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 Vf(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Gh(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(Vf)),r&&s.push(...Object.keys(r).map(Vf));var u=0,f=-1;let _=t.length;for(var p=0;p<_;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===":"&&f===-1)f=p;else if(v===";"||p===_-1){if(f!==-1){var b=Vf(t.substring(u,f).trim());if(!s.includes(b)){v!==";"&&p++;var y=t.substring(u,p).trim();i+=" "+y+";"}}u=p+1,f=-1}}}}return o&&(i+=Qh(o)),r&&(i+=Qh(r,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function ie(t,e,i,o,r,a){var l=t.__className;if(rt||l!==i||l===void 0){var d=qh(i,o,a);(!rt||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 Rf(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 Ke(t,e,i,o){var r=t.__style;if(rt||r!==e){var a=Gh(e,o);(!rt||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(Rf(t,i==null?void 0:i[0],o[0]),Rf(t,i==null?void 0:i[1],o[1],"important")):Rf(t,i,o));return o}function Qd(t,e,i){if(t.multiple){if(e==null)return;if(!vr(e))return uh();for(var o of t.options)o.selected=e.includes(Yh(o));return}for(o of t.options){var r=Yh(o);if(af(r,e)){o.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function Df(t){var e=new MutationObserver(()=>{Qd(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),ko(()=>{e.disconnect()})}function Yh(t){return"__value"in t?t.__value:t.value}var Hl=Symbol("class"),Ul=Symbol("style"),Zh=Symbol("is custom element"),Jh=Symbol("is html");function e_(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function De(t,e,i,o){var r=i_(t);if(rt&&(r[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||N1(t,e,i!=null?i:"");return}r[e]!==(r[e]=i)&&(e==="loading"&&(t[zg]=i),i==null?t.removeAttribute(e):typeof i!="string"&&o_(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function t_(t,e,i,o,r=!1){var A;var a=i_(t),l=a[Zh],d=!a[Jh];let s=rt&&l;s&&go(!1);var u=e||{},f=t.tagName==="OPTION";for(var p in e)p in i||(i[p]=null);i.class?i.class=Kd(i.class):(o||i[Hl])&&(i.class=null),i[Ul]&&((A=i.style)!=null||(i.style=null));var v=o_(t);for(let P in i){let E=i[P];if(f&&P==="value"&&E==null){t.value=t.__value="",u[P]=E;continue}if(P==="class"){var b=t.namespaceURI==="http://www.w3.org/1999/xhtml";ie(t,b,E,o,e==null?void 0:e[Hl],i[Hl]),u[P]=E,u[Hl]=i[Hl];continue}if(P==="style"){Ke(t,E,e==null?void 0:e[Ul],i[Ul]),u[P]=E,u[Ul]=i[Ul];continue}var y=u[P];if(!(E===y&&!(E===void 0&&t.hasAttribute(P)))){u[P]=E;var _=P[0]+P[1];if(_!=="$$")if(_==="on"){let z={},U="$$"+P,W=P.slice(2);var w=Lh(W);if(Ah(W)&&(W=W.slice(0,-7),z.capture=!0),!w&&y){if(E!=null)continue;t.removeEventListener(W,u[U],z),u[U]=null}if(E!=null)if(w)t[`__${W}`]=E,Je([W]);else{let Y=function(te){u[P].call(this,te)};var R=Y;u[U]=Tf(W,t,Y,z)}else w&&(t[`__${W}`]=void 0)}else if(P==="style")De(t,P,E);else if(P==="autofocus")Sf(t,!!E);else if(!l&&(P==="__value"||P==="value"&&E!=null))t.value=t.__value=E;else if(P==="selected"&&f)e_(t,E);else{var I=P;d||(I=Mh(I));var T=I==="defaultValue"||I==="defaultChecked";if(E==null&&!l&&!T)if(a[P]=null,I==="value"||I==="checked"){let z=t,U=e===void 0;if(I==="value"){let W=z.defaultValue;z.removeAttribute(I),z.defaultValue=W,z.value=z.__value=U?W:null}else{let W=z.defaultChecked;z.removeAttribute(I),z.defaultChecked=W,z.checked=U?W:!1}}else t.removeAttribute(P);else T||v.includes(I)&&(l||typeof E!="string")?t[I]=E:typeof E!="function"&&De(t,I,E,r)}}}return s&&go(!0),u}function ro(t,e,i=[],o,r=!1,a=Jr){let l=i.map(a);var d=void 0,s={},u=t.nodeName==="SELECT",f=!1;if(ji(()=>{var v=e(...l.map(n)),b=t_(t,d,v,o,r);f&&u&&"value"in v&&Qd(t,v.value,!1);for(let _ of Object.getOwnPropertySymbols(s))v[_]||Gi(s[_]);for(let _ of Object.getOwnPropertySymbols(v)){var y=v[_];_.description===Zp&&(!d||y!==d[_])&&(s[_]&&Gi(s[_]),s[_]=Hi(()=>Fs(t,()=>y))),b[_]=y}d=b}),u){var p=t;Ao(()=>{Qd(p,d.value),Df(p)})}f=!0}function i_(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[Zh]:t.nodeName.includes("-"),[Jh]:t.namespaceURI===Dg}}var jh=new Map;function o_(t){var e=jh.get(t.nodeName);if(e)return e;jh.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=Aa(o)}return e}function N1(t,e,i){var o;Me&&(e==="srcset"&&B1(t,i)||Of((o=t.getAttribute(e))!=null?o:"",i)||lh(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function Of(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function Xh(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function B1(t,e){var i=Xh(t.srcset),o=Xh(e);return o.length===i.length&&o.every(([r,a],l)=>a===i[l][1]&&(Of(i[l][0],r)||Of(r,i[l][0])))}var F1=cu?()=>performance.now():()=>Date.now(),os={tick:t=>(cu?requestAnimationFrame:xt)(t),now:()=>F1(),tasks:new Set};function n_(){let t=os.now();os.tasks.forEach(e=>{e.c(t)||(os.tasks.delete(e),e.f())}),os.tasks.size!==0&&os.tick(n_)}function r_(t){let e;return os.tasks.size===0&&os.tick(n_),{promise:new Promise(i=>{os.tasks.add(e={c:t,f:i})}),abort(){os.tasks.delete(e)}}}function Vu(t,e){Hd(()=>{t.dispatchEvent(new CustomEvent(e))})}function W1(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 s_(t){let e={},i=t.split(";");for(let o of i){let[r,a]=o.split(":");if(!r||a===void 0)break;let l=W1(r.trim());e[l]=a.trim()}return e}var K1=t=>t;function Hs(t,e,i,o){var R;var r=(t&1)!==0,a=(t&2)!==0,l=r&&a,d=(t&4)!==0,s=l?"both":r?"in":"out",u,f=e.inert,p=e.style.overflow,v,b;function y(){var E;var A=Dt,P=wt;qi(null),vo(null);try{return u!=null?u:u=i()(e,(E=o==null?void 0:o())!=null?E:{},{direction:s})}finally{qi(A),vo(P)}}var _={is_global:d,in(){var A;if(e.inert=f,!r){b==null||b.abort(),(A=b==null?void 0:b.reset)==null||A.call(b);return}a||v==null||v.abort(),Vu(e,"introstart"),v=Nf(e,y(),b,1,()=>{Vu(e,"introend"),v==null||v.abort(),v=u=void 0,e.style.overflow=p})},out(A){if(!a){A==null||A(),u=void 0;return}e.inert=!0,Vu(e,"outrostart"),b=Nf(e,y(),v,0,()=>{Vu(e,"outroend"),A==null||A()})},stop:()=>{v==null||v.abort(),b==null||b.abort()}},w=wt;if(((R=w.transitions)!=null?R:w.transitions=[]).push(_),r&&Ud){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&&Ao(()=>{kt(()=>_.in())})}}function Nf(t,e,i,o,r){var a=o===1;if(sa(e)){var l,d=!1;return Vn(()=>{if(!d){var w=e({direction:a?"in":"out"});l=Nf(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:xt,deactivate:xt,reset:xt,t:()=>o};let{delay:s=0,css:u,tick:f,easing:p=K1}=e;var v=[];if(a&&i===void 0&&(f&&f(0,1),u)){var b=s_(u(0,1));v.push(b,b)}var y=()=>1-o,_=t.animate(v,{duration:s,fill:"forwards"});return _.onfinish=()=>{var W;_.cancel();var w=(W=i==null?void 0:i.t())!=null?W:1-o;i==null||i.abort();var I=o-w,T=e.duration*Math.abs(I),R=[];if(T>0){var A=!1;if(u)for(var P=Math.ceil(T/16.666666666666668),E=0;E<=P;E+=1){var z=w+I*p(E/P),U=s_(u(z,1-z));R.push(U),A||(A=U.overflow==="hidden")}A&&(t.style.overflow="hidden"),y=()=>{var Y=_.currentTime;return w+I*p(Y/T)},f&&r_(()=>{if(_.playState!=="running")return!1;var Y=y();return f(Y,1-Y),!0})}_=t.animate(R,{duration:T,fill:"forwards"}),_.onfinish=()=>{y=()=>o,f==null||f(o,1-o),r()}},{abort:()=>{_&&(_.cancel(),_.effect=null,_.onfinish=xt)},deactivate:()=>{r=xt},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>y()}}function Bf(t,e,i){var o=qo(t,e);o&&o.set&&(t[e]=i,ko(()=>{t[e]=null}))}var ua,zl,qd,Du,a_,Ou=class Ou{constructor(e){oa(this,Du);oa(this,ua,new WeakMap);oa(this,zl);oa(this,qd);xl(this,qd,e)}observe(e,i){var o=Fi(this,ua).get(e)||new Set;return o.add(i),Fi(this,ua).set(e,o),Vg(this,Du,a_).call(this).observe(e,Fi(this,qd)),()=>{var r=Fi(this,ua).get(e);r.delete(i),r.size===0&&(Fi(this,ua).delete(e),Fi(this,zl).unobserve(e))}}};ua=new WeakMap,zl=new WeakMap,qd=new WeakMap,Du=new WeakSet,a_=function(){var e;return(e=Fi(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 Fi(this,ua).get(o.target)||[])r(o)}}))},mr(Ou,"entries",new WeakMap);var Ff=Ou;var Q1=new Ff({box:"border-box"});function Dn(t,e,i){var o=Q1.observe(t,()=>i(t[e]));Ao(()=>(kt(()=>i(t[e])),o))}function l_(t,e){return t===e||(t==null?void 0:t[Go])===e}function ot(t={},e,i,o){return Ao(()=>{var r,a;return Zo(()=>{r=a,a=(o==null?void 0:o())||[],kt(()=>{t!==i(...a)&&(e(t,...a),r&&l_(i(...r),t)&&e(null,...r))})}),()=>{Vn(()=>{a&&l_(i(...a),t)&&e(null,...a)})}}),t}function Jo(t=!1){let e=Ht,i=e.l.u;if(!i)return;let o=()=>ku(e.s);if(t){let r=0,a={},l=Jr(()=>{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&&Rd(()=>{d_(e,o),aa(i.b)}),Fe(()=>{let r=kt(()=>i.m.map(Ug));return()=>{for(let a of r)typeof a=="function"&&a()}}),i.a.length&&Fe(()=>{d_(e,o),aa(i.a)})}function d_(t,e){if(t.l.s)for(let i of t.l.s)n(i);e()}function Gd(t,e,i){if(t==null)return e(void 0),i&&i(void 0),xt;let o=kt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Wl=[];function Or(t,e){return{subscribe:se(t,e).subscribe}}function se(t,e=xt){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=xt){let u=[d,s];return o.add(u),o.size===1&&(i=e(r,a)||xt),d(t),()=>{o.delete(u),o.size===0&&i&&(i(),i=null)}}return{set:r,update:a,subscribe:l}}function ci(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 Or(i,(l,d)=>{let s=!1,u=[],f=0,p=xt,v=()=>{if(f)return;p();let y=e(o?u[0]:u,l,d);a?l(y):p=typeof y=="function"?y:xt},b=r.map((y,_)=>Gd(y,w=>{u[_]=w,f&=~(1<<_),s&&v()},()=>{f|=1<<_}));return s=!0,v(),function(){aa(b),p(),s=!1}})}function _e(t){let e;return Gd(t,i=>e=i)(),e}var Nu=!1,Hf=Symbol();function x(t,e,i){var a;let o=(a=i[e])!=null?a:i[e]={store:null,source:ws(void 0),unsubscribe:xt};if(o.store!==t&&!(Hf in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=xt;else{var r=!0;o.unsubscribe=Gd(t,l=>{r?o.source.v=l:D(o.source,l)}),r=!1}return t&&Hf in i?_e(t):n(o.source)}function Be(){let t={};function e(){ko(()=>{for(var i in t)t[i].unsubscribe();mo(t,Hf,{enumerable:!1,value:!0})})}return[t,e]}function Uf(t){var e=Nu;try{return Nu=!1,[t(),Nu]}finally{Nu=e}}var J1={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Me&&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 On(t,e,i){return new Proxy(Me?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},J1)}var e0={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(sa(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];sa(r)&&(r=r());let a=qo(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(sa(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let r=qo(o,e);return r&&!r.configurable&&(r.configurable=!0),r}}},has(t,e){if(e===Go||e===wl)return!1;for(let i of t.props)if(sa(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props)if(sa(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 ns(...t){return new Proxy({props:t},e0)}function c_(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function g(t,e,i,o){var z,U;var r=(i&1)!==0,a=!$s||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,s=!1,u;l?[u,s]=Uf(()=>t[e]):u=t[e];var f=Go in t||wl in t,p=l&&((U=(z=qo(t,e))==null?void 0:z.set)!=null?U:f&&e in t&&(W=>t[e]=W))||void 0,v=o,b=!0,y=!1,_=()=>(y=!0,b&&(b=!1,d?v=kt(o):v=o),v);u===void 0&&o!==void 0&&(p&&a&&Zg(e),u=_(),p&&p(u));var w;if(a)w=()=>{var W=t[e];return W===void 0?_():(b=!0,y=!1,W)};else{var I=(r?Jr:br)(()=>t[e]);I.f|=131072,w=()=>{var W=n(I);return W!==void 0&&(v=void 0),W===void 0?v:W}}if((i&4)===0&&a)return w;if(p){var T=t.$$legacy;return function(W,Y){return arguments.length>0?((!a||!Y||T||s)&&p(Y?w():W),W):w()}}var R=!1,A=!1,P=ws(u),E=Jr(()=>{var W=w(),Y=n(P);return R?(R=!1,A=!0,Y):(A=!1,P.v=W)});return l&&n(E),r||(E.equals=Tl),function(W,Y){if(Eu!==null&&(R=A,w(),n(P)),arguments.length>0){let te=Y?n(E):a&&l?ri(W):W;if(!E.equals(te)){if(R=!0,D(P,te),y&&v!==void 0&&(v=te),c_(E))return W;kt(()=>n(E))}return W}return c_(E)?E.v:n(E)}}var t0;typeof HTMLElement=="function"&&(t0=class extends HTMLElement{constructor(e,i,o){super();mr(this,"$$ctor");mr(this,"$$s");mr(this,"$$c");mr(this,"$$cn",!1);mr(this,"$$d",{});mr(this,"$$r",!1);mr(this,"$$p_d",{});mr(this,"$$l",{});mr(this,"$$l_u",new Map);mr(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 yt(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=i0(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]=zf(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=Uh({component:this.$$ctor,target:this.shadowRoot||this,props:ti(Ye({},this.$$d),{$$slots:o,$$host:this})}),this.$$me=Su(()=>{Zo(()=>{var a;this.$$r=!0;for(let l of Jp(this.$$c)){if(!((a=this.$$p_d[l])!=null&&a.reflect))continue;this.$$d[l]=this.$$c[l];let d=zf(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]=zf(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 Jp(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function zf(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 i0(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var u_="5";var p_,f_,m_;typeof window!="undefined"&&((m_=(f_=(p_=window.__svelte)!=null?p_:window.__svelte={}).v)!=null?m_:f_.v=new Set).add(u_);var dd=require("@vkontakte/videoplayer-core/es2015"),OJ=require("@vkontakte/videoplayer-core/es2015"),gl=require("@vkontakte/videoplayer-shared/es2015"),S$=require("@vkontakte/videoplayer-statistics/es2015");var Wa=require("@vkontakte/videoplayer-shared/es2015");var o0={isMobile:void 0,disableInvisibleComponentsTimeout:500,debugLog:!1,devNullLog:!1,defaultLanguage:Wa.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:Wa.VideoQuality.Q_480P,highQualityLimit:Wa.VideoQuality.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,features:{autoplay:!0,statistics:!0,thinStatistics:!1,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:{minimalView:!1,initialSize:{width:400,height:225}},download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,tracer:!1,apptracer:{enabled:!1,sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},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},disablePiPResizeHandling:!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:[]},v_=t=>(0,Wa.fillWithDefault)(t,o0),g_=t=>Pl("ui-config",t),Vt=()=>El("ui-config");var Yd="vk_player_debug_panel_opened";var h_="videoplayer",__="videoplayer";var Cs={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},b_=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),$_=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),y_=new Set(["ShiftRight","ShiftLeft"]);var x_=["TIMELINE"],jd=[...x_,"GRAPH_BUTTON"],Wf=[...x_,"PLAY_BUTTON"],Xd=[...jd,"PLAY_BUTTON"];var rs=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(rs||{}),Zd={xs:0,s:1,m:2,l:3,xl:4};var Jd=require("@vkontakte/videoplayer-shared/es2015"),w_=require("@vkontakte/videoplayer-core/es2015"),S_=require("@vkontakte/videoplayer-statistics/es2015");var Bu="prod",Qa="1.1.85-dev.01c6bd35.0";var qa=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var C_=Symbol("storeContext"),T_=Symbol("microStoresContext"),I_=(t,e)=>{Pl(C_,t),Pl(T_,e),Bu==="dev"&&(window.app={store:t,microStores:e})},xe=()=>{let t=El(C_);return(0,Jd.assertNonNullable)(t,"Store context is empty!"),t},yo=()=>{let t=El(T_);return(0,Jd.assertNonNullable)(t,"MicroStores context is empty!"),t},oi=(t,e)=>Hu(t,t.getValue(),e),Hu=(t,e,i)=>Or(e,o=>{let r=t.subscribe(a=>{o(a),i==null||i(a)});return()=>r.unsubscribe()}),E_=(t,e,i,o,r=["meta config not provided"])=>{var U,W,Y,te,J,oe,de,ae,pe;let a=t.info,{width:l,height:d}=_e(i.ui.playerSize),s=(W=(U=a.throughputEstimation$.getValue())==null?void 0:U.toFixed(0))!=null?W:0,u=(te=(Y=a.rttEstimation$.getValue())==null?void 0:Y.toFixed(0))!=null?te:0,f=a.isAutoQualityEnabled$.getValue()?"auto":"manual",p=`${Qa} (core: ${w_.VERSION}, stat: ${S_.VERSION}, shared: ${Jd.VERSION})`,v=_e(i.state.errorLog$),b=v.length?`
|
|
45
|
+
`+v.map((ee,$e)=>{var fe;let Ee=`${$e}) Type: ${ee.id}
|
|
46
|
+
`,ce=`Message: ${ee.message} (${ee.thrown})
|
|
47
|
+
`,Qe=`Trace: ${(fe=ee.thrown)==null?void 0:fe.stack}
|
|
48
|
+
`;return Ee+ce+Qe}).join(`
|
|
49
|
+
`):void 0,y=i.state.isAudioDisabled?"disabled":_e(i.state.isAudioAvailable$)?void 0:"unavailable",_=t.info.currentVideoStream$.getValue(),w=t.info.currentAudioStream$.getValue(),I=[];_&&I.push(`Video: ${(J=_==null?void 0:_.codec)!=null?J:""}`+(_!=null&&_.hdr?" (HDR)":"")),w&&I.push(`Audio: ${(oe=w==null?void 0:w.codec)!=null?oe:""}`+(w!=null&&w.language?` (${w.language})`:""));let T=a.currentQuality$.getValue(),R="";if(T){let ee=a.availableQualitiesFps$.getValue()[T];R=ee?`${ee}fps`:""}let A=a.httpConnectionType$.getValue(),P=(ae=(de=a.currentBuffer$.getValue())==null?void 0:de.end)!=null?ae:0,E=Math.max(P-_e(i.state.positionExact$),0),z={Version:p,Browser:navigator.userAgent,Config:r.join(", "),"United video id":String(i.videoId),TraceId:o,VSID:_e(i.vsid),"Content host":a.hostname$.getValue(),"Connection type":A?A+(a.httpConnectionReused$.getValue()?" (reused)":""):"",Throughput:`${s}Kbps @ ${u}ms RTT`,Format:a.currentFormat$.getValue(),"Available Formats":e!=null&&e.sources?Object.keys(e.sources).join(", "):"",Streams:I.join(", "),Quality:`${f} ${T!=null?T:""} ${R}`,"Available qualities":a.availableQualities$.getValue().join(", "),Audio:y,Position:`${_e(i.state.positionExact$)}s`,Buffer:`${E}s`,State:`${_e(i.playerPhase)} ${(pe=a.playbackState$.getValue())!=null?pe:""}`,"Player size":`${l}x${d}`,URL:window.location.href,Errors:b};return Object.entries(z).filter(([ee,$e])=>$e!==void 0).map(([ee,$e])=>`${ee}: ${$e}`).join(`
|
|
50
|
+
`)},P_=(t,e,i)=>{var U,W,Y,te;let o=t.info,{width:r,height:a}=_e(i.ui.playerSize),l={version:Qa,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 f=o.currentBuffer$.getValue(),p=o.currentNativeBuffer$.getValue(),v=o.isLive$.getValue(),b=o.liveBufferTime$.getValue();f&&p&&(v&&b?(l.buffer=f.end-b,l.nativeBuffer=p.end-b):(l.buffer=Math.max(f.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 _=o.videoBitrate$.getValue();_&&(l.bitrate=_);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 R=_e(i.vsid);typeof R=="string"&&(l.vsid=R);let A=(U=t.info.currentVideoStream$.getValue())==null?void 0:U.codec;A&&(l.videoCodec=A);let P=(W=t.info.currentAudioStream$.getValue())==null?void 0:W.codec;P&&(l.audioCodec=P),((Y=t.info.currentVideoStream$.getValue())==null?void 0:Y.hdr)&&(l.hdr=!0);let z=(te=t.info.currentAudioStream$.getValue())==null?void 0:te.language;return z&&(l.audioLanguage=z),l},k_=(t,e)=>qa(t,e,"mp4"),A_=t=>!t.type,L_=t=>!!t.type,M_=()=>{let e=[],i=0;return{add:(o,r)=>{e[i]=[o,r],i=(i+1)%10},find:o=>e.find(([r])=>r===o)}},Fu=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}download(e){return yt(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 ui=require("@vkontakte/videoplayer-shared/es2015"),Z9=require("@vkontakte/videoplayer-core/es2015");var n0="vk_player_",V_="vk_player_prefer_traffic_saving_enabled",R_="vk_player_preferred_volume",D_="vk_player_prefer_volume_mute",Gf="vk_player_preferred_quality",Kf="vk_player_preferred_default_quality_settings",Qf="vk_player_preferred_quality_settings_by_video",O_="vk_player_preferred_stream_language",N_="vk_player_preferred_rate",B_="vk_player_preferred_autoplay_next",qf="vk_player_preferred_subtitles_language",F_="vk_player_user_video_prefs",H_=`${n0}preview_track_close_tooltip`,U_=t=>t>1?1:t<0?0:t,Yf=t=>ui.safeStorage.set(R_,U_(t).toString(10)),Uu=()=>{let t=ui.safeStorage.get(R_);return(0,ui.isNullable)(t)?void 0:U_(parseFloat(t))},jf=(t,e)=>ui.safeStorage.set(Gf,JSON.stringify({videoId:t,value:e})),zu=()=>ui.safeStorage.remove(Gf),Xf=t=>{let e=ui.safeStorage.get(Gf);if((0,ui.isNullable)(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){zu();return}return o},z_=(t,e)=>{e?ui.safeStorage.set(t,"true"):ui.safeStorage.remove(t)},Zf=t=>ui.safeStorage.get(t)==="true",Jf=t=>z_(D_,t),W_=()=>Zf(D_),ec=t=>z_(V_,t),em=()=>Zf(V_),K_=()=>ui.safeStorage.get(O_),tm=t=>ui.safeStorage.set(O_,t),im=()=>ui.safeStorage.get(qf),om=t=>{t?ui.safeStorage.set(qf,t):ui.safeStorage.remove(qf)},Q_=t=>ui.safeStorage.set(N_,JSON.stringify({rate:t})),q_=()=>{let t=ui.safeStorage.get(N_);if((0,ui.isNullable)(t))return;let{rate:e}=JSON.parse(t);return e},G_=t=>{ui.safeStorage.set(B_,String(t))},Y_=()=>Zf(B_),r0=()=>{let t=f=>{ui.safeStorage.set(Kf,JSON.stringify(f))},e=()=>{try{let f=ui.safeStorage.get(Kf);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=ui.safeStorage.get(Qf);return f?JSON.parse(f):null}catch(f){return null}},o=f=>{ui.safeStorage.set(Qf,JSON.stringify(f))},r=f=>{u(f);let p=f?i():null;if(p&&(p==null?void 0:p.videoId)===f)return ti(Ye({},p),{appliesTo:"to-video"});p&&a();let v=e();return v?ti(Ye({},v),{appliesTo:"as-default"}):(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},a=()=>{ui.safeStorage.remove(Qf)},l=()=>{ui.safeStorage.remove(Kf)},d=(f,p="as-default")=>{f.type==="exact_quality"||p==="to-video"?o(f):t(f)},s=f=>{let p=r(f);if(p){switch(p.type){case"traffic_saving":ec(!0);break;case"exact_quality":jf(f,p.quality)}a(),l()}},u=f=>{let p=Xf(f);if(p){o({type:"exact_quality",videoId:f,quality:p});return}em()&&t({type:"traffic_saving",videoId:f}),ec(!1),zu()};return{getPreferredQualitySettings:r,migrateSettingsToLegacyWay:s,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:a,getPreferredDefaultQualitySettings:e,getPreferredSubtitlesLanguage:im,savePreferredSubtitlesLanguage:om}},{getPreferredQualitySettings:j_,migrateSettingsToLegacyWay:X_,savePreferredQualitySettings:Wu,savePreferredDefaultQualitySettings:J9,removePreferredQualitySettingsByVideo:eV,getPreferredDefaultQualitySettings:Ku}=r0(),s0=3,a0=3,Z_=()=>{let t=ui.safeStorage.get(F_);if(t)try{return JSON.parse(t)}catch(e){return null}return null},Qu=(t,e)=>{var r,a;let i=Z_();return(a=(r=i==null?void 0:i[t])==null?void 0:r[e])!=null?a:null},nm=(t,e,i)=>{var l,d,s;let o=(l=Z_())!=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=l0(o);ui.safeStorage.set(F_,JSON.stringify(a))};function l0(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(a0),e.reduce((o,[r])=>(o[r]=d0(t[r]),o),{})}function d0(t){let e=Object.entries(t);return e.sort(([,i],[,o])=>i.updatedTs>o.updatedTs?-1:1),e.splice(s0),Object.fromEntries(e)}function J_(){ui.safeStorage.set(H_,JSON.stringify(!0))}function eb(){let t=ui.safeStorage.get(H_);try{return t?JSON.parse(t):!1}catch(e){return!1}}var dg=require("@vkontakte/videoplayer-core/es2015");nh();var pa="var(--btn-color, #fff)";var c0=ke('<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),u0=ke('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill-rule="evenodd" clip-rule="evenodd"><!></svg>');function Xe(t,e){var f;B(e,!0);let i=g(e,"width",19,()=>"24"),o=g(e,"height",19,()=>"24"),r=g(e,"fill",3,pa),a=(f=e.viewBox)!=null?f:`0 0 ${i()} ${o()}`;var l=u0(),d=C(l);{var s=p=>{var v=c0(),b=le(v),y=C(b);ii(y,()=>e.children),S(b),Jt(),$(p,v)},u=p=>{var v=Ve(),b=le(v);ii(b,()=>e.children),$(p,v)};M(d,p=>{e.shadow?p(s):p(u,!1)})}S(l),O(()=>{De(l,"aria-label",e.ariaLabel),De(l,"aria-hidden",!e.ariaLabel),De(l,"width",i()),De(l,"height",o()),De(l,"viewBox",a),De(l,"fill",r()),Ke(l,e.style),De(l,"data-testid",e.testId)}),$(t,l),F()}var Kl=require("@vkontakte/videoplayer-shared/es2015");var p0={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
51
|
качество изменено на «Авто»`,slow_video_notification_suggest_description:`Видео загружается слишком медленно -
|
|
52
|
-
попробуйте изменить качество на «Авто»`,double_forward_label:"2x",preview_track_notification_text:"Потяните вверх для точной перемотки",preview_track_close_tooltip:"Выйти из режима точной перемотки"},tb=
|
|
52
|
+
попробуйте изменить качество на «Авто»`,double_forward_label:"2x",preview_track_notification_text:"Потяните вверх для точной перемотки",preview_track_close_tooltip:"Выйти из режима точной перемотки"},tb=p0;var f0={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
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"},ib=hy;var Ds=new Map;Ds.set(Wl.InterfaceLanguage.EN,ib);Ds.set(Wl.InterfaceLanguage.RU,tb);var ob=new Map,lm=({language:i,pack:e,fallback:t})=>{if(Ds.has(i)){let o=Ds.get(i);Ds.set(i,Le(Le({},o),e))}else Ds.set(i,e);ob.set(i,t)},dm=i=>Ds.has(i),cm=(i,e,t,o)=>{var l;let r=Ds.get(i),a=r==null?void 0:r[e];if((0,Wl.isNullable)(a)){let d=(l=ob.get(i))!=null?l:o,s=d?Ds.get(d):void 0;a=s==null?void 0:s[e]}return(0,Wl.isNullable)(a)?e+Object.values(t!=null?t:{}).join(" "):t?a.replaceAll(/{(\w+?)}/g,(d,s)=>{var u;return(u=t[s])!=null?u:""}):a},j=(i,e)=>{let{interfaceLanguage$:t}=ye(),o=$e(t),r=Nt();return cm(o,i,e,r.defaultLanguage)};var _y=Ee('<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 tc(i,e){B(e,!1);let t=j("video360");en(),et(i,{width:"76",height:"45",get ariaLabel(){return t},testId:"video-360-icon",shadow:!0,children:(o,r)=>{var a=_y();$(o,a)},$$slots:{default:!0}}),H()}var HV=require("@vkontakte/videoplayer-core/es2015");var Kl;(function(i){i.fatal="fatal",i.error="error",i.warning="warning",i.log="log",i.info="info",i.debug="debug",i.critical="critical"})(Kl||(Kl={}));var by=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,$y=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,yy=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,qu="?",xy="X-Sentry-Auth",wy=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Sy(i){if(!i.stack)return null;let e=[],t=i.stack.split(`
|
|
55
|
-
`),o,r;for(let a=0;a<t.length;++a){if(o=by.exec(t[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=yy.exec(t[a]))r={filename:o[2],function:o[1]||qu,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=$y.exec(t[a]))a===0&&!o[5]&&i.columnNumber!==void 0&&(e[0].column=i.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:nb(i),type:i.name,stacktrace:{frames:e.reverse()}}:null}function nb(i){return(i&&i.message||"No error message").split(`
|
|
56
|
-
`).filter(t=>!!t)[0]}function Cy(i){try{let e=Sy(i);if(e)return e}catch(e){}return{value:nb(i),type:i&&i.name,stacktrace:{frames:[]}}}function Ty(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,i=>{let e=Math.random()*16|0;return(i==="x"?e:e&3|8).toString(16)})}var Qu=class{constructor(e){if(e&&e.dsn){let t=wy.exec(e.dsn),o=t?t.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 Gt(Le({},this.getRequestBlank()),{exception:{values:[Cy(e)]}})}report(e){this.send(this.prepare(e))}send(e){!this.apiUrl||!e||this.createRequest(e)}createRequest(e){let t=new XMLHttpRequest;t.open("POST",this.apiUrl,!0),t.setRequestHeader("Content-type","application/json"),t.setRequestHeader(xy,this.authHeader||""),t.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:Ty(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function rb(i,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(i):typeof e=="string"?i.indexOf(e)!==-1:!1}function Iy(){return window}var Gu=class i extends Qu{constructor(e,t=Iy()){super(e),this.options=e,this.window=t,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",Le({},e)),this}setTag(e,t){return this.extendState({tags:{[e]:t}}),this}setExtra(e,t){return this.extendState({extra:{[e]:t}}),this}setExtras(e){return this.setKeyState("extra",Le({},e)),this}setUser(e){return this.setKeyState("user",Le({},e)),this}clone(){let e=new i(Gt(Le({},this.options),{plugins:[]}));return e.extendState(this.state),e}withScope(e){let t=this.clone();e(t),t.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[Le({timestamp:Date.now()/1e3},this.beforeBreadcrumb(e))]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,t){this.send(Gt(Le({},this.getRequestBlank()),{message:e,level:t}))}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(t=>this.ignoreErrors.some(o=>rb(t,o))):!1}getRequestBlank(){return Le(Gt(Le({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(Le({release:this.release},e))),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:t="",value:o=""}=e.exception.values&&e.exception.values[0]||{};return[`${o}`,`${t}: ${o}`]}catch(t){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let t=this.getEventFilterUrl(e);return t?this.blacklistUrls.some(o=>rb(t,o)):!1}getEventFilterUrl(e){try{if(e.exception){let t=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return t&&t[t.length-1].filename||null}return null}catch(t){return null}}extendState(e){this._state=Object.keys(e).reduce((t,o)=>{let r=this._state[o],a=Array.isArray(r)?r:null,l=e[o],d=Array.isArray(l)?l:null;return Gt(Le({},t),{[o]:a||d?[...a||[],...d||[]]:Le(Le({},typeof r!="string"?r:{}),typeof l!="string"?l:{})})},this._state)}setKeyState(e,t){this._state[e]=t}};var qa=require("@vkontakte/videoplayer-shared/es2015");var Yu=null,Qa=class{constructor(e,t,o={}){!Yu&&e.dsn&&(this.sentryClient=new Gu({dsn:e.dsn,environment:t.env}),this.version=t.version,this.sentrySubscription=new qa.Subscription,this.options=e,this.context=o,Yu=this)}destroy(){var e,t;(e=this.sentryClient)==null||e.destroy(),(t=this.sentrySubscription)==null||t.unsubscribe(),Yu=null}logIError(e,t=!1){e.thrown&&this.report(e.thrown,{fatal:t,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,t={},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}=t;if((0,qa.isNonNullable)(b)&&p.includes(b)||(0,qa.isNonNullable)(v)&&m.includes(v))return;if(Math.random()<=d||(0,qa.isNonNullable)(b)&&u.includes(b)||(0,qa.isNonNullable)(v)&&s.includes(v)){Object.keys(t).length&&r.setTags(Le({version:this.version},t)),(Object.keys(a).length||Object.keys(o).length)&&r.setExtras(Le(Le({},a),o));try{v&&r.captureMessage(v,t.fatal?Kl.fatal:Kl.error),r.report(e)}catch(_){console.error(_)}}}static getInstance(){return Yu}};var rs=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(rs||{});var ju=i=>{if(i.requestFullscreen)return i.requestFullscreen();if(i.msRequestFullscreen)return i.msRequestFullscreen();if(i.webkitRequestFullscreen)return i.webkitRequestFullscreen();if(i.mozRequestFullScreen)return i.mozRequestFullScreen();let e=i.querySelector("video");return e!=null&&e.webkitEnterFullscreen?(e.webkitEnterFullscreen(),Promise.resolve()):Promise.reject()},Xu=i=>i.exitFullscreen?i.exitFullscreen():i.msExitFullscreen?i.msExitFullscreen():i.webkitExitFullscreen?i.webkitExitFullscreen():i.mozCancelFullScreen?i.mozCancelFullScreen():Promise.reject(),sb=(i,e)=>e?!0:i.fullscreenEnabled||!!i.webkitFullscreenEnabled||!!i.mozFullscreenEnabled||!!i.msFullscreenEnabled,ab=i=>{let e=i;e!=null&&e.webkitExitFullscreen&&(e==null||e.webkitExitFullscreen())},ic=()=>{let i=document;return i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement||i.msFullscreenElement},da=()=>!!ic(),Zu=i=>{document.addEventListener("fullscreenchange",i),document.addEventListener("webkitfullscreenchange",i),document.addEventListener("mozfullscreenchange",i),document.addEventListener("MSFullscreenChange",i)},Ju=i=>{document.removeEventListener("fullscreenchange",i),document.removeEventListener("webkitfullscreenchange",i),document.removeEventListener("mozfullscreenchange",i),document.removeEventListener("MSFullscreenChange",i)},lb=i=>{let e=window.screen;return(r=>gt(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")(i))};var um=require("@vkontakte/videoplayer-core/es2015"),db=()=>({title:j("hotkey_map_modal_title"),closeBtnText:j("hotkey_map_modal_close_btn_text"),groups:[{title:j("hotkey_map_group_title_common"),items:[{description:j("hotkey_map_item_mute_description"),value:j("hotkey_map_item_mute_value")},{description:j("hotkey_map_item_volume_up_description"),value:j("hotkey_map_item_volume_up_value")},{description:j("hotkey_map_item_volume_down_description"),value:j("hotkey_map_item_volume_down_value")},{description:j("hotkey_map_item_pip_description"),value:j("hotkey_map_item_pip_value")},{description:j("hotkey_map_item_full_screen_description"),value:j("hotkey_map_item_full_screen_value")},{description:j("hotkey_map_item_show_context_menu_description"),value:j("hotkey_map_item_show_context_menu_value")},{description:j("hotkey_map_item_show_hotkey_map_description"),value:j("hotkey_map_item_show_hotkey_map_value")}]},{title:j("hotkey_map_group_title_playback"),items:[{description:j("hotkey_map_item_play_toggle_description"),value:j("hotkey_map_item_play_toggle_value")},{description:j("hotkey_map_item_seek_backward_description"),value:j("hotkey_map_item_seek_backward_value")},{description:j("hotkey_map_item_seek_forward_description"),value:j("hotkey_map_item_seek_forward_value")},{description:j("hotkey_map_item_fast_seek_backward_description"),value:j("hotkey_map_item_fast_seek_backward_value")},{description:j("hotkey_map_item_fast_seek_forward_description"),value:j("hotkey_map_item_fast_seek_forward_value")},{description:j("hotkey_map_item_rate_down_description"),value:j("hotkey_map_item_rate_down_value")},{description:j("hotkey_map_item_rate_up_description"),value:j("hotkey_map_item_rate_up_value")},{description:j("hotkey_map_item_prev_frame_description"),value:j("hotkey_map_item_prev_frame_value")},{description:j("hotkey_map_item_next_frame_description"),value:j("hotkey_map_item_next_frame_value")},{description:j("hotkey_map_item_jump_seek_description"),value:j("hotkey_map_item_jump_seek_value")},{description:j("hotkey_map_item_next_video_description"),value:j("hotkey_map_item_next_video_value")},{description:j("hotkey_map_item_prev_video_description"),value:j("hotkey_map_item_prev_video_value")}]},{title:j("hotkey_map_group_title_subtitles"),items:[{description:j("hotkey_map_item_subtitles_toggle_description"),value:j("hotkey_map_item_subtitles_toggle_value")}]},{title:j("hotkey_map_group_title_episodes"),items:[{description:j("hotkey_map_item_prev_episode_description"),value:um.clientChecker.device.isApple?j("hotkey_map_item_prev_episode_mac_value"):j("hotkey_map_item_prev_episode_pc_value")},{description:j("hotkey_map_item_next_episode_description"),value:um.clientChecker.device.isApple?j("hotkey_map_item_next_episode_mac_value"):j("hotkey_map_item_next_episode_pc_value")}]}]});var ql=require("@vkontakte/videoplayer-shared/es2015");function pm(i,e){B(e,!1);let t=ye();Ot(()=>{t.getAdmanWrapper().startPostroll()}),en(),H()}var cb=require("@vkontakte/videoplayer-shared/es2015");var Ey=Ee('<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>'),Py=Ee('<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 Br(i,e){B(e,!0);let t=h(e,"direction",3,"left"),o=h(e,"useBtnColor",3,!1),r=f(()=>["up","down"].includes(t())),a=f(()=>["right","down"].includes(t())),l=f(()=>`chevron-icon--${t()}`),d=f(()=>(()=>{let m="";return n(a)&&(m+="transform: rotate(180deg);"),m.length?m:void 0})()),s=f(()=>o()?la:"currentColor"),u=f(()=>n(r)?"7":"16");et(i,{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=Ve(),b=le(v);{var y=x=>{var I=Ey();$(x,I)},_=x=>{var I=Py();$(x,I)};V(b,x=>{n(r)?x(y):x(_,!1)})}$(m,v)},$$slots:{default:!0}}),H()}var ky=(i,e,t)=>{i.stopPropagation(),n(e)&&t()()},Ay=L('<div class="skip s-16"> <!></div>'),Ly=L("<div><!></div>"),My={hash:"s-16",code:".container.s-16{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-16{bottom:14px;font-size:15px;max-width:142px;top:unset}.skip.s-16{align-items:flex-end;display:flex;gap:4px;white-space:nowrap}.skippable.s-16{color:var(--white);cursor:pointer}.skippable.s-16:hover{color:hsla(0,0%,100%,.75)}"};function fm(i,e){B(e,!0),G(i,My);let[t,o]=De(),r=()=>w(u,"$isMobile",t),a=h(e,"position",3,0),l=h(e,"secondsToWatchBeforeSkip",3,0),d=h(e,"skipAd",3,cb.noop),u=ye().ui.isMobile,m=f(()=>a()>0&&a()>=l());var p=Ly();let v;p.__click=[ky,m,d];var b=C(p);{var y=x=>{var I=Ay(),T=C(I),R=k(T);Br(R,{direction:"right"}),S(I),N(A=>he(T,`${A!=null?A:""} `),[()=>j("skip_ads_now")]),$(x,I)},_=x=>{var I=$s();N(T=>he(I,T),[()=>j("skip_ads_after",{time:Math.ceil(l()-a()).toFixed(0)})]),$(x,I)};V(b,x=>{n(m)?x(y):x(_,!1)})}S(p),N(x=>v=ne(p,1,"container s-16",null,v,x),[()=>({"container-mobile":r(),skippable:n(m)})]),$(i,p),H(),o()}tt(["click"]);var Vy=L('<button class="go-to-site s-17"> </button>'),Ry={hash:"s-17",code:"button.go-to-site.s-17{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 mm(i,e){B(e,!1),G(i,Ry),en();var t=Vy(),o=C(t,!0);S(t),N(r=>he(o,r),[()=>j("visit_advertiser")],cr),$(i,t),H()}var Oy=L('<div class="top-gradient-mobile s-i"></div>'),Ny=L('<div class="container s-i"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),Dy={hash:"s-i",code:".container.s-i{height:100%;width:100%}.top-gradient-mobile.s-i{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(i,e){B(e,!0),G(i,Dy);let[t,o]=De(),r=()=>w(z,"$canSkipAd",t),a=()=>w(F,"$adPlaybackState",t),l=()=>w(R,"$isMobile",t),d=()=>w(X,"$adPosition",t),s=()=>w(se,"$secondsToWatchBeforeSkipAd",t),u=()=>w(T,"$isVideoEnded",t),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),_=h(e,"adsJson",3,void 0),x=ye(),I=Nt(),T=x.state.isEnded$,R=x.ui.isMobile,A=I.ads.isMobileGoToSiteButton,P=q(void 0),E=q(void 0),K=!1,F=x.ads.playbackState,z=x.ads.canSkip,X=x.ads.position,se=x.ads.secondsToWatchBeforeSkip,Y=f(()=>r()&&a()!=="inactive"),re=f(()=>l()&&a()!=="inactive"&&A);Ot(()=>{let U=x.getAdmanWrapper();if(ql.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[(0,ql.now)(),m()]}),!m()){U.onAdmanLoadingError();return}let D=()=>{var ke;let{width:ge,height:Ke}=$e(x.ui.playerSize),te=$e(x.ui.isFullscreen),ze=(ke=v())!=null?ke:$e(x.ui.isAutoplay),ee=I.ads.paramsOverride;return{width:ge,height:Ke,isFullscreen:te,isAutoplay:ze,adsContainer:n(P),adsVideoElement:n(E),slotId:m(),params:p(),paramsOverride:ee,duration:b(),externalApi:y(),json:_()}},ue=ge=>gt(null,null,function*(){ge&&(yield $o());let Ke=D();yield U.initAdman(Ke),K=!0}),ce=new AbortController,_e=()=>{ce.abort()};return window.AdmanHTML?ue(!0).catch(()=>{U.onAdmanLoadingError()}):U.loadAdman(ce.signal).then(()=>ue(!1)).catch(()=>{U.onAdmanLoadingError()}),()=>{ql.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[(0,ql.now)(),m()]}),!K&&_e()}});var Z=Ny(),Ce=C(Z);{var fe=U=>{var D=Oy();$(U,D)};V(Ce,U=>{l()&&U(fe)})}var oe=k(Ce,2);ot(oe,U=>O(E,U),()=>n(E));var pe=k(oe,2);{var Se=U=>{fm(U,{get position(){return d()},get secondsToWatchBeforeSkip(){return s()},get skipAd(){return x.actions.internal.skipAd}})};V(pe,U=>{n(Y)&&U(Se)})}var de=k(pe,2);{var qe=U=>{pm(U,{})};V(de,U=>{u()&&U(qe)})}var ve=k(de,2);{var We=U=>{mm(U,{})};V(ve,U=>{n(re)&&U(We)})}S(Z),ot(Z,U=>O(P,U),()=>n(P)),$(i,Z),H(),o()}var tn=i=>{if(!isFinite(i))return"00:00";let e=Math.round(i),t=Math.floor(e/(60*60));e-=t*3600;let o=Math.floor(e/60);e-=o*60;let r=[o,e].map(a=>String(a).padStart(2,"0")).join(":");return t>0&&(r=`${t}:${r}`),r};var By=Ee('<path fill="#fff"></path>'),Hy=Ee("<path></path><!>",1);function nc(i,e){let t=h(e,"isActive",3,!1),o=f(()=>t()?"live-active-icon":"live-icon"),r=f(()=>t()?"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";et(i,{width:"42",height:"20",get testId(){return n(o)},get fill(){return n(r)},children:(l,d)=>{var s=Hy(),u=le(s),m=k(u);{var p=v=>{var b=By();Oe(b,"d",a),$(v,b)};V(m,v=>{t()&&v(p)})}N(()=>Oe(u,"d",`M5 0h32s5 0 5 5v10s0 5 -5 5h-32s-5 0 -5 -5v-10s0 -5 5 -5${t()?"":"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 Fy=L('<div class="equalizer s-b"><div class="col s-b"></div> <div class="col s-b"></div> <div class="col s-b"></div></div>'),Uy=L('<div class="live-icon s-b"><!></div>'),zy=L('<span class="text s-b"> </span>'),Wy=L("<div><!> <!></div>"),Ky={hash:"s-b",code:".wrapper.s-b{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-b{background:var(--red);border-radius:2px;font-size:0;height:20px;line-height:20px;padding:0 7px}.equalizer.s-b{display:inline-block;height:10px;margin-right:4px;margin-top:-4px;position:relative;vertical-align:middle;width:10px}.live.s-b .equalizer:where(.s-b){margin-top:-2px}.equalizer.s-b .col:where(.s-b){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-b .equalizer:where(.s-b) .col:where(.s-b){animation-play-state:running}.equalizer.s-b .col:where(.s-b):first-child{animation-name:s-b-thumb-timer-equalizer-col1;left:0}.equalizer.s-b .col:where(.s-b):nth-child(2){animation-name:s-b-thumb-timer-equalizer-col2;left:3px}.equalizer.s-b .col:where(.s-b):nth-child(3){animation-name:s-b-thumb-timer-equalizer-col3;left:6px}.live-icon.s-b{display:inline-block;height:20px;margin:0 -7px;vertical-align:middle;width:42px}@keyframes s-b-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-b-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-b-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-b{color:var(--controls-time);font-size:13px;font-weight:500;line-height:16px}"};function rc(i,e){G(i,Ky);let t=h(e,"withEqualizer",3,!1),o=h(e,"isLive",3,!1),r=h(e,"isPlaying",3,!1);var a=Wy();let l;var d=C(a);{var s=v=>{var b=Fy();$(v,b)};V(d,v=>{t()&&v(s)})}var u=k(d,2);{var m=v=>{var b=Uy(),y=C(b);nc(y,{isActive:!0}),S(b),$(v,b)},p=v=>{var b=zy(),y=C(b,!0);S(b),N(()=>he(y,e.time)),$(v,b)};V(u,v=>{o()?v(m):v(p,!1)})}S(a),N(v=>l=ne(a,1,"wrapper s-b",null,l,v),[()=>({live:o(),playing:r()})]),$(i,a)}var Ql=(i,e,t)=>{let o;return()=>(window.clearTimeout(o),i?o=window.setTimeout(()=>e.set(!0),t):e.set(!1),()=>window.clearTimeout(o))};var qy=L('<div role="timer" data-testid="thumb-timer"><!></div>'),Qy={hash:"s-h",code:".thumb-timer.s-h{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(i,e){B(e,!0),G(i,Qy);let[t,o]=De(),r=()=>w(m,"$disabled",t),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=ae(!1);var p=qy();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),Os(p,()=>Ql(a()&&s.features.usePerformanceFix,m,s.disableInvisibleComponentsTimeout)),N(y=>v=ne(p,1,"thumb-timer s-h",null,v,y),[()=>({"out-of-flow":r(),hidden:a()})]),$(i,p),H(),o()}var Gl=i=>{if(!navigator.clipboard){ub(i);return}navigator.clipboard.writeText(i).catch(()=>ub(i))};function ub(i){if(document.queryCommandSupported&&document.queryCommandSupported("copy")){let e=document.createElement("textarea");e.textContent=i,e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e),e.select();try{document.execCommand("copy")}finally{document.body.removeChild(e)}}}var ip=require("@vkontakte/videoplayer-core/es2015");var gm=require("@vkontakte/videoplayer-core/es2015");var vm="focus-hidden";var Hr=i=>{i.stopPropagation(),i.preventDefault()},hm=i=>{var e,t;(t=(e=i.parentNode)==null?void 0:e.firstElementChild)==null||t.classList.remove(vm)},Yy=i=>{var t;let e=i.previousElementSibling;e||(e=(t=i.parentNode)==null?void 0:t.lastElementChild),e==null||e.focus()},jy=i=>{var t;let e=i.nextElementSibling;e||(e=(t=i.parentNode)==null?void 0:t.firstElementChild),e==null||e.focus()},Xy=i=>{let e=i.code;return e==="Tab"&&!i.shiftKey||e==="ArrowDown"},Zy=i=>{let e=i.code;return e==="Tab"||e==="ArrowUp"},pb=i=>i.code==="Escape",Jy=i=>i.code==="ArrowLeft",ac=(i,e=[])=>{let t=i.code;return["Enter","Space",...e].includes(t)},fb=i=>{Xy(i)?(Hr(i),jy(i.target)):Zy(i)&&(Hr(i),Yy(i.target))},pa=i=>!gm.clientChecker.device.isAndroid&&(i==null?void 0:i.detail)===0||gm.clientChecker.device.isAndroid&&(i==null?void 0:i.pointerType)==="",Yl=(i,e,t)=>gt(null,null,function*(){yield $o(),i&&!i.classList.contains("opened")&&!e&&$e(t)&&(yield $o(),t.set(!1),i.focus())}),mb=(i,e,t)=>gt(null,null,function*(){yield $o(),i&&!e&&$e(t)&&(t.set(!1),i.focus())}),lc=(i,e,t,o=!1)=>gt(null,null,function*(){if(yield $o(),!!i&&e&&!o){let a=i.children[0];a==null||a.classList.toggle(vm,!t),a==null||a.focus()}}),vb=(i,e)=>gt(null,null,function*(){setTimeout(()=>{let t=i[e];!!t&&t.focus()},100)}),ep=(i,e)=>{fb(i),hm(i.target),pb(i)&&(Hr(i),e())},tp=(i,e)=>gt(null,null,function*(){ac(i,["ArrowRight"])&&(Hr(i),e())}),gb=(i,e,t)=>gt(null,null,function*(){if(fb(i),Jy(i)){Hr(i),e();return}pb(i)&&(Hr(i),t())}),jl=(i,e)=>{ac(i)&&(Hr(i),e())},hb=(i,e,t)=>{if(ac(i))Hr(i),t(!e);else{let o=i.code;if(o==="ArrowLeft"&&e){t(!1),Hr(i);return}o==="ArrowRight"&&!e&&(t(!0),Hr(i))}},_b=i=>{let e=i.getBoundingClientRect(),t=-14,o=e.left+e.width,r=e.top+t;return{right:o,bottom:r}},bb=i=>{if(!i)return{top:0,left:0};let e=i.getBoundingClientRect(),t=-58,o=8,r=e.left+o;return{bottom:e.bottom+t,left:r}};var ja=require("@vkontakte/videoplayer-shared/es2015");var ss={"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 _m=require("@vkontakte/videoplayer-shared/es2015");var t0=(i,e)=>{jl(i,()=>e())},i0=L('<li class="item s-1u" role="menuitem" tabindex="0"> </li>'),o0={hash:"s-1u",code:".item.s-1u{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-1u:hover{background:rgba(66,66,66,.5);color:var(--white)}"};function bm(i,e){B(e,!0),G(i,o0);let t=h(e,"onClick",3,_m.noop),o=h(e,"closeContextMenu",3,_m.noop),r=d=>{d==null||d.stopPropagation(),t()(),o()()};var a=i0();a.__click=r,a.__keydown=[t0,r];var l=C(a,!0);S(a),N(()=>{var d;Oe(a,"aria-label",(d=e.ariaLabel)!=null?d:e.label),Oe(a,"data-testid",e.id),he(l,e.label)}),$(i,a),H()}tt(["click","keydown"]);var Ya=(i,e)=>i.weight-e.weight;var Xl=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(Xl||{});var n0=(i,e)=>{ep(i,e)},r0=i=>{i.preventDefault()},s0=L('<ul role="menu" data-testid="context-menu" class="s-18"></ul>'),a0={hash:"s-18",code:"ul.s-18{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 $m(i,e){B(e,!0),G(i,a0);let[t,o]=De(),r=()=>w(Ce,"$playerPhase",t),a=()=>w(se,"$isLive$",t),l=()=>w(fe,"$isPiPEnabled$",t),d=()=>w(X,"$chromecastState$",t),s=()=>w(oe,"$pictureInPictureApiIsActive$",t),u=()=>w(Z,"$isLooped$",t),m=()=>w(Y,"$positionExact$",t),p=()=>w(K,"$additionalContextMenuItems$",t),v=h(e,"visible",3,!1),b=h(e,"position",19,()=>({top:0,left:0})),y=h(e,"playerContainerRef",3,void 0),_=h(e,"menuElementRef",15,void 0),x=q(0),I=q(0),T=ye(),{pictureInPicture$:R}=To(),A=Nt(),P=T.ui.contextMenu.visible$,E=T.ui.debugPanelVisible,K=T.ui.additionalContextMenuItems$,F=T.ui.t,z=T.actions.internal.togglePictureInPicture,X=T.state.chromecastState$,se=T.state.isLive$,Y=T.state.positionExact$,re=T.state.isInteractive,Z=T.state.looped$,Ce=T.playerPhase,{isEnabled$:fe,isActive$:oe}=R,pe=f(()=>r()==="video"),Se=f(()=>!!a()&&n(pe)),de=f(()=>["thumb","LiveWaitingStart","LiveWaitingRecover","LiveWaitingRecord"].includes(r())),qe=f(()=>{var be;return A.features.copyVideoLink&&((be=T.callbacks)==null?void 0:be.onCopyVideoLink)}),ve=f(()=>n(qe)&&!n(de)&&!re&&!n(Se)),We=f(()=>{var be;return!!((be=T.callbacks)!=null&&be.onCopyEmbedCodeClicked)}),U=f(()=>l()&&d()!==ip.ChromecastState.CONNECTED&&!re&&n(pe)&&!ip.clientChecker.browser.isFirefox),D=f(()=>!re&&!n(de)&&!n(Se)),ue=f(()=>A.features.videoRotate&&!re&&!n(de)),ce=f(()=>A.showSupport&&!s()),_e=f(()=>A.features.saveTraceInfoToFile),ge=()=>{var be;P.set(!1),(be=e.returnFocus)==null||be.call(e)},Ke=(be,He)=>{if(!_()||!y())return;let Qe=_().getBoundingClientRect(),st=y().getBoundingClientRect();O(x,be-st.left),O(I,He-st.top),n(x)+Qe.width>st.width&&O(x,st.width-Qe.width),n(I)+Qe.height>st.height&&O(I,st.height-Qe.height),O(x,Math.max(n(x),0),!0),O(I,Math.max(n(I),0),!0)};Be(()=>{gt(null,null,function*(){if(_()&&y()){yield $o();let{top:He,left:Qe,bottom:st,right:Jt}=b(),Kt=Qe!=null?Qe:0,pi=He!=null?He:0,_i=_().getBoundingClientRect();(0,ja.isNullable)(Qe)&&!(0,ja.isNullable)(Jt)&&(Kt=Jt-_i.width),(0,ja.isNullable)(He)&&!(0,ja.isNullable)(st)&&(pi=st-_i.height),Kt=Math.max(Kt,0),pi=Math.max(pi,0),Ke(Kt,pi)}})});let te=()=>{T.actions.internal.videoRotate()},ze=()=>{(0,ja.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),T.actions.internal.reportProblem(),T.actions.internal.pause()},ee=()=>{let be=T.actions.internal.getDebugTextData();if(A.features.saveDebugInfoToFile){let He=new Blob([...be],{type:"plain/text"}),Qe=window.URL.createObjectURL(He);Ka(Qe,"vk_player_debug_info","txt")}else Gl(T.actions.internal.getDebugTextData())},ke=()=>{let be=T.actions.internal.getTraceTextData(),He=new Blob([...be],{type:"application/json"}),Qe=window.URL.createObjectURL(He);Ka(Qe,"vk_player_trace_info","json")},Ue=()=>{E.set(!0)},Ie=()=>gt(null,null,function*(){var be;try{z()}finally{(be=e.returnFocus)==null||be.call(e)}}),Pe=()=>{T.actions.internal.setLooped(!u())},Ne=()=>{var be,He;if(n(We)){let Qe=(He=(be=T.callbacks)==null?void 0:be.onCopyEmbedCodeClicked)==null?void 0:He.call(be);Qe&&Gl(Qe)}},_t=(be=!1)=>{var He,Qe;if((He=T.callbacks)!=null&&He.onCopyVideoLink){let st=(Qe=T.callbacks)==null?void 0:Qe.onCopyVideoLink(be,m());st&&Gl(st)}},It=f(()=>A.features.saveDebugInfoToFile?F("menu_save_debug"):F("menu_copy_debug")),Pt=f(()=>n(qe)?{id:"copy-link",weight:ss["copy-link"],label:F("menu_copy_video_link"),onClick:()=>_t()}:void 0),at=f(()=>n(ve)?{id:"copy-link-timestamp",weight:ss["copy-link-timestamp"],label:F("menu_copy_video_link_with_timestamp"),onClick:()=>_t(!0)}:void 0),Et=f(()=>n(We)?{id:"copy-embed-code",weight:ss["copy-embed-code"],label:F("menu_copy_embed_code"),onClick:Ne}:void 0),ei=f(()=>n(U)?{id:"pip",weight:ss.pip,label:s()?F("menu_pip_close"):F("menu_pip"),onClick:Ie}:void 0),Yt=f(()=>n(D)?{id:"video-loop",weight:ss["video-loop"],label:u()?F("menu_video_loop_off"):F("menu_video_loop_on"),ariaLabel:F("aria_label_menu_loop"),onClick:Pe}:void 0),Dt=f(()=>n(ue)?{id:"rotate",weight:ss.rotate,label:F("menu_video_rotate"),ariaLabel:F("aria_label_menu_rotate"),onClick:te}:void 0),jt=f(()=>n(ce)?{id:"report",weight:ss.report,label:F("menu_report"),ariaLabel:`${F("menu_report")}. ${F("aria_label_new_tab_alert")}`,onClick:ze}:void 0),Q=f(()=>({id:"save-debug",weight:ss["save-debug"],label:n(It),onClick:ee})),Ae=f(()=>n(_e)?{id:"save-trace",weight:ss["save-trace"],label:F("menu_save_debug"),onClick:ke}:void 0),Re=f(()=>({id:"debug-info",weight:ss["debug-info"],label:F("menu_debug_overlay"),ariaLabel:F("aria_label_menu_debug_overlay"),onClick:Ue})),we=f(()=>[n(Pt),n(at),n(Et),n(ei),n(Yt),n(Dt),n(jt),n(Q),n(Ae),n(Re),...p()].filter(be=>!!be).sort(Ya));var Fe=Ve(),xe=le(Fe);{var kt=be=>{var He=s0();He.__contextmenu=[r0],He.__keydown=[n0,ge],wi(He,21,()=>n(we),Qe=>Qe.id,(Qe,st)=>{bm(Qe,{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:ge})}),S(He),ot(He,Qe=>_(Qe),()=>_()),N(()=>{var Qe,st;return Ye(He,`top: ${(Qe=n(I))!=null?Qe:""}px; left: ${(st=n(x))!=null?st:""}px;`)}),$(be,He)};V(xe,be=>{v()&&be(kt)})}$(i,Fe),H(),o()}tt(["contextmenu","keydown"]);var op=class{constructor(e){this.value=e,this.next=null}};var Zl=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let t=new op(e);this.top?(this.top.next=t,this.top=t):(this.top=t,this.bottom=t),this.size++,this.size>this.maxSize&&this.bottom&&(this.bottom=this.bottom.next)}getValuesFromBottom(){let e=[],t=this.bottom;for(;t;)e.push(t.value),t=t.next;return e}};var l0=L('<div class="container s-13"><canvas class="s-13"></canvas></div>'),d0={hash:"s-13",code:".container.s-13{display:inline-block;height:16px;width:120px}canvas.s-13{margin-top:2px;transform:scaleY(-1)}"};function dc(i,e){B(e,!0),G(i,d0);let t=h(e,"values",19,()=>[]),o=q(void 0),r=q(null),a=16,l=120,d=60,s=l/d;Ot(()=>{n(o).width=l,n(o).height=a,O(r,n(o).getContext("2d"),!0)});function u(v,b,y,_,x){x===0&&(x=1),v.fillStyle="#fff",v.fillRect(b,y,_,x)}Be(()=>{let v="";if(n(r)){let b=t()[0];for(let _=1;_<t().length;_++)t()[_]>b&&(b=t()[_]);n(r).clearRect(0,0,l,a);let y=d-1;for(let _=t().length-1;_>=0;_--){let x=y*s,I=b>0?a*(t()[_]/b):0;u(n(r),x,0,s,I),v=I+" "+v,y--}}});var m=l0(),p=C(m);ot(p,v=>O(o,v),()=>n(o)),S(m),$(i,m),H()}var ym=require("@vkontakte/videoplayer-shared/es2015");var c0=(i,e)=>{i.stopPropagation(),ym.safeStorage.remove(Gd),e.set(!1)},u0=L('<div class="s-l"><div class="s-l">Video id</div> <span> </span></div>'),p0=L('<div class="s-l"><div class="s-l">VSID</div> <span> </span></div>'),f0=L('<div class="s-l"><div class="s-l">Provider</div> <span> </span></div>'),m0=L('<div class="s-l"><div class="s-l">Streams</div> <span> </span></div>'),v0=L('<div class="s-l"><div class="s-l">Viewport</div> <span> </span></div>'),g0=L('<div class="s-l"><div class="s-l">Video size</div> <span> </span></div>'),h0=L('<div class="s-l"><div class="s-l">CDN host</div> <span> </span></div>'),_0=L('<div class="s-l"><div class="s-l">Volume</div> <span> </span></div>'),b0=L('<div class="s-l"><div class="s-l">Position</div> <span> </span></div>'),$0=L('<div class="s-l"><div class="s-l">Buffer</div> <span> </span></div>'),y0=L('<div class="s-l"><div class="s-l">Nbuffer</div> <span> </span></div>'),x0=L('<div class="s-l"><div class="s-l">Live latency</div> <span> </span></div>'),w0=L('<div class="s-l"><div class="s-l">Segment</div> <span> </span></div>'),S0=L('<div class="s-l"><div class="s-l">Network</div> <!> <span> </span></div>'),C0=L('<div class="s-l"><div class="s-l">V bitrate</div> <!> <span> </span></div>'),T0=L('<div role="region"><button class="close s-l" title="закрыть">[x]</button> <div class="content s-l"><div class="s-l"><div class="s-l">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="s-l"><div class="s-l">Dropped</div> <span> </span></div> <!> <!> <div class="s-l"><div class="s-l">FPS</div> <!> <span> </span></div></div></div>'),I0={hash:"s-l",code:".container.s-l{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-l{left:16px;top:16px}button.close.s-l{background-color:transparent;border:none;color:#fff;cursor:pointer;outline:0;padding:0;position:absolute;right:5px;top:3px}.content.s-l{padding:5px}.content.s-l>div:where(.s-l)>div:where(.s-l){display:inline-block;padding:0 5px;text-align:right;width:60px}"};function cc(i,e){B(e,!0),G(i,I0);let[t,o]=De(),r=()=>w(d,"$isMobile",t),a=ye(),l=a.ui.debugPanelVisible,d=a.ui.isMobile,s=q(ui(a.actions.internal.getDebugPanelData())),u=a.actions.internal.getVideoElement(),m=q(0),p=q(0),v=q(0),b=new Zl(60),y=new Zl(60),_=new Zl(60),x=q(ui([])),I=q(ui([])),T=q(ui([])),R=j("aria_label_debug_panel");Ot(()=>{ym.safeStorage.set(Gd,"true"),a.actions.internal.startLogging(),u&&(O(p,u.getVideoPlaybackQuality().droppedVideoFrames,!0),O(m,u.getVideoPlaybackQuality().totalVideoFrames,!0));let Q=window.setInterval(()=>{O(s,a.actions.internal.getDebugPanelData(),!0)},500),Ae;return u&&(Ae=window.setInterval(()=>{if(u){O(p,u.getVideoPlaybackQuality().droppedVideoFrames,!0);let Re=u.getVideoPlaybackQuality().totalVideoFrames;O(v,Re-n(m)),O(m,Re,!0),b.push(n(v)),n(s).speed&&y.push(n(s).speed),n(s).bitrate&&_.push(n(s).bitrate),O(x,b.getValuesFromBottom(),!0),O(I,y.getValuesFromBottom(),!0),O(T,_.getValuesFromBottom(),!0)}},1e3)),()=>{a.actions.internal.stopLogging(),clearInterval(Q),Ae&&clearInterval(Ae)}});var A=T0();let P;var E=C(A);E.__click=[c0,l];var K=k(E,2),F=C(K),z=k(C(F),2),X=C(z,!0);S(z),S(F);var se=k(F,2);{var Y=Q=>{var Ae=u0(),Re=k(C(Ae),2),we=C(Re,!0);S(Re),S(Ae),N(()=>he(we,n(s).id)),$(Q,Ae)};V(se,Q=>{n(s).id&&Q(Y)})}var re=k(se,2);{var Z=Q=>{var Ae=p0(),Re=k(C(Ae),2),we=C(Re,!0);S(Re),S(Ae),N(()=>he(we,n(s).vsid)),$(Q,Ae)};V(re,Q=>{n(s).vsid&&Q(Z)})}var Ce=k(re,2);{var fe=Q=>{var Ae=f0(),Re=k(C(Ae),2),we=C(Re,!0);S(Re),S(Ae),N(()=>he(we,n(s).provider)),$(Q,Ae)};V(Ce,Q=>{n(s).provider&&Q(fe)})}var oe=k(Ce,2);{var pe=Q=>{var Ae=m0(),Re=k(C(Ae),2),we=C(Re);S(Re),S(Ae),N(()=>{var Fe,xe;return he(we,`Video: ${(Fe=n(s).videoCodec||"")!=null?Fe:""} ${n(s).hdr?"(HDR)":""}
|
|
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"},ib=f0;var Us=new Map;Us.set(Kl.InterfaceLanguage.EN,ib);Us.set(Kl.InterfaceLanguage.RU,tb);var ob=new Map,rm=({language:t,pack:e,fallback:i})=>{if(Us.has(t)){let o=Us.get(t);Us.set(t,Ye(Ye({},o),e))}else Us.set(t,e);ob.set(t,i)},sm=t=>Us.has(t),am=(t,e,i,o)=>{var l;let r=Us.get(t),a=r==null?void 0:r[e];if((0,Kl.isNullable)(a)){let d=(l=ob.get(t))!=null?l:o,s=d?Us.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},q=(t,e)=>{let{interfaceLanguage$:i}=xe(),o=_e(i),r=Vt();return am(o,t,e,r.defaultLanguage)};var m0=ke('<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 tc(t,e){B(e,!1);let i=q("video360");Jo(),Xe(t,{width:"76",height:"45",get ariaLabel(){return i},testId:"video-360-icon",shadow:!0,children:(o,r)=>{var a=m0();$(o,a)},$$slots:{default:!0}}),F()}var xV=require("@vkontakte/videoplayer-core/es2015");var ss=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(ss||{});var qu=t=>{if(t.requestFullscreen)return t.requestFullscreen();if(t.msRequestFullscreen)return t.msRequestFullscreen();if(t.webkitRequestFullscreen)return t.webkitRequestFullscreen();if(t.mozRequestFullScreen)return t.mozRequestFullScreen();let e=t.querySelector("video");return e!=null&&e.webkitEnterFullscreen?(e.webkitEnterFullscreen(),Promise.resolve()):Promise.reject()},Gu=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),nb=(t,e)=>e?!0:t.fullscreenEnabled||!!t.webkitFullscreenEnabled||!!t.mozFullscreenEnabled||!!t.msFullscreenEnabled,rb=t=>{let e=t;e!=null&&e.webkitExitFullscreen&&(e==null||e.webkitExitFullscreen())},ic=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},fa=()=>!!ic(),Yu=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},ju=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},sb=t=>{let e=window.screen;return(r=>yt(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 lm=require("@vkontakte/videoplayer-core/es2015"),ab=()=>({title:q("hotkey_map_modal_title"),closeBtnText:q("hotkey_map_modal_close_btn_text"),groups:[{title:q("hotkey_map_group_title_common"),items:[{description:q("hotkey_map_item_mute_description"),value:q("hotkey_map_item_mute_value")},{description:q("hotkey_map_item_volume_up_description"),value:q("hotkey_map_item_volume_up_value")},{description:q("hotkey_map_item_volume_down_description"),value:q("hotkey_map_item_volume_down_value")},{description:q("hotkey_map_item_pip_description"),value:q("hotkey_map_item_pip_value")},{description:q("hotkey_map_item_full_screen_description"),value:q("hotkey_map_item_full_screen_value")},{description:q("hotkey_map_item_show_context_menu_description"),value:q("hotkey_map_item_show_context_menu_value")},{description:q("hotkey_map_item_show_hotkey_map_description"),value:q("hotkey_map_item_show_hotkey_map_value")}]},{title:q("hotkey_map_group_title_playback"),items:[{description:q("hotkey_map_item_play_toggle_description"),value:q("hotkey_map_item_play_toggle_value")},{description:q("hotkey_map_item_seek_backward_description"),value:q("hotkey_map_item_seek_backward_value")},{description:q("hotkey_map_item_seek_forward_description"),value:q("hotkey_map_item_seek_forward_value")},{description:q("hotkey_map_item_fast_seek_backward_description"),value:q("hotkey_map_item_fast_seek_backward_value")},{description:q("hotkey_map_item_fast_seek_forward_description"),value:q("hotkey_map_item_fast_seek_forward_value")},{description:q("hotkey_map_item_rate_down_description"),value:q("hotkey_map_item_rate_down_value")},{description:q("hotkey_map_item_rate_up_description"),value:q("hotkey_map_item_rate_up_value")},{description:q("hotkey_map_item_prev_frame_description"),value:q("hotkey_map_item_prev_frame_value")},{description:q("hotkey_map_item_next_frame_description"),value:q("hotkey_map_item_next_frame_value")},{description:q("hotkey_map_item_jump_seek_description"),value:q("hotkey_map_item_jump_seek_value")},{description:q("hotkey_map_item_next_video_description"),value:q("hotkey_map_item_next_video_value")},{description:q("hotkey_map_item_prev_video_description"),value:q("hotkey_map_item_prev_video_value")}]},{title:q("hotkey_map_group_title_subtitles"),items:[{description:q("hotkey_map_item_subtitles_toggle_description"),value:q("hotkey_map_item_subtitles_toggle_value")}]},{title:q("hotkey_map_group_title_episodes"),items:[{description:q("hotkey_map_item_prev_episode_description"),value:lm.clientChecker.device.isApple?q("hotkey_map_item_prev_episode_mac_value"):q("hotkey_map_item_prev_episode_pc_value")},{description:q("hotkey_map_item_next_episode_description"),value:lm.clientChecker.device.isApple?q("hotkey_map_item_next_episode_mac_value"):q("hotkey_map_item_next_episode_pc_value")}]}]});var Ql=require("@vkontakte/videoplayer-shared/es2015");function dm(t,e){B(e,!1);let i=xe();Mt(()=>{i.getAdmanWrapper().startPostroll()}),Jo(),F()}var lb=require("@vkontakte/videoplayer-shared/es2015");var v0=ke('<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>'),g0=ke('<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 Nr(t,e){B(e,!0);let i=g(e,"direction",3,"left"),o=g(e,"useBtnColor",3,!1),r=m(()=>["up","down"].includes(i())),a=m(()=>["right","down"].includes(i())),l=m(()=>`chevron-icon--${i()}`),d=m(()=>(()=>{let f="";return n(a)&&(f+="transform: rotate(180deg);"),f.length?f:void 0})()),s=m(()=>o()?pa:"currentColor"),u=m(()=>n(r)?"7":"16");Xe(t,{width:"12",get height(){return n(u)},get fill(){return n(s)},get testId(){return n(l)},get style(){return n(d)},children:(f,p)=>{var v=Ve(),b=le(v);{var y=w=>{var I=v0();$(w,I)},_=w=>{var I=g0();$(w,I)};M(b,w=>{n(r)?w(y):w(_,!1)})}$(f,v)},$$slots:{default:!0}}),F()}var h0=(t,e,i)=>{t.stopPropagation(),n(e)&&i()()},_0=L('<div class="skip s-1h"> <!></div>'),b0=L("<div><!></div>"),$0={hash:"s-1h",code:".container.s-1h{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-1h{bottom:14px;font-size:15px;max-width:142px;top:unset}.skip.s-1h{align-items:flex-end;display:flex;gap:4px;white-space:nowrap}.skippable.s-1h{color:var(--white);cursor:pointer}.skippable.s-1h:hover{color:hsla(0,0%,100%,.75)}"};function cm(t,e){B(e,!0),Q(t,$0);let[i,o]=Be(),r=()=>x(u,"$isMobile",i),a=g(e,"position",3,0),l=g(e,"secondsToWatchBeforeSkip",3,0),d=g(e,"skipAd",3,lb.noop),u=xe().ui.isMobile,f=m(()=>a()>0&&a()>=l());var p=b0();let v;p.__click=[h0,f,d];var b=C(p);{var y=w=>{var I=_0(),T=C(I),R=k(T);Nr(R,{direction:"right"}),S(I),O(A=>he(T,`${A!=null?A:""} `),[()=>q("skip_ads_now")]),$(w,I)},_=w=>{var I=Ss();O(T=>he(I,T),[()=>q("skip_ads_after",{time:Math.ceil(l()-a()).toFixed(0)})]),$(w,I)};M(b,w=>{n(f)?w(y):w(_,!1)})}S(p),O(w=>v=ie(p,1,"container s-1h",null,v,w),[()=>({"container-mobile":r(),skippable:n(f)})]),$(t,p),F(),o()}Je(["click"]);var y0=L('<button class="go-to-site s-1g"> </button>'),x0={hash:"s-1g",code:"button.go-to-site.s-1g{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 um(t,e){B(e,!1),Q(t,x0),Jo();var i=y0(),o=C(i,!0);S(i),O(r=>he(o,r),[()=>q("visit_advertiser")],br),$(t,i),F()}var w0=L('<div class="top-gradient-mobile s-i"></div>'),S0=L('<div class="container s-i"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),C0={hash:"s-i",code:".container.s-i{height:100%;width:100%}.top-gradient-mobile.s-i{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,C0);let[i,o]=Be(),r=()=>x(W,"$canSkipAd",i),a=()=>x(U,"$adPlaybackState",i),l=()=>x(R,"$isMobile",i),d=()=>x(Y,"$adPosition",i),s=()=>x(te,"$secondsToWatchBeforeSkipAd",i),u=()=>x(T,"$isVideoEnded",i),f=g(e,"adsSlotId",3,void 0),p=g(e,"adsParams",3,void 0),v=g(e,"adsAutoplayParam",3,void 0),b=g(e,"duration",3,0),y=g(e,"adsExternalApi",3,void 0),_=g(e,"adsJson",3,void 0),w=xe(),I=Vt(),T=w.state.isEnded$,R=w.ui.isMobile,A=I.ads.isMobileGoToSiteButton,P=K(void 0),E=K(void 0),z=!1,U=w.ads.playbackState,W=w.ads.canSkip,Y=w.ads.position,te=w.ads.secondsToWatchBeforeSkip,J=m(()=>r()&&a()!=="inactive"),oe=m(()=>l()&&a()!=="inactive"&&A);Mt(()=>{let X=w.getAdmanWrapper();if(Ql.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[(0,Ql.now)(),f()]}),!f()){X.onAdmanLoadingError();return}let N=()=>{var Le;let{width:et,height:Ae}=_e(w.ui.playerSize),j=_e(w.ui.isFullscreen),ne=(Le=v())!=null?Le:_e(w.ui.isAutoplay),Se=I.ads.paramsOverride;return{width:et,height:Ae,isFullscreen:j,isAutoplay:ne,adsContainer:n(P),adsVideoElement:n(E),slotId:f(),params:p(),paramsOverride:Se,duration:b(),externalApi:y(),json:_()}},me=et=>yt(null,null,function*(){et&&(yield ho());let Ae=N();yield X.initAdman(Ae),z=!0}),ue=new AbortController,Re=()=>{ue.abort()};return window.AdmanHTML?me(!0).catch(()=>{X.onAdmanLoadingError()}):X.loadAdman(ue.signal).then(()=>me(!1)).catch(()=>{X.onAdmanLoadingError()}),()=>{Ql.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[(0,Ql.now)(),f()]}),!z&&Re()}});var de=S0(),ae=C(de);{var pe=X=>{var N=w0();$(X,N)};M(ae,X=>{l()&&X(pe)})}var ee=k(ae,2);ot(ee,X=>D(E,X),()=>n(E));var $e=k(ee,2);{var Ee=X=>{cm(X,{get position(){return d()},get secondsToWatchBeforeSkip(){return s()},get skipAd(){return w.actions.internal.skipAd}})};M($e,X=>{n(J)&&X(Ee)})}var ce=k($e,2);{var Qe=X=>{dm(X,{})};M(ce,X=>{u()&&X(Qe)})}var fe=k(ce,2);{var ve=X=>{um(X,{})};M(fe,X=>{n(oe)&&X(ve)})}S(de),ot(de,X=>D(P,X),()=>n(P)),$(t,de),F(),o()}var en=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 T0=ke('<path fill="#fff"></path>'),I0=ke("<path></path><!>",1);function nc(t,e){let i=g(e,"isActive",3,!1),o=m(()=>i()?"live-active-icon":"live-icon"),r=m(()=>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";Xe(t,{width:"42",height:"20",get testId(){return n(o)},get fill(){return n(r)},children:(l,d)=>{var s=I0(),u=le(s),f=k(u);{var p=v=>{var b=T0();De(b,"d",a),$(v,b)};M(f,v=>{i()&&v(p)})}O(()=>De(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 E0=L('<div class="equalizer s-a"><div class="col s-a"></div> <div class="col s-a"></div> <div class="col s-a"></div></div>'),P0=L('<div class="live-icon s-a"><!></div>'),k0=L('<span class="text s-a"> </span>'),A0=L("<div><!> <!></div>"),L0={hash:"s-a",code:".wrapper.s-a{background-color:var(--black-alpha-40);border-radius:4px;padding:2px 6px;transition:visibility var(--controls-transition-duration),opacity var(--controls-transition-duration);white-space:nowrap}.wrapper.live.s-a{background:var(--red);border-radius:2px;font-size:0;height:20px;line-height:20px;padding:0 7px}.equalizer.s-a{display:inline-block;height:10px;margin-right:4px;margin-top:-4px;position:relative;vertical-align:middle;width:10px}.live.s-a .equalizer:where(.s-a){margin-top:-2px}.equalizer.s-a .col:where(.s-a){animation:1.5s linear infinite alternate;animation-play-state:paused;background:var(--btn-color,--white);bottom:0;height:10px;margin-right:2px;position:absolute;transform-origin:50% 100%;width:2px}.playing.s-a .equalizer:where(.s-a) .col:where(.s-a){animation-play-state:running}.equalizer.s-a .col:where(.s-a):first-child{animation-name:s-a-thumb-timer-equalizer-col1;left:0}.equalizer.s-a .col:where(.s-a):nth-child(2){animation-name:s-a-thumb-timer-equalizer-col2;left:3px}.equalizer.s-a .col:where(.s-a):nth-child(3){animation-name:s-a-thumb-timer-equalizer-col3;left:6px}.live-icon.s-a{display:inline-block;height:20px;margin:0 -7px;vertical-align:middle;width:42px}@keyframes s-a-thumb-timer-equalizer-col1{0%{transform:scaleY(.1)}25%{transform:scaleY(.8)}50%{transform:scaleY(.4)}75%{transform:scaleY(.6)}to{transform:scaleY(.1)}}@keyframes s-a-thumb-timer-equalizer-col2{0%{transform:scaleY(1)}25%{transform:scaleY(.3)}50%{transform:scaleY(.9)}75%{transform:scaleY(.6)}to{transform:scaleY(1)}}@keyframes s-a-thumb-timer-equalizer-col3{0%{transform:scaleY(.6)}25%{transform:scaleY(.9)}50%{transform:scaleY(.1)}75%{transform:scaleY(.9)}to{transform:scaleY(.6)}}.text.s-a{color:var(--controls-time);font-size:13px;font-weight:500;line-height:16px}"};function rc(t,e){Q(t,L0);let i=g(e,"withEqualizer",3,!1),o=g(e,"isLive",3,!1),r=g(e,"isPlaying",3,!1);var a=A0();let l;var d=C(a);{var s=v=>{var b=E0();$(v,b)};M(d,v=>{i()&&v(s)})}var u=k(d,2);{var f=v=>{var b=P0(),y=C(b);nc(y,{isActive:!0}),S(b),$(v,b)},p=v=>{var b=k0(),y=C(b,!0);S(b),O(()=>he(y,e.time)),$(v,b)};M(u,v=>{o()?v(f):v(p,!1)})}S(a),O(v=>l=ie(a,1,"wrapper s-a",null,l,v),[()=>({live:o(),playing:r()})]),$(t,a)}var ql=(t,e,i)=>{let o;return()=>(window.clearTimeout(o),t?o=window.setTimeout(()=>e.set(!0),i):e.set(!1),()=>window.clearTimeout(o))};var M0=L('<div role="timer" data-testid="thumb-timer"><!></div>'),V0={hash:"s-j",code:".thumb-timer.s-j{bottom:0;margin:8px;position:absolute;right:0;transition:visibility var(--controls-transition-duration),opacity var(--controls-transition-duration);z-index:var(--thumb-timer-z-index)}"};function sc(t,e){B(e,!0),Q(t,V0);let[i,o]=Be(),r=()=>x(f,"$disabled",i),a=g(e,"isHidden",3,!1),l=g(e,"isLive",3,!1),d=g(e,"isPlaying",3,!1),s=Vt(),u=m(()=>en(e.duration-e.position)),f=se(!1);var p=M0();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),Fs(p,()=>ql(a()&&s.features.usePerformanceFix,f,s.disableInvisibleComponentsTimeout)),O(y=>v=ie(p,1,"thumb-timer s-j",null,v,y),[()=>({"out-of-flow":r(),hidden:a()})]),$(t,p),F(),o()}var Gl=t=>{if(!navigator.clipboard){db(t);return}navigator.clipboard.writeText(t).catch(()=>db(t))};function db(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 Ju=require("@vkontakte/videoplayer-core/es2015");var fm=require("@vkontakte/videoplayer-core/es2015");var pm="focus-hidden";var Br=t=>{t.stopPropagation(),t.preventDefault()},mm=t=>{var e,i;(i=(e=t.parentNode)==null?void 0:e.firstElementChild)==null||i.classList.remove(pm)},D0=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},O0=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},N0=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},B0=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},cb=t=>t.code==="Escape",F0=t=>t.code==="ArrowLeft",ac=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},ub=t=>{N0(t)?(Br(t),O0(t.target)):B0(t)&&(Br(t),D0(t.target))},ga=t=>!fm.clientChecker.device.isAndroid&&(t==null?void 0:t.detail)===0||fm.clientChecker.device.isAndroid&&(t==null?void 0:t.pointerType)==="",Yl=(t,e,i)=>yt(null,null,function*(){yield ho(),t&&!t.classList.contains("opened")&&!e&&_e(i)&&(yield ho(),i.set(!1),t.focus())}),pb=(t,e,i)=>yt(null,null,function*(){yield ho(),t&&!e&&_e(i)&&(i.set(!1),t.focus())}),lc=(t,e,i,o=!1)=>yt(null,null,function*(){if(yield ho(),!!t&&e&&!o){let a=t.children[0];a==null||a.classList.toggle(pm,!i),a==null||a.focus()}}),fb=(t,e)=>yt(null,null,function*(){setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)}),Xu=(t,e)=>{ub(t),mm(t.target),cb(t)&&(Br(t),e())},Zu=(t,e)=>yt(null,null,function*(){ac(t,["ArrowRight"])&&(Br(t),e())}),mb=(t,e,i)=>yt(null,null,function*(){if(ub(t),F0(t)){Br(t),e();return}cb(t)&&(Br(t),i())}),jl=(t,e)=>{ac(t)&&(Br(t),e())},vb=(t,e,i)=>{if(ac(t))Br(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),Br(t);return}o==="ArrowRight"&&!e&&(i(!0),Br(t))}},gb=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,r=e.top+i;return{right:o,bottom:r}},hb=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 ja=require("@vkontakte/videoplayer-shared/es2015");var as={"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 vm=require("@vkontakte/videoplayer-shared/es2015");var U0=(t,e)=>{jl(t,()=>e())},z0=L('<li class="item s-1j" role="menuitem" tabindex="0"> </li>'),W0={hash:"s-1j",code:".item.s-1j{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-1j:hover{background:rgba(66,66,66,.5);color:var(--white)}"};function gm(t,e){B(e,!0),Q(t,W0);let i=g(e,"onClick",3,vm.noop),o=g(e,"closeContextMenu",3,vm.noop),r=d=>{d==null||d.stopPropagation(),i()(),o()()};var a=z0();a.__click=r,a.__keydown=[U0,r];var l=C(a,!0);S(a),O(()=>{var d;De(a,"aria-label",(d=e.ariaLabel)!=null?d:e.label),De(a,"data-testid",e.id),he(l,e.label)}),$(t,a),F()}Je(["click","keydown"]);var Ya=(t,e)=>t.weight-e.weight;var Xl=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(Xl||{});var K0=(t,e)=>{Xu(t,e)},Q0=t=>{t.preventDefault()},q0=L('<ul role="menu" data-testid="context-menu" class="s-q"></ul>'),G0={hash:"s-q",code:"ul.s-q{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 hm(t,e){B(e,!0),Q(t,G0);let[i,o]=Be(),r=()=>x(ae,"$playerPhase",i),a=()=>x(te,"$isLive$",i),l=()=>x(pe,"$isPiPEnabled$",i),d=()=>x(Y,"$chromecastState$",i),s=()=>x(ee,"$pictureInPictureApiIsActive$",i),u=()=>x(de,"$isLooped$",i),f=()=>x(J,"$positionExact$",i),p=()=>x(z,"$additionalContextMenuItems$",i),v=g(e,"visible",3,!1),b=g(e,"position",19,()=>({top:0,left:0})),y=g(e,"playerContainerRef",3,void 0),_=g(e,"menuElementRef",15,void 0),w=K(0),I=K(0),T=xe(),{pictureInPicture$:R}=yo(),A=Vt(),P=T.ui.contextMenu.visible$,E=T.ui.debugPanelVisible,z=T.ui.additionalContextMenuItems$,U=T.ui.t,W=T.actions.internal.togglePictureInPicture,Y=T.state.chromecastState$,te=T.state.isLive$,J=T.state.positionExact$,oe=T.state.isInteractive,de=T.state.looped$,ae=T.playerPhase,{isEnabled$:pe,isActive$:ee}=R,$e=m(()=>r()==="video"),Ee=m(()=>!!a()&&n($e)),ce=m(()=>["thumb","LiveWaitingStart","LiveWaitingRecover","LiveWaitingRecord"].includes(r())),Qe=m(()=>{var ye;return A.features.copyVideoLink&&((ye=T.callbacks)==null?void 0:ye.onCopyVideoLink)}),fe=m(()=>n(Qe)&&!n(ce)&&!oe&&!n(Ee)),ve=m(()=>{var ye;return!!((ye=T.callbacks)!=null&&ye.onCopyEmbedCodeClicked)}),X=m(()=>l()&&d()!==Ju.ChromecastState.CONNECTED&&!oe&&n($e)&&!Ju.clientChecker.browser.isFirefox),N=m(()=>!oe&&!n(ce)&&!n(Ee)),me=m(()=>A.features.videoRotate&&!oe&&!n(ce)),ue=m(()=>A.showSupport&&!s()),Re=m(()=>A.features.saveTraceInfoToFile),et=()=>{var ye;P.set(!1),(ye=e.returnFocus)==null||ye.call(e)},Ae=(ye,qe)=>{if(!_()||!y())return;let Ue=_().getBoundingClientRect(),at=y().getBoundingClientRect();D(w,ye-at.left),D(I,qe-at.top),n(w)+Ue.width>at.width&&D(w,at.width-Ue.width),n(I)+Ue.height>at.height&&D(I,at.height-Ue.height),D(w,Math.max(n(w),0),!0),D(I,Math.max(n(I),0),!0)};Fe(()=>{yt(null,null,function*(){if(_()&&y()){yield ho();let{top:qe,left:Ue,bottom:at,right:Yt}=b(),At=Ue!=null?Ue:0,Xt=qe!=null?qe:0,yi=_().getBoundingClientRect();(0,ja.isNullable)(Ue)&&!(0,ja.isNullable)(Yt)&&(At=Yt-yi.width),(0,ja.isNullable)(qe)&&!(0,ja.isNullable)(at)&&(Xt=at-yi.height),At=Math.max(At,0),Xt=Math.max(Xt,0),Ae(At,Xt)}})});let j=()=>{T.actions.internal.videoRotate()},ne=()=>{(0,ja.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),T.actions.internal.reportProblem(),T.actions.internal.pause()},Se=()=>{let ye=T.actions.internal.getDebugTextData();if(A.features.saveDebugInfoToFile){let qe=new Blob([...ye],{type:"plain/text"}),Ue=window.URL.createObjectURL(qe);qa(Ue,"vk_player_debug_info","txt")}else Gl(T.actions.internal.getDebugTextData())},Le=()=>{let ye=T.actions.internal.getTraceTextData(),qe=new Blob([...ye],{type:"application/json"}),Ue=window.URL.createObjectURL(qe);qa(Ue,"vk_player_trace_info","json")},ze=()=>{E.set(!0)},Ce=()=>yt(null,null,function*(){var ye;try{W()}finally{(ye=e.returnFocus)==null||ye.call(e)}}),we=()=>{T.actions.internal.setLooped(!u())},He=()=>{var ye,qe;if(n(ve)){let Ue=(qe=(ye=T.callbacks)==null?void 0:ye.onCopyEmbedCodeClicked)==null?void 0:qe.call(ye);Ue&&Gl(Ue)}},st=(ye=!1)=>{var qe,Ue;if((qe=T.callbacks)!=null&&qe.onCopyVideoLink){let at=(Ue=T.callbacks)==null?void 0:Ue.onCopyVideoLink(ye,f());at&&Gl(at)}},pt=m(()=>A.features.saveDebugInfoToFile?U("menu_save_debug"):U("menu_copy_debug")),Rt=m(()=>n(Qe)?{id:"copy-link",weight:as["copy-link"],label:U("menu_copy_video_link"),onClick:()=>st()}:void 0),ct=m(()=>n(fe)?{id:"copy-link-timestamp",weight:as["copy-link-timestamp"],label:U("menu_copy_video_link_with_timestamp"),onClick:()=>st(!0)}:void 0),ni=m(()=>n(ve)?{id:"copy-embed-code",weight:as["copy-embed-code"],label:U("menu_copy_embed_code"),onClick:He}:void 0),Ct=m(()=>n(X)?{id:"pip",weight:as.pip,label:s()?U("menu_pip_close"):U("menu_pip"),onClick:Ce}:void 0),Ot=m(()=>n(N)?{id:"video-loop",weight:as["video-loop"],label:u()?U("menu_video_loop_off"):U("menu_video_loop_on"),ariaLabel:U("aria_label_menu_loop"),onClick:we}:void 0),Nt=m(()=>n(me)?{id:"rotate",weight:as.rotate,label:U("menu_video_rotate"),ariaLabel:U("aria_label_menu_rotate"),onClick:j}:void 0),Gt=m(()=>n(ue)?{id:"report",weight:as.report,label:U("menu_report"),ariaLabel:`${U("menu_report")}. ${U("aria_label_new_tab_alert")}`,onClick:ne}:void 0),Te=m(()=>({id:"save-debug",weight:as["save-debug"],label:n(pt),onClick:Se})),G=m(()=>n(Re)?{id:"save-trace",weight:as["save-trace"],label:U("menu_save_debug"),onClick:Le}:void 0),Ne=m(()=>({id:"debug-info",weight:as["debug-info"],label:U("menu_debug_overlay"),ariaLabel:U("aria_label_menu_debug_overlay"),onClick:ze})),be=m(()=>[n(Rt),n(ct),n(ni),n(Ct),n(Ot),n(Nt),n(Gt),n(Te),n(G),n(Ne),...p()].filter(ye=>!!ye).sort(Ya));var Oe=Ve(),Ie=le(Oe);{var bt=ye=>{var qe=q0();qe.__contextmenu=[Q0],qe.__keydown=[K0,et],wi(qe,21,()=>n(be),Ue=>Ue.id,(Ue,at)=>{gm(Ue,{get id(){return n(at).id},get label(){return n(at).label},get ariaLabel(){return n(at).ariaLabel},get onClick(){return n(at).onClick},closeContextMenu:et})}),S(qe),ot(qe,Ue=>_(Ue),()=>_()),O(()=>{var Ue,at;return Ke(qe,`top: ${(Ue=n(I))!=null?Ue:""}px; left: ${(at=n(w))!=null?at:""}px;`)}),$(ye,qe)};M(Ie,ye=>{v()&&ye(bt)})}$(t,Oe),F(),o()}Je(["contextmenu","keydown"]);var ep=class{constructor(e){this.value=e,this.next=null}};var Zl=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new ep(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 Y0=L('<div class="container s-1f"><canvas class="s-1f"></canvas></div>'),j0={hash:"s-1f",code:".container.s-1f{display:inline-block;height:16px;width:120px}canvas.s-1f{margin-top:2px;transform:scaleY(-1)}"};function dc(t,e){B(e,!0),Q(t,j0);let i=g(e,"values",19,()=>[]),o=K(void 0),r=K(null),a=16,l=120,d=60,s=l/d;Mt(()=>{n(o).width=l,n(o).height=a,D(r,n(o).getContext("2d"),!0)});function u(v,b,y,_,w){w===0&&(w=1),v.fillStyle="#fff",v.fillRect(b,y,_,w)}Fe(()=>{let v="";if(n(r)){let b=i()[0];for(let _=1;_<i().length;_++)i()[_]>b&&(b=i()[_]);n(r).clearRect(0,0,l,a);let y=d-1;for(let _=i().length-1;_>=0;_--){let w=y*s,I=b>0?a*(i()[_]/b):0;u(n(r),w,0,s,I),v=I+" "+v,y--}}});var f=Y0(),p=C(f);ot(p,v=>D(o,v),()=>n(o)),S(f),$(t,f),F()}var _m=require("@vkontakte/videoplayer-shared/es2015");var X0=(t,e)=>{t.stopPropagation(),_m.safeStorage.remove(Yd),e.set(!1)},Z0=L('<div class="s-k"><div class="s-k">Video id</div> <span> </span></div>'),J0=L('<div class="s-k"><div class="s-k">VSID</div> <span> </span></div>'),ey=L('<div class="s-k"><div class="s-k">Provider</div> <span> </span></div>'),ty=L('<div class="s-k"><div class="s-k">Streams</div> <span> </span></div>'),iy=L('<div class="s-k"><div class="s-k">Viewport</div> <span> </span></div>'),oy=L('<div class="s-k"><div class="s-k">Video size</div> <span> </span></div>'),ny=L('<div class="s-k"><div class="s-k">CDN host</div> <span> </span></div>'),ry=L('<div class="s-k"><div class="s-k">Volume</div> <span> </span></div>'),sy=L('<div class="s-k"><div class="s-k">Position</div> <span> </span></div>'),ay=L('<div class="s-k"><div class="s-k">Buffer</div> <span> </span></div>'),ly=L('<div class="s-k"><div class="s-k">Nbuffer</div> <span> </span></div>'),dy=L('<div class="s-k"><div class="s-k">Live latency</div> <span> </span></div>'),cy=L('<div class="s-k"><div class="s-k">Segment</div> <span> </span></div>'),uy=L('<div class="s-k"><div class="s-k">Network</div> <!> <span> </span></div>'),py=L('<div class="s-k"><div class="s-k">V bitrate</div> <!> <span> </span></div>'),fy=L('<div role="region"><button class="close s-k" title="закрыть">[x]</button> <div class="content s-k"><div class="s-k"><div class="s-k">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="s-k"><div class="s-k">Dropped</div> <span> </span></div> <!> <!> <div class="s-k"><div class="s-k">FPS</div> <!> <span> </span></div></div></div>'),my={hash:"s-k",code:".container.s-k{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-k{left:16px;top:16px}button.close.s-k{background-color:transparent;border:none;color:#fff;cursor:pointer;outline:0;padding:0;position:absolute;right:5px;top:3px}.content.s-k{padding:5px}.content.s-k>div:where(.s-k)>div:where(.s-k){display:inline-block;padding:0 5px;text-align:right;width:60px}"};function cc(t,e){B(e,!0),Q(t,my);let[i,o]=Be(),r=()=>x(d,"$isMobile",i),a=xe(),l=a.ui.debugPanelVisible,d=a.ui.isMobile,s=K(ri(a.actions.internal.getDebugPanelData())),u=a.actions.internal.getVideoElement(),f=K(0),p=K(0),v=K(0),b=new Zl(60),y=new Zl(60),_=new Zl(60),w=K(ri([])),I=K(ri([])),T=K(ri([])),R=q("aria_label_debug_panel");Mt(()=>{_m.safeStorage.set(Yd,"true"),a.actions.internal.startLogging(),u&&(D(p,u.getVideoPlaybackQuality().droppedVideoFrames,!0),D(f,u.getVideoPlaybackQuality().totalVideoFrames,!0));let Te=window.setInterval(()=>{D(s,a.actions.internal.getDebugPanelData(),!0)},500),G;return u&&(G=window.setInterval(()=>{if(u){D(p,u.getVideoPlaybackQuality().droppedVideoFrames,!0);let Ne=u.getVideoPlaybackQuality().totalVideoFrames;D(v,Ne-n(f)),D(f,Ne,!0),b.push(n(v)),n(s).speed&&y.push(n(s).speed),n(s).bitrate&&_.push(n(s).bitrate),D(w,b.getValuesFromBottom(),!0),D(I,y.getValuesFromBottom(),!0),D(T,_.getValuesFromBottom(),!0)}},1e3)),()=>{a.actions.internal.stopLogging(),clearInterval(Te),G&&clearInterval(G)}});var A=fy();let P;var E=C(A);E.__click=[X0,l];var z=k(E,2),U=C(z),W=k(C(U),2),Y=C(W,!0);S(W),S(U);var te=k(U,2);{var J=Te=>{var G=Z0(),Ne=k(C(G),2),be=C(Ne,!0);S(Ne),S(G),O(()=>he(be,n(s).id)),$(Te,G)};M(te,Te=>{n(s).id&&Te(J)})}var oe=k(te,2);{var de=Te=>{var G=J0(),Ne=k(C(G),2),be=C(Ne,!0);S(Ne),S(G),O(()=>he(be,n(s).vsid)),$(Te,G)};M(oe,Te=>{n(s).vsid&&Te(de)})}var ae=k(oe,2);{var pe=Te=>{var G=ey(),Ne=k(C(G),2),be=C(Ne,!0);S(Ne),S(G),O(()=>he(be,n(s).provider)),$(Te,G)};M(ae,Te=>{n(s).provider&&Te(pe)})}var ee=k(ae,2);{var $e=Te=>{var G=ty(),Ne=k(C(G),2),be=C(Ne);S(Ne),S(G),O(()=>{var Oe,Ie;return he(be,`Video: ${(Oe=n(s).videoCodec||"")!=null?Oe:""} ${n(s).hdr?"(HDR)":""}
|
|
57
55
|
&
|
|
58
|
-
Audio: ${(xe=n(s).audioCodec||"")!=null?xe:""} ${n(s).audioLanguage?`(${n(s).audioLanguage})`:""}`)}),$(Q,Ae)};V(oe,Q=>{(n(s).videoCodec||n(s).audioCodec)&&Q(pe)})}var Se=k(oe,2);{var de=Q=>{var Ae=v0(),Re=k(C(Ae),2),we=C(Re,!0);S(Re),S(Ae),N(()=>he(we,n(s).viewport)),$(Q,Ae)};V(Se,Q=>{n(s).viewport&&Q(de)})}var qe=k(Se,2);{var ve=Q=>{var Ae=g0(),Re=k(C(Ae),2),we=C(Re,!0);S(Re),S(Ae),N(()=>he(we,n(s).videoSize)),$(Q,Ae)};V(qe,Q=>{n(s).videoSize&&Q(ve)})}var We=k(qe,2);{var U=Q=>{var Ae=h0(),Re=k(C(Ae),2),we=C(Re,!0);S(Re),S(Ae),N(()=>he(we,n(s).cdn)),$(Q,Ae)};V(We,Q=>{n(s).cdn&&Q(U)})}var D=k(We,2);{var ue=Q=>{var Ae=_0(),Re=k(C(Ae),2),we=C(Re);S(Re),S(Ae),N(()=>{var Fe;return he(we,`${(Fe=n(s).volume)!=null?Fe:""} %`)}),$(Q,Ae)};V(D,Q=>{n(s).volume&&Q(ue)})}var ce=k(D,2);{var _e=Q=>{var Ae=b0(),Re=k(C(Ae),2),we=C(Re);S(Re),S(Ae),N(Fe=>he(we,`${Fe!=null?Fe:""} s`),[()=>n(s).position.toFixed(2)]),$(Q,Ae)};V(ce,Q=>{n(s).position&&Q(_e)})}var ge=k(ce,2);{var Ke=Q=>{var Ae=$0(),Re=k(C(Ae),2),we=C(Re);S(Re),S(Ae),N(Fe=>he(we,`${Fe!=null?Fe:""} s`),[()=>n(s).buffer.toFixed(2)]),$(Q,Ae)};V(ge,Q=>{n(s).buffer&&Q(Ke)})}var te=k(ge,2);{var ze=Q=>{var Ae=y0(),Re=k(C(Ae),2),we=C(Re);S(Re),S(Ae),N(Fe=>he(we,`${Fe!=null?Fe:""} s`),[()=>n(s).nativeBuffer.toFixed(2)]),$(Q,Ae)};V(te,Q=>{n(s).nativeBuffer&&Q(ze)})}var ee=k(te,2);{var ke=Q=>{var Ae=x0(),Re=k(C(Ae),2),we=C(Re);S(Re),S(Ae),N(Fe=>he(we,`${Fe!=null?Fe:""} s`),[()=>n(s).liveLatency.toFixed(2)]),$(Q,Ae)};V(ee,Q=>{n(s).liveLatency&&Q(ke)})}var Ue=k(ee,2);{var Ie=Q=>{var Ae=w0(),Re=k(C(Ae),2),we=C(Re,!0);S(Re),S(Ae),N(Fe=>he(we,Fe),[()=>[{value:n(s).currentVideoSegmentLength,title:"Video:"},{value:n(s).currentAudioSegmentLength,title:"Audio:"}].filter(({value:Fe})=>Fe).map(({value:Fe,title:xe})=>`${xe} ${((Fe!=null?Fe:0)/1e3).toFixed(2)} s`).join(" & ")]),$(Q,Ae)};V(Ue,Q=>{(n(s).currentVideoSegmentLength||n(s).currentAudioSegmentLength)&&Q(Ie)})}var Pe=k(Ue,2),Ne=k(C(Pe),2),_t=C(Ne);S(Ne),S(Pe);var It=k(Pe,2);{var Pt=Q=>{var Ae=S0(),Re=k(C(Ae),2);dc(Re,{get values(){return n(I)}});var we=k(Re,2),Fe=C(we);S(we),S(Ae),N(xe=>he(Fe,`${xe!=null?xe:""} Kbps`),[()=>n(s).speed.toFixed(2)]),$(Q,Ae)};V(It,Q=>{n(s).speed&&Q(Pt)})}var at=k(It,2);{var Et=Q=>{var Ae=C0(),Re=k(C(Ae),2);dc(Re,{get values(){return n(T)}});var we=k(Re,2),Fe=C(we);S(we),S(Ae),N(xe=>he(Fe,`${xe!=null?xe:""} Kbps`),[()=>n(s).bitrate.toFixed(2)]),$(Q,Ae)};V(at,Q=>{n(s).bitrate&&Q(Et)})}var ei=k(at,2),Yt=k(C(ei),2);dc(Yt,{get values(){return n(x)}});var Dt=k(Yt,2),jt=C(Dt,!0);S(Dt),S(ei),S(K),S(A),N(Q=>{var Ae,Re;P=ne(A,1,"container s-l",null,P,Q),Oe(A,"aria-label",R),he(X,n(s).version),he(_t,`${(Ae=n(p))!=null?Ae:""} / ${(Re=n(m))!=null?Re:""} frames`),he(jt,n(v))},[()=>({"container-mobile":r()})]),$(i,A),H(),o()}tt(["click"]);var $b=require("@vkontakte/videoplayer-shared/es2015"),E0=(i,e)=>{i.stopPropagation(),e()()},P0=L('<div class="close s-11"></div>'),k0={hash:"s-11",code:'.close.s-11{cursor:pointer;height:16px;opacity:.8;position:relative;transition:opacity .2s;width:16px}.close.s-11:hover{opacity:1}.close.s-11:after,.close.s-11:before{background-color:var(--white);content:" ";height:16px;left:8px;position:absolute;width:2px}.close.s-11:before{transform:rotate(45deg)}.close.s-11:after{transform:rotate(-45deg)}'};function Bs(i,e){B(e,!0),G(i,k0);let t=h(e,"onClick",3,$b.noop);var o=P0();o.__click=[E0,t],$(i,o),H()}tt(["click"]);var yb=require("@vkontakte/videoplayer-shared/es2015");var vn=i=>`width:${i}px;height:${i}px;`;var A0=Ee('<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 Pn(i,e){B(e,!0);let t=f(()=>vn(e.size));et(i,{get width(){return"48"},get height(){return"48"},get fill(){return e.fill},get style(){return n(t)},testId:"play-icon",get shadow(){return e.shadow},children:(o,r)=>{var a=A0();$(o,a)},$$slots:{default:!0}}),H()}var L0=L('<div class="timer s-12"><canvas class="timer-canvas s-12" width="100" height="100"></canvas> <!></div>'),M0={hash:"s-12",code:".timer.s-12{align-items:center;background:rgba(31,31,31,.65);border-radius:50%;display:flex;height:50px;justify-content:space-around;transition:background .2s;width:50px}.timer.s-12:hover{background:rgba(31,31,31,.85)}.timer-canvas.s-12{height:50px;position:absolute;width:50px}"};function uc(i,e){B(e,!0),G(i,M0);let t=h(e,"isRunning",3,!0),o=h(e,"onTimerEnded",3,yb.noop),r=5e3,a=q(void 0),l,d,s=0,u;Be(()=>{t()&&At(()=>{d=Date.now(),s=requestAnimationFrame(p)})});let m=()=>{s&&(cancelAnimationFrame(s),s=0)},p=()=>{m(),t()&&(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()())};Ot(()=>{l=n(a).getContext("2d"),l&&(l.lineWidth=6,l.lineCap="round",l.strokeStyle="#fff")}),mn(()=>{m()});var v=L0(),b=C(v);ot(b,_=>O(a,_),()=>n(a));var y=k(b,2);Pn(y,{get size(){return"24"}}),S(v),$(i,v),H()}var V0=(i,e,t)=>{e(!1),t()},R0=L('<div class="overlay s-1b"></div> <div class="next-video s-1b"><div class="top s-1b"><div class="caption s-1b"> </div> <!></div> <div class="row s-1b"><div class="column s-1b"><div class="thumb s-1b"><div></div> <!></div></div> <div class="column s-1b"><div class="title s-1b"> </div></div></div></div>',1),O0={hash:"s-1b",code:".overlay.s-1b{background:rgba(0,0,0,.72);height:100%;position:absolute;width:100%}.next-video.s-1b{display:flex;flex-direction:column;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:362px}.top.s-1b{display:flex;justify-content:space-between}.caption.s-1b{color:var(--white);font-size:11px;font-weight:700;opacity:.8;text-transform:uppercase}.row.s-1b{background:rgba(48,48,48,.8);cursor:pointer;display:flex;flex-direction:row;height:102px;margin-top:6px;width:100%}.column.s-1b{display:flex;flex-basis:50%;flex-direction:column}.thumb.s-1b{align-items:center;background:no-repeat 50%;background-size:cover;display:flex;justify-content:space-around;position:relative}.thumb.s-1b,.thumb-overlay.s-1b{height:100%;width:100%}.thumb-overlay.s-1b{position:absolute}.thumb-overlay.withOpacity.s-1b{background:var(--black);opacity:.3}.title.s-1b{color:var(--white);font-size:12px;font-weight:700;line-height:1.6;max-height:52px;overflow:hidden;padding:10px 16px}"};function xm(i,e){B(e,!0),G(i,O0);let[t,o]=De(),r=()=>w(d,"$autoplayNextEnabled$",t),a=()=>w(s,"$timerNextVideoRunning$",t),l=ye(),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())},_=()=>{e.clickCloseIcon(),b()};Ot(()=>{e.isHide||m(),e.isHide&&r()&&(u(!1),v())});var x=Ve(),I=le(x);{var T=R=>{var A=R0(),P=k(le(A),2),E=C(P),K=C(E),F=C(K,!0);S(K);var z=k(K,2);Bs(z,{onClick:_}),S(E);var X=k(E,2);X.__click=[V0,u,p];var se=C(X),Y=C(se),re=C(Y);let Z;var Ce=k(re,2);{var fe=de=>{let qe=f(()=>a()&&r());uc(de,{get isRunning(){return n(qe)},onTimerEnded:y})};V(Ce,de=>{r()&&de(fe)})}S(Y),S(se);var oe=k(se,2),pe=C(oe),Se=C(pe,!0);S(pe),S(oe),S(X),S(P),N((de,qe)=>{he(F,de),Ye(Y,`background-image: url('${e.thumb}')`),Z=ne(re,1,"thumb-overlay s-1b",null,Z,qe),he(Se,e.title)},[()=>j("end_screen_next_video"),()=>({withOpacity:r()})]),$(R,A)};V(I,R=>{e.isHide||R(T)})}$(i,x),H(),o()}tt(["click"]);var ma=require("@vkontakte/videoplayer-core/es2015"),xb=require("@vkontakte/videoplayer-shared/es2015"),kn=require("@vkontakte/videoplayer-statistics/es2015");var wm=(i,e)=>Math.min(+(i+e).toFixed(2),1),Sm=(i,e)=>Math.max(+(i-e).toFixed(2),0),np=(i,e,t)=>{let o=wm(e,t);e<1&&i.actions.internal.setVolume(o)},rp=(i,e,t)=>{let o=Sm(e,t);e>0&&i.actions.internal.setVolume(o)};var fa=({isAudioDisabled:i,isAudioAvailable:e,isAds:t,audioDisabledHintCallback:o,audioIsNotExistHintCallback:r})=>i?t?!0:(o==null||o(),!1):e?!0:(r==null||r(),!1);function sp(){var i,e,t;return(t=(e=(i=document.activeElement)==null?void 0:i.shadowRoot)==null?void 0:e.activeElement)!=null?t:null}var D0=(i,e)=>{e(i)},B0=L('<div class="keyboard-controls s-1g" tabindex="-1" role="region"><!></div>'),H0={hash:"s-1g",code:".keyboard-controls.s-1g{bottom:0;left:0;position:absolute;right:0;top:0}"};function Cm(i,e){var we,Fe;B(e,!0),G(i,H0);let[t,o]=De(),r=()=>w(Ce,"$disabledControls$",t),a=()=>w(Ke,"$isInteractiveTime$",t),l=()=>w(te,"$showInteractiveTimeIndicatorTooltip$",t),d=()=>w(z,"$playbackState$",t),s=()=>w(U,"$isEnded$",t),u=()=>w(ve,"$doubleForwardAvailable$",t),m=()=>w(qe,"$doubleForwardOn$",t),p=()=>w(D,"$overlayContainer$",t),v=()=>w(se,"$adPlaybackState",t),b=()=>w(Y,"$positionExact$",t),y=()=>w(re,"$duration$",t),_=()=>w(_e,"$isAudioAvailable$",t),x=()=>w(Z,"$volume$",t),I=()=>w(X,"$canChangePlaybackSpeed$",t),T=()=>w(fe,"$muted$",t),R=()=>w(oe,"$currentSubtitle$",t),A=h(e,"nextButtonActive",3,!1),P=h(e,"prevButtonActive",3,!1),E=ye(),K=Nt(),F=E.getLogger().createComponentLog("KeyboardControls component"),z=E.state.playbackState$,X=E.state.canChangePlaybackSpeed$,se=E.ads.playbackState,Y=E.state.positionExact$,re=E.state.duration$,Z=E.state.volume$,Ce=E.ui.controls.disabledControls$,fe=E.state.muted$,oe=E.state.currentSubtitle$,pe=E.ui.contextMenu.openedByHotKey$,Se=E.ui.contextMenu.lastActiveElem$,de=E.ui.contextMenu.visible$,qe=E.ui.doubleForwardOn$,ve=E.ui.doubleForwardAvailable$,We=E.ui.contextMenu.position$,U=E.state.isEnded$,D=E.ui.overlayContainer$,ue=(we=E.callbacks)==null?void 0:we.onAudioDoesNotExistHint,ce=(Fe=E.callbacks)==null?void 0:Fe.onAudioDisabledHint,_e=E.state.isAudioAvailable$,ge=E.state.isAudioDisabled,Ke=E.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:te}=To(),ze=0,ee=!0,ke=q(void 0),Ue=xe=>(xe!==ee&&(ee=xe,ze=0),ze+=1,(K.controls.seekStepKeyboard+K.controls.seekStepKeyboard*ze)/1e3),Ie=!0,Pe=()=>{if(!r().has("PLAY_BUTTON"))if(a()&&l()&&te.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{E.actions.internal.togglePlay();let xe="PLAY";d()===ma.PlaybackState.PAUSED?xe="PAUSE":s()&&(xe="REPLAY"),e.showHotKeyHelpers({type:xe})}},Ne=xe=>{if(!u()||!xe&&m()){Pe(),e.stopDoubleForward(),Ie=!0;return}Ie=!1,!xe&&e.startDoubleForwardActivationTimer()},_t=()=>{Ie||(m()||Pe(),e.stopDoubleForward(),Ie=!0)},It=xe=>{xe!=="Space"&&e.stopDoubleForward()},Pt=xe=>{let kt=bb(p());We.set(kt),Se.set(xe.target),pe.set(!0),de.set(!0)},at=(xe,kt=!1)=>{var Ht,$i;let be=xe.target,He=(Ht=be==null?void 0:be.getAttribute("role"))==null?void 0:Ht.includes("menuitem"),Qe=be.classList.contains("btn"),st=xe.code;if(Qe&&st==="Space")return!1;let Jt=$_.has(st);if(He&&Jt)return!1;let Kt=!b_.has(st);if(xe.ctrlKey&&Kt||xe.altKey&&Kt||xe.metaKey)return!1;let pi=He&&st==="Escape";y_.has(st)||pi||e.hideContextMenu();let _i=d()===ma.PlaybackState.PLAYING||d()===ma.PlaybackState.PAUSED,mi=e.isAds&&(v()==="paused"||v()==="playing"),uo=!mi&&!r().has("TIMELINE"),yo=xe.shiftKey&&["Digit1","Numpad1"].includes(st);if(!yo&&!(_i||mi))return!1;F({message:`key down, code: ${st}, isExternal = ${kt}`});let Io=!1,wt=()=>{Io=!0,kt||xe.preventDefault()};if(It(st),yo)return Pt(xe),wt(),!0;switch(st){case"KeyJ":case"ArrowLeft":{if(!uo)break;if(xe.ctrlKey||xe.altKey){let St=E.actions.internal.getPrevEpisode();E.actions.internal.seekToPrevEpisode(St),St&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:St.text}),wt()}else{let St=xe.shiftKey?Ue(!1):K.controls.seekStepKeyboard/1e3,Ct=Math.max(b()-St,0);b()>0&&(E.actions.internal.seekTime(Ct,kn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:St.toString()}),wt())}break}case"KeyL":case"ArrowRight":{if(!uo)break;if(xe.ctrlKey||xe.altKey){let St=E.actions.internal.getNextEpisode();E.actions.internal.seekToNextEpisode(St),St&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:St.text}),wt()}else{let St=xe.shiftKey?Ue(!0):K.controls.seekStepKeyboard/1e3,Ct=Math.min(b()+St,y());Math.round(b())<Math.round(y())&&(E.actions.internal.seekTime(Ct,kn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:St.toString()}),wt())}break}case"ArrowUp":{if(fa({isAudioDisabled:ge,audioDisabledHintCallback:ce,isAudioAvailable:_(),audioIsNotExistHintCallback:ue,isAds:e.isAds})){let St=x(),Ct=K.controls.volumeStepKeyboard,Si=St<=1;if(np(E,St,Ct),Si){let qt=Math.round(wm(St,Ct)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:qt}})}}wt();break}case"ArrowDown":{if(fa({isAudioDisabled:ge,audioDisabledHintCallback:ce,isAudioAvailable:_(),audioIsNotExistHintCallback:ue,isAds:e.isAds})){let St=x(),Ct=K.controls.volumeStepKeyboard,Si=St>=0;if(rp(E,St,Ct),Si){let qt=Math.round(Sm(St,Ct)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:qt}})}}wt();break}case"Comma":{if(xe.shiftKey){if(!m()&&I()){let St=E.actions.internal.decrementPlaybackRate();e.showHotKeyHelpers({type:"RATE_DOWN",text:St==null?void 0:St.displayValue}),wt()}}else{if(mi||d()!==ma.PlaybackState.PAUSED)break;let St=Math.max(b()-K.controls.seekStepFrame/1e3,0);b()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),E.actions.internal.clearDelayedBufferingCheckTimeout(),E.actions.internal.seekTime(St,kn.SeekAction.DOUBLE_TAP),wt())}break}case"Period":{if(xe.shiftKey){if(!m()&&I()){let St=E.actions.internal.incrementPlaybackRate();e.showHotKeyHelpers({type:"RATE_UP",text:St==null?void 0:St.displayValue}),wt()}}else{if(mi||d()!==ma.PlaybackState.PAUSED)break;let St=Math.min(b()+K.controls.seekStepFrame/1e3,y());b()<y()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),E.actions.internal.clearDelayedBufferingCheckTimeout(),E.actions.internal.seekTime(St,kn.SeekAction.DOUBLE_TAP),wt())}break}case"KeyK":Pe(),wt();break;case"Space":Ne(xe.repeat),wt();break;case"KeyM":{fa({isAudioDisabled:ge,audioDisabledHintCallback:ce,isAudioAvailable:_(),audioIsNotExistHintCallback:ue,isAds:e.isAds})&&(e.showHotKeyHelpers({type:T()?"VOLUME":"MUTE"}),E.actions.internal.toggleMuted()),wt();break}case"KeyF":e.toggleFullscreen(),wt();break;case"KeyC":E.actions.internal.toggleSubtitle(),R().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:($i=R())==null?void 0:$i.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),wt();break;case"KeyI":E.actions.internal.togglePictureInPicture(),wt();break;case"Digit1":case"Numpad1":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.1,kn.SeekAction.DOUBLE_TAP),wt();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.2,kn.SeekAction.DOUBLE_TAP),wt();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.3,kn.SeekAction.DOUBLE_TAP),wt();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.4,kn.SeekAction.DOUBLE_TAP),wt();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.5,kn.SeekAction.DOUBLE_TAP),wt();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.6,kn.SeekAction.DOUBLE_TAP),wt();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.7,kn.SeekAction.DOUBLE_TAP),wt();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.8,kn.SeekAction.DOUBLE_TAP),wt();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.9,kn.SeekAction.DOUBLE_TAP),wt();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(0,kn.SeekAction.DOUBLE_TAP),wt();break;case"Slash":{xe.shiftKey&&K.features.hotKeyMapModal&&(e.showKeyMap(),wt());break}case"KeyN":xe.shiftKey&&A()&&(E.actions.internal.nextVideoClick(),wt());break;case"KeyP":xe.shiftKey&&P()&&(E.actions.internal.prevVideoClick(),wt());break;case"ShiftLeft":case"ShiftRight":wt();break;case"Tab":case"Escape":case"Enter":break;default:(0,xb.checkNever)(st);break}return Io},Et=xe=>{let kt=xe.code;if(xe.ctrlKey||xe.altKey||xe.metaKey)return;let be=d()===ma.PlaybackState.PLAYING||d()===ma.PlaybackState.PAUSED,He=e.isAds&&(v()==="paused"||v()==="playing");if(be||He)switch(kt){case"ShiftLeft":case"ShiftRight":ze=0;break;case"Space":_t();break}},ei=j("aria_label_video_player"),Yt=()=>{var xe;return(xe=n(ke))==null?void 0:xe.focus()},Dt=()=>n(ke)===sp(),jt=xe=>xe.type==="keydown"?at(xe,!0):(xe.type==="keyup"&&Et(xe),!1);var Q=B0();Q.__keyup=Et,Q.__keydown=[D0,at];var Ae=C(Q);ai(Ae,()=>{var xe;return(xe=e.children)!=null?xe:ht}),S(Q),ot(Q,xe=>O(ke,xe),()=>n(ke)),N(()=>Oe(Q,"aria-label",ei)),$(i,Q);var Re=H({focus:Yt,isFocused:Dt,handleExternalKeyboardEvent:jt});return o(),Re}tt(["keyup","keydown"]);var F0=L('<div class="container s-j"><div class="dot s-j"></div> <div class="dot s-j"></div> <div class="dot s-j"></div></div>'),U0={hash:"s-j",code:".container.s-j{display:flex;left:50%;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%)}.dot.s-j:first-child{animation-delay:0s}.dot.s-j:nth-child(2){animation-delay:.18s}.dot.s-j:nth-child(3){animation-delay:.36s}@keyframes s-j-dot_animation{0%{opacity:.2}30%{opacity:1}to{opacity:.2}}.dot.s-j{animation-duration:.75s;animation-iteration-count:infinite;animation-name:s-j-dot_animation;background:var(--btn-color);border-radius:4px;height:8px;width:8px}.dot.s-j+.dot:where(.s-j){margin-left:4px}"};function Xa(i,e){G(i,U0);let t=h(e,"style",3,"");var o=F0();N(()=>Ye(o,t())),$(i,o)}var z0=Ee('<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 Tm(i,e){et(i,{get fill(){return e.fill},children:(t,o)=>{var r=z0();$(t,r)},$$slots:{default:!0}})}var Za=require("@vkontakte/videoplayer-shared/es2015"),W0=i=>{i.stopPropagation()},K0=L("<button><!></button>"),q0={hash:"s-1r",code:"button.btn.s-1r{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-1r{width:100%}button.btn--live.s-1r{padding:10px 4px}button.btn-jc-l.s-1r{justify-content:left}button.btn-m.s-1r{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-1r,button.btn-m--play.s-1r{align-items:center;display:flex;justify-content:center}button.btn-m--play.s-1r{height:var(--big-play-size);padding:16px;position:relative;width:var(--big-play-size)}button.btn-m--next.s-1r,button.btn-m--prev.s-1r{height:50px;position:absolute;width:50px}button.btn-m--prev.s-1r{right:calc(100% + 35px)}button.btn-m--next.s-1r{left:calc(100% + 35px)}button.btn.s-1r:disabled{cursor:default;pointer-events:none}button.btn.s-1r:not(.btn-full-opacity):disabled{opacity:.4}button.btn.s-1r:not(:disabled):hover{opacity:.8}button.pr-0.s-1r{padding-right:0}button.pl-0.s-1r{padding-left:0}"};function Wt(i,e){B(e,!0),G(i,q0);let t=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,Za.noop),b=h(e,"focus",3,Za.noop),y=h(e,"blur",3,Za.noop),_=f(()=>v()===Za.noop?null:A=>{A.stopPropagation(),v()(A)}),x=f(()=>b()===Za.noop?null:A=>{A.preventDefault(),b()()}),I=f(()=>y()===Za.noop?null:A=>{A.preventDefault(),y()()});var T=K0();T.__pointerdown=[W0],T.__click=function(...A){var P;(P=n(_))==null||P.apply(this,A)};var R=C(T);ai(R,()=>{var A;return(A=e.children)!=null?A:ht}),S(T),ot(T,A=>s(A),()=>s()),N(()=>{var A,P,E,K,F,z,X,se;ne(T,1,`btn ${(A=t())!=null?A:""}`,"s-1r"),Ye(T,o()||null),T.disabled=(P=r())!=null?P:null,Oe(T,"aria-hidden",(E=l())!=null?E:null),Oe(T,"aria-label",(K=d())!=null?K:null),Oe(T,"aria-keyshortcuts",(F=u())!=null?F:null),Oe(T,"aria-expanded",(z=m())!=null?z:null),Oe(T,"data-testid",(X=a())!=null?X:null),Oe(T,"tabindex",p()),Oe(T,"role",e.role),Oe(T,"aria-checked",(se=e.areaChecked)!=null?se:null)}),pt("focus",T,function(...A){var P;(P=n(x))==null||P.apply(this,A)}),pt("blur",T,function(...A){var P;(P=n(I))==null||P.apply(this,A)}),$(i,T),H()}tt(["pointerdown","click"]);var Q0=(i,e)=>{i.key==="Escape"&&e.onClose(),(i.key==="ArrowUp"||i.key==="ArrowDown")&&i.stopPropagation()},G0=L('<div class="modal-header s-1l"><h3 class="modal-title s-1l"> </h3> <!></div>'),Y0=L('<div class="modal-overlay s-1l"><div class="modal-container s-1l" role="dialog" aria-modal="true"><!> <div class="modal-scroll s-1l" tabindex="0" role="scrollbar"><div class="modal-main s-1l"><!></div></div></div></div>'),j0={hash:"s-1l",code:'.modal-overlay.s-1l{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-1l{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-1l{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-1l{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-1l{height:100%;margin:8px 4px 8px 0;overflow-x:hidden;overflow-y:auto}.modal-scroll.s-1l::-webkit-scrollbar{width:8px}.modal-scroll.s-1l::-webkit-scrollbar-track{background-color:transparent;border-radius:4px;box-shadow:none;margin-right:2px}.modal-scroll.s-1l::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:#666;border:1px solid transparent;border-radius:5px;min-height:40px}.modal-scroll.s-1l::-webkit-scrollbar-thumb:hover{background-color:#777}.modal-main.s-1l{margin:-8px -4px 0 0}'};function Im(i,e){B(e,!0),G(i,j0);let t=h(e,"showHeader",3,!0),o=h(e,"showCloseCross",3,!0),r=q(void 0),a=q(void 0),{webApi:{focusManager:l}}=ye(),d=j("hotkey_map_modal_close_btn_text");Ot(()=>{var _;return(_=n(r))==null||_.focus(),n(a)&&l&&(l.setContainerForFocusLock(n(a)),l.activateLock()),()=>l==null?void 0:l.deactivateLock()});var s=Y0();s.__keydown=[Q0,e];var u=C(s),m=C(u);{var p=_=>{var x=G0(),I=C(x),T=C(I,!0);S(I);var R=k(I,2);{var A=P=>{Wt(P,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",get ariaLabel(){return d},children:(E,K)=>{Tm(E,{fill:"currentColor"})},$$slots:{default:!0}})};V(R,P=>{o()&&P(A)})}S(x),N(()=>he(T,e.title)),$(_,x)};V(m,_=>{t()&&_(p)})}var v=k(m,2),b=C(v),y=C(b);ai(y,()=>{var _;return(_=e.children)!=null?_:ht}),S(b),S(v),ot(v,_=>O(r,_),()=>n(r)),S(u),ot(u,_=>O(a,_),()=>n(a)),S(s),$(i,s),H()}tt(["keydown"]);var X0=new Set(["BR"]),wb=i=>{var r;let e=document.createElement("DIV");e.innerHTML=i;let t=e.querySelectorAll("*"),o=t.length;for(;o--;){let a=t[o],l=a.tagName;X0.has(l)||(r=a.parentElement)==null||r.removeChild(a)}return e.innerHTML};var Z0=L('<li class="hot-key-map-item s-19"><span class="hot-key-map-item-description s-19"><!></span> <span class="hot-key-map-item-value s-19"> </span></li>'),J0=L('<div class="hot-key-map-group s-19"><h5 class="hot-key-map-group-title s-19"> </h5> <ul class="hot-key-map-group-items s-19"></ul></div>'),ex=L('<div class="hot-key-map s-19"></div>'),tx={hash:"s-19",code:'.hot-key-map.s-19{box-sizing:border-box;color:var(--black);overflow-x:hidden}.hot-key-map-group.s-19{border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px}.hot-key-map-group.s-19:last-child{border-bottom:none}.hot-key-map-group-title.s-19{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-19,.hot-key-map-item.s-19{margin:0;padding:12px 0;width:100%}.hot-key-map-group-items.s-19{box-sizing:border-box;list-style:none;margin:0;padding:0}.hot-key-map-item.s-19{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-19{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-19{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-19,.hot-key-map-item-value.s-19{font-feature-settings:"clig" off,"liga" off;font-size:13px;font-style:normal;font-weight:400;line-height:16px}'};function Em(i,e){B(e,!1),G(i,tx);let[t,o]=De(),r=()=>w(l,"$data",t),a=ye(),{data:l,show:d}=a.ui.modals.hotKeyMap,s=()=>{d.set(!1)};en(),Im(i,{get title(){return r().title},onClose:s,children:(u,m)=>{var p=ex();wi(p,5,()=>r().groups,({title:v,items:b})=>v,(v,b)=>{let y=()=>n(b).title,_=()=>n(b).items;var x=J0(),I=C(x),T=C(I,!0);S(I);var R=k(I,2);wi(R,5,_,({description:A,value:P})=>P,(A,P)=>{let E=()=>n(P).description,K=()=>n(P).value;var F=Z0(),z=C(F),X=C(z);zd(X,()=>wb(E())),S(z);var se=k(z,2),Y=C(se,!0);S(se),S(F),N(()=>he(Y,K())),$(A,F)}),S(R),S(x),N(()=>he(T,y())),$(v,x)}),S(p),$(u,p)},$$slots:{default:!0}}),H(),o()}var Iv=require("@vkontakte/videoplayer-shared/es2015");var rl=require("@vkontakte/videoplayer-core/es2015");var Sb=require("@vkontakte/videoplayer-shared/es2015");var ix=L('<div class="pillow s-1x"><!></div>'),ox={hash:"s-1x",code:".pillow.s-1x{background-color:#679ff8;color:var(--white);font-size:6px;font-weight:600;-webkit-font-smoothing:antialiased;border-radius:12px;padding:2px 4px}"};function Pm(i,e){G(i,ox);var t=ix(),o=C(t);ai(o,()=>{var r;return(r=e.children)!=null?r:ht}),S(t),N(()=>Oe(t,"data-testid",e.testId)),$(i,t)}var Jl=require("@vkontakte/videoplayer-shared/es2015");var nx=Ee('<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 km(i,e){let t=En(e,["$$slots","$$events","$$legacy","children"]);var o=nx();so(o,()=>Le({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"currentColor","fill-rule":"evenodd",role:"img"},t));var r=C(o);ai(r,()=>{var a;return(a=e.children)!=null?a:ht}),ri(),S(o),$(i,o)}var rx=Ee('<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 Am(i,e){let t=En(e,["$$slots","$$events","$$legacy","children"]);var o=rx();so(o,()=>Le({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"currentColor","fill-rule":"evenodd",role:"img"},t));var r=C(o);ai(r,()=>{var a;return(a=e.children)!=null?a:ht}),ri(),S(o),$(i,o)}var sx=Ee('<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 Lm(i,e){let t=En(e,["$$slots","$$events","$$legacy","children"]);var o=sx();so(o,()=>Le({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"currentColor",role:"img"},t));var r=C(o);ai(r,()=>{var a;return(a=e.children)!=null?a:ht}),ri(),S(o),$(i,o)}var ax=Ee('<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 Mm(i,e){let t=En(e,["$$slots","$$events","$$legacy","children"]);var o=ax();so(o,()=>Le({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"currentColor",role:"img"},t));var r=C(o);ai(r,()=>{var a;return(a=e.children)!=null?a:ht}),ri(),S(o),$(i,o)}var lx=Ee('<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 Vm(i,e){let t=En(e,["$$slots","$$events","$$legacy","children"]);var o=lx();so(o,()=>Le({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"currentColor",role:"img"},t));var r=C(o);ai(r,()=>{var a;return(a=e.children)!=null?a:ht}),ri(),S(o),$(i,o)}var ap=i=>{switch(i){case Jl.VideoQuality.Q_720P:return Lm;case Jl.VideoQuality.Q_1080P:return Mm;case Jl.VideoQuality.Q_1440P:return Vm;case Jl.VideoQuality.Q_2160P:return km;case Jl.VideoQuality.Q_4320P:return Am}};var dx=Ee('<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 Rm(i,e){et(i,{get testId(){return e.testId},children:(t,o)=>{var r=dx();$(t,r)},$$slots:{default:!0}})}var cx=Ee('<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 Om(i,e){et(i,{get testId(){return e.testId},children:(t,o)=>{var r=cx();$(t,r)},$$slots:{default:!0}})}var ux=L('<div aria-hidden="true"><!> <!></div>'),px={hash:"s-1t",code:".icon.s-1t{display:flex;height:24px;position:relative;width:24px}.icon.s-1t .pillow{position:absolute;right:-9px;top:1px}.icon.triple.s-1t .pillow{right:-13px}.icon.s-1t svg[data-testid=settings-icon--labeled] ._full{opacity:0;visibility:hidden}"};function pc(i,e){B(e,!0),G(i,px);let t=h(e,"isMobile",3,!1),o=h(e,"currentQuality",3,void 0),r=f(()=>o()?(0,Sb.getVideoQualityLabel)(o()):""),a=f(()=>ap(o())),l=f(()=>n(r).length>2);var d=Ve(),s=le(d);{var u=p=>{Rm(p,{testId:"settings-mobile-icon"})},m=p=>{var v=ux();let b;var y=C(v);{var _=T=>{let R=f(()=>`${n(r)}-pill-icon`);Pm(T,{get testId(){return n(R)},children:(A,P)=>{var E=Ve(),K=le(E);Ui(K,()=>n(a),(F,z)=>{z(F,{})}),$(A,E)},$$slots:{default:!0}})};V(y,T=>{n(a)&&T(_)})}var x=k(y,2);let I=f(()=>n(a)?"settings-icon--labeled":"settings-icon");Om(x,{get testId(){return n(I)}}),S(v),N(T=>b=ne(v,1,"icon s-1t",null,b,T),[()=>({triple:n(l)})]),$(p,v)};V(s,p=>{t()?p(u):p(m,!1)})}$(i,d),H()}var fx=L('<span class="settings-icon-wrapper s-1y"><!></span>'),mx={hash:"s-1y",code:".settings-icon-wrapper.s-1y{position:relative;width:24px}"};function ed(i,e){B(e,!0),G(i,mx);let[t,o]=De(),r=()=>w(u,"$settingsMenuVisible",t),a=()=>w(v,"$isMobile",t),l=()=>w(s,"$currentQuality",t),d=ye(),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=q(void 0);Be(()=>{n(y)&&At(()=>{e.ref$.set(n(y))})});let _=b("aria_label_settings");function x(T){return gt(this,null,function*(){let R=pa(T);r()?p():m(R,$o)})}let I=f(()=>r()?"opened":"");Wt(i,{get className(){return n(I)},testId:"settings-btn",click:x,get ariaLabel(){return _},get ariaExpanded(){return r()},get ref(){return n(y)},set ref(T){O(y,T,!0)},children:(T,R)=>{var A=fx(),P=C(A);pc(P,{get isMobile(){return a()},get currentQuality(){return l()}}),S(A),$(T,A)},$$slots:{default:!0}}),H(),o()}var vx=Ee('<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),gx=Ee("<path></path>");function va(i,e){B(e,!0);let t=f(()=>`subtitles-icon${e.type==="off"?"-off":e.type==="outline"?"-outline":""}`),o=f(()=>vn(e.size));et(i,{get width(){return"48"},get height(){return"48"},get style(){return n(o)},get testId(){return n(t)},get shadow(){return e.shadow},children:(r,a)=>{var l=Ve(),d=le(l);{var s=m=>{var p=vx();ri(),$(m,p)},u=m=>{var p=gx();N(()=>Oe(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
|
|
56
|
+
Audio: ${(Ie=n(s).audioCodec||"")!=null?Ie:""} ${n(s).audioLanguage?`(${n(s).audioLanguage})`:""}`)}),$(Te,G)};M(ee,Te=>{(n(s).videoCodec||n(s).audioCodec)&&Te($e)})}var Ee=k(ee,2);{var ce=Te=>{var G=iy(),Ne=k(C(G),2),be=C(Ne,!0);S(Ne),S(G),O(()=>he(be,n(s).viewport)),$(Te,G)};M(Ee,Te=>{n(s).viewport&&Te(ce)})}var Qe=k(Ee,2);{var fe=Te=>{var G=oy(),Ne=k(C(G),2),be=C(Ne,!0);S(Ne),S(G),O(()=>he(be,n(s).videoSize)),$(Te,G)};M(Qe,Te=>{n(s).videoSize&&Te(fe)})}var ve=k(Qe,2);{var X=Te=>{var G=ny(),Ne=k(C(G),2),be=C(Ne,!0);S(Ne),S(G),O(()=>he(be,n(s).cdn)),$(Te,G)};M(ve,Te=>{n(s).cdn&&Te(X)})}var N=k(ve,2);{var me=Te=>{var G=ry(),Ne=k(C(G),2),be=C(Ne);S(Ne),S(G),O(()=>{var Oe;return he(be,`${(Oe=n(s).volume)!=null?Oe:""} %`)}),$(Te,G)};M(N,Te=>{n(s).volume&&Te(me)})}var ue=k(N,2);{var Re=Te=>{var G=sy(),Ne=k(C(G),2),be=C(Ne);S(Ne),S(G),O(Oe=>he(be,`${Oe!=null?Oe:""} s`),[()=>n(s).position.toFixed(2)]),$(Te,G)};M(ue,Te=>{n(s).position&&Te(Re)})}var et=k(ue,2);{var Ae=Te=>{var G=ay(),Ne=k(C(G),2),be=C(Ne);S(Ne),S(G),O(Oe=>he(be,`${Oe!=null?Oe:""} s`),[()=>n(s).buffer.toFixed(2)]),$(Te,G)};M(et,Te=>{n(s).buffer&&Te(Ae)})}var j=k(et,2);{var ne=Te=>{var G=ly(),Ne=k(C(G),2),be=C(Ne);S(Ne),S(G),O(Oe=>he(be,`${Oe!=null?Oe:""} s`),[()=>n(s).nativeBuffer.toFixed(2)]),$(Te,G)};M(j,Te=>{n(s).nativeBuffer&&Te(ne)})}var Se=k(j,2);{var Le=Te=>{var G=dy(),Ne=k(C(G),2),be=C(Ne);S(Ne),S(G),O(Oe=>he(be,`${Oe!=null?Oe:""} s`),[()=>n(s).liveLatency.toFixed(2)]),$(Te,G)};M(Se,Te=>{n(s).liveLatency&&Te(Le)})}var ze=k(Se,2);{var Ce=Te=>{var G=cy(),Ne=k(C(G),2),be=C(Ne,!0);S(Ne),S(G),O(Oe=>he(be,Oe),[()=>[{value:n(s).currentVideoSegmentLength,title:"Video:"},{value:n(s).currentAudioSegmentLength,title:"Audio:"}].filter(({value:Oe})=>Oe).map(({value:Oe,title:Ie})=>`${Ie} ${((Oe!=null?Oe:0)/1e3).toFixed(2)} s`).join(" & ")]),$(Te,G)};M(ze,Te=>{(n(s).currentVideoSegmentLength||n(s).currentAudioSegmentLength)&&Te(Ce)})}var we=k(ze,2),He=k(C(we),2),st=C(He);S(He),S(we);var pt=k(we,2);{var Rt=Te=>{var G=uy(),Ne=k(C(G),2);dc(Ne,{get values(){return n(I)}});var be=k(Ne,2),Oe=C(be);S(be),S(G),O(Ie=>he(Oe,`${Ie!=null?Ie:""} Kbps`),[()=>n(s).speed.toFixed(2)]),$(Te,G)};M(pt,Te=>{n(s).speed&&Te(Rt)})}var ct=k(pt,2);{var ni=Te=>{var G=py(),Ne=k(C(G),2);dc(Ne,{get values(){return n(T)}});var be=k(Ne,2),Oe=C(be);S(be),S(G),O(Ie=>he(Oe,`${Ie!=null?Ie:""} Kbps`),[()=>n(s).bitrate.toFixed(2)]),$(Te,G)};M(ct,Te=>{n(s).bitrate&&Te(ni)})}var Ct=k(ct,2),Ot=k(C(Ct),2);dc(Ot,{get values(){return n(w)}});var Nt=k(Ot,2),Gt=C(Nt,!0);S(Nt),S(Ct),S(z),S(A),O(Te=>{var G,Ne;P=ie(A,1,"container s-k",null,P,Te),De(A,"aria-label",R),he(Y,n(s).version),he(st,`${(G=n(p))!=null?G:""} / ${(Ne=n(f))!=null?Ne:""} frames`),he(Gt,n(v))},[()=>({"container-mobile":r()})]),$(t,A),F(),o()}Je(["click"]);var _b=require("@vkontakte/videoplayer-shared/es2015"),vy=(t,e)=>{t.stopPropagation(),e()()},gy=L('<div class="close s-1e"></div>'),hy={hash:"s-1e",code:'.close.s-1e{cursor:pointer;height:16px;opacity:.8;position:relative;transition:opacity .2s;width:16px}.close.s-1e:hover{opacity:1}.close.s-1e:after,.close.s-1e:before{background-color:var(--white);content:" ";height:16px;left:8px;position:absolute;width:2px}.close.s-1e:before{transform:rotate(45deg)}.close.s-1e:after{transform:rotate(-45deg)}'};function zs(t,e){B(e,!0),Q(t,hy);let i=g(e,"onClick",3,_b.noop);var o=gy();o.__click=[vy,i],$(t,o),F()}Je(["click"]);var bb=require("@vkontakte/videoplayer-shared/es2015");var fn=t=>`width:${t}px;height:${t}px;`;var _y=ke('<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 Nn(t,e){B(e,!0);let i=m(()=>fn(e.size));Xe(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=_y();$(o,a)},$$slots:{default:!0}}),F()}var by=L('<div class="timer s-1c"><canvas class="timer-canvas s-1c" width="100" height="100"></canvas> <!></div>'),$y={hash:"s-1c",code:".timer.s-1c{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-1c:hover{background:rgba(31,31,31,.85)}.timer-canvas.s-1c{height:50px;position:absolute;width:50px}"};function uc(t,e){B(e,!0),Q(t,$y);let i=g(e,"isRunning",3,!0),o=g(e,"onTimerEnded",3,bb.noop),r=5e3,a=K(void 0),l,d,s=0,u;Fe(()=>{i()&&kt(()=>{d=Date.now(),s=requestAnimationFrame(p)})});let f=()=>{s&&(cancelAnimationFrame(s),s=0)},p=()=>{f(),i()&&(u=(Date.now()-d)/r,u<1?(l==null||l.clearRect(0,0,100,100),l==null||l.beginPath(),l==null||l.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*u),l==null||l.stroke(),s=requestAnimationFrame(p)):o()())};Mt(()=>{l=n(a).getContext("2d"),l&&(l.lineWidth=6,l.lineCap="round",l.strokeStyle="#fff")}),pn(()=>{f()});var v=by(),b=C(v);ot(b,_=>D(a,_),()=>n(a));var y=k(b,2);Nn(y,{get size(){return"24"}}),S(v),$(t,v),F()}var yy=(t,e,i)=>{e(!1),i()},xy=L('<div class="overlay s-o"></div> <div class="next-video s-o"><div class="top s-o"><div class="caption s-o"> </div> <!></div> <div class="row s-o"><div class="column s-o"><div class="thumb s-o"><div></div> <!></div></div> <div class="column s-o"><div class="title s-o"> </div></div></div></div>',1),wy={hash:"s-o",code:".overlay.s-o{background:rgba(0,0,0,.72);height:100%;position:absolute;width:100%}.next-video.s-o{display:flex;flex-direction:column;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:362px}.top.s-o{display:flex;justify-content:space-between}.caption.s-o{color:var(--white);font-size:11px;font-weight:700;opacity:.8;text-transform:uppercase}.row.s-o{background:rgba(48,48,48,.8);cursor:pointer;display:flex;flex-direction:row;height:102px;margin-top:6px;width:100%}.column.s-o{display:flex;flex-basis:50%;flex-direction:column}.thumb.s-o{align-items:center;background:no-repeat 50%;background-size:cover;display:flex;justify-content:space-around;position:relative}.thumb.s-o,.thumb-overlay.s-o{height:100%;width:100%}.thumb-overlay.s-o{position:absolute}.thumb-overlay.withOpacity.s-o{background:var(--black);opacity:.3}.title.s-o{color:var(--white);font-size:12px;font-weight:700;line-height:1.6;max-height:52px;overflow:hidden;padding:10px 16px}"};function bm(t,e){B(e,!0),Q(t,wy);let[i,o]=Be(),r=()=>x(d,"$autoplayNextEnabled$",i),a=()=>x(s,"$timerNextVideoRunning$",i),l=xe(),d=l.ui.autoplayNextEnabled$,s=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,f=l.actions.internal.nextVideoAnnouncementShow,p=l.actions.internal.nextVideoAnnouncementClick,v=l.actions.internal.nextVideoAnnouncementAuto,b=l.actions.internal.nextVideoAnnouncementCancel,y=()=>{r()&&(u(!1),v())},_=()=>{e.clickCloseIcon(),b()};Mt(()=>{e.isHide||f(),e.isHide&&r()&&(u(!1),v())});var w=Ve(),I=le(w);{var T=R=>{var A=xy(),P=k(le(A),2),E=C(P),z=C(E),U=C(z,!0);S(z);var W=k(z,2);zs(W,{onClick:_}),S(E);var Y=k(E,2);Y.__click=[yy,u,p];var te=C(Y),J=C(te),oe=C(J);let de;var ae=k(oe,2);{var pe=ce=>{let Qe=m(()=>a()&&r());uc(ce,{get isRunning(){return n(Qe)},onTimerEnded:y})};M(ae,ce=>{r()&&ce(pe)})}S(J),S(te);var ee=k(te,2),$e=C(ee),Ee=C($e,!0);S($e),S(ee),S(Y),S(P),O((ce,Qe)=>{he(U,ce),Ke(J,`background-image: url('${e.thumb}')`),de=ie(oe,1,"thumb-overlay s-o",null,de,Qe),he(Ee,e.title)},[()=>q("end_screen_next_video"),()=>({withOpacity:r()})]),$(R,A)};M(I,R=>{e.isHide||R(T)})}$(t,w),F(),o()}Je(["click"]);var _a=require("@vkontakte/videoplayer-core/es2015"),$b=require("@vkontakte/videoplayer-shared/es2015"),Bn=require("@vkontakte/videoplayer-statistics/es2015");var $m=(t,e)=>Math.min(+(t+e).toFixed(2),1),ym=(t,e)=>Math.max(+(t-e).toFixed(2),0),tp=(t,e,i)=>{let o=$m(e,i);e<1&&t.actions.internal.setVolume(o)},ip=(t,e,i)=>{let o=ym(e,i);e>0&&t.actions.internal.setVolume(o)};var ha=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:r})=>t?i?!0:(o==null||o(),!1):e?!0:(r==null||r(),!1);function op(){var t,e,i;return(i=(e=(t=document.activeElement)==null?void 0:t.shadowRoot)==null?void 0:e.activeElement)!=null?i:null}var Cy=(t,e)=>{e(t)},Ty=L('<div class="keyboard-controls s-m" tabindex="-1" role="region"><!></div>'),Iy={hash:"s-m",code:".keyboard-controls.s-m{bottom:0;left:0;position:absolute;right:0;top:0}"};function xm(t,e){var be,Oe;B(e,!0),Q(t,Iy);let[i,o]=Be(),r=()=>x(ae,"$disabledControls$",i),a=()=>x(Ae,"$isInteractiveTime$",i),l=()=>x(j,"$showInteractiveTimeIndicatorTooltip$",i),d=()=>x(W,"$playbackState$",i),s=()=>x(X,"$isEnded$",i),u=()=>x(fe,"$doubleForwardAvailable$",i),f=()=>x(Qe,"$doubleForwardOn$",i),p=()=>x(N,"$overlayContainer$",i),v=()=>x(te,"$adPlaybackState",i),b=()=>x(J,"$positionExact$",i),y=()=>x(oe,"$duration$",i),_=()=>x(Re,"$isAudioAvailable$",i),w=()=>x(de,"$volume$",i),I=()=>x(Y,"$canChangePlaybackSpeed$",i),T=()=>x(pe,"$muted$",i),R=()=>x(ee,"$currentSubtitle$",i),A=g(e,"nextButtonActive",3,!1),P=g(e,"prevButtonActive",3,!1),E=xe(),z=Vt(),U=E.getLogger().createComponentLog("KeyboardControls component"),W=E.state.playbackState$,Y=E.state.canChangePlaybackSpeed$,te=E.ads.playbackState,J=E.state.positionExact$,oe=E.state.duration$,de=E.state.volume$,ae=E.ui.controls.disabledControls$,pe=E.state.muted$,ee=E.state.currentSubtitle$,$e=E.ui.contextMenu.openedByHotKey$,Ee=E.ui.contextMenu.lastActiveElem$,ce=E.ui.contextMenu.visible$,Qe=E.ui.doubleForwardOn$,fe=E.ui.doubleForwardAvailable$,ve=E.ui.contextMenu.position$,X=E.state.isEnded$,N=E.ui.overlayContainer$,me=(be=E.callbacks)==null?void 0:be.onAudioDoesNotExistHint,ue=(Oe=E.callbacks)==null?void 0:Oe.onAudioDisabledHint,Re=E.state.isAudioAvailable$,et=E.state.isAudioDisabled,Ae=E.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:j}=yo(),ne=0,Se=!0,Le=K(void 0),ze=Ie=>(Ie!==Se&&(Se=Ie,ne=0),ne+=1,(z.controls.seekStepKeyboard+z.controls.seekStepKeyboard*ne)/1e3),Ce=!0,we=()=>{if(!r().has("PLAY_BUTTON"))if(a()&&l()&&j.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{E.actions.internal.togglePlay();let Ie="PLAY";d()===_a.PlaybackState.PAUSED?Ie="PAUSE":s()&&(Ie="REPLAY"),e.showHotKeyHelpers({type:Ie})}},He=Ie=>{if(!u()||!Ie&&f()){we(),e.stopDoubleForward(),Ce=!0;return}Ce=!1,!Ie&&e.startDoubleForwardActivationTimer()},st=()=>{Ce||(f()||we(),e.stopDoubleForward(),Ce=!0)},pt=Ie=>{Ie!=="Space"&&e.stopDoubleForward()},Rt=Ie=>{let bt=hb(p());ve.set(bt),Ee.set(Ie.target),$e.set(!0),ce.set(!0)},ct=(Ie,bt=!1)=>{var di,Ji;let ye=Ie.target,qe=(di=ye==null?void 0:ye.getAttribute("role"))==null?void 0:di.includes("menuitem"),Ue=ye.classList.contains("btn"),at=Ie.code;if(Ue&&at==="Space")return!1;let Yt=$_.has(at);if(qe&&Yt)return!1;let At=!b_.has(at);if(Ie.ctrlKey&&At||Ie.altKey&&At||Ie.metaKey)return!1;let Xt=qe&&at==="Escape";y_.has(at)||Xt||e.hideContextMenu();let yi=d()===_a.PlaybackState.PLAYING||d()===_a.PlaybackState.PAUSED,Ri=e.isAds&&(v()==="paused"||v()==="playing"),Li=!Ri&&!r().has("TIMELINE"),Zi=Ie.shiftKey&&["Digit1","Numpad1"].includes(at);if(!Zi&&!(yi||Ri))return!1;U({message:`key down, code: ${at}, isExternal = ${bt}`});let si=!1,ft=()=>{si=!0,bt||Ie.preventDefault()};if(pt(at),Zi)return Rt(Ie),ft(),!0;switch(at){case"KeyJ":case"ArrowLeft":{if(!Li)break;if(Ie.ctrlKey||Ie.altKey){let Pt=E.actions.internal.getPrevEpisode();E.actions.internal.seekToPrevEpisode(Pt),Pt&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:Pt.text}),ft()}else{let Pt=Ie.shiftKey?ze(!1):z.controls.seekStepKeyboard/1e3,bi=Math.max(b()-Pt,0);b()>0&&(E.actions.internal.seekTime(bi,Bn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:Pt.toString()}),ft())}break}case"KeyL":case"ArrowRight":{if(!Li)break;if(Ie.ctrlKey||Ie.altKey){let Pt=E.actions.internal.getNextEpisode();E.actions.internal.seekToNextEpisode(Pt),Pt&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:Pt.text}),ft()}else{let Pt=Ie.shiftKey?ze(!0):z.controls.seekStepKeyboard/1e3,bi=Math.min(b()+Pt,y());Math.round(b())<Math.round(y())&&(E.actions.internal.seekTime(bi,Bn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:Pt.toString()}),ft())}break}case"ArrowUp":{if(ha({isAudioDisabled:et,audioDisabledHintCallback:ue,isAudioAvailable:_(),audioIsNotExistHintCallback:me,isAds:e.isAds})){let Pt=w(),bi=z.controls.volumeStepKeyboard,fi=Pt<=1;if(tp(E,Pt,bi),fi){let We=Math.round($m(Pt,bi)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:We}})}}ft();break}case"ArrowDown":{if(ha({isAudioDisabled:et,audioDisabledHintCallback:ue,isAudioAvailable:_(),audioIsNotExistHintCallback:me,isAds:e.isAds})){let Pt=w(),bi=z.controls.volumeStepKeyboard,fi=Pt>=0;if(ip(E,Pt,bi),fi){let We=Math.round(ym(Pt,bi)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:We}})}}ft();break}case"Comma":{if(Ie.shiftKey){if(!f()&&I()){let Pt=E.actions.internal.decrementPlaybackRate();e.showHotKeyHelpers({type:"RATE_DOWN",text:Pt==null?void 0:Pt.displayValue}),ft()}}else{if(Ri||d()!==_a.PlaybackState.PAUSED)break;let Pt=Math.max(b()-z.controls.seekStepFrame/1e3,0);b()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),E.actions.internal.clearDelayedBufferingCheckTimeout(),E.actions.internal.seekTime(Pt,Bn.SeekAction.DOUBLE_TAP),ft())}break}case"Period":{if(Ie.shiftKey){if(!f()&&I()){let Pt=E.actions.internal.incrementPlaybackRate();e.showHotKeyHelpers({type:"RATE_UP",text:Pt==null?void 0:Pt.displayValue}),ft()}}else{if(Ri||d()!==_a.PlaybackState.PAUSED)break;let Pt=Math.min(b()+z.controls.seekStepFrame/1e3,y());b()<y()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),E.actions.internal.clearDelayedBufferingCheckTimeout(),E.actions.internal.seekTime(Pt,Bn.SeekAction.DOUBLE_TAP),ft())}break}case"KeyK":we(),ft();break;case"Space":He(Ie.repeat),ft();break;case"KeyM":{ha({isAudioDisabled:et,audioDisabledHintCallback:ue,isAudioAvailable:_(),audioIsNotExistHintCallback:me,isAds:e.isAds})&&(e.showHotKeyHelpers({type:T()?"VOLUME":"MUTE"}),E.actions.internal.toggleMuted()),ft();break}case"KeyF":e.toggleFullscreen(),ft();break;case"KeyC":E.actions.internal.toggleSubtitle(),R().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(Ji=R())==null?void 0:Ji.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),ft();break;case"KeyI":E.actions.internal.togglePictureInPicture(),ft();break;case"Digit1":case"Numpad1":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.1,Bn.SeekAction.DOUBLE_TAP),ft();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.2,Bn.SeekAction.DOUBLE_TAP),ft();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.3,Bn.SeekAction.DOUBLE_TAP),ft();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.4,Bn.SeekAction.DOUBLE_TAP),ft();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.5,Bn.SeekAction.DOUBLE_TAP),ft();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.6,Bn.SeekAction.DOUBLE_TAP),ft();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.7,Bn.SeekAction.DOUBLE_TAP),ft();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.8,Bn.SeekAction.DOUBLE_TAP),ft();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.9,Bn.SeekAction.DOUBLE_TAP),ft();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(0,Bn.SeekAction.DOUBLE_TAP),ft();break;case"Slash":{Ie.shiftKey&&z.features.hotKeyMapModal&&(e.showKeyMap(),ft());break}case"KeyN":Ie.shiftKey&&A()&&(E.actions.internal.nextVideoClick(),ft());break;case"KeyP":Ie.shiftKey&&P()&&(E.actions.internal.prevVideoClick(),ft());break;case"ShiftLeft":case"ShiftRight":ft();break;case"Tab":case"Escape":case"Enter":break;default:(0,$b.checkNever)(at);break}return si},ni=Ie=>{let bt=Ie.code;if(Ie.ctrlKey||Ie.altKey||Ie.metaKey)return;let ye=d()===_a.PlaybackState.PLAYING||d()===_a.PlaybackState.PAUSED,qe=e.isAds&&(v()==="paused"||v()==="playing");if(ye||qe)switch(bt){case"ShiftLeft":case"ShiftRight":ne=0;break;case"Space":st();break}},Ct=q("aria_label_video_player"),Ot=()=>{var Ie;return(Ie=n(Le))==null?void 0:Ie.focus()},Nt=()=>n(Le)===op(),Gt=Ie=>Ie.type==="keydown"?ct(Ie,!0):(Ie.type==="keyup"&&ni(Ie),!1);var Te=Ty();Te.__keyup=ni,Te.__keydown=[Cy,ct];var G=C(Te);ii(G,()=>{var Ie;return(Ie=e.children)!=null?Ie:xt}),S(Te),ot(Te,Ie=>D(Le,Ie),()=>n(Le)),O(()=>De(Te,"aria-label",Ct)),$(t,Te);var Ne=F({focus:Ot,isFocused:Nt,handleExternalKeyboardEvent:Gt});return o(),Ne}Je(["keyup","keydown"]);var Ey=L('<div class="container s-l"><div class="dot s-l"></div> <div class="dot s-l"></div> <div class="dot s-l"></div></div>'),Py={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 Xa(t,e){Q(t,Py);let i=g(e,"style",3,"");var o=Ey();O(()=>Ke(o,i())),$(t,o)}var ky=ke('<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 wm(t,e){Xe(t,{get fill(){return e.fill},children:(i,o)=>{var r=ky();$(i,r)},$$slots:{default:!0}})}var Za=require("@vkontakte/videoplayer-shared/es2015"),Ay=t=>{t.stopPropagation()},Ly=L("<button><!></button>"),My={hash:"s-1k",code:"button.btn.s-1k{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-1k{width:100%}button.btn--live.s-1k{padding:10px 4px}button.btn-jc-l.s-1k{justify-content:left}button.btn-m.s-1k{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-1k,button.btn-m--play.s-1k{align-items:center;display:flex;justify-content:center}button.btn-m--play.s-1k{height:var(--big-play-size);padding:16px;position:relative;width:var(--big-play-size)}button.btn-m--next.s-1k,button.btn-m--prev.s-1k{height:50px;position:absolute;width:50px}button.btn-m--prev.s-1k{right:calc(100% + 35px)}button.btn-m--next.s-1k{left:calc(100% + 35px)}button.btn.s-1k:disabled{cursor:default;pointer-events:none}button.btn.s-1k:not(.btn-full-opacity):disabled{opacity:.4}button.btn.s-1k:not(:disabled):hover{opacity:.8}button.pr-0.s-1k{padding-right:0}button.pl-0.s-1k{padding-left:0}"};function Ut(t,e){B(e,!0),Q(t,My);let i=g(e,"className",3,""),o=g(e,"style",3,""),r=g(e,"disabled",3,void 0),a=g(e,"testId",3,void 0),l=g(e,"ariaHidden",3,void 0),d=g(e,"ariaLabel",3,void 0),s=g(e,"ref",15,void 0),u=g(e,"ariaKeyShortCut",3,void 0),f=g(e,"ariaExpanded",3,void 0),p=g(e,"tabIndex",3,0),v=g(e,"click",3,Za.noop),b=g(e,"focus",3,Za.noop),y=g(e,"blur",3,Za.noop),_=m(()=>v()===Za.noop?null:A=>{A.stopPropagation(),v()(A)}),w=m(()=>b()===Za.noop?null:A=>{A.preventDefault(),b()()}),I=m(()=>y()===Za.noop?null:A=>{A.preventDefault(),y()()});var T=Ly();T.__pointerdown=[Ay],T.__click=function(...A){var P;(P=n(_))==null||P.apply(this,A)};var R=C(T);ii(R,()=>{var A;return(A=e.children)!=null?A:xt}),S(T),ot(T,A=>s(A),()=>s()),O(()=>{var A,P,E,z,U,W,Y,te;ie(T,1,`btn ${(A=i())!=null?A:""}`,"s-1k"),Ke(T,o()||null),T.disabled=(P=r())!=null?P:null,De(T,"aria-hidden",(E=l())!=null?E:null),De(T,"aria-label",(z=d())!=null?z:null),De(T,"aria-keyshortcuts",(U=u())!=null?U:null),De(T,"aria-expanded",(W=f())!=null?W:null),De(T,"data-testid",(Y=a())!=null?Y:null),De(T,"tabindex",p()),De(T,"role",e.role),De(T,"aria-checked",(te=e.areaChecked)!=null?te:null)}),vt("focus",T,function(...A){var P;(P=n(w))==null||P.apply(this,A)}),vt("blur",T,function(...A){var P;(P=n(I))==null||P.apply(this,A)}),$(t,T),F()}Je(["pointerdown","click"]);var Vy=(t,e)=>{t.key==="Escape"&&e.onClose(),(t.key==="ArrowUp"||t.key==="ArrowDown")&&t.stopPropagation()},Ry=L('<div class="modal-header s-15"><h3 class="modal-title s-15"> </h3> <!></div>'),Dy=L('<div class="modal-overlay s-15"><div class="modal-container s-15" role="dialog" aria-modal="true"><!> <div class="modal-scroll s-15" tabindex="0" role="scrollbar"><div class="modal-main s-15"><!></div></div></div></div>'),Oy={hash:"s-15",code:'.modal-overlay.s-15{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-15{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-15{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-15{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-15{height:100%;margin:8px 4px 8px 0;overflow-x:hidden;overflow-y:auto}.modal-scroll.s-15::-webkit-scrollbar{width:8px}.modal-scroll.s-15::-webkit-scrollbar-track{background-color:transparent;border-radius:4px;box-shadow:none;margin-right:2px}.modal-scroll.s-15::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:#666;border:1px solid transparent;border-radius:5px;min-height:40px}.modal-scroll.s-15::-webkit-scrollbar-thumb:hover{background-color:#777}.modal-main.s-15{margin:-8px -4px 0 0}'};function Sm(t,e){B(e,!0),Q(t,Oy);let i=g(e,"showHeader",3,!0),o=g(e,"showCloseCross",3,!0),r=K(void 0),a=K(void 0),{webApi:{focusManager:l}}=xe(),d=q("hotkey_map_modal_close_btn_text");Mt(()=>{var _;return(_=n(r))==null||_.focus(),n(a)&&l&&(l.setContainerForFocusLock(n(a)),l.activateLock()),()=>l==null?void 0:l.deactivateLock()});var s=Dy();s.__keydown=[Vy,e];var u=C(s),f=C(u);{var p=_=>{var w=Ry(),I=C(w),T=C(I,!0);S(I);var R=k(I,2);{var A=P=>{Ut(P,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",get ariaLabel(){return d},children:(E,z)=>{wm(E,{fill:"currentColor"})},$$slots:{default:!0}})};M(R,P=>{o()&&P(A)})}S(w),O(()=>he(T,e.title)),$(_,w)};M(f,_=>{i()&&_(p)})}var v=k(f,2),b=C(v),y=C(b);ii(y,()=>{var _;return(_=e.children)!=null?_:xt}),S(b),S(v),ot(v,_=>D(r,_),()=>n(r)),S(u),ot(u,_=>D(a,_),()=>n(a)),S(s),$(t,s),F()}Je(["keydown"]);var Ny=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;Ny.has(l)||(r=a.parentElement)==null||r.removeChild(a)}return e.innerHTML};var By=L('<li class="hot-key-map-item s-p"><span class="hot-key-map-item-description s-p"><!></span> <span class="hot-key-map-item-value s-p"> </span></li>'),Fy=L('<div class="hot-key-map-group s-p"><h5 class="hot-key-map-group-title s-p"> </h5> <ul class="hot-key-map-group-items s-p"></ul></div>'),Hy=L('<div class="hot-key-map s-p"></div>'),Uy={hash:"s-p",code:'.hot-key-map.s-p{box-sizing:border-box;color:var(--black);overflow-x:hidden}.hot-key-map-group.s-p{border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px}.hot-key-map-group.s-p:last-child{border-bottom:none}.hot-key-map-group-title.s-p{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-p,.hot-key-map-item.s-p{margin:0;padding:12px 0;width:100%}.hot-key-map-group-items.s-p{box-sizing:border-box;list-style:none;margin:0;padding:0}.hot-key-map-item.s-p{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-p{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-p{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-p,.hot-key-map-item-value.s-p{font-feature-settings:"clig" off,"liga" off;font-size:13px;font-style:normal;font-weight:400;line-height:16px}'};function Cm(t,e){B(e,!1),Q(t,Uy);let[i,o]=Be(),r=()=>x(l,"$data",i),a=xe(),{data:l,show:d}=a.ui.modals.hotKeyMap,s=()=>{d.set(!1)};Jo(),Sm(t,{get title(){return r().title},onClose:s,children:(u,f)=>{var p=Hy();wi(p,5,()=>r().groups,({title:v,items:b})=>v,(v,b)=>{let y=()=>n(b).title,_=()=>n(b).items;var w=Fy(),I=C(w),T=C(I,!0);S(I);var R=k(I,2);wi(R,5,_,({description:A,value:P})=>P,(A,P)=>{let E=()=>n(P).description,z=()=>n(P).value;var U=By(),W=C(U),Y=C(W);Wd(Y,()=>yb(E())),S(W);var te=k(W,2),J=C(te,!0);S(te),S(U),O(()=>he(J,z())),$(A,U)}),S(R),S(w),O(()=>he(T,y())),$(v,w)}),S(p),$(u,p)},$$slots:{default:!0}}),F(),o()}var Pv=require("@vkontakte/videoplayer-shared/es2015");var al=require("@vkontakte/videoplayer-core/es2015");var xb=require("@vkontakte/videoplayer-shared/es2015");var zy=L('<div class="pillow s-1x"><!></div>'),Wy={hash:"s-1x",code:".pillow.s-1x{background-color:#679ff8;color:var(--white);font-size:6px;font-weight:600;-webkit-font-smoothing:antialiased;border-radius:12px;padding:2px 4px}"};function Tm(t,e){Q(t,Wy);var i=zy(),o=C(i);ii(o,()=>{var r;return(r=e.children)!=null?r:xt}),S(i),O(()=>De(i,"data-testid",e.testId)),$(t,i)}var Jl=require("@vkontakte/videoplayer-shared/es2015");var Ky=ke('<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 Im(t,e){let i=On(e,["$$slots","$$events","$$legacy","children"]);var o=Ky();ro(o,()=>Ye({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"currentColor","fill-rule":"evenodd",role:"img"},i));var r=C(o);ii(r,()=>{var a;return(a=e.children)!=null?a:xt}),Jt(),S(o),$(t,o)}var Qy=ke('<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 Em(t,e){let i=On(e,["$$slots","$$events","$$legacy","children"]);var o=Qy();ro(o,()=>Ye({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"currentColor","fill-rule":"evenodd",role:"img"},i));var r=C(o);ii(r,()=>{var a;return(a=e.children)!=null?a:xt}),Jt(),S(o),$(t,o)}var qy=ke('<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 Pm(t,e){let i=On(e,["$$slots","$$events","$$legacy","children"]);var o=qy();ro(o,()=>Ye({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"currentColor",role:"img"},i));var r=C(o);ii(r,()=>{var a;return(a=e.children)!=null?a:xt}),Jt(),S(o),$(t,o)}var Gy=ke('<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 km(t,e){let i=On(e,["$$slots","$$events","$$legacy","children"]);var o=Gy();ro(o,()=>Ye({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"currentColor",role:"img"},i));var r=C(o);ii(r,()=>{var a;return(a=e.children)!=null?a:xt}),Jt(),S(o),$(t,o)}var Yy=ke('<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 Am(t,e){let i=On(e,["$$slots","$$events","$$legacy","children"]);var o=Yy();ro(o,()=>Ye({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"currentColor",role:"img"},i));var r=C(o);ii(r,()=>{var a;return(a=e.children)!=null?a:xt}),Jt(),S(o),$(t,o)}var np=t=>{switch(t){case Jl.VideoQuality.Q_720P:return Pm;case Jl.VideoQuality.Q_1080P:return km;case Jl.VideoQuality.Q_1440P:return Am;case Jl.VideoQuality.Q_2160P:return Im;case Jl.VideoQuality.Q_4320P:return Em}};var jy=ke('<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 Lm(t,e){Xe(t,{get testId(){return e.testId},children:(i,o)=>{var r=jy();$(i,r)},$$slots:{default:!0}})}var Xy=ke('<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 Mm(t,e){Xe(t,{get testId(){return e.testId},children:(i,o)=>{var r=Xy();$(i,r)},$$slots:{default:!0}})}var Zy=L('<div aria-hidden="true"><!> <!></div>'),Jy={hash:"s-1u",code:".icon.s-1u{display:flex;height:24px;position:relative;width:24px}.icon.s-1u .pillow{position:absolute;right:-9px;top:1px}.icon.triple.s-1u .pillow{right:-13px}.icon.s-1u svg[data-testid=settings-icon--labeled] ._full{opacity:0;visibility:hidden}"};function pc(t,e){B(e,!0),Q(t,Jy);let i=g(e,"isMobile",3,!1),o=g(e,"currentQuality",3,void 0),r=m(()=>o()?(0,xb.getVideoQualityLabel)(o()):""),a=m(()=>np(o())),l=m(()=>n(r).length>2);var d=Ve(),s=le(d);{var u=p=>{Lm(p,{testId:"settings-mobile-icon"})},f=p=>{var v=Zy();let b;var y=C(v);{var _=T=>{let R=m(()=>`${n(r)}-pill-icon`);Tm(T,{get testId(){return n(R)},children:(A,P)=>{var E=Ve(),z=le(E);Ui(z,()=>n(a),(U,W)=>{W(U,{})}),$(A,E)},$$slots:{default:!0}})};M(y,T=>{n(a)&&T(_)})}var w=k(y,2);let I=m(()=>n(a)?"settings-icon--labeled":"settings-icon");Mm(w,{get testId(){return n(I)}}),S(v),O(T=>b=ie(v,1,"icon s-1u",null,b,T),[()=>({triple:n(l)})]),$(p,v)};M(s,p=>{i()?p(u):p(f,!1)})}$(t,d),F()}var ex=L('<span class="settings-icon-wrapper s-1y"><!></span>'),tx={hash:"s-1y",code:".settings-icon-wrapper.s-1y{height:24px;position:relative;width:24px}"};function ed(t,e){B(e,!0),Q(t,tx);let[i,o]=Be(),r=()=>x(u,"$settingsMenuVisible",i),a=()=>x(v,"$isMobile",i),l=()=>x(s,"$currentQuality",i),d=xe(),s=d.state.currentQuality$,u=d.ui.settingsMenu.visible$,f=d.actions.internal.openSettingsMenu,p=d.actions.internal.closeSettingsMenu,v=d.ui.isMobile,b=d.ui.t,y=K(void 0);Fe(()=>{n(y)&&kt(()=>{e.ref$.set(n(y))})});let _=b("aria_label_settings");function w(T){return yt(this,null,function*(){let R=ga(T);r()?p():f(R,ho)})}let I=m(()=>r()?"opened":"");Ut(t,{get className(){return n(I)},testId:"settings-btn",click:w,get ariaLabel(){return _},get ariaExpanded(){return r()},get ref(){return n(y)},set ref(T){D(y,T,!0)},children:(T,R)=>{var A=ex(),P=C(A);pc(P,{get isMobile(){return a()},get currentQuality(){return l()}}),S(A),$(T,A)},$$slots:{default:!0}}),F(),o()}var ix=ke('<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),ox=ke("<path></path>");function ba(t,e){B(e,!0);let i=m(()=>`subtitles-icon${e.type==="off"?"-off":e.type==="outline"?"-outline":""}`),o=m(()=>fn(e.size));Xe(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=Ve(),d=le(l);{var s=f=>{var p=ix();Jt(),$(f,p)},u=f=>{var p=ox();O(()=>De(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
57
|
${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)};V(d,m=>{e.type==="off"?m(s):m(u,!1)})}$(r,l)},$$slots:{default:!0}}),H()}function Nm(i,e){B(e,!0);let t=h(e,"isSubtitlesEnabled",3,!1),r=ye().ui.t,a=f(()=>t()?r("tooltip_subtitles_on"):r("tooltip_subtitles_off"));Wt(i,{testId:"subtitles-btn",get ariaLabel(){return n(a)},get click(){return e.click},get ariaKeyShortCut(){return ys.KeyC},role:"button",children:(l,d)=>{let s=f(()=>t()?void 0:"outline");va(l,{get size(){return"24"},get type(){return n(s)}})},$$slots:{default:!0}}),H()}var hx=L('<span class="duration s-1z" data-testid="video_duration"> </span>'),_x=L('<div data-testid="time"><span class="current s-1z" data-testid="current_time"> </span> <!></div>'),bx={hash:"s-1z",code:'.time.s-1z{align-items:center;color:var(--controls-time);display:flex;font-variant-numeric:tabular-nums;font-weight:500;padding:12px 6px}.time.mobile.s-1z{padding:0 0 0 8px}.current.s-1z{position:relative}.duration.s-1z{opacity:.7}.duration.s-1z:before{content:" / ";white-space:pre}'};function fc(i,e){B(e,!0),G(i,bx);let t=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=ae(!1),s=f(()=>tn(e.duration)),u=f(()=>tn(e.position));var m=_x();let p;var v=C(m),b=C(v,!0);S(v);var y=k(v,2);{var _=x=>{var I=hx(),T=C(I,!0);S(I),N(()=>he(T,n(s))),$(x,I)};V(y,x=>{r()&&x(_)})}S(m),Os(m,()=>Ql(o()&&l.features.usePerformanceFix,d,l.disableInvisibleComponentsTimeout)),ot(m,x=>a(x),()=>a()),N(x=>{p=ne(m,1,"time s-1z",null,p,x),he(b,n(u))},[()=>({mobile:t()})]),$(i,m),H()}var vc=require("@vkontakte/videoplayer-shared/es2015");var $x=Ee('<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),yx=Ee("<path></path>"),xx=Ee('<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 ga(i,e){B(e,!0);let t=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(t(),o())),l=f(()=>vn(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";et(i,{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=xx(),v=k(le(p));{var b=_=>{var x=$x();ri(),$(_,x)},y=_=>{var x=yx();N(()=>Oe(x,"d",`${d}${n(a)==="max"?s:""}`)),$(_,x)};V(v,_=>{n(a)==="off"?_(b):_(y,!1)})}$(u,p)},$$slots:{default:!0}}),H()}var Bo=require("@vkontakte/videoplayer-shared/es2015");var lp=require("@vkontakte/videoplayer-shared/es2015");var Cb=require("@vkontakte/videoplayer-shared/es2015");var wx=L('<div class="overlay"><!></div>');function Dm(i,e){B(e,!0);let[t,o]=De(),r=()=>w(l,"$overlayContainer$",t),l=ye().ui.overlayContainer$,d=q(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))};Be(()=>{u(r())}),Ot(()=>(u(r()),()=>s(r())));var m=wx(),p=C(m);ai(p,()=>{var v;return(v=e.children)!=null?v:ht}),S(m),ot(m,v=>O(d,v),()=>n(d)),$(i,m),H(),o()}var Sx=L('<div class="tooltip s-1m"><div class="content s-1m"> </div> <div class="tooltip-pointer s-1m"></div></div>'),Cx=L("<div><!></div> <!>",1),Tx={hash:"s-1m",code:'.tooltip-wrapper.s-1m{display:flex;flex-direction:column;min-width:0}.full-width.s-1m{width:100%}.tooltip.s-1m{bottom:100%;left:0;opacity:0;position:absolute;transition:opacity .2s,visibility .2s;visibility:hidden}.content.s-1m{background-color:rgba(41,41,41,.8);border-radius:3px;color:var(--white);display:inline-block;padding:6px 10px}.tooltip-pointer.s-1m{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 Ja(i,e){B(e,!0),G(i,Tx);let[t,o]=De(),r=()=>w(X,"$overlayContainer$",t),a=()=>w(z,"$containerSize",t),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,Cb.noop),_=5,x=q(void 0),I=q(void 0),T,R=q(0),A=q(0),P=q(0),E=q(0),K=Nt(),F=ye(),z=F.ui.playerSize,X=F.ui.overlayContainer$;Be(()=>{At(()=>{y()(s())})});let se=F.getLogger().createComponentLog("Tooltip component"),Y=te=>{if(!r()||!n(I)||!n(x))return;O(A,_);let ze=r().getBoundingClientRect(),ee=n(x).getBoundingClientRect(),ke=ee.width,Ue=n(I).clientWidth,Ie=a().width,Pe=(ke-Ue)/2,Ne=ee.left+u()-ze.left,_t=Ne+Pe,It=ee.top+m()-ze.top,Pt=Ue/2-_,at=_t<8,Et=_t+Ue>Ie-8;te==="top-left"&&(_t=Ne),at&&(_t=8,Pt=Ne+ee.width/2-2.5*_),Et&&(_t=Ie-8-Ue,Pt=ee.left-ze.left+ee.width/2-_t-_),O(P,_t,!0),O(E,It),O(R,Pt,!0)},re=()=>{!r()||!n(I)||!n(x)||O(A,-_)},Z=()=>{if(!r()||!n(I)||!n(x))return;O(R,_);let te=r().getBoundingClientRect(),ze=n(x).getBoundingClientRect(),ee=ze.height,ke=n(I).clientHeight,Ue=(ee-ke)/2+ke,Ie=ze.left+u()-te.left-n(I).clientWidth,Pe=2,Ne=Ie-_;Ne<8&&(Ne=8);let It=ze.top+m()-te.top+Ue,Pt=Pe-Ue/2,at=Pe-_;O(P,Ne,!0),O(E,It),O(A,Pt),O(R,at)},Ce=()=>{!r()||!n(I)||!n(x)||O(R,-_)},fe=()=>{switch(b()){case"top":Y();break;case"bottom":re();break;case"left":Z();break;case"top-left":Y("top-left");break;default:Ce();break}},oe=()=>{try{if(!r()||!n(x))return;fe(),s(!0)}catch(te){se({message:String(te)})}},pe=()=>{s(!1)},Se=()=>{n(I)&&(T||(T=window.setTimeout(oe,K.controls.hideTimeoutTooltips)),s()&&oe())},de=()=>{pe(),window.clearTimeout(T),T=void 0},qe=(te,ze,ee)=>{let ke="";switch(b()){case"top":ke=`transform: translate(${te}px, ${ze}px);`;break;case"bottom":ke=`transform: translate(${te}px, ${ze}px); top: auto; bottom: 100%;`;break;case"left":ke=`transform: translate(${te}px, ${ze}px); left: 0; right: auto;`;break;default:ke=`transform: translate(${te}px, ${ze}px);`}return ke+=` max-width: ${v()===void 0?"auto":`${v()}px`};`,ke+=` opacity: ${ee?1:0}; visibility: ${ee?"visible":"hidden"}`,ke},ve=(te,ze)=>{let ee="";switch(b()){case"top-left":case"top":ee=`transform: translate(${te}px, ${ze}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":ee=`transform: translate(${te}px, ${ze}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":ee=`transform: translate(${te}px, ${ze}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:ee=`transform: translate(${te}px, ${ze}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return ee},We=f(()=>qe(n(P),n(E),s())),U=f(()=>ve(n(R),n(A)));Ot(fe),mn(()=>window.clearTimeout(T));var D=Cx(),ue=le(D);let ce;ue.__pointermove=Se,ue.__pointerdown=de,ue.__pointerup=function(...te){var ze;(ze=e.disableMouseupTooltipShow?void 0:Se)==null||ze.apply(this,te)};var _e=C(ue);ai(_e,()=>{var te;return(te=e.children)!=null?te:ht}),S(ue),ot(ue,te=>O(x,te),()=>n(x));var ge=k(ue,2);{var Ke=te=>{Dm(te,{children:(ze,ee)=>{var ke=Sx(),Ue=C(ke),Ie=C(Ue,!0);S(Ue);var Pe=k(Ue,2);S(ke),ot(ke,Ne=>O(I,Ne),()=>n(I)),N(()=>{Ye(ke,n(We)),he(Ie,d()),Ye(Pe,n(U))}),$(ze,ke)},$$slots:{default:!0}})};V(ge,te=>{d()&&!l()&&te(Ke)})}N(te=>ce=ne(ue,1,"tooltip-wrapper s-1m",null,ce,te),[()=>({"full-width":p()})]),pt("pointerenter",ue,Se),pt("pointerleave",ue,de),$(i,D),H(),o()}tt(["pointermove","pointerdown","pointerup"]);var Tb=i=>{i.stopPropagation()},Ix=L("<div><!></div>"),Ex={hash:"s-1h",code:".btn-container.s-1h{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-1h{min-width:0;width:100%}"};function Do(i,e){B(e,!0),G(i,Ex);let[t,o]=De(),r=()=>w(u,"$isGraphOpened$",t),a=()=>w(s,"$isMobile",t),l=ye(),d=To(),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),_=h(e,"width",15,void 0),x=h(e,"isFullWidthTooltip",3,!0),I=h(e,"tooltipContent",3,""),T=h(e,"tooltipVisible",3,!1),R=h(e,"tooltipPlacement",3,"top"),A=h(e,"disabledTooltipContent",19,()=>m("tooltip_button_disabled")),P=h(e,"isAriaHidden",3,!1),E=h(e,"onTooltipVisibilityChange",3,lp.noop),K=h(e,"initialTranslateXPx",3,0),F=h(e,"initialTranslateYPx",19,()=>-18),z=h(e,"mouseEnter",3,lp.noop),X=h(e,"mouseLeave",3,lp.noop),se=f(()=>v()?r()?m("tooltip_disabled_when_graph_on"):A():I()),Y=q(!1);Be(()=>{T()||O(Y,!1)});var re=Ix();re.__pointerdown=[Tb],re.__click=[Tb];var Z=C(re);{var Ce=oe=>{Ja(oe,{get content(){return n(se)},get translateX(){return K()},get translateY(){return F()},get isFullWidthWrapper(){return x()},get placement(){return R()},get onVisibilityChange(){return E()},get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},get active(){return n(Y)},set active(pe){O(Y,pe,!0)},children:(pe,Se)=>{var de=Ve(),qe=le(de);ai(qe,()=>{var ve;return(ve=e.children)!=null?ve:ht}),$(pe,de)},$$slots:{default:!0}})},fe=oe=>{var pe=Ve(),Se=le(pe);ai(Se,()=>{var de;return(de=e.children)!=null?de:ht}),$(oe,pe)};V(Z,oe=>{b()&&n(se)&&!a()?oe(Ce):oe(fe,!1)})}S(re),ot(re,oe=>y(oe),()=>y()),N(()=>{var oe;ne(re,1,`btn-container ${(oe=p())!=null?oe:""}`,"s-1h"),Oe(re,"aria-hidden",P()||null)}),pt("mouseenter",re,function(...oe){var pe;(pe=z())==null||pe.apply(this,oe)}),pt("mouseleave",re,function(...oe){var pe;(pe=X())==null||pe.apply(this,oe)}),In(re,"clientWidth",_),$(i,re),H(),o()}tt(["pointerdown","click"]);var Px=Ee('<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(i,e){let t=f(()=>(e.completed,"interactive-episode-completed-icon"));et(i,{width:"20",height:"20",fill:"none",get testId(){return n(t)},children:(o,r)=>{var a=Px(),l=le(a),d=k(l);N(()=>{Oe(l,"fill",la),Oe(l,"fill-opacity",e.completed?1:.24),Oe(d,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),$(o,a)},$$slots:{default:!0}})}var kx=L("<div><!></div>"),Ax={hash:"s-14",code:".interactive-episode-icon.s-14{cursor:default;height:20px;position:absolute;transform:translateX(-50%);width:20px}.interactive-episode-icon.disabled.s-14{opacity:.4;pointer-events:none}"};function Bm(i,e){B(e,!0),G(i,Ax);let o=ye().ui.t,r=q(0),a=f(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));Do(i,{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=kx();let u;var m=C(s);let p=f(()=>!!e.videoEpisode.completed);mc(m,{get completed(){return n(p)}}),S(s),N(v=>{u=ne(s,1,"interactive-episode-icon s-14",null,u,v),Ye(s,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),In(s,"clientWidth",v=>O(r,v)),$(l,s)},$$slots:{default:!0}}),H()}var Lx=L('<div><div class="video-episode-inner s-15"><div class="video-episode-loaded s-15"></div> <div></div></div></div>'),Mx=L('<div class="video-episodes-wrap s-15"></div>'),Vx={hash:"s-15",code:".video-episodes-wrap.s-15{height:100%;position:absolute;width:100%}.video-episode.s-15{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-15:first-child{padding-left:0}.video-episode.s-15:last-child{padding-right:0}.video-episode.s-15:not(.disabled):where(:hover,:active){transform:scaleY(1.5)}.video-episode-filled.s-15,.video-episode-inner.s-15,.video-episode-loaded.s-15{border-radius:var(--slider-radius);height:var(--slider-height);position:absolute}.video-episode-inner.s-15{background:var(--slider-bg);overflow:hidden;position:absolute;width:calc(100% - var(--slider-video-episode-gap)*2)}.video-episode.s-15:first-child .video-episode-inner:where(.s-15),.video-episode.s-15:last-child .video-episode-inner:where(.s-15){width:calc(100% - var(--slider-video-episode-gap))}.video-episode-loaded.s-15{background:var(--slider-loaded-bg);transition:transform .2s}.video-episode-filled.s-15,.video-episode-loaded.s-15{border-radius:var(--slider-radius);height:100%;left:-100%;position:absolute;width:100%}.video-episode-filled.s-15{background-color:var(--slider-filled-bg)}"};function Hm(i,e){G(i,Vx);let t=h(e,"videoEpisodes",19,()=>[]);var o=Mx();wi(o,21,t,r=>r.from,(r,a)=>{var l=Lx();let d;var s=C(l),u=C(s),m=k(u,2);let p;S(s),S(l),N((v,b)=>{d=ne(l,1,"video-episode s-15",null,d,v),Ye(l,`left: ${n(a).from}%; width: ${n(a).width}%`),Ye(u,`transform: translateX(${n(a).loadedWidth/n(a).width*100}%)`),p=ne(m,1,"video-episode-filled s-15",null,p,b),Ye(m,`transform: translateX(${n(a).filledWidth/n(a).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),$(r,l)}),S(o),$(i,o)}function Rx(i,e,t,o,r,a,l){if(i.preventDefault(),e()&&O(t,e().getBoundingClientRect(),!0),o()||n(r)||!e())return;O(r,!0);let d=a(i.clientX,i.clientY);l()(d,i),e().setPointerCapture(i.pointerId)}function Ox(i,e,t,o,r,a,l,d){if(i.preventDefault(),e())return;let s=t(i.clientX,i.clientY),u=o(i.clientX);r()(s,u,n(a).width,i),n(l)&&d()(s)}function Nx(i,e,t,o,r){if(i.preventDefault(),e()||!n(t))return;O(t,!1);let a=o(i.clientX,i.clientY);r()(a,i)}function Dx(i,e,t,o){i.stopPropagation(),i.preventDefault(),e()&&t()(o(i.clientX,i.clientY))}function Bx(i,e,t,o,r,a){let l=e(i.clientX,i.clientY);t()&&o()(l),O(r,!1),a()(l)}var Hx=L("<div></div>"),Fx=L('<div class="bars s-t"><div class="loaded s-t"></div> <div></div></div>'),Ux=L('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),zx={hash:"s-t",code:'.interactive-icons.s-t{position:absolute;top:-28px;width:calc(100% - 20px)}.interactive-icons.mobile.s-t{top:-10px}.slider.s-t{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-t{cursor:default}.slider.s-t: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-t{background:var(--slider-bg);overflow:hidden}.bars.s-t,.loaded.s-t{border-radius:var(--slider-radius);height:100%;position:absolute;width:100%}.loaded.s-t{background:var(--slider-loaded-bg);left:-100%;transition:transform .2s;will-change:transform}.filled.s-t{background-color:var(--slider-filled-bg);border-radius:var(--slider-radius);height:100%;left:-100%;position:absolute;width:100%}.slider.square.s-t,.slider.square.s-t .filled:where(.s-t),.slider.square.s-t .loaded:where(.s-t),.slider.square.s-t>.bars:where(.s-t){border-radius:unset}.filled.active-live.s-t{background-color:var(--timeline-slider-filled-active-live-bg)}.filled.ads.s-t{background-color:var(--slider-filled-ads)}.handleWrap.s-t{left:-100%;position:absolute;width:100%}.handle.s-t{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-t{background-color:var(--timeline-slider-handle-active-live-bg)}.handle-always-visible.s-t .handle:where(.s-t),.slider-dragging.s-t .handle:where(.s-t),.slider.s-t:hover .handle:where(.s-t){opacity:1;transform:scale(1);visibility:visible}.slider-dragging.s-t .handle:where(.s-t){transform:scale(1.3)}.slider-vertical.s-t{left:-8px;position:absolute;top:-18px;transform:rotate(-90deg);transform-origin:0 0}.slider.disabled.s-t{cursor:default;opacity:.4}'};function el(i,e){B(e,!0),G(i,zx);let t=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),_=h(e,"onPointerDown",3,Bo.noop),x=h(e,"onHandleMove",3,Bo.noop),I=h(e,"onPointerUp",3,Bo.noop),T=h(e,"onPointerEnter",3,Bo.noop),R=h(e,"onPointerMove",3,Bo.noop),A=h(e,"onPointerLeave",3,Bo.noop),P=h(e,"onMouseEnter",3,Bo.noop),E=h(e,"onMouseLeave",3,Bo.noop),K=h(e,"onWheelUp",3,Bo.noop),F=h(e,"onWheelDown",3,Bo.noop),z=h(e,"onWheelLeft",3,Bo.noop),X=h(e,"onWheelRight",3,Bo.noop),se=h(e,"onDisabledClick",3,Bo.noop),Y=h(e,"loadedProgress",3,0),re=h(e,"filledProgress",3,0),Z=h(e,"handleProgress",3,0),Ce=h(e,"ariaLabel",3,""),fe=h(e,"ariaValueMin",3,void 0),oe=h(e,"ariaValueMax",3,void 0),pe=h(e,"ariaValueNow",3,void 0),Se=h(e,"ariaValueText",3,""),de=h(e,"onContextMenu",3,Bo.noop),qe=h(e,"handleAlwaysVisible",3,!1),ve=Nt(),We=q(void 0),U=q(!1),D=f(()=>{var we;return(we=oe())!=null?we:0}),ue=f(()=>{var we;return(0,Bo.isNonNullable)(m())&&((we=m()[m().length-1])==null?void 0:we.time)<n(D)}),ce=f(()=>(0,Bo.isNonNullable)(m())&&m().length&&n(ue)&&n(D)?Ue(Y()*100,re()*100):[]);function _e(we){if(we.preventDefault(),t()&&O(We,t().getBoundingClientRect(),!0),b())return;let Fe=ee(we.clientX,we.clientY),xe=ke(we.clientX);T()(Fe,xe,n(We).width)}function ge(we){we.preventDefault(),!b()&&A()()}function Ke(){P()()}function te(){E()()}function ze(we){b()||p()&&(we.preventDefault(),we.deltaY<0?K()():we.deltaY>0?F()():we.deltaX>0?X()():z()())}function ee(we,Fe){return l()?Math.max(0,Math.min(1,(n(We).height-(Fe-n(We).top))/n(We).height)):Math.min(Math.max(we-n(We).x,0),n(We).width)/n(We).width}function ke(we){return Math.min(Math.max(we-n(We).x,0),n(We).width)}function Ue(we,Fe){let xe=ve.features.episodesClustering&&!v()?ve.episodeMinWidthPc:0,kt=[],be=m()[0].time/n(D)*100,He=0,Qe=0;for(let Kt=1;Kt<m().length;Kt++)He=m()[Kt].time/n(D)*100,He-be>xe&&(kt.push({from:be,width:Math.max(0,He-be),loadedWidth:Math.max(0,Math.min(He,we)-be),filledWidth:Math.max(0,Math.min(He,Fe)-be),interactive:m()[Kt-1].interactive,completed:m()[Kt-1].completed}),be=m()[Kt].time/n(D)*100,Qe++);let st={from:be,width:Math.max(0,100-be),loadedWidth:Math.max(0,Math.min(we,100)-be),filledWidth:Math.max(0,Math.min(Fe,100)-be),interactive:m()[Qe].interactive,completed:m()[Qe].completed};100-be<xe?(Qe-=1,kt[Qe].width+=100-be,kt[Qe].loadedWidth+=Math.max(0,Math.min(we,100)-be),kt[Qe].filledWidth+=Math.max(0,Math.min(Fe,100)-be)):kt[Qe]=st;let Jt=m()[0].time;if(Jt!==0){let Kt=Jt/n(D)*100;kt.unshift({from:0,width:Kt,loadedWidth:Math.min(Kt,we),filledWidth:Math.min(Kt,Fe)})}return kt}function Ie(we){return Math.max(0,Math.min(100,we*100))}let Pe=f(()=>Ie(Y())),Ne=f(()=>Ie(re()));var _t=Ux(),It=le(_t);{var Pt=we=>{var Fe=Hx();let xe;wi(Fe,21,()=>n(ce),kt=>kt.from,(kt,be)=>{var He=Ve(),Qe=le(He);{var st=Jt=>{Bm(Jt,{get videoEpisode(){return n(be)},get disabled(){return b()}})};V(Qe,Jt=>{n(be).interactive&&Jt(st)})}$(kt,He)}),S(Fe),N(kt=>xe=ne(Fe,1,"interactive-icons s-t",null,xe,kt),[()=>({mobile:s(),hidden:s()&&!n(U)})]),$(we,Fe)};V(It,we=>{v()&&we(Pt)})}var at=k(It,2);let Et;at.__pointerdown=[Rx,t,We,b,U,ee,_],at.__pointermove=[Ox,b,ee,ke,R,We,U,x],at.__pointerup=[Nx,b,U,ee,I],at.__click=[Dx,b,se,ee],at.__contextmenu=[Bx,ee,b,se,U,de];var ei=C(at);{var Yt=we=>{Hm(we,{get videoEpisodes(){return n(ce)},get disabled(){return b()},get isMobile(){return s()}})},Dt=we=>{var Fe=Fx(),xe=C(Fe),kt=k(xe,2);let be;S(Fe),N(He=>{Oe(xe,"data-value",n(Pe)),Ye(xe,`transform: translateX(${n(Pe)}%);`),be=ne(kt,1,"filled s-t",null,be,He),Oe(kt,"data-value",n(Ne)),Ye(kt,`transform: translateX(${n(Ne)}%);`)},[()=>({"active-live":d()})]),$(we,Fe)};V(ei,we=>{n(ce).length?we(Yt):we(Dt,!1)})}var jt=k(ei,2);let Q;var Ae=C(jt);let Re;S(jt),S(at),ot(at,we=>t(we),()=>t()),N((we,Fe,xe,kt)=>{var be,He;Et=ne(at,1,`slider ${(be=o())!=null?be:""}`,"s-t",Et,we),Oe(at,"aria-label",Ce()),Oe(at,"aria-valuemin",fe()),Oe(at,"aria-valuemax",oe()),Oe(at,"aria-valuenow",pe()),Oe(at,"aria-valuetext",Se()),Oe(at,"data-testid",(He=r())!=null?He:null),Q=ne(jt,1,"handleWrap s-t",null,Q,Fe),Ye(jt,xe),Re=ne(Ae,1,"handle s-t",null,Re,kt)},[()=>({disabled:b(),"slider-dragging":n(U),hidden:a(),"handle-always-visible":qe(),"slider-vertical":l(),"no-handle":y(),square:u()}),()=>({hidden:y()}),()=>`transform: translateX(${Ie(Z())}%);`,()=>({"active-live":d()})]),pt("pointerenter",at,_e),pt("pointerleave",at,ge),pt("mouseenter",at,Ke),pt("mouseleave",at,te),pt("wheel",at,ze),$(i,_t),H()}tt(["pointerdown","pointermove","pointerup","click","contextmenu"]);var ao=(i,e)=>Xd[i]>=Xd[e];var Hs=(i,e)=>Xd[i]<=Xd[e],Ib=i=>i>699?"xl":i>599?"l":i>509?"m":i>320?"s":"xs";var Kx=L("<div><!></div>"),qx=L("<div><!> <!></div>"),Qx={hash:"s-27",code:".volumeBar-container.s-27{align-items:center;display:flex}.vertical.s-27 .btn,.vertical.s-27 .tooltip-wrapper,.volumeBar-container.vertical.s-27{width:40px}.volumeBar.s-27{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-27{padding:0 8px 0 0;width:0}"};function Fm(i,e){var ke,Ue;B(e,!0),G(i,Qx);let[t,o]=De(),r=()=>w(R,"$isAudioAvailable$",t),a=()=>w(v,"$muted$",t),l=()=>w(p,"$volume$",t),d=()=>w(x,"$currentGridType$",t),s=()=>w(_e,"$controlsVisible",t),u=ye(),m=Nt(),p=u.state.volume$,v=u.state.muted$,{setVolume:b,startVolumeChanging:y,stopVolumeChanging:_}=u.actions.internal,x=u.ui.currentGridType$,I=(ke=u.callbacks)==null?void 0:ke.onAudioDoesNotExistHint,T=(Ue=u.callbacks)==null?void 0:Ue.onAudioDisabledHint,R=u.state.isAudioAvailable$,A=u.state.isAudioDisabled,P=u.ui.t,E=q(!1),K,F=f(()=>e.isAds||r()),z=f(()=>!n(F)||a()||l()===0),X=f(()=>Hs(d(),"l")),se=f(()=>n(X)?"":n(z)?!r()||A?P("tooltip_sound_unavailable"):P("tooltip_volume"):P("tooltip_volume_muted")),Y=f(()=>n(z)?P("tooltip_volume"):P("tooltip_volume_muted")),re=f(()=>n(z)?0:l()),Z=!1,Ce=f(()=>e.isAds?!1:A?!T:r()?!1:!I);function fe(Ie){y(),b(Ie)}function oe(){np(u,l(),m.controls.volumeStepWheel)}function pe(){rp(u,l(),m.controls.volumeStepWheel)}function Se(Ie){b(Ie)}function de(Ie){b(Ie),_()}function qe(){Z=!0}function ve(){Z=!1,D()}function We(){clearTimeout(K),O(E,!0)}function U(){D()}function D(){K=window.setTimeout(()=>{Z||O(E,!1)},m.controls.volumeBarTimeout)}function ue(Ie){Ie.preventDefault(),Ie.deltaY<0?oe():Ie.deltaY>0&&pe()}let ce=q(!1),_e=u.ui.controlsVisible;Be(()=>{s()||O(ce,!1)});var ge=qx();let Ke;var te=C(ge);Ja(te,{get content(){return n(se)},translateY:-18,get active(){return n(ce)},set active(Ie){O(ce,Ie,!0)},children:(Ie,Pe)=>{let Ne=f(()=>n(X)?"btn-volume-vertical":"btn-volume-horizontal");Wt(Ie,{className:"btn-full-opacity",get disabled(){return n(Ce)},get testId(){return n(Ne)},get ariaLabel(){return n(Y)},get click(){return e.click},get ariaKeyShortCut(){return ys.KeyM},role:"button",children:(_t,It)=>{ga(_t,{get size(){return"24"},get volume(){return l()},get muted(){return n(z)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var ze=k(te,2);{var ee=Ie=>{var Pe=Kx();let Ne;var _t=C(Pe);let It=f(()=>n(X)?"volumeBar-slider-vertical":""),Pt=f(()=>n(X)&&!n(E)),at=f(()=>n(X)?qe:vc.noop),Et=f(()=>n(X)?ve:vc.noop),ei=f(()=>Math.round(n(re)*100)),Yt=f(()=>`${Math.round(n(re)*100)}%`),Dt=f(()=>n(X)?"volume-slider-vertical":"volume-slider");el(_t,{get className(){return n(It)},get isHidden(){return n(Pt)},get isVertical(){return n(X)},withWheelHandler:!0,onWheelUp:oe,onWheelDown:pe,onPointerDown:fe,onHandleMove:Se,onPointerUp:de,get onPointerEnter(){return n(at)},get onPointerLeave(){return n(Et)},ariaLabel:"Ползунок громкости",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return n(ei)},get ariaValueText(){return n(Yt)},get filledProgress(){return n(re)},get handleProgress(){return n(re)},get testId(){return n(Dt)}}),S(Pe),N(jt=>Ne=ne(Pe,1,"volumeBar s-27",null,Ne,jt),[()=>({"volumeBar-vertical":n(X)})]),$(Ie,Pe)};V(ze,Ie=>{n(F)&&Ie(ee)})}S(ge),N(Ie=>Ke=ne(ge,1,"volumeBar-container s-27",null,Ke,Ie),[()=>({vertical:n(X)})]),pt("mouseenter",ge,function(...Ie){var Pe;(Pe=n(X)?We:vc.noop)==null||Pe.apply(this,Ie)}),pt("mouseleave",ge,function(...Ie){var Pe;(Pe=n(X)?U:vc.noop)==null||Pe.apply(this,Ie)}),pt("wheel",ge,ue),$(i,ge),H(),o()}var Eb=require("@vkontakte/videoplayer-shared/es2015");var Gx=Ee('<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>'),Yx=Ee('<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 Um(i,e){let t=h(e,"isFullscreen",8,!1),o=cr(()=>t()?"close-fullscreen-icon":"open-fullscreen-icon");et(i,{get testId(){return n(o)},children:(r,a)=>{var l=Ve(),d=le(l);{var s=m=>{var p=Gx();$(m,p)},u=m=>{var p=Yx();$(m,p)};V(d,m=>{t()?m(s):m(u,!1)})}$(r,l)},$$slots:{default:!0}})}function gc(i,e){B(e,!0);let t=h(e,"isFullscreen",3,!1),o=h(e,"click",3,Eb.noop),r=ye(),a=r.ui.isFullscreenOpenedByKeyboard,l=r.ui.t,d=f(()=>t()?l("tooltip_fullscreen_on"):l("tooltip_fullscreen_off"));Wt(i,{testId:"fullscreen-btn",get ariaLabel(){return n(d)},click:u=>{let m=pa(u);a.set(m),o()()},get ariaKeyShortCut(){return ys.KeyF},role:"button",children:(u,m)=>{Um(u,{get isFullscreen(){return t()}})},$$slots:{default:!0}}),H()}var jx=Ee('<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 zm(i,e){let t=En(e,["$$slots","$$events","$$legacy","children"]);var o=jx();so(o,()=>Le({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"vk-logo-icon",role:"img"},t));var r=C(o);ai(r,()=>{var a;return(a=e.children)!=null?a:ht}),ri(),S(o),$(i,o)}var Xx=Ee('<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 Wm(i,e){let t=En(e,["$$slots","$$events","$$legacy","children"]);var o=Xx();so(o,()=>Le({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"},t));var r=C(o);ai(r,()=>{var a;return(a=e.children)!=null?a:ht}),ri(6),S(o),$(i,o)}var Zx={hash:"s-29",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 Km(i,e){B(e,!0),G(i,Zx);let t=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()&&!t()?91:t()?l:95),s=f(()=>!o()&&!t()?"vk-video-logo-icon--en":t()?a:"vk-video-logo-icon"),u=f(()=>`0 0 ${n(d)} 24`);Wm(i,{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(i,e){B(e,!0);let[t,o]=De(),r=()=>w(b,"$isMobile",t),a=()=>w(v,"$currentGridType$",t),l=()=>w(_,"$isCyrillicRelatedInterface$",t),d=h(e,"ref",15,void 0),s=h(e,"logoClickable",3,!1),u=h(e,"targetUrl",3,""),m=Nt(),p=ye(),v=p.ui.currentGridType$,b=p.ui.isMobile,y=p.ui.t,_=p.isCyrillicRelatedInterface$,x=f(()=>m.logoType!=="vk"),I=f(()=>n(x)?y("tooltip_vk_video_logo"):y("tooltip_vk_logo")),T=f(()=>(r()&&Hs(a(),"m")||Hs(a(),"l"))&&n(x)),R=()=>{var E,K;e.click(),(E=p.callbacks)!=null&&E.onLogoClicked?(K=p.callbacks)==null||K.onLogoClicked():u()&&window.open(u(),"_blank")},A=f(()=>!s()),P=f(()=>n(x)?"btn-vk-video-logo":"btn-vk-logo");Wt(i,{className:"btn-full-opacity",get disabled(){return n(A)},click:R,get testId(){return n(P)},get ariaLabel(){return n(I)},get ref(){return d()},set ref(E){d(E)},children:(E,K)=>{var F=Ve(),z=le(F);{var X=Y=>{Km(Y,{get logo(){return m.logoType},get short(){return n(T)},get isCyrillic(){return l()}})},se=Y=>{zm(Y,{})};V(z,Y=>{n(x)?Y(X):Y(se,!1)})}$(E,F)},$$slots:{default:!0}}),H(),o()}var kb=require("@vkontakte/videoplayer-core/es2015");var qm=require("@vkontakte/videoplayer-core/es2015");var Jx=Ee('<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-w"></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-w"></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-w"></path>',1),e2=Ee('<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),t2={hash:"s-w",code:".animated.s-w{animation-duration:1s;animation-iteration-count:infinite}.wave1.animated.s-w{animation-name:s-w-wave1}.wave2.animated.s-w{animation-name:s-w-wave2}.wave3.animated.s-w{animation-name:s-w-wave3}@keyframes s-w-wave1{0%{opacity:.3}33%{opacity:1}66%{opacity:1}to{opacity:1}}@keyframes s-w-wave2{0%{opacity:.3}33%{opacity:.3}66%{opacity:1}to{opacity:1}}@keyframes s-w-wave3{0%{opacity:.3}33%{opacity:.3}66%{opacity:.3}to{opacity:1}}"};function _c(i,e){B(e,!0),G(i,t2);let t=h(e,"isMobile",3,!1),o=f(()=>e.iconState===qm.ChromecastState.CONNECTED),r=f(()=>e.iconState===qm.ChromecastState.CONNECTING),a=f(()=>n(o)?"#2688EB":la),l=f(()=>e.size?vn(e.size):void 0);var d=Ve(),s=le(d);{var u=p=>{et(p,{get fill(){return n(a)},get style(){return n(l)},testId:"chromecast-mobile-icon",children:(v,b)=>{var y=Jx();ri(2),$(v,y)},$$slots:{default:!0}})},m=p=>{et(p,{get style(){return n(l)},testId:"chromecast-icon",children:(v,b)=>{var y=e2(),_=le(y);let x;var I=k(_);let T;var R=k(I);let A;var P=k(R);let E;var K=k(P);let F;N((z,X,se,Y,re)=>{x=ne(_,0,"wave2 s-w",null,x,z),T=ne(I,0,"wave3 s-w",null,T,X),A=ne(R,0,"wave1 s-w",null,A,se),E=ne(P,0,"s-w",null,E,Y),F=ne(K,0,"s-w",null,F,re)},[()=>({animated:n(r)}),()=>({animated:n(r)}),()=>({animated:n(r)}),()=>({hidden:n(o)}),()=>({hidden:!n(o)})]),$(v,y)},$$slots:{default:!0}})};V(s,p=>{t()?p(u):p(m,!1)})}$(i,d),H()}var Ab=require("@vkontakte/videoplayer-shared/es2015");function bc(i,e){B(e,!0);let t=h(e,"ref",15,void 0),o=h(e,"isMobile",3,!1),r=h(e,"click",3,Ab.noop),l=ye().ui.t,d=f(()=>e.state===kb.ChromecastState.CONNECTED?l("tooltip_chromecast_on"):l("tooltip_chromecast_off"));Wt(i,{get ariaLabel(){return n(d)},get click(){return r()},testId:"btn-chromecast",get ref(){return t()},set ref(s){t(s)},children:(s,u)=>{_c(s,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),H()}var Lb=require("@vkontakte/videoplayer-shared/es2015");var i2=Ee('<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(i){et(i,{testId:"episodes-icon",children:(e,t)=>{var o=i2();ri(2),$(e,o)},$$slots:{default:!0}})}var dp=(i,e,t)=>t.filter(o=>o.time<=i*e).pop();var o2=L('<span class="text mobile s-22"> </span> <div class="chevron-episodes s-22" data-testid="btn-episodes_icon"><!></div>',1),n2=L('<span class="text s-22"> </span>'),r2=L('<span class="text count s-22"> </span>'),s2=L('<span class="icon s-22"><!></span> <!>',1),a2={hash:"s-22",code:".icon.s-22{flex-shrink:0}.text.s-22{overflow:hidden;padding:0 8px;text-overflow:ellipsis;white-space:nowrap}.text.count.s-22{overflow:visible}.text.mobile.s-22{padding:0 3px 0 4px}.chevron-episodes.s-22{margin-bottom:-6px;opacity:.7;transform:scale(.8)}"};function $c(i,e){var Z,Ce,fe;B(e,!0),G(i,a2);let[t,o]=De(),r=()=>w(y,"$currentGridType$",t),a=()=>w(_,"$openedByKeyboard$",t),l=()=>w(x,"$panelOpened$",t),d=()=>w(I,"$isMobile",t),s=h(e,"position",3,0),u=h(e,"duration",3,0),m=h(e,"timeCodes",19,()=>[]),p=ye(),v=(Ce=(Z=p.callbacks)==null?void 0:Z.onEpisodeChanged)!=null?Ce:Lb.noop,b=!!((fe=p.callbacks)!=null&&fe.onEpisodeClicked),y=p.ui.currentGridType$,_=p.ui.episodes.openedByKeyboard$,x=p.ui.episodes.panelOpened$,I=p.ui.isMobile,T=p.ui.t,R=q(void 0),A=oe=>{var Se,de,qe;if(!!((Se=p.callbacks)!=null&&Se.onEpisodeClicked)){let ve=pa(oe);_.set(ve),x.set(!0),(qe=(de=p.callbacks)==null?void 0:de.onEpisodeClicked)==null||qe.call(de,ve)}},P=q(null),E=f(()=>s()/u());Be(()=>{var pe;let oe=dp(n(E),u(),m());oe?((pe=n(P))==null?void 0:pe.time)!==oe.time&&(v(oe),O(P,oe,!0)):O(P,null)});let K=f(()=>{var oe;return((oe=n(P))==null?void 0:oe.text)||""}),F=f(()=>ao(r(),"xl")?"FULL":ao(r(),"m")?"COUNT":"SHORT"),z=f(()=>`${T("tooltip_episodes")}: ${n(K)}`),X=(oe,pe,Se)=>gt(null,null,function*(){yield $o(),(oe==null?void 0:oe.getAttribute("aria-expanded"))==="false"&&pe&&!Se&&At(()=>{_.set(!1),oe.focus()})});Be(()=>{X(n(R),a(),l())});var se=Ve(),Y=le(se);{var re=oe=>{let pe=f(()=>d()?"px-0":""),Se=f(()=>!b);Wt(oe,{get className(){var de;return`w-max btn-full-opacity btn-jc-l ${(de=n(pe))!=null?de:""}`},testId:"btn-episodes",click:A,get disabled(){return n(Se)},get ariaExpanded(){return l()},get ariaLabel(){return n(z)},get ref(){return n(R)},set ref(de){O(R,de,!0)},children:(de,qe)=>{var ve=Ve(),We=le(ve);{var U=ue=>{var ce=o2(),_e=le(ce),ge=C(_e,!0);S(_e);var Ke=k(_e,2),te=C(Ke);Br(te,{direction:"right"}),S(Ke),N(()=>he(ge,n(K))),$(ue,ce)},D=ue=>{var ce=s2(),_e=le(ce),ge=C(_e);Qm(ge,{}),S(_e);var Ke=k(_e,2);{var te=ee=>{var ke=n2(),Ue=C(ke,!0);S(ke),N(()=>he(Ue,n(K))),$(ee,ke)},ze=(ee,ke)=>{{var Ue=Ie=>{var Pe=r2(),Ne=C(Pe,!0);S(Pe),N(()=>he(Ne,m().length)),$(Ie,Pe)};V(ee,Ie=>{n(F)==="COUNT"&&Ie(Ue)},ke)}};V(Ke,ee=>{n(F)==="FULL"?ee(te):ee(ze,!1)})}$(ue,ce)};V(We,ue=>{d()?ue(U):ue(D,!1)})}$(de,ve)},$$slots:{default:!0}})};V(Y,oe=>{n(P)&&oe(re)})}$(i,se),H(),o()}var _v=require("@vkontakte/videoplayer-shared/es2015");var hi=require("@vkontakte/videoplayer-core/es2015"),rt=require("@vkontakte/videoplayer-shared/es2015"),Fr=require("@vkontakte/videoplayer-statistics/es2015");var Xe=require("@vkontakte/videoplayer-shared/es2015"),lo=require("@vkontakte/videoplayer-shared/es2015");var l2="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",cp=class{constructor(e,t){this.adman=null;this.initialVolume=1;this.videoElement=null;this.currentAdSection=null;this.actions=null;this.adsState=null;this.playerState=null;this.events={init$:new lo.Subject,loadStarted$:new lo.Subject,loadEnded$:new lo.Subject,loadError$:new lo.Subject,ready$:new lo.Subject,slotRequested$:new lo.Subject,started$:new lo.Subject,timeRemained$:new lo.Subject,paused$:new lo.Subject,resumed$:new lo.Subject,ended$:new lo.Subject,empty$:new lo.Subject,skipped$:new lo.Subject,clicked$:new lo.Subject,closed$:new lo.Subject,error$:new lo.Subject};this.loadAdman=e=>(Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[(0,Xe.now)()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((t,o)=>{let r;this.events.loadStarted$.next();let a=()=>{clearTimeout(r),delete window.admanAsyncInit,window.AdmanHTML?(Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[(0,Xe.now)()]}),t(),this.events.loadEnded$.next()):(Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[(0,Xe.now)()]}),o())};(0,lo.addScript)(l2,e,this.loadTimeout).then(()=>{Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[(0,Xe.now)()]}),window.AdmanHTML?(Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[(0,Xe.now)()]}),t(),this.events.loadEnded$.next()):(Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[(0,Xe.now)()]}),window.admanAsyncInit=a,r=window.setTimeout(a,this.initTimeout))}).catch(l=>{Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(l)],numbers:[(0,Xe.now)()]}),o(),clearTimeout(r)})});this.loadAdmanNPM=e=>new Promise((t,o)=>{let r;this.events.loadStarted$.next();let a=()=>{clearTimeout(r),delete window.admanAsyncInit,window.AdmanHTML?(Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[(0,Xe.now)()]}),t(),this.events.loadEnded$.next()):(Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[(0,Xe.now)()]}),o())},l=()=>{d=!0,o()},d=!1,s=window.setTimeout(()=>{Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[(0,Xe.now)()]}),l()},this.loadTimeout);e.addEventListener("abort",l),e.aborted&&(Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[(0,Xe.now)()]}),l()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[(0,Xe.now)()]}),!d&&(window.AdmanHTML?(Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[(0,Xe.now)()]}),t(),this.events.loadEnded$.next()):(Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[(0,Xe.now)()]}),window.admanAsyncInit=a,r=window.setTimeout(a,this.initTimeout)))},l).finally(()=>{clearTimeout(r),clearTimeout(s),e.removeEventListener("abort",l)})});this.onAdsReady=()=>{Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[(0,Xe.now)()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,t)=>{var o;Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+t.muted],numbers:[(0,Xe.now)(),t.bannerID]}),this.adsState&&this.playerState&&this.actions?(this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(t)}`}),this.events.started$.next(e),t.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"})),this.adsState.duration.set(t.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(t.allowClose),this.adsState.secondsToWatchBeforeSkip.set(t.allowCloseDelay),this.startWatchDog(),(o=this.externalApi)!=null&&o.videoTrackAdEvent&&this.safeExternalCall(this.externalApi.videoTrackAdEvent,e,String(t.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;Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Xe.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;Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Xe.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(Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[(0,Xe.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;Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Xe.now)()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Xe.now)()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Xe.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,t;Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Xe.now)()]}),this.log({message:"ad clicked"}),(t=this.videoElement)==null||t.pause(),this.currentAdSection&&this.events.clicked$.next(this.currentAdSection),this.stopWatchDog()};this.onAdError=(e="ad error")=>{Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[(0,Xe.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"),Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[(0,Xe.now)()]}),this.loadTimeout=t.loadTimeout,this.initTimeout=t.initTimeout,this.runtimeTimeout=t.runtimeTimeout,this.useAdmanFromNPM=t.useAdmanFromNPM,this.volumeMultiplier=Math.max(0,Math.min(t.volumeMultiplier,1)),this.isVsidOriginal=t.isVsidOriginal}init(e,t,o){this.actions=e,this.adsState=t,this.playerState=o}onAdmanLoadingError(){this.onAdError("adman loading error")}initAdman(e){return gt(this,null,function*(){var A,P;if(Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[(0,Xe.now)(),e.slotId]}),this.adman)return;this.events.init$.next(e.slotId),this.startWatchDog();let{width:t,height:o,isAutoplay:r,adsContainer:a,adsVideoElement:l,slotId:d,params:s={},paramsOverride:u={},duration:m,externalApi:p,json:v}=e;this.externalApi=p;let b,y=this.playerState&&$e(this.playerState.vsid);y&&(this.isVsidOriginal?b=y:b=parseInt(y,36));let{isEmbed:_,immediateOrigin:x}=(0,Xe.detectEmbed)(),I=(A=_?x:window.location.href)!=null?A:window.location.href,T=(0,Xe.withoutNullable)(Le(Gt(Le(Gt(Le({},s),{dl:encodeURIComponent(I),autoplay:r?1:0,player_width:t,player_height:o}),b?{request_id:b}:{}),{duration:m}),u)),R=(0,Xe.withoutNullable)({slot:v?void 0:d,wrapper:a,videoEl:l,videoQuality:o,params:v?void 0:T,browser:{mobile:!1},json:v});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),!v&&((P=this.externalApi)!=null&&P.videoGetAds)){let K=yield this.safeExternalCall(this.externalApi.videoGetAds,T);K&&(delete R.slot,delete R.params,Object.assign(R,{json:K}))}E.init(R),this.adman=E,this.videoElement=l,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(R)}`})}catch(E){Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(E)],numbers:[(0,Xe.now)()]}),this.onAdError("could not init adman")}})}switchToVideo(e=!1){var o,r,a;if(Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[(0,Xe.now)()]}),this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}let t=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: ${t}`});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,!t)}}setPostrollPassed(e){var t;(t=this.adsState)==null||t.postrollPassed.set(e),this.log({message:"postroll passed"})}togglePlay(){var e;if(Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Xe.now)()]}),this.adsState){this.log({message:"toggle play"});let t=$e(this.adsState.playbackState);t==="playing"?this.pause():t==="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 t=e*this.volumeMultiplier;if(this.log({message:`set volume ${t}`}),this.adman)try{this.adman.setVolume(t)}catch(o){this.onAdError("could not set ad volume")}this.videoElement&&(this.videoElement.volume=t)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch(t){this.onAdError("could not set ad fullscreen")}}startPreroll(){if(Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[(0,Xe.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(Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Xe.now)()]}),this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch(t){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(Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Xe.now)()]}),this.adman){this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch(t){this.onAdError("could not resume ad")}}else this.onAdError("Can not play: Adman is not initialized")}pause(){var e;if(Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Xe.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch(t){this.onAdError("could not pause ad")}}else this.onAdError("Can not pause: Adman is not initialized")}skip(){var e;if(Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Xe.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch(t){this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}setPosition(e,t){var o;(o=this.adman)==null||o.setPosition(Math.floor(e),Math.floor(t))}destroy(){var e,t,o,r,a,l,d,s,u,m,p,v;Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[(0,Xe.now)()]}),this.log({message:"destroy"}),this.stopWatchDog(),(e=this.adman)==null||e.onReady(void 0),(t=this.adman)==null||t.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,lo.clearVideoElement)(this.videoElement),this.isDestroyed=!0}safeExternalCall(e,...t){return gt(this,null,function*(){var o;try{return yield e(...t)}catch(r){return this.onAdError((o=r==null?void 0:r.message)!=null?o:"External call failed"),null}})}};var Mb=i=>{let e=Math.round(i);return isNaN(e)||e<40?"":e>=40&&e<55?50:e>=55&&e<90?60:e>=90&&e<180?120:e>=180?240:""};var Gm=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e,t){let o=[],r=e.split(this.twoLinesRegExp);for(let a of r){let l={startTime:0,endTime:0,texts:[],lang:t},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 Ym,{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 t={startTime:0,endTime:0},o=this.timingRegExp.exec(e);return o&&(t.startTime=this.calcTime(o[1],o[2],o[3],o[4]),t.endTime=this.calcTime(o[6],o[7],o[8],o[9])),t}parseTime(e){let t=this.timeRegExp.exec(e);return t?this.calcTime(t[1],t[2],t[3],t[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",t="0",o="0",r="0"){let a=Number(e)*60*60,l=Number(t)*60,d=Number(o),s=+`0.${r}`;return a+l+d+s}},Ym=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let t={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)?t.texts.push({type:"timestamp",value:a.parseTime(l)}):t.texts.push({type:"text",value:l});return t}},Vb=Gm;var fp=require("@vkontakte/videoplayer-shared/es2015"),tl,Oi,jm=0,Xm=!1,Rb="",Ob=(i,e=0,t=0)=>i<e&&i<t,pp=(i,e=0,t=0)=>i>=e&&i<=t,d2=(i,e=0,t=0)=>i>e&&i>t,Nb=(i,e,t,o=!1)=>{var d;let r=(d=t.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(i,u,m));let a=i>=jm,l=i<jm;if(jm=i,l&&(Xm=!1),(0,fp.isNonNullable)(tl)&&pp(i,tl.startTime,tl.endTime)&&Rb===e.value)return tl;if(!(0,fp.isNonNullable)(Oi)&&(r!=null&&r.length)&&!Xm){Oi=r.find(({startTime:u,endTime:m})=>pp(i,u,m)||a&&Ob(i,u,m)),tl=void 0,!(0,fp.isNonNullable)(Oi)&&r[r.length-1].endTime<i&&(Xm=!0);return}else{if(pp(i,Oi==null?void 0:Oi.startTime,Oi==null?void 0:Oi.endTime))return tl=Oi,Oi=void 0,Rb=e.value,tl;(a&&d2(i,Oi==null?void 0:Oi.startTime,Oi==null?void 0:Oi.endTime)||l&&Ob(i,Oi==null?void 0:Oi.startTime,Oi==null?void 0:Oi.endTime))&&(Oi=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"},c2={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=i=>{var e,t;return(t=(e=mp[i])!=null?e:mp[c2[i]])!=null?t:void 0};var Zm=require("@vkontakte/videoplayer-core/es2015"),xs=require("@vkontakte/videoplayer-shared/es2015");var Db=require("@vkontakte/videoplayer-shared/es2015"),vp=()=>{var i;return(i=(0,Db.getWindow)().document)==null?void 0:i.pictureInPictureEnabled},gp=i=>!!i.pictureInPictureWindow,Bb=i=>!!i.target&&"height"in i.target&&"width"in i.target;var Fs=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,xs.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new xs.ValueSubject(!1),isEnabled$:new xs.ValueSubject(!1),type:0};this.info.isEnabled$=new xs.ValueSubject(e)}isSupported(){return vp()}isActive(){return this.info.isActive$.getValue()}setContext(e){this.svelteContext=e}revealPictureInPicture(){return gt(this,null,function*(){this.isRequested&&(this.removeEventHandlers(),yield this.request(),this.addEventHandlers())})}request(){return gt(this,null,function*(){var e;if(!(!this.isSupported()||this.isActive()))try{yield(e=this.videoElement)==null?void 0:e.requestPictureInPicture()}catch(t){this.isRequested=!1}})}exit(){return gt(this,null,function*(){let{document:e}=(0,xs.getWindow)();!this.isSupported()||!this.isActive()||!this.videoElement||!e.pictureInPictureElement||(yield e.exitPictureInPicture(),Zm.clientChecker.browser.isYandex&&!this.videoElement.isConnected&&this.onLeavePictureInPicture())})}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){this.isSupported()&&this.exit().finally(()=>{var t;this.removeEventHandlers();let e=this.videoElement;this.videoElement=(t=this.playerContainer)==null?void 0:t.querySelector("video"),this.waitForSafariLeavePictureInPicture(e,this.videoElement),this.addEventHandlers()})}addEventHandlers(){var e,t;(e=this.videoElement)==null||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(t=this.videoElement)==null||t.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}setExternalEventHandlers(e){this.externalEventHandlers=Le({},e)}removeEventHandlers(){var e,t;(e=this.videoElement)==null||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(t=this.videoElement)==null||t.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}dispose(){return gt(this,null,function*(){this.removeEventHandlers(),yield this.exit(),this.info.isActive$.next(!1),this.isRequested=!1})}onEnterPictureInPicture(e){var o,r;let t=gp(e)?e.pictureInPictureWindow:void 0;this.info.isActive$.next(!0),this.isRequested=!0,t==null||t.addEventListener("resize",this.eventHandlers.resize),(r=(o=this.externalEventHandlers).enterpictureinpicture)==null||r.call(o)}onLeavePictureInPicture(e){var t,o;if(e){let r=gp(e)?e.pictureInPictureWindow:void 0;r==null||r.removeEventListener("resize",this.eventHandlers.resize)}this.info.isActive$.next(!1),this.isRequested=!1,this.eventHandlers.resize.cancel(),(o=(t=this.externalEventHandlers).leavepictureinpicture)==null||o.call(t)}onResize(e){var o,r;let t=Bb(e)?e.target:gp(e)?e.pictureInPictureWindow:void 0;t&&((r=(o=this.externalEventHandlers).resize)==null||r.call(o,{width:t.width,height:t.height}))}setEnabled(e){this.info.isEnabled$.next(e)}waitForSafariLeavePictureInPicture(e,t){if(Zm.clientChecker.browser.isSafari&&e&&e!==t){let r=this.eventHandlers.leavepictureinpicture,a=0,l=()=>{(0,xs.getWindow)().clearTimeout(a),e.removeEventListener("leavepictureinpicture",d)},d=s=>(r(s),l());e.addEventListener("leavepictureinpicture",d),a=(0,xs.getWindow)().setTimeout(l,1e3)}}};function Hb(i){return i instanceof Fs}var Fb=require("@vkontakte/videoplayer-shared/es2015"),aH=require("@vkontakte/videoplayer-statistics/es2015"),hp=class{constructor(e,t,o,r=new Fb.Subscription){this.oneStat=e;this.thinOneStat=t;this.mediascopePixel=o;this.statSubscription=r}destroy(){var e,t,o;(e=this.oneStat)==null||e.destroy(),(t=this.thinOneStat)==null||t.destroy(),(o=this.mediascopePixel)==null||o.destroy(),this.statSubscription.unsubscribe()}};var wc=(t=>(t.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",t.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",t))(wc||{});var ws=i=>i!=null?i:0,Us=(i,e)=>{var r,a;let t=(r=i==null?void 0:i.getBoundingClientRect)==null?void 0:r.call(i),o=(a=e==null?void 0:e.getBoundingClientRect)==null?void 0:a.call(e);return{top:Math.round(ws(t==null?void 0:t.top)-ws(o==null?void 0:o.top)),left:Math.round(ws(t==null?void 0:t.left)-ws(o==null?void 0:o.left)),bottom:Math.round(ws(t==null?void 0:t.bottom)-ws(o==null?void 0:o.top)),right:Math.round(ws(t==null?void 0:t.right)-ws(o==null?void 0:o.left))}},td=i=>{var t;let e=(t=i==null?void 0:i.getBoundingClientRect)==null?void 0:t.call(i);return{width:ws(e==null?void 0:e.width),height:ws(e==null?void 0:e.height)}};var An="off";var id=i=>!!(Math.round(Math.abs(i)/90)%2);var Ub=({interfaceLanguage:i,isCyrillicRelatedInterface:e,videoId:t,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:_,isInteractive:x,interactiveRanges$:I,isInteractiveTime$:T,replayInteractive:R,stopPlayer:A,hasInteractiveBranches:P,playPrevChapterDisabledTooltip:E,additionalButtons:K,additionalSettingsMenuItems:F,additionalContextMenuItems:z,playPrevVideo:X,playNextVideo:se,onVideoChanged:Y,looped:re=!1,statistics:Z,saveRate:Ce,internalsExposure:fe,playerView:oe,playerId:pe,metaConfig:Se,appTracer:de})=>{var Ig,Eg;let qe=Gt(Le({},b),{isAudioDisabled:l,live:Gt(Le({},(Ig=b.live)!=null?Ig:{}),{isLiveCatchUpMode:!!r})}),ve=v,We=rt.TracerFactory.createRootTracer(ve.features.tracer),U=We.createComponentTracer("Store"),D=y||new hi.Player(qe,We,{playerId:pe,onDevNullLog:s==null?void 0:s.onDevNullLog});fe==null||fe.expose({corePlayer:D});let ue=new rt.Logger,ce=new cp(ue,{loadTimeout:ve.ads.loadTimeout,initTimeout:ve.ads.initTimeout,runtimeTimeout:ve.ads.runtimeTimeout,useAdmanFromNPM:ve.ads.useAdmanFromNPM,volumeMultiplier:ve.ads.volumeMultiplier,isVsidOriginal:ve.ads.isVsidOriginal}),_e=Qa.getInstance(),ge=u==null?void 0:u.pictureInPictureApi,Ke=u==null?void 0:u.annotationsApi,te=u==null?void 0:u.slotsApi,ze=u==null?void 0:u.focusManager,ee=ue.createComponentLog("Store"),ke,Ue,Ie={},Pe=new Bu,Ne=new rt.Subscription,_t="",It=ae(!1),Pt=Z&&Z.oneStat?li(Z.oneStat.vsid$):Dr(void 0),at=ae(da()),Et=ae(!1),ei=()=>sb(document,hi.clientChecker.device.isIOS),Yt=(Eg=ge==null?void 0:ge.info.isActive$)!=null?Eg:new rt.ValueSubject(!1),Dt=ae(0),jt=ae(!1),Q=ae(!1),Ae=ae([]),Re=(0,rt.merge)(D.events.fatalError$,D.events.managedError$).subscribe(c=>Ae.update(g=>[...g,c])),we=Dr(!1,c=>{let g=D.events.fatalError$.subscribe(()=>c(!0));return()=>g.unsubscribe()}),Fe=c=>gt(null,null,function*(){var ie;let g=Object.values(rt.InterfaceLanguage).includes(c);if(ve.downloadVKLanguages&&(g&&ve.updateBuiltinLanguages||!dm(c))){let Te;try{Te=yield(0,rt.loadVKLangPack)(c,h_,__)}catch(Je){(ie=Z==null?void 0:Z.oneStat)==null||ie.logError({errorType:"VKLangPack",fatal:!1}),_e==null||_e.report(Je,{errorType:"VKLangPack",fatal:!1}),de==null||de.error({category:rt.ErrorCategory.WTF,id:"VKLangPack",message:String(Je),thrown:Je},{severity:"warning"})}Te&&(lm({language:c,pack:Te,fallback:ve.defaultLanguage}),xe.set(c),kt.update(Je=>Je+1))}dm(c)&&xe.set(c)}),xe=ae(i),kt=ae(0),be=ae(e);Fe(i);let He=(c,g)=>{let M=$e(xe);return cm(M,c,g,ve.defaultLanguage)},Qe=ae("thumb");Qe.subscribe(c=>{c==="ads"&&D.info.playbackState$.getValue()&&Kt()});let st=(()=>{let c=vi([we,Qe],([g,M])=>g?"crashed":M);return Gt(Le({},c),{is:g=>$e(c)===g})})(),Jt=ae(),Kt=()=>{Jt.set({muted:D.info.muted$.getValue()})},pi=(()=>{let c=ae(new Set(_));return Gt(Le({},c),{add:g=>{c.update(M=>new Set([...M].concat(g)))},remove:g=>{c.update(M=>{let ie=[...M];return new Set(Array.isArray(g)?ie.filter(Te=>!g.includes(Te)):ie.filter(Te=>Te!==g))})},includes:g=>{let M=$e(c);return Array.isArray(g)?g.every(ie=>M.has(ie)):M.has(g)}})})(),_i=ae({width:0,height:0}),mi=null,uo=D.info.isBuffering$,yo=Dr(uo.getValue(),c=>{let g=uo.subscribe(M=>{M&&mi===null?mi=window.setTimeout(()=>{c(uo.getValue()),mi=null},ve.loaderDelay):c(M)});return()=>{g.unsubscribe(),mi&&clearTimeout(mi)}});U.log("create store"),ee({message:"create store"});let Io=c=>{let g=c.container,M=()=>{qt=new MutationObserver(Te=>{let{removedNodes:Je}=Te[0];Je.length&&g.append(D.experimental.element$.getValue())}),qt.observe(g,{childList:!0})},ie=D.experimental.element$.getValue();if(ie)g.append(ie),M();else{let Te=D.experimental.element$.pipe((0,rt.filter)(Je=>!!Je),(0,rt.once)()).subscribe(Je=>{g.append(Je),M()});Ne.add(Te)}},wt=c=>{ee({message:`init video, config: ${JSON.stringify(c)}`}),x?Io(c):(rt.devNull.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[(0,rt.now)()]}),D.initVideo(c)),U.log("init video",{isInteractive:x}),c.subtitles&&D.setExternalTextTracks(c.subtitles),ke=c,_t=c.subtitlesForcedLanguage||""},Ht=new rt.Subject,$i=c=>Ht.next(c),St=new rt.Subject,Ct=new rt.ValueSubject(Fr.SeekAction.UNKNOWN),Si=new rt.Subject,qt=null,Ni={actionRewind$:St,actionSeek$:Ct,inPiP$:Yt,inFullscreen$:new rt.Observable(c=>at.subscribe(g=>c.next(g))),actionSetSubtitle$:Si,nextMovie$:Ht},Ft=new rt.Subject,vt=new rt.Subject,Ki={actionSeek$:Ct,actionSubtitlesSwitched$:Ft,actionQuality$:vt,playerSize$:new rt.Observable(c=>_i.subscribe(g=>c.next(g))),inPiP$:Yt,inFullscreen$:new rt.Observable(c=>at.subscribe(g=>c.next(g))),isLoaderVisible$:new rt.Observable(c=>yo.subscribe(g=>c.next(g)))};if(Z){let{oneStat:c,thinOneStat:g,mediascopePixel:M,statSubscription:ie}=Z;c&&(x||ie.add(c.attachTo(D)),ie.add(c.attachToUi(Ni)),ie.add(c.attachToAds(ce.events)),c.authorize(a).catch(Te=>{ee({message:`onestat auth error ${String(Te)}`})}),M&&M.attachTo(D)),g&&(ie.add(g.attachTo(D,ce.events)),ie.add(g.attachToUi(Ki)),ie.add(g.attachToAds(ce.events)),g.updateContext({isMobile:$e(It)}),g.authorize(a))}if(_e){let c=new rt.Subscription,g=(M,ie)=>c.add(M.subscribe(ie));if(g(D.events.managedError$,M=>{_e.logIError(M)}),g(D.events.fatalError$,M=>{_e.logIError(M,!0)}),Z){let{oneStat:M}=Z;M&&g(M.experimental.error$,ie=>{_e.logIError(ie)})}_e.sentrySubscription.add(c)}de&&(de.addSubscription(D.events.managedError$.subscribe(c=>{de.error(c,{severity:"debug"})})),de.addSubscription(D.events.fatalError$.subscribe(c=>{de.error(c,{severity:"fatal"})})),Z!=null&&Z.oneStat&&de.addSubscription(Z.oneStat.experimental.error$.subscribe(c=>{de.error(c,{severity:"warning"})})));let bt=()=>{if(hi.clientChecker.device.isIOS&&Ue)try{ab(Ue)}catch(c){ee({message:`exitIosSafariFullscreen failed: ${c}`})}};Ne.add(D.experimental.element$.subscribe(c=>{c&&(Ue=c,c.classList.add("player-media"),ge==null||ge.updateVideoElement(),x&&c.setAttribute("pip","false"),(oe==="preview"||!ve.features.pip&&!ve.features.dpip)&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(D.events.ended$.subscribe(()=>{var c;bt(),(c=s==null?void 0:s.onEnded)==null||c.call(s)})).add(D.events.looped$.subscribe(()=>{var c;(c=s==null?void 0:s.onLooped)==null||c.call(s)})).add(D.events.started$.subscribe(()=>gt(null,null,function*(){var g,M;Hb(ge)&&(yield ge==null?void 0:ge.revealPictureInPicture());let c=D.info.muted$.getValue();(g=s==null?void 0:s.onStarted)==null||g.call(s),(M=Ie.onStarted)==null||M.call(Ie,c)}))).add(D.events.willSeek$.subscribe(({from:c,to:g})=>{var M;(M=s==null?void 0:s.onSeek)==null||M.call(s,c,g,Ct.getValue())})).add(D.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=s==null?void 0:s.onAutoplaySoundProhibited)==null||c.call(s)})).add(D.info.position$.subscribe(c=>{var M;let g=D.info.duration$.getValue();isFinite(g)&&g>0&&((M=s==null?void 0:s.onTimeupdate)==null||M.call(s,g,c),ce.setPosition(c,g))})).add(D.events.fatalError$.subscribe(c=>{var g;(g=s==null?void 0:s.onCrashed)==null||g.call(s,c?`${c.id}: ${c.message}`:void 0)})).add(D.events.fetcherRecoverableError$.subscribe(c=>{var g;(g=s==null?void 0:s.onRecoverableError)==null||g.call(s,c?`${c.id}: ${c.message}`:void 0)})).add(D.events.loadedMetadata$.subscribe(()=>{jt.set(!0)})).add(D.info.is3DVideo$.subscribe(c=>{Q.set(c)})).add(D.info.isEnded$.subscribe(c=>{x&&(c?(T!=null&&T.getValue()&&pi.add(jd),pi.add("PLAY_BUTTON")):pi.remove("PLAY_BUTTON"))})).add(D.info.liveTime$.subscribe(c=>{var g;(g=s==null?void 0:s.onLiveTime)==null||g.call(s,c)})).add(D.info.isStalled$.subscribe(c=>{var g;(g=s==null?void 0:s.onStalledChanged)==null||g.call(s,c)})).add(D.info.isLiveEnded$.subscribe(c=>{var g;return c&&((g=s==null?void 0:s.onLiveEnded)==null?void 0:g.call(s))})).add(ce.events.loadStarted$.subscribe(()=>{var c,g;return(g=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onLoadStarted)==null?void 0:g.call(c)})).add(ce.events.loadEnded$.subscribe(()=>{var c,g;return(g=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onLoadEnded)==null?void 0:g.call(c)})).add(ce.events.loadError$.subscribe(()=>{var c,g;return(g=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onLoadError)==null?void 0:g.call(c)})).add(ce.events.init$.subscribe(()=>{var c,g;return(g=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onInit)==null?void 0:g.call(c)})).add(ce.events.ready$.subscribe(()=>{var c,g;return(g=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onReady)==null?void 0:g.call(c)})).add(ce.events.started$.subscribe(c=>{var g,M;return(M=(g=s==null?void 0:s.adsInfo)==null?void 0:g.onStarted)==null?void 0:M.call(g,c)})).add(ce.events.timeRemained$.subscribe(c=>{var g,M;return(M=(g=s==null?void 0:s.adsInfo)==null?void 0:g.onTimeRemained)==null?void 0:M.call(g,c)})).add(ce.events.ended$.subscribe(c=>{var g,M;return(M=(g=s==null?void 0:s.adsInfo)==null?void 0:g.onCompleted)==null?void 0:M.call(g,c)})).add(ce.events.empty$.subscribe(()=>{var c,g;return(g=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onEmpty)==null?void 0:g.call(c)})).add(ce.events.clicked$.subscribe(c=>{var g,M;return(M=(g=s==null?void 0:s.adsInfo)==null?void 0:g.onClicked)==null?void 0:M.call(g,c)})).add(ce.events.closed$.subscribe(c=>{var g,M;return(M=(g=s==null?void 0:s.adsInfo)==null?void 0:g.onClosed)==null?void 0:M.call(g,c)})).add(ce.events.error$.subscribe(c=>{var g,M;return(M=(g=s==null?void 0:s.adsInfo)==null?void 0:g.onError)==null?void 0:M.call(g,c)})).add(ce.events.paused$.subscribe(()=>{var c,g;return(g=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onPaused)==null?void 0:g.call(c)})).add(ce.events.resumed$.subscribe(()=>{var c,g;return(g=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onResumed)==null?void 0:g.call(c)}));let Vt=new rt.Subscription,W=()=>{var Je,Mt,Ut;let{debugLog:c}=ve,g,M="#9df7b7",ie="#efd169";if(c&&c!==!0){let{colors:Xt}=c;g=c.tag,M=(Je=Xt==null?void 0:Xt[0])!=null?Je:M,ie=(Ut=(Mt=Xt==null?void 0:Xt[1])!=null?Mt:Xt==null?void 0:Xt[0])!=null?Ut:ie}let Te=g?`: ${g}`:"";Vt.add(D.events.log$.subscribe(Xt=>{console.debug(`%c sdk${Te} `,`background:${M};`,`sdk component: ${Xt.component}`,Xt.message)})).add(ue.log$.subscribe(Xt=>{console.debug(`%c ui${Te} `,`background:${ie};`,`ui component: ${Xt.component}.`,Xt.message)}))},Rt=()=>{Vt.unsubscribe()},dt=(c,g)=>{U.log("start camera manual rotation",{mx:c,my:g}),D.startCameraManualRotation(c,g)},xi=(c=!1)=>{U.log("stop camera manual rotation",{immediate:c}),D.stopCameraManualRotation(c)},ii=(c,g,M)=>{U.log("move camera focus px",{xpx:c,ypx:g,dt:M}),D.moveCameraFocusPX(c,g,M)},xt=()=>{D.holdCamera()},lt=()=>{D.releaseCamera()},qi=Dr(D.info.position$.getValue(),c=>{let g,M,ie=()=>{let Te=D.info.playbackState$.getValue(),Je=D.info.isLive$.getValue(),Mt=D.info.duration$.getValue(),Ut=D.info.position$.getValue();if(Te&&[hi.PlaybackState.PLAYING,hi.PlaybackState.PAUSED].includes(Te)){let Xt=Je?Ut-Mt:D.getExactTime();Xt!==M&&c(Xt),M=Xt}g=requestAnimationFrame(ie)};return ie(),()=>cancelAnimationFrame(g)}),Ai=li(D.info.playbackState$),Ln=li(D.info.isBuffering$),Mn=vi([Ai,Ln],([c,g])=>g?"buffering":c),Ei=li(D.info.currentBuffer$),po=li(D.info.isEnded$),mr=li(D.info.isLive$),io=ve.features.playbackRate?li(D.info.canChangePlaybackSpeed$):Dr(!1),Ci=li(D.info.liveBufferTime$),Ho=li(D.info.volume$),on=li(D.info.muted$),xo=Hu(D.info.predefinedQualityLimitType$.pipe((0,rt.map)(c=>c===hi.PredefinedQualityLimits.TRAFFIC_SAVING)),D.info.predefinedQualityLimitType$.getValue()===hi.PredefinedQualityLimits.TRAFFIC_SAVING),hn=Hu(D.info.predefinedQualityLimitType$.pipe((0,rt.map)(c=>c===hi.PredefinedQualityLimits.HIGH_QUALITY)),D.info.predefinedQualityLimitType$.getValue()===hi.PredefinedQualityLimits.HIGH_QUALITY),Ur=li(D.info.autoQualityLimitingAvailable$),zr=li(D.info.availableQualities$),Ss=li(D.info.availableQualitiesFps$),vr=li(D.info.chromecastState$),gr=li(D.info.chromecastDeviceName$),Wr=li(D.info.currentFormat$),Kr=li(D.info.throughputEstimation$),nn=li(D.info.videoBitrate$),Vn=li(D.info.intrinsicVideoSize$),Xn=li(D.info.duration$),hr=li(D.info.isAudioAvailable$),ls=()=>{mi&&clearTimeout(mi),mi=null},rn=vi([Xn,mr],([c,g])=>g?-c:c),_r=vi([Ai],([c])=>c===hi.PlaybackState.PLAYING),Rn=li(D.info.atLiveEdge$),br=li(D.info.atLiveDurationEdge$),$r=li(D.info.position$),Eo=vi([$r,Xn],([c,g])=>isFinite(c)&&isFinite(g)&&!!g),yr=vi([vr],([c])=>c===hi.ChromecastState.CONNECTED),oo=li(D.info.availableVideoStreams$),Zn=ve.features.audioLanguages?li(D.info.availableAudioStreams$):Dr([]),Jn=li(D.info.currentVideoStream$),ft=li(D.info.currentAudioStream$),si=c=>{c.language&&nm(c.language),D.setVideoStream(c)},xr=(c,g)=>{D.setAudioStream(c),cn(g)&&(c.language&&nm(c.language),ve.features.userVideoPrefs&&t&&am(ve.userSalt,String(t),{audioTrackId:c.id}))},wr=c=>{let g;if(c.length===1&&(g=c.at(0)),g!=null||(g=c.find(ie=>"isDefault"in ie&&ie.isDefault)),ve.features.userVideoPrefs&&t){let ie=Ku(ve.userSalt,String(t));if(ie!=null&&ie.audioTrackId){let Te=c.find(Je=>Je.id===ie.audioTrackId);g=Te!=null?Te:g}}let M=K_();return M&&(g!=null||(g=c.find(({language:ie})=>M===ie))),g!=null||(g=c.at(0)),g},ds=c=>{U.log("change audio stream",{id:c});let g=D.info.availableAudioStreams$.getValue().find(M=>M.id===c);g&&xr(g,!0)},On=!1;Ne.add(D.info.availableAudioStreams$.subscribe(c=>{if(!On&&c.length){let g=wr(c);g&&(D.setAudioStream(g),On=!0)}})),Zn.subscribe(c=>{var g;(g=s==null?void 0:s.onAvailableAudioStreamsChanged)==null||g.call(s,c.map(({label:M="",id:ie="",language:Te=""})=>({label:M,language:Te,id:ie})))}),ft.subscribe(c=>{var g;return c&&((g=s==null?void 0:s.onAudioStreamChanged)==null?void 0:g.call(s,c.id))});let Sr=!1;Ne.add(D.info.availableVideoStreams$.subscribe(c=>{if(!Sr&&c.length){let g=wr(c);g&&(D.setVideoStream(g),Sr=!0)}}));let Po=ae(void 0),sn=li(D.info.isAutoQualityEnabled$,c=>c&&Po.set(void 0)),Cr=li(D.info.currentQuality$,()=>Po.set(void 0)),an=vi([Po,Cr],([c,g])=>c!=null?c:g),ln=vi(Wr,c=>c!==hi.VideoFormat.MPEG),qr=vi([zr,Ss,sn,an,ln],([c,g,M,ie,Te])=>{let Je=[];Te&&Je.push({value:"auto",displayValue:He("auto_quality_option"),selected:M});let Mt=c.filter(Ut=>!(0,rt.isInvariantQuality)(Ut));for(let Ut of Mt){let Xt=g[Ut];Je.push({value:Ut,displayValue:`${Ut}${Xt?Mb(Xt):""}`,selected:M?!1:Ut===ie})}return Je}),_n=li(D.info.currentPlaybackRate$),bn=vi([_n,Rn,br],([c,g,M])=>{let ie=M||x?1:ve.controls.playbackRateMin,Te=g?1:ve.controls.playbackRateMax,Je=ve.controls.playbackRateStep,Mt=[];for(let Ut=ie;Ut<=Te;Ut+=Je)Mt.push({value:Ut,displayValue:Ut===1?He("playback_rate_1"):He("playback_rate",{multiplier:Ut.toString(10)}),selected:c===Ut});return Mt}),Pi=()=>({displayValue:He("subtitles_off"),value:An,language:""}),Nn=ae(Pi()),no=vi([Nn,kt],([c],g)=>{c.value===An?g(Pi()):g(c)}),Dn=ve.features.subtitles?li(D.info.availableTextTracks$):Dr([]),er=M_(),$n=vi([Dn,no],([c,g],M)=>{var Je;let ie=[],Te=c.find(({id:Mt})=>Mt===g.value);if(Te!=null&&Te.url){let[,Mt]=(Je=er.find(Te.url))!=null?Je:[];if(Mt){M(Mt);return}Pe.download(Te.url).then(Ut=>{if(!Ut||Pe.isDestroyed())return;let Xt=new Vb,Xs=Te.language;if(Xs){let W$=!!Te.isAuto,K$=Xt.parse(Ut,Xs);ie.push({lang:Xs,subtitles:K$,isAuto:W$,id:Te.id})}er.add(Te.url,ie),$e(no).value===g.value&&M(ie)}).catch(rt.suppressAbort).catch(Ut=>{var Xt;(Xt=Z==null?void 0:Z.oneStat)==null||Xt.logError({errorType:"Subtitles download",fatal:!1}),_e==null||_e.report(Ut,{errorType:"Subtitles download",fatal:!1}),de==null||de.error({category:rt.ErrorCategory.WTF,id:"Subtitles download",message:String(Ut),thrown:Ut},{severity:"warning"})})}M(ie)}),Tr=vi([_n,_r,no],([c,g,M],ie)=>{let Mt;if(D.info.isLive$.getValue()&&g&&M.value!==An){let Xt=()=>{let Xs=1e3/(3*c);Mt=setTimeout(Xt,Xs),ie(Date.now())};return Xt(),()=>clearTimeout(Mt)}}),it=vi([Dn,no],([c,g])=>{if(!c.length)return[];let M=[];for(let{language:ie,isAuto:Te,id:Je}of c){let Mt=ie&&yc(ie);ie&&Mt&&M.push({displayValue:Te?He("subtitles_auto",{language:Mt}):Mt,value:Je,selected:(g==null?void 0:g.value)===Je,isAuto:Te,language:ie})}return M.length?(M.unshift(Gt(Le({},Pi()),{selected:(g==null?void 0:g.value)===An})),M):[]}),di={available:[],prev:[]},Fo=()=>{var g,M;let c=D.experimental.getCurrentTime$.getValue();return(M=(g=c==null?void 0:c())!=null?g:Ue==null?void 0:Ue.currentTime)!=null?M:0},yn=vi([qi,no,$n,Tr],([c,g,M,ie])=>{var Je;let Te=D.info.isLive$.getValue();if(Te&&di.prev!==M){let Mt=M.find(({id:Xt})=>Xt===g.value),Ut=di.prev.find(({id:Xt})=>Xt===g.value);if(Mt){let Xt=Gt(Le({},Mt),{subtitles:[...(Je=Ut==null?void 0:Ut.subtitles)!=null?Je:[],...Mt.subtitles]});di.available=[Xt],di.prev=M}}if(g&&g.value!==An){let Mt=Te?Fo():c,Ut=Te?di.available:M;return Nb(Mt,g,Ut,Te)}}),ko=vi([yn],([c])=>c!=null&&c.texts?c.texts:[]);Ne.add(no.subscribe(c=>{var g,M;if(c.value===An)(g=s==null?void 0:s.onSubtitleOff)==null||g.call(s);else{let ie=Object.entries(mp).find(([Te,Je])=>Je===c.displayValue);(M=s==null?void 0:s.onSubtitleOn)==null||M.call(s,ie?ie[0]:"",c.value)}}));let dn=ae(!0),wo=vi([Ei,rn,$r,Ci],([c,g,M,ie])=>{var Ut;let Te=(Ut=c==null?void 0:c.end)!=null?Ut:0;if(!ie)return Te/g;let Mt=-M+ie-g;return(Te-Mt)/g}),So=li(D.info.availableSources$),Li=vi([So],([c])=>Object.keys((c==null?void 0:c[hi.VideoFormat.MPEG])||{}).length>0),Qr=()=>{var M,ie,Te;let c=Object.keys(((ie=(M=D.info.availableSources$)==null?void 0:M.getValue())==null?void 0:ie[hi.VideoFormat.MPEG])||{}),g=(0,rt.getHighestQuality)(c)||rt.VideoQuality.Q_144P;return(Te=ke.sources[hi.VideoFormat.MPEG])==null?void 0:Te[g]},Bn=()=>{var g;let c=Qr();if(c)U.log("download video",{url:c}),k_(c,((g=ke==null?void 0:ke.meta)==null?void 0:g.title)||"video");else{let M="There is no URL for download video";U.log("download video",{message:M}),ee({message:M})}},Cs=()=>{ee({message:"toggle muted"});let c=D.info.muted$.getValue();D.info.volume$.getValue()===0&&!c?Hn(Ir(),!1):Ti(!c,!1)},Qi=()=>{var c;if(Qt.ui.settingsMenu.visible$.set(!1),!$e(Qt.ui.settingsSubMenu.visible$)){let g=$e(Qt.ui.settingsMenu.ref$);if((c=s==null?void 0:s.uiInfo)!=null&&c.onSettingsMenu&&g){let ie=td(g),Te={top:0,left:0,bottom:0,right:0};s.uiInfo.onSettingsMenu({visible:!1,size:ie,position:Te,name:"settings"})}}U.log("close settings menu")},Ts=(c,g=()=>Promise.resolve())=>gt(null,null,function*(){var Te;Qt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),Qt.ui.settingsMenu.visible$.set(!0),yield g();let M=$e(Qt.ui.settingsMenu.ref$),ie=Ta();if((Te=s==null?void 0:s.uiInfo)!=null&&Te.onSettingsMenu&&M&&ie){let Mt=td(M),Ut=Us(M,ie);s.uiInfo.onSettingsMenu({visible:!0,size:Mt,position:Ut,name:"settings"})}U.log("open settings menu",{wasOpenedByKeyboard:c})}),cs=(c,g=!1)=>{var Je;Qt.ui.settingsSubMenu.visible$.set(!1);let M=$e(Qt.ui.settingsMenu.ref$),ie=Ta(),Te=$e(Qt.ui.settingsMenu.visible$);if((Je=s==null?void 0:s.uiInfo)!=null&&Je.onSettingsMenu&&M&&ie)if(Te&&!g){let Ut=td(M),Xt=Us(M,ie);s.uiInfo.onSettingsMenu({visible:!0,size:Ut,position:Xt,name:"settings"})}else{let Ut=td(c),Xt={top:0,left:0,bottom:0,right:0},Xs=$e(Qt.ui.settingsSubMenu.name$);s.uiInfo.onSettingsMenu({visible:!1,size:Ut,position:Xt,name:Xs})}U.log("close settings sub menu")},us=(c,g)=>{var ie;Qt.ui.settingsSubMenu.visible$.set(!0),Qt.ui.settingsSubMenu.ref$.set(g),Qt.ui.settingsSubMenu.name$.set(c);let M=Ta();if((ie=s==null?void 0:s.uiInfo)!=null&&ie.onSettingsMenu&&g&&M){let Je=td(g),Mt=Us(g,M);s.uiInfo.onSettingsMenu({visible:!0,name:c,size:Je,position:Mt})}U.log("open settings sub menu",{name:c})},Ir=()=>{var g;let c=Math.max(ve.volumeMinRestore,(g=Fu())!=null?g:0);return c===0?ve.volumeDefault:c},cn=c=>{let g=ve.features.savePreferredStatesOnUserActionOnly;return!g||g&&!c},Hn=(c,g)=>{let M=c===0?Ir():c,ie=D.info.muted$.getValue();ee({message:`set volume, volume: ${c}, preferredVolume: ${M}`});let Te=!l||st.is("ads");ie&&c>0&&Te&&(ie=!1,cn(g)&&im(!1)),D.setVolume(c,ie),ce.setVolume(c),cn(g)&&Zf(M)},Ti=(c,g)=>{let M=D.info.volume$.getValue();ee({message:`set muted, currentVolume: ${M}, mute: ${c}`});let ie=st.is("ads");if(D.setMuted(c,ie),ce.setVolume(c?0:M),cn(g)&&(!ie||!c)&&im(c),!c&&M===0){let Te=Ir();D.setVolume(Te),cn(g)&&Zf(Te),ce.setVolume(Te)}},je=ae(!1),Lt=c=>{var g,M;U.log("set looped",{isLooped:c}),je.set(c),D.setLooped(c),(M=(g=s==null?void 0:s.uiInfo)==null?void 0:g.onLoopedChanged)==null||M.call(g,c)};Lt(re);let fi=()=>{var c,g;(g=(c=s==null?void 0:s.uiInfo)==null?void 0:c.onReportProblem)==null||g.call(c)},Uo=(c,g=!1)=>{var M;ee({message:`set autoplayNextEnabled, value: ${c}`}),U.log("set autoplay next enabled",{autoplayNextEnabled:c}),Qt.ui.autoplayNextEnabled$.set(c),G_(c),g&&((M=s==null?void 0:s.onSetAutoplayNextEnabled)==null||M.call(s,c))},Ao=c=>{ee({message:`set timerNextVideoRunning, value: ${c}`}),U.log("set timer next video running",{timerNextVideoRunning:c}),Qt.ui.timerNextVideoRunning$.set(c)},Lo=(c=!0)=>{var M;let g=!0;if(c&&(s!=null&&s.onPrevVideoClick))try{g=(M=s==null?void 0:s.onPrevVideoClick)==null?void 0:M.call(s)}catch(ie){ee({message:"onPrevVideoClick callback failed to execute"})}Y(!0),g&&X()},Gi=(c=!0)=>{var M;let g=!0;if(c&&(s!=null&&s.onNextVideoClick))try{g=(M=s==null?void 0:s.onNextVideoClick)==null?void 0:M.call(s)}catch(ie){ee({message:"onNextVideoClick callback failed to execute"})}Y(!1),g&&se()},zo=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementShow)==null||c.call(s)},Fn=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementClick)==null||c.call(s)},Er=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementAuto)==null||c.call(s)},Mo=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementCancel)==null||c.call(s)},fo=()=>{D.prepare()},tr=()=>{(0,rt.assertNonNullable)(Qt);let c=$e(Qt.ui.controls.disabledControls$),g=$e(Qt.playerPhase),M={playerPhase:g,isInteractive:x,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(ee({message:"toggle play"}),g==="ads"){M.action="play",U.log("toggle adman play",M),ce.togglePlay();return}let ie=()=>{var Je;ee({message:"toggle play, call player.play"}),M.action="play",D.play(),(Je=s==null?void 0:s.onPlay)==null||Je.call(s)},Te=()=>{var Je;ee({message:"toggle play, call player.pause"}),M.action="pause",D.pause(),(Je=s==null?void 0:s.onPause)==null||Je.call(s)};if(D.info.isEnded$.getValue()){if(ee({message:"toggle play, video ended, seek to 0"}),St.next(),Ct.next(Fr.SeekAction.REWIND),x){R==null||R();return}D.seekTime(0),ie()}else D.info.playbackState$.getValue()!==hi.PlaybackState.PLAYING?ie():Te();U.log("toggle play",M)},Wo=(c,{changeReason:g="default",appliesTo:M="to-video",byUser:ie=!1}={},Te)=>{ee({message:`set quality, quality: ${c}`}),U.log("set quality",{quality:c}),ie&&vt.next(c),D.setAutoQuality(c==="auto");let{qualityDetailsSubMenuEnabled:Je}=ve.features;Uu(),c!=="auto"?(Je?(zu({type:"exact_quality",quality:c,videoId:t},M),D.setPredefinedQualityLimits(hi.PredefinedQualityLimits.UNKNOWN)):Jf(t,c),Po.set(c),D.setQuality(c)):Je&&g==="default"&&(Yr("auto_quality",M,Te),$e(xo)&&Un(!1,void 0,Te),$e(hn)&&Pr(!1,void 0,Te))},Un=(c,g="as-default",M)=>{ee({message:`set trafficSavingEnabled, value: ${c}`}),U.log("set traffic saving enabled",{trafficSavingEnabled:c});let ie=c?hi.PredefinedQualityLimits.TRAFFIC_SAVING:hi.PredefinedQualityLimits.UNKNOWN;ve.features.qualityDetailsSubMenuEnabled?(Gr(ie,g,M),ec(!1)):(D.setPredefinedQualityLimits(ie),cn(M)&&ec(c))},Pr=(c,g="as-default",M)=>{ee({message:`set highQualityEnabled, value: ${c}`}),U.log("set high quality enabled",{highQualityEnabled:c}),Gr(c?hi.PredefinedQualityLimits.HIGH_QUALITY:hi.PredefinedQualityLimits.UNKNOWN,g,M)},Gr=(c,g,M)=>{c!==hi.PredefinedQualityLimits.UNKNOWN&&($e(Ur)&&!$e(sn)&&Wo("auto",{appliesTo:g,changeReason:"limit-changed"},M),Yr(c,g,M)),D.setPredefinedQualityLimits(c)},Yr=(c,g,M)=>{cn(M)&&(zu({type:c,videoId:t},g),g==="as-default"&&zu({type:c,videoId:t},"to-video"))},Ze=(c,g=!0)=>{U.log("set playback rate",{playbackRate:c}),D.setPlaybackRate(c),ve.features.saveRate&&Ce&&!D.info.isLive$.getValue()&&g&&q_(c)},ti=()=>{let c=$e(io),g=$e(bn),M=g.findIndex(({selected:Te})=>Te);if(M===g.length-1||!c)return g[M];let ie=g[M+1];return Ze(ie.value),ie},Mi=()=>{let c=$e(io),g=$e(bn),M=g.findIndex(({selected:Te})=>Te);if(M===0||!c)return g[M];let ie=g[M-1];return Ze(ie.value),ie},Co=(c=Gt(Le({},Pi()),{selected:!1}),g)=>{U.log("set subtitles",Le({},c)),c.value!==An&&Si.next(c.isAuto?c.value+"_auto":c.value),Ft.next({enabled:c.value!==An,lang:c.language,auto:!!c.isAuto}),Nn.set(c),cn(g)&&(sm(c.value===An?void 0:c.language),ve.features.userVideoPrefs&&t&&am(ve.userSalt,String(t),{subtitleTrackId:c.value===An?void 0:c.value}))},un=c=>{U.log("toggle subtitles");let g=$e(no);(g==null?void 0:g.value)===An?Ko(c):or(c)},ir=(c,g)=>{U.log("change subtitle",{enabled:c}),c?Ko(!0,g):or(!0)},Ko=(c,g)=>{U.log("subtitle on");let M=$e(it),ie=$e(xe),Te=_t!=null?_t:ie,Je;g&&(Je=M.find(Mt=>Mt.value===g)),Je!=null||(Je=M.filter(Mt=>Mt.value!==An).find(Mt=>Mt.language===Te)),Co(Je!=null?Je:M[1],c)},or=c=>{U.log("subtitle off"),Co(void 0,c)};Ne.add(D.info.availableTextTracks$.subscribe(c=>{var M;function g(){let ie=[];for(let{language:Te,isAuto:Je,id:Mt}of c){let Ut=Te&&yc(Te);Te&&Ut&&ie.push({id:Mt,language:Te,title:Je?He("subtitles_auto",{language:Ut}):Ut})}return ie}(M=s==null?void 0:s.onAvailableSubtitlesChanged)==null||M.call(s,g())}));let ps=ae(!0),Gs=c=>{ps.set(c)},zn=(c,g,M=!0)=>{var ie;if(ee({message:`seek to time, time: ${c}`}),U.log("seek to time",{time:c,action:g,forcePrecise:M}),Ct.next(g),D.info.isLive$.getValue()){let Te=D.info.duration$.getValue(),Je=Math.min(0,Te+c);D.seekTime(Je,M)}else{if(T!=null&&T.getValue())return;D.info.isEnded$.getValue()&&(ee({message:"seek after ended, call callbacks.onPlay"}),(ie=s==null?void 0:s.onPlay)==null||ie.call(s)),D.seekTime(Sg(c),M)}},xa=c=>{ee({message:`seek to episode start time: ${c}`}),U.log("seek to episode start time",{time:c}),zn(c,Fr.SeekAction.EPISODE,!0)},Ys=(c,g,M=!1)=>{ee({message:`seek to percent, percent: ${c}`}),U.log("seek to percent",{percent:c,action:g});let ie=$e(rn)*c;zn(ie,g,M)},ct=c=>{ee({message:`seek external, time: ${c}`}),U.log("seek external",{time:c}),Ct.next(Fr.SeekAction.UNKNOWN),D.seekTime(D.info.isLive$.getValue()?-c:c)},ci=c=>{var ie,Te;let g=(ie=c.max)!=null?ie:"none",M=(Te=c.min)!=null?Te:"none";ee({message:`set auto quality limitation. Max: ${g}. Min: ${M}`}),U.log("set auto quality limits",{max:g,min:M}),D.setAutoQualityLimits(c)},Vo=c=>{ee({message:`seek external to episode start time: ${c}`}),U.log("seek external to episode start time",{time:c}),zn(c,Fr.SeekAction.EPISODE,!0)},mo=c=>{ee({message:`set playback rate to: ${c}`}),U.log("set playback rate external",{playbackRate:c}),D.setPlaybackRate(c)},Vi=ae(!1),kr=ae(!1),Is=vi([rn],([c])=>!!p&&c>=ve.suitableDurationForUsingRichSeek&&ve.features.useRichSeek&&!x&&oe!=="preview"),Es=((p==null?void 0:p.frameWidth)||0)>=((p==null?void 0:p.frameHeight)||0),vo=vi([Dt],([c])=>{let g=id(c);return Es?!g:g});Ne.add(st.subscribe(c=>{c!=="video"&&Vi.set(!1)})),Vi.subscribe(c=>{var g;(g=s==null?void 0:s.onRichSeekActiveChanged)==null||g.call(s,c)});let Ri=ae(void 0),me=ae(!1),Tt=c=>{ee({message:`start scrubbing, progress: ${c}`}),U.log("start scrubbing",{progress:c}),me.set(!0),oi(c)},oi=c=>{Ri.set(c)},ni,qo,go=()=>{Ri.set(void 0),me.set(!1)},Yi=()=>{clearTimeout(qo),clearTimeout(ni),ni=window.setTimeout(()=>{go()},500),Ue==null||Ue.removeEventListener("seeked",Yi)},fs=(c,g=!1,M=Fr.ThinOneStat.ActionSeekType.SLIDER)=>{ee({message:`complete scrubbing, progress: ${c}`}),U.log("complete scrubbing",{progress:c}),Ys(c,M,g),$e(Qt.ui.isMobile)&&$e(Qt.state.currentFormat$)===hi.VideoFormat.HLS?(Ue==null||Ue.addEventListener("seeked",Yi),qo=window.setTimeout(()=>{Yi()},300)):go()},nr=vi([qi,rn,Ri],([c,g,M],ie)=>{ie((0,rt.isNonNullable)(M)?M*g:c)}),jr=ae(!1),wa=()=>{jr.set(!0)},gd=()=>{jr.set(!1)},Ar=vi([_i],([{width:c}],g)=>{let M=Ib(c);g(M)}),ms=K.filter(c=>A_(c)),js=vi([Ar,It],([c,g])=>g?ms.filter(M=>!M.hideOnMobile):ms.filter(M=>{var ie;return!((ie=M.hideOnDesktopGridTypes)!=null&&ie.includes(c))})),Lr=ae(K.filter(c=>L_(c))),gl=vi([Lr,Ar],([c,g])=>c.filter(M=>{var ie;return!((ie=M.hideOnDesktopGridTypes)!=null&&ie.includes(g))})),hd=vi([gl,js],([c,g])=>[...ve.features.additionalButtonsDesktopControlPanelRight?c.filter(M=>M.type==="desktop-control-panel-right"):[],...ve.features.additionalButtons?g.map((M,ie)=>{var Te;return{id:ie,weight:ie,type:"desktop-control-panel-right",testId:M.testId,icon:M.iconUrl,onClick:M.onClick,ariaLabel:(Te=M.ariaLabel)!=null?Te:M.tooltip,tooltipText:M.tooltip}}):[]].filter(M=>!v.disabledAdditionalButtonIds.includes(M.id))),Mr=ae(F),hl=vi([Mr],([c])=>ve.features.additionalSettingsMenuItems?c.map(g=>g.type==="SWITCH"?Gt(Le({},g),{onClick:g.onChangeEnabled}):g):[]),_l=(c,g)=>{let M=$e(Lr).map(ie=>ie.id!==c?ie:Le(Le({},ie),g));Lr.set(M)},_d=c=>{let g=$e(Lr);if(g.some(M=>M.id===c.id)){ee({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}g.push(c),Lr.set(g)},Sa=c=>{let g=$e(Lr);if(!g.some(M=>M.id===c)){ee({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}g=g.filter(M=>M.id!==c),Lr.set(g)},bl=c=>{Ct.next(Fr.SeekAction.LIVE),ee({message:"live switch to low latency "+c}),U.log("live switch to low latency "+c),D.setLiveLowLatency(c)},ut=(c,g)=>{let M=$e(Mr).map(ie=>ie.id!==c?ie:Le(Le({},ie),g));Mr.set(M)},mt=c=>{let g=$e(Mr);if(g.some(M=>M.id===c.id)){ee({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}g.push(c),Mr.set(g)},ji=c=>{let g=$e(Mr);if(!g.some(M=>M.id===c)){ee({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}g=g.filter(M=>M.id!==c),Mr.set(g)},Di=ae(z),Xi=vi([Di],([c])=>ve.features.additionalContextMenuItems?c:[]),yi=(c,g)=>{let M=$e(Di).map(ie=>ie.id!==c?ie:Le(Le({},ie),g));Di.set(M)},Bi=c=>{let g=$e(Di);if(g.some(M=>M.id===c.id)){ee({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}g.push(c),Di.set(g)},Ca=c=>{let g=$e(Di);if(!g.some(M=>M.id===c)){ee({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}g=g.filter(M=>M.id!==c),Di.set(g)},$l=vi([It,we],([c,g],M)=>{M(c&&g)}),Wp=()=>{Ct.next(Fr.SeekAction.LIVE),ee({message:"switch to active live"}),U.log("switch to active live"),D.seekTime(0),D.info.playbackState$.getValue()!==hi.PlaybackState.PLAYING&&Qt.actions.internal.togglePlay()},eu=()=>{U.log("skip adman"),ce.skip()},Kp=(c=!0)=>{var ie;(0,rt.assertNonNullable)(Qt),ee({message:`switch from ads to video, callPlay: ${c}`}),U.log("switch from ads to video",{callPlay:c}),Qe.set("video"),c&&D.play(),l&&Ti(!0,!0);let g=(ie=$e(Jt))==null?void 0:ie.muted,M=!D.info.muted$.getValue();g!==void 0&&!M&&Ti(g,!0),Jt.set(void 0)},tu=()=>{(0,rt.assertNonNullable)(Qt),ee({message:"switch from video to ads"}),U.log("switch from video to ads"),Qt.actions.internal.pause(),bt(),Qe.set("ads")},qp=c=>{(0,rt.assertNonNullable)(Qt);let g=c?"LiveWaitingStart":"thumb";U.log("set live waiting start",{state:c,playerPhase:g}),Qe.set(g)},iu=c=>{(0,rt.assertNonNullable)(Qt);let g=c?"LiveWaitingRecover":"thumb";U.log("set live waiting recover",{state:c,playerPhase:g}),Qe.set(g)},Qp=c=>{(0,rt.assertNonNullable)(Qt);let g=c?"LiveWaitingRecord":"thumb";U.log("set live waiting record",{state:c,playerPhase:g}),Qe.set(g)},ou=()=>((0,rt.assertNonNullable)(Qt),U.log("get debug text data"),E_(D,ke,Qt,We.getTraceId(),Se)),Gp=()=>((0,rt.assertNonNullable)(Qt),JSON.stringify(We.getFinishedSpans())),nu=()=>((0,rt.assertNonNullable)(Qt),P_(D,ke,Qt)),Ta=()=>Ue,ru=()=>{ee({message:"toggle chromecast"}),U.log("toggle chromecast"),D.toggleChromecast()},Ia=c=>{var M;if((0,rt.assertNonNullable)(Qt),D.info.isEnded$.getValue())return;let g=!c;if($e(Qt.playerPhase)==="ads"){ee({message:`pause ads, internalCall: ${g}`}),U.log("pause ads",{internalCall:g}),ce.pause();return}ee({message:`pause video, internalCall: ${g}`}),U.log("pause video",{internalCall:g}),g&&((M=s==null?void 0:s.onPause)==null||M.call(s)),D.pause()},Ea=c=>{var M;(0,rt.assertNonNullable)(Qt);let g=!c;if($e(Qt.playerPhase)==="ads"){ee({message:`play ads, internalCall: ${g}`}),U.log("play ads",{internalCall:g}),ce.play();return}ee({message:`play video, internalCall: ${g}`}),U.log("play video",{internalCall:g}),g&&((M=s==null?void 0:s.onPlay)==null||M.call(s)),D.play()},Yp=c=>{(0,rt.assertNonNullable)(Qt);let g=!c;if($e(Qt.playerPhase)==="ads"){ee({message:"player cannot be stopped during ads via external method"});return}ee({message:`player will be stopped, internalCall: ${g}`}),A==null||A()},bd=(c,g)=>{(0,rt.assertNonNullable)(Qt),ee({message:`first start, show ads: ${c}, internalCall: ${!g}`}),U.log("first start",{showAds:c,external:g}),c?Qe.set("ads"):(Qe.set("video"),g?D.play():Qt.actions.internal.togglePlay())},$d=()=>(ee({message:"getting time codes"}),m),su=()=>{let c=$d();if(!c||[0,1].includes(c.length))return;let g=D.info.position$.getValue();return c.find(M=>M.time>g)},jp=c=>{let g=c;g||(g=su());let M=D.info.position$.getValue();U.log("seek to next episode",Le({currentTime:M},g)),g&&(ee({message:"seek to next episode"}),zn(g.time,Fr.SeekAction.EPISODE,!0))},Ge=()=>{let c=$d();if(!c||[0,1].includes(c.length))return;let g=D.info.position$.getValue(),M=c.findIndex(Te=>Te.time>g),ie=M===-1?c.length-2:M-2;if(!(ie<0))return c[ie]},bi=c=>{let g=c;g||(g=Ge());let M=D.info.position$.getValue();U.log("seek to prev episode",Le({currentTime:M},g)),g&&(ee({message:"seek to prev episode"}),zn(g.time,Fr.SeekAction.EPISODE,!0))},Qo=()=>(ee({message:"getting preview thumbs data"}),U.log("get preview thumbs data",Le({},p)),p),Vr=()=>gt(null,null,function*(){let c=ge==null?void 0:ge.isActive(),g="none";ge!=null&&ge.isActive()?(g="exit",yield ge==null?void 0:ge.exit()):(g="request",yield ge==null?void 0:ge.request()),U.log("toggle picture in picture",{isActive:c,action:g})}),xn=(c=-90)=>{U.log("rotate video",{alphaDiff:c}),Dt.update(g=>g+c)},au=ae([]);I==null||I.subscribe(c=>{let g=[];for(let M=0;M<c.length;M++){let{range:[ie,Te],subjects:Je}=c[M];M===0&&ie!==0&&g.push({time:0,text:"",interactive:!1,completed:!0}),g.push({time:ie/1e3,text:"",interactive:!0,completed:ve.features.interactiveTimeOpenUri?!Je.length||Je.every(Mt=>Mt.isRemoved):!Je.length}),Te!==1/0&&g.push({time:Te/1e3,text:"",interactive:!1,completed:!0})}au.set(g)});let O$=ae(!1);T==null||T.subscribe(c=>{c&&$e(me)&&go()});let Sg=c=>{if(!x)return c;let g=$e(au),M=$e(rn),Te=$e($r)/M,Je=g.find(Mt=>Mt.interactive&&!Mt.completed&&Mt.time>Te);return typeof(Je==null?void 0:Je.time)=="number"?Math.min(c,Je.time-.05):c},N$=()=>{Qt.ui.episodes.panelOpened$.set(!1)},D$=()=>{U.log("destroy store"),clearTimeout(qo),clearTimeout(ni),Ne.unsubscribe(),Vt.unsubscribe(),D.destroy(),ce.destroy(),Z==null||Z.destroy(),_e==null||_e.destroy(),Re.unsubscribe(),qt==null||qt.disconnect(),qt=null,Pe.destroy(),de==null||de.destroy()},B$=vi([Rn,st,io],([c,g,M])=>v.features.doubleForwardAvailable&&!c&&g==="video"&&M),Xp=ae(!1),Cg=2,lu=null,Tg=c=>{if(!$e(_r)&&c)return;let g=D.info.currentPlaybackRate$.getValue();c?g!==Cg&&(lu=g,Ze(Cg,!1),Xp.set(!0)):(lu&&Ze(lu,!1),Xp.set(!1),lu=null)};st.subscribe(c=>{c!=="video"&&Tg(!1)});let H$=()=>{Ia(!1),Vi.set(!0)},F$=()=>{Ea(!1),Vi.set(!1)},Zp=!1,U$=()=>{kr.set(!0),Zp=D.info.playbackState$.getValue()===hi.PlaybackState.PLAYING,Ia(!1)},z$=()=>{kr.set(!1),!$e(Vi)&&Zp&&Ea(!1),Zp=!1};D.events.playing$.subscribe(()=>{$e(Vi)&&Ia(!1)});let Qt={interfaceLanguage$:xe,isCyrillicRelatedInterface$:be,initVideo:wt,videoId:t,isClip:o,playerPhase:st,vsid:Pt,state:{positionExact$:qi,positionWithScrubbing$:nr,duration$:rn,playbackState$:Ai,playbackStateRealistic$:Mn,isPlaying$:_r,isLoaderVisible:yo,bufferedProgress$:wo,isLive$:mr,canChangePlaybackSpeed$:io,isActiveLive$:Rn,isOldestAvailableLive$:br,isRewindableLive$:Eo,isEnded$:po,muted$:on,volume$:Ho,trafficSavingEnabled$:xo,highQualityEnabled$:hn,autoQualityLimitingAvailable$:Ur,availableVideoStreams$:oo,availableAudioStreams$:Zn,videoStream$:Jn,audioStream$:ft,currentQuality$:an,isAutoQualityEnabled$:sn,availableQualities$:qr,currentPlaybackRate$:_n,availablePlaybackRates$:bn,currentSubtitle$:no,availableTextTracks$:Dn,availableSubtitlesList$:it,currentSubtitleCaptions$:ko,isAutoSubtitleCaptionVisible$:dn,chromecastState$:vr,chromecastDeviceName$:gr,chromecastConnected$:yr,currentFormat$:Wr,throughputEstimation$:Kr,videoBitrate$:nn,videoSize$:Vn,errorLog$:Ae,crashed$:we,isAudioAvailable$:hr,isAudioDisabled:!!l,canDownload:ve.features.download&&!!d,availableSources$:So,hasMpegSources$:Li,isInteractive:x,showInteractiveGraph:ve.features.interactiveGraph,showSeekToInteractive:ve.features.seekToInteractive,showPlayPrevChapter:ve.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:ve.features.interactiveTimeIndicator&&!!$e(au).length,interactiveEpisodes$:au,isInteractiveTime$:T?li(T):ae(!1),isInteractiveExpectation$:O$,hasInteractiveBranches:P,playPrevChapterDisabledTooltip:E,looped$:je,loadedMetadata$:jt,isAutoQualityAvailable$:ln,previewTrackActive:Vi,previewTrackDragInProgress:kr},ui:{t:He,controlsVisible:ae(!1),touched:ae(!1),controls:{prevButton:ae(void 0),playButton:ae(void 0),replayButton:ae(void 0),nextButton:ae(void 0),playPrevChapterButton:ae(void 0),seekToInteractiveButton:ae(void 0),interactiveGraphButton:ae(void 0),liveButton:ae(void 0),time:ae(void 0),episodes:ae(void 0),volume:ae(void 0),subtitles:ae(void 0),settings:ae(void 0),context:ae(void 0),chromecast:ae(void 0),pip:ae(void 0),"theater-mode-button":ae(void 0),fullscreen:ae(void 0),vkLogo:ae(void 0),interactiveTimeIndicator:ae(void 0),timeline:ae(void 0),autoplayNextToggle:ae(void 0),additionalButtons:K.length?K.reduce(c=>[...c,ae(void 0)],[]):[],disabledControls$:pi},modals:{hotKeyMap:{show:ae(!1),data:ae({title:"",closeBtnText:"",groups:[]})}},isFullscreen:at,isFullscreenOpenedByKeyboard:Et,rotateAlpha:Dt,isAutoplay:ae(!1),debugPanelVisible:ae(!1),episodes:{panelOpened$:ae(!1),openedByKeyboard$:ae(!1)},contextMenu:{visible$:ae(!1),btnRef$:ae(void 0),openedByBtnKeyboard$:ae(!1),openedByHotKey$:ae(!1),lastActiveElem$:ae(void 0),showContextMenuBtn$:ae(!1),position$:ae({top:0,left:0})},playerSize:_i,isMobile:It,mobileNotReportControlHidden$:$l,icon3DVideoVisible:ae(!1),scrubbingInProgress:me,volumeChangingInProgress:jr,is3DVideo:Q,currentGridType$:Ar,additionalButtonsDeprecated$:js,additionalDesktopControlPanelRightButtons$:hd,additionalSettingsMenuItems$:hl,additionalContextMenuItems$:Xi,interactiveHideMobileControls:ae(!1),overlayContainer$:ae(void 0),startedByKeyboard$:ae(!1),autoplayNextEnabled$:ae(!1),timerNextVideoRunning$:ae(!0),settingsMenu:{visible$:ae(!1),ref$:ae(void 0),openedByBtnKeyboard$:ae(!1)},settingsSubMenu:{visible$:ae(!1),ref$:ae(void 0),name$:ae(void 0)},userActionsDisabled:ae(!1),hiddenControls:{volume:ae(!1),vkLogo:ae(!1),pip:ae(!1),chromecast:ae(!1),settings:ae(!1)},isControlsAvailable:ps,controlBlocks:{topLeft:ae(void 0),topRight:ae(void 0),middle:ae(void 0),bottom:ae(void 0),bottomLeft:ae(void 0),bottomRight:ae(void 0)},videoTitleInfo:ae(void 0),doubleForwardOn$:Xp,doubleForwardAvailable$:B$,previewTrackActive:Vi,previewTrackDragInProgress:kr,previewTrackAvailable:Is,isPreviewTrackHorizontallyAligned:vo},ads:{position:ae(0),duration:ae(0),playbackState:ae("inactive"),canSkip:ae(!1),secondsToWatchBeforeSkip:ae(0),postrollPassed:ae(!1)},webApi:{pictureInPictureApi:ge,annotationsApi:Ke,slotsApi:te,focusManager:ze},actions:{internal:{preload:fo,firstStart:c=>bd(c,!1),play:()=>Ea(!1),pause:()=>Ia(!1),togglePlay:tr,toggleMuted:Cs,openSettingsMenu:Ts,closeSettingsMenu:Qi,openSettingsSubMenu:us,closeSettingsSubMenu:cs,setVolume:c=>Hn(c,!1),setMuted:c=>Ti(c,!1),startVolumeChanging:wa,stopVolumeChanging:gd,setVideoStream:si,setAudioStream:c=>xr(c,!1),setQuality:(c,g)=>Wo(c,g,!1),setTrafficSavingEnabled:(c,g)=>Un(c,g,!1),setHighQualityEnabled:(c,g)=>Pr(c,g,!1),setPlaybackRate:Ze,incrementPlaybackRate:ti,decrementPlaybackRate:Mi,setSubtitle:c=>Co(c,!1),toggleSubtitle:()=>un(!1),togglePictureInPicture:Vr,startScrubbing:Tt,progressScrubbing:oi,completeScrubbing:fs,toggleChromecast:ru,switchToActiveLive:Wp,switchFromAdsToVideo:Kp,switchFromVideoToAds:tu,skipAd:eu,setLiveWaitingStart:qp,setLiveWaitingRecover:iu,setLiveWaitingRecord:Qp,getDebugTextData:ou,getTraceTextData:Gp,getDebugPanelData:nu,getVideoElement:Ta,seekTime:(c,g,M)=>zn(c,g,M),clearDelayedBufferingCheckTimeout:ls,seekEpisodeStartTime:xa,seekToPercent:Ys,getNextEpisode:su,seekToNextEpisode:jp,getPrevEpisode:Ge,seekToPrevEpisode:bi,startLogging:W,stopLogging:Rt,startCameraManualRotation:dt,stopCameraManualRotation:xi,moveCameraFocusPX:ii,holdCamera:xt,releaseCamera:lt,getVideoEpisodes:$d,getPreviewThumbsData:Qo,downloadVideo:Bn,addLanguage:lm,setLanguage:Fe,nextMovie:$i,videoRotate:xn,correctSeekTimeToInteractive:Sg,replayInteractive:R,setLooped:Lt,reportProblem:fi,setAutoplayNextEnabled:Uo,setTimerNextVideoRunning:Ao,prevVideoClick:Lo,nextVideoClick:Gi,nextVideoAnnouncementShow:zo,nextVideoAnnouncementClick:Fn,nextVideoAnnouncementAuto:Er,nextVideoAnnouncementCancel:Mo,checkFullscreenSupport:ei,changeDoubleForwardOn:Tg,closePreviewTrack:F$,previewTrackOpened:H$,previewTrackDragStarted:U$,previewTrackDragFinished:z$},external:{firstStart:c=>bd(c,!0),play:()=>Ea(!0),pause:()=>Ia(!0),stop:()=>Yp(!0),seekTime:c=>ct(c),seekEpisodeStartTime:c=>Vo(c),setPlaybackRate:c=>mo(c),setAutoQualityLimits:c=>ci(c),setMuted:c=>Ti(c,!0),toggleSubtitle:()=>un(!0),changeSubtitle:ir,setVolume:c=>Hn(c,!0),returnFocusToEpisodes:N$,updateAdditionalSettingsItem:ut,addAdditionalSettingsItem:mt,removeAdditionalSettingsItem:ji,updateAdditionalContextItem:yi,addAdditionalContextItem:Bi,removeAdditionalContextItem:Ca,updateAdditionalButton:_l,addAdditionalButton:_d,removeAdditionalButton:Sa,setLiveLowLatency:bl,hideControls:()=>Gs(!1),showControls:()=>Gs(!0),setQuality:c=>Wo(c,{appliesTo:"to-video"},!0),setTrafficSavingEnabled:c=>Un(c,"to-video",!0),setHighQualityEnabled:c=>Pr(c,"to-video",!0),changeAudioStream:ds}},callbacks:s,setUiCallbacks:c=>{Ie=Le({},c)},getAdmanWrapper:()=>ce,getLogger:()=>ue,getPlayer:()=>D,destroy:D$};return Qt};function Yn(i,e,t,o){var m;let r=(m=e[t])==null?void 0:m.getBoundingClientRect(),a=o&&!!r&&!!(r.right-r.left),{top:l,left:d,bottom:s,right:u}=Us(e[t],i||void 0);return{left:a?d:0,right:a?u:0,top:a?l:0,bottom:a?s:0,isDisplayed:a}}var u2=["disabledControls$","additionalButtons"],p2=["interactiveTimeIndicator"],nd=(i,e,t,o)=>{if(i){for(let[r,a]of Object.entries(e))if(!u2.includes(r)){let l=o||p2.includes(r);a.set(Yn(i,t,r,l))}}};var _p=(i,e,t)=>gt(null,null,function*(){yield $o(),e&&t&&(t.focus(),i.set(!1))});var f2=Ee('<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 ev(i){et(i,{children:(e,t)=>{var o=f2();$(e,o)},$$slots:{default:!0}})}function tv(i,e){B(e,!0);let[t,o]=De(),r=()=>w(s,"$contextMenuVisible$",t),a=h(e,"disabled",3,!1),l=h(e,"ariaLabel",3,""),d=ye(),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=q(void 0);Be(()=>{n(b)&&At(()=>{v.set(n(b))})});let y=T=>{let R=pa(T),A=_b(n(b));p.set(A),u.set(R),s.set(!r())},_=()=>{m.set(!0)},x=()=>{m.set(!1)},I=f(()=>r()?"opened":"");Wt(i,{get className(){return n(I)},testId:"btn-context-menu",get disabled(){return a()},get ariaLabel(){return l()},click:y,focus:_,blur:x,get ariaExpanded(){return r()},get ref(){return n(b)},set ref(T){O(b,T,!0)},children:(T,R)=>{ev(T,{})},$$slots:{default:!0}}),H(),o()}var m2=i=>{i.stopPropagation()},v2=L("<div><!> <div></div> <div></div></div>"),g2={hash:"s-24",code:'.interactive-episode-icon-animated.s-24{height:32px;opacity:1;position:absolute;right:16px;top:16px;transition:.3s;width:32px}.interactive-episode-icon-animated.icon-small.s-24{height:28px;width:28px}.invisible.s-24{opacity:0;visibility:hidden}.fullscreen.s-24:not(.mobile){height:40px;right:23px;top:19px;width:40px}.mobile.s-24{height:28px;right:14px;top:12px;width:28px}.fullscreen.mobile.s-24{height:32px;width:32px}@media screen and (orientation:portrait){.interactive-episode-icon-animated.mobile.fullscreen.s-24{right:16px;top:40px}}@keyframes s-24-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-24{animation:s-24-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-24{animation-play-state:paused}.interactive-episode-icon-animated svg{height:100%;width:100%}.ref-block.s-24{height:100%;position:absolute;top:0;visibility:hidden;width:100%}.hidden.s-24{display:none}'};function Sc(i,e){var ue;B(e,!0),G(i,g2);let[t,o]=De(),r=()=>w(x,"$isMobile",t),a=()=>w(A,"$areControlsVisible",t),l=()=>w(E,"$currentGridType$",t),d=()=>w(T,"$isInteractiveTime$",t),s=()=>w(_,"$interactiveControlsOpacity$",t),u=()=>w(R,"$showInteractiveTimeIndicatorTooltip$",t),m=()=>w(I,"$isFullscreen",t),p=h(e,"ref",15,void 0),v=q(void 0),b=ye(),y=To(),{interactiveControlsOpacity$:_}=y,x=b.ui.isMobile,I=b.ui.isFullscreen,T=b.state.isInteractiveTime$,R=y.showInteractiveTimeIndicatorTooltip$,A=b.ui.controlsVisible,P=(ue=b.callbacks)==null?void 0:ue.onInteractiveTimeIndicatorClick,E=b.ui.currentGridType$,K=f(()=>!r()&&a()),F=f(()=>Hs(l(),"s")),z=f(()=>!d()||!!s()||n(K)),X=q(!1);Be(()=>{O(X,n(z),!0)});let se=()=>{O(X,!0)},Y=()=>{var ce;re(),(ce=n(v))==null||ce.addEventListener("animationiteration",se,{once:!0})},re=()=>{var ce;O(X,!1),(ce=n(v))==null||ce.removeEventListener("animationiteration",se)},Z=ce=>{R.set(ce)},Ce=f(()=>u()&&!n(z));Be(()=>{u()?Y():re()});let fe=()=>{n(z)||(R.set(!0),P==null||P())};mn(()=>{R.clearTimeout(),re()});let oe=()=>{R.set(!1)},pe=j("tooltip_interactive_interaction_time_indicator");var Se=v2();let de;Se.__mousemove=[m2],Se.__click=fe;var qe=C(Se);Do(qe,{get tooltipContent(){return pe},get tooltipVisible(){return n(Ce)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:Z,get ref(){return p()},set ref(ce){p(ce)},children:(ce,_e)=>{mc(ce,{completed:!0})},$$slots:{default:!0}});var ve=k(qe,2);let We;ot(ve,ce=>p(ce),()=>p());var U=k(ve,2);let D;ot(U,ce=>O(v,ce),()=>n(v)),S(Se),N((ce,_e,ge)=>{de=ne(Se,1,"interactive-episode-icon-animated s-24",null,de,ce),We=ne(ve,1,"ref-block s-24",null,We,_e),D=ne(U,1,"pulse s-24",null,D,ge)},[()=>({mobile:r(),fullscreen:m(),invisible:n(z),"icon-small":n(F)}),()=>({hidden:n(z)}),()=>({paused:n(X)})]),pt("mouseleave",Se,oe),$(i,Se),H(),o()}tt(["mousemove","click"]);function bp(i,e){B(e,!0);let t=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);Do(i,{get disabled(){return o()},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},get hasTooltip(){return t()},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=Ve();let m=f(()=>e.buttonComponent);var p=le(u);Ui(p,()=>n(m),(v,b)=>{b(v,os(()=>{var y;return(y=e.buttonComponentProps)!=null?y:{}}))}),$(d,u)},$$slots:{default:!0}}),H()}var zs={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var _2=Ee('<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 ha(i,e){B(e,!0);let t=h(e,"reversed",3,!1),o=f(()=>t()?"transform: scaleX(-1);transform-origin: 50%;":void 0),r=f(()=>`${vn(e.size)}${n(o)}`),a=f(()=>t()?"prev-icon":"next-icon");et(i,{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=_2();$(l,s)},$$slots:{default:!0}}),H()}var b2=L('<div class="icon-background-mobile s-23"><!></div>'),$2={hash:"s-23",code:".icon-background-mobile.s-23{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 il(i,e){B(e,!0),G(i,$2);let t=h(e,"ref",15,void 0),o=h(e,"isMobile",3,!1),r=h(e,"disabled",3,!1),l=ye().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}`);Wt(i,{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 t()},set ref(m){t(m)},children:(m,p)=>{var v=Ve(),b=le(v);{var y=x=>{var I=b2(),T=C(I);let R=f(()=>e.type==="prev");ha(T,{get size(){return"32"},get reversed(){return n(R)}}),S(I),$(x,I)},_=x=>{let I=f(()=>e.type==="prev");ha(x,{get size(){return"24"},get reversed(){return n(I)}})};V(b,x=>{o()?x(y):x(_,!1)})}$(m,v)},$$slots:{default:!0}}),H()}var y2=Ee('<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 Cc(i,e){B(e,!0);let t=f(()=>vn(e.size));et(i,{get width(){return"48"},get height(){return"48"},get style(){return n(t)},testId:"replay-icon",get shadow(){return e.shadow},children:(o,r)=>{var a=y2();$(o,a)},$$slots:{default:!0}}),H()}var zb=require("@vkontakte/videoplayer-shared/es2015");var x2=L('<div class="icon-background-mobile s-25"></div>'),w2=L("<!> <div><!></div>",1),S2={hash:"s-25",code:".mobile.s-25{align-items:center;display:flex;justify-content:center;position:relative}.icon-background-mobile.s-25{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 rd(i,e){B(e,!0),G(i,S2);let t=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,zb.noop),d=j("tooltip_restart"),s=f(()=>`${o()?"btn-m--play":""} ${a()}`);Wt(i,{get className(){return n(s)},testId:"replay-btn",get ariaLabel(){return d},get disabled(){return r()},get click(){return l()},get ariaKeyShortCut(){return ys.KeyK},get ref(){return t()},set ref(u){t(u)},children:(u,m)=>{var p=w2(),v=le(p);{var b=T=>{var R=x2();$(T,R)};V(v,T=>{o()&&T(b)})}var y=k(v,2);let _;var x=C(y);let I=f(()=>o()?"48":"24");Cc(x,{get size(){return n(I)}}),S(y),N(T=>_=ne(y,1,"s-25",null,_,T),[()=>({mobile:o()})]),$(u,p)},$$slots:{default:!0}}),H()}var C2=Ee('<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 Ws(i,e){B(e,!0);let t=f(()=>vn(e.size));et(i,{get width(){return"48"},get height(){return"48"},get fill(){return e.fill},get style(){return n(t)},testId:"pause-icon",get shadow(){return e.shadow},children:(o,r)=>{var a=C2();$(o,a)},$$slots:{default:!0}}),H()}var Wb=require("@vkontakte/videoplayer-shared/es2015");var T2=L('<div class="icon-background-mobile s-21"><!></div>'),I2={hash:"s-21",code:".icon-background-mobile.s-21{align-items:center;background-color:var(--big-play-bg-color);border-radius:var(--big-play-radius);display:flex;height:calc(100% - 32px);justify-content:space-around;left:16px;position:absolute;top:16px;width:calc(100% - 32px)}"};function sd(i,e){B(e,!0),G(i,I2);let[t,o]=De(),r=()=>w(a,"$fakeIsPlaying$",t),{fakeIsPlaying$:a}=To(),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,Wb.noop),b=ye().ui.t,{toggle:y}=a,_=f(()=>y),x=f(()=>r()!==null),I=f(()=>n(x)?r():s()),T=f(()=>n(I)?b("tooltip_pause"):b("tooltip_play")),R=f(()=>n(I)?Ws:Pn),A=f(()=>`${d()?"btn-m--play":""} ${m()}`),P=f(()=>n(x)?n(_):p());Wt(i,{get className(){return n(A)},testId:"play-btn",get click(){return n(P)},get disabled(){return u()},get ariaLabel(){return n(T)},get ariaKeyShortCut(){return ys.KeyK},get ref(){return l()},set ref(E){l(E)},children:(E,K)=>{var F=Ve();let z=f(()=>n(R));var X=le(F);{var se=re=>{var Z=T2(),Ce=C(Z);Ui(Ce,()=>n(z),(fe,oe)=>{oe(fe,{get size(){return"48"}})}),S(Z),$(re,Z)},Y=re=>{var Z=Ve(),Ce=le(Z);Ui(Ce,()=>n(z),(fe,oe)=>{oe(fe,{get size(){return"24"}})}),$(re,Z)};V(X,re=>{d()?re(se):re(Y,!1)})}$(E,F)},$$slots:{default:!0}}),H(),o()}var E2=Ee('<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 iv(i){et(i,{testId:"play-prev-chapter-icon",children:(e,t)=>{var o=E2();$(e,o)},$$slots:{default:!0}})}function Tc(i,e){B(e,!0);let t=h(e,"ref",15,void 0),o=h(e,"hidden",3,!1),r=h(e,"disabled",3,!1),a=j("tooltip_interactive_go_back"),l=f(()=>o()?"hidden":"");Wt(i,{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 t()},set ref(d){t(d)},children:(d,s)=>{iv(d,{})},$$slots:{default:!0}}),H()}var P2=L('<span class="gutter s-26"><span><!></span></span>'),k2={hash:"s-26",code:".gutter.s-26{--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-26{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-26{background-color:var(--toggle-color-autoplay-on);transform:translateX(calc(var(--gutterWidth) - var(--togglerWidth) + var(--togglerGap)))}"};function Ic(i,e){B(e,!0),G(i,k2);let[t,o]=De(),r=()=>w(s,"$autoplayNextEnabled$",t),a=h(e,"ref",15,void 0),l=ye(),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");Wt(i,{click:m,get ariaLabel(){return p},role:"switch",get areaChecked(){return n(y)},get ref(){return a()},set ref(_){a(_)},children:(_,x)=>{var I=P2(),T=C(I);let R;var A=C(T);{var P=K=>{Pn(K,{get size(){return v},fill:b})},E=K=>{Ws(K,{get size(){return v},fill:b})};V(A,K=>{r()?K(P):K(E,!1)})}S(T),S(I),N(K=>R=ne(T,1,"toggler s-26",null,R,K),[()=>({enabled:r()})]),$(_,I)},$$slots:{default:!0}}),H(),o()}var A2=Ee('<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 ov(i){et(i,{testId:"seek-to-interactive-icon",children:(e,t)=>{var o=A2();ri(),$(e,o)},$$slots:{default:!0}})}function Ec(i,e){B(e,!0);let t=h(e,"ref",15,void 0),o=h(e,"hidden",3,!1),r=h(e,"disabled",3,!1),a=j("tooltip_interactive_seek"),l=f(()=>o()?"hidden":"");Wt(i,{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 t()},set ref(d){t(d)},children:(d,s)=>{ov(d,{})},$$slots:{default:!0}}),H()}var L2=Ee('<path d="M15.2 5.9v1.2c0 .6 0 .9.12 1.12q.15.3.46.46c.23.12.52.12 1.12.12h1.2c.6 0 .9 0 1.12-.12q.3-.15.46-.46c.12-.23.12-.52.12-1.12V5.9c0-.6 0-.9-.12-1.12a1 1 0 0 0-.46-.46c-.23-.12-.52-.12-1.12-.12h-1.2c-.6 0-.9 0-1.12.12q-.3.15-.47.46c-.11.23-.11.53-.11 1.12m-.05 11.03v1.14c0 .6 0 .91.12 1.14q.15.31.47.47c.23.12.53.12 1.14.12h1.22c.6 0 .9 0 1.14-.12a1 1 0 0 0 .47-.47c.12-.23.12-.53.12-1.14v-1.14c0-.6 0-.9-.12-1.14a1 1 0 0 0-.47-.47c-.23-.12-.54-.12-1.14-.12h-1.22c-.6 0-.91 0-1.14.12a1 1 0 0 0-.47.47c-.12.23-.12.53-.12 1.14"></path>'),M2=Ee('<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 nv(i,e){let t=h(e,"isOpened",3,!1),o=f(()=>t()?"graph-close-icon":"graph-open-icon");et(i,{get testId(){return n(o)},children:(r,a)=>{var l=M2(),d=k(le(l));{var s=u=>{var m=L2();$(u,m)};V(d,u=>{t()&&u(s)})}$(r,l)},$$slots:{default:!0}})}function Pc(i,e){B(e,!0);let t=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=ye().ui.t,s=f(()=>a()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),u=f(()=>o()?"hidden":"");Wt(i,{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 t()},set ref(m){t(m)},children:(m,p)=>{let v=f(()=>!!a());nv(m,{get isOpened(){return n(v)}})},$$slots:{default:!0}}),H()}var rv=require("@vkontakte/videoplayer-core/es2015");function kc(i,e){B(e,!0);let[t,o]=De(),r=()=>w(u,"$playbackState$",t),a=h(e,"isMobile",3,!1),l=h(e,"isLiveActive",3,!1),d=h(e,"ariaLabel",3,""),s=ye(),u=s.state.playbackState$,m=s.actions.internal.switchToActiveLive,p=s.actions.internal.togglePlay,v=f(()=>()=>{if(!l()){m();return}r()===rv.PlaybackState.PAUSED&&p()}),b=f(()=>a()?"":"btn--live btn-full-opacity"),y=f(()=>l()?"btn-live":"btn-live-offset"),_=f(()=>l()&&r()===rv.PlaybackState.PLAYING);Wt(i,{get className(){return n(b)},get testId(){return n(y)},get disabled(){return n(_)},get ariaLabel(){return d()},get click(){return n(v)},children:(x,I)=>{nc(x,{get isActive(){return l()}})},$$slots:{default:!0}}),H(),o()}var sv=require("@vkontakte/videoplayer-shared/es2015");var V2=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),R2=L('<img class="icon" aria-hidden="true"/>');function ol(i,e){"use strict";let t=q(!1),o=()=>{O(t,!0)};var r=Ve(),a=le(r);{var l=s=>{var u=V2();$(s,u)},d=s=>{var u=R2();N(()=>Oe(u,"src",e.icon)),pt("error",u,o),Ha(u),$(s,u)};V(a,s=>{n(t)?s(l):s(d,!1)})}$(i,r)}function av(i,e){B(e,!0);let t=h(e,"disabled",3,!1),o=h(e,"onClick",3,sv.noop),r=h(e,"ref",15),a=f(()=>o()===sv.noop),l=f(()=>n(a)||t()),d=f(()=>n(a)?"btn-full-opacity":"");Do(i,{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});Wt(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)=>{ol(p,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),H()}var Kb=i=>!!i.buttonComponent;var Ks={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var $p=(i,e,t,o)=>{if(i)for(let[r,a]of Object.entries(e))a.set(Yn(i,t,r,o))};var yp=require("@vkontakte/videoplayer-shared/es2015"),qb=10,Qb=40,lv=.2,N2=.5,D2=65,B2=114,H2=4,Gb=({onPreviewTrackOpened:i,getTimelineRef:e,isHorizontal:t})=>{let o=f(()=>t?D2:B2),r=q(!1),a=q(0),l=q(0),d=f(()=>n(o)+qb-Qb-H2),s=f(()=>(0,yp.interpolate)(n(a),[lv,1],[0,-n(d)])),u=f(()=>(0,yp.interpolate)(n(a),[lv,1],[0,Qb])),m=f(()=>(0,yp.interpolate)(n(a),[lv,1],[0,n(o)+qb]));return{progressBarY:()=>n(s),controlsY:()=>n(u),calculatedHeight:()=>n(m),onPointerDown:_=>{var x;O(l,((x=e())==null?void 0:x.getBoundingClientRect().bottom)||0,!0),O(r,!0)},onPointerMove:_=>{if(!n(r))return;let x=Math.max(Math.min(_.clientY-n(l),0),-n(d));O(a,Math.abs(x/n(d)),!0)},onPointerUp:()=>{O(r,!1),O(a,n(a)>=N2?1:0,!0),n(a)===1&&i()},closePreviewTrack:()=>{O(a,0)}}};var F2=i=>i;function _a(i,{delay:e=0,duration:t=400,easing:o=F2}={}){let r=+getComputedStyle(i).opacity;return{delay:e,duration:t,easing:o,css:a=>`opacity: ${a*r}`}}var U2=L('<span class="root s-2b"> </span>'),z2={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 dv(i,e){G(i,z2);var t=U2(),o=C(t,!0);S(t),N(()=>he(o,e.time)),$(i,t)}var W2=L('<div class="tooltip-wrapper s-v"><div><!></div></div>'),K2={hash:"s-v",code:'.tooltip-wrapper.s-v{display:block;position:relative}.tooltip.s-v{bottom:100%;opacity:0;position:absolute;transform:translateX(-50%);transition:opacity .2s;visibility:hidden}.pointer.s-v: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-v{opacity:1;visibility:visible}'};function cv(i,e){G(i,K2);let t=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=q(void 0),u=q(void 0);function m(x){if(!n(u))return 0;let{width:I}=n(u).getBoundingClientRect(),T=I/2;return x<T?T+l():x>e.containerWidth-T?e.containerWidth-T-d():x}let p=f(()=>m(r()));var v=W2(),b=C(v);let y;var _=C(b);ai(_,()=>{var x;return(x=e.children)!=null?x:ht}),S(b),ot(b,x=>O(u,x),()=>n(u)),S(v),ot(v,x=>O(s,x),()=>n(s)),N(x=>{Ye(v,`transform: translate(${n(p)}px, ${a()}px);`),y=ne(b,1,"tooltip s-v",null,y,x),Ye(b,`opacity: ${t()?1:0}; visibility: ${t()?"visible":"hidden"}`)},[()=>({active:t(),pointer:o()})]),$(i,v)}var Yb=i=>Math.abs(i)/90%4===1;var q2=Ee('<path xmlns="http://www.w3.org/2000/svg" d="M15.782 10.152a.75.75 0 0 1-1.06 0L9.999 5.438l-4.72 4.716a.75.75 0 0 1-1.061-1.061l5.251-5.246a.75.75 0 0 1 1.06 0l5.253 5.246a.75.75 0 0 1 0 1.06Z"></path><path xmlns="http://www.w3.org/2000/svg" d="M15.782 16.152a.75.75 0 0 1-1.06 0l-4.723-4.715-4.72 4.716a.75.75 0 0 1-1.061-1.061l5.251-5.246a.75.75 0 0 1 1.06 0l5.253 5.245a.75.75 0 0 1 0 1.061Z"></path>',1);function uv(i){et(i,{height:"20",width:"20",shadow:!0,children:(e,t)=>{var o=q2();ri(),$(e,o)},$$slots:{default:!0}})}var Q2=L('<div class="rich-seek-hint s-u"><span class="icon_wrapper s-u"><!></span> <span class="rich-seek-hint-text s-u"> </span></div>'),G2=L('<div class="preview s-u"><!></div>'),Y2=L('<div class="time s-u"> </div>'),j2=L('<div><!> <div class="episode s-u"><!></div> <!></div>'),X2={hash:"s-u",code:".timeline-preview.s-u{border-radius:2px;bottom:18px;pointer-events:none}.timeline-preview.mobile.s-u{bottom:72px}.preview.s-u{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);display:flex;justify-content:center}.episode.s-u{margin-bottom:4px;margin-top:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.episode.s-u,.time.s-u{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-u{color:var(--white)}.rich-seek-hint.s-u{position:absolute;text-align:center;top:-12px;transform:translateY(-100%)}.icon_wrapper.s-u{display:inline-block;height:20px;margin-right:6px;vertical-align:top;width:20px}.rich-seek-hint-text.s-u{font-size:14px;line-height:18px;text-shadow:0 2px 4px rgba(0,0,0,.3),0 7px 16px rgba(0,0,0,.25);vertical-align:top}"};function pv(i,e){B(e,!0),G(i,X2);let[t,o]=De(),r=()=>w(_,"$rotateAlpha",t),a=()=>w(x,"$playerSize",t),l=()=>w(I,"$previewTrackAvailable",t),d={MOBILE:150,DESKTOP:278},s=h(e,"time",3,""),u=h(e,"isMobile",3,!1),m=h(e,"videoEpisodes",19,()=>[]),p=h(e,"progress",3,0),v=h(e,"duration",3,0),b=h(e,"isInteractive",3,!1),y=ye(),_=y.ui.rotateAlpha,x=y.ui.playerSize,I=y.ui.previewTrackAvailable,T=q(0),R=q(0),A=q(""),P=q(0),E=q(0),K=q(0),F=q(0),z=f(()=>dp(p(),v(),m())),X=f(()=>id(r())),se=f(()=>Yb(r())),Y=f(Ce),re=f(()=>(n(se)?1:-1)*(n(T)/2-n(R)/2)),Z=f(()=>n(re)*-1);Be(()=>{(_e=>{O(T,_e.width,!0),O(R,_e.height,!0)})(oe())}),Be(()=>{(_e=>{O(A,_e.imgSrc,!0),O(P,_e.imgWidth,!0),O(E,_e.imgHeight,!0),O(K,_e.imgOffsetX,!0),O(F,_e.imgOffsetY,!0)})(pe(p()))});function Ce(){var te;let _e=u()?d.MOBILE:d.DESKTOP,{isVertical:ge}=fe(),Ke=30;return(te=n(z))!=null&&te.text&&(Ke+=16),(ge||n(X))&&(Ke+=18,Ke+=50),Math.min(Math.max(a().height-Ke,0),_e)}function fe(){let _e=e.previewThumbsData.frameWidth,ge=e.previewThumbsData.frameHeight,Ke=ge>_e;return{width:_e,height:ge,isHorizontal:!Ke,isVertical:Ke}}function oe(){let{height:_e,isHorizontal:ge,isVertical:Ke,width:te}=fe();return ge&&(_e=_e/te*n(Y),te=n(Y)),Ke&&(te=te/_e*n(Y),_e=n(Y)),{width:te,height:_e}}function pe(_e){let ge;e.previewThumbsData.isUV?ge=Math.floor(v()*_e/e.previewThumbsData.frequency):ge=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*_e)));let Ke=Math.floor(ge/e.previewThumbsData.countPerImage),te=Math.floor(ge%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),ze=ge%e.previewThumbsData.countPerRow,ee=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&Ke===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(ee=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&ee++);let ke=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&Ke===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(ke=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Ue=n(T)*ke,Ie=n(R)*ee,Pe=-ze*n(T),Ne=-te*n(R);return{imgSrc:e.previewThumbsData.links[Ke],imgWidth:Ue,imgHeight:Ie,imgOffsetX:Pe,imgOffsetY:Ne}}var Se=j2();let de;var qe=C(Se);{var ve=_e=>{var ge=G2(),Ke=C(ge);{var te=ze=>{var ee=Q2(),ke=C(ee),Ue=C(ke);uv(Ue,{}),S(ke);var Ie=k(ke,2),Pe=C(Ie,!0);S(Ie),S(ee),N(Ne=>he(Pe,Ne),[()=>j("preview_track_notification_text")]),$(ze,ee)};V(Ke,ze=>{l()&&ze(te)})}S(ge),N(()=>Ye(ge,`width: ${n(T)}px; height: ${n(R)}px; background-image: url(${n(A)}); background-size: ${n(P)}px ${n(E)}px; background-position: ${n(K)}px ${n(F)}px;
|
|
61
|
-
transform: rotate(${r()}deg) ${n(X)?`translate(${n(re)}px, ${n(Z)}px)`:""};
|
|
62
|
-
`)),$(_e,ge)};V(qe,_e=>{n(A)&&_e(ve)})}var We=k(qe,2),U=C(We);{var D=_e=>{var ge=Ve(),Ke=le(ge);{var te=ee=>{var ke=$s();N(Ue=>he(ke,Ue),[()=>j("tooltip_episode_unfinished")]),$(ee,ke)},ze=ee=>{var ke=$s();N(()=>he(ke,n(z).text||"")),$(ee,ke)};V(Ke,ee=>{b()&&n(z).completed===!1?ee(te):ee(ze,!1)})}$(_e,ge)};V(U,_e=>{n(z)&&_e(D)})}S(We);var ue=k(We,2);{var ce=_e=>{var ge=Y2(),Ke=C(ge,!0);S(ge),N(()=>he(Ke,s())),$(_e,ge)};V(ue,_e=>{b()||_e(ce)})}S(Se),N(_e=>{de=ne(Se,1,"timeline-preview s-u",null,de,_e),Ye(Se,`width: ${n(X)?n(R):n(T)}px;`)},[()=>({mobile:u()})]),$(i,Se),H(),o()}var Z2=L('<span class="time s-f"> </span>'),J2=L("<!> <!>",1),ew={hash:"s-f",code:".time.s-f{background-color:rgba(41,41,41,.8);border-radius:3px;color:var(--white);display:inline-block;padding:6px 10px}.timeline-slider{--slider-bg:var(--timeline-slider-bg);--slider-filled-bg:var(--timeline-slider-filled-bg);--slider-handle-bg:var(--timeline-slider-handle-bg);--slider-loaded-bg:var(--timeline-slider-loaded-bg)}"};function fv(i,e){var Re,we,Fe,xe,kt;B(e,!0),G(i,ew);let[t,o]=De(),r=()=>w(Y,"$interactiveEpisodes$",t),a=()=>w(E,"$duration$",t),l=()=>w(P,"$position$",t),d=()=>w(Ce,"$isInteractiveExpectation$",t),s=()=>w(Z,"$isInteractiveTime$",t),u=()=>w(Se,"$previewTrackActive",t),m=()=>w(K,"$isLive$",t),p=()=>w(pe,"$disabledControls$",t),v=()=>w(z,"$isMobile",t),b=()=>w(F,"$isActiveLive$",t),y=()=>w(A,"$bufferedProgress$",t),_=h(e,"showTimeline",3,!1),x=h(e,"withEpisodes",3,!0),I=h(e,"ref",15,void 0),T=ye(),R=Nt(),A=T.state.bufferedProgress$,P=T.state.positionWithScrubbing$,E=T.state.duration$,K=T.state.isLive$,F=T.state.isActiveLive$,z=T.ui.isMobile,X=R.features.episodes&&x()?T.actions.internal.getVideoEpisodes():void 0,se=T.actions.internal.getPreviewThumbsData(),Y=T.state.interactiveEpisodes$,re=T.state.isInteractive,Z=T.state.isInteractiveTime$,Ce=T.state.isInteractiveExpectation$,fe=T.actions.internal.correctSeekTimeToInteractive,oe=(Re=T.callbacks)==null?void 0:Re.onDisabledTimelineClick,pe=T.ui.controls.disabledControls$,Se=T.ui.previewTrackActive,de=(Fe=(we=T.callbacks)==null?void 0:we.uiInfo)==null?void 0:Fe.onTimelineMouseEnter,qe=(kt=(xe=T.callbacks)==null?void 0:xe.uiInfo)==null?void 0:kt.onTimelineMouseLeave,ve=T.ui.t,We=R.features.interactiveResponsiveUi,U=f(()=>re?r():X),D=f(()=>tn(a())),ue=f(()=>tn(l())),ce=f(()=>l()/a()),_e=f(()=>d()||s()),ge=q(!1),Ke=q(""),te=q(0),ze=q(0),ee=q(0),ke=f(()=>({containerWidth:n(ze),translateXPx:n(te),translateYPx:re&&se?-36:-16,active:n(ge)&&_()&&!n(_e)&&!We&&!u(),pointer:!R.features.timelinePreview||!se||m()})),Ue=ve("aria_timeline"),Ie=f(()=>ve("aria_timeline_value",{position:n(ue),duration:n(D)}));function Pe(be){return!fe||!re?be:fe(be*a())/a()}function Ne(be,He){var Qe;(Qe=e.onSliderPointerDown)==null||Qe.call(e,He),T.actions.internal.startScrubbing(Pe(be))}function _t(be){s()||T.actions.internal.progressScrubbing(Pe(be))}function It(be){var He;T.actions.internal.completeScrubbing(Pe(be)),O(ge,!1),(He=e.onSliderPointerUp)==null||He.call(e)}function Pt(be,He,Qe){var st;(st=e.onSliderPointerEnter)==null||st.call(e,be),ei(be,He,Qe),O(ge,!0)}function at(be,He,Qe,st){var Jt;(Jt=e.onSliderMove)==null||Jt.call(e,st,be),ei(be,He,Qe),O(ge,!0)}function Et(){var be;O(ge,!1),(be=e.onSliderLeave)==null||be.call(e)}function ei(be,He,Qe){O(ee,Pe(be),!0),O(te,He,!0),Qe&&O(ze,Qe,!0),O(Ke,Yt(be),!0)}function Yt(be){let He=tn((m()?1-be:be)*a());return m()?`-${He}`:He}let Dt=f(()=>p().has("TIMELINE"));var jt=J2(),Q=le(jt);cv(Q,os(()=>n(ke),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(be,He)=>{var Qe=Ve(),st=le(Qe);{var Jt=pi=>{pv(pi,{get time(){return n(Ke)},get isMobile(){return v()},get videoEpisodes(){return n(U)},get previewThumbsData(){return se},get progress(){return n(ee)},get duration(){return a()},get isInteractive(){return re}})},Kt=pi=>{var _i=Z2(),mi=C(_i,!0);S(_i),N(()=>he(mi,n(Ke))),$(pi,_i)};V(st,pi=>{R.features.timelinePreview&&se&&!m()?pi(Jt):pi(Kt,!1)})}$(be,Qe)},$$slots:{default:!0}}));var Ae=k(Q,2);el(Ae,{className:"timeline-slider",get isActiveLive(){return b()},get isMobile(){return v()},get ariaLabel(){return Ue},ariaValueMin:0,get ariaValueMax(){return a()},get ariaValueNow(){return l()},get ariaValueText(){return n(Ie)},get loadedProgress(){return y()},get filledProgress(){return n(ce)},get handleProgress(){return n(ce)},get videoEpisodes(){return n(U)},onPointerDown:Ne,onHandleMove:_t,onPointerMove:at,onPointerUp:It,onPointerEnter:Pt,onPointerLeave:Et,get onMouseEnter(){return de},get onMouseLeave(){return qe},get onDisabledClick(){return oe},get isInteractive(){return re},get disabled(){return n(Dt)},get handleAlwaysVisible(){return u()},get hideHandel(){return s()},testId:"progress_bar",onContextMenu:It,get ref(){return I()},set ref(be){I(be)}}),$(i,jt),H(),o()}var tw={hash:"s-g",code:".timeline-ads-slider{--slider-bg:var(--timeline-slider-bg);--slider-filled-bg:var(--timeline-slider-filled-bg);--slider-handle-bg:var(--timeline-slider-handle-bg);--slider-loaded-bg:var(--timeline-slider-loaded-bg)}"};function Ac(i,e){B(e,!0),G(i,tw);let[t,o]=De(),r=()=>w(s,"$isMobile",t),a=h(e,"position",3,0),l=h(e,"duration",3,0),d=ye(),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));el(i,{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 iw=L("<div><!></div>"),ow=L("<div></div>"),nw={hash:"s-c",code:".timeline.s-c{align-items:center;bottom:0;box-sizing:border-box;display:flex;min-width:86px;pointer-events:all;position:relative;width:100%}.timeline.mobile.s-c{height:16px;margin-top:6px;padding:6px 12px 7px}.withoutPadding.s-c{padding:0}.timeline-stub.s-c{min-width:20px;width:100%}.timeline-stub.mobile.s-c{height:8px}"};function nl(i,e){B(e,!0),G(i,nw);let[t,o]=De(),r=()=>w(x,"$isLive$",t),a=()=>w(R,"$isMobile",t),l=()=>w(A,"$disabled",t),d=()=>w(T,"$adPosition",t),s=()=>w(I,"$adDuration",t),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=ye(),_=Nt(),x=y.state.isLive$,I=y.ads.duration,T=y.ads.position,R=y.ui.isMobile,A=ae(!1),P=f(()=>!p()&&(!r()||r()&&e.canRewindLive&&e.isRewindableLive||u()));var E=Ve(),K=le(E);{var F=X=>{var se=iw();let Y;var re=C(se);{var Z=fe=>{Ac(fe,{get position(){return d()},get duration(){return s()}})},Ce=fe=>{fv(fe,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return n(P)},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(oe){b(oe)}})};V(re,fe=>{u()?fe(Z):fe(Ce,!1)})}S(se),Os(se,()=>Ql(m()&&_.features.usePerformanceFix,A,_.disableInvisibleComponentsTimeout)),N(fe=>Y=ne(se,1,"timeline s-c",null,Y,fe),[()=>({withoutPadding:!v(),mobile:a(),"out-of-flow":l()})]),$(X,se)},z=X=>{var se=ow();let Y;N(re=>Y=ne(se,1,"timeline-stub s-c",null,Y,re),[()=>({mobile:a()})]),$(X,se)};V(K,X=>{n(P)?X(F):X(z,!1)})}$(i,E),H(),o()}var jb=require("@vkontakte/videoplayer-shared/es2015");var Xb=require("@vkontakte/videoplayer-statistics/es2015"),rw=(i,e,t,o,r,a,l)=>{O(e,!0),O(t,i.clientX,!0),O(o,n(r),!0),a(l())},sw=L("<div></div>"),aw=L('<div><div class="track s-2c"></div></div>'),lw={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 vv(i,e){B(e,!0),G(i,lw);let[t,o]=De(),r=()=>w(R,"$rotateAlpha",t),a=()=>w(_,"$position$",t),l=()=>w(y,"$duration$",t),d=ye(),{countPerImage:s=0,countPerRow:u=0,countTotal:m=0,links:p=[],frameHeight:v=0,frameWidth:b=0}=d.actions.internal.getPreviewThumbsData()||{},{duration$:y,positionWithScrubbing$:_}=d.state,{startScrubbing:x,progressScrubbing:I,completeScrubbing:T}=d.actions.internal,R=d.ui.rotateAlpha,A=q(void 0),P=q(!1),E=q(0),K=q(0),F=q(0),z=q(0),X=f(()=>v<=b),se=f(()=>id(r())),Y=f(()=>n(X)?!n(se):n(se)),re=114,Z=65,Ce=3,fe=f(()=>n(Y)?re:Z),oe=f(()=>n(X)?re:Z),pe=f(()=>n(X)?"var(--preview-track-frame-height-horizontal)":"var(--preview-track-frame-height-vertical)"),Se=f(()=>m*n(fe)),de=q(0);Be(()=>{O(z,Math.ceil(-n(F)/n(fe))-1),O(F,-n(Se)*a()/l())});let qe=()=>{T(ve(),!0,Xb.ThinOneStat.ActionSeekType.RICH)},ve=()=>l()*-n(F)/n(Se)/l(),We=!1,U=Ie=>{if(!n(P))return!1;let Pe=Ie.clientX-n(E);O(F,n(K)+Pe),O(F,Math.max(Math.min(n(F),0),-n(Se)),!0),Math.abs(Pe)>1&&(We=!0),I(ve())},D=Ie=>{n(P)&&(O(P,!1),!We&&Ie&&O(F,-(Ie.offsetX-n(de)/2)),We=!1,qe())},ue=()=>{n(P)&&D()},ce=f(()=>s/u),_e=(Ie,Pe)=>{if(Ie!==p.length-1)return u;let Ne=0,_t=Pe*u;for(let It=1;It<=u;It++)Ie*s+Ne+_t<m&&Ne++;return Ne},ge=f(()=>Math.floor(n(z)/s)),Ke=f(()=>(0,jb.getRangeAroundIndex)(3,n(ge),p.length-1)),te=(Ie,Pe,Ne)=>{let _t=s*n(fe);return Ie*_t+Pe*n(fe)*u+n(de)/2-Ce/2+Ne*n(fe)},ze=f(()=>[`--row-numbers: ${n(ce)}`,`--column-numbers: ${u}`,`--frame-width: ${n(oe)}px`,`--frame-height: ${n(pe)}`].join(";"));var ee=aw();let ke;var Ue=C(ee);Ue.__pointerdown=[rw,P,E,K,F,x,ve],Ue.__pointermove=U,Ue.__pointerup=D,wi(Ue,20,()=>n(Ke),Ie=>Ie,(Ie,Pe)=>{var Ne=Ve(),_t=le(Ne);wi(_t,16,()=>Array.from({length:n(ce)},(It,Pt)=>Pt),It=>It,(It,Pt)=>{var at=Ve(),Et=le(at);wi(Et,16,()=>Array.from({length:_e(Pe,Pt)},(ei,Yt)=>Yt),ei=>ei,(ei,Yt)=>{var Dt=sw();N((jt,Q)=>{Ye(Dt,jt),ne(Dt,1,Q,"s-2c")},[()=>`--row-index: ${Pt}; --column-index: ${Yt}; left: ${te(Pe,Pt,Yt)}px; background-image: url(${p[Pe]});`,()=>`frame rotate-${Math.abs(r())/90%4}`]),$(ei,Dt)}),$(It,at)}),$(Ie,Ne)}),S(Ue),S(ee),ot(ee,Ie=>O(A,Ie),()=>n(A)),N(Ie=>{ke=ne(ee,1,"root s-2c",null,ke,Ie),Ye(ee,n(ze)),Ye(Ue,`transform: translateX(${n(F)}px); width: ${n(Se)}px;`)},[()=>({"is-vertical-video":!n(X),"vertically-rotated":n(se)})]),pt("mouseleave",Ue,ue),In(ee,"clientWidth",Ie=>O(de,Ie)),$(i,ee),H(),o()}tt(["pointerdown","pointermove","pointerup"]);var dw=L('<div class="notification s-2a"><span class="description s-2a"> </span></div>'),cw={hash:"s-2a",code:".notification.s-2a{background:var(--notification-bg);border-radius:var(--notification-radius);padding:9px 14px 10px 12px}.description.s-2a{font-size:14px;line-height:18px}"};function gv(i,e){B(e,!1),G(i,cw);let t=340,{ui:{t:o}}=ye();en();var r=dw(),a=C(r),l=C(a,!0);S(a),S(r),N(d=>he(l,d),[()=>o("preview_track_close_tooltip")],cr),Ns(3,r,()=>_a,()=>({duration:t})),$(i,r),H()}var Zb=require("@vkontakte/videoplayer-shared/es2015"),uw=L('<div class="preview-track-close tooltip s-28"><!></div>'),pw=L('<div class="preview-track-control s-28"><!> <div class="preview-track-close s-28"><!></div> <!></div>'),fw=L('<div class="wrapper-preview-track s-28"><!></div>'),mw=L('<div class="enriched-timeline s-28"><!> <!> <!></div>'),vw={hash:"s-28",code:".enriched-timeline.s-28{padding:var(--timeline-padding-vertical-top) var(--timeline-padding-horizontal) var(--timeline-padding-vertical-bottom);pointer-events:auto;position:relative}.preview-track-control.s-28{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-28{pointer-events:auto;position:absolute;right:calc(var(--timeline-padding-horizontal))}.preview-track-close.tooltip.s-28{bottom:32px;opacity:0;transition:opacity .2s}.preview-track-close.s-28:hover+.tooltip:where(.s-28){opacity:1}.wrapper-preview-track.s-28{box-sizing:border-box;left:0;overflow:hidden;padding:0 calc(var(--timeline-padding-horizontal));position:absolute;right:0;z-index:-1}"};function hv(i,e){B(e,!0),G(i,vw);let[t,o]=De(),r=()=>w(_,"$playerSize",t),a=()=>w(y,"$duration$",t),l=()=>w(x,"$previewTrackActive",t),d=()=>w(v,"$position$",t),s=()=>w(b,"$isRewindableLive$",t),u=h(e,"timelineRef",15,void 0),m=ye(),p=200,{positionWithScrubbing$:v,isRewindableLive$:b,duration$:y}=m.state,{playerSize:_,previewTrackActive:x}=m.ui,{countPerImage:I=0,links:T=[],frequency:R=0}=m.actions.internal.getPreviewThumbsData()||{},A=f(()=>r().width>100),P=q(!eb()),E=()=>{n(P)&&(J_(),O(P,!1))},K=fe=>{let oe=Math.floor(a()*fe/R),pe=Math.floor(oe/I),Se=(0,Zb.getRangeAroundIndex)(3,pe,T.length-1);for(let de of Se){let qe=new Image;qe.src=T[de]}},F=(fe,oe)=>{K(oe),!l()&&e.onTimelineMove(fe)};var z=mw(),X=C(z);{var se=fe=>{var oe=pw(),pe=C(oe);let Se=f(()=>tn(d()));dv(pe,{get time(){return n(Se)}});var de=k(pe,2),qe=C(de);Bs(qe,{onClick:()=>m.actions.internal.closePreviewTrack()}),S(de);var ve=k(de,2);{var We=U=>{var D=uw(),ue=C(D);gv(ue,{}),S(D),$(U,D)};V(ve,U=>{n(P)&&U(We)})}S(oe),pt("mouseleave",de,E),Ns(3,oe,()=>_a,()=>({duration:p})),$(fe,oe)};V(X,fe=>{l()&&fe(se)})}var Y=k(X,2);let re=f(()=>!n(A));nl(Y,{get isHidden(){return n(re)},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:K,get ref(){return u()},set ref(fe){u(fe)}});var Z=k(Y,2);{var Ce=fe=>{var oe=fw(),pe=C(oe);vv(pe,{}),S(oe),N(()=>Ye(oe,`height: ${e.animatedPreviewTrackHeight}px;`)),$(fe,oe)};V(Z,fe=>{e.previewTrackAvailable&&fe(Ce)})}S(z),N(()=>Ye(z,`transform: translateY(${e.animatedOffsetY}px);`)),$(i,z),H(),o()}var hw=L('<div><!> <div class="controls s-y" data-testid="player_controls"><div class="controls-left s-y"><!> <!> <!></div> <div class="controls-right s-y"></div></div></div> <!>',1),_w={hash:"s-y",code:'.wrapper-bottom.s-y{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-y:before{background:var(--controls-gradient);content:"";height:var(--controls-gradient-height);position:absolute;width:100%}.wrapper-bottom.s-y>:where(.s-y){pointer-events:auto}.controls.s-y{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-y,.controls-right.s-y{align-content:center;display:flex}.controls-left.s-y{flex-grow:1;min-width:0;overflow:hidden}.controls-left.s-y >:not(:first-child),.controls-right.s-y >*{margin-left:var(--controls-desktop-item-margin-left)}.controls-hidden.s-y{transform:translateY(100%);visibility:visible}.wrapper-bottom.no-smooth.s-y{transition:none}'};function bv(i,e){var Sa,bl;B(e,!0),G(i,_w);let[t,o]=De(),r=()=>w(vt,"$disabledControls$",t),a=()=>w(xt,"$adPlaybackState",t),l=()=>w(Kt,"$playbackState$",t),d=()=>w(Ft,"$currentSubtitle$",t),s=()=>w(mi,"$isEnded$",t),u=()=>w(Ai,"$currentGridType$",t),m=()=>w(uo,"$isLive$",t),p=()=>w(qt,"$chromecastState$",t),v=()=>w(wt,"$isPictureInPictureActive",t),b=()=>w(Ht,"$pictureInPictureType$",t),y=()=>w(Ni,"$availableSubtitlesList$",t),_=()=>w(Vt,"$contextMenuOpenedByKeyboard$",t),x=()=>w(bt,"$showContextMenuBtn$",t),I=()=>w(Io,"$isRewindableLive$",t),T=()=>w(yo,"$isActiveLive$",t),R=()=>w(vr,"$graphIsOpened$",t),A=()=>w(Ki,"$contextMenuVisible$",t),P=()=>w(lt,"$isFullscreen",t),E=()=>w(Mn,"$autoplayNextEnabled",t),K=()=>w(n(Fo),"$prevButton",t),F=()=>w(n(yn),"$replayButton",t),z=()=>w(n(ko),"$playButton",t),X=()=>w(n(dn),"$nextButton",t),se=()=>w(n(wo),"$playPrevChapterButton",t),Y=()=>w(n(So),"$seekToInteractiveButton",t),re=()=>w(n(Li),"$interactiveGraphButton",t),Z=()=>w(n(Qr),"$liveButton",t),Ce=()=>w(n(Bn),"$time",t),fe=()=>w(n(Cs),"$episodes",t),oe=()=>w(n(Qi),"$vkLogo",t),pe=()=>w(n(Ts),"$volume",t),Se=()=>w(n(cs),"$subtitles",t),de=()=>w(n(us),"$settings",t),qe=()=>w(n(Ir),"$context",t),ve=()=>w(n(cn),"$fullscreen",t),We=()=>w(n(Hn),"$chromecast",t),U=()=>w(Ln,"$additionalDesktopControlPanelRightButtons$",t),D=()=>w(qi,"$playerSize",t),ue=()=>w(Ho,"$isInteractiveTime$",t),ce=()=>w(ct,"$previewTrackActive",t),_e=()=>w($i,"$settingsMenuVisible",t),ge=()=>w(Lo,"$settingButtonRef$",t),Ke=()=>w(W,"$startedByKeyboard$",t),te=()=>w(pi,"$isAudioAvailable$",t),ze=()=>w(jt,"$fakeIsPlaying$",t),ee=()=>w(Ss,"$seekToInteractiveDisabledTooltip$",t),ke=()=>w(mo,"$isPreviewTrackHorizontallyAligned$",t),Ue=()=>w(Vo,"$previewTrackAvailable",t),Ie=()=>w(ci,"$previewTrackDragInProgress",t),Pe=()=>w(ii,"$adPosition",t),Ne=()=>w(Jt,"$position$",t),_t=()=>w(xi,"$adDuration",t),It=()=>w(st,"$duration$",t),Pt=h(e,"playerControlsWrapperRef",15,void 0),at=h(e,"playerControlsRef",15,void 0),Et=h(e,"isAds",3,!1),ei=h(e,"logoTargetUrl",3,""),Yt=h(e,"isOneVideoPlaylist",3,!1),Dt=h(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:jt}=To(),Q=ye(),Ae=To(),Re=Nt(),we=Q.actions.internal.toggleMuted,Fe=Q.actions.internal.togglePlay,xe=Q.actions.internal.pause,kt=Q.actions.internal.toggleSubtitle,be=Q.actions.internal.checkFullscreenSupport,He=(Sa=Q.callbacks)==null?void 0:Sa.onAudioDoesNotExistHint,Qe=(bl=Q.callbacks)==null?void 0:bl.onAudioDisabledHint,st=Q.state.duration$,Jt=Q.state.positionWithScrubbing$,Kt=Q.state.playbackState$,pi=Q.state.isAudioAvailable$,_i=Q.state.isAudioDisabled,mi=Q.state.isEnded$,uo=Q.state.isLive$,yo=Q.state.isActiveLive$,Io=Q.state.isRewindableLive$,{isActive$:wt,type$:Ht}=Ae.pictureInPicture$,$i=Q.ui.settingsMenu.visible$,St=Q.ui.settingsMenu.openedByBtnKeyboard$,Ct=Q.ui.controls,Si=Q.actions.internal.getVideoEpisodes(),qt=Q.state.chromecastState$,Ni=Q.state.availableSubtitlesList$,Ft=Q.state.currentSubtitle$,vt=Ct.disabledControls$,Ki=Q.ui.contextMenu.visible$,bt=Q.ui.contextMenu.showContextMenuBtn$,Vt=Q.ui.contextMenu.openedByBtnKeyboard$,W=Q.ui.startedByKeyboard$,Rt=Q.ui.controlBlocks,dt=Q.ui.t,xi=Q.ads.duration,ii=Q.ads.position,xt=Q.ads.playbackState,lt=Q.ui.isFullscreen,qi=Q.ui.playerSize,Ai=Q.ui.currentGridType$,Ln=Q.ui.additionalDesktopControlPanelRightButtons$,Mn=Q.ui.autoplayNextEnabled$,Ei=Q.actions.internal.getVideoElement,po=Q.actions.internal.replayInteractive,mr=Q.actions.internal.prevVideoClick,io=Q.actions.internal.nextVideoClick,Ci=Q.state.isInteractive,Ho=Q.state.isInteractiveTime$,on=Q.state.showInteractiveGraph,xo=Q.state.showSeekToInteractive,hn=Q.state.showPlayPrevChapter,Ur=Q.state.showInteractiveTimeIndicator,zr=Q.state.playPrevChapterDisabledTooltip,Ss=Ae.seekToInteractiveDisabledTooltip$,vr=Ae.graphIsOpened$,gr=Re.features.interactiveResponsiveUi,Wr=f(()=>r().has("EPISODE_BUTTON")),Kr=f(()=>r().has("GRAPH_BUTTON")),nn=f(()=>r().has("SEEK_TO_INTERACTIVE_BUTTON")),Vn=f(()=>r().has("PLAY_BUTTON")),Xn=f(()=>r().has("REPLAY_BUTTON")),hr=f(()=>r().has("PLAY_PREV_CHAPTER_BUTTON")),ls=()=>Q.actions.internal.toggleChromecast(),rn=f(()=>Et()?a()==="playing":l()===rl.PlaybackState.PLAYING),_r=f(()=>d().value!=="off"),Rn=f(()=>s()&&!Et()||Ci),br=f(()=>gr?n(Rn)&&ao(u(),"m"):n(Rn)),$r=f(()=>!s()||Ci||Et()),Eo=f(()=>ao(u(),"m")),yr=f(()=>e.showNextPrevButtons&&ao(u(),"m")&&!Et()&&e.nextButtonActive),oo=f(()=>e.showNextPrevButtons&&ao(u(),"m")&&!Et()&&e.prevButtonActive),Zn=f(()=>!Et()&&!!m()),Jn=f(()=>p()!==rl.ChromecastState.NOT_AVAILABLE&&!(v()&&b()===1)&&ao(u(),"m")&&!Ci&&!Et()),ft=f(()=>e.showAutoplayNext&&!Yt()&&ao(u(),"s")),si=f(()=>y().length>0&&ao(u(),"m")),xr=f(()=>_()||x()),wr=f(()=>ao(u(),"s")&&!Et()),ds=f(()=>!e.logoHidden&&!Et()),On=f(()=>Re.features.fullscreen&&be()&&(e.logoHidden||ao(u(),gr?"xs":"s"))&&!(v()&&b()===1)&&(Ci?Dt():!0)),Sr=f(()=>(!m()||Et())&&!(Re.features.interactiveHideTime&&Ci)),Po=f(()=>on&&ao(u(),"m")),sn=f(()=>gr?xo&&ao(u(),"s"):xo),Cr=f(()=>gr?hn&&ao(u(),"s"):hn),an=f(()=>!Et()&&!m()&&!!(Si!=null&&Si.length)&&n(Eo)&&!n(Wr)),ln=f(()=>!I()||!!T()),qr=f(()=>R()?dt("tooltip_interactive_graph_on"):dt("tooltip_interactive_graph_off")),_n=f(()=>A()?dt("tooltip_context_menu_close"):dt("tooltip_context_menu_open")),bn=(ut,mt)=>ut?mt&&mt===rl.PlaybackState.PAUSED?dt("tooltip_play"):"":dt("tooltip_live"),Pi=f(()=>bn(n(ln),l())),Nn=f(()=>Re.logoType==="vk_video"?dt("tooltip_vk_video_logo"):dt("tooltip_vk_logo")),no=f(()=>n(_r)?dt("tooltip_subtitles_on"):dt("tooltip_subtitles_off")),Dn=f(()=>P()?dt("tooltip_fullscreen_on"):dt("tooltip_fullscreen_off")),er=f(()=>p()===rl.ChromecastState.CONNECTED?dt("tooltip_chromecast_on"):dt("tooltip_chromecast_off")),$n=f(()=>E()?dt("tooltip_autoplay_on"):dt("tooltip_autoplay_off")),Tr=q(0),it=ui({}),di=ui({}),Fo=f(()=>Ct.prevButton),yn=f(()=>Ct.replayButton),ko=f(()=>Ct.playButton),dn=f(()=>Ct.nextButton),wo=f(()=>Ct.playPrevChapterButton),So=f(()=>Ct.seekToInteractiveButton),Li=f(()=>Ct.interactiveGraphButton),Qr=f(()=>Ct.liveButton),Bn=f(()=>Ct.time),Cs=f(()=>Ct.episodes),Qi=f(()=>Ct.vkLogo),Ts=f(()=>Ct.volume),cs=f(()=>Ct.subtitles),us=f(()=>Ct.settings),Ir=f(()=>Ct.context),cn=f(()=>Ct.fullscreen),Hn=f(()=>Ct.chromecast),Ti=f(()=>({prevButton:K()?K().right-K().left:0,replayButton:F()?F().right-F().left:0,playButton:z()?z().right-z().left:0,nextButton:X()?X().right-X().left:0,playPrevChapterButton:se()?se().right-se().left:0,seekToInteractiveButton:Y()?Y().right-Y().left:0,interactiveGraphButton:re()?re().right-re().left:0,liveButton:Z()?Z().right-Z().left:0,time:Ce()?Ce().right-Ce().left:0,episodes:fe()?fe().right-fe().left:0,vkLogo:oe()?oe().right-oe().left:0,volume:pe()?pe().right-pe().left:0,subtitles:Se()?Se().right-Se().left:0,settings:de()?de().right-de().left:0,context:qe()?qe().right-qe().left:0,fullscreen:ve()?ve().right-ve().left:0,chromecast:We()?We().right-We().left:0,additionalButtons:U().length?U().reduce(ut=>[...ut,40],[]):[]})),je=q(0);Be(()=>{(!n(je)||n(je)<n(Ti).time)&&At(()=>O(je,n(Ti).time,!0))});let Lt=q(!1);Be(()=>{let ut=0;n(an)&&(ao(u(),"xl")?ut=n(Ti).time:ut=60);let mt=n(Ti).prevButton+n(Ti).playButton+n(Ti).nextButton+n(Ti).seekToInteractiveButton+n(Ti).interactiveGraphButton+n(Ti).liveButton+n(je)+ut;O(Lt,n(Sr)&&n(Tr)>=mt,!0)});let fi=f(()=>n(Lt)&&ao(u(),"m")),Uo=(0,_v.debounceFn)(nd,260),Ao=(0,_v.debounceFn)($p,260);Be(()=>{D(),ue(),ce(),Uo(Ei(),Ct,it,e.showControls),Ao(Ei(),Rt,di,e.showControls)}),Be(()=>{di.bottom=Pt()});let Lo=ae();Be(()=>{_e(),ge()&&At(()=>Yl(ge(),_e(),St))});let Gi;Be(()=>{Ke(),At(()=>_p(W,Ke(),Gi))});function zo(){fa({isAudioDisabled:_i,isAudioAvailable:te(),isAds:Et(),audioIsNotExistHintCallback:He,audioDisabledHintCallback:Qe})&&we()}let Fn=Ci?po:Fe,Er=f(()=>ze()!==null),Mo=f(()=>n(Er)?ze():n(rn)),fo=f(()=>n(Mo)?dt("tooltip_pause"):dt("tooltip_play")),tr=dt("tooltip_episodes"),Wo=f(()=>{var ut,mt,ji,Di;return n(oo)?{id:"prevButton",type:"desktop-control-panel-left",weight:zs.prevButton,buttonComponent:il,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:mr.bind(null,!0)},tooltipEnabled:!((mt=(ut=Q.callbacks)==null?void 0:ut.uiInfo)!=null&&mt.onPrevButtonMouseEnter)&&!((Di=(ji=Q.callbacks)==null?void 0:ji.uiInfo)!=null&&Di.onPrevButtonMouseLeave),mouseEnter:()=>{var Xi,yi,Bi;(Bi=(yi=(Xi=Q.callbacks)==null?void 0:Xi.uiInfo)==null?void 0:yi.onPrevButtonMouseEnter)==null||Bi.call(yi,Yn(Ei(),it,"prevButton",e.showControls))},mouseLeave:()=>{var Xi,yi,Bi;(Bi=(yi=(Xi=Q.callbacks)==null?void 0:Xi.uiInfo)==null?void 0:yi.onPrevButtonMouseLeave)==null||Bi.call(yi,Yn(Ei(),it,"prevButton",e.showControls))},tooltipText:dt("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),Un=f(()=>n(br)?{id:"replayButton",type:"desktop-control-panel-left",weight:zs.replayButton,buttonComponent:rd,buttonComponentProps:{disabled:n(Xn),click:Fn},tooltipText:dt("tooltip_restart"),disabled:n(Xn)}:void 0),Pr=f(()=>n($r)?{id:"playButton",type:"desktop-control-panel-left",weight:zs.playButton,buttonComponent:sd,buttonComponentProps:{disabled:n(Vn),isPlaying:n(rn),click:Fe},tooltipText:n(fo),disabled:n(Vn)}:void 0),Gr=f(()=>{var ut,mt,ji,Di;return n(yr)?{id:"nextButton",type:"desktop-control-panel-left",weight:zs.nextButton,buttonComponent:il,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:io.bind(null,!0)},tooltipEnabled:!((mt=(ut=Q.callbacks)==null?void 0:ut.uiInfo)!=null&&mt.onNextButtonMouseEnter)&&!((Di=(ji=Q.callbacks)==null?void 0:ji.uiInfo)!=null&&Di.onNextButtonMouseLeave),mouseEnter:()=>{var Xi,yi,Bi;(Bi=(yi=(Xi=Q.callbacks)==null?void 0:Xi.uiInfo)==null?void 0:yi.onNextButtonMouseEnter)==null||Bi.call(yi,Yn(Ei(),it,"nextButton",e.showControls))},mouseLeave:()=>{var Xi,yi,Bi;(Bi=(yi=(Xi=Q.callbacks)==null?void 0:Xi.uiInfo)==null?void 0:yi.onNextButtonMouseLeave)==null||Bi.call(yi,Yn(Ei(),it,"nextButton",e.showControls))},tooltipText:dt("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),Yr=f(()=>Ci&&n(Cr)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:zs.playPrevChapterButton,buttonComponent:Tc,buttonComponentProps:{disabled:n(hr),click:e.playPrevChapter},tooltipText:dt("tooltip_interactive_go_back"),disabledTooltipContent:dt(zr),disabled:n(hr)}:void 0),Ze=f(()=>Ci&&n(sn)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:zs.seekToInteractiveButton,buttonComponent:Ec,buttonComponentProps:{disabled:n(nn),click:e.seekToInteractive},tooltipText:dt("tooltip_interactive_seek"),disabled:n(nn),disabledTooltipContent:dt(ee())}:void 0),ti=f(()=>Ci&&n(Po)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:zs.interactiveGraphButton,buttonComponent:Pc,buttonComponentProps:{disabled:n(Kr),click:vr.toggle,graphIsOpened:R()},tooltipText:n(qr)}:void 0),Mi=f(()=>n(Zn)?{id:"liveButton",type:"desktop-control-panel-left",weight:zs.liveButton,buttonComponent:kc,buttonComponentProps:{isLiveActive:n(ln),ariaLabel:n(Pi)},tooltipText:n(Pi),disabled:n(ln)&&l()===rl.PlaybackState.PLAYING}:void 0),Co=f(()=>[n(Wo),n(Un),n(Pr),n(Gr),n(Yr),n(Ze),n(ti),n(Mi)].filter(ut=>!!ut).sort(Ya)),un=f(()=>n(ds)?{id:"vkLogo",type:"desktop-control-panel-right",weight:Ks.vkLogo,buttonComponent:hc,buttonComponentProps:{targetUrl:ei(),logoClickable:e.logoClickable,click:xe},tooltipText:n(Nn),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),ir=f(()=>n(ft)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:Ks.autoplayNext,buttonComponent:Ic,tooltipText:n($n)}:void 0),Ko=f(()=>({id:"volume",type:"desktop-control-panel-right",weight:Ks.volume,buttonComponent:Fm,buttonComponentProps:{click:zo,isAds:Et()}})),or=f(()=>n(si)?{id:"subtitles",type:"desktop-control-panel-right",weight:Ks.subtitles,buttonComponent:Nm,buttonComponentProps:{isSubtitlesEnabled:n(_r),click:kt},tooltipText:n(no)}:void 0),ps=f(()=>n(wr)?{id:"settings",type:"desktop-control-panel-right",weight:Ks.settings,buttonComponent:ed,buttonComponentProps:{ref$:Lo},tooltipText:_e()?void 0:dt("tooltip_settings_off")}:void 0),Gs=f(()=>Re.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:Ks.context,buttonComponent:tv,buttonComponentProps:{ariaLabel:dt("aria_label_context_menu")},className:n(xr)?"":"out-of-view",tooltipText:n(_n)}:void 0),zn=f(()=>n(On)?{id:"fullscreen",type:"desktop-control-panel-right",weight:Ks.fullscreen,buttonComponent:gc,buttonComponentProps:{isFullscreen:P(),click:e.toggleFullscreen},tooltipText:n(Dn)}:void 0),xa=f(()=>n(Jn)?{id:"chromecast",type:"desktop-control-panel-right",weight:Ks.chromecast,buttonComponent:bc,buttonComponentProps:{state:p(),click:ls},tooltipText:n(er)}:void 0),Ys=f(()=>[n(un),n(ir),n(Ko),n(or),n(ps),n(Gs),n(zn),n(xa),...U()].filter(ut=>!!ut).sort(Ya)),ct=Q.ui.previewTrackActive,ci=Q.ui.previewTrackDragInProgress,Vo=Q.ui.previewTrackAvailable,mo=Q.ui.isPreviewTrackHorizontallyAligned,Vi=f(()=>Gb({onPreviewTrackOpened:Q.actions.internal.previewTrackOpened,getTimelineRef:()=>it.timeline,isHorizontal:ke()})),kr=f(()=>n(Vi).progressBarY),Is=f(()=>n(Vi).controlsY),Es=f(()=>n(Vi).onPointerDown),vo=f(()=>n(Vi).onPointerMove),Ri=f(()=>n(Vi).onPointerUp),me=f(()=>n(Vi).calculatedHeight),Tt=f(()=>n(Vi).closePreviewTrack);Be(()=>{ce()||n(Tt)()});let oi;Ot(()=>()=>oi&&clearTimeout(oi));let ni=ut=>{ce()||!Ue()||(n(Es)(ut),oi=setTimeout(()=>{Q.actions.internal.previewTrackDragStarted()},200))},qo=()=>{ce()||n(Ri)(),oi&&clearTimeout(oi),Ie()&&Q.actions.internal.previewTrackDragFinished()},go=ut=>{n(vo)(ut)},Yi=-(parseInt("24")/2+4);var fs=hw(),nr=le(fs);let jr;var wa=C(nr);{var gd=ut=>{let mt=f(()=>n(kr)()),ji=f(()=>n(me)());hv(ut,{get animatedOffsetY(){return n(mt)},get animatedPreviewTrackHeight(){return n(ji)},get canRewindLive(){return e.canRewindLive},get isAds(){return Et()},onTimelineMove:go,onTimelinePointerDown:ni,onTimelinePointerUp:qo,get previewTrackAvailable(){return Ue()},get timelineRef(){return it.timeline},set timelineRef(Di){it.timeline=Di}})};V(wa,ut=>{e.showControls&&ut(gd)})}var Ar=k(wa,2),ms=C(Ar),js=C(ms);wi(js,17,()=>n(Co),ut=>ut.id,(ut,mt)=>{bp(ut,{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(ji){it[n(mt).id]=ji}})});var Lr=k(js,2);{var gl=ut=>{let mt=f(()=>!e.showControls),ji=f(()=>Et()?Pe():Ne()),Di=f(()=>Et()?_t():It());fc(ut,{get isHidden(){return n(mt)},isMobile:!1,get showDuration(){return n(fi)},get position(){return n(ji)},get duration(){return n(Di)},get ref(){return it.time},set ref(Xi){it.time=Xi}})};V(Lr,ut=>{n(Sr)&&ut(gl)})}var hd=k(Lr,2);let Mr=f(()=>!n(an));Do(hd,{className:"w-max",get disabled(){return n(Mr)},get tooltipContent(){return tr},get tooltipVisible(){return e.showControls},tooltipPlacement:"top-left",get initialTranslateXPx(){return Yi},get ref(){return it.episodes},set ref(ut){it.episodes=ut},children:(ut,mt)=>{var ji=Ve(),Di=le(ji);{var Xi=yi=>{$c(yi,{get position(){return Ne()},get duration(){return It()},get timeCodes(){return Si}})};V(Di,yi=>{n(an)&&yi(Xi)})}$(ut,ji)},$$slots:{default:!0}}),S(ms);var hl=k(ms,2);wi(hl,21,()=>n(Ys),ut=>ut.id,(ut,mt)=>{var ji=Ve(),Di=le(ji);{var Xi=Bi=>{bp(Bi,{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(Ca){it[n(mt).id]=Ca}})},yi=Bi=>{let Ca=f(()=>!!n(mt).disabled);av(Bi,{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(Ca)},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($l){it[n(mt).id]=$l}})};V(Di,Bi=>{Kb(n(mt))?Bi(Xi):Bi(yi,!1)})}$(ut,ji)}),S(hl),S(Ar),ot(Ar,ut=>at(ut),()=>at()),S(nr),ot(nr,ut=>Pt(ut),()=>Pt());var _l=k(nr,2);{var _d=ut=>{Sc(ut,{get ref(){return it.interactiveTimeIndicator},set ref(mt){it.interactiveTimeIndicator=mt}})};V(_l,ut=>{Ur&&ut(_d)})}N((ut,mt)=>{jr=ne(nr,1,"wrapper-bottom s-y",null,jr,ut),Ye(nr,`transform: ${e.showControls?"translateY(0)":"translateY(100%)"}`),Ye(Ar,mt),Ar.inert=ce()},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth||Ie()}),()=>`transform: translateY(${n(Is)()}px);`]),In(ms,"clientWidth",ut=>O(Tr,ut)),$(i,fs),H(),o()}var ad=require("@vkontakte/videoplayer-core/es2015");var $v=require("@vkontakte/videoplayer-shared/es2015");var bw=L('<div class="icon icon-error-stub s-20"><div class="inner s-20"></div></div>'),$w=L('<img class="icon s-20" aria-hidden="true"/>'),yw={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 yv(i,e){G(i,yw);let t=h(e,"disabled",3,!1),o=h(e,"onClick",3,$v.noop),r=f(()=>o()===$v.noop),a=f(()=>n(r)||t()),l=q(!1),d=()=>{O(l,!0)},s=f(()=>n(r)?"btn-full-opacity":"");Wt(i,{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=Ve(),v=le(p);{var b=_=>{var x=bw();$(_,x)},y=_=>{var x=$w();N(()=>Oe(x,"src",e.iconUrl)),pt("error",x,d),Ha(x),$(_,x)};V(v,_=>{n(l)?_(b):_(y,!1)})}$(u,p)},$$slots:{default:!0}})}var xw=Ee('<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 xv(i){et(i,{testId:"muted-icon",children:(e,t)=>{var o=xw();$(e,o)},$$slots:{default:!0}})}var Jb=require("@vkontakte/videoplayer-shared/es2015");function xp(i,e){B(e,!0);let t=h(e,"muted",3,!1),o=h(e,"click",3,Jb.noop),r=h(e,"ref",15,void 0),l=ye().ui.t,d=f(()=>t()?l("tooltip_volume"):l("tooltip_volume_muted")),s=f(()=>t()?"btn-mobile-muted":"btn-mobile-unmuted");Wt(i,{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=Ve(),v=le(p);{var b=_=>{xv(_,{})},y=_=>{ga(_,{get size(){return"24"}})};V(v,_=>{t()?_(b):_(y,!1)})}$(u,p)},$$slots:{default:!0}}),H()}var ww=Ee('<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>'),Sw=Ee('<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>'),Cw=Ee('<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 wv(i,e){let t=h(e,"isActive",3,!1),o=f(()=>t()?"pip-icon--active":"pip-icon");et(i,{get testId(){return n(o)},children:(r,a)=>{var l=Cw(),d=k(le(l));{var s=m=>{var p=ww();$(m,p)},u=m=>{var p=Sw();$(m,p)};V(d,m=>{t()?m(s):m(u,!1)})}$(r,l)},$$slots:{default:!0}})}var e$=require("@vkontakte/videoplayer-shared/es2015");function Sv(i,e){B(e,!0);let t=h(e,"ref",15,void 0),o=h(e,"isPictureInPictureActive",3,!1),r=h(e,"click",3,e$.noop),a=j("menu_pip");Wt(i,{testId:"btn-pip",get ariaLabel(){return a},get click(){return r()},get ref(){return t()},set ref(l){t(l)},children:(l,d)=>{wv(l,{get isActive(){return o()}})},$$slots:{default:!0}}),H()}var Cv=require("@vkontakte/videoplayer-shared/es2015");var Tw=(i,e,t,o)=>{n(e)&&t.onDisabledPlayPrevChapterClick(n(o))},Iw=(i,e,t,o)=>{n(e)&&t.onDisabledSeekToInteractiveClick(n(o))},Ew=L("<div><!></div>"),Pw=L("<div><!></div>"),kw=L("<div><!></div>"),Aw=L("<!> <!> <!>",1),Lw=L("<div></div> <div></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),Mw=L('<div class="wrapper-middle s-z"><!></div>'),Vw=L("<div><!></div> <!> <div><!></div>",1),Rw=L('<div aria-hidden="true">·</div> <!>',1),Ow=L('<!> <!> <div><div><div class="controls mobile s-z" data-testid="bottom-controls"><div class="controls-group contain s-z"><!> <!> <!> <!></div> <div class="controls-group s-z"><!> <!> <!></div></div> <!></div></div> <!>',1),Nw={hash:"s-z",code:".wrapper-bottom.s-z{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-z>:where(.s-z){pointer-events:auto}.wrapper-bottom.ads-timeline-mobile.s-z{height:9px;padding:0 4px 4px}.wrapper-middle.s-z{align-items:center;left:50%;top:50%;transform:translate(-50%,-50%)}.wrapper-middle.s-z,.wrapper-top-right.s-z{display:flex;position:absolute;transition:opacity var(--controls-transition-duration);z-index:var(--controls-container-z-index)}.wrapper-top-right.s-z{right:8px;top:4px}.wrapper-top-left.s-z{left:8px;position:absolute;top:4px;z-index:var(--controls-container-z-index)}.wrapper-middle-left.s-z,.wrapper-middle-left-second.s-z,.wrapper-middle-right.s-z{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-z{left:12px}.wrapper-middle-left-second.s-z{left:64px}.wrapper-middle-right.s-z{right:12px}.controls.s-z{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-z,.controls-group.s-z{display:flex}.controls-group.contain.s-z{min-width:0}.controls-group.s-z >:not(:first-child){margin-left:8px}.hidden.s-z{opacity:0;visibility:hidden}.controls-hidden.s-z{transform:translateY(100%);visibility:visible}.wrapper-bottom.no-smooth.s-z{transition:none}.overlay-mobile.s-z{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-z,.wrapper-top-right.fullscreen.s-z{top:16px}.controls-wrapper.fullscreen.s-z{bottom:30px;position:absolute;width:calc(100% - 8px)}}@media screen and (orientation:landscape){.wrapper-top-left.fullscreen.s-z{left:44px;top:12px}.wrapper-top-right.fullscreen.s-z{right:44px;top:12px}.wrapper-middle-left.fullscreen.s-z{left:44px}.wrapper-middle-left-second.fullscreen.s-z{left:96px}.wrapper-middle-right.fullscreen.s-z{right:44px}.controls-wrapper.fullscreen.s-z{bottom:32px;left:36px;position:absolute;right:36px;width:calc(100% - 72px)}}"};function Tv(i,e){var Hn,Ti;B(e,!0),G(i,Nw);let[t,o]=De(),r=()=>w(Ai,"$seekToInteractiveDisabledTooltip$",t),a=()=>w(Ct,"$disabledControls$",t),l=()=>w(Yt,"$playbackState$",t),d=()=>w(vt,"$adPlaybackState",t),s=()=>w(Q,"$isEnded$",t),u=()=>w(bt,"$playerSize",t),m=()=>w(kt,"$scrubbingInProgress",t),p=()=>w($i,"$chromecastState$",t),v=()=>w(He,"$isPictureInPictureActive",t),b=()=>w(Qe,"$pictureInPictureType$",t),y=()=>w(be,"$mobileNotReportControlHidden$",t),_=()=>w(Io,"$chromecastHidden",t),x=()=>w(at,"$playerPhase",t),I=()=>w(uo,"$pipHidden",t),T=()=>w(qt,"$currentGridType$",t),R=()=>w(_i,"$vkLogoHidden",t),A=()=>w(pi,"$volumeHidden",t),P=()=>w(Ae,"$isLive$",t),E=()=>w(st,"$settingsMenuVisible",t),K=()=>w(xe,"$isRewindableLive$",t),F=()=>w(Fe,"$isActiveLive$",t),z=()=>w(Dt,"$isAudioAvailable$",t),X=()=>w(we,"$muted$",t),se=()=>w(Re,"$volume$",t),Y=()=>w(xi,"$isInteractiveTime$",t),re=()=>w(Cr,"$settingButtonRef$",t),Z=()=>w(Si,"$startedByKeyboard$",t),Ce=()=>w(Ki,"$isFullscreen",t),fe=()=>w(Vt,"$additionalButtons$",t),oe=()=>w(mi,"$autoplayNextToggleHidden",t),pe=()=>w(St,"$crashed$",t),Se=()=>w(yo,"$settingsHidden",t),de=()=>w(Ln,"$graphIsOpened$",t),qe=()=>w(Ft,"$adPosition",t),ve=()=>w(Ni,"$adDuration",t),We=()=>w(ei,"$position$",t),U=()=>w(Et,"$duration$",t),D=h(e,"playerControlsWrapperRef",15,void 0),ue=h(e,"playerControlsRef",15,void 0),ce=h(e,"isAds",3,!1),_e=h(e,"logoTargetUrl",3,""),ge=h(e,"isOneVideoPlaylist",3,!1),Ke=h(e,"customFullscreenSupported",3,!0),te=ye(),ze=To(),ee=Nt(),ke=te.actions.internal.toggleMuted,Ue=te.actions.internal.togglePlay,Ie=te.actions.internal.pause,Pe=te.actions.internal.prevVideoClick,Ne=te.actions.internal.nextVideoClick,_t=te.actions.internal.checkFullscreenSupport,It=(Hn=te.callbacks)==null?void 0:Hn.onAudioDoesNotExistHint,Pt=(Ti=te.callbacks)==null?void 0:Ti.onAudioDisabledHint,at=te.playerPhase,Et=te.state.duration$,ei=te.state.positionWithScrubbing$,Yt=te.state.playbackState$,Dt=te.state.isAudioAvailable$,jt=te.state.isAudioDisabled,Q=te.state.isEnded$,Ae=te.state.isLive$,Re=te.state.volume$,we=te.state.muted$,Fe=te.state.isActiveLive$,xe=te.state.isRewindableLive$,kt=te.ui.scrubbingInProgress,be=te.ui.mobileNotReportControlHidden$,{isActive$:He,type$:Qe}=ze.pictureInPicture$,st=te.ui.settingsMenu.visible$,Jt=te.ui.settingsMenu.openedByBtnKeyboard$,Kt=te.ui.controls,{volume:pi,vkLogo:_i,autoplayNextToggle:mi,pip:uo,settings:yo,chromecast:Io}=te.ui.hiddenControls,wt=te.actions.internal.getVideoEpisodes(),Ht=te.webApi.pictureInPictureApi,$i=te.state.chromecastState$,St=te.state.crashed$,Ct=Kt.disabledControls$,Si=te.ui.startedByKeyboard$,qt=te.ui.currentGridType$,Ni=te.ads.duration,Ft=te.ads.position,vt=te.ads.playbackState,Ki=te.ui.isFullscreen,bt=te.ui.playerSize,Vt=te.ui.additionalButtonsDeprecated$,W=te.actions.internal.getVideoElement,Rt=te.actions.internal.replayInteractive,dt=te.state.isInteractive,xi=te.state.isInteractiveTime$,ii=te.state.showInteractiveGraph,xt=te.state.showSeekToInteractive,lt=te.state.showPlayPrevChapter,qi=te.state.showInteractiveTimeIndicator,Ai=ze.seekToInteractiveDisabledTooltip$,Ln=ze.graphIsOpened$,Mn=te.ui.controlBlocks,Ei=f(()=>j(te.state.playPrevChapterDisabledTooltip)),po=f(()=>j(r())),mr=f(()=>a().has("EPISODE_BUTTON")),io=f(()=>a().has("GRAPH_BUTTON")),Ci=f(()=>a().has("SEEK_TO_INTERACTIVE_BUTTON")),Ho=f(()=>a().has("PLAY_BUTTON")),on=f(()=>a().has("REPLAY_BUTTON")),xo=f(()=>a().has("PLAY_PREV_CHAPTER_BUTTON")),hn=f(()=>l()===ad.PlaybackState.PLAYING),Ur=f(()=>d()==="paused"),zr=f(()=>s()&&!ce()&&!dt),Ss=f(()=>!s()||ce()),vr=f(()=>e.showNextPrevButtons&&!ce()&&e.prevButtonActive),gr=f(()=>e.showNextPrevButtons&&!ce()&&e.nextButtonActive),Wr=f(()=>u().width>300),Kr=f(()=>u().width>400),nn=f(m),Vn=f(()=>p()!==ad.ChromecastState.NOT_AVAILABLE&&!(v()&&b()===1)&&!y()&&!dt&&!_()),Xn=f(()=>x()==="LiveWaitingStart"),hr=f(()=>!!Ht&&p()!==ad.ChromecastState.CONNECTED&&!y()&&(b()===1&&n(Xn)||!n(Xn))&&!n(nn)&&!dt&&!I()),ls=q(!1);Ot(()=>{let je=Ht==null?void 0:Ht.info.isActive$.subscribe(Lt=>O(ls,Lt,!0));return()=>je==null?void 0:je.unsubscribe()});let rn=f(()=>!n(nn)&&ao(T(),"s")),_r=f(()=>!e.logoHidden&&u().width>350&&!R()),Rn=f(()=>ee.features.fullscreen&&_t()&&!(v()&&b()===1)&&(dt?Ke():!0)&&!n(nn)&&!n(ls)),br=f(()=>!A()&&!n(nn)),$r=f(()=>(!P()||ce())&&u().width>260&&!n(nn)&&!(ee.features.interactiveHideTime&&dt)),Eo=f(()=>E()||e.showControls),yr=f(()=>!ce()&&!P()&&!!(wt!=null&&wt.length)&&n(Wr)&&!n(mr)&&!n(nn)),oo=f(()=>!K()||!!F()),Zn=f(()=>ii&&ao(T(),"m")),Jn=f(()=>!z()||X()||se()===0),ft=ui({}),si=ui({}),xr=(0,Cv.debounceFn)(nd,260),wr=(0,Cv.debounceFn)($p,260);Be(()=>{u(),Y(),xr(W(),Kt,ft,e.showControls),wr(W(),Mn,si,e.showControls)});let ds=()=>te.actions.internal.toggleChromecast();function On(){return gt(this,null,function*(){Ht!=null&&Ht.isActive()?yield Ht==null?void 0:Ht.exit():yield Ht==null?void 0:Ht.request()})}function Sr(){fa({isAudioDisabled:jt,audioDisabledHintCallback:Pt,isAudioAvailable:z(),audioIsNotExistHintCallback:It,isAds:ce()})&&ke()}let Po=q(""),sn=(je,Lt)=>{if(!je){O(Po,j("tooltip_live"),!0);return}Lt&&Lt===ad.PlaybackState.PAUSED&&O(Po,j("tooltip_play"),!0)};Be(()=>{sn(n(oo),l())});let Cr=ae();Be(()=>{re()&&Yl(re(),E(),Jt)}),Be(()=>{_p(Si,Z(),ft.playButton)});var an=Ow(),ln=le(an);{var qr=je=>{var Lt=Lw(),fi=le(Lt);let Uo;var Ao=k(fi,2);let Lo;ot(Ao,ct=>si.topLeft=ct,()=>si==null?void 0:si.topLeft);var Gi=k(Ao,2);let zo;var Fn=C(Gi);wi(Fn,1,fe,({iconUrl:ct,ariaLabel:ci,testId:Vo,onClick:mo,tooltip:Vi})=>ct,(ct,ci)=>{let Vo=()=>n(ci).iconUrl,mo=()=>n(ci).ariaLabel,Vi=()=>n(ci).testId,kr=()=>n(ci).onClick,Is=()=>n(ci).tooltip,Es=f(()=>{var vo;return(vo=mo())!=null?vo:Is()});yv(ct,{get iconUrl(){return Vo()},get ariaLabel(){return n(Es)},get testId(){return Vi()},get onClick(){return kr()}})});var Er=k(Fn,2);{var Mo=ct=>{Ic(ct,{get ref(){return ft.autoplayNextToggle},set ref(ci){ft.autoplayNextToggle=ci}})};V(Er,ct=>{e.showAutoplayNext&&!ge()&&!oe()&&ct(Mo)})}var fo=k(Er,2);{var tr=ct=>{bc(ct,{isMobile:!0,click:ds,get state(){return p()},get ref(){return ft.chromecast},set ref(ci){ft.chromecast=ci}})};V(fo,ct=>{n(Vn)&&ct(tr)})}var Wo=k(fo,2);{var Un=ct=>{Sv(ct,{click:On,get isPictureInPictureActive(){return v()},get ref(){return ft.pip},set ref(ci){ft.pip=ci}})};V(Wo,ct=>{n(hr)&&ct(Un)})}var Pr=k(Wo,2);{var Gr=ct=>{ed(ct,{get ref$(){return Cr}})};V(Pr,ct=>{pe()&&!Se()&&ct(Gr)})}var Yr=k(Pr,2);{var Ze=ct=>{hc(ct,{get click(){return Ie},get targetUrl(){return _e()},get logoClickable(){return e.logoClickable},get ref(){return ft.vkLogo},set ref(ci){ft.vkLogo=ci}})};V(Yr,ct=>{n(_r)&&ct(Ze)})}S(Gi),ot(Gi,ct=>si.topRight=ct,()=>si==null?void 0:si.topRight);var ti=k(Gi,2);let Mi;var Co=C(ti);{var un=ct=>{let ci=f(()=>Pe.bind(null,!0));il(ct,{get click(){return n(ci)},type:"prev",isMobile:!0,get ref(){return ft.prevButton},set ref(Vo){ft.prevButton=Vo}})};V(Co,ct=>{n(vr)&&ct(un)})}var ir=k(Co,2);{var Ko=ct=>{sd(ct,{get disabled(){return n(Ho)},get click(){return Ue},isMobile:!0,get isPlaying(){return n(hn)},get ref(){return ft.playButton},set ref(ci){ft.playButton=ci}})};V(ir,ct=>{n(Ss)&&ct(Ko)})}var or=k(ir,2);{var ps=ct=>{rd(ct,{get disabled(){return n(on)},get click(){return Ue},isMobile:!0,get ref(){return ft.replayButton},set ref(ci){ft.replayButton=ci}})};V(or,ct=>{n(zr)&&ct(ps)})}var Gs=k(or,2);{var zn=ct=>{let ci=f(()=>Ne.bind(null,!0));il(ct,{get click(){return n(ci)},type:"next",isMobile:!0,get ref(){return ft.nextButton},set ref(Vo){ft.nextButton=Vo}})};V(Gs,ct=>{n(gr)&&ct(zn)})}S(ti),ot(ti,ct=>si.middle=ct,()=>si==null?void 0:si.middle);var xa=k(ti,2);{var Ys=ct=>{var ci=Aw(),Vo=le(ci);{var mo=vo=>{var Ri=Ew();let me;Ri.__click=[Tw,xo,e,Ei];var Tt=C(Ri);let oi=f(()=>!e.showControls);Tc(Tt,{get hidden(){return n(oi)},get disabled(){return n(xo)},get click(){return e.playPrevChapter},get ref(){return ft.playPrevChapterButton},set ref(ni){ft.playPrevChapterButton=ni}}),S(Ri),N(ni=>me=ne(Ri,1,"wrapper-middle-left s-z",null,me,ni),[()=>({fullscreen:Ce(),hidden:!e.showControls})]),$(vo,Ri)};V(Vo,vo=>{lt&&vo(mo)})}var Vi=k(Vo,2);{var kr=vo=>{var Ri=Pw();let me;var Tt=C(Ri);let oi=f(()=>!e.showControls&&!de());Pc(Tt,{get hidden(){return n(oi)},get disabled(){return n(io)},get click(){return Ln.toggle},get graphIsOpened(){return de()},get ref(){return ft.interactiveGraphButton},set ref(ni){ft.interactiveGraphButton=ni}}),S(Ri),N(ni=>me=ne(Ri,1,Wd(lt?"wrapper-middle-left-second":"wrapper-middle-left"),"s-z",me,ni),[()=>({fullscreen:Ce(),hidden:!e.showControls&&!de()})]),$(vo,Ri)};V(Vi,vo=>{n(Zn)&&vo(kr)})}var Is=k(Vi,2);{var Es=vo=>{var Ri=kw();let me;Ri.__click=[Iw,Ci,e,po];var Tt=C(Ri);let oi=f(()=>!e.showControls);Ec(Tt,{get hidden(){return n(oi)},get disabled(){return n(Ci)},get click(){return e.seekToInteractive},get ref(){return ft.seekToInteractiveButton},set ref(ni){ft.seekToInteractiveButton=ni}}),S(Ri),N(ni=>me=ne(Ri,1,"wrapper-middle-right s-z",null,me,ni),[()=>({fullscreen:Ce(),hidden:!e.showControls})]),$(vo,Ri)};V(Is,vo=>{xt&&vo(Es)})}$(ct,ci)};V(xa,ct=>{dt&&!m()&&ct(Ys)})}N((ct,ci,Vo,mo)=>{Uo=ne(fi,1,"overlay-mobile s-z",null,Uo,ct),Lo=ne(Ao,1,"wrapper-top-left s-z",null,Lo,ci),zo=ne(Gi,1,"wrapper-top-right s-z",null,zo,Vo),Mi=ne(ti,1,"wrapper-middle s-z",null,Mi,mo)},[()=>({hidden:!n(Eo)}),()=>({hidden:!e.showControls,fullscreen:Ce()}),()=>({hidden:!e.showControls&&!y(),fullscreen:Ce()}),()=>({hidden:!e.showControls||m()||e.endScreenShown&&e.showNextPrevButtons})]),$(je,Lt)};V(ln,je=>{ce()||je(qr)})}var _n=k(ln,2);{var bn=je=>{var Lt=Vw(),fi=le(Lt);let Uo;var Ao=C(fi);xp(Ao,{get muted(){return X()},click:Sr,get ref(){return ft.volume},set ref(Mo){ft.volume=Mo}}),S(fi);var Lo=k(fi,2);{var Gi=Mo=>{var fo=Mw(),tr=C(fo);let Wo=f(()=>!n(Ur));sd(tr,{get disabled(){return n(Ho)},get click(){return Ue},isMobile:!0,get isPlaying(){return n(Wo)},get ref(){return ft.playButton},set ref(Un){ft.playButton=Un}}),S(fo),$(Mo,fo)};V(Lo,Mo=>{n(Ur)&&Mo(Gi)})}var zo=k(Lo,2);let Fn;var Er=C(zo);Ac(Er,{get position(){return qe()},get duration(){return ve()}}),S(zo),N((Mo,fo)=>{Uo=ne(fi,1,"wrapper-top-right s-z",null,Uo,Mo),Fn=ne(zo,1,"wrapper-bottom ads-timeline-mobile s-z",null,Fn,fo)},[()=>({fullscreen:Ce()}),()=>({fullscreen:Ce()})]),$(je,Lt)};V(_n,je=>{ce()&&d()!=="inactive"&&je(bn)})}var Pi=k(_n,2);let Nn;var no=C(Pi);let Dn;var er=C(no),$n=C(er),Tr=C($n);{var it=je=>{Do(je,{get disabled(){return n(on)},get ref(){return ft.replayButton},set ref(Lt){ft.replayButton=Lt},children:(Lt,fi)=>{rd(Lt,{get disabled(){return n(on)},get click(){return Rt}})},$$slots:{default:!0}})};V(Tr,je=>{dt&&je(it)})}var di=k(Tr,2);{var Fo=je=>{Do(je,{get ref(){return ft.liveButton},set ref(Lt){ft.liveButton=Lt},children:(Lt,fi)=>{kc(Lt,{get isLiveActive(){return n(oo)},isMobile:!0,get ariaLabel(){return n(Po)}})},$$slots:{default:!0}})};V(di,je=>{!ce()&&P()&&je(Fo)})}var yn=k(di,2);{var ko=je=>{let Lt=f(()=>ce()?qe():We()),fi=f(()=>ce()?ve():U()),Uo=f(()=>!e.showControls);fc(je,{get showDuration(){return n(Kr)},get position(){return n(Lt)},get duration(){return n(fi)},isMobile:!0,get isHidden(){return n(Uo)},get ref(){return ft.time},set ref(Ao){ft.time=Ao}})};V(yn,je=>{n($r)&&je(ko)})}var dn=k(yn,2);let wo=f(()=>!n(yr));Do(dn,{className:"w-max",get disabled(){return n(wo)},get ref(){return ft.episodes},set ref(je){ft.episodes=je},children:(je,Lt)=>{var fi=Ve(),Uo=le(fi);{var Ao=Lo=>{var Gi=Rw(),zo=k(le(Gi),2);$c(zo,{get position(){return We()},get duration(){return U()},get timeCodes(){return wt}}),$(Lo,Gi)};V(Uo,Lo=>{n(yr)&&Lo(Ao)})}$(je,fi)},$$slots:{default:!0}}),S($n),ot($n,je=>si.bottomLeft=je,()=>si==null?void 0:si.bottomLeft);var So=k($n,2),Li=C(So);{var Qr=je=>{Do(je,{get ref(){return ft.volume},set ref(Lt){ft.volume=Lt},children:(Lt,fi)=>{xp(Lt,{get muted(){return n(Jn)},click:Sr})},$$slots:{default:!0}})};V(Li,je=>{n(br)&&je(Qr)})}var Bn=k(Li,2);{var Cs=je=>{Do(je,{get ref(){return ft.settings},set ref(Lt){ft.settings=Lt},children:(Lt,fi)=>{ed(Lt,{get ref$(){return Cr}})},$$slots:{default:!0}})};V(Bn,je=>{n(rn)&&je(Cs)})}var Qi=k(Bn,2);{var Ts=je=>{Do(je,{get ref(){return ft.fullscreen},set ref(Lt){ft.fullscreen=Lt},children:(Lt,fi)=>{gc(Lt,{get click(){return e.toggleFullscreen},get isFullscreen(){return Ce()}})},$$slots:{default:!0}})};V(Qi,je=>{n(Rn)&&je(Ts)})}S(So),ot(So,je=>si.bottomRight=je,()=>si==null?void 0:si.bottomRight),S(er),ot(er,je=>ue(je),()=>ue());var cs=k(er,2);let us=f(()=>!e.showControls);nl(cs,{get isHidden(){return n(us)},get isAds(){return ce()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return K()},get ref(){return ft.timeline},set ref(je){ft.timeline=je}}),S(no),ot(no,je=>si.bottom=je,()=>si==null?void 0:si.bottom),S(Pi),ot(Pi,je=>D(je),()=>D());var Ir=k(Pi,2);{var cn=je=>{Sc(je,{get ref(){return ft.interactiveTimeIndicator},set ref(Lt){ft.interactiveTimeIndicator=Lt}})};V(Ir,je=>{qi&&je(cn)})}N((je,Lt)=>{Nn=ne(Pi,1,"wrapper-bottom mobile s-z",null,Nn,je),Ye(Pi,`transform: ${e.showControls?"translateY(0)":"translateY(100%)"}`),Dn=ne(no,1,"controls-wrapper s-z",null,Dn,Lt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth}),()=>({fullscreen:Ce()})]),$(i,an),H(),o()}tt(["click"]);function Lc(i,e){B(e,!0);let[t,o]=De(),r=()=>w(I,"$isMobile",t),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,Iv.noop),_=h(e,"onDisabledSeekToInteractiveClick",3,Iv.noop),I=ye().ui.isMobile,T=q(!1);Ot(()=>{let E=setTimeout(()=>O(T,!0),0);return()=>clearTimeout(E)});var R=Ve(),A=le(R);{var P=E=>{var K=Ve(),F=le(K);{var z=se=>{Tv(se,{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 _()},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(Y){l(Y)},get playerControlsRef(){return d()},set playerControlsRef(Y){d(Y)}})},X=se=>{bv(se,{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(Y){l(Y)},get playerControlsRef(){return d()},set playerControlsRef(Y){d(Y)}})};V(F,se=>{r()?se(z):se(X,!1)})}$(E,K)};V(A,E=>{n(T)&&E(P)})}$(i,R),H(),o()}var Dw=Ee('<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 Mc(i,e){B(e,!0);let t=f(()=>e.reversed?"transform:scaleX(-1);transform-origin:50% 0;":""),o=f(()=>`${vn(e.size)}${n(t)}`);et(i,{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=Dw();$(r,l)},$$slots:{default:!0}}),H()}var Bw=Ee('<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 Ev(i,e){B(e,!0);let t=h(e,"reversed",3,!1),o=f(()=>t()?"transform:scaleX(-1);transform-origin: 50% 0;":void 0),r=f(()=>`seek-icon-${t()?"backward":"forward"}`);et(i,{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=Bw();$(a,d)},$$slots:{default:!0}}),H()}var Hw=L('<span class="hot-key-helpers-text s-1a"> </span>'),Fw=L('<div data-testid="hotkey-helper-icon" class="s-1a"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),Uw=L("<div><!></div>"),zw={hash:"s-1a",code:'.hot-key-helpers-container.s-1a{align-items:center;animation:s-1a-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-1a{left:calc(25% - 100px)}.hot-key-helpers-container--right.s-1a{left:calc(75% - 100px)}.hot-key-helpers-text.s-1a{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-1a{animation:s-1a-fadeOut ease var(--controls-transition-duration);height:0;visibility:hidden;width:0}@keyframes s-1a-fadeIn{0%{opacity:0}to{opacity:1}}@keyframes s-1a-fadeOut{0%{opacity:1}to{opacity:0}}'};function Pv(i,e){B(e,!0),G(i,zw);let[t,o]=De(),r=()=>w(e.data,"$data",t),a=ye(),{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=Uw();let y;var _=C(b);{var x=I=>{var T=Fw(),R=le(T),A=C(R);{var P=ue=>{let ce=f(()=>n(p)==="BACKWARD_SEEK");Ev(ue,{get reversed(){return n(ce)},shadow:!0})};V(A,ue=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(n(p))&&ue(P)})}var E=k(A,2);{var K=ue=>{Ws(ue,{get size(){return"48"},shadow:!0})};V(E,ue=>{n(p)==="PAUSE"&&!l.playbackStatusShow&&ue(K)})}var F=k(E,2);{var z=ue=>{Pn(ue,{get size(){return"48"},shadow:!0})};V(F,ue=>{n(p)==="PLAY"&&!l.playbackStatusShow&&ue(z)})}var X=k(F,2);{var se=ue=>{Cc(ue,{get size(){return"48"},shadow:!0})};V(X,ue=>{n(p)==="REPLAY"&&!l.playbackStatusShow&&ue(se)})}var Y=k(X,2);{var re=ue=>{va(ue,{get size(){return"48"},type:"off",shadow:!0})};V(Y,ue=>{n(p)==="SUBTITLES_OFF"&&ue(re)})}var Z=k(Y,2);{var Ce=ue=>{va(ue,{get size(){return"48"},shadow:!0})};V(Z,ue=>{n(p)==="SUBTITLES_ON"&&ue(Ce)})}var fe=k(Z,2);{var oe=ue=>{let ce=f(()=>n(p)==="RATE_DOWN");Mc(ue,{get size(){return"48"},get reversed(){return n(ce)},testId:"rate-change-icon",shadow:!0})};V(fe,ue=>{["RATE_DOWN","RATE_UP"].includes(n(p))&&ue(oe)})}var pe=k(fe,2);{var Se=ue=>{let ce=f(()=>n(p)==="EPISODE_PREV");ha(ue,{get size(){return"48"},get reversed(){return n(ce)},shadow:!0})};V(pe,ue=>{["EPISODE_PREV","EPISODE_NEXT"].includes(n(p))&&ue(Se)})}var de=k(pe,2);{var qe=ue=>{ga(ue,{get size(){return"48"},volume:0,shadow:!0})};V(de,ue=>{n(p)==="MUTE"&&ue(qe)})}var ve=k(de,2);{var We=ue=>{ga(ue,{get size(){return"48"},volume:1,shadow:!0})};V(ve,ue=>{n(p)==="VOLUME"&&ue(We)})}S(R);var U=k(R,2);{var D=ue=>{var ce=Hw(),_e=C(ce,!0);S(ce),N(()=>he(_e,n(v))),$(ue,ce)};V(U,ue=>{n(v)&&ue(D)})}N(()=>Oe(R,"data-type",n(p))),$(I,T)};V(_,I=>{!n(s)&&n(p)&&I(x)})}S(b),N(I=>y=ne(b,1,"hot-key-helpers-container s-1a",null,y,I),[()=>({hidden:n(s),"hot-key-helpers-container--left":n(u),"hot-key-helpers-container--right":n(m)})]),$(i,b),H(),o()}var Ww=(i,e,t,o,r,a)=>{if(e.has(i.code))switch(i.preventDefault(),i.stopPropagation(),i.code){case"ArrowUp":t();break;case"ArrowDown":o();break;case"ArrowLeft":r();break;case"ArrowRight":a();break}},Kw=(i,e,t)=>{e.has(i.code)&&(i.preventDefault(),i.stopPropagation(),t())},qw=L('<div tabindex="0" role="button"><div class="button-block s-m" aria-hidden="true"><div class="button-row s-m"><div class="button button-up s-m"><!></div> <div class="button button-right s-m"><!></div></div> <div class="button-row s-m"><div class="button button-left s-m"><!></div> <div class="button button-down s-m"><!></div></div></div></div>'),Qw={hash:"s-m",code:".immersive-controls.s-m{background-color:rgba(0,0,0,.56);border-radius:8px;display:flex;flex-direction:row;height:56px;left:10px;position:absolute;top:10px;transition-duration:var(--controls-transition-duration);transition-property:top,left;transition-timing-function:var(--controls-transition-fn);width:56px}.immersive-controls.m-shifted.s-m{left:20px;top:50px}.button-block.s-m{height:40px;margin:auto;transform:rotate(45deg);width:40px}.button-row.s-m{display:flex;flex-direction:row;position:relative}.button.s-m{cursor:pointer;height:20px;text-align:center;width:20px}.button.s-m svg{opacity:.7;transition:opacity .2s linear}.button.button-up.s-m svg{transform:rotate(-45deg) translate(-1px,-1px)}.button.button-right.s-m svg{transform:rotate(45deg) translate(1px,-1px)}.button.button-down.s-m svg{transform:rotate(135deg) translate(1px,-3px)}.button.button-left.s-m svg{transform:rotate(-135deg) translate(-1px,-3px)}.button.s-m:hover svg{opacity:1}"};function Vc(i,e){B(e,!0),G(i,Qw);let t=h(e,"isShifted",3,!1),o=ye(),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=j("aria_label_spherical_control");var p=qw();let v;p.__keydown=[Ww,r,a,l,s,d],p.__keyup=[Kw,r,u];var b=C(p),y=C(b),_=C(y);_.__mousedown=a,_.__mouseup=u;var x=C(_);Br(x,{direction:"up",useBtnColor:!0}),S(_);var I=k(_,2);I.__mousedown=d,I.__mouseup=u;var T=C(I);Br(T,{direction:"up",useBtnColor:!0}),S(I),S(y);var R=k(y,2),A=C(R);A.__mousedown=s,A.__mouseup=u;var P=C(A);Br(P,{direction:"up",useBtnColor:!0}),S(A);var E=k(A,2);E.__mousedown=l,E.__mouseup=u;var K=C(E);Br(K,{direction:"up",useBtnColor:!0}),S(E),S(R),S(b),S(p),N(F=>{v=ne(p,1,"immersive-controls s-m",null,v,F),Oe(p,"aria-label",m)},[()=>({"m-shifted":t()})]),pt("mouseleave",_,u),pt("mouseleave",I,u),pt("mouseleave",A,u),pt("mouseleave",E,u),$(i,p),H()}tt(["keydown","keyup","mousedown","mouseup"]);var qs=require("@vkontakte/videoplayer-shared/es2015");var t$=(i=1e3)=>{let e=null,t=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{t(),e=setTimeout(o,i)},clear:t}};var wp=class{constructor(){this.flickeringTimeout=t$(1e3);this.subscriptions=new qs.Subscription;this.isAuto=!1;this.isLive=!1;this.captions$=new qs.ValueSubject([]);this.captionsPrepared$=new qs.ValueSubject([])}subscribe(){return this.subscriptions.add(this.captions$.pipe((0,qs.filter)(()=>this.isEnabled()),(0,qs.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 t=[],o=e.length>1&&e[0].type!=="timestamp"&&e[1].type!=="timestamp";o&&t.push([{value:String(e[0].value),timeAppeared:null}]),t.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(t)}};var Gw=L('<span class="caption-line s-e"><span class="caption-segment s-e"> </span></span>'),Yw=L('<span class="caption-line s-e"><span class="caption-segment s-e"></span></span>'),jw=L('<span class="caption-line s-e"><span class="caption-segment s-e"> </span></span>'),Xw=L('<div><span class="caption s-e"><!></span></div>'),Zw=L("<div><!></div>"),Jw={hash:"s-e",code:".subtitles-container.s-e{height:100%;left:0;pointer-events:none;position:absolute;top:0;transition:transform var(--controls-transition-duration);width:100%}.subtitles-container.shifted.s-e{transform:translateY(calc(var(--controls-height)*-1))}.subtitles-container.preview-track-active.s-e{transform:translateY(calc(var(--preview-track-height)*-1))}.preview-track-active.s-e .subtitles-caption:where(.s-e){bottom:var(--preview-track-controls-top-offset)}.subtitles-caption.s-e{bottom:4%;display:flex;justify-content:center;left:4%;position:absolute;right:4%}.subtitles-caption.mobile.s-e{bottom:8%}.subtitles-container.auto.s-e .subtitles-caption:where(.s-e){left:var(--subtitles-caption-margin);right:var(--subtitles-caption-margin)}.caption.s-e{background:rgba(0,0,0,.4);border-radius:4px;display:block;overflow-wrap:normal;padding:4px 8px}.subtitles-container.auto.s-e .caption:where(.s-e){width:100%}.caption-line.s-e{display:block;text-align:center}.subtitles-container.auto.s-e .caption-line:where(.s-e){text-align:left}.caption-segment.s-e{color:var(--white);display:inline-block;font-size:13px;line-height:1.2;white-space:pre-wrap}"};function al(i,e){B(e,!0),G(i,Jw);let[t,o]=De(),r=()=>w(v,"$currentSubtitle$",t),a=()=>w(y,"$isLive$",t),l=()=>w(_,"$isFullscreen",t),d=()=>w(x,"$previewTrackActive",t),s=()=>w(b,"$isAutoSubtitleCaptionVisible$",t),u=h(e,"isMobile",3,!1),m=ye(),p=Nt(),v=m.state.currentSubtitle$,b=m.state.isAutoSubtitleCaptionVisible$,y=m.state.isLive$,_=m.ui.isFullscreen,x=m.ui.previewTrackActive,I=f(()=>!!r().isAuto),T=f(()=>!!a()),R=f(()=>e.playerSize.width*.02),A=f(()=>u()&&!l()||n(R)<=p.minSubtitlesFontSize?p.minSubtitlesFontSize:n(R)),P=q(null);Be(()=>{var Y,re,Z;(Y=n(P))==null||Y.setIsAuto(n(I)),(re=n(P))==null||re.setIsLive(n(T)),(Z=n(P))==null||Z.setCaptions(e.captions)});let E=q(ui([[]]));Ot(()=>{O(P,new wp().subscribe(),!0);let Y=n(P).captionsPrepared$.subscribe(re=>{O(E,re,!0)});return()=>{var re;(re=n(P))==null||re.destroy(),Y.unsubscribe()}}),Ot(()=>{if(n(I)){let Y=window.setTimeout(()=>{b.set(!1)},p.autoSubtitlesTimeout);return()=>{window.clearTimeout(Y)}}else b.set(!1)});let K=f(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var F=Zw();let z;var X=C(F);{var se=Y=>{var re=Xw();let Z;var Ce=C(re),fe=C(Ce);{var oe=Se=>{var de=Gw(),qe=C(de),ve=C(qe,!0);S(qe),S(de),N(We=>{var U;Ye(qe,`font-size: ${(U=n(A))!=null?U:""}px`),he(ve,We)},[()=>j("subtitles_auto_caption")]),$(Se,de)},pe=(Se,de)=>{{var qe=We=>{var U=Ve(),D=le(U);wi(D,17,()=>n(E),Ud,(ue,ce)=>{var _e=Yw(),ge=C(_e);wi(ge,21,()=>n(ce),({value:Ke,timeAppeared:te})=>te,(Ke,te)=>{let ze=()=>n(te).value,ee=()=>n(te).timeAppeared;var ke=Ve(),Ue=le(ke);{var Ie=Pe=>{var Ne=$s();N(()=>he(Ne,ze())),$(Pe,Ne)};V(Ue,Pe=>{(!ee()||ee()<=e.position)&&Pe(Ie)})}$(Ke,ke)}),S(ge),S(_e),N(()=>{var Ke;return Ye(ge,`font-size: ${(Ke=n(A))!=null?Ke:""}px`)}),$(ue,_e)}),$(We,U)},ve=We=>{var U=Ve(),D=le(U);wi(D,17,()=>e.captions,({value:ue})=>ue,(ue,ce)=>{let _e=()=>n(ce).value;var ge=jw(),Ke=C(ge),te=C(Ke,!0);S(Ke),S(ge),N(()=>{var ze;Ye(Ke,`font-size: ${(ze=n(A))!=null?ze:""}px`),he(te,_e())}),$(ue,ge)}),$(We,U)};V(Se,We=>{var U;n(I)&&((U=n(E))!=null&&U.length)?We(qe):We(ve,!1)},de)}};V(fe,Se=>{n(I)&&s()?Se(oe):Se(pe,!1)})}S(Ce),S(re),N(Se=>{var de;Z=ne(re,1,"subtitles-caption s-e",null,Z,Se),Ye(re,`--subtitles-caption-margin: ${(de=n(K))!=null?de:""}%`)},[()=>({mobile:u()})]),$(Y,re)};V(X,Y=>{var re;(e.captions.length||(re=n(E))!=null&&re.length)&&Y(se)})}S(F),N(Y=>z=ne(F,1,"subtitles-container s-e",null,z,Y),[()=>({shifted:e.shifted,"preview-track-active":d(),auto:n(I)&&!n(T)&&!s()})]),$(i,F),H(),o()}var i$=require("@vkontakte/videoplayer-core/es2015");var eS=L('<div class="text s-n"> </div>'),tS=L('<div><div class="icon_wrapper s-n"><!></div> <!></div>'),iS={hash:"s-n",code:".wrapper.s-n{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-n{background-size:cover}.icon_wrapper.s-n{align-items:center;display:flex;flex-direction:column;width:400px}.text.s-n{margin-top:20px}"};function Rc(i,e){B(e,!0),G(i,iS);let t=h(e,"chromecastDeviceName",3,"chromecastDeviceName"),o=Nt();var r=tS();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 i$.ChromecastState.CONNECTED}}),S(l);var s=k(l,2);{var u=m=>{var p=eS(),v=C(p);S(p),N(()=>{var b;return he(v,`Видео воспроизводится на ${(b=t())!=null?b:""}`)}),$(m,p)};V(s,m=>{t()&&m(u)})}S(r),N(m=>{a=ne(r,1,"wrapper s-n",null,a,m),Ye(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})]),$(i,r),H()}tt(["contextmenu","click","dblclick"]);var oS=Ee('<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 kv(i){et(i,{width:"200",height:"200",viewBox:"460 190 130 90",testId:"error-icon",children:(e,t)=>{var o=oS();$(e,o)},$$slots:{default:!0}})}var nS=L('<div class="container s-4"><!></div>'),rS={hash:"s-4",code:".container.s-4{align-items:center;background:#000;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}"};function ll(i){G(i,rS);var e=nS(),t=C(e);kv(t,{}),S(e),$(i,e)}var sS=L('<div class="playButton s-a" tabindex="0" role="button"><div class="playButtonBackground s-a"></div> <!></div>'),aS=L('<div data-testid="unstarted-thumb"><!></div>'),lS={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 dl(i,e){B(e,!0),G(i,lS);let t=h(e,"iconVisible",3,!0),o=ye(),r=Nt(),a=o.ui.startedByKeyboard$,l=j("tooltip_play"),d=b=>{var _;let y=b.code;["Enter","Space"].includes(y)&&(b.stopPropagation(),b.preventDefault(),a.set(!0),(_=e.startVideo)==null||_.call(e))},s=b=>{var y,_;b.stopPropagation(),(y=e.startVideo)==null||y.call(e),(_=e.onClick)==null||_.call(e,b)};var u=aS();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=sS();y.__keydown=d;var _=k(C(y),2);Pn(_,{get size(){return"48"}}),S(y),N(()=>Oe(y,"aria-label",l)),$(b,y)};V(p,b=>{t()&&b(v)})}return S(u),N(b=>{m=ne(u,1,"container s-a",null,m,b),Ye(u,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:r.features.previewNoEmptySpace})]),$(i,u),H({handlePressKey:d,handleClick:s})}tt(["click","contextmenu","keydown"]);var dS=L('<span class="text s-1c"> </span>'),cS=(i,e)=>{var t;return(t=e.onTitleClicked)==null?void 0:t.call(e)},uS=L('<a target="_blank" class="link s-1c"><!></a>'),pS=(i,e)=>e.onTitleClicked(),fS=L("<button><!></button>"),mS=L('<div data-testid="video_title"><!></div>'),vS={hash:"s-1c",code:".title.s-1c{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-1c,.title.s-1c{color:var(--white)}.link.s-1c{pointer-events:auto;text-decoration:none}.link.s-1c:hover{text-decoration:underline}.text.s-1c{pointer-events:auto}.size-sm.s-1c{font-size:14px;font-weight:500;line-height:18px}.hidden.s-1c{opacity:0;transform:translateY(calc(var(--controls-gradient-height)*-1));visibility:hidden}"};function Av(i,e){B(e,!0),G(i,vS);let t=b=>{var y=dS(),_=C(y,!0);S(y),ot(y,x=>l(x),()=>l()),N(()=>he(_,o())),pt("mouseenter",y,function(...x){var I;(I=e.onMouseEnter)==null||I.apply(this,x)}),pt("mouseleave",y,function(...x){var I;(I=e.onMouseLeave)==null||I.apply(this,x)}),$(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=q(void 0);Ot(()=>{var y;requestAnimationFrame(()=>{var _;(_=e.onVisibilityChanged)==null||_.call(e,!0)});function b(_){var x;_.propertyName==="transform"&&((x=e.onVisibilityChanged)==null||x.call(e,!r()))}return(y=n(d))==null||y.addEventListener("transitionend",b),()=>{var _;return(_=n(d))==null?void 0:_.removeEventListener("transitionend",b)}});var s=mS();let u;var m=C(s);{var p=b=>{var y=uS();y.__click=[cS,e];var _=C(y);t(_),S(y),N(()=>Oe(y,"href",e.titleLinkHref)),$(b,y)},v=(b,y)=>{{var _=I=>{var T=fS();T.__click=[pS,e];var R=C(T);t(R),S(T),$(I,T)},x=I=>{t(I)};V(b,I=>{e.onTitleClicked?I(_):I(x,!1)},y)}};V(m,b=>{e.titleLinkHref?b(p):b(v,!1)})}S(s),ot(s,b=>O(d,b),()=>n(d)),N(b=>u=ne(s,1,`title size-${a()}`,"s-1c",u,b),[()=>({hidden:r()})]),$(i,s),H()}tt(["click"]);var o$=require("@vkontakte/videoplayer-shared/es2015");var gS=L('<div class="timer__cell cell s-x"><span class="cell__value s-x"> </span> <span class="cell__unit s-x"> </span></div> <span class="timer__points s-x"> </span>',1),hS=L('<div class="timer__cell cell s-x"><span class="cell__value s-x"> </span> <span class="cell__unit s-x"> </span></div> <span class="timer__points s-x"> </span>',1),_S=L('<div class="timer__cell cell s-x"><span class="cell__value s-x"> </span> <span class="cell__unit s-x"> </span></div> <span class="timer__points s-x"> </span>',1),bS=L('<div class="timer__cell cell s-x"><span class="cell__value s-x"> </span> <span class="cell__unit s-x"> </span></div>'),$S=L("<div><!> <!> <!> <!></div>"),yS={hash:"s-x",code:".timer__container.s-x{align-items:flex-start;display:flex;justify-content:center}.cell.s-x{align-items:center;display:flex;flex-direction:column}.cell__value.s-x{font-size:48px;font-weight:600;line-height:1.2}.small.s-x .cell__value:where(.s-x){font-size:24px}.cell__unit.s-x{font-size:14px;font-weight:400;line-height:1.2}.small.s-x .cell__unit:where(.s-x){font-size:12px}.timer__points.s-x{display:inline-block;font-size:42px;font-weight:600;line-height:1.2;margin:0 8px}.small.s-x .timer__points:where(.s-x){font-size:20px}"};function Lv(i,e){B(e,!0),G(i,yS);let t=q(""),o=q(""),r=q(""),a=q(""),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,O(t,u(z),!0));let X=Math.floor(F/3600);O(o,u(X),!0);let se=Math.floor(F/60)%60;O(r,u(se),!0);let Y=F%60;O(a,u(Y),!0)},b=()=>{let F=Math.floor(Date.now()/1e3),z=e.startTime-F;v(z),z>=1?l=requestAnimationFrame(b):e.onTimerOver()};Ot(()=>{l=requestAnimationFrame(b)}),mn(()=>{cancelAnimationFrame(l)});var y=$S();let _;var x=C(y);{var I=F=>{var z=gS(),X=le(z);let se;var Y=C(X),re=C(Y,!0);S(Y);var Z=k(Y,2),Ce=C(Z,!0);S(Z),S(X);var fe=k(X,2),oe=C(fe,!0);S(fe),N((pe,Se,de)=>{se=Ye(X,"",se,{width:pe}),he(re,n(t)),he(Ce,Se),he(oe,de)},[()=>p(n(t)),()=>j("waiting_live_day_value"),()=>j("waiting_live_colon")]),$(F,z)};V(x,F=>{n(t)&&F(I)})}var T=k(x,2);{var R=F=>{var z=hS(),X=le(z);let se;var Y=C(X),re=C(Y,!0);S(Y);var Z=k(Y,2),Ce=C(Z,!0);S(Z),S(X);var fe=k(X,2),oe=C(fe,!0);S(fe),N((pe,Se,de)=>{se=Ye(X,"",se,{width:pe}),he(re,n(o)),he(Ce,Se),he(oe,de)},[()=>p(n(o)),()=>j("waiting_live_hour_value"),()=>j("waiting_live_colon")]),$(F,z)};V(T,F=>{n(o)&&F(R)})}var A=k(T,2);{var P=F=>{var z=_S(),X=le(z);let se;var Y=C(X),re=C(Y,!0);S(Y);var Z=k(Y,2),Ce=C(Z,!0);S(Z),S(X);var fe=k(X,2),oe=C(fe,!0);S(fe),N((pe,Se,de)=>{se=Ye(X,"",se,{width:pe}),he(re,n(r)),he(Ce,Se),he(oe,de)},[()=>p(n(r)),()=>j("waiting_live_minute_value"),()=>j("waiting_live_colon")]),$(F,z)};V(A,F=>{n(r)&&F(P)})}var E=k(A,2);{var K=F=>{var z=bS();let X;var se=C(z),Y=C(se,!0);S(se);var re=k(se,2),Z=C(re,!0);S(re),S(z),N((Ce,fe)=>{X=Ye(z,"",X,{width:Ce}),he(Y,n(a)),he(Z,fe)},[()=>p(n(a)),()=>j("waiting_live_second_value")]),$(F,z)};V(E,F=>{n(a)&&F(K)})}S(y),N(F=>_=ne(y,1,"timer__container s-x",null,_,F),[()=>({small:e.isSmallSize})]),$(i,y),H()}var xS=L('<div class="waiting s-q"><span> </span></div>'),wS=L('<div class="upcoming-timer timer s-q"><span> </span> <!></div>'),SS=L('<div class="waiting-container s-q"><!></div>'),CS={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 Oc(i,e){B(e,!0),G(i,CS);let t=h(e,"startTime",3,0),o=f(()=>t()<Math.floor(Date.now()/1e3)),r=q(void 0),a=q(void 0),l=0,d=q(void 0),s=q(void 0),u=f(()=>{var x,I;return((x=n(d))!=null?x:1/0)<=509||((I=n(s))!=null?I:1/0)<=320}),m=f(()=>{var x,I;return!n(u)&&(((x=n(d))!=null?x:1/0)<=699||((I=n(s))!=null?I:1/0)<=599)}),p=e.onUpcomingLiveViewStateChanged?(0,o$.throttleFn)(()=>{cancelAnimationFrame(l),l=requestAnimationFrame(()=>{let x={type:n(o)?"expired":"default",size:n(u)?"s":n(m)?"m":"l"},I=n(o)?n(r):n(a);e.onUpcomingLiveViewStateChanged(x,I)})},300):void 0;Be(()=>{n(s),n(d),n(o),p==null||p()}),mn(()=>{if(cancelAnimationFrame(l),p==null||p.cancel(),e.onUpcomingLiveViewStateChanged){let x={type:n(o)?"expired":"default",size:n(u)?"s":n(m)?"m":"l"};e.onUpcomingLiveViewStateChanged(x)}});var v=SS();v.__contextmenu=function(...x){var I;(I=e.onContextMenu)==null||I.apply(this,x)},v.__click=function(...x){var I;(I=e.onClick)==null||I.apply(this,x)};var b=C(v);{var y=x=>{var I=xS(),T=C(I);let R;var A=C(T,!0);S(T),S(I),ot(I,P=>O(r,P),()=>n(r)),N((P,E)=>{R=ne(T,1,"waiting__title s-q",null,R,P),he(A,E)},[()=>({medium:n(m),small:n(u)}),()=>j("waiting_live_upcoming_title")]),$(x,I)},_=x=>{var I=wS(),T=C(I);let R;var A=C(T,!0);S(T);var P=k(T,2);let E=f(()=>n(u)||n(m)),K=f(()=>t()||0);Lv(P,{get isSmallSize(){return n(E)},get startTime(){return n(K)},onTimerOver:()=>O(o,!0)}),S(I),ot(I,F=>O(a,F),()=>n(a)),N((F,z)=>{R=ne(T,1,"timer__title s-q",null,R,F),he(A,z)},[()=>({medium:n(m),small:n(u)}),()=>j("waiting_live_timer_title")]),$(x,I)};V(b,x=>{n(o)?x(y):x(_,!1)})}S(v),N(()=>Ye(v,`background-image: url(${e.thumbUrl})`)),In(v,"clientWidth",x=>O(d,x)),In(v,"clientHeight",x=>O(s,x)),$(i,v),H()}tt(["contextmenu","click"]);var TS=L('<div class="waiting-container s-s"><div class="waiting-caption s-s"><!> <p class="waiting-title s-s"> </p></div></div>'),IS={hash:"s-s",code:'.waiting-container.s-s{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-s,.waiting-container.s-s:before{height:100%;left:0;position:absolute;top:0;width:100%}.waiting-container.s-s:before{backdrop-filter:blur(10px);background-color:rgba(0,0,0,.4);content:""}.waiting-caption.s-s{align-items:center;display:flex;flex-direction:column;position:relative}.waiting-title.s-s{font-size:20px;font-weight:400;line-height:1.2;margin:0;padding:20px;text-align:center}'};function cl(i,e){B(e,!0),G(i,IS);let t=h(e,"thumbUrl",3,""),o={recover:j("waiting_live_recover_title"),record:j("waiting_record_title")},r=f(()=>o[e.kind]||"");var a=TS();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);Xa(d,{style:"position: static; transform: translate(0, 0)"});var s=k(d,2),u=C(s,!0);S(s),S(l),S(a),N(()=>{Ye(a,`background-image: url('${t()}')`),he(u,n(r))}),$(i,a),H()}tt(["contextmenu","click"]);var ES=Ee('<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 Mv(i){et(i,{width:"16",height:"16",testId:"check-mark-icon",children:(e,t)=>{var o=ES();$(e,o)},$$slots:{default:!0}})}var PS=L('<div class="select-icon s-1w"><!></div>'),kS={hash:"s-1w",code:".select-icon.s-1w{margin-right:auto;opacity:.9;padding-right:12px;position:relative;top:3px}"};function Nc(i){G(i,kS);var e=PS(),t=C(e);Mv(t,{}),S(e),$(i,e)}var AS=(i,e)=>{i.stopPropagation(),e.item.selectItem(e.item.value)},LS=(i,e)=>{jl(i,()=>e.item.selectItem(e.item.value))},MS=L("<p> </p>"),VS=L('<p class="sublabel s-1s"> </p>'),RS=L('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),OS={hash:"s-1s",code:".menu-item-value.s-1s{align-items:end;display:flex;flex-direction:column;min-width:0}.menu-item-value[data-selected=false].s-1s{--select-icon-width:16px;--icon-padding:12px;margin-left:calc(var(--icon-padding) + var(--select-icon-width))}.label.s-1s,.sublabel.s-1s{max-width:100%;overflow:hidden;text-overflow:ellipsis}.sublabel.s-1s{opacity:.5}"};function Vv(i,e){B(e,!0),G(i,OS);let t=h(e,"isMobile",3,!1);var o=RS();let r;o.__click=[AS,e],o.__keydown=[LS,e];var a=C(o);{var l=y=>{Nc(y,{})};V(a,y=>{e.item.selected&&y(l)})}var d=k(a,2);let s;var u=C(d);{var m=y=>{var _=Ve(),x=le(_);Ui(x,()=>e.item.valueComponent,(I,T)=>{T(I,os(()=>{var R;return(R=e.item.valueComponentParams)!=null?R:{}}))}),$(y,_)},p=y=>{var _=MS();let x;var I=C(_,!0);S(_),N(T=>{var R;x=ne(_,1,"label s-1s",null,x,T),he(I,(R=e.item.label)!=null?R:e.item.value)},[()=>({mobile:t()})]),$(y,_)};V(u,y=>{e.item.valueComponent?y(m):y(p,!1)})}var v=k(u,2);{var b=y=>{var _=VS(),x=C(_,!0);S(_),N(()=>he(x,e.item.sublabel)),$(y,_)};V(v,y=>{e.item.sublabel&&y(b)})}S(d),S(o),N((y,_,x)=>{var I;r=ne(o,1,"item",null,r,y),Oe(o,"data-value",(I=e.item.dataValue)!=null?I:e.item.value),Oe(o,"aria-label",_),Oe(o,"data-testid",e.item.dataTestid),s=ne(d,1,"menu-item-value s-1s",null,s,x),Oe(d,"data-selected",e.item.selected)},[()=>({mobile:t()}),()=>{var y,_;return(_=(y=e.item.ariaLabel)!=null?y:e.item.label)!=null?_:e.item.value.toString()},()=>({"submenu-value-mobile":t()})]),$(i,o),H()}tt(["click","keydown"]);var NS=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function Rv(i,e){B(e,!0);let t=h(e,"isMobile",3,!1),o=h(e,"refMenuItems",15),r=f(()=>()=>e.openSubMenuList(e.item.children)),a=f(()=>_=>tp(_,n(r)));var l=NS();let d;l.__click=function(..._){var x;(x=n(r))==null||x.apply(this,_)},l.__keydown=function(..._){var x;(x=n(a))==null||x.apply(this,_)};var s=C(l);{var u=_=>{Nc(_,{})};V(s,_=>{e.item.selected&&_(u)})}var m=k(s,2);let p;var v=C(m);{var b=_=>{var x=Ve();let I=f(()=>e.item.valueComponent);var T=le(x);Ui(T,()=>n(I),(R,A)=>{A(R,os(()=>{var P;return(P=e.item.valueComponentParams)!=null?P:{}}))}),$(_,x)},y=_=>{var x=$s();N(()=>he(x,e.item.label)),$(_,x)};V(v,_=>{e.item.valueComponent?_(b):_(y,!1)})}S(m),S(l),ot(l,_=>o(o()[e.item.id]=_,!0),()=>{var _;return(_=o())==null?void 0:_[e.item.id]}),N((_,x)=>{var I;d=ne(l,1,"item",null,d,_),Oe(l,"aria-label",(I=e.item.ariaLabel)!=null?I:e.item.label),Oe(l,"data-testid",e.item.id),p=ne(m,1,"menu-item-value",null,p,x)},[()=>({mobile:t(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":t()})]),$(i,l),H()}tt(["click","keydown"]);var as={"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 BS=(i,e)=>{gb(i,e.returnFromSubMenu,e.closeSettingsMenu)},HS=(i,e)=>{i.stopPropagation(),e.returnFromSubMenu()},FS=(i,e)=>{ac(i)&&(Hr(i),e.returnFromSubMenu())},US=L('<div><ul role="menu"><li role="menuitem" tabindex="0" data-testid="return-to-settings-menu"><!> <p class="title s-1k"> </p></li> <!></ul></div>'),zS={hash:"s-1k",code:".sub-menu.s-1k{--item-padding-vertical-mobile:16px;--item-padding-vertical:7px;--item-label-line-height:18px;--edge-item-padding-vertical-mobile:calc(6px + var(--item-padding-vertical-mobile));--edge-item-padding-vertical:calc(8px + var(--item-padding-vertical))}.sub-menu.s-1k .item.mobile{font-size:14px;line-height:var(--item-label-line-height);padding:var(--item-padding-vertical-mobile) 17px}.sub-menu.s-1k{padding-top:calc(var(--edge-item-padding-vertical) + var(--item-padding-vertical) + var(--item-label-line-height))}.sub-menu.mobile.s-1k{padding-top:calc(var(--edge-item-padding-vertical-mobile) + var(--item-padding-vertical-mobile) + var(--item-label-line-height) + 1px)}.sub-menu.s-1k .items:where(.s-1k) .item.header:where(.s-1k){border-bottom:var(--divider-border);display:flex;justify-content:space-between;left:0;min-width:max-content;position:absolute;right:0;top:0}.header.s-1k .title:where(.s-1k){margin-left:8px}.sub-menu.s-1k .item{padding:var(--item-padding-vertical) 12px;padding-right:22px}.items.s-1k .item:first-child:not(.mobile){padding-top:var(--edge-item-padding-vertical)}.items.s-1k .item:last-child:not(.mobile){padding-bottom:var(--edge-item-padding-vertical)}.items.s-1k .item.mobile:first-child{padding-top:var(--edge-item-padding-vertical-mobile)}.items.s-1k .item.mobile:last-child{padding-bottom:var(--edge-item-padding-vertical-mobile)}.sub-menu.s-1k .item.bottomBordered{border-bottom:var(--divider-border)}.sub-menu.s-1k .item .sublabel{font-size:12px;line-height:14px}.item.s-1k:not(.mobile) p:where(.s-1k),.sub-menu.s-1k .item:not(.mobile) .label{font-size:13px;line-height:var(--item-label-line-height)}"};function Nv(i,e){B(e,!0),G(i,zS);let[t,o]=De(),r=()=>w(p,"$isFullscreen",t),a=()=>w(v,"$playerSize",t),l=h(e,"isMobile",3,!1),d=h(e,"playerControlsHeight",3,0),s=h(e,"ariaLabelReturnFromSubMenu",19,()=>j("aria_label_submenu_back")),u=h(e,"listRef",15);Ot(()=>{let Y=e.items.findIndex(re=>re.selected);u().children[Y+1].focus()});let m=ye(),p=m.ui.isFullscreen,v=m.ui.playerSize,b=q(void 0),y=q(0),_=q(0),x=f(()=>l()&&r()?`max-height: ${Math.round(a().height*.6)}px`:l()?"":`max-height: ${a().height-32-n(_)-d()}px; overflow: auto;`),I=f(()=>Math.max(e.minWidth,n(y)));var T=US();let R;var A=C(T);let P;A.__keydown=[BS,e];var E=C(A);let K;E.__click=[HS,e],E.__keydown=[FS,e];var F=C(E);Br(F,{direction:"left"});var z=k(F,2),X=C(z,!0);S(z),S(E),ot(E,Y=>O(b,Y),()=>n(b));var se=k(E,2);wi(se,17,()=>e.items,Ud,(Y,re)=>{var Z=Ve(),Ce=le(Z);{var fe=pe=>{Vv(pe,{get item(){return n(re)},get isMobile(){return l()}})},oe=(pe,Se)=>{{var de=qe=>{Rv(qe,{get isMobile(){return l()},get item(){return n(re)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};V(pe,qe=>{n(re).type==="OPEN_SUB_MENU"&&qe(de)},Se)}};V(Ce,pe=>{n(re).type==="SELECT_VALUE"?pe(fe):pe(oe,!1)})}$(Y,Z)}),S(A),ot(A,Y=>u(Y),()=>u()),S(T),N((Y,re,Z)=>{R=ne(T,1,"sub-menu menu s-1k",null,R,Y),Oe(T,"data-testid",`${e.id}-sub-menu`),Ye(T,`min-width: ${n(I)}px`),P=ne(A,1,"items s-1k",null,P,re),Ye(A,n(x)),K=ne(E,1,"item header back s-1k",null,K,Z),Oe(E,"aria-label",s()),he(X,e.title)},[()=>({desktop:!l(),mobile:l()}),()=>({mobile:l()}),()=>({mobile:l()})]),In(E,"clientWidth",Y=>O(y,Y)),In(E,"clientHeight",Y=>O(_,Y)),$(i,T),H(),o()}tt(["keydown","click"]);var r$=require("@vkontakte/videoplayer-shared/es2015");var WS=(i,e)=>tp(i,e()),KS=(i,e)=>{i.stopPropagation(),e()()},qS=L('<div class="value s-1i"> </div>'),QS=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),GS={hash:"s-1i",code:".value.s-1i{opacity:.7;overflow:hidden;position:relative;text-overflow:ellipsis}"};function Dv(i,e){B(e,!0),G(i,GS);let t=h(e,"isMobile",3,!1),o=h(e,"onClick",3,r$.noop),r=h(e,"valueComponent",3,void 0),a=h(e,"iconProps",19,()=>({})),l=h(e,"ref",15);var d=QS();let s;d.__click=[KS,o],d.__keydown=[WS,o];var u=C(d),m=C(u);{var p=T=>{ol(T,{get icon(){return e.icon}})},v=T=>{var R=Ve();let A=f(()=>e.icon);var P=le(R);Ui(P,()=>n(A),(E,K)=>{K(E,os(a))}),$(T,R)};V(m,T=>{typeof e.icon=="string"?T(p):T(v,!1)})}S(u);var b=k(u,2),y=C(b,!0);S(b);var _=k(b,2);{var x=T=>{var R=Ve();let A=f(r);var P=le(R);Ui(P,()=>n(A),(E,K)=>{K(E,{})}),$(T,R)},I=T=>{var R=qS(),A=C(R,!0);S(R),N(()=>he(A,e.value)),$(T,R)};V(_,T=>{r()?T(x):T(I,!1)})}S(d),ot(d,T=>l(T),()=>l()),N(T=>{s=ne(d,1,"item",null,s,T),Oe(d,"aria-label",e.ariaLabel),Oe(d,"data-testid",e.id),he(y,e.label)},[()=>({mobile:t()})]),$(i,d),H()}tt(["click","keydown"]);var Bv=require("@vkontakte/videoplayer-shared/es2015");var YS=(i,e)=>{jl(i,()=>e())},jS=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),XS=L('<img class="icon" aria-hidden="true"/>'),ZS=L('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label s-1j"> </div></li>'),JS={hash:"s-1j",code:".label.s-1j{overflow:hidden;text-overflow:ellipsis}"};function Hv(i,e){B(e,!0),G(i,JS);let t=h(e,"isMobile",3,!1),o=h(e,"onClick",3,Bv.noop),r=h(e,"closeSettings",3,Bv.noop),a=q(!1),l=()=>{O(a,!0)},d=x=>{x==null||x.stopPropagation(),o()(),r()()};var s=ZS();let u;s.__click=d,s.__keydown=[YS,d];var m=C(s),p=C(m);{var v=x=>{var I=Ve(),T=le(I);{var R=P=>{var E=jS();$(P,E)},A=P=>{var E=XS();N(()=>Oe(E,"src",e.icon)),pt("error",E,l),Ha(E),$(P,E)};V(T,P=>{n(a)?P(R):P(A,!1)})}$(x,I)},b=x=>{var I=Ve();let T=f(()=>e.icon);var R=le(I);Ui(R,()=>n(T),(A,P)=>{P(A,{})}),$(x,I)};V(p,x=>{typeof e.icon=="string"?x(v):x(b,!1)})}S(m);var y=k(m,2),_=C(y,!0);S(y),S(s),N(x=>{var I;u=ne(s,1,"item",null,u,x),Oe(s,"aria-label",(I=e.ariaLabel)!=null?I:e.label),Oe(s,"data-testid",e.id),he(_,e.label)},[()=>({mobile:t()})]),$(i,s),H()}tt(["click","keydown"]);var s$=require("@vkontakte/videoplayer-shared/es2015");var eC=L('<div class="toggle_wrap s-1o"><div></div> <div class="toggle-label s-1o"></div></div>'),tC={hash:"s-1o",code:'.toggle_wrap.s-1o{cursor:pointer;font-size:12px;line-height:15px;min-height:15px;padding:0;user-select:none}.toggle.s-1o{background-color:var(--toggle-color-separator);border-radius:45px;cursor:pointer;float:right;height:9px;margin-top:3px;width:28px}.toggle.s-1o: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-1o:after{background-color:var(--toggle-color-on);left:13px}.toggle-label.s-1o{overflow:hidden}'};function Fv(i,e){G(i,tC);let t=h(e,"enabled",3,!1);var o=eC(),r=C(o);let a;ri(2),S(o),N(l=>a=ne(r,1,"toggle s-1o",null,a,l),[()=>({on:t()})]),$(i,o)}var iC=(i,e,t)=>{hb(i,e(),o=>t()(o))},oC=(i,e,t)=>{i.stopPropagation(),e()(!t())},nC=L('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),rC=L('<li role="menuitem" tabindex="0"><!></li>');function Uv(i,e){B(e,!0);let t=h(e,"isMobile",3,!1),o=h(e,"onClick",3,s$.noop),r=h(e,"enabled",3,!1),a=h(e,"tooltipText",3,void 0),l=h(e,"maxTooltipWidth",3,void 0);var d=rC();let s;d.__click=[oC,o,r],d.__keydown=[iC,r,o];var u=C(d);Ja(u,{get content(){return a()},get isMobile(){return t()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return l()},children:(m,p)=>{var v=nC();let b;var y=C(v),_=C(y);{var x=P=>{ol(P,{get icon(){return e.icon}})},I=P=>{var E=Ve();let K=f(()=>e.icon);var F=le(E);Ui(F,()=>n(K),(z,X)=>{X(z,{})}),$(P,E)};V(_,P=>{typeof e.icon=="string"?P(x):P(I,!1)})}S(y);var T=k(y,2),R=C(T,!0);S(T);var A=k(T,2);Fv(A,{get enabled(){return r()}}),S(v),N(P=>{b=ne(v,1,"switch-wrapper",null,b,P),he(R,e.label)},[()=>({mobile:t()})]),$(m,v)},$$slots:{default:!0}}),S(d),N(m=>{var p;s=ne(d,1,"item switch-item",null,s,m),Oe(d,"aria-label",(p=e.ariaLabel)!=null?p:e.label),Oe(d,"data-testid",e.id)},[()=>({mobile:t()})]),$(i,d),H()}tt(["click","keydown"]);var Bc=require("@vkontakte/videoplayer-shared/es2015");var a$=()=>{let i=q(ui([])),e=f(()=>(n(i).length?n(i).at(-1):null)||null);return{get current(){return n(e)},pushSubMenu:t=>{n(i).push(t)},popSubMenu:()=>{O(i,n(i).slice(0,-1),!0)},popAllSubMenus:()=>{O(i,[],!0)}}};var l$=require("@vkontakte/videoplayer-shared/es2015");var sC=L('<div class="quality-icon s-1n"><!></div>'),aC=L('<div class="quality-label s-1n"><span> </span> <!></div>'),lC={hash:"s-1n",code:".quality-label.s-1n{position:relative}.quality.s-1n{font-size:13px;line-height:18px}.quality.sub.s-1n{opacity:.7}.quality-icon.s-1n{display:flex;padding-left:2px;position:absolute;right:0;top:0;transform:translateX(100%)}.quality-icon.s-1n svg{color:var(--blue-light)}"};function ul(i,e){B(e,!0),G(i,lC);let t=h(e,"isSubCase",3,!1),o=f(()=>e.quality?(0,l$.getVideoQualityLabel)(e.quality):""),r=f(()=>ap(e.quality));var a=aC(),l=C(a);let d;var s=C(l,!0);S(l);var u=k(l,2);{var m=p=>{var v=sC();let b=f(()=>n(r));var y=C(v);Ui(y,()=>n(b),(_,x)=>{x(_,{})}),S(v),N(()=>Oe(v,"data-testid",`${n(o)}-icon`)),$(p,v)};V(u,p=>{n(r)&&!e.isMobile&&p(m)})}S(a),N(p=>{d=ne(l,1,"s-1n",null,d,p),he(s,e.label)},[()=>({sub:!t(),quality:!e.isMobile})]),$(i,a),H()}var p$=require("@vkontakte/videoplayer-shared/es2015");var zv=require("@vkontakte/videoplayer-core/es2015");var d$=({quality:i,availableQualities:e})=>{let t=e.find(o=>o.value===i);return t?t.displayValue:i},c$=({quality:i,availableQualities:e,isAutoQualityEnabled:t})=>{if(!i)return"...";let o=d$({quality:i,availableQualities:e});return t?i===zv.VideoQuality.INVARIANT?j("auto_quality_invariant"):j("auto_quality",{actual:o}):o},u$=({quality:i,availableQualities:e,prefix:t,onlyPrefix:o})=>i?o||i===zv.VideoQuality.INVARIANT?t:`${t}${d$({quality:i,availableQualities:e})}`:"...";var dC=L('<div class="menu-item-value-wrapper s-1q"><!></div>'),cC={hash:"s-1q",code:".menu-item-value-wrapper.s-1q{line-height:normal}"};function ld(i,e){B(e,!0),G(i,cC);let[t,o]=De(),r=()=>w(s,"$currentQuality$",t),a=()=>w(u,"$availableQualities$",t),l=()=>w(m,"$isMobile$",t),d=ye(),s=d.state.currentQuality$,u=d.state.availableQualities$,m=d.ui.isMobile,p=" · ",v=f(()=>e.prefix+(e.selected&&r()!==p$.VideoQuality.INVARIANT?p:"")),b=f(()=>u$({prefix:n(v),quality:r(),availableQualities:a(),onlyPrefix:!e.selected}));var y=dC(),_=C(y);let x=f(()=>e.selected?r():void 0);ul(_,{get quality(){return n(x)},get label(){return n(b)},get isMobile(){return l()},isSubCase:!0}),S(y),$(i,y),H(),o()}var uC=i=>{let e=i.join("|"),t="<(?<keyhtml>.*?)(?<propshtml> .*?)?>(?<childrenhtml>.*?)</\\k<keyhtml>>",o=`{(?<keyi18n>${e})}(?<childreni18n>.*?){/\\k<keyi18n>}`,r="<(?<keyhtmlself>.*?)(?<propshtmlself> .*?)?/?>",a=`{(?<keyi18nself>${e})}`;return new RegExp(`${t}|${o}|${r}|${a}`,"g")},pC={br:!0,span:!0},Wv=(i,e={})=>{var d,s,u,m,p,v,b;if(!i)return i;let t=Le(Le({},pC),e),o=Object.keys(t);if(!o.length)return i;let r=uC(o),a=[],l=0;for(let y of i.matchAll(r)){let _=y[0],x=((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(!t[x]){a.push(i.slice(l,I)),l=I+_.length;continue}let T=(p=y.groups)!=null&&p.childrenhtml?Wv(y.groups.childrenhtml,t):"",R=(v=y.groups)!=null&&v.childrenhtml?_.replace(new RegExp((b=y.groups)==null?void 0:b.childrenhtml),()=>T||""):_;a.push(i.slice(l,I),R),l=I+_.length}return l===0?i:(a.push(i.slice(l)),a.join(""))};function Dc(i,e){B(e,!1);let t=h(e,"message",8),o=Wv(t());en();var r=Ve(),a=le(r);{var l=d=>{var s=Ve(),u=le(s);zd(u,()=>o),$(d,s)};V(a,d=>{o&&d(l)})}$(i,r),H()}var fC=L('<p class="quality-applies sublabel s-1p"><!></p>'),mC={hash:"s-1p",code:".quality-applies.s-1p{color:hsla(0,0%,100%,.5);display:flex;justify-content:end;padding:3px 0}.quality-applies span{color:#70c1ff}"};function Kv(i,e){B(e,!1),G(i,mC),en();var t=fC(),o=C(t);let r=cr(()=>j("quality_applience",{action:`<span>${j("quality_applience_action")}</span>`}));Dc(o,{get message(){return n(r)}}),S(t),$(i,t),H()}var m$=({isAutoQualityEnabled:i,trafficSavingEnabled:e,highQualityEnabled:t})=>{let o=!i&&!e&&!t;return{id:"quality-other-settings",type:"OPEN_SUB_MENU",label:j("other_quality"),selected:o,valueComponent:ld,valueComponentParams:{prefix:j("other_quality"),selected:o},children:"quality-other-settings"}},qv=({appliesTo:i,labelWithQuality:e,selected:t},{selectQuality:o})=>({id:"quality-auto",type:"SELECT_VALUE",value:"auto",label:j("auto_quality_limit"),valueComponent:e?ld:void 0,valueComponentParams:{prefix:j("auto_quality_limit"),selected:t},selectItem:()=>o("auto",i),selected:t}),v$=()=>({id:"quality-appliance-settings",type:"OPEN_SUB_MENU",valueComponent:Kv,bottomBordered:!0,children:"quality-appliance"}),Qv=({labelWithQuality:i,appliesTo:e,selected:t},{toggleHighQuality:o})=>({id:"quality-high",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:t,label:j("high_quality"),valueComponent:i?ld:void 0,valueComponentParams:{prefix:j("high_quality"),selected:t},sublabel:j("high_quality_description")}),Gv=({labelWithQuality:i,appliesTo:e,selected:t},{toggleTrafficSaving:o})=>({id:"quality-traffic-saving",type:"SELECT_VALUE",value:"save_traffic",selectItem:()=>o(!0,e),selected:t,label:j("traffic_saving_quality"),valueComponent:i?ld:void 0,valueComponentParams:{prefix:j("traffic_saving_quality"),selected:t},sublabel:j("traffic_saving_quality_description")});var Sp=(i,e)=>String(e.findIndex(t=>t.id===i.id)+1),Cp=(i,e)=>{var l;if(!i)return"";let{language:t,label:o}=i,r;if(t==="und"?r=void 0:t&&(r=(l=yc(t))!=null?l:t),o&&t&&r){let d=e.filter(s=>s.label===o&&s.language===t);if(d.length===1)return j("audio_stream_display_language_label",{language:r,label:o});{let s=Sp(i,d);return j("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=Sp(i,d);return j("audio_stream_display_label_index",{label:o,index:s})}}if(t&&r){let d=e.filter(s=>s.language===t);if(d.length===1)return r;{let s=Sp(i,d);return j("audio_stream_display_language_index",{language:r,index:s})}}let a=Sp(i,e);return j("audio_stream_display_unknown",{index:a})};var vC={"quality-settings":i=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:t,trafficSavingEnabled:o,highQualityEnabled:r}=i,a=[];return t&&a.push({handler:qv,selected:e&&!o&&!r||!1}),a.push({handler:Gv,selected:o},{handler:Qv,selected:r}),{title:j("submenu_quality"),id:"quality-settings",items:[v$(i),...a.map(({handler:l,selected:d})=>l({labelWithQuality:!0,appliesTo:"to-video",selected:d},i)),m$(i)]}},"quality-other-settings":({closeSettingsMenu:i,selectQuality:e,availableQualities:t,isMobile:o})=>({id:"quality-other-settings",title:j("submenu_quality"),closeSettingsMenu:i,items:t.map(r=>({type:"SELECT_VALUE",value:r.value,valueComponent:ul,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":i=>{var t,o,r;let{closeSettingsMenu:e}=i;return{id:"quality-appliance",title:j("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:qv,selected:((t=Wu())==null?void 0:t.type)==="auto_quality"},{handler:Gv,selected:((o=Wu())==null?void 0:o.type)==="traffic_saving"},{handler:Qv,selected:((r=Wu())==null?void 0:r.type)==="high_quality"}].map(({handler:a,selected:l})=>a({labelWithQuality:!1,appliesTo:"as-default",selected:l},i))}},"audio-tracks":({closeSettingsMenu:i,availableAudioStreams:e,currentAudioStream:t,selectAudioLanguage:o})=>({id:"audio-tracks",title:j("submenu_audio_languages"),closeSettingsMenu:i,items:e.map(r=>({type:"SELECT_VALUE",value:r,dataValue:r.id,selectItem:o,selected:r.id===(t==null?void 0:t.id),label:Cp(r,e)}))}),"playback-rate":({closeSettingsMenu:i,availablePlaybackRates:e,selectPlaybackRate:t})=>({id:"playback-rate",title:j("submenu_playback_rate"),closeSettingsMenu:i,items:e.map(o=>({type:"SELECT_VALUE",value:o.value,selectItem:t,selected:o.selected,label:o.displayValue}))}),subtitles:({availableSubtitlesList:i,selectSubtitle:e})=>({id:"subtitles",minWidth:164,title:j("subtitles_caption"),items:i.map(t=>({type:"SELECT_VALUE",value:t.value,selectItem:()=>e(t),selected:t.selected,label:t.displayValue,dataTestid:t.value===An?"sub_off":void 0}))})},g$=({subMenuId:i,context:e})=>i?[vC[i](e)]:[];var gC=Ee('<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 Yv(i){et(i,{testId:"traffic-saving-icon",children:(e,t)=>{var o=gC();$(e,o)},$$slots:{default:!0}})}var hC=Ee('<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 jv(i){et(i,{width:"18",height:"15",children:(e,t)=>{var o=hC();$(e,o)},$$slots:{default:!0}})}var _C=Ee('<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 Xv(i){et(i,{testId:"play-speed-icon",children:(e,t)=>{var o=_C();$(e,o)},$$slots:{default:!0}})}var bC=Ee('<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 Zv(i){et(i,{testId:"download-icon",children:(e,t)=>{var o=bC();$(e,o)},$$slots:{default:!0}})}var $C=Ee('<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 Jv(i){et(i,{testId:"report-icon",children:(e,t)=>{var o=$C();$(e,o)},$$slots:{default:!0}})}var yC=Ee('<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 Tp(i){et(i,{children:(e,t)=>{var o=yC();$(e,o)},$$slots:{default:!0}})}var xC=Ee('<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 eg(i){et(i,{testId:"info-icon",children:(e,t)=>{var o=xC();$(e,o)},$$slots:{default:!0}})}var wC=L('<div class="menu-item-value-wrapper s-1v"><!></div>'),SC={hash:"s-1v",code:".menu-item-value-wrapper.s-1v{line-height:normal}"};function tg(i,e){B(e,!0),G(i,SC);let[t,o]=De(),r=()=>w(u,"$currentQuality$",t),a=()=>w(m,"$availableQualities$",t),l=()=>w(p,"$isAutoQualityEnabled$",t),d=()=>w(v,"$isMobile$",t),s=ye(),u=s.state.currentQuality$,m=s.state.availableQualities$,p=s.state.isAutoQualityEnabled$,v=s.ui.isMobile,b=f(()=>c$({quality:r(),availableQualities:a(),isAutoQualityEnabled:l()}));var y=wC(),_=C(y);ul(_,{get quality(){return r()},get label(){return n(b)},get isMobile(){return d()}}),S(y),$(i,y),H(),o()}var TC={"quality-settings":({isAutoQualityEnabled:i,currentQuality:e,qualityDetailsSubMenuEnabled:t})=>{let o=(i?j("auto_quality_option"):e)||"";return{id:"quality-settings",type:"OPEN_SUB_MENU",ariaLabel:j("aria_label_menu_quality",{actual:o}),icon:pc,label:j("menu_quality"),value:e,valueComponent:tg,weight:as["quality-settings"],children:t?"quality-settings":"quality-other-settings"}},"traffic-saving-switch":({trafficSavingEnabled:i,toggleTrafficSaving:e})=>({id:"traffic-saving-switch",weight:as["traffic-saving-settings"],type:"SWITCH",onClick:t=>e(t,"to-video"),ariaLabel:j("aria_label_submenu_traffic_saving"),icon:Yv,label:j("menu_traffic_saving"),enabled:i,tooltipText:j("traffic_saving_helper_text"),maxTooltipWidth:175}),"audio-tracks-settings":({currentAudioStream:i,availableAudioStreams:e})=>{let t=Cp(i,e);return{id:"audio-tracks-settings",weight:as["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:j("aria_label_menu_audio_languages",{actual:t}),icon:jv,label:j("menu_audio_languages"),value:t,children:"audio-tracks"}},"playback-rate-settings":({availablePlaybackRates:i,currentPlaybackRate:e})=>{var o;let t=((o=i.find(r=>r.value===e))==null?void 0:o.displayValue)||"";return{id:"playback-rate-settings",weight:as["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:j("aria_label_menu_rate",{actual:t}),icon:Xv,label:j("menu_playback_rate"),value:`${e}x`,children:"playback-rate"}},"subtitles-settings":({currentSubtitle:i})=>({id:"subtitles-settings",weight:as["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:j("aria_label_menu_subtitle",{actual:i.displayValue}),icon:va,iconProps:{type:"outline"},label:j("subtitles_caption"),value:i.displayValue,children:"subtitles"}),download:({onDownloadClick:i})=>({id:"download",weight:as.download,type:"CLICK",onClick:i,label:j("download_video_caption"),ariaLabel:j("aria_label_menu_download"),icon:Zv}),"show-support":({onReportProblemClick:i})=>({id:"show-support",weight:as.report,type:"CLICK",onClick:i,label:j("menu_report"),ariaLabel:`${j("menu_report")}. ${j("aria_label_new_tab_alert")}`,icon:Jv,isHiddenFor:["desktop"]}),"copy-data":({onCopyDataClick:i})=>({id:"copy-data",weight:as["copy-data"],type:"CLICK",onClick:i,label:j("menu_copy_debug"),ariaLabel:j("menu_copy_debug"),icon:Tp,isHiddenFor:["desktop"]}),"save-trace-info":({onSaveTraceDataClick:i})=>({id:"save-trace-info",weight:as["save-trace-info"],type:"CLICK",onClick:i,label:j("menu_save_debug"),ariaLabel:j("menu_save_debug"),icon:Tp,isHiddenFor:["desktop"]}),"debug-info":({toggleShowDebugInfo:i})=>({id:"debug-info",weight:as["debug-info"],type:"CLICK",onClick:i,ariaLabel:j("aria_label_menu_debug_overlay"),label:j("menu_debug_overlay"),icon:eg,isHiddenFor:["desktop"]})},h$=({items:i,context:e,additionalSettingsMenuItems:t})=>{let{isMobile:o}=e;return[...i.map(r=>TC[r](e)),...t.map(r=>Gt(Le({},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(Ya)};var EC=(i,e)=>{ep(i,e)},PC=L('<div><div> </div> <div class="close s-r" data-testid="close-settings-menu"></div></div>'),kC=L('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),AC=L("<div><!> <!></div>"),LC={hash:"s-r",code:'.settings-menu-container.mobile.s-r{width:100%;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.settings-menu-container.s-r ul{list-style-type:none;margin:0;padding:0}.settings-menu-container.s-r .menu{background-color:var(--settings-bg);border-radius:var(--settings-radius);overflow:hidden;transition:opacity .2s,visibility .2s}.settings-menu-container.s-r .menu .item:first-child:not(.mobile){border-top-left-radius:var(--settings-radius);border-top-right-radius:var(--settings-radius)}.settings-menu-container.s-r .menu .item:last-child{border-bottom-left-radius:var(--settings-radius);border-bottom-right-radius:var(--settings-radius)}.settings-menu-container.s-r .settings-menu .item:first-child:not(.mobile){padding-top:6px}.settings-menu-container.s-r .settings-menu .item:last-child:not(.mobile){padding-bottom:6px}.settings-menu-container.s-r .menu.desktop{bottom:0;max-width:100%;position:absolute;right:0}.settings-menu.s-r{line-height:40px}.settings-menu.desktop.s-r{min-width:300px}.settings-menu-container.s-r .menu.mobile{background:var(--mobile-settings-bg);font-size:15px;line-height:50px;width:100%}.settings-menu-container.s-r .menu.mobile.hidden{display:none}.settings-menu-container.s-r .menu .item:not(.switch-item),.settings-menu-container.s-r .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-r .menu .item:hover{background-color:var(--settings-item-bg-hover)}.settings-menu-container.s-r .menu .item.mobile:hover{background:var(--mobile-settings-bg)}.settings-menu.s-r .item:not(.switch-item),.settings-menu.s-r .switch-wrapper{padding:0 32px 0 18px}.settings-menu.s-r .item.mobile:not(.switch-item),.settings-menu.s-r .switch-wrapper.mobile{padding:0 14px}.settings-menu.s-r .icon-wrapper{align-items:center;display:flex;height:24px;justify-content:center;margin-right:16px;min-width:24px;width:24px}.settings-menu.s-r .label{flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis}.settings-menu.s-r .item.header.mobile:where(.s-r){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-r .items::-webkit-scrollbar{width:8px}.settings-menu-container.s-r .items::-webkit-scrollbar-track{background-color:#3a3a3a;border-radius:4px;box-shadow:none}.settings-menu-container.s-r .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-r .items::-webkit-scrollbar-thumb:hover{background-color:#777}.settings-menu-container.s-r .items.mobile{max-height:160px;overflow-x:hidden;overflow-y:auto;text-align:left}.close.s-r{height:12px;margin-right:-12px;padding:12px;position:relative;width:12px}.close.s-r:after,.close.s-r:before{background-color:var(--white);content:" ";height:12px;left:18px;position:absolute;width:2px}.close.s-r:before{transform:rotate(45deg)}.close.s-r:after{transform:rotate(-45deg)}'};function Hc(i,e){B(e,!0),G(i,LC);let[t,o]=De(),r=()=>w(ge,"$settingsMenuVisible",t),a=()=>w(Ke,"$settingsMenuOpenedByKeyboard",t),l=()=>w(Ne,"$debugPanelVisible",t),d=()=>w(ze,"$isMobile",t),s=()=>w(Pe,"$playerSize",t),u=()=>w(_e,"$hasMpegSources$",t),m=()=>w(ee,"$mobileNotReportControlHidden$",t),p=()=>w(de,"$autoQualityLimitingAvailable$",t),v=()=>w(ue,"$availableSubtitlesList$",t),b=()=>w(ke,"$isLiveWithPlaybackSpeed",t),y=()=>w(oe,"$availableAudioStreams$",t),_=()=>w(U,"$availablePlaybackRates$",t),x=()=>w(fe,"$currentAudioStream$",t),I=()=>w(We,"$currentPlaybackRate$",t),T=()=>w(Ue,"$trafficSavingEnabled",t),R=()=>w(pe,"$currentQuality$",t),A=()=>w(qe,"$isAutoQualityEnabled$",t),P=()=>w(D,"$currentSubtitle$",t),E=()=>w(It,"$additionalSettingsMenuItems$",t),K=()=>w(ve,"$isAutoQualityAvailable$",t),F=()=>w(Se,"$availableQualities$",t),z=()=>w(Ie,"$highQualityEnabled",t),X=h(e,"ref",15,void 0),se=h(e,"playerControlsHeight",3,0),Y=ui({}),re=ui({}),Z=ye(),Ce=Nt(),fe=Z.state.audioStream$,oe=Z.state.availableAudioStreams$,pe=Z.state.currentQuality$,Se=Z.state.availableQualities$,de=Z.state.autoQualityLimitingAvailable$,qe=Z.state.isAutoQualityEnabled$,ve=Z.state.isAutoQualityAvailable$,We=Z.state.currentPlaybackRate$,U=Z.state.availablePlaybackRates$,D=Z.state.currentSubtitle$,ue=Z.state.availableSubtitlesList$,ce=Z.state.canDownload,_e=Z.state.hasMpegSources$,ge=Z.ui.settingsMenu.visible$,Ke=Z.ui.settingsMenu.openedByBtnKeyboard$,te=Z.ui.settingsMenu.ref$,ze=Z.ui.isMobile,ee=Z.ui.mobileNotReportControlHidden$,ke=Z.state.canChangePlaybackSpeed$,Ue=Z.state.trafficSavingEnabled$,Ie=Z.state.highQualityEnabled$,Pe=Z.ui.playerSize,Ne=Z.ui.debugPanelVisible,_t=Z.state.isInteractiveTime$,It=Z.ui.additionalSettingsMenuItems$,Pt=Z.ui.t,at=Z.actions.internal.downloadVideo,Et=Z.actions.internal.closeSettingsMenu,ei=Z.actions.internal.openSettingsSubMenu,Yt=Z.actions.internal.closeSettingsSubMenu,Dt=q(!1),jt=q(void 0),Q=a$();Be(()=>{!r()&&Q.current&&(Yt(re[Q.current]),Q.popAllSubMenus())}),Be(()=>{r()||O(jt,void 0)}),Be(()=>{!Q.current&&n(jt)&&vb(Y,n(jt))}),Be(()=>{X()&&te.set(X())});function Ae(bt){return gt(this,null,function*(){var W;Q.pushSubMenu(bt),yield $o(),ei(bt,re[bt]);let Vt=(W=X())==null?void 0:W.firstElementChild;Vt&&hm(Vt)})}function Re(bt){var Vt;bt==null||bt.stopPropagation(),a()||(Vt=e.returnFocus)==null||Vt.call(e),Et(),O(Dt,!1)}function we(bt,Vt){Z.actions.internal.setQuality(bt,{appliesTo:Vt,byUser:!0}),Re()}function Fe(bt){Z.actions.internal.setAudioStream(bt),Re()}function xe(bt,Vt){Z.actions.internal.setTrafficSavingEnabled(bt,Vt),Ce.features.qualityDetailsSubMenuEnabled&&Re()}function kt(bt,Vt){Z.actions.internal.setHighQualityEnabled(bt,Vt),Re()}function be(bt){Z.actions.internal.setPlaybackRate(bt),Re()}function He(bt){Z.actions.internal.setSubtitle(bt),Re()}function Qe(){at()}function st(){(0,Bc.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),Z.actions.internal.reportProblem(),Z.actions.internal.pause()}function Jt(){Gl(Z.actions.internal.getDebugTextData())}let Kt=()=>{let bt=Z.actions.internal.getTraceTextData(),Vt=new Blob([...bt],{type:"application/json"}),W=window.URL.createObjectURL(Vt);Ka(W,"vk_player_trace_info","json")};function pi(){Ne.set(!l())}function _i(){O(Dt,!0)}function mi(){O(Dt,!1)}function uo(){return d()?`max-height: ${Math.round(s().height*.6)}px`:`max-height: ${s().height-32-se()}px; overflow: auto;`}let yo=f(()=>ce&&u()&&!m()),Io=f(()=>Ce.features.trafficSaving&&!m()&&p()&&!Ce.features.qualityDetailsSubMenuEnabled),wt=f(()=>v().length>0&&!m()),Ht=f(()=>!!b()&&!m()),$i=f(()=>Ce.features.audioLanguages&&y().length>=2&&!m()),St=f(()=>!m());Ot(()=>_t.subscribe(bt=>{bt&&!d()&&!n(Dt)&&!a()&&Re()}));let Ct=f(()=>{let bt=[n(St)&&"quality-settings",n($i)&&"audio-tracks-settings",n(Ht)&&"playback-rate-settings",n(wt)&&"subtitles-settings",n(Io)&&"traffic-saving-switch",n(yo)&&"download",Ce.showSupport&&"show-support","copy-data",Ce.features.saveTraceInfoToFile&&"save-trace-info","debug-info"].filter(Vt=>!!Vt);return h$({items:bt,context:{qualityDetailsSubMenuEnabled:Ce.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:_(),currentAudioStream:x(),availableAudioStreams:y(),currentPlaybackRate:I(),selectPlaybackRate:be,trafficSavingEnabled:T(),toggleTrafficSaving:xe,currentQuality:R()||Bc.VideoQuality.INVARIANT,isAutoQualityEnabled:A()||!1,currentSubtitle:P(),isMobile:d(),onDownloadClick:Qe,onCopyDataClick:Jt,onReportProblemClick:st,onSaveTraceDataClick:Kt,toggleShowDebugInfo:pi},additionalSettingsMenuItems:E()})}),Si=f(()=>g$({subMenuId:Q.current,context:{availablePlaybackRates:_(),selectPlaybackRate:be,trafficSavingEnabled:T(),toggleTrafficSaving:xe,currentQuality:R()||Bc.VideoQuality.INVARIANT,isAutoQualityEnabled:A()||!1,isAutoQualityAvailable:K()||!1,availableQualities:F(),highQualityEnabled:z(),toggleHighQuality:kt,availableAudioStreams:y(),availableSubtitlesList:v(),closeSettingsMenu:Et,currentAudioStream:x(),isMobile:d(),selectAudioLanguage:Fe,selectQuality:we,selectSubtitle:He}}));var qt=AC();let Ni;var Ft=C(qt);{var vt=bt=>{var Vt=kC();let W;Vt.__keydown=[EC,Et];var Rt=C(Vt);{var dt=xt=>{var lt=PC();let qi;var Ai=C(lt),Ln=C(Ai,!0);S(Ai);var Mn=k(Ai,2);Mn.__click=Re,S(lt),N((Ei,po)=>{qi=ne(lt,1,"item header s-r",null,qi,Ei),he(Ln,po)},[()=>({mobile:d()}),()=>Pt("submenu_settings")]),$(xt,lt)};V(Rt,xt=>{d()&&xt(dt)})}var xi=k(Rt,2);let ii;wi(xi,21,()=>n(Ct),xt=>xt.id,(xt,lt)=>{var qi=Ve(),Ai=le(qi);{var Ln=Ei=>{Dv(Ei,{get isMobile(){return d()},get id(){return n(lt).id},get icon(){return n(lt).icon},get iconProps(){return n(lt).iconProps},get label(){return n(lt).label},get ariaLabel(){return n(lt).ariaLabel},get value(){return n(lt).value},get valueComponent(){return n(lt).valueComponent},onClick:()=>{Ae(n(lt).children),O(jt,n(lt).id,!0)},get ref(){return Y[n(lt).id]},set ref(po){Y[n(lt).id]=po}})},Mn=(Ei,po)=>{{var mr=Ci=>{let Ho=f(()=>`${n(lt).id}-menu-item`);Hv(Ci,{get isMobile(){return d()},get id(){return n(Ho)},get onClick(){return n(lt).onClick},get icon(){return n(lt).icon},get label(){return n(lt).label},get ariaLabel(){return n(lt).ariaLabel},closeSettings:Re})},io=(Ci,Ho)=>{{var on=xo=>{let hn=f(()=>`${n(lt).id}-menu-item`);Uv(xo,{get isMobile(){return d()},get id(){return n(hn)},get onClick(){return n(lt).onClick},get icon(){return n(lt).icon},get label(){return n(lt).label},get ariaLabel(){return n(lt).ariaLabel},get enabled(){return n(lt).enabled},get tooltipText(){return n(lt).tooltipText},get maxTooltipWidth(){return n(lt).maxTooltipWidth}})};V(Ci,xo=>{n(lt).type==="SWITCH"&&xo(on)},Ho)}};V(Ei,Ci=>{n(lt).type==="CLICK"?Ci(mr):Ci(io,!1)},po)}};V(Ai,Ei=>{n(lt).type==="OPEN_SUB_MENU"?Ei(Ln):Ei(Mn,!1)})}$(xt,qi)}),S(xi),ot(xi,xt=>X(xt),()=>X()),S(Vt),N((xt,lt,qi)=>{W=ne(Vt,1,"settings-menu menu s-r",null,W,xt),ii=ne(xi,1,"items",null,ii,lt),Ye(xi,qi)},[()=>({desktop:!d(),mobile:d(),hidden:!!Q.current}),()=>({mobile:d()}),uo]),pt("mouseenter",Vt,_i),pt("mouseleave",Vt,mi),$(bt,Vt)};V(Ft,bt=>{r()&&bt(vt)})}var Ki=k(Ft,2);wi(Ki,17,()=>n(Si),bt=>bt.id,(bt,Vt)=>{let W=f(()=>{var Rt;return(Rt=n(Vt).minWidth)!=null?Rt:137});Nv(bt,{get isMobile(){return d()},get playerControlsHeight(){return se()},get returnFromSubMenu(){return Q.popSubMenu},get id(){return n(Vt).id},get title(){return n(Vt).title},get closeSettingsMenu(){return Et},openSubMenuList:Ae,get items(){return n(Vt).items},get minWidth(){return n(W)},get refMenuItems(){return Y},get listRef(){return re[n(Vt).id]},set listRef(Rt){re[n(Vt).id]=Rt}})}),S(qt),N(bt=>Ni=ne(qt,1,"settings-menu-container s-r",null,Ni,bt),[()=>({mobile:d(),hidden:!r()})]),$(i,qt),H(),o()}tt(["keydown","click"]);var MC=L('<button class="btn s-10"> </button>'),VC={hash:"s-10",code:"button.btn.s-10{background:hsla(0,0%,100%,.1);border-radius:8px;font-size:14px;line-height:18px;margin-top:12px;padding:6px 12px 7px}"};function ig(i,e){G(i,VC);var t=MC();t.__click=function(...r){var a;(a=e.onClick)==null||a.apply(this,r)};var o=C(t,!0);S(t),N(()=>he(o,e.label)),$(i,t)}tt(["click"]);var RC=L('<div class="container s-p"><div class="notification s-p"><div><p class="description s-p"><!></p> <!></div> <!></div></div>'),OC={hash:"s-p",code:".container.s-p{display:flex;justify-content:center;left:0;pointer-events:none;position:absolute;right:0;top:20px;z-index:var(--controls-container-z-index)}.notification.s-p{background:var(--notification-bg);border-radius:var(--notification-radius);display:inline-flex;gap:10px;padding:9px 14px 10px 12px;pointer-events:auto}.description.s-p{font-size:13px;line-height:16px;margin:0;white-space:pre}"};function Fc(i,e){B(e,!0),G(i,OC);let t=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=Nt(),{ui:{t:r}}=ye(),a=r(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var l=RC(),d=C(l),s=C(d),u=C(s),m=C(u);Dc(m,{get message(){return a}}),S(u);var p=k(u,2);{var v=y=>{let _=f(()=>r("slow_video_notification_button"));ig(y,{get label(){return n(_)},get onClick(){return e.onSelectAutoQuality}})};V(p,y=>{o||y(v)})}S(s);var b=k(s,2);Bs(b,{get onClick(){return e.onClose}}),S(d),S(l),Ns(3,d,()=>_a,()=>({duration:t})),$(i,l),H()}var Uc=require("@vkontakte/videoplayer-shared/es2015");var pl="annotation",Ip=class{constructor(e){this.slots=new Map;this.disabledIds=new Set(e)}init(e,t){this.shadowRootContainer=e,this.store=t}add(e,t){var s;let{overlay:o,id:r,controlsBehaviour:a,hideAllControls:l}=t;if(this.disabledIds.has(r))return{success:!1,message:"current slotId is disabled via config"};let d=typeof e=="function"?e():e;return d.setAttribute("slot",pl),this.setupSlotStyles(d,o),this.shadowRootContainer.append(d),this.slots.set(r,{rootElement:d,options:t}),a&&this.runHidingControlsWhenIntersected(r,a),l&&((s=this.store)==null||s.ui.isControlsAvailable.set(!1)),{success:!0}}setupSlotStyles(e,t){switch(e.style.position="absolute",t){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 gt(this,arguments,function*(e,{observedSlotElementId:t,controlsToObserve:o}){var v;let l=this.slots.get(e);if(!l)return;let d=yield this.findSlotElement(l.rootElement,t,e),{controls:s,hiddenControls:u}=((v=this.store)==null?void 0:v.ui)||{},m=new MutationObserver(b=>b.forEach(()=>{let y=Us(d,this.shadowRootContainer);o.forEach(_=>{let x=s==null?void 0:s[_],I=x?$e(x):null,T=u==null?void 0:u[_];I&&(T==null||T.set((0,Uc.isIntersecting)(I,y)))})}));m.observe(d,{childList:!0,subtree:!0}),l.observer=m;let p=new Uc.Subscription;o.forEach(b=>{s&&p.add(s[b].subscribe(y=>{let _=u==null?void 0:u[b];y&&y.isDisplayed?_==null||_.set((0,Uc.isIntersecting)(y,Us(d,this.shadowRootContainer))):_==null||_.set(!1)}))}),l.subs=p})}findSlotElement(e,t,o){return gt(this,null,function*(){return new Promise(r=>{let a=null,l=new MutationObserver(()=>{if(a=e.querySelector(`#${t}`),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 t=this.slots.get(e);if(!t)return;let{rootElement:o,observer:r,observerForFindingSlotElement:a,subs:l,options:{controlsBehaviour:d,hideAllControls:s}}=t;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 NC=L('<div class="container s-5"><!></div>'),DC={hash:"s-5",code:".container.s-5{align-items:center;animation-fill-mode:forwards;animation-name:s-5-videoPlayerStatusIconPopup;background-color:#00000073;border-radius:100%;display:flex;height:64px;justify-content:center;width:64px;will-change:opacity,scale}@keyframes s-5-videoPlayerStatusIconPopup{0%{opacity:0;scale:.6}10%{animation-timing-function:ease-in;opacity:1;scale:1}75%{opacity:1;scale:1}90%{animation-timing-function:ease-out;opacity:0;scale:.4}to{opacity:0;scale:0}}"};function zc(i,e){B(e,!0),G(i,DC);let t=h(e,"reversed",3,!1);var o=Ve(),r=le(o);Vs(r,()=>e.Icon,a=>{var l=NC(),d=C(l);Ui(d,()=>e.Icon,(s,u)=>{u(s,{get size(){return"48"},get reversed(){return t()}})}),S(l),N(()=>Ye(l,`animation-duration: ${e.duration}ms`)),$(a,l)}),$(i,o),H()}var og=require("@vkontakte/videoplayer-core/es2015"),BC=L('<div class="container s-1d"><!></div>'),HC={hash:"s-1d",code:".container.s-1d{align-items:center;display:flex;height:100%;justify-content:center;pointer-events:none;position:absolute;width:100%}"};function ng(i,e){B(e,!0),G(i,HC);let[t,o]=De(),r=()=>w(s,"$playbackState$",t),a=()=>w(m,"$previewTrackActive",t),l=()=>w(p,"$previewTrackDragInProgress",t),d=()=>w(u,"$isPlaying$",t),{state:{playbackState$:s,isPlaying$:u},ui:{previewTrackActive:m,previewTrackDragInProgress:p}}=ye(),{features:{playbackStatusShow:v},playbackStatusAnimationDuration:b}=Nt(),y=0,_=q(null),x=q(!1);Be(()=>{r()===og.PlaybackState.PLAYING?O(_,Pn,!0):r()===og.PlaybackState.PAUSED?O(_,Ws,!0):O(_,null)}),Be(()=>{if(!(!v||a()||l()))return y=window.setTimeout(()=>{y=0,O(_,null)},b),()=>{y&&(window.clearTimeout(y),y=0)}}),Be(()=>{d()&&!n(x)&&(O(x,!0),O(_,null))});var I=Ve(),T=le(I);{var R=A=>{var P=BC(),E=C(P);zc(E,{get duration(){return b},get Icon(){return n(_)}}),S(P),$(A,P)};V(T,A=>{n(_)&&v&&A(R)})}$(i,I),H(),o()}var FC=L('<div><div data-testid="video-container"></div></div>'),UC={hash:"s-d",code:".video-container.s-d,.video-wrapper.s-d{height:100%;left:0;position:absolute;top:0;width:100%}.video-wrapper.s-d{background:var(--black)}.video-container.s-d,.video-wrapper.s-d{z-index:var(--video-container-z-index)}.video-container.s-d{transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.s-d{transition:none}.nocursor.s-d{cursor:none}"};function fl(i,e){B(e,!0),G(i,UC);let[t,o]=De(),r=()=>w(p,"$rotateAlpha",t),a=()=>w(v,"$playerSize",t),l=()=>w(m,"$playerPhase",t),d=()=>w(y,"$chromecastConnected$",t),s=()=>w(b,"$isPlaying$",t),u=h(e,"videoContainer",15),{playerPhase:m,ui:{rotateAlpha:p,playerSize:v},state:{isPlaying$:b,chromecastConnected$:y}}=ye(),{isSmoothVideoRotate:_}=Nt(),x=f(()=>u()&&r()%180?a().height/a().width:1);var I=FC();let T;I.__contextmenu=function(...P){var E;(E=e.onContextMenu)==null||E.apply(this,P)},I.__mousedown=function(...P){var E;(E=e.onMouseDown)==null||E.apply(this,P)},I.__mouseup=function(...P){var E;(E=e.onMouseUp)==null||E.apply(this,P)},I.__click=function(...P){var E;(E=e.onClick)==null||E.apply(this,P)},I.__dblclick=function(...P){var E;(E=e.onDblClick)==null||E.apply(this,P)};var R=C(I);let A;ot(R,P=>u(P),()=>u()),S(I),N((P,E)=>{T=ne(I,1,"video-wrapper s-d",null,T,P),A=ne(R,1,"video-container s-d",null,A,E),Ye(R,`transform: rotate(${r()}deg) scale(${n(x)})`),Oe(R,"data-is-playing",s())},[()=>({hidden:l()!=="video"||d(),nocursor:e.hideCursor}),()=>({"fast-rotate":!_})]),$(i,I),H(),o()}tt(["contextmenu","mousedown","mouseup","click","dblclick"]);var zC=L('<div><span class="text s-1f"> </span> <!></div>'),WC={hash:"s-1f",code:".root.s-1f{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-1f,.root.visible.s-1f{transform:translateX(-50%)}.root.visible.s-1f{opacity:1;visibility:visible}.text.s-1f{font-size:13px;font-weight:600;line-height:16px}"};function rg(i,e){B(e,!0),G(i,WC);let{ui:{t}}=ye();var o=zC();let r;var a=C(o),l=C(a,!0);S(a);var d=k(a,2);Mc(d,{get size(){return"16"},fill:"currentColor"}),S(o),N((s,u)=>{r=ne(o,1,"root s-1f",null,r,s),he(l,u)},[()=>({visible:e.isVisible}),()=>t("double_forward_label")]),$(i,o),H()}var KC=L('<div class="container s-1e" role="button" data-testid="preview-track-overlay"><div class="icon s-1e"><!></div></div>'),qC={hash:"s-1e",code:".container.s-1e{background-color:rgba(0,0,0,.48);cursor:pointer;height:100%;position:absolute;width:100%}.container.s-1e,.icon.s-1e{align-items:center;display:flex;justify-content:center}.icon.s-1e{background-color:#00000073;border-radius:100%;height:64px;transition:transform .2s;transition-timing-function:ease-out;width:64px;will-change:transform}.container.s-1e:hover .icon:where(.s-1e){transform:scale(1.15)}"};function sg(i,e){B(e,!1),G(i,qC);let o=ye().actions.internal.closePreviewTrack,r=200,a=u=>{u.stopPropagation(),o()};en();var l=KC();l.__click=a;var d=C(l),s=C(d);return Pn(s,{get size(){return"32"}}),S(d),S(l),Ns(3,l,()=>_a,()=>({duration:r})),$(i,l),Uf(e,"handleClick",a),H({handleClick:a})}tt(["click"]);var QC=(i,e,t,o,r,a)=>{if(i.stopPropagation(),e()||o()){a();return}},GC=L("<div><!></div>"),YC=L('<div class="spherical-video-icon s-9"><!></div>'),jC=L("<div><!></div>"),XC=L('<div class="settings-menu s-9"><!></div>'),ZC=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),JC=L("<!> <!> <!>",1),eT=L('<div class="blocked s-9"></div>'),tT=L('<div class="player-wrapper s-9"><!> <div class="overlay-container"></div></div> <!>',1),iT={hash:"s-9",code:".blocked.s-9,.player-wrapper.s-9{height:100%;position:absolute;width:100%}.blocked.s-9{z-index:var(--overlay-container-z-index)}.player-wrapper.s-9 .player-media{background:var(--black);height:100%;left:0;position:absolute;top:0;transition:transform .2s ease-in-out;width:100%}.spherical-video-icon.s-9{display:inline-block;left:calc(50% - 38px);position:absolute;top:calc(50% - 23px)}.ads-container.s-9{background:var(--black);height:100%;left:0;position:absolute;top:0;width:100%;z-index:var(--ads-container-z-index)}.settings-menu.s-9{bottom:57px;left:0;position:absolute;right:18px;transition:opacity .2s;z-index:var(--settings-menu-z-index)}"};function lg(i,e){B(e,!0),G(i,iT);let[t,o]=De(),r=()=>w(wr,"$notificationsToShow$",t),a=()=>w(Io,"$playerPhase",t),l=()=>w(vt,"$isLoaderVisible",t),d=()=>w(mi,"$adPlaybackState",t),s=()=>w(xi,"$crashed",t),u=()=>w(mr,"$isInteractiveTime$",t),m=()=>w(St,"$settingsMenuVisible",t),p=()=>w(io,"$isInteractiveExpectation$",t),v=()=>w($i,"$controlsVisible",t),b=()=>w(Ho,"$touched",t),y=()=>w($r,"$graphIsOpened$",t),_=()=>w(wt,"$isFullscreen",t),x=()=>w(Kr,"$autoplayNextEnabled$",t),I=()=>w(W,"$postrollPassed",t),T=()=>w(Ki,"$isEnded$",t),R=()=>w(qr,"$cursorInside",t),A=()=>w(Vn,"$isControlsAvailable",t),P=()=>w(hr,"$doubleForwardOn$",t),E=()=>w(Rn,"$fakeIsPlaying$",t),K=()=>w(sn,"$bottomNoSmooth",t),F=()=>w(zr,"$interactiveTimeIndicator",t),z=()=>w(Ai,"$playerSize",t),X=()=>w(Mn,"$is3DVideo",t),se=()=>w(ls,"$doubleForwardAvailable$",t),Y=()=>w(Ni,"$contextMenuVisible$",t),re=()=>w(_i,"$playbackState$",t),Z=()=>w(on,"$hotKeyMapData",t),Ce=()=>w(Si,"$scrubbingInProgress",t),fe=()=>w(qt,"$volumeChangingInProgress",t),oe=()=>w(bt,"$chromecastConnected$",t),pe=()=>w(an,"$controlsTimeoutActive",t),Se=()=>w(Ln,"$adsPlaybackState",t),de=()=>w(Ct,"$settingsMenuOpenedByKeyboard",t),qe=()=>w(Co,"$contextMenuOpenedByKeyboard$",t),ve=()=>w(Ko,"$contextMenuOpenedByHotKey$",t),We=()=>w(un,"$contextMenuButtonRef$",t),U=()=>w(or,"$contextMenuLastActiveElem$",t),D=()=>w(Ht,"$isFullscreenOpenedByKeyboard",t),ue=()=>w(hn,"$positionExact$",t),ce=()=>w(pi,"$language$",t),_e=()=>w(Gs,"$previewTrackActive$",t),ge=()=>w(Ei,"$icon3DVideoVisible",t),Ke=()=>w(Vt,"$chromecastDeviceName$",t),te=()=>w(lt,"$currentSubtitle$",t),ze=()=>w(qi,"$currentSubtitleCaptions$",t),ee=()=>w(uo,"$position$",t),ke=()=>w(yo,"$duration$",t),Ue=()=>w(Rt,"$isLive$",t),Ie=()=>w(dt,"$isPlaying$",t),Pe=()=>w(vr,"$contextMenuPosition$",t),Ne=()=>w(xo,"$showHotKeyMap",t),_t=()=>w(Ft,"$debugPanelVisible",t),It=()=>w(nn,"$userActionsDisabled$",t),Pt=h(e,"videoContainer",15),at=h(e,"adsSlotId",3,void 0),Et=h(e,"adsParams",3,void 0),ei=h(e,"adsAutoplayParam",3,void 0),Yt=h(e,"duration",3,void 0),Dt=h(e,"logoTargetUrl",3,""),jt=h(e,"showNextPrevButtons",3,!1),Q=h(e,"nextButtonActive",3,!1),Ae=h(e,"prevButtonActive",3,!1),Re=h(e,"endScreenVideoTitle",3,void 0),we=h(e,"endScreenVideoThumb",3,void 0),Fe=h(e,"isOneVideoPlaylist",3,!1),xe=h(e,"shadowRootContainer",3,void 0),kt=h(e,"outerContainerRef",3,void 0),be=h(e,"playerStarted",3,!1),He=h(e,"fullScreenTarget",3,void 0),Qe=h(e,"showMiniTimer",3,!1),st=h(e,"showEndScreen",3,!0),Jt=h(e,"keyboardControls",15),Kt=e.store.getLogger().createComponentLog("Root component"),pi=e.store.interfaceLanguage$,_i=e.store.state.playbackState$,mi=e.store.ads.playbackState,uo=e.store.state.positionWithScrubbing$,yo=e.store.state.duration$,Io=e.store.playerPhase,wt=e.store.ui.isFullscreen,Ht=e.store.ui.isFullscreenOpenedByKeyboard,$i=e.store.ui.controlsVisible,St=e.store.ui.settingsMenu.visible$,Ct=e.store.ui.settingsMenu.openedByBtnKeyboard$,Si=e.store.ui.scrubbingInProgress,qt=e.store.ui.volumeChangingInProgress,Ni=e.store.ui.contextMenu.visible$,Ft=e.store.ui.debugPanelVisible,vt=e.store.state.isLoaderVisible,Ki=e.store.state.isEnded$,bt=e.store.state.chromecastConnected$,Vt=e.store.state.chromecastDeviceName$,W=e.store.ads.postrollPassed,Rt=e.store.state.isLive$,dt=e.store.state.isPlaying$,xi=e.store.state.crashed$,ii=e.store.webApi.annotationsApi,xt=e.store.webApi.pictureInPictureApi,lt=e.store.state.currentSubtitle$,qi=e.store.state.currentSubtitleCaptions$,Ai=e.store.ui.playerSize,Ln=e.store.ads.playbackState,Mn=e.store.ui.is3DVideo,Ei=e.store.ui.icon3DVideoVisible,po=e.store.state.isInteractive,mr=e.store.state.isInteractiveTime$,io=e.store.state.isInteractiveExpectation$,Ci=e.store.state.hasInteractiveBranches,Ho=e.store.ui.touched,on=e.store.ui.modals.hotKeyMap.data,xo=e.store.ui.modals.hotKeyMap.show,hn=e.store.state.positionExact$,Ur=e.store.ui.overlayContainer$,zr=e.store.ui.controls.interactiveTimeIndicator,Ss=e.store.state.showInteractiveTimeIndicator,vr=e.store.ui.contextMenu.position$,gr=e.store.actions.internal.setQuality,Wr=e.store.actions.internal.closeSettingsMenu,Kr=e.store.ui.autoplayNextEnabled$,nn=e.store.ui.userActionsDisabled,Vn=e.store.ui.isControlsAvailable,Xn=e.store.ui.videoTitleInfo,hr=e.store.ui.doubleForwardOn$,ls=e.store.ui.doubleForwardAvailable$,rn=e.store.actions.internal.getVideoElement,_r=e.store.actions.internal.checkFullscreenSupport,{fakeIsPlaying$:Rn,notifications$:br,graphIsOpened$:$r}=To(),Eo=q(void 0),yr=q(void 0),oo=q(void 0),Zn=q(void 0),Jn,ft,si;on.set(db());let{closeNotification:xr,notificationsToShow$:wr}=br,ds=f(()=>!!r().slow_video),On=()=>xr("slow_video"),Sr=f(()=>(a()==="video"&&l()||a()==="ads"&&d()==="inactive")&&!s()),Po=q(void 0),sn=ae(!1),Cr,an=ae(!1),ln=ae(),qr=ae(!1),_n=q(!1),bn=q(!1),Pi=q(!1),Nn=q(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),no=f(()=>u()&&!m()&&!(n(_n)||n(bn))&&!(n(Pi)&&!p())),Dn=!0,er=f(()=>e.uiConfig.features.thumbTimer&&Qe()&&a()==="video"&&!v()&&!s()&&!po&&(e.uiConfig.hideThumbTimerAfterTouch&&!b()||!e.uiConfig.hideThumbTimerAfterTouch)),$n=e.uiConfig.titleShowBehaviour,Tr=f(()=>!["video","thumb"].includes(a())||$n==="never"||y()?!1:$n==="fullscreen"?_():!0),it=f(()=>$n==="always"||a()==="thumb"?!1:!v()),di=q(!1),Fo=f(()=>(st()||e.showAutoplayNext&&x())&&!!Re()&&!!we()&&(e.showAds&&I()||!e.showAds)&&T()&&!s()&&!n(di)&&!Ci),yn=f(()=>R()&&!(v()||n(Fo))&&!u()&&A()&&!P()),ko=q(!1),dn=f(()=>E()!==null),{toggle:wo}=Rn,So=!1,Li=null;xt==null||xt.setContext(Td());let Qr=()=>{e.autoplay&&!po&&e.uiConfig.controls.showOnStartupAtAutoplay&&Qi(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:Qr});let Bn=()=>{window.clearTimeout(Jn),an.set(!1)},Cs=()=>{window.clearTimeout(ft),ln.set(null)},Qi=me=>{Bn(),an.set(!0),Jn=window.setTimeout(()=>an.set(!1),me);let Tt=me-100;Cr=window.setTimeout(()=>{K()&&sn.set(!1)},Tt>0?Tt:me)},Ts=(me,Tt)=>{Cs(),ln.set(Tt),ft=window.setTimeout(()=>ln.set(null),me)},cs=Mn.subscribe(me=>{Ei.set(me),me&&(window.clearTimeout(si),si=window.setTimeout(()=>Ei.set(!1),e.uiConfig.controls.hide360IconTimeout))}),us=()=>gt(null,null,function*(){var Tt,oi,ni,qo;let me=da();if(me){let go=ic(),Yi=Hn();me=go===Yi||go===xe()}if(me){Qi(e.uiConfig.controls.hideTimeoutFullscreen);try{yield xt==null?void 0:xt.exit()}catch(go){Kt({message:String(go)})}}wt.set(me),e.store.getAdmanWrapper().setFullscreen(me),_()?(oi=(Tt=e.store.callbacks)==null?void 0:Tt.onFullscreenEnter)==null||oi.call(Tt):(qo=(ni=e.store.callbacks)==null?void 0:ni.onFullscreenExit)==null||qo.call(ni)}),Ir=me=>{Ai.set(me)},cn=()=>{if(n(Eo)){let{width:me,height:Tt}=n(Eo).getBoundingClientRect();Ai.set({width:me,height:Tt})}};Ot(()=>{var Tt;return Zu(us),e.uiConfig.features.annotationsInside&&(ii==null||ii.init(n(Eo))),xt==null||xt.assignPlayerContainer(n(Eo)),e.uiConfig.disablePiPResizeHandling||xt==null||xt.setExternalEventHandlers({resize:Ir,leavepictureinpicture:cn}),e.interactiveContainer&&((Tt=Pt().parentElement)==null||Tt.insertBefore(e.interactiveContainer,Pt().nextSibling)),()=>{window.clearTimeout(Jn),window.clearTimeout(Cr),window.clearTimeout(ft),window.clearTimeout(si),cs(),xt==null||xt.dispose().catch(oi=>{Kt({message:String(oi)})}),Ju(us)}});let Hn=()=>{let me=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!kt()?n(Eo):kt(),Tt=me.getRootNode(),oi=Tt instanceof ShadowRoot?Tt.host:Tt,ni=He()instanceof HTMLElement&&He().contains(oi);return e.uiConfig.allowChangingFullscreenTarget&&He()&&ni?He():me},Ti=()=>{Ni.set(!1)},je=()=>{Wr(),Ti()},Lt=()=>gt(null,null,function*(){if(!_r()){Kt({message:"fullscreen disabled"});return}Ti(),da()?(yield Xu(document),Kt({message:"exit fullscreen"})):(Kt({message:"request fullscreen"}),yield ju(Hn()))}),fi=me=>{y()||(me.preventDefault(),Ni.set(!0),vr.set({left:me.clientX,top:me.clientY}))};function Uo(){qr.set(!0),po||Qi(e.uiConfig.controls.hideTimeoutCursor)}function Ao(me){var go,Yi;let{relatedTarget:Tt}=me,ni=!!(Tt&&((go=n(oo))!=null&&go.contains(Tt)))&&((Yi=Jt())==null?void 0:Yi.isFocused()),qo=e.uiConfig.controls.showOnStartupAtAutoplay||!!Tt;!po&&!ni&&qo&&(sn.set(!0),Qi(e.uiConfig.controls.hideTimeoutCursor))}function Lo(){qr.set(!1),O(bn,!1),O(_n,!1),So=!1,e.store.actions.internal.releaseCamera(),Qi(e.uiConfig.controls.hideTimeout),P()&&Wo()}function Gi(me){return me?me.offsetTop+Gi(me.offsetParent):0}function zo(me){return me?me.offsetLeft+zo(me.offsetParent):0}function Fn(me){if(F()&&Ss){let Tt=me.currentTarget,oi=Gi(Tt),ni=zo(Tt),qo=me.pageX-ni,go=me.pageY-oi,{left:Yi,bottom:fs,right:nr}=F(),jr=nr-Yi;return qo>=Yi-jr&&go<=fs+jr}}function Er(me){if(n(Eo)){let Tt=Gi(me.currentTarget),oi=z().height,ni=me.pageY-Tt;if(Fn(me)){O(bn,!1);return}ni<40?O(bn,!0):ni>oi-40?O(_n,!0):(O(bn,!1),m()||O(_n,!1))}}function Mo(me){Er(me),!n(no)&&!P()&&Qi(e.uiConfig.controls.hideTimeoutCursor),X()&&So&&Li&&e.store.actions.internal.moveCameraFocusPX(Li.clientX-me.clientX,Li.clientY-me.clientY,me.timeStamp-Li.timeStamp),Li=me}let fo=null,tr=()=>{fo=window.setTimeout(()=>{e.store.actions.internal.changeDoubleForwardOn(!0),Bn()},e.uiConfig.doubleForwardActivationTime)},Wo=()=>{e.store.actions.internal.changeDoubleForwardOn(!1),fo&&clearTimeout(fo),fo=null},Un=me=>{me.preventDefault(),me.button===0&&(So=!0,e.store.actions.internal.holdCamera(),se()&&tr()),!So&&Qi(e.uiConfig.controls.hideTimeoutCursor)},Pr=me=>{me.preventDefault(),me.button===0&&(Li=me,So=!1,e.store.actions.internal.releaseCamera()),!P()&&Qi(e.uiConfig.controls.hideTimeoutCursor)},Gr=me=>{me.preventDefault(),Dn&&(Kt({message:"double click on video"}),Lt(),Qi(e.uiConfig.controls.hideTimeoutCursor))},Yr=me=>{var Tt;if(me.preventDefault(),P()){Wo();return}if(fo&&Wo(),Y()||m()){je();return}if(!(T()&&!Ci)){if(n(dn))return wo();if((Tt=Jt())==null||Tt.focus(),!be()){e.firstStart(),Qi(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||re()!==ag.PlaybackState.PLAYING)&&e.store.actions.internal.togglePlay(),Qi(e.uiConfig.controls.hideTimeoutCursor)}},Ze=me=>{je(),Ho.set(!0),Qi(e.uiConfig.controls.hideTimeout),me&&Ts(e.uiConfig.controls.hideHotKeyHelpers,me)},ti=()=>{var me,Tt;je(),(me=e.store.callbacks)!=null&&me.onOpenHotKeyMap?(Tt=e.store.callbacks)==null||Tt.onOpenHotKeyMap(Z()):xo.update(oi=>!oi)},Mi=()=>{Ho.set(!0)},Co=e.store.ui.contextMenu.openedByBtnKeyboard$,un=e.store.ui.contextMenu.btnRef$,ir=q(void 0),Ko=e.store.ui.contextMenu.openedByHotKey$,or=e.store.ui.contextMenu.lastActiveElem$,ps=q(!1),Gs=e.store.ui.previewTrackActive;Be(()=>{Ur.set(n(Po))}),Be(()=>{O(Pi,n(Nn)&&re()!==ag.PlaybackState.PLAYING,!0),n(Nn)||At(()=>O(Nn,!0))}),Be(()=>{var Tt,oi;let me=(n(Pi)||T()||m()||Ce()||fe()||oe()||pe()||n(ps))&&!n(no)&&(a()==="video"||a()==="ads"&&(e.uiConfig.controls.showOnStartupAtAutoplay||Se()!=="inactive"))&&!s()&&A();$i.set(me),!me&&!pe()&&((Tt=n(oo))!=null&&Tt.contains(sp()))&&((oi=Jt())==null||oi.focus())}),Be(()=>{!Ce()&&n(ko)&&!u()&&Qi(e.uiConfig.controls.hideTimeoutCursor),At(()=>O(ko,Ce(),!0))}),Be(()=>{n(Zn),m(),de(),At(()=>lc(n(Zn),m(),de()))}),Be(()=>{n(ir),Y(),qe(),ve(),At(()=>{let me=qe()||ve();lc(n(ir),Y(),me)})}),Be(()=>{let me=We();me&&(Y(),At(()=>Yl(me,Y(),Co)))}),Be(()=>{let me=U();me&&(Y(),At(()=>mb(me,Y(),Ko)))}),Be(()=>{var me;!D()&&_()&&(At(()=>Ht.set(!1)),(me=Jt())==null||me.focus())}),Be(()=>{y()&&je()});let zn=q(void 0),xa=me=>{Xn.set(Yn(rn(),{title:n(zn)},"title",me))},Ys=(me,Tt)=>{var go,Yi;let oi=(Yi=(go=e.store.callbacks)==null?void 0:go.uiInfo)==null?void 0:Yi.onUpcomingLiveViewStateChanged;if(!oi)return;let ni=!!Tt,qo=Le(Le({},Yn(n(Eo),{upcomingLiveScreen:Tt},"upcomingLiveScreen",ni)),me);oi(qo)},ct="",ci=f(()=>{var me;return n(it)?ct:(me=e.getVideoDeeplink)==null?void 0:me.call(e,ue())});Be(()=>{ct=n(ci)});var Vo=tT();pt("blur",Oa,je);var mo=le(Vo);mo.__mousemove=Mo;var Vi=C(mo);let kr=f(()=>a()==="ads"),Is=f(()=>n(dn)?wo:void 0);ot(Cm(Vi,{startDoubleForwardActivationTimer:tr,stopDoubleForward:Wo,toggleFullscreen:Lt,hideContextMenu:je,showHotKeyHelpers:Ze,showKeyMap:ti,get isAds(){return n(kr)},get fakePlayButtonHandler(){return n(Is)},get nextButtonActive(){return Q()},get prevButtonActive(){return Ae()},children:(me,Tt)=>{var oi=JC(),ni=le(oi);fl(ni,{get hideCursor(){return n(yn)},onClick:Yr,onContextMenu:fi,onMouseDown:Un,onMouseUp:Pr,onDblClick:Gr,get videoContainer(){return Pt()},set videoContainer(Yi){Pt(Yi)}});var qo=k(ni,2);Ua(qo,()=>"slot",!1,(Yi,fs)=>{so(Yi,()=>({name:pl}))});var go=k(qo,2);Vs(go,ce,Yi=>{var fs=ZC(),nr=le(fs);let jr=f(()=>a()!=="thumb"||s()||po&&e.autoplay);dl(nr,{get hidden(){return n(jr)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart},onContextMenu:fi,onClick:Ti});var wa=k(nr,2);{var gd=Ge=>{sg(Ge,{})};V(wa,Ge=>{_e()&&Ge(gd)})}var Ar=k(wa,2);ng(Ar,{});var ms=k(Ar,2);rg(ms,{get isVisible(){return P()}});var js=k(ms,2);{var Lr=Ge=>{let bi=f(()=>{var Qo;return(Qo=e.live)==null?void 0:Qo.startTime});Oc(Ge,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(bi)},onUpcomingLiveViewStateChanged:Ys,onContextMenu:fi,onClick:Ti})};V(js,Ge=>{a()==="LiveWaitingStart"&&Ge(Lr)})}var gl=k(js,2);{var hd=Ge=>{cl(Ge,{kind:"recover",get thumbUrl(){return e.thumbUrl},onContextMenu:fi,onClick:Ti})};V(gl,Ge=>{a()==="LiveWaitingRecover"&&Ge(hd)})}var Mr=k(gl,2);{var hl=Ge=>{cl(Ge,{kind:"record",get thumbUrl(){return e.thumbUrl},onContextMenu:fi,onClick:Ti})};V(Mr,Ge=>{a()==="LiveWaitingRecord"&&Ge(hl)})}var _l=k(Mr,2);{var _d=Ge=>{var bi=GC();let Qo;var Vr=C(bi);oc(Vr,{get adsSlotId(){return at()},get adsParams(){return Et()},get adsAutoplayParam(){return ei()},get duration(){return Yt()},get adsExternalApi(){return e.adsExternalApi},get adsJson(){return e.adsJson}}),S(bi),N(xn=>Qo=ne(bi,1,"ads-container s-9",null,Qo,xn),[()=>({hidden:a()!=="ads"})]),$(Ge,bi)};V(_l,Ge=>{e.showAds&&be()&&Ge(_d)})}var Sa=k(_l,2);{var bl=Ge=>{let bi=f(()=>!st()&&e.showAutoplayNext&&x());xm(Ge,{get title(){return Re()},get thumb(){return we()},get isHide(){return n(bi)},clickCloseIcon:()=>O(di,!0)})};V(Sa,Ge=>{n(Fo)&&Re()&&we()&&Ge(bl)})}var ut=k(Sa,2);{var mt=Ge=>{let bi=f(()=>_()?"md":"sm"),Qo=f(()=>{var Vr;return(Vr=e.store.callbacks)==null?void 0:Vr.onTitleClicked});Av(Ge,{get title(){return e.title},get isHidden(){return n(it)},onVisibilityChanged:xa,get titleLinkHref(){return n(ci)},onMouseEnter:()=>{O(ps,!0)},onMouseLeave:()=>{O(ps,!1)},get size(){return n(bi)},get onTitleClicked(){return n(Qo)},get ref(){return n(zn)},set ref(Vr){O(zn,Vr,!0)}})};V(ut,Ge=>{n(Tr)&&Ge(mt)})}var ji=k(ut,2);{var Di=Ge=>{let bi=f(()=>a()==="video"&&v());Vc(Ge,{get isShifted(){return n(bi)}})};V(ji,Ge=>{X()&&Ge(Di)})}var Xi=k(ji,2);{var yi=Ge=>{var bi=YC(),Qo=C(bi);tc(Qo,{}),S(bi),$(Ge,bi)};V(Xi,Ge=>{ge()&&Ge(yi)})}var Bi=k(Xi,2);{var Ca=Ge=>{Rc(Ge,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return Ke()},onClick:Yr,onContextMenu:fi,onDblClick:Gr})};V(Bi,Ge=>{oe()&&Ge(Ca)})}var $l=k(Bi,2);{var Wp=Ge=>{al(Ge,{get shifted(){return v()},get captions(){return ze()},get position(){return ee()},get playerSize(){return z()}})};V($l,Ge=>{te().value!=="off"&&a()==="video"&&Ge(Wp)})}var eu=k($l,2);{var Kp=Ge=>{var bi=jC();bi.__contextmenu=fi,bi.__click=[QC,Y,Ni,m,St,je];var Qo=C(bi);ll(Qo,{}),S(bi),$(Ge,bi)};V(eu,Ge=>{s()&&Ge(Kp)})}var tu=k(eu,2);{var qp=Ge=>{let bi=f(()=>a()==="thumb"||a()==="LiveWaitingStart"||a()==="LiveWaitingRecover"||a()==="LiveWaitingRecord"),Qo=f(()=>a()==="ads"),Vr=f(()=>e.canRewindLive&&ke()!==0);Lc(Ge,{get bottomHidden(){return n(bi)},get bottomNoSmooth(){return K()},get showControls(){return v()},get isAds(){return n(Qo)},get canRewindLive(){return n(Vr)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Dt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return jt()},get nextButtonActive(){return Q()},get prevButtonActive(){return Ae()},get isOneVideoPlaylist(){return Fe()},customFullscreenSupported:Dn,toggleFullscreen:Lt,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return n(yr)},set playerControlsWrapperRef(xn){O(yr,xn,!0)},get playerControlsRef(){return n(oo)},set playerControlsRef(xn){O(oo,xn,!0)}})};V(tu,Ge=>{be()&&Ge(qp)})}var iu=k(tu,2);{var Qp=Ge=>{var bi=XC(),Qo=C(bi);let Vr=f(()=>{var xn;return(xn=n(oo))==null?void 0:xn.clientHeight});Hc(Qo,{get supportLink(){return e.supportLink},get playerControlsHeight(){return n(Vr)},returnFocus:()=>{var xn;return(xn=Jt())==null?void 0:xn.focus()},get ref(){return n(Zn)},set ref(xn){O(Zn,xn,!0)}}),S(bi),$(Ge,bi)};V(iu,Ge=>{!oe()&&a()!=="ads"&&Ge(Qp)})}var ou=k(iu,2);let Gp=f(()=>!n(er));sc(ou,{get isLive(){return Ue()},get isHidden(){return n(Gp)},get isPlaying(){return Ie()},get position(){return ee()},get duration(){return ke()}});var nu=k(ou,2);Pv(nu,{get data(){return ln}});var Ta=k(nu,2);$m(Ta,{get supportLink(){return e.supportLink},returnFocus:()=>{var Ge;return(Ge=Jt())==null?void 0:Ge.focus()},get visible(){return Y()},get playerContainerRef(){return n(Eo)},get position(){return Pe()},get menuElementRef(){return n(ir)},set menuElementRef(Ge){O(ir,Ge,!0)}});var ru=k(Ta,2);{var Ia=Ge=>{Fc(Ge,{onClose:On,onSelectAutoQuality:()=>{gr("auto"),On()}})};V(ru,Ge=>{n(ds)&&Ge(Ia)})}var Ea=k(ru,2);{var Yp=Ge=>{Xa(Ge,{})};V(Ea,Ge=>{n(Sr)&&Ge(Yp)})}var bd=k(Ea,2);{var $d=Ge=>{Em(Ge,{})};V(bd,Ge=>{Ne()&&Ge($d)})}var su=k(bd,2);{var jp=Ge=>{cc(Ge,{})};V(su,Ge=>{_t()&&Ge(jp)})}$(Yi,fs)}),$(me,oi)},$$slots:{default:!0}}),me=>Jt(me),()=>Jt());var Es=k(Vi,2);ot(Es,me=>O(Po,me),()=>n(Po)),S(mo),ot(mo,me=>O(Eo,me),()=>n(Eo));var vo=k(mo,2);{var Ri=me=>{var Tt=eT();$(me,Tt)};V(vo,me=>{It()&&me(Ri)})}pt("mouseenter",mo,Uo),pt("mouseleave",mo,Lo),pt("click",mo,Mi,!0),pt("focusin",mo,Ao,!0),$(i,Vo),H(),o()}tt(["mousemove","contextmenu","click"]);var ba=require("@vkontakte/videoplayer-core/es2015"),S$=require("@vkontakte/videoplayer-shared/es2015");var oT=L('<div></div> <div class="info s-k"><div class="triangles-wrapper s-k"><div></div> <div></div> <div></div></div> <p class="step-caption s-k"> </p></div>',1),nT=L("<div><!></div>"),rT={hash:"s-k",code:".double-click-area.s-k{height:100%;overflow:hidden;position:absolute;top:0;width:25%}.double-click-area.left.s-k{left:0}.double-click-area.right.s-k{right:0}.semicircle.s-k{background-color:rgba(0,0,0,.5);height:100%;position:absolute;top:0;width:100%}.semicircle.left.s-k{border-bottom-right-radius:50%;border-top-right-radius:50%;left:0}.semicircle.right.s-k{border-bottom-left-radius:50%;border-top-left-radius:50%;right:0}.info.s-k{align-items:center;flex-direction:column;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.info.s-k,.triangles-wrapper.s-k{display:flex;justify-content:center}.triangles-wrapper.s-k{margin-bottom:10px;position:relative}.triangle.s-k{animation:s-k-blink .5s infinite;border-bottom:6px solid transparent;border-top:6px solid transparent;height:0;opacity:0;width:0}.triangle.left.s-k:nth-child(3),.triangle.right.s-k:first-child{animation-delay:0s}.triangle.left.s-k:nth-child(2),.triangle.right.s-k:nth-child(2){animation-delay:.1s}.triangle.left.s-k:first-child,.triangle.right.s-k:nth-child(3){animation-delay:.2s}@keyframes s-k-blink{0%{opacity:0}50%{opacity:1}to{opacity:0}}.triangle.left.s-k{border-right:8px solid var(--white)}.triangle.right.s-k{border-left:8px solid var(--white)}.triangle.s-k:not(:last-child){margin-right:5px}.step-caption.s-k{color:var(--white);font-size:12px;line-height:1;margin:0;text-align:center}"};function Ep(i,e){B(e,!0),G(i,rT);let t=h(e,"seekStep",3,0),o=q(!1),r=0,a=0,l=q(ui(t())),d=p=>{p.stopPropagation(),a+=1,O(l,t()*(a-1)),a===1?e.handleSingleFirstClick(p):(O(o,!0),e.handleSecondClick()),window.clearTimeout(r),r=window.setTimeout(()=>{a=0,O(o,!1)},300)};mn(()=>{window.clearTimeout(r)});var s=nT();s.__click=d;var u=C(s);{var m=p=>{var v=oT(),b=le(v),y=k(b,2),_=C(y),x=C(_),I=k(x,2),T=k(I,2);S(_);var R=k(_,2),A=C(R,!0);S(R),S(y),N(P=>{var E,K,F,z;ne(b,1,`semicircle ${(E=e.side)!=null?E:""}`,"s-k"),ne(x,1,`triangle ${(K=e.side)!=null?K:""}`,"s-k"),ne(I,1,`triangle ${(F=e.side)!=null?F:""}`,"s-k"),ne(T,1,`triangle ${(z=e.side)!=null?z:""}`,"s-k"),he(A,P)},[()=>j("doubletap_seek_step",{seconds:n(l).toFixed(0)})]),$(p,v)};V(u,p=>{n(o)&&p(m)})}S(s),N(()=>{var p;return ne(s,1,`double-click-area ${(p=e.side)!=null?p:""}`,"s-k")}),$(i,s),H()}tt(["click"]);var sT=(i,e,t)=>{e(!1),t()},aT=L('<div class="overlay s-o"></div> <div class="next-video s-o"><div class="top s-o"><div class="caption s-o"> </div> <!></div> <div class="row s-o"><div class="column s-o"><div class="thumb s-o"><div></div> <!></div></div> <div class="column s-o"><div class="title s-o"> </div></div></div></div>',1),lT={hash:"s-o",code:".overlay.s-o{background:rgba(0,0,0,.72);height:100%;position:absolute;width:100%}.next-video.s-o{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-o{display:flex;justify-content:space-between}.caption.s-o{color:var(--white);font-size:11px;font-weight:700;opacity:.8;text-transform:uppercase}.row.s-o{background:rgba(48,48,48,.8);cursor:pointer;display:flex;flex-direction:row;height:102px;margin-top:6px;width:100%}.column.s-o{display:flex;flex-basis:50%;flex-direction:column}.thumb.s-o{align-items:center;background:no-repeat 50%;background-size:cover;display:flex;justify-content:space-around;position:relative}.thumb.s-o,.thumb-overlay.s-o{height:100%;width:100%}.thumb-overlay.s-o{position:absolute}.thumb-overlay.withOpacity.s-o{background:var(--black);opacity:.3}.title.s-o{color:var(--white);font-size:12px;font-weight:700;line-height:1.6;max-height:52px;overflow:hidden;padding:10px 16px}"};function dg(i,e){B(e,!0),G(i,lT);let[t,o]=De(),r=()=>w(d,"$autoplayNextEnabled$",t),a=()=>w(s,"$timerNextVideoRunning$",t),l=ye(),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()},_=()=>{e.clickCloseIcon(),b()};Ot(()=>{e.isHide||m(),e.isHide&&r()&&(u(!1),v())});var x=Ve(),I=le(x);{var T=R=>{var A=aT(),P=k(le(A),2),E=C(P),K=C(E),F=C(K,!0);S(K);var z=k(K,2);Bs(z,{onClick:_}),S(E);var X=k(E,2);X.__click=[sT,u,p];var se=C(X),Y=C(se),re=C(Y);let Z;var Ce=k(re,2);{var fe=de=>{uc(de,{get isRunning(){return a()},onTimerEnded:y})};V(Ce,de=>{r()&&de(fe)})}S(Y),S(se);var oe=k(se,2),pe=C(oe),Se=C(pe,!0);S(pe),S(oe),S(X),S(P),N((de,qe)=>{he(F,de),Ye(Y,`background-image: url('${e.thumb}')`),Z=ne(re,1,"thumb-overlay s-o",null,Z,qe),he(Se,e.title)},[()=>r()?j("end_screen_next_video"):j("end_screen_recommended_video"),()=>({withOpacity:r()})]),$(R,A)};V(I,R=>{e.isHide||R(T)})}$(i,x),H(),o()}tt(["click"]);var b$=require("@vkontakte/videoplayer-core/es2015");var $$=({getFullscreenTarget:i,fullScreenChangeHandler:e})=>{let t=null,o;Ot(()=>{b$.clientChecker.device.isIOS&&(o=setTimeout(()=>{let a=i().querySelector("video");if(!a)return;let l=()=>e(!0),d=()=>e(!1);a.addEventListener("webkitbeginfullscreen",l),a.addEventListener("webkitendfullscreen",d),t=()=>{a.removeEventListener("webkitbeginfullscreen",l),a.removeEventListener("webkitendfullscreen",d)}},0))}),mn(()=>{t==null||t(),clearTimeout(o)})};var y$=require("@vkontakte/videoplayer-core/es2015");var Pp=class{constructor(e){this.video=e}getTracksArray(){return Array.from(this.video.getElementsByTagName("track"))}attach(e,t=!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),t&&(o.track.mode="showing"),this.video.appendChild(o)}detachAll(){for(let e of this.getTracksArray())this.video.removeChild(e)}updateSrc(e){let t=this.getTracksArray().find(o=>o.id===e.id);t&&(t.src=e.url)}getCurrentShowingId(){var e,t;return(t=(e=this.getTracksArray().find(o=>o.track.mode==="showing"))==null?void 0:e.id)!=null?t:null}};var x$=require("@vkontakte/videoplayer-core/es2015"),w$=({store:i,getFullscreenTarget:e})=>{let{isFullscreen:t}=i.ui,{setSubtitle:o}=i.actions.internal,{currentSubtitle$:r,availableSubtitlesList$:a,currentFormat$:l,availableTextTracks$:d}=i.state,s=null,u=()=>e().querySelector("video"),m=()=>x$.clientChecker.device.isIOS&&$e(l)===y$.VideoFormat.DASH_LIVE_CMAF,p=()=>{s==null||s(),s=null},v=b=>{if(p(),!m()||!b)return;let y=u();if(!y)return;let _=new Pp(y),x=$e(d),I=$e(a),T=$e(r);for(let P of x)I.some(K=>K.value===P.id)&&_.attach(P,T.value===P.id);let R=d.subscribe(P=>{for(let E of P)_.updateSrc(E)}),A=()=>{let P=_.getCurrentShowingId();o($e(a).find(E=>E.value===P))};y.textTracks.addEventListener("change",A),s=()=>{R(),_.detachAll(),y.textTracks.removeEventListener("change",A)}};Ot(()=>t.subscribe(v)),mn(p)};var dT=(i,e,t,o)=>{if(i.stopPropagation(),e()){o();return}},cT=L("<!> <!>",1),uT=L("<div><!></div>"),pT=L('<div class="spherical-video-icon s-8"><!></div>'),fT=L("<div><!></div>"),mT=L('<div class="settings-mobile s-8"><!></div>'),vT=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),gT=L('<div class="player-wrapper s-8" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),hT={hash:"s-8",code:".player-wrapper.s-8{height:100%;position:absolute;width:100%}.player-wrapper.s-8 .player-media{background:var(--black);height:100%;left:0;position:absolute;top:0;transition:transform .2s ease-in-out;width:100%}.spherical-video-icon.s-8{display:inline-block;left:calc(50% - 38px);position:absolute;top:calc(50% - 23px)}.ads-container.s-8{background:var(--black);height:100%;left:0;position:absolute;top:0;width:100%;z-index:var(--ads-container-z-index)}.settings-mobile.s-8{align-items:center;display:flex;left:50%;max-width:320px;position:absolute;top:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);width:90%;z-index:var(--settings-menu-z-index)}"};function cg(i,e){var $n,Tr;B(e,!0),G(i,hT);let[t,o]=De(),r=()=>w(Fe,"$playerPhase",t),a=()=>w(_i,"$isLoaderVisible",t),l=()=>w(Ae,"$adPlaybackState",t),d=()=>w(Ct,"$crashed",t),s=()=>w(vr,"$notificationsToShow$",t),u=()=>w(Q,"$playbackState$",t),m=()=>w(Yt,"$graphIsOpened$",t),p=()=>w(He,"$interactiveHideMobileControls",t),v=()=>w(mi,"$isEnded$",t),b=()=>w(xi,"$isInteractiveExpectation$",t),y=()=>w(kt,"$controlsVisible",t),_=()=>w(lt,"$touched",t),x=()=>w(Ai,"$autoplayNextEnabled$",t),I=()=>w(Io,"$postrollPassed",t),T=()=>w(Kr,"$bottomNoSmooth",t),R=()=>w(Ni,"$videoSize",t),A=()=>w(bt,"$playerSize",t),P=()=>w(xe,"$isFullscreen",t),E=()=>w(Re,"$position$",t),K=()=>w(we,"$duration$",t),F=()=>w(Ln,"$loadedMetadata",t),z=()=>w(Qe,"$settingsMenuVisible",t),X=()=>w(Jt,"$scrubbingInProgress",t),se=()=>w(Kt,"$volumeChangingInProgress",t),Y=()=>w(uo,"$chromecastConnected$",t),re=()=>w(be,"$isControlsAvailable",t),Z=()=>w(dt,"$isInteractiveTime$",t),Ce=()=>w($i,"$isActiveLive",t),fe=()=>w(st,"$settingsMenuOpenedByKeyboard",t),oe=()=>w(jt,"$language$",t),pe=()=>w(xt,"$disabledControls$",t),Se=()=>w(Vt,"$is3DVideo",t),de=()=>w(W,"$icon3DVideoVisible",t),qe=()=>w(yo,"$chromecastDeviceName$",t),ve=()=>w(Ft,"$currentSubtitle$",t),We=()=>w(vt,"$currentSubtitleCaptions$",t),U=()=>w(Ki,"$realDuration$",t),D=()=>w(wt,"$isLive$",t),ue=()=>w(Ht,"$isPlaying$",t),ce=()=>w(pi,"$debugPanelVisible",t),_e=h(e,"videoContainer",15),ge=h(e,"adsSlotId",3,void 0),Ke=h(e,"adsParams",3,void 0),te=h(e,"adsAutoplayParam",3,void 0),ze=h(e,"duration",3,void 0),ee=h(e,"logoTargetUrl",3,""),ke=h(e,"showNextPrevButtons",3,!1),Ue=h(e,"nextButtonActive",3,!1),Ie=h(e,"prevButtonActive",3,!1),Pe=h(e,"endScreenVideoTitle",3,void 0),Ne=h(e,"endScreenVideoThumb",3,void 0),_t=h(e,"isOneVideoPlaylist",3,!1),It=h(e,"showMiniTimer",3,!1),Pt=h(e,"fullScreenTarget",3,void 0),at=h(e,"playerStarted",3,!1),Et=h(e,"showEndScreen",3,!0),{notifications$:ei,graphIsOpened$:Yt}=To(),Dt=e.store.getLogger().createComponentLog("Root component"),jt=e.store.interfaceLanguage$,Q=e.store.state.playbackState$,Ae=e.store.ads.playbackState,Re=e.store.state.positionWithScrubbing$,we=e.store.state.duration$,Fe=e.store.playerPhase,xe=e.store.ui.isFullscreen,kt=e.store.ui.controlsVisible,be=e.store.ui.isControlsAvailable,He=e.store.ui.interactiveHideMobileControls,Qe=e.store.ui.settingsMenu.visible$,st=e.store.ui.settingsMenu.openedByBtnKeyboard$,Jt=e.store.ui.scrubbingInProgress,Kt=e.store.ui.volumeChangingInProgress,pi=e.store.ui.debugPanelVisible,_i=e.store.state.isLoaderVisible,mi=e.store.state.isEnded$,uo=e.store.state.chromecastConnected$,yo=e.store.state.chromecastDeviceName$,Io=e.store.ads.postrollPassed,wt=e.store.state.isLive$,Ht=e.store.state.isPlaying$,$i=e.store.state.isActiveLive$,St=e.store.state.isRewindableLive$,Ct=e.store.state.crashed$,Si=e.store.webApi.annotationsApi,qt=e.store.webApi.pictureInPictureApi,Ni=e.store.state.videoSize$,Ft=e.store.state.currentSubtitle$,vt=e.store.state.currentSubtitleCaptions$,Ki=e.store.state.duration$,bt=e.store.ui.playerSize,Vt=e.store.ui.is3DVideo,W=e.store.ui.icon3DVideoVisible,Rt=e.store.state.isInteractive,dt=e.store.state.isInteractiveTime$,xi=e.store.state.isInteractiveExpectation$,ii=e.store.state.hasInteractiveBranches,xt=e.store.ui.controls.disabledControls$,lt=e.store.ui.touched,qi=e.store.ui.overlayContainer$,Ai=e.store.ui.autoplayNextEnabled$,Ln=e.store.state.loadedMetadata$,Mn=e.store.actions.internal.closeSettingsMenu,Ei=($n=e.store.callbacks)==null?void 0:$n.onDisabledPlayPrevChapterClick,po=(Tr=e.store.callbacks)==null?void 0:Tr.onDisabledSeekToInteractiveClick,mr=e.store.actions.internal.setQuality,io=q(void 0),Ci=q(void 0),Ho=q(void 0),on=q(void 0),xo,hn,Ur=f(()=>(r()==="video"&&a()||r()==="ads"&&l()==="inactive")&&!d()),zr=q(void 0),{closeNotification:Ss,notificationsToShow$:vr}=ei,gr=f(()=>!!s().slow_video),Wr=()=>Ss("slow_video"),Kr=ae(!1),nn,Vn=q(!1),Xn=f(()=>u()!==ba.PlaybackState.PLAYING),hr=q(!1),ls=f(()=>m()||p()||!n(Vn)&&(v()&&!!ii||n(Xn)&&b())),rn=q(!0),_r=f(()=>e.uiConfig.features.thumbTimer&&It()&&r()==="video"&&!y()&&!d()&&!Rt&&(e.uiConfig.hideThumbTimerAfterTouch&&!_()||!e.uiConfig.hideThumbTimerAfterTouch)),Rn=q(!1),br=f(()=>(Et()||e.showAutoplayNext&&x())&&!!Pe()&&!!Ne()&&(e.showAds&&I()||!e.showAds)&&v()&&!d()&&!n(Rn)),$r=q(!1);qt==null||qt.setContext(Td());let Eo=it=>{it&&!Rt&&e.uiConfig.controls.showOnStartupAtAutoplay&&oo(e.uiConfig.controls.hideTimeoutMobile)};e.store.setUiCallbacks({onStarted:Eo});let yr=()=>{clearTimeout(xo),O(Vn,!1),p()&&He.set(!1)},oo=it=>{yr(),O(Vn,!0),xo=setTimeout(()=>O(Vn,!1),it);let di=it-100;nn=setTimeout(()=>{T()&&Kr.set(!1)},di>0?di:it)},Zn=Vt.subscribe(it=>{W.set(it),it&&(clearTimeout(hn),hn=setTimeout(()=>W.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Jn=(...di)=>gt(null,[...di],function*(it=da()){var Fo,yn,ko,dn,wo,So;if(it&&!ba.clientChecker.device.isIOS){let Li=ic(),Qr=On(),Bn=ba.clientChecker.browser.isSamsungBrowser&&Li===e.shadowRootContainer;it=Li===Qr||Bn}if(it){oo(e.uiConfig.controls.hideTimeoutFullscreen);try{yield qt==null?void 0:qt.exit()}catch(Li){Dt({message:String(Li)})}try{let Li=(Fo=R())!=null&&Fo.width&&((yn=R())!=null&&yn.height)?R():A();yield lb(Li)}catch(Li){Dt({message:String(Li)})}}xe.set(it),e.store.getAdmanWrapper().setFullscreen(it),P()?(dn=(ko=e.store.callbacks)==null?void 0:ko.onFullscreenEnter)==null||dn.call(ko):(So=(wo=e.store.callbacks)==null?void 0:wo.onFullscreenExit)==null||So.call(wo)}),ft=it=>{bt.set(it)},si=()=>{if(n(io)){let{width:it,height:di}=n(io).getBoundingClientRect();bt.set({width:it,height:di})}};Ot(()=>{var it;return Zu(Jn),e.uiConfig.features.annotationsInside&&(Si==null||Si.init(n(io))),qt==null||qt.assignPlayerContainer(n(io)),e.uiConfig.disablePiPResizeHandling||qt==null||qt.setExternalEventHandlers({resize:ft,leavepictureinpicture:si}),O(rn,!ba.clientChecker.device.isIphoneOrOldIpad),e.interactiveContainer&&((it=_e().parentElement)==null||it.insertBefore(e.interactiveContainer,_e().nextSibling)),()=>{clearTimeout(xo),clearTimeout(nn),clearTimeout(hn),Zn(),qt==null||qt.dispose().catch(di=>{Dt({message:String(di)})}),Ju(Jn)}});let xr=q(!0),wr=q(!0),ds=it=>{let di=E()+(it==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;di<0?(O(xr,!1),di=0):di>=K()&&(O(wr,!1),di=K()),O(hr,!0),e.seekTime(di)},On=()=>ba.clientChecker.device.isIOS?n(io):!e.uiConfig.allowChangingFullscreenTarget||!Pt()?e.outerContainerRef:Pt().contains(e.outerContainerRef)?Pt():e.outerContainerRef,Sr=()=>gt(null,null,function*(){try{if(da())yield Xu(document),Dt({message:"exit fullscreen"});else{if(Dt({message:"request fullscreen"}),ba.clientChecker.device.isIOS&&!F())return;yield ju(On())}}catch(it){Dt({message:String(it)})}}),Po=()=>{Mn()},sn=it=>{if(it.preventDefault(),z()){Po();return}if(!at()){e.firstStart(),oo(e.uiConfig.controls.hideTimeoutCursor);return}O(hr,!1),y()?yr():oo(e.uiConfig.controls.hideTimeoutMobile)},Cr=()=>{lt.set(!0)},an=()=>{Rt||(Kr.set(!0),oo(e.uiConfig.controls.hideTimeoutCursor))},ln=it=>{Ei&&(Ei(it),oo(e.uiConfig.controls.hideTimeoutMobile))},qr=it=>{po&&(po(it),oo(e.uiConfig.controls.hideTimeoutMobile))};Be(()=>{qi.set(n(zr))}),Be(()=>{kt.set((n(Xn)||z()||X()||se()||Y()||!n(br)&&(v()||n(Vn)&&!n(hr)))&&!n(ls)&&r()==="video"&&!d()&&re())}),Be(()=>{!X()&&n($r)&&!Z()&&oo(e.uiConfig.controls.hideTimeoutMobile),O($r,X(),!0)}),Be(()=>{O(xr,E()>0),O(wr,!Ce()&&E()<K(),!0)}),Be(()=>{lc(n(on),z(),fe(),!0)});let _n=j("aria_label_video_player");$$({fullScreenChangeHandler:Jn,getFullscreenTarget:On}),w$({store:e.store,getFullscreenTarget:On});let bn=(it,di)=>{var dn,wo;let Fo=(wo=(dn=e.store.callbacks)==null?void 0:dn.uiInfo)==null?void 0:wo.onUpcomingLiveViewStateChanged;if(!Fo)return;let yn=!!di,ko=Le(Le({},Yn(n(io),{upcomingLiveScreen:di},"upcomingLiveScreen",yn)),it);Fo(ko)};var Pi=gT();pt("blur",Oa,Po);var Nn=C(Pi);fl(Nn,{onClick:sn,get videoContainer(){return _e()},set videoContainer(it){_e(it)}});var no=k(Nn,2);Ua(no,()=>"slot",!1,(it,di)=>{so(it,()=>({name:pl}))});var Dn=k(no,2);Vs(Dn,oe,it=>{var di=vT(),Fo=le(di);let yn=f(()=>r()!=="thumb"||d()||Rt&&e.autoplay||e.uiConfig.features.disableThumbUnstartedOnAutoplay&&e.autoplay);dl(Fo,{get hidden(){return n(yn)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var ko=k(Fo,2);{var dn=Ze=>{var ti=cT(),Mi=le(ti);{var Co=Ko=>{let or=f(()=>e.uiConfig.controls.seekStepMobile/1e3);Ep(Ko,{side:"left",get seekStep(){return n(or)},handleSingleFirstClick:sn,handleSecondClick:()=>ds("backward")})};V(Mi,Ko=>{n(xr)&&Ko(Co)})}var un=k(Mi,2);{var ir=Ko=>{let or=f(()=>e.uiConfig.controls.seekStepMobile/1e3);Ep(Ko,{side:"right",get seekStep(){return n(or)},handleSingleFirstClick:sn,handleSecondClick:()=>ds("forward")})};V(un,Ko=>{n(wr)&&Ko(ir)})}$(Ze,ti)};V(ko,Ze=>{e.canRewindLive&&St&&!pe().has("TIMELINE")&&Ze(dn)})}var wo=k(ko,2);{var So=Ze=>{let ti=f(()=>{var Mi;return(Mi=e.live)==null?void 0:Mi.startTime});Oc(Ze,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(ti)},onUpcomingLiveViewStateChanged:bn})};V(wo,Ze=>{r()==="LiveWaitingStart"&&Ze(So)})}var Li=k(wo,2);{var Qr=Ze=>{cl(Ze,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};V(Li,Ze=>{r()==="LiveWaitingRecover"&&Ze(Qr)})}var Bn=k(Li,2);{var Cs=Ze=>{cl(Ze,{kind:"record",get thumbUrl(){return e.thumbUrl}})};V(Bn,Ze=>{r()==="LiveWaitingRecord"&&Ze(Cs)})}var Qi=k(Bn,2);{var Ts=Ze=>{var ti=uT();let Mi;var Co=C(ti);oc(Co,{get adsSlotId(){return ge()},get adsParams(){return Ke()},get adsAutoplayParam(){return te()},get duration(){return ze()},get adsExternalApi(){return e.adsExternalApi},get adsJson(){return e.adsJson}}),S(ti),N(un=>Mi=ne(ti,1,"ads-container s-8",null,Mi,un),[()=>({hidden:r()!=="ads"})]),$(Ze,ti)};V(Qi,Ze=>{e.showAds&&at()&&Ze(Ts)})}var cs=k(Qi,2);{var us=Ze=>{let ti=f(()=>!Et()&&e.showAutoplayNext&&x());dg(Ze,{get title(){return Pe()},get thumb(){return Ne()},get isHide(){return n(ti)},clickCloseIcon:()=>O(Rn,!0)})};V(cs,Ze=>{n(br)&&Pe()&&Ne()&&Ze(us)})}var Ir=k(cs,2);{var cn=Ze=>{Vc(Ze,{})};V(Ir,Ze=>{Se()&&Ze(cn)})}var Hn=k(Ir,2);{var Ti=Ze=>{var ti=pT(),Mi=C(ti);tc(Mi,{}),S(ti),$(Ze,ti)};V(Hn,Ze=>{de()&&Ze(Ti)})}var je=k(Hn,2);{var Lt=Ze=>{Rc(Ze,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return qe()},onClick:sn})};V(je,Ze=>{Y()&&Ze(Lt)})}var fi=k(je,2);{var Uo=Ze=>{al(Ze,{get shifted(){return y()},get captions(){return We()},get position(){return E()},get playerSize(){return A()},isMobile:!0})};V(fi,Ze=>{ve().value!=="off"&&Ze(Uo)})}var Ao=k(fi,2);{var Lo=Ze=>{var ti=fT();ti.__click=[dT,z,Qe,Po];var Mi=C(ti);ll(Mi,{}),S(ti),$(Ze,ti)};V(Ao,Ze=>{d()&&Ze(Lo)})}var Gi=k(Ao,2);{var zo=Ze=>{let ti=f(()=>r()==="thumb"||r()==="LiveWaitingStart"||r()==="LiveWaitingRecover"||r()==="LiveWaitingRecord"||r()==="ads"),Mi=f(()=>r()==="ads"),Co=f(()=>e.canRewindLive&&U()!==0);Lc(Ze,{get bottomHidden(){return n(ti)},get showControls(){return y()},get bottomNoSmooth(){return T()},get isAds(){return n(Mi)},get canRewindLive(){return n(Co)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return ee()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return ke()},get nextButtonActive(){return Ue()},get prevButtonActive(){return Ie()},get isOneVideoPlaylist(){return _t()},get customFullscreenSupported(){return n(rn)},get endScreenShown(){return n(br)},toggleFullscreen:Sr,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:ln,onDisabledSeekToInteractiveClick:qr,get playerControlsWrapperRef(){return n(Ci)},set playerControlsWrapperRef(un){O(Ci,un,!0)},get playerControlsRef(){return n(Ho)},set playerControlsRef(un){O(Ho,un,!0)}})};V(Gi,Ze=>{at()&&Ze(zo)})}var Fn=k(Gi,2);{var Er=Ze=>{var ti=mT(),Mi=C(ti);Hc(Mi,{get supportLink(){return e.supportLink},get returnFocus(){return S$.noop},get ref(){return n(on)},set ref(Co){O(on,Co,!0)}}),S(ti),$(Ze,ti)};V(Fn,Ze=>{z()&&Ze(Er)})}var Mo=k(Fn,2);let fo=f(()=>!n(_r));sc(Mo,{get isLive(){return D()},get isHidden(){return n(fo)},get isPlaying(){return ue()},get position(){return E()},get duration(){return K()}});var tr=k(Mo,2);{var Wo=Ze=>{Xa(Ze,{})};V(tr,Ze=>{n(Ur)&&Ze(Wo)})}var Un=k(tr,2);{var Pr=Ze=>{cc(Ze,{})};V(Un,Ze=>{ce()&&Ze(Pr)})}var Gr=k(Un,2);{var Yr=Ze=>{Fc(Ze,{onClose:Wr,onSelectAutoQuality:()=>{mr("auto"),Wr()}})};V(Gr,Ze=>{n(gr)&&Ze(Yr)})}$(it,di)});var er=k(Dn,2);ot(er,it=>O(zr,it),()=>n(zr)),S(Pi),ot(Pi,it=>O(io,it),()=>n(io)),N(()=>Oe(Pi,"aria-label",_n)),pt("click",Pi,Cr,!0),pt("focusin",Pi,an,!0),$(i,Pi),H(),o()}tt(["click"]);function kp(i){let e="";return co(i.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${i.timelineSliderFilledColor};`),co(i.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${i.timelineSliderHandleColor};`),co(i.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${i.timelineSliderLoadedColor};`),co(i.timelineSliderColor)&&(e+=`--timeline-slider-bg:${i.timelineSliderColor};`),co(i.volumeSliderColor)&&(e+=`--volume-slider-bg:${i.volumeSliderColor};`),co(i.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${i.volumeSliderHandleColor};`),co(i.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${i.volumeSliderFilledColor};`),co(i.controlsTimeColor)&&(e+=`--controls-time:${i.controlsTimeColor};`),co(i.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${i.timelineSliderFilledActiveLiveColor};`),co(i.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${i.timelineSliderHandleActiveLiveColor};`),co(i.buttonColor)&&(e+=`--btn-color:${i.buttonColor};`),co(i.buttonToggleOnColor)&&(e+=`--toggle-color-on:${i.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${i.buttonToggleOnColor};`),co(i.focusedColor)&&(e+=`--focused:${i.focusedColor};`),co(i.focusedOutlineWidth)&&(e+=`--focused-outline-width:${i.focusedOutlineWidth};`),co(i.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${i.focusedOutlineRadius};`),co(i.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${i.controlsDesktopPaddingHorizontal};`),co(i.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${i.timelinePaddingHorizontal};`),co(i.settingsBackgroundColor)&&(e+=`--settings-bg:${i.settingsBackgroundColor};`),co(i.font)&&(e+=`--font:${i.font};`),co(i.controlsGradientHeight)&&(e+=`--controls-gradient-height:${i.controlsGradientHeight};`),co(i.controlsGradient)&&(e+=`--controls-gradient:${i.controlsGradient};`),e.length&&e||void 0}function co(i){return typeof i=="string"&&!i.includes(";")}var C$=require("@vkontakte/videoplayer-shared/es2015");var _T=L('<div class="time-container s-7"><!></div>'),bT=L('<div class="player-wrapper s-7" role="region"><!> <!> <!> <!> <!> <div><!></div></div>'),$T={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 ug(i,e){B(e,!0),G(i,$T);let[t,o]=De(),r=()=>w(Z,"$scrubbingInProgress",t),a=()=>w(Y,"$playerSize",t),l=()=>w(E,"$isPlaying$",t),d=()=>w(A,"$duration$",t),s=()=>w(z,"$positionWithScrubbing$",t),u=()=>w(T,"$playerPhase",t),m=()=>w(R,"$crashed$",t),p=()=>w(K,"$currentSubtitle$",t),v=()=>w(F,"$currentSubtitleCaptions$",t),b=()=>w(P,"$positionExact$",t),y=()=>w(X,"$isLive$",t),_=()=>w(se,"$isRewindableLive$",t),x=h(e,"outsideDuration",3,0),I=h(e,"videoContainer",15),{playerPhase:T,state:{crashed$:R,duration$:A,positionExact$:P,isPlaying$:E,currentSubtitle$:K,currentSubtitleCaptions$:F,positionWithScrubbing$:z,isLive$:X,isRewindableLive$:se},ui:{playerSize:Y,controls:re,scrubbingInProgress:Z},actions:{internal:{getVideoElement:Ce}}}=ye(),fe=8,oe=q(!1),pe=ui({}),Se=q(!1),de=f(()=>!r()&&!n(Se)),qe=()=>{O(oe,!0)},ve=()=>{O(oe,!1)},We=(0,C$.debounceFn)(nd,260);Be(()=>{a(),We(Ce(),re,pe,n(oe))});let U=f(()=>l()?tn(d()-s()):tn(isFinite(d())?d():x()));var D=bT(),ue=C(D);fl(ue,{hideCursor:!1,get videoContainer(){return I()},set videoContainer(Pe){I(Pe)}});var ce=k(ue,2);Ua(ce,()=>"slot",!1,(Pe,Ne)=>{so(Pe,()=>({name:pl}))});var _e=k(ce,2);let ge=f(()=>u()!=="thumb"||m());dl(_e,{get hidden(){return n(ge)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var Ke=k(_e,2);{var te=Pe=>{al(Pe,{shifted:!1,get captions(){return v()},get position(){return b()},get playerSize(){return a()}})};V(Ke,Pe=>{p().value!=="off"&&n(de)&&Pe(te)})}var ze=k(Ke,2);{var ee=Pe=>{var Ne=_T(),_t=C(Ne);rc(_t,{get isLive(){return y()},get isPlaying(){return l()},get time(){return n(U)}}),S(Ne),$(Pe,Ne)};V(ze,Pe=>{n(de)&&Pe(ee)})}var ke=k(ze,2);let Ue;var Ie=C(ke);nl(Ie,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return _()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:fe,tooltipRightOffset:fe,get ref(){return pe.timeline},set ref(Pe){pe.timeline=Pe}}),S(ke),S(D),N(Pe=>Ue=ne(ke,1,"timeline s-7",null,Ue,Pe),[()=>({visible:n(oe)})]),pt("mouseenter",D,qe),pt("mouseleave",D,ve),pt("mouseenter",ke,()=>O(Se,!0)),pt("mouseleave",ke,()=>O(Se,!1)),$(i,D),H(),o()}var yT=L("<div><!></div>"),xT={hash:"s-3",code:'.vk-vp-root.s-3{--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-3{overflow:visible}.vk-vp-root.s-3 *{-webkit-tap-highlight-color:transparent}.vk-vp-root.s-3 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-3 p{margin:0}.vk-vp-root.s-3 svg:not(.interactive-root svg){pointer-events:none}.vk-vp-root.s-3 .interactive-root{font-family:var(--vk-vp-int-custom-font,inherit)}.vk-vp-root.s-3 :focus,.vk-vp-root.s-3 :focus-visible{outline:none}.vk-vp-root.s-3 :focus-visible{border-radius:var(--focused-outline-radius);box-shadow:var(--focused-element-shadow)}.vk-vp-root.s-3 .focus-hidden:focus-visible{box-shadow:none}.vk-vp-root.s-3 .hidden{opacity:0;visibility:hidden}.vk-vp-root.s-3 .out-of-flow{content-visibility:hidden!important}.vk-vp-root.s-3 .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-3 .out-of-view{left:-1000vh!important;position:absolute!important}.vk-vp-root.s-3 .icon.icon-error-stub{align-items:center;display:flex;justify-content:center}'};function pg(i,e){B(e,!0),G(i,xT);let[t,o]=De(),r=()=>w(at,"$isLive$",t),a=()=>w(Si,"$availableSubtitlesList$",t),l=()=>w(qt,"$isPreviewTrackHorizontallyAligned$",t),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),_=h(e,"interactiveController",7),x=h(e,"subtitles",7),I=h(e,"subtitlesForcedLanguage",7),T=h(e,"live",7),R=h(e,"preload",7),A=h(e,"autoplay",7),P=h(e,"volume",7,void 0),E=h(e,"muted",7,void 0),K=h(e,"fromTime",7),F=h(e,"canRewindLive",7),z=h(e,"showAds",7),X=h(e,"adsSlotId",7,void 0),se=h(e,"adsParams",7,void 0),Y=h(e,"adsAutoplayParam",7,void 0),re=h(e,"duration",7,void 0),Z=h(e,"logoClickable",7),Ce=h(e,"logoHidden",7),fe=h(e,"isMobile",7),oe=h(e,"showNextPrevButtons",7,!1),pe=h(e,"nextButtonActive",7,!1),Se=h(e,"prevButtonActive",7,!1),de=h(e,"endScreenVideoTitle",7,void 0),qe=h(e,"endScreenVideoThumb",7,void 0),ve=h(e,"isOneVideoPlaylist",7,!1),We=h(e,"supportLink",7),U=h(e,"shadowRootContainer",7),D=h(e,"outerContainerRef",7),ue=h(e,"fullScreenTarget",7,void 0),ce=h(e,"failoverHosts",7,void 0),_e=h(e,"showMiniTimer",7,!1),ge=h(e,"saveRate",7),Ke=h(e,"seekToInteractive",7,ml.noop),te=h(e,"playPrevChapter",7,ml.noop),ze=h(e,"volumeMultiplier",7),ee=h(e,"showAutoplayNext",7),ke=h(e,"showEndScreen",7,!0),Ue=h(e,"keyboardControls",15,void 0),{subscribers:Ie,stores:Pe}=u();g_(p());let Ne=Nt(),_t=p().logoLink,It=s().ui.debugPanelVisible,Pt=s().ui.playerSize,at=s().state.isLive$,ei=s().state.isInteractive&&dd.clientChecker.device.isAndroid,Yt=q(void 0),Dt=null,jt=q(!1);s().getAdmanWrapper().init({switchFromAdsToVideo:s().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:s().actions.internal.switchFromVideoToAds,setMuted:s().actions.external.setMuted},s().ads,{vsid:s().vsid}),I_(s(),Pe),Be(()=>{var W,Rt;s().ui.isMobile.set(fe()),(Rt=(W=m().callbacks)==null?void 0:W.onDomReady)==null||Rt.call(W)});let Q=(W=!1)=>{O(jt,!0),W?s().actions.external.firstStart(z()):s().actions.internal.firstStart(z())},Ae=()=>{if(Ne.features.qualityDetailsSubMenuEnabled){let W=j_(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{X_(s().videoId),om()&&s().actions.internal.setTrafficSavingEnabled(!0);let Rt=em(s().videoId);Rt&&s().actions.internal.setQuality(Rt)}};function Re(W){var xt,lt,qi;let Rt=d()||W;Rt&&s().initVideo({container:n(Yt),sources:Rt,failoverHosts:ce(),subtitles:x(),subtitlesForcedLanguage:I(),volumeMultiplier:ze()});let dt=ml.safeStorage.get(Gd)==="true";It.set(dt),K()>0&&s().actions.external.seekTime(K());let xi=fe()?Ne.volumeDefault:(lt=(xt=P())!=null?xt:Fu())!=null?lt:Ne.volumeDefault,ii=(qi=E())!=null?qi:W_();if(s().actions.external.setVolume(xi),s().actions.external.setMuted(ii),s().getAdmanWrapper().setInitialVolume(ii?0:xi),Ae(),Ne.features.saveRate&&ge()){let Ai=Q_();Ai&&!r()&&s().actions.internal.setPlaybackRate(Ai)}if(ee()){let Ai=Y_();Ai&&s().actions.internal.setAutoplayNextEnabled(Ai)}s().ui.isAutoplay.set(A()),A()&&Q(),R()&&Ne.features.preload&&s().actions.internal.preload()}let we=W=>{if(window.ResizeObserver){let Rt,dt;Dt=new ResizeObserver((0,ml.throttleFn)(xi=>{let ii=xi[0];if(ii.contentBoxSize){let xt=Array.isArray(ii.contentBoxSize)?ii.contentBoxSize[0]:ii.contentBoxSize;Rt=xt.inlineSize,dt=xt.blockSize}else ii.contentRect&&(Rt=ii.contentRect.width,dt=ii.contentRect.height);Pt.set({width:Rt,height:dt})},300)),Dt.observe(W)}W.clientWidth&&W.clientHeight&&Pt.set({width:W.clientWidth,height:W.clientHeight})},Fe=()=>{document.hidden&&s().actions.external.stop()};Ot(()=>{var dt,xi,ii,xt;ei&&document.addEventListener("visibilitychange",Fe),Ne.debugLog&&s().actions.internal.startLogging(),we(n(Yt));let W=Ie.map(lt=>lt.init({store:s(),microStores:Pe,config:m(),interactiveController:_(),uiConfig:p()})),Rt=()=>{ei&&document.removeEventListener("visibilitychange",Fe),Dt==null||Dt.disconnect(),W.forEach(lt=>lt.unsubscribe()),s().destroy()};return((dt=T())==null?void 0:dt.status)==="upcoming"?(s().actions.internal.setLiveWaitingStart(!0),Rt):((xi=T())==null?void 0:xi.status)==="waiting"?(s().actions.internal.setLiveWaitingRecover(!0),Rt):(((ii=T())==null?void 0:ii.status)==="finished"||((xt=T())==null?void 0:xt.status)==="postlive")&&!(d()&&(0,dd.areValidLiveRecordSources)(d()))?(s().actions.internal.setLiveWaitingRecord(!0),Rt):(Re(),Rt)});function xe(){n(jt)?s().actions.external.play():Q(!0)}function kt(){s().actions.external.pause()}function be(W){s().actions.external.setMuted(W)}function He(){s().actions.external.toggleSubtitle()}function Qe(W,Rt){s().actions.external.changeSubtitle(W,Rt)}function st(W){s().actions.external.changeAudioStream(W)}function Jt(){var W;(W=s().webApi.slotsApi)!=null&&W.haveSlots()&&s().actions.external.hideControls()}function Kt(){var W;(W=s().webApi.slotsApi)!=null&&W.haveSlots()&&s().actions.external.showControls()}function pi(W){fe()||W>=0&&W<=1&&s().actions.external.setVolume(W)}function _i(W){s().actions.internal.seekTime(W,T$.SeekAction.UNKNOWN)}function mi(W){s().actions.external.seekEpisodeStartTime(W)}function uo(){s().actions.external.returnFocusToEpisodes()}function yo(W){s().actions.external.setPlaybackRate(W)}function Io(W){s().actions.external.setAutoQualityLimits(W)}function wt(){s().actions.external.setQuality("auto")}function Ht(W){s().actions.external.setTrafficSavingEnabled(W)}function $i(W){s().actions.external.setHighQualityEnabled(W)}let St=kp(Ne.view),Ct=m().playerView==="preview",Si=s().state.availableSubtitlesList$;if(Ne.features.initSubtitles){let W=!1;Be(()=>{var Rt;if(!W&&a().length){W=!0;let dt;if(Ne.features.userVideoPrefs&&s().videoId){let ii=Ku(Ne.userSalt,String(s().videoId));ii!=null&&ii.subtitleTrackId&&(dt=a().find(xt=>xt.value===ii.subtitleTrackId))}let xi=(Rt=I())!=null?Rt:rm();xi&&(dt=a().find(ii=>ii.language===xi)),s().actions.internal.setSubtitle(dt)}})}let qt=s().ui.isPreviewTrackHorizontallyAligned;var Ni=yT();let Ft;var vt=C(Ni);{var Ki=W=>{cg(W,{get store(){return s()},get uiConfig(){return Ne},get thumbUrl(){return b()},get interactiveContainer(){return y()},get live(){return T()},get autoplay(){return A()},get canRewindLive(){return F()},get showAds(){return z()},get adsSlotId(){return X()},get adsParams(){return se()},get adsAutoplayParam(){return Y()},get duration(){return re()},get logoClickable(){return Z()},get logoHidden(){return Ce()},get logoTargetUrl(){return _t},get nextButtonActive(){return pe()},get prevButtonActive(){return Se()},get endScreenVideoTitle(){return de()},get endScreenVideoThumb(){return qe()},get isOneVideoPlaylist(){return ve()},get supportLink(){return We()},get shadowRootContainer(){return U()},get outerContainerRef(){return D()},get fullScreenTarget(){return ue()},get showMiniTimer(){return _e()},get playerStarted(){return n(jt)},get seekToInteractive(){return Ke()},get playPrevChapter(){return te()},firstStart:Q,seekTime:_i,get showEndScreen(){return ke()},get showAutoplayNext(){return ee()},get showNextPrevButtons(){return oe()},get adsExternalApi(){return e.adsExternalApi},get adsJson(){return e.adsJson},get videoContainer(){return n(Yt)},set videoContainer(Rt){O(Yt,Rt,!0)}})},bt=W=>{var Rt=Ve(),dt=le(Rt);{var xi=xt=>{ug(xt,{get thumbUrl(){return b()},get outsideDuration(){return re()},get canRewindLive(){return F()},get videoContainer(){return n(Yt)},set videoContainer(lt){O(Yt,lt,!0)}})},ii=xt=>{lg(xt,{get store(){return s()},get uiConfig(){return Ne},get title(){return v()},get thumbUrl(){return b()},get interactiveContainer(){return y()},get live(){return T()},get autoplay(){return A()},get canRewindLive(){return F()},get showAds(){return z()},get adsSlotId(){return X()},get adsParams(){return se()},get adsAutoplayParam(){return Y()},get duration(){return re()},get logoClickable(){return Z()},get logoHidden(){return Ce()},get logoTargetUrl(){return _t},get nextButtonActive(){return pe()},get prevButtonActive(){return Se()},get endScreenVideoTitle(){return de()},get endScreenVideoThumb(){return qe()},get isOneVideoPlaylist(){return ve()},get supportLink(){return We()},get shadowRootContainer(){return U()},get outerContainerRef(){return D()},get fullScreenTarget(){return ue()},get showMiniTimer(){return _e()},get playerStarted(){return n(jt)},get seekToInteractive(){return Ke()},get playPrevChapter(){return te()},firstStart:Q,get showEndScreen(){return ke()},get showAutoplayNext(){return ee()},get showNextPrevButtons(){return oe()},get adsExternalApi(){return e.adsExternalApi},get adsJson(){return e.adsJson},get getVideoDeeplink(){return e.getVideoDeeplink},get videoContainer(){return n(Yt)},set videoContainer(lt){O(Yt,lt,!0)},get keyboardControls(){return Ue()},set keyboardControls(lt){Ue(lt)}})};V(dt,xt=>{Ct?xt(xi):xt(ii,!1)})}$(W,Rt)};V(vt,W=>{fe()?W(Ki):W(bt,!1)})}S(Ni),N(W=>{Ft=ne(Ni,1,"vk-vp-root s-3",null,Ft,W),Ye(Ni,St)},[()=>({"root--miui-browser":dd.clientChecker.device.isMobile&&dd.clientChecker.browser.isMiuiBrowser,"visible-outside":Ct,"preview-track-horizontally-alinged":l()})]),$(i,Ni);var Vt=H({initVideo:Re,play:xe,pause:kt,setMuted:be,toggleSubtitle:He,changeSubtitle:Qe,changeAudioStream:st,hideControls:Jt,showControls:Kt,setVolume:pi,seekTime:_i,seekEpisodeStartTime:mi,returnFocusToEpisodes:uo,setPlaybackRate:yo,setAutoQualityLimits:Io,setAutoQuality:wt,toggleTrafficSaving:Ht,toggleHighQuality:$i,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 _()},set interactiveController(W){_(W)},get subtitles(){return x()},set subtitles(W){x(W)},get subtitlesForcedLanguage(){return I()},set subtitlesForcedLanguage(W){I(W)},get live(){return T()},set live(W){T(W)},get preload(){return R()},set preload(W){R(W)},get autoplay(){return A()},set autoplay(W){A(W)},get volume(){return P()},set volume(W){P(W)},get muted(){return E()},set muted(W){E(W)},get fromTime(){return K()},set fromTime(W){K(W)},get canRewindLive(){return F()},set canRewindLive(W){F(W)},get showAds(){return z()},set showAds(W){z(W)},get adsSlotId(){return X()},set adsSlotId(W){X(W)},get adsParams(){return se()},set adsParams(W){se(W)},get adsAutoplayParam(){return Y()},set adsAutoplayParam(W){Y(W)},get duration(){return re()},set duration(W){re(W)},get logoClickable(){return Z()},set logoClickable(W){Z(W)},get logoHidden(){return Ce()},set logoHidden(W){Ce(W)},get isMobile(){return fe()},set isMobile(W){fe(W)},get showNextPrevButtons(){return oe()},set showNextPrevButtons(W){oe(W)},get nextButtonActive(){return pe()},set nextButtonActive(W){pe(W)},get prevButtonActive(){return Se()},set prevButtonActive(W){Se(W)},get endScreenVideoTitle(){return de()},set endScreenVideoTitle(W){de(W)},get endScreenVideoThumb(){return qe()},set endScreenVideoThumb(W){qe(W)},get isOneVideoPlaylist(){return ve()},set isOneVideoPlaylist(W){ve(W)},get supportLink(){return We()},set supportLink(W){We(W)},get shadowRootContainer(){return U()},set shadowRootContainer(W){U(W)},get outerContainerRef(){return D()},set outerContainerRef(W){D(W)},get fullScreenTarget(){return ue()},set fullScreenTarget(W){ue(W)},get failoverHosts(){return ce()},set failoverHosts(W){ce(W)},get showMiniTimer(){return _e()},set showMiniTimer(W){_e(W)},get saveRate(){return ge()},set saveRate(W){ge(W)},get showAutoplayNext(){return ee()},set showAutoplayNext(W){ee(W)},get seekToInteractive(){return Ke()},set seekToInteractive(W){Ke(W)},get playPrevChapter(){return te()},set playPrevChapter(W){te(W)},get volumeMultiplier(){return ze()},set volumeMultiplier(W){ze(W)},get showEndScreen(){return ke()},set showEndScreen(W){ke(W)},get keyboardControls(){return Ue()},set keyboardControls(W){Ue(W)}});return o(),Vt}var wT=Ee('<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 fg(i,e){let t=h(e,"isWhite",3,!1),o=f(()=>t()?"#fff":"#909499");et(i,{width:"57",height:"60",get fill(){return n(o)},testId:"stub-icon",children:(r,a)=>{var l=wT();ri(9),$(r,l)},$$slots:{default:!0}})}var ST=L('<div class="title s-0"> </div>'),CT=L('<div class="playerStub s-0"><!> <!></div>'),TT={hash:"s-0",code:".playerStub.s-0{align-items:center;background-color:#222;background-position:50%;background-size:cover;display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;height:100%;justify-content:center;position:relative;width:100%}.title.s-0{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 mg(i,e){G(i,TT);var t=CT(),o=C(t);{var r=d=>{var s=ST(),u=C(s,!0);S(s),N(()=>he(u,e.title)),$(d,s)};V(o,d=>{e.title&&d(r)})}var a=k(o,2);{var l=d=>{let s=f(()=>!!e.thumbUrl);fg(d,{get isWhite(){return n(s)}})};V(a,d=>{(!e.title||!e.thumbUrl)&&d(l)})}S(t),N(()=>Ye(t,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),$(i,t)}var IT=L('<div class="playerError s-1"><!></div>'),ET={hash:"s-1",code:".playerError.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%}"};function vg(i){G(i,ET);var e=IT(),t=C(e);ll(t,{}),S(e),$(i,e)}var ya=require("@vkontakte/videoplayer-shared/es2015"),Wi=require("@vkontakte/videoplayer-shared/es2015"),Jc=require("@vkontakte/videoplayer-core/es2015"),md=require("@vkontakte/videoplayer-statistics/es2015");var Lp=require("@vkontakte/videoplayer-shared/es2015"),Ap=class{constructor(){this.subscription=new Lp.Subscription,this.logger=new Lp.Logger,this.log=this.logger.createComponentLog("MediaSessionApi")}isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:t="",thumbUrl:o=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:t,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 t,o;if(this.isSupported())for(let[r,a]of e)try{(o=(t=navigator.mediaSession).setActionHandler)==null||o.call(t,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(t=>{var a,l;let o=$e(e.state.currentPlaybackRate$),r=$e(e.state.duration$);if(!(!isFinite(t)||!isFinite(r)))try{(l=(a=navigator.mediaSession).setPositionState)==null||l.call(a,{position:t,playbackRate:o,duration:r})}catch(d){this.log({message:`MediaSession setPositionState can't call with position: ${t} and duration: ${r}`})}})))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};var cd=require("@vkontakte/videoplayer-shared/es2015");var PT=Ee('<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),kT=L('<div><div><!></div> <span class="title s-6"> </span></div>'),AT={hash:"s-6",code:".player-pip-dummy.s-6{align-items:center;background-color:#19191a;display:flex;flex-direction:column;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;height:100%;justify-content:center;width:100%}.player-pip-dummy.is-pip-api.s-6{position:relative}.dummy-image.s-6 svg{transform:scale(1.07143)}.dummy-image.desktop.s-6{transform:scale(1.07143) rotate(-90deg) rotateY(180deg)}.title.s-6{color:#fff;font-size:16px;padding:18px 20px 10px;text-align:center}"};function gg(i,e){B(e,!0),G(i,AT);let[t,o]=De(),r=()=>w(u,"$interfaceLanguage$",t),a=()=>w(m,"$isMobile$",t),l=ye(),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=kp(d.view);var y=kT();let _;var x=C(y);let I;var T=C(x);et(T,{width:"57",height:"56",testId:"pip-dummy-icon",children:(P,E)=>{var K=PT();ri(),$(P,K)},$$slots:{default:!0}}),S(x);var R=k(x,2),A=C(R,!0);S(R),S(y),N((P,E)=>{_=ne(y,1,"player-pip-dummy s-6",null,_,P),Ye(y,b),I=ne(x,1,"dummy-image s-6",null,I,E),he(A,n(v))},[()=>({"is-pip-api":s}),()=>({desktop:!a()})]),$(i,y),H(),o()}var LT=Object.defineProperty,MT=(i,e,t)=>e in i?LT(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,$a=(i,e,t)=>MT(i,typeof e!="symbol"?e+"":e,t),hg=(i,e,t)=>new Promise((o,r)=>{var a=s=>{try{d(t.next(s))}catch(u){r(u)}},l=s=>{try{d(t.throw(s))}catch(u){r(u)}},d=s=>s.done?o(s.value):Promise.resolve(s.value).then(a,l);d((t=t.apply(i,e)).next())}),VT=460,RT=280,Wc=class{constructor({enabled:e=!0}={enabled:!0}){$a(this,"playerDomElement"),$a(this,"playerParentShadowRoot"),$a(this,"playerDummyElement"),$a(this,"svelteContext"),$a(this,"pipWindow"),$a(this,"info",{isActive$:new cd.ValueSubject(!1),isEnabled$:new cd.ValueSubject(!1),type:1}),$a(this,"pipActive",!1),$a(this,"pipApi"),this.info.isEnabled$=new cd.ValueSubject(e),vp()&&(this.pipApi=new Fs({enabled:e}),this.pipApi.info.isActive$.subscribe(t=>{(t&&!this.info.isActive$.getValue()||!t&&this.pipActive)&&this.info.isActive$.next(t),this.pipActive=t}))}isSupported(){let{isEmbed:e}=(0,cd.detectEmbed)();return"documentPictureInPicture"in window&&!e}isActive(){return this.info.isActive$.getValue()}setPlayerDomElement(e,t){this.playerDomElement=e,this.playerParentShadowRoot=t}setContext(e){this.svelteContext=e}request(){return hg(this,null,function*(){var e,t;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=yield documentPictureInPicture.requestWindow({width:VT,height:RT,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=ts(gg,d),(e=this.pipWindow)==null||e.document.body.append(a),this.info.isActive$.next(!0),(t=this.pipWindow)==null||t.addEventListener("unload",s=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(Fa(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1),this.pipWindow=void 0)})})}exit(){return hg(this,null,function*(){return new Promise(e=>{var t,o,r;this.pipWindow?(t=documentPictureInPicture.window)==null||t.close():(o=this.pipApi)!=null&&o.isActive()&&((r=this.pipApi)==null||r.exit()),e()})})}dispose(){return hg(this,null,function*(){yield this.exit()})}setEnabled(e){var t;this.info.isEnabled$.next(e),(t=this.pipApi)==null||t.setEnabled(e)}assignPlayerContainer(e){var t;(t=this.pipApi)==null||t.assignPlayerContainer(e)}updateVideoElement(){var e;(e=this.pipApi)==null||e.updateVideoElement()}setExternalEventHandlers(e){var t;(t=this.pipApi)==null||t.setExternalEventHandlers(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 I$(i){return i instanceof Wc}var Mp=class{static getLatestSupportedVersion(e){let t=new Fs(e),o=new Wc(e);if(o.isSupported())return o;if(t.isSupported())return t}};function Kc(i,e){var r,a;let t=new Set([...Object.keys(i),...Object.keys(e)]),o={};for(let l of t)o[l]=(a=(r=e[l])!=null?r:i[l])!=null?a:void 0;return o}var E$="Inner error. Unexpectedly root annotation container null reference exception",P$="Annotation with such name already exists",k$="Annotation with such name does not exist";var ud=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var pd=require("@vkontakte/videoplayer-shared/es2015"),OT="1",NT=100,Vp=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new pd.Subscription}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let t=(0,pd.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"},NT);this.subscriptions.add((0,pd.observeElementSize)(this.rootAnnotationsContainer).subscribe(({width:o,height:r})=>{this.playerSize={width:o,height:r},t()})),this.mutationObserver=new MutationObserver(t),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,t){var o;if(!this.rootAnnotationsContainer)throw new ud(E$);if(this.annotations.has(e))throw new ud(P$);t.style.zIndex=(o=t.style.zIndex)!=null?o:OT,t.style.position="absolute",this.rootAnnotationsContainer.append(t),this.annotations.set(e,t)}get(e){let t=this.annotations.get(e);if(!t)throw new ud(k$);return t}remove(e){let t=this.get(e);this.annotations.delete(e)&&t.remove()}clear(){for(let e in this.annotations.keys())this.remove(e)}destroy(){var e;this.annotations.clear(),this.subscriptions.unsubscribe(),(e=this.mutationObserver)==null||e.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,t,o){let r=e.offsetTop,a=e.offsetLeft,l=e.offsetWidth,d=e.offsetHeight;return r<0||a<0||a+l>t||r+d>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};var vl=require("@vkontakte/videoplayer-shared/es2015"),gn=class{init({store:e,microStores:t,interactiveController:o,config:r}){return(0,vl.assertNonNullable)(e),(0,vl.assertNonNullable)(t),(0,vl.assertNonNullable)(r),r.interactiveData&&(0,vl.assertNonNullable)(o),this.subscription=new vl.Subscription,this.subscription}};var qc=class extends gn{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$=Gt(Le({},ae(null)),{toggle:()=>this.state$.update(t=>!t)})}init(t){let o=super.init(t),{isInteractiveExpectation$:r}=t.store.state;return o.add(r.subscribe(a=>{this.state$.set(a?!0:null)})),o}};var Qc=class extends gn{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$=Gt(Le({},ae(null)),{toggle:()=>this.state$.update(t=>!t)})}init(t){let o=super.init(t),{microStores:r,store:a}=t,{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 Gc=class extends gn{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=ae("tooltip_chapter_without_interactive")}init(t){let o=super.init(t),{store:r}=t;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 A$=require("@vkontakte/videoplayer-shared/es2015");var _g=ae(!1),Rp=null,Yc=class extends gn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$=Gt(Le({},_g),{set:(t,o=!1)=>{t!==$e(_g)&&(this.clearTimeout(),_g.set(t),!t&&Rp&&(Rp=!1),t&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()})}init(t){let o=super.init(t),{store:r,config:a}=t,{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,A$.combine)({isPlaying$:d,isInteractiveTime$:l,interactiveTimeIndicator:u}).subscribe(({isPlaying$:p,isInteractiveTime$:v,interactiveTimeIndicator:b})=>{var y,_;if(!(!p||!(b!=null&&b.isDisplayed))){if(!v)return this.state$.set(!1);m.tooltipHelpHintActive&&Rp===null&&(Rp=!0,m.tooltipHelpHintActive=!1,this.state$.set(!0),(_=(y=r.callbacks)==null?void 0:y.onInteractiveTimeIndicatorHintDeactivated)==null||_.call(y))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};var Op=require("@vkontakte/videoplayer-shared/es2015");var jc=class extends gn{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$=Gt(Le({},ae(null)),{toggle:Op.noop});this.checkIfShouldHide=t=>Hs(t,"s")}init(t){let o=super.init(t),{store:r,interactiveController:a}=t,l=r.ui.currentGridType$,d=r.getLogger().createComponentLog("GraphIsOpened microStore");return this.state$.toggle=()=>gt(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(Qf),!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(Qf),!v&&this.graphMadePause&&r.actions.internal.pause()}catch(y){d({message:"Cant show graph"})}}}),o.add((0,Op.combine)({graphIsOpened:this.state$,currentGridType:l}).subscribe(m=>gt(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 bg=require("@vkontakte/videoplayer-shared/es2015"),Xc=class extends gn{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:ae(!1),isEnabled$:ae(!1),type$:ae(void 0)}}init(t){let o=super.init(t),{store:r}=t,{info:{isActive$:a,isEnabled$:l,type:d}}=r.webApi.pictureInPictureApi||{info:{isActive$:new bg.ValueSubject(!1),isEnabled$:new bg.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 Dp=require("@vkontakte/videoplayer-shared/es2015");var Np=require("@vkontakte/videoplayer-shared/es2015");var L$=({maxShowCount:i,timeout:e})=>{let t=[i!==0?DT({maxCount:i}):void 0,e!==0?BT({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>t.forEach(r=>r.notificationShowed(o)),canShowNotification:o=>t.every(r=>r.canShowNotification(o))}},DT=({maxCount:i})=>{let e={};return{notificationShowed:t=>{var o,r;e[t]=((o=e[t])!=null?o:0)+1,Np.safeStorage.set("videoplayer_notifications_manager_count",JSON.stringify((r=e[t])!=null?r:0))},canShowNotification:t=>{var o;return((o=e[t])!=null?o:0)<i}}},BT=({timeout:i})=>{let e="videoplayer_notifications_manager",t=()=>{try{return JSON.parse(Np.safeStorage.get(e)||"{}")}catch(a){return{}}},o=a=>Np.safeStorage.set(e,JSON.stringify(a)),r=a=>{let l=t();delete l[a],o(l)};return{notificationShowed:a=>{o(Gt(Le({},t()),{[a]:{timeout:i,launchTime:Date.now()}}))},canShowNotification:a=>{let l=t()[a];if(l){let d=Date.now()-l.launchTime>i;return d&&r(a),d}else return!0}}};var Zc=class extends gn{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:ae({}),showNotification:t=>{this.state$.notificationsToShow$.update(o=>(o[t]=!0,o)),this.notificationManager.notificationShowed(t)},closeNotification:t=>{this.state$.notificationsToShow$.update(o=>(delete o[t],o))}}}init(t){let o=super.init(t),{store:r,uiConfig:{features:{maxCountShowSlowVideoNotification:a,timeoutShowSlowVideoNotification:l,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:s}}}=t;this.notificationManager=L$({maxShowCount:a,timeout:l});let u=r.getPlayer();return o.add(u.events.severeStallOccured$.pipe((0,Dp.filterChanged)(),(0,Dp.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 M$=()=>[qc,Qc,Gc,Yc,jc,Xc,Zc].reduce(({subscribers:i,stores:e},t)=>{let o=new t;return{subscribers:[...i,o],stores:Gt(Le({},e),{[o.stateName]:o.state$})}},{subscribers:[],stores:{}});var fd=require("@vkontakte/videoplayer-shared/es2015");var Bp=class{constructor(e){this.getActiveElement=e;this.focusableElements=[];this.isActive=!1;this.handleTabKey=e=>{if(this.updateFocusableElements(),!this.focusableElements.length)return;let t=this.focusableElements[0],o=this.focusableElements[this.focusableElements.length-1],r=this.getActiveElement();e.shiftKey&&r===t?(e.preventDefault(),o.focus()):!e.shiftKey&&r===o&&(e.preventDefault(),t.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(t=>!t.disabled&&t.offsetParent!==null)}destroy(){this.deactivate()}setContainer(e){this.container=e}};var Hp=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 Bp(()=>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 HT=L('<div class="root s-2"><!></div>'),FT={hash:"s-2",code:".root.s-2{align-items:center;display:flex;inset:0;justify-content:center;pointer-events:none;position:absolute;z-index:1}"};function $g(i,e){B(e,!0),G(i,FT);let t=null,o=q(null);Be(()=>(n(o)&&(t=window.setTimeout(()=>{O(o,null)},e.animationDuration)),()=>{t&&clearTimeout(t)}));function r(s){e.playbackStatusShow&&O(o,s?"prev":"next",!0)}var a=Ve(),l=le(a);{var d=s=>{var u=Ve(),m=le(u);Vs(m,()=>n(o),p=>{var v=HT(),b=C(v);let y=f(()=>n(o)==="prev");zc(b,{get duration(){return e.animationDuration},get Icon(){return ha},get reversed(){return n(y)}}),S(v),$(p,v)}),$(s,u)};V(l,s=>{e.playbackStatusShow&&n(o)&&s(d)})}return $(i,a),H({startVideoChangedAnimation:r})}var V$=require("@vkontakte/videoplayer-shared/es2015"),yg=(0,V$.getWindow)().HTMLElement||class{constructor(){this.isConnected=!1}};var UT=Object.defineProperty,zT=Object.defineProperties,WT=Object.getOwnPropertyDescriptors,R$=Object.getOwnPropertySymbols,KT=Object.prototype.hasOwnProperty,qT=Object.prototype.propertyIsEnumerable,wg=(i,e,t)=>e in i?UT(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Qs=(i,e)=>{for(var t in e||(e={}))KT.call(e,t)&&wg(i,t,e[t]);if(R$)for(var t of R$(e))qT.call(e,t)&&wg(i,t,e[t]);return i},QT=(i,e)=>zT(i,WT(e)),Zt=(i,e,t)=>wg(i,typeof e!="symbol"?e+"":e,t),Fp=(i,e,t)=>new Promise((o,r)=>{var a=s=>{try{d(t.next(s))}catch(u){r(u)}},l=s=>{try{d(t.throw(s))}catch(u){r(u)}},d=s=>s.done?o(s.value):Promise.resolve(s.value).then(a,l);d((t=t.apply(i,e)).next())}),GT={preload:!0,autoplay:!1,repeat:!1,loop:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:Wi.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:(0,Jc.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},jn=q(void 0),xg=ui({animationDuration:0,playbackStatusShow:!1}),Up=class extends yg{constructor(){super(),Zt(this,"svelteStubComponent"),Zt(this,"svelteRootComponent"),Zt(this,"sveltePersistentLayerComponent"),Zt(this,"svelteErrorComponent"),Zt(this,"store"),Zt(this,"microStoresRoot"),Zt(this,"statistics"),Zt(this,"sentry"),Zt(this,"_shadowRoot"),Zt(this,"playerContainer"),Zt(this,"rootContainer"),Zt(this,"stateContainer"),Zt(this,"shadowRootContainer"),Zt(this,"playerId"),Zt(this,"uiConfig"),Zt(this,"coreConfig"),Zt(this,"statisticsConfig"),Zt(this,"metaConfig"),Zt(this,"interactiveController"),Zt(this,"interactiveContainer"),Zt(this,"graphMadePause"),Zt(this,"currentPlayingVideoIndex",0),Zt(this,"needToRepeatPlaylist",!1),Zt(this,"videoConfig"),Zt(this,"pictureInPictureApi"),Zt(this,"mediaSessionApi"),Zt(this,"unsubscribePlayerPhaseSubscription"),Zt(this,"logger"),Zt(this,"log"),Zt(this,"subscription"),Zt(this,"interactiveSubscription"),Zt(this,"annotationsApi"),Zt(this,"slotsApi"),Zt(this,"focusManager"),Zt(this,"prevIsid"),Zt(this,"isInited",!1),Zt(this,"postponedInitParams",null),Zt(this,"internalsExposure",null),Zt(this,"shadowDOMCallbacksDisabled",!1),Zt(this,"fatalError$",new ya.ValueSubject(null)),Zt(this,"createOneStat",(e,t={})=>{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:_,refDomain:x,deviceId:I,interactiveData:T}=Kc(this.videoConfig,t),R=(o=T==null?void 0:T.projectInfo)==null?void 0:o.pid,A=(a=(r=this.interactiveController)==null?void 0:r.state.isReplay$.getValue())!=null?a:!1;A&&(this.prevIsid=void 0);let{unitedVideoId:P,isClip:E=!1}=e;if(this.uiConfig.features.statistics&&P)try{return new md.OneStat(Qs({movieId:P,albumId:d,place:s,trackCode:m,vkAppId:p,autoplay:(l=b&&!this.interactiveController)!=null?l:!1,mobile:_!=null?_:y,clip:E,refDomain:x,deviceId:I,isPreviewPlayerView:this.videoConfig.playerView==="preview"},R&&(!this.isInited||A)&&{projectId:Number(R)}),Qs({refreshAuthToken:v,userSalt:u,config:this.statisticsConfig},this.interactiveController&&{useIsid:!0,isid:this.prevIsid}))}catch(F){console.error(F),this.log({message:F.message})}}),fd.devNull.create("ui"),this.logger=new Wi.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new Wi.Subscription,this.interactiveSubscription=new Wi.Subscription,this.graphMadePause=!1,this.fatalError$.subscribe(e=>{this.unmountComponent(this.svelteErrorComponent),e&&(this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.svelteErrorComponent=ts(vg,{target:this.playerContainer}))})}connectedCallback(){var e,t;if(this.rootContainer)return;this.initPlayerRootContainers();let o=(e=this.getAttribute("stub-title"))!=null?e:void 0,r=(t=this.getAttribute("stub-thumb-url"))!=null?t:void 0,a=ui({title:o,thumbUrl:r}),l={target:this.playerContainer,props:a};this.svelteStubComponent=ts(mg,l),this.sveltePersistentLayerComponent=ts($g,{target:this.playerContainer,props:xg}),this.postponedInitParams&&(this.initPlayer(...this.postponedInitParams),this.postponedInitParams=null)}updatePersistentLayerProps(){if(!this.uiConfig)return;let{playbackStatusNextVideoAnimationDuration:e,features:{playbackStatusShow:t,playbackStatusNextVideoShow:o}}=this.uiConfig;xg.animationDuration=e,xg.playbackStatusShow=t&&o}disconnectedCallback(){var e,t,o,r,a,l,d;this.shadowDOMCallbacksDisabled||((e=this.annotationsApi)==null||e.destroy(),(t=this.slotsApi)==null||t.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(),fd.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 t;let o=(t=this.store)==null?void 0:t.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,t={}){if(!this.videoConfig)return;let{deviceId:o,preload:r,refreshStatAuthToken:a}=Kc(this.videoConfig,t),{unitedVideoId:l}=e;if(this.uiConfig.features.thinStatistics&&l)return new md.ThinOneStat.ThinOneStat({deviceId:o,movieId:l,preload:r,isPreviewPlayerView:this.videoConfig.playerView==="preview"},{config:this.statisticsConfig,refreshAuthToken:a})}createPlayer(e,t={},o){var r,a,l,d,s,u,m,p,v,b,y;if(!this.videoConfig)return;let{albumId:_,statPlace:x,statAuthToken:I,preload:T,autoplay:R,volume:A,muted:P,fromTime:E,canRewindLive:K,supportLink:F,showAds:z,adsSlotId:X,adsParams:se={},adsAutoplayParam:Y,interfaceLanguage:re,isCyrillicRelatedInterface:Z,logoClickable:Ce,logoHidden:fe,isMobile:oe,isTouch:pe,isAudioDisabled:Se,isLiveCatchUpMode:de,fullScreenTarget:qe,failoverHosts:ve,canDownload:We,callbacks:U,interactiveData:D,showThumbTimer:ue,additionalButtons:ce=[],additionalSettingsMenuItems:_e=[],additionalContextMenuItems:ge=[],repeat:Ke,loop:te,saveRate:ze,volumeMultiplier:ee,showEndScreen:ke,showAutoplayNext:Ue,mediascopePixels:Ie}=Kc(this.videoConfig,t),{sources:Pe,title:Ne,thumbUrl:_t,unitedVideoId:It,isClip:Pt=!1,duration:at,adsParams:Et={},videoEpisodes:ei,previewThumbsData:Yt,subtitles:Dt,subtitlesForcedLanguage:jt,live:Q,adsExternalApi:Ae,adsJson:Re}=e;if(!Pe&&!Q){let Ht=new Error("empty sources and live");this.fatalError$.next(Ht),(r=U.onCrashed)==null||r.call(U,Ht.message);return}let we=Qs(Qs({},se),Et),Fe=this.getNextVideoInfo(),xe={sources:Pe,title:Ne,thumbUrl:_t,subtitles:Dt,subtitlesForcedLanguage:jt,unitedVideoId:It,isClip:Pt,live:Q,albumId:_,statPlace:x,autoplay:R,muted:P,volume:A,fromTime:E,canRewindLive:K,showAds:z,adsSlotId:X,adsParams:we,adsAutoplayParam:Y,duration:at,logoClickable:Ce,logoHidden:fe,isTouch:pe!=null?pe:oe,repeat:Ke,loop:te,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Fe.nextVideoTitle,endScreenVideoThumb:Fe.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},kt={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi,focusManager:this.focusManager};this.log({message:`create player, props: ${JSON.stringify(xe)}`});let be=(a=this.interactiveController)==null?void 0:a.state.statistics$.getValue(),He=(be==null?void 0:be.oneStat)||this.createOneStat(e,t),Qe=this.createThinOneStat(e,t),st;Ie&&(st=new md.MediascopePixel({pixels:Ie})),(He||Qe)&&(this.statistics=new hp(He,Qe,st,be==null?void 0:be.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Qa(this.uiConfig.sentry,{version:aa,env:Zd},{movieId:It,albumId:_,place:x,autoplay:(l=R&&!this.interactiveController)!=null?l:!1,mobile:pe!=null?pe:oe,clip:Pt});let Kt=this.uiConfig.features.apptracer.enabled?new ya.AppTracer("videoplayer",this.uiConfig.features.apptracer,{version:aa,env:Zd},(0,ya.withoutNullable)({movieId:It,albumId:_,place:x,autoplay:(d=R&&!this.interactiveController)!=null?d:!1,mobile:pe!=null?pe:oe,clip:Pt})):void 0;this.interactiveController&&((m=this.prevIsid)!=null||(this.prevIsid=(u=(s=this.statistics)==null?void 0:s.oneStat)==null?void 0:u.isid$.getValue())),this.sentry=Qs(Qs({},this.sentry),Qa.getInstance());let pi=!!D,_i=[],mi="tooltip_interactive_go_back_disabled_first";if(pi&&this.interactiveController){let Ht=this.interactiveController.state.isInitialChapter$.getValue(),$i=this.interactiveController.getHistoryState();Ht&&_i.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||_i.push("SEEK_TO_INTERACTIVE_BUTTON"),$i.hasPrevChapter$.getValue()||(_i.push("PLAY_PREV_CHAPTER_BUTTON"),Ht||($i.isGoBackLimited$.getValue()?mi="tooltip_interactive_go_back_disabled_limit":mi="tooltip_interactive_go_back_disabled"))}let uo=()=>{var Ht;this.isInited=!1,this.prevIsid=void 0;let $i=(o==null?void 0:o.info.isEnded$.getValue())&&((Ht=this.interactiveController)==null?void 0:Ht.state.isEndChapter$.getValue());U.onReplayInteractiveVideo&&!$i?U.onReplayInteractiveVideo():this.replayInteractiveVideo()},yo=Ke&&this.videoConfig.videos.length===1;this.store=Ub({player:o,interfaceLanguage:re,isCyrillicRelatedInterface:Z,videoId:It,isClip:Pt,isLiveCatchUpMode:de,isAudioDisabled:Se,statAuthToken:I,callbacks:U,webApi:kt,videoEpisodes:ei,previewThumbsData:Yt,canDownload:We,uiConfig:this.uiConfig,coreConfig:this.coreConfig,metaConfig:this.metaConfig,disabledControls:_i,isInteractive:pi,saveRate:ze,interactiveRanges$:(p=this.interactiveController)==null?void 0:p.state.interactiveRanges$,isInteractiveTime$:(v=this.interactiveController)==null?void 0:v.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:uo,playPrevChapterDisabledTooltip:mi,hasInteractiveBranches:!!((y=(b=this.interactiveController)==null?void 0:b.getChapterBranches())!=null&&y.length),additionalButtons:this.uiConfig.features.additionalButtons?ce:[],additionalSettingsMenuItems:_e!=null?_e:[],additionalContextMenuItems:ge!=null?ge:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),onVideoChanged:Ht=>{var $i;return($i=this.sveltePersistentLayerComponent)==null?void 0:$i.startVideoChangedAnimation(Ht)},looped:this.uiConfig.features.useLoopSetting?te:yo,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView,playerId:this.playerId,appTracer:Kt});let{stores:Io}=this.microStoresRoot=M$(),wt=()=>{var Ht,$i,St,Ct,Si,qt;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(Ft=>{var vt;return(vt=U==null?void 0:U.onCurrentFormatChanged)==null?void 0:vt.call(U,Ft)})),this.subscription.add(Io.interactiveControlsOpacity$.subscribe(Ft=>{var vt;Ft!==null&&((vt=this==null?void 0:this.interactiveController)==null||vt.setDisabledControls(Ft))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(Ft=>{var vt;return(vt=U==null?void 0:U.onThroughputEstimationChanged)==null?void 0:vt.call(U,Ft)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(Ft=>{var vt;return(vt=U==null?void 0:U.onTrafficSavingEnabledChanged)==null?void 0:vt.call(U,Ft)})),this.subscription.add(this.store.state.highQualityEnabled$.subscribe(Ft=>{var vt;return(vt=U==null?void 0:U.onHighQualityEnabledChanged)==null?void 0:vt.call(U,Ft)})),this.subscription.add(this.store.state.isAutoQualityEnabled$.subscribe(Ft=>{var vt;return(vt=U==null?void 0:U.onAutoQualityEnabledChanged)==null?void 0:vt.call(U,!!Ft)})),this.subscription.add(new Wi.Observable(Ft=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(vt=>Ft.next(vt)))}).pipe((0,Wi.skip)(1)).subscribe(Ft=>{var vt;return(vt=U==null?void 0:U.onCurrentPlaybackRateChanged)==null?void 0:vt.call(U,Ft)})),this.subscription.add(this.store.state.volume$.subscribe(Ft=>{var vt;return(vt=U==null?void 0:U.onVolumeChange)==null?void 0:vt.call(U,Ft)})),this.subscription.add(this.store.state.muted$.subscribe(Ft=>{var vt,Ki,bt,Vt;if(Ft)(vt=U==null?void 0:U.onMute)==null||vt.call(U);else{let W=(bt=((Ki=this.store)==null?void 0:Ki.state.volume$)&&$e(this.store.state.volume$))!=null?bt:0;(Vt=U==null?void 0:U.onUnmute)==null||Vt.call(U,W)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(Ft=>{var vt;return(vt=U==null?void 0:U.onVideoBitrateChanged)==null?void 0:vt.call(U,Ft)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(Ft=>{var vt;let Ki=(vt=this.store)==null?void 0:vt.ui.controls.disabledControls$;Ki&&(Ft&&!Ki.includes(Yd)&&Ki.add(Yd),Ft||Ki.remove(Yd))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(Ft=>Fp(this,null,function*(){var vt;if(!Jc.clientChecker.browser.isSamsungBrowser||!Ft||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&(yield this.replayInteractiveChapter((vt=this.videoConfig)==null?void 0:vt.callbacks.onExternalFullscreenExit))}))),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(Ft=>{var vt;return(vt=U==null?void 0:U.onVSIDChanged)==null?void 0:vt.call(U,Ft)})),this.initMediaSession(),O(jn,{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:Pe,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:Ne,thumbUrl:_t,subtitles:Dt,subtitlesForcedLanguage:jt,live:Q,preload:T,autoplay:R,muted:P,volume:A,fromTime:E,canRewindLive:K,supportLink:F,showAds:z,adsSlotId:X,adsParams:we,adsAutoplayParam:Y,duration:at,logoClickable:Ce,logoHidden:fe,isMobile:pe!=null?pe:oe,failoverHosts:ve,fullScreenTarget:qe,saveRate:ze,shadowRootContainer:this.shadowRootContainer,showMiniTimer:ue,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Fe.nextVideoTitle,endScreenVideoThumb:Fe.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:ee,showEndScreen:ke,showAutoplayNext:Ue,adsExternalApi:Ae,adsJson:Re,getVideoDeeplink:this.videoConfig.getVideoDeeplink},!0);let Ni={target:this.playerContainer,props:n(jn)};this.svelteRootComponent=ts(pg,Ni),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(St=($i=(Ht=this.videoConfig)==null?void 0:Ht.callbacks)==null?void 0:$i.onInited)==null||St.call($i)),(Ct=this.internalsExposure)==null||Ct.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((qt=(Si=this.videoConfig)==null?void 0:Si.callbacks)!=null&&qt.onDevNullLog)?fd.devNull.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):fd.devNull.destroy("ui")};this.coreConfig.asyncResolveClientChecker?Jc.clientChecker.isInited$.subscribe(Ht=>{Ht&&(console.log("UI SDK async start"),wt())}):wt()}addPlayerInfoSubscriptions(){var e,t;let o=this.store,r=(e=this.microStoresRoot)==null?void 0:e.stores;if(!o||!r)return;let a=(t=this.videoConfig)==null?void 0:t.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["theater-mode-button"].subscribe(d=>{var s;return(s=l.onTheaterModeChanged)==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,t=!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,Wi.isNonNullable)(r.unitedVideoId)&&((o=this.store)==null||o.actions.internal.nextMovie(r.unitedVideoId)),this.unmountComponent(this.svelteRootComponent),this.createPlayer(r,{autoplay:t,fromTime:0},e)}playPrevChapter(){var e;(e=this.interactiveController)==null||e.playPrevChapter()}seekToInteractive(){var e;let t=(e=this.interactiveController)==null?void 0:e.getNextInteractiveStartTime();typeof t=="number"&&this.seekTime(t/1e3)}initInteractives(){return Fp(this,null,function*(){var e,t,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=(t=this.store)==null?void 0:t.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$:_}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(_.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 x=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(I=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]=QT(Qs({},I.config),{title:(m==null?void 0:m.title)||I.config.title});let T=x?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(I.player,T),x&&(x=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:I,actionType:T})=>{var R,A,P,E,K,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 X=$e(this.store.state.isPlaying$)||z;if(((P=(R=this.videoConfig)==null?void 0:R.isTouch)!=null?P:(A=this.videoConfig)!=null&&A.isMobile)&&X){this.store.ui.interactiveHideMobileControls.set(!0);return}(F=(E=this.videoConfig)==null?void 0:(K=E.callbacks).onDisabledInteractiveClick)==null||F.call(K)}})),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 R,A,P;T.length&&((P=(A=(R=this.videoConfig)==null?void 0:R.callbacks)==null?void 0:A.onInteractiveHistoryChanged)==null||P.call(A,T))}))}(l=(a=this.videoConfig)==null?void 0:a.callbacks)!=null&&l.onInteractiveChapterChanged&&this.subscription.add(this.interactiveController.events.chapterChanged$.subscribe(I=>{var T,R,A;(A=(T=this.videoConfig)==null?void 0:(R=T.callbacks).onInteractiveChapterChanged)==null||A.call(R,I.chapter,I.manifestVideo)})),this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var I,T,R,A;(I=this.microStoresRoot)==null||I.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(A=(T=this.videoConfig)==null?void 0:(R=T.callbacks).onInteractiveTimeIndicatorClick)==null||A.call(R)})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(I=>{this.log({message:I.toString()})}))}catch(d){this.log({message:d.message})}})}initPlayer(e,t={}){var o,r,a,l,d,s,u,m,p,v,b,y,_,x,I,T,R,A,P,E,K,F,z,X,se;if(!this.isConnected){this.postponedInitParams=[e,t];return}if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData){let Y=new Error("empty videos");this.fatalError$.next(Y),(r=(o=e.callbacks)==null?void 0:o.onCrashed)==null||r.call(o,Y.message);return}else this.fatalError$.next(null);if(this.videoConfig=Kc(GT,(0,Wi.cloneDeepWith)(e,Y=>Y instanceof yg?Y:void 0)),this.playerId=(0,Wi.getPlayerId)(e.playerId),this.uiConfig=v_((a=t.ui)!=null?a:{}),this.updatePersistentLayerProps(),this.coreConfig=(l=t.core)!=null?l:{},this.statisticsConfig=(d=t.statistics)!=null?d:{},this.metaConfig=t.meta,this.uiConfig.features.forcePlayerDisplayBlock&&(this.rootContainer&&(this.rootContainer.style.minHeight="unset"),this.style.display="block",this.style.width="100%",this.style.height="100%"),this.videoConfig.playerView==="preview"&&(this.playerContainer.style.contain="none"),this.sentry={config:(s=this.uiConfig.sentry)!=null?s:{}},this.uiConfig.features.exposeInternalsToGlobal&&((u=this.internalsExposure)!=null||(this.internalsExposure=new Wi.InternalsExposure("ui",this.playerId))),fd.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,ya.now)()]}),(0,Wi.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(v=(p=this.uiConfig.features.mediaSession)!=null?p:this.videoConfig.isMediaSessionEnabled)!=null?v:!0),(0,Wi.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=(x=(_=this.uiConfig.features.dpip)!=null?_:this.videoConfig.isPictureInPictureEnabled)!=null?x:!0),this.uiConfig.ads.paramsOverride=Qs({preview:(I=this.uiConfig.ads.preview)!=null?I:this.videoConfig.adsPreviewParam},this.uiConfig.ads.paramsOverride),this.videoConfig.isTouch=(R=(T=this.uiConfig.isMobile)!=null?T:this.videoConfig.isTouch)!=null?R:this.videoConfig.isMobile,(A=this.videoConfig).autoplay&&(A.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(P=this.uiConfig.ads.enable)!=null?P:this.videoConfig.showAds,this.videoConfig.adsSlotId=(E=this.uiConfig.ads.slot)!=null?E:this.videoConfig.adsSlotId,this.videoConfig.logoHidden=!((K=this.uiConfig.showLogo)!=null?K:!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&&((X=this.videoConfig.videos)!=null&&X[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let Y={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=Mp.getLatestSupportedVersion(Y):this.pictureInPictureApi=new Fs(Y)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new Ap:void 0,this.slotsApi=this.uiConfig.features.slots?new Ip(this.uiConfig.disabledSlotIds):void 0,this.annotationsApi=this.uiConfig.features.annotations?new Vp(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),this.focusManager=this._shadowRoot?new Hp(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]),I$(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(se=this.slotsApi)==null||se.init(this.shadowRootContainer,this.store)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateVideos(e,t){if(!this.videoConfig)return;this.log({message:`update ${t} videos, videos: ${JSON.stringify(e)}`}),t==="prev"?(this.videoConfig.videos.splice(0,this.currentPlayingVideoIndex),this.videoConfig.videos.unshift(...e),this.currentPlayingVideoIndex=e.length):t==="next"&&(this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...e));let o=this.getNextVideoInfo();n(jn)&&(n(jn).showNextPrevButtons=this.needToShowNextPrevButtons(),n(jn).nextButtonActive=this.isNextButtonActive(),n(jn).prevButtonActive=this.isPrevButtonActive(),n(jn).endScreenVideoTitle=o.nextVideoTitle,n(jn).endScreenVideoThumb=o.nextVideoThumb,n(jn).isOneVideoPlaylist=this.isOneVideoPlaylist())}updatePrevVideos(e){this.updateVideos(e,"prev")}updateNextVideos(e){this.updateVideos(e,"next")}initMediaSession(){var e,t;this.mediaSessionApi&&((e=this.unsubscribePlayerPhaseSubscription)==null||e.call(this),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=(t=this.store)==null?void 0:t.playerPhase.subscribe(o=>{o==="video"?this.setupMediaSessionForVideo():o==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:e,thumbUrl:t}=Qs({},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:t}),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="Реклама",t=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:e}),this.mediaSessionApi.updateActionHandlers(t),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,t,o,r;this.isControlDisabled("PLAY_BUTTON")||(e=this.store)!=null&&e.playerPhase.is("LiveWaitingStart")||(t=this.store)!=null&&t.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 t=!!this.interactiveController;t&&(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),t?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(o))}setMuted(e){var t;this.log({message:`set muted, muted: ${e}`}),(t=this.svelteRootComponent)==null||t.setMuted(e)}toggleSubtitle(){var e;this.log({message:"toggle subtitle"}),(e=this.svelteRootComponent)==null||e.toggleSubtitle()}changeSubtitle(e,t){var o;this.log({message:"change subtitle"}),(o=this.svelteRootComponent)==null||o.changeSubtitle(e,t)}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 t,o;(o=(t=this.store)==null?void 0:t.webApi.pictureInPictureApi)==null||o.setEnabled(e)}setVolume(e){var t;this.log({message:`set volume, volume: ${e}`}),(t=this.svelteRootComponent)==null||t.setVolume(e)}setRepeat(e){this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,n(jn)&&(n(jn).needToRepeatPlaylist=this.needToRepeatPlaylist,n(jn).showNextPrevButtons=this.needToShowNextPrevButtons(),n(jn).nextButtonActive=this.isNextButtonActive(),n(jn).prevButtonActive=this.isPrevButtonActive())}seekTime(e){var t;this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${e}`}),(t=this.svelteRootComponent)==null||t.seekTime(e))}seekEpisodeStartTime(e){var t;this.log({message:`seek episode start time, time: ${e}`}),(t=this.svelteRootComponent)==null||t.seekEpisodeStartTime(e)}returnFocusToEpisodes(){var e;this.log({message:"return focus to episodes button"}),(e=this.svelteRootComponent)==null||e.returnFocusToEpisodes()}setPlaybackRate(e){var t;this.log({message:`set playback rate to: ${e}`}),(t=this.svelteRootComponent)==null||t.setPlaybackRate(e)}setAutoQualityLimits(e){var t,o,r;this.log({message:`set auto quality limitation. Max: ${(t=e.max)!=null?t:"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 t;(t=this.svelteRootComponent)==null||t.toggleTrafficSaving(e)}toggleHighQuality(e){var t;(t=this.svelteRootComponent)==null||t.toggleHighQuality(e)}changeAudioStream(e){var t;(t=this.svelteRootComponent)==null||t.changeAudioStream(e)}addLanguage(e){var t;(t=this.store)==null||t.actions.internal.addLanguage(e)}setLanguage(e){return Fp(this,null,function*(){var t;yield(t=this.store)==null?void 0:t.actions.internal.setLanguage(e)})}setLiveStart(e){var t,o;let r=this.isLiveTailPlaying();this.log({message:`live started: liveTailPlaying = ${r}`}),r||((t=this.store)==null||t.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 t=(e=this.store)==null?void 0:e.getPlayer();if(!t)return!1;let{info:o}=t;return o.canPlayLiveTailBuffer$.getValue()&&!o.isStalled$.getValue()&&!o.atLiveEdge$.getValue()}setLiveWaitingRecover(e=!1){var t;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(),(t=this.store)!=null&&t.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var l;r||a(),(l=this.store)==null||l.destroy()})}setLiveWaitingRecord(){var e;let t=this.isLiveTailPlaying(),o=!t;this.log({message:`live waiting record: liveTailPlaying = ${t}`});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 t;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}(t=this.store)!=null&&t.callbacks&&(this.store.callbacks.onLiveEnded=a)}setLiveLowLatency(e){var t;this.log({message:"live switch to low latency "+e}),(t=this.store)==null||t.actions.external.setLiveLowLatency(e)}setLooped(e){var t;(t=this.store)==null||t.actions.internal.setLooped(e)}getDebugData(){var e,t;return(t=(e=this.store)==null?void 0:e.actions.internal.getDebugTextData())!=null?t:""}getDeviceId(){var e,t,o;return(o=(t=(e=this.statistics)==null?void 0:e.oneStat)==null?void 0:t.getDeviceId())!=null?o:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}replayInteractiveChapter(e){return Fp(this,null,function*(){var t,o;if(this.interactiveController&&((t=this.store)!=null&&t.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,Wi.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,t=!1){var o;(o=this.microStoresRoot)==null||o.stores.showInteractiveTimeIndicatorTooltip$.set(e,t)}switchToActiveLive(){var e;(e=this.store)==null||e.actions.internal.switchToActiveLive()}updateAdditionalSettingsItem(e,t){var o;(o=this.store)==null||o.actions.external.updateAdditionalSettingsItem(e,t)}addAdditionalSettingsItem(e){var t;(t=this.store)==null||t.actions.external.addAdditionalSettingsItem(e)}removeAdditionalSettingsItem(e){var t;(t=this.store)==null||t.actions.external.removeAdditionalSettingsItem(e)}updateAdditionalContextItem(e,t){var o;(o=this.store)==null||o.actions.external.updateAdditionalContextItem(e,t)}addAdditionalContextItem(e){var t;(t=this.store)==null||t.actions.external.addAdditionalContextItem(e)}removeAdditionalContextItem(e){var t;(t=this.store)==null||t.actions.external.removeAdditionalContextItem(e)}updateAdditionalButton(e,t){var o;(o=this.store)==null||o.actions.external.updateAdditionalButton(e,t)}addAdditionalButton(e){var t;(t=this.store)==null||t.actions.external.addAdditionalButton(e)}removeAdditionalButton(e){var t;(t=this.store)==null||t.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 t;(t=this.store)==null||t.actions.internal.setTimerNextVideoRunning(e)}togglePictureInPicture(){var e;(e=this.store)==null||e.actions.internal.togglePictureInPicture()}focus(){var e,t,o;(o=(t=(e=this.svelteRootComponent)==null?void 0:e.keyboardControls)==null?void 0:t.focus)==null||o.call(t)}restoreFocus(){var e;(e=this.focusManager)==null||e.restoreFocus()}handleExternalKeyboardEvent(e){var t,o;return!!((o=(t=this.svelteRootComponent)==null?void 0:t.keyboardControls)!=null&&o.handleExternalKeyboardEvent(e))}setAutoplayNext(e){var t;(t=this.store)==null||t.actions.internal.setAutoplayNextEnabled(e)}getTotalViewTime(){var e,t;return(t=(e=this.statistics)==null?void 0:e.thinOneStat)==null?void 0:t.getTotalViewTime()}unmountComponent(e){e&&Fa(e)}};var vd=require("@vkontakte/videoplayer-shared/es2015"),zp=require("@vkontakte/videoplayer-core/es2015"),YT=()=>{window.customElements.define("vk-video-player",Up)};
|
|
58
|
+
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`)),$(f,p)};M(d,f=>{e.type==="off"?f(s):f(u,!1)})}$(r,l)},$$slots:{default:!0}}),F()}function Vm(t,e){B(e,!0);let i=g(e,"isSubtitlesEnabled",3,!1),r=xe().ui.t,a=m(()=>i()?r("tooltip_subtitles_on"):r("tooltip_subtitles_off"));Ut(t,{testId:"subtitles-btn",get ariaLabel(){return n(a)},get click(){return e.click},get ariaKeyShortCut(){return Cs.KeyC},role:"button",children:(l,d)=>{let s=m(()=>i()?void 0:"outline");ba(l,{get size(){return"24"},get type(){return n(s)}})},$$slots:{default:!0}}),F()}var nx=L('<span class="duration s-1z" data-testid="video_duration"> </span>'),rx=L('<div data-testid="time"><span class="current s-1z" data-testid="current_time"> </span> <!></div>'),sx={hash:"s-1z",code:'.time.s-1z{align-items:center;color:var(--controls-time);display:flex;font-variant-numeric:tabular-nums;font-weight:500;padding:12px 6px}.time.mobile.s-1z{padding:0 0 0 8px}.current.s-1z{position:relative}.duration.s-1z{opacity:.7}.duration.s-1z:before{content:" / ";white-space:pre}'};function fc(t,e){B(e,!0),Q(t,sx);let i=g(e,"isMobile",3,!1),o=g(e,"isHidden",3,!1),r=g(e,"showDuration",3,!0),a=g(e,"ref",15),l=Vt(),d=se(!1),s=m(()=>en(e.duration)),u=m(()=>en(e.position));var f=rx();let p;var v=C(f),b=C(v,!0);S(v);var y=k(v,2);{var _=w=>{var I=nx(),T=C(I,!0);S(I),O(()=>he(T,n(s))),$(w,I)};M(y,w=>{r()&&w(_)})}S(f),Fs(f,()=>ql(o()&&l.features.usePerformanceFix,d,l.disableInvisibleComponentsTimeout)),ot(f,w=>a(w),()=>a()),O(w=>{p=ie(f,1,"time s-1z",null,p,w),he(b,n(u))},[()=>({mobile:i()})]),$(t,f),F()}var vc=require("@vkontakte/videoplayer-shared/es2015");var ax=ke('<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),lx=ke("<path></path>"),dx=ke('<path d="M14 3C14.5523 3 15 3.44772 15 4V20C15 20.5523 14.5523 21 14 21C13.3585 21 12.7422 20.7509 12.2808 20.3052L6.79013 15H4C2.89543 15 2 14.1046 2 13V11C2 9.89543 2.89543 9 4 9H6.765L12.2794 3.6934C12.7418 3.24852 13.3584 3 14 3Z"></path><!>',1);function $a(t,e){B(e,!0);let i=g(e,"volume",3,1),o=g(e,"muted",3,!1),r=(u,f)=>f?"off":u>.5?"max":u>.2?"mid":u>0?"min":"off",a=m(()=>r(i(),o())),l=m(()=>fn(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";Xe(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,f)=>{var p=dx(),v=k(le(p));{var b=_=>{var w=ax();Jt(),$(_,w)},y=_=>{var w=lx();O(()=>De(w,"d",`${d}${n(a)==="max"?s:""}`)),$(_,w)};M(v,_=>{n(a)==="off"?_(b):_(y,!1)})}$(u,p)},$$slots:{default:!0}}),F()}var Vo=require("@vkontakte/videoplayer-shared/es2015");var rp=require("@vkontakte/videoplayer-shared/es2015");var wb=require("@vkontakte/videoplayer-shared/es2015");var cx=L('<div class="overlay"><!></div>');function Rm(t,e){B(e,!0);let[i,o]=Be(),r=()=>x(l,"$overlayContainer$",i),l=xe().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))};Fe(()=>{u(r())}),Mt(()=>(u(r()),()=>s(r())));var f=cx(),p=C(f);ii(p,()=>{var v;return(v=e.children)!=null?v:xt}),S(f),ot(f,v=>D(d,v),()=>n(d)),$(t,f),F(),o()}var ux=L('<div class="tooltip s-1o"><div class="content s-1o"> </div> <div class="tooltip-pointer s-1o"></div></div>'),px=L("<div><!></div> <!>",1),fx={hash:"s-1o",code:'.tooltip-wrapper.s-1o{display:flex;flex-direction:column;min-width:0}.full-width.s-1o{width:100%}.tooltip.s-1o{bottom:100%;left:0;opacity:0;position:absolute;transition:opacity .2s,visibility .2s;visibility:hidden}.content.s-1o{background-color:rgba(41,41,41,.8);border-radius:3px;color:var(--white);display:inline-block;padding:6px 10px}.tooltip-pointer.s-1o{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 Ja(t,e){B(e,!0),Q(t,fx);let[i,o]=Be(),r=()=>x(Y,"$overlayContainer$",i),a=()=>x(W,"$containerSize",i),l=g(e,"isMobile",3,!1),d=g(e,"content",3,""),s=g(e,"active",15,!1),u=g(e,"translateX",3,0),f=g(e,"translateY",3,0),p=g(e,"isFullWidthWrapper",3,!1),v=g(e,"maxTooltipWidth",3,void 0),b=g(e,"placement",3,"top"),y=g(e,"onVisibilityChange",3,wb.noop),_=5,w=K(void 0),I=K(void 0),T,R=K(0),A=K(0),P=K(0),E=K(0),z=Vt(),U=xe(),W=U.ui.playerSize,Y=U.ui.overlayContainer$;Fe(()=>{kt(()=>{y()(s())})});let te=U.getLogger().createComponentLog("Tooltip component"),J=j=>{if(!r()||!n(I)||!n(w))return;D(A,_);let ne=r().getBoundingClientRect(),Se=n(w).getBoundingClientRect(),Le=Se.width,ze=n(I).clientWidth,Ce=a().width,we=(Le-ze)/2,He=Se.left+u()-ne.left,st=He+we,pt=Se.top+f()-ne.top,Rt=ze/2-_,ct=st<8,ni=st+ze>Ce-8;j==="top-left"&&(st=He),ct&&(st=8,Rt=He+Se.width/2-2.5*_),ni&&(st=Ce-8-ze,Rt=Se.left-ne.left+Se.width/2-st-_),D(P,st,!0),D(E,pt),D(R,Rt,!0)},oe=()=>{!r()||!n(I)||!n(w)||D(A,-_)},de=()=>{if(!r()||!n(I)||!n(w))return;D(R,_);let j=r().getBoundingClientRect(),ne=n(w).getBoundingClientRect(),Se=ne.height,Le=n(I).clientHeight,ze=(Se-Le)/2+Le,Ce=ne.left+u()-j.left-n(I).clientWidth,we=2,He=Ce-_;He<8&&(He=8);let pt=ne.top+f()-j.top+ze,Rt=we-ze/2,ct=we-_;D(P,He,!0),D(E,pt),D(A,Rt),D(R,ct)},ae=()=>{!r()||!n(I)||!n(w)||D(R,-_)},pe=()=>{switch(b()){case"top":J();break;case"bottom":oe();break;case"left":de();break;case"top-left":J("top-left");break;default:ae();break}},ee=()=>{try{if(!r()||!n(w))return;pe(),s(!0)}catch(j){te({message:String(j)})}},$e=()=>{s(!1)},Ee=()=>{n(I)&&(T||(T=window.setTimeout(ee,z.controls.hideTimeoutTooltips)),s()&&ee())},ce=()=>{$e(),window.clearTimeout(T),T=void 0},Qe=(j,ne,Se)=>{let Le="";switch(b()){case"top":Le=`transform: translate(${j}px, ${ne}px);`;break;case"bottom":Le=`transform: translate(${j}px, ${ne}px); top: auto; bottom: 100%;`;break;case"left":Le=`transform: translate(${j}px, ${ne}px); left: 0; right: auto;`;break;default:Le=`transform: translate(${j}px, ${ne}px);`}return Le+=` max-width: ${v()===void 0?"auto":`${v()}px`};`,Le+=` opacity: ${Se?1:0}; visibility: ${Se?"visible":"hidden"}`,Le},fe=(j,ne)=>{let Se="";switch(b()){case"top-left":case"top":Se=`transform: translate(${j}px, ${ne}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Se=`transform: translate(${j}px, ${ne}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Se=`transform: translate(${j}px, ${ne}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Se=`transform: translate(${j}px, ${ne}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Se},ve=m(()=>Qe(n(P),n(E),s())),X=m(()=>fe(n(R),n(A)));Mt(pe),pn(()=>window.clearTimeout(T));var N=px(),me=le(N);let ue;me.__pointermove=Ee,me.__pointerdown=ce,me.__pointerup=function(...j){var ne;(ne=e.disableMouseupTooltipShow?void 0:Ee)==null||ne.apply(this,j)};var Re=C(me);ii(Re,()=>{var j;return(j=e.children)!=null?j:xt}),S(me),ot(me,j=>D(w,j),()=>n(w));var et=k(me,2);{var Ae=j=>{Rm(j,{children:(ne,Se)=>{var Le=ux(),ze=C(Le),Ce=C(ze,!0);S(ze);var we=k(ze,2);S(Le),ot(Le,He=>D(I,He),()=>n(I)),O(()=>{Ke(Le,n(ve)),he(Ce,d()),Ke(we,n(X))}),$(ne,Le)},$$slots:{default:!0}})};M(et,j=>{d()&&!l()&&j(Ae)})}O(j=>ue=ie(me,1,"tooltip-wrapper s-1o",null,ue,j),[()=>({"full-width":p()})]),vt("pointerenter",me,Ee),vt("pointerleave",me,ce),$(t,N),F(),o()}Je(["pointermove","pointerdown","pointerup"]);var Sb=t=>{t.stopPropagation()},mx=L("<div><!></div>"),vx={hash:"s-1i",code:".btn-container.s-1i{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-1i{min-width:0;width:100%}"};function Mo(t,e){B(e,!0),Q(t,vx);let[i,o]=Be(),r=()=>x(u,"$isGraphOpened$",i),a=()=>x(s,"$isMobile",i),l=xe(),d=yo(),s=l.ui.isMobile,u=d.graphIsOpened$,f=l.ui.t,p=g(e,"className",3,""),v=g(e,"disabled",3,!1),b=g(e,"hasTooltip",3,!0),y=g(e,"ref",15,void 0),_=g(e,"width",15,void 0),w=g(e,"isFullWidthTooltip",3,!0),I=g(e,"tooltipContent",3,""),T=g(e,"tooltipVisible",3,!1),R=g(e,"tooltipPlacement",3,"top"),A=g(e,"disabledTooltipContent",19,()=>f("tooltip_button_disabled")),P=g(e,"isAriaHidden",3,!1),E=g(e,"onTooltipVisibilityChange",3,rp.noop),z=g(e,"initialTranslateXPx",3,0),U=g(e,"initialTranslateYPx",19,()=>-18),W=g(e,"mouseEnter",3,rp.noop),Y=g(e,"mouseLeave",3,rp.noop),te=m(()=>v()?r()?f("tooltip_disabled_when_graph_on"):A():I()),J=K(!1);Fe(()=>{T()||D(J,!1)});var oe=mx();oe.__pointerdown=[Sb],oe.__click=[Sb];var de=C(oe);{var ae=ee=>{Ja(ee,{get content(){return n(te)},get translateX(){return z()},get translateY(){return U()},get isFullWidthWrapper(){return w()},get placement(){return R()},get onVisibilityChange(){return E()},get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},get active(){return n(J)},set active($e){D(J,$e,!0)},children:($e,Ee)=>{var ce=Ve(),Qe=le(ce);ii(Qe,()=>{var fe;return(fe=e.children)!=null?fe:xt}),$($e,ce)},$$slots:{default:!0}})},pe=ee=>{var $e=Ve(),Ee=le($e);ii(Ee,()=>{var ce;return(ce=e.children)!=null?ce:xt}),$(ee,$e)};M(de,ee=>{b()&&n(te)&&!a()?ee(ae):ee(pe,!1)})}S(oe),ot(oe,ee=>y(ee),()=>y()),O(()=>{var ee;ie(oe,1,`btn-container ${(ee=p())!=null?ee:""}`,"s-1i"),De(oe,"aria-hidden",P()||null)}),vt("mouseenter",oe,function(...ee){var $e;($e=W())==null||$e.apply(this,ee)}),vt("mouseleave",oe,function(...ee){var $e;($e=Y())==null||$e.apply(this,ee)}),Dn(oe,"clientWidth",_),$(t,oe),F(),o()}Je(["pointerdown","click"]);var gx=ke('<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=m(()=>(e.completed,"interactive-episode-completed-icon"));Xe(t,{width:"20",height:"20",fill:"none",get testId(){return n(i)},children:(o,r)=>{var a=gx(),l=le(a),d=k(l);O(()=>{De(l,"fill",pa),De(l,"fill-opacity",e.completed?1:.24),De(d,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),$(o,a)},$$slots:{default:!0}})}var hx=L("<div><!></div>"),_x={hash:"s-17",code:".interactive-episode-icon.s-17{cursor:default;height:20px;position:absolute;transform:translateX(-50%);width:20px}.interactive-episode-icon.disabled.s-17{opacity:.4;pointer-events:none}"};function Dm(t,e){B(e,!0),Q(t,_x);let o=xe().ui.t,r=K(0),a=m(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));Mo(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=hx();let u;var f=C(s);let p=m(()=>!!e.videoEpisode.completed);mc(f,{get completed(){return n(p)}}),S(s),O(v=>{u=ie(s,1,"interactive-episode-icon s-17",null,u,v),Ke(s,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),Dn(s,"clientWidth",v=>D(r,v)),$(l,s)},$$slots:{default:!0}}),F()}var bx=L('<div><div class="video-episode-inner s-16"><div class="video-episode-loaded s-16"></div> <div></div></div></div>'),$x=L('<div class="video-episodes-wrap s-16"></div>'),yx={hash:"s-16",code:".video-episodes-wrap.s-16{height:100%;position:absolute;width:100%}.video-episode.s-16{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-16:first-child{padding-left:0}.video-episode.s-16:last-child{padding-right:0}.video-episode.s-16:not(.disabled):where(:hover,:active){transform:scaleY(1.5)}.video-episode-filled.s-16,.video-episode-inner.s-16,.video-episode-loaded.s-16{border-radius:var(--slider-radius);height:var(--slider-height);position:absolute}.video-episode-inner.s-16{background:var(--slider-bg);overflow:hidden;position:absolute;width:calc(100% - var(--slider-video-episode-gap)*2)}.video-episode.s-16:first-child .video-episode-inner:where(.s-16),.video-episode.s-16:last-child .video-episode-inner:where(.s-16){width:calc(100% - var(--slider-video-episode-gap))}.video-episode-loaded.s-16{background:var(--slider-loaded-bg);transition:transform .2s}.video-episode-filled.s-16,.video-episode-loaded.s-16{border-radius:var(--slider-radius);height:100%;left:-100%;position:absolute;width:100%}.video-episode-filled.s-16{background-color:var(--slider-filled-bg)}"};function Om(t,e){Q(t,yx);let i=g(e,"videoEpisodes",19,()=>[]);var o=$x();wi(o,21,i,r=>r.from,(r,a)=>{var l=bx();let d;var s=C(l),u=C(s),f=k(u,2);let p;S(s),S(l),O((v,b)=>{d=ie(l,1,"video-episode s-16",null,d,v),Ke(l,`left: ${n(a).from}%; width: ${n(a).width}%`),Ke(u,`transform: translateX(${n(a).loadedWidth/n(a).width*100}%)`),p=ie(f,1,"video-episode-filled s-16",null,p,b),Ke(f,`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 xx(t,e,i,o,r,a,l){if(t.preventDefault(),e()&&D(i,e().getBoundingClientRect(),!0),o()||n(r)||!e())return;D(r,!0);let d=a(t.clientX,t.clientY);l()(d,t),e().setPointerCapture(t.pointerId)}function wx(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 Sx(t,e,i,o,r){if(t.preventDefault(),e()||!n(i))return;D(i,!1);let a=o(t.clientX,t.clientY);r()(a,t)}function Cx(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}function Tx(t,e,i,o,r,a){let l=e(t.clientX,t.clientY);i()&&o()(l),D(r,!1),a()(l)}var Ix=L("<div></div>"),Ex=L('<div class="bars s-h"><div class="loaded s-h"></div> <div></div></div>'),Px=L('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),kx={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 el(t,e){B(e,!0),Q(t,kx);let i=g(e,"ref",15,void 0),o=g(e,"className",3,""),r=g(e,"testId",3,void 0),a=g(e,"isHidden",3,!1),l=g(e,"isVertical",3,!1),d=g(e,"isActiveLive",3,!1),s=g(e,"isMobile",3,!1),u=g(e,"squareBorders",3,!1),f=g(e,"videoEpisodes",19,()=>[]),p=g(e,"withWheelHandler",3,!1),v=g(e,"isInteractive",3,!1),b=g(e,"disabled",3,!1),y=g(e,"hideHandel",3,!1),_=g(e,"onPointerDown",3,Vo.noop),w=g(e,"onHandleMove",3,Vo.noop),I=g(e,"onPointerUp",3,Vo.noop),T=g(e,"onPointerEnter",3,Vo.noop),R=g(e,"onPointerMove",3,Vo.noop),A=g(e,"onPointerLeave",3,Vo.noop),P=g(e,"onMouseEnter",3,Vo.noop),E=g(e,"onMouseLeave",3,Vo.noop),z=g(e,"onWheelUp",3,Vo.noop),U=g(e,"onWheelDown",3,Vo.noop),W=g(e,"onWheelLeft",3,Vo.noop),Y=g(e,"onWheelRight",3,Vo.noop),te=g(e,"onDisabledClick",3,Vo.noop),J=g(e,"loadedProgress",3,0),oe=g(e,"filledProgress",3,0),de=g(e,"handleProgress",3,0),ae=g(e,"ariaLabel",3,""),pe=g(e,"ariaValueMin",3,void 0),ee=g(e,"ariaValueMax",3,void 0),$e=g(e,"ariaValueNow",3,void 0),Ee=g(e,"ariaValueText",3,""),ce=g(e,"onContextMenu",3,Vo.noop),Qe=g(e,"handleAlwaysVisible",3,!1),fe=Vt(),ve=K(void 0),X=K(!1),N=m(()=>{var be;return(be=ee())!=null?be:0}),me=m(()=>{var be;return(0,Vo.isNonNullable)(f())&&((be=f()[f().length-1])==null?void 0:be.time)<n(N)}),ue=m(()=>(0,Vo.isNonNullable)(f())&&f().length&&n(me)&&n(N)?ze(J()*100,oe()*100):[]);function Re(be){if(be.preventDefault(),i()&&D(ve,i().getBoundingClientRect(),!0),b())return;let Oe=Se(be.clientX,be.clientY),Ie=Le(be.clientX);T()(Oe,Ie,n(ve).width)}function et(be){be.preventDefault(),!b()&&A()()}function Ae(){P()()}function j(){E()()}function ne(be){b()||p()&&(be.preventDefault(),be.deltaY<0?z()():be.deltaY>0?U()():be.deltaX>0?Y()():W()())}function Se(be,Oe){return l()?Math.max(0,Math.min(1,(n(ve).height-(Oe-n(ve).top))/n(ve).height)):Math.min(Math.max(be-n(ve).x,0),n(ve).width)/n(ve).width}function Le(be){return Math.min(Math.max(be-n(ve).x,0),n(ve).width)}function ze(be,Oe){let Ie=fe.features.episodesClustering&&!v()?fe.episodeMinWidthPc:0,bt=[],ye=f()[0].time/n(N)*100,qe=0,Ue=0;for(let At=1;At<f().length;At++)qe=f()[At].time/n(N)*100,qe-ye>Ie&&(bt.push({from:ye,width:Math.max(0,qe-ye),loadedWidth:Math.max(0,Math.min(qe,be)-ye),filledWidth:Math.max(0,Math.min(qe,Oe)-ye),interactive:f()[At-1].interactive,completed:f()[At-1].completed}),ye=f()[At].time/n(N)*100,Ue++);let at={from:ye,width:Math.max(0,100-ye),loadedWidth:Math.max(0,Math.min(be,100)-ye),filledWidth:Math.max(0,Math.min(Oe,100)-ye),interactive:f()[Ue].interactive,completed:f()[Ue].completed};100-ye<Ie?(Ue-=1,bt[Ue].width+=100-ye,bt[Ue].loadedWidth+=Math.max(0,Math.min(be,100)-ye),bt[Ue].filledWidth+=Math.max(0,Math.min(Oe,100)-ye)):bt[Ue]=at;let Yt=f()[0].time;if(Yt!==0){let At=Yt/n(N)*100;bt.unshift({from:0,width:At,loadedWidth:Math.min(At,be),filledWidth:Math.min(At,Oe)})}return bt}function Ce(be){return Math.max(0,Math.min(100,be*100))}let we=m(()=>Ce(J())),He=m(()=>Ce(oe()));var st=Px(),pt=le(st);{var Rt=be=>{var Oe=Ix();let Ie;wi(Oe,21,()=>n(ue),bt=>bt.from,(bt,ye)=>{var qe=Ve(),Ue=le(qe);{var at=Yt=>{Dm(Yt,{get videoEpisode(){return n(ye)},get disabled(){return b()}})};M(Ue,Yt=>{n(ye).interactive&&Yt(at)})}$(bt,qe)}),S(Oe),O(bt=>Ie=ie(Oe,1,"interactive-icons s-h",null,Ie,bt),[()=>({mobile:s(),hidden:s()&&!n(X)})]),$(be,Oe)};M(pt,be=>{v()&&be(Rt)})}var ct=k(pt,2);let ni;ct.__pointerdown=[xx,i,ve,b,X,Se,_],ct.__pointermove=[wx,b,Se,Le,R,ve,X,w],ct.__pointerup=[Sx,b,X,Se,I],ct.__click=[Cx,b,te,Se],ct.__contextmenu=[Tx,Se,b,te,X,ce];var Ct=C(ct);{var Ot=be=>{Om(be,{get videoEpisodes(){return n(ue)},get disabled(){return b()},get isMobile(){return s()}})},Nt=be=>{var Oe=Ex(),Ie=C(Oe),bt=k(Ie,2);let ye;S(Oe),O(qe=>{De(Ie,"data-value",n(we)),Ke(Ie,`transform: translateX(${n(we)}%);`),ye=ie(bt,1,"filled s-h",null,ye,qe),De(bt,"data-value",n(He)),Ke(bt,`transform: translateX(${n(He)}%);`)},[()=>({"active-live":d()})]),$(be,Oe)};M(Ct,be=>{n(ue).length?be(Ot):be(Nt,!1)})}var Gt=k(Ct,2);let Te;var G=C(Gt);let Ne;S(Gt),S(ct),ot(ct,be=>i(be),()=>i()),O((be,Oe,Ie,bt)=>{var ye,qe;ni=ie(ct,1,`slider ${(ye=o())!=null?ye:""}`,"s-h",ni,be),De(ct,"aria-label",ae()),De(ct,"aria-valuemin",pe()),De(ct,"aria-valuemax",ee()),De(ct,"aria-valuenow",$e()),De(ct,"aria-valuetext",Ee()),De(ct,"data-testid",(qe=r())!=null?qe:null),Te=ie(Gt,1,"handleWrap s-h",null,Te,Oe),Ke(Gt,Ie),Ne=ie(G,1,"handle s-h",null,Ne,bt)},[()=>({disabled:b(),"slider-dragging":n(X),hidden:a(),"handle-always-visible":Qe(),"slider-vertical":l(),"no-handle":y(),square:u()}),()=>({hidden:y()}),()=>`transform: translateX(${Ce(de())}%);`,()=>({"active-live":d()})]),vt("pointerenter",ct,Re),vt("pointerleave",ct,et),vt("mouseenter",ct,Ae),vt("mouseleave",ct,j),vt("wheel",ct,ne),$(t,st),F()}Je(["pointerdown","pointermove","pointerup","click","contextmenu"]);var so=(t,e)=>Zd[t]>=Zd[e];var Ws=(t,e)=>Zd[t]<=Zd[e],Cb=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var Lx=L("<div><!></div>"),Mx=L("<div><!> <!></div>"),Vx={hash:"s-27",code:".volumeBar-container.s-27{align-items:center;display:flex}.vertical.s-27 .btn,.vertical.s-27 .tooltip-wrapper,.volumeBar-container.vertical.s-27{width:40px}.volumeBar.s-27{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-27{padding:0 8px 0 0;width:0}"};function Nm(t,e){var Le,ze;B(e,!0),Q(t,Vx);let[i,o]=Be(),r=()=>x(R,"$isAudioAvailable$",i),a=()=>x(v,"$muted$",i),l=()=>x(p,"$volume$",i),d=()=>x(w,"$currentGridType$",i),s=()=>x(Re,"$controlsVisible",i),u=xe(),f=Vt(),p=u.state.volume$,v=u.state.muted$,{setVolume:b,startVolumeChanging:y,stopVolumeChanging:_}=u.actions.internal,w=u.ui.currentGridType$,I=(Le=u.callbacks)==null?void 0:Le.onAudioDoesNotExistHint,T=(ze=u.callbacks)==null?void 0:ze.onAudioDisabledHint,R=u.state.isAudioAvailable$,A=u.state.isAudioDisabled,P=u.ui.t,E=K(!1),z,U=m(()=>e.isAds||r()),W=m(()=>!n(U)||a()||l()===0),Y=m(()=>Ws(d(),"l")),te=m(()=>n(Y)?"":n(W)?!r()||A?P("tooltip_sound_unavailable"):P("tooltip_volume"):P("tooltip_volume_muted")),J=m(()=>n(W)?P("tooltip_volume"):P("tooltip_volume_muted")),oe=m(()=>n(W)?0:l()),de=!1,ae=m(()=>e.isAds?!1:A?!T:r()?!1:!I);function pe(Ce){y(),b(Ce)}function ee(){tp(u,l(),f.controls.volumeStepWheel)}function $e(){ip(u,l(),f.controls.volumeStepWheel)}function Ee(Ce){b(Ce)}function ce(Ce){b(Ce),_()}function Qe(){de=!0}function fe(){de=!1,N()}function ve(){clearTimeout(z),D(E,!0)}function X(){N()}function N(){z=window.setTimeout(()=>{de||D(E,!1)},f.controls.volumeBarTimeout)}function me(Ce){Ce.preventDefault(),Ce.deltaY<0?ee():Ce.deltaY>0&&$e()}let ue=K(!1),Re=u.ui.controlsVisible;Fe(()=>{s()||D(ue,!1)});var et=Mx();let Ae;var j=C(et);Ja(j,{get content(){return n(te)},translateY:-18,get active(){return n(ue)},set active(Ce){D(ue,Ce,!0)},children:(Ce,we)=>{let He=m(()=>n(Y)?"btn-volume-vertical":"btn-volume-horizontal");Ut(Ce,{className:"btn-full-opacity",get disabled(){return n(ae)},get testId(){return n(He)},get ariaLabel(){return n(J)},get click(){return e.click},get ariaKeyShortCut(){return Cs.KeyM},role:"button",children:(st,pt)=>{$a(st,{get size(){return"24"},get volume(){return l()},get muted(){return n(W)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var ne=k(j,2);{var Se=Ce=>{var we=Lx();let He;var st=C(we);let pt=m(()=>n(Y)?"volumeBar-slider-vertical":""),Rt=m(()=>n(Y)&&!n(E)),ct=m(()=>n(Y)?Qe:vc.noop),ni=m(()=>n(Y)?fe:vc.noop),Ct=m(()=>Math.round(n(oe)*100)),Ot=m(()=>`${Math.round(n(oe)*100)}%`),Nt=m(()=>n(Y)?"volume-slider-vertical":"volume-slider");el(st,{get className(){return n(pt)},get isHidden(){return n(Rt)},get isVertical(){return n(Y)},withWheelHandler:!0,onWheelUp:ee,onWheelDown:$e,onPointerDown:pe,onHandleMove:Ee,onPointerUp:ce,get onPointerEnter(){return n(ct)},get onPointerLeave(){return n(ni)},ariaLabel:"Ползунок громкости",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return n(Ct)},get ariaValueText(){return n(Ot)},get filledProgress(){return n(oe)},get handleProgress(){return n(oe)},get testId(){return n(Nt)}}),S(we),O(Gt=>He=ie(we,1,"volumeBar s-27",null,He,Gt),[()=>({"volumeBar-vertical":n(Y)})]),$(Ce,we)};M(ne,Ce=>{n(U)&&Ce(Se)})}S(et),O(Ce=>Ae=ie(et,1,"volumeBar-container s-27",null,Ae,Ce),[()=>({vertical:n(Y)})]),vt("mouseenter",et,function(...Ce){var we;(we=n(Y)?ve:vc.noop)==null||we.apply(this,Ce)}),vt("mouseleave",et,function(...Ce){var we;(we=n(Y)?X:vc.noop)==null||we.apply(this,Ce)}),vt("wheel",et,me),$(t,et),F(),o()}var Tb=require("@vkontakte/videoplayer-shared/es2015");var Rx=ke('<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>'),Dx=ke('<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 Bm(t,e){let i=g(e,"isFullscreen",8,!1),o=br(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");Xe(t,{get testId(){return n(o)},children:(r,a)=>{var l=Ve(),d=le(l);{var s=f=>{var p=Rx();$(f,p)},u=f=>{var p=Dx();$(f,p)};M(d,f=>{i()?f(s):f(u,!1)})}$(r,l)},$$slots:{default:!0}})}function gc(t,e){B(e,!0);let i=g(e,"isFullscreen",3,!1),o=g(e,"click",3,Tb.noop),r=xe(),a=r.ui.isFullscreenOpenedByKeyboard,l=r.ui.t,d=m(()=>i()?l("tooltip_fullscreen_on"):l("tooltip_fullscreen_off"));Ut(t,{testId:"fullscreen-btn",get ariaLabel(){return n(d)},click:u=>{let f=ga(u);a.set(f),o()()},get ariaKeyShortCut(){return Cs.KeyF},role:"button",children:(u,f)=>{Bm(u,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),F()}var Ox=ke('<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 Fm(t,e){let i=On(e,["$$slots","$$events","$$legacy","children"]);var o=Ox();ro(o,()=>Ye({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);ii(r,()=>{var a;return(a=e.children)!=null?a:xt}),Jt(),S(o),$(t,o)}var Nx=ke('<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 Hm(t,e){let i=On(e,["$$slots","$$events","$$legacy","children"]);var o=Nx();ro(o,()=>Ye({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);ii(r,()=>{var a;return(a=e.children)!=null?a:xt}),Jt(6),S(o),$(t,o)}var Bx={hash:"s-29",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 Um(t,e){B(e,!0),Q(t,Bx);let i=g(e,"short",3,!1),o=g(e,"isCyrillic",3,!0),r=g(e,"logo",19,()=>"vk_video"),a="vk-video-logo-icon--short",l=24,d=m(()=>!o()&&!i()?91:i()?l:95),s=m(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?a:"vk-video-logo-icon"),u=m(()=>`0 0 ${n(d)} 24`);Hm(t,{get width(){return n(d)},height:"24",get viewBox(){return n(u)},get"data-testid"(){return n(s)},get"data-logo"(){return r()}}),F()}function hc(t,e){B(e,!0);let[i,o]=Be(),r=()=>x(b,"$isMobile",i),a=()=>x(v,"$currentGridType$",i),l=()=>x(_,"$isCyrillicRelatedInterface$",i),d=g(e,"ref",15,void 0),s=g(e,"logoClickable",3,!1),u=g(e,"targetUrl",3,""),f=Vt(),p=xe(),v=p.ui.currentGridType$,b=p.ui.isMobile,y=p.ui.t,_=p.isCyrillicRelatedInterface$,w=m(()=>f.logoType!=="vk"),I=m(()=>n(w)?y("tooltip_vk_video_logo"):y("tooltip_vk_logo")),T=m(()=>(r()&&Ws(a(),"m")||Ws(a(),"l"))&&n(w)),R=()=>{var E,z;e.click(),(E=p.callbacks)!=null&&E.onLogoClicked?(z=p.callbacks)==null||z.onLogoClicked():u()&&window.open(u(),"_blank")},A=m(()=>!s()),P=m(()=>n(w)?"btn-vk-video-logo":"btn-vk-logo");Ut(t,{className:"btn-full-opacity",get disabled(){return n(A)},click:R,get testId(){return n(P)},get ariaLabel(){return n(I)},get ref(){return d()},set ref(E){d(E)},children:(E,z)=>{var U=Ve(),W=le(U);{var Y=J=>{Um(J,{get logo(){return f.logoType},get short(){return n(T)},get isCyrillic(){return l()}})},te=J=>{Fm(J,{})};M(W,J=>{n(w)?J(Y):J(te,!1)})}$(E,U)},$$slots:{default:!0}}),F(),o()}var Eb=require("@vkontakte/videoplayer-core/es2015");var zm=require("@vkontakte/videoplayer-core/es2015");var Fx=ke('<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-18"></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-18"></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-18"></path>',1),Hx=ke('<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),Ux={hash:"s-18",code:".animated.s-18{animation-duration:1s;animation-iteration-count:infinite}.wave1.animated.s-18{animation-name:s-18-wave1}.wave2.animated.s-18{animation-name:s-18-wave2}.wave3.animated.s-18{animation-name:s-18-wave3}@keyframes s-18-wave1{0%{opacity:.3}33%{opacity:1}66%{opacity:1}to{opacity:1}}@keyframes s-18-wave2{0%{opacity:.3}33%{opacity:.3}66%{opacity:1}to{opacity:1}}@keyframes s-18-wave3{0%{opacity:.3}33%{opacity:.3}66%{opacity:.3}to{opacity:1}}"};function _c(t,e){B(e,!0),Q(t,Ux);let i=g(e,"isMobile",3,!1),o=m(()=>e.iconState===zm.ChromecastState.CONNECTED),r=m(()=>e.iconState===zm.ChromecastState.CONNECTING),a=m(()=>n(o)?"#2688EB":pa),l=m(()=>e.size?fn(e.size):void 0);var d=Ve(),s=le(d);{var u=p=>{Xe(p,{get fill(){return n(a)},get style(){return n(l)},testId:"chromecast-mobile-icon",children:(v,b)=>{var y=Fx();Jt(2),$(v,y)},$$slots:{default:!0}})},f=p=>{Xe(p,{get style(){return n(l)},testId:"chromecast-icon",children:(v,b)=>{var y=Hx(),_=le(y);let w;var I=k(_);let T;var R=k(I);let A;var P=k(R);let E;var z=k(P);let U;O((W,Y,te,J,oe)=>{w=ie(_,0,"wave2 s-18",null,w,W),T=ie(I,0,"wave3 s-18",null,T,Y),A=ie(R,0,"wave1 s-18",null,A,te),E=ie(P,0,"s-18",null,E,J),U=ie(z,0,"s-18",null,U,oe)},[()=>({animated:n(r)}),()=>({animated:n(r)}),()=>({animated:n(r)}),()=>({hidden:n(o)}),()=>({hidden:!n(o)})]),$(v,y)},$$slots:{default:!0}})};M(s,p=>{i()?p(u):p(f,!1)})}$(t,d),F()}var Pb=require("@vkontakte/videoplayer-shared/es2015");function bc(t,e){B(e,!0);let i=g(e,"ref",15,void 0),o=g(e,"isMobile",3,!1),r=g(e,"click",3,Pb.noop),l=xe().ui.t,d=m(()=>e.state===Eb.ChromecastState.CONNECTED?l("tooltip_chromecast_on"):l("tooltip_chromecast_off"));Ut(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}}),F()}var kb=require("@vkontakte/videoplayer-shared/es2015");var zx=ke('<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 Wm(t){Xe(t,{testId:"episodes-icon",children:(e,i)=>{var o=zx();Jt(2),$(e,o)},$$slots:{default:!0}})}var sp=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var Wx=L('<span class="text mobile s-22"> </span> <div class="chevron-episodes s-22" data-testid="btn-episodes_icon"><!></div>',1),Kx=L('<span class="text s-22"> </span>'),Qx=L('<span class="text count s-22"> </span>'),qx=L('<span class="icon s-22"><!></span> <!>',1),Gx={hash:"s-22",code:".icon.s-22{flex-shrink:0}.text.s-22{overflow:hidden;padding:0 8px;text-overflow:ellipsis;white-space:nowrap}.text.count.s-22{overflow:visible}.text.mobile.s-22{padding:0 3px 0 4px}.chevron-episodes.s-22{margin-bottom:-6px;opacity:.7;transform:scale(.8)}"};function $c(t,e){var de,ae,pe;B(e,!0),Q(t,Gx);let[i,o]=Be(),r=()=>x(y,"$currentGridType$",i),a=()=>x(_,"$openedByKeyboard$",i),l=()=>x(w,"$panelOpened$",i),d=()=>x(I,"$isMobile",i),s=g(e,"position",3,0),u=g(e,"duration",3,0),f=g(e,"timeCodes",19,()=>[]),p=xe(),v=(ae=(de=p.callbacks)==null?void 0:de.onEpisodeChanged)!=null?ae:kb.noop,b=!!((pe=p.callbacks)!=null&&pe.onEpisodeClicked),y=p.ui.currentGridType$,_=p.ui.episodes.openedByKeyboard$,w=p.ui.episodes.panelOpened$,I=p.ui.isMobile,T=p.ui.t,R=K(void 0),A=ee=>{var Ee,ce,Qe;if(!!((Ee=p.callbacks)!=null&&Ee.onEpisodeClicked)){let fe=ga(ee);_.set(fe),w.set(!0),(Qe=(ce=p.callbacks)==null?void 0:ce.onEpisodeClicked)==null||Qe.call(ce,fe)}},P=K(null),E=m(()=>s()/u());Fe(()=>{var $e;let ee=sp(n(E),u(),f());ee?(($e=n(P))==null?void 0:$e.time)!==ee.time&&(v(ee),D(P,ee,!0)):D(P,null)});let z=m(()=>{var ee;return((ee=n(P))==null?void 0:ee.text)||""}),U=m(()=>so(r(),"xl")?"FULL":so(r(),"m")?"COUNT":"SHORT"),W=m(()=>`${T("tooltip_episodes")}: ${n(z)}`),Y=(ee,$e,Ee)=>yt(null,null,function*(){yield ho(),(ee==null?void 0:ee.getAttribute("aria-expanded"))==="false"&&$e&&!Ee&&kt(()=>{_.set(!1),ee.focus()})});Fe(()=>{Y(n(R),a(),l())});var te=Ve(),J=le(te);{var oe=ee=>{let $e=m(()=>d()?"px-0":""),Ee=m(()=>!b);Ut(ee,{get className(){var ce;return`w-max btn-full-opacity btn-jc-l ${(ce=n($e))!=null?ce:""}`},testId:"btn-episodes",click:A,get disabled(){return n(Ee)},get ariaExpanded(){return l()},get ariaLabel(){return n(W)},get ref(){return n(R)},set ref(ce){D(R,ce,!0)},children:(ce,Qe)=>{var fe=Ve(),ve=le(fe);{var X=me=>{var ue=Wx(),Re=le(ue),et=C(Re,!0);S(Re);var Ae=k(Re,2),j=C(Ae);Nr(j,{direction:"right"}),S(Ae),O(()=>he(et,n(z))),$(me,ue)},N=me=>{var ue=qx(),Re=le(ue),et=C(Re);Wm(et,{}),S(Re);var Ae=k(Re,2);{var j=Se=>{var Le=Kx(),ze=C(Le,!0);S(Le),O(()=>he(ze,n(z))),$(Se,Le)},ne=(Se,Le)=>{{var ze=Ce=>{var we=Qx(),He=C(we,!0);S(we),O(()=>he(He,f().length)),$(Ce,we)};M(Se,Ce=>{n(U)==="COUNT"&&Ce(ze)},Le)}};M(Ae,Se=>{n(U)==="FULL"?Se(j):Se(ne,!1)})}$(me,ue)};M(ve,me=>{d()?me(X):me(N,!1)})}$(ce,fe)},$$slots:{default:!0}})};M(J,ee=>{n(P)&&ee(oe)})}$(t,te),F(),o()}var $v=require("@vkontakte/videoplayer-shared/es2015");var pi=require("@vkontakte/videoplayer-core/es2015"),dt=require("@vkontakte/videoplayer-shared/es2015"),Fr=require("@vkontakte/videoplayer-statistics/es2015");var je=require("@vkontakte/videoplayer-shared/es2015"),ao=require("@vkontakte/videoplayer-shared/es2015");var Yx="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",ap=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 ao.Subject,loadStarted$:new ao.Subject,loadEnded$:new ao.Subject,loadError$:new ao.Subject,ready$:new ao.Subject,slotRequested$:new ao.Subject,started$:new ao.Subject,timeRemained$:new ao.Subject,paused$:new ao.Subject,resumed$:new ao.Subject,ended$:new ao.Subject,empty$:new ao.Subject,skipped$:new ao.Subject,clicked$:new ao.Subject,closed$:new ao.Subject,error$:new ao.Subject};this.loadAdman=e=>(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[(0,je.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?(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[(0,je.now)()]}),i(),this.events.loadEnded$.next()):(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[(0,je.now)()]}),o())};(0,ao.addScript)(Yx,e,this.loadTimeout).then(()=>{je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[(0,je.now)()]}),window.AdmanHTML?(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[(0,je.now)()]}),i(),this.events.loadEnded$.next()):(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[(0,je.now)()]}),window.admanAsyncInit=a,r=window.setTimeout(a,this.initTimeout))}).catch(l=>{je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(l)],numbers:[(0,je.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?(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[(0,je.now)()]}),i(),this.events.loadEnded$.next()):(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[(0,je.now)()]}),o())},l=()=>{d=!0,o()},d=!1,s=window.setTimeout(()=>{je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[(0,je.now)()]}),l()},this.loadTimeout);e.addEventListener("abort",l),e.aborted&&(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[(0,je.now)()]}),l()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[(0,je.now)()]}),!d&&(window.AdmanHTML?(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[(0,je.now)()]}),i(),this.events.loadEnded$.next()):(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[(0,je.now)()]}),window.admanAsyncInit=a,r=window.setTimeout(a,this.initTimeout)))},l).finally(()=>{clearTimeout(r),clearTimeout(s),e.removeEventListener("abort",l)})});this.onAdsReady=()=>{je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[(0,je.now)()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{var o;je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[(0,je.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;je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.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;je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.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(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[(0,je.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;je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.now)()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.now)()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.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;je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.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")=>{je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[(0,je.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"),je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[(0,je.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 yt(this,null,function*(){var A,P;if(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[(0,je.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:f,externalApi:p,json:v}=e;this.externalApi=p;let b,y=this.playerState&&_e(this.playerState.vsid);y&&(this.isVsidOriginal?b=y:b=parseInt(y,36));let{isEmbed:_,immediateOrigin:w}=(0,je.detectEmbed)(),I=(A=_?w:window.location.href)!=null?A:window.location.href,T=(0,je.withoutNullable)(Ye(ti(Ye(ti(Ye({},s),{dl:encodeURIComponent(I),autoplay:r?1:0,player_width:i,player_height:o}),b?{request_id:b}:{}),{duration:f}),u)),R=(0,je.withoutNullable)({slot:v?void 0:d,wrapper:a,videoEl:l,videoQuality:o,params:v?void 0:T,browser:{mobile:!1},json:v});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),!v&&((P=this.externalApi)!=null&&P.videoGetAds)){let z=yield this.safeExternalCall(this.externalApi.videoGetAds,T);z&&(delete R.slot,delete R.params,Object.assign(R,{json:z}))}E.init(R),this.adman=E,this.videoElement=l,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(R)}`})}catch(E){je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(E)],numbers:[(0,je.now)()]}),this.onAdError("could not init adman")}})}switchToVideo(e=!1){var o,r,a;if(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[(0,je.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(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.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(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[(0,je.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(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.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(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.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(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.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(je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[(0,je.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,f,p,v;je.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[(0,je.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),(f=this.adman)==null||f.onCompleted(void 0),(p=this.adman)==null||p.onError(void 0),(v=this.adman)==null||v.destroy(),this.videoElement&&(0,ao.clearVideoElement)(this.videoElement),this.isDestroyed=!0}safeExternalCall(e,...i){return yt(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 Km=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 lp,{startTime:f,endTime:p}=u.parse(s);l.startTime=f,l.endTime=p}else if(s.trim()!==""){let u=new Qm,{texts:f}=u.parse(s);l.texts=[...l.texts,...f]}(l.startTime||l.endTime)&&l.texts.length>0&&o.push(l)}return o}},lp=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}},Qm=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((f,p)=>{let v=l.indexOf(p,d);return f===-1||f>v?v:f},-1);if(u===-1){s.push(l.substring(d));break}s.push(l.substring(d,u)),d=u+1}return s}}),a=new lp;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=Km;var cp=require("@vkontakte/videoplayer-shared/es2015"),tl,Ni,qm=0,Gm=!1,Mb="",Vb=(t,e=0,i=0)=>t<e&&t<i,dp=(t,e=0,i=0)=>t>=e&&t<=i,jx=(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:f})=>dp(t,u,f));let a=t>=qm,l=t<qm;if(qm=t,l&&(Gm=!1),(0,cp.isNonNullable)(tl)&&dp(t,tl.startTime,tl.endTime)&&Mb===e.value)return tl;if(!(0,cp.isNonNullable)(Ni)&&(r!=null&&r.length)&&!Gm){Ni=r.find(({startTime:u,endTime:f})=>dp(t,u,f)||a&&Vb(t,u,f)),tl=void 0,!(0,cp.isNonNullable)(Ni)&&r[r.length-1].endTime<t&&(Gm=!0);return}else{if(dp(t,Ni==null?void 0:Ni.startTime,Ni==null?void 0:Ni.endTime))return tl=Ni,Ni=void 0,Mb=e.value,tl;(a&&jx(t,Ni==null?void 0:Ni.startTime,Ni==null?void 0:Ni.endTime)||l&&Vb(t,Ni==null?void 0:Ni.startTime,Ni==null?void 0:Ni.endTime))&&(Ni=void 0)}};var up={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"},Xx={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=up[t])!=null?e:up[Xx[t]])!=null?i:void 0};var mp=require("@vkontakte/videoplayer-shared/es2015");function pp(t){let e="";return lo(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),lo(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),lo(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),lo(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),lo(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),lo(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),lo(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),lo(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),lo(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),lo(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),lo(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),lo(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),lo(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),lo(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),lo(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),lo(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),lo(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),lo(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),lo(t.font)&&(e+=`--font:${t.font};`),lo(t.controlsGradientHeight)&&(e+=`--controls-gradient-height:${t.controlsGradientHeight};`),lo(t.controlsGradient)&&(e+=`--controls-gradient:${t.controlsGradient};`),e.length&&e||void 0}function lo(t){return typeof t=="string"&&!t.includes(";")}var Zx=ke('<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),Jx=L('<div><div><!></div> <span class="title s-0"> </span></div>'),e2={hash:"s-0",code:".player-pip-dummy.s-0{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-0{position:relative}.dummy-image.s-0 svg{transform:scale(1.07143)}.dummy-image.desktop.s-0{transform:scale(1.07143) rotate(-90deg) rotateY(180deg)}.title.s-0{color:#fff;font-size:16px;padding:18px 20px 10px;text-align:center}"};function Ym(t,e){B(e,!0),Q(t,e2);let[i,o]=Be(),r=()=>x(u,"$interfaceLanguage$",i),a=()=>x(f,"$isMobile$",i),l=xe(),d=Vt(),s=!!l.webApi.pictureInPictureApi,u=l.interfaceLanguage$,f=l.ui.isMobile,p=l.ui.t,v=m(()=>r()&&p("pip_dummy_title")),b=pp(d.view);var y=Jx();let _;var w=C(y);let I;var T=C(w);Xe(T,{width:"57",height:"56",testId:"pip-dummy-icon",children:(P,E)=>{var z=Zx();Jt(),$(P,z)},$$slots:{default:!0}}),S(w);var R=k(w,2),A=C(R,!0);S(R),S(y),O((P,E)=>{_=ie(y,1,"player-pip-dummy s-0",null,_,P),Ke(y,b),I=ie(w,1,"dummy-image s-0",null,I,E),he(A,n(v))},[()=>({"is-pip-api":s}),()=>({desktop:!a()})]),$(t,y),F(),o()}var jm=require("@vkontakte/videoplayer-core/es2015"),Ts=require("@vkontakte/videoplayer-shared/es2015");var xc=require("@vkontakte/videoplayer-shared/es2015"),Ks=()=>{var t;return(t=(0,xc.getWindow)().document)==null?void 0:t.pictureInPictureEnabled},il=()=>{let{isEmbed:t}=(0,xc.detectEmbed)();return"documentPictureInPicture"in(0,xc.getWindow)()&&!t},fp=t=>!!t.pictureInPictureWindow,Db=t=>!!t.target&&"height"in t.target&&"width"in t.target,Ob=t=>typeof t=="boolean"?t:t!==void 0;var ol=class{constructor({enabled:e=!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,Ts.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new Ts.ValueSubject(!1),isEnabled$:new Ts.ValueSubject(!1),type:0};this.info.isEnabled$=new Ts.ValueSubject(e)}isSupported(){return Ks()}isActive(){return this.info.isActive$.getValue()}setContext(e){this.svelteContext=e}revealPictureInPicture(){return yt(this,null,function*(){this.isRequested&&(this.removeEventHandlers(),yield this.request(),this.addEventHandlers())})}request(){return yt(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 yt(this,null,function*(){let{document:e}=(0,Ts.getWindow)();!this.isSupported()||!this.isActive()||!this.videoElement||!e.pictureInPictureElement||(yield e.exitPictureInPicture(),jm.clientChecker.browser.isYandex&&!this.videoElement.isConnected&&this.onLeavePictureInPicture())})}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){this.isSupported()&&this.exit().finally(()=>{var i;this.removeEventHandlers();let e=this.videoElement;this.videoElement=(i=this.playerContainer)==null?void 0:i.querySelector("video"),this.waitForSafariLeavePictureInPicture(e,this.videoElement),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=Ye({},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 yt(this,null,function*(){this.removeEventHandlers(),yield this.exit(),this.info.isActive$.next(!1),this.isRequested=!1})}onEnterPictureInPicture(e){var o,r;let i=fp(e)?e.pictureInPictureWindow:void 0;this.info.isActive$.next(!0),this.isRequested=!0,i==null||i.addEventListener("resize",this.eventHandlers.resize),(r=(o=this.externalEventHandlers).enterpictureinpicture)==null||r.call(o)}onLeavePictureInPicture(e){var i,o;if(e){let r=fp(e)?e.pictureInPictureWindow:void 0;r==null||r.removeEventListener("resize",this.eventHandlers.resize)}this.info.isActive$.next(!1),this.isRequested=!1,this.eventHandlers.resize.cancel(),(o=(i=this.externalEventHandlers).leavepictureinpicture)==null||o.call(i)}onResize(e){var o,r;let i=Db(e)?e.target:fp(e)?e.pictureInPictureWindow:void 0;i&&((r=(o=this.externalEventHandlers).resize)==null||r.call(o,{width:i.width,height:i.height}))}setEnabled(e){this.info.isEnabled$.next(e)}waitForSafariLeavePictureInPicture(e,i){if(jm.clientChecker.browser.isSafari&&e&&e!==i){let r=this.eventHandlers.leavepictureinpicture,a=0,l=()=>{(0,Ts.getWindow)().clearTimeout(a),e.removeEventListener("leavepictureinpicture",d)},d=s=>(r(s),l());e.addEventListener("leavepictureinpicture",d),a=(0,Ts.getWindow)().setTimeout(l,1e3)}}};function Zm(t){return t instanceof ol}var t2=Object.defineProperty,i2=Object.defineProperties,o2=Object.getOwnPropertyDescriptors,Nb=Object.getOwnPropertySymbols,n2=Object.prototype.hasOwnProperty,r2=Object.prototype.propertyIsEnumerable,ev=(t,e,i)=>e in t?t2(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,s2=(t,e)=>{for(var i in e||(e={}))n2.call(e,i)&&ev(t,i,e[i]);if(Nb)for(var i of Nb(e))r2.call(e,i)&&ev(t,i,e[i]);return t},a2=(t,e)=>i2(t,o2(e)),Qs=(t,e,i)=>ev(t,typeof e!="symbol"?e+"":e,i),Jm=(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())}),l2=400,d2=225,Sc=class{constructor({enabled:e=!0,initialSize:i={width:l2,height:d2}}){Qs(this,"initialSize"),Qs(this,"playerDomElement"),Qs(this,"playerParentShadowRoot"),Qs(this,"playerDummyElement"),Qs(this,"svelteContext"),Qs(this,"pipWindow"),Qs(this,"info",{isActive$:new mp.ValueSubject(!1),isEnabled$:new mp.ValueSubject(!1),type:1}),Qs(this,"pipActive",!1),Qs(this,"pipApi"),this.initialSize=i,this.info.isEnabled$=new mp.ValueSubject(e),Ks()&&(this.pipApi=new ol({enabled:e}),this.pipApi.info.isActive$.subscribe(o=>{(o&&!this.info.isActive$.getValue()||!o&&this.pipActive)&&this.info.isActive$.next(o),this.pipActive=o}))}isSupported(){return il()}isActive(){return this.info.isActive$.getValue()}setPlayerDomElement(e,i){this.playerDomElement=e,this.playerParentShadowRoot=i}setContext(e){this.svelteContext=e}request(){return Jm(this,null,function*(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=yield documentPictureInPicture.requestWindow(a2(s2({},this.initialSize),{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(`
|
|
59
|
+
`),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=is(Ym,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||(Ua(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1),this.pipWindow=void 0)})})}exit(){return Jm(this,null,function*(){return new Promise(e=>{var i,o,r;this.pipWindow?((i=documentPictureInPicture.window)==null||i.close(),window.focus()):(o=this.pipApi)!=null&&o.isActive()&&((r=this.pipApi)==null||r.exit()),e()})})}dispose(){return Jm(this,null,function*(){yield this.exit()})}setEnabled(e){var i;this.info.isEnabled$.next(e),(i=this.pipApi)==null||i.setEnabled(e)}assignPlayerContainer(e){var i;(i=this.pipApi)==null||i.assignPlayerContainer(e)}updateVideoElement(){var e;(e=this.pipApi)==null||e.updateVideoElement()}setExternalEventHandlers(e){var i;(i=this.pipApi)==null||i.setExternalEventHandlers(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 vp(t){return t instanceof Sc}var tv=(t,e)=>{if(Ob(e)&&il())return new Sc(Ye({enabled:t},typeof e!="boolean"&&e));if(Ks())return new ol({enabled:t})};var Bb=require("@vkontakte/videoplayer-shared/es2015"),uF=require("@vkontakte/videoplayer-statistics/es2015"),gp=class{constructor(e,i,o,r=new Bb.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 Cc=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(Cc||{});var Is=t=>t!=null?t:0,qs=(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(Is(i==null?void 0:i.top)-Is(o==null?void 0:o.top)),left:Math.round(Is(i==null?void 0:i.left)-Is(o==null?void 0:o.left)),bottom:Math.round(Is(i==null?void 0:i.bottom)-Is(o==null?void 0:o.top)),right:Math.round(Is(i==null?void 0:i.right)-Is(o==null?void 0:o.left))}},td=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:Is(e==null?void 0:e.width),height:Is(e==null?void 0:e.height)}};var Fn="off";var id=t=>!!(Math.round(Math.abs(t)/90)%2);var Fb=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:r,statAuthToken:a,isAudioDisabled:l,canDownload:d,callbacks:s,webApi:u,videoEpisodes:f,previewThumbsData:p,uiConfig:v,coreConfig:b,player:y,disabledControls:_,isInteractive:w,interactiveRanges$:I,isInteractiveTime$:T,replayInteractive:R,stopPlayer:A,hasInteractiveBranches:P,playPrevChapterDisabledTooltip:E,additionalButtons:z,additionalSettingsMenuItems:U,additionalContextMenuItems:W,playPrevVideo:Y,playNextVideo:te,onVideoChanged:J,looped:oe=!1,statistics:de,saveRate:ae,internalsExposure:pe,playerView:ee,playerId:$e,metaConfig:Ee,appTracer:ce})=>{var Ig,Eg;let Qe=ti(Ye({},b),{isAudioDisabled:l,live:ti(Ye({},(Ig=b.live)!=null?Ig:{}),{isLiveCatchUpMode:!!r})}),fe=v,ve=dt.TracerFactory.createRootTracer(fe.features.tracer),X=ve.createComponentTracer("Store"),N=y||new pi.Player(Qe,ve,{playerId:$e,onDevNullLog:s==null?void 0:s.onDevNullLog});pe==null||pe.expose({corePlayer:N});let me=new dt.Logger,ue=new ap(me,{loadTimeout:fe.ads.loadTimeout,initTimeout:fe.ads.initTimeout,runtimeTimeout:fe.ads.runtimeTimeout,useAdmanFromNPM:fe.ads.useAdmanFromNPM,volumeMultiplier:fe.ads.volumeMultiplier,isVsidOriginal:fe.ads.isVsidOriginal}),Re=u==null?void 0:u.pictureInPictureApi,et=u==null?void 0:u.annotationsApi,Ae=u==null?void 0:u.slotsApi,j=u==null?void 0:u.focusManager,ne=me.createComponentLog("Store"),Se,Le,ze={},Ce=new Fu,we=new dt.Subscription,He="",st=se(!1),pt=se(ee==="minimal"),Rt=de&&de.oneStat?oi(de.oneStat.vsid$):Or(void 0),ct=se(fa()),ni=se(!1),Ct=()=>nb(document,pi.clientChecker.device.isIOS),Ot=(Eg=Re==null?void 0:Re.info.isActive$)!=null?Eg:new dt.ValueSubject(!1),Nt=se(0),Gt=se(!1),Te=se(!1),G=se([]),Ne=(0,dt.merge)(N.events.fatalError$,N.events.managedError$).subscribe(c=>G.update(h=>[...h,c])),be=Or(!1,c=>{let h=N.events.fatalError$.subscribe(()=>c(!0));return()=>h.unsubscribe()}),Oe=c=>{pt.set(c)},Ie=c=>yt(null,null,function*(){var re;let h=Object.values(dt.InterfaceLanguage).includes(c);if(fe.downloadVKLanguages&&(h&&fe.updateBuiltinLanguages||!sm(c))){let Pe;try{Pe=yield(0,dt.loadVKLangPack)(c,h_,__)}catch(Ze){(re=de==null?void 0:de.oneStat)==null||re.logError({errorType:"VKLangPack",fatal:!1}),ce==null||ce.error({category:dt.ErrorCategory.WTF,id:"VKLangPack",message:String(Ze),thrown:Ze},{severity:"warning"})}Pe&&(rm({language:c,pack:Pe,fallback:fe.defaultLanguage}),bt.set(c),ye.update(Ze=>Ze+1))}sm(c)&&bt.set(c)}),bt=se(t),ye=se(0),qe=se(e);Ie(t);let Ue=(c,h)=>{let V=_e(bt);return am(V,c,h,fe.defaultLanguage)},at=se("thumb");at.subscribe(c=>{c==="ads"&&N.info.playbackState$.getValue()&&Xt()});let Yt=(()=>{let c=ci([be,at],([h,V])=>h?"crashed":V);return ti(Ye({},c),{is:h=>_e(c)===h})})(),At=se(),Xt=()=>{At.set({muted:N.info.muted$.getValue()})},yi=(()=>{let c=se(new Set(_));return ti(Ye({},c),{add:h=>{c.update(V=>new Set([...V].concat(h)))},remove:h=>{c.update(V=>{let re=[...V];return new Set(Array.isArray(h)?re.filter(Pe=>!h.includes(Pe)):re.filter(Pe=>Pe!==h))})},includes:h=>{let V=_e(c);return Array.isArray(h)?h.every(re=>V.has(re)):V.has(h)}})})(),Ri=se({width:0,height:0}),Li=null,Zi=N.info.isBuffering$,si=Or(Zi.getValue(),c=>{let h=Zi.subscribe(V=>{V&&Li===null?Li=window.setTimeout(()=>{c(Zi.getValue()),Li=null},fe.loaderDelay):c(V)});return()=>{h.unsubscribe(),Li&&clearTimeout(Li)}});X.log("create store"),ne({message:"create store"});let ft=c=>{let h=c.container,V=()=>{lt=new MutationObserver(Pe=>{let{removedNodes:Ze}=Pe[0];Ze.length&&h.append(N.experimental.element$.getValue())}),lt.observe(h,{childList:!0})},re=N.experimental.element$.getValue();if(re)h.append(re),V();else{let Pe=N.experimental.element$.pipe((0,dt.filter)(Ze=>!!Ze),(0,dt.once)()).subscribe(Ze=>{h.append(Ze),V()});we.add(Pe)}},di=c=>{ne({message:`init video, config: ${JSON.stringify(c)}`}),w?ft(c):(dt.devNull.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[(0,dt.now)()]}),N.initVideo(c)),X.log("init video",{isInteractive:w}),c.subtitles&&N.setExternalTextTracks(c.subtitles),Se=c,He=c.subtitlesForcedLanguage||""},Ji=new dt.Subject,Pt=c=>Ji.next(c),bi=new dt.Subject,fi=new dt.ValueSubject(Fr.SeekAction.UNKNOWN),We=new dt.Subject,lt=null,Ii={actionRewind$:bi,actionSeek$:fi,inPiP$:Ot,inFullscreen$:new dt.Observable(c=>ct.subscribe(h=>c.next(h))),actionSetSubtitle$:We,nextMovie$:Ji},eo=new dt.Subject,xo=new dt.Subject,Ro={actionSeek$:fi,actionSubtitlesSwitched$:eo,actionQuality$:xo,playerSize$:new dt.Observable(c=>Ri.subscribe(h=>c.next(h))),inPiP$:Ot,inFullscreen$:new dt.Observable(c=>ct.subscribe(h=>c.next(h))),isLoaderVisible$:new dt.Observable(c=>si.subscribe(h=>c.next(h)))};if(de){let{oneStat:c,thinOneStat:h,mediascopePixel:V,statSubscription:re}=de;c&&(w||re.add(c.attachTo(N)),re.add(c.attachToUi(Ii)),re.add(c.attachToAds(ue.events)),c.authorize(a).catch(Pe=>{ne({message:`onestat auth error ${String(Pe)}`})}),V&&V.attachTo(N)),h&&(re.add(h.attachTo(N,ue.events)),re.add(h.attachToUi(Ro)),re.add(h.attachToAds(ue.events)),h.updateContext({isMobile:_e(st)}),h.authorize(a))}ce&&(ce.addSubscription(N.events.managedError$.subscribe(c=>{ce.error(c,{severity:"debug"})})),ce.addSubscription(N.events.fatalError$.subscribe(c=>{ce.error(c,{severity:"fatal"})})),de!=null&&de.oneStat&&ce.addSubscription(de.oneStat.experimental.error$.subscribe(c=>{ce.error(c,{severity:"warning"})})));let vn=()=>{if(pi.clientChecker.device.isIOS&&Le)try{rb(Le)}catch(c){ne({message:`exitIosSafariFullscreen failed: ${c}`})}};we.add(N.experimental.element$.subscribe(c=>{c&&(Le=c,c.classList.add("player-media"),Re==null||Re.updateVideoElement(),w&&c.setAttribute("pip","false"),(ee==="preview"||!fe.features.pip&&!fe.features.dpip)&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(N.events.ended$.subscribe(()=>{var c;vn(),(c=s==null?void 0:s.onEnded)==null||c.call(s)})).add(N.events.looped$.subscribe(()=>{var c;(c=s==null?void 0:s.onLooped)==null||c.call(s)})).add(N.events.started$.subscribe(()=>yt(null,null,function*(){var h,V;Zm(Re)&&(yield Re==null?void 0:Re.revealPictureInPicture());let c=N.info.muted$.getValue();(h=s==null?void 0:s.onStarted)==null||h.call(s),(V=ze.onStarted)==null||V.call(ze,c)}))).add(N.events.willSeek$.subscribe(({from:c,to:h})=>{var V;(V=s==null?void 0:s.onSeek)==null||V.call(s,c,h,fi.getValue())})).add(N.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=s==null?void 0:s.onAutoplaySoundProhibited)==null||c.call(s)})).add(N.info.position$.subscribe(c=>{var V;let h=N.info.duration$.getValue();isFinite(h)&&h>0&&((V=s==null?void 0:s.onTimeupdate)==null||V.call(s,h,c),ue.setPosition(c,h))})).add(N.events.fatalError$.subscribe(c=>{var h;(h=s==null?void 0:s.onCrashed)==null||h.call(s,c?`${c.id}: ${c.message}`:void 0)})).add(N.events.fetcherRecoverableError$.subscribe(c=>{var h;(h=s==null?void 0:s.onRecoverableError)==null||h.call(s,c?`${c.id}: ${c.message}`:void 0)})).add(N.events.loadedMetadata$.subscribe(()=>{Gt.set(!0)})).add(N.info.is3DVideo$.subscribe(c=>{Te.set(c)})).add(N.info.isEnded$.subscribe(c=>{w&&(c?(T!=null&&T.getValue()&&yi.add(Xd),yi.add("PLAY_BUTTON")):yi.remove("PLAY_BUTTON"))})).add(N.info.liveTime$.subscribe(c=>{var h;(h=s==null?void 0:s.onLiveTime)==null||h.call(s,c)})).add(N.info.isStalled$.subscribe(c=>{var h;(h=s==null?void 0:s.onStalledChanged)==null||h.call(s,c)})).add(N.info.isLiveEnded$.subscribe(c=>{var h;return c&&((h=s==null?void 0:s.onLiveEnded)==null?void 0:h.call(s))})).add(ue.events.loadStarted$.subscribe(()=>{var c,h;return(h=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onLoadStarted)==null?void 0:h.call(c)})).add(ue.events.loadEnded$.subscribe(()=>{var c,h;return(h=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onLoadEnded)==null?void 0:h.call(c)})).add(ue.events.loadError$.subscribe(()=>{var c,h;return(h=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onLoadError)==null?void 0:h.call(c)})).add(ue.events.init$.subscribe(()=>{var c,h;return(h=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onInit)==null?void 0:h.call(c)})).add(ue.events.ready$.subscribe(()=>{var c,h;return(h=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onReady)==null?void 0:h.call(c)})).add(ue.events.started$.subscribe(c=>{var h,V;return(V=(h=s==null?void 0:s.adsInfo)==null?void 0:h.onStarted)==null?void 0:V.call(h,c)})).add(ue.events.timeRemained$.subscribe(c=>{var h,V;return(V=(h=s==null?void 0:s.adsInfo)==null?void 0:h.onTimeRemained)==null?void 0:V.call(h,c)})).add(ue.events.ended$.subscribe(c=>{var h,V;return(V=(h=s==null?void 0:s.adsInfo)==null?void 0:h.onCompleted)==null?void 0:V.call(h,c)})).add(ue.events.empty$.subscribe(()=>{var c,h;return(h=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onEmpty)==null?void 0:h.call(c)})).add(ue.events.clicked$.subscribe(c=>{var h,V;return(V=(h=s==null?void 0:s.adsInfo)==null?void 0:h.onClicked)==null?void 0:V.call(h,c)})).add(ue.events.closed$.subscribe(c=>{var h,V;return(V=(h=s==null?void 0:s.adsInfo)==null?void 0:h.onClosed)==null?void 0:V.call(h,c)})).add(ue.events.error$.subscribe(c=>{var h,V;return(V=(h=s==null?void 0:s.adsInfo)==null?void 0:h.onError)==null?void 0:V.call(h,c)})).add(ue.events.paused$.subscribe(()=>{var c,h;return(h=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onPaused)==null?void 0:h.call(c)})).add(ue.events.resumed$.subscribe(()=>{var c,h;return(h=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onResumed)==null?void 0:h.call(c)}));let H=new dt.Subscription,nt=()=>{var Ze,Lt,Bt;let{debugLog:c}=fe,h,V="#9df7b7",re="#efd169";if(c&&c!==!0){let{colors:Kt}=c;h=c.tag,V=(Ze=Kt==null?void 0:Kt[0])!=null?Ze:V,re=(Bt=(Lt=Kt==null?void 0:Kt[1])!=null?Lt:Kt==null?void 0:Kt[0])!=null?Bt:re}let Pe=h?`: ${h}`:"";H.add(N.events.log$.subscribe(Kt=>{console.debug(`%c sdk${Pe} `,`background:${V};`,`sdk component: ${Kt.component}`,Kt.message)})).add(me.log$.subscribe(Kt=>{console.debug(`%c ui${Pe} `,`background:${re};`,`ui component: ${Kt.component}.`,Kt.message)}))},Wt=()=>{H.unsubscribe()},mi=(c,h)=>{X.log("start camera manual rotation",{mx:c,my:h}),N.startCameraManualRotation(c,h)},ut=(c=!1)=>{X.log("stop camera manual rotation",{immediate:c}),N.stopCameraManualRotation(c)},ai=(c,h,V)=>{X.log("move camera focus px",{xpx:c,ypx:h,dt:V}),N.moveCameraFocusPX(c,h,V)},vi=()=>{N.holdCamera()},jt=()=>{N.releaseCamera()},It=Or(N.info.position$.getValue(),c=>{let h,V,re=()=>{let Pe=N.info.playbackState$.getValue(),Ze=N.info.isLive$.getValue(),Lt=N.info.duration$.getValue(),Bt=N.info.position$.getValue();if(Pe&&[pi.PlaybackState.PLAYING,pi.PlaybackState.PAUSED].includes(Pe)){let Kt=Ze?Bt-Lt:N.getExactTime();Kt!==V&&c(Kt),V=Kt}h=requestAnimationFrame(re)};return re(),()=>cancelAnimationFrame(h)}),co=oi(N.info.playbackState$),Do=oi(N.info.isBuffering$),Hn=ci([co,Do],([c,h])=>h?"buffering":c),gn=oi(N.info.currentBuffer$),Mi=oi(N.info.isEnded$),Si=oi(N.info.isLive$),tn=fe.features.playbackRate?oi(N.info.canChangePlaybackSpeed$):Or(!1),or=oi(N.info.liveBufferTime$),$i=oi(N.info.volume$),wo=oi(N.info.muted$),hn=Hu(N.info.predefinedQualityLimitType$.pipe((0,dt.map)(c=>c===pi.PredefinedQualityLimits.TRAFFIC_SAVING)),N.info.predefinedQualityLimitType$.getValue()===pi.PredefinedQualityLimits.TRAFFIC_SAVING),Oo=Hu(N.info.predefinedQualityLimitType$.pipe((0,dt.map)(c=>c===pi.PredefinedQualityLimits.HIGH_QUALITY)),N.info.predefinedQualityLimitType$.getValue()===pi.PredefinedQualityLimits.HIGH_QUALITY),_n=oi(N.info.autoQualityLimitingAvailable$),Es=oi(N.info.availableQualities$),Ps=oi(N.info.availableQualitiesFps$),ds=oi(N.info.chromecastState$),wr=oi(N.info.chromecastDeviceName$),bn=oi(N.info.currentFormat$),$n=oi(N.info.throughputEstimation$),nr=oi(N.info.videoBitrate$),Sr=oi(N.info.intrinsicVideoSize$),rr=oi(N.info.duration$),Hr=oi(N.info.isAudioAvailable$),Ur=()=>{Li&&clearTimeout(Li),Li=null},Un=ci([rr,Si],([c,h])=>h?-c:c),sr=ci([co],([c])=>c===pi.PlaybackState.PLAYING),zn=oi(N.info.atLiveEdge$),ar=oi(N.info.atLiveDurationEdge$),zr=oi(N.info.position$),Wr=ci([zr,rr],([c,h])=>isFinite(c)&&isFinite(h)&&!!h),Ei=ci([ds],([c])=>c===pi.ChromecastState.CONNECTED),cs=oi(N.info.availableVideoStreams$),on=fe.features.audioLanguages?oi(N.info.availableAudioStreams$):Or([]),gt=oi(N.info.currentVideoStream$),Zt=oi(N.info.currentAudioStream$),lr=c=>{c.language&&tm(c.language),N.setVideoStream(c)},Wn=(c,h)=>{N.setAudioStream(c),_o(h)&&(c.language&&tm(c.language),fe.features.userVideoPrefs&&i&&nm(fe.userSalt,String(i),{audioTrackId:c.id}))},Kr=c=>{let h;if(c.length===1&&(h=c.at(0)),h!=null||(h=c.find(re=>"isDefault"in re&&re.isDefault)),fe.features.userVideoPrefs&&i){let re=Qu(fe.userSalt,String(i));if(re!=null&&re.audioTrackId){let Pe=c.find(Ze=>Ze.id===re.audioTrackId);h=Pe!=null?Pe:h}}let V=K_();return V&&(h!=null||(h=c.find(({language:re})=>V===re))),h!=null||(h=c.at(0)),h},Cr=c=>{X.log("change audio stream",{id:c});let h=N.info.availableAudioStreams$.getValue().find(V=>V.id===c);h&&Wn(h,!0)},Qr=!1;we.add(N.info.availableAudioStreams$.subscribe(c=>{if(!Qr&&c.length){let h=Kr(c);h&&(N.setAudioStream(h),Qr=!0)}})),on.subscribe(c=>{var h;(h=s==null?void 0:s.onAvailableAudioStreamsChanged)==null||h.call(s,c.map(({label:V="",id:re="",language:Pe=""})=>({label:V,language:Pe,id:re})))}),Zt.subscribe(c=>{var h;return c&&((h=s==null?void 0:s.onAudioStreamChanged)==null?void 0:h.call(s,c.id))});let yn=!1;we.add(N.info.availableVideoStreams$.subscribe(c=>{if(!yn&&c.length){let h=Kr(c);h&&(N.setVideoStream(h),yn=!0)}}));let nn=se(void 0),xn=oi(N.info.isAutoQualityEnabled$,c=>c&&nn.set(void 0)),Tr=oi(N.info.currentQuality$,()=>nn.set(void 0)),Ir=ci([nn,Tr],([c,h])=>c!=null?c:h),wn=ci(bn,c=>c!==pi.VideoFormat.MPEG),Sn=ci([Es,Ps,xn,Ir,wn],([c,h,V,re,Pe])=>{let Ze=[];Pe&&Ze.push({value:"auto",displayValue:Ue("auto_quality_option"),selected:V});let Lt=c.filter(Bt=>!(0,dt.isInvariantQuality)(Bt));for(let Bt of Lt){let Kt=h[Bt];Ze.push({value:Bt,displayValue:`${Bt}${Kt?Ab(Kt):""}`,selected:V?!1:Bt===re})}return Ze}),dr=oi(N.info.currentPlaybackRate$),Vi=ci([dr,zn,ar],([c,h,V])=>{let re=V||w?1:fe.controls.playbackRateMin,Pe=h?1:fe.controls.playbackRateMax,Ze=fe.controls.playbackRateStep,Lt=[];for(let Bt=re;Bt<=Pe;Bt+=Ze)Lt.push({value:Bt,displayValue:Bt===1?Ue("playback_rate_1"):Ue("playback_rate",{multiplier:Bt.toString(10)}),selected:c===Bt});return Lt}),So=()=>({displayValue:Ue("subtitles_off"),value:Fn,language:""}),No=se(So()),uo=ci([No,ye],([c],h)=>{c.value===Fn?h(So()):h(c)}),Cn=fe.features.subtitles?oi(N.info.availableTextTracks$):Or([]),Tn=M_(),qr=ci([Cn,uo],([c,h],V)=>{var Ze;let re=[],Pe=c.find(({id:Lt})=>Lt===h.value);if(Pe!=null&&Pe.url){let[,Lt]=(Ze=Tn.find(Pe.url))!=null?Ze:[];if(Lt){V(Lt);return}Ce.download(Pe.url).then(Bt=>{if(!Bt||Ce.isDestroyed())return;let Kt=new Lb,ia=Pe.language;if(ia){let F$=!!Pe.isAuto,H$=Kt.parse(Bt,ia);re.push({lang:ia,subtitles:H$,isAuto:F$,id:Pe.id})}Tn.add(Pe.url,re),_e(uo).value===h.value&&V(re)}).catch(dt.suppressAbort).catch(Bt=>{var Kt;(Kt=de==null?void 0:de.oneStat)==null||Kt.logError({errorType:"Subtitles download",fatal:!1}),ce==null||ce.error({category:dt.ErrorCategory.WTF,id:"Subtitles download",message:String(Bt),thrown:Bt},{severity:"warning"})})}V(re)}),Tt=ci([dr,sr,uo],([c,h,V],re)=>{let Lt;if(N.info.isLive$.getValue()&&h&&V.value!==Fn){let Kt=()=>{let ia=1e3/(3*c);Lt=setTimeout(Kt,ia),re(Date.now())};return Kt(),()=>clearTimeout(Lt)}}),gi=ci([Cn,uo],([c,h])=>{if(!c.length)return[];let V=[];for(let{language:re,isAuto:Pe,id:Ze}of c){let Lt=re&&yc(re);re&&Lt&&V.push({displayValue:Pe?Ue("subtitles_auto",{language:Lt}):Lt,value:Ze,selected:(h==null?void 0:h.value)===Ze,isAuto:Pe,language:re})}return V.length?(V.unshift(ti(Ye({},So()),{selected:(h==null?void 0:h.value)===Fn})),V):[]}),Qt={available:[],prev:[]},Bo=()=>{var h,V;let c=N.experimental.getCurrentTime$.getValue();return(V=(h=c==null?void 0:c())!=null?h:Le==null?void 0:Le.currentTime)!=null?V:0},Co=ci([It,uo,qr,Tt],([c,h,V,re])=>{var Ze;let Pe=N.info.isLive$.getValue();if(Pe&&Qt.prev!==V){let Lt=V.find(({id:Kt})=>Kt===h.value),Bt=Qt.prev.find(({id:Kt})=>Kt===h.value);if(Lt){let Kt=ti(Ye({},Lt),{subtitles:[...(Ze=Bt==null?void 0:Bt.subtitles)!=null?Ze:[],...Lt.subtitles]});Qt.available=[Kt],Qt.prev=V}}if(h&&h.value!==Fn){let Lt=Pe?Bo():c,Bt=Pe?Qt.available:V;return Rb(Lt,h,Bt,Pe)}}),In=ci([Co],([c])=>c!=null&&c.texts?c.texts:[]);we.add(uo.subscribe(c=>{var h,V;if(c.value===Fn)(h=s==null?void 0:s.onSubtitleOff)==null||h.call(s);else{let re=Object.entries(up).find(([Pe,Ze])=>Ze===c.displayValue);(V=s==null?void 0:s.onSubtitleOn)==null||V.call(s,re?re[0]:"",c.value)}}));let To=se(!0),En=ci([gn,Un,zr,or],([c,h,V,re])=>{var Bt;let Pe=(Bt=c==null?void 0:c.end)!=null?Bt:0;if(!re)return Pe/h;let Lt=-V+re-h;return(Pe-Lt)/h}),Wi=oi(N.info.availableSources$),Er=ci([Wi],([c])=>Object.keys((c==null?void 0:c[pi.VideoFormat.MPEG])||{}).length>0),Fo=()=>{var V,re,Pe;let c=Object.keys(((re=(V=N.info.availableSources$)==null?void 0:V.getValue())==null?void 0:re[pi.VideoFormat.MPEG])||{}),h=(0,dt.getHighestQuality)(c)||dt.VideoQuality.Q_144P;return(Pe=Se.sources[pi.VideoFormat.MPEG])==null?void 0:Pe[h]},Kn=()=>{var h;let c=Fo();if(c)X.log("download video",{url:c}),k_(c,((h=Se==null?void 0:Se.meta)==null?void 0:h.title)||"video");else{let V="There is no URL for download video";X.log("download video",{message:V}),ne({message:V})}},us=()=>{ne({message:"toggle muted"});let c=N.info.muted$.getValue();N.info.volume$.getValue()===0&&!c?Pr(Gr(),!1):tt(!c,!1)},ps=()=>{var c;if(zt.ui.settingsMenu.visible$.set(!1),!_e(zt.ui.settingsSubMenu.visible$)){let h=_e(zt.ui.settingsMenu.ref$);if((c=s==null?void 0:s.uiInfo)!=null&&c.onSettingsMenu&&h){let re=td(h),Pe={top:0,left:0,bottom:0,right:0};s.uiInfo.onSettingsMenu({visible:!1,size:re,position:Pe,name:"settings"})}}X.log("close settings menu")},fs=(c,h=()=>Promise.resolve())=>yt(null,null,function*(){var Pe;zt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),zt.ui.settingsMenu.visible$.set(!0),yield h();let V=_e(zt.ui.settingsMenu.ref$),re=yl();if((Pe=s==null?void 0:s.uiInfo)!=null&&Pe.onSettingsMenu&&V&&re){let Lt=td(V),Bt=qs(V,re);s.uiInfo.onSettingsMenu({visible:!0,size:Lt,position:Bt,name:"settings"})}X.log("open settings menu",{wasOpenedByKeyboard:c})}),to=(c,h=!1)=>{var Ze;zt.ui.settingsSubMenu.visible$.set(!1);let V=_e(zt.ui.settingsMenu.ref$),re=yl(),Pe=_e(zt.ui.settingsMenu.visible$);if((Ze=s==null?void 0:s.uiInfo)!=null&&Ze.onSettingsMenu&&V&&re)if(Pe&&!h){let Bt=td(V),Kt=qs(V,re);s.uiInfo.onSettingsMenu({visible:!0,size:Bt,position:Kt,name:"settings"})}else{let Bt=td(c),Kt={top:0,left:0,bottom:0,right:0},ia=_e(zt.ui.settingsSubMenu.name$);s.uiInfo.onSettingsMenu({visible:!1,size:Bt,position:Kt,name:ia})}X.log("close settings sub menu")},ms=(c,h)=>{var re;zt.ui.settingsSubMenu.visible$.set(!0),zt.ui.settingsSubMenu.ref$.set(h),zt.ui.settingsSubMenu.name$.set(c);let V=yl();if((re=s==null?void 0:s.uiInfo)!=null&&re.onSettingsMenu&&h&&V){let Ze=td(h),Lt=qs(h,V);s.uiInfo.onSettingsMenu({visible:!0,name:c,size:Ze,position:Lt})}X.log("open settings sub menu",{name:c})},Gr=()=>{var h;let c=Math.max(fe.volumeMinRestore,(h=Uu())!=null?h:0);return c===0?fe.volumeDefault:c},_o=c=>{let h=fe.features.savePreferredStatesOnUserActionOnly;return!h||h&&!c},Pr=(c,h)=>{let V=c===0?Gr():c,re=N.info.muted$.getValue();ne({message:`set volume, volume: ${c}, preferredVolume: ${V}`});let Pe=!l||Yt.is("ads");re&&c>0&&Pe&&(re=!1,_o(h)&&Jf(!1)),N.setVolume(c,re),ue.setVolume(c),_o(h)&&Yf(V)},tt=(c,h)=>{let V=N.info.volume$.getValue();ne({message:`set muted, currentVolume: ${V}, mute: ${c}`});let re=Yt.is("ads");if(N.setMuted(c,re),ue.setVolume(c?0:V),_o(h)&&(!re||!c)&&Jf(c),!c&&V===0){let Pe=Gr();N.setVolume(Pe),_o(h)&&Yf(Pe),ue.setVolume(Pe)}},$t=se(!1),ei=c=>{var h,V;X.log("set looped",{isLooped:c}),$t.set(c),N.setLooped(c),(V=(h=s==null?void 0:s.uiInfo)==null?void 0:h.onLoopedChanged)==null||V.call(h,c)};ei(oe);let Di=()=>{var c,h;(h=(c=s==null?void 0:s.uiInfo)==null?void 0:c.onReportProblem)==null||h.call(c)},po=(c,h=!1)=>{var V;ne({message:`set autoplayNextEnabled, value: ${c}`}),X.log("set autoplay next enabled",{autoplayNextEnabled:c}),zt.ui.autoplayNextEnabled$.set(c),G_(c),h&&((V=s==null?void 0:s.onSetAutoplayNextEnabled)==null||V.call(s,c))},Bi=c=>{ne({message:`set timerNextVideoRunning, value: ${c}`}),X.log("set timer next video running",{timerNextVideoRunning:c}),zt.ui.timerNextVideoRunning$.set(c)},bo=(c=!0)=>{var V;let h=!0;if(c&&(s!=null&&s.onPrevVideoClick))try{h=(V=s==null?void 0:s.onPrevVideoClick)==null?void 0:V.call(s)}catch(re){ne({message:"onPrevVideoClick callback failed to execute"})}J(!0),h&&Y()},Ho=(c=!0)=>{var V;let h=!0;if(c&&(s!=null&&s.onNextVideoClick))try{h=(V=s==null?void 0:s.onNextVideoClick)==null?void 0:V.call(s)}catch(re){ne({message:"onNextVideoClick callback failed to execute"})}J(!1),h&&te()},Pn=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementShow)==null||c.call(s)},Qn=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementClick)==null||c.call(s)},$o=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementAuto)==null||c.call(s)},rn=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementCancel)==null||c.call(s)},kr=()=>{N.prepare()},Ar=()=>{(0,dt.assertNonNullable)(zt);let c=_e(zt.ui.controls.disabledControls$),h=_e(zt.playerPhase),V={playerPhase:h,isInteractive:w,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(ne({message:"toggle play"}),h==="ads"){V.action="play",X.log("toggle adman play",V),ue.togglePlay();return}let re=()=>{var Ze;ne({message:"toggle play, call player.play"}),V.action="play",N.play(),(Ze=s==null?void 0:s.onPlay)==null||Ze.call(s)},Pe=()=>{var Ze;ne({message:"toggle play, call player.pause"}),V.action="pause",N.pause(),(Ze=s==null?void 0:s.onPause)==null||Ze.call(s)};if(N.info.isEnded$.getValue()){if(ne({message:"toggle play, video ended, seek to 0"}),bi.next(),fi.next(Fr.SeekAction.REWIND),w){R==null||R();return}N.seekTime(0),re()}else N.info.playbackState$.getValue()!==pi.PlaybackState.PLAYING?re():Pe();X.log("toggle play",V)},Io=(c,{changeReason:h="default",appliesTo:V="to-video",byUser:re=!1}={},Pe)=>{ne({message:`set quality, quality: ${c}`}),X.log("set quality",{quality:c}),re&&xo.next(c),N.setAutoQuality(c==="auto");let{qualityDetailsSubMenuEnabled:Ze}=fe.features;zu(),c!=="auto"?(Ze?(Wu({type:"exact_quality",quality:c,videoId:i},V),N.setPredefinedQualityLimits(pi.PredefinedQualityLimits.UNKNOWN)):jf(i,c),nn.set(c),N.setQuality(c)):Ze&&h==="default"&&(it("auto_quality",V,Pe),_e(hn)&&cr(!1,void 0,Pe),_e(Oo)&&qn(!1,void 0,Pe))},cr=(c,h="as-default",V)=>{ne({message:`set trafficSavingEnabled, value: ${c}`}),X.log("set traffic saving enabled",{trafficSavingEnabled:c});let re=c?pi.PredefinedQualityLimits.TRAFFIC_SAVING:pi.PredefinedQualityLimits.UNKNOWN;fe.features.qualityDetailsSubMenuEnabled?(vs(re,h,V),ec(!1)):(N.setPredefinedQualityLimits(re),_o(V)&&ec(c))},qn=(c,h="as-default",V)=>{ne({message:`set highQualityEnabled, value: ${c}`}),X.log("set high quality enabled",{highQualityEnabled:c}),vs(c?pi.PredefinedQualityLimits.HIGH_QUALITY:pi.PredefinedQualityLimits.UNKNOWN,h,V)},vs=(c,h,V)=>{c!==pi.PredefinedQualityLimits.UNKNOWN&&(_e(_n)&&!_e(xn)&&Io("auto",{appliesTo:h,changeReason:"limit-changed"},V),it(c,h,V)),N.setPredefinedQualityLimits(c)},it=(c,h,V)=>{_o(V)&&(Wu({type:c,videoId:i},h),h==="as-default"&&Wu({type:c,videoId:i},"to-video"))},Ft=(c,h=!0)=>{X.log("set playback rate",{playbackRate:c}),N.setPlaybackRate(c),fe.features.saveRate&&ae&&!N.info.isLive$.getValue()&&h&&Q_(c)},Pi=()=>{let c=_e(tn),h=_e(Vi),V=h.findIndex(({selected:Pe})=>Pe);if(V===h.length-1||!c)return h[V];let re=h[V+1];return Ft(re.value),re},sn=()=>{let c=_e(tn),h=_e(Vi),V=h.findIndex(({selected:Pe})=>Pe);if(V===0||!c)return h[V];let re=h[V-1];return Ft(re.value),re},Uo=(c=ti(Ye({},So()),{selected:!1}),h)=>{X.log("set subtitles",Ye({},c)),c.value!==Fn&&We.next(c.isAuto?c.value+"_auto":c.value),eo.next({enabled:c.value!==Fn,lang:c.language,auto:!!c.isAuto}),No.set(c),_o(h)&&(om(c.value===Fn?void 0:c.language),fe.features.userVideoPrefs&&i&&nm(fe.userSalt,String(i),{subtitleTrackId:c.value===Fn?void 0:c.value}))},Yr=c=>{X.log("toggle subtitles");let h=_e(uo);(h==null?void 0:h.value)===Fn?ur(c):jr(c)},an=(c,h)=>{X.log("change subtitle",{enabled:c}),c?ur(!0,h):jr(!0)},ur=(c,h)=>{if(_e(pt))return;X.log("subtitle on");let V=_e(gi),re=_e(bt),Pe=He!=null?He:re,Ze;h&&(Ze=V.find(Lt=>Lt.value===h)),Ze!=null||(Ze=V.filter(Lt=>Lt.value!==Fn).find(Lt=>Lt.language===Pe)),Uo(Ze!=null?Ze:V[1],c)},jr=c=>{X.log("subtitle off"),Uo(void 0,c)};we.add(N.info.availableTextTracks$.subscribe(c=>{var V;function h(){let re=[];for(let{language:Pe,isAuto:Ze,id:Lt}of c){let Bt=Pe&&yc(Pe);Pe&&Bt&&re.push({id:Lt,language:Pe,title:Ze?Ue("subtitles_auto",{language:Bt}):Bt})}return re}(V=s==null?void 0:s.onAvailableSubtitlesChanged)==null||V.call(s,h())}));let ks=se(!0),Zs=c=>{ks.set(c)},Gn=(c,h,V=!0)=>{var re;if(ne({message:`seek to time, time: ${c}`}),X.log("seek to time",{time:c,action:h,forcePrecise:V}),fi.next(h),N.info.isLive$.getValue()){let Pe=N.info.duration$.getValue(),Ze=Math.min(0,Pe+c);N.seekTime(Ze,V)}else{if(T!=null&&T.getValue())return;N.info.isEnded$.getValue()&&(ne({message:"seek after ended, call callbacks.onPlay"}),(re=s==null?void 0:s.onPlay)==null||re.call(s)),N.seekTime(Sg(c),V)}},Ca=c=>{ne({message:`seek to episode start time: ${c}`}),X.log("seek to episode start time",{time:c}),Gn(c,Fr.SeekAction.EPISODE,!0)},mt=(c,h,V=!1)=>{ne({message:`seek to percent, percent: ${c}`}),X.log("seek to percent",{percent:c,action:h});let re=_e(Un)*c;Gn(re,h,V)},li=c=>{ne({message:`seek external, time: ${c}`}),X.log("seek external",{time:c}),fi.next(Fr.SeekAction.UNKNOWN),N.seekTime(N.info.isLive$.getValue()?-c:c)},zo=c=>{var re,Pe;let h=(re=c.max)!=null?re:"none",V=(Pe=c.min)!=null?Pe:"none";ne({message:`set auto quality limitation. Max: ${h}. Min: ${V}`}),X.log("set auto quality limits",{max:h,min:V}),N.setAutoQualityLimits(c)},pr=c=>{ne({message:`seek external to episode start time: ${c}`}),X.log("seek external to episode start time",{time:c}),Gn(c,Fr.SeekAction.EPISODE,!0)},Lr=c=>{ne({message:`set playback rate to: ${c}`}),X.log("set playback rate external",{playbackRate:c}),N.setPlaybackRate(c)},Wo=se(!1),ki=se(!1),gs=ci([Un,pt],([c,h])=>!!p&&c>=fe.suitableDurationForUsingRichSeek&&fe.features.useRichSeek&&!w&&ee!=="preview"&&!h),fo=((p==null?void 0:p.frameWidth)||0)>=((p==null?void 0:p.frameHeight)||0),Ki=ci([Nt],([c])=>{let h=id(c);return fo?!h:h});we.add(Yt.subscribe(c=>{c!=="video"&&Wo.set(!1)})),Wo.subscribe(c=>{var h;(h=s==null?void 0:s.onRichSeekActiveChanged)==null||h.call(s,c)});let ln=se(void 0),Yn=se(!1),Xr=c=>{ne({message:`start scrubbing, progress: ${c}`}),X.log("start scrubbing",{progress:c}),Yn.set(!0),ge(c)},ge=c=>{ln.set(c)},Et,xi,Oi=()=>{ln.set(void 0),Yn.set(!1)},Ko=()=>{clearTimeout(xi),clearTimeout(Et),Et=window.setTimeout(()=>{Oi()},500),Le==null||Le.removeEventListener("seeked",Ko)},Eo=(c,h=!1,V=Fr.ThinOneStat.ActionSeekType.SLIDER)=>{ne({message:`complete scrubbing, progress: ${c}`}),X.log("complete scrubbing",{progress:c}),mt(c,V,h),_e(zt.ui.isMobile)&&_e(zt.state.currentFormat$)===pi.VideoFormat.HLS?(Le==null||Le.addEventListener("seeked",Ko),xi=window.setTimeout(()=>{Ko()},300)):Oi()},io=ci([It,Un,ln],([c,h,V],re)=>{re((0,dt.isNonNullable)(V)?V*h:c)}),dn=se(!1),As=()=>{dn.set(!0)},Ls=()=>{dn.set(!1)},Js=ci([Ri],([{width:c}],h)=>{let V=Cb(c);h(V)}),hs=z.filter(c=>A_(c)),_s=ci([Js,st],([c,h])=>h?hs.filter(V=>!V.hideOnMobile):hs.filter(V=>{var re;return!((re=V.hideOnDesktopGridTypes)!=null&&re.includes(c))})),fr=se(z.filter(c=>L_(c))),Ta=ci([fr,Js],([c,h])=>c.filter(V=>{var re;return!((re=V.hideOnDesktopGridTypes)!=null&&re.includes(h))})),vd=ci([Ta,_s],([c,h])=>[...fe.features.additionalButtonsDesktopControlPanelRight?c.filter(V=>V.type==="desktop-control-panel-right"):[],...fe.features.additionalButtons?h.map((V,re)=>{var Pe;return{id:re,weight:re,type:"desktop-control-panel-right",testId:V.testId,icon:V.iconUrl,onClick:V.onClick,ariaLabel:(Pe=V.ariaLabel)!=null?Pe:V.tooltip,tooltipText:V.tooltip}}):[]].filter(V=>!v.disabledAdditionalButtonIds.includes(V.id))),Mr=se(U),gd=ci([Mr],([c])=>fe.features.additionalSettingsMenuItems?c.map(h=>h.type==="SWITCH"?ti(Ye({},h),{onClick:h.onChangeEnabled}):h):[]),Ia=(c,h)=>{let V=_e(fr).map(re=>re.id!==c?re:Ye(Ye({},re),h));fr.set(V)},hd=c=>{let h=_e(fr);if(h.some(V=>V.id===c.id)){ne({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}h.push(c),fr.set(h)},bl=c=>{let h=_e(fr);if(!h.some(V=>V.id===c)){ne({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}h=h.filter(V=>V.id!==c),fr.set(h)},$l=c=>{fi.next(Fr.SeekAction.LIVE),ne({message:"live switch to low latency "+c}),X.log("live switch to low latency "+c),N.setLiveLowLatency(c)},Ea=(c,h)=>{let V=_e(Mr).map(re=>re.id!==c?re:Ye(Ye({},re),h));Mr.set(V)},ht=c=>{let h=_e(Mr);if(h.some(V=>V.id===c.id)){ne({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}h.push(c),Mr.set(h)},_t=c=>{let h=_e(Mr);if(!h.some(V=>V.id===c)){ne({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}h=h.filter(V=>V.id!==c),Mr.set(h)},Ci=se(W),Po=ci([Ci],([c])=>fe.features.additionalContextMenuItems?c:[]),oo=(c,h)=>{let V=_e(Ci).map(re=>re.id!==c?re:Ye(Ye({},re),h));Ci.set(V)},hi=c=>{let h=_e(Ci);if(h.some(V=>V.id===c.id)){ne({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}h.push(c),Ci.set(h)},Qi=c=>{let h=_e(Ci);if(!h.some(V=>V.id===c)){ne({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}h=h.filter(V=>V.id!==c),Ci.set(h)},ea=ci([st,be],([c,h],V)=>{V(c&&h)}),_d=()=>{fi.next(Fr.SeekAction.LIVE),ne({message:"switch to active live"}),X.log("switch to active live"),N.seekTime(0),N.info.playbackState$.getValue()!==pi.PlaybackState.PLAYING&&zt.actions.internal.togglePlay()},tu=()=>{X.log("skip adman"),ue.skip()},Hp=(c=!0)=>{var re;(0,dt.assertNonNullable)(zt),ne({message:`switch from ads to video, callPlay: ${c}`}),X.log("switch from ads to video",{callPlay:c}),at.set("video"),c&&N.play(),l&&tt(!0,!0);let h=(re=_e(At))==null?void 0:re.muted,V=!N.info.muted$.getValue();h!==void 0&&!V&&tt(h,!0),At.set(void 0)},iu=()=>{(0,dt.assertNonNullable)(zt),ne({message:"switch from video to ads"}),X.log("switch from video to ads"),zt.actions.internal.pause(),vn(),at.set("ads")},Up=c=>{(0,dt.assertNonNullable)(zt);let h=c?"LiveWaitingStart":"thumb";X.log("set live waiting start",{state:c,playerPhase:h}),at.set(h)},ou=c=>{(0,dt.assertNonNullable)(zt);let h=c?"LiveWaitingRecover":"thumb";X.log("set live waiting recover",{state:c,playerPhase:h}),at.set(h)},zp=c=>{(0,dt.assertNonNullable)(zt);let h=c?"LiveWaitingRecord":"thumb";X.log("set live waiting record",{state:c,playerPhase:h}),at.set(h)},nu=()=>((0,dt.assertNonNullable)(zt),X.log("get debug text data"),E_(N,Se,zt,ve.getTraceId(),Ee)),Wp=()=>((0,dt.assertNonNullable)(zt),JSON.stringify(ve.getFinishedSpans())),ru=()=>((0,dt.assertNonNullable)(zt),P_(N,Se,zt)),yl=()=>Le,su=()=>{ne({message:"toggle chromecast"}),X.log("toggle chromecast"),N.toggleChromecast()},ta=c=>{var V;if((0,dt.assertNonNullable)(zt),N.info.isEnded$.getValue())return;let h=!c;if(_e(zt.playerPhase)==="ads"){ne({message:`pause ads, internalCall: ${h}`}),X.log("pause ads",{internalCall:h}),ue.pause();return}ne({message:`pause video, internalCall: ${h}`}),X.log("pause video",{internalCall:h}),h&&((V=s==null?void 0:s.onPause)==null||V.call(s)),N.pause()},Pa=c=>{var V;(0,dt.assertNonNullable)(zt);let h=!c;if(_e(zt.playerPhase)==="ads"){ne({message:`play ads, internalCall: ${h}`}),X.log("play ads",{internalCall:h}),ue.play();return}ne({message:`play video, internalCall: ${h}`}),X.log("play video",{internalCall:h}),h&&((V=s==null?void 0:s.onPlay)==null||V.call(s)),N.play()},Kp=c=>{(0,dt.assertNonNullable)(zt);let h=!c;if(_e(zt.playerPhase)==="ads"){ne({message:"player cannot be stopped during ads via external method"});return}ne({message:`player will be stopped, internalCall: ${h}`}),A==null||A()},bd=(c,h)=>{(0,dt.assertNonNullable)(zt),ne({message:`first start, show ads: ${c}, internalCall: ${!h}`}),X.log("first start",{showAds:c,external:h}),c?at.set("ads"):(at.set("video"),h?N.play():zt.actions.internal.togglePlay())},$d=()=>(ne({message:"getting time codes"}),f),yd=()=>{let c=$d();if(!c||[0,1].includes(c.length))return;let h=N.info.position$.getValue();return c.find(V=>V.time>h)},Qp=c=>{let h=c;h||(h=yd());let V=N.info.position$.getValue();X.log("seek to next episode",Ye({currentTime:V},h)),h&&(ne({message:"seek to next episode"}),Gn(h.time,Fr.SeekAction.EPISODE,!0))},au=()=>{let c=$d();if(!c||[0,1].includes(c.length))return;let h=N.info.position$.getValue(),V=c.findIndex(Pe=>Pe.time>h),re=V===-1?c.length-2:V-2;if(!(re<0))return c[re]},qp=c=>{let h=c;h||(h=au());let V=N.info.position$.getValue();X.log("seek to prev episode",Ye({currentTime:V},h)),h&&(ne({message:"seek to prev episode"}),Gn(h.time,Fr.SeekAction.EPISODE,!0))},Ge=()=>(ne({message:"getting preview thumbs data"}),X.log("get preview thumbs data",Ye({},p)),p),_i=()=>yt(null,null,function*(){let c=Re==null?void 0:Re.isActive(),h="none";Re!=null&&Re.isActive()?(h="exit",yield Re==null?void 0:Re.exit()):(h="request",yield Re==null?void 0:Re.request()),X.log("toggle picture in picture",{isActive:c,action:h})}),Qo=(c=-90)=>{X.log("rotate video",{alphaDiff:c}),Nt.update(h=>h+c)},kn=se([]);I==null||I.subscribe(c=>{let h=[];for(let V=0;V<c.length;V++){let{range:[re,Pe],subjects:Ze}=c[V];V===0&&re!==0&&h.push({time:0,text:"",interactive:!1,completed:!0}),h.push({time:re/1e3,text:"",interactive:!0,completed:fe.features.interactiveTimeOpenUri?!Ze.length||Ze.every(Lt=>Lt.isRemoved):!Ze.length}),Pe!==1/0&&h.push({time:Pe/1e3,text:"",interactive:!1,completed:!0})}kn.set(h)});let An=se(!1);T==null||T.subscribe(c=>{c&&_e(Yn)&&Oi()});let Sg=c=>{if(!w)return c;let h=_e(kn),V=_e(Un),Pe=_e(zr)/V,Ze=h.find(Lt=>Lt.interactive&&!Lt.completed&&Lt.time>Pe);return typeof(Ze==null?void 0:Ze.time)=="number"?Math.min(c,Ze.time-.05):c},M$=()=>{zt.ui.episodes.panelOpened$.set(!1)},V$=()=>{X.log("destroy store"),clearTimeout(xi),clearTimeout(Et),we.unsubscribe(),H.unsubscribe(),N.destroy(),ue.destroy(),de==null||de.destroy(),Ne.unsubscribe(),lt==null||lt.disconnect(),lt=null,Ce.destroy(),ce==null||ce.destroy()},R$=ci([zn,Yt,tn],([c,h,V])=>v.features.doubleForwardAvailable&&!c&&h==="video"&&V),Gp=se(!1),Cg=2,lu=null,Tg=c=>{if(!_e(sr)&&c)return;let h=N.info.currentPlaybackRate$.getValue();c?h!==Cg&&(lu=h,Ft(Cg,!1),Gp.set(!0)):(lu&&Ft(lu,!1),Gp.set(!1),lu=null)};Yt.subscribe(c=>{c!=="video"&&Tg(!1)});let D$=()=>{ta(!1),Wo.set(!0)},O$=()=>{Pa(!1),Wo.set(!1)},Yp=!1,N$=()=>{ki.set(!0),Yp=N.info.playbackState$.getValue()===pi.PlaybackState.PLAYING,ta(!1)},B$=()=>{ki.set(!1),!_e(Wo)&&Yp&&Pa(!1),Yp=!1};N.events.playing$.subscribe(()=>{_e(Wo)&&ta(!1)});let zt={interfaceLanguage$:bt,isCyrillicRelatedInterface$:qe,initVideo:di,videoId:i,isClip:o,playerPhase:Yt,vsid:Rt,state:{positionExact$:It,positionWithScrubbing$:io,duration$:Un,playbackState$:co,playbackStateRealistic$:Hn,isPlaying$:sr,isLoaderVisible:si,bufferedProgress$:En,isLive$:Si,canChangePlaybackSpeed$:tn,isActiveLive$:zn,isOldestAvailableLive$:ar,isRewindableLive$:Wr,isEnded$:Mi,muted$:wo,volume$:$i,trafficSavingEnabled$:hn,highQualityEnabled$:Oo,autoQualityLimitingAvailable$:_n,availableVideoStreams$:cs,availableAudioStreams$:on,videoStream$:gt,audioStream$:Zt,currentQuality$:Ir,isAutoQualityEnabled$:xn,availableQualities$:Sn,currentPlaybackRate$:dr,availablePlaybackRates$:Vi,currentSubtitle$:uo,availableTextTracks$:Cn,availableSubtitlesList$:gi,currentSubtitleCaptions$:In,isAutoSubtitleCaptionVisible$:To,chromecastState$:ds,chromecastDeviceName$:wr,chromecastConnected$:Ei,currentFormat$:bn,throughputEstimation$:$n,videoBitrate$:nr,videoSize$:Sr,errorLog$:G,crashed$:be,isAudioAvailable$:Hr,isAudioDisabled:!!l,canDownload:fe.features.download&&!!d,availableSources$:Wi,hasMpegSources$:Er,isInteractive:w,showInteractiveGraph:fe.features.interactiveGraph,showSeekToInteractive:fe.features.seekToInteractive,showPlayPrevChapter:fe.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:fe.features.interactiveTimeIndicator&&!!_e(kn).length,interactiveEpisodes$:kn,isInteractiveTime$:T?oi(T):se(!1),isInteractiveExpectation$:An,hasInteractiveBranches:P,playPrevChapterDisabledTooltip:E,looped$:$t,loadedMetadata$:Gt,isAutoQualityAvailable$:wn,previewTrackActive:Wo,previewTrackDragInProgress:ki},ui:{t:Ue,isMinimalMode$:pt,controlsVisible:se(!1),touched:se(!1),controls:{prevButton:se(void 0),playButton:se(void 0),replayButton:se(void 0),nextButton:se(void 0),playPrevChapterButton:se(void 0),seekToInteractiveButton:se(void 0),interactiveGraphButton:se(void 0),liveButton:se(void 0),time:se(void 0),episodes:se(void 0),volume:se(void 0),subtitles:se(void 0),settings:se(void 0),context:se(void 0),chromecast:se(void 0),pip:se(void 0),"theater-mode-button":se(void 0),fullscreen:se(void 0),vkLogo:se(void 0),interactiveTimeIndicator:se(void 0),timeline:se(void 0),autoplayNextToggle:se(void 0),additionalButtons:z.length?z.reduce(c=>[...c,se(void 0)],[]):[],disabledControls$:yi},modals:{hotKeyMap:{show:se(!1),data:se({title:"",closeBtnText:"",groups:[]})}},isFullscreen:ct,isFullscreenOpenedByKeyboard:ni,rotateAlpha:Nt,isAutoplay:se(!1),debugPanelVisible:se(!1),episodes:{panelOpened$:se(!1),openedByKeyboard$:se(!1)},contextMenu:{visible$:se(!1),btnRef$:se(void 0),openedByBtnKeyboard$:se(!1),openedByHotKey$:se(!1),lastActiveElem$:se(void 0),showContextMenuBtn$:se(!1),position$:se({top:0,left:0})},playerSize:Ri,isMobile:st,mobileNotReportControlHidden$:ea,icon3DVideoVisible:se(!1),scrubbingInProgress:Yn,volumeChangingInProgress:dn,is3DVideo:Te,currentGridType$:Js,additionalButtonsDeprecated$:_s,additionalDesktopControlPanelRightButtons$:vd,additionalSettingsMenuItems$:gd,additionalContextMenuItems$:Po,interactiveHideMobileControls:se(!1),overlayContainer$:se(void 0),startedByKeyboard$:se(!1),autoplayNextEnabled$:se(!1),timerNextVideoRunning$:se(!0),settingsMenu:{visible$:se(!1),ref$:se(void 0),openedByBtnKeyboard$:se(!1)},settingsSubMenu:{visible$:se(!1),ref$:se(void 0),name$:se(void 0)},userActionsDisabled:se(!1),hiddenControls:{volume:se(!1),vkLogo:se(!1),pip:se(!1),chromecast:se(!1),settings:se(!1)},isControlsAvailable:ks,controlBlocks:{topLeft:se(void 0),topRight:se(void 0),middle:se(void 0),bottom:se(void 0),bottomLeft:se(void 0),bottomRight:se(void 0)},videoTitleInfo:se(void 0),doubleForwardOn$:Gp,doubleForwardAvailable$:R$,previewTrackActive:Wo,previewTrackDragInProgress:ki,previewTrackAvailable:gs,isPreviewTrackHorizontallyAligned:Ki},ads:{position:se(0),duration:se(0),playbackState:se("inactive"),canSkip:se(!1),secondsToWatchBeforeSkip:se(0),postrollPassed:se(!1)},webApi:{pictureInPictureApi:Re,annotationsApi:et,slotsApi:Ae,focusManager:j},actions:{internal:{preload:kr,firstStart:c=>bd(c,!1),play:()=>Pa(!1),pause:()=>ta(!1),togglePlay:Ar,toggleMuted:us,openSettingsMenu:fs,closeSettingsMenu:ps,openSettingsSubMenu:ms,closeSettingsSubMenu:to,setVolume:c=>Pr(c,!1),setMuted:c=>tt(c,!1),startVolumeChanging:As,stopVolumeChanging:Ls,setVideoStream:lr,setAudioStream:c=>Wn(c,!1),setQuality:(c,h)=>Io(c,h,!1),setTrafficSavingEnabled:(c,h)=>cr(c,h,!1),setHighQualityEnabled:(c,h)=>qn(c,h,!1),setPlaybackRate:Ft,incrementPlaybackRate:Pi,decrementPlaybackRate:sn,setSubtitle:c=>Uo(c,!1),toggleSubtitle:()=>Yr(!1),togglePictureInPicture:_i,startScrubbing:Xr,progressScrubbing:ge,completeScrubbing:Eo,toggleChromecast:su,switchToActiveLive:_d,switchFromAdsToVideo:Hp,switchFromVideoToAds:iu,skipAd:tu,setLiveWaitingStart:Up,setLiveWaitingRecover:ou,setLiveWaitingRecord:zp,getDebugTextData:nu,getTraceTextData:Wp,getDebugPanelData:ru,getVideoElement:yl,seekTime:(c,h,V)=>Gn(c,h,V),clearDelayedBufferingCheckTimeout:Ur,seekEpisodeStartTime:Ca,seekToPercent:mt,getNextEpisode:yd,seekToNextEpisode:Qp,getPrevEpisode:au,seekToPrevEpisode:qp,startLogging:nt,stopLogging:Wt,startCameraManualRotation:mi,stopCameraManualRotation:ut,moveCameraFocusPX:ai,holdCamera:vi,releaseCamera:jt,getVideoEpisodes:$d,getPreviewThumbsData:Ge,downloadVideo:Kn,addLanguage:rm,setLanguage:Ie,nextMovie:Pt,videoRotate:Qo,correctSeekTimeToInteractive:Sg,replayInteractive:R,setLooped:ei,reportProblem:Di,setAutoplayNextEnabled:po,setTimerNextVideoRunning:Bi,prevVideoClick:bo,nextVideoClick:Ho,nextVideoAnnouncementShow:Pn,nextVideoAnnouncementClick:Qn,nextVideoAnnouncementAuto:$o,nextVideoAnnouncementCancel:rn,checkFullscreenSupport:Ct,changeDoubleForwardOn:Tg,closePreviewTrack:O$,previewTrackOpened:D$,previewTrackDragStarted:N$,previewTrackDragFinished:B$},external:{firstStart:c=>bd(c,!0),play:()=>Pa(!0),pause:()=>ta(!0),stop:()=>Kp(!0),seekTime:c=>li(c),seekEpisodeStartTime:c=>pr(c),setPlaybackRate:c=>Lr(c),setAutoQualityLimits:c=>zo(c),setMuted:c=>tt(c,!0),toggleSubtitle:()=>Yr(!0),changeSubtitle:an,setVolume:c=>Pr(c,!0),returnFocusToEpisodes:M$,updateAdditionalSettingsItem:Ea,addAdditionalSettingsItem:ht,removeAdditionalSettingsItem:_t,updateAdditionalContextItem:oo,addAdditionalContextItem:hi,removeAdditionalContextItem:Qi,updateAdditionalButton:Ia,addAdditionalButton:hd,removeAdditionalButton:bl,setLiveLowLatency:$l,hideControls:()=>Zs(!1),showControls:()=>Zs(!0),setQuality:c=>Io(c,{appliesTo:"to-video"},!0),setTrafficSavingEnabled:c=>cr(c,"to-video",!0),setHighQualityEnabled:c=>qn(c,"to-video",!0),changeAudioStream:Cr,setMinimalMode:Oe}},callbacks:s,setUiCallbacks:c=>{ze=Ye({},c)},getAdmanWrapper:()=>ue,getLogger:()=>me,getPlayer:()=>N,destroy:V$};return zt};function tr(t,e,i,o){var f;let r=(f=e[i])==null?void 0:f.getBoundingClientRect(),a=o&&!!r&&!!(r.right-r.left),{top:l,left:d,bottom:s,right:u}=qs(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 c2=["disabledControls$","additionalButtons"],u2=["interactiveTimeIndicator"],nd=(t,e,i,o)=>{if(t){for(let[r,a]of Object.entries(e))if(!c2.includes(r)){let l=o||u2.includes(r);a.set(tr(t,i,r,l))}}};var hp=(t,e,i)=>yt(null,null,function*(){yield ho(),e&&i&&(i.focus(),t.set(!1))});var p2=ke('<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 iv(t){Xe(t,{children:(e,i)=>{var o=p2();$(e,o)},$$slots:{default:!0}})}function ov(t,e){B(e,!0);let[i,o]=Be(),r=()=>x(s,"$contextMenuVisible$",i),a=g(e,"disabled",3,!1),l=g(e,"ariaLabel",3,""),d=xe(),s=d.ui.contextMenu.visible$,u=d.ui.contextMenu.openedByBtnKeyboard$,f=d.ui.contextMenu.showContextMenuBtn$,p=d.ui.contextMenu.position$,v=d.ui.contextMenu.btnRef$,b=K(void 0);Fe(()=>{n(b)&&kt(()=>{v.set(n(b))})});let y=T=>{let R=ga(T),A=gb(n(b));p.set(A),u.set(R),s.set(!r())},_=()=>{f.set(!0)},w=()=>{f.set(!1)},I=m(()=>r()?"opened":"");Ut(t,{get className(){return n(I)},testId:"btn-context-menu",get disabled(){return a()},get ariaLabel(){return l()},click:y,focus:_,blur:w,get ariaExpanded(){return r()},get ref(){return n(b)},set ref(T){D(b,T,!0)},children:(T,R)=>{iv(T,{})},$$slots:{default:!0}}),F(),o()}var f2=t=>{t.stopPropagation()},m2=L("<div><!> <div></div> <div></div></div>"),v2={hash:"s-24",code:'.interactive-episode-icon-animated.s-24{height:32px;opacity:1;position:absolute;right:16px;top:16px;transition:.3s;width:32px}.interactive-episode-icon-animated.icon-small.s-24{height:28px;width:28px}.invisible.s-24{opacity:0;visibility:hidden}.fullscreen.s-24:not(.mobile){height:40px;right:23px;top:19px;width:40px}.mobile.s-24{height:28px;right:14px;top:12px;width:28px}.fullscreen.mobile.s-24{height:32px;width:32px}@media screen and (orientation:portrait){.interactive-episode-icon-animated.mobile.fullscreen.s-24{right:16px;top:40px}}@keyframes s-24-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-24{animation:s-24-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-24{animation-play-state:paused}.interactive-episode-icon-animated svg{height:100%;width:100%}.ref-block.s-24{height:100%;position:absolute;top:0;visibility:hidden;width:100%}.hidden.s-24{display:none}'};function Tc(t,e){var me;B(e,!0),Q(t,v2);let[i,o]=Be(),r=()=>x(w,"$isMobile",i),a=()=>x(A,"$areControlsVisible",i),l=()=>x(E,"$currentGridType$",i),d=()=>x(T,"$isInteractiveTime$",i),s=()=>x(_,"$interactiveControlsOpacity$",i),u=()=>x(R,"$showInteractiveTimeIndicatorTooltip$",i),f=()=>x(I,"$isFullscreen",i),p=g(e,"ref",15,void 0),v=K(void 0),b=xe(),y=yo(),{interactiveControlsOpacity$:_}=y,w=b.ui.isMobile,I=b.ui.isFullscreen,T=b.state.isInteractiveTime$,R=y.showInteractiveTimeIndicatorTooltip$,A=b.ui.controlsVisible,P=(me=b.callbacks)==null?void 0:me.onInteractiveTimeIndicatorClick,E=b.ui.currentGridType$,z=m(()=>!r()&&a()),U=m(()=>Ws(l(),"s")),W=m(()=>!d()||!!s()||n(z)),Y=K(!1);Fe(()=>{D(Y,n(W),!0)});let te=()=>{D(Y,!0)},J=()=>{var ue;oe(),(ue=n(v))==null||ue.addEventListener("animationiteration",te,{once:!0})},oe=()=>{var ue;D(Y,!1),(ue=n(v))==null||ue.removeEventListener("animationiteration",te)},de=ue=>{R.set(ue)},ae=m(()=>u()&&!n(W));Fe(()=>{u()?J():oe()});let pe=()=>{n(W)||(R.set(!0),P==null||P())};pn(()=>{R.clearTimeout(),oe()});let ee=()=>{R.set(!1)},$e=q("tooltip_interactive_interaction_time_indicator");var Ee=m2();let ce;Ee.__mousemove=[f2],Ee.__click=pe;var Qe=C(Ee);Mo(Qe,{get tooltipContent(){return $e},get tooltipVisible(){return n(ae)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:de,get ref(){return p()},set ref(ue){p(ue)},children:(ue,Re)=>{mc(ue,{completed:!0})},$$slots:{default:!0}});var fe=k(Qe,2);let ve;ot(fe,ue=>p(ue),()=>p());var X=k(fe,2);let N;ot(X,ue=>D(v,ue),()=>n(v)),S(Ee),O((ue,Re,et)=>{ce=ie(Ee,1,"interactive-episode-icon-animated s-24",null,ce,ue),ve=ie(fe,1,"ref-block s-24",null,ve,Re),N=ie(X,1,"pulse s-24",null,N,et)},[()=>({mobile:r(),fullscreen:f(),invisible:n(W),"icon-small":n(U)}),()=>({hidden:n(W)}),()=>({paused:n(Y)})]),vt("mouseleave",Ee,ee),$(t,Ee),F(),o()}Je(["mousemove","click"]);function _p(t,e){B(e,!0);let i=g(e,"tooltipEnabled",3,!0),o=g(e,"disabled",3,!1),r=g(e,"className",3,void 0),a=g(e,"ref",15),l=g(e,"tooltipVisible",3,!1);Mo(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=Ve();let f=m(()=>e.buttonComponent);var p=le(u);Ui(p,()=>n(f),(v,b)=>{b(v,ns(()=>{var y;return(y=e.buttonComponentProps)!=null?y:{}}))}),$(d,u)},$$slots:{default:!0}}),F()}var Gs={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var h2=ke('<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 ya(t,e){B(e,!0);let i=g(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);transform-origin: 50%;":void 0),r=m(()=>`${fn(e.size)}${n(o)}`),a=m(()=>i()?"prev-icon":"next-icon");Xe(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=h2();$(l,s)},$$slots:{default:!0}}),F()}var _2=L('<div class="icon-background-mobile s-21"><!></div>'),b2={hash:"s-21",code:".icon-background-mobile.s-21{align-items:center;background-color:var(--big-play-bg-color);border-radius:var(--big-play-radius);display:flex;height:100%;justify-content:space-around;left:0;position:absolute;top:0;width:100%}"};function nl(t,e){B(e,!0),Q(t,b2);let i=g(e,"ref",15,void 0),o=g(e,"isMobile",3,!1),r=g(e,"disabled",3,!1),l=xe().ui.t,d=m(()=>e.type==="prev"?l("tooltip_previous"):l("tooltip_next")),s=m(()=>e.type==="prev"?l("hotkey_map_item_prev_video_value"):l("hotkey_map_item_next_video_value")),u=m(()=>`btn-${o()?"m":"d"}--${e.type}`);Ut(t,{get className(){return n(u)},get testId(){var f;return`btn-${(f=e.type)!=null?f:""}`},get disabled(){return r()},get ariaLabel(){return n(d)},get click(){return e.click},get ariaKeyShortCut(){return n(s)},get ref(){return i()},set ref(f){i(f)},children:(f,p)=>{var v=Ve(),b=le(v);{var y=w=>{var I=_2(),T=C(I);let R=m(()=>e.type==="prev");ya(T,{get size(){return"32"},get reversed(){return n(R)}}),S(I),$(w,I)},_=w=>{let I=m(()=>e.type==="prev");ya(w,{get size(){return"24"},get reversed(){return n(I)}})};M(b,w=>{o()?w(y):w(_,!1)})}$(f,v)},$$slots:{default:!0}}),F()}var $2=ke('<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 Ic(t,e){B(e,!0);let i=m(()=>fn(e.size));Xe(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=$2();$(o,a)},$$slots:{default:!0}}),F()}var Hb=require("@vkontakte/videoplayer-shared/es2015");var y2=L('<div class="icon-background-mobile s-25"></div>'),x2=L("<!> <div><!></div>",1),w2={hash:"s-25",code:".mobile.s-25{align-items:center;display:flex;justify-content:center;position:relative}.icon-background-mobile.s-25{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 rd(t,e){B(e,!0),Q(t,w2);let i=g(e,"ref",15,void 0),o=g(e,"isMobile",3,!1),r=g(e,"disabled",3,!1),a=g(e,"className",3,""),l=g(e,"click",3,Hb.noop),d=q("tooltip_restart"),s=m(()=>`${o()?"btn-m--play":""} ${a()}`);Ut(t,{get className(){return n(s)},testId:"replay-btn",get ariaLabel(){return d},get disabled(){return r()},get click(){return l()},get ariaKeyShortCut(){return Cs.KeyK},get ref(){return i()},set ref(u){i(u)},children:(u,f)=>{var p=x2(),v=le(p);{var b=T=>{var R=y2();$(T,R)};M(v,T=>{o()&&T(b)})}var y=k(v,2);let _;var w=C(y);let I=m(()=>o()?"48":"24");Ic(w,{get size(){return n(I)}}),S(y),O(T=>_=ie(y,1,"s-25",null,_,T),[()=>({mobile:o()})]),$(u,p)},$$slots:{default:!0}}),F()}var S2=ke('<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 Ys(t,e){B(e,!0);let i=m(()=>fn(e.size));Xe(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=S2();$(o,a)},$$slots:{default:!0}}),F()}var Ub=require("@vkontakte/videoplayer-shared/es2015");var C2=L('<div class="icon-background-mobile s-23"><!></div>'),T2={hash:"s-23",code:".icon-background-mobile.s-23{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 sd(t,e){B(e,!0),Q(t,T2);let[i,o]=Be(),r=()=>x(a,"$fakeIsPlaying$",i),{fakeIsPlaying$:a}=yo(),l=g(e,"ref",15,void 0),d=g(e,"isMobile",3,!1),s=g(e,"isPlaying",3,!1),u=g(e,"disabled",3,!1),f=g(e,"className",3,""),p=g(e,"click",3,Ub.noop),b=xe().ui.t,{toggle:y}=a,_=m(()=>y),w=m(()=>r()!==null),I=m(()=>n(w)?r():s()),T=m(()=>n(I)?b("tooltip_pause"):b("tooltip_play")),R=m(()=>n(I)?Ys:Nn),A=m(()=>`${d()?"btn-m--play":""} ${f()}`),P=m(()=>n(w)?n(_):p());Ut(t,{get className(){return n(A)},testId:"play-btn",get click(){return n(P)},get disabled(){return u()},get ariaLabel(){return n(T)},get ariaKeyShortCut(){return Cs.KeyK},get ref(){return l()},set ref(E){l(E)},children:(E,z)=>{var U=Ve();let W=m(()=>n(R));var Y=le(U);{var te=oe=>{var de=C2(),ae=C(de);Ui(ae,()=>n(W),(pe,ee)=>{ee(pe,{get size(){return"48"}})}),S(de),$(oe,de)},J=oe=>{var de=Ve(),ae=le(de);Ui(ae,()=>n(W),(pe,ee)=>{ee(pe,{get size(){return"24"}})}),$(oe,de)};M(Y,oe=>{d()?oe(te):oe(J,!1)})}$(E,U)},$$slots:{default:!0}}),F(),o()}var I2=ke('<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 nv(t){Xe(t,{testId:"play-prev-chapter-icon",children:(e,i)=>{var o=I2();$(e,o)},$$slots:{default:!0}})}function Ec(t,e){B(e,!0);let i=g(e,"ref",15,void 0),o=g(e,"hidden",3,!1),r=g(e,"disabled",3,!1),a=q("tooltip_interactive_go_back"),l=m(()=>o()?"hidden":"");Ut(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)=>{nv(d,{})},$$slots:{default:!0}}),F()}var E2=L('<span class="gutter s-26"><span><!></span></span>'),P2={hash:"s-26",code:".gutter.s-26{--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-26{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-26{background-color:var(--toggle-color-autoplay-on);transform:translateX(calc(var(--gutterWidth) - var(--togglerWidth) + var(--togglerGap)))}"};function Pc(t,e){B(e,!0),Q(t,P2);let[i,o]=Be(),r=()=>x(s,"$autoplayNextEnabled$",i),a=g(e,"ref",15,void 0),l=xe(),d=l.ui.t,s=l.ui.autoplayNextEnabled$,u=l.actions.internal.setAutoplayNextEnabled,f=()=>{u(!r(),!0)},p=d("aria_label_autoplay"),v="12",b="#000",y=m(()=>r()?"true":"false");Ut(t,{click:f,get ariaLabel(){return p},role:"switch",get areaChecked(){return n(y)},get ref(){return a()},set ref(_){a(_)},children:(_,w)=>{var I=E2(),T=C(I);let R;var A=C(T);{var P=z=>{Nn(z,{get size(){return v},fill:b})},E=z=>{Ys(z,{get size(){return v},fill:b})};M(A,z=>{r()?z(P):z(E,!1)})}S(T),S(I),O(z=>R=ie(T,1,"toggler s-26",null,R,z),[()=>({enabled:r()})]),$(_,I)},$$slots:{default:!0}}),F(),o()}var k2=ke('<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 rv(t){Xe(t,{testId:"seek-to-interactive-icon",children:(e,i)=>{var o=k2();Jt(),$(e,o)},$$slots:{default:!0}})}function kc(t,e){B(e,!0);let i=g(e,"ref",15,void 0),o=g(e,"hidden",3,!1),r=g(e,"disabled",3,!1),a=q("tooltip_interactive_seek"),l=m(()=>o()?"hidden":"");Ut(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)=>{rv(d,{})},$$slots:{default:!0}}),F()}var A2=ke('<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>'),L2=ke('<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 sv(t,e){let i=g(e,"isOpened",3,!1),o=m(()=>i()?"graph-close-icon":"graph-open-icon");Xe(t,{get testId(){return n(o)},children:(r,a)=>{var l=L2(),d=k(le(l));{var s=u=>{var f=A2();$(u,f)};M(d,u=>{i()&&u(s)})}$(r,l)},$$slots:{default:!0}})}function Ac(t,e){B(e,!0);let i=g(e,"ref",15,void 0),o=g(e,"hidden",3,!1),r=g(e,"disabled",3,!1),a=g(e,"graphIsOpened",3,!1),d=xe().ui.t,s=m(()=>a()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),u=m(()=>o()?"hidden":"");Ut(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(f){i(f)},children:(f,p)=>{let v=m(()=>!!a());sv(f,{get isOpened(){return n(v)}})},$$slots:{default:!0}}),F()}var av=require("@vkontakte/videoplayer-core/es2015");function Lc(t,e){B(e,!0);let[i,o]=Be(),r=()=>x(u,"$playbackState$",i),a=g(e,"isMobile",3,!1),l=g(e,"isLiveActive",3,!1),d=g(e,"ariaLabel",3,""),s=xe(),u=s.state.playbackState$,f=s.actions.internal.switchToActiveLive,p=s.actions.internal.togglePlay,v=m(()=>()=>{if(!l()){f();return}r()===av.PlaybackState.PAUSED&&p()}),b=m(()=>a()?"":"btn--live btn-full-opacity"),y=m(()=>l()?"btn-live":"btn-live-offset"),_=m(()=>l()&&r()===av.PlaybackState.PLAYING);Ut(t,{get className(){return n(b)},get testId(){return n(y)},get disabled(){return n(_)},get ariaLabel(){return d()},get click(){return n(v)},children:(w,I)=>{nc(w,{get isActive(){return l()}})},$$slots:{default:!0}}),F(),o()}var lv=require("@vkontakte/videoplayer-shared/es2015");var M2=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),V2=L('<img class="icon" aria-hidden="true"/>');function rl(t,e){"use strict";let i=K(!1),o=()=>{D(i,!0)};var r=Ve(),a=le(r);{var l=s=>{var u=M2();$(s,u)},d=s=>{var u=V2();O(()=>De(u,"src",e.icon)),vt("error",u,o),Ha(u),$(s,u)};M(a,s=>{n(i)?s(l):s(d,!1)})}$(t,r)}function dv(t,e){B(e,!0);let i=g(e,"disabled",3,!1),o=g(e,"onClick",3,lv.noop),r=g(e,"ref",15),a=m(()=>o()===lv.noop),l=m(()=>n(a)||i()),d=m(()=>n(a)?"btn-full-opacity":"");Mo(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 f=m(()=>{var p;return(p=e.testId)!=null?p:e.id});Ut(s,{get className(){return n(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return n(l)},get testId(){return n(f)},children:(p,v)=>{rl(p,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),F()}var zb=t=>!!t.buttonComponent;var js={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var bp=(t,e,i,o)=>{if(t)for(let[r,a]of Object.entries(e))a.set(tr(t,i,r,o))};var $p=require("@vkontakte/videoplayer-shared/es2015"),Wb=10,Kb=40,cv=.2,D2=.5,O2=65,N2=114,B2=4,Qb=({onPreviewTrackOpened:t,getTimelineRef:e,isHorizontal:i})=>{let o=m(()=>i?O2:N2),r=K(!1),a=K(0),l=K(0),d=m(()=>n(o)+Wb-Kb-B2),s=m(()=>(0,$p.interpolate)(n(a),[cv,1],[0,-n(d)])),u=m(()=>(0,$p.interpolate)(n(a),[cv,1],[0,Kb])),f=m(()=>(0,$p.interpolate)(n(a),[cv,1],[0,n(o)+Wb]));return{progressBarY:()=>n(s),controlsY:()=>n(u),calculatedHeight:()=>n(f),onPointerDown:_=>{var w;D(l,((w=e())==null?void 0:w.getBoundingClientRect().bottom)||0,!0),D(r,!0)},onPointerMove:_=>{if(!n(r))return;let w=Math.max(Math.min(_.clientY-n(l),0),-n(d));D(a,Math.abs(w/n(d)),!0)},onPointerUp:()=>{D(r,!1),D(a,n(a)>=D2?1:0,!0),n(a)===1&&t()},closePreviewTrack:()=>{D(a,0)}}};var F2=t=>t;function xa(t,{delay:e=0,duration:i=400,easing:o=F2}={}){let r=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:a=>`opacity: ${a*r}`}}var H2=L('<span class="root s-2a"> </span>'),U2={hash:"s-2a",code:".root.s-2a{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 uv(t,e){Q(t,U2);var i=H2(),o=C(i,!0);S(i),O(()=>he(o,e.time)),$(t,i)}var z2=L('<div class="tooltip-wrapper s-12"><div><!></div></div>'),W2={hash:"s-12",code:'.tooltip-wrapper.s-12{display:block;position:relative}.tooltip.s-12{bottom:100%;opacity:0;position:absolute;transform:translateX(-50%);transition:opacity .2s;visibility:hidden}.pointer.s-12: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-12{opacity:1;visibility:visible}'};function pv(t,e){Q(t,W2);let i=g(e,"active",3,!1),o=g(e,"pointer",3,!1),r=g(e,"translateXPx",3,0),a=g(e,"translateYPx",3,0),l=g(e,"leftOffset",3,0),d=g(e,"rightOffset",3,0),s=K(void 0),u=K(void 0);function f(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=m(()=>f(r()));var v=z2(),b=C(v);let y;var _=C(b);ii(_,()=>{var w;return(w=e.children)!=null?w:xt}),S(b),ot(b,w=>D(u,w),()=>n(u)),S(v),ot(v,w=>D(s,w),()=>n(s)),O(w=>{Ke(v,`transform: translate(${n(p)}px, ${a()}px);`),y=ie(b,1,"tooltip s-12",null,y,w),Ke(b,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),$(t,v)}var qb=t=>Math.abs(t)/90%4===1;var K2=ke('<path xmlns="http://www.w3.org/2000/svg" d="M15.782 10.152a.75.75 0 0 1-1.06 0L9.999 5.438l-4.72 4.716a.75.75 0 0 1-1.061-1.061l5.251-5.246a.75.75 0 0 1 1.06 0l5.253 5.246a.75.75 0 0 1 0 1.06Z"></path><path xmlns="http://www.w3.org/2000/svg" d="M15.782 16.152a.75.75 0 0 1-1.06 0l-4.723-4.715-4.72 4.716a.75.75 0 0 1-1.061-1.061l5.251-5.246a.75.75 0 0 1 1.06 0l5.253 5.245a.75.75 0 0 1 0 1.061Z"></path>',1);function fv(t){Xe(t,{height:"20",width:"20",shadow:!0,children:(e,i)=>{var o=K2();Jt(),$(e,o)},$$slots:{default:!0}})}var Q2=L('<div class="rich-seek-hint s-10"><span class="icon_wrapper s-10"><!></span> <span class="rich-seek-hint-text s-10"> </span></div>'),q2=L('<div class="preview s-10"><!></div>'),G2=L('<div class="episode s-10"><!></div>'),Y2=L('<div class="time s-10"> </div>'),j2=L("<div><!> <!> <!></div>"),X2={hash:"s-10",code:".timeline-preview.s-10{border-radius:2px;bottom:18px;pointer-events:none}.timeline-preview.mobile.s-10{bottom:72px}.preview.s-10{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);display:flex;justify-content:center}.episode.s-10{margin-bottom:4px;margin-top:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.episode.s-10,.time.s-10{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-10{color:var(--white)}.rich-seek-hint.s-10{position:absolute;text-align:center;top:-12px;transform:translateY(-100%)}.icon_wrapper.s-10{display:inline-block;height:20px;margin-right:6px;vertical-align:top;width:20px}.rich-seek-hint-text.s-10{font-size:14px;line-height:18px;text-shadow:0 2px 4px rgba(0,0,0,.3),0 7px 16px rgba(0,0,0,.25);vertical-align:top}"};function mv(t,e){B(e,!0),Q(t,X2);let[i,o]=Be(),r=()=>x(w,"$isMinimalMode$",i),a=()=>x(I,"$rotateAlpha",i),l=()=>x(T,"$playerSize",i),d=()=>x(R,"$previewTrackAvailable",i),s={MOBILE:150,DESKTOP:278},u=g(e,"time",3,""),f=g(e,"isMobile",3,!1),p=g(e,"videoEpisodes",19,()=>[]),v=g(e,"progress",3,0),b=g(e,"duration",3,0),y=g(e,"isInteractive",3,!1),_=xe(),w=_.ui.isMinimalMode$,I=_.ui.rotateAlpha,T=_.ui.playerSize,R=_.ui.previewTrackAvailable,A=K(0),P=K(0),E=K(""),z=K(0),U=K(0),W=K(0),Y=K(0),te=m(()=>sp(v(),b(),p())),J=m(()=>!r()),oe=m(()=>id(a())),de=m(()=>qb(a())),ae=m($e),pe=m(()=>(n(de)?1:-1)*(n(A)/2-n(P)/2)),ee=m(()=>n(pe)*-1);Fe(()=>{(Ae=>{D(A,Ae.width,!0),D(P,Ae.height,!0)})(ce())}),Fe(()=>{(Ae=>{D(E,Ae.imgSrc,!0),D(z,Ae.imgWidth,!0),D(U,Ae.imgHeight,!0),D(W,Ae.imgOffsetX,!0),D(Y,Ae.imgOffsetY,!0)})(Qe(v()))});function $e(){var Se;let Ae=f()?s.MOBILE:s.DESKTOP,{isVertical:j}=Ee(),ne=30;return(Se=n(te))!=null&&Se.text&&(ne+=16),(j||n(oe))&&(ne+=18,ne+=50),Math.min(Math.max(l().height-ne,0),Ae)}function Ee(){let Ae=e.previewThumbsData.frameWidth,j=e.previewThumbsData.frameHeight,ne=j>Ae;return{width:Ae,height:j,isHorizontal:!ne,isVertical:ne}}function ce(){let{height:Ae,isHorizontal:j,isVertical:ne,width:Se}=Ee();return j&&(Ae=Ae/Se*n(ae),Se=n(ae)),ne&&(Se=Se/Ae*n(ae),Ae=n(ae)),{width:Se,height:Ae}}function Qe(Ae){let j;e.previewThumbsData.isUV?j=Math.floor(b()*Ae/e.previewThumbsData.frequency):j=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*Ae)));let ne=Math.floor(j/e.previewThumbsData.countPerImage),Se=Math.floor(j%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),Le=j%e.previewThumbsData.countPerRow,ze=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&ne===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(ze=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&ze++);let Ce=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&ne===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(Ce=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let we=n(A)*Ce,He=n(P)*ze,st=-Le*n(A),pt=-Se*n(P);return{imgSrc:e.previewThumbsData.links[ne],imgWidth:we,imgHeight:He,imgOffsetX:st,imgOffsetY:pt}}var fe=j2();let ve;var X=C(fe);{var N=Ae=>{var j=q2(),ne=C(j);{var Se=Le=>{var ze=Q2(),Ce=C(ze),we=C(Ce);fv(we,{}),S(Ce);var He=k(Ce,2),st=C(He,!0);S(He),S(ze),O(pt=>he(st,pt),[()=>q("preview_track_notification_text")]),$(Le,ze)};M(ne,Le=>{d()&&Le(Se)})}S(j),O(()=>Ke(j,`width: ${n(A)}px; height: ${n(P)}px; background-image: url(${n(E)}); background-size: ${n(z)}px ${n(U)}px; background-position: ${n(W)}px ${n(Y)}px;
|
|
60
|
+
transform: rotate(${a()}deg) ${n(oe)?`translate(${n(pe)}px, ${n(ee)}px)`:""};
|
|
61
|
+
`)),$(Ae,j)};M(X,Ae=>{n(E)&&Ae(N)})}var me=k(X,2);{var ue=Ae=>{var j=G2(),ne=C(j);{var Se=Le=>{var ze=Ve(),Ce=le(ze);{var we=st=>{var pt=Ss();O(Rt=>he(pt,Rt),[()=>q("tooltip_episode_unfinished")]),$(st,pt)},He=st=>{var pt=Ss();O(()=>he(pt,n(te).text||"")),$(st,pt)};M(Ce,st=>{y()&&n(te).completed===!1?st(we):st(He,!1)})}$(Le,ze)};M(ne,Le=>{n(te)&&Le(Se)})}S(j),$(Ae,j)};M(me,Ae=>{n(J)&&Ae(ue)})}var Re=k(me,2);{var et=Ae=>{var j=Y2(),ne=C(j,!0);S(j),O(()=>he(ne,u())),$(Ae,j)};M(Re,Ae=>{y()||Ae(et)})}S(fe),O(Ae=>{ve=ie(fe,1,"timeline-preview s-10",null,ve,Ae),Ke(fe,`width: ${n(oe)?n(P):n(A)}px;`)},[()=>({mobile:f()})]),$(t,fe),F(),o()}var Z2=L('<span class="time s-f"> </span>'),J2=L("<!> <!>",1),ew={hash:"s-f",code:".time.s-f{background-color:rgba(41,41,41,.8);border-radius:3px;color:var(--white);display:inline-block;padding:6px 10px}.timeline-slider{--slider-bg:var(--timeline-slider-bg);--slider-filled-bg:var(--timeline-slider-filled-bg);--slider-handle-bg:var(--timeline-slider-handle-bg);--slider-loaded-bg:var(--timeline-slider-loaded-bg)}"};function vv(t,e){var Ne,be,Oe,Ie,bt;B(e,!0),Q(t,ew);let[i,o]=Be(),r=()=>x(J,"$interactiveEpisodes$",i),a=()=>x(E,"$duration$",i),l=()=>x(P,"$position$",i),d=()=>x(ae,"$isInteractiveExpectation$",i),s=()=>x(de,"$isInteractiveTime$",i),u=()=>x(Ee,"$previewTrackActive",i),f=()=>x(z,"$isLive$",i),p=()=>x($e,"$disabledControls$",i),v=()=>x(W,"$isMobile",i),b=()=>x(U,"$isActiveLive$",i),y=()=>x(A,"$bufferedProgress$",i),_=g(e,"showTimeline",3,!1),w=g(e,"withEpisodes",3,!0),I=g(e,"ref",15,void 0),T=xe(),R=Vt(),A=T.state.bufferedProgress$,P=T.state.positionWithScrubbing$,E=T.state.duration$,z=T.state.isLive$,U=T.state.isActiveLive$,W=T.ui.isMobile,Y=R.features.episodes&&w()?T.actions.internal.getVideoEpisodes():void 0,te=T.actions.internal.getPreviewThumbsData(),J=T.state.interactiveEpisodes$,oe=T.state.isInteractive,de=T.state.isInteractiveTime$,ae=T.state.isInteractiveExpectation$,pe=T.actions.internal.correctSeekTimeToInteractive,ee=(Ne=T.callbacks)==null?void 0:Ne.onDisabledTimelineClick,$e=T.ui.controls.disabledControls$,Ee=T.ui.previewTrackActive,ce=(Oe=(be=T.callbacks)==null?void 0:be.uiInfo)==null?void 0:Oe.onTimelineMouseEnter,Qe=(bt=(Ie=T.callbacks)==null?void 0:Ie.uiInfo)==null?void 0:bt.onTimelineMouseLeave,fe=T.ui.t,ve=R.features.interactiveResponsiveUi,X=m(()=>oe?r():Y),N=m(()=>en(a())),me=m(()=>en(l())),ue=m(()=>l()/a()),Re=m(()=>d()||s()),et=K(!1),Ae=K(""),j=K(0),ne=K(0),Se=K(0),Le=m(()=>({containerWidth:n(ne),translateXPx:n(j),translateYPx:oe&&te?-36:-16,active:n(et)&&_()&&!n(Re)&&!ve&&!u(),pointer:!R.features.timelinePreview||!te||f()})),ze=fe("aria_timeline"),Ce=m(()=>fe("aria_timeline_value",{position:n(me),duration:n(N)}));function we(ye){return!pe||!oe?ye:pe(ye*a())/a()}function He(ye,qe){var Ue;(Ue=e.onSliderPointerDown)==null||Ue.call(e,qe),T.actions.internal.startScrubbing(we(ye))}function st(ye){s()||T.actions.internal.progressScrubbing(we(ye))}function pt(ye){var qe;T.actions.internal.completeScrubbing(we(ye)),D(et,!1),(qe=e.onSliderPointerUp)==null||qe.call(e)}function Rt(ye,qe,Ue){var at;(at=e.onSliderPointerEnter)==null||at.call(e,ye),Ct(ye,qe,Ue),D(et,!0)}function ct(ye,qe,Ue,at){var Yt;(Yt=e.onSliderMove)==null||Yt.call(e,at,ye),Ct(ye,qe,Ue),D(et,!0)}function ni(){var ye;D(et,!1),(ye=e.onSliderLeave)==null||ye.call(e)}function Ct(ye,qe,Ue){D(Se,we(ye),!0),D(j,qe,!0),Ue&&D(ne,Ue,!0),D(Ae,Ot(ye),!0)}function Ot(ye){let qe=en((f()?1-ye:ye)*a());return f()?`-${qe}`:qe}let Nt=m(()=>p().has("TIMELINE"));var Gt=J2(),Te=le(Gt);pv(Te,ns(()=>n(Le),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(ye,qe)=>{var Ue=Ve(),at=le(Ue);{var Yt=Xt=>{mv(Xt,{get time(){return n(Ae)},get isMobile(){return v()},get videoEpisodes(){return n(X)},get previewThumbsData(){return te},get progress(){return n(Se)},get duration(){return a()},get isInteractive(){return oe}})},At=Xt=>{var yi=Z2(),Ri=C(yi,!0);S(yi),O(()=>he(Ri,n(Ae))),$(Xt,yi)};M(at,Xt=>{R.features.timelinePreview&&te&&!f()?Xt(Yt):Xt(At,!1)})}$(ye,Ue)},$$slots:{default:!0}}));var G=k(Te,2);el(G,{className:"timeline-slider",get isActiveLive(){return b()},get isMobile(){return v()},get ariaLabel(){return ze},ariaValueMin:0,get ariaValueMax(){return a()},get ariaValueNow(){return l()},get ariaValueText(){return n(Ce)},get loadedProgress(){return y()},get filledProgress(){return n(ue)},get handleProgress(){return n(ue)},get videoEpisodes(){return n(X)},onPointerDown:He,onHandleMove:st,onPointerMove:ct,onPointerUp:pt,onPointerEnter:Rt,onPointerLeave:ni,get onMouseEnter(){return ce},get onMouseLeave(){return Qe},get onDisabledClick(){return ee},get isInteractive(){return oe},get disabled(){return n(Nt)},get handleAlwaysVisible(){return u()},get hideHandel(){return s()},testId:"progress_bar",onContextMenu:pt,get ref(){return I()},set ref(ye){I(ye)}}),$(t,Gt),F(),o()}var tw={hash:"s-g",code:".timeline-ads-slider{--slider-bg:var(--timeline-slider-bg);--slider-filled-bg:var(--timeline-slider-filled-bg);--slider-handle-bg:var(--timeline-slider-handle-bg);--slider-loaded-bg:var(--timeline-slider-loaded-bg)}"};function Mc(t,e){B(e,!0),Q(t,tw);let[i,o]=Be(),r=()=>x(s,"$isMobile",i),a=g(e,"position",3,0),l=g(e,"duration",3,0),d=xe(),s=d.ui.isMobile,u=d.ui.t,f=m(()=>en(l())),p=m(()=>en(a())),v=m(()=>a()/l()),b=m(()=>u("aria_timeline_value",{position:n(p),duration:n(f)})),y=m(()=>Math.round(n(v)*100));el(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()}}),F(),o()}var iw=L("<div><!></div>"),ow=L("<div></div>"),nw={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 sl(t,e){B(e,!0),Q(t,nw);let[i,o]=Be(),r=()=>x(w,"$isLive$",i),a=()=>x(R,"$isMobile",i),l=()=>x(A,"$disabled",i),d=()=>x(T,"$adPosition",i),s=()=>x(I,"$adDuration",i),u=g(e,"isAds",3,!1),f=g(e,"isHidden",3,!1),p=g(e,"timelineNotAvailable",3,!1),v=g(e,"needPadding",3,!0),b=g(e,"ref",15,void 0),y=xe(),_=Vt(),w=y.state.isLive$,I=y.ads.duration,T=y.ads.position,R=y.ui.isMobile,A=se(!1),P=m(()=>!p()&&(!r()||r()&&e.canRewindLive&&e.isRewindableLive||u()));var E=Ve(),z=le(E);{var U=Y=>{var te=iw();let J;var oe=C(te);{var de=pe=>{Mc(pe,{get position(){return d()},get duration(){return s()}})},ae=pe=>{vv(pe,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return n(P)},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(ee){b(ee)}})};M(oe,pe=>{u()?pe(de):pe(ae,!1)})}S(te),Fs(te,()=>ql(f()&&_.features.usePerformanceFix,A,_.disableInvisibleComponentsTimeout)),O(pe=>J=ie(te,1,"timeline s-d",null,J,pe),[()=>({withoutPadding:!v(),mobile:a(),"out-of-flow":l()})]),$(Y,te)},W=Y=>{var te=ow();let J;O(oe=>J=ie(te,1,"timeline-stub s-d",null,J,oe),[()=>({mobile:a()})]),$(Y,te)};M(z,Y=>{n(P)?Y(U):Y(W,!1)})}$(t,E),F(),o()}var Gb=require("@vkontakte/videoplayer-shared/es2015");var Yb=require("@vkontakte/videoplayer-statistics/es2015"),rw=(t,e,i,o,r,a,l)=>{D(e,!0),D(i,t.clientX,!0),D(o,n(r),!0),a(l())},sw=L("<div></div>"),aw=L('<div><div class="track s-2c"></div></div>'),lw={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 hv(t,e){B(e,!0),Q(t,lw);let[i,o]=Be(),r=()=>x(R,"$rotateAlpha",i),a=()=>x(_,"$position$",i),l=()=>x(y,"$duration$",i),d=xe(),{countPerImage:s=0,countPerRow:u=0,countTotal:f=0,links:p=[],frameHeight:v=0,frameWidth:b=0}=d.actions.internal.getPreviewThumbsData()||{},{duration$:y,positionWithScrubbing$:_}=d.state,{startScrubbing:w,progressScrubbing:I,completeScrubbing:T}=d.actions.internal,R=d.ui.rotateAlpha,A=K(void 0),P=K(!1),E=K(0),z=K(0),U=K(0),W=K(0),Y=m(()=>v<=b),te=m(()=>id(r())),J=m(()=>n(Y)?!n(te):n(te)),oe=114,de=65,ae=3,pe=m(()=>n(J)?oe:de),ee=m(()=>n(Y)?oe:de),$e=m(()=>n(Y)?"var(--preview-track-frame-height-horizontal)":"var(--preview-track-frame-height-vertical)"),Ee=m(()=>f*n(pe)),ce=K(0);Fe(()=>{D(W,Math.ceil(-n(U)/n(pe))-1),D(U,-n(Ee)*a()/l())});let Qe=()=>{T(fe(),!0,Yb.ThinOneStat.ActionSeekType.RICH)},fe=()=>l()*-n(U)/n(Ee)/l(),ve=!1,X=Ce=>{if(!n(P))return!1;let we=Ce.clientX-n(E);D(U,n(z)+we),D(U,Math.max(Math.min(n(U),0),-n(Ee)),!0),Math.abs(we)>1&&(ve=!0),I(fe())},N=Ce=>{n(P)&&(D(P,!1),!ve&&Ce&&D(U,-(Ce.offsetX-n(ce)/2)),ve=!1,Qe())},me=()=>{n(P)&&N()},ue=m(()=>s/u),Re=(Ce,we)=>{if(Ce!==p.length-1)return u;let He=0,st=we*u;for(let pt=1;pt<=u;pt++)Ce*s+He+st<f&&He++;return He},et=m(()=>Math.floor(n(W)/s)),Ae=m(()=>(0,Gb.getRangeAroundIndex)(3,n(et),p.length-1)),j=(Ce,we,He)=>{let st=s*n(pe);return Ce*st+we*n(pe)*u+n(ce)/2-ae/2+He*n(pe)},ne=m(()=>[`--row-numbers: ${n(ue)}`,`--column-numbers: ${u}`,`--frame-width: ${n(ee)}px`,`--frame-height: ${n($e)}`].join(";"));var Se=aw();let Le;var ze=C(Se);ze.__pointerdown=[rw,P,E,z,U,w,fe],ze.__pointermove=X,ze.__pointerup=N,wi(ze,20,()=>n(Ae),Ce=>Ce,(Ce,we)=>{var He=Ve(),st=le(He);wi(st,16,()=>Array.from({length:n(ue)},(pt,Rt)=>Rt),pt=>pt,(pt,Rt)=>{var ct=Ve(),ni=le(ct);wi(ni,16,()=>Array.from({length:Re(we,Rt)},(Ct,Ot)=>Ot),Ct=>Ct,(Ct,Ot)=>{var Nt=sw();O((Gt,Te)=>{Ke(Nt,Gt),ie(Nt,1,Te,"s-2c")},[()=>`--row-index: ${Rt}; --column-index: ${Ot}; left: ${j(we,Rt,Ot)}px; background-image: url(${p[we]});`,()=>`frame rotate-${Math.abs(r())/90%4}`]),$(Ct,Nt)}),$(pt,ct)}),$(Ce,He)}),S(ze),S(Se),ot(Se,Ce=>D(A,Ce),()=>n(A)),O(Ce=>{Le=ie(Se,1,"root s-2c",null,Le,Ce),Ke(Se,n(ne)),Ke(ze,`transform: translateX(${n(U)}px); width: ${n(Ee)}px;`)},[()=>({"is-vertical-video":!n(Y),"vertically-rotated":n(te)})]),vt("mouseleave",ze,me),Dn(Se,"clientWidth",Ce=>D(ce,Ce)),$(t,Se),F(),o()}Je(["pointerdown","pointermove","pointerup"]);var dw=L('<div class="notification s-2b"><span class="description s-2b"> </span></div>'),cw={hash:"s-2b",code:".notification.s-2b{background:var(--notification-bg);border-radius:var(--notification-radius);padding:9px 14px 10px 12px}.description.s-2b{font-size:14px;line-height:18px}"};function _v(t,e){B(e,!1),Q(t,cw);let i=340,{ui:{t:o}}=xe();Jo();var r=dw(),a=C(r),l=C(a,!0);S(a),S(r),O(d=>he(l,d),[()=>o("preview_track_close_tooltip")],br),Hs(3,r,()=>xa,()=>({duration:i})),$(t,r),F()}var jb=require("@vkontakte/videoplayer-shared/es2015"),uw=L('<div class="preview-track-close tooltip s-28"><!></div>'),pw=L('<div class="preview-track-control s-28"><!> <div class="preview-track-close s-28"><!></div> <!></div>'),fw=L('<div class="wrapper-preview-track s-28"><!></div>'),mw=L('<div class="enriched-timeline s-28"><!> <!> <!></div>'),vw={hash:"s-28",code:".enriched-timeline.s-28{padding:var(--timeline-padding-vertical-top) var(--timeline-padding-horizontal) var(--timeline-padding-vertical-bottom);pointer-events:auto;position:relative}.preview-track-control.s-28{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-28{pointer-events:auto;position:absolute;right:calc(var(--timeline-padding-horizontal))}.preview-track-close.tooltip.s-28{bottom:32px;opacity:0;transition:opacity .2s}.preview-track-close.s-28:hover+.tooltip:where(.s-28){opacity:1}.wrapper-preview-track.s-28{box-sizing:border-box;left:0;overflow:hidden;padding:0 calc(var(--timeline-padding-horizontal));position:absolute;right:0;z-index:-1}"};function bv(t,e){B(e,!0),Q(t,vw);let[i,o]=Be(),r=()=>x(_,"$playerSize",i),a=()=>x(y,"$duration$",i),l=()=>x(w,"$previewTrackActive",i),d=()=>x(v,"$position$",i),s=()=>x(b,"$isRewindableLive$",i),u=g(e,"timelineRef",15,void 0),f=xe(),p=200,{positionWithScrubbing$:v,isRewindableLive$:b,duration$:y}=f.state,{playerSize:_,previewTrackActive:w}=f.ui,{countPerImage:I=0,links:T=[],frequency:R=0}=f.actions.internal.getPreviewThumbsData()||{},A=m(()=>r().width>100),P=K(!eb()),E=()=>{n(P)&&(J_(),D(P,!1))},z=pe=>{let ee=Math.floor(a()*pe/R),$e=Math.floor(ee/I),Ee=(0,jb.getRangeAroundIndex)(3,$e,T.length-1);for(let ce of Ee){let Qe=new Image;Qe.src=T[ce]}},U=(pe,ee)=>{z(ee),!l()&&e.onTimelineMove(pe)};var W=mw(),Y=C(W);{var te=pe=>{var ee=pw(),$e=C(ee);let Ee=m(()=>en(d()));uv($e,{get time(){return n(Ee)}});var ce=k($e,2),Qe=C(ce);zs(Qe,{onClick:()=>f.actions.internal.closePreviewTrack()}),S(ce);var fe=k(ce,2);{var ve=X=>{var N=uw(),me=C(N);_v(me,{}),S(N),$(X,N)};M(fe,X=>{n(P)&&X(ve)})}S(ee),vt("mouseleave",ce,E),Hs(3,ee,()=>xa,()=>({duration:p})),$(pe,ee)};M(Y,pe=>{l()&&pe(te)})}var J=k(Y,2);let oe=m(()=>!n(A));sl(J,{get isHidden(){return n(oe)},get isAds(){return e.isAds},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return s()},onSliderMove:U,get onSliderPointerDown(){return e.onTimelinePointerDown},get onSliderPointerUp(){return e.onTimelinePointerUp},get onSliderLeave(){return e.onTimelinePointerLeave},onSliderPointerEnter:z,get ref(){return u()},set ref(pe){u(pe)}});var de=k(J,2);{var ae=pe=>{var ee=fw(),$e=C(ee);hv($e,{}),S(ee),O(()=>Ke(ee,`height: ${e.animatedPreviewTrackHeight}px;`)),$(pe,ee)};M(de,pe=>{e.previewTrackAvailable&&pe(ae)})}S(W),O(()=>Ke(W,`transform: translateY(${e.animatedOffsetY}px);`)),$(t,W),F(),o()}var hw=L('<div><!> <div class="controls s-1a" data-testid="player_controls"><div class="controls-left s-1a"><!> <!> <!></div> <div class="controls-right s-1a"></div></div></div> <!>',1),_w={hash:"s-1a",code:'.wrapper-bottom.s-1a{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-1a:before{background:var(--controls-gradient);content:"";height:var(--controls-gradient-height);position:absolute;width:100%}.wrapper-bottom.s-1a>:where(.s-1a){pointer-events:auto}.controls.s-1a{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-1a,.controls-right.s-1a{align-content:center;display:flex}.controls-left.s-1a{flex-grow:1;min-width:0;overflow:hidden}.controls-left.s-1a >:not(:first-child),.controls-right.s-1a >*{margin-left:var(--controls-desktop-item-margin-left)}.controls-hidden.s-1a{transform:translateY(100%);visibility:visible}.wrapper-bottom.no-smooth.s-1a{transition:none}'};function yv(t,e){var $l,Ea;B(e,!0),Q(t,_w);let[i,o]=Be(),r=()=>x(Ro,"$disabledControls$",i),a=()=>x(jt,"$adPlaybackState",i),l=()=>x(yi,"$playbackState$",i),d=()=>x(xo,"$currentSubtitle$",i),s=()=>x(Zi,"$isEnded$",i),u=()=>x(Do,"$currentGridType$",i),f=()=>x(Yt,"$isMinimalMode$",i),p=()=>x(si,"$isLive$",i),v=()=>x(Ii,"$chromecastState$",i),b=()=>x(Ji,"$isPictureInPictureActive",i),y=()=>x(Pt,"$pictureInPictureType$",i),_=()=>x(eo,"$availableSubtitlesList$",i),w=()=>x(nt,"$contextMenuOpenedByKeyboard$",i),I=()=>x(H,"$showContextMenuBtn$",i),T=()=>x(di,"$isRewindableLive$",i),R=()=>x(ft,"$isActiveLive$",i),A=()=>x(wr,"$graphIsOpened$",i),P=()=>x(vn,"$contextMenuVisible$",i),E=()=>x(It,"$isFullscreen",i),z=()=>x(gn,"$autoplayNextEnabled",i),U=()=>x(n(Co),"$prevButton",i),W=()=>x(n(In),"$replayButton",i),Y=()=>x(n(To),"$playButton",i),te=()=>x(n(En),"$nextButton",i),J=()=>x(n(Wi),"$playPrevChapterButton",i),oe=()=>x(n(Er),"$seekToInteractiveButton",i),de=()=>x(n(Fo),"$interactiveGraphButton",i),ae=()=>x(n(Kn),"$liveButton",i),pe=()=>x(n(us),"$time",i),ee=()=>x(n(ps),"$episodes",i),$e=()=>x(n(fs),"$vkLogo",i),Ee=()=>x(n(to),"$volume",i),ce=()=>x(n(ms),"$subtitles",i),Qe=()=>x(n(Gr),"$settings",i),fe=()=>x(n(_o),"$context",i),ve=()=>x(n(Pr),"$fullscreen",i),X=()=>x(n(tt),"$chromecast",i),N=()=>x(Hn,"$additionalDesktopControlPanelRightButtons$",i),me=()=>x(co,"$playerSize",i),ue=()=>x(wo,"$isInteractiveTime$",i),Re=()=>x(zo,"$previewTrackActive",i),et=()=>x(bi,"$settingsMenuVisible",i),Ae=()=>x(Ho,"$settingButtonRef$",i),j=()=>x(Wt,"$startedByKeyboard$",i),ne=()=>x(Ri,"$isAudioAvailable$",i),Se=()=>x(Te,"$fakeIsPlaying$",i),Le=()=>x(ds,"$seekToInteractiveDisabledTooltip$",i),ze=()=>x(Wo,"$isPreviewTrackHorizontallyAligned$",i),Ce=()=>x(Lr,"$previewTrackAvailable",i),we=()=>x(pr,"$previewTrackDragInProgress",i),He=()=>x(vi,"$adPosition",i),st=()=>x(Xt,"$position$",i),pt=()=>x(ai,"$adDuration",i),Rt=()=>x(At,"$duration$",i),ct=g(e,"playerControlsWrapperRef",15,void 0),ni=g(e,"playerControlsRef",15,void 0),Ct=g(e,"isAds",3,!1),Ot=g(e,"logoTargetUrl",3,""),Nt=g(e,"isOneVideoPlaylist",3,!1),Gt=g(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:Te}=yo(),G=xe(),Ne=yo(),be=Vt(),Oe=G.actions.internal.toggleMuted,Ie=G.actions.internal.togglePlay,bt=G.actions.internal.pause,ye=G.actions.internal.toggleSubtitle,qe=G.actions.internal.checkFullscreenSupport,Ue=($l=G.callbacks)==null?void 0:$l.onAudioDoesNotExistHint,at=(Ea=G.callbacks)==null?void 0:Ea.onAudioDisabledHint,Yt=G.ui.isMinimalMode$,At=G.state.duration$,Xt=G.state.positionWithScrubbing$,yi=G.state.playbackState$,Ri=G.state.isAudioAvailable$,Li=G.state.isAudioDisabled,Zi=G.state.isEnded$,si=G.state.isLive$,ft=G.state.isActiveLive$,di=G.state.isRewindableLive$,{isActive$:Ji,type$:Pt}=Ne.pictureInPicture$,bi=G.ui.settingsMenu.visible$,fi=G.ui.settingsMenu.openedByBtnKeyboard$,We=G.ui.controls,lt=G.actions.internal.getVideoEpisodes(),Ii=G.state.chromecastState$,eo=G.state.availableSubtitlesList$,xo=G.state.currentSubtitle$,Ro=We.disabledControls$,vn=G.ui.contextMenu.visible$,H=G.ui.contextMenu.showContextMenuBtn$,nt=G.ui.contextMenu.openedByBtnKeyboard$,Wt=G.ui.startedByKeyboard$,mi=G.ui.controlBlocks,ut=G.ui.t,ai=G.ads.duration,vi=G.ads.position,jt=G.ads.playbackState,It=G.ui.isFullscreen,co=G.ui.playerSize,Do=G.ui.currentGridType$,Hn=G.ui.additionalDesktopControlPanelRightButtons$,gn=G.ui.autoplayNextEnabled$,Mi=G.actions.internal.getVideoElement,Si=G.actions.internal.replayInteractive,tn=G.actions.internal.prevVideoClick,or=G.actions.internal.nextVideoClick,$i=G.state.isInteractive,wo=G.state.isInteractiveTime$,hn=G.state.showInteractiveGraph,Oo=G.state.showSeekToInteractive,_n=G.state.showPlayPrevChapter,Es=G.state.showInteractiveTimeIndicator,Ps=G.state.playPrevChapterDisabledTooltip,ds=Ne.seekToInteractiveDisabledTooltip$,wr=Ne.graphIsOpened$,bn=be.features.interactiveResponsiveUi,$n=m(()=>r().has("EPISODE_BUTTON")),nr=m(()=>r().has("GRAPH_BUTTON")),Sr=m(()=>r().has("SEEK_TO_INTERACTIVE_BUTTON")),rr=m(()=>r().has("PLAY_BUTTON")),Hr=m(()=>r().has("REPLAY_BUTTON")),Ur=m(()=>r().has("PLAY_PREV_CHAPTER_BUTTON")),Un=()=>G.actions.internal.toggleChromecast(),sr=m(()=>Ct()?a()==="playing":l()===al.PlaybackState.PLAYING),zn=m(()=>d().value!=="off"),ar=m(()=>s()&&!Ct()||$i),zr=m(()=>bn?n(ar)&&so(u(),"m"):n(ar)),Wr=m(()=>!s()||$i||Ct()),Ei=m(()=>!f()&&so(u(),"m")),cs=m(()=>e.showNextPrevButtons&&!f()&&so(u(),"m")&&!Ct()&&e.nextButtonActive),on=m(()=>e.showNextPrevButtons&&!f()&&so(u(),"m")&&!Ct()&&e.prevButtonActive),gt=m(()=>!Ct()&&!!p()),Zt=m(()=>!f()&&v()!==al.ChromecastState.NOT_AVAILABLE&&!(b()&&y()===1)&&so(u(),"m")&&!$i&&!Ct()),lr=m(()=>e.showAutoplayNext&&!f()&&!Nt()&&so(u(),"s")),Wn=m(()=>!f()&&_().length>0&&so(u(),"m")),Kr=m(()=>w()||I()),Cr=m(()=>so(u(),"s")&&!Ct()),Qr=m(()=>!e.logoHidden&&!Ct()&&!f()),yn=m(()=>be.features.fullscreen&&qe()&&(e.logoHidden||so(u(),bn?"xs":"s"))&&!(b()&&y()===1)&&($i?Gt():!0)),nn=m(()=>(!p()||Ct())&&!(be.features.interactiveHideTime&&$i)),xn=m(()=>hn&&so(u(),"m")),Tr=m(()=>bn?Oo&&so(u(),"s"):Oo),Ir=m(()=>bn?_n&&so(u(),"s"):_n),wn=m(()=>!f()&&!Ct()&&!p()&&!!(lt!=null&<.length)&&n(Ei)&&!n($n)),Sn=m(()=>!T()||!!R()),dr=m(()=>A()?ut("tooltip_interactive_graph_on"):ut("tooltip_interactive_graph_off")),Vi=m(()=>P()?ut("tooltip_context_menu_close"):ut("tooltip_context_menu_open")),So=(ht,_t)=>ht?_t&&_t===al.PlaybackState.PAUSED?ut("tooltip_play"):"":ut("tooltip_live"),No=m(()=>So(n(Sn),l())),uo=m(()=>be.logoType==="vk_video"?ut("tooltip_vk_video_logo"):ut("tooltip_vk_logo")),Cn=m(()=>n(zn)?ut("tooltip_subtitles_on"):ut("tooltip_subtitles_off")),Tn=m(()=>E()?ut("tooltip_fullscreen_on"):ut("tooltip_fullscreen_off")),qr=m(()=>v()===al.ChromecastState.CONNECTED?ut("tooltip_chromecast_on"):ut("tooltip_chromecast_off")),Tt=m(()=>z()?ut("tooltip_autoplay_on"):ut("tooltip_autoplay_off")),gi=K(0),Qt=ri({}),Bo=ri({}),Co=m(()=>We.prevButton),In=m(()=>We.replayButton),To=m(()=>We.playButton),En=m(()=>We.nextButton),Wi=m(()=>We.playPrevChapterButton),Er=m(()=>We.seekToInteractiveButton),Fo=m(()=>We.interactiveGraphButton),Kn=m(()=>We.liveButton),us=m(()=>We.time),ps=m(()=>We.episodes),fs=m(()=>We.vkLogo),to=m(()=>We.volume),ms=m(()=>We.subtitles),Gr=m(()=>We.settings),_o=m(()=>We.context),Pr=m(()=>We.fullscreen),tt=m(()=>We.chromecast),$t=m(()=>({prevButton:U()?U().right-U().left:0,replayButton:W()?W().right-W().left:0,playButton:Y()?Y().right-Y().left:0,nextButton:te()?te().right-te().left:0,playPrevChapterButton:J()?J().right-J().left:0,seekToInteractiveButton:oe()?oe().right-oe().left:0,interactiveGraphButton:de()?de().right-de().left:0,liveButton:ae()?ae().right-ae().left:0,time:pe()?pe().right-pe().left:0,episodes:ee()?ee().right-ee().left:0,vkLogo:$e()?$e().right-$e().left:0,volume:Ee()?Ee().right-Ee().left:0,subtitles:ce()?ce().right-ce().left:0,settings:Qe()?Qe().right-Qe().left:0,context:fe()?fe().right-fe().left:0,fullscreen:ve()?ve().right-ve().left:0,chromecast:X()?X().right-X().left:0,additionalButtons:N().length?N().reduce(ht=>[...ht,40],[]):[]})),ei=K(0);Fe(()=>{(!n(ei)||n(ei)<n($t).time)&&kt(()=>D(ei,n($t).time,!0))});let Di=K(!1);Fe(()=>{let ht=0;n(wn)&&(so(u(),"xl")?ht=n($t).time:ht=60);let _t=n($t).prevButton+n($t).playButton+n($t).nextButton+n($t).seekToInteractiveButton+n($t).interactiveGraphButton+n($t).liveButton+n(ei)+ht;D(Di,n(nn)&&n(gi)>=_t,!0)});let po=m(()=>n(Di)&&so(u(),"m")),Bi=(0,$v.debounceFn)(nd,260),bo=(0,$v.debounceFn)(bp,260);Fe(()=>{me(),ue(),Re(),Bi(Mi(),We,Qt,e.showControls),bo(Mi(),mi,Bo,e.showControls)}),Fe(()=>{Bo.bottom=ct()});let Ho=se();Fe(()=>{et(),Ae()&&kt(()=>Yl(Ae(),et(),fi))});let Pn;Fe(()=>{j(),kt(()=>hp(Wt,j(),Pn))});function Qn(){ha({isAudioDisabled:Li,isAudioAvailable:ne(),isAds:Ct(),audioIsNotExistHintCallback:Ue,audioDisabledHintCallback:at})&&Oe()}let $o=$i?Si:Ie,rn=m(()=>Se()!==null),kr=m(()=>n(rn)?Se():n(sr)),Ar=m(()=>n(kr)?ut("tooltip_pause"):ut("tooltip_play")),Io=ut("tooltip_episodes"),cr=m(()=>{var ht,_t,Ci,Po;return n(on)?{id:"prevButton",type:"desktop-control-panel-left",weight:Gs.prevButton,buttonComponent:nl,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:tn.bind(null,!0)},tooltipEnabled:!((_t=(ht=G.callbacks)==null?void 0:ht.uiInfo)!=null&&_t.onPrevButtonMouseEnter)&&!((Po=(Ci=G.callbacks)==null?void 0:Ci.uiInfo)!=null&&Po.onPrevButtonMouseLeave),mouseEnter:()=>{var oo,hi,Qi;(Qi=(hi=(oo=G.callbacks)==null?void 0:oo.uiInfo)==null?void 0:hi.onPrevButtonMouseEnter)==null||Qi.call(hi,tr(Mi(),Qt,"prevButton",e.showControls))},mouseLeave:()=>{var oo,hi,Qi;(Qi=(hi=(oo=G.callbacks)==null?void 0:oo.uiInfo)==null?void 0:hi.onPrevButtonMouseLeave)==null||Qi.call(hi,tr(Mi(),Qt,"prevButton",e.showControls))},tooltipText:ut("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),qn=m(()=>n(zr)?{id:"replayButton",type:"desktop-control-panel-left",weight:Gs.replayButton,buttonComponent:rd,buttonComponentProps:{disabled:n(Hr),click:$o},tooltipText:ut("tooltip_restart"),disabled:n(Hr)}:void 0),vs=m(()=>n(Wr)?{id:"playButton",type:"desktop-control-panel-left",weight:Gs.playButton,buttonComponent:sd,buttonComponentProps:{disabled:n(rr),isPlaying:n(sr),click:Ie},tooltipText:n(Ar),disabled:n(rr)}:void 0),it=m(()=>{var ht,_t,Ci,Po;return n(cs)?{id:"nextButton",type:"desktop-control-panel-left",weight:Gs.nextButton,buttonComponent:nl,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:or.bind(null,!0)},tooltipEnabled:!((_t=(ht=G.callbacks)==null?void 0:ht.uiInfo)!=null&&_t.onNextButtonMouseEnter)&&!((Po=(Ci=G.callbacks)==null?void 0:Ci.uiInfo)!=null&&Po.onNextButtonMouseLeave),mouseEnter:()=>{var oo,hi,Qi;(Qi=(hi=(oo=G.callbacks)==null?void 0:oo.uiInfo)==null?void 0:hi.onNextButtonMouseEnter)==null||Qi.call(hi,tr(Mi(),Qt,"nextButton",e.showControls))},mouseLeave:()=>{var oo,hi,Qi;(Qi=(hi=(oo=G.callbacks)==null?void 0:oo.uiInfo)==null?void 0:hi.onNextButtonMouseLeave)==null||Qi.call(hi,tr(Mi(),Qt,"nextButton",e.showControls))},tooltipText:ut("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),Ft=m(()=>$i&&n(Ir)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:Gs.playPrevChapterButton,buttonComponent:Ec,buttonComponentProps:{disabled:n(Ur),click:e.playPrevChapter},tooltipText:ut("tooltip_interactive_go_back"),disabledTooltipContent:ut(Ps),disabled:n(Ur)}:void 0),Pi=m(()=>$i&&n(Tr)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:Gs.seekToInteractiveButton,buttonComponent:kc,buttonComponentProps:{disabled:n(Sr),click:e.seekToInteractive},tooltipText:ut("tooltip_interactive_seek"),disabled:n(Sr),disabledTooltipContent:ut(Le())}:void 0),sn=m(()=>$i&&n(xn)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:Gs.interactiveGraphButton,buttonComponent:Ac,buttonComponentProps:{disabled:n(nr),click:wr.toggle,graphIsOpened:A()},tooltipText:n(dr)}:void 0),Uo=m(()=>n(gt)?{id:"liveButton",type:"desktop-control-panel-left",weight:Gs.liveButton,buttonComponent:Lc,buttonComponentProps:{isLiveActive:n(Sn),ariaLabel:n(No)},tooltipText:n(No),disabled:n(Sn)&&l()===al.PlaybackState.PLAYING}:void 0),Yr=m(()=>[n(cr),n(qn),n(vs),n(it),n(Ft),n(Pi),n(sn),n(Uo)].filter(ht=>!!ht).sort(Ya)),an=m(()=>n(Qr)?{id:"vkLogo",type:"desktop-control-panel-right",weight:js.vkLogo,buttonComponent:hc,buttonComponentProps:{targetUrl:Ot(),logoClickable:e.logoClickable,click:bt},tooltipText:n(uo),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),ur=m(()=>n(lr)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:js.autoplayNext,buttonComponent:Pc,tooltipText:n(Tt)}:void 0),jr=m(()=>({id:"volume",type:"desktop-control-panel-right",weight:js.volume,buttonComponent:Nm,buttonComponentProps:{click:Qn,isAds:Ct()}})),ks=m(()=>n(Wn)?{id:"subtitles",type:"desktop-control-panel-right",weight:js.subtitles,buttonComponent:Vm,buttonComponentProps:{isSubtitlesEnabled:n(zn),click:ye},tooltipText:n(Cn)}:void 0),Zs=m(()=>n(Cr)?{id:"settings",type:"desktop-control-panel-right",weight:js.settings,buttonComponent:ed,buttonComponentProps:{ref$:Ho},tooltipText:et()?void 0:ut("tooltip_settings_off")}:void 0),Gn=m(()=>be.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:js.context,buttonComponent:ov,buttonComponentProps:{ariaLabel:ut("aria_label_context_menu")},className:n(Kr)?"":"out-of-view",tooltipText:n(Vi)}:void 0),Ca=m(()=>n(yn)?{id:"fullscreen",type:"desktop-control-panel-right",weight:js.fullscreen,buttonComponent:gc,buttonComponentProps:{isFullscreen:E(),click:e.toggleFullscreen},tooltipText:n(Tn)}:void 0),mt=m(()=>n(Zt)?{id:"chromecast",type:"desktop-control-panel-right",weight:js.chromecast,buttonComponent:bc,buttonComponentProps:{state:v(),click:Un},tooltipText:n(qr)}:void 0),li=m(()=>[n(an),n(ur),n(jr),n(ks),n(Zs),n(Gn),n(Ca),n(mt),...N()].filter(ht=>!!ht).sort(Ya)),zo=G.ui.previewTrackActive,pr=G.ui.previewTrackDragInProgress,Lr=G.ui.previewTrackAvailable,Wo=G.ui.isPreviewTrackHorizontallyAligned,ki=m(()=>Qb({onPreviewTrackOpened:G.actions.internal.previewTrackOpened,getTimelineRef:()=>Qt.timeline,isHorizontal:ze()})),gs=m(()=>n(ki).progressBarY),fo=m(()=>n(ki).controlsY),Ki=m(()=>n(ki).onPointerDown),ln=m(()=>n(ki).onPointerMove),Yn=m(()=>n(ki).onPointerUp),Xr=m(()=>n(ki).calculatedHeight),ge=m(()=>n(ki).closePreviewTrack);Fe(()=>{Re()||n(ge)()});let Et;Mt(()=>()=>Et&&clearTimeout(Et));let xi=ht=>{Re()||!Ce()||(n(Ki)(ht),Et=setTimeout(()=>{G.actions.internal.previewTrackDragStarted()},200))},Oi=()=>{Re()||n(Yn)(),Et&&clearTimeout(Et),we()&&G.actions.internal.previewTrackDragFinished()},Ko=ht=>{n(ln)(ht)},Eo=-(parseInt("24")/2+4);var io=hw(),dn=le(io);let As;var Ls=C(dn);{var Js=ht=>{let _t=m(()=>n(gs)()),Ci=m(()=>n(Xr)());bv(ht,{get animatedOffsetY(){return n(_t)},get animatedPreviewTrackHeight(){return n(Ci)},get canRewindLive(){return e.canRewindLive},get isAds(){return Ct()},onTimelineMove:Ko,onTimelinePointerDown:xi,onTimelinePointerUp:Oi,get previewTrackAvailable(){return Ce()},get timelineRef(){return Qt.timeline},set timelineRef(Po){Qt.timeline=Po}})};M(Ls,ht=>{e.showControls&&ht(Js)})}var hs=k(Ls,2),_s=C(hs),fr=C(_s);wi(fr,17,()=>n(Yr),ht=>ht.id,(ht,_t)=>{_p(ht,{get buttonComponent(){return n(_t).buttonComponent},get buttonComponentProps(){return n(_t).buttonComponentProps},get tooltipText(){return n(_t).tooltipText},get disabledTooltipContent(){return n(_t).disabledTooltipContent},get disabled(){return n(_t).disabled},get className(){return n(_t).className},get tooltipEnabled(){return n(_t).tooltipEnabled},get mouseEnter(){return n(_t).mouseEnter},get mouseLeave(){return n(_t).mouseLeave},get tooltipVisible(){return e.showControls},get ref(){return Qt[n(_t).id]},set ref(Ci){Qt[n(_t).id]=Ci}})});var Ta=k(fr,2);{var vd=ht=>{let _t=m(()=>!e.showControls),Ci=m(()=>Ct()?He():st()),Po=m(()=>Ct()?pt():Rt());fc(ht,{get isHidden(){return n(_t)},isMobile:!1,get showDuration(){return n(po)},get position(){return n(Ci)},get duration(){return n(Po)},get ref(){return Qt.time},set ref(oo){Qt.time=oo}})};M(Ta,ht=>{n(nn)&&ht(vd)})}var Mr=k(Ta,2);let gd=m(()=>!n(wn));Mo(Mr,{className:"w-max",get disabled(){return n(gd)},get tooltipContent(){return Io},get tooltipVisible(){return e.showControls},tooltipPlacement:"top-left",get initialTranslateXPx(){return Eo},get ref(){return Qt.episodes},set ref(ht){Qt.episodes=ht},children:(ht,_t)=>{var Ci=Ve(),Po=le(Ci);{var oo=hi=>{$c(hi,{get position(){return st()},get duration(){return Rt()},get timeCodes(){return lt}})};M(Po,hi=>{n(wn)&&hi(oo)})}$(ht,Ci)},$$slots:{default:!0}}),S(_s);var Ia=k(_s,2);wi(Ia,21,()=>n(li),ht=>ht.id,(ht,_t)=>{var Ci=Ve(),Po=le(Ci);{var oo=Qi=>{_p(Qi,{get buttonComponent(){return n(_t).buttonComponent},get buttonComponentProps(){return n(_t).buttonComponentProps},get tooltipText(){return n(_t).tooltipText},get disabledTooltipContent(){return n(_t).disabledTooltipContent},get disabled(){return n(_t).disabled},get className(){return n(_t).className},get tooltipVisible(){return e.showControls},get ref(){return Qt[n(_t).id]},set ref(ea){Qt[n(_t).id]=ea}})},hi=Qi=>{let ea=m(()=>!!n(_t).disabled);dv(Qi,{get id(){return n(_t).id},get testId(){return n(_t).testId},get icon(){return n(_t).icon},get ariaLabel(){return n(_t).ariaLabel},get tooltipText(){return n(_t).tooltipText},get disabledTooltipContent(){return n(_t).disabledTooltipContent},get disabled(){return n(ea)},get onClick(){return n(_t).onClick},get disableMouseupTooltipShow(){return n(_t).disableMouseupTooltipShow},get tooltipVisible(){return e.showControls},get ref(){return Qt[n(_t).id]},set ref(_d){Qt[n(_t).id]=_d}})};M(Po,Qi=>{zb(n(_t))?Qi(oo):Qi(hi,!1)})}$(ht,Ci)}),S(Ia),S(hs),ot(hs,ht=>ni(ht),()=>ni()),S(dn),ot(dn,ht=>ct(ht),()=>ct());var hd=k(dn,2);{var bl=ht=>{Tc(ht,{get ref(){return Qt.interactiveTimeIndicator},set ref(_t){Qt.interactiveTimeIndicator=_t}})};M(hd,ht=>{Es&&ht(bl)})}O((ht,_t)=>{As=ie(dn,1,"wrapper-bottom s-1a",null,As,ht),Ke(dn,`transform: ${e.showControls?"translateY(0)":"translateY(100%)"}`),Ke(hs,_t),hs.inert=Re()},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth||we()}),()=>`transform: translateY(${n(fo)()}px);`]),Dn(_s,"clientWidth",ht=>D(gi,ht)),$(t,io),F(),o()}var ad=require("@vkontakte/videoplayer-core/es2015");var xv=require("@vkontakte/videoplayer-shared/es2015");var bw=L('<div class="icon icon-error-stub s-20"><div class="inner s-20"></div></div>'),$w=L('<img class="icon s-20" aria-hidden="true"/>'),yw={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 wv(t,e){Q(t,yw);let i=g(e,"disabled",3,!1),o=g(e,"onClick",3,xv.noop),r=m(()=>o()===xv.noop),a=m(()=>n(r)||i()),l=K(!1),d=()=>{D(l,!0)},s=m(()=>n(r)?"btn-full-opacity":"");Ut(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,f)=>{var p=Ve(),v=le(p);{var b=_=>{var w=bw();$(_,w)},y=_=>{var w=$w();O(()=>De(w,"src",e.iconUrl)),vt("error",w,d),Ha(w),$(_,w)};M(v,_=>{n(l)?_(b):_(y,!1)})}$(u,p)},$$slots:{default:!0}})}var xw=ke('<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 Sv(t){Xe(t,{testId:"muted-icon",children:(e,i)=>{var o=xw();$(e,o)},$$slots:{default:!0}})}var Xb=require("@vkontakte/videoplayer-shared/es2015");function yp(t,e){B(e,!0);let i=g(e,"muted",3,!1),o=g(e,"click",3,Xb.noop),r=g(e,"ref",15,void 0),l=xe().ui.t,d=m(()=>i()?l("tooltip_volume"):l("tooltip_volume_muted")),s=m(()=>i()?"btn-mobile-muted":"btn-mobile-unmuted");Ut(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,f)=>{var p=Ve(),v=le(p);{var b=_=>{Sv(_,{})},y=_=>{$a(_,{get size(){return"24"}})};M(v,_=>{i()?_(b):_(y,!1)})}$(u,p)},$$slots:{default:!0}}),F()}var ww=ke('<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>'),Sw=ke('<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>'),Cw=ke('<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 Cv(t,e){let i=g(e,"isActive",3,!1),o=m(()=>i()?"pip-icon--active":"pip-icon");Xe(t,{get testId(){return n(o)},children:(r,a)=>{var l=Cw(),d=k(le(l));{var s=f=>{var p=ww();$(f,p)},u=f=>{var p=Sw();$(f,p)};M(d,f=>{i()?f(s):f(u,!1)})}$(r,l)},$$slots:{default:!0}})}var Zb=require("@vkontakte/videoplayer-shared/es2015");function Tv(t,e){B(e,!0);let i=g(e,"ref",15,void 0),o=g(e,"isPictureInPictureActive",3,!1),r=g(e,"click",3,Zb.noop),a=q("menu_pip");Ut(t,{testId:"btn-pip",get ariaLabel(){return a},get click(){return r()},get ref(){return i()},set ref(l){i(l)},children:(l,d)=>{Cv(l,{get isActive(){return o()}})},$$slots:{default:!0}}),F()}var Iv=require("@vkontakte/videoplayer-shared/es2015");var Tw=(t,e,i,o)=>{n(e)&&i.onDisabledPlayPrevChapterClick(n(o))},Iw=(t,e,i,o)=>{n(e)&&i.onDisabledSeekToInteractiveClick(n(o))},Ew=L("<div><!></div>"),Pw=L("<div><!></div>"),kw=L("<div><!></div>"),Aw=L("<!> <!> <!>",1),Lw=L("<div></div> <div></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),Mw=L('<div class="wrapper-middle s-19"><!></div>'),Vw=L("<div><!></div> <!> <div><!></div>",1),Rw=L('<div aria-hidden="true">·</div> <!>',1),Dw=L('<!> <!> <div><div><div class="controls mobile s-19" data-testid="bottom-controls"><div class="controls-group contain s-19"><!> <!> <!> <!></div> <div class="controls-group s-19"><!> <!> <!></div></div> <!></div></div> <!>',1),Ow={hash:"s-19",code:".wrapper-bottom.s-19{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-19>:where(.s-19){pointer-events:auto}.wrapper-bottom.ads-timeline-mobile.s-19{height:9px;padding:0 4px 4px}.wrapper-middle.s-19{align-items:center;left:50%;top:50%;transform:translate(-50%,-50%)}.wrapper-middle.s-19,.wrapper-top-right.s-19{display:flex;position:absolute;transition:opacity var(--controls-transition-duration);z-index:var(--controls-container-z-index)}.wrapper-top-right.s-19{right:8px;top:4px}.wrapper-top-left.s-19{left:8px;position:absolute;top:4px;z-index:var(--controls-container-z-index)}.wrapper-middle-left.s-19,.wrapper-middle-left-second.s-19,.wrapper-middle-right.s-19{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-19{left:12px}.wrapper-middle-left-second.s-19{left:64px}.wrapper-middle-right.s-19{right:12px}.controls.s-19{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-19,.controls-group.s-19{display:flex}.controls-group.contain.s-19{min-width:0}.controls-group.s-19 >:not(:first-child){margin-left:8px}.hidden.s-19{opacity:0;visibility:hidden}.controls-hidden.s-19{transform:translateY(100%);visibility:visible}.wrapper-bottom.no-smooth.s-19{transition:none}.overlay-mobile.s-19{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-19,.wrapper-top-right.fullscreen.s-19{top:16px}.controls-wrapper.fullscreen.s-19{bottom:30px;position:absolute;width:calc(100% - 8px)}}@media screen and (orientation:landscape){.wrapper-top-left.fullscreen.s-19{left:44px;top:12px}.wrapper-top-right.fullscreen.s-19{right:44px;top:12px}.wrapper-middle-left.fullscreen.s-19{left:44px}.wrapper-middle-left-second.fullscreen.s-19{left:96px}.wrapper-middle-right.fullscreen.s-19{right:44px}.controls-wrapper.fullscreen.s-19{bottom:32px;left:36px;position:absolute;right:36px;width:calc(100% - 72px)}}"};function Ev(t,e){var _o,Pr;B(e,!0),Q(t,Ow);let[i,o]=Be(),r=()=>x(It,"$seekToInteractiveDisabledTooltip$",i),a=()=>x(bi,"$disabledControls$",i),l=()=>x(Ot,"$playbackState$",i),d=()=>x(eo,"$adPlaybackState",i),s=()=>x(Te,"$isEnded$",i),u=()=>x(Ro,"$playerSize",i),f=()=>x(bt,"$scrubbingInProgress",i),p=()=>x(Ji,"$chromecastState$",i),v=()=>x(qe,"$isPictureInPictureActive",i),b=()=>x(Ue,"$pictureInPictureType$",i),y=()=>x(ye,"$mobileNotReportControlHidden$",i),_=()=>x(si,"$chromecastHidden",i),w=()=>x(ct,"$playerPhase",i),I=()=>x(Li,"$pipHidden",i),T=()=>x(We,"$currentGridType$",i),R=()=>x(yi,"$vkLogoHidden",i),A=()=>x(Xt,"$volumeHidden",i),P=()=>x(G,"$isLive$",i),E=()=>x(at,"$settingsMenuVisible",i),z=()=>x(Ie,"$isRewindableLive$",i),U=()=>x(Oe,"$isActiveLive$",i),W=()=>x(Nt,"$isAudioAvailable$",i),Y=()=>x(be,"$muted$",i),te=()=>x(Ne,"$volume$",i),J=()=>x(mi,"$isInteractiveTime$",i),oe=()=>x(xn,"$settingButtonRef$",i),de=()=>x(fi,"$startedByKeyboard$",i),ae=()=>x(xo,"$isFullscreen",i),pe=()=>x(vn,"$additionalButtons$",i),ee=()=>x(Ri,"$autoplayNextToggleHidden",i),$e=()=>x(Pt,"$crashed$",i),Ee=()=>x(Zi,"$settingsHidden",i),ce=()=>x(co,"$graphIsOpened$",i),Qe=()=>x(Ii,"$adPosition",i),fe=()=>x(lt,"$adDuration",i),ve=()=>x(Ct,"$position$",i),X=()=>x(ni,"$duration$",i),N=g(e,"playerControlsWrapperRef",15,void 0),me=g(e,"playerControlsRef",15,void 0),ue=g(e,"isAds",3,!1),Re=g(e,"logoTargetUrl",3,""),et=g(e,"isOneVideoPlaylist",3,!1),Ae=g(e,"customFullscreenSupported",3,!0),j=xe(),ne=yo(),Se=Vt(),Le=j.actions.internal.toggleMuted,ze=j.actions.internal.togglePlay,Ce=j.actions.internal.pause,we=j.actions.internal.prevVideoClick,He=j.actions.internal.nextVideoClick,st=j.actions.internal.checkFullscreenSupport,pt=(_o=j.callbacks)==null?void 0:_o.onAudioDoesNotExistHint,Rt=(Pr=j.callbacks)==null?void 0:Pr.onAudioDisabledHint,ct=j.playerPhase,ni=j.state.duration$,Ct=j.state.positionWithScrubbing$,Ot=j.state.playbackState$,Nt=j.state.isAudioAvailable$,Gt=j.state.isAudioDisabled,Te=j.state.isEnded$,G=j.state.isLive$,Ne=j.state.volume$,be=j.state.muted$,Oe=j.state.isActiveLive$,Ie=j.state.isRewindableLive$,bt=j.ui.scrubbingInProgress,ye=j.ui.mobileNotReportControlHidden$,{isActive$:qe,type$:Ue}=ne.pictureInPicture$,at=j.ui.settingsMenu.visible$,Yt=j.ui.settingsMenu.openedByBtnKeyboard$,At=j.ui.controls,{volume:Xt,vkLogo:yi,autoplayNextToggle:Ri,pip:Li,settings:Zi,chromecast:si}=j.ui.hiddenControls,ft=j.actions.internal.getVideoEpisodes(),di=j.webApi.pictureInPictureApi,Ji=j.state.chromecastState$,Pt=j.state.crashed$,bi=At.disabledControls$,fi=j.ui.startedByKeyboard$,We=j.ui.currentGridType$,lt=j.ads.duration,Ii=j.ads.position,eo=j.ads.playbackState,xo=j.ui.isFullscreen,Ro=j.ui.playerSize,vn=j.ui.additionalButtonsDeprecated$,H=j.actions.internal.getVideoElement,nt=j.actions.internal.replayInteractive,Wt=j.state.isInteractive,mi=j.state.isInteractiveTime$,ut=j.state.showInteractiveGraph,ai=j.state.showSeekToInteractive,vi=j.state.showPlayPrevChapter,jt=j.state.showInteractiveTimeIndicator,It=ne.seekToInteractiveDisabledTooltip$,co=ne.graphIsOpened$,Do=j.ui.controlBlocks,Hn=m(()=>q(j.state.playPrevChapterDisabledTooltip)),gn=m(()=>q(r())),Mi=m(()=>a().has("EPISODE_BUTTON")),Si=m(()=>a().has("GRAPH_BUTTON")),tn=m(()=>a().has("SEEK_TO_INTERACTIVE_BUTTON")),or=m(()=>a().has("PLAY_BUTTON")),$i=m(()=>a().has("REPLAY_BUTTON")),wo=m(()=>a().has("PLAY_PREV_CHAPTER_BUTTON")),hn=m(()=>l()===ad.PlaybackState.PLAYING),Oo=m(()=>d()==="paused"),_n=m(()=>s()&&!ue()&&!Wt),Es=m(()=>!s()||ue()),Ps=m(()=>e.showNextPrevButtons&&!ue()&&e.prevButtonActive),ds=m(()=>e.showNextPrevButtons&&!ue()&&e.nextButtonActive),wr=m(()=>u().width>300),bn=m(()=>u().width>400),$n=m(f),nr=m(()=>p()!==ad.ChromecastState.NOT_AVAILABLE&&!(v()&&b()===1)&&!y()&&!Wt&&!_()),Sr=m(()=>w()==="LiveWaitingStart"),rr=m(()=>!!di&&p()!==ad.ChromecastState.CONNECTED&&!y()&&(b()===1&&n(Sr)||!n(Sr))&&!n($n)&&!Wt&&!I()),Hr=K(!1);Mt(()=>{let tt=di==null?void 0:di.info.isActive$.subscribe($t=>D(Hr,$t,!0));return()=>tt==null?void 0:tt.unsubscribe()});let Ur=m(()=>!n($n)&&so(T(),"s")),Un=m(()=>!e.logoHidden&&u().width>350&&!R()),sr=m(()=>Se.features.fullscreen&&st()&&!(v()&&b()===1)&&(Wt?Ae():!0)&&!n($n)&&!n(Hr)),zn=m(()=>!A()&&!n($n)),ar=m(()=>(!P()||ue())&&u().width>260&&!n($n)&&!(Se.features.interactiveHideTime&&Wt)),zr=m(()=>E()||e.showControls),Wr=m(()=>!ue()&&!P()&&!!(ft!=null&&ft.length)&&n(wr)&&!n(Mi)&&!n($n)),Ei=m(()=>!z()||!!U()),cs=m(()=>ut&&so(T(),"m")),on=m(()=>!W()||Y()||te()===0),gt=ri({}),Zt=ri({}),lr=(0,Iv.debounceFn)(nd,260),Wn=(0,Iv.debounceFn)(bp,260);Fe(()=>{u(),J(),lr(H(),At,gt,e.showControls),Wn(H(),Do,Zt,e.showControls)});let Kr=()=>j.actions.internal.toggleChromecast();function Cr(){return yt(this,null,function*(){di!=null&&di.isActive()?yield di==null?void 0:di.exit():yield di==null?void 0:di.request()})}function Qr(){ha({isAudioDisabled:Gt,audioDisabledHintCallback:Rt,isAudioAvailable:W(),audioIsNotExistHintCallback:pt,isAds:ue()})&&Le()}let yn=K(""),nn=(tt,$t)=>{if(!tt){D(yn,q("tooltip_live"),!0);return}$t&&$t===ad.PlaybackState.PAUSED&&D(yn,q("tooltip_play"),!0)};Fe(()=>{nn(n(Ei),l())});let xn=se();Fe(()=>{oe()&&Yl(oe(),E(),Yt)}),Fe(()=>{hp(fi,de(),gt.playButton)});var Tr=Dw(),Ir=le(Tr);{var wn=tt=>{var $t=Lw(),ei=le($t);let Di;var po=k(ei,2);let Bi;ot(po,mt=>Zt.topLeft=mt,()=>Zt==null?void 0:Zt.topLeft);var bo=k(po,2);let Ho;var Pn=C(bo);wi(Pn,1,pe,({iconUrl:mt,ariaLabel:li,testId:zo,onClick:pr,tooltip:Lr})=>mt,(mt,li)=>{let zo=()=>n(li).iconUrl,pr=()=>n(li).ariaLabel,Lr=()=>n(li).testId,Wo=()=>n(li).onClick,ki=()=>n(li).tooltip,gs=m(()=>{var fo;return(fo=pr())!=null?fo:ki()});wv(mt,{get iconUrl(){return zo()},get ariaLabel(){return n(gs)},get testId(){return Lr()},get onClick(){return Wo()}})});var Qn=k(Pn,2);{var $o=mt=>{Pc(mt,{get ref(){return gt.autoplayNextToggle},set ref(li){gt.autoplayNextToggle=li}})};M(Qn,mt=>{e.showAutoplayNext&&!et()&&!ee()&&mt($o)})}var rn=k(Qn,2);{var kr=mt=>{bc(mt,{isMobile:!0,click:Kr,get state(){return p()},get ref(){return gt.chromecast},set ref(li){gt.chromecast=li}})};M(rn,mt=>{n(nr)&&mt(kr)})}var Ar=k(rn,2);{var Io=mt=>{Tv(mt,{click:Cr,get isPictureInPictureActive(){return v()},get ref(){return gt.pip},set ref(li){gt.pip=li}})};M(Ar,mt=>{n(rr)&&mt(Io)})}var cr=k(Ar,2);{var qn=mt=>{ed(mt,{get ref$(){return xn}})};M(cr,mt=>{$e()&&!Ee()&&mt(qn)})}var vs=k(cr,2);{var it=mt=>{hc(mt,{get click(){return Ce},get targetUrl(){return Re()},get logoClickable(){return e.logoClickable},get ref(){return gt.vkLogo},set ref(li){gt.vkLogo=li}})};M(vs,mt=>{n(Un)&&mt(it)})}S(bo),ot(bo,mt=>Zt.topRight=mt,()=>Zt==null?void 0:Zt.topRight);var Ft=k(bo,2);let Pi;var sn=C(Ft);{var Uo=mt=>{let li=m(()=>we.bind(null,!0));nl(mt,{get click(){return n(li)},type:"prev",isMobile:!0,get ref(){return gt.prevButton},set ref(zo){gt.prevButton=zo}})};M(sn,mt=>{n(Ps)&&mt(Uo)})}var Yr=k(sn,2);{var an=mt=>{sd(mt,{get disabled(){return n(or)},get click(){return ze},isMobile:!0,get isPlaying(){return n(hn)},get ref(){return gt.playButton},set ref(li){gt.playButton=li}})};M(Yr,mt=>{n(Es)&&mt(an)})}var ur=k(Yr,2);{var jr=mt=>{rd(mt,{get disabled(){return n($i)},get click(){return ze},isMobile:!0,get ref(){return gt.replayButton},set ref(li){gt.replayButton=li}})};M(ur,mt=>{n(_n)&&mt(jr)})}var ks=k(ur,2);{var Zs=mt=>{let li=m(()=>He.bind(null,!0));nl(mt,{get click(){return n(li)},type:"next",isMobile:!0,get ref(){return gt.nextButton},set ref(zo){gt.nextButton=zo}})};M(ks,mt=>{n(ds)&&mt(Zs)})}S(Ft),ot(Ft,mt=>Zt.middle=mt,()=>Zt==null?void 0:Zt.middle);var Gn=k(Ft,2);{var Ca=mt=>{var li=Aw(),zo=le(li);{var pr=fo=>{var Ki=Ew();let ln;Ki.__click=[Tw,wo,e,Hn];var Yn=C(Ki);let Xr=m(()=>!e.showControls);Ec(Yn,{get hidden(){return n(Xr)},get disabled(){return n(wo)},get click(){return e.playPrevChapter},get ref(){return gt.playPrevChapterButton},set ref(ge){gt.playPrevChapterButton=ge}}),S(Ki),O(ge=>ln=ie(Ki,1,"wrapper-middle-left s-19",null,ln,ge),[()=>({fullscreen:ae(),hidden:!e.showControls})]),$(fo,Ki)};M(zo,fo=>{vi&&fo(pr)})}var Lr=k(zo,2);{var Wo=fo=>{var Ki=Pw();let ln;var Yn=C(Ki);let Xr=m(()=>!e.showControls&&!ce());Ac(Yn,{get hidden(){return n(Xr)},get disabled(){return n(Si)},get click(){return co.toggle},get graphIsOpened(){return ce()},get ref(){return gt.interactiveGraphButton},set ref(ge){gt.interactiveGraphButton=ge}}),S(Ki),O(ge=>ln=ie(Ki,1,Kd(vi?"wrapper-middle-left-second":"wrapper-middle-left"),"s-19",ln,ge),[()=>({fullscreen:ae(),hidden:!e.showControls&&!ce()})]),$(fo,Ki)};M(Lr,fo=>{n(cs)&&fo(Wo)})}var ki=k(Lr,2);{var gs=fo=>{var Ki=kw();let ln;Ki.__click=[Iw,tn,e,gn];var Yn=C(Ki);let Xr=m(()=>!e.showControls);kc(Yn,{get hidden(){return n(Xr)},get disabled(){return n(tn)},get click(){return e.seekToInteractive},get ref(){return gt.seekToInteractiveButton},set ref(ge){gt.seekToInteractiveButton=ge}}),S(Ki),O(ge=>ln=ie(Ki,1,"wrapper-middle-right s-19",null,ln,ge),[()=>({fullscreen:ae(),hidden:!e.showControls})]),$(fo,Ki)};M(ki,fo=>{ai&&fo(gs)})}$(mt,li)};M(Gn,mt=>{Wt&&!f()&&mt(Ca)})}O((mt,li,zo,pr)=>{Di=ie(ei,1,"overlay-mobile s-19",null,Di,mt),Bi=ie(po,1,"wrapper-top-left s-19",null,Bi,li),Ho=ie(bo,1,"wrapper-top-right s-19",null,Ho,zo),Pi=ie(Ft,1,"wrapper-middle s-19",null,Pi,pr)},[()=>({hidden:!n(zr)}),()=>({hidden:!e.showControls,fullscreen:ae()}),()=>({hidden:!e.showControls&&!y(),fullscreen:ae()}),()=>({hidden:!e.showControls||f()||e.endScreenShown&&e.showNextPrevButtons})]),$(tt,$t)};M(Ir,tt=>{ue()||tt(wn)})}var Sn=k(Ir,2);{var dr=tt=>{var $t=Vw(),ei=le($t);let Di;var po=C(ei);yp(po,{get muted(){return Y()},click:Qr,get ref(){return gt.volume},set ref($o){gt.volume=$o}}),S(ei);var Bi=k(ei,2);{var bo=$o=>{var rn=Mw(),kr=C(rn);let Ar=m(()=>!n(Oo));sd(kr,{get disabled(){return n(or)},get click(){return ze},isMobile:!0,get isPlaying(){return n(Ar)},get ref(){return gt.playButton},set ref(Io){gt.playButton=Io}}),S(rn),$($o,rn)};M(Bi,$o=>{n(Oo)&&$o(bo)})}var Ho=k(Bi,2);let Pn;var Qn=C(Ho);Mc(Qn,{get position(){return Qe()},get duration(){return fe()}}),S(Ho),O(($o,rn)=>{Di=ie(ei,1,"wrapper-top-right s-19",null,Di,$o),Pn=ie(Ho,1,"wrapper-bottom ads-timeline-mobile s-19",null,Pn,rn)},[()=>({fullscreen:ae()}),()=>({fullscreen:ae()})]),$(tt,$t)};M(Sn,tt=>{ue()&&d()!=="inactive"&&tt(dr)})}var Vi=k(Sn,2);let So;var No=C(Vi);let uo;var Cn=C(No),Tn=C(Cn),qr=C(Tn);{var Tt=tt=>{Mo(tt,{get disabled(){return n($i)},get ref(){return gt.replayButton},set ref($t){gt.replayButton=$t},children:($t,ei)=>{rd($t,{get disabled(){return n($i)},get click(){return nt}})},$$slots:{default:!0}})};M(qr,tt=>{Wt&&tt(Tt)})}var gi=k(qr,2);{var Qt=tt=>{Mo(tt,{get ref(){return gt.liveButton},set ref($t){gt.liveButton=$t},children:($t,ei)=>{Lc($t,{get isLiveActive(){return n(Ei)},isMobile:!0,get ariaLabel(){return n(yn)}})},$$slots:{default:!0}})};M(gi,tt=>{!ue()&&P()&&tt(Qt)})}var Bo=k(gi,2);{var Co=tt=>{let $t=m(()=>ue()?Qe():ve()),ei=m(()=>ue()?fe():X()),Di=m(()=>!e.showControls);fc(tt,{get showDuration(){return n(bn)},get position(){return n($t)},get duration(){return n(ei)},isMobile:!0,get isHidden(){return n(Di)},get ref(){return gt.time},set ref(po){gt.time=po}})};M(Bo,tt=>{n(ar)&&tt(Co)})}var In=k(Bo,2);let To=m(()=>!n(Wr));Mo(In,{className:"w-max",get disabled(){return n(To)},get ref(){return gt.episodes},set ref(tt){gt.episodes=tt},children:(tt,$t)=>{var ei=Ve(),Di=le(ei);{var po=Bi=>{var bo=Rw(),Ho=k(le(bo),2);$c(Ho,{get position(){return ve()},get duration(){return X()},get timeCodes(){return ft}}),$(Bi,bo)};M(Di,Bi=>{n(Wr)&&Bi(po)})}$(tt,ei)},$$slots:{default:!0}}),S(Tn),ot(Tn,tt=>Zt.bottomLeft=tt,()=>Zt==null?void 0:Zt.bottomLeft);var En=k(Tn,2),Wi=C(En);{var Er=tt=>{Mo(tt,{get ref(){return gt.volume},set ref($t){gt.volume=$t},children:($t,ei)=>{yp($t,{get muted(){return n(on)},click:Qr})},$$slots:{default:!0}})};M(Wi,tt=>{n(zn)&&tt(Er)})}var Fo=k(Wi,2);{var Kn=tt=>{Mo(tt,{get ref(){return gt.settings},set ref($t){gt.settings=$t},children:($t,ei)=>{ed($t,{get ref$(){return xn}})},$$slots:{default:!0}})};M(Fo,tt=>{n(Ur)&&tt(Kn)})}var us=k(Fo,2);{var ps=tt=>{Mo(tt,{get ref(){return gt.fullscreen},set ref($t){gt.fullscreen=$t},children:($t,ei)=>{gc($t,{get click(){return e.toggleFullscreen},get isFullscreen(){return ae()}})},$$slots:{default:!0}})};M(us,tt=>{n(sr)&&tt(ps)})}S(En),ot(En,tt=>Zt.bottomRight=tt,()=>Zt==null?void 0:Zt.bottomRight),S(Cn),ot(Cn,tt=>me(tt),()=>me());var fs=k(Cn,2);let to=m(()=>!e.showControls);sl(fs,{get isHidden(){return n(to)},get isAds(){return ue()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return z()},get ref(){return gt.timeline},set ref(tt){gt.timeline=tt}}),S(No),ot(No,tt=>Zt.bottom=tt,()=>Zt==null?void 0:Zt.bottom),S(Vi),ot(Vi,tt=>N(tt),()=>N());var ms=k(Vi,2);{var Gr=tt=>{Tc(tt,{get ref(){return gt.interactiveTimeIndicator},set ref($t){gt.interactiveTimeIndicator=$t}})};M(ms,tt=>{jt&&tt(Gr)})}O((tt,$t)=>{So=ie(Vi,1,"wrapper-bottom mobile s-19",null,So,tt),Ke(Vi,`transform: ${e.showControls?"translateY(0)":"translateY(100%)"}`),uo=ie(No,1,"controls-wrapper s-19",null,uo,$t)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth}),()=>({fullscreen:ae()})]),$(t,Tr),F(),o()}Je(["click"]);function Vc(t,e){B(e,!0);let[i,o]=Be(),r=()=>x(I,"$isMobile",i),a=g(e,"bottomNoSmooth",3,!1),l=g(e,"playerControlsWrapperRef",15,void 0),d=g(e,"playerControlsRef",15,void 0),s=g(e,"isAds",3,!1),u=g(e,"logoTargetUrl",3,""),f=g(e,"showAutoplayNext",3,!1),p=g(e,"isOneVideoPlaylist",3,!1),v=g(e,"customFullscreenSupported",3,!0),b=g(e,"endScreenShown",3,!1),y=g(e,"onDisabledPlayPrevChapterClick",3,Pv.noop),_=g(e,"onDisabledSeekToInteractiveClick",3,Pv.noop),I=xe().ui.isMobile,T=K(!1);Mt(()=>{let E=setTimeout(()=>D(T,!0),0);return()=>clearTimeout(E)});var R=Ve(),A=le(R);{var P=E=>{var z=Ve(),U=le(z);{var W=te=>{Ev(te,{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 f()},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 _()},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(J){l(J)},get playerControlsRef(){return d()},set playerControlsRef(J){d(J)}})},Y=te=>{yv(te,{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 f()},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(J){l(J)},get playerControlsRef(){return d()},set playerControlsRef(J){d(J)}})};M(U,te=>{r()?te(W):te(Y,!1)})}$(E,z)};M(A,E=>{n(T)&&E(P)})}$(t,R),F(),o()}var Nw=ke('<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 Rc(t,e){B(e,!0);let i=m(()=>e.reversed?"transform:scaleX(-1);transform-origin:50% 0;":""),o=m(()=>`${fn(e.size)}${n(i)}`);Xe(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=Nw();$(r,l)},$$slots:{default:!0}}),F()}var Bw=ke('<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 kv(t,e){B(e,!0);let i=g(e,"reversed",3,!1),o=m(()=>i()?"transform:scaleX(-1);transform-origin: 50% 0;":void 0),r=m(()=>`seek-icon-${i()?"backward":"forward"}`);Xe(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=Bw();$(a,d)},$$slots:{default:!0}}),F()}var Fw=L('<span class="hot-key-helpers-text s-n"> </span>'),Hw=L('<div data-testid="hotkey-helper-icon" class="s-n"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),Uw=L("<div><!></div>"),zw={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 Av(t,e){B(e,!0),Q(t,zw);let[i,o]=Be(),r=()=>x(e.data,"$data",i),a=xe(),{features:l}=Vt(),d=a.ui.t,s=m(()=>!r()),u=m(()=>{var I;return((I=r())==null?void 0:I.type)==="BACKWARD_SEEK"}),f=m(()=>{var I;return((I=r())==null?void 0:I.type)==="FORWARD_SEEK"}),p=m(()=>{var I;return(I=r())==null?void 0:I.type}),v=m(()=>{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=Uw();let y;var _=C(b);{var w=I=>{var T=Hw(),R=le(T),A=C(R);{var P=me=>{let ue=m(()=>n(p)==="BACKWARD_SEEK");kv(me,{get reversed(){return n(ue)},shadow:!0})};M(A,me=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(n(p))&&me(P)})}var E=k(A,2);{var z=me=>{Ys(me,{get size(){return"48"},shadow:!0})};M(E,me=>{n(p)==="PAUSE"&&!l.playbackStatusShow&&me(z)})}var U=k(E,2);{var W=me=>{Nn(me,{get size(){return"48"},shadow:!0})};M(U,me=>{n(p)==="PLAY"&&!l.playbackStatusShow&&me(W)})}var Y=k(U,2);{var te=me=>{Ic(me,{get size(){return"48"},shadow:!0})};M(Y,me=>{n(p)==="REPLAY"&&!l.playbackStatusShow&&me(te)})}var J=k(Y,2);{var oe=me=>{ba(me,{get size(){return"48"},type:"off",shadow:!0})};M(J,me=>{n(p)==="SUBTITLES_OFF"&&me(oe)})}var de=k(J,2);{var ae=me=>{ba(me,{get size(){return"48"},shadow:!0})};M(de,me=>{n(p)==="SUBTITLES_ON"&&me(ae)})}var pe=k(de,2);{var ee=me=>{let ue=m(()=>n(p)==="RATE_DOWN");Rc(me,{get size(){return"48"},get reversed(){return n(ue)},testId:"rate-change-icon",shadow:!0})};M(pe,me=>{["RATE_DOWN","RATE_UP"].includes(n(p))&&me(ee)})}var $e=k(pe,2);{var Ee=me=>{let ue=m(()=>n(p)==="EPISODE_PREV");ya(me,{get size(){return"48"},get reversed(){return n(ue)},shadow:!0})};M($e,me=>{["EPISODE_PREV","EPISODE_NEXT"].includes(n(p))&&me(Ee)})}var ce=k($e,2);{var Qe=me=>{$a(me,{get size(){return"48"},volume:0,shadow:!0})};M(ce,me=>{n(p)==="MUTE"&&me(Qe)})}var fe=k(ce,2);{var ve=me=>{$a(me,{get size(){return"48"},volume:1,shadow:!0})};M(fe,me=>{n(p)==="VOLUME"&&me(ve)})}S(R);var X=k(R,2);{var N=me=>{var ue=Fw(),Re=C(ue,!0);S(ue),O(()=>he(Re,n(v))),$(me,ue)};M(X,me=>{n(v)&&me(N)})}O(()=>De(R,"data-type",n(p))),$(I,T)};M(_,I=>{!n(s)&&n(p)&&I(w)})}S(b),O(I=>y=ie(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(f)})]),$(t,b),F(),o()}var Ww=(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}},Kw=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},Qw=L('<div tabindex="0" role="button"><div class="button-block s-s" aria-hidden="true"><div class="button-row s-s"><div class="button button-up s-s"><!></div> <div class="button button-right s-s"><!></div></div> <div class="button-row s-s"><div class="button button-left s-s"><!></div> <div class="button button-down s-s"><!></div></div></div></div>'),qw={hash:"s-s",code:".immersive-controls.s-s{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-s{left:20px;top:50px}.button-block.s-s{height:40px;margin:auto;transform:rotate(45deg);width:40px}.button-row.s-s{display:flex;flex-direction:row;position:relative}.button.s-s{cursor:pointer;height:20px;text-align:center;width:20px}.button.s-s svg{opacity:.7;transition:opacity .2s linear}.button.button-up.s-s svg{transform:rotate(-45deg) translate(-1px,-1px)}.button.button-right.s-s svg{transform:rotate(45deg) translate(1px,-1px)}.button.button-down.s-s svg{transform:rotate(135deg) translate(1px,-3px)}.button.button-left.s-s svg{transform:rotate(-135deg) translate(-1px,-3px)}.button.s-s:hover svg{opacity:1}"};function Dc(t,e){B(e,!0),Q(t,qw);let i=g(e,"isShifted",3,!1),o=xe(),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),f=q("aria_label_spherical_control");var p=Qw();let v;p.__keydown=[Ww,r,a,l,s,d],p.__keyup=[Kw,r,u];var b=C(p),y=C(b),_=C(y);_.__mousedown=a,_.__mouseup=u;var w=C(_);Nr(w,{direction:"up",useBtnColor:!0}),S(_);var I=k(_,2);I.__mousedown=d,I.__mouseup=u;var T=C(I);Nr(T,{direction:"up",useBtnColor:!0}),S(I),S(y);var R=k(y,2),A=C(R);A.__mousedown=s,A.__mouseup=u;var P=C(A);Nr(P,{direction:"up",useBtnColor:!0}),S(A);var E=k(A,2);E.__mousedown=l,E.__mouseup=u;var z=C(E);Nr(z,{direction:"up",useBtnColor:!0}),S(E),S(R),S(b),S(p),O(U=>{v=ie(p,1,"immersive-controls s-s",null,v,U),De(p,"aria-label",f)},[()=>({"m-shifted":i()})]),vt("mouseleave",_,u),vt("mouseleave",I,u),vt("mouseleave",A,u),vt("mouseleave",E,u),$(t,p),F()}Je(["keydown","keyup","mousedown","mouseup"]);var Xs=require("@vkontakte/videoplayer-shared/es2015");var Jb=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var xp=class{constructor(){this.flickeringTimeout=Jb(1e3);this.subscriptions=new Xs.Subscription;this.isAuto=!1;this.isLive=!1;this.captions$=new Xs.ValueSubject([]);this.captionsPrepared$=new Xs.ValueSubject([])}subscribe(){return this.subscriptions.add(this.captions$.pipe((0,Xs.filter)(()=>this.isEnabled()),(0,Xs.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 Gw=L('<span class="caption-line s-c"><span class="caption-segment s-c"> </span></span>'),Yw=L('<span class="caption-line s-c"><span class="caption-segment s-c"></span></span>'),jw=L('<span class="caption-line s-c"><span class="caption-segment s-c"> </span></span>'),Xw=L('<div><span class="caption s-c"><!></span></div>'),Zw=L("<div><!></div>"),Jw={hash:"s-c",code:".subtitles-container.s-c{height:100%;left:0;pointer-events:none;position:absolute;top:0;transition:transform var(--controls-transition-duration);width:100%}.subtitles-container.shifted.s-c{transform:translateY(calc(var(--controls-height)*-1))}.subtitles-container.preview-track-active.s-c{transform:translateY(calc(var(--preview-track-height)*-1))}.preview-track-active.s-c .subtitles-caption:where(.s-c){bottom:var(--preview-track-controls-top-offset)}.subtitles-caption.s-c{bottom:4%;display:flex;justify-content:center;left:4%;position:absolute;right:4%}.subtitles-caption.mobile.s-c{bottom:8%}.subtitles-container.auto.s-c .subtitles-caption:where(.s-c){left:var(--subtitles-caption-margin);right:var(--subtitles-caption-margin)}.caption.s-c{background:rgba(0,0,0,.4);border-radius:4px;display:block;overflow-wrap:normal;padding:4px 8px}.subtitles-container.auto.s-c .caption:where(.s-c){width:100%}.caption-line.s-c{display:block;text-align:center}.subtitles-container.auto.s-c .caption-line:where(.s-c){text-align:left}.caption-segment.s-c{color:var(--white);display:inline-block;font-size:13px;line-height:1.2;white-space:pre-wrap}"};function dl(t,e){B(e,!0),Q(t,Jw);let[i,o]=Be(),r=()=>x(v,"$currentSubtitle$",i),a=()=>x(y,"$isLive$",i),l=()=>x(_,"$isFullscreen",i),d=()=>x(w,"$previewTrackActive",i),s=()=>x(b,"$isAutoSubtitleCaptionVisible$",i),u=g(e,"isMobile",3,!1),f=xe(),p=Vt(),v=f.state.currentSubtitle$,b=f.state.isAutoSubtitleCaptionVisible$,y=f.state.isLive$,_=f.ui.isFullscreen,w=f.ui.previewTrackActive,I=m(()=>!!r().isAuto),T=m(()=>!!a()),R=m(()=>e.playerSize.width*.02),A=m(()=>u()&&!l()||n(R)<=p.minSubtitlesFontSize?p.minSubtitlesFontSize:n(R)),P=K(null);Fe(()=>{var J,oe,de;(J=n(P))==null||J.setIsAuto(n(I)),(oe=n(P))==null||oe.setIsLive(n(T)),(de=n(P))==null||de.setCaptions(e.captions)});let E=K(ri([[]]));Mt(()=>{D(P,new xp().subscribe(),!0);let J=n(P).captionsPrepared$.subscribe(oe=>{D(E,oe,!0)});return()=>{var oe;(oe=n(P))==null||oe.destroy(),J.unsubscribe()}}),Mt(()=>{if(n(I)){let J=window.setTimeout(()=>{b.set(!1)},p.autoSubtitlesTimeout);return()=>{window.clearTimeout(J)}}else b.set(!1)});let z=m(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var U=Zw();let W;var Y=C(U);{var te=J=>{var oe=Xw();let de;var ae=C(oe),pe=C(ae);{var ee=Ee=>{var ce=Gw(),Qe=C(ce),fe=C(Qe,!0);S(Qe),S(ce),O(ve=>{var X;Ke(Qe,`font-size: ${(X=n(A))!=null?X:""}px`),he(fe,ve)},[()=>q("subtitles_auto_caption")]),$(Ee,ce)},$e=(Ee,ce)=>{{var Qe=ve=>{var X=Ve(),N=le(X);wi(N,17,()=>n(E),zd,(me,ue)=>{var Re=Yw(),et=C(Re);wi(et,21,()=>n(ue),({value:Ae,timeAppeared:j})=>j,(Ae,j)=>{let ne=()=>n(j).value,Se=()=>n(j).timeAppeared;var Le=Ve(),ze=le(Le);{var Ce=we=>{var He=Ss();O(()=>he(He,ne())),$(we,He)};M(ze,we=>{(!Se()||Se()<=e.position)&&we(Ce)})}$(Ae,Le)}),S(et),S(Re),O(()=>{var Ae;return Ke(et,`font-size: ${(Ae=n(A))!=null?Ae:""}px`)}),$(me,Re)}),$(ve,X)},fe=ve=>{var X=Ve(),N=le(X);wi(N,17,()=>e.captions,({value:me})=>me,(me,ue)=>{let Re=()=>n(ue).value;var et=jw(),Ae=C(et),j=C(Ae,!0);S(Ae),S(et),O(()=>{var ne;Ke(Ae,`font-size: ${(ne=n(A))!=null?ne:""}px`),he(j,Re())}),$(me,et)}),$(ve,X)};M(Ee,ve=>{var X;n(I)&&((X=n(E))!=null&&X.length)?ve(Qe):ve(fe,!1)},ce)}};M(pe,Ee=>{n(I)&&s()?Ee(ee):Ee($e,!1)})}S(ae),S(oe),O(Ee=>{var ce;de=ie(oe,1,"subtitles-caption s-c",null,de,Ee),Ke(oe,`--subtitles-caption-margin: ${(ce=n(z))!=null?ce:""}%`)},[()=>({mobile:u()})]),$(J,oe)};M(Y,J=>{var oe;(e.captions.length||(oe=n(E))!=null&&oe.length)&&J(te)})}S(U),O(J=>W=ie(U,1,"subtitles-container s-c",null,W,J),[()=>({shifted:e.shifted,"preview-track-active":d(),auto:n(I)&&!n(T)&&!s()})]),$(t,U),F(),o()}var e$=require("@vkontakte/videoplayer-core/es2015");var eS=L('<div class="text s-v"> </div>'),tS=L('<div><div class="icon_wrapper s-v"><!></div> <!></div>'),iS={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 Oc(t,e){B(e,!0),Q(t,iS);let i=g(e,"chromecastDeviceName",3,"chromecastDeviceName"),o=Vt();var r=tS();let a;r.__contextmenu=function(...f){var p;(p=e.onContextMenu)==null||p.apply(this,f)},r.__click=function(...f){var p;(p=e.onClick)==null||p.apply(this,f)},r.__dblclick=function(...f){var p;(p=e.onDblClick)==null||p.apply(this,f)};var l=C(r),d=C(l);_c(d,{get size(){return"48"},get iconState(){return e$.ChromecastState.CONNECTED}}),S(l);var s=k(l,2);{var u=f=>{var p=eS(),v=C(p);S(p),O(()=>{var b;return he(v,`Видео воспроизводится на ${(b=i())!=null?b:""}`)}),$(f,p)};M(s,f=>{i()&&f(u)})}S(r),O(f=>{a=ie(r,1,"wrapper s-v",null,a,f),Ke(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),F()}Je(["contextmenu","click","dblclick"]);var oS=ke('<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 Lv(t){Xe(t,{width:"200",height:"200",viewBox:"460 190 130 90",testId:"error-icon",children:(e,i)=>{var o=oS();$(e,o)},$$slots:{default:!0}})}var nS=L('<div class="container s-5"><!></div>'),rS={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 cl(t){Q(t,rS);var e=nS(),i=C(e);Lv(i,{}),S(e),$(t,e)}var sS=L('<div class="playButton s-e" tabindex="0" role="button"><div class="playButtonBackground s-e"></div> <!></div>'),aS=L('<div data-testid="unstarted-thumb"><!></div>'),lS={hash:"s-e",code:".container.s-e{background-position:50%;background-repeat:no-repeat;background-size:contain;bottom:0;cursor:pointer;left:0;position:absolute;right:0;top:0;transition:opacity .2s,visibility .2s;will-change:opacity}.container.hidden.s-e{opacity:0;visibility:hidden}.container.bgCover.s-e{background-size:cover}.playButton.s-e{align-items:center;display:flex;height:var(--big-play-size);justify-content:center;margin:auto;width:var(--big-play-size)}.playButton.s-e,.playButtonBackground.s-e{bottom:0;left:0;position:absolute;right:0;top:0}.playButtonBackground.s-e{background-color:var(--big-play-bg-color);border-radius:var(--big-play-radius);transition:background .2s,transform .2s;transition-timing-function:ease-out;will-change:background,transform}.container.s-e:hover .playButtonBackground:where(.s-e){background-color:var(--big-play-hover-bg-color);transform:scale(1.15)}.playButton.s-e svg{position:relative}"};function ul(t,e){B(e,!0),Q(t,lS);let i=g(e,"iconVisible",3,!0),o=xe(),r=Vt(),a=o.ui.startedByKeyboard$,l=q("tooltip_play"),d=b=>{var _;let y=b.code;["Enter","Space"].includes(y)&&(b.stopPropagation(),b.preventDefault(),a.set(!0),(_=e.startVideo)==null||_.call(e))},s=b=>{var y,_;b.stopPropagation(),(y=e.startVideo)==null||y.call(e),(_=e.onClick)==null||_.call(e,b)};var u=aS();let f;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=sS();y.__keydown=d;var _=k(C(y),2);Nn(_,{get size(){return"48"}}),S(y),O(()=>De(y,"aria-label",l)),$(b,y)};M(p,b=>{i()&&b(v)})}return S(u),O(b=>{f=ie(u,1,"container s-e",null,f,b),Ke(u,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:r.features.previewNoEmptySpace})]),$(t,u),F({handlePressKey:d,handleClick:s})}Je(["click","contextmenu","keydown"]);var dS=L('<span class="text s-x"> </span>'),cS=(t,e)=>{var i;return(i=e.onTitleClicked)==null?void 0:i.call(e)},uS=L('<a target="_blank" class="link s-x"><!></a>'),pS=(t,e)=>e.onTitleClicked(),fS=L("<button><!></button>"),mS=L('<div data-testid="video_title"><!></div>'),vS={hash:"s-x",code:".title.s-x{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-x,.title.s-x{color:var(--white)}.link.s-x{pointer-events:auto;text-decoration:none}.link.s-x:hover{text-decoration:underline}.text.s-x{pointer-events:auto}.size-sm.s-x{font-size:14px;font-weight:500;line-height:18px}.hidden.s-x{opacity:0;transform:translateY(calc(var(--controls-gradient-height)*-1));visibility:hidden}"};function Mv(t,e){B(e,!0),Q(t,vS);let i=b=>{var y=dS(),_=C(y,!0);S(y),ot(y,w=>l(w),()=>l()),O(()=>he(_,o())),vt("mouseenter",y,function(...w){var I;(I=e.onMouseEnter)==null||I.apply(this,w)}),vt("mouseleave",y,function(...w){var I;(I=e.onMouseLeave)==null||I.apply(this,w)}),$(b,y)},o=g(e,"title",3,""),r=g(e,"isHidden",3,!1),a=g(e,"size",3,"md"),l=g(e,"ref",15),d=K(void 0);Mt(()=>{var y;requestAnimationFrame(()=>{var _;(_=e.onVisibilityChanged)==null||_.call(e,!0)});function b(_){var w;_.propertyName==="transform"&&((w=e.onVisibilityChanged)==null||w.call(e,!r()))}return(y=n(d))==null||y.addEventListener("transitionend",b),()=>{var _;return(_=n(d))==null?void 0:_.removeEventListener("transitionend",b)}});var s=mS();let u;var f=C(s);{var p=b=>{var y=uS();y.__click=[cS,e];var _=C(y);i(_),S(y),O(()=>De(y,"href",e.titleLinkHref)),$(b,y)},v=(b,y)=>{{var _=I=>{var T=fS();T.__click=[pS,e];var R=C(T);i(R),S(T),$(I,T)},w=I=>{i(I)};M(b,I=>{e.onTitleClicked?I(_):I(w,!1)},y)}};M(f,b=>{e.titleLinkHref?b(p):b(v,!1)})}S(s),ot(s,b=>D(d,b),()=>n(d)),O(b=>u=ie(s,1,`title size-${a()}`,"s-x",u,b),[()=>({hidden:r()})]),$(t,s),F()}Je(["click"]);var t$=require("@vkontakte/videoplayer-shared/es2015");var gS=L('<div class="timer__cell cell s-1b"><span class="cell__value s-1b"> </span> <span class="cell__unit s-1b"> </span></div> <span class="timer__points s-1b"> </span>',1),hS=L('<div class="timer__cell cell s-1b"><span class="cell__value s-1b"> </span> <span class="cell__unit s-1b"> </span></div> <span class="timer__points s-1b"> </span>',1),_S=L('<div class="timer__cell cell s-1b"><span class="cell__value s-1b"> </span> <span class="cell__unit s-1b"> </span></div> <span class="timer__points s-1b"> </span>',1),bS=L('<div class="timer__cell cell s-1b"><span class="cell__value s-1b"> </span> <span class="cell__unit s-1b"> </span></div>'),$S=L("<div><!> <!> <!> <!></div>"),yS={hash:"s-1b",code:".timer__container.s-1b{align-items:flex-start;display:flex;justify-content:center}.cell.s-1b{align-items:center;display:flex;flex-direction:column}.cell__value.s-1b{font-size:48px;font-weight:600;line-height:1.2}.small.s-1b .cell__value:where(.s-1b){font-size:24px}.cell__unit.s-1b{font-size:14px;font-weight:400;line-height:1.2}.small.s-1b .cell__unit:where(.s-1b){font-size:12px}.timer__points.s-1b{display:inline-block;font-size:42px;font-weight:600;line-height:1.2;margin:0 8px}.small.s-1b .timer__points:where(.s-1b){font-size:20px}"};function Vv(t,e){B(e,!0),Q(t,yS);let i=K(""),o=K(""),r=K(""),a=K(""),l,d=32,s=d/2,u=U=>String(U).padStart(2,"0"),f=U=>Math.max(U.length,1),p=U=>`${(e.isSmallSize?s:d)*f(U)}px`,v=U=>{let W=Math.floor(U/86400);W&&(U-=W*86400,D(i,u(W),!0));let Y=Math.floor(U/3600);D(o,u(Y),!0);let te=Math.floor(U/60)%60;D(r,u(te),!0);let J=U%60;D(a,u(J),!0)},b=()=>{let U=Math.floor(Date.now()/1e3),W=e.startTime-U;v(W),W>=1?l=requestAnimationFrame(b):e.onTimerOver()};Mt(()=>{l=requestAnimationFrame(b)}),pn(()=>{cancelAnimationFrame(l)});var y=$S();let _;var w=C(y);{var I=U=>{var W=gS(),Y=le(W);let te;var J=C(Y),oe=C(J,!0);S(J);var de=k(J,2),ae=C(de,!0);S(de),S(Y);var pe=k(Y,2),ee=C(pe,!0);S(pe),O(($e,Ee,ce)=>{te=Ke(Y,"",te,{width:$e}),he(oe,n(i)),he(ae,Ee),he(ee,ce)},[()=>p(n(i)),()=>q("waiting_live_day_value"),()=>q("waiting_live_colon")]),$(U,W)};M(w,U=>{n(i)&&U(I)})}var T=k(w,2);{var R=U=>{var W=hS(),Y=le(W);let te;var J=C(Y),oe=C(J,!0);S(J);var de=k(J,2),ae=C(de,!0);S(de),S(Y);var pe=k(Y,2),ee=C(pe,!0);S(pe),O(($e,Ee,ce)=>{te=Ke(Y,"",te,{width:$e}),he(oe,n(o)),he(ae,Ee),he(ee,ce)},[()=>p(n(o)),()=>q("waiting_live_hour_value"),()=>q("waiting_live_colon")]),$(U,W)};M(T,U=>{n(o)&&U(R)})}var A=k(T,2);{var P=U=>{var W=_S(),Y=le(W);let te;var J=C(Y),oe=C(J,!0);S(J);var de=k(J,2),ae=C(de,!0);S(de),S(Y);var pe=k(Y,2),ee=C(pe,!0);S(pe),O(($e,Ee,ce)=>{te=Ke(Y,"",te,{width:$e}),he(oe,n(r)),he(ae,Ee),he(ee,ce)},[()=>p(n(r)),()=>q("waiting_live_minute_value"),()=>q("waiting_live_colon")]),$(U,W)};M(A,U=>{n(r)&&U(P)})}var E=k(A,2);{var z=U=>{var W=bS();let Y;var te=C(W),J=C(te,!0);S(te);var oe=k(te,2),de=C(oe,!0);S(oe),S(W),O((ae,pe)=>{Y=Ke(W,"",Y,{width:ae}),he(J,n(a)),he(de,pe)},[()=>p(n(a)),()=>q("waiting_live_second_value")]),$(U,W)};M(E,U=>{n(a)&&U(z)})}S(y),O(U=>_=ie(y,1,"timer__container s-1b",null,_,U),[()=>({small:e.isSmallSize})]),$(t,y),F()}var xS=L('<div class="waiting s-r"><span> </span></div>'),wS=L('<div class="upcoming-timer timer s-r"><span> </span> <!></div>'),SS=L('<div class="waiting-container s-r"><!></div>'),CS={hash:"s-r",code:'.waiting-container.s-r{background-color:var(--black);background-position:50%;background-repeat:no-repeat;background-size:cover;white-space:nowrap}.waiting-container.s-r,.waiting-container.s-r:before{height:100%;left:0;position:absolute;top:0;width:100%}.waiting-container.s-r:before{backdrop-filter:blur(15px);background-color:rgba(0,0,0,.56);content:"";z-index:1}.waiting.s-r{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-r{font-size:20px;font-weight:600;line-height:1.2}.upcoming-timer.s-r{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:2}.timer.s-r{align-items:center;display:flex;flex-direction:column;justify-content:center}.timer__title.s-r{display:inline-block;font-size:20px;font-weight:600;line-height:1.2;margin-bottom:12px;vertical-align:middle}.small.s-r{font-size:15px}.medium.s-r{font-size:17px}'};function Nc(t,e){B(e,!0),Q(t,CS);let i=g(e,"startTime",3,0),o=m(()=>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=m(()=>{var w,I;return((w=n(d))!=null?w:1/0)<=509||((I=n(s))!=null?I:1/0)<=320}),f=m(()=>{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,t$.throttleFn)(()=>{cancelAnimationFrame(l),l=requestAnimationFrame(()=>{let w={type:n(o)?"expired":"default",size:n(u)?"s":n(f)?"m":"l"},I=n(o)?n(r):n(a);e.onUpcomingLiveViewStateChanged(w,I)})},300):void 0;Fe(()=>{n(s),n(d),n(o),p==null||p()}),pn(()=>{if(cancelAnimationFrame(l),p==null||p.cancel(),e.onUpcomingLiveViewStateChanged){let w={type:n(o)?"expired":"default",size:n(u)?"s":n(f)?"m":"l"};e.onUpcomingLiveViewStateChanged(w)}});var v=SS();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=xS(),T=C(I);let R;var A=C(T,!0);S(T),S(I),ot(I,P=>D(r,P),()=>n(r)),O((P,E)=>{R=ie(T,1,"waiting__title s-r",null,R,P),he(A,E)},[()=>({medium:n(f),small:n(u)}),()=>q("waiting_live_upcoming_title")]),$(w,I)},_=w=>{var I=wS(),T=C(I);let R;var A=C(T,!0);S(T);var P=k(T,2);let E=m(()=>n(u)||n(f)),z=m(()=>i()||0);Vv(P,{get isSmallSize(){return n(E)},get startTime(){return n(z)},onTimerOver:()=>D(o,!0)}),S(I),ot(I,U=>D(a,U),()=>n(a)),O((U,W)=>{R=ie(T,1,"timer__title s-r",null,R,U),he(A,W)},[()=>({medium:n(f),small:n(u)}),()=>q("waiting_live_timer_title")]),$(w,I)};M(b,w=>{n(o)?w(y):w(_,!1)})}S(v),O(()=>Ke(v,`background-image: url(${e.thumbUrl})`)),Dn(v,"clientWidth",w=>D(d,w)),Dn(v,"clientHeight",w=>D(s,w)),$(t,v),F()}Je(["contextmenu","click"]);var TS=L('<div class="waiting-container s-u"><div class="waiting-caption s-u"><!> <p class="waiting-title s-u"> </p></div></div>'),IS={hash:"s-u",code:'.waiting-container.s-u{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-u,.waiting-container.s-u:before{height:100%;left:0;position:absolute;top:0;width:100%}.waiting-container.s-u:before{backdrop-filter:blur(10px);background-color:rgba(0,0,0,.4);content:""}.waiting-caption.s-u{align-items:center;display:flex;flex-direction:column;position:relative}.waiting-title.s-u{font-size:20px;font-weight:400;line-height:1.2;margin:0;padding:20px;text-align:center}'};function pl(t,e){B(e,!0),Q(t,IS);let i=g(e,"thumbUrl",3,""),o={recover:q("waiting_live_recover_title"),record:q("waiting_record_title")},r=m(()=>o[e.kind]||"");var a=TS();a.__contextmenu=function(...f){var p;(p=e.onContextMenu)==null||p.apply(this,f)},a.__click=function(...f){var p;(p=e.onClick)==null||p.apply(this,f)};var l=C(a),d=C(l);Xa(d,{style:"position: static; transform: translate(0, 0)"});var s=k(d,2),u=C(s,!0);S(s),S(l),S(a),O(()=>{Ke(a,`background-image: url('${i()}')`),he(u,n(r))}),$(t,a),F()}Je(["contextmenu","click"]);var ES=ke('<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 Rv(t){Xe(t,{width:"16",height:"16",testId:"check-mark-icon",children:(e,i)=>{var o=ES();$(e,o)},$$slots:{default:!0}})}var PS=L('<div class="select-icon s-1w"><!></div>'),kS={hash:"s-1w",code:".select-icon.s-1w{margin-right:auto;opacity:.9;padding-right:12px;position:relative;top:3px}"};function Bc(t){Q(t,kS);var e=PS(),i=C(e);Rv(i,{}),S(e),$(t,e)}var AS=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},LS=(t,e)=>{jl(t,()=>e.item.selectItem(e.item.value))},MS=L("<p> </p>"),VS=L('<p class="sublabel s-1t"> </p>'),RS=L('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),DS={hash:"s-1t",code:".menu-item-value.s-1t{align-items:end;display:flex;flex-direction:column;min-width:0}.menu-item-value[data-selected=false].s-1t{--select-icon-width:16px;--icon-padding:12px;margin-left:calc(var(--icon-padding) + var(--select-icon-width))}.label.s-1t,.sublabel.s-1t{max-width:100%;overflow:hidden;text-overflow:ellipsis}.sublabel.s-1t{opacity:.5}"};function Dv(t,e){B(e,!0),Q(t,DS);let i=g(e,"isMobile",3,!1);var o=RS();let r;o.__click=[AS,e],o.__keydown=[LS,e];var a=C(o);{var l=y=>{Bc(y,{})};M(a,y=>{e.item.selected&&y(l)})}var d=k(a,2);let s;var u=C(d);{var f=y=>{var _=Ve(),w=le(_);Ui(w,()=>e.item.valueComponent,(I,T)=>{T(I,ns(()=>{var R;return(R=e.item.valueComponentParams)!=null?R:{}}))}),$(y,_)},p=y=>{var _=MS();let w;var I=C(_,!0);S(_),O(T=>{var R;w=ie(_,1,"label s-1t",null,w,T),he(I,(R=e.item.label)!=null?R:e.item.value)},[()=>({mobile:i()})]),$(y,_)};M(u,y=>{e.item.valueComponent?y(f):y(p,!1)})}var v=k(u,2);{var b=y=>{var _=VS(),w=C(_,!0);S(_),O(()=>he(w,e.item.sublabel)),$(y,_)};M(v,y=>{e.item.sublabel&&y(b)})}S(d),S(o),O((y,_,w)=>{var I;r=ie(o,1,"item",null,r,y),De(o,"data-value",(I=e.item.dataValue)!=null?I:e.item.value),De(o,"aria-label",_),De(o,"data-testid",e.item.dataTestid),s=ie(d,1,"menu-item-value s-1t",null,s,w),De(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>{var y,_;return(_=(y=e.item.ariaLabel)!=null?y:e.item.label)!=null?_:e.item.value.toString()},()=>({"submenu-value-mobile":i()})]),$(t,o),F()}Je(["click","keydown"]);var OS=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function Ov(t,e){B(e,!0);let i=g(e,"isMobile",3,!1),o=g(e,"refMenuItems",15),r=m(()=>()=>e.openSubMenuList(e.item.children)),a=m(()=>_=>Zu(_,n(r)));var l=OS();let d;l.__click=function(..._){var w;(w=n(r))==null||w.apply(this,_)},l.__keydown=function(..._){var w;(w=n(a))==null||w.apply(this,_)};var s=C(l);{var u=_=>{Bc(_,{})};M(s,_=>{e.item.selected&&_(u)})}var f=k(s,2);let p;var v=C(f);{var b=_=>{var w=Ve();let I=m(()=>e.item.valueComponent);var T=le(w);Ui(T,()=>n(I),(R,A)=>{A(R,ns(()=>{var P;return(P=e.item.valueComponentParams)!=null?P:{}}))}),$(_,w)},y=_=>{var w=Ss();O(()=>he(w,e.item.label)),$(_,w)};M(v,_=>{e.item.valueComponent?_(b):_(y,!1)})}S(f),S(l),ot(l,_=>o(o()[e.item.id]=_,!0),()=>{var _;return(_=o())==null?void 0:_[e.item.id]}),O((_,w)=>{var I;d=ie(l,1,"item",null,d,_),De(l,"aria-label",(I=e.item.ariaLabel)!=null?I:e.item.label),De(l,"data-testid",e.item.id),p=ie(f,1,"menu-item-value",null,p,w)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),$(t,l),F()}Je(["click","keydown"]);var ls={"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 BS=(t,e)=>{mb(t,e.returnFromSubMenu,e.closeSettingsMenu)},FS=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},HS=(t,e)=>{ac(t)&&(Br(t),e.returnFromSubMenu())},US=L('<div><ul role="menu"><li role="menuitem" tabindex="0" data-testid="return-to-settings-menu"><!> <p class="title s-1m"> </p></li> <!></ul></div>'),zS={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 Bv(t,e){B(e,!0),Q(t,zS);let[i,o]=Be(),r=()=>x(p,"$isFullscreen",i),a=()=>x(v,"$playerSize",i),l=g(e,"isMobile",3,!1),d=g(e,"playerControlsHeight",3,0),s=g(e,"ariaLabelReturnFromSubMenu",19,()=>q("aria_label_submenu_back")),u=g(e,"listRef",15);Mt(()=>{let J=e.items.findIndex(oe=>oe.selected);u().children[J+1].focus()});let f=xe(),p=f.ui.isFullscreen,v=f.ui.playerSize,b=K(void 0),y=K(0),_=K(0),w=m(()=>l()&&r()?`max-height: ${Math.round(a().height*.6)}px`:l()?"":`max-height: ${a().height-32-n(_)-d()}px; overflow: auto;`),I=m(()=>Math.max(e.minWidth,n(y)));var T=US();let R;var A=C(T);let P;A.__keydown=[BS,e];var E=C(A);let z;E.__click=[FS,e],E.__keydown=[HS,e];var U=C(E);Nr(U,{direction:"left"});var W=k(U,2),Y=C(W,!0);S(W),S(E),ot(E,J=>D(b,J),()=>n(b));var te=k(E,2);wi(te,17,()=>e.items,zd,(J,oe)=>{var de=Ve(),ae=le(de);{var pe=$e=>{Dv($e,{get item(){return n(oe)},get isMobile(){return l()}})},ee=($e,Ee)=>{{var ce=Qe=>{Ov(Qe,{get isMobile(){return l()},get item(){return n(oe)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};M($e,Qe=>{n(oe).type==="OPEN_SUB_MENU"&&Qe(ce)},Ee)}};M(ae,$e=>{n(oe).type==="SELECT_VALUE"?$e(pe):$e(ee,!1)})}$(J,de)}),S(A),ot(A,J=>u(J),()=>u()),S(T),O((J,oe,de)=>{R=ie(T,1,"sub-menu menu s-1m",null,R,J),De(T,"data-testid",`${e.id}-sub-menu`),Ke(T,`min-width: ${n(I)}px`),P=ie(A,1,"items s-1m",null,P,oe),Ke(A,n(w)),z=ie(E,1,"item header back s-1m",null,z,de),De(E,"aria-label",s()),he(Y,e.title)},[()=>({desktop:!l(),mobile:l()}),()=>({mobile:l()}),()=>({mobile:l()})]),Dn(E,"clientWidth",J=>D(y,J)),Dn(E,"clientHeight",J=>D(_,J)),$(t,T),F(),o()}Je(["keydown","click"]);var o$=require("@vkontakte/videoplayer-shared/es2015");var WS=(t,e)=>Zu(t,e()),KS=(t,e)=>{t.stopPropagation(),e()()},QS=L('<div class="value s-1l"> </div>'),qS=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),GS={hash:"s-1l",code:".value.s-1l{opacity:.7;overflow:hidden;position:relative;text-overflow:ellipsis}"};function Fv(t,e){B(e,!0),Q(t,GS);let i=g(e,"isMobile",3,!1),o=g(e,"onClick",3,o$.noop),r=g(e,"valueComponent",3,void 0),a=g(e,"iconProps",19,()=>({})),l=g(e,"ref",15);var d=qS();let s;d.__click=[KS,o],d.__keydown=[WS,o];var u=C(d),f=C(u);{var p=T=>{rl(T,{get icon(){return e.icon}})},v=T=>{var R=Ve();let A=m(()=>e.icon);var P=le(R);Ui(P,()=>n(A),(E,z)=>{z(E,ns(a))}),$(T,R)};M(f,T=>{typeof e.icon=="string"?T(p):T(v,!1)})}S(u);var b=k(u,2),y=C(b,!0);S(b);var _=k(b,2);{var w=T=>{var R=Ve();let A=m(r);var P=le(R);Ui(P,()=>n(A),(E,z)=>{z(E,{})}),$(T,R)},I=T=>{var R=QS(),A=C(R,!0);S(R),O(()=>he(A,e.value)),$(T,R)};M(_,T=>{r()?T(w):T(I,!1)})}S(d),ot(d,T=>l(T),()=>l()),O(T=>{s=ie(d,1,"item",null,s,T),De(d,"aria-label",e.ariaLabel),De(d,"data-testid",e.id),he(y,e.label)},[()=>({mobile:i()})]),$(t,d),F()}Je(["click","keydown"]);var Hv=require("@vkontakte/videoplayer-shared/es2015");var YS=(t,e)=>{jl(t,()=>e())},jS=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),XS=L('<img class="icon" aria-hidden="true"/>'),ZS=L('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label s-1n"> </div></li>'),JS={hash:"s-1n",code:".label.s-1n{overflow:hidden;text-overflow:ellipsis}"};function Uv(t,e){B(e,!0),Q(t,JS);let i=g(e,"isMobile",3,!1),o=g(e,"onClick",3,Hv.noop),r=g(e,"closeSettings",3,Hv.noop),a=K(!1),l=()=>{D(a,!0)},d=w=>{w==null||w.stopPropagation(),o()(),r()()};var s=ZS();let u;s.__click=d,s.__keydown=[YS,d];var f=C(s),p=C(f);{var v=w=>{var I=Ve(),T=le(I);{var R=P=>{var E=jS();$(P,E)},A=P=>{var E=XS();O(()=>De(E,"src",e.icon)),vt("error",E,l),Ha(E),$(P,E)};M(T,P=>{n(a)?P(R):P(A,!1)})}$(w,I)},b=w=>{var I=Ve();let T=m(()=>e.icon);var R=le(I);Ui(R,()=>n(T),(A,P)=>{P(A,{})}),$(w,I)};M(p,w=>{typeof e.icon=="string"?w(v):w(b,!1)})}S(f);var y=k(f,2),_=C(y,!0);S(y),S(s),O(w=>{var I;u=ie(s,1,"item",null,u,w),De(s,"aria-label",(I=e.ariaLabel)!=null?I:e.label),De(s,"data-testid",e.id),he(_,e.label)},[()=>({mobile:i()})]),$(t,s),F()}Je(["click","keydown"]);var n$=require("@vkontakte/videoplayer-shared/es2015");var eC=L('<div class="toggle_wrap s-1q"><div></div> <div class="toggle-label s-1q"></div></div>'),tC={hash:"s-1q",code:'.toggle_wrap.s-1q{cursor:pointer;font-size:12px;line-height:15px;min-height:15px;padding:0;user-select:none}.toggle.s-1q{background-color:var(--toggle-color-separator);border-radius:45px;cursor:pointer;float:right;height:9px;margin-top:3px;width:28px}.toggle.s-1q: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-1q:after{background-color:var(--toggle-color-on);left:13px}.toggle-label.s-1q{overflow:hidden}'};function zv(t,e){Q(t,tC);let i=g(e,"enabled",3,!1);var o=eC(),r=C(o);let a;Jt(2),S(o),O(l=>a=ie(r,1,"toggle s-1q",null,a,l),[()=>({on:i()})]),$(t,o)}var iC=(t,e,i)=>{vb(t,e(),o=>i()(o))},oC=(t,e,i)=>{t.stopPropagation(),e()(!i())},nC=L('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),rC=L('<li role="menuitem" tabindex="0"><!></li>');function Wv(t,e){B(e,!0);let i=g(e,"isMobile",3,!1),o=g(e,"onClick",3,n$.noop),r=g(e,"enabled",3,!1),a=g(e,"tooltipText",3,void 0),l=g(e,"maxTooltipWidth",3,void 0);var d=rC();let s;d.__click=[oC,o,r],d.__keydown=[iC,r,o];var u=C(d);Ja(u,{get content(){return a()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return l()},children:(f,p)=>{var v=nC();let b;var y=C(v),_=C(y);{var w=P=>{rl(P,{get icon(){return e.icon}})},I=P=>{var E=Ve();let z=m(()=>e.icon);var U=le(E);Ui(U,()=>n(z),(W,Y)=>{Y(W,{})}),$(P,E)};M(_,P=>{typeof e.icon=="string"?P(w):P(I,!1)})}S(y);var T=k(y,2),R=C(T,!0);S(T);var A=k(T,2);zv(A,{get enabled(){return r()}}),S(v),O(P=>{b=ie(v,1,"switch-wrapper",null,b,P),he(R,e.label)},[()=>({mobile:i()})]),$(f,v)},$$slots:{default:!0}}),S(d),O(f=>{var p;s=ie(d,1,"item switch-item",null,s,f),De(d,"aria-label",(p=e.ariaLabel)!=null?p:e.label),De(d,"data-testid",e.id)},[()=>({mobile:i()})]),$(t,d),F()}Je(["click","keydown"]);var Hc=require("@vkontakte/videoplayer-shared/es2015");var r$=()=>{let t=K(ri([])),e=m(()=>(n(t).length?n(t).at(-1):null)||null);return{get current(){return n(e)},pushSubMenu:i=>{n(t).push(i)},popSubMenu:()=>{D(t,n(t).slice(0,-1),!0)},popAllSubMenus:()=>{D(t,[],!0)}}};var s$=require("@vkontakte/videoplayer-shared/es2015");var sC=L('<div class="quality-icon s-1p"><!></div>'),aC=L('<div class="quality-label s-1p"><span> </span> <!></div>'),lC={hash:"s-1p",code:".quality-label.s-1p{position:relative}.quality.s-1p{font-size:13px;line-height:18px}.quality.sub.s-1p{opacity:.7}.quality-icon.s-1p{display:flex;padding-left:2px;position:absolute;right:0;top:0;transform:translateX(100%)}.quality-icon.s-1p svg{color:var(--blue-light)}"};function fl(t,e){B(e,!0),Q(t,lC);let i=g(e,"isSubCase",3,!1),o=m(()=>e.quality?(0,s$.getVideoQualityLabel)(e.quality):""),r=m(()=>np(e.quality));var a=aC(),l=C(a);let d;var s=C(l,!0);S(l);var u=k(l,2);{var f=p=>{var v=sC();let b=m(()=>n(r));var y=C(v);Ui(y,()=>n(b),(_,w)=>{w(_,{})}),S(v),O(()=>De(v,"data-testid",`${n(o)}-icon`)),$(p,v)};M(u,p=>{n(r)&&!e.isMobile&&p(f)})}S(a),O(p=>{d=ie(l,1,"s-1p",null,d,p),he(s,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),$(t,a),F()}var c$=require("@vkontakte/videoplayer-shared/es2015");var Kv=require("@vkontakte/videoplayer-core/es2015");var a$=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},l$=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=a$({quality:t,availableQualities:e});return i?t===Kv.VideoQuality.INVARIANT?q("auto_quality_invariant"):q("auto_quality",{actual:o}):o},d$=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===Kv.VideoQuality.INVARIANT?i:`${i}${a$({quality:t,availableQualities:e})}`:"...";var dC=L('<div class="menu-item-value-wrapper s-1r"><!></div>'),cC={hash:"s-1r",code:".menu-item-value-wrapper.s-1r{line-height:normal}"};function ld(t,e){B(e,!0),Q(t,cC);let[i,o]=Be(),r=()=>x(s,"$currentQuality$",i),a=()=>x(u,"$availableQualities$",i),l=()=>x(f,"$isMobile$",i),d=xe(),s=d.state.currentQuality$,u=d.state.availableQualities$,f=d.ui.isMobile,p=" · ",v=m(()=>e.prefix+(e.selected&&r()!==c$.VideoQuality.INVARIANT?p:"")),b=m(()=>d$({prefix:n(v),quality:r(),availableQualities:a(),onlyPrefix:!e.selected}));var y=dC(),_=C(y);let w=m(()=>e.selected?r():void 0);fl(_,{get quality(){return n(w)},get label(){return n(b)},get isMobile(){return l()},isSubCase:!0}),S(y),$(t,y),F(),o()}var uC=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")},pC={br:!0,span:!0},Qv=(t,e={})=>{var d,s,u,f,p,v,b;if(!t)return t;let i=Ye(Ye({},pC),e),o=Object.keys(i);if(!o.length)return t;let r=uC(o),a=[],l=0;for(let y of t.matchAll(r)){let _=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)||((f=y.groups)==null?void 0:f.keyi18nself)||"",{index:I}=y;if(!i[w]){a.push(t.slice(l,I)),l=I+_.length;continue}let T=(p=y.groups)!=null&&p.childrenhtml?Qv(y.groups.childrenhtml,i):"",R=(v=y.groups)!=null&&v.childrenhtml?_.replace(new RegExp((b=y.groups)==null?void 0:b.childrenhtml),()=>T||""):_;a.push(t.slice(l,I),R),l=I+_.length}return l===0?t:(a.push(t.slice(l)),a.join(""))};function Fc(t,e){B(e,!1);let i=g(e,"message",8),o=Qv(i());Jo();var r=Ve(),a=le(r);{var l=d=>{var s=Ve(),u=le(s);Wd(u,()=>o),$(d,s)};M(a,d=>{o&&d(l)})}$(t,r),F()}var fC=L('<p class="quality-applies sublabel s-1s"><!></p>'),mC={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 qv(t,e){B(e,!1),Q(t,mC),Jo();var i=fC(),o=C(i);let r=br(()=>q("quality_applience",{action:`<span>${q("quality_applience_action")}</span>`}));Fc(o,{get message(){return n(r)}}),S(i),$(t,i),F()}var p$=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"quality-other-settings",type:"OPEN_SUB_MENU",label:q("other_quality"),selected:o,valueComponent:ld,valueComponentParams:{prefix:q("other_quality"),selected:o},children:"quality-other-settings"}},Gv=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"quality-auto",type:"SELECT_VALUE",value:"auto",label:q("auto_quality_limit"),valueComponent:e?ld:void 0,valueComponentParams:{prefix:q("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),f$=()=>({id:"quality-appliance-settings",type:"OPEN_SUB_MENU",valueComponent:qv,bottomBordered:!0,children:"quality-appliance"}),Yv=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"quality-high",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:q("high_quality"),valueComponent:t?ld:void 0,valueComponentParams:{prefix:q("high_quality"),selected:i},sublabel:q("high_quality_description")}),jv=({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:q("traffic_saving_quality"),valueComponent:t?ld:void 0,valueComponentParams:{prefix:q("traffic_saving_quality"),selected:i},sublabel:q("traffic_saving_quality_description")});var wp=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),Sp=(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 q("audio_stream_display_language_label",{language:r,label:o});{let s=wp(t,d);return q("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=wp(t,d);return q("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=wp(t,d);return q("audio_stream_display_language_index",{language:r,index:s})}}let a=wp(t,e);return q("audio_stream_display_unknown",{index:a})};var vC={"quality-settings":t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:r}=t,a=[];return i&&a.push({handler:Gv,selected:e&&!o&&!r||!1}),a.push({handler:jv,selected:o},{handler:Yv,selected:r}),{title:q("submenu_quality"),id:"quality-settings",items:[f$(t),...a.map(({handler:l,selected:d})=>l({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),p$(t)]}},"quality-other-settings":({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"quality-other-settings",title:q("submenu_quality"),closeSettingsMenu:t,items:i.map(r=>({type:"SELECT_VALUE",value:r.value,valueComponent:fl,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:q("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:Gv,selected:((i=Ku())==null?void 0:i.type)==="auto_quality"},{handler:jv,selected:((o=Ku())==null?void 0:o.type)==="traffic_saving"},{handler:Yv,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:q("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:Sp(r,e)}))}),"playback-rate":({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"playback-rate",title:q("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:q("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i.value,selectItem:()=>e(i),selected:i.selected,label:i.displayValue,dataTestid:i.value===Fn?"sub_off":void 0}))})},m$=({subMenuId:t,context:e})=>t?[vC[t](e)]:[];var gC=ke('<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 Xv(t){Xe(t,{testId:"traffic-saving-icon",children:(e,i)=>{var o=gC();$(e,o)},$$slots:{default:!0}})}var hC=ke('<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 Zv(t){Xe(t,{width:"18",height:"15",children:(e,i)=>{var o=hC();$(e,o)},$$slots:{default:!0}})}var _C=ke('<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 Jv(t){Xe(t,{testId:"play-speed-icon",children:(e,i)=>{var o=_C();$(e,o)},$$slots:{default:!0}})}var bC=ke('<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 eg(t){Xe(t,{testId:"download-icon",children:(e,i)=>{var o=bC();$(e,o)},$$slots:{default:!0}})}var $C=ke('<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 tg(t){Xe(t,{testId:"report-icon",children:(e,i)=>{var o=$C();$(e,o)},$$slots:{default:!0}})}var yC=ke('<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 Cp(t){Xe(t,{children:(e,i)=>{var o=yC();$(e,o)},$$slots:{default:!0}})}var xC=ke('<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 ig(t){Xe(t,{testId:"info-icon",children:(e,i)=>{var o=xC();$(e,o)},$$slots:{default:!0}})}var wC=L('<div class="menu-item-value-wrapper s-1v"><!></div>'),SC={hash:"s-1v",code:".menu-item-value-wrapper.s-1v{line-height:normal}"};function og(t,e){B(e,!0),Q(t,SC);let[i,o]=Be(),r=()=>x(u,"$currentQuality$",i),a=()=>x(f,"$availableQualities$",i),l=()=>x(p,"$isAutoQualityEnabled$",i),d=()=>x(v,"$isMobile$",i),s=xe(),u=s.state.currentQuality$,f=s.state.availableQualities$,p=s.state.isAutoQualityEnabled$,v=s.ui.isMobile,b=m(()=>l$({quality:r(),availableQualities:a(),isAutoQualityEnabled:l()}));var y=wC(),_=C(y);fl(_,{get quality(){return r()},get label(){return n(b)},get isMobile(){return d()}}),S(y),$(t,y),F(),o()}var TC={"quality-settings":({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?q("auto_quality_option"):e)||"";return{id:"quality-settings",type:"OPEN_SUB_MENU",ariaLabel:q("aria_label_menu_quality",{actual:o}),icon:pc,label:q("menu_quality"),value:e,valueComponent:og,weight:ls["quality-settings"],children:i?"quality-settings":"quality-other-settings"}},"traffic-saving-switch":({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"traffic-saving-switch",weight:ls["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:q("aria_label_submenu_traffic_saving"),icon:Xv,label:q("menu_traffic_saving"),enabled:t,tooltipText:q("traffic_saving_helper_text"),maxTooltipWidth:175}),"audio-tracks-settings":({currentAudioStream:t,availableAudioStreams:e})=>{let i=Sp(t,e);return{id:"audio-tracks-settings",weight:ls["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:q("aria_label_menu_audio_languages",{actual:i}),icon:Zv,label:q("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:ls["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:q("aria_label_menu_rate",{actual:i}),icon:Jv,label:q("menu_playback_rate"),value:`${e}x`,children:"playback-rate"}},"subtitles-settings":({currentSubtitle:t})=>({id:"subtitles-settings",weight:ls["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:q("aria_label_menu_subtitle",{actual:t.displayValue}),icon:ba,iconProps:{type:"outline"},label:q("subtitles_caption"),value:t.displayValue,children:"subtitles"}),download:({onDownloadClick:t})=>({id:"download",weight:ls.download,type:"CLICK",onClick:t,label:q("download_video_caption"),ariaLabel:q("aria_label_menu_download"),icon:eg}),"show-support":({onReportProblemClick:t})=>({id:"show-support",weight:ls.report,type:"CLICK",onClick:t,label:q("menu_report"),ariaLabel:`${q("menu_report")}. ${q("aria_label_new_tab_alert")}`,icon:tg,isHiddenFor:["desktop"]}),"copy-data":({onCopyDataClick:t})=>({id:"copy-data",weight:ls["copy-data"],type:"CLICK",onClick:t,label:q("menu_copy_debug"),ariaLabel:q("menu_copy_debug"),icon:Cp,isHiddenFor:["desktop"]}),"save-trace-info":({onSaveTraceDataClick:t})=>({id:"save-trace-info",weight:ls["save-trace-info"],type:"CLICK",onClick:t,label:q("menu_save_debug"),ariaLabel:q("menu_save_debug"),icon:Cp,isHiddenFor:["desktop"]}),"debug-info":({toggleShowDebugInfo:t})=>({id:"debug-info",weight:ls["debug-info"],type:"CLICK",onClick:t,ariaLabel:q("aria_label_menu_debug_overlay"),label:q("menu_debug_overlay"),icon:ig,isHiddenFor:["desktop"]})},v$=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(r=>TC[r](e)),...i.map(r=>ti(Ye({},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(Ya)};var EC=(t,e)=>{Xu(t,e)},PC=L('<div><div> </div> <div class="close s-w" data-testid="close-settings-menu"></div></div>'),kC=L('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),AC=L("<div><!> <!></div>"),LC={hash:"s-w",code:'.settings-menu-container.mobile.s-w{width:100%;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.settings-menu-container.s-w ul{list-style-type:none;margin:0;padding:0}.settings-menu-container.s-w .menu{background-color:var(--settings-bg);border-radius:var(--settings-radius);overflow:hidden;transition:opacity .2s,visibility .2s}.settings-menu-container.s-w .menu .item:first-child:not(.mobile){border-top-left-radius:var(--settings-radius);border-top-right-radius:var(--settings-radius)}.settings-menu-container.s-w .menu .item:last-child{border-bottom-left-radius:var(--settings-radius);border-bottom-right-radius:var(--settings-radius)}.settings-menu-container.s-w .settings-menu .item:first-child:not(.mobile){padding-top:6px}.settings-menu-container.s-w .settings-menu .item:last-child:not(.mobile){padding-bottom:6px}.settings-menu-container.s-w .menu.desktop{bottom:0;max-width:100%;position:absolute;right:0}.settings-menu.s-w{line-height:40px}.settings-menu.desktop.s-w{min-width:300px}.settings-menu-container.s-w .menu.mobile{background:var(--mobile-settings-bg);font-size:15px;line-height:50px;width:100%}.settings-menu-container.s-w .menu.mobile.hidden{display:none}.settings-menu-container.s-w .menu .item:not(.switch-item),.settings-menu-container.s-w .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-w .menu .item:hover{background-color:var(--settings-item-bg-hover)}.settings-menu-container.s-w .menu .item.mobile:hover{background:var(--mobile-settings-bg)}.settings-menu.s-w .item:not(.switch-item),.settings-menu.s-w .switch-wrapper{padding:0 32px 0 18px}.settings-menu.s-w .item.mobile:not(.switch-item),.settings-menu.s-w .switch-wrapper.mobile{padding:0 14px}.settings-menu.s-w .icon-wrapper{align-items:center;display:flex;height:24px;justify-content:center;margin-right:16px;min-width:24px;width:24px}.settings-menu.s-w .label{flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis}.settings-menu.s-w .item.header.mobile:where(.s-w){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-w .items::-webkit-scrollbar{width:8px}.settings-menu-container.s-w .items::-webkit-scrollbar-track{background-color:#3a3a3a;border-radius:4px;box-shadow:none}.settings-menu-container.s-w .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-w .items::-webkit-scrollbar-thumb:hover{background-color:#777}.settings-menu-container.s-w .items.mobile{max-height:160px;overflow-x:hidden;overflow-y:auto;text-align:left}.close.s-w{height:12px;margin-right:-12px;padding:12px;position:relative;width:12px}.close.s-w:after,.close.s-w:before{background-color:var(--white);content:" ";height:12px;left:18px;position:absolute;width:2px}.close.s-w:before{transform:rotate(45deg)}.close.s-w:after{transform:rotate(-45deg)}'};function Uc(t,e){B(e,!0),Q(t,LC);let[i,o]=Be(),r=()=>x(j,"$settingsMenuVisible",i),a=()=>x(ne,"$settingsMenuOpenedByKeyboard",i),l=()=>x(pt,"$debugPanelVisible",i),d=()=>x(Le,"$isMobile",i),s=()=>x(st,"$playerSize",i),u=()=>x(Ae,"$hasMpegSources$",i),f=()=>x(ze,"$mobileNotReportControlHidden$",i),p=()=>x(fe,"$autoQualityLimitingAvailable$",i),v=()=>x(ee,"$isMinimalMode$",i),b=()=>x(Re,"$availableSubtitlesList$",i),y=()=>x(Ce,"$isLiveWithPlaybackSpeed",i),_=()=>x(Ee,"$availableAudioStreams$",i),w=()=>x(me,"$availablePlaybackRates$",i),I=()=>x($e,"$currentAudioStream$",i),T=()=>x(N,"$currentPlaybackRate$",i),R=()=>x(we,"$trafficSavingEnabled",i),A=()=>x(ce,"$currentQuality$",i),P=()=>x(ve,"$isAutoQualityEnabled$",i),E=()=>x(ue,"$currentSubtitle$",i),z=()=>x(ct,"$additionalSettingsMenuItems$",i),U=()=>x(X,"$isAutoQualityAvailable$",i),W=()=>x(Qe,"$availableQualities$",i),Y=()=>x(He,"$highQualityEnabled",i),te=g(e,"ref",15,void 0),J=g(e,"playerControlsHeight",3,0),oe=ri({}),de=ri({}),ae=xe(),pe=Vt(),ee=ae.ui.isMinimalMode$,$e=ae.state.audioStream$,Ee=ae.state.availableAudioStreams$,ce=ae.state.currentQuality$,Qe=ae.state.availableQualities$,fe=ae.state.autoQualityLimitingAvailable$,ve=ae.state.isAutoQualityEnabled$,X=ae.state.isAutoQualityAvailable$,N=ae.state.currentPlaybackRate$,me=ae.state.availablePlaybackRates$,ue=ae.state.currentSubtitle$,Re=ae.state.availableSubtitlesList$,et=ae.state.canDownload,Ae=ae.state.hasMpegSources$,j=ae.ui.settingsMenu.visible$,ne=ae.ui.settingsMenu.openedByBtnKeyboard$,Se=ae.ui.settingsMenu.ref$,Le=ae.ui.isMobile,ze=ae.ui.mobileNotReportControlHidden$,Ce=ae.state.canChangePlaybackSpeed$,we=ae.state.trafficSavingEnabled$,He=ae.state.highQualityEnabled$,st=ae.ui.playerSize,pt=ae.ui.debugPanelVisible,Rt=ae.state.isInteractiveTime$,ct=ae.ui.additionalSettingsMenuItems$,ni=ae.ui.t,Ct=ae.actions.internal.downloadVideo,Ot=ae.actions.internal.closeSettingsMenu,Nt=ae.actions.internal.openSettingsSubMenu,Gt=ae.actions.internal.closeSettingsSubMenu,Te=K(!1),G=K(void 0),Ne=r$();Fe(()=>{!r()&&Ne.current&&(Gt(de[Ne.current]),Ne.popAllSubMenus())}),Fe(()=>{r()||D(G,void 0)}),Fe(()=>{!Ne.current&&n(G)&&fb(oe,n(G))}),Fe(()=>{te()&&Se.set(te())});function be(H){return yt(this,null,function*(){var Wt;Ne.pushSubMenu(H),yield ho(),Nt(H,de[H]);let nt=(Wt=te())==null?void 0:Wt.firstElementChild;nt&&mm(nt)})}function Oe(H){var nt;H==null||H.stopPropagation(),a()||(nt=e.returnFocus)==null||nt.call(e),Ot(),D(Te,!1)}function Ie(H,nt){ae.actions.internal.setQuality(H,{appliesTo:nt,byUser:!0}),Oe()}function bt(H){ae.actions.internal.setAudioStream(H),Oe()}function ye(H,nt){ae.actions.internal.setTrafficSavingEnabled(H,nt),pe.features.qualityDetailsSubMenuEnabled&&Oe()}function qe(H,nt){ae.actions.internal.setHighQualityEnabled(H,nt),Oe()}function Ue(H){ae.actions.internal.setPlaybackRate(H),Oe()}function at(H){ae.actions.internal.setSubtitle(H),Oe()}function Yt(){Ct()}function At(){(0,Hc.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),ae.actions.internal.reportProblem(),ae.actions.internal.pause()}function Xt(){Gl(ae.actions.internal.getDebugTextData())}let yi=()=>{let H=ae.actions.internal.getTraceTextData(),nt=new Blob([...H],{type:"application/json"}),Wt=window.URL.createObjectURL(nt);qa(Wt,"vk_player_trace_info","json")};function Ri(){pt.set(!l())}function Li(){D(Te,!0)}function Zi(){D(Te,!1)}function si(){return d()?`max-height: ${Math.round(s().height*.6)}px`:`max-height: ${s().height-32-J()}px; overflow: auto;`}let ft=m(()=>et&&u()&&!f()),di=m(()=>pe.features.trafficSaving&&!f()&&p()&&!pe.features.qualityDetailsSubMenuEnabled),Ji=m(()=>!v()&&b().length>0&&!f()),Pt=m(()=>!!y()&&!f()),bi=m(()=>pe.features.audioLanguages&&_().length>=2&&!f()),fi=m(()=>!f());Mt(()=>Rt.subscribe(H=>{H&&!d()&&!n(Te)&&!a()&&Oe()}));let We=m(()=>{let H=[n(fi)&&"quality-settings",n(bi)&&"audio-tracks-settings",n(Pt)&&"playback-rate-settings",n(Ji)&&"subtitles-settings",n(di)&&"traffic-saving-switch",n(ft)&&"download",pe.showSupport&&"show-support","copy-data",pe.features.saveTraceInfoToFile&&"save-trace-info","debug-info"].filter(nt=>!!nt);return v$({items:H,context:{qualityDetailsSubMenuEnabled:pe.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:w(),currentAudioStream:I(),availableAudioStreams:_(),currentPlaybackRate:T(),selectPlaybackRate:Ue,trafficSavingEnabled:R(),toggleTrafficSaving:ye,currentQuality:A()||Hc.VideoQuality.INVARIANT,isAutoQualityEnabled:P()||!1,currentSubtitle:E(),isMobile:d(),onDownloadClick:Yt,onCopyDataClick:Xt,onReportProblemClick:At,onSaveTraceDataClick:yi,toggleShowDebugInfo:Ri},additionalSettingsMenuItems:z()})}),lt=m(()=>m$({subMenuId:Ne.current,context:{availablePlaybackRates:w(),selectPlaybackRate:Ue,trafficSavingEnabled:R(),toggleTrafficSaving:ye,currentQuality:A()||Hc.VideoQuality.INVARIANT,isAutoQualityEnabled:P()||!1,isAutoQualityAvailable:U()||!1,availableQualities:W(),highQualityEnabled:Y(),toggleHighQuality:qe,availableAudioStreams:_(),availableSubtitlesList:b(),closeSettingsMenu:Ot,currentAudioStream:I(),isMobile:d(),selectAudioLanguage:bt,selectQuality:Ie,selectSubtitle:at}}));var Ii=AC();let eo;var xo=C(Ii);{var Ro=H=>{var nt=kC();let Wt;nt.__keydown=[EC,Ot];var mi=C(nt);{var ut=jt=>{var It=PC();let co;var Do=C(It),Hn=C(Do,!0);S(Do);var gn=k(Do,2);gn.__click=Oe,S(It),O((Mi,Si)=>{co=ie(It,1,"item header s-w",null,co,Mi),he(Hn,Si)},[()=>({mobile:d()}),()=>ni("submenu_settings")]),$(jt,It)};M(mi,jt=>{d()&&jt(ut)})}var ai=k(mi,2);let vi;wi(ai,21,()=>n(We),jt=>jt.id,(jt,It)=>{var co=Ve(),Do=le(co);{var Hn=Mi=>{Fv(Mi,{get isMobile(){return d()},get id(){return n(It).id},get icon(){return n(It).icon},get iconProps(){return n(It).iconProps},get label(){return n(It).label},get ariaLabel(){return n(It).ariaLabel},get value(){return n(It).value},get valueComponent(){return n(It).valueComponent},onClick:()=>{be(n(It).children),D(G,n(It).id,!0)},get ref(){return oe[n(It).id]},set ref(Si){oe[n(It).id]=Si}})},gn=(Mi,Si)=>{{var tn=$i=>{let wo=m(()=>`${n(It).id}-menu-item`);Uv($i,{get isMobile(){return d()},get id(){return n(wo)},get onClick(){return n(It).onClick},get icon(){return n(It).icon},get label(){return n(It).label},get ariaLabel(){return n(It).ariaLabel},closeSettings:Oe})},or=($i,wo)=>{{var hn=Oo=>{let _n=m(()=>`${n(It).id}-menu-item`);Wv(Oo,{get isMobile(){return d()},get id(){return n(_n)},get onClick(){return n(It).onClick},get icon(){return n(It).icon},get label(){return n(It).label},get ariaLabel(){return n(It).ariaLabel},get enabled(){return n(It).enabled},get tooltipText(){return n(It).tooltipText},get maxTooltipWidth(){return n(It).maxTooltipWidth}})};M($i,Oo=>{n(It).type==="SWITCH"&&Oo(hn)},wo)}};M(Mi,$i=>{n(It).type==="CLICK"?$i(tn):$i(or,!1)},Si)}};M(Do,Mi=>{n(It).type==="OPEN_SUB_MENU"?Mi(Hn):Mi(gn,!1)})}$(jt,co)}),S(ai),ot(ai,jt=>te(jt),()=>te()),S(nt),O((jt,It,co)=>{Wt=ie(nt,1,"settings-menu menu s-w",null,Wt,jt),vi=ie(ai,1,"items",null,vi,It),Ke(ai,co)},[()=>({desktop:!d(),mobile:d(),hidden:!!Ne.current}),()=>({mobile:d()}),si]),vt("mouseenter",nt,Li),vt("mouseleave",nt,Zi),$(H,nt)};M(xo,H=>{r()&&H(Ro)})}var vn=k(xo,2);wi(vn,17,()=>n(lt),H=>H.id,(H,nt)=>{let Wt=m(()=>{var mi;return(mi=n(nt).minWidth)!=null?mi:137});Bv(H,{get isMobile(){return d()},get playerControlsHeight(){return J()},get returnFromSubMenu(){return Ne.popSubMenu},get id(){return n(nt).id},get title(){return n(nt).title},get closeSettingsMenu(){return Ot},openSubMenuList:be,get items(){return n(nt).items},get minWidth(){return n(Wt)},get refMenuItems(){return oe},get listRef(){return de[n(nt).id]},set listRef(mi){de[n(nt).id]=mi}})}),S(Ii),O(H=>eo=ie(Ii,1,"settings-menu-container s-w",null,eo,H),[()=>({mobile:d(),hidden:!r()})]),$(t,Ii),F(),o()}Je(["keydown","click"]);var MC=L('<button class="btn s-1d"> </button>'),VC={hash:"s-1d",code:"button.btn.s-1d{background:hsla(0,0%,100%,.1);border-radius:8px;font-size:14px;line-height:18px;margin-top:12px;padding:6px 12px 7px}"};function ng(t,e){Q(t,VC);var i=MC();i.__click=function(...r){var a;(a=e.onClick)==null||a.apply(this,r)};var o=C(i,!0);S(i),O(()=>he(o,e.label)),$(t,i)}Je(["click"]);var RC=L('<div class="container s-t"><div class="notification s-t"><div><p class="description s-t"><!></p> <!></div> <!></div></div>'),DC={hash:"s-t",code:".container.s-t{display:flex;justify-content:center;left:0;pointer-events:none;position:absolute;right:0;top:20px;z-index:var(--controls-container-z-index)}.notification.s-t{background:var(--notification-bg);border-radius:var(--notification-radius);display:inline-flex;gap:10px;padding:9px 14px 10px 12px;pointer-events:auto}.description.s-t{font-size:13px;line-height:16px;margin:0;white-space:pre}"};function zc(t,e){B(e,!0),Q(t,DC);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=Vt(),{ui:{t:r}}=xe(),a=r(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var l=RC(),d=C(l),s=C(d),u=C(s),f=C(u);Fc(f,{get message(){return a}}),S(u);var p=k(u,2);{var v=y=>{let _=m(()=>r("slow_video_notification_button"));ng(y,{get label(){return n(_)},get onClick(){return e.onSelectAutoQuality}})};M(p,y=>{o||y(v)})}S(s);var b=k(s,2);zs(b,{get onClick(){return e.onClose}}),S(d),S(l),Hs(3,d,()=>xa,()=>({duration:i})),$(t,l),F()}var Wc=require("@vkontakte/videoplayer-shared/es2015");var ml="annotation",Tp=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 s;let{overlay:o,id:r,controlsBehaviour:a,hideAllControls:l}=i;if(this.disabledIds.has(r))return{success:!1,message:"current slotId is disabled via config"};let d=typeof e=="function"?e():e;return d.setAttribute("slot",ml),this.setupSlotStyles(d,o),this.shadowRootContainer.append(d),this.slots.set(r,{rootElement:d,options:i}),a&&this.runHidingControlsWhenIntersected(r,a),l&&((s=this.store)==null||s.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 yt(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)||{},f=new MutationObserver(b=>b.forEach(()=>{let y=qs(d,this.shadowRootContainer);o.forEach(_=>{let w=s==null?void 0:s[_],I=w?_e(w):null,T=u==null?void 0:u[_];I&&(T==null||T.set((0,Wc.isIntersecting)(I,y)))})}));f.observe(d,{childList:!0,subtree:!0}),l.observer=f;let p=new Wc.Subscription;o.forEach(b=>{s&&p.add(s[b].subscribe(y=>{let _=u==null?void 0:u[b];y&&y.isDisplayed?_==null||_.set((0,Wc.isIntersecting)(y,qs(d,this.shadowRootContainer))):_==null||_.set(!1)}))}),l.subs=p})}findSlotElement(e,i,o){return yt(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,f;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)),(f=d==null?void 0:d.controlsToObserve)==null||f.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 OC=L('<div class="container s-6"><!></div>'),NC={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 Kc(t,e){B(e,!0),Q(t,NC);let i=g(e,"reversed",3,!1);var o=Ve(),r=le(o);Ns(r,()=>e.Icon,a=>{var l=OC(),d=C(l);Ui(d,()=>e.Icon,(s,u)=>{u(s,{get size(){return"48"},get reversed(){return i()}})}),S(l),O(()=>Ke(l,`animation-duration: ${e.duration}ms`)),$(a,l)}),$(t,o),F()}var rg=require("@vkontakte/videoplayer-core/es2015"),BC=L('<div class="container s-y"><!></div>'),FC={hash:"s-y",code:".container.s-y{align-items:center;display:flex;height:100%;justify-content:center;pointer-events:none;position:absolute;width:100%}"};function sg(t,e){B(e,!0),Q(t,FC);let[i,o]=Be(),r=()=>x(s,"$playbackState$",i),a=()=>x(f,"$previewTrackActive",i),l=()=>x(p,"$previewTrackDragInProgress",i),d=()=>x(u,"$isPlaying$",i),{state:{playbackState$:s,isPlaying$:u},ui:{previewTrackActive:f,previewTrackDragInProgress:p}}=xe(),{features:{playbackStatusShow:v},playbackStatusAnimationDuration:b}=Vt(),y=0,_=K(null),w=K(!1);Fe(()=>{r()===rg.PlaybackState.PLAYING?D(_,Nn,!0):r()===rg.PlaybackState.PAUSED?D(_,Ys,!0):D(_,null)}),Fe(()=>{if(!(!v||a()||l()))return y=window.setTimeout(()=>{y=0,D(_,null)},b),()=>{y&&(window.clearTimeout(y),y=0)}}),Fe(()=>{d()&&!n(w)&&(D(w,!0),D(_,null))});var I=Ve(),T=le(I);{var R=A=>{var P=BC(),E=C(P);Kc(E,{get duration(){return b},get Icon(){return n(_)}}),S(P),$(A,P)};M(T,A=>{n(_)&&v&&A(R)})}$(t,I),F(),o()}var HC=L('<div><div data-testid="video-container"></div></div>'),UC={hash:"s-b",code:".video-container.s-b,.video-wrapper.s-b{height:100%;left:0;position:absolute;top:0;width:100%}.video-wrapper.s-b{background:var(--black)}.video-container.s-b,.video-wrapper.s-b{z-index:var(--video-container-z-index)}.video-container.s-b{transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.s-b{transition:none}.nocursor.s-b{cursor:none}"};function vl(t,e){B(e,!0),Q(t,UC);let[i,o]=Be(),r=()=>x(p,"$rotateAlpha",i),a=()=>x(v,"$playerSize",i),l=()=>x(f,"$playerPhase",i),d=()=>x(y,"$chromecastConnected$",i),s=()=>x(b,"$isPlaying$",i),u=g(e,"videoContainer",15),{playerPhase:f,ui:{rotateAlpha:p,playerSize:v},state:{isPlaying$:b,chromecastConnected$:y}}=xe(),{isSmoothVideoRotate:_}=Vt(),w=m(()=>u()&&r()%180?a().height/a().width:1);var I=HC();let T;I.__contextmenu=function(...P){var E;(E=e.onContextMenu)==null||E.apply(this,P)},I.__mousedown=function(...P){var E;(E=e.onMouseDown)==null||E.apply(this,P)},I.__mouseup=function(...P){var E;(E=e.onMouseUp)==null||E.apply(this,P)},I.__click=function(...P){var E;(E=e.onClick)==null||E.apply(this,P)},I.__dblclick=function(...P){var E;(E=e.onDblClick)==null||E.apply(this,P)};var R=C(I);let A;ot(R,P=>u(P),()=>u()),S(I),O((P,E)=>{T=ie(I,1,"video-wrapper s-b",null,T,P),A=ie(R,1,"video-container s-b",null,A,E),Ke(R,`transform: rotate(${r()}deg) scale(${n(w)})`),De(R,"data-is-playing",s())},[()=>({hidden:l()!=="video"||d(),nocursor:e.hideCursor}),()=>({"fast-rotate":!_})]),$(t,I),F(),o()}Je(["contextmenu","mousedown","mouseup","click","dblclick"]);var zC=L('<div><span class="text s-z"> </span> <!></div>'),WC={hash:"s-z",code:".root.s-z{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-z,.root.visible.s-z{transform:translateX(-50%)}.root.visible.s-z{opacity:1;visibility:visible}.text.s-z{font-size:13px;font-weight:600;line-height:16px}"};function ag(t,e){B(e,!0),Q(t,WC);let{ui:{t:i}}=xe();var o=zC();let r;var a=C(o),l=C(a,!0);S(a);var d=k(a,2);Rc(d,{get size(){return"16"},fill:"currentColor"}),S(o),O((s,u)=>{r=ie(o,1,"root s-z",null,r,s),he(l,u)},[()=>({visible:e.isVisible}),()=>i("double_forward_label")]),$(t,o),F()}var KC=L('<div class="container s-11" role="button" data-testid="preview-track-overlay"><div class="icon s-11"><!></div></div>'),QC={hash:"s-11",code:".container.s-11{background-color:rgba(0,0,0,.48);cursor:pointer;height:100%;position:absolute;width:100%}.container.s-11,.icon.s-11{align-items:center;display:flex;justify-content:center}.icon.s-11{background-color:#00000073;border-radius:100%;height:64px;transition:transform .2s;transition-timing-function:ease-out;width:64px;will-change:transform}.container.s-11:hover .icon:where(.s-11){transform:scale(1.15)}"};function lg(t,e){B(e,!1),Q(t,QC);let o=xe().actions.internal.closePreviewTrack,r=200,a=u=>{u.stopPropagation(),o()};Jo();var l=KC();l.__click=a;var d=C(l),s=C(d);return Nn(s,{get size(){return"32"}}),S(d),S(l),Hs(3,l,()=>xa,()=>({duration:r})),$(t,l),Bf(e,"handleClick",a),F({handleClick:a})}Je(["click"]);var qC=(t,e,i,o,r,a)=>{if(t.stopPropagation(),e()||o()){a();return}},GC=L("<div><!></div>"),YC=L('<div class="spherical-video-icon s-7"><!></div>'),jC=L("<div><!></div>"),XC=L('<div class="settings-menu s-7"><!></div>'),ZC=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),JC=L("<!> <!> <!>",1),eT=L('<div class="blocked s-7"></div>'),tT=L('<div class="player-wrapper s-7"><!> <div class="overlay-container"></div></div> <!>',1),iT={hash:"s-7",code:".blocked.s-7,.player-wrapper.s-7{height:100%;position:absolute;width:100%}.blocked.s-7{z-index:var(--overlay-container-z-index)}.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%}.spherical-video-icon.s-7{display:inline-block;left:calc(50% - 38px);position:absolute;top:calc(50% - 23px)}.ads-container.s-7{background:var(--black);height:100%;left:0;position:absolute;top:0;width:100%;z-index:var(--ads-container-z-index)}.settings-menu.s-7{bottom:57px;left:0;position:absolute;right:18px;transition:opacity .2s;z-index:var(--settings-menu-z-index)}"};function cg(t,e){B(e,!0),Q(t,iT);let[i,o]=Be(),r=()=>x(Cr,"$notificationsToShow$",i),a=()=>x(di,"$playerPhase",i),l=()=>x(Ro,"$isLoaderVisible",i),d=()=>x(Zi,"$adPlaybackState",i),s=()=>x(ai,"$crashed",i),u=()=>x(tn,"$isInteractiveTime$",i),f=()=>x(fi,"$settingsMenuVisible",i),p=()=>x(or,"$isInteractiveExpectation$",i),v=()=>x(Ri,"$isMinimalMode$",i),b=()=>x(bi,"$controlsVisible",i),y=()=>x(wo,"$touched",i),_=()=>x(Wr,"$graphIsOpened$",i),w=()=>x(Ji,"$isFullscreen",i),I=()=>x(nr,"$autoplayNextEnabled$",i),T=()=>x(Wt,"$postrollPassed",i),R=()=>x(vn,"$isEnded$",i),A=()=>x(It,"$currentSubtitle$",i),P=()=>x(dr,"$cursorInside",i),E=()=>x(rr,"$isControlsAvailable",i),z=()=>x(Ur,"$doubleForwardOn$",i),U=()=>x(ar,"$fakeIsPlaying$",i),W=()=>x(Tr,"$bottomNoSmooth",i),Y=()=>x(Ps,"$interactiveTimeIndicator",i),te=()=>x(Do,"$playerSize",i),J=()=>x(gn,"$is3DVideo",i),oe=()=>x(Un,"$doubleForwardAvailable$",i),de=()=>x(eo,"$contextMenuVisible$",i),ae=()=>x(Li,"$playbackState$",i),pe=()=>x(hn,"$hotKeyMapData",i),ee=()=>x(lt,"$scrubbingInProgress",i),$e=()=>x(Ii,"$volumeChangingInProgress",i),Ee=()=>x(H,"$chromecastConnected$",i),ce=()=>x(wn,"$controlsTimeoutActive",i),Qe=()=>x(Hn,"$adsPlaybackState",i),fe=()=>x(We,"$settingsMenuOpenedByKeyboard",i),ve=()=>x(an,"$contextMenuOpenedByKeyboard$",i),X=()=>x(ks,"$contextMenuOpenedByHotKey$",i),N=()=>x(ur,"$contextMenuButtonRef$",i),me=()=>x(Zs,"$contextMenuLastActiveElem$",i),ue=()=>x(Pt,"$isFullscreenOpenedByKeyboard",i),Re=()=>x(_n,"$positionExact$",i),et=()=>x(yi,"$language$",i),Ae=()=>x(Ca,"$previewTrackActive$",i),j=()=>x(Mi,"$icon3DVideoVisible",i),ne=()=>x(nt,"$chromecastDeviceName$",i),Se=()=>x(co,"$currentSubtitleCaptions$",i),Le=()=>x(si,"$position$",i),ze=()=>x(ft,"$duration$",i),Ce=()=>x(mi,"$isLive$",i),we=()=>x(ut,"$isPlaying$",i),He=()=>x(wr,"$contextMenuPosition$",i),st=()=>x(Oo,"$showHotKeyMap",i),pt=()=>x(xo,"$debugPanelVisible",i),Rt=()=>x(Sr,"$userActionsDisabled$",i),ct=g(e,"videoContainer",15),ni=g(e,"adsSlotId",3,void 0),Ct=g(e,"adsParams",3,void 0),Ot=g(e,"adsAutoplayParam",3,void 0),Nt=g(e,"duration",3,void 0),Gt=g(e,"logoTargetUrl",3,""),Te=g(e,"showNextPrevButtons",3,!1),G=g(e,"nextButtonActive",3,!1),Ne=g(e,"prevButtonActive",3,!1),be=g(e,"endScreenVideoTitle",3,void 0),Oe=g(e,"endScreenVideoThumb",3,void 0),Ie=g(e,"isOneVideoPlaylist",3,!1),bt=g(e,"shadowRootContainer",3,void 0),ye=g(e,"outerContainerRef",3,void 0),qe=g(e,"playerStarted",3,!1),Ue=g(e,"fullScreenTarget",3,void 0),at=g(e,"showMiniTimer",3,!1),Yt=g(e,"showEndScreen",3,!0),At=g(e,"keyboardControls",15),Xt=e.store.getLogger().createComponentLog("Root component"),yi=e.store.interfaceLanguage$,Ri=e.store.ui.isMinimalMode$,Li=e.store.state.playbackState$,Zi=e.store.ads.playbackState,si=e.store.state.positionWithScrubbing$,ft=e.store.state.duration$,di=e.store.playerPhase,Ji=e.store.ui.isFullscreen,Pt=e.store.ui.isFullscreenOpenedByKeyboard,bi=e.store.ui.controlsVisible,fi=e.store.ui.settingsMenu.visible$,We=e.store.ui.settingsMenu.openedByBtnKeyboard$,lt=e.store.ui.scrubbingInProgress,Ii=e.store.ui.volumeChangingInProgress,eo=e.store.ui.contextMenu.visible$,xo=e.store.ui.debugPanelVisible,Ro=e.store.state.isLoaderVisible,vn=e.store.state.isEnded$,H=e.store.state.chromecastConnected$,nt=e.store.state.chromecastDeviceName$,Wt=e.store.ads.postrollPassed,mi=e.store.state.isLive$,ut=e.store.state.isPlaying$,ai=e.store.state.crashed$,vi=e.store.webApi.annotationsApi,jt=e.store.webApi.pictureInPictureApi,It=e.store.state.currentSubtitle$,co=e.store.state.currentSubtitleCaptions$,Do=e.store.ui.playerSize,Hn=e.store.ads.playbackState,gn=e.store.ui.is3DVideo,Mi=e.store.ui.icon3DVideoVisible,Si=e.store.state.isInteractive,tn=e.store.state.isInteractiveTime$,or=e.store.state.isInteractiveExpectation$,$i=e.store.state.hasInteractiveBranches,wo=e.store.ui.touched,hn=e.store.ui.modals.hotKeyMap.data,Oo=e.store.ui.modals.hotKeyMap.show,_n=e.store.state.positionExact$,Es=e.store.ui.overlayContainer$,Ps=e.store.ui.controls.interactiveTimeIndicator,ds=e.store.state.showInteractiveTimeIndicator,wr=e.store.ui.contextMenu.position$,bn=e.store.actions.internal.setQuality,$n=e.store.actions.internal.closeSettingsMenu,nr=e.store.ui.autoplayNextEnabled$,Sr=e.store.ui.userActionsDisabled,rr=e.store.ui.isControlsAvailable,Hr=e.store.ui.videoTitleInfo,Ur=e.store.ui.doubleForwardOn$,Un=e.store.ui.doubleForwardAvailable$,sr=e.store.actions.internal.getVideoElement,zn=e.store.actions.internal.checkFullscreenSupport,{fakeIsPlaying$:ar,notifications$:zr,graphIsOpened$:Wr}=yo(),Ei=K(void 0),cs=K(void 0),on=K(void 0),gt=K(void 0),Zt,lr,Wn;hn.set(ab());let{closeNotification:Kr,notificationsToShow$:Cr}=zr,Qr=m(()=>!!r().slow_video),yn=()=>Kr("slow_video"),nn=m(()=>(a()==="video"&&l()||a()==="ads"&&d()==="inactive")&&!s()),xn=K(void 0),Tr=se(!1),Ir,wn=se(!1),Sn=se(),dr=se(!1),Vi=K(!1),So=K(!1),No=K(!1),uo=K(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),Cn=m(()=>u()&&!f()&&!(n(Vi)||n(So))&&!(n(No)&&!p())),Tn=!0,qr=m(()=>e.uiConfig.features.thumbTimer&&!v()&&at()&&a()==="video"&&!b()&&!s()&&!Si&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),Tt=e.uiConfig.titleShowBehaviour,gi=m(()=>!["video","thumb"].includes(a())||Tt==="never"||_()?!1:Tt==="fullscreen"?w():!0),Qt=m(()=>Tt==="always"||a()==="thumb"?!1:!b()),Bo=K(!1),Co=m(()=>(Yt()||e.showAutoplayNext&&I())&&!!be()&&!!Oe()&&(e.showAds&&T()||!e.showAds)&&R()&&!s()&&!n(Bo)&&!$i),In=m(()=>!v()&&A().value!=="off"&&a()==="video"),To=m(()=>P()&&!(b()||n(Co))&&!u()&&E()&&!z()),En=K(!1),Wi=m(()=>U()!==null),{toggle:Er}=ar,Fo=!1,Kn=null;jt==null||jt.setContext(Id());let us=()=>{e.autoplay&&!Si&&e.uiConfig.controls.showOnStartupAtAutoplay&&to(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:us});let ps=()=>{window.clearTimeout(Zt),wn.set(!1)},fs=()=>{window.clearTimeout(lr),Sn.set(null)},to=ge=>{ps(),wn.set(!0),Zt=window.setTimeout(()=>wn.set(!1),ge);let Et=ge-100;Ir=window.setTimeout(()=>{W()&&Tr.set(!1)},Et>0?Et:ge)},ms=(ge,Et)=>{fs(),Sn.set(Et),lr=window.setTimeout(()=>Sn.set(null),ge)},Gr=gn.subscribe(ge=>{Mi.set(ge),ge&&(window.clearTimeout(Wn),Wn=window.setTimeout(()=>Mi.set(!1),e.uiConfig.controls.hide360IconTimeout))}),_o=()=>yt(null,null,function*(){var Et,xi,Oi,Ko;let ge=fa();if(ge){let Eo=ic(),io=$t();ge=Eo===io||Eo===bt()}if(ge){to(e.uiConfig.controls.hideTimeoutFullscreen);try{yield jt==null?void 0:jt.exit()}catch(Eo){Xt({message:String(Eo)})}}Ji.set(ge),e.store.getAdmanWrapper().setFullscreen(ge),w()?(xi=(Et=e.store.callbacks)==null?void 0:Et.onFullscreenEnter)==null||xi.call(Et):(Ko=(Oi=e.store.callbacks)==null?void 0:Oi.onFullscreenExit)==null||Ko.call(Oi)}),Pr=ge=>{Do.set(ge)},tt=()=>{if(n(Ei)){let{width:ge,height:Et}=n(Ei).getBoundingClientRect();Do.set({width:ge,height:Et})}};Mt(()=>{var Et;return Yu(_o),e.uiConfig.features.annotationsInside&&(vi==null||vi.init(n(Ei))),jt==null||jt.assignPlayerContainer(n(Ei)),e.uiConfig.disablePiPResizeHandling||jt==null||jt.setExternalEventHandlers({resize:Pr,leavepictureinpicture:tt}),e.interactiveContainer&&((Et=ct().parentElement)==null||Et.insertBefore(e.interactiveContainer,ct().nextSibling)),()=>{window.clearTimeout(Zt),window.clearTimeout(Ir),window.clearTimeout(lr),window.clearTimeout(Wn),Gr(),jt==null||jt.dispose().catch(xi=>{Xt({message:String(xi)})}),ju(_o)}});let $t=()=>{let ge=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!ye()?n(Ei):ye(),Et=ge.getRootNode(),xi=Et instanceof ShadowRoot?Et.host:Et,Oi=Ue()instanceof HTMLElement&&Ue().contains(xi);return e.uiConfig.allowChangingFullscreenTarget&&Ue()&&Oi?Ue():ge},ei=()=>{eo.set(!1)},Di=()=>{$n(),ei()},po=()=>yt(null,null,function*(){if(!zn()){Xt({message:"fullscreen disabled"});return}ei(),fa()?(yield Gu(document),Xt({message:"exit fullscreen"})):(Xt({message:"request fullscreen"}),yield qu($t()))}),Bi=ge=>{_()||(ge.preventDefault(),eo.set(!0),wr.set({left:ge.clientX,top:ge.clientY}))};function bo(){dr.set(!0),Si||to(e.uiConfig.controls.hideTimeoutCursor)}function Ho(ge){var Eo,io;let{relatedTarget:Et}=ge,Oi=!!(Et&&((Eo=n(on))!=null&&Eo.contains(Et)))&&((io=At())==null?void 0:io.isFocused()),Ko=e.uiConfig.controls.showOnStartupAtAutoplay||!!Et;!Si&&!Oi&&Ko&&(Tr.set(!0),to(e.uiConfig.controls.hideTimeoutCursor))}function Pn(){dr.set(!1),D(So,!1),D(Vi,!1),Fo=!1,e.store.actions.internal.releaseCamera(),to(e.uiConfig.controls.hideTimeout),z()&&qn()}function Qn(ge){return ge?ge.offsetTop+Qn(ge.offsetParent):0}function $o(ge){return ge?ge.offsetLeft+$o(ge.offsetParent):0}function rn(ge){if(Y()&&ds){let Et=ge.currentTarget,xi=Qn(Et),Oi=$o(Et),Ko=ge.pageX-Oi,Eo=ge.pageY-xi,{left:io,bottom:dn,right:As}=Y(),Ls=As-io;return Ko>=io-Ls&&Eo<=dn+Ls}}function kr(ge){if(n(Ei)){let Et=Qn(ge.currentTarget),xi=te().height,Oi=ge.pageY-Et;if(rn(ge)){D(So,!1);return}Oi<40?D(So,!0):Oi>xi-40?D(Vi,!0):(D(So,!1),f()||D(Vi,!1))}}function Ar(ge){kr(ge),!n(Cn)&&!z()&&to(e.uiConfig.controls.hideTimeoutCursor),J()&&Fo&&Kn&&e.store.actions.internal.moveCameraFocusPX(Kn.clientX-ge.clientX,Kn.clientY-ge.clientY,ge.timeStamp-Kn.timeStamp),Kn=ge}let Io=null,cr=()=>{Io=window.setTimeout(()=>{e.store.actions.internal.changeDoubleForwardOn(!0),ps()},e.uiConfig.doubleForwardActivationTime)},qn=()=>{e.store.actions.internal.changeDoubleForwardOn(!1),Io&&clearTimeout(Io),Io=null},vs=ge=>{ge.preventDefault(),ge.button===0&&(Fo=!0,e.store.actions.internal.holdCamera(),oe()&&cr()),!Fo&&to(e.uiConfig.controls.hideTimeoutCursor)},it=ge=>{ge.preventDefault(),ge.button===0&&(Kn=ge,Fo=!1,e.store.actions.internal.releaseCamera()),!z()&&to(e.uiConfig.controls.hideTimeoutCursor)},Ft=ge=>{ge.preventDefault(),Tn&&(Xt({message:"double click on video"}),po(),to(e.uiConfig.controls.hideTimeoutCursor))},Pi=ge=>{var Et;if(ge.preventDefault(),z()){qn();return}if(Io&&qn(),de()||f()){Di();return}if(!(R()&&!$i)){if(n(Wi))return Er();if((Et=At())==null||Et.focus(),!qe()){e.firstStart(),to(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||ae()!==dg.PlaybackState.PLAYING)&&e.store.actions.internal.togglePlay(),to(e.uiConfig.controls.hideTimeoutCursor)}},sn=ge=>{Di(),wo.set(!0),to(e.uiConfig.controls.hideTimeout),ge&&ms(e.uiConfig.controls.hideHotKeyHelpers,ge)},Uo=()=>{var ge,Et;v()||(Di(),(ge=e.store.callbacks)!=null&&ge.onOpenHotKeyMap?(Et=e.store.callbacks)==null||Et.onOpenHotKeyMap(pe()):Oo.update(xi=>!xi))},Yr=()=>{wo.set(!0)},an=e.store.ui.contextMenu.openedByBtnKeyboard$,ur=e.store.ui.contextMenu.btnRef$,jr=K(void 0),ks=e.store.ui.contextMenu.openedByHotKey$,Zs=e.store.ui.contextMenu.lastActiveElem$,Gn=K(!1),Ca=e.store.ui.previewTrackActive;Fe(()=>{Es.set(n(xn))}),Fe(()=>{D(No,n(uo)&&ae()!==dg.PlaybackState.PLAYING,!0),n(uo)||kt(()=>D(uo,!0))}),Fe(()=>{var Et,xi;let ge=(n(No)||R()||f()||ee()||$e()||Ee()||ce()||n(Gn))&&!n(Cn)&&(a()==="video"||a()==="ads"&&(e.uiConfig.controls.showOnStartupAtAutoplay||Qe()!=="inactive"))&&!s()&&E();bi.set(ge),!ge&&!ce()&&((Et=n(on))!=null&&Et.contains(op()))&&((xi=At())==null||xi.focus())}),Fe(()=>{!ee()&&n(En)&&!u()&&to(e.uiConfig.controls.hideTimeoutCursor),kt(()=>D(En,ee(),!0))}),Fe(()=>{n(gt),f(),fe(),kt(()=>lc(n(gt),f(),fe()))}),Fe(()=>{n(jr),de(),ve(),X(),kt(()=>{let ge=ve()||X();lc(n(jr),de(),ge)})}),Fe(()=>{let ge=N();ge&&(de(),kt(()=>Yl(ge,de(),an)))}),Fe(()=>{let ge=me();ge&&(de(),kt(()=>pb(ge,de(),ks)))}),Fe(()=>{var ge;!ue()&&w()&&(kt(()=>Pt.set(!1)),(ge=At())==null||ge.focus())}),Fe(()=>{_()&&Di()});let mt=K(void 0),li=ge=>{Hr.set(tr(sr(),{title:n(mt)},"title",ge))},zo=(ge,Et)=>{var Eo,io;let xi=(io=(Eo=e.store.callbacks)==null?void 0:Eo.uiInfo)==null?void 0:io.onUpcomingLiveViewStateChanged;if(!xi)return;let Oi=!!Et,Ko=Ye(Ye({},tr(n(Ei),{upcomingLiveScreen:Et},"upcomingLiveScreen",Oi)),ge);xi(Ko)},pr="",Lr=m(()=>{var ge;return n(Qt)?pr:(ge=e.getVideoDeeplink)==null?void 0:ge.call(e,Re())});Fe(()=>{pr=n(Lr)});var Wo=tT();vt("blur",Oa,Di);var ki=le(Wo);ki.__mousemove=Ar;var gs=C(ki);let fo=m(()=>a()==="ads"),Ki=m(()=>n(Wi)?Er:void 0);ot(xm(gs,{startDoubleForwardActivationTimer:cr,stopDoubleForward:qn,toggleFullscreen:po,hideContextMenu:Di,showHotKeyHelpers:sn,showKeyMap:Uo,get isAds(){return n(fo)},get fakePlayButtonHandler(){return n(Ki)},get nextButtonActive(){return G()},get prevButtonActive(){return Ne()},children:(ge,Et)=>{var xi=JC(),Oi=le(xi);vl(Oi,{get hideCursor(){return n(To)},onClick:Pi,onContextMenu:Bi,onMouseDown:vs,onMouseUp:it,onDblClick:Ft,get videoContainer(){return ct()},set videoContainer(io){ct(io)}});var Ko=k(Oi,2);za(Ko,()=>"slot",!1,(io,dn)=>{ro(io,()=>({name:ml}))});var Eo=k(Ko,2);Ns(Eo,et,io=>{var dn=ZC(),As=le(dn);let Ls=m(()=>a()!=="thumb"||s()||Si&&e.autoplay);ul(As,{get hidden(){return n(Ls)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart},onContextMenu:Bi,onClick:ei});var Js=k(As,2);{var hs=Ge=>{lg(Ge,{})};M(Js,Ge=>{Ae()&&Ge(hs)})}var _s=k(Js,2);sg(_s,{});var fr=k(_s,2);ag(fr,{get isVisible(){return z()}});var Ta=k(fr,2);{var vd=Ge=>{let _i=m(()=>{var Qo;return(Qo=e.live)==null?void 0:Qo.startTime});Nc(Ge,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(_i)},onUpcomingLiveViewStateChanged:zo,onContextMenu:Bi,onClick:ei})};M(Ta,Ge=>{a()==="LiveWaitingStart"&&Ge(vd)})}var Mr=k(Ta,2);{var gd=Ge=>{pl(Ge,{kind:"recover",get thumbUrl(){return e.thumbUrl},onContextMenu:Bi,onClick:ei})};M(Mr,Ge=>{a()==="LiveWaitingRecover"&&Ge(gd)})}var Ia=k(Mr,2);{var hd=Ge=>{pl(Ge,{kind:"record",get thumbUrl(){return e.thumbUrl},onContextMenu:Bi,onClick:ei})};M(Ia,Ge=>{a()==="LiveWaitingRecord"&&Ge(hd)})}var bl=k(Ia,2);{var $l=Ge=>{var _i=GC();let Qo;var kn=C(_i);oc(kn,{get adsSlotId(){return ni()},get adsParams(){return Ct()},get adsAutoplayParam(){return Ot()},get duration(){return Nt()},get adsExternalApi(){return e.adsExternalApi},get adsJson(){return e.adsJson}}),S(_i),O(An=>Qo=ie(_i,1,"ads-container s-7",null,Qo,An),[()=>({hidden:a()!=="ads"})]),$(Ge,_i)};M(bl,Ge=>{e.showAds&&qe()&&Ge($l)})}var Ea=k(bl,2);{var ht=Ge=>{let _i=m(()=>!Yt()&&e.showAutoplayNext&&I());bm(Ge,{get title(){return be()},get thumb(){return Oe()},get isHide(){return n(_i)},clickCloseIcon:()=>D(Bo,!0)})};M(Ea,Ge=>{n(Co)&&be()&&Oe()&&Ge(ht)})}var _t=k(Ea,2);{var Ci=Ge=>{let _i=m(()=>w()?"md":"sm"),Qo=m(()=>{var kn;return(kn=e.store.callbacks)==null?void 0:kn.onTitleClicked});Mv(Ge,{get title(){return e.title},get isHidden(){return n(Qt)},onVisibilityChanged:li,get titleLinkHref(){return n(Lr)},onMouseEnter:()=>{D(Gn,!0)},onMouseLeave:()=>{D(Gn,!1)},get size(){return n(_i)},get onTitleClicked(){return n(Qo)},get ref(){return n(mt)},set ref(kn){D(mt,kn,!0)}})};M(_t,Ge=>{n(gi)&&Ge(Ci)})}var Po=k(_t,2);{var oo=Ge=>{let _i=m(()=>a()==="video"&&b());Dc(Ge,{get isShifted(){return n(_i)}})};M(Po,Ge=>{J()&&Ge(oo)})}var hi=k(Po,2);{var Qi=Ge=>{var _i=YC(),Qo=C(_i);tc(Qo,{}),S(_i),$(Ge,_i)};M(hi,Ge=>{j()&&Ge(Qi)})}var ea=k(hi,2);{var _d=Ge=>{Oc(Ge,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return ne()},onClick:Pi,onContextMenu:Bi,onDblClick:Ft})};M(ea,Ge=>{Ee()&&Ge(_d)})}var tu=k(ea,2);{var Hp=Ge=>{dl(Ge,{get shifted(){return b()},get captions(){return Se()},get position(){return Le()},get playerSize(){return te()}})};M(tu,Ge=>{n(In)&&Ge(Hp)})}var iu=k(tu,2);{var Up=Ge=>{var _i=jC();_i.__contextmenu=Bi,_i.__click=[qC,de,eo,f,fi,Di];var Qo=C(_i);cl(Qo,{}),S(_i),$(Ge,_i)};M(iu,Ge=>{s()&&Ge(Up)})}var ou=k(iu,2);{var zp=Ge=>{let _i=m(()=>a()==="thumb"||a()==="LiveWaitingStart"||a()==="LiveWaitingRecover"||a()==="LiveWaitingRecord"),Qo=m(()=>a()==="ads"),kn=m(()=>e.canRewindLive&&ze()!==0);Vc(Ge,{get bottomHidden(){return n(_i)},get bottomNoSmooth(){return W()},get showControls(){return b()},get isAds(){return n(Qo)},get canRewindLive(){return n(kn)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Gt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Te()},get nextButtonActive(){return G()},get prevButtonActive(){return Ne()},get isOneVideoPlaylist(){return Ie()},customFullscreenSupported:Tn,toggleFullscreen:po,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return n(cs)},set playerControlsWrapperRef(An){D(cs,An,!0)},get playerControlsRef(){return n(on)},set playerControlsRef(An){D(on,An,!0)}})};M(ou,Ge=>{qe()&&Ge(zp)})}var nu=k(ou,2);{var Wp=Ge=>{var _i=XC(),Qo=C(_i);let kn=m(()=>{var An;return(An=n(on))==null?void 0:An.clientHeight});Uc(Qo,{get supportLink(){return e.supportLink},get playerControlsHeight(){return n(kn)},returnFocus:()=>{var An;return(An=At())==null?void 0:An.focus()},get ref(){return n(gt)},set ref(An){D(gt,An,!0)}}),S(_i),$(Ge,_i)};M(nu,Ge=>{!Ee()&&a()!=="ads"&&Ge(Wp)})}var ru=k(nu,2);let yl=m(()=>!n(qr));sc(ru,{get isLive(){return Ce()},get isHidden(){return n(yl)},get isPlaying(){return we()},get position(){return Le()},get duration(){return ze()}});var su=k(ru,2);Av(su,{get data(){return Sn}});var ta=k(su,2);hm(ta,{get supportLink(){return e.supportLink},returnFocus:()=>{var Ge;return(Ge=At())==null?void 0:Ge.focus()},get visible(){return de()},get playerContainerRef(){return n(Ei)},get position(){return He()},get menuElementRef(){return n(jr)},set menuElementRef(Ge){D(jr,Ge,!0)}});var Pa=k(ta,2);{var Kp=Ge=>{zc(Ge,{onClose:yn,onSelectAutoQuality:()=>{bn("auto"),yn()}})};M(Pa,Ge=>{n(Qr)&&Ge(Kp)})}var bd=k(Pa,2);{var $d=Ge=>{Xa(Ge,{})};M(bd,Ge=>{n(nn)&&Ge($d)})}var yd=k(bd,2);{var Qp=Ge=>{Cm(Ge,{})};M(yd,Ge=>{st()&&Ge(Qp)})}var au=k(yd,2);{var qp=Ge=>{cc(Ge,{})};M(au,Ge=>{pt()&&Ge(qp)})}$(io,dn)}),$(ge,xi)},$$slots:{default:!0}}),ge=>At(ge),()=>At());var ln=k(gs,2);ot(ln,ge=>D(xn,ge),()=>n(xn)),S(ki),ot(ki,ge=>D(Ei,ge),()=>n(Ei));var Yn=k(ki,2);{var Xr=ge=>{var Et=eT();$(ge,Et)};M(Yn,ge=>{Rt()&&ge(Xr)})}vt("mouseenter",ki,bo),vt("mouseleave",ki,Pn),vt("click",ki,Yr,!0),vt("focusin",ki,Ho,!0),$(t,Wo),F(),o()}Je(["mousemove","contextmenu","click"]);var wa=require("@vkontakte/videoplayer-core/es2015"),x$=require("@vkontakte/videoplayer-shared/es2015");var oT=L('<div></div> <div class="info s-13"><div class="triangles-wrapper s-13"><div></div> <div></div> <div></div></div> <p class="step-caption s-13"> </p></div>',1),nT=L("<div><!></div>"),rT={hash:"s-13",code:".double-click-area.s-13{height:100%;overflow:hidden;position:absolute;top:0;width:25%}.double-click-area.left.s-13{left:0}.double-click-area.right.s-13{right:0}.semicircle.s-13{background-color:rgba(0,0,0,.5);height:100%;position:absolute;top:0;width:100%}.semicircle.left.s-13{border-bottom-right-radius:50%;border-top-right-radius:50%;left:0}.semicircle.right.s-13{border-bottom-left-radius:50%;border-top-left-radius:50%;right:0}.info.s-13{align-items:center;flex-direction:column;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.info.s-13,.triangles-wrapper.s-13{display:flex;justify-content:center}.triangles-wrapper.s-13{margin-bottom:10px;position:relative}.triangle.s-13{animation:s-13-blink .5s infinite;border-bottom:6px solid transparent;border-top:6px solid transparent;height:0;opacity:0;width:0}.triangle.left.s-13:nth-child(3),.triangle.right.s-13:first-child{animation-delay:0s}.triangle.left.s-13:nth-child(2),.triangle.right.s-13:nth-child(2){animation-delay:.1s}.triangle.left.s-13:first-child,.triangle.right.s-13:nth-child(3){animation-delay:.2s}@keyframes s-13-blink{0%{opacity:0}50%{opacity:1}to{opacity:0}}.triangle.left.s-13{border-right:8px solid var(--white)}.triangle.right.s-13{border-left:8px solid var(--white)}.triangle.s-13:not(:last-child){margin-right:5px}.step-caption.s-13{color:var(--white);font-size:12px;line-height:1;margin:0;text-align:center}"};function Ip(t,e){B(e,!0),Q(t,rT);let i=g(e,"seekStep",3,0),o=K(!1),r=0,a=0,l=K(ri(i())),d=p=>{p.stopPropagation(),a+=1,D(l,i()*(a-1)),a===1?e.handleSingleFirstClick(p):(D(o,!0),e.handleSecondClick()),window.clearTimeout(r),r=window.setTimeout(()=>{a=0,D(o,!1)},300)};pn(()=>{window.clearTimeout(r)});var s=nT();s.__click=d;var u=C(s);{var f=p=>{var v=oT(),b=le(v),y=k(b,2),_=C(y),w=C(_),I=k(w,2),T=k(I,2);S(_);var R=k(_,2),A=C(R,!0);S(R),S(y),O(P=>{var E,z,U,W;ie(b,1,`semicircle ${(E=e.side)!=null?E:""}`,"s-13"),ie(w,1,`triangle ${(z=e.side)!=null?z:""}`,"s-13"),ie(I,1,`triangle ${(U=e.side)!=null?U:""}`,"s-13"),ie(T,1,`triangle ${(W=e.side)!=null?W:""}`,"s-13"),he(A,P)},[()=>q("doubletap_seek_step",{seconds:n(l).toFixed(0)})]),$(p,v)};M(u,p=>{n(o)&&p(f)})}S(s),O(()=>{var p;return ie(s,1,`double-click-area ${(p=e.side)!=null?p:""}`,"s-13")}),$(t,s),F()}Je(["click"]);var sT=(t,e,i)=>{e(!1),i()},aT=L('<div class="overlay s-14"></div> <div class="next-video s-14"><div class="top s-14"><div class="caption s-14"> </div> <!></div> <div class="row s-14"><div class="column s-14"><div class="thumb s-14"><div></div> <!></div></div> <div class="column s-14"><div class="title s-14"> </div></div></div></div>',1),lT={hash:"s-14",code:".overlay.s-14{background:rgba(0,0,0,.72);height:100%;position:absolute;width:100%}.next-video.s-14{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-14{display:flex;justify-content:space-between}.caption.s-14{color:var(--white);font-size:11px;font-weight:700;opacity:.8;text-transform:uppercase}.row.s-14{background:rgba(48,48,48,.8);cursor:pointer;display:flex;flex-direction:row;height:102px;margin-top:6px;width:100%}.column.s-14{display:flex;flex-basis:50%;flex-direction:column}.thumb.s-14{align-items:center;background:no-repeat 50%;background-size:cover;display:flex;justify-content:space-around;position:relative}.thumb.s-14,.thumb-overlay.s-14{height:100%;width:100%}.thumb-overlay.s-14{position:absolute}.thumb-overlay.withOpacity.s-14{background:var(--black);opacity:.3}.title.s-14{color:var(--white);font-size:12px;font-weight:700;line-height:1.6;max-height:52px;overflow:hidden;padding:10px 16px}"};function ug(t,e){B(e,!0),Q(t,lT);let[i,o]=Be(),r=()=>x(d,"$autoplayNextEnabled$",i),a=()=>x(s,"$timerNextVideoRunning$",i),l=xe(),d=l.ui.autoplayNextEnabled$,s=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,f=l.actions.internal.nextVideoAnnouncementShow,p=l.actions.internal.nextVideoAnnouncementClick,v=l.actions.internal.nextVideoAnnouncementAuto,b=l.actions.internal.nextVideoAnnouncementCancel,y=()=>{u(!1),v()},_=()=>{e.clickCloseIcon(),b()};Mt(()=>{e.isHide||f(),e.isHide&&r()&&(u(!1),v())});var w=Ve(),I=le(w);{var T=R=>{var A=aT(),P=k(le(A),2),E=C(P),z=C(E),U=C(z,!0);S(z);var W=k(z,2);zs(W,{onClick:_}),S(E);var Y=k(E,2);Y.__click=[sT,u,p];var te=C(Y),J=C(te),oe=C(J);let de;var ae=k(oe,2);{var pe=ce=>{uc(ce,{get isRunning(){return a()},onTimerEnded:y})};M(ae,ce=>{r()&&ce(pe)})}S(J),S(te);var ee=k(te,2),$e=C(ee),Ee=C($e,!0);S($e),S(ee),S(Y),S(P),O((ce,Qe)=>{he(U,ce),Ke(J,`background-image: url('${e.thumb}')`),de=ie(oe,1,"thumb-overlay s-14",null,de,Qe),he(Ee,e.title)},[()=>r()?q("end_screen_next_video"):q("end_screen_recommended_video"),()=>({withOpacity:r()})]),$(R,A)};M(I,R=>{e.isHide||R(T)})}$(t,w),F(),o()}Je(["click"]);var h$=require("@vkontakte/videoplayer-core/es2015");var _$=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Mt(()=>{h$.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))}),pn(()=>{i==null||i(),clearTimeout(o)})};var b$=require("@vkontakte/videoplayer-core/es2015");var Ep=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 $$=require("@vkontakte/videoplayer-core/es2015"),y$=({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"),f=()=>$$.clientChecker.device.isIOS&&_e(l)===b$.VideoFormat.DASH_LIVE_CMAF,p=()=>{s==null||s(),s=null},v=b=>{if(p(),!f()||!b)return;let y=u();if(!y)return;let _=new Ep(y),w=_e(d),I=_e(a),T=_e(r);for(let P of w)I.some(z=>z.value===P.id)&&_.attach(P,T.value===P.id);let R=d.subscribe(P=>{for(let E of P)_.updateSrc(E)}),A=()=>{let P=_.getCurrentShowingId();o(_e(a).find(E=>E.value===P))};y.textTracks.addEventListener("change",A),s=()=>{R(),_.detachAll(),y.textTracks.removeEventListener("change",A)}};Mt(()=>i.subscribe(v)),pn(p)};var dT=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},cT=L("<!> <!>",1),uT=L("<div><!></div>"),pT=L('<div class="spherical-video-icon s-9"><!></div>'),fT=L("<div><!></div>"),mT=L('<div class="settings-mobile s-9"><!></div>'),vT=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),gT=L('<div class="player-wrapper s-9" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),hT={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 pg(t,e){var Tn,qr;B(e,!0),Q(t,hT);let[i,o]=Be(),r=()=>x(Oe,"$playerPhase",i),a=()=>x(yi,"$isLoaderVisible",i),l=()=>x(G,"$adPlaybackState",i),d=()=>x(bi,"$crashed",i),s=()=>x(Ps,"$notificationsToShow$",i),u=()=>x(Te,"$playbackState$",i),f=()=>x(Ot,"$graphIsOpened$",i),p=()=>x(qe,"$interactiveHideMobileControls",i),v=()=>x(Ri,"$isEnded$",i),b=()=>x(mi,"$isInteractiveExpectation$",i),y=()=>x(bt,"$controlsVisible",i),_=()=>x(vi,"$touched",i),w=()=>x(It,"$autoplayNextEnabled$",i),I=()=>x(si,"$postrollPassed",i),T=()=>x(bn,"$bottomNoSmooth",i),R=()=>x(lt,"$videoSize",i),A=()=>x(Ro,"$playerSize",i),P=()=>x(Ie,"$isFullscreen",i),E=()=>x(Ne,"$position$",i),z=()=>x(be,"$duration$",i),U=()=>x(co,"$loadedMetadata",i),W=()=>x(Ue,"$settingsMenuVisible",i),Y=()=>x(Yt,"$scrubbingInProgress",i),te=()=>x(At,"$volumeChangingInProgress",i),J=()=>x(Li,"$chromecastConnected$",i),oe=()=>x(ye,"$isControlsAvailable",i),de=()=>x(Wt,"$isInteractiveTime$",i),ae=()=>x(Ji,"$isActiveLive",i),pe=()=>x(at,"$settingsMenuOpenedByKeyboard",i),ee=()=>x(Gt,"$language$",i),$e=()=>x(ai,"$disabledControls$",i),Ee=()=>x(vn,"$is3DVideo",i),ce=()=>x(H,"$icon3DVideoVisible",i),Qe=()=>x(Zi,"$chromecastDeviceName$",i),fe=()=>x(Ii,"$currentSubtitle$",i),ve=()=>x(eo,"$currentSubtitleCaptions$",i),X=()=>x(xo,"$realDuration$",i),N=()=>x(ft,"$isLive$",i),me=()=>x(di,"$isPlaying$",i),ue=()=>x(Xt,"$debugPanelVisible",i),Re=g(e,"videoContainer",15),et=g(e,"adsSlotId",3,void 0),Ae=g(e,"adsParams",3,void 0),j=g(e,"adsAutoplayParam",3,void 0),ne=g(e,"duration",3,void 0),Se=g(e,"logoTargetUrl",3,""),Le=g(e,"showNextPrevButtons",3,!1),ze=g(e,"nextButtonActive",3,!1),Ce=g(e,"prevButtonActive",3,!1),we=g(e,"endScreenVideoTitle",3,void 0),He=g(e,"endScreenVideoThumb",3,void 0),st=g(e,"isOneVideoPlaylist",3,!1),pt=g(e,"showMiniTimer",3,!1),Rt=g(e,"fullScreenTarget",3,void 0),ct=g(e,"playerStarted",3,!1),ni=g(e,"showEndScreen",3,!0),{notifications$:Ct,graphIsOpened$:Ot}=yo(),Nt=e.store.getLogger().createComponentLog("Root component"),Gt=e.store.interfaceLanguage$,Te=e.store.state.playbackState$,G=e.store.ads.playbackState,Ne=e.store.state.positionWithScrubbing$,be=e.store.state.duration$,Oe=e.store.playerPhase,Ie=e.store.ui.isFullscreen,bt=e.store.ui.controlsVisible,ye=e.store.ui.isControlsAvailable,qe=e.store.ui.interactiveHideMobileControls,Ue=e.store.ui.settingsMenu.visible$,at=e.store.ui.settingsMenu.openedByBtnKeyboard$,Yt=e.store.ui.scrubbingInProgress,At=e.store.ui.volumeChangingInProgress,Xt=e.store.ui.debugPanelVisible,yi=e.store.state.isLoaderVisible,Ri=e.store.state.isEnded$,Li=e.store.state.chromecastConnected$,Zi=e.store.state.chromecastDeviceName$,si=e.store.ads.postrollPassed,ft=e.store.state.isLive$,di=e.store.state.isPlaying$,Ji=e.store.state.isActiveLive$,Pt=e.store.state.isRewindableLive$,bi=e.store.state.crashed$,fi=e.store.webApi.annotationsApi,We=e.store.webApi.pictureInPictureApi,lt=e.store.state.videoSize$,Ii=e.store.state.currentSubtitle$,eo=e.store.state.currentSubtitleCaptions$,xo=e.store.state.duration$,Ro=e.store.ui.playerSize,vn=e.store.ui.is3DVideo,H=e.store.ui.icon3DVideoVisible,nt=e.store.state.isInteractive,Wt=e.store.state.isInteractiveTime$,mi=e.store.state.isInteractiveExpectation$,ut=e.store.state.hasInteractiveBranches,ai=e.store.ui.controls.disabledControls$,vi=e.store.ui.touched,jt=e.store.ui.overlayContainer$,It=e.store.ui.autoplayNextEnabled$,co=e.store.state.loadedMetadata$,Do=e.store.actions.internal.closeSettingsMenu,Hn=(Tn=e.store.callbacks)==null?void 0:Tn.onDisabledPlayPrevChapterClick,gn=(qr=e.store.callbacks)==null?void 0:qr.onDisabledSeekToInteractiveClick,Mi=e.store.actions.internal.setQuality,Si=K(void 0),tn=K(void 0),or=K(void 0),$i=K(void 0),wo,hn,Oo=m(()=>(r()==="video"&&a()||r()==="ads"&&l()==="inactive")&&!d()),_n=K(void 0),{closeNotification:Es,notificationsToShow$:Ps}=Ct,ds=m(()=>!!s().slow_video),wr=()=>Es("slow_video"),bn=se(!1),$n,nr=K(!1),Sr=m(()=>u()!==wa.PlaybackState.PLAYING),rr=K(!1),Hr=m(()=>f()||p()||!n(nr)&&(v()&&!!ut||n(Sr)&&b())),Ur=K(!0),Un=m(()=>e.uiConfig.features.thumbTimer&&pt()&&r()==="video"&&!y()&&!d()&&!nt&&(e.uiConfig.hideThumbTimerAfterTouch&&!_()||!e.uiConfig.hideThumbTimerAfterTouch)),sr=K(!1),zn=m(()=>(ni()||e.showAutoplayNext&&w())&&!!we()&&!!He()&&(e.showAds&&I()||!e.showAds)&&v()&&!d()&&!n(sr)),ar=K(!1);We==null||We.setContext(Id());let zr=Tt=>{Tt&&!nt&&e.uiConfig.controls.showOnStartupAtAutoplay&&Ei(e.uiConfig.controls.hideTimeoutMobile)};e.store.setUiCallbacks({onStarted:zr});let Wr=()=>{clearTimeout(wo),D(nr,!1),p()&&qe.set(!1)},Ei=Tt=>{Wr(),D(nr,!0),wo=setTimeout(()=>D(nr,!1),Tt);let gi=Tt-100;$n=setTimeout(()=>{T()&&bn.set(!1)},gi>0?gi:Tt)},cs=vn.subscribe(Tt=>{H.set(Tt),Tt&&(clearTimeout(hn),hn=setTimeout(()=>H.set(!1),e.uiConfig.controls.hide360IconTimeout))}),on=(...gi)=>yt(null,[...gi],function*(Tt=fa()){var Qt,Bo,Co,In,To,En;if(Tt&&!wa.clientChecker.device.isIOS){let Wi=ic(),Er=Cr(),Fo=wa.clientChecker.browser.isSamsungBrowser&&Wi===e.shadowRootContainer;Tt=Wi===Er||Fo}if(Tt){Ei(e.uiConfig.controls.hideTimeoutFullscreen);try{yield We==null?void 0:We.exit()}catch(Wi){Nt({message:String(Wi)})}try{let Wi=(Qt=R())!=null&&Qt.width&&((Bo=R())!=null&&Bo.height)?R():A();yield sb(Wi)}catch(Wi){Nt({message:String(Wi)})}}Ie.set(Tt),e.store.getAdmanWrapper().setFullscreen(Tt),P()?(In=(Co=e.store.callbacks)==null?void 0:Co.onFullscreenEnter)==null||In.call(Co):(En=(To=e.store.callbacks)==null?void 0:To.onFullscreenExit)==null||En.call(To)}),gt=Tt=>{Ro.set(Tt)},Zt=()=>{if(n(Si)){let{width:Tt,height:gi}=n(Si).getBoundingClientRect();Ro.set({width:Tt,height:gi})}};Mt(()=>{var Tt;return Yu(on),e.uiConfig.features.annotationsInside&&(fi==null||fi.init(n(Si))),We==null||We.assignPlayerContainer(n(Si)),e.uiConfig.disablePiPResizeHandling||We==null||We.setExternalEventHandlers({resize:gt,leavepictureinpicture:Zt}),D(Ur,!wa.clientChecker.device.isIphoneOrOldIpad),e.interactiveContainer&&((Tt=Re().parentElement)==null||Tt.insertBefore(e.interactiveContainer,Re().nextSibling)),()=>{clearTimeout(wo),clearTimeout($n),clearTimeout(hn),cs(),We==null||We.dispose().catch(gi=>{Nt({message:String(gi)})}),ju(on)}});let lr=K(!0),Wn=K(!0),Kr=Tt=>{let gi=E()+(Tt==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;gi<0?(D(lr,!1),gi=0):gi>=z()&&(D(Wn,!1),gi=z()),D(rr,!0),e.seekTime(gi)},Cr=()=>wa.clientChecker.device.isIOS?n(Si):!e.uiConfig.allowChangingFullscreenTarget||!Rt()?e.outerContainerRef:Rt().contains(e.outerContainerRef)?Rt():e.outerContainerRef,Qr=()=>yt(null,null,function*(){try{if(fa())yield Gu(document),Nt({message:"exit fullscreen"});else{if(Nt({message:"request fullscreen"}),wa.clientChecker.device.isIOS&&!U())return;yield qu(Cr())}}catch(Tt){Nt({message:String(Tt)})}}),yn=()=>{Do()},nn=Tt=>{if(Tt.preventDefault(),W()){yn();return}if(!ct()){e.firstStart(),Ei(e.uiConfig.controls.hideTimeoutCursor);return}D(rr,!1),y()?Wr():Ei(e.uiConfig.controls.hideTimeoutMobile)},xn=()=>{vi.set(!0)},Tr=()=>{nt||(bn.set(!0),Ei(e.uiConfig.controls.hideTimeoutCursor))},Ir=Tt=>{Hn&&(Hn(Tt),Ei(e.uiConfig.controls.hideTimeoutMobile))},wn=Tt=>{gn&&(gn(Tt),Ei(e.uiConfig.controls.hideTimeoutMobile))};Fe(()=>{jt.set(n(_n))}),Fe(()=>{bt.set((n(Sr)||W()||Y()||te()||J()||!n(zn)&&(v()||n(nr)&&!n(rr)))&&!n(Hr)&&r()==="video"&&!d()&&oe())}),Fe(()=>{!Y()&&n(ar)&&!de()&&Ei(e.uiConfig.controls.hideTimeoutMobile),D(ar,Y(),!0)}),Fe(()=>{D(lr,E()>0),D(Wn,!ae()&&E()<z(),!0)}),Fe(()=>{lc(n($i),W(),pe(),!0)});let Sn=q("aria_label_video_player");_$({fullScreenChangeHandler:on,getFullscreenTarget:Cr}),y$({store:e.store,getFullscreenTarget:Cr});let dr=(Tt,gi)=>{var In,To;let Qt=(To=(In=e.store.callbacks)==null?void 0:In.uiInfo)==null?void 0:To.onUpcomingLiveViewStateChanged;if(!Qt)return;let Bo=!!gi,Co=Ye(Ye({},tr(n(Si),{upcomingLiveScreen:gi},"upcomingLiveScreen",Bo)),Tt);Qt(Co)};var Vi=gT();vt("blur",Oa,yn);var So=C(Vi);vl(So,{onClick:nn,get videoContainer(){return Re()},set videoContainer(Tt){Re(Tt)}});var No=k(So,2);za(No,()=>"slot",!1,(Tt,gi)=>{ro(Tt,()=>({name:ml}))});var uo=k(No,2);Ns(uo,ee,Tt=>{var gi=vT(),Qt=le(gi);let Bo=m(()=>r()!=="thumb"||d()||nt&&e.autoplay||e.uiConfig.features.disableThumbUnstartedOnAutoplay&&e.autoplay);ul(Qt,{get hidden(){return n(Bo)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Co=k(Qt,2);{var In=it=>{var Ft=cT(),Pi=le(Ft);{var sn=an=>{let ur=m(()=>e.uiConfig.controls.seekStepMobile/1e3);Ip(an,{side:"left",get seekStep(){return n(ur)},handleSingleFirstClick:nn,handleSecondClick:()=>Kr("backward")})};M(Pi,an=>{n(lr)&&an(sn)})}var Uo=k(Pi,2);{var Yr=an=>{let ur=m(()=>e.uiConfig.controls.seekStepMobile/1e3);Ip(an,{side:"right",get seekStep(){return n(ur)},handleSingleFirstClick:nn,handleSecondClick:()=>Kr("forward")})};M(Uo,an=>{n(Wn)&&an(Yr)})}$(it,Ft)};M(Co,it=>{e.canRewindLive&&Pt&&!$e().has("TIMELINE")&&it(In)})}var To=k(Co,2);{var En=it=>{let Ft=m(()=>{var Pi;return(Pi=e.live)==null?void 0:Pi.startTime});Nc(it,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(Ft)},onUpcomingLiveViewStateChanged:dr})};M(To,it=>{r()==="LiveWaitingStart"&&it(En)})}var Wi=k(To,2);{var Er=it=>{pl(it,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};M(Wi,it=>{r()==="LiveWaitingRecover"&&it(Er)})}var Fo=k(Wi,2);{var Kn=it=>{pl(it,{kind:"record",get thumbUrl(){return e.thumbUrl}})};M(Fo,it=>{r()==="LiveWaitingRecord"&&it(Kn)})}var us=k(Fo,2);{var ps=it=>{var Ft=uT();let Pi;var sn=C(Ft);oc(sn,{get adsSlotId(){return et()},get adsParams(){return Ae()},get adsAutoplayParam(){return j()},get duration(){return ne()},get adsExternalApi(){return e.adsExternalApi},get adsJson(){return e.adsJson}}),S(Ft),O(Uo=>Pi=ie(Ft,1,"ads-container s-9",null,Pi,Uo),[()=>({hidden:r()!=="ads"})]),$(it,Ft)};M(us,it=>{e.showAds&&ct()&&it(ps)})}var fs=k(us,2);{var to=it=>{let Ft=m(()=>!ni()&&e.showAutoplayNext&&w());ug(it,{get title(){return we()},get thumb(){return He()},get isHide(){return n(Ft)},clickCloseIcon:()=>D(sr,!0)})};M(fs,it=>{n(zn)&&we()&&He()&&it(to)})}var ms=k(fs,2);{var Gr=it=>{Dc(it,{})};M(ms,it=>{Ee()&&it(Gr)})}var _o=k(ms,2);{var Pr=it=>{var Ft=pT(),Pi=C(Ft);tc(Pi,{}),S(Ft),$(it,Ft)};M(_o,it=>{ce()&&it(Pr)})}var tt=k(_o,2);{var $t=it=>{Oc(it,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return Qe()},onClick:nn})};M(tt,it=>{J()&&it($t)})}var ei=k(tt,2);{var Di=it=>{dl(it,{get shifted(){return y()},get captions(){return ve()},get position(){return E()},get playerSize(){return A()},isMobile:!0})};M(ei,it=>{fe().value!=="off"&&it(Di)})}var po=k(ei,2);{var Bi=it=>{var Ft=fT();Ft.__click=[dT,W,Ue,yn];var Pi=C(Ft);cl(Pi,{}),S(Ft),$(it,Ft)};M(po,it=>{d()&&it(Bi)})}var bo=k(po,2);{var Ho=it=>{let Ft=m(()=>r()==="thumb"||r()==="LiveWaitingStart"||r()==="LiveWaitingRecover"||r()==="LiveWaitingRecord"||r()==="ads"),Pi=m(()=>r()==="ads"),sn=m(()=>e.canRewindLive&&X()!==0);Vc(it,{get bottomHidden(){return n(Ft)},get showControls(){return y()},get bottomNoSmooth(){return T()},get isAds(){return n(Pi)},get canRewindLive(){return n(sn)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Se()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Le()},get nextButtonActive(){return ze()},get prevButtonActive(){return Ce()},get isOneVideoPlaylist(){return st()},get customFullscreenSupported(){return n(Ur)},get endScreenShown(){return n(zn)},toggleFullscreen:Qr,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:Ir,onDisabledSeekToInteractiveClick:wn,get playerControlsWrapperRef(){return n(tn)},set playerControlsWrapperRef(Uo){D(tn,Uo,!0)},get playerControlsRef(){return n(or)},set playerControlsRef(Uo){D(or,Uo,!0)}})};M(bo,it=>{ct()&&it(Ho)})}var Pn=k(bo,2);{var Qn=it=>{var Ft=mT(),Pi=C(Ft);Uc(Pi,{get supportLink(){return e.supportLink},get returnFocus(){return x$.noop},get ref(){return n($i)},set ref(sn){D($i,sn,!0)}}),S(Ft),$(it,Ft)};M(Pn,it=>{W()&&it(Qn)})}var $o=k(Pn,2);let rn=m(()=>!n(Un));sc($o,{get isLive(){return N()},get isHidden(){return n(rn)},get isPlaying(){return me()},get position(){return E()},get duration(){return z()}});var kr=k($o,2);{var Ar=it=>{Xa(it,{})};M(kr,it=>{n(Oo)&&it(Ar)})}var Io=k(kr,2);{var cr=it=>{cc(it,{})};M(Io,it=>{ue()&&it(cr)})}var qn=k(Io,2);{var vs=it=>{zc(it,{onClose:wr,onSelectAutoQuality:()=>{Mi("auto"),wr()}})};M(qn,it=>{n(ds)&&it(vs)})}$(Tt,gi)});var Cn=k(uo,2);ot(Cn,Tt=>D(_n,Tt),()=>n(_n)),S(Vi),ot(Vi,Tt=>D(Si,Tt),()=>n(Si)),O(()=>De(Vi,"aria-label",Sn)),vt("click",Vi,xn,!0),vt("focusin",Vi,Tr,!0),$(t,Vi),F(),o()}Je(["click"]);var w$=require("@vkontakte/videoplayer-shared/es2015");var _T=L('<div class="time-container s-8"><!></div>'),bT=L('<div class="player-wrapper s-8" role="region"><!> <!> <!> <!> <!> <div><!></div></div>'),$T={hash:"s-8",code:".player-wrapper.s-8{height:100%;position:absolute;width:100%}.player-wrapper.s-8 .player-media{background:var(--black);height:100%;left:0;position:absolute;top:0;transition:transform .2s ease-in-out;width:100%}.timeline.s-8{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-8{opacity:1}.time-container.s-8{bottom:8px;position:absolute;right:8px;z-index:var(--thumb-timer-z-index)}"};function fg(t,e){B(e,!0),Q(t,$T);let[i,o]=Be(),r=()=>x(de,"$scrubbingInProgress",i),a=()=>x(J,"$playerSize",i),l=()=>x(E,"$isPlaying$",i),d=()=>x(A,"$duration$",i),s=()=>x(W,"$positionWithScrubbing$",i),u=()=>x(T,"$playerPhase",i),f=()=>x(R,"$crashed$",i),p=()=>x(z,"$currentSubtitle$",i),v=()=>x(U,"$currentSubtitleCaptions$",i),b=()=>x(P,"$positionExact$",i),y=()=>x(Y,"$isLive$",i),_=()=>x(te,"$isRewindableLive$",i),w=g(e,"outsideDuration",3,0),I=g(e,"videoContainer",15),{playerPhase:T,state:{crashed$:R,duration$:A,positionExact$:P,isPlaying$:E,currentSubtitle$:z,currentSubtitleCaptions$:U,positionWithScrubbing$:W,isLive$:Y,isRewindableLive$:te},ui:{playerSize:J,controls:oe,scrubbingInProgress:de},actions:{internal:{getVideoElement:ae}}}=xe(),pe=8,ee=K(!1),$e=ri({}),Ee=K(!1),ce=m(()=>!r()&&!n(Ee)),Qe=()=>{D(ee,!0)},fe=()=>{D(ee,!1)},ve=(0,w$.debounceFn)(nd,260);Fe(()=>{a(),ve(ae(),oe,$e,n(ee))});let X=m(()=>l()?en(d()-s()):en(isFinite(d())?d():w()));var N=bT(),me=C(N);vl(me,{hideCursor:!1,get videoContainer(){return I()},set videoContainer(we){I(we)}});var ue=k(me,2);za(ue,()=>"slot",!1,(we,He)=>{ro(we,()=>({name:ml}))});var Re=k(ue,2);let et=m(()=>u()!=="thumb"||f());ul(Re,{get hidden(){return n(et)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var Ae=k(Re,2);{var j=we=>{dl(we,{shifted:!1,get captions(){return v()},get position(){return b()},get playerSize(){return a()}})};M(Ae,we=>{p().value!=="off"&&n(ce)&&we(j)})}var ne=k(Ae,2);{var Se=we=>{var He=_T(),st=C(He);rc(st,{get isLive(){return y()},get isPlaying(){return l()},get time(){return n(X)}}),S(He),$(we,He)};M(ne,we=>{n(ce)&&we(Se)})}var Le=k(ne,2);let ze;var Ce=C(Le);sl(Ce,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return _()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:pe,tooltipRightOffset:pe,get ref(){return $e.timeline},set ref(we){$e.timeline=we}}),S(Le),S(N),O(we=>ze=ie(Le,1,"timeline s-8",null,ze,we),[()=>({visible:n(ee)})]),vt("mouseenter",N,Qe),vt("mouseleave",N,fe),vt("mouseenter",Le,()=>D(Ee,!0)),vt("mouseleave",Le,()=>D(Ee,!1)),$(t,N),F(),o()}var yT=L("<div><!></div>"),xT={hash:"s-4",code:'.vk-vp-root.s-4{--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-4{overflow:visible}.vk-vp-root.s-4 *{-webkit-tap-highlight-color:transparent}.vk-vp-root.s-4 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-4 p{margin:0}.vk-vp-root.s-4 svg:not(.interactive-root svg){pointer-events:none}.vk-vp-root.s-4 .interactive-root{font-family:var(--vk-vp-int-custom-font,inherit)}.vk-vp-root.s-4 :focus,.vk-vp-root.s-4 :focus-visible{outline:none}.vk-vp-root.s-4 :focus-visible{border-radius:var(--focused-outline-radius);box-shadow:var(--focused-element-shadow)}.vk-vp-root.s-4 .focus-hidden:focus-visible{box-shadow:none}.vk-vp-root.s-4 .hidden{opacity:0;visibility:hidden}.vk-vp-root.s-4 .out-of-flow{content-visibility:hidden!important}.vk-vp-root.s-4 .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-4 .out-of-view{left:-1000vh!important;position:absolute!important}.vk-vp-root.s-4 .icon.icon-error-stub{align-items:center;display:flex;justify-content:center}'};function mg(t,e){B(e,!0),Q(t,xT);let[i,o]=Be(),r=()=>x(ct,"$isLive$",i),a=()=>x(fi,"$availableSubtitlesList$",i),l=()=>x(We,"$isPreviewTrackHorizontallyAligned$",i),d=g(e,"sources",7),s=g(e,"store",7),u=g(e,"microStoresRoot",7),f=g(e,"videoConfig",7),p=g(e,"uiConfig",7),v=g(e,"title",7),b=g(e,"thumbUrl",7),y=g(e,"interactiveContainer",7),_=g(e,"interactiveController",7),w=g(e,"subtitles",7),I=g(e,"subtitlesForcedLanguage",7),T=g(e,"live",7),R=g(e,"preload",7),A=g(e,"autoplay",7),P=g(e,"volume",7,void 0),E=g(e,"muted",7,void 0),z=g(e,"fromTime",7),U=g(e,"canRewindLive",7),W=g(e,"showAds",7),Y=g(e,"adsSlotId",7,void 0),te=g(e,"adsParams",7,void 0),J=g(e,"adsAutoplayParam",7,void 0),oe=g(e,"duration",7,void 0),de=g(e,"logoClickable",7),ae=g(e,"logoHidden",7),pe=g(e,"isMobile",7),ee=g(e,"showNextPrevButtons",7,!1),$e=g(e,"nextButtonActive",7,!1),Ee=g(e,"prevButtonActive",7,!1),ce=g(e,"endScreenVideoTitle",7,void 0),Qe=g(e,"endScreenVideoThumb",7,void 0),fe=g(e,"isOneVideoPlaylist",7,!1),ve=g(e,"supportLink",7),X=g(e,"shadowRootContainer",7),N=g(e,"outerContainerRef",7),me=g(e,"fullScreenTarget",7,void 0),ue=g(e,"failoverHosts",7,void 0),Re=g(e,"showMiniTimer",7,!1),et=g(e,"saveRate",7),Ae=g(e,"seekToInteractive",7,gl.noop),j=g(e,"playPrevChapter",7,gl.noop),ne=g(e,"volumeMultiplier",7),Se=g(e,"showAutoplayNext",7),Le=g(e,"showEndScreen",7,!0),ze=g(e,"keyboardControls",15,void 0),{subscribers:Ce,stores:we}=u();g_(p());let He=Vt(),st=p().logoLink,pt=s().ui.debugPanelVisible,Rt=s().ui.playerSize,ct=s().state.isLive$,Ct=s().state.isInteractive&&dd.clientChecker.device.isAndroid,Ot=K(void 0),Nt=null,Gt=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}),I_(s(),we),Fe(()=>{var H,nt;s().ui.isMobile.set(pe()),(nt=(H=f().callbacks)==null?void 0:H.onDomReady)==null||nt.call(H)});let Te=(H=!1)=>{D(Gt,!0),H?s().actions.external.firstStart(W()):s().actions.internal.firstStart(W())},G=()=>{if(He.features.qualityDetailsSubMenuEnabled){let H=j_(s().videoId);if(H)switch(H.type){case"high_quality":s().actions.internal.setHighQualityEnabled(!0,H.appliesTo);break;case"traffic_saving":s().actions.internal.setTrafficSavingEnabled(!0,H.appliesTo);break;case"exact_quality":s().actions.internal.setQuality(H.quality);break}}else{X_(s().videoId),em()&&s().actions.internal.setTrafficSavingEnabled(!0);let nt=Xf(s().videoId);nt&&s().actions.internal.setQuality(nt)}};function Ne(H){var ai,vi,jt;let nt=d()||H;nt&&s().initVideo({container:n(Ot),sources:nt,failoverHosts:ue(),subtitles:w(),subtitlesForcedLanguage:I(),volumeMultiplier:ne()});let Wt=gl.safeStorage.get(Yd)==="true";pt.set(Wt),z()>0&&s().actions.external.seekTime(z());let mi=pe()?He.volumeDefault:(vi=(ai=P())!=null?ai:Uu())!=null?vi:He.volumeDefault,ut=(jt=E())!=null?jt:W_();if(s().actions.external.setVolume(mi),s().actions.external.setMuted(ut),s().getAdmanWrapper().setInitialVolume(ut?0:mi),G(),He.features.saveRate&&et()){let It=q_();It&&!r()&&s().actions.internal.setPlaybackRate(It)}if(Se()){let It=Y_();It&&s().actions.internal.setAutoplayNextEnabled(It)}s().ui.isAutoplay.set(A()),A()&&Te(),R()&&He.features.preload&&s().actions.internal.preload()}let be=H=>{if(window.ResizeObserver){let nt,Wt;Nt=new ResizeObserver((0,gl.throttleFn)(mi=>{let ut=mi[0];if(ut.contentBoxSize){let ai=Array.isArray(ut.contentBoxSize)?ut.contentBoxSize[0]:ut.contentBoxSize;nt=ai.inlineSize,Wt=ai.blockSize}else ut.contentRect&&(nt=ut.contentRect.width,Wt=ut.contentRect.height);Rt.set({width:nt,height:Wt})},300)),Nt.observe(H)}H.clientWidth&&H.clientHeight&&Rt.set({width:H.clientWidth,height:H.clientHeight})},Oe=()=>{document.hidden&&s().actions.external.stop()};Mt(()=>{var Wt,mi,ut,ai;Ct&&document.addEventListener("visibilitychange",Oe),He.debugLog&&s().actions.internal.startLogging(),be(n(Ot));let H=Ce.map(vi=>vi.init({store:s(),microStores:we,config:f(),interactiveController:_(),uiConfig:p()})),nt=()=>{Ct&&document.removeEventListener("visibilitychange",Oe),Nt==null||Nt.disconnect(),H.forEach(vi=>vi.unsubscribe()),s().destroy()};return((Wt=T())==null?void 0:Wt.status)==="upcoming"?(s().actions.internal.setLiveWaitingStart(!0),nt):((mi=T())==null?void 0:mi.status)==="waiting"?(s().actions.internal.setLiveWaitingRecover(!0),nt):(((ut=T())==null?void 0:ut.status)==="finished"||((ai=T())==null?void 0:ai.status)==="postlive")&&!(d()&&(0,dd.areValidLiveRecordSources)(d()))?(s().actions.internal.setLiveWaitingRecord(!0),nt):(Ne(),nt)});function Ie(){n(Gt)?s().actions.external.play():Te(!0)}function bt(){s().actions.external.pause()}function ye(H){s().actions.external.setMuted(H)}function qe(){s().actions.external.toggleSubtitle()}function Ue(H,nt){s().actions.external.changeSubtitle(H,nt)}function at(H){s().actions.external.changeAudioStream(H)}function Yt(){var H;(H=s().webApi.slotsApi)!=null&&H.haveSlots()&&s().actions.external.hideControls()}function At(){var H;(H=s().webApi.slotsApi)!=null&&H.haveSlots()&&s().actions.external.showControls()}function Xt(H){pe()||H>=0&&H<=1&&s().actions.external.setVolume(H)}function yi(H){s().actions.internal.seekTime(H,S$.SeekAction.UNKNOWN)}function Ri(H){s().actions.external.seekEpisodeStartTime(H)}function Li(){s().actions.external.returnFocusToEpisodes()}function Zi(H){s().actions.external.setPlaybackRate(H)}function si(H){s().actions.external.setAutoQualityLimits(H)}function ft(){s().actions.external.setQuality("auto")}function di(H){s().actions.external.setTrafficSavingEnabled(H)}function Ji(H){s().actions.external.setHighQualityEnabled(H)}let Pt=pp(He.view),bi=f().playerView==="preview",fi=s().state.availableSubtitlesList$;if(He.features.initSubtitles){let H=!1;Fe(()=>{var nt;if(!H&&a().length){H=!0;let Wt;if(He.features.userVideoPrefs&&s().videoId){let ut=Qu(He.userSalt,String(s().videoId));ut!=null&&ut.subtitleTrackId&&(Wt=a().find(ai=>ai.value===ut.subtitleTrackId))}let mi=(nt=I())!=null?nt:im();mi&&(Wt=a().find(ut=>ut.language===mi)),s().actions.internal.setSubtitle(Wt)}})}let We=s().ui.isPreviewTrackHorizontallyAligned;var lt=yT();let Ii;var eo=C(lt);{var xo=H=>{pg(H,{get store(){return s()},get uiConfig(){return He},get thumbUrl(){return b()},get interactiveContainer(){return y()},get live(){return T()},get autoplay(){return A()},get canRewindLive(){return U()},get showAds(){return W()},get adsSlotId(){return Y()},get adsParams(){return te()},get adsAutoplayParam(){return J()},get duration(){return oe()},get logoClickable(){return de()},get logoHidden(){return ae()},get logoTargetUrl(){return st},get nextButtonActive(){return $e()},get prevButtonActive(){return Ee()},get endScreenVideoTitle(){return ce()},get endScreenVideoThumb(){return Qe()},get isOneVideoPlaylist(){return fe()},get supportLink(){return ve()},get shadowRootContainer(){return X()},get outerContainerRef(){return N()},get fullScreenTarget(){return me()},get showMiniTimer(){return Re()},get playerStarted(){return n(Gt)},get seekToInteractive(){return Ae()},get playPrevChapter(){return j()},firstStart:Te,seekTime:yi,get showEndScreen(){return Le()},get showAutoplayNext(){return Se()},get showNextPrevButtons(){return ee()},get adsExternalApi(){return e.adsExternalApi},get adsJson(){return e.adsJson},get videoContainer(){return n(Ot)},set videoContainer(nt){D(Ot,nt,!0)}})},Ro=H=>{var nt=Ve(),Wt=le(nt);{var mi=ai=>{fg(ai,{get thumbUrl(){return b()},get outsideDuration(){return oe()},get canRewindLive(){return U()},get videoContainer(){return n(Ot)},set videoContainer(vi){D(Ot,vi,!0)}})},ut=ai=>{cg(ai,{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 A()},get canRewindLive(){return U()},get showAds(){return W()},get adsSlotId(){return Y()},get adsParams(){return te()},get adsAutoplayParam(){return J()},get duration(){return oe()},get logoClickable(){return de()},get logoHidden(){return ae()},get logoTargetUrl(){return st},get nextButtonActive(){return $e()},get prevButtonActive(){return Ee()},get endScreenVideoTitle(){return ce()},get endScreenVideoThumb(){return Qe()},get isOneVideoPlaylist(){return fe()},get supportLink(){return ve()},get shadowRootContainer(){return X()},get outerContainerRef(){return N()},get fullScreenTarget(){return me()},get showMiniTimer(){return Re()},get playerStarted(){return n(Gt)},get seekToInteractive(){return Ae()},get playPrevChapter(){return j()},firstStart:Te,get showEndScreen(){return Le()},get showAutoplayNext(){return Se()},get showNextPrevButtons(){return ee()},get adsExternalApi(){return e.adsExternalApi},get adsJson(){return e.adsJson},get getVideoDeeplink(){return e.getVideoDeeplink},get videoContainer(){return n(Ot)},set videoContainer(vi){D(Ot,vi,!0)},get keyboardControls(){return ze()},set keyboardControls(vi){ze(vi)}})};M(Wt,ai=>{bi?ai(mi):ai(ut,!1)})}$(H,nt)};M(eo,H=>{pe()?H(xo):H(Ro,!1)})}S(lt),O(H=>{Ii=ie(lt,1,"vk-vp-root s-4",null,Ii,H),Ke(lt,Pt)},[()=>({"root--miui-browser":dd.clientChecker.device.isMobile&&dd.clientChecker.browser.isMiuiBrowser,"visible-outside":bi,"preview-track-horizontally-alinged":l()})]),$(t,lt);var vn=F({initVideo:Ne,play:Ie,pause:bt,setMuted:ye,toggleSubtitle:qe,changeSubtitle:Ue,changeAudioStream:at,hideControls:Yt,showControls:At,setVolume:Xt,seekTime:yi,seekEpisodeStartTime:Ri,returnFocusToEpisodes:Li,setPlaybackRate:Zi,setAutoQualityLimits:si,setAutoQuality:ft,toggleTrafficSaving:di,toggleHighQuality:Ji,get sources(){return d()},set sources(H){d(H)},get store(){return s()},set store(H){s(H)},get microStoresRoot(){return u()},set microStoresRoot(H){u(H)},get videoConfig(){return f()},set videoConfig(H){f(H)},get uiConfig(){return p()},set uiConfig(H){p(H)},get title(){return v()},set title(H){v(H)},get thumbUrl(){return b()},set thumbUrl(H){b(H)},get interactiveContainer(){return y()},set interactiveContainer(H){y(H)},get interactiveController(){return _()},set interactiveController(H){_(H)},get subtitles(){return w()},set subtitles(H){w(H)},get subtitlesForcedLanguage(){return I()},set subtitlesForcedLanguage(H){I(H)},get live(){return T()},set live(H){T(H)},get preload(){return R()},set preload(H){R(H)},get autoplay(){return A()},set autoplay(H){A(H)},get volume(){return P()},set volume(H){P(H)},get muted(){return E()},set muted(H){E(H)},get fromTime(){return z()},set fromTime(H){z(H)},get canRewindLive(){return U()},set canRewindLive(H){U(H)},get showAds(){return W()},set showAds(H){W(H)},get adsSlotId(){return Y()},set adsSlotId(H){Y(H)},get adsParams(){return te()},set adsParams(H){te(H)},get adsAutoplayParam(){return J()},set adsAutoplayParam(H){J(H)},get duration(){return oe()},set duration(H){oe(H)},get logoClickable(){return de()},set logoClickable(H){de(H)},get logoHidden(){return ae()},set logoHidden(H){ae(H)},get isMobile(){return pe()},set isMobile(H){pe(H)},get showNextPrevButtons(){return ee()},set showNextPrevButtons(H){ee(H)},get nextButtonActive(){return $e()},set nextButtonActive(H){$e(H)},get prevButtonActive(){return Ee()},set prevButtonActive(H){Ee(H)},get endScreenVideoTitle(){return ce()},set endScreenVideoTitle(H){ce(H)},get endScreenVideoThumb(){return Qe()},set endScreenVideoThumb(H){Qe(H)},get isOneVideoPlaylist(){return fe()},set isOneVideoPlaylist(H){fe(H)},get supportLink(){return ve()},set supportLink(H){ve(H)},get shadowRootContainer(){return X()},set shadowRootContainer(H){X(H)},get outerContainerRef(){return N()},set outerContainerRef(H){N(H)},get fullScreenTarget(){return me()},set fullScreenTarget(H){me(H)},get failoverHosts(){return ue()},set failoverHosts(H){ue(H)},get showMiniTimer(){return Re()},set showMiniTimer(H){Re(H)},get saveRate(){return et()},set saveRate(H){et(H)},get showAutoplayNext(){return Se()},set showAutoplayNext(H){Se(H)},get seekToInteractive(){return Ae()},set seekToInteractive(H){Ae(H)},get playPrevChapter(){return j()},set playPrevChapter(H){j(H)},get volumeMultiplier(){return ne()},set volumeMultiplier(H){ne(H)},get showEndScreen(){return Le()},set showEndScreen(H){Le(H)},get keyboardControls(){return ze()},set keyboardControls(H){ze(H)}});return o(),vn}var wT=ke('<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 vg(t,e){let i=g(e,"isWhite",3,!1),o=m(()=>i()?"#fff":"#909499");Xe(t,{width:"57",height:"60",get fill(){return n(o)},testId:"stub-icon",children:(r,a)=>{var l=wT();Jt(9),$(r,l)},$$slots:{default:!0}})}var ST=L('<div class="title s-2"> </div>'),CT=L('<div class="playerStub s-2"><!> <!></div>'),TT={hash:"s-2",code:".playerStub.s-2{align-items:center;background-color:#222;background-position:50%;background-size:cover;display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;height:100%;justify-content:center;position:relative;width:100%}.title.s-2{box-sizing:border-box;color:#fff;font-size:15px;left:0;overflow:hidden;padding:18px 20px 10px;position:absolute;text-overflow:ellipsis;top:0;white-space:nowrap;width:100%}"};function gg(t,e){Q(t,TT);var i=CT(),o=C(i);{var r=d=>{var s=ST(),u=C(s,!0);S(s),O(()=>he(u,e.title)),$(d,s)};M(o,d=>{e.title&&d(r)})}var a=k(o,2);{var l=d=>{let s=m(()=>!!e.thumbUrl);vg(d,{get isWhite(){return n(s)}})};M(a,d=>{(!e.title||!e.thumbUrl)&&d(l)})}S(i),O(()=>Ke(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),$(t,i)}var IT=L('<div class="playerError s-1"><!></div>'),ET={hash:"s-1",code:".playerError.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%}"};function hg(t){Q(t,ET);var e=IT(),i=C(e);cl(i,{}),S(e),$(t,e)}var Sa=require("@vkontakte/videoplayer-shared/es2015"),Xi=require("@vkontakte/videoplayer-shared/es2015"),eu=require("@vkontakte/videoplayer-core/es2015"),fd=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()}};function Qc(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 C$="Inner error. Unexpectedly root annotation container null reference exception",T$="Annotation with such name already exists",I$="Annotation with such name does not exist";var cd=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var ud=require("@vkontakte/videoplayer-shared/es2015"),PT="1",kT=100,Ap=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new ud.Subscription}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=(0,ud.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,ud.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 cd(C$);if(this.annotations.has(e))throw new cd(T$);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 cd(I$);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 hl=require("@vkontakte/videoplayer-shared/es2015"),mn=class{init({store:e,microStores:i,interactiveController:o,config:r}){return(0,hl.assertNonNullable)(e),(0,hl.assertNonNullable)(i),(0,hl.assertNonNullable)(r),r.interactiveData&&(0,hl.assertNonNullable)(o),this.subscription=new hl.Subscription,this.subscription}};var qc=class extends mn{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$=ti(Ye({},se(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 Gc=class extends mn{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$=ti(Ye({},se(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:f}=a.ui,p=_e(f),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 Yc=class extends mn{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=se("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 E$=require("@vkontakte/videoplayer-shared/es2015");var _g=se(!1),Lp=null,jc=class extends mn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$=ti(Ye({},_g),{set:(i,o=!1)=>{i!==_e(_g)&&(this.clearTimeout(),_g.set(i),!i&&Lp&&(Lp=!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 f=(a==null?void 0:a.interactiveData)||{tooltipHelpHintActive:!1};return o.add((0,E$.combine)({isPlaying$:d,isInteractiveTime$:l,interactiveTimeIndicator:u}).subscribe(({isPlaying$:p,isInteractiveTime$:v,interactiveTimeIndicator:b})=>{var y,_;if(!(!p||!(b!=null&&b.isDisplayed))){if(!v)return this.state$.set(!1);f.tooltipHelpHintActive&&Lp===null&&(Lp=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),(_=(y=r.callbacks)==null?void 0:y.onInteractiveTimeIndicatorHintDeactivated)==null||_.call(y))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};var Mp=require("@vkontakte/videoplayer-shared/es2015");var Xc=class extends mn{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$=ti(Ye({},se(null)),{toggle:Mp.noop});this.checkIfShouldHide=i=>Ws(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=()=>yt(this,null,function*(){if(this.checkIfShouldHide(_e(l)))return;let s=_e(this.state$),{isEnded$:u,playbackState$:f}=r.state,{disabledControls$:p}=r.ui.controls,v=_e(u),b=_e(f);if(s)try{yield a==null?void 0:a.toggleGraphView(!1),this.state$.set(!1),p.remove(Wf),!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(Wf),!v&&this.graphMadePause&&r.actions.internal.pause()}catch(y){d({message:"Cant show graph"})}}}),o.add((0,Mp.combine)({graphIsOpened:this.state$,currentGridType:l}).subscribe(f=>yt(this,[f],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 bg=require("@vkontakte/videoplayer-shared/es2015"),Zc=class extends mn{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:se(!1),isEnabled$:se(!1),type$:se(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 bg.ValueSubject(!1),isEnabled$:new bg.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 Rp=require("@vkontakte/videoplayer-shared/es2015");var Vp=require("@vkontakte/videoplayer-shared/es2015");var P$=({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,Vp.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(Vp.safeStorage.get(e)||"{}")}catch(a){return{}}},o=a=>Vp.safeStorage.set(e,JSON.stringify(a)),r=a=>{let l=i();delete l[a],o(l)};return{notificationShowed:a=>{o(ti(Ye({},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 Jc=class extends mn{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:se({}),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=P$({maxShowCount:a,timeout:l});let u=r.getPlayer();return o.add(u.events.severeStallOccured$.pipe((0,Rp.filterChanged)(),(0,Rp.filter)(f=>f)).subscribe(()=>{d&&!u.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(s&&r.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var k$=()=>[qc,Gc,Yc,jc,Xc,Zc,Jc].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:ti(Ye({},e),{[o.stateName]:o.state$})}},{subscribers:[],stores:{}});var pd=require("@vkontakte/videoplayer-shared/es2015");var Dp=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 Op=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 Dp(()=>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=L('<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 $g(t,e){B(e,!0),Q(t,VT);let i=null,o=K(null);Fe(()=>(n(o)&&(i=window.setTimeout(()=>{D(o,null)},e.animationDuration)),()=>{i&&clearTimeout(i)}));function r(s){e.playbackStatusShow&&D(o,s?"prev":"next",!0)}var a=Ve(),l=le(a);{var d=s=>{var u=Ve(),f=le(u);Ns(f,()=>n(o),p=>{var v=MT(),b=C(v);let y=m(()=>n(o)==="prev");Kc(b,{get duration(){return e.animationDuration},get Icon(){return ya},get reversed(){return n(y)}}),S(v),$(p,v)}),$(s,u)};M(l,s=>{e.playbackStatusShow&&n(o)&&s(d)})}return $(t,a),F({startVideoChangedAnimation:r})}var A$=require("@vkontakte/videoplayer-shared/es2015"),yg=(0,A$.getWindow)().HTMLElement||class{constructor(){this.isConnected=!1}};var RT=Object.defineProperty,DT=Object.defineProperties,OT=Object.getOwnPropertyDescriptors,L$=Object.getOwnPropertySymbols,NT=Object.prototype.hasOwnProperty,BT=Object.prototype.propertyIsEnumerable,wg=(t,e,i)=>e in t?RT(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,_l=(t,e)=>{for(var i in e||(e={}))NT.call(e,i)&&wg(t,i,e[i]);if(L$)for(var i of L$(e))BT.call(e,i)&&wg(t,i,e[i]);return t},FT=(t,e)=>DT(t,OT(e)),qt=(t,e,i)=>wg(t,typeof e!="symbol"?e+"":e,i),Np=(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())}),HT={preload:!0,autoplay:!1,repeat:!1,loop:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:Xi.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:(0,eu.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},ir=K(void 0),xg=ri({animationDuration:0,playbackStatusShow:!1}),Bp=class extends yg{constructor(){super(),qt(this,"svelteStubComponent"),qt(this,"svelteRootComponent"),qt(this,"sveltePersistentLayerComponent"),qt(this,"svelteErrorComponent"),qt(this,"store"),qt(this,"microStoresRoot"),qt(this,"statistics"),qt(this,"_shadowRoot"),qt(this,"playerContainer"),qt(this,"rootContainer"),qt(this,"stateContainer"),qt(this,"shadowRootContainer"),qt(this,"playerId"),qt(this,"uiConfig"),qt(this,"coreConfig"),qt(this,"statisticsConfig"),qt(this,"metaConfig"),qt(this,"interactiveController"),qt(this,"interactiveContainer"),qt(this,"graphMadePause"),qt(this,"currentPlayingVideoIndex",0),qt(this,"needToRepeatPlaylist",!1),qt(this,"videoConfig"),qt(this,"pictureInPictureApi"),qt(this,"mediaSessionApi"),qt(this,"unsubscribePlayerPhaseSubscription"),qt(this,"logger"),qt(this,"log"),qt(this,"subscription"),qt(this,"interactiveSubscription"),qt(this,"annotationsApi"),qt(this,"slotsApi"),qt(this,"focusManager"),qt(this,"prevIsid"),qt(this,"isInited",!1),qt(this,"postponedInitParams",null),qt(this,"internalsExposure",null),qt(this,"shadowDOMCallbacksDisabled",!1),qt(this,"fatalError$",new Sa.ValueSubject(null)),qt(this,"createOneStat",(e,i={})=>{var o,r,a,l;if(!this.videoConfig)return;let{albumId:d,statPlace:s,statUserSalt:u,statTrackCode:f,statVKAppId:p,refreshStatAuthToken:v,autoplay:b,isMobile:y,isTouch:_,refDomain:w,deviceId:I,interactiveData:T}=Qc(this.videoConfig,i),R=(o=T==null?void 0:T.projectInfo)==null?void 0:o.pid,A=(a=(r=this.interactiveController)==null?void 0:r.state.isReplay$.getValue())!=null?a:!1;A&&(this.prevIsid=void 0);let{unitedVideoId:P,isClip:E=!1}=e;if(this.uiConfig.features.statistics&&P)try{return new fd.OneStat(_l({movieId:P,albumId:d,place:s,trackCode:f,vkAppId:p,autoplay:(l=b&&!this.interactiveController)!=null?l:!1,mobile:_!=null?_:y,clip:E,refDomain:w,deviceId:I,isPreviewPlayerView:this.videoConfig.playerView==="preview"},R&&(!this.isInited||A)&&{projectId:Number(R)}),_l({refreshAuthToken:v,userSalt:u,config:this.statisticsConfig},this.interactiveController&&{useIsid:!0,isid:this.prevIsid}))}catch(U){console.error(U),this.log({message:U.message})}}),pd.devNull.create("ui"),this.logger=new Xi.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new Xi.Subscription,this.interactiveSubscription=new Xi.Subscription,this.graphMadePause=!1,this.fatalError$.subscribe(e=>{this.unmountComponent(this.svelteErrorComponent),e&&(this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.svelteErrorComponent=is(hg,{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=ri({title:o,thumbUrl:r}),l={target:this.playerContainer,props:a};this.svelteStubComponent=is(gg,l),this.sveltePersistentLayerComponent=is($g,{target:this.playerContainer,props:xg}),this.postponedInitParams&&(this.initPlayer(...this.postponedInitParams),this.postponedInitParams=null)}updatePersistentLayerProps(){if(!this.uiConfig)return;let{playbackStatusNextVideoAnimationDuration:e,features:{playbackStatusShow:i,playbackStatusNextVideoShow:o}}=this.uiConfig;xg.animationDuration=e,xg.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(),pd.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}=Qc(this.videoConfig,i),{unitedVideoId:l}=e;if(this.uiConfig.features.thinStatistics&&l)return new fd.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,f,p,v,b;if(!this.videoConfig)return;let{albumId:y,statPlace:_,statAuthToken:w,preload:I,autoplay:T,volume:R,muted:A,fromTime:P,canRewindLive:E,supportLink:z,showAds:U,adsSlotId:W,adsParams:Y={},adsAutoplayParam:te,interfaceLanguage:J,isCyrillicRelatedInterface:oe,logoClickable:de,logoHidden:ae,isMobile:pe,isTouch:ee,isAudioDisabled:$e,isLiveCatchUpMode:Ee,fullScreenTarget:ce,failoverHosts:Qe,canDownload:fe,callbacks:ve,interactiveData:X,showThumbTimer:N,additionalButtons:me=[],additionalSettingsMenuItems:ue=[],additionalContextMenuItems:Re=[],repeat:et,loop:Ae,saveRate:j,volumeMultiplier:ne,showEndScreen:Se,showAutoplayNext:Le,mediascopePixels:ze}=Qc(this.videoConfig,i),{sources:Ce,title:we,thumbUrl:He,unitedVideoId:st,isClip:pt=!1,duration:Rt,adsParams:ct={},videoEpisodes:ni,previewThumbsData:Ct,subtitles:Ot,subtitlesForcedLanguage:Nt,live:Gt,adsExternalApi:Te,adsJson:G}=e;if(!Ce&&!Gt){let si=new Error("empty sources and live");this.fatalError$.next(si),(r=ve.onCrashed)==null||r.call(ve,si.message);return}let Ne=_l(_l({},Y),ct),be=this.getNextVideoInfo(),Oe={sources:Ce,title:we,thumbUrl:He,subtitles:Ot,subtitlesForcedLanguage:Nt,unitedVideoId:st,isClip:pt,live:Gt,albumId:y,statPlace:_,autoplay:T,muted:A,volume:R,fromTime:P,canRewindLive:E,showAds:U,adsSlotId:W,adsParams:Ne,adsAutoplayParam:te,duration:Rt,logoClickable:de,logoHidden:ae,isTouch:ee!=null?ee:pe,repeat:et,loop:Ae,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:be.nextVideoTitle,endScreenVideoThumb:be.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Ie={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi,focusManager:this.focusManager};this.log({message:`create player, props: ${JSON.stringify(Oe)}`});let bt=(a=this.interactiveController)==null?void 0:a.state.statistics$.getValue(),ye=(bt==null?void 0:bt.oneStat)||this.createOneStat(e,i),qe=this.createThinOneStat(e,i),Ue;ze&&(Ue=new fd.MediascopePixel({pixels:ze})),(ye||qe)&&(this.statistics=new gp(ye,qe,Ue,bt==null?void 0:bt.statSubscription));let at=this.uiConfig.features.apptracer.enabled?new Sa.AppTracer("videoplayer",this.uiConfig.features.apptracer,{version:Qa,env:Bu},(0,Sa.withoutNullable)({movieId:st,albumId:y,place:_,autoplay:(l=T&&!this.interactiveController)!=null?l:!1,mobile:ee!=null?ee:pe,clip:pt})):void 0;this.interactiveController&&((u=this.prevIsid)!=null||(this.prevIsid=(s=(d=this.statistics)==null?void 0:d.oneStat)==null?void 0:s.isid$.getValue()));let Yt=!!X,At=[],Xt="tooltip_interactive_go_back_disabled_first";if(Yt&&this.interactiveController){let si=this.interactiveController.state.isInitialChapter$.getValue(),ft=this.interactiveController.getHistoryState();si&&At.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||At.push("SEEK_TO_INTERACTIVE_BUTTON"),ft.hasPrevChapter$.getValue()||(At.push("PLAY_PREV_CHAPTER_BUTTON"),si||(ft.isGoBackLimited$.getValue()?Xt="tooltip_interactive_go_back_disabled_limit":Xt="tooltip_interactive_go_back_disabled"))}let yi=()=>{var si;this.isInited=!1,this.prevIsid=void 0;let ft=(o==null?void 0:o.info.isEnded$.getValue())&&((si=this.interactiveController)==null?void 0:si.state.isEndChapter$.getValue());ve.onReplayInteractiveVideo&&!ft?ve.onReplayInteractiveVideo():this.replayInteractiveVideo()},Ri=et&&this.videoConfig.videos.length===1;this.store=Fb({player:o,interfaceLanguage:J,isCyrillicRelatedInterface:oe,videoId:st,isClip:pt,isLiveCatchUpMode:Ee,isAudioDisabled:$e,statAuthToken:w,callbacks:ve,webApi:Ie,videoEpisodes:ni,previewThumbsData:Ct,canDownload:fe,uiConfig:this.uiConfig,coreConfig:this.coreConfig,metaConfig:this.metaConfig,disabledControls:At,isInteractive:Yt,saveRate:j,interactiveRanges$:(f=this.interactiveController)==null?void 0:f.state.interactiveRanges$,isInteractiveTime$:(p=this.interactiveController)==null?void 0:p.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:yi,playPrevChapterDisabledTooltip:Xt,hasInteractiveBranches:!!((b=(v=this.interactiveController)==null?void 0:v.getChapterBranches())!=null&&b.length),additionalButtons:this.uiConfig.features.additionalButtons?me:[],additionalSettingsMenuItems:ue!=null?ue:[],additionalContextMenuItems:Re!=null?Re:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),onVideoChanged:si=>{var ft;return(ft=this.sveltePersistentLayerComponent)==null?void 0:ft.startVideoChangedAnimation(si)},looped:this.uiConfig.features.useLoopSetting?Ae:Ri,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView,playerId:this.playerId,appTracer:at});let{stores:Li}=this.microStoresRoot=k$(),Zi=()=>{var si,ft,di,Ji,Pt,bi;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(We=>{var lt;return(lt=ve==null?void 0:ve.onCurrentFormatChanged)==null?void 0:lt.call(ve,We)})),this.subscription.add(Li.interactiveControlsOpacity$.subscribe(We=>{var lt;We!==null&&((lt=this==null?void 0:this.interactiveController)==null||lt.setDisabledControls(We))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(We=>{var lt;return(lt=ve==null?void 0:ve.onThroughputEstimationChanged)==null?void 0:lt.call(ve,We)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(We=>{var lt;return(lt=ve==null?void 0:ve.onTrafficSavingEnabledChanged)==null?void 0:lt.call(ve,We)})),this.subscription.add(this.store.state.highQualityEnabled$.subscribe(We=>{var lt;return(lt=ve==null?void 0:ve.onHighQualityEnabledChanged)==null?void 0:lt.call(ve,We)})),this.subscription.add(this.store.state.isAutoQualityEnabled$.subscribe(We=>{var lt;return(lt=ve==null?void 0:ve.onAutoQualityEnabledChanged)==null?void 0:lt.call(ve,!!We)})),this.subscription.add(new Xi.Observable(We=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(lt=>We.next(lt)))}).pipe((0,Xi.skip)(1)).subscribe(We=>{var lt;return(lt=ve==null?void 0:ve.onCurrentPlaybackRateChanged)==null?void 0:lt.call(ve,We)})),this.subscription.add(this.store.state.volume$.subscribe(We=>{var lt;return(lt=ve==null?void 0:ve.onVolumeChange)==null?void 0:lt.call(ve,We)})),this.subscription.add(this.store.state.muted$.subscribe(We=>{var lt,Ii,eo,xo;if(We)(lt=ve==null?void 0:ve.onMute)==null||lt.call(ve);else{let Ro=(eo=((Ii=this.store)==null?void 0:Ii.state.volume$)&&_e(this.store.state.volume$))!=null?eo:0;(xo=ve==null?void 0:ve.onUnmute)==null||xo.call(ve,Ro)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(We=>{var lt;return(lt=ve==null?void 0:ve.onVideoBitrateChanged)==null?void 0:lt.call(ve,We)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(We=>{var lt;let Ii=(lt=this.store)==null?void 0:lt.ui.controls.disabledControls$;Ii&&(We&&!Ii.includes(jd)&&Ii.add(jd),We||Ii.remove(jd))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(We=>Np(this,null,function*(){var lt;if(!eu.clientChecker.browser.isSamsungBrowser||!We||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&(yield this.replayInteractiveChapter((lt=this.videoConfig)==null?void 0:lt.callbacks.onExternalFullscreenExit))}))),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(We=>{var lt;return(lt=ve==null?void 0:ve.onVSIDChanged)==null?void 0:lt.call(ve,We)})),this.initMediaSession(),D(ir,{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:Ce,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:we,thumbUrl:He,subtitles:Ot,subtitlesForcedLanguage:Nt,live:Gt,preload:I,autoplay:T,muted:A,volume:R,fromTime:P,canRewindLive:E,supportLink:z,showAds:U,adsSlotId:W,adsParams:Ne,adsAutoplayParam:te,duration:Rt,logoClickable:de,logoHidden:ae,isMobile:ee!=null?ee:pe,failoverHosts:Qe,fullScreenTarget:ce,saveRate:j,shadowRootContainer:this.shadowRootContainer,showMiniTimer:N,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:be.nextVideoTitle,endScreenVideoThumb:be.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:ne,showEndScreen:Se,showAutoplayNext:Le,adsExternalApi:Te,adsJson:G,getVideoDeeplink:this.videoConfig.getVideoDeeplink},!0);let fi={target:this.playerContainer,props:n(ir)};this.svelteRootComponent=is(mg,fi),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(di=(ft=(si=this.videoConfig)==null?void 0:si.callbacks)==null?void 0:ft.onInited)==null||di.call(ft)),(Ji=this.internalsExposure)==null||Ji.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((bi=(Pt=this.videoConfig)==null?void 0:Pt.callbacks)!=null&&bi.onDevNullLog)?pd.devNull.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):pd.devNull.destroy("ui")};this.coreConfig.asyncResolveClientChecker?eu.clientChecker.isInited$.subscribe(si=>{si&&(console.log("UI SDK async start"),Zi())}):Zi()}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,f;vp(this.pictureInPictureApi)&&this.uiConfig.features.dpip&&!((s=this.videoConfig)!=null&&s.playerView)&&o.actions.external.setMinimalMode(d),d?(u=a.onPiPEnter)==null||u.call(a):(f=a.onPiPExit)==null||f.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["theater-mode-button"].subscribe(d=>{var s;return(s=l.onTheaterModeChanged)==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,Xi.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 Np(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:f,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:f,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$:_}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(_.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]=FT(_l({},I.config),{title:(f==null?void 0:f.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 R,A,P,E,z,U;if(!this.store||!this.microStoresRoot)return;let W=y.getValue();if(I==="action-choice"&&T==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(Xd)),I==="action-choice-canceled"){let Y=_e(this.store.state.isPlaying$)||W;if(((P=(R=this.videoConfig)==null?void 0:R.isTouch)!=null?P:(A=this.videoConfig)!=null&&A.isMobile)&&Y){this.store.ui.interactiveHideMobileControls.set(!0);return}(U=(E=this.videoConfig)==null?void 0:(z=E.callbacks).onDisabledInteractiveClick)==null||U.call(z)}})),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(Xd)})),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 R,A,P;T.length&&((P=(A=(R=this.videoConfig)==null?void 0:R.callbacks)==null?void 0:A.onInteractiveHistoryChanged)==null||P.call(A,T))}))}(l=(a=this.videoConfig)==null?void 0:a.callbacks)!=null&&l.onInteractiveChapterChanged&&this.subscription.add(this.interactiveController.events.chapterChanged$.subscribe(I=>{var T,R,A;(A=(T=this.videoConfig)==null?void 0:(R=T.callbacks).onInteractiveChapterChanged)==null||A.call(R,I.chapter,I.manifestVideo)})),this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var I,T,R,A;(I=this.microStoresRoot)==null||I.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(A=(T=this.videoConfig)==null?void 0:(R=T.callbacks).onInteractiveTimeIndicatorClick)==null||A.call(R)})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(I=>{this.log({message:I.toString()})}))}catch(d){this.log({message:d.message})}})}initPlayer(e,i={}){var o,r,a,l,d,s,u,f,p,v,b,y,_,w,I,T,R,A,P,E;if(!this.isConnected){this.postponedInitParams=[e,i];return}if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData){let z=new Error("empty videos");this.fatalError$.next(z),(r=(o=e.callbacks)==null?void 0:o.onCrashed)==null||r.call(o,z.message);return}else this.fatalError$.next(null);this.videoConfig=Qc(HT,(0,Xi.cloneDeepWith)(e,z=>z instanceof yg?z:void 0)),this.playerId=(0,Xi.getPlayerId)(e.playerId),this.uiConfig=v_((a=i.ui)!=null?a:{}),this.updatePersistentLayerProps(),this.coreConfig=(l=i.core)!=null?l:{},this.statisticsConfig=(d=i.statistics)!=null?d:{},this.metaConfig=i.meta,this.uiConfig.features.forcePlayerDisplayBlock&&(this.rootContainer&&(this.rootContainer.style.minHeight="unset"),this.style.display="block",this.style.width="100%",this.style.height="100%"),this.videoConfig.playerView==="preview"&&(this.playerContainer.style.contain="none"),this.uiConfig.features.exposeInternalsToGlobal&&((s=this.internalsExposure)!=null||(this.internalsExposure=new Xi.InternalsExposure("ui",this.playerId))),pd.devNull.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+((u=this.videoConfig)==null?void 0:u.showAds)],numbers:[(0,Sa.now)()]}),(0,Xi.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(p=(f=this.uiConfig.features.mediaSession)!=null?f:this.videoConfig.isMediaSessionEnabled)!=null?p:!0),this.uiConfig.ads.paramsOverride=_l({preview:(v=this.uiConfig.ads.preview)!=null?v:this.videoConfig.adsPreviewParam},this.uiConfig.ads.paramsOverride),this.videoConfig.isTouch=(y=(b=this.uiConfig.isMobile)!=null?b:this.videoConfig.isTouch)!=null?y:this.videoConfig.isMobile,(_=this.videoConfig).autoplay&&(_.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(w=this.uiConfig.ads.enable)!=null?w:this.videoConfig.showAds,this.videoConfig.adsSlotId=(I=this.uiConfig.ads.slot)!=null?I:this.videoConfig.adsSlotId,this.videoConfig.logoHidden=!((T=this.uiConfig.showLogo)!=null?T:!this.videoConfig.logoHidden),(R=this.videoConfig).canRewindLive&&(R.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(A=this.videoConfig.supportLink)!=null?A: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&&((P=this.videoConfig.videos)!=null&&P[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip&&(this.pictureInPictureApi=tv(this.videoConfig.pipEnabled!==!1,this.uiConfig.features.dpip)),this.mediaSessionApi=this.uiConfig.features.mediaSession?new Pp:void 0,this.slotsApi=this.uiConfig.features.slots?new Tp(this.uiConfig.disabledSlotIds):void 0,this.annotationsApi=this.uiConfig.features.annotations?new Ap(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),this.focusManager=this._shadowRoot?new Op(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]),vp(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(E=this.slotsApi)==null||E.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(ir)&&(n(ir).showNextPrevButtons=this.needToShowNextPrevButtons(),n(ir).nextButtonActive=this.isNextButtonActive(),n(ir).prevButtonActive=this.isPrevButtonActive(),n(ir).endScreenVideoTitle=o.nextVideoTitle,n(ir).endScreenVideoThumb=o.nextVideoThumb,n(ir).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}=_l({},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(ir)&&(n(ir).needToRepeatPlaylist=this.needToRepeatPlaylist,n(ir).showNextPrevButtons=this.needToShowNextPrevButtons(),n(ir).nextButtonActive=this.isNextButtonActive(),n(ir).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 Np(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 Np(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,Xi.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&&Ua(e)}};var md=require("@vkontakte/videoplayer-shared/es2015"),Fp=require("@vkontakte/videoplayer-core/es2015"),UT=()=>{window.customElements.define("vk-video-player",Bp)};
|