@vkontakte/videoplayer 1.1.77-dev.8f11014e.0 → 1.1.77
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es2015.cjs.js +35 -35
- package/es2015.esm.js +35 -35
- package/es2018.cjs.js +35 -35
- package/es2018.esm.js +35 -35
- package/es2024.cjs.js +32 -32
- package/es2024.esm.js +32 -32
- package/esnext.cjs.js +32 -32
- package/esnext.esm.js +32 -32
- package/evergreen.esm.js +32 -32
- package/package.json +5 -5
- package/types/VKVideoPlayer/index.svelte.d.ts +0 -1
- package/types/config.d.ts +0 -8
- package/types/store/index.d.ts +1 -2
- package/types/types/index.d.ts +0 -4
- package/types/utils/webAPI/slotsApi.d.ts +2 -9
package/es2015.cjs.js
CHANGED
|
@@ -1,63 +1,63 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vkontakte/videoplayer v1.1.77
|
|
3
|
-
*
|
|
2
|
+
* @vkontakte/videoplayer v1.1.77
|
|
3
|
+
* Fri, 14 Nov 2025 11:47:34 GMT
|
|
4
4
|
* https://st.mycdn.me/static/vkontakte-videoplayer/1-1-77/doc/
|
|
5
5
|
*/
|
|
6
|
-
"use strict";var
|
|
6
|
+
"use strict";var k$=Object.create;var xd=Object.defineProperty,L$=Object.defineProperties,M$=Object.getOwnPropertyDescriptor,V$=Object.getOwnPropertyDescriptors,R$=Object.getOwnPropertyNames,bg=Object.getOwnPropertySymbols,N$=Object.getPrototypeOf,$g=Object.prototype.hasOwnProperty,O$=Object.prototype.propertyIsEnumerable;var yg=t=>{throw TypeError(t)};var qp=(t,e,i)=>e in t?xd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Ae=(t,e)=>{for(var i in e||(e={}))$g.call(e,i)&&qp(t,i,e[i]);if(bg)for(var i of bg(e))O$.call(e,i)&&qp(t,i,e[i]);return t},Qt=(t,e)=>L$(t,V$(e));var D$=(t,e)=>{for(var i in e)xd(t,i,{get:e[i],enumerable:!0})},xg=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of R$(e))!$g.call(t,r)&&r!==i&&xd(t,r,{get:()=>e[r],enumerable:!(o=M$(e,r))||o.enumerable});return t};var wg=(t,e,i)=>(i=t!=null?k$(N$(t)):{},xg(e||!t||!t.__esModule?xd(i,"default",{value:t,enumerable:!0}):i,t)),B$=t=>xg(xd({},"__esModule",{value:!0}),t);var lr=(t,e,i)=>qp(t,typeof e!="symbol"?e+"":e,i),Qp=(t,e,i)=>e.has(t)||yg("Cannot "+i);var Oi=(t,e,i)=>(Qp(t,e,"read from private field"),i?i.call(t):e.get(t)),Qs=(t,e,i)=>e.has(t)?yg("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),xl=(t,e,i,o)=>(Qp(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),Sg=(t,e,i)=>(Qp(t,e,"access private method"),i);var _t=(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 CC={};D$(CC,{ControlButtonType:()=>Sc,GridTypes:()=>es,InterfaceLanguage:()=>_d.InterfaceLanguage,MenuItemType:()=>Jl,PlayerPhase:()=>ts,VERSION:()=>Da,VKNumericLanguage:()=>_d.VKNumericLanguage,VideoFormat:()=>Fp.VideoFormat,VideoQuality:()=>Fp.VideoQuality,loadVKLangPack:()=>_d.loadVKLangPack,registerPlayerWebComponent:()=>TC});module.exports=B$(CC);var Gs="[",Ys="[!",ya="]",ps={};var eo=Symbol(),Kn=Symbol("filename"),Tg=Symbol("hmr"),Cg="http://www.w3.org/1999/xhtml",lu="http://www.w3.org/2000/svg";var Gp="@attach";var du=!0;var Eg,Pg,Ig=(Pg=(Eg=globalThis.process)==null?void 0:Eg.env)==null?void 0:Pg.NODE_ENV,ke=Ig&&!Ig.toLowerCase().startsWith("prod");var dr=Array.isArray,Ag=Array.prototype.indexOf,wd=Array.from,Yp=Object.keys,go=Object.defineProperty,jo=Object.getOwnPropertyDescriptor,cu=Object.getOwnPropertyDescriptors,jp=Object.prototype,kg=Array.prototype,xa=Object.getPrototypeOf,Xp=Object.isExtensible;function js(t){return typeof t=="function"}var bt=()=>{};function Lg(t){return t()}function Xs(t){for(var e=0;e<t.length;e++)t[e]()}var Xo=Symbol("$state"),wl=Symbol("legacy props"),Mg=Symbol(""),uu=Symbol("proxy path"),pu=1,Sl=3,cr=8;function fu(t){return t===this.v}function Tl(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Vg(t,e){return t!==e}function Cl(t){return!Tl(t,this.v)}function Rg(){if(ke){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 t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/derived_references_self")}function
|
|
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 Ng(t){if(ke){let e=new Error(`effect_in_teardown
|
|
9
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
|
|
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 Og(){if(ke){let t=new Error("effect_in_unowned_derived\nEffect cannot be created inside a `$derived` value that was not itself created inside an effect\nhttps://svelte.dev/e/effect_in_unowned_derived");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Dg(t){if(ke){let e=new Error(`effect_orphan
|
|
11
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
|
|
12
|
+
https://svelte.dev/e/effect_orphan`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_orphan")}function Bg(){if(ke){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 t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function
|
|
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 Fg(){if(ke){let t=new Error(`hydration_failed
|
|
15
15
|
Failed to hydrate the application
|
|
16
|
-
https://svelte.dev/e/hydration_failed`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/hydration_failed")}function
|
|
16
|
+
https://svelte.dev/e/hydration_failed`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/hydration_failed")}function Hg(){if(ke){let t=new Error("invalid_snippet\nCould not `{@render}` snippet due to the expression being `null` or `undefined`. Consider using optional chaining `{@render snippet?.()}`\nhttps://svelte.dev/e/invalid_snippet");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/invalid_snippet")}function Ug(t){if(ke){let e=new Error(`props_invalid_value
|
|
17
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
|
|
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 zg(t){if(ke){let e=new Error(`props_rest_readonly
|
|
19
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
|
|
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 Wg(t){if(ke){let e=new Error(`rune_outside_svelte
|
|
21
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
|
|
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 Kg(){if(ke){let t=new Error("state_descriptors_fixed\nProperty descriptors defined on `$state` objects must contain `value` and always be `enumerable`, `configurable` and `writable`.\nhttps://svelte.dev/e/state_descriptors_fixed");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function qg(){if(ke){let t=new Error("state_prototype_fixed\nCannot set prototype of `$state` object\nhttps://svelte.dev/e/state_prototype_fixed");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Qg(){if(ke){let t=new Error("state_unsafe_mutation\nUpdating state inside `$derived(...)`, `$inspect(...)` or a template expression is forbidden. If the value should not be reactive, declare it without `$state`\nhttps://svelte.dev/e/state_unsafe_mutation");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_unsafe_mutation")}var fs=!1,ms=!1;function Gg(){fs=!0}var Sd=null;function ws(t){let e=Error(),i=e.stack;if(i){let o=i.split(`
|
|
23
23
|
`),r=[`
|
|
24
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;go(e,"stack",{value:r.join(`
|
|
25
|
-
`)}),go(e,"name",{value:`${t}Error`})}return e}function
|
|
25
|
+
`)}),go(e,"name",{value:`${t}Error`})}return e}function Qr(t,e){return t.label=e,mu(t.v,e),t}function mu(t,e){var i;return(i=t==null?void 0:t[uu])==null||i.call(t,e),t}function Il(t){if(ke){let e=new Error(`lifecycle_outside_component
|
|
26
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 zt=null;function Td(t){zt=t}var
|
|
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 zt=null;function Td(t){zt=t}var ur=null;function Cd(t){ur=t}function El(t){return ef("getContext").get(t)}function Pl(t,e){return ef("setContext").set(t,e),e}function Id(){return ef("getAllContexts")}function F(t,e=!1,i){var o=zt={p:zt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};fs&&!e&&(zt.l={s:null,u:null,r1:[],r2:kr(!1)}),Ao(()=>{o.d=!0}),ke&&(zt.function=i,ur=i)}function H(t){var l,d;let e=zt;if(e!==null){t!==void 0&&(e.x=t);let s=e.e;if(s!==null){var i=xt,o=Ot;e.e=null;try{for(var r=0;r<s.length;r++){var a=s[r];ho(a.effect),Yi(a.reaction),ko(a.fn)}}finally{ho(i),Yi(o)}}zt=e.p,ke&&(ur=(d=(l=e.p)==null?void 0:l.function)!=null?d:null),e.m=!0}return t||{}}function vs(){return!fs||zt!==null&&zt.l===null}function ef(t){var e;return zt===null&&Il(t),(e=zt.c)!=null?e:zt.c=new Map(H$(zt)||void 0)}function H$(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var U$=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function ci(t){if(typeof t!="object"||t===null||Xo in t)return t;let e=xa(t);if(e!==jp&&e!==kg)return t;var i=new Map,o=dr(t),r=K(0),a=ke&&ms?ws("CreatedAt"):null,l=Ot,d=p=>{var m=Ot;Yi(l);var f=p();return Yi(m),f};o&&i.set("length",K(t.length,a));var s="";function u(p){s=p,Qr(r,`${s} version`);for(let[m,f]of i)Qr(f,wa(s,m))}return new Proxy(t,{defineProperty(p,m,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&Kg();var b=i.get(m);return b===void 0?b=d(()=>{var y=K(f.value,a);return i.set(m,y),ke&&typeof m=="string"&&Qr(y,wa(s,m)),y}):N(b,f.value,!0),!0},deleteProperty(p,m){var f=i.get(m);if(f===void 0){if(m in p){let $=d(()=>K(eo,a));i.set(m,$),tf(r),ke&&Qr($,wa(s,m))}}else{if(o&&typeof m=="string"){var b=i.get("length"),y=Number(m);Number.isInteger(y)&&y<b.v&&N(b,y)}N(f,eo),tf(r)}return!0},get(p,m,f){var S;if(m===Xo)return t;if(ke&&m===uu)return u;var b=i.get(m),y=m in p;if(b===void 0&&(!y||(S=jo(p,m))!=null&&S.writable)&&(b=d(()=>{var C=ci(y?p[m]:eo),I=K(C,a);return ke&&Qr(I,wa(s,m)),I}),i.set(m,b)),b!==void 0){var $=n(b);return $===eo?void 0:$}return Reflect.get(p,m,f)},getOwnPropertyDescriptor(p,m){var f=Reflect.getOwnPropertyDescriptor(p,m);if(f&&"value"in f){var b=i.get(m);b&&(f.value=n(b))}else if(f===void 0){var y=i.get(m),$=y==null?void 0:y.v;if(y!==void 0&&$!==eo)return{enumerable:!0,configurable:!0,value:$,writable:!0}}return f},has(p,m){var $;if(m===Xo)return!0;var f=i.get(m),b=f!==void 0&&f.v!==eo||Reflect.has(p,m);if(f!==void 0||xt!==null&&(!b||($=jo(p,m))!=null&&$.writable)){f===void 0&&(f=d(()=>{var S=b?ci(p[m]):eo,C=K(S,a);return ke&&Qr(C,wa(s,m)),C}),i.set(m,f));var y=n(f);if(y===eo)return!1}return b},set(p,m,f,b){var O;var y=i.get(m),$=m in p;if(o&&m==="length")for(var S=f;S<y.v;S+=1){var C=i.get(S+"");C!==void 0?N(C,eo):S in p&&(C=d(()=>K(eo,a)),i.set(S+"",C),ke&&Qr(C,wa(s,S)))}if(y===void 0)(!$||(O=jo(p,m))!=null&&O.writable)&&(y=d(()=>K(void 0,a)),N(y,ci(f)),i.set(m,y),ke&&Qr(y,wa(s,m)));else{$=y.v!==eo;var I=d(()=>ci(f));N(y,I)}var R=Reflect.getOwnPropertyDescriptor(p,m);if(R!=null&&R.set&&R.set.call(b,f),!$){if(o&&typeof m=="string"){var E=i.get("length"),P=Number(m);Number.isInteger(P)&&P>=E.v&&N(E,P+1)}tf(r)}return!0},ownKeys(p){n(r);var m=Reflect.ownKeys(p).filter(y=>{var $=i.get(y);return $===void 0||$.v!==eo});for(var[f,b]of i)b.v!==eo&&!(f in p)&&m.push(f);return m},setPrototypeOf(){qg()}})}function wa(t,e){var i;return typeof e=="symbol"?`${t}[Symbol(${(i=e.description)!=null?i:""})]`:U$.test(e)?`${t}.${e}`:/^\d+$/.test(e)?`${t}[${e}]`:`${t}['${e}']`}function tf(t,e=1){N(t,t.v+e)}function Al(t){try{if(t!==null&&typeof t=="object"&&Xo in t)return t[Xo]}catch(e){}return t}function of(t,e){return Object.is(Al(t),Al(e))}function Gr(t){var e=2050,i=Ot!==null&&(Ot.f&2)!==0?Ot:null;xt===null||i!==null&&(i.f&256)!==0?e|=256:xt.f|=1048576;let o={ctx:zt,deps:null,effects:null,equals:fu,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:xt};return ke&&ms&&(o.created=ws("CreatedAt")),o}function v(t){let e=Gr(t);return hu(e),e}function En(t){let e=Gr(t);return e.equals=Cl,e}function vu(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)ji(e[i])}}var nf=[];function z$(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function af(t){var e,i=xt;if(ho(z$(t)),ke){let o=Sa;rf(new Set);try{nf.includes(t)&&Rg(),nf.push(t),vu(t),e=gu(t)}finally{ho(i),rf(o),nf.pop()}}else try{vu(t),e=gu(t)}finally{ho(i)}return e}function lf(t){var e=af(t);if(t.equals(e)||(t.v=e,t.wv=Ed()),!Ss){var i=(Ts||(t.f&256)!==0)&&t.deps!==null?4096:1024;Pn(t,i)}}var Sa=new Set,kl=new Map;function rf(t){Sa=t}function kr(t,e){var i={f:0,v:t,reactions:null,equals:fu,rv:0,wv:0};return ke&&ms&&(i.created=e!=null?e:ws("CreatedAt"),i.updated=null,i.set_during_effect=!1,i.trace=null),i}function K(t,e){let i=kr(t,e);return hu(i),i}function gs(t,e=!1,i=!0){var r,a;let o=kr(t);return e||(o.equals=Cl),fs&&i&&zt!==null&&zt.l!==null&&((a=(r=zt.l).s)!=null?a:r.s=[]).push(o),o}function N(t,e,i=!1){var r;Ot!==null&&(!mr||(Ot.f&262144)!==0)&&vs()&&(Ot.f&262162)!==0&&!((r=Jo)!=null&&r[1].includes(t)&&Jo[0]===Ot)&&Qg();let o=i?ci(e):e;return ke&&mu(o,t.label),Ll(t,o)}function Ll(t,e){if(!t.equals(e)){var i=t.v;if(Ss?kl.set(t,e):kl.set(t,i),t.v=e,ke&&ms&&(t.updated=ws("UpdatedAt"),xt!==null&&(t.set_during_effect=!0)),(t.f&2)!==0&&((t.f&2048)!==0&&af(t),Pn(t,(t.f&256)===0?1024:4096)),t.wv=Ed(),jg(t,2048),vs()&&xt!==null&&(xt.f&1024)!==0&&(xt.f&96)===0&&(fr===null?Xg([t]):fr.push(t)),ke&&Sa.size>0){let o=Array.from(Sa);for(let r of o)(r.f&1024)!==0&&Pn(r,4096),Ca(r)&&Ml(r);Sa.clear()}}return e}function jg(t,e){var i=t.reactions;if(i!==null)for(var o=vs(),r=i.length,a=0;a<r;a++){var l=i[a],d=l.f;if((d&2048)===0&&!(!o&&l===xt)){if(ke&&(d&262144)!==0){Sa.add(l);continue}Pn(l,e),(d&1280)!==0&&((d&2)!==0?jg(l,4096):Ad(l))}}}var Vl="font-weight: bold",Rl="font-weight: normal";function Zg(t,e,i){ke?console.warn(`%c[svelte] hydration_attribute_changed
|
|
28
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`,
|
|
29
|
+
https://svelte.dev/e/hydration_attribute_changed`,Vl,Rl):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function Jg(t){ke?console.warn(`%c[svelte] hydration_html_changed
|
|
30
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`,
|
|
31
|
+
https://svelte.dev/e/hydration_html_changed`,Vl,Rl):console.warn("https://svelte.dev/e/hydration_html_changed")}function Zs(t){ke?console.warn(`%c[svelte] hydration_mismatch
|
|
32
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`,
|
|
33
|
+
https://svelte.dev/e/hydration_mismatch`,Vl,Rl):console.warn("https://svelte.dev/e/hydration_mismatch")}function eh(){ke?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`,
|
|
35
|
+
https://svelte.dev/e/lifecycle_double_unmount`,Vl,Rl):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function th(){ke?console.warn("%c[svelte] select_multiple_invalid_value\n%cThe `value` property of a `<select multiple>` element should be an array, but it received a non-array value. The selection will be kept as is.\nhttps://svelte.dev/e/select_multiple_invalid_value",Vl,Rl):console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function _u(t){ke?console.warn(`%c[svelte] state_proxy_equality_mismatch
|
|
36
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`,
|
|
37
|
+
https://svelte.dev/e/state_proxy_equality_mismatch`,Vl,Rl):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var it=!1;function _o(t){it=t}var wt;function Ei(t){if(t===null)throw Zs(),ps;return wt=t}function Xi(){return Ei(en(wt))}function w(t){if(it){if(en(wt)!==null)throw Zs(),ps;wt=t}}function vi(t=1){if(it){for(var e=t,i=wt;e--;)i=en(i);wt=i}}function Ia(){for(var t=0,e=wt;;){if(e.nodeType===cr){var i=e.data;if(i===ya){if(t===0)return e;t-=1}else(i===Gs||i===Ys)&&(t+=1)}var o=en(e);e.remove(),e=o}}function bu(t){if(!t||t.nodeType!==cr)throw Zs(),ps;return t.data}function ih(){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(Al(this[s])===a){_u("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(Al(this[s])===a){_u("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(Al(this[s])===a){_u("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=r}}var Ea,oh,kd,nh,rh;function $u(){if(Ea===void 0){Ea=window,oh=document,kd=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;nh=jo(e,"firstChild").get,rh=jo(e,"nextSibling").get,Xp(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),Xp(i)&&(i.__t=void 0),ke&&(t.__svelte_meta=null,ih())}}function An(t=""){return document.createTextNode(t)}function Pi(t){return nh.call(t)}function en(t){return rh.call(t)}function T(t,e){if(!it)return Pi(t);var i=Pi(wt);if(i===null)i=wt.appendChild(An());else if(e&&i.nodeType!==Sl){var o=An();return i==null||i.before(o),Ei(o),o}return Ei(i),i}function de(t,e){var r,a;if(!it){var i=Pi(t);return i.nodeType===8&&i.data===""?en(i):i}if(e&&((r=wt)==null?void 0:r.nodeType)!==Sl){var o=An();return(a=wt)==null||a.before(o),Ei(o),o}return wt}function k(t,e=1,i=!1){let o=it?wt:t;for(var r;e--;)r=o,o=en(o);if(!it)return o;if(i&&(o==null?void 0:o.nodeType)!==Sl){var a=An();return o===null?r==null||r.after(a):o.before(a),Ei(a),a}return Ei(o),o}function Ld(t){t.textContent=""}function uf(t){xt===null&&Ot===null&&Dg(t),Ot!==null&&(Ot.f&256)!==0&&xt===null&&Og(),Ss&&Ng(t)}function W$(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function Pa(t,e,i,o=!0){var s;var r=xt;if(ke)for(;r!==null&&(r.f&262144)!==0;)r=r.parent;var a={ctx:zt,deps:null,nodes_start:null,nodes_end:null,f:t|2048,first:null,fn:e,last:null,next:null,parent:r,prev:null,teardown:null,transitions:null,wv:0};if(ke&&(a.component_function=ur),i)try{Ml(a),a.f|=32768}catch(u){throw ji(a),u}else e!==null&&Ad(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&&W$(a,r),Ot!==null&&(Ot.f&2)!==0)){var d=Ot;((s=d.effects)!=null?s:d.effects=[]).push(a)}return a}function Ao(t){let e=Pa(8,null,!1);return Pn(e,1024),e.teardown=t,e}function De(t){var r;uf("$effect");var e=xt!==null&&(xt.f&32)!==0&&zt!==null&&!zt.m;if(ke&&go(t,"name",{value:"$effect"}),e){var i=zt;((r=i.e)!=null?r:i.e=[]).push({fn:t,effect:xt,reaction:Ot})}else{var o=ko(t);return o}}function Rd(t){return uf("$effect.pre"),ke&&go(t,"name",{value:"$effect.pre"}),tn(t)}function wu(t){let e=Pa(64,t,!0);return()=>{ji(e)}}function ah(t){let e=Pa(64,t,!0);return(i={})=>new Promise(o=>{i.outro?Yn(e,()=>{ji(e),o(void 0)}):(ji(e),o(void 0))})}function ko(t){return Pa(4,t,!1)}function tn(t){return Pa(8,t,!0)}function B(t,e=[],i=Gr){if(ke)return tn(()=>{var r=xt,a=()=>t(...l.map(n));go(r.fn,"name",{value:"{expression}"}),go(a,"name",{value:"{expression}"});let l=e.map(i);Zi(a)});let o=e.map(i);return Zi(()=>t(...o.map(n)))}function Zi(t,e=0){return Pa(24|e,t,!0)}function Di(t,e=!0){return Pa(40,t,!0,e)}function pf(t){var e=t.teardown;if(e!==null){let i=Ss,o=Ot;df(!0),Yi(null);try{e.call(null)}finally{df(i),Yi(o)}}}function ff(t,e=!1){var i=t.first;for(t.first=t.last=null;i!==null;){var o=i.next;(i.f&64)!==0?i.parent=null:ji(i,e),i=o}}function lh(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&ji(e),e=i}}function ji(t,e=!0){var i=!1;(e||(t.f&524288)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(mf(t.nodes_start,t.nodes_end),i=!0),ff(t,e&&!i),Nd(t,0),Pn(t,16384);var o=t.transitions;if(o!==null)for(let a of o)a.stop();pf(t);var r=t.parent;r!==null&&r.first!==null&&vf(t),ke&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function mf(t,e){for(;t!==null;){var i=t===e?null:en(t);t.remove(),t=i}}function vf(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 Yn(t,e){var i=[];Su(t,i,!0),gf(i,()=>{ji(t),e&&e()})}function gf(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var r of t)r.out(o)}else e()}function Su(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;Su(o,e,a?i:!1),o=r}}}function Is(t){dh(t,!0)}function dh(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;dh(i,r?e:!1),i=o}if(t.transitions!==null)for(let a of t.transitions)(a.is_global||e)&&a.in()}}var Od=[],hf=[];function ch(){var t=Od;Od=[],Xs(t)}function K$(){var t=hf;hf=[],Xs(t)}function kn(t){Od.length===0&&queueMicrotask(ch),Od.push(t)}function uh(){Od.length>0&&ch(),hf.length>0&&K$()}function fh(t){var e=xt;if(ke&&t instanceof Error&&q$(t,e),(e.f&32768)===0){if((e.f&128)===0)throw t;e.fn(t)}else Dd(t,e)}function Dd(t,e){for(;e!==null;){if((e.f&128)!==0)try{e.fn(t);return}catch(i){}e=e.parent}throw t}var ph=new WeakSet;function q$(t,e){var l,d;if(ph.has(t))return;ph.add(t);let i=jo(t,"message");if(!(i&&!i.configurable)){for(var o=kd?" ":" ",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[Kn].split("/").pop()}`,a=a.p;go(t,"message",{value:t.message+`
|
|
40
40
|
${r}
|
|
41
41
|
`}),t.stack&&go(t,"stack",{value:t.stack.split(`
|
|
42
42
|
`).filter(s=>!s.includes("svelte/src/internal")).join(`
|
|
43
|
-
`)})}}var Ea=!1,Vl=null,Pa=!1,Ss=!1;function cf(t){Ss=t}var Bd=[],Fd=[],Ot=null,$r=!1;function qi(t){Ot=t}var yt=null;function ho(t){yt=t}var Xo=null;function _u(t){Ot!==null&&Ot.f&2097152&&(Xo===null?Xo=[Ot,[t]]:Xo[1].push(t))}var kn=null,yr=0,br=null;function Jg(t){br=t}var _h=1,Iu=0,Ts=!1,Eu=null;function Ed(){return++_h}function Sa(t){var m,f;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&&yt!==null&&!Ts,s=i.length;if(l||d){var u=t,p=u.parent;for(r=0;r<s;r++)a=i[r],(l||!((m=a==null?void 0:a.reactions)!=null&&m.includes(u)))&&((f=a.reactions)!=null?f:a.reactions=[]).push(u);l&&(u.f^=512),d&&p!==null&&(p.f&256)===0&&(u.f^=256)}for(r=0;r<s;r++)if(a=i[r],Sa(a)&&df(a),a.wv>t.wv)return!0}(!o||yt!==null&&!Ts)&&En(t,1024)}return!1}function bh(t,e,i=!0){var o=t.reactions;if(o!==null)for(var r=0;r<o.length;r++){var a=o[r];Xo!=null&&Xo[1].includes(t)&&Xo[0]===Ot||((a.f&2)!==0?bh(a,e,!1):e===a&&(i?En(a,2048):(a.f&1024)!==0&&En(a,4096),Ad(a)))}}function hu(t){var b,y;var e=kn,i=yr,o=br,r=Ot,a=Ts,l=Xo,d=zt,s=$r,u=t.f;kn=null,yr=0,br=null,Ts=(u&256)!==0&&($r||!Pa||Ot===null),Ot=(u&96)===0?t:null,Xo=null,Td(t.ctx),$r=!1,Iu++,t.f|=2097152;try{var p=(0,t.fn)(),m=t.deps;if(kn!==null){var f;if(Nd(t,yr),m!==null&&yr>0)for(m.length=yr+kn.length,f=0;f<kn.length;f++)m[yr+f]=kn[f];else t.deps=m=kn;if(!Ts||(u&2)!==0&&t.reactions!==null)for(f=yr;f<m.length;f++)((y=(b=m[f]).reactions)!=null?y:b.reactions=[]).push(t)}else m!==null&&yr<m.length&&(Nd(t,yr),m.length=yr);if(ps()&&br!==null&&!$r&&m!==null&&(t.f&6146)===0)for(f=0;f<br.length;f++)bh(br[f],t);return r!==null&&r!==t&&(Iu++,br!==null&&(o===null?o=br:o.push(...br))),p}catch($){vh($)}finally{kn=e,yr=i,br=o,Ot=r,Ts=a,Xo=l,Td(d),$r=s,t.f^=2097152}}function Y$(t,e){let i=e.reactions;if(i!==null){var o=Lg.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&&(kn===null||!kn.includes(e))&&(En(e,4096),(e.f&768)===0&&(e.f^=512),gu(e),Nd(e,0))}function Nd(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)Y$(t,i[o])}function kl(t){var e=t.f;if((e&16384)===0){En(t,1024);var i=yt,o=Pa;if(yt=t,Pa=!0,ke){var r=hr;Cd(t.component_function)}try{(e&16)!==0?ch(t):mf(t),ff(t);var a=hu(t);if(t.teardown=typeof a=="function"?a:null,t.wv=_h,ke&&us&&(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);ke&&Fd.push(t)}finally{Pa=o,yt=i,ke&&Cd(r)}}}function gh(){console.error("Last ten effects were: ",Fd.slice(-10).map(t=>t.fn)),Fd=[]}function j$(){try{Hg()}catch(t){if(ke&&go(t,"stack",{value:""}),Vl!==null)if(ke)try{Dd(t,Vl)}catch(e){throw gh(),e}else Dd(t,Vl);else throw ke&&gh(),t}}function $f(){var t=Pa;try{var e=0;for(Pa=!0;Bd.length>0;){e++>1e3&&j$();var i=Bd,o=i.length;Bd=[];for(var r=0;r<o;r++){var a=Z$(i[r]);X$(a)}Pl.clear()}}finally{Ea=!1,Pa=t,Vl=null,ke&&(Fd=[])}}function X$(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];(o.f&24576)===0&&Sa(o)&&(kl(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?gf(o):o.fn=null))}}function Ad(t){Ea||(Ea=!0,queueMicrotask($f));for(var e=Vl=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 Z$(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:Sa(i)&&kl(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 Rl(t){var e;for(t&&(Ea=!0,$f(),Ea=!0,e=t());;){if(fh(),Bd.length===0)return Ea=!1,Vl=null,ke&&(Fd=[]),e;Ea=!0,$f()}}function bo(){return gt(this,null,function*(){yield Promise.resolve(),Rl()})}function n(t){var e=t.f,i=(e&2)!==0;if(Eu!==null&&Eu.add(t),Ot!==null&&!$r){if(!(Xo!=null&&Xo[1].includes(t))||Xo[0]!==Ot){var o=Ot.deps;t.rv<Iu&&(t.rv=Iu,kn===null&&o!==null&&o[yr]===t?yr++:kn===null?kn=[t]:(!Ts||!kn.includes(t))&&kn.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,Sa(r)&&df(r)),ke&&us&&!$r&&Sd!==null&&Ot!==null&&Sd.reaction===Ot)if(t.trace)t.trace();else{var l=ws("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 Ss&&Pl.has(t)?Pl.get(t):t.v}function kt(t){var e=$r;try{return $r=!0,t()}finally{$r=e}}var J$=-7169;function En(t,e){t.f=t.f&J$|e}function Au(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Yo in t)Pu(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Yo 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=$a(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 yf(t,e){if(e){let i=document.body;t.autofocus=!0,An(()=>{document.activeElement===i&&t.focus()})}}function Hd(t){var e=Ot,i=yt;qi(null),ho(null);try{return t()}finally{qi(e),ho(i)}}var xf=new Set,ku=new Set;function Aa(t){if(!it)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 wf(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"?An(()=>{e.addEventListener(t,r,o)}):e.addEventListener(t,r,o),r}function _t(t,e,i,o,r){var a={capture:o,passive:r},l=wf(t,e,i,a);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Vo(()=>{e.removeEventListener(t,l,a)})}function st(t){for(var e=0;e<t.length;e++)xf.add(t[e]);for(var i of ku)i(t)}function Nl(t){var I;var e=this,i=e.ownerDocument,o=t.type,r=((I=t.composedPath)==null?void 0:I.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){go(t,"currentTarget",{configurable:!0,get(){return a||i}});var p=Ot,m=yt;qi(null),ho(null);try{for(var f,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[S,...C]=$;S.apply(a,[t,...C])}else $.call(a,t)}catch(R){f?b.push(R):f=R}if(t.cancelBubble||y===e||y===null)break;a=y}if(f){for(let R of b)queueMicrotask(()=>{throw R});throw f}}finally{t.__root=e,delete t.currentTarget,qi(p),ho(m)}}}var t1;function $h(){t1=void 0}function Ol(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function No(t,e){var i=yt;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(it)return No(xt,null),xt;r===void 0&&(r=Ol(a?t:"<!>"+t),i||(r=Pi(r)));var l=o||kd?document.importNode(r,!0):r.cloneNode(!0);if(i){var d=Pi(l),s=l.lastChild;No(d,s)}else No(l,l);return l}}function n1(t,e,i="svg"){var o=!t.startsWith("<!>"),r=(e&1)!==0,a=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(it)return No(xt,null),xt;if(!l){var d=Ol(a),s=Pi(d);if(r)for(l=document.createDocumentFragment();Pi(s);)l.appendChild(Pi(s));else l=Pi(s)}var u=l.cloneNode(!0);if(r){var p=Pi(u),m=u.lastChild;No(p,m)}else No(u,u);return u}}function Ee(t,e){return n1(t,e,"svg")}function ms(t=""){if(!it){var e=Pn(t+"");return No(e,e),e}var i=xt;return i.nodeType!==xl&&(i.before(i=Pn()),Ei(i)),No(i,i),i}function Le(){if(it)return No(xt,null),xt;var t=document.createDocumentFragment(),e=document.createComment(""),i=Pn();return t.append(e,i),No(e,i),t}function _(t,e){if(it){yt.nodes_end=xt,Gi();return}t!==null&&t.before(e)}var r1=/\r/g;function xh(t){t=t.replace(r1,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function wh(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var s1=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Sh(t){return s1.includes(t)}var a1=["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 l1={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 Th(t){var e;return t=t.toLowerCase(),(e=l1[t])!=null?e:t}var hP=[...a1,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var d1=["touchstart","touchmove"];function Ch(t){return d1.includes(t)}var c1=["$state","$state.raw","$derived","$derived.by"],_P=[...c1,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var u1=["textarea","script","style","title"];function Ih(t){return u1.includes(t)}function Lu(t){return t==null?void 0:t.replace(/\//g,"/")}var Ud=!0;function Mu(t){Ud=t}function pe(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 jr(t,e){return Eh(t,e)}function Tf(t,e){var l;yu(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=it,r=xt;try{for(var a=Pi(i);a&&(a.nodeType!==gr||a.data!==Qs);)a=Zo(a);if(!a)throw ds;_o(!0),Ei(a),Gi();let d=Eh(t,qt(Ae({},e),{anchor:a}));if(xt===null||xt.nodeType!==gr||xt.data!==ba)throw Xs(),ds;return _o(!1),d}catch(d){if(d===ds)return e.recover===!1&&Ug(),yu(),Ld(i),_o(!1),jr(t,e);throw d}finally{_o(o),Ei(r),$h()}}var Dl=new Map;function Eh(t,{target:e,anchor:i,props:o={},events:r,context:a,intro:l=!0}){yu();var d=new Set,s=m=>{for(var f=0;f<m.length;f++){var b=m[f];if(!d.has(b)){d.add(b);var y=Ch(b);e.addEventListener(b,Nl,{passive:y});var $=Dl.get(b);$===void 0?(document.addEventListener(b,Nl,{passive:y}),Dl.set(b,1)):Dl.set(b,$+1)}}};s(wd(xf)),ku.add(s);var u=void 0,p=dh(()=>{var m=i!=null?i:e.appendChild(Pn());return Ri(()=>{if(a){F({});var f=zt;f.c=a}r&&(o.$$events=r),it&&No(m,null),Ud=l,u=t(m,o)||{},Ud=!0,it&&(yt.nodes_end=xt),a&&H()}),()=>{var y;for(var f of d){e.removeEventListener(f,Nl);var b=Dl.get(f);--b===0?(document.removeEventListener(f,Nl),Dl.delete(f)):Dl.set(f,b)}ku.delete(s),m!==i&&((y=m.parentNode)==null||y.removeChild(m))}});return Sf.set(u,p),u}var Sf=new WeakMap;function ka(t,e){let i=Sf.get(t);return i?(Sf.delete(t),i(e)):(ke&&ih(),Promise.resolve())}function si(t,e,...i){var o=t,r=ht,a;Yi(()=>{r!==(r=e())&&(a&&(Qi(a),a=null),ke&&r==null&&zg(),a=Ri(()=>r(o,...i)))},65536),it&&(o=xt)}if(ke){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;qg(e)},set:o=>{i=o}})}};v1=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var v1;function Dt(t){zt===null&&Tl("onMount"),cs&&zt.l!==null?m1(zt).m.push(t):De(()=>{let e=kt(t);if(typeof e=="function")return e})}function vn(t){zt===null&&Tl("onDestroy"),Dt(()=>()=>kt(t))}function m1(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}var Ph=new Map;function Ah(t,e){var i=Ph.get(t);i||(i=new Set,Ph.set(t,i)),i.add(e)}function V(t,e,[i,o]=[0,0]){it&&i===0&&Gi();var r=t,a=null,l=null,d=Ji,s=i>0?65536:0,u=!1;let p=(f,b=!0)=>{u=!0,m(b,f)},m=(f,b)=>{if(d===(d=f))return;let y=!1;if(it&&o!==-1){if(i===0){let S=$u(r);S===Qs?o=0:S===Gs?o=1/0:(o=parseInt(S.substring(1)),o!==o&&(o=d?1/0:-1))}let $=o>i;!!d===$&&(r=Ta(),Ei(r),_o(!1),y=!0,o=-1)}d?(a?Is(a):b&&(a=Ri(()=>b(r))),l&&Xn(l,()=>{l=null})):(l?Is(l):b&&(l=Ri(()=>b(r,[i+1,o]))),a&&Xn(a,()=>{a=null})),y&&_o(!0)};Yi(()=>{u=!1,e(p),u||m(null,null)},s),it&&(r=xt)}function Es(t,e,i){it&&Gi();var o=t,r=Ji,a,l=ps()?Ng:wl;Yi(()=>{l(r,r=e())&&(a&&Xn(a),a=Ri(()=>i(o)))}),it&&(o=xt)}var Js=null;function Ef(t){Js=t}function zd(t,e){return e}function _1(t,e,i,o){for(var r=[],a=e.length,l=0;l<a;l++)Tu(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(),Zs(t,e[0].prev,e[a-1].next)}hf(r,()=>{for(var u=0;u<a;u++){var p=e[u];d||(o.delete(p.k),Zs(t,p.prev,p.next)),Qi(p.e,!d)}})}function Ci(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=it?Ei(Pi(u)):u.appendChild(Pn())}it&&Gi();var p=null,m=!1,f=In(()=>{var b=i();return vr(b)?b:b==null?[]:wd(b)});Yi(()=>{var b=n(f),y=b.length;if(m&&y===0)return;m=y===0;let $=!1;if(it){var S=$u(l)===Gs;S!==(y===0)&&(l=Ta(),Ei(l),_o(!1),$=!0)}if(it){for(var C=null,I,R=0;R<y;R++){if(xt.nodeType===gr&&xt.data===ba){l=xt,$=!0,_o(!1);break}var E=b[R],A=o(E,R);I=Mh(xt,d,C,null,E,A,R,r,e,i),d.items.set(A,I),C=I}y>0&&Ei(Ta())}it||b1(b,d,l,r,e,o,i),a!==null&&(y===0?p?Is(p):p=Ri(()=>a(l)):p!==null&&Xn(p,()=>{p=null})),$&&_o(!0),n(f)}),it&&(l=xt)}function b1(t,e,i,o,r,a,l){var j,ve,ce,re;var d=(r&8)!==0,s=(r&3)!==0,u=t.length,p=e.items,m=e.first,f=m,b,y=null,$,S=[],C=[],I,R,E,A;if(d)for(A=0;A<u;A+=1)I=t[A],R=a(I,A),E=p.get(R),E!==void 0&&((j=E.a)==null||j.measure(),($!=null?$:$=new Set).add(E));for(A=0;A<u;A+=1){if(I=t[A],R=a(I,A),E=p.get(R),E===void 0){var O=f?f.e.nodes_start:i;y=Mh(O,e,y,y===null?e.first:y.next,I,R,A,o,r,l),p.set(R,y),S=[],C=[],f=y.next;continue}if(s&&$1(E,I,A,r),(E.e.f&8192)!==0&&(Is(E.e),d&&((ve=E.a)==null||ve.unfix(),($!=null?$:$=new Set).delete(E))),E!==f){if(b!==void 0&&b.has(E)){if(S.length<C.length){var D=C[0],U;y=D.prev;var z=S[0],G=S[S.length-1];for(U=0;U<S.length;U+=1)kh(S[U],D,i);for(U=0;U<C.length;U+=1)b.delete(C[U]);Zs(e,z.prev,G.next),Zs(e,y,z),Zs(e,G,D),f=D,y=G,A-=1,S=[],C=[]}else b.delete(E),kh(E,f,i),Zs(e,E.prev,E.next),Zs(e,E,y===null?e.first:y.next),Zs(e,y,E),y=E;continue}for(S=[],C=[];f!==null&&f.k!==R;)(f.e.f&8192)===0&&(b!=null?b:b=new Set).add(f),C.push(f),f=f.next;if(f===null)continue;E=f}S.push(E),y=E,f=E.next}if(f!==null||b!==void 0){for(var le=b===void 0?[]:wd(b);f!==null;)(f.e.f&8192)===0&&le.push(f),f=f.next;var X=le.length;if(X>0){var oe=(r&4)!==0&&u===0?i:null;if(d){for(A=0;A<X;A+=1)(ce=le[A].a)==null||ce.measure();for(A=0;A<X;A+=1)(re=le[A].a)==null||re.fix()}_1(e,le,oe,p)}}d&&An(()=>{var _e;if($!==void 0)for(E of $)(_e=E.a)==null||_e.apply()}),yt.first=e.first&&e.first.e,yt.last=y&&y.e}function $1(t,e,i,o){(o&1)!==0&&Al(t.v,e),(o&2)!==0?Al(t.i,i):t.i=i}function Mh(t,e,i,o,r,a,l,d,s,u){var p=Js,m=(s&1)!==0,f=(s&16)===0,b=m?f?fs(r,!1,!1):Rr(r):r,y=(s&2)===0?l:Rr(l);ke&&m&&(b.trace=()=>{var S=typeof y=="number"?l:y.v;u()[S]});var $={i:y,v:b,k:a,a:null,e:null,prev:i,next:o};Js=$;try{return $.e=Ri(()=>d(t,b,y,u),it),$.e.prev=i&&i.e,$.e.next=o&&o.e,i===null?e.first=$:(i.next=$,i.e.next=$.e),o!==null&&(o.prev=$,o.e.prev=$.e),$}finally{Js=p}}function kh(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=Zo(a);r.before(a),a=l}}function Zs(t,e,i){e===null?t.first=i:(e.next=i,e.e.next=i&&i.e),i!==null&&(i.prev=e,i.e.prev=e&&e.e)}function y1(t,e,i){var a,l;if(!e||e===xh(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[Qn]&&(o=`in ${hr[Qn]}`),th(Lu(o))}function Wd(t,e,i=!1,o=!1,r=!1){var a=t,l="";B(()=>{var b;var d=yt;if(l===(l=(b=e())!=null?b:"")){it&&Gi();return}if(d.nodes_start!==null&&(vf(d.nodes_start,d.nodes_end),d.nodes_start=d.nodes_end=null),l!==""){if(it){for(var s=xt.data,u=Gi(),p=u;u!==null&&(u.nodeType!==gr||u.data!=="");)p=u,u=Zo(u);if(u===null)throw Xs(),ds;ke&&!r&&y1(u.parentNode,s,l),No(xt,p),a=Ei(u);return}var m=l+"";i?m=`<svg>${m}</svg>`:o&&(m=`<math>${m}</math>`);var f=Ol(m);if((i||o)&&(f=Pi(f)),No(Pi(f),f.lastChild),i||o)for(;Pi(f);)a.before(Pi(f));else a.before(f)}})}function Ni(t,e,i){it&&Gi();var o=t,r,a;Yi(()=>{r!==(r=e())&&(a&&(Xn(a),a=null),r&&(a=Ri(()=>i(o,r))))},65536),it&&(o=xt)}function La(t,e,i,o,r,a){var y;let l=it;it&&Gi();var d=ke&&a&&((y=zt)==null?void 0:y.function[Qn]),s,u,p=null;it&&xt.nodeType===fu&&(p=xt,Gi());var m=it?xt:t,f,b=Js;Yi(()=>{let $=e()||null;var S=r?r():i||$==="svg"?du:null;if($!==s){var C=Js;Ef(b),f&&($===null?Xn(f,()=>{f=null,u=null}):$===u?Is(f):(Qi(f),Mu(!1))),$&&$!==u&&(f=Ri(()=>{if(p=it?p:S?document.createElementNS(S,$):document.createElement($),ke&&a&&(p.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),No(p,p),o){it&&Ih($)&&p.append(document.createComment(""));var I=it?Pi(p):p.appendChild(Pn());it&&(I===null?_o(!1):Ei(I)),o(p,I)}yt.nodes_end=p,m.before(p)})),s=$,s&&(u=s),Mu(!0),Ef(C)}},65536),l&&(_o(!0),Ei(m))}var Af;function Vh(t){return Af=t.target,new Pf(t)}var Ps,Nr,Pf=class{constructor(e){qs(this,Ps);qs(this,Nr);var a,l;var i=new Map,o=(d,s)=>{var u=fs(s,!1,!1);return i.set(d,u),u};let r=new Proxy(qt(Ae({},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===yl?!0:(n((u=i.get(s))!=null?u:o(s,Reflect.get(d,s))),Reflect.has(d,s))},set(d,s,u){var p;return N((p=i.get(s))!=null?p:o(s,u),u),Reflect.set(d,s,u)}});$l(this,Nr,(e.hydrate?Tf:jr)(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)&&Rl(),$l(this,Ps,r.$$events);for(let d of Object.keys(Vi(this,Nr)))d==="$set"||d==="$destroy"||d==="$on"||go(this,d,{get(){return Vi(this,Nr)[d]},set(s){Vi(this,Nr)[d]=s},enumerable:!0});Vi(this,Nr).$set=d=>{Object.assign(r,d)},Vi(this,Nr).$destroy=()=>{ka(Vi(this,Nr))}}$set(e){Vi(this,Nr).$set(e)}$on(e,i){Vi(this,Ps)[e]=Vi(this,Ps)[e]||[];let o=(...r)=>i.call(this,...r);return Vi(this,Ps)[e].push(o),()=>{Vi(this,Ps)[e]=Vi(this,Ps)[e].filter(r=>r!==o)}}$destroy(){Vi(this,Nr).$destroy()}};Ps=new WeakMap,Nr=new WeakMap;function q(t,e){An(()=>{var r,a,l;var i=t.getRootNode(),o=i.host?i:(l=(r=i.head)!=null?r:i.ownerDocument.head)!=null?l:(a=Af)==null?void 0:a.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),ke&&Ah(e.hash,d)}})}function As(t,e){var i=void 0,o;Yi(()=>{i!==(i=e())&&(o&&(Qi(o),o=null),i&&(o=Ri(()=>{Ro(()=>i(t))})))})}function Rh(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=Rh(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Nh(){for(var t,e,i=0,o="",r=arguments.length;i<r;i++)(t=arguments[i])&&(e=Rh(t))&&(o&&(o+=" "),o+=e);return o}function Kd(t){return typeof t=="object"?Nh(t):t!=null?t:""}var Oh=[...`
|
|
44
|
-
\r\f \v\uFEFF`];function Bh(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||Oh.includes(o[l-1]))&&(d===o.length||Oh.includes(o[d]))?o=(l===0?"":o.substring(0,l))+o.substring(d+1):l=d}}return o===""?null:o}function Dh(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 kf(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Fh(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(kf)),r&&s.push(...Object.keys(r).map(kf));var u=0,p=-1;let $=t.length;for(var m=0;m<$;m++){var f=t[m];if(d?f==="/"&&t[m-1]==="*"&&(d=!1):a?a===f&&(a=!1):f==="/"&&t[m+1]==="*"?d=!0:f==='"'||f==="'"?a=f:f==="("?l++:f===")"&&l--,!d&&a===!1&&l===0){if(f===":"&&p===-1)p=m;else if(f===";"||m===$-1){if(p!==-1){var b=kf(t.substring(u,p).trim());if(!s.includes(b)){f!==";"&&m++;var y=t.substring(u,m).trim();i+=" "+y+";"}}u=m+1,p=-1}}}}return o&&(i+=Dh(o)),r&&(i+=Dh(r,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function se(t,e,i,o,r,a){var l=t.__className;if(it||l!==i||l===void 0){var d=Bh(i,o,a);(!it||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 Lf(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 Ge(t,e,i,o){var r=t.__style;if(it||r!==e){var a=Fh(e,o);(!it||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(Lf(t,i==null?void 0:i[0],o[0]),Lf(t,i==null?void 0:i[1],o[1],"important")):Lf(t,i,o));return o}function qd(t,e,i){if(t.multiple){if(e==null)return;if(!vr(e))return oh();for(var o of t.options)o.selected=e.includes(Hh(o));return}for(o of t.options){var r=Hh(o);if(nf(r,e)){o.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function Mf(t){var e=new MutationObserver(()=>{qd(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Vo(()=>{e.disconnect()})}function Hh(t){return"__value"in t?t.__value:t.value}var Bl=Symbol("class"),Fl=Symbol("style"),Wh=Symbol("is custom element"),Kh=Symbol("is html");function qh(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Ue(t,e,i,o){var r=Gh(t);if(it&&(r[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||P1(t,e,i!=null?i:"");return}r[e]!==(r[e]=i)&&(e==="loading"&&(t[Rg]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Yh(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Qh(t,e,i,o,r=!1){var E;var a=Gh(t),l=a[Wh],d=!a[Kh];let s=it&&l;s&&_o(!1);var u=e||{},p=t.tagName==="OPTION";for(var m in e)m in i||(i[m]=null);i.class?i.class=Kd(i.class):(o||i[Bl])&&(i.class=null),i[Fl]&&((E=i.style)!=null||(i.style=null));var f=Yh(t);for(let A in i){let O=i[A];if(p&&A==="value"&&O==null){t.value=t.__value="",u[A]=O;continue}if(A==="class"){var b=t.namespaceURI==="http://www.w3.org/1999/xhtml";se(t,b,O,o,e==null?void 0:e[Bl],i[Bl]),u[A]=O,u[Bl]=i[Bl];continue}if(A==="style"){Ge(t,O,e==null?void 0:e[Fl],i[Fl]),u[A]=O,u[Fl]=i[Fl];continue}var y=u[A];if(!(O===y&&!(O===void 0&&t.hasAttribute(A)))){u[A]=O;var $=A[0]+A[1];if($!=="$$")if($==="on"){let D={},U="$$"+A,z=A.slice(2);var S=Sh(z);if(wh(z)&&(z=z.slice(0,-7),D.capture=!0),!S&&y){if(O!=null)continue;t.removeEventListener(z,u[U],D),u[U]=null}if(O!=null)if(S)t[`__${z}`]=O,st([z]);else{let G=function(le){u[A].call(this,le)};var R=G;u[U]=wf(z,t,G,D)}else S&&(t[`__${z}`]=void 0)}else if(A==="style")Ue(t,A,O);else if(A==="autofocus")yf(t,!!O);else if(!l&&(A==="__value"||A==="value"&&O!=null))t.value=t.__value=O;else if(A==="selected"&&p)qh(t,O);else{var C=A;d||(C=Th(C));var I=C==="defaultValue"||C==="defaultChecked";if(O==null&&!l&&!I)if(a[A]=null,C==="value"||C==="checked"){let D=t,U=e===void 0;if(C==="value"){let z=D.defaultValue;D.removeAttribute(C),D.defaultValue=z,D.value=D.__value=U?z:null}else{let z=D.defaultChecked;D.removeAttribute(C),D.defaultChecked=z,D.checked=U?z:!1}}else t.removeAttribute(A);else I||f.includes(C)&&(l||typeof O!="string")?t[C]=O:typeof O!="function"&&Ue(t,C,O,r)}}}return s&&_o(!0),u}function eo(t,e,i=[],o,r=!1,a=Qr){let l=i.map(a);var d=void 0,s={},u=t.nodeName==="SELECT",p=!1;if(Yi(()=>{var f=e(...l.map(n)),b=Qh(t,d,f,o,r);p&&u&&"value"in f&&qd(t,f.value,!1);for(let $ of Object.getOwnPropertySymbols(s))f[$]||Qi(s[$]);for(let $ of Object.getOwnPropertySymbols(f)){var y=f[$];$.description===Yp&&(!d||y!==d[$])&&(s[$]&&Qi(s[$]),s[$]=Ri(()=>As(t,()=>y))),b[$]=y}d=b}),u){var m=t;Ro(()=>{qd(m,d.value),Mf(m)})}p=!0}function Gh(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[Wh]:t.nodeName.includes("-"),[Kh]:t.namespaceURI===Eg}}var Uh=new Map;function Yh(t){var e=Uh.get(t.nodeName);if(e)return e;Uh.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=$a(o)}return e}function P1(t,e,i){var o;ke&&(e==="srcset"&&A1(t,i)||Vf((o=t.getAttribute(e))!=null?o:"",i)||eh(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function Vf(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function zh(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function A1(t,e){var i=zh(t.srcset),o=zh(e);return o.length===i.length&&o.every(([r,a],l)=>a===i[l][1]&&(Vf(i[l][0],r)||Vf(r,i[l][0])))}var k1=cu?()=>performance.now():()=>Date.now(),Xr={tick:t=>(cu?requestAnimationFrame:ht)(t),now:()=>k1(),tasks:new Set};function jh(){let t=Xr.now();Xr.tasks.forEach(e=>{e.c(t)||(Xr.tasks.delete(e),e.f())}),Xr.tasks.size!==0&&Xr.tick(jh)}function Xh(t){let e;return Xr.tasks.size===0&&Xr.tick(jh),{promise:new Promise(i=>{Xr.tasks.add(e={c:t,f:i})}),abort(){Xr.tasks.delete(e)}}}function Vu(t,e){Hd(()=>{t.dispatchEvent(new CustomEvent(e))})}function R1(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 Zh(t){let e={},i=t.split(";");for(let o of i){let[r,a]=o.split(":");if(!r||a===void 0)break;let l=R1(r.trim());e[l]=a.trim()}return e}var N1=t=>t;function Zr(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,p=e.inert,m=e.style.overflow,f,b;function y(){var O;var E=Ot,A=yt;qi(null),ho(null);try{return u!=null?u:u=i()(e,(O=o==null?void 0:o())!=null?O:{},{direction:s})}finally{qi(E),ho(A)}}var $={is_global:d,in(){var E;if(e.inert=p,!r){b==null||b.abort(),(E=b==null?void 0:b.reset)==null||E.call(b);return}a||f==null||f.abort(),Vu(e,"introstart"),f=Rf(e,y(),b,1,()=>{Vu(e,"introend"),f==null||f.abort(),f=u=void 0,e.style.overflow=m})},out(E){if(!a){E==null||E(),u=void 0;return}e.inert=!0,Vu(e,"outrostart"),b=Rf(e,y(),f,0,()=>{Vu(e,"outroend"),E==null||E()})},stop:()=>{f==null||f.abort(),b==null||b.abort()}},S=yt;if(((R=S.transitions)!=null?R:S.transitions=[]).push($),r&&Ud){var C=d;if(!C){for(var I=S.parent;I&&(I.f&65536)!==0;)for(;(I=I.parent)&&(I.f&16)===0;);C=!I||(I.f&32768)!==0}C&&Ro(()=>{kt(()=>$.in())})}}function Rf(t,e,i,o,r){var a=o===1;if(Ys(e)){var l,d=!1;return An(()=>{if(!d){var S=e({direction:a?"in":"out"});l=Rf(t,S,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:ht,deactivate:ht,reset:ht,t:()=>o};let{delay:s=0,css:u,tick:p,easing:m=N1}=e;var f=[];if(a&&i===void 0&&(p&&p(0,1),u)){var b=Zh(u(0,1));f.push(b,b)}var y=()=>1-o,$=t.animate(f,{duration:s,fill:"forwards"});return $.onfinish=()=>{var z;$.cancel();var S=(z=i==null?void 0:i.t())!=null?z:1-o;i==null||i.abort();var C=o-S,I=e.duration*Math.abs(C),R=[];if(I>0){var E=!1;if(u)for(var A=Math.ceil(I/16.666666666666668),O=0;O<=A;O+=1){var D=S+C*m(O/A),U=Zh(u(D,1-D));R.push(U),E||(E=U.overflow==="hidden")}E&&(t.style.overflow="hidden"),y=()=>{var G=$.currentTime;return S+C*m(G/I)},p&&Xh(()=>{if($.playState!=="running")return!1;var G=y();return p(G,1-G),!0})}$=t.animate(R,{duration:I,fill:"forwards"}),$.onfinish=()=>{y=()=>o,p==null||p(o,1-o),r()}},{abort:()=>{$&&($.cancel(),$.effect=null,$.onfinish=ht)},deactivate:()=>{r=ht},reset:()=>{o===0&&(p==null||p(1,0))},t:()=>y()}}function Nf(t,e,i){var o=Go(t,e);o&&o.set&&(t[e]=i,Vo(()=>{t[e]=null}))}var ea,Hl,Qd,Nu,Jh,Ou=class Ou{constructor(e){qs(this,Nu);qs(this,ea,new WeakMap);qs(this,Hl);qs(this,Qd);$l(this,Qd,e)}observe(e,i){var o=Vi(this,ea).get(e)||new Set;return o.add(i),Vi(this,ea).set(e,o),Cg(this,Nu,Jh).call(this).observe(e,Vi(this,Qd)),()=>{var r=Vi(this,ea).get(e);r.delete(i),r.size===0&&(Vi(this,ea).delete(e),Vi(this,Hl).unobserve(e))}}};ea=new WeakMap,Hl=new WeakMap,Qd=new WeakMap,Nu=new WeakSet,Jh=function(){var e;return(e=Vi(this,Hl))!=null?e:$l(this,Hl,new ResizeObserver(i=>{for(var o of i){Ou.entries.set(o.target,o);for(var r of Vi(this,ea).get(o.target)||[])r(o)}}))},mr(Ou,"entries",new WeakMap);var Of=Ou;var O1=new Of({box:"border-box"});function Ln(t,e,i){var o=O1.observe(t,()=>i(t[e]));Ro(()=>(kt(()=>i(t[e])),o))}function e_(t,e){return t===e||(t==null?void 0:t[Yo])===e}function nt(t={},e,i,o){return Ro(()=>{var r,a;return Jo(()=>{r=a,a=(o==null?void 0:o())||[],kt(()=>{t!==i(...a)&&(e(t,...a),r&&e_(i(...r),t)&&e(null,...r))})}),()=>{An(()=>{a&&e_(i(...a),t)&&e(null,...a)})}}),t}function Co(t=!1){let e=zt,i=e.l.u;if(!i)return;let o=()=>Au(e.s);if(t){let r=0,a={},l=Qr(()=>{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(()=>{t_(e,o),js(i.b)}),De(()=>{let r=kt(()=>i.m.map(Vg));return()=>{for(let a of r)typeof a=="function"&&a()}}),i.a.length&&De(()=>{t_(e,o),js(i.a)})}function t_(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),ht;let o=kt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Ul=[];function Or(t,e){return{subscribe:ae(t,e).subscribe}}function ae(t,e=ht){let i=null,o=new Set;function r(d){if(wl(t,d)&&(t=d,i)){let s=!Ul.length;for(let u of o)u[1](),Ul.push(u,t);if(s){for(let u=0;u<Ul.length;u+=2)Ul[u][0](Ul[u+1]);Ul.length=0}}}function a(d){r(d(t))}function l(d,s=ht){let u=[d,s];return o.add(u),o.size===1&&(i=e(r,a)||ht),d(t),()=>{o.delete(u),o.size===0&&i&&(i(),i=null)}}return{set:r,update:a,subscribe:l}}function _i(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=[],p=0,m=ht,f=()=>{if(p)return;m();let y=e(o?u[0]:u,l,d);a?l(y):m=typeof y=="function"?y:ht},b=r.map((y,$)=>Gd(y,S=>{u[$]=S,p&=~(1<<$),s&&f()},()=>{p|=1<<$}));return s=!0,f(),function(){js(b),m(),s=!1}})}function he(t){let e;return Gd(t,i=>e=i)(),e}var Du=!1,Df=Symbol();function x(t,e,i){var a;let o=(a=i[e])!=null?a:i[e]={store:null,source:fs(void 0),unsubscribe:ht};if(o.store!==t&&!(Df in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=ht;else{var r=!0;o.unsubscribe=Gd(t,l=>{r?o.source.v=l:N(o.source,l)}),r=!1}return t&&Df in i?he(t):n(o.source)}function Re(){let t={};function e(){Vo(()=>{for(var i in t)t[i].unsubscribe();go(t,Df,{enumerable:!1,value:!0})})}return[t,e]}function Bf(t){var e=Du;try{return Du=!1,[t(),Du]}finally{Du=e}}var W1={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return ke&&Kg(`${t.name}.${String(e)}`),!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function Mn(t,e,i){return new Proxy(ke?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},W1)}var K1={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Ys(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o)return o[e]}},set(t,e,i){let o=t.props.length;for(;o--;){let r=t.props[o];Ys(r)&&(r=r());let a=Go(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(Ys(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(t,e){if(e===Yo||e===yl)return!1;for(let i of t.props)if(Ys(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props)if(Ys(i)&&(i=i()),!!i){for(let o in i)e.includes(o)||e.push(o);for(let o of Object.getOwnPropertySymbols(i))e.includes(o)||e.push(o)}return e}};function ks(...t){return new Proxy({props:t},K1)}function i_(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function g(t,e,i,o){var D,U;var r=(i&1)!==0,a=!cs||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,s=!1,u;l?[u,s]=Bf(()=>t[e]):u=t[e];var p=Yo in t||yl in t,m=l&&((U=(D=Go(t,e))==null?void 0:D.set)!=null?U:p&&e in t&&(z=>t[e]=z))||void 0,f=o,b=!0,y=!1,$=()=>(y=!0,b&&(b=!1,d?f=kt(o):f=o),f);u===void 0&&o!==void 0&&(m&&a&&Wg(e),u=$(),m&&m(u));var S;if(a)S=()=>{var z=t[e];return z===void 0?$():(b=!0,y=!1,z)};else{var C=(r?Qr:In)(()=>t[e]);C.f|=131072,S=()=>{var z=n(C);return z!==void 0&&(f=void 0),z===void 0?f:z}}if((i&4)===0&&a)return S;if(m){var I=t.$$legacy;return function(z,G){return arguments.length>0?((!a||!G||I||s)&&m(G?S():z),z):S()}}var R=!1,E=!1,A=fs(u),O=Qr(()=>{var z=S(),G=n(A);return R?(R=!1,E=!0,G):(E=!1,A.v=z)});return l&&n(O),r||(O.equals=Sl),function(z,G){if(Eu!==null&&(R=E,S(),n(A)),arguments.length>0){let le=G?n(O):a&&l?pi(z):z;if(!O.equals(le)){if(R=!0,N(A,le),y&&f!==void 0&&(f=le),i_(O))return z;kt(()=>n(O))}return z}return i_(O)?O.v:n(O)}}var q1;typeof HTMLElement=="function"&&(q1=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 gt(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=Q1(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]=Ff(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=Vh({component:this.$$ctor,target:this.shadowRoot||this,props:qt(Ae({},this.$$d),{$$slots:o,$$host:this})}),this.$$me=Su(()=>{Jo(()=>{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=Ff(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]=Ff(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 Ff(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 Q1(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var o_="5";var n_,r_,s_;typeof window!="undefined"&&((s_=(r_=(n_=window.__svelte)!=null?n_:window.__svelte={}).v)!=null?s_:r_.v=new Set).add(o_);var dd=require("@vkontakte/videoplayer-core/es2015"),fJ=require("@vkontakte/videoplayer-core/es2015"),ll=require("@vkontakte/videoplayer-shared/es2015"),f$=require("@vkontakte/videoplayer-statistics/es2015");var Ma=require("@vkontakte/videoplayer-shared/es2015");var G1={isMobile:void 0,disableInvisibleComponentsTimeout:500,debugLog:!1,devNullLog:!1,defaultLanguage:Ma.InterfaceLanguage.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:Ma.VideoQuality.Q_480P,highQualityLimit:Ma.VideoQuality.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,returnFocusOnControlsHide:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,thinStatistics:!1,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,tracer:!1,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,interactiveControlsTapPlace:!1,interactiveControlsFillAnimation:!1,interactiveControlsHideAnimation:!1,interactiveHistoryEndChapterFix:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,initSubtitles:!0,useCallbackForMediaSessionNextPrevClick:!1,usePerformanceFix:!1,userVideoPrefs:!1,savePreferredStatesOnUserActionOnly:!1,useLoopSetting:!1,doubleForwardAvailable:!1,useRichSeek:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,paramsOverride:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null,font:null,focusedOutlineWidth:null,focusedOutlineRadius:null,controlsDesktopPaddingHorizontal:null,timelinePaddingHorizontal:null,settingsBackgroundColor:null,controlsGradientHeight:null,controlsGradient:null},userSalt:"0",doubleForwardActivationTime:600,playbackStatusAnimationDuration:1e3,playbackStatusNextVideoAnimationDuration:1e3,suitableDurationForUsingRichSeek:180,disabledSlotIds:[],disabledAdditionalButtonIds:[]},a_=t=>(0,Ma.fillWithDefault)(t,G1),l_=t=>Il("ui-config",t),Rt=()=>Cl("ui-config");var Yd="vk_player_debug_panel_opened";var d_="videoplayer",c_="videoplayer";var vs={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},u_=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),p_=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),f_=new Set(["ShiftRight","ShiftLeft"]);var m_=["TIMELINE"],jd=[...m_,"GRAPH_BUTTON"],Hf=[...m_,"PLAY_BUTTON"],Xd=[...jd,"PLAY_BUTTON"];var Jr=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(Jr||{}),Ra={xs:0,s:1,m:2,l:3,xl:4};var Zd=require("@vkontakte/videoplayer-shared/es2015"),v_=require("@vkontakte/videoplayer-core/es2015"),g_=require("@vkontakte/videoplayer-statistics/es2015");var Bu="prod",Na="1.1.77-dev.8f11014e.0";var Oa=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var h_=Symbol("storeContext"),__=Symbol("microStoresContext"),b_=(t,e)=>{Il(h_,t),Il(__,e),Bu==="dev"&&(window.app={store:t,microStores:e})},me=()=>{let t=Cl(h_);return(0,Zd.assertNonNullable)(t,"Store context is empty!"),t},Io=()=>{let t=Cl(__);return(0,Zd.assertNonNullable)(t,"MicroStores context is empty!"),t},ai=(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()}),$_=(t,e,i,o)=>{var D,U,z,G,le,X,oe,j,ve;let r=t.info,{width:a,height:l}=he(i.ui.playerSize),d=(U=(D=r.throughputEstimation$.getValue())==null?void 0:D.toFixed(0))!=null?U:0,s=(G=(z=r.rttEstimation$.getValue())==null?void 0:z.toFixed(0))!=null?G:0,u=r.isAutoQualityEnabled$.getValue()?"auto":"manual",p=`${Na} (core: ${v_.VERSION}, stat: ${g_.VERSION}, shared: ${Zd.VERSION})`,m=he(i.state.errorLog$),f=m.length?`
|
|
45
|
-
`+m.map((ce,
|
|
46
|
-
`,
|
|
43
|
+
`)})}}var Aa=!1,Nl=null,ka=!1,Ss=!1;function df(t){Ss=t}var Bd=[],Fd=[],Ot=null,mr=!1;function Yi(t){Ot=t}var xt=null;function ho(t){xt=t}var Jo=null;function hu(t){Ot!==null&&Ot.f&2097152&&(Jo===null?Jo=[Ot,[t]]:Jo[1].push(t))}var Ln=null,vr=0,fr=null;function Xg(t){fr=t}var gh=1,Cu=0,Ts=!1,Iu=null;function Ed(){return++gh}function Ca(t){var m,f;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&&xt!==null&&!Ts,s=i.length;if(l||d){var u=t,p=u.parent;for(r=0;r<s;r++)a=i[r],(l||!((m=a==null?void 0:a.reactions)!=null&&m.includes(u)))&&((f=a.reactions)!=null?f:a.reactions=[]).push(u);l&&(u.f^=512),d&&p!==null&&(p.f&256)===0&&(u.f^=256)}for(r=0;r<s;r++)if(a=i[r],Ca(a)&&lf(a),a.wv>t.wv)return!0}(!o||xt!==null&&!Ts)&&Pn(t,1024)}return!1}function hh(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]===Ot||((a.f&2)!==0?hh(a,e,!1):e===a&&(i?Pn(a,2048):(a.f&1024)!==0&&Pn(a,4096),Ad(a)))}}function gu(t){var b,y;var e=Ln,i=vr,o=fr,r=Ot,a=Ts,l=Jo,d=zt,s=mr,u=t.f;Ln=null,vr=0,fr=null,Ts=(u&256)!==0&&(mr||!ka||Ot===null),Ot=(u&96)===0?t:null,Jo=null,Td(t.ctx),mr=!1,Cu++,t.f|=2097152;try{var p=(0,t.fn)(),m=t.deps;if(Ln!==null){var f;if(Nd(t,vr),m!==null&&vr>0)for(m.length=vr+Ln.length,f=0;f<Ln.length;f++)m[vr+f]=Ln[f];else t.deps=m=Ln;if(!Ts||(u&2)!==0&&t.reactions!==null)for(f=vr;f<m.length;f++)((y=(b=m[f]).reactions)!=null?y:b.reactions=[]).push(t)}else m!==null&&vr<m.length&&(Nd(t,vr),m.length=vr);if(vs()&&fr!==null&&!mr&&m!==null&&(t.f&6146)===0)for(f=0;f<fr.length;f++)hh(fr[f],t);return r!==null&&r!==t&&(Cu++,fr!==null&&(o===null?o=fr:o.push(...fr))),p}catch($){fh($)}finally{Ln=e,vr=i,fr=o,Ot=r,Ts=a,Jo=l,Td(d),mr=s,t.f^=2097152}}function Q$(t,e){let i=e.reactions;if(i!==null){var o=Ag.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&&(Ln===null||!Ln.includes(e))&&(Pn(e,4096),(e.f&768)===0&&(e.f^=512),vu(e),Nd(e,0))}function Nd(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)Q$(t,i[o])}function Ml(t){var e=t.f;if((e&16384)===0){Pn(t,1024);var i=xt,o=ka;if(xt=t,ka=!0,ke){var r=ur;Cd(t.component_function)}try{(e&16)!==0?lh(t):ff(t),pf(t);var a=gu(t);if(t.teardown=typeof a=="function"?a:null,t.wv=gh,ke&&ms&&(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);ke&&Fd.push(t)}finally{ka=o,xt=i,ke&&Cd(r)}}}function mh(){console.error("Last ten effects were: ",Fd.slice(-10).map(t=>t.fn)),Fd=[]}function G$(){try{Bg()}catch(t){if(ke&&go(t,"stack",{value:""}),Nl!==null)if(ke)try{Dd(t,Nl)}catch(e){throw mh(),e}else Dd(t,Nl);else throw ke&&mh(),t}}function bf(){var t=ka;try{var e=0;for(ka=!0;Bd.length>0;){e++>1e3&&G$();var i=Bd,o=i.length;Bd=[];for(var r=0;r<o;r++){var a=j$(i[r]);Y$(a)}kl.clear()}}finally{Aa=!1,ka=t,Nl=null,ke&&(Fd=[])}}function Y$(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];(o.f&24576)===0&&Ca(o)&&(Ml(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?vf(o):o.fn=null))}}function Ad(t){Aa||(Aa=!0,queueMicrotask(bf));for(var e=Nl=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}Bd.push(e)}function j$(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:Ca(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&&(Aa=!0,bf(),Aa=!0,e=t());;){if(uh(),Bd.length===0)return Aa=!1,Nl=null,ke&&(Fd=[]),e;Aa=!0,bf()}}function bo(){return _t(this,null,function*(){yield Promise.resolve(),Ol()})}function n(t){var e=t.f,i=(e&2)!==0;if(Iu!==null&&Iu.add(t),Ot!==null&&!mr){if(!(Jo!=null&&Jo[1].includes(t))||Jo[0]!==Ot){var o=Ot.deps;t.rv<Cu&&(t.rv=Cu,Ln===null&&o!==null&&o[vr]===t?vr++:Ln===null?Ln=[t]:(!Ts||!Ln.includes(t))&&Ln.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,Ca(r)&&lf(r)),ke&&ms&&!mr&&Sd!==null&&Ot!==null&&Sd.reaction===Ot)if(t.trace)t.trace();else{var l=ws("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 Ss&&kl.has(t)?kl.get(t):t.v}function kt(t){var e=mr;try{return mr=!0,t()}finally{mr=e}}var X$=-7169;function Pn(t,e){t.f=t.f&X$|e}function Pu(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Xo in t)Eu(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Xo in i&&Eu(i)}}}function Eu(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{Eu(t[o],e)}catch(r){}let i=xa(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=cu(i);for(let r in o){let a=o[r].get;if(a)try{a.call(t)}catch(l){}}}}}function $f(t,e){if(e){let i=document.body;t.autofocus=!0,kn(()=>{document.activeElement===i&&t.focus()})}}function Hd(t){var e=Ot,i=xt;Yi(null),ho(null);try{return t()}finally{Yi(e),ho(i)}}var yf=new Set,Au=new Set;function La(t){if(!it)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 xf(t,e,i,o={}){function r(a){if(o.capture||Dl.call(e,a),!a.cancelBubble)return Hd(()=>i==null?void 0:i.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?kn(()=>{e.addEventListener(t,r,o)}):e.addEventListener(t,r,o),r}function $t(t,e,i,o,r){var a={capture:o,passive:r},l=xf(t,e,i,a);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Ao(()=>{e.removeEventListener(t,l,a)})}function st(t){for(var e=0;e<t.length;e++)yf.add(t[e]);for(var i of Au)i(t)}function Dl(t){var I;var e=this,i=e.ownerDocument,o=t.type,r=((I=t.composedPath)==null?void 0:I.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){go(t,"currentTarget",{configurable:!0,get(){return a||i}});var p=Ot,m=xt;Yi(null),ho(null);try{for(var f,b=[];a!==null;){var y=a.assignedSlot||a.parentNode||a.host||null;try{var $=a["__"+o];if($!=null&&(!a.disabled||t.target===a))if(dr($)){var[S,...C]=$;S.apply(a,[t,...C])}else $.call(a,t)}catch(R){f?b.push(R):f=R}if(t.cancelBubble||y===e||y===null)break;a=y}if(f){for(let R of b)queueMicrotask(()=>{throw R});throw f}}finally{t.__root=e,delete t.currentTarget,Yi(p),ho(m)}}}var J$;function _h(){J$=void 0}function Bl(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function Lo(t,e){var i=xt;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(it)return Lo(wt,null),wt;r===void 0&&(r=Bl(a?t:"<!>"+t),i||(r=Pi(r)));var l=o||kd?document.importNode(r,!0):r.cloneNode(!0);if(i){var d=Pi(l),s=l.lastChild;Lo(d,s)}else Lo(l,l);return l}}function i1(t,e,i="svg"){var o=!t.startsWith("<!>"),r=(e&1)!==0,a=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(it)return Lo(wt,null),wt;if(!l){var d=Bl(a),s=Pi(d);if(r)for(l=document.createDocumentFragment();Pi(s);)l.appendChild(Pi(s));else l=Pi(s)}var u=l.cloneNode(!0);if(r){var p=Pi(u),m=u.lastChild;Lo(p,m)}else Lo(u,u);return u}}function Ee(t,e){return i1(t,e,"svg")}function hs(t=""){if(!it){var e=An(t+"");return Lo(e,e),e}var i=wt;return i.nodeType!==Sl&&(i.before(i=An()),Ei(i)),Lo(i,i),i}function Le(){if(it)return Lo(wt,null),wt;var t=document.createDocumentFragment(),e=document.createComment(""),i=An();return t.append(e,i),Lo(e,i),t}function _(t,e){if(it){xt.nodes_end=wt,Xi();return}t!==null&&t.before(e)}var o1=/\r/g;function $h(t){t=t.replace(o1,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function yh(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var n1=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function xh(t){return n1.includes(t)}var r1=["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 s1={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 wh(t){var e;return t=t.toLowerCase(),(e=s1[t])!=null?e:t}var vP=[...r1,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var a1=["touchstart","touchmove"];function Sh(t){return a1.includes(t)}var l1=["$state","$state.raw","$derived","$derived.by"],gP=[...l1,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var d1=["textarea","script","style","title"];function Th(t){return d1.includes(t)}function ku(t){return t==null?void 0:t.replace(/\//g,"/")}var Ud=!0;function Lu(t){Ud=t}function pe(t,e){var o;var i=e==null?"":typeof e=="object"?e+"":e;i!==((o=t.__t)!=null?o:t.__t=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function Xr(t,e){return Ch(t,e)}function Sf(t,e){var l;$u(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=it,r=wt;try{for(var a=Pi(i);a&&(a.nodeType!==cr||a.data!==Gs);)a=en(a);if(!a)throw ps;_o(!0),Ei(a),Xi();let d=Ch(t,Qt(Ae({},e),{anchor:a}));if(wt===null||wt.nodeType!==cr||wt.data!==ya)throw Zs(),ps;return _o(!1),d}catch(d){if(d===ps)return e.recover===!1&&Fg(),$u(),Ld(i),_o(!1),Xr(t,e);throw d}finally{_o(o),Ei(r),_h()}}var Fl=new Map;function Ch(t,{target:e,anchor:i,props:o={},events:r,context:a,intro:l=!0}){$u();var d=new Set,s=m=>{for(var f=0;f<m.length;f++){var b=m[f];if(!d.has(b)){d.add(b);var y=Sh(b);e.addEventListener(b,Dl,{passive:y});var $=Fl.get(b);$===void 0?(document.addEventListener(b,Dl,{passive:y}),Fl.set(b,1)):Fl.set(b,$+1)}}};s(wd(yf)),Au.add(s);var u=void 0,p=ah(()=>{var m=i!=null?i:e.appendChild(An());return Di(()=>{if(a){F({});var f=zt;f.c=a}r&&(o.$$events=r),it&&Lo(m,null),Ud=l,u=t(m,o)||{},Ud=!0,it&&(xt.nodes_end=wt),a&&H()}),()=>{var y;for(var f of d){e.removeEventListener(f,Dl);var b=Fl.get(f);--b===0?(document.removeEventListener(f,Dl),Fl.delete(f)):Fl.set(f,b)}Au.delete(s),m!==i&&((y=m.parentNode)==null||y.removeChild(m))}});return wf.set(u,p),u}var wf=new WeakMap;function Ma(t,e){let i=wf.get(t);return i?(wf.delete(t),i(e)):(ke&&eh(),Promise.resolve())}function ai(t,e,...i){var o=t,r=bt,a;Zi(()=>{r!==(r=e())&&(a&&(ji(a),a=null),ke&&r==null&&Hg(),a=Di(()=>r(o,...i)))},65536),it&&(o=wt)}if(ke){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;Wg(e)},set:o=>{i=o}})}};f1=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var f1;function Dt(t){zt===null&&Il("onMount"),fs&&zt.l!==null?p1(zt).m.push(t):De(()=>{let e=kt(t);if(typeof e=="function")return e})}function _n(t){zt===null&&Il("onDestroy"),Dt(()=>()=>kt(t))}function p1(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}var Ih=new Map;function Eh(t,e){var i=Ih.get(t);i||(i=new Set,Ih.set(t,i)),i.add(e)}function V(t,e,[i,o]=[0,0]){it&&i===0&&Xi();var r=t,a=null,l=null,d=eo,s=i>0?65536:0,u=!1;let p=(f,b=!0)=>{u=!0,m(b,f)},m=(f,b)=>{if(d===(d=f))return;let y=!1;if(it&&o!==-1){if(i===0){let S=bu(r);S===Gs?o=0:S===Ys?o=1/0:(o=parseInt(S.substring(1)),o!==o&&(o=d?1/0:-1))}let $=o>i;!!d===$&&(r=Ia(),Ei(r),_o(!1),y=!0,o=-1)}d?(a?Is(a):b&&(a=Di(()=>b(r))),l&&Yn(l,()=>{l=null})):(l?Is(l):b&&(l=Di(()=>b(r,[i+1,o]))),a&&Yn(a,()=>{a=null})),y&&_o(!0)};Zi(()=>{u=!1,e(p),u||m(null,null)},s),it&&(r=wt)}function Es(t,e,i){it&&Xi();var o=t,r=eo,a,l=vs()?Vg:Tl;Zi(()=>{l(r,r=e())&&(a&&Yn(a),a=Di(()=>i(o)))}),it&&(o=wt)}var ea=null;function If(t){ea=t}function zd(t,e){return e}function g1(t,e,i,o){for(var r=[],a=e.length,l=0;l<a;l++)Su(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(),Js(t,e[0].prev,e[a-1].next)}gf(r,()=>{for(var u=0;u<a;u++){var p=e[u];d||(o.delete(p.k),Js(t,p.prev,p.next)),ji(p.e,!d)}})}function Ti(t,e,i,o,r,a=null){var l=t,d={flags:e,items:new Map,first:null},s=(e&4)!==0;if(s){var u=t;l=it?Ei(Pi(u)):u.appendChild(An())}it&&Xi();var p=null,m=!1,f=En(()=>{var b=i();return dr(b)?b:b==null?[]:wd(b)});Zi(()=>{var b=n(f),y=b.length;if(m&&y===0)return;m=y===0;let $=!1;if(it){var S=bu(l)===Ys;S!==(y===0)&&(l=Ia(),Ei(l),_o(!1),$=!0)}if(it){for(var C=null,I,R=0;R<y;R++){if(wt.nodeType===cr&&wt.data===ya){l=wt,$=!0,_o(!1);break}var E=b[R],P=o(E,R);I=kh(wt,d,C,null,E,P,R,r,e,i),d.items.set(P,I),C=I}y>0&&Ei(Ia())}it||h1(b,d,l,r,e,o,i),a!==null&&(y===0?p?Is(p):p=Di(()=>a(l)):p!==null&&Yn(p,()=>{p=null})),$&&_o(!0),n(f)}),it&&(l=wt)}function h1(t,e,i,o,r,a,l){var X,we,ce,ne;var d=(r&8)!==0,s=(r&3)!==0,u=t.length,p=e.items,m=e.first,f=m,b,y=null,$,S=[],C=[],I,R,E,P;if(d)for(P=0;P<u;P+=1)I=t[P],R=a(I,P),E=p.get(R),E!==void 0&&((X=E.a)==null||X.measure(),($!=null?$:$=new Set).add(E));for(P=0;P<u;P+=1){if(I=t[P],R=a(I,P),E=p.get(R),E===void 0){var O=f?f.e.nodes_start:i;y=kh(O,e,y,y===null?e.first:y.next,I,R,P,o,r,l),p.set(R,y),S=[],C=[],f=y.next;continue}if(s&&_1(E,I,P,r),(E.e.f&8192)!==0&&(Is(E.e),d&&((we=E.a)==null||we.unfix(),($!=null?$:$=new Set).delete(E))),E!==f){if(b!==void 0&&b.has(E)){if(S.length<C.length){var D=C[0],U;y=D.prev;var z=S[0],G=S[S.length-1];for(U=0;U<S.length;U+=1)Ph(S[U],D,i);for(U=0;U<C.length;U+=1)b.delete(C[U]);Js(e,z.prev,G.next),Js(e,y,z),Js(e,G,D),f=D,y=G,P-=1,S=[],C=[]}else b.delete(E),Ph(E,f,i),Js(e,E.prev,E.next),Js(e,E,y===null?e.first:y.next),Js(e,y,E),y=E;continue}for(S=[],C=[];f!==null&&f.k!==R;)(f.e.f&8192)===0&&(b!=null?b:b=new Set).add(f),C.push(f),f=f.next;if(f===null)continue;E=f}S.push(E),y=E,f=E.next}if(f!==null||b!==void 0){for(var le=b===void 0?[]:wd(b);f!==null;)(f.e.f&8192)===0&&le.push(f),f=f.next;var Y=le.length;if(Y>0){var re=(r&4)!==0&&u===0?i:null;if(d){for(P=0;P<Y;P+=1)(ce=le[P].a)==null||ce.measure();for(P=0;P<Y;P+=1)(ne=le[P].a)==null||ne.fix()}g1(e,le,re,p)}}d&&kn(()=>{var he;if($!==void 0)for(E of $)(he=E.a)==null||he.apply()}),xt.first=e.first&&e.first.e,xt.last=y&&y.e}function _1(t,e,i,o){(o&1)!==0&&Ll(t.v,e),(o&2)!==0?Ll(t.i,i):t.i=i}function kh(t,e,i,o,r,a,l,d,s,u){var p=ea,m=(s&1)!==0,f=(s&16)===0,b=m?f?gs(r,!1,!1):kr(r):r,y=(s&2)===0?l:kr(l);ke&&m&&(b.trace=()=>{var S=typeof y=="number"?l:y.v;u()[S]});var $={i:y,v:b,k:a,a:null,e:null,prev:i,next:o};ea=$;try{return $.e=Di(()=>d(t,b,y,u),it),$.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{ea=p}}function Ph(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=en(a);r.before(a),a=l}}function Js(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 b1(t,e,i){var a,l;if(!e||e===$h(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=ur)!=null&&l[Kn]&&(o=`in ${ur[Kn]}`),Jg(ku(o))}function Wd(t,e,i=!1,o=!1,r=!1){var a=t,l="";B(()=>{var b;var d=xt;if(l===(l=(b=e())!=null?b:"")){it&&Xi();return}if(d.nodes_start!==null&&(mf(d.nodes_start,d.nodes_end),d.nodes_start=d.nodes_end=null),l!==""){if(it){for(var s=wt.data,u=Xi(),p=u;u!==null&&(u.nodeType!==cr||u.data!=="");)p=u,u=en(u);if(u===null)throw Zs(),ps;ke&&!r&&b1(u.parentNode,s,l),Lo(wt,p),a=Ei(u);return}var m=l+"";i?m=`<svg>${m}</svg>`:o&&(m=`<math>${m}</math>`);var f=Bl(m);if((i||o)&&(f=Pi(f)),Lo(Pi(f),f.lastChild),i||o)for(;Pi(f);)a.before(Pi(f));else a.before(f)}})}function Bi(t,e,i){it&&Xi();var o=t,r,a;Zi(()=>{r!==(r=e())&&(a&&(Yn(a),a=null),r&&(a=Di(()=>i(o,r))))},65536),it&&(o=wt)}function Va(t,e,i,o,r,a){var y;let l=it;it&&Xi();var d=ke&&a&&((y=zt)==null?void 0:y.function[Kn]),s,u,p=null;it&&wt.nodeType===pu&&(p=wt,Xi());var m=it?wt:t,f,b=ea;Zi(()=>{let $=e()||null;var S=r?r():i||$==="svg"?lu:null;if($!==s){var C=ea;If(b),f&&($===null?Yn(f,()=>{f=null,u=null}):$===u?Is(f):(ji(f),Lu(!1))),$&&$!==u&&(f=Di(()=>{if(p=it?p:S?document.createElementNS(S,$):document.createElement($),ke&&a&&(p.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),Lo(p,p),o){it&&Th($)&&p.append(document.createComment(""));var I=it?Pi(p):p.appendChild(An());it&&(I===null?_o(!1):Ei(I)),o(p,I)}xt.nodes_end=p,m.before(p)})),s=$,s&&(u=s),Lu(!0),If(C)}},65536),l&&(_o(!0),Ei(m))}var Pf;function Lh(t){return Pf=t.target,new Ef(t)}var Ps,Lr,Ef=class{constructor(e){Qs(this,Ps);Qs(this,Lr);var a,l;var i=new Map,o=(d,s)=>{var u=gs(s,!1,!1);return i.set(d,u),u};let r=new Proxy(Qt(Ae({},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 p;return N((p=i.get(s))!=null?p:o(s,u),u),Reflect.set(d,s,u)}});xl(this,Lr,(e.hydrate?Sf:Xr)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:(a=e.intro)!=null?a:!1,recover:e.recover})),(!((l=e==null?void 0:e.props)!=null&&l.$$host)||e.sync===!1)&&Ol(),xl(this,Ps,r.$$events);for(let d of Object.keys(Oi(this,Lr)))d==="$set"||d==="$destroy"||d==="$on"||go(this,d,{get(){return Oi(this,Lr)[d]},set(s){Oi(this,Lr)[d]=s},enumerable:!0});Oi(this,Lr).$set=d=>{Object.assign(r,d)},Oi(this,Lr).$destroy=()=>{Ma(Oi(this,Lr))}}$set(e){Oi(this,Lr).$set(e)}$on(e,i){Oi(this,Ps)[e]=Oi(this,Ps)[e]||[];let o=(...r)=>i.call(this,...r);return Oi(this,Ps)[e].push(o),()=>{Oi(this,Ps)[e]=Oi(this,Ps)[e].filter(r=>r!==o)}}$destroy(){Oi(this,Lr).$destroy()}};Ps=new WeakMap,Lr=new WeakMap;function q(t,e){kn(()=>{var r,a,l;var i=t.getRootNode(),o=i.host?i:(l=(r=i.head)!=null?r:i.ownerDocument.head)!=null?l:(a=Pf)==null?void 0:a.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),ke&&Eh(e.hash,d)}})}function As(t,e){var i=void 0,o;Zi(()=>{i!==(i=e())&&(o&&(ji(o),o=null),i&&(o=Di(()=>{ko(()=>i(t))})))})}function Mh(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=Mh(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Vh(){for(var t,e,i=0,o="",r=arguments.length;i<r;i++)(t=arguments[i])&&(e=Mh(t))&&(o&&(o+=" "),o+=e);return o}function Kd(t){return typeof t=="object"?Vh(t):t!=null?t:""}var Rh=[...`
|
|
44
|
+
\r\f \v\uFEFF`];function Oh(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||Rh.includes(o[l-1]))&&(d===o.length||Rh.includes(o[d]))?o=(l===0?"":o.substring(0,l))+o.substring(d+1):l=d}}return o===""?null:o}function Nh(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 Af(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Dh(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(Af)),r&&s.push(...Object.keys(r).map(Af));var u=0,p=-1;let $=t.length;for(var m=0;m<$;m++){var f=t[m];if(d?f==="/"&&t[m-1]==="*"&&(d=!1):a?a===f&&(a=!1):f==="/"&&t[m+1]==="*"?d=!0:f==='"'||f==="'"?a=f:f==="("?l++:f===")"&&l--,!d&&a===!1&&l===0){if(f===":"&&p===-1)p=m;else if(f===";"||m===$-1){if(p!==-1){var b=Af(t.substring(u,p).trim());if(!s.includes(b)){f!==";"&&m++;var y=t.substring(u,m).trim();i+=" "+y+";"}}u=m+1,p=-1}}}}return o&&(i+=Nh(o)),r&&(i+=Nh(r,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function se(t,e,i,o,r,a){var l=t.__className;if(it||l!==i||l===void 0){var d=Oh(i,o,a);(!it||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 kf(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 Ge(t,e,i,o){var r=t.__style;if(it||r!==e){var a=Dh(e,o);(!it||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(kf(t,i==null?void 0:i[0],o[0]),kf(t,i==null?void 0:i[1],o[1],"important")):kf(t,i,o));return o}function qd(t,e,i){if(t.multiple){if(e==null)return;if(!dr(e))return th();for(var o of t.options)o.selected=e.includes(Bh(o));return}for(o of t.options){var r=Bh(o);if(of(r,e)){o.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function Lf(t){var e=new MutationObserver(()=>{qd(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Ao(()=>{e.disconnect()})}function Bh(t){return"__value"in t?t.__value:t.value}var Hl=Symbol("class"),Ul=Symbol("style"),Uh=Symbol("is custom element"),zh=Symbol("is html");function Wh(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Ue(t,e,i,o){var r=qh(t);if(it&&(r[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||I1(t,e,i!=null?i:"");return}r[e]!==(r[e]=i)&&(e==="loading"&&(t[Mg]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Qh(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Kh(t,e,i,o,r=!1){var E;var a=qh(t),l=a[Uh],d=!a[zh];let s=it&&l;s&&_o(!1);var u=e||{},p=t.tagName==="OPTION";for(var m in e)m in i||(i[m]=null);i.class?i.class=Kd(i.class):(o||i[Hl])&&(i.class=null),i[Ul]&&((E=i.style)!=null||(i.style=null));var f=Qh(t);for(let P in i){let O=i[P];if(p&&P==="value"&&O==null){t.value=t.__value="",u[P]=O;continue}if(P==="class"){var b=t.namespaceURI==="http://www.w3.org/1999/xhtml";se(t,b,O,o,e==null?void 0:e[Hl],i[Hl]),u[P]=O,u[Hl]=i[Hl];continue}if(P==="style"){Ge(t,O,e==null?void 0:e[Ul],i[Ul]),u[P]=O,u[Ul]=i[Ul];continue}var y=u[P];if(!(O===y&&!(O===void 0&&t.hasAttribute(P)))){u[P]=O;var $=P[0]+P[1];if($!=="$$")if($==="on"){let D={},U="$$"+P,z=P.slice(2);var S=xh(z);if(yh(z)&&(z=z.slice(0,-7),D.capture=!0),!S&&y){if(O!=null)continue;t.removeEventListener(z,u[U],D),u[U]=null}if(O!=null)if(S)t[`__${z}`]=O,st([z]);else{let G=function(le){u[P].call(this,le)};var R=G;u[U]=xf(z,t,G,D)}else S&&(t[`__${z}`]=void 0)}else if(P==="style")Ue(t,P,O);else if(P==="autofocus")$f(t,!!O);else if(!l&&(P==="__value"||P==="value"&&O!=null))t.value=t.__value=O;else if(P==="selected"&&p)Wh(t,O);else{var C=P;d||(C=wh(C));var I=C==="defaultValue"||C==="defaultChecked";if(O==null&&!l&&!I)if(a[P]=null,C==="value"||C==="checked"){let D=t,U=e===void 0;if(C==="value"){let z=D.defaultValue;D.removeAttribute(C),D.defaultValue=z,D.value=D.__value=U?z:null}else{let z=D.defaultChecked;D.removeAttribute(C),D.defaultChecked=z,D.checked=U?z:!1}}else t.removeAttribute(P);else I||f.includes(C)&&(l||typeof O!="string")?t[C]=O:typeof O!="function"&&Ue(t,C,O,r)}}}return s&&_o(!0),u}function to(t,e,i=[],o,r=!1,a=Gr){let l=i.map(a);var d=void 0,s={},u=t.nodeName==="SELECT",p=!1;if(Zi(()=>{var f=e(...l.map(n)),b=Kh(t,d,f,o,r);p&&u&&"value"in f&&qd(t,f.value,!1);for(let $ of Object.getOwnPropertySymbols(s))f[$]||ji(s[$]);for(let $ of Object.getOwnPropertySymbols(f)){var y=f[$];$.description===Gp&&(!d||y!==d[$])&&(s[$]&&ji(s[$]),s[$]=Di(()=>As(t,()=>y))),b[$]=y}d=b}),u){var m=t;ko(()=>{qd(m,d.value),Lf(m)})}p=!0}function qh(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[Uh]:t.nodeName.includes("-"),[zh]:t.namespaceURI===Cg}}var Fh=new Map;function Qh(t){var e=Fh.get(t.nodeName);if(e)return e;Fh.set(t.nodeName,e=[]);for(var i,o=t,r=Element.prototype;r!==o;){i=cu(o);for(var a in i)i[a].set&&e.push(a);o=xa(o)}return e}function I1(t,e,i){var o;ke&&(e==="srcset"&&E1(t,i)||Mf((o=t.getAttribute(e))!=null?o:"",i)||Zg(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function Mf(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function Hh(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function E1(t,e){var i=Hh(t.srcset),o=Hh(e);return o.length===i.length&&o.every(([r,a],l)=>a===i[l][1]&&(Mf(i[l][0],r)||Mf(r,i[l][0])))}var P1=du?()=>performance.now():()=>Date.now(),Zr={tick:t=>(du?requestAnimationFrame:bt)(t),now:()=>P1(),tasks:new Set};function Gh(){let t=Zr.now();Zr.tasks.forEach(e=>{e.c(t)||(Zr.tasks.delete(e),e.f())}),Zr.tasks.size!==0&&Zr.tick(Gh)}function Yh(t){let e;return Zr.tasks.size===0&&Zr.tick(Gh),{promise:new Promise(i=>{Zr.tasks.add(e={c:t,f:i})}),abort(){Zr.tasks.delete(e)}}}function Mu(t,e){Hd(()=>{t.dispatchEvent(new CustomEvent(e))})}function M1(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 jh(t){let e={},i=t.split(";");for(let o of i){let[r,a]=o.split(":");if(!r||a===void 0)break;let l=M1(r.trim());e[l]=a.trim()}return e}var V1=t=>t;function Jr(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,p=e.inert,m=e.style.overflow,f,b;function y(){var O;var E=Ot,P=xt;Yi(null),ho(null);try{return u!=null?u:u=i()(e,(O=o==null?void 0:o())!=null?O:{},{direction:s})}finally{Yi(E),ho(P)}}var $={is_global:d,in(){var E;if(e.inert=p,!r){b==null||b.abort(),(E=b==null?void 0:b.reset)==null||E.call(b);return}a||f==null||f.abort(),Mu(e,"introstart"),f=Vf(e,y(),b,1,()=>{Mu(e,"introend"),f==null||f.abort(),f=u=void 0,e.style.overflow=m})},out(E){if(!a){E==null||E(),u=void 0;return}e.inert=!0,Mu(e,"outrostart"),b=Vf(e,y(),f,0,()=>{Mu(e,"outroend"),E==null||E()})},stop:()=>{f==null||f.abort(),b==null||b.abort()}},S=xt;if(((R=S.transitions)!=null?R:S.transitions=[]).push($),r&&Ud){var C=d;if(!C){for(var I=S.parent;I&&(I.f&65536)!==0;)for(;(I=I.parent)&&(I.f&16)===0;);C=!I||(I.f&32768)!==0}C&&ko(()=>{kt(()=>$.in())})}}function Vf(t,e,i,o,r){var a=o===1;if(js(e)){var l,d=!1;return kn(()=>{if(!d){var S=e({direction:a?"in":"out"});l=Vf(t,S,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:bt,deactivate:bt,reset:bt,t:()=>o};let{delay:s=0,css:u,tick:p,easing:m=V1}=e;var f=[];if(a&&i===void 0&&(p&&p(0,1),u)){var b=jh(u(0,1));f.push(b,b)}var y=()=>1-o,$=t.animate(f,{duration:s,fill:"forwards"});return $.onfinish=()=>{var z;$.cancel();var S=(z=i==null?void 0:i.t())!=null?z:1-o;i==null||i.abort();var C=o-S,I=e.duration*Math.abs(C),R=[];if(I>0){var E=!1;if(u)for(var P=Math.ceil(I/16.666666666666668),O=0;O<=P;O+=1){var D=S+C*m(O/P),U=jh(u(D,1-D));R.push(U),E||(E=U.overflow==="hidden")}E&&(t.style.overflow="hidden"),y=()=>{var G=$.currentTime;return S+C*m(G/I)},p&&Yh(()=>{if($.playState!=="running")return!1;var G=y();return p(G,1-G),!0})}$=t.animate(R,{duration:I,fill:"forwards"}),$.onfinish=()=>{y=()=>o,p==null||p(o,1-o),r()}},{abort:()=>{$&&($.cancel(),$.effect=null,$.onfinish=bt)},deactivate:()=>{r=bt},reset:()=>{o===0&&(p==null||p(1,0))},t:()=>y()}}function Rf(t,e,i){var o=jo(t,e);o&&o.set&&(t[e]=i,Ao(()=>{t[e]=null}))}var ta,zl,Qd,Ru,Xh,Nu=class Nu{constructor(e){Qs(this,Ru);Qs(this,ta,new WeakMap);Qs(this,zl);Qs(this,Qd);xl(this,Qd,e)}observe(e,i){var o=Oi(this,ta).get(e)||new Set;return o.add(i),Oi(this,ta).set(e,o),Sg(this,Ru,Xh).call(this).observe(e,Oi(this,Qd)),()=>{var r=Oi(this,ta).get(e);r.delete(i),r.size===0&&(Oi(this,ta).delete(e),Oi(this,zl).unobserve(e))}}};ta=new WeakMap,zl=new WeakMap,Qd=new WeakMap,Ru=new WeakSet,Xh=function(){var e;return(e=Oi(this,zl))!=null?e:xl(this,zl,new ResizeObserver(i=>{for(var o of i){Nu.entries.set(o.target,o);for(var r of Oi(this,ta).get(o.target)||[])r(o)}}))},lr(Nu,"entries",new WeakMap);var Nf=Nu;var R1=new Nf({box:"border-box"});function Mn(t,e,i){var o=R1.observe(t,()=>i(t[e]));ko(()=>(kt(()=>i(t[e])),o))}function Zh(t,e){return t===e||(t==null?void 0:t[Xo])===e}function nt(t={},e,i,o){return ko(()=>{var r,a;return tn(()=>{r=a,a=(o==null?void 0:o())||[],kt(()=>{t!==i(...a)&&(e(t,...a),r&&Zh(i(...r),t)&&e(null,...r))})}),()=>{kn(()=>{a&&Zh(i(...a),t)&&e(null,...a)})}}),t}function To(t=!1){let e=zt,i=e.l.u;if(!i)return;let o=()=>Pu(e.s);if(t){let r=0,a={},l=Gr(()=>{let d=!1,s=e.s;for(let u in s)s[u]!==a[u]&&(a[u]=s[u],d=!0);return d&&r++,r});o=()=>n(l)}i.b.length&&Rd(()=>{Jh(e,o),Xs(i.b)}),De(()=>{let r=kt(()=>i.m.map(Lg));return()=>{for(let a of r)typeof a=="function"&&a()}}),i.a.length&&De(()=>{Jh(e,o),Xs(i.a)})}function Jh(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),bt;let o=kt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Wl=[];function Mr(t,e){return{subscribe:ae(t,e).subscribe}}function ae(t,e=bt){let i=null,o=new Set;function r(d){if(Tl(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=bt){let u=[d,s];return o.add(u),o.size===1&&(i=e(r,a)||bt),d(t),()=>{o.delete(u),o.size===0&&i&&(i(),i=null)}}return{set:r,update:a,subscribe:l}}function $i(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 Mr(i,(l,d)=>{let s=!1,u=[],p=0,m=bt,f=()=>{if(p)return;m();let y=e(o?u[0]:u,l,d);a?l(y):m=typeof y=="function"?y:bt},b=r.map((y,$)=>Gd(y,S=>{u[$]=S,p&=~(1<<$),s&&f()},()=>{p|=1<<$}));return s=!0,f(),function(){Xs(b),m(),s=!1}})}function ge(t){let e;return Gd(t,i=>e=i)(),e}var Ou=!1,Of=Symbol();function x(t,e,i){var a;let o=(a=i[e])!=null?a:i[e]={store:null,source:gs(void 0),unsubscribe:bt};if(o.store!==t&&!(Of in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=bt;else{var r=!0;o.unsubscribe=Gd(t,l=>{r?o.source.v=l:N(o.source,l)}),r=!1}return t&&Of in i?ge(t):n(o.source)}function Re(){let t={};function e(){Ao(()=>{for(var i in t)t[i].unsubscribe();go(t,Of,{enumerable:!1,value:!0})})}return[t,e]}function Df(t){var e=Ou;try{return Ou=!1,[t(),Ou]}finally{Ou=e}}var U1={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return ke&&zg(`${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 Vn(t,e,i){return new Proxy(ke?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},U1)}var z1={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(js(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o)return o[e]}},set(t,e,i){let o=t.props.length;for(;o--;){let r=t.props[o];js(r)&&(r=r());let a=jo(r,e);if(a&&a.set)return a.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(js(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let r=jo(o,e);return r&&!r.configurable&&(r.configurable=!0),r}}},has(t,e){if(e===Xo||e===wl)return!1;for(let i of t.props)if(js(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props)if(js(i)&&(i=i()),!!i){for(let o in i)e.includes(o)||e.push(o);for(let o of Object.getOwnPropertySymbols(i))e.includes(o)||e.push(o)}return e}};function ks(...t){return new Proxy({props:t},z1)}function e_(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function g(t,e,i,o){var D,U;var r=(i&1)!==0,a=!fs||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,s=!1,u;l?[u,s]=Df(()=>t[e]):u=t[e];var p=Xo in t||wl in t,m=l&&((U=(D=jo(t,e))==null?void 0:D.set)!=null?U:p&&e in t&&(z=>t[e]=z))||void 0,f=o,b=!0,y=!1,$=()=>(y=!0,b&&(b=!1,d?f=kt(o):f=o),f);u===void 0&&o!==void 0&&(m&&a&&Ug(e),u=$(),m&&m(u));var S;if(a)S=()=>{var z=t[e];return z===void 0?$():(b=!0,y=!1,z)};else{var C=(r?Gr:En)(()=>t[e]);C.f|=131072,S=()=>{var z=n(C);return z!==void 0&&(f=void 0),z===void 0?f:z}}if((i&4)===0&&a)return S;if(m){var I=t.$$legacy;return function(z,G){return arguments.length>0?((!a||!G||I||s)&&m(G?S():z),z):S()}}var R=!1,E=!1,P=gs(u),O=Gr(()=>{var z=S(),G=n(P);return R?(R=!1,E=!0,G):(E=!1,P.v=z)});return l&&n(O),r||(O.equals=Cl),function(z,G){if(Iu!==null&&(R=E,S(),n(P)),arguments.length>0){let le=G?n(O):a&&l?ci(z):z;if(!O.equals(le)){if(R=!0,N(P,le),y&&f!==void 0&&(f=le),e_(O))return z;kt(()=>n(O))}return z}return e_(O)?O.v:n(O)}}var W1;typeof HTMLElement=="function"&&(W1=class extends HTMLElement{constructor(e,i,o){super();lr(this,"$$ctor");lr(this,"$$s");lr(this,"$$c");lr(this,"$$cn",!1);lr(this,"$$d",{});lr(this,"$$r",!1);lr(this,"$$p_d",{});lr(this,"$$l",{});lr(this,"$$l_u",new Map);lr(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 _t(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=K1(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]=Bf(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=Lh({component:this.$$ctor,target:this.shadowRoot||this,props:Qt(Ae({},this.$$d),{$$slots:o,$$host:this})}),this.$$me=wu(()=>{tn(()=>{var a;this.$$r=!0;for(let l of Yp(this.$$c)){if(!((a=this.$$p_d[l])!=null&&a.reflect))continue;this.$$d[l]=this.$$c[l];let d=Bf(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]=Bf(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 Yp(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function Bf(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 K1(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var t_="5";var i_,o_,n_;typeof window!="undefined"&&((n_=(o_=(i_=window.__svelte)!=null?i_:window.__svelte={}).v)!=null?n_:o_.v=new Set).add(t_);var ud=require("@vkontakte/videoplayer-core/es2015"),dJ=require("@vkontakte/videoplayer-core/es2015"),cl=require("@vkontakte/videoplayer-shared/es2015"),p$=require("@vkontakte/videoplayer-statistics/es2015");var Ra=require("@vkontakte/videoplayer-shared/es2015");var q1={isMobile:void 0,disableInvisibleComponentsTimeout:500,debugLog:!1,devNullLog:!1,defaultLanguage:Ra.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:Ra.VideoQuality.Q_480P,highQualityLimit:Ra.VideoQuality.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,returnFocusOnControlsHide:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,thinStatistics:!1,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,tracer:!1,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,interactiveControlsTapPlace:!1,interactiveControlsFillAnimation:!1,interactiveControlsHideAnimation:!1,interactiveHistoryEndChapterFix:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,initSubtitles:!0,useCallbackForMediaSessionNextPrevClick:!1,usePerformanceFix:!1,userVideoPrefs:!1,savePreferredStatesOnUserActionOnly:!1,useLoopSetting:!1,doubleForwardAvailable:!1,useRichSeek:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,paramsOverride:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null,font:null,focusedOutlineWidth:null,focusedOutlineRadius:null,controlsDesktopPaddingHorizontal:null,timelinePaddingHorizontal:null,settingsBackgroundColor:null,controlsGradientHeight:null,controlsGradient:null},userSalt:"0",doubleForwardActivationTime:600,playbackStatusAnimationDuration:1e3,playbackStatusNextVideoAnimationDuration:1e3,suitableDurationForUsingRichSeek:180},r_=t=>(0,Ra.fillWithDefault)(t,q1),s_=t=>Pl("ui-config",t),Rt=()=>El("ui-config");var Yd="vk_player_debug_panel_opened";var a_="videoplayer",l_="videoplayer";var _s={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},d_=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),c_=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),u_=new Set(["ShiftRight","ShiftLeft"]);var p_=["TIMELINE"],jd=[...p_,"GRAPH_BUTTON"],Ff=[...p_,"PLAY_BUTTON"],Xd=[...jd,"PLAY_BUTTON"];var es=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(es||{}),Oa={xs:0,s:1,m:2,l:3,xl:4};var Zd=require("@vkontakte/videoplayer-shared/es2015"),f_=require("@vkontakte/videoplayer-core/es2015"),m_=require("@vkontakte/videoplayer-statistics/es2015");var Du="prod",Da="1.1.77";var Ba=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var v_=Symbol("storeContext"),g_=Symbol("microStoresContext"),h_=(t,e)=>{Pl(v_,t),Pl(g_,e),Du==="dev"&&(window.app={store:t,microStores:e})},ve=()=>{let t=El(v_);return(0,Zd.assertNonNullable)(t,"Store context is empty!"),t},Co=()=>{let t=El(g_);return(0,Zd.assertNonNullable)(t,"MicroStores context is empty!"),t},ui=(t,e)=>Fu(t,t.getValue(),e),Fu=(t,e,i)=>Mr(e,o=>{let r=t.subscribe(a=>{o(a),i==null||i(a)});return()=>r.unsubscribe()}),__=(t,e,i,o)=>{var D,U,z,G,le,Y,re,X,we;let r=t.info,{width:a,height:l}=ge(i.ui.playerSize),d=(U=(D=r.throughputEstimation$.getValue())==null?void 0:D.toFixed(0))!=null?U:0,s=(G=(z=r.rttEstimation$.getValue())==null?void 0:z.toFixed(0))!=null?G:0,u=r.isAutoQualityEnabled$.getValue()?"auto":"manual",p=`${Da} (core: ${f_.VERSION}, stat: ${m_.VERSION}, shared: ${Zd.VERSION})`,m=ge(i.state.errorLog$),f=m.length?`
|
|
45
|
+
`+m.map((ce,ne)=>{var Ne;let he=`${ne}) Type: ${ce.id}
|
|
46
|
+
`,xe=`Message: ${ce.message} (${ce.thrown})
|
|
47
47
|
`,Z=`Trace: ${(Ne=ce.thrown)==null?void 0:Ne.stack}
|
|
48
|
-
`;return
|
|
49
|
-
`):void 0,b=i.state.isAudioDisabled?"disabled":
|
|
50
|
-
`)},y_=(t,e,i)=>{var D,U,z,G;let o=t.info,{width:r,height:a}=he(i.ui.playerSize),l={version:Na,viewport:`${r}x${a}`,volume:Math.round(he(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 p=o.currentBuffer$.getValue(),m=o.isLive$.getValue(),f=o.liveBufferTime$.getValue();p&&(m&&f?l.buffer=p.end-f:l.buffer=Math.max(p.end-he(i.state.positionExact$),0)),l.position=he(i.state.positionExact$);let b=o.throughputEstimation$.getValue();b&&(l.speed=b);let y=o.videoBitrate$.getValue();y&&(l.bitrate=y);let $=o.liveLatency$.getValue();$&&(l.liveLatency=$);let S=o.currentVideoSegmentLength$.getValue();S&&(l.currentVideoSegmentLength=S);let C=o.currentAudioSegmentLength$.getValue();C&&(l.currentAudioSegmentLength=C);let I=he(i.vsid);typeof I=="string"&&(l.vsid=I);let R=(D=t.info.currentVideoStream$.getValue())==null?void 0:D.codec;R&&(l.videoCodec=R);let E=(U=t.info.currentAudioStream$.getValue())==null?void 0:U.codec;E&&(l.audioCodec=E),((z=t.info.currentVideoStream$.getValue())==null?void 0:z.hdr)&&(l.hdr=!0);let O=(G=t.info.currentAudioStream$.getValue())==null?void 0:G.language;return O&&(l.audioLanguage=O),l},x_=(t,e)=>Oa(t,e,"mp4"),w_=t=>!t.type,S_=t=>!!t.type,T_=()=>{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 gt(this,null,function*(){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let i=yield fetch(e,{signal:this.destroyController.signal});if(i.ok)return yield i.text();throw i}finally{this.pendingDownloads.delete(e)}})}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};var $i=require("@vkontakte/videoplayer-shared/es2015"),D6=require("@vkontakte/videoplayer-core/es2015");var Y1="vk_player_",C_="vk_player_prefer_traffic_saving_enabled",I_="vk_player_preferred_volume",E_="vk_player_prefer_volume_mute",Kf="vk_player_preferred_quality",Uf="vk_player_preferred_default_quality_settings",zf="vk_player_preferred_quality_settings_by_video",P_="vk_player_preferred_stream_language",A_="vk_player_preferred_rate",k_="vk_player_preferred_autoplay_next",Wf="vk_player_preferred_subtitles_language",L_="vk_player_user_video_prefs",M_=`${Y1}preview_track_close_tooltip`,V_=t=>t>1?1:t<0?0:t,qf=t=>$i.safeStorage.set(I_,V_(t).toString(10)),Uu=()=>{let t=$i.safeStorage.get(I_);return(0,$i.isNullable)(t)?void 0:V_(parseFloat(t))},Qf=(t,e)=>$i.safeStorage.set(Kf,JSON.stringify({videoId:t,value:e})),zu=()=>$i.safeStorage.remove(Kf),Gf=t=>{let e=$i.safeStorage.get(Kf);if((0,$i.isNullable)(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){zu();return}return o},Yf=(t,e)=>{e?$i.safeStorage.set(t,"true"):$i.safeStorage.remove(t)},jf=t=>$i.safeStorage.get(t)==="true",Xf=t=>Yf(E_,t),R_=()=>jf(E_),Jd=t=>Yf(C_,t),Zf=()=>jf(C_),N_=()=>$i.safeStorage.get(P_),Jf=t=>$i.safeStorage.set(P_,t),em=()=>$i.safeStorage.get(Wf),tm=t=>{t?$i.safeStorage.set(Wf,t):$i.safeStorage.remove(Wf)},O_=t=>$i.safeStorage.set(A_,JSON.stringify({rate:t})),D_=()=>{let t=$i.safeStorage.get(A_);if((0,$i.isNullable)(t))return;let{rate:e}=JSON.parse(t);return e},B_=t=>Yf(k_,t),F_=()=>jf(k_),j1=()=>{let t=p=>{$i.safeStorage.set(Uf,JSON.stringify(p))},e=()=>{try{let p=$i.safeStorage.get(Uf);return p?JSON.parse(p):null}catch(p){return null}},i=()=>{try{let p=$i.safeStorage.get(zf);return p?JSON.parse(p):null}catch(p){return null}},o=p=>{$i.safeStorage.set(zf,JSON.stringify(p))},r=p=>{u(p);let m=p?i():null;if(m&&(m==null?void 0:m.videoId)===p)return qt(Ae({},m),{appliesTo:"to-video"});m&&a();let f=e();return f?qt(Ae({},f),{appliesTo:"as-default"}):(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},a=()=>{$i.safeStorage.remove(zf)},l=()=>{$i.safeStorage.remove(Uf)},d=(p,m="as-default")=>{p.type==="exact_quality"||m==="to-video"?o(p):t(p)},s=p=>{let m=r(p);if(m){switch(m.type){case"traffic_saving":Jd(!0);break;case"exact_quality":Qf(p,m.quality)}a(),l()}},u=p=>{let m=Gf(p);if(m){o({type:"exact_quality",videoId:p,quality:m});return}Zf()&&t({type:"traffic_saving",videoId:p}),Jd(!1),zu()};return{getPreferredQualitySettings:r,migrateSettingsToLegacyWay:s,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:a,getPreferredDefaultQualitySettings:e,getPreferredSubtitlesLanguage:em,savePreferredSubtitlesLanguage:tm}},{getPreferredQualitySettings:H_,migrateSettingsToLegacyWay:U_,savePreferredQualitySettings:Wu,savePreferredDefaultQualitySettings:B6,removePreferredQualitySettingsByVideo:F6,getPreferredDefaultQualitySettings:Ku}=j1(),X1=3,Z1=3,z_=()=>{let t=$i.safeStorage.get(L_);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},im=(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=J1(o);$i.safeStorage.set(L_,JSON.stringify(a))};function J1(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(Z1),e.reduce((o,[r])=>(o[r]=ey(t[r]),o),{})}function ey(t){let e=Object.entries(t);return e.sort(([,i],[,o])=>i.updatedTs>o.updatedTs?-1:1),e.splice(X1),Object.fromEntries(e)}function W_(){$i.safeStorage.set(M_,JSON.stringify(!0))}function K_(){let t=$i.safeStorage.get(M_);try{return t?JSON.parse(t):!1}catch(e){return!1}}var Jv=require("@vkontakte/videoplayer-core/es2015");jg();var ta="var(--btn-color, #fff)";var ty=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),iy=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 Je(t,e){var p;F(e,!0);let i=g(e,"width",19,()=>"24"),o=g(e,"height",19,()=>"24"),r=g(e,"fill",3,ta),a=(p=e.viewBox)!=null?p:`0 0 ${i()} ${o()}`;var l=iy(),d=T(l);{var s=m=>{var f=ty(),b=de(f),y=T(b);si(y,()=>e.children),w(b),vi(),_(m,f)},u=m=>{var f=Le(),b=de(f);si(b,()=>e.children),_(m,f)};V(d,m=>{e.shadow?m(s):m(u,!1)})}w(l),B(()=>{Ue(l,"aria-label",e.ariaLabel),Ue(l,"aria-hidden",!e.ariaLabel),Ue(l,"width",i()),Ue(l,"height",o()),Ue(l,"viewBox",a),Ue(l,"fill",r()),Ge(l,e.style),Ue(l,"data-testid",e.testId)}),_(t,l),H()}var zl=require("@vkontakte/videoplayer-shared/es2015");var oy={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:`Видео грузится слишком медленно,
|
|
48
|
+
`;return he+xe+Z}).join(`
|
|
49
|
+
`):void 0,b=i.state.isAudioDisabled?"disabled":ge(i.state.isAudioAvailable$)?void 0:"unavailable",y=t.info.currentVideoStream$.getValue(),$=t.info.currentAudioStream$.getValue(),S=[];y&&S.push(`Video: ${(le=y==null?void 0:y.codec)!=null?le:""}`+(y!=null&&y.hdr?" (HDR)":"")),$&&S.push(`Audio: ${(Y=$==null?void 0:$.codec)!=null?Y:""}`+($!=null&&$.language?` (${$.language})`:""));let C=r.currentQuality$.getValue(),I="";if(C){let ce=r.availableQualitiesFps$.getValue()[C];I=ce?`${ce}fps`:""}let R=r.httpConnectionType$.getValue(),E=(X=(re=r.currentBuffer$.getValue())==null?void 0:re.end)!=null?X:0,P=Math.max(E-ge(i.state.positionExact$),0),O={Version:p,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),TraceId:o,VSID:ge(i.vsid),"Content host":r.hostname$.getValue(),"Connection type":R?R+(r.httpConnectionReused$.getValue()?" (reused)":""):"",Throughput:`${d}Kbps @ ${s}ms RTT`,Format:r.currentFormat$.getValue(),"Available Formats":e!=null&&e.sources?Object.keys(e.sources).join(", "):"",Streams:S.join(", "),Quality:`${u} ${C!=null?C:""} ${I}`,"Available qualities":r.availableQualities$.getValue().join(", "),Audio:b,Position:`${ge(i.state.positionExact$)}s`,Buffer:`${P}s`,State:`${ge(i.playerPhase)} ${(we=r.playbackState$.getValue())!=null?we:""}`,"Player size":`${a}x${l}`,URL:window.location.href,Errors:f};return Object.entries(O).filter(([ce,ne])=>ne!==void 0).map(([ce,ne])=>`${ce}: ${ne}`).join(`
|
|
50
|
+
`)},b_=(t,e,i)=>{var D,U,z,G;let o=t.info,{width:r,height:a}=ge(i.ui.playerSize),l={version:Da,viewport:`${r}x${a}`,volume:Math.round(ge(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 p=o.currentBuffer$.getValue(),m=o.isLive$.getValue(),f=o.liveBufferTime$.getValue();p&&(m&&f?l.buffer=p.end-f:l.buffer=Math.max(p.end-ge(i.state.positionExact$),0)),l.position=ge(i.state.positionExact$);let b=o.throughputEstimation$.getValue();b&&(l.speed=b);let y=o.videoBitrate$.getValue();y&&(l.bitrate=y);let $=o.liveLatency$.getValue();$&&(l.liveLatency=$);let S=o.currentVideoSegmentLength$.getValue();S&&(l.currentVideoSegmentLength=S);let C=o.currentAudioSegmentLength$.getValue();C&&(l.currentAudioSegmentLength=C);let I=ge(i.vsid);typeof I=="string"&&(l.vsid=I);let R=(D=t.info.currentVideoStream$.getValue())==null?void 0:D.codec;R&&(l.videoCodec=R);let E=(U=t.info.currentAudioStream$.getValue())==null?void 0:U.codec;E&&(l.audioCodec=E),((z=t.info.currentVideoStream$.getValue())==null?void 0:z.hdr)&&(l.hdr=!0);let O=(G=t.info.currentAudioStream$.getValue())==null?void 0:G.language;return O&&(l.audioLanguage=O),l},$_=(t,e)=>Ba(t,e,"mp4"),y_=t=>!t.type,x_=t=>!!t.type,w_=()=>{let e=[],i=0;return{add:(o,r)=>{e[i]=[o,r],i=(i+1)%10},find:o=>e.find(([r])=>r===o)}},Bu=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}download(e){return _t(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 hi=require("@vkontakte/videoplayer-shared/es2015"),N6=require("@vkontakte/videoplayer-core/es2015");var Q1="vk_player_",S_="vk_player_prefer_traffic_saving_enabled",T_="vk_player_preferred_volume",C_="vk_player_prefer_volume_mute",Wf="vk_player_preferred_quality",Hf="vk_player_preferred_default_quality_settings",Uf="vk_player_preferred_quality_settings_by_video",I_="vk_player_preferred_stream_language",E_="vk_player_preferred_rate",P_="vk_player_preferred_autoplay_next",zf="vk_player_preferred_subtitles_language",A_="vk_player_user_video_prefs",k_=`${Q1}preview_track_close_tooltip`,L_=t=>t>1?1:t<0?0:t,Kf=t=>hi.safeStorage.set(T_,L_(t).toString(10)),Hu=()=>{let t=hi.safeStorage.get(T_);return(0,hi.isNullable)(t)?void 0:L_(parseFloat(t))},qf=(t,e)=>hi.safeStorage.set(Wf,JSON.stringify({videoId:t,value:e})),Uu=()=>hi.safeStorage.remove(Wf),Qf=t=>{let e=hi.safeStorage.get(Wf);if((0,hi.isNullable)(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){Uu();return}return o},M_=(t,e)=>{e?hi.safeStorage.set(t,"true"):hi.safeStorage.remove(t)},Gf=t=>hi.safeStorage.get(t)==="true",Yf=t=>M_(C_,t),V_=()=>Gf(C_),Jd=t=>M_(S_,t),jf=()=>Gf(S_),R_=()=>hi.safeStorage.get(I_),Xf=t=>hi.safeStorage.set(I_,t),Zf=()=>hi.safeStorage.get(zf),Jf=t=>{t?hi.safeStorage.set(zf,t):hi.safeStorage.remove(zf)},N_=t=>hi.safeStorage.set(E_,JSON.stringify({rate:t})),O_=()=>{let t=hi.safeStorage.get(E_);if((0,hi.isNullable)(t))return;let{rate:e}=JSON.parse(t);return e},D_=t=>{hi.safeStorage.set(P_,String(t))},B_=()=>Gf(P_),G1=()=>{let t=p=>{hi.safeStorage.set(Hf,JSON.stringify(p))},e=()=>{try{let p=hi.safeStorage.get(Hf);return p?JSON.parse(p):null}catch(p){return null}},i=()=>{try{let p=hi.safeStorage.get(Uf);return p?JSON.parse(p):null}catch(p){return null}},o=p=>{hi.safeStorage.set(Uf,JSON.stringify(p))},r=p=>{u(p);let m=p?i():null;if(m&&(m==null?void 0:m.videoId)===p)return Qt(Ae({},m),{appliesTo:"to-video"});m&&a();let f=e();return f?Qt(Ae({},f),{appliesTo:"as-default"}):(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},a=()=>{hi.safeStorage.remove(Uf)},l=()=>{hi.safeStorage.remove(Hf)},d=(p,m="as-default")=>{p.type==="exact_quality"||m==="to-video"?o(p):t(p)},s=p=>{let m=r(p);if(m){switch(m.type){case"traffic_saving":Jd(!0);break;case"exact_quality":qf(p,m.quality)}a(),l()}},u=p=>{let m=Qf(p);if(m){o({type:"exact_quality",videoId:p,quality:m});return}jf()&&t({type:"traffic_saving",videoId:p}),Jd(!1),Uu()};return{getPreferredQualitySettings:r,migrateSettingsToLegacyWay:s,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:a,getPreferredDefaultQualitySettings:e,getPreferredSubtitlesLanguage:Zf,savePreferredSubtitlesLanguage:Jf}},{getPreferredQualitySettings:F_,migrateSettingsToLegacyWay:H_,savePreferredQualitySettings:zu,savePreferredDefaultQualitySettings:O6,removePreferredQualitySettingsByVideo:D6,getPreferredDefaultQualitySettings:Wu}=G1(),Y1=3,j1=3,U_=()=>{let t=hi.safeStorage.get(A_);if(t)try{return JSON.parse(t)}catch(e){return null}return null},Ku=(t,e)=>{var r,a;let i=U_();return(a=(r=i==null?void 0:i[t])==null?void 0:r[e])!=null?a:null},em=(t,e,i)=>{var l,d,s;let o=(l=U_())!=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=X1(o);hi.safeStorage.set(A_,JSON.stringify(a))};function X1(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(j1),e.reduce((o,[r])=>(o[r]=Z1(t[r]),o),{})}function Z1(t){let e=Object.entries(t);return e.sort(([,i],[,o])=>i.updatedTs>o.updatedTs?-1:1),e.splice(Y1),Object.fromEntries(e)}function z_(){hi.safeStorage.set(k_,JSON.stringify(!0))}function W_(){let t=hi.safeStorage.get(k_);try{return t?JSON.parse(t):!1}catch(e){return!1}}var Xv=require("@vkontakte/videoplayer-core/es2015");Gg();var ia="var(--btn-color, #fff)";var J1=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),ey=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 Je(t,e){var p;F(e,!0);let i=g(e,"width",19,()=>"24"),o=g(e,"height",19,()=>"24"),r=g(e,"fill",3,ia),a=(p=e.viewBox)!=null?p:`0 0 ${i()} ${o()}`;var l=ey(),d=T(l);{var s=m=>{var f=J1(),b=de(f),y=T(b);ai(y,()=>e.children),w(b),vi(),_(m,f)},u=m=>{var f=Le(),b=de(f);ai(b,()=>e.children),_(m,f)};V(d,m=>{e.shadow?m(s):m(u,!1)})}w(l),B(()=>{Ue(l,"aria-label",e.ariaLabel),Ue(l,"aria-hidden",!e.ariaLabel),Ue(l,"width",i()),Ue(l,"height",o()),Ue(l,"viewBox",a),Ue(l,"fill",r()),Ge(l,e.style),Ue(l,"data-testid",e.testId)}),_(t,l),H()}var Kl=require("@vkontakte/videoplayer-shared/es2015");var ty={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:"Выйти из режима точной перемотки"},
|
|
52
|
+
попробуйте изменить качество на «Авто»`,double_forward_label:"2x",preview_track_notification_text:"Потяните вверх для точной перемотки",preview_track_close_tooltip:"Выйти из режима точной перемотки"},K_=ty;var iy={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"},
|
|
55
|
-
`),o,r;for(let a=0;a<i.length;++a){if(o=
|
|
56
|
-
`).filter(i=>!!i)[0]}function py(t){try{let e=uy(t);if(e)return e}catch(e){}return{value:Y_(t),type:t&&t.name,stacktrace:{frames:[]}}}function fy(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var Gu=class{constructor(e){if(e&&e.dsn){let i=cy.exec(e.dsn),o=i?i.slice(1):[],r=o[5].split("/"),a=r.slice(0,-1).join("/");this.apiUrl=o[0]+"://"+o[3]+(o[4]?":"+o[4]:"")+(a?"/"+a:"")+"/api/"+r.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+o[1]+(o[2]?",sentry_secret="+o[2]:"")}this.environment=e&&e.environment}prepare(e){return qt(Ae({},this.getRequestBlank()),{exception:{values:[py(e)]}})}report(e){this.send(this.prepare(e))}send(e){!this.apiUrl||!e||this.createRequest(e)}createRequest(e){let i=new XMLHttpRequest;i.open("POST",this.apiUrl,!0),i.setRequestHeader("Content-type","application/json"),i.setRequestHeader(dy,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:fy(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function j_(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function my(){return window}var Yu=class t extends Gu{constructor(e,i=my()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:r=u=>u,beforeBreadcrumb:a=u=>u,blacklistUrls:l=[],ignoreErrors:d=[],release:s=void 0}=this.options||{};this.plugins=o.map(u=>new u(this)),this.beforeSend=r,this.beforeBreadcrumb=a,this.blacklistUrls=l,this.ignoreErrors=d,this.release=s}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",Ae({},e)),this}setTag(e,i){return this.extendState({tags:{[e]:i}}),this}setExtra(e,i){return this.extendState({extra:{[e]:i}}),this}setExtras(e){return this.setKeyState("extra",Ae({},e)),this}setUser(e){return this.setKeyState("user",Ae({},e)),this}clone(){let e=new t(qt(Ae({},this.options),{plugins:[]}));return e.extendState(this.state),e}withScope(e){let i=this.clone();e(i),i.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[Ae({timestamp:Date.now()/1e3},this.beforeBreadcrumb(e))]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send(qt(Ae({},this.getRequestBlank()),{message:e,level:i}))}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(i=>this.ignoreErrors.some(o=>j_(i,o))):!1}getRequestBlank(){return Ae(qt(Ae({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(Ae({release:this.release},e))),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:i="",value:o=""}=e.exception.values&&e.exception.values[0]||{};return[`${o}`,`${i}: ${o}`]}catch(i){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let i=this.getEventFilterUrl(e);return i?this.blacklistUrls.some(o=>j_(i,o)):!1}getEventFilterUrl(e){try{if(e.exception){let i=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return i&&i[i.length-1].filename||null}return null}catch(i){return null}}extendState(e){this._state=Object.keys(e).reduce((i,o)=>{let r=this._state[o],a=Array.isArray(r)?r:null,l=e[o],d=Array.isArray(l)?l:null;return qt(Ae({},i),{[o]:a||d?[...a||[],...d||[]]:Ae(Ae({},typeof r!="string"?r:{}),typeof l!="string"?l:{})})},this._state)}setKeyState(e,i){this._state[e]=i}};var Da=require("@vkontakte/videoplayer-shared/es2015");var ju=null,Ba=class{constructor(e,i,o={}){!ju&&e.dsn&&(this.sentryClient=new Yu({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new Da.Subscription,this.options=e,this.context=o,ju=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),ju=null}logIError(e,i=!1){e.thrown&&this.report(e.thrown,{fatal:i,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,i={},o={}){let{sentryClient:r,context:a,options:l}=this,{sampleRate:d=0,whiteErrorIdList:s,whiteErrorCategoryList:u=[],blackErrorIdList:p,blackErrorCategoryList:m}=l,{errorType:f,category:b}=i;if((0,Da.isNonNullable)(b)&&m.includes(b)||(0,Da.isNonNullable)(f)&&p.includes(f))return;if(Math.random()<=d||(0,Da.isNonNullable)(b)&&u.includes(b)||(0,Da.isNonNullable)(f)&&s.includes(f)){Object.keys(i).length&&r.setTags(Ae({version:this.version},i)),(Object.keys(a).length||Object.keys(o).length)&&r.setExtras(Ae(Ae({},a),o));try{f&&r.captureMessage(f,i.fatal?Wl.fatal:Wl.error),r.report(e)}catch($){console.error($)}}}static getInstance(){return ju}};var es=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(es||{});var Xu=t=>{if(t.requestFullscreen)return t.requestFullscreen();if(t.msRequestFullscreen)return t.msRequestFullscreen();if(t.webkitRequestFullscreen)return t.webkitRequestFullscreen();if(t.mozRequestFullScreen)return t.mozRequestFullScreen();let e=t.querySelector("video");return e!=null&&e.webkitEnterFullscreen?(e.webkitEnterFullscreen(),Promise.resolve()):Promise.reject()},Zu=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),X_=(t,e)=>e?!0:t.fullscreenEnabled||!!t.webkitFullscreenEnabled||!!t.mozFullscreenEnabled||!!t.msFullscreenEnabled,Z_=t=>{let e=t;e!=null&&e.webkitExitFullscreen&&(e==null||e.webkitExitFullscreen())},tc=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},ia=()=>!!tc(),Ju=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},ep=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},J_=t=>{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")(t))};var sm=require("@vkontakte/videoplayer-core/es2015"),eb=()=>({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:sm.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:sm.clientChecker.device.isApple?Q("hotkey_map_item_next_episode_mac_value"):Q("hotkey_map_item_next_episode_pc_value")}]}]});var Kl=require("@vkontakte/videoplayer-shared/es2015");var Fa=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,Kl.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new Kl.ValueSubject(!1),isEnabled$:new Kl.ValueSubject(!1),type:0};this.info.isEnabled$=new Kl.ValueSubject(e)}isSupported(){return document.pictureInPictureEnabled}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(i){this.isRequested=!1}})}exit(){return gt(this,null,function*(){!this.isSupported()||!this.isActive()||(yield document.exitPictureInPicture())})}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){this.isSupported()&&this.exit().finally(()=>{var e;this.removeEventHandlers(),this.videoElement=(e=this.playerContainer)==null?void 0:e.querySelector("video"),this.addEventHandlers()})}addEventHandlers(){var e,i;(e=this.videoElement)==null||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}setExternalEventHandlers(e){this.externalEventHandlers=Ae({},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 gt(this,null,function*(){this.removeEventHandlers(),yield this.exit(),this.info.isActive$.next(!1),this.isRequested=!1})}onEnterPictureInPicture(e){var r,a;let o=e.pictureInPictureWindow;o&&(this.info.isActive$.next(!0),this.isRequested=!0,o.addEventListener("resize",this.eventHandlers.resize),(a=(r=this.externalEventHandlers).enterpictureinpicture)==null||a.call(r,e))}onLeavePictureInPicture(e){var r,a;let o=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,this.eventHandlers.resize.cancel(),o==null||o.removeEventListener("resize",this.eventHandlers.resize),(a=(r=this.externalEventHandlers).leavepictureinpicture)==null||a.call(r,e)}onResize(e){var i,o;(o=(i=this.externalEventHandlers).resize)==null||o.call(i,e)}setEnabled(e){this.info.isEnabled$.next(e)}};function Ha(t){return t instanceof Fa}var ql=require("@vkontakte/videoplayer-shared/es2015");function lm(t,e){F(e,!1);let i=me();Dt(()=>{i.getAdmanWrapper().startPostroll()}),Co(),H()}var tb=require("@vkontakte/videoplayer-shared/es2015");var vy=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>'),gy=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 Dr(t,e){F(e,!0);let i=g(e,"direction",3,"left"),o=g(e,"useBtnColor",3,!1),r=v(()=>["up","down"].includes(i())),a=v(()=>["right","down"].includes(i())),l=v(()=>`chevron-icon--${i()}`),d=v(()=>(()=>{let p="";return n(a)&&(p+="transform: rotate(180deg);"),p.length?p:void 0})()),s=v(()=>o()?ta:"currentColor"),u=v(()=>n(r)?"7":"16");Je(t,{width:"12",get height(){return n(u)},get fill(){return n(s)},get testId(){return n(l)},get style(){return n(d)},children:(p,m)=>{var f=Le(),b=de(f);{var y=S=>{var C=vy();_(S,C)},$=S=>{var C=gy();_(S,C)};V(b,S=>{n(r)?S(y):S($,!1)})}_(p,f)},$$slots:{default:!0}}),H()}var hy=(t,e,i)=>{t.stopPropagation(),n(e)&&i()()},_y=L('<div class="skip s-1h"> <!></div>'),by=L("<div><!></div>"),$y={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 dm(t,e){F(e,!0),q(t,$y);let[i,o]=Re(),r=()=>x(u,"$isMobile",i),a=g(e,"position",3,0),l=g(e,"secondsToWatchBeforeSkip",3,0),d=g(e,"skipAd",3,tb.noop),u=me().ui.isMobile,p=v(()=>a()>0&&a()>=l());var m=by();let f;m.__click=[hy,p,d];var b=T(m);{var y=S=>{var C=_y(),I=T(C),R=k(I);Dr(R,{direction:"right"}),w(C),B(E=>pe(I,`${E!=null?E:""} `),[()=>Q("skip_ads_now")]),_(S,C)},$=S=>{var C=ms();B(I=>pe(C,I),[()=>Q("skip_ads_after",{time:Math.ceil(l()-a()).toFixed(0)})]),_(S,C)};V(b,S=>{n(p)?S(y):S($,!1)})}w(m),B(S=>f=se(m,1,"container s-1h",null,f,S),[()=>({"container-mobile":r(),skippable:n(p)})]),_(t,m),H(),o()}st(["click"]);var yy=L('<button class="go-to-site s-1i"> </button>'),xy={hash:"s-1i",code:"button.go-to-site.s-1i{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 cm(t,e){F(e,!1),q(t,xy),Co();var i=yy(),o=T(i,!0);w(i),B(r=>pe(o,r),[()=>Q("visit_advertiser")],In),_(t,i),H()}var wy=L('<div class="top-gradient-mobile s-k"></div>'),Sy=L('<div class="container s-k"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),Ty={hash:"s-k",code:".container.s-k{height:100%;width:100%}.top-gradient-mobile.s-k{background:linear-gradient(1turn,transparent,rgba(0,0,0,.05) 12%,rgba(0,0,0,.15) 25%,rgba(0,0,0,.3) 45%,rgba(0,0,0,.4) 57%,rgba(0,0,0,.5) 77%,rgba(0,0,0,.55) 88%,rgba(0,0,0,.65));height:80px;left:0;pointer-events:none;position:absolute;top:0;width:100%}"};function oc(t,e){F(e,!0),q(t,Ty);let[i,o]=Re(),r=()=>x(U,"$canSkipAd",i),a=()=>x(D,"$adPlaybackState",i),l=()=>x(I,"$isMobile",i),d=()=>x(z,"$adPosition",i),s=()=>x(G,"$secondsToWatchBeforeSkipAd",i),u=()=>x(C,"$isVideoEnded",i),p=g(e,"adsSlotId",3,void 0),m=g(e,"adsParams",3,void 0),f=g(e,"adsAutoplayParam",3,void 0),b=g(e,"duration",3,0),y=g(e,"adsExternalApi",3,void 0),$=me(),S=Rt(),C=$.state.isEnded$,I=$.ui.isMobile,R=S.ads.isMobileGoToSiteButton,E=K(void 0),A=K(void 0),O=!1,D=$.ads.playbackState,U=$.ads.canSkip,z=$.ads.position,G=$.ads.secondsToWatchBeforeSkip,le=v(()=>r()&&a()!=="inactive"),X=v(()=>l()&&a()!=="inactive"&&R);Dt(()=>{let P=$.getAdmanWrapper();if(ql.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[(0,ql.now)(),p()]}),!p()){P.onAdmanLoadingError();return}let Ke=()=>{var Fe;let{width:Oe,height:Be}=he($.ui.playerSize),fe=he($.ui.isFullscreen),ee=(Fe=f())!=null?Fe:he($.ui.isAutoplay),Se=S.ads.paramsOverride;return{width:Oe,height:Be,isFullscreen:fe,isAutoplay:ee,adsContainer:n(E),adsVideoElement:n(A),slotId:p(),params:m(),paramsOverride:Se,duration:b(),externalApi:y()}},Ce=Oe=>gt(null,null,function*(){Oe&&(yield bo());let Be=Ke();yield P.initAdman(Be),O=!0}),Y=new AbortController,ie=()=>{Y.abort()};return window.AdmanHTML?Ce(!0).catch(()=>{P.onAdmanLoadingError()}):P.loadAdman(Y.signal).then(()=>Ce(!1)).catch(()=>{P.onAdmanLoadingError()}),()=>{ql.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[(0,ql.now)(),p()]}),!O&&ie()}});var oe=Sy(),j=T(oe);{var ve=P=>{var Ke=wy();_(P,Ke)};V(j,P=>{l()&&P(ve)})}var ce=k(j,2);nt(ce,P=>N(A,P),()=>n(A));var re=k(ce,2);{var _e=P=>{dm(P,{get position(){return d()},get secondsToWatchBeforeSkip(){return s()},get skipAd(){return $.actions.internal.skipAd}})};V(re,P=>{n(le)&&P(_e)})}var we=k(re,2);{var Z=P=>{lm(P,{})};V(we,P=>{u()&&P(Z)})}var Ne=k(we,2);{var ue=P=>{cm(P,{})};V(Ne,P=>{n(X)&&P(ue)})}w(oe),nt(oe,P=>N(E,P),()=>n(E)),_(t,oe),H(),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 Cy=Ee('<path fill="#fff"></path>'),Iy=Ee("<path></path><!>",1);function nc(t,e){let i=g(e,"isActive",3,!1),o=v(()=>i()?"live-active-icon":"live-icon"),r=v(()=>i()?"var(--timeline-slider-filled-active-live-bg, #FF3347)":void 0),a="M8 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2H9V6a1 1 0 0 0-1-1m7 1a1 1 0 1 1 2 0v8a1 1 0 1 1-2 0zm15-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2h-3v-2h3a1 1 0 1 0 0-2h-3V7h3a1 1 0 1 0 0-2zm-8.32 9.31-2.55-7.82a1 1 0 0 1-.12-.37L19 6.1a1 1 0 1 1 2-.2l2 6.4 2-6.4a1 1 0 0 1 2 .2v.02a1 1 0 0 1-.13.37l-2.55 7.82a1 1 0 0 1-.95.69h-.74a1 1 0 0 1-.95-.69";Je(t,{width:"42",height:"20",get testId(){return n(o)},get fill(){return n(r)},children:(l,d)=>{var s=Iy(),u=de(s),p=k(u);{var m=f=>{var b=Cy();Ue(b,"d",a),_(f,b)};V(p,f=>{i()&&f(m)})}B(()=>Ue(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 Ey=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>'),Py=L('<div class="live-icon s-b"><!></div>'),Ay=L('<span class="text s-b"> </span>'),ky=L("<div><!> <!></div>"),Ly={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(t,e){q(t,Ly);let i=g(e,"withEqualizer",3,!1),o=g(e,"isLive",3,!1),r=g(e,"isPlaying",3,!1);var a=ky();let l;var d=T(a);{var s=f=>{var b=Ey();_(f,b)};V(d,f=>{i()&&f(s)})}var u=k(d,2);{var p=f=>{var b=Py(),y=T(b);nc(y,{isActive:!0}),w(b),_(f,b)},m=f=>{var b=Ay(),y=T(b,!0);w(b),B(()=>pe(y,e.time)),_(f,b)};V(u,f=>{o()?f(p):f(m,!1)})}w(a),B(f=>l=se(a,1,"wrapper s-b",null,l,f),[()=>({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 My=L('<div role="timer" data-testid="thumb-timer"><!></div>'),Vy={hash:"s-s",code:".thumb-timer.s-s{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){F(e,!0),q(t,Vy);let[i,o]=Re(),r=()=>x(p,"$disabled",i),a=g(e,"isHidden",3,!1),l=g(e,"isLive",3,!1),d=g(e,"isPlaying",3,!1),s=Rt(),u=v(()=>en(e.duration-e.position)),p=ae(!1);var m=My();let f;var b=T(m);rc(b,{get time(){return n(u)},get isLive(){return l()},get isPlaying(){return d()},withEqualizer:!0}),w(m),As(m,()=>Ql(a()&&s.features.usePerformanceFix,p,s.disableInvisibleComponentsTimeout)),B(y=>f=se(m,1,"thumb-timer s-s",null,f,y),[()=>({"out-of-flow":r(),hidden:a()})]),_(t,m),H(),o()}var Gl=t=>{if(!navigator.clipboard){ib(t);return}navigator.clipboard.writeText(t).catch(()=>ib(t))};function ib(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 ub=require("@vkontakte/videoplayer-core/es2015");var pm=require("@vkontakte/videoplayer-core/es2015");var um="focus-hidden";var Br=t=>{t.stopPropagation(),t.preventDefault()},fm=t=>{var e,i;(i=(e=t.parentNode)==null?void 0:e.firstElementChild)==null||i.classList.remove(um)},Ny=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},Oy=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},Dy=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},By=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},ob=t=>t.code==="Escape",Fy=t=>t.code==="ArrowLeft",ac=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},nb=t=>{Dy(t)?(Br(t),Oy(t.target)):By(t)&&(Br(t),Ny(t.target))},ra=t=>!pm.clientChecker.device.isAndroid&&(t==null?void 0:t.detail)===0||pm.clientChecker.device.isAndroid&&(t==null?void 0:t.pointerType)==="",Yl=(t,e,i)=>gt(null,null,function*(){yield bo(),t&&!t.classList.contains("opened")&&!e&&he(i)&&(yield bo(),i.set(!1),t.focus())}),rb=(t,e,i)=>gt(null,null,function*(){yield bo(),t&&!e&&he(i)&&(i.set(!1),t.focus())}),lc=(t,e,i,o=!1)=>gt(null,null,function*(){if(yield bo(),!!t&&e&&!o){let a=t.children[0];a==null||a.classList.toggle(um,!i),a==null||a.focus()}}),sb=(t,e)=>gt(null,null,function*(){setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)}),tp=(t,e)=>{nb(t),fm(t.target),ob(t)&&(Br(t),e())},ip=(t,e)=>gt(null,null,function*(){ac(t,["ArrowRight"])&&(Br(t),e())}),ab=(t,e,i)=>gt(null,null,function*(){if(nb(t),Fy(t)){Br(t),e();return}ob(t)&&(Br(t),i())}),jl=(t,e)=>{ac(t)&&(Br(t),e())},lb=(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))}},db=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,r=e.top+i;return{right:o,bottom:r}},cb=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 Wa=require("@vkontakte/videoplayer-shared/es2015");var ts={"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 mm=require("@vkontakte/videoplayer-shared/es2015");var Uy=(t,e)=>{jl(t,()=>e())},zy=L('<li class="item s-1s" role="menuitem" tabindex="0"> </li>'),Wy={hash:"s-1s",code:".item.s-1s{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-1s:hover{background:rgba(66,66,66,.5);color:var(--white)}"};function vm(t,e){F(e,!0),q(t,Wy);let i=g(e,"onClick",3,mm.noop),o=g(e,"closeContextMenu",3,mm.noop),r=d=>{d==null||d.stopPropagation(),i()(),o()()};var a=zy();a.__click=r,a.__keydown=[Uy,r];var l=T(a,!0);w(a),B(()=>{var d;Ue(a,"aria-label",(d=e.ariaLabel)!=null?d:e.label),Ue(a,"data-testid",e.id),pe(l,e.label)}),_(t,a),H()}st(["click","keydown"]);var za=(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 Ky=(t,e)=>{tp(t,e)},qy=t=>{t.preventDefault()},Qy=L('<ul role="menu" class="s-12"></ul>'),Gy={hash:"s-12",code:"ul.s-12{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 gm(t,e){F(e,!0),q(t,Gy);let[i,o]=Re(),r=()=>x(ve,"$playerPhase",i),a=()=>x(le,"$isLive$",i),l=()=>x(ce,"$isPiPEnabled$",i),d=()=>x(G,"$chromecastState$",i),s=()=>x(re,"$pictureInPictureApiIsActive$",i),u=()=>x(j,"$isLooped$",i),p=()=>x(X,"$positionExact$",i),m=()=>x(D,"$additionalContextMenuItems$",i),f=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),S=K(0),C=K(0),I=me(),{pictureInPicture$:R}=Io(),E=Rt(),A=I.ui.contextMenu.visible$,O=I.ui.debugPanelVisible,D=I.ui.additionalContextMenuItems$,U=I.ui.t,z=I.actions.internal.togglePictureInPicture,G=I.state.chromecastState$,le=I.state.isLive$,X=I.state.positionExact$,oe=I.state.isInteractive,j=I.state.looped$,ve=I.playerPhase,{isEnabled$:ce,isActive$:re}=R,_e=v(()=>r()==="video"),we=v(()=>!!a()&&n(_e)),Z=v(()=>["thumb","LiveWaitingStart","LiveWaitingRecover","LiveWaitingRecord"].includes(r())),Ne=v(()=>{var $e;return E.features.copyVideoLink&&(($e=I.callbacks)==null?void 0:$e.onCopyVideoLink)}),ue=v(()=>n(Ne)&&!n(Z)&&!oe&&!n(we)),P=v(()=>{var $e;return!!(($e=I.callbacks)!=null&&$e.onCopyEmbedCodeClicked)}),Ke=v(()=>l()&&d()!==ub.ChromecastState.CONNECTED&&!oe&&n(_e)),Ce=v(()=>!oe&&!n(Z)&&!n(we)),Y=v(()=>E.features.videoRotate&&!oe&&!n(Z)),ie=v(()=>E.showSupport&&!s()),Oe=v(()=>E.features.saveTraceInfoToFile),Be=()=>{var $e;A.set(!1),($e=e.returnFocus)==null||$e.call(e)},fe=($e,et)=>{if(!$()||!y())return;let We=$().getBoundingClientRect(),rt=y().getBoundingClientRect();N(S,$e-rt.left),N(C,et-rt.top),n(S)+We.width>rt.width&&N(S,rt.width-We.width),n(C)+We.height>rt.height&&N(C,rt.height-We.height),N(S,Math.max(n(S),0),!0),N(C,Math.max(n(C),0),!0)};De(()=>{gt(null,null,function*(){if($()&&y()){yield bo();let{top:et,left:We,bottom:rt,right:ii}=b(),li=We!=null?We:0,gi=et!=null?et:0,yi=$().getBoundingClientRect();(0,Wa.isNullable)(We)&&!(0,Wa.isNullable)(ii)&&(li=ii-yi.width),(0,Wa.isNullable)(et)&&!(0,Wa.isNullable)(rt)&&(gi=rt-yi.height),li=Math.max(li,0),gi=Math.max(gi,0),fe(li,gi)}})});let ee=()=>{I.actions.internal.videoRotate()},Se=()=>{(0,Wa.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),I.actions.internal.reportProblem(),I.actions.internal.pause()},Fe=()=>{let $e=I.actions.internal.getDebugTextData();if(E.features.saveDebugInfoToFile){let et=new Blob([...$e],{type:"plain/text"}),We=window.URL.createObjectURL(et);Oa(We,"vk_player_debug_info","txt")}else Gl(I.actions.internal.getDebugTextData())},qe=()=>{let $e=I.actions.internal.getTraceTextData(),et=new Blob([...$e],{type:"application/json"}),We=window.URL.createObjectURL(et);Oa(We,"vk_player_trace_info","json")},je=()=>{O.set(!0)},Te=()=>gt(null,null,function*(){var $e;try{z()}finally{($e=e.returnFocus)==null||$e.call(e)}}),Me=()=>{I.actions.internal.setLooped(!u())},ze=()=>{var $e,et;if(n(P)){let We=(et=($e=I.callbacks)==null?void 0:$e.onCopyEmbedCodeClicked)==null?void 0:et.call($e);We&&Gl(We)}},Nt=($e=!1)=>{var et,We;if((et=I.callbacks)!=null&&et.onCopyVideoLink){let rt=(We=I.callbacks)==null?void 0:We.onCopyVideoLink($e,p());rt&&Gl(rt)}},tt=v(()=>E.features.saveDebugInfoToFile?U("menu_save_debug"):U("menu_copy_debug")),Bt=v(()=>n(Ne)?{id:"copy-link",weight:ts["copy-link"],label:U("menu_copy_video_link"),onClick:()=>Nt()}:void 0),Qt=v(()=>n(ue)?{id:"copy-link-timestamp",weight:ts["copy-link-timestamp"],label:U("menu_copy_video_link_with_timestamp"),onClick:()=>Nt(!0)}:void 0),It=v(()=>n(P)?{id:"copy-embed-code",weight:ts["copy-embed-code"],label:U("menu_copy_embed_code"),onClick:ze}:void 0),ti=v(()=>n(Ke)?{id:"pip",weight:ts.pip,label:s()?U("menu_pip_close"):U("menu_pip"),onClick:Te}:void 0),Ft=v(()=>n(Ce)?{id:"video-loop",weight:ts["video-loop"],label:u()?U("menu_video_loop_off"):U("menu_video_loop_on"),ariaLabel:U("aria_label_menu_loop"),onClick:Me}:void 0),ye=v(()=>n(Y)?{id:"rotate",weight:ts.rotate,label:U("menu_video_rotate"),ariaLabel:U("aria_label_menu_rotate"),onClick:ee}:void 0),be=v(()=>n(ie)?{id:"report",weight:ts.report,label:U("menu_report"),ariaLabel:`${U("menu_report")}. ${U("aria_label_new_tab_alert")}`,onClick:Se}:void 0),J=v(()=>({id:"save-debug",weight:ts["save-debug"],label:n(tt),onClick:Fe})),xe=v(()=>n(Oe)?{id:"save-trace",weight:ts["save-trace"],label:U("menu_save_debug"),onClick:qe}:void 0),Pe=v(()=>({id:"debug-info",weight:ts["debug-info"],label:U("menu_debug_overlay"),ariaLabel:U("aria_label_menu_debug_overlay"),onClick:je})),Et=v(()=>[n(Bt),n(Qt),n(It),n(ti),n(Ft),n(ye),n(be),n(J),n(xe),n(Pe),...m()].filter($e=>!!$e).sort(za));var Ve=Le(),at=de(Ve);{var vt=$e=>{var et=Qy();et.__contextmenu=[qy],et.__keydown=[Ky,Be],Ci(et,21,()=>n(Et),We=>We.id,(We,rt)=>{vm(We,{get id(){return n(rt).id},get label(){return n(rt).label},get ariaLabel(){return n(rt).ariaLabel},get onClick(){return n(rt).onClick},closeContextMenu:Be})}),w(et),nt(et,We=>$(We),()=>$()),B(()=>{var We,rt;return Ge(et,`top: ${(We=n(C))!=null?We:""}px; left: ${(rt=n(S))!=null?rt:""}px;`)}),_($e,et)};V(at,$e=>{f()&&$e(vt)})}_(t,Ve),H(),o()}st(["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 i=new op(e);this.top?(this.top.next=i,this.top=i):(this.top=i,this.bottom=i),this.size++,this.size>this.maxSize&&this.bottom&&(this.bottom=this.bottom.next)}getValuesFromBottom(){let e=[],i=this.bottom;for(;i;)e.push(i.value),i=i.next;return e}};var Yy=L('<div class="container s-1e"><canvas class="s-1e"></canvas></div>'),jy={hash:"s-1e",code:".container.s-1e{display:inline-block;height:16px;width:120px}canvas.s-1e{margin-top:2px;transform:scaleY(-1)}"};function dc(t,e){F(e,!0),q(t,jy);let i=g(e,"values",19,()=>[]),o=K(void 0),r=K(null),a=16,l=120,d=60,s=l/d;Dt(()=>{n(o).width=l,n(o).height=a,N(r,n(o).getContext("2d"),!0)});function u(f,b,y,$,S){S===0&&(S=1),f.fillStyle="#fff",f.fillRect(b,y,$,S)}De(()=>{let f="";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 S=y*s,C=b>0?a*(i()[$]/b):0;u(n(r),S,0,s,C),f=C+" "+f,y--}}});var p=Yy(),m=T(p);nt(m,f=>N(o,f),()=>n(o)),w(p),_(t,p),H()}var hm=require("@vkontakte/videoplayer-shared/es2015");var Xy=(t,e)=>{t.stopPropagation(),hm.safeStorage.remove(Yd),e.set(!1)},Zy=L('<div class="s-t"><div class="s-t">Video id</div> <span> </span></div>'),Jy=L('<div class="s-t"><div class="s-t">VSID</div> <span> </span></div>'),e0=L('<div class="s-t"><div class="s-t">Provider</div> <span> </span></div>'),t0=L('<div class="s-t"><div class="s-t">Streams</div> <span> </span></div>'),i0=L('<div class="s-t"><div class="s-t">Viewport</div> <span> </span></div>'),o0=L('<div class="s-t"><div class="s-t">Video size</div> <span> </span></div>'),n0=L('<div class="s-t"><div class="s-t">CDN host</div> <span> </span></div>'),r0=L('<div class="s-t"><div class="s-t">Volume</div> <span> </span></div>'),s0=L('<div class="s-t"><div class="s-t">Position</div> <span> </span></div>'),a0=L('<div class="s-t"><div class="s-t">Buffer</div> <span> </span></div>'),l0=L('<div class="s-t"><div class="s-t">Live latency</div> <span> </span></div>'),d0=L('<div class="s-t"><div class="s-t">Segment</div> <span> </span></div>'),c0=L('<div class="s-t"><div class="s-t">Network</div> <!> <span> </span></div>'),u0=L('<div class="s-t"><div class="s-t">V bitrate</div> <!> <span> </span></div>'),p0=L('<div role="region"><button class="close s-t" title="закрыть">[x]</button> <div class="content s-t"><div class="s-t"><div class="s-t">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="s-t"><div class="s-t">Dropped</div> <span> </span></div> <!> <!> <div class="s-t"><div class="s-t">FPS</div> <!> <span> </span></div></div></div>'),f0={hash:"s-t",code:".container.s-t{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-t{left:16px;top:16px}button.close.s-t{background-color:transparent;border:none;color:#fff;cursor:pointer;outline:0;padding:0;position:absolute;right:5px;top:3px}.content.s-t{padding:5px}.content.s-t>div:where(.s-t)>div:where(.s-t){display:inline-block;padding:0 5px;text-align:right;width:60px}"};function cc(t,e){F(e,!0),q(t,f0);let[i,o]=Re(),r=()=>x(d,"$isMobile",i),a=me(),l=a.ui.debugPanelVisible,d=a.ui.isMobile,s=K(pi(a.actions.internal.getDebugPanelData())),u=a.actions.internal.getVideoElement(),p=K(0),m=K(0),f=K(0),b=new Zl(60),y=new Zl(60),$=new Zl(60),S=K(pi([])),C=K(pi([])),I=K(pi([])),R=Q("aria_label_debug_panel");Dt(()=>{hm.safeStorage.set(Yd,"true"),a.actions.internal.startLogging(),u&&(N(m,u.getVideoPlaybackQuality().droppedVideoFrames,!0),N(p,u.getVideoPlaybackQuality().totalVideoFrames,!0));let ye=window.setInterval(()=>{N(s,a.actions.internal.getDebugPanelData(),!0)},500),be;return u&&(be=window.setInterval(()=>{if(u){N(m,u.getVideoPlaybackQuality().droppedVideoFrames,!0);let J=u.getVideoPlaybackQuality().totalVideoFrames;N(f,J-n(p)),N(p,J,!0),b.push(n(f)),n(s).speed&&y.push(n(s).speed),n(s).bitrate&&$.push(n(s).bitrate),N(S,b.getValuesFromBottom(),!0),N(C,y.getValuesFromBottom(),!0),N(I,$.getValuesFromBottom(),!0)}},1e3)),()=>{a.actions.internal.stopLogging(),clearInterval(ye),be&&clearInterval(be)}});var E=p0();let A;var O=T(E);O.__click=[Xy,l];var D=k(O,2),U=T(D),z=k(T(U),2),G=T(z,!0);w(z),w(U);var le=k(U,2);{var X=ye=>{var be=Zy(),J=k(T(be),2),xe=T(J,!0);w(J),w(be),B(()=>pe(xe,n(s).id)),_(ye,be)};V(le,ye=>{n(s).id&&ye(X)})}var oe=k(le,2);{var j=ye=>{var be=Jy(),J=k(T(be),2),xe=T(J,!0);w(J),w(be),B(()=>pe(xe,n(s).vsid)),_(ye,be)};V(oe,ye=>{n(s).vsid&&ye(j)})}var ve=k(oe,2);{var ce=ye=>{var be=e0(),J=k(T(be),2),xe=T(J,!0);w(J),w(be),B(()=>pe(xe,n(s).provider)),_(ye,be)};V(ve,ye=>{n(s).provider&&ye(ce)})}var re=k(ve,2);{var _e=ye=>{var be=t0(),J=k(T(be),2),xe=T(J);w(J),w(be),B(()=>{var Pe,Et;return pe(xe,`Video: ${(Pe=n(s).videoCodec||"")!=null?Pe:""} ${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"},q_=iy;var Ls=new Map;Ls.set(Kl.InterfaceLanguage.EN,q_);Ls.set(Kl.InterfaceLanguage.RU,K_);var Q_=new Map,tm=({language:t,pack:e,fallback:i})=>{if(Ls.has(t)){let o=Ls.get(t);Ls.set(t,Ae(Ae({},o),e))}else Ls.set(t,e);Q_.set(t,i)},im=t=>Ls.has(t),om=(t,e,i,o)=>{var l;let r=Ls.get(t),a=r==null?void 0:r[e];if((0,Kl.isNullable)(a)){let d=(l=Q_.get(t))!=null?l:o,s=d?Ls.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}=ve(),o=ge(i),r=Rt();return om(o,t,e,r.defaultLanguage)};var oy=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 ec(t,e){F(e,!1);let i=Q("video360");To(),Je(t,{width:"76",height:"45",get ariaLabel(){return i},testId:"video-360-icon",shadow:!0,children:(o,r)=>{var a=oy();_(o,a)},$$slots:{default:!0}}),H()}var g8=require("@vkontakte/videoplayer-core/es2015");var ql;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(ql||(ql={}));var ny=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,ry=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,sy=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,qu="?",ay="X-Sentry-Auth",ly=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function dy(t){if(!t.stack)return null;let e=[],i=t.stack.split(`
|
|
55
|
+
`),o,r;for(let a=0;a<i.length;++a){if(o=ny.exec(i[a]))r={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||qu,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=sy.exec(i[a]))r={filename:o[2],function:o[1]||qu,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=ry.exec(i[a]))a===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),r={filename:o[3],function:o[1]||qu,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!r.function&&r.lineno&&(r.function=qu),e.push(r)}return e.length?{value:G_(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function G_(t){return(t&&t.message||"No error message").split(`
|
|
56
|
+
`).filter(i=>!!i)[0]}function cy(t){try{let e=dy(t);if(e)return e}catch(e){}return{value:G_(t),type:t&&t.name,stacktrace:{frames:[]}}}function uy(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var Qu=class{constructor(e){if(e&&e.dsn){let i=ly.exec(e.dsn),o=i?i.slice(1):[],r=o[5].split("/"),a=r.slice(0,-1).join("/");this.apiUrl=o[0]+"://"+o[3]+(o[4]?":"+o[4]:"")+(a?"/"+a:"")+"/api/"+r.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+o[1]+(o[2]?",sentry_secret="+o[2]:"")}this.environment=e&&e.environment}prepare(e){return Qt(Ae({},this.getRequestBlank()),{exception:{values:[cy(e)]}})}report(e){this.send(this.prepare(e))}send(e){!this.apiUrl||!e||this.createRequest(e)}createRequest(e){let i=new XMLHttpRequest;i.open("POST",this.apiUrl,!0),i.setRequestHeader("Content-type","application/json"),i.setRequestHeader(ay,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:uy(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function Y_(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function py(){return window}var Gu=class t extends Qu{constructor(e,i=py()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:r=u=>u,beforeBreadcrumb:a=u=>u,blacklistUrls:l=[],ignoreErrors:d=[],release:s=void 0}=this.options||{};this.plugins=o.map(u=>new u(this)),this.beforeSend=r,this.beforeBreadcrumb=a,this.blacklistUrls=l,this.ignoreErrors=d,this.release=s}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",Ae({},e)),this}setTag(e,i){return this.extendState({tags:{[e]:i}}),this}setExtra(e,i){return this.extendState({extra:{[e]:i}}),this}setExtras(e){return this.setKeyState("extra",Ae({},e)),this}setUser(e){return this.setKeyState("user",Ae({},e)),this}clone(){let e=new t(Qt(Ae({},this.options),{plugins:[]}));return e.extendState(this.state),e}withScope(e){let i=this.clone();e(i),i.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[Ae({timestamp:Date.now()/1e3},this.beforeBreadcrumb(e))]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send(Qt(Ae({},this.getRequestBlank()),{message:e,level:i}))}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(i=>this.ignoreErrors.some(o=>Y_(i,o))):!1}getRequestBlank(){return Ae(Qt(Ae({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(Ae({release:this.release},e))),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:i="",value:o=""}=e.exception.values&&e.exception.values[0]||{};return[`${o}`,`${i}: ${o}`]}catch(i){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let i=this.getEventFilterUrl(e);return i?this.blacklistUrls.some(o=>Y_(i,o)):!1}getEventFilterUrl(e){try{if(e.exception){let i=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return i&&i[i.length-1].filename||null}return null}catch(i){return null}}extendState(e){this._state=Object.keys(e).reduce((i,o)=>{let r=this._state[o],a=Array.isArray(r)?r:null,l=e[o],d=Array.isArray(l)?l:null;return Qt(Ae({},i),{[o]:a||d?[...a||[],...d||[]]:Ae(Ae({},typeof r!="string"?r:{}),typeof l!="string"?l:{})})},this._state)}setKeyState(e,i){this._state[e]=i}};var Fa=require("@vkontakte/videoplayer-shared/es2015");var Yu=null,Ha=class{constructor(e,i,o={}){!Yu&&e.dsn&&(this.sentryClient=new Gu({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new Fa.Subscription,this.options=e,this.context=o,Yu=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),Yu=null}logIError(e,i=!1){e.thrown&&this.report(e.thrown,{fatal:i,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,i={},o={}){let{sentryClient:r,context:a,options:l}=this,{sampleRate:d=0,whiteErrorIdList:s,whiteErrorCategoryList:u=[],blackErrorIdList:p,blackErrorCategoryList:m}=l,{errorType:f,category:b}=i;if((0,Fa.isNonNullable)(b)&&m.includes(b)||(0,Fa.isNonNullable)(f)&&p.includes(f))return;if(Math.random()<=d||(0,Fa.isNonNullable)(b)&&u.includes(b)||(0,Fa.isNonNullable)(f)&&s.includes(f)){Object.keys(i).length&&r.setTags(Ae({version:this.version},i)),(Object.keys(a).length||Object.keys(o).length)&&r.setExtras(Ae(Ae({},a),o));try{f&&r.captureMessage(f,i.fatal?ql.fatal:ql.error),r.report(e)}catch($){console.error($)}}}static getInstance(){return Yu}};var ts=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(ts||{});var ju=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()},Xu=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),j_=(t,e)=>e?!0:t.fullscreenEnabled||!!t.webkitFullscreenEnabled||!!t.mozFullscreenEnabled||!!t.msFullscreenEnabled,X_=t=>{let e=t;e!=null&&e.webkitExitFullscreen&&(e==null||e.webkitExitFullscreen())},tc=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},oa=()=>!!tc(),Zu=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)},Z_=t=>{let e=window.screen;return(r=>_t(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 nm=require("@vkontakte/videoplayer-core/es2015"),J_=()=>({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:nm.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:nm.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");var Ua=class{constructor({enabled:e=!0}={enabled:!0}){this.isRequested=!1;this.videoElement=void 0;this.playerContainer=void 0;this.externalEventHandlers={};this.eventHandlers={enterpictureinpicture:this.onEnterPictureInPicture.bind(this),leavepictureinpicture:this.onLeavePictureInPicture.bind(this),resize:(0,Ql.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new Ql.ValueSubject(!1),isEnabled$:new Ql.ValueSubject(!1),type:0};this.info.isEnabled$=new Ql.ValueSubject(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.info.isActive$.getValue()}setContext(e){this.svelteContext=e}revealPictureInPicture(){return _t(this,null,function*(){this.isRequested&&(this.removeEventHandlers(),yield this.request(),this.addEventHandlers())})}request(){return _t(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 _t(this,null,function*(){!this.isSupported()||!this.isActive()||(yield document.exitPictureInPicture())})}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){this.isSupported()&&this.exit().finally(()=>{var e;this.removeEventHandlers(),this.videoElement=(e=this.playerContainer)==null?void 0:e.querySelector("video"),this.addEventHandlers()})}addEventHandlers(){var e,i;(e=this.videoElement)==null||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}setExternalEventHandlers(e){this.externalEventHandlers=Ae({},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 _t(this,null,function*(){this.removeEventHandlers(),yield this.exit(),this.info.isActive$.next(!1),this.isRequested=!1})}onEnterPictureInPicture(e){var r,a;let o=e.pictureInPictureWindow;o&&(this.info.isActive$.next(!0),this.isRequested=!0,o.addEventListener("resize",this.eventHandlers.resize),(a=(r=this.externalEventHandlers).enterpictureinpicture)==null||a.call(r,e))}onLeavePictureInPicture(e){var r,a;let o=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,this.eventHandlers.resize.cancel(),o==null||o.removeEventListener("resize",this.eventHandlers.resize),(a=(r=this.externalEventHandlers).leavepictureinpicture)==null||a.call(r,e)}onResize(e){var i,o;(o=(i=this.externalEventHandlers).resize)==null||o.call(i,e)}setEnabled(e){this.info.isEnabled$.next(e)}};function za(t){return t instanceof Ua}var Gl=require("@vkontakte/videoplayer-shared/es2015");function sm(t,e){F(e,!1);let i=ve();Dt(()=>{i.getAdmanWrapper().startPostroll()}),To(),H()}var eb=require("@vkontakte/videoplayer-shared/es2015");var fy=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>'),my=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 Vr(t,e){F(e,!0);let i=g(e,"direction",3,"left"),o=g(e,"useBtnColor",3,!1),r=v(()=>["up","down"].includes(i())),a=v(()=>["right","down"].includes(i())),l=v(()=>`chevron-icon--${i()}`),d=v(()=>(()=>{let p="";return n(a)&&(p+="transform: rotate(180deg);"),p.length?p:void 0})()),s=v(()=>o()?ia:"currentColor"),u=v(()=>n(r)?"7":"16");Je(t,{width:"12",get height(){return n(u)},get fill(){return n(s)},get testId(){return n(l)},get style(){return n(d)},children:(p,m)=>{var f=Le(),b=de(f);{var y=S=>{var C=fy();_(S,C)},$=S=>{var C=my();_(S,C)};V(b,S=>{n(r)?S(y):S($,!1)})}_(p,f)},$$slots:{default:!0}}),H()}var vy=(t,e,i)=>{t.stopPropagation(),n(e)&&i()()},gy=L('<div class="skip s-1h"> <!></div>'),hy=L("<div><!></div>"),_y={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 am(t,e){F(e,!0),q(t,_y);let[i,o]=Re(),r=()=>x(u,"$isMobile",i),a=g(e,"position",3,0),l=g(e,"secondsToWatchBeforeSkip",3,0),d=g(e,"skipAd",3,eb.noop),u=ve().ui.isMobile,p=v(()=>a()>0&&a()>=l());var m=hy();let f;m.__click=[vy,p,d];var b=T(m);{var y=S=>{var C=gy(),I=T(C),R=k(I);Vr(R,{direction:"right"}),w(C),B(E=>pe(I,`${E!=null?E:""} `),[()=>Q("skip_ads_now")]),_(S,C)},$=S=>{var C=hs();B(I=>pe(C,I),[()=>Q("skip_ads_after",{time:Math.ceil(l()-a()).toFixed(0)})]),_(S,C)};V(b,S=>{n(p)?S(y):S($,!1)})}w(m),B(S=>f=se(m,1,"container s-1h",null,f,S),[()=>({"container-mobile":r(),skippable:n(p)})]),_(t,m),H(),o()}st(["click"]);var by=L('<button class="go-to-site s-1i"> </button>'),$y={hash:"s-1i",code:"button.go-to-site.s-1i{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 lm(t,e){F(e,!1),q(t,$y),To();var i=by(),o=T(i,!0);w(i),B(r=>pe(o,r),[()=>Q("visit_advertiser")],En),_(t,i),H()}var yy=L('<div class="top-gradient-mobile s-k"></div>'),xy=L('<div class="container s-k"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),wy={hash:"s-k",code:".container.s-k{height:100%;width:100%}.top-gradient-mobile.s-k{background:linear-gradient(1turn,transparent,rgba(0,0,0,.05) 12%,rgba(0,0,0,.15) 25%,rgba(0,0,0,.3) 45%,rgba(0,0,0,.4) 57%,rgba(0,0,0,.5) 77%,rgba(0,0,0,.55) 88%,rgba(0,0,0,.65));height:80px;left:0;pointer-events:none;position:absolute;top:0;width:100%}"};function oc(t,e){F(e,!0),q(t,wy);let[i,o]=Re(),r=()=>x(U,"$canSkipAd",i),a=()=>x(D,"$adPlaybackState",i),l=()=>x(I,"$isMobile",i),d=()=>x(z,"$adPosition",i),s=()=>x(G,"$secondsToWatchBeforeSkipAd",i),u=()=>x(C,"$isVideoEnded",i),p=g(e,"adsSlotId",3,void 0),m=g(e,"adsParams",3,void 0),f=g(e,"adsAutoplayParam",3,void 0),b=g(e,"duration",3,0),y=g(e,"adsExternalApi",3,void 0),$=ve(),S=Rt(),C=$.state.isEnded$,I=$.ui.isMobile,R=S.ads.isMobileGoToSiteButton,E=K(void 0),P=K(void 0),O=!1,D=$.ads.playbackState,U=$.ads.canSkip,z=$.ads.position,G=$.ads.secondsToWatchBeforeSkip,le=v(()=>r()&&a()!=="inactive"),Y=v(()=>l()&&a()!=="inactive"&&R);Dt(()=>{let A=$.getAdmanWrapper();if(Gl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[(0,Gl.now)(),p()]}),!p()){A.onAdmanLoadingError();return}let Ke=()=>{var Fe;let{width:Oe,height:Be}=ge($.ui.playerSize),fe=ge($.ui.isFullscreen),ee=(Fe=f())!=null?Fe:ge($.ui.isAutoplay),Se=S.ads.paramsOverride;return{width:Oe,height:Be,isFullscreen:fe,isAutoplay:ee,adsContainer:n(E),adsVideoElement:n(P),slotId:p(),params:m(),paramsOverride:Se,duration:b(),externalApi:y()}},Ce=Oe=>_t(null,null,function*(){Oe&&(yield bo());let Be=Ke();yield A.initAdman(Be),O=!0}),j=new AbortController,ie=()=>{j.abort()};return window.AdmanHTML?Ce(!0).catch(()=>{A.onAdmanLoadingError()}):A.loadAdman(j.signal).then(()=>Ce(!1)).catch(()=>{A.onAdmanLoadingError()}),()=>{Gl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[(0,Gl.now)(),p()]}),!O&&ie()}});var re=xy(),X=T(re);{var we=A=>{var Ke=yy();_(A,Ke)};V(X,A=>{l()&&A(we)})}var ce=k(X,2);nt(ce,A=>N(P,A),()=>n(P));var ne=k(ce,2);{var he=A=>{am(A,{get position(){return d()},get secondsToWatchBeforeSkip(){return s()},get skipAd(){return $.actions.internal.skipAd}})};V(ne,A=>{n(le)&&A(he)})}var xe=k(ne,2);{var Z=A=>{sm(A,{})};V(xe,A=>{u()&&A(Z)})}var Ne=k(xe,2);{var ue=A=>{lm(A,{})};V(Ne,A=>{n(Y)&&A(ue)})}w(re),nt(re,A=>N(E,A),()=>n(E)),_(t,re),H(),o()}var on=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 Sy=Ee('<path fill="#fff"></path>'),Ty=Ee("<path></path><!>",1);function nc(t,e){let i=g(e,"isActive",3,!1),o=v(()=>i()?"live-active-icon":"live-icon"),r=v(()=>i()?"var(--timeline-slider-filled-active-live-bg, #FF3347)":void 0),a="M8 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2H9V6a1 1 0 0 0-1-1m7 1a1 1 0 1 1 2 0v8a1 1 0 1 1-2 0zm15-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2h-3v-2h3a1 1 0 1 0 0-2h-3V7h3a1 1 0 1 0 0-2zm-8.32 9.31-2.55-7.82a1 1 0 0 1-.12-.37L19 6.1a1 1 0 1 1 2-.2l2 6.4 2-6.4a1 1 0 0 1 2 .2v.02a1 1 0 0 1-.13.37l-2.55 7.82a1 1 0 0 1-.95.69h-.74a1 1 0 0 1-.95-.69";Je(t,{width:"42",height:"20",get testId(){return n(o)},get fill(){return n(r)},children:(l,d)=>{var s=Ty(),u=de(s),p=k(u);{var m=f=>{var b=Sy();Ue(b,"d",a),_(f,b)};V(p,f=>{i()&&f(m)})}B(()=>Ue(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 Cy=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>'),Iy=L('<div class="live-icon s-a"><!></div>'),Ey=L('<span class="text s-a"> </span>'),Py=L("<div><!> <!></div>"),Ay={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,Ay);let i=g(e,"withEqualizer",3,!1),o=g(e,"isLive",3,!1),r=g(e,"isPlaying",3,!1);var a=Py();let l;var d=T(a);{var s=f=>{var b=Cy();_(f,b)};V(d,f=>{i()&&f(s)})}var u=k(d,2);{var p=f=>{var b=Iy(),y=T(b);nc(y,{isActive:!0}),w(b),_(f,b)},m=f=>{var b=Ey(),y=T(b,!0);w(b),B(()=>pe(y,e.time)),_(f,b)};V(u,f=>{o()?f(p):f(m,!1)})}w(a),B(f=>l=se(a,1,"wrapper s-a",null,l,f),[()=>({live:o(),playing:r()})]),_(t,a)}var Yl=(t,e,i)=>{let o;return()=>(window.clearTimeout(o),t?o=window.setTimeout(()=>e.set(!0),i):e.set(!1),()=>window.clearTimeout(o))};var ky=L('<div role="timer" data-testid="thumb-timer"><!></div>'),Ly={hash:"s-m",code:".thumb-timer.s-m{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){F(e,!0),q(t,Ly);let[i,o]=Re(),r=()=>x(p,"$disabled",i),a=g(e,"isHidden",3,!1),l=g(e,"isLive",3,!1),d=g(e,"isPlaying",3,!1),s=Rt(),u=v(()=>on(e.duration-e.position)),p=ae(!1);var m=ky();let f;var b=T(m);rc(b,{get time(){return n(u)},get isLive(){return l()},get isPlaying(){return d()},withEqualizer:!0}),w(m),As(m,()=>Yl(a()&&s.features.usePerformanceFix,p,s.disableInvisibleComponentsTimeout)),B(y=>f=se(m,1,"thumb-timer s-m",null,f,y),[()=>({"out-of-flow":r(),hidden:a()})]),_(t,m),H(),o()}var jl=t=>{if(!navigator.clipboard){tb(t);return}navigator.clipboard.writeText(t).catch(()=>tb(t))};function tb(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 cb=require("@vkontakte/videoplayer-core/es2015");var cm=require("@vkontakte/videoplayer-core/es2015");var dm="focus-hidden";var Rr=t=>{t.stopPropagation(),t.preventDefault()},um=t=>{var e,i;(i=(e=t.parentNode)==null?void 0:e.firstElementChild)==null||i.classList.remove(dm)},Vy=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},Ry=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},Ny=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},Oy=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},ib=t=>t.code==="Escape",Dy=t=>t.code==="ArrowLeft",ac=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},ob=t=>{Ny(t)?(Rr(t),Ry(t.target)):Oy(t)&&(Rr(t),Vy(t.target))},sa=t=>!cm.clientChecker.device.isAndroid&&(t==null?void 0:t.detail)===0||cm.clientChecker.device.isAndroid&&(t==null?void 0:t.pointerType)==="",Xl=(t,e,i)=>_t(null,null,function*(){yield bo(),t&&!t.classList.contains("opened")&&!e&&ge(i)&&(yield bo(),i.set(!1),t.focus())}),nb=(t,e,i)=>_t(null,null,function*(){yield bo(),t&&!e&&ge(i)&&(i.set(!1),t.focus())}),lc=(t,e,i,o=!1)=>_t(null,null,function*(){if(yield bo(),!!t&&e&&!o){let a=t.children[0];a==null||a.classList.toggle(dm,!i),a==null||a.focus()}}),rb=(t,e)=>_t(null,null,function*(){setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)}),ep=(t,e)=>{ob(t),um(t.target),ib(t)&&(Rr(t),e())},tp=(t,e)=>_t(null,null,function*(){ac(t,["ArrowRight"])&&(Rr(t),e())}),sb=(t,e,i)=>_t(null,null,function*(){if(ob(t),Dy(t)){Rr(t),e();return}ib(t)&&(Rr(t),i())}),Zl=(t,e)=>{ac(t)&&(Rr(t),e())},ab=(t,e,i)=>{if(ac(t))Rr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),Rr(t);return}o==="ArrowRight"&&!e&&(i(!0),Rr(t))}},lb=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,r=e.top+i;return{right:o,bottom:r}},db=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 qa=require("@vkontakte/videoplayer-shared/es2015");var is={"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 pm=require("@vkontakte/videoplayer-shared/es2015");var Fy=(t,e)=>{Zl(t,()=>e())},Hy=L('<li class="item s-1p" role="menuitem" tabindex="0"> </li>'),Uy={hash:"s-1p",code:".item.s-1p{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-1p:hover{background:rgba(66,66,66,.5);color:var(--white)}"};function fm(t,e){F(e,!0),q(t,Uy);let i=g(e,"onClick",3,pm.noop),o=g(e,"closeContextMenu",3,pm.noop),r=d=>{d==null||d.stopPropagation(),i()(),o()()};var a=Hy();a.__click=r,a.__keydown=[Fy,r];var l=T(a,!0);w(a),B(()=>{var d;Ue(a,"aria-label",(d=e.ariaLabel)!=null?d:e.label),Ue(a,"data-testid",e.id),pe(l,e.label)}),_(t,a),H()}st(["click","keydown"]);var Ka=(t,e)=>t.weight-e.weight;var Jl=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(Jl||{});var zy=(t,e)=>{ep(t,e)},Wy=t=>{t.preventDefault()},Ky=L('<ul role="menu" class="s-19"></ul>'),qy={hash:"s-19",code:"ul.s-19{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 mm(t,e){F(e,!0),q(t,qy);let[i,o]=Re(),r=()=>x(we,"$playerPhase",i),a=()=>x(le,"$isLive$",i),l=()=>x(ce,"$isPiPEnabled$",i),d=()=>x(G,"$chromecastState$",i),s=()=>x(ne,"$pictureInPictureApiIsActive$",i),u=()=>x(X,"$isLooped$",i),p=()=>x(Y,"$positionExact$",i),m=()=>x(D,"$additionalContextMenuItems$",i),f=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),S=K(0),C=K(0),I=ve(),{pictureInPicture$:R}=Co(),E=Rt(),P=I.ui.contextMenu.visible$,O=I.ui.debugPanelVisible,D=I.ui.additionalContextMenuItems$,U=I.ui.t,z=I.actions.internal.togglePictureInPicture,G=I.state.chromecastState$,le=I.state.isLive$,Y=I.state.positionExact$,re=I.state.isInteractive,X=I.state.looped$,we=I.playerPhase,{isEnabled$:ce,isActive$:ne}=R,he=v(()=>r()==="video"),xe=v(()=>!!a()&&n(he)),Z=v(()=>["thumb","LiveWaitingStart","LiveWaitingRecover","LiveWaitingRecord"].includes(r())),Ne=v(()=>{var be;return E.features.copyVideoLink&&((be=I.callbacks)==null?void 0:be.onCopyVideoLink)}),ue=v(()=>n(Ne)&&!n(Z)&&!re&&!n(xe)),A=v(()=>{var be;return!!((be=I.callbacks)!=null&&be.onCopyEmbedCodeClicked)}),Ke=v(()=>l()&&d()!==cb.ChromecastState.CONNECTED&&!re&&n(he)),Ce=v(()=>!re&&!n(Z)&&!n(xe)),j=v(()=>E.features.videoRotate&&!re&&!n(Z)),ie=v(()=>E.showSupport&&!s()),Oe=v(()=>E.features.saveTraceInfoToFile),Be=()=>{var be;P.set(!1),(be=e.returnFocus)==null||be.call(e)},fe=(be,et)=>{if(!$()||!y())return;let We=$().getBoundingClientRect(),rt=y().getBoundingClientRect();N(S,be-rt.left),N(C,et-rt.top),n(S)+We.width>rt.width&&N(S,rt.width-We.width),n(C)+We.height>rt.height&&N(C,rt.height-We.height),N(S,Math.max(n(S),0),!0),N(C,Math.max(n(C),0),!0)};De(()=>{_t(null,null,function*(){if($()&&y()){yield bo();let{top:et,left:We,bottom:rt,right:ii}=b(),li=We!=null?We:0,gi=et!=null?et:0,yi=$().getBoundingClientRect();(0,qa.isNullable)(We)&&!(0,qa.isNullable)(ii)&&(li=ii-yi.width),(0,qa.isNullable)(et)&&!(0,qa.isNullable)(rt)&&(gi=rt-yi.height),li=Math.max(li,0),gi=Math.max(gi,0),fe(li,gi)}})});let ee=()=>{I.actions.internal.videoRotate()},Se=()=>{(0,qa.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),I.actions.internal.reportProblem(),I.actions.internal.pause()},Fe=()=>{let be=I.actions.internal.getDebugTextData();if(E.features.saveDebugInfoToFile){let et=new Blob([...be],{type:"plain/text"}),We=window.URL.createObjectURL(et);Ba(We,"vk_player_debug_info","txt")}else jl(I.actions.internal.getDebugTextData())},qe=()=>{let be=I.actions.internal.getTraceTextData(),et=new Blob([...be],{type:"application/json"}),We=window.URL.createObjectURL(et);Ba(We,"vk_player_trace_info","json")},je=()=>{O.set(!0)},Te=()=>_t(null,null,function*(){var be;try{z()}finally{(be=e.returnFocus)==null||be.call(e)}}),Me=()=>{I.actions.internal.setLooped(!u())},ze=()=>{var be,et;if(n(A)){let We=(et=(be=I.callbacks)==null?void 0:be.onCopyEmbedCodeClicked)==null?void 0:et.call(be);We&&jl(We)}},Nt=(be=!1)=>{var et,We;if((et=I.callbacks)!=null&&et.onCopyVideoLink){let rt=(We=I.callbacks)==null?void 0:We.onCopyVideoLink(be,p());rt&&jl(rt)}},tt=v(()=>E.features.saveDebugInfoToFile?U("menu_save_debug"):U("menu_copy_debug")),Bt=v(()=>n(Ne)?{id:"copy-link",weight:is["copy-link"],label:U("menu_copy_video_link"),onClick:()=>Nt()}:void 0),Gt=v(()=>n(ue)?{id:"copy-link-timestamp",weight:is["copy-link-timestamp"],label:U("menu_copy_video_link_with_timestamp"),onClick:()=>Nt(!0)}:void 0),Ct=v(()=>n(A)?{id:"copy-embed-code",weight:is["copy-embed-code"],label:U("menu_copy_embed_code"),onClick:ze}:void 0),ti=v(()=>n(Ke)?{id:"pip",weight:is.pip,label:s()?U("menu_pip_close"):U("menu_pip"),onClick:Te}:void 0),Ft=v(()=>n(Ce)?{id:"video-loop",weight:is["video-loop"],label:u()?U("menu_video_loop_off"):U("menu_video_loop_on"),ariaLabel:U("aria_label_menu_loop"),onClick:Me}:void 0),$e=v(()=>n(j)?{id:"rotate",weight:is.rotate,label:U("menu_video_rotate"),ariaLabel:U("aria_label_menu_rotate"),onClick:ee}:void 0),_e=v(()=>n(ie)?{id:"report",weight:is.report,label:U("menu_report"),ariaLabel:`${U("menu_report")}. ${U("aria_label_new_tab_alert")}`,onClick:Se}:void 0),J=v(()=>({id:"save-debug",weight:is["save-debug"],label:n(tt),onClick:Fe})),ye=v(()=>n(Oe)?{id:"save-trace",weight:is["save-trace"],label:U("menu_save_debug"),onClick:qe}:void 0),Pe=v(()=>({id:"debug-info",weight:is["debug-info"],label:U("menu_debug_overlay"),ariaLabel:U("aria_label_menu_debug_overlay"),onClick:je})),Pt=v(()=>[n(Bt),n(Gt),n(Ct),n(ti),n(Ft),n($e),n(_e),n(J),n(ye),n(Pe),...m()].filter(be=>!!be).sort(Ka));var Ve=Le(),at=de(Ve);{var gt=be=>{var et=Ky();et.__contextmenu=[Wy],et.__keydown=[zy,Be],Ti(et,21,()=>n(Pt),We=>We.id,(We,rt)=>{fm(We,{get id(){return n(rt).id},get label(){return n(rt).label},get ariaLabel(){return n(rt).ariaLabel},get onClick(){return n(rt).onClick},closeContextMenu:Be})}),w(et),nt(et,We=>$(We),()=>$()),B(()=>{var We,rt;return Ge(et,`top: ${(We=n(C))!=null?We:""}px; left: ${(rt=n(S))!=null?rt:""}px;`)}),_(be,et)};V(at,be=>{f()&&be(gt)})}_(t,Ve),H(),o()}st(["contextmenu","keydown"]);var ip=class{constructor(e){this.value=e,this.next=null}};var ed=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new ip(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 Qy=L('<div class="container s-1f"><canvas class="s-1f"></canvas></div>'),Gy={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){F(e,!0),q(t,Gy);let i=g(e,"values",19,()=>[]),o=K(void 0),r=K(null),a=16,l=120,d=60,s=l/d;Dt(()=>{n(o).width=l,n(o).height=a,N(r,n(o).getContext("2d"),!0)});function u(f,b,y,$,S){S===0&&(S=1),f.fillStyle="#fff",f.fillRect(b,y,$,S)}De(()=>{let f="";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 S=y*s,C=b>0?a*(i()[$]/b):0;u(n(r),S,0,s,C),f=C+" "+f,y--}}});var p=Qy(),m=T(p);nt(m,f=>N(o,f),()=>n(o)),w(p),_(t,p),H()}var vm=require("@vkontakte/videoplayer-shared/es2015");var Yy=(t,e)=>{t.stopPropagation(),vm.safeStorage.remove(Yd),e.set(!1)},jy=L('<div class="s-l"><div class="s-l">Video id</div> <span> </span></div>'),Xy=L('<div class="s-l"><div class="s-l">VSID</div> <span> </span></div>'),Zy=L('<div class="s-l"><div class="s-l">Provider</div> <span> </span></div>'),Jy=L('<div class="s-l"><div class="s-l">Streams</div> <span> </span></div>'),e0=L('<div class="s-l"><div class="s-l">Viewport</div> <span> </span></div>'),t0=L('<div class="s-l"><div class="s-l">Video size</div> <span> </span></div>'),i0=L('<div class="s-l"><div class="s-l">CDN host</div> <span> </span></div>'),o0=L('<div class="s-l"><div class="s-l">Volume</div> <span> </span></div>'),n0=L('<div class="s-l"><div class="s-l">Position</div> <span> </span></div>'),r0=L('<div class="s-l"><div class="s-l">Buffer</div> <span> </span></div>'),s0=L('<div class="s-l"><div class="s-l">Live latency</div> <span> </span></div>'),a0=L('<div class="s-l"><div class="s-l">Segment</div> <span> </span></div>'),l0=L('<div class="s-l"><div class="s-l">Network</div> <!> <span> </span></div>'),d0=L('<div class="s-l"><div class="s-l">V bitrate</div> <!> <span> </span></div>'),c0=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>'),u0={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(t,e){F(e,!0),q(t,u0);let[i,o]=Re(),r=()=>x(d,"$isMobile",i),a=ve(),l=a.ui.debugPanelVisible,d=a.ui.isMobile,s=K(ci(a.actions.internal.getDebugPanelData())),u=a.actions.internal.getVideoElement(),p=K(0),m=K(0),f=K(0),b=new ed(60),y=new ed(60),$=new ed(60),S=K(ci([])),C=K(ci([])),I=K(ci([])),R=Q("aria_label_debug_panel");Dt(()=>{vm.safeStorage.set(Yd,"true"),a.actions.internal.startLogging(),u&&(N(m,u.getVideoPlaybackQuality().droppedVideoFrames,!0),N(p,u.getVideoPlaybackQuality().totalVideoFrames,!0));let $e=window.setInterval(()=>{N(s,a.actions.internal.getDebugPanelData(),!0)},500),_e;return u&&(_e=window.setInterval(()=>{if(u){N(m,u.getVideoPlaybackQuality().droppedVideoFrames,!0);let J=u.getVideoPlaybackQuality().totalVideoFrames;N(f,J-n(p)),N(p,J,!0),b.push(n(f)),n(s).speed&&y.push(n(s).speed),n(s).bitrate&&$.push(n(s).bitrate),N(S,b.getValuesFromBottom(),!0),N(C,y.getValuesFromBottom(),!0),N(I,$.getValuesFromBottom(),!0)}},1e3)),()=>{a.actions.internal.stopLogging(),clearInterval($e),_e&&clearInterval(_e)}});var E=c0();let P;var O=T(E);O.__click=[Yy,l];var D=k(O,2),U=T(D),z=k(T(U),2),G=T(z,!0);w(z),w(U);var le=k(U,2);{var Y=$e=>{var _e=jy(),J=k(T(_e),2),ye=T(J,!0);w(J),w(_e),B(()=>pe(ye,n(s).id)),_($e,_e)};V(le,$e=>{n(s).id&&$e(Y)})}var re=k(le,2);{var X=$e=>{var _e=Xy(),J=k(T(_e),2),ye=T(J,!0);w(J),w(_e),B(()=>pe(ye,n(s).vsid)),_($e,_e)};V(re,$e=>{n(s).vsid&&$e(X)})}var we=k(re,2);{var ce=$e=>{var _e=Zy(),J=k(T(_e),2),ye=T(J,!0);w(J),w(_e),B(()=>pe(ye,n(s).provider)),_($e,_e)};V(we,$e=>{n(s).provider&&$e(ce)})}var ne=k(we,2);{var he=$e=>{var _e=Jy(),J=k(T(_e),2),ye=T(J);w(J),w(_e),B(()=>{var Pe,Pt;return pe(ye,`Video: ${(Pe=n(s).videoCodec||"")!=null?Pe:""} ${n(s).hdr?"(HDR)":""}
|
|
57
57
|
&
|
|
58
|
-
Audio: ${(Et=n(s).audioCodec||"")!=null?Et:""} ${n(s).audioLanguage?`(${n(s).audioLanguage})`:""}`)}),_(ye,be)};V(re,ye=>{(n(s).videoCodec||n(s).audioCodec)&&ye(_e)})}var we=k(re,2);{var Z=ye=>{var be=i0(),J=k(T(be),2),xe=T(J,!0);w(J),w(be),B(()=>pe(xe,n(s).viewport)),_(ye,be)};V(we,ye=>{n(s).viewport&&ye(Z)})}var Ne=k(we,2);{var ue=ye=>{var be=o0(),J=k(T(be),2),xe=T(J,!0);w(J),w(be),B(()=>pe(xe,n(s).videoSize)),_(ye,be)};V(Ne,ye=>{n(s).videoSize&&ye(ue)})}var P=k(Ne,2);{var Ke=ye=>{var be=n0(),J=k(T(be),2),xe=T(J,!0);w(J),w(be),B(()=>pe(xe,n(s).cdn)),_(ye,be)};V(P,ye=>{n(s).cdn&&ye(Ke)})}var Ce=k(P,2);{var Y=ye=>{var be=r0(),J=k(T(be),2),xe=T(J);w(J),w(be),B(()=>{var Pe;return pe(xe,`${(Pe=n(s).volume)!=null?Pe:""} %`)}),_(ye,be)};V(Ce,ye=>{n(s).volume&&ye(Y)})}var ie=k(Ce,2);{var Oe=ye=>{var be=s0(),J=k(T(be),2),xe=T(J);w(J),w(be),B(Pe=>pe(xe,`${Pe!=null?Pe:""} s`),[()=>n(s).position.toFixed(2)]),_(ye,be)};V(ie,ye=>{n(s).position&&ye(Oe)})}var Be=k(ie,2);{var fe=ye=>{var be=a0(),J=k(T(be),2),xe=T(J);w(J),w(be),B(Pe=>pe(xe,`${Pe!=null?Pe:""} s`),[()=>n(s).buffer.toFixed(2)]),_(ye,be)};V(Be,ye=>{n(s).buffer&&ye(fe)})}var ee=k(Be,2);{var Se=ye=>{var be=l0(),J=k(T(be),2),xe=T(J);w(J),w(be),B(Pe=>pe(xe,`${Pe!=null?Pe:""} s`),[()=>n(s).liveLatency.toFixed(2)]),_(ye,be)};V(ee,ye=>{n(s).liveLatency&&ye(Se)})}var Fe=k(ee,2);{var qe=ye=>{var be=d0(),J=k(T(be),2),xe=T(J,!0);w(J),w(be),B(Pe=>pe(xe,Pe),[()=>[{value:n(s).currentVideoSegmentLength,title:"Video:"},{value:n(s).currentAudioSegmentLength,title:"Audio:"}].filter(({value:Pe})=>Pe).map(({value:Pe,title:Et})=>`${Et} ${((Pe!=null?Pe:0)/1e3).toFixed(2)} s`).join(" & ")]),_(ye,be)};V(Fe,ye=>{(n(s).currentVideoSegmentLength||n(s).currentAudioSegmentLength)&&ye(qe)})}var je=k(Fe,2),Te=k(T(je),2),Me=T(Te);w(Te),w(je);var ze=k(je,2);{var Nt=ye=>{var be=c0(),J=k(T(be),2);dc(J,{get values(){return n(C)}});var xe=k(J,2),Pe=T(xe);w(xe),w(be),B(Et=>pe(Pe,`${Et!=null?Et:""} Kbps`),[()=>n(s).speed.toFixed(2)]),_(ye,be)};V(ze,ye=>{n(s).speed&&ye(Nt)})}var tt=k(ze,2);{var Bt=ye=>{var be=u0(),J=k(T(be),2);dc(J,{get values(){return n(I)}});var xe=k(J,2),Pe=T(xe);w(xe),w(be),B(Et=>pe(Pe,`${Et!=null?Et:""} Kbps`),[()=>n(s).bitrate.toFixed(2)]),_(ye,be)};V(tt,ye=>{n(s).bitrate&&ye(Bt)})}var Qt=k(tt,2),It=k(T(Qt),2);dc(It,{get values(){return n(S)}});var ti=k(It,2),Ft=T(ti,!0);w(ti),w(Qt),w(D),w(E),B(ye=>{var be,J;A=se(E,1,"container s-t",null,A,ye),Ue(E,"aria-label",R),pe(G,n(s).version),pe(Me,`${(be=n(m))!=null?be:""} / ${(J=n(p))!=null?J:""} frames`),pe(Ft,n(f))},[()=>({"container-mobile":r()})]),_(t,E),H(),o()}st(["click"]);var pb=require("@vkontakte/videoplayer-shared/es2015"),m0=(t,e)=>{t.stopPropagation(),e()()},v0=L('<div class="close s-11"></div>'),g0={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 Ms(t,e){F(e,!0),q(t,g0);let i=g(e,"onClick",3,pb.noop);var o=v0();o.__click=[m0,i],_(t,o),H()}st(["click"]);var fb=require("@vkontakte/videoplayer-shared/es2015");var gn=t=>`width:${t}px;height:${t}px;`;var h0=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 Vn(t,e){F(e,!0);let i=v(()=>gn(e.size));Je(t,{get width(){return"48"},get height(){return"48"},get fill(){return e.fill},get style(){return n(i)},testId:"play-icon",get shadow(){return e.shadow},children:(o,r)=>{var a=h0();_(o,a)},$$slots:{default:!0}}),H()}var _0=L('<div class="timer s-y"><canvas class="timer-canvas s-y" width="100" height="100"></canvas> <!></div>'),b0={hash:"s-y",code:".timer.s-y{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-y:hover{background:rgba(31,31,31,.85)}.timer-canvas.s-y{height:50px;position:absolute;width:50px}"};function uc(t,e){F(e,!0),q(t,b0);let i=g(e,"isRunning",3,!0),o=g(e,"onTimerEnded",3,fb.noop),r=5e3,a=K(void 0),l,d,s=0,u;De(()=>{i()&&kt(()=>{d=Date.now(),s=requestAnimationFrame(m)})});let p=()=>{s&&(cancelAnimationFrame(s),s=0)},m=()=>{p(),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(m)):o()())};Dt(()=>{l=n(a).getContext("2d"),l&&(l.lineWidth=6,l.lineCap="round",l.strokeStyle="#fff")}),vn(()=>{p()});var f=_0(),b=T(f);nt(b,$=>N(a,$),()=>n(a));var y=k(b,2);Vn(y,{get size(){return"24"}}),w(f),_(t,f),H()}var $0=(t,e,i)=>{e(!1),i()},y0=L('<div class="overlay s-10"></div> <div class="next-video s-10"><div class="top s-10"><div class="caption s-10"> </div> <!></div> <div class="row s-10"><div class="column s-10"><div class="thumb s-10"><div></div> <!></div></div> <div class="column s-10"><div class="title s-10"> </div></div></div></div>',1),x0={hash:"s-10",code:".overlay.s-10{background:rgba(0,0,0,.72);height:100%;position:absolute;width:100%}.next-video.s-10{display:flex;flex-direction:column;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:362px}.top.s-10{display:flex;justify-content:space-between}.caption.s-10{color:var(--white);font-size:11px;font-weight:700;opacity:.8;text-transform:uppercase}.row.s-10{background:rgba(48,48,48,.8);cursor:pointer;display:flex;flex-direction:row;height:102px;margin-top:6px;width:100%}.column.s-10{display:flex;flex-basis:50%;flex-direction:column}.thumb.s-10{align-items:center;background:no-repeat 50%;background-size:cover;display:flex;justify-content:space-around;position:relative}.thumb.s-10,.thumb-overlay.s-10{height:100%;width:100%}.thumb-overlay.s-10{position:absolute}.thumb-overlay.withOpacity.s-10{background:var(--black);opacity:.3}.title.s-10{color:var(--white);font-size:12px;font-weight:700;line-height:1.6;max-height:52px;overflow:hidden;padding:10px 16px}"};function _m(t,e){F(e,!0),q(t,x0);let[i,o]=Re(),r=()=>x(d,"$autoplayNextEnabled$",i),a=()=>x(s,"$timerNextVideoRunning$",i),l=me(),d=l.ui.autoplayNextEnabled$,s=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,p=l.actions.internal.nextVideoAnnouncementShow,m=l.actions.internal.nextVideoAnnouncementClick,f=l.actions.internal.nextVideoAnnouncementAuto,b=l.actions.internal.nextVideoAnnouncementCancel,y=()=>{r()&&(u(!1),f())},$=()=>{e.clickCloseIcon(),b()};Dt(()=>{e.isHide||p(),e.isHide&&r()&&(u(!1),f())});var S=Le(),C=de(S);{var I=R=>{var E=y0(),A=k(de(E),2),O=T(A),D=T(O),U=T(D,!0);w(D);var z=k(D,2);Ms(z,{onClick:$}),w(O);var G=k(O,2);G.__click=[$0,u,m];var le=T(G),X=T(le),oe=T(X);let j;var ve=k(oe,2);{var ce=Z=>{let Ne=v(()=>a()&&r());uc(Z,{get isRunning(){return n(Ne)},onTimerEnded:y})};V(ve,Z=>{r()&&Z(ce)})}w(X),w(le);var re=k(le,2),_e=T(re),we=T(_e,!0);w(_e),w(re),w(G),w(A),B((Z,Ne)=>{pe(U,Z),Ge(X,`background-image: url('${e.thumb}')`),j=se(oe,1,"thumb-overlay s-10",null,j,Ne),pe(we,e.title)},[()=>Q("end_screen_next_video"),()=>({withOpacity:r()})]),_(R,E)};V(C,R=>{e.isHide||R(I)})}_(t,S),H(),o()}st(["click"]);var aa=require("@vkontakte/videoplayer-core/es2015"),mb=require("@vkontakte/videoplayer-shared/es2015"),Rn=require("@vkontakte/videoplayer-statistics/es2015");var bm=(t,e)=>Math.min(+(t+e).toFixed(2),1),$m=(t,e)=>Math.max(+(t-e).toFixed(2),0),np=(t,e,i)=>{let o=bm(e,i);e<1&&t.actions.internal.setVolume(o)},rp=(t,e,i)=>{let o=$m(e,i);e>0&&t.actions.internal.setVolume(o)};var sa=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:r})=>t?i?!0:(o==null||o(),!1):e?!0:(r==null||r(),!1);function sp(){var t,e,i;return(i=(e=(t=document.activeElement)==null?void 0:t.shadowRoot)==null?void 0:e.activeElement)!=null?i:null}var S0=(t,e)=>{e(t)},T0=L('<div class="keyboard-controls s-14" tabindex="-1" role="region"><!></div>'),C0={hash:"s-14",code:".keyboard-controls.s-14{bottom:0;left:0;position:absolute;right:0;top:0}"};function ym(t,e){var Pe,Et;F(e,!0),q(t,C0);let[i,o]=Re(),r=()=>x(ve,"$disabledControls$",i),a=()=>x(Se,"$isInteractiveTime$",i),l=()=>x(Fe,"$showInteractiveTimeIndicatorTooltip$",i),d=()=>x(G,"$playbackState$",i),s=()=>x(Y,"$isEnded$",i),u=()=>x(Ke,"$doubleForwardAvailable$",i),p=()=>x(P,"$doubleForwardOn$",i),m=()=>x(ie,"$overlayContainer$",i),f=()=>x(le,"$adPlaybackState",i),b=()=>x(X,"$positionExact$",i),y=()=>x(oe,"$duration$",i),$=()=>x(fe,"$isAudioAvailable$",i),S=()=>x(j,"$volume$",i),C=()=>x(we,"$availablePlaybackRates$",i),I=()=>x(_e,"$currentPlaybackRate$",i),R=()=>x(ce,"$muted$",i),E=()=>x(re,"$currentSubtitle$",i),A=g(e,"nextButtonActive",3,!1),O=g(e,"prevButtonActive",3,!1),D=me(),U=Rt(),z=D.getLogger().createComponentLog("KeyboardControls component"),G=D.state.playbackState$,le=D.ads.playbackState,X=D.state.positionExact$,oe=D.state.duration$,j=D.state.volume$,ve=D.ui.controls.disabledControls$,ce=D.state.muted$,re=D.state.currentSubtitle$,_e=D.state.currentPlaybackRate$,we=D.state.availablePlaybackRates$,Z=D.ui.contextMenu.openedByHotKey$,Ne=D.ui.contextMenu.lastActiveElem$,ue=D.ui.contextMenu.visible$,P=D.ui.doubleForwardOn$,Ke=D.ui.doubleForwardAvailable$,Ce=D.ui.contextMenu.position$,Y=D.state.isEnded$,ie=D.ui.overlayContainer$,Oe=(Pe=D.callbacks)==null?void 0:Pe.onAudioDoesNotExistHint,Be=(Et=D.callbacks)==null?void 0:Et.onAudioDisabledHint,fe=D.state.isAudioAvailable$,ee=D.state.isAudioDisabled,Se=D.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:Fe}=Io(),qe=0,je=!0,Te=K(void 0),Me=Ve=>(Ve!==je&&(je=Ve,qe=0),qe+=1,(U.controls.seekStepKeyboard+U.controls.seekStepKeyboard*qe)/1e3),ze=!0,Nt=({type:Ve,repeat:at,disableDoubleForward:vt})=>{let $e=()=>{if(!r().has("PLAY_BUTTON"))if(a()&&l()&&Fe.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{D.actions.internal.togglePlay();let We="PLAY";d()===aa.PlaybackState.PAUSED?We="PAUSE":s()&&(We="REPLAY"),e.showHotKeyHelpers({type:We})}},et=Ve==="down";if(!u()||vt){et&&$e(),ze=!0;return}if(et)ze=!1;else if(ze)return;if(et){!at&&e.startDoubleForwardActivationTimer();return}p()||$e(),e.stopDoubleForward(),ze=!0},tt=Ve=>{let at=cb(m());Ce.set(at),Ne.set(Ve.target),Z.set(!0),ue.set(!0)},Bt=(Ve,at=!1)=>{var Ai,Jt;let vt=Ve.target,$e=(Ai=vt==null?void 0:vt.getAttribute("role"))==null?void 0:Ai.includes("menuitem"),et=vt.classList.contains("btn"),We=Ve.code;if(et&&We==="Space")return!1;let rt=p_.has(We);if($e&&rt)return!1;let ii=!u_.has(We);if(Ve.ctrlKey&&ii||Ve.altKey&&ii||Ve.metaKey)return!1;let li=$e&&We==="Escape";f_.has(We)||li||e.hideContextMenu();let gi=d()===aa.PlaybackState.PLAYING||d()===aa.PlaybackState.PAUSED,yi=e.isAds&&(f()==="paused"||f()==="playing"),no=!yi&&!r().has("TIMELINE"),$o=Ve.shiftKey&&["Digit1","Numpad1"].includes(We);if(!$o&&!(gi||yi))return!1;z({message:`key down, code: ${We}, isExternal = ${at}`});let fi=!1,ft=()=>{fi=!0,at||Ve.preventDefault()};if($o)return tt(Ve),ft(),!0;switch(We){case"KeyJ":case"ArrowLeft":{if(!no)break;if(Ve.ctrlKey||Ve.altKey){let Tt=D.actions.internal.getPrevEpisode();D.actions.internal.seekToPrevEpisode(Tt),Tt&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:Tt.text}),ft()}else{let Tt=Ve.shiftKey?Me(!1):U.controls.seekStepKeyboard/1e3,ri=Math.max(b()-Tt,0);b()>0&&(D.actions.internal.seekTime(ri,Rn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:Tt.toString()}),ft())}break}case"KeyL":case"ArrowRight":{if(!no)break;if(Ve.ctrlKey||Ve.altKey){let Tt=D.actions.internal.getNextEpisode();D.actions.internal.seekToNextEpisode(Tt),Tt&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:Tt.text}),ft()}else{let Tt=Ve.shiftKey?Me(!0):U.controls.seekStepKeyboard/1e3,ri=Math.min(b()+Tt,y());Math.round(b())<Math.round(y())&&(D.actions.internal.seekTime(ri,Rn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:Tt.toString()}),ft())}break}case"ArrowUp":{if(sa({isAudioDisabled:ee,audioDisabledHintCallback:Be,isAudioAvailable:$(),audioIsNotExistHintCallback:Oe,isAds:e.isAds})){let Tt=S(),ri=U.controls.volumeStepKeyboard,ei=Tt<=1;if(np(D,Tt,ri),ei){let bt=Math.round(bm(Tt,ri)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:bt}})}}ft();break}case"ArrowDown":{if(sa({isAudioDisabled:ee,audioDisabledHintCallback:Be,isAudioAvailable:$(),audioIsNotExistHintCallback:Oe,isAds:e.isAds})){let Tt=S(),ri=U.controls.volumeStepKeyboard,ei=Tt>=0;if(rp(D,Tt,ri),ei){let bt=Math.round($m(Tt,ri)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:bt}})}}ft();break}case"Comma":{if(Ve.shiftKey){if(!p()){D.actions.internal.decrementPlaybackRate();let Tt=C().find(ri=>ri.value===I());e.showHotKeyHelpers({type:"RATE_DOWN",text:Tt==null?void 0:Tt.displayValue}),ft()}}else{if(yi||d()!==aa.PlaybackState.PAUSED)break;let Tt=Math.max(b()-U.controls.seekStepFrame/1e3,0);b()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),D.actions.internal.clearDelayedBufferingCheckTimeout(),D.actions.internal.seekTime(Tt,Rn.SeekAction.DOUBLE_TAP),ft())}break}case"Period":{if(Ve.shiftKey){if(!p()){D.actions.internal.incrementPlaybackRate();let Tt=C().find(ri=>ri.value===I());e.showHotKeyHelpers({type:"RATE_UP",text:Tt==null?void 0:Tt.displayValue}),ft()}}else{if(yi||d()!==aa.PlaybackState.PAUSED)break;let Tt=Math.min(b()+U.controls.seekStepFrame/1e3,y());b()<y()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),D.actions.internal.clearDelayedBufferingCheckTimeout(),D.actions.internal.seekTime(Tt,Rn.SeekAction.DOUBLE_TAP),ft())}break}case"KeyK":case"Space":Nt({type:"down",repeat:Ve.repeat,disableDoubleForward:"KeyK"===We}),ft();break;case"KeyM":{sa({isAudioDisabled:ee,audioDisabledHintCallback:Be,isAudioAvailable:$(),audioIsNotExistHintCallback:Oe,isAds:e.isAds})&&(e.showHotKeyHelpers({type:R()?"VOLUME":"MUTE"}),D.actions.internal.toggleMuted()),ft();break}case"KeyF":e.toggleFullscreen(),ft();break;case"KeyC":D.actions.internal.toggleSubtitle(),E().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(Jt=E())==null?void 0:Jt.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),ft();break;case"KeyI":D.actions.internal.togglePictureInPicture(),ft();break;case"Digit1":case"Numpad1":e.showHotKeyHelpers(),D.actions.internal.seekToPercent(.1,Rn.SeekAction.DOUBLE_TAP),ft();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),D.actions.internal.seekToPercent(.2,Rn.SeekAction.DOUBLE_TAP),ft();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),D.actions.internal.seekToPercent(.3,Rn.SeekAction.DOUBLE_TAP),ft();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),D.actions.internal.seekToPercent(.4,Rn.SeekAction.DOUBLE_TAP),ft();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),D.actions.internal.seekToPercent(.5,Rn.SeekAction.DOUBLE_TAP),ft();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),D.actions.internal.seekToPercent(.6,Rn.SeekAction.DOUBLE_TAP),ft();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),D.actions.internal.seekToPercent(.7,Rn.SeekAction.DOUBLE_TAP),ft();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),D.actions.internal.seekToPercent(.8,Rn.SeekAction.DOUBLE_TAP),ft();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),D.actions.internal.seekToPercent(.9,Rn.SeekAction.DOUBLE_TAP),ft();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),D.actions.internal.seekToPercent(0,Rn.SeekAction.DOUBLE_TAP),ft();break;case"Slash":{Ve.shiftKey&&U.features.hotKeyMapModal&&(e.showKeyMap(),ft());break}case"KeyN":Ve.shiftKey&&A()&&(D.actions.internal.nextVideoClick(),ft());break;case"KeyP":Ve.shiftKey&&O()&&(D.actions.internal.prevVideoClick(),ft());break;case"ShiftLeft":case"ShiftRight":ft();break;case"Tab":case"Escape":case"Enter":break;default:(0,mb.checkNever)(We);break}return fi},Qt=Ve=>{let at=Ve.code;if(Ve.ctrlKey||Ve.altKey||Ve.metaKey)return;let vt=d()===aa.PlaybackState.PLAYING||d()===aa.PlaybackState.PAUSED,$e=e.isAds&&(f()==="paused"||f()==="playing");if(vt||$e)switch(at){case"ShiftLeft":case"ShiftRight":qe=0;break;case"Space":Nt({type:"up"});break}},It=Q("aria_label_video_player"),ti=()=>{var Ve;return(Ve=n(Te))==null?void 0:Ve.focus()},Ft=()=>n(Te)===sp(),ye=Ve=>Ve.type==="keydown"?Bt(Ve,!0):(Ve.type==="keyup"&&Qt(Ve),!1);var be=T0();be.__keyup=Qt,be.__keydown=[S0,Bt];var J=T(be);si(J,()=>{var Ve;return(Ve=e.children)!=null?Ve:ht}),w(be),nt(be,Ve=>N(Te,Ve),()=>n(Te)),B(()=>Ue(be,"aria-label",It)),_(t,be);var xe=H({focus:ti,isFocused:Ft,handleExternalKeyboardEvent:ye});return o(),xe}st(["keyup","keydown"]);var I0=L('<div class="container s-v"><div class="dot s-v"></div> <div class="dot s-v"></div> <div class="dot s-v"></div></div>'),E0={hash:"s-v",code:".container.s-v{display:flex;left:50%;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%)}.dot.s-v:first-child{animation-delay:0s}.dot.s-v:nth-child(2){animation-delay:.18s}.dot.s-v:nth-child(3){animation-delay:.36s}@keyframes s-v-dot_animation{0%{opacity:.2}30%{opacity:1}to{opacity:.2}}.dot.s-v{animation-duration:.75s;animation-iteration-count:infinite;animation-name:s-v-dot_animation;background:var(--btn-color);border-radius:4px;height:8px;width:8px}.dot.s-v+.dot:where(.s-v){margin-left:4px}"};function Ka(t,e){q(t,E0);let i=g(e,"style",3,"");var o=I0();B(()=>Ge(o,i())),_(t,o)}var P0=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 xm(t,e){Je(t,{get fill(){return e.fill},children:(i,o)=>{var r=P0();_(i,r)},$$slots:{default:!0}})}var qa=require("@vkontakte/videoplayer-shared/es2015"),A0=t=>{t.stopPropagation()},k0=L("<button><!></button>"),L0={hash:"s-1w",code:"button.btn.s-1w{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-1w{width:100%}button.btn--live.s-1w{padding:10px 4px}button.btn-jc-l.s-1w{justify-content:left}button.btn-m.s-1w{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-1w,button.btn-m--play.s-1w{align-items:center;display:flex;justify-content:center}button.btn-m--play.s-1w{height:var(--big-play-size);padding:16px;position:relative;width:var(--big-play-size)}button.btn-m--next.s-1w,button.btn-m--prev.s-1w{height:50px;position:absolute;width:50px}button.btn-m--prev.s-1w{right:calc(100% + 35px)}button.btn-m--next.s-1w{left:calc(100% + 35px)}button.btn.s-1w:disabled{cursor:default;pointer-events:none}button.btn.s-1w:not(.btn-full-opacity):disabled{opacity:.4}button.btn.s-1w:not(:disabled):hover{opacity:.8}button.pr-0.s-1w{padding-right:0}button.pl-0.s-1w{padding-left:0}"};function Wt(t,e){F(e,!0),q(t,L0);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),p=g(e,"ariaExpanded",3,void 0),m=g(e,"tabIndex",3,0),f=g(e,"click",3,qa.noop),b=g(e,"focus",3,qa.noop),y=g(e,"blur",3,qa.noop),$=v(()=>f()===qa.noop?null:E=>{E.stopPropagation(),f()(E)}),S=v(()=>b()===qa.noop?null:E=>{E.preventDefault(),b()()}),C=v(()=>y()===qa.noop?null:E=>{E.preventDefault(),y()()});var I=k0();I.__pointerdown=[A0],I.__click=function(...E){var A;(A=n($))==null||A.apply(this,E)};var R=T(I);si(R,()=>{var E;return(E=e.children)!=null?E:ht}),w(I),nt(I,E=>s(E),()=>s()),B(()=>{var E,A,O,D,U,z,G,le;se(I,1,`btn ${(E=i())!=null?E:""}`,"s-1w"),Ge(I,o()||null),I.disabled=(A=r())!=null?A:null,Ue(I,"aria-hidden",(O=l())!=null?O:null),Ue(I,"aria-label",(D=d())!=null?D:null),Ue(I,"aria-keyshortcuts",(U=u())!=null?U:null),Ue(I,"aria-expanded",(z=p())!=null?z:null),Ue(I,"data-testid",(G=a())!=null?G:null),Ue(I,"tabindex",m()),Ue(I,"role",e.role),Ue(I,"aria-checked",(le=e.areaChecked)!=null?le:null)}),_t("focus",I,function(...E){var A;(A=n(S))==null||A.apply(this,E)}),_t("blur",I,function(...E){var A;(A=n(C))==null||A.apply(this,E)}),_(t,I),H()}st(["pointerdown","click"]);var M0=L('<div class="modal-header s-1n"><h3 class="modal-title s-1n"> </h3> <!></div>'),V0=L('<div class="modal-overlay s-1n"><div class="modal-container s-1n"><!> <div class="modal-scroll s-1n"><div class="modal-main s-1n"><!></div></div></div></div>'),R0={hash:"s-1n",code:'.modal-overlay.s-1n{align-items:center;background:transparent;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}.modal-container.s-1n{background:var(--mobile-settings-bg);border-radius:8px;color:var(--white);display:flex;flex-direction:column;height:calc(100% - 24px);max-height:490px;max-width:600px;width:calc(100% - 32px)}.modal-header.s-1n{align-items:start;border-bottom:1px solid var(--white-alpha-24);box-sizing:border-box;display:flex;height:40px;justify-content:space-between;padding:8px 10px}.modal-title.s-1n{color:var(--white);font-feature-settings:"clig" off,"liga" off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;margin:3px 0 0 6px}.modal-scroll.s-1n{height:100%;margin:8px 4px 8px 0;overflow-x:hidden;overflow-y:auto}.modal-scroll.s-1n::-webkit-scrollbar{width:8px}.modal-scroll.s-1n::-webkit-scrollbar-track{background-color:transparent;border-radius:4px;box-shadow:none;margin-right:2px}.modal-scroll.s-1n::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:#666;border:1px solid transparent;border-radius:5px;min-height:40px}.modal-scroll.s-1n::-webkit-scrollbar-thumb:hover{background-color:#777}.modal-main.s-1n{margin:-8px -4px 0 0}'};function wm(t,e){F(e,!0),q(t,R0);let i=g(e,"showHeader",3,!0),o=g(e,"showCloseCross",3,!0),r=Q("hotkey_map_modal_close_btn_text");var a=V0(),l=T(a),d=T(l);{var s=f=>{var b=M0(),y=T(b),$=T(y,!0);w(y);var S=k(y,2);{var C=I=>{Wt(I,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",get ariaLabel(){return r},children:(R,E)=>{xm(R,{fill:"currentColor"})},$$slots:{default:!0}})};V(S,I=>{o()&&I(C)})}w(b),B(()=>pe($,e.title)),_(f,b)};V(d,f=>{i()&&f(s)})}var u=k(d,2),p=T(u),m=T(p);si(m,()=>{var f;return(f=e.children)!=null?f:ht}),w(p),w(u),w(l),w(a),_(t,a),H()}var N0=new Set(["BR"]),vb=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;N0.has(l)||(r=a.parentElement)==null||r.removeChild(a)}return e.innerHTML};var O0=L('<li class="hot-key-map-item s-18"><span class="hot-key-map-item-description s-18"><!></span> <span class="hot-key-map-item-value s-18"> </span></li>'),D0=L('<div class="hot-key-map-group s-18"><h5 class="hot-key-map-group-title s-18"> </h5> <ul class="hot-key-map-group-items s-18"></ul></div>'),B0=L('<div class="hot-key-map s-18"></div>'),F0={hash:"s-18",code:'.hot-key-map.s-18{box-sizing:border-box;color:var(--black);overflow-x:hidden}.hot-key-map-group.s-18{border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px}.hot-key-map-group.s-18:last-child{border-bottom:none}.hot-key-map-group-title.s-18{color:var(--white);font-feature-settings:"clig" off,"liga" off;font-size:13px;font-style:normal;font-weight:600;line-height:16px}.hot-key-map-group-title.s-18,.hot-key-map-item.s-18{margin:0;padding:12px 0;width:100%}.hot-key-map-group-items.s-18{box-sizing:border-box;list-style:none;margin:0;padding:0}.hot-key-map-item.s-18{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-18{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-18{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-18,.hot-key-map-item-value.s-18{font-feature-settings:"clig" off,"liga" off;font-size:13px;font-style:normal;font-weight:400;line-height:16px}'};function Sm(t,e){F(e,!1),q(t,F0);let[i,o]=Re(),r=()=>x(l,"$data",i),a=me(),{data:l,show:d}=a.ui.modals.hotKeyMap,s=()=>{d.set(!1)};Co(),wm(t,{get title(){return r().title},onClose:s,children:(u,p)=>{var m=B0();Ci(m,5,()=>r().groups,({title:f,items:b})=>f,(f,b)=>{let y=()=>n(b).title,$=()=>n(b).items;var S=D0(),C=T(S),I=T(C,!0);w(C);var R=k(C,2);Ci(R,5,$,({description:E,value:A})=>A,(E,A)=>{let O=()=>n(A).description,D=()=>n(A).value;var U=O0(),z=T(U),G=T(z);Wd(G,()=>vb(O())),w(z);var le=k(z,2),X=T(le,!0);w(le),w(U),B(()=>pe(X,D())),_(E,U)}),w(R),w(S),B(()=>pe(I,y())),_(f,S)}),w(m),_(u,m)},$$slots:{default:!0}}),H(),o()}var _v=require("@vkontakte/videoplayer-shared/es2015");var Ja=require("@vkontakte/videoplayer-core/es2015");var KD=require("@vkontakte/videoplayer-shared/es2015");var H0=L('<div class="pillow s-1y"><!></div>'),U0={hash:"s-1y",code:".pillow.s-1y{background-color:#679ff8;color:var(--white);font-size:6px;font-weight:600;-webkit-font-smoothing:antialiased;border-radius:12px;padding:2px 4px}"};function Tm(t,e){q(t,U0);var i=H0(),o=T(i);si(o,()=>{var r;return(r=e.children)!=null?r:ht}),w(i),_(t,i)}var Jl=require("@vkontakte/videoplayer-shared/es2015");var z0=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 Cm(t,e){let i=Mn(e,["$$slots","$$events","$$legacy","children"]);var o=z0();eo(o,()=>Ae({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"currentColor","fill-rule":"evenodd",role:"img"},i));var r=T(o);si(r,()=>{var a;return(a=e.children)!=null?a:ht}),vi(),w(o),_(t,o)}var W0=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 Im(t,e){let i=Mn(e,["$$slots","$$events","$$legacy","children"]);var o=W0();eo(o,()=>Ae({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"currentColor","fill-rule":"evenodd",role:"img"},i));var r=T(o);si(r,()=>{var a;return(a=e.children)!=null?a:ht}),vi(),w(o),_(t,o)}var K0=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 Em(t,e){let i=Mn(e,["$$slots","$$events","$$legacy","children"]);var o=K0();eo(o,()=>Ae({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"currentColor",role:"img"},i));var r=T(o);si(r,()=>{var a;return(a=e.children)!=null?a:ht}),vi(),w(o),_(t,o)}var q0=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 pc(t,e){let i=Mn(e,["$$slots","$$events","$$legacy","children"]);var o=q0();eo(o,()=>Ae({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"currentColor",role:"img"},i));var r=T(o);si(r,()=>{var a;return(a=e.children)!=null?a:ht}),vi(),w(o),_(t,o)}var Q0=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 fc(t,e){let i=Mn(e,["$$slots","$$events","$$legacy","children"]);var o=Q0();eo(o,()=>Ae({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"currentColor",role:"img"},i));var r=T(o);si(r,()=>{var a;return(a=e.children)!=null?a:ht}),vi(),w(o),_(t,o)}var ap=t=>{switch(t){case Jl.VideoQuality.Q_720P:return Em;case Jl.VideoQuality.Q_1080P:return pc;case Jl.VideoQuality.Q_1440P:return fc;case Jl.VideoQuality.Q_2160P:return Cm;case Jl.VideoQuality.Q_4320P:return Im}};var G0=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 Pm(t,e){Je(t,{get testId(){return e.testId},children:(i,o)=>{var r=G0();_(i,r)},$$slots:{default:!0}})}var Y0=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 Am(t,e){Je(t,{get testId(){return e.testId},children:(i,o)=>{var r=Y0();_(i,r)},$$slots:{default:!0}})}var j0=L('<div aria-hidden="true"><!> <!></div>'),X0={hash:"s-1v",code:".icon.s-1v{display:flex;height:24px;position:relative;width:24px}.icon.s-1v .pillow{position:absolute;right:-9px;top:1px}.icon.triple.s-1v .pillow{right:-13px}.icon.s-1v svg[data-testid=settings-icon--labeled] ._full{opacity:0;visibility:hidden}"};function mc(t,e){F(e,!0),q(t,X0);let i=g(e,"isMobile",3,!1),o=g(e,"currentQuality",3,void 0),r=v(()=>ap(o())),a=v(()=>!!n(r)&&[pc,fc].includes(n(r)));var l=Le(),d=de(l);{var s=p=>{Pm(p,{testId:"settings-mobile-icon"})},u=p=>{var m=j0();let f;var b=T(m);{var y=C=>{Tm(C,{children:(I,R)=>{var E=Le(),A=de(E);Ni(A,()=>n(r),(O,D)=>{D(O,{})}),_(I,E)},$$slots:{default:!0}})};V(b,C=>{n(r)&&C(y)})}var $=k(b,2);let S=v(()=>n(r)?"settings-icon--labeled":"settings-icon");Am($,{get testId(){return n(S)}}),w(m),B(C=>f=se(m,1,"icon s-1v",null,f,C),[()=>({triple:n(a)})]),_(p,m)};V(d,p=>{i()?p(s):p(u,!1)})}_(t,l),H()}var Z0=L('<span class="settings-icon-wrapper s-20"><!></span>'),J0={hash:"s-20",code:".settings-icon-wrapper.s-20{position:relative;width:24px}"};function ed(t,e){F(e,!0),q(t,J0);let[i,o]=Re(),r=()=>x(u,"$settingsMenuVisible",i),a=()=>x(f,"$isMobile",i),l=()=>x(s,"$currentQuality",i),d=me(),s=d.state.currentQuality$,u=d.ui.settingsMenu.visible$,p=d.actions.internal.openSettingsMenu,m=d.actions.internal.closeSettingsMenu,f=d.ui.isMobile,b=d.ui.t,y=K(void 0);De(()=>{n(y)&&kt(()=>{e.ref$.set(n(y))})});let $=b("aria_label_settings");function S(I){return gt(this,null,function*(){let R=ra(I);r()?m():p(R,bo)})}let C=v(()=>r()?"opened":"");Wt(t,{get className(){return n(C)},testId:"btn-settings",click:S,get ariaLabel(){return $},get ariaExpanded(){return r()},get ref(){return n(y)},set ref(I){N(y,I,!0)},children:(I,R)=>{var E=Z0(),A=T(E);mc(A,{get isMobile(){return a()},get currentQuality(){return l()}}),w(E),_(I,E)},$$slots:{default:!0}}),H(),o()}var ex=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),tx=Ee("<path></path>");function la(t,e){F(e,!0);let i=v(()=>`subtitles-icon-${e.type==="off"?"off":e.type==="outline"?"outline":""}`),o=v(()=>gn(e.size));Je(t,{get width(){return"48"},get height(){return"48"},get style(){return n(o)},get testId(){return n(i)},get shadow(){return e.shadow},children:(r,a)=>{var l=Le(),d=de(l);{var s=p=>{var m=ex();vi(),_(p,m)},u=p=>{var m=tx();B(()=>Ue(m,"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
|
|
58
|
+
Audio: ${(Pt=n(s).audioCodec||"")!=null?Pt:""} ${n(s).audioLanguage?`(${n(s).audioLanguage})`:""}`)}),_($e,_e)};V(ne,$e=>{(n(s).videoCodec||n(s).audioCodec)&&$e(he)})}var xe=k(ne,2);{var Z=$e=>{var _e=e0(),J=k(T(_e),2),ye=T(J,!0);w(J),w(_e),B(()=>pe(ye,n(s).viewport)),_($e,_e)};V(xe,$e=>{n(s).viewport&&$e(Z)})}var Ne=k(xe,2);{var ue=$e=>{var _e=t0(),J=k(T(_e),2),ye=T(J,!0);w(J),w(_e),B(()=>pe(ye,n(s).videoSize)),_($e,_e)};V(Ne,$e=>{n(s).videoSize&&$e(ue)})}var A=k(Ne,2);{var Ke=$e=>{var _e=i0(),J=k(T(_e),2),ye=T(J,!0);w(J),w(_e),B(()=>pe(ye,n(s).cdn)),_($e,_e)};V(A,$e=>{n(s).cdn&&$e(Ke)})}var Ce=k(A,2);{var j=$e=>{var _e=o0(),J=k(T(_e),2),ye=T(J);w(J),w(_e),B(()=>{var Pe;return pe(ye,`${(Pe=n(s).volume)!=null?Pe:""} %`)}),_($e,_e)};V(Ce,$e=>{n(s).volume&&$e(j)})}var ie=k(Ce,2);{var Oe=$e=>{var _e=n0(),J=k(T(_e),2),ye=T(J);w(J),w(_e),B(Pe=>pe(ye,`${Pe!=null?Pe:""} s`),[()=>n(s).position.toFixed(2)]),_($e,_e)};V(ie,$e=>{n(s).position&&$e(Oe)})}var Be=k(ie,2);{var fe=$e=>{var _e=r0(),J=k(T(_e),2),ye=T(J);w(J),w(_e),B(Pe=>pe(ye,`${Pe!=null?Pe:""} s`),[()=>n(s).buffer.toFixed(2)]),_($e,_e)};V(Be,$e=>{n(s).buffer&&$e(fe)})}var ee=k(Be,2);{var Se=$e=>{var _e=s0(),J=k(T(_e),2),ye=T(J);w(J),w(_e),B(Pe=>pe(ye,`${Pe!=null?Pe:""} s`),[()=>n(s).liveLatency.toFixed(2)]),_($e,_e)};V(ee,$e=>{n(s).liveLatency&&$e(Se)})}var Fe=k(ee,2);{var qe=$e=>{var _e=a0(),J=k(T(_e),2),ye=T(J,!0);w(J),w(_e),B(Pe=>pe(ye,Pe),[()=>[{value:n(s).currentVideoSegmentLength,title:"Video:"},{value:n(s).currentAudioSegmentLength,title:"Audio:"}].filter(({value:Pe})=>Pe).map(({value:Pe,title:Pt})=>`${Pt} ${((Pe!=null?Pe:0)/1e3).toFixed(2)} s`).join(" & ")]),_($e,_e)};V(Fe,$e=>{(n(s).currentVideoSegmentLength||n(s).currentAudioSegmentLength)&&$e(qe)})}var je=k(Fe,2),Te=k(T(je),2),Me=T(Te);w(Te),w(je);var ze=k(je,2);{var Nt=$e=>{var _e=l0(),J=k(T(_e),2);dc(J,{get values(){return n(C)}});var ye=k(J,2),Pe=T(ye);w(ye),w(_e),B(Pt=>pe(Pe,`${Pt!=null?Pt:""} Kbps`),[()=>n(s).speed.toFixed(2)]),_($e,_e)};V(ze,$e=>{n(s).speed&&$e(Nt)})}var tt=k(ze,2);{var Bt=$e=>{var _e=d0(),J=k(T(_e),2);dc(J,{get values(){return n(I)}});var ye=k(J,2),Pe=T(ye);w(ye),w(_e),B(Pt=>pe(Pe,`${Pt!=null?Pt:""} Kbps`),[()=>n(s).bitrate.toFixed(2)]),_($e,_e)};V(tt,$e=>{n(s).bitrate&&$e(Bt)})}var Gt=k(tt,2),Ct=k(T(Gt),2);dc(Ct,{get values(){return n(S)}});var ti=k(Ct,2),Ft=T(ti,!0);w(ti),w(Gt),w(D),w(E),B($e=>{var _e,J;P=se(E,1,"container s-l",null,P,$e),Ue(E,"aria-label",R),pe(G,n(s).version),pe(Me,`${(_e=n(m))!=null?_e:""} / ${(J=n(p))!=null?J:""} frames`),pe(Ft,n(f))},[()=>({"container-mobile":r()})]),_(t,E),H(),o()}st(["click"]);var ub=require("@vkontakte/videoplayer-shared/es2015"),p0=(t,e)=>{t.stopPropagation(),e()()},f0=L('<div class="close s-y"></div>'),m0={hash:"s-y",code:'.close.s-y{cursor:pointer;height:16px;opacity:.8;position:relative;transition:opacity .2s;width:16px}.close.s-y:hover{opacity:1}.close.s-y:after,.close.s-y:before{background-color:var(--white);content:" ";height:16px;left:8px;position:absolute;width:2px}.close.s-y:before{transform:rotate(45deg)}.close.s-y:after{transform:rotate(-45deg)}'};function Ms(t,e){F(e,!0),q(t,m0);let i=g(e,"onClick",3,ub.noop);var o=f0();o.__click=[p0,i],_(t,o),H()}st(["click"]);var pb=require("@vkontakte/videoplayer-shared/es2015");var bn=t=>`width:${t}px;height:${t}px;`;var v0=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 Rn(t,e){F(e,!0);let i=v(()=>bn(e.size));Je(t,{get width(){return"48"},get height(){return"48"},get fill(){return e.fill},get style(){return n(i)},testId:"play-icon",get shadow(){return e.shadow},children:(o,r)=>{var a=v0();_(o,a)},$$slots:{default:!0}}),H()}var g0=L('<div class="timer s-z"><canvas class="timer-canvas s-z" width="100" height="100"></canvas> <!></div>'),h0={hash:"s-z",code:".timer.s-z{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-z:hover{background:rgba(31,31,31,.85)}.timer-canvas.s-z{height:50px;position:absolute;width:50px}"};function uc(t,e){F(e,!0),q(t,h0);let i=g(e,"isRunning",3,!0),o=g(e,"onTimerEnded",3,pb.noop),r=5e3,a=K(void 0),l,d,s=0,u;De(()=>{i()&&kt(()=>{d=Date.now(),s=requestAnimationFrame(m)})});let p=()=>{s&&(cancelAnimationFrame(s),s=0)},m=()=>{p(),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(m)):o()())};Dt(()=>{l=n(a).getContext("2d"),l&&(l.lineWidth=6,l.lineCap="round",l.strokeStyle="#fff")}),_n(()=>{p()});var f=g0(),b=T(f);nt(b,$=>N(a,$),()=>n(a));var y=k(b,2);Rn(y,{get size(){return"24"}}),w(f),_(t,f),H()}var _0=(t,e,i)=>{e(!1),i()},b0=L('<div class="overlay s-10"></div> <div class="next-video s-10"><div class="top s-10"><div class="caption s-10"> </div> <!></div> <div class="row s-10"><div class="column s-10"><div class="thumb s-10"><div></div> <!></div></div> <div class="column s-10"><div class="title s-10"> </div></div></div></div>',1),$0={hash:"s-10",code:".overlay.s-10{background:rgba(0,0,0,.72);height:100%;position:absolute;width:100%}.next-video.s-10{display:flex;flex-direction:column;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:362px}.top.s-10{display:flex;justify-content:space-between}.caption.s-10{color:var(--white);font-size:11px;font-weight:700;opacity:.8;text-transform:uppercase}.row.s-10{background:rgba(48,48,48,.8);cursor:pointer;display:flex;flex-direction:row;height:102px;margin-top:6px;width:100%}.column.s-10{display:flex;flex-basis:50%;flex-direction:column}.thumb.s-10{align-items:center;background:no-repeat 50%;background-size:cover;display:flex;justify-content:space-around;position:relative}.thumb.s-10,.thumb-overlay.s-10{height:100%;width:100%}.thumb-overlay.s-10{position:absolute}.thumb-overlay.withOpacity.s-10{background:var(--black);opacity:.3}.title.s-10{color:var(--white);font-size:12px;font-weight:700;line-height:1.6;max-height:52px;overflow:hidden;padding:10px 16px}"};function gm(t,e){F(e,!0),q(t,$0);let[i,o]=Re(),r=()=>x(d,"$autoplayNextEnabled$",i),a=()=>x(s,"$timerNextVideoRunning$",i),l=ve(),d=l.ui.autoplayNextEnabled$,s=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,p=l.actions.internal.nextVideoAnnouncementShow,m=l.actions.internal.nextVideoAnnouncementClick,f=l.actions.internal.nextVideoAnnouncementAuto,b=l.actions.internal.nextVideoAnnouncementCancel,y=()=>{r()&&(u(!1),f())},$=()=>{e.clickCloseIcon(),b()};Dt(()=>{e.isHide||p(),e.isHide&&r()&&(u(!1),f())});var S=Le(),C=de(S);{var I=R=>{var E=b0(),P=k(de(E),2),O=T(P),D=T(O),U=T(D,!0);w(D);var z=k(D,2);Ms(z,{onClick:$}),w(O);var G=k(O,2);G.__click=[_0,u,m];var le=T(G),Y=T(le),re=T(Y);let X;var we=k(re,2);{var ce=Z=>{let Ne=v(()=>a()&&r());uc(Z,{get isRunning(){return n(Ne)},onTimerEnded:y})};V(we,Z=>{r()&&Z(ce)})}w(Y),w(le);var ne=k(le,2),he=T(ne),xe=T(he,!0);w(he),w(ne),w(G),w(P),B((Z,Ne)=>{pe(U,Z),Ge(Y,`background-image: url('${e.thumb}')`),X=se(re,1,"thumb-overlay s-10",null,X,Ne),pe(xe,e.title)},[()=>Q("end_screen_next_video"),()=>({withOpacity:r()})]),_(R,E)};V(C,R=>{e.isHide||R(I)})}_(t,S),H(),o()}st(["click"]);var la=require("@vkontakte/videoplayer-core/es2015"),fb=require("@vkontakte/videoplayer-shared/es2015"),Nn=require("@vkontakte/videoplayer-statistics/es2015");var hm=(t,e)=>Math.min(+(t+e).toFixed(2),1),_m=(t,e)=>Math.max(+(t-e).toFixed(2),0),op=(t,e,i)=>{let o=hm(e,i);e<1&&t.actions.internal.setVolume(o)},np=(t,e,i)=>{let o=_m(e,i);e>0&&t.actions.internal.setVolume(o)};var aa=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:r})=>t?i?!0:(o==null||o(),!1):e?!0:(r==null||r(),!1);function rp(){var t,e,i;return(i=(e=(t=document.activeElement)==null?void 0:t.shadowRoot)==null?void 0:e.activeElement)!=null?i:null}var x0=(t,e)=>{e(t)},w0=L('<div class="keyboard-controls s-13" tabindex="-1" role="region"><!></div>'),S0={hash:"s-13",code:".keyboard-controls.s-13{bottom:0;left:0;position:absolute;right:0;top:0}"};function bm(t,e){var Pe,Pt;F(e,!0),q(t,S0);let[i,o]=Re(),r=()=>x(we,"$disabledControls$",i),a=()=>x(Se,"$isInteractiveTime$",i),l=()=>x(Fe,"$showInteractiveTimeIndicatorTooltip$",i),d=()=>x(G,"$playbackState$",i),s=()=>x(j,"$isEnded$",i),u=()=>x(Ke,"$doubleForwardAvailable$",i),p=()=>x(A,"$doubleForwardOn$",i),m=()=>x(ie,"$overlayContainer$",i),f=()=>x(le,"$adPlaybackState",i),b=()=>x(Y,"$positionExact$",i),y=()=>x(re,"$duration$",i),$=()=>x(fe,"$isAudioAvailable$",i),S=()=>x(X,"$volume$",i),C=()=>x(xe,"$availablePlaybackRates$",i),I=()=>x(he,"$currentPlaybackRate$",i),R=()=>x(ce,"$muted$",i),E=()=>x(ne,"$currentSubtitle$",i),P=g(e,"nextButtonActive",3,!1),O=g(e,"prevButtonActive",3,!1),D=ve(),U=Rt(),z=D.getLogger().createComponentLog("KeyboardControls component"),G=D.state.playbackState$,le=D.ads.playbackState,Y=D.state.positionExact$,re=D.state.duration$,X=D.state.volume$,we=D.ui.controls.disabledControls$,ce=D.state.muted$,ne=D.state.currentSubtitle$,he=D.state.currentPlaybackRate$,xe=D.state.availablePlaybackRates$,Z=D.ui.contextMenu.openedByHotKey$,Ne=D.ui.contextMenu.lastActiveElem$,ue=D.ui.contextMenu.visible$,A=D.ui.doubleForwardOn$,Ke=D.ui.doubleForwardAvailable$,Ce=D.ui.contextMenu.position$,j=D.state.isEnded$,ie=D.ui.overlayContainer$,Oe=(Pe=D.callbacks)==null?void 0:Pe.onAudioDoesNotExistHint,Be=(Pt=D.callbacks)==null?void 0:Pt.onAudioDisabledHint,fe=D.state.isAudioAvailable$,ee=D.state.isAudioDisabled,Se=D.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:Fe}=Co(),qe=0,je=!0,Te=K(void 0),Me=Ve=>(Ve!==je&&(je=Ve,qe=0),qe+=1,(U.controls.seekStepKeyboard+U.controls.seekStepKeyboard*qe)/1e3),ze=!0,Nt=({type:Ve,repeat:at,disableDoubleForward:gt})=>{let be=()=>{if(!r().has("PLAY_BUTTON"))if(a()&&l()&&Fe.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{D.actions.internal.togglePlay();let We="PLAY";d()===la.PlaybackState.PAUSED?We="PAUSE":s()&&(We="REPLAY"),e.showHotKeyHelpers({type:We})}},et=Ve==="down";if(!u()||gt){et&&be(),ze=!0;return}if(et)ze=!1;else if(ze)return;if(et){!at&&e.startDoubleForwardActivationTimer();return}p()||be(),e.stopDoubleForward(),ze=!0},tt=Ve=>{let at=db(m());Ce.set(at),Ne.set(Ve.target),Z.set(!0),ue.set(!0)},Bt=(Ve,at=!1)=>{var Ai,Zt;let gt=Ve.target,be=(Ai=gt==null?void 0:gt.getAttribute("role"))==null?void 0:Ai.includes("menuitem"),et=gt.classList.contains("btn"),We=Ve.code;if(et&&We==="Space")return!1;let rt=c_.has(We);if(be&&rt)return!1;let ii=!d_.has(We);if(Ve.ctrlKey&&ii||Ve.altKey&&ii||Ve.metaKey)return!1;let li=be&&We==="Escape";u_.has(We)||li||e.hideContextMenu();let gi=d()===la.PlaybackState.PLAYING||d()===la.PlaybackState.PAUSED,yi=e.isAds&&(f()==="paused"||f()==="playing"),ro=!yi&&!r().has("TIMELINE"),$o=Ve.shiftKey&&["Digit1","Numpad1"].includes(We);if(!$o&&!(gi||yi))return!1;z({message:`key down, code: ${We}, isExternal = ${at}`});let pi=!1,pt=()=>{pi=!0,at||Ve.preventDefault()};if($o)return tt(Ve),pt(),!0;switch(We){case"KeyJ":case"ArrowLeft":{if(!ro)break;if(Ve.ctrlKey||Ve.altKey){let Tt=D.actions.internal.getPrevEpisode();D.actions.internal.seekToPrevEpisode(Tt),Tt&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:Tt.text}),pt()}else{let Tt=Ve.shiftKey?Me(!1):U.controls.seekStepKeyboard/1e3,ri=Math.max(b()-Tt,0);b()>0&&(D.actions.internal.seekTime(ri,Nn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:Tt.toString()}),pt())}break}case"KeyL":case"ArrowRight":{if(!ro)break;if(Ve.ctrlKey||Ve.altKey){let Tt=D.actions.internal.getNextEpisode();D.actions.internal.seekToNextEpisode(Tt),Tt&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:Tt.text}),pt()}else{let Tt=Ve.shiftKey?Me(!0):U.controls.seekStepKeyboard/1e3,ri=Math.min(b()+Tt,y());Math.round(b())<Math.round(y())&&(D.actions.internal.seekTime(ri,Nn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:Tt.toString()}),pt())}break}case"ArrowUp":{if(aa({isAudioDisabled:ee,audioDisabledHintCallback:Be,isAudioAvailable:$(),audioIsNotExistHintCallback:Oe,isAds:e.isAds})){let Tt=S(),ri=U.controls.volumeStepKeyboard,Jt=Tt<=1;if(op(D,Tt,ri),Jt){let yt=Math.round(hm(Tt,ri)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:yt}})}}pt();break}case"ArrowDown":{if(aa({isAudioDisabled:ee,audioDisabledHintCallback:Be,isAudioAvailable:$(),audioIsNotExistHintCallback:Oe,isAds:e.isAds})){let Tt=S(),ri=U.controls.volumeStepKeyboard,Jt=Tt>=0;if(np(D,Tt,ri),Jt){let yt=Math.round(_m(Tt,ri)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:yt}})}}pt();break}case"Comma":{if(Ve.shiftKey){if(!p()){D.actions.internal.decrementPlaybackRate();let Tt=C().find(ri=>ri.value===I());e.showHotKeyHelpers({type:"RATE_DOWN",text:Tt==null?void 0:Tt.displayValue}),pt()}}else{if(yi||d()!==la.PlaybackState.PAUSED)break;let Tt=Math.max(b()-U.controls.seekStepFrame/1e3,0);b()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),D.actions.internal.clearDelayedBufferingCheckTimeout(),D.actions.internal.seekTime(Tt,Nn.SeekAction.DOUBLE_TAP),pt())}break}case"Period":{if(Ve.shiftKey){if(!p()){D.actions.internal.incrementPlaybackRate();let Tt=C().find(ri=>ri.value===I());e.showHotKeyHelpers({type:"RATE_UP",text:Tt==null?void 0:Tt.displayValue}),pt()}}else{if(yi||d()!==la.PlaybackState.PAUSED)break;let Tt=Math.min(b()+U.controls.seekStepFrame/1e3,y());b()<y()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),D.actions.internal.clearDelayedBufferingCheckTimeout(),D.actions.internal.seekTime(Tt,Nn.SeekAction.DOUBLE_TAP),pt())}break}case"KeyK":case"Space":Nt({type:"down",repeat:Ve.repeat,disableDoubleForward:"KeyK"===We}),pt();break;case"KeyM":{aa({isAudioDisabled:ee,audioDisabledHintCallback:Be,isAudioAvailable:$(),audioIsNotExistHintCallback:Oe,isAds:e.isAds})&&(e.showHotKeyHelpers({type:R()?"VOLUME":"MUTE"}),D.actions.internal.toggleMuted()),pt();break}case"KeyF":e.toggleFullscreen(),pt();break;case"KeyC":D.actions.internal.toggleSubtitle(),E().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(Zt=E())==null?void 0:Zt.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),pt();break;case"KeyI":D.actions.internal.togglePictureInPicture(),pt();break;case"Digit1":case"Numpad1":e.showHotKeyHelpers(),D.actions.internal.seekToPercent(.1,Nn.SeekAction.DOUBLE_TAP),pt();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),D.actions.internal.seekToPercent(.2,Nn.SeekAction.DOUBLE_TAP),pt();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),D.actions.internal.seekToPercent(.3,Nn.SeekAction.DOUBLE_TAP),pt();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),D.actions.internal.seekToPercent(.4,Nn.SeekAction.DOUBLE_TAP),pt();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),D.actions.internal.seekToPercent(.5,Nn.SeekAction.DOUBLE_TAP),pt();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),D.actions.internal.seekToPercent(.6,Nn.SeekAction.DOUBLE_TAP),pt();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),D.actions.internal.seekToPercent(.7,Nn.SeekAction.DOUBLE_TAP),pt();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),D.actions.internal.seekToPercent(.8,Nn.SeekAction.DOUBLE_TAP),pt();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),D.actions.internal.seekToPercent(.9,Nn.SeekAction.DOUBLE_TAP),pt();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),D.actions.internal.seekToPercent(0,Nn.SeekAction.DOUBLE_TAP),pt();break;case"Slash":{Ve.shiftKey&&U.features.hotKeyMapModal&&(e.showKeyMap(),pt());break}case"KeyN":Ve.shiftKey&&P()&&(D.actions.internal.nextVideoClick(),pt());break;case"KeyP":Ve.shiftKey&&O()&&(D.actions.internal.prevVideoClick(),pt());break;case"ShiftLeft":case"ShiftRight":pt();break;case"Tab":case"Escape":case"Enter":break;default:(0,fb.checkNever)(We);break}return pi},Gt=Ve=>{let at=Ve.code;if(Ve.ctrlKey||Ve.altKey||Ve.metaKey)return;let gt=d()===la.PlaybackState.PLAYING||d()===la.PlaybackState.PAUSED,be=e.isAds&&(f()==="paused"||f()==="playing");if(gt||be)switch(at){case"ShiftLeft":case"ShiftRight":qe=0;break;case"Space":Nt({type:"up"});break}},Ct=Q("aria_label_video_player"),ti=()=>{var Ve;return(Ve=n(Te))==null?void 0:Ve.focus()},Ft=()=>n(Te)===rp(),$e=Ve=>Ve.type==="keydown"?Bt(Ve,!0):(Ve.type==="keyup"&&Gt(Ve),!1);var _e=w0();_e.__keyup=Gt,_e.__keydown=[x0,Bt];var J=T(_e);ai(J,()=>{var Ve;return(Ve=e.children)!=null?Ve:bt}),w(_e),nt(_e,Ve=>N(Te,Ve),()=>n(Te)),B(()=>Ue(_e,"aria-label",Ct)),_(t,_e);var ye=H({focus:ti,isFocused:Ft,handleExternalKeyboardEvent:$e});return o(),ye}st(["keyup","keydown"]);var T0=L('<div class="container s-p"><div class="dot s-p"></div> <div class="dot s-p"></div> <div class="dot s-p"></div></div>'),C0={hash:"s-p",code:".container.s-p{display:flex;left:50%;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%)}.dot.s-p:first-child{animation-delay:0s}.dot.s-p:nth-child(2){animation-delay:.18s}.dot.s-p:nth-child(3){animation-delay:.36s}@keyframes s-p-dot_animation{0%{opacity:.2}30%{opacity:1}to{opacity:.2}}.dot.s-p{animation-duration:.75s;animation-iteration-count:infinite;animation-name:s-p-dot_animation;background:var(--btn-color);border-radius:4px;height:8px;width:8px}.dot.s-p+.dot:where(.s-p){margin-left:4px}"};function Qa(t,e){q(t,C0);let i=g(e,"style",3,"");var o=T0();B(()=>Ge(o,i())),_(t,o)}var I0=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 $m(t,e){Je(t,{get fill(){return e.fill},children:(i,o)=>{var r=I0();_(i,r)},$$slots:{default:!0}})}var Ga=require("@vkontakte/videoplayer-shared/es2015"),E0=t=>{t.stopPropagation()},P0=L("<button><!></button>"),A0={hash:"s-1o",code:"button.btn.s-1o{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-1o{width:100%}button.btn--live.s-1o{padding:10px 4px}button.btn-jc-l.s-1o{justify-content:left}button.btn-m.s-1o{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-1o,button.btn-m--play.s-1o{align-items:center;display:flex;justify-content:center}button.btn-m--play.s-1o{height:var(--big-play-size);padding:16px;position:relative;width:var(--big-play-size)}button.btn-m--next.s-1o,button.btn-m--prev.s-1o{height:50px;position:absolute;width:50px}button.btn-m--prev.s-1o{right:calc(100% + 35px)}button.btn-m--next.s-1o{left:calc(100% + 35px)}button.btn.s-1o:disabled{cursor:default;pointer-events:none}button.btn.s-1o:not(.btn-full-opacity):disabled{opacity:.4}button.btn.s-1o:not(:disabled):hover{opacity:.8}button.pr-0.s-1o{padding-right:0}button.pl-0.s-1o{padding-left:0}"};function Wt(t,e){F(e,!0),q(t,A0);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),p=g(e,"ariaExpanded",3,void 0),m=g(e,"tabIndex",3,0),f=g(e,"click",3,Ga.noop),b=g(e,"focus",3,Ga.noop),y=g(e,"blur",3,Ga.noop),$=v(()=>f()===Ga.noop?null:E=>{E.stopPropagation(),f()(E)}),S=v(()=>b()===Ga.noop?null:E=>{E.preventDefault(),b()()}),C=v(()=>y()===Ga.noop?null:E=>{E.preventDefault(),y()()});var I=P0();I.__pointerdown=[E0],I.__click=function(...E){var P;(P=n($))==null||P.apply(this,E)};var R=T(I);ai(R,()=>{var E;return(E=e.children)!=null?E:bt}),w(I),nt(I,E=>s(E),()=>s()),B(()=>{var E,P,O,D,U,z,G,le;se(I,1,`btn ${(E=i())!=null?E:""}`,"s-1o"),Ge(I,o()||null),I.disabled=(P=r())!=null?P:null,Ue(I,"aria-hidden",(O=l())!=null?O:null),Ue(I,"aria-label",(D=d())!=null?D:null),Ue(I,"aria-keyshortcuts",(U=u())!=null?U:null),Ue(I,"aria-expanded",(z=p())!=null?z:null),Ue(I,"data-testid",(G=a())!=null?G:null),Ue(I,"tabindex",m()),Ue(I,"role",e.role),Ue(I,"aria-checked",(le=e.areaChecked)!=null?le:null)}),$t("focus",I,function(...E){var P;(P=n(S))==null||P.apply(this,E)}),$t("blur",I,function(...E){var P;(P=n(C))==null||P.apply(this,E)}),_(t,I),H()}st(["pointerdown","click"]);var k0=L('<div class="modal-header s-1j"><h3 class="modal-title s-1j"> </h3> <!></div>'),L0=L('<div class="modal-overlay s-1j"><div class="modal-container s-1j"><!> <div class="modal-scroll s-1j"><div class="modal-main s-1j"><!></div></div></div></div>'),M0={hash:"s-1j",code:'.modal-overlay.s-1j{align-items:center;background:transparent;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}.modal-container.s-1j{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-1j{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-1j{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-1j{height:100%;margin:8px 4px 8px 0;overflow-x:hidden;overflow-y:auto}.modal-scroll.s-1j::-webkit-scrollbar{width:8px}.modal-scroll.s-1j::-webkit-scrollbar-track{background-color:transparent;border-radius:4px;box-shadow:none;margin-right:2px}.modal-scroll.s-1j::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:#666;border:1px solid transparent;border-radius:5px;min-height:40px}.modal-scroll.s-1j::-webkit-scrollbar-thumb:hover{background-color:#777}.modal-main.s-1j{margin:-8px -4px 0 0}'};function ym(t,e){F(e,!0),q(t,M0);let i=g(e,"showHeader",3,!0),o=g(e,"showCloseCross",3,!0),r=Q("hotkey_map_modal_close_btn_text");var a=L0(),l=T(a),d=T(l);{var s=f=>{var b=k0(),y=T(b),$=T(y,!0);w(y);var S=k(y,2);{var C=I=>{Wt(I,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",get ariaLabel(){return r},children:(R,E)=>{$m(R,{fill:"currentColor"})},$$slots:{default:!0}})};V(S,I=>{o()&&I(C)})}w(b),B(()=>pe($,e.title)),_(f,b)};V(d,f=>{i()&&f(s)})}var u=k(d,2),p=T(u),m=T(p);ai(m,()=>{var f;return(f=e.children)!=null?f:bt}),w(p),w(u),w(l),w(a),_(t,a),H()}var V0=new Set(["BR"]),mb=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;V0.has(l)||(r=a.parentElement)==null||r.removeChild(a)}return e.innerHTML};var R0=L('<li class="hot-key-map-item s-11"><span class="hot-key-map-item-description s-11"><!></span> <span class="hot-key-map-item-value s-11"> </span></li>'),N0=L('<div class="hot-key-map-group s-11"><h5 class="hot-key-map-group-title s-11"> </h5> <ul class="hot-key-map-group-items s-11"></ul></div>'),O0=L('<div class="hot-key-map s-11"></div>'),D0={hash:"s-11",code:'.hot-key-map.s-11{box-sizing:border-box;color:var(--black);overflow-x:hidden}.hot-key-map-group.s-11{border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px}.hot-key-map-group.s-11:last-child{border-bottom:none}.hot-key-map-group-title.s-11{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-11,.hot-key-map-item.s-11{margin:0;padding:12px 0;width:100%}.hot-key-map-group-items.s-11{box-sizing:border-box;list-style:none;margin:0;padding:0}.hot-key-map-item.s-11{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-11{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-11{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-11,.hot-key-map-item-value.s-11{font-feature-settings:"clig" off,"liga" off;font-size:13px;font-style:normal;font-weight:400;line-height:16px}'};function xm(t,e){F(e,!1),q(t,D0);let[i,o]=Re(),r=()=>x(l,"$data",i),a=ve(),{data:l,show:d}=a.ui.modals.hotKeyMap,s=()=>{d.set(!1)};To(),ym(t,{get title(){return r().title},onClose:s,children:(u,p)=>{var m=O0();Ti(m,5,()=>r().groups,({title:f,items:b})=>f,(f,b)=>{let y=()=>n(b).title,$=()=>n(b).items;var S=N0(),C=T(S),I=T(C,!0);w(C);var R=k(C,2);Ti(R,5,$,({description:E,value:P})=>P,(E,P)=>{let O=()=>n(P).description,D=()=>n(P).value;var U=R0(),z=T(U),G=T(z);Wd(G,()=>mb(O())),w(z);var le=k(z,2),Y=T(le,!0);w(le),w(U),B(()=>pe(Y,D())),_(E,U)}),w(R),w(S),B(()=>pe(I,y())),_(f,S)}),w(m),_(u,m)},$$slots:{default:!0}}),H(),o()}var gv=require("@vkontakte/videoplayer-shared/es2015");var tl=require("@vkontakte/videoplayer-core/es2015");var zD=require("@vkontakte/videoplayer-shared/es2015");var B0=L('<div class="pillow s-1y"><!></div>'),F0={hash:"s-1y",code:".pillow.s-1y{background-color:#679ff8;color:var(--white);font-size:6px;font-weight:600;-webkit-font-smoothing:antialiased;border-radius:12px;padding:2px 4px}"};function wm(t,e){q(t,F0);var i=B0(),o=T(i);ai(o,()=>{var r;return(r=e.children)!=null?r:bt}),w(i),_(t,i)}var td=require("@vkontakte/videoplayer-shared/es2015");var H0=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 Sm(t,e){let i=Vn(e,["$$slots","$$events","$$legacy","children"]);var o=H0();to(o,()=>Ae({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"currentColor","fill-rule":"evenodd",role:"img"},i));var r=T(o);ai(r,()=>{var a;return(a=e.children)!=null?a:bt}),vi(),w(o),_(t,o)}var U0=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 Tm(t,e){let i=Vn(e,["$$slots","$$events","$$legacy","children"]);var o=U0();to(o,()=>Ae({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"currentColor","fill-rule":"evenodd",role:"img"},i));var r=T(o);ai(r,()=>{var a;return(a=e.children)!=null?a:bt}),vi(),w(o),_(t,o)}var z0=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 Cm(t,e){let i=Vn(e,["$$slots","$$events","$$legacy","children"]);var o=z0();to(o,()=>Ae({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"currentColor",role:"img"},i));var r=T(o);ai(r,()=>{var a;return(a=e.children)!=null?a:bt}),vi(),w(o),_(t,o)}var W0=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 pc(t,e){let i=Vn(e,["$$slots","$$events","$$legacy","children"]);var o=W0();to(o,()=>Ae({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"currentColor",role:"img"},i));var r=T(o);ai(r,()=>{var a;return(a=e.children)!=null?a:bt}),vi(),w(o),_(t,o)}var K0=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 fc(t,e){let i=Vn(e,["$$slots","$$events","$$legacy","children"]);var o=K0();to(o,()=>Ae({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"currentColor",role:"img"},i));var r=T(o);ai(r,()=>{var a;return(a=e.children)!=null?a:bt}),vi(),w(o),_(t,o)}var sp=t=>{switch(t){case td.VideoQuality.Q_720P:return Cm;case td.VideoQuality.Q_1080P:return pc;case td.VideoQuality.Q_1440P:return fc;case td.VideoQuality.Q_2160P:return Sm;case td.VideoQuality.Q_4320P:return Tm}};var q0=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 Im(t,e){Je(t,{get testId(){return e.testId},children:(i,o)=>{var r=q0();_(i,r)},$$slots:{default:!0}})}var Q0=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 Em(t,e){Je(t,{get testId(){return e.testId},children:(i,o)=>{var r=Q0();_(i,r)},$$slots:{default:!0}})}var G0=L('<div aria-hidden="true"><!> <!></div>'),Y0={hash:"s-1v",code:".icon.s-1v{display:flex;height:24px;position:relative;width:24px}.icon.s-1v .pillow{position:absolute;right:-9px;top:1px}.icon.triple.s-1v .pillow{right:-13px}.icon.s-1v svg[data-testid=settings-icon--labeled] ._full{opacity:0;visibility:hidden}"};function mc(t,e){F(e,!0),q(t,Y0);let i=g(e,"isMobile",3,!1),o=g(e,"currentQuality",3,void 0),r=v(()=>sp(o())),a=v(()=>!!n(r)&&[pc,fc].includes(n(r)));var l=Le(),d=de(l);{var s=p=>{Im(p,{testId:"settings-mobile-icon"})},u=p=>{var m=G0();let f;var b=T(m);{var y=C=>{wm(C,{children:(I,R)=>{var E=Le(),P=de(E);Bi(P,()=>n(r),(O,D)=>{D(O,{})}),_(I,E)},$$slots:{default:!0}})};V(b,C=>{n(r)&&C(y)})}var $=k(b,2);let S=v(()=>n(r)?"settings-icon--labeled":"settings-icon");Em($,{get testId(){return n(S)}}),w(m),B(C=>f=se(m,1,"icon s-1v",null,f,C),[()=>({triple:n(a)})]),_(p,m)};V(d,p=>{i()?p(s):p(u,!1)})}_(t,l),H()}var j0=L('<span class="settings-icon-wrapper s-1z"><!></span>'),X0={hash:"s-1z",code:".settings-icon-wrapper.s-1z{position:relative;width:24px}"};function id(t,e){F(e,!0),q(t,X0);let[i,o]=Re(),r=()=>x(u,"$settingsMenuVisible",i),a=()=>x(f,"$isMobile",i),l=()=>x(s,"$currentQuality",i),d=ve(),s=d.state.currentQuality$,u=d.ui.settingsMenu.visible$,p=d.actions.internal.openSettingsMenu,m=d.actions.internal.closeSettingsMenu,f=d.ui.isMobile,b=d.ui.t,y=K(void 0);De(()=>{n(y)&&kt(()=>{e.ref$.set(n(y))})});let $=b("aria_label_settings");function S(I){return _t(this,null,function*(){let R=sa(I);r()?m():p(R,bo)})}let C=v(()=>r()?"opened":"");Wt(t,{get className(){return n(C)},testId:"btn-settings",click:S,get ariaLabel(){return $},get ariaExpanded(){return r()},get ref(){return n(y)},set ref(I){N(y,I,!0)},children:(I,R)=>{var E=j0(),P=T(E);mc(P,{get isMobile(){return a()},get currentQuality(){return l()}}),w(E),_(I,E)},$$slots:{default:!0}}),H(),o()}var Z0=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),J0=Ee("<path></path>");function da(t,e){F(e,!0);let i=v(()=>`subtitles-icon-${e.type==="off"?"off":e.type==="outline"?"outline":""}`),o=v(()=>bn(e.size));Je(t,{get width(){return"48"},get height(){return"48"},get style(){return n(o)},get testId(){return n(i)},get shadow(){return e.shadow},children:(r,a)=>{var l=Le(),d=de(l);{var s=p=>{var m=Z0();vi(),_(p,m)},u=p=>{var m=J0();B(()=>Ue(m,"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
59
|
${e.type==="outline"?"M12.54 11.68c-1.04.1-1.64.26-2.1.48a5.2 5.2 90 00-2.28 2.28c-.22.46-.4 1.06-.48 2.1-.08 1.08-.08 2.46-.08 4.46v6c0 2 0 3.38.08 4.46.1 1.04.26 1.64.48 2.1q.78 1.5 2.28 2.28c.46.22 1.06.4 2.1.48 1.08.08 2.48.08 4.46.08h14c2 0 3.38 0 4.46-.08 1.04-.1 1.64-.26 2.1-.48a5.2 5.2 90 002.28-2.28c.22-.46.4-1.06.48-2.1.08-1.08.08-2.48.08-4.46v-6c0-2 0-3.38-.08-4.46a6 6 90 00-.48-2.1 5.2 5.2 90 00-2.28-2.28c-.46-.22-1.06-.4-2.1-.48-1.08-.08-2.48-.08-4.46-.08h-14c-2 0-3.38 0-4.46.08":""}
|
|
60
|
-
M12 29.8c0-1 .8-1.8 1.8-1.8h10.4a1.8 1.8 90 010 3.6H13.8a1.8 1.8 90 01-1.8-1.8m0-7.6c0-1 .8-1.8 1.8-1.8h3.4a1.8 1.8 90 110 3.6H13.8a1.8 1.8 90 01-1.8-1.8m17 7.6c0-1 .8-1.8 1.8-1.8h3.4a1.8 1.8 90 110 3.6h-3.4a1.8 1.8 90 01-1.8-1.8M22 22.2c0-1 .8-1.8 1.8-1.8h10.4a1.8 1.8 90 010 3.6h-10.4a1.8 1.8 90 01-1.8-1.8`)),_(p,m)};V(d,p=>{e.type==="off"?p(s):p(u,!1)})}_(r,l)},$$slots:{default:!0}}),H()}function km(t,e){F(e,!0);let i=g(e,"isSubtitlesEnabled",3,!1),r=me().ui.t,a=v(()=>i()?r("tooltip_subtitles_on"):r("tooltip_subtitles_off"));Wt(t,{testId:"btn-Subtitles",get ariaLabel(){return n(a)},get click(){return e.click},get ariaKeyShortCut(){return vs.KeyC},role:"button",children:(l,d)=>{let s=v(()=>i()?void 0:"outline");la(l,{get size(){return"24"},get type(){return n(s)}})},$$slots:{default:!0}}),H()}var ix=L('<span class="duration s-27" data-testid="video_duration"> </span>'),ox=L('<div><span class="current s-27" data-testid="current_time"> </span> <!></div>'),nx={hash:"s-27",code:'.time.s-27{align-items:center;color:var(--controls-time);display:flex;font-variant-numeric:tabular-nums;font-weight:500;padding:12px 6px}.time.mobile.s-27{padding:0 0 0 8px}.current.s-27{position:relative}.duration.s-27{opacity:.7}.duration.s-27:before{content:" / ";white-space:pre}'};function vc(t,e){F(e,!0),q(t,nx);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=Rt(),d=ae(!1),s=v(()=>en(e.duration)),u=v(()=>en(e.position));var p=ox();let m;var f=T(p),b=T(f,!0);w(f);var y=k(f,2);{var $=S=>{var C=ix(),I=T(C,!0);w(C),B(()=>pe(I,n(s))),_(S,C)};V(y,S=>{r()&&S($)})}w(p),As(p,()=>Ql(o()&&l.features.usePerformanceFix,d,l.disableInvisibleComponentsTimeout)),nt(p,S=>a(S),()=>a()),B(S=>{m=se(p,1,"time s-27",null,m,S),pe(b,n(u))},[()=>({mobile:i()})]),_(t,p),H()}var hc=require("@vkontakte/videoplayer-shared/es2015");var rx=Ee("<path></path>");function da(t,e){F(e,!0);let i=g(e,"volume",3,1),o=g(e,"muted",3,!1),r=(m,f)=>f?"off":m>.5?"max":m>.2?"mid":m>0?"min":"off",a=v(()=>r(i(),o())),l=v(()=>gn(e.size)),d="M4 19.9a2 2 90 011.88-2l5.68-.32a4 4 90 002.5-1.08l8.58-8a2 2 90 013.36 1.44v28.12a2 2 90 01-3.36 1.46l-8.58-8.02a4 4 90 00-2.52-1.08l-5.66-.32a2 2 90 01-1.88-2z",s="M44.92 16.52a1.8 1.8 90 012.56 2.56L42.54 24l4.94 4.92a1.8 1.8 90 11-2.56 2.56L40 26.54l-4.92 4.94a1.8 1.8 90 01-2.56-2.56L37.46 24l-4.94-4.92a1.8 1.8 90 112.56-2.56L40 21.46z",u="M31.5 17.8a1.8 1.8 90 012.54-.14A8.6 8.6 90 0136.8 24c0 2.52-1.06 4.8-2.76 6.34a1.8 1.8 90 11-2.4-2.68c.92-.84 1.56-2.16 1.56-3.66s-.64-2.8-1.58-3.66a1.8 1.8 90 01-.12-2.54",p="M37.62 13.34a1.8 1.8 90 012.54.2 16 16 90 010 20.9 1.8 1.8 90 01-2.74-2.32 12.4 12.4 90 000-16.24 1.8 1.8 90 01.2-2.54";Je(t,{get width(){return"48"},get height(){return"48"},get style(){return n(l)},get testId(){var m;return`volume-${(m=n(a))!=null?m:""}-icon`},get shadow(){return e.shadow},children:(m,f)=>{var b=rx();B(()=>Ue(b,"d",`M4 19.9a2 2 90 011.88-2l5.68-.32a4 4 90 002.5-1.08l8.58-8a2 2 90 013.36 1.44v28.12a2 2 90 01-3.36 1.46l-8.58-8.02a4 4 90 00-2.52-1.08l-5.66-.32a2 2 90 01-1.88-2z${n(a)==="off"?s:`${u}${n(a)==="max"?p:""}`}`)),_(m,b)},$$slots:{default:!0}}),H()}var Do=require("@vkontakte/videoplayer-shared/es2015");var lp=require("@vkontakte/videoplayer-shared/es2015");var gb=require("@vkontakte/videoplayer-shared/es2015");var sx=L('<div class="overlay"><!></div>');function Lm(t,e){F(e,!0);let[i,o]=Re(),r=()=>x(l,"$overlayContainer$",i),l=me().ui.overlayContainer$,d=K(void 0),s=f=>{!f||!n(d)||!f.contains(n(d))||f.removeChild(n(d))},u=f=>{!f||!n(d)||f.contains(n(d))||f.appendChild(n(d))};De(()=>{u(r())}),Dt(()=>(u(r()),()=>s(r())));var p=sx(),m=T(p);si(m,()=>{var f;return(f=e.children)!=null?f:ht}),w(p),nt(p,f=>N(d,f),()=>n(d)),_(t,p),H(),o()}var ax=L('<div class="tooltip s-1o"><div class="content s-1o"> </div> <div class="tooltip-pointer s-1o"></div></div>'),lx=L("<div><!></div> <!>",1),dx={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 Qa(t,e){F(e,!0),q(t,dx);let[i,o]=Re(),r=()=>x(G,"$overlayContainer$",i),a=()=>x(z,"$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),p=g(e,"translateY",3,0),m=g(e,"isFullWidthWrapper",3,!1),f=g(e,"maxTooltipWidth",3,void 0),b=g(e,"placement",3,"top"),y=g(e,"onVisibilityChange",3,gb.noop),$=5,S=K(void 0),C=K(void 0),I,R=K(0),E=K(0),A=K(0),O=K(0),D=Rt(),U=me(),z=U.ui.playerSize,G=U.ui.overlayContainer$;De(()=>{kt(()=>{y()(s())})});let le=U.getLogger().createComponentLog("Tooltip component"),X=()=>{if(!r()||!n(C)||!n(S))return;N(E,$);let ee=r().getBoundingClientRect(),Se=n(S).getBoundingClientRect(),Fe=Se.width,qe=n(C).clientWidth,je=a().width,Te=(Fe-qe)/2,Me=Se.left+u()-ee.left,ze=Me+Te,Nt=Se.top+p()-ee.top,tt=qe/2-$,Bt=ze<8,Qt=ze+qe>je-8;Bt&&(ze=8,tt=Me+Se.width/2-2.5*$),Qt&&(ze=je-8-qe,tt=Se.left-ee.left+Se.width/2-ze-$),N(A,ze,!0),N(O,Nt),N(R,tt,!0)},oe=()=>{!r()||!n(C)||!n(S)||N(E,-$)},j=()=>{if(!r()||!n(C)||!n(S))return;N(R,$);let ee=r().getBoundingClientRect(),Se=n(S).getBoundingClientRect(),Fe=Se.height,qe=n(C).clientHeight,je=(Fe-qe)/2+qe,Te=Se.left+u()-ee.left-n(C).clientWidth,Me=2,ze=Te-$;ze<8&&(ze=8);let tt=Se.top+p()-ee.top+je,Bt=Me-je/2,Qt=Me-$;N(A,ze,!0),N(O,tt),N(E,Bt),N(R,Qt)},ve=()=>{!r()||!n(C)||!n(S)||N(R,-$)},ce=()=>{switch(b()){case"top":X();break;case"bottom":oe();break;case"left":j();break;default:ve()}},re=()=>{try{if(!r()||!n(S))return;ce(),s(!0)}catch(ee){le({message:String(ee)})}},_e=()=>{s(!1)},we=()=>{n(C)&&(I||(I=window.setTimeout(re,D.controls.hideTimeoutTooltips)),s()&&re())},Z=()=>{_e(),window.clearTimeout(I),I=void 0},Ne=(ee,Se,Fe)=>{let qe="";switch(b()){case"top":qe=`transform: translate(${ee}px, ${Se}px);`;break;case"bottom":qe=`transform: translate(${ee}px, ${Se}px); top: auto; bottom: 100%;`;break;case"left":qe=`transform: translate(${ee}px, ${Se}px); left: 0; right: auto;`;break;default:qe=`transform: translate(${ee}px, ${Se}px);`}return qe+=` max-width: ${f()===void 0?"auto":`${f()}px`};`,qe+=` opacity: ${Fe?1:0}; visibility: ${Fe?"visible":"hidden"}`,qe},ue=(ee,Se)=>{let Fe="";switch(b()){case"top":Fe=`transform: translate(${ee}px, ${Se}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Fe=`transform: translate(${ee}px, ${Se}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Fe=`transform: translate(${ee}px, ${Se}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Fe=`transform: translate(${ee}px, ${Se}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Fe},P=v(()=>Ne(n(A),n(O),s())),Ke=v(()=>ue(n(R),n(E)));Dt(ce),vn(()=>window.clearTimeout(I));var Ce=lx(),Y=de(Ce);let ie;Y.__pointermove=we,Y.__pointerdown=Z,Y.__pointerup=function(...ee){var Se;(Se=e.disableMouseupTooltipShow?void 0:we)==null||Se.apply(this,ee)};var Oe=T(Y);si(Oe,()=>{var ee;return(ee=e.children)!=null?ee:ht}),w(Y),nt(Y,ee=>N(S,ee),()=>n(S));var Be=k(Y,2);{var fe=ee=>{Lm(ee,{children:(Se,Fe)=>{var qe=ax(),je=T(qe),Te=T(je,!0);w(je);var Me=k(je,2);w(qe),nt(qe,ze=>N(C,ze),()=>n(C)),B(()=>{Ge(qe,n(P)),pe(Te,d()),Ge(Me,n(Ke))}),_(Se,qe)},$$slots:{default:!0}})};V(Be,ee=>{d()&&!l()&&ee(fe)})}B(ee=>ie=se(Y,1,"tooltip-wrapper s-1o",null,ie,ee),[()=>({"full-width":m()})]),_t("pointerenter",Y,we),_t("pointerleave",Y,Z),_(t,Ce),H(),o()}st(["pointermove","pointerdown","pointerup"]);var hb=t=>{t.stopPropagation()},cx=L("<div><!></div>"),ux={hash:"s-1g",code:".btn-container.s-1g{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-1g{min-width:0;width:100%}"};function Oo(t,e){F(e,!0),q(t,ux);let[i,o]=Re(),r=()=>x(u,"$isGraphOpened$",i),a=()=>x(s,"$isMobile",i),l=me(),d=Io(),s=l.ui.isMobile,u=d.graphIsOpened$,p=l.ui.t,m=g(e,"className",3,""),f=g(e,"disabled",3,!1),b=g(e,"hasTooltip",3,!0),y=g(e,"ref",15,void 0),$=g(e,"width",15,void 0),S=g(e,"isFullWidthTooltip",3,!0),C=g(e,"tooltipContent",3,""),I=g(e,"tooltipVisible",3,!1),R=g(e,"tooltipPlacement",3,"top"),E=g(e,"disabledTooltipContent",19,()=>p("tooltip_button_disabled")),A=g(e,"isAriaHidden",3,!1),O=g(e,"onTooltipVisibilityChange",3,lp.noop),D=g(e,"initialTranslateXPx",3,0),U=g(e,"initialTranslateYPx",19,()=>-18),z=g(e,"mouseEnter",3,lp.noop),G=g(e,"mouseLeave",3,lp.noop),le=v(()=>f()?r()?p("tooltip_disabled_when_graph_on"):E():C()),X=K(!1);De(()=>{I()||N(X,!1)});var oe=cx();oe.__pointerdown=[hb],oe.__click=[hb];var j=T(oe);{var ve=re=>{Qa(re,{get content(){return n(le)},get translateX(){return D()},get translateY(){return U()},get isFullWidthWrapper(){return S()},get placement(){return R()},get onVisibilityChange(){return O()},get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},get active(){return n(X)},set active(_e){N(X,_e,!0)},children:(_e,we)=>{var Z=Le(),Ne=de(Z);si(Ne,()=>{var ue;return(ue=e.children)!=null?ue:ht}),_(_e,Z)},$$slots:{default:!0}})},ce=re=>{var _e=Le(),we=de(_e);si(we,()=>{var Z;return(Z=e.children)!=null?Z:ht}),_(re,_e)};V(j,re=>{b()&&n(le)&&!a()?re(ve):re(ce,!1)})}w(oe),nt(oe,re=>y(re),()=>y()),B(()=>{var re;se(oe,1,`btn-container ${(re=m())!=null?re:""}`,"s-1g"),Ue(oe,"aria-hidden",A()||null)}),_t("mouseenter",oe,function(...re){var _e;(_e=z())==null||_e.apply(this,re)}),_t("mouseleave",oe,function(...re){var _e;(_e=G())==null||_e.apply(this,re)}),Ln(oe,"clientWidth",$),_(t,oe),H(),o()}st(["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 gc(t,e){let i=v(()=>(e.completed,"interactive-episode-completed-icon"));Je(t,{width:"20",height:"20",fill:"none",get testId(){return n(i)},children:(o,r)=>{var a=px(),l=de(a),d=k(l);B(()=>{Ue(l,"fill",ta),Ue(l,"fill-opacity",e.completed?1:.24),Ue(d,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),_(o,a)},$$slots:{default:!0}})}var fx=L("<div><!></div>"),mx={hash:"s-x",code:".interactive-episode-icon.s-x{cursor:default;height:20px;position:absolute;transform:translateX(-50%);width:20px}.interactive-episode-icon.disabled.s-x{opacity:.4;pointer-events:none}"};function Mm(t,e){F(e,!0),q(t,mx);let o=me().ui.t,r=K(0),a=v(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));Oo(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=fx();let u;var p=T(s);let m=v(()=>!!e.videoEpisode.completed);gc(p,{get completed(){return n(m)}}),w(s),B(f=>{u=se(s,1,"interactive-episode-icon s-x",null,u,f),Ge(s,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),Ln(s,"clientWidth",f=>N(r,f)),_(l,s)},$$slots:{default:!0}}),H()}var vx=L('<div><div class="video-episode-inner s-w"><div class="video-episode-loaded s-w"></div> <div></div></div></div>'),gx=L('<div class="video-episodes-wrap s-w"></div>'),hx={hash:"s-w",code:".video-episodes-wrap.s-w{height:100%;position:absolute;width:100%}.video-episode.s-w{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-w:first-child{padding-left:0}.video-episode.s-w:last-child{padding-right:0}.video-episode.s-w:not(.disabled):where(:hover,:active){transform:scaleY(1.5)}.video-episode-filled.s-w,.video-episode-inner.s-w,.video-episode-loaded.s-w{border-radius:var(--slider-radius);height:var(--slider-height);position:absolute}.video-episode-inner.s-w{background:var(--slider-bg);overflow:hidden;position:absolute;width:calc(100% - var(--slider-video-episode-gap)*2)}.video-episode.s-w:first-child .video-episode-inner:where(.s-w),.video-episode.s-w:last-child .video-episode-inner:where(.s-w){width:calc(100% - var(--slider-video-episode-gap))}.video-episode-loaded.s-w{background:var(--slider-loaded-bg);transition:transform .2s}.video-episode-filled.s-w,.video-episode-loaded.s-w{border-radius:var(--slider-radius);height:100%;left:-100%;position:absolute;width:100%}.video-episode-filled.s-w{background-color:var(--slider-filled-bg)}"};function Vm(t,e){q(t,hx);let i=g(e,"videoEpisodes",19,()=>[]);var o=gx();Ci(o,21,i,r=>r.from,(r,a)=>{var l=vx();let d;var s=T(l),u=T(s),p=k(u,2);let m;w(s),w(l),B((f,b)=>{d=se(l,1,"video-episode s-w",null,d,f),Ge(l,`left: ${n(a).from}%; width: ${n(a).width}%`),Ge(u,`transform: translateX(${n(a).loadedWidth/n(a).width*100}%)`),m=se(p,1,"video-episode-filled s-w",null,m,b),Ge(p,`transform: translateX(${n(a).filledWidth/n(a).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),_(r,l)}),w(o),_(t,o)}function _x(t,e,i,o,r,a,l){if(t.preventDefault(),e()&&N(i,e().getBoundingClientRect(),!0),o()||n(r)||!e())return;N(r,!0);let d=a(t.clientX,t.clientY);l()(d,t),e().setPointerCapture(t.pointerId)}function bx(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 $x(t,e,i,o,r){if(t.preventDefault(),e()||!n(i))return;N(i,!1);let a=o(t.clientX,t.clientY);r()(a,t)}function yx(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}function xx(t,e,i,o,r,a){let l=e(t.clientX,t.clientY);i()&&o()(l),N(r,!1),a()(l)}var wx=L("<div></div>"),Sx=L('<div class="bars s-h"><div class="loaded s-h"></div> <div></div></div>'),Tx=L('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),Cx={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 Ga(t,e){F(e,!0),q(t,Cx);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),p=g(e,"videoEpisodes",19,()=>[]),m=g(e,"withWheelHandler",3,!1),f=g(e,"isInteractive",3,!1),b=g(e,"disabled",3,!1),y=g(e,"hideHandel",3,!1),$=g(e,"onPointerDown",3,Do.noop),S=g(e,"onHandleMove",3,Do.noop),C=g(e,"onPointerUp",3,Do.noop),I=g(e,"onPointerEnter",3,Do.noop),R=g(e,"onPointerMove",3,Do.noop),E=g(e,"onPointerLeave",3,Do.noop),A=g(e,"onMouseEnter",3,Do.noop),O=g(e,"onMouseLeave",3,Do.noop),D=g(e,"onWheelUp",3,Do.noop),U=g(e,"onWheelDown",3,Do.noop),z=g(e,"onWheelLeft",3,Do.noop),G=g(e,"onWheelRight",3,Do.noop),le=g(e,"onDisabledClick",3,Do.noop),X=g(e,"loadedProgress",3,0),oe=g(e,"filledProgress",3,0),j=g(e,"handleProgress",3,0),ve=g(e,"ariaLabel",3,""),ce=g(e,"ariaValueMin",3,void 0),re=g(e,"ariaValueMax",3,void 0),_e=g(e,"ariaValueNow",3,void 0),we=g(e,"ariaValueText",3,""),Z=g(e,"onContextMenu",3,Do.noop),Ne=g(e,"handleAlwaysVisible",3,!1),ue=Rt(),P=K(void 0),Ke=K(!1),Ce=v(()=>{var xe;return(xe=re())!=null?xe:0}),Y=v(()=>{var xe;return(0,Do.isNonNullable)(p())&&((xe=p()[p().length-1])==null?void 0:xe.time)<n(Ce)}),ie=v(()=>(0,Do.isNonNullable)(p())&&p().length&&n(Y)&&n(Ce)?je(X()*100,oe()*100):[]);function Oe(xe){if(xe.preventDefault(),i()&&N(P,i().getBoundingClientRect(),!0),b())return;let Pe=Fe(xe.clientX,xe.clientY),Et=qe(xe.clientX);I()(Pe,Et,n(P).width)}function Be(xe){xe.preventDefault(),!b()&&E()()}function fe(){A()()}function ee(){O()()}function Se(xe){b()||m()&&(xe.preventDefault(),xe.deltaY<0?D()():xe.deltaY>0?U()():xe.deltaX>0?G()():z()())}function Fe(xe,Pe){return l()?Math.max(0,Math.min(1,(n(P).height-(Pe-n(P).top))/n(P).height)):Math.min(Math.max(xe-n(P).x,0),n(P).width)/n(P).width}function qe(xe){return Math.min(Math.max(xe-n(P).x,0),n(P).width)}function je(xe,Pe){let Et=ue.features.episodesClustering&&!f()?ue.episodeMinWidthPc:0,Ve=[],at=p()[0].time/n(Ce)*100,vt=0,$e=0;for(let rt=1;rt<p().length;rt++)vt=p()[rt].time/n(Ce)*100,vt-at>Et&&(Ve.push({from:at,width:Math.max(0,vt-at),loadedWidth:Math.max(0,Math.min(vt,xe)-at),filledWidth:Math.max(0,Math.min(vt,Pe)-at),interactive:p()[rt-1].interactive,completed:p()[rt-1].completed}),at=p()[rt].time/n(Ce)*100,$e++);let et={from:at,width:Math.max(0,100-at),loadedWidth:Math.max(0,Math.min(xe,100)-at),filledWidth:Math.max(0,Math.min(Pe,100)-at),interactive:p()[$e].interactive,completed:p()[$e].completed};100-at<Et?($e-=1,Ve[$e].width+=100-at,Ve[$e].loadedWidth+=Math.max(0,Math.min(xe,100)-at),Ve[$e].filledWidth+=Math.max(0,Math.min(Pe,100)-at)):Ve[$e]=et;let We=p()[0].time;if(We!==0){let rt=We/n(Ce)*100;Ve.unshift({from:0,width:rt,loadedWidth:Math.min(rt,xe),filledWidth:Math.min(rt,Pe)})}return Ve}function Te(xe){return Math.max(0,Math.min(100,xe*100))}var Me=Tx(),ze=de(Me);{var Nt=xe=>{var Pe=wx();let Et;Ci(Pe,21,()=>n(ie),Ve=>Ve.from,(Ve,at)=>{var vt=Le(),$e=de(vt);{var et=We=>{Mm(We,{get videoEpisode(){return n(at)},get disabled(){return b()}})};V($e,We=>{n(at).interactive&&We(et)})}_(Ve,vt)}),w(Pe),B(Ve=>Et=se(Pe,1,"interactive-icons s-h",null,Et,Ve),[()=>({mobile:s(),hidden:s()&&!n(Ke)})]),_(xe,Pe)};V(ze,xe=>{f()&&xe(Nt)})}var tt=k(ze,2);let Bt;tt.__pointerdown=[_x,i,P,b,Ke,Fe,$],tt.__pointermove=[bx,b,Fe,qe,R,P,Ke,S],tt.__pointerup=[$x,b,Ke,Fe,C],tt.__click=[yx,b,le,Fe],tt.__contextmenu=[xx,Fe,b,le,Ke,Z];var Qt=T(tt);{var It=xe=>{Vm(xe,{get videoEpisodes(){return n(ie)},get disabled(){return b()},get isMobile(){return s()}})},ti=xe=>{var Pe=Sx(),Et=T(Pe),Ve=k(Et,2);let at;w(Pe),B((vt,$e,et)=>{Ge(Et,vt),at=se(Ve,1,"filled s-h",null,at,$e),Ge(Ve,et)},[()=>`transform: translateX(${Te(X())}%);`,()=>({"active-live":d()}),()=>`transform: translateX(${Te(oe())}%);`]),_(xe,Pe)};V(Qt,xe=>{n(ie).length?xe(It):xe(ti,!1)})}var Ft=k(Qt,2);let ye;var be=T(Ft);let J;w(Ft),w(tt),nt(tt,xe=>i(xe),()=>i()),B((xe,Pe,Et,Ve)=>{var at,vt;Bt=se(tt,1,`slider ${(at=o())!=null?at:""}`,"s-h",Bt,xe),Ue(tt,"aria-label",ve()),Ue(tt,"aria-valuemin",ce()),Ue(tt,"aria-valuemax",re()),Ue(tt,"aria-valuenow",_e()),Ue(tt,"aria-valuetext",we()),Ue(tt,"data-testid",(vt=r())!=null?vt:null),ye=se(Ft,1,"handleWrap s-h",null,ye,Pe),Ge(Ft,Et),J=se(be,1,"handle s-h",null,J,Ve)},[()=>({disabled:b(),"slider-dragging":n(Ke),hidden:a(),"handle-always-visible":Ne(),"slider-vertical":l(),"no-handle":y(),square:u()}),()=>({hidden:y()}),()=>`transform: translateX(${Te(j())}%);`,()=>({"active-live":d()})]),_t("pointerenter",tt,Oe),_t("pointerleave",tt,Be),_t("mouseenter",tt,fe),_t("mouseleave",tt,ee),_t("wheel",tt,Se),_(t,Me),H()}st(["pointerdown","pointermove","pointerup","click","contextmenu"]);var to=(t,e)=>Ra[t]>=Ra[e],_b=(t,e)=>Ra[t]<Ra[e],Vs=(t,e)=>Ra[t]<=Ra[e],bb=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var Ex=L("<div><!></div>"),Px=L("<div><!> <!></div>"),Ax={hash:"s-29",code:".volumeBar-container.s-29{align-items:center;display:flex}.vertical.s-29 .btn,.vertical.s-29 .tooltip-wrapper,.volumeBar-container.vertical.s-29{width:40px}.volumeBar.s-29{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-29{padding:0 8px 0 0;width:0}"};function Rm(t,e){var qe,je;F(e,!0),q(t,Ax);let[i,o]=Re(),r=()=>x(R,"$isAudioAvailable$",i),a=()=>x(f,"$muted$",i),l=()=>x(m,"$volume$",i),d=()=>x(S,"$currentGridType$",i),s=()=>x(Oe,"$controlsVisible",i),u=me(),p=Rt(),m=u.state.volume$,f=u.state.muted$,{setVolume:b,startVolumeChanging:y,stopVolumeChanging:$}=u.actions.internal,S=u.ui.currentGridType$,C=(qe=u.callbacks)==null?void 0:qe.onAudioDoesNotExistHint,I=(je=u.callbacks)==null?void 0:je.onAudioDisabledHint,R=u.state.isAudioAvailable$,E=u.state.isAudioDisabled,A=u.ui.t,O=K(!1),D,U=v(()=>e.isAds||r()),z=v(()=>!n(U)||a()||l()===0),G=v(()=>Vs(d(),"s")),le=v(()=>n(G)?"":n(z)?!r()||E?A("tooltip_sound_unavailable"):A("tooltip_volume"):A("tooltip_volume_muted")),X=v(()=>n(z)?A("tooltip_volume"):A("tooltip_volume_muted")),oe=v(()=>n(z)?0:l()),j=!1,ve=v(()=>e.isAds?!1:E?!I:r()?!1:!C);function ce(Te){y(),b(Te)}function re(){np(u,l(),p.controls.volumeStepWheel)}function _e(){rp(u,l(),p.controls.volumeStepWheel)}function we(Te){b(Te)}function Z(Te){b(Te),$()}function Ne(){j=!0}function ue(){j=!1,Ce()}function P(){clearTimeout(D),N(O,!0)}function Ke(){Ce()}function Ce(){D=window.setTimeout(()=>{j||N(O,!1)},p.controls.volumeBarTimeout)}function Y(Te){Te.preventDefault(),Te.deltaY<0?re():Te.deltaY>0&&_e()}let ie=K(!1),Oe=u.ui.controlsVisible;De(()=>{s()||N(ie,!1)});var Be=Px();let fe;var ee=T(Be);Qa(ee,{get content(){return n(le)},translateY:-18,get active(){return n(ie)},set active(Te){N(ie,Te,!0)},children:(Te,Me)=>{let ze=v(()=>n(G)?"btn-volume-vertical":"btn-volume-horizontal");Wt(Te,{className:"btn-full-opacity",get disabled(){return n(ve)},get testId(){return n(ze)},get ariaLabel(){return n(X)},get click(){return e.click},get ariaKeyShortCut(){return vs.KeyM},role:"button",children:(Nt,tt)=>{da(Nt,{get size(){return"24"},get volume(){return l()},get muted(){return n(z)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var Se=k(ee,2);{var Fe=Te=>{var Me=Ex();let ze;var Nt=T(Me);let tt=v(()=>n(G)?"volumeBar-slider-vertical":""),Bt=v(()=>n(G)&&!n(O)),Qt=v(()=>n(G)?Ne:hc.noop),It=v(()=>n(G)?ue:hc.noop),ti=v(()=>Math.round(n(oe)*100)),Ft=v(()=>`${Math.round(n(oe)*100)}%`),ye=v(()=>n(G)?"volume-slider-vertical":"volume-slider");Ga(Nt,{get className(){return n(tt)},get isHidden(){return n(Bt)},get isVertical(){return n(G)},withWheelHandler:!0,onWheelUp:re,onWheelDown:_e,onPointerDown:ce,onHandleMove:we,onPointerUp:Z,get onPointerEnter(){return n(Qt)},get onPointerLeave(){return n(It)},ariaLabel:"Ползунок громкости",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return n(ti)},get ariaValueText(){return n(Ft)},get filledProgress(){return n(oe)},get handleProgress(){return n(oe)},get testId(){return n(ye)}}),w(Me),B(be=>ze=se(Me,1,"volumeBar s-29",null,ze,be),[()=>({"volumeBar-vertical":n(G)})]),_(Te,Me)};V(Se,Te=>{n(U)&&Te(Fe)})}w(Be),B(Te=>fe=se(Be,1,"volumeBar-container s-29",null,fe,Te),[()=>({vertical:n(G)})]),_t("mouseenter",Be,function(...Te){var Me;(Me=n(G)?P:hc.noop)==null||Me.apply(this,Te)}),_t("mouseleave",Be,function(...Te){var Me;(Me=n(G)?Ke:hc.noop)==null||Me.apply(this,Te)}),_t("wheel",Be,Y),_(t,Be),H(),o()}var $b=require("@vkontakte/videoplayer-shared/es2015");var kx=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>'),Lx=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 Nm(t,e){let i=g(e,"isFullscreen",8,!1),o=In(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");Je(t,{get testId(){return n(o)},children:(r,a)=>{var l=Le(),d=de(l);{var s=p=>{var m=kx();_(p,m)},u=p=>{var m=Lx();_(p,m)};V(d,p=>{i()?p(s):p(u,!1)})}_(r,l)},$$slots:{default:!0}})}function _c(t,e){F(e,!0);let i=g(e,"isFullscreen",3,!1),o=g(e,"click",3,$b.noop),r=me(),a=r.ui.isFullscreenOpenedByKeyboard,l=r.ui.t,d=v(()=>i()?l("tooltip_fullscreen_on"):l("tooltip_fullscreen_off"));Wt(t,{testId:"fullscreen-btn",get ariaLabel(){return n(d)},click:u=>{let p=ra(u);a.set(p),o()()},get ariaKeyShortCut(){return vs.KeyF},role:"button",children:(u,p)=>{Nm(u,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),H()}var Mx=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 Om(t,e){let i=Mn(e,["$$slots","$$events","$$legacy","children"]);var o=Mx();eo(o,()=>Ae({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"vk-logo-icon",role:"img"},i));var r=T(o);si(r,()=>{var a;return(a=e.children)!=null?a:ht}),vi(),w(o),_(t,o)}var Vx=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 Dm(t,e){let i=Mn(e,["$$slots","$$events","$$legacy","children"]);var o=Vx();eo(o,()=>Ae({xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"var(--btn-color, #fff)","fill-rule":"evenodd","aria-hidden":"true","clip-rule":"evenodd",viewBox:"0 0 95 24",role:"img"},i));var r=T(o);si(r,()=>{var a;return(a=e.children)!=null?a:ht}),vi(6),w(o),_(t,o)}var Rx={hash:"s-28",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 Bm(t,e){F(e,!0),q(t,Rx);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=v(()=>!o()&&!i()?91:i()?l:95),s=v(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?a:"vk-video-logo-icon"),u=v(()=>`0 0 ${n(d)} 24`);Dm(t,{get width(){return n(d)},height:"24",get viewBox(){return n(u)},get"data-testid"(){return n(s)},get"data-logo"(){return r()}}),H()}function bc(t,e){F(e,!0);let[i,o]=Re(),r=()=>x(b,"$isMobile",i),a=()=>x(f,"$currentGridType$",i),l=()=>x($,"$isCyrillicRelatedInterface$",i),d=g(e,"ref",15,void 0),s=g(e,"logoClickable",3,!1),u=g(e,"targetUrl",3,""),p=Rt(),m=me(),f=m.ui.currentGridType$,b=m.ui.isMobile,y=m.ui.t,$=m.isCyrillicRelatedInterface$,S=v(()=>p.logoType!=="vk"),C=v(()=>n(S)?y("tooltip_vk_video_logo"):y("tooltip_vk_logo")),I=v(()=>(r()&&Vs(a(),"m")||Vs(a(),"l"))&&n(S)),R=()=>{var O,D;e.click(),(O=m.callbacks)!=null&&O.onLogoClicked?(D=m.callbacks)==null||D.onLogoClicked():u()&&window.open(u(),"_blank")},E=v(()=>!s()),A=v(()=>n(S)?"btn-vk-video-logo":"btn-vk-logo");Wt(t,{className:"btn-full-opacity",get disabled(){return n(E)},click:R,get testId(){return n(A)},get ariaLabel(){return n(C)},get ref(){return d()},set ref(O){d(O)},children:(O,D)=>{var U=Le(),z=de(U);{var G=X=>{Bm(X,{get logo(){return p.logoType},get short(){return n(I)},get isCyrillic(){return l()}})},le=X=>{Om(X,{})};V(z,X=>{n(S)?X(G):X(le,!1)})}_(O,U)},$$slots:{default:!0}}),H(),o()}var xb=require("@vkontakte/videoplayer-core/es2015");var Fm=require("@vkontakte/videoplayer-core/es2015");var Nx=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-z"></path><path d="M3.6 9.7a8.7 8.7 0 0 1 8.68 9.37.9.9 0 0 1-1.8-.14c.02-.17.02-.35.02-.53a6.9 6.9 0 0 0-7.43-6.88.9.9 0 0 1-.14-1.8l.67-.02ZM3.6 16.9a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3Z" class="s-z"></path><path d="M16.24 4.1c.8 0 1.47 0 2 .04a4 4 0 0 1 1.53.38 3.9 3.9 0 0 1 1.7 1.71 4 4 0 0 1 .39 1.53c.04.53.04 1.2.04 2v4.48c0 .8 0 1.47-.04 2a4 4 0 0 1-.38 1.53 3.9 3.9 0 0 1-1.7 1.7 4 4 0 0 1-1.54.39c-.53.04-1.2.04-2 .04H15a.9.9 0 0 1 0-1.8h1.2c.85 0 1.44 0 1.9-.04.44-.03.68-.1.85-.19.4-.2.72-.52.92-.92.09-.17.16-.4.2-.85.03-.46.03-1.05.03-1.9V9.8c0-.85 0-1.44-.04-1.9-.03-.44-.1-.68-.19-.85a2.1 2.1 0 0 0-.92-.92 2.25 2.25 0 0 0-.85-.2 25.9 25.9 0 0 0-1.9-.03H5.83a2.1 2.1 0 0 0-1.81 1.4.9.9 0 1 1-1.7-.6A3.9 3.9 0 0 1 6 4.1h10.24Z" class="s-z"></path>',1),Ox=Ee('<path d="M1 18v3h3c0-1.66-1.34-3-3-3z"></path><path d="M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z"></path><path d="M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z"></path><path d="M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" class="s-z"></path><path d="M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z"></path>',1),Dx={hash:"s-z",code:".animated.s-z{animation-duration:1s;animation-iteration-count:infinite}.wave1.animated.s-z{animation-name:s-z-wave1}.wave2.animated.s-z{animation-name:s-z-wave2}.wave3.animated.s-z{animation-name:s-z-wave3}@keyframes s-z-wave1{0%{opacity:.3}33%{opacity:1}66%{opacity:1}to{opacity:1}}@keyframes s-z-wave2{0%{opacity:.3}33%{opacity:.3}66%{opacity:1}to{opacity:1}}@keyframes s-z-wave3{0%{opacity:.3}33%{opacity:.3}66%{opacity:.3}to{opacity:1}}"};function $c(t,e){F(e,!0),q(t,Dx);let i=g(e,"isMobile",3,!1),o=v(()=>e.iconState===Fm.ChromecastState.CONNECTED),r=v(()=>e.iconState===Fm.ChromecastState.CONNECTING),a=v(()=>n(o)?"#2688EB":ta),l=v(()=>e.size?gn(e.size):void 0);var d=Le(),s=de(d);{var u=m=>{Je(m,{get fill(){return n(a)},get style(){return n(l)},testId:"chromecast-mobile-icon",children:(f,b)=>{var y=Nx();vi(2),_(f,y)},$$slots:{default:!0}})},p=m=>{Je(m,{get style(){return n(l)},testId:"chromecast-icon",children:(f,b)=>{var y=Ox(),$=de(y);let S;var C=k($);let I;var R=k(C);let E;var A=k(R,2);let O;B((D,U,z,G)=>{S=se($,0,"wave1 s-z",null,S,D),I=se(C,0,"wave2 s-z",null,I,U),E=se(R,0,"wave3 s-z",null,E,z),O=se(A,0,"s-z",null,O,G)},[()=>({animated:n(r)}),()=>({animated:n(r)}),()=>({animated:n(r)}),()=>({hidden:!n(o)})]),_(f,y)},$$slots:{default:!0}})};V(s,m=>{i()?m(u):m(p,!1)})}_(t,d),H()}var wb=require("@vkontakte/videoplayer-shared/es2015");function yc(t,e){F(e,!0);let i=g(e,"ref",15,void 0),o=g(e,"isMobile",3,!1),r=g(e,"click",3,wb.noop),l=me().ui.t,d=v(()=>e.state===xb.ChromecastState.CONNECTED?l("tooltip_chromecast_on"):l("tooltip_chromecast_off"));Wt(t,{get ariaLabel(){return n(d)},get click(){return r()},testId:"btn-chromecast",get ref(){return i()},set ref(s){i(s)},children:(s,u)=>{$c(s,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),H()}var Sb=require("@vkontakte/videoplayer-shared/es2015");var Bx=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 Hm(t){Je(t,{testId:"episodes-icon",children:(e,i)=>{var o=Bx();vi(2),_(e,o)},$$slots:{default:!0}})}var dp=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var Fx=L('<span class="text mobile s-22"> </span> <div class="chevron-episodes s-22" data-testid="btn-episodes_icon"><!></div>',1),Hx=L('<span class="text s-22"> </span>'),Ux=L('<span class="text count s-22"> </span>'),zx=L("<!> <!>",1),Wx={hash:"s-22",code:".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 xc(t,e){var j,ve,ce;F(e,!0),q(t,Wx);let[i,o]=Re(),r=()=>x(y,"$currentGridType$",i),a=()=>x($,"$openedByKeyboard$",i),l=()=>x(S,"$panelOpened$",i),d=()=>x(C,"$isMobile",i),s=g(e,"position",3,0),u=g(e,"duration",3,0),p=g(e,"timeCodes",19,()=>[]),m=me(),f=(ve=(j=m.callbacks)==null?void 0:j.onEpisodeChanged)!=null?ve:Sb.noop,b=!!((ce=m.callbacks)!=null&&ce.onEpisodeClicked),y=m.ui.currentGridType$,$=m.ui.episodes.openedByKeyboard$,S=m.ui.episodes.panelOpened$,C=m.ui.isMobile,I=m.ui.t,R=K(void 0),E=re=>{var we,Z,Ne;if(!!((we=m.callbacks)!=null&&we.onEpisodeClicked)){let ue=ra(re);$.set(ue),S.set(!0),(Ne=(Z=m.callbacks)==null?void 0:Z.onEpisodeClicked)==null||Ne.call(Z,ue)}},A=K(null),O=v(()=>s()/u());De(()=>{var _e;let re=dp(n(O),u(),p());re?((_e=n(A))==null?void 0:_e.time)!==re.time&&(f(re),N(A,re,!0)):N(A,null)});let D=v(()=>{var re;return((re=n(A))==null?void 0:re.text)||""}),U=v(()=>to(r(),"xl")?"FULL":to(r(),"m")&&_b(r(),"xl")?"COUNT":"SHORT"),z=v(()=>`${I("tooltip_episodes")}: ${n(D)}`),G=(re,_e,we)=>gt(null,null,function*(){yield bo(),(re==null?void 0:re.getAttribute("aria-expanded"))==="false"&&_e&&!we&&kt(()=>{$.set(!1),re.focus()})});De(()=>{G(n(R),a(),l())});var le=Le(),X=de(le);{var oe=re=>{let _e=v(()=>d()?"px-0":""),we=v(()=>!b);Wt(re,{get className(){var Z;return`w-max btn-full-opacity btn-jc-l ${(Z=n(_e))!=null?Z:""}`},testId:"btn-episodes",click:E,get disabled(){return n(we)},get ariaExpanded(){return l()},get ariaLabel(){return n(z)},get ref(){return n(R)},set ref(Z){N(R,Z,!0)},children:(Z,Ne)=>{var ue=Le(),P=de(ue);{var Ke=Y=>{var ie=Fx(),Oe=de(ie),Be=T(Oe,!0);w(Oe);var fe=k(Oe,2),ee=T(fe);Dr(ee,{direction:"right"}),w(fe),B(()=>pe(Be,n(D))),_(Y,ie)},Ce=Y=>{var ie=zx(),Oe=de(ie);Hm(Oe,{});var Be=k(Oe,2);{var fe=Se=>{var Fe=Hx(),qe=T(Fe,!0);w(Fe),B(()=>pe(qe,n(D))),_(Se,Fe)},ee=(Se,Fe)=>{{var qe=je=>{var Te=Ux(),Me=T(Te,!0);w(Te),B(()=>pe(Me,p().length)),_(je,Te)};V(Se,je=>{n(U)==="COUNT"&&je(qe)},Fe)}};V(Be,Se=>{n(U)==="FULL"?Se(fe):Se(ee,!1)})}_(Y,ie)};V(P,Y=>{d()?Y(Ke):Y(Ce,!1)})}_(Z,ue)},$$slots:{default:!0}})};V(X,re=>{n(A)&&re(oe)})}_(t,le),H(),o()}var dv=require("@vkontakte/videoplayer-shared/es2015");var bi=require("@vkontakte/videoplayer-core/es2015"),dt=require("@vkontakte/videoplayer-shared/es2015"),hs=require("@vkontakte/videoplayer-statistics/es2015");var Ye=require("@vkontakte/videoplayer-shared/es2015"),io=require("@vkontakte/videoplayer-shared/es2015");var Kx="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",cp=class{constructor(e,i){this.adman=null;this.initialVolume=1;this.videoElement=null;this.currentAdSection=null;this.actions=null;this.adsState=null;this.playerState=null;this.events={init$:new io.Subject,loadStarted$:new io.Subject,loadEnded$:new io.Subject,loadError$:new io.Subject,ready$:new io.Subject,slotRequested$:new io.Subject,started$:new io.Subject,timeRemained$:new io.Subject,paused$:new io.Subject,resumed$:new io.Subject,ended$:new io.Subject,empty$:new io.Subject,skipped$:new io.Subject,clicked$:new io.Subject,closed$:new io.Subject,error$:new io.Subject};this.loadAdman=e=>(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[(0,Ye.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?(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[(0,Ye.now)()]}),i(),this.events.loadEnded$.next()):(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[(0,Ye.now)()]}),o())};(0,io.addScript)(Kx,e,this.loadTimeout).then(()=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[(0,Ye.now)()]}),window.AdmanHTML?(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[(0,Ye.now)()]}),i(),this.events.loadEnded$.next()):(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[(0,Ye.now)()]}),window.admanAsyncInit=a,r=window.setTimeout(a,this.initTimeout))}).catch(l=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(l)],numbers:[(0,Ye.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?(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[(0,Ye.now)()]}),i(),this.events.loadEnded$.next()):(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[(0,Ye.now)()]}),o())},l=()=>{d=!0,o()},d=!1,s=window.setTimeout(()=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[(0,Ye.now)()]}),l()},this.loadTimeout);e.addEventListener("abort",l),e.aborted&&(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[(0,Ye.now)()]}),l()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[(0,Ye.now)()]}),!d&&(window.AdmanHTML?(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[(0,Ye.now)()]}),i(),this.events.loadEnded$.next()):(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[(0,Ye.now)()]}),window.admanAsyncInit=a,r=window.setTimeout(a,this.initTimeout)))},l).finally(()=>{clearTimeout(r),clearTimeout(s),e.removeEventListener("abort",l)})});this.onAdsReady=()=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[(0,Ye.now)()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{var o;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[(0,Ye.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?he(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;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.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;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.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(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[(0,Ye.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;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.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;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.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")=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[(0,Ye.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"),Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[(0,Ye.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 gt(this,null,function*(){var R,E;if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[(0,Ye.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:p,externalApi:m}=e;this.externalApi=m;let f,b=this.playerState&&he(this.playerState.vsid);b&&(this.isVsidOriginal?f=b:f=parseInt(b,36));let{isEmbed:y,immediateOrigin:$}=(0,Ye.detectEmbed)(),S=(R=y?$:window.location.href)!=null?R:window.location.href,C=Ae(qt(Ae(qt(Ae({},s),{dl:encodeURIComponent(S),autoplay:r?1:0,player_width:i,player_height:o}),f?{request_id:f}:{}),{duration:p}),u);C=Object.fromEntries(Object.entries(C).filter(([A,O])=>(0,Ye.isNonNullable)(O)));let I={slot:d,wrapper:a,videoEl:l,videoQuality:o,params:C,browser:{mobile:!1}};try{let A=new window.AdmanHTML;if(A.onReady(this.onAdsReady),A.onStarted(this.onAdStarted),A.onPlayed(this.onAdPlayed),A.onPaused(this.onAdPaused),A.adMidrollPoint(this.onAdMidrollPoint),A.onClosed(this.onAdClosed),A.onSkipped(this.onAdSkipped),A.onClicked(this.onAdClicked),A.onTimeRemained(this.onAdTimeRemained),A.onCompleted(this.onAdCompleted),A.onError(this.onAdError),A.setDebug(!1),(E=this.externalApi)!=null&&E.videoGetAds){let O=yield this.safeExternalCall(this.externalApi.videoGetAds,C);O&&(delete I.slot,delete I.params,Object.assign(I,{json:O}))}A.init(I),this.adman=A,this.videoElement=l,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(I)}`})}catch(A){Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(A)],numbers:[(0,Ye.now)()]}),this.onAdError("could not init adman")}})}switchToVideo(e=!1){var o,r,a;if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[(0,Ye.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(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.adsState){this.log({message:"toggle play"});let i=he(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(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[(0,Ye.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(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.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(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.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(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.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(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.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,p,m,f;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[(0,Ye.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),(p=this.adman)==null||p.onCompleted(void 0),(m=this.adman)==null||m.onError(void 0),(f=this.adman)==null||f.destroy(),this.videoElement&&(0,io.clearVideoElement)(this.videoElement),this.isDestroyed=!0}safeExternalCall(e,...i){return gt(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 Tb=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 Um=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e,i){let o=[],r=e.split(this.twoLinesRegExp);for(let a of r){let l={startTime:0,endTime:0,texts:[],lang:i},d=a.split(this.oneLineRegExp);for(let s of d)if(!l.startTime&&!l.endTime){let u=new up,{startTime:p,endTime:m}=u.parse(s);l.startTime=p,l.endTime=m}else if(s.trim()!==""){let u=new zm,{texts:p}=u.parse(s);l.texts=[...l.texts,...p]}(l.startTime||l.endTime)&&l.texts.length>0&&o.push(l)}return o}},up=class{constructor(){this.timeRegExp=/(\d{2,})?:?(\d{2}):(\d{2}).(\d{2,3})/;this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(e){let i={startTime:0,endTime:0},o=this.timingRegExp.exec(e);return o&&(i.startTime=this.calcTime(o[1],o[2],o[3],o[4]),i.endTime=this.calcTime(o[6],o[7],o[8],o[9])),i}parseTime(e){let i=this.timeRegExp.exec(e);return i?this.calcTime(i[1],i[2],i[3],i[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",i="0",o="0",r="0"){let a=Number(e)*60*60,l=Number(i)*60,d=Number(o),s=+`0.${r}`;return a+l+d+s}},zm=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((p,m)=>{let f=l.indexOf(m,d);return p===-1||p>f?f:p},-1);if(u===-1){s.push(l.substring(d));break}s.push(l.substring(d,u)),d=u+1}return s}}),a=new up;for(let l of r)a.isTime(l)?i.texts.push({type:"timestamp",value:a.parseTime(l)}):i.texts.push({type:"text",value:l});return i}},Cb=Um;var fp=require("@vkontakte/videoplayer-shared/es2015"),Ya,ki,Wm=0,Km=!1,Ib="",Eb=(t,e=0,i=0)=>t<e&&t<i,pp=(t,e=0,i=0)=>t>=e&&t<=i,qx=(t,e=0,i=0)=>t>e&&t>i,Pb=(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:p})=>pp(t,u,p));let a=t>=Wm,l=t<Wm;if(Wm=t,l&&(Km=!1),(0,fp.isNonNullable)(Ya)&&pp(t,Ya.startTime,Ya.endTime)&&Ib===e.value)return Ya;if(!(0,fp.isNonNullable)(ki)&&(r!=null&&r.length)&&!Km){ki=r.find(({startTime:u,endTime:p})=>pp(t,u,p)||a&&Eb(t,u,p)),Ya=void 0,!(0,fp.isNonNullable)(ki)&&r[r.length-1].endTime<t&&(Km=!0);return}else{if(pp(t,ki==null?void 0:ki.startTime,ki==null?void 0:ki.endTime))return Ya=ki,ki=void 0,Ib=e.value,Ya;(a&&qx(t,ki==null?void 0:ki.startTime,ki==null?void 0:ki.endTime)||l&&Eb(t,ki==null?void 0:ki.startTime,ki==null?void 0:ki.endTime))&&(ki=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"},Qx={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"},wc=t=>{var e,i;return(i=(e=mp[t])!=null?e:mp[Qx[t]])!=null?i:void 0};var Ab=require("@vkontakte/videoplayer-shared/es2015"),O7=require("@vkontakte/videoplayer-statistics/es2015"),vp=class{constructor(e,i,o,r=new Ab.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 Sc=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(Sc||{});var gs=t=>t!=null?t:0,Rs=(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(gs(i==null?void 0:i.top)-gs(o==null?void 0:o.top)),left:Math.round(gs(i==null?void 0:i.left)-gs(o==null?void 0:o.left)),bottom:Math.round(gs(i==null?void 0:i.bottom)-gs(o==null?void 0:o.top)),right:Math.round(gs(i==null?void 0:i.right)-gs(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:gs(e==null?void 0:e.width),height:gs(e==null?void 0:e.height)}};var Nn="off";var id=t=>!!(Math.round(Math.abs(t)/90)%2);var kb=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:r,statAuthToken:a,isAudioDisabled:l,canDownload:d,callbacks:s,webApi:u,videoEpisodes:p,previewThumbsData:m,uiConfig:f,coreConfig:b,player:y,disabledControls:$,isInteractive:S,interactiveRanges$:C,isInteractiveTime$:I,replayInteractive:R,stopPlayer:E,hasInteractiveBranches:A,playPrevChapterDisabledTooltip:O,additionalButtons:D,additionalSettingsMenuItems:U,additionalContextMenuItems:z,playPrevVideo:G,playNextVideo:le,onVideoChanged:X,looped:oe=!1,statistics:j,saveRate:ve,internalsExposure:ce,playerView:re,playerId:_e})=>{var _g,bg,$g;let we=qt(Ae({},b),{configName:[...(_g=b.configName)!=null?_g:[],"ui"],isAudioDisabled:l,live:qt(Ae({},(bg=b.live)!=null?bg:{}),{isLiveCatchUpMode:!!r})}),Z=f,Ne=dt.TracerFactory.createRootTracer(Z.features.tracer),ue=Ne.createComponentTracer("Store"),P=y||new bi.Player(we,Ne,{playerId:_e});ce==null||ce.expose({corePlayer:P});let Ke=new dt.Logger,Ce=new cp(Ke,{loadTimeout:Z.ads.loadTimeout,initTimeout:Z.ads.initTimeout,runtimeTimeout:Z.ads.runtimeTimeout,useAdmanFromNPM:Z.ads.useAdmanFromNPM,volumeMultiplier:Z.ads.volumeMultiplier,isVsidOriginal:Z.ads.isVsidOriginal}),Y=Ba.getInstance(),ie=u==null?void 0:u.pictureInPictureApi,Oe=u==null?void 0:u.annotationsApi,Be=u==null?void 0:u.slotsApi,fe=Ke.createComponentLog("Store"),ee,Se,Fe={},qe=new Fu,je=new dt.Subscription,Te="",Me=ae(!1),ze=j&&j.oneStat?ai(j.oneStat.vsid$):Or(void 0),Nt=ae(ia()),tt=ae(!1),Bt=()=>X_(document,bi.clientChecker.device.isIOS),Qt=($g=ie==null?void 0:ie.info.isActive$)!=null?$g:new dt.ValueSubject(!1),It=ae(0),ti=ae(!1),Ft=ae(!1),ye=ae([]),be=(0,dt.merge)(P.events.fatalError$,P.events.managedError$).subscribe(c=>ye.update(h=>[...h,c])),J=Or(!1,c=>{let h=P.events.fatalError$.subscribe(()=>c(!0));return()=>h.unsubscribe()}),xe=c=>gt(null,null,function*(){var ne;let h=Object.values(dt.InterfaceLanguage).includes(c);if(Z.downloadVKLanguages&&(h&&Z.updateBuiltinLanguages||!nm(c))){let Ie;try{Ie=yield(0,dt.loadVKLangPack)(c,d_,c_)}catch(ot){(ne=j==null?void 0:j.oneStat)==null||ne.logError({errorType:"VKLangPack",fatal:!1}),Y==null||Y.report(ot,{errorType:"VKLangPack",fatal:!1})}Ie&&(om({language:c,pack:Ie,fallback:Z.defaultLanguage}),Pe.set(c),Et.update(ot=>ot+1))}nm(c)&&Pe.set(c)}),Pe=ae(t),Et=ae(0),Ve=ae(e);xe(t);let at=(c,h)=>{let M=he(Pe);return rm(M,c,h,Z.defaultLanguage)},vt=ae("thumb");vt.subscribe(c=>{c==="ads"&&P.info.playbackState$.getValue()&&We()});let $e=(()=>{let c=_i([J,vt],([h,M])=>h?"crashed":M);return qt(Ae({},c),{is:h=>he(c)===h})})(),et=ae(),We=()=>{et.set({muted:P.info.muted$.getValue()})},rt=(()=>{let c=ae(new Set($));return qt(Ae({},c),{add:h=>{c.update(M=>new Set([...M].concat(h)))},remove:h=>{c.update(M=>{let ne=[...M];return new Set(Array.isArray(h)?ne.filter(Ie=>!h.includes(Ie)):ne.filter(Ie=>Ie!==h))})},includes:h=>{let M=he(c);return Array.isArray(h)?h.every(ne=>M.has(ne)):M.has(h)}})})(),ii=ae({width:0,height:0}),li=null,gi=P.info.isBuffering$,yi=Or(gi.getValue(),c=>{let h=gi.subscribe(M=>{M&&li===null?li=window.setTimeout(()=>{c(gi.getValue()),li=null},Z.loaderDelay):c(M)});return()=>{h.unsubscribe(),li&&clearTimeout(li)}});ue.log("create store"),fe({message:"create store"});let no=c=>{let h=c.container,M=()=>{ri=new MutationObserver(Ie=>{let{removedNodes:ot}=Ie[0];ot.length&&h.append(P.experimental.element$.getValue())}),ri.observe(h,{childList:!0})},ne=P.experimental.element$.getValue();if(ne)h.append(ne),M();else{let Ie=P.experimental.element$.pipe((0,dt.filter)(ot=>!!ot),(0,dt.once)()).subscribe(ot=>{h.append(ot),M()});je.add(Ie)}},$o=c=>{fe({message:`init video, config: ${JSON.stringify(c)}`}),S?no(c):(dt.devNull.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[(0,dt.now)()]}),P.initVideo(c)),ue.log("init video",{isInteractive:S}),c.subtitles&&P.setExternalTextTracks(c.subtitles),ee=c,Te=c.subtitlesForcedLanguage||""},fi=new dt.Subject,ft=c=>fi.next(c),Ai=new dt.Subject,Jt=new dt.Subject,Tt=new dt.Subject,ri=null,ei={actionRewind$:Ai,actionSeek$:Jt,inPiP$:Qt,inFullscreen$:new dt.Observable(c=>Nt.subscribe(h=>c.next(h))),actionSetSubtitle$:Tt,nextMovie$:fi},bt=new dt.Subject,Xe={actionSeek$:Jt,actionSubtitlesSwitched$:bt,playerSize$:new dt.Observable(c=>ii.subscribe(h=>c.next(h))),inPiP$:Qt,inFullscreen$:new dt.Observable(c=>Nt.subscribe(h=>c.next(h))),isLoaderVisible$:new dt.Observable(c=>yi.subscribe(h=>c.next(h)))};if(j){let{oneStat:c,thinOneStat:h,mediascopePixel:M,statSubscription:ne}=j;c&&(S||ne.add(c.attachTo(P)),ne.add(c.attachToUi(ei)),ne.add(c.attachToAds(Ce.events)),c.authorize(a).catch(Ie=>{fe({message:`onestat auth error ${String(Ie)}`})}),M&&M.attachTo(P)),h&&(ne.add(h.attachTo(P,Ce.events)),ne.add(h.attachToUi(Xe)),ne.add(h.attachToAds(Ce.events)),h.updateContext({isMobile:he(Me)}),h.authorize(a))}if(Y){let c=new dt.Subscription,h=(M,ne)=>c.add(M.subscribe(ne));if(h(P.events.managedError$,M=>{Y.logIError(M)}),h(P.events.fatalError$,M=>{Y.logIError(M,!0)}),j){let{oneStat:M}=j;M&&h(M.experimental.error$,ne=>{Y.logIError(ne)})}Y.sentrySubscription.add(c)}let Ti=()=>{if(bi.clientChecker.device.isIOS&&Se)try{Z_(Se)}catch(c){fe({message:`exitIosSafariFullscreen failed: ${c}`})}};je.add(P.experimental.element$.subscribe(c=>{c&&(Se=c,c.classList.add("player-media"),Ha(ie)&&ie.updateVideoElement(),S&&c.setAttribute("pip","false"),re==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(P.events.ended$.subscribe(()=>{var c;Ti(),(c=s==null?void 0:s.onEnded)==null||c.call(s)})).add(P.events.looped$.subscribe(()=>{var c;(c=s==null?void 0:s.onLooped)==null||c.call(s)})).add(P.events.started$.subscribe(()=>gt(null,null,function*(){var h,M;Ha(ie)&&(yield ie==null?void 0:ie.revealPictureInPicture());let c=P.info.muted$.getValue();(h=s==null?void 0:s.onStarted)==null||h.call(s),(M=Fe.onStarted)==null||M.call(Fe,c)}))).add(P.events.willSeek$.subscribe(({from:c,to:h})=>{var M;(M=s==null?void 0:s.onSeek)==null||M.call(s,c,h)})).add(P.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=s==null?void 0:s.onAutoplaySoundProhibited)==null||c.call(s)})).add(P.info.position$.subscribe(c=>{var M;let h=P.info.duration$.getValue();isFinite(h)&&h>0&&((M=s==null?void 0:s.onTimeupdate)==null||M.call(s,h,c),Ce.setPosition(c,h))})).add(P.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(P.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(P.events.loadedMetadata$.subscribe(()=>{ti.set(!0)})).add(P.info.is3DVideo$.subscribe(c=>{Ft.set(c)})).add(P.info.isEnded$.subscribe(c=>{S&&(c?(I!=null&&I.getValue()&&rt.add(Xd),rt.add("PLAY_BUTTON")):rt.remove("PLAY_BUTTON"))})).add(P.info.liveTime$.subscribe(c=>{var h;(h=s==null?void 0:s.onLiveTime)==null||h.call(s,c)})).add(P.info.isStalled$.subscribe(c=>{var h;(h=s==null?void 0:s.onStalledChanged)==null||h.call(s,c)})).add(P.info.isLiveEnded$.subscribe(c=>{var h;return c&&((h=s==null?void 0:s.onLiveEnded)==null?void 0:h.call(s))})).add(Ce.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(Ce.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(Ce.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(Ce.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(Ce.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(Ce.events.started$.subscribe(c=>{var h,M;return(M=(h=s==null?void 0:s.adsInfo)==null?void 0:h.onStarted)==null?void 0:M.call(h,c)})).add(Ce.events.timeRemained$.subscribe(c=>{var h,M;return(M=(h=s==null?void 0:s.adsInfo)==null?void 0:h.onTimeRemained)==null?void 0:M.call(h,c)})).add(Ce.events.ended$.subscribe(c=>{var h,M;return(M=(h=s==null?void 0:s.adsInfo)==null?void 0:h.onCompleted)==null?void 0:M.call(h,c)})).add(Ce.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(Ce.events.clicked$.subscribe(c=>{var h,M;return(M=(h=s==null?void 0:s.adsInfo)==null?void 0:h.onClicked)==null?void 0:M.call(h,c)})).add(Ce.events.closed$.subscribe(c=>{var h,M;return(M=(h=s==null?void 0:s.adsInfo)==null?void 0:h.onClosed)==null?void 0:M.call(h,c)})).add(Ce.events.error$.subscribe(c=>{var h,M;return(M=(h=s==null?void 0:s.adsInfo)==null?void 0:h.onError)==null?void 0:M.call(h,c)})).add(Ce.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(Ce.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 ro=new dt.Subscription,tn=()=>{var ot,Lt,Ut;let{debugLog:c}=Z,h,M="#9df7b7",ne="#efd169";if(c&&c!==!0){let{colors:Yt}=c;h=c.tag,M=(ot=Yt==null?void 0:Yt[0])!=null?ot:M,ne=(Ut=(Lt=Yt==null?void 0:Yt[1])!=null?Lt:Yt==null?void 0:Yt[0])!=null?Ut:ne}let Ie=h?`: ${h}`:"";ro.add(P.events.log$.subscribe(Yt=>{console.debug(`%c sdk${Ie} `,`background:${M};`,`sdk component: ${Yt.component}`,Yt.message)})).add(Ke.log$.subscribe(Yt=>{console.debug(`%c ui${Ie} `,`background:${ne};`,`ui component: ${Yt.component}.`,Yt.message)}))},_n=()=>{ro.unsubscribe()},Pt=(c,h)=>{ue.log("start camera manual rotation",{mx:c,my:h}),P.startCameraManualRotation(c,h)},Ht=(c=!1)=>{ue.log("stop camera manual rotation",{immediate:c}),P.stopCameraManualRotation(c)},W=(c,h,M)=>{ue.log("move camera focus px",{xpx:c,ypx:h,dt:M}),P.moveCameraFocusPX(c,h,M)},Mt=()=>{P.holdCamera()},di=()=>{P.releaseCamera()},ct=Or(P.info.position$.getValue(),c=>{let h,M,ne=()=>{let Ie=P.info.playbackState$.getValue(),ot=P.info.isLive$.getValue(),Lt=P.info.duration$.getValue(),Ut=P.info.position$.getValue();if(Ie&&[bi.PlaybackState.PLAYING,bi.PlaybackState.PAUSED].includes(Ie)){let Yt=ot?Ut-Lt:P.getExactTime();Yt!==M&&c(Yt),M=Yt}h=requestAnimationFrame(ne)};return ne(),()=>cancelAnimationFrame(h)}),Ct=ai(P.info.playbackState$),Zt=ai(P.info.isBuffering$),ut=_i([Ct,Zt],([c,h])=>h?"buffering":c),Bi=ai(P.info.currentBuffer$),Fi=ai(P.info.isEnded$),Bo=ai(P.info.isLive$),Eo=Z.features.playbackRate?ai(P.info.canChangePlaybackSpeed$):Or(!1),yo=ai(P.info.liveBufferTime$),ji=ai(P.info.volume$),Fr=ai(P.info.muted$),so=Hu(P.info.predefinedQualityLimitType$.pipe((0,dt.map)(c=>c===bi.PredefinedQualityLimits.TRAFFIC_SAVING)),P.info.predefinedQualityLimitType$.getValue()===bi.PredefinedQualityLimits.TRAFFIC_SAVING),ao=Hu(P.info.predefinedQualityLimitType$.pipe((0,dt.map)(c=>c===bi.PredefinedQualityLimits.HIGH_QUALITY)),P.info.predefinedQualityLimitType$.getValue()===bi.PredefinedQualityLimits.HIGH_QUALITY),Li=ai(P.info.autoQualityLimitingAvailable$),bn=ai(P.info.availableQualities$),on=ai(P.info.availableQualitiesFps$),er=ai(P.info.chromecastState$),xr=ai(P.info.chromecastDeviceName$),wr=ai(P.info.currentFormat$),bs=ai(P.info.throughputEstimation$),$s=ai(P.info.videoBitrate$),os=ai(P.info.intrinsicVideoSize$),On=ai(P.info.duration$),Hr=ai(P.info.isAudioAvailable$),$n=()=>{li&&clearTimeout(li),li=null},xo=_i([On,Bo],([c,h])=>h?-c:c),Dn=_i([Ct],([c])=>c===bi.PlaybackState.PLAYING),Bn=ai(P.info.atLiveEdge$),Sr=ai(P.info.atLiveDurationEdge$),tr=ai(P.info.position$),ns=_i([tr,On],([c,h])=>isFinite(c)&&isFinite(h)&&!!h),Ur=_i([er],([c])=>c===bi.ChromecastState.CONNECTED),lo=ai(P.info.availableVideoStreams$),Tr=Z.features.audioLanguages?ai(P.info.availableAudioStreams$):Or([]),ir=ai(P.info.currentVideoStream$),yn=ai(P.info.currentAudioStream$),wo=c=>{c.language&&Jf(c.language),P.setVideoStream(c)},Cr=(c,h)=>{P.setAudioStream(c),an(h)&&(c.language&&Jf(c.language),Z.features.userVideoPrefs&&i&&im(Z.userSalt,String(i),{audioTrackId:c.id}))},Fn=c=>{let h;if(c.length===1&&(h=c.at(0)),h!=null||(h=c.find(ne=>"isDefault"in ne&&ne.isDefault)),Z.features.userVideoPrefs&&i){let ne=qu(Z.userSalt,String(i));if(ne!=null&&ne.audioTrackId){let Ie=c.find(ot=>ot.id===ne.audioTrackId);h=Ie!=null?Ie:h}}let M=N_();return M&&(h!=null||(h=c.find(({language:ne})=>M===ne))),h!=null||(h=c.at(0)),h},$t=c=>{ue.log("change audio stream",{id:c});let h=P.info.availableAudioStreams$.getValue().find(M=>M.id===c);h&&Cr(h,!0)},ci=!1;je.add(P.info.availableAudioStreams$.subscribe(c=>{if(!ci&&c.length){let h=Fn(c);h&&(P.setAudioStream(h),ci=!0)}})),Tr.subscribe(c=>{var h;(h=s==null?void 0:s.onAvailableAudioStreamsChanged)==null||h.call(s,c.map(({label:M="",id:ne="",language:Ie=""})=>({label:M,language:Ie,id:ne})))}),yn.subscribe(c=>{var h;return c&&((h=s==null?void 0:s.onAudioStreamChanged)==null?void 0:h.call(s,c.id))});let Ir=!1;je.add(P.info.availableVideoStreams$.subscribe(c=>{if(!Ir&&c.length){let h=Fn(c);h&&(P.setVideoStream(h),Ir=!0)}}));let xn=ae(void 0),Er=ai(P.info.isAutoQualityEnabled$,c=>c&&xn.set(void 0)),Hn=ai(P.info.currentQuality$,()=>xn.set(void 0)),or=_i([xn,Hn],([c,h])=>c!=null?c:h),nn=_i(wr,c=>c!==bi.VideoFormat.MPEG),Un=_i([bn,on,Er,or,nn],([c,h,M,ne,Ie])=>{let ot=[];Ie&&ot.push({value:"auto",displayValue:at("auto_quality_option"),selected:M});let Lt=c.filter(Ut=>!(0,dt.isInvariantQuality)(Ut));for(let Ut of Lt){let Yt=h[Ut];ot.push({value:Ut,displayValue:`${Ut}${Yt?Tb(Yt):""}`,selected:M?!1:Ut===ne})}return ot}),rn=ai(P.info.currentPlaybackRate$),zn=_i([rn,Bn,Sr],([c,h,M])=>{let ne=M||S?1:Z.controls.playbackRateMin,Ie=h?1:Z.controls.playbackRateMax,ot=Z.controls.playbackRateStep,Lt=[];for(let Ut=ne;Ut<=Ie;Ut+=ot)Lt.push({value:Ut,displayValue:Ut===1?at("playback_rate_1"):at("playback_rate",{multiplier:Ut.toString(10)}),selected:c===Ut});return Lt}),Po=()=>({displayValue:at("subtitles_off"),value:Nn,language:""}),sn=ae(Po()),So=_i([sn,Et],([c],h)=>{c.value===Nn?h(Po()):h(c)}),nr=Z.features.subtitles?ai(P.info.availableTextTracks$):Or([]),Xi=T_(),rr=_i([nr,So],([c,h],M)=>{var ot;let ne=[],Ie=c.find(({id:Lt})=>Lt===h.value);if(Ie!=null&&Ie.url){let[,Lt]=(ot=Xi.find(Ie.url))!=null?ot:[];if(Lt){M(Lt);return}qe.download(Ie.url).then(Ut=>{if(!Ut||qe.isDestroyed())return;let Yt=new Cb,Ks=Ie.language;if(Ks){let k$=!!Ie.isAuto,L$=Yt.parse(Ut,Ks);ne.push({lang:Ks,subtitles:L$,isAuto:k$,id:Ie.id})}Xi.add(Ie.url,ne),he(So).value===h.value&&M(ne)}).catch(Ut=>{var Yt;(Yt=j==null?void 0:j.oneStat)==null||Yt.logError({errorType:"Subtitles download",fatal:!1}),Y==null||Y.report(Ut,{errorType:"Subtitles download",fatal:!1})})}M(ne)}),sr=_i([rn,Dn,So],([c,h,M],ne)=>{let Lt;if(P.info.isLive$.getValue()&&h&&M.value!==Nn){let Yt=()=>{let Ks=1e3/(3*c);Lt=setTimeout(Yt,Ks),ne(Date.now())};return Yt(),()=>clearTimeout(Lt)}}),Pr=_i([nr,So],([c,h])=>{if(!c.length)return[];let M=[];for(let{language:ne,isAuto:Ie,id:ot}of c){let Lt=ne&&wc(ne);ne&&Lt&&M.push({displayValue:Ie?at("subtitles_auto",{language:Lt}):Lt,value:ot,selected:(h==null?void 0:h.value)===ot,isAuto:Ie,language:ne})}return M.length?(M.unshift(qt(Ae({},Po()),{selected:(h==null?void 0:h.value)===Nn})),M):[]}),Fo={available:[],prev:[]},Wn=()=>{var h,M;let c=P.experimental.getCurrentTime$.getValue();return(M=(h=c==null?void 0:c())!=null?h:Se==null?void 0:Se.currentTime)!=null?M:0},zr=_i([ct,So,rr,sr],([c,h,M,ne])=>{var ot;let Ie=P.info.isLive$.getValue();if(Ie&&Fo.prev!==M){let Lt=M.find(({id:Yt})=>Yt===h.value),Ut=Fo.prev.find(({id:Yt})=>Yt===h.value);if(Lt){let Yt=qt(Ae({},Lt),{subtitles:[...(ot=Ut==null?void 0:Ut.subtitles)!=null?ot:[],...Lt.subtitles]});Fo.available=[Yt],Fo.prev=M}}if(h&&h.value!==Nn){let Lt=Ie?Wn():c,Ut=Ie?Fo.available:M;return Pb(Lt,h,Ut,Ie)}}),wt=_i([zr],([c])=>c!=null&&c.texts?c.texts:[]);je.add(So.subscribe(c=>{var h,M;if(c.value===Nn)(h=s==null?void 0:s.onSubtitleOff)==null||h.call(s);else{let ne=Object.entries(mp).find(([Ie,ot])=>ot===c.displayValue);(M=s==null?void 0:s.onSubtitleOn)==null||M.call(s,ne?ne[0]:"",c.value)}}));let At=ae(!0),co=_i([Bi,xo,tr,yo],([c,h,M,ne])=>{var Ut;let Ie=(Ut=c==null?void 0:c.end)!=null?Ut:0;if(!ne)return Ie/h;let Lt=-M+ne-h;return(Ie-Lt)/h}),Hi=ai(P.info.availableSources$),Ui=_i([Hi],([c])=>Object.keys((c==null?void 0:c[bi.VideoFormat.MPEG])||{}).length>0),wn=()=>{var M,ne,Ie;let c=Object.keys(((ne=(M=P.info.availableSources$)==null?void 0:M.getValue())==null?void 0:ne[bi.VideoFormat.MPEG])||{}),h=(0,dt.getHighestQuality)(c)||dt.VideoQuality.Q_144P;return(Ie=ee.sources[bi.VideoFormat.MPEG])==null?void 0:Ie[h]},To=()=>{var h;let c=wn();if(c)ue.log("download video",{url:c}),x_(c,((h=ee==null?void 0:ee.meta)==null?void 0:h.title)||"video");else{let M="There is no URL for download video";ue.log("download video",{message:M}),fe({message:M})}},Kn=()=>{fe({message:"toggle muted"});let c=P.info.muted$.getValue();P.info.volume$.getValue()===0&&!c?lr(Ar(),!1):Ao(!c,!1)},mi=()=>{var c;if(Kt.ui.settingsMenu.visible$.set(!1),!he(Kt.ui.settingsSubMenu.visible$)){let h=he(Kt.ui.settingsMenu.ref$);if((c=s==null?void 0:s.uiInfo)!=null&&c.onSettingsMenu&&h){let ne=td(h),Ie={top:0,left:0,bottom:0,right:0};s.uiInfo.onSettingsMenu({visible:!1,size:ne,position:Ie,name:"settings"})}}ue.log("close settings menu")},Wr=(c,h=()=>Promise.resolve())=>gt(null,null,function*(){var Ie;Kt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),Kt.ui.settingsMenu.visible$.set(!0),yield h();let M=he(Kt.ui.settingsMenu.ref$),ne=ha();if((Ie=s==null?void 0:s.uiInfo)!=null&&Ie.onSettingsMenu&&M&&ne){let Lt=td(M),Ut=Rs(M,ne);s.uiInfo.onSettingsMenu({visible:!0,size:Lt,position:Ut,name:"settings"})}ue.log("open settings menu",{wasOpenedByKeyboard:c})}),ar=(c,h=!1)=>{var ot;Kt.ui.settingsSubMenu.visible$.set(!1);let M=he(Kt.ui.settingsMenu.ref$),ne=ha(),Ie=he(Kt.ui.settingsMenu.visible$);if((ot=s==null?void 0:s.uiInfo)!=null&&ot.onSettingsMenu&&M&&ne)if(Ie&&!h){let Ut=td(M),Yt=Rs(M,ne);s.uiInfo.onSettingsMenu({visible:!0,size:Ut,position:Yt,name:"settings"})}else{let Ut=td(c),Yt={top:0,left:0,bottom:0,right:0},Ks=he(Kt.ui.settingsSubMenu.name$);s.uiInfo.onSettingsMenu({visible:!1,size:Ut,position:Yt,name:Ks})}ue.log("close settings sub menu")},rs=(c,h)=>{var ne;Kt.ui.settingsSubMenu.visible$.set(!0),Kt.ui.settingsSubMenu.ref$.set(h),Kt.ui.settingsSubMenu.name$.set(c);let M=ha();if((ne=s==null?void 0:s.uiInfo)!=null&&ne.onSettingsMenu&&h&&M){let ot=td(h),Lt=Rs(h,M);s.uiInfo.onSettingsMenu({visible:!0,name:c,size:ot,position:Lt})}ue.log("open settings sub menu",{name:c})},Ar=()=>{var h;let c=Math.max(Z.volumeMinRestore,(h=Uu())!=null?h:0);return c===0?Z.volumeDefault:c},an=c=>{let h=Z.features.savePreferredStatesOnUserActionOnly;return!h||h&&!c},lr=(c,h)=>{let M=c===0?Ar():c,ne=P.info.muted$.getValue();fe({message:`set volume, volume: ${c}, preferredVolume: ${M}`});let Ie=!l||$e.is("ads");ne&&c>0&&Ie&&(ne=!1,an(h)&&Xf(!1)),P.setVolume(c,ne),Ce.setVolume(c),an(h)&&qf(M)},Ao=(c,h)=>{let M=P.info.volume$.getValue();fe({message:`set muted, currentVolume: ${M}, mute: ${c}`});let ne=$e.is("ads");if(P.setMuted(c,ne),Ce.setVolume(c?0:M),an(h)&&(!ne||!c)&&Xf(c),!c&&M===0){let Ie=Ar();P.setVolume(Ie),an(h)&&qf(Ie),Ce.setVolume(Ie)}},Ho=ae(!1),kr=c=>{var h,M;ue.log("set looped",{isLooped:c}),Ho.set(c),P.setLooped(c),(M=(h=s==null?void 0:s.uiInfo)==null?void 0:h.onLoopedChanged)==null||M.call(h,c)};kr(oe);let ln=()=>{var c,h;(h=(c=s==null?void 0:s.uiInfo)==null?void 0:c.onReportProblem)==null||h.call(c)},ss=(c,h=!1)=>{var M;fe({message:`set autoplayNextEnabled, value: ${c}`}),ue.log("set autoplay next enabled",{autoplayNextEnabled:c}),Kt.ui.autoplayNextEnabled$.set(c),B_(c),h&&((M=s==null?void 0:s.onSetAutoplayNextEnabled)==null||M.call(s,c))},Qe=c=>{fe({message:`set timerNextVideoRunning, value: ${c}`}),ue.log("set timer next video running",{timerNextVideoRunning:c}),Kt.ui.timerNextVideoRunning$.set(c)},Vt=(c=!0)=>{var M;let h=!0;if(c&&(s!=null&&s.onPrevVideoClick))try{h=(M=s==null?void 0:s.onPrevVideoClick)==null?void 0:M.call(s)}catch(ne){fe({message:"onPrevVideoClick callback failed to execute"})}X(!0),h&&G()},xi=(c=!0)=>{var M;let h=!0;if(c&&(s!=null&&s.onNextVideoClick))try{h=(M=s==null?void 0:s.onNextVideoClick)==null?void 0:M.call(s)}catch(ne){fe({message:"onNextVideoClick callback failed to execute"})}X(!1),h&&le()},ko=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementShow)==null||c.call(s)},Lo=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementClick)==null||c.call(s)},Uo=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementAuto)==null||c.call(s)},uo=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementCancel)==null||c.call(s)},Zi=()=>{P.prepare()},Sn=()=>{(0,dt.assertNonNullable)(Kt);let c=he(Kt.ui.controls.disabledControls$),h=he(Kt.playerPhase),M={playerPhase:h,isInteractive:S,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(fe({message:"toggle play"}),h==="ads"){M.action="play",ue.log("toggle adman play",M),Ce.togglePlay();return}let ne=()=>{var ot;fe({message:"toggle play, call player.play"}),M.action="play",P.play(),(ot=s==null?void 0:s.onPlay)==null||ot.call(s)},Ie=()=>{var ot;fe({message:"toggle play, call player.pause"}),M.action="pause",P.pause(),(ot=s==null?void 0:s.onPause)==null||ot.call(s)};if(P.info.isEnded$.getValue()){if(fe({message:"toggle play, video ended, seek to 0"}),Ai.next(),Jt.next(hs.SeekAction.REWIND),S){R==null||R();return}P.seekTime(0),ne()}else P.info.playbackState$.getValue()!==bi.PlaybackState.PLAYING?ne():Ie();ue.log("toggle play",M)},zo=(c,{changeReason:h="default",appliesTo:M="to-video"}={},ne)=>{fe({message:`set quality, quality: ${c}`}),ue.log("set quality",{quality:c}),P.setAutoQuality(c==="auto");let{qualityDetailsSubMenuEnabled:Ie}=Z.features;zu(),c!=="auto"?(Ie?(Wu({type:"exact_quality",quality:c,videoId:i},M),P.setPredefinedQualityLimits(bi.PredefinedQualityLimits.UNKNOWN)):Qf(i,c),xn.set(c),P.setQuality(c)):Ie&&h==="default"&&(cr("auto_quality",M,ne),he(so)&&po(!1,void 0,ne),he(ao)&&Mo(!1,void 0,ne))},po=(c,h="as-default",M)=>{fe({message:`set trafficSavingEnabled, value: ${c}`}),ue.log("set traffic saving enabled",{trafficSavingEnabled:c});let ne=c?bi.PredefinedQualityLimits.TRAFFIC_SAVING:bi.PredefinedQualityLimits.UNKNOWN;Z.features.qualityDetailsSubMenuEnabled?(dr(ne,h,M),Jd(!1)):(P.setPredefinedQualityLimits(ne),an(M)&&Jd(c))},Mo=(c,h="as-default",M)=>{fe({message:`set highQualityEnabled, value: ${c}`}),ue.log("set high quality enabled",{highQualityEnabled:c}),dr(c?bi.PredefinedQualityLimits.HIGH_QUALITY:bi.PredefinedQualityLimits.UNKNOWN,h,M)},dr=(c,h,M)=>{c!==bi.PredefinedQualityLimits.UNKNOWN&&(he(Li)&&!he(Er)&&zo("auto",{appliesTo:h,changeReason:"limit-changed"},M),cr(c,h,M)),P.setPredefinedQualityLimits(c)},cr=(c,h,M)=>{an(M)&&(Wu({type:c,videoId:i},h),h==="as-default"&&Wu({type:c,videoId:i},"to-video"))},dn=(c,h=!0)=>{ue.log("set playback rate",{playbackRate:c}),P.setPlaybackRate(c),Z.features.saveRate&&ve&&!P.info.isLive$.getValue()&&h&&O_(c)},as=()=>{let c=he(zn),h=c.findIndex(({selected:ne})=>ne);if(h===c.length-1)return;let M=c[h+1];dn(M.value)},ys=()=>{let c=he(zn),h=c.findIndex(({selected:ne})=>ne);if(h===0)return;let M=c[h-1];dn(M.value)},Lr=(c=qt(Ae({},Po()),{selected:!1}),h)=>{ue.log("set subtitles",Ae({},c)),c.value!==Nn&&Tt.next(c.isAuto?c.value+"_auto":c.value),bt.next({enabled:c.value!==Nn,lang:c.language,auto:!!c.isAuto}),sn.set(c),an(h)&&(tm(c.value===Nn?void 0:c.language),Z.features.userVideoPrefs&&i&&im(Z.userSalt,String(i),{subtitleTrackId:c.value===Nn?void 0:c.value}))},Ze=c=>{ue.log("toggle subtitles");let h=he(So);(h==null?void 0:h.value)===Nn?Ii(c):Wo(c)},Gt=(c,h)=>{ue.log("change subtitle",{enabled:c}),c?Ii(!0,h):Wo(!0)},Ii=(c,h)=>{ue.log("subtitle on");let M=he(Pr),ne=he(Pe),Ie=Te!=null?Te:ne,ot;h&&(ot=M.find(Lt=>Lt.value===h)),ot!=null||(ot=M.filter(Lt=>Lt.value!==Nn).find(Lt=>Lt.language===Ie)),Lr(ot!=null?ot:M[1],c)},Wo=c=>{ue.log("subtitle off"),Lr(void 0,c)};je.add(P.info.availableTextTracks$.subscribe(c=>{var M;function h(){let ne=[];for(let{language:Ie,isAuto:ot,id:Lt}of c){let Ut=Ie&&wc(Ie);Ie&&Ut&&ne.push({id:Lt,language:Ie,title:ot?at("subtitles_auto",{language:Ut}):Ut})}return ne}(M=s==null?void 0:s.onAvailableSubtitlesChanged)==null||M.call(s,h())}));let cn=ae(!0),ur=c=>{cn.set(c)},fo=(c,h,M=!0)=>{var ne;if(fe({message:`seek to time, time: ${c}`}),ue.log("seek to time",{time:c,action:h,forcePrecise:M}),Jt.next(h),P.info.isLive$.getValue()){let Ie=P.info.duration$.getValue(),ot=Math.min(0,Ie+c);P.seekTime(ot,M)}else{if(I!=null&&I.getValue())return;P.info.isEnded$.getValue()&&(fe({message:"seek after ended, call callbacks.onPlay"}),(ne=s==null?void 0:s.onPlay)==null||ne.call(s)),P.seekTime(vg(c),M)}},Mr=c=>{fe({message:`seek to episode start time: ${c}`}),ue.log("seek to episode start time",{time:c}),fo(c,hs.SeekAction.EPISODE,!0)},xs=(c,h,M=!1)=>{fe({message:`seek to percent, percent: ${c}`}),ue.log("seek to percent",{percent:c,action:h});let ne=he(xo)*c;fo(ne,h,M)},Tn=c=>{fe({message:`seek external, time: ${c}`}),ue.log("seek external",{time:c}),Jt.next(hs.SeekAction.UNKNOWN),P.seekTime(P.info.isLive$.getValue()?-c:c)},Hs=c=>{var ne,Ie;let h=(ne=c.max)!=null?ne:"none",M=(Ie=c.min)!=null?Ie:"none";fe({message:`set auto quality limitation. Max: ${h}. Min: ${M}`}),ue.log("set auto quality limits",{max:h,min:M}),P.setAutoQualityLimits(c)},pa=c=>{fe({message:`seek external to episode start time: ${c}`}),ue.log("seek external to episode start time",{time:c}),fo(c,hs.SeekAction.EPISODE,!0)},fa=c=>{fe({message:`set playback rate to: ${c}`}),ue.log("set playback rate external",{playbackRate:c}),P.setPlaybackRate(c)},lt=ae(!1),oi=ae(!1),Ko=_i([xo],([c])=>!!m&&c>=Z.suitableDurationForUsingRichSeek&&Z.features.useRichSeek&&!S),ge=((m==null?void 0:m.frameWidth)||0)>=((m==null?void 0:m.frameHeight)||0),St=_i([It],([c])=>{let h=id(c);return ge?!h:h});je.add($e.subscribe(c=>{c!=="video"&<.set(!1)}));let jt=ae(void 0),wi=ae(!1),mo=c=>{fe({message:`start scrubbing, progress: ${c}`}),ue.log("start scrubbing",{progress:c}),wi.set(!0),ui(c)},ui=c=>{jt.set(c)},ni,vo,un=()=>{jt.set(void 0),wi.set(!1)},pn=()=>{clearTimeout(vo),clearTimeout(ni),ni=window.setTimeout(()=>{un()},500),Se==null||Se.removeEventListener("seeked",pn)},zi=(c,h=!1)=>{fe({message:`complete scrubbing, progress: ${c}`}),ue.log("complete scrubbing",{progress:c}),xs(c,hs.SeekAction.SLIDER,h),he(Kt.ui.isMobile)&&he(Kt.state.currentFormat$)===bi.VideoFormat.HLS?(Se==null||Se.addEventListener("seeked",pn),vo=window.setTimeout(()=>{pn()},300)):un()},hd=_i([ct,xo,jt],([c,h,M],ne)=>{ne((0,dt.isNonNullable)(M)?M*h:c)}),Us=ae(!1),cl=()=>{Us.set(!0)},ul=()=>{Us.set(!1)},zs=_i([ii],([{width:c}],h)=>{let M=bb(c);h(M)}),Kr=D.filter(c=>w_(c)),ma=_i([zs,Me],([c,h])=>h?Kr.filter(M=>!M.hideOnMobile):Kr.filter(M=>{var ne;return!((ne=M.hideOnDesktopGridTypes)!=null&&ne.includes(c))})),pr=ae(D.filter(c=>S_(c))),_d=_i([pr,zs],([c,h])=>c.filter(M=>{var ne;return!((ne=M.hideOnDesktopGridTypes)!=null&&ne.includes(h))})),ls=_i([_d,ma],([c,h])=>[...Z.features.additionalButtonsDesktopControlPanelRight?c.filter(M=>M.type==="desktop-control-panel-right"):[],...Z.features.additionalButtons?h.map((M,ne)=>{var Ie;return{id:ne,weight:ne,type:"desktop-control-panel-right",testId:M.testId,icon:M.iconUrl,onClick:M.onClick,ariaLabel:(Ie=M.ariaLabel)!=null?Ie:M.tooltip,tooltipText:M.tooltip}}):[]].filter(M=>!f.disabledAdditionalButtonIds.includes(M.id))),qn=ae(U),va=_i([qn],([c])=>Z.features.additionalSettingsMenuItems?c.map(h=>h.type==="SWITCH"?qt(Ae({},h),{onClick:h.onChangeEnabled}):h):[]),pl=(c,h)=>{let M=he(pr).map(ne=>ne.id!==c?ne:Ae(Ae({},ne),h));pr.set(M)},fl=c=>{let h=he(pr);if(h.some(M=>M.id===c.id)){fe({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}h.push(c),pr.set(h)},bd=c=>{let h=he(pr);if(!h.some(M=>M.id===c)){fe({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}h=h.filter(M=>M.id!==c),pr.set(h)},ml=c=>{Jt.next(hs.SeekAction.LIVE),fe({message:"live switch to low latency "+c}),ue.log("live switch to low latency "+c),P.setLiveLowLatency(c)},vl=(c,h)=>{let M=he(qn).map(ne=>ne.id!==c?ne:Ae(Ae({},ne),h));qn.set(M)},gl=c=>{let h=he(qn);if(h.some(M=>M.id===c.id)){fe({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}h.push(c),qn.set(h)},$d=c=>{let h=he(qn);if(!h.some(M=>M.id===c)){fe({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}h=h.filter(M=>M.id!==c),qn.set(h)},fr=ae(z),hl=_i([fr],([c])=>Z.features.additionalContextMenuItems?c:[]),pt=(c,h)=>{let M=he(fr).map(ne=>ne.id!==c?ne:Ae(Ae({},ne),h));fr.set(M)},mt=c=>{let h=he(fr);if(h.some(M=>M.id===c.id)){fe({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}h.push(c),fr.set(h)},Wi=c=>{let h=he(fr);if(!h.some(M=>M.id===c)){fe({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}h=h.filter(M=>M.id!==c),fr.set(h)},qo=_i([Me,J],([c,h],M)=>{M(c&&h)}),Ki=()=>{Jt.next(hs.SeekAction.LIVE),fe({message:"switch to active live"}),ue.log("switch to active live"),P.seekTime(0),P.info.playbackState$.getValue()!==bi.PlaybackState.PLAYING&&Kt.actions.internal.togglePlay()},Si=()=>{ue.log("skip adman"),Ce.skip()},Mi=(c=!0)=>{var ne;(0,dt.assertNonNullable)(Kt),fe({message:`switch from ads to video, callPlay: ${c}`}),ue.log("switch from ads to video",{callPlay:c}),vt.set("video"),c&&P.play(),l&&Ao(!0,!0);let h=(ne=he(et))==null?void 0:ne.muted,M=!P.info.muted$.getValue();h!==void 0&&!M&&Ao(h,!0),et.set(void 0)},ga=()=>{(0,dt.assertNonNullable)(Kt),fe({message:"switch from video to ads"}),ue.log("switch from video to ads"),Kt.actions.internal.pause(),Ti(),vt.set("ads")},_l=c=>{(0,dt.assertNonNullable)(Kt);let h=c?"LiveWaitingStart":"thumb";ue.log("set live waiting start",{state:c,playerPhase:h}),vt.set(h)},Up=c=>{(0,dt.assertNonNullable)(Kt);let h=c?"LiveWaitingRecover":"thumb";ue.log("set live waiting recover",{state:c,playerPhase:h}),vt.set(h)},tu=c=>{(0,dt.assertNonNullable)(Kt);let h=c?"LiveWaitingRecord":"thumb";ue.log("set live waiting record",{state:c,playerPhase:h}),vt.set(h)},iu=()=>((0,dt.assertNonNullable)(Kt),ue.log("get debug text data"),$_(P,ee,Kt,Ne.getTraceId())),ou=()=>((0,dt.assertNonNullable)(Kt),JSON.stringify(Ne.getFinishedSpans())),zp=()=>((0,dt.assertNonNullable)(Kt),y_(P,ee,Kt)),ha=()=>Se,Wp=()=>{fe({message:"toggle chromecast"}),ue.log("toggle chromecast"),P.toggleChromecast()},Ws=c=>{var M;if((0,dt.assertNonNullable)(Kt),P.info.isEnded$.getValue())return;let h=!c;if(he(Kt.playerPhase)==="ads"){fe({message:`pause ads, internalCall: ${h}`}),ue.log("pause ads",{internalCall:h}),Ce.pause();return}fe({message:`pause video, internalCall: ${h}`}),ue.log("pause video",{internalCall:h}),h&&((M=s==null?void 0:s.onPause)==null||M.call(s)),P.pause()},bl=c=>{var M;(0,dt.assertNonNullable)(Kt);let h=!c;if(he(Kt.playerPhase)==="ads"){fe({message:`play ads, internalCall: ${h}`}),ue.log("play ads",{internalCall:h}),Ce.play();return}fe({message:`play video, internalCall: ${h}`}),ue.log("play video",{internalCall:h}),h&&((M=s==null?void 0:s.onPlay)==null||M.call(s)),P.play()},nu=c=>{(0,dt.assertNonNullable)(Kt);let h=!c;if(he(Kt.playerPhase)==="ads"){fe({message:"player cannot be stopped during ads via external method"});return}fe({message:`player will be stopped, internalCall: ${h}`}),E==null||E()},ru=(c,h)=>{(0,dt.assertNonNullable)(Kt),fe({message:`first start, show ads: ${c}, internalCall: ${!h}`}),ue.log("first start",{showAds:c,external:h}),c?vt.set("ads"):(vt.set("video"),h?P.play():Kt.actions.internal.togglePlay())},yd=()=>(fe({message:"getting time codes"}),p),su=()=>{let c=yd();if(!c||[0,1].includes(c.length))return;let h=P.info.position$.getValue();return c.find(M=>M.time>h)},He=c=>{let h=c;h||(h=su());let M=P.info.position$.getValue();ue.log("seek to next episode",Ae({currentTime:M},h)),h&&(fe({message:"seek to next episode"}),fo(h.time,hs.SeekAction.EPISODE,!0))},hi=()=>{let c=yd();if(!c||[0,1].includes(c.length))return;let h=P.info.position$.getValue(),M=c.findIndex(Ie=>Ie.time>h),ne=M===-1?c.length-2:M-2;if(!(ne<0))return c[ne]},Qo=c=>{let h=c;h||(h=hi());let M=P.info.position$.getValue();ue.log("seek to prev episode",Ae({currentTime:M},h)),h&&(fe({message:"seek to prev episode"}),fo(h.time,hs.SeekAction.EPISODE,!0))},_a=()=>(fe({message:"getting preview thumbs data"}),ue.log("get preview thumbs data",Ae({},m)),m),Cn=()=>gt(null,null,function*(){let c=ie==null?void 0:ie.isActive(),h="none";ie!=null&&ie.isActive()?(h="exit",yield ie==null?void 0:ie.exit()):(h="request",yield ie==null?void 0:ie.request()),ue.log("toggle picture in picture",{isActive:c,action:h})}),x$=(c=-90)=>{ue.log("rotate video",{alphaDiff:c}),It.update(h=>h+c)},au=ae([]);C==null||C.subscribe(c=>{let h=[];for(let M=0;M<c.length;M++){let{range:[ne,Ie],subjects:ot}=c[M];M===0&&ne!==0&&h.push({time:0,text:"",interactive:!1,completed:!0}),h.push({time:ne/1e3,text:"",interactive:!0,completed:Z.features.interactiveTimeOpenUri?!ot.length||ot.every(Lt=>Lt.isRemoved):!ot.length}),Ie!==1/0&&h.push({time:Ie/1e3,text:"",interactive:!1,completed:!0})}au.set(h)});let w$=ae(!1);I==null||I.subscribe(c=>{c&&he(wi)&&un()});let vg=c=>{if(!S)return c;let h=he(au),M=he(xo),Ie=he(tr)/M,ot=h.find(Lt=>Lt.interactive&&!Lt.completed&&Lt.time>Ie);return typeof(ot==null?void 0:ot.time)=="number"?Math.min(c,ot.time-.05):c},S$=()=>{Kt.ui.episodes.panelOpened$.set(!1)},T$=()=>{ue.log("destroy store"),clearTimeout(vo),clearTimeout(ni),je.unsubscribe(),ro.unsubscribe(),P.destroy(),Ce.destroy(),j==null||j.destroy(),Y==null||Y.destroy(),be.unsubscribe(),ri==null||ri.disconnect(),ri=null,qe.destroy()},C$=_i([Bn,$e,Eo],([c,h,M])=>f.features.doubleForwardAvailable&&!c&&h==="video"&&M),Kp=ae(!1),gg=2,lu=null,hg=c=>{if(!he(Dn)&&c)return;let h=P.info.currentPlaybackRate$.getValue();c?h!==gg&&(lu=h,dn(gg,!1),Kp.set(!0)):(lu&&dn(lu,!1),Kp.set(!1),lu=null)};$e.subscribe(c=>{c!=="video"&&hg(!1)});let I$=()=>{Ws(!1),lt.set(!0)},E$=()=>{bl(!1),lt.set(!1)},qp=!1,P$=()=>{oi.set(!0),qp=P.info.playbackState$.getValue()===bi.PlaybackState.PLAYING,Ws(!1)},A$=()=>{oi.set(!1),!he(lt)&&qp&&bl(!1),qp=!1};P.events.playing$.subscribe(()=>{he(lt)&&Ws(!1)});let Kt={interfaceLanguage$:Pe,isCyrillicRelatedInterface$:Ve,initVideo:$o,videoId:i,isClip:o,playerPhase:$e,vsid:ze,state:{positionExact$:ct,positionWithScrubbing$:hd,duration$:xo,playbackState$:Ct,playbackStateRealistic$:ut,isPlaying$:Dn,isLoaderVisible:yi,bufferedProgress$:co,isLive$:Bo,canChangePlaybackSpeed$:Eo,isActiveLive$:Bn,isOldestAvailableLive$:Sr,isRewindableLive$:ns,isEnded$:Fi,muted$:Fr,volume$:ji,trafficSavingEnabled$:so,highQualityEnabled$:ao,autoQualityLimitingAvailable$:Li,availableVideoStreams$:lo,availableAudioStreams$:Tr,videoStream$:ir,audioStream$:yn,currentQuality$:or,isAutoQualityEnabled$:Er,availableQualities$:Un,currentPlaybackRate$:rn,availablePlaybackRates$:zn,currentSubtitle$:So,availableTextTracks$:nr,availableSubtitlesList$:Pr,currentSubtitleCaptions$:wt,isAutoSubtitleCaptionVisible$:At,chromecastState$:er,chromecastDeviceName$:xr,chromecastConnected$:Ur,currentFormat$:wr,throughputEstimation$:bs,videoBitrate$:$s,videoSize$:os,errorLog$:ye,crashed$:J,isAudioAvailable$:Hr,isAudioDisabled:!!l,canDownload:Z.features.download&&!!d,availableSources$:Hi,hasMpegSources$:Ui,isInteractive:S,showInteractiveGraph:Z.features.interactiveGraph,showSeekToInteractive:Z.features.seekToInteractive,showPlayPrevChapter:Z.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:Z.features.interactiveTimeIndicator&&!!he(au).length,interactiveEpisodes$:au,isInteractiveTime$:I?ai(I):ae(!1),isInteractiveExpectation$:w$,hasInteractiveBranches:A,playPrevChapterDisabledTooltip:O,looped$:Ho,loadedMetadata$:ti,isAutoQualityAvailable$:nn,previewTrackActive:lt,previewTrackDragInProgress:oi},ui:{t:at,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),fullscreen:ae(void 0),vkLogo:ae(void 0),interactiveTimeIndicator:ae(void 0),timeline:ae(void 0),autoplayNextToggle:ae(void 0),additionalButtons:D.length?D.reduce(c=>[...c,ae(void 0)],[]):[],disabledControls$:rt},modals:{hotKeyMap:{show:ae(!1),data:ae({title:"",closeBtnText:"",groups:[]})}},isFullscreen:Nt,isFullscreenOpenedByKeyboard:tt,rotateAlpha:It,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:ii,isMobile:Me,mobileNotReportControlHidden$:qo,icon3DVideoVisible:ae(!1),scrubbingInProgress:wi,volumeChangingInProgress:Us,is3DVideo:Ft,currentGridType$:zs,additionalButtonsDeprecated$:ma,additionalDesktopControlPanelRightButtons$:ls,additionalSettingsMenuItems$:va,additionalContextMenuItems$:hl,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:cn,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$:Kp,doubleForwardAvailable$:C$,previewTrackNotificationVisible:ae(!1),previewTrackActive:lt,previewTrackDragInProgress:oi,previewTrackAvailable:Ko,isPreviewTrackHorizontallyAligned:St},ads:{position:ae(0),duration:ae(0),playbackState:ae("inactive"),canSkip:ae(!1),secondsToWatchBeforeSkip:ae(0),postrollPassed:ae(!1)},webApi:{pictureInPictureApi:ie,annotationsApi:Oe,slotsApi:Be},actions:{internal:{preload:Zi,firstStart:c=>ru(c,!1),play:()=>bl(!1),pause:()=>Ws(!1),togglePlay:Sn,toggleMuted:Kn,openSettingsMenu:Wr,closeSettingsMenu:mi,openSettingsSubMenu:rs,closeSettingsSubMenu:ar,setVolume:c=>lr(c,!1),setMuted:c=>Ao(c,!1),startVolumeChanging:cl,stopVolumeChanging:ul,setVideoStream:wo,setAudioStream:c=>Cr(c,!1),setQuality:(c,h)=>zo(c,h,!1),setTrafficSavingEnabled:(c,h)=>po(c,h,!1),setHighQualityEnabled:(c,h)=>Mo(c,h,!1),setPlaybackRate:dn,incrementPlaybackRate:as,decrementPlaybackRate:ys,setSubtitle:c=>Lr(c,!1),toggleSubtitle:()=>Ze(!1),togglePictureInPicture:Cn,startScrubbing:mo,progressScrubbing:ui,completeScrubbing:zi,toggleChromecast:Wp,switchToActiveLive:Ki,switchFromAdsToVideo:Mi,switchFromVideoToAds:ga,skipAd:Si,setLiveWaitingStart:_l,setLiveWaitingRecover:Up,setLiveWaitingRecord:tu,getDebugTextData:iu,getTraceTextData:ou,getDebugPanelData:zp,getVideoElement:ha,seekTime:(c,h,M)=>fo(c,h,M),clearDelayedBufferingCheckTimeout:$n,seekEpisodeStartTime:Mr,seekToPercent:xs,getNextEpisode:su,seekToNextEpisode:He,getPrevEpisode:hi,seekToPrevEpisode:Qo,startLogging:tn,stopLogging:_n,startCameraManualRotation:Pt,stopCameraManualRotation:Ht,moveCameraFocusPX:W,holdCamera:Mt,releaseCamera:di,getVideoEpisodes:yd,getPreviewThumbsData:_a,downloadVideo:To,addLanguage:om,setLanguage:xe,nextMovie:ft,videoRotate:x$,correctSeekTimeToInteractive:vg,replayInteractive:R,setLooped:kr,reportProblem:ln,setAutoplayNextEnabled:ss,setTimerNextVideoRunning:Qe,prevVideoClick:Vt,nextVideoClick:xi,nextVideoAnnouncementShow:ko,nextVideoAnnouncementClick:Lo,nextVideoAnnouncementAuto:Uo,nextVideoAnnouncementCancel:uo,checkFullscreenSupport:Bt,changeDoubleForwardOn:hg,closePreviewTrack:E$,previewTrackOpened:I$,previewTrackDragStarted:P$,previewTrackDragFinished:A$},external:{firstStart:c=>ru(c,!0),play:()=>bl(!0),pause:()=>Ws(!0),stop:()=>nu(!0),seekTime:c=>Tn(c),seekEpisodeStartTime:c=>pa(c),setPlaybackRate:c=>fa(c),setAutoQualityLimits:c=>Hs(c),setMuted:c=>Ao(c,!0),toggleSubtitle:()=>Ze(!0),changeSubtitle:Gt,setVolume:c=>lr(c,!0),returnFocusToEpisodes:S$,updateAdditionalSettingsItem:vl,addAdditionalSettingsItem:gl,removeAdditionalSettingsItem:$d,updateAdditionalContextItem:pt,addAdditionalContextItem:mt,removeAdditionalContextItem:Wi,updateAdditionalButton:pl,addAdditionalButton:fl,removeAdditionalButton:bd,setLiveLowLatency:ml,hideControls:()=>ur(!1),showControls:()=>ur(!0),setQuality:c=>zo(c,{appliesTo:"to-video"},!0),setTrafficSavingEnabled:c=>po(c,"to-video",!0),setHighQualityEnabled:c=>Mo(c,"to-video",!0),changeAudioStream:$t}},callbacks:s,setUiCallbacks:c=>{Fe=Ae({},c)},getAdmanWrapper:()=>Ce,getLogger:()=>Ke,getPlayer:()=>P,destroy:T$};return Kt};function Zn(t,e,i,o){var p;let r=(p=e[i])==null?void 0:p.getBoundingClientRect(),a=o&&!!r&&!!(r.right-r.left),{top:l,left:d,bottom:s,right:u}=Rs(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 Gx=["disabledControls$","additionalButtons"],Yx=["interactiveTimeIndicator"],nd=(t,e,i,o)=>{if(t){for(let[r,a]of Object.entries(e))if(!Gx.includes(r)){let l=o||Yx.includes(r);a.set(Zn(t,i,r,l))}}};var gp=(t,e,i)=>gt(null,null,function*(){yield bo(),e&&i&&(i.focus(),t.set(!1))});var jx=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 qm(t){Je(t,{children:(e,i)=>{var o=jx();_(e,o)},$$slots:{default:!0}})}function Qm(t,e){F(e,!0);let[i,o]=Re(),r=()=>x(s,"$contextMenuVisible$",i),a=g(e,"disabled",3,!1),l=g(e,"ariaLabel",3,""),d=me(),s=d.ui.contextMenu.visible$,u=d.ui.contextMenu.openedByBtnKeyboard$,p=d.ui.contextMenu.showContextMenuBtn$,m=d.ui.contextMenu.position$,f=d.ui.contextMenu.btnRef$,b=K(void 0);De(()=>{n(b)&&kt(()=>{f.set(n(b))})});let y=I=>{let R=ra(I),E=db(n(b));m.set(E),u.set(R),s.set(!r())},$=()=>{p.set(!0)},S=()=>{p.set(!1)},C=v(()=>r()?"opened":"");Wt(t,{get className(){return n(C)},testId:"btn-context-menu",get disabled(){return a()},get ariaLabel(){return l()},click:y,focus:$,blur:S,get ariaExpanded(){return r()},get ref(){return n(b)},set ref(I){N(b,I,!0)},children:(I,R)=>{qm(I,{})},$$slots:{default:!0}}),H(),o()}var Xx=t=>{t.stopPropagation()},Zx=L("<div><!> <div></div> <div></div></div>"),Jx={hash:"s-26",code:'.interactive-episode-icon-animated.s-26{height:32px;opacity:1;position:absolute;right:16px;top:16px;transition:.3s;width:32px}.interactive-episode-icon-animated.icon-small.s-26{height:28px;width:28px}.invisible.s-26{opacity:0;visibility:hidden}.fullscreen.s-26:not(.mobile){height:40px;right:23px;top:19px;width:40px}.mobile.s-26{height:28px;right:14px;top:12px;width:28px}.fullscreen.mobile.s-26{height:32px;width:32px}@media screen and (orientation:portrait){.interactive-episode-icon-animated.mobile.fullscreen.s-26{right:16px;top:40px}}@keyframes s-26-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-26{animation:s-26-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-26{animation-play-state:paused}.interactive-episode-icon-animated svg{height:100%;width:100%}.ref-block.s-26{height:100%;position:absolute;top:0;visibility:hidden;width:100%}.hidden.s-26{display:none}'};function Tc(t,e){var Y;F(e,!0),q(t,Jx);let[i,o]=Re(),r=()=>x(S,"$isMobile",i),a=()=>x(E,"$areControlsVisible",i),l=()=>x(O,"$currentGridType$",i),d=()=>x(I,"$isInteractiveTime$",i),s=()=>x($,"$interactiveControlsOpacity$",i),u=()=>x(R,"$showInteractiveTimeIndicatorTooltip$",i),p=()=>x(C,"$isFullscreen",i),m=g(e,"ref",15,void 0),f=K(void 0),b=me(),y=Io(),{interactiveControlsOpacity$:$}=y,S=b.ui.isMobile,C=b.ui.isFullscreen,I=b.state.isInteractiveTime$,R=y.showInteractiveTimeIndicatorTooltip$,E=b.ui.controlsVisible,A=(Y=b.callbacks)==null?void 0:Y.onInteractiveTimeIndicatorClick,O=b.ui.currentGridType$,D=v(()=>!r()&&a()),U=v(()=>Vs(l(),"s")),z=v(()=>!d()||!!s()||n(D)),G=K(!1);De(()=>{N(G,n(z),!0)});let le=()=>{N(G,!0)},X=()=>{var ie;oe(),(ie=n(f))==null||ie.addEventListener("animationiteration",le,{once:!0})},oe=()=>{var ie;N(G,!1),(ie=n(f))==null||ie.removeEventListener("animationiteration",le)},j=ie=>{R.set(ie)},ve=v(()=>u()&&!n(z));De(()=>{u()?X():oe()});let ce=()=>{n(z)||(R.set(!0),A==null||A())};vn(()=>{R.clearTimeout(),oe()});let re=()=>{R.set(!1)},_e=Q("tooltip_interactive_interaction_time_indicator");var we=Zx();let Z;we.__mousemove=[Xx],we.__click=ce;var Ne=T(we);Oo(Ne,{get tooltipContent(){return _e},get tooltipVisible(){return n(ve)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:j,get ref(){return m()},set ref(ie){m(ie)},children:(ie,Oe)=>{gc(ie,{completed:!0})},$$slots:{default:!0}});var ue=k(Ne,2);let P;nt(ue,ie=>m(ie),()=>m());var Ke=k(ue,2);let Ce;nt(Ke,ie=>N(f,ie),()=>n(f)),w(we),B((ie,Oe,Be)=>{Z=se(we,1,"interactive-episode-icon-animated s-26",null,Z,ie),P=se(ue,1,"ref-block s-26",null,P,Oe),Ce=se(Ke,1,"pulse s-26",null,Ce,Be)},[()=>({mobile:r(),fullscreen:p(),invisible:n(z),"icon-small":n(U)}),()=>({hidden:n(z)}),()=>({paused:n(G)})]),_t("mouseleave",we,re),_(t,we),H(),o()}st(["mousemove","click"]);function hp(t,e){F(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);Oo(t,{get disabled(){return o()},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},get hasTooltip(){return i()},get mouseEnter(){return e.mouseEnter},get mouseLeave(){return e.mouseLeave},get tooltipVisible(){return l()},get className(){return r()},get ref(){return a()},set ref(d){a(d)},children:(d,s)=>{var u=Le();let p=v(()=>e.buttonComponent);var m=de(u);Ni(m,()=>n(p),(f,b)=>{b(f,ks(()=>{var y;return(y=e.buttonComponentProps)!=null?y:{}}))}),_(d,u)},$$slots:{default:!0}}),H()}var Ns={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var tw=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 ca(t,e){F(e,!0);let i=g(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);transform-origin: 50%;":void 0),r=v(()=>`${gn(e.size)}${n(o)}`),a=v(()=>i()?"prev-icon":"next-icon");Je(t,{get width(){return"48"},get height(){return"48"},get style(){return n(r)},get testId(){return n(a)},get shadow(){return e.shadow},children:(l,d)=>{var s=tw();_(l,s)},$$slots:{default:!0}}),H()}var iw=L('<div class="icon-background-mobile s-23"><!></div>'),ow={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 ja(t,e){F(e,!0),q(t,ow);let i=g(e,"ref",15,void 0),o=g(e,"isMobile",3,!1),r=g(e,"disabled",3,!1),l=me().ui.t,d=v(()=>e.type==="prev"?l("tooltip_previous"):l("tooltip_next")),s=v(()=>e.type==="prev"?l("hotkey_map_item_prev_video_value"):l("hotkey_map_item_next_video_value")),u=v(()=>`btn-${o()?"m":"d"}--${e.type}`);Wt(t,{get className(){return n(u)},get testId(){var p;return`btn-${(p=e.type)!=null?p:""}`},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(p){i(p)},children:(p,m)=>{var f=Le(),b=de(f);{var y=S=>{var C=iw(),I=T(C);let R=v(()=>e.type==="prev");ca(I,{get size(){return"32"},get reversed(){return n(R)}}),w(C),_(S,C)},$=S=>{let C=v(()=>e.type==="prev");ca(S,{get size(){return"24"},get reversed(){return n(C)}})};V(b,S=>{o()?S(y):S($,!1)})}_(p,f)},$$slots:{default:!0}}),H()}var nw=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(t,e){F(e,!0);let i=v(()=>gn(e.size));Je(t,{get width(){return"48"},get height(){return"48"},get style(){return n(i)},testId:"replay-icon",get shadow(){return e.shadow},children:(o,r)=>{var a=nw();_(o,a)},$$slots:{default:!0}}),H()}var Lb=require("@vkontakte/videoplayer-shared/es2015");var rw=L('<div class="icon-background-mobile s-24"></div>'),sw=L("<!> <div><!></div>",1),aw={hash:"s-24",code:".mobile.s-24{align-items:center;display:flex;justify-content:center;position:relative}.icon-background-mobile.s-24{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){F(e,!0),q(t,aw);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,Lb.noop),d=Q("tooltip_restart"),s=v(()=>`${o()?"btn-m--play":""} ${a()}`);Wt(t,{get className(){return n(s)},testId:"btn-replay",get ariaLabel(){return d},get disabled(){return r()},get click(){return l()},get ariaKeyShortCut(){return vs.KeyK},get ref(){return i()},set ref(u){i(u)},children:(u,p)=>{var m=sw(),f=de(m);{var b=I=>{var R=rw();_(I,R)};V(f,I=>{o()&&I(b)})}var y=k(f,2);let $;var S=T(y);let C=v(()=>o()?"48":"24");Cc(S,{get size(){return n(C)}}),w(y),B(I=>$=se(y,1,"s-24",null,$,I),[()=>({mobile:o()})]),_(u,m)},$$slots:{default:!0}}),H()}var lw=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 Os(t,e){F(e,!0);let i=v(()=>gn(e.size));Je(t,{get width(){return"48"},get height(){return"48"},get fill(){return e.fill},get style(){return n(i)},testId:"pause-icon",get shadow(){return e.shadow},children:(o,r)=>{var a=lw();_(o,a)},$$slots:{default:!0}}),H()}var Mb=require("@vkontakte/videoplayer-shared/es2015");var dw=L('<div class="icon-background-mobile s-21"><!></div>'),cw={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(t,e){F(e,!0),q(t,cw);let[i,o]=Re(),r=()=>x(a,"$fakeIsPlaying$",i),{fakeIsPlaying$:a}=Io(),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),p=g(e,"className",3,""),m=g(e,"click",3,Mb.noop),b=me().ui.t,{toggle:y}=a,$=v(()=>y),S=v(()=>r()!==null),C=v(()=>n(S)?r():s()),I=v(()=>n(C)?b("tooltip_pause"):b("tooltip_play")),R=v(()=>n(C)?Os:Vn),E=v(()=>`${d()?"btn-m--play":""} ${p()}`),A=v(()=>n(S)?n($):m());Wt(t,{get className(){return n(E)},testId:"play-btn",get click(){return n(A)},get disabled(){return u()},get ariaLabel(){return n(I)},get ariaKeyShortCut(){return vs.KeyK},get ref(){return l()},set ref(O){l(O)},children:(O,D)=>{var U=Le();let z=v(()=>n(R));var G=de(U);{var le=oe=>{var j=dw(),ve=T(j);Ni(ve,()=>n(z),(ce,re)=>{re(ce,{get size(){return"48"}})}),w(j),_(oe,j)},X=oe=>{var j=Le(),ve=de(j);Ni(ve,()=>n(z),(ce,re)=>{re(ce,{get size(){return"24"}})}),_(oe,j)};V(G,oe=>{d()?oe(le):oe(X,!1)})}_(O,U)},$$slots:{default:!0}}),H(),o()}var uw=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 Gm(t){Je(t,{testId:"play-prev-chapter-icon",children:(e,i)=>{var o=uw();_(e,o)},$$slots:{default:!0}})}function Ic(t,e){F(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=v(()=>o()?"hidden":"");Wt(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)=>{Gm(d,{})},$$slots:{default:!0}}),H()}var pw=L('<span class="gutter s-25"><span><!></span></span>'),fw={hash:"s-25",code:".gutter.s-25{--gutterWidth:32px;--gutterHeight:12px;--togglerWidth:18px;--togglerHeight:18px;--togglerGap:calc(var(--togglerWidth)/6);background-color:hsla(0,0%,100%,.3);border-radius:50px;height:var(--gutterHeight);position:relative;width:var(--gutterWidth)}.toggler.s-25{align-items:center;background-color:#626364;border-radius:50%;display:flex;height:var(--togglerHeight);justify-content:center;left:0;position:absolute;top:calc((var(--togglerHeight) - var(--gutterHeight))/2*-1);transform:translateX(calc(var(--togglerGap)*-1));transition-duration:.2s;transition-property:background-color,transform;transition-timing-function:ease;width:var(--togglerWidth)}.toggler.enabled.s-25{background-color:var(--toggle-color-autoplay-on);transform:translateX(calc(var(--gutterWidth) - var(--togglerWidth) + var(--togglerGap)))}"};function Ec(t,e){F(e,!0),q(t,fw);let[i,o]=Re(),r=()=>x(s,"$autoplayNextEnabled$",i),a=g(e,"ref",15,void 0),l=me(),d=l.ui.t,s=l.ui.autoplayNextEnabled$,u=l.actions.internal.setAutoplayNextEnabled,p=()=>{u(!r(),!0)},m=d("aria_label_autoplay"),f="16",b="#000",y=v(()=>r()?"true":"false");Wt(t,{click:p,get ariaLabel(){return m},role:"switch",get areaChecked(){return n(y)},get ref(){return a()},set ref($){a($)},children:($,S)=>{var C=pw(),I=T(C);let R;var E=T(I);{var A=D=>{Vn(D,{get size(){return f},fill:b})},O=D=>{Os(D,{get size(){return f},fill:b})};V(E,D=>{r()?D(A):D(O,!1)})}w(I),w(C),B(D=>R=se(I,1,"toggler s-25",null,R,D),[()=>({enabled:r()})]),_($,C)},$$slots:{default:!0}}),H(),o()}var mw=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 Ym(t){Je(t,{testId:"seek-to-interactive-icon",children:(e,i)=>{var o=mw();vi(),_(e,o)},$$slots:{default:!0}})}function Pc(t,e){F(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=v(()=>o()?"hidden":"");Wt(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)=>{Ym(d,{})},$$slots:{default:!0}}),H()}var vw=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>'),gw=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 jm(t,e){let i=g(e,"isOpened",3,!1),o=v(()=>i()?"graph-close-icon":"graph-open-icon");Je(t,{get testId(){return n(o)},children:(r,a)=>{var l=gw(),d=k(de(l));{var s=u=>{var p=vw();_(u,p)};V(d,u=>{i()&&u(s)})}_(r,l)},$$slots:{default:!0}})}function Ac(t,e){F(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=me().ui.t,s=v(()=>a()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),u=v(()=>o()?"hidden":"");Wt(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(p){i(p)},children:(p,m)=>{let f=v(()=>!!a());jm(p,{get isOpened(){return n(f)}})},$$slots:{default:!0}}),H()}var Xm=require("@vkontakte/videoplayer-core/es2015");function kc(t,e){F(e,!0);let[i,o]=Re(),r=()=>x(u,"$playbackState$",i),a=g(e,"isMobile",3,!1),l=g(e,"isLiveActive",3,!1),d=g(e,"ariaLabel",3,""),s=me(),u=s.state.playbackState$,p=s.actions.internal.switchToActiveLive,m=s.actions.internal.togglePlay,f=v(()=>()=>{if(!l()){p();return}r()===Xm.PlaybackState.PAUSED&&m()}),b=v(()=>a()?"":"btn--live btn-full-opacity"),y=v(()=>l()?"btn-live":"btn-live-offset"),$=v(()=>l()&&r()===Xm.PlaybackState.PLAYING);Wt(t,{get className(){return n(b)},get testId(){return n(y)},get disabled(){return n($)},get ariaLabel(){return d()},get click(){return n(f)},children:(S,C)=>{nc(S,{get isActive(){return l()}})},$$slots:{default:!0}}),H(),o()}var Zm=require("@vkontakte/videoplayer-shared/es2015");var hw=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),_w=L('<img class="icon" aria-hidden="true"/>');function Xa(t,e){"use strict";let i=K(!1),o=()=>{N(i,!0)};var r=Le(),a=de(r);{var l=s=>{var u=hw();_(s,u)},d=s=>{var u=_w();B(()=>Ue(u,"src",e.icon)),_t("error",u,o),Aa(u),_(s,u)};V(a,s=>{n(i)?s(l):s(d,!1)})}_(t,r)}function Jm(t,e){F(e,!0);let i=g(e,"disabled",3,!1),o=g(e,"onClick",3,Zm.noop),r=g(e,"ref",15),a=v(()=>o()===Zm.noop),l=v(()=>n(a)||i()),d=v(()=>n(a)?"btn-full-opacity":"");Oo(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 p=v(()=>{var m;return(m=e.testId)!=null?m: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(p)},children:(m,f)=>{Xa(m,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),H()}var Vb=t=>!!t.buttonComponent;var Ds={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var _p=(t,e,i,o)=>{if(t)for(let[r,a]of Object.entries(e))a.set(Zn(t,i,r,o))};var bp=require("@vkontakte/videoplayer-shared/es2015"),Rb=10,Nb=40,ev=.2,$w=.5,yw=65,xw=114,ww=4,Ob=({onPreviewTrackOpened:t,getTimelineRef:e,isHorizontal:i})=>{let o=v(()=>i?yw:xw),r=K(!1),a=K(0),l=K(0),d=v(()=>n(o)+Rb-Nb-ww),s=v(()=>(0,bp.interpolate)(n(a),[ev,1],[0,-n(d)])),u=v(()=>(0,bp.interpolate)(n(a),[ev,1],[0,Nb])),p=v(()=>(0,bp.interpolate)(n(a),[ev,1],[0,n(o)+Rb]));return{progressBarY:()=>n(s),controlsY:()=>n(u),calculatedHeight:()=>n(p),onPointerDown:$=>{var S;N(l,((S=e())==null?void 0:S.getBoundingClientRect().bottom)||0,!0),N(r,!0)},onPointerMove:$=>{if(!n(r))return;let S=Math.max(Math.min($.clientY-n(l),0),-n(d));N(a,Math.abs(S/n(d)),!0)},onPointerUp:()=>{N(r,!1),N(a,n(a)>=$w?1:0,!0),n(a)===1&&t()},closePreviewTrack:()=>{N(a,0)}}};var Sw=t=>t;function _s(t,{delay:e=0,duration:i=400,easing:o=Sw}={}){let r=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:a=>`opacity: ${a*r}`}}var Tw=L('<span class="root s-2c"> </span>'),Cw={hash:"s-2c",code:".root.s-2c{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 tv(t,e){q(t,Cw);var i=Tw(),o=T(i,!0);w(i),B(()=>pe(o,e.time)),_(t,i)}var Iw=L('<div class="tooltip-wrapper s-j"><div><!></div></div>'),Ew={hash:"s-j",code:'.tooltip-wrapper.s-j{display:block;position:relative}.tooltip.s-j{bottom:100%;opacity:0;position:absolute;transform:translateX(-50%);transition:opacity .2s;visibility:hidden}.pointer.s-j: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-j{opacity:1;visibility:visible}'};function iv(t,e){q(t,Ew);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 p(S){if(!n(u))return 0;let{width:C}=n(u).getBoundingClientRect(),I=C/2;return S<I?I+l():S>e.containerWidth-I?e.containerWidth-I-d():S}let m=v(()=>p(r()));var f=Iw(),b=T(f);let y;var $=T(b);si($,()=>{var S;return(S=e.children)!=null?S:ht}),w(b),nt(b,S=>N(u,S),()=>n(u)),w(f),nt(f,S=>N(s,S),()=>n(s)),B(S=>{Ge(f,`transform: translate(${n(m)}px, ${a()}px);`),y=se(b,1,"tooltip s-j",null,y,S),Ge(b,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),_(t,f)}var Db=t=>Math.abs(t)/90%4===1;var Pw=L('<div class="preview s-i"></div>'),Aw=L('<div class="time s-i"> </div>'),kw=L('<div><!> <div class="episode s-i"><!></div> <!></div>'),Lw={hash:"s-i",code:".timeline-preview.s-i{border-radius:2px;bottom:18px;pointer-events:none}.timeline-preview.mobile.s-i{bottom:72px}.preview.s-i{background-color:var(--timeline-preview-bg);border:1px solid var(--white);border-radius:8px;box-shadow:0 0 2px var(--timeline-preview-shadow),0 8px 24px var(--timeline-preview-shadow)}.episode.s-i{margin-bottom:4px;margin-top:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.episode.s-i,.time.s-i{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-i{color:var(--white)}"};function ov(t,e){F(e,!0),q(t,Lw);let[i,o]=Re(),r=()=>x(y,"$rotateAlpha",i),a=()=>x($,"$playerSize",i),l={MOBILE:150,DESKTOP:278},d=g(e,"time",3,""),s=g(e,"isMobile",3,!1),u=g(e,"videoEpisodes",19,()=>[]),p=g(e,"progress",3,0),m=g(e,"duration",3,0),f=g(e,"isInteractive",3,!1),b=me(),y=b.ui.rotateAlpha,$=b.ui.playerSize,S=K(0),C=K(0),I=K(""),R=K(0),E=K(0),A=K(0),O=K(0),D=v(()=>dp(p(),m(),u())),U=v(()=>id(r())),z=v(()=>Db(r())),G=v(oe),le=v(()=>(n(z)?1:-1)*(n(S)/2-n(C)/2)),X=v(()=>n(le)*-1);De(()=>{(Y=>{N(S,Y.width,!0),N(C,Y.height,!0)})(ve())}),De(()=>{(Y=>{N(I,Y.imgSrc,!0),N(R,Y.imgWidth,!0),N(E,Y.imgHeight,!0),N(A,Y.imgOffsetX,!0),N(O,Y.imgOffsetY,!0)})(ce(p()))});function oe(){var Be;let Y=s()?l.MOBILE:l.DESKTOP,{isVertical:ie}=j(),Oe=30;return(Be=n(D))!=null&&Be.text&&(Oe+=16),(ie||n(U))&&(Oe+=18,Oe+=50),Math.min(Math.max(a().height-Oe,0),Y)}function j(){let Y=e.previewThumbsData.frameWidth,ie=e.previewThumbsData.frameHeight,Oe=ie>Y;return{width:Y,height:ie,isHorizontal:!Oe,isVertical:Oe}}function ve(){let{height:Y,isHorizontal:ie,isVertical:Oe,width:Be}=j();return ie&&(Y=Y/Be*n(G),Be=n(G)),Oe&&(Be=Be/Y*n(G),Y=n(G)),{width:Be,height:Y}}function ce(Y){let ie;e.previewThumbsData.isUV?ie=Math.floor(m()*Y/e.previewThumbsData.frequency):ie=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*Y)));let Oe=Math.floor(ie/e.previewThumbsData.countPerImage),Be=Math.floor(ie%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),fe=ie%e.previewThumbsData.countPerRow,ee=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&Oe===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 Se=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&Oe===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(Se=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Fe=n(S)*Se,qe=n(C)*ee,je=-fe*n(S),Te=-Be*n(C);return{imgSrc:e.previewThumbsData.links[Oe],imgWidth:Fe,imgHeight:qe,imgOffsetX:je,imgOffsetY:Te}}var re=kw();let _e;var we=T(re);{var Z=Y=>{var ie=Pw();B(()=>Ge(ie,`width: ${n(S)}px; height: ${n(C)}px; background-image: url(${n(I)}); background-size: ${n(R)}px ${n(E)}px; background-position: ${n(A)}px ${n(O)}px;
|
|
61
|
-
transform: rotate(${r()}deg) ${n(U)?`translate(${n(le)}px, ${n(
|
|
62
|
-
`)),_(Y,ie)};V(we,Y=>{n(I)&&Y(Z)})}var Ne=k(we,2),ue=T(Ne);{var P=Y=>{var ie=Le(),Oe=de(ie);{var Be=ee=>{var Se=ms();B(Fe=>pe(Se,Fe),[()=>Q("tooltip_episode_unfinished")]),_(ee,Se)},fe=ee=>{var Se=ms();B(()=>pe(Se,n(D).text||"")),_(ee,Se)};V(Oe,ee=>{f()&&n(D).completed===!1?ee(Be):ee(fe,!1)})}_(Y,ie)};V(ue,Y=>{n(D)&&Y(P)})}w(Ne);var Ke=k(Ne,2);{var Ce=Y=>{var ie=Aw(),Oe=T(ie,!0);w(ie),B(()=>pe(Oe,d())),_(Y,ie)};V(Ke,Y=>{f()||Y(Ce)})}w(re),B(Y=>{_e=se(re,1,"timeline-preview s-i",null,_e,Y),Ge(re,`width: ${n(U)?n(C):n(S)}px;`)},[()=>({mobile:s()})]),_(t,re),H(),o()}var Mw=L('<span class="time s-f"> </span>'),Vw=L("<!> <!>",1),Rw={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 nv(t,e){var Pe,Et,Ve,at,vt;F(e,!0),q(t,Rw);let[i,o]=Re(),r=()=>x(X,"$interactiveEpisodes$",i),a=()=>x(O,"$duration$",i),l=()=>x(A,"$position$",i),d=()=>x(ve,"$isInteractiveExpectation$",i),s=()=>x(j,"$isInteractiveTime$",i),u=()=>x(we,"$previewTrackActive",i),p=()=>x(D,"$isLive$",i),m=()=>x(_e,"$disabledControls$",i),f=()=>x(z,"$isMobile",i),b=()=>x(U,"$isActiveLive$",i),y=()=>x(E,"$bufferedProgress$",i),$=g(e,"showTimeline",3,!1),S=g(e,"withEpisodes",3,!0),C=g(e,"ref",15,void 0),I=me(),R=Rt(),E=I.state.bufferedProgress$,A=I.state.positionWithScrubbing$,O=I.state.duration$,D=I.state.isLive$,U=I.state.isActiveLive$,z=I.ui.isMobile,G=R.features.episodes&&S()?I.actions.internal.getVideoEpisodes():void 0,le=I.actions.internal.getPreviewThumbsData(),X=I.state.interactiveEpisodes$,oe=I.state.isInteractive,j=I.state.isInteractiveTime$,ve=I.state.isInteractiveExpectation$,ce=I.actions.internal.correctSeekTimeToInteractive,re=(Pe=I.callbacks)==null?void 0:Pe.onDisabledTimelineClick,_e=I.ui.controls.disabledControls$,we=I.ui.previewTrackActive,Z=(Ve=(Et=I.callbacks)==null?void 0:Et.uiInfo)==null?void 0:Ve.onTimelineMouseEnter,Ne=(vt=(at=I.callbacks)==null?void 0:at.uiInfo)==null?void 0:vt.onTimelineMouseLeave,ue=I.ui.t,P=R.features.interactiveResponsiveUi,Ke=v(()=>oe?r():G),Ce=v(()=>en(a())),Y=v(()=>en(l())),ie=v(()=>l()/a()),Oe=v(()=>d()||s()),Be=K(!1),fe=K(""),ee=K(0),Se=K(0),Fe=K(0),qe=v(()=>({containerWidth:n(Se),translateXPx:n(ee),translateYPx:oe&&le?-36:-16,active:n(Be)&&$()&&!n(Oe)&&!P&&!u(),pointer:!R.features.timelinePreview||!le||p()})),je=ue("aria_timeline"),Te=v(()=>ue("aria_timeline_value",{position:n(Y),duration:n(Ce)}));function Me($e){return!ce||!oe?$e:ce($e*a())/a()}function ze($e,et){var We;(We=e.onSliderPointerDown)==null||We.call(e,et),I.actions.internal.startScrubbing(Me($e))}function Nt($e){s()||I.actions.internal.progressScrubbing(Me($e))}function tt($e){var et;I.actions.internal.completeScrubbing(Me($e)),N(Be,!1),(et=e.onSliderPointerUp)==null||et.call(e)}function Bt($e,et,We){var rt;(rt=e.onSliderPointerEnter)==null||rt.call(e,$e),ti($e,et,We),N(Be,!0)}function Qt($e,et,We,rt){var ii;(ii=e.onSliderMove)==null||ii.call(e,rt,$e),ti($e,et,We),N(Be,!0)}function It(){var $e;N(Be,!1),($e=e.onSliderLeave)==null||$e.call(e)}function ti($e,et,We){N(Fe,Me($e),!0),N(ee,et,!0),We&&N(Se,We,!0),N(fe,Ft($e),!0)}function Ft($e){let et=en((p()?1-$e:$e)*a());return p()?`-${et}`:et}let ye=v(()=>m().has("TIMELINE"));var be=Vw(),J=de(be);iv(J,ks(()=>n(qe),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:($e,et)=>{var We=Le(),rt=de(We);{var ii=gi=>{ov(gi,{get time(){return n(fe)},get isMobile(){return f()},get videoEpisodes(){return n(Ke)},get previewThumbsData(){return le},get progress(){return n(Fe)},get duration(){return a()},get isInteractive(){return oe}})},li=gi=>{var yi=Mw(),no=T(yi,!0);w(yi),B(()=>pe(no,n(fe))),_(gi,yi)};V(rt,gi=>{R.features.timelinePreview&&le&&!p()?gi(ii):gi(li,!1)})}_($e,We)},$$slots:{default:!0}}));var xe=k(J,2);Ga(xe,{className:"timeline-slider",get isActiveLive(){return b()},get isMobile(){return f()},get ariaLabel(){return je},ariaValueMin:0,get ariaValueMax(){return a()},get ariaValueNow(){return l()},get ariaValueText(){return n(Te)},get loadedProgress(){return y()},get filledProgress(){return n(ie)},get handleProgress(){return n(ie)},get videoEpisodes(){return n(Ke)},onPointerDown:ze,onHandleMove:Nt,onPointerMove:Qt,onPointerUp:tt,onPointerEnter:Bt,onPointerLeave:It,get onMouseEnter(){return Z},get onMouseLeave(){return Ne},get onDisabledClick(){return re},get isInteractive(){return oe},get disabled(){return n(ye)},get handleAlwaysVisible(){return u()},get hideHandel(){return s()},testId:"progress_bar",onContextMenu:tt,get ref(){return C()},set ref($e){C($e)}}),_(t,be),H(),o()}var Nw={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 Lc(t,e){F(e,!0),q(t,Nw);let[i,o]=Re(),r=()=>x(s,"$isMobile",i),a=g(e,"position",3,0),l=g(e,"duration",3,0),d=me(),s=d.ui.isMobile,u=d.ui.t,p=v(()=>en(l())),m=v(()=>en(a())),f=v(()=>a()/l()),b=v(()=>u("aria_timeline_value",{position:n(m),duration:n(p)})),y=v(()=>Math.round(n(f)*100));Ga(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(f)},hideHandel:!0,get squareBorders(){return r()}}),H(),o()}var Ow=L("<div><!></div>"),Dw=L("<div></div>"),Bw={hash:"s-a",code:".timeline.s-a{align-items:center;bottom:0;box-sizing:border-box;display:flex;min-width:86px;pointer-events:all;position:relative;width:100%}.timeline.mobile.s-a{height:16px;margin-top:6px;padding:6px 12px 7px}.withoutPadding.s-a{padding:0}.timeline-stub.s-a{min-width:20px;width:100%}.timeline-stub.mobile.s-a{height:8px}"};function Za(t,e){F(e,!0),q(t,Bw);let[i,o]=Re(),r=()=>x(S,"$isLive$",i),a=()=>x(R,"$isMobile",i),l=()=>x(E,"$disabled",i),d=()=>x(I,"$adPosition",i),s=()=>x(C,"$adDuration",i),u=g(e,"isAds",3,!1),p=g(e,"isHidden",3,!1),m=g(e,"timelineNotAvailable",3,!1),f=g(e,"needPadding",3,!0),b=g(e,"ref",15,void 0),y=me(),$=Rt(),S=y.state.isLive$,C=y.ads.duration,I=y.ads.position,R=y.ui.isMobile,E=ae(!1),A=v(()=>!m()&&(!r()||r()&&e.canRewindLive&&e.isRewindableLive||u()));var O=Le(),D=de(O);{var U=G=>{var le=Ow();let X;var oe=T(le);{var j=ce=>{Lc(ce,{get position(){return d()},get duration(){return s()}})},ve=ce=>{nv(ce,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return n(A)},get withEpisodes(){return e.withEpisodes},get onSliderMove(){return e.onSliderMove},get onSliderPointerDown(){return e.onSliderPointerDown},get onSliderPointerUp(){return e.onSliderPointerUp},get onSliderLeave(){return e.onSliderLeave},get onSliderPointerEnter(){return e.onSliderPointerEnter},get ref(){return b()},set ref(re){b(re)}})};V(oe,ce=>{u()?ce(j):ce(ve,!1)})}w(le),As(le,()=>Ql(p()&&$.features.usePerformanceFix,E,$.disableInvisibleComponentsTimeout)),B(ce=>X=se(le,1,"timeline s-a",null,X,ce),[()=>({withoutPadding:!f(),mobile:a(),"out-of-flow":l()})]),_(G,le)},z=G=>{var le=Dw();let X;B(oe=>X=se(le,1,"timeline-stub s-a",null,X,oe),[()=>({mobile:a()})]),_(G,le)};V(D,G=>{n(A)?G(U):G(z,!1)})}_(t,O),H(),o()}var Bb=require("@vkontakte/videoplayer-shared/es2015");var Fw=(t,e,i,o,r,a,l)=>{N(e,!0),N(i,t.clientX,!0),N(o,n(r),!0),a(l())},Hw=L("<div></div>"),Uw=L('<div><div class="track s-2d"></div></div>'),zw={hash:"s-2d",code:'.root.s-2d{display:flex;height:var(--preview-track-frame-height-horizontal);overflow:hidden;position:relative;width:100%}.root.is-vertical-video.s-2d,.root.vertically-rotated.s-2d{height:var(--preview-track-frame-height-vertical)}.root.s-2d: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-2d{bottom:0;display:flex;left:0;padding:0 50%;top:0}.frame.s-2d,.track.s-2d{position:absolute}.frame.s-2d{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-2d .frame:where(.s-2d){transform-origin:0 0}.rotate-1.s-2d{transform:rotate(-90deg) translateX(-100%)}.rotate-2.s-2d{transform:rotate(-180deg)}.rotate-3.s-2d{transform:rotate(-270deg) translateY(-100%)}'};function sv(t,e){F(e,!0),q(t,zw);let[i,o]=Re(),r=()=>x(R,"$rotateAlpha",i),a=()=>x($,"$position$",i),l=()=>x(y,"$duration$",i),d=me(),{countPerImage:s=0,countPerRow:u=0,countTotal:p=0,links:m=[],frameHeight:f=0,frameWidth:b=0}=d.actions.internal.getPreviewThumbsData()||{},{duration$:y,positionWithScrubbing$:$}=d.state,{startScrubbing:S,progressScrubbing:C,completeScrubbing:I}=d.actions.internal,R=d.ui.rotateAlpha,E=K(void 0),A=K(!1),O=K(0),D=K(0),U=K(0),z=K(0),G=v(()=>f<=b),le=v(()=>id(r())),X=v(()=>n(G)?!n(le):n(le)),oe=114,j=65,ve=3,ce=v(()=>n(X)?oe:j),re=v(()=>n(G)?oe:j),_e=v(()=>n(G)?"var(--preview-track-frame-height-horizontal)":"var(--preview-track-frame-height-vertical)"),we=v(()=>p*n(ce)),Z=K(0);De(()=>{N(z,Math.ceil(-n(U)/n(ce))-1),N(U,-n(we)*a()/l())});let Ne=()=>{I(ue(),!0)},ue=()=>l()*-n(U)/n(we)/l(),P=!1,Ke=Te=>{if(!n(A))return!1;let Me=Te.clientX-n(O);N(U,n(D)+Me),N(U,Math.max(Math.min(n(U),0),-n(we)),!0),Math.abs(Me)>1&&(P=!0),C(ue())},Ce=Te=>{n(A)&&(N(A,!1),!P&&Te&&N(U,-(Te.offsetX-n(Z)/2)),P=!1,Ne())},Y=()=>{n(A)&&Ce()},ie=v(()=>s/u),Oe=(Te,Me)=>{if(Te!==m.length-1)return u;let ze=0,Nt=Me*u;for(let tt=1;tt<=u;tt++)Te*s+ze+Nt<p&&ze++;return ze},Be=v(()=>Math.floor(n(z)/s)),fe=v(()=>(0,Bb.getRangeAroundIndex)(3,n(Be),m.length-1)),ee=(Te,Me,ze)=>{let Nt=s*n(ce);return Te*Nt+Me*n(ce)*u+n(Z)/2-ve/2+ze*n(ce)},Se=v(()=>[`--row-numbers: ${n(ie)}`,`--column-numbers: ${u}`,`--frame-width: ${n(re)}px`,`--frame-height: ${n(_e)}`].join(";"));var Fe=Uw();let qe;var je=T(Fe);je.__pointerdown=[Fw,A,O,D,U,S,ue],je.__pointermove=Ke,je.__pointerup=Ce,Ci(je,20,()=>n(fe),Te=>Te,(Te,Me)=>{var ze=Le(),Nt=de(ze);Ci(Nt,16,()=>Array.from({length:n(ie)},(tt,Bt)=>Bt),tt=>tt,(tt,Bt)=>{var Qt=Le(),It=de(Qt);Ci(It,16,()=>Array.from({length:Oe(Me,Bt)},(ti,Ft)=>Ft),ti=>ti,(ti,Ft)=>{var ye=Hw();B((be,J)=>{Ge(ye,be),se(ye,1,J,"s-2d")},[()=>`--row-index: ${Bt}; --column-index: ${Ft}; left: ${ee(Me,Bt,Ft)}px; background-image: url(${m[Me]});`,()=>`frame rotate-${Math.abs(r())/90%4}`]),_(ti,ye)}),_(tt,Qt)}),_(Te,ze)}),w(je),w(Fe),nt(Fe,Te=>N(E,Te),()=>n(E)),B(Te=>{qe=se(Fe,1,"root s-2d",null,qe,Te),Ge(Fe,n(Se)),Ge(je,`transform: translateX(${n(U)}px); width: ${n(we)}px;`)},[()=>({"is-vertical-video":!n(G),"vertically-rotated":n(le)})]),_t("mouseleave",je,Y),Ln(Fe,"clientWidth",Te=>N(Z,Te)),_(t,Fe),H(),o()}st(["pointerdown","pointermove","pointerup"]);var Ww=L('<div class="notification s-2b"><span class="description s-2b"> </span></div>'),Kw={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 av(t,e){F(e,!1),q(t,Kw);let i=340,{ui:{t:o}}=me();Co();var r=Ww(),a=T(r),l=T(a,!0);w(a),w(r),B(d=>pe(l,d),[()=>o("preview_track_close_tooltip")],In),Zr(3,r,()=>_s,()=>({duration:i})),_(t,r),H()}var Fb=require("@vkontakte/videoplayer-shared/es2015"),qw=L('<div class="preview-track-close tooltip s-2a"><!></div>'),Qw=L('<div class="preview-track-control s-2a"><!> <div class="preview-track-close s-2a"><!></div> <!></div>'),Gw=L('<div class="wrapper-preview-track s-2a"><!></div>'),Yw=L('<div class="enriched-timeline s-2a"><!> <!> <!></div>'),jw={hash:"s-2a",code:".enriched-timeline.s-2a{padding:var(--timeline-padding-vertical-top) var(--timeline-padding-horizontal) var(--timeline-padding-vertical-bottom);pointer-events:auto;position:relative}.preview-track-control.s-2a{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-2a{pointer-events:auto;position:absolute;right:calc(var(--timeline-padding-horizontal))}.preview-track-close.tooltip.s-2a{bottom:32px;opacity:0;transition:opacity .2s}.preview-track-close.s-2a:hover+.tooltip:where(.s-2a){opacity:1}.wrapper-preview-track.s-2a{box-sizing:border-box;left:0;overflow:hidden;padding:0 calc(var(--timeline-padding-horizontal));position:absolute;right:0;z-index:-1}"};function lv(t,e){F(e,!0),q(t,jw);let[i,o]=Re(),r=()=>x($,"$playerSize",i),a=()=>x(y,"$duration$",i),l=()=>x(S,"$previewTrackActive",i),d=()=>x(f,"$position$",i),s=()=>x(b,"$isRewindableLive$",i),u=g(e,"timelineRef",15,void 0),p=me(),m=200,{positionWithScrubbing$:f,isRewindableLive$:b,duration$:y}=p.state,{playerSize:$,previewTrackActive:S}=p.ui,{countPerImage:C=0,links:I=[],frequency:R=0}=p.actions.internal.getPreviewThumbsData()||{},E=v(()=>r().width>100),A=K(!K_()),O=()=>{n(A)&&(W_(),N(A,!1))},D=ce=>{let re=Math.floor(a()*ce/R),_e=Math.floor(re/C),we=(0,Fb.getRangeAroundIndex)(3,_e,I.length-1);for(let Z of we){let Ne=new Image;Ne.src=I[Z]}},U=(ce,re)=>{D(re),!l()&&e.onTimelineMove(ce)};var z=Yw(),G=T(z);{var le=ce=>{var re=Qw(),_e=T(re);let we=v(()=>en(d()));tv(_e,{get time(){return n(we)}});var Z=k(_e,2),Ne=T(Z);Ms(Ne,{onClick:()=>p.actions.internal.closePreviewTrack()}),w(Z);var ue=k(Z,2);{var P=Ke=>{var Ce=qw(),Y=T(Ce);av(Y,{}),w(Ce),_(Ke,Ce)};V(ue,Ke=>{n(A)&&Ke(P)})}w(re),_t("mouseleave",Z,O),Zr(3,re,()=>_s,()=>({duration:m})),_(ce,re)};V(G,ce=>{l()&&ce(le)})}var X=k(G,2);let oe=v(()=>!n(E));Za(X,{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:D,get ref(){return u()},set ref(ce){u(ce)}});var j=k(X,2);{var ve=ce=>{var re=Gw(),_e=T(re);sv(_e,{}),w(re),B(()=>Ge(re,`height: ${e.animatedPreviewTrackHeight}px;`)),_(ce,re)};V(j,ce=>{e.previewTrackAvailable&&ce(ve)})}w(z),B(()=>Ge(z,`transform: translateY(${e.animatedOffsetY}px);`)),_(t,z),H(),o()}var Zw=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),Jw={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 cv(t,e){var fr,hl;F(e,!0),q(t,Jw);let[i,o]=Re(),r=()=>x(tn,"$disabledControls$",i),a=()=>x(ut,"$adPlaybackState",i),l=()=>x(li,"$playbackState$",i),d=()=>x(ro,"$currentSubtitle$",i),s=()=>x(no,"$isEnded$",i),u=()=>x(Bo,"$currentGridType$",i),p=()=>x($o,"$isLive$",i),m=()=>x(Xe,"$chromecastState$",i),f=()=>x(Ai,"$isPictureInPictureActive",i),b=()=>x(Jt,"$pictureInPictureType$",i),y=()=>x(Ti,"$availableSubtitlesList$",i),$=()=>x(Ht,"$contextMenuOpenedByKeyboard$",i),S=()=>x(Pt,"$showContextMenuBtn$",i),C=()=>x(ft,"$isRewindableLive$",i),I=()=>x(fi,"$isActiveLive$",i),R=()=>x(os,"$graphIsOpened$",i),E=()=>x(_n,"$contextMenuVisible$",i),A=()=>x(Bi,"$isFullscreen",i),O=()=>x(yo,"$autoplayNextEnabled",i),D=()=>x(n(Hi),"$prevButton",i),U=()=>x(n(Ui),"$replayButton",i),z=()=>x(n(wn),"$playButton",i),G=()=>x(n(To),"$nextButton",i),le=()=>x(n(Kn),"$playPrevChapterButton",i),X=()=>x(n(mi),"$seekToInteractiveButton",i),oe=()=>x(n(Wr),"$interactiveGraphButton",i),j=()=>x(n(ar),"$liveButton",i),ve=()=>x(n(rs),"$time",i),ce=()=>x(n(Ar),"$episodes",i),re=()=>x(n(an),"$vkLogo",i),_e=()=>x(n(lr),"$volume",i),we=()=>x(n(Ao),"$subtitles",i),Z=()=>x(n(Ho),"$settings",i),Ne=()=>x(n(kr),"$context",i),ue=()=>x(n(ln),"$fullscreen",i),P=()=>x(n(ss),"$chromecast",i),Ke=()=>x(Eo,"$additionalDesktopControlPanelRightButtons$",i),Ce=()=>x(Fi,"$playerSize",i),Y=()=>x(bn,"$isInteractiveTime$",i),ie=()=>x(oi,"$previewTrackActive",i),Oe=()=>x(Tt,"$settingsMenuVisible",i),Be=()=>x(uo,"$settingButtonRef$",i),fe=()=>x(W,"$startedByKeyboard$",i),ee=()=>x(gi,"$isAudioAvailable$",i),Se=()=>x(be,"$fakeIsPlaying$",i),Fe=()=>x($s,"$seekToInteractiveDisabledTooltip$",i),qe=()=>x(St,"$isPreviewTrackHorizontallyAligned$",i),je=()=>x(ge,"$previewTrackAvailable",i),Te=()=>x(Ko,"$previewTrackDragInProgress",i),Me=()=>x(Zt,"$adPosition",i),ze=()=>x(ii,"$position$",i),Nt=()=>x(Ct,"$adDuration",i),tt=()=>x(rt,"$duration$",i),Bt=g(e,"playerControlsWrapperRef",15,void 0),Qt=g(e,"playerControlsRef",15,void 0),It=g(e,"isAds",3,!1),ti=g(e,"logoTargetUrl",3,""),Ft=g(e,"isOneVideoPlaylist",3,!1),ye=g(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:be}=Io(),J=me(),xe=Io(),Pe=Rt(),Et=J.actions.internal.toggleMuted,Ve=J.actions.internal.togglePlay,at=J.actions.internal.pause,vt=J.actions.internal.toggleSubtitle,$e=J.actions.internal.checkFullscreenSupport,et=(fr=J.callbacks)==null?void 0:fr.onAudioDoesNotExistHint,We=(hl=J.callbacks)==null?void 0:hl.onAudioDisabledHint,rt=J.state.duration$,ii=J.state.positionWithScrubbing$,li=J.state.playbackState$,gi=J.state.isAudioAvailable$,yi=J.state.isAudioDisabled,no=J.state.isEnded$,$o=J.state.isLive$,fi=J.state.isActiveLive$,ft=J.state.isRewindableLive$,{isActive$:Ai,type$:Jt}=xe.pictureInPicture$,Tt=J.ui.settingsMenu.visible$,ri=J.ui.settingsMenu.openedByBtnKeyboard$,ei=J.ui.controls,bt=J.actions.internal.getVideoEpisodes(),Xe=J.state.chromecastState$,Ti=J.state.availableSubtitlesList$,ro=J.state.currentSubtitle$,tn=ei.disabledControls$,_n=J.ui.contextMenu.visible$,Pt=J.ui.contextMenu.showContextMenuBtn$,Ht=J.ui.contextMenu.openedByBtnKeyboard$,W=J.ui.startedByKeyboard$,Mt=J.ui.controlBlocks,di=J.ui.previewTrackNotificationVisible,ct=J.ui.t,Ct=J.ads.duration,Zt=J.ads.position,ut=J.ads.playbackState,Bi=J.ui.isFullscreen,Fi=J.ui.playerSize,Bo=J.ui.currentGridType$,Eo=J.ui.additionalDesktopControlPanelRightButtons$,yo=J.ui.autoplayNextEnabled$,ji=J.actions.internal.getVideoElement,Fr=J.actions.internal.replayInteractive,so=J.actions.internal.prevVideoClick,ao=J.actions.internal.nextVideoClick,Li=J.state.isInteractive,bn=J.state.isInteractiveTime$,on=J.state.showInteractiveGraph,er=J.state.showSeekToInteractive,xr=J.state.showPlayPrevChapter,wr=J.state.showInteractiveTimeIndicator,bs=J.state.playPrevChapterDisabledTooltip,$s=xe.seekToInteractiveDisabledTooltip$,os=xe.graphIsOpened$,On=Pe.features.interactiveResponsiveUi,Hr=v(()=>r().has("EPISODE_BUTTON")),$n=v(()=>r().has("GRAPH_BUTTON")),xo=v(()=>r().has("SEEK_TO_INTERACTIVE_BUTTON")),Dn=v(()=>r().has("PLAY_BUTTON")),Bn=v(()=>r().has("REPLAY_BUTTON")),Sr=v(()=>r().has("PLAY_PREV_CHAPTER_BUTTON")),tr=()=>J.actions.internal.toggleChromecast(),ns=v(()=>It()?a()==="playing":l()===Ja.PlaybackState.PLAYING),Ur=v(()=>d().value!=="off"),lo=v(()=>s()&&!It()||Li),Tr=v(()=>On?n(lo)&&to(u(),"m"):n(lo)),ir=v(()=>!s()||Li||It()),yn=v(()=>to(u(),"m")),wo=v(()=>e.showNextPrevButtons&&to(u(),"m")&&!It()&&e.nextButtonActive),Cr=v(()=>e.showNextPrevButtons&&to(u(),"m")&&!It()&&e.prevButtonActive),Fn=v(()=>!It()&&!!p()),$t=v(()=>m()!==Ja.ChromecastState.NOT_AVAILABLE&&!(f()&&b()===1)&&to(u(),"m")&&!Li),ci=v(()=>e.showAutoplayNext&&!Ft()&&to(u(),"s")),Ir=v(()=>y().length>0&&to(u(),"m")),xn=v(()=>$()||S()),Er=v(()=>to(u(),"s")&&!It()),Hn=v(()=>!e.logoHidden&&!It()),or=v(()=>Pe.features.fullscreen&&$e()&&(e.logoHidden||to(u(),On?"xs":"s"))&&!(f()&&b()===1)&&(Li?ye():!0)),nn=v(()=>(!p()||It())&&!(Pe.features.interactiveHideTime&&Li)),Un=v(()=>on&&to(u(),"m")),rn=v(()=>On?er&&to(u(),"s"):er),zn=v(()=>On?xr&&to(u(),"s"):xr),Po=v(()=>!It()&&!p()&&!!(bt!=null&&bt.length)&&n(yn)&&!n(Hr)),sn=v(()=>!C()||!!I()),So=v(()=>R()?ct("tooltip_interactive_graph_on"):ct("tooltip_interactive_graph_off")),nr=v(()=>E()?ct("tooltip_context_menu_close"):ct("tooltip_context_menu_open")),Xi=(pt,mt)=>pt?mt&&mt===Ja.PlaybackState.PAUSED?ct("tooltip_play"):"":ct("tooltip_live"),rr=v(()=>Xi(n(sn),l())),sr=v(()=>Pe.logoType==="vk_video"?ct("tooltip_vk_video_logo"):ct("tooltip_vk_logo")),Pr=v(()=>n(Ur)?ct("tooltip_subtitles_on"):ct("tooltip_subtitles_off")),Fo=v(()=>A()?ct("tooltip_fullscreen_on"):ct("tooltip_fullscreen_off")),Wn=v(()=>m()===Ja.ChromecastState.CONNECTED?ct("tooltip_chromecast_on"):ct("tooltip_chromecast_off")),zr=v(()=>O()?ct("tooltip_autoplay_on"):ct("tooltip_autoplay_off")),wt=K(0),At=pi({}),co=pi({}),Hi=v(()=>ei.prevButton),Ui=v(()=>ei.replayButton),wn=v(()=>ei.playButton),To=v(()=>ei.nextButton),Kn=v(()=>ei.playPrevChapterButton),mi=v(()=>ei.seekToInteractiveButton),Wr=v(()=>ei.interactiveGraphButton),ar=v(()=>ei.liveButton),rs=v(()=>ei.time),Ar=v(()=>ei.episodes),an=v(()=>ei.vkLogo),lr=v(()=>ei.volume),Ao=v(()=>ei.subtitles),Ho=v(()=>ei.settings),kr=v(()=>ei.context),ln=v(()=>ei.fullscreen),ss=v(()=>ei.chromecast),Qe=v(()=>({prevButton:D()?D().right-D().left:0,replayButton:U()?U().right-U().left:0,playButton:z()?z().right-z().left:0,nextButton:G()?G().right-G().left:0,playPrevChapterButton:le()?le().right-le().left:0,seekToInteractiveButton:X()?X().right-X().left:0,interactiveGraphButton:oe()?oe().right-oe().left:0,liveButton:j()?j().right-j().left:0,time:ve()?ve().right-ve().left:0,episodes:ce()?ce().right-ce().left:0,vkLogo:re()?re().right-re().left:0,volume:_e()?_e().right-_e().left:0,subtitles:we()?we().right-we().left:0,settings:Z()?Z().right-Z().left:0,context:Ne()?Ne().right-Ne().left:0,fullscreen:ue()?ue().right-ue().left:0,chromecast:P()?P().right-P().left:0,additionalButtons:Ke().length?Ke().reduce(pt=>[...pt,40],[]):[]})),Vt=K(0);De(()=>{(!n(Vt)||n(Vt)<n(Qe).time)&&kt(()=>N(Vt,n(Qe).time,!0))});let xi=K(!1);De(()=>{let pt=0;n(Po)&&(to(u(),"xl")?pt=n(Qe).time:pt=60);let mt=n(Qe).prevButton+n(Qe).playButton+n(Qe).nextButton+n(Qe).seekToInteractiveButton+n(Qe).interactiveGraphButton+n(Qe).liveButton+n(Vt)+pt;N(xi,n(nn)&&n(wt)>=mt,!0)});let ko=v(()=>n(xi)&&to(u(),"m")),Lo=(0,dv.debounceFn)(nd,260),Uo=(0,dv.debounceFn)(_p,260);De(()=>{Ce(),Y(),ie(),Lo(ji(),ei,At,e.showControls),Uo(ji(),Mt,co,e.showControls)}),De(()=>{co.bottom=Bt()});let uo=ae();De(()=>{Oe(),Be()&&kt(()=>Yl(Be(),Oe(),ri))});let Zi;De(()=>{fe(),kt(()=>gp(W,fe(),Zi))});function Sn(){sa({isAudioDisabled:yi,isAudioAvailable:ee(),isAds:It(),audioIsNotExistHintCallback:et,audioDisabledHintCallback:We})&&Et()}let zo=Li?Fr:Ve,po=v(()=>Se()!==null),Mo=v(()=>n(po)?Se():n(ns)),dr=v(()=>n(Mo)?ct("tooltip_pause"):ct("tooltip_play")),cr=ct("tooltip_episodes"),dn=v(()=>{var pt,mt,Wi,qo;return n(Cr)?{id:"prevButton",type:"desktop-control-panel-left",weight:Ns.prevButton,buttonComponent:ja,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:so.bind(null,!0)},tooltipEnabled:!((mt=(pt=J.callbacks)==null?void 0:pt.uiInfo)!=null&&mt.onPrevButtonMouseEnter)&&!((qo=(Wi=J.callbacks)==null?void 0:Wi.uiInfo)!=null&&qo.onPrevButtonMouseLeave),mouseEnter:()=>{var Ki,Si,Mi;(Mi=(Si=(Ki=J.callbacks)==null?void 0:Ki.uiInfo)==null?void 0:Si.onPrevButtonMouseEnter)==null||Mi.call(Si,Zn(ji(),At,"prevButton",e.showControls))},mouseLeave:()=>{var Ki,Si,Mi;(Mi=(Si=(Ki=J.callbacks)==null?void 0:Ki.uiInfo)==null?void 0:Si.onPrevButtonMouseLeave)==null||Mi.call(Si,Zn(ji(),At,"prevButton",e.showControls))},tooltipText:ct("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),as=v(()=>n(Tr)?{id:"replayButton",type:"desktop-control-panel-left",weight:Ns.replayButton,buttonComponent:rd,buttonComponentProps:{disabled:n(Bn),click:zo},tooltipText:ct("tooltip_restart"),disabled:n(Bn)}:void 0),ys=v(()=>n(ir)?{id:"playButton",type:"desktop-control-panel-left",weight:Ns.playButton,buttonComponent:sd,buttonComponentProps:{disabled:n(Dn),isPlaying:n(ns),click:Ve},tooltipText:n(dr),disabled:n(Dn)}:void 0),Lr=v(()=>{var pt,mt,Wi,qo;return n(wo)?{id:"nextButton",type:"desktop-control-panel-left",weight:Ns.nextButton,buttonComponent:ja,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:ao.bind(null,!0)},tooltipEnabled:!((mt=(pt=J.callbacks)==null?void 0:pt.uiInfo)!=null&&mt.onNextButtonMouseEnter)&&!((qo=(Wi=J.callbacks)==null?void 0:Wi.uiInfo)!=null&&qo.onNextButtonMouseLeave),mouseEnter:()=>{var Ki,Si,Mi;(Mi=(Si=(Ki=J.callbacks)==null?void 0:Ki.uiInfo)==null?void 0:Si.onNextButtonMouseEnter)==null||Mi.call(Si,Zn(ji(),At,"nextButton",e.showControls))},mouseLeave:()=>{var Ki,Si,Mi;(Mi=(Si=(Ki=J.callbacks)==null?void 0:Ki.uiInfo)==null?void 0:Si.onNextButtonMouseLeave)==null||Mi.call(Si,Zn(ji(),At,"nextButton",e.showControls))},tooltipText:ct("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),Ze=v(()=>Li&&n(zn)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:Ns.playPrevChapterButton,buttonComponent:Ic,buttonComponentProps:{disabled:n(Sr),click:e.playPrevChapter},tooltipText:ct("tooltip_interactive_go_back"),disabledTooltipContent:ct(bs),disabled:n(Sr)}:void 0),Gt=v(()=>Li&&n(rn)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:Ns.seekToInteractiveButton,buttonComponent:Pc,buttonComponentProps:{disabled:n(xo),click:e.seekToInteractive},tooltipText:ct("tooltip_interactive_seek"),disabled:n(xo),disabledTooltipContent:ct(Fe())}:void 0),Ii=v(()=>Li&&n(Un)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:Ns.interactiveGraphButton,buttonComponent:Ac,buttonComponentProps:{disabled:n($n),click:os.toggle,graphIsOpened:R()},tooltipText:n(So)}:void 0),Wo=v(()=>n(Fn)?{id:"liveButton",type:"desktop-control-panel-left",weight:Ns.liveButton,buttonComponent:kc,buttonComponentProps:{isLiveActive:n(sn),ariaLabel:n(rr)},tooltipText:n(rr),disabled:n(sn)&&l()===Ja.PlaybackState.PLAYING}:void 0),cn=v(()=>[n(dn),n(as),n(ys),n(Lr),n(Ze),n(Gt),n(Ii),n(Wo)].filter(pt=>!!pt).sort(za)),ur=v(()=>n(Hn)?{id:"vkLogo",type:"desktop-control-panel-right",weight:Ds.vkLogo,buttonComponent:bc,buttonComponentProps:{targetUrl:ti(),logoClickable:e.logoClickable,click:at},tooltipText:n(sr),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),fo=v(()=>n(ci)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:Ds.autoplayNext,buttonComponent:Ec,tooltipText:n(zr)}:void 0),Mr=v(()=>({id:"volume",type:"desktop-control-panel-right",weight:Ds.volume,buttonComponent:Rm,buttonComponentProps:{click:Sn,isAds:It()}})),xs=v(()=>n(Ir)?{id:"subtitles",type:"desktop-control-panel-right",weight:Ds.subtitles,buttonComponent:km,buttonComponentProps:{isSubtitlesEnabled:n(Ur),click:vt},tooltipText:n(Pr)}:void 0),Tn=v(()=>n(Er)?{id:"settings",type:"desktop-control-panel-right",weight:Ds.settings,buttonComponent:ed,buttonComponentProps:{ref$:uo},tooltipText:Oe()?void 0:ct("tooltip_settings_off")}:void 0),Hs=v(()=>Pe.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:Ds.context,buttonComponent:Qm,buttonComponentProps:{ariaLabel:ct("aria_label_context_menu")},className:n(xn)?"":"out-of-view",tooltipText:n(nr)}:void 0),pa=v(()=>n(or)?{id:"fullscreen",type:"desktop-control-panel-right",weight:Ds.fullscreen,buttonComponent:_c,buttonComponentProps:{isFullscreen:A(),click:e.toggleFullscreen},tooltipText:n(Fo)}:void 0),fa=v(()=>n($t)?{id:"chromecast",type:"desktop-control-panel-right",weight:Ds.chromecast,buttonComponent:yc,buttonComponentProps:{state:m(),click:tr},tooltipText:n(Wn)}:void 0),lt=v(()=>[n(ur),n(fo),n(Mr),n(xs),n(Tn),n(Hs),n(pa),n(fa),...Ke()].filter(pt=>!!pt).sort(za)),oi=J.ui.previewTrackActive,Ko=J.ui.previewTrackDragInProgress,ge=J.ui.previewTrackAvailable,St=J.ui.isPreviewTrackHorizontallyAligned,jt=v(()=>Ob({onPreviewTrackOpened:J.actions.internal.previewTrackOpened,getTimelineRef:()=>At.timeline,isHorizontal:qe()})),wi=v(()=>n(jt).progressBarY),mo=v(()=>n(jt).controlsY),ui=v(()=>n(jt).onPointerDown),ni=v(()=>n(jt).onPointerMove),vo=v(()=>n(jt).onPointerUp),un=v(()=>n(jt).calculatedHeight),pn=v(()=>n(jt).closePreviewTrack);De(()=>{ie()?di.set(!1):n(pn)()});let zi;Dt(()=>()=>zi&&clearTimeout(zi));let hd=pt=>{ie()||!je()||(n(ui)(pt),zi=setTimeout(()=>{J.actions.internal.previewTrackDragStarted()},200))},Us=()=>{ie()||n(vo)(),zi&&clearTimeout(zi),Te()&&J.actions.internal.previewTrackDragFinished()},cl=pt=>{n(ni)(pt),!ie()&&je()&&!ie()&&di.set(!0)},ul=()=>{di.set(!1)};var zs=Zw(),Kr=de(zs);let ma;var pr=T(Kr);{var _d=pt=>{let mt=v(()=>n(wi)()),Wi=v(()=>n(un)());lv(pt,{get animatedOffsetY(){return n(mt)},get animatedPreviewTrackHeight(){return n(Wi)},get canRewindLive(){return e.canRewindLive},get isAds(){return It()},onTimelineMove:cl,onTimelinePointerDown:hd,onTimelinePointerUp:Us,onTimelinePointerLeave:ul,get previewTrackAvailable(){return je()},get timelineRef(){return At.timeline},set timelineRef(qo){At.timeline=qo}})};V(pr,pt=>{e.showControls&&pt(_d)})}var ls=k(pr,2),qn=T(ls),va=T(qn);Ci(va,17,()=>n(cn),pt=>pt.id,(pt,mt)=>{hp(pt,{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 At[n(mt).id]},set ref(Wi){At[n(mt).id]=Wi}})});var pl=k(va,2);{var fl=pt=>{let mt=v(()=>!e.showControls),Wi=v(()=>It()?Me():ze()),qo=v(()=>It()?Nt():tt());vc(pt,{get isHidden(){return n(mt)},isMobile:!1,get showDuration(){return n(ko)},get position(){return n(Wi)},get duration(){return n(qo)},get ref(){return At.time},set ref(Ki){At.time=Ki}})};V(pl,pt=>{n(nn)&&pt(fl)})}var bd=k(pl,2);let ml=v(()=>!n(Po));Oo(bd,{className:"w-max",get disabled(){return n(ml)},get tooltipContent(){return cr},get tooltipVisible(){return e.showControls},get ref(){return At.episodes},set ref(pt){At.episodes=pt},children:(pt,mt)=>{var Wi=Le(),qo=de(Wi);{var Ki=Si=>{xc(Si,{get position(){return ze()},get duration(){return tt()},get timeCodes(){return bt}})};V(qo,Si=>{n(Po)&&Si(Ki)})}_(pt,Wi)},$$slots:{default:!0}}),w(qn);var vl=k(qn,2);Ci(vl,21,()=>n(lt),pt=>pt.id,(pt,mt)=>{var Wi=Le(),qo=de(Wi);{var Ki=Mi=>{hp(Mi,{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 At[n(mt).id]},set ref(ga){At[n(mt).id]=ga}})},Si=Mi=>{let ga=v(()=>!!n(mt).disabled);Jm(Mi,{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(ga)},get onClick(){return n(mt).onClick},get disableMouseupTooltipShow(){return n(mt).disableMouseupTooltipShow},get tooltipVisible(){return e.showControls},get ref(){return At[n(mt).id]},set ref(_l){At[n(mt).id]=_l}})};V(qo,Mi=>{Vb(n(mt))?Mi(Ki):Mi(Si,!1)})}_(pt,Wi)}),w(vl),w(ls),nt(ls,pt=>Qt(pt),()=>Qt()),w(Kr),nt(Kr,pt=>Bt(pt),()=>Bt());var gl=k(Kr,2);{var $d=pt=>{Tc(pt,{get ref(){return At.interactiveTimeIndicator},set ref(mt){At.interactiveTimeIndicator=mt}})};V(gl,pt=>{wr&&pt($d)})}B((pt,mt)=>{ma=se(Kr,1,"wrapper-bottom s-1a",null,ma,pt),Ge(ls,mt),ls.inert=ie()},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth||Te()}),()=>`transform: translateY(${n(mo)()}px);`]),Ln(qn,"clientWidth",pt=>N(wt,pt)),_(t,zs),H(),o()}var ad=require("@vkontakte/videoplayer-core/es2015");var uv=require("@vkontakte/videoplayer-shared/es2015");var eS=L('<div class="icon icon-error-stub s-1z"><div class="inner s-1z"></div></div>'),tS=L('<img class="icon s-1z" aria-hidden="true"/>'),iS={hash:"s-1z",code:".icon.s-1z{height:24px!important;width:24px!important}.inner.s-1z{background-color:var(--white);height:16px;width:16px}"};function pv(t,e){q(t,iS);let i=g(e,"disabled",3,!1),o=g(e,"onClick",3,uv.noop),r=v(()=>o()===uv.noop),a=v(()=>n(r)||i()),l=K(!1),d=()=>{N(l,!0)},s=v(()=>n(r)?"btn-full-opacity":"");Wt(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,p)=>{var m=Le(),f=de(m);{var b=$=>{var S=eS();_($,S)},y=$=>{var S=tS();B(()=>Ue(S,"src",e.iconUrl)),_t("error",S,d),Aa(S),_($,S)};V(f,$=>{n(l)?$(b):$(y,!1)})}_(u,m)},$$slots:{default:!0}})}var oS=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 fv(t){Je(t,{testId:"muted-icon",children:(e,i)=>{var o=oS();_(e,o)},$$slots:{default:!0}})}var Hb=require("@vkontakte/videoplayer-shared/es2015");function $p(t,e){F(e,!0);let i=g(e,"muted",3,!1),o=g(e,"click",3,Hb.noop),r=g(e,"ref",15,void 0),l=me().ui.t,d=v(()=>i()?l("tooltip_volume"):l("tooltip_volume_muted")),s=v(()=>i()?"btn-mobile-muted":"btn-mobile-unmuted");Wt(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,p)=>{var m=Le(),f=de(m);{var b=$=>{fv($,{})},y=$=>{da($,{get size(){return"24"}})};V(f,$=>{i()?$(b):$(y,!1)})}_(u,m)},$$slots:{default:!0}}),H()}var nS=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>'),rS=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>'),sS=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 mv(t,e){let i=g(e,"isActive",3,!1),o=v(()=>i()?"pip-icon--active":"pip-icon");Je(t,{get testId(){return n(o)},children:(r,a)=>{var l=sS(),d=k(de(l));{var s=p=>{var m=nS();_(p,m)},u=p=>{var m=rS();_(p,m)};V(d,p=>{i()?p(s):p(u,!1)})}_(r,l)},$$slots:{default:!0}})}var Ub=require("@vkontakte/videoplayer-shared/es2015");function vv(t,e){F(e,!0);let i=g(e,"ref",15,void 0),o=g(e,"isPictureInPictureActive",3,!1),r=g(e,"click",3,Ub.noop),a=Q("menu_pip");Wt(t,{testId:"btn-pip",get ariaLabel(){return a},get click(){return r()},get ref(){return i()},set ref(l){i(l)},children:(l,d)=>{mv(l,{get isActive(){return o()}})},$$slots:{default:!0}}),H()}var gv=require("@vkontakte/videoplayer-shared/es2015");var aS=(t,e,i,o)=>{n(e)&&i.onDisabledPlayPrevChapterClick(n(o))},lS=(t,e,i,o)=>{n(e)&&i.onDisabledSeekToInteractiveClick(n(o))},dS=L("<div><!></div>"),cS=L("<div><!></div>"),uS=L("<div><!></div>"),pS=L("<!> <!> <!>",1),fS=L("<div></div> <div></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),mS=L('<div class="wrapper-middle s-19"><!></div>'),vS=L("<div><!></div> <!> <div><!></div>",1),gS=L('<div aria-hidden="true">·</div> <!>',1),hS=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),_S={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 hv(t,e){var ln,ss;F(e,!0),q(t,_S);let[i,o]=Re(),r=()=>x(Fi,"$seekToInteractiveDisabledTooltip$",i),a=()=>x(ei,"$disabledControls$",i),l=()=>x(Ft,"$playbackState$",i),d=()=>x(tn,"$adPlaybackState",i),s=()=>x(J,"$isEnded$",i),u=()=>x(Pt,"$playerSize",i),p=()=>x(vt,"$scrubbingInProgress",i),m=()=>x(Tt,"$chromecastState$",i),f=()=>x(et,"$isPictureInPictureActive",i),b=()=>x(We,"$pictureInPictureType$",i),y=()=>x($e,"$mobileNotReportControlHidden$",i),$=()=>x(ft,"$chromecastHidden",i),S=()=>x(Qt,"$playerPhase",i),C=()=>x($o,"$pipHidden",i),I=()=>x(Xe,"$currentGridType$",i),R=()=>x(yi,"$vkLogoHidden",i),E=()=>x(gi,"$volumeHidden",i),A=()=>x(xe,"$isLive$",i),O=()=>x(rt,"$settingsMenuVisible",i),D=()=>x(at,"$isRewindableLive$",i),U=()=>x(Ve,"$isActiveLive$",i),z=()=>x(ye,"$isAudioAvailable$",i),G=()=>x(Et,"$muted$",i),le=()=>x(Pe,"$volume$",i),X=()=>x(ct,"$isInteractiveTime$",i),oe=()=>x(rn,"$settingButtonRef$",i),j=()=>x(bt,"$startedByKeyboard$",i),ve=()=>x(_n,"$isFullscreen",i),ce=()=>x(Ht,"$additionalButtons$",i),re=()=>x(no,"$autoplayNextToggleHidden",i),_e=()=>x(ri,"$crashed$",i),we=()=>x(fi,"$settingsHidden",i),Z=()=>x(Bo,"$graphIsOpened$",i),Ne=()=>x(ro,"$adPosition",i),ue=()=>x(Ti,"$adDuration",i),P=()=>x(ti,"$position$",i),Ke=()=>x(It,"$duration$",i),Ce=g(e,"playerControlsWrapperRef",15,void 0),Y=g(e,"playerControlsRef",15,void 0),ie=g(e,"isAds",3,!1),Oe=g(e,"logoTargetUrl",3,""),Be=g(e,"isOneVideoPlaylist",3,!1),fe=g(e,"customFullscreenSupported",3,!0),ee=me(),Se=Io(),Fe=Rt(),qe=ee.actions.internal.toggleMuted,je=ee.actions.internal.togglePlay,Te=ee.actions.internal.pause,Me=ee.actions.internal.prevVideoClick,ze=ee.actions.internal.nextVideoClick,Nt=ee.actions.internal.checkFullscreenSupport,tt=(ln=ee.callbacks)==null?void 0:ln.onAudioDoesNotExistHint,Bt=(ss=ee.callbacks)==null?void 0:ss.onAudioDisabledHint,Qt=ee.playerPhase,It=ee.state.duration$,ti=ee.state.positionWithScrubbing$,Ft=ee.state.playbackState$,ye=ee.state.isAudioAvailable$,be=ee.state.isAudioDisabled,J=ee.state.isEnded$,xe=ee.state.isLive$,Pe=ee.state.volume$,Et=ee.state.muted$,Ve=ee.state.isActiveLive$,at=ee.state.isRewindableLive$,vt=ee.ui.scrubbingInProgress,$e=ee.ui.mobileNotReportControlHidden$,{isActive$:et,type$:We}=Se.pictureInPicture$,rt=ee.ui.settingsMenu.visible$,ii=ee.ui.settingsMenu.openedByBtnKeyboard$,li=ee.ui.controls,{volume:gi,vkLogo:yi,autoplayNextToggle:no,pip:$o,settings:fi,chromecast:ft}=ee.ui.hiddenControls,Ai=ee.actions.internal.getVideoEpisodes(),Jt=ee.webApi.pictureInPictureApi,Tt=ee.state.chromecastState$,ri=ee.state.crashed$,ei=li.disabledControls$,bt=ee.ui.startedByKeyboard$,Xe=ee.ui.currentGridType$,Ti=ee.ads.duration,ro=ee.ads.position,tn=ee.ads.playbackState,_n=ee.ui.isFullscreen,Pt=ee.ui.playerSize,Ht=ee.ui.additionalButtonsDeprecated$,W=ee.actions.internal.getVideoElement,Mt=ee.actions.internal.replayInteractive,di=ee.state.isInteractive,ct=ee.state.isInteractiveTime$,Ct=ee.state.showInteractiveGraph,Zt=ee.state.showSeekToInteractive,ut=ee.state.showPlayPrevChapter,Bi=ee.state.showInteractiveTimeIndicator,Fi=Se.seekToInteractiveDisabledTooltip$,Bo=Se.graphIsOpened$,Eo=ee.ui.controlBlocks,yo=v(()=>Q(ee.state.playPrevChapterDisabledTooltip)),ji=v(()=>Q(r())),Fr=v(()=>a().has("EPISODE_BUTTON")),so=v(()=>a().has("GRAPH_BUTTON")),ao=v(()=>a().has("SEEK_TO_INTERACTIVE_BUTTON")),Li=v(()=>a().has("PLAY_BUTTON")),bn=v(()=>a().has("REPLAY_BUTTON")),on=v(()=>a().has("PLAY_PREV_CHAPTER_BUTTON")),er=v(()=>l()===ad.PlaybackState.PLAYING),xr=v(()=>d()==="paused"),wr=v(()=>s()&&!ie()&&!di),bs=v(()=>!s()||ie()),$s=v(()=>e.showNextPrevButtons&&!ie()&&e.prevButtonActive),os=v(()=>e.showNextPrevButtons&&!ie()&&e.nextButtonActive),On=v(()=>u().width>300),Hr=v(()=>u().width>400),$n=v(p),xo=v(()=>m()!==ad.ChromecastState.NOT_AVAILABLE&&!(f()&&b()===1)&&!y()&&!di&&!$()),Dn=v(()=>S()==="LiveWaitingStart"),Bn=v(()=>!!Jt&&m()!==ad.ChromecastState.CONNECTED&&!y()&&(b()===1&&n(Dn)||!n(Dn))&&!n($n)&&!di&&!C()),Sr=K(!1);Dt(()=>{let Qe=Jt==null?void 0:Jt.info.isActive$.subscribe(Vt=>N(Sr,Vt,!0));return()=>Qe==null?void 0:Qe.unsubscribe()});let tr=v(()=>!n($n)&&to(I(),"s")),ns=v(()=>!e.logoHidden&&u().width>350&&!R()),Ur=v(()=>Fe.features.fullscreen&&Nt()&&!(f()&&b()===1)&&(di?fe():!0)&&!n($n)&&!n(Sr)),lo=v(()=>!E()&&!n($n)),Tr=v(()=>(!A()||ie())&&u().width>260&&!n($n)&&!(Fe.features.interactiveHideTime&&di)),ir=v(()=>O()||e.showControls),yn=v(()=>!ie()&&!A()&&!!(Ai!=null&&Ai.length)&&n(On)&&!n(Fr)&&!n($n)),wo=v(()=>!D()||!!U()),Cr=v(()=>Ct&&to(I(),"m")),Fn=v(()=>!z()||G()||le()===0),$t=pi({}),ci=pi({}),Ir=(0,gv.debounceFn)(nd,260),xn=(0,gv.debounceFn)(_p,260);De(()=>{u(),X(),Ir(W(),li,$t,e.showControls),xn(W(),Eo,ci,e.showControls)});let Er=()=>ee.actions.internal.toggleChromecast();function Hn(){return gt(this,null,function*(){Jt!=null&&Jt.isActive()?yield Jt==null?void 0:Jt.exit():yield Jt==null?void 0:Jt.request()})}function or(){sa({isAudioDisabled:be,audioDisabledHintCallback:Bt,isAudioAvailable:z(),audioIsNotExistHintCallback:tt,isAds:ie()})&&qe()}let nn=K(""),Un=(Qe,Vt)=>{if(!Qe){N(nn,Q("tooltip_live"),!0);return}Vt&&Vt===ad.PlaybackState.PAUSED&&N(nn,Q("tooltip_play"),!0)};De(()=>{Un(n(wo),l())});let rn=ae();De(()=>{oe()&&Yl(oe(),O(),ii)}),De(()=>{gp(bt,j(),$t.playButton)});var zn=hS(),Po=de(zn);{var sn=Qe=>{var Vt=fS(),xi=de(Vt);let ko;var Lo=k(xi,2);let Uo;nt(Lo,lt=>ci.topLeft=lt,()=>ci==null?void 0:ci.topLeft);var uo=k(Lo,2);let Zi;var Sn=T(uo);Ci(Sn,1,ce,({iconUrl:lt,ariaLabel:oi,testId:Ko,onClick:ge,tooltip:St})=>lt,(lt,oi)=>{let Ko=()=>n(oi).iconUrl,ge=()=>n(oi).ariaLabel,St=()=>n(oi).testId,jt=()=>n(oi).onClick,wi=()=>n(oi).tooltip,mo=v(()=>{var ui;return(ui=ge())!=null?ui:wi()});pv(lt,{get iconUrl(){return Ko()},get ariaLabel(){return n(mo)},get testId(){return St()},get onClick(){return jt()}})});var zo=k(Sn,2);{var po=lt=>{Ec(lt,{get ref(){return $t.autoplayNextToggle},set ref(oi){$t.autoplayNextToggle=oi}})};V(zo,lt=>{e.showAutoplayNext&&!Be()&&!re()&<(po)})}var Mo=k(zo,2);{var dr=lt=>{yc(lt,{isMobile:!0,click:Er,get state(){return m()},get ref(){return $t.chromecast},set ref(oi){$t.chromecast=oi}})};V(Mo,lt=>{n(xo)&<(dr)})}var cr=k(Mo,2);{var dn=lt=>{vv(lt,{click:Hn,get isPictureInPictureActive(){return f()},get ref(){return $t.pip},set ref(oi){$t.pip=oi}})};V(cr,lt=>{n(Bn)&<(dn)})}var as=k(cr,2);{var ys=lt=>{ed(lt,{get ref$(){return rn}})};V(as,lt=>{_e()&&!we()&<(ys)})}var Lr=k(as,2);{var Ze=lt=>{bc(lt,{get click(){return Te},get targetUrl(){return Oe()},get logoClickable(){return e.logoClickable},get ref(){return $t.vkLogo},set ref(oi){$t.vkLogo=oi}})};V(Lr,lt=>{n(ns)&<(Ze)})}w(uo),nt(uo,lt=>ci.topRight=lt,()=>ci==null?void 0:ci.topRight);var Gt=k(uo,2);let Ii;var Wo=T(Gt);{var cn=lt=>{let oi=v(()=>Me.bind(null,!0));ja(lt,{get click(){return n(oi)},type:"prev",isMobile:!0,get ref(){return $t.prevButton},set ref(Ko){$t.prevButton=Ko}})};V(Wo,lt=>{n($s)&<(cn)})}var ur=k(Wo,2);{var fo=lt=>{sd(lt,{get disabled(){return n(Li)},get click(){return je},isMobile:!0,get isPlaying(){return n(er)},get ref(){return $t.playButton},set ref(oi){$t.playButton=oi}})};V(ur,lt=>{n(bs)&<(fo)})}var Mr=k(ur,2);{var xs=lt=>{rd(lt,{get disabled(){return n(bn)},get click(){return je},isMobile:!0,get ref(){return $t.replayButton},set ref(oi){$t.replayButton=oi}})};V(Mr,lt=>{n(wr)&<(xs)})}var Tn=k(Mr,2);{var Hs=lt=>{let oi=v(()=>ze.bind(null,!0));ja(lt,{get click(){return n(oi)},type:"next",isMobile:!0,get ref(){return $t.nextButton},set ref(Ko){$t.nextButton=Ko}})};V(Tn,lt=>{n(os)&<(Hs)})}w(Gt),nt(Gt,lt=>ci.middle=lt,()=>ci==null?void 0:ci.middle);var pa=k(Gt,2);{var fa=lt=>{var oi=pS(),Ko=de(oi);{var ge=ui=>{var ni=dS();let vo;ni.__click=[aS,on,e,yo];var un=T(ni);let pn=v(()=>!e.showControls);Ic(un,{get hidden(){return n(pn)},get disabled(){return n(on)},get click(){return e.playPrevChapter},get ref(){return $t.playPrevChapterButton},set ref(zi){$t.playPrevChapterButton=zi}}),w(ni),B(zi=>vo=se(ni,1,"wrapper-middle-left s-19",null,vo,zi),[()=>({fullscreen:ve(),hidden:!e.showControls})]),_(ui,ni)};V(Ko,ui=>{ut&&ui(ge)})}var St=k(Ko,2);{var jt=ui=>{var ni=cS();let vo;var un=T(ni);let pn=v(()=>!e.showControls&&!Z());Ac(un,{get hidden(){return n(pn)},get disabled(){return n(so)},get click(){return Bo.toggle},get graphIsOpened(){return Z()},get ref(){return $t.interactiveGraphButton},set ref(zi){$t.interactiveGraphButton=zi}}),w(ni),B(zi=>vo=se(ni,1,Kd(ut?"wrapper-middle-left-second":"wrapper-middle-left"),"s-19",vo,zi),[()=>({fullscreen:ve(),hidden:!e.showControls&&!Z()})]),_(ui,ni)};V(St,ui=>{n(Cr)&&ui(jt)})}var wi=k(St,2);{var mo=ui=>{var ni=uS();let vo;ni.__click=[lS,ao,e,ji];var un=T(ni);let pn=v(()=>!e.showControls);Pc(un,{get hidden(){return n(pn)},get disabled(){return n(ao)},get click(){return e.seekToInteractive},get ref(){return $t.seekToInteractiveButton},set ref(zi){$t.seekToInteractiveButton=zi}}),w(ni),B(zi=>vo=se(ni,1,"wrapper-middle-right s-19",null,vo,zi),[()=>({fullscreen:ve(),hidden:!e.showControls})]),_(ui,ni)};V(wi,ui=>{Zt&&ui(mo)})}_(lt,oi)};V(pa,lt=>{di&&!p()&<(fa)})}B((lt,oi,Ko,ge)=>{ko=se(xi,1,"overlay-mobile s-19",null,ko,lt),Uo=se(Lo,1,"wrapper-top-left s-19",null,Uo,oi),Zi=se(uo,1,"wrapper-top-right s-19",null,Zi,Ko),Ii=se(Gt,1,"wrapper-middle s-19",null,Ii,ge)},[()=>({hidden:!n(ir)}),()=>({hidden:!e.showControls,fullscreen:ve()}),()=>({hidden:!e.showControls&&!y(),fullscreen:ve()}),()=>({hidden:!e.showControls||p()||e.endScreenShown&&e.showNextPrevButtons})]),_(Qe,Vt)};V(Po,Qe=>{ie()||Qe(sn)})}var So=k(Po,2);{var nr=Qe=>{var Vt=vS(),xi=de(Vt);let ko;var Lo=T(xi);$p(Lo,{get muted(){return G()},click:or,get ref(){return $t.volume},set ref(po){$t.volume=po}}),w(xi);var Uo=k(xi,2);{var uo=po=>{var Mo=mS(),dr=T(Mo);let cr=v(()=>!n(xr));sd(dr,{get disabled(){return n(Li)},get click(){return je},isMobile:!0,get isPlaying(){return n(cr)},get ref(){return $t.playButton},set ref(dn){$t.playButton=dn}}),w(Mo),_(po,Mo)};V(Uo,po=>{n(xr)&&po(uo)})}var Zi=k(Uo,2);let Sn;var zo=T(Zi);Lc(zo,{get position(){return Ne()},get duration(){return ue()}}),w(Zi),B((po,Mo)=>{ko=se(xi,1,"wrapper-top-right s-19",null,ko,po),Sn=se(Zi,1,"wrapper-bottom ads-timeline-mobile s-19",null,Sn,Mo)},[()=>({fullscreen:ve()}),()=>({fullscreen:ve()})]),_(Qe,Vt)};V(So,Qe=>{ie()&&d()!=="inactive"&&Qe(nr)})}var Xi=k(So,2);let rr;var sr=T(Xi);let Pr;var Fo=T(sr),Wn=T(Fo),zr=T(Wn);{var wt=Qe=>{Oo(Qe,{get disabled(){return n(bn)},get ref(){return $t.replayButton},set ref(Vt){$t.replayButton=Vt},children:(Vt,xi)=>{rd(Vt,{get disabled(){return n(bn)},get click(){return Mt}})},$$slots:{default:!0}})};V(zr,Qe=>{di&&Qe(wt)})}var At=k(zr,2);{var co=Qe=>{Oo(Qe,{get ref(){return $t.liveButton},set ref(Vt){$t.liveButton=Vt},children:(Vt,xi)=>{kc(Vt,{get isLiveActive(){return n(wo)},isMobile:!0,get ariaLabel(){return n(nn)}})},$$slots:{default:!0}})};V(At,Qe=>{!ie()&&A()&&Qe(co)})}var Hi=k(At,2);{var Ui=Qe=>{let Vt=v(()=>ie()?Ne():P()),xi=v(()=>ie()?ue():Ke()),ko=v(()=>!e.showControls);vc(Qe,{get showDuration(){return n(Hr)},get position(){return n(Vt)},get duration(){return n(xi)},isMobile:!0,get isHidden(){return n(ko)},get ref(){return $t.time},set ref(Lo){$t.time=Lo}})};V(Hi,Qe=>{n(Tr)&&Qe(Ui)})}var wn=k(Hi,2);let To=v(()=>!n(yn));Oo(wn,{className:"w-max",get disabled(){return n(To)},get ref(){return $t.episodes},set ref(Qe){$t.episodes=Qe},children:(Qe,Vt)=>{var xi=Le(),ko=de(xi);{var Lo=Uo=>{var uo=gS(),Zi=k(de(uo),2);xc(Zi,{get position(){return P()},get duration(){return Ke()},get timeCodes(){return Ai}}),_(Uo,uo)};V(ko,Uo=>{n(yn)&&Uo(Lo)})}_(Qe,xi)},$$slots:{default:!0}}),w(Wn),nt(Wn,Qe=>ci.bottomLeft=Qe,()=>ci==null?void 0:ci.bottomLeft);var Kn=k(Wn,2),mi=T(Kn);{var Wr=Qe=>{Oo(Qe,{get ref(){return $t.volume},set ref(Vt){$t.volume=Vt},children:(Vt,xi)=>{$p(Vt,{get muted(){return n(Fn)},click:or})},$$slots:{default:!0}})};V(mi,Qe=>{n(lo)&&Qe(Wr)})}var ar=k(mi,2);{var rs=Qe=>{Oo(Qe,{get ref(){return $t.settings},set ref(Vt){$t.settings=Vt},children:(Vt,xi)=>{ed(Vt,{get ref$(){return rn}})},$$slots:{default:!0}})};V(ar,Qe=>{n(tr)&&Qe(rs)})}var Ar=k(ar,2);{var an=Qe=>{Oo(Qe,{get ref(){return $t.fullscreen},set ref(Vt){$t.fullscreen=Vt},children:(Vt,xi)=>{_c(Vt,{get click(){return e.toggleFullscreen},get isFullscreen(){return ve()}})},$$slots:{default:!0}})};V(Ar,Qe=>{n(Ur)&&Qe(an)})}w(Kn),nt(Kn,Qe=>ci.bottomRight=Qe,()=>ci==null?void 0:ci.bottomRight),w(Fo),nt(Fo,Qe=>Y(Qe),()=>Y());var lr=k(Fo,2);let Ao=v(()=>!e.showControls);Za(lr,{get isHidden(){return n(Ao)},get isAds(){return ie()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return D()},get ref(){return $t.timeline},set ref(Qe){$t.timeline=Qe}}),w(sr),nt(sr,Qe=>ci.bottom=Qe,()=>ci==null?void 0:ci.bottom),w(Xi),nt(Xi,Qe=>Ce(Qe),()=>Ce());var Ho=k(Xi,2);{var kr=Qe=>{Tc(Qe,{get ref(){return $t.interactiveTimeIndicator},set ref(Vt){$t.interactiveTimeIndicator=Vt}})};V(Ho,Qe=>{Bi&&Qe(kr)})}B((Qe,Vt)=>{rr=se(Xi,1,"wrapper-bottom mobile s-19",null,rr,Qe),Pr=se(sr,1,"controls-wrapper s-19",null,Pr,Vt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth}),()=>({fullscreen:ve()})]),_(t,zn),H(),o()}st(["click"]);function Mc(t,e){F(e,!0);let[i,o]=Re(),r=()=>x(C,"$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,""),p=g(e,"showAutoplayNext",3,!1),m=g(e,"isOneVideoPlaylist",3,!1),f=g(e,"customFullscreenSupported",3,!0),b=g(e,"endScreenShown",3,!1),y=g(e,"onDisabledPlayPrevChapterClick",3,_v.noop),$=g(e,"onDisabledSeekToInteractiveClick",3,_v.noop),C=me().ui.isMobile,I=K(!1);Dt(()=>{let O=setTimeout(()=>N(I,!0),0);return()=>clearTimeout(O)});var R=Le(),E=de(R);{var A=O=>{var D=Le(),U=de(D);{var z=le=>{hv(le,{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 p()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get isOneVideoPlaylist(){return m()},get customFullscreenSupported(){return f()},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(X){l(X)},get playerControlsRef(){return d()},set playerControlsRef(X){d(X)}})},G=le=>{cv(le,{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 m()},get showAutoplayNext(){return p()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get customFullscreenSupported(){return f()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(X){l(X)},get playerControlsRef(){return d()},set playerControlsRef(X){d(X)}})};V(U,le=>{r()?le(z):le(G,!1)})}_(O,D)};V(E,O=>{n(I)&&O(A)})}_(t,R),H(),o()}var bS=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 Vc(t,e){F(e,!0);let i=v(()=>e.reversed?"transform:scaleX(-1);transform-origin:50% 0;":""),o=v(()=>`${gn(e.size)}${n(i)}`);Je(t,{get width(){return"48"},get height(){return"48"},get fill(){return e.fill},get style(){return n(o)},get testId(){return e.testId},get shadow(){return e.shadow},children:(r,a)=>{var l=bS();_(r,l)},$$slots:{default:!0}}),H()}var $S=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 bv(t,e){F(e,!0);let i=g(e,"reversed",3,!1),o=v(()=>i()?"transform:scaleX(-1);transform-origin: 50% 0;":void 0),r=v(()=>`seek-icon-${i()?"backward":"forward"}`);Je(t,{get width(){return"48"},get height(){return"48"},get style(){return n(o)},get testId(){return n(r)},get shadow(){return e.shadow},children:(a,l)=>{var d=$S();_(a,d)},$$slots:{default:!0}}),H()}var yS=L('<span class="hot-key-helpers-text s-16"> </span>'),xS=L('<div data-testid="hotkey-helper-icon" class="s-16"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),wS=L("<div><!></div>"),SS={hash:"s-16",code:'.hot-key-helpers-container.s-16{align-items:center;animation:s-16-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-16{left:calc(25% - 100px)}.hot-key-helpers-container--right.s-16{left:calc(75% - 100px)}.hot-key-helpers-text.s-16{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-16{animation:s-16-fadeOut ease var(--controls-transition-duration);height:0;visibility:hidden;width:0}@keyframes s-16-fadeIn{0%{opacity:0}to{opacity:1}}@keyframes s-16-fadeOut{0%{opacity:1}to{opacity:0}}'};function $v(t,e){F(e,!0),q(t,SS);let[i,o]=Re(),r=()=>x(e.data,"$data",i),a=me(),{features:l}=Rt(),d=a.ui.t,s=v(()=>!r()),u=v(()=>{var C;return((C=r())==null?void 0:C.type)==="BACKWARD_SEEK"}),p=v(()=>{var C;return((C=r())==null?void 0:C.type)==="FORWARD_SEEK"}),m=v(()=>{var C;return(C=r())==null?void 0:C.type}),f=v(()=>{var C,I;return(C=r())!=null&&C.t?d(r().t.key,{value:r().t.value||""}):(I=r())==null?void 0:I.text});var b=wS();let y;var $=T(b);{var S=C=>{var I=xS(),R=de(I),E=T(R);{var A=Y=>{let ie=v(()=>n(m)==="BACKWARD_SEEK");bv(Y,{get reversed(){return n(ie)},shadow:!0})};V(E,Y=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(n(m))&&Y(A)})}var O=k(E,2);{var D=Y=>{Os(Y,{get size(){return"48"},shadow:!0})};V(O,Y=>{n(m)==="PAUSE"&&!l.playbackStatusShow&&Y(D)})}var U=k(O,2);{var z=Y=>{Vn(Y,{get size(){return"48"},shadow:!0})};V(U,Y=>{n(m)==="PLAY"&&!l.playbackStatusShow&&Y(z)})}var G=k(U,2);{var le=Y=>{Cc(Y,{get size(){return"48"},shadow:!0})};V(G,Y=>{n(m)==="REPLAY"&&!l.playbackStatusShow&&Y(le)})}var X=k(G,2);{var oe=Y=>{la(Y,{get size(){return"48"},type:"off",shadow:!0})};V(X,Y=>{n(m)==="SUBTITLES_OFF"&&Y(oe)})}var j=k(X,2);{var ve=Y=>{la(Y,{get size(){return"48"},shadow:!0})};V(j,Y=>{n(m)==="SUBTITLES_ON"&&Y(ve)})}var ce=k(j,2);{var re=Y=>{let ie=v(()=>n(m)==="RATE_DOWN");Vc(Y,{get size(){return"48"},get reversed(){return n(ie)},testId:"rate-change-icon",shadow:!0})};V(ce,Y=>{["RATE_DOWN","RATE_UP"].includes(n(m))&&Y(re)})}var _e=k(ce,2);{var we=Y=>{let ie=v(()=>n(m)==="EPISODE_PREV");ca(Y,{get size(){return"48"},get reversed(){return n(ie)},shadow:!0})};V(_e,Y=>{["EPISODE_PREV","EPISODE_NEXT"].includes(n(m))&&Y(we)})}var Z=k(_e,2);{var Ne=Y=>{da(Y,{get size(){return"48"},volume:0,shadow:!0})};V(Z,Y=>{n(m)==="MUTE"&&Y(Ne)})}var ue=k(Z,2);{var P=Y=>{da(Y,{get size(){return"48"},volume:1,shadow:!0})};V(ue,Y=>{n(m)==="VOLUME"&&Y(P)})}w(R);var Ke=k(R,2);{var Ce=Y=>{var ie=yS(),Oe=T(ie,!0);w(ie),B(()=>pe(Oe,n(f))),_(Y,ie)};V(Ke,Y=>{n(f)&&Y(Ce)})}B(()=>Ue(R,"data-type",n(m))),_(C,I)};V($,C=>{!n(s)&&n(m)&&C(S)})}w(b),B(C=>y=se(b,1,"hot-key-helpers-container s-16",null,y,C),[()=>({hidden:n(s),"hot-key-helpers-container--left":n(u),"hot-key-helpers-container--right":n(p)})]),_(t,b),H(),o()}var TS=(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}},CS=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},IS=L('<div tabindex="0" role="button"><div class="button-block s-p" aria-hidden="true"><div class="button-row s-p"><div class="button button-up s-p"><!></div> <div class="button button-right s-p"><!></div></div> <div class="button-row s-p"><div class="button button-left s-p"><!></div> <div class="button button-down s-p"><!></div></div></div></div>'),ES={hash:"s-p",code:".immersive-controls.s-p{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-p{left:20px;top:50px}.button-block.s-p{height:40px;margin:auto;transform:rotate(45deg);width:40px}.button-row.s-p{display:flex;flex-direction:row;position:relative}.button.s-p{cursor:pointer;height:20px;text-align:center;width:20px}.button.s-p svg{opacity:.7;transition:opacity .2s linear}.button.button-up.s-p svg{transform:rotate(-45deg) translate(-1px,-1px)}.button.button-right.s-p svg{transform:rotate(45deg) translate(1px,-1px)}.button.button-down.s-p svg{transform:rotate(135deg) translate(1px,-3px)}.button.button-left.s-p svg{transform:rotate(-135deg) translate(-1px,-3px)}.button.s-p:hover svg{opacity:1}"};function Rc(t,e){F(e,!0),q(t,ES);let i=g(e,"isShifted",3,!1),o=me(),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),p=Q("aria_label_spherical_control");var m=IS();let f;m.__keydown=[TS,r,a,l,s,d],m.__keyup=[CS,r,u];var b=T(m),y=T(b),$=T(y);$.__mousedown=a,$.__mouseup=u;var S=T($);Dr(S,{direction:"up",useBtnColor:!0}),w($);var C=k($,2);C.__mousedown=d,C.__mouseup=u;var I=T(C);Dr(I,{direction:"up",useBtnColor:!0}),w(C),w(y);var R=k(y,2),E=T(R);E.__mousedown=s,E.__mouseup=u;var A=T(E);Dr(A,{direction:"up",useBtnColor:!0}),w(E);var O=k(E,2);O.__mousedown=l,O.__mouseup=u;var D=T(O);Dr(D,{direction:"up",useBtnColor:!0}),w(O),w(R),w(b),w(m),B(U=>{f=se(m,1,"immersive-controls s-p",null,f,U),Ue(m,"aria-label",p)},[()=>({"m-shifted":i()})]),_t("mouseleave",$,u),_t("mouseleave",C,u),_t("mouseleave",E,u),_t("mouseleave",O,u),_(t,m),H()}st(["keydown","keyup","mousedown","mouseup"]);var Bs=require("@vkontakte/videoplayer-shared/es2015");var zb=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var yp=class{constructor(){this.flickeringTimeout=zb(1e3);this.subscriptions=new Bs.Subscription;this.isAuto=!1;this.isLive=!1;this.captions$=new Bs.ValueSubject([]);this.captionsPrepared$=new Bs.ValueSubject([])}subscribe(){return this.subscriptions.add(this.captions$.pipe((0,Bs.filter)(()=>this.isEnabled()),(0,Bs.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 PS=L('<span class="caption-line s-d"><span class="caption-segment s-d"> </span></span>'),AS=L('<span class="caption-line s-d"><span class="caption-segment s-d"></span></span>'),kS=L('<span class="caption-line s-d"><span class="caption-segment s-d"> </span></span>'),LS=L('<div><span class="caption s-d"><!></span></div>'),MS=L("<div><!></div>"),VS={hash:"s-d",code:".subtitles-container.s-d{height:100%;left:0;pointer-events:none;position:absolute;top:0;transition:transform var(--controls-transition-duration);width:100%}.subtitles-container.shifted.s-d{transform:translateY(calc(var(--controls-height)*-1))}.subtitles-container.preview-track-active.s-d{transform:translateY(calc(var(--preview-track-height)*-1))}.preview-track-active.s-d .subtitles-caption:where(.s-d){bottom:var(--preview-track-controls-top-offset)}.subtitles-caption.s-d{bottom:4%;display:flex;justify-content:center;left:4%;position:absolute;right:4%}.subtitles-caption.mobile.s-d{bottom:8%}.subtitles-container.auto.s-d .subtitles-caption:where(.s-d){left:var(--subtitles-caption-margin);right:var(--subtitles-caption-margin)}.caption.s-d{background:rgba(0,0,0,.4);border-radius:4px;display:block;overflow-wrap:normal;padding:4px 8px}.subtitles-container.auto.s-d .caption:where(.s-d){width:100%}.caption-line.s-d{display:block;text-align:center}.subtitles-container.auto.s-d .caption-line:where(.s-d){text-align:left}.caption-segment.s-d{color:var(--white);display:inline-block;font-size:13px;line-height:1.2;white-space:pre-wrap}"};function tl(t,e){F(e,!0),q(t,VS);let[i,o]=Re(),r=()=>x(f,"$currentSubtitle$",i),a=()=>x(y,"$isLive$",i),l=()=>x($,"$isFullscreen",i),d=()=>x(S,"$previewTrackActive",i),s=()=>x(b,"$isAutoSubtitleCaptionVisible$",i),u=g(e,"isMobile",3,!1),p=me(),m=Rt(),f=p.state.currentSubtitle$,b=p.state.isAutoSubtitleCaptionVisible$,y=p.state.isLive$,$=p.ui.isFullscreen,S=p.ui.previewTrackActive,C=v(()=>!!r().isAuto),I=v(()=>!!a()),R=v(()=>e.playerSize.width*.02),E=v(()=>u()&&!l()||n(R)<=m.minSubtitlesFontSize?m.minSubtitlesFontSize:n(R)),A=K(null);De(()=>{var X,oe,j;(X=n(A))==null||X.setIsAuto(n(C)),(oe=n(A))==null||oe.setIsLive(n(I)),(j=n(A))==null||j.setCaptions(e.captions)});let O=K(pi([[]]));Dt(()=>{N(A,new yp().subscribe(),!0);let X=n(A).captionsPrepared$.subscribe(oe=>{N(O,oe,!0)});return()=>{var oe;(oe=n(A))==null||oe.destroy(),X.unsubscribe()}}),Dt(()=>{if(n(C)){let X=window.setTimeout(()=>{b.set(!1)},m.autoSubtitlesTimeout);return()=>{window.clearTimeout(X)}}else b.set(!1)});let D=v(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var U=MS();let z;var G=T(U);{var le=X=>{var oe=LS();let j;var ve=T(oe),ce=T(ve);{var re=we=>{var Z=PS(),Ne=T(Z),ue=T(Ne,!0);w(Ne),w(Z),B(P=>{var Ke;Ge(Ne,`font-size: ${(Ke=n(E))!=null?Ke:""}px`),pe(ue,P)},[()=>Q("subtitles_auto_caption")]),_(we,Z)},_e=(we,Z)=>{{var Ne=P=>{var Ke=Le(),Ce=de(Ke);Ci(Ce,17,()=>n(O),zd,(Y,ie)=>{var Oe=AS(),Be=T(Oe);Ci(Be,21,()=>n(ie),({value:fe,timeAppeared:ee})=>ee,(fe,ee)=>{let Se=()=>n(ee).value,Fe=()=>n(ee).timeAppeared;var qe=Le(),je=de(qe);{var Te=Me=>{var ze=ms();B(()=>pe(ze,Se())),_(Me,ze)};V(je,Me=>{(!Fe()||Fe()<=e.position)&&Me(Te)})}_(fe,qe)}),w(Be),w(Oe),B(()=>{var fe;return Ge(Be,`font-size: ${(fe=n(E))!=null?fe:""}px`)}),_(Y,Oe)}),_(P,Ke)},ue=P=>{var Ke=Le(),Ce=de(Ke);Ci(Ce,17,()=>e.captions,({value:Y})=>Y,(Y,ie)=>{let Oe=()=>n(ie).value;var Be=kS(),fe=T(Be),ee=T(fe,!0);w(fe),w(Be),B(()=>{var Se;Ge(fe,`font-size: ${(Se=n(E))!=null?Se:""}px`),pe(ee,Oe())}),_(Y,Be)}),_(P,Ke)};V(we,P=>{var Ke;n(C)&&((Ke=n(O))!=null&&Ke.length)?P(Ne):P(ue,!1)},Z)}};V(ce,we=>{n(C)&&s()?we(re):we(_e,!1)})}w(ve),w(oe),B(we=>{var Z;j=se(oe,1,"subtitles-caption s-d",null,j,we),Ge(oe,`--subtitles-caption-margin: ${(Z=n(D))!=null?Z:""}%`)},[()=>({mobile:u()})]),_(X,oe)};V(G,X=>{var oe;(e.captions.length||(oe=n(O))!=null&&oe.length)&&X(le)})}w(U),B(X=>z=se(U,1,"subtitles-container s-d",null,z,X),[()=>({shifted:e.shifted,"preview-track-active":d(),auto:n(C)&&!n(I)&&!s()})]),_(t,U),H(),o()}var Wb=require("@vkontakte/videoplayer-core/es2015");var RS=L('<div class="text s-o"> </div>'),NS=L('<div><div class="icon_wrapper s-o"><!></div> <!></div>'),OS={hash:"s-o",code:".wrapper.s-o{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-o{background-size:cover}.icon_wrapper.s-o{align-items:center;display:flex;flex-direction:column;width:400px}.text.s-o{margin-top:20px}"};function Nc(t,e){F(e,!0),q(t,OS);let i=g(e,"chromecastDeviceName",3,"chromecastDeviceName"),o=Rt();var r=NS();let a;var l=T(r),d=T(l);$c(d,{get size(){return"48"},get iconState(){return Wb.ChromecastState.CONNECTED}}),w(l);var s=k(l,2);{var u=p=>{var m=RS(),f=T(m);w(m),B(()=>{var b;return pe(f,`Видео воспроизводится на ${(b=i())!=null?b:""}`)}),_(p,m)};V(s,p=>{i()&&p(u)})}w(r),B(p=>{a=se(r,1,"wrapper s-o",null,a,p),Ge(r,`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${e.thumbUrl||""}')`)},[()=>({bgCover:o.features.previewNoEmptySpace})]),_(t,r),H()}var DS=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 yv(t){Je(t,{width:"200",height:"200",viewBox:"460 190 130 90",testId:"error-icon",children:(e,i)=>{var o=DS();_(e,o)},$$slots:{default:!0}})}var BS=L('<div class="container s-4"><!></div>'),FS={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 il(t){q(t,FS);var e=BS(),i=T(e);yv(i,{}),w(e),_(t,e)}var HS=L('<div class="playButton s-c" tabindex="0" role="button"><div class="playButtonBackground s-c"></div> <!></div>'),US=L('<div data-testid="unstarted-thumb"><!></div>'),zS={hash:"s-c",code:".container.s-c{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-c{opacity:0;visibility:hidden}.container.bgCover.s-c{background-size:cover}.playButton.s-c{align-items:center;display:flex;height:var(--big-play-size);justify-content:center;margin:auto;width:var(--big-play-size)}.playButton.s-c,.playButtonBackground.s-c{bottom:0;left:0;position:absolute;right:0;top:0}.playButtonBackground.s-c{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-c:hover .playButtonBackground:where(.s-c){background-color:var(--big-play-hover-bg-color);transform:scale(1.15)}.playButton.s-c svg{position:relative}"};function ol(t,e){F(e,!0),q(t,zS);let i=g(e,"iconVisible",3,!0),o=me(),r=Rt(),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=US();let p;u.__click=s,u.__contextmenu=function(...b){var y;(y=e.onContextMenu)==null||y.apply(this,b)};var m=T(u);{var f=b=>{var y=HS();y.__keydown=d;var $=k(T(y),2);Vn($,{get size(){return"48"}}),w(y),B(()=>Ue(y,"aria-label",l)),_(b,y)};V(m,b=>{i()&&b(f)})}return w(u),B(b=>{p=se(u,1,"container s-c",null,p,b),Ge(u,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:r.features.previewNoEmptySpace})]),_(t,u),H({handlePressKey:d,handleClick:s})}st(["click","contextmenu","keydown"]);var WS=L('<div data-testid="video_title"><span> </span></div>'),KS={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;color:var(--white);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}.hidden.s-1c{opacity:0;transform:translateY(calc(var(--controls-gradient-height)*-1));visibility:hidden}"};function xv(t,e){F(e,!0),q(t,KS);let i=g(e,"title",3,""),o=g(e,"isHidden",3,!1),r=g(e,"ref",15),a=K(void 0);Dt(()=>{var m;requestAnimationFrame(()=>{var f;(f=e.onVisibilityChanged)==null||f.call(e,!0)});function p(f){var b;f.propertyName==="transform"&&((b=e.onVisibilityChanged)==null||b.call(e,!o()))}return(m=n(a))==null||m.addEventListener("transitionend",p),()=>{var f;return(f=n(a))==null?void 0:f.removeEventListener("transitionend",p)}});var l=WS();let d;var s=T(l),u=T(s,!0);w(s),nt(s,p=>r(p),()=>r()),w(l),nt(l,p=>N(a,p),()=>n(a)),B(p=>{d=se(l,1,"title s-1c",null,d,p),pe(u,i())},[()=>({hidden:o()})]),_(t,l),H()}var Kb=require("@vkontakte/videoplayer-shared/es2015");var qS=L('<div class="timer__cell cell s-1d"><span class="cell__value s-1d"> </span> <span class="cell__unit s-1d"> </span></div> <span class="timer__points s-1d"> </span>',1),QS=L('<div class="timer__cell cell s-1d"><span class="cell__value s-1d"> </span> <span class="cell__unit s-1d"> </span></div> <span class="timer__points s-1d"> </span>',1),GS=L('<div class="timer__cell cell s-1d"><span class="cell__value s-1d"> </span> <span class="cell__unit s-1d"> </span></div> <span class="timer__points s-1d"> </span>',1),YS=L('<div class="timer__cell cell s-1d"><span class="cell__value s-1d"> </span> <span class="cell__unit s-1d"> </span></div>'),jS=L("<div><!> <!> <!> <!></div>"),XS={hash:"s-1d",code:".timer__container.s-1d{align-items:flex-start;display:flex;justify-content:center}.cell.s-1d{align-items:center;display:flex;flex-direction:column}.cell__value.s-1d{font-size:48px;font-weight:600;line-height:1.2}.small.s-1d .cell__value:where(.s-1d){font-size:24px}.cell__unit.s-1d{font-size:14px;font-weight:400;line-height:1.2}.small.s-1d .cell__unit:where(.s-1d){font-size:12px}.timer__points.s-1d{display:inline-block;font-size:42px;font-weight:600;line-height:1.2;margin:0 8px}.small.s-1d .timer__points:where(.s-1d){font-size:20px}"};function wv(t,e){F(e,!0),q(t,XS);let i=K(""),o=K(""),r=K(""),a=K(""),l,d=32,s=d/2,u=U=>String(U).padStart(2,"0"),p=U=>Math.max(U.length,1),m=U=>`${(e.isSmallSize?s:d)*p(U)}px`,f=U=>{let z=Math.floor(U/86400);z&&(U-=z*86400,N(i,u(z),!0));let G=Math.floor(U/3600);N(o,u(G),!0);let le=Math.floor(U/60)%60;N(r,u(le),!0);let X=U%60;N(a,u(X),!0)},b=()=>{let U=Math.floor(Date.now()/1e3),z=e.startTime-U;f(z),z>=1?l=requestAnimationFrame(b):e.onTimerOver()};Dt(()=>{l=requestAnimationFrame(b)}),vn(()=>{cancelAnimationFrame(l)});var y=jS();let $;var S=T(y);{var C=U=>{var z=qS(),G=de(z);let le;var X=T(G),oe=T(X,!0);w(X);var j=k(X,2),ve=T(j,!0);w(j),w(G);var ce=k(G,2),re=T(ce,!0);w(ce),B((_e,we,Z)=>{le=Ge(G,"",le,{width:_e}),pe(oe,n(i)),pe(ve,we),pe(re,Z)},[()=>m(n(i)),()=>Q("waiting_live_day_value"),()=>Q("waiting_live_colon")]),_(U,z)};V(S,U=>{n(i)&&U(C)})}var I=k(S,2);{var R=U=>{var z=QS(),G=de(z);let le;var X=T(G),oe=T(X,!0);w(X);var j=k(X,2),ve=T(j,!0);w(j),w(G);var ce=k(G,2),re=T(ce,!0);w(ce),B((_e,we,Z)=>{le=Ge(G,"",le,{width:_e}),pe(oe,n(o)),pe(ve,we),pe(re,Z)},[()=>m(n(o)),()=>Q("waiting_live_hour_value"),()=>Q("waiting_live_colon")]),_(U,z)};V(I,U=>{n(o)&&U(R)})}var E=k(I,2);{var A=U=>{var z=GS(),G=de(z);let le;var X=T(G),oe=T(X,!0);w(X);var j=k(X,2),ve=T(j,!0);w(j),w(G);var ce=k(G,2),re=T(ce,!0);w(ce),B((_e,we,Z)=>{le=Ge(G,"",le,{width:_e}),pe(oe,n(r)),pe(ve,we),pe(re,Z)},[()=>m(n(r)),()=>Q("waiting_live_minute_value"),()=>Q("waiting_live_colon")]),_(U,z)};V(E,U=>{n(r)&&U(A)})}var O=k(E,2);{var D=U=>{var z=YS();let G;var le=T(z),X=T(le,!0);w(le);var oe=k(le,2),j=T(oe,!0);w(oe),w(z),B((ve,ce)=>{G=Ge(z,"",G,{width:ve}),pe(X,n(a)),pe(j,ce)},[()=>m(n(a)),()=>Q("waiting_live_second_value")]),_(U,z)};V(O,U=>{n(a)&&U(D)})}w(y),B(U=>$=se(y,1,"timer__container s-1d",null,$,U),[()=>({small:e.isSmallSize})]),_(t,y),H()}var ZS=L('<div class="waiting s-l"><span> </span></div>'),JS=L('<div class="upcoming-timer timer s-l"><span> </span> <!></div>'),e2=L('<div class="waiting-container s-l"><!></div>'),t2={hash:"s-l",code:'.waiting-container.s-l{background-color:var(--black);background-position:50%;background-repeat:no-repeat;background-size:cover;white-space:nowrap}.waiting-container.s-l,.waiting-container.s-l:before{height:100%;left:0;position:absolute;top:0;width:100%}.waiting-container.s-l:before{backdrop-filter:blur(15px);background-color:rgba(0,0,0,.56);content:"";z-index:1}.waiting.s-l{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-l{font-size:20px;font-weight:600;line-height:1.2}.upcoming-timer.s-l{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:2}.timer.s-l{align-items:center;display:flex;flex-direction:column;justify-content:center}.timer__title.s-l{display:inline-block;font-size:20px;font-weight:600;line-height:1.2;margin-bottom:12px;vertical-align:middle}.small.s-l{font-size:15px}.medium.s-l{font-size:17px}'};function Oc(t,e){F(e,!0),q(t,t2);let i=g(e,"startTime",3,0),o=v(()=>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=v(()=>{var S,C;return((S=n(d))!=null?S:1/0)<=509||((C=n(s))!=null?C:1/0)<=320}),p=v(()=>{var S,C;return!n(u)&&(((S=n(d))!=null?S:1/0)<=699||((C=n(s))!=null?C:1/0)<=599)}),m=e.onUpcomingLiveViewStateChanged?(0,Kb.throttleFn)(()=>{cancelAnimationFrame(l),l=requestAnimationFrame(()=>{let S={type:n(o)?"expired":"default",size:n(u)?"s":n(p)?"m":"l"},C=n(o)?n(r):n(a);e.onUpcomingLiveViewStateChanged(S,C)})},300):void 0;De(()=>{n(s),n(d),n(o),m==null||m()}),vn(()=>{if(cancelAnimationFrame(l),m==null||m.cancel(),e.onUpcomingLiveViewStateChanged){let S={type:n(o)?"expired":"default",size:n(u)?"s":n(p)?"m":"l"};e.onUpcomingLiveViewStateChanged(S)}});var f=e2();f.__contextmenu=function(...S){var C;(C=e.onContextMenu)==null||C.apply(this,S)},f.__click=function(...S){var C;(C=e.onClick)==null||C.apply(this,S)};var b=T(f);{var y=S=>{var C=ZS(),I=T(C);let R;var E=T(I,!0);w(I),w(C),nt(C,A=>N(r,A),()=>n(r)),B((A,O)=>{R=se(I,1,"waiting__title s-l",null,R,A),pe(E,O)},[()=>({medium:n(p),small:n(u)}),()=>Q("waiting_live_upcoming_title")]),_(S,C)},$=S=>{var C=JS(),I=T(C);let R;var E=T(I,!0);w(I);var A=k(I,2);let O=v(()=>n(u)||n(p)),D=v(()=>i()||0);wv(A,{get isSmallSize(){return n(O)},get startTime(){return n(D)},onTimerOver:()=>N(o,!0)}),w(C),nt(C,U=>N(a,U),()=>n(a)),B((U,z)=>{R=se(I,1,"timer__title s-l",null,R,U),pe(E,z)},[()=>({medium:n(p),small:n(u)}),()=>Q("waiting_live_timer_title")]),_(S,C)};V(b,S=>{n(o)?S(y):S($,!1)})}w(f),B(()=>Ge(f,`background-image: url(${e.thumbUrl})`)),Ln(f,"clientWidth",S=>N(d,S)),Ln(f,"clientHeight",S=>N(s,S)),_(t,f),H()}st(["contextmenu","click"]);var i2=L('<div class="waiting-container s-m"><div class="waiting-caption s-m"><!> <p class="waiting-title s-m"> </p></div></div>'),o2={hash:"s-m",code:'.waiting-container.s-m{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-m,.waiting-container.s-m:before{height:100%;left:0;position:absolute;top:0;width:100%}.waiting-container.s-m:before{backdrop-filter:blur(10px);background-color:rgba(0,0,0,.4);content:""}.waiting-caption.s-m{align-items:center;display:flex;flex-direction:column;position:relative}.waiting-title.s-m{font-size:20px;font-weight:400;line-height:1.2;margin:0;padding:20px;text-align:center}'};function nl(t,e){F(e,!0),q(t,o2);let i=g(e,"thumbUrl",3,""),o={recover:Q("waiting_live_recover_title"),record:Q("waiting_record_title")},r=v(()=>o[e.kind]||"");var a=i2();a.__contextmenu=function(...p){var m;(m=e.onContextMenu)==null||m.apply(this,p)},a.__click=function(...p){var m;(m=e.onClick)==null||m.apply(this,p)};var l=T(a),d=T(l);Ka(d,{style:"position: static; transform: translate(0, 0)"});var s=k(d,2),u=T(s,!0);w(s),w(l),w(a),B(()=>{Ge(a,`background-image: url('${i()}')`),pe(u,n(r))}),_(t,a),H()}st(["contextmenu","click"]);var n2=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 Sv(t){Je(t,{width:"16",height:"16",testId:"check-mark-icon",children:(e,i)=>{var o=n2();_(e,o)},$$slots:{default:!0}})}var r2=L('<div class="select-icon s-1x"><!></div>'),s2={hash:"s-1x",code:".select-icon.s-1x{margin-right:auto;opacity:.9;padding-right:12px;position:relative;top:3px}"};function Dc(t){q(t,s2);var e=r2(),i=T(e);Sv(i,{}),w(e),_(t,e)}var a2=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},l2=(t,e)=>{jl(t,()=>e.item.selectItem(e.item.value))},d2=L("<p> </p>"),c2=L('<p class="sublabel s-1t"> </p>'),u2=L('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),p2={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 Tv(t,e){F(e,!0),q(t,p2);let i=g(e,"isMobile",3,!1);var o=u2();let r;o.__click=[a2,e],o.__keydown=[l2,e];var a=T(o);{var l=y=>{Dc(y,{})};V(a,y=>{e.item.selected&&y(l)})}var d=k(a,2);let s;var u=T(d);{var p=y=>{var $=Le(),S=de($);Ni(S,()=>e.item.valueComponent,(C,I)=>{I(C,ks(()=>{var R;return(R=e.item.valueComponentParams)!=null?R:{}}))}),_(y,$)},m=y=>{var $=d2();let S;var C=T($,!0);w($),B(I=>{var R;S=se($,1,"label s-1t",null,S,I),pe(C,(R=e.item.label)!=null?R:e.item.value)},[()=>({mobile:i()})]),_(y,$)};V(u,y=>{e.item.valueComponent?y(p):y(m,!1)})}var f=k(u,2);{var b=y=>{var $=c2(),S=T($,!0);w($),B(()=>pe(S,e.item.sublabel)),_(y,$)};V(f,y=>{e.item.sublabel&&y(b)})}w(d),w(o),B((y,$,S)=>{r=se(o,1,"item",null,r,y),Ue(o,"data-value",e.item.value),Ue(o,"aria-label",$),Ue(o,"data-testid",e.item.dataTestid),s=se(d,1,"menu-item-value s-1t",null,s,S),Ue(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),H()}st(["click","keydown"]);var f2=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function Cv(t,e){F(e,!0);let i=g(e,"isMobile",3,!1),o=g(e,"refMenuItems",15),r=v(()=>()=>e.openSubMenuList(e.item.children)),a=v(()=>$=>ip($,n(r)));var l=f2();let d;l.__click=function(...$){var S;(S=n(r))==null||S.apply(this,$)},l.__keydown=function(...$){var S;(S=n(a))==null||S.apply(this,$)};var s=T(l);{var u=$=>{Dc($,{})};V(s,$=>{e.item.selected&&$(u)})}var p=k(s,2);let m;var f=T(p);{var b=$=>{var S=Le();let C=v(()=>e.item.valueComponent);var I=de(S);Ni(I,()=>n(C),(R,E)=>{E(R,ks(()=>{var A;return(A=e.item.valueComponentParams)!=null?A:{}}))}),_($,S)},y=$=>{var S=ms();B(()=>pe(S,e.item.label)),_($,S)};V(f,$=>{e.item.valueComponent?$(b):$(y,!1)})}w(p),w(l),nt(l,$=>o(o()[e.item.id]=$,!0),()=>{var $;return($=o())==null?void 0:$[e.item.id]}),B(($,S)=>{var C;d=se(l,1,"item",null,d,$),Ue(l,"aria-label",(C=e.item.ariaLabel)!=null?C:e.item.label),Ue(l,"data-testid",e.item.id),m=se(p,1,"menu-item-value",null,m,S)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),_(t,l),H()}st(["click","keydown"]);var is={"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 v2=(t,e)=>{ab(t,e.returnFromSubMenu,e.closeSettingsMenu)},g2=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},h2=(t,e)=>{ac(t)&&(Br(t),e.returnFromSubMenu())},_2=L('<div><ul role="menu"><li role="menuitem" tabindex="0" data-testid="return-to-settings-menu"><!> <p class="title s-1j"> </p></li> <!></ul></div>'),b2={hash:"s-1j",code:".sub-menu.s-1j{--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-1j .item.mobile{font-size:14px;line-height:var(--item-label-line-height);padding:var(--item-padding-vertical-mobile) 17px}.sub-menu.s-1j{padding-top:calc(var(--edge-item-padding-vertical) + var(--item-padding-vertical) + var(--item-label-line-height))}.sub-menu.mobile.s-1j{padding-top:calc(var(--edge-item-padding-vertical-mobile) + var(--item-padding-vertical-mobile) + var(--item-label-line-height) + 1px)}.sub-menu.s-1j .items:where(.s-1j) .item.header:where(.s-1j){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-1j .title:where(.s-1j){margin-left:8px}.sub-menu.s-1j .item{padding:var(--item-padding-vertical) 12px;padding-right:22px}.items.s-1j .item:first-child:not(.mobile){padding-top:var(--edge-item-padding-vertical)}.items.s-1j .item:last-child:not(.mobile){padding-bottom:var(--edge-item-padding-vertical)}.items.s-1j .item.mobile:first-child{padding-top:var(--edge-item-padding-vertical-mobile)}.items.s-1j .item.mobile:last-child{padding-bottom:var(--edge-item-padding-vertical-mobile)}.sub-menu.s-1j .item.bottomBordered{border-bottom:var(--divider-border)}.sub-menu.s-1j .item .sublabel{font-size:12px;line-height:14px}.item.s-1j:not(.mobile) p:where(.s-1j),.sub-menu.s-1j .item:not(.mobile) .label{font-size:13px;line-height:var(--item-label-line-height)}"};function Ev(t,e){F(e,!0),q(t,b2);let[i,o]=Re(),r=()=>x(m,"$isFullscreen",i),a=()=>x(f,"$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);Dt(()=>{let X=e.items.findIndex(oe=>oe.selected);u().children[X+1].focus()});let p=me(),m=p.ui.isFullscreen,f=p.ui.playerSize,b=K(void 0),y=K(0),$=K(0),S=v(()=>l()&&r()?`max-height: ${Math.round(a().height*.6)}px`:l()?"":`max-height: ${a().height-32-n($)-d()}px; overflow: auto;`),C=v(()=>Math.max(e.minWidth,n(y)));var I=_2();let R;var E=T(I);let A;E.__keydown=[v2,e];var O=T(E);let D;O.__click=[g2,e],O.__keydown=[h2,e];var U=T(O);Dr(U,{direction:"left"});var z=k(U,2),G=T(z,!0);w(z),w(O),nt(O,X=>N(b,X),()=>n(b));var le=k(O,2);Ci(le,17,()=>e.items,zd,(X,oe)=>{var j=Le(),ve=de(j);{var ce=_e=>{Tv(_e,{get item(){return n(oe)},get isMobile(){return l()}})},re=(_e,we)=>{{var Z=Ne=>{Cv(Ne,{get isMobile(){return l()},get item(){return n(oe)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};V(_e,Ne=>{n(oe).type==="OPEN_SUB_MENU"&&Ne(Z)},we)}};V(ve,_e=>{n(oe).type==="SELECT_VALUE"?_e(ce):_e(re,!1)})}_(X,j)}),w(E),nt(E,X=>u(X),()=>u()),w(I),B((X,oe,j)=>{R=se(I,1,"sub-menu menu s-1j",null,R,X),Ue(I,"data-testid",`sub-menu-${e.id}`),Ge(I,`min-width: ${n(C)}px`),A=se(E,1,"items s-1j",null,A,oe),Ge(E,n(S)),D=se(O,1,"item header back s-1j",null,D,j),Ue(O,"aria-label",s()),pe(G,e.title)},[()=>({desktop:!l(),mobile:l()}),()=>({mobile:l()}),()=>({mobile:l()})]),Ln(O,"clientWidth",X=>N(y,X)),Ln(O,"clientHeight",X=>N($,X)),_(t,I),H(),o()}st(["keydown","click"]);var Qb=require("@vkontakte/videoplayer-shared/es2015");var $2=(t,e)=>ip(t,e()),y2=(t,e)=>{t.stopPropagation(),e()()},x2=L('<div class="value s-1k"> </div>'),w2=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),S2={hash:"s-1k",code:".value.s-1k{opacity:.7;overflow:hidden;position:relative;text-overflow:ellipsis}"};function Pv(t,e){F(e,!0),q(t,S2);let i=g(e,"isMobile",3,!1),o=g(e,"onClick",3,Qb.noop),r=g(e,"valueComponent",3,void 0),a=g(e,"ref",15);var l=w2();let d;l.__click=[y2,o],l.__keydown=[$2,o];var s=T(l),u=T(s);{var p=C=>{Xa(C,{get icon(){return e.icon}})},m=C=>{var I=Le();let R=v(()=>e.icon);var E=de(I);Ni(E,()=>n(R),(A,O)=>{O(A,{})}),_(C,I)};V(u,C=>{typeof e.icon=="string"?C(p):C(m,!1)})}w(s);var f=k(s,2),b=T(f,!0);w(f);var y=k(f,2);{var $=C=>{var I=Le();let R=v(r);var E=de(I);Ni(E,()=>n(R),(A,O)=>{O(A,{})}),_(C,I)},S=C=>{var I=x2(),R=T(I,!0);w(I),B(()=>pe(R,e.value)),_(C,I)};V(y,C=>{r()?C($):C(S,!1)})}w(l),nt(l,C=>a(C),()=>a()),B(C=>{d=se(l,1,"item",null,d,C),Ue(l,"aria-label",e.ariaLabel),Ue(l,"data-testid",e.id),pe(b,e.label)},[()=>({mobile:i()})]),_(t,l),H()}st(["click","keydown"]);var Av=require("@vkontakte/videoplayer-shared/es2015");var T2=(t,e)=>{jl(t,()=>e())},C2=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),I2=L('<img class="icon" aria-hidden="true"/>'),E2=L('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label s-1l"> </div></li>'),P2={hash:"s-1l",code:".label.s-1l{overflow:hidden;text-overflow:ellipsis}"};function kv(t,e){F(e,!0),q(t,P2);let i=g(e,"isMobile",3,!1),o=g(e,"onClick",3,Av.noop),r=g(e,"closeSettings",3,Av.noop),a=K(!1),l=()=>{N(a,!0)},d=S=>{S==null||S.stopPropagation(),o()(),r()()};var s=E2();let u;s.__click=d,s.__keydown=[T2,d];var p=T(s),m=T(p);{var f=S=>{var C=Le(),I=de(C);{var R=A=>{var O=C2();_(A,O)},E=A=>{var O=I2();B(()=>Ue(O,"src",e.icon)),_t("error",O,l),Aa(O),_(A,O)};V(I,A=>{n(a)?A(R):A(E,!1)})}_(S,C)},b=S=>{var C=Le();let I=v(()=>e.icon);var R=de(C);Ni(R,()=>n(I),(E,A)=>{A(E,{})}),_(S,C)};V(m,S=>{typeof e.icon=="string"?S(f):S(b,!1)})}w(p);var y=k(p,2),$=T(y,!0);w(y),w(s),B(S=>{var C;u=se(s,1,"item",null,u,S),Ue(s,"aria-label",(C=e.ariaLabel)!=null?C:e.label),Ue(s,"data-testid",e.id),pe($,e.label)},[()=>({mobile:i()})]),_(t,s),H()}st(["click","keydown"]);var Gb=require("@vkontakte/videoplayer-shared/es2015");var A2=L('<div class="toggle_wrap s-1r"><div></div> <div class="toggle-label s-1r"></div></div>'),k2={hash:"s-1r",code:'.toggle_wrap.s-1r{cursor:pointer;font-size:12px;line-height:15px;min-height:15px;padding:0;user-select:none}.toggle.s-1r{background-color:var(--toggle-color-separator);border-radius:45px;cursor:pointer;float:right;height:9px;margin-top:3px;width:28px}.toggle.s-1r:after{background-color:var(--toggle-color-off);border-radius:50%;content:"";float:left;height:15px;left:0;position:relative;top:-3px;transition:left .1s ease;width:15px}.toggle.on.s-1r:after{background-color:var(--toggle-color-on);left:13px}.toggle-label.s-1r{overflow:hidden}'};function Lv(t,e){q(t,k2);let i=g(e,"enabled",3,!1);var o=A2(),r=T(o);let a;vi(2),w(o),B(l=>a=se(r,1,"toggle s-1r",null,a,l),[()=>({on:i()})]),_(t,o)}var L2=(t,e,i)=>{lb(t,e(),o=>i()(o))},M2=(t,e,i)=>{t.stopPropagation(),e()(!i())},V2=L('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),R2=L('<li role="menuitem" tabindex="0"><!></li>');function Mv(t,e){F(e,!0);let i=g(e,"isMobile",3,!1),o=g(e,"onClick",3,Gb.noop),r=g(e,"enabled",3,!1),a=g(e,"tooltipText",3,void 0),l=g(e,"maxTooltipWidth",3,void 0);var d=R2();let s;d.__click=[M2,o,r],d.__keydown=[L2,r,o];var u=T(d);Qa(u,{get content(){return a()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return l()},children:(p,m)=>{var f=V2();let b;var y=T(f),$=T(y);{var S=A=>{Xa(A,{get icon(){return e.icon}})},C=A=>{var O=Le();let D=v(()=>e.icon);var U=de(O);Ni(U,()=>n(D),(z,G)=>{G(z,{})}),_(A,O)};V($,A=>{typeof e.icon=="string"?A(S):A(C,!1)})}w(y);var I=k(y,2),R=T(I,!0);w(I);var E=k(I,2);Lv(E,{get enabled(){return r()}}),w(f),B(A=>{b=se(f,1,"switch-wrapper",null,b,A),pe(R,e.label)},[()=>({mobile:i()})]),_(p,f)},$$slots:{default:!0}}),w(d),B(p=>{var m;s=se(d,1,"item switch-item",null,s,p),Ue(d,"aria-label",(m=e.ariaLabel)!=null?m:e.label),Ue(d,"data-testid",e.id)},[()=>({mobile:i()})]),_(t,d),H()}st(["click","keydown"]);var Fc=require("@vkontakte/videoplayer-shared/es2015");var Yb=()=>{let t=K(pi([])),e=v(()=>(n(t).length?n(t).at(-1):null)||null);return{get current(){return n(e)},pushSubMenu:i=>{n(t).push(i)},popSubMenu:()=>{N(t,n(t).slice(0,-1),!0)},popAllSubMenus:()=>{N(t,[],!0)}}};var N2=L('<div class="quality-icon s-1m"><!></div>'),O2=L('<div class="quality-label s-1m"><span> </span> <!></div>'),D2={hash:"s-1m",code:".quality-label.s-1m{position:relative}.quality.s-1m{font-size:13px;line-height:18px}.quality.sub.s-1m{opacity:.7}.quality-icon.s-1m{display:flex;padding-left:2px;position:absolute;right:0;top:0;transform:translateX(100%)}.quality-icon.s-1m svg{color:var(--blue-light)}"};function rl(t,e){F(e,!0),q(t,D2);let i=g(e,"isSubCase",3,!1),o=v(()=>ap(e.quality));var r=O2(),a=T(r);let l;var d=T(a,!0);w(a);var s=k(a,2);{var u=p=>{var m=N2();let f=v(()=>n(o));var b=T(m);Ni(b,()=>n(f),(y,$)=>{$(y,{})}),w(m),_(p,m)};V(s,p=>{n(o)&&!e.isMobile&&p(u)})}w(r),B(p=>{l=se(a,1,"s-1m",null,l,p),pe(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),_(t,r),H()}var Jb=require("@vkontakte/videoplayer-shared/es2015");var Vv=require("@vkontakte/videoplayer-core/es2015");var jb=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},Xb=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=jb({quality:t,availableQualities:e});return i?t===Vv.VideoQuality.INVARIANT?Q("auto_quality_invariant"):Q("auto_quality",{actual:o}):o},Zb=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===Vv.VideoQuality.INVARIANT?i:`${i}${jb({quality:t,availableQualities:e})}`:"...";var B2=L('<div class="menu-item-value-wrapper s-1q"><!></div>'),F2={hash:"s-1q",code:".menu-item-value-wrapper.s-1q{line-height:normal}"};function ld(t,e){F(e,!0),q(t,F2);let[i,o]=Re(),r=()=>x(s,"$currentQuality$",i),a=()=>x(u,"$availableQualities$",i),l=()=>x(p,"$isMobile$",i),d=me(),s=d.state.currentQuality$,u=d.state.availableQualities$,p=d.ui.isMobile,m=" · ",f=v(()=>e.prefix+(e.selected&&r()!==Jb.VideoQuality.INVARIANT?m:"")),b=v(()=>Zb({prefix:n(f),quality:r(),availableQualities:a(),onlyPrefix:!e.selected}));var y=B2(),$=T(y);let S=v(()=>e.selected?r():void 0);rl($,{get quality(){return n(S)},get label(){return n(b)},get isMobile(){return l()},isSubCase:!0}),w(y),_(t,y),H(),o()}var H2=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")},U2={br:!0,span:!0},Rv=(t,e={})=>{var d,s,u,p,m,f,b;if(!t)return t;let i=Ae(Ae({},U2),e),o=Object.keys(i);if(!o.length)return t;let r=H2(o),a=[],l=0;for(let y of t.matchAll(r)){let $=y[0],S=((d=y.groups)==null?void 0:d.keyhtml)||((s=y.groups)==null?void 0:s.keyi18n)||((u=y.groups)==null?void 0:u.keyhtmlself)||((p=y.groups)==null?void 0:p.keyi18nself)||"",{index:C}=y;if(!i[S]){a.push(t.slice(l,C)),l=C+$.length;continue}let I=(m=y.groups)!=null&&m.childrenhtml?Rv(y.groups.childrenhtml,i):"",R=(f=y.groups)!=null&&f.childrenhtml?$.replace(new RegExp((b=y.groups)==null?void 0:b.childrenhtml),()=>I||""):$;a.push(t.slice(l,C),R),l=C+$.length}return l===0?t:(a.push(t.slice(l)),a.join(""))};function Bc(t,e){F(e,!1);let i=g(e,"message",8),o=Rv(i());Co();var r=Le(),a=de(r);{var l=d=>{var s=Le(),u=de(s);Wd(u,()=>o),_(d,s)};V(a,d=>{o&&d(l)})}_(t,r),H()}var z2=L('<p class="quality-applies sublabel s-1p"><!></p>'),W2={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 Nv(t,e){F(e,!1),q(t,W2),Co();var i=z2(),o=T(i);let r=In(()=>Q("quality_applience",{action:`<span>${Q("quality_applience_action")}</span>`}));Bc(o,{get message(){return n(r)}}),w(i),_(t,i),H()}var t$=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:ld,valueComponentParams:{prefix:Q("other_quality"),selected:o},children:"QUALITY"}},Ov=({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}),i$=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:Nv,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),Dv=({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")}),Bv=({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 xp=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),wp=(t,e)=>{var l;if(!t)return"";let{language:i,label:o}=t,r;if(i==="und"?r=void 0:i&&(r=(l=wc(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=xp(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=xp(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=xp(t,d);return Q("audio_stream_display_language_index",{language:r,index:s})}}let a=xp(t,e);return Q("audio_stream_display_unknown",{index:a})};var K2={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:r}=t,a=[];return i&&a.push({handler:Ov,selected:e&&!o&&!r||!1}),a.push({handler:Bv,selected:o},{handler:Dv,selected:r}),{title:Q("submenu_quality"),id:"QUALITY_DETAILS",items:[i$(t),...a.map(({handler:l,selected:d})=>l({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),t$(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:Q("submenu_quality"),closeSettingsMenu:t,items:i.map(r=>({type:"SELECT_VALUE",value:r.value,valueComponent:rl,valueComponentParams:{quality:r.value,label:r.displayValue,isMobile:o,isSubCase:!0},selectItem:a=>e(a,"to-video"),selected:r.selected,label:r.displayValue}))}),QUALITY_APPLIENCE:t=>{var i,o,r;let{closeSettingsMenu:e}=t;return{id:"QUALITY_APPLIENCE",title:Q("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:Ov,selected:((i=Ku())==null?void 0:i.type)==="auto_quality"},{handler:Bv,selected:((o=Ku())==null?void 0:o.type)==="traffic_saving"},{handler:Dv,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_LANGUAGES:({closeSettingsMenu:t,availableAudioStreams:e,currentAudioStream:i,selectAudioLanguage:o})=>({id:"AUDIO_LANGUAGES",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:wp(r,e)}))}),PLAYBACK_RATE_SUB_MENU:({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"PLAYBACK_RATE_SUB_MENU",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===Nn?"sub_off":void 0}))})},o$=({subMenuId:t,context:e})=>t?[K2[t](e)]:[];var q2=Ee('<path d="M.1 6.5c0-2.24 0-3.36.44-4.22A4 4 0 0 1 2.28.54C3.14.1 4.26.1 6.5.1h5c2.24 0 3.36 0 4.22.44a4 4 0 0 1 1.74 1.74c.44.86.44 1.98.44 4.22s0 3.36-.44 4.22a4 4 0 0 1-1.74 1.74c-.84.43-1.93.44-4.07.44l.55 2.2h1.9a.9.9 0 0 1 0 1.8H3.9a.9.9 0 1 1 0-1.8h1.9l.55-2.2c-2.14 0-3.23-.01-4.07-.44a4 4 0 0 1-1.74-1.74C.1 9.86.1 8.74.1 6.5m11.4-4.6h-5c-1.15 0-1.9 0-2.48.05-.56.04-.79.12-.92.19a2.2 2.2 0 0 0-.96.96 2 2 0 0 0-.2.92C1.9 4.6 1.9 5.35 1.9 6.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 0 0 .96-.96c.07-.13.15-.36.2-.92.04-.58.04-1.33.04-2.48s0-1.9-.05-2.48a3 3 0 0 0-.19-.92 2.2 2.2 0 0 0-.96-.96 2 2 0 0 0-.92-.2c-.58-.04-1.33-.04-2.48-.04m-3.3 11-.55 2.2h2.7l-.55-2.2z"></path>');function Fv(t){Je(t,{testId:"traffic-saving-icon",children:(e,i)=>{var o=q2();_(e,o)},$$slots:{default:!0}})}var Q2=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 Hv(t){Je(t,{width:"18",height:"15",children:(e,i)=>{var o=Q2();_(e,o)},$$slots:{default:!0}})}var G2=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 Uv(t){Je(t,{testId:"play-speed-icon",children:(e,i)=>{var o=G2();_(e,o)},$$slots:{default:!0}})}var Y2=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(t){Je(t,{testId:"download-icon",children:(e,i)=>{var o=Y2();_(e,o)},$$slots:{default:!0}})}var j2=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 Wv(t){Je(t,{testId:"report-icon",children:(e,i)=>{var o=j2();_(e,o)},$$slots:{default:!0}})}var X2=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 Sp(t){Je(t,{children:(e,i)=>{var o=X2();_(e,o)},$$slots:{default:!0}})}var Z2=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 Kv(t){Je(t,{testId:"info-icon",children:(e,i)=>{var o=Z2();_(e,o)},$$slots:{default:!0}})}var J2=L('<div class="menu-item-value-wrapper s-1u"><!></div>'),eT={hash:"s-1u",code:".menu-item-value-wrapper.s-1u{line-height:normal}"};function qv(t,e){F(e,!0),q(t,eT);let[i,o]=Re(),r=()=>x(u,"$currentQuality$",i),a=()=>x(p,"$availableQualities$",i),l=()=>x(m,"$isAutoQualityEnabled$",i),d=()=>x(f,"$isMobile$",i),s=me(),u=s.state.currentQuality$,p=s.state.availableQualities$,m=s.state.isAutoQualityEnabled$,f=s.ui.isMobile,b=v(()=>Xb({quality:r(),availableQualities:a(),isAutoQualityEnabled:l()}));var y=J2(),$=T(y);rl($,{get quality(){return r()},get label(){return n(b)},get isMobile(){return d()}}),w(y),_(t,y),H(),o()}var iT={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:mc,label:Q("menu_quality"),value:e,valueComponent:qv,weight:is["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:is["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:Q("aria_label_submenu_traffic_saving"),icon:Fv,label:Q("menu_traffic_saving"),enabled:t,tooltipText:Q("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=wp(t,e);return{id:"AUDIO_LANGUAGES",weight:is["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:Q("aria_label_menu_audio_languages",{actual:i}),icon:Hv,label:Q("menu_audio_languages"),value:i,children:"AUDIO_LANGUAGES"}},PLAYBACK_RATE:({availablePlaybackRates:t,currentPlaybackRate:e})=>{var o;let i=((o=t.find(r=>r.value===e))==null?void 0:o.displayValue)||"";return{id:"PLAYBACK_RATE",weight:is["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:Q("aria_label_menu_rate",{actual:i}),icon:Uv,label:Q("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:is["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:Q("aria_label_menu_subtitle",{actual:t.displayValue}),icon:la,label:Q("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:is.download,type:"CLICK",onClick:t,label:Q("download_video_caption"),ariaLabel:Q("aria_label_menu_download"),icon:zv}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:is.report,type:"CLICK",onClick:t,label:Q("menu_report"),ariaLabel:`${Q("menu_report")}. ${Q("aria_label_new_tab_alert")}`,icon:Wv,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:is["copy-data"],type:"CLICK",onClick:t,label:Q("menu_copy_debug"),ariaLabel:Q("menu_copy_debug"),icon:Sp,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:is["save-trace-info"],type:"CLICK",onClick:t,label:Q("menu_save_debug"),ariaLabel:Q("menu_save_debug"),icon:Sp,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t})=>({id:"DEBUG_INFO",weight:is["debug-info"],type:"CLICK",onClick:t,ariaLabel:Q("aria_label_menu_debug_overlay"),label:Q("menu_debug_overlay"),icon:Kv,isHiddenFor:["desktop"]})},n$=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(r=>iT[r](e)),...i.map(r=>qt(Ae({},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(za)};var nT=(t,e)=>{tp(t,e)},rT=L('<div><div> </div> <div class="close s-q"></div></div>'),sT=L('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),aT=L("<div><!> <!></div>"),lT={hash:"s-q",code:'.settings-menu-container.mobile.s-q{width:100%}.settings-menu-container.s-q ul{list-style-type:none;margin:0;padding:0}.settings-menu-container.s-q .menu{background-color:var(--settings-bg);border-radius:var(--settings-radius);overflow:hidden;transition:opacity .2s,visibility .2s}.settings-menu-container.s-q .menu .item:first-child:not(.mobile){border-top-left-radius:var(--settings-radius);border-top-right-radius:var(--settings-radius)}.settings-menu-container.s-q .menu .item:last-child{border-bottom-left-radius:var(--settings-radius);border-bottom-right-radius:var(--settings-radius)}.settings-menu-container.s-q .settings-menu .item:first-child:not(.mobile){padding-top:6px}.settings-menu-container.s-q .settings-menu .item:last-child:not(.mobile){padding-bottom:6px}.settings-menu-container.s-q .menu.desktop{bottom:0;max-width:100%;position:absolute;right:0}.settings-menu.s-q{line-height:40px}.settings-menu.desktop.s-q{min-width:300px}.settings-menu-container.s-q .menu.mobile{background:var(--mobile-settings-bg);font-size:15px;line-height:50px;width:100%}.settings-menu-container.s-q .menu.mobile.hidden{display:none}.settings-menu-container.s-q .menu .item:not(.switch-item),.settings-menu-container.s-q .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-q .menu .item:hover{background-color:var(--settings-item-bg-hover)}.settings-menu-container.s-q .menu .item.mobile:hover{background:var(--mobile-settings-bg)}.settings-menu.s-q .item:not(.switch-item),.settings-menu.s-q .switch-wrapper{padding:0 32px 0 18px}.settings-menu.s-q .item.mobile:not(.switch-item),.settings-menu.s-q .switch-wrapper.mobile{padding:0 14px}.settings-menu.s-q .icon-wrapper{align-items:center;display:flex;height:24px;justify-content:center;margin-right:16px;min-width:24px;width:24px}.settings-menu.s-q .label{flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis}.settings-menu.s-q .item.header.mobile:where(.s-q){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-q .items::-webkit-scrollbar{width:8px}.settings-menu-container.s-q .items::-webkit-scrollbar-track{background-color:#3a3a3a;border-radius:4px;box-shadow:none}.settings-menu-container.s-q .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-q .items::-webkit-scrollbar-thumb:hover{background-color:#777}.settings-menu-container.s-q .items.mobile{max-height:160px;overflow-x:hidden;overflow-y:auto;text-align:left}.close.s-q{height:12px;margin-right:-12px;padding:12px;position:relative;width:12px}.close.s-q:after,.close.s-q:before{background-color:var(--white);content:" ";height:12px;left:18px;position:absolute;width:2px}.close.s-q:before{transform:rotate(45deg)}.close.s-q:after{transform:rotate(-45deg)}'};function Hc(t,e){F(e,!0),q(t,lT);let[i,o]=Re(),r=()=>x(Be,"$settingsMenuVisible",i),a=()=>x(fe,"$settingsMenuOpenedByKeyboard",i),l=()=>x(ze,"$debugPanelVisible",i),d=()=>x(Se,"$isMobile",i),s=()=>x(Me,"$playerSize",i),u=()=>x(Oe,"$hasMpegSources$",i),p=()=>x(Fe,"$mobileNotReportControlHidden$",i),m=()=>x(Z,"$autoQualityLimitingAvailable$",i),f=()=>x(Y,"$availableSubtitlesList$",i),b=()=>x(qe,"$isLiveWithPlaybackSpeed",i),y=()=>x(re,"$availableAudioStreams$",i),$=()=>x(Ke,"$availablePlaybackRates$",i),S=()=>x(ce,"$currentAudioStream$",i),C=()=>x(P,"$currentPlaybackRate$",i),I=()=>x(je,"$trafficSavingEnabled",i),R=()=>x(_e,"$currentQuality$",i),E=()=>x(Ne,"$isAutoQualityEnabled$",i),A=()=>x(Ce,"$currentSubtitle$",i),O=()=>x(tt,"$additionalSettingsMenuItems$",i),D=()=>x(ue,"$isAutoQualityAvailable$",i),U=()=>x(we,"$availableQualities$",i),z=()=>x(Te,"$highQualityEnabled",i),G=g(e,"ref",15,void 0),le=g(e,"playerControlsHeight",3,0),X=pi({}),oe=pi({}),j=me(),ve=Rt(),ce=j.state.audioStream$,re=j.state.availableAudioStreams$,_e=j.state.currentQuality$,we=j.state.availableQualities$,Z=j.state.autoQualityLimitingAvailable$,Ne=j.state.isAutoQualityEnabled$,ue=j.state.isAutoQualityAvailable$,P=j.state.currentPlaybackRate$,Ke=j.state.availablePlaybackRates$,Ce=j.state.currentSubtitle$,Y=j.state.availableSubtitlesList$,ie=j.state.canDownload,Oe=j.state.hasMpegSources$,Be=j.ui.settingsMenu.visible$,fe=j.ui.settingsMenu.openedByBtnKeyboard$,ee=j.ui.settingsMenu.ref$,Se=j.ui.isMobile,Fe=j.ui.mobileNotReportControlHidden$,qe=j.state.canChangePlaybackSpeed$,je=j.state.trafficSavingEnabled$,Te=j.state.highQualityEnabled$,Me=j.ui.playerSize,ze=j.ui.debugPanelVisible,Nt=j.state.isInteractiveTime$,tt=j.ui.additionalSettingsMenuItems$,Bt=j.ui.t,Qt=j.actions.internal.downloadVideo,It=j.actions.internal.closeSettingsMenu,ti=j.actions.internal.openSettingsSubMenu,Ft=j.actions.internal.closeSettingsSubMenu,ye=K(!1),be=K(void 0),J=Yb();De(()=>{!r()&&J.current&&(Ft(oe[J.current]),J.popAllSubMenus())}),De(()=>{r()||N(be,void 0)}),De(()=>{!J.current&&n(be)&&sb(X,n(be))}),De(()=>{G()&&ee.set(G())});function xe(Pt){return gt(this,null,function*(){var W;J.pushSubMenu(Pt),yield bo(),ti(Pt,oe[Pt]);let Ht=(W=G())==null?void 0:W.firstElementChild;Ht&&fm(Ht)})}function Pe(Pt){var Ht;Pt==null||Pt.stopPropagation(),a()||(Ht=e.returnFocus)==null||Ht.call(e),It(),N(ye,!1)}function Et(Pt,Ht){j.actions.internal.setQuality(Pt,{appliesTo:Ht}),Pe()}function Ve(Pt){j.actions.internal.setAudioStream(Pt),Pe()}function at(Pt,Ht){j.actions.internal.setTrafficSavingEnabled(Pt,Ht),ve.features.qualityDetailsSubMenuEnabled&&Pe()}function vt(Pt,Ht){j.actions.internal.setHighQualityEnabled(Pt,Ht),Pe()}function $e(Pt){j.actions.internal.setPlaybackRate(Pt),Pe()}function et(Pt){j.actions.internal.setSubtitle(Pt),Pe()}function We(){Qt()}function rt(){(0,Fc.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),j.actions.internal.reportProblem(),j.actions.internal.pause()}function ii(){Gl(j.actions.internal.getDebugTextData())}let li=()=>{let Pt=j.actions.internal.getTraceTextData(),Ht=new Blob([...Pt],{type:"application/json"}),W=window.URL.createObjectURL(Ht);Oa(W,"vk_player_trace_info","json")};function gi(){ze.set(!l())}function yi(){N(ye,!0)}function no(){N(ye,!1)}function $o(){return d()?`max-height: ${Math.round(s().height*.6)}px`:`max-height: ${s().height-32-le()}px; overflow: auto;`}let fi=v(()=>ie&&u()&&!p()),ft=v(()=>ve.features.trafficSaving&&!p()&&m()&&!ve.features.qualityDetailsSubMenuEnabled),Ai=v(()=>f().length>0&&!p()),Jt=v(()=>!!b()&&!p()),Tt=v(()=>ve.features.audioLanguages&&y().length>=2&&!p()),ri=v(()=>!p());Dt(()=>Nt.subscribe(Pt=>{Pt&&!d()&&!n(ye)&&!a()&&Pe()}));let ei=v(()=>{let Pt=[n(ri)&&"QUALITY_SETTINGS",n(Tt)&&"AUDIO_LANGUAGES",n(Jt)&&"PLAYBACK_RATE",n(Ai)&&"SUBTITLES",n(ft)&&"TRAFFIC_SAVING_SWITCH",n(fi)&&"DOWNLOAD",ve.showSupport&&"SHOW_SUPPORT","COPY_DATA",ve.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(Ht=>!!Ht);return n$({items:Pt,context:{qualityDetailsSubMenuEnabled:ve.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:$(),currentAudioStream:S(),availableAudioStreams:y(),currentPlaybackRate:C(),selectPlaybackRate:$e,trafficSavingEnabled:I(),toggleTrafficSaving:at,currentQuality:R()||Fc.VideoQuality.INVARIANT,isAutoQualityEnabled:E()||!1,currentSubtitle:A(),isMobile:d(),onDownloadClick:We,onCopyDataClick:ii,onReportProblemClick:rt,onSaveTraceDataClick:li,toggleShowDebugInfo:gi},additionalSettingsMenuItems:O()})}),bt=v(()=>o$({subMenuId:J.current,context:{availablePlaybackRates:$(),selectPlaybackRate:$e,trafficSavingEnabled:I(),toggleTrafficSaving:at,currentQuality:R()||Fc.VideoQuality.INVARIANT,isAutoQualityEnabled:E()||!1,isAutoQualityAvailable:D()||!1,availableQualities:U(),highQualityEnabled:z(),toggleHighQuality:vt,availableAudioStreams:y(),availableSubtitlesList:f(),closeSettingsMenu:It,currentAudioStream:S(),isMobile:d(),selectAudioLanguage:Ve,selectQuality:Et,selectSubtitle:et}}));var Xe=aT();let Ti;var ro=T(Xe);{var tn=Pt=>{var Ht=sT();let W;Ht.__keydown=[nT,It];var Mt=T(Ht);{var di=Zt=>{var ut=rT();let Bi;var Fi=T(ut),Bo=T(Fi,!0);w(Fi);var Eo=k(Fi,2);Eo.__click=Pe,w(ut),B((yo,ji)=>{Bi=se(ut,1,"item header s-q",null,Bi,yo),pe(Bo,ji)},[()=>({mobile:d()}),()=>Bt("submenu_settings")]),_(Zt,ut)};V(Mt,Zt=>{d()&&Zt(di)})}var ct=k(Mt,2);let Ct;Ci(ct,21,()=>n(ei),Zt=>Zt.id,(Zt,ut)=>{var Bi=Le(),Fi=de(Bi);{var Bo=yo=>{Pv(yo,{get isMobile(){return d()},get id(){return n(ut).id},get icon(){return n(ut).icon},get label(){return n(ut).label},get ariaLabel(){return n(ut).ariaLabel},get value(){return n(ut).value},get valueComponent(){return n(ut).valueComponent},onClick:()=>{xe(n(ut).children),N(be,n(ut).id,!0)},get ref(){return X[n(ut).id]},set ref(ji){X[n(ut).id]=ji}})},Eo=(yo,ji)=>{{var Fr=ao=>{kv(ao,{get isMobile(){return d()},get id(){return n(ut).id},get onClick(){return n(ut).onClick},get icon(){return n(ut).icon},get label(){return n(ut).label},get ariaLabel(){return n(ut).ariaLabel},closeSettings:Pe})},so=(ao,Li)=>{{var bn=on=>{Mv(on,{get isMobile(){return d()},get id(){return n(ut).id},get onClick(){return n(ut).onClick},get icon(){return n(ut).icon},get label(){return n(ut).label},get ariaLabel(){return n(ut).ariaLabel},get enabled(){return n(ut).enabled},get tooltipText(){return n(ut).tooltipText},get maxTooltipWidth(){return n(ut).maxTooltipWidth}})};V(ao,on=>{n(ut).type==="SWITCH"&&on(bn)},Li)}};V(yo,ao=>{n(ut).type==="CLICK"?ao(Fr):ao(so,!1)},ji)}};V(Fi,yo=>{n(ut).type==="OPEN_SUB_MENU"?yo(Bo):yo(Eo,!1)})}_(Zt,Bi)}),w(ct),nt(ct,Zt=>G(Zt),()=>G()),w(Ht),B((Zt,ut,Bi)=>{W=se(Ht,1,"settings-menu menu s-q",null,W,Zt),Ct=se(ct,1,"items",null,Ct,ut),Ge(ct,Bi)},[()=>({desktop:!d(),mobile:d(),hidden:!!J.current}),()=>({mobile:d()}),$o]),_t("mouseenter",Ht,yi),_t("mouseleave",Ht,no),_(Pt,Ht)};V(ro,Pt=>{r()&&Pt(tn)})}var _n=k(ro,2);Ci(_n,17,()=>n(bt),Pt=>Pt.id,(Pt,Ht)=>{let W=v(()=>{var Mt;return(Mt=n(Ht).minWidth)!=null?Mt:137});Ev(Pt,{get isMobile(){return d()},get playerControlsHeight(){return le()},get returnFromSubMenu(){return J.popSubMenu},get id(){return n(Ht).id},get title(){return n(Ht).title},get closeSettingsMenu(){return It},openSubMenuList:xe,get items(){return n(Ht).items},get minWidth(){return n(W)},get refMenuItems(){return X},get listRef(){return oe[n(Ht).id]},set listRef(Mt){oe[n(Ht).id]=Mt}})}),w(Xe),B(Pt=>Ti=se(Xe,1,"settings-menu-container s-q",null,Ti,Pt),[()=>({mobile:d(),hidden:!r()})]),_(t,Xe),H(),o()}st(["keydown","click"]);var dT=L('<button class="btn s-1f"> </button>'),cT={hash:"s-1f",code:"button.btn.s-1f{background:hsla(0,0%,100%,.1);border-radius:8px;font-size:14px;line-height:18px;margin-top:12px;padding:6px 12px 7px}"};function Qv(t,e){q(t,cT);var i=dT();i.__click=function(...r){var a;(a=e.onClick)==null||a.apply(this,r)};var o=T(i,!0);w(i),B(()=>pe(o,e.label)),_(t,i)}st(["click"]);var uT=L('<div class="container s-n"><div class="notification s-n"><div><p class="description s-n"><!></p> <!></div> <!></div></div>'),pT={hash:"s-n",code:".container.s-n{display:flex;justify-content:center;left:0;pointer-events:none;position:absolute;right:0;top:20px}.notification.s-n{background:var(--notification-bg);border-radius:var(--notification-radius);display:inline-flex;gap:10px;padding:9px 14px 10px 12px;pointer-events:auto}.description.s-n{font-size:13px;line-height:16px;margin:0;white-space:pre}"};function Uc(t,e){F(e,!0),q(t,pT);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=Rt(),{ui:{t:r}}=me(),a=r(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var l=uT(),d=T(l),s=T(d),u=T(s),p=T(u);Bc(p,{get message(){return a}}),w(u);var m=k(u,2);{var f=y=>{let $=v(()=>r("slow_video_notification_button"));Qv(y,{get label(){return n($)},get onClick(){return e.onSelectAutoQuality}})};V(m,y=>{o||y(f)})}w(s);var b=k(s,2);Ms(b,{get onClick(){return e.onClose}}),w(d),w(l),Zr(3,d,()=>_s,()=>({duration:i})),_(t,l),H()}var zc=require("@vkontakte/videoplayer-shared/es2015");var sl="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 d;let{overlay:o,id:r,controlsBehaviour:a,hideAllControls:l}=i;return this.disabledIds.has(r)?{success:!1,message:"current slotId is disabled via config"}:(e.setAttribute("slot",sl),this.setupSlotStyles(e,o),this.shadowRootContainer.append(e),this.slots.set(r,{rootElement:e,options:i}),a&&this.runHidingControlsWhenIntersected(r,a),l&&((d=this.store)==null||d.ui.isControlsAvailable.set(!1)),{success:!0})}setupSlotStyles(e,i){switch(e.style.position="absolute",i){case"over_video":e.style.zIndex="calc(var(--video-container-z-index) + 1)";break;case"over_controls":e.style.zIndex="calc(var(--controls-container-z-index) + 1)";break;default:e.style.zIndex="0"}}runHidingControlsWhenIntersected(r,a){return gt(this,arguments,function*(e,{observedSlotElementId:i,controlsToObserve:o}){var f;let l=this.slots.get(e);if(!l)return;let d=yield this.findSlotElement(l.rootElement,i,e),{controls:s,hiddenControls:u}=((f=this.store)==null?void 0:f.ui)||{},p=new MutationObserver(b=>b.forEach(()=>{let y=Rs(d,this.shadowRootContainer);o.forEach($=>{let S=s==null?void 0:s[$],C=S?he(S):null,I=u==null?void 0:u[$];C&&(I==null||I.set((0,zc.isIntersecting)(C,y)))})}));p.observe(d,{childList:!0,subtree:!0}),l.observer=p;let m=new zc.Subscription;o.forEach(b=>{s&&m.add(s[b].subscribe(y=>{let $=u==null?void 0:u[b];y&&y.isDisplayed?$==null||$.set((0,zc.isIntersecting)(y,Rs(d,this.shadowRootContainer))):$==null||$.set(!1)}))}),l.subs=m})}findSlotElement(e,i,o){return gt(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,p;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(m=>m==null?void 0:m.disconnect()),l==null||l.unsubscribe(),this.slots.delete(e),s&&((u=this.store)==null||u.ui.isControlsAvailable.set(!0)),(p=d==null?void 0:d.controlsToObserve)==null||p.forEach(m=>{var f,b;(b=(f=this.store)==null?void 0:f.ui.hiddenControls[m])==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 fT=L('<div class="container s-5"><!></div>'),mT={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 Wc(t,e){F(e,!0),q(t,mT);let i=g(e,"reversed",3,!1);var o=Le(),r=de(o);Es(r,()=>e.Icon,a=>{var l=fT(),d=T(l);Ni(d,()=>e.Icon,(s,u)=>{u(s,{get size(){return"48"},get reversed(){return i()}})}),w(l),B(()=>Ge(l,`animation-duration: ${e.duration}ms`)),_(a,l)}),_(t,o),H()}var Gv=require("@vkontakte/videoplayer-core/es2015"),vT=L('<div class="container s-13"><!></div>'),gT={hash:"s-13",code:".container.s-13{align-items:center;display:flex;height:100%;justify-content:center;pointer-events:none;position:absolute;width:100%}"};function Yv(t,e){F(e,!0),q(t,gT);let[i,o]=Re(),r=()=>x(s,"$playbackState$",i),a=()=>x(p,"$previewTrackActive",i),l=()=>x(m,"$previewTrackDragInProgress",i),d=()=>x(u,"$isPlaying$",i),{state:{playbackState$:s,isPlaying$:u},ui:{previewTrackActive:p,previewTrackDragInProgress:m}}=me(),{features:{playbackStatusShow:f},playbackStatusAnimationDuration:b}=Rt(),y=0,$=K(null),S=K(!1);De(()=>{r()===Gv.PlaybackState.PLAYING?N($,Vn,!0):r()===Gv.PlaybackState.PAUSED?N($,Os,!0):N($,null)}),De(()=>{if(!(!f||a()||l()))return y=window.setTimeout(()=>{y=0,N($,null)},b),()=>{y&&(window.clearTimeout(y),y=0)}}),De(()=>{d()&&!n(S)&&(N(S,!0),N($,null))});var C=Le(),I=de(C);{var R=E=>{var A=vT(),O=T(A);Wc(O,{get duration(){return b},get Icon(){return n($)}}),w(A),_(E,A)};V(I,E=>{n($)&&f&&E(R)})}_(t,C),H(),o()}var hT=L('<div><div data-testid="video-container"></div></div>'),_T={hash:"s-e",code:".video-container.s-e,.video-wrapper.s-e{height:100%;left:0;position:absolute;top:0;width:100%}.video-wrapper.s-e{background:var(--black)}.video-container.s-e,.video-wrapper.s-e{z-index:var(--video-container-z-index)}.video-container.s-e{transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.s-e{transition:none}.nocursor.s-e{cursor:none}"};function al(t,e){F(e,!0),q(t,_T);let[i,o]=Re(),r=()=>x(p,"$rotateAlpha",i),a=()=>x(m,"$playerSize",i),l=()=>x(u,"$playerPhase",i),d=()=>x(f,"$isPlaying$",i),s=g(e,"videoContainer",15),{playerPhase:u,ui:{rotateAlpha:p,playerSize:m},state:{isPlaying$:f}}=me(),{isSmoothVideoRotate:b}=Rt(),y=v(()=>s()&&r()%180?a().height/a().width:1);var $=hT();let S;$.__contextmenu=function(...R){var E;(E=e.onContextMenu)==null||E.apply(this,R)},$.__mousedown=function(...R){var E;(E=e.onMouseDown)==null||E.apply(this,R)},$.__mouseup=function(...R){var E;(E=e.onMouseUp)==null||E.apply(this,R)},$.__click=function(...R){var E;(E=e.onClick)==null||E.apply(this,R)},$.__dblclick=function(...R){var E;(E=e.onDblClick)==null||E.apply(this,R)};var C=T($);let I;nt(C,R=>s(R),()=>s()),w($),B((R,E)=>{S=se($,1,"video-wrapper s-e",null,S,R),I=se(C,1,"video-container s-e",null,I,E),Ge(C,`transform: rotate(${r()}deg) scale(${n(y)})`),Ue(C,"data-is-playing",d())},[()=>({hidden:l()!=="video",nocursor:e.hideCursor}),()=>({"fast-rotate":!b})]),_(t,$),H(),o()}st(["contextmenu","mousedown","mouseup","click","dblclick"]);var bT=L('<div><span class="text s-15"> </span> <!></div>'),$T={hash:"s-15",code:".root.s-15{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-15,.root.visible.s-15{transform:translateX(-50%)}.root.visible.s-15{opacity:1;visibility:visible}.text.s-15{font-size:13px;font-weight:600;line-height:16px}"};function jv(t,e){F(e,!0),q(t,$T);let{ui:{t:i}}=me();var o=bT();let r;var a=T(o),l=T(a,!0);w(a);var d=k(a,2);Vc(d,{get size(){return"16"},fill:"currentColor"}),w(o),B((s,u)=>{r=se(o,1,"root s-15",null,r,s),pe(l,u)},[()=>({visible:e.isVisible}),()=>i("double_forward_label")]),_(t,o),H()}var yT=L('<div class="container s-1b" role="button" data-testid="preview-track-overlay"><div class="icon s-1b"><!></div></div>'),xT={hash:"s-1b",code:".container.s-1b{background-color:rgba(0,0,0,.48);cursor:pointer;height:100%;position:absolute;width:100%}.container.s-1b,.icon.s-1b{align-items:center;display:flex;justify-content:center}.icon.s-1b{background-color:#00000073;border-radius:100%;height:64px;transition:transform .2s;transition-timing-function:ease-out;width:64px;will-change:transform}.container.s-1b:hover .icon:where(.s-1b){transform:scale(1.15)}"};function Xv(t,e){F(e,!1),q(t,xT);let o=me().actions.internal.closePreviewTrack,r=200,a=u=>{u.stopPropagation(),o()};Co();var l=yT();l.__click=a;var d=T(l),s=T(d);return Vn(s,{get size(){return"32"}}),w(d),w(l),Zr(3,l,()=>_s,()=>({duration:r})),_(t,l),Nf(e,"handleClick",a),H({handleClick:a})}st(["click"]);var wT=L('<div class="container s-17"><div class="notification s-17"><span class="text s-17"> </span></div></div>'),ST={hash:"s-17",code:".container.s-17{display:flex;justify-content:center;left:0;pointer-events:none;position:absolute;right:0;top:20px}.notification.s-17{background-color:var(--black-alpha-40);border-radius:var(--notification-radius);padding:10px 16px}.text.s-17{font-size:14px;font-weight:500;line-height:18px}"};function Zv(t,e){F(e,!1),q(t,ST);let{ui:{t:i}}=me();Co();var o=wT(),r=T(o),a=T(r),l=T(a,!0);w(a),w(r),w(o),B(d=>pe(l,d),[()=>i("preview_track_notification_text")],In),Zr(3,r,()=>_s,()=>({duration:340})),_(t,o),H()}var TT=(t,e,i,o,r,a)=>{if(t.stopPropagation(),e()||o()){a();return}},CT=L("<div><!></div>"),IT=L('<div class="spherical-video-icon s-8"><!></div>'),ET=L("<div><!></div>"),PT=L('<div class="settings-menu s-8"><!></div>'),AT=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),kT=L("<!> <!> <!>",1),LT=L('<div class="blocked s-8"></div>'),MT=L('<div class="player-wrapper s-8"><!> <div class="overlay-container"></div></div> <!>',1),VT={hash:"s-8",code:".blocked.s-8,.player-wrapper.s-8{height:100%;position:absolute;width:100%}.blocked.s-8{z-index:var(--overlay-container-z-index)}.player-wrapper.s-8 .player-media{background:var(--black);height:100%;left:0;position:absolute;top:0;transition:transform .2s ease-in-out;width:100%}.spherical-video-icon.s-8{display:inline-block;left:calc(50% - 38px);position:absolute;top:calc(50% - 23px)}.ads-container.s-8{background:var(--black);height:100%;left:0;position:absolute;top:0;width:100%;z-index:var(--ads-container-z-index)}.settings-menu.s-8{bottom:57px;left:0;position:absolute;right:18px;transition:opacity .2s;z-index:var(--settings-menu-z-index)}"};function eg(t,e){F(e,!0),q(t,VT);let[i,o]=Re(),r=()=>x(ci,"$notificationsToShow$",i),a=()=>x(fi,"$playerPhase",i),l=()=>x(ro,"$isLoaderVisible",i),d=()=>x(yi,"$adPlaybackState",i),s=()=>x(di,"$crashed",i),u=()=>x(yo,"$isInteractiveTime$",i),p=()=>x(Tt,"$settingsMenuVisible",i),m=()=>x(ji,"$isInteractiveExpectation$",i),f=()=>x(Jt,"$controlsVisible",i),b=()=>x(so,"$touched",i),y=()=>x(Ur,"$graphIsOpened$",i),$=()=>x(ft,"$isFullscreen",i),S=()=>x($s,"$autoplayNextEnabled$",i),C=()=>x(Ht,"$postrollPassed",i),I=()=>x(tn,"$isEnded$",i),R=()=>x(zn,"$cursorInside",i),E=()=>x(On,"$isControlsAvailable",i),A=()=>x($n,"$doubleForwardOn$",i),O=()=>x(tr,"$fakeIsPlaying$",i),D=()=>x(or,"$bottomNoSmooth",i),U=()=>x(on,"$interactiveTimeIndicator",i),z=()=>x(Bi,"$playerSize",i),G=()=>x(Fi,"$is3DVideo",i),le=()=>x(xo,"$doubleForwardAvailable$",i),X=()=>x(Xe,"$contextMenuVisible$",i),oe=()=>x(gi,"$playbackState$",i),j=()=>x(ao,"$hotKeyMapData",i),ve=()=>x(ei,"$scrubbingInProgress",i),ce=()=>x(bt,"$volumeChangingInProgress",i),re=()=>x(_n,"$chromecastConnected$",i),_e=()=>x(Un,"$controlsTimeoutActive",i),we=()=>x(ri,"$settingsMenuOpenedByKeyboard",i),Z=()=>x(Lr,"$contextMenuOpenedByKeyboard$",i),Ne=()=>x(Ii,"$contextMenuOpenedByHotKey$",i),ue=()=>x(Ze,"$contextMenuButtonRef$",i),P=()=>x(Wo,"$contextMenuLastActiveElem$",i),Ke=()=>x(Ai,"$isFullscreenOpenedByKeyboard",i),Ce=()=>x(li,"$language$",i),Y=()=>x(cn,"$previewTrackActive$",i),ie=()=>x(Bo,"$icon3DVideoVisible",i),Oe=()=>x(Pt,"$chromecastDeviceName$",i),Be=()=>x(Zt,"$currentSubtitle$",i),fe=()=>x(ut,"$currentSubtitleCaptions$",i),ee=()=>x(no,"$position$",i),Se=()=>x($o,"$duration$",i),Fe=()=>x(W,"$isLive$",i),qe=()=>x(Mt,"$isPlaying$",i),je=()=>x(xr,"$contextMenuPosition$",i),Te=()=>x(Dn,"$previewTrackNotificationVisible$",i),Me=()=>x(Li,"$showHotKeyMap",i),ze=()=>x(Ti,"$debugPanelVisible",i),Nt=()=>x(os,"$userActionsDisabled$",i),tt=g(e,"videoContainer",15),Bt=g(e,"adsSlotId",3,void 0),Qt=g(e,"adsParams",3,void 0),It=g(e,"adsAutoplayParam",3,void 0),ti=g(e,"duration",3,void 0),Ft=g(e,"logoTargetUrl",3,""),ye=g(e,"showNextPrevButtons",3,!1),be=g(e,"nextButtonActive",3,!1),J=g(e,"prevButtonActive",3,!1),xe=g(e,"endScreenVideoTitle",3,void 0),Pe=g(e,"endScreenVideoThumb",3,void 0),Et=g(e,"isOneVideoPlaylist",3,!1),Ve=g(e,"shadowRootContainer",3,void 0),at=g(e,"outerContainerRef",3,void 0),vt=g(e,"playerStarted",3,!1),$e=g(e,"fullScreenTarget",3,void 0),et=g(e,"showMiniTimer",3,!1),We=g(e,"showEndScreen",3,!0),rt=g(e,"keyboardControls",15),ii=e.store.getLogger().createComponentLog("Root component"),li=e.store.interfaceLanguage$,gi=e.store.state.playbackState$,yi=e.store.ads.playbackState,no=e.store.state.positionWithScrubbing$,$o=e.store.state.duration$,fi=e.store.playerPhase,ft=e.store.ui.isFullscreen,Ai=e.store.ui.isFullscreenOpenedByKeyboard,Jt=e.store.ui.controlsVisible,Tt=e.store.ui.settingsMenu.visible$,ri=e.store.ui.settingsMenu.openedByBtnKeyboard$,ei=e.store.ui.scrubbingInProgress,bt=e.store.ui.volumeChangingInProgress,Xe=e.store.ui.contextMenu.visible$,Ti=e.store.ui.debugPanelVisible,ro=e.store.state.isLoaderVisible,tn=e.store.state.isEnded$,_n=e.store.state.chromecastConnected$,Pt=e.store.state.chromecastDeviceName$,Ht=e.store.ads.postrollPassed,W=e.store.state.isLive$,Mt=e.store.state.isPlaying$,di=e.store.state.crashed$,ct=e.store.webApi.annotationsApi,Ct=e.store.webApi.pictureInPictureApi,Zt=e.store.state.currentSubtitle$,ut=e.store.state.currentSubtitleCaptions$,Bi=e.store.ui.playerSize,Fi=e.store.ui.is3DVideo,Bo=e.store.ui.icon3DVideoVisible,Eo=e.store.state.isInteractive,yo=e.store.state.isInteractiveTime$,ji=e.store.state.isInteractiveExpectation$,Fr=e.store.state.hasInteractiveBranches,so=e.store.ui.touched,ao=e.store.ui.modals.hotKeyMap.data,Li=e.store.ui.modals.hotKeyMap.show,bn=e.store.ui.overlayContainer$,on=e.store.ui.controls.interactiveTimeIndicator,er=e.store.state.showInteractiveTimeIndicator,xr=e.store.ui.contextMenu.position$,wr=e.store.actions.internal.setQuality,bs=e.store.actions.internal.closeSettingsMenu,$s=e.store.ui.autoplayNextEnabled$,os=e.store.ui.userActionsDisabled,On=e.store.ui.isControlsAvailable,Hr=e.store.ui.videoTitleInfo,$n=e.store.ui.doubleForwardOn$,xo=e.store.ui.doubleForwardAvailable$,Dn=e.store.ui.previewTrackNotificationVisible,Bn=e.store.actions.internal.getVideoElement,Sr=e.store.actions.internal.checkFullscreenSupport,{fakeIsPlaying$:tr,notifications$:ns,graphIsOpened$:Ur}=Io(),lo=K(void 0),Tr=K(void 0),ir=K(void 0),yn=K(void 0),wo,Cr,Fn;ao.set(eb());let{closeNotification:$t,notificationsToShow$:ci}=ns,Ir=v(()=>!!r().slow_video),xn=()=>$t("slow_video"),Er=v(()=>(a()==="video"&&l()||a()==="ads"&&d()==="inactive")&&!s()),Hn=K(void 0),or=ae(!1),nn,Un=ae(!1),rn=ae(),zn=ae(!1),Po=K(!1),sn=K(!1),So=K(!1),nr=K(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),Xi=v(()=>u()&&!p()&&!(n(Po)||n(sn))&&!(n(So)&&!m())),rr=!0,sr=v(()=>e.uiConfig.features.thumbTimer&&et()&&a()==="video"&&!f()&&!s()&&!Eo&&(e.uiConfig.hideThumbTimerAfterTouch&&!b()||!e.uiConfig.hideThumbTimerAfterTouch)),Pr=v(()=>a()==="video"&&!y()&&$()),Fo=K(!1),Wn=v(()=>(We()||e.showAutoplayNext&&S())&&!!xe()&&!!Pe()&&(e.showAds&&C()||!e.showAds)&&I()&&!s()&&!n(Fo)),zr=v(()=>R()&&!(f()||n(Wn))&&!u()&&E()&&!A()),wt=K(!1),At=v(()=>O()!==null),{toggle:co}=tr,Hi=!1,Ui=null;Ct==null||Ct.setContext(Id());let wn=()=>{e.autoplay&&!Eo&&e.uiConfig.controls.showOnStartupAtAutoplay&&mi(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:wn});let To=()=>{window.clearTimeout(wo),Un.set(!1)},Kn=()=>{window.clearTimeout(Cr),rn.set(null)},mi=ge=>{To(),Un.set(!0),wo=window.setTimeout(()=>Un.set(!1),ge);let St=ge-100;nn=window.setTimeout(()=>{D()&&or.set(!1)},St>0?St:ge)},Wr=(ge,St)=>{Kn(),rn.set(St),Cr=window.setTimeout(()=>rn.set(null),ge)},ar=Fi.subscribe(ge=>{Bo.set(ge),ge&&(window.clearTimeout(Fn),Fn=window.setTimeout(()=>Bo.set(!1),e.uiConfig.controls.hide360IconTimeout))}),rs=()=>gt(null,null,function*(){var St,jt,wi,mo;let ge=ia();if(ge){let ui=tc(),ni=lr();ge=ui===ni||ui===Ve()}if(ge){mi(e.uiConfig.controls.hideTimeoutFullscreen);try{yield Ct==null?void 0:Ct.exit()}catch(ui){ii({message:String(ui)})}}ft.set(ge),e.store.getAdmanWrapper().setFullscreen(ge),$()?(jt=(St=e.store.callbacks)==null?void 0:St.onFullscreenEnter)==null||jt.call(St):(mo=(wi=e.store.callbacks)==null?void 0:wi.onFullscreenExit)==null||mo.call(wi)}),Ar=ge=>{let{width:St,height:jt}=ge.target;Bi.set({width:St,height:jt})},an=()=>{let{width:ge,height:St}=n(lo).getBoundingClientRect();Bi.set({width:ge,height:St})};Dt(()=>{var St;return Ju(rs),e.uiConfig.features.annotationsInside&&(ct==null||ct.init(n(lo))),Ha(Ct)&&(Ct==null||Ct.assignPlayerContainer(n(lo)),Ct==null||Ct.setExternalEventHandlers({resize:Ar,leavepictureinpicture:an})),e.interactiveContainer&&((St=tt().parentElement)==null||St.insertBefore(e.interactiveContainer,tt().nextSibling)),()=>{window.clearTimeout(wo),window.clearTimeout(nn),window.clearTimeout(Cr),window.clearTimeout(Fn),ar(),Ct==null||Ct.dispose().catch(jt=>{ii({message:String(jt)})}),ep(rs)}});let lr=()=>{let ge=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!at()?n(lo):at(),St=ge.getRootNode(),jt=St instanceof ShadowRoot?St.host:St,wi=$e()instanceof HTMLElement&&$e().contains(jt);return e.uiConfig.allowChangingFullscreenTarget&&$e()&&wi?$e():ge},Ao=()=>{Xe.set(!1)},Ho=()=>{bs(),Ao()},kr=()=>gt(null,null,function*(){if(!Sr()){ii({message:"fullscreen disabled"});return}Ao(),ia()?(yield Zu(document),ii({message:"exit fullscreen"})):(ii({message:"request fullscreen"}),yield Xu(lr()))}),ln=ge=>{y()||(ge.preventDefault(),Xe.set(!0),xr.set({left:ge.clientX,top:ge.clientY}))};function ss(){zn.set(!0),Eo||mi(e.uiConfig.controls.hideTimeoutCursor)}function Qe(ge){var mo,ui;let{relatedTarget:St}=ge,wi=!!(St&&((mo=n(ir))!=null&&mo.contains(St)))&&((ui=rt())==null?void 0:ui.isFocused());!Eo&&!wi&&(or.set(!0),mi(e.uiConfig.controls.hideTimeoutCursor))}function Vt(){zn.set(!1),N(sn,!1),N(Po,!1),Hi=!1,e.store.actions.internal.releaseCamera(),mi(e.uiConfig.controls.hideTimeout),A()&&zo()}function xi(ge){return ge?ge.offsetTop+xi(ge.offsetParent):0}function ko(ge){return ge?ge.offsetLeft+ko(ge.offsetParent):0}function Lo(ge){if(U()&&er){let St=ge.currentTarget,jt=xi(St),wi=ko(St),mo=ge.pageX-wi,ui=ge.pageY-jt,{left:ni,bottom:vo,right:un}=U(),pn=un-ni;return mo>=ni-pn&&ui<=vo+pn}}function Uo(ge){if(n(lo)){let St=xi(ge.currentTarget),jt=z().height,wi=ge.pageY-St;if(Lo(ge)){N(sn,!1);return}wi<40?N(sn,!0):wi>jt-40?N(Po,!0):(N(sn,!1),p()||N(Po,!1))}}function uo(ge){Uo(ge),!n(Xi)&&!A()&&mi(e.uiConfig.controls.hideTimeoutCursor),G()&&Hi&&Ui&&e.store.actions.internal.moveCameraFocusPX(Ui.clientX-ge.clientX,Ui.clientY-ge.clientY,ge.timeStamp-Ui.timeStamp),Ui=ge}let Zi=null,Sn=()=>{Zi=window.setTimeout(()=>{e.store.actions.internal.changeDoubleForwardOn(!0),To()},e.uiConfig.doubleForwardActivationTime)},zo=()=>{e.store.actions.internal.changeDoubleForwardOn(!1),Zi&&clearTimeout(Zi),Zi=null},po=ge=>{ge.preventDefault(),ge.button===0&&(Hi=!0,e.store.actions.internal.holdCamera(),le()&&Sn()),!Hi&&mi(e.uiConfig.controls.hideTimeoutCursor)},Mo=ge=>{ge.preventDefault(),ge.button===0&&(Ui=ge,Hi=!1,e.store.actions.internal.releaseCamera()),!A()&&mi(e.uiConfig.controls.hideTimeoutCursor)},dr=ge=>{ge.preventDefault(),rr&&(ii({message:"double click on video"}),kr(),mi(e.uiConfig.controls.hideTimeoutCursor))},cr=ge=>{var St;if(ge.preventDefault(),A()){zo();return}if(Zi&&zo(),X()||p()){Ho();return}if(!(I()&&!Fr)){if(n(At))return co();if((St=rt())==null||St.focus(),!vt()){e.firstStart(),mi(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||oe()!==Jv.PlaybackState.PLAYING)&&e.store.actions.internal.togglePlay(),mi(e.uiConfig.controls.hideTimeoutCursor)}},dn=ge=>{Ho(),so.set(!0),mi(e.uiConfig.controls.hideTimeout),ge&&Wr(e.uiConfig.controls.hideHotKeyHelpers,ge)},as=()=>{var ge,St;Ho(),(ge=e.store.callbacks)!=null&&ge.onOpenHotKeyMap?(St=e.store.callbacks)==null||St.onOpenHotKeyMap(j()):Li.update(jt=>!jt)},ys=()=>{so.set(!0)},Lr=e.store.ui.contextMenu.openedByBtnKeyboard$,Ze=e.store.ui.contextMenu.btnRef$,Gt=K(void 0),Ii=e.store.ui.contextMenu.openedByHotKey$,Wo=e.store.ui.contextMenu.lastActiveElem$,cn=e.store.ui.previewTrackActive;De(()=>{bn.set(n(Hn))}),De(()=>{N(So,n(nr)&&oe()!==Jv.PlaybackState.PLAYING,!0),n(nr)||kt(()=>N(nr,!0))}),De(()=>{var St,jt;let ge=(n(So)||I()||p()||ve()||ce()||re()||_e())&&!n(Xi)&&(a()==="video"||a()==="ads")&&!s()&&E();Jt.set(ge),!ge&&!_e()&&e.uiConfig.returnFocusOnControlsHide&&((St=n(ir))!=null&&St.contains(sp()))&&((jt=rt())==null||jt.focus())}),De(()=>{!ve()&&n(wt)&&!u()&&mi(e.uiConfig.controls.hideTimeoutCursor),kt(()=>N(wt,ve(),!0))}),De(()=>{n(yn),p(),we(),kt(()=>lc(n(yn),p(),we()))}),De(()=>{n(Gt),X(),Z(),Ne(),kt(()=>{let ge=Z()||Ne();lc(n(Gt),X(),ge)})}),De(()=>{let ge=ue();ge&&(X(),kt(()=>Yl(ge,X(),Lr)))}),De(()=>{let ge=P();ge&&(X(),kt(()=>rb(ge,X(),Ii)))}),De(()=>{var ge;!Ke()&&$()&&(kt(()=>Ai.set(!1)),(ge=rt())==null||ge.focus())}),De(()=>{y()&&Ho()});let ur=K(void 0),fo=ge=>{Hr.set(Zn(Bn(),{title:n(ur)},"title",ge))},Mr=(ge,St)=>{var ui,ni;let jt=(ni=(ui=e.store.callbacks)==null?void 0:ui.uiInfo)==null?void 0:ni.onUpcomingLiveViewStateChanged;if(!jt)return;let wi=!!St,mo=Ae(Ae({},Zn(n(lo),{upcomingLiveScreen:St},"upcomingLiveScreen",wi)),ge);jt(mo)};var xs=MT();_t("blur",Ca,Ho);var Tn=de(xs);Tn.__mousemove=uo;var Hs=T(Tn);let pa=v(()=>a()==="ads"),fa=v(()=>n(At)?co:void 0);nt(ym(Hs,{startDoubleForwardActivationTimer:Sn,stopDoubleForward:zo,toggleFullscreen:kr,hideContextMenu:Ho,showHotKeyHelpers:dn,showKeyMap:as,get isAds(){return n(pa)},get fakePlayButtonHandler(){return n(fa)},get nextButtonActive(){return be()},get prevButtonActive(){return J()},children:(ge,St)=>{var jt=kT(),wi=de(jt);al(wi,{get hideCursor(){return n(zr)},onClick:cr,onContextMenu:ln,onMouseDown:po,onMouseUp:Mo,onDblClick:dr,get videoContainer(){return tt()},set videoContainer(ni){tt(ni)}});var mo=k(wi,2);La(mo,()=>"slot",!1,(ni,vo)=>{eo(ni,()=>({name:sl}))});var ui=k(mo,2);Es(ui,Ce,ni=>{var vo=AT(),un=de(vo);let pn=v(()=>a()!=="thumb"||s()||Eo&&e.autoplay);ol(un,{get hidden(){return n(pn)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart},onContextMenu:ln,onClick:Ao});var zi=k(un,2);{var hd=He=>{Xv(He,{})};V(zi,He=>{Y()&&He(hd)})}var Us=k(zi,2);Yv(Us,{});var cl=k(Us,2);jv(cl,{get isVisible(){return A()}});var ul=k(cl,2);{var zs=He=>{let hi=v(()=>{var Qo;return(Qo=e.live)==null?void 0:Qo.startTime});Oc(He,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(hi)},onUpcomingLiveViewStateChanged:Mr,onContextMenu:ln,onClick:Ao})};V(ul,He=>{a()==="LiveWaitingStart"&&He(zs)})}var Kr=k(ul,2);{var ma=He=>{nl(He,{kind:"recover",get thumbUrl(){return e.thumbUrl},onContextMenu:ln,onClick:Ao})};V(Kr,He=>{a()==="LiveWaitingRecover"&&He(ma)})}var pr=k(Kr,2);{var _d=He=>{nl(He,{kind:"record",get thumbUrl(){return e.thumbUrl},onContextMenu:ln,onClick:Ao})};V(pr,He=>{a()==="LiveWaitingRecord"&&He(_d)})}var ls=k(pr,2);{var qn=He=>{var hi=CT();let Qo;var _a=T(hi);oc(_a,{get adsSlotId(){return Bt()},get adsParams(){return Qt()},get adsAutoplayParam(){return It()},get duration(){return ti()},get adsExternalApi(){return e.adsExternalApi}}),w(hi),B(Cn=>Qo=se(hi,1,"ads-container s-8",null,Qo,Cn),[()=>({hidden:a()!=="ads"})]),_(He,hi)};V(ls,He=>{e.showAds&&vt()&&He(qn)})}var va=k(ls,2);{var pl=He=>{let hi=v(()=>!We()&&e.showAutoplayNext&&S());_m(He,{get title(){return xe()},get thumb(){return Pe()},get isHide(){return n(hi)},clickCloseIcon:()=>N(Fo,!0)})};V(va,He=>{n(Wn)&&xe()&&Pe()&&He(pl)})}var fl=k(va,2);{var bd=He=>{let hi=v(()=>!f());xv(He,{get title(){return e.title},get isHidden(){return n(hi)},onVisibilityChanged:fo,get ref(){return n(ur)},set ref(Qo){N(ur,Qo,!0)}})};V(fl,He=>{n(Pr)&&He(bd)})}var ml=k(fl,2);{var vl=He=>{let hi=v(()=>a()==="video"&&f());Rc(He,{get isShifted(){return n(hi)}})};V(ml,He=>{G()&&He(vl)})}var gl=k(ml,2);{var $d=He=>{var hi=IT(),Qo=T(hi);ec(Qo,{}),w(hi),_(He,hi)};V(gl,He=>{ie()&&He($d)})}var fr=k(gl,2);{var hl=He=>{Nc(He,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return Oe()}})};V(fr,He=>{re()&&He(hl)})}var pt=k(fr,2);{var mt=He=>{tl(He,{get shifted(){return f()},get captions(){return fe()},get position(){return ee()},get playerSize(){return z()}})};V(pt,He=>{Be().value!=="off"&&He(mt)})}var Wi=k(pt,2);{var qo=He=>{var hi=ET();hi.__contextmenu=ln,hi.__click=[TT,X,Xe,p,Tt,Ho];var Qo=T(hi);il(Qo,{}),w(hi),_(He,hi)};V(Wi,He=>{s()&&He(qo)})}var Ki=k(Wi,2);{var Si=He=>{let hi=v(()=>a()==="thumb"||a()==="LiveWaitingStart"||a()==="LiveWaitingRecover"||a()==="LiveWaitingRecord"),Qo=v(()=>a()==="ads"),_a=v(()=>e.canRewindLive&&Se()!==0);Mc(He,{get bottomHidden(){return n(hi)},get bottomNoSmooth(){return D()},get showControls(){return f()},get isAds(){return n(Qo)},get canRewindLive(){return n(_a)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Ft()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return ye()},get nextButtonActive(){return be()},get prevButtonActive(){return J()},get isOneVideoPlaylist(){return Et()},customFullscreenSupported:rr,toggleFullscreen:kr,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return n(Tr)},set playerControlsWrapperRef(Cn){N(Tr,Cn,!0)},get playerControlsRef(){return n(ir)},set playerControlsRef(Cn){N(ir,Cn,!0)}})};V(Ki,He=>{vt()&&He(Si)})}var Mi=k(Ki,2);{var ga=He=>{var hi=PT(),Qo=T(hi);let _a=v(()=>{var Cn;return(Cn=n(ir))==null?void 0:Cn.clientHeight});Hc(Qo,{get supportLink(){return e.supportLink},get playerControlsHeight(){return n(_a)},returnFocus:()=>{var Cn;return(Cn=rt())==null?void 0:Cn.focus()},get ref(){return n(yn)},set ref(Cn){N(yn,Cn,!0)}}),w(hi),_(He,hi)};V(Mi,He=>{!re()&&a()!=="ads"&&He(ga)})}var _l=k(Mi,2);let Up=v(()=>!n(sr));sc(_l,{get isLive(){return Fe()},get isHidden(){return n(Up)},get isPlaying(){return qe()},get position(){return ee()},get duration(){return Se()}});var tu=k(_l,2);$v(tu,{get data(){return rn}});var iu=k(tu,2);gm(iu,{get supportLink(){return e.supportLink},returnFocus:()=>{var He;return(He=rt())==null?void 0:He.focus()},get visible(){return X()},get playerContainerRef(){return n(lo)},get position(){return je()},get menuElementRef(){return n(Gt)},set menuElementRef(He){N(Gt,He,!0)}});var ou=k(iu,2);{var zp=He=>{Uc(He,{onClose:xn,onSelectAutoQuality:()=>{wr("auto"),xn()}})};V(ou,He=>{n(Ir)&&He(zp)})}var ha=k(ou,2);{var Wp=He=>{Zv(He,{})};V(ha,He=>{Te()&&He(Wp)})}var Ws=k(ha,2);{var bl=He=>{Ka(He,{})};V(Ws,He=>{n(Er)&&He(bl)})}var nu=k(Ws,2);{var ru=He=>{Sm(He,{})};V(nu,He=>{Me()&&He(ru)})}var yd=k(nu,2);{var su=He=>{cc(He,{})};V(yd,He=>{ze()&&He(su)})}_(ni,vo)}),_(ge,jt)},$$slots:{default:!0}}),ge=>rt(ge),()=>rt());var lt=k(Hs,2);nt(lt,ge=>N(Hn,ge),()=>n(Hn)),w(Tn),nt(Tn,ge=>N(lo,ge),()=>n(lo));var oi=k(Tn,2);{var Ko=ge=>{var St=LT();_(ge,St)};V(oi,ge=>{Nt()&&ge(Ko)})}_t("mouseenter",Tn,ss),_t("mouseleave",Tn,Vt),_t("click",Tn,ys,!0),_t("focusin",Tn,Qe,!0),_(t,xs),H(),o()}st(["mousemove","contextmenu","click"]);var ua=require("@vkontakte/videoplayer-core/es2015"),u$=require("@vkontakte/videoplayer-shared/es2015");var RT=L('<div></div> <div class="info s-r"><div class="triangles-wrapper s-r"><div></div> <div></div> <div></div></div> <p class="step-caption s-r"> </p></div>',1),NT=L("<div><!></div>"),OT={hash:"s-r",code:".double-click-area.s-r{height:100%;overflow:hidden;position:absolute;top:0;width:25%}.double-click-area.left.s-r{left:0}.double-click-area.right.s-r{right:0}.semicircle.s-r{background-color:rgba(0,0,0,.5);height:100%;position:absolute;top:0;width:100%}.semicircle.left.s-r{border-bottom-right-radius:50%;border-top-right-radius:50%;left:0}.semicircle.right.s-r{border-bottom-left-radius:50%;border-top-left-radius:50%;right:0}.info.s-r{align-items:center;flex-direction:column;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.info.s-r,.triangles-wrapper.s-r{display:flex;justify-content:center}.triangles-wrapper.s-r{margin-bottom:10px;position:relative}.triangle.s-r{animation:s-r-blink .5s infinite;border-bottom:6px solid transparent;border-top:6px solid transparent;height:0;opacity:0;width:0}.triangle.left.s-r:nth-child(3),.triangle.right.s-r:first-child{animation-delay:0s}.triangle.left.s-r:nth-child(2),.triangle.right.s-r:nth-child(2){animation-delay:.1s}.triangle.left.s-r:first-child,.triangle.right.s-r:nth-child(3){animation-delay:.2s}@keyframes s-r-blink{0%{opacity:0}50%{opacity:1}to{opacity:0}}.triangle.left.s-r{border-right:8px solid var(--white)}.triangle.right.s-r{border-left:8px solid var(--white)}.triangle.s-r:not(:last-child){margin-right:5px}.step-caption.s-r{color:var(--white);font-size:12px;line-height:1;margin:0;text-align:center}"};function Cp(t,e){F(e,!0),q(t,OT);let i=g(e,"seekStep",3,0),o=K(!1),r=0,a=0,l=K(pi(i())),d=m=>{m.stopPropagation(),a+=1,N(l,i()*(a-1)),a===1?e.handleSingleFirstClick(m):(N(o,!0),e.handleSecondClick()),window.clearTimeout(r),r=window.setTimeout(()=>{a=0,N(o,!1)},300)};vn(()=>{window.clearTimeout(r)});var s=NT();s.__click=d;var u=T(s);{var p=m=>{var f=RT(),b=de(f),y=k(b,2),$=T(y),S=T($),C=k(S,2),I=k(C,2);w($);var R=k($,2),E=T(R,!0);w(R),w(y),B(A=>{var O,D,U,z;se(b,1,`semicircle ${(O=e.side)!=null?O:""}`,"s-r"),se(S,1,`triangle ${(D=e.side)!=null?D:""}`,"s-r"),se(C,1,`triangle ${(U=e.side)!=null?U:""}`,"s-r"),se(I,1,`triangle ${(z=e.side)!=null?z:""}`,"s-r"),pe(E,A)},[()=>Q("doubletap_seek_step",{seconds:n(l).toFixed(0)})]),_(m,f)};V(u,m=>{n(o)&&m(p)})}w(s),B(()=>{var m;return se(s,1,`double-click-area ${(m=e.side)!=null?m:""}`,"s-r")}),_(t,s),H()}st(["click"]);var DT=(t,e,i)=>{e(!1),i()},BT=L('<div class="overlay s-u"></div> <div class="next-video s-u"><div class="top s-u"><div class="caption s-u"> </div> <!></div> <div class="row s-u"><div class="column s-u"><div class="thumb s-u"><div></div> <!></div></div> <div class="column s-u"><div class="title s-u"> </div></div></div></div>',1),FT={hash:"s-u",code:".overlay.s-u{background:rgba(0,0,0,.72);height:100%;position:absolute;width:100%}.next-video.s-u{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-u{display:flex;justify-content:space-between}.caption.s-u{color:var(--white);font-size:11px;font-weight:700;opacity:.8;text-transform:uppercase}.row.s-u{background:rgba(48,48,48,.8);cursor:pointer;display:flex;flex-direction:row;height:102px;margin-top:6px;width:100%}.column.s-u{display:flex;flex-basis:50%;flex-direction:column}.thumb.s-u{align-items:center;background:no-repeat 50%;background-size:cover;display:flex;justify-content:space-around;position:relative}.thumb.s-u,.thumb-overlay.s-u{height:100%;width:100%}.thumb-overlay.s-u{position:absolute}.thumb-overlay.withOpacity.s-u{background:var(--black);opacity:.3}.title.s-u{color:var(--white);font-size:12px;font-weight:700;line-height:1.6;max-height:52px;overflow:hidden;padding:10px 16px}"};function tg(t,e){F(e,!0),q(t,FT);let[i,o]=Re(),r=()=>x(d,"$autoplayNextEnabled$",i),a=()=>x(s,"$timerNextVideoRunning$",i),l=me(),d=l.ui.autoplayNextEnabled$,s=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,p=l.actions.internal.nextVideoAnnouncementShow,m=l.actions.internal.nextVideoAnnouncementClick,f=l.actions.internal.nextVideoAnnouncementAuto,b=l.actions.internal.nextVideoAnnouncementCancel,y=()=>{u(!1),f()},$=()=>{e.clickCloseIcon(),b()};Dt(()=>{e.isHide||p(),e.isHide&&r()&&(u(!1),f())});var S=Le(),C=de(S);{var I=R=>{var E=BT(),A=k(de(E),2),O=T(A),D=T(O),U=T(D,!0);w(D);var z=k(D,2);Ms(z,{onClick:$}),w(O);var G=k(O,2);G.__click=[DT,u,m];var le=T(G),X=T(le),oe=T(X);let j;var ve=k(oe,2);{var ce=Z=>{uc(Z,{get isRunning(){return a()},onTimerEnded:y})};V(ve,Z=>{r()&&Z(ce)})}w(X),w(le);var re=k(le,2),_e=T(re),we=T(_e,!0);w(_e),w(re),w(G),w(A),B((Z,Ne)=>{pe(U,Z),Ge(X,`background-image: url('${e.thumb}')`),j=se(oe,1,"thumb-overlay s-u",null,j,Ne),pe(we,e.title)},[()=>r()?Q("end_screen_next_video"):Q("end_screen_recommended_video"),()=>({withOpacity:r()})]),_(R,E)};V(C,R=>{e.isHide||R(I)})}_(t,S),H(),o()}st(["click"]);var s$=require("@vkontakte/videoplayer-core/es2015");var a$=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Dt(()=>{s$.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))}),vn(()=>{i==null||i(),clearTimeout(o)})};var l$=require("@vkontakte/videoplayer-core/es2015");var Ip=class{constructor(e){this.video=e}getTracksArray(){return Array.from(this.video.getElementsByTagName("track"))}attach(e,i=!1){let o=document.createElement("track");o.setAttribute("src",e.url),o.setAttribute("id",e.id),e.label&&o.setAttribute("label",e.label),e.language&&o.setAttribute("srclang",e.language),i&&(o.track.mode="showing"),this.video.appendChild(o)}detachAll(){for(let e of this.getTracksArray())this.video.removeChild(e)}updateSrc(e){let i=this.getTracksArray().find(o=>o.id===e.id);i&&(i.src=e.url)}getCurrentShowingId(){var e,i;return(i=(e=this.getTracksArray().find(o=>o.track.mode==="showing"))==null?void 0:e.id)!=null?i:null}};var d$=require("@vkontakte/videoplayer-core/es2015"),c$=({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"),p=()=>d$.clientChecker.device.isIOS&&he(l)===l$.VideoFormat.DASH_LIVE_CMAF,m=()=>{s==null||s(),s=null},f=b=>{if(m(),!p()||!b)return;let y=u();if(!y)return;let $=new Ip(y),S=he(d),C=he(a),I=he(r);for(let A of S)C.some(D=>D.value===A.id)&&$.attach(A,I.value===A.id);let R=d.subscribe(A=>{for(let O of A)$.updateSrc(O)}),E=()=>{let A=$.getCurrentShowingId();o(he(a).find(O=>O.value===A))};y.textTracks.addEventListener("change",E),s=()=>{R(),$.detachAll(),y.textTracks.removeEventListener("change",E)}};Dt(()=>i.subscribe(f)),vn(m)};var HT=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},UT=L("<!> <!>",1),zT=L("<div><!></div>"),WT=L('<div class="spherical-video-icon s-9"><!></div>'),KT=L("<div><!></div>"),qT=L('<div class="settings-mobile s-9"><!></div>'),QT=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),GT=L('<div class="player-wrapper s-9" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),YT={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 ig(t,e){var Wn,zr;F(e,!0),q(t,YT);let[i,o]=Re(),r=()=>x(Ve,"$playerPhase",i),a=()=>x(yi,"$isLoaderVisible",i),l=()=>x(xe,"$adPlaybackState",i),d=()=>x(ei,"$crashed",i),s=()=>x($s,"$notificationsToShow$",i),u=()=>x(J,"$playbackState$",i),p=()=>x(Ft,"$graphIsOpened$",i),m=()=>x(et,"$interactiveHideMobileControls",i),f=()=>x(no,"$isEnded$",i),b=()=>x(ct,"$isInteractiveExpectation$",i),y=()=>x(vt,"$controlsVisible",i),$=()=>x(ut,"$touched",i),S=()=>x(Fi,"$autoplayNextEnabled$",i),C=()=>x(ft,"$postrollPassed",i),I=()=>x(Hr,"$bottomNoSmooth",i),R=()=>x(Ti,"$videoSize",i),E=()=>x(Pt,"$playerSize",i),A=()=>x(at,"$isFullscreen",i),O=()=>x(Pe,"$position$",i),D=()=>x(Et,"$duration$",i),U=()=>x(Bo,"$loadedMetadata",i),z=()=>x(We,"$settingsMenuVisible",i),G=()=>x(ii,"$scrubbingInProgress",i),le=()=>x(li,"$volumeChangingInProgress",i),X=()=>x($o,"$chromecastConnected$",i),oe=()=>x($e,"$isControlsAvailable",i),j=()=>x(di,"$isInteractiveTime$",i),ve=()=>x(Tt,"$isActiveLive",i),ce=()=>x(rt,"$settingsMenuOpenedByKeyboard",i),re=()=>x(be,"$language$",i),_e=()=>x(Zt,"$disabledControls$",i),we=()=>x(Ht,"$is3DVideo",i),Z=()=>x(W,"$icon3DVideoVisible",i),Ne=()=>x(fi,"$chromecastDeviceName$",i),ue=()=>x(ro,"$currentSubtitle$",i),P=()=>x(tn,"$currentSubtitleCaptions$",i),Ke=()=>x(_n,"$realDuration$",i),Ce=()=>x(Ai,"$isLive$",i),Y=()=>x(Jt,"$isPlaying$",i),ie=()=>x(gi,"$debugPanelVisible",i),Oe=g(e,"videoContainer",15),Be=g(e,"adsSlotId",3,void 0),fe=g(e,"adsParams",3,void 0),ee=g(e,"adsAutoplayParam",3,void 0),Se=g(e,"duration",3,void 0),Fe=g(e,"logoTargetUrl",3,""),qe=g(e,"showNextPrevButtons",3,!1),je=g(e,"nextButtonActive",3,!1),Te=g(e,"prevButtonActive",3,!1),Me=g(e,"endScreenVideoTitle",3,void 0),ze=g(e,"endScreenVideoThumb",3,void 0),Nt=g(e,"isOneVideoPlaylist",3,!1),tt=g(e,"showMiniTimer",3,!1),Bt=g(e,"fullScreenTarget",3,void 0),Qt=g(e,"playerStarted",3,!1),It=g(e,"showEndScreen",3,!0),{notifications$:ti,graphIsOpened$:Ft}=Io(),ye=e.store.getLogger().createComponentLog("Root component"),be=e.store.interfaceLanguage$,J=e.store.state.playbackState$,xe=e.store.ads.playbackState,Pe=e.store.state.positionWithScrubbing$,Et=e.store.state.duration$,Ve=e.store.playerPhase,at=e.store.ui.isFullscreen,vt=e.store.ui.controlsVisible,$e=e.store.ui.isControlsAvailable,et=e.store.ui.interactiveHideMobileControls,We=e.store.ui.settingsMenu.visible$,rt=e.store.ui.settingsMenu.openedByBtnKeyboard$,ii=e.store.ui.scrubbingInProgress,li=e.store.ui.volumeChangingInProgress,gi=e.store.ui.debugPanelVisible,yi=e.store.state.isLoaderVisible,no=e.store.state.isEnded$,$o=e.store.state.chromecastConnected$,fi=e.store.state.chromecastDeviceName$,ft=e.store.ads.postrollPassed,Ai=e.store.state.isLive$,Jt=e.store.state.isPlaying$,Tt=e.store.state.isActiveLive$,ri=e.store.state.isRewindableLive$,ei=e.store.state.crashed$,bt=e.store.webApi.annotationsApi,Xe=e.store.webApi.pictureInPictureApi,Ti=e.store.state.videoSize$,ro=e.store.state.currentSubtitle$,tn=e.store.state.currentSubtitleCaptions$,_n=e.store.state.duration$,Pt=e.store.ui.playerSize,Ht=e.store.ui.is3DVideo,W=e.store.ui.icon3DVideoVisible,Mt=e.store.state.isInteractive,di=e.store.state.isInteractiveTime$,ct=e.store.state.isInteractiveExpectation$,Ct=e.store.state.hasInteractiveBranches,Zt=e.store.ui.controls.disabledControls$,ut=e.store.ui.touched,Bi=e.store.ui.overlayContainer$,Fi=e.store.ui.autoplayNextEnabled$,Bo=e.store.state.loadedMetadata$,Eo=e.store.actions.internal.closeSettingsMenu,yo=(Wn=e.store.callbacks)==null?void 0:Wn.onDisabledPlayPrevChapterClick,ji=(zr=e.store.callbacks)==null?void 0:zr.onDisabledSeekToInteractiveClick,Fr=e.store.actions.internal.setQuality,so=K(void 0),ao=K(void 0),Li=K(void 0),bn=K(void 0),on,er,xr=v(()=>(r()==="video"&&a()||r()==="ads"&&l()==="inactive")&&!d()),wr=K(void 0),{closeNotification:bs,notificationsToShow$:$s}=ti,os=v(()=>!!s().slow_video),On=()=>bs("slow_video"),Hr=ae(!1),$n,xo=K(!1),Dn=v(()=>u()!==ua.PlaybackState.PLAYING),Bn=K(!1),Sr=v(()=>p()||m()||!n(xo)&&(f()&&!!Ct||n(Dn)&&b())),tr=K(!0),ns=v(()=>e.uiConfig.features.thumbTimer&&tt()&&r()==="video"&&!y()&&!d()&&!Mt&&(e.uiConfig.hideThumbTimerAfterTouch&&!$()||!e.uiConfig.hideThumbTimerAfterTouch)),Ur=K(!1),lo=v(()=>(It()||e.showAutoplayNext&&S())&&!!Me()&&!!ze()&&(e.showAds&&C()||!e.showAds)&&f()&&!d()&&!n(Ur)),Tr=K(!1);Xe==null||Xe.setContext(Id());let ir=wt=>{wt&&!Mt&&wo(e.uiConfig.controls.hideTimeoutMobile)};e.store.setUiCallbacks({onStarted:ir});let yn=()=>{clearTimeout(on),N(xo,!1),m()&&et.set(!1)},wo=wt=>{yn(),N(xo,!0),on=setTimeout(()=>N(xo,!1),wt);let At=wt-100;$n=setTimeout(()=>{I()&&Hr.set(!1)},At>0?At:wt)},Cr=Ht.subscribe(wt=>{W.set(wt),wt&&(clearTimeout(er),er=setTimeout(()=>W.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Fn=(...At)=>gt(null,[...At],function*(wt=ia()){var co,Hi,Ui,wn,To,Kn;if(wt&&!ua.clientChecker.device.isIOS){let mi=tc(),Wr=Hn(),ar=ua.clientChecker.browser.isSamsungBrowser&&mi===e.shadowRootContainer;wt=mi===Wr||ar}if(wt){wo(e.uiConfig.controls.hideTimeoutFullscreen);try{yield Xe==null?void 0:Xe.exit()}catch(mi){ye({message:String(mi)})}try{let mi=(co=R())!=null&&co.width&&((Hi=R())!=null&&Hi.height)?R():E();yield J_(mi)}catch(mi){ye({message:String(mi)})}}at.set(wt),e.store.getAdmanWrapper().setFullscreen(wt),A()?(wn=(Ui=e.store.callbacks)==null?void 0:Ui.onFullscreenEnter)==null||wn.call(Ui):(Kn=(To=e.store.callbacks)==null?void 0:To.onFullscreenExit)==null||Kn.call(To)}),$t=wt=>{let At=wt,{width:co,height:Hi}=At.target;Pt.set({width:co,height:Hi})},ci=()=>{let{width:wt,height:At}=n(so).getBoundingClientRect();Pt.set({width:wt,height:At})};Dt(()=>{var wt;return Ju(Fn),e.uiConfig.features.annotationsInside&&(bt==null||bt.init(n(so))),Ha(Xe)&&(Xe==null||Xe.assignPlayerContainer(n(so)),Xe==null||Xe.setExternalEventHandlers({resize:$t,leavepictureinpicture:ci})),N(tr,!ua.clientChecker.device.isIphoneOrOldIpad),e.interactiveContainer&&((wt=Oe().parentElement)==null||wt.insertBefore(e.interactiveContainer,Oe().nextSibling)),()=>{clearTimeout(on),clearTimeout($n),clearTimeout(er),Cr(),Xe==null||Xe.dispose().catch(At=>{ye({message:String(At)})}),ep(Fn)}});let Ir=K(!0),xn=K(!0),Er=wt=>{let At=O()+(wt==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;At<0?(N(Ir,!1),At=0):At>=D()&&(N(xn,!1),At=D()),N(Bn,!0),e.seekTime(At)},Hn=()=>ua.clientChecker.device.isIOS?n(so):!e.uiConfig.allowChangingFullscreenTarget||!Bt()?e.outerContainerRef:Bt().contains(e.outerContainerRef)?Bt():e.outerContainerRef,or=()=>gt(null,null,function*(){try{if(ia())yield Zu(document),ye({message:"exit fullscreen"});else{if(ye({message:"request fullscreen"}),ua.clientChecker.device.isIOS&&!U())return;yield Xu(Hn())}}catch(wt){ye({message:String(wt)})}}),nn=()=>{Eo()},Un=wt=>{if(wt.preventDefault(),z()){nn();return}if(!Qt()){e.firstStart(),wo(e.uiConfig.controls.hideTimeoutCursor);return}N(Bn,!1),y()?yn():wo(e.uiConfig.controls.hideTimeoutMobile)},rn=()=>{ut.set(!0)},zn=()=>{Mt||(Hr.set(!0),wo(e.uiConfig.controls.hideTimeoutCursor))},Po=wt=>{yo&&(yo(wt),wo(e.uiConfig.controls.hideTimeoutMobile))},sn=wt=>{ji&&(ji(wt),wo(e.uiConfig.controls.hideTimeoutMobile))};De(()=>{Bi.set(n(wr))}),De(()=>{vt.set((n(Dn)||z()||G()||le()||X()||!n(lo)&&(f()||n(xo)&&!n(Bn)))&&!n(Sr)&&r()==="video"&&!d()&&oe())}),De(()=>{!G()&&n(Tr)&&!j()&&wo(e.uiConfig.controls.hideTimeoutMobile),N(Tr,G(),!0)}),De(()=>{N(Ir,O()>0),N(xn,!ve()&&O()<D(),!0)}),De(()=>{lc(n(bn),z(),ce(),!0)});let So=Q("aria_label_video_player");a$({fullScreenChangeHandler:Fn,getFullscreenTarget:Hn}),c$({store:e.store,getFullscreenTarget:Hn});let nr=(wt,At)=>{var wn,To;let co=(To=(wn=e.store.callbacks)==null?void 0:wn.uiInfo)==null?void 0:To.onUpcomingLiveViewStateChanged;if(!co)return;let Hi=!!At,Ui=Ae(Ae({},Zn(n(so),{upcomingLiveScreen:At},"upcomingLiveScreen",Hi)),wt);co(Ui)};var Xi=GT();_t("blur",Ca,nn);var rr=T(Xi);al(rr,{onClick:Un,get videoContainer(){return Oe()},set videoContainer(wt){Oe(wt)}});var sr=k(rr,2);La(sr,()=>"slot",!1,(wt,At)=>{eo(wt,()=>({name:sl}))});var Pr=k(sr,2);Es(Pr,re,wt=>{var At=QT(),co=de(At);let Hi=v(()=>r()!=="thumb"||d()||Mt&&e.autoplay);ol(co,{get hidden(){return n(Hi)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Ui=k(co,2);{var wn=Ze=>{var Gt=UT(),Ii=de(Gt);{var Wo=fo=>{let Mr=v(()=>e.uiConfig.controls.seekStepMobile/1e3);Cp(fo,{side:"left",get seekStep(){return n(Mr)},handleSingleFirstClick:Un,handleSecondClick:()=>Er("backward")})};V(Ii,fo=>{n(Ir)&&fo(Wo)})}var cn=k(Ii,2);{var ur=fo=>{let Mr=v(()=>e.uiConfig.controls.seekStepMobile/1e3);Cp(fo,{side:"right",get seekStep(){return n(Mr)},handleSingleFirstClick:Un,handleSecondClick:()=>Er("forward")})};V(cn,fo=>{n(xn)&&fo(ur)})}_(Ze,Gt)};V(Ui,Ze=>{e.canRewindLive&&ri&&!_e().has("TIMELINE")&&Ze(wn)})}var To=k(Ui,2);{var Kn=Ze=>{let Gt=v(()=>{var Ii;return(Ii=e.live)==null?void 0:Ii.startTime});Oc(Ze,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(Gt)},onUpcomingLiveViewStateChanged:nr})};V(To,Ze=>{r()==="LiveWaitingStart"&&Ze(Kn)})}var mi=k(To,2);{var Wr=Ze=>{nl(Ze,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};V(mi,Ze=>{r()==="LiveWaitingRecover"&&Ze(Wr)})}var ar=k(mi,2);{var rs=Ze=>{nl(Ze,{kind:"record",get thumbUrl(){return e.thumbUrl}})};V(ar,Ze=>{r()==="LiveWaitingRecord"&&Ze(rs)})}var Ar=k(ar,2);{var an=Ze=>{var Gt=zT();let Ii;var Wo=T(Gt);oc(Wo,{get adsSlotId(){return Be()},get adsParams(){return fe()},get adsAutoplayParam(){return ee()},get duration(){return Se()},get adsExternalApi(){return e.adsExternalApi}}),w(Gt),B(cn=>Ii=se(Gt,1,"ads-container s-9",null,Ii,cn),[()=>({hidden:r()!=="ads"})]),_(Ze,Gt)};V(Ar,Ze=>{e.showAds&&Qt()&&Ze(an)})}var lr=k(Ar,2);{var Ao=Ze=>{let Gt=v(()=>!It()&&e.showAutoplayNext&&S());tg(Ze,{get title(){return Me()},get thumb(){return ze()},get isHide(){return n(Gt)},clickCloseIcon:()=>N(Ur,!0)})};V(lr,Ze=>{n(lo)&&Me()&&ze()&&Ze(Ao)})}var Ho=k(lr,2);{var kr=Ze=>{Rc(Ze,{})};V(Ho,Ze=>{we()&&Ze(kr)})}var ln=k(Ho,2);{var ss=Ze=>{var Gt=WT(),Ii=T(Gt);ec(Ii,{}),w(Gt),_(Ze,Gt)};V(ln,Ze=>{Z()&&Ze(ss)})}var Qe=k(ln,2);{var Vt=Ze=>{Nc(Ze,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return Ne()}})};V(Qe,Ze=>{X()&&Ze(Vt)})}var xi=k(Qe,2);{var ko=Ze=>{tl(Ze,{get shifted(){return y()},get captions(){return P()},get position(){return O()},get playerSize(){return E()},isMobile:!0})};V(xi,Ze=>{ue().value!=="off"&&Ze(ko)})}var Lo=k(xi,2);{var Uo=Ze=>{var Gt=KT();Gt.__click=[HT,z,We,nn];var Ii=T(Gt);il(Ii,{}),w(Gt),_(Ze,Gt)};V(Lo,Ze=>{d()&&Ze(Uo)})}var uo=k(Lo,2);{var Zi=Ze=>{let Gt=v(()=>r()==="thumb"||r()==="LiveWaitingStart"||r()==="LiveWaitingRecover"||r()==="LiveWaitingRecord"||r()==="ads"),Ii=v(()=>r()==="ads"),Wo=v(()=>e.canRewindLive&&Ke()!==0);Mc(Ze,{get bottomHidden(){return n(Gt)},get showControls(){return y()},get bottomNoSmooth(){return I()},get isAds(){return n(Ii)},get canRewindLive(){return n(Wo)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Fe()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return qe()},get nextButtonActive(){return je()},get prevButtonActive(){return Te()},get isOneVideoPlaylist(){return Nt()},get customFullscreenSupported(){return n(tr)},get endScreenShown(){return n(lo)},toggleFullscreen:or,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:Po,onDisabledSeekToInteractiveClick:sn,get playerControlsWrapperRef(){return n(ao)},set playerControlsWrapperRef(cn){N(ao,cn,!0)},get playerControlsRef(){return n(Li)},set playerControlsRef(cn){N(Li,cn,!0)}})};V(uo,Ze=>{Qt()&&Ze(Zi)})}var Sn=k(uo,2);{var zo=Ze=>{var Gt=qT(),Ii=T(Gt);Hc(Ii,{get supportLink(){return e.supportLink},get returnFocus(){return u$.noop},get ref(){return n(bn)},set ref(Wo){N(bn,Wo,!0)}}),w(Gt),_(Ze,Gt)};V(Sn,Ze=>{z()&&Ze(zo)})}var po=k(Sn,2);let Mo=v(()=>!n(ns));sc(po,{get isLive(){return Ce()},get isHidden(){return n(Mo)},get isPlaying(){return Y()},get position(){return O()},get duration(){return D()}});var dr=k(po,2);{var cr=Ze=>{Ka(Ze,{})};V(dr,Ze=>{n(xr)&&Ze(cr)})}var dn=k(dr,2);{var as=Ze=>{cc(Ze,{})};V(dn,Ze=>{ie()&&Ze(as)})}var ys=k(dn,2);{var Lr=Ze=>{Uc(Ze,{onClose:On,onSelectAutoQuality:()=>{Fr("auto"),On()}})};V(ys,Ze=>{n(os)&&Ze(Lr)})}_(wt,At)});var Fo=k(Pr,2);nt(Fo,wt=>N(wr,wt),()=>n(wr)),w(Xi),nt(Xi,wt=>N(so,wt),()=>n(so)),B(()=>Ue(Xi,"aria-label",So)),_t("click",Xi,rn,!0),_t("focusin",Xi,zn,!0),_(t,Xi),H(),o()}st(["click"]);function Ep(t){let e="";return oo(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),oo(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),oo(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),oo(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),oo(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),oo(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),oo(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),oo(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),oo(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),oo(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),oo(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),oo(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),oo(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),oo(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),oo(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),oo(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),oo(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),oo(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),oo(t.font)&&(e+=`--font:${t.font};`),oo(t.controlsGradientHeight)&&(e+=`--controls-gradient-height:${t.controlsGradientHeight};`),oo(t.controlsGradient)&&(e+=`--controls-gradient:${t.controlsGradient};`),e.length&&e||void 0}function oo(t){return typeof t=="string"&&!t.includes(";")}var p$=require("@vkontakte/videoplayer-shared/es2015");var jT=L('<div class="time-container s-7"><!></div>'),XT=L('<div class="player-wrapper s-7" role="region"><!> <!> <!> <!> <!> <div><!></div></div>'),ZT={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 og(t,e){F(e,!0),q(t,ZT);let[i,o]=Re(),r=()=>x(j,"$scrubbingInProgress",i),a=()=>x(X,"$playerSize",i),l=()=>x(O,"$isPlaying$",i),d=()=>x(E,"$duration$",i),s=()=>x(z,"$positionWithScrubbing$",i),u=()=>x(I,"$playerPhase",i),p=()=>x(R,"$crashed$",i),m=()=>x(D,"$currentSubtitle$",i),f=()=>x(U,"$currentSubtitleCaptions$",i),b=()=>x(A,"$positionExact$",i),y=()=>x(G,"$isLive$",i),$=()=>x(le,"$isRewindableLive$",i),S=g(e,"outsideDuration",3,0),C=g(e,"videoContainer",15),{playerPhase:I,state:{crashed$:R,duration$:E,positionExact$:A,isPlaying$:O,currentSubtitle$:D,currentSubtitleCaptions$:U,positionWithScrubbing$:z,isLive$:G,isRewindableLive$:le},ui:{playerSize:X,controls:oe,scrubbingInProgress:j},actions:{internal:{getVideoElement:ve}}}=me(),ce=8,re=K(!1),_e=pi({}),we=K(!1),Z=v(()=>!r()&&!n(we)),Ne=()=>{N(re,!0)},ue=()=>{N(re,!1)},P=(0,p$.debounceFn)(nd,260);De(()=>{a(),P(ve(),oe,_e,n(re))});let Ke=v(()=>l()?en(d()-s()):en(isFinite(d())?d():S()));var Ce=XT(),Y=T(Ce);al(Y,{hideCursor:!1,get videoContainer(){return C()},set videoContainer(Me){C(Me)}});var ie=k(Y,2);La(ie,()=>"slot",!1,(Me,ze)=>{eo(Me,()=>({name:sl}))});var Oe=k(ie,2);let Be=v(()=>u()!=="thumb"||p());ol(Oe,{get hidden(){return n(Be)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var fe=k(Oe,2);{var ee=Me=>{tl(Me,{shifted:!1,get captions(){return f()},get position(){return b()},get playerSize(){return a()}})};V(fe,Me=>{m().value!=="off"&&n(Z)&&Me(ee)})}var Se=k(fe,2);{var Fe=Me=>{var ze=jT(),Nt=T(ze);rc(Nt,{get isLive(){return y()},get isPlaying(){return l()},get time(){return n(Ke)}}),w(ze),_(Me,ze)};V(Se,Me=>{n(Z)&&Me(Fe)})}var qe=k(Se,2);let je;var Te=T(qe);Za(Te,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return $()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:ce,tooltipRightOffset:ce,get ref(){return _e.timeline},set ref(Me){_e.timeline=Me}}),w(qe),w(Ce),B(Me=>je=se(qe,1,"timeline s-7",null,je,Me),[()=>({visible:n(re)})]),_t("mouseenter",Ce,Ne),_t("mouseleave",Ce,ue),_t("mouseenter",qe,()=>N(we,!0)),_t("mouseleave",qe,()=>N(we,!1)),_(t,Ce),H(),o()}var JT=L("<div><!></div>"),eC={hash:"s-1",code:'.vk-vp-root.s-1{--white:#fff;--black:#000;--red:#ff3347;--blue-light:#70c1ff;--black-alpha-40:rgba(0,0,0,.4);--white-alpha-24:hsla(0,0%,100%,.24);--white-alpha-72:hsla(0,0%,100%,.72);--devider-gray:#dce1e6;--text-gray:#626d7a;--font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;--controls-height:40px;--controls-gradient-height:100px;--controls-transition-duration:0.25s;--controls-transition-fn:cubic-bezier(0.455,0.03,0.515,0.955);--controls-desktop-item-margin-left:4px;--controls-desktop-padding-horizontal:4px;--focused:var(--white);--focused-outline-width:2px;--focused-outline-radius:0;--focused-element-shadow:inset 0 0 0 var(--focused-outline-width) var(--focused);--focused-slider-shadow:0 0 0 2px var(--focused);--big-play-size:96px;--big-play-radius:50%;--big-play-bg-color:rgba(0,0,0,.5);--big-play-hover-bg-color:rgba(0,0,0,.6);--big-play-icon-width:38px;--big-play-icon-height:33px;--interactive-episode-complete:#5c9ce6;--slider-bg:hsla(0,0%,100%,.4);--slider-filled-bg:var(--white);--slider-handle-bg:var(--white);--slider-loaded-bg:hsla(0,0%,100%,.4);--slider-height:3px;--slider-video-episode-gap:1.5px;--slider-radius:0px;--slider-handle-size:12px;--slider-filled-ads:#67a5eb;--slider-disabled-color:hsla(0,0%,97%,.31);--slider-volume-height:5px;--slider-volume-radius:calc(var(--slider-volume-height)/2);--slider-volume-handle-size:13px;--timeline-slider-filled-active-live-bg:var(--red);--timeline-slider-handle-active-live-bg:var(--red);--timeline-slider-bg:var(--slider-bg);--timeline-slider-filled-bg:var(--slider-filled-bg);--timeline-slider-handle-bg:var(--slider-handle-bg);--timeline-slider-loaded-bg:var(--slider-loaded-bg);--volume-slider-bg:var(--slider-bg);--volume-slider-filled-bg:var(--slider-filled-bg);--volume-slider-handle-bg:var(--slider-handle-bg);--controls-time:var(--white);--controls-gradient:linear-gradient(180deg,transparent 0%,rgba(0,0,0,.005) 6.67%,rgba(0,0,0,.02) 13.33%,rgba(1,1,1,.04) 20%,rgba(1,1,1,.07) 26.67%,rgba(2,2,2,.11) 33.33%,rgba(3,3,3,.16) 40%,rgba(4,4,4,.22) 46.67%,rgba(6,6,6,.28) 53.33%,rgba(7,7,7,.33) 60%,rgba(8,8,8,.38) 66.67%,rgba(9,9,9,.42) 73.33%,rgba(9,9,9,.46) 80%,hsla(0,0%,4%,.48) 86.67%,hsla(0,0%,4%,.5));--timeline-preview-shadow:rgba(0,0,0,.08);--timeline-preview-bg:#222;--timeline-padding-horizontal:10px;--timeline-padding-vertical-top:3px;--timeline-padding-vertical-bottom:4px;--timeline-height:calc(var(--timeline-padding-vertical-bottom) + var(--timeline-padding-vertical-top) + var(--slider-height));--preview-track-frame-height-vertical:114px;--preview-track-frame-height-horizontal:65px;--preview-track-controls-top:16px;--preview-track-time-line-height:16px;--preview-track-bottom-offset:10px;--preview-track-height:calc(var(--preview-track-frame-height-vertical) + var(--preview-track-bottom-offset));--preview-track-controls-top-offset:calc(var(--timeline-height) + var(--preview-track-controls-top) + var(--preview-track-time-line-height));--settings-bg:rgba(0,0,0,.72);--settings-item-bg-hover:hsla(0,0%,100%,.08);--settings-radius:8px;--mobile-settings-bg:#2c2d2e;--divider-border:1px solid var(--white-alpha-24);--toggle-color-separator:#363738;--toggle-color-off:#656565;--toggle-color-on:#71aaeb;--toggle-color-autoplay-on:var(--white);--notification-bg:#2c2d2e;--notification-radius:8px;--button-hover-transition:opacity 0.2s;--video-container-z-index:0;--controls-container-z-index:1;--ads-container-z-index:1;--end-screen-mobile-z-index:1;--notification-z-index:1;--thumb-timer-z-index:2;--debug-panel-z-index:2;--settings-menu-z-index:2;--context-menu-z-index:3;--hot-key-helpers-container-z-index:3;--overlay-container-z-index:4;--rotate-transition-duration:0.25s;--btn-color:var(--white);--double-forward-bg:rgba(0,0,0,.6);background:var(--black);color:var(--white);font-family:var(--vk-vp-custom-font,var(--font));font-size:12px;height:100%;line-height:normal;outline:0;overflow:hidden;position:relative;user-select:none;width:100%}.vk-vp-root.visible-outside.s-1{overflow:visible}.vk-vp-root.s-1 *{-webkit-tap-highlight-color:transparent}.vk-vp-root.s-1 button{background:transparent;border:none;color:inherit;font:inherit;line-height:normal;margin:0;overflow:visible;padding:0;width:auto;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;cursor:pointer}.vk-vp-root.s-1 p{margin:0}.vk-vp-root.s-1 svg:not(.interactive-root svg){pointer-events:none}.vk-vp-root.s-1 .interactive-root{font-family:var(--vk-vp-int-custom-font,inherit)}.vk-vp-root.s-1 :focus,.vk-vp-root.s-1 :focus-visible{outline:none}.vk-vp-root.s-1 :focus-visible{border-radius:var(--focused-outline-radius);box-shadow:var(--focused-element-shadow)}.vk-vp-root.s-1 .focus-hidden:focus-visible{box-shadow:none}.vk-vp-root.s-1 .hidden{opacity:0;visibility:hidden}.vk-vp-root.s-1 .out-of-flow{content-visibility:hidden!important}.vk-vp-root.s-1 .overlay-container{height:100%;left:0;pointer-events:none;position:fixed;top:0;width:100%;z-index:var(--overlay-container-z-index)}.vk-vp-root.s-1 .out-of-view{left:-1000vh!important;position:absolute!important}.vk-vp-root.s-1 .icon.icon-error-stub{align-items:center;display:flex;justify-content:center}'};function ng(t,e){F(e,!0),q(t,eC);let[i,o]=Re(),r=()=>x(Qt,"$isLive$",i),a=()=>x(bt,"$availableSubtitlesList$",i),l=()=>x(Xe,"$isPreviewTrackHorizontallyAligned$",i),d=g(e,"sources",7),s=g(e,"store",7),u=g(e,"microStoresRoot",7),p=g(e,"videoConfig",7),m=g(e,"uiConfig",7),f=g(e,"title",7),b=g(e,"thumbUrl",7),y=g(e,"interactiveContainer",7),$=g(e,"interactiveController",7),S=g(e,"subtitles",7),C=g(e,"subtitlesForcedLanguage",7),I=g(e,"live",7),R=g(e,"preload",7),E=g(e,"autoplay",7),A=g(e,"volume",7,void 0),O=g(e,"muted",7,void 0),D=g(e,"fromTime",7),U=g(e,"canRewindLive",7),z=g(e,"showAds",7),G=g(e,"adsSlotId",7,void 0),le=g(e,"adsParams",7,void 0),X=g(e,"adsAutoplayParam",7,void 0),oe=g(e,"duration",7,void 0),j=g(e,"logoClickable",7),ve=g(e,"logoHidden",7),ce=g(e,"isMobile",7),re=g(e,"showNextPrevButtons",7,!1),_e=g(e,"nextButtonActive",7,!1),we=g(e,"prevButtonActive",7,!1),Z=g(e,"endScreenVideoTitle",7,void 0),Ne=g(e,"endScreenVideoThumb",7,void 0),ue=g(e,"isOneVideoPlaylist",7,!1),P=g(e,"supportLink",7),Ke=g(e,"shadowRootContainer",7),Ce=g(e,"outerContainerRef",7),Y=g(e,"fullScreenTarget",7,void 0),ie=g(e,"failoverHosts",7,void 0),Oe=g(e,"showMiniTimer",7,!1),Be=g(e,"saveRate",7),fe=g(e,"seekToInteractive",7,ll.noop),ee=g(e,"playPrevChapter",7,ll.noop),Se=g(e,"volumeMultiplier",7),Fe=g(e,"showAutoplayNext",7),qe=g(e,"showEndScreen",7,!0),je=g(e,"keyboardControls",15,void 0),{subscribers:Te,stores:Me}=u();l_(m());let ze=Rt(),Nt=m().logoLink,tt=s().ui.debugPanelVisible,Bt=s().ui.playerSize,Qt=s().state.isLive$,ti=s().state.isInteractive&&dd.clientChecker.device.isAndroid,Ft=K(void 0),ye=null,be=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}),b_(s(),Me),De(()=>{var W,Mt;s().ui.isMobile.set(ce()),(Mt=(W=p().callbacks)==null?void 0:W.onDomReady)==null||Mt.call(W)});let J=(W=!1)=>{N(be,!0),W?s().actions.external.firstStart(z()):s().actions.internal.firstStart(z())},xe=()=>{if(ze.features.qualityDetailsSubMenuEnabled){let W=H_(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{U_(s().videoId),Zf()&&s().actions.internal.setTrafficSavingEnabled(!0);let Mt=Gf(s().videoId);Mt&&s().actions.internal.setQuality(Mt)}};function Pe(W){var Zt,ut,Bi;let Mt=d()||W;Mt&&s().initVideo({container:n(Ft),sources:Mt,failoverHosts:ie(),subtitles:S(),subtitlesForcedLanguage:C(),volumeMultiplier:Se()});let di=ll.safeStorage.get(Yd)==="true";tt.set(di),D()>0&&s().actions.external.seekTime(D());let ct=ce()?ze.volumeDefault:(ut=(Zt=A())!=null?Zt:Uu())!=null?ut:ze.volumeDefault,Ct=(Bi=O())!=null?Bi:R_();if(s().actions.external.setVolume(ct),s().actions.external.setMuted(Ct),s().getAdmanWrapper().setInitialVolume(Ct?0:ct),xe(),ze.features.saveRate&&Be()){let Fi=D_();Fi&&!r()&&s().actions.internal.setPlaybackRate(Fi)}if(Fe()){let Fi=F_();Fi&&s().actions.internal.setAutoplayNextEnabled(Fi)}s().ui.isAutoplay.set(E()),E()&&J(),R()&&ze.features.preload&&s().actions.internal.preload()}let Et=W=>{if(window.ResizeObserver){let Mt,di;ye=new ResizeObserver((0,ll.throttleFn)(ct=>{let Ct=ct[0];if(Ct.contentBoxSize){let Zt=Array.isArray(Ct.contentBoxSize)?Ct.contentBoxSize[0]:Ct.contentBoxSize;Mt=Zt.inlineSize,di=Zt.blockSize}else Ct.contentRect&&(Mt=Ct.contentRect.width,di=Ct.contentRect.height);Bt.set({width:Mt,height:di})},300)),ye.observe(W)}Bt.set({width:W.clientWidth,height:W.clientHeight})},Ve=()=>{document.hidden&&s().actions.external.stop()};Dt(()=>{var di,ct,Ct,Zt;ti&&document.addEventListener("visibilitychange",Ve),ze.debugLog&&s().actions.internal.startLogging(),Et(n(Ft));let W=Te.map(ut=>ut.init({store:s(),microStores:Me,config:p(),interactiveController:$(),uiConfig:m()})),Mt=()=>{ti&&document.removeEventListener("visibilitychange",Ve),ye==null||ye.disconnect(),W.forEach(ut=>ut.unsubscribe()),s().destroy()};return((di=I())==null?void 0:di.status)==="upcoming"?(s().actions.internal.setLiveWaitingStart(!0),Mt):((ct=I())==null?void 0:ct.status)==="waiting"?(s().actions.internal.setLiveWaitingRecover(!0),Mt):(((Ct=I())==null?void 0:Ct.status)==="finished"||((Zt=I())==null?void 0:Zt.status)==="postlive")&&!(d()&&(0,dd.areValidLiveRecordSources)(d()))?(s().actions.internal.setLiveWaitingRecord(!0),Mt):(Pe(),Mt)});function at(){n(be)?s().actions.external.play():J(!0)}function vt(){s().actions.external.pause()}function $e(W){s().actions.external.setMuted(W)}function et(){s().actions.external.toggleSubtitle()}function We(W,Mt){s().actions.external.changeSubtitle(W,Mt)}function rt(W){s().actions.external.changeAudioStream(W)}function ii(){var W;(W=s().webApi.slotsApi)!=null&&W.haveSlots()&&s().actions.external.hideControls()}function li(){var W;(W=s().webApi.slotsApi)!=null&&W.haveSlots()&&s().actions.external.showControls()}function gi(W){ce()||W>=0&&W<=1&&s().actions.external.setVolume(W)}function yi(W){s().actions.internal.seekTime(W,f$.SeekAction.UNKNOWN)}function no(W){s().actions.external.seekEpisodeStartTime(W)}function $o(){s().actions.external.returnFocusToEpisodes()}function fi(W){s().actions.external.setPlaybackRate(W)}function ft(W){s().actions.external.setAutoQualityLimits(W)}function Ai(){s().actions.external.setQuality("auto")}function Jt(W){s().actions.external.setTrafficSavingEnabled(W)}function Tt(W){s().actions.external.setHighQualityEnabled(W)}let ri=Ep(ze.view),ei=p().playerView==="preview",bt=s().state.availableSubtitlesList$;if(ze.features.initSubtitles){let W=!1;De(()=>{var Mt;if(!W&&a().length){W=!0;let di;if(ze.features.userVideoPrefs&&s().videoId){let Ct=qu(ze.userSalt,String(s().videoId));Ct!=null&&Ct.subtitleTrackId&&(di=a().find(Zt=>Zt.value===Ct.subtitleTrackId))}let ct=(Mt=C())!=null?Mt:em();ct&&(di=a().find(Ct=>Ct.language===ct)),s().actions.internal.setSubtitle(di)}})}let Xe=s().ui.isPreviewTrackHorizontallyAligned;var Ti=JT();let ro;var tn=T(Ti);{var _n=W=>{ig(W,{get store(){return s()},get uiConfig(){return ze},get thumbUrl(){return b()},get interactiveContainer(){return y()},get live(){return I()},get autoplay(){return E()},get canRewindLive(){return U()},get showAds(){return z()},get adsSlotId(){return G()},get adsParams(){return le()},get adsAutoplayParam(){return X()},get duration(){return oe()},get logoClickable(){return j()},get logoHidden(){return ve()},get logoTargetUrl(){return Nt},get nextButtonActive(){return _e()},get prevButtonActive(){return we()},get endScreenVideoTitle(){return Z()},get endScreenVideoThumb(){return Ne()},get isOneVideoPlaylist(){return ue()},get supportLink(){return P()},get shadowRootContainer(){return Ke()},get outerContainerRef(){return Ce()},get fullScreenTarget(){return Y()},get showMiniTimer(){return Oe()},get playerStarted(){return n(be)},get seekToInteractive(){return fe()},get playPrevChapter(){return ee()},firstStart:J,seekTime:yi,get showEndScreen(){return qe()},get showAutoplayNext(){return Fe()},get showNextPrevButtons(){return re()},get adsExternalApi(){return e.adsExternalApi},get videoContainer(){return n(Ft)},set videoContainer(Mt){N(Ft,Mt,!0)}})},Pt=W=>{var Mt=Le(),di=de(Mt);{var ct=Zt=>{og(Zt,{get thumbUrl(){return b()},get outsideDuration(){return oe()},get canRewindLive(){return U()},get videoContainer(){return n(Ft)},set videoContainer(ut){N(Ft,ut,!0)}})},Ct=Zt=>{eg(Zt,{get store(){return s()},get uiConfig(){return ze},get title(){return f()},get thumbUrl(){return b()},get interactiveContainer(){return y()},get live(){return I()},get autoplay(){return E()},get canRewindLive(){return U()},get showAds(){return z()},get adsSlotId(){return G()},get adsParams(){return le()},get adsAutoplayParam(){return X()},get duration(){return oe()},get logoClickable(){return j()},get logoHidden(){return ve()},get logoTargetUrl(){return Nt},get nextButtonActive(){return _e()},get prevButtonActive(){return we()},get endScreenVideoTitle(){return Z()},get endScreenVideoThumb(){return Ne()},get isOneVideoPlaylist(){return ue()},get supportLink(){return P()},get shadowRootContainer(){return Ke()},get outerContainerRef(){return Ce()},get fullScreenTarget(){return Y()},get showMiniTimer(){return Oe()},get playerStarted(){return n(be)},get seekToInteractive(){return fe()},get playPrevChapter(){return ee()},firstStart:J,get showEndScreen(){return qe()},get showAutoplayNext(){return Fe()},get showNextPrevButtons(){return re()},get adsExternalApi(){return e.adsExternalApi},get videoContainer(){return n(Ft)},set videoContainer(ut){N(Ft,ut,!0)},get keyboardControls(){return je()},set keyboardControls(ut){je(ut)}})};V(di,Zt=>{ei?Zt(ct):Zt(Ct,!1)})}_(W,Mt)};V(tn,W=>{ce()?W(_n):W(Pt,!1)})}w(Ti),B(W=>{ro=se(Ti,1,"vk-vp-root s-1",null,ro,W),Ge(Ti,ri)},[()=>({"root--miui-browser":dd.clientChecker.device.isMobile&&dd.clientChecker.browser.isMiuiBrowser,"visible-outside":ei,"preview-track-horizontally-alinged":l()})]),_(t,Ti);var Ht=H({initVideo:Pe,play:at,pause:vt,setMuted:$e,toggleSubtitle:et,changeSubtitle:We,changeAudioStream:rt,hideControls:ii,showControls:li,setVolume:gi,seekTime:yi,seekEpisodeStartTime:no,returnFocusToEpisodes:$o,setPlaybackRate:fi,setAutoQualityLimits:ft,setAutoQuality:Ai,toggleTrafficSaving:Jt,toggleHighQuality:Tt,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 p()},set videoConfig(W){p(W)},get uiConfig(){return m()},set uiConfig(W){m(W)},get title(){return f()},set title(W){f(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 S()},set subtitles(W){S(W)},get subtitlesForcedLanguage(){return C()},set subtitlesForcedLanguage(W){C(W)},get live(){return I()},set live(W){I(W)},get preload(){return R()},set preload(W){R(W)},get autoplay(){return E()},set autoplay(W){E(W)},get volume(){return A()},set volume(W){A(W)},get muted(){return O()},set muted(W){O(W)},get fromTime(){return D()},set fromTime(W){D(W)},get canRewindLive(){return U()},set canRewindLive(W){U(W)},get showAds(){return z()},set showAds(W){z(W)},get adsSlotId(){return G()},set adsSlotId(W){G(W)},get adsParams(){return le()},set adsParams(W){le(W)},get adsAutoplayParam(){return X()},set adsAutoplayParam(W){X(W)},get duration(){return oe()},set duration(W){oe(W)},get logoClickable(){return j()},set logoClickable(W){j(W)},get logoHidden(){return ve()},set logoHidden(W){ve(W)},get isMobile(){return ce()},set isMobile(W){ce(W)},get showNextPrevButtons(){return re()},set showNextPrevButtons(W){re(W)},get nextButtonActive(){return _e()},set nextButtonActive(W){_e(W)},get prevButtonActive(){return we()},set prevButtonActive(W){we(W)},get endScreenVideoTitle(){return Z()},set endScreenVideoTitle(W){Z(W)},get endScreenVideoThumb(){return Ne()},set endScreenVideoThumb(W){Ne(W)},get isOneVideoPlaylist(){return ue()},set isOneVideoPlaylist(W){ue(W)},get supportLink(){return P()},set supportLink(W){P(W)},get shadowRootContainer(){return Ke()},set shadowRootContainer(W){Ke(W)},get outerContainerRef(){return Ce()},set outerContainerRef(W){Ce(W)},get fullScreenTarget(){return Y()},set fullScreenTarget(W){Y(W)},get failoverHosts(){return ie()},set failoverHosts(W){ie(W)},get showMiniTimer(){return Oe()},set showMiniTimer(W){Oe(W)},get saveRate(){return Be()},set saveRate(W){Be(W)},get showAutoplayNext(){return Fe()},set showAutoplayNext(W){Fe(W)},get seekToInteractive(){return fe()},set seekToInteractive(W){fe(W)},get playPrevChapter(){return ee()},set playPrevChapter(W){ee(W)},get volumeMultiplier(){return Se()},set volumeMultiplier(W){Se(W)},get showEndScreen(){return qe()},set showEndScreen(W){qe(W)},get keyboardControls(){return je()},set keyboardControls(W){je(W)}});return o(),Ht}var tC=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 rg(t,e){let i=g(e,"isWhite",3,!1),o=v(()=>i()?"#fff":"#909499");Je(t,{width:"57",height:"60",get fill(){return n(o)},testId:"stub-icon",children:(r,a)=>{var l=tC();vi(9),_(r,l)},$$slots:{default:!0}})}var iC=L('<div class="title s-0"> </div>'),oC=L('<div class="playerStub s-0"><!> <!></div>'),nC={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 sg(t,e){q(t,nC);var i=oC(),o=T(i);{var r=d=>{var s=iC(),u=T(s,!0);w(s),B(()=>pe(u,e.title)),_(d,s)};V(o,d=>{e.title&&d(r)})}var a=k(o,2);{var l=d=>{let s=v(()=>!!e.thumbUrl);rg(d,{get isWhite(){return n(s)}})};V(a,d=>{(!e.title||!e.thumbUrl)&&d(l)})}w(i),B(()=>Ge(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),_(t,i)}var rC=L('<div class="playerError s-2"><!></div>'),sC={hash:"s-2",code:".playerError.s-2{align-items:center;background-color:#222;background-position:50%;background-size:cover;display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;height:100%;justify-content:center;position:relative;width:100%}"};function ag(t){q(t,sC);var e=rC(),i=T(e);il(i,{}),w(e),_(t,e)}var Fp=require("@vkontakte/videoplayer-shared/es2015"),Di=require("@vkontakte/videoplayer-shared/es2015"),eu=require("@vkontakte/videoplayer-core/es2015"),vd=require("@vkontakte/videoplayer-statistics/es2015");var Ap=require("@vkontakte/videoplayer-shared/es2015"),Pp=class{constructor(){this.subscription=new Ap.Subscription,this.logger=new Ap.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=he(e.state.currentPlaybackRate$),r=he(e.state.duration$);if(!(!isFinite(i)||!isFinite(r)))try{(l=(a=navigator.mediaSession).setPositionState)==null||l.call(a,{position:i,playbackRate:o,duration:r})}catch(d){this.log({message:`MediaSession setPositionState can't call with position: ${i} and duration: ${r}`})}})))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};var ud=require("@vkontakte/videoplayer-shared/es2015");var aC=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),lC=L('<div><div><!></div> <span class="title s-6"> </span></div>'),dC={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 lg(t,e){F(e,!0),q(t,dC);let[i,o]=Re(),r=()=>x(u,"$interfaceLanguage$",i),a=()=>x(p,"$isMobile$",i),l=me(),d=Rt(),s=!!l.webApi.pictureInPictureApi,u=l.interfaceLanguage$,p=l.ui.isMobile,m=l.ui.t,f=v(()=>r()&&m("pip_dummy_title")),b=Ep(d.view);var y=lC();let $;var S=T(y);let C;var I=T(S);Je(I,{width:"57",height:"56",testId:"pip-dummy-icon",children:(A,O)=>{var D=aC();vi(),_(A,D)},$$slots:{default:!0}}),w(S);var R=k(S,2),E=T(R,!0);w(R),w(y),B((A,O)=>{$=se(y,1,"player-pip-dummy s-6",null,$,A),Ge(y,b),C=se(S,1,"dummy-image s-6",null,C,O),pe(E,n(f))},[()=>({"is-pip-api":s}),()=>({desktop:!a()})]),_(t,y),H(),o()}var cC=Object.defineProperty,uC=(t,e,i)=>e in t?cC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,cd=(t,e,i)=>uC(t,typeof e!="symbol"?e+"":e,i),dg=(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())}),pC=460,fC=280,Kc=class{constructor({enabled:e=!0}={enabled:!0}){cd(this,"playerDomElement"),cd(this,"playerParentShadowRoot"),cd(this,"playerDummyElement"),cd(this,"svelteContext"),cd(this,"pipWindow"),cd(this,"info",{isActive$:new ud.ValueSubject(!1),isEnabled$:new ud.ValueSubject(!1),type:1}),this.info.isEnabled$=new ud.ValueSubject(e)}isSupported(){let{isEmbed:e}=(0,ud.detectEmbed)();return"documentPictureInPicture"in window&&!e}isActive(){return this.info.isActive$.getValue()}setPlayerDomElement(e,i){this.playerDomElement=e,this.playerParentShadowRoot=i}setContext(e){this.svelteContext=e}request(){return dg(this,null,function*(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=yield documentPictureInPicture.requestWindow({width:pC,height:fC,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=jr(lg,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||(ka(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1),this.pipWindow=void 0)})})}exit(){return dg(this,null,function*(){return new Promise(e=>{var i;this.pipWindow&&((i=documentPictureInPicture.window)==null||i.close()),e()})})}dispose(){return dg(this,null,function*(){yield this.exit()})}setEnabled(e){this.info.isEnabled$.next(e)}createStretchedContainer(){let e=document.createElement("div");return e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",e.style.height="100%",e}};function m$(t){return t instanceof Kc}var kp=class{static getLatestSupportedVersion(e){let i=new Fa(e),o=new Kc(e);if(o.isSupported())return o;if(i.isSupported())return i}};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 v$="Inner error. Unexpectedly root annotation container null reference exception",g$="Annotation with such name already exists",h$="Annotation with such name does not exist";var pd=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var fd=require("@vkontakte/videoplayer-shared/es2015"),mC="1",vC=100,Lp=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new fd.Subscription}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=(0,fd.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"},vC);this.subscriptions.add((0,fd.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 pd(v$);if(this.annotations.has(e))throw new pd(g$);i.style.zIndex=(o=i.style.zIndex)!=null?o:mC,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 pd(h$);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 dl=require("@vkontakte/videoplayer-shared/es2015"),hn=class{init({store:e,microStores:i,interactiveController:o,config:r}){return(0,dl.assertNonNullable)(e),(0,dl.assertNonNullable)(i),(0,dl.assertNonNullable)(r),r.interactiveData&&(0,dl.assertNonNullable)(o),this.subscription=new dl.Subscription,this.subscription}};var Qc=class extends hn{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$=qt(Ae({},ae(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 hn{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$=qt(Ae({},ae(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:p}=a.ui,m=he(p),f=()=>m&&he(u);return o.add(u.subscribe(b=>{if(!m)return;let y=he(l);he(s)?this.state$.set(b):y!==null&&this.state$.set(!y||b)})),o.add(s.subscribe(b=>{this.state$.set(!b||f())})),o.add(l.subscribe(b=>{if(b===null)return;let y=he(d);if(f()){this.state$.set(!0);return}y&&this.state$.set(!b)})),o}};var Yc=class extends hn{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=ae("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 _$=require("@vkontakte/videoplayer-shared/es2015");var cg=ae(!1),Mp=null,jc=class extends hn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$=qt(Ae({},cg),{set:(i,o=!1)=>{i!==he(cg)&&(this.clearTimeout(),cg.set(i),!i&&Mp&&(Mp=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()})}init(i){let o=super.init(i),{store:r,config:a}=i,{isInteractiveTime$:l,isPlaying$:d}=r.state,s=r.ui.controlsVisible,{interactiveTimeIndicator:u}=r.ui.controls;o.add(s.subscribe(m=>{he(l)&&m&&this.state$.set(!1)}));let p=(a==null?void 0:a.interactiveData)||{tooltipHelpHintActive:!1};return o.add((0,_$.combine)({isPlaying$:d,isInteractiveTime$:l,interactiveTimeIndicator:u}).subscribe(({isPlaying$:m,isInteractiveTime$:f,interactiveTimeIndicator:b})=>{var y,$;if(!(!m||!(b!=null&&b.isDisplayed))){if(!f)return this.state$.set(!1);p.tooltipHelpHintActive&&Mp===null&&(Mp=!0,p.tooltipHelpHintActive=!1,this.state$.set(!0),($=(y=r.callbacks)==null?void 0:y.onInteractiveTimeIndicatorHintDeactivated)==null||$.call(y))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};var Vp=require("@vkontakte/videoplayer-shared/es2015");var Xc=class extends hn{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$=qt(Ae({},ae(null)),{toggle:Vp.noop});this.checkIfShouldHide=i=>Vs(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=()=>gt(this,null,function*(){if(this.checkIfShouldHide(he(l)))return;let s=he(this.state$),{isEnded$:u,playbackState$:p}=r.state,{disabledControls$:m}=r.ui.controls,f=he(u),b=he(p);if(s)try{yield a==null?void 0:a.toggleGraphView(!1),this.state$.set(!1),m.remove(Hf),!f&&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),m.add(Hf),!f&&this.graphMadePause&&r.actions.internal.pause()}catch(y){d({message:"Cant show graph"})}}}),o.add((0,Vp.combine)({graphIsOpened:this.state$,currentGridType:l}).subscribe(p=>gt(this,[p],function*({graphIsOpened:s,currentGridType:u}){if(this.checkIfShouldHide(u)&&s)try{yield a==null?void 0:a.toggleGraphView(!1),this.state$.set(!1)}catch(f){d({message:"Cant hide graph"})}}))),o}};var ug=require("@vkontakte/videoplayer-shared/es2015"),Zc=class extends hn{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:ae(!1),isEnabled$:ae(!1),type$:ae(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 ug.ValueSubject(!1),isEnabled$:new ug.ValueSubject(!1)}};return o.add(a.subscribe(s=>{this.state$.isActive$.set(s)})),o.add(l.subscribe(s=>{this.state$.isEnabled$.set(s)})),this.state$.type$.set(d),o}};var Np=require("@vkontakte/videoplayer-shared/es2015");var Rp=require("@vkontakte/videoplayer-shared/es2015");var b$=({maxShowCount:t,timeout:e})=>{let i=[t!==0?gC({maxCount:t}):void 0,e!==0?hC({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(r=>r.notificationShowed(o)),canShowNotification:o=>i.every(r=>r.canShowNotification(o))}},gC=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,r;e[i]=((o=e[i])!=null?o:0)+1,Rp.safeStorage.set("videoplayer_notifications_manager_count",JSON.stringify((r=e[i])!=null?r:0))},canShowNotification:i=>{var o;return((o=e[i])!=null?o:0)<t}}},hC=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(Rp.safeStorage.get(e)||"{}")}catch(a){return{}}},o=a=>Rp.safeStorage.set(e,JSON.stringify(a)),r=a=>{let l=i();delete l[a],o(l)};return{notificationShowed:a=>{o(qt(Ae({},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 hn{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:ae({}),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=b$({maxShowCount:a,timeout:l});let u=r.getPlayer();return o.add(u.events.severeStallOccured$.pipe((0,Np.filterChanged)(),(0,Np.filter)(p=>p)).subscribe(()=>{d&&!u.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(s&&r.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var $$=()=>[Qc,Gc,Yc,jc,Xc,Zc,Jc].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:qt(Ae({},e),{[o.stateName]:o.state$})}},{subscribers:[],stores:{}});var md=require("@vkontakte/videoplayer-shared/es2015");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.init()}destroy(){this.shadowRoot.removeEventListener("focusin",this.handleFocusChange)}};var _C=L('<div class="root s-3"><!></div>'),bC={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 pg(t,e){F(e,!0),q(t,bC);let i=null,o=K(null);De(()=>(n(o)&&(i=window.setTimeout(()=>{N(o,null)},e.animationDuration)),()=>{i&&clearTimeout(i)}));function r(s){e.playbackStatusShow&&N(o,s?"prev":"next",!0)}var a=Le(),l=de(a);{var d=s=>{var u=Le(),p=de(u);Es(p,()=>n(o),m=>{var f=_C(),b=T(f);let y=v(()=>n(o)==="prev");Wc(b,{get duration(){return e.animationDuration},get Icon(){return ca},get reversed(){return n(y)}}),w(f),_(m,f)}),_(s,u)};V(l,s=>{e.playbackStatusShow&&n(o)&&s(d)})}return _(t,a),H({startVideoChangedAnimation:r})}var $C=Object.defineProperty,yC=Object.defineProperties,xC=Object.getOwnPropertyDescriptors,y$=Object.getOwnPropertySymbols,wC=Object.prototype.hasOwnProperty,SC=Object.prototype.propertyIsEnumerable,mg=(t,e,i)=>e in t?$C(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Fs=(t,e)=>{for(var i in e||(e={}))wC.call(e,i)&&mg(t,i,e[i]);if(y$)for(var i of y$(e))SC.call(e,i)&&mg(t,i,e[i]);return t},TC=(t,e)=>yC(t,xC(e)),Xt=(t,e,i)=>mg(t,typeof e!="symbol"?e+"":e,i),Dp=(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())}),CC={preload:!0,autoplay:!1,repeat:!1,loop:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:Di.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:(0,eu.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},Jn=K(void 0),fg=pi({animationDuration:0,playbackStatusShow:!1}),Bp=class extends HTMLElement{constructor(){super(),Xt(this,"svelteStubComponent"),Xt(this,"svelteRootComponent"),Xt(this,"sveltePersistentLayerComponent"),Xt(this,"svelteErrorComponent"),Xt(this,"store"),Xt(this,"microStoresRoot"),Xt(this,"statistics"),Xt(this,"sentry"),Xt(this,"_shadowRoot"),Xt(this,"playerContainer"),Xt(this,"rootContainer"),Xt(this,"stateContainer"),Xt(this,"shadowRootContainer"),Xt(this,"playerId"),Xt(this,"uiConfig"),Xt(this,"coreConfig"),Xt(this,"statisticsConfig"),Xt(this,"interactiveController"),Xt(this,"interactiveContainer"),Xt(this,"graphMadePause"),Xt(this,"currentPlayingVideoIndex",0),Xt(this,"needToRepeatPlaylist",!1),Xt(this,"videoConfig"),Xt(this,"pictureInPictureApi"),Xt(this,"mediaSessionApi"),Xt(this,"unsubscribePlayerPhaseSubscription"),Xt(this,"logger"),Xt(this,"log"),Xt(this,"subscription"),Xt(this,"interactiveSubscription"),Xt(this,"annotationsApi"),Xt(this,"slotsApi"),Xt(this,"focusManager"),Xt(this,"prevIsid"),Xt(this,"isInited",!1),Xt(this,"postponedInitParams",null),Xt(this,"internalsExposure",null),Xt(this,"shadowDOMCallbacksDisabled",!1),Xt(this,"fatalError$",new Fp.ValueSubject(null)),Xt(this,"createOneStat",(e,i={})=>{var o,r,a,l;if(!this.videoConfig)return;let{albumId:d,statPlace:s,statUserSalt:u,statTrackCode:p,statVKAppId:m,refreshStatAuthToken:f,autoplay:b,isMobile:y,isTouch:$,refDomain:S,deviceId:C,interactiveData:I}=qc(this.videoConfig,i),R=(o=I==null?void 0:I.projectInfo)==null?void 0:o.pid,E=(a=(r=this.interactiveController)==null?void 0:r.state.isReplay$.getValue())!=null?a:!1;E&&(this.prevIsid=void 0);let{unitedVideoId:A,isClip:O=!1}=e;if(this.uiConfig.features.statistics&&A)try{return new vd.OneStat(Fs({movieId:A,albumId:d,place:s,trackCode:p,vkAppId:m,autoplay:(l=b&&!this.interactiveController)!=null?l:!1,mobile:$!=null?$:y,clip:O,refDomain:S,deviceId:C,isPreviewPlayerView:this.videoConfig.playerView==="preview"},R&&(!this.isInited||E)&&{projectId:Number(R)}),Fs({refreshAuthToken:f,userSalt:u,config:this.statisticsConfig},this.interactiveController&&{useIsid:!0,isid:this.prevIsid}))}catch(U){console.error(U),this.log({message:U.message})}}),md.devNull.create("ui"),this.logger=new Di.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new Di.Subscription,this.interactiveSubscription=new Di.Subscription,this.graphMadePause=!1,this.fatalError$.subscribe(e=>{this.unmountComponent(this.svelteErrorComponent),e&&(this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.svelteErrorComponent=jr(ag,{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=pi({title:o,thumbUrl:r}),l={target:this.playerContainer,props:a};this.svelteStubComponent=jr(sg,l),this.sveltePersistentLayerComponent=jr(pg,{target:this.playerContainer,props:fg}),this.postponedInitParams&&(this.initPlayer(...this.postponedInitParams),this.postponedInitParams=null)}updatePersistentLayerProps(){if(!this.uiConfig)return;let{playbackStatusNextVideoAnimationDuration:e,features:{playbackStatusShow:i,playbackStatusNextVideoShow:o}}=this.uiConfig;fg.animationDuration=e,fg.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(),md.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 vd.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,p,m,f,b;if(!this.videoConfig)return;let{albumId:y,statPlace:$,statAuthToken:S,preload:C,autoplay:I,volume:R,muted:E,fromTime:A,canRewindLive:O,supportLink:D,showAds:U,adsSlotId:z,adsParams:G={},adsAutoplayParam:le,interfaceLanguage:X,isCyrillicRelatedInterface:oe,logoClickable:j,logoHidden:ve,isMobile:ce,isTouch:re,isAudioDisabled:_e,isLiveCatchUpMode:we,fullScreenTarget:Z,failoverHosts:Ne,canDownload:ue,callbacks:P,interactiveData:Ke,showThumbTimer:Ce,additionalButtons:Y=[],additionalSettingsMenuItems:ie=[],additionalContextMenuItems:Oe=[],repeat:Be,loop:fe,saveRate:ee,volumeMultiplier:Se,showEndScreen:Fe,showAutoplayNext:qe,mediascopePixels:je}=qc(this.videoConfig,i),{sources:Te,title:Me,thumbUrl:ze,unitedVideoId:Nt,isClip:tt=!1,duration:Bt,adsParams:Qt={},videoEpisodes:It,previewThumbsData:ti,subtitles:Ft,subtitlesForcedLanguage:ye,live:be,adsExternalApi:J}=e;if(!Te&&!be){let fi=new Error("empty sources and live");this.fatalError$.next(fi),(r=P.onCrashed)==null||r.call(P,fi.message);return}let xe=Fs(Fs({},G),Qt),Pe=this.getNextVideoInfo(),Et={sources:Te,title:Me,thumbUrl:ze,subtitles:Ft,subtitlesForcedLanguage:ye,unitedVideoId:Nt,isClip:tt,live:be,albumId:y,statPlace:$,autoplay:I,muted:E,volume:R,fromTime:A,canRewindLive:O,showAds:U,adsSlotId:z,adsParams:xe,adsAutoplayParam:le,duration:Bt,logoClickable:j,logoHidden:ve,isTouch:re!=null?re:ce,repeat:Be,loop:fe,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Pe.nextVideoTitle,endScreenVideoThumb:Pe.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Ve={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi};this.log({message:`create player, props: ${JSON.stringify(Et)}`});let at=(a=this.interactiveController)==null?void 0:a.state.statistics$.getValue(),vt=(at==null?void 0:at.oneStat)||this.createOneStat(e,i),$e=this.createThinOneStat(e,i),et;je&&(et=new vd.MediascopePixel({pixels:je})),(vt||$e)&&(this.statistics=new vp(vt,$e,et,at==null?void 0:at.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Ba(this.uiConfig.sentry,{version:Na,env:Bu},{movieId:Nt,albumId:y,place:$,autoplay:(l=I&&!this.interactiveController)!=null?l:!1,mobile:re!=null?re:ce,clip:tt}),this.interactiveController&&((u=this.prevIsid)!=null||(this.prevIsid=(s=(d=this.statistics)==null?void 0:d.oneStat)==null?void 0:s.isid$.getValue())),this.sentry=Fs(Fs({},this.sentry),Ba.getInstance());let rt=!!Ke,ii=[],li="tooltip_interactive_go_back_disabled_first";if(rt&&this.interactiveController){let fi=this.interactiveController.state.isInitialChapter$.getValue(),ft=this.interactiveController.getHistoryState();fi&&ii.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||ii.push("SEEK_TO_INTERACTIVE_BUTTON"),ft.hasPrevChapter$.getValue()||(ii.push("PLAY_PREV_CHAPTER_BUTTON"),fi||(ft.isGoBackLimited$.getValue()?li="tooltip_interactive_go_back_disabled_limit":li="tooltip_interactive_go_back_disabled"))}let gi=()=>{var fi;this.isInited=!1,this.prevIsid=void 0;let ft=(o==null?void 0:o.info.isEnded$.getValue())&&((fi=this.interactiveController)==null?void 0:fi.state.isEndChapter$.getValue());P.onReplayInteractiveVideo&&!ft?P.onReplayInteractiveVideo():this.replayInteractiveVideo()},yi=Be&&this.videoConfig.videos.length===1;this.store=kb({player:o,interfaceLanguage:X,isCyrillicRelatedInterface:oe,videoId:Nt,isClip:tt,isLiveCatchUpMode:we,isAudioDisabled:_e,statAuthToken:S,callbacks:P,webApi:Ve,videoEpisodes:It,previewThumbsData:ti,canDownload:ue,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:ii,isInteractive:rt,saveRate:ee,interactiveRanges$:(p=this.interactiveController)==null?void 0:p.state.interactiveRanges$,isInteractiveTime$:(m=this.interactiveController)==null?void 0:m.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:gi,playPrevChapterDisabledTooltip:li,hasInteractiveBranches:!!((b=(f=this.interactiveController)==null?void 0:f.getChapterBranches())!=null&&b.length),additionalButtons:this.uiConfig.features.additionalButtons?Y:[],additionalSettingsMenuItems:ie!=null?ie:[],additionalContextMenuItems:Oe!=null?Oe:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),onVideoChanged:fi=>{var ft;return(ft=this.sveltePersistentLayerComponent)==null?void 0:ft.startVideoChangedAnimation(fi)},looped:this.uiConfig.features.useLoopSetting?fe:yi,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView,playerId:this.playerId});let{stores:no}=this.microStoresRoot=$$(),$o=()=>{var fi,ft,Ai,Jt,Tt,ri;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(bt=>{var Xe;return(Xe=P==null?void 0:P.onCurrentFormatChanged)==null?void 0:Xe.call(P,bt)})),this.subscription.add(no.interactiveControlsOpacity$.subscribe(bt=>{var Xe;bt!==null&&((Xe=this==null?void 0:this.interactiveController)==null||Xe.setDisabledControls(bt))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(bt=>{var Xe;return(Xe=P==null?void 0:P.onThroughputEstimationChanged)==null?void 0:Xe.call(P,bt)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(bt=>{var Xe;return(Xe=P==null?void 0:P.onTrafficSavingEnabledChanged)==null?void 0:Xe.call(P,bt)})),this.subscription.add(this.store.state.highQualityEnabled$.subscribe(bt=>{var Xe;return(Xe=P==null?void 0:P.onHighQualityEnabledChanged)==null?void 0:Xe.call(P,bt)})),this.subscription.add(this.store.state.isAutoQualityEnabled$.subscribe(bt=>{var Xe;return(Xe=P==null?void 0:P.onAutoQualityEnabledChanged)==null?void 0:Xe.call(P,!!bt)})),this.subscription.add(new Di.Observable(bt=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(Xe=>bt.next(Xe)))}).pipe((0,Di.skip)(1)).subscribe(bt=>{var Xe;return(Xe=P==null?void 0:P.onCurrentPlaybackRateChanged)==null?void 0:Xe.call(P,bt)})),this.subscription.add(this.store.state.volume$.subscribe(bt=>{var Xe;return(Xe=P==null?void 0:P.onVolumeChange)==null?void 0:Xe.call(P,bt)})),this.subscription.add(this.store.state.muted$.subscribe(bt=>{var Xe,Ti,ro,tn;if(bt)(Xe=P==null?void 0:P.onMute)==null||Xe.call(P);else{let _n=(ro=((Ti=this.store)==null?void 0:Ti.state.volume$)&&he(this.store.state.volume$))!=null?ro:0;(tn=P==null?void 0:P.onUnmute)==null||tn.call(P,_n)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(bt=>{var Xe;return(Xe=P==null?void 0:P.onVideoBitrateChanged)==null?void 0:Xe.call(P,bt)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(bt=>{var Xe;let Ti=(Xe=this.store)==null?void 0:Xe.ui.controls.disabledControls$;Ti&&(bt&&!Ti.includes(jd)&&Ti.add(jd),bt||Ti.remove(jd))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(bt=>Dp(this,null,function*(){var Xe;if(!eu.clientChecker.browser.isSamsungBrowser||!bt||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&(yield this.replayInteractiveChapter((Xe=this.videoConfig)==null?void 0:Xe.callbacks.onExternalFullscreenExit))}))),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(bt=>{var Xe;return(Xe=P==null?void 0:P.onVSIDChanged)==null?void 0:Xe.call(P,bt)})),this.initMediaSession(),N(Jn,{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:Te,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:Me,thumbUrl:ze,subtitles:Ft,subtitlesForcedLanguage:ye,live:be,preload:C,autoplay:I,muted:E,volume:R,fromTime:A,canRewindLive:O,supportLink:D,showAds:U,adsSlotId:z,adsParams:xe,adsAutoplayParam:le,duration:Bt,logoClickable:j,logoHidden:ve,isMobile:re!=null?re:ce,failoverHosts:Ne,fullScreenTarget:Z,saveRate:ee,shadowRootContainer:this.shadowRootContainer,showMiniTimer:Ce,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Pe.nextVideoTitle,endScreenVideoThumb:Pe.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:Se,showEndScreen:Fe,showAutoplayNext:qe,adsExternalApi:J},!0);let ei={target:this.playerContainer,props:n(Jn)};this.svelteRootComponent=jr(ng,ei),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(Ai=(ft=(fi=this.videoConfig)==null?void 0:fi.callbacks)==null?void 0:ft.onInited)==null||Ai.call(ft)),(Jt=this.internalsExposure)==null||Jt.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((ri=(Tt=this.videoConfig)==null?void 0:Tt.callbacks)!=null&&ri.onDevNullLog)?md.devNull.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):md.devNull.destroy("ui")};this.coreConfig.asyncResolveClientChecker?eu.clientChecker.isInited$.subscribe(fi=>{fi&&(console.log("UI SDK async start"),$o())}):$o()}addPlayerInfoSubscriptions(){var e,i;let o=this.store,r=(e=this.microStoresRoot)==null?void 0:e.stores;if(!o||!r)return;let a=(i=this.videoConfig)==null?void 0:i.callbacks;a&&this.subscription.add(o.playerPhase.subscribe(d=>{var s;return(s=a.onPlayerPhaseChanged)==null?void 0:s.call(a,d)})).add(o.state.playbackState$.subscribe(d=>{var s;return d&&((s=a.onPlaybackStateChanged)==null?void 0:s.call(a,d))})).add(o.state.playbackStateRealistic$.subscribe(d=>{d?this.stateContainer.setAttribute("data-playback-state",d):this.stateContainer.removeAttribute("data-playback-state")})).add(o.state.isLive$.subscribe(d=>{var s;return(s=a.onIsLiveChanged)==null?void 0:s.call(a,d)})).add(o.state.isActiveLive$.subscribe(d=>{var s;return(s=a.onIsActiveLiveChanged)==null?void 0:s.call(a,d)})).add(o.state.isAudioAvailable$.subscribe(d=>{var s;return(s=a.onIsAudioAvailableChanged)==null?void 0:s.call(a,d)})).add(o.state.currentQuality$.subscribe(d=>{var s;return(s=a.onCurrentQualityChanged)==null?void 0:s.call(a,d)})).add(o.state.availableQualities$.subscribe(d=>{var s;return(s=a.onAvailableQualitiesChanged)==null?void 0:s.call(a,d.map(({value:u})=>u).filter(u=>u!=="auto"))})).add(o.state.availableAudioStreams$.subscribe(d=>{d.length>1&&a.onAudioLanguagesAvailable&&a.onAudioLanguagesAvailable()})).add(r.pictureInPicture$.isActive$.subscribe(d=>{var s,u;return d?(s=a.onPiPEnter)==null?void 0:s.call(a):(u=a.onPiPExit)==null?void 0:u.call(a)}));let l=a==null?void 0:a.uiInfo;l&&this.subscription.add(o.ui.controlsVisible.subscribe(d=>{var s;return(s=l.onControlsVisibleChanged)==null?void 0:s.call(l,d)})).add(o.ui.isMobile.subscribe(d=>{var s;return(s=l.onIsMobileChanged)==null?void 0:s.call(l,d)})).add(o.ui.playerSize.subscribe(d=>{var s;return(s=l.onPlayerSizeChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.prevButton.subscribe(d=>{var s;return(s=l.onPrevButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.playButton.subscribe(d=>{var s;return(s=l.onPlayButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.replayButton.subscribe(d=>{var s;return(s=l.onReplayButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.nextButton.subscribe(d=>{var s;return(s=l.onNextButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.playPrevChapterButton.subscribe(d=>{var s;return(s=l.onPlayPrevChapterChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.seekToInteractiveButton.subscribe(d=>{var s;return(s=l.onSeekToInteractiveButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.interactiveGraphButton.subscribe(d=>{var s;return(s=l.onGraphButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.liveButton.subscribe(d=>{var s;return(s=l.onLiveButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.time.subscribe(d=>{var s;return(s=l.onTimeUpdateChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.episodes.subscribe(d=>{var s;return(s=l.onEpisodesChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.subtitles.subscribe(d=>{var s;return(s=l.onSubtitlesChanged)==null?void 0:s.call(l,d)})).add(o.ui.controlBlocks.topLeft.subscribe(d=>{var s;return(s=l.onTopLeftControlBlockChanged)==null?void 0:s.call(l,d)})).add(o.ui.controlBlocks.topRight.subscribe(d=>{var s;return(s=l.onTopRightControlBlockChanged)==null?void 0:s.call(l,d)})).add(o.ui.controlBlocks.bottomLeft.subscribe(d=>{var s;return(s=l.onBottomLeftControlBlockChanged)==null?void 0:s.call(l,d)})).add(o.ui.controlBlocks.bottomRight.subscribe(d=>{var s;return(s=l.onBottomRightControlBlockChanged)==null?void 0:s.call(l,d)})).add(o.ui.controlBlocks.middle.subscribe(d=>{var s;return(s=l.onMiddleControlBlockChanged)==null?void 0:s.call(l,d)})).add(o.ui.controlBlocks.bottom.subscribe(d=>{var s;return(s=l.onBottomControlBlockChanged)==null?void 0:s.call(l,d)})).add(o.ui.videoTitleInfo.subscribe(d=>{var s;return(s=l.onTitleChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.settings.subscribe(d=>{var s;return(s=l.onSettingsChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.fullscreen.subscribe(d=>{var s;return(s=l.onFullscreenChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.chromecast.subscribe(d=>{var s;return(s=l.onChromecastChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.pip.subscribe(d=>{var s;return(s=l.onPipChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.vkLogo.subscribe(d=>{var s;return(s=l.onVkLogoChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.interactiveTimeIndicator.subscribe(d=>{var s;return(s=l.onInteractiveTimeIndicatorChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.timeline.subscribe(d=>{var s;return(s=l.onTimelineChanged)==null?void 0:s.call(l,d)}))}playNextVideo(){this.videoConfig&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){this.videoConfig&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}createPlayerWithCurrentVideo(e,i=!0){var o;if(!this.videoConfig)return;let r=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!r){this.log({message:"no next video"});return}this.isInited&&(0,Di.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 Dp(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?he(s):this.videoConfig.interfaceLanguage,{projectInfo:p,initChapterId:m,historyApi:f,videoLoader:b}=this.videoConfig.interactiveData;this.interactiveController=new d({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:u,graph:this.uiConfig.features.interactiveGraph,projectInfo:p,initChapterId:m,historyApi:f,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(C=>{if(!this.isInited)return;let I=this.store;C?I.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):I.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(y.subscribe(C=>{this.store&&this.store.state.isInteractiveExpectation$.set(C)}));let S=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(C=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]=TC(Fs({},C.config),{title:(p==null?void 0:p.title)||C.config.title});let I=S?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(C.player,I),S&&(S=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:C,actionType:I})=>{var R,E,A,O,D,U;if(!this.store||!this.microStoresRoot)return;let z=y.getValue();if(C==="action-choice"&&I==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(Xd)),C==="action-choice-canceled"){let G=he(this.store.state.isPlaying$)||z;if(((A=(R=this.videoConfig)==null?void 0:R.isTouch)!=null?A:(E=this.videoConfig)!=null&&E.isMobile)&&G){this.store.ui.interactiveHideMobileControls.set(!0);return}(U=(O=this.videoConfig)==null?void 0:(D=O.callbacks).onDisabledInteractiveClick)==null||U.call(D)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:C,removeAllOpenURI:I})=>{this.store&&C==="container-fake-removed"&&I&&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 C=this.interactiveController.getHistoryState();this.subscription.add(C.history$.subscribe(I=>{var R,E,A;I.length&&((A=(E=(R=this.videoConfig)==null?void 0:R.callbacks)==null?void 0:E.onInteractiveHistoryChanged)==null||A.call(E,I))}))}(l=(a=this.videoConfig)==null?void 0:a.callbacks)!=null&&l.onInteractiveChapterChanged&&this.subscription.add(this.interactiveController.events.chapterChanged$.subscribe(C=>{var I,R,E;(E=(I=this.videoConfig)==null?void 0:(R=I.callbacks).onInteractiveChapterChanged)==null||E.call(R,C.chapter,C.manifestVideo)})),this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var C,I,R,E;(C=this.microStoresRoot)==null||C.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(E=(I=this.videoConfig)==null?void 0:(R=I.callbacks).onInteractiveTimeIndicatorClick)==null||E.call(R)})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(C=>{this.log({message:C.toString()})}))}catch(d){this.log({message:d.message})}})}initPlayer(e,i={}){var o,r,a,l,d,s,u,p,m,f,b,y,$,S,C,I,R,E,A,O,D,U,z,G,le,X,oe,j;if(!this.isConnected){this.postponedInitParams=[e,i];return}if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData){let ve=new Error("empty videos");this.fatalError$.next(ve),(r=(o=e.callbacks)==null?void 0:o.onCrashed)==null||r.call(o,ve.message);return}else this.fatalError$.next(null);if(this.videoConfig=qc(CC,(0,Di.cloneDeepWith)(e,ve=>ve instanceof HTMLElement?ve:void 0)),this.playerId=(0,Di.getPlayerId)(e.playerId),this.uiConfig=a_((a=i.ui)!=null?a:{}),this.updatePersistentLayerProps(),this.coreConfig=(l=i.core)!=null?l:{configName:[]},this.statisticsConfig=(d=i.statistics)!=null?d:{},this.uiConfig.features.forcePlayerDisplayBlock&&(this.rootContainer&&(this.rootContainer.style.minHeight="unset"),this.style.display="block",this.style.width="100%",this.style.height="100%"),this.videoConfig.playerView==="preview"&&(this.playerContainer.style.contain="none"),this.sentry={config:(s=this.uiConfig.sentry)!=null?s:{}},this.uiConfig.features.exposeInternalsToGlobal&&((u=this.internalsExposure)!=null||(this.internalsExposure=new Di.InternalsExposure("ui",this.playerId))),md.devNull.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+((p=this.videoConfig)==null?void 0:p.showAds)],numbers:[(0,Fp.now)()]}),(0,Di.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(f=(m=this.uiConfig.features.mediaSession)!=null?m:this.videoConfig.isMediaSessionEnabled)!=null?f:!0),(0,Di.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=(S=($=this.uiConfig.features.dpip)!=null?$:this.videoConfig.isPictureInPictureEnabled)!=null?S:!0),this.uiConfig.ads.paramsOverride=Fs({preview:(C=this.uiConfig.ads.preview)!=null?C:this.videoConfig.adsPreviewParam},this.uiConfig.ads.paramsOverride),this.videoConfig.isTouch=(R=(I=this.uiConfig.isMobile)!=null?I:this.videoConfig.isTouch)!=null?R:this.videoConfig.isMobile,(E=this.videoConfig).autoplay&&(E.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(A=this.uiConfig.ads.enable)!=null?A:this.videoConfig.showAds,this.videoConfig.adsSlotId=(O=this.uiConfig.ads.slot)!=null?O:this.videoConfig.adsSlotId,this.videoConfig.logoHidden=!((D=this.uiConfig.showLogo)!=null?D:!this.videoConfig.logoHidden),(U=this.videoConfig).canRewindLive&&(U.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(z=this.videoConfig.supportLink)!=null?z:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(G=this.uiConfig.features.endScreen)!=null?G:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(le=this.uiConfig.features.autoplayNext)!=null?le:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(X=this.uiConfig.features.nextPrevButtons)!=null?X:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((oe=this.videoConfig.videos)!=null&&oe[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let ve={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=kp.getLatestSupportedVersion(ve):this.pictureInPictureApi=new Fa(ve)}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 Lp(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),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]),m$(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(j=this.slotsApi)==null||j.init(this.shadowRootContainer,this.store),this.focusManager=this._shadowRoot?new Op(this._shadowRoot):void 0}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateVideos(e,i){if(!this.videoConfig)return;this.log({message:`update ${i} videos, videos: ${JSON.stringify(e)}`}),i==="prev"?(this.videoConfig.videos.splice(0,this.currentPlayingVideoIndex),this.videoConfig.videos.unshift(...e),this.currentPlayingVideoIndex=e.length):i==="next"&&(this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...e));let o=this.getNextVideoInfo();n(Jn)&&(n(Jn).showNextPrevButtons=this.needToShowNextPrevButtons(),n(Jn).nextButtonActive=this.isNextButtonActive(),n(Jn).prevButtonActive=this.isPrevButtonActive(),n(Jn).endScreenVideoTitle=o.nextVideoTitle,n(Jn).endScreenVideoThumb=o.nextVideoThumb,n(Jn).isOneVideoPlaylist=this.isOneVideoPlaylist())}updatePrevVideos(e){this.updateVideos(e,"prev")}updateNextVideos(e){this.updateVideos(e,"next")}initMediaSession(){var e,i;this.mediaSessionApi&&((e=this.unsubscribePlayerPhaseSubscription)==null||e.call(this),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=(i=this.store)==null?void 0:i.playerPhase.subscribe(o=>{o==="video"?this.setupMediaSessionForVideo():o==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:e,thumbUrl:i}=Fs({},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(Jn)&&(n(Jn).needToRepeatPlaylist=this.needToRepeatPlaylist,n(Jn).showNextPrevButtons=this.needToShowNextPrevButtons(),n(Jn).nextButtonActive=this.isNextButtonActive(),n(Jn).prevButtonActive=this.isPrevButtonActive())}seekTime(e){var i;this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekTime(e))}seekEpisodeStartTime(e){var i;this.log({message:`seek episode start time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekEpisodeStartTime(e)}returnFocusToEpisodes(){var e;this.log({message:"return focus to episodes button"}),(e=this.svelteRootComponent)==null||e.returnFocusToEpisodes()}setPlaybackRate(e){var i;this.log({message:`set playback rate to: ${e}`}),(i=this.svelteRootComponent)==null||i.setPlaybackRate(e)}setAutoQualityLimits(e){var i,o,r;this.log({message:`set auto quality limitation. Max: ${(i=e.max)!=null?i:"none"}. Min: ${(o=e.min)!=null?o:"none"}`}),(r=this.svelteRootComponent)==null||r.setAutoQualityLimits(e)}setAutoQuality(){var e;(e=this.svelteRootComponent)==null||e.setAutoQuality()}toggleTrafficSaving(e){var i;(i=this.svelteRootComponent)==null||i.toggleTrafficSaving(e)}toggleHighQuality(e){var i;(i=this.svelteRootComponent)==null||i.toggleHighQuality(e)}changeAudioStream(e){var i;(i=this.svelteRootComponent)==null||i.changeAudioStream(e)}addLanguage(e){var i;(i=this.store)==null||i.actions.internal.addLanguage(e)}setLanguage(e){return Dp(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 Dp(this,null,function*(){var i,o;if(this.interactiveController&&((i=this.store)!=null&&i.state.positionExact$)){let r=he(this.store.state.positionExact$),l=he(this.store.state.interactiveEpisodes$).find(s=>!s.completed);this.interactiveController.events.playerChanged$.pipe((0,Di.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&&ka(e)}};var gd=require("@vkontakte/videoplayer-shared/es2015"),Hp=require("@vkontakte/videoplayer-core/es2015"),IC=()=>{window.customElements.define("vk-video-player",Bp)};
|
|
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`)),_(p,m)};V(d,p=>{e.type==="off"?p(s):p(u,!1)})}_(r,l)},$$slots:{default:!0}}),H()}function Pm(t,e){F(e,!0);let i=g(e,"isSubtitlesEnabled",3,!1),r=ve().ui.t,a=v(()=>i()?r("tooltip_subtitles_on"):r("tooltip_subtitles_off"));Wt(t,{testId:"btn-Subtitles",get ariaLabel(){return n(a)},get click(){return e.click},get ariaKeyShortCut(){return _s.KeyC},role:"button",children:(l,d)=>{let s=v(()=>i()?void 0:"outline");da(l,{get size(){return"24"},get type(){return n(s)}})},$$slots:{default:!0}}),H()}var ex=L('<span class="duration s-21" data-testid="video_duration"> </span>'),tx=L('<div><span class="current s-21" data-testid="current_time"> </span> <!></div>'),ix={hash:"s-21",code:'.time.s-21{align-items:center;color:var(--controls-time);display:flex;font-variant-numeric:tabular-nums;font-weight:500;padding:12px 6px}.time.mobile.s-21{padding:0 0 0 8px}.current.s-21{position:relative}.duration.s-21{opacity:.7}.duration.s-21:before{content:" / ";white-space:pre}'};function vc(t,e){F(e,!0),q(t,ix);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=Rt(),d=ae(!1),s=v(()=>on(e.duration)),u=v(()=>on(e.position));var p=tx();let m;var f=T(p),b=T(f,!0);w(f);var y=k(f,2);{var $=S=>{var C=ex(),I=T(C,!0);w(C),B(()=>pe(I,n(s))),_(S,C)};V(y,S=>{r()&&S($)})}w(p),As(p,()=>Yl(o()&&l.features.usePerformanceFix,d,l.disableInvisibleComponentsTimeout)),nt(p,S=>a(S),()=>a()),B(S=>{m=se(p,1,"time s-21",null,m,S),pe(b,n(u))},[()=>({mobile:i()})]),_(t,p),H()}var hc=require("@vkontakte/videoplayer-shared/es2015");var ox=Ee("<path></path>");function ca(t,e){F(e,!0);let i=g(e,"volume",3,1),o=g(e,"muted",3,!1),r=(m,f)=>f?"off":m>.5?"max":m>.2?"mid":m>0?"min":"off",a=v(()=>r(i(),o())),l=v(()=>bn(e.size)),d="M4 19.9a2 2 90 011.88-2l5.68-.32a4 4 90 002.5-1.08l8.58-8a2 2 90 013.36 1.44v28.12a2 2 90 01-3.36 1.46l-8.58-8.02a4 4 90 00-2.52-1.08l-5.66-.32a2 2 90 01-1.88-2z",s="M44.92 16.52a1.8 1.8 90 012.56 2.56L42.54 24l4.94 4.92a1.8 1.8 90 11-2.56 2.56L40 26.54l-4.92 4.94a1.8 1.8 90 01-2.56-2.56L37.46 24l-4.94-4.92a1.8 1.8 90 112.56-2.56L40 21.46z",u="M31.5 17.8a1.8 1.8 90 012.54-.14A8.6 8.6 90 0136.8 24c0 2.52-1.06 4.8-2.76 6.34a1.8 1.8 90 11-2.4-2.68c.92-.84 1.56-2.16 1.56-3.66s-.64-2.8-1.58-3.66a1.8 1.8 90 01-.12-2.54",p="M37.62 13.34a1.8 1.8 90 012.54.2 16 16 90 010 20.9 1.8 1.8 90 01-2.74-2.32 12.4 12.4 90 000-16.24 1.8 1.8 90 01.2-2.54";Je(t,{get width(){return"48"},get height(){return"48"},get style(){return n(l)},get testId(){var m;return`volume-${(m=n(a))!=null?m:""}-icon`},get shadow(){return e.shadow},children:(m,f)=>{var b=ox();B(()=>Ue(b,"d",`M4 19.9a2 2 90 011.88-2l5.68-.32a4 4 90 002.5-1.08l8.58-8a2 2 90 013.36 1.44v28.12a2 2 90 01-3.36 1.46l-8.58-8.02a4 4 90 00-2.52-1.08l-5.66-.32a2 2 90 01-1.88-2z${n(a)==="off"?s:`${u}${n(a)==="max"?p:""}`}`)),_(m,b)},$$slots:{default:!0}}),H()}var Vo=require("@vkontakte/videoplayer-shared/es2015");var ap=require("@vkontakte/videoplayer-shared/es2015");var vb=require("@vkontakte/videoplayer-shared/es2015");var nx=L('<div class="overlay"><!></div>');function Am(t,e){F(e,!0);let[i,o]=Re(),r=()=>x(l,"$overlayContainer$",i),l=ve().ui.overlayContainer$,d=K(void 0),s=f=>{!f||!n(d)||!f.contains(n(d))||f.removeChild(n(d))},u=f=>{!f||!n(d)||f.contains(n(d))||f.appendChild(n(d))};De(()=>{u(r())}),Dt(()=>(u(r()),()=>s(r())));var p=nx(),m=T(p);ai(m,()=>{var f;return(f=e.children)!=null?f:bt}),w(p),nt(p,f=>N(d,f),()=>n(d)),_(t,p),H(),o()}var rx=L('<div class="tooltip s-1k"><div class="content s-1k"> </div> <div class="tooltip-pointer s-1k"></div></div>'),sx=L("<div><!></div> <!>",1),ax={hash:"s-1k",code:'.tooltip-wrapper.s-1k{display:flex;flex-direction:column;min-width:0}.full-width.s-1k{width:100%}.tooltip.s-1k{bottom:100%;left:0;opacity:0;position:absolute;transition:opacity .2s,visibility .2s;visibility:hidden}.content.s-1k{background-color:rgba(41,41,41,.8);border-radius:3px;color:var(--white);display:inline-block;padding:6px 10px}.tooltip-pointer.s-1k{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 Ya(t,e){F(e,!0),q(t,ax);let[i,o]=Re(),r=()=>x(G,"$overlayContainer$",i),a=()=>x(z,"$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),p=g(e,"translateY",3,0),m=g(e,"isFullWidthWrapper",3,!1),f=g(e,"maxTooltipWidth",3,void 0),b=g(e,"placement",3,"top"),y=g(e,"onVisibilityChange",3,vb.noop),$=5,S=K(void 0),C=K(void 0),I,R=K(0),E=K(0),P=K(0),O=K(0),D=Rt(),U=ve(),z=U.ui.playerSize,G=U.ui.overlayContainer$;De(()=>{kt(()=>{y()(s())})});let le=U.getLogger().createComponentLog("Tooltip component"),Y=()=>{if(!r()||!n(C)||!n(S))return;N(E,$);let ee=r().getBoundingClientRect(),Se=n(S).getBoundingClientRect(),Fe=Se.width,qe=n(C).clientWidth,je=a().width,Te=(Fe-qe)/2,Me=Se.left+u()-ee.left,ze=Me+Te,Nt=Se.top+p()-ee.top,tt=qe/2-$,Bt=ze<8,Gt=ze+qe>je-8;Bt&&(ze=8,tt=Me+Se.width/2-2.5*$),Gt&&(ze=je-8-qe,tt=Se.left-ee.left+Se.width/2-ze-$),N(P,ze,!0),N(O,Nt),N(R,tt,!0)},re=()=>{!r()||!n(C)||!n(S)||N(E,-$)},X=()=>{if(!r()||!n(C)||!n(S))return;N(R,$);let ee=r().getBoundingClientRect(),Se=n(S).getBoundingClientRect(),Fe=Se.height,qe=n(C).clientHeight,je=(Fe-qe)/2+qe,Te=Se.left+u()-ee.left-n(C).clientWidth,Me=2,ze=Te-$;ze<8&&(ze=8);let tt=Se.top+p()-ee.top+je,Bt=Me-je/2,Gt=Me-$;N(P,ze,!0),N(O,tt),N(E,Bt),N(R,Gt)},we=()=>{!r()||!n(C)||!n(S)||N(R,-$)},ce=()=>{switch(b()){case"top":Y();break;case"bottom":re();break;case"left":X();break;default:we()}},ne=()=>{try{if(!r()||!n(S))return;ce(),s(!0)}catch(ee){le({message:String(ee)})}},he=()=>{s(!1)},xe=()=>{n(C)&&(I||(I=window.setTimeout(ne,D.controls.hideTimeoutTooltips)),s()&&ne())},Z=()=>{he(),window.clearTimeout(I),I=void 0},Ne=(ee,Se,Fe)=>{let qe="";switch(b()){case"top":qe=`transform: translate(${ee}px, ${Se}px);`;break;case"bottom":qe=`transform: translate(${ee}px, ${Se}px); top: auto; bottom: 100%;`;break;case"left":qe=`transform: translate(${ee}px, ${Se}px); left: 0; right: auto;`;break;default:qe=`transform: translate(${ee}px, ${Se}px);`}return qe+=` max-width: ${f()===void 0?"auto":`${f()}px`};`,qe+=` opacity: ${Fe?1:0}; visibility: ${Fe?"visible":"hidden"}`,qe},ue=(ee,Se)=>{let Fe="";switch(b()){case"top":Fe=`transform: translate(${ee}px, ${Se}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Fe=`transform: translate(${ee}px, ${Se}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Fe=`transform: translate(${ee}px, ${Se}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Fe=`transform: translate(${ee}px, ${Se}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Fe},A=v(()=>Ne(n(P),n(O),s())),Ke=v(()=>ue(n(R),n(E)));Dt(ce),_n(()=>window.clearTimeout(I));var Ce=sx(),j=de(Ce);let ie;j.__pointermove=xe,j.__pointerdown=Z,j.__pointerup=function(...ee){var Se;(Se=e.disableMouseupTooltipShow?void 0:xe)==null||Se.apply(this,ee)};var Oe=T(j);ai(Oe,()=>{var ee;return(ee=e.children)!=null?ee:bt}),w(j),nt(j,ee=>N(S,ee),()=>n(S));var Be=k(j,2);{var fe=ee=>{Am(ee,{children:(Se,Fe)=>{var qe=rx(),je=T(qe),Te=T(je,!0);w(je);var Me=k(je,2);w(qe),nt(qe,ze=>N(C,ze),()=>n(C)),B(()=>{Ge(qe,n(A)),pe(Te,d()),Ge(Me,n(Ke))}),_(Se,qe)},$$slots:{default:!0}})};V(Be,ee=>{d()&&!l()&&ee(fe)})}B(ee=>ie=se(j,1,"tooltip-wrapper s-1k",null,ie,ee),[()=>({"full-width":m()})]),$t("pointerenter",j,xe),$t("pointerleave",j,Z),_(t,Ce),H(),o()}st(["pointermove","pointerdown","pointerup"]);var gb=t=>{t.stopPropagation()},lx=L("<div><!></div>"),dx={hash:"s-1a",code:".btn-container.s-1a{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-1a{min-width:0;width:100%}"};function Mo(t,e){F(e,!0),q(t,dx);let[i,o]=Re(),r=()=>x(u,"$isGraphOpened$",i),a=()=>x(s,"$isMobile",i),l=ve(),d=Co(),s=l.ui.isMobile,u=d.graphIsOpened$,p=l.ui.t,m=g(e,"className",3,""),f=g(e,"disabled",3,!1),b=g(e,"hasTooltip",3,!0),y=g(e,"ref",15,void 0),$=g(e,"width",15,void 0),S=g(e,"isFullWidthTooltip",3,!0),C=g(e,"tooltipContent",3,""),I=g(e,"tooltipVisible",3,!1),R=g(e,"tooltipPlacement",3,"top"),E=g(e,"disabledTooltipContent",19,()=>p("tooltip_button_disabled")),P=g(e,"isAriaHidden",3,!1),O=g(e,"onTooltipVisibilityChange",3,ap.noop),D=g(e,"initialTranslateXPx",3,0),U=g(e,"initialTranslateYPx",19,()=>-18),z=g(e,"mouseEnter",3,ap.noop),G=g(e,"mouseLeave",3,ap.noop),le=v(()=>f()?r()?p("tooltip_disabled_when_graph_on"):E():C()),Y=K(!1);De(()=>{I()||N(Y,!1)});var re=lx();re.__pointerdown=[gb],re.__click=[gb];var X=T(re);{var we=ne=>{Ya(ne,{get content(){return n(le)},get translateX(){return D()},get translateY(){return U()},get isFullWidthWrapper(){return S()},get placement(){return R()},get onVisibilityChange(){return O()},get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},get active(){return n(Y)},set active(he){N(Y,he,!0)},children:(he,xe)=>{var Z=Le(),Ne=de(Z);ai(Ne,()=>{var ue;return(ue=e.children)!=null?ue:bt}),_(he,Z)},$$slots:{default:!0}})},ce=ne=>{var he=Le(),xe=de(he);ai(xe,()=>{var Z;return(Z=e.children)!=null?Z:bt}),_(ne,he)};V(X,ne=>{b()&&n(le)&&!a()?ne(we):ne(ce,!1)})}w(re),nt(re,ne=>y(ne),()=>y()),B(()=>{var ne;se(re,1,`btn-container ${(ne=m())!=null?ne:""}`,"s-1a"),Ue(re,"aria-hidden",P()||null)}),$t("mouseenter",re,function(...ne){var he;(he=z())==null||he.apply(this,ne)}),$t("mouseleave",re,function(...ne){var he;(he=G())==null||he.apply(this,ne)}),Mn(re,"clientWidth",$),_(t,re),H(),o()}st(["pointerdown","click"]);var cx=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 gc(t,e){let i=v(()=>(e.completed,"interactive-episode-completed-icon"));Je(t,{width:"20",height:"20",fill:"none",get testId(){return n(i)},children:(o,r)=>{var a=cx(),l=de(a),d=k(l);B(()=>{Ue(l,"fill",ia),Ue(l,"fill-opacity",e.completed?1:.24),Ue(d,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),_(o,a)},$$slots:{default:!0}})}var ux=L("<div><!></div>"),px={hash:"s-x",code:".interactive-episode-icon.s-x{cursor:default;height:20px;position:absolute;transform:translateX(-50%);width:20px}.interactive-episode-icon.disabled.s-x{opacity:.4;pointer-events:none}"};function km(t,e){F(e,!0),q(t,px);let o=ve().ui.t,r=K(0),a=v(()=>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=ux();let u;var p=T(s);let m=v(()=>!!e.videoEpisode.completed);gc(p,{get completed(){return n(m)}}),w(s),B(f=>{u=se(s,1,"interactive-episode-icon s-x",null,u,f),Ge(s,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),Mn(s,"clientWidth",f=>N(r,f)),_(l,s)},$$slots:{default:!0}}),H()}var fx=L('<div><div class="video-episode-inner s-w"><div class="video-episode-loaded s-w"></div> <div></div></div></div>'),mx=L('<div class="video-episodes-wrap s-w"></div>'),vx={hash:"s-w",code:".video-episodes-wrap.s-w{height:100%;position:absolute;width:100%}.video-episode.s-w{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-w:first-child{padding-left:0}.video-episode.s-w:last-child{padding-right:0}.video-episode.s-w:not(.disabled):where(:hover,:active){transform:scaleY(1.5)}.video-episode-filled.s-w,.video-episode-inner.s-w,.video-episode-loaded.s-w{border-radius:var(--slider-radius);height:var(--slider-height);position:absolute}.video-episode-inner.s-w{background:var(--slider-bg);overflow:hidden;position:absolute;width:calc(100% - var(--slider-video-episode-gap)*2)}.video-episode.s-w:first-child .video-episode-inner:where(.s-w),.video-episode.s-w:last-child .video-episode-inner:where(.s-w){width:calc(100% - var(--slider-video-episode-gap))}.video-episode-loaded.s-w{background:var(--slider-loaded-bg);transition:transform .2s}.video-episode-filled.s-w,.video-episode-loaded.s-w{border-radius:var(--slider-radius);height:100%;left:-100%;position:absolute;width:100%}.video-episode-filled.s-w{background-color:var(--slider-filled-bg)}"};function Lm(t,e){q(t,vx);let i=g(e,"videoEpisodes",19,()=>[]);var o=mx();Ti(o,21,i,r=>r.from,(r,a)=>{var l=fx();let d;var s=T(l),u=T(s),p=k(u,2);let m;w(s),w(l),B((f,b)=>{d=se(l,1,"video-episode s-w",null,d,f),Ge(l,`left: ${n(a).from}%; width: ${n(a).width}%`),Ge(u,`transform: translateX(${n(a).loadedWidth/n(a).width*100}%)`),m=se(p,1,"video-episode-filled s-w",null,m,b),Ge(p,`transform: translateX(${n(a).filledWidth/n(a).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),_(r,l)}),w(o),_(t,o)}function gx(t,e,i,o,r,a,l){if(t.preventDefault(),e()&&N(i,e().getBoundingClientRect(),!0),o()||n(r)||!e())return;N(r,!0);let d=a(t.clientX,t.clientY);l()(d,t),e().setPointerCapture(t.pointerId)}function hx(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 _x(t,e,i,o,r){if(t.preventDefault(),e()||!n(i))return;N(i,!1);let a=o(t.clientX,t.clientY);r()(a,t)}function bx(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}function $x(t,e,i,o,r,a){let l=e(t.clientX,t.clientY);i()&&o()(l),N(r,!1),a()(l)}var yx=L("<div></div>"),xx=L('<div class="bars s-h"><div class="loaded s-h"></div> <div></div></div>'),wx=L('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),Sx={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 ja(t,e){F(e,!0),q(t,Sx);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),p=g(e,"videoEpisodes",19,()=>[]),m=g(e,"withWheelHandler",3,!1),f=g(e,"isInteractive",3,!1),b=g(e,"disabled",3,!1),y=g(e,"hideHandel",3,!1),$=g(e,"onPointerDown",3,Vo.noop),S=g(e,"onHandleMove",3,Vo.noop),C=g(e,"onPointerUp",3,Vo.noop),I=g(e,"onPointerEnter",3,Vo.noop),R=g(e,"onPointerMove",3,Vo.noop),E=g(e,"onPointerLeave",3,Vo.noop),P=g(e,"onMouseEnter",3,Vo.noop),O=g(e,"onMouseLeave",3,Vo.noop),D=g(e,"onWheelUp",3,Vo.noop),U=g(e,"onWheelDown",3,Vo.noop),z=g(e,"onWheelLeft",3,Vo.noop),G=g(e,"onWheelRight",3,Vo.noop),le=g(e,"onDisabledClick",3,Vo.noop),Y=g(e,"loadedProgress",3,0),re=g(e,"filledProgress",3,0),X=g(e,"handleProgress",3,0),we=g(e,"ariaLabel",3,""),ce=g(e,"ariaValueMin",3,void 0),ne=g(e,"ariaValueMax",3,void 0),he=g(e,"ariaValueNow",3,void 0),xe=g(e,"ariaValueText",3,""),Z=g(e,"onContextMenu",3,Vo.noop),Ne=g(e,"handleAlwaysVisible",3,!1),ue=Rt(),A=K(void 0),Ke=K(!1),Ce=v(()=>{var ye;return(ye=ne())!=null?ye:0}),j=v(()=>{var ye;return(0,Vo.isNonNullable)(p())&&((ye=p()[p().length-1])==null?void 0:ye.time)<n(Ce)}),ie=v(()=>(0,Vo.isNonNullable)(p())&&p().length&&n(j)&&n(Ce)?je(Y()*100,re()*100):[]);function Oe(ye){if(ye.preventDefault(),i()&&N(A,i().getBoundingClientRect(),!0),b())return;let Pe=Fe(ye.clientX,ye.clientY),Pt=qe(ye.clientX);I()(Pe,Pt,n(A).width)}function Be(ye){ye.preventDefault(),!b()&&E()()}function fe(){P()()}function ee(){O()()}function Se(ye){b()||m()&&(ye.preventDefault(),ye.deltaY<0?D()():ye.deltaY>0?U()():ye.deltaX>0?G()():z()())}function Fe(ye,Pe){return l()?Math.max(0,Math.min(1,(n(A).height-(Pe-n(A).top))/n(A).height)):Math.min(Math.max(ye-n(A).x,0),n(A).width)/n(A).width}function qe(ye){return Math.min(Math.max(ye-n(A).x,0),n(A).width)}function je(ye,Pe){let Pt=ue.features.episodesClustering&&!f()?ue.episodeMinWidthPc:0,Ve=[],at=p()[0].time/n(Ce)*100,gt=0,be=0;for(let rt=1;rt<p().length;rt++)gt=p()[rt].time/n(Ce)*100,gt-at>Pt&&(Ve.push({from:at,width:Math.max(0,gt-at),loadedWidth:Math.max(0,Math.min(gt,ye)-at),filledWidth:Math.max(0,Math.min(gt,Pe)-at),interactive:p()[rt-1].interactive,completed:p()[rt-1].completed}),at=p()[rt].time/n(Ce)*100,be++);let et={from:at,width:Math.max(0,100-at),loadedWidth:Math.max(0,Math.min(ye,100)-at),filledWidth:Math.max(0,Math.min(Pe,100)-at),interactive:p()[be].interactive,completed:p()[be].completed};100-at<Pt?(be-=1,Ve[be].width+=100-at,Ve[be].loadedWidth+=Math.max(0,Math.min(ye,100)-at),Ve[be].filledWidth+=Math.max(0,Math.min(Pe,100)-at)):Ve[be]=et;let We=p()[0].time;if(We!==0){let rt=We/n(Ce)*100;Ve.unshift({from:0,width:rt,loadedWidth:Math.min(rt,ye),filledWidth:Math.min(rt,Pe)})}return Ve}function Te(ye){return Math.max(0,Math.min(100,ye*100))}var Me=wx(),ze=de(Me);{var Nt=ye=>{var Pe=yx();let Pt;Ti(Pe,21,()=>n(ie),Ve=>Ve.from,(Ve,at)=>{var gt=Le(),be=de(gt);{var et=We=>{km(We,{get videoEpisode(){return n(at)},get disabled(){return b()}})};V(be,We=>{n(at).interactive&&We(et)})}_(Ve,gt)}),w(Pe),B(Ve=>Pt=se(Pe,1,"interactive-icons s-h",null,Pt,Ve),[()=>({mobile:s(),hidden:s()&&!n(Ke)})]),_(ye,Pe)};V(ze,ye=>{f()&&ye(Nt)})}var tt=k(ze,2);let Bt;tt.__pointerdown=[gx,i,A,b,Ke,Fe,$],tt.__pointermove=[hx,b,Fe,qe,R,A,Ke,S],tt.__pointerup=[_x,b,Ke,Fe,C],tt.__click=[bx,b,le,Fe],tt.__contextmenu=[$x,Fe,b,le,Ke,Z];var Gt=T(tt);{var Ct=ye=>{Lm(ye,{get videoEpisodes(){return n(ie)},get disabled(){return b()},get isMobile(){return s()}})},ti=ye=>{var Pe=xx(),Pt=T(Pe),Ve=k(Pt,2);let at;w(Pe),B((gt,be,et)=>{Ge(Pt,gt),at=se(Ve,1,"filled s-h",null,at,be),Ge(Ve,et)},[()=>`transform: translateX(${Te(Y())}%);`,()=>({"active-live":d()}),()=>`transform: translateX(${Te(re())}%);`]),_(ye,Pe)};V(Gt,ye=>{n(ie).length?ye(Ct):ye(ti,!1)})}var Ft=k(Gt,2);let $e;var _e=T(Ft);let J;w(Ft),w(tt),nt(tt,ye=>i(ye),()=>i()),B((ye,Pe,Pt,Ve)=>{var at,gt;Bt=se(tt,1,`slider ${(at=o())!=null?at:""}`,"s-h",Bt,ye),Ue(tt,"aria-label",we()),Ue(tt,"aria-valuemin",ce()),Ue(tt,"aria-valuemax",ne()),Ue(tt,"aria-valuenow",he()),Ue(tt,"aria-valuetext",xe()),Ue(tt,"data-testid",(gt=r())!=null?gt:null),$e=se(Ft,1,"handleWrap s-h",null,$e,Pe),Ge(Ft,Pt),J=se(_e,1,"handle s-h",null,J,Ve)},[()=>({disabled:b(),"slider-dragging":n(Ke),hidden:a(),"handle-always-visible":Ne(),"slider-vertical":l(),"no-handle":y(),square:u()}),()=>({hidden:y()}),()=>`transform: translateX(${Te(X())}%);`,()=>({"active-live":d()})]),$t("pointerenter",tt,Oe),$t("pointerleave",tt,Be),$t("mouseenter",tt,fe),$t("mouseleave",tt,ee),$t("wheel",tt,Se),_(t,Me),H()}st(["pointerdown","pointermove","pointerup","click","contextmenu"]);var io=(t,e)=>Oa[t]>=Oa[e],hb=(t,e)=>Oa[t]<Oa[e],Vs=(t,e)=>Oa[t]<=Oa[e],_b=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var Cx=L("<div><!></div>"),Ix=L("<div><!> <!></div>"),Ex={hash:"s-28",code:".volumeBar-container.s-28{align-items:center;display:flex}.vertical.s-28 .btn,.vertical.s-28 .tooltip-wrapper,.volumeBar-container.vertical.s-28{width:40px}.volumeBar.s-28{align-items:center;display:flex;margin:0 8px;position:relative;width:70px;--slider-height:var(--slider-volume-height);--slider-radius:var(--slider-volume-radius);--slider-handle-size:var(--slider-volume-handle-size);--slider-bg:var(--volume-slider-bg);--slider-filled-bg:var(--volume-slider-filled-bg);--slider-handle-bg:var(--volume-slider-handle-bg)}.volumeBar-slider-vertical{width:50px!important}.volumeBar-vertical.s-28{padding:0 8px 0 0;width:0}"};function Mm(t,e){var qe,je;F(e,!0),q(t,Ex);let[i,o]=Re(),r=()=>x(R,"$isAudioAvailable$",i),a=()=>x(f,"$muted$",i),l=()=>x(m,"$volume$",i),d=()=>x(S,"$currentGridType$",i),s=()=>x(Oe,"$controlsVisible",i),u=ve(),p=Rt(),m=u.state.volume$,f=u.state.muted$,{setVolume:b,startVolumeChanging:y,stopVolumeChanging:$}=u.actions.internal,S=u.ui.currentGridType$,C=(qe=u.callbacks)==null?void 0:qe.onAudioDoesNotExistHint,I=(je=u.callbacks)==null?void 0:je.onAudioDisabledHint,R=u.state.isAudioAvailable$,E=u.state.isAudioDisabled,P=u.ui.t,O=K(!1),D,U=v(()=>e.isAds||r()),z=v(()=>!n(U)||a()||l()===0),G=v(()=>Vs(d(),"s")),le=v(()=>n(G)?"":n(z)?!r()||E?P("tooltip_sound_unavailable"):P("tooltip_volume"):P("tooltip_volume_muted")),Y=v(()=>n(z)?P("tooltip_volume"):P("tooltip_volume_muted")),re=v(()=>n(z)?0:l()),X=!1,we=v(()=>e.isAds?!1:E?!I:r()?!1:!C);function ce(Te){y(),b(Te)}function ne(){op(u,l(),p.controls.volumeStepWheel)}function he(){np(u,l(),p.controls.volumeStepWheel)}function xe(Te){b(Te)}function Z(Te){b(Te),$()}function Ne(){X=!0}function ue(){X=!1,Ce()}function A(){clearTimeout(D),N(O,!0)}function Ke(){Ce()}function Ce(){D=window.setTimeout(()=>{X||N(O,!1)},p.controls.volumeBarTimeout)}function j(Te){Te.preventDefault(),Te.deltaY<0?ne():Te.deltaY>0&&he()}let ie=K(!1),Oe=u.ui.controlsVisible;De(()=>{s()||N(ie,!1)});var Be=Ix();let fe;var ee=T(Be);Ya(ee,{get content(){return n(le)},translateY:-18,get active(){return n(ie)},set active(Te){N(ie,Te,!0)},children:(Te,Me)=>{let ze=v(()=>n(G)?"btn-volume-vertical":"btn-volume-horizontal");Wt(Te,{className:"btn-full-opacity",get disabled(){return n(we)},get testId(){return n(ze)},get ariaLabel(){return n(Y)},get click(){return e.click},get ariaKeyShortCut(){return _s.KeyM},role:"button",children:(Nt,tt)=>{ca(Nt,{get size(){return"24"},get volume(){return l()},get muted(){return n(z)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var Se=k(ee,2);{var Fe=Te=>{var Me=Cx();let ze;var Nt=T(Me);let tt=v(()=>n(G)?"volumeBar-slider-vertical":""),Bt=v(()=>n(G)&&!n(O)),Gt=v(()=>n(G)?Ne:hc.noop),Ct=v(()=>n(G)?ue:hc.noop),ti=v(()=>Math.round(n(re)*100)),Ft=v(()=>`${Math.round(n(re)*100)}%`),$e=v(()=>n(G)?"volume-slider-vertical":"volume-slider");ja(Nt,{get className(){return n(tt)},get isHidden(){return n(Bt)},get isVertical(){return n(G)},withWheelHandler:!0,onWheelUp:ne,onWheelDown:he,onPointerDown:ce,onHandleMove:xe,onPointerUp:Z,get onPointerEnter(){return n(Gt)},get onPointerLeave(){return n(Ct)},ariaLabel:"Ползунок громкости",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return n(ti)},get ariaValueText(){return n(Ft)},get filledProgress(){return n(re)},get handleProgress(){return n(re)},get testId(){return n($e)}}),w(Me),B(_e=>ze=se(Me,1,"volumeBar s-28",null,ze,_e),[()=>({"volumeBar-vertical":n(G)})]),_(Te,Me)};V(Se,Te=>{n(U)&&Te(Fe)})}w(Be),B(Te=>fe=se(Be,1,"volumeBar-container s-28",null,fe,Te),[()=>({vertical:n(G)})]),$t("mouseenter",Be,function(...Te){var Me;(Me=n(G)?A:hc.noop)==null||Me.apply(this,Te)}),$t("mouseleave",Be,function(...Te){var Me;(Me=n(G)?Ke:hc.noop)==null||Me.apply(this,Te)}),$t("wheel",Be,j),_(t,Be),H(),o()}var bb=require("@vkontakte/videoplayer-shared/es2015");var Px=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>'),Ax=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 Vm(t,e){let i=g(e,"isFullscreen",8,!1),o=En(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");Je(t,{get testId(){return n(o)},children:(r,a)=>{var l=Le(),d=de(l);{var s=p=>{var m=Px();_(p,m)},u=p=>{var m=Ax();_(p,m)};V(d,p=>{i()?p(s):p(u,!1)})}_(r,l)},$$slots:{default:!0}})}function _c(t,e){F(e,!0);let i=g(e,"isFullscreen",3,!1),o=g(e,"click",3,bb.noop),r=ve(),a=r.ui.isFullscreenOpenedByKeyboard,l=r.ui.t,d=v(()=>i()?l("tooltip_fullscreen_on"):l("tooltip_fullscreen_off"));Wt(t,{testId:"btn-fullscreen",get ariaLabel(){return n(d)},click:u=>{let p=sa(u);a.set(p),o()()},get ariaKeyShortCut(){return _s.KeyF},role:"button",children:(u,p)=>{Vm(u,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),H()}var kx=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 Rm(t,e){let i=Vn(e,["$$slots","$$events","$$legacy","children"]);var o=kx();to(o,()=>Ae({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"vk-logo-icon",role:"img"},i));var r=T(o);ai(r,()=>{var a;return(a=e.children)!=null?a:bt}),vi(),w(o),_(t,o)}var Lx=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 Nm(t,e){let i=Vn(e,["$$slots","$$events","$$legacy","children"]);var o=Lx();to(o,()=>Ae({xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"var(--btn-color, #fff)","fill-rule":"evenodd","aria-hidden":"true","clip-rule":"evenodd",viewBox:"0 0 95 24",role:"img"},i));var r=T(o);ai(r,()=>{var a;return(a=e.children)!=null?a:bt}),vi(6),w(o),_(t,o)}var Mx={hash:"s-2a",code:"svg [data-logo],svg[data-testid=vk-video-logo-icon--en] ._ru,svg[data-testid=vk-video-logo-icon--short] ._en,svg[data-testid=vk-video-logo-icon--short] ._ru,svg[data-testid=vk-video-logo-icon] ._en{opacity:0;visibility:hidden}svg[data-logo=app_store] [data-logo=app_store],svg[data-logo=play_market] [data-logo=play_market],svg[data-logo=vk_video] [data-logo=vk_video]{opacity:1;visibility:visible}"};function Om(t,e){F(e,!0),q(t,Mx);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=v(()=>!o()&&!i()?91:i()?l:95),s=v(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?a:"vk-video-logo-icon"),u=v(()=>`0 0 ${n(d)} 24`);Nm(t,{get width(){return n(d)},height:"24",get viewBox(){return n(u)},get"data-testid"(){return n(s)},get"data-logo"(){return r()}}),H()}function bc(t,e){F(e,!0);let[i,o]=Re(),r=()=>x(b,"$isMobile",i),a=()=>x(f,"$currentGridType$",i),l=()=>x($,"$isCyrillicRelatedInterface$",i),d=g(e,"ref",15,void 0),s=g(e,"logoClickable",3,!1),u=g(e,"targetUrl",3,""),p=Rt(),m=ve(),f=m.ui.currentGridType$,b=m.ui.isMobile,y=m.ui.t,$=m.isCyrillicRelatedInterface$,S=v(()=>p.logoType!=="vk"),C=v(()=>n(S)?y("tooltip_vk_video_logo"):y("tooltip_vk_logo")),I=v(()=>(r()&&Vs(a(),"m")||Vs(a(),"l"))&&n(S)),R=()=>{var O,D;e.click(),(O=m.callbacks)!=null&&O.onLogoClicked?(D=m.callbacks)==null||D.onLogoClicked():u()&&window.open(u(),"_blank")},E=v(()=>!s()),P=v(()=>n(S)?"btn-vk-video-logo":"btn-vk-logo");Wt(t,{className:"btn-full-opacity",get disabled(){return n(E)},click:R,get testId(){return n(P)},get ariaLabel(){return n(C)},get ref(){return d()},set ref(O){d(O)},children:(O,D)=>{var U=Le(),z=de(U);{var G=Y=>{Om(Y,{get logo(){return p.logoType},get short(){return n(I)},get isCyrillic(){return l()}})},le=Y=>{Rm(Y,{})};V(z,Y=>{n(S)?Y(G):Y(le,!1)})}_(O,U)},$$slots:{default:!0}}),H(),o()}var yb=require("@vkontakte/videoplayer-core/es2015");var Dm=require("@vkontakte/videoplayer-core/es2015");var Vx=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-1c"></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-1c"></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-1c"></path>',1),Rx=Ee('<path d="M1 18v3h3c0-1.66-1.34-3-3-3z"></path><path d="M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z"></path><path d="M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z"></path><path d="M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" class="s-1c"></path><path d="M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z"></path>',1),Nx={hash:"s-1c",code:".animated.s-1c{animation-duration:1s;animation-iteration-count:infinite}.wave1.animated.s-1c{animation-name:s-1c-wave1}.wave2.animated.s-1c{animation-name:s-1c-wave2}.wave3.animated.s-1c{animation-name:s-1c-wave3}@keyframes s-1c-wave1{0%{opacity:.3}33%{opacity:1}66%{opacity:1}to{opacity:1}}@keyframes s-1c-wave2{0%{opacity:.3}33%{opacity:.3}66%{opacity:1}to{opacity:1}}@keyframes s-1c-wave3{0%{opacity:.3}33%{opacity:.3}66%{opacity:.3}to{opacity:1}}"};function $c(t,e){F(e,!0),q(t,Nx);let i=g(e,"isMobile",3,!1),o=v(()=>e.iconState===Dm.ChromecastState.CONNECTED),r=v(()=>e.iconState===Dm.ChromecastState.CONNECTING),a=v(()=>n(o)?"#2688EB":ia),l=v(()=>e.size?bn(e.size):void 0);var d=Le(),s=de(d);{var u=m=>{Je(m,{get fill(){return n(a)},get style(){return n(l)},testId:"chromecast-mobile-icon",children:(f,b)=>{var y=Vx();vi(2),_(f,y)},$$slots:{default:!0}})},p=m=>{Je(m,{get style(){return n(l)},testId:"chromecast-icon",children:(f,b)=>{var y=Rx(),$=de(y);let S;var C=k($);let I;var R=k(C);let E;var P=k(R,2);let O;B((D,U,z,G)=>{S=se($,0,"wave1 s-1c",null,S,D),I=se(C,0,"wave2 s-1c",null,I,U),E=se(R,0,"wave3 s-1c",null,E,z),O=se(P,0,"s-1c",null,O,G)},[()=>({animated:n(r)}),()=>({animated:n(r)}),()=>({animated:n(r)}),()=>({hidden:!n(o)})]),_(f,y)},$$slots:{default:!0}})};V(s,m=>{i()?m(u):m(p,!1)})}_(t,d),H()}var xb=require("@vkontakte/videoplayer-shared/es2015");function yc(t,e){F(e,!0);let i=g(e,"ref",15,void 0),o=g(e,"isMobile",3,!1),r=g(e,"click",3,xb.noop),l=ve().ui.t,d=v(()=>e.state===yb.ChromecastState.CONNECTED?l("tooltip_chromecast_on"):l("tooltip_chromecast_off"));Wt(t,{get ariaLabel(){return n(d)},get click(){return r()},testId:"btn-chromecast",get ref(){return i()},set ref(s){i(s)},children:(s,u)=>{$c(s,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),H()}var wb=require("@vkontakte/videoplayer-shared/es2015");var Ox=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 Bm(t){Je(t,{testId:"episodes-icon",children:(e,i)=>{var o=Ox();vi(2),_(e,o)},$$slots:{default:!0}})}var lp=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var Dx=L('<span class="text mobile s-24"> </span> <div class="chevron-episodes s-24" data-testid="btn-episodes_icon"><!></div>',1),Bx=L('<span class="text s-24"> </span>'),Fx=L('<span class="text count s-24"> </span>'),Hx=L("<!> <!>",1),Ux={hash:"s-24",code:".text.s-24{overflow:hidden;padding:0 8px;text-overflow:ellipsis;white-space:nowrap}.text.count.s-24{overflow:visible}.text.mobile.s-24{padding:0 3px 0 4px}.chevron-episodes.s-24{margin-bottom:-6px;opacity:.7;transform:scale(.8)}"};function xc(t,e){var X,we,ce;F(e,!0),q(t,Ux);let[i,o]=Re(),r=()=>x(y,"$currentGridType$",i),a=()=>x($,"$openedByKeyboard$",i),l=()=>x(S,"$panelOpened$",i),d=()=>x(C,"$isMobile",i),s=g(e,"position",3,0),u=g(e,"duration",3,0),p=g(e,"timeCodes",19,()=>[]),m=ve(),f=(we=(X=m.callbacks)==null?void 0:X.onEpisodeChanged)!=null?we:wb.noop,b=!!((ce=m.callbacks)!=null&&ce.onEpisodeClicked),y=m.ui.currentGridType$,$=m.ui.episodes.openedByKeyboard$,S=m.ui.episodes.panelOpened$,C=m.ui.isMobile,I=m.ui.t,R=K(void 0),E=ne=>{var xe,Z,Ne;if(!!((xe=m.callbacks)!=null&&xe.onEpisodeClicked)){let ue=sa(ne);$.set(ue),S.set(!0),(Ne=(Z=m.callbacks)==null?void 0:Z.onEpisodeClicked)==null||Ne.call(Z,ue)}},P=K(null),O=v(()=>s()/u());De(()=>{var he;let ne=lp(n(O),u(),p());ne?((he=n(P))==null?void 0:he.time)!==ne.time&&(f(ne),N(P,ne,!0)):N(P,null)});let D=v(()=>{var ne;return((ne=n(P))==null?void 0:ne.text)||""}),U=v(()=>io(r(),"xl")?"FULL":io(r(),"m")&&hb(r(),"xl")?"COUNT":"SHORT"),z=v(()=>`${I("tooltip_episodes")}: ${n(D)}`),G=(ne,he,xe)=>_t(null,null,function*(){yield bo(),(ne==null?void 0:ne.getAttribute("aria-expanded"))==="false"&&he&&!xe&&kt(()=>{$.set(!1),ne.focus()})});De(()=>{G(n(R),a(),l())});var le=Le(),Y=de(le);{var re=ne=>{let he=v(()=>d()?"px-0":""),xe=v(()=>!b);Wt(ne,{get className(){var Z;return`w-max btn-full-opacity btn-jc-l ${(Z=n(he))!=null?Z:""}`},testId:"btn-episodes",click:E,get disabled(){return n(xe)},get ariaExpanded(){return l()},get ariaLabel(){return n(z)},get ref(){return n(R)},set ref(Z){N(R,Z,!0)},children:(Z,Ne)=>{var ue=Le(),A=de(ue);{var Ke=j=>{var ie=Dx(),Oe=de(ie),Be=T(Oe,!0);w(Oe);var fe=k(Oe,2),ee=T(fe);Vr(ee,{direction:"right"}),w(fe),B(()=>pe(Be,n(D))),_(j,ie)},Ce=j=>{var ie=Hx(),Oe=de(ie);Bm(Oe,{});var Be=k(Oe,2);{var fe=Se=>{var Fe=Bx(),qe=T(Fe,!0);w(Fe),B(()=>pe(qe,n(D))),_(Se,Fe)},ee=(Se,Fe)=>{{var qe=je=>{var Te=Fx(),Me=T(Te,!0);w(Te),B(()=>pe(Me,p().length)),_(je,Te)};V(Se,je=>{n(U)==="COUNT"&&je(qe)},Fe)}};V(Be,Se=>{n(U)==="FULL"?Se(fe):Se(ee,!1)})}_(j,ie)};V(A,j=>{d()?j(Ke):j(Ce,!1)})}_(Z,ue)},$$slots:{default:!0}})};V(Y,ne=>{n(P)&&ne(re)})}_(t,le),H(),o()}var av=require("@vkontakte/videoplayer-shared/es2015");var _i=require("@vkontakte/videoplayer-core/es2015"),lt=require("@vkontakte/videoplayer-shared/es2015"),$s=require("@vkontakte/videoplayer-statistics/es2015");var Ye=require("@vkontakte/videoplayer-shared/es2015"),oo=require("@vkontakte/videoplayer-shared/es2015");var zx="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",dp=class{constructor(e,i){this.adman=null;this.initialVolume=1;this.videoElement=null;this.currentAdSection=null;this.actions=null;this.adsState=null;this.playerState=null;this.events={init$:new oo.Subject,loadStarted$:new oo.Subject,loadEnded$:new oo.Subject,loadError$:new oo.Subject,ready$:new oo.Subject,slotRequested$:new oo.Subject,started$:new oo.Subject,timeRemained$:new oo.Subject,paused$:new oo.Subject,resumed$:new oo.Subject,ended$:new oo.Subject,empty$:new oo.Subject,skipped$:new oo.Subject,clicked$:new oo.Subject,closed$:new oo.Subject,error$:new oo.Subject};this.loadAdman=e=>(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[(0,Ye.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?(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[(0,Ye.now)()]}),i(),this.events.loadEnded$.next()):(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[(0,Ye.now)()]}),o())};(0,oo.addScript)(zx,e,this.loadTimeout).then(()=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[(0,Ye.now)()]}),window.AdmanHTML?(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[(0,Ye.now)()]}),i(),this.events.loadEnded$.next()):(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[(0,Ye.now)()]}),window.admanAsyncInit=a,r=window.setTimeout(a,this.initTimeout))}).catch(l=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(l)],numbers:[(0,Ye.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?(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[(0,Ye.now)()]}),i(),this.events.loadEnded$.next()):(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[(0,Ye.now)()]}),o())},l=()=>{d=!0,o()},d=!1,s=window.setTimeout(()=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[(0,Ye.now)()]}),l()},this.loadTimeout);e.addEventListener("abort",l),e.aborted&&(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[(0,Ye.now)()]}),l()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[(0,Ye.now)()]}),!d&&(window.AdmanHTML?(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[(0,Ye.now)()]}),i(),this.events.loadEnded$.next()):(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[(0,Ye.now)()]}),window.admanAsyncInit=a,r=window.setTimeout(a,this.initTimeout)))},l).finally(()=>{clearTimeout(r),clearTimeout(s),e.removeEventListener("abort",l)})});this.onAdsReady=()=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[(0,Ye.now)()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{var o;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[(0,Ye.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?ge(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;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.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;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.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(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[(0,Ye.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;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.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;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.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")=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[(0,Ye.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"),Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[(0,Ye.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 _t(this,null,function*(){var R,E;if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[(0,Ye.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:p,externalApi:m}=e;this.externalApi=m;let f,b=this.playerState&&ge(this.playerState.vsid);b&&(this.isVsidOriginal?f=b:f=parseInt(b,36));let{isEmbed:y,immediateOrigin:$}=(0,Ye.detectEmbed)(),S=(R=y?$:window.location.href)!=null?R:window.location.href,C=Ae(Qt(Ae(Qt(Ae({},s),{dl:encodeURIComponent(S),autoplay:r?1:0,player_width:i,player_height:o}),f?{request_id:f}:{}),{duration:p}),u);C=Object.fromEntries(Object.entries(C).filter(([P,O])=>(0,Ye.isNonNullable)(O)));let I={slot:d,wrapper:a,videoEl:l,videoQuality:o,params:C,browser:{mobile:!1}};try{let P=new window.AdmanHTML;if(P.onReady(this.onAdsReady),P.onStarted(this.onAdStarted),P.onPlayed(this.onAdPlayed),P.onPaused(this.onAdPaused),P.adMidrollPoint(this.onAdMidrollPoint),P.onClosed(this.onAdClosed),P.onSkipped(this.onAdSkipped),P.onClicked(this.onAdClicked),P.onTimeRemained(this.onAdTimeRemained),P.onCompleted(this.onAdCompleted),P.onError(this.onAdError),P.setDebug(!1),(E=this.externalApi)!=null&&E.videoGetAds){let O=yield this.safeExternalCall(this.externalApi.videoGetAds,C);O&&(delete I.slot,delete I.params,Object.assign(I,{json:O}))}P.init(I),this.adman=P,this.videoElement=l,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(I)}`})}catch(P){Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(P)],numbers:[(0,Ye.now)()]}),this.onAdError("could not init adman")}})}switchToVideo(e=!1){var o,r,a;if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[(0,Ye.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(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.adsState){this.log({message:"toggle play"});let i=ge(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(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[(0,Ye.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(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.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(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.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(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.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(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.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,p,m,f;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[(0,Ye.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),(p=this.adman)==null||p.onCompleted(void 0),(m=this.adman)==null||m.onError(void 0),(f=this.adman)==null||f.destroy(),this.videoElement&&(0,oo.clearVideoElement)(this.videoElement),this.isDestroyed=!0}safeExternalCall(e,...i){return _t(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 Sb=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 Fm=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 cp,{startTime:p,endTime:m}=u.parse(s);l.startTime=p,l.endTime=m}else if(s.trim()!==""){let u=new Hm,{texts:p}=u.parse(s);l.texts=[...l.texts,...p]}(l.startTime||l.endTime)&&l.texts.length>0&&o.push(l)}return o}},cp=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}},Hm=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((p,m)=>{let f=l.indexOf(m,d);return p===-1||p>f?f:p},-1);if(u===-1){s.push(l.substring(d));break}s.push(l.substring(d,u)),d=u+1}return s}}),a=new cp;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}},Tb=Fm;var pp=require("@vkontakte/videoplayer-shared/es2015"),Xa,Li,Um=0,zm=!1,Cb="",Ib=(t,e=0,i=0)=>t<e&&t<i,up=(t,e=0,i=0)=>t>=e&&t<=i,Wx=(t,e=0,i=0)=>t>e&&t>i,Eb=(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:p})=>up(t,u,p));let a=t>=Um,l=t<Um;if(Um=t,l&&(zm=!1),(0,pp.isNonNullable)(Xa)&&up(t,Xa.startTime,Xa.endTime)&&Cb===e.value)return Xa;if(!(0,pp.isNonNullable)(Li)&&(r!=null&&r.length)&&!zm){Li=r.find(({startTime:u,endTime:p})=>up(t,u,p)||a&&Ib(t,u,p)),Xa=void 0,!(0,pp.isNonNullable)(Li)&&r[r.length-1].endTime<t&&(zm=!0);return}else{if(up(t,Li==null?void 0:Li.startTime,Li==null?void 0:Li.endTime))return Xa=Li,Li=void 0,Cb=e.value,Xa;(a&&Wx(t,Li==null?void 0:Li.startTime,Li==null?void 0:Li.endTime)||l&&Ib(t,Li==null?void 0:Li.startTime,Li==null?void 0:Li.endTime))&&(Li=void 0)}};var fp={ru:"Русский",en:"English",uk:"Українська",be:"Беларуская (тарашкевiца)",es:"Español",fi:"Suomi",de:"Deutsch",it:"Italiano",bg:"Български",hr:"Hrvatski",hu:"Magyar",sr:"Српски",pt:"Português",el:"Ελληνικά",pl:"Polski",fr:"Français",ko:"한국어","zh-CN":"汉语",lt:"Lietuvių",ja:"日本語",cs:"Čeština",et:"Eesti",tt:"Татарча",ba:"Башҡортса",cv:"Чăвашла",sk:"Slovenčina",ro:"Română",no:"Norsk",lv:"Latviešu",az:"Azərbaycan dili",hy:"Հայերեն",sv:"Svenska",nl:"Nederlands",tk:"Türkmen",ka:"ქართული",da:"Dansk",uz:"O‘zbek",th:"ภาษาไทย",id:"Bahasa Indonesia",tg:"Тоҷикӣ",sl:"Slovenščina",bs:"Bosanski","pt-BR":"Português brasileiro",fa:"فارسی",vi:"Tiếng Việt",hi:"हिन्दी",si:"සිංහල",bn:"বাংলা",tl:"Tagalog",mn:"Монгол",my:"ဗမာစာ",tr:"Türkçe",ne:"नेपाली",ur:"اردو",ky:"Кыргыз тили",pa:"پنجابی",os:"Ирон",kn:"ಕನ್ನಡ",sw:"Kiswahili",kk:"Қазақша",ar:"العربية",he:"עברית",ab:"Аҧсшәа",eu:"Euskara",eo:"Esperanto"},Kx={abk:"as",ara:"ar",aze:"az",bak:"ba",bel:"be",ben:"bn",bos:"bs",bul:"bg",ces:"cs",chv:"cv",dan:"da",deu:"de",ell:"el",eng:"en",epo:"eo",est:"et",eus:"eu",fas:"fa",fin:"fi",fra:"fr",heb:"he",hin:"hi",hrv:"hr",hun:"hu",hye:"hy",ind:"id",ita:"it",jpn:"ja",kan:"kn",kat:"ka",kaz:"kk",kir:"ky",kor:"ko",lav:"lv",lit:"lt",mon:"mn",mya:"my",nep:"ne",nld:"nl",nor:"no",oss:"os",pan:"pa",pol:"pl",por:"pt",ron:"ro",rus:"ru",sin:"si",slk:"sk",slv:"sl",spa:"es",srp:"sr",swa:"sw",swe:"sv",tat:"tt",tgk:"tg",tgl:"tl",tha:"th",tuk:"tk",tur:"tr",ukr:"uk",urd:"ur",uzb:"uz",vie:"vi"},wc=t=>{var e,i;return(i=(e=fp[t])!=null?e:fp[Kx[t]])!=null?i:void 0};var Pb=require("@vkontakte/videoplayer-shared/es2015"),R7=require("@vkontakte/videoplayer-statistics/es2015"),mp=class{constructor(e,i,o,r=new Pb.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 Sc=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(Sc||{});var bs=t=>t!=null?t:0,Rs=(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(bs(i==null?void 0:i.top)-bs(o==null?void 0:o.top)),left:Math.round(bs(i==null?void 0:i.left)-bs(o==null?void 0:o.left)),bottom:Math.round(bs(i==null?void 0:i.bottom)-bs(o==null?void 0:o.top)),right:Math.round(bs(i==null?void 0:i.right)-bs(o==null?void 0:o.left))}},od=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:bs(e==null?void 0:e.width),height:bs(e==null?void 0:e.height)}};var On="off";var nd=t=>!!(Math.round(Math.abs(t)/90)%2);var Ab=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:r,statAuthToken:a,isAudioDisabled:l,canDownload:d,callbacks:s,webApi:u,videoEpisodes:p,previewThumbsData:m,uiConfig:f,coreConfig:b,player:y,disabledControls:$,isInteractive:S,interactiveRanges$:C,isInteractiveTime$:I,replayInteractive:R,stopPlayer:E,hasInteractiveBranches:P,playPrevChapterDisabledTooltip:O,additionalButtons:D,additionalSettingsMenuItems:U,additionalContextMenuItems:z,playPrevVideo:G,playNextVideo:le,onVideoChanged:Y,looped:re=!1,statistics:X,saveRate:we,internalsExposure:ce,playerView:ne,playerId:he})=>{var gg,hg,_g;let xe=Qt(Ae({},b),{configName:[...(gg=b.configName)!=null?gg:[],"ui"],isAudioDisabled:l,live:Qt(Ae({},(hg=b.live)!=null?hg:{}),{isLiveCatchUpMode:!!r})}),Z=f,Ne=lt.TracerFactory.createRootTracer(Z.features.tracer),ue=Ne.createComponentTracer("Store"),A=y||new _i.Player(xe,Ne,{playerId:he});ce==null||ce.expose({corePlayer:A});let Ke=new lt.Logger,Ce=new dp(Ke,{loadTimeout:Z.ads.loadTimeout,initTimeout:Z.ads.initTimeout,runtimeTimeout:Z.ads.runtimeTimeout,useAdmanFromNPM:Z.ads.useAdmanFromNPM,volumeMultiplier:Z.ads.volumeMultiplier,isVsidOriginal:Z.ads.isVsidOriginal}),j=Ha.getInstance(),ie=u==null?void 0:u.pictureInPictureApi,Oe=u==null?void 0:u.annotationsApi,Be=u==null?void 0:u.slotsApi,fe=Ke.createComponentLog("Store"),ee,Se,Fe={},qe=new Bu,je=new lt.Subscription,Te="",Me=ae(!1),ze=X&&X.oneStat?ui(X.oneStat.vsid$):Mr(void 0),Nt=ae(oa()),tt=ae(!1),Bt=()=>j_(document,_i.clientChecker.device.isIOS),Gt=(_g=ie==null?void 0:ie.info.isActive$)!=null?_g:new lt.ValueSubject(!1),Ct=ae(0),ti=ae(!1),Ft=ae(!1),$e=ae([]),_e=(0,lt.merge)(A.events.fatalError$,A.events.managedError$).subscribe(c=>$e.update(h=>[...h,c])),J=Mr(!1,c=>{let h=A.events.fatalError$.subscribe(()=>c(!0));return()=>h.unsubscribe()}),ye=c=>_t(null,null,function*(){var oe;let h=Object.values(lt.InterfaceLanguage).includes(c);if(Z.downloadVKLanguages&&(h&&Z.updateBuiltinLanguages||!im(c))){let Ie;try{Ie=yield(0,lt.loadVKLangPack)(c,a_,l_)}catch(ot){(oe=X==null?void 0:X.oneStat)==null||oe.logError({errorType:"VKLangPack",fatal:!1}),j==null||j.report(ot,{errorType:"VKLangPack",fatal:!1})}Ie&&(tm({language:c,pack:Ie,fallback:Z.defaultLanguage}),Pe.set(c),Pt.update(ot=>ot+1))}im(c)&&Pe.set(c)}),Pe=ae(t),Pt=ae(0),Ve=ae(e);ye(t);let at=(c,h)=>{let M=ge(Pe);return om(M,c,h,Z.defaultLanguage)},gt=ae("thumb");gt.subscribe(c=>{c==="ads"&&A.info.playbackState$.getValue()&&We()});let be=(()=>{let c=$i([J,gt],([h,M])=>h?"crashed":M);return Qt(Ae({},c),{is:h=>ge(c)===h})})(),et=ae(),We=()=>{et.set({muted:A.info.muted$.getValue()})},rt=(()=>{let c=ae(new Set($));return Qt(Ae({},c),{add:h=>{c.update(M=>new Set([...M].concat(h)))},remove:h=>{c.update(M=>{let oe=[...M];return new Set(Array.isArray(h)?oe.filter(Ie=>!h.includes(Ie)):oe.filter(Ie=>Ie!==h))})},includes:h=>{let M=ge(c);return Array.isArray(h)?h.every(oe=>M.has(oe)):M.has(h)}})})(),ii=ae({width:0,height:0}),li=null,gi=A.info.isBuffering$,yi=Mr(gi.getValue(),c=>{let h=gi.subscribe(M=>{M&&li===null?li=window.setTimeout(()=>{c(gi.getValue()),li=null},Z.loaderDelay):c(M)});return()=>{h.unsubscribe(),li&&clearTimeout(li)}});ue.log("create store"),fe({message:"create store"});let ro=c=>{let h=c.container,M=()=>{ri=new MutationObserver(Ie=>{let{removedNodes:ot}=Ie[0];ot.length&&h.append(A.experimental.element$.getValue())}),ri.observe(h,{childList:!0})},oe=A.experimental.element$.getValue();if(oe)h.append(oe),M();else{let Ie=A.experimental.element$.pipe((0,lt.filter)(ot=>!!ot),(0,lt.once)()).subscribe(ot=>{h.append(ot),M()});je.add(Ie)}},$o=c=>{fe({message:`init video, config: ${JSON.stringify(c)}`}),S?ro(c):(lt.devNull.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[(0,lt.now)()]}),A.initVideo(c)),ue.log("init video",{isInteractive:S}),c.subtitles&&A.setExternalTextTracks(c.subtitles),ee=c,Te=c.subtitlesForcedLanguage||""},pi=new lt.Subject,pt=c=>pi.next(c),Ai=new lt.Subject,Zt=new lt.Subject,Tt=new lt.Subject,ri=null,Jt={actionRewind$:Ai,actionSeek$:Zt,inPiP$:Gt,inFullscreen$:new lt.Observable(c=>Nt.subscribe(h=>c.next(h))),actionSetSubtitle$:Tt,nextMovie$:pi},yt=new lt.Subject,Xe={actionSeek$:Zt,actionSubtitlesSwitched$:yt,playerSize$:new lt.Observable(c=>ii.subscribe(h=>c.next(h))),inPiP$:Gt,inFullscreen$:new lt.Observable(c=>Nt.subscribe(h=>c.next(h))),isLoaderVisible$:new lt.Observable(c=>yi.subscribe(h=>c.next(h)))};if(X){let{oneStat:c,thinOneStat:h,mediascopePixel:M,statSubscription:oe}=X;c&&(S||oe.add(c.attachTo(A)),oe.add(c.attachToUi(Jt)),oe.add(c.attachToAds(Ce.events)),c.authorize(a).catch(Ie=>{fe({message:`onestat auth error ${String(Ie)}`})}),M&&M.attachTo(A)),h&&(oe.add(h.attachTo(A,Ce.events)),oe.add(h.attachToUi(Xe)),oe.add(h.attachToAds(Ce.events)),h.updateContext({isMobile:ge(Me)}),h.authorize(a))}if(j){let c=new lt.Subscription,h=(M,oe)=>c.add(M.subscribe(oe));if(h(A.events.managedError$,M=>{j.logIError(M)}),h(A.events.fatalError$,M=>{j.logIError(M,!0)}),X){let{oneStat:M}=X;M&&h(M.experimental.error$,oe=>{j.logIError(oe)})}j.sentrySubscription.add(c)}let Si=()=>{if(_i.clientChecker.device.isIOS&&Se)try{X_(Se)}catch(c){fe({message:`exitIosSafariFullscreen failed: ${c}`})}};je.add(A.experimental.element$.subscribe(c=>{c&&(Se=c,c.classList.add("player-media"),za(ie)&&ie.updateVideoElement(),S&&c.setAttribute("pip","false"),ne==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(A.events.ended$.subscribe(()=>{var c;Si(),(c=s==null?void 0:s.onEnded)==null||c.call(s)})).add(A.events.looped$.subscribe(()=>{var c;(c=s==null?void 0:s.onLooped)==null||c.call(s)})).add(A.events.started$.subscribe(()=>_t(null,null,function*(){var h,M;za(ie)&&(yield ie==null?void 0:ie.revealPictureInPicture());let c=A.info.muted$.getValue();(h=s==null?void 0:s.onStarted)==null||h.call(s),(M=Fe.onStarted)==null||M.call(Fe,c)}))).add(A.events.willSeek$.subscribe(({from:c,to:h})=>{var M;(M=s==null?void 0:s.onSeek)==null||M.call(s,c,h)})).add(A.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=s==null?void 0:s.onAutoplaySoundProhibited)==null||c.call(s)})).add(A.info.position$.subscribe(c=>{var M;let h=A.info.duration$.getValue();isFinite(h)&&h>0&&((M=s==null?void 0:s.onTimeupdate)==null||M.call(s,h,c),Ce.setPosition(c,h))})).add(A.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(A.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(A.events.loadedMetadata$.subscribe(()=>{ti.set(!0)})).add(A.info.is3DVideo$.subscribe(c=>{Ft.set(c)})).add(A.info.isEnded$.subscribe(c=>{S&&(c?(I!=null&&I.getValue()&&rt.add(Xd),rt.add("PLAY_BUTTON")):rt.remove("PLAY_BUTTON"))})).add(A.info.liveTime$.subscribe(c=>{var h;(h=s==null?void 0:s.onLiveTime)==null||h.call(s,c)})).add(A.info.isStalled$.subscribe(c=>{var h;(h=s==null?void 0:s.onStalledChanged)==null||h.call(s,c)})).add(A.info.isLiveEnded$.subscribe(c=>{var h;return c&&((h=s==null?void 0:s.onLiveEnded)==null?void 0:h.call(s))})).add(Ce.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(Ce.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(Ce.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(Ce.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(Ce.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(Ce.events.started$.subscribe(c=>{var h,M;return(M=(h=s==null?void 0:s.adsInfo)==null?void 0:h.onStarted)==null?void 0:M.call(h,c)})).add(Ce.events.timeRemained$.subscribe(c=>{var h,M;return(M=(h=s==null?void 0:s.adsInfo)==null?void 0:h.onTimeRemained)==null?void 0:M.call(h,c)})).add(Ce.events.ended$.subscribe(c=>{var h,M;return(M=(h=s==null?void 0:s.adsInfo)==null?void 0:h.onCompleted)==null?void 0:M.call(h,c)})).add(Ce.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(Ce.events.clicked$.subscribe(c=>{var h,M;return(M=(h=s==null?void 0:s.adsInfo)==null?void 0:h.onClicked)==null?void 0:M.call(h,c)})).add(Ce.events.closed$.subscribe(c=>{var h,M;return(M=(h=s==null?void 0:s.adsInfo)==null?void 0:h.onClosed)==null?void 0:M.call(h,c)})).add(Ce.events.error$.subscribe(c=>{var h,M;return(M=(h=s==null?void 0:s.adsInfo)==null?void 0:h.onError)==null?void 0:M.call(h,c)})).add(Ce.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(Ce.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 so=new lt.Subscription,nn=()=>{var ot,Lt,Ut;let{debugLog:c}=Z,h,M="#9df7b7",oe="#efd169";if(c&&c!==!0){let{colors:Yt}=c;h=c.tag,M=(ot=Yt==null?void 0:Yt[0])!=null?ot:M,oe=(Ut=(Lt=Yt==null?void 0:Yt[1])!=null?Lt:Yt==null?void 0:Yt[0])!=null?Ut:oe}let Ie=h?`: ${h}`:"";so.add(A.events.log$.subscribe(Yt=>{console.debug(`%c sdk${Ie} `,`background:${M};`,`sdk component: ${Yt.component}`,Yt.message)})).add(Ke.log$.subscribe(Yt=>{console.debug(`%c ui${Ie} `,`background:${oe};`,`ui component: ${Yt.component}.`,Yt.message)}))},yn=()=>{so.unsubscribe()},At=(c,h)=>{ue.log("start camera manual rotation",{mx:c,my:h}),A.startCameraManualRotation(c,h)},Ht=(c=!1)=>{ue.log("stop camera manual rotation",{immediate:c}),A.stopCameraManualRotation(c)},W=(c,h,M)=>{ue.log("move camera focus px",{xpx:c,ypx:h,dt:M}),A.moveCameraFocusPX(c,h,M)},Mt=()=>{A.holdCamera()},di=()=>{A.releaseCamera()},dt=Mr(A.info.position$.getValue(),c=>{let h,M,oe=()=>{let Ie=A.info.playbackState$.getValue(),ot=A.info.isLive$.getValue(),Lt=A.info.duration$.getValue(),Ut=A.info.position$.getValue();if(Ie&&[_i.PlaybackState.PLAYING,_i.PlaybackState.PAUSED].includes(Ie)){let Yt=ot?Ut-Lt:A.getExactTime();Yt!==M&&c(Yt),M=Yt}h=requestAnimationFrame(oe)};return oe(),()=>cancelAnimationFrame(h)}),It=ui(A.info.playbackState$),jt=ui(A.info.currentBuffer$),ct=ui(A.info.isEnded$),Mi=ui(A.info.isLive$),Vi=Z.features.playbackRate?ui(A.info.canChangePlaybackSpeed$):Mr(!1),rn=ui(A.info.liveBufferTime$),Ro=ui(A.info.volume$),yo=ui(A.info.muted$),Ui=Fu(A.info.predefinedQualityLimitType$.pipe((0,lt.map)(c=>c===_i.PredefinedQualityLimits.TRAFFIC_SAVING)),A.info.predefinedQualityLimitType$.getValue()===_i.PredefinedQualityLimits.TRAFFIC_SAVING),gr=Fu(A.info.predefinedQualityLimitType$.pipe((0,lt.map)(c=>c===_i.PredefinedQualityLimits.HIGH_QUALITY)),A.info.predefinedQualityLimitType$.getValue()===_i.PredefinedQualityLimits.HIGH_QUALITY),ao=ui(A.info.autoQualityLimitingAvailable$),xo=ui(A.info.availableQualities$),zi=ui(A.info.availableQualitiesFps$),sn=ui(A.info.chromecastState$),an=ui(A.info.chromecastDeviceName$),Zn=ui(A.info.currentFormat$),hr=ui(A.info.throughputEstimation$),Nr=ui(A.info.videoBitrate$),xs=ui(A.info.intrinsicVideoSize$),ns=ui(A.info.duration$),rs=ui(A.info.isAudioAvailable$),Jn=()=>{li&&clearTimeout(li),li=null},ln=$i([ns,Mi],([c,h])=>h?-c:c),No=$i([It],([c])=>c===_i.PlaybackState.PLAYING),dn=ui(A.info.atLiveEdge$),er=ui(A.info.atLiveDurationEdge$),Dn=ui(A.info.position$),Or=$i([Dn,ns],([c,h])=>isFinite(c)&&isFinite(h)&&!!h),Dr=$i([sn],([c])=>c===_i.ChromecastState.CONNECTED),ss=ui(A.info.availableVideoStreams$),_r=Z.features.audioLanguages?ui(A.info.availableAudioStreams$):Mr([]),lo=ui(A.info.currentVideoStream$),br=ui(A.info.currentAudioStream$),tr=c=>{c.language&&Xf(c.language),A.setVideoStream(c)},xn=(c,h)=>{A.setAudioStream(c),Ho(h)&&(c.language&&Xf(c.language),Z.features.userVideoPrefs&&i&&em(Z.userSalt,String(i),{audioTrackId:c.id}))},co=c=>{let h;if(c.length===1&&(h=c.at(0)),h!=null||(h=c.find(oe=>"isDefault"in oe&&oe.isDefault)),Z.features.userVideoPrefs&&i){let oe=Ku(Z.userSalt,String(i));if(oe!=null&&oe.audioTrackId){let Ie=c.find(ot=>ot.id===oe.audioTrackId);h=Ie!=null?Ie:h}}let M=R_();return M&&(h!=null||(h=c.find(({language:oe})=>M===oe))),h!=null||(h=c.at(0)),h},Br=c=>{ue.log("change audio stream",{id:c});let h=A.info.availableAudioStreams$.getValue().find(M=>M.id===c);h&&xn(h,!0)},Bn=!1;je.add(A.info.availableAudioStreams$.subscribe(c=>{if(!Bn&&c.length){let h=co(c);h&&(A.setAudioStream(h),Bn=!0)}})),_r.subscribe(c=>{var h;(h=s==null?void 0:s.onAvailableAudioStreamsChanged)==null||h.call(s,c.map(({label:M="",id:oe="",language:Ie=""})=>({label:M,language:Ie,id:oe})))}),br.subscribe(c=>{var h;return c&&((h=s==null?void 0:s.onAudioStreamChanged)==null?void 0:h.call(s,c.id))});let ht=!1;je.add(A.info.availableVideoStreams$.subscribe(c=>{if(!ht&&c.length){let h=co(c);h&&(A.setVideoStream(h),ht=!0)}}));let oi=ae(void 0),ir=ui(A.info.isAutoQualityEnabled$,c=>c&&oi.set(void 0)),$r=ui(A.info.currentQuality$,()=>oi.set(void 0)),Fr=$i([oi,$r],([c,h])=>c!=null?c:h),wn=$i(Zn,c=>c!==_i.VideoFormat.MPEG),yr=$i([xo,zi,ir,Fr,wn],([c,h,M,oe,Ie])=>{let ot=[];Ie&&ot.push({value:"auto",displayValue:at("auto_quality_option"),selected:M});let Lt=c.filter(Ut=>!(0,lt.isInvariantQuality)(Ut));for(let Ut of Lt){let Yt=h[Ut];ot.push({value:Ut,displayValue:`${Ut}${Yt?Sb(Yt):""}`,selected:M?!1:Ut===oe})}return ot}),Oo=ui(A.info.currentPlaybackRate$),cn=$i([Oo,dn,er],([c,h,M])=>{let oe=M||S?1:Z.controls.playbackRateMin,Ie=h?1:Z.controls.playbackRateMax,ot=Z.controls.playbackRateStep,Lt=[];for(let Ut=oe;Ut<=Ie;Ut+=ot)Lt.push({value:Ut,displayValue:Ut===1?at("playback_rate_1"):at("playback_rate",{multiplier:Ut.toString(10)}),selected:c===Ut});return Lt}),Do=()=>({displayValue:at("subtitles_off"),value:On,language:""}),or=ae(Do()),Wi=$i([or,Pt],([c],h)=>{c.value===On?h(Do()):h(c)}),Bo=Z.features.subtitles?ui(A.info.availableTextTracks$):Mr([]),nr=w_(),Hr=$i([Bo,Wi],([c,h],M)=>{var ot;let oe=[],Ie=c.find(({id:Lt})=>Lt===h.value);if(Ie!=null&&Ie.url){let[,Lt]=(ot=nr.find(Ie.url))!=null?ot:[];if(Lt){M(Lt);return}qe.download(Ie.url).then(Ut=>{if(!Ut||qe.isDestroyed())return;let Yt=new Tb,qs=Ie.language;if(qs){let P$=!!Ie.isAuto,A$=Yt.parse(Ut,qs);oe.push({lang:qs,subtitles:A$,isAuto:P$,id:Ie.id})}nr.add(Ie.url,oe),ge(Wi).value===h.value&&M(oe)}).catch(Ut=>{var Yt;(Yt=X==null?void 0:X.oneStat)==null||Yt.logError({errorType:"Subtitles download",fatal:!1}),j==null||j.report(Ut,{errorType:"Subtitles download",fatal:!1})})}M(oe)}),uo=$i([Oo,No,Wi],([c,h,M],oe)=>{let Lt;if(A.info.isLive$.getValue()&&h&&M.value!==On){let Yt=()=>{let qs=1e3/(3*c);Lt=setTimeout(Yt,qs),oe(Date.now())};return Yt(),()=>clearTimeout(Lt)}}),Fn=$i([Bo,Wi],([c,h])=>{if(!c.length)return[];let M=[];for(let{language:oe,isAuto:Ie,id:ot}of c){let Lt=oe&&wc(oe);oe&&Lt&&M.push({displayValue:Ie?at("subtitles_auto",{language:Lt}):Lt,value:ot,selected:(h==null?void 0:h.value)===ot,isAuto:Ie,language:oe})}return M.length?(M.unshift(Qt(Ae({},Do()),{selected:(h==null?void 0:h.value)===On})),M):[]}),Fo={available:[],prev:[]},Ur=()=>{var h,M;let c=A.experimental.getCurrentTime$.getValue();return(M=(h=c==null?void 0:c())!=null?h:Se==null?void 0:Se.currentTime)!=null?M:0},rr=$i([dt,Wi,Hr,uo],([c,h,M,oe])=>{var ot;let Ie=A.info.isLive$.getValue();if(Ie&&Fo.prev!==M){let Lt=M.find(({id:Yt})=>Yt===h.value),Ut=Fo.prev.find(({id:Yt})=>Yt===h.value);if(Lt){let Yt=Qt(Ae({},Lt),{subtitles:[...(ot=Ut==null?void 0:Ut.subtitles)!=null?ot:[],...Lt.subtitles]});Fo.available=[Yt],Fo.prev=M}}if(h&&h.value!==On){let Lt=Ie?Ur():c,Ut=Ie?Fo.available:M;return Eb(Lt,h,Ut,Ie)}}),Hn=$i([rr],([c])=>c!=null&&c.texts?c.texts:[]);je.add(Wi.subscribe(c=>{var h,M;if(c.value===On)(h=s==null?void 0:s.onSubtitleOff)==null||h.call(s);else{let oe=Object.entries(fp).find(([Ie,ot])=>ot===c.displayValue);(M=s==null?void 0:s.onSubtitleOn)==null||M.call(s,oe?oe[0]:"",c.value)}}));let zr=ae(!0),St=$i([jt,ln,Dn,rn],([c,h,M,oe])=>{var Ut;let Ie=(Ut=c==null?void 0:c.end)!=null?Ut:0;if(!oe)return Ie/h;let Lt=-M+oe-h;return(Ie-Lt)/h}),Et=ui(A.info.availableSources$),po=$i([Et],([c])=>Object.keys((c==null?void 0:c[_i.VideoFormat.MPEG])||{}).length>0),Ji=()=>{var M,oe,Ie;let c=Object.keys(((oe=(M=A.info.availableSources$)==null?void 0:M.getValue())==null?void 0:oe[_i.VideoFormat.MPEG])||{}),h=(0,lt.getHighestQuality)(c)||lt.VideoQuality.Q_144P;return(Ie=ee.sources[_i.VideoFormat.MPEG])==null?void 0:Ie[h]},Ki=()=>{var h;let c=Ji();if(c)ue.log("download video",{url:c}),$_(c,((h=ee==null?void 0:ee.meta)==null?void 0:h.title)||"video");else{let M="There is no URL for download video";ue.log("download video",{message:M}),fe({message:M})}},Sn=()=>{fe({message:"toggle muted"});let c=A.info.muted$.getValue();A.info.volume$.getValue()===0&&!c?xr(Tn(),!1):sr(!c,!1)},wo=()=>{var c;if(qt.ui.settingsMenu.visible$.set(!1),!ge(qt.ui.settingsSubMenu.visible$)){let h=ge(qt.ui.settingsMenu.ref$);if((c=s==null?void 0:s.uiInfo)!=null&&c.onSettingsMenu&&h){let oe=od(h),Ie={top:0,left:0,bottom:0,right:0};s.uiInfo.onSettingsMenu({visible:!1,size:oe,position:Ie,name:"settings"})}}ue.log("close settings menu")},Un=(c,h=()=>Promise.resolve())=>_t(null,null,function*(){var Ie;qt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),qt.ui.settingsMenu.visible$.set(!0),yield h();let M=ge(qt.ui.settingsMenu.ref$),oe=ba();if((Ie=s==null?void 0:s.uiInfo)!=null&&Ie.onSettingsMenu&&M&&oe){let Lt=od(M),Ut=Rs(M,oe);s.uiInfo.onSettingsMenu({visible:!0,size:Lt,position:Ut,name:"settings"})}ue.log("open settings menu",{wasOpenedByKeyboard:c})}),mi=(c,h=!1)=>{var ot;qt.ui.settingsSubMenu.visible$.set(!1);let M=ge(qt.ui.settingsMenu.ref$),oe=ba(),Ie=ge(qt.ui.settingsMenu.visible$);if((ot=s==null?void 0:s.uiInfo)!=null&&ot.onSettingsMenu&&M&&oe)if(Ie&&!h){let Ut=od(M),Yt=Rs(M,oe);s.uiInfo.onSettingsMenu({visible:!0,size:Ut,position:Yt,name:"settings"})}else{let Ut=od(c),Yt={top:0,left:0,bottom:0,right:0},qs=ge(qt.ui.settingsSubMenu.name$);s.uiInfo.onSettingsMenu({visible:!1,size:Ut,position:Yt,name:qs})}ue.log("close settings sub menu")},Wr=(c,h)=>{var oe;qt.ui.settingsSubMenu.visible$.set(!0),qt.ui.settingsSubMenu.ref$.set(h),qt.ui.settingsSubMenu.name$.set(c);let M=ba();if((oe=s==null?void 0:s.uiInfo)!=null&&oe.onSettingsMenu&&h&&M){let ot=od(h),Lt=Rs(h,M);s.uiInfo.onSettingsMenu({visible:!0,name:c,size:ot,position:Lt})}ue.log("open settings sub menu",{name:c})},Tn=()=>{var h;let c=Math.max(Z.volumeMinRestore,(h=Hu())!=null?h:0);return c===0?Z.volumeDefault:c},Ho=c=>{let h=Z.features.savePreferredStatesOnUserActionOnly;return!h||h&&!c},xr=(c,h)=>{let M=c===0?Tn():c,oe=A.info.muted$.getValue();fe({message:`set volume, volume: ${c}, preferredVolume: ${M}`});let Ie=!l||be.is("ads");oe&&c>0&&Ie&&(oe=!1,Ho(h)&&Yf(!1)),A.setVolume(c,oe),Ce.setVolume(c),Ho(h)&&Kf(M)},sr=(c,h)=>{let M=A.info.volume$.getValue();fe({message:`set muted, currentVolume: ${M}, mute: ${c}`});let oe=be.is("ads");if(A.setMuted(c,oe),Ce.setVolume(c?0:M),Ho(h)&&(!oe||!c)&&Yf(c),!c&&M===0){let Ie=Tn();A.setVolume(Ie),Ho(h)&&Kf(Ie),Ce.setVolume(Ie)}},wr=ae(!1),Cn=c=>{var h,M;ue.log("set looped",{isLooped:c}),wr.set(c),A.setLooped(c),(M=(h=s==null?void 0:s.uiInfo)==null?void 0:h.onLoopedChanged)==null||M.call(h,c)};Cn(re);let un=()=>{var c,h;(h=(c=s==null?void 0:s.uiInfo)==null?void 0:c.onReportProblem)==null||h.call(c)},Kr=(c,h=!1)=>{var M;fe({message:`set autoplayNextEnabled, value: ${c}`}),ue.log("set autoplay next enabled",{autoplayNextEnabled:c}),qt.ui.autoplayNextEnabled$.set(c),D_(c),h&&((M=s==null?void 0:s.onSetAutoplayNextEnabled)==null||M.call(s,c))},pn=c=>{fe({message:`set timerNextVideoRunning, value: ${c}`}),ue.log("set timer next video running",{timerNextVideoRunning:c}),qt.ui.timerNextVideoRunning$.set(c)},as=(c=!0)=>{var M;let h=!0;if(c&&(s!=null&&s.onPrevVideoClick))try{h=(M=s==null?void 0:s.onPrevVideoClick)==null?void 0:M.call(s)}catch(oe){fe({message:"onPrevVideoClick callback failed to execute"})}Y(!0),h&&G()},Qe=(c=!0)=>{var M;let h=!0;if(c&&(s!=null&&s.onNextVideoClick))try{h=(M=s==null?void 0:s.onNextVideoClick)==null?void 0:M.call(s)}catch(oe){fe({message:"onNextVideoClick callback failed to execute"})}Y(!1),h&&le()},Vt=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementShow)==null||c.call(s)},xi=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementClick)==null||c.call(s)},Io=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementAuto)==null||c.call(s)},Eo=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementCancel)==null||c.call(s)},Uo=()=>{A.prepare()},fo=()=>{(0,lt.assertNonNullable)(qt);let c=ge(qt.ui.controls.disabledControls$),h=ge(qt.playerPhase),M={playerPhase:h,isInteractive:S,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(fe({message:"toggle play"}),h==="ads"){M.action="play",ue.log("toggle adman play",M),Ce.togglePlay();return}let oe=()=>{var ot;fe({message:"toggle play, call player.play"}),M.action="play",A.play(),(ot=s==null?void 0:s.onPlay)==null||ot.call(s)},Ie=()=>{var ot;fe({message:"toggle play, call player.pause"}),M.action="pause",A.pause(),(ot=s==null?void 0:s.onPause)==null||ot.call(s)};if(A.info.isEnded$.getValue()){if(fe({message:"toggle play, video ended, seek to 0"}),Ai.next(),Zt.next($s.SeekAction.REWIND),S){R==null||R();return}A.seekTime(0),oe()}else A.info.playbackState$.getValue()!==_i.PlaybackState.PLAYING?oe():Ie();ue.log("toggle play",M)},Ri=(c,{changeReason:h="default",appliesTo:M="to-video"}={},oe)=>{fe({message:`set quality, quality: ${c}`}),ue.log("set quality",{quality:c}),A.setAutoQuality(c==="auto");let{qualityDetailsSubMenuEnabled:Ie}=Z.features;Uu(),c!=="auto"?(Ie?(zu({type:"exact_quality",quality:c,videoId:i},M),A.setPredefinedQualityLimits(_i.PredefinedQualityLimits.UNKNOWN)):qf(i,c),oi.set(c),A.setQuality(c)):Ie&&h==="default"&&(Ko("auto_quality",M,oe),ge(Ui)&&zo(!1,void 0,oe),ge(gr)&&Wo(!1,void 0,oe))},zo=(c,h="as-default",M)=>{fe({message:`set trafficSavingEnabled, value: ${c}`}),ue.log("set traffic saving enabled",{trafficSavingEnabled:c});let oe=c?_i.PredefinedQualityLimits.TRAFFIC_SAVING:_i.PredefinedQualityLimits.UNKNOWN;Z.features.qualityDetailsSubMenuEnabled?(So(oe,h,M),Jd(!1)):(A.setPredefinedQualityLimits(oe),Ho(M)&&Jd(c))},Wo=(c,h="as-default",M)=>{fe({message:`set highQualityEnabled, value: ${c}`}),ue.log("set high quality enabled",{highQualityEnabled:c}),So(c?_i.PredefinedQualityLimits.HIGH_QUALITY:_i.PredefinedQualityLimits.UNKNOWN,h,M)},So=(c,h,M)=>{c!==_i.PredefinedQualityLimits.UNKNOWN&&(ge(ao)&&!ge(ir)&&Ri("auto",{appliesTo:h,changeReason:"limit-changed"},M),Ko(c,h,M)),A.setPredefinedQualityLimits(c)},Ko=(c,h,M)=>{Ho(M)&&(zu({type:c,videoId:i},h),h==="as-default"&&zu({type:c,videoId:i},"to-video"))},fn=(c,h=!0)=>{ue.log("set playback rate",{playbackRate:c}),A.setPlaybackRate(c),Z.features.saveRate&&we&&!A.info.isLive$.getValue()&&h&&N_(c)},Sr=()=>{let c=ge(cn),h=c.findIndex(({selected:oe})=>oe);if(h===c.length-1)return;let M=c[h+1];fn(M.value)},Tr=()=>{let c=ge(cn),h=c.findIndex(({selected:oe})=>oe);if(h===0)return;let M=c[h-1];fn(M.value)},Cr=(c=Qt(Ae({},Do()),{selected:!1}),h)=>{ue.log("set subtitles",Ae({},c)),c.value!==On&&Tt.next(c.isAuto?c.value+"_auto":c.value),yt.next({enabled:c.value!==On,lang:c.language,auto:!!c.isAuto}),or.set(c),Ho(h)&&(Jf(c.value===On?void 0:c.language),Z.features.userVideoPrefs&&i&&em(Z.userSalt,String(i),{subtitleTrackId:c.value===On?void 0:c.value}))},ls=c=>{ue.log("toggle subtitles");let h=ge(Wi);(h==null?void 0:h.value)===On?Ze(c):Kt(c)},ds=(c,h)=>{ue.log("change subtitle",{enabled:c}),c?Ze(!0,h):Kt(!0)},Ze=(c,h)=>{ue.log("subtitle on");let M=ge(Fn),oe=ge(Pe),Ie=Te!=null?Te:oe,ot;h&&(ot=M.find(Lt=>Lt.value===h)),ot!=null||(ot=M.filter(Lt=>Lt.value!==On).find(Lt=>Lt.language===Ie)),Cr(ot!=null?ot:M[1],c)},Kt=c=>{ue.log("subtitle off"),Cr(void 0,c)};je.add(A.info.availableTextTracks$.subscribe(c=>{var M;function h(){let oe=[];for(let{language:Ie,isAuto:ot,id:Lt}of c){let Ut=Ie&&wc(Ie);Ie&&Ut&&oe.push({id:Lt,language:Ie,title:ot?at("subtitles_auto",{language:Ut}):Ut})}return oe}(M=s==null?void 0:s.onAvailableSubtitlesChanged)==null||M.call(s,h())}));let Ci=ae(!0),qo=c=>{Ci.set(c)},mo=(c,h,M=!0)=>{var oe;if(fe({message:`seek to time, time: ${c}`}),ue.log("seek to time",{time:c,action:h,forcePrecise:M}),Zt.next(h),A.info.isLive$.getValue()){let Ie=A.info.duration$.getValue(),ot=Math.min(0,Ie+c);A.seekTime(ot,M)}else{if(I!=null&&I.getValue())return;A.info.isEnded$.getValue()&&(fe({message:"seek after ended, call callbacks.onPlay"}),(oe=s==null?void 0:s.onPlay)==null||oe.call(s)),A.seekTime(fg(c),M)}},Ir=c=>{fe({message:`seek to episode start time: ${c}`}),ue.log("seek to episode start time",{time:c}),mo(c,$s.SeekAction.EPISODE,!0)},mn=(c,h,M=!1)=>{fe({message:`seek to percent, percent: ${c}`}),ue.log("seek to percent",{percent:c,action:h});let oe=ge(ln)*c;mo(oe,h,M)},Er=c=>{fe({message:`seek external, time: ${c}`}),ue.log("seek external",{time:c}),Zt.next($s.SeekAction.UNKNOWN),A.seekTime(A.info.isLive$.getValue()?-c:c)},Hs=c=>{var oe,Ie;let h=(oe=c.max)!=null?oe:"none",M=(Ie=c.min)!=null?Ie:"none";fe({message:`set auto quality limitation. Max: ${h}. Min: ${M}`}),ue.log("set auto quality limits",{max:h,min:M}),A.setAutoQualityLimits(c)},In=c=>{fe({message:`seek external to episode start time: ${c}`}),ue.log("seek external to episode start time",{time:c}),mo(c,$s.SeekAction.EPISODE,!0)},Us=c=>{fe({message:`set playback rate to: ${c}`}),ue.log("set playback rate external",{playbackRate:c}),A.setPlaybackRate(c)},ar=ae(!1),cs=ae(!1),ft=$i([ln],([c])=>!!m&&c>=Z.suitableDurationForUsingRichSeek&&Z.features.useRichSeek&&!S),fi=((m==null?void 0:m.frameWidth)||0)>=((m==null?void 0:m.frameHeight)||0),Qo=$i([Ct],([c])=>{let h=nd(c);return fi?!h:h});je.add(be.subscribe(c=>{c!=="video"&&ar.set(!1)}));let me=ae(void 0),mt=ae(!1),ei=c=>{fe({message:`start scrubbing, progress: ${c}`}),ue.log("start scrubbing",{progress:c}),mt.set(!0),Ii(c)},Ii=c=>{me.set(c)},qi,si,ni=()=>{me.set(void 0),mt.set(!1)},vo=()=>{clearTimeout(si),clearTimeout(qi),qi=window.setTimeout(()=>{ni()},500),Se==null||Se.removeEventListener("seeked",vo)},zn=(c,h=!1)=>{fe({message:`complete scrubbing, progress: ${c}`}),ue.log("complete scrubbing",{progress:c}),mn(c,$s.SeekAction.SLIDER,h),ge(qt.ui.isMobile)&&ge(qt.state.currentFormat$)===_i.VideoFormat.HLS?(Se==null||Se.addEventListener("seeked",vo),si=window.setTimeout(()=>{vo()},300)):ni()},Wn=$i([dt,ln,me],([c,h,M],oe)=>{oe((0,lt.isNonNullable)(M)?M*h:c)}),ki=ae(!1),bd=()=>{ki.set(!0)},pl=()=>{ki.set(!1)},zs=$i([ii],([{width:c}],h)=>{let M=_b(c);h(M)}),fa=D.filter(c=>y_(c)),ma=$i([zs,Me],([c,h])=>h?fa.filter(M=>!M.hideOnMobile):fa.filter(M=>{var oe;return!((oe=M.hideOnDesktopGridTypes)!=null&&oe.includes(c))})),vn=ae(D.filter(c=>x_(c))),fl=$i([vn,zs],([c,h])=>c.filter(M=>{var oe;return!((oe=M.hideOnDesktopGridTypes)!=null&&oe.includes(h))})),va=$i([fl,ma],([c,h])=>[...Z.features.additionalButtonsDesktopControlPanelRight?c.filter(M=>M.type==="desktop-control-panel-right"):[],...Z.features.additionalButtons?h.map((M,oe)=>{var Ie;return{id:oe,weight:oe,type:"desktop-control-panel-right",testId:M.testId,icon:M.iconUrl,onClick:M.onClick,ariaLabel:(Ie=M.ariaLabel)!=null?Ie:M.tooltip,tooltipText:M.tooltip}}):[]]),qr=ae(U),us=$i([qr],([c])=>Z.features.additionalSettingsMenuItems?c.map(h=>h.type==="SWITCH"?Qt(Ae({},h),{onClick:h.onChangeEnabled}):h):[]),Ws=(c,h)=>{let M=ge(vn).map(oe=>oe.id!==c?oe:Ae(Ae({},oe),h));vn.set(M)},ga=c=>{let h=ge(vn);if(h.some(M=>M.id===c.id)){fe({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}h.push(c),vn.set(h)},ml=c=>{let h=ge(vn);if(!h.some(M=>M.id===c)){fe({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}h=h.filter(M=>M.id!==c),vn.set(h)},vl=c=>{Zt.next($s.SeekAction.LIVE),fe({message:"live switch to low latency "+c}),ue.log("live switch to low latency "+c),A.setLiveLowLatency(c)},$d=(c,h)=>{let M=ge(qr).map(oe=>oe.id!==c?oe:Ae(Ae({},oe),h));qr.set(M)},gl=c=>{let h=ge(qr);if(h.some(M=>M.id===c.id)){fe({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}h.push(c),qr.set(h)},hl=c=>{let h=ge(qr);if(!h.some(M=>M.id===c)){fe({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}h=h.filter(M=>M.id!==c),qr.set(h)},Pr=ae(z),yd=$i([Pr],([c])=>Z.features.additionalContextMenuItems?c:[]),ha=(c,h)=>{let M=ge(Pr).map(oe=>oe.id!==c?oe:Ae(Ae({},oe),h));Pr.set(M)},_l=c=>{let h=ge(Pr);if(h.some(M=>M.id===c.id)){fe({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}h.push(c),Pr.set(h)},ut=c=>{let h=ge(Pr);if(!h.some(M=>M.id===c)){fe({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}h=h.filter(M=>M.id!==c),Pr.set(h)},vt=$i([Me,J],([c,h],M)=>{M(c&&h)}),Qi=()=>{Zt.next($s.SeekAction.LIVE),fe({message:"switch to active live"}),ue.log("switch to active live"),A.seekTime(0),A.info.playbackState$.getValue()!==_i.PlaybackState.PLAYING&&qt.actions.internal.togglePlay()},Go=()=>{ue.log("skip adman"),Ce.skip()},Gi=(c=!0)=>{var oe;(0,lt.assertNonNullable)(qt),fe({message:`switch from ads to video, callPlay: ${c}`}),ue.log("switch from ads to video",{callPlay:c}),gt.set("video"),c&&A.play(),l&&sr(!0,!0);let h=(oe=ge(et))==null?void 0:oe.muted,M=!A.info.muted$.getValue();h!==void 0&&!M&&sr(h,!0),et.set(void 0)},wi=()=>{(0,lt.assertNonNullable)(qt),fe({message:"switch from video to ads"}),ue.log("switch from video to ads"),qt.actions.internal.pause(),Si(),gt.set("ads")},Ni=c=>{(0,lt.assertNonNullable)(qt);let h=c?"LiveWaitingStart":"thumb";ue.log("set live waiting start",{state:c,playerPhase:h}),gt.set(h)},_a=c=>{(0,lt.assertNonNullable)(qt);let h=c?"LiveWaitingRecover":"thumb";ue.log("set live waiting recover",{state:c,playerPhase:h}),gt.set(h)},bl=c=>{(0,lt.assertNonNullable)(qt);let h=c?"LiveWaitingRecord":"thumb";ue.log("set live waiting record",{state:c,playerPhase:h}),gt.set(h)},Hp=()=>((0,lt.assertNonNullable)(qt),ue.log("get debug text data"),__(A,ee,qt,Ne.getTraceId())),tu=()=>((0,lt.assertNonNullable)(qt),JSON.stringify(Ne.getFinishedSpans())),iu=()=>((0,lt.assertNonNullable)(qt),b_(A,ee,qt)),ba=()=>Se,Up=()=>{fe({message:"toggle chromecast"}),ue.log("toggle chromecast"),A.toggleChromecast()},Ks=c=>{var M;if((0,lt.assertNonNullable)(qt),A.info.isEnded$.getValue())return;let h=!c;if(ge(qt.playerPhase)==="ads"){fe({message:`pause ads, internalCall: ${h}`}),ue.log("pause ads",{internalCall:h}),Ce.pause();return}fe({message:`pause video, internalCall: ${h}`}),ue.log("pause video",{internalCall:h}),h&&((M=s==null?void 0:s.onPause)==null||M.call(s)),A.pause()},$l=c=>{var M;(0,lt.assertNonNullable)(qt);let h=!c;if(ge(qt.playerPhase)==="ads"){fe({message:`play ads, internalCall: ${h}`}),ue.log("play ads",{internalCall:h}),Ce.play();return}fe({message:`play video, internalCall: ${h}`}),ue.log("play video",{internalCall:h}),h&&((M=s==null?void 0:s.onPlay)==null||M.call(s)),A.play()},ou=c=>{(0,lt.assertNonNullable)(qt);let h=!c;if(ge(qt.playerPhase)==="ads"){fe({message:"player cannot be stopped during ads via external method"});return}fe({message:`player will be stopped, internalCall: ${h}`}),E==null||E()},nu=(c,h)=>{(0,lt.assertNonNullable)(qt),fe({message:`first start, show ads: ${c}, internalCall: ${!h}`}),ue.log("first start",{showAds:c,external:h}),c?gt.set("ads"):(gt.set("video"),h?A.play():qt.actions.internal.togglePlay())},yl=()=>(fe({message:"getting time codes"}),p),ru=()=>{let c=yl();if(!c||[0,1].includes(c.length))return;let h=A.info.position$.getValue();return c.find(M=>M.time>h)},zp=c=>{let h=c;h||(h=ru());let M=A.info.position$.getValue();ue.log("seek to next episode",Ae({currentTime:M},h)),h&&(fe({message:"seek to next episode"}),mo(h.time,$s.SeekAction.EPISODE,!0))},su=()=>{let c=yl();if(!c||[0,1].includes(c.length))return;let h=A.info.position$.getValue(),M=c.findIndex(Ie=>Ie.time>h),oe=M===-1?c.length-2:M-2;if(!(oe<0))return c[oe]},He=c=>{let h=c;h||(h=su());let M=A.info.position$.getValue();ue.log("seek to prev episode",Ae({currentTime:M},h)),h&&(fe({message:"seek to prev episode"}),mo(h.time,$s.SeekAction.EPISODE,!0))},bi=()=>(fe({message:"getting preview thumbs data"}),ue.log("get preview thumbs data",Ae({},m)),m),Yo=()=>_t(null,null,function*(){let c=ie==null?void 0:ie.isActive(),h="none";ie!=null&&ie.isActive()?(h="exit",yield ie==null?void 0:ie.exit()):(h="request",yield ie==null?void 0:ie.request()),ue.log("toggle picture in picture",{isActive:c,action:h})}),$a=(c=-90)=>{ue.log("rotate video",{alphaDiff:c}),Ct.update(h=>h+c)},Po=ae([]);C==null||C.subscribe(c=>{let h=[];for(let M=0;M<c.length;M++){let{range:[oe,Ie],subjects:ot}=c[M];M===0&&oe!==0&&h.push({time:0,text:"",interactive:!1,completed:!0}),h.push({time:oe/1e3,text:"",interactive:!0,completed:Z.features.interactiveTimeOpenUri?!ot.length||ot.every(Lt=>Lt.isRemoved):!ot.length}),Ie!==1/0&&h.push({time:Ie/1e3,text:"",interactive:!1,completed:!0})}Po.set(h)});let y$=ae(!1);I==null||I.subscribe(c=>{c&&ge(mt)&&ni()});let fg=c=>{if(!S)return c;let h=ge(Po),M=ge(ln),Ie=ge(Dn)/M,ot=h.find(Lt=>Lt.interactive&&!Lt.completed&&Lt.time>Ie);return typeof(ot==null?void 0:ot.time)=="number"?Math.min(c,ot.time-.05):c},x$=()=>{qt.ui.episodes.panelOpened$.set(!1)},w$=()=>{ue.log("destroy store"),clearTimeout(si),clearTimeout(qi),je.unsubscribe(),so.unsubscribe(),A.destroy(),Ce.destroy(),X==null||X.destroy(),j==null||j.destroy(),_e.unsubscribe(),ri==null||ri.disconnect(),ri=null,qe.destroy()},S$=$i([dn,be,Vi],([c,h,M])=>f.features.doubleForwardAvailable&&!c&&h==="video"&&M),Wp=ae(!1),mg=2,au=null,vg=c=>{if(!ge(No)&&c)return;let h=A.info.currentPlaybackRate$.getValue();c?h!==mg&&(au=h,fn(mg,!1),Wp.set(!0)):(au&&fn(au,!1),Wp.set(!1),au=null)};be.subscribe(c=>{c!=="video"&&vg(!1)});let T$=()=>{Ks(!1),ar.set(!0)},C$=()=>{$l(!1),ar.set(!1)},Kp=!1,I$=()=>{cs.set(!0),Kp=A.info.playbackState$.getValue()===_i.PlaybackState.PLAYING,Ks(!1)},E$=()=>{cs.set(!1),!ge(ar)&&Kp&&$l(!1),Kp=!1};A.events.playing$.subscribe(()=>{ge(ar)&&Ks(!1)});let qt={interfaceLanguage$:Pe,isCyrillicRelatedInterface$:Ve,initVideo:$o,videoId:i,isClip:o,playerPhase:be,vsid:ze,state:{positionExact$:dt,positionWithScrubbing$:Wn,duration$:ln,playbackState$:It,isPlaying$:No,isLoaderVisible:yi,bufferedProgress$:St,isLive$:Mi,canChangePlaybackSpeed$:Vi,isActiveLive$:dn,isOldestAvailableLive$:er,isRewindableLive$:Or,isEnded$:ct,muted$:yo,volume$:Ro,trafficSavingEnabled$:Ui,highQualityEnabled$:gr,autoQualityLimitingAvailable$:ao,availableVideoStreams$:ss,availableAudioStreams$:_r,videoStream$:lo,audioStream$:br,currentQuality$:Fr,isAutoQualityEnabled$:ir,availableQualities$:yr,currentPlaybackRate$:Oo,availablePlaybackRates$:cn,currentSubtitle$:Wi,availableTextTracks$:Bo,availableSubtitlesList$:Fn,currentSubtitleCaptions$:Hn,isAutoSubtitleCaptionVisible$:zr,chromecastState$:sn,chromecastDeviceName$:an,chromecastConnected$:Dr,currentFormat$:Zn,throughputEstimation$:hr,videoBitrate$:Nr,videoSize$:xs,errorLog$:$e,crashed$:J,isAudioAvailable$:rs,isAudioDisabled:!!l,canDownload:Z.features.download&&!!d,availableSources$:Et,hasMpegSources$:po,isInteractive:S,showInteractiveGraph:Z.features.interactiveGraph,showSeekToInteractive:Z.features.seekToInteractive,showPlayPrevChapter:Z.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:Z.features.interactiveTimeIndicator&&!!ge(Po).length,interactiveEpisodes$:Po,isInteractiveTime$:I?ui(I):ae(!1),isInteractiveExpectation$:y$,hasInteractiveBranches:P,playPrevChapterDisabledTooltip:O,looped$:wr,loadedMetadata$:ti,isAutoQualityAvailable$:wn,previewTrackActive:ar,previewTrackDragInProgress:cs},ui:{t:at,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),fullscreen:ae(void 0),vkLogo:ae(void 0),interactiveTimeIndicator:ae(void 0),timeline:ae(void 0),autoplayNextToggle:ae(void 0),additionalButtons:D.length?D.reduce(c=>[...c,ae(void 0)],[]):[],disabledControls$:rt},modals:{hotKeyMap:{show:ae(!1),data:ae({title:"",closeBtnText:"",groups:[]})}},isFullscreen:Nt,isFullscreenOpenedByKeyboard:tt,rotateAlpha:Ct,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:ii,isMobile:Me,mobileNotReportControlHidden$:vt,icon3DVideoVisible:ae(!1),scrubbingInProgress:mt,volumeChangingInProgress:ki,is3DVideo:Ft,currentGridType$:zs,additionalButtonsDeprecated$:ma,additionalDesktopControlPanelRightButtons$:va,additionalSettingsMenuItems$:us,additionalContextMenuItems$:yd,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:Ci,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$:Wp,doubleForwardAvailable$:S$,previewTrackNotificationVisible:ae(!1),previewTrackActive:ar,previewTrackDragInProgress:cs,previewTrackAvailable:ft,isPreviewTrackHorizontallyAligned:Qo},ads:{position:ae(0),duration:ae(0),playbackState:ae("inactive"),canSkip:ae(!1),secondsToWatchBeforeSkip:ae(0),postrollPassed:ae(!1)},webApi:{pictureInPictureApi:ie,annotationsApi:Oe,slotsApi:Be},actions:{internal:{preload:Uo,firstStart:c=>nu(c,!1),play:()=>$l(!1),pause:()=>Ks(!1),togglePlay:fo,toggleMuted:Sn,openSettingsMenu:Un,closeSettingsMenu:wo,openSettingsSubMenu:Wr,closeSettingsSubMenu:mi,setVolume:c=>xr(c,!1),setMuted:c=>sr(c,!1),startVolumeChanging:bd,stopVolumeChanging:pl,setVideoStream:tr,setAudioStream:c=>xn(c,!1),setQuality:(c,h)=>Ri(c,h,!1),setTrafficSavingEnabled:(c,h)=>zo(c,h,!1),setHighQualityEnabled:(c,h)=>Wo(c,h,!1),setPlaybackRate:fn,incrementPlaybackRate:Sr,decrementPlaybackRate:Tr,setSubtitle:c=>Cr(c,!1),toggleSubtitle:()=>ls(!1),togglePictureInPicture:Yo,startScrubbing:ei,progressScrubbing:Ii,completeScrubbing:zn,toggleChromecast:Up,switchToActiveLive:Qi,switchFromAdsToVideo:Gi,switchFromVideoToAds:wi,skipAd:Go,setLiveWaitingStart:Ni,setLiveWaitingRecover:_a,setLiveWaitingRecord:bl,getDebugTextData:Hp,getTraceTextData:tu,getDebugPanelData:iu,getVideoElement:ba,seekTime:(c,h,M)=>mo(c,h,M),clearDelayedBufferingCheckTimeout:Jn,seekEpisodeStartTime:Ir,seekToPercent:mn,getNextEpisode:ru,seekToNextEpisode:zp,getPrevEpisode:su,seekToPrevEpisode:He,startLogging:nn,stopLogging:yn,startCameraManualRotation:At,stopCameraManualRotation:Ht,moveCameraFocusPX:W,holdCamera:Mt,releaseCamera:di,getVideoEpisodes:yl,getPreviewThumbsData:bi,downloadVideo:Ki,addLanguage:tm,setLanguage:ye,nextMovie:pt,videoRotate:$a,correctSeekTimeToInteractive:fg,replayInteractive:R,setLooped:Cn,reportProblem:un,setAutoplayNextEnabled:Kr,setTimerNextVideoRunning:pn,prevVideoClick:as,nextVideoClick:Qe,nextVideoAnnouncementShow:Vt,nextVideoAnnouncementClick:xi,nextVideoAnnouncementAuto:Io,nextVideoAnnouncementCancel:Eo,checkFullscreenSupport:Bt,changeDoubleForwardOn:vg,closePreviewTrack:C$,previewTrackOpened:T$,previewTrackDragStarted:I$,previewTrackDragFinished:E$},external:{firstStart:c=>nu(c,!0),play:()=>$l(!0),pause:()=>Ks(!0),stop:()=>ou(!0),seekTime:c=>Er(c),seekEpisodeStartTime:c=>In(c),setPlaybackRate:c=>Us(c),setAutoQualityLimits:c=>Hs(c),setMuted:c=>sr(c,!0),toggleSubtitle:()=>ls(!0),changeSubtitle:ds,setVolume:c=>xr(c,!0),returnFocusToEpisodes:x$,updateAdditionalSettingsItem:$d,addAdditionalSettingsItem:gl,removeAdditionalSettingsItem:hl,updateAdditionalContextItem:ha,addAdditionalContextItem:_l,removeAdditionalContextItem:ut,updateAdditionalButton:Ws,addAdditionalButton:ga,removeAdditionalButton:ml,setLiveLowLatency:vl,hideControls:()=>qo(!1),showControls:()=>qo(!0),setQuality:c=>Ri(c,{appliesTo:"to-video"},!0),setTrafficSavingEnabled:c=>zo(c,"to-video",!0),setHighQualityEnabled:c=>Wo(c,"to-video",!0),changeAudioStream:Br}},callbacks:s,setUiCallbacks:c=>{Fe=Ae({},c)},getAdmanWrapper:()=>Ce,getLogger:()=>Ke,getPlayer:()=>A,destroy:w$};return qt};function jn(t,e,i,o){var p;let r=(p=e[i])==null?void 0:p.getBoundingClientRect(),a=o&&!!r&&!!(r.right-r.left),{top:l,left:d,bottom:s,right:u}=Rs(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 qx=["disabledControls$","additionalButtons"],Qx=["interactiveTimeIndicator"],sd=(t,e,i,o)=>{if(t){for(let[r,a]of Object.entries(e))if(!qx.includes(r)){let l=o||Qx.includes(r);a.set(jn(t,i,r,l))}}};var vp=(t,e,i)=>_t(null,null,function*(){yield bo(),e&&i&&(i.focus(),t.set(!1))});var Gx=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 Wm(t){Je(t,{children:(e,i)=>{var o=Gx();_(e,o)},$$slots:{default:!0}})}function Km(t,e){F(e,!0);let[i,o]=Re(),r=()=>x(s,"$contextMenuVisible$",i),a=g(e,"disabled",3,!1),l=g(e,"ariaLabel",3,""),d=ve(),s=d.ui.contextMenu.visible$,u=d.ui.contextMenu.openedByBtnKeyboard$,p=d.ui.contextMenu.showContextMenuBtn$,m=d.ui.contextMenu.position$,f=d.ui.contextMenu.btnRef$,b=K(void 0);De(()=>{n(b)&&kt(()=>{f.set(n(b))})});let y=I=>{let R=sa(I),E=lb(n(b));m.set(E),u.set(R),s.set(!r())},$=()=>{p.set(!0)},S=()=>{p.set(!1)},C=v(()=>r()?"opened":"");Wt(t,{get className(){return n(C)},testId:"btn-context-menu",get disabled(){return a()},get ariaLabel(){return l()},click:y,focus:$,blur:S,get ariaExpanded(){return r()},get ref(){return n(b)},set ref(I){N(b,I,!0)},children:(I,R)=>{Wm(I,{})},$$slots:{default:!0}}),H(),o()}var Yx=t=>{t.stopPropagation()},jx=L("<div><!> <div></div> <div></div></div>"),Xx={hash:"s-25",code:'.interactive-episode-icon-animated.s-25{height:32px;opacity:1;position:absolute;right:16px;top:16px;transition:.3s;width:32px}.interactive-episode-icon-animated.icon-small.s-25{height:28px;width:28px}.invisible.s-25{opacity:0;visibility:hidden}.fullscreen.s-25:not(.mobile){height:40px;right:23px;top:19px;width:40px}.mobile.s-25{height:28px;right:14px;top:12px;width:28px}.fullscreen.mobile.s-25{height:32px;width:32px}@media screen and (orientation:portrait){.interactive-episode-icon-animated.mobile.fullscreen.s-25{right:16px;top:40px}}@keyframes s-25-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-25{animation:s-25-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-25{animation-play-state:paused}.interactive-episode-icon-animated svg{height:100%;width:100%}.ref-block.s-25{height:100%;position:absolute;top:0;visibility:hidden;width:100%}.hidden.s-25{display:none}'};function Tc(t,e){var j;F(e,!0),q(t,Xx);let[i,o]=Re(),r=()=>x(S,"$isMobile",i),a=()=>x(E,"$areControlsVisible",i),l=()=>x(O,"$currentGridType$",i),d=()=>x(I,"$isInteractiveTime$",i),s=()=>x($,"$interactiveControlsOpacity$",i),u=()=>x(R,"$showInteractiveTimeIndicatorTooltip$",i),p=()=>x(C,"$isFullscreen",i),m=g(e,"ref",15,void 0),f=K(void 0),b=ve(),y=Co(),{interactiveControlsOpacity$:$}=y,S=b.ui.isMobile,C=b.ui.isFullscreen,I=b.state.isInteractiveTime$,R=y.showInteractiveTimeIndicatorTooltip$,E=b.ui.controlsVisible,P=(j=b.callbacks)==null?void 0:j.onInteractiveTimeIndicatorClick,O=b.ui.currentGridType$,D=v(()=>!r()&&a()),U=v(()=>Vs(l(),"s")),z=v(()=>!d()||!!s()||n(D)),G=K(!1);De(()=>{N(G,n(z),!0)});let le=()=>{N(G,!0)},Y=()=>{var ie;re(),(ie=n(f))==null||ie.addEventListener("animationiteration",le,{once:!0})},re=()=>{var ie;N(G,!1),(ie=n(f))==null||ie.removeEventListener("animationiteration",le)},X=ie=>{R.set(ie)},we=v(()=>u()&&!n(z));De(()=>{u()?Y():re()});let ce=()=>{n(z)||(R.set(!0),P==null||P())};_n(()=>{R.clearTimeout(),re()});let ne=()=>{R.set(!1)},he=Q("tooltip_interactive_interaction_time_indicator");var xe=jx();let Z;xe.__mousemove=[Yx],xe.__click=ce;var Ne=T(xe);Mo(Ne,{get tooltipContent(){return he},get tooltipVisible(){return n(we)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:X,get ref(){return m()},set ref(ie){m(ie)},children:(ie,Oe)=>{gc(ie,{completed:!0})},$$slots:{default:!0}});var ue=k(Ne,2);let A;nt(ue,ie=>m(ie),()=>m());var Ke=k(ue,2);let Ce;nt(Ke,ie=>N(f,ie),()=>n(f)),w(xe),B((ie,Oe,Be)=>{Z=se(xe,1,"interactive-episode-icon-animated s-25",null,Z,ie),A=se(ue,1,"ref-block s-25",null,A,Oe),Ce=se(Ke,1,"pulse s-25",null,Ce,Be)},[()=>({mobile:r(),fullscreen:p(),invisible:n(z),"icon-small":n(U)}),()=>({hidden:n(z)}),()=>({paused:n(G)})]),$t("mouseleave",xe,ne),_(t,xe),H(),o()}st(["mousemove","click"]);function gp(t,e){F(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=Le();let p=v(()=>e.buttonComponent);var m=de(u);Bi(m,()=>n(p),(f,b)=>{b(f,ks(()=>{var y;return(y=e.buttonComponentProps)!=null?y:{}}))}),_(d,u)},$$slots:{default:!0}}),H()}var Ns={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var Jx=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 ua(t,e){F(e,!0);let i=g(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);transform-origin: 50%;":void 0),r=v(()=>`${bn(e.size)}${n(o)}`),a=v(()=>i()?"prev-icon":"next-icon");Je(t,{get width(){return"48"},get height(){return"48"},get style(){return n(r)},get testId(){return n(a)},get shadow(){return e.shadow},children:(l,d)=>{var s=Jx();_(l,s)},$$slots:{default:!0}}),H()}var ew=L('<div class="icon-background-mobile s-23"><!></div>'),tw={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 Za(t,e){F(e,!0),q(t,tw);let i=g(e,"ref",15,void 0),o=g(e,"isMobile",3,!1),r=g(e,"disabled",3,!1),l=ve().ui.t,d=v(()=>e.type==="prev"?l("tooltip_previous"):l("tooltip_next")),s=v(()=>e.type==="prev"?l("hotkey_map_item_prev_video_value"):l("hotkey_map_item_next_video_value")),u=v(()=>`btn-${o()?"m":"d"}--${e.type}`);Wt(t,{get className(){return n(u)},get testId(){var p;return`btn-${(p=e.type)!=null?p:""}`},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(p){i(p)},children:(p,m)=>{var f=Le(),b=de(f);{var y=S=>{var C=ew(),I=T(C);let R=v(()=>e.type==="prev");ua(I,{get size(){return"32"},get reversed(){return n(R)}}),w(C),_(S,C)},$=S=>{let C=v(()=>e.type==="prev");ua(S,{get size(){return"24"},get reversed(){return n(C)}})};V(b,S=>{o()?S(y):S($,!1)})}_(p,f)},$$slots:{default:!0}}),H()}var iw=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(t,e){F(e,!0);let i=v(()=>bn(e.size));Je(t,{get width(){return"48"},get height(){return"48"},get style(){return n(i)},testId:"replay-icon",get shadow(){return e.shadow},children:(o,r)=>{var a=iw();_(o,a)},$$slots:{default:!0}}),H()}var kb=require("@vkontakte/videoplayer-shared/es2015");var ow=L('<div class="icon-background-mobile s-27"></div>'),nw=L("<!> <div><!></div>",1),rw={hash:"s-27",code:".mobile.s-27{align-items:center;display:flex;justify-content:center;position:relative}.icon-background-mobile.s-27{background-color:var(--big-play-bg-color);border-radius:var(--big-play-radius);height:calc(100% - 32px);left:16px;position:absolute;top:16px;width:calc(100% - 32px)}"};function ad(t,e){F(e,!0),q(t,rw);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,kb.noop),d=Q("tooltip_restart"),s=v(()=>`${o()?"btn-m--play":""} ${a()}`);Wt(t,{get className(){return n(s)},testId:"btn-replay",get ariaLabel(){return d},get disabled(){return r()},get click(){return l()},get ariaKeyShortCut(){return _s.KeyK},get ref(){return i()},set ref(u){i(u)},children:(u,p)=>{var m=nw(),f=de(m);{var b=I=>{var R=ow();_(I,R)};V(f,I=>{o()&&I(b)})}var y=k(f,2);let $;var S=T(y);let C=v(()=>o()?"48":"24");Cc(S,{get size(){return n(C)}}),w(y),B(I=>$=se(y,1,"s-27",null,$,I),[()=>({mobile:o()})]),_(u,m)},$$slots:{default:!0}}),H()}var sw=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 Os(t,e){F(e,!0);let i=v(()=>bn(e.size));Je(t,{get width(){return"48"},get height(){return"48"},get fill(){return e.fill},get style(){return n(i)},testId:"pause-icon",get shadow(){return e.shadow},children:(o,r)=>{var a=sw();_(o,a)},$$slots:{default:!0}}),H()}var Lb=require("@vkontakte/videoplayer-shared/es2015");var aw=L('<div class="icon-background-mobile s-22"><!></div>'),lw={hash:"s-22",code:".icon-background-mobile.s-22{align-items:center;background-color:var(--big-play-bg-color);border-radius:var(--big-play-radius);display:flex;height:calc(100% - 32px);justify-content:space-around;left:16px;position:absolute;top:16px;width:calc(100% - 32px)}"};function ld(t,e){F(e,!0),q(t,lw);let[i,o]=Re(),r=()=>x(a,"$fakeIsPlaying$",i),{fakeIsPlaying$:a}=Co(),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),p=g(e,"className",3,""),m=g(e,"click",3,Lb.noop),b=ve().ui.t,{toggle:y}=a,$=v(()=>y),S=v(()=>r()!==null),C=v(()=>n(S)?r():s()),I=v(()=>n(C)?b("tooltip_pause"):b("tooltip_play")),R=v(()=>n(C)?Os:Rn),E=v(()=>`${d()?"btn-m--play":""} ${p()}`),P=v(()=>n(S)?n($):m());Wt(t,{get className(){return n(E)},testId:"btn-play",get click(){return n(P)},get disabled(){return u()},get ariaLabel(){return n(I)},get ariaKeyShortCut(){return _s.KeyK},get ref(){return l()},set ref(O){l(O)},children:(O,D)=>{var U=Le();let z=v(()=>n(R));var G=de(U);{var le=re=>{var X=aw(),we=T(X);Bi(we,()=>n(z),(ce,ne)=>{ne(ce,{get size(){return"48"}})}),w(X),_(re,X)},Y=re=>{var X=Le(),we=de(X);Bi(we,()=>n(z),(ce,ne)=>{ne(ce,{get size(){return"24"}})}),_(re,X)};V(G,re=>{d()?re(le):re(Y,!1)})}_(O,U)},$$slots:{default:!0}}),H(),o()}var dw=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 qm(t){Je(t,{testId:"play-prev-chapter-icon",children:(e,i)=>{var o=dw();_(e,o)},$$slots:{default:!0}})}function Ic(t,e){F(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=v(()=>o()?"hidden":"");Wt(t,{get className(){return n(l)},testId:"btn-play-prev-chapter",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)=>{qm(d,{})},$$slots:{default:!0}}),H()}var cw=L('<span class="gutter s-26"><span><!></span></span>'),uw={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 Ec(t,e){F(e,!0),q(t,uw);let[i,o]=Re(),r=()=>x(s,"$autoplayNextEnabled$",i),a=g(e,"ref",15,void 0),l=ve(),d=l.ui.t,s=l.ui.autoplayNextEnabled$,u=l.actions.internal.setAutoplayNextEnabled,p=()=>{u(!r(),!0)},m=d("aria_label_autoplay"),f="16",b="#000",y=v(()=>r()?"true":"false");Wt(t,{click:p,get ariaLabel(){return m},role:"switch",get areaChecked(){return n(y)},get ref(){return a()},set ref($){a($)},children:($,S)=>{var C=cw(),I=T(C);let R;var E=T(I);{var P=D=>{Rn(D,{get size(){return f},fill:b})},O=D=>{Os(D,{get size(){return f},fill:b})};V(E,D=>{r()?D(P):D(O,!1)})}w(I),w(C),B(D=>R=se(I,1,"toggler s-26",null,R,D),[()=>({enabled:r()})]),_($,C)},$$slots:{default:!0}}),H(),o()}var pw=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 Qm(t){Je(t,{testId:"seek-to-interactive-icon",children:(e,i)=>{var o=pw();vi(),_(e,o)},$$slots:{default:!0}})}function Pc(t,e){F(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=v(()=>o()?"hidden":"");Wt(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)=>{Qm(d,{})},$$slots:{default:!0}}),H()}var fw=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>'),mw=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 Gm(t,e){let i=g(e,"isOpened",3,!1),o=v(()=>i()?"graph-close-icon":"graph-open-icon");Je(t,{get testId(){return n(o)},children:(r,a)=>{var l=mw(),d=k(de(l));{var s=u=>{var p=fw();_(u,p)};V(d,u=>{i()&&u(s)})}_(r,l)},$$slots:{default:!0}})}function Ac(t,e){F(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=ve().ui.t,s=v(()=>a()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),u=v(()=>o()?"hidden":"");Wt(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(p){i(p)},children:(p,m)=>{let f=v(()=>!!a());Gm(p,{get isOpened(){return n(f)}})},$$slots:{default:!0}}),H()}var Ym=require("@vkontakte/videoplayer-core/es2015");function kc(t,e){F(e,!0);let[i,o]=Re(),r=()=>x(u,"$playbackState$",i),a=g(e,"isMobile",3,!1),l=g(e,"isLiveActive",3,!1),d=g(e,"ariaLabel",3,""),s=ve(),u=s.state.playbackState$,p=s.actions.internal.switchToActiveLive,m=s.actions.internal.togglePlay,f=v(()=>()=>{if(!l()){p();return}r()===Ym.PlaybackState.PAUSED&&m()}),b=v(()=>a()?"":"btn--live btn-full-opacity"),y=v(()=>l()?"btn-live":"btn-live-offset"),$=v(()=>l()&&r()===Ym.PlaybackState.PLAYING);Wt(t,{get className(){return n(b)},get testId(){return n(y)},get disabled(){return n($)},get ariaLabel(){return d()},get click(){return n(f)},children:(S,C)=>{nc(S,{get isActive(){return l()}})},$$slots:{default:!0}}),H(),o()}var jm=require("@vkontakte/videoplayer-shared/es2015");var vw=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),gw=L('<img class="icon" aria-hidden="true"/>');function Ja(t,e){"use strict";let i=K(!1),o=()=>{N(i,!0)};var r=Le(),a=de(r);{var l=s=>{var u=vw();_(s,u)},d=s=>{var u=gw();B(()=>Ue(u,"src",e.icon)),$t("error",u,o),La(u),_(s,u)};V(a,s=>{n(i)?s(l):s(d,!1)})}_(t,r)}function Xm(t,e){F(e,!0);let i=g(e,"disabled",3,!1),o=g(e,"onClick",3,jm.noop),r=g(e,"ref",15),a=v(()=>o()===jm.noop),l=v(()=>n(a)||i()),d=v(()=>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 p=v(()=>{var m;return(m=e.testId)!=null?m: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(p)},children:(m,f)=>{Ja(m,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),H()}var Mb=t=>!!t.buttonComponent;var Ds={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var hp=(t,e,i,o)=>{if(t)for(let[r,a]of Object.entries(e))a.set(jn(t,i,r,o))};var _p=require("@vkontakte/videoplayer-shared/es2015"),Vb=10,Rb=40,Zm=.2,_w=.5,bw=65,$w=114,yw=4,Nb=({onPreviewTrackOpened:t,getTimelineRef:e,isHorizontal:i})=>{let o=v(()=>i?bw:$w),r=K(!1),a=K(0),l=K(0),d=v(()=>n(o)+Vb-Rb-yw),s=v(()=>(0,_p.interpolate)(n(a),[Zm,1],[0,-n(d)])),u=v(()=>(0,_p.interpolate)(n(a),[Zm,1],[0,Rb])),p=v(()=>(0,_p.interpolate)(n(a),[Zm,1],[0,n(o)+Vb]));return{progressBarY:()=>n(s),controlsY:()=>n(u),calculatedHeight:()=>n(p),onPointerDown:$=>{var S;N(l,((S=e())==null?void 0:S.getBoundingClientRect().bottom)||0,!0),N(r,!0)},onPointerMove:$=>{if(!n(r))return;let S=Math.max(Math.min($.clientY-n(l),0),-n(d));N(a,Math.abs(S/n(d)),!0)},onPointerUp:()=>{N(r,!1),N(a,n(a)>=_w?1:0,!0),n(a)===1&&t()},closePreviewTrack:()=>{N(a,0)}}};var xw=t=>t;function ys(t,{delay:e=0,duration:i=400,easing:o=xw}={}){let r=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:a=>`opacity: ${a*r}`}}var ww=L('<span class="root s-2d"> </span>'),Sw={hash:"s-2d",code:".root.s-2d{box-shadow:0 8px 24px 0 rgba(0,0,0,.08);box-shadow:0 0 2px 0 rgba(0,0,0,.08);color:#fff;font-size:13px;font-weight:500;line-height:16px}"};function Jm(t,e){q(t,Sw);var i=ww(),o=T(i,!0);w(i),B(()=>pe(o,e.time)),_(t,i)}var Tw=L('<div class="tooltip-wrapper s-i"><div><!></div></div>'),Cw={hash:"s-i",code:'.tooltip-wrapper.s-i{display:block;position:relative}.tooltip.s-i{bottom:100%;opacity:0;position:absolute;transform:translateX(-50%);transition:opacity .2s;visibility:hidden}.pointer.s-i: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-i{opacity:1;visibility:visible}'};function ev(t,e){q(t,Cw);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 p(S){if(!n(u))return 0;let{width:C}=n(u).getBoundingClientRect(),I=C/2;return S<I?I+l():S>e.containerWidth-I?e.containerWidth-I-d():S}let m=v(()=>p(r()));var f=Tw(),b=T(f);let y;var $=T(b);ai($,()=>{var S;return(S=e.children)!=null?S:bt}),w(b),nt(b,S=>N(u,S),()=>n(u)),w(f),nt(f,S=>N(s,S),()=>n(s)),B(S=>{Ge(f,`transform: translate(${n(m)}px, ${a()}px);`),y=se(b,1,"tooltip s-i",null,y,S),Ge(b,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),_(t,f)}var Ob=t=>Math.abs(t)/90%4===1;var Iw=L('<div class="preview s-j"></div>'),Ew=L('<div class="time s-j"> </div>'),Pw=L('<div><!> <div class="episode s-j"><!></div> <!></div>'),Aw={hash:"s-j",code:".timeline-preview.s-j{border-radius:2px;bottom:18px;pointer-events:none}.timeline-preview.mobile.s-j{bottom:72px}.preview.s-j{background-color:var(--timeline-preview-bg);border:1px solid var(--white);border-radius:8px;box-shadow:0 0 2px var(--timeline-preview-shadow),0 8px 24px var(--timeline-preview-shadow)}.episode.s-j{margin-bottom:4px;margin-top:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.episode.s-j,.time.s-j{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-j{color:var(--white)}"};function tv(t,e){F(e,!0),q(t,Aw);let[i,o]=Re(),r=()=>x(y,"$rotateAlpha",i),a=()=>x($,"$playerSize",i),l={MOBILE:150,DESKTOP:278},d=g(e,"time",3,""),s=g(e,"isMobile",3,!1),u=g(e,"videoEpisodes",19,()=>[]),p=g(e,"progress",3,0),m=g(e,"duration",3,0),f=g(e,"isInteractive",3,!1),b=ve(),y=b.ui.rotateAlpha,$=b.ui.playerSize,S=K(0),C=K(0),I=K(""),R=K(0),E=K(0),P=K(0),O=K(0),D=v(()=>lp(p(),m(),u())),U=v(()=>nd(r())),z=v(()=>Ob(r())),G=v(re),le=v(()=>(n(z)?1:-1)*(n(S)/2-n(C)/2)),Y=v(()=>n(le)*-1);De(()=>{(j=>{N(S,j.width,!0),N(C,j.height,!0)})(we())}),De(()=>{(j=>{N(I,j.imgSrc,!0),N(R,j.imgWidth,!0),N(E,j.imgHeight,!0),N(P,j.imgOffsetX,!0),N(O,j.imgOffsetY,!0)})(ce(p()))});function re(){var Be;let j=s()?l.MOBILE:l.DESKTOP,{isVertical:ie}=X(),Oe=30;return(Be=n(D))!=null&&Be.text&&(Oe+=16),(ie||n(U))&&(Oe+=18,Oe+=50),Math.min(Math.max(a().height-Oe,0),j)}function X(){let j=e.previewThumbsData.frameWidth,ie=e.previewThumbsData.frameHeight,Oe=ie>j;return{width:j,height:ie,isHorizontal:!Oe,isVertical:Oe}}function we(){let{height:j,isHorizontal:ie,isVertical:Oe,width:Be}=X();return ie&&(j=j/Be*n(G),Be=n(G)),Oe&&(Be=Be/j*n(G),j=n(G)),{width:Be,height:j}}function ce(j){let ie;e.previewThumbsData.isUV?ie=Math.floor(m()*j/e.previewThumbsData.frequency):ie=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*j)));let Oe=Math.floor(ie/e.previewThumbsData.countPerImage),Be=Math.floor(ie%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),fe=ie%e.previewThumbsData.countPerRow,ee=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&Oe===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 Se=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&Oe===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(Se=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Fe=n(S)*Se,qe=n(C)*ee,je=-fe*n(S),Te=-Be*n(C);return{imgSrc:e.previewThumbsData.links[Oe],imgWidth:Fe,imgHeight:qe,imgOffsetX:je,imgOffsetY:Te}}var ne=Pw();let he;var xe=T(ne);{var Z=j=>{var ie=Iw();B(()=>Ge(ie,`width: ${n(S)}px; height: ${n(C)}px; background-image: url(${n(I)}); background-size: ${n(R)}px ${n(E)}px; background-position: ${n(P)}px ${n(O)}px;
|
|
61
|
+
transform: rotate(${r()}deg) ${n(U)?`translate(${n(le)}px, ${n(Y)}px)`:""};
|
|
62
|
+
`)),_(j,ie)};V(xe,j=>{n(I)&&j(Z)})}var Ne=k(xe,2),ue=T(Ne);{var A=j=>{var ie=Le(),Oe=de(ie);{var Be=ee=>{var Se=hs();B(Fe=>pe(Se,Fe),[()=>Q("tooltip_episode_unfinished")]),_(ee,Se)},fe=ee=>{var Se=hs();B(()=>pe(Se,n(D).text||"")),_(ee,Se)};V(Oe,ee=>{f()&&n(D).completed===!1?ee(Be):ee(fe,!1)})}_(j,ie)};V(ue,j=>{n(D)&&j(A)})}w(Ne);var Ke=k(Ne,2);{var Ce=j=>{var ie=Ew(),Oe=T(ie,!0);w(ie),B(()=>pe(Oe,d())),_(j,ie)};V(Ke,j=>{f()||j(Ce)})}w(ne),B(j=>{he=se(ne,1,"timeline-preview s-j",null,he,j),Ge(ne,`width: ${n(U)?n(C):n(S)}px;`)},[()=>({mobile:s()})]),_(t,ne),H(),o()}var kw=L('<span class="time s-g"> </span>'),Lw=L("<!> <!>",1),Mw={hash:"s-g",code:".time.s-g{background-color:rgba(41,41,41,.8);border-radius:3px;color:var(--white);display:inline-block;padding:6px 10px}.timeline-slider{--slider-bg:var(--timeline-slider-bg);--slider-filled-bg:var(--timeline-slider-filled-bg);--slider-handle-bg:var(--timeline-slider-handle-bg);--slider-loaded-bg:var(--timeline-slider-loaded-bg)}"};function iv(t,e){var Pe,Pt,Ve,at,gt;F(e,!0),q(t,Mw);let[i,o]=Re(),r=()=>x(Y,"$interactiveEpisodes$",i),a=()=>x(O,"$duration$",i),l=()=>x(P,"$position$",i),d=()=>x(we,"$isInteractiveExpectation$",i),s=()=>x(X,"$isInteractiveTime$",i),u=()=>x(xe,"$previewTrackActive",i),p=()=>x(D,"$isLive$",i),m=()=>x(he,"$disabledControls$",i),f=()=>x(z,"$isMobile",i),b=()=>x(U,"$isActiveLive$",i),y=()=>x(E,"$bufferedProgress$",i),$=g(e,"showTimeline",3,!1),S=g(e,"withEpisodes",3,!0),C=g(e,"ref",15,void 0),I=ve(),R=Rt(),E=I.state.bufferedProgress$,P=I.state.positionWithScrubbing$,O=I.state.duration$,D=I.state.isLive$,U=I.state.isActiveLive$,z=I.ui.isMobile,G=R.features.episodes&&S()?I.actions.internal.getVideoEpisodes():void 0,le=I.actions.internal.getPreviewThumbsData(),Y=I.state.interactiveEpisodes$,re=I.state.isInteractive,X=I.state.isInteractiveTime$,we=I.state.isInteractiveExpectation$,ce=I.actions.internal.correctSeekTimeToInteractive,ne=(Pe=I.callbacks)==null?void 0:Pe.onDisabledTimelineClick,he=I.ui.controls.disabledControls$,xe=I.ui.previewTrackActive,Z=(Ve=(Pt=I.callbacks)==null?void 0:Pt.uiInfo)==null?void 0:Ve.onTimelineMouseEnter,Ne=(gt=(at=I.callbacks)==null?void 0:at.uiInfo)==null?void 0:gt.onTimelineMouseLeave,ue=I.ui.t,A=R.features.interactiveResponsiveUi,Ke=v(()=>re?r():G),Ce=v(()=>on(a())),j=v(()=>on(l())),ie=v(()=>l()/a()),Oe=v(()=>d()||s()),Be=K(!1),fe=K(""),ee=K(0),Se=K(0),Fe=K(0),qe=v(()=>({containerWidth:n(Se),translateXPx:n(ee),translateYPx:re&&le?-36:-16,active:n(Be)&&$()&&!n(Oe)&&!A&&!u(),pointer:!R.features.timelinePreview||!le||p()})),je=ue("aria_timeline"),Te=v(()=>ue("aria_timeline_value",{position:n(j),duration:n(Ce)}));function Me(be){return!ce||!re?be:ce(be*a())/a()}function ze(be,et){var We;(We=e.onSliderPointerDown)==null||We.call(e,et),I.actions.internal.startScrubbing(Me(be))}function Nt(be){s()||I.actions.internal.progressScrubbing(Me(be))}function tt(be){var et;I.actions.internal.completeScrubbing(Me(be)),N(Be,!1),(et=e.onSliderPointerUp)==null||et.call(e)}function Bt(be,et,We){var rt;(rt=e.onSliderPointerEnter)==null||rt.call(e,be),ti(be,et,We),N(Be,!0)}function Gt(be,et,We,rt){var ii;(ii=e.onSliderMove)==null||ii.call(e,rt,be),ti(be,et,We),N(Be,!0)}function Ct(){var be;N(Be,!1),(be=e.onSliderLeave)==null||be.call(e)}function ti(be,et,We){N(Fe,Me(be),!0),N(ee,et,!0),We&&N(Se,We,!0),N(fe,Ft(be),!0)}function Ft(be){let et=on((p()?1-be:be)*a());return p()?`-${et}`:et}let $e=v(()=>m().has("TIMELINE"));var _e=Lw(),J=de(_e);ev(J,ks(()=>n(qe),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(be,et)=>{var We=Le(),rt=de(We);{var ii=gi=>{tv(gi,{get time(){return n(fe)},get isMobile(){return f()},get videoEpisodes(){return n(Ke)},get previewThumbsData(){return le},get progress(){return n(Fe)},get duration(){return a()},get isInteractive(){return re}})},li=gi=>{var yi=kw(),ro=T(yi,!0);w(yi),B(()=>pe(ro,n(fe))),_(gi,yi)};V(rt,gi=>{R.features.timelinePreview&&le&&!p()?gi(ii):gi(li,!1)})}_(be,We)},$$slots:{default:!0}}));var ye=k(J,2);ja(ye,{className:"timeline-slider",get isActiveLive(){return b()},get isMobile(){return f()},get ariaLabel(){return je},ariaValueMin:0,get ariaValueMax(){return a()},get ariaValueNow(){return l()},get ariaValueText(){return n(Te)},get loadedProgress(){return y()},get filledProgress(){return n(ie)},get handleProgress(){return n(ie)},get videoEpisodes(){return n(Ke)},onPointerDown:ze,onHandleMove:Nt,onPointerMove:Gt,onPointerUp:tt,onPointerEnter:Bt,onPointerLeave:Ct,get onMouseEnter(){return Z},get onMouseLeave(){return Ne},get onDisabledClick(){return ne},get isInteractive(){return re},get disabled(){return n($e)},get handleAlwaysVisible(){return u()},get hideHandel(){return s()},testId:"progress_bar",onContextMenu:tt,get ref(){return C()},set ref(be){C(be)}}),_(t,_e),H(),o()}var Vw={hash:"s-f",code:".timeline-ads-slider{--slider-bg:var(--timeline-slider-bg);--slider-filled-bg:var(--timeline-slider-filled-bg);--slider-handle-bg:var(--timeline-slider-handle-bg);--slider-loaded-bg:var(--timeline-slider-loaded-bg)}"};function Lc(t,e){F(e,!0),q(t,Vw);let[i,o]=Re(),r=()=>x(s,"$isMobile",i),a=g(e,"position",3,0),l=g(e,"duration",3,0),d=ve(),s=d.ui.isMobile,u=d.ui.t,p=v(()=>on(l())),m=v(()=>on(a())),f=v(()=>a()/l()),b=v(()=>u("aria_timeline_value",{position:n(m),duration:n(p)})),y=v(()=>Math.round(n(f)*100));ja(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(f)},hideHandel:!0,get squareBorders(){return r()}}),H(),o()}var Rw=L("<div><!></div>"),Nw=L("<div></div>"),Ow={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 el(t,e){F(e,!0),q(t,Ow);let[i,o]=Re(),r=()=>x(S,"$isLive$",i),a=()=>x(R,"$isMobile",i),l=()=>x(E,"$disabled",i),d=()=>x(I,"$adPosition",i),s=()=>x(C,"$adDuration",i),u=g(e,"isAds",3,!1),p=g(e,"isHidden",3,!1),m=g(e,"timelineNotAvailable",3,!1),f=g(e,"needPadding",3,!0),b=g(e,"ref",15,void 0),y=ve(),$=Rt(),S=y.state.isLive$,C=y.ads.duration,I=y.ads.position,R=y.ui.isMobile,E=ae(!1),P=v(()=>!m()&&(!r()||r()&&e.canRewindLive&&e.isRewindableLive||u()));var O=Le(),D=de(O);{var U=G=>{var le=Rw();let Y;var re=T(le);{var X=ce=>{Lc(ce,{get position(){return d()},get duration(){return s()}})},we=ce=>{iv(ce,{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(ne){b(ne)}})};V(re,ce=>{u()?ce(X):ce(we,!1)})}w(le),As(le,()=>Yl(p()&&$.features.usePerformanceFix,E,$.disableInvisibleComponentsTimeout)),B(ce=>Y=se(le,1,"timeline s-d",null,Y,ce),[()=>({withoutPadding:!f(),mobile:a(),"out-of-flow":l()})]),_(G,le)},z=G=>{var le=Nw();let Y;B(re=>Y=se(le,1,"timeline-stub s-d",null,Y,re),[()=>({mobile:a()})]),_(G,le)};V(D,G=>{n(P)?G(U):G(z,!1)})}_(t,O),H(),o()}var Db=require("@vkontakte/videoplayer-shared/es2015");var Dw=(t,e,i,o,r,a,l)=>{N(e,!0),N(i,t.clientX,!0),N(o,n(r),!0),a(l())},Bw=L("<div></div>"),Fw=L('<div><div class="track s-2b"></div></div>'),Hw={hash:"s-2b",code:'.root.s-2b{display:flex;height:var(--preview-track-frame-height-horizontal);overflow:hidden;position:relative;width:100%}.root.is-vertical-video.s-2b,.root.vertically-rotated.s-2b{height:var(--preview-track-frame-height-vertical)}.root.s-2b:after{background-color:#fff;box-shadow:0 2px 2px 0 rgba(0,0,0,.12);box-shadow:0 0 2px 0 rgba(0,0,0,.06);content:"";height:100%;margin:0 auto;pointer-events:none;width:3px;z-index:1}.track.s-2b{bottom:0;display:flex;left:0;padding:0 50%;top:0}.frame.s-2b,.track.s-2b{position:absolute}.frame.s-2b{background-position-x:calc(var(--column-index)*-1*var(--frame-width));background-position-y:calc(var(--frame-height)*-1*var(--row-index));background-size:calc(var(--frame-width)*var(--column-numbers)) calc(var(--frame-height)*var(--row-numbers));flex-shrink:0;height:var(--frame-height);pointer-events:none;transform-origin:center;width:var(--frame-width)}.vertically-rotated.s-2b .frame:where(.s-2b){transform-origin:0 0}.rotate-1.s-2b{transform:rotate(-90deg) translateX(-100%)}.rotate-2.s-2b{transform:rotate(-180deg)}.rotate-3.s-2b{transform:rotate(-270deg) translateY(-100%)}'};function nv(t,e){F(e,!0),q(t,Hw);let[i,o]=Re(),r=()=>x(R,"$rotateAlpha",i),a=()=>x($,"$position$",i),l=()=>x(y,"$duration$",i),d=ve(),{countPerImage:s=0,countPerRow:u=0,countTotal:p=0,links:m=[],frameHeight:f=0,frameWidth:b=0}=d.actions.internal.getPreviewThumbsData()||{},{duration$:y,positionWithScrubbing$:$}=d.state,{startScrubbing:S,progressScrubbing:C,completeScrubbing:I}=d.actions.internal,R=d.ui.rotateAlpha,E=K(void 0),P=K(!1),O=K(0),D=K(0),U=K(0),z=K(0),G=v(()=>f<=b),le=v(()=>nd(r())),Y=v(()=>n(G)?!n(le):n(le)),re=114,X=65,we=3,ce=v(()=>n(Y)?re:X),ne=v(()=>n(G)?re:X),he=v(()=>n(G)?"var(--preview-track-frame-height-horizontal)":"var(--preview-track-frame-height-vertical)"),xe=v(()=>p*n(ce)),Z=K(0);De(()=>{N(z,Math.ceil(-n(U)/n(ce))-1),N(U,-n(xe)*a()/l())});let Ne=()=>{I(ue(),!0)},ue=()=>l()*-n(U)/n(xe)/l(),A=!1,Ke=Te=>{if(!n(P))return!1;let Me=Te.clientX-n(O);N(U,n(D)+Me),N(U,Math.max(Math.min(n(U),0),-n(xe)),!0),Math.abs(Me)>1&&(A=!0),C(ue())},Ce=Te=>{n(P)&&(N(P,!1),!A&&Te&&N(U,-(Te.offsetX-n(Z)/2)),A=!1,Ne())},j=()=>{n(P)&&Ce()},ie=v(()=>s/u),Oe=(Te,Me)=>{if(Te!==m.length-1)return u;let ze=0,Nt=Me*u;for(let tt=1;tt<=u;tt++)Te*s+ze+Nt<p&&ze++;return ze},Be=v(()=>Math.floor(n(z)/s)),fe=v(()=>(0,Db.getRangeAroundIndex)(3,n(Be),m.length-1)),ee=(Te,Me,ze)=>{let Nt=s*n(ce);return Te*Nt+Me*n(ce)*u+n(Z)/2-we/2+ze*n(ce)},Se=v(()=>[`--row-numbers: ${n(ie)}`,`--column-numbers: ${u}`,`--frame-width: ${n(ne)}px`,`--frame-height: ${n(he)}`].join(";"));var Fe=Fw();let qe;var je=T(Fe);je.__pointerdown=[Dw,P,O,D,U,S,ue],je.__pointermove=Ke,je.__pointerup=Ce,Ti(je,20,()=>n(fe),Te=>Te,(Te,Me)=>{var ze=Le(),Nt=de(ze);Ti(Nt,16,()=>Array.from({length:n(ie)},(tt,Bt)=>Bt),tt=>tt,(tt,Bt)=>{var Gt=Le(),Ct=de(Gt);Ti(Ct,16,()=>Array.from({length:Oe(Me,Bt)},(ti,Ft)=>Ft),ti=>ti,(ti,Ft)=>{var $e=Bw();B((_e,J)=>{Ge($e,_e),se($e,1,J,"s-2b")},[()=>`--row-index: ${Bt}; --column-index: ${Ft}; left: ${ee(Me,Bt,Ft)}px; background-image: url(${m[Me]});`,()=>`frame rotate-${Math.abs(r())/90%4}`]),_(ti,$e)}),_(tt,Gt)}),_(Te,ze)}),w(je),w(Fe),nt(Fe,Te=>N(E,Te),()=>n(E)),B(Te=>{qe=se(Fe,1,"root s-2b",null,qe,Te),Ge(Fe,n(Se)),Ge(je,`transform: translateX(${n(U)}px); width: ${n(xe)}px;`)},[()=>({"is-vertical-video":!n(G),"vertically-rotated":n(le)})]),$t("mouseleave",je,j),Mn(Fe,"clientWidth",Te=>N(Z,Te)),_(t,Fe),H(),o()}st(["pointerdown","pointermove","pointerup"]);var Uw=L('<div class="notification s-2c"><span class="description s-2c"> </span></div>'),zw={hash:"s-2c",code:".notification.s-2c{background:var(--notification-bg);border-radius:var(--notification-radius);padding:9px 14px 10px 12px}.description.s-2c{font-size:14px;line-height:18px}"};function rv(t,e){F(e,!1),q(t,zw);let i=340,{ui:{t:o}}=ve();To();var r=Uw(),a=T(r),l=T(a,!0);w(a),w(r),B(d=>pe(l,d),[()=>o("preview_track_close_tooltip")],En),Jr(3,r,()=>ys,()=>({duration:i})),_(t,r),H()}var Bb=require("@vkontakte/videoplayer-shared/es2015"),Ww=L('<div class="preview-track-close tooltip s-29"><!></div>'),Kw=L('<div class="preview-track-control s-29"><!> <div class="preview-track-close s-29"><!></div> <!></div>'),qw=L('<div class="wrapper-preview-track s-29"><!></div>'),Qw=L('<div class="enriched-timeline s-29"><!> <!> <!></div>'),Gw={hash:"s-29",code:".enriched-timeline.s-29{padding:var(--timeline-padding-vertical-top) var(--timeline-padding-horizontal) var(--timeline-padding-vertical-bottom);pointer-events:auto;position:relative}.preview-track-control.s-29{align-items:center;display:flex;justify-content:center;left:0;padding:0 calc(var(--timeline-padding-horizontal));pointer-events:none;position:absolute;right:0;top:calc((var(--timeline-height) + var(--preview-track-controls-top))*-1)}.preview-track-close.s-29{pointer-events:auto;position:absolute;right:calc(var(--timeline-padding-horizontal))}.preview-track-close.tooltip.s-29{bottom:32px;opacity:0;transition:opacity .2s}.preview-track-close.s-29:hover+.tooltip:where(.s-29){opacity:1}.wrapper-preview-track.s-29{box-sizing:border-box;left:0;overflow:hidden;padding:0 calc(var(--timeline-padding-horizontal));position:absolute;right:0;z-index:-1}"};function sv(t,e){F(e,!0),q(t,Gw);let[i,o]=Re(),r=()=>x($,"$playerSize",i),a=()=>x(y,"$duration$",i),l=()=>x(S,"$previewTrackActive",i),d=()=>x(f,"$position$",i),s=()=>x(b,"$isRewindableLive$",i),u=g(e,"timelineRef",15,void 0),p=ve(),m=200,{positionWithScrubbing$:f,isRewindableLive$:b,duration$:y}=p.state,{playerSize:$,previewTrackActive:S}=p.ui,{countPerImage:C=0,links:I=[],frequency:R=0}=p.actions.internal.getPreviewThumbsData()||{},E=v(()=>r().width>100),P=K(!W_()),O=()=>{n(P)&&(z_(),N(P,!1))},D=ce=>{let ne=Math.floor(a()*ce/R),he=Math.floor(ne/C),xe=(0,Bb.getRangeAroundIndex)(3,he,I.length-1);for(let Z of xe){let Ne=new Image;Ne.src=I[Z]}},U=(ce,ne)=>{D(ne),!l()&&e.onTimelineMove(ce)};var z=Qw(),G=T(z);{var le=ce=>{var ne=Kw(),he=T(ne);let xe=v(()=>on(d()));Jm(he,{get time(){return n(xe)}});var Z=k(he,2),Ne=T(Z);Ms(Ne,{onClick:()=>p.actions.internal.closePreviewTrack()}),w(Z);var ue=k(Z,2);{var A=Ke=>{var Ce=Ww(),j=T(Ce);rv(j,{}),w(Ce),_(Ke,Ce)};V(ue,Ke=>{n(P)&&Ke(A)})}w(ne),$t("mouseleave",Z,O),Jr(3,ne,()=>ys,()=>({duration:m})),_(ce,ne)};V(G,ce=>{l()&&ce(le)})}var Y=k(G,2);let re=v(()=>!n(E));el(Y,{get isHidden(){return n(re)},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:D,get ref(){return u()},set ref(ce){u(ce)}});var X=k(Y,2);{var we=ce=>{var ne=qw(),he=T(ne);nv(he,{}),w(ne),B(()=>Ge(ne,`height: ${e.animatedPreviewTrackHeight}px;`)),_(ce,ne)};V(X,ce=>{e.previewTrackAvailable&&ce(we)})}w(z),B(()=>Ge(z,`transform: translateY(${e.animatedOffsetY}px);`)),_(t,z),H(),o()}var jw=L('<div><!> <div class="controls s-1e" data-testid="player_controls"><div class="controls-left s-1e"><!> <!> <!></div> <div class="controls-right s-1e"></div></div></div> <!>',1),Xw={hash:"s-1e",code:'.wrapper-bottom.s-1e{bottom:0;box-sizing:border-box;display:flex;flex-direction:column;justify-content:flex-end;left:0;pointer-events:none;position:absolute;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);width:100%;will-change:transform;z-index:var(--controls-container-z-index)}.wrapper-bottom.s-1e:before{background:var(--controls-gradient);content:"";height:var(--controls-gradient-height);position:absolute;width:100%}.wrapper-bottom.s-1e>:where(.s-1e){pointer-events:auto}.controls.s-1e{align-items:center;box-sizing:border-box;display:flex;font-size:13px;height:var(--controls-height);justify-content:space-between;padding:0 var(--controls-desktop-padding-horizontal) 4px;white-space:nowrap;width:100%}.controls-left.s-1e,.controls-right.s-1e{align-content:center;display:flex}.controls-left.s-1e{flex-grow:1;min-width:0;overflow:hidden}.controls-left.s-1e >:not(:first-child),.controls-right.s-1e >*{margin-left:var(--controls-desktop-item-margin-left)}.controls-hidden.s-1e{transform:translateY(100%);visibility:visible}.wrapper-bottom.no-smooth.s-1e{transition:none}'};function lv(t,e){var ha,_l;F(e,!0),q(t,Xw);let[i,o]=Re(),r=()=>x(nn,"$disabledControls$",i),a=()=>x(ct,"$adPlaybackState",i),l=()=>x(li,"$playbackState$",i),d=()=>x(so,"$currentSubtitle$",i),s=()=>x(ro,"$isEnded$",i),u=()=>x(rn,"$currentGridType$",i),p=()=>x($o,"$isLive$",i),m=()=>x(Xe,"$chromecastState$",i),f=()=>x(Ai,"$isPictureInPictureActive",i),b=()=>x(Zt,"$pictureInPictureType$",i),y=()=>x(Si,"$availableSubtitlesList$",i),$=()=>x(Ht,"$contextMenuOpenedByKeyboard$",i),S=()=>x(At,"$showContextMenuBtn$",i),C=()=>x(pt,"$isRewindableLive$",i),I=()=>x(pi,"$isActiveLive$",i),R=()=>x(rs,"$graphIsOpened$",i),E=()=>x(yn,"$contextMenuVisible$",i),P=()=>x(Mi,"$isFullscreen",i),O=()=>x(yo,"$autoplayNextEnabled",i),D=()=>x(n(Ji),"$prevButton",i),U=()=>x(n(Ki),"$replayButton",i),z=()=>x(n(Sn),"$playButton",i),G=()=>x(n(wo),"$nextButton",i),le=()=>x(n(Un),"$playPrevChapterButton",i),Y=()=>x(n(mi),"$seekToInteractiveButton",i),re=()=>x(n(Wr),"$interactiveGraphButton",i),X=()=>x(n(Tn),"$liveButton",i),we=()=>x(n(Ho),"$time",i),ce=()=>x(n(xr),"$episodes",i),ne=()=>x(n(sr),"$vkLogo",i),he=()=>x(n(wr),"$volume",i),xe=()=>x(n(Cn),"$subtitles",i),Z=()=>x(n(un),"$settings",i),Ne=()=>x(n(Kr),"$context",i),ue=()=>x(n(pn),"$fullscreen",i),A=()=>x(n(as),"$chromecast",i),Ke=()=>x(Ro,"$additionalDesktopControlPanelRightButtons$",i),Ce=()=>x(Vi,"$playerSize",i),j=()=>x(sn,"$isInteractiveTime$",i),ie=()=>x(fi,"$previewTrackActive",i),Oe=()=>x(Tt,"$settingsMenuVisible",i),Be=()=>x(fo,"$settingButtonRef$",i),fe=()=>x(W,"$startedByKeyboard$",i),ee=()=>x(gi,"$isAudioAvailable$",i),Se=()=>x(_e,"$fakeIsPlaying$",i),Fe=()=>x(ns,"$seekToInteractiveDisabledTooltip$",i),qe=()=>x(mt,"$isPreviewTrackHorizontallyAligned$",i),je=()=>x(me,"$previewTrackAvailable",i),Te=()=>x(Qo,"$previewTrackDragInProgress",i),Me=()=>x(jt,"$adPosition",i),ze=()=>x(ii,"$position$",i),Nt=()=>x(It,"$adDuration",i),tt=()=>x(rt,"$duration$",i),Bt=g(e,"playerControlsWrapperRef",15,void 0),Gt=g(e,"playerControlsRef",15,void 0),Ct=g(e,"isAds",3,!1),ti=g(e,"logoTargetUrl",3,""),Ft=g(e,"isOneVideoPlaylist",3,!1),$e=g(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:_e}=Co(),J=ve(),ye=Co(),Pe=Rt(),Pt=J.actions.internal.toggleMuted,Ve=J.actions.internal.togglePlay,at=J.actions.internal.pause,gt=J.actions.internal.toggleSubtitle,be=J.actions.internal.checkFullscreenSupport,et=(ha=J.callbacks)==null?void 0:ha.onAudioDoesNotExistHint,We=(_l=J.callbacks)==null?void 0:_l.onAudioDisabledHint,rt=J.state.duration$,ii=J.state.positionWithScrubbing$,li=J.state.playbackState$,gi=J.state.isAudioAvailable$,yi=J.state.isAudioDisabled,ro=J.state.isEnded$,$o=J.state.isLive$,pi=J.state.isActiveLive$,pt=J.state.isRewindableLive$,{isActive$:Ai,type$:Zt}=ye.pictureInPicture$,Tt=J.ui.settingsMenu.visible$,ri=J.ui.settingsMenu.openedByBtnKeyboard$,Jt=J.ui.controls,yt=J.actions.internal.getVideoEpisodes(),Xe=J.state.chromecastState$,Si=J.state.availableSubtitlesList$,so=J.state.currentSubtitle$,nn=Jt.disabledControls$,yn=J.ui.contextMenu.visible$,At=J.ui.contextMenu.showContextMenuBtn$,Ht=J.ui.contextMenu.openedByBtnKeyboard$,W=J.ui.startedByKeyboard$,Mt=J.ui.controlBlocks,di=J.ui.previewTrackNotificationVisible,dt=J.ui.t,It=J.ads.duration,jt=J.ads.position,ct=J.ads.playbackState,Mi=J.ui.isFullscreen,Vi=J.ui.playerSize,rn=J.ui.currentGridType$,Ro=J.ui.additionalDesktopControlPanelRightButtons$,yo=J.ui.autoplayNextEnabled$,Ui=J.actions.internal.getVideoElement,gr=J.actions.internal.replayInteractive,ao=J.actions.internal.prevVideoClick,xo=J.actions.internal.nextVideoClick,zi=J.state.isInteractive,sn=J.state.isInteractiveTime$,an=J.state.showInteractiveGraph,Zn=J.state.showSeekToInteractive,hr=J.state.showPlayPrevChapter,Nr=J.state.showInteractiveTimeIndicator,xs=J.state.playPrevChapterDisabledTooltip,ns=ye.seekToInteractiveDisabledTooltip$,rs=ye.graphIsOpened$,Jn=Pe.features.interactiveResponsiveUi,ln=v(()=>r().has("EPISODE_BUTTON")),No=v(()=>r().has("GRAPH_BUTTON")),dn=v(()=>r().has("SEEK_TO_INTERACTIVE_BUTTON")),er=v(()=>r().has("PLAY_BUTTON")),Dn=v(()=>r().has("REPLAY_BUTTON")),Or=v(()=>r().has("PLAY_PREV_CHAPTER_BUTTON")),Dr=()=>J.actions.internal.toggleChromecast(),ss=v(()=>Ct()?a()==="playing":l()===tl.PlaybackState.PLAYING),_r=v(()=>d().value!=="off"),lo=v(()=>s()&&!Ct()||zi),br=v(()=>Jn?n(lo)&&io(u(),"m"):n(lo)),tr=v(()=>!s()||zi||Ct()),xn=v(()=>io(u(),"m")),co=v(()=>e.showNextPrevButtons&&io(u(),"m")&&!Ct()&&e.nextButtonActive),Br=v(()=>e.showNextPrevButtons&&io(u(),"m")&&!Ct()&&e.prevButtonActive),Bn=v(()=>!Ct()&&!!p()),ht=v(()=>m()!==tl.ChromecastState.NOT_AVAILABLE&&!(f()&&b()===1)&&io(u(),"m")&&!zi),oi=v(()=>e.showAutoplayNext&&!Ft()&&io(u(),"s")),ir=v(()=>y().length>0&&io(u(),"m")),$r=v(()=>$()||S()),Fr=v(()=>io(u(),"s")&&!Ct()),wn=v(()=>!e.logoHidden&&!Ct()),yr=v(()=>Pe.features.fullscreen&&be()&&(e.logoHidden||io(u(),Jn?"xs":"s"))&&!(f()&&b()===1)&&(zi?$e():!0)),Oo=v(()=>(!p()||Ct())&&!(Pe.features.interactiveHideTime&&zi)),cn=v(()=>an&&io(u(),"m")),Do=v(()=>Jn?Zn&&io(u(),"s"):Zn),or=v(()=>Jn?hr&&io(u(),"s"):hr),Wi=v(()=>!Ct()&&!p()&&!!(yt!=null&&yt.length)&&n(xn)&&!n(ln)),Bo=v(()=>!C()||!!I()),nr=v(()=>R()?dt("tooltip_interactive_graph_on"):dt("tooltip_interactive_graph_off")),Hr=v(()=>E()?dt("tooltip_context_menu_close"):dt("tooltip_context_menu_open")),uo=(ut,vt)=>ut?vt&&vt===tl.PlaybackState.PAUSED?dt("tooltip_play"):"":dt("tooltip_live"),Fn=v(()=>uo(n(Bo),l())),Fo=v(()=>Pe.logoType==="vk_video"?dt("tooltip_vk_video_logo"):dt("tooltip_vk_logo")),Ur=v(()=>n(_r)?dt("tooltip_subtitles_on"):dt("tooltip_subtitles_off")),rr=v(()=>P()?dt("tooltip_fullscreen_on"):dt("tooltip_fullscreen_off")),Hn=v(()=>m()===tl.ChromecastState.CONNECTED?dt("tooltip_chromecast_on"):dt("tooltip_chromecast_off")),zr=v(()=>O()?dt("tooltip_autoplay_on"):dt("tooltip_autoplay_off")),St=K(0),Et=ci({}),po=ci({}),Ji=v(()=>Jt.prevButton),Ki=v(()=>Jt.replayButton),Sn=v(()=>Jt.playButton),wo=v(()=>Jt.nextButton),Un=v(()=>Jt.playPrevChapterButton),mi=v(()=>Jt.seekToInteractiveButton),Wr=v(()=>Jt.interactiveGraphButton),Tn=v(()=>Jt.liveButton),Ho=v(()=>Jt.time),xr=v(()=>Jt.episodes),sr=v(()=>Jt.vkLogo),wr=v(()=>Jt.volume),Cn=v(()=>Jt.subtitles),un=v(()=>Jt.settings),Kr=v(()=>Jt.context),pn=v(()=>Jt.fullscreen),as=v(()=>Jt.chromecast),Qe=v(()=>({prevButton:D()?D().right-D().left:0,replayButton:U()?U().right-U().left:0,playButton:z()?z().right-z().left:0,nextButton:G()?G().right-G().left:0,playPrevChapterButton:le()?le().right-le().left:0,seekToInteractiveButton:Y()?Y().right-Y().left:0,interactiveGraphButton:re()?re().right-re().left:0,liveButton:X()?X().right-X().left:0,time:we()?we().right-we().left:0,episodes:ce()?ce().right-ce().left:0,vkLogo:ne()?ne().right-ne().left:0,volume:he()?he().right-he().left:0,subtitles:xe()?xe().right-xe().left:0,settings:Z()?Z().right-Z().left:0,context:Ne()?Ne().right-Ne().left:0,fullscreen:ue()?ue().right-ue().left:0,chromecast:A()?A().right-A().left:0,additionalButtons:Ke().length?Ke().reduce(ut=>[...ut,40],[]):[]})),Vt=K(0);De(()=>{(!n(Vt)||n(Vt)<n(Qe).time)&&kt(()=>N(Vt,n(Qe).time,!0))});let xi=K(!1);De(()=>{let ut=0;n(Wi)&&(io(u(),"xl")?ut=n(Qe).time:ut=60);let vt=n(Qe).prevButton+n(Qe).playButton+n(Qe).nextButton+n(Qe).seekToInteractiveButton+n(Qe).interactiveGraphButton+n(Qe).liveButton+n(Vt)+ut;N(xi,n(Oo)&&n(St)>=vt,!0)});let Io=v(()=>n(xi)&&io(u(),"m")),Eo=(0,av.debounceFn)(sd,260),Uo=(0,av.debounceFn)(hp,260);De(()=>{Ce(),j(),ie(),Eo(Ui(),Jt,Et,e.showControls),Uo(Ui(),Mt,po,e.showControls)}),De(()=>{po.bottom=Bt()});let fo=ae();De(()=>{Oe(),Be()&&kt(()=>Xl(Be(),Oe(),ri))});let Ri;De(()=>{fe(),kt(()=>vp(W,fe(),Ri))});function zo(){aa({isAudioDisabled:yi,isAudioAvailable:ee(),isAds:Ct(),audioIsNotExistHintCallback:et,audioDisabledHintCallback:We})&&Pt()}let Wo=zi?gr:Ve,So=v(()=>Se()!==null),Ko=v(()=>n(So)?Se():n(ss)),fn=v(()=>n(Ko)?dt("tooltip_pause"):dt("tooltip_play")),Sr=dt("tooltip_episodes"),Tr=v(()=>{var ut,vt,Qi,Go;return n(Br)?{id:"prevButton",type:"desktop-control-panel-left",weight:Ns.prevButton,buttonComponent:Za,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:ao.bind(null,!0)},tooltipEnabled:!((vt=(ut=J.callbacks)==null?void 0:ut.uiInfo)!=null&&vt.onPrevButtonMouseEnter)&&!((Go=(Qi=J.callbacks)==null?void 0:Qi.uiInfo)!=null&&Go.onPrevButtonMouseLeave),mouseEnter:()=>{var Gi,wi,Ni;(Ni=(wi=(Gi=J.callbacks)==null?void 0:Gi.uiInfo)==null?void 0:wi.onPrevButtonMouseEnter)==null||Ni.call(wi,jn(Ui(),Et,"prevButton",e.showControls))},mouseLeave:()=>{var Gi,wi,Ni;(Ni=(wi=(Gi=J.callbacks)==null?void 0:Gi.uiInfo)==null?void 0:wi.onPrevButtonMouseLeave)==null||Ni.call(wi,jn(Ui(),Et,"prevButton",e.showControls))},tooltipText:dt("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),Cr=v(()=>n(br)?{id:"replayButton",type:"desktop-control-panel-left",weight:Ns.replayButton,buttonComponent:ad,buttonComponentProps:{disabled:n(Dn),click:Wo},tooltipText:dt("tooltip_restart"),disabled:n(Dn)}:void 0),ls=v(()=>n(tr)?{id:"playButton",type:"desktop-control-panel-left",weight:Ns.playButton,buttonComponent:ld,buttonComponentProps:{disabled:n(er),isPlaying:n(ss),click:Ve},tooltipText:n(fn),disabled:n(er)}:void 0),ds=v(()=>{var ut,vt,Qi,Go;return n(co)?{id:"nextButton",type:"desktop-control-panel-left",weight:Ns.nextButton,buttonComponent:Za,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:xo.bind(null,!0)},tooltipEnabled:!((vt=(ut=J.callbacks)==null?void 0:ut.uiInfo)!=null&&vt.onNextButtonMouseEnter)&&!((Go=(Qi=J.callbacks)==null?void 0:Qi.uiInfo)!=null&&Go.onNextButtonMouseLeave),mouseEnter:()=>{var Gi,wi,Ni;(Ni=(wi=(Gi=J.callbacks)==null?void 0:Gi.uiInfo)==null?void 0:wi.onNextButtonMouseEnter)==null||Ni.call(wi,jn(Ui(),Et,"nextButton",e.showControls))},mouseLeave:()=>{var Gi,wi,Ni;(Ni=(wi=(Gi=J.callbacks)==null?void 0:Gi.uiInfo)==null?void 0:wi.onNextButtonMouseLeave)==null||Ni.call(wi,jn(Ui(),Et,"nextButton",e.showControls))},tooltipText:dt("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),Ze=v(()=>zi&&n(or)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:Ns.playPrevChapterButton,buttonComponent:Ic,buttonComponentProps:{disabled:n(Or),click:e.playPrevChapter},tooltipText:dt("tooltip_interactive_go_back"),disabledTooltipContent:dt(xs),disabled:n(Or)}:void 0),Kt=v(()=>zi&&n(Do)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:Ns.seekToInteractiveButton,buttonComponent:Pc,buttonComponentProps:{disabled:n(dn),click:e.seekToInteractive},tooltipText:dt("tooltip_interactive_seek"),disabled:n(dn),disabledTooltipContent:dt(Fe())}:void 0),Ci=v(()=>zi&&n(cn)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:Ns.interactiveGraphButton,buttonComponent:Ac,buttonComponentProps:{disabled:n(No),click:rs.toggle,graphIsOpened:R()},tooltipText:n(nr)}:void 0),qo=v(()=>n(Bn)?{id:"liveButton",type:"desktop-control-panel-left",weight:Ns.liveButton,buttonComponent:kc,buttonComponentProps:{isLiveActive:n(Bo),ariaLabel:n(Fn)},tooltipText:n(Fn),disabled:n(Bo)&&l()===tl.PlaybackState.PLAYING}:void 0),mo=v(()=>[n(Tr),n(Cr),n(ls),n(ds),n(Ze),n(Kt),n(Ci),n(qo)].filter(ut=>!!ut).sort(Ka)),Ir=v(()=>n(wn)?{id:"vkLogo",type:"desktop-control-panel-right",weight:Ds.vkLogo,buttonComponent:bc,buttonComponentProps:{targetUrl:ti(),logoClickable:e.logoClickable,click:at},tooltipText:n(Fo),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),mn=v(()=>n(oi)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:Ds.autoplayNext,buttonComponent:Ec,tooltipText:n(zr)}:void 0),Er=v(()=>({id:"volume",type:"desktop-control-panel-right",weight:Ds.volume,buttonComponent:Mm,buttonComponentProps:{click:zo,isAds:Ct()}})),Hs=v(()=>n(ir)?{id:"subtitles",type:"desktop-control-panel-right",weight:Ds.subtitles,buttonComponent:Pm,buttonComponentProps:{isSubtitlesEnabled:n(_r),click:gt},tooltipText:n(Ur)}:void 0),In=v(()=>n(Fr)?{id:"settings",type:"desktop-control-panel-right",weight:Ds.settings,buttonComponent:id,buttonComponentProps:{ref$:fo},tooltipText:Oe()?void 0:dt("tooltip_settings_off")}:void 0),Us=v(()=>Pe.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:Ds.context,buttonComponent:Km,buttonComponentProps:{ariaLabel:dt("aria_label_context_menu")},className:n($r)?"":"out-of-view",tooltipText:n(Hr)}:void 0),ar=v(()=>n(yr)?{id:"fullscreen",type:"desktop-control-panel-right",weight:Ds.fullscreen,buttonComponent:_c,buttonComponentProps:{isFullscreen:P(),click:e.toggleFullscreen},tooltipText:n(rr)}:void 0),cs=v(()=>n(ht)?{id:"chromecast",type:"desktop-control-panel-right",weight:Ds.chromecast,buttonComponent:yc,buttonComponentProps:{state:m(),click:Dr},tooltipText:n(Hn)}:void 0),ft=v(()=>[n(Ir),n(mn),n(Er),n(Hs),n(In),n(Us),n(ar),n(cs),...Ke()].filter(ut=>!!ut).sort(Ka)),fi=J.ui.previewTrackActive,Qo=J.ui.previewTrackDragInProgress,me=J.ui.previewTrackAvailable,mt=J.ui.isPreviewTrackHorizontallyAligned,ei=v(()=>Nb({onPreviewTrackOpened:J.actions.internal.previewTrackOpened,getTimelineRef:()=>Et.timeline,isHorizontal:qe()})),Ii=v(()=>n(ei).progressBarY),qi=v(()=>n(ei).controlsY),si=v(()=>n(ei).onPointerDown),ni=v(()=>n(ei).onPointerMove),vo=v(()=>n(ei).onPointerUp),zn=v(()=>n(ei).calculatedHeight),Wn=v(()=>n(ei).closePreviewTrack);De(()=>{ie()?di.set(!1):n(Wn)()});let ki;Dt(()=>()=>ki&&clearTimeout(ki));let bd=ut=>{ie()||!je()||(n(si)(ut),ki=setTimeout(()=>{J.actions.internal.previewTrackDragStarted()},200))},pl=()=>{ie()||n(vo)(),ki&&clearTimeout(ki),Te()&&J.actions.internal.previewTrackDragFinished()},zs=ut=>{n(ni)(ut),!ie()&&je()&&!ie()&&di.set(!0)},fa=()=>{di.set(!1)};var ma=jw(),vn=de(ma);let fl;var va=T(vn);{var qr=ut=>{let vt=v(()=>n(Ii)()),Qi=v(()=>n(zn)());sv(ut,{get animatedOffsetY(){return n(vt)},get animatedPreviewTrackHeight(){return n(Qi)},get canRewindLive(){return e.canRewindLive},get isAds(){return Ct()},onTimelineMove:zs,onTimelinePointerDown:bd,onTimelinePointerUp:pl,onTimelinePointerLeave:fa,get previewTrackAvailable(){return je()},get timelineRef(){return Et.timeline},set timelineRef(Go){Et.timeline=Go}})};V(va,ut=>{e.showControls&&ut(qr)})}var us=k(va,2),Ws=T(us),ga=T(Ws);Ti(ga,17,()=>n(mo),ut=>ut.id,(ut,vt)=>{gp(ut,{get buttonComponent(){return n(vt).buttonComponent},get buttonComponentProps(){return n(vt).buttonComponentProps},get tooltipText(){return n(vt).tooltipText},get disabledTooltipContent(){return n(vt).disabledTooltipContent},get disabled(){return n(vt).disabled},get className(){return n(vt).className},get tooltipEnabled(){return n(vt).tooltipEnabled},get mouseEnter(){return n(vt).mouseEnter},get mouseLeave(){return n(vt).mouseLeave},get tooltipVisible(){return e.showControls},get ref(){return Et[n(vt).id]},set ref(Qi){Et[n(vt).id]=Qi}})});var ml=k(ga,2);{var vl=ut=>{let vt=v(()=>!e.showControls),Qi=v(()=>Ct()?Me():ze()),Go=v(()=>Ct()?Nt():tt());vc(ut,{get isHidden(){return n(vt)},isMobile:!1,get showDuration(){return n(Io)},get position(){return n(Qi)},get duration(){return n(Go)},get ref(){return Et.time},set ref(Gi){Et.time=Gi}})};V(ml,ut=>{n(Oo)&&ut(vl)})}var $d=k(ml,2);let gl=v(()=>!n(Wi));Mo($d,{className:"w-max",get disabled(){return n(gl)},get tooltipContent(){return Sr},get tooltipVisible(){return e.showControls},get ref(){return Et.episodes},set ref(ut){Et.episodes=ut},children:(ut,vt)=>{var Qi=Le(),Go=de(Qi);{var Gi=wi=>{xc(wi,{get position(){return ze()},get duration(){return tt()},get timeCodes(){return yt}})};V(Go,wi=>{n(Wi)&&wi(Gi)})}_(ut,Qi)},$$slots:{default:!0}}),w(Ws);var hl=k(Ws,2);Ti(hl,21,()=>n(ft),ut=>ut.id,(ut,vt)=>{var Qi=Le(),Go=de(Qi);{var Gi=Ni=>{gp(Ni,{get buttonComponent(){return n(vt).buttonComponent},get buttonComponentProps(){return n(vt).buttonComponentProps},get tooltipText(){return n(vt).tooltipText},get disabledTooltipContent(){return n(vt).disabledTooltipContent},get disabled(){return n(vt).disabled},get className(){return n(vt).className},get tooltipVisible(){return e.showControls},get ref(){return Et[n(vt).id]},set ref(_a){Et[n(vt).id]=_a}})},wi=Ni=>{let _a=v(()=>!!n(vt).disabled);Xm(Ni,{get id(){return n(vt).id},get testId(){return n(vt).testId},get icon(){return n(vt).icon},get ariaLabel(){return n(vt).ariaLabel},get tooltipText(){return n(vt).tooltipText},get disabledTooltipContent(){return n(vt).disabledTooltipContent},get disabled(){return n(_a)},get onClick(){return n(vt).onClick},get disableMouseupTooltipShow(){return n(vt).disableMouseupTooltipShow},get tooltipVisible(){return e.showControls},get ref(){return Et[n(vt).id]},set ref(bl){Et[n(vt).id]=bl}})};V(Go,Ni=>{Mb(n(vt))?Ni(Gi):Ni(wi,!1)})}_(ut,Qi)}),w(hl),w(us),nt(us,ut=>Gt(ut),()=>Gt()),w(vn),nt(vn,ut=>Bt(ut),()=>Bt());var Pr=k(vn,2);{var yd=ut=>{Tc(ut,{get ref(){return Et.interactiveTimeIndicator},set ref(vt){Et.interactiveTimeIndicator=vt}})};V(Pr,ut=>{Nr&&ut(yd)})}B((ut,vt)=>{fl=se(vn,1,"wrapper-bottom s-1e",null,fl,ut),Ge(us,vt),us.inert=ie()},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth||Te()}),()=>`transform: translateY(${n(qi)()}px);`]),Mn(Ws,"clientWidth",ut=>N(St,ut)),_(t,ma),H(),o()}var dd=require("@vkontakte/videoplayer-core/es2015");var dv=require("@vkontakte/videoplayer-shared/es2015");var Zw=L('<div class="icon icon-error-stub s-20"><div class="inner s-20"></div></div>'),Jw=L('<img class="icon s-20" aria-hidden="true"/>'),eS={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 cv(t,e){q(t,eS);let i=g(e,"disabled",3,!1),o=g(e,"onClick",3,dv.noop),r=v(()=>o()===dv.noop),a=v(()=>n(r)||i()),l=K(!1),d=()=>{N(l,!0)},s=v(()=>n(r)?"btn-full-opacity":"");Wt(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,p)=>{var m=Le(),f=de(m);{var b=$=>{var S=Zw();_($,S)},y=$=>{var S=Jw();B(()=>Ue(S,"src",e.iconUrl)),$t("error",S,d),La(S),_($,S)};V(f,$=>{n(l)?$(b):$(y,!1)})}_(u,m)},$$slots:{default:!0}})}var tS=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 uv(t){Je(t,{testId:"muted-icon",children:(e,i)=>{var o=tS();_(e,o)},$$slots:{default:!0}})}var Fb=require("@vkontakte/videoplayer-shared/es2015");function bp(t,e){F(e,!0);let i=g(e,"muted",3,!1),o=g(e,"click",3,Fb.noop),r=g(e,"ref",15,void 0),l=ve().ui.t,d=v(()=>i()?l("tooltip_volume"):l("tooltip_volume_muted")),s=v(()=>i()?"btn-mobile-muted":"btn-mobile-unmuted");Wt(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,p)=>{var m=Le(),f=de(m);{var b=$=>{uv($,{})},y=$=>{ca($,{get size(){return"24"}})};V(f,$=>{i()?$(b):$(y,!1)})}_(u,m)},$$slots:{default:!0}}),H()}var iS=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>'),oS=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>'),nS=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 pv(t,e){let i=g(e,"isActive",3,!1),o=v(()=>i()?"pip-icon--active":"pip-icon");Je(t,{get testId(){return n(o)},children:(r,a)=>{var l=nS(),d=k(de(l));{var s=p=>{var m=iS();_(p,m)},u=p=>{var m=oS();_(p,m)};V(d,p=>{i()?p(s):p(u,!1)})}_(r,l)},$$slots:{default:!0}})}var Hb=require("@vkontakte/videoplayer-shared/es2015");function fv(t,e){F(e,!0);let i=g(e,"ref",15,void 0),o=g(e,"isPictureInPictureActive",3,!1),r=g(e,"click",3,Hb.noop),a=Q("menu_pip");Wt(t,{testId:"btn-pip",get ariaLabel(){return a},get click(){return r()},get ref(){return i()},set ref(l){i(l)},children:(l,d)=>{pv(l,{get isActive(){return o()}})},$$slots:{default:!0}}),H()}var mv=require("@vkontakte/videoplayer-shared/es2015");var rS=(t,e,i,o)=>{n(e)&&i.onDisabledPlayPrevChapterClick(n(o))},sS=(t,e,i,o)=>{n(e)&&i.onDisabledSeekToInteractiveClick(n(o))},aS=L("<div><!></div>"),lS=L("<div><!></div>"),dS=L("<div><!></div>"),cS=L("<!> <!> <!>",1),uS=L("<div></div> <div></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),pS=L('<div class="wrapper-middle s-1d"><!></div>'),fS=L("<div><!></div> <!> <div><!></div>",1),mS=L('<div aria-hidden="true">·</div> <!>',1),vS=L('<!> <!> <div><div><div class="controls mobile s-1d"><div class="controls-group contain s-1d"><!> <!> <!> <!></div> <div class="controls-group s-1d"><!> <!> <!></div></div> <!></div></div> <!>',1),gS={hash:"s-1d",code:".wrapper-bottom.s-1d{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-1d>:where(.s-1d){pointer-events:auto}.wrapper-bottom.ads-timeline-mobile.s-1d{height:9px;padding:0 4px 4px}.wrapper-middle.s-1d{align-items:center;left:50%;top:50%;transform:translate(-50%,-50%)}.wrapper-middle.s-1d,.wrapper-top-right.s-1d{display:flex;position:absolute;transition:opacity var(--controls-transition-duration);z-index:var(--controls-container-z-index)}.wrapper-top-right.s-1d{right:8px;top:4px}.wrapper-top-left.s-1d{left:8px;position:absolute;top:4px;z-index:var(--controls-container-z-index)}.wrapper-middle-left.s-1d,.wrapper-middle-left-second.s-1d,.wrapper-middle-right.s-1d{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-1d{left:12px}.wrapper-middle-left-second.s-1d{left:64px}.wrapper-middle-right.s-1d{right:12px}.controls.s-1d{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-1d,.controls-group.s-1d{display:flex}.controls-group.contain.s-1d{min-width:0}.controls-group.s-1d >:not(:first-child){margin-left:8px}.hidden.s-1d{opacity:0;visibility:hidden}.controls-hidden.s-1d{transform:translateY(100%);visibility:visible}.wrapper-bottom.no-smooth.s-1d{transition:none}.overlay-mobile.s-1d{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-1d,.wrapper-top-right.fullscreen.s-1d{top:16px}.controls-wrapper.fullscreen.s-1d{bottom:30px;position:absolute;width:calc(100% - 8px)}}@media screen and (orientation:landscape){.wrapper-top-left.fullscreen.s-1d{left:44px;top:12px}.wrapper-top-right.fullscreen.s-1d{right:44px;top:12px}.wrapper-middle-left.fullscreen.s-1d{left:44px}.wrapper-middle-left-second.fullscreen.s-1d{left:96px}.wrapper-middle-right.fullscreen.s-1d{right:44px}.controls-wrapper.fullscreen.s-1d{bottom:32px;left:36px;position:absolute;right:36px;width:calc(100% - 72px)}}"};function vv(t,e){var pn,as;F(e,!0),q(t,gS);let[i,o]=Re(),r=()=>x(Vi,"$seekToInteractiveDisabledTooltip$",i),a=()=>x(Jt,"$disabledControls$",i),l=()=>x(Ft,"$playbackState$",i),d=()=>x(nn,"$adPlaybackState",i),s=()=>x(J,"$isEnded$",i),u=()=>x(At,"$playerSize",i),p=()=>x(gt,"$scrubbingInProgress",i),m=()=>x(Tt,"$chromecastState$",i),f=()=>x(et,"$isPictureInPictureActive",i),b=()=>x(We,"$pictureInPictureType$",i),y=()=>x(be,"$mobileNotReportControlHidden$",i),$=()=>x(pt,"$chromecastHidden",i),S=()=>x(Gt,"$playerPhase",i),C=()=>x($o,"$pipHidden",i),I=()=>x(Xe,"$currentGridType$",i),R=()=>x(yi,"$vkLogoHidden",i),E=()=>x(gi,"$volumeHidden",i),P=()=>x(ye,"$isLive$",i),O=()=>x(rt,"$settingsMenuVisible",i),D=()=>x(at,"$isRewindableLive$",i),U=()=>x(Ve,"$isActiveLive$",i),z=()=>x($e,"$isAudioAvailable$",i),G=()=>x(Pt,"$muted$",i),le=()=>x(Pe,"$volume$",i),Y=()=>x(dt,"$isInteractiveTime$",i),re=()=>x(Do,"$settingButtonRef$",i),X=()=>x(yt,"$startedByKeyboard$",i),we=()=>x(yn,"$isFullscreen",i),ce=()=>x(Ht,"$additionalButtons$",i),ne=()=>x(ro,"$autoplayNextToggleHidden",i),he=()=>x(ri,"$crashed$",i),xe=()=>x(pi,"$settingsHidden",i),Z=()=>x(rn,"$graphIsOpened$",i),Ne=()=>x(so,"$adPosition",i),ue=()=>x(Si,"$adDuration",i),A=()=>x(ti,"$position$",i),Ke=()=>x(Ct,"$duration$",i),Ce=g(e,"playerControlsWrapperRef",15,void 0),j=g(e,"playerControlsRef",15,void 0),ie=g(e,"isAds",3,!1),Oe=g(e,"logoTargetUrl",3,""),Be=g(e,"isOneVideoPlaylist",3,!1),fe=g(e,"customFullscreenSupported",3,!0),ee=ve(),Se=Co(),Fe=Rt(),qe=ee.actions.internal.toggleMuted,je=ee.actions.internal.togglePlay,Te=ee.actions.internal.pause,Me=ee.actions.internal.prevVideoClick,ze=ee.actions.internal.nextVideoClick,Nt=ee.actions.internal.checkFullscreenSupport,tt=(pn=ee.callbacks)==null?void 0:pn.onAudioDoesNotExistHint,Bt=(as=ee.callbacks)==null?void 0:as.onAudioDisabledHint,Gt=ee.playerPhase,Ct=ee.state.duration$,ti=ee.state.positionWithScrubbing$,Ft=ee.state.playbackState$,$e=ee.state.isAudioAvailable$,_e=ee.state.isAudioDisabled,J=ee.state.isEnded$,ye=ee.state.isLive$,Pe=ee.state.volume$,Pt=ee.state.muted$,Ve=ee.state.isActiveLive$,at=ee.state.isRewindableLive$,gt=ee.ui.scrubbingInProgress,be=ee.ui.mobileNotReportControlHidden$,{isActive$:et,type$:We}=Se.pictureInPicture$,rt=ee.ui.settingsMenu.visible$,ii=ee.ui.settingsMenu.openedByBtnKeyboard$,li=ee.ui.controls,{volume:gi,vkLogo:yi,autoplayNextToggle:ro,pip:$o,settings:pi,chromecast:pt}=ee.ui.hiddenControls,Ai=ee.actions.internal.getVideoEpisodes(),Zt=ee.webApi.pictureInPictureApi,Tt=ee.state.chromecastState$,ri=ee.state.crashed$,Jt=li.disabledControls$,yt=ee.ui.startedByKeyboard$,Xe=ee.ui.currentGridType$,Si=ee.ads.duration,so=ee.ads.position,nn=ee.ads.playbackState,yn=ee.ui.isFullscreen,At=ee.ui.playerSize,Ht=ee.ui.additionalButtonsDeprecated$,W=ee.actions.internal.getVideoElement,Mt=ee.actions.internal.replayInteractive,di=ee.state.isInteractive,dt=ee.state.isInteractiveTime$,It=ee.state.showInteractiveGraph,jt=ee.state.showSeekToInteractive,ct=ee.state.showPlayPrevChapter,Mi=ee.state.showInteractiveTimeIndicator,Vi=Se.seekToInteractiveDisabledTooltip$,rn=Se.graphIsOpened$,Ro=ee.ui.controlBlocks,yo=v(()=>Q(ee.state.playPrevChapterDisabledTooltip)),Ui=v(()=>Q(r())),gr=v(()=>a().has("EPISODE_BUTTON")),ao=v(()=>a().has("GRAPH_BUTTON")),xo=v(()=>a().has("SEEK_TO_INTERACTIVE_BUTTON")),zi=v(()=>a().has("PLAY_BUTTON")),sn=v(()=>a().has("REPLAY_BUTTON")),an=v(()=>a().has("PLAY_PREV_CHAPTER_BUTTON")),Zn=v(()=>l()===dd.PlaybackState.PLAYING),hr=v(()=>d()==="paused"),Nr=v(()=>s()&&!ie()&&!di),xs=v(()=>!s()||ie()),ns=v(()=>e.showNextPrevButtons&&!ie()&&e.prevButtonActive),rs=v(()=>e.showNextPrevButtons&&!ie()&&e.nextButtonActive),Jn=v(()=>u().width>300),ln=v(()=>u().width>400),No=v(p),dn=v(()=>m()!==dd.ChromecastState.NOT_AVAILABLE&&!(f()&&b()===1)&&!y()&&!di&&!$()),er=v(()=>S()==="LiveWaitingStart"),Dn=v(()=>!!Zt&&m()!==dd.ChromecastState.CONNECTED&&!y()&&(b()===1&&n(er)||!n(er))&&!n(No)&&!di&&!C()),Or=K(!1);Dt(()=>{let Qe=Zt==null?void 0:Zt.info.isActive$.subscribe(Vt=>N(Or,Vt,!0));return()=>Qe==null?void 0:Qe.unsubscribe()});let Dr=v(()=>!n(No)&&io(I(),"s")),ss=v(()=>!e.logoHidden&&u().width>350&&!R()),_r=v(()=>Fe.features.fullscreen&&Nt()&&!(f()&&b()===1)&&(di?fe():!0)&&!n(No)&&!n(Or)),lo=v(()=>!E()&&!n(No)),br=v(()=>(!P()||ie())&&u().width>260&&!n(No)&&!(Fe.features.interactiveHideTime&&di)),tr=v(()=>O()||e.showControls),xn=v(()=>!ie()&&!P()&&!!(Ai!=null&&Ai.length)&&n(Jn)&&!n(gr)&&!n(No)),co=v(()=>!D()||!!U()),Br=v(()=>It&&io(I(),"m")),Bn=v(()=>!z()||G()||le()===0),ht=ci({}),oi=ci({}),ir=(0,mv.debounceFn)(sd,260),$r=(0,mv.debounceFn)(hp,260);De(()=>{u(),Y(),ir(W(),li,ht,e.showControls),$r(W(),Ro,oi,e.showControls)});let Fr=()=>ee.actions.internal.toggleChromecast();function wn(){return _t(this,null,function*(){Zt!=null&&Zt.isActive()?yield Zt==null?void 0:Zt.exit():yield Zt==null?void 0:Zt.request()})}function yr(){aa({isAudioDisabled:_e,audioDisabledHintCallback:Bt,isAudioAvailable:z(),audioIsNotExistHintCallback:tt,isAds:ie()})&&qe()}let Oo=K(""),cn=(Qe,Vt)=>{if(!Qe){N(Oo,Q("tooltip_live"),!0);return}Vt&&Vt===dd.PlaybackState.PAUSED&&N(Oo,Q("tooltip_play"),!0)};De(()=>{cn(n(co),l())});let Do=ae();De(()=>{re()&&Xl(re(),O(),ii)}),De(()=>{vp(yt,X(),ht.playButton)});var or=vS(),Wi=de(or);{var Bo=Qe=>{var Vt=uS(),xi=de(Vt);let Io;var Eo=k(xi,2);let Uo;nt(Eo,ft=>oi.topLeft=ft,()=>oi==null?void 0:oi.topLeft);var fo=k(Eo,2);let Ri;var zo=T(fo);Ti(zo,1,ce,({iconUrl:ft,ariaLabel:fi,testId:Qo,onClick:me,tooltip:mt})=>ft,(ft,fi)=>{let Qo=()=>n(fi).iconUrl,me=()=>n(fi).ariaLabel,mt=()=>n(fi).testId,ei=()=>n(fi).onClick,Ii=()=>n(fi).tooltip,qi=v(()=>{var si;return(si=me())!=null?si:Ii()});cv(ft,{get iconUrl(){return Qo()},get ariaLabel(){return n(qi)},get testId(){return mt()},get onClick(){return ei()}})});var Wo=k(zo,2);{var So=ft=>{Ec(ft,{get ref(){return ht.autoplayNextToggle},set ref(fi){ht.autoplayNextToggle=fi}})};V(Wo,ft=>{e.showAutoplayNext&&!Be()&&!ne()&&ft(So)})}var Ko=k(Wo,2);{var fn=ft=>{yc(ft,{isMobile:!0,click:Fr,get state(){return m()},get ref(){return ht.chromecast},set ref(fi){ht.chromecast=fi}})};V(Ko,ft=>{n(dn)&&ft(fn)})}var Sr=k(Ko,2);{var Tr=ft=>{fv(ft,{click:wn,get isPictureInPictureActive(){return f()},get ref(){return ht.pip},set ref(fi){ht.pip=fi}})};V(Sr,ft=>{n(Dn)&&ft(Tr)})}var Cr=k(Sr,2);{var ls=ft=>{id(ft,{get ref$(){return Do}})};V(Cr,ft=>{he()&&!xe()&&ft(ls)})}var ds=k(Cr,2);{var Ze=ft=>{bc(ft,{get click(){return Te},get targetUrl(){return Oe()},get logoClickable(){return e.logoClickable},get ref(){return ht.vkLogo},set ref(fi){ht.vkLogo=fi}})};V(ds,ft=>{n(ss)&&ft(Ze)})}w(fo),nt(fo,ft=>oi.topRight=ft,()=>oi==null?void 0:oi.topRight);var Kt=k(fo,2);let Ci;var qo=T(Kt);{var mo=ft=>{let fi=v(()=>Me.bind(null,!0));Za(ft,{get click(){return n(fi)},type:"prev",isMobile:!0,get ref(){return ht.prevButton},set ref(Qo){ht.prevButton=Qo}})};V(qo,ft=>{n(ns)&&ft(mo)})}var Ir=k(qo,2);{var mn=ft=>{ld(ft,{get disabled(){return n(zi)},get click(){return je},isMobile:!0,get isPlaying(){return n(Zn)},get ref(){return ht.playButton},set ref(fi){ht.playButton=fi}})};V(Ir,ft=>{n(xs)&&ft(mn)})}var Er=k(Ir,2);{var Hs=ft=>{ad(ft,{get disabled(){return n(sn)},get click(){return je},isMobile:!0,get ref(){return ht.replayButton},set ref(fi){ht.replayButton=fi}})};V(Er,ft=>{n(Nr)&&ft(Hs)})}var In=k(Er,2);{var Us=ft=>{let fi=v(()=>ze.bind(null,!0));Za(ft,{get click(){return n(fi)},type:"next",isMobile:!0,get ref(){return ht.nextButton},set ref(Qo){ht.nextButton=Qo}})};V(In,ft=>{n(rs)&&ft(Us)})}w(Kt),nt(Kt,ft=>oi.middle=ft,()=>oi==null?void 0:oi.middle);var ar=k(Kt,2);{var cs=ft=>{var fi=cS(),Qo=de(fi);{var me=si=>{var ni=aS();let vo;ni.__click=[rS,an,e,yo];var zn=T(ni);let Wn=v(()=>!e.showControls);Ic(zn,{get hidden(){return n(Wn)},get disabled(){return n(an)},get click(){return e.playPrevChapter},get ref(){return ht.playPrevChapterButton},set ref(ki){ht.playPrevChapterButton=ki}}),w(ni),B(ki=>vo=se(ni,1,"wrapper-middle-left s-1d",null,vo,ki),[()=>({fullscreen:we(),hidden:!e.showControls})]),_(si,ni)};V(Qo,si=>{ct&&si(me)})}var mt=k(Qo,2);{var ei=si=>{var ni=lS();let vo;var zn=T(ni);let Wn=v(()=>!e.showControls&&!Z());Ac(zn,{get hidden(){return n(Wn)},get disabled(){return n(ao)},get click(){return rn.toggle},get graphIsOpened(){return Z()},get ref(){return ht.interactiveGraphButton},set ref(ki){ht.interactiveGraphButton=ki}}),w(ni),B(ki=>vo=se(ni,1,Kd(ct?"wrapper-middle-left-second":"wrapper-middle-left"),"s-1d",vo,ki),[()=>({fullscreen:we(),hidden:!e.showControls&&!Z()})]),_(si,ni)};V(mt,si=>{n(Br)&&si(ei)})}var Ii=k(mt,2);{var qi=si=>{var ni=dS();let vo;ni.__click=[sS,xo,e,Ui];var zn=T(ni);let Wn=v(()=>!e.showControls);Pc(zn,{get hidden(){return n(Wn)},get disabled(){return n(xo)},get click(){return e.seekToInteractive},get ref(){return ht.seekToInteractiveButton},set ref(ki){ht.seekToInteractiveButton=ki}}),w(ni),B(ki=>vo=se(ni,1,"wrapper-middle-right s-1d",null,vo,ki),[()=>({fullscreen:we(),hidden:!e.showControls})]),_(si,ni)};V(Ii,si=>{jt&&si(qi)})}_(ft,fi)};V(ar,ft=>{di&&!p()&&ft(cs)})}B((ft,fi,Qo,me)=>{Io=se(xi,1,"overlay-mobile s-1d",null,Io,ft),Uo=se(Eo,1,"wrapper-top-left s-1d",null,Uo,fi),Ri=se(fo,1,"wrapper-top-right s-1d",null,Ri,Qo),Ci=se(Kt,1,"wrapper-middle s-1d",null,Ci,me)},[()=>({hidden:!n(tr)}),()=>({hidden:!e.showControls,fullscreen:we()}),()=>({hidden:!e.showControls&&!y(),fullscreen:we()}),()=>({hidden:!e.showControls||p()||e.endScreenShown&&e.showNextPrevButtons})]),_(Qe,Vt)};V(Wi,Qe=>{ie()||Qe(Bo)})}var nr=k(Wi,2);{var Hr=Qe=>{var Vt=fS(),xi=de(Vt);let Io;var Eo=T(xi);bp(Eo,{get muted(){return G()},click:yr,get ref(){return ht.volume},set ref(So){ht.volume=So}}),w(xi);var Uo=k(xi,2);{var fo=So=>{var Ko=pS(),fn=T(Ko);let Sr=v(()=>!n(hr));ld(fn,{get disabled(){return n(zi)},get click(){return je},isMobile:!0,get isPlaying(){return n(Sr)},get ref(){return ht.playButton},set ref(Tr){ht.playButton=Tr}}),w(Ko),_(So,Ko)};V(Uo,So=>{n(hr)&&So(fo)})}var Ri=k(Uo,2);let zo;var Wo=T(Ri);Lc(Wo,{get position(){return Ne()},get duration(){return ue()}}),w(Ri),B((So,Ko)=>{Io=se(xi,1,"wrapper-top-right s-1d",null,Io,So),zo=se(Ri,1,"wrapper-bottom ads-timeline-mobile s-1d",null,zo,Ko)},[()=>({fullscreen:we()}),()=>({fullscreen:we()})]),_(Qe,Vt)};V(nr,Qe=>{ie()&&d()!=="inactive"&&Qe(Hr)})}var uo=k(nr,2);let Fn;var Fo=T(uo);let Ur;var rr=T(Fo),Hn=T(rr),zr=T(Hn);{var St=Qe=>{Mo(Qe,{get disabled(){return n(sn)},get ref(){return ht.replayButton},set ref(Vt){ht.replayButton=Vt},children:(Vt,xi)=>{ad(Vt,{get disabled(){return n(sn)},get click(){return Mt}})},$$slots:{default:!0}})};V(zr,Qe=>{di&&Qe(St)})}var Et=k(zr,2);{var po=Qe=>{Mo(Qe,{get ref(){return ht.liveButton},set ref(Vt){ht.liveButton=Vt},children:(Vt,xi)=>{kc(Vt,{get isLiveActive(){return n(co)},isMobile:!0,get ariaLabel(){return n(Oo)}})},$$slots:{default:!0}})};V(Et,Qe=>{!ie()&&P()&&Qe(po)})}var Ji=k(Et,2);{var Ki=Qe=>{let Vt=v(()=>ie()?Ne():A()),xi=v(()=>ie()?ue():Ke()),Io=v(()=>!e.showControls);vc(Qe,{get showDuration(){return n(ln)},get position(){return n(Vt)},get duration(){return n(xi)},isMobile:!0,get isHidden(){return n(Io)},get ref(){return ht.time},set ref(Eo){ht.time=Eo}})};V(Ji,Qe=>{n(br)&&Qe(Ki)})}var Sn=k(Ji,2);let wo=v(()=>!n(xn));Mo(Sn,{className:"w-max",get disabled(){return n(wo)},get ref(){return ht.episodes},set ref(Qe){ht.episodes=Qe},children:(Qe,Vt)=>{var xi=Le(),Io=de(xi);{var Eo=Uo=>{var fo=mS(),Ri=k(de(fo),2);xc(Ri,{get position(){return A()},get duration(){return Ke()},get timeCodes(){return Ai}}),_(Uo,fo)};V(Io,Uo=>{n(xn)&&Uo(Eo)})}_(Qe,xi)},$$slots:{default:!0}}),w(Hn),nt(Hn,Qe=>oi.bottomLeft=Qe,()=>oi==null?void 0:oi.bottomLeft);var Un=k(Hn,2),mi=T(Un);{var Wr=Qe=>{Mo(Qe,{get ref(){return ht.volume},set ref(Vt){ht.volume=Vt},children:(Vt,xi)=>{bp(Vt,{get muted(){return n(Bn)},click:yr})},$$slots:{default:!0}})};V(mi,Qe=>{n(lo)&&Qe(Wr)})}var Tn=k(mi,2);{var Ho=Qe=>{Mo(Qe,{get ref(){return ht.settings},set ref(Vt){ht.settings=Vt},children:(Vt,xi)=>{id(Vt,{get ref$(){return Do}})},$$slots:{default:!0}})};V(Tn,Qe=>{n(Dr)&&Qe(Ho)})}var xr=k(Tn,2);{var sr=Qe=>{Mo(Qe,{get ref(){return ht.fullscreen},set ref(Vt){ht.fullscreen=Vt},children:(Vt,xi)=>{_c(Vt,{get click(){return e.toggleFullscreen},get isFullscreen(){return we()}})},$$slots:{default:!0}})};V(xr,Qe=>{n(_r)&&Qe(sr)})}w(Un),nt(Un,Qe=>oi.bottomRight=Qe,()=>oi==null?void 0:oi.bottomRight),w(rr),nt(rr,Qe=>j(Qe),()=>j());var wr=k(rr,2);let Cn=v(()=>!e.showControls);el(wr,{get isHidden(){return n(Cn)},get isAds(){return ie()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return D()},get ref(){return ht.timeline},set ref(Qe){ht.timeline=Qe}}),w(Fo),nt(Fo,Qe=>oi.bottom=Qe,()=>oi==null?void 0:oi.bottom),w(uo),nt(uo,Qe=>Ce(Qe),()=>Ce());var un=k(uo,2);{var Kr=Qe=>{Tc(Qe,{get ref(){return ht.interactiveTimeIndicator},set ref(Vt){ht.interactiveTimeIndicator=Vt}})};V(un,Qe=>{Mi&&Qe(Kr)})}B((Qe,Vt)=>{Fn=se(uo,1,"wrapper-bottom mobile s-1d",null,Fn,Qe),Ur=se(Fo,1,"controls-wrapper s-1d",null,Ur,Vt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth}),()=>({fullscreen:we()})]),_(t,or),H(),o()}st(["click"]);function Mc(t,e){F(e,!0);let[i,o]=Re(),r=()=>x(C,"$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,""),p=g(e,"showAutoplayNext",3,!1),m=g(e,"isOneVideoPlaylist",3,!1),f=g(e,"customFullscreenSupported",3,!0),b=g(e,"endScreenShown",3,!1),y=g(e,"onDisabledPlayPrevChapterClick",3,gv.noop),$=g(e,"onDisabledSeekToInteractiveClick",3,gv.noop),C=ve().ui.isMobile,I=K(!1);Dt(()=>{let O=setTimeout(()=>N(I,!0),0);return()=>clearTimeout(O)});var R=Le(),E=de(R);{var P=O=>{var D=Le(),U=de(D);{var z=le=>{vv(le,{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 p()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get isOneVideoPlaylist(){return m()},get customFullscreenSupported(){return f()},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)}})},G=le=>{lv(le,{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 m()},get showAutoplayNext(){return p()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get customFullscreenSupported(){return f()},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(U,le=>{r()?le(z):le(G,!1)})}_(O,D)};V(E,O=>{n(I)&&O(P)})}_(t,R),H(),o()}var hS=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 Vc(t,e){F(e,!0);let i=v(()=>e.reversed?"transform:scaleX(-1);transform-origin:50% 0;":""),o=v(()=>`${bn(e.size)}${n(i)}`);Je(t,{get width(){return"48"},get height(){return"48"},get fill(){return e.fill},get style(){return n(o)},get testId(){return e.testId},get shadow(){return e.shadow},children:(r,a)=>{var l=hS();_(r,l)},$$slots:{default:!0}}),H()}var _S=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 hv(t,e){F(e,!0);let i=g(e,"reversed",3,!1),o=v(()=>i()?"transform:scaleX(-1);transform-origin: 50% 0;":void 0),r=v(()=>`seek-icon-${i()?"backward":"forward"}`);Je(t,{get width(){return"48"},get height(){return"48"},get style(){return n(o)},get testId(){return n(r)},get shadow(){return e.shadow},children:(a,l)=>{var d=_S();_(a,d)},$$slots:{default:!0}}),H()}var bS=L('<span class="hot-key-helpers-text s-15"> </span>'),$S=L('<div data-testid="hotkey-helper-icon" class="s-15"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),yS=L("<div><!></div>"),xS={hash:"s-15",code:'.hot-key-helpers-container.s-15{align-items:center;animation:s-15-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-15{left:calc(25% - 100px)}.hot-key-helpers-container--right.s-15{left:calc(75% - 100px)}.hot-key-helpers-text.s-15{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-15{animation:s-15-fadeOut ease var(--controls-transition-duration);height:0;visibility:hidden;width:0}@keyframes s-15-fadeIn{0%{opacity:0}to{opacity:1}}@keyframes s-15-fadeOut{0%{opacity:1}to{opacity:0}}'};function _v(t,e){F(e,!0),q(t,xS);let[i,o]=Re(),r=()=>x(e.data,"$data",i),a=ve(),{features:l}=Rt(),d=a.ui.t,s=v(()=>!r()),u=v(()=>{var C;return((C=r())==null?void 0:C.type)==="BACKWARD_SEEK"}),p=v(()=>{var C;return((C=r())==null?void 0:C.type)==="FORWARD_SEEK"}),m=v(()=>{var C;return(C=r())==null?void 0:C.type}),f=v(()=>{var C,I;return(C=r())!=null&&C.t?d(r().t.key,{value:r().t.value||""}):(I=r())==null?void 0:I.text});var b=yS();let y;var $=T(b);{var S=C=>{var I=$S(),R=de(I),E=T(R);{var P=j=>{let ie=v(()=>n(m)==="BACKWARD_SEEK");hv(j,{get reversed(){return n(ie)},shadow:!0})};V(E,j=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(n(m))&&j(P)})}var O=k(E,2);{var D=j=>{Os(j,{get size(){return"48"},shadow:!0})};V(O,j=>{n(m)==="PAUSE"&&!l.playbackStatusShow&&j(D)})}var U=k(O,2);{var z=j=>{Rn(j,{get size(){return"48"},shadow:!0})};V(U,j=>{n(m)==="PLAY"&&!l.playbackStatusShow&&j(z)})}var G=k(U,2);{var le=j=>{Cc(j,{get size(){return"48"},shadow:!0})};V(G,j=>{n(m)==="REPLAY"&&!l.playbackStatusShow&&j(le)})}var Y=k(G,2);{var re=j=>{da(j,{get size(){return"48"},type:"off",shadow:!0})};V(Y,j=>{n(m)==="SUBTITLES_OFF"&&j(re)})}var X=k(Y,2);{var we=j=>{da(j,{get size(){return"48"},shadow:!0})};V(X,j=>{n(m)==="SUBTITLES_ON"&&j(we)})}var ce=k(X,2);{var ne=j=>{let ie=v(()=>n(m)==="RATE_DOWN");Vc(j,{get size(){return"48"},get reversed(){return n(ie)},testId:"rate-change-icon",shadow:!0})};V(ce,j=>{["RATE_DOWN","RATE_UP"].includes(n(m))&&j(ne)})}var he=k(ce,2);{var xe=j=>{let ie=v(()=>n(m)==="EPISODE_PREV");ua(j,{get size(){return"48"},get reversed(){return n(ie)},shadow:!0})};V(he,j=>{["EPISODE_PREV","EPISODE_NEXT"].includes(n(m))&&j(xe)})}var Z=k(he,2);{var Ne=j=>{ca(j,{get size(){return"48"},volume:0,shadow:!0})};V(Z,j=>{n(m)==="MUTE"&&j(Ne)})}var ue=k(Z,2);{var A=j=>{ca(j,{get size(){return"48"},volume:1,shadow:!0})};V(ue,j=>{n(m)==="VOLUME"&&j(A)})}w(R);var Ke=k(R,2);{var Ce=j=>{var ie=bS(),Oe=T(ie,!0);w(ie),B(()=>pe(Oe,n(f))),_(j,ie)};V(Ke,j=>{n(f)&&j(Ce)})}B(()=>Ue(R,"data-type",n(m))),_(C,I)};V($,C=>{!n(s)&&n(m)&&C(S)})}w(b),B(C=>y=se(b,1,"hot-key-helpers-container s-15",null,y,C),[()=>({hidden:n(s),"hot-key-helpers-container--left":n(u),"hot-key-helpers-container--right":n(p)})]),_(t,b),H(),o()}var wS=(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}},SS=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},TS=L('<div tabindex="0" role="button"><div class="button-block s-q" aria-hidden="true"><div class="button-row s-q"><div class="button button-up s-q"><!></div> <div class="button button-right s-q"><!></div></div> <div class="button-row s-q"><div class="button button-left s-q"><!></div> <div class="button button-down s-q"><!></div></div></div></div>'),CS={hash:"s-q",code:".immersive-controls.s-q{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-q{left:20px;top:50px}.button-block.s-q{height:40px;margin:auto;transform:rotate(45deg);width:40px}.button-row.s-q{display:flex;flex-direction:row;position:relative}.button.s-q{cursor:pointer;height:20px;text-align:center;width:20px}.button.s-q svg{opacity:.7;transition:opacity .2s linear}.button.button-up.s-q svg{transform:rotate(-45deg) translate(-1px,-1px)}.button.button-right.s-q svg{transform:rotate(45deg) translate(1px,-1px)}.button.button-down.s-q svg{transform:rotate(135deg) translate(1px,-3px)}.button.button-left.s-q svg{transform:rotate(-135deg) translate(-1px,-3px)}.button.s-q:hover svg{opacity:1}"};function Rc(t,e){F(e,!0),q(t,CS);let i=g(e,"isShifted",3,!1),o=ve(),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),p=Q("aria_label_spherical_control");var m=TS();let f;m.__keydown=[wS,r,a,l,s,d],m.__keyup=[SS,r,u];var b=T(m),y=T(b),$=T(y);$.__mousedown=a,$.__mouseup=u;var S=T($);Vr(S,{direction:"up",useBtnColor:!0}),w($);var C=k($,2);C.__mousedown=d,C.__mouseup=u;var I=T(C);Vr(I,{direction:"up",useBtnColor:!0}),w(C),w(y);var R=k(y,2),E=T(R);E.__mousedown=s,E.__mouseup=u;var P=T(E);Vr(P,{direction:"up",useBtnColor:!0}),w(E);var O=k(E,2);O.__mousedown=l,O.__mouseup=u;var D=T(O);Vr(D,{direction:"up",useBtnColor:!0}),w(O),w(R),w(b),w(m),B(U=>{f=se(m,1,"immersive-controls s-q",null,f,U),Ue(m,"aria-label",p)},[()=>({"m-shifted":i()})]),$t("mouseleave",$,u),$t("mouseleave",C,u),$t("mouseleave",E,u),$t("mouseleave",O,u),_(t,m),H()}st(["keydown","keyup","mousedown","mouseup"]);var Bs=require("@vkontakte/videoplayer-shared/es2015");var Ub=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var $p=class{constructor(){this.flickeringTimeout=Ub(1e3);this.subscriptions=new Bs.Subscription;this.isAuto=!1;this.isLive=!1;this.captions$=new Bs.ValueSubject([]);this.captionsPrepared$=new Bs.ValueSubject([])}subscribe(){return this.subscriptions.add(this.captions$.pipe((0,Bs.filter)(()=>this.isEnabled()),(0,Bs.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 IS=L('<span class="caption-line s-e"><span class="caption-segment s-e"> </span></span>'),ES=L('<span class="caption-line s-e"><span class="caption-segment s-e"></span></span>'),PS=L('<span class="caption-line s-e"><span class="caption-segment s-e"> </span></span>'),AS=L('<div><span class="caption s-e"><!></span></div>'),kS=L("<div><!></div>"),LS={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 ol(t,e){F(e,!0),q(t,LS);let[i,o]=Re(),r=()=>x(f,"$currentSubtitle$",i),a=()=>x(y,"$isLive$",i),l=()=>x($,"$isFullscreen",i),d=()=>x(S,"$previewTrackActive",i),s=()=>x(b,"$isAutoSubtitleCaptionVisible$",i),u=g(e,"isMobile",3,!1),p=ve(),m=Rt(),f=p.state.currentSubtitle$,b=p.state.isAutoSubtitleCaptionVisible$,y=p.state.isLive$,$=p.ui.isFullscreen,S=p.ui.previewTrackActive,C=v(()=>!!r().isAuto),I=v(()=>!!a()),R=v(()=>e.playerSize.width*.02),E=v(()=>u()&&!l()||n(R)<=m.minSubtitlesFontSize?m.minSubtitlesFontSize:n(R)),P=K(null);De(()=>{var Y,re,X;(Y=n(P))==null||Y.setIsAuto(n(C)),(re=n(P))==null||re.setIsLive(n(I)),(X=n(P))==null||X.setCaptions(e.captions)});let O=K(ci([[]]));Dt(()=>{N(P,new $p().subscribe(),!0);let Y=n(P).captionsPrepared$.subscribe(re=>{N(O,re,!0)});return()=>{var re;(re=n(P))==null||re.destroy(),Y.unsubscribe()}}),Dt(()=>{if(n(C)){let Y=window.setTimeout(()=>{b.set(!1)},m.autoSubtitlesTimeout);return()=>{window.clearTimeout(Y)}}else b.set(!1)});let D=v(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var U=kS();let z;var G=T(U);{var le=Y=>{var re=AS();let X;var we=T(re),ce=T(we);{var ne=xe=>{var Z=IS(),Ne=T(Z),ue=T(Ne,!0);w(Ne),w(Z),B(A=>{var Ke;Ge(Ne,`font-size: ${(Ke=n(E))!=null?Ke:""}px`),pe(ue,A)},[()=>Q("subtitles_auto_caption")]),_(xe,Z)},he=(xe,Z)=>{{var Ne=A=>{var Ke=Le(),Ce=de(Ke);Ti(Ce,17,()=>n(O),zd,(j,ie)=>{var Oe=ES(),Be=T(Oe);Ti(Be,21,()=>n(ie),({value:fe,timeAppeared:ee})=>ee,(fe,ee)=>{let Se=()=>n(ee).value,Fe=()=>n(ee).timeAppeared;var qe=Le(),je=de(qe);{var Te=Me=>{var ze=hs();B(()=>pe(ze,Se())),_(Me,ze)};V(je,Me=>{(!Fe()||Fe()<=e.position)&&Me(Te)})}_(fe,qe)}),w(Be),w(Oe),B(()=>{var fe;return Ge(Be,`font-size: ${(fe=n(E))!=null?fe:""}px`)}),_(j,Oe)}),_(A,Ke)},ue=A=>{var Ke=Le(),Ce=de(Ke);Ti(Ce,17,()=>e.captions,({value:j})=>j,(j,ie)=>{let Oe=()=>n(ie).value;var Be=PS(),fe=T(Be),ee=T(fe,!0);w(fe),w(Be),B(()=>{var Se;Ge(fe,`font-size: ${(Se=n(E))!=null?Se:""}px`),pe(ee,Oe())}),_(j,Be)}),_(A,Ke)};V(xe,A=>{var Ke;n(C)&&((Ke=n(O))!=null&&Ke.length)?A(Ne):A(ue,!1)},Z)}};V(ce,xe=>{n(C)&&s()?xe(ne):xe(he,!1)})}w(we),w(re),B(xe=>{var Z;X=se(re,1,"subtitles-caption s-e",null,X,xe),Ge(re,`--subtitles-caption-margin: ${(Z=n(D))!=null?Z:""}%`)},[()=>({mobile:u()})]),_(Y,re)};V(G,Y=>{var re;(e.captions.length||(re=n(O))!=null&&re.length)&&Y(le)})}w(U),B(Y=>z=se(U,1,"subtitles-container s-e",null,z,Y),[()=>({shifted:e.shifted,"preview-track-active":d(),auto:n(C)&&!n(I)&&!s()})]),_(t,U),H(),o()}var zb=require("@vkontakte/videoplayer-core/es2015");var MS=L('<div class="text s-s"> </div>'),VS=L('<div><div class="icon_wrapper s-s"><!></div> <!></div>'),RS={hash:"s-s",code:".wrapper.s-s{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-s{background-size:cover}.icon_wrapper.s-s{align-items:center;display:flex;flex-direction:column;width:400px}.text.s-s{margin-top:20px}"};function Nc(t,e){F(e,!0),q(t,RS);let i=g(e,"chromecastDeviceName",3,"chromecastDeviceName"),o=Rt();var r=VS();let a;var l=T(r),d=T(l);$c(d,{get size(){return"48"},get iconState(){return zb.ChromecastState.CONNECTED}}),w(l);var s=k(l,2);{var u=p=>{var m=MS(),f=T(m);w(m),B(()=>{var b;return pe(f,`Видео воспроизводится на ${(b=i())!=null?b:""}`)}),_(p,m)};V(s,p=>{i()&&p(u)})}w(r),B(p=>{a=se(r,1,"wrapper s-s",null,a,p),Ge(r,`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${e.thumbUrl||""}')`)},[()=>({bgCover:o.features.previewNoEmptySpace})]),_(t,r),H()}var NS=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 bv(t){Je(t,{width:"200",height:"200",viewBox:"460 190 130 90",testId:"error-icon",children:(e,i)=>{var o=NS();_(e,o)},$$slots:{default:!0}})}var OS=L('<div class="container s-5"><!></div>'),DS={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 nl(t){q(t,DS);var e=OS(),i=T(e);bv(i,{}),w(e),_(t,e)}var BS=L('<div class="playButton s-b" tabindex="0" role="button"><div class="playButtonBackground s-b"></div> <!></div>'),FS=L("<div><!></div>"),HS={hash:"s-b",code:".container.s-b{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-b{opacity:0;visibility:hidden}.container.bgCover.s-b{background-size:cover}.playButton.s-b{align-items:center;display:flex;height:var(--big-play-size);justify-content:center;margin:auto;width:var(--big-play-size)}.playButton.s-b,.playButtonBackground.s-b{bottom:0;left:0;position:absolute;right:0;top:0}.playButtonBackground.s-b{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-b:hover .playButtonBackground:where(.s-b){background-color:var(--big-play-hover-bg-color);transform:scale(1.15)}.playButton.s-b svg{position:relative}"};function rl(t,e){F(e,!0),q(t,HS);let i=g(e,"iconVisible",3,!0),o=ve(),r=Rt(),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=FS();let p;u.__click=s,u.__contextmenu=function(...b){var y;(y=e.onContextMenu)==null||y.apply(this,b)};var m=T(u);{var f=b=>{var y=BS();y.__keydown=d;var $=k(T(y),2);Rn($,{get size(){return"48"}}),w(y),B(()=>Ue(y,"aria-label",l)),_(b,y)};V(m,b=>{i()&&b(f)})}return w(u),B(b=>{p=se(u,1,"container s-b",null,p,b),Ge(u,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:r.features.previewNoEmptySpace})]),_(t,u),H({handlePressKey:d,handleClick:s})}st(["click","contextmenu","keydown"]);var US=L('<div data-testid="video_title"><span> </span></div>'),zS={hash:"s-12",code:".title.s-12{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;color:var(--white);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}.hidden.s-12{opacity:0;transform:translateY(calc(var(--controls-gradient-height)*-1));visibility:hidden}"};function $v(t,e){F(e,!0),q(t,zS);let i=g(e,"title",3,""),o=g(e,"isHidden",3,!1),r=g(e,"ref",15),a=K(void 0);Dt(()=>{var m;requestAnimationFrame(()=>{var f;(f=e.onVisibilityChanged)==null||f.call(e,!0)});function p(f){var b;f.propertyName==="transform"&&((b=e.onVisibilityChanged)==null||b.call(e,!o()))}return(m=n(a))==null||m.addEventListener("transitionend",p),()=>{var f;return(f=n(a))==null?void 0:f.removeEventListener("transitionend",p)}});var l=US();let d;var s=T(l),u=T(s,!0);w(s),nt(s,p=>r(p),()=>r()),w(l),nt(l,p=>N(a,p),()=>n(a)),B(p=>{d=se(l,1,"title s-12",null,d,p),pe(u,i())},[()=>({hidden:o()})]),_(t,l),H()}var Wb=require("@vkontakte/videoplayer-shared/es2015");var WS=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),KS=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),qS=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),QS=L('<div class="timer__cell cell s-1b"><span class="cell__value s-1b"> </span> <span class="cell__unit s-1b"> </span></div>'),GS=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 yv(t,e){F(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"),p=U=>Math.max(U.length,1),m=U=>`${(e.isSmallSize?s:d)*p(U)}px`,f=U=>{let z=Math.floor(U/86400);z&&(U-=z*86400,N(i,u(z),!0));let G=Math.floor(U/3600);N(o,u(G),!0);let le=Math.floor(U/60)%60;N(r,u(le),!0);let Y=U%60;N(a,u(Y),!0)},b=()=>{let U=Math.floor(Date.now()/1e3),z=e.startTime-U;f(z),z>=1?l=requestAnimationFrame(b):e.onTimerOver()};Dt(()=>{l=requestAnimationFrame(b)}),_n(()=>{cancelAnimationFrame(l)});var y=GS();let $;var S=T(y);{var C=U=>{var z=WS(),G=de(z);let le;var Y=T(G),re=T(Y,!0);w(Y);var X=k(Y,2),we=T(X,!0);w(X),w(G);var ce=k(G,2),ne=T(ce,!0);w(ce),B((he,xe,Z)=>{le=Ge(G,"",le,{width:he}),pe(re,n(i)),pe(we,xe),pe(ne,Z)},[()=>m(n(i)),()=>Q("waiting_live_day_value"),()=>Q("waiting_live_colon")]),_(U,z)};V(S,U=>{n(i)&&U(C)})}var I=k(S,2);{var R=U=>{var z=KS(),G=de(z);let le;var Y=T(G),re=T(Y,!0);w(Y);var X=k(Y,2),we=T(X,!0);w(X),w(G);var ce=k(G,2),ne=T(ce,!0);w(ce),B((he,xe,Z)=>{le=Ge(G,"",le,{width:he}),pe(re,n(o)),pe(we,xe),pe(ne,Z)},[()=>m(n(o)),()=>Q("waiting_live_hour_value"),()=>Q("waiting_live_colon")]),_(U,z)};V(I,U=>{n(o)&&U(R)})}var E=k(I,2);{var P=U=>{var z=qS(),G=de(z);let le;var Y=T(G),re=T(Y,!0);w(Y);var X=k(Y,2),we=T(X,!0);w(X),w(G);var ce=k(G,2),ne=T(ce,!0);w(ce),B((he,xe,Z)=>{le=Ge(G,"",le,{width:he}),pe(re,n(r)),pe(we,xe),pe(ne,Z)},[()=>m(n(r)),()=>Q("waiting_live_minute_value"),()=>Q("waiting_live_colon")]),_(U,z)};V(E,U=>{n(r)&&U(P)})}var O=k(E,2);{var D=U=>{var z=QS();let G;var le=T(z),Y=T(le,!0);w(le);var re=k(le,2),X=T(re,!0);w(re),w(z),B((we,ce)=>{G=Ge(z,"",G,{width:we}),pe(Y,n(a)),pe(X,ce)},[()=>m(n(a)),()=>Q("waiting_live_second_value")]),_(U,z)};V(O,U=>{n(a)&&U(D)})}w(y),B(U=>$=se(y,1,"timer__container s-1b",null,$,U),[()=>({small:e.isSmallSize})]),_(t,y),H()}var jS=L('<div class="waiting s-r"><span> </span></div>'),XS=L('<div class="upcoming-timer timer s-r"><span> </span> <!></div>'),ZS=L('<div class="waiting-container s-r"><!></div>'),JS={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 Oc(t,e){F(e,!0),q(t,JS);let i=g(e,"startTime",3,0),o=v(()=>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=v(()=>{var S,C;return((S=n(d))!=null?S:1/0)<=509||((C=n(s))!=null?C:1/0)<=320}),p=v(()=>{var S,C;return!n(u)&&(((S=n(d))!=null?S:1/0)<=699||((C=n(s))!=null?C:1/0)<=599)}),m=e.onUpcomingLiveViewStateChanged?(0,Wb.throttleFn)(()=>{cancelAnimationFrame(l),l=requestAnimationFrame(()=>{let S={type:n(o)?"expired":"default",size:n(u)?"s":n(p)?"m":"l"},C=n(o)?n(r):n(a);e.onUpcomingLiveViewStateChanged(S,C)})},300):void 0;De(()=>{n(s),n(d),n(o),m==null||m()}),_n(()=>{if(cancelAnimationFrame(l),m==null||m.cancel(),e.onUpcomingLiveViewStateChanged){let S={type:n(o)?"expired":"default",size:n(u)?"s":n(p)?"m":"l"};e.onUpcomingLiveViewStateChanged(S)}});var f=ZS();f.__contextmenu=function(...S){var C;(C=e.onContextMenu)==null||C.apply(this,S)},f.__click=function(...S){var C;(C=e.onClick)==null||C.apply(this,S)};var b=T(f);{var y=S=>{var C=jS(),I=T(C);let R;var E=T(I,!0);w(I),w(C),nt(C,P=>N(r,P),()=>n(r)),B((P,O)=>{R=se(I,1,"waiting__title s-r",null,R,P),pe(E,O)},[()=>({medium:n(p),small:n(u)}),()=>Q("waiting_live_upcoming_title")]),_(S,C)},$=S=>{var C=XS(),I=T(C);let R;var E=T(I,!0);w(I);var P=k(I,2);let O=v(()=>n(u)||n(p)),D=v(()=>i()||0);yv(P,{get isSmallSize(){return n(O)},get startTime(){return n(D)},onTimerOver:()=>N(o,!0)}),w(C),nt(C,U=>N(a,U),()=>n(a)),B((U,z)=>{R=se(I,1,"timer__title s-r",null,R,U),pe(E,z)},[()=>({medium:n(p),small:n(u)}),()=>Q("waiting_live_timer_title")]),_(S,C)};V(b,S=>{n(o)?S(y):S($,!1)})}w(f),B(()=>Ge(f,`background-image: url(${e.thumbUrl})`)),Mn(f,"clientWidth",S=>N(d,S)),Mn(f,"clientHeight",S=>N(s,S)),_(t,f),H()}st(["contextmenu","click"]);var e2=L('<div class="waiting-container s-t"><div class="waiting-caption s-t"><!> <p class="waiting-title s-t"> </p></div></div>'),t2={hash:"s-t",code:'.waiting-container.s-t{align-items:center;background-color:var(--black);background-position:50%;background-repeat:no-repeat;background-size:cover;display:flex;justify-content:center}.waiting-container.s-t,.waiting-container.s-t:before{height:100%;left:0;position:absolute;top:0;width:100%}.waiting-container.s-t:before{backdrop-filter:blur(10px);background-color:rgba(0,0,0,.4);content:""}.waiting-caption.s-t{align-items:center;display:flex;flex-direction:column;position:relative}.waiting-title.s-t{font-size:20px;font-weight:400;line-height:1.2;margin:0;padding:20px;text-align:center}'};function sl(t,e){F(e,!0),q(t,t2);let i=g(e,"thumbUrl",3,""),o={recover:Q("waiting_live_recover_title"),record:Q("waiting_record_title")},r=v(()=>o[e.kind]||"");var a=e2();a.__contextmenu=function(...p){var m;(m=e.onContextMenu)==null||m.apply(this,p)},a.__click=function(...p){var m;(m=e.onClick)==null||m.apply(this,p)};var l=T(a),d=T(l);Qa(d,{style:"position: static; transform: translate(0, 0)"});var s=k(d,2),u=T(s,!0);w(s),w(l),w(a),B(()=>{Ge(a,`background-image: url('${i()}')`),pe(u,n(r))}),_(t,a),H()}st(["contextmenu","click"]);var i2=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 xv(t){Je(t,{width:"16",height:"16",testId:"check-mark-icon",children:(e,i)=>{var o=i2();_(e,o)},$$slots:{default:!0}})}var o2=L('<div class="select-icon s-1x"><!></div>'),n2={hash:"s-1x",code:".select-icon.s-1x{margin-right:auto;opacity:.9;padding-right:12px;position:relative;top:3px}"};function Dc(t){q(t,n2);var e=o2(),i=T(e);xv(i,{}),w(e),_(t,e)}var r2=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},s2=(t,e)=>{Zl(t,()=>e.item.selectItem(e.item.value))},a2=L("<p> </p>"),l2=L('<p class="sublabel s-1s"> </p>'),d2=L('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),c2={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 wv(t,e){F(e,!0),q(t,c2);let i=g(e,"isMobile",3,!1);var o=d2();let r;o.__click=[r2,e],o.__keydown=[s2,e];var a=T(o);{var l=y=>{Dc(y,{})};V(a,y=>{e.item.selected&&y(l)})}var d=k(a,2);let s;var u=T(d);{var p=y=>{var $=Le(),S=de($);Bi(S,()=>e.item.valueComponent,(C,I)=>{I(C,ks(()=>{var R;return(R=e.item.valueComponentParams)!=null?R:{}}))}),_(y,$)},m=y=>{var $=a2();let S;var C=T($,!0);w($),B(I=>{var R;S=se($,1,"label s-1s",null,S,I),pe(C,(R=e.item.label)!=null?R:e.item.value)},[()=>({mobile:i()})]),_(y,$)};V(u,y=>{e.item.valueComponent?y(p):y(m,!1)})}var f=k(u,2);{var b=y=>{var $=l2(),S=T($,!0);w($),B(()=>pe(S,e.item.sublabel)),_(y,$)};V(f,y=>{e.item.sublabel&&y(b)})}w(d),w(o),B((y,$,S)=>{r=se(o,1,"item",null,r,y),Ue(o,"data-value",e.item.value),Ue(o,"aria-label",$),Ue(o,"data-testid",e.item.dataTestid),s=se(d,1,"menu-item-value s-1s",null,s,S),Ue(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),H()}st(["click","keydown"]);var u2=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function Sv(t,e){F(e,!0);let i=g(e,"isMobile",3,!1),o=g(e,"refMenuItems",15),r=v(()=>()=>e.openSubMenuList(e.item.children)),a=v(()=>$=>tp($,n(r)));var l=u2();let d;l.__click=function(...$){var S;(S=n(r))==null||S.apply(this,$)},l.__keydown=function(...$){var S;(S=n(a))==null||S.apply(this,$)};var s=T(l);{var u=$=>{Dc($,{})};V(s,$=>{e.item.selected&&$(u)})}var p=k(s,2);let m;var f=T(p);{var b=$=>{var S=Le();let C=v(()=>e.item.valueComponent);var I=de(S);Bi(I,()=>n(C),(R,E)=>{E(R,ks(()=>{var P;return(P=e.item.valueComponentParams)!=null?P:{}}))}),_($,S)},y=$=>{var S=hs();B(()=>pe(S,e.item.label)),_($,S)};V(f,$=>{e.item.valueComponent?$(b):$(y,!1)})}w(p),w(l),nt(l,$=>o(o()[e.item.id]=$,!0),()=>{var $;return($=o())==null?void 0:$[e.item.id]}),B(($,S)=>{var C;d=se(l,1,"item",null,d,$),Ue(l,"aria-label",(C=e.item.ariaLabel)!=null?C:e.item.label),Ue(l,"data-testid",e.item.id),m=se(p,1,"menu-item-value",null,m,S)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),_(t,l),H()}st(["click","keydown"]);var os={"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 f2=(t,e)=>{sb(t,e.returnFromSubMenu,e.closeSettingsMenu)},m2=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},v2=(t,e)=>{ac(t)&&(Rr(t),e.returnFromSubMenu())},g2=L('<div><ul role="menu"><li role="menuitem" tabindex="0" data-testid="return-to-settings-menu"><!> <p class="title s-1l"> </p></li> <!></ul></div>'),h2={hash:"s-1l",code:".sub-menu.s-1l{--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-1l .item.mobile{font-size:14px;line-height:var(--item-label-line-height);padding:var(--item-padding-vertical-mobile) 17px}.sub-menu.s-1l{padding-top:calc(var(--edge-item-padding-vertical) + var(--item-padding-vertical) + var(--item-label-line-height))}.sub-menu.mobile.s-1l{padding-top:calc(var(--edge-item-padding-vertical-mobile) + var(--item-padding-vertical-mobile) + var(--item-label-line-height) + 1px)}.sub-menu.s-1l .items:where(.s-1l) .item.header:where(.s-1l){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-1l .title:where(.s-1l){margin-left:8px}.sub-menu.s-1l .item{padding:var(--item-padding-vertical) 12px;padding-right:22px}.items.s-1l .item:first-child:not(.mobile){padding-top:var(--edge-item-padding-vertical)}.items.s-1l .item:last-child:not(.mobile){padding-bottom:var(--edge-item-padding-vertical)}.items.s-1l .item.mobile:first-child{padding-top:var(--edge-item-padding-vertical-mobile)}.items.s-1l .item.mobile:last-child{padding-bottom:var(--edge-item-padding-vertical-mobile)}.sub-menu.s-1l .item.bottomBordered{border-bottom:var(--divider-border)}.sub-menu.s-1l .item .sublabel{font-size:12px;line-height:14px}.item.s-1l:not(.mobile) p:where(.s-1l),.sub-menu.s-1l .item:not(.mobile) .label{font-size:13px;line-height:var(--item-label-line-height)}"};function Cv(t,e){F(e,!0),q(t,h2);let[i,o]=Re(),r=()=>x(m,"$isFullscreen",i),a=()=>x(f,"$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);Dt(()=>{let Y=e.items.findIndex(re=>re.selected);u().children[Y+1].focus()});let p=ve(),m=p.ui.isFullscreen,f=p.ui.playerSize,b=K(void 0),y=K(0),$=K(0),S=v(()=>l()&&r()?`max-height: ${Math.round(a().height*.6)}px`:l()?"":`max-height: ${a().height-32-n($)-d()}px; overflow: auto;`),C=v(()=>Math.max(e.minWidth,n(y)));var I=g2();let R;var E=T(I);let P;E.__keydown=[f2,e];var O=T(E);let D;O.__click=[m2,e],O.__keydown=[v2,e];var U=T(O);Vr(U,{direction:"left"});var z=k(U,2),G=T(z,!0);w(z),w(O),nt(O,Y=>N(b,Y),()=>n(b));var le=k(O,2);Ti(le,17,()=>e.items,zd,(Y,re)=>{var X=Le(),we=de(X);{var ce=he=>{wv(he,{get item(){return n(re)},get isMobile(){return l()}})},ne=(he,xe)=>{{var Z=Ne=>{Sv(Ne,{get isMobile(){return l()},get item(){return n(re)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};V(he,Ne=>{n(re).type==="OPEN_SUB_MENU"&&Ne(Z)},xe)}};V(we,he=>{n(re).type==="SELECT_VALUE"?he(ce):he(ne,!1)})}_(Y,X)}),w(E),nt(E,Y=>u(Y),()=>u()),w(I),B((Y,re,X)=>{R=se(I,1,"sub-menu menu s-1l",null,R,Y),Ue(I,"data-testid",`sub-menu-${e.id}`),Ge(I,`min-width: ${n(C)}px`),P=se(E,1,"items s-1l",null,P,re),Ge(E,n(S)),D=se(O,1,"item header back s-1l",null,D,X),Ue(O,"aria-label",s()),pe(G,e.title)},[()=>({desktop:!l(),mobile:l()}),()=>({mobile:l()}),()=>({mobile:l()})]),Mn(O,"clientWidth",Y=>N(y,Y)),Mn(O,"clientHeight",Y=>N($,Y)),_(t,I),H(),o()}st(["keydown","click"]);var qb=require("@vkontakte/videoplayer-shared/es2015");var _2=(t,e)=>tp(t,e()),b2=(t,e)=>{t.stopPropagation(),e()()},$2=L('<div class="value s-1n"> </div>'),y2=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),x2={hash:"s-1n",code:".value.s-1n{opacity:.7;overflow:hidden;position:relative;text-overflow:ellipsis}"};function Iv(t,e){F(e,!0),q(t,x2);let i=g(e,"isMobile",3,!1),o=g(e,"onClick",3,qb.noop),r=g(e,"valueComponent",3,void 0),a=g(e,"ref",15);var l=y2();let d;l.__click=[b2,o],l.__keydown=[_2,o];var s=T(l),u=T(s);{var p=C=>{Ja(C,{get icon(){return e.icon}})},m=C=>{var I=Le();let R=v(()=>e.icon);var E=de(I);Bi(E,()=>n(R),(P,O)=>{O(P,{})}),_(C,I)};V(u,C=>{typeof e.icon=="string"?C(p):C(m,!1)})}w(s);var f=k(s,2),b=T(f,!0);w(f);var y=k(f,2);{var $=C=>{var I=Le();let R=v(r);var E=de(I);Bi(E,()=>n(R),(P,O)=>{O(P,{})}),_(C,I)},S=C=>{var I=$2(),R=T(I,!0);w(I),B(()=>pe(R,e.value)),_(C,I)};V(y,C=>{r()?C($):C(S,!1)})}w(l),nt(l,C=>a(C),()=>a()),B(C=>{d=se(l,1,"item",null,d,C),Ue(l,"aria-label",e.ariaLabel),Ue(l,"data-testid",e.id),pe(b,e.label)},[()=>({mobile:i()})]),_(t,l),H()}st(["click","keydown"]);var Ev=require("@vkontakte/videoplayer-shared/es2015");var w2=(t,e)=>{Zl(t,()=>e())},S2=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),T2=L('<img class="icon" aria-hidden="true"/>'),C2=L('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label s-1m"> </div></li>'),I2={hash:"s-1m",code:".label.s-1m{overflow:hidden;text-overflow:ellipsis}"};function Pv(t,e){F(e,!0),q(t,I2);let i=g(e,"isMobile",3,!1),o=g(e,"onClick",3,Ev.noop),r=g(e,"closeSettings",3,Ev.noop),a=K(!1),l=()=>{N(a,!0)},d=S=>{S==null||S.stopPropagation(),o()(),r()()};var s=C2();let u;s.__click=d,s.__keydown=[w2,d];var p=T(s),m=T(p);{var f=S=>{var C=Le(),I=de(C);{var R=P=>{var O=S2();_(P,O)},E=P=>{var O=T2();B(()=>Ue(O,"src",e.icon)),$t("error",O,l),La(O),_(P,O)};V(I,P=>{n(a)?P(R):P(E,!1)})}_(S,C)},b=S=>{var C=Le();let I=v(()=>e.icon);var R=de(C);Bi(R,()=>n(I),(E,P)=>{P(E,{})}),_(S,C)};V(m,S=>{typeof e.icon=="string"?S(f):S(b,!1)})}w(p);var y=k(p,2),$=T(y,!0);w(y),w(s),B(S=>{var C;u=se(s,1,"item",null,u,S),Ue(s,"aria-label",(C=e.ariaLabel)!=null?C:e.label),Ue(s,"data-testid",e.id),pe($,e.label)},[()=>({mobile:i()})]),_(t,s),H()}st(["click","keydown"]);var Qb=require("@vkontakte/videoplayer-shared/es2015");var E2=L('<div class="toggle_wrap s-1r"><div></div> <div class="toggle-label s-1r"></div></div>'),P2={hash:"s-1r",code:'.toggle_wrap.s-1r{cursor:pointer;font-size:12px;line-height:15px;min-height:15px;padding:0;user-select:none}.toggle.s-1r{background-color:var(--toggle-color-separator);border-radius:45px;cursor:pointer;float:right;height:9px;margin-top:3px;width:28px}.toggle.s-1r:after{background-color:var(--toggle-color-off);border-radius:50%;content:"";float:left;height:15px;left:0;position:relative;top:-3px;transition:left .1s ease;width:15px}.toggle.on.s-1r:after{background-color:var(--toggle-color-on);left:13px}.toggle-label.s-1r{overflow:hidden}'};function Av(t,e){q(t,P2);let i=g(e,"enabled",3,!1);var o=E2(),r=T(o);let a;vi(2),w(o),B(l=>a=se(r,1,"toggle s-1r",null,a,l),[()=>({on:i()})]),_(t,o)}var A2=(t,e,i)=>{ab(t,e(),o=>i()(o))},k2=(t,e,i)=>{t.stopPropagation(),e()(!i())},L2=L('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),M2=L('<li role="menuitem" tabindex="0"><!></li>');function kv(t,e){F(e,!0);let i=g(e,"isMobile",3,!1),o=g(e,"onClick",3,Qb.noop),r=g(e,"enabled",3,!1),a=g(e,"tooltipText",3,void 0),l=g(e,"maxTooltipWidth",3,void 0);var d=M2();let s;d.__click=[k2,o,r],d.__keydown=[A2,r,o];var u=T(d);Ya(u,{get content(){return a()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return l()},children:(p,m)=>{var f=L2();let b;var y=T(f),$=T(y);{var S=P=>{Ja(P,{get icon(){return e.icon}})},C=P=>{var O=Le();let D=v(()=>e.icon);var U=de(O);Bi(U,()=>n(D),(z,G)=>{G(z,{})}),_(P,O)};V($,P=>{typeof e.icon=="string"?P(S):P(C,!1)})}w(y);var I=k(y,2),R=T(I,!0);w(I);var E=k(I,2);Av(E,{get enabled(){return r()}}),w(f),B(P=>{b=se(f,1,"switch-wrapper",null,b,P),pe(R,e.label)},[()=>({mobile:i()})]),_(p,f)},$$slots:{default:!0}}),w(d),B(p=>{var m;s=se(d,1,"item switch-item",null,s,p),Ue(d,"aria-label",(m=e.ariaLabel)!=null?m:e.label),Ue(d,"data-testid",e.id)},[()=>({mobile:i()})]),_(t,d),H()}st(["click","keydown"]);var Fc=require("@vkontakte/videoplayer-shared/es2015");var Gb=()=>{let t=K(ci([])),e=v(()=>(n(t).length?n(t).at(-1):null)||null);return{get current(){return n(e)},pushSubMenu:i=>{n(t).push(i)},popSubMenu:()=>{N(t,n(t).slice(0,-1),!0)},popAllSubMenus:()=>{N(t,[],!0)}}};var V2=L('<div class="quality-icon s-1q"><!></div>'),R2=L('<div class="quality-label s-1q"><span> </span> <!></div>'),N2={hash:"s-1q",code:".quality-label.s-1q{position:relative}.quality.s-1q{font-size:13px;line-height:18px}.quality.sub.s-1q{opacity:.7}.quality-icon.s-1q{display:flex;padding-left:2px;position:absolute;right:0;top:0;transform:translateX(100%)}.quality-icon.s-1q svg{color:var(--blue-light)}"};function al(t,e){F(e,!0),q(t,N2);let i=g(e,"isSubCase",3,!1),o=v(()=>sp(e.quality));var r=R2(),a=T(r);let l;var d=T(a,!0);w(a);var s=k(a,2);{var u=p=>{var m=V2();let f=v(()=>n(o));var b=T(m);Bi(b,()=>n(f),(y,$)=>{$(y,{})}),w(m),_(p,m)};V(s,p=>{n(o)&&!e.isMobile&&p(u)})}w(r),B(p=>{l=se(a,1,"s-1q",null,l,p),pe(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),_(t,r),H()}var Zb=require("@vkontakte/videoplayer-shared/es2015");var Lv=require("@vkontakte/videoplayer-core/es2015");var Yb=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},jb=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=Yb({quality:t,availableQualities:e});return i?t===Lv.VideoQuality.INVARIANT?Q("auto_quality_invariant"):Q("auto_quality",{actual:o}):o},Xb=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===Lv.VideoQuality.INVARIANT?i:`${i}${Yb({quality:t,availableQualities:e})}`:"...";var O2=L('<div class="menu-item-value-wrapper s-1u"><!></div>'),D2={hash:"s-1u",code:".menu-item-value-wrapper.s-1u{line-height:normal}"};function cd(t,e){F(e,!0),q(t,D2);let[i,o]=Re(),r=()=>x(s,"$currentQuality$",i),a=()=>x(u,"$availableQualities$",i),l=()=>x(p,"$isMobile$",i),d=ve(),s=d.state.currentQuality$,u=d.state.availableQualities$,p=d.ui.isMobile,m=" · ",f=v(()=>e.prefix+(e.selected&&r()!==Zb.VideoQuality.INVARIANT?m:"")),b=v(()=>Xb({prefix:n(f),quality:r(),availableQualities:a(),onlyPrefix:!e.selected}));var y=O2(),$=T(y);let S=v(()=>e.selected?r():void 0);al($,{get quality(){return n(S)},get label(){return n(b)},get isMobile(){return l()},isSubCase:!0}),w(y),_(t,y),H(),o()}var B2=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")},F2={br:!0,span:!0},Mv=(t,e={})=>{var d,s,u,p,m,f,b;if(!t)return t;let i=Ae(Ae({},F2),e),o=Object.keys(i);if(!o.length)return t;let r=B2(o),a=[],l=0;for(let y of t.matchAll(r)){let $=y[0],S=((d=y.groups)==null?void 0:d.keyhtml)||((s=y.groups)==null?void 0:s.keyi18n)||((u=y.groups)==null?void 0:u.keyhtmlself)||((p=y.groups)==null?void 0:p.keyi18nself)||"",{index:C}=y;if(!i[S]){a.push(t.slice(l,C)),l=C+$.length;continue}let I=(m=y.groups)!=null&&m.childrenhtml?Mv(y.groups.childrenhtml,i):"",R=(f=y.groups)!=null&&f.childrenhtml?$.replace(new RegExp((b=y.groups)==null?void 0:b.childrenhtml),()=>I||""):$;a.push(t.slice(l,C),R),l=C+$.length}return l===0?t:(a.push(t.slice(l)),a.join(""))};function Bc(t,e){F(e,!1);let i=g(e,"message",8),o=Mv(i());To();var r=Le(),a=de(r);{var l=d=>{var s=Le(),u=de(s);Wd(u,()=>o),_(d,s)};V(a,d=>{o&&d(l)})}_(t,r),H()}var H2=L('<p class="quality-applies sublabel s-1t"><!></p>'),U2={hash:"s-1t",code:".quality-applies.s-1t{color:hsla(0,0%,100%,.5);display:flex;justify-content:end;padding:3px 0}.quality-applies span{color:#70c1ff}"};function Vv(t,e){F(e,!1),q(t,U2),To();var i=H2(),o=T(i);let r=En(()=>Q("quality_applience",{action:`<span>${Q("quality_applience_action")}</span>`}));Bc(o,{get message(){return n(r)}}),w(i),_(t,i),H()}var e$=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:cd,valueComponentParams:{prefix:Q("other_quality"),selected:o},children:"QUALITY"}},Rv=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:Q("auto_quality_limit"),valueComponent:e?cd:void 0,valueComponentParams:{prefix:Q("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),t$=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:Vv,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),Nv=({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?cd:void 0,valueComponentParams:{prefix:Q("high_quality"),selected:i},sublabel:Q("high_quality_description")}),Ov=({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?cd:void 0,valueComponentParams:{prefix:Q("traffic_saving_quality"),selected:i},sublabel:Q("traffic_saving_quality_description")});var yp=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),xp=(t,e)=>{var l;if(!t)return"";let{language:i,label:o}=t,r;if(i==="und"?r=void 0:i&&(r=(l=wc(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=yp(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=yp(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=yp(t,d);return Q("audio_stream_display_language_index",{language:r,index:s})}}let a=yp(t,e);return Q("audio_stream_display_unknown",{index:a})};var z2={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:r}=t,a=[];return i&&a.push({handler:Rv,selected:e&&!o&&!r||!1}),a.push({handler:Ov,selected:o},{handler:Nv,selected:r}),{title:Q("submenu_quality"),id:"QUALITY_DETAILS",items:[t$(t),...a.map(({handler:l,selected:d})=>l({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),e$(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:Q("submenu_quality"),closeSettingsMenu:t,items:i.map(r=>({type:"SELECT_VALUE",value:r.value,valueComponent:al,valueComponentParams:{quality:r.value,label:r.displayValue,isMobile:o,isSubCase:!0},selectItem:a=>e(a,"to-video"),selected:r.selected,label:r.displayValue}))}),QUALITY_APPLIENCE:t=>{var i,o,r;let{closeSettingsMenu:e}=t;return{id:"QUALITY_APPLIENCE",title:Q("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:Rv,selected:((i=Wu())==null?void 0:i.type)==="auto_quality"},{handler:Ov,selected:((o=Wu())==null?void 0:o.type)==="traffic_saving"},{handler:Nv,selected:((r=Wu())==null?void 0:r.type)==="high_quality"}].map(({handler:a,selected:l})=>a({labelWithQuality:!1,appliesTo:"as-default",selected:l},t))}},AUDIO_LANGUAGES:({closeSettingsMenu:t,availableAudioStreams:e,currentAudioStream:i,selectAudioLanguage:o})=>({id:"AUDIO_LANGUAGES",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:xp(r,e)}))}),PLAYBACK_RATE_SUB_MENU:({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"PLAYBACK_RATE_SUB_MENU",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===On?"sub_off":void 0}))})},i$=({subMenuId:t,context:e})=>t?[z2[t](e)]:[];var W2=Ee('<path d="M.1 6.5c0-2.24 0-3.36.44-4.22A4 4 0 0 1 2.28.54C3.14.1 4.26.1 6.5.1h5c2.24 0 3.36 0 4.22.44a4 4 0 0 1 1.74 1.74c.44.86.44 1.98.44 4.22s0 3.36-.44 4.22a4 4 0 0 1-1.74 1.74c-.84.43-1.93.44-4.07.44l.55 2.2h1.9a.9.9 0 0 1 0 1.8H3.9a.9.9 0 1 1 0-1.8h1.9l.55-2.2c-2.14 0-3.23-.01-4.07-.44a4 4 0 0 1-1.74-1.74C.1 9.86.1 8.74.1 6.5m11.4-4.6h-5c-1.15 0-1.9 0-2.48.05-.56.04-.79.12-.92.19a2.2 2.2 0 0 0-.96.96 2 2 0 0 0-.2.92C1.9 4.6 1.9 5.35 1.9 6.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 0 0 .96-.96c.07-.13.15-.36.2-.92.04-.58.04-1.33.04-2.48s0-1.9-.05-2.48a3 3 0 0 0-.19-.92 2.2 2.2 0 0 0-.96-.96 2 2 0 0 0-.92-.2c-.58-.04-1.33-.04-2.48-.04m-3.3 11-.55 2.2h2.7l-.55-2.2z"></path>');function Dv(t){Je(t,{testId:"traffic-saving-icon",children:(e,i)=>{var o=W2();_(e,o)},$$slots:{default:!0}})}var K2=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 Bv(t){Je(t,{width:"18",height:"15",children:(e,i)=>{var o=K2();_(e,o)},$$slots:{default:!0}})}var q2=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 Fv(t){Je(t,{testId:"play-speed-icon",children:(e,i)=>{var o=q2();_(e,o)},$$slots:{default:!0}})}var Q2=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 Hv(t){Je(t,{testId:"download-icon",children:(e,i)=>{var o=Q2();_(e,o)},$$slots:{default:!0}})}var G2=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 Uv(t){Je(t,{testId:"report-icon",children:(e,i)=>{var o=G2();_(e,o)},$$slots:{default:!0}})}var Y2=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 wp(t){Je(t,{children:(e,i)=>{var o=Y2();_(e,o)},$$slots:{default:!0}})}var j2=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 zv(t){Je(t,{testId:"info-icon",children:(e,i)=>{var o=j2();_(e,o)},$$slots:{default:!0}})}var X2=L('<div class="menu-item-value-wrapper s-1w"><!></div>'),Z2={hash:"s-1w",code:".menu-item-value-wrapper.s-1w{line-height:normal}"};function Wv(t,e){F(e,!0),q(t,Z2);let[i,o]=Re(),r=()=>x(u,"$currentQuality$",i),a=()=>x(p,"$availableQualities$",i),l=()=>x(m,"$isAutoQualityEnabled$",i),d=()=>x(f,"$isMobile$",i),s=ve(),u=s.state.currentQuality$,p=s.state.availableQualities$,m=s.state.isAutoQualityEnabled$,f=s.ui.isMobile,b=v(()=>jb({quality:r(),availableQualities:a(),isAutoQualityEnabled:l()}));var y=X2(),$=T(y);al($,{get quality(){return r()},get label(){return n(b)},get isMobile(){return d()}}),w(y),_(t,y),H(),o()}var eT={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:mc,label:Q("menu_quality"),value:e,valueComponent:Wv,weight:os["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:os["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:Q("aria_label_submenu_traffic_saving"),icon:Dv,label:Q("menu_traffic_saving"),enabled:t,tooltipText:Q("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=xp(t,e);return{id:"AUDIO_LANGUAGES",weight:os["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:Q("aria_label_menu_audio_languages",{actual:i}),icon:Bv,label:Q("menu_audio_languages"),value:i,children:"AUDIO_LANGUAGES"}},PLAYBACK_RATE:({availablePlaybackRates:t,currentPlaybackRate:e})=>{var o;let i=((o=t.find(r=>r.value===e))==null?void 0:o.displayValue)||"";return{id:"PLAYBACK_RATE",weight:os["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:Q("aria_label_menu_rate",{actual:i}),icon:Fv,label:Q("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:os["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:Q("aria_label_menu_subtitle",{actual:t.displayValue}),icon:da,label:Q("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:os.download,type:"CLICK",onClick:t,label:Q("download_video_caption"),ariaLabel:Q("aria_label_menu_download"),icon:Hv}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:os.report,type:"CLICK",onClick:t,label:Q("menu_report"),ariaLabel:`${Q("menu_report")}. ${Q("aria_label_new_tab_alert")}`,icon:Uv,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:os["copy-data"],type:"CLICK",onClick:t,label:Q("menu_copy_debug"),ariaLabel:Q("menu_copy_debug"),icon:wp,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:os["save-trace-info"],type:"CLICK",onClick:t,label:Q("menu_save_debug"),ariaLabel:Q("menu_save_debug"),icon:wp,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t})=>({id:"DEBUG_INFO",weight:os["debug-info"],type:"CLICK",onClick:t,ariaLabel:Q("aria_label_menu_debug_overlay"),label:Q("menu_debug_overlay"),icon:zv,isHiddenFor:["desktop"]})},o$=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(r=>eT[r](e)),...i.map(r=>Qt(Ae({},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(Ka)};var iT=(t,e)=>{ep(t,e)},oT=L('<div><div> </div> <div class="close s-v"></div></div>'),nT=L('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),rT=L("<div><!> <!></div>"),sT={hash:"s-v",code:'.settings-menu-container.mobile.s-v{width:100%}.settings-menu-container.s-v ul{list-style-type:none;margin:0;padding:0}.settings-menu-container.s-v .menu{background-color:var(--settings-bg);border-radius:var(--settings-radius);overflow:hidden;transition:opacity .2s,visibility .2s}.settings-menu-container.s-v .menu .item:first-child:not(.mobile){border-top-left-radius:var(--settings-radius);border-top-right-radius:var(--settings-radius)}.settings-menu-container.s-v .menu .item:last-child{border-bottom-left-radius:var(--settings-radius);border-bottom-right-radius:var(--settings-radius)}.settings-menu-container.s-v .settings-menu .item:first-child:not(.mobile){padding-top:6px}.settings-menu-container.s-v .settings-menu .item:last-child:not(.mobile){padding-bottom:6px}.settings-menu-container.s-v .menu.desktop{bottom:0;max-width:100%;position:absolute;right:0}.settings-menu.s-v{line-height:40px}.settings-menu.desktop.s-v{min-width:300px}.settings-menu-container.s-v .menu.mobile{background:var(--mobile-settings-bg);font-size:15px;line-height:50px;width:100%}.settings-menu-container.s-v .menu.mobile.hidden{display:none}.settings-menu-container.s-v .menu .item:not(.switch-item),.settings-menu-container.s-v .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-v .menu .item:hover{background-color:var(--settings-item-bg-hover)}.settings-menu-container.s-v .menu .item.mobile:hover{background:var(--mobile-settings-bg)}.settings-menu.s-v .item:not(.switch-item),.settings-menu.s-v .switch-wrapper{padding:0 32px 0 18px}.settings-menu.s-v .item.mobile:not(.switch-item),.settings-menu.s-v .switch-wrapper.mobile{padding:0 14px}.settings-menu.s-v .icon-wrapper{align-items:center;display:flex;height:24px;justify-content:center;margin-right:16px;min-width:24px;width:24px}.settings-menu.s-v .label{flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis}.settings-menu.s-v .item.header.mobile:where(.s-v){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-v .items::-webkit-scrollbar{width:8px}.settings-menu-container.s-v .items::-webkit-scrollbar-track{background-color:#3a3a3a;border-radius:4px;box-shadow:none}.settings-menu-container.s-v .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-v .items::-webkit-scrollbar-thumb:hover{background-color:#777}.settings-menu-container.s-v .items.mobile{max-height:160px;overflow-x:hidden;overflow-y:auto;text-align:left}.close.s-v{height:12px;margin-right:-12px;padding:12px;position:relative;width:12px}.close.s-v:after,.close.s-v:before{background-color:var(--white);content:" ";height:12px;left:18px;position:absolute;width:2px}.close.s-v:before{transform:rotate(45deg)}.close.s-v:after{transform:rotate(-45deg)}'};function Hc(t,e){F(e,!0),q(t,sT);let[i,o]=Re(),r=()=>x(Be,"$settingsMenuVisible",i),a=()=>x(fe,"$settingsMenuOpenedByKeyboard",i),l=()=>x(ze,"$debugPanelVisible",i),d=()=>x(Se,"$isMobile",i),s=()=>x(Me,"$playerSize",i),u=()=>x(Oe,"$hasMpegSources$",i),p=()=>x(Fe,"$mobileNotReportControlHidden$",i),m=()=>x(Z,"$autoQualityLimitingAvailable$",i),f=()=>x(j,"$availableSubtitlesList$",i),b=()=>x(qe,"$isLiveWithPlaybackSpeed",i),y=()=>x(ne,"$availableAudioStreams$",i),$=()=>x(Ke,"$availablePlaybackRates$",i),S=()=>x(ce,"$currentAudioStream$",i),C=()=>x(A,"$currentPlaybackRate$",i),I=()=>x(je,"$trafficSavingEnabled",i),R=()=>x(he,"$currentQuality$",i),E=()=>x(Ne,"$isAutoQualityEnabled$",i),P=()=>x(Ce,"$currentSubtitle$",i),O=()=>x(tt,"$additionalSettingsMenuItems$",i),D=()=>x(ue,"$isAutoQualityAvailable$",i),U=()=>x(xe,"$availableQualities$",i),z=()=>x(Te,"$highQualityEnabled",i),G=g(e,"ref",15,void 0),le=g(e,"playerControlsHeight",3,0),Y=ci({}),re=ci({}),X=ve(),we=Rt(),ce=X.state.audioStream$,ne=X.state.availableAudioStreams$,he=X.state.currentQuality$,xe=X.state.availableQualities$,Z=X.state.autoQualityLimitingAvailable$,Ne=X.state.isAutoQualityEnabled$,ue=X.state.isAutoQualityAvailable$,A=X.state.currentPlaybackRate$,Ke=X.state.availablePlaybackRates$,Ce=X.state.currentSubtitle$,j=X.state.availableSubtitlesList$,ie=X.state.canDownload,Oe=X.state.hasMpegSources$,Be=X.ui.settingsMenu.visible$,fe=X.ui.settingsMenu.openedByBtnKeyboard$,ee=X.ui.settingsMenu.ref$,Se=X.ui.isMobile,Fe=X.ui.mobileNotReportControlHidden$,qe=X.state.canChangePlaybackSpeed$,je=X.state.trafficSavingEnabled$,Te=X.state.highQualityEnabled$,Me=X.ui.playerSize,ze=X.ui.debugPanelVisible,Nt=X.state.isInteractiveTime$,tt=X.ui.additionalSettingsMenuItems$,Bt=X.ui.t,Gt=X.actions.internal.downloadVideo,Ct=X.actions.internal.closeSettingsMenu,ti=X.actions.internal.openSettingsSubMenu,Ft=X.actions.internal.closeSettingsSubMenu,$e=K(!1),_e=K(void 0),J=Gb();De(()=>{!r()&&J.current&&(Ft(re[J.current]),J.popAllSubMenus())}),De(()=>{r()||N(_e,void 0)}),De(()=>{!J.current&&n(_e)&&rb(Y,n(_e))}),De(()=>{G()&&ee.set(G())});function ye(At){return _t(this,null,function*(){var W;J.pushSubMenu(At),yield bo(),ti(At,re[At]);let Ht=(W=G())==null?void 0:W.firstElementChild;Ht&&um(Ht)})}function Pe(At){var Ht;At==null||At.stopPropagation(),a()||(Ht=e.returnFocus)==null||Ht.call(e),Ct(),N($e,!1)}function Pt(At,Ht){X.actions.internal.setQuality(At,{appliesTo:Ht}),Pe()}function Ve(At){X.actions.internal.setAudioStream(At),Pe()}function at(At,Ht){X.actions.internal.setTrafficSavingEnabled(At,Ht),we.features.qualityDetailsSubMenuEnabled&&Pe()}function gt(At,Ht){X.actions.internal.setHighQualityEnabled(At,Ht),Pe()}function be(At){X.actions.internal.setPlaybackRate(At),Pe()}function et(At){X.actions.internal.setSubtitle(At),Pe()}function We(){Gt()}function rt(){(0,Fc.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),X.actions.internal.reportProblem(),X.actions.internal.pause()}function ii(){jl(X.actions.internal.getDebugTextData())}let li=()=>{let At=X.actions.internal.getTraceTextData(),Ht=new Blob([...At],{type:"application/json"}),W=window.URL.createObjectURL(Ht);Ba(W,"vk_player_trace_info","json")};function gi(){ze.set(!l())}function yi(){N($e,!0)}function ro(){N($e,!1)}function $o(){return d()?`max-height: ${Math.round(s().height*.6)}px`:`max-height: ${s().height-32-le()}px; overflow: auto;`}let pi=v(()=>ie&&u()&&!p()),pt=v(()=>we.features.trafficSaving&&!p()&&m()&&!we.features.qualityDetailsSubMenuEnabled),Ai=v(()=>f().length>0&&!p()),Zt=v(()=>!!b()&&!p()),Tt=v(()=>we.features.audioLanguages&&y().length>=2&&!p()),ri=v(()=>!p());Dt(()=>Nt.subscribe(At=>{At&&!d()&&!n($e)&&!a()&&Pe()}));let Jt=v(()=>{let At=[n(ri)&&"QUALITY_SETTINGS",n(Tt)&&"AUDIO_LANGUAGES",n(Zt)&&"PLAYBACK_RATE",n(Ai)&&"SUBTITLES",n(pt)&&"TRAFFIC_SAVING_SWITCH",n(pi)&&"DOWNLOAD",we.showSupport&&"SHOW_SUPPORT","COPY_DATA",we.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(Ht=>!!Ht);return o$({items:At,context:{qualityDetailsSubMenuEnabled:we.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:$(),currentAudioStream:S(),availableAudioStreams:y(),currentPlaybackRate:C(),selectPlaybackRate:be,trafficSavingEnabled:I(),toggleTrafficSaving:at,currentQuality:R()||Fc.VideoQuality.INVARIANT,isAutoQualityEnabled:E()||!1,currentSubtitle:P(),isMobile:d(),onDownloadClick:We,onCopyDataClick:ii,onReportProblemClick:rt,onSaveTraceDataClick:li,toggleShowDebugInfo:gi},additionalSettingsMenuItems:O()})}),yt=v(()=>i$({subMenuId:J.current,context:{availablePlaybackRates:$(),selectPlaybackRate:be,trafficSavingEnabled:I(),toggleTrafficSaving:at,currentQuality:R()||Fc.VideoQuality.INVARIANT,isAutoQualityEnabled:E()||!1,isAutoQualityAvailable:D()||!1,availableQualities:U(),highQualityEnabled:z(),toggleHighQuality:gt,availableAudioStreams:y(),availableSubtitlesList:f(),closeSettingsMenu:Ct,currentAudioStream:S(),isMobile:d(),selectAudioLanguage:Ve,selectQuality:Pt,selectSubtitle:et}}));var Xe=rT();let Si;var so=T(Xe);{var nn=At=>{var Ht=nT();let W;Ht.__keydown=[iT,Ct];var Mt=T(Ht);{var di=jt=>{var ct=oT();let Mi;var Vi=T(ct),rn=T(Vi,!0);w(Vi);var Ro=k(Vi,2);Ro.__click=Pe,w(ct),B((yo,Ui)=>{Mi=se(ct,1,"item header s-v",null,Mi,yo),pe(rn,Ui)},[()=>({mobile:d()}),()=>Bt("submenu_settings")]),_(jt,ct)};V(Mt,jt=>{d()&&jt(di)})}var dt=k(Mt,2);let It;Ti(dt,21,()=>n(Jt),jt=>jt.id,(jt,ct)=>{var Mi=Le(),Vi=de(Mi);{var rn=yo=>{Iv(yo,{get isMobile(){return d()},get id(){return n(ct).id},get icon(){return n(ct).icon},get label(){return n(ct).label},get ariaLabel(){return n(ct).ariaLabel},get value(){return n(ct).value},get valueComponent(){return n(ct).valueComponent},onClick:()=>{ye(n(ct).children),N(_e,n(ct).id,!0)},get ref(){return Y[n(ct).id]},set ref(Ui){Y[n(ct).id]=Ui}})},Ro=(yo,Ui)=>{{var gr=xo=>{Pv(xo,{get isMobile(){return d()},get id(){return n(ct).id},get onClick(){return n(ct).onClick},get icon(){return n(ct).icon},get label(){return n(ct).label},get ariaLabel(){return n(ct).ariaLabel},closeSettings:Pe})},ao=(xo,zi)=>{{var sn=an=>{kv(an,{get isMobile(){return d()},get id(){return n(ct).id},get onClick(){return n(ct).onClick},get icon(){return n(ct).icon},get label(){return n(ct).label},get ariaLabel(){return n(ct).ariaLabel},get enabled(){return n(ct).enabled},get tooltipText(){return n(ct).tooltipText},get maxTooltipWidth(){return n(ct).maxTooltipWidth}})};V(xo,an=>{n(ct).type==="SWITCH"&&an(sn)},zi)}};V(yo,xo=>{n(ct).type==="CLICK"?xo(gr):xo(ao,!1)},Ui)}};V(Vi,yo=>{n(ct).type==="OPEN_SUB_MENU"?yo(rn):yo(Ro,!1)})}_(jt,Mi)}),w(dt),nt(dt,jt=>G(jt),()=>G()),w(Ht),B((jt,ct,Mi)=>{W=se(Ht,1,"settings-menu menu s-v",null,W,jt),It=se(dt,1,"items",null,It,ct),Ge(dt,Mi)},[()=>({desktop:!d(),mobile:d(),hidden:!!J.current}),()=>({mobile:d()}),$o]),$t("mouseenter",Ht,yi),$t("mouseleave",Ht,ro),_(At,Ht)};V(so,At=>{r()&&At(nn)})}var yn=k(so,2);Ti(yn,17,()=>n(yt),At=>At.id,(At,Ht)=>{let W=v(()=>{var Mt;return(Mt=n(Ht).minWidth)!=null?Mt:137});Cv(At,{get isMobile(){return d()},get playerControlsHeight(){return le()},get returnFromSubMenu(){return J.popSubMenu},get id(){return n(Ht).id},get title(){return n(Ht).title},get closeSettingsMenu(){return Ct},openSubMenuList:ye,get items(){return n(Ht).items},get minWidth(){return n(W)},get refMenuItems(){return Y},get listRef(){return re[n(Ht).id]},set listRef(Mt){re[n(Ht).id]=Mt}})}),w(Xe),B(At=>Si=se(Xe,1,"settings-menu-container s-v",null,Si,At),[()=>({mobile:d(),hidden:!r()})]),_(t,Xe),H(),o()}st(["keydown","click"]);var aT=L('<button class="btn s-1g"> </button>'),lT={hash:"s-1g",code:"button.btn.s-1g{background:hsla(0,0%,100%,.1);border-radius:8px;font-size:14px;line-height:18px;margin-top:12px;padding:6px 12px 7px}"};function Kv(t,e){q(t,lT);var i=aT();i.__click=function(...r){var a;(a=e.onClick)==null||a.apply(this,r)};var o=T(i,!0);w(i),B(()=>pe(o,e.label)),_(t,i)}st(["click"]);var dT=L('<div class="container s-u"><div class="notification s-u"><div><p class="description s-u"><!></p> <!></div> <!></div></div>'),cT={hash:"s-u",code:".container.s-u{display:flex;justify-content:center;left:0;pointer-events:none;position:absolute;right:0;top:20px}.notification.s-u{background:var(--notification-bg);border-radius:var(--notification-radius);display:inline-flex;gap:10px;padding:9px 14px 10px 12px;pointer-events:auto}.description.s-u{font-size:13px;line-height:16px;margin:0;white-space:pre}"};function Uc(t,e){F(e,!0),q(t,cT);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=Rt(),{ui:{t:r}}=ve(),a=r(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var l=dT(),d=T(l),s=T(d),u=T(s),p=T(u);Bc(p,{get message(){return a}}),w(u);var m=k(u,2);{var f=y=>{let $=v(()=>r("slow_video_notification_button"));Kv(y,{get label(){return n($)},get onClick(){return e.onSelectAutoQuality}})};V(m,y=>{o||y(f)})}w(s);var b=k(s,2);Ms(b,{get onClick(){return e.onClose}}),w(d),w(l),Jr(3,d,()=>ys,()=>({duration:i})),_(t,l),H()}var zc=require("@vkontakte/videoplayer-shared/es2015");var ll="annotation",Sp=class{constructor(){this.slots=new Map}init(e,i){this.shadowRootContainer=e,this.store=i}add(e,i){var d;let{overlay:o,id:r,controlsBehaviour:a,hideAllControls:l}=i;e.setAttribute("slot",ll),this.setupSlotStyles(e,o),this.shadowRootContainer.append(e),this.slots.set(r,{rootElement:e,options:i}),a&&this.runHidingControlsWhenIntersected(r,a),l&&((d=this.store)==null||d.ui.isControlsAvailable.set(!1))}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 _t(this,arguments,function*(e,{observedSlotElementId:i,controlsToObserve:o}){var f;let l=this.slots.get(e);if(!l)return;let d=yield this.findSlotElement(l.rootElement,i,e),{controls:s,hiddenControls:u}=((f=this.store)==null?void 0:f.ui)||{},p=new MutationObserver(b=>b.forEach(()=>{let y=Rs(d,this.shadowRootContainer);o.forEach($=>{let S=s==null?void 0:s[$],C=S?ge(S):null,I=u==null?void 0:u[$];C&&(I==null||I.set((0,zc.isIntersecting)(C,y)))})}));p.observe(d,{childList:!0,subtree:!0}),l.observer=p;let m=new zc.Subscription;o.forEach(b=>{s&&m.add(s[b].subscribe(y=>{let $=u==null?void 0:u[b];y&&y.isDisplayed?$==null||$.set((0,zc.isIntersecting)(y,Rs(d,this.shadowRootContainer))):$==null||$.set(!1)}))}),l.subs=m})}findSlotElement(e,i,o){return _t(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,p;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(m=>m==null?void 0:m.disconnect()),l==null||l.unsubscribe(),this.slots.delete(e),s&&((u=this.store)==null||u.ui.isControlsAvailable.set(!0)),(p=d==null?void 0:d.controlsToObserve)==null||p.forEach(m=>{var f,b;(b=(f=this.store)==null?void 0:f.ui.hiddenControls[m])==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 uT=L('<div class="container s-4"><!></div>'),pT={hash:"s-4",code:".container.s-4{align-items:center;animation-fill-mode:forwards;animation-name:s-4-videoPlayerStatusIconPopup;background-color:#00000073;border-radius:100%;display:flex;height:64px;justify-content:center;width:64px;will-change:opacity,scale}@keyframes s-4-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 Wc(t,e){F(e,!0),q(t,pT);let i=g(e,"reversed",3,!1);var o=Le(),r=de(o);Es(r,()=>e.Icon,a=>{var l=uT(),d=T(l);Bi(d,()=>e.Icon,(s,u)=>{u(s,{get size(){return"48"},get reversed(){return i()}})}),w(l),B(()=>Ge(l,`animation-duration: ${e.duration}ms`)),_(a,l)}),_(t,o),H()}var qv=require("@vkontakte/videoplayer-core/es2015"),fT=L('<div class="container s-16"><!></div>'),mT={hash:"s-16",code:".container.s-16{align-items:center;display:flex;height:100%;justify-content:center;pointer-events:none;position:absolute;width:100%}"};function Qv(t,e){F(e,!0),q(t,mT);let[i,o]=Re(),r=()=>x(s,"$playbackState$",i),a=()=>x(p,"$previewTrackActive",i),l=()=>x(m,"$previewTrackDragInProgress",i),d=()=>x(u,"$isPlaying$",i),{state:{playbackState$:s,isPlaying$:u},ui:{previewTrackActive:p,previewTrackDragInProgress:m}}=ve(),{features:{playbackStatusShow:f},playbackStatusAnimationDuration:b}=Rt(),y=0,$=K(null),S=K(!1);De(()=>{r()===qv.PlaybackState.PLAYING?N($,Rn,!0):r()===qv.PlaybackState.PAUSED?N($,Os,!0):N($,null)}),De(()=>{if(!(!f||a()||l()))return y=window.setTimeout(()=>{y=0,N($,null)},b),()=>{y&&(window.clearTimeout(y),y=0)}}),De(()=>{d()&&!n(S)&&(N(S,!0),N($,null))});var C=Le(),I=de(C);{var R=E=>{var P=fT(),O=T(P);Wc(O,{get duration(){return b},get Icon(){return n($)}}),w(P),_(E,P)};V(I,E=>{n($)&&f&&E(R)})}_(t,C),H(),o()}var vT=L('<div><div data-testid="video-container"></div></div>'),gT={hash:"s-c",code:".video-container.s-c,.video-wrapper.s-c{height:100%;left:0;position:absolute;top:0;width:100%}.video-wrapper.s-c{background:var(--black)}.video-container.s-c,.video-wrapper.s-c{z-index:var(--video-container-z-index)}.video-container.s-c{transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.s-c{transition:none}.nocursor.s-c{cursor:none}"};function dl(t,e){F(e,!0),q(t,gT);let[i,o]=Re(),r=()=>x(p,"$rotateAlpha",i),a=()=>x(m,"$playerSize",i),l=()=>x(u,"$playerPhase",i),d=()=>x(f,"$isPlaying$",i),s=g(e,"videoContainer",15),{playerPhase:u,ui:{rotateAlpha:p,playerSize:m},state:{isPlaying$:f}}=ve(),{isSmoothVideoRotate:b}=Rt(),y=v(()=>s()&&r()%180?a().height/a().width:1);var $=vT();let S;$.__contextmenu=function(...R){var E;(E=e.onContextMenu)==null||E.apply(this,R)},$.__mousedown=function(...R){var E;(E=e.onMouseDown)==null||E.apply(this,R)},$.__mouseup=function(...R){var E;(E=e.onMouseUp)==null||E.apply(this,R)},$.__click=function(...R){var E;(E=e.onClick)==null||E.apply(this,R)},$.__dblclick=function(...R){var E;(E=e.onDblClick)==null||E.apply(this,R)};var C=T($);let I;nt(C,R=>s(R),()=>s()),w($),B((R,E)=>{S=se($,1,"video-wrapper s-c",null,S,R),I=se(C,1,"video-container s-c",null,I,E),Ge(C,`transform: rotate(${r()}deg) scale(${n(y)})`),Ue(C,"data-is-playing",d())},[()=>({hidden:l()!=="video",nocursor:e.hideCursor}),()=>({"fast-rotate":!b})]),_(t,$),H(),o()}st(["contextmenu","mousedown","mouseup","click","dblclick"]);var hT=L('<div><span class="text s-18"> </span> <!></div>'),_T={hash:"s-18",code:".root.s-18{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-18,.root.visible.s-18{transform:translateX(-50%)}.root.visible.s-18{opacity:1;visibility:visible}.text.s-18{font-size:13px;font-weight:600;line-height:16px}"};function Gv(t,e){F(e,!0),q(t,_T);let{ui:{t:i}}=ve();var o=hT();let r;var a=T(o),l=T(a,!0);w(a);var d=k(a,2);Vc(d,{get size(){return"16"},fill:"currentColor"}),w(o),B((s,u)=>{r=se(o,1,"root s-18",null,r,s),pe(l,u)},[()=>({visible:e.isVisible}),()=>i("double_forward_label")]),_(t,o),H()}var bT=L('<div class="container s-14" role="button" data-testid="preview-track-overlay"><div class="icon s-14"><!></div></div>'),$T={hash:"s-14",code:".container.s-14{background-color:rgba(0,0,0,.48);cursor:pointer;height:100%;position:absolute;width:100%}.container.s-14,.icon.s-14{align-items:center;display:flex;justify-content:center}.icon.s-14{background-color:#00000073;border-radius:100%;height:64px;transition:transform .2s;transition-timing-function:ease-out;width:64px;will-change:transform}.container.s-14:hover .icon:where(.s-14){transform:scale(1.15)}"};function Yv(t,e){F(e,!1),q(t,$T);let o=ve().actions.internal.closePreviewTrack,r=200,a=u=>{u.stopPropagation(),o()};To();var l=bT();l.__click=a;var d=T(l),s=T(d);return Rn(s,{get size(){return"32"}}),w(d),w(l),Jr(3,l,()=>ys,()=>({duration:r})),_(t,l),Rf(e,"handleClick",a),H({handleClick:a})}st(["click"]);var yT=L('<div class="container s-17"><div class="notification s-17"><span class="text s-17"> </span></div></div>'),xT={hash:"s-17",code:".container.s-17{display:flex;justify-content:center;left:0;pointer-events:none;position:absolute;right:0;top:20px}.notification.s-17{background-color:var(--black-alpha-40);border-radius:var(--notification-radius);padding:10px 16px}.text.s-17{font-size:14px;font-weight:500;line-height:18px}"};function jv(t,e){F(e,!1),q(t,xT);let{ui:{t:i}}=ve();To();var o=yT(),r=T(o),a=T(r),l=T(a,!0);w(a),w(r),w(o),B(d=>pe(l,d),[()=>i("preview_track_notification_text")],En),Jr(3,r,()=>ys,()=>({duration:340})),_(t,o),H()}var wT=(t,e,i,o,r,a)=>{if(t.stopPropagation(),e()||o()){a();return}},ST=L("<div><!></div>"),TT=L('<div class="spherical-video-icon s-8"><!></div>'),CT=L("<div><!></div>"),IT=L('<div class="settings-menu s-8"><!></div>'),ET=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),PT=L("<!> <!> <!>",1),AT=L('<div class="blocked s-8"></div>'),kT=L('<div class="player-wrapper s-8"><!> <div class="overlay-container"></div></div> <!>',1),LT={hash:"s-8",code:".blocked.s-8,.player-wrapper.s-8{height:100%;position:absolute;width:100%}.blocked.s-8{z-index:var(--overlay-container-z-index)}.player-wrapper.s-8 .player-media{background:var(--black);height:100%;left:0;position:absolute;top:0;transition:transform .2s ease-in-out;width:100%}.spherical-video-icon.s-8{display:inline-block;left:calc(50% - 38px);position:absolute;top:calc(50% - 23px)}.ads-container.s-8{background:var(--black);height:100%;left:0;position:absolute;top:0;width:100%;z-index:var(--ads-container-z-index)}.settings-menu.s-8{bottom:57px;left:0;position:absolute;right:18px;transition:opacity .2s;z-index:var(--settings-menu-z-index)}"};function Zv(t,e){F(e,!0),q(t,LT);let[i,o]=Re(),r=()=>x(oi,"$notificationsToShow$",i),a=()=>x(pi,"$playerPhase",i),l=()=>x(so,"$isLoaderVisible",i),d=()=>x(yi,"$adPlaybackState",i),s=()=>x(di,"$crashed",i),u=()=>x(yo,"$isInteractiveTime$",i),p=()=>x(Tt,"$settingsMenuVisible",i),m=()=>x(Ui,"$isInteractiveExpectation$",i),f=()=>x(Zt,"$controlsVisible",i),b=()=>x(ao,"$touched",i),y=()=>x(_r,"$graphIsOpened$",i),$=()=>x(pt,"$isFullscreen",i),S=()=>x(ns,"$autoplayNextEnabled$",i),C=()=>x(Ht,"$postrollPassed",i),I=()=>x(nn,"$isEnded$",i),R=()=>x(or,"$cursorInside",i),E=()=>x(Jn,"$isControlsAvailable",i),P=()=>x(No,"$doubleForwardOn$",i),O=()=>x(Dr,"$fakeIsPlaying$",i),D=()=>x(yr,"$bottomNoSmooth",i),U=()=>x(an,"$interactiveTimeIndicator",i),z=()=>x(Mi,"$playerSize",i),G=()=>x(Vi,"$is3DVideo",i),le=()=>x(dn,"$doubleForwardAvailable$",i),Y=()=>x(Xe,"$contextMenuVisible$",i),re=()=>x(gi,"$playbackState$",i),X=()=>x(xo,"$hotKeyMapData",i),we=()=>x(Jt,"$scrubbingInProgress",i),ce=()=>x(yt,"$volumeChangingInProgress",i),ne=()=>x(yn,"$chromecastConnected$",i),he=()=>x(cn,"$controlsTimeoutActive",i),xe=()=>x(ri,"$settingsMenuOpenedByKeyboard",i),Z=()=>x(ds,"$contextMenuOpenedByKeyboard$",i),Ne=()=>x(Ci,"$contextMenuOpenedByHotKey$",i),ue=()=>x(Ze,"$contextMenuButtonRef$",i),A=()=>x(qo,"$contextMenuLastActiveElem$",i),Ke=()=>x(Ai,"$isFullscreenOpenedByKeyboard",i),Ce=()=>x(li,"$language$",i),j=()=>x(mo,"$previewTrackActive$",i),ie=()=>x(rn,"$icon3DVideoVisible",i),Oe=()=>x(At,"$chromecastDeviceName$",i),Be=()=>x(jt,"$currentSubtitle$",i),fe=()=>x(ct,"$currentSubtitleCaptions$",i),ee=()=>x(ro,"$position$",i),Se=()=>x($o,"$duration$",i),Fe=()=>x(W,"$isLive$",i),qe=()=>x(Mt,"$isPlaying$",i),je=()=>x(hr,"$contextMenuPosition$",i),Te=()=>x(er,"$previewTrackNotificationVisible$",i),Me=()=>x(zi,"$showHotKeyMap",i),ze=()=>x(Si,"$debugPanelVisible",i),Nt=()=>x(rs,"$userActionsDisabled$",i),tt=g(e,"videoContainer",15),Bt=g(e,"adsSlotId",3,void 0),Gt=g(e,"adsParams",3,void 0),Ct=g(e,"adsAutoplayParam",3,void 0),ti=g(e,"duration",3,void 0),Ft=g(e,"logoTargetUrl",3,""),$e=g(e,"showNextPrevButtons",3,!1),_e=g(e,"nextButtonActive",3,!1),J=g(e,"prevButtonActive",3,!1),ye=g(e,"endScreenVideoTitle",3,void 0),Pe=g(e,"endScreenVideoThumb",3,void 0),Pt=g(e,"isOneVideoPlaylist",3,!1),Ve=g(e,"shadowRootContainer",3,void 0),at=g(e,"outerContainerRef",3,void 0),gt=g(e,"playerStarted",3,!1),be=g(e,"fullScreenTarget",3,void 0),et=g(e,"showMiniTimer",3,!1),We=g(e,"showEndScreen",3,!0),rt=g(e,"keyboardControls",15),ii=e.store.getLogger().createComponentLog("Root component"),li=e.store.interfaceLanguage$,gi=e.store.state.playbackState$,yi=e.store.ads.playbackState,ro=e.store.state.positionWithScrubbing$,$o=e.store.state.duration$,pi=e.store.playerPhase,pt=e.store.ui.isFullscreen,Ai=e.store.ui.isFullscreenOpenedByKeyboard,Zt=e.store.ui.controlsVisible,Tt=e.store.ui.settingsMenu.visible$,ri=e.store.ui.settingsMenu.openedByBtnKeyboard$,Jt=e.store.ui.scrubbingInProgress,yt=e.store.ui.volumeChangingInProgress,Xe=e.store.ui.contextMenu.visible$,Si=e.store.ui.debugPanelVisible,so=e.store.state.isLoaderVisible,nn=e.store.state.isEnded$,yn=e.store.state.chromecastConnected$,At=e.store.state.chromecastDeviceName$,Ht=e.store.ads.postrollPassed,W=e.store.state.isLive$,Mt=e.store.state.isPlaying$,di=e.store.state.crashed$,dt=e.store.webApi.annotationsApi,It=e.store.webApi.pictureInPictureApi,jt=e.store.state.currentSubtitle$,ct=e.store.state.currentSubtitleCaptions$,Mi=e.store.ui.playerSize,Vi=e.store.ui.is3DVideo,rn=e.store.ui.icon3DVideoVisible,Ro=e.store.state.isInteractive,yo=e.store.state.isInteractiveTime$,Ui=e.store.state.isInteractiveExpectation$,gr=e.store.state.hasInteractiveBranches,ao=e.store.ui.touched,xo=e.store.ui.modals.hotKeyMap.data,zi=e.store.ui.modals.hotKeyMap.show,sn=e.store.ui.overlayContainer$,an=e.store.ui.controls.interactiveTimeIndicator,Zn=e.store.state.showInteractiveTimeIndicator,hr=e.store.ui.contextMenu.position$,Nr=e.store.actions.internal.setQuality,xs=e.store.actions.internal.closeSettingsMenu,ns=e.store.ui.autoplayNextEnabled$,rs=e.store.ui.userActionsDisabled,Jn=e.store.ui.isControlsAvailable,ln=e.store.ui.videoTitleInfo,No=e.store.ui.doubleForwardOn$,dn=e.store.ui.doubleForwardAvailable$,er=e.store.ui.previewTrackNotificationVisible,Dn=e.store.actions.internal.getVideoElement,Or=e.store.actions.internal.checkFullscreenSupport,{fakeIsPlaying$:Dr,notifications$:ss,graphIsOpened$:_r}=Co(),lo=K(void 0),br=K(void 0),tr=K(void 0),xn=K(void 0),co,Br,Bn;xo.set(J_());let{closeNotification:ht,notificationsToShow$:oi}=ss,ir=v(()=>!!r().slow_video),$r=()=>ht("slow_video"),Fr=v(()=>(a()==="video"&&l()||a()==="ads"&&d()==="inactive")&&!s()),wn=K(void 0),yr=ae(!1),Oo,cn=ae(!1),Do=ae(),or=ae(!1),Wi=K(!1),Bo=K(!1),nr=K(!1),Hr=K(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),uo=v(()=>u()&&!p()&&!(n(Wi)||n(Bo))&&!(n(nr)&&!m())),Fn=!0,Fo=v(()=>e.uiConfig.features.thumbTimer&&et()&&a()==="video"&&!f()&&!s()&&!Ro&&(e.uiConfig.hideThumbTimerAfterTouch&&!b()||!e.uiConfig.hideThumbTimerAfterTouch)),Ur=v(()=>a()==="video"&&!y()&&$()),rr=K(!1),Hn=v(()=>(We()||e.showAutoplayNext&&S())&&!!ye()&&!!Pe()&&(e.showAds&&C()||!e.showAds)&&I()&&!s()&&!n(rr)),zr=v(()=>R()&&!(f()||n(Hn))&&!u()&&E()&&!P()),St=K(!1),Et=v(()=>O()!==null),{toggle:po}=Dr,Ji=!1,Ki=null;It==null||It.setContext(Id());let Sn=()=>{e.autoplay&&!Ro&&e.uiConfig.controls.showOnStartupAtAutoplay&&mi(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:Sn});let wo=()=>{window.clearTimeout(co),cn.set(!1)},Un=()=>{window.clearTimeout(Br),Do.set(null)},mi=me=>{wo(),cn.set(!0),co=window.setTimeout(()=>cn.set(!1),me);let mt=me-100;Oo=window.setTimeout(()=>{D()&&yr.set(!1)},mt>0?mt:me)},Wr=(me,mt)=>{Un(),Do.set(mt),Br=window.setTimeout(()=>Do.set(null),me)},Tn=Vi.subscribe(me=>{rn.set(me),me&&(window.clearTimeout(Bn),Bn=window.setTimeout(()=>rn.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Ho=()=>_t(null,null,function*(){var mt,ei,Ii,qi;let me=oa();if(me){let si=tc(),ni=wr();me=si===ni||si===Ve()}if(me){mi(e.uiConfig.controls.hideTimeoutFullscreen);try{yield It==null?void 0:It.exit()}catch(si){ii({message:String(si)})}}pt.set(me),e.store.getAdmanWrapper().setFullscreen(me),$()?(ei=(mt=e.store.callbacks)==null?void 0:mt.onFullscreenEnter)==null||ei.call(mt):(qi=(Ii=e.store.callbacks)==null?void 0:Ii.onFullscreenExit)==null||qi.call(Ii)}),xr=me=>{let{width:mt,height:ei}=me.target;Mi.set({width:mt,height:ei})},sr=()=>{let{width:me,height:mt}=n(lo).getBoundingClientRect();Mi.set({width:me,height:mt})};Dt(()=>{var mt;return Zu(Ho),e.uiConfig.features.annotationsInside&&(dt==null||dt.init(n(lo))),za(It)&&(It==null||It.assignPlayerContainer(n(lo)),It==null||It.setExternalEventHandlers({resize:xr,leavepictureinpicture:sr})),e.interactiveContainer&&((mt=tt().parentElement)==null||mt.insertBefore(e.interactiveContainer,tt().nextSibling)),()=>{window.clearTimeout(co),window.clearTimeout(Oo),window.clearTimeout(Br),window.clearTimeout(Bn),Tn(),It==null||It.dispose().catch(ei=>{ii({message:String(ei)})}),Ju(Ho)}});let wr=()=>{let me=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!at()?n(lo):at(),mt=me.getRootNode(),ei=mt instanceof ShadowRoot?mt.host:mt,Ii=be()instanceof HTMLElement&&be().contains(ei);return e.uiConfig.allowChangingFullscreenTarget&&be()&&Ii?be():me},Cn=()=>{Xe.set(!1)},un=()=>{xs(),Cn()},Kr=()=>_t(null,null,function*(){if(!Or()){ii({message:"fullscreen disabled"});return}Cn(),oa()?(yield Xu(document),ii({message:"exit fullscreen"})):(ii({message:"request fullscreen"}),yield ju(wr()))}),pn=me=>{y()||(me.preventDefault(),Xe.set(!0),hr.set({left:me.clientX,top:me.clientY}))};function as(){or.set(!0),Ro||mi(e.uiConfig.controls.hideTimeoutCursor)}function Qe(me){var qi,si;let{relatedTarget:mt}=me,Ii=!!(mt&&((qi=n(tr))!=null&&qi.contains(mt)))&&((si=rt())==null?void 0:si.isFocused());!Ro&&!Ii&&(yr.set(!0),mi(e.uiConfig.controls.hideTimeoutCursor))}function Vt(){or.set(!1),N(Bo,!1),N(Wi,!1),Ji=!1,e.store.actions.internal.releaseCamera(),mi(e.uiConfig.controls.hideTimeout),P()&&Wo()}function xi(me){return me?me.offsetTop+xi(me.offsetParent):0}function Io(me){return me?me.offsetLeft+Io(me.offsetParent):0}function Eo(me){if(U()&&Zn){let mt=me.currentTarget,ei=xi(mt),Ii=Io(mt),qi=me.pageX-Ii,si=me.pageY-ei,{left:ni,bottom:vo,right:zn}=U(),Wn=zn-ni;return qi>=ni-Wn&&si<=vo+Wn}}function Uo(me){if(n(lo)){let mt=xi(me.currentTarget),ei=z().height,Ii=me.pageY-mt;if(Eo(me)){N(Bo,!1);return}Ii<40?N(Bo,!0):Ii>ei-40?N(Wi,!0):(N(Bo,!1),p()||N(Wi,!1))}}function fo(me){Uo(me),!n(uo)&&!P()&&mi(e.uiConfig.controls.hideTimeoutCursor),G()&&Ji&&Ki&&e.store.actions.internal.moveCameraFocusPX(Ki.clientX-me.clientX,Ki.clientY-me.clientY,me.timeStamp-Ki.timeStamp),Ki=me}let Ri=null,zo=()=>{Ri=window.setTimeout(()=>{e.store.actions.internal.changeDoubleForwardOn(!0),wo()},e.uiConfig.doubleForwardActivationTime)},Wo=()=>{e.store.actions.internal.changeDoubleForwardOn(!1),Ri&&clearTimeout(Ri),Ri=null},So=me=>{me.preventDefault(),me.button===0&&(Ji=!0,e.store.actions.internal.holdCamera(),le()&&zo()),!Ji&&mi(e.uiConfig.controls.hideTimeoutCursor)},Ko=me=>{me.preventDefault(),me.button===0&&(Ki=me,Ji=!1,e.store.actions.internal.releaseCamera()),!P()&&mi(e.uiConfig.controls.hideTimeoutCursor)},fn=me=>{me.preventDefault(),Fn&&(ii({message:"double click on video"}),Kr(),mi(e.uiConfig.controls.hideTimeoutCursor))},Sr=me=>{var mt;if(me.preventDefault(),P()){Wo();return}if(Ri&&Wo(),Y()||p()){un();return}if(!(I()&&!gr)){if(n(Et))return po();if((mt=rt())==null||mt.focus(),!gt()){e.firstStart(),mi(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||re()!==Xv.PlaybackState.PLAYING)&&e.store.actions.internal.togglePlay(),mi(e.uiConfig.controls.hideTimeoutCursor)}},Tr=me=>{un(),ao.set(!0),mi(e.uiConfig.controls.hideTimeout),me&&Wr(e.uiConfig.controls.hideHotKeyHelpers,me)},Cr=()=>{var me,mt;un(),(me=e.store.callbacks)!=null&&me.onOpenHotKeyMap?(mt=e.store.callbacks)==null||mt.onOpenHotKeyMap(X()):zi.update(ei=>!ei)},ls=()=>{ao.set(!0)},ds=e.store.ui.contextMenu.openedByBtnKeyboard$,Ze=e.store.ui.contextMenu.btnRef$,Kt=K(void 0),Ci=e.store.ui.contextMenu.openedByHotKey$,qo=e.store.ui.contextMenu.lastActiveElem$,mo=e.store.ui.previewTrackActive;De(()=>{sn.set(n(wn))}),De(()=>{N(nr,n(Hr)&&re()!==Xv.PlaybackState.PLAYING,!0),n(Hr)||kt(()=>N(Hr,!0))}),De(()=>{var mt,ei;let me=(n(nr)||I()||p()||we()||ce()||ne()||he())&&!n(uo)&&(a()==="video"||a()==="ads")&&!s()&&E();Zt.set(me),!me&&!he()&&e.uiConfig.returnFocusOnControlsHide&&((mt=n(tr))!=null&&mt.contains(rp()))&&((ei=rt())==null||ei.focus())}),De(()=>{!we()&&n(St)&&!u()&&mi(e.uiConfig.controls.hideTimeoutCursor),kt(()=>N(St,we(),!0))}),De(()=>{n(xn),p(),xe(),kt(()=>lc(n(xn),p(),xe()))}),De(()=>{n(Kt),Y(),Z(),Ne(),kt(()=>{let me=Z()||Ne();lc(n(Kt),Y(),me)})}),De(()=>{let me=ue();me&&(Y(),kt(()=>Xl(me,Y(),ds)))}),De(()=>{let me=A();me&&(Y(),kt(()=>nb(me,Y(),Ci)))}),De(()=>{var me;!Ke()&&$()&&(kt(()=>Ai.set(!1)),(me=rt())==null||me.focus())}),De(()=>{y()&&un()});let Ir=K(void 0),mn=me=>{ln.set(jn(Dn(),{title:n(Ir)},"title",me))},Er=(me,mt)=>{var si,ni;let ei=(ni=(si=e.store.callbacks)==null?void 0:si.uiInfo)==null?void 0:ni.onUpcomingLiveViewStateChanged;if(!ei)return;let Ii=!!mt,qi=Ae(Ae({},jn(n(lo),{upcomingLiveScreen:mt},"upcomingLiveScreen",Ii)),me);ei(qi)};var Hs=kT();$t("blur",Ea,un);var In=de(Hs);In.__mousemove=fo;var Us=T(In);let ar=v(()=>a()==="ads"),cs=v(()=>n(Et)?po:void 0);nt(bm(Us,{startDoubleForwardActivationTimer:zo,stopDoubleForward:Wo,toggleFullscreen:Kr,hideContextMenu:un,showHotKeyHelpers:Tr,showKeyMap:Cr,get isAds(){return n(ar)},get fakePlayButtonHandler(){return n(cs)},get nextButtonActive(){return _e()},get prevButtonActive(){return J()},children:(me,mt)=>{var ei=PT(),Ii=de(ei);dl(Ii,{get hideCursor(){return n(zr)},onClick:Sr,onContextMenu:pn,onMouseDown:So,onMouseUp:Ko,onDblClick:fn,get videoContainer(){return tt()},set videoContainer(ni){tt(ni)}});var qi=k(Ii,2);Va(qi,()=>"slot",!1,(ni,vo)=>{to(ni,()=>({name:ll}))});var si=k(qi,2);Es(si,Ce,ni=>{var vo=ET(),zn=de(vo);let Wn=v(()=>a()!=="thumb"||s()||Ro&&e.autoplay);rl(zn,{get hidden(){return n(Wn)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart},onContextMenu:pn,onClick:Cn});var ki=k(zn,2);{var bd=He=>{Yv(He,{})};V(ki,He=>{j()&&He(bd)})}var pl=k(ki,2);Qv(pl,{});var zs=k(pl,2);Gv(zs,{get isVisible(){return P()}});var fa=k(zs,2);{var ma=He=>{let bi=v(()=>{var Yo;return(Yo=e.live)==null?void 0:Yo.startTime});Oc(He,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(bi)},onUpcomingLiveViewStateChanged:Er,onContextMenu:pn,onClick:Cn})};V(fa,He=>{a()==="LiveWaitingStart"&&He(ma)})}var vn=k(fa,2);{var fl=He=>{sl(He,{kind:"recover",get thumbUrl(){return e.thumbUrl},onContextMenu:pn,onClick:Cn})};V(vn,He=>{a()==="LiveWaitingRecover"&&He(fl)})}var va=k(vn,2);{var qr=He=>{sl(He,{kind:"record",get thumbUrl(){return e.thumbUrl},onContextMenu:pn,onClick:Cn})};V(va,He=>{a()==="LiveWaitingRecord"&&He(qr)})}var us=k(va,2);{var Ws=He=>{var bi=ST();let Yo;var $a=T(bi);oc($a,{get adsSlotId(){return Bt()},get adsParams(){return Gt()},get adsAutoplayParam(){return Ct()},get duration(){return ti()},get adsExternalApi(){return e.adsExternalApi}}),w(bi),B(Po=>Yo=se(bi,1,"ads-container s-8",null,Yo,Po),[()=>({hidden:a()!=="ads"})]),_(He,bi)};V(us,He=>{e.showAds&>()&&He(Ws)})}var ga=k(us,2);{var ml=He=>{let bi=v(()=>!We()&&e.showAutoplayNext&&S());gm(He,{get title(){return ye()},get thumb(){return Pe()},get isHide(){return n(bi)},clickCloseIcon:()=>N(rr,!0)})};V(ga,He=>{n(Hn)&&ye()&&Pe()&&He(ml)})}var vl=k(ga,2);{var $d=He=>{let bi=v(()=>!f());$v(He,{get title(){return e.title},get isHidden(){return n(bi)},onVisibilityChanged:mn,get ref(){return n(Ir)},set ref(Yo){N(Ir,Yo,!0)}})};V(vl,He=>{n(Ur)&&He($d)})}var gl=k(vl,2);{var hl=He=>{let bi=v(()=>a()==="video"&&f());Rc(He,{get isShifted(){return n(bi)}})};V(gl,He=>{G()&&He(hl)})}var Pr=k(gl,2);{var yd=He=>{var bi=TT(),Yo=T(bi);ec(Yo,{}),w(bi),_(He,bi)};V(Pr,He=>{ie()&&He(yd)})}var ha=k(Pr,2);{var _l=He=>{Nc(He,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return Oe()}})};V(ha,He=>{ne()&&He(_l)})}var ut=k(ha,2);{var vt=He=>{ol(He,{get shifted(){return f()},get captions(){return fe()},get position(){return ee()},get playerSize(){return z()}})};V(ut,He=>{Be().value!=="off"&&He(vt)})}var Qi=k(ut,2);{var Go=He=>{var bi=CT();bi.__contextmenu=pn,bi.__click=[wT,Y,Xe,p,Tt,un];var Yo=T(bi);nl(Yo,{}),w(bi),_(He,bi)};V(Qi,He=>{s()&&He(Go)})}var Gi=k(Qi,2);{var wi=He=>{let bi=v(()=>a()==="thumb"||a()==="LiveWaitingStart"||a()==="LiveWaitingRecover"||a()==="LiveWaitingRecord"),Yo=v(()=>a()==="ads"),$a=v(()=>e.canRewindLive&&Se()!==0);Mc(He,{get bottomHidden(){return n(bi)},get bottomNoSmooth(){return D()},get showControls(){return f()},get isAds(){return n(Yo)},get canRewindLive(){return n($a)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Ft()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return $e()},get nextButtonActive(){return _e()},get prevButtonActive(){return J()},get isOneVideoPlaylist(){return Pt()},customFullscreenSupported:Fn,toggleFullscreen:Kr,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return n(br)},set playerControlsWrapperRef(Po){N(br,Po,!0)},get playerControlsRef(){return n(tr)},set playerControlsRef(Po){N(tr,Po,!0)}})};V(Gi,He=>{gt()&&He(wi)})}var Ni=k(Gi,2);{var _a=He=>{var bi=IT(),Yo=T(bi);let $a=v(()=>{var Po;return(Po=n(tr))==null?void 0:Po.clientHeight});Hc(Yo,{get supportLink(){return e.supportLink},get playerControlsHeight(){return n($a)},returnFocus:()=>{var Po;return(Po=rt())==null?void 0:Po.focus()},get ref(){return n(xn)},set ref(Po){N(xn,Po,!0)}}),w(bi),_(He,bi)};V(Ni,He=>{!ne()&&a()!=="ads"&&He(_a)})}var bl=k(Ni,2);let Hp=v(()=>!n(Fo));sc(bl,{get isLive(){return Fe()},get isHidden(){return n(Hp)},get isPlaying(){return qe()},get position(){return ee()},get duration(){return Se()}});var tu=k(bl,2);_v(tu,{get data(){return Do}});var iu=k(tu,2);mm(iu,{get supportLink(){return e.supportLink},returnFocus:()=>{var He;return(He=rt())==null?void 0:He.focus()},get visible(){return Y()},get playerContainerRef(){return n(lo)},get position(){return je()},get menuElementRef(){return n(Kt)},set menuElementRef(He){N(Kt,He,!0)}});var ba=k(iu,2);{var Up=He=>{Uc(He,{onClose:$r,onSelectAutoQuality:()=>{Nr("auto"),$r()}})};V(ba,He=>{n(ir)&&He(Up)})}var Ks=k(ba,2);{var $l=He=>{jv(He,{})};V(Ks,He=>{Te()&&He($l)})}var ou=k(Ks,2);{var nu=He=>{Qa(He,{})};V(ou,He=>{n(Fr)&&He(nu)})}var yl=k(ou,2);{var ru=He=>{xm(He,{})};V(yl,He=>{Me()&&He(ru)})}var zp=k(yl,2);{var su=He=>{cc(He,{})};V(zp,He=>{ze()&&He(su)})}_(ni,vo)}),_(me,ei)},$$slots:{default:!0}}),me=>rt(me),()=>rt());var ft=k(Us,2);nt(ft,me=>N(wn,me),()=>n(wn)),w(In),nt(In,me=>N(lo,me),()=>n(lo));var fi=k(In,2);{var Qo=me=>{var mt=AT();_(me,mt)};V(fi,me=>{Nt()&&me(Qo)})}$t("mouseenter",In,as),$t("mouseleave",In,Vt),$t("click",In,ls,!0),$t("focusin",In,Qe,!0),_(t,Hs),H(),o()}st(["mousemove","contextmenu","click"]);var pa=require("@vkontakte/videoplayer-core/es2015"),c$=require("@vkontakte/videoplayer-shared/es2015");var MT=L('<div></div> <div class="info s-o"><div class="triangles-wrapper s-o"><div></div> <div></div> <div></div></div> <p class="step-caption s-o"> </p></div>',1),VT=L("<div><!></div>"),RT={hash:"s-o",code:".double-click-area.s-o{height:100%;overflow:hidden;position:absolute;top:0;width:25%}.double-click-area.left.s-o{left:0}.double-click-area.right.s-o{right:0}.semicircle.s-o{background-color:rgba(0,0,0,.5);height:100%;position:absolute;top:0;width:100%}.semicircle.left.s-o{border-bottom-right-radius:50%;border-top-right-radius:50%;left:0}.semicircle.right.s-o{border-bottom-left-radius:50%;border-top-left-radius:50%;right:0}.info.s-o{align-items:center;flex-direction:column;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.info.s-o,.triangles-wrapper.s-o{display:flex;justify-content:center}.triangles-wrapper.s-o{margin-bottom:10px;position:relative}.triangle.s-o{animation:s-o-blink .5s infinite;border-bottom:6px solid transparent;border-top:6px solid transparent;height:0;opacity:0;width:0}.triangle.left.s-o:nth-child(3),.triangle.right.s-o:first-child{animation-delay:0s}.triangle.left.s-o:nth-child(2),.triangle.right.s-o:nth-child(2){animation-delay:.1s}.triangle.left.s-o:first-child,.triangle.right.s-o:nth-child(3){animation-delay:.2s}@keyframes s-o-blink{0%{opacity:0}50%{opacity:1}to{opacity:0}}.triangle.left.s-o{border-right:8px solid var(--white)}.triangle.right.s-o{border-left:8px solid var(--white)}.triangle.s-o:not(:last-child){margin-right:5px}.step-caption.s-o{color:var(--white);font-size:12px;line-height:1;margin:0;text-align:center}"};function Tp(t,e){F(e,!0),q(t,RT);let i=g(e,"seekStep",3,0),o=K(!1),r=0,a=0,l=K(ci(i())),d=m=>{m.stopPropagation(),a+=1,N(l,i()*(a-1)),a===1?e.handleSingleFirstClick(m):(N(o,!0),e.handleSecondClick()),window.clearTimeout(r),r=window.setTimeout(()=>{a=0,N(o,!1)},300)};_n(()=>{window.clearTimeout(r)});var s=VT();s.__click=d;var u=T(s);{var p=m=>{var f=MT(),b=de(f),y=k(b,2),$=T(y),S=T($),C=k(S,2),I=k(C,2);w($);var R=k($,2),E=T(R,!0);w(R),w(y),B(P=>{var O,D,U,z;se(b,1,`semicircle ${(O=e.side)!=null?O:""}`,"s-o"),se(S,1,`triangle ${(D=e.side)!=null?D:""}`,"s-o"),se(C,1,`triangle ${(U=e.side)!=null?U:""}`,"s-o"),se(I,1,`triangle ${(z=e.side)!=null?z:""}`,"s-o"),pe(E,P)},[()=>Q("doubletap_seek_step",{seconds:n(l).toFixed(0)})]),_(m,f)};V(u,m=>{n(o)&&m(p)})}w(s),B(()=>{var m;return se(s,1,`double-click-area ${(m=e.side)!=null?m:""}`,"s-o")}),_(t,s),H()}st(["click"]);var NT=(t,e,i)=>{e(!1),i()},OT=L('<div class="overlay s-n"></div> <div class="next-video s-n"><div class="top s-n"><div class="caption s-n"> </div> <!></div> <div class="row s-n"><div class="column s-n"><div class="thumb s-n"><div></div> <!></div></div> <div class="column s-n"><div class="title s-n"> </div></div></div></div>',1),DT={hash:"s-n",code:".overlay.s-n{background:rgba(0,0,0,.72);height:100%;position:absolute;width:100%}.next-video.s-n{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-n{display:flex;justify-content:space-between}.caption.s-n{color:var(--white);font-size:11px;font-weight:700;opacity:.8;text-transform:uppercase}.row.s-n{background:rgba(48,48,48,.8);cursor:pointer;display:flex;flex-direction:row;height:102px;margin-top:6px;width:100%}.column.s-n{display:flex;flex-basis:50%;flex-direction:column}.thumb.s-n{align-items:center;background:no-repeat 50%;background-size:cover;display:flex;justify-content:space-around;position:relative}.thumb.s-n,.thumb-overlay.s-n{height:100%;width:100%}.thumb-overlay.s-n{position:absolute}.thumb-overlay.withOpacity.s-n{background:var(--black);opacity:.3}.title.s-n{color:var(--white);font-size:12px;font-weight:700;line-height:1.6;max-height:52px;overflow:hidden;padding:10px 16px}"};function Jv(t,e){F(e,!0),q(t,DT);let[i,o]=Re(),r=()=>x(d,"$autoplayNextEnabled$",i),a=()=>x(s,"$timerNextVideoRunning$",i),l=ve(),d=l.ui.autoplayNextEnabled$,s=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,p=l.actions.internal.nextVideoAnnouncementShow,m=l.actions.internal.nextVideoAnnouncementClick,f=l.actions.internal.nextVideoAnnouncementAuto,b=l.actions.internal.nextVideoAnnouncementCancel,y=()=>{u(!1),f()},$=()=>{e.clickCloseIcon(),b()};Dt(()=>{e.isHide||p(),e.isHide&&r()&&(u(!1),f())});var S=Le(),C=de(S);{var I=R=>{var E=OT(),P=k(de(E),2),O=T(P),D=T(O),U=T(D,!0);w(D);var z=k(D,2);Ms(z,{onClick:$}),w(O);var G=k(O,2);G.__click=[NT,u,m];var le=T(G),Y=T(le),re=T(Y);let X;var we=k(re,2);{var ce=Z=>{uc(Z,{get isRunning(){return a()},onTimerEnded:y})};V(we,Z=>{r()&&Z(ce)})}w(Y),w(le);var ne=k(le,2),he=T(ne),xe=T(he,!0);w(he),w(ne),w(G),w(P),B((Z,Ne)=>{pe(U,Z),Ge(Y,`background-image: url('${e.thumb}')`),X=se(re,1,"thumb-overlay s-n",null,X,Ne),pe(xe,e.title)},[()=>r()?Q("end_screen_next_video"):Q("end_screen_recommended_video"),()=>({withOpacity:r()})]),_(R,E)};V(C,R=>{e.isHide||R(I)})}_(t,S),H(),o()}st(["click"]);var r$=require("@vkontakte/videoplayer-core/es2015");var s$=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Dt(()=>{r$.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))}),_n(()=>{i==null||i(),clearTimeout(o)})};var a$=require("@vkontakte/videoplayer-core/es2015");var Cp=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 l$=require("@vkontakte/videoplayer-core/es2015"),d$=({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"),p=()=>l$.clientChecker.device.isIOS&&ge(l)===a$.VideoFormat.DASH_LIVE_CMAF,m=()=>{s==null||s(),s=null},f=b=>{if(m(),!p()||!b)return;let y=u();if(!y)return;let $=new Cp(y),S=ge(d),C=ge(a),I=ge(r);for(let P of S)C.some(D=>D.value===P.id)&&$.attach(P,I.value===P.id);let R=d.subscribe(P=>{for(let O of P)$.updateSrc(O)}),E=()=>{let P=$.getCurrentShowingId();o(ge(a).find(O=>O.value===P))};y.textTracks.addEventListener("change",E),s=()=>{R(),$.detachAll(),y.textTracks.removeEventListener("change",E)}};Dt(()=>i.subscribe(f)),_n(m)};var BT=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},FT=L("<!> <!>",1),HT=L("<div><!></div>"),UT=L('<div class="spherical-video-icon s-7"><!></div>'),zT=L("<div><!></div>"),WT=L('<div class="settings-mobile s-7"><!></div>'),KT=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),qT=L('<div class="player-wrapper s-7" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),QT={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%}.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-mobile.s-7{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 eg(t,e){var Hn,zr;F(e,!0),q(t,QT);let[i,o]=Re(),r=()=>x(Ve,"$playerPhase",i),a=()=>x(yi,"$isLoaderVisible",i),l=()=>x(ye,"$adPlaybackState",i),d=()=>x(Jt,"$crashed",i),s=()=>x(ns,"$notificationsToShow$",i),u=()=>x(J,"$playbackState$",i),p=()=>x(Ft,"$graphIsOpened$",i),m=()=>x(et,"$interactiveHideMobileControls",i),f=()=>x(ro,"$isEnded$",i),b=()=>x(dt,"$isInteractiveExpectation$",i),y=()=>x(gt,"$controlsVisible",i),$=()=>x(ct,"$touched",i),S=()=>x(Vi,"$autoplayNextEnabled$",i),C=()=>x(pt,"$postrollPassed",i),I=()=>x(ln,"$bottomNoSmooth",i),R=()=>x(Si,"$videoSize",i),E=()=>x(At,"$playerSize",i),P=()=>x(at,"$isFullscreen",i),O=()=>x(Pe,"$position$",i),D=()=>x(Pt,"$duration$",i),U=()=>x(rn,"$loadedMetadata",i),z=()=>x(We,"$settingsMenuVisible",i),G=()=>x(ii,"$scrubbingInProgress",i),le=()=>x(li,"$volumeChangingInProgress",i),Y=()=>x($o,"$chromecastConnected$",i),re=()=>x(be,"$isControlsAvailable",i),X=()=>x(di,"$isInteractiveTime$",i),we=()=>x(Tt,"$isActiveLive",i),ce=()=>x(rt,"$settingsMenuOpenedByKeyboard",i),ne=()=>x(_e,"$language$",i),he=()=>x(jt,"$disabledControls$",i),xe=()=>x(Ht,"$is3DVideo",i),Z=()=>x(W,"$icon3DVideoVisible",i),Ne=()=>x(pi,"$chromecastDeviceName$",i),ue=()=>x(so,"$currentSubtitle$",i),A=()=>x(nn,"$currentSubtitleCaptions$",i),Ke=()=>x(yn,"$realDuration$",i),Ce=()=>x(Ai,"$isLive$",i),j=()=>x(Zt,"$isPlaying$",i),ie=()=>x(gi,"$debugPanelVisible",i),Oe=g(e,"videoContainer",15),Be=g(e,"adsSlotId",3,void 0),fe=g(e,"adsParams",3,void 0),ee=g(e,"adsAutoplayParam",3,void 0),Se=g(e,"duration",3,void 0),Fe=g(e,"logoTargetUrl",3,""),qe=g(e,"showNextPrevButtons",3,!1),je=g(e,"nextButtonActive",3,!1),Te=g(e,"prevButtonActive",3,!1),Me=g(e,"endScreenVideoTitle",3,void 0),ze=g(e,"endScreenVideoThumb",3,void 0),Nt=g(e,"isOneVideoPlaylist",3,!1),tt=g(e,"showMiniTimer",3,!1),Bt=g(e,"fullScreenTarget",3,void 0),Gt=g(e,"playerStarted",3,!1),Ct=g(e,"showEndScreen",3,!0),{notifications$:ti,graphIsOpened$:Ft}=Co(),$e=e.store.getLogger().createComponentLog("Root component"),_e=e.store.interfaceLanguage$,J=e.store.state.playbackState$,ye=e.store.ads.playbackState,Pe=e.store.state.positionWithScrubbing$,Pt=e.store.state.duration$,Ve=e.store.playerPhase,at=e.store.ui.isFullscreen,gt=e.store.ui.controlsVisible,be=e.store.ui.isControlsAvailable,et=e.store.ui.interactiveHideMobileControls,We=e.store.ui.settingsMenu.visible$,rt=e.store.ui.settingsMenu.openedByBtnKeyboard$,ii=e.store.ui.scrubbingInProgress,li=e.store.ui.volumeChangingInProgress,gi=e.store.ui.debugPanelVisible,yi=e.store.state.isLoaderVisible,ro=e.store.state.isEnded$,$o=e.store.state.chromecastConnected$,pi=e.store.state.chromecastDeviceName$,pt=e.store.ads.postrollPassed,Ai=e.store.state.isLive$,Zt=e.store.state.isPlaying$,Tt=e.store.state.isActiveLive$,ri=e.store.state.isRewindableLive$,Jt=e.store.state.crashed$,yt=e.store.webApi.annotationsApi,Xe=e.store.webApi.pictureInPictureApi,Si=e.store.state.videoSize$,so=e.store.state.currentSubtitle$,nn=e.store.state.currentSubtitleCaptions$,yn=e.store.state.duration$,At=e.store.ui.playerSize,Ht=e.store.ui.is3DVideo,W=e.store.ui.icon3DVideoVisible,Mt=e.store.state.isInteractive,di=e.store.state.isInteractiveTime$,dt=e.store.state.isInteractiveExpectation$,It=e.store.state.hasInteractiveBranches,jt=e.store.ui.controls.disabledControls$,ct=e.store.ui.touched,Mi=e.store.ui.overlayContainer$,Vi=e.store.ui.autoplayNextEnabled$,rn=e.store.state.loadedMetadata$,Ro=e.store.actions.internal.closeSettingsMenu,yo=(Hn=e.store.callbacks)==null?void 0:Hn.onDisabledPlayPrevChapterClick,Ui=(zr=e.store.callbacks)==null?void 0:zr.onDisabledSeekToInteractiveClick,gr=e.store.actions.internal.setQuality,ao=K(void 0),xo=K(void 0),zi=K(void 0),sn=K(void 0),an,Zn,hr=v(()=>(r()==="video"&&a()||r()==="ads"&&l()==="inactive")&&!d()),Nr=K(void 0),{closeNotification:xs,notificationsToShow$:ns}=ti,rs=v(()=>!!s().slow_video),Jn=()=>xs("slow_video"),ln=ae(!1),No,dn=K(!1),er=v(()=>u()!==pa.PlaybackState.PLAYING),Dn=K(!1),Or=v(()=>p()||m()||!n(dn)&&(f()&&!!It||n(er)&&b())),Dr=K(!0),ss=v(()=>e.uiConfig.features.thumbTimer&&tt()&&r()==="video"&&!y()&&!d()&&!Mt&&(e.uiConfig.hideThumbTimerAfterTouch&&!$()||!e.uiConfig.hideThumbTimerAfterTouch)),_r=K(!1),lo=v(()=>(Ct()||e.showAutoplayNext&&S())&&!!Me()&&!!ze()&&(e.showAds&&C()||!e.showAds)&&f()&&!d()&&!n(_r)),br=K(!1);Xe==null||Xe.setContext(Id());let tr=St=>{St&&!Mt&&co(e.uiConfig.controls.hideTimeoutMobile)};e.store.setUiCallbacks({onStarted:tr});let xn=()=>{clearTimeout(an),N(dn,!1),m()&&et.set(!1)},co=St=>{xn(),N(dn,!0),an=setTimeout(()=>N(dn,!1),St);let Et=St-100;No=setTimeout(()=>{I()&&ln.set(!1)},Et>0?Et:St)},Br=Ht.subscribe(St=>{W.set(St),St&&(clearTimeout(Zn),Zn=setTimeout(()=>W.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Bn=(...Et)=>_t(null,[...Et],function*(St=oa()){var po,Ji,Ki,Sn,wo,Un;if(St&&!pa.clientChecker.device.isIOS){let mi=tc(),Wr=wn(),Tn=pa.clientChecker.browser.isSamsungBrowser&&mi===e.shadowRootContainer;St=mi===Wr||Tn}if(St){co(e.uiConfig.controls.hideTimeoutFullscreen);try{yield Xe==null?void 0:Xe.exit()}catch(mi){$e({message:String(mi)})}try{let mi=(po=R())!=null&&po.width&&((Ji=R())!=null&&Ji.height)?R():E();yield Z_(mi)}catch(mi){$e({message:String(mi)})}}at.set(St),e.store.getAdmanWrapper().setFullscreen(St),P()?(Sn=(Ki=e.store.callbacks)==null?void 0:Ki.onFullscreenEnter)==null||Sn.call(Ki):(Un=(wo=e.store.callbacks)==null?void 0:wo.onFullscreenExit)==null||Un.call(wo)}),ht=St=>{let Et=St,{width:po,height:Ji}=Et.target;At.set({width:po,height:Ji})},oi=()=>{let{width:St,height:Et}=n(ao).getBoundingClientRect();At.set({width:St,height:Et})};Dt(()=>{var St;return Zu(Bn),e.uiConfig.features.annotationsInside&&(yt==null||yt.init(n(ao))),za(Xe)&&(Xe==null||Xe.assignPlayerContainer(n(ao)),Xe==null||Xe.setExternalEventHandlers({resize:ht,leavepictureinpicture:oi})),N(Dr,!pa.clientChecker.device.isIphoneOrOldIpad),e.interactiveContainer&&((St=Oe().parentElement)==null||St.insertBefore(e.interactiveContainer,Oe().nextSibling)),()=>{clearTimeout(an),clearTimeout(No),clearTimeout(Zn),Br(),Xe==null||Xe.dispose().catch(Et=>{$e({message:String(Et)})}),Ju(Bn)}});let ir=K(!0),$r=K(!0),Fr=St=>{let Et=O()+(St==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;Et<0?(N(ir,!1),Et=0):Et>=D()&&(N($r,!1),Et=D()),N(Dn,!0),e.seekTime(Et)},wn=()=>pa.clientChecker.device.isIOS?n(ao):!e.uiConfig.allowChangingFullscreenTarget||!Bt()?e.outerContainerRef:Bt().contains(e.outerContainerRef)?Bt():e.outerContainerRef,yr=()=>_t(null,null,function*(){try{if(oa())yield Xu(document),$e({message:"exit fullscreen"});else{if($e({message:"request fullscreen"}),pa.clientChecker.device.isIOS&&!U())return;yield ju(wn())}}catch(St){$e({message:String(St)})}}),Oo=()=>{Ro()},cn=St=>{if(St.preventDefault(),z()){Oo();return}if(!Gt()){e.firstStart(),co(e.uiConfig.controls.hideTimeoutCursor);return}N(Dn,!1),y()?xn():co(e.uiConfig.controls.hideTimeoutMobile)},Do=()=>{ct.set(!0)},or=()=>{Mt||(ln.set(!0),co(e.uiConfig.controls.hideTimeoutCursor))},Wi=St=>{yo&&(yo(St),co(e.uiConfig.controls.hideTimeoutMobile))},Bo=St=>{Ui&&(Ui(St),co(e.uiConfig.controls.hideTimeoutMobile))};De(()=>{Mi.set(n(Nr))}),De(()=>{gt.set((n(er)||z()||G()||le()||Y()||!n(lo)&&(f()||n(dn)&&!n(Dn)))&&!n(Or)&&r()==="video"&&!d()&&re())}),De(()=>{!G()&&n(br)&&!X()&&co(e.uiConfig.controls.hideTimeoutMobile),N(br,G(),!0)}),De(()=>{N(ir,O()>0),N($r,!we()&&O()<D(),!0)}),De(()=>{lc(n(sn),z(),ce(),!0)});let nr=Q("aria_label_video_player");s$({fullScreenChangeHandler:Bn,getFullscreenTarget:wn}),d$({store:e.store,getFullscreenTarget:wn});let Hr=(St,Et)=>{var Sn,wo;let po=(wo=(Sn=e.store.callbacks)==null?void 0:Sn.uiInfo)==null?void 0:wo.onUpcomingLiveViewStateChanged;if(!po)return;let Ji=!!Et,Ki=Ae(Ae({},jn(n(ao),{upcomingLiveScreen:Et},"upcomingLiveScreen",Ji)),St);po(Ki)};var uo=qT();$t("blur",Ea,Oo);var Fn=T(uo);dl(Fn,{onClick:cn,get videoContainer(){return Oe()},set videoContainer(St){Oe(St)}});var Fo=k(Fn,2);Va(Fo,()=>"slot",!1,(St,Et)=>{to(St,()=>({name:ll}))});var Ur=k(Fo,2);Es(Ur,ne,St=>{var Et=KT(),po=de(Et);let Ji=v(()=>r()!=="thumb"||d()||Mt&&e.autoplay);rl(po,{get hidden(){return n(Ji)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Ki=k(po,2);{var Sn=Ze=>{var Kt=FT(),Ci=de(Kt);{var qo=mn=>{let Er=v(()=>e.uiConfig.controls.seekStepMobile/1e3);Tp(mn,{side:"left",get seekStep(){return n(Er)},handleSingleFirstClick:cn,handleSecondClick:()=>Fr("backward")})};V(Ci,mn=>{n(ir)&&mn(qo)})}var mo=k(Ci,2);{var Ir=mn=>{let Er=v(()=>e.uiConfig.controls.seekStepMobile/1e3);Tp(mn,{side:"right",get seekStep(){return n(Er)},handleSingleFirstClick:cn,handleSecondClick:()=>Fr("forward")})};V(mo,mn=>{n($r)&&mn(Ir)})}_(Ze,Kt)};V(Ki,Ze=>{e.canRewindLive&&ri&&!he().has("TIMELINE")&&Ze(Sn)})}var wo=k(Ki,2);{var Un=Ze=>{let Kt=v(()=>{var Ci;return(Ci=e.live)==null?void 0:Ci.startTime});Oc(Ze,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(Kt)},onUpcomingLiveViewStateChanged:Hr})};V(wo,Ze=>{r()==="LiveWaitingStart"&&Ze(Un)})}var mi=k(wo,2);{var Wr=Ze=>{sl(Ze,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};V(mi,Ze=>{r()==="LiveWaitingRecover"&&Ze(Wr)})}var Tn=k(mi,2);{var Ho=Ze=>{sl(Ze,{kind:"record",get thumbUrl(){return e.thumbUrl}})};V(Tn,Ze=>{r()==="LiveWaitingRecord"&&Ze(Ho)})}var xr=k(Tn,2);{var sr=Ze=>{var Kt=HT();let Ci;var qo=T(Kt);oc(qo,{get adsSlotId(){return Be()},get adsParams(){return fe()},get adsAutoplayParam(){return ee()},get duration(){return Se()},get adsExternalApi(){return e.adsExternalApi}}),w(Kt),B(mo=>Ci=se(Kt,1,"ads-container s-7",null,Ci,mo),[()=>({hidden:r()!=="ads"})]),_(Ze,Kt)};V(xr,Ze=>{e.showAds&&Gt()&&Ze(sr)})}var wr=k(xr,2);{var Cn=Ze=>{let Kt=v(()=>!Ct()&&e.showAutoplayNext&&S());Jv(Ze,{get title(){return Me()},get thumb(){return ze()},get isHide(){return n(Kt)},clickCloseIcon:()=>N(_r,!0)})};V(wr,Ze=>{n(lo)&&Me()&&ze()&&Ze(Cn)})}var un=k(wr,2);{var Kr=Ze=>{Rc(Ze,{})};V(un,Ze=>{xe()&&Ze(Kr)})}var pn=k(un,2);{var as=Ze=>{var Kt=UT(),Ci=T(Kt);ec(Ci,{}),w(Kt),_(Ze,Kt)};V(pn,Ze=>{Z()&&Ze(as)})}var Qe=k(pn,2);{var Vt=Ze=>{Nc(Ze,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return Ne()}})};V(Qe,Ze=>{Y()&&Ze(Vt)})}var xi=k(Qe,2);{var Io=Ze=>{ol(Ze,{get shifted(){return y()},get captions(){return A()},get position(){return O()},get playerSize(){return E()},isMobile:!0})};V(xi,Ze=>{ue().value!=="off"&&Ze(Io)})}var Eo=k(xi,2);{var Uo=Ze=>{var Kt=zT();Kt.__click=[BT,z,We,Oo];var Ci=T(Kt);nl(Ci,{}),w(Kt),_(Ze,Kt)};V(Eo,Ze=>{d()&&Ze(Uo)})}var fo=k(Eo,2);{var Ri=Ze=>{let Kt=v(()=>r()==="thumb"||r()==="LiveWaitingStart"||r()==="LiveWaitingRecover"||r()==="LiveWaitingRecord"||r()==="ads"),Ci=v(()=>r()==="ads"),qo=v(()=>e.canRewindLive&&Ke()!==0);Mc(Ze,{get bottomHidden(){return n(Kt)},get showControls(){return y()},get bottomNoSmooth(){return I()},get isAds(){return n(Ci)},get canRewindLive(){return n(qo)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Fe()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return qe()},get nextButtonActive(){return je()},get prevButtonActive(){return Te()},get isOneVideoPlaylist(){return Nt()},get customFullscreenSupported(){return n(Dr)},get endScreenShown(){return n(lo)},toggleFullscreen:yr,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:Wi,onDisabledSeekToInteractiveClick:Bo,get playerControlsWrapperRef(){return n(xo)},set playerControlsWrapperRef(mo){N(xo,mo,!0)},get playerControlsRef(){return n(zi)},set playerControlsRef(mo){N(zi,mo,!0)}})};V(fo,Ze=>{Gt()&&Ze(Ri)})}var zo=k(fo,2);{var Wo=Ze=>{var Kt=WT(),Ci=T(Kt);Hc(Ci,{get supportLink(){return e.supportLink},get returnFocus(){return c$.noop},get ref(){return n(sn)},set ref(qo){N(sn,qo,!0)}}),w(Kt),_(Ze,Kt)};V(zo,Ze=>{z()&&Ze(Wo)})}var So=k(zo,2);let Ko=v(()=>!n(ss));sc(So,{get isLive(){return Ce()},get isHidden(){return n(Ko)},get isPlaying(){return j()},get position(){return O()},get duration(){return D()}});var fn=k(So,2);{var Sr=Ze=>{Qa(Ze,{})};V(fn,Ze=>{n(hr)&&Ze(Sr)})}var Tr=k(fn,2);{var Cr=Ze=>{cc(Ze,{})};V(Tr,Ze=>{ie()&&Ze(Cr)})}var ls=k(Tr,2);{var ds=Ze=>{Uc(Ze,{onClose:Jn,onSelectAutoQuality:()=>{gr("auto"),Jn()}})};V(ls,Ze=>{n(rs)&&Ze(ds)})}_(St,Et)});var rr=k(Ur,2);nt(rr,St=>N(Nr,St),()=>n(Nr)),w(uo),nt(uo,St=>N(ao,St),()=>n(ao)),B(()=>Ue(uo,"aria-label",nr)),$t("click",uo,Do,!0),$t("focusin",uo,or,!0),_(t,uo),H(),o()}st(["click"]);function Ip(t){let e="";return no(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),no(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),no(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),no(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),no(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),no(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),no(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),no(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),no(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),no(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),no(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),no(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),no(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),no(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),no(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),no(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),no(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),no(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),no(t.font)&&(e+=`--font:${t.font};`),no(t.controlsGradientHeight)&&(e+=`--controls-gradient-height:${t.controlsGradientHeight};`),no(t.controlsGradient)&&(e+=`--controls-gradient:${t.controlsGradient};`),e.length&&e||void 0}function no(t){return typeof t=="string"&&!t.includes(";")}var u$=require("@vkontakte/videoplayer-shared/es2015");var GT=L('<div class="time-container s-9"><!></div>'),YT=L('<div class="player-wrapper s-9" role="region"><!> <!> <!> <!> <!> <div><!></div></div>'),jT={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%}.timeline.s-9{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-9{opacity:1}.time-container.s-9{bottom:8px;position:absolute;right:8px;z-index:var(--thumb-timer-z-index)}"};function tg(t,e){F(e,!0),q(t,jT);let[i,o]=Re(),r=()=>x(X,"$scrubbingInProgress",i),a=()=>x(Y,"$playerSize",i),l=()=>x(O,"$isPlaying$",i),d=()=>x(E,"$duration$",i),s=()=>x(z,"$positionWithScrubbing$",i),u=()=>x(I,"$playerPhase",i),p=()=>x(R,"$crashed$",i),m=()=>x(D,"$currentSubtitle$",i),f=()=>x(U,"$currentSubtitleCaptions$",i),b=()=>x(P,"$positionExact$",i),y=()=>x(G,"$isLive$",i),$=()=>x(le,"$isRewindableLive$",i),S=g(e,"outsideDuration",3,0),C=g(e,"videoContainer",15),{playerPhase:I,state:{crashed$:R,duration$:E,positionExact$:P,isPlaying$:O,currentSubtitle$:D,currentSubtitleCaptions$:U,positionWithScrubbing$:z,isLive$:G,isRewindableLive$:le},ui:{playerSize:Y,controls:re,scrubbingInProgress:X},actions:{internal:{getVideoElement:we}}}=ve(),ce=8,ne=K(!1),he=ci({}),xe=K(!1),Z=v(()=>!r()&&!n(xe)),Ne=()=>{N(ne,!0)},ue=()=>{N(ne,!1)},A=(0,u$.debounceFn)(sd,260);De(()=>{a(),A(we(),re,he,n(ne))});let Ke=v(()=>l()?on(d()-s()):on(isFinite(d())?d():S()));var Ce=YT(),j=T(Ce);dl(j,{hideCursor:!1,get videoContainer(){return C()},set videoContainer(Me){C(Me)}});var ie=k(j,2);Va(ie,()=>"slot",!1,(Me,ze)=>{to(Me,()=>({name:ll}))});var Oe=k(ie,2);let Be=v(()=>u()!=="thumb"||p());rl(Oe,{get hidden(){return n(Be)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var fe=k(Oe,2);{var ee=Me=>{ol(Me,{shifted:!1,get captions(){return f()},get position(){return b()},get playerSize(){return a()}})};V(fe,Me=>{m().value!=="off"&&n(Z)&&Me(ee)})}var Se=k(fe,2);{var Fe=Me=>{var ze=GT(),Nt=T(ze);rc(Nt,{get isLive(){return y()},get isPlaying(){return l()},get time(){return n(Ke)}}),w(ze),_(Me,ze)};V(Se,Me=>{n(Z)&&Me(Fe)})}var qe=k(Se,2);let je;var Te=T(qe);el(Te,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return $()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:ce,tooltipRightOffset:ce,get ref(){return he.timeline},set ref(Me){he.timeline=Me}}),w(qe),w(Ce),B(Me=>je=se(qe,1,"timeline s-9",null,je,Me),[()=>({visible:n(ne)})]),$t("mouseenter",Ce,Ne),$t("mouseleave",Ce,ue),$t("mouseenter",qe,()=>N(xe,!0)),$t("mouseleave",qe,()=>N(xe,!1)),_(t,Ce),H(),o()}var XT=L("<div><!></div>"),ZT={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;--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 ig(t,e){F(e,!0),q(t,ZT);let[i,o]=Re(),r=()=>x(Gt,"$isLive$",i),a=()=>x(yt,"$availableSubtitlesList$",i),l=()=>x(Xe,"$isPreviewTrackHorizontallyAligned$",i),d=g(e,"sources",7),s=g(e,"store",7),u=g(e,"microStoresRoot",7),p=g(e,"videoConfig",7),m=g(e,"uiConfig",7),f=g(e,"title",7),b=g(e,"thumbUrl",7),y=g(e,"interactiveContainer",7),$=g(e,"interactiveController",7),S=g(e,"subtitles",7),C=g(e,"subtitlesForcedLanguage",7),I=g(e,"live",7),R=g(e,"preload",7),E=g(e,"autoplay",7),P=g(e,"volume",7,void 0),O=g(e,"muted",7,void 0),D=g(e,"fromTime",7),U=g(e,"canRewindLive",7),z=g(e,"showAds",7),G=g(e,"adsSlotId",7,void 0),le=g(e,"adsParams",7,void 0),Y=g(e,"adsAutoplayParam",7,void 0),re=g(e,"duration",7,void 0),X=g(e,"logoClickable",7),we=g(e,"logoHidden",7),ce=g(e,"isMobile",7),ne=g(e,"showNextPrevButtons",7,!1),he=g(e,"nextButtonActive",7,!1),xe=g(e,"prevButtonActive",7,!1),Z=g(e,"endScreenVideoTitle",7,void 0),Ne=g(e,"endScreenVideoThumb",7,void 0),ue=g(e,"isOneVideoPlaylist",7,!1),A=g(e,"supportLink",7),Ke=g(e,"shadowRootContainer",7),Ce=g(e,"outerContainerRef",7),j=g(e,"fullScreenTarget",7,void 0),ie=g(e,"failoverHosts",7,void 0),Oe=g(e,"showMiniTimer",7,!1),Be=g(e,"saveRate",7),fe=g(e,"seekToInteractive",7,cl.noop),ee=g(e,"playPrevChapter",7,cl.noop),Se=g(e,"volumeMultiplier",7),Fe=g(e,"showAutoplayNext",7),qe=g(e,"showEndScreen",7,!0),je=g(e,"keyboardControls",15,void 0),{subscribers:Te,stores:Me}=u();s_(m());let ze=Rt(),Nt=m().logoLink,tt=s().ui.debugPanelVisible,Bt=s().ui.playerSize,Gt=s().state.isLive$,ti=s().state.isInteractive&&ud.clientChecker.device.isAndroid,Ft=K(void 0),$e=null,_e=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}),h_(s(),Me),De(()=>{var W,Mt;s().ui.isMobile.set(ce()),(Mt=(W=p().callbacks)==null?void 0:W.onDomReady)==null||Mt.call(W)});let J=(W=!1)=>{N(_e,!0),W?s().actions.external.firstStart(z()):s().actions.internal.firstStart(z())},ye=()=>{if(ze.features.qualityDetailsSubMenuEnabled){let W=F_(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{H_(s().videoId),jf()&&s().actions.internal.setTrafficSavingEnabled(!0);let Mt=Qf(s().videoId);Mt&&s().actions.internal.setQuality(Mt)}};function Pe(W){var jt,ct,Mi;let Mt=d()||W;Mt&&s().initVideo({container:n(Ft),sources:Mt,failoverHosts:ie(),subtitles:S(),subtitlesForcedLanguage:C(),volumeMultiplier:Se()});let di=cl.safeStorage.get(Yd)==="true";tt.set(di),D()>0&&s().actions.external.seekTime(D());let dt=ce()?ze.volumeDefault:(ct=(jt=P())!=null?jt:Hu())!=null?ct:ze.volumeDefault,It=(Mi=O())!=null?Mi:V_();if(s().actions.external.setVolume(dt),s().actions.external.setMuted(It),s().getAdmanWrapper().setInitialVolume(It?0:dt),ye(),ze.features.saveRate&&Be()){let Vi=O_();Vi&&!r()&&s().actions.internal.setPlaybackRate(Vi)}if(Fe()){let Vi=B_();Vi&&s().actions.internal.setAutoplayNextEnabled(Vi)}s().ui.isAutoplay.set(E()),E()&&J(),R()&&ze.features.preload&&s().actions.internal.preload()}let Pt=W=>{if(window.ResizeObserver){let Mt,di;$e=new ResizeObserver((0,cl.throttleFn)(dt=>{let It=dt[0];if(It.contentBoxSize){let jt=Array.isArray(It.contentBoxSize)?It.contentBoxSize[0]:It.contentBoxSize;Mt=jt.inlineSize,di=jt.blockSize}else It.contentRect&&(Mt=It.contentRect.width,di=It.contentRect.height);Bt.set({width:Mt,height:di})},300)),$e.observe(W)}Bt.set({width:W.clientWidth,height:W.clientHeight})},Ve=()=>{document.hidden&&s().actions.external.stop()};Dt(()=>{var di,dt,It,jt;ti&&document.addEventListener("visibilitychange",Ve),ze.debugLog&&s().actions.internal.startLogging(),Pt(n(Ft));let W=Te.map(ct=>ct.init({store:s(),microStores:Me,config:p(),interactiveController:$(),uiConfig:m()})),Mt=()=>{ti&&document.removeEventListener("visibilitychange",Ve),$e==null||$e.disconnect(),W.forEach(ct=>ct.unsubscribe()),s().destroy()};return((di=I())==null?void 0:di.status)==="upcoming"?(s().actions.internal.setLiveWaitingStart(!0),Mt):((dt=I())==null?void 0:dt.status)==="waiting"?(s().actions.internal.setLiveWaitingRecover(!0),Mt):(((It=I())==null?void 0:It.status)==="finished"||((jt=I())==null?void 0:jt.status)==="postlive")&&!(d()&&(0,ud.areValidLiveRecordSources)(d()))?(s().actions.internal.setLiveWaitingRecord(!0),Mt):(Pe(),Mt)});function at(){n(_e)?s().actions.external.play():J(!0)}function gt(){s().actions.external.pause()}function be(W){s().actions.external.setMuted(W)}function et(){s().actions.external.toggleSubtitle()}function We(W,Mt){s().actions.external.changeSubtitle(W,Mt)}function rt(W){s().actions.external.changeAudioStream(W)}function ii(){var W;(W=s().webApi.slotsApi)!=null&&W.haveSlots()&&s().actions.external.hideControls()}function li(){var W;(W=s().webApi.slotsApi)!=null&&W.haveSlots()&&s().actions.external.showControls()}function gi(W){ce()||W>=0&&W<=1&&s().actions.external.setVolume(W)}function yi(W){s().actions.internal.seekTime(W,p$.SeekAction.UNKNOWN)}function ro(W){s().actions.external.seekEpisodeStartTime(W)}function $o(){s().actions.external.returnFocusToEpisodes()}function pi(W){s().actions.external.setPlaybackRate(W)}function pt(W){s().actions.external.setAutoQualityLimits(W)}function Ai(){s().actions.external.setQuality("auto")}function Zt(W){s().actions.external.setTrafficSavingEnabled(W)}function Tt(W){s().actions.external.setHighQualityEnabled(W)}let ri=Ip(ze.view),Jt=p().playerView==="preview",yt=s().state.availableSubtitlesList$;if(ze.features.initSubtitles){let W=!1;De(()=>{var Mt;if(!W&&a().length){W=!0;let di;if(ze.features.userVideoPrefs&&s().videoId){let It=Ku(ze.userSalt,String(s().videoId));It!=null&&It.subtitleTrackId&&(di=a().find(jt=>jt.value===It.subtitleTrackId))}let dt=(Mt=C())!=null?Mt:Zf();dt&&(di=a().find(It=>It.language===dt)),s().actions.internal.setSubtitle(di)}})}let Xe=s().ui.isPreviewTrackHorizontallyAligned;var Si=XT();let so;var nn=T(Si);{var yn=W=>{eg(W,{get store(){return s()},get uiConfig(){return ze},get thumbUrl(){return b()},get interactiveContainer(){return y()},get live(){return I()},get autoplay(){return E()},get canRewindLive(){return U()},get showAds(){return z()},get adsSlotId(){return G()},get adsParams(){return le()},get adsAutoplayParam(){return Y()},get duration(){return re()},get logoClickable(){return X()},get logoHidden(){return we()},get logoTargetUrl(){return Nt},get nextButtonActive(){return he()},get prevButtonActive(){return xe()},get endScreenVideoTitle(){return Z()},get endScreenVideoThumb(){return Ne()},get isOneVideoPlaylist(){return ue()},get supportLink(){return A()},get shadowRootContainer(){return Ke()},get outerContainerRef(){return Ce()},get fullScreenTarget(){return j()},get showMiniTimer(){return Oe()},get playerStarted(){return n(_e)},get seekToInteractive(){return fe()},get playPrevChapter(){return ee()},firstStart:J,seekTime:yi,get showEndScreen(){return qe()},get showAutoplayNext(){return Fe()},get showNextPrevButtons(){return ne()},get adsExternalApi(){return e.adsExternalApi},get videoContainer(){return n(Ft)},set videoContainer(Mt){N(Ft,Mt,!0)}})},At=W=>{var Mt=Le(),di=de(Mt);{var dt=jt=>{tg(jt,{get thumbUrl(){return b()},get outsideDuration(){return re()},get canRewindLive(){return U()},get videoContainer(){return n(Ft)},set videoContainer(ct){N(Ft,ct,!0)}})},It=jt=>{Zv(jt,{get store(){return s()},get uiConfig(){return ze},get title(){return f()},get thumbUrl(){return b()},get interactiveContainer(){return y()},get live(){return I()},get autoplay(){return E()},get canRewindLive(){return U()},get showAds(){return z()},get adsSlotId(){return G()},get adsParams(){return le()},get adsAutoplayParam(){return Y()},get duration(){return re()},get logoClickable(){return X()},get logoHidden(){return we()},get logoTargetUrl(){return Nt},get nextButtonActive(){return he()},get prevButtonActive(){return xe()},get endScreenVideoTitle(){return Z()},get endScreenVideoThumb(){return Ne()},get isOneVideoPlaylist(){return ue()},get supportLink(){return A()},get shadowRootContainer(){return Ke()},get outerContainerRef(){return Ce()},get fullScreenTarget(){return j()},get showMiniTimer(){return Oe()},get playerStarted(){return n(_e)},get seekToInteractive(){return fe()},get playPrevChapter(){return ee()},firstStart:J,get showEndScreen(){return qe()},get showAutoplayNext(){return Fe()},get showNextPrevButtons(){return ne()},get adsExternalApi(){return e.adsExternalApi},get videoContainer(){return n(Ft)},set videoContainer(ct){N(Ft,ct,!0)},get keyboardControls(){return je()},set keyboardControls(ct){je(ct)}})};V(di,jt=>{Jt?jt(dt):jt(It,!1)})}_(W,Mt)};V(nn,W=>{ce()?W(yn):W(At,!1)})}w(Si),B(W=>{so=se(Si,1,"vk-vp-root s-3",null,so,W),Ge(Si,ri)},[()=>({"root--miui-browser":ud.clientChecker.device.isMobile&&ud.clientChecker.browser.isMiuiBrowser,"visible-outside":Jt,"preview-track-horizontally-alinged":l()})]),_(t,Si);var Ht=H({initVideo:Pe,play:at,pause:gt,setMuted:be,toggleSubtitle:et,changeSubtitle:We,changeAudioStream:rt,hideControls:ii,showControls:li,setVolume:gi,seekTime:yi,seekEpisodeStartTime:ro,returnFocusToEpisodes:$o,setPlaybackRate:pi,setAutoQualityLimits:pt,setAutoQuality:Ai,toggleTrafficSaving:Zt,toggleHighQuality:Tt,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 p()},set videoConfig(W){p(W)},get uiConfig(){return m()},set uiConfig(W){m(W)},get title(){return f()},set title(W){f(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 S()},set subtitles(W){S(W)},get subtitlesForcedLanguage(){return C()},set subtitlesForcedLanguage(W){C(W)},get live(){return I()},set live(W){I(W)},get preload(){return R()},set preload(W){R(W)},get autoplay(){return E()},set autoplay(W){E(W)},get volume(){return P()},set volume(W){P(W)},get muted(){return O()},set muted(W){O(W)},get fromTime(){return D()},set fromTime(W){D(W)},get canRewindLive(){return U()},set canRewindLive(W){U(W)},get showAds(){return z()},set showAds(W){z(W)},get adsSlotId(){return G()},set adsSlotId(W){G(W)},get adsParams(){return le()},set adsParams(W){le(W)},get adsAutoplayParam(){return Y()},set adsAutoplayParam(W){Y(W)},get duration(){return re()},set duration(W){re(W)},get logoClickable(){return X()},set logoClickable(W){X(W)},get logoHidden(){return we()},set logoHidden(W){we(W)},get isMobile(){return ce()},set isMobile(W){ce(W)},get showNextPrevButtons(){return ne()},set showNextPrevButtons(W){ne(W)},get nextButtonActive(){return he()},set nextButtonActive(W){he(W)},get prevButtonActive(){return xe()},set prevButtonActive(W){xe(W)},get endScreenVideoTitle(){return Z()},set endScreenVideoTitle(W){Z(W)},get endScreenVideoThumb(){return Ne()},set endScreenVideoThumb(W){Ne(W)},get isOneVideoPlaylist(){return ue()},set isOneVideoPlaylist(W){ue(W)},get supportLink(){return A()},set supportLink(W){A(W)},get shadowRootContainer(){return Ke()},set shadowRootContainer(W){Ke(W)},get outerContainerRef(){return Ce()},set outerContainerRef(W){Ce(W)},get fullScreenTarget(){return j()},set fullScreenTarget(W){j(W)},get failoverHosts(){return ie()},set failoverHosts(W){ie(W)},get showMiniTimer(){return Oe()},set showMiniTimer(W){Oe(W)},get saveRate(){return Be()},set saveRate(W){Be(W)},get showAutoplayNext(){return Fe()},set showAutoplayNext(W){Fe(W)},get seekToInteractive(){return fe()},set seekToInteractive(W){fe(W)},get playPrevChapter(){return ee()},set playPrevChapter(W){ee(W)},get volumeMultiplier(){return Se()},set volumeMultiplier(W){Se(W)},get showEndScreen(){return qe()},set showEndScreen(W){qe(W)},get keyboardControls(){return je()},set keyboardControls(W){je(W)}});return o(),Ht}var JT=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 og(t,e){let i=g(e,"isWhite",3,!1),o=v(()=>i()?"#fff":"#909499");Je(t,{width:"57",height:"60",get fill(){return n(o)},testId:"stub-icon",children:(r,a)=>{var l=JT();vi(9),_(r,l)},$$slots:{default:!0}})}var eC=L('<div class="title s-2"> </div>'),tC=L('<div class="playerStub s-2"><!> <!></div>'),iC={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 ng(t,e){q(t,iC);var i=tC(),o=T(i);{var r=d=>{var s=eC(),u=T(s,!0);w(s),B(()=>pe(u,e.title)),_(d,s)};V(o,d=>{e.title&&d(r)})}var a=k(o,2);{var l=d=>{let s=v(()=>!!e.thumbUrl);og(d,{get isWhite(){return n(s)}})};V(a,d=>{(!e.title||!e.thumbUrl)&&d(l)})}w(i),B(()=>Ge(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),_(t,i)}var oC=L('<div class="playerError s-1"><!></div>'),nC={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 rg(t){q(t,nC);var e=oC(),i=T(e);nl(i,{}),w(e),_(t,e)}var Bp=require("@vkontakte/videoplayer-shared/es2015"),Hi=require("@vkontakte/videoplayer-shared/es2015"),eu=require("@vkontakte/videoplayer-core/es2015"),hd=require("@vkontakte/videoplayer-statistics/es2015");var Pp=require("@vkontakte/videoplayer-shared/es2015"),Ep=class{constructor(){this.subscription=new Pp.Subscription,this.logger=new Pp.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=ge(e.state.currentPlaybackRate$),r=ge(e.state.duration$);if(!(!isFinite(i)||!isFinite(r)))try{(l=(a=navigator.mediaSession).setPositionState)==null||l.call(a,{position:i,playbackRate:o,duration:r})}catch(d){this.log({message:`MediaSession setPositionState can't call with position: ${i} and duration: ${r}`})}})))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};var fd=require("@vkontakte/videoplayer-shared/es2015");var rC=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),sC=L('<div><div><!></div> <span class="title s-6"> </span></div>'),aC={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 sg(t,e){F(e,!0),q(t,aC);let[i,o]=Re(),r=()=>x(u,"$interfaceLanguage$",i),a=()=>x(p,"$isMobile$",i),l=ve(),d=Rt(),s=!!l.webApi.pictureInPictureApi,u=l.interfaceLanguage$,p=l.ui.isMobile,m=l.ui.t,f=v(()=>r()&&m("pip_dummy_title")),b=Ip(d.view);var y=sC();let $;var S=T(y);let C;var I=T(S);Je(I,{width:"57",height:"56",testId:"pip-dummy-icon",children:(P,O)=>{var D=rC();vi(),_(P,D)},$$slots:{default:!0}}),w(S);var R=k(S,2),E=T(R,!0);w(R),w(y),B((P,O)=>{$=se(y,1,"player-pip-dummy s-6",null,$,P),Ge(y,b),C=se(S,1,"dummy-image s-6",null,C,O),pe(E,n(f))},[()=>({"is-pip-api":s}),()=>({desktop:!a()})]),_(t,y),H(),o()}var lC=Object.defineProperty,dC=(t,e,i)=>e in t?lC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,pd=(t,e,i)=>dC(t,typeof e!="symbol"?e+"":e,i),ag=(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())}),cC=460,uC=280,Kc=class{constructor({enabled:e=!0}={enabled:!0}){pd(this,"playerDomElement"),pd(this,"playerParentShadowRoot"),pd(this,"playerDummyElement"),pd(this,"svelteContext"),pd(this,"pipWindow"),pd(this,"info",{isActive$:new fd.ValueSubject(!1),isEnabled$:new fd.ValueSubject(!1),type:1}),this.info.isEnabled$=new fd.ValueSubject(e)}isSupported(){let{isEmbed:e}=(0,fd.detectEmbed)();return"documentPictureInPicture"in window&&!e}isActive(){return this.info.isActive$.getValue()}setPlayerDomElement(e,i){this.playerDomElement=e,this.playerParentShadowRoot=i}setContext(e){this.svelteContext=e}request(){return ag(this,null,function*(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=yield documentPictureInPicture.requestWindow({width:cC,height:uC,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let o=[...this.playerParentShadowRoot.styleSheets].map(s=>[...s.cssRules].map(u=>u.cssText).join(" ")).filter(Boolean).join(`
|
|
63
|
+
`),r=document.createElement("style");r.textContent=o;let a=this.createStretchedContainer(),l=a.attachShadow({mode:"open"});l.append(r),l.append(this.playerDomElement);let d={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=Xr(sg,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||(Ma(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1),this.pipWindow=void 0)})})}exit(){return ag(this,null,function*(){return new Promise(e=>{var i;this.pipWindow&&((i=documentPictureInPicture.window)==null||i.close()),e()})})}dispose(){return ag(this,null,function*(){yield this.exit()})}setEnabled(e){this.info.isEnabled$.next(e)}createStretchedContainer(){let e=document.createElement("div");return e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",e.style.height="100%",e}};function f$(t){return t instanceof Kc}var Ap=class{static getLatestSupportedVersion(e){let i=new Ua(e),o=new Kc(e);if(o.isSupported())return o;if(i.isSupported())return i}};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 m$="Inner error. Unexpectedly root annotation container null reference exception",v$="Annotation with such name already exists",g$="Annotation with such name does not exist";var md=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var vd=require("@vkontakte/videoplayer-shared/es2015"),pC="1",fC=100,kp=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new vd.Subscription}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=(0,vd.throttleFn)(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},fC);this.subscriptions.add((0,vd.observeElementSize)(this.rootAnnotationsContainer).subscribe(({width:o,height:r})=>{this.playerSize={width:o,height:r},i()})),this.mutationObserver=new MutationObserver(i),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,i){var o;if(!this.rootAnnotationsContainer)throw new md(m$);if(this.annotations.has(e))throw new md(v$);i.style.zIndex=(o=i.style.zIndex)!=null?o:pC,i.style.position="absolute",this.rootAnnotationsContainer.append(i),this.annotations.set(e,i)}get(e){let i=this.annotations.get(e);if(!i)throw new md(g$);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 ul=require("@vkontakte/videoplayer-shared/es2015"),$n=class{init({store:e,microStores:i,interactiveController:o,config:r}){return(0,ul.assertNonNullable)(e),(0,ul.assertNonNullable)(i),(0,ul.assertNonNullable)(r),r.interactiveData&&(0,ul.assertNonNullable)(o),this.subscription=new ul.Subscription,this.subscription}};var Qc=class extends $n{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$=Qt(Ae({},ae(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 $n{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$=Qt(Ae({},ae(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:p}=a.ui,m=ge(p),f=()=>m&&ge(u);return o.add(u.subscribe(b=>{if(!m)return;let y=ge(l);ge(s)?this.state$.set(b):y!==null&&this.state$.set(!y||b)})),o.add(s.subscribe(b=>{this.state$.set(!b||f())})),o.add(l.subscribe(b=>{if(b===null)return;let y=ge(d);if(f()){this.state$.set(!0);return}y&&this.state$.set(!b)})),o}};var Yc=class extends $n{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=ae("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 h$=require("@vkontakte/videoplayer-shared/es2015");var lg=ae(!1),Lp=null,jc=class extends $n{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$=Qt(Ae({},lg),{set:(i,o=!1)=>{i!==ge(lg)&&(this.clearTimeout(),lg.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(m=>{ge(l)&&m&&this.state$.set(!1)}));let p=(a==null?void 0:a.interactiveData)||{tooltipHelpHintActive:!1};return o.add((0,h$.combine)({isPlaying$:d,isInteractiveTime$:l,interactiveTimeIndicator:u}).subscribe(({isPlaying$:m,isInteractiveTime$:f,interactiveTimeIndicator:b})=>{var y,$;if(!(!m||!(b!=null&&b.isDisplayed))){if(!f)return this.state$.set(!1);p.tooltipHelpHintActive&&Lp===null&&(Lp=!0,p.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 $n{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$=Qt(Ae({},ae(null)),{toggle:Mp.noop});this.checkIfShouldHide=i=>Vs(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=()=>_t(this,null,function*(){if(this.checkIfShouldHide(ge(l)))return;let s=ge(this.state$),{isEnded$:u,playbackState$:p}=r.state,{disabledControls$:m}=r.ui.controls,f=ge(u),b=ge(p);if(s)try{yield a==null?void 0:a.toggleGraphView(!1),this.state$.set(!1),m.remove(Ff),!f&&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),m.add(Ff),!f&&this.graphMadePause&&r.actions.internal.pause()}catch(y){d({message:"Cant show graph"})}}}),o.add((0,Mp.combine)({graphIsOpened:this.state$,currentGridType:l}).subscribe(p=>_t(this,[p],function*({graphIsOpened:s,currentGridType:u}){if(this.checkIfShouldHide(u)&&s)try{yield a==null?void 0:a.toggleGraphView(!1),this.state$.set(!1)}catch(f){d({message:"Cant hide graph"})}}))),o}};var dg=require("@vkontakte/videoplayer-shared/es2015"),Zc=class extends $n{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:ae(!1),isEnabled$:ae(!1),type$:ae(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 dg.ValueSubject(!1),isEnabled$:new dg.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 _$=({maxShowCount:t,timeout:e})=>{let i=[t!==0?mC({maxCount:t}):void 0,e!==0?vC({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(r=>r.notificationShowed(o)),canShowNotification:o=>i.every(r=>r.canShowNotification(o))}},mC=({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}}},vC=({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(Qt(Ae({},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 $n{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:ae({}),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=_$({maxShowCount:a,timeout:l});let u=r.getPlayer();return o.add(u.events.severeStallOccured$.pipe((0,Rp.filterChanged)(),(0,Rp.filter)(p=>p)).subscribe(()=>{d&&!u.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(s&&r.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var b$=()=>[Qc,Gc,Yc,jc,Xc,Zc,Jc].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:Qt(Ae({},e),{[o.stateName]:o.state$})}},{subscribers:[],stores:{}});var gd=require("@vkontakte/videoplayer-shared/es2015");var Np=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.init()}destroy(){this.shadowRoot.removeEventListener("focusin",this.handleFocusChange)}};var gC=L('<div class="root s-0"><!></div>'),hC={hash:"s-0",code:".root.s-0{align-items:center;display:flex;inset:0;justify-content:center;pointer-events:none;position:absolute;z-index:1}"};function cg(t,e){F(e,!0),q(t,hC);let i=null,o=K(null);De(()=>(n(o)&&(i=window.setTimeout(()=>{N(o,null)},e.animationDuration)),()=>{i&&clearTimeout(i)}));function r(s){e.playbackStatusShow&&N(o,s?"prev":"next",!0)}var a=Le(),l=de(a);{var d=s=>{var u=Le(),p=de(u);Es(p,()=>n(o),m=>{var f=gC(),b=T(f);let y=v(()=>n(o)==="prev");Wc(b,{get duration(){return e.animationDuration},get Icon(){return ua},get reversed(){return n(y)}}),w(f),_(m,f)}),_(s,u)};V(l,s=>{e.playbackStatusShow&&n(o)&&s(d)})}return _(t,a),H({startVideoChangedAnimation:r})}var _C=Object.defineProperty,bC=Object.defineProperties,$C=Object.getOwnPropertyDescriptors,$$=Object.getOwnPropertySymbols,yC=Object.prototype.hasOwnProperty,xC=Object.prototype.propertyIsEnumerable,pg=(t,e,i)=>e in t?_C(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Fs=(t,e)=>{for(var i in e||(e={}))yC.call(e,i)&&pg(t,i,e[i]);if($$)for(var i of $$(e))xC.call(e,i)&&pg(t,i,e[i]);return t},wC=(t,e)=>bC(t,$C(e)),Xt=(t,e,i)=>pg(t,typeof e!="symbol"?e+"":e,i),Op=(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())}),SC={preload:!0,autoplay:!1,repeat:!1,loop:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:Hi.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:(0,eu.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},Xn=K(void 0),ug=ci({animationDuration:0,playbackStatusShow:!1}),Dp=class extends HTMLElement{constructor(){super(),Xt(this,"svelteStubComponent"),Xt(this,"svelteRootComponent"),Xt(this,"sveltePersistentLayerComponent"),Xt(this,"svelteErrorComponent"),Xt(this,"store"),Xt(this,"microStoresRoot"),Xt(this,"statistics"),Xt(this,"sentry"),Xt(this,"_shadowRoot"),Xt(this,"playerContainer"),Xt(this,"rootContainer"),Xt(this,"shadowRootContainer"),Xt(this,"playerId"),Xt(this,"uiConfig"),Xt(this,"coreConfig"),Xt(this,"statisticsConfig"),Xt(this,"interactiveController"),Xt(this,"interactiveContainer"),Xt(this,"graphMadePause"),Xt(this,"currentPlayingVideoIndex",0),Xt(this,"needToRepeatPlaylist",!1),Xt(this,"videoConfig"),Xt(this,"pictureInPictureApi"),Xt(this,"mediaSessionApi"),Xt(this,"unsubscribePlayerPhaseSubscription"),Xt(this,"logger"),Xt(this,"log"),Xt(this,"subscription"),Xt(this,"interactiveSubscription"),Xt(this,"annotationsApi"),Xt(this,"slotsApi"),Xt(this,"focusManager"),Xt(this,"prevIsid"),Xt(this,"isInited",!1),Xt(this,"postponedInitParams",null),Xt(this,"internalsExposure",null),Xt(this,"shadowDOMCallbacksDisabled",!1),Xt(this,"fatalError$",new Bp.ValueSubject(null)),Xt(this,"createOneStat",(e,i={})=>{var o,r,a,l;if(!this.videoConfig)return;let{albumId:d,statPlace:s,statUserSalt:u,statTrackCode:p,statVKAppId:m,refreshStatAuthToken:f,autoplay:b,isMobile:y,isTouch:$,refDomain:S,deviceId:C,interactiveData:I}=qc(this.videoConfig,i),R=(o=I==null?void 0:I.projectInfo)==null?void 0:o.pid,E=(a=(r=this.interactiveController)==null?void 0:r.state.isReplay$.getValue())!=null?a:!1;E&&(this.prevIsid=void 0);let{unitedVideoId:P,isClip:O=!1}=e;if(this.uiConfig.features.statistics&&P)try{return new hd.OneStat(Fs({movieId:P,albumId:d,place:s,trackCode:p,vkAppId:m,autoplay:(l=b&&!this.interactiveController)!=null?l:!1,mobile:$!=null?$:y,clip:O,refDomain:S,deviceId:C,isPreviewPlayerView:this.videoConfig.playerView==="preview"},R&&(!this.isInited||E)&&{projectId:Number(R)}),Fs({refreshAuthToken:f,userSalt:u,config:this.statisticsConfig},this.interactiveController&&{useIsid:!0,isid:this.prevIsid}))}catch(U){console.error(U),this.log({message:U.message})}}),gd.devNull.create("ui"),this.logger=new Hi.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new Hi.Subscription,this.interactiveSubscription=new Hi.Subscription,this.graphMadePause=!1,this.fatalError$.subscribe(e=>{this.unmountComponent(this.svelteErrorComponent),e&&(this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.svelteErrorComponent=Xr(rg,{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=ci({title:o,thumbUrl:r}),l={target:this.playerContainer,props:a};this.svelteStubComponent=Xr(ng,l),this.sveltePersistentLayerComponent=Xr(cg,{target:this.playerContainer,props:ug}),this.postponedInitParams&&(this.initPlayer(...this.postponedInitParams),this.postponedInitParams=null)}updatePersistentLayerProps(){if(!this.uiConfig)return;let{playbackStatusNextVideoAnimationDuration:e,features:{playbackStatusShow:i,playbackStatusNextVideoShow:o}}=this.uiConfig;ug.animationDuration=e,ug.playbackStatusShow=i&&o}disconnectedCallback(){var e,i,o,r,a,l,d;this.shadowDOMCallbacksDisabled||((e=this.annotationsApi)==null||e.destroy(),(i=this.slotsApi)==null||i.destroy(),(o=this.focusManager)==null||o.destroy(),(r=this.mediaSessionApi)==null||r.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteErrorComponent),this.unmountComponent(this.sveltePersistentLayerComponent),this.subscription.unsubscribe(),(a=this.unsubscribePlayerPhaseSubscription)==null||a.call(this),(l=this.interactiveController)==null||l.destroy(),this.interactiveSubscription.unsubscribe(),(d=this.internalsExposure)==null||d.destroy(),gd.devNull.destroy("ui"))}initPlayerRootContainers(){this.rootContainer=document.createElement("div"),this.rootContainer.style.position="relative",this.rootContainer.className="root-container",this.rootContainer.style.width="100%",this.rootContainer.style.height="100%",this.rootContainer.style.minHeight="206px",this.shadowRootContainer=document.createElement("div"),this.shadowRootContainer.style.position="absolute",this.shadowRootContainer.className="shadow-root-container",this.shadowRootContainer.style.width="100%",this.shadowRootContainer.style.height="100%",this._shadowRoot=this.shadowRootContainer.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(this.shadowRootContainer),this.append(this.rootContainer)}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 hd.ThinOneStat.ThinOneStat({deviceId:o,movieId:l,preload:r,isPreviewPlayerView:this.videoConfig.playerView==="preview"},{config:this.statisticsConfig,refreshAuthToken:a})}createPlayer(e,i={},o){var r,a,l,d,s,u,p,m,f,b;if(!this.videoConfig)return;let{albumId:y,statPlace:$,statAuthToken:S,preload:C,autoplay:I,volume:R,muted:E,fromTime:P,canRewindLive:O,supportLink:D,showAds:U,adsSlotId:z,adsParams:G={},adsAutoplayParam:le,interfaceLanguage:Y,isCyrillicRelatedInterface:re,logoClickable:X,logoHidden:we,isMobile:ce,isTouch:ne,isAudioDisabled:he,isLiveCatchUpMode:xe,fullScreenTarget:Z,failoverHosts:Ne,canDownload:ue,callbacks:A,interactiveData:Ke,showThumbTimer:Ce,additionalButtons:j=[],additionalSettingsMenuItems:ie=[],additionalContextMenuItems:Oe=[],repeat:Be,loop:fe,saveRate:ee,volumeMultiplier:Se,showEndScreen:Fe,showAutoplayNext:qe,mediascopePixels:je}=qc(this.videoConfig,i),{sources:Te,title:Me,thumbUrl:ze,unitedVideoId:Nt,isClip:tt=!1,duration:Bt,adsParams:Gt={},videoEpisodes:Ct,previewThumbsData:ti,subtitles:Ft,subtitlesForcedLanguage:$e,live:_e,adsExternalApi:J}=e;if(!Te&&!_e){let pi=new Error("empty sources and live");this.fatalError$.next(pi),(r=A.onCrashed)==null||r.call(A,pi.message);return}let ye=Fs(Fs({},G),Gt),Pe=this.getNextVideoInfo(),Pt={sources:Te,title:Me,thumbUrl:ze,subtitles:Ft,subtitlesForcedLanguage:$e,unitedVideoId:Nt,isClip:tt,live:_e,albumId:y,statPlace:$,autoplay:I,muted:E,volume:R,fromTime:P,canRewindLive:O,showAds:U,adsSlotId:z,adsParams:ye,adsAutoplayParam:le,duration:Bt,logoClickable:X,logoHidden:we,isTouch:ne!=null?ne:ce,repeat:Be,loop:fe,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Pe.nextVideoTitle,endScreenVideoThumb:Pe.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Ve={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi};this.log({message:`create player, props: ${JSON.stringify(Pt)}`});let at=(a=this.interactiveController)==null?void 0:a.state.statistics$.getValue(),gt=(at==null?void 0:at.oneStat)||this.createOneStat(e,i),be=this.createThinOneStat(e,i),et;je&&(et=new hd.MediascopePixel({pixels:je})),(gt||be)&&(this.statistics=new mp(gt,be,et,at==null?void 0:at.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Ha(this.uiConfig.sentry,{version:Da,env:Du},{movieId:Nt,albumId:y,place:$,autoplay:(l=I&&!this.interactiveController)!=null?l:!1,mobile:ne!=null?ne:ce,clip:tt}),this.interactiveController&&((u=this.prevIsid)!=null||(this.prevIsid=(s=(d=this.statistics)==null?void 0:d.oneStat)==null?void 0:s.isid$.getValue())),this.sentry=Fs(Fs({},this.sentry),Ha.getInstance());let rt=!!Ke,ii=[],li="tooltip_interactive_go_back_disabled_first";if(rt&&this.interactiveController){let pi=this.interactiveController.state.isInitialChapter$.getValue(),pt=this.interactiveController.getHistoryState();pi&&ii.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||ii.push("SEEK_TO_INTERACTIVE_BUTTON"),pt.hasPrevChapter$.getValue()||(ii.push("PLAY_PREV_CHAPTER_BUTTON"),pi||(pt.isGoBackLimited$.getValue()?li="tooltip_interactive_go_back_disabled_limit":li="tooltip_interactive_go_back_disabled"))}let gi=()=>{var pi;this.isInited=!1,this.prevIsid=void 0;let pt=(o==null?void 0:o.info.isEnded$.getValue())&&((pi=this.interactiveController)==null?void 0:pi.state.isEndChapter$.getValue());A.onReplayInteractiveVideo&&!pt?A.onReplayInteractiveVideo():this.replayInteractiveVideo()},yi=Be&&this.videoConfig.videos.length===1;this.store=Ab({player:o,interfaceLanguage:Y,isCyrillicRelatedInterface:re,videoId:Nt,isClip:tt,isLiveCatchUpMode:xe,isAudioDisabled:he,statAuthToken:S,callbacks:A,webApi:Ve,videoEpisodes:Ct,previewThumbsData:ti,canDownload:ue,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:ii,isInteractive:rt,saveRate:ee,interactiveRanges$:(p=this.interactiveController)==null?void 0:p.state.interactiveRanges$,isInteractiveTime$:(m=this.interactiveController)==null?void 0:m.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:gi,playPrevChapterDisabledTooltip:li,hasInteractiveBranches:!!((b=(f=this.interactiveController)==null?void 0:f.getChapterBranches())!=null&&b.length),additionalButtons:this.uiConfig.features.additionalButtons?j:[],additionalSettingsMenuItems:ie!=null?ie:[],additionalContextMenuItems:Oe!=null?Oe:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),onVideoChanged:pi=>{var pt;return(pt=this.sveltePersistentLayerComponent)==null?void 0:pt.startVideoChangedAnimation(pi)},looped:this.uiConfig.features.useLoopSetting?fe:yi,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView,playerId:this.playerId});let{stores:ro}=this.microStoresRoot=b$(),$o=()=>{var pi,pt,Ai,Zt,Tt,ri;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(yt=>{var Xe;return(Xe=A==null?void 0:A.onCurrentFormatChanged)==null?void 0:Xe.call(A,yt)})),this.subscription.add(ro.interactiveControlsOpacity$.subscribe(yt=>{var Xe;yt!==null&&((Xe=this==null?void 0:this.interactiveController)==null||Xe.setDisabledControls(yt))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(yt=>{var Xe;return(Xe=A==null?void 0:A.onThroughputEstimationChanged)==null?void 0:Xe.call(A,yt)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(yt=>{var Xe;return(Xe=A==null?void 0:A.onTrafficSavingEnabledChanged)==null?void 0:Xe.call(A,yt)})),this.subscription.add(this.store.state.highQualityEnabled$.subscribe(yt=>{var Xe;return(Xe=A==null?void 0:A.onHighQualityEnabledChanged)==null?void 0:Xe.call(A,yt)})),this.subscription.add(this.store.state.isAutoQualityEnabled$.subscribe(yt=>{var Xe;return(Xe=A==null?void 0:A.onAutoQualityEnabledChanged)==null?void 0:Xe.call(A,!!yt)})),this.subscription.add(new Hi.Observable(yt=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(Xe=>yt.next(Xe)))}).pipe((0,Hi.skip)(1)).subscribe(yt=>{var Xe;return(Xe=A==null?void 0:A.onCurrentPlaybackRateChanged)==null?void 0:Xe.call(A,yt)})),this.subscription.add(this.store.state.volume$.subscribe(yt=>{var Xe;return(Xe=A==null?void 0:A.onVolumeChange)==null?void 0:Xe.call(A,yt)})),this.subscription.add(this.store.state.muted$.subscribe(yt=>{var Xe,Si,so,nn;if(yt)(Xe=A==null?void 0:A.onMute)==null||Xe.call(A);else{let yn=(so=((Si=this.store)==null?void 0:Si.state.volume$)&&ge(this.store.state.volume$))!=null?so:0;(nn=A==null?void 0:A.onUnmute)==null||nn.call(A,yn)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(yt=>{var Xe;return(Xe=A==null?void 0:A.onVideoBitrateChanged)==null?void 0:Xe.call(A,yt)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(yt=>{var Xe;let Si=(Xe=this.store)==null?void 0:Xe.ui.controls.disabledControls$;Si&&(yt&&!Si.includes(jd)&&Si.add(jd),yt||Si.remove(jd))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(yt=>Op(this,null,function*(){var Xe;if(!eu.clientChecker.browser.isSamsungBrowser||!yt||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&(yield this.replayInteractiveChapter((Xe=this.videoConfig)==null?void 0:Xe.callbacks.onExternalFullscreenExit))}))),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(yt=>{var Xe;return(Xe=A==null?void 0:A.onVSIDChanged)==null?void 0:Xe.call(A,yt)})),this.initMediaSession(),N(Xn,{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:Te,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:Me,thumbUrl:ze,subtitles:Ft,subtitlesForcedLanguage:$e,live:_e,preload:C,autoplay:I,muted:E,volume:R,fromTime:P,canRewindLive:O,supportLink:D,showAds:U,adsSlotId:z,adsParams:ye,adsAutoplayParam:le,duration:Bt,logoClickable:X,logoHidden:we,isMobile:ne!=null?ne:ce,failoverHosts:Ne,fullScreenTarget:Z,saveRate:ee,shadowRootContainer:this.shadowRootContainer,showMiniTimer:Ce,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Pe.nextVideoTitle,endScreenVideoThumb:Pe.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:Se,showEndScreen:Fe,showAutoplayNext:qe,adsExternalApi:J},!0);let Jt={target:this.playerContainer,props:n(Xn)};this.svelteRootComponent=Xr(ig,Jt),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(Ai=(pt=(pi=this.videoConfig)==null?void 0:pi.callbacks)==null?void 0:pt.onInited)==null||Ai.call(pt)),(Zt=this.internalsExposure)==null||Zt.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((ri=(Tt=this.videoConfig)==null?void 0:Tt.callbacks)!=null&&ri.onDevNullLog)?gd.devNull.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):gd.devNull.destroy("ui")};this.coreConfig.asyncResolveClientChecker?eu.clientChecker.isInited$.subscribe(pi=>{pi&&(console.log("UI SDK async start"),$o())}):$o()}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.isLive$.subscribe(d=>{var s;return(s=a.onIsLiveChanged)==null?void 0:s.call(a,d)})).add(o.state.isActiveLive$.subscribe(d=>{var s;return(s=a.onIsActiveLiveChanged)==null?void 0:s.call(a,d)})).add(o.state.isAudioAvailable$.subscribe(d=>{var s;return(s=a.onIsAudioAvailableChanged)==null?void 0:s.call(a,d)})).add(o.state.currentQuality$.subscribe(d=>{var s;return(s=a.onCurrentQualityChanged)==null?void 0:s.call(a,d)})).add(o.state.availableQualities$.subscribe(d=>{var s;return(s=a.onAvailableQualitiesChanged)==null?void 0:s.call(a,d.map(({value:u})=>u).filter(u=>u!=="auto"))})).add(o.state.availableAudioStreams$.subscribe(d=>{d.length>1&&a.onAudioLanguagesAvailable&&a.onAudioLanguagesAvailable()})).add(r.pictureInPicture$.isActive$.subscribe(d=>{var s,u;return d?(s=a.onPiPEnter)==null?void 0:s.call(a):(u=a.onPiPExit)==null?void 0:u.call(a)}));let l=a==null?void 0:a.uiInfo;l&&this.subscription.add(o.ui.controlsVisible.subscribe(d=>{var s;return(s=l.onControlsVisibleChanged)==null?void 0:s.call(l,d)})).add(o.ui.isMobile.subscribe(d=>{var s;return(s=l.onIsMobileChanged)==null?void 0:s.call(l,d)})).add(o.ui.playerSize.subscribe(d=>{var s;return(s=l.onPlayerSizeChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.prevButton.subscribe(d=>{var s;return(s=l.onPrevButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.playButton.subscribe(d=>{var s;return(s=l.onPlayButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.replayButton.subscribe(d=>{var s;return(s=l.onReplayButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.nextButton.subscribe(d=>{var s;return(s=l.onNextButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.playPrevChapterButton.subscribe(d=>{var s;return(s=l.onPlayPrevChapterChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.seekToInteractiveButton.subscribe(d=>{var s;return(s=l.onSeekToInteractiveButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.interactiveGraphButton.subscribe(d=>{var s;return(s=l.onGraphButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.liveButton.subscribe(d=>{var s;return(s=l.onLiveButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.time.subscribe(d=>{var s;return(s=l.onTimeUpdateChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.episodes.subscribe(d=>{var s;return(s=l.onEpisodesChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.subtitles.subscribe(d=>{var s;return(s=l.onSubtitlesChanged)==null?void 0:s.call(l,d)})).add(o.ui.controlBlocks.topLeft.subscribe(d=>{var s;return(s=l.onTopLeftControlBlockChanged)==null?void 0:s.call(l,d)})).add(o.ui.controlBlocks.topRight.subscribe(d=>{var s;return(s=l.onTopRightControlBlockChanged)==null?void 0:s.call(l,d)})).add(o.ui.controlBlocks.bottomLeft.subscribe(d=>{var s;return(s=l.onBottomLeftControlBlockChanged)==null?void 0:s.call(l,d)})).add(o.ui.controlBlocks.bottomRight.subscribe(d=>{var s;return(s=l.onBottomRightControlBlockChanged)==null?void 0:s.call(l,d)})).add(o.ui.controlBlocks.middle.subscribe(d=>{var s;return(s=l.onMiddleControlBlockChanged)==null?void 0:s.call(l,d)})).add(o.ui.controlBlocks.bottom.subscribe(d=>{var s;return(s=l.onBottomControlBlockChanged)==null?void 0:s.call(l,d)})).add(o.ui.videoTitleInfo.subscribe(d=>{var s;return(s=l.onTitleChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.settings.subscribe(d=>{var s;return(s=l.onSettingsChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.fullscreen.subscribe(d=>{var s;return(s=l.onFullscreenChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.chromecast.subscribe(d=>{var s;return(s=l.onChromecastChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.pip.subscribe(d=>{var s;return(s=l.onPipChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.vkLogo.subscribe(d=>{var s;return(s=l.onVkLogoChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.interactiveTimeIndicator.subscribe(d=>{var s;return(s=l.onInteractiveTimeIndicatorChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.timeline.subscribe(d=>{var s;return(s=l.onTimelineChanged)==null?void 0:s.call(l,d)}))}playNextVideo(){this.videoConfig&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){this.videoConfig&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}createPlayerWithCurrentVideo(e,i=!0){var o;if(!this.videoConfig)return;let r=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!r){this.log({message:"no next video"});return}this.isInited&&(0,Hi.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 Op(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?ge(s):this.videoConfig.interfaceLanguage,{projectInfo:p,initChapterId:m,historyApi:f,videoLoader:b}=this.videoConfig.interactiveData;this.interactiveController=new d({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:u,graph:this.uiConfig.features.interactiveGraph,projectInfo:p,initChapterId:m,historyApi:f,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(C=>{if(!this.isInited)return;let I=this.store;C?I.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):I.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(y.subscribe(C=>{this.store&&this.store.state.isInteractiveExpectation$.set(C)}));let S=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(C=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]=wC(Fs({},C.config),{title:(p==null?void 0:p.title)||C.config.title});let I=S?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(C.player,I),S&&(S=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:C,actionType:I})=>{var R,E,P,O,D,U;if(!this.store||!this.microStoresRoot)return;let z=y.getValue();if(C==="action-choice"&&I==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(Xd)),C==="action-choice-canceled"){let G=ge(this.store.state.isPlaying$)||z;if(((P=(R=this.videoConfig)==null?void 0:R.isTouch)!=null?P:(E=this.videoConfig)!=null&&E.isMobile)&&G){this.store.ui.interactiveHideMobileControls.set(!0);return}(U=(O=this.videoConfig)==null?void 0:(D=O.callbacks).onDisabledInteractiveClick)==null||U.call(D)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:C,removeAllOpenURI:I})=>{this.store&&C==="container-fake-removed"&&I&&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 C=this.interactiveController.getHistoryState();this.subscription.add(C.history$.subscribe(I=>{var R,E,P;I.length&&((P=(E=(R=this.videoConfig)==null?void 0:R.callbacks)==null?void 0:E.onInteractiveHistoryChanged)==null||P.call(E,I))}))}(l=(a=this.videoConfig)==null?void 0:a.callbacks)!=null&&l.onInteractiveChapterChanged&&this.subscription.add(this.interactiveController.events.chapterChanged$.subscribe(C=>{var I,R,E;(E=(I=this.videoConfig)==null?void 0:(R=I.callbacks).onInteractiveChapterChanged)==null||E.call(R,C.chapter,C.manifestVideo)})),this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var C,I,R,E;(C=this.microStoresRoot)==null||C.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(E=(I=this.videoConfig)==null?void 0:(R=I.callbacks).onInteractiveTimeIndicatorClick)==null||E.call(R)})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(C=>{this.log({message:C.toString()})}))}catch(d){this.log({message:d.message})}})}initPlayer(e,i={}){var o,r,a,l,d,s,u,p,m,f,b,y,$,S,C,I,R,E,P,O,D,U,z,G,le;if(!this.isConnected){this.postponedInitParams=[e,i];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=qc(SC,(0,Hi.cloneDeepWith)(e,Y=>Y instanceof HTMLElement?Y:void 0)),this.playerId=(0,Hi.getPlayerId)(e.playerId),this.uiConfig=r_((a=i.ui)!=null?a:{}),this.updatePersistentLayerProps(),this.coreConfig=(l=i.core)!=null?l:{configName:[]},this.statisticsConfig=(d=i.statistics)!=null?d:{},this.uiConfig.features.forcePlayerDisplayBlock&&(this.rootContainer&&(this.rootContainer.style.minHeight="unset"),this.style.display="block",this.style.width="100%",this.style.height="100%"),this.videoConfig.playerView==="preview"&&(this.playerContainer.style.contain="none"),this.sentry={config:(s=this.uiConfig.sentry)!=null?s:{}},this.uiConfig.features.exposeInternalsToGlobal&&((u=this.internalsExposure)!=null||(this.internalsExposure=new Hi.InternalsExposure("ui",this.playerId))),gd.devNull.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+((p=this.videoConfig)==null?void 0:p.showAds)],numbers:[(0,Bp.now)()]}),(0,Hi.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(f=(m=this.uiConfig.features.mediaSession)!=null?m:this.videoConfig.isMediaSessionEnabled)!=null?f:!0),(0,Hi.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=(S=($=this.uiConfig.features.dpip)!=null?$:this.videoConfig.isPictureInPictureEnabled)!=null?S:!0),this.uiConfig.ads.paramsOverride=Fs({preview:(C=this.uiConfig.ads.preview)!=null?C:this.videoConfig.adsPreviewParam},this.uiConfig.ads.paramsOverride),this.videoConfig.isTouch=(R=(I=this.uiConfig.isMobile)!=null?I:this.videoConfig.isTouch)!=null?R:this.videoConfig.isMobile,(E=this.videoConfig).autoplay&&(E.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(P=this.uiConfig.ads.enable)!=null?P:this.videoConfig.showAds,this.videoConfig.adsSlotId=(O=this.uiConfig.ads.slot)!=null?O:this.videoConfig.adsSlotId,this.videoConfig.logoHidden=!((D=this.uiConfig.showLogo)!=null?D:!this.videoConfig.logoHidden),(U=this.videoConfig).canRewindLive&&(U.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&&((G=this.videoConfig.videos)!=null&&G[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=Ap.getLatestSupportedVersion(Y):this.pictureInPictureApi=new Ua(Y)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new Ep:void 0,this.slotsApi=this.uiConfig.features.slots?new Sp:void 0,this.annotationsApi=this.uiConfig.features.annotations?new kp(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),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]),f$(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(le=this.slotsApi)==null||le.init(this.shadowRootContainer,this.store),this.focusManager=this._shadowRoot?new Np(this._shadowRoot):void 0}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(Xn)&&(n(Xn).showNextPrevButtons=this.needToShowNextPrevButtons(),n(Xn).nextButtonActive=this.isNextButtonActive(),n(Xn).prevButtonActive=this.isPrevButtonActive(),n(Xn).endScreenVideoTitle=o.nextVideoTitle,n(Xn).endScreenVideoThumb=o.nextVideoThumb,n(Xn).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}=Fs({},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(Xn)&&(n(Xn).needToRepeatPlaylist=this.needToRepeatPlaylist,n(Xn).showNextPrevButtons=this.needToShowNextPrevButtons(),n(Xn).nextButtonActive=this.isNextButtonActive(),n(Xn).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 Op(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 Op(this,null,function*(){var i,o;if(this.interactiveController&&((i=this.store)!=null&&i.state.positionExact$)){let r=ge(this.store.state.positionExact$),l=ge(this.store.state.interactiveEpisodes$).find(s=>!s.completed);this.interactiveController.events.playerChanged$.pipe((0,Hi.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&&Ma(e)}};var _d=require("@vkontakte/videoplayer-shared/es2015"),Fp=require("@vkontakte/videoplayer-core/es2015"),TC=()=>{window.customElements.define("vk-video-player",Dp)};
|