@vkontakte/videoplayer 1.1.78-dev.39558a0e.0 → 1.1.78
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 +15 -15
- package/es2015.esm.js +15 -15
- package/es2018.cjs.js +16 -16
- package/es2018.esm.js +14 -14
- package/es2024.cjs.js +9 -9
- package/es2024.esm.js +8 -8
- package/esnext.cjs.js +9 -9
- package/esnext.esm.js +8 -8
- package/evergreen.esm.js +8 -8
- package/package.json +5 -5
package/es2015.cjs.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vkontakte/videoplayer v1.1.78
|
|
3
|
-
*
|
|
2
|
+
* @vkontakte/videoplayer v1.1.78
|
|
3
|
+
* Mon, 24 Nov 2025 06:14:35 GMT
|
|
4
4
|
* https://st.mycdn.me/static/vkontakte-videoplayer/1-1-78/doc/
|
|
5
5
|
*/
|
|
6
|
-
"use strict";var N$=Object.create;var yd=Object.defineProperty,O$=Object.defineProperties,D$=Object.getOwnPropertyDescriptor,B$=Object.getOwnPropertyDescriptors,F$=Object.getOwnPropertyNames,yg=Object.getOwnPropertySymbols,H$=Object.getPrototypeOf,xg=Object.prototype.hasOwnProperty,U$=Object.prototype.propertyIsEnumerable;var wg=t=>{throw TypeError(t)};var qp=(t,e,i)=>e in t?yd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Ie=(t,e)=>{for(var i in e||(e={}))xg.call(e,i)&&qp(t,i,e[i]);if(yg)for(var i of yg(e))U$.call(e,i)&&qp(t,i,e[i]);return t},jt=(t,e)=>O$(t,B$(e));var z$=(t,e)=>{for(var i in e)yd(t,i,{get:e[i],enumerable:!0})},Sg=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of F$(e))!xg.call(t,r)&&r!==i&&yd(t,r,{get:()=>e[r],enumerable:!(o=D$(e,r))||o.enumerable});return t};var Tg=(t,e,i)=>(i=t!=null?N$(H$(t)):{},Sg(e||!t||!t.__esModule?yd(i,"default",{value:t,enumerable:!0}):i,t)),W$=t=>Sg(yd({},"__esModule",{value:!0}),t);var mr=(t,e,i)=>qp(t,typeof e!="symbol"?e+"":e,i),Qp=(t,e,i)=>e.has(t)||wg("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)?wg("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),$l=(t,e,i,o)=>(Qp(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),Cg=(t,e,i)=>(Qp(t,e,"access private method"),i);var gt=(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 LC={};z$(LC,{ControlButtonType:()=>xc,GridTypes:()=>Jr,InterfaceLanguage:()=>gd.InterfaceLanguage,MenuItemType:()=>Xl,PlayerPhase:()=>es,VERSION:()=>Na,VKNumericLanguage:()=>gd.VKNumericLanguage,VideoFormat:()=>Fp.VideoFormat,VideoQuality:()=>Fp.VideoQuality,loadVKLangPack:()=>gd.loadVKLangPack,registerPlayerWebComponent:()=>
|
|
6
|
+
"use strict";var N$=Object.create;var yd=Object.defineProperty,O$=Object.defineProperties,D$=Object.getOwnPropertyDescriptor,B$=Object.getOwnPropertyDescriptors,F$=Object.getOwnPropertyNames,yg=Object.getOwnPropertySymbols,H$=Object.getPrototypeOf,xg=Object.prototype.hasOwnProperty,U$=Object.prototype.propertyIsEnumerable;var wg=t=>{throw TypeError(t)};var qp=(t,e,i)=>e in t?yd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Ie=(t,e)=>{for(var i in e||(e={}))xg.call(e,i)&&qp(t,i,e[i]);if(yg)for(var i of yg(e))U$.call(e,i)&&qp(t,i,e[i]);return t},jt=(t,e)=>O$(t,B$(e));var z$=(t,e)=>{for(var i in e)yd(t,i,{get:e[i],enumerable:!0})},Sg=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of F$(e))!xg.call(t,r)&&r!==i&&yd(t,r,{get:()=>e[r],enumerable:!(o=D$(e,r))||o.enumerable});return t};var Tg=(t,e,i)=>(i=t!=null?N$(H$(t)):{},Sg(e||!t||!t.__esModule?yd(i,"default",{value:t,enumerable:!0}):i,t)),W$=t=>Sg(yd({},"__esModule",{value:!0}),t);var mr=(t,e,i)=>qp(t,typeof e!="symbol"?e+"":e,i),Qp=(t,e,i)=>e.has(t)||wg("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)?wg("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),$l=(t,e,i,o)=>(Qp(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),Cg=(t,e,i)=>(Qp(t,e,"access private method"),i);var gt=(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 LC={};z$(LC,{ControlButtonType:()=>xc,GridTypes:()=>Jr,InterfaceLanguage:()=>gd.InterfaceLanguage,MenuItemType:()=>Xl,PlayerPhase:()=>es,VERSION:()=>Na,VKNumericLanguage:()=>gd.VKNumericLanguage,VideoFormat:()=>Fp.VideoFormat,VideoQuality:()=>Fp.VideoQuality,loadVKLangPack:()=>gd.loadVKLangPack,registerPlayerWebComponent:()=>AC});module.exports=W$(LC);var Qs="[",Gs="[!",$a="]",cs={};var oo=Symbol(),Yn=Symbol("filename"),Ig=Symbol("hmr"),Eg="http://www.w3.org/1999/xhtml",au="http://www.w3.org/2000/svg";var Gp="@attach";var lu=!0;var kg,Ag,Pg=(Ag=(kg=globalThis.process)==null?void 0:kg.env)==null?void 0:Ag.NODE_ENV,Ee=Pg&&!Pg.toLowerCase().startsWith("prod");var vr=Array.isArray,Lg=Array.prototype.indexOf,xd=Array.from,Yp=Object.keys,_o=Object.defineProperty,Yo=Object.getOwnPropertyDescriptor,du=Object.getOwnPropertyDescriptors,jp=Object.prototype,Mg=Array.prototype,ya=Object.getPrototypeOf,Xp=Object.isExtensible;function Ys(t){return typeof t=="function"}var ht=()=>{};function Vg(t){return t()}function js(t){for(var e=0;e<t.length;e++)t[e]()}var jo=Symbol("$state"),yl=Symbol("legacy props"),Rg=Symbol(""),cu=Symbol("proxy path"),uu=1,xl=3,gr=8;function pu(t){return t===this.v}function wl(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Ng(t,e){return t!==e}function Sl(t){return!wl(t,this.v)}function Og(){if(Ee){let t=new Error(`derived_references_self
|
|
7
7
|
A derived value cannot reference itself recursively
|
|
8
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 Dg(t){if(Ee){let e=new Error(`effect_in_teardown
|
|
9
9
|
\`${t}\` cannot be used inside an effect cleanup function
|
|
@@ -24,7 +24,7 @@ https://svelte.dev/e/rune_outside_svelte`);throw e.name="Svelte error",e}else th
|
|
|
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;_o(e,"stack",{value:r.join(`
|
|
25
25
|
`)}),_o(e,"name",{value:`${t}Error`})}return e}function qr(t,e){return t.label=e,fu(t.v,e),t}function fu(t,e){var i;return(i=t==null?void 0:t[cu])==null||i.call(t,e),t}function Tl(t){if(Ee){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 qt=null;function Sd(t){qt=t}var hr=null;function Td(t){hr=t}function Cl(t){return ef("getContext").get(t)}function Il(t,e){return ef("setContext").set(t,e),e}function Cd(){return ef("getAllContexts")}function B(t,e=!1,i){var o=qt={p:qt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};us&&!e&&(qt.l={s:null,u:null,r1:[],r2:
|
|
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 qt=null;function Sd(t){qt=t}var hr=null;function Td(t){hr=t}function Cl(t){return ef("getContext").get(t)}function Il(t,e){return ef("setContext").set(t,e),e}function Cd(){return ef("getAllContexts")}function B(t,e=!1,i){var o=qt={p:qt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};us&&!e&&(qt.l={s:null,u:null,r1:[],r2:Ar(!1)}),Oo(()=>{o.d=!0}),Ee&&(qt.function=i,hr=i)}function F(t){var l,d;let e=qt;if(e!==null){t!==void 0&&(e.x=t);let s=e.e;if(s!==null){var i=$t,o=Bt;e.e=null;try{for(var r=0;r<s.length;r++){var a=s[r];bo(a.effect),Gi(a.reaction),Do(a.fn)}}finally{bo(i),Gi(o)}}qt=e.p,Ee&&(hr=(d=(l=e.p)==null?void 0:l.function)!=null?d:null),e.m=!0}return t||{}}function fs(){return!us||qt!==null&&qt.l===null}function ef(t){var e;return qt===null&&Tl(t),(e=qt.c)!=null?e:qt.c=new Map(q$(qt)||void 0)}function q$(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var Q$=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function ci(t){if(typeof t!="object"||t===null||jo in t)return t;let e=ya(t);if(e!==jp&&e!==Mg)return t;var i=new Map,o=vr(t),r=K(0),a=Ee&&ps?xs("CreatedAt"):null,l=Bt,d=m=>{var p=Bt;Gi(l);var f=m();return Gi(p),f};o&&i.set("length",K(t.length,a));var s="";function u(m){s=m,qr(r,`${s} version`);for(let[p,f]of i)qr(f,xa(s,p))}return new Proxy(t,{defineProperty(m,p,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&Qg();var $=i.get(p);return $===void 0?$=d(()=>{var y=K(f.value,a);return i.set(p,y),Ee&&typeof p=="string"&&qr(y,xa(s,p)),y}):O($,f.value,!0),!0},deleteProperty(m,p){var f=i.get(p);if(f===void 0){if(p in m){let _=d(()=>K(oo,a));i.set(p,_),tf(r),Ee&&qr(_,xa(s,p))}}else{if(o&&typeof p=="string"){var $=i.get("length"),y=Number(p);Number.isInteger(y)&&y<$.v&&O($,y)}O(f,oo),tf(r)}return!0},get(m,p,f){var S;if(p===jo)return t;if(Ee&&p===cu)return u;var $=i.get(p),y=p in m;if($===void 0&&(!y||(S=Yo(m,p))!=null&&S.writable)&&($=d(()=>{var C=ci(y?m[p]:oo),I=K(C,a);return Ee&&qr(I,xa(s,p)),I}),i.set(p,$)),$!==void 0){var _=n($);return _===oo?void 0:_}return Reflect.get(m,p,f)},getOwnPropertyDescriptor(m,p){var f=Reflect.getOwnPropertyDescriptor(m,p);if(f&&"value"in f){var $=i.get(p);$&&(f.value=n($))}else if(f===void 0){var y=i.get(p),_=y==null?void 0:y.v;if(y!==void 0&&_!==oo)return{enumerable:!0,configurable:!0,value:_,writable:!0}}return f},has(m,p){var _;if(p===jo)return!0;var f=i.get(p),$=f!==void 0&&f.v!==oo||Reflect.has(m,p);if(f!==void 0||$t!==null&&(!$||(_=Yo(m,p))!=null&&_.writable)){f===void 0&&(f=d(()=>{var S=$?ci(m[p]):oo,C=K(S,a);return Ee&&qr(C,xa(s,p)),C}),i.set(p,f));var y=n(f);if(y===oo)return!1}return $},set(m,p,f,$){var A;var y=i.get(p),_=p in m;if(o&&p==="length")for(var S=f;S<y.v;S+=1){var C=i.get(S+"");C!==void 0?O(C,oo):S in m&&(C=d(()=>K(oo,a)),i.set(S+"",C),Ee&&qr(C,xa(s,S)))}if(y===void 0)(!_||(A=Yo(m,p))!=null&&A.writable)&&(y=d(()=>K(void 0,a)),O(y,ci(f)),i.set(p,y),Ee&&qr(y,xa(s,p)));else{_=y.v!==oo;var I=d(()=>ci(f));O(y,I)}var N=Reflect.getOwnPropertyDescriptor(m,p);if(N!=null&&N.set&&N.set.call($,f),!_){if(o&&typeof p=="string"){var P=i.get("length"),E=Number(p);Number.isInteger(E)&&E>=P.v&&O(P,E+1)}tf(r)}return!0},ownKeys(m){n(r);var p=Reflect.ownKeys(m).filter(y=>{var _=i.get(y);return _===void 0||_.v!==oo});for(var[f,$]of i)$.v!==oo&&!(f in m)&&p.push(f);return p},setPrototypeOf(){Gg()}})}function xa(t,e){var i;return typeof e=="symbol"?`${t}[Symbol(${(i=e.description)!=null?i:""})]`:Q$.test(e)?`${t}.${e}`:/^\d+$/.test(e)?`${t}[${e}]`:`${t}['${e}']`}function tf(t,e=1){O(t,t.v+e)}function El(t){try{if(t!==null&&typeof t=="object"&&jo in t)return t[jo]}catch(e){}return t}function of(t,e){return Object.is(El(t),El(e))}function Qr(t){var e=2050,i=Bt!==null&&(Bt.f&2)!==0?Bt:null;$t===null||i!==null&&(i.f&256)!==0?e|=256:$t.f|=1048576;let o={ctx:qt,deps:null,effects:null,equals:pu,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:$t};return Ee&&ps&&(o.created=xs("CreatedAt")),o}function v(t){let e=Qr(t);return gu(e),e}function Cn(t){let e=Qr(t);return e.equals=Sl,e}function mu(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)Yi(e[i])}}var nf=[];function G$(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=$t;if(bo(G$(t)),Ee){let o=wa;rf(new Set);try{nf.includes(t)&&Og(),nf.push(t),mu(t),e=vu(t)}finally{bo(i),rf(o),nf.pop()}}else try{mu(t),e=vu(t)}finally{bo(i)}return e}function lf(t){var e=af(t);if(t.equals(e)||(t.v=e,t.wv=Id()),!ws){var i=(Ss||(t.f&256)!==0)&&t.deps!==null?4096:1024;In(t,i)}}var wa=new Set,Pl=new Map;function rf(t){wa=t}function Ar(t,e){var i={f:0,v:t,reactions:null,equals:pu,rv:0,wv:0};return Ee&&ps&&(i.created=e!=null?e:xs("CreatedAt"),i.updated=null,i.set_during_effect=!1,i.trace=null),i}function K(t,e){let i=Ar(t,e);return gu(i),i}function ms(t,e=!1,i=!0){var r,a;let o=Ar(t);return e||(o.equals=Sl),us&&i&&qt!==null&&qt.l!==null&&((a=(r=qt.l).s)!=null?a:r.s=[]).push(o),o}function O(t,e,i=!1){var r;Bt!==null&&(!$r||(Bt.f&262144)!==0)&&fs()&&(Bt.f&262162)!==0&&!((r=Zo)!=null&&r[1].includes(t)&&Zo[0]===Bt)&&Yg();let o=i?ci(e):e;return Ee&&fu(o,t.label),kl(t,o)}function kl(t,e){if(!t.equals(e)){var i=t.v;if(ws?Pl.set(t,e):Pl.set(t,i),t.v=e,Ee&&ps&&(t.updated=xs("UpdatedAt"),$t!==null&&(t.set_during_effect=!0)),(t.f&2)!==0&&((t.f&2048)!==0&&af(t),In(t,(t.f&256)===0?1024:4096)),t.wv=Id(),Zg(t,2048),fs()&&$t!==null&&($t.f&1024)!==0&&($t.f&96)===0&&(br===null?Jg([t]):br.push(t)),Ee&&wa.size>0){let o=Array.from(wa);for(let r of o)(r.f&1024)!==0&&In(r,4096),Ta(r)&&Al(r);wa.clear()}}return e}function Zg(t,e){var i=t.reactions;if(i!==null)for(var o=fs(),r=i.length,a=0;a<r;a++){var l=i[a],d=l.f;if((d&2048)===0&&!(!o&&l===$t)){if(Ee&&(d&262144)!==0){wa.add(l);continue}In(l,e),(d&1280)!==0&&((d&2)!==0?Zg(l,4096):Pd(l))}}}var Ll="font-weight: bold",Ml="font-weight: normal";function eh(t,e,i){Ee?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
29
|
https://svelte.dev/e/hydration_attribute_changed`,Ll,Ml):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function th(t){Ee?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"}
|
|
@@ -34,30 +34,30 @@ https://svelte.dev/e/hydration_mismatch`,Ll,Ml):console.warn("https://svelte.dev
|
|
|
34
34
|
%cTried to unmount a component that was not mounted
|
|
35
35
|
https://svelte.dev/e/lifecycle_double_unmount`,Ll,Ml):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function oh(){Ee?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",Ll,Ml):console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function hu(t){Ee?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`,Ll,Ml):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var et=!1;function $o(t){et=t}var yt;function Ei(t){if(t===null)throw Xs(),cs;return yt=t}function ji(){return Ei(Jo(yt))}function w(t){if(et){if(Jo(yt)!==null)throw Xs(),cs;yt=t}}function vi(t=1){if(et){for(var e=t,i=yt;e--;)i=Jo(i);yt=i}}function Ca(){for(var t=0,e=yt;;){if(e.nodeType===gr){var i=e.data;if(i===$a){if(t===0)return e;t-=1}else(i===Qs||i===Gs)&&(t+=1)}var o=Jo(e);e.remove(),e=o}}function _u(t){if(!t||t.nodeType!==gr)throw Xs(),cs;return t.data}function nh(){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(El(this[s])===a){hu("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(El(this[s])===a){hu("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(El(this[s])===a){hu("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=r}}var Ia,rh,
|
|
37
|
+
https://svelte.dev/e/state_proxy_equality_mismatch`,Ll,Ml):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var et=!1;function $o(t){et=t}var yt;function Ei(t){if(t===null)throw Xs(),cs;return yt=t}function ji(){return Ei(Jo(yt))}function w(t){if(et){if(Jo(yt)!==null)throw Xs(),cs;yt=t}}function vi(t=1){if(et){for(var e=t,i=yt;e--;)i=Jo(i);yt=i}}function Ca(){for(var t=0,e=yt;;){if(e.nodeType===gr){var i=e.data;if(i===$a){if(t===0)return e;t-=1}else(i===Qs||i===Gs)&&(t+=1)}var o=Jo(e);e.remove(),e=o}}function _u(t){if(!t||t.nodeType!==gr)throw Xs(),cs;return t.data}function nh(){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(El(this[s])===a){hu("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(El(this[s])===a){hu("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(El(this[s])===a){hu("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=r}}var Ia,rh,kd,sh,ah;function bu(){if(Ia===void 0){Ia=window,rh=document,kd=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;sh=Yo(e,"firstChild").get,ah=Yo(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),Ee&&(t.__svelte_meta=null,nh())}}function En(t=""){return document.createTextNode(t)}function ki(t){return sh.call(t)}function Jo(t){return ah.call(t)}function T(t,e){if(!et)return ki(t);var i=ki(yt);if(i===null)i=yt.appendChild(En());else if(e&&i.nodeType!==xl){var o=En();return i==null||i.before(o),Ei(o),o}return Ei(i),i}function de(t,e){var r,a;if(!et){var i=ki(t);return i.nodeType===8&&i.data===""?Jo(i):i}if(e&&((r=yt)==null?void 0:r.nodeType)!==xl){var o=En();return(a=yt)==null||a.before(o),Ei(o),o}return yt}function L(t,e=1,i=!1){let o=et?yt:t;for(var r;e--;)r=o,o=Jo(o);if(!et)return o;if(i&&(o==null?void 0:o.nodeType)!==xl){var a=En();return o===null?r==null||r.after(a):o.before(a),Ei(a),a}return Ei(o),o}function Ad(t){t.textContent=""}function uf(t){$t===null&&Bt===null&&Fg(t),Bt!==null&&(Bt.f&256)!==0&&$t===null&&Bg(),ws&&Dg(t)}function Y$(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function Ea(t,e,i,o=!0){var s;var r=$t;if(Ee)for(;r!==null&&(r.f&262144)!==0;)r=r.parent;var a={ctx:qt,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(Ee&&(a.component_function=hr),i)try{Al(a),a.f|=32768}catch(u){throw Yi(a),u}else e!==null&&Pd(a);var l=i&&a.deps===null&&a.first===null&&a.nodes_start===null&&a.teardown===null&&(a.f&1048704)===0;if(!l&&o&&(r!==null&&Y$(a,r),Bt!==null&&(Bt.f&2)!==0)){var d=Bt;((s=d.effects)!=null?s:d.effects=[]).push(a)}return a}function Oo(t){let e=Ea(8,null,!1);return In(e,1024),e.teardown=t,e}function Oe(t){var r;uf("$effect");var e=$t!==null&&($t.f&32)!==0&&qt!==null&&!qt.m;if(Ee&&_o(t,"name",{value:"$effect"}),e){var i=qt;((r=i.e)!=null?r:i.e=[]).push({fn:t,effect:$t,reaction:Bt})}else{var o=Do(t);return o}}function Vd(t){return uf("$effect.pre"),Ee&&_o(t,"name",{value:"$effect.pre"}),en(t)}function xu(t){let e=Ea(64,t,!0);return()=>{Yi(e)}}function dh(t){let e=Ea(64,t,!0);return(i={})=>new Promise(o=>{i.outro?Jn(e,()=>{Yi(e),o(void 0)}):(Yi(e),o(void 0))})}function Do(t){return Ea(4,t,!1)}function en(t){return Ea(8,t,!0)}function D(t,e=[],i=Qr){if(Ee)return en(()=>{var r=$t,a=()=>t(...l.map(n));_o(r.fn,"name",{value:"{expression}"}),_o(a,"name",{value:"{expression}"});let l=e.map(i);Xi(a)});let o=e.map(i);return Xi(()=>t(...o.map(n)))}function Xi(t,e=0){return Ea(24|e,t,!0)}function Di(t,e=!0){return Ea(40,t,!0,e)}function pf(t){var e=t.teardown;if(e!==null){let i=ws,o=Bt;df(!0),Gi(null);try{e.call(null)}finally{df(i),Gi(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:Yi(i,e),i=o}}function ch(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&Yi(e),e=i}}function Yi(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),Rd(t,0),In(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),Ee&&(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:Jo(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 Jn(t,e){var i=[];wu(t,i,!0),gf(i,()=>{Yi(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 wu(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;wu(o,e,a?i:!1),o=r}}}function Cs(t){uh(t,!0)}function uh(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;uh(i,r?e:!1),i=o}if(t.transitions!==null)for(let a of t.transitions)(a.is_global||e)&&a.in()}}var Nd=[],hf=[];function ph(){var t=Nd;Nd=[],js(t)}function j$(){var t=hf;hf=[],js(t)}function Pn(t){Nd.length===0&&queueMicrotask(ph),Nd.push(t)}function fh(){Nd.length>0&&ph(),hf.length>0&&j$()}function vh(t){var e=$t;if(Ee&&t instanceof Error&&X$(t,e),(e.f&32768)===0){if((e.f&128)===0)throw t;e.fn(t)}else Od(t,e)}function Od(t,e){for(;e!==null;){if((e.f&128)!==0)try{e.fn(t);return}catch(i){}e=e.parent}throw t}var mh=new WeakSet;function X$(t,e){var l,d;if(mh.has(t))return;mh.add(t);let i=Yo(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
39
|
${o}in ${(d=a.function)==null?void 0:d[Yn].split("/").pop()}`,a=a.p;_o(t,"message",{value:t.message+`
|
|
40
40
|
${r}
|
|
41
41
|
`}),t.stack&&_o(t,"stack",{value:t.stack.split(`
|
|
42
42
|
`).filter(s=>!s.includes("svelte/src/internal")).join(`
|
|
43
|
-
`)})}}var Pa=!1,Vl=null,Aa=!1,ws=!1;function df(t){ws=t}var Dd=[],Bd=[],Bt=null,$r=!1;function Gi(t){Bt=t}var $t=null;function bo(t){$t=t}var Zo=null;function gu(t){Bt!==null&&Bt.f&2097152&&(Zo===null?Zo=[Bt,[t]]:Zo[1].push(t))}var An=null,yr=0,br=null;function Jg(t){br=t}var _h=1,Tu=0,Ss=!1,Cu=null;function Id(){return++_h}function Ta(t){var p,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&&$t!==null&&!Ss,s=i.length;if(l||d){var u=t,m=u.parent;for(r=0;r<s;r++)a=i[r],(l||!((p=a==null?void 0:a.reactions)!=null&&p.includes(u)))&&((f=a.reactions)!=null?f:a.reactions=[]).push(u);l&&(u.f^=512),d&&m!==null&&(m.f&256)===0&&(u.f^=256)}for(r=0;r<s;r++)if(a=i[r],Ta(a)&&lf(a),a.wv>t.wv)return!0}(!o||$t!==null&&!Ss)&&In(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];Zo!=null&&Zo[1].includes(t)&&Zo[0]===Bt||((a.f&2)!==0?bh(a,e,!1):e===a&&(i?In(a,2048):(a.f&1024)!==0&&In(a,4096),Pd(a)))}}function vu(t){var $,y;var e=An,i=yr,o=br,r=Bt,a=Ss,l=Zo,d=qt,s=$r,u=t.f;An=null,yr=0,br=null,Ss=(u&256)!==0&&($r||!Aa||Bt===null),Bt=(u&96)===0?t:null,Zo=null,Sd(t.ctx),$r=!1,Tu++,t.f|=2097152;try{var m=(0,t.fn)(),p=t.deps;if(An!==null){var f;if(Rd(t,yr),p!==null&&yr>0)for(p.length=yr+An.length,f=0;f<An.length;f++)p[yr+f]=An[f];else t.deps=p=An;if(!Ss||(u&2)!==0&&t.reactions!==null)for(f=yr;f<p.length;f++)((y=($=p[f]).reactions)!=null?y:$.reactions=[]).push(t)}else p!==null&&yr<p.length&&(Rd(t,yr),p.length=yr);if(fs()&&br!==null&&!$r&&p!==null&&(t.f&6146)===0)for(f=0;f<br.length;f++)bh(br[f],t);return r!==null&&r!==t&&(Tu++,br!==null&&(o===null?o=br:o.push(...br))),m}catch(_){vh(_)}finally{An=e,yr=i,br=o,Bt=r,Ss=a,Zo=l,Sd(d),$r=s,t.f^=2097152}}function Z$(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&&(An===null||!An.includes(e))&&(In(e,4096),(e.f&768)===0&&(e.f^=512),mu(e),Rd(e,0))}function Rd(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)Z$(t,i[o])}function kl(t){var e=t.f;if((e&16384)===0){In(t,1024);var i=$t,o=Aa;if($t=t,Aa=!0,Ee){var r=hr;Td(t.component_function)}try{(e&16)!==0?ch(t):ff(t),pf(t);var a=vu(t);if(t.teardown=typeof a=="function"?a:null,t.wv=_h,Ee&&ps&&(t.f&2048)!==0&&t.deps!==null)for(var l of t.deps)l.set_during_effect&&(l.wv=Id(),l.set_during_effect=!1);Ee&&Bd.push(t)}finally{Aa=o,$t=i,Ee&&Td(r)}}}function gh(){console.error("Last ten effects were: ",Bd.slice(-10).map(t=>t.fn)),Bd=[]}function J$(){try{Hg()}catch(t){if(Ee&&_o(t,"stack",{value:""}),Vl!==null)if(Ee)try{Od(t,Vl)}catch(e){throw gh(),e}else Od(t,Vl);else throw Ee&&gh(),t}}function bf(){var t=Aa;try{var e=0;for(Aa=!0;Dd.length>0;){e++>1e3&&J$();var i=Dd,o=i.length;Dd=[];for(var r=0;r<o;r++){var a=ty(i[r]);ey(a)}Pl.clear()}}finally{Pa=!1,Aa=t,Vl=null,Ee&&(Bd=[])}}function ey(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];(o.f&24576)===0&&Ta(o)&&(kl(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?vf(o):o.fn=null))}}function Pd(t){Pa||(Pa=!0,queueMicrotask(bf));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}}Dd.push(e)}function ty(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:Ta(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&&(Pa=!0,bf(),Pa=!0,e=t());;){if(fh(),Dd.length===0)return Pa=!1,Vl=null,Ee&&(Bd=[]),e;Pa=!0,bf()}}function yo(){return gt(this,null,function*(){yield Promise.resolve(),Rl()})}function n(t){var e=t.f,i=(e&2)!==0;if(Cu!==null&&Cu.add(t),Bt!==null&&!$r){if(!(Zo!=null&&Zo[1].includes(t))||Zo[0]!==Bt){var o=Bt.deps;t.rv<Tu&&(t.rv=Tu,An===null&&o!==null&&o[yr]===t?yr++:An===null?An=[t]:(!Ss||!An.includes(t))&&An.push(t))}}else if(i&&t.deps===null&&t.effects===null){var r=t,a=r.parent;a!==null&&(a.f&256)===0&&(r.f^=256)}if(i&&(r=t,Ta(r)&&lf(r)),Ee&&ps&&!$r&&wd!==null&&Bt!==null&&wd.reaction===Bt)if(t.trace)t.trace();else{var l=xs("TracedAt");if(l){var d=wd.entries.get(t);d===void 0&&(d={traces:[]},wd.entries.set(t,d));var s=d.traces[d.traces.length-1];l.stack!==(s==null?void 0:s.stack)&&d.traces.push(l)}}return ws&&Pl.has(t)?Pl.get(t):t.v}function Pt(t){var e=$r;try{return $r=!0,t()}finally{$r=e}}var iy=-7169;function In(t,e){t.f=t.f&iy|e}function Eu(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(jo in t)Iu(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&jo in i&&Iu(i)}}}function Iu(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{Iu(t[o],e)}catch(r){}let i=ya(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=du(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,Pn(()=>{document.activeElement===i&&t.focus()})}}function Fd(t){var e=Bt,i=$t;Gi(null),bo(null);try{return t()}finally{Gi(e),bo(i)}}var yf=new Set,Pu=new Set;function ka(t){if(!et)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||Nl.call(e,a),!a.cancelBubble)return Fd(()=>i==null?void 0:i.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Pn(()=>{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)&&Oo(()=>{e.removeEventListener(t,l,a)})}function it(t){for(var e=0;e<t.length;e++)yf.add(t[e]);for(var i of Pu)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){_o(t,"currentTarget",{configurable:!0,get(){return a||i}});var m=Bt,p=$t;Gi(null),bo(null);try{for(var f,$=[];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(N){f?$.push(N):f=N}if(t.cancelBubble||y===e||y===null)break;a=y}if(f){for(let N of $)queueMicrotask(()=>{throw N});throw f}}finally{t.__root=e,delete t.currentTarget,Gi(m),bo(p)}}}var ny;function $h(){ny=void 0}function Ol(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function Bo(t,e){var i=$t;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function M(t,e){var i=(e&1)!==0,o=(e&2)!==0,r,a=!t.startsWith("<!>");return()=>{if(et)return Bo(yt,null),yt;r===void 0&&(r=Ol(a?t:"<!>"+t),i||(r=Ai(r)));var l=o||Ad?document.importNode(r,!0):r.cloneNode(!0);if(i){var d=Ai(l),s=l.lastChild;Bo(d,s)}else Bo(l,l);return l}}function ay(t,e,i="svg"){var o=!t.startsWith("<!>"),r=(e&1)!==0,a=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(et)return Bo(yt,null),yt;if(!l){var d=Ol(a),s=Ai(d);if(r)for(l=document.createDocumentFragment();Ai(s);)l.appendChild(Ai(s));else l=Ai(s)}var u=l.cloneNode(!0);if(r){var m=Ai(u),p=u.lastChild;Bo(m,p)}else Bo(u,u);return u}}function Ce(t,e){return ay(t,e,"svg")}function vs(t=""){if(!et){var e=En(t+"");return Bo(e,e),e}var i=yt;return i.nodeType!==xl&&(i.before(i=En()),Ei(i)),Bo(i,i),i}function Le(){if(et)return Bo(yt,null),yt;var t=document.createDocumentFragment(),e=document.createComment(""),i=En();return t.append(e,i),Bo(e,i),t}function b(t,e){if(et){$t.nodes_end=yt,ji();return}t!==null&&t.before(e)}var ly=/\r/g;function xh(t){t=t.replace(ly,"");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 dy=["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 dy.includes(t)}var cy=["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 uy={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=uy[t])!=null?e:t}var yP=[...cy,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var py=["touchstart","touchmove"];function Ch(t){return py.includes(t)}var fy=["$state","$state.raw","$derived","$derived.by"],xP=[...fy,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var my=["textarea","script","style","title"];function Ih(t){return my.includes(t)}function Au(t){return t==null?void 0:t.replace(/\//g,"/")}var Hd=!0;function ku(t){Hd=t}function me(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 Sf(t,e){var l;bu(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=et,r=yt;try{for(var a=Ai(i);a&&(a.nodeType!==gr||a.data!==Qs);)a=Jo(a);if(!a)throw cs;$o(!0),Ei(a),ji();let d=Eh(t,jt(Ie({},e),{anchor:a}));if(yt===null||yt.nodeType!==gr||yt.data!==$a)throw Xs(),cs;return $o(!1),d}catch(d){if(d===cs)return e.recover===!1&&Ug(),bu(),kd(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}){bu();var d=new Set,s=p=>{for(var f=0;f<p.length;f++){var $=p[f];if(!d.has($)){d.add($);var y=Ch($);e.addEventListener($,Nl,{passive:y});var _=Dl.get($);_===void 0?(document.addEventListener($,Nl,{passive:y}),Dl.set($,1)):Dl.set($,_+1)}}};s(xd(yf)),Pu.add(s);var u=void 0,m=dh(()=>{var p=i!=null?i:e.appendChild(En());return Di(()=>{if(a){B({});var f=qt;f.c=a}r&&(o.$$events=r),et&&Bo(p,null),Hd=l,u=t(p,o)||{},Hd=!0,et&&($t.nodes_end=yt),a&&F()}),()=>{var y;for(var f of d){e.removeEventListener(f,Nl);var $=Dl.get(f);--$===0?(document.removeEventListener(f,Nl),Dl.delete(f)):Dl.set(f,$)}Pu.delete(s),p!==i&&((y=p.parentNode)==null||y.removeChild(p))}});return wf.set(u,m),u}var wf=new WeakMap;function La(t,e){let i=wf.get(t);return i?(wf.delete(t),i(e)):(Ee&&ih(),Promise.resolve())}function ai(t,e,...i){var o=t,r=ht,a;Xi(()=>{r!==(r=e())&&(a&&(Yi(a),a=null),Ee&&r==null&&zg(),a=Di(()=>r(o,...i)))},65536),et&&(o=yt)}if(Ee){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}})}};_y=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var _y;function Rt(t){qt===null&&Tl("onMount"),us&&qt.l!==null?hy(qt).m.push(t):Oe(()=>{let e=Pt(t);if(typeof e=="function")return e})}function gn(t){qt===null&&Tl("onDestroy"),Rt(()=>()=>Pt(t))}function hy(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 R(t,e,[i,o]=[0,0]){et&&i===0&&ji();var r=t,a=null,l=null,d=oo,s=i>0?65536:0,u=!1;let m=(f,$=!0)=>{u=!0,p($,f)},p=(f,$)=>{if(d===(d=f))return;let y=!1;if(et&&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=Ca(),Ei(r),$o(!1),y=!0,o=-1)}d?(a?Cs(a):$&&(a=Di(()=>$(r))),l&&Jn(l,()=>{l=null})):(l?Cs(l):$&&(l=Di(()=>$(r,[i+1,o]))),a&&Jn(a,()=>{a=null})),y&&$o(!0)};Xi(()=>{u=!1,e(m),u||p(null,null)},s),et&&(r=yt)}function Is(t,e,i){et&&ji();var o=t,r=oo,a,l=fs()?Ng:wl;Xi(()=>{l(r,r=e())&&(a&&Jn(a),a=Di(()=>i(o)))}),et&&(o=yt)}var Js=null;function If(t){Js=t}function Ud(t,e){return e}function yy(t,e,i,o){for(var r=[],a=e.length,l=0;l<a;l++)wu(e[l].e,r,!0);var d=a>0&&r.length===0&&i!==null;if(d){var s=i.parentNode;kd(s),s.append(i),o.clear(),Zs(t,e[0].prev,e[a-1].next)}gf(r,()=>{for(var u=0;u<a;u++){var m=e[u];d||(o.delete(m.k),Zs(t,m.prev,m.next)),Yi(m.e,!d)}})}function Ti(t,e,i,o,r,a=null){var l=t,d={flags:e,items:new Map,first:null},s=(e&4)!==0;if(s){var u=t;l=et?Ei(Ai(u)):u.appendChild(En())}et&&ji();var m=null,p=!1,f=Cn(()=>{var $=i();return vr($)?$:$==null?[]:xd($)});Xi(()=>{var $=n(f),y=$.length;if(p&&y===0)return;p=y===0;let _=!1;if(et){var S=_u(l)===Gs;S!==(y===0)&&(l=Ca(),Ei(l),$o(!1),_=!0)}if(et){for(var C=null,I,N=0;N<y;N++){if(yt.nodeType===gr&&yt.data===$a){l=yt,_=!0,$o(!1);break}var P=$[N],E=o(P,N);I=Mh(yt,d,C,null,P,E,N,r,e,i),d.items.set(E,I),C=I}y>0&&Ei(Ca())}et||xy($,d,l,r,e,o,i),a!==null&&(y===0?m?Cs(m):m=Di(()=>a(l)):m!==null&&Jn(m,()=>{m=null})),_&&$o(!0),n(f)}),et&&(l=yt)}function xy(t,e,i,o,r,a,l){var Z,we,ue,ne;var d=(r&8)!==0,s=(r&3)!==0,u=t.length,m=e.items,p=e.first,f=p,$,y=null,_,S=[],C=[],I,N,P,E;if(d)for(E=0;E<u;E+=1)I=t[E],N=a(I,E),P=m.get(N),P!==void 0&&((Z=P.a)==null||Z.measure(),(_!=null?_:_=new Set).add(P));for(E=0;E<u;E+=1){if(I=t[E],N=a(I,E),P=m.get(N),P===void 0){var k=f?f.e.nodes_start:i;y=Mh(k,e,y,y===null?e.first:y.next,I,N,E,o,r,l),m.set(N,y),S=[],C=[],f=y.next;continue}if(s&&wy(P,I,E,r),(P.e.f&8192)!==0&&(Cs(P.e),d&&((we=P.a)==null||we.unfix(),(_!=null?_:_=new Set).delete(P))),P!==f){if($!==void 0&&$.has(P)){if(S.length<C.length){var Q=C[0],H;y=Q.prev;var z=S[0],Y=S[S.length-1];for(H=0;H<S.length;H+=1)kh(S[H],Q,i);for(H=0;H<C.length;H+=1)$.delete(C[H]);Zs(e,z.prev,Y.next),Zs(e,y,z),Zs(e,Y,Q),f=Q,y=Y,E-=1,S=[],C=[]}else $.delete(P),kh(P,f,i),Zs(e,P.prev,P.next),Zs(e,P,y===null?e.first:y.next),Zs(e,y,P),y=P;continue}for(S=[],C=[];f!==null&&f.k!==N;)(f.e.f&8192)===0&&($!=null?$:$=new Set).add(f),C.push(f),f=f.next;if(f===null)continue;P=f}S.push(P),y=P,f=P.next}if(f!==null||$!==void 0){for(var le=$===void 0?[]:xd($);f!==null;)(f.e.f&8192)===0&&le.push(f),f=f.next;var X=le.length;if(X>0){var re=(r&4)!==0&&u===0?i:null;if(d){for(E=0;E<X;E+=1)(ue=le[E].a)==null||ue.measure();for(E=0;E<X;E+=1)(ne=le[E].a)==null||ne.fix()}yy(e,le,re,m)}}d&&Pn(()=>{var _e;if(_!==void 0)for(P of _)(_e=P.a)==null||_e.apply()}),$t.first=e.first&&e.first.e,$t.last=y&&y.e}function wy(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 m=Js,p=(s&1)!==0,f=(s&16)===0,$=p?f?ms(r,!1,!1):kr(r):r,y=(s&2)===0?l:kr(l);Ee&&p&&($.trace=()=>{var S=typeof y=="number"?l:y.v;u()[S]});var _={i:y,v:$,k:a,a:null,e:null,prev:i,next:o};Js=_;try{return _.e=Di(()=>d(t,$,y,u),et),_.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=m}}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=Jo(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 Sy(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[Yn]&&(o=`in ${hr[Yn]}`),th(Au(o))}function zd(t,e,i=!1,o=!1,r=!1){var a=t,l="";D(()=>{var $;var d=$t;if(l===(l=($=e())!=null?$:"")){et&&ji();return}if(d.nodes_start!==null&&(mf(d.nodes_start,d.nodes_end),d.nodes_start=d.nodes_end=null),l!==""){if(et){for(var s=yt.data,u=ji(),m=u;u!==null&&(u.nodeType!==gr||u.data!=="");)m=u,u=Jo(u);if(u===null)throw Xs(),cs;Ee&&!r&&Sy(u.parentNode,s,l),Bo(yt,m),a=Ei(u);return}var p=l+"";i?p=`<svg>${p}</svg>`:o&&(p=`<math>${p}</math>`);var f=Ol(p);if((i||o)&&(f=Ai(f)),Bo(Ai(f),f.lastChild),i||o)for(;Ai(f);)a.before(Ai(f));else a.before(f)}})}function Bi(t,e,i){et&&ji();var o=t,r,a;Xi(()=>{r!==(r=e())&&(a&&(Jn(a),a=null),r&&(a=Di(()=>i(o,r))))},65536),et&&(o=yt)}function Ma(t,e,i,o,r,a){var y;let l=et;et&&ji();var d=Ee&&a&&((y=qt)==null?void 0:y.function[Yn]),s,u,m=null;et&&yt.nodeType===uu&&(m=yt,ji());var p=et?yt:t,f,$=Js;Xi(()=>{let _=e()||null;var S=r?r():i||_==="svg"?au:null;if(_!==s){var C=Js;If($),f&&(_===null?Jn(f,()=>{f=null,u=null}):_===u?Cs(f):(Yi(f),ku(!1))),_&&_!==u&&(f=Di(()=>{if(m=et?m:S?document.createElementNS(S,_):document.createElement(_),Ee&&a&&(m.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),Bo(m,m),o){et&&Ih(_)&&m.append(document.createComment(""));var I=et?Ai(m):m.appendChild(En());et&&(I===null?$o(!1):Ei(I)),o(m,I)}$t.nodes_end=m,p.before(m)})),s=_,s&&(u=s),ku(!0),If(C)}},65536),l&&($o(!0),Ei(p))}var Pf;function Vh(t){return Pf=t.target,new Ef(t)}var Es,Lr,Ef=class{constructor(e){qs(this,Es);qs(this,Lr);var a,l;var i=new Map,o=(d,s)=>{var u=ms(s,!1,!1);return i.set(d,u),u};let r=new Proxy(jt(Ie({},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 m;return O((m=i.get(s))!=null?m:o(s,u),u),Reflect.set(d,s,u)}});$l(this,Lr,(e.hydrate?Sf: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,Es,r.$$events);for(let d of Object.keys(Oi(this,Lr)))d==="$set"||d==="$destroy"||d==="$on"||_o(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=()=>{La(Oi(this,Lr))}}$set(e){Oi(this,Lr).$set(e)}$on(e,i){Oi(this,Es)[e]=Oi(this,Es)[e]||[];let o=(...r)=>i.call(this,...r);return Oi(this,Es)[e].push(o),()=>{Oi(this,Es)[e]=Oi(this,Es)[e].filter(r=>r!==o)}}$destroy(){Oi(this,Lr).$destroy()}};Es=new WeakMap,Lr=new WeakMap;function q(t,e){Pn(()=>{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),Ee&&Ah(e.hash,d)}})}function Ps(t,e){var i=void 0,o;Xi(()=>{i!==(i=e())&&(o&&(Yi(o),o=null),i&&(o=Di(()=>{Do(()=>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 Wd(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 Af(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(Af)),r&&s.push(...Object.keys(r).map(Af));var u=0,m=-1;let _=t.length;for(var p=0;p<_;p++){var f=t[p];if(d?f==="/"&&t[p-1]==="*"&&(d=!1):a?a===f&&(a=!1):f==="/"&&t[p+1]==="*"?d=!0:f==='"'||f==="'"?a=f:f==="("?l++:f===")"&&l--,!d&&a===!1&&l===0){if(f===":"&&m===-1)m=p;else if(f===";"||p===_-1){if(m!==-1){var $=Af(t.substring(u,m).trim());if(!s.includes($)){f!==";"&&p++;var y=t.substring(u,p).trim();i+=" "+y+";"}}u=p+1,m=-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(et||l!==i||l===void 0){var d=Bh(i,o,a);(!et||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 Qe(t,e,i,o){var r=t.__style;if(et||r!==e){var a=Fh(e,o);(!et||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 Kd(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(of(r,e)){o.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function Lf(t){var e=new MutationObserver(()=>{Kd(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Oo(()=>{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 Ve(t,e,i,o){var r=Gh(t);if(et&&(r[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||Ly(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 P;var a=Gh(t),l=a[Wh],d=!a[Kh];let s=et&&l;s&&$o(!1);var u=e||{},m=t.tagName==="OPTION";for(var p in e)p in i||(i[p]=null);i.class?i.class=Wd(i.class):(o||i[Bl])&&(i.class=null),i[Fl]&&((P=i.style)!=null||(i.style=null));var f=Yh(t);for(let E in i){let k=i[E];if(m&&E==="value"&&k==null){t.value=t.__value="",u[E]=k;continue}if(E==="class"){var $=t.namespaceURI==="http://www.w3.org/1999/xhtml";se(t,$,k,o,e==null?void 0:e[Bl],i[Bl]),u[E]=k,u[Bl]=i[Bl];continue}if(E==="style"){Qe(t,k,e==null?void 0:e[Fl],i[Fl]),u[E]=k,u[Fl]=i[Fl];continue}var y=u[E];if(!(k===y&&!(k===void 0&&t.hasAttribute(E)))){u[E]=k;var _=E[0]+E[1];if(_!=="$$")if(_==="on"){let Q={},H="$$"+E,z=E.slice(2);var S=Sh(z);if(wh(z)&&(z=z.slice(0,-7),Q.capture=!0),!S&&y){if(k!=null)continue;t.removeEventListener(z,u[H],Q),u[H]=null}if(k!=null)if(S)t[`__${z}`]=k,it([z]);else{let Y=function(le){u[E].call(this,le)};var N=Y;u[H]=xf(z,t,Y,Q)}else S&&(t[`__${z}`]=void 0)}else if(E==="style")Ve(t,E,k);else if(E==="autofocus")$f(t,!!k);else if(!l&&(E==="__value"||E==="value"&&k!=null))t.value=t.__value=k;else if(E==="selected"&&m)qh(t,k);else{var C=E;d||(C=Th(C));var I=C==="defaultValue"||C==="defaultChecked";if(k==null&&!l&&!I)if(a[E]=null,C==="value"||C==="checked"){let Q=t,H=e===void 0;if(C==="value"){let z=Q.defaultValue;Q.removeAttribute(C),Q.defaultValue=z,Q.value=Q.__value=H?z:null}else{let z=Q.defaultChecked;Q.removeAttribute(C),Q.defaultChecked=z,Q.checked=H?z:!1}}else t.removeAttribute(E);else I||f.includes(C)&&(l||typeof k!="string")?t[C]=k:typeof k!="function"&&Ve(t,C,k,r)}}}return s&&$o(!0),u}function no(t,e,i=[],o,r=!1,a=Qr){let l=i.map(a);var d=void 0,s={},u=t.nodeName==="SELECT",m=!1;if(Xi(()=>{var f=e(...l.map(n)),$=Qh(t,d,f,o,r);m&&u&&"value"in f&&Kd(t,f.value,!1);for(let _ of Object.getOwnPropertySymbols(s))f[_]||Yi(s[_]);for(let _ of Object.getOwnPropertySymbols(f)){var y=f[_];_.description===Gp&&(!d||y!==d[_])&&(s[_]&&Yi(s[_]),s[_]=Di(()=>Ps(t,()=>y))),$[_]=y}d=$}),u){var p=t;Do(()=>{Kd(p,d.value),Lf(p)})}m=!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=du(o);for(var a in i)i[a].set&&e.push(a);o=ya(o)}return e}function Ly(t,e,i){var o;Ee&&(e==="srcset"&&My(t,i)||Mf((o=t.getAttribute(e))!=null?o:"",i)||eh(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 zh(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function My(t,e){var i=zh(t.srcset),o=zh(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 Vy=lu?()=>performance.now():()=>Date.now(),Xr={tick:t=>(lu?requestAnimationFrame:ht)(t),now:()=>Vy(),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 Lu(t,e){Fd(()=>{t.dispatchEvent(new CustomEvent(e))})}function Dy(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=Dy(r.trim());e[l]=a.trim()}return e}var By=t=>t;function Zr(t,e,i,o){var N;var r=(t&1)!==0,a=(t&2)!==0,l=r&&a,d=(t&4)!==0,s=l?"both":r?"in":"out",u,m=e.inert,p=e.style.overflow,f,$;function y(){var k;var P=Bt,E=$t;Gi(null),bo(null);try{return u!=null?u:u=i()(e,(k=o==null?void 0:o())!=null?k:{},{direction:s})}finally{Gi(P),bo(E)}}var _={is_global:d,in(){var P;if(e.inert=m,!r){$==null||$.abort(),(P=$==null?void 0:$.reset)==null||P.call($);return}a||f==null||f.abort(),Lu(e,"introstart"),f=Vf(e,y(),$,1,()=>{Lu(e,"introend"),f==null||f.abort(),f=u=void 0,e.style.overflow=p})},out(P){if(!a){P==null||P(),u=void 0;return}e.inert=!0,Lu(e,"outrostart"),$=Vf(e,y(),f,0,()=>{Lu(e,"outroend"),P==null||P()})},stop:()=>{f==null||f.abort(),$==null||$.abort()}},S=$t;if(((N=S.transitions)!=null?N:S.transitions=[]).push(_),r&&Hd){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&&Do(()=>{Pt(()=>_.in())})}}function Vf(t,e,i,o,r){var a=o===1;if(Ys(e)){var l,d=!1;return Pn(()=>{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:ht,deactivate:ht,reset:ht,t:()=>o};let{delay:s=0,css:u,tick:m,easing:p=By}=e;var f=[];if(a&&i===void 0&&(m&&m(0,1),u)){var $=Zh(u(0,1));f.push($,$)}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),N=[];if(I>0){var P=!1;if(u)for(var E=Math.ceil(I/16.666666666666668),k=0;k<=E;k+=1){var Q=S+C*p(k/E),H=Zh(u(Q,1-Q));N.push(H),P||(P=H.overflow==="hidden")}P&&(t.style.overflow="hidden"),y=()=>{var Y=_.currentTime;return S+C*p(Y/I)},m&&Xh(()=>{if(_.playState!=="running")return!1;var Y=y();return m(Y,1-Y),!0})}_=t.animate(N,{duration:I,fill:"forwards"}),_.onfinish=()=>{y=()=>o,m==null||m(o,1-o),r()}},{abort:()=>{_&&(_.cancel(),_.effect=null,_.onfinish=ht)},deactivate:()=>{r=ht},reset:()=>{o===0&&(m==null||m(1,0))},t:()=>y()}}function Rf(t,e,i){var o=Yo(t,e);o&&o.set&&(t[e]=i,Oo(()=>{t[e]=null}))}var ea,Hl,qd,Vu,Jh,Ru=class Ru{constructor(e){qs(this,Vu);qs(this,ea,new WeakMap);qs(this,Hl);qs(this,qd);$l(this,qd,e)}observe(e,i){var o=Oi(this,ea).get(e)||new Set;return o.add(i),Oi(this,ea).set(e,o),Cg(this,Vu,Jh).call(this).observe(e,Oi(this,qd)),()=>{var r=Oi(this,ea).get(e);r.delete(i),r.size===0&&(Oi(this,ea).delete(e),Oi(this,Hl).unobserve(e))}}};ea=new WeakMap,Hl=new WeakMap,qd=new WeakMap,Vu=new WeakSet,Jh=function(){var e;return(e=Oi(this,Hl))!=null?e:$l(this,Hl,new ResizeObserver(i=>{for(var o of i){Ru.entries.set(o.target,o);for(var r of Oi(this,ea).get(o.target)||[])r(o)}}))},mr(Ru,"entries",new WeakMap);var Nf=Ru;var Fy=new Nf({box:"border-box"});function kn(t,e,i){var o=Fy.observe(t,()=>i(t[e]));Do(()=>(Pt(()=>i(t[e])),o))}function e_(t,e){return t===e||(t==null?void 0:t[jo])===e}function Xe(t={},e,i,o){return Do(()=>{var r,a;return en(()=>{r=a,a=(o==null?void 0:o())||[],Pt(()=>{t!==i(...a)&&(e(t,...a),r&&e_(i(...r),t)&&e(null,...r))})}),()=>{Pn(()=>{a&&e_(i(...a),t)&&e(null,...a)})}}),t}function To(t=!1){let e=qt,i=e.l.u;if(!i)return;let o=()=>Eu(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&&Vd(()=>{t_(e,o),js(i.b)}),Oe(()=>{let r=Pt(()=>i.m.map(Vg));return()=>{for(let a of r)typeof a=="function"&&a()}}),i.a.length&&Oe(()=>{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 Qd(t,e,i){if(t==null)return e(void 0),i&&i(void 0),ht;let o=Pt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Ul=[];function Mr(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 gi(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=[],m=0,p=ht,f=()=>{if(m)return;p();let y=e(o?u[0]:u,l,d);a?l(y):p=typeof y=="function"?y:ht},$=r.map((y,_)=>Qd(y,S=>{u[_]=S,m&=~(1<<_),s&&f()},()=>{m|=1<<_}));return s=!0,f(),function(){js($),p(),s=!1}})}function ge(t){let e;return Qd(t,i=>e=i)(),e}var Nu=!1,Of=Symbol();function x(t,e,i){var a;let o=(a=i[e])!=null?a:i[e]={store:null,source:ms(void 0),unsubscribe:ht};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=ht;else{var r=!0;o.unsubscribe=Qd(t,l=>{r?o.source.v=l:O(o.source,l)}),r=!1}return t&&Of in i?ge(t):n(o.source)}function Re(){let t={};function e(){Oo(()=>{for(var i in t)t[i].unsubscribe();_o(t,Of,{enumerable:!1,value:!0})})}return[t,e]}function Df(t){var e=Nu;try{return Nu=!1,[t(),Nu]}finally{Nu=e}}var Qy={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Ee&&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 Ln(t,e,i){return new Proxy(Ee?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},Qy)}var Gy={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=Yo(r,e);if(a&&a.set)return a.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Ys(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let r=Yo(o,e);return r&&!r.configurable&&(r.configurable=!0),r}}},has(t,e){if(e===jo||e===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 As(...t){return new Proxy({props:t},Gy)}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 Q,H;var r=(i&1)!==0,a=!us||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,s=!1,u;l?[u,s]=Df(()=>t[e]):u=t[e];var m=jo in t||yl in t,p=l&&((H=(Q=Yo(t,e))==null?void 0:Q.set)!=null?H:m&&e in t&&(z=>t[e]=z))||void 0,f=o,$=!0,y=!1,_=()=>(y=!0,$&&($=!1,d?f=Pt(o):f=o),f);u===void 0&&o!==void 0&&(p&&a&&Wg(e),u=_(),p&&p(u));var S;if(a)S=()=>{var z=t[e];return z===void 0?_():($=!0,y=!1,z)};else{var C=(r?Qr:Cn)(()=>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(p){var I=t.$$legacy;return function(z,Y){return arguments.length>0?((!a||!Y||I||s)&&p(Y?S():z),z):S()}}var N=!1,P=!1,E=ms(u),k=Qr(()=>{var z=S(),Y=n(E);return N?(N=!1,P=!0,Y):(P=!1,E.v=z)});return l&&n(k),r||(k.equals=Sl),function(z,Y){if(Cu!==null&&(N=P,S(),n(E)),arguments.length>0){let le=Y?n(k):a&&l?ci(z):z;if(!k.equals(le)){if(N=!0,O(E,le),y&&f!==void 0&&(f=le),i_(k))return z;Pt(()=>n(k))}return z}return i_(k)?k.v:n(k)}}var Yy;typeof HTMLElement=="function"&&(Yy=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),b(l,d)}};var e=i;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let o={},r=jy(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=Vh({component:this.$$ctor,target:this.shadowRoot||this,props:jt(Ie({},this.$$d),{$$slots:o,$$host:this})}),this.$$me=xu(()=>{en(()=>{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 jy(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"),gJ=require("@vkontakte/videoplayer-core/es2015"),ll=require("@vkontakte/videoplayer-shared/es2015"),v$=require("@vkontakte/videoplayer-statistics/es2015");var Va=require("@vkontakte/videoplayer-shared/es2015");var Xy={isMobile:void 0,disableInvisibleComponentsTimeout:500,debugLog:!1,devNullLog:!1,defaultLanguage:Va.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:Va.VideoQuality.Q_480P,highQualityLimit:Va.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,disableThumbUnstartedOnAutoplay:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,paramsOverride:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null,font:null,focusedOutlineWidth:null,focusedOutlineRadius:null,controlsDesktopPaddingHorizontal:null,timelinePaddingHorizontal:null,settingsBackgroundColor:null,controlsGradientHeight:null,controlsGradient:null},userSalt:"0",doubleForwardActivationTime:600,playbackStatusAnimationDuration:1e3,playbackStatusNextVideoAnimationDuration:1e3,suitableDurationForUsingRichSeek:180},a_=t=>(0,Va.fillWithDefault)(t,Xy),l_=t=>Il("ui-config",t),Nt=()=>Cl("ui-config");var Gd="vk_player_debug_panel_opened";var d_="videoplayer",c_="videoplayer";var gs={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"],Yd=[...m_,"GRAPH_BUTTON"],Ff=[...m_,"PLAY_BUTTON"],jd=[...Yd,"PLAY_BUTTON"];var Jr=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(Jr||{}),Xd={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 Ou="prod",Na="1.1.78-dev.39558a0e.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),Ou==="dev"&&(window.app={store:t,microStores:e})},ve=()=>{let t=Cl(h_);return(0,Zd.assertNonNullable)(t,"Store context is empty!"),t},Co=()=>{let t=Cl(__);return(0,Zd.assertNonNullable)(t,"MicroStores context is empty!"),t},li=(t,e)=>Bu(t,t.getValue(),e),Bu=(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 Q,H,z,Y,le,X,re,Z,we;let r=t.info,{width:a,height:l}=ge(i.ui.playerSize),d=(H=(Q=r.throughputEstimation$.getValue())==null?void 0:Q.toFixed(0))!=null?H:0,s=(Y=(z=r.rttEstimation$.getValue())==null?void 0:z.toFixed(0))!=null?Y:0,u=r.isAutoQualityEnabled$.getValue()?"auto":"manual",m=`${Na} (core: ${v_.VERSION}, stat: ${g_.VERSION}, shared: ${Zd.VERSION})`,p=ge(i.state.errorLog$),f=p.length?`
|
|
43
|
+
`)})}}var Pa=!1,Vl=null,ka=!1,ws=!1;function df(t){ws=t}var Dd=[],Bd=[],Bt=null,$r=!1;function Gi(t){Bt=t}var $t=null;function bo(t){$t=t}var Zo=null;function gu(t){Bt!==null&&Bt.f&2097152&&(Zo===null?Zo=[Bt,[t]]:Zo[1].push(t))}var kn=null,yr=0,br=null;function Jg(t){br=t}var _h=1,Tu=0,Ss=!1,Cu=null;function Id(){return++_h}function Ta(t){var p,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&&$t!==null&&!Ss,s=i.length;if(l||d){var u=t,m=u.parent;for(r=0;r<s;r++)a=i[r],(l||!((p=a==null?void 0:a.reactions)!=null&&p.includes(u)))&&((f=a.reactions)!=null?f:a.reactions=[]).push(u);l&&(u.f^=512),d&&m!==null&&(m.f&256)===0&&(u.f^=256)}for(r=0;r<s;r++)if(a=i[r],Ta(a)&&lf(a),a.wv>t.wv)return!0}(!o||$t!==null&&!Ss)&&In(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];Zo!=null&&Zo[1].includes(t)&&Zo[0]===Bt||((a.f&2)!==0?bh(a,e,!1):e===a&&(i?In(a,2048):(a.f&1024)!==0&&In(a,4096),Pd(a)))}}function vu(t){var $,y;var e=kn,i=yr,o=br,r=Bt,a=Ss,l=Zo,d=qt,s=$r,u=t.f;kn=null,yr=0,br=null,Ss=(u&256)!==0&&($r||!ka||Bt===null),Bt=(u&96)===0?t:null,Zo=null,Sd(t.ctx),$r=!1,Tu++,t.f|=2097152;try{var m=(0,t.fn)(),p=t.deps;if(kn!==null){var f;if(Rd(t,yr),p!==null&&yr>0)for(p.length=yr+kn.length,f=0;f<kn.length;f++)p[yr+f]=kn[f];else t.deps=p=kn;if(!Ss||(u&2)!==0&&t.reactions!==null)for(f=yr;f<p.length;f++)((y=($=p[f]).reactions)!=null?y:$.reactions=[]).push(t)}else p!==null&&yr<p.length&&(Rd(t,yr),p.length=yr);if(fs()&&br!==null&&!$r&&p!==null&&(t.f&6146)===0)for(f=0;f<br.length;f++)bh(br[f],t);return r!==null&&r!==t&&(Tu++,br!==null&&(o===null?o=br:o.push(...br))),m}catch(_){vh(_)}finally{kn=e,yr=i,br=o,Bt=r,Ss=a,Zo=l,Sd(d),$r=s,t.f^=2097152}}function Z$(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))&&(In(e,4096),(e.f&768)===0&&(e.f^=512),mu(e),Rd(e,0))}function Rd(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)Z$(t,i[o])}function Al(t){var e=t.f;if((e&16384)===0){In(t,1024);var i=$t,o=ka;if($t=t,ka=!0,Ee){var r=hr;Td(t.component_function)}try{(e&16)!==0?ch(t):ff(t),pf(t);var a=vu(t);if(t.teardown=typeof a=="function"?a:null,t.wv=_h,Ee&&ps&&(t.f&2048)!==0&&t.deps!==null)for(var l of t.deps)l.set_during_effect&&(l.wv=Id(),l.set_during_effect=!1);Ee&&Bd.push(t)}finally{ka=o,$t=i,Ee&&Td(r)}}}function gh(){console.error("Last ten effects were: ",Bd.slice(-10).map(t=>t.fn)),Bd=[]}function J$(){try{Hg()}catch(t){if(Ee&&_o(t,"stack",{value:""}),Vl!==null)if(Ee)try{Od(t,Vl)}catch(e){throw gh(),e}else Od(t,Vl);else throw Ee&&gh(),t}}function bf(){var t=ka;try{var e=0;for(ka=!0;Dd.length>0;){e++>1e3&&J$();var i=Dd,o=i.length;Dd=[];for(var r=0;r<o;r++){var a=ty(i[r]);ey(a)}Pl.clear()}}finally{Pa=!1,ka=t,Vl=null,Ee&&(Bd=[])}}function ey(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];(o.f&24576)===0&&Ta(o)&&(Al(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?vf(o):o.fn=null))}}function Pd(t){Pa||(Pa=!0,queueMicrotask(bf));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}}Dd.push(e)}function ty(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:Ta(i)&&Al(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&&(Pa=!0,bf(),Pa=!0,e=t());;){if(fh(),Dd.length===0)return Pa=!1,Vl=null,Ee&&(Bd=[]),e;Pa=!0,bf()}}function yo(){return gt(this,null,function*(){yield Promise.resolve(),Rl()})}function n(t){var e=t.f,i=(e&2)!==0;if(Cu!==null&&Cu.add(t),Bt!==null&&!$r){if(!(Zo!=null&&Zo[1].includes(t))||Zo[0]!==Bt){var o=Bt.deps;t.rv<Tu&&(t.rv=Tu,kn===null&&o!==null&&o[yr]===t?yr++:kn===null?kn=[t]:(!Ss||!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,Ta(r)&&lf(r)),Ee&&ps&&!$r&&wd!==null&&Bt!==null&&wd.reaction===Bt)if(t.trace)t.trace();else{var l=xs("TracedAt");if(l){var d=wd.entries.get(t);d===void 0&&(d={traces:[]},wd.entries.set(t,d));var s=d.traces[d.traces.length-1];l.stack!==(s==null?void 0:s.stack)&&d.traces.push(l)}}return ws&&Pl.has(t)?Pl.get(t):t.v}function Pt(t){var e=$r;try{return $r=!0,t()}finally{$r=e}}var iy=-7169;function In(t,e){t.f=t.f&iy|e}function Eu(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(jo in t)Iu(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&jo in i&&Iu(i)}}}function Iu(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{Iu(t[o],e)}catch(r){}let i=ya(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=du(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,Pn(()=>{document.activeElement===i&&t.focus()})}}function Fd(t){var e=Bt,i=$t;Gi(null),bo(null);try{return t()}finally{Gi(e),bo(i)}}var yf=new Set,Pu=new Set;function Aa(t){if(!et)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||Nl.call(e,a),!a.cancelBubble)return Fd(()=>i==null?void 0:i.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Pn(()=>{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)&&Oo(()=>{e.removeEventListener(t,l,a)})}function it(t){for(var e=0;e<t.length;e++)yf.add(t[e]);for(var i of Pu)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){_o(t,"currentTarget",{configurable:!0,get(){return a||i}});var m=Bt,p=$t;Gi(null),bo(null);try{for(var f,$=[];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(N){f?$.push(N):f=N}if(t.cancelBubble||y===e||y===null)break;a=y}if(f){for(let N of $)queueMicrotask(()=>{throw N});throw f}}finally{t.__root=e,delete t.currentTarget,Gi(m),bo(p)}}}var ny;function $h(){ny=void 0}function Ol(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function Bo(t,e){var i=$t;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function M(t,e){var i=(e&1)!==0,o=(e&2)!==0,r,a=!t.startsWith("<!>");return()=>{if(et)return Bo(yt,null),yt;r===void 0&&(r=Ol(a?t:"<!>"+t),i||(r=ki(r)));var l=o||kd?document.importNode(r,!0):r.cloneNode(!0);if(i){var d=ki(l),s=l.lastChild;Bo(d,s)}else Bo(l,l);return l}}function ay(t,e,i="svg"){var o=!t.startsWith("<!>"),r=(e&1)!==0,a=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(et)return Bo(yt,null),yt;if(!l){var d=Ol(a),s=ki(d);if(r)for(l=document.createDocumentFragment();ki(s);)l.appendChild(ki(s));else l=ki(s)}var u=l.cloneNode(!0);if(r){var m=ki(u),p=u.lastChild;Bo(m,p)}else Bo(u,u);return u}}function Ce(t,e){return ay(t,e,"svg")}function vs(t=""){if(!et){var e=En(t+"");return Bo(e,e),e}var i=yt;return i.nodeType!==xl&&(i.before(i=En()),Ei(i)),Bo(i,i),i}function Le(){if(et)return Bo(yt,null),yt;var t=document.createDocumentFragment(),e=document.createComment(""),i=En();return t.append(e,i),Bo(e,i),t}function b(t,e){if(et){$t.nodes_end=yt,ji();return}t!==null&&t.before(e)}var ly=/\r/g;function xh(t){t=t.replace(ly,"");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 dy=["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 dy.includes(t)}var cy=["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 uy={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=uy[t])!=null?e:t}var yP=[...cy,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var py=["touchstart","touchmove"];function Ch(t){return py.includes(t)}var fy=["$state","$state.raw","$derived","$derived.by"],xP=[...fy,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var my=["textarea","script","style","title"];function Ih(t){return my.includes(t)}function ku(t){return t==null?void 0:t.replace(/\//g,"/")}var Hd=!0;function Au(t){Hd=t}function me(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 Sf(t,e){var l;bu(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=et,r=yt;try{for(var a=ki(i);a&&(a.nodeType!==gr||a.data!==Qs);)a=Jo(a);if(!a)throw cs;$o(!0),Ei(a),ji();let d=Eh(t,jt(Ie({},e),{anchor:a}));if(yt===null||yt.nodeType!==gr||yt.data!==$a)throw Xs(),cs;return $o(!1),d}catch(d){if(d===cs)return e.recover===!1&&Ug(),bu(),Ad(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}){bu();var d=new Set,s=p=>{for(var f=0;f<p.length;f++){var $=p[f];if(!d.has($)){d.add($);var y=Ch($);e.addEventListener($,Nl,{passive:y});var _=Dl.get($);_===void 0?(document.addEventListener($,Nl,{passive:y}),Dl.set($,1)):Dl.set($,_+1)}}};s(xd(yf)),Pu.add(s);var u=void 0,m=dh(()=>{var p=i!=null?i:e.appendChild(En());return Di(()=>{if(a){B({});var f=qt;f.c=a}r&&(o.$$events=r),et&&Bo(p,null),Hd=l,u=t(p,o)||{},Hd=!0,et&&($t.nodes_end=yt),a&&F()}),()=>{var y;for(var f of d){e.removeEventListener(f,Nl);var $=Dl.get(f);--$===0?(document.removeEventListener(f,Nl),Dl.delete(f)):Dl.set(f,$)}Pu.delete(s),p!==i&&((y=p.parentNode)==null||y.removeChild(p))}});return wf.set(u,m),u}var wf=new WeakMap;function La(t,e){let i=wf.get(t);return i?(wf.delete(t),i(e)):(Ee&&ih(),Promise.resolve())}function ai(t,e,...i){var o=t,r=ht,a;Xi(()=>{r!==(r=e())&&(a&&(Yi(a),a=null),Ee&&r==null&&zg(),a=Di(()=>r(o,...i)))},65536),et&&(o=yt)}if(Ee){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}})}};_y=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var _y;function Rt(t){qt===null&&Tl("onMount"),us&&qt.l!==null?hy(qt).m.push(t):Oe(()=>{let e=Pt(t);if(typeof e=="function")return e})}function gn(t){qt===null&&Tl("onDestroy"),Rt(()=>()=>Pt(t))}function hy(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}var Ph=new Map;function kh(t,e){var i=Ph.get(t);i||(i=new Set,Ph.set(t,i)),i.add(e)}function R(t,e,[i,o]=[0,0]){et&&i===0&&ji();var r=t,a=null,l=null,d=oo,s=i>0?65536:0,u=!1;let m=(f,$=!0)=>{u=!0,p($,f)},p=(f,$)=>{if(d===(d=f))return;let y=!1;if(et&&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=Ca(),Ei(r),$o(!1),y=!0,o=-1)}d?(a?Cs(a):$&&(a=Di(()=>$(r))),l&&Jn(l,()=>{l=null})):(l?Cs(l):$&&(l=Di(()=>$(r,[i+1,o]))),a&&Jn(a,()=>{a=null})),y&&$o(!0)};Xi(()=>{u=!1,e(m),u||p(null,null)},s),et&&(r=yt)}function Is(t,e,i){et&&ji();var o=t,r=oo,a,l=fs()?Ng:wl;Xi(()=>{l(r,r=e())&&(a&&Jn(a),a=Di(()=>i(o)))}),et&&(o=yt)}var Js=null;function If(t){Js=t}function Ud(t,e){return e}function yy(t,e,i,o){for(var r=[],a=e.length,l=0;l<a;l++)wu(e[l].e,r,!0);var d=a>0&&r.length===0&&i!==null;if(d){var s=i.parentNode;Ad(s),s.append(i),o.clear(),Zs(t,e[0].prev,e[a-1].next)}gf(r,()=>{for(var u=0;u<a;u++){var m=e[u];d||(o.delete(m.k),Zs(t,m.prev,m.next)),Yi(m.e,!d)}})}function Ti(t,e,i,o,r,a=null){var l=t,d={flags:e,items:new Map,first:null},s=(e&4)!==0;if(s){var u=t;l=et?Ei(ki(u)):u.appendChild(En())}et&&ji();var m=null,p=!1,f=Cn(()=>{var $=i();return vr($)?$:$==null?[]:xd($)});Xi(()=>{var $=n(f),y=$.length;if(p&&y===0)return;p=y===0;let _=!1;if(et){var S=_u(l)===Gs;S!==(y===0)&&(l=Ca(),Ei(l),$o(!1),_=!0)}if(et){for(var C=null,I,N=0;N<y;N++){if(yt.nodeType===gr&&yt.data===$a){l=yt,_=!0,$o(!1);break}var P=$[N],E=o(P,N);I=Mh(yt,d,C,null,P,E,N,r,e,i),d.items.set(E,I),C=I}y>0&&Ei(Ca())}et||xy($,d,l,r,e,o,i),a!==null&&(y===0?m?Cs(m):m=Di(()=>a(l)):m!==null&&Jn(m,()=>{m=null})),_&&$o(!0),n(f)}),et&&(l=yt)}function xy(t,e,i,o,r,a,l){var Z,we,ue,ne;var d=(r&8)!==0,s=(r&3)!==0,u=t.length,m=e.items,p=e.first,f=p,$,y=null,_,S=[],C=[],I,N,P,E;if(d)for(E=0;E<u;E+=1)I=t[E],N=a(I,E),P=m.get(N),P!==void 0&&((Z=P.a)==null||Z.measure(),(_!=null?_:_=new Set).add(P));for(E=0;E<u;E+=1){if(I=t[E],N=a(I,E),P=m.get(N),P===void 0){var A=f?f.e.nodes_start:i;y=Mh(A,e,y,y===null?e.first:y.next,I,N,E,o,r,l),m.set(N,y),S=[],C=[],f=y.next;continue}if(s&&wy(P,I,E,r),(P.e.f&8192)!==0&&(Cs(P.e),d&&((we=P.a)==null||we.unfix(),(_!=null?_:_=new Set).delete(P))),P!==f){if($!==void 0&&$.has(P)){if(S.length<C.length){var Q=C[0],H;y=Q.prev;var z=S[0],Y=S[S.length-1];for(H=0;H<S.length;H+=1)Ah(S[H],Q,i);for(H=0;H<C.length;H+=1)$.delete(C[H]);Zs(e,z.prev,Y.next),Zs(e,y,z),Zs(e,Y,Q),f=Q,y=Y,E-=1,S=[],C=[]}else $.delete(P),Ah(P,f,i),Zs(e,P.prev,P.next),Zs(e,P,y===null?e.first:y.next),Zs(e,y,P),y=P;continue}for(S=[],C=[];f!==null&&f.k!==N;)(f.e.f&8192)===0&&($!=null?$:$=new Set).add(f),C.push(f),f=f.next;if(f===null)continue;P=f}S.push(P),y=P,f=P.next}if(f!==null||$!==void 0){for(var le=$===void 0?[]:xd($);f!==null;)(f.e.f&8192)===0&&le.push(f),f=f.next;var X=le.length;if(X>0){var re=(r&4)!==0&&u===0?i:null;if(d){for(E=0;E<X;E+=1)(ue=le[E].a)==null||ue.measure();for(E=0;E<X;E+=1)(ne=le[E].a)==null||ne.fix()}yy(e,le,re,m)}}d&&Pn(()=>{var _e;if(_!==void 0)for(P of _)(_e=P.a)==null||_e.apply()}),$t.first=e.first&&e.first.e,$t.last=y&&y.e}function wy(t,e,i,o){(o&1)!==0&&kl(t.v,e),(o&2)!==0?kl(t.i,i):t.i=i}function Mh(t,e,i,o,r,a,l,d,s,u){var m=Js,p=(s&1)!==0,f=(s&16)===0,$=p?f?ms(r,!1,!1):Ar(r):r,y=(s&2)===0?l:Ar(l);Ee&&p&&($.trace=()=>{var S=typeof y=="number"?l:y.v;u()[S]});var _={i:y,v:$,k:a,a:null,e:null,prev:i,next:o};Js=_;try{return _.e=Di(()=>d(t,$,y,u),et),_.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=m}}function Ah(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,r=e?e.e.nodes_start:i,a=t.e.nodes_start;a!==o;){var l=Jo(a);r.before(a),a=l}}function 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 Sy(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[Yn]&&(o=`in ${hr[Yn]}`),th(ku(o))}function zd(t,e,i=!1,o=!1,r=!1){var a=t,l="";D(()=>{var $;var d=$t;if(l===(l=($=e())!=null?$:"")){et&&ji();return}if(d.nodes_start!==null&&(mf(d.nodes_start,d.nodes_end),d.nodes_start=d.nodes_end=null),l!==""){if(et){for(var s=yt.data,u=ji(),m=u;u!==null&&(u.nodeType!==gr||u.data!=="");)m=u,u=Jo(u);if(u===null)throw Xs(),cs;Ee&&!r&&Sy(u.parentNode,s,l),Bo(yt,m),a=Ei(u);return}var p=l+"";i?p=`<svg>${p}</svg>`:o&&(p=`<math>${p}</math>`);var f=Ol(p);if((i||o)&&(f=ki(f)),Bo(ki(f),f.lastChild),i||o)for(;ki(f);)a.before(ki(f));else a.before(f)}})}function Bi(t,e,i){et&&ji();var o=t,r,a;Xi(()=>{r!==(r=e())&&(a&&(Jn(a),a=null),r&&(a=Di(()=>i(o,r))))},65536),et&&(o=yt)}function Ma(t,e,i,o,r,a){var y;let l=et;et&&ji();var d=Ee&&a&&((y=qt)==null?void 0:y.function[Yn]),s,u,m=null;et&&yt.nodeType===uu&&(m=yt,ji());var p=et?yt:t,f,$=Js;Xi(()=>{let _=e()||null;var S=r?r():i||_==="svg"?au:null;if(_!==s){var C=Js;If($),f&&(_===null?Jn(f,()=>{f=null,u=null}):_===u?Cs(f):(Yi(f),Au(!1))),_&&_!==u&&(f=Di(()=>{if(m=et?m:S?document.createElementNS(S,_):document.createElement(_),Ee&&a&&(m.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),Bo(m,m),o){et&&Ih(_)&&m.append(document.createComment(""));var I=et?ki(m):m.appendChild(En());et&&(I===null?$o(!1):Ei(I)),o(m,I)}$t.nodes_end=m,p.before(m)})),s=_,s&&(u=s),Au(!0),If(C)}},65536),l&&($o(!0),Ei(p))}var Pf;function Vh(t){return Pf=t.target,new Ef(t)}var Es,Lr,Ef=class{constructor(e){qs(this,Es);qs(this,Lr);var a,l;var i=new Map,o=(d,s)=>{var u=ms(s,!1,!1);return i.set(d,u),u};let r=new Proxy(jt(Ie({},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 m;return O((m=i.get(s))!=null?m:o(s,u),u),Reflect.set(d,s,u)}});$l(this,Lr,(e.hydrate?Sf: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,Es,r.$$events);for(let d of Object.keys(Oi(this,Lr)))d==="$set"||d==="$destroy"||d==="$on"||_o(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=()=>{La(Oi(this,Lr))}}$set(e){Oi(this,Lr).$set(e)}$on(e,i){Oi(this,Es)[e]=Oi(this,Es)[e]||[];let o=(...r)=>i.call(this,...r);return Oi(this,Es)[e].push(o),()=>{Oi(this,Es)[e]=Oi(this,Es)[e].filter(r=>r!==o)}}$destroy(){Oi(this,Lr).$destroy()}};Es=new WeakMap,Lr=new WeakMap;function q(t,e){Pn(()=>{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),Ee&&kh(e.hash,d)}})}function Ps(t,e){var i=void 0,o;Xi(()=>{i!==(i=e())&&(o&&(Yi(o),o=null),i&&(o=Di(()=>{Do(()=>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 Wd(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,m=-1;let _=t.length;for(var p=0;p<_;p++){var f=t[p];if(d?f==="/"&&t[p-1]==="*"&&(d=!1):a?a===f&&(a=!1):f==="/"&&t[p+1]==="*"?d=!0:f==='"'||f==="'"?a=f:f==="("?l++:f===")"&&l--,!d&&a===!1&&l===0){if(f===":"&&m===-1)m=p;else if(f===";"||p===_-1){if(m!==-1){var $=kf(t.substring(u,m).trim());if(!s.includes($)){f!==";"&&p++;var y=t.substring(u,p).trim();i+=" "+y+";"}}u=p+1,m=-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(et||l!==i||l===void 0){var d=Bh(i,o,a);(!et||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 Af(t,e={},i,o){for(var r in i){var a=i[r];e[r]!==a&&(i[r]==null?t.style.removeProperty(r):t.style.setProperty(r,a,o))}}function Qe(t,e,i,o){var r=t.__style;if(et||r!==e){var a=Fh(e,o);(!et||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(Af(t,i==null?void 0:i[0],o[0]),Af(t,i==null?void 0:i[1],o[1],"important")):Af(t,i,o));return o}function Kd(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(of(r,e)){o.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function Lf(t){var e=new MutationObserver(()=>{Kd(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Oo(()=>{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 Ve(t,e,i,o){var r=Gh(t);if(et&&(r[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||Ly(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 P;var a=Gh(t),l=a[Wh],d=!a[Kh];let s=et&&l;s&&$o(!1);var u=e||{},m=t.tagName==="OPTION";for(var p in e)p in i||(i[p]=null);i.class?i.class=Wd(i.class):(o||i[Bl])&&(i.class=null),i[Fl]&&((P=i.style)!=null||(i.style=null));var f=Yh(t);for(let E in i){let A=i[E];if(m&&E==="value"&&A==null){t.value=t.__value="",u[E]=A;continue}if(E==="class"){var $=t.namespaceURI==="http://www.w3.org/1999/xhtml";se(t,$,A,o,e==null?void 0:e[Bl],i[Bl]),u[E]=A,u[Bl]=i[Bl];continue}if(E==="style"){Qe(t,A,e==null?void 0:e[Fl],i[Fl]),u[E]=A,u[Fl]=i[Fl];continue}var y=u[E];if(!(A===y&&!(A===void 0&&t.hasAttribute(E)))){u[E]=A;var _=E[0]+E[1];if(_!=="$$")if(_==="on"){let Q={},H="$$"+E,z=E.slice(2);var S=Sh(z);if(wh(z)&&(z=z.slice(0,-7),Q.capture=!0),!S&&y){if(A!=null)continue;t.removeEventListener(z,u[H],Q),u[H]=null}if(A!=null)if(S)t[`__${z}`]=A,it([z]);else{let Y=function(le){u[E].call(this,le)};var N=Y;u[H]=xf(z,t,Y,Q)}else S&&(t[`__${z}`]=void 0)}else if(E==="style")Ve(t,E,A);else if(E==="autofocus")$f(t,!!A);else if(!l&&(E==="__value"||E==="value"&&A!=null))t.value=t.__value=A;else if(E==="selected"&&m)qh(t,A);else{var C=E;d||(C=Th(C));var I=C==="defaultValue"||C==="defaultChecked";if(A==null&&!l&&!I)if(a[E]=null,C==="value"||C==="checked"){let Q=t,H=e===void 0;if(C==="value"){let z=Q.defaultValue;Q.removeAttribute(C),Q.defaultValue=z,Q.value=Q.__value=H?z:null}else{let z=Q.defaultChecked;Q.removeAttribute(C),Q.defaultChecked=z,Q.checked=H?z:!1}}else t.removeAttribute(E);else I||f.includes(C)&&(l||typeof A!="string")?t[C]=A:typeof A!="function"&&Ve(t,C,A,r)}}}return s&&$o(!0),u}function no(t,e,i=[],o,r=!1,a=Qr){let l=i.map(a);var d=void 0,s={},u=t.nodeName==="SELECT",m=!1;if(Xi(()=>{var f=e(...l.map(n)),$=Qh(t,d,f,o,r);m&&u&&"value"in f&&Kd(t,f.value,!1);for(let _ of Object.getOwnPropertySymbols(s))f[_]||Yi(s[_]);for(let _ of Object.getOwnPropertySymbols(f)){var y=f[_];_.description===Gp&&(!d||y!==d[_])&&(s[_]&&Yi(s[_]),s[_]=Di(()=>Ps(t,()=>y))),$[_]=y}d=$}),u){var p=t;Do(()=>{Kd(p,d.value),Lf(p)})}m=!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=du(o);for(var a in i)i[a].set&&e.push(a);o=ya(o)}return e}function Ly(t,e,i){var o;Ee&&(e==="srcset"&&My(t,i)||Mf((o=t.getAttribute(e))!=null?o:"",i)||eh(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 zh(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function My(t,e){var i=zh(t.srcset),o=zh(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 Vy=lu?()=>performance.now():()=>Date.now(),Xr={tick:t=>(lu?requestAnimationFrame:ht)(t),now:()=>Vy(),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 Lu(t,e){Fd(()=>{t.dispatchEvent(new CustomEvent(e))})}function Dy(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=Dy(r.trim());e[l]=a.trim()}return e}var By=t=>t;function Zr(t,e,i,o){var N;var r=(t&1)!==0,a=(t&2)!==0,l=r&&a,d=(t&4)!==0,s=l?"both":r?"in":"out",u,m=e.inert,p=e.style.overflow,f,$;function y(){var A;var P=Bt,E=$t;Gi(null),bo(null);try{return u!=null?u:u=i()(e,(A=o==null?void 0:o())!=null?A:{},{direction:s})}finally{Gi(P),bo(E)}}var _={is_global:d,in(){var P;if(e.inert=m,!r){$==null||$.abort(),(P=$==null?void 0:$.reset)==null||P.call($);return}a||f==null||f.abort(),Lu(e,"introstart"),f=Vf(e,y(),$,1,()=>{Lu(e,"introend"),f==null||f.abort(),f=u=void 0,e.style.overflow=p})},out(P){if(!a){P==null||P(),u=void 0;return}e.inert=!0,Lu(e,"outrostart"),$=Vf(e,y(),f,0,()=>{Lu(e,"outroend"),P==null||P()})},stop:()=>{f==null||f.abort(),$==null||$.abort()}},S=$t;if(((N=S.transitions)!=null?N:S.transitions=[]).push(_),r&&Hd){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&&Do(()=>{Pt(()=>_.in())})}}function Vf(t,e,i,o,r){var a=o===1;if(Ys(e)){var l,d=!1;return Pn(()=>{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:ht,deactivate:ht,reset:ht,t:()=>o};let{delay:s=0,css:u,tick:m,easing:p=By}=e;var f=[];if(a&&i===void 0&&(m&&m(0,1),u)){var $=Zh(u(0,1));f.push($,$)}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),N=[];if(I>0){var P=!1;if(u)for(var E=Math.ceil(I/16.666666666666668),A=0;A<=E;A+=1){var Q=S+C*p(A/E),H=Zh(u(Q,1-Q));N.push(H),P||(P=H.overflow==="hidden")}P&&(t.style.overflow="hidden"),y=()=>{var Y=_.currentTime;return S+C*p(Y/I)},m&&Xh(()=>{if(_.playState!=="running")return!1;var Y=y();return m(Y,1-Y),!0})}_=t.animate(N,{duration:I,fill:"forwards"}),_.onfinish=()=>{y=()=>o,m==null||m(o,1-o),r()}},{abort:()=>{_&&(_.cancel(),_.effect=null,_.onfinish=ht)},deactivate:()=>{r=ht},reset:()=>{o===0&&(m==null||m(1,0))},t:()=>y()}}function Rf(t,e,i){var o=Yo(t,e);o&&o.set&&(t[e]=i,Oo(()=>{t[e]=null}))}var ea,Hl,qd,Vu,Jh,Ru=class Ru{constructor(e){qs(this,Vu);qs(this,ea,new WeakMap);qs(this,Hl);qs(this,qd);$l(this,qd,e)}observe(e,i){var o=Oi(this,ea).get(e)||new Set;return o.add(i),Oi(this,ea).set(e,o),Cg(this,Vu,Jh).call(this).observe(e,Oi(this,qd)),()=>{var r=Oi(this,ea).get(e);r.delete(i),r.size===0&&(Oi(this,ea).delete(e),Oi(this,Hl).unobserve(e))}}};ea=new WeakMap,Hl=new WeakMap,qd=new WeakMap,Vu=new WeakSet,Jh=function(){var e;return(e=Oi(this,Hl))!=null?e:$l(this,Hl,new ResizeObserver(i=>{for(var o of i){Ru.entries.set(o.target,o);for(var r of Oi(this,ea).get(o.target)||[])r(o)}}))},mr(Ru,"entries",new WeakMap);var Nf=Ru;var Fy=new Nf({box:"border-box"});function An(t,e,i){var o=Fy.observe(t,()=>i(t[e]));Do(()=>(Pt(()=>i(t[e])),o))}function e_(t,e){return t===e||(t==null?void 0:t[jo])===e}function Xe(t={},e,i,o){return Do(()=>{var r,a;return en(()=>{r=a,a=(o==null?void 0:o())||[],Pt(()=>{t!==i(...a)&&(e(t,...a),r&&e_(i(...r),t)&&e(null,...r))})}),()=>{Pn(()=>{a&&e_(i(...a),t)&&e(null,...a)})}}),t}function To(t=!1){let e=qt,i=e.l.u;if(!i)return;let o=()=>Eu(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&&Vd(()=>{t_(e,o),js(i.b)}),Oe(()=>{let r=Pt(()=>i.m.map(Vg));return()=>{for(let a of r)typeof a=="function"&&a()}}),i.a.length&&Oe(()=>{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 Qd(t,e,i){if(t==null)return e(void 0),i&&i(void 0),ht;let o=Pt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Ul=[];function Mr(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 gi(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=[],m=0,p=ht,f=()=>{if(m)return;p();let y=e(o?u[0]:u,l,d);a?l(y):p=typeof y=="function"?y:ht},$=r.map((y,_)=>Qd(y,S=>{u[_]=S,m&=~(1<<_),s&&f()},()=>{m|=1<<_}));return s=!0,f(),function(){js($),p(),s=!1}})}function ge(t){let e;return Qd(t,i=>e=i)(),e}var Nu=!1,Of=Symbol();function x(t,e,i){var a;let o=(a=i[e])!=null?a:i[e]={store:null,source:ms(void 0),unsubscribe:ht};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=ht;else{var r=!0;o.unsubscribe=Qd(t,l=>{r?o.source.v=l:O(o.source,l)}),r=!1}return t&&Of in i?ge(t):n(o.source)}function Re(){let t={};function e(){Oo(()=>{for(var i in t)t[i].unsubscribe();_o(t,Of,{enumerable:!1,value:!0})})}return[t,e]}function Df(t){var e=Nu;try{return Nu=!1,[t(),Nu]}finally{Nu=e}}var Qy={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Ee&&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 Ln(t,e,i){return new Proxy(Ee?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},Qy)}var Gy={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=Yo(r,e);if(a&&a.set)return a.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Ys(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let r=Yo(o,e);return r&&!r.configurable&&(r.configurable=!0),r}}},has(t,e){if(e===jo||e===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},Gy)}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 Q,H;var r=(i&1)!==0,a=!us||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,s=!1,u;l?[u,s]=Df(()=>t[e]):u=t[e];var m=jo in t||yl in t,p=l&&((H=(Q=Yo(t,e))==null?void 0:Q.set)!=null?H:m&&e in t&&(z=>t[e]=z))||void 0,f=o,$=!0,y=!1,_=()=>(y=!0,$&&($=!1,d?f=Pt(o):f=o),f);u===void 0&&o!==void 0&&(p&&a&&Wg(e),u=_(),p&&p(u));var S;if(a)S=()=>{var z=t[e];return z===void 0?_():($=!0,y=!1,z)};else{var C=(r?Qr:Cn)(()=>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(p){var I=t.$$legacy;return function(z,Y){return arguments.length>0?((!a||!Y||I||s)&&p(Y?S():z),z):S()}}var N=!1,P=!1,E=ms(u),A=Qr(()=>{var z=S(),Y=n(E);return N?(N=!1,P=!0,Y):(P=!1,E.v=z)});return l&&n(A),r||(A.equals=Sl),function(z,Y){if(Cu!==null&&(N=P,S(),n(E)),arguments.length>0){let le=Y?n(A):a&&l?ci(z):z;if(!A.equals(le)){if(N=!0,O(E,le),y&&f!==void 0&&(f=le),i_(A))return z;Pt(()=>n(A))}return z}return i_(A)?A.v:n(A)}}var Yy;typeof HTMLElement=="function"&&(Yy=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),b(l,d)}};var e=i;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let o={},r=jy(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=Vh({component:this.$$ctor,target:this.shadowRoot||this,props:jt(Ie({},this.$$d),{$$slots:o,$$host:this})}),this.$$me=xu(()=>{en(()=>{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 jy(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"),gJ=require("@vkontakte/videoplayer-core/es2015"),ll=require("@vkontakte/videoplayer-shared/es2015"),v$=require("@vkontakte/videoplayer-statistics/es2015");var Va=require("@vkontakte/videoplayer-shared/es2015");var Xy={isMobile:void 0,disableInvisibleComponentsTimeout:500,debugLog:!1,devNullLog:!1,defaultLanguage:Va.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:Va.VideoQuality.Q_480P,highQualityLimit:Va.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,disableThumbUnstartedOnAutoplay:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,paramsOverride:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null,font:null,focusedOutlineWidth:null,focusedOutlineRadius:null,controlsDesktopPaddingHorizontal:null,timelinePaddingHorizontal:null,settingsBackgroundColor:null,controlsGradientHeight:null,controlsGradient:null},userSalt:"0",doubleForwardActivationTime:600,playbackStatusAnimationDuration:1e3,playbackStatusNextVideoAnimationDuration:1e3,suitableDurationForUsingRichSeek:180},a_=t=>(0,Va.fillWithDefault)(t,Xy),l_=t=>Il("ui-config",t),Nt=()=>Cl("ui-config");var Gd="vk_player_debug_panel_opened";var d_="videoplayer",c_="videoplayer";var gs={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"],Yd=[...m_,"GRAPH_BUTTON"],Ff=[...m_,"PLAY_BUTTON"],jd=[...Yd,"PLAY_BUTTON"];var Jr=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(Jr||{}),Xd={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 Ou="prod",Na="1.1.78";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),Ou==="dev"&&(window.app={store:t,microStores:e})},ve=()=>{let t=Cl(h_);return(0,Zd.assertNonNullable)(t,"Store context is empty!"),t},Co=()=>{let t=Cl(__);return(0,Zd.assertNonNullable)(t,"MicroStores context is empty!"),t},li=(t,e)=>Bu(t,t.getValue(),e),Bu=(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 Q,H,z,Y,le,X,re,Z,we;let r=t.info,{width:a,height:l}=ge(i.ui.playerSize),d=(H=(Q=r.throughputEstimation$.getValue())==null?void 0:Q.toFixed(0))!=null?H:0,s=(Y=(z=r.rttEstimation$.getValue())==null?void 0:z.toFixed(0))!=null?Y:0,u=r.isAutoQualityEnabled$.getValue()?"auto":"manual",m=`${Na} (core: ${v_.VERSION}, stat: ${g_.VERSION}, shared: ${Zd.VERSION})`,p=ge(i.state.errorLog$),f=p.length?`
|
|
45
45
|
`+p.map((ue,ne)=>{var Ne;let _e=`${ne}) Type: ${ue.id}
|
|
46
46
|
`,xe=`Message: ${ue.message} (${ue.thrown})
|
|
47
47
|
`,J=`Trace: ${(Ne=ue.thrown)==null?void 0:Ne.stack}
|
|
48
48
|
`;return _e+xe+J}).join(`
|
|
49
|
-
`):void 0,$=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: ${(X=_==null?void 0:_.codec)!=null?X:""}`+(_!=null&&_.language?` (${_.language})`:""));let C=r.currentQuality$.getValue(),I="";if(C){let ue=r.availableQualitiesFps$.getValue()[C];I=ue?`${ue}fps`:""}let N=r.httpConnectionType$.getValue(),P=(Z=(re=r.currentBuffer$.getValue())==null?void 0:re.end)!=null?Z:0,E=Math.max(P-ge(i.state.positionExact$),0),
|
|
50
|
-
`)},y_=(t,e,i)=>{var Q,H,z,Y;let o=t.info,{width:r,height:a}=ge(i.ui.playerSize),l={version:Na,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 m=o.currentBuffer$.getValue(),p=o.isLive$.getValue(),f=o.liveBufferTime$.getValue();m&&(p&&f?l.buffer=m.end-f:l.buffer=Math.max(m.end-ge(i.state.positionExact$),0)),l.position=ge(i.state.positionExact$);let $=o.throughputEstimation$.getValue();$&&(l.speed=$);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 N=(Q=t.info.currentVideoStream$.getValue())==null?void 0:Q.codec;N&&(l.videoCodec=N);let P=(H=t.info.currentAudioStream$.getValue())==null?void 0:H.codec;P&&(l.audioCodec=P),((z=t.info.currentVideoStream$.getValue())==null?void 0:z.hdr)&&(l.hdr=!0);let k=(Y=t.info.currentAudioStream$.getValue())==null?void 0:Y.language;return k&&(l.audioLanguage=k),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)}},Du=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 hi=require("@vkontakte/videoplayer-shared/es2015"),U6=require("@vkontakte/videoplayer-core/es2015");var Zy="vk_player_",C_="vk_player_prefer_traffic_saving_enabled",I_="vk_player_preferred_volume",E_="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",P_="vk_player_preferred_stream_language",A_="vk_player_preferred_rate",k_="vk_player_preferred_autoplay_next",zf="vk_player_preferred_subtitles_language",L_="vk_player_user_video_prefs",M_=`${Zy}preview_track_close_tooltip`,V_=t=>t>1?1:t<0?0:t,Kf=t=>hi.safeStorage.set(I_,V_(t).toString(10)),Fu=()=>{let t=hi.safeStorage.get(I_);return(0,hi.isNullable)(t)?void 0:V_(parseFloat(t))},qf=(t,e)=>hi.safeStorage.set(Wf,JSON.stringify({videoId:t,value:e})),Hu=()=>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){Hu();return}return o},R_=(t,e)=>{e?hi.safeStorage.set(t,"true"):hi.safeStorage.remove(t)},Gf=t=>hi.safeStorage.get(t)==="true",Yf=t=>R_(E_,t),N_=()=>Gf(E_),Jd=t=>R_(C_,t),jf=()=>Gf(C_),O_=()=>hi.safeStorage.get(P_),Xf=t=>hi.safeStorage.set(P_,t),Zf=()=>hi.safeStorage.get(zf),Jf=t=>{t?hi.safeStorage.set(zf,t):hi.safeStorage.remove(zf)},D_=t=>hi.safeStorage.set(A_,JSON.stringify({rate:t})),B_=()=>{let t=hi.safeStorage.get(A_);if((0,hi.isNullable)(t))return;let{rate:e}=JSON.parse(t);return e},F_=t=>{hi.safeStorage.set(k_,String(t))},H_=()=>Gf(k_),Jy=()=>{let t=m=>{hi.safeStorage.set(Hf,JSON.stringify(m))},e=()=>{try{let m=hi.safeStorage.get(Hf);return m?JSON.parse(m):null}catch(m){return null}},i=()=>{try{let m=hi.safeStorage.get(Uf);return m?JSON.parse(m):null}catch(m){return null}},o=m=>{hi.safeStorage.set(Uf,JSON.stringify(m))},r=m=>{u(m);let p=m?i():null;if(p&&(p==null?void 0:p.videoId)===m)return jt(Ie({},p),{appliesTo:"to-video"});p&&a();let f=e();return f?jt(Ie({},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=(m,p="as-default")=>{m.type==="exact_quality"||p==="to-video"?o(m):t(m)},s=m=>{let p=r(m);if(p){switch(p.type){case"traffic_saving":Jd(!0);break;case"exact_quality":qf(m,p.quality)}a(),l()}},u=m=>{let p=Qf(m);if(p){o({type:"exact_quality",videoId:m,quality:p});return}jf()&&t({type:"traffic_saving",videoId:m}),Jd(!1),Hu()};return{getPreferredQualitySettings:r,migrateSettingsToLegacyWay:s,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:a,getPreferredDefaultQualitySettings:e,getPreferredSubtitlesLanguage:Zf,savePreferredSubtitlesLanguage:Jf}},{getPreferredQualitySettings:U_,migrateSettingsToLegacyWay:z_,savePreferredQualitySettings:Uu,savePreferredDefaultQualitySettings:z6,removePreferredQualitySettingsByVideo:W6,getPreferredDefaultQualitySettings:zu}=Jy(),e1=3,t1=3,W_=()=>{let t=hi.safeStorage.get(L_);if(t)try{return JSON.parse(t)}catch(e){return null}return null},Wu=(t,e)=>{var r,a;let i=W_();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=W_())!=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=i1(o);hi.safeStorage.set(L_,JSON.stringify(a))};function i1(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(t1),e.reduce((o,[r])=>(o[r]=o1(t[r]),o),{})}function o1(t){let e=Object.entries(t);return e.sort(([,i],[,o])=>i.updatedTs>o.updatedTs?-1:1),e.splice(e1),Object.fromEntries(e)}function K_(){hi.safeStorage.set(M_,JSON.stringify(!0))}function q_(){let t=hi.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 n1=Ce('<g filter="url(#strokeAndShadow)"><!></g><defs><filter x="-12" width="72" y="-12" height="72" id="strokeAndShadow"><feMorphology operator="dilate" radius=".4" result="outer"></feMorphology><feFlood flood-color="rgba(0,0,0,0.1)" result="outerColor"></feFlood><feComposite operator="in" in="outerColor" in2="outer" result="outerOutline"></feComposite><feDropShadow in="SourceGraphic" dx="0" dy="0" stdDeviation="3" flood-color="rgba(0,0,0,0.4)" result="outerShadow"></feDropShadow><feMerge><feMergeNode in="outerShadow"></feMergeNode><feMergeNode in="outerOutline"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter></defs>',1),r1=Ce('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill-rule="evenodd" clip-rule="evenodd"><!></svg>');function Ze(t,e){var m;B(e,!0);let i=g(e,"width",19,()=>"24"),o=g(e,"height",19,()=>"24"),r=g(e,"fill",3,ta),a=(m=e.viewBox)!=null?m:`0 0 ${i()} ${o()}`;var l=r1(),d=T(l);{var s=p=>{var f=n1(),$=de(f),y=T($);ai(y,()=>e.children),w($),vi(),b(p,f)},u=p=>{var f=Le(),$=de(f);ai($,()=>e.children),b(p,f)};R(d,p=>{e.shadow?p(s):p(u,!1)})}w(l),D(()=>{Ve(l,"aria-label",e.ariaLabel),Ve(l,"aria-hidden",!e.ariaLabel),Ve(l,"width",i()),Ve(l,"height",o()),Ve(l,"viewBox",a),Ve(l,"fill",r()),Qe(l,e.style),Ve(l,"data-testid",e.testId)}),b(t,l),F()}var zl=require("@vkontakte/videoplayer-shared/es2015");var s1={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:`Видео грузится слишком медленно,
|
|
49
|
+
`):void 0,$=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: ${(X=_==null?void 0:_.codec)!=null?X:""}`+(_!=null&&_.language?` (${_.language})`:""));let C=r.currentQuality$.getValue(),I="";if(C){let ue=r.availableQualitiesFps$.getValue()[C];I=ue?`${ue}fps`:""}let N=r.httpConnectionType$.getValue(),P=(Z=(re=r.currentBuffer$.getValue())==null?void 0:re.end)!=null?Z:0,E=Math.max(P-ge(i.state.positionExact$),0),A={Version:m,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":N?N+(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:$,Position:`${ge(i.state.positionExact$)}s`,Buffer:`${E}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(A).filter(([ue,ne])=>ne!==void 0).map(([ue,ne])=>`${ue}: ${ne}`).join(`
|
|
50
|
+
`)},y_=(t,e,i)=>{var Q,H,z,Y;let o=t.info,{width:r,height:a}=ge(i.ui.playerSize),l={version:Na,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 m=o.currentBuffer$.getValue(),p=o.isLive$.getValue(),f=o.liveBufferTime$.getValue();m&&(p&&f?l.buffer=m.end-f:l.buffer=Math.max(m.end-ge(i.state.positionExact$),0)),l.position=ge(i.state.positionExact$);let $=o.throughputEstimation$.getValue();$&&(l.speed=$);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 N=(Q=t.info.currentVideoStream$.getValue())==null?void 0:Q.codec;N&&(l.videoCodec=N);let P=(H=t.info.currentAudioStream$.getValue())==null?void 0:H.codec;P&&(l.audioCodec=P),((z=t.info.currentVideoStream$.getValue())==null?void 0:z.hdr)&&(l.hdr=!0);let A=(Y=t.info.currentAudioStream$.getValue())==null?void 0:Y.language;return A&&(l.audioLanguage=A),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)}},Du=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 hi=require("@vkontakte/videoplayer-shared/es2015"),U6=require("@vkontakte/videoplayer-core/es2015");var Zy="vk_player_",C_="vk_player_prefer_traffic_saving_enabled",I_="vk_player_preferred_volume",E_="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",P_="vk_player_preferred_stream_language",k_="vk_player_preferred_rate",A_="vk_player_preferred_autoplay_next",zf="vk_player_preferred_subtitles_language",L_="vk_player_user_video_prefs",M_=`${Zy}preview_track_close_tooltip`,V_=t=>t>1?1:t<0?0:t,Kf=t=>hi.safeStorage.set(I_,V_(t).toString(10)),Fu=()=>{let t=hi.safeStorage.get(I_);return(0,hi.isNullable)(t)?void 0:V_(parseFloat(t))},qf=(t,e)=>hi.safeStorage.set(Wf,JSON.stringify({videoId:t,value:e})),Hu=()=>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){Hu();return}return o},R_=(t,e)=>{e?hi.safeStorage.set(t,"true"):hi.safeStorage.remove(t)},Gf=t=>hi.safeStorage.get(t)==="true",Yf=t=>R_(E_,t),N_=()=>Gf(E_),Jd=t=>R_(C_,t),jf=()=>Gf(C_),O_=()=>hi.safeStorage.get(P_),Xf=t=>hi.safeStorage.set(P_,t),Zf=()=>hi.safeStorage.get(zf),Jf=t=>{t?hi.safeStorage.set(zf,t):hi.safeStorage.remove(zf)},D_=t=>hi.safeStorage.set(k_,JSON.stringify({rate:t})),B_=()=>{let t=hi.safeStorage.get(k_);if((0,hi.isNullable)(t))return;let{rate:e}=JSON.parse(t);return e},F_=t=>{hi.safeStorage.set(A_,String(t))},H_=()=>Gf(A_),Jy=()=>{let t=m=>{hi.safeStorage.set(Hf,JSON.stringify(m))},e=()=>{try{let m=hi.safeStorage.get(Hf);return m?JSON.parse(m):null}catch(m){return null}},i=()=>{try{let m=hi.safeStorage.get(Uf);return m?JSON.parse(m):null}catch(m){return null}},o=m=>{hi.safeStorage.set(Uf,JSON.stringify(m))},r=m=>{u(m);let p=m?i():null;if(p&&(p==null?void 0:p.videoId)===m)return jt(Ie({},p),{appliesTo:"to-video"});p&&a();let f=e();return f?jt(Ie({},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=(m,p="as-default")=>{m.type==="exact_quality"||p==="to-video"?o(m):t(m)},s=m=>{let p=r(m);if(p){switch(p.type){case"traffic_saving":Jd(!0);break;case"exact_quality":qf(m,p.quality)}a(),l()}},u=m=>{let p=Qf(m);if(p){o({type:"exact_quality",videoId:m,quality:p});return}jf()&&t({type:"traffic_saving",videoId:m}),Jd(!1),Hu()};return{getPreferredQualitySettings:r,migrateSettingsToLegacyWay:s,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:a,getPreferredDefaultQualitySettings:e,getPreferredSubtitlesLanguage:Zf,savePreferredSubtitlesLanguage:Jf}},{getPreferredQualitySettings:U_,migrateSettingsToLegacyWay:z_,savePreferredQualitySettings:Uu,savePreferredDefaultQualitySettings:z6,removePreferredQualitySettingsByVideo:W6,getPreferredDefaultQualitySettings:zu}=Jy(),e1=3,t1=3,W_=()=>{let t=hi.safeStorage.get(L_);if(t)try{return JSON.parse(t)}catch(e){return null}return null},Wu=(t,e)=>{var r,a;let i=W_();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=W_())!=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=i1(o);hi.safeStorage.set(L_,JSON.stringify(a))};function i1(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(t1),e.reduce((o,[r])=>(o[r]=o1(t[r]),o),{})}function o1(t){let e=Object.entries(t);return e.sort(([,i],[,o])=>i.updatedTs>o.updatedTs?-1:1),e.splice(e1),Object.fromEntries(e)}function K_(){hi.safeStorage.set(M_,JSON.stringify(!0))}function q_(){let t=hi.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 n1=Ce('<g filter="url(#strokeAndShadow)"><!></g><defs><filter x="-12" width="72" y="-12" height="72" id="strokeAndShadow"><feMorphology operator="dilate" radius=".4" result="outer"></feMorphology><feFlood flood-color="rgba(0,0,0,0.1)" result="outerColor"></feFlood><feComposite operator="in" in="outerColor" in2="outer" result="outerOutline"></feComposite><feDropShadow in="SourceGraphic" dx="0" dy="0" stdDeviation="3" flood-color="rgba(0,0,0,0.4)" result="outerShadow"></feDropShadow><feMerge><feMergeNode in="outerShadow"></feMergeNode><feMergeNode in="outerOutline"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter></defs>',1),r1=Ce('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill-rule="evenodd" clip-rule="evenodd"><!></svg>');function Ze(t,e){var m;B(e,!0);let i=g(e,"width",19,()=>"24"),o=g(e,"height",19,()=>"24"),r=g(e,"fill",3,ta),a=(m=e.viewBox)!=null?m:`0 0 ${i()} ${o()}`;var l=r1(),d=T(l);{var s=p=>{var f=n1(),$=de(f),y=T($);ai(y,()=>e.children),w($),vi(),b(p,f)},u=p=>{var f=Le(),$=de(f);ai($,()=>e.children),b(p,f)};R(d,p=>{e.shadow?p(s):p(u,!1)})}w(l),D(()=>{Ve(l,"aria-label",e.ariaLabel),Ve(l,"aria-hidden",!e.ariaLabel),Ve(l,"width",i()),Ve(l,"height",o()),Ve(l,"viewBox",a),Ve(l,"fill",r()),Qe(l,e.style),Ve(l,"data-testid",e.testId)}),b(t,l),F()}var zl=require("@vkontakte/videoplayer-shared/es2015");var s1={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
52
|
попробуйте изменить качество на «Авто»`,double_forward_label:"2x",preview_track_notification_text:"Потяните вверх для точной перемотки",preview_track_close_tooltip:"Выйти из режима точной перемотки"},Q_=s1;var a1={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"},G_=a1;var
|
|
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"},G_=a1;var As=new Map;As.set(zl.InterfaceLanguage.EN,G_);As.set(zl.InterfaceLanguage.RU,Q_);var Y_=new Map,tm=({language:t,pack:e,fallback:i})=>{if(As.has(t)){let o=As.get(t);As.set(t,Ie(Ie({},o),e))}else As.set(t,e);Y_.set(t,i)},im=t=>As.has(t),om=(t,e,i,o)=>{var l;let r=As.get(t),a=r==null?void 0:r[e];if((0,zl.isNullable)(a)){let d=(l=Y_.get(t))!=null?l:o,s=d?As.get(d):void 0;a=s==null?void 0:s[e]}return(0,zl.isNullable)(a)?e+Object.values(i!=null?i:{}).join(" "):i?a.replaceAll(/{(\w+?)}/g,(d,s)=>{var u;return(u=i[s])!=null?u:""}):a},G=(t,e)=>{let{interfaceLanguage$:i}=ve(),o=ge(i),r=Nt();return om(o,t,e,r.defaultLanguage)};var l1=Ce('<path d="M26.86 15.18a3.7 3.7 0 0 0 2.53-3.6C29.4 8.91 27.2 7 24.07 7c-1.96 0-3.57.78-4.67 2.29l-.1.15a1.33 1.33 0 0 0 .26 1.85c.54.4 1.3.35 1.74-.16l.2-.25a3 3 0 0 1 2.5-1.3c1.53 0 2.6.91 2.6 2.25 0 1.36-1.09 2.27-2.65 2.27h-.58a1.23 1.23 0 0 0 0 2.47h.58c1.75 0 2.91.98 2.91 2.39 0 1.45-1.19 2.46-2.88 2.46a3.2 3.2 0 0 1-2.89-1.6l-.2-.29a1.4 1.4 0 0 0-2.05-.25 1.3 1.3 0 0 0-.3 1.68l.21.33A6 6 0 0 0 24 24c3.28 0 5.63-2.04 5.63-4.92a4 4 0 0 0-2.77-3.9M37.73 12.68c-.46 0-1 .04-1.5.16L38.8 9.1a1.34 1.34 0 1 0-2.2-1.52l-3.76 5.47C31.43 15.18 31 16.87 31 18.33 31 21.8 33.56 24 37.19 24c3.6 0 6.16-2.4 6.16-5.77a5.4 5.4 0 0 0-5.63-5.56m-.53 8.74c-1.98 0-3.33-1.27-3.33-3.14 0-1.85 1.35-3.14 3.33-3.14 1.95 0 3.3 1.29 3.3 3.14 0 1.87-1.35 3.14-3.3 3.14m20.8-5.9c0 5.03-2.7 8.43-6.63 8.43s-6.62-3.4-6.62-8.44 2.7-8.44 6.62-8.44S58 10.47 58 15.51m-10.35 0c0 3.56 1.49 5.85 3.72 5.85s3.72-2.3 3.72-5.86-1.48-5.86-3.72-5.86c-2.23 0-3.72 2.3-3.72 5.86M67 9.49A3.5 3.5 0 0 1 63.51 13 3.5 3.5 0 0 1 60 9.49 3.5 3.5 0 0 1 63.51 6 3.5 3.5 0 0 1 67 9.49m-5 0c0 .83.68 1.51 1.51 1.51.81 0 1.5-.68 1.5-1.51 0-.81-.69-1.5-1.5-1.5-.83 0-1.51.69-1.51 1.5ZM67 23.5c0-1.32-1.2-3.1-4.2-4.67a1.5 1.5 0 1 1 1.4-2.66c3.25 1.72 5.8 4.26 5.8 7.33 0 3.13-2.56 5.55-6.09 7.27-3.63 1.77-8.82 3.06-15.26 3.72a1.5 1.5 0 0 1-.3-2.98c6.25-.64 11.05-1.88 14.25-3.44 3.3-1.6 4.4-3.27 4.4-4.57M38.88 35H38c-9.64 0-17.45-1.13-22.9-3.02-2.72-.94-4.94-2.1-6.5-3.47C7.01 27.14 6 25.44 6 23.5a6.2 6.2 0 0 1 1.9-4.25 16 16 0 0 1 4.43-3.1 1.5 1.5 0 1 1 1.34 2.7q-2.39 1.19-3.59 2.46C9.3 22.14 9 22.87 9 23.5c0 .8.4 1.74 1.57 2.76s3 2.01 5.51 2.89C21.11 30.89 28.55 32 38 32h.88l-1.44-1.44a1.5 1.5 0 0 1 2.12-2.12l4 4h.01a1.5 1.5 0 0 1 .32 1.63 2 2 0 0 1-.33.5l-4 4a1.5 1.5 0 0 1-2.12-2.13z"></path>');function ec(t,e){B(e,!1);let i=G("video360");To(),Ze(t,{width:"76",height:"45",get ariaLabel(){return i},testId:"video-360-icon",shadow:!0,children:(o,r)=>{var a=l1();b(o,a)},$$slots:{default:!0}}),F()}var x8=require("@vkontakte/videoplayer-core/es2015");var Wl;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(Wl||(Wl={}));var d1=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,c1=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,u1=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Ku="?",p1="X-Sentry-Auth",f1=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function m1(t){if(!t.stack)return null;let e=[],i=t.stack.split(`
|
|
55
55
|
`),o,r;for(let a=0;a<i.length;++a){if(o=d1.exec(i[a]))r={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||Ku,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=u1.exec(i[a]))r={filename:o[2],function:o[1]||Ku,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=c1.exec(i[a]))a===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),r={filename:o[3],function:o[1]||Ku,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!r.function&&r.lineno&&(r.function=Ku),e.push(r)}return e.length?{value:j_(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function j_(t){return(t&&t.message||"No error message").split(`
|
|
56
|
-
`).filter(i=>!!i)[0]}function v1(t){try{let e=m1(t);if(e)return e}catch(e){}return{value:j_(t),type:t&&t.name,stacktrace:{frames:[]}}}function g1(){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=f1.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 jt(Ie({},this.getRequestBlank()),{exception:{values:[v1(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(p1,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:g1(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function X_(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function h1(){return window}var Qu=class t extends qu{constructor(e,i=h1()){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",Ie({},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",Ie({},e)),this}setUser(e){return this.setKeyState("user",Ie({},e)),this}clone(){let e=new t(jt(Ie({},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:[Ie({timestamp:Date.now()/1e3},this.beforeBreadcrumb(e))]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send(jt(Ie({},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=>X_(i,o))):!1}getRequestBlank(){return Ie(jt(Ie({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(Ie({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=>X_(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 jt(Ie({},i),{[o]:a||d?[...a||[],...d||[]]:Ie(Ie({},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 Gu=null,Ba=class{constructor(e,i,o={}){!Gu&&e.dsn&&(this.sentryClient=new Qu({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new Da.Subscription,this.options=e,this.context=o,Gu=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),Gu=null}logIError(e,i=!1){e.thrown&&this.report(e.thrown,{fatal:i,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,i={},o={}){let{sentryClient:r,context:a,options:l}=this,{sampleRate:d=0,whiteErrorIdList:s,whiteErrorCategoryList:u=[],blackErrorIdList:m,blackErrorCategoryList:p}=l,{errorType:f,category:$}=i;if((0,Da.isNonNullable)($)&&p.includes($)||(0,Da.isNonNullable)(f)&&m.includes(f))return;if(Math.random()<=d||(0,Da.isNonNullable)($)&&u.includes($)||(0,Da.isNonNullable)(f)&&s.includes(f)){Object.keys(i).length&&r.setTags(Ie({version:this.version},i)),(Object.keys(a).length||Object.keys(o).length)&&r.setExtras(Ie(Ie({},a),o));try{f&&r.captureMessage(f,i.fatal?Wl.fatal:Wl.error),r.report(e)}catch(_){console.error(_)}}}static getInstance(){return Gu}};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 Yu=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()},ju=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),Z_=(t,e)=>e?!0:t.fullscreenEnabled||!!t.webkitFullscreenEnabled||!!t.mozFullscreenEnabled||!!t.msFullscreenEnabled,J_=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(),Xu=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},Zu=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},eb=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 nm=require("@vkontakte/videoplayer-core/es2015"),tb=()=>({title:G("hotkey_map_modal_title"),closeBtnText:G("hotkey_map_modal_close_btn_text"),groups:[{title:G("hotkey_map_group_title_common"),items:[{description:G("hotkey_map_item_mute_description"),value:G("hotkey_map_item_mute_value")},{description:G("hotkey_map_item_volume_up_description"),value:G("hotkey_map_item_volume_up_value")},{description:G("hotkey_map_item_volume_down_description"),value:G("hotkey_map_item_volume_down_value")},{description:G("hotkey_map_item_pip_description"),value:G("hotkey_map_item_pip_value")},{description:G("hotkey_map_item_full_screen_description"),value:G("hotkey_map_item_full_screen_value")},{description:G("hotkey_map_item_show_context_menu_description"),value:G("hotkey_map_item_show_context_menu_value")},{description:G("hotkey_map_item_show_hotkey_map_description"),value:G("hotkey_map_item_show_hotkey_map_value")}]},{title:G("hotkey_map_group_title_playback"),items:[{description:G("hotkey_map_item_play_toggle_description"),value:G("hotkey_map_item_play_toggle_value")},{description:G("hotkey_map_item_seek_backward_description"),value:G("hotkey_map_item_seek_backward_value")},{description:G("hotkey_map_item_seek_forward_description"),value:G("hotkey_map_item_seek_forward_value")},{description:G("hotkey_map_item_fast_seek_backward_description"),value:G("hotkey_map_item_fast_seek_backward_value")},{description:G("hotkey_map_item_fast_seek_forward_description"),value:G("hotkey_map_item_fast_seek_forward_value")},{description:G("hotkey_map_item_rate_down_description"),value:G("hotkey_map_item_rate_down_value")},{description:G("hotkey_map_item_rate_up_description"),value:G("hotkey_map_item_rate_up_value")},{description:G("hotkey_map_item_prev_frame_description"),value:G("hotkey_map_item_prev_frame_value")},{description:G("hotkey_map_item_next_frame_description"),value:G("hotkey_map_item_next_frame_value")},{description:G("hotkey_map_item_jump_seek_description"),value:G("hotkey_map_item_jump_seek_value")},{description:G("hotkey_map_item_next_video_description"),value:G("hotkey_map_item_next_video_value")},{description:G("hotkey_map_item_prev_video_description"),value:G("hotkey_map_item_prev_video_value")}]},{title:G("hotkey_map_group_title_subtitles"),items:[{description:G("hotkey_map_item_subtitles_toggle_description"),value:G("hotkey_map_item_subtitles_toggle_value")}]},{title:G("hotkey_map_group_title_episodes"),items:[{description:G("hotkey_map_item_prev_episode_description"),value:nm.clientChecker.device.isApple?G("hotkey_map_item_prev_episode_mac_value"):G("hotkey_map_item_prev_episode_pc_value")},{description:G("hotkey_map_item_next_episode_description"),value:nm.clientChecker.device.isApple?G("hotkey_map_item_next_episode_mac_value"):G("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=Ie({},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 sm(t,e){B(e,!1);let i=ve();Rt(()=>{i.getAdmanWrapper().startPostroll()}),To(),F()}var ib=require("@vkontakte/videoplayer-shared/es2015");var _1=Ce('<path d="M11.74 6.74a.9.9 0 0 1-1.28 0L6 2.27 1.54 6.74A.9.9 0 1 1 .26 5.46l5.1-5.1a.9.9 0 0 1 1.28 0l5.1 5.1a.9.9 0 0 1 0 1.28Z"></path>'),b1=Ce('<path d="m5.773 8 3.363 3.364a.9.9 0 1 1-1.272 1.272l-4-4a.9.9 0 0 1 0-1.272l4-4a.9.9 0 0 1 1.272 1.272L5.773 8z"></path>');function Vr(t,e){B(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 m="";return n(a)&&(m+="transform: rotate(180deg);"),m.length?m:void 0})()),s=v(()=>o()?ta:"currentColor"),u=v(()=>n(r)?"7":"16");Ze(t,{width:"12",get height(){return n(u)},get fill(){return n(s)},get testId(){return n(l)},get style(){return n(d)},children:(m,p)=>{var f=Le(),$=de(f);{var y=S=>{var C=_1();b(S,C)},_=S=>{var C=b1();b(S,C)};R($,S=>{n(r)?S(y):S(_,!1)})}b(m,f)},$$slots:{default:!0}}),F()}var $1=(t,e,i)=>{t.stopPropagation(),n(e)&&i()()},y1=M('<div class="skip s-1h"> <!></div>'),x1=M("<div><!></div>"),w1={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){B(e,!0),q(t,w1);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,ib.noop),u=ve().ui.isMobile,m=v(()=>a()>0&&a()>=l());var p=x1();let f;p.__click=[$1,m,d];var $=T(p);{var y=S=>{var C=y1(),I=T(C),N=L(I);Vr(N,{direction:"right"}),w(C),D(P=>me(I,`${P!=null?P:""} `),[()=>G("skip_ads_now")]),b(S,C)},_=S=>{var C=vs();D(I=>me(C,I),[()=>G("skip_ads_after",{time:Math.ceil(l()-a()).toFixed(0)})]),b(S,C)};R($,S=>{n(m)?S(y):S(_,!1)})}w(p),D(S=>f=se(p,1,"container s-1h",null,f,S),[()=>({"container-mobile":r(),skippable:n(m)})]),b(t,p),F(),o()}it(["click"]);var S1=M('<button class="go-to-site s-1g"> </button>'),T1={hash:"s-1g",code:"button.go-to-site.s-1g{background:#fff;border:none;border-radius:6px;bottom:14px;color:#000;font-size:15px;left:16px;padding:6px 10px;pointer-events:none;position:absolute}"};function lm(t,e){B(e,!1),q(t,T1),To();var i=S1(),o=T(i,!0);w(i),D(r=>me(o,r),[()=>G("visit_advertiser")],Cn),b(t,i),F()}var C1=M('<div class="top-gradient-mobile s-n"></div>'),I1=M('<div class="container s-n"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),E1={hash:"s-n",code:".container.s-n{height:100%;width:100%}.top-gradient-mobile.s-n{background:linear-gradient(1turn,transparent,rgba(0,0,0,.05) 12%,rgba(0,0,0,.15) 25%,rgba(0,0,0,.3) 45%,rgba(0,0,0,.4) 57%,rgba(0,0,0,.5) 77%,rgba(0,0,0,.55) 88%,rgba(0,0,0,.65));height:80px;left:0;pointer-events:none;position:absolute;top:0;width:100%}"};function oc(t,e){B(e,!0),q(t,E1);let[i,o]=Re(),r=()=>x(H,"$canSkipAd",i),a=()=>x(Q,"$adPlaybackState",i),l=()=>x(I,"$isMobile",i),d=()=>x(z,"$adPosition",i),s=()=>x(Y,"$secondsToWatchBeforeSkipAd",i),u=()=>x(C,"$isVideoEnded",i),m=g(e,"adsSlotId",3,void 0),p=g(e,"adsParams",3,void 0),f=g(e,"adsAutoplayParam",3,void 0),$=g(e,"duration",3,0),y=g(e,"adsExternalApi",3,void 0),_=ve(),S=Nt(),C=_.state.isEnded$,I=_.ui.isMobile,N=S.ads.isMobileGoToSiteButton,P=K(void 0),E=K(void 0),k=!1,Q=_.ads.playbackState,H=_.ads.canSkip,z=_.ads.position,Y=_.ads.secondsToWatchBeforeSkip,le=v(()=>r()&&a()!=="inactive"),X=v(()=>l()&&a()!=="inactive"&&N);Rt(()=>{let A=_.getAdmanWrapper();if(ql.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[(0,ql.now)(),m()]}),!m()){A.onAdmanLoadingError();return}let We=()=>{var Pe;let{width:De,height:Be}=ge(_.ui.playerSize),ot=ge(_.ui.isFullscreen),U=(Pe=f())!=null?Pe:ge(_.ui.isAutoplay),ke=S.ads.paramsOverride;return{width:De,height:Be,isFullscreen:ot,isAutoplay:U,adsContainer:n(P),adsVideoElement:n(E),slotId:m(),params:p(),paramsOverride:ke,duration:$(),externalApi:y()}},Te=De=>gt(null,null,function*(){De&&(yield yo());let Be=We();yield A.initAdman(Be),k=!0}),j=new AbortController,ie=()=>{j.abort()};return window.AdmanHTML?Te(!0).catch(()=>{A.onAdmanLoadingError()}):A.loadAdman(j.signal).then(()=>Te(!1)).catch(()=>{A.onAdmanLoadingError()}),()=>{ql.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[(0,ql.now)(),m()]}),!k&&ie()}});var re=I1(),Z=T(re);{var we=A=>{var We=C1();b(A,We)};R(Z,A=>{l()&&A(we)})}var ue=L(Z,2);Xe(ue,A=>O(E,A),()=>n(E));var ne=L(ue,2);{var _e=A=>{am(A,{get position(){return d()},get secondsToWatchBeforeSkip(){return s()},get skipAd(){return _.actions.internal.skipAd}})};R(ne,A=>{n(le)&&A(_e)})}var xe=L(ne,2);{var J=A=>{sm(A,{})};R(xe,A=>{u()&&A(J)})}var Ne=L(xe,2);{var pe=A=>{lm(A,{})};R(Ne,A=>{n(X)&&A(pe)})}w(re),Xe(re,A=>O(P,A),()=>n(P)),b(t,re),F(),o()}var tn=t=>{if(!isFinite(t))return"00:00";let e=Math.round(t),i=Math.floor(e/(60*60));e-=i*3600;let o=Math.floor(e/60);e-=o*60;let r=[o,e].map(a=>String(a).padStart(2,"0")).join(":");return i>0&&(r=`${i}:${r}`),r};var P1=Ce('<path fill="#fff"></path>'),A1=Ce("<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";Ze(t,{width:"42",height:"20",get testId(){return n(o)},get fill(){return n(r)},children:(l,d)=>{var s=A1(),u=de(s),m=L(u);{var p=f=>{var $=P1();Ve($,"d",a),b(f,$)};R(m,f=>{i()&&f(p)})}D(()=>Ve(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`)),b(l,s)},$$slots:{default:!0}})}var k1=M('<div class="equalizer s-e"><div class="col s-e"></div> <div class="col s-e"></div> <div class="col s-e"></div></div>'),L1=M('<div class="live-icon s-e"><!></div>'),M1=M('<span class="text s-e"> </span>'),V1=M("<div><!> <!></div>"),R1={hash:"s-e",code:".wrapper.s-e{background-color:var(--black-alpha-40);border-radius:4px;padding:2px 6px;transition:visibility var(--controls-transition-duration),opacity var(--controls-transition-duration);white-space:nowrap}.wrapper.live.s-e{background:var(--red);border-radius:2px;font-size:0;height:20px;line-height:20px;padding:0 7px}.equalizer.s-e{display:inline-block;height:10px;margin-right:4px;margin-top:-4px;position:relative;vertical-align:middle;width:10px}.live.s-e .equalizer:where(.s-e){margin-top:-2px}.equalizer.s-e .col:where(.s-e){animation:1.5s linear infinite alternate;animation-play-state:paused;background:var(--btn-color,--white);bottom:0;height:10px;margin-right:2px;position:absolute;transform-origin:50% 100%;width:2px}.playing.s-e .equalizer:where(.s-e) .col:where(.s-e){animation-play-state:running}.equalizer.s-e .col:where(.s-e):first-child{animation-name:s-e-thumb-timer-equalizer-col1;left:0}.equalizer.s-e .col:where(.s-e):nth-child(2){animation-name:s-e-thumb-timer-equalizer-col2;left:3px}.equalizer.s-e .col:where(.s-e):nth-child(3){animation-name:s-e-thumb-timer-equalizer-col3;left:6px}.live-icon.s-e{display:inline-block;height:20px;margin:0 -7px;vertical-align:middle;width:42px}@keyframes s-e-thumb-timer-equalizer-col1{0%{transform:scaleY(.1)}25%{transform:scaleY(.8)}50%{transform:scaleY(.4)}75%{transform:scaleY(.6)}to{transform:scaleY(.1)}}@keyframes s-e-thumb-timer-equalizer-col2{0%{transform:scaleY(1)}25%{transform:scaleY(.3)}50%{transform:scaleY(.9)}75%{transform:scaleY(.6)}to{transform:scaleY(1)}}@keyframes s-e-thumb-timer-equalizer-col3{0%{transform:scaleY(.6)}25%{transform:scaleY(.9)}50%{transform:scaleY(.1)}75%{transform:scaleY(.9)}to{transform:scaleY(.6)}}.text.s-e{color:var(--controls-time);font-size:13px;font-weight:500;line-height:16px}"};function rc(t,e){q(t,R1);let i=g(e,"withEqualizer",3,!1),o=g(e,"isLive",3,!1),r=g(e,"isPlaying",3,!1);var a=V1();let l;var d=T(a);{var s=f=>{var $=k1();b(f,$)};R(d,f=>{i()&&f(s)})}var u=L(d,2);{var m=f=>{var $=L1(),y=T($);nc(y,{isActive:!0}),w($),b(f,$)},p=f=>{var $=M1(),y=T($,!0);w($),D(()=>me(y,e.time)),b(f,$)};R(u,f=>{o()?f(m):f(p,!1)})}w(a),D(f=>l=se(a,1,"wrapper s-e",null,l,f),[()=>({live:o(),playing:r()})]),b(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 N1=M('<div role="timer" data-testid="thumb-timer"><!></div>'),O1={hash:"s-q",code:".thumb-timer.s-q{bottom:0;margin:8px;position:absolute;right:0;transition:visibility var(--controls-transition-duration),opacity var(--controls-transition-duration);z-index:var(--thumb-timer-z-index)}"};function sc(t,e){B(e,!0),q(t,O1);let[i,o]=Re(),r=()=>x(m,"$disabled",i),a=g(e,"isHidden",3,!1),l=g(e,"isLive",3,!1),d=g(e,"isPlaying",3,!1),s=Nt(),u=v(()=>tn(e.duration-e.position)),m=ae(!1);var p=N1();let f;var $=T(p);rc($,{get time(){return n(u)},get isLive(){return l()},get isPlaying(){return d()},withEqualizer:!0}),w(p),Ps(p,()=>Ql(a()&&s.features.usePerformanceFix,m,s.disableInvisibleComponentsTimeout)),D(y=>f=se(p,1,"thumb-timer s-q",null,f,y),[()=>({"out-of-flow":r(),hidden:a()})]),b(t,p),F(),o()}var Gl=t=>{if(!navigator.clipboard){ob(t);return}navigator.clipboard.writeText(t).catch(()=>ob(t))};function ob(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 pb=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)},B1=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},F1=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},H1=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},U1=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},nb=t=>t.code==="Escape",z1=t=>t.code==="ArrowLeft",ac=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},rb=t=>{H1(t)?(Rr(t),F1(t.target)):U1(t)&&(Rr(t),B1(t.target))},ra=t=>!cm.clientChecker.device.isAndroid&&(t==null?void 0:t.detail)===0||cm.clientChecker.device.isAndroid&&(t==null?void 0:t.pointerType)==="",Yl=(t,e,i)=>gt(null,null,function*(){yield yo(),t&&!t.classList.contains("opened")&&!e&&ge(i)&&(yield yo(),i.set(!1),t.focus())}),sb=(t,e,i)=>gt(null,null,function*(){yield yo(),t&&!e&&ge(i)&&(i.set(!1),t.focus())}),lc=(t,e,i,o=!1)=>gt(null,null,function*(){if(yield yo(),!!t&&e&&!o){let a=t.children[0];a==null||a.classList.toggle(dm,!i),a==null||a.focus()}}),ab=(t,e)=>gt(null,null,function*(){setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)}),Ju=(t,e)=>{rb(t),um(t.target),nb(t)&&(Rr(t),e())},ep=(t,e)=>gt(null,null,function*(){ac(t,["ArrowRight"])&&(Rr(t),e())}),lb=(t,e,i)=>gt(null,null,function*(){if(rb(t),z1(t)){Rr(t),e();return}nb(t)&&(Rr(t),i())}),jl=(t,e)=>{ac(t)&&(Rr(t),e())},db=(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))}},cb=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,r=e.top+i;return{right:o,bottom:r}},ub=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 pm=require("@vkontakte/videoplayer-shared/es2015");var K1=(t,e)=>{jl(t,()=>e())},q1=M('<li class="item s-1o" role="menuitem" tabindex="0"> </li>'),Q1={hash:"s-1o",code:".item.s-1o{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-1o:hover{background:rgba(66,66,66,.5);color:var(--white)}"};function fm(t,e){B(e,!0),q(t,Q1);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=q1();a.__click=r,a.__keydown=[K1,r];var l=T(a,!0);w(a),D(()=>{var d;Ve(a,"aria-label",(d=e.ariaLabel)!=null?d:e.label),Ve(a,"data-testid",e.id),me(l,e.label)}),b(t,a),F()}it(["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 G1=(t,e)=>{Ju(t,e)},Y1=t=>{t.preventDefault()},j1=M('<ul role="menu" class="s-11"></ul>'),X1={hash:"s-11",code:"ul.s-11{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){B(e,!0),q(t,X1);let[i,o]=Re(),r=()=>x(we,"$playerPhase",i),a=()=>x(le,"$isLive$",i),l=()=>x(ue,"$isPiPEnabled$",i),d=()=>x(Y,"$chromecastState$",i),s=()=>x(ne,"$pictureInPictureApiIsActive$",i),u=()=>x(Z,"$isLooped$",i),m=()=>x(X,"$positionExact$",i),p=()=>x(Q,"$additionalContextMenuItems$",i),f=g(e,"visible",3,!1),$=g(e,"position",19,()=>({top:0,left:0})),y=g(e,"playerContainerRef",3,void 0),_=g(e,"menuElementRef",15,void 0),S=K(0),C=K(0),I=ve(),{pictureInPicture$:N}=Co(),P=Nt(),E=I.ui.contextMenu.visible$,k=I.ui.debugPanelVisible,Q=I.ui.additionalContextMenuItems$,H=I.ui.t,z=I.actions.internal.togglePictureInPicture,Y=I.state.chromecastState$,le=I.state.isLive$,X=I.state.positionExact$,re=I.state.isInteractive,Z=I.state.looped$,we=I.playerPhase,{isEnabled$:ue,isActive$:ne}=N,_e=v(()=>r()==="video"),xe=v(()=>!!a()&&n(_e)),J=v(()=>["thumb","LiveWaitingStart","LiveWaitingRecover","LiveWaitingRecord"].includes(r())),Ne=v(()=>{var ce;return P.features.copyVideoLink&&((ce=I.callbacks)==null?void 0:ce.onCopyVideoLink)}),pe=v(()=>n(Ne)&&!n(J)&&!re&&!n(xe)),A=v(()=>{var ce;return!!((ce=I.callbacks)!=null&&ce.onCopyEmbedCodeClicked)}),We=v(()=>l()&&d()!==pb.ChromecastState.CONNECTED&&!re&&n(_e)),Te=v(()=>!re&&!n(J)&&!n(xe)),j=v(()=>P.features.videoRotate&&!re&&!n(J)),ie=v(()=>P.showSupport&&!s()),De=v(()=>P.features.saveTraceInfoToFile),Be=()=>{var ce;E.set(!1),(ce=e.returnFocus)==null||ce.call(e)},ot=(ce,ze)=>{if(!_()||!y())return;let Ye=_().getBoundingClientRect(),dt=y().getBoundingClientRect();O(S,ce-dt.left),O(C,ze-dt.top),n(S)+Ye.width>dt.width&&O(S,dt.width-Ye.width),n(C)+Ye.height>dt.height&&O(C,dt.height-Ye.height),O(S,Math.max(n(S),0),!0),O(C,Math.max(n(C),0),!0)};Oe(()=>{gt(null,null,function*(){if(_()&&y()){yield yo();let{top:ze,left:Ye,bottom:dt,right:Ut}=$(),zt=Ye!=null?Ye:0,ri=ze!=null?ze:0,wi=_().getBoundingClientRect();(0,Wa.isNullable)(Ye)&&!(0,Wa.isNullable)(Ut)&&(zt=Ut-wi.width),(0,Wa.isNullable)(ze)&&!(0,Wa.isNullable)(dt)&&(ri=dt-wi.height),zt=Math.max(zt,0),ri=Math.max(ri,0),ot(zt,ri)}})});let U=()=>{I.actions.internal.videoRotate()},ke=()=>{(0,Wa.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),I.actions.internal.reportProblem(),I.actions.internal.pause()},Pe=()=>{let ce=I.actions.internal.getDebugTextData();if(P.features.saveDebugInfoToFile){let ze=new Blob([...ce],{type:"plain/text"}),Ye=window.URL.createObjectURL(ze);Oa(Ye,"vk_player_debug_info","txt")}else Gl(I.actions.internal.getDebugTextData())},Ue=()=>{let ce=I.actions.internal.getTraceTextData(),ze=new Blob([...ce],{type:"application/json"}),Ye=window.URL.createObjectURL(ze);Oa(Ye,"vk_player_trace_info","json")},Je=()=>{k.set(!0)},ye=()=>gt(null,null,function*(){var ce;try{z()}finally{(ce=e.returnFocus)==null||ce.call(e)}}),Ae=()=>{I.actions.internal.setLooped(!u())},Fe=()=>{var ce,ze;if(n(A)){let Ye=(ze=(ce=I.callbacks)==null?void 0:ce.onCopyEmbedCodeClicked)==null?void 0:ze.call(ce);Ye&&Gl(Ye)}},Ft=(ce=!1)=>{var ze,Ye;if((ze=I.callbacks)!=null&&ze.onCopyVideoLink){let dt=(Ye=I.callbacks)==null?void 0:Ye.onCopyVideoLink(ce,m());dt&&Gl(dt)}},mt=v(()=>P.features.saveDebugInfoToFile?H("menu_save_debug"):H("menu_copy_debug")),Ht=v(()=>n(Ne)?{id:"copy-link",weight:ts["copy-link"],label:H("menu_copy_video_link"),onClick:()=>Ft()}:void 0),lt=v(()=>n(pe)?{id:"copy-link-timestamp",weight:ts["copy-link-timestamp"],label:H("menu_copy_video_link_with_timestamp"),onClick:()=>Ft(!0)}:void 0),Ct=v(()=>n(A)?{id:"copy-embed-code",weight:ts["copy-embed-code"],label:H("menu_copy_embed_code"),onClick:Fe}:void 0),oi=v(()=>n(We)?{id:"pip",weight:ts.pip,label:s()?H("menu_pip_close"):H("menu_pip"),onClick:ye}:void 0),Ot=v(()=>n(Te)?{id:"video-loop",weight:ts["video-loop"],label:u()?H("menu_video_loop_off"):H("menu_video_loop_on"),ariaLabel:H("aria_label_menu_loop"),onClick:Ae}:void 0),$e=v(()=>n(j)?{id:"rotate",weight:ts.rotate,label:H("menu_video_rotate"),ariaLabel:H("aria_label_menu_rotate"),onClick:U}:void 0),be=v(()=>n(ie)?{id:"report",weight:ts.report,label:H("menu_report"),ariaLabel:`${H("menu_report")}. ${H("aria_label_new_tab_alert")}`,onClick:ke}:void 0),ee=v(()=>({id:"save-debug",weight:ts["save-debug"],label:n(mt),onClick:Pe})),nt=v(()=>n(De)?{id:"save-trace",weight:ts["save-trace"],label:H("menu_save_debug"),onClick:Ue}:void 0),fe=v(()=>({id:"debug-info",weight:ts["debug-info"],label:H("menu_debug_overlay"),ariaLabel:H("aria_label_menu_debug_overlay"),onClick:Je})),Me=v(()=>[n(Ht),n(lt),n(Ct),n(oi),n(Ot),n($e),n(be),n(ee),n(nt),n(fe),...p()].filter(ce=>!!ce).sort(za));var xt=Le(),Lt=de(xt);{var pt=ce=>{var ze=j1();ze.__contextmenu=[Y1],ze.__keydown=[G1,Be],Ti(ze,21,()=>n(Me),Ye=>Ye.id,(Ye,dt)=>{fm(Ye,{get id(){return n(dt).id},get label(){return n(dt).label},get ariaLabel(){return n(dt).ariaLabel},get onClick(){return n(dt).onClick},closeContextMenu:Be})}),w(ze),Xe(ze,Ye=>_(Ye),()=>_()),D(()=>{var Ye,dt;return Qe(ze,`top: ${(Ye=n(C))!=null?Ye:""}px; left: ${(dt=n(S))!=null?dt:""}px;`)}),b(ce,ze)};R(Lt,ce=>{f()&&ce(pt)})}b(t,xt),F(),o()}it(["contextmenu","keydown"]);var tp=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 tp(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 Z1=M('<div class="container s-1i"><canvas class="s-1i"></canvas></div>'),J1={hash:"s-1i",code:".container.s-1i{display:inline-block;height:16px;width:120px}canvas.s-1i{margin-top:2px;transform:scaleY(-1)}"};function dc(t,e){B(e,!0),q(t,J1);let i=g(e,"values",19,()=>[]),o=K(void 0),r=K(null),a=16,l=120,d=60,s=l/d;Rt(()=>{n(o).width=l,n(o).height=a,O(r,n(o).getContext("2d"),!0)});function u(f,$,y,_,S){S===0&&(S=1),f.fillStyle="#fff",f.fillRect($,y,_,S)}Oe(()=>{let f="";if(n(r)){let $=i()[0];for(let _=1;_<i().length;_++)i()[_]>$&&($=i()[_]);n(r).clearRect(0,0,l,a);let y=d-1;for(let _=i().length-1;_>=0;_--){let S=y*s,C=$>0?a*(i()[_]/$):0;u(n(r),S,0,s,C),f=C+" "+f,y--}}});var m=Z1(),p=T(m);Xe(p,f=>O(o,f),()=>n(o)),w(m),b(t,m),F()}var vm=require("@vkontakte/videoplayer-shared/es2015");var e0=(t,e)=>{t.stopPropagation(),vm.safeStorage.remove(Gd),e.set(!1)},t0=M('<div class="s-s"><div class="s-s">Video id</div> <span> </span></div>'),i0=M('<div class="s-s"><div class="s-s">VSID</div> <span> </span></div>'),o0=M('<div class="s-s"><div class="s-s">Provider</div> <span> </span></div>'),n0=M('<div class="s-s"><div class="s-s">Streams</div> <span> </span></div>'),r0=M('<div class="s-s"><div class="s-s">Viewport</div> <span> </span></div>'),s0=M('<div class="s-s"><div class="s-s">Video size</div> <span> </span></div>'),a0=M('<div class="s-s"><div class="s-s">CDN host</div> <span> </span></div>'),l0=M('<div class="s-s"><div class="s-s">Volume</div> <span> </span></div>'),d0=M('<div class="s-s"><div class="s-s">Position</div> <span> </span></div>'),c0=M('<div class="s-s"><div class="s-s">Buffer</div> <span> </span></div>'),u0=M('<div class="s-s"><div class="s-s">Live latency</div> <span> </span></div>'),p0=M('<div class="s-s"><div class="s-s">Segment</div> <span> </span></div>'),f0=M('<div class="s-s"><div class="s-s">Network</div> <!> <span> </span></div>'),m0=M('<div class="s-s"><div class="s-s">V bitrate</div> <!> <span> </span></div>'),v0=M('<div role="region"><button class="close s-s" title="закрыть">[x]</button> <div class="content s-s"><div class="s-s"><div class="s-s">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="s-s"><div class="s-s">Dropped</div> <span> </span></div> <!> <!> <div class="s-s"><div class="s-s">FPS</div> <!> <span> </span></div></div></div>'),g0={hash:"s-s",code:".container.s-s{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-s{left:16px;top:16px}button.close.s-s{background-color:transparent;border:none;color:#fff;cursor:pointer;outline:0;padding:0;position:absolute;right:5px;top:3px}.content.s-s{padding:5px}.content.s-s>div:where(.s-s)>div:where(.s-s){display:inline-block;padding:0 5px;text-align:right;width:60px}"};function cc(t,e){B(e,!0),q(t,g0);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(),m=K(0),p=K(0),f=K(0),$=new Zl(60),y=new Zl(60),_=new Zl(60),S=K(ci([])),C=K(ci([])),I=K(ci([])),N=G("aria_label_debug_panel");Rt(()=>{vm.safeStorage.set(Gd,"true"),a.actions.internal.startLogging(),u&&(O(p,u.getVideoPlaybackQuality().droppedVideoFrames,!0),O(m,u.getVideoPlaybackQuality().totalVideoFrames,!0));let $e=window.setInterval(()=>{O(s,a.actions.internal.getDebugPanelData(),!0)},500),be;return u&&(be=window.setInterval(()=>{if(u){O(p,u.getVideoPlaybackQuality().droppedVideoFrames,!0);let ee=u.getVideoPlaybackQuality().totalVideoFrames;O(f,ee-n(m)),O(m,ee,!0),$.push(n(f)),n(s).speed&&y.push(n(s).speed),n(s).bitrate&&_.push(n(s).bitrate),O(S,$.getValuesFromBottom(),!0),O(C,y.getValuesFromBottom(),!0),O(I,_.getValuesFromBottom(),!0)}},1e3)),()=>{a.actions.internal.stopLogging(),clearInterval($e),be&&clearInterval(be)}});var P=v0();let E;var k=T(P);k.__click=[e0,l];var Q=L(k,2),H=T(Q),z=L(T(H),2),Y=T(z,!0);w(z),w(H);var le=L(H,2);{var X=$e=>{var be=t0(),ee=L(T(be),2),nt=T(ee,!0);w(ee),w(be),D(()=>me(nt,n(s).id)),b($e,be)};R(le,$e=>{n(s).id&&$e(X)})}var re=L(le,2);{var Z=$e=>{var be=i0(),ee=L(T(be),2),nt=T(ee,!0);w(ee),w(be),D(()=>me(nt,n(s).vsid)),b($e,be)};R(re,$e=>{n(s).vsid&&$e(Z)})}var we=L(re,2);{var ue=$e=>{var be=o0(),ee=L(T(be),2),nt=T(ee,!0);w(ee),w(be),D(()=>me(nt,n(s).provider)),b($e,be)};R(we,$e=>{n(s).provider&&$e(ue)})}var ne=L(we,2);{var _e=$e=>{var be=n0(),ee=L(T(be),2),nt=T(ee);w(ee),w(be),D(()=>{var fe,Me;return me(nt,`Video: ${(fe=n(s).videoCodec||"")!=null?fe:""} ${n(s).hdr?"(HDR)":""}
|
|
56
|
+
`).filter(i=>!!i)[0]}function v1(t){try{let e=m1(t);if(e)return e}catch(e){}return{value:j_(t),type:t&&t.name,stacktrace:{frames:[]}}}function g1(){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=f1.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 jt(Ie({},this.getRequestBlank()),{exception:{values:[v1(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(p1,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:g1(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function X_(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function h1(){return window}var Qu=class t extends qu{constructor(e,i=h1()){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",Ie({},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",Ie({},e)),this}setUser(e){return this.setKeyState("user",Ie({},e)),this}clone(){let e=new t(jt(Ie({},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:[Ie({timestamp:Date.now()/1e3},this.beforeBreadcrumb(e))]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send(jt(Ie({},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=>X_(i,o))):!1}getRequestBlank(){return Ie(jt(Ie({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(Ie({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=>X_(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 jt(Ie({},i),{[o]:a||d?[...a||[],...d||[]]:Ie(Ie({},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 Gu=null,Ba=class{constructor(e,i,o={}){!Gu&&e.dsn&&(this.sentryClient=new Qu({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new Da.Subscription,this.options=e,this.context=o,Gu=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),Gu=null}logIError(e,i=!1){e.thrown&&this.report(e.thrown,{fatal:i,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,i={},o={}){let{sentryClient:r,context:a,options:l}=this,{sampleRate:d=0,whiteErrorIdList:s,whiteErrorCategoryList:u=[],blackErrorIdList:m,blackErrorCategoryList:p}=l,{errorType:f,category:$}=i;if((0,Da.isNonNullable)($)&&p.includes($)||(0,Da.isNonNullable)(f)&&m.includes(f))return;if(Math.random()<=d||(0,Da.isNonNullable)($)&&u.includes($)||(0,Da.isNonNullable)(f)&&s.includes(f)){Object.keys(i).length&&r.setTags(Ie({version:this.version},i)),(Object.keys(a).length||Object.keys(o).length)&&r.setExtras(Ie(Ie({},a),o));try{f&&r.captureMessage(f,i.fatal?Wl.fatal:Wl.error),r.report(e)}catch(_){console.error(_)}}}static getInstance(){return Gu}};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 Yu=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()},ju=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),Z_=(t,e)=>e?!0:t.fullscreenEnabled||!!t.webkitFullscreenEnabled||!!t.mozFullscreenEnabled||!!t.msFullscreenEnabled,J_=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(),Xu=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},Zu=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},eb=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 nm=require("@vkontakte/videoplayer-core/es2015"),tb=()=>({title:G("hotkey_map_modal_title"),closeBtnText:G("hotkey_map_modal_close_btn_text"),groups:[{title:G("hotkey_map_group_title_common"),items:[{description:G("hotkey_map_item_mute_description"),value:G("hotkey_map_item_mute_value")},{description:G("hotkey_map_item_volume_up_description"),value:G("hotkey_map_item_volume_up_value")},{description:G("hotkey_map_item_volume_down_description"),value:G("hotkey_map_item_volume_down_value")},{description:G("hotkey_map_item_pip_description"),value:G("hotkey_map_item_pip_value")},{description:G("hotkey_map_item_full_screen_description"),value:G("hotkey_map_item_full_screen_value")},{description:G("hotkey_map_item_show_context_menu_description"),value:G("hotkey_map_item_show_context_menu_value")},{description:G("hotkey_map_item_show_hotkey_map_description"),value:G("hotkey_map_item_show_hotkey_map_value")}]},{title:G("hotkey_map_group_title_playback"),items:[{description:G("hotkey_map_item_play_toggle_description"),value:G("hotkey_map_item_play_toggle_value")},{description:G("hotkey_map_item_seek_backward_description"),value:G("hotkey_map_item_seek_backward_value")},{description:G("hotkey_map_item_seek_forward_description"),value:G("hotkey_map_item_seek_forward_value")},{description:G("hotkey_map_item_fast_seek_backward_description"),value:G("hotkey_map_item_fast_seek_backward_value")},{description:G("hotkey_map_item_fast_seek_forward_description"),value:G("hotkey_map_item_fast_seek_forward_value")},{description:G("hotkey_map_item_rate_down_description"),value:G("hotkey_map_item_rate_down_value")},{description:G("hotkey_map_item_rate_up_description"),value:G("hotkey_map_item_rate_up_value")},{description:G("hotkey_map_item_prev_frame_description"),value:G("hotkey_map_item_prev_frame_value")},{description:G("hotkey_map_item_next_frame_description"),value:G("hotkey_map_item_next_frame_value")},{description:G("hotkey_map_item_jump_seek_description"),value:G("hotkey_map_item_jump_seek_value")},{description:G("hotkey_map_item_next_video_description"),value:G("hotkey_map_item_next_video_value")},{description:G("hotkey_map_item_prev_video_description"),value:G("hotkey_map_item_prev_video_value")}]},{title:G("hotkey_map_group_title_subtitles"),items:[{description:G("hotkey_map_item_subtitles_toggle_description"),value:G("hotkey_map_item_subtitles_toggle_value")}]},{title:G("hotkey_map_group_title_episodes"),items:[{description:G("hotkey_map_item_prev_episode_description"),value:nm.clientChecker.device.isApple?G("hotkey_map_item_prev_episode_mac_value"):G("hotkey_map_item_prev_episode_pc_value")},{description:G("hotkey_map_item_next_episode_description"),value:nm.clientChecker.device.isApple?G("hotkey_map_item_next_episode_mac_value"):G("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=Ie({},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 sm(t,e){B(e,!1);let i=ve();Rt(()=>{i.getAdmanWrapper().startPostroll()}),To(),F()}var ib=require("@vkontakte/videoplayer-shared/es2015");var _1=Ce('<path d="M11.74 6.74a.9.9 0 0 1-1.28 0L6 2.27 1.54 6.74A.9.9 0 1 1 .26 5.46l5.1-5.1a.9.9 0 0 1 1.28 0l5.1 5.1a.9.9 0 0 1 0 1.28Z"></path>'),b1=Ce('<path d="m5.773 8 3.363 3.364a.9.9 0 1 1-1.272 1.272l-4-4a.9.9 0 0 1 0-1.272l4-4a.9.9 0 0 1 1.272 1.272L5.773 8z"></path>');function Vr(t,e){B(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 m="";return n(a)&&(m+="transform: rotate(180deg);"),m.length?m:void 0})()),s=v(()=>o()?ta:"currentColor"),u=v(()=>n(r)?"7":"16");Ze(t,{width:"12",get height(){return n(u)},get fill(){return n(s)},get testId(){return n(l)},get style(){return n(d)},children:(m,p)=>{var f=Le(),$=de(f);{var y=S=>{var C=_1();b(S,C)},_=S=>{var C=b1();b(S,C)};R($,S=>{n(r)?S(y):S(_,!1)})}b(m,f)},$$slots:{default:!0}}),F()}var $1=(t,e,i)=>{t.stopPropagation(),n(e)&&i()()},y1=M('<div class="skip s-1j"> <!></div>'),x1=M("<div><!></div>"),w1={hash:"s-1j",code:".container.s-1j{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-1j{bottom:14px;font-size:15px;max-width:142px;top:unset}.skip.s-1j{align-items:flex-end;display:flex;gap:4px;white-space:nowrap}.skippable.s-1j{color:var(--white);cursor:pointer}.skippable.s-1j:hover{color:hsla(0,0%,100%,.75)}"};function am(t,e){B(e,!0),q(t,w1);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,ib.noop),u=ve().ui.isMobile,m=v(()=>a()>0&&a()>=l());var p=x1();let f;p.__click=[$1,m,d];var $=T(p);{var y=S=>{var C=y1(),I=T(C),N=L(I);Vr(N,{direction:"right"}),w(C),D(P=>me(I,`${P!=null?P:""} `),[()=>G("skip_ads_now")]),b(S,C)},_=S=>{var C=vs();D(I=>me(C,I),[()=>G("skip_ads_after",{time:Math.ceil(l()-a()).toFixed(0)})]),b(S,C)};R($,S=>{n(m)?S(y):S(_,!1)})}w(p),D(S=>f=se(p,1,"container s-1j",null,f,S),[()=>({"container-mobile":r(),skippable:n(m)})]),b(t,p),F(),o()}it(["click"]);var S1=M('<button class="go-to-site s-1i"> </button>'),T1={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){B(e,!1),q(t,T1),To();var i=S1(),o=T(i,!0);w(i),D(r=>me(o,r),[()=>G("visit_advertiser")],Cn),b(t,i),F()}var C1=M('<div class="top-gradient-mobile s-m"></div>'),I1=M('<div class="container s-m"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),E1={hash:"s-m",code:".container.s-m{height:100%;width:100%}.top-gradient-mobile.s-m{background:linear-gradient(1turn,transparent,rgba(0,0,0,.05) 12%,rgba(0,0,0,.15) 25%,rgba(0,0,0,.3) 45%,rgba(0,0,0,.4) 57%,rgba(0,0,0,.5) 77%,rgba(0,0,0,.55) 88%,rgba(0,0,0,.65));height:80px;left:0;pointer-events:none;position:absolute;top:0;width:100%}"};function oc(t,e){B(e,!0),q(t,E1);let[i,o]=Re(),r=()=>x(H,"$canSkipAd",i),a=()=>x(Q,"$adPlaybackState",i),l=()=>x(I,"$isMobile",i),d=()=>x(z,"$adPosition",i),s=()=>x(Y,"$secondsToWatchBeforeSkipAd",i),u=()=>x(C,"$isVideoEnded",i),m=g(e,"adsSlotId",3,void 0),p=g(e,"adsParams",3,void 0),f=g(e,"adsAutoplayParam",3,void 0),$=g(e,"duration",3,0),y=g(e,"adsExternalApi",3,void 0),_=ve(),S=Nt(),C=_.state.isEnded$,I=_.ui.isMobile,N=S.ads.isMobileGoToSiteButton,P=K(void 0),E=K(void 0),A=!1,Q=_.ads.playbackState,H=_.ads.canSkip,z=_.ads.position,Y=_.ads.secondsToWatchBeforeSkip,le=v(()=>r()&&a()!=="inactive"),X=v(()=>l()&&a()!=="inactive"&&N);Rt(()=>{let k=_.getAdmanWrapper();if(ql.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[(0,ql.now)(),m()]}),!m()){k.onAdmanLoadingError();return}let We=()=>{var Pe;let{width:De,height:Be}=ge(_.ui.playerSize),ot=ge(_.ui.isFullscreen),U=(Pe=f())!=null?Pe:ge(_.ui.isAutoplay),Ae=S.ads.paramsOverride;return{width:De,height:Be,isFullscreen:ot,isAutoplay:U,adsContainer:n(P),adsVideoElement:n(E),slotId:m(),params:p(),paramsOverride:Ae,duration:$(),externalApi:y()}},Te=De=>gt(null,null,function*(){De&&(yield yo());let Be=We();yield k.initAdman(Be),A=!0}),j=new AbortController,ie=()=>{j.abort()};return window.AdmanHTML?Te(!0).catch(()=>{k.onAdmanLoadingError()}):k.loadAdman(j.signal).then(()=>Te(!1)).catch(()=>{k.onAdmanLoadingError()}),()=>{ql.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[(0,ql.now)(),m()]}),!A&&ie()}});var re=I1(),Z=T(re);{var we=k=>{var We=C1();b(k,We)};R(Z,k=>{l()&&k(we)})}var ue=L(Z,2);Xe(ue,k=>O(E,k),()=>n(E));var ne=L(ue,2);{var _e=k=>{am(k,{get position(){return d()},get secondsToWatchBeforeSkip(){return s()},get skipAd(){return _.actions.internal.skipAd}})};R(ne,k=>{n(le)&&k(_e)})}var xe=L(ne,2);{var J=k=>{sm(k,{})};R(xe,k=>{u()&&k(J)})}var Ne=L(xe,2);{var pe=k=>{lm(k,{})};R(Ne,k=>{n(X)&&k(pe)})}w(re),Xe(re,k=>O(P,k),()=>n(P)),b(t,re),F(),o()}var tn=t=>{if(!isFinite(t))return"00:00";let e=Math.round(t),i=Math.floor(e/(60*60));e-=i*3600;let o=Math.floor(e/60);e-=o*60;let r=[o,e].map(a=>String(a).padStart(2,"0")).join(":");return i>0&&(r=`${i}:${r}`),r};var P1=Ce('<path fill="#fff"></path>'),k1=Ce("<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";Ze(t,{width:"42",height:"20",get testId(){return n(o)},get fill(){return n(r)},children:(l,d)=>{var s=k1(),u=de(s),m=L(u);{var p=f=>{var $=P1();Ve($,"d",a),b(f,$)};R(m,f=>{i()&&f(p)})}D(()=>Ve(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`)),b(l,s)},$$slots:{default:!0}})}var A1=M('<div class="equalizer s-b"><div class="col s-b"></div> <div class="col s-b"></div> <div class="col s-b"></div></div>'),L1=M('<div class="live-icon s-b"><!></div>'),M1=M('<span class="text s-b"> </span>'),V1=M("<div><!> <!></div>"),R1={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,R1);let i=g(e,"withEqualizer",3,!1),o=g(e,"isLive",3,!1),r=g(e,"isPlaying",3,!1);var a=V1();let l;var d=T(a);{var s=f=>{var $=A1();b(f,$)};R(d,f=>{i()&&f(s)})}var u=L(d,2);{var m=f=>{var $=L1(),y=T($);nc(y,{isActive:!0}),w($),b(f,$)},p=f=>{var $=M1(),y=T($,!0);w($),D(()=>me(y,e.time)),b(f,$)};R(u,f=>{o()?f(m):f(p,!1)})}w(a),D(f=>l=se(a,1,"wrapper s-b",null,l,f),[()=>({live:o(),playing:r()})]),b(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 N1=M('<div role="timer" data-testid="thumb-timer"><!></div>'),O1={hash:"s-q",code:".thumb-timer.s-q{bottom:0;margin:8px;position:absolute;right:0;transition:visibility var(--controls-transition-duration),opacity var(--controls-transition-duration);z-index:var(--thumb-timer-z-index)}"};function sc(t,e){B(e,!0),q(t,O1);let[i,o]=Re(),r=()=>x(m,"$disabled",i),a=g(e,"isHidden",3,!1),l=g(e,"isLive",3,!1),d=g(e,"isPlaying",3,!1),s=Nt(),u=v(()=>tn(e.duration-e.position)),m=ae(!1);var p=N1();let f;var $=T(p);rc($,{get time(){return n(u)},get isLive(){return l()},get isPlaying(){return d()},withEqualizer:!0}),w(p),Ps(p,()=>Ql(a()&&s.features.usePerformanceFix,m,s.disableInvisibleComponentsTimeout)),D(y=>f=se(p,1,"thumb-timer s-q",null,f,y),[()=>({"out-of-flow":r(),hidden:a()})]),b(t,p),F(),o()}var Gl=t=>{if(!navigator.clipboard){ob(t);return}navigator.clipboard.writeText(t).catch(()=>ob(t))};function ob(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 pb=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)},B1=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},F1=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},H1=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},U1=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},nb=t=>t.code==="Escape",z1=t=>t.code==="ArrowLeft",ac=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},rb=t=>{H1(t)?(Rr(t),F1(t.target)):U1(t)&&(Rr(t),B1(t.target))},ra=t=>!cm.clientChecker.device.isAndroid&&(t==null?void 0:t.detail)===0||cm.clientChecker.device.isAndroid&&(t==null?void 0:t.pointerType)==="",Yl=(t,e,i)=>gt(null,null,function*(){yield yo(),t&&!t.classList.contains("opened")&&!e&&ge(i)&&(yield yo(),i.set(!1),t.focus())}),sb=(t,e,i)=>gt(null,null,function*(){yield yo(),t&&!e&&ge(i)&&(i.set(!1),t.focus())}),lc=(t,e,i,o=!1)=>gt(null,null,function*(){if(yield yo(),!!t&&e&&!o){let a=t.children[0];a==null||a.classList.toggle(dm,!i),a==null||a.focus()}}),ab=(t,e)=>gt(null,null,function*(){setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)}),Ju=(t,e)=>{rb(t),um(t.target),nb(t)&&(Rr(t),e())},ep=(t,e)=>gt(null,null,function*(){ac(t,["ArrowRight"])&&(Rr(t),e())}),lb=(t,e,i)=>gt(null,null,function*(){if(rb(t),z1(t)){Rr(t),e();return}nb(t)&&(Rr(t),i())}),jl=(t,e)=>{ac(t)&&(Rr(t),e())},db=(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))}},cb=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,r=e.top+i;return{right:o,bottom:r}},ub=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 pm=require("@vkontakte/videoplayer-shared/es2015");var K1=(t,e)=>{jl(t,()=>e())},q1=M('<li class="item s-1n" role="menuitem" tabindex="0"> </li>'),Q1={hash:"s-1n",code:".item.s-1n{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-1n:hover{background:rgba(66,66,66,.5);color:var(--white)}"};function fm(t,e){B(e,!0),q(t,Q1);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=q1();a.__click=r,a.__keydown=[K1,r];var l=T(a,!0);w(a),D(()=>{var d;Ve(a,"aria-label",(d=e.ariaLabel)!=null?d:e.label),Ve(a,"data-testid",e.id),me(l,e.label)}),b(t,a),F()}it(["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 G1=(t,e)=>{Ju(t,e)},Y1=t=>{t.preventDefault()},j1=M('<ul role="menu" class="s-z"></ul>'),X1={hash:"s-z",code:"ul.s-z{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){B(e,!0),q(t,X1);let[i,o]=Re(),r=()=>x(we,"$playerPhase",i),a=()=>x(le,"$isLive$",i),l=()=>x(ue,"$isPiPEnabled$",i),d=()=>x(Y,"$chromecastState$",i),s=()=>x(ne,"$pictureInPictureApiIsActive$",i),u=()=>x(Z,"$isLooped$",i),m=()=>x(X,"$positionExact$",i),p=()=>x(Q,"$additionalContextMenuItems$",i),f=g(e,"visible",3,!1),$=g(e,"position",19,()=>({top:0,left:0})),y=g(e,"playerContainerRef",3,void 0),_=g(e,"menuElementRef",15,void 0),S=K(0),C=K(0),I=ve(),{pictureInPicture$:N}=Co(),P=Nt(),E=I.ui.contextMenu.visible$,A=I.ui.debugPanelVisible,Q=I.ui.additionalContextMenuItems$,H=I.ui.t,z=I.actions.internal.togglePictureInPicture,Y=I.state.chromecastState$,le=I.state.isLive$,X=I.state.positionExact$,re=I.state.isInteractive,Z=I.state.looped$,we=I.playerPhase,{isEnabled$:ue,isActive$:ne}=N,_e=v(()=>r()==="video"),xe=v(()=>!!a()&&n(_e)),J=v(()=>["thumb","LiveWaitingStart","LiveWaitingRecover","LiveWaitingRecord"].includes(r())),Ne=v(()=>{var ce;return P.features.copyVideoLink&&((ce=I.callbacks)==null?void 0:ce.onCopyVideoLink)}),pe=v(()=>n(Ne)&&!n(J)&&!re&&!n(xe)),k=v(()=>{var ce;return!!((ce=I.callbacks)!=null&&ce.onCopyEmbedCodeClicked)}),We=v(()=>l()&&d()!==pb.ChromecastState.CONNECTED&&!re&&n(_e)),Te=v(()=>!re&&!n(J)&&!n(xe)),j=v(()=>P.features.videoRotate&&!re&&!n(J)),ie=v(()=>P.showSupport&&!s()),De=v(()=>P.features.saveTraceInfoToFile),Be=()=>{var ce;E.set(!1),(ce=e.returnFocus)==null||ce.call(e)},ot=(ce,ze)=>{if(!_()||!y())return;let Ye=_().getBoundingClientRect(),dt=y().getBoundingClientRect();O(S,ce-dt.left),O(C,ze-dt.top),n(S)+Ye.width>dt.width&&O(S,dt.width-Ye.width),n(C)+Ye.height>dt.height&&O(C,dt.height-Ye.height),O(S,Math.max(n(S),0),!0),O(C,Math.max(n(C),0),!0)};Oe(()=>{gt(null,null,function*(){if(_()&&y()){yield yo();let{top:ze,left:Ye,bottom:dt,right:Ut}=$(),zt=Ye!=null?Ye:0,ri=ze!=null?ze:0,wi=_().getBoundingClientRect();(0,Wa.isNullable)(Ye)&&!(0,Wa.isNullable)(Ut)&&(zt=Ut-wi.width),(0,Wa.isNullable)(ze)&&!(0,Wa.isNullable)(dt)&&(ri=dt-wi.height),zt=Math.max(zt,0),ri=Math.max(ri,0),ot(zt,ri)}})});let U=()=>{I.actions.internal.videoRotate()},Ae=()=>{(0,Wa.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),I.actions.internal.reportProblem(),I.actions.internal.pause()},Pe=()=>{let ce=I.actions.internal.getDebugTextData();if(P.features.saveDebugInfoToFile){let ze=new Blob([...ce],{type:"plain/text"}),Ye=window.URL.createObjectURL(ze);Oa(Ye,"vk_player_debug_info","txt")}else Gl(I.actions.internal.getDebugTextData())},Ue=()=>{let ce=I.actions.internal.getTraceTextData(),ze=new Blob([...ce],{type:"application/json"}),Ye=window.URL.createObjectURL(ze);Oa(Ye,"vk_player_trace_info","json")},Je=()=>{A.set(!0)},ye=()=>gt(null,null,function*(){var ce;try{z()}finally{(ce=e.returnFocus)==null||ce.call(e)}}),ke=()=>{I.actions.internal.setLooped(!u())},Fe=()=>{var ce,ze;if(n(k)){let Ye=(ze=(ce=I.callbacks)==null?void 0:ce.onCopyEmbedCodeClicked)==null?void 0:ze.call(ce);Ye&&Gl(Ye)}},Ft=(ce=!1)=>{var ze,Ye;if((ze=I.callbacks)!=null&&ze.onCopyVideoLink){let dt=(Ye=I.callbacks)==null?void 0:Ye.onCopyVideoLink(ce,m());dt&&Gl(dt)}},mt=v(()=>P.features.saveDebugInfoToFile?H("menu_save_debug"):H("menu_copy_debug")),Ht=v(()=>n(Ne)?{id:"copy-link",weight:ts["copy-link"],label:H("menu_copy_video_link"),onClick:()=>Ft()}:void 0),lt=v(()=>n(pe)?{id:"copy-link-timestamp",weight:ts["copy-link-timestamp"],label:H("menu_copy_video_link_with_timestamp"),onClick:()=>Ft(!0)}:void 0),Ct=v(()=>n(k)?{id:"copy-embed-code",weight:ts["copy-embed-code"],label:H("menu_copy_embed_code"),onClick:Fe}:void 0),oi=v(()=>n(We)?{id:"pip",weight:ts.pip,label:s()?H("menu_pip_close"):H("menu_pip"),onClick:ye}:void 0),Ot=v(()=>n(Te)?{id:"video-loop",weight:ts["video-loop"],label:u()?H("menu_video_loop_off"):H("menu_video_loop_on"),ariaLabel:H("aria_label_menu_loop"),onClick:ke}:void 0),$e=v(()=>n(j)?{id:"rotate",weight:ts.rotate,label:H("menu_video_rotate"),ariaLabel:H("aria_label_menu_rotate"),onClick:U}:void 0),be=v(()=>n(ie)?{id:"report",weight:ts.report,label:H("menu_report"),ariaLabel:`${H("menu_report")}. ${H("aria_label_new_tab_alert")}`,onClick:Ae}:void 0),ee=v(()=>({id:"save-debug",weight:ts["save-debug"],label:n(mt),onClick:Pe})),nt=v(()=>n(De)?{id:"save-trace",weight:ts["save-trace"],label:H("menu_save_debug"),onClick:Ue}:void 0),fe=v(()=>({id:"debug-info",weight:ts["debug-info"],label:H("menu_debug_overlay"),ariaLabel:H("aria_label_menu_debug_overlay"),onClick:Je})),Me=v(()=>[n(Ht),n(lt),n(Ct),n(oi),n(Ot),n($e),n(be),n(ee),n(nt),n(fe),...p()].filter(ce=>!!ce).sort(za));var xt=Le(),Lt=de(xt);{var pt=ce=>{var ze=j1();ze.__contextmenu=[Y1],ze.__keydown=[G1,Be],Ti(ze,21,()=>n(Me),Ye=>Ye.id,(Ye,dt)=>{fm(Ye,{get id(){return n(dt).id},get label(){return n(dt).label},get ariaLabel(){return n(dt).ariaLabel},get onClick(){return n(dt).onClick},closeContextMenu:Be})}),w(ze),Xe(ze,Ye=>_(Ye),()=>_()),D(()=>{var Ye,dt;return Qe(ze,`top: ${(Ye=n(C))!=null?Ye:""}px; left: ${(dt=n(S))!=null?dt:""}px;`)}),b(ce,ze)};R(Lt,ce=>{f()&&ce(pt)})}b(t,xt),F(),o()}it(["contextmenu","keydown"]);var tp=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 tp(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 Z1=M('<div class="container s-1h"><canvas class="s-1h"></canvas></div>'),J1={hash:"s-1h",code:".container.s-1h{display:inline-block;height:16px;width:120px}canvas.s-1h{margin-top:2px;transform:scaleY(-1)}"};function dc(t,e){B(e,!0),q(t,J1);let i=g(e,"values",19,()=>[]),o=K(void 0),r=K(null),a=16,l=120,d=60,s=l/d;Rt(()=>{n(o).width=l,n(o).height=a,O(r,n(o).getContext("2d"),!0)});function u(f,$,y,_,S){S===0&&(S=1),f.fillStyle="#fff",f.fillRect($,y,_,S)}Oe(()=>{let f="";if(n(r)){let $=i()[0];for(let _=1;_<i().length;_++)i()[_]>$&&($=i()[_]);n(r).clearRect(0,0,l,a);let y=d-1;for(let _=i().length-1;_>=0;_--){let S=y*s,C=$>0?a*(i()[_]/$):0;u(n(r),S,0,s,C),f=C+" "+f,y--}}});var m=Z1(),p=T(m);Xe(p,f=>O(o,f),()=>n(o)),w(m),b(t,m),F()}var vm=require("@vkontakte/videoplayer-shared/es2015");var e0=(t,e)=>{t.stopPropagation(),vm.safeStorage.remove(Gd),e.set(!1)},t0=M('<div class="s-o"><div class="s-o">Video id</div> <span> </span></div>'),i0=M('<div class="s-o"><div class="s-o">VSID</div> <span> </span></div>'),o0=M('<div class="s-o"><div class="s-o">Provider</div> <span> </span></div>'),n0=M('<div class="s-o"><div class="s-o">Streams</div> <span> </span></div>'),r0=M('<div class="s-o"><div class="s-o">Viewport</div> <span> </span></div>'),s0=M('<div class="s-o"><div class="s-o">Video size</div> <span> </span></div>'),a0=M('<div class="s-o"><div class="s-o">CDN host</div> <span> </span></div>'),l0=M('<div class="s-o"><div class="s-o">Volume</div> <span> </span></div>'),d0=M('<div class="s-o"><div class="s-o">Position</div> <span> </span></div>'),c0=M('<div class="s-o"><div class="s-o">Buffer</div> <span> </span></div>'),u0=M('<div class="s-o"><div class="s-o">Live latency</div> <span> </span></div>'),p0=M('<div class="s-o"><div class="s-o">Segment</div> <span> </span></div>'),f0=M('<div class="s-o"><div class="s-o">Network</div> <!> <span> </span></div>'),m0=M('<div class="s-o"><div class="s-o">V bitrate</div> <!> <span> </span></div>'),v0=M('<div role="region"><button class="close s-o" title="закрыть">[x]</button> <div class="content s-o"><div class="s-o"><div class="s-o">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="s-o"><div class="s-o">Dropped</div> <span> </span></div> <!> <!> <div class="s-o"><div class="s-o">FPS</div> <!> <span> </span></div></div></div>'),g0={hash:"s-o",code:".container.s-o{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-o{left:16px;top:16px}button.close.s-o{background-color:transparent;border:none;color:#fff;cursor:pointer;outline:0;padding:0;position:absolute;right:5px;top:3px}.content.s-o{padding:5px}.content.s-o>div:where(.s-o)>div:where(.s-o){display:inline-block;padding:0 5px;text-align:right;width:60px}"};function cc(t,e){B(e,!0),q(t,g0);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(),m=K(0),p=K(0),f=K(0),$=new Zl(60),y=new Zl(60),_=new Zl(60),S=K(ci([])),C=K(ci([])),I=K(ci([])),N=G("aria_label_debug_panel");Rt(()=>{vm.safeStorage.set(Gd,"true"),a.actions.internal.startLogging(),u&&(O(p,u.getVideoPlaybackQuality().droppedVideoFrames,!0),O(m,u.getVideoPlaybackQuality().totalVideoFrames,!0));let $e=window.setInterval(()=>{O(s,a.actions.internal.getDebugPanelData(),!0)},500),be;return u&&(be=window.setInterval(()=>{if(u){O(p,u.getVideoPlaybackQuality().droppedVideoFrames,!0);let ee=u.getVideoPlaybackQuality().totalVideoFrames;O(f,ee-n(m)),O(m,ee,!0),$.push(n(f)),n(s).speed&&y.push(n(s).speed),n(s).bitrate&&_.push(n(s).bitrate),O(S,$.getValuesFromBottom(),!0),O(C,y.getValuesFromBottom(),!0),O(I,_.getValuesFromBottom(),!0)}},1e3)),()=>{a.actions.internal.stopLogging(),clearInterval($e),be&&clearInterval(be)}});var P=v0();let E;var A=T(P);A.__click=[e0,l];var Q=L(A,2),H=T(Q),z=L(T(H),2),Y=T(z,!0);w(z),w(H);var le=L(H,2);{var X=$e=>{var be=t0(),ee=L(T(be),2),nt=T(ee,!0);w(ee),w(be),D(()=>me(nt,n(s).id)),b($e,be)};R(le,$e=>{n(s).id&&$e(X)})}var re=L(le,2);{var Z=$e=>{var be=i0(),ee=L(T(be),2),nt=T(ee,!0);w(ee),w(be),D(()=>me(nt,n(s).vsid)),b($e,be)};R(re,$e=>{n(s).vsid&&$e(Z)})}var we=L(re,2);{var ue=$e=>{var be=o0(),ee=L(T(be),2),nt=T(ee,!0);w(ee),w(be),D(()=>me(nt,n(s).provider)),b($e,be)};R(we,$e=>{n(s).provider&&$e(ue)})}var ne=L(we,2);{var _e=$e=>{var be=n0(),ee=L(T(be),2),nt=T(ee);w(ee),w(be),D(()=>{var fe,Me;return me(nt,`Video: ${(fe=n(s).videoCodec||"")!=null?fe:""} ${n(s).hdr?"(HDR)":""}
|
|
57
57
|
&
|
|
58
|
-
Audio: ${(Me=n(s).audioCodec||"")!=null?Me:""} ${n(s).audioLanguage?`(${n(s).audioLanguage})`:""}`)}),b($e,be)};R(ne,$e=>{(n(s).videoCodec||n(s).audioCodec)&&$e(_e)})}var xe=L(ne,2);{var J=$e=>{var be=r0(),ee=L(T(be),2),nt=T(ee,!0);w(ee),w(be),D(()=>me(nt,n(s).viewport)),b($e,be)};R(xe,$e=>{n(s).viewport&&$e(J)})}var Ne=L(xe,2);{var pe=$e=>{var be=s0(),ee=L(T(be),2),nt=T(ee,!0);w(ee),w(be),D(()=>me(nt,n(s).videoSize)),b($e,be)};R(Ne,$e=>{n(s).videoSize&&$e(pe)})}var A=L(Ne,2);{var We=$e=>{var be=a0(),ee=L(T(be),2),nt=T(ee,!0);w(ee),w(be),D(()=>me(nt,n(s).cdn)),b($e,be)};R(A,$e=>{n(s).cdn&&$e(We)})}var Te=L(A,2);{var j=$e=>{var be=l0(),ee=L(T(be),2),nt=T(ee);w(ee),w(be),D(()=>{var fe;return me(nt,`${(fe=n(s).volume)!=null?fe:""} %`)}),b($e,be)};R(Te,$e=>{n(s).volume&&$e(j)})}var ie=L(Te,2);{var De=$e=>{var be=d0(),ee=L(T(be),2),nt=T(ee);w(ee),w(be),D(fe=>me(nt,`${fe!=null?fe:""} s`),[()=>n(s).position.toFixed(2)]),b($e,be)};R(ie,$e=>{n(s).position&&$e(De)})}var Be=L(ie,2);{var ot=$e=>{var be=c0(),ee=L(T(be),2),nt=T(ee);w(ee),w(be),D(fe=>me(nt,`${fe!=null?fe:""} s`),[()=>n(s).buffer.toFixed(2)]),b($e,be)};R(Be,$e=>{n(s).buffer&&$e(ot)})}var U=L(Be,2);{var ke=$e=>{var be=u0(),ee=L(T(be),2),nt=T(ee);w(ee),w(be),D(fe=>me(nt,`${fe!=null?fe:""} s`),[()=>n(s).liveLatency.toFixed(2)]),b($e,be)};R(U,$e=>{n(s).liveLatency&&$e(ke)})}var Pe=L(U,2);{var Ue=$e=>{var be=p0(),ee=L(T(be),2),nt=T(ee,!0);w(ee),w(be),D(fe=>me(nt,fe),[()=>[{value:n(s).currentVideoSegmentLength,title:"Video:"},{value:n(s).currentAudioSegmentLength,title:"Audio:"}].filter(({value:fe})=>fe).map(({value:fe,title:Me})=>`${Me} ${((fe!=null?fe:0)/1e3).toFixed(2)} s`).join(" & ")]),b($e,be)};R(Pe,$e=>{(n(s).currentVideoSegmentLength||n(s).currentAudioSegmentLength)&&$e(Ue)})}var Je=L(Pe,2),ye=L(T(Je),2),Ae=T(ye);w(ye),w(Je);var Fe=L(Je,2);{var Ft=$e=>{var be=f0(),ee=L(T(be),2);dc(ee,{get values(){return n(C)}});var nt=L(ee,2),fe=T(nt);w(nt),w(be),D(Me=>me(fe,`${Me!=null?Me:""} Kbps`),[()=>n(s).speed.toFixed(2)]),b($e,be)};R(Fe,$e=>{n(s).speed&&$e(Ft)})}var mt=L(Fe,2);{var Ht=$e=>{var be=m0(),ee=L(T(be),2);dc(ee,{get values(){return n(I)}});var nt=L(ee,2),fe=T(nt);w(nt),w(be),D(Me=>me(fe,`${Me!=null?Me:""} Kbps`),[()=>n(s).bitrate.toFixed(2)]),b($e,be)};R(mt,$e=>{n(s).bitrate&&$e(Ht)})}var lt=L(mt,2),Ct=L(T(lt),2);dc(Ct,{get values(){return n(S)}});var oi=L(Ct,2),Ot=T(oi,!0);w(oi),w(lt),w(Q),w(P),D($e=>{var be,ee;E=se(P,1,"container s-s",null,E,$e),Ve(P,"aria-label",N),me(Y,n(s).version),me(Ae,`${(be=n(p))!=null?be:""} / ${(ee=n(m))!=null?ee:""} frames`),me(Ot,n(f))},[()=>({"container-mobile":r()})]),b(t,P),F(),o()}it(["click"]);var fb=require("@vkontakte/videoplayer-shared/es2015"),h0=(t,e)=>{t.stopPropagation(),e()()},_0=M('<div class="close s-19"></div>'),b0={hash:"s-19",code:'.close.s-19{cursor:pointer;height:16px;opacity:.8;position:relative;transition:opacity .2s;width:16px}.close.s-19:hover{opacity:1}.close.s-19:after,.close.s-19:before{background-color:var(--white);content:" ";height:16px;left:8px;position:absolute;width:2px}.close.s-19:before{transform:rotate(45deg)}.close.s-19:after{transform:rotate(-45deg)}'};function Ls(t,e){B(e,!0),q(t,b0);let i=g(e,"onClick",3,fb.noop);var o=_0();o.__click=[h0,i],b(t,o),F()}it(["click"]);var mb=require("@vkontakte/videoplayer-shared/es2015");var hn=t=>`width:${t}px;height:${t}px;`;var $0=Ce('<path d="m14.4 8.76 24.02 13.85a1.6 1.6 0 0 1 0 2.78L14.4 39.24a1.6 1.6 0 0 1-2.4-1.39v-27.7a1.6 1.6 0 0 1 2.4-1.39"></path>');function Mn(t,e){B(e,!0);let i=v(()=>hn(e.size));Ze(t,{get width(){return"48"},get height(){return"48"},get fill(){return e.fill},get style(){return n(i)},testId:"play-icon",get shadow(){return e.shadow},children:(o,r)=>{var a=$0();b(o,a)},$$slots:{default:!0}}),F()}var y0=M('<div class="timer s-1b"><canvas class="timer-canvas s-1b" width="100" height="100"></canvas> <!></div>'),x0={hash:"s-1b",code:".timer.s-1b{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-1b:hover{background:rgba(31,31,31,.85)}.timer-canvas.s-1b{height:50px;position:absolute;width:50px}"};function uc(t,e){B(e,!0),q(t,x0);let i=g(e,"isRunning",3,!0),o=g(e,"onTimerEnded",3,mb.noop),r=5e3,a=K(void 0),l,d,s=0,u;Oe(()=>{i()&&Pt(()=>{d=Date.now(),s=requestAnimationFrame(p)})});let m=()=>{s&&(cancelAnimationFrame(s),s=0)},p=()=>{m(),i()&&(u=(Date.now()-d)/r,u<1?(l==null||l.clearRect(0,0,100,100),l==null||l.beginPath(),l==null||l.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*u),l==null||l.stroke(),s=requestAnimationFrame(p)):o()())};Rt(()=>{l=n(a).getContext("2d"),l&&(l.lineWidth=6,l.lineCap="round",l.strokeStyle="#fff")}),gn(()=>{m()});var f=y0(),$=T(f);Xe($,_=>O(a,_),()=>n(a));var y=L($,2);Mn(y,{get size(){return"24"}}),w(f),b(t,f),F()}var w0=(t,e,i)=>{e(!1),i()},S0=M('<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),T0={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){B(e,!0),q(t,T0);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,m=l.actions.internal.nextVideoAnnouncementShow,p=l.actions.internal.nextVideoAnnouncementClick,f=l.actions.internal.nextVideoAnnouncementAuto,$=l.actions.internal.nextVideoAnnouncementCancel,y=()=>{r()&&(u(!1),f())},_=()=>{e.clickCloseIcon(),$()};Rt(()=>{e.isHide||m(),e.isHide&&r()&&(u(!1),f())});var S=Le(),C=de(S);{var I=N=>{var P=S0(),E=L(de(P),2),k=T(E),Q=T(k),H=T(Q,!0);w(Q);var z=L(Q,2);Ls(z,{onClick:_}),w(k);var Y=L(k,2);Y.__click=[w0,u,p];var le=T(Y),X=T(le),re=T(X);let Z;var we=L(re,2);{var ue=J=>{let Ne=v(()=>a()&&r());uc(J,{get isRunning(){return n(Ne)},onTimerEnded:y})};R(we,J=>{r()&&J(ue)})}w(X),w(le);var ne=L(le,2),_e=T(ne),xe=T(_e,!0);w(_e),w(ne),w(Y),w(E),D((J,Ne)=>{me(H,J),Qe(X,`background-image: url('${e.thumb}')`),Z=se(re,1,"thumb-overlay s-10",null,Z,Ne),me(xe,e.title)},[()=>G("end_screen_next_video"),()=>({withOpacity:r()})]),b(N,P)};R(C,N=>{e.isHide||N(I)})}b(t,S),F(),o()}it(["click"]);var aa=require("@vkontakte/videoplayer-core/es2015"),vb=require("@vkontakte/videoplayer-shared/es2015"),Vn=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),ip=(t,e,i)=>{let o=hm(e,i);e<1&&t.actions.internal.setVolume(o)},op=(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 np(){var t,e,i;return(i=(e=(t=document.activeElement)==null?void 0:t.shadowRoot)==null?void 0:e.activeElement)!=null?i:null}var I0=(t,e)=>{e(t)},E0=M('<div class="keyboard-controls s-z" tabindex="-1" role="region"><!></div>'),P0={hash:"s-z",code:".keyboard-controls.s-z{bottom:0;left:0;position:absolute;right:0;top:0}"};function bm(t,e){var ee,nt;B(e,!0),q(t,P0);let[i,o]=Re(),r=()=>x(we,"$disabledControls$",i),a=()=>x(ot,"$isInteractiveTime$",i),l=()=>x(U,"$showInteractiveTimeIndicatorTooltip$",i),d=()=>x(z,"$playbackState$",i),s=()=>x(We,"$isEnded$",i),u=()=>x(pe,"$doubleForwardAvailable$",i),m=()=>x(Ne,"$doubleForwardOn$",i),p=()=>x(Te,"$overlayContainer$",i),f=()=>x(le,"$adPlaybackState",i),$=()=>x(X,"$positionExact$",i),y=()=>x(re,"$duration$",i),_=()=>x(De,"$isAudioAvailable$",i),S=()=>x(Z,"$volume$",i),C=()=>x(Y,"$canChangePlaybackSpeed$",i),I=()=>x(ue,"$muted$",i),N=()=>x(ne,"$currentSubtitle$",i),P=g(e,"nextButtonActive",3,!1),E=g(e,"prevButtonActive",3,!1),k=ve(),Q=Nt(),H=k.getLogger().createComponentLog("KeyboardControls component"),z=k.state.playbackState$,Y=k.state.canChangePlaybackSpeed$,le=k.ads.playbackState,X=k.state.positionExact$,re=k.state.duration$,Z=k.state.volume$,we=k.ui.controls.disabledControls$,ue=k.state.muted$,ne=k.state.currentSubtitle$,_e=k.ui.contextMenu.openedByHotKey$,xe=k.ui.contextMenu.lastActiveElem$,J=k.ui.contextMenu.visible$,Ne=k.ui.doubleForwardOn$,pe=k.ui.doubleForwardAvailable$,A=k.ui.contextMenu.position$,We=k.state.isEnded$,Te=k.ui.overlayContainer$,j=(ee=k.callbacks)==null?void 0:ee.onAudioDoesNotExistHint,ie=(nt=k.callbacks)==null?void 0:nt.onAudioDisabledHint,De=k.state.isAudioAvailable$,Be=k.state.isAudioDisabled,ot=k.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:U}=Co(),ke=0,Pe=!0,Ue=K(void 0),Je=fe=>(fe!==Pe&&(Pe=fe,ke=0),ke+=1,(Q.controls.seekStepKeyboard+Q.controls.seekStepKeyboard*ke)/1e3),ye=!0,Ae=({type:fe,repeat:Me,disableDoubleForward:xt})=>{let Lt=()=>{if(!r().has("PLAY_BUTTON"))if(a()&&l()&&U.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{k.actions.internal.togglePlay();let ce="PLAY";d()===aa.PlaybackState.PAUSED?ce="PAUSE":s()&&(ce="REPLAY"),e.showHotKeyHelpers({type:ce})}},pt=fe==="down";if(!u()||xt){pt&&Lt(),ye=!0;return}if(pt)ye=!1;else if(ye)return;if(pt){!Me&&e.startDoubleForwardActivationTimer();return}m()||Lt(),e.stopDoubleForward(),ye=!0},Fe=fe=>{let Me=ub(p());A.set(Me),xe.set(fe.target),_e.set(!0),J.set(!0)},Ft=(fe,Me=!1)=>{var fi,bi;let xt=fe.target,Lt=(fi=xt==null?void 0:xt.getAttribute("role"))==null?void 0:fi.includes("menuitem"),pt=xt.classList.contains("btn"),ce=fe.code;if(pt&&ce==="Space")return!1;let ze=p_.has(ce);if(Lt&&ze)return!1;let Ye=!u_.has(ce);if(fe.ctrlKey&&Ye||fe.altKey&&Ye||fe.metaKey)return!1;let dt=Lt&&ce==="Escape";f_.has(ce)||dt||e.hideContextMenu();let Ut=d()===aa.PlaybackState.PLAYING||d()===aa.PlaybackState.PAUSED,zt=e.isAds&&(f()==="paused"||f()==="playing"),ri=!zt&&!r().has("TIMELINE"),wi=fe.shiftKey&&["Digit1","Numpad1"].includes(ce);if(!wi&&!(Ut||zt))return!1;H({message:`key down, code: ${ce}, isExternal = ${Me}`});let Zi=!1,Dt=()=>{Zi=!0,Me||fe.preventDefault()};if(wi)return Fe(fe),Dt(),!0;switch(ce){case"KeyJ":case"ArrowLeft":{if(!ri)break;if(fe.ctrlKey||fe.altKey){let bt=k.actions.internal.getPrevEpisode();k.actions.internal.seekToPrevEpisode(bt),bt&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:bt.text}),Dt()}else{let bt=fe.shiftKey?Je(!1):Q.controls.seekStepKeyboard/1e3,Jt=Math.max($()-bt,0);$()>0&&(k.actions.internal.seekTime(Jt,Vn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:bt.toString()}),Dt())}break}case"KeyL":case"ArrowRight":{if(!ri)break;if(fe.ctrlKey||fe.altKey){let bt=k.actions.internal.getNextEpisode();k.actions.internal.seekToNextEpisode(bt),bt&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:bt.text}),Dt()}else{let bt=fe.shiftKey?Je(!0):Q.controls.seekStepKeyboard/1e3,Jt=Math.min($()+bt,y());Math.round($())<Math.round(y())&&(k.actions.internal.seekTime(Jt,Vn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:bt.toString()}),Dt())}break}case"ArrowUp":{if(sa({isAudioDisabled:Be,audioDisabledHintCallback:ie,isAudioAvailable:_(),audioIsNotExistHintCallback:j,isAds:e.isAds})){let bt=S(),Jt=Q.controls.volumeStepKeyboard,Ci=bt<=1;if(ip(k,bt,Jt),Ci){let Ji=Math.round(hm(bt,Jt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Ji}})}}Dt();break}case"ArrowDown":{if(sa({isAudioDisabled:Be,audioDisabledHintCallback:ie,isAudioAvailable:_(),audioIsNotExistHintCallback:j,isAds:e.isAds})){let bt=S(),Jt=Q.controls.volumeStepKeyboard,Ci=bt>=0;if(op(k,bt,Jt),Ci){let Ji=Math.round(_m(bt,Jt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Ji}})}}Dt();break}case"Comma":{if(fe.shiftKey){if(!m()&&C()){let bt=k.actions.internal.decrementPlaybackRate();e.showHotKeyHelpers({type:"RATE_DOWN",text:bt==null?void 0:bt.displayValue}),Dt()}}else{if(zt||d()!==aa.PlaybackState.PAUSED)break;let bt=Math.max($()-Q.controls.seekStepFrame/1e3,0);$()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),k.actions.internal.clearDelayedBufferingCheckTimeout(),k.actions.internal.seekTime(bt,Vn.SeekAction.DOUBLE_TAP),Dt())}break}case"Period":{if(fe.shiftKey){if(!m()&&C()){let bt=k.actions.internal.incrementPlaybackRate();e.showHotKeyHelpers({type:"RATE_UP",text:bt==null?void 0:bt.displayValue}),Dt()}}else{if(zt||d()!==aa.PlaybackState.PAUSED)break;let bt=Math.min($()+Q.controls.seekStepFrame/1e3,y());$()<y()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),k.actions.internal.clearDelayedBufferingCheckTimeout(),k.actions.internal.seekTime(bt,Vn.SeekAction.DOUBLE_TAP),Dt())}break}case"KeyK":case"Space":Ae({type:"down",repeat:fe.repeat,disableDoubleForward:"KeyK"===ce}),Dt();break;case"KeyM":{sa({isAudioDisabled:Be,audioDisabledHintCallback:ie,isAudioAvailable:_(),audioIsNotExistHintCallback:j,isAds:e.isAds})&&(e.showHotKeyHelpers({type:I()?"VOLUME":"MUTE"}),k.actions.internal.toggleMuted()),Dt();break}case"KeyF":e.toggleFullscreen(),Dt();break;case"KeyC":k.actions.internal.toggleSubtitle(),N().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(bi=N())==null?void 0:bi.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),Dt();break;case"KeyI":k.actions.internal.togglePictureInPicture(),Dt();break;case"Digit1":case"Numpad1":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.1,Vn.SeekAction.DOUBLE_TAP),Dt();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.2,Vn.SeekAction.DOUBLE_TAP),Dt();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.3,Vn.SeekAction.DOUBLE_TAP),Dt();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.4,Vn.SeekAction.DOUBLE_TAP),Dt();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.5,Vn.SeekAction.DOUBLE_TAP),Dt();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.6,Vn.SeekAction.DOUBLE_TAP),Dt();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.7,Vn.SeekAction.DOUBLE_TAP),Dt();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.8,Vn.SeekAction.DOUBLE_TAP),Dt();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.9,Vn.SeekAction.DOUBLE_TAP),Dt();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(0,Vn.SeekAction.DOUBLE_TAP),Dt();break;case"Slash":{fe.shiftKey&&Q.features.hotKeyMapModal&&(e.showKeyMap(),Dt());break}case"KeyN":fe.shiftKey&&P()&&(k.actions.internal.nextVideoClick(),Dt());break;case"KeyP":fe.shiftKey&&E()&&(k.actions.internal.prevVideoClick(),Dt());break;case"ShiftLeft":case"ShiftRight":Dt();break;case"Tab":case"Escape":case"Enter":break;default:(0,vb.checkNever)(ce);break}return Zi},mt=fe=>{let Me=fe.code;if(fe.ctrlKey||fe.altKey||fe.metaKey)return;let xt=d()===aa.PlaybackState.PLAYING||d()===aa.PlaybackState.PAUSED,Lt=e.isAds&&(f()==="paused"||f()==="playing");if(xt||Lt)switch(Me){case"ShiftLeft":case"ShiftRight":ke=0;break;case"Space":Ae({type:"up"});break}},Ht=G("aria_label_video_player"),lt=()=>{var fe;return(fe=n(Ue))==null?void 0:fe.focus()},Ct=()=>n(Ue)===np(),oi=fe=>fe.type==="keydown"?Ft(fe,!0):(fe.type==="keyup"&&mt(fe),!1);var Ot=E0();Ot.__keyup=mt,Ot.__keydown=[I0,Ft];var $e=T(Ot);ai($e,()=>{var fe;return(fe=e.children)!=null?fe:ht}),w(Ot),Xe(Ot,fe=>O(Ue,fe),()=>n(Ue)),D(()=>Ve(Ot,"aria-label",Ht)),b(t,Ot);var be=F({focus:lt,isFocused:Ct,handleExternalKeyboardEvent:oi});return o(),be}it(["keyup","keydown"]);var A0=M('<div class="container s-r"><div class="dot s-r"></div> <div class="dot s-r"></div> <div class="dot s-r"></div></div>'),k0={hash:"s-r",code:".container.s-r{display:flex;left:50%;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%)}.dot.s-r:first-child{animation-delay:0s}.dot.s-r:nth-child(2){animation-delay:.18s}.dot.s-r:nth-child(3){animation-delay:.36s}@keyframes s-r-dot_animation{0%{opacity:.2}30%{opacity:1}to{opacity:.2}}.dot.s-r{animation-duration:.75s;animation-iteration-count:infinite;animation-name:s-r-dot_animation;background:var(--btn-color);border-radius:4px;height:8px;width:8px}.dot.s-r+.dot:where(.s-r){margin-left:4px}"};function Ka(t,e){q(t,k0);let i=g(e,"style",3,"");var o=A0();D(()=>Qe(o,i())),b(t,o)}var L0=Ce('<path d="M5.26 5.26a.9.9 0 0 1 1.28 0L12 10.73l5.46-5.47a.9.9 0 0 1 1.28 1.28L13.27 12l5.47 5.46a.9.9 0 1 1-1.28 1.28L12 13.27l-5.46 5.47a.9.9 0 1 1-1.28-1.28L10.73 12 5.26 6.54a.9.9 0 0 1 0-1.28Z"></path>');function $m(t,e){Ze(t,{get fill(){return e.fill},children:(i,o)=>{var r=L0();b(i,r)},$$slots:{default:!0}})}var qa=require("@vkontakte/videoplayer-shared/es2015"),M0=t=>{t.stopPropagation()},V0=M("<button><!></button>"),R0={hash:"s-1p",code:"button.btn.s-1p{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-1p{width:100%}button.btn--live.s-1p{padding:10px 4px}button.btn-jc-l.s-1p{justify-content:left}button.btn-m.s-1p{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-1p,button.btn-m--play.s-1p{align-items:center;display:flex;justify-content:center}button.btn-m--play.s-1p{height:var(--big-play-size);padding:16px;position:relative;width:var(--big-play-size)}button.btn-m--next.s-1p,button.btn-m--prev.s-1p{height:50px;position:absolute;width:50px}button.btn-m--prev.s-1p{right:calc(100% + 35px)}button.btn-m--next.s-1p{left:calc(100% + 35px)}button.btn.s-1p:disabled{cursor:default;pointer-events:none}button.btn.s-1p:not(.btn-full-opacity):disabled{opacity:.4}button.btn.s-1p:not(:disabled):hover{opacity:.8}button.pr-0.s-1p{padding-right:0}button.pl-0.s-1p{padding-left:0}"};function Qt(t,e){B(e,!0),q(t,R0);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),m=g(e,"ariaExpanded",3,void 0),p=g(e,"tabIndex",3,0),f=g(e,"click",3,qa.noop),$=g(e,"focus",3,qa.noop),y=g(e,"blur",3,qa.noop),_=v(()=>f()===qa.noop?null:P=>{P.stopPropagation(),f()(P)}),S=v(()=>$()===qa.noop?null:P=>{P.preventDefault(),$()()}),C=v(()=>y()===qa.noop?null:P=>{P.preventDefault(),y()()});var I=V0();I.__pointerdown=[M0],I.__click=function(...P){var E;(E=n(_))==null||E.apply(this,P)};var N=T(I);ai(N,()=>{var P;return(P=e.children)!=null?P:ht}),w(I),Xe(I,P=>s(P),()=>s()),D(()=>{var P,E,k,Q,H,z,Y,le;se(I,1,`btn ${(P=i())!=null?P:""}`,"s-1p"),Qe(I,o()||null),I.disabled=(E=r())!=null?E:null,Ve(I,"aria-hidden",(k=l())!=null?k:null),Ve(I,"aria-label",(Q=d())!=null?Q:null),Ve(I,"aria-keyshortcuts",(H=u())!=null?H:null),Ve(I,"aria-expanded",(z=m())!=null?z:null),Ve(I,"data-testid",(Y=a())!=null?Y:null),Ve(I,"tabindex",p()),Ve(I,"role",e.role),Ve(I,"aria-checked",(le=e.areaChecked)!=null?le:null)}),_t("focus",I,function(...P){var E;(E=n(S))==null||E.apply(this,P)}),_t("blur",I,function(...P){var E;(E=n(C))==null||E.apply(this,P)}),b(t,I),F()}it(["pointerdown","click"]);var N0=(t,e)=>{t.key==="Escape"&&e.onClose(),(t.key==="ArrowUp"||t.key==="ArrowDown")&&t.stopPropagation()},O0=M('<div class="modal-header s-1k"><h3 class="modal-title s-1k"> </h3> <!></div>'),D0=M('<div class="modal-overlay s-1k"><div class="modal-container s-1k" role="dialog" aria-modal="true"><!> <div class="modal-scroll s-1k" tabindex="0" role="scrollbar"><div class="modal-main s-1k"><!></div></div></div></div>'),B0={hash:"s-1k",code:'.modal-overlay.s-1k{align-items:center;background:transparent;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0;z-index:var(--modal-z-index)}.modal-container.s-1k{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-1k{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-1k{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-1k{height:100%;margin:8px 4px 8px 0;overflow-x:hidden;overflow-y:auto}.modal-scroll.s-1k::-webkit-scrollbar{width:8px}.modal-scroll.s-1k::-webkit-scrollbar-track{background-color:transparent;border-radius:4px;box-shadow:none;margin-right:2px}.modal-scroll.s-1k::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:#666;border:1px solid transparent;border-radius:5px;min-height:40px}.modal-scroll.s-1k::-webkit-scrollbar-thumb:hover{background-color:#777}.modal-main.s-1k{margin:-8px -4px 0 0}'};function ym(t,e){B(e,!0),q(t,B0);let i=g(e,"showHeader",3,!0),o=g(e,"showCloseCross",3,!0),r=K(void 0),a=K(void 0),{webApi:{focusManager:l}}=ve(),d=G("hotkey_map_modal_close_btn_text");Rt(()=>{var _;return(_=n(r))==null||_.focus(),n(a)&&l&&(l.setContainerForFocusLock(n(a)),l.activateLock()),()=>l==null?void 0:l.deactivateLock()});var s=D0();s.__keydown=[N0,e];var u=T(s),m=T(u);{var p=_=>{var S=O0(),C=T(S),I=T(C,!0);w(C);var N=L(C,2);{var P=E=>{Qt(E,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",get ariaLabel(){return d},children:(k,Q)=>{$m(k,{fill:"currentColor"})},$$slots:{default:!0}})};R(N,E=>{o()&&E(P)})}w(S),D(()=>me(I,e.title)),b(_,S)};R(m,_=>{i()&&_(p)})}var f=L(m,2),$=T(f),y=T($);ai(y,()=>{var _;return(_=e.children)!=null?_:ht}),w($),w(f),Xe(f,_=>O(r,_),()=>n(r)),w(u),Xe(u,_=>O(a,_),()=>n(a)),w(s),b(t,s),F()}it(["keydown"]);var F0=new Set(["BR"]),gb=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;F0.has(l)||(r=a.parentElement)==null||r.removeChild(a)}return e.innerHTML};var H0=M('<li class="hot-key-map-item s-12"><span class="hot-key-map-item-description s-12"><!></span> <span class="hot-key-map-item-value s-12"> </span></li>'),U0=M('<div class="hot-key-map-group s-12"><h5 class="hot-key-map-group-title s-12"> </h5> <ul class="hot-key-map-group-items s-12"></ul></div>'),z0=M('<div class="hot-key-map s-12"></div>'),W0={hash:"s-12",code:'.hot-key-map.s-12{box-sizing:border-box;color:var(--black);overflow-x:hidden}.hot-key-map-group.s-12{border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px}.hot-key-map-group.s-12:last-child{border-bottom:none}.hot-key-map-group-title.s-12{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-12,.hot-key-map-item.s-12{margin:0;padding:12px 0;width:100%}.hot-key-map-group-items.s-12{box-sizing:border-box;list-style:none;margin:0;padding:0}.hot-key-map-item.s-12{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-12{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-12{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-12,.hot-key-map-item-value.s-12{font-feature-settings:"clig" off,"liga" off;font-size:13px;font-style:normal;font-weight:400;line-height:16px}'};function xm(t,e){B(e,!1),q(t,W0);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,m)=>{var p=z0();Ti(p,5,()=>r().groups,({title:f,items:$})=>f,(f,$)=>{let y=()=>n($).title,_=()=>n($).items;var S=U0(),C=T(S),I=T(C,!0);w(C);var N=L(C,2);Ti(N,5,_,({description:P,value:E})=>E,(P,E)=>{let k=()=>n(E).description,Q=()=>n(E).value;var H=H0(),z=T(H),Y=T(z);zd(Y,()=>gb(k())),w(z);var le=L(z,2),X=T(le,!0);w(le),w(H),D(()=>me(X,Q())),b(P,H)}),w(N),w(S),D(()=>me(I,y())),b(f,S)}),w(p),b(u,p)},$$slots:{default:!0}}),F(),o()}var _v=require("@vkontakte/videoplayer-shared/es2015");var Ja=require("@vkontakte/videoplayer-core/es2015");var hb=require("@vkontakte/videoplayer-shared/es2015");var K0=M('<div class="pillow s-1z"><!></div>'),q0={hash:"s-1z",code:".pillow.s-1z{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,q0);var i=K0(),o=T(i);ai(o,()=>{var r;return(r=e.children)!=null?r:ht}),w(i),D(()=>Ve(i,"data-testid",e.testId)),b(t,i)}var Jl=require("@vkontakte/videoplayer-shared/es2015");var Q0=Ce('<svg><!><path d="M5.52 5c.32 0 .51-.2.51-.54V3.5l.5-.51 1.46 1.74c.16.2.3.28.51.28a.5.5 0 0 0 .5-.5c0-.14-.07-.29-.22-.48L7.3 2.3 8.8.87c.16-.14.2-.25.2-.4A.47.47 0 0 0 8.52 0c-.18 0-.3.07-.45.22l-2 2.03h-.04V.54C6.03.2 5.84 0 5.52 0S5 .2 5 .54v3.92c0 .34.2.54.52.54M2.55 1.05 1.05 3.1h1.5zM3.5 3.1V.83C3.5.03 2.41-.3 1.94.35L.14 2.82A.75.75 0 0 0 .75 4h1.8v.55c0 .25.25.45.5.45a.45.45 0 0 0 .45-.45V4h.05a.45.45 0 0 0 0-.9z"></path></svg>');function Sm(t,e){let i=Ln(e,["$$slots","$$events","$$legacy","children"]);var o=Q0();no(o,()=>Ie({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:ht}),vi(),w(o),b(t,o)}var G0=Ce('<svg><!><path d="M5.51 5c.33 0 .52-.2.52-.54V3.5l.49-.51L7.99 4.7c.16.21.3.29.51.29a.49.49 0 0 0 .5-.5c0-.14-.07-.29-.22-.48L7.29 2.3 8.82.87C8.95.73 9 .62 9 .47A.47.47 0 0 0 8.52 0c-.17 0-.3.07-.44.22L6.06 2.25h-.03V.54C6.03.2 5.83 0 5.5 0S5 .2 5 .54v3.92c0 .34.19.54.51.54M2 0c-.35 0-.67.06-.95.17a1.5 1.5 0 0 0-.66.49c-.15.2-.23.44-.23.7 0 .43.21.76.62 1-.23.11-.41.26-.55.44-.15.2-.23.44-.23.71 0 .29.08.55.25.78.18.23.41.4.71.52.3.13.65.19 1.04.19s.73-.06 1.03-.19c.3-.12.54-.3.71-.52a1.26 1.26 0 0 0 .03-1.49 1.45 1.45 0 0 0-.55-.44c.4-.23.62-.57.62-1a1.14 1.14 0 0 0-.24-.7 1.44 1.44 0 0 0-.66-.49A2.4 2.4 0 0 0 2 0m-.57.96C1.56.86 1.75.8 2 .8s.43.06.56.16a.51.51 0 0 1 .2.43c0 .2-.06.34-.2.44A.87.87 0 0 1 2 2a.9.9 0 0 1-.57-.16.52.52 0 0 1-.2-.44c0-.18.06-.32.2-.43ZM1.08 3.5a.6.6 0 0 1 .24-.5c.16-.13.38-.2.68-.2s.52.07.68.2a.6.6 0 0 1 .24.5.63.63 0 0 1-.24.52c-.16.12-.38.19-.68.19s-.52-.07-.68-.19a.64.64 0 0 1-.24-.52"></path></svg>');function Tm(t,e){let i=Ln(e,["$$slots","$$events","$$legacy","children"]);var o=G0();no(o,()=>Ie({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:ht}),vi(),w(o),b(t,o)}var Y0=Ce('<svg><!><path d="M5.52 5h1.1C8.1 5 9 4.07 9 2.5S8.1 0 6.62 0h-1.1C5.19 0 5 .2 5 .54v3.92c0 .34.2.54.52.54m.51-.85V.85h.47C7.41.85 8 1.47 8 2.5c0 1.07-.58 1.65-1.5 1.65zM.52 5c.32 0 .51-.2.51-.54V2.92h1.94v1.54c0 .34.19.54.51.54S4 4.8 4 4.46V.54C4 .2 3.8 0 3.48 0s-.51.2-.51.54v1.53H1.03V.54C1.03.2.84 0 .52 0S0 .2 0 .54v3.99c0 .34.2.47.52.47"></path></svg>');function Cm(t,e){let i=Ln(e,["$$slots","$$events","$$legacy","children"]);var o=Y0();no(o,()=>Ie({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:ht}),vi(),w(o),b(t,o)}var j0=Ce('<svg><!><path d="M9.52 5h1.1C12.1 5 13 4.07 13 2.5S12.1 0 10.62 0h-1.1C9.19 0 9 .2 9 .54v3.92c0 .34.2.54.52.54m.51-.85V.85h.47c.91 0 1.5.62 1.5 1.65 0 1.07-.58 1.65-1.5 1.65zM4.52 5c.32 0 .51-.2.51-.54V2.92h1.94v1.54c0 .34.19.54.51.54S8 4.8 8 4.46V.54C8 .2 7.8 0 7.48 0s-.51.2-.51.54v1.53H5.03V.54C5.03.2 4.84 0 4.52 0S4 .2 4 .54v3.99c0 .34.2.47.52.47m-4 0c.32 0 .51-.2.51-.54V3h1.33c.27 0 .45-.15.45-.41 0-.25-.18-.4-.45-.4H1.03V.84h1.5C2.81.85 3 .7 3 .43S2.8 0 2.53 0H.52C.19 0 0 .2 0 .54v3.92C0 4.8.2 5 .52 5"></path></svg>');function Im(t,e){let i=Ln(e,["$$slots","$$events","$$legacy","children"]);var o=j0();no(o,()=>Ie({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:ht}),vi(),w(o),b(t,o)}var X0=Ce('<svg><!><path d="M11.52 5.75h1.1c1.48 0 2.38-.94 2.38-2.5s-.9-2.5-2.38-2.5h-1.1c-.33 0-.52.2-.52.54V5.2c0 .34.2.54.52.54Zm.51-.85V1.6h.47c.91 0 1.5.62 1.5 1.65 0 1.07-.58 1.65-1.5 1.65zm-5.51.85c.32 0 .51-.2.51-.54V3.67h1.94v1.54c0 .34.19.54.51.54s.52-.2.52-.54V1.3c0-.34-.2-.54-.52-.54s-.51.2-.51.54v1.53H7.03V1.3c0-.34-.19-.54-.51-.54S6 .95 6 1.29v3.99c0 .34.2.47.52.47m-3.18-.09a4 4 0 0 1-.84.09C1.04 5.75 0 4.88 0 3.3 0 1.73 1.04.75 2.5.75S5 1.73 5 3.3c0 .87-.27 1.46-.78 1.88l.2.3a.5.5 0 0 1-.84.55zm-.52-.78-.24-.35a.5.5 0 1 1 .84-.56l.24.37c.18-.26.29-.62.29-1.04 0-1.03-.64-1.65-1.45-1.65s-1.45.62-1.45 1.65.64 1.6 1.45 1.6c.08 0 .2 0 .32-.02"></path></svg>');function Em(t,e){let i=Ln(e,["$$slots","$$events","$$legacy","children"]);var o=X0();no(o,()=>Ie({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:ht}),vi(),w(o),b(t,o)}var rp=t=>{switch(t){case Jl.VideoQuality.Q_720P:return Cm;case Jl.VideoQuality.Q_1080P:return Im;case Jl.VideoQuality.Q_1440P:return Em;case Jl.VideoQuality.Q_2160P:return Sm;case Jl.VideoQuality.Q_4320P:return Tm}};var Z0=Ce('<path d="M12.72 2.21q1.8.07 2.41 1.96l.06.21.06.2.06.23.06.16.04.01.06-.02.14-.05.15-.07c1.42-.66 2.5-.53 3.4.44l.12.14.82 1.02c.73.96.7 2 0 3.1l-.13.19-.12.16-.14.2-.07.12-.04.05v.03l.1.06.13.07.15.09c1.39.7 1.96 1.64 1.74 2.93l-.04.19-.24 1.06c-.16.68-.28 1-.77 1.45-.48.43-1.02.61-1.73.67l-.22.02h-.2l-.25.02-.18.02.02.14v.1l.04.17c.32 1.53-.04 2.56-1.19 3.2l-.17.1-1.17.57q-1.64.73-3.02-.7l-.15-.17-.13-.15-.17-.19-.1-.1-.05-.04-.1.09-.1.1-.12.14c-.95 1.13-1.95 1.54-3.17 1.07l-.18-.08-1.05-.5-.31-.17a2 2 0 0 1-1-1.06 3 3 0 0 1-.16-1.88l.04-.23.04-.24.02-.17-.1-.02-.15-.01h-.18c-1.56-.04-2.48-.62-2.85-1.89l-.05-.18-.3-1.28q-.33-1.77 1.37-2.78l.2-.11.17-.1.22-.12.15-.1v-.02l-.06-.1-.08-.13-.1-.14c-.94-1.25-1.04-2.34-.28-3.4L4 6.32l.82-1.01c.8-.92 1.8-1.1 3.04-.64l.2.08.19.08.22.1.13.04.04-.01.03-.1.05-.13.04-.17c.36-1.43 1.09-2.24 2.4-2.35h1.58Zm-.05 1.8h-1.34l-.14.01c-.28.04-.47.2-.65.83l-.04.16-.06.2a6 6 0 0 1-.46 1.14 6 6 0 0 0-1.15.56 7 7 0 0 1-1.16-.35l-.35-.16q-.37-.15-.59-.17h-.08a.6.6 0 0 0-.4.19l-.08.07-.78.98-.1.12c-.18.26-.2.5.2 1.08l.22.31q.34.48.6 1.1-.2.59-.27 1.2-.51.45-1.01.73l-.34.18c-.62.34-.7.56-.65.88l.01.08.28 1.21.04.16c.1.3.27.47.97.5l.39.02q.57.03 1.22.2.35.53.78.97a6 6 0 0 1-.12 1.45c-.2.95-.01 1.1.38 1.3l1.13.54a1 1 0 0 0 .34.1l.06-.01q.26-.03.67-.49l.26-.3q.4-.42.95-.83l.3.02.3.01h.3l.3-.03q.56.4.95.84l.26.3c.32.36.53.48.73.48h.07l.18-.05.09-.04 1.13-.54.14-.08c.3-.17.42-.4.24-1.22a6 6 0 0 1-.12-1.45q.44-.45.78-.97a7 7 0 0 1 1.22-.2l.39-.01c.81-.04.91-.26 1-.66l.27-1.15c.09-.4.1-.64-.62-1.03l-.34-.18a6 6 0 0 1-1.01-.73 6 6 0 0 0-.27-1.2q.26-.62.6-1.1l.22-.31c.4-.58.38-.81.2-1.08l-.05-.06-.78-.97c-.14-.18-.26-.3-.46-.33h-.07q-.23 0-.67.17l-.35.16a6 6 0 0 1-1.16.35 6 6 0 0 0-1.15-.56 7 7 0 0 1-.45-1.1l-.11-.4c-.2-.68-.4-.81-.72-.83zM12 8.2a3.8 3.8 0 1 1 0 7.6 3.8 3.8 0 0 1 0-7.6m0 1.8a2 2 0 1 0 0 4 2 2 0 0 0 0-4"></path>');function Pm(t,e){Ze(t,{get testId(){return e.testId},children:(i,o)=>{var r=Z0();b(i,r)},$$slots:{default:!0}})}var J0=Ce('<path d="M13.25 2.83c.23.75.38 1.5 1.63 2.23 1.4.38 2.08 0 2.72-.42.66-.45.86-.32 1.12-.06l.65.64c.29.3.4.42 0 1.18-.38.7-.8 1.33-.42 2.73.72 1.25 1.47 1.47 2.22 1.62.78.16.83.39.83.76v.9c0 .42 0 .59-.83.84-.75.23-1.5.38-2.23 1.63-.38 1.4 0 2.08.42 2.72.45.66.32.86.06 1.12l-.64.65c-.3.29-.42.4-1.18 0-.7-.38-1.34-.8-2.73-.42-1.25.72-1.47 1.47-1.62 2.22-.16.78-.39.83-.76.83h-.9c-.42 0-.59 0-.84-.83-.23-.75-.38-1.5-1.63-2.23-1.4-.38-2.08 0-2.72.42-.66.45-.86.32-1.12.06l-.65-.64c-.29-.3-.4-.42 0-1.18.38-.7.8-1.34.42-2.73-.72-1.25-1.47-1.47-2.22-1.62-.78-.16-.83-.39-.83-.76v-.9c0-.42 0-.59.83-.84.75-.23 1.5-.38 2.22-1.63.38-1.4 0-2.08-.42-2.72-.44-.66-.31-.86-.05-1.12l.64-.65c.3-.29.42-.4 1.18 0 .7.38 1.33.8 2.73.42 1.25-.72 1.47-1.47 1.62-2.22.16-.78.39-.83.76-.83h.9c.42 0 .59 0 .84.83M12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5"></path>');function Am(t,e){Ze(t,{get testId(){return e.testId},children:(i,o)=>{var r=J0();b(i,r)},$$slots:{default:!0}})}var ex=M('<div aria-hidden="true"><!> <!></div>'),tx={hash:"s-1w",code:".icon.s-1w{display:flex;height:24px;position:relative;width:24px}.icon.s-1w .pillow{position:absolute;right:-9px;top:1px}.icon.triple.s-1w .pillow{right:-13px}.icon.s-1w svg[data-testid=settings-icon--labeled] ._full{opacity:0;visibility:hidden}"};function pc(t,e){B(e,!0),q(t,tx);let i=g(e,"isMobile",3,!1),o=g(e,"currentQuality",3,void 0),r=v(()=>o()?(0,hb.getVideoQualityLabel)(o()):""),a=v(()=>rp(o())),l=v(()=>n(r).length>2);var d=Le(),s=de(d);{var u=p=>{Pm(p,{testId:"settings-mobile-icon"})},m=p=>{var f=ex();let $;var y=T(f);{var _=I=>{let N=v(()=>`${n(r)}-pill-icon`);wm(I,{get testId(){return n(N)},children:(P,E)=>{var k=Le(),Q=de(k);Bi(Q,()=>n(a),(H,z)=>{z(H,{})}),b(P,k)},$$slots:{default:!0}})};R(y,I=>{n(a)&&I(_)})}var S=L(y,2);let C=v(()=>n(a)?"settings-icon--labeled":"settings-icon");Am(S,{get testId(){return n(C)}}),w(f),D(I=>$=se(f,1,"icon s-1w",null,$,I),[()=>({triple:n(l)})]),b(p,f)};R(s,p=>{i()?p(u):p(m,!1)})}b(t,d),F()}var ix=M('<span class="settings-icon-wrapper s-1y"><!></span>'),ox={hash:"s-1y",code:".settings-icon-wrapper.s-1y{position:relative;width:24px}"};function ed(t,e){B(e,!0),q(t,ox);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$,m=d.actions.internal.openSettingsMenu,p=d.actions.internal.closeSettingsMenu,f=d.ui.isMobile,$=d.ui.t,y=K(void 0);Oe(()=>{n(y)&&Pt(()=>{e.ref$.set(n(y))})});let _=$("aria_label_settings");function S(I){return gt(this,null,function*(){let N=ra(I);r()?p():m(N,yo)})}let C=v(()=>r()?"opened":"");Qt(t,{get className(){return n(C)},testId:"settings-btn",click:S,get ariaLabel(){return _},get ariaExpanded(){return r()},get ref(){return n(y)},set ref(I){O(y,I,!0)},children:(I,N)=>{var P=ix(),E=T(P);pc(E,{get isMobile(){return a()},get currentQuality(){return l()}}),w(P),b(I,P)},$$slots:{default:!0}}),F(),o()}var nx=Ce('<path d="M6.56 4.44a1.5 1.5 0 1 0-2.12 2.12l3.09 3.09a11 11 0 0 0-2.39 3.08 11 11 0 0 0-1.01 4.14C4 18.43 4 20.37 4 22.83v2.34c0 2.46 0 4.4.13 5.96.13 1.6.4 2.93 1.01 4.14a10.5 10.5 0 0 0 4.6 4.59c1.2.61 2.53.88 4.13 1.01 1.56.13 3.5.13 5.96.13h8.34c2.46 0 4.4 0 5.96-.13 1.44-.12 2.66-.35 3.78-.84l3.53 3.53a1.5 1.5 0 0 0 2.12-2.12zM13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22"></path><path d="M34.5 23.5h-4.64l12.55 12.55q.23-.37.45-.78a11 11 0 0 0 1.01-4.14c.13-1.56.13-3.5.13-5.96v-2.34c0-2.46 0-4.4-.13-5.96a11 11 0 0 0-1.01-4.14 10.5 10.5 0 0 0-4.6-4.59 11 11 0 0 0-4.13-1.01C32.57 7 30.63 7 28.17 7h-8.34c-2.46 0-4.4 0-5.96.13l-.35.03L26.86 20.5h7.64a1.5 1.5 0 0 1 0 3"></path>',1),rx=Ce("<path></path>");function la(t,e){B(e,!0);let i=v(()=>`subtitles-icon-${e.type==="off"?"off":e.type==="outline"?"outline":""}`),o=v(()=>hn(e.size));Ze(t,{get width(){return"48"},get height(){return"48"},get style(){return n(o)},get testId(){return n(i)},get shadow(){return e.shadow},children:(r,a)=>{var l=Le(),d=de(l);{var s=m=>{var p=nx();vi(),b(m,p)},u=m=>{var p=rx();D(()=>Ve(p,"d",`M16.92 8h14.16q2.82-.02 4.66.1c1.28.1 2.4.32 3.46.86a8.8 8.8 90 013.84 3.84c.54 1.04.76 2.18.86 3.46q.12 1.84.1 4.66v6.16q.02 2.82-.1 4.66a10 10 90 01-.86 3.46 8.8 8.8 90 01-3.84 3.84 10 10 90 01-3.46.86q-1.84.12-4.66.1H16.92q-2.82.02-4.66-.1a10 10 90 01-3.46-.86 8.8 8.8 90 01-3.84-3.84 10 10 90 01-.86-3.46Q4 29.9 4 27.08v-6.16q-.02-2.82.1-4.66c.1-1.28.32-2.4.86-3.46A8.8 8.8 90 018.8 8.96a10 10 90 013.46-.86Q14.1 8 16.92 8
|
|
58
|
+
Audio: ${(Me=n(s).audioCodec||"")!=null?Me:""} ${n(s).audioLanguage?`(${n(s).audioLanguage})`:""}`)}),b($e,be)};R(ne,$e=>{(n(s).videoCodec||n(s).audioCodec)&&$e(_e)})}var xe=L(ne,2);{var J=$e=>{var be=r0(),ee=L(T(be),2),nt=T(ee,!0);w(ee),w(be),D(()=>me(nt,n(s).viewport)),b($e,be)};R(xe,$e=>{n(s).viewport&&$e(J)})}var Ne=L(xe,2);{var pe=$e=>{var be=s0(),ee=L(T(be),2),nt=T(ee,!0);w(ee),w(be),D(()=>me(nt,n(s).videoSize)),b($e,be)};R(Ne,$e=>{n(s).videoSize&&$e(pe)})}var k=L(Ne,2);{var We=$e=>{var be=a0(),ee=L(T(be),2),nt=T(ee,!0);w(ee),w(be),D(()=>me(nt,n(s).cdn)),b($e,be)};R(k,$e=>{n(s).cdn&&$e(We)})}var Te=L(k,2);{var j=$e=>{var be=l0(),ee=L(T(be),2),nt=T(ee);w(ee),w(be),D(()=>{var fe;return me(nt,`${(fe=n(s).volume)!=null?fe:""} %`)}),b($e,be)};R(Te,$e=>{n(s).volume&&$e(j)})}var ie=L(Te,2);{var De=$e=>{var be=d0(),ee=L(T(be),2),nt=T(ee);w(ee),w(be),D(fe=>me(nt,`${fe!=null?fe:""} s`),[()=>n(s).position.toFixed(2)]),b($e,be)};R(ie,$e=>{n(s).position&&$e(De)})}var Be=L(ie,2);{var ot=$e=>{var be=c0(),ee=L(T(be),2),nt=T(ee);w(ee),w(be),D(fe=>me(nt,`${fe!=null?fe:""} s`),[()=>n(s).buffer.toFixed(2)]),b($e,be)};R(Be,$e=>{n(s).buffer&&$e(ot)})}var U=L(Be,2);{var Ae=$e=>{var be=u0(),ee=L(T(be),2),nt=T(ee);w(ee),w(be),D(fe=>me(nt,`${fe!=null?fe:""} s`),[()=>n(s).liveLatency.toFixed(2)]),b($e,be)};R(U,$e=>{n(s).liveLatency&&$e(Ae)})}var Pe=L(U,2);{var Ue=$e=>{var be=p0(),ee=L(T(be),2),nt=T(ee,!0);w(ee),w(be),D(fe=>me(nt,fe),[()=>[{value:n(s).currentVideoSegmentLength,title:"Video:"},{value:n(s).currentAudioSegmentLength,title:"Audio:"}].filter(({value:fe})=>fe).map(({value:fe,title:Me})=>`${Me} ${((fe!=null?fe:0)/1e3).toFixed(2)} s`).join(" & ")]),b($e,be)};R(Pe,$e=>{(n(s).currentVideoSegmentLength||n(s).currentAudioSegmentLength)&&$e(Ue)})}var Je=L(Pe,2),ye=L(T(Je),2),ke=T(ye);w(ye),w(Je);var Fe=L(Je,2);{var Ft=$e=>{var be=f0(),ee=L(T(be),2);dc(ee,{get values(){return n(C)}});var nt=L(ee,2),fe=T(nt);w(nt),w(be),D(Me=>me(fe,`${Me!=null?Me:""} Kbps`),[()=>n(s).speed.toFixed(2)]),b($e,be)};R(Fe,$e=>{n(s).speed&&$e(Ft)})}var mt=L(Fe,2);{var Ht=$e=>{var be=m0(),ee=L(T(be),2);dc(ee,{get values(){return n(I)}});var nt=L(ee,2),fe=T(nt);w(nt),w(be),D(Me=>me(fe,`${Me!=null?Me:""} Kbps`),[()=>n(s).bitrate.toFixed(2)]),b($e,be)};R(mt,$e=>{n(s).bitrate&&$e(Ht)})}var lt=L(mt,2),Ct=L(T(lt),2);dc(Ct,{get values(){return n(S)}});var oi=L(Ct,2),Ot=T(oi,!0);w(oi),w(lt),w(Q),w(P),D($e=>{var be,ee;E=se(P,1,"container s-o",null,E,$e),Ve(P,"aria-label",N),me(Y,n(s).version),me(ke,`${(be=n(p))!=null?be:""} / ${(ee=n(m))!=null?ee:""} frames`),me(Ot,n(f))},[()=>({"container-mobile":r()})]),b(t,P),F(),o()}it(["click"]);var fb=require("@vkontakte/videoplayer-shared/es2015"),h0=(t,e)=>{t.stopPropagation(),e()()},_0=M('<div class="close s-1c"></div>'),b0={hash:"s-1c",code:'.close.s-1c{cursor:pointer;height:16px;opacity:.8;position:relative;transition:opacity .2s;width:16px}.close.s-1c:hover{opacity:1}.close.s-1c:after,.close.s-1c:before{background-color:var(--white);content:" ";height:16px;left:8px;position:absolute;width:2px}.close.s-1c:before{transform:rotate(45deg)}.close.s-1c:after{transform:rotate(-45deg)}'};function Ls(t,e){B(e,!0),q(t,b0);let i=g(e,"onClick",3,fb.noop);var o=_0();o.__click=[h0,i],b(t,o),F()}it(["click"]);var mb=require("@vkontakte/videoplayer-shared/es2015");var hn=t=>`width:${t}px;height:${t}px;`;var $0=Ce('<path d="m14.4 8.76 24.02 13.85a1.6 1.6 0 0 1 0 2.78L14.4 39.24a1.6 1.6 0 0 1-2.4-1.39v-27.7a1.6 1.6 0 0 1 2.4-1.39"></path>');function Mn(t,e){B(e,!0);let i=v(()=>hn(e.size));Ze(t,{get width(){return"48"},get height(){return"48"},get fill(){return e.fill},get style(){return n(i)},testId:"play-icon",get shadow(){return e.shadow},children:(o,r)=>{var a=$0();b(o,a)},$$slots:{default:!0}}),F()}var y0=M('<div class="timer s-1e"><canvas class="timer-canvas s-1e" width="100" height="100"></canvas> <!></div>'),x0={hash:"s-1e",code:".timer.s-1e{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-1e:hover{background:rgba(31,31,31,.85)}.timer-canvas.s-1e{height:50px;position:absolute;width:50px}"};function uc(t,e){B(e,!0),q(t,x0);let i=g(e,"isRunning",3,!0),o=g(e,"onTimerEnded",3,mb.noop),r=5e3,a=K(void 0),l,d,s=0,u;Oe(()=>{i()&&Pt(()=>{d=Date.now(),s=requestAnimationFrame(p)})});let m=()=>{s&&(cancelAnimationFrame(s),s=0)},p=()=>{m(),i()&&(u=(Date.now()-d)/r,u<1?(l==null||l.clearRect(0,0,100,100),l==null||l.beginPath(),l==null||l.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*u),l==null||l.stroke(),s=requestAnimationFrame(p)):o()())};Rt(()=>{l=n(a).getContext("2d"),l&&(l.lineWidth=6,l.lineCap="round",l.strokeStyle="#fff")}),gn(()=>{m()});var f=y0(),$=T(f);Xe($,_=>O(a,_),()=>n(a));var y=L($,2);Mn(y,{get size(){return"24"}}),w(f),b(t,f),F()}var w0=(t,e,i)=>{e(!1),i()},S0=M('<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),T0={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){B(e,!0),q(t,T0);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,m=l.actions.internal.nextVideoAnnouncementShow,p=l.actions.internal.nextVideoAnnouncementClick,f=l.actions.internal.nextVideoAnnouncementAuto,$=l.actions.internal.nextVideoAnnouncementCancel,y=()=>{r()&&(u(!1),f())},_=()=>{e.clickCloseIcon(),$()};Rt(()=>{e.isHide||m(),e.isHide&&r()&&(u(!1),f())});var S=Le(),C=de(S);{var I=N=>{var P=S0(),E=L(de(P),2),A=T(E),Q=T(A),H=T(Q,!0);w(Q);var z=L(Q,2);Ls(z,{onClick:_}),w(A);var Y=L(A,2);Y.__click=[w0,u,p];var le=T(Y),X=T(le),re=T(X);let Z;var we=L(re,2);{var ue=J=>{let Ne=v(()=>a()&&r());uc(J,{get isRunning(){return n(Ne)},onTimerEnded:y})};R(we,J=>{r()&&J(ue)})}w(X),w(le);var ne=L(le,2),_e=T(ne),xe=T(_e,!0);w(_e),w(ne),w(Y),w(E),D((J,Ne)=>{me(H,J),Qe(X,`background-image: url('${e.thumb}')`),Z=se(re,1,"thumb-overlay s-10",null,Z,Ne),me(xe,e.title)},[()=>G("end_screen_next_video"),()=>({withOpacity:r()})]),b(N,P)};R(C,N=>{e.isHide||N(I)})}b(t,S),F(),o()}it(["click"]);var aa=require("@vkontakte/videoplayer-core/es2015"),vb=require("@vkontakte/videoplayer-shared/es2015"),Vn=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),ip=(t,e,i)=>{let o=hm(e,i);e<1&&t.actions.internal.setVolume(o)},op=(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 np(){var t,e,i;return(i=(e=(t=document.activeElement)==null?void 0:t.shadowRoot)==null?void 0:e.activeElement)!=null?i:null}var I0=(t,e)=>{e(t)},E0=M('<div class="keyboard-controls s-11" tabindex="-1" role="region"><!></div>'),P0={hash:"s-11",code:".keyboard-controls.s-11{bottom:0;left:0;position:absolute;right:0;top:0}"};function bm(t,e){var ee,nt;B(e,!0),q(t,P0);let[i,o]=Re(),r=()=>x(we,"$disabledControls$",i),a=()=>x(ot,"$isInteractiveTime$",i),l=()=>x(U,"$showInteractiveTimeIndicatorTooltip$",i),d=()=>x(z,"$playbackState$",i),s=()=>x(We,"$isEnded$",i),u=()=>x(pe,"$doubleForwardAvailable$",i),m=()=>x(Ne,"$doubleForwardOn$",i),p=()=>x(Te,"$overlayContainer$",i),f=()=>x(le,"$adPlaybackState",i),$=()=>x(X,"$positionExact$",i),y=()=>x(re,"$duration$",i),_=()=>x(De,"$isAudioAvailable$",i),S=()=>x(Z,"$volume$",i),C=()=>x(Y,"$canChangePlaybackSpeed$",i),I=()=>x(ue,"$muted$",i),N=()=>x(ne,"$currentSubtitle$",i),P=g(e,"nextButtonActive",3,!1),E=g(e,"prevButtonActive",3,!1),A=ve(),Q=Nt(),H=A.getLogger().createComponentLog("KeyboardControls component"),z=A.state.playbackState$,Y=A.state.canChangePlaybackSpeed$,le=A.ads.playbackState,X=A.state.positionExact$,re=A.state.duration$,Z=A.state.volume$,we=A.ui.controls.disabledControls$,ue=A.state.muted$,ne=A.state.currentSubtitle$,_e=A.ui.contextMenu.openedByHotKey$,xe=A.ui.contextMenu.lastActiveElem$,J=A.ui.contextMenu.visible$,Ne=A.ui.doubleForwardOn$,pe=A.ui.doubleForwardAvailable$,k=A.ui.contextMenu.position$,We=A.state.isEnded$,Te=A.ui.overlayContainer$,j=(ee=A.callbacks)==null?void 0:ee.onAudioDoesNotExistHint,ie=(nt=A.callbacks)==null?void 0:nt.onAudioDisabledHint,De=A.state.isAudioAvailable$,Be=A.state.isAudioDisabled,ot=A.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:U}=Co(),Ae=0,Pe=!0,Ue=K(void 0),Je=fe=>(fe!==Pe&&(Pe=fe,Ae=0),Ae+=1,(Q.controls.seekStepKeyboard+Q.controls.seekStepKeyboard*Ae)/1e3),ye=!0,ke=({type:fe,repeat:Me,disableDoubleForward:xt})=>{let Lt=()=>{if(!r().has("PLAY_BUTTON"))if(a()&&l()&&U.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{A.actions.internal.togglePlay();let ce="PLAY";d()===aa.PlaybackState.PAUSED?ce="PAUSE":s()&&(ce="REPLAY"),e.showHotKeyHelpers({type:ce})}},pt=fe==="down";if(!u()||xt){pt&&Lt(),ye=!0;return}if(pt)ye=!1;else if(ye)return;if(pt){!Me&&e.startDoubleForwardActivationTimer();return}m()||Lt(),e.stopDoubleForward(),ye=!0},Fe=fe=>{let Me=ub(p());k.set(Me),xe.set(fe.target),_e.set(!0),J.set(!0)},Ft=(fe,Me=!1)=>{var fi,bi;let xt=fe.target,Lt=(fi=xt==null?void 0:xt.getAttribute("role"))==null?void 0:fi.includes("menuitem"),pt=xt.classList.contains("btn"),ce=fe.code;if(pt&&ce==="Space")return!1;let ze=p_.has(ce);if(Lt&&ze)return!1;let Ye=!u_.has(ce);if(fe.ctrlKey&&Ye||fe.altKey&&Ye||fe.metaKey)return!1;let dt=Lt&&ce==="Escape";f_.has(ce)||dt||e.hideContextMenu();let Ut=d()===aa.PlaybackState.PLAYING||d()===aa.PlaybackState.PAUSED,zt=e.isAds&&(f()==="paused"||f()==="playing"),ri=!zt&&!r().has("TIMELINE"),wi=fe.shiftKey&&["Digit1","Numpad1"].includes(ce);if(!wi&&!(Ut||zt))return!1;H({message:`key down, code: ${ce}, isExternal = ${Me}`});let Zi=!1,Dt=()=>{Zi=!0,Me||fe.preventDefault()};if(wi)return Fe(fe),Dt(),!0;switch(ce){case"KeyJ":case"ArrowLeft":{if(!ri)break;if(fe.ctrlKey||fe.altKey){let bt=A.actions.internal.getPrevEpisode();A.actions.internal.seekToPrevEpisode(bt),bt&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:bt.text}),Dt()}else{let bt=fe.shiftKey?Je(!1):Q.controls.seekStepKeyboard/1e3,Jt=Math.max($()-bt,0);$()>0&&(A.actions.internal.seekTime(Jt,Vn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:bt.toString()}),Dt())}break}case"KeyL":case"ArrowRight":{if(!ri)break;if(fe.ctrlKey||fe.altKey){let bt=A.actions.internal.getNextEpisode();A.actions.internal.seekToNextEpisode(bt),bt&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:bt.text}),Dt()}else{let bt=fe.shiftKey?Je(!0):Q.controls.seekStepKeyboard/1e3,Jt=Math.min($()+bt,y());Math.round($())<Math.round(y())&&(A.actions.internal.seekTime(Jt,Vn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:bt.toString()}),Dt())}break}case"ArrowUp":{if(sa({isAudioDisabled:Be,audioDisabledHintCallback:ie,isAudioAvailable:_(),audioIsNotExistHintCallback:j,isAds:e.isAds})){let bt=S(),Jt=Q.controls.volumeStepKeyboard,Ci=bt<=1;if(ip(A,bt,Jt),Ci){let Ji=Math.round(hm(bt,Jt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Ji}})}}Dt();break}case"ArrowDown":{if(sa({isAudioDisabled:Be,audioDisabledHintCallback:ie,isAudioAvailable:_(),audioIsNotExistHintCallback:j,isAds:e.isAds})){let bt=S(),Jt=Q.controls.volumeStepKeyboard,Ci=bt>=0;if(op(A,bt,Jt),Ci){let Ji=Math.round(_m(bt,Jt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Ji}})}}Dt();break}case"Comma":{if(fe.shiftKey){if(!m()&&C()){let bt=A.actions.internal.decrementPlaybackRate();e.showHotKeyHelpers({type:"RATE_DOWN",text:bt==null?void 0:bt.displayValue}),Dt()}}else{if(zt||d()!==aa.PlaybackState.PAUSED)break;let bt=Math.max($()-Q.controls.seekStepFrame/1e3,0);$()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),A.actions.internal.clearDelayedBufferingCheckTimeout(),A.actions.internal.seekTime(bt,Vn.SeekAction.DOUBLE_TAP),Dt())}break}case"Period":{if(fe.shiftKey){if(!m()&&C()){let bt=A.actions.internal.incrementPlaybackRate();e.showHotKeyHelpers({type:"RATE_UP",text:bt==null?void 0:bt.displayValue}),Dt()}}else{if(zt||d()!==aa.PlaybackState.PAUSED)break;let bt=Math.min($()+Q.controls.seekStepFrame/1e3,y());$()<y()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),A.actions.internal.clearDelayedBufferingCheckTimeout(),A.actions.internal.seekTime(bt,Vn.SeekAction.DOUBLE_TAP),Dt())}break}case"KeyK":case"Space":ke({type:"down",repeat:fe.repeat,disableDoubleForward:"KeyK"===ce}),Dt();break;case"KeyM":{sa({isAudioDisabled:Be,audioDisabledHintCallback:ie,isAudioAvailable:_(),audioIsNotExistHintCallback:j,isAds:e.isAds})&&(e.showHotKeyHelpers({type:I()?"VOLUME":"MUTE"}),A.actions.internal.toggleMuted()),Dt();break}case"KeyF":e.toggleFullscreen(),Dt();break;case"KeyC":A.actions.internal.toggleSubtitle(),N().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(bi=N())==null?void 0:bi.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),Dt();break;case"KeyI":A.actions.internal.togglePictureInPicture(),Dt();break;case"Digit1":case"Numpad1":e.showHotKeyHelpers(),A.actions.internal.seekToPercent(.1,Vn.SeekAction.DOUBLE_TAP),Dt();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),A.actions.internal.seekToPercent(.2,Vn.SeekAction.DOUBLE_TAP),Dt();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),A.actions.internal.seekToPercent(.3,Vn.SeekAction.DOUBLE_TAP),Dt();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),A.actions.internal.seekToPercent(.4,Vn.SeekAction.DOUBLE_TAP),Dt();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),A.actions.internal.seekToPercent(.5,Vn.SeekAction.DOUBLE_TAP),Dt();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),A.actions.internal.seekToPercent(.6,Vn.SeekAction.DOUBLE_TAP),Dt();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),A.actions.internal.seekToPercent(.7,Vn.SeekAction.DOUBLE_TAP),Dt();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),A.actions.internal.seekToPercent(.8,Vn.SeekAction.DOUBLE_TAP),Dt();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),A.actions.internal.seekToPercent(.9,Vn.SeekAction.DOUBLE_TAP),Dt();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),A.actions.internal.seekToPercent(0,Vn.SeekAction.DOUBLE_TAP),Dt();break;case"Slash":{fe.shiftKey&&Q.features.hotKeyMapModal&&(e.showKeyMap(),Dt());break}case"KeyN":fe.shiftKey&&P()&&(A.actions.internal.nextVideoClick(),Dt());break;case"KeyP":fe.shiftKey&&E()&&(A.actions.internal.prevVideoClick(),Dt());break;case"ShiftLeft":case"ShiftRight":Dt();break;case"Tab":case"Escape":case"Enter":break;default:(0,vb.checkNever)(ce);break}return Zi},mt=fe=>{let Me=fe.code;if(fe.ctrlKey||fe.altKey||fe.metaKey)return;let xt=d()===aa.PlaybackState.PLAYING||d()===aa.PlaybackState.PAUSED,Lt=e.isAds&&(f()==="paused"||f()==="playing");if(xt||Lt)switch(Me){case"ShiftLeft":case"ShiftRight":Ae=0;break;case"Space":ke({type:"up"});break}},Ht=G("aria_label_video_player"),lt=()=>{var fe;return(fe=n(Ue))==null?void 0:fe.focus()},Ct=()=>n(Ue)===np(),oi=fe=>fe.type==="keydown"?Ft(fe,!0):(fe.type==="keyup"&&mt(fe),!1);var Ot=E0();Ot.__keyup=mt,Ot.__keydown=[I0,Ft];var $e=T(Ot);ai($e,()=>{var fe;return(fe=e.children)!=null?fe:ht}),w(Ot),Xe(Ot,fe=>O(Ue,fe),()=>n(Ue)),D(()=>Ve(Ot,"aria-label",Ht)),b(t,Ot);var be=F({focus:lt,isFocused:Ct,handleExternalKeyboardEvent:oi});return o(),be}it(["keyup","keydown"]);var k0=M('<div class="container s-u"><div class="dot s-u"></div> <div class="dot s-u"></div> <div class="dot s-u"></div></div>'),A0={hash:"s-u",code:".container.s-u{display:flex;left:50%;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%)}.dot.s-u:first-child{animation-delay:0s}.dot.s-u:nth-child(2){animation-delay:.18s}.dot.s-u:nth-child(3){animation-delay:.36s}@keyframes s-u-dot_animation{0%{opacity:.2}30%{opacity:1}to{opacity:.2}}.dot.s-u{animation-duration:.75s;animation-iteration-count:infinite;animation-name:s-u-dot_animation;background:var(--btn-color);border-radius:4px;height:8px;width:8px}.dot.s-u+.dot:where(.s-u){margin-left:4px}"};function Ka(t,e){q(t,A0);let i=g(e,"style",3,"");var o=k0();D(()=>Qe(o,i())),b(t,o)}var L0=Ce('<path d="M5.26 5.26a.9.9 0 0 1 1.28 0L12 10.73l5.46-5.47a.9.9 0 0 1 1.28 1.28L13.27 12l5.47 5.46a.9.9 0 1 1-1.28 1.28L12 13.27l-5.46 5.47a.9.9 0 1 1-1.28-1.28L10.73 12 5.26 6.54a.9.9 0 0 1 0-1.28Z"></path>');function $m(t,e){Ze(t,{get fill(){return e.fill},children:(i,o)=>{var r=L0();b(i,r)},$$slots:{default:!0}})}var qa=require("@vkontakte/videoplayer-shared/es2015"),M0=t=>{t.stopPropagation()},V0=M("<button><!></button>"),R0={hash:"s-1p",code:"button.btn.s-1p{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-1p{width:100%}button.btn--live.s-1p{padding:10px 4px}button.btn-jc-l.s-1p{justify-content:left}button.btn-m.s-1p{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-1p,button.btn-m--play.s-1p{align-items:center;display:flex;justify-content:center}button.btn-m--play.s-1p{height:var(--big-play-size);padding:16px;position:relative;width:var(--big-play-size)}button.btn-m--next.s-1p,button.btn-m--prev.s-1p{height:50px;position:absolute;width:50px}button.btn-m--prev.s-1p{right:calc(100% + 35px)}button.btn-m--next.s-1p{left:calc(100% + 35px)}button.btn.s-1p:disabled{cursor:default;pointer-events:none}button.btn.s-1p:not(.btn-full-opacity):disabled{opacity:.4}button.btn.s-1p:not(:disabled):hover{opacity:.8}button.pr-0.s-1p{padding-right:0}button.pl-0.s-1p{padding-left:0}"};function Qt(t,e){B(e,!0),q(t,R0);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),m=g(e,"ariaExpanded",3,void 0),p=g(e,"tabIndex",3,0),f=g(e,"click",3,qa.noop),$=g(e,"focus",3,qa.noop),y=g(e,"blur",3,qa.noop),_=v(()=>f()===qa.noop?null:P=>{P.stopPropagation(),f()(P)}),S=v(()=>$()===qa.noop?null:P=>{P.preventDefault(),$()()}),C=v(()=>y()===qa.noop?null:P=>{P.preventDefault(),y()()});var I=V0();I.__pointerdown=[M0],I.__click=function(...P){var E;(E=n(_))==null||E.apply(this,P)};var N=T(I);ai(N,()=>{var P;return(P=e.children)!=null?P:ht}),w(I),Xe(I,P=>s(P),()=>s()),D(()=>{var P,E,A,Q,H,z,Y,le;se(I,1,`btn ${(P=i())!=null?P:""}`,"s-1p"),Qe(I,o()||null),I.disabled=(E=r())!=null?E:null,Ve(I,"aria-hidden",(A=l())!=null?A:null),Ve(I,"aria-label",(Q=d())!=null?Q:null),Ve(I,"aria-keyshortcuts",(H=u())!=null?H:null),Ve(I,"aria-expanded",(z=m())!=null?z:null),Ve(I,"data-testid",(Y=a())!=null?Y:null),Ve(I,"tabindex",p()),Ve(I,"role",e.role),Ve(I,"aria-checked",(le=e.areaChecked)!=null?le:null)}),_t("focus",I,function(...P){var E;(E=n(S))==null||E.apply(this,P)}),_t("blur",I,function(...P){var E;(E=n(C))==null||E.apply(this,P)}),b(t,I),F()}it(["pointerdown","click"]);var N0=(t,e)=>{t.key==="Escape"&&e.onClose(),(t.key==="ArrowUp"||t.key==="ArrowDown")&&t.stopPropagation()},O0=M('<div class="modal-header s-1k"><h3 class="modal-title s-1k"> </h3> <!></div>'),D0=M('<div class="modal-overlay s-1k"><div class="modal-container s-1k" role="dialog" aria-modal="true"><!> <div class="modal-scroll s-1k" tabindex="0" role="scrollbar"><div class="modal-main s-1k"><!></div></div></div></div>'),B0={hash:"s-1k",code:'.modal-overlay.s-1k{align-items:center;background:transparent;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0;z-index:var(--modal-z-index)}.modal-container.s-1k{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-1k{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-1k{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-1k{height:100%;margin:8px 4px 8px 0;overflow-x:hidden;overflow-y:auto}.modal-scroll.s-1k::-webkit-scrollbar{width:8px}.modal-scroll.s-1k::-webkit-scrollbar-track{background-color:transparent;border-radius:4px;box-shadow:none;margin-right:2px}.modal-scroll.s-1k::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:#666;border:1px solid transparent;border-radius:5px;min-height:40px}.modal-scroll.s-1k::-webkit-scrollbar-thumb:hover{background-color:#777}.modal-main.s-1k{margin:-8px -4px 0 0}'};function ym(t,e){B(e,!0),q(t,B0);let i=g(e,"showHeader",3,!0),o=g(e,"showCloseCross",3,!0),r=K(void 0),a=K(void 0),{webApi:{focusManager:l}}=ve(),d=G("hotkey_map_modal_close_btn_text");Rt(()=>{var _;return(_=n(r))==null||_.focus(),n(a)&&l&&(l.setContainerForFocusLock(n(a)),l.activateLock()),()=>l==null?void 0:l.deactivateLock()});var s=D0();s.__keydown=[N0,e];var u=T(s),m=T(u);{var p=_=>{var S=O0(),C=T(S),I=T(C,!0);w(C);var N=L(C,2);{var P=E=>{Qt(E,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",get ariaLabel(){return d},children:(A,Q)=>{$m(A,{fill:"currentColor"})},$$slots:{default:!0}})};R(N,E=>{o()&&E(P)})}w(S),D(()=>me(I,e.title)),b(_,S)};R(m,_=>{i()&&_(p)})}var f=L(m,2),$=T(f),y=T($);ai(y,()=>{var _;return(_=e.children)!=null?_:ht}),w($),w(f),Xe(f,_=>O(r,_),()=>n(r)),w(u),Xe(u,_=>O(a,_),()=>n(a)),w(s),b(t,s),F()}it(["keydown"]);var F0=new Set(["BR"]),gb=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;F0.has(l)||(r=a.parentElement)==null||r.removeChild(a)}return e.innerHTML};var H0=M('<li class="hot-key-map-item s-14"><span class="hot-key-map-item-description s-14"><!></span> <span class="hot-key-map-item-value s-14"> </span></li>'),U0=M('<div class="hot-key-map-group s-14"><h5 class="hot-key-map-group-title s-14"> </h5> <ul class="hot-key-map-group-items s-14"></ul></div>'),z0=M('<div class="hot-key-map s-14"></div>'),W0={hash:"s-14",code:'.hot-key-map.s-14{box-sizing:border-box;color:var(--black);overflow-x:hidden}.hot-key-map-group.s-14{border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px}.hot-key-map-group.s-14:last-child{border-bottom:none}.hot-key-map-group-title.s-14{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-14,.hot-key-map-item.s-14{margin:0;padding:12px 0;width:100%}.hot-key-map-group-items.s-14{box-sizing:border-box;list-style:none;margin:0;padding:0}.hot-key-map-item.s-14{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-14{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-14{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-14,.hot-key-map-item-value.s-14{font-feature-settings:"clig" off,"liga" off;font-size:13px;font-style:normal;font-weight:400;line-height:16px}'};function xm(t,e){B(e,!1),q(t,W0);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,m)=>{var p=z0();Ti(p,5,()=>r().groups,({title:f,items:$})=>f,(f,$)=>{let y=()=>n($).title,_=()=>n($).items;var S=U0(),C=T(S),I=T(C,!0);w(C);var N=L(C,2);Ti(N,5,_,({description:P,value:E})=>E,(P,E)=>{let A=()=>n(E).description,Q=()=>n(E).value;var H=H0(),z=T(H),Y=T(z);zd(Y,()=>gb(A())),w(z);var le=L(z,2),X=T(le,!0);w(le),w(H),D(()=>me(X,Q())),b(P,H)}),w(N),w(S),D(()=>me(I,y())),b(f,S)}),w(p),b(u,p)},$$slots:{default:!0}}),F(),o()}var _v=require("@vkontakte/videoplayer-shared/es2015");var Ja=require("@vkontakte/videoplayer-core/es2015");var hb=require("@vkontakte/videoplayer-shared/es2015");var K0=M('<div class="pillow s-26"><!></div>'),q0={hash:"s-26",code:".pillow.s-26{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,q0);var i=K0(),o=T(i);ai(o,()=>{var r;return(r=e.children)!=null?r:ht}),w(i),D(()=>Ve(i,"data-testid",e.testId)),b(t,i)}var Jl=require("@vkontakte/videoplayer-shared/es2015");var Q0=Ce('<svg><!><path d="M5.52 5c.32 0 .51-.2.51-.54V3.5l.5-.51 1.46 1.74c.16.2.3.28.51.28a.5.5 0 0 0 .5-.5c0-.14-.07-.29-.22-.48L7.3 2.3 8.8.87c.16-.14.2-.25.2-.4A.47.47 0 0 0 8.52 0c-.18 0-.3.07-.45.22l-2 2.03h-.04V.54C6.03.2 5.84 0 5.52 0S5 .2 5 .54v3.92c0 .34.2.54.52.54M2.55 1.05 1.05 3.1h1.5zM3.5 3.1V.83C3.5.03 2.41-.3 1.94.35L.14 2.82A.75.75 0 0 0 .75 4h1.8v.55c0 .25.25.45.5.45a.45.45 0 0 0 .45-.45V4h.05a.45.45 0 0 0 0-.9z"></path></svg>');function Sm(t,e){let i=Ln(e,["$$slots","$$events","$$legacy","children"]);var o=Q0();no(o,()=>Ie({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:ht}),vi(),w(o),b(t,o)}var G0=Ce('<svg><!><path d="M5.51 5c.33 0 .52-.2.52-.54V3.5l.49-.51L7.99 4.7c.16.21.3.29.51.29a.49.49 0 0 0 .5-.5c0-.14-.07-.29-.22-.48L7.29 2.3 8.82.87C8.95.73 9 .62 9 .47A.47.47 0 0 0 8.52 0c-.17 0-.3.07-.44.22L6.06 2.25h-.03V.54C6.03.2 5.83 0 5.5 0S5 .2 5 .54v3.92c0 .34.19.54.51.54M2 0c-.35 0-.67.06-.95.17a1.5 1.5 0 0 0-.66.49c-.15.2-.23.44-.23.7 0 .43.21.76.62 1-.23.11-.41.26-.55.44-.15.2-.23.44-.23.71 0 .29.08.55.25.78.18.23.41.4.71.52.3.13.65.19 1.04.19s.73-.06 1.03-.19c.3-.12.54-.3.71-.52a1.26 1.26 0 0 0 .03-1.49 1.45 1.45 0 0 0-.55-.44c.4-.23.62-.57.62-1a1.14 1.14 0 0 0-.24-.7 1.44 1.44 0 0 0-.66-.49A2.4 2.4 0 0 0 2 0m-.57.96C1.56.86 1.75.8 2 .8s.43.06.56.16a.51.51 0 0 1 .2.43c0 .2-.06.34-.2.44A.87.87 0 0 1 2 2a.9.9 0 0 1-.57-.16.52.52 0 0 1-.2-.44c0-.18.06-.32.2-.43ZM1.08 3.5a.6.6 0 0 1 .24-.5c.16-.13.38-.2.68-.2s.52.07.68.2a.6.6 0 0 1 .24.5.63.63 0 0 1-.24.52c-.16.12-.38.19-.68.19s-.52-.07-.68-.19a.64.64 0 0 1-.24-.52"></path></svg>');function Tm(t,e){let i=Ln(e,["$$slots","$$events","$$legacy","children"]);var o=G0();no(o,()=>Ie({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:ht}),vi(),w(o),b(t,o)}var Y0=Ce('<svg><!><path d="M5.52 5h1.1C8.1 5 9 4.07 9 2.5S8.1 0 6.62 0h-1.1C5.19 0 5 .2 5 .54v3.92c0 .34.2.54.52.54m.51-.85V.85h.47C7.41.85 8 1.47 8 2.5c0 1.07-.58 1.65-1.5 1.65zM.52 5c.32 0 .51-.2.51-.54V2.92h1.94v1.54c0 .34.19.54.51.54S4 4.8 4 4.46V.54C4 .2 3.8 0 3.48 0s-.51.2-.51.54v1.53H1.03V.54C1.03.2.84 0 .52 0S0 .2 0 .54v3.99c0 .34.2.47.52.47"></path></svg>');function Cm(t,e){let i=Ln(e,["$$slots","$$events","$$legacy","children"]);var o=Y0();no(o,()=>Ie({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:ht}),vi(),w(o),b(t,o)}var j0=Ce('<svg><!><path d="M9.52 5h1.1C12.1 5 13 4.07 13 2.5S12.1 0 10.62 0h-1.1C9.19 0 9 .2 9 .54v3.92c0 .34.2.54.52.54m.51-.85V.85h.47c.91 0 1.5.62 1.5 1.65 0 1.07-.58 1.65-1.5 1.65zM4.52 5c.32 0 .51-.2.51-.54V2.92h1.94v1.54c0 .34.19.54.51.54S8 4.8 8 4.46V.54C8 .2 7.8 0 7.48 0s-.51.2-.51.54v1.53H5.03V.54C5.03.2 4.84 0 4.52 0S4 .2 4 .54v3.99c0 .34.2.47.52.47m-4 0c.32 0 .51-.2.51-.54V3h1.33c.27 0 .45-.15.45-.41 0-.25-.18-.4-.45-.4H1.03V.84h1.5C2.81.85 3 .7 3 .43S2.8 0 2.53 0H.52C.19 0 0 .2 0 .54v3.92C0 4.8.2 5 .52 5"></path></svg>');function Im(t,e){let i=Ln(e,["$$slots","$$events","$$legacy","children"]);var o=j0();no(o,()=>Ie({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:ht}),vi(),w(o),b(t,o)}var X0=Ce('<svg><!><path d="M11.52 5.75h1.1c1.48 0 2.38-.94 2.38-2.5s-.9-2.5-2.38-2.5h-1.1c-.33 0-.52.2-.52.54V5.2c0 .34.2.54.52.54Zm.51-.85V1.6h.47c.91 0 1.5.62 1.5 1.65 0 1.07-.58 1.65-1.5 1.65zm-5.51.85c.32 0 .51-.2.51-.54V3.67h1.94v1.54c0 .34.19.54.51.54s.52-.2.52-.54V1.3c0-.34-.2-.54-.52-.54s-.51.2-.51.54v1.53H7.03V1.3c0-.34-.19-.54-.51-.54S6 .95 6 1.29v3.99c0 .34.2.47.52.47m-3.18-.09a4 4 0 0 1-.84.09C1.04 5.75 0 4.88 0 3.3 0 1.73 1.04.75 2.5.75S5 1.73 5 3.3c0 .87-.27 1.46-.78 1.88l.2.3a.5.5 0 0 1-.84.55zm-.52-.78-.24-.35a.5.5 0 1 1 .84-.56l.24.37c.18-.26.29-.62.29-1.04 0-1.03-.64-1.65-1.45-1.65s-1.45.62-1.45 1.65.64 1.6 1.45 1.6c.08 0 .2 0 .32-.02"></path></svg>');function Em(t,e){let i=Ln(e,["$$slots","$$events","$$legacy","children"]);var o=X0();no(o,()=>Ie({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:ht}),vi(),w(o),b(t,o)}var rp=t=>{switch(t){case Jl.VideoQuality.Q_720P:return Cm;case Jl.VideoQuality.Q_1080P:return Im;case Jl.VideoQuality.Q_1440P:return Em;case Jl.VideoQuality.Q_2160P:return Sm;case Jl.VideoQuality.Q_4320P:return Tm}};var Z0=Ce('<path d="M12.72 2.21q1.8.07 2.41 1.96l.06.21.06.2.06.23.06.16.04.01.06-.02.14-.05.15-.07c1.42-.66 2.5-.53 3.4.44l.12.14.82 1.02c.73.96.7 2 0 3.1l-.13.19-.12.16-.14.2-.07.12-.04.05v.03l.1.06.13.07.15.09c1.39.7 1.96 1.64 1.74 2.93l-.04.19-.24 1.06c-.16.68-.28 1-.77 1.45-.48.43-1.02.61-1.73.67l-.22.02h-.2l-.25.02-.18.02.02.14v.1l.04.17c.32 1.53-.04 2.56-1.19 3.2l-.17.1-1.17.57q-1.64.73-3.02-.7l-.15-.17-.13-.15-.17-.19-.1-.1-.05-.04-.1.09-.1.1-.12.14c-.95 1.13-1.95 1.54-3.17 1.07l-.18-.08-1.05-.5-.31-.17a2 2 0 0 1-1-1.06 3 3 0 0 1-.16-1.88l.04-.23.04-.24.02-.17-.1-.02-.15-.01h-.18c-1.56-.04-2.48-.62-2.85-1.89l-.05-.18-.3-1.28q-.33-1.77 1.37-2.78l.2-.11.17-.1.22-.12.15-.1v-.02l-.06-.1-.08-.13-.1-.14c-.94-1.25-1.04-2.34-.28-3.4L4 6.32l.82-1.01c.8-.92 1.8-1.1 3.04-.64l.2.08.19.08.22.1.13.04.04-.01.03-.1.05-.13.04-.17c.36-1.43 1.09-2.24 2.4-2.35h1.58Zm-.05 1.8h-1.34l-.14.01c-.28.04-.47.2-.65.83l-.04.16-.06.2a6 6 0 0 1-.46 1.14 6 6 0 0 0-1.15.56 7 7 0 0 1-1.16-.35l-.35-.16q-.37-.15-.59-.17h-.08a.6.6 0 0 0-.4.19l-.08.07-.78.98-.1.12c-.18.26-.2.5.2 1.08l.22.31q.34.48.6 1.1-.2.59-.27 1.2-.51.45-1.01.73l-.34.18c-.62.34-.7.56-.65.88l.01.08.28 1.21.04.16c.1.3.27.47.97.5l.39.02q.57.03 1.22.2.35.53.78.97a6 6 0 0 1-.12 1.45c-.2.95-.01 1.1.38 1.3l1.13.54a1 1 0 0 0 .34.1l.06-.01q.26-.03.67-.49l.26-.3q.4-.42.95-.83l.3.02.3.01h.3l.3-.03q.56.4.95.84l.26.3c.32.36.53.48.73.48h.07l.18-.05.09-.04 1.13-.54.14-.08c.3-.17.42-.4.24-1.22a6 6 0 0 1-.12-1.45q.44-.45.78-.97a7 7 0 0 1 1.22-.2l.39-.01c.81-.04.91-.26 1-.66l.27-1.15c.09-.4.1-.64-.62-1.03l-.34-.18a6 6 0 0 1-1.01-.73 6 6 0 0 0-.27-1.2q.26-.62.6-1.1l.22-.31c.4-.58.38-.81.2-1.08l-.05-.06-.78-.97c-.14-.18-.26-.3-.46-.33h-.07q-.23 0-.67.17l-.35.16a6 6 0 0 1-1.16.35 6 6 0 0 0-1.15-.56 7 7 0 0 1-.45-1.1l-.11-.4c-.2-.68-.4-.81-.72-.83zM12 8.2a3.8 3.8 0 1 1 0 7.6 3.8 3.8 0 0 1 0-7.6m0 1.8a2 2 0 1 0 0 4 2 2 0 0 0 0-4"></path>');function Pm(t,e){Ze(t,{get testId(){return e.testId},children:(i,o)=>{var r=Z0();b(i,r)},$$slots:{default:!0}})}var J0=Ce('<path d="M13.25 2.83c.23.75.38 1.5 1.63 2.23 1.4.38 2.08 0 2.72-.42.66-.45.86-.32 1.12-.06l.65.64c.29.3.4.42 0 1.18-.38.7-.8 1.33-.42 2.73.72 1.25 1.47 1.47 2.22 1.62.78.16.83.39.83.76v.9c0 .42 0 .59-.83.84-.75.23-1.5.38-2.23 1.63-.38 1.4 0 2.08.42 2.72.45.66.32.86.06 1.12l-.64.65c-.3.29-.42.4-1.18 0-.7-.38-1.34-.8-2.73-.42-1.25.72-1.47 1.47-1.62 2.22-.16.78-.39.83-.76.83h-.9c-.42 0-.59 0-.84-.83-.23-.75-.38-1.5-1.63-2.23-1.4-.38-2.08 0-2.72.42-.66.45-.86.32-1.12.06l-.65-.64c-.29-.3-.4-.42 0-1.18.38-.7.8-1.34.42-2.73-.72-1.25-1.47-1.47-2.22-1.62-.78-.16-.83-.39-.83-.76v-.9c0-.42 0-.59.83-.84.75-.23 1.5-.38 2.22-1.63.38-1.4 0-2.08-.42-2.72-.44-.66-.31-.86-.05-1.12l.64-.65c.3-.29.42-.4 1.18 0 .7.38 1.33.8 2.73.42 1.25-.72 1.47-1.47 1.62-2.22.16-.78.39-.83.76-.83h.9c.42 0 .59 0 .84.83M12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5"></path>');function km(t,e){Ze(t,{get testId(){return e.testId},children:(i,o)=>{var r=J0();b(i,r)},$$slots:{default:!0}})}var ex=M('<div aria-hidden="true"><!> <!></div>'),tx={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 pc(t,e){B(e,!0),q(t,tx);let i=g(e,"isMobile",3,!1),o=g(e,"currentQuality",3,void 0),r=v(()=>o()?(0,hb.getVideoQualityLabel)(o()):""),a=v(()=>rp(o())),l=v(()=>n(r).length>2);var d=Le(),s=de(d);{var u=p=>{Pm(p,{testId:"settings-mobile-icon"})},m=p=>{var f=ex();let $;var y=T(f);{var _=I=>{let N=v(()=>`${n(r)}-pill-icon`);wm(I,{get testId(){return n(N)},children:(P,E)=>{var A=Le(),Q=de(A);Bi(Q,()=>n(a),(H,z)=>{z(H,{})}),b(P,A)},$$slots:{default:!0}})};R(y,I=>{n(a)&&I(_)})}var S=L(y,2);let C=v(()=>n(a)?"settings-icon--labeled":"settings-icon");km(S,{get testId(){return n(C)}}),w(f),D(I=>$=se(f,1,"icon s-1v",null,$,I),[()=>({triple:n(l)})]),b(p,f)};R(s,p=>{i()?p(u):p(m,!1)})}b(t,d),F()}var ix=M('<span class="settings-icon-wrapper s-1z"><!></span>'),ox={hash:"s-1z",code:".settings-icon-wrapper.s-1z{position:relative;width:24px}"};function ed(t,e){B(e,!0),q(t,ox);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$,m=d.actions.internal.openSettingsMenu,p=d.actions.internal.closeSettingsMenu,f=d.ui.isMobile,$=d.ui.t,y=K(void 0);Oe(()=>{n(y)&&Pt(()=>{e.ref$.set(n(y))})});let _=$("aria_label_settings");function S(I){return gt(this,null,function*(){let N=ra(I);r()?p():m(N,yo)})}let C=v(()=>r()?"opened":"");Qt(t,{get className(){return n(C)},testId:"settings-btn",click:S,get ariaLabel(){return _},get ariaExpanded(){return r()},get ref(){return n(y)},set ref(I){O(y,I,!0)},children:(I,N)=>{var P=ix(),E=T(P);pc(E,{get isMobile(){return a()},get currentQuality(){return l()}}),w(P),b(I,P)},$$slots:{default:!0}}),F(),o()}var nx=Ce('<path d="M6.56 4.44a1.5 1.5 0 1 0-2.12 2.12l3.09 3.09a11 11 0 0 0-2.39 3.08 11 11 0 0 0-1.01 4.14C4 18.43 4 20.37 4 22.83v2.34c0 2.46 0 4.4.13 5.96.13 1.6.4 2.93 1.01 4.14a10.5 10.5 0 0 0 4.6 4.59c1.2.61 2.53.88 4.13 1.01 1.56.13 3.5.13 5.96.13h8.34c2.46 0 4.4 0 5.96-.13 1.44-.12 2.66-.35 3.78-.84l3.53 3.53a1.5 1.5 0 0 0 2.12-2.12zM13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22"></path><path d="M34.5 23.5h-4.64l12.55 12.55q.23-.37.45-.78a11 11 0 0 0 1.01-4.14c.13-1.56.13-3.5.13-5.96v-2.34c0-2.46 0-4.4-.13-5.96a11 11 0 0 0-1.01-4.14 10.5 10.5 0 0 0-4.6-4.59 11 11 0 0 0-4.13-1.01C32.57 7 30.63 7 28.17 7h-8.34c-2.46 0-4.4 0-5.96.13l-.35.03L26.86 20.5h7.64a1.5 1.5 0 0 1 0 3"></path>',1),rx=Ce("<path></path>");function la(t,e){B(e,!0);let i=v(()=>`subtitles-icon-${e.type==="off"?"off":e.type==="outline"?"outline":""}`),o=v(()=>hn(e.size));Ze(t,{get width(){return"48"},get height(){return"48"},get style(){return n(o)},get testId(){return n(i)},get shadow(){return e.shadow},children:(r,a)=>{var l=Le(),d=de(l);{var s=m=>{var p=nx();vi(),b(m,p)},u=m=>{var p=rx();D(()=>Ve(p,"d",`M16.92 8h14.16q2.82-.02 4.66.1c1.28.1 2.4.32 3.46.86a8.8 8.8 90 013.84 3.84c.54 1.04.76 2.18.86 3.46q.12 1.84.1 4.66v6.16q.02 2.82-.1 4.66a10 10 90 01-.86 3.46 8.8 8.8 90 01-3.84 3.84 10 10 90 01-3.46.86q-1.84.12-4.66.1H16.92q-2.82.02-4.66-.1a10 10 90 01-3.46-.86 8.8 8.8 90 01-3.84-3.84 10 10 90 01-.86-3.46Q4 29.9 4 27.08v-6.16q-.02-2.82.1-4.66c.1-1.28.32-2.4.86-3.46A8.8 8.8 90 018.8 8.96a10 10 90 013.46-.86Q14.1 8 16.92 8
|
|
59
59
|
${e.type==="outline"?"M12.54 11.68c-1.04.1-1.64.26-2.1.48a5.2 5.2 90 00-2.28 2.28c-.22.46-.4 1.06-.48 2.1-.08 1.08-.08 2.46-.08 4.46v6c0 2 0 3.38.08 4.46.1 1.04.26 1.64.48 2.1q.78 1.5 2.28 2.28c.46.22 1.06.4 2.1.48 1.08.08 2.48.08 4.46.08h14c2 0 3.38 0 4.46-.08 1.04-.1 1.64-.26 2.1-.48a5.2 5.2 90 002.28-2.28c.22-.46.4-1.06.48-2.1.08-1.08.08-2.48.08-4.46v-6c0-2 0-3.38-.08-4.46a6 6 90 00-.48-2.1 5.2 5.2 90 00-2.28-2.28c-.46-.22-1.06-.4-2.1-.48-1.08-.08-2.48-.08-4.46-.08h-14c-2 0-3.38 0-4.46.08":""}
|
|
60
|
-
M12 29.8c0-1 .8-1.8 1.8-1.8h10.4a1.8 1.8 90 010 3.6H13.8a1.8 1.8 90 01-1.8-1.8m0-7.6c0-1 .8-1.8 1.8-1.8h3.4a1.8 1.8 90 110 3.6H13.8a1.8 1.8 90 01-1.8-1.8m17 7.6c0-1 .8-1.8 1.8-1.8h3.4a1.8 1.8 90 110 3.6h-3.4a1.8 1.8 90 01-1.8-1.8M22 22.2c0-1 .8-1.8 1.8-1.8h10.4a1.8 1.8 90 010 3.6h-10.4a1.8 1.8 90 01-1.8-1.8`)),b(m,p)};R(d,m=>{e.type==="off"?m(s):m(u,!1)})}b(r,l)},$$slots:{default:!0}}),F()}function km(t,e){B(e,!0);let i=g(e,"isSubtitlesEnabled",3,!1),r=ve().ui.t,a=v(()=>i()?r("tooltip_subtitles_on"):r("tooltip_subtitles_off"));Qt(t,{testId:"btn-Subtitles",get ariaLabel(){return n(a)},get click(){return e.click},get ariaKeyShortCut(){return gs.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}}),F()}var sx=M('<span class="duration s-20" data-testid="video_duration"> </span>'),ax=M('<div><span class="current s-20" data-testid="current_time"> </span> <!></div>'),lx={hash:"s-20",code:'.time.s-20{align-items:center;color:var(--controls-time);display:flex;font-variant-numeric:tabular-nums;font-weight:500;padding:12px 6px}.time.mobile.s-20{padding:0 0 0 8px}.current.s-20{position:relative}.duration.s-20{opacity:.7}.duration.s-20:before{content:" / ";white-space:pre}'};function fc(t,e){B(e,!0),q(t,lx);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=Nt(),d=ae(!1),s=v(()=>tn(e.duration)),u=v(()=>tn(e.position));var m=ax();let p;var f=T(m),$=T(f,!0);w(f);var y=L(f,2);{var _=S=>{var C=sx(),I=T(C,!0);w(C),D(()=>me(I,n(s))),b(S,C)};R(y,S=>{r()&&S(_)})}w(m),Ps(m,()=>Ql(o()&&l.features.usePerformanceFix,d,l.disableInvisibleComponentsTimeout)),Xe(m,S=>a(S),()=>a()),D(S=>{p=se(m,1,"time s-20",null,p,S),me($,n(u))},[()=>({mobile:i()})]),b(t,m),F()}var vc=require("@vkontakte/videoplayer-shared/es2015");var dx=Ce("<path></path>");function da(t,e){B(e,!0);let i=g(e,"volume",3,1),o=g(e,"muted",3,!1),r=(p,f)=>f?"off":p>.5?"max":p>.2?"mid":p>0?"min":"off",a=v(()=>r(i(),o())),l=v(()=>hn(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",m="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";Ze(t,{get width(){return"48"},get height(){return"48"},get style(){return n(l)},get testId(){var p;return`volume-${(p=n(a))!=null?p:""}-icon`},get shadow(){return e.shadow},children:(p,f)=>{var $=dx();D(()=>Ve($,"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"?m:""}`}`)),b(p,$)},$$slots:{default:!0}}),F()}var Ho=require("@vkontakte/videoplayer-shared/es2015");var sp=require("@vkontakte/videoplayer-shared/es2015");var _b=require("@vkontakte/videoplayer-shared/es2015");var cx=M('<div class="overlay"><!></div>');function Lm(t,e){B(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))};Oe(()=>{u(r())}),Rt(()=>(u(r()),()=>s(r())));var m=cx(),p=T(m);ai(p,()=>{var f;return(f=e.children)!=null?f:ht}),w(m),Xe(m,f=>O(d,f),()=>n(d)),b(t,m),F(),o()}var ux=M('<div class="tooltip s-1j"><div class="content s-1j"> </div> <div class="tooltip-pointer s-1j"></div></div>'),px=M("<div><!></div> <!>",1),fx={hash:"s-1j",code:'.tooltip-wrapper.s-1j{display:flex;flex-direction:column;min-width:0}.full-width.s-1j{width:100%}.tooltip.s-1j{bottom:100%;left:0;opacity:0;position:absolute;transition:opacity .2s,visibility .2s;visibility:hidden}.content.s-1j{background-color:rgba(41,41,41,.8);border-radius:3px;color:var(--white);display:inline-block;padding:6px 10px}.tooltip-pointer.s-1j{border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid rgba(41,41,41,.8);bottom:0;content:" ";font-size:0;line-height:0;position:absolute;width:0}'};function Qa(t,e){B(e,!0),q(t,fx);let[i,o]=Re(),r=()=>x(Y,"$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),m=g(e,"translateY",3,0),p=g(e,"isFullWidthWrapper",3,!1),f=g(e,"maxTooltipWidth",3,void 0),$=g(e,"placement",3,"top"),y=g(e,"onVisibilityChange",3,_b.noop),_=5,S=K(void 0),C=K(void 0),I,N=K(0),P=K(0),E=K(0),k=K(0),Q=Nt(),H=ve(),z=H.ui.playerSize,Y=H.ui.overlayContainer$;Oe(()=>{Pt(()=>{y()(s())})});let le=H.getLogger().createComponentLog("Tooltip component"),X=()=>{if(!r()||!n(C)||!n(S))return;O(P,_);let U=r().getBoundingClientRect(),ke=n(S).getBoundingClientRect(),Pe=ke.width,Ue=n(C).clientWidth,Je=a().width,ye=(Pe-Ue)/2,Ae=ke.left+u()-U.left,Fe=Ae+ye,Ft=ke.top+m()-U.top,mt=Ue/2-_,Ht=Fe<8,lt=Fe+Ue>Je-8;Ht&&(Fe=8,mt=Ae+ke.width/2-2.5*_),lt&&(Fe=Je-8-Ue,mt=ke.left-U.left+ke.width/2-Fe-_),O(E,Fe,!0),O(k,Ft),O(N,mt,!0)},re=()=>{!r()||!n(C)||!n(S)||O(P,-_)},Z=()=>{if(!r()||!n(C)||!n(S))return;O(N,_);let U=r().getBoundingClientRect(),ke=n(S).getBoundingClientRect(),Pe=ke.height,Ue=n(C).clientHeight,Je=(Pe-Ue)/2+Ue,ye=ke.left+u()-U.left-n(C).clientWidth,Ae=2,Fe=ye-_;Fe<8&&(Fe=8);let mt=ke.top+m()-U.top+Je,Ht=Ae-Je/2,lt=Ae-_;O(E,Fe,!0),O(k,mt),O(P,Ht),O(N,lt)},we=()=>{!r()||!n(C)||!n(S)||O(N,-_)},ue=()=>{switch($()){case"top":X();break;case"bottom":re();break;case"left":Z();break;default:we()}},ne=()=>{try{if(!r()||!n(S))return;ue(),s(!0)}catch(U){le({message:String(U)})}},_e=()=>{s(!1)},xe=()=>{n(C)&&(I||(I=window.setTimeout(ne,Q.controls.hideTimeoutTooltips)),s()&&ne())},J=()=>{_e(),window.clearTimeout(I),I=void 0},Ne=(U,ke,Pe)=>{let Ue="";switch($()){case"top":Ue=`transform: translate(${U}px, ${ke}px);`;break;case"bottom":Ue=`transform: translate(${U}px, ${ke}px); top: auto; bottom: 100%;`;break;case"left":Ue=`transform: translate(${U}px, ${ke}px); left: 0; right: auto;`;break;default:Ue=`transform: translate(${U}px, ${ke}px);`}return Ue+=` max-width: ${f()===void 0?"auto":`${f()}px`};`,Ue+=` opacity: ${Pe?1:0}; visibility: ${Pe?"visible":"hidden"}`,Ue},pe=(U,ke)=>{let Pe="";switch($()){case"top":Pe=`transform: translate(${U}px, ${ke}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Pe=`transform: translate(${U}px, ${ke}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Pe=`transform: translate(${U}px, ${ke}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Pe=`transform: translate(${U}px, ${ke}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Pe},A=v(()=>Ne(n(E),n(k),s())),We=v(()=>pe(n(N),n(P)));Rt(ue),gn(()=>window.clearTimeout(I));var Te=px(),j=de(Te);let ie;j.__pointermove=xe,j.__pointerdown=J,j.__pointerup=function(...U){var ke;(ke=e.disableMouseupTooltipShow?void 0:xe)==null||ke.apply(this,U)};var De=T(j);ai(De,()=>{var U;return(U=e.children)!=null?U:ht}),w(j),Xe(j,U=>O(S,U),()=>n(S));var Be=L(j,2);{var ot=U=>{Lm(U,{children:(ke,Pe)=>{var Ue=ux(),Je=T(Ue),ye=T(Je,!0);w(Je);var Ae=L(Je,2);w(Ue),Xe(Ue,Fe=>O(C,Fe),()=>n(C)),D(()=>{Qe(Ue,n(A)),me(ye,d()),Qe(Ae,n(We))}),b(ke,Ue)},$$slots:{default:!0}})};R(Be,U=>{d()&&!l()&&U(ot)})}D(U=>ie=se(j,1,"tooltip-wrapper s-1j",null,ie,U),[()=>({"full-width":p()})]),_t("pointerenter",j,xe),_t("pointerleave",j,J),b(t,Te),F(),o()}it(["pointermove","pointerdown","pointerup"]);var bb=t=>{t.stopPropagation()},mx=M("<div><!></div>"),vx={hash:"s-14",code:".btn-container.s-14{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-14{min-width:0;width:100%}"};function Fo(t,e){B(e,!0),q(t,vx);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$,m=l.ui.t,p=g(e,"className",3,""),f=g(e,"disabled",3,!1),$=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),N=g(e,"tooltipPlacement",3,"top"),P=g(e,"disabledTooltipContent",19,()=>m("tooltip_button_disabled")),E=g(e,"isAriaHidden",3,!1),k=g(e,"onTooltipVisibilityChange",3,sp.noop),Q=g(e,"initialTranslateXPx",3,0),H=g(e,"initialTranslateYPx",19,()=>-18),z=g(e,"mouseEnter",3,sp.noop),Y=g(e,"mouseLeave",3,sp.noop),le=v(()=>f()?r()?m("tooltip_disabled_when_graph_on"):P():C()),X=K(!1);Oe(()=>{I()||O(X,!1)});var re=mx();re.__pointerdown=[bb],re.__click=[bb];var Z=T(re);{var we=ne=>{Qa(ne,{get content(){return n(le)},get translateX(){return Q()},get translateY(){return H()},get isFullWidthWrapper(){return S()},get placement(){return N()},get onVisibilityChange(){return k()},get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},get active(){return n(X)},set active(_e){O(X,_e,!0)},children:(_e,xe)=>{var J=Le(),Ne=de(J);ai(Ne,()=>{var pe;return(pe=e.children)!=null?pe:ht}),b(_e,J)},$$slots:{default:!0}})},ue=ne=>{var _e=Le(),xe=de(_e);ai(xe,()=>{var J;return(J=e.children)!=null?J:ht}),b(ne,_e)};R(Z,ne=>{$()&&n(le)&&!a()?ne(we):ne(ue,!1)})}w(re),Xe(re,ne=>y(ne),()=>y()),D(()=>{var ne;se(re,1,`btn-container ${(ne=p())!=null?ne:""}`,"s-14"),Ve(re,"aria-hidden",E()||null)}),_t("mouseenter",re,function(...ne){var _e;(_e=z())==null||_e.apply(this,ne)}),_t("mouseleave",re,function(...ne){var _e;(_e=Y())==null||_e.apply(this,ne)}),kn(re,"clientWidth",_),b(t,re),F(),o()}it(["pointerdown","click"]);var gx=Ce('<rect width="20" height="20" rx="10"></rect><path d="m12.53 8.69.06.19-.22-.64a.83.83 0 0 0-1.6.47l.13.48-.23-.85a.82.82 0 0 0-1.6.24l-.73-2.93a.85.85 0 0 0-1.65.4L8 11.34l-1.12-1.16a.8.8 0 0 0-1.21 1.03l2.23 2.94s1.23 1.83 4.3 1.23c2.43-.48 3.25-2.67 2.58-4.88l-.55-2.3a.88.88 0 1 0-1.7.49"></path>',1);function mc(t,e){let i=v(()=>(e.completed,"interactive-episode-completed-icon"));Ze(t,{width:"20",height:"20",fill:"none",get testId(){return n(i)},children:(o,r)=>{var a=gx(),l=de(a),d=L(l);D(()=>{Ve(l,"fill",ta),Ve(l,"fill-opacity",e.completed?1:.24),Ve(d,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),b(o,a)},$$slots:{default:!0}})}var hx=M("<div><!></div>"),_x={hash:"s-k",code:".interactive-episode-icon.s-k{cursor:default;height:20px;position:absolute;transform:translateX(-50%);width:20px}.interactive-episode-icon.disabled.s-k{opacity:.4;pointer-events:none}"};function Mm(t,e){B(e,!0),q(t,_x);let o=ve().ui.t,r=K(0),a=v(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));Fo(t,{get tooltipContent(){return n(a)},initialTranslateXPx:-10,initialTranslateYPx:-10,get disabled(){return e.disabled},get width(){return n(r)},isAriaHidden:!0,isFullWidthTooltip:!1,children:(l,d)=>{var s=hx();let u;var m=T(s);let p=v(()=>!!e.videoEpisode.completed);mc(m,{get completed(){return n(p)}}),w(s),D(f=>{u=se(s,1,"interactive-episode-icon s-k",null,u,f),Qe(s,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),kn(s,"clientWidth",f=>O(r,f)),b(l,s)},$$slots:{default:!0}}),F()}var bx=M('<div><div class="video-episode-inner s-l"><div class="video-episode-loaded s-l"></div> <div></div></div></div>'),$x=M('<div class="video-episodes-wrap s-l"></div>'),yx={hash:"s-l",code:".video-episodes-wrap.s-l{height:100%;position:absolute;width:100%}.video-episode.s-l{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-l:first-child{padding-left:0}.video-episode.s-l:last-child{padding-right:0}.video-episode.s-l:not(.disabled):where(:hover,:active){transform:scaleY(1.5)}.video-episode-filled.s-l,.video-episode-inner.s-l,.video-episode-loaded.s-l{border-radius:var(--slider-radius);height:var(--slider-height);position:absolute}.video-episode-inner.s-l{background:var(--slider-bg);overflow:hidden;position:absolute;width:calc(100% - var(--slider-video-episode-gap)*2)}.video-episode.s-l:first-child .video-episode-inner:where(.s-l),.video-episode.s-l:last-child .video-episode-inner:where(.s-l){width:calc(100% - var(--slider-video-episode-gap))}.video-episode-loaded.s-l{background:var(--slider-loaded-bg);transition:transform .2s}.video-episode-filled.s-l,.video-episode-loaded.s-l{border-radius:var(--slider-radius);height:100%;left:-100%;position:absolute;width:100%}.video-episode-filled.s-l{background-color:var(--slider-filled-bg)}"};function Vm(t,e){q(t,yx);let i=g(e,"videoEpisodes",19,()=>[]);var o=$x();Ti(o,21,i,r=>r.from,(r,a)=>{var l=bx();let d;var s=T(l),u=T(s),m=L(u,2);let p;w(s),w(l),D((f,$)=>{d=se(l,1,"video-episode s-l",null,d,f),Qe(l,`left: ${n(a).from}%; width: ${n(a).width}%`),Qe(u,`transform: translateX(${n(a).loadedWidth/n(a).width*100}%)`),p=se(m,1,"video-episode-filled s-l",null,p,$),Qe(m,`transform: translateX(${n(a).filledWidth/n(a).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),b(r,l)}),w(o),b(t,o)}function xx(t,e,i,o,r,a,l){if(t.preventDefault(),e()&&O(i,e().getBoundingClientRect(),!0),o()||n(r)||!e())return;O(r,!0);let d=a(t.clientX,t.clientY);l()(d,t),e().setPointerCapture(t.pointerId)}function wx(t,e,i,o,r,a,l,d){if(t.preventDefault(),e())return;let s=i(t.clientX,t.clientY),u=o(t.clientX);r()(s,u,n(a).width,t),n(l)&&d()(s)}function Sx(t,e,i,o,r){if(t.preventDefault(),e()||!n(i))return;O(i,!1);let a=o(t.clientX,t.clientY);r()(a,t)}function Tx(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}function Cx(t,e,i,o,r,a){let l=e(t.clientX,t.clientY);i()&&o()(l),O(r,!1),a()(l)}var Ix=M("<div></div>"),Ex=M('<div class="bars s-h"><div class="loaded s-h"></div> <div></div></div>'),Px=M('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),Ax={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){B(e,!0),q(t,Ax);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),m=g(e,"videoEpisodes",19,()=>[]),p=g(e,"withWheelHandler",3,!1),f=g(e,"isInteractive",3,!1),$=g(e,"disabled",3,!1),y=g(e,"hideHandel",3,!1),_=g(e,"onPointerDown",3,Ho.noop),S=g(e,"onHandleMove",3,Ho.noop),C=g(e,"onPointerUp",3,Ho.noop),I=g(e,"onPointerEnter",3,Ho.noop),N=g(e,"onPointerMove",3,Ho.noop),P=g(e,"onPointerLeave",3,Ho.noop),E=g(e,"onMouseEnter",3,Ho.noop),k=g(e,"onMouseLeave",3,Ho.noop),Q=g(e,"onWheelUp",3,Ho.noop),H=g(e,"onWheelDown",3,Ho.noop),z=g(e,"onWheelLeft",3,Ho.noop),Y=g(e,"onWheelRight",3,Ho.noop),le=g(e,"onDisabledClick",3,Ho.noop),X=g(e,"loadedProgress",3,0),re=g(e,"filledProgress",3,0),Z=g(e,"handleProgress",3,0),we=g(e,"ariaLabel",3,""),ue=g(e,"ariaValueMin",3,void 0),ne=g(e,"ariaValueMax",3,void 0),_e=g(e,"ariaValueNow",3,void 0),xe=g(e,"ariaValueText",3,""),J=g(e,"onContextMenu",3,Ho.noop),Ne=g(e,"handleAlwaysVisible",3,!1),pe=Nt(),A=K(void 0),We=K(!1),Te=v(()=>{var Me;return(Me=ne())!=null?Me:0}),j=v(()=>{var Me;return(0,Ho.isNonNullable)(m())&&((Me=m()[m().length-1])==null?void 0:Me.time)<n(Te)}),ie=v(()=>(0,Ho.isNonNullable)(m())&&m().length&&n(j)&&n(Te)?Je(X()*100,re()*100):[]);function De(Me){if(Me.preventDefault(),i()&&O(A,i().getBoundingClientRect(),!0),$())return;let xt=Pe(Me.clientX,Me.clientY),Lt=Ue(Me.clientX);I()(xt,Lt,n(A).width)}function Be(Me){Me.preventDefault(),!$()&&P()()}function ot(){E()()}function U(){k()()}function ke(Me){$()||p()&&(Me.preventDefault(),Me.deltaY<0?Q()():Me.deltaY>0?H()():Me.deltaX>0?Y()():z()())}function Pe(Me,xt){return l()?Math.max(0,Math.min(1,(n(A).height-(xt-n(A).top))/n(A).height)):Math.min(Math.max(Me-n(A).x,0),n(A).width)/n(A).width}function Ue(Me){return Math.min(Math.max(Me-n(A).x,0),n(A).width)}function Je(Me,xt){let Lt=pe.features.episodesClustering&&!f()?pe.episodeMinWidthPc:0,pt=[],ce=m()[0].time/n(Te)*100,ze=0,Ye=0;for(let zt=1;zt<m().length;zt++)ze=m()[zt].time/n(Te)*100,ze-ce>Lt&&(pt.push({from:ce,width:Math.max(0,ze-ce),loadedWidth:Math.max(0,Math.min(ze,Me)-ce),filledWidth:Math.max(0,Math.min(ze,xt)-ce),interactive:m()[zt-1].interactive,completed:m()[zt-1].completed}),ce=m()[zt].time/n(Te)*100,Ye++);let dt={from:ce,width:Math.max(0,100-ce),loadedWidth:Math.max(0,Math.min(Me,100)-ce),filledWidth:Math.max(0,Math.min(xt,100)-ce),interactive:m()[Ye].interactive,completed:m()[Ye].completed};100-ce<Lt?(Ye-=1,pt[Ye].width+=100-ce,pt[Ye].loadedWidth+=Math.max(0,Math.min(Me,100)-ce),pt[Ye].filledWidth+=Math.max(0,Math.min(xt,100)-ce)):pt[Ye]=dt;let Ut=m()[0].time;if(Ut!==0){let zt=Ut/n(Te)*100;pt.unshift({from:0,width:zt,loadedWidth:Math.min(zt,Me),filledWidth:Math.min(zt,xt)})}return pt}function ye(Me){return Math.max(0,Math.min(100,Me*100))}let Ae=v(()=>ye(X())),Fe=v(()=>ye(re()));var Ft=Px(),mt=de(Ft);{var Ht=Me=>{var xt=Ix();let Lt;Ti(xt,21,()=>n(ie),pt=>pt.from,(pt,ce)=>{var ze=Le(),Ye=de(ze);{var dt=Ut=>{Mm(Ut,{get videoEpisode(){return n(ce)},get disabled(){return $()}})};R(Ye,Ut=>{n(ce).interactive&&Ut(dt)})}b(pt,ze)}),w(xt),D(pt=>Lt=se(xt,1,"interactive-icons s-h",null,Lt,pt),[()=>({mobile:s(),hidden:s()&&!n(We)})]),b(Me,xt)};R(mt,Me=>{f()&&Me(Ht)})}var lt=L(mt,2);let Ct;lt.__pointerdown=[xx,i,A,$,We,Pe,_],lt.__pointermove=[wx,$,Pe,Ue,N,A,We,S],lt.__pointerup=[Sx,$,We,Pe,C],lt.__click=[Tx,$,le,Pe],lt.__contextmenu=[Cx,Pe,$,le,We,J];var oi=T(lt);{var Ot=Me=>{Vm(Me,{get videoEpisodes(){return n(ie)},get disabled(){return $()},get isMobile(){return s()}})},$e=Me=>{var xt=Ex(),Lt=T(xt),pt=L(Lt,2);let ce;w(xt),D(ze=>{Ve(Lt,"data-value",n(Ae)),Qe(Lt,`transform: translateX(${n(Ae)}%);`),ce=se(pt,1,"filled s-h",null,ce,ze),Ve(pt,"data-value",n(Fe)),Qe(pt,`transform: translateX(${n(Fe)}%);`)},[()=>({"active-live":d()})]),b(Me,xt)};R(oi,Me=>{n(ie).length?Me(Ot):Me($e,!1)})}var be=L(oi,2);let ee;var nt=T(be);let fe;w(be),w(lt),Xe(lt,Me=>i(Me),()=>i()),D((Me,xt,Lt,pt)=>{var ce,ze;Ct=se(lt,1,`slider ${(ce=o())!=null?ce:""}`,"s-h",Ct,Me),Ve(lt,"aria-label",we()),Ve(lt,"aria-valuemin",ue()),Ve(lt,"aria-valuemax",ne()),Ve(lt,"aria-valuenow",_e()),Ve(lt,"aria-valuetext",xe()),Ve(lt,"data-testid",(ze=r())!=null?ze:null),ee=se(be,1,"handleWrap s-h",null,ee,xt),Qe(be,Lt),fe=se(nt,1,"handle s-h",null,fe,pt)},[()=>({disabled:$(),"slider-dragging":n(We),hidden:a(),"handle-always-visible":Ne(),"slider-vertical":l(),"no-handle":y(),square:u()}),()=>({hidden:y()}),()=>`transform: translateX(${ye(Z())}%);`,()=>({"active-live":d()})]),_t("pointerenter",lt,De),_t("pointerleave",lt,Be),_t("mouseenter",lt,ot),_t("mouseleave",lt,U),_t("wheel",lt,ke),b(t,Ft),F()}it(["pointerdown","pointermove","pointerup","click","contextmenu"]);var ro=(t,e)=>Xd[t]>=Xd[e];var Ms=(t,e)=>Xd[t]<=Xd[e],$b=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var Lx=M("<div><!></div>"),Mx=M("<div><!> <!></div>"),Vx={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 Rm(t,e){var Ue,Je;B(e,!0),q(t,Vx);let[i,o]=Re(),r=()=>x(N,"$isAudioAvailable$",i),a=()=>x(f,"$muted$",i),l=()=>x(p,"$volume$",i),d=()=>x(S,"$currentGridType$",i),s=()=>x(De,"$controlsVisible",i),u=ve(),m=Nt(),p=u.state.volume$,f=u.state.muted$,{setVolume:$,startVolumeChanging:y,stopVolumeChanging:_}=u.actions.internal,S=u.ui.currentGridType$,C=(Ue=u.callbacks)==null?void 0:Ue.onAudioDoesNotExistHint,I=(Je=u.callbacks)==null?void 0:Je.onAudioDisabledHint,N=u.state.isAudioAvailable$,P=u.state.isAudioDisabled,E=u.ui.t,k=K(!1),Q,H=v(()=>e.isAds||r()),z=v(()=>!n(H)||a()||l()===0),Y=v(()=>Ms(d(),"l")),le=v(()=>n(Y)?"":n(z)?!r()||P?E("tooltip_sound_unavailable"):E("tooltip_volume"):E("tooltip_volume_muted")),X=v(()=>n(z)?E("tooltip_volume"):E("tooltip_volume_muted")),re=v(()=>n(z)?0:l()),Z=!1,we=v(()=>e.isAds?!1:P?!I:r()?!1:!C);function ue(ye){y(),$(ye)}function ne(){ip(u,l(),m.controls.volumeStepWheel)}function _e(){op(u,l(),m.controls.volumeStepWheel)}function xe(ye){$(ye)}function J(ye){$(ye),_()}function Ne(){Z=!0}function pe(){Z=!1,Te()}function A(){clearTimeout(Q),O(k,!0)}function We(){Te()}function Te(){Q=window.setTimeout(()=>{Z||O(k,!1)},m.controls.volumeBarTimeout)}function j(ye){ye.preventDefault(),ye.deltaY<0?ne():ye.deltaY>0&&_e()}let ie=K(!1),De=u.ui.controlsVisible;Oe(()=>{s()||O(ie,!1)});var Be=Mx();let ot;var U=T(Be);Qa(U,{get content(){return n(le)},translateY:-18,get active(){return n(ie)},set active(ye){O(ie,ye,!0)},children:(ye,Ae)=>{let Fe=v(()=>n(Y)?"btn-volume-vertical":"btn-volume-horizontal");Qt(ye,{className:"btn-full-opacity",get disabled(){return n(we)},get testId(){return n(Fe)},get ariaLabel(){return n(X)},get click(){return e.click},get ariaKeyShortCut(){return gs.KeyM},role:"button",children:(Ft,mt)=>{da(Ft,{get size(){return"24"},get volume(){return l()},get muted(){return n(z)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var ke=L(U,2);{var Pe=ye=>{var Ae=Lx();let Fe;var Ft=T(Ae);let mt=v(()=>n(Y)?"volumeBar-slider-vertical":""),Ht=v(()=>n(Y)&&!n(k)),lt=v(()=>n(Y)?Ne:vc.noop),Ct=v(()=>n(Y)?pe:vc.noop),oi=v(()=>Math.round(n(re)*100)),Ot=v(()=>`${Math.round(n(re)*100)}%`),$e=v(()=>n(Y)?"volume-slider-vertical":"volume-slider");Ga(Ft,{get className(){return n(mt)},get isHidden(){return n(Ht)},get isVertical(){return n(Y)},withWheelHandler:!0,onWheelUp:ne,onWheelDown:_e,onPointerDown:ue,onHandleMove:xe,onPointerUp:J,get onPointerEnter(){return n(lt)},get onPointerLeave(){return n(Ct)},ariaLabel:"Ползунок громкости",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return n(oi)},get ariaValueText(){return n(Ot)},get filledProgress(){return n(re)},get handleProgress(){return n(re)},get testId(){return n($e)}}),w(Ae),D(be=>Fe=se(Ae,1,"volumeBar s-28",null,Fe,be),[()=>({"volumeBar-vertical":n(Y)})]),b(ye,Ae)};R(ke,ye=>{n(H)&&ye(Pe)})}w(Be),D(ye=>ot=se(Be,1,"volumeBar-container s-28",null,ot,ye),[()=>({vertical:n(Y)})]),_t("mouseenter",Be,function(...ye){var Ae;(Ae=n(Y)?A:vc.noop)==null||Ae.apply(this,ye)}),_t("mouseleave",Be,function(...ye){var Ae;(Ae=n(Y)?We:vc.noop)==null||Ae.apply(this,ye)}),_t("wheel",Be,j),b(t,Be),F(),o()}var yb=require("@vkontakte/videoplayer-shared/es2015");var Rx=Ce('<path d="M4.58 13.98a1 1 0 0 1 .99-1h4.45a1 1 0 0 1 1 1v4.45a.99.99 0 0 1-1.99 0v-2.05L5.71 19.7a1 1 0 1 1-1.41-1.4l3.32-3.32H5.57a1 1 0 0 1-.99-1m10.39-6.36 3.32-3.32a1 1 0 1 1 1.41 1.4l-3.32 3.32h2.05a.99.99 0 0 1 0 1.98H14a1 1 0 0 1-1-1V5.57a.99.99 0 1 1 1.98 0z"></path>'),Nx=Ce('<path d="M10.5 19a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-4.5a1 1 0 0 1 2 0v2.07l3.36-3.36a1 1 0 0 1 1.42 0l.01.01a1 1 0 0 1 0 1.42L7.43 18H9.5a1 1 0 0 1 1 1M18 7.43l-3.36 3.36a1 1 0 0 1-1.42 0l-.01-.01a1 1 0 0 1 0-1.42L16.57 6H14.5a1 1 0 0 1 0-2H19a1 1 0 0 1 1 1v4.5a1 1 0 0 1-2 0z"></path>');function Nm(t,e){let i=g(e,"isFullscreen",8,!1),o=Cn(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");Ze(t,{get testId(){return n(o)},children:(r,a)=>{var l=Le(),d=de(l);{var s=m=>{var p=Rx();b(m,p)},u=m=>{var p=Nx();b(m,p)};R(d,m=>{i()?m(s):m(u,!1)})}b(r,l)},$$slots:{default:!0}})}function gc(t,e){B(e,!0);let i=g(e,"isFullscreen",3,!1),o=g(e,"click",3,yb.noop),r=ve(),a=r.ui.isFullscreenOpenedByKeyboard,l=r.ui.t,d=v(()=>i()?l("tooltip_fullscreen_on"):l("tooltip_fullscreen_off"));Qt(t,{testId:"fullscreen-btn",get ariaLabel(){return n(d)},click:u=>{let m=ra(u);a.set(m),o()()},get ariaKeyShortCut(){return gs.KeyF},role:"button",children:(u,m)=>{Nm(u,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),F()}var Ox=Ce('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4.26 4.26C3 5.54 3 7.57 3 11.65v.72c0 4.07 0 6.11 1.26 7.38C5.54 21 7.57 21 11.65 21h.72c4.07 0 6.11 0 7.38-1.26C21 18.47 21 16.43 21 12.36v-.72c0-4.07 0-6.11-1.26-7.38C18.47 3 16.43 3 12.36 3h-.72C7.57 3 5.53 3 4.26 4.26M6 8.5c.1 4.68 2.56 7.5 6.61 7.5h.24v-2.68c1.47.15 2.57 1.25 3.02 2.68H18a6 6 0 0 0-3-3.76 5.7 5.7 0 0 0 2.55-3.74h-1.94c-.4 1.49-1.61 2.84-2.77 2.97V8.5h-1.96v5.2c-1.2-.3-2.76-1.76-2.83-5.2z" clip-rule="evenodd"></path></svg>');function Om(t,e){let i=Ln(e,["$$slots","$$events","$$legacy","children"]);var o=Ox();no(o,()=>Ie({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:ht}),vi(),w(o),b(t,o)}var Dx=Ce('<svg><!><svg data-logo="vk_video"><path d="M7 8.6c0-1.96 0-2.94.38-3.69a3.5 3.5 0 0 1 1.53-1.53C9.66 3 10.64 3 12.6 3h1.36c2.46 0 3.7 0 4.64.48a4.4 4.4 0 0 1 1.92 1.92c.48.94.48 2.18.48 4.64v3.92c0 2.46 0 3.7-.48 4.64a4.4 4.4 0 0 1-1.92 1.92c-.94.48-2.18.48-4.64.48H12.6c-1.96 0-2.94 0-3.69-.38a3.5 3.5 0 0 1-1.53-1.53C7 18.34 7 17.36 7 15.4zm9.26 1.74c.9.54 1.36.81 1.51 1.16.13.3.13.65 0 .96-.15.34-.6.61-1.5 1.15l-2.4 1.43c-.93.56-1.4.84-1.8.8-.33-.03-.64-.2-.84-.48-.23-.31-.23-.86-.23-1.96v-2.85c0-1.1 0-1.64.23-1.96q.31-.42.85-.48c.38-.04.86.25 1.8.8zM5 9.04c0-2.46 0-3.7.48-4.64q.37-.71.95-1.25-.58.1-1.03.33A4.4 4.4 0 0 0 3.48 5.4C3 6.34 3 7.58 3 10.04v3.92c0 2.46 0 3.7.48 4.64a4.4 4.4 0 0 0 1.92 1.92q.45.23 1.03.33a4 4 0 0 1-.95-1.25C5 18.66 5 17.42 5 14.96z"></path></svg><svg x="4" y="3" data-logo="play_market"><path d="M0 1.26v15.47q0 .66.34 1L9.52 9 .33.28C.08.53 0 .92 0 1.26"></path><path d="M.33.28.38.23c.34-.3.89-.32 1.49 0l10.75 5.81-2.6 2.48zm10.29 8.75 2.88 2.45-.53.29-.34.18-2.58-2.44-9.71 8.22c.33.34.9.37 1.53.04l11.1-6 .53-.29 2.73-1.47c1.03-.56 1.03-1.47 0-2.02l-2.77-1.5-.84-.45.84.45.1.05z"></path></svg><svg x="3" data-logo="app_store"><path d="M17.62 16.37q-.48 1.09-1.15 2.03-.9 1.27-1.48 1.75-.88.8-1.9.83-.72 0-1.76-.42a5 5 0 0 0-1.89-.4q-.9 0-1.94.4a5 5 0 0 1-1.68.44q-.98.04-1.95-.85-.62-.53-1.55-1.82a13 13 0 0 1-1.63-3.2 12 12 0 0 1-.69-3.8q0-2.1.93-3.64A5.4 5.4 0 0 1 5.5 5.03q.77 0 2.03.46t1.62.47q.26 0 1.79-.55a6 6 0 0 1 2.43-.42 5.2 5.2 0 0 1 4.05 2.09q-2.4 1.44-2.4 4.02a4.4 4.4 0 0 0 1.49 3.34q.66.61 1.48.95-.18.5-.38.98M13.5.42q0 1.58-1.17 2.94c-.94 1.08-2.07 1.7-3.3 1.6L9 4.56c0-1 .45-2.08 1.24-2.96q.6-.67 1.5-1.12.93-.44 1.74-.48z"></path></svg><path d="M32.55 17.04h2.5L38.7 7h-1.8l-2.94 8.28h-.28L30.84 7H29zm15.52 0-4.61-5.2L47.72 7H45.6l-3.56 4.09h-.42V7h-1.7v10.04h1.7v-4.3h.43l3.76 4.3z"></path><path d="M57.89 11.89a2.2 2.2 0 0 0 1.44-2.16C59.33 8.14 58 7 56.06 7h-3.92v10.04h4.2c1.96 0 3.29-1.14 3.29-2.8 0-1.17-.66-2.04-1.74-2.35m-4.04-3.4h2.21c.92 0 1.54.56 1.54 1.39 0 .8-.62 1.36-1.54 1.36h-2.2zm2.5 7.06h-2.5v-2.81h2.5c.9 0 1.52.57 1.52 1.4 0 .84-.62 1.4-1.52 1.4m4.84 1.5h2.32l2.77-5.5h.22v5.5h1.57v-7.4h-2.32l-2.77 5.5h-.22v-5.5h-1.57zm7.96 2.21h1.64v-2.2h5.33v2.2h1.64v-3.7h-1.29V9.64h-5.43l-.37 3.78c-.13 1.34-.53 2.13-1.34 2.13h-.18zm2.49-3.7c.4-.39.57-1.04.68-2.15l.23-2.27h2.28v4.42zm14.38-2.3a3.7 3.7 0 0 0-3.84-3.76 3.7 3.7 0 0 0-3.85 3.85 3.7 3.7 0 0 0 3.85 3.84c1.54 0 2.99-.72 3.55-2.13l-1.54-.26c-.36.53-1.04.9-1.91.9-1.26 0-2.09-.77-2.24-1.91H86zm-3.84-2.33c1.02 0 1.8.65 2.06 1.58h-4.1a2.1 2.1 0 0 1 2.04-1.58m8.66 6.26c2.32 0 3.96-1.6 3.96-3.84 0-2.25-1.64-3.85-3.96-3.85s-3.97 1.6-3.97 3.85 1.64 3.84 3.97 3.84m0-1.5c-1.34 0-2.25-.95-2.25-2.34 0-1.4.9-2.35 2.25-2.35 1.34 0 2.25.95 2.25 2.35s-.91 2.35-2.25 2.35" class="_ru"></path><path d="M35.02 17.36h-2.48L29 7.42h1.83l2.83 8.2h.28l2.93-8.2h1.8zm8.41-5.15 4.6 5.15h-2.24l-3.75-4.26h-.43v4.26h-1.7V7.42h1.7v4.05h.41l3.55-4.05h2.1zm13.37 5.15h-2.48L50.8 7.42h1.83l2.82 8.2h.29l2.92-8.2h1.8zm6.46 0h-1.64v-7.33h1.64zm-.81-8.37q-.45 0-.74-.27a1 1 0 0 1-.28-.72q0-.44.28-.72.3-.28.74-.28t.72.28q.3.29.29.72 0 .44-.29.72t-.72.27m5.93 8.51q-1.03 0-1.86-.48a3.5 3.5 0 0 1-1.29-1.35 4 4 0 0 1-.45-1.98q0-1.1.45-1.95.46-.88 1.3-1.36.81-.5 1.85-.5.9 0 1.6.38.68.35 1.13.88V7.42h1.63v9.94h-1.22l-.34-1.18q-.46.54-1.17.94a3.4 3.4 0 0 1-1.63.38m.4-1.45q1.04 0 1.68-.65.65-.66.65-1.7t-.65-1.7a2.2 2.2 0 0 0-1.68-.66 2.2 2.2 0 0 0-1.66.66q-.64.66-.64 1.7t.64 1.7q.64.65 1.66.65m13.15-2.44-.03.52h-5.94q.12.86.71 1.38.6.51 1.52.51.63 0 1.13-.24.51-.24.78-.65l1.53.26q-.39 1.01-1.38 1.56-.96.55-2.16.55-1.1 0-1.98-.48a3.6 3.6 0 0 1-1.85-3.33q0-1.1.48-1.95.5-.88 1.37-1.36a4 4 0 0 1 1.98-.5q1.11 0 1.98.5.88.48 1.36 1.34.5.86.5 1.89m-3.84-2.31q-.73 0-1.29.42-.53.42-.74 1.14h4.1a2.2 2.2 0 0 0-2.07-1.56m8.66 6.2q-1.14 0-2.04-.48a3.7 3.7 0 0 1-1.4-1.35 4 4 0 0 1-.5-1.98q0-1.1.5-1.95.5-.88 1.4-1.36.9-.5 2.04-.5t2.03.5q.91.48 1.4 1.36.52.86.52 1.95 0 1.11-.51 1.98-.5.86-1.4 1.35-.9.48-2.04.48m0-1.48q.99 0 1.62-.63.63-.66.63-1.7t-.63-1.67a2.2 2.2 0 0 0-1.62-.65q-.99 0-1.62.65-.62.63-.62 1.67 0 1.05.62 1.7.63.63 1.62.63" class="_en"></path></svg>');function Dm(t,e){let i=Ln(e,["$$slots","$$events","$$legacy","children"]);var o=Dx();no(o,()=>Ie({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:ht}),vi(6),w(o),b(t,o)}var Bx={hash:"s-29",code:"svg [data-logo],svg[data-testid=vk-video-logo-icon--en] ._ru,svg[data-testid=vk-video-logo-icon--short] ._en,svg[data-testid=vk-video-logo-icon--short] ._ru,svg[data-testid=vk-video-logo-icon] ._en{opacity:0;visibility:hidden}svg[data-logo=app_store] [data-logo=app_store],svg[data-logo=play_market] [data-logo=play_market],svg[data-logo=vk_video] [data-logo=vk_video]{opacity:1;visibility:visible}"};function Bm(t,e){B(e,!0),q(t,Bx);let i=g(e,"short",3,!1),o=g(e,"isCyrillic",3,!0),r=g(e,"logo",19,()=>"vk_video"),a="vk-video-logo-icon--short",l=24,d=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()}}),F()}function hc(t,e){B(e,!0);let[i,o]=Re(),r=()=>x($,"$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,""),m=Nt(),p=ve(),f=p.ui.currentGridType$,$=p.ui.isMobile,y=p.ui.t,_=p.isCyrillicRelatedInterface$,S=v(()=>m.logoType!=="vk"),C=v(()=>n(S)?y("tooltip_vk_video_logo"):y("tooltip_vk_logo")),I=v(()=>(r()&&Ms(a(),"m")||Ms(a(),"l"))&&n(S)),N=()=>{var k,Q;e.click(),(k=p.callbacks)!=null&&k.onLogoClicked?(Q=p.callbacks)==null||Q.onLogoClicked():u()&&window.open(u(),"_blank")},P=v(()=>!s()),E=v(()=>n(S)?"btn-vk-video-logo":"btn-vk-logo");Qt(t,{className:"btn-full-opacity",get disabled(){return n(P)},click:N,get testId(){return n(E)},get ariaLabel(){return n(C)},get ref(){return d()},set ref(k){d(k)},children:(k,Q)=>{var H=Le(),z=de(H);{var Y=X=>{Bm(X,{get logo(){return m.logoType},get short(){return n(I)},get isCyrillic(){return l()}})},le=X=>{Om(X,{})};R(z,X=>{n(S)?X(Y):X(le,!1)})}b(k,H)},$$slots:{default:!0}}),F(),o()}var wb=require("@vkontakte/videoplayer-core/es2015");var Fm=require("@vkontakte/videoplayer-core/es2015");var Fx=Ce('<path d="M3.6 13.3a5.1 5.1 0 0 1 5.05 5.83.9.9 0 0 1-1.78-.26 3.3 3.3 0 0 0-3.74-3.74.9.9 0 0 1-.26-1.78c.24-.03.49-.05.73-.05Z" class="s-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),Hx=Ce('<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),Ux={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){B(e,!0),q(t,Ux);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?hn(e.size):void 0);var d=Le(),s=de(d);{var u=p=>{Ze(p,{get fill(){return n(a)},get style(){return n(l)},testId:"chromecast-mobile-icon",children:(f,$)=>{var y=Fx();vi(2),b(f,y)},$$slots:{default:!0}})},m=p=>{Ze(p,{get style(){return n(l)},testId:"chromecast-icon",children:(f,$)=>{var y=Hx(),_=de(y);let S;var C=L(_);let I;var N=L(C);let P;var E=L(N,2);let k;D((Q,H,z,Y)=>{S=se(_,0,"wave1 s-1c",null,S,Q),I=se(C,0,"wave2 s-1c",null,I,H),P=se(N,0,"wave3 s-1c",null,P,z),k=se(E,0,"s-1c",null,k,Y)},[()=>({animated:n(r)}),()=>({animated:n(r)}),()=>({animated:n(r)}),()=>({hidden:!n(o)})]),b(f,y)},$$slots:{default:!0}})};R(s,p=>{i()?p(u):p(m,!1)})}b(t,d),F()}var Sb=require("@vkontakte/videoplayer-shared/es2015");function bc(t,e){B(e,!0);let i=g(e,"ref",15,void 0),o=g(e,"isMobile",3,!1),r=g(e,"click",3,Sb.noop),l=ve().ui.t,d=v(()=>e.state===wb.ChromecastState.CONNECTED?l("tooltip_chromecast_on"):l("tooltip_chromecast_off"));Qt(t,{get ariaLabel(){return n(d)},get click(){return r()},testId:"btn-chromecast",get ref(){return i()},set ref(s){i(s)},children:(s,u)=>{_c(s,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),F()}var Tb=require("@vkontakte/videoplayer-shared/es2015");var zx=Ce('<path d="m21.62 16.5-.02.07q-.22 1.27-.42 2.09a5 5 0 0 1-.64 1.5 4.4 4.4 0 0 1-2.51 1.73q-.77.18-1.63.07t-2.11-.34l-4.34-.8q-1.27-.22-2.1-.42a5 5 0 0 1-1.5-.65 4.4 4.4 0 0 1-1.72-2.5 5 5 0 0 1-.07-1.63q.1-.84.34-2.11l.01-.07q.22-1.27.43-2.1a5 5 0 0 1 .64-1.5 4.4 4.4 0 0 1 2.5-1.73 5 5 0 0 1 1.64-.07q.83.1 2.1.35l4.34.8q1.28.21 2.1.42a5 5 0 0 1 1.5.64 4.4 4.4 0 0 1 1.73 2.5q.18.78.07 1.64-.1.83-.34 2.1m-1.45-2.3c.05-.49.03-.77-.02-1a2.6 2.6 0 0 0-1.02-1.48 3 3 0 0 0-.93-.37c-.48-.13-1.1-.24-2-.4l-4.26-.79c-.9-.16-1.52-.27-2.01-.33a3 3 0 0 0-1 .03 2.6 2.6 0 0 0-1.48 1.02 3 3 0 0 0-.37.92c-.13.48-.24 1.1-.4 2s-.28 1.51-.33 2c-.06.5-.04.78.02 1 .15.6.51 1.13 1.02 1.48.19.13.45.25.92.37.48.13 1.1.25 2 .4l4.27.79c.9.16 1.52.28 2.01.33s.77.03 1-.02a2.6 2.6 0 0 0 1.47-1.03c.14-.19.25-.45.38-.92.12-.48.24-1.1.4-2s.28-1.51.33-2"></path><path d="M18.19 7.49a.9.9 0 0 1-1.05-.73c-.14-.8-.2-1.08-.28-1.3A2.6 2.6 0 0 0 14.5 3.8c-.22 0-.5.04-1.31.17l-5.85.96a8 8 0 0 0-2.17.5 2.6 2.6 0 0 0-1.33 1.75c-.08.38-.04.85.11 2.23l.01.1a.9.9 0 1 1-1.78.2l-.01-.1-.02-.17a9 9 0 0 1-.07-2.64 4.4 4.4 0 0 1 2.25-2.97c.63-.33 1.42-.46 2.56-.65l.16-.03 5.85-.96.1-.01c.67-.11 1.13-.19 1.55-.18a4.4 4.4 0 0 1 4 2.82c.14.39.23.85.35 1.53l.01.1a.9.9 0 0 1-.72 1.04"></path><path d="M12.72 12.41a.42.42 0 0 0-.69.23l-.72 4.18a.4.4 0 0 0 .03.23c.08.2.33.3.54.22l3.67-1.47a.4.4 0 0 0 .12-.68z"></path>',1);function Hm(t){Ze(t,{testId:"episodes-icon",children:(e,i)=>{var o=zx();vi(2),b(e,o)},$$slots:{default:!0}})}var ap=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var Wx=M('<span class="text mobile s-24"> </span> <div class="chevron-episodes s-24" data-testid="btn-episodes_icon"><!></div>',1),Kx=M('<span class="text s-24"> </span>'),qx=M('<span class="text count s-24"> </span>'),Qx=M('<span class="icon s-24"><!></span> <!>',1),Gx={hash:"s-24",code:".icon.s-24{flex-shrink:0}.text.s-24{overflow:hidden;padding:0 8px;text-overflow:ellipsis;white-space:nowrap}.text.count.s-24{overflow:visible}.text.mobile.s-24{padding:0 3px 0 4px}.chevron-episodes.s-24{margin-bottom:-6px;opacity:.7;transform:scale(.8)}"};function $c(t,e){var Z,we,ue;B(e,!0),q(t,Gx);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),m=g(e,"timeCodes",19,()=>[]),p=ve(),f=(we=(Z=p.callbacks)==null?void 0:Z.onEpisodeChanged)!=null?we:Tb.noop,$=!!((ue=p.callbacks)!=null&&ue.onEpisodeClicked),y=p.ui.currentGridType$,_=p.ui.episodes.openedByKeyboard$,S=p.ui.episodes.panelOpened$,C=p.ui.isMobile,I=p.ui.t,N=K(void 0),P=ne=>{var xe,J,Ne;if(!!((xe=p.callbacks)!=null&&xe.onEpisodeClicked)){let pe=ra(ne);_.set(pe),S.set(!0),(Ne=(J=p.callbacks)==null?void 0:J.onEpisodeClicked)==null||Ne.call(J,pe)}},E=K(null),k=v(()=>s()/u());Oe(()=>{var _e;let ne=ap(n(k),u(),m());ne?((_e=n(E))==null?void 0:_e.time)!==ne.time&&(f(ne),O(E,ne,!0)):O(E,null)});let Q=v(()=>{var ne;return((ne=n(E))==null?void 0:ne.text)||""}),H=v(()=>ro(r(),"xl")?"FULL":ro(r(),"m")?"COUNT":"SHORT"),z=v(()=>`${I("tooltip_episodes")}: ${n(Q)}`),Y=(ne,_e,xe)=>gt(null,null,function*(){yield yo(),(ne==null?void 0:ne.getAttribute("aria-expanded"))==="false"&&_e&&!xe&&Pt(()=>{_.set(!1),ne.focus()})});Oe(()=>{Y(n(N),a(),l())});var le=Le(),X=de(le);{var re=ne=>{let _e=v(()=>d()?"px-0":""),xe=v(()=>!$);Qt(ne,{get className(){var J;return`w-max btn-full-opacity btn-jc-l ${(J=n(_e))!=null?J:""}`},testId:"btn-episodes",click:P,get disabled(){return n(xe)},get ariaExpanded(){return l()},get ariaLabel(){return n(z)},get ref(){return n(N)},set ref(J){O(N,J,!0)},children:(J,Ne)=>{var pe=Le(),A=de(pe);{var We=j=>{var ie=Wx(),De=de(ie),Be=T(De,!0);w(De);var ot=L(De,2),U=T(ot);Vr(U,{direction:"right"}),w(ot),D(()=>me(Be,n(Q))),b(j,ie)},Te=j=>{var ie=Qx(),De=de(ie),Be=T(De);Hm(Be,{}),w(De);var ot=L(De,2);{var U=Pe=>{var Ue=Kx(),Je=T(Ue,!0);w(Ue),D(()=>me(Je,n(Q))),b(Pe,Ue)},ke=(Pe,Ue)=>{{var Je=ye=>{var Ae=qx(),Fe=T(Ae,!0);w(Ae),D(()=>me(Fe,m().length)),b(ye,Ae)};R(Pe,ye=>{n(H)==="COUNT"&&ye(Je)},Ue)}};R(ot,Pe=>{n(H)==="FULL"?Pe(U):Pe(ke,!1)})}b(j,ie)};R(A,j=>{d()?j(We):j(Te,!1)})}b(J,pe)},$$slots:{default:!0}})};R(X,ne=>{n(E)&&ne(re)})}b(t,le),F(),o()}var dv=require("@vkontakte/videoplayer-shared/es2015");var _i=require("@vkontakte/videoplayer-core/es2015"),rt=require("@vkontakte/videoplayer-shared/es2015"),_s=require("@vkontakte/videoplayer-statistics/es2015");var Ge=require("@vkontakte/videoplayer-shared/es2015"),so=require("@vkontakte/videoplayer-shared/es2015");var Yx="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",lp=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 so.Subject,loadStarted$:new so.Subject,loadEnded$:new so.Subject,loadError$:new so.Subject,ready$:new so.Subject,slotRequested$:new so.Subject,started$:new so.Subject,timeRemained$:new so.Subject,paused$:new so.Subject,resumed$:new so.Subject,ended$:new so.Subject,empty$:new so.Subject,skipped$:new so.Subject,clicked$:new so.Subject,closed$:new so.Subject,error$:new so.Subject};this.loadAdman=e=>(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[(0,Ge.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?(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[(0,Ge.now)()]}),i(),this.events.loadEnded$.next()):(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[(0,Ge.now)()]}),o())};(0,so.addScript)(Yx,e,this.loadTimeout).then(()=>{Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[(0,Ge.now)()]}),window.AdmanHTML?(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[(0,Ge.now)()]}),i(),this.events.loadEnded$.next()):(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[(0,Ge.now)()]}),window.admanAsyncInit=a,r=window.setTimeout(a,this.initTimeout))}).catch(l=>{Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(l)],numbers:[(0,Ge.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?(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[(0,Ge.now)()]}),i(),this.events.loadEnded$.next()):(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[(0,Ge.now)()]}),o())},l=()=>{d=!0,o()},d=!1,s=window.setTimeout(()=>{Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[(0,Ge.now)()]}),l()},this.loadTimeout);e.addEventListener("abort",l),e.aborted&&(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[(0,Ge.now)()]}),l()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[(0,Ge.now)()]}),!d&&(window.AdmanHTML?(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[(0,Ge.now)()]}),i(),this.events.loadEnded$.next()):(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[(0,Ge.now)()]}),window.admanAsyncInit=a,r=window.setTimeout(a,this.initTimeout)))},l).finally(()=>{clearTimeout(r),clearTimeout(s),e.removeEventListener("abort",l)})});this.onAdsReady=()=>{Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[(0,Ge.now)()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{var o;Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[(0,Ge.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;Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.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;Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.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(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[(0,Ge.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;Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.now)()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.now)()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.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;Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.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")=>{Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[(0,Ge.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"),Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[(0,Ge.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 N,P;if(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[(0,Ge.now)(),e.slotId]}),this.adman)return;this.events.init$.next(e.slotId),this.startWatchDog();let{width:i,height:o,isAutoplay:r,adsContainer:a,adsVideoElement:l,slotId:d,params:s={},paramsOverride:u={},duration:m,externalApi:p}=e;this.externalApi=p;let f,$=this.playerState&&ge(this.playerState.vsid);$&&(this.isVsidOriginal?f=$:f=parseInt($,36));let{isEmbed:y,immediateOrigin:_}=(0,Ge.detectEmbed)(),S=(N=y?_:window.location.href)!=null?N:window.location.href,C=Ie(jt(Ie(jt(Ie({},s),{dl:encodeURIComponent(S),autoplay:r?1:0,player_width:i,player_height:o}),f?{request_id:f}:{}),{duration:m}),u);C=Object.fromEntries(Object.entries(C).filter(([E,k])=>(0,Ge.isNonNullable)(k)));let I={slot:d,wrapper:a,videoEl:l,videoQuality:o,params:C,browser:{mobile:!1}};try{let E=new window.AdmanHTML;if(E.onReady(this.onAdsReady),E.onStarted(this.onAdStarted),E.onPlayed(this.onAdPlayed),E.onPaused(this.onAdPaused),E.adMidrollPoint(this.onAdMidrollPoint),E.onClosed(this.onAdClosed),E.onSkipped(this.onAdSkipped),E.onClicked(this.onAdClicked),E.onTimeRemained(this.onAdTimeRemained),E.onCompleted(this.onAdCompleted),E.onError(this.onAdError),E.setDebug(!1),(P=this.externalApi)!=null&&P.videoGetAds){let k=yield this.safeExternalCall(this.externalApi.videoGetAds,C);k&&(delete I.slot,delete I.params,Object.assign(I,{json:k}))}E.init(I),this.adman=E,this.videoElement=l,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(I)}`})}catch(E){Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(E)],numbers:[(0,Ge.now)()]}),this.onAdError("could not init adman")}})}switchToVideo(e=!1){var o,r,a;if(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[(0,Ge.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(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.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(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[(0,Ge.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(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.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(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.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(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.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(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch(i){this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}setPosition(e,i){var o;(o=this.adman)==null||o.setPosition(Math.floor(e),Math.floor(i))}destroy(){var e,i,o,r,a,l,d,s,u,m,p,f;Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[(0,Ge.now)()]}),this.log({message:"destroy"}),this.stopWatchDog(),(e=this.adman)==null||e.onReady(void 0),(i=this.adman)==null||i.onStarted(void 0),(o=this.adman)==null||o.onPlayed(void 0),(r=this.adman)==null||r.onPaused(void 0),(a=this.adman)==null||a.adMidrollPoint(void 0),(l=this.adman)==null||l.onClosed(void 0),(d=this.adman)==null||d.onSkipped(void 0),(s=this.adman)==null||s.onClicked(void 0),(u=this.adman)==null||u.onTimeRemained(void 0),(m=this.adman)==null||m.onCompleted(void 0),(p=this.adman)==null||p.onError(void 0),(f=this.adman)==null||f.destroy(),this.videoElement&&(0,so.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 Cb=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 dp,{startTime:m,endTime:p}=u.parse(s);l.startTime=m,l.endTime=p}else if(s.trim()!==""){let u=new zm,{texts:m}=u.parse(s);l.texts=[...l.texts,...m]}(l.startTime||l.endTime)&&l.texts.length>0&&o.push(l)}return o}},dp=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((m,p)=>{let f=l.indexOf(p,d);return m===-1||m>f?f:m},-1);if(u===-1){s.push(l.substring(d));break}s.push(l.substring(d,u)),d=u+1}return s}}),a=new dp;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}},Ib=Um;var up=require("@vkontakte/videoplayer-shared/es2015"),Ya,Mi,Wm=0,Km=!1,Eb="",Pb=(t,e=0,i=0)=>t<e&&t<i,cp=(t,e=0,i=0)=>t>=e&&t<=i,jx=(t,e=0,i=0)=>t>e&&t>i,Ab=(t,e,i,o=!1)=>{var d;let r=(d=i.find(({id:s})=>s===e.value))==null?void 0:d.subtitles;if(o)return r==null?void 0:r.find(({startTime:u,endTime:m})=>cp(t,u,m));let a=t>=Wm,l=t<Wm;if(Wm=t,l&&(Km=!1),(0,up.isNonNullable)(Ya)&&cp(t,Ya.startTime,Ya.endTime)&&Eb===e.value)return Ya;if(!(0,up.isNonNullable)(Mi)&&(r!=null&&r.length)&&!Km){Mi=r.find(({startTime:u,endTime:m})=>cp(t,u,m)||a&&Pb(t,u,m)),Ya=void 0,!(0,up.isNonNullable)(Mi)&&r[r.length-1].endTime<t&&(Km=!0);return}else{if(cp(t,Mi==null?void 0:Mi.startTime,Mi==null?void 0:Mi.endTime))return Ya=Mi,Mi=void 0,Eb=e.value,Ya;(a&&jx(t,Mi==null?void 0:Mi.startTime,Mi==null?void 0:Mi.endTime)||l&&Pb(t,Mi==null?void 0:Mi.startTime,Mi==null?void 0:Mi.endTime))&&(Mi=void 0)}};var pp={ru:"Русский",en:"English",uk:"Українська",be:"Беларуская (тарашкевiца)",es:"Español",fi:"Suomi",de:"Deutsch",it:"Italiano",bg:"Български",hr:"Hrvatski",hu:"Magyar",sr:"Српски",pt:"Português",el:"Ελληνικά",pl:"Polski",fr:"Français",ko:"한국어","zh-CN":"汉语",lt:"Lietuvių",ja:"日本語",cs:"Čeština",et:"Eesti",tt:"Татарча",ba:"Башҡортса",cv:"Чăвашла",sk:"Slovenčina",ro:"Română",no:"Norsk",lv:"Latviešu",az:"Azərbaycan dili",hy:"Հայերեն",sv:"Svenska",nl:"Nederlands",tk:"Türkmen",ka:"ქართული",da:"Dansk",uz:"O‘zbek",th:"ภาษาไทย",id:"Bahasa Indonesia",tg:"Тоҷикӣ",sl:"Slovenščina",bs:"Bosanski","pt-BR":"Português brasileiro",fa:"فارسی",vi:"Tiếng Việt",hi:"हिन्दी",si:"සිංහල",bn:"বাংলা",tl:"Tagalog",mn:"Монгол",my:"ဗမာစာ",tr:"Türkçe",ne:"नेपाली",ur:"اردو",ky:"Кыргыз тили",pa:"پنجابی",os:"Ирон",kn:"ಕನ್ನಡ",sw:"Kiswahili",kk:"Қазақша",ar:"العربية",he:"עברית",ab:"Аҧсшәа",eu:"Euskara",eo:"Esperanto"},Xx={abk:"as",ara:"ar",aze:"az",bak:"ba",bel:"be",ben:"bn",bos:"bs",bul:"bg",ces:"cs",chv:"cv",dan:"da",deu:"de",ell:"el",eng:"en",epo:"eo",est:"et",eus:"eu",fas:"fa",fin:"fi",fra:"fr",heb:"he",hin:"hi",hrv:"hr",hun:"hu",hye:"hy",ind:"id",ita:"it",jpn:"ja",kan:"kn",kat:"ka",kaz:"kk",kir:"ky",kor:"ko",lav:"lv",lit:"lt",mon:"mn",mya:"my",nep:"ne",nld:"nl",nor:"no",oss:"os",pan:"pa",pol:"pl",por:"pt",ron:"ro",rus:"ru",sin:"si",slk:"sk",slv:"sl",spa:"es",srp:"sr",swa:"sw",swe:"sv",tat:"tt",tgk:"tg",tgl:"tl",tha:"th",tuk:"tk",tur:"tr",ukr:"uk",urd:"ur",uzb:"uz",vie:"vi"},yc=t=>{var e,i;return(i=(e=pp[t])!=null?e:pp[Xx[t]])!=null?i:void 0};var kb=require("@vkontakte/videoplayer-shared/es2015"),F7=require("@vkontakte/videoplayer-statistics/es2015"),fp=class{constructor(e,i,o,r=new kb.Subscription){this.oneStat=e;this.thinOneStat=i;this.mediascopePixel=o;this.statSubscription=r}destroy(){var e,i,o;(e=this.oneStat)==null||e.destroy(),(i=this.thinOneStat)==null||i.destroy(),(o=this.mediascopePixel)==null||o.destroy(),this.statSubscription.unsubscribe()}};var xc=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(xc||{});var hs=t=>t!=null?t:0,Vs=(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(hs(i==null?void 0:i.top)-hs(o==null?void 0:o.top)),left:Math.round(hs(i==null?void 0:i.left)-hs(o==null?void 0:o.left)),bottom:Math.round(hs(i==null?void 0:i.bottom)-hs(o==null?void 0:o.top)),right:Math.round(hs(i==null?void 0:i.right)-hs(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:hs(e==null?void 0:e.width),height:hs(e==null?void 0:e.height)}};var Rn="off";var id=t=>!!(Math.round(Math.abs(t)/90)%2);var Lb=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:r,statAuthToken:a,isAudioDisabled:l,canDownload:d,callbacks:s,webApi:u,videoEpisodes:m,previewThumbsData:p,uiConfig:f,coreConfig:$,player:y,disabledControls:_,isInteractive:S,interactiveRanges$:C,isInteractiveTime$:I,replayInteractive:N,stopPlayer:P,hasInteractiveBranches:E,playPrevChapterDisabledTooltip:k,additionalButtons:Q,additionalSettingsMenuItems:H,additionalContextMenuItems:z,playPrevVideo:Y,playNextVideo:le,onVideoChanged:X,looped:re=!1,statistics:Z,saveRate:we,internalsExposure:ue,playerView:ne,playerId:_e})=>{var _g,bg,$g;let xe=jt(Ie({},$),{configName:[...(_g=$.configName)!=null?_g:[],"ui"],isAudioDisabled:l,live:jt(Ie({},(bg=$.live)!=null?bg:{}),{isLiveCatchUpMode:!!r})}),J=f,Ne=rt.TracerFactory.createRootTracer(J.features.tracer),pe=Ne.createComponentTracer("Store"),A=y||new _i.Player(xe,Ne,{playerId:_e});ue==null||ue.expose({corePlayer:A});let We=new rt.Logger,Te=new lp(We,{loadTimeout:J.ads.loadTimeout,initTimeout:J.ads.initTimeout,runtimeTimeout:J.ads.runtimeTimeout,useAdmanFromNPM:J.ads.useAdmanFromNPM,volumeMultiplier:J.ads.volumeMultiplier,isVsidOriginal:J.ads.isVsidOriginal}),j=Ba.getInstance(),ie=u==null?void 0:u.pictureInPictureApi,De=u==null?void 0:u.annotationsApi,Be=u==null?void 0:u.slotsApi,ot=u==null?void 0:u.focusManager,U=We.createComponentLog("Store"),ke,Pe,Ue={},Je=new Du,ye=new rt.Subscription,Ae="",Fe=ae(!1),Ft=Z&&Z.oneStat?li(Z.oneStat.vsid$):Mr(void 0),mt=ae(ia()),Ht=ae(!1),lt=()=>Z_(document,_i.clientChecker.device.isIOS),Ct=($g=ie==null?void 0:ie.info.isActive$)!=null?$g:new rt.ValueSubject(!1),oi=ae(0),Ot=ae(!1),$e=ae(!1),be=ae([]),ee=(0,rt.merge)(A.events.fatalError$,A.events.managedError$).subscribe(c=>be.update(h=>[...h,c])),nt=Mr(!1,c=>{let h=A.events.fatalError$.subscribe(()=>c(!0));return()=>h.unsubscribe()}),fe=c=>gt(null,null,function*(){var oe;let h=Object.values(rt.InterfaceLanguage).includes(c);if(J.downloadVKLanguages&&(h&&J.updateBuiltinLanguages||!im(c))){let Se;try{Se=yield(0,rt.loadVKLangPack)(c,d_,c_)}catch(tt){(oe=Z==null?void 0:Z.oneStat)==null||oe.logError({errorType:"VKLangPack",fatal:!1}),j==null||j.report(tt,{errorType:"VKLangPack",fatal:!1})}Se&&(tm({language:c,pack:Se,fallback:J.defaultLanguage}),Me.set(c),xt.update(tt=>tt+1))}im(c)&&Me.set(c)}),Me=ae(t),xt=ae(0),Lt=ae(e);fe(t);let pt=(c,h)=>{let V=ge(Me);return om(V,c,h,J.defaultLanguage)},ce=ae("thumb");ce.subscribe(c=>{c==="ads"&&A.info.playbackState$.getValue()&&dt()});let ze=(()=>{let c=gi([nt,ce],([h,V])=>h?"crashed":V);return jt(Ie({},c),{is:h=>ge(c)===h})})(),Ye=ae(),dt=()=>{Ye.set({muted:A.info.muted$.getValue()})},Ut=(()=>{let c=ae(new Set(_));return jt(Ie({},c),{add:h=>{c.update(V=>new Set([...V].concat(h)))},remove:h=>{c.update(V=>{let oe=[...V];return new Set(Array.isArray(h)?oe.filter(Se=>!h.includes(Se)):oe.filter(Se=>Se!==h))})},includes:h=>{let V=ge(c);return Array.isArray(h)?h.every(oe=>V.has(oe)):V.has(h)}})})(),zt=ae({width:0,height:0}),ri=null,wi=A.info.isBuffering$,Zi=Mr(wi.getValue(),c=>{let h=wi.subscribe(V=>{V&&ri===null?ri=window.setTimeout(()=>{c(wi.getValue()),ri=null},J.loaderDelay):c(V)});return()=>{h.unsubscribe(),ri&&clearTimeout(ri)}});pe.log("create store"),U({message:"create store"});let Dt=c=>{let h=c.container,V=()=>{ti=new MutationObserver(Se=>{let{removedNodes:tt}=Se[0];tt.length&&h.append(A.experimental.element$.getValue())}),ti.observe(h,{childList:!0})},oe=A.experimental.element$.getValue();if(oe)h.append(oe),V();else{let Se=A.experimental.element$.pipe((0,rt.filter)(tt=>!!tt),(0,rt.once)()).subscribe(tt=>{h.append(tt),V()});ye.add(Se)}},fi=c=>{U({message:`init video, config: ${JSON.stringify(c)}`}),S?Dt(c):(rt.devNull.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[(0,rt.now)()]}),A.initVideo(c)),pe.log("init video",{isInteractive:S}),c.subtitles&&A.setExternalTextTracks(c.subtitles),ke=c,Ae=c.subtitlesForcedLanguage||""},bi=new rt.Subject,bt=c=>bi.next(c),Jt=new rt.Subject,Ci=new rt.Subject,Ji=new rt.Subject,ti=null,At={actionRewind$:Jt,actionSeek$:Ci,inPiP$:Ct,inFullscreen$:new rt.Observable(c=>mt.subscribe(h=>c.next(h))),actionSetSubtitle$:Ji,nextMovie$:bi},Ke=new rt.Subject,Ii={actionSeek$:Ci,actionSubtitlesSwitched$:Ke,playerSize$:new rt.Observable(c=>zt.subscribe(h=>c.next(h))),inPiP$:Ct,inFullscreen$:new rt.Observable(c=>mt.subscribe(h=>c.next(h))),isLoaderVisible$:new rt.Observable(c=>Zi.subscribe(h=>c.next(h)))};if(Z){let{oneStat:c,thinOneStat:h,mediascopePixel:V,statSubscription:oe}=Z;c&&(S||oe.add(c.attachTo(A)),oe.add(c.attachToUi(At)),oe.add(c.attachToAds(Te.events)),c.authorize(a).catch(Se=>{U({message:`onestat auth error ${String(Se)}`})}),V&&V.attachTo(A)),h&&(oe.add(h.attachTo(A,Te.events)),oe.add(h.attachToUi(Ii)),oe.add(h.attachToAds(Te.events)),h.updateContext({isMobile:ge(Fe)}),h.authorize(a))}if(j){let c=new rt.Subscription,h=(V,oe)=>c.add(V.subscribe(oe));if(h(A.events.managedError$,V=>{j.logIError(V)}),h(A.events.fatalError$,V=>{j.logIError(V,!0)}),Z){let{oneStat:V}=Z;V&&h(V.experimental.error$,oe=>{j.logIError(oe)})}j.sentrySubscription.add(c)}let xo=()=>{if(_i.clientChecker.device.isIOS&&Pe)try{J_(Pe)}catch(c){U({message:`exitIosSafariFullscreen failed: ${c}`})}};ye.add(A.experimental.element$.subscribe(c=>{c&&(Pe=c,c.classList.add("player-media"),Ha(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;xo(),(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(()=>gt(null,null,function*(){var h,V;Ha(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),(V=Ue.onStarted)==null||V.call(Ue,c)}))).add(A.events.willSeek$.subscribe(({from:c,to:h})=>{var V;(V=s==null?void 0:s.onSeek)==null||V.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 V;let h=A.info.duration$.getValue();isFinite(h)&&h>0&&((V=s==null?void 0:s.onTimeupdate)==null||V.call(s,h,c),Te.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(()=>{Ot.set(!0)})).add(A.info.is3DVideo$.subscribe(c=>{$e.set(c)})).add(A.info.isEnded$.subscribe(c=>{S&&(c?(I!=null&&I.getValue()&&Ut.add(jd),Ut.add("PLAY_BUTTON")):Ut.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(Te.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(Te.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(Te.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(Te.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(Te.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(Te.events.started$.subscribe(c=>{var h,V;return(V=(h=s==null?void 0:s.adsInfo)==null?void 0:h.onStarted)==null?void 0:V.call(h,c)})).add(Te.events.timeRemained$.subscribe(c=>{var h,V;return(V=(h=s==null?void 0:s.adsInfo)==null?void 0:h.onTimeRemained)==null?void 0:V.call(h,c)})).add(Te.events.ended$.subscribe(c=>{var h,V;return(V=(h=s==null?void 0:s.adsInfo)==null?void 0:h.onCompleted)==null?void 0:V.call(h,c)})).add(Te.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(Te.events.clicked$.subscribe(c=>{var h,V;return(V=(h=s==null?void 0:s.adsInfo)==null?void 0:h.onClicked)==null?void 0:V.call(h,c)})).add(Te.events.closed$.subscribe(c=>{var h,V;return(V=(h=s==null?void 0:s.adsInfo)==null?void 0:h.onClosed)==null?void 0:V.call(h,c)})).add(Te.events.error$.subscribe(c=>{var h,V;return(V=(h=s==null?void 0:s.adsInfo)==null?void 0:h.onError)==null?void 0:V.call(h,c)})).add(Te.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(Te.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 Io=new rt.Subscription,bn=()=>{var tt,kt,Kt;let{debugLog:c}=J,h,V="#9df7b7",oe="#efd169";if(c&&c!==!0){let{colors:Zt}=c;h=c.tag,V=(tt=Zt==null?void 0:Zt[0])!=null?tt:V,oe=(Kt=(kt=Zt==null?void 0:Zt[1])!=null?kt:Zt==null?void 0:Zt[0])!=null?Kt:oe}let Se=h?`: ${h}`:"";Io.add(A.events.log$.subscribe(Zt=>{console.debug(`%c sdk${Se} `,`background:${V};`,`sdk component: ${Zt.component}`,Zt.message)})).add(We.log$.subscribe(Zt=>{console.debug(`%c ui${Se} `,`background:${oe};`,`ui component: ${Zt.component}.`,Zt.message)}))},It=()=>{Io.unsubscribe()},Wt=(c,h)=>{pe.log("start camera manual rotation",{mx:c,my:h}),A.startCameraManualRotation(c,h)},W=(c=!1)=>{pe.log("stop camera manual rotation",{immediate:c}),A.stopCameraManualRotation(c)},Mt=(c,h,V)=>{pe.log("move camera focus px",{xpx:c,ypx:h,dt:V}),A.moveCameraFocusPX(c,h,V)},di=()=>{A.holdCamera()},ct=()=>{A.releaseCamera()},Tt=Mr(A.info.position$.getValue(),c=>{let h,V,oe=()=>{let Se=A.info.playbackState$.getValue(),tt=A.info.isLive$.getValue(),kt=A.info.duration$.getValue(),Kt=A.info.position$.getValue();if(Se&&[_i.PlaybackState.PLAYING,_i.PlaybackState.PAUSED].includes(Se)){let Zt=tt?Kt-kt:A.getExactTime();Zt!==V&&c(Zt),V=Zt}h=requestAnimationFrame(oe)};return oe(),()=>cancelAnimationFrame(h)}),Xt=li(A.info.playbackState$),st=li(A.info.isBuffering$),Ui=gi([Xt,st],([c,h])=>h?"buffering":c),zi=li(A.info.currentBuffer$),on=li(A.info.isEnded$),Eo=li(A.info.isLive$),Wi=J.features.playbackRate?li(A.info.canChangePlaybackSpeed$):Mr(!1),eo=li(A.info.liveBufferTime$),Nr=li(A.info.volume$),wo=li(A.info.muted$),lo=Bu(A.info.predefinedQualityLimitType$.pipe((0,rt.map)(c=>c===_i.PredefinedQualityLimits.TRAFFIC_SAVING)),A.info.predefinedQualityLimitType$.getValue()===_i.PredefinedQualityLimits.TRAFFIC_SAVING),ki=Bu(A.info.predefinedQualityLimitType$.pipe((0,rt.map)(c=>c===_i.PredefinedQualityLimits.HIGH_QUALITY)),A.info.predefinedQualityLimitType$.getValue()===_i.PredefinedQualityLimits.HIGH_QUALITY),nn=li(A.info.autoQualityLimitingAvailable$),rn=li(A.info.availableQualities$),Nn=li(A.info.availableQualitiesFps$),ir=li(A.info.chromecastState$),Or=li(A.info.chromecastDeviceName$),os=li(A.info.currentFormat$),$s=li(A.info.throughputEstimation$),ns=li(A.info.videoBitrate$),or=li(A.info.intrinsicVideoSize$),xr=li(A.info.duration$),$n=li(A.info.isAudioAvailable$),On=()=>{ri&&clearTimeout(ri),ri=null},Uo=gi([xr,Eo],([c,h])=>h?-c:c),Dn=gi([Xt],([c])=>c===_i.PlaybackState.PLAYING),nr=li(A.info.atLiveEdge$),wr=li(A.info.atLiveDurationEdge$),Sr=li(A.info.position$),Dr=gi([Sr,xr],([c,h])=>isFinite(c)&&isFinite(h)&&!!h),co=gi([ir],([c])=>c===_i.ChromecastState.CONNECTED),Br=li(A.info.availableVideoStreams$),Bn=J.features.audioLanguages?li(A.info.availableAudioStreams$):Mr([]),Fn=li(A.info.currentVideoStream$),uo=li(A.info.currentAudioStream$),Fr=c=>{c.language&&Xf(c.language),A.setVideoStream(c)},Hn=(c,h)=>{A.setAudioStream(c),Lo(h)&&(c.language&&Xf(c.language),J.features.userVideoPrefs&&i&&em(J.userSalt,String(i),{audioTrackId:c.id}))},vt=c=>{let h;if(c.length===1&&(h=c.at(0)),h!=null||(h=c.find(oe=>"isDefault"in oe&&oe.isDefault)),J.features.userVideoPrefs&&i){let oe=Wu(J.userSalt,String(i));if(oe!=null&&oe.audioTrackId){let Se=c.find(tt=>tt.id===oe.audioTrackId);h=Se!=null?Se:h}}let V=O_();return V&&(h!=null||(h=c.find(({language:oe})=>V===oe))),h!=null||(h=c.at(0)),h},ui=c=>{pe.log("change audio stream",{id:c});let h=A.info.availableAudioStreams$.getValue().find(V=>V.id===c);h&&Hn(h,!0)},Tr=!1;ye.add(A.info.availableAudioStreams$.subscribe(c=>{if(!Tr&&c.length){let h=vt(c);h&&(A.setAudioStream(h),Tr=!0)}})),Bn.subscribe(c=>{var h;(h=s==null?void 0:s.onAvailableAudioStreamsChanged)==null||h.call(s,c.map(({label:V="",id:oe="",language:Se=""})=>({label:V,language:Se,id:oe})))}),uo.subscribe(c=>{var h;return c&&((h=s==null?void 0:s.onAudioStreamChanged)==null?void 0:h.call(s,c.id))});let rr=!1;ye.add(A.info.availableVideoStreams$.subscribe(c=>{if(!rr&&c.length){let h=vt(c);h&&(A.setVideoStream(h),rr=!0)}}));let sr=ae(void 0),sn=li(A.info.isAutoQualityEnabled$,c=>c&&sr.set(void 0)),Cr=li(A.info.currentQuality$,()=>sr.set(void 0)),an=gi([sr,Cr],([c,h])=>c!=null?c:h),yn=gi(os,c=>c!==_i.VideoFormat.MPEG),Un=gi([rn,Nn,sn,an,yn],([c,h,V,oe,Se])=>{let tt=[];Se&&tt.push({value:"auto",displayValue:pt("auto_quality_option"),selected:V});let kt=c.filter(Kt=>!(0,rt.isInvariantQuality)(Kt));for(let Kt of kt){let Zt=h[Kt];tt.push({value:Kt,displayValue:`${Kt}${Zt?Cb(Zt):""}`,selected:V?!1:Kt===oe})}return tt}),zn=li(A.info.currentPlaybackRate$),zo=gi([zn,nr,wr],([c,h,V])=>{let oe=V||S?1:J.controls.playbackRateMin,Se=h?1:J.controls.playbackRateMax,tt=J.controls.playbackRateStep,kt=[];for(let Kt=oe;Kt<=Se;Kt+=tt)kt.push({value:Kt,displayValue:Kt===1?pt("playback_rate_1"):pt("playback_rate",{multiplier:Kt.toString(10)}),selected:c===Kt});return kt}),Po=()=>({displayValue:pt("subtitles_off"),value:Rn,language:""}),ar=ae(Po()),Ao=gi([ar,xt],([c],h)=>{c.value===Rn?h(Po()):h(c)}),Ki=J.features.subtitles?li(A.info.availableTextTracks$):Mr([]),Wn=T_(),lr=gi([Ki,Ao],([c,h],V)=>{var tt;let oe=[],Se=c.find(({id:kt})=>kt===h.value);if(Se!=null&&Se.url){let[,kt]=(tt=Wn.find(Se.url))!=null?tt:[];if(kt){V(kt);return}Je.download(Se.url).then(Kt=>{if(!Kt||Je.isDestroyed())return;let Zt=new Ib,Ks=Se.language;if(Ks){let V$=!!Se.isAuto,R$=Zt.parse(Kt,Ks);oe.push({lang:Ks,subtitles:R$,isAuto:V$,id:Se.id})}Wn.add(Se.url,oe),ge(Ao).value===h.value&&V(oe)}).catch(Kt=>{var Zt;(Zt=Z==null?void 0:Z.oneStat)==null||Zt.logError({errorType:"Subtitles download",fatal:!1}),j==null||j.report(Kt,{errorType:"Subtitles download",fatal:!1})})}V(oe)}),Hr=gi([zn,Dn,Ao],([c,h,V],oe)=>{let kt;if(A.info.isLive$.getValue()&&h&&V.value!==Rn){let Zt=()=>{let Ks=1e3/(3*c);kt=setTimeout(Zt,Ks),oe(Date.now())};return Zt(),()=>clearTimeout(kt)}}),Kn=gi([Ki,Ao],([c,h])=>{if(!c.length)return[];let V=[];for(let{language:oe,isAuto:Se,id:tt}of c){let kt=oe&&yc(oe);oe&&kt&&V.push({displayValue:Se?pt("subtitles_auto",{language:kt}):kt,value:tt,selected:(h==null?void 0:h.value)===tt,isAuto:Se,language:oe})}return V.length?(V.unshift(jt(Ie({},Po()),{selected:(h==null?void 0:h.value)===Rn})),V):[]}),ko={available:[],prev:[]},Ur=()=>{var h,V;let c=A.experimental.getCurrentTime$.getValue();return(V=(h=c==null?void 0:c())!=null?h:Pe==null?void 0:Pe.currentTime)!=null?V:0},wt=gi([Tt,Ao,lr,Hr],([c,h,V,oe])=>{var tt;let Se=A.info.isLive$.getValue();if(Se&&ko.prev!==V){let kt=V.find(({id:Zt})=>Zt===h.value),Kt=ko.prev.find(({id:Zt})=>Zt===h.value);if(kt){let Zt=jt(Ie({},kt),{subtitles:[...(tt=Kt==null?void 0:Kt.subtitles)!=null?tt:[],...kt.subtitles]});ko.available=[Zt],ko.prev=V}}if(h&&h.value!==Rn){let kt=Se?Ur():c,Kt=Se?ko.available:V;return Ab(kt,h,Kt,Se)}}),Et=gi([wt],([c])=>c!=null&&c.texts?c.texts:[]);ye.add(Ao.subscribe(c=>{var h,V;if(c.value===Rn)(h=s==null?void 0:s.onSubtitleOff)==null||h.call(s);else{let oe=Object.entries(pp).find(([Se,tt])=>tt===c.displayValue);(V=s==null?void 0:s.onSubtitleOn)==null||V.call(s,oe?oe[0]:"",c.value)}}));let po=ae(!0),to=gi([zi,Uo,Sr,eo],([c,h,V,oe])=>{var Kt;let Se=(Kt=c==null?void 0:c.end)!=null?Kt:0;if(!oe)return Se/h;let kt=-V+oe-h;return(Se-kt)/h}),Vi=li(A.info.availableSources$),xn=gi([Vi],([c])=>Object.keys((c==null?void 0:c[_i.VideoFormat.MPEG])||{}).length>0),So=()=>{var V,oe,Se;let c=Object.keys(((oe=(V=A.info.availableSources$)==null?void 0:V.getValue())==null?void 0:oe[_i.VideoFormat.MPEG])||{}),h=(0,rt.getHighestQuality)(c)||rt.VideoQuality.Q_144P;return(Se=ke.sources[_i.VideoFormat.MPEG])==null?void 0:Se[h]},qn=()=>{var h;let c=So();if(c)pe.log("download video",{url:c}),x_(c,((h=ke==null?void 0:ke.meta)==null?void 0:h.title)||"video");else{let V="There is no URL for download video";pe.log("download video",{message:V}),U({message:V})}},mi=()=>{U({message:"toggle muted"});let c=A.info.muted$.getValue();A.info.volume$.getValue()===0&&!c?ln(Wr(),!1):fo(!c,!1)},zr=()=>{var c;if(Yt.ui.settingsMenu.visible$.set(!1),!ge(Yt.ui.settingsSubMenu.visible$)){let h=ge(Yt.ui.settingsMenu.ref$);if((c=s==null?void 0:s.uiInfo)!=null&&c.onSettingsMenu&&h){let oe=td(h),Se={top:0,left:0,bottom:0,right:0};s.uiInfo.onSettingsMenu({visible:!1,size:oe,position:Se,name:"settings"})}}pe.log("close settings menu")},dr=(c,h=()=>Promise.resolve())=>gt(null,null,function*(){var Se;Yt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),Yt.ui.settingsMenu.visible$.set(!0),yield h();let V=ge(Yt.ui.settingsMenu.ref$),oe=bl();if((Se=s==null?void 0:s.uiInfo)!=null&&Se.onSettingsMenu&&V&&oe){let kt=td(V),Kt=Vs(V,oe);s.uiInfo.onSettingsMenu({visible:!0,size:kt,position:Kt,name:"settings"})}pe.log("open settings menu",{wasOpenedByKeyboard:c})}),rs=(c,h=!1)=>{var tt;Yt.ui.settingsSubMenu.visible$.set(!1);let V=ge(Yt.ui.settingsMenu.ref$),oe=bl(),Se=ge(Yt.ui.settingsMenu.visible$);if((tt=s==null?void 0:s.uiInfo)!=null&&tt.onSettingsMenu&&V&&oe)if(Se&&!h){let Kt=td(V),Zt=Vs(V,oe);s.uiInfo.onSettingsMenu({visible:!0,size:Kt,position:Zt,name:"settings"})}else{let Kt=td(c),Zt={top:0,left:0,bottom:0,right:0},Ks=ge(Yt.ui.settingsSubMenu.name$);s.uiInfo.onSettingsMenu({visible:!1,size:Kt,position:Zt,name:Ks})}pe.log("close settings sub menu")},ss=(c,h)=>{var oe;Yt.ui.settingsSubMenu.visible$.set(!0),Yt.ui.settingsSubMenu.ref$.set(h),Yt.ui.settingsSubMenu.name$.set(c);let V=bl();if((oe=s==null?void 0:s.uiInfo)!=null&&oe.onSettingsMenu&&h&&V){let tt=td(h),kt=Vs(h,V);s.uiInfo.onSettingsMenu({visible:!0,name:c,size:tt,position:kt})}pe.log("open settings sub menu",{name:c})},Wr=()=>{var h;let c=Math.max(J.volumeMinRestore,(h=Fu())!=null?h:0);return c===0?J.volumeDefault:c},Lo=c=>{let h=J.features.savePreferredStatesOnUserActionOnly;return!h||h&&!c},ln=(c,h)=>{let V=c===0?Wr():c,oe=A.info.muted$.getValue();U({message:`set volume, volume: ${c}, preferredVolume: ${V}`});let Se=!l||ze.is("ads");oe&&c>0&&Se&&(oe=!1,Lo(h)&&Yf(!1)),A.setVolume(c,oe),Te.setVolume(c),Lo(h)&&Kf(V)},fo=(c,h)=>{let V=A.info.volume$.getValue();U({message:`set muted, currentVolume: ${V}, mute: ${c}`});let oe=ze.is("ads");if(A.setMuted(c,oe),Te.setVolume(c?0:V),Lo(h)&&(!oe||!c)&&Yf(c),!c&&V===0){let Se=Wr();A.setVolume(Se),Lo(h)&&Kf(Se),Te.setVolume(Se)}},Ir=ae(!1),Wo=c=>{var h,V;pe.log("set looped",{isLooped:c}),Ir.set(c),A.setLooped(c),(V=(h=s==null?void 0:s.uiInfo)==null?void 0:h.onLoopedChanged)==null||V.call(h,c)};Wo(re);let as=()=>{var c,h;(h=(c=s==null?void 0:s.uiInfo)==null?void 0:c.onReportProblem)==null||h.call(c)},qe=(c,h=!1)=>{var V;U({message:`set autoplayNextEnabled, value: ${c}`}),pe.log("set autoplay next enabled",{autoplayNextEnabled:c}),Yt.ui.autoplayNextEnabled$.set(c),F_(c),h&&((V=s==null?void 0:s.onSetAutoplayNextEnabled)==null||V.call(s,c))},Vt=c=>{U({message:`set timerNextVideoRunning, value: ${c}`}),pe.log("set timer next video running",{timerNextVideoRunning:c}),Yt.ui.timerNextVideoRunning$.set(c)},yi=(c=!0)=>{var V;let h=!0;if(c&&(s!=null&&s.onPrevVideoClick))try{h=(V=s==null?void 0:s.onPrevVideoClick)==null?void 0:V.call(s)}catch(oe){U({message:"onPrevVideoClick callback failed to execute"})}X(!0),h&&Y()},Mo=(c=!0)=>{var V;let h=!0;if(c&&(s!=null&&s.onNextVideoClick))try{h=(V=s==null?void 0:s.onNextVideoClick)==null?void 0:V.call(s)}catch(oe){U({message:"onNextVideoClick callback failed to execute"})}X(!1),h&&le()},Vo=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementShow)==null||c.call(s)},Ko=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementClick)==null||c.call(s)},mo=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementAuto)==null||c.call(s)},io=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementCancel)==null||c.call(s)},wn=()=>{A.prepare()},Sn=()=>{(0,rt.assertNonNullable)(Yt);let c=ge(Yt.ui.controls.disabledControls$),h=ge(Yt.playerPhase),V={playerPhase:h,isInteractive:S,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(U({message:"toggle play"}),h==="ads"){V.action="play",pe.log("toggle adman play",V),Te.togglePlay();return}let oe=()=>{var tt;U({message:"toggle play, call player.play"}),V.action="play",A.play(),(tt=s==null?void 0:s.onPlay)==null||tt.call(s)},Se=()=>{var tt;U({message:"toggle play, call player.pause"}),V.action="pause",A.pause(),(tt=s==null?void 0:s.onPause)==null||tt.call(s)};if(A.info.isEnded$.getValue()){if(U({message:"toggle play, video ended, seek to 0"}),Jt.next(),Ci.next(_s.SeekAction.REWIND),S){N==null||N();return}A.seekTime(0),oe()}else A.info.playbackState$.getValue()!==_i.PlaybackState.PLAYING?oe():Se();pe.log("toggle play",V)},vo=(c,{changeReason:h="default",appliesTo:V="to-video"}={},oe)=>{U({message:`set quality, quality: ${c}`}),pe.log("set quality",{quality:c}),A.setAutoQuality(c==="auto");let{qualityDetailsSubMenuEnabled:Se}=J.features;Hu(),c!=="auto"?(Se?(Uu({type:"exact_quality",quality:c,videoId:i},V),A.setPredefinedQualityLimits(_i.PredefinedQualityLimits.UNKNOWN)):qf(i,c),sr.set(c),A.setQuality(c)):Se&&h==="default"&&(ur("auto_quality",V,oe),ge(lo)&&Ro(!1,void 0,oe),ge(ki)&&Qn(!1,void 0,oe))},Ro=(c,h="as-default",V)=>{U({message:`set trafficSavingEnabled, value: ${c}`}),pe.log("set traffic saving enabled",{trafficSavingEnabled:c});let oe=c?_i.PredefinedQualityLimits.TRAFFIC_SAVING:_i.PredefinedQualityLimits.UNKNOWN;J.features.qualityDetailsSubMenuEnabled?(cr(oe,h,V),Jd(!1)):(A.setPredefinedQualityLimits(oe),Lo(V)&&Jd(c))},Qn=(c,h="as-default",V)=>{U({message:`set highQualityEnabled, value: ${c}`}),pe.log("set high quality enabled",{highQualityEnabled:c}),cr(c?_i.PredefinedQualityLimits.HIGH_QUALITY:_i.PredefinedQualityLimits.UNKNOWN,h,V)},cr=(c,h,V)=>{c!==_i.PredefinedQualityLimits.UNKNOWN&&(ge(nn)&&!ge(sn)&&vo("auto",{appliesTo:h,changeReason:"limit-changed"},V),ur(c,h,V)),A.setPredefinedQualityLimits(c)},ur=(c,h,V)=>{Lo(V)&&(Uu({type:c,videoId:i},h),h==="as-default"&&Uu({type:c,videoId:i},"to-video"))},Gn=(c,h=!0)=>{pe.log("set playback rate",{playbackRate:c}),A.setPlaybackRate(c),J.features.saveRate&&we&&!A.info.isLive$.getValue()&&h&&D_(c)},ys=()=>{let c=ge(Wi),h=ge(zo),V=h.findIndex(({selected:Se})=>Se);if(V===h.length-1||!c)return h[V];let oe=h[V+1];return Gn(oe.value),oe},ls=()=>{let c=ge(Wi),h=ge(zo),V=h.findIndex(({selected:Se})=>Se);if(V===0||!c)return h[V];let oe=h[V-1];return Gn(oe.value),oe},je=(c=jt(Ie({},Po()),{selected:!1}),h)=>{pe.log("set subtitles",Ie({},c)),c.value!==Rn&&Ji.next(c.isAuto?c.value+"_auto":c.value),Ke.next({enabled:c.value!==Rn,lang:c.language,auto:!!c.isAuto}),ar.set(c),Lo(h)&&(Jf(c.value===Rn?void 0:c.language),J.features.userVideoPrefs&&i&&em(J.userSalt,String(i),{subtitleTrackId:c.value===Rn?void 0:c.value}))},Gt=c=>{pe.log("toggle subtitles");let h=ge(Ao);(h==null?void 0:h.value)===Rn?qo(c):dn(c)},Pi=(c,h)=>{pe.log("change subtitle",{enabled:c}),c?qo(!0,h):dn(!0)},qo=(c,h)=>{pe.log("subtitle on");let V=ge(Kn),oe=ge(Me),Se=Ae!=null?Ae:oe,tt;h&&(tt=V.find(kt=>kt.value===h)),tt!=null||(tt=V.filter(kt=>kt.value!==Rn).find(kt=>kt.language===Se)),je(tt!=null?tt:V[1],c)},dn=c=>{pe.log("subtitle off"),je(void 0,c)};ye.add(A.info.availableTextTracks$.subscribe(c=>{var V;function h(){let oe=[];for(let{language:Se,isAuto:tt,id:kt}of c){let Kt=Se&&yc(Se);Se&&Kt&&oe.push({id:kt,language:Se,title:tt?pt("subtitles_auto",{language:Kt}):Kt})}return oe}(V=s==null?void 0:s.onAvailableSubtitlesChanged)==null||V.call(s,h())}));let pr=ae(!0),cn=c=>{pr.set(c)},Qo=(c,h,V=!0)=>{var oe;if(U({message:`seek to time, time: ${c}`}),pe.log("seek to time",{time:c,action:h,forcePrecise:V}),Ci.next(h),A.info.isLive$.getValue()){let Se=A.info.duration$.getValue(),tt=Math.min(0,Se+c);A.seekTime(tt,V)}else{if(I!=null&&I.getValue())return;A.info.isEnded$.getValue()&&(U({message:"seek after ended, call callbacks.onPlay"}),(oe=s==null?void 0:s.onPlay)==null||oe.call(s)),A.seekTime(vg(c),V)}},Fs=c=>{U({message:`seek to episode start time: ${c}`}),pe.log("seek to episode start time",{time:c}),Qo(c,_s.SeekAction.EPISODE,!0)},un=(c,h,V=!1)=>{U({message:`seek to percent, percent: ${c}`}),pe.log("seek to percent",{percent:c,action:h});let oe=ge(Uo)*c;Qo(oe,h,V)},Hs=c=>{U({message:`seek external, time: ${c}`}),pe.log("seek external",{time:c}),Ci.next(_s.SeekAction.UNKNOWN),A.seekTime(A.info.isLive$.getValue()?-c:c)},pa=c=>{var oe,Se;let h=(oe=c.max)!=null?oe:"none",V=(Se=c.min)!=null?Se:"none";U({message:`set auto quality limitation. Max: ${h}. Min: ${V}`}),pe.log("set auto quality limits",{max:h,min:V}),A.setAutoQualityLimits(c)},fa=c=>{U({message:`seek external to episode start time: ${c}`}),pe.log("seek external to episode start time",{time:c}),Qo(c,_s.SeekAction.EPISODE,!0)},ut=c=>{U({message:`set playback rate to: ${c}`}),pe.log("set playback rate external",{playbackRate:c}),A.setPlaybackRate(c)},ii=ae(!1),go=ae(!1),he=gi([Uo],([c])=>!!p&&c>=J.suitableDurationForUsingRichSeek&&J.features.useRichSeek&&!S),St=((p==null?void 0:p.frameWidth)||0)>=((p==null?void 0:p.frameHeight)||0),ni=gi([oi],([c])=>{let h=id(c);return St?!h:h});ye.add(ze.subscribe(c=>{c!=="video"&&ii.set(!1)}));let Si=ae(void 0),Ri=ae(!1),pi=c=>{U({message:`start scrubbing, progress: ${c}`}),pe.log("start scrubbing",{progress:c}),Ri.set(!0),si(c)},si=c=>{Si.set(c)},ho,pn,fn=()=>{Si.set(void 0),Ri.set(!1)},Li=()=>{clearTimeout(pn),clearTimeout(ho),ho=window.setTimeout(()=>{fn()},500),Pe==null||Pe.removeEventListener("seeked",Li)},hd=(c,h=!1)=>{U({message:`complete scrubbing, progress: ${c}`}),pe.log("complete scrubbing",{progress:c}),un(c,_s.SeekAction.SLIDER,h),ge(Yt.ui.isMobile)&&ge(Yt.state.currentFormat$)===_i.VideoFormat.HLS?(Pe==null||Pe.addEventListener("seeked",Li),pn=window.setTimeout(()=>{Li()},300)):fn()},cl=gi([Tt,Uo,Si],([c,h,V],oe)=>{oe((0,rt.isNonNullable)(V)?V*h:c)}),Us=ae(!1),ul=()=>{Us.set(!0)},pl=()=>{Us.set(!1)},Er=gi([zt],([{width:c}],h)=>{let V=$b(c);h(V)}),ma=Q.filter(c=>w_(c)),zs=gi([Er,Fe],([c,h])=>h?ma.filter(V=>!V.hideOnMobile):ma.filter(V=>{var oe;return!((oe=V.hideOnDesktopGridTypes)!=null&&oe.includes(c))})),Kr=ae(Q.filter(c=>S_(c))),ds=gi([Kr,Er],([c,h])=>c.filter(V=>{var oe;return!((oe=V.hideOnDesktopGridTypes)!=null&&oe.includes(h))})),Ws=gi([ds,zs],([c,h])=>[...J.features.additionalButtonsDesktopControlPanelRight?c.filter(V=>V.type==="desktop-control-panel-right"):[],...J.features.additionalButtons?h.map((V,oe)=>{var Se;return{id:oe,weight:oe,type:"desktop-control-panel-right",testId:V.testId,icon:V.iconUrl,onClick:V.onClick,ariaLabel:(Se=V.ariaLabel)!=null?Se:V.tooltip,tooltipText:V.tooltip}}):[]]),fr=ae(H),fl=gi([fr],([c])=>J.features.additionalSettingsMenuItems?c.map(h=>h.type==="SWITCH"?jt(Ie({},h),{onClick:h.onChangeEnabled}):h):[]),ml=(c,h)=>{let V=ge(Kr).map(oe=>oe.id!==c?oe:Ie(Ie({},oe),h));Kr.set(V)},_d=c=>{let h=ge(Kr);if(h.some(V=>V.id===c.id)){U({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}h.push(c),Kr.set(h)},vl=c=>{let h=ge(Kr);if(!h.some(V=>V.id===c)){U({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}h=h.filter(V=>V.id!==c),Kr.set(h)},gl=c=>{Ci.next(_s.SeekAction.LIVE),U({message:"live switch to low latency "+c}),pe.log("live switch to low latency "+c),A.setLiveLowLatency(c)},hl=(c,h)=>{let V=ge(fr).map(oe=>oe.id!==c?oe:Ie(Ie({},oe),h));fr.set(V)},bd=c=>{let h=ge(fr);if(h.some(V=>V.id===c.id)){U({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}h.push(c),fr.set(h)},va=c=>{let h=ge(fr);if(!h.some(V=>V.id===c)){U({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}h=h.filter(V=>V.id!==c),fr.set(h)},Pr=ae(z),at=gi([Pr],([c])=>J.features.additionalContextMenuItems?c:[]),ft=(c,h)=>{let V=ge(Pr).map(oe=>oe.id!==c?oe:Ie(Ie({},oe),h));Pr.set(V)},qi=c=>{let h=ge(Pr);if(h.some(V=>V.id===c.id)){U({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}h.push(c),Pr.set(h)},Go=c=>{let h=ge(Pr);if(!h.some(V=>V.id===c)){U({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}h=h.filter(V=>V.id!==c),Pr.set(h)},Qi=gi([Fe,nt],([c,h],V)=>{V(c&&h)}),xi=()=>{Ci.next(_s.SeekAction.LIVE),U({message:"switch to active live"}),pe.log("switch to active live"),A.seekTime(0),A.info.playbackState$.getValue()!==_i.PlaybackState.PLAYING&&Yt.actions.internal.togglePlay()},Ni=()=>{pe.log("skip adman"),Te.skip()},ga=(c=!0)=>{var oe;(0,rt.assertNonNullable)(Yt),U({message:`switch from ads to video, callPlay: ${c}`}),pe.log("switch from ads to video",{callPlay:c}),ce.set("video"),c&&A.play(),l&&fo(!0,!0);let h=(oe=ge(Ye))==null?void 0:oe.muted,V=!A.info.muted$.getValue();h!==void 0&&!V&&fo(h,!0),Ye.set(void 0)},_l=()=>{(0,rt.assertNonNullable)(Yt),U({message:"switch from video to ads"}),pe.log("switch from video to ads"),Yt.actions.internal.pause(),xo(),ce.set("ads")},Hp=c=>{(0,rt.assertNonNullable)(Yt);let h=c?"LiveWaitingStart":"thumb";pe.log("set live waiting start",{state:c,playerPhase:h}),ce.set(h)},Jc=c=>{(0,rt.assertNonNullable)(Yt);let h=c?"LiveWaitingRecover":"thumb";pe.log("set live waiting recover",{state:c,playerPhase:h}),ce.set(h)},eu=c=>{(0,rt.assertNonNullable)(Yt);let h=c?"LiveWaitingRecord":"thumb";pe.log("set live waiting record",{state:c,playerPhase:h}),ce.set(h)},tu=()=>((0,rt.assertNonNullable)(Yt),pe.log("get debug text data"),$_(A,ke,Yt,Ne.getTraceId())),Up=()=>((0,rt.assertNonNullable)(Yt),JSON.stringify(Ne.getFinishedSpans())),iu=()=>((0,rt.assertNonNullable)(Yt),y_(A,ke,Yt)),bl=()=>Pe,ou=()=>{U({message:"toggle chromecast"}),pe.log("toggle chromecast"),A.toggleChromecast()},ha=c=>{var V;if((0,rt.assertNonNullable)(Yt),A.info.isEnded$.getValue())return;let h=!c;if(ge(Yt.playerPhase)==="ads"){U({message:`pause ads, internalCall: ${h}`}),pe.log("pause ads",{internalCall:h}),Te.pause();return}U({message:`pause video, internalCall: ${h}`}),pe.log("pause video",{internalCall:h}),h&&((V=s==null?void 0:s.onPause)==null||V.call(s)),A.pause()},_a=c=>{var V;(0,rt.assertNonNullable)(Yt);let h=!c;if(ge(Yt.playerPhase)==="ads"){U({message:`play ads, internalCall: ${h}`}),pe.log("play ads",{internalCall:h}),Te.play();return}U({message:`play video, internalCall: ${h}`}),pe.log("play video",{internalCall:h}),h&&((V=s==null?void 0:s.onPlay)==null||V.call(s)),A.play()},zp=c=>{(0,rt.assertNonNullable)(Yt);let h=!c;if(ge(Yt.playerPhase)==="ads"){U({message:"player cannot be stopped during ads via external method"});return}U({message:`player will be stopped, internalCall: ${h}`}),P==null||P()},nu=(c,h)=>{(0,rt.assertNonNullable)(Yt),U({message:`first start, show ads: ${c}, internalCall: ${!h}`}),pe.log("first start",{showAds:c,external:h}),c?ce.set("ads"):(ce.set("video"),h?A.play():Yt.actions.internal.togglePlay())},$d=()=>(U({message:"getting time codes"}),m),He=()=>{let c=$d();if(!c||[0,1].includes(c.length))return;let h=A.info.position$.getValue();return c.find(V=>V.time>h)},$i=c=>{let h=c;h||(h=He());let V=A.info.position$.getValue();pe.log("seek to next episode",Ie({currentTime:V},h)),h&&(U({message:"seek to next episode"}),Qo(h.time,_s.SeekAction.EPISODE,!0))},No=()=>{let c=$d();if(!c||[0,1].includes(c.length))return;let h=A.info.position$.getValue(),V=c.findIndex(Se=>Se.time>h),oe=V===-1?c.length-2:V-2;if(!(oe<0))return c[oe]},ba=c=>{let h=c;h||(h=No());let V=A.info.position$.getValue();pe.log("seek to prev episode",Ie({currentTime:V},h)),h&&(U({message:"seek to prev episode"}),Qo(h.time,_s.SeekAction.EPISODE,!0))},Tn=()=>(U({message:"getting preview thumbs data"}),pe.log("get preview thumbs data",Ie({},p)),p),S$=()=>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()),pe.log("toggle picture in picture",{isActive:c,action:h})}),T$=(c=-90)=>{pe.log("rotate video",{alphaDiff:c}),oi.update(h=>h+c)},ru=ae([]);C==null||C.subscribe(c=>{let h=[];for(let V=0;V<c.length;V++){let{range:[oe,Se],subjects:tt}=c[V];V===0&&oe!==0&&h.push({time:0,text:"",interactive:!1,completed:!0}),h.push({time:oe/1e3,text:"",interactive:!0,completed:J.features.interactiveTimeOpenUri?!tt.length||tt.every(kt=>kt.isRemoved):!tt.length}),Se!==1/0&&h.push({time:Se/1e3,text:"",interactive:!1,completed:!0})}ru.set(h)});let C$=ae(!1);I==null||I.subscribe(c=>{c&&ge(Ri)&&fn()});let vg=c=>{if(!S)return c;let h=ge(ru),V=ge(Uo),Se=ge(Sr)/V,tt=h.find(kt=>kt.interactive&&!kt.completed&&kt.time>Se);return typeof(tt==null?void 0:tt.time)=="number"?Math.min(c,tt.time-.05):c},I$=()=>{Yt.ui.episodes.panelOpened$.set(!1)},E$=()=>{pe.log("destroy store"),clearTimeout(pn),clearTimeout(ho),ye.unsubscribe(),Io.unsubscribe(),A.destroy(),Te.destroy(),Z==null||Z.destroy(),j==null||j.destroy(),ee.unsubscribe(),ti==null||ti.disconnect(),ti=null,Je.destroy()},P$=gi([nr,ze,Wi],([c,h,V])=>f.features.doubleForwardAvailable&&!c&&h==="video"&&V),Wp=ae(!1),gg=2,su=null,hg=c=>{if(!ge(Dn)&&c)return;let h=A.info.currentPlaybackRate$.getValue();c?h!==gg&&(su=h,Gn(gg,!1),Wp.set(!0)):(su&&Gn(su,!1),Wp.set(!1),su=null)};ze.subscribe(c=>{c!=="video"&&hg(!1)});let A$=()=>{ha(!1),ii.set(!0)},k$=()=>{_a(!1),ii.set(!1)},Kp=!1,L$=()=>{go.set(!0),Kp=A.info.playbackState$.getValue()===_i.PlaybackState.PLAYING,ha(!1)},M$=()=>{go.set(!1),!ge(ii)&&Kp&&_a(!1),Kp=!1};A.events.playing$.subscribe(()=>{ge(ii)&&ha(!1)});let Yt={interfaceLanguage$:Me,isCyrillicRelatedInterface$:Lt,initVideo:fi,videoId:i,isClip:o,playerPhase:ze,vsid:Ft,state:{positionExact$:Tt,positionWithScrubbing$:cl,duration$:Uo,playbackState$:Xt,playbackStateRealistic$:Ui,isPlaying$:Dn,isLoaderVisible:Zi,bufferedProgress$:to,isLive$:Eo,canChangePlaybackSpeed$:Wi,isActiveLive$:nr,isOldestAvailableLive$:wr,isRewindableLive$:Dr,isEnded$:on,muted$:wo,volume$:Nr,trafficSavingEnabled$:lo,highQualityEnabled$:ki,autoQualityLimitingAvailable$:nn,availableVideoStreams$:Br,availableAudioStreams$:Bn,videoStream$:Fn,audioStream$:uo,currentQuality$:an,isAutoQualityEnabled$:sn,availableQualities$:Un,currentPlaybackRate$:zn,availablePlaybackRates$:zo,currentSubtitle$:Ao,availableTextTracks$:Ki,availableSubtitlesList$:Kn,currentSubtitleCaptions$:Et,isAutoSubtitleCaptionVisible$:po,chromecastState$:ir,chromecastDeviceName$:Or,chromecastConnected$:co,currentFormat$:os,throughputEstimation$:$s,videoBitrate$:ns,videoSize$:or,errorLog$:be,crashed$:nt,isAudioAvailable$:$n,isAudioDisabled:!!l,canDownload:J.features.download&&!!d,availableSources$:Vi,hasMpegSources$:xn,isInteractive:S,showInteractiveGraph:J.features.interactiveGraph,showSeekToInteractive:J.features.seekToInteractive,showPlayPrevChapter:J.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:J.features.interactiveTimeIndicator&&!!ge(ru).length,interactiveEpisodes$:ru,isInteractiveTime$:I?li(I):ae(!1),isInteractiveExpectation$:C$,hasInteractiveBranches:E,playPrevChapterDisabledTooltip:k,looped$:Ir,loadedMetadata$:Ot,isAutoQualityAvailable$:yn,previewTrackActive:ii,previewTrackDragInProgress:go},ui:{t:pt,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:Q.length?Q.reduce(c=>[...c,ae(void 0)],[]):[],disabledControls$:Ut},modals:{hotKeyMap:{show:ae(!1),data:ae({title:"",closeBtnText:"",groups:[]})}},isFullscreen:mt,isFullscreenOpenedByKeyboard:Ht,rotateAlpha:oi,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:zt,isMobile:Fe,mobileNotReportControlHidden$:Qi,icon3DVideoVisible:ae(!1),scrubbingInProgress:Ri,volumeChangingInProgress:Us,is3DVideo:$e,currentGridType$:Er,additionalButtonsDeprecated$:zs,additionalDesktopControlPanelRightButtons$:Ws,additionalSettingsMenuItems$:fl,additionalContextMenuItems$:at,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:pr,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$:P$,previewTrackNotificationVisible:ae(!1),previewTrackActive:ii,previewTrackDragInProgress:go,previewTrackAvailable:he,isPreviewTrackHorizontallyAligned:ni},ads:{position:ae(0),duration:ae(0),playbackState:ae("inactive"),canSkip:ae(!1),secondsToWatchBeforeSkip:ae(0),postrollPassed:ae(!1)},webApi:{pictureInPictureApi:ie,annotationsApi:De,slotsApi:Be,focusManager:ot},actions:{internal:{preload:wn,firstStart:c=>nu(c,!1),play:()=>_a(!1),pause:()=>ha(!1),togglePlay:Sn,toggleMuted:mi,openSettingsMenu:dr,closeSettingsMenu:zr,openSettingsSubMenu:ss,closeSettingsSubMenu:rs,setVolume:c=>ln(c,!1),setMuted:c=>fo(c,!1),startVolumeChanging:ul,stopVolumeChanging:pl,setVideoStream:Fr,setAudioStream:c=>Hn(c,!1),setQuality:(c,h)=>vo(c,h,!1),setTrafficSavingEnabled:(c,h)=>Ro(c,h,!1),setHighQualityEnabled:(c,h)=>Qn(c,h,!1),setPlaybackRate:Gn,incrementPlaybackRate:ys,decrementPlaybackRate:ls,setSubtitle:c=>je(c,!1),toggleSubtitle:()=>Gt(!1),togglePictureInPicture:S$,startScrubbing:pi,progressScrubbing:si,completeScrubbing:hd,toggleChromecast:ou,switchToActiveLive:xi,switchFromAdsToVideo:ga,switchFromVideoToAds:_l,skipAd:Ni,setLiveWaitingStart:Hp,setLiveWaitingRecover:Jc,setLiveWaitingRecord:eu,getDebugTextData:tu,getTraceTextData:Up,getDebugPanelData:iu,getVideoElement:bl,seekTime:(c,h,V)=>Qo(c,h,V),clearDelayedBufferingCheckTimeout:On,seekEpisodeStartTime:Fs,seekToPercent:un,getNextEpisode:He,seekToNextEpisode:$i,getPrevEpisode:No,seekToPrevEpisode:ba,startLogging:bn,stopLogging:It,startCameraManualRotation:Wt,stopCameraManualRotation:W,moveCameraFocusPX:Mt,holdCamera:di,releaseCamera:ct,getVideoEpisodes:$d,getPreviewThumbsData:Tn,downloadVideo:qn,addLanguage:tm,setLanguage:fe,nextMovie:bt,videoRotate:T$,correctSeekTimeToInteractive:vg,replayInteractive:N,setLooped:Wo,reportProblem:as,setAutoplayNextEnabled:qe,setTimerNextVideoRunning:Vt,prevVideoClick:yi,nextVideoClick:Mo,nextVideoAnnouncementShow:Vo,nextVideoAnnouncementClick:Ko,nextVideoAnnouncementAuto:mo,nextVideoAnnouncementCancel:io,checkFullscreenSupport:lt,changeDoubleForwardOn:hg,closePreviewTrack:k$,previewTrackOpened:A$,previewTrackDragStarted:L$,previewTrackDragFinished:M$},external:{firstStart:c=>nu(c,!0),play:()=>_a(!0),pause:()=>ha(!0),stop:()=>zp(!0),seekTime:c=>Hs(c),seekEpisodeStartTime:c=>fa(c),setPlaybackRate:c=>ut(c),setAutoQualityLimits:c=>pa(c),setMuted:c=>fo(c,!0),toggleSubtitle:()=>Gt(!0),changeSubtitle:Pi,setVolume:c=>ln(c,!0),returnFocusToEpisodes:I$,updateAdditionalSettingsItem:hl,addAdditionalSettingsItem:bd,removeAdditionalSettingsItem:va,updateAdditionalContextItem:ft,addAdditionalContextItem:qi,removeAdditionalContextItem:Go,updateAdditionalButton:ml,addAdditionalButton:_d,removeAdditionalButton:vl,setLiveLowLatency:gl,hideControls:()=>cn(!1),showControls:()=>cn(!0),setQuality:c=>vo(c,{appliesTo:"to-video"},!0),setTrafficSavingEnabled:c=>Ro(c,"to-video",!0),setHighQualityEnabled:c=>Qn(c,"to-video",!0),changeAudioStream:ui}},callbacks:s,setUiCallbacks:c=>{Ue=Ie({},c)},getAdmanWrapper:()=>Te,getLogger:()=>We,getPlayer:()=>A,destroy:E$};return Yt};function er(t,e,i,o){var m;let r=(m=e[i])==null?void 0:m.getBoundingClientRect(),a=o&&!!r&&!!(r.right-r.left),{top:l,left:d,bottom:s,right:u}=Vs(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 Zx=["disabledControls$","additionalButtons"],Jx=["interactiveTimeIndicator"],nd=(t,e,i,o)=>{if(t){for(let[r,a]of Object.entries(e))if(!Zx.includes(r)){let l=o||Jx.includes(r);a.set(er(t,i,r,l))}}};var mp=(t,e,i)=>gt(null,null,function*(){yield yo(),e&&i&&(i.focus(),t.set(!1))});var ew=Ce('<path d="M18 10c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2Zm-6 4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2Zm-6 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2Z"></path>');function qm(t){Ze(t,{children:(e,i)=>{var o=ew();b(e,o)},$$slots:{default:!0}})}function Qm(t,e){B(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$,m=d.ui.contextMenu.showContextMenuBtn$,p=d.ui.contextMenu.position$,f=d.ui.contextMenu.btnRef$,$=K(void 0);Oe(()=>{n($)&&Pt(()=>{f.set(n($))})});let y=I=>{let N=ra(I),P=cb(n($));p.set(P),u.set(N),s.set(!r())},_=()=>{m.set(!0)},S=()=>{m.set(!1)},C=v(()=>r()?"opened":"");Qt(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($)},set ref(I){O($,I,!0)},children:(I,N)=>{qm(I,{})},$$slots:{default:!0}}),F(),o()}var tw=t=>{t.stopPropagation()},iw=M("<div><!> <div></div> <div></div></div>"),ow={hash:"s-27",code:'.interactive-episode-icon-animated.s-27{height:32px;opacity:1;position:absolute;right:16px;top:16px;transition:.3s;width:32px}.interactive-episode-icon-animated.icon-small.s-27{height:28px;width:28px}.invisible.s-27{opacity:0;visibility:hidden}.fullscreen.s-27:not(.mobile){height:40px;right:23px;top:19px;width:40px}.mobile.s-27{height:28px;right:14px;top:12px;width:28px}.fullscreen.mobile.s-27{height:32px;width:32px}@media screen and (orientation:portrait){.interactive-episode-icon-animated.mobile.fullscreen.s-27{right:16px;top:40px}}@keyframes s-27-pulse{0%{border-width:1px;opacity:0;transform:scale(1)}10%{opacity:1}50%{border-width:1px;opacity:.5;transform:scale(1.5)}to{border-width:.5px;opacity:0;transform:scale(1.5)}}.pulse.s-27{animation:s-27-pulse 1s infinite;border:1px solid #fff;border-radius:100%;bottom:0;content:"";display:block;left:0;pointer-events:none;position:absolute;right:0;top:0;transform:scale(1.8);transition:.3s}.pulse.paused.s-27{animation-play-state:paused}.interactive-episode-icon-animated svg{height:100%;width:100%}.ref-block.s-27{height:100%;position:absolute;top:0;visibility:hidden;width:100%}.hidden.s-27{display:none}'};function wc(t,e){var j;B(e,!0),q(t,ow);let[i,o]=Re(),r=()=>x(S,"$isMobile",i),a=()=>x(P,"$areControlsVisible",i),l=()=>x(k,"$currentGridType$",i),d=()=>x(I,"$isInteractiveTime$",i),s=()=>x(_,"$interactiveControlsOpacity$",i),u=()=>x(N,"$showInteractiveTimeIndicatorTooltip$",i),m=()=>x(C,"$isFullscreen",i),p=g(e,"ref",15,void 0),f=K(void 0),$=ve(),y=Co(),{interactiveControlsOpacity$:_}=y,S=$.ui.isMobile,C=$.ui.isFullscreen,I=$.state.isInteractiveTime$,N=y.showInteractiveTimeIndicatorTooltip$,P=$.ui.controlsVisible,E=(j=$.callbacks)==null?void 0:j.onInteractiveTimeIndicatorClick,k=$.ui.currentGridType$,Q=v(()=>!r()&&a()),H=v(()=>Ms(l(),"s")),z=v(()=>!d()||!!s()||n(Q)),Y=K(!1);Oe(()=>{O(Y,n(z),!0)});let le=()=>{O(Y,!0)},X=()=>{var ie;re(),(ie=n(f))==null||ie.addEventListener("animationiteration",le,{once:!0})},re=()=>{var ie;O(Y,!1),(ie=n(f))==null||ie.removeEventListener("animationiteration",le)},Z=ie=>{N.set(ie)},we=v(()=>u()&&!n(z));Oe(()=>{u()?X():re()});let ue=()=>{n(z)||(N.set(!0),E==null||E())};gn(()=>{N.clearTimeout(),re()});let ne=()=>{N.set(!1)},_e=G("tooltip_interactive_interaction_time_indicator");var xe=iw();let J;xe.__mousemove=[tw],xe.__click=ue;var Ne=T(xe);Fo(Ne,{get tooltipContent(){return _e},get tooltipVisible(){return n(we)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:Z,get ref(){return p()},set ref(ie){p(ie)},children:(ie,De)=>{mc(ie,{completed:!0})},$$slots:{default:!0}});var pe=L(Ne,2);let A;Xe(pe,ie=>p(ie),()=>p());var We=L(pe,2);let Te;Xe(We,ie=>O(f,ie),()=>n(f)),w(xe),D((ie,De,Be)=>{J=se(xe,1,"interactive-episode-icon-animated s-27",null,J,ie),A=se(pe,1,"ref-block s-27",null,A,De),Te=se(We,1,"pulse s-27",null,Te,Be)},[()=>({mobile:r(),fullscreen:m(),invisible:n(z),"icon-small":n(H)}),()=>({hidden:n(z)}),()=>({paused:n(Y)})]),_t("mouseleave",xe,ne),b(t,xe),F(),o()}it(["mousemove","click"]);function vp(t,e){B(e,!0);let i=g(e,"tooltipEnabled",3,!0),o=g(e,"disabled",3,!1),r=g(e,"className",3,void 0),a=g(e,"ref",15),l=g(e,"tooltipVisible",3,!1);Fo(t,{get disabled(){return o()},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},get hasTooltip(){return i()},get mouseEnter(){return e.mouseEnter},get mouseLeave(){return e.mouseLeave},get tooltipVisible(){return l()},get className(){return r()},get ref(){return a()},set ref(d){a(d)},children:(d,s)=>{var u=Le();let m=v(()=>e.buttonComponent);var p=de(u);Bi(p,()=>n(m),(f,$)=>{$(f,As(()=>{var y;return(y=e.buttonComponentProps)!=null?y:{}}))}),b(d,u)},$$slots:{default:!0}}),F()}var Rs={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var rw=Ce('<path d="M32 21.68V15a2 2 90 114 0v18a2 2 90 01-4 0v-6.66l-16.3 9.32A2.48 2.48 90 0112 33.56V14.46c0-1.9 2.06-3.08 3.7-2.12z"></path>');function ca(t,e){B(e,!0);let i=g(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);transform-origin: 50%;":void 0),r=v(()=>`${hn(e.size)}${n(o)}`),a=v(()=>i()?"prev-icon":"next-icon");Ze(t,{get width(){return"48"},get height(){return"48"},get style(){return n(r)},get testId(){return n(a)},get shadow(){return e.shadow},children:(l,d)=>{var s=rw();b(l,s)},$$slots:{default:!0}}),F()}var sw=M('<div class="icon-background-mobile s-21"><!></div>'),aw={hash:"s-21",code:".icon-background-mobile.s-21{align-items:center;background-color:var(--big-play-bg-color);border-radius:var(--big-play-radius);display:flex;height:100%;justify-content:space-around;left:0;position:absolute;top:0;width:100%}"};function ja(t,e){B(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),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}`);Qt(t,{get className(){return n(u)},get testId(){var m;return`btn-${(m=e.type)!=null?m:""}`},get disabled(){return r()},get ariaLabel(){return n(d)},get click(){return e.click},get ariaKeyShortCut(){return n(s)},get ref(){return i()},set ref(m){i(m)},children:(m,p)=>{var f=Le(),$=de(f);{var y=S=>{var C=sw(),I=T(C);let N=v(()=>e.type==="prev");ca(I,{get size(){return"32"},get reversed(){return n(N)}}),w(C),b(S,C)},_=S=>{let C=v(()=>e.type==="prev");ca(S,{get size(){return"24"},get reversed(){return n(C)}})};R($,S=>{o()?S(y):S(_,!1)})}b(m,f)},$$slots:{default:!0}}),F()}var lw=Ce('<path d="M24 21.2a.8.8 90 01-1.34.6L14.08 14a1.34 1.34 90 010-2l8.6-7.8a.8.8 90 011.32.6V11a16 16 90 11-16 16 2 2 90 114 0 12 12 90 1012-12z"></path>');function Sc(t,e){B(e,!0);let i=v(()=>hn(e.size));Ze(t,{get width(){return"48"},get height(){return"48"},get style(){return n(i)},testId:"replay-icon",get shadow(){return e.shadow},children:(o,r)=>{var a=lw();b(o,a)},$$slots:{default:!0}}),F()}var Mb=require("@vkontakte/videoplayer-shared/es2015");var dw=M('<div class="icon-background-mobile s-23"></div>'),cw=M("<!> <div><!></div>",1),uw={hash:"s-23",code:".mobile.s-23{align-items:center;display:flex;justify-content:center;position:relative}.icon-background-mobile.s-23{background-color:var(--big-play-bg-color);border-radius:var(--big-play-radius);height:calc(100% - 32px);left:16px;position:absolute;top:16px;width:calc(100% - 32px)}"};function rd(t,e){B(e,!0),q(t,uw);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,Mb.noop),d=G("tooltip_restart"),s=v(()=>`${o()?"btn-m--play":""} ${a()}`);Qt(t,{get className(){return n(s)},testId:"replay-btn",get ariaLabel(){return d},get disabled(){return r()},get click(){return l()},get ariaKeyShortCut(){return gs.KeyK},get ref(){return i()},set ref(u){i(u)},children:(u,m)=>{var p=cw(),f=de(p);{var $=I=>{var N=dw();b(I,N)};R(f,I=>{o()&&I($)})}var y=L(f,2);let _;var S=T(y);let C=v(()=>o()?"48":"24");Sc(S,{get size(){return n(C)}}),w(y),D(I=>_=se(y,1,"s-23",null,_,I),[()=>({mobile:o()})]),b(u,p)},$$slots:{default:!0}}),F()}var pw=Ce('<path d="m17.4 10 1.6.2a2 2 90 01.8.8l.2 1.6v22.8l-.2 1.6a2 2 90 01-.8.8l-1.6.2h-4l-1.4-.2a2 2 90 01-.8-.8l-.2-1.6V12.6l.2-1.6a2 2 90 01.8-.8l1.6-.2h3.801zm16 0 1.6.2a2 2 90 01.8.8l.2 1.6v22.8l-.2 1.6a2 2 90 01-.8.8l-1.6.2h-4l-1.4-.2a2 2 90 01-.8-.8l-.2-1.6V12.6l.2-1.6a2 2 90 01.8-.8l1.6-.2h4z"></path>');function Ns(t,e){B(e,!0);let i=v(()=>hn(e.size));Ze(t,{get width(){return"48"},get height(){return"48"},get fill(){return e.fill},get style(){return n(i)},testId:"pause-icon",get shadow(){return e.shadow},children:(o,r)=>{var a=pw();b(o,a)},$$slots:{default:!0}}),F()}var Vb=require("@vkontakte/videoplayer-shared/es2015");var fw=M('<div class="icon-background-mobile s-26"><!></div>'),mw={hash:"s-26",code:".icon-background-mobile.s-26{align-items:center;background-color:var(--big-play-bg-color);border-radius:var(--big-play-radius);display:flex;height:calc(100% - 32px);justify-content:space-around;left:16px;position:absolute;top:16px;width:calc(100% - 32px)}"};function sd(t,e){B(e,!0),q(t,mw);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),m=g(e,"className",3,""),p=g(e,"click",3,Vb.noop),$=ve().ui.t,{toggle:y}=a,_=v(()=>y),S=v(()=>r()!==null),C=v(()=>n(S)?r():s()),I=v(()=>n(C)?$("tooltip_pause"):$("tooltip_play")),N=v(()=>n(C)?Ns:Mn),P=v(()=>`${d()?"btn-m--play":""} ${m()}`),E=v(()=>n(S)?n(_):p());Qt(t,{get className(){return n(P)},testId:"play-btn",get click(){return n(E)},get disabled(){return u()},get ariaLabel(){return n(I)},get ariaKeyShortCut(){return gs.KeyK},get ref(){return l()},set ref(k){l(k)},children:(k,Q)=>{var H=Le();let z=v(()=>n(N));var Y=de(H);{var le=re=>{var Z=fw(),we=T(Z);Bi(we,()=>n(z),(ue,ne)=>{ne(ue,{get size(){return"48"}})}),w(Z),b(re,Z)},X=re=>{var Z=Le(),we=de(Z);Bi(we,()=>n(z),(ue,ne)=>{ne(ue,{get size(){return"24"}})}),b(re,Z)};R(Y,re=>{d()?re(le):re(X,!1)})}b(k,H)},$$slots:{default:!0}}),F(),o()}var vw=Ce('<path d="M12.58 12.92v2.5a1 1 0 0 1-1.52.85l-5.58-3.42a1 1 0 0 1 0-1.7l5.58-3.42a1 1 0 0 1 1.52.86v2.5l5.48-3.36a1 1 0 0 1 1.52.86v6.82a1 1 0 0 1-1.52.86z"></path>');function Gm(t){Ze(t,{testId:"play-prev-chapter-icon",children:(e,i)=>{var o=vw();b(e,o)},$$slots:{default:!0}})}function Tc(t,e){B(e,!0);let i=g(e,"ref",15,void 0),o=g(e,"hidden",3,!1),r=g(e,"disabled",3,!1),a=G("tooltip_interactive_go_back"),l=v(()=>o()?"hidden":"");Qt(t,{get className(){return n(l)},testId:"play-prev-chapter-btn",get ariaLabel(){return a},get disabled(){return r()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,s)=>{Gm(d,{})},$$slots:{default:!0}}),F()}var gw=M('<span class="gutter s-25"><span><!></span></span>'),hw={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 Cc(t,e){B(e,!0),q(t,hw);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,m=()=>{u(!r(),!0)},p=d("aria_label_autoplay"),f="12",$="#000",y=v(()=>r()?"true":"false");Qt(t,{click:m,get ariaLabel(){return p},role:"switch",get areaChecked(){return n(y)},get ref(){return a()},set ref(_){a(_)},children:(_,S)=>{var C=gw(),I=T(C);let N;var P=T(I);{var E=Q=>{Mn(Q,{get size(){return f},fill:$})},k=Q=>{Ns(Q,{get size(){return f},fill:$})};R(P,Q=>{r()?Q(E):Q(k,!1)})}w(I),w(C),D(Q=>N=se(I,1,"toggler s-25",null,N,Q),[()=>({enabled:r()})]),b(_,C)},$$slots:{default:!0}}),F(),o()}var _w=Ce('<path d="M16.73 4.85c-.54-.05-1.23-.05-2.23-.05H7.9a.9.9 0 1 1 0-1.8h6.64q1.41-.01 2.33.05c.64.05 1.2.16 1.73.43a4.4 4.4 0 0 1 1.92 1.92c.27.52.38 1.09.43 1.73q.06.92.05 2.33v5.08q.01 1.41-.05 2.33a5 5 0 0 1-.43 1.73 4.4 4.4 0 0 1-1.92 1.92 5 5 0 0 1-1.73.43q-.92.06-2.33.05H7.9a.9.9 0 1 1 0-1.8h6.6c1 0 1.69 0 2.23-.04.52-.05.82-.13 1.05-.24a2.6 2.6 0 0 0 1.14-1.14c.11-.23.2-.53.24-1.06s.04-1.23.04-2.22v-5c0-1 0-1.69-.04-2.23a3 3 0 0 0-.24-1.05 2.6 2.6 0 0 0-1.14-1.14c-.23-.11-.53-.2-1.05-.24"></path><path d="M7.76 11.17V8.9c0-.71.7-1.15 1.25-.78l4.6 3.1a.96.96 0 0 1 0 1.54L9 15.87c-.55.37-1.25-.07-1.25-.78v-2.26l-4.5 3.04C2.7 16.24 2 15.8 2 15.09V8.91c0-.71.7-1.15 1.25-.78z "></path>',1);function Ym(t){Ze(t,{testId:"seek-to-interactive-icon",children:(e,i)=>{var o=_w();vi(),b(e,o)},$$slots:{default:!0}})}function Ic(t,e){B(e,!0);let i=g(e,"ref",15,void 0),o=g(e,"hidden",3,!1),r=g(e,"disabled",3,!1),a=G("tooltip_interactive_seek"),l=v(()=>o()?"hidden":"");Qt(t,{get className(){return n(l)},testId:"btn-seek-to-interactive",get ariaLabel(){return a},get disabled(){return r()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,s)=>{Ym(d,{})},$$slots:{default:!0}}),F()}var bw=Ce('<path d="M15.2 5.9v1.2c0 .6 0 .9.12 1.12q.15.3.46.46c.23.12.52.12 1.12.12h1.2c.6 0 .9 0 1.12-.12q.3-.15.46-.46c.12-.23.12-.52.12-1.12V5.9c0-.6 0-.9-.12-1.12a1 1 0 0 0-.46-.46c-.23-.12-.52-.12-1.12-.12h-1.2c-.6 0-.9 0-1.12.12q-.3.15-.47.46c-.11.23-.11.53-.11 1.12m-.05 11.03v1.14c0 .6 0 .91.12 1.14q.15.31.47.47c.23.12.53.12 1.14.12h1.22c.6 0 .9 0 1.14-.12a1 1 0 0 0 .47-.47c.12-.23.12-.53.12-1.14v-1.14c0-.6 0-.9-.12-1.14a1 1 0 0 0-.47-.47c-.23-.12-.54-.12-1.14-.12h-1.22c-.6 0-.91 0-1.14.12a1 1 0 0 0-.47.47c-.12.23-.12.53-.12 1.14"></path>'),$w=Ce('<path d="M16.78 3h1.42q.47 0 .83.02.4.02.82.21.61.31.92.92.2.41.21.81.03.36.02.83v1.4q0 .47-.02.83-.02.4-.21.81a2 2 0 0 1-.92.92 2 2 0 0 1-.82.21q-.36.02-.83.02h-1.42q-.47 0-.84-.02a2 2 0 0 1-.81-.2 2 2 0 0 1-.93-.93 2 2 0 0 1-.2-.8l-.03-.64h-2.2c-.49 0-.8 0-1.04.02a1 1 0 0 0-.35.06 1 1 0 0 0-.35.35 1 1 0 0 0-.07.35c-.02.24-.02.55-.02 1.04v5.57c0 .5 0 .8.02 1.04s.05.31.07.34q.12.23.35.35c.03.02.11.05.34.07s.56.02 1.05.02h2.2q0-.34.02-.62.01-.4.21-.81.31-.61.93-.92.42-.2.81-.21.37-.02.84-.02h1.42q.47 0 .83.02.4.01.82.2.61.31.92.93.2.41.21.8.03.37.02.84v1.4q0 .47-.02.83-.02.39-.21.81a2 2 0 0 1-.92.92q-.43.2-.82.21-.36.02-.83.02h-1.42q-.47 0-.84-.02a2 2 0 0 1-.81-.21 2 2 0 0 1-.93-.92 2 2 0 0 1-.2-.81l-.03-.63h-2.24q-.68 0-1.16-.03a3 3 0 0 1-1.01-.26 2.6 2.6 0 0 1-1.14-1.14 3 3 0 0 1-.26-1q-.04-.5-.03-1.16v-1.93H2.9A.9.9 0 0 1 2 12c0-.5.4-.9.9-.9h5.23V9.18q0-.68.03-1.16.02-.51.26-1.02a2.6 2.6 0 0 1 1.14-1.13q.5-.24 1.02-.26.48-.04 1.16-.02h2.23q0-.34.02-.63.01-.4.21-.81.31-.61.93-.92.42-.2.81-.21.37-.02.84-.02m-.84 1.84.15-.02c.16-.02.37-.02.72-.02h1.35c.36 0 .57 0 .72.02l.15.02a.3.3 0 0 1 .12.12l.03.15.01.71v1.34l-.01.71-.02.15a.3.3 0 0 1-.13.13l-.15.02-.72.01h-1.35l-.72-.01-.15-.03a.3.3 0 0 1-.12-.12l-.02-.15-.02-.71V5.82q0-.5.02-.71l.02-.15a.3.3 0 0 1 .12-.12m0 11.02.15-.03.72-.01h1.35l.72.01.15.03a.3.3 0 0 1 .12.12l.03.15.01.71v1.34l-.01.71-.02.15a.3.3 0 0 1-.13.12l-.15.02c-.15.02-.36.02-.72.02h-1.35c-.35 0-.56 0-.72-.02l-.15-.02a.3.3 0 0 1-.12-.12l-.02-.15-.02-.71v-1.34c0-.35 0-.56.02-.71l.02-.15a.3.3 0 0 1 .12-.13"></path><!>',1);function jm(t,e){let i=g(e,"isOpened",3,!1),o=v(()=>i()?"graph-close-icon":"graph-open-icon");Ze(t,{get testId(){return n(o)},children:(r,a)=>{var l=$w(),d=L(de(l));{var s=u=>{var m=bw();b(u,m)};R(d,u=>{i()&&u(s)})}b(r,l)},$$slots:{default:!0}})}function Ec(t,e){B(e,!0);let i=g(e,"ref",15,void 0),o=g(e,"hidden",3,!1),r=g(e,"disabled",3,!1),a=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":"");Qt(t,{get className(){return n(u)},testId:"btn-graph",get disabled(){return r()},get ariaLabel(){return n(s)},get click(){return e.click},get ref(){return i()},set ref(m){i(m)},children:(m,p)=>{let f=v(()=>!!a());jm(m,{get isOpened(){return n(f)}})},$$slots:{default:!0}}),F()}var Xm=require("@vkontakte/videoplayer-core/es2015");function Pc(t,e){B(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$,m=s.actions.internal.switchToActiveLive,p=s.actions.internal.togglePlay,f=v(()=>()=>{if(!l()){m();return}r()===Xm.PlaybackState.PAUSED&&p()}),$=v(()=>a()?"":"btn--live btn-full-opacity"),y=v(()=>l()?"btn-live":"btn-live-offset"),_=v(()=>l()&&r()===Xm.PlaybackState.PLAYING);Qt(t,{get className(){return n($)},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}}),F(),o()}var Zm=require("@vkontakte/videoplayer-shared/es2015");var yw=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),xw=M('<img class="icon" aria-hidden="true"/>');function Xa(t,e){"use strict";let i=K(!1),o=()=>{O(i,!0)};var r=Le(),a=de(r);{var l=s=>{var u=yw();b(s,u)},d=s=>{var u=xw();D(()=>Ve(u,"src",e.icon)),_t("error",u,o),ka(u),b(s,u)};R(a,s=>{n(i)?s(l):s(d,!1)})}b(t,r)}function Jm(t,e){B(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":"");Fo(t,{get disabled(){return n(l)},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},width:40,get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},get tooltipVisible(){return e.tooltipVisible},get ref(){return r()},set ref(s){r(s)},children:(s,u)=>{let m=v(()=>{var p;return(p=e.testId)!=null?p:e.id});Qt(s,{get className(){return n(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return n(l)},get testId(){return n(m)},children:(p,f)=>{Xa(p,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),F()}var Rb=t=>!!t.buttonComponent;var Os={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var gp=(t,e,i,o)=>{if(t)for(let[r,a]of Object.entries(e))a.set(er(t,i,r,o))};var hp=require("@vkontakte/videoplayer-shared/es2015"),Nb=10,Ob=40,ev=.2,Sw=.5,Tw=65,Cw=114,Iw=4,Db=({onPreviewTrackOpened:t,getTimelineRef:e,isHorizontal:i})=>{let o=v(()=>i?Tw:Cw),r=K(!1),a=K(0),l=K(0),d=v(()=>n(o)+Nb-Ob-Iw),s=v(()=>(0,hp.interpolate)(n(a),[ev,1],[0,-n(d)])),u=v(()=>(0,hp.interpolate)(n(a),[ev,1],[0,Ob])),m=v(()=>(0,hp.interpolate)(n(a),[ev,1],[0,n(o)+Nb]));return{progressBarY:()=>n(s),controlsY:()=>n(u),calculatedHeight:()=>n(m),onPointerDown:_=>{var S;O(l,((S=e())==null?void 0:S.getBoundingClientRect().bottom)||0,!0),O(r,!0)},onPointerMove:_=>{if(!n(r))return;let S=Math.max(Math.min(_.clientY-n(l),0),-n(d));O(a,Math.abs(S/n(d)),!0)},onPointerUp:()=>{O(r,!1),O(a,n(a)>=Sw?1:0,!0),n(a)===1&&t()},closePreviewTrack:()=>{O(a,0)}}};var Ew=t=>t;function bs(t,{delay:e=0,duration:i=400,easing:o=Ew}={}){let r=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:a=>`opacity: ${a*r}`}}var Pw=M('<span class="root s-2b"> </span>'),Aw={hash:"s-2b",code:".root.s-2b{box-shadow:0 8px 24px 0 rgba(0,0,0,.08);box-shadow:0 0 2px 0 rgba(0,0,0,.08);color:#fff;font-size:13px;font-weight:500;line-height:16px}"};function tv(t,e){q(t,Aw);var i=Pw(),o=T(i,!0);w(i),D(()=>me(o,e.time)),b(t,i)}var kw=M('<div class="tooltip-wrapper s-i"><div><!></div></div>'),Lw={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 iv(t,e){q(t,Lw);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 m(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 p=v(()=>m(r()));var f=kw(),$=T(f);let y;var _=T($);ai(_,()=>{var S;return(S=e.children)!=null?S:ht}),w($),Xe($,S=>O(u,S),()=>n(u)),w(f),Xe(f,S=>O(s,S),()=>n(s)),D(S=>{Qe(f,`transform: translate(${n(p)}px, ${a()}px);`),y=se($,1,"tooltip s-i",null,y,S),Qe($,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),b(t,f)}var Bb=t=>Math.abs(t)/90%4===1;var Mw=M('<div class="preview s-j"></div>'),Vw=M('<div class="time s-j"> </div>'),Rw=M('<div><!> <div class="episode s-j"><!></div> <!></div>'),Nw={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 ov(t,e){B(e,!0),q(t,Nw);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,()=>[]),m=g(e,"progress",3,0),p=g(e,"duration",3,0),f=g(e,"isInteractive",3,!1),$=ve(),y=$.ui.rotateAlpha,_=$.ui.playerSize,S=K(0),C=K(0),I=K(""),N=K(0),P=K(0),E=K(0),k=K(0),Q=v(()=>ap(m(),p(),u())),H=v(()=>id(r())),z=v(()=>Bb(r())),Y=v(re),le=v(()=>(n(z)?1:-1)*(n(S)/2-n(C)/2)),X=v(()=>n(le)*-1);Oe(()=>{(j=>{O(S,j.width,!0),O(C,j.height,!0)})(we())}),Oe(()=>{(j=>{O(I,j.imgSrc,!0),O(N,j.imgWidth,!0),O(P,j.imgHeight,!0),O(E,j.imgOffsetX,!0),O(k,j.imgOffsetY,!0)})(ue(m()))});function re(){var Be;let j=s()?l.MOBILE:l.DESKTOP,{isVertical:ie}=Z(),De=30;return(Be=n(Q))!=null&&Be.text&&(De+=16),(ie||n(H))&&(De+=18,De+=50),Math.min(Math.max(a().height-De,0),j)}function Z(){let j=e.previewThumbsData.frameWidth,ie=e.previewThumbsData.frameHeight,De=ie>j;return{width:j,height:ie,isHorizontal:!De,isVertical:De}}function we(){let{height:j,isHorizontal:ie,isVertical:De,width:Be}=Z();return ie&&(j=j/Be*n(Y),Be=n(Y)),De&&(Be=Be/j*n(Y),j=n(Y)),{width:Be,height:j}}function ue(j){let ie;e.previewThumbsData.isUV?ie=Math.floor(p()*j/e.previewThumbsData.frequency):ie=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*j)));let De=Math.floor(ie/e.previewThumbsData.countPerImage),Be=Math.floor(ie%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),ot=ie%e.previewThumbsData.countPerRow,U=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&De===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(U=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&U++);let ke=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&De===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(ke=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Pe=n(S)*ke,Ue=n(C)*U,Je=-ot*n(S),ye=-Be*n(C);return{imgSrc:e.previewThumbsData.links[De],imgWidth:Pe,imgHeight:Ue,imgOffsetX:Je,imgOffsetY:ye}}var ne=Rw();let _e;var xe=T(ne);{var J=j=>{var ie=Mw();D(()=>Qe(ie,`width: ${n(S)}px; height: ${n(C)}px; background-image: url(${n(I)}); background-size: ${n(N)}px ${n(P)}px; background-position: ${n(E)}px ${n(k)}px;
|
|
60
|
+
M12 29.8c0-1 .8-1.8 1.8-1.8h10.4a1.8 1.8 90 010 3.6H13.8a1.8 1.8 90 01-1.8-1.8m0-7.6c0-1 .8-1.8 1.8-1.8h3.4a1.8 1.8 90 110 3.6H13.8a1.8 1.8 90 01-1.8-1.8m17 7.6c0-1 .8-1.8 1.8-1.8h3.4a1.8 1.8 90 110 3.6h-3.4a1.8 1.8 90 01-1.8-1.8M22 22.2c0-1 .8-1.8 1.8-1.8h10.4a1.8 1.8 90 010 3.6h-10.4a1.8 1.8 90 01-1.8-1.8`)),b(m,p)};R(d,m=>{e.type==="off"?m(s):m(u,!1)})}b(r,l)},$$slots:{default:!0}}),F()}function Am(t,e){B(e,!0);let i=g(e,"isSubtitlesEnabled",3,!1),r=ve().ui.t,a=v(()=>i()?r("tooltip_subtitles_on"):r("tooltip_subtitles_off"));Qt(t,{testId:"btn-Subtitles",get ariaLabel(){return n(a)},get click(){return e.click},get ariaKeyShortCut(){return gs.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}}),F()}var sx=M('<span class="duration s-1y" data-testid="video_duration"> </span>'),ax=M('<div><span class="current s-1y" data-testid="current_time"> </span> <!></div>'),lx={hash:"s-1y",code:'.time.s-1y{align-items:center;color:var(--controls-time);display:flex;font-variant-numeric:tabular-nums;font-weight:500;padding:12px 6px}.time.mobile.s-1y{padding:0 0 0 8px}.current.s-1y{position:relative}.duration.s-1y{opacity:.7}.duration.s-1y:before{content:" / ";white-space:pre}'};function fc(t,e){B(e,!0),q(t,lx);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=Nt(),d=ae(!1),s=v(()=>tn(e.duration)),u=v(()=>tn(e.position));var m=ax();let p;var f=T(m),$=T(f,!0);w(f);var y=L(f,2);{var _=S=>{var C=sx(),I=T(C,!0);w(C),D(()=>me(I,n(s))),b(S,C)};R(y,S=>{r()&&S(_)})}w(m),Ps(m,()=>Ql(o()&&l.features.usePerformanceFix,d,l.disableInvisibleComponentsTimeout)),Xe(m,S=>a(S),()=>a()),D(S=>{p=se(m,1,"time s-1y",null,p,S),me($,n(u))},[()=>({mobile:i()})]),b(t,m),F()}var vc=require("@vkontakte/videoplayer-shared/es2015");var dx=Ce("<path></path>");function da(t,e){B(e,!0);let i=g(e,"volume",3,1),o=g(e,"muted",3,!1),r=(p,f)=>f?"off":p>.5?"max":p>.2?"mid":p>0?"min":"off",a=v(()=>r(i(),o())),l=v(()=>hn(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",m="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";Ze(t,{get width(){return"48"},get height(){return"48"},get style(){return n(l)},get testId(){var p;return`volume-${(p=n(a))!=null?p:""}-icon`},get shadow(){return e.shadow},children:(p,f)=>{var $=dx();D(()=>Ve($,"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"?m:""}`}`)),b(p,$)},$$slots:{default:!0}}),F()}var Ho=require("@vkontakte/videoplayer-shared/es2015");var sp=require("@vkontakte/videoplayer-shared/es2015");var _b=require("@vkontakte/videoplayer-shared/es2015");var cx=M('<div class="overlay"><!></div>');function Lm(t,e){B(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))};Oe(()=>{u(r())}),Rt(()=>(u(r()),()=>s(r())));var m=cx(),p=T(m);ai(p,()=>{var f;return(f=e.children)!=null?f:ht}),w(m),Xe(m,f=>O(d,f),()=>n(d)),b(t,m),F(),o()}var ux=M('<div class="tooltip s-1f"><div class="content s-1f"> </div> <div class="tooltip-pointer s-1f"></div></div>'),px=M("<div><!></div> <!>",1),fx={hash:"s-1f",code:'.tooltip-wrapper.s-1f{display:flex;flex-direction:column;min-width:0}.full-width.s-1f{width:100%}.tooltip.s-1f{bottom:100%;left:0;opacity:0;position:absolute;transition:opacity .2s,visibility .2s;visibility:hidden}.content.s-1f{background-color:rgba(41,41,41,.8);border-radius:3px;color:var(--white);display:inline-block;padding:6px 10px}.tooltip-pointer.s-1f{border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid rgba(41,41,41,.8);bottom:0;content:" ";font-size:0;line-height:0;position:absolute;width:0}'};function Qa(t,e){B(e,!0),q(t,fx);let[i,o]=Re(),r=()=>x(Y,"$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),m=g(e,"translateY",3,0),p=g(e,"isFullWidthWrapper",3,!1),f=g(e,"maxTooltipWidth",3,void 0),$=g(e,"placement",3,"top"),y=g(e,"onVisibilityChange",3,_b.noop),_=5,S=K(void 0),C=K(void 0),I,N=K(0),P=K(0),E=K(0),A=K(0),Q=Nt(),H=ve(),z=H.ui.playerSize,Y=H.ui.overlayContainer$;Oe(()=>{Pt(()=>{y()(s())})});let le=H.getLogger().createComponentLog("Tooltip component"),X=()=>{if(!r()||!n(C)||!n(S))return;O(P,_);let U=r().getBoundingClientRect(),Ae=n(S).getBoundingClientRect(),Pe=Ae.width,Ue=n(C).clientWidth,Je=a().width,ye=(Pe-Ue)/2,ke=Ae.left+u()-U.left,Fe=ke+ye,Ft=Ae.top+m()-U.top,mt=Ue/2-_,Ht=Fe<8,lt=Fe+Ue>Je-8;Ht&&(Fe=8,mt=ke+Ae.width/2-2.5*_),lt&&(Fe=Je-8-Ue,mt=Ae.left-U.left+Ae.width/2-Fe-_),O(E,Fe,!0),O(A,Ft),O(N,mt,!0)},re=()=>{!r()||!n(C)||!n(S)||O(P,-_)},Z=()=>{if(!r()||!n(C)||!n(S))return;O(N,_);let U=r().getBoundingClientRect(),Ae=n(S).getBoundingClientRect(),Pe=Ae.height,Ue=n(C).clientHeight,Je=(Pe-Ue)/2+Ue,ye=Ae.left+u()-U.left-n(C).clientWidth,ke=2,Fe=ye-_;Fe<8&&(Fe=8);let mt=Ae.top+m()-U.top+Je,Ht=ke-Je/2,lt=ke-_;O(E,Fe,!0),O(A,mt),O(P,Ht),O(N,lt)},we=()=>{!r()||!n(C)||!n(S)||O(N,-_)},ue=()=>{switch($()){case"top":X();break;case"bottom":re();break;case"left":Z();break;default:we()}},ne=()=>{try{if(!r()||!n(S))return;ue(),s(!0)}catch(U){le({message:String(U)})}},_e=()=>{s(!1)},xe=()=>{n(C)&&(I||(I=window.setTimeout(ne,Q.controls.hideTimeoutTooltips)),s()&&ne())},J=()=>{_e(),window.clearTimeout(I),I=void 0},Ne=(U,Ae,Pe)=>{let Ue="";switch($()){case"top":Ue=`transform: translate(${U}px, ${Ae}px);`;break;case"bottom":Ue=`transform: translate(${U}px, ${Ae}px); top: auto; bottom: 100%;`;break;case"left":Ue=`transform: translate(${U}px, ${Ae}px); left: 0; right: auto;`;break;default:Ue=`transform: translate(${U}px, ${Ae}px);`}return Ue+=` max-width: ${f()===void 0?"auto":`${f()}px`};`,Ue+=` opacity: ${Pe?1:0}; visibility: ${Pe?"visible":"hidden"}`,Ue},pe=(U,Ae)=>{let Pe="";switch($()){case"top":Pe=`transform: translate(${U}px, ${Ae}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Pe=`transform: translate(${U}px, ${Ae}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Pe=`transform: translate(${U}px, ${Ae}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Pe=`transform: translate(${U}px, ${Ae}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Pe},k=v(()=>Ne(n(E),n(A),s())),We=v(()=>pe(n(N),n(P)));Rt(ue),gn(()=>window.clearTimeout(I));var Te=px(),j=de(Te);let ie;j.__pointermove=xe,j.__pointerdown=J,j.__pointerup=function(...U){var Ae;(Ae=e.disableMouseupTooltipShow?void 0:xe)==null||Ae.apply(this,U)};var De=T(j);ai(De,()=>{var U;return(U=e.children)!=null?U:ht}),w(j),Xe(j,U=>O(S,U),()=>n(S));var Be=L(j,2);{var ot=U=>{Lm(U,{children:(Ae,Pe)=>{var Ue=ux(),Je=T(Ue),ye=T(Je,!0);w(Je);var ke=L(Je,2);w(Ue),Xe(Ue,Fe=>O(C,Fe),()=>n(C)),D(()=>{Qe(Ue,n(k)),me(ye,d()),Qe(ke,n(We))}),b(Ae,Ue)},$$slots:{default:!0}})};R(Be,U=>{d()&&!l()&&U(ot)})}D(U=>ie=se(j,1,"tooltip-wrapper s-1f",null,ie,U),[()=>({"full-width":p()})]),_t("pointerenter",j,xe),_t("pointerleave",j,J),b(t,Te),F(),o()}it(["pointermove","pointerdown","pointerup"]);var bb=t=>{t.stopPropagation()},mx=M("<div><!></div>"),vx={hash:"s-y",code:".btn-container.s-y{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-y{min-width:0;width:100%}"};function Fo(t,e){B(e,!0),q(t,vx);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$,m=l.ui.t,p=g(e,"className",3,""),f=g(e,"disabled",3,!1),$=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),N=g(e,"tooltipPlacement",3,"top"),P=g(e,"disabledTooltipContent",19,()=>m("tooltip_button_disabled")),E=g(e,"isAriaHidden",3,!1),A=g(e,"onTooltipVisibilityChange",3,sp.noop),Q=g(e,"initialTranslateXPx",3,0),H=g(e,"initialTranslateYPx",19,()=>-18),z=g(e,"mouseEnter",3,sp.noop),Y=g(e,"mouseLeave",3,sp.noop),le=v(()=>f()?r()?m("tooltip_disabled_when_graph_on"):P():C()),X=K(!1);Oe(()=>{I()||O(X,!1)});var re=mx();re.__pointerdown=[bb],re.__click=[bb];var Z=T(re);{var we=ne=>{Qa(ne,{get content(){return n(le)},get translateX(){return Q()},get translateY(){return H()},get isFullWidthWrapper(){return S()},get placement(){return N()},get onVisibilityChange(){return A()},get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},get active(){return n(X)},set active(_e){O(X,_e,!0)},children:(_e,xe)=>{var J=Le(),Ne=de(J);ai(Ne,()=>{var pe;return(pe=e.children)!=null?pe:ht}),b(_e,J)},$$slots:{default:!0}})},ue=ne=>{var _e=Le(),xe=de(_e);ai(xe,()=>{var J;return(J=e.children)!=null?J:ht}),b(ne,_e)};R(Z,ne=>{$()&&n(le)&&!a()?ne(we):ne(ue,!1)})}w(re),Xe(re,ne=>y(ne),()=>y()),D(()=>{var ne;se(re,1,`btn-container ${(ne=p())!=null?ne:""}`,"s-y"),Ve(re,"aria-hidden",E()||null)}),_t("mouseenter",re,function(...ne){var _e;(_e=z())==null||_e.apply(this,ne)}),_t("mouseleave",re,function(...ne){var _e;(_e=Y())==null||_e.apply(this,ne)}),An(re,"clientWidth",_),b(t,re),F(),o()}it(["pointerdown","click"]);var gx=Ce('<rect width="20" height="20" rx="10"></rect><path d="m12.53 8.69.06.19-.22-.64a.83.83 0 0 0-1.6.47l.13.48-.23-.85a.82.82 0 0 0-1.6.24l-.73-2.93a.85.85 0 0 0-1.65.4L8 11.34l-1.12-1.16a.8.8 0 0 0-1.21 1.03l2.23 2.94s1.23 1.83 4.3 1.23c2.43-.48 3.25-2.67 2.58-4.88l-.55-2.3a.88.88 0 1 0-1.7.49"></path>',1);function mc(t,e){let i=v(()=>(e.completed,"interactive-episode-completed-icon"));Ze(t,{width:"20",height:"20",fill:"none",get testId(){return n(i)},children:(o,r)=>{var a=gx(),l=de(a),d=L(l);D(()=>{Ve(l,"fill",ta),Ve(l,"fill-opacity",e.completed?1:.24),Ve(d,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),b(o,a)},$$slots:{default:!0}})}var hx=M("<div><!></div>"),_x={hash:"s-l",code:".interactive-episode-icon.s-l{cursor:default;height:20px;position:absolute;transform:translateX(-50%);width:20px}.interactive-episode-icon.disabled.s-l{opacity:.4;pointer-events:none}"};function Mm(t,e){B(e,!0),q(t,_x);let o=ve().ui.t,r=K(0),a=v(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));Fo(t,{get tooltipContent(){return n(a)},initialTranslateXPx:-10,initialTranslateYPx:-10,get disabled(){return e.disabled},get width(){return n(r)},isAriaHidden:!0,isFullWidthTooltip:!1,children:(l,d)=>{var s=hx();let u;var m=T(s);let p=v(()=>!!e.videoEpisode.completed);mc(m,{get completed(){return n(p)}}),w(s),D(f=>{u=se(s,1,"interactive-episode-icon s-l",null,u,f),Qe(s,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),An(s,"clientWidth",f=>O(r,f)),b(l,s)},$$slots:{default:!0}}),F()}var bx=M('<div><div class="video-episode-inner s-k"><div class="video-episode-loaded s-k"></div> <div></div></div></div>'),$x=M('<div class="video-episodes-wrap s-k"></div>'),yx={hash:"s-k",code:".video-episodes-wrap.s-k{height:100%;position:absolute;width:100%}.video-episode.s-k{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-k:first-child{padding-left:0}.video-episode.s-k:last-child{padding-right:0}.video-episode.s-k:not(.disabled):where(:hover,:active){transform:scaleY(1.5)}.video-episode-filled.s-k,.video-episode-inner.s-k,.video-episode-loaded.s-k{border-radius:var(--slider-radius);height:var(--slider-height);position:absolute}.video-episode-inner.s-k{background:var(--slider-bg);overflow:hidden;position:absolute;width:calc(100% - var(--slider-video-episode-gap)*2)}.video-episode.s-k:first-child .video-episode-inner:where(.s-k),.video-episode.s-k:last-child .video-episode-inner:where(.s-k){width:calc(100% - var(--slider-video-episode-gap))}.video-episode-loaded.s-k{background:var(--slider-loaded-bg);transition:transform .2s}.video-episode-filled.s-k,.video-episode-loaded.s-k{border-radius:var(--slider-radius);height:100%;left:-100%;position:absolute;width:100%}.video-episode-filled.s-k{background-color:var(--slider-filled-bg)}"};function Vm(t,e){q(t,yx);let i=g(e,"videoEpisodes",19,()=>[]);var o=$x();Ti(o,21,i,r=>r.from,(r,a)=>{var l=bx();let d;var s=T(l),u=T(s),m=L(u,2);let p;w(s),w(l),D((f,$)=>{d=se(l,1,"video-episode s-k",null,d,f),Qe(l,`left: ${n(a).from}%; width: ${n(a).width}%`),Qe(u,`transform: translateX(${n(a).loadedWidth/n(a).width*100}%)`),p=se(m,1,"video-episode-filled s-k",null,p,$),Qe(m,`transform: translateX(${n(a).filledWidth/n(a).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),b(r,l)}),w(o),b(t,o)}function xx(t,e,i,o,r,a,l){if(t.preventDefault(),e()&&O(i,e().getBoundingClientRect(),!0),o()||n(r)||!e())return;O(r,!0);let d=a(t.clientX,t.clientY);l()(d,t),e().setPointerCapture(t.pointerId)}function wx(t,e,i,o,r,a,l,d){if(t.preventDefault(),e())return;let s=i(t.clientX,t.clientY),u=o(t.clientX);r()(s,u,n(a).width,t),n(l)&&d()(s)}function Sx(t,e,i,o,r){if(t.preventDefault(),e()||!n(i))return;O(i,!1);let a=o(t.clientX,t.clientY);r()(a,t)}function Tx(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}function Cx(t,e,i,o,r,a){let l=e(t.clientX,t.clientY);i()&&o()(l),O(r,!1),a()(l)}var Ix=M("<div></div>"),Ex=M('<div class="bars s-h"><div class="loaded s-h"></div> <div></div></div>'),Px=M('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),kx={hash:"s-h",code:'.interactive-icons.s-h{position:absolute;top:-28px;width:calc(100% - 20px)}.interactive-icons.mobile.s-h{top:-10px}.slider.s-h{border-radius:var(--slider-radius);cursor:pointer;height:var(--slider-height);position:relative;touch-action:none;transition:opacity .2s;width:100%;will-change:opacity,transform;-webkit-tap-highlight-color:transparent}.no-handle.s-h{cursor:default}.slider.s-h:before{content:"";height:calc(var(--controls-height)/2);left:0;position:absolute;right:0;top:calc((var(--controls-height)/2 - var(--slider-height))*-1/2)}.bars.s-h{background:var(--slider-bg);overflow:hidden}.bars.s-h,.loaded.s-h{border-radius:var(--slider-radius);height:100%;position:absolute;width:100%}.loaded.s-h{background:var(--slider-loaded-bg);left:-100%;transition:transform .2s;will-change:transform}.filled.s-h{background-color:var(--slider-filled-bg);border-radius:var(--slider-radius);height:100%;left:-100%;position:absolute;width:100%}.slider.square.s-h,.slider.square.s-h .filled:where(.s-h),.slider.square.s-h .loaded:where(.s-h),.slider.square.s-h>.bars:where(.s-h){border-radius:unset}.filled.active-live.s-h{background-color:var(--timeline-slider-filled-active-live-bg)}.filled.ads.s-h{background-color:var(--slider-filled-ads)}.handleWrap.s-h{left:-100%;position:absolute;width:100%}.handle.s-h{background-color:var(--slider-handle-bg);border-radius:50%;height:var(--slider-handle-size);opacity:0;position:absolute;right:calc(var(--slider-handle-size)*-1/2);top:calc((var(--slider-height) - var(--slider-handle-size))/2);transform:scale(0);transition:opacity .2s,transform .2s;visibility:hidden;width:var(--slider-handle-size);will-change:opacity,transform}.handle.active-live.s-h{background-color:var(--timeline-slider-handle-active-live-bg)}.handle-always-visible.s-h .handle:where(.s-h),.slider-dragging.s-h .handle:where(.s-h),.slider.s-h:hover .handle:where(.s-h){opacity:1;transform:scale(1);visibility:visible}.slider-dragging.s-h .handle:where(.s-h){transform:scale(1.3)}.slider-vertical.s-h{left:-8px;position:absolute;top:-18px;transform:rotate(-90deg);transform-origin:0 0}.slider.disabled.s-h{cursor:default;opacity:.4}'};function Ga(t,e){B(e,!0),q(t,kx);let i=g(e,"ref",15,void 0),o=g(e,"className",3,""),r=g(e,"testId",3,void 0),a=g(e,"isHidden",3,!1),l=g(e,"isVertical",3,!1),d=g(e,"isActiveLive",3,!1),s=g(e,"isMobile",3,!1),u=g(e,"squareBorders",3,!1),m=g(e,"videoEpisodes",19,()=>[]),p=g(e,"withWheelHandler",3,!1),f=g(e,"isInteractive",3,!1),$=g(e,"disabled",3,!1),y=g(e,"hideHandel",3,!1),_=g(e,"onPointerDown",3,Ho.noop),S=g(e,"onHandleMove",3,Ho.noop),C=g(e,"onPointerUp",3,Ho.noop),I=g(e,"onPointerEnter",3,Ho.noop),N=g(e,"onPointerMove",3,Ho.noop),P=g(e,"onPointerLeave",3,Ho.noop),E=g(e,"onMouseEnter",3,Ho.noop),A=g(e,"onMouseLeave",3,Ho.noop),Q=g(e,"onWheelUp",3,Ho.noop),H=g(e,"onWheelDown",3,Ho.noop),z=g(e,"onWheelLeft",3,Ho.noop),Y=g(e,"onWheelRight",3,Ho.noop),le=g(e,"onDisabledClick",3,Ho.noop),X=g(e,"loadedProgress",3,0),re=g(e,"filledProgress",3,0),Z=g(e,"handleProgress",3,0),we=g(e,"ariaLabel",3,""),ue=g(e,"ariaValueMin",3,void 0),ne=g(e,"ariaValueMax",3,void 0),_e=g(e,"ariaValueNow",3,void 0),xe=g(e,"ariaValueText",3,""),J=g(e,"onContextMenu",3,Ho.noop),Ne=g(e,"handleAlwaysVisible",3,!1),pe=Nt(),k=K(void 0),We=K(!1),Te=v(()=>{var Me;return(Me=ne())!=null?Me:0}),j=v(()=>{var Me;return(0,Ho.isNonNullable)(m())&&((Me=m()[m().length-1])==null?void 0:Me.time)<n(Te)}),ie=v(()=>(0,Ho.isNonNullable)(m())&&m().length&&n(j)&&n(Te)?Je(X()*100,re()*100):[]);function De(Me){if(Me.preventDefault(),i()&&O(k,i().getBoundingClientRect(),!0),$())return;let xt=Pe(Me.clientX,Me.clientY),Lt=Ue(Me.clientX);I()(xt,Lt,n(k).width)}function Be(Me){Me.preventDefault(),!$()&&P()()}function ot(){E()()}function U(){A()()}function Ae(Me){$()||p()&&(Me.preventDefault(),Me.deltaY<0?Q()():Me.deltaY>0?H()():Me.deltaX>0?Y()():z()())}function Pe(Me,xt){return l()?Math.max(0,Math.min(1,(n(k).height-(xt-n(k).top))/n(k).height)):Math.min(Math.max(Me-n(k).x,0),n(k).width)/n(k).width}function Ue(Me){return Math.min(Math.max(Me-n(k).x,0),n(k).width)}function Je(Me,xt){let Lt=pe.features.episodesClustering&&!f()?pe.episodeMinWidthPc:0,pt=[],ce=m()[0].time/n(Te)*100,ze=0,Ye=0;for(let zt=1;zt<m().length;zt++)ze=m()[zt].time/n(Te)*100,ze-ce>Lt&&(pt.push({from:ce,width:Math.max(0,ze-ce),loadedWidth:Math.max(0,Math.min(ze,Me)-ce),filledWidth:Math.max(0,Math.min(ze,xt)-ce),interactive:m()[zt-1].interactive,completed:m()[zt-1].completed}),ce=m()[zt].time/n(Te)*100,Ye++);let dt={from:ce,width:Math.max(0,100-ce),loadedWidth:Math.max(0,Math.min(Me,100)-ce),filledWidth:Math.max(0,Math.min(xt,100)-ce),interactive:m()[Ye].interactive,completed:m()[Ye].completed};100-ce<Lt?(Ye-=1,pt[Ye].width+=100-ce,pt[Ye].loadedWidth+=Math.max(0,Math.min(Me,100)-ce),pt[Ye].filledWidth+=Math.max(0,Math.min(xt,100)-ce)):pt[Ye]=dt;let Ut=m()[0].time;if(Ut!==0){let zt=Ut/n(Te)*100;pt.unshift({from:0,width:zt,loadedWidth:Math.min(zt,Me),filledWidth:Math.min(zt,xt)})}return pt}function ye(Me){return Math.max(0,Math.min(100,Me*100))}let ke=v(()=>ye(X())),Fe=v(()=>ye(re()));var Ft=Px(),mt=de(Ft);{var Ht=Me=>{var xt=Ix();let Lt;Ti(xt,21,()=>n(ie),pt=>pt.from,(pt,ce)=>{var ze=Le(),Ye=de(ze);{var dt=Ut=>{Mm(Ut,{get videoEpisode(){return n(ce)},get disabled(){return $()}})};R(Ye,Ut=>{n(ce).interactive&&Ut(dt)})}b(pt,ze)}),w(xt),D(pt=>Lt=se(xt,1,"interactive-icons s-h",null,Lt,pt),[()=>({mobile:s(),hidden:s()&&!n(We)})]),b(Me,xt)};R(mt,Me=>{f()&&Me(Ht)})}var lt=L(mt,2);let Ct;lt.__pointerdown=[xx,i,k,$,We,Pe,_],lt.__pointermove=[wx,$,Pe,Ue,N,k,We,S],lt.__pointerup=[Sx,$,We,Pe,C],lt.__click=[Tx,$,le,Pe],lt.__contextmenu=[Cx,Pe,$,le,We,J];var oi=T(lt);{var Ot=Me=>{Vm(Me,{get videoEpisodes(){return n(ie)},get disabled(){return $()},get isMobile(){return s()}})},$e=Me=>{var xt=Ex(),Lt=T(xt),pt=L(Lt,2);let ce;w(xt),D(ze=>{Ve(Lt,"data-value",n(ke)),Qe(Lt,`transform: translateX(${n(ke)}%);`),ce=se(pt,1,"filled s-h",null,ce,ze),Ve(pt,"data-value",n(Fe)),Qe(pt,`transform: translateX(${n(Fe)}%);`)},[()=>({"active-live":d()})]),b(Me,xt)};R(oi,Me=>{n(ie).length?Me(Ot):Me($e,!1)})}var be=L(oi,2);let ee;var nt=T(be);let fe;w(be),w(lt),Xe(lt,Me=>i(Me),()=>i()),D((Me,xt,Lt,pt)=>{var ce,ze;Ct=se(lt,1,`slider ${(ce=o())!=null?ce:""}`,"s-h",Ct,Me),Ve(lt,"aria-label",we()),Ve(lt,"aria-valuemin",ue()),Ve(lt,"aria-valuemax",ne()),Ve(lt,"aria-valuenow",_e()),Ve(lt,"aria-valuetext",xe()),Ve(lt,"data-testid",(ze=r())!=null?ze:null),ee=se(be,1,"handleWrap s-h",null,ee,xt),Qe(be,Lt),fe=se(nt,1,"handle s-h",null,fe,pt)},[()=>({disabled:$(),"slider-dragging":n(We),hidden:a(),"handle-always-visible":Ne(),"slider-vertical":l(),"no-handle":y(),square:u()}),()=>({hidden:y()}),()=>`transform: translateX(${ye(Z())}%);`,()=>({"active-live":d()})]),_t("pointerenter",lt,De),_t("pointerleave",lt,Be),_t("mouseenter",lt,ot),_t("mouseleave",lt,U),_t("wheel",lt,Ae),b(t,Ft),F()}it(["pointerdown","pointermove","pointerup","click","contextmenu"]);var ro=(t,e)=>Xd[t]>=Xd[e];var Ms=(t,e)=>Xd[t]<=Xd[e],$b=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var Lx=M("<div><!></div>"),Mx=M("<div><!> <!></div>"),Vx={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 Rm(t,e){var Ue,Je;B(e,!0),q(t,Vx);let[i,o]=Re(),r=()=>x(N,"$isAudioAvailable$",i),a=()=>x(f,"$muted$",i),l=()=>x(p,"$volume$",i),d=()=>x(S,"$currentGridType$",i),s=()=>x(De,"$controlsVisible",i),u=ve(),m=Nt(),p=u.state.volume$,f=u.state.muted$,{setVolume:$,startVolumeChanging:y,stopVolumeChanging:_}=u.actions.internal,S=u.ui.currentGridType$,C=(Ue=u.callbacks)==null?void 0:Ue.onAudioDoesNotExistHint,I=(Je=u.callbacks)==null?void 0:Je.onAudioDisabledHint,N=u.state.isAudioAvailable$,P=u.state.isAudioDisabled,E=u.ui.t,A=K(!1),Q,H=v(()=>e.isAds||r()),z=v(()=>!n(H)||a()||l()===0),Y=v(()=>Ms(d(),"l")),le=v(()=>n(Y)?"":n(z)?!r()||P?E("tooltip_sound_unavailable"):E("tooltip_volume"):E("tooltip_volume_muted")),X=v(()=>n(z)?E("tooltip_volume"):E("tooltip_volume_muted")),re=v(()=>n(z)?0:l()),Z=!1,we=v(()=>e.isAds?!1:P?!I:r()?!1:!C);function ue(ye){y(),$(ye)}function ne(){ip(u,l(),m.controls.volumeStepWheel)}function _e(){op(u,l(),m.controls.volumeStepWheel)}function xe(ye){$(ye)}function J(ye){$(ye),_()}function Ne(){Z=!0}function pe(){Z=!1,Te()}function k(){clearTimeout(Q),O(A,!0)}function We(){Te()}function Te(){Q=window.setTimeout(()=>{Z||O(A,!1)},m.controls.volumeBarTimeout)}function j(ye){ye.preventDefault(),ye.deltaY<0?ne():ye.deltaY>0&&_e()}let ie=K(!1),De=u.ui.controlsVisible;Oe(()=>{s()||O(ie,!1)});var Be=Mx();let ot;var U=T(Be);Qa(U,{get content(){return n(le)},translateY:-18,get active(){return n(ie)},set active(ye){O(ie,ye,!0)},children:(ye,ke)=>{let Fe=v(()=>n(Y)?"btn-volume-vertical":"btn-volume-horizontal");Qt(ye,{className:"btn-full-opacity",get disabled(){return n(we)},get testId(){return n(Fe)},get ariaLabel(){return n(X)},get click(){return e.click},get ariaKeyShortCut(){return gs.KeyM},role:"button",children:(Ft,mt)=>{da(Ft,{get size(){return"24"},get volume(){return l()},get muted(){return n(z)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var Ae=L(U,2);{var Pe=ye=>{var ke=Lx();let Fe;var Ft=T(ke);let mt=v(()=>n(Y)?"volumeBar-slider-vertical":""),Ht=v(()=>n(Y)&&!n(A)),lt=v(()=>n(Y)?Ne:vc.noop),Ct=v(()=>n(Y)?pe:vc.noop),oi=v(()=>Math.round(n(re)*100)),Ot=v(()=>`${Math.round(n(re)*100)}%`),$e=v(()=>n(Y)?"volume-slider-vertical":"volume-slider");Ga(Ft,{get className(){return n(mt)},get isHidden(){return n(Ht)},get isVertical(){return n(Y)},withWheelHandler:!0,onWheelUp:ne,onWheelDown:_e,onPointerDown:ue,onHandleMove:xe,onPointerUp:J,get onPointerEnter(){return n(lt)},get onPointerLeave(){return n(Ct)},ariaLabel:"Ползунок громкости",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return n(oi)},get ariaValueText(){return n(Ot)},get filledProgress(){return n(re)},get handleProgress(){return n(re)},get testId(){return n($e)}}),w(ke),D(be=>Fe=se(ke,1,"volumeBar s-28",null,Fe,be),[()=>({"volumeBar-vertical":n(Y)})]),b(ye,ke)};R(Ae,ye=>{n(H)&&ye(Pe)})}w(Be),D(ye=>ot=se(Be,1,"volumeBar-container s-28",null,ot,ye),[()=>({vertical:n(Y)})]),_t("mouseenter",Be,function(...ye){var ke;(ke=n(Y)?k:vc.noop)==null||ke.apply(this,ye)}),_t("mouseleave",Be,function(...ye){var ke;(ke=n(Y)?We:vc.noop)==null||ke.apply(this,ye)}),_t("wheel",Be,j),b(t,Be),F(),o()}var yb=require("@vkontakte/videoplayer-shared/es2015");var Rx=Ce('<path d="M4.58 13.98a1 1 0 0 1 .99-1h4.45a1 1 0 0 1 1 1v4.45a.99.99 0 0 1-1.99 0v-2.05L5.71 19.7a1 1 0 1 1-1.41-1.4l3.32-3.32H5.57a1 1 0 0 1-.99-1m10.39-6.36 3.32-3.32a1 1 0 1 1 1.41 1.4l-3.32 3.32h2.05a.99.99 0 0 1 0 1.98H14a1 1 0 0 1-1-1V5.57a.99.99 0 1 1 1.98 0z"></path>'),Nx=Ce('<path d="M10.5 19a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-4.5a1 1 0 0 1 2 0v2.07l3.36-3.36a1 1 0 0 1 1.42 0l.01.01a1 1 0 0 1 0 1.42L7.43 18H9.5a1 1 0 0 1 1 1M18 7.43l-3.36 3.36a1 1 0 0 1-1.42 0l-.01-.01a1 1 0 0 1 0-1.42L16.57 6H14.5a1 1 0 0 1 0-2H19a1 1 0 0 1 1 1v4.5a1 1 0 0 1-2 0z"></path>');function Nm(t,e){let i=g(e,"isFullscreen",8,!1),o=Cn(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");Ze(t,{get testId(){return n(o)},children:(r,a)=>{var l=Le(),d=de(l);{var s=m=>{var p=Rx();b(m,p)},u=m=>{var p=Nx();b(m,p)};R(d,m=>{i()?m(s):m(u,!1)})}b(r,l)},$$slots:{default:!0}})}function gc(t,e){B(e,!0);let i=g(e,"isFullscreen",3,!1),o=g(e,"click",3,yb.noop),r=ve(),a=r.ui.isFullscreenOpenedByKeyboard,l=r.ui.t,d=v(()=>i()?l("tooltip_fullscreen_on"):l("tooltip_fullscreen_off"));Qt(t,{testId:"fullscreen-btn",get ariaLabel(){return n(d)},click:u=>{let m=ra(u);a.set(m),o()()},get ariaKeyShortCut(){return gs.KeyF},role:"button",children:(u,m)=>{Nm(u,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),F()}var Ox=Ce('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4.26 4.26C3 5.54 3 7.57 3 11.65v.72c0 4.07 0 6.11 1.26 7.38C5.54 21 7.57 21 11.65 21h.72c4.07 0 6.11 0 7.38-1.26C21 18.47 21 16.43 21 12.36v-.72c0-4.07 0-6.11-1.26-7.38C18.47 3 16.43 3 12.36 3h-.72C7.57 3 5.53 3 4.26 4.26M6 8.5c.1 4.68 2.56 7.5 6.61 7.5h.24v-2.68c1.47.15 2.57 1.25 3.02 2.68H18a6 6 0 0 0-3-3.76 5.7 5.7 0 0 0 2.55-3.74h-1.94c-.4 1.49-1.61 2.84-2.77 2.97V8.5h-1.96v5.2c-1.2-.3-2.76-1.76-2.83-5.2z" clip-rule="evenodd"></path></svg>');function Om(t,e){let i=Ln(e,["$$slots","$$events","$$legacy","children"]);var o=Ox();no(o,()=>Ie({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:ht}),vi(),w(o),b(t,o)}var Dx=Ce('<svg><!><svg data-logo="vk_video"><path d="M7 8.6c0-1.96 0-2.94.38-3.69a3.5 3.5 0 0 1 1.53-1.53C9.66 3 10.64 3 12.6 3h1.36c2.46 0 3.7 0 4.64.48a4.4 4.4 0 0 1 1.92 1.92c.48.94.48 2.18.48 4.64v3.92c0 2.46 0 3.7-.48 4.64a4.4 4.4 0 0 1-1.92 1.92c-.94.48-2.18.48-4.64.48H12.6c-1.96 0-2.94 0-3.69-.38a3.5 3.5 0 0 1-1.53-1.53C7 18.34 7 17.36 7 15.4zm9.26 1.74c.9.54 1.36.81 1.51 1.16.13.3.13.65 0 .96-.15.34-.6.61-1.5 1.15l-2.4 1.43c-.93.56-1.4.84-1.8.8-.33-.03-.64-.2-.84-.48-.23-.31-.23-.86-.23-1.96v-2.85c0-1.1 0-1.64.23-1.96q.31-.42.85-.48c.38-.04.86.25 1.8.8zM5 9.04c0-2.46 0-3.7.48-4.64q.37-.71.95-1.25-.58.1-1.03.33A4.4 4.4 0 0 0 3.48 5.4C3 6.34 3 7.58 3 10.04v3.92c0 2.46 0 3.7.48 4.64a4.4 4.4 0 0 0 1.92 1.92q.45.23 1.03.33a4 4 0 0 1-.95-1.25C5 18.66 5 17.42 5 14.96z"></path></svg><svg x="4" y="3" data-logo="play_market"><path d="M0 1.26v15.47q0 .66.34 1L9.52 9 .33.28C.08.53 0 .92 0 1.26"></path><path d="M.33.28.38.23c.34-.3.89-.32 1.49 0l10.75 5.81-2.6 2.48zm10.29 8.75 2.88 2.45-.53.29-.34.18-2.58-2.44-9.71 8.22c.33.34.9.37 1.53.04l11.1-6 .53-.29 2.73-1.47c1.03-.56 1.03-1.47 0-2.02l-2.77-1.5-.84-.45.84.45.1.05z"></path></svg><svg x="3" data-logo="app_store"><path d="M17.62 16.37q-.48 1.09-1.15 2.03-.9 1.27-1.48 1.75-.88.8-1.9.83-.72 0-1.76-.42a5 5 0 0 0-1.89-.4q-.9 0-1.94.4a5 5 0 0 1-1.68.44q-.98.04-1.95-.85-.62-.53-1.55-1.82a13 13 0 0 1-1.63-3.2 12 12 0 0 1-.69-3.8q0-2.1.93-3.64A5.4 5.4 0 0 1 5.5 5.03q.77 0 2.03.46t1.62.47q.26 0 1.79-.55a6 6 0 0 1 2.43-.42 5.2 5.2 0 0 1 4.05 2.09q-2.4 1.44-2.4 4.02a4.4 4.4 0 0 0 1.49 3.34q.66.61 1.48.95-.18.5-.38.98M13.5.42q0 1.58-1.17 2.94c-.94 1.08-2.07 1.7-3.3 1.6L9 4.56c0-1 .45-2.08 1.24-2.96q.6-.67 1.5-1.12.93-.44 1.74-.48z"></path></svg><path d="M32.55 17.04h2.5L38.7 7h-1.8l-2.94 8.28h-.28L30.84 7H29zm15.52 0-4.61-5.2L47.72 7H45.6l-3.56 4.09h-.42V7h-1.7v10.04h1.7v-4.3h.43l3.76 4.3z"></path><path d="M57.89 11.89a2.2 2.2 0 0 0 1.44-2.16C59.33 8.14 58 7 56.06 7h-3.92v10.04h4.2c1.96 0 3.29-1.14 3.29-2.8 0-1.17-.66-2.04-1.74-2.35m-4.04-3.4h2.21c.92 0 1.54.56 1.54 1.39 0 .8-.62 1.36-1.54 1.36h-2.2zm2.5 7.06h-2.5v-2.81h2.5c.9 0 1.52.57 1.52 1.4 0 .84-.62 1.4-1.52 1.4m4.84 1.5h2.32l2.77-5.5h.22v5.5h1.57v-7.4h-2.32l-2.77 5.5h-.22v-5.5h-1.57zm7.96 2.21h1.64v-2.2h5.33v2.2h1.64v-3.7h-1.29V9.64h-5.43l-.37 3.78c-.13 1.34-.53 2.13-1.34 2.13h-.18zm2.49-3.7c.4-.39.57-1.04.68-2.15l.23-2.27h2.28v4.42zm14.38-2.3a3.7 3.7 0 0 0-3.84-3.76 3.7 3.7 0 0 0-3.85 3.85 3.7 3.7 0 0 0 3.85 3.84c1.54 0 2.99-.72 3.55-2.13l-1.54-.26c-.36.53-1.04.9-1.91.9-1.26 0-2.09-.77-2.24-1.91H86zm-3.84-2.33c1.02 0 1.8.65 2.06 1.58h-4.1a2.1 2.1 0 0 1 2.04-1.58m8.66 6.26c2.32 0 3.96-1.6 3.96-3.84 0-2.25-1.64-3.85-3.96-3.85s-3.97 1.6-3.97 3.85 1.64 3.84 3.97 3.84m0-1.5c-1.34 0-2.25-.95-2.25-2.34 0-1.4.9-2.35 2.25-2.35 1.34 0 2.25.95 2.25 2.35s-.91 2.35-2.25 2.35" class="_ru"></path><path d="M35.02 17.36h-2.48L29 7.42h1.83l2.83 8.2h.28l2.93-8.2h1.8zm8.41-5.15 4.6 5.15h-2.24l-3.75-4.26h-.43v4.26h-1.7V7.42h1.7v4.05h.41l3.55-4.05h2.1zm13.37 5.15h-2.48L50.8 7.42h1.83l2.82 8.2h.29l2.92-8.2h1.8zm6.46 0h-1.64v-7.33h1.64zm-.81-8.37q-.45 0-.74-.27a1 1 0 0 1-.28-.72q0-.44.28-.72.3-.28.74-.28t.72.28q.3.29.29.72 0 .44-.29.72t-.72.27m5.93 8.51q-1.03 0-1.86-.48a3.5 3.5 0 0 1-1.29-1.35 4 4 0 0 1-.45-1.98q0-1.1.45-1.95.46-.88 1.3-1.36.81-.5 1.85-.5.9 0 1.6.38.68.35 1.13.88V7.42h1.63v9.94h-1.22l-.34-1.18q-.46.54-1.17.94a3.4 3.4 0 0 1-1.63.38m.4-1.45q1.04 0 1.68-.65.65-.66.65-1.7t-.65-1.7a2.2 2.2 0 0 0-1.68-.66 2.2 2.2 0 0 0-1.66.66q-.64.66-.64 1.7t.64 1.7q.64.65 1.66.65m13.15-2.44-.03.52h-5.94q.12.86.71 1.38.6.51 1.52.51.63 0 1.13-.24.51-.24.78-.65l1.53.26q-.39 1.01-1.38 1.56-.96.55-2.16.55-1.1 0-1.98-.48a3.6 3.6 0 0 1-1.85-3.33q0-1.1.48-1.95.5-.88 1.37-1.36a4 4 0 0 1 1.98-.5q1.11 0 1.98.5.88.48 1.36 1.34.5.86.5 1.89m-3.84-2.31q-.73 0-1.29.42-.53.42-.74 1.14h4.1a2.2 2.2 0 0 0-2.07-1.56m8.66 6.2q-1.14 0-2.04-.48a3.7 3.7 0 0 1-1.4-1.35 4 4 0 0 1-.5-1.98q0-1.1.5-1.95.5-.88 1.4-1.36.9-.5 2.04-.5t2.03.5q.91.48 1.4 1.36.52.86.52 1.95 0 1.11-.51 1.98-.5.86-1.4 1.35-.9.48-2.04.48m0-1.48q.99 0 1.62-.63.63-.66.63-1.7t-.63-1.67a2.2 2.2 0 0 0-1.62-.65q-.99 0-1.62.65-.62.63-.62 1.67 0 1.05.62 1.7.63.63 1.62.63" class="_en"></path></svg>');function Dm(t,e){let i=Ln(e,["$$slots","$$events","$$legacy","children"]);var o=Dx();no(o,()=>Ie({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:ht}),vi(6),w(o),b(t,o)}var Bx={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 Bm(t,e){B(e,!0),q(t,Bx);let i=g(e,"short",3,!1),o=g(e,"isCyrillic",3,!0),r=g(e,"logo",19,()=>"vk_video"),a="vk-video-logo-icon--short",l=24,d=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()}}),F()}function hc(t,e){B(e,!0);let[i,o]=Re(),r=()=>x($,"$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,""),m=Nt(),p=ve(),f=p.ui.currentGridType$,$=p.ui.isMobile,y=p.ui.t,_=p.isCyrillicRelatedInterface$,S=v(()=>m.logoType!=="vk"),C=v(()=>n(S)?y("tooltip_vk_video_logo"):y("tooltip_vk_logo")),I=v(()=>(r()&&Ms(a(),"m")||Ms(a(),"l"))&&n(S)),N=()=>{var A,Q;e.click(),(A=p.callbacks)!=null&&A.onLogoClicked?(Q=p.callbacks)==null||Q.onLogoClicked():u()&&window.open(u(),"_blank")},P=v(()=>!s()),E=v(()=>n(S)?"btn-vk-video-logo":"btn-vk-logo");Qt(t,{className:"btn-full-opacity",get disabled(){return n(P)},click:N,get testId(){return n(E)},get ariaLabel(){return n(C)},get ref(){return d()},set ref(A){d(A)},children:(A,Q)=>{var H=Le(),z=de(H);{var Y=X=>{Bm(X,{get logo(){return m.logoType},get short(){return n(I)},get isCyrillic(){return l()}})},le=X=>{Om(X,{})};R(z,X=>{n(S)?X(Y):X(le,!1)})}b(A,H)},$$slots:{default:!0}}),F(),o()}var wb=require("@vkontakte/videoplayer-core/es2015");var Fm=require("@vkontakte/videoplayer-core/es2015");var Fx=Ce('<path d="M3.6 13.3a5.1 5.1 0 0 1 5.05 5.83.9.9 0 0 1-1.78-.26 3.3 3.3 0 0 0-3.74-3.74.9.9 0 0 1-.26-1.78c.24-.03.49-.05.73-.05Z" class="s-1d"></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-1d"></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-1d"></path>',1),Hx=Ce('<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-1d"></path><path d="M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z"></path>',1),Ux={hash:"s-1d",code:".animated.s-1d{animation-duration:1s;animation-iteration-count:infinite}.wave1.animated.s-1d{animation-name:s-1d-wave1}.wave2.animated.s-1d{animation-name:s-1d-wave2}.wave3.animated.s-1d{animation-name:s-1d-wave3}@keyframes s-1d-wave1{0%{opacity:.3}33%{opacity:1}66%{opacity:1}to{opacity:1}}@keyframes s-1d-wave2{0%{opacity:.3}33%{opacity:.3}66%{opacity:1}to{opacity:1}}@keyframes s-1d-wave3{0%{opacity:.3}33%{opacity:.3}66%{opacity:.3}to{opacity:1}}"};function _c(t,e){B(e,!0),q(t,Ux);let i=g(e,"isMobile",3,!1),o=v(()=>e.iconState===Fm.ChromecastState.CONNECTED),r=v(()=>e.iconState===Fm.ChromecastState.CONNECTING),a=v(()=>n(o)?"#2688EB":ta),l=v(()=>e.size?hn(e.size):void 0);var d=Le(),s=de(d);{var u=p=>{Ze(p,{get fill(){return n(a)},get style(){return n(l)},testId:"chromecast-mobile-icon",children:(f,$)=>{var y=Fx();vi(2),b(f,y)},$$slots:{default:!0}})},m=p=>{Ze(p,{get style(){return n(l)},testId:"chromecast-icon",children:(f,$)=>{var y=Hx(),_=de(y);let S;var C=L(_);let I;var N=L(C);let P;var E=L(N,2);let A;D((Q,H,z,Y)=>{S=se(_,0,"wave1 s-1d",null,S,Q),I=se(C,0,"wave2 s-1d",null,I,H),P=se(N,0,"wave3 s-1d",null,P,z),A=se(E,0,"s-1d",null,A,Y)},[()=>({animated:n(r)}),()=>({animated:n(r)}),()=>({animated:n(r)}),()=>({hidden:!n(o)})]),b(f,y)},$$slots:{default:!0}})};R(s,p=>{i()?p(u):p(m,!1)})}b(t,d),F()}var Sb=require("@vkontakte/videoplayer-shared/es2015");function bc(t,e){B(e,!0);let i=g(e,"ref",15,void 0),o=g(e,"isMobile",3,!1),r=g(e,"click",3,Sb.noop),l=ve().ui.t,d=v(()=>e.state===wb.ChromecastState.CONNECTED?l("tooltip_chromecast_on"):l("tooltip_chromecast_off"));Qt(t,{get ariaLabel(){return n(d)},get click(){return r()},testId:"btn-chromecast",get ref(){return i()},set ref(s){i(s)},children:(s,u)=>{_c(s,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),F()}var Tb=require("@vkontakte/videoplayer-shared/es2015");var zx=Ce('<path d="m21.62 16.5-.02.07q-.22 1.27-.42 2.09a5 5 0 0 1-.64 1.5 4.4 4.4 0 0 1-2.51 1.73q-.77.18-1.63.07t-2.11-.34l-4.34-.8q-1.27-.22-2.1-.42a5 5 0 0 1-1.5-.65 4.4 4.4 0 0 1-1.72-2.5 5 5 0 0 1-.07-1.63q.1-.84.34-2.11l.01-.07q.22-1.27.43-2.1a5 5 0 0 1 .64-1.5 4.4 4.4 0 0 1 2.5-1.73 5 5 0 0 1 1.64-.07q.83.1 2.1.35l4.34.8q1.28.21 2.1.42a5 5 0 0 1 1.5.64 4.4 4.4 0 0 1 1.73 2.5q.18.78.07 1.64-.1.83-.34 2.1m-1.45-2.3c.05-.49.03-.77-.02-1a2.6 2.6 0 0 0-1.02-1.48 3 3 0 0 0-.93-.37c-.48-.13-1.1-.24-2-.4l-4.26-.79c-.9-.16-1.52-.27-2.01-.33a3 3 0 0 0-1 .03 2.6 2.6 0 0 0-1.48 1.02 3 3 0 0 0-.37.92c-.13.48-.24 1.1-.4 2s-.28 1.51-.33 2c-.06.5-.04.78.02 1 .15.6.51 1.13 1.02 1.48.19.13.45.25.92.37.48.13 1.1.25 2 .4l4.27.79c.9.16 1.52.28 2.01.33s.77.03 1-.02a2.6 2.6 0 0 0 1.47-1.03c.14-.19.25-.45.38-.92.12-.48.24-1.1.4-2s.28-1.51.33-2"></path><path d="M18.19 7.49a.9.9 0 0 1-1.05-.73c-.14-.8-.2-1.08-.28-1.3A2.6 2.6 0 0 0 14.5 3.8c-.22 0-.5.04-1.31.17l-5.85.96a8 8 0 0 0-2.17.5 2.6 2.6 0 0 0-1.33 1.75c-.08.38-.04.85.11 2.23l.01.1a.9.9 0 1 1-1.78.2l-.01-.1-.02-.17a9 9 0 0 1-.07-2.64 4.4 4.4 0 0 1 2.25-2.97c.63-.33 1.42-.46 2.56-.65l.16-.03 5.85-.96.1-.01c.67-.11 1.13-.19 1.55-.18a4.4 4.4 0 0 1 4 2.82c.14.39.23.85.35 1.53l.01.1a.9.9 0 0 1-.72 1.04"></path><path d="M12.72 12.41a.42.42 0 0 0-.69.23l-.72 4.18a.4.4 0 0 0 .03.23c.08.2.33.3.54.22l3.67-1.47a.4.4 0 0 0 .12-.68z"></path>',1);function Hm(t){Ze(t,{testId:"episodes-icon",children:(e,i)=>{var o=zx();vi(2),b(e,o)},$$slots:{default:!0}})}var ap=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var Wx=M('<span class="text mobile s-25"> </span> <div class="chevron-episodes s-25" data-testid="btn-episodes_icon"><!></div>',1),Kx=M('<span class="text s-25"> </span>'),qx=M('<span class="text count s-25"> </span>'),Qx=M('<span class="icon s-25"><!></span> <!>',1),Gx={hash:"s-25",code:".icon.s-25{flex-shrink:0}.text.s-25{overflow:hidden;padding:0 8px;text-overflow:ellipsis;white-space:nowrap}.text.count.s-25{overflow:visible}.text.mobile.s-25{padding:0 3px 0 4px}.chevron-episodes.s-25{margin-bottom:-6px;opacity:.7;transform:scale(.8)}"};function $c(t,e){var Z,we,ue;B(e,!0),q(t,Gx);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),m=g(e,"timeCodes",19,()=>[]),p=ve(),f=(we=(Z=p.callbacks)==null?void 0:Z.onEpisodeChanged)!=null?we:Tb.noop,$=!!((ue=p.callbacks)!=null&&ue.onEpisodeClicked),y=p.ui.currentGridType$,_=p.ui.episodes.openedByKeyboard$,S=p.ui.episodes.panelOpened$,C=p.ui.isMobile,I=p.ui.t,N=K(void 0),P=ne=>{var xe,J,Ne;if(!!((xe=p.callbacks)!=null&&xe.onEpisodeClicked)){let pe=ra(ne);_.set(pe),S.set(!0),(Ne=(J=p.callbacks)==null?void 0:J.onEpisodeClicked)==null||Ne.call(J,pe)}},E=K(null),A=v(()=>s()/u());Oe(()=>{var _e;let ne=ap(n(A),u(),m());ne?((_e=n(E))==null?void 0:_e.time)!==ne.time&&(f(ne),O(E,ne,!0)):O(E,null)});let Q=v(()=>{var ne;return((ne=n(E))==null?void 0:ne.text)||""}),H=v(()=>ro(r(),"xl")?"FULL":ro(r(),"m")?"COUNT":"SHORT"),z=v(()=>`${I("tooltip_episodes")}: ${n(Q)}`),Y=(ne,_e,xe)=>gt(null,null,function*(){yield yo(),(ne==null?void 0:ne.getAttribute("aria-expanded"))==="false"&&_e&&!xe&&Pt(()=>{_.set(!1),ne.focus()})});Oe(()=>{Y(n(N),a(),l())});var le=Le(),X=de(le);{var re=ne=>{let _e=v(()=>d()?"px-0":""),xe=v(()=>!$);Qt(ne,{get className(){var J;return`w-max btn-full-opacity btn-jc-l ${(J=n(_e))!=null?J:""}`},testId:"btn-episodes",click:P,get disabled(){return n(xe)},get ariaExpanded(){return l()},get ariaLabel(){return n(z)},get ref(){return n(N)},set ref(J){O(N,J,!0)},children:(J,Ne)=>{var pe=Le(),k=de(pe);{var We=j=>{var ie=Wx(),De=de(ie),Be=T(De,!0);w(De);var ot=L(De,2),U=T(ot);Vr(U,{direction:"right"}),w(ot),D(()=>me(Be,n(Q))),b(j,ie)},Te=j=>{var ie=Qx(),De=de(ie),Be=T(De);Hm(Be,{}),w(De);var ot=L(De,2);{var U=Pe=>{var Ue=Kx(),Je=T(Ue,!0);w(Ue),D(()=>me(Je,n(Q))),b(Pe,Ue)},Ae=(Pe,Ue)=>{{var Je=ye=>{var ke=qx(),Fe=T(ke,!0);w(ke),D(()=>me(Fe,m().length)),b(ye,ke)};R(Pe,ye=>{n(H)==="COUNT"&&ye(Je)},Ue)}};R(ot,Pe=>{n(H)==="FULL"?Pe(U):Pe(Ae,!1)})}b(j,ie)};R(k,j=>{d()?j(We):j(Te,!1)})}b(J,pe)},$$slots:{default:!0}})};R(X,ne=>{n(E)&&ne(re)})}b(t,le),F(),o()}var dv=require("@vkontakte/videoplayer-shared/es2015");var _i=require("@vkontakte/videoplayer-core/es2015"),rt=require("@vkontakte/videoplayer-shared/es2015"),_s=require("@vkontakte/videoplayer-statistics/es2015");var Ge=require("@vkontakte/videoplayer-shared/es2015"),so=require("@vkontakte/videoplayer-shared/es2015");var Yx="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",lp=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 so.Subject,loadStarted$:new so.Subject,loadEnded$:new so.Subject,loadError$:new so.Subject,ready$:new so.Subject,slotRequested$:new so.Subject,started$:new so.Subject,timeRemained$:new so.Subject,paused$:new so.Subject,resumed$:new so.Subject,ended$:new so.Subject,empty$:new so.Subject,skipped$:new so.Subject,clicked$:new so.Subject,closed$:new so.Subject,error$:new so.Subject};this.loadAdman=e=>(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[(0,Ge.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?(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[(0,Ge.now)()]}),i(),this.events.loadEnded$.next()):(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[(0,Ge.now)()]}),o())};(0,so.addScript)(Yx,e,this.loadTimeout).then(()=>{Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[(0,Ge.now)()]}),window.AdmanHTML?(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[(0,Ge.now)()]}),i(),this.events.loadEnded$.next()):(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[(0,Ge.now)()]}),window.admanAsyncInit=a,r=window.setTimeout(a,this.initTimeout))}).catch(l=>{Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(l)],numbers:[(0,Ge.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?(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[(0,Ge.now)()]}),i(),this.events.loadEnded$.next()):(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[(0,Ge.now)()]}),o())},l=()=>{d=!0,o()},d=!1,s=window.setTimeout(()=>{Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[(0,Ge.now)()]}),l()},this.loadTimeout);e.addEventListener("abort",l),e.aborted&&(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[(0,Ge.now)()]}),l()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[(0,Ge.now)()]}),!d&&(window.AdmanHTML?(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[(0,Ge.now)()]}),i(),this.events.loadEnded$.next()):(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[(0,Ge.now)()]}),window.admanAsyncInit=a,r=window.setTimeout(a,this.initTimeout)))},l).finally(()=>{clearTimeout(r),clearTimeout(s),e.removeEventListener("abort",l)})});this.onAdsReady=()=>{Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[(0,Ge.now)()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{var o;Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[(0,Ge.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;Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.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;Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.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(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[(0,Ge.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;Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.now)()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.now)()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.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;Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.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")=>{Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[(0,Ge.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"),Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[(0,Ge.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 N,P;if(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[(0,Ge.now)(),e.slotId]}),this.adman)return;this.events.init$.next(e.slotId),this.startWatchDog();let{width:i,height:o,isAutoplay:r,adsContainer:a,adsVideoElement:l,slotId:d,params:s={},paramsOverride:u={},duration:m,externalApi:p}=e;this.externalApi=p;let f,$=this.playerState&&ge(this.playerState.vsid);$&&(this.isVsidOriginal?f=$:f=parseInt($,36));let{isEmbed:y,immediateOrigin:_}=(0,Ge.detectEmbed)(),S=(N=y?_:window.location.href)!=null?N:window.location.href,C=Ie(jt(Ie(jt(Ie({},s),{dl:encodeURIComponent(S),autoplay:r?1:0,player_width:i,player_height:o}),f?{request_id:f}:{}),{duration:m}),u);C=Object.fromEntries(Object.entries(C).filter(([E,A])=>(0,Ge.isNonNullable)(A)));let I={slot:d,wrapper:a,videoEl:l,videoQuality:o,params:C,browser:{mobile:!1}};try{let E=new window.AdmanHTML;if(E.onReady(this.onAdsReady),E.onStarted(this.onAdStarted),E.onPlayed(this.onAdPlayed),E.onPaused(this.onAdPaused),E.adMidrollPoint(this.onAdMidrollPoint),E.onClosed(this.onAdClosed),E.onSkipped(this.onAdSkipped),E.onClicked(this.onAdClicked),E.onTimeRemained(this.onAdTimeRemained),E.onCompleted(this.onAdCompleted),E.onError(this.onAdError),E.setDebug(!1),(P=this.externalApi)!=null&&P.videoGetAds){let A=yield this.safeExternalCall(this.externalApi.videoGetAds,C);A&&(delete I.slot,delete I.params,Object.assign(I,{json:A}))}E.init(I),this.adman=E,this.videoElement=l,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(I)}`})}catch(E){Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(E)],numbers:[(0,Ge.now)()]}),this.onAdError("could not init adman")}})}switchToVideo(e=!1){var o,r,a;if(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[(0,Ge.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(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.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(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[(0,Ge.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(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.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(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.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(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.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(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch(i){this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}setPosition(e,i){var o;(o=this.adman)==null||o.setPosition(Math.floor(e),Math.floor(i))}destroy(){var e,i,o,r,a,l,d,s,u,m,p,f;Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[(0,Ge.now)()]}),this.log({message:"destroy"}),this.stopWatchDog(),(e=this.adman)==null||e.onReady(void 0),(i=this.adman)==null||i.onStarted(void 0),(o=this.adman)==null||o.onPlayed(void 0),(r=this.adman)==null||r.onPaused(void 0),(a=this.adman)==null||a.adMidrollPoint(void 0),(l=this.adman)==null||l.onClosed(void 0),(d=this.adman)==null||d.onSkipped(void 0),(s=this.adman)==null||s.onClicked(void 0),(u=this.adman)==null||u.onTimeRemained(void 0),(m=this.adman)==null||m.onCompleted(void 0),(p=this.adman)==null||p.onError(void 0),(f=this.adman)==null||f.destroy(),this.videoElement&&(0,so.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 Cb=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 dp,{startTime:m,endTime:p}=u.parse(s);l.startTime=m,l.endTime=p}else if(s.trim()!==""){let u=new zm,{texts:m}=u.parse(s);l.texts=[...l.texts,...m]}(l.startTime||l.endTime)&&l.texts.length>0&&o.push(l)}return o}},dp=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((m,p)=>{let f=l.indexOf(p,d);return m===-1||m>f?f:m},-1);if(u===-1){s.push(l.substring(d));break}s.push(l.substring(d,u)),d=u+1}return s}}),a=new dp;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}},Ib=Um;var up=require("@vkontakte/videoplayer-shared/es2015"),Ya,Mi,Wm=0,Km=!1,Eb="",Pb=(t,e=0,i=0)=>t<e&&t<i,cp=(t,e=0,i=0)=>t>=e&&t<=i,jx=(t,e=0,i=0)=>t>e&&t>i,kb=(t,e,i,o=!1)=>{var d;let r=(d=i.find(({id:s})=>s===e.value))==null?void 0:d.subtitles;if(o)return r==null?void 0:r.find(({startTime:u,endTime:m})=>cp(t,u,m));let a=t>=Wm,l=t<Wm;if(Wm=t,l&&(Km=!1),(0,up.isNonNullable)(Ya)&&cp(t,Ya.startTime,Ya.endTime)&&Eb===e.value)return Ya;if(!(0,up.isNonNullable)(Mi)&&(r!=null&&r.length)&&!Km){Mi=r.find(({startTime:u,endTime:m})=>cp(t,u,m)||a&&Pb(t,u,m)),Ya=void 0,!(0,up.isNonNullable)(Mi)&&r[r.length-1].endTime<t&&(Km=!0);return}else{if(cp(t,Mi==null?void 0:Mi.startTime,Mi==null?void 0:Mi.endTime))return Ya=Mi,Mi=void 0,Eb=e.value,Ya;(a&&jx(t,Mi==null?void 0:Mi.startTime,Mi==null?void 0:Mi.endTime)||l&&Pb(t,Mi==null?void 0:Mi.startTime,Mi==null?void 0:Mi.endTime))&&(Mi=void 0)}};var pp={ru:"Русский",en:"English",uk:"Українська",be:"Беларуская (тарашкевiца)",es:"Español",fi:"Suomi",de:"Deutsch",it:"Italiano",bg:"Български",hr:"Hrvatski",hu:"Magyar",sr:"Српски",pt:"Português",el:"Ελληνικά",pl:"Polski",fr:"Français",ko:"한국어","zh-CN":"汉语",lt:"Lietuvių",ja:"日本語",cs:"Čeština",et:"Eesti",tt:"Татарча",ba:"Башҡортса",cv:"Чăвашла",sk:"Slovenčina",ro:"Română",no:"Norsk",lv:"Latviešu",az:"Azərbaycan dili",hy:"Հայերեն",sv:"Svenska",nl:"Nederlands",tk:"Türkmen",ka:"ქართული",da:"Dansk",uz:"O‘zbek",th:"ภาษาไทย",id:"Bahasa Indonesia",tg:"Тоҷикӣ",sl:"Slovenščina",bs:"Bosanski","pt-BR":"Português brasileiro",fa:"فارسی",vi:"Tiếng Việt",hi:"हिन्दी",si:"සිංහල",bn:"বাংলা",tl:"Tagalog",mn:"Монгол",my:"ဗမာစာ",tr:"Türkçe",ne:"नेपाली",ur:"اردو",ky:"Кыргыз тили",pa:"پنجابی",os:"Ирон",kn:"ಕನ್ನಡ",sw:"Kiswahili",kk:"Қазақша",ar:"العربية",he:"עברית",ab:"Аҧсшәа",eu:"Euskara",eo:"Esperanto"},Xx={abk:"as",ara:"ar",aze:"az",bak:"ba",bel:"be",ben:"bn",bos:"bs",bul:"bg",ces:"cs",chv:"cv",dan:"da",deu:"de",ell:"el",eng:"en",epo:"eo",est:"et",eus:"eu",fas:"fa",fin:"fi",fra:"fr",heb:"he",hin:"hi",hrv:"hr",hun:"hu",hye:"hy",ind:"id",ita:"it",jpn:"ja",kan:"kn",kat:"ka",kaz:"kk",kir:"ky",kor:"ko",lav:"lv",lit:"lt",mon:"mn",mya:"my",nep:"ne",nld:"nl",nor:"no",oss:"os",pan:"pa",pol:"pl",por:"pt",ron:"ro",rus:"ru",sin:"si",slk:"sk",slv:"sl",spa:"es",srp:"sr",swa:"sw",swe:"sv",tat:"tt",tgk:"tg",tgl:"tl",tha:"th",tuk:"tk",tur:"tr",ukr:"uk",urd:"ur",uzb:"uz",vie:"vi"},yc=t=>{var e,i;return(i=(e=pp[t])!=null?e:pp[Xx[t]])!=null?i:void 0};var Ab=require("@vkontakte/videoplayer-shared/es2015"),F7=require("@vkontakte/videoplayer-statistics/es2015"),fp=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 xc=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(xc||{});var hs=t=>t!=null?t:0,Vs=(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(hs(i==null?void 0:i.top)-hs(o==null?void 0:o.top)),left:Math.round(hs(i==null?void 0:i.left)-hs(o==null?void 0:o.left)),bottom:Math.round(hs(i==null?void 0:i.bottom)-hs(o==null?void 0:o.top)),right:Math.round(hs(i==null?void 0:i.right)-hs(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:hs(e==null?void 0:e.width),height:hs(e==null?void 0:e.height)}};var Rn="off";var id=t=>!!(Math.round(Math.abs(t)/90)%2);var Lb=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:r,statAuthToken:a,isAudioDisabled:l,canDownload:d,callbacks:s,webApi:u,videoEpisodes:m,previewThumbsData:p,uiConfig:f,coreConfig:$,player:y,disabledControls:_,isInteractive:S,interactiveRanges$:C,isInteractiveTime$:I,replayInteractive:N,stopPlayer:P,hasInteractiveBranches:E,playPrevChapterDisabledTooltip:A,additionalButtons:Q,additionalSettingsMenuItems:H,additionalContextMenuItems:z,playPrevVideo:Y,playNextVideo:le,onVideoChanged:X,looped:re=!1,statistics:Z,saveRate:we,internalsExposure:ue,playerView:ne,playerId:_e})=>{var _g,bg,$g;let xe=jt(Ie({},$),{configName:[...(_g=$.configName)!=null?_g:[],"ui"],isAudioDisabled:l,live:jt(Ie({},(bg=$.live)!=null?bg:{}),{isLiveCatchUpMode:!!r})}),J=f,Ne=rt.TracerFactory.createRootTracer(J.features.tracer),pe=Ne.createComponentTracer("Store"),k=y||new _i.Player(xe,Ne,{playerId:_e});ue==null||ue.expose({corePlayer:k});let We=new rt.Logger,Te=new lp(We,{loadTimeout:J.ads.loadTimeout,initTimeout:J.ads.initTimeout,runtimeTimeout:J.ads.runtimeTimeout,useAdmanFromNPM:J.ads.useAdmanFromNPM,volumeMultiplier:J.ads.volumeMultiplier,isVsidOriginal:J.ads.isVsidOriginal}),j=Ba.getInstance(),ie=u==null?void 0:u.pictureInPictureApi,De=u==null?void 0:u.annotationsApi,Be=u==null?void 0:u.slotsApi,ot=u==null?void 0:u.focusManager,U=We.createComponentLog("Store"),Ae,Pe,Ue={},Je=new Du,ye=new rt.Subscription,ke="",Fe=ae(!1),Ft=Z&&Z.oneStat?li(Z.oneStat.vsid$):Mr(void 0),mt=ae(ia()),Ht=ae(!1),lt=()=>Z_(document,_i.clientChecker.device.isIOS),Ct=($g=ie==null?void 0:ie.info.isActive$)!=null?$g:new rt.ValueSubject(!1),oi=ae(0),Ot=ae(!1),$e=ae(!1),be=ae([]),ee=(0,rt.merge)(k.events.fatalError$,k.events.managedError$).subscribe(c=>be.update(h=>[...h,c])),nt=Mr(!1,c=>{let h=k.events.fatalError$.subscribe(()=>c(!0));return()=>h.unsubscribe()}),fe=c=>gt(null,null,function*(){var oe;let h=Object.values(rt.InterfaceLanguage).includes(c);if(J.downloadVKLanguages&&(h&&J.updateBuiltinLanguages||!im(c))){let Se;try{Se=yield(0,rt.loadVKLangPack)(c,d_,c_)}catch(tt){(oe=Z==null?void 0:Z.oneStat)==null||oe.logError({errorType:"VKLangPack",fatal:!1}),j==null||j.report(tt,{errorType:"VKLangPack",fatal:!1})}Se&&(tm({language:c,pack:Se,fallback:J.defaultLanguage}),Me.set(c),xt.update(tt=>tt+1))}im(c)&&Me.set(c)}),Me=ae(t),xt=ae(0),Lt=ae(e);fe(t);let pt=(c,h)=>{let V=ge(Me);return om(V,c,h,J.defaultLanguage)},ce=ae("thumb");ce.subscribe(c=>{c==="ads"&&k.info.playbackState$.getValue()&&dt()});let ze=(()=>{let c=gi([nt,ce],([h,V])=>h?"crashed":V);return jt(Ie({},c),{is:h=>ge(c)===h})})(),Ye=ae(),dt=()=>{Ye.set({muted:k.info.muted$.getValue()})},Ut=(()=>{let c=ae(new Set(_));return jt(Ie({},c),{add:h=>{c.update(V=>new Set([...V].concat(h)))},remove:h=>{c.update(V=>{let oe=[...V];return new Set(Array.isArray(h)?oe.filter(Se=>!h.includes(Se)):oe.filter(Se=>Se!==h))})},includes:h=>{let V=ge(c);return Array.isArray(h)?h.every(oe=>V.has(oe)):V.has(h)}})})(),zt=ae({width:0,height:0}),ri=null,wi=k.info.isBuffering$,Zi=Mr(wi.getValue(),c=>{let h=wi.subscribe(V=>{V&&ri===null?ri=window.setTimeout(()=>{c(wi.getValue()),ri=null},J.loaderDelay):c(V)});return()=>{h.unsubscribe(),ri&&clearTimeout(ri)}});pe.log("create store"),U({message:"create store"});let Dt=c=>{let h=c.container,V=()=>{ti=new MutationObserver(Se=>{let{removedNodes:tt}=Se[0];tt.length&&h.append(k.experimental.element$.getValue())}),ti.observe(h,{childList:!0})},oe=k.experimental.element$.getValue();if(oe)h.append(oe),V();else{let Se=k.experimental.element$.pipe((0,rt.filter)(tt=>!!tt),(0,rt.once)()).subscribe(tt=>{h.append(tt),V()});ye.add(Se)}},fi=c=>{U({message:`init video, config: ${JSON.stringify(c)}`}),S?Dt(c):(rt.devNull.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[(0,rt.now)()]}),k.initVideo(c)),pe.log("init video",{isInteractive:S}),c.subtitles&&k.setExternalTextTracks(c.subtitles),Ae=c,ke=c.subtitlesForcedLanguage||""},bi=new rt.Subject,bt=c=>bi.next(c),Jt=new rt.Subject,Ci=new rt.Subject,Ji=new rt.Subject,ti=null,kt={actionRewind$:Jt,actionSeek$:Ci,inPiP$:Ct,inFullscreen$:new rt.Observable(c=>mt.subscribe(h=>c.next(h))),actionSetSubtitle$:Ji,nextMovie$:bi},Ke=new rt.Subject,Ii={actionSeek$:Ci,actionSubtitlesSwitched$:Ke,playerSize$:new rt.Observable(c=>zt.subscribe(h=>c.next(h))),inPiP$:Ct,inFullscreen$:new rt.Observable(c=>mt.subscribe(h=>c.next(h))),isLoaderVisible$:new rt.Observable(c=>Zi.subscribe(h=>c.next(h)))};if(Z){let{oneStat:c,thinOneStat:h,mediascopePixel:V,statSubscription:oe}=Z;c&&(S||oe.add(c.attachTo(k)),oe.add(c.attachToUi(kt)),oe.add(c.attachToAds(Te.events)),c.authorize(a).catch(Se=>{U({message:`onestat auth error ${String(Se)}`})}),V&&V.attachTo(k)),h&&(oe.add(h.attachTo(k,Te.events)),oe.add(h.attachToUi(Ii)),oe.add(h.attachToAds(Te.events)),h.updateContext({isMobile:ge(Fe)}),h.authorize(a))}if(j){let c=new rt.Subscription,h=(V,oe)=>c.add(V.subscribe(oe));if(h(k.events.managedError$,V=>{j.logIError(V)}),h(k.events.fatalError$,V=>{j.logIError(V,!0)}),Z){let{oneStat:V}=Z;V&&h(V.experimental.error$,oe=>{j.logIError(oe)})}j.sentrySubscription.add(c)}let xo=()=>{if(_i.clientChecker.device.isIOS&&Pe)try{J_(Pe)}catch(c){U({message:`exitIosSafariFullscreen failed: ${c}`})}};ye.add(k.experimental.element$.subscribe(c=>{c&&(Pe=c,c.classList.add("player-media"),Ha(ie)&&ie.updateVideoElement(),S&&c.setAttribute("pip","false"),ne==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(k.events.ended$.subscribe(()=>{var c;xo(),(c=s==null?void 0:s.onEnded)==null||c.call(s)})).add(k.events.looped$.subscribe(()=>{var c;(c=s==null?void 0:s.onLooped)==null||c.call(s)})).add(k.events.started$.subscribe(()=>gt(null,null,function*(){var h,V;Ha(ie)&&(yield ie==null?void 0:ie.revealPictureInPicture());let c=k.info.muted$.getValue();(h=s==null?void 0:s.onStarted)==null||h.call(s),(V=Ue.onStarted)==null||V.call(Ue,c)}))).add(k.events.willSeek$.subscribe(({from:c,to:h})=>{var V;(V=s==null?void 0:s.onSeek)==null||V.call(s,c,h)})).add(k.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=s==null?void 0:s.onAutoplaySoundProhibited)==null||c.call(s)})).add(k.info.position$.subscribe(c=>{var V;let h=k.info.duration$.getValue();isFinite(h)&&h>0&&((V=s==null?void 0:s.onTimeupdate)==null||V.call(s,h,c),Te.setPosition(c,h))})).add(k.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(k.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(k.events.loadedMetadata$.subscribe(()=>{Ot.set(!0)})).add(k.info.is3DVideo$.subscribe(c=>{$e.set(c)})).add(k.info.isEnded$.subscribe(c=>{S&&(c?(I!=null&&I.getValue()&&Ut.add(jd),Ut.add("PLAY_BUTTON")):Ut.remove("PLAY_BUTTON"))})).add(k.info.liveTime$.subscribe(c=>{var h;(h=s==null?void 0:s.onLiveTime)==null||h.call(s,c)})).add(k.info.isStalled$.subscribe(c=>{var h;(h=s==null?void 0:s.onStalledChanged)==null||h.call(s,c)})).add(k.info.isLiveEnded$.subscribe(c=>{var h;return c&&((h=s==null?void 0:s.onLiveEnded)==null?void 0:h.call(s))})).add(Te.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(Te.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(Te.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(Te.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(Te.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(Te.events.started$.subscribe(c=>{var h,V;return(V=(h=s==null?void 0:s.adsInfo)==null?void 0:h.onStarted)==null?void 0:V.call(h,c)})).add(Te.events.timeRemained$.subscribe(c=>{var h,V;return(V=(h=s==null?void 0:s.adsInfo)==null?void 0:h.onTimeRemained)==null?void 0:V.call(h,c)})).add(Te.events.ended$.subscribe(c=>{var h,V;return(V=(h=s==null?void 0:s.adsInfo)==null?void 0:h.onCompleted)==null?void 0:V.call(h,c)})).add(Te.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(Te.events.clicked$.subscribe(c=>{var h,V;return(V=(h=s==null?void 0:s.adsInfo)==null?void 0:h.onClicked)==null?void 0:V.call(h,c)})).add(Te.events.closed$.subscribe(c=>{var h,V;return(V=(h=s==null?void 0:s.adsInfo)==null?void 0:h.onClosed)==null?void 0:V.call(h,c)})).add(Te.events.error$.subscribe(c=>{var h,V;return(V=(h=s==null?void 0:s.adsInfo)==null?void 0:h.onError)==null?void 0:V.call(h,c)})).add(Te.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(Te.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 Io=new rt.Subscription,bn=()=>{var tt,At,Kt;let{debugLog:c}=J,h,V="#9df7b7",oe="#efd169";if(c&&c!==!0){let{colors:Zt}=c;h=c.tag,V=(tt=Zt==null?void 0:Zt[0])!=null?tt:V,oe=(Kt=(At=Zt==null?void 0:Zt[1])!=null?At:Zt==null?void 0:Zt[0])!=null?Kt:oe}let Se=h?`: ${h}`:"";Io.add(k.events.log$.subscribe(Zt=>{console.debug(`%c sdk${Se} `,`background:${V};`,`sdk component: ${Zt.component}`,Zt.message)})).add(We.log$.subscribe(Zt=>{console.debug(`%c ui${Se} `,`background:${oe};`,`ui component: ${Zt.component}.`,Zt.message)}))},It=()=>{Io.unsubscribe()},Wt=(c,h)=>{pe.log("start camera manual rotation",{mx:c,my:h}),k.startCameraManualRotation(c,h)},W=(c=!1)=>{pe.log("stop camera manual rotation",{immediate:c}),k.stopCameraManualRotation(c)},Mt=(c,h,V)=>{pe.log("move camera focus px",{xpx:c,ypx:h,dt:V}),k.moveCameraFocusPX(c,h,V)},di=()=>{k.holdCamera()},ct=()=>{k.releaseCamera()},Tt=Mr(k.info.position$.getValue(),c=>{let h,V,oe=()=>{let Se=k.info.playbackState$.getValue(),tt=k.info.isLive$.getValue(),At=k.info.duration$.getValue(),Kt=k.info.position$.getValue();if(Se&&[_i.PlaybackState.PLAYING,_i.PlaybackState.PAUSED].includes(Se)){let Zt=tt?Kt-At:k.getExactTime();Zt!==V&&c(Zt),V=Zt}h=requestAnimationFrame(oe)};return oe(),()=>cancelAnimationFrame(h)}),Xt=li(k.info.playbackState$),st=li(k.info.isBuffering$),Ui=gi([Xt,st],([c,h])=>h?"buffering":c),zi=li(k.info.currentBuffer$),on=li(k.info.isEnded$),Eo=li(k.info.isLive$),Wi=J.features.playbackRate?li(k.info.canChangePlaybackSpeed$):Mr(!1),eo=li(k.info.liveBufferTime$),Nr=li(k.info.volume$),wo=li(k.info.muted$),lo=Bu(k.info.predefinedQualityLimitType$.pipe((0,rt.map)(c=>c===_i.PredefinedQualityLimits.TRAFFIC_SAVING)),k.info.predefinedQualityLimitType$.getValue()===_i.PredefinedQualityLimits.TRAFFIC_SAVING),Ai=Bu(k.info.predefinedQualityLimitType$.pipe((0,rt.map)(c=>c===_i.PredefinedQualityLimits.HIGH_QUALITY)),k.info.predefinedQualityLimitType$.getValue()===_i.PredefinedQualityLimits.HIGH_QUALITY),nn=li(k.info.autoQualityLimitingAvailable$),rn=li(k.info.availableQualities$),Nn=li(k.info.availableQualitiesFps$),ir=li(k.info.chromecastState$),Or=li(k.info.chromecastDeviceName$),os=li(k.info.currentFormat$),$s=li(k.info.throughputEstimation$),ns=li(k.info.videoBitrate$),or=li(k.info.intrinsicVideoSize$),xr=li(k.info.duration$),$n=li(k.info.isAudioAvailable$),On=()=>{ri&&clearTimeout(ri),ri=null},Uo=gi([xr,Eo],([c,h])=>h?-c:c),Dn=gi([Xt],([c])=>c===_i.PlaybackState.PLAYING),nr=li(k.info.atLiveEdge$),wr=li(k.info.atLiveDurationEdge$),Sr=li(k.info.position$),Dr=gi([Sr,xr],([c,h])=>isFinite(c)&&isFinite(h)&&!!h),co=gi([ir],([c])=>c===_i.ChromecastState.CONNECTED),Br=li(k.info.availableVideoStreams$),Bn=J.features.audioLanguages?li(k.info.availableAudioStreams$):Mr([]),Fn=li(k.info.currentVideoStream$),uo=li(k.info.currentAudioStream$),Fr=c=>{c.language&&Xf(c.language),k.setVideoStream(c)},Hn=(c,h)=>{k.setAudioStream(c),Lo(h)&&(c.language&&Xf(c.language),J.features.userVideoPrefs&&i&&em(J.userSalt,String(i),{audioTrackId:c.id}))},vt=c=>{let h;if(c.length===1&&(h=c.at(0)),h!=null||(h=c.find(oe=>"isDefault"in oe&&oe.isDefault)),J.features.userVideoPrefs&&i){let oe=Wu(J.userSalt,String(i));if(oe!=null&&oe.audioTrackId){let Se=c.find(tt=>tt.id===oe.audioTrackId);h=Se!=null?Se:h}}let V=O_();return V&&(h!=null||(h=c.find(({language:oe})=>V===oe))),h!=null||(h=c.at(0)),h},ui=c=>{pe.log("change audio stream",{id:c});let h=k.info.availableAudioStreams$.getValue().find(V=>V.id===c);h&&Hn(h,!0)},Tr=!1;ye.add(k.info.availableAudioStreams$.subscribe(c=>{if(!Tr&&c.length){let h=vt(c);h&&(k.setAudioStream(h),Tr=!0)}})),Bn.subscribe(c=>{var h;(h=s==null?void 0:s.onAvailableAudioStreamsChanged)==null||h.call(s,c.map(({label:V="",id:oe="",language:Se=""})=>({label:V,language:Se,id:oe})))}),uo.subscribe(c=>{var h;return c&&((h=s==null?void 0:s.onAudioStreamChanged)==null?void 0:h.call(s,c.id))});let rr=!1;ye.add(k.info.availableVideoStreams$.subscribe(c=>{if(!rr&&c.length){let h=vt(c);h&&(k.setVideoStream(h),rr=!0)}}));let sr=ae(void 0),sn=li(k.info.isAutoQualityEnabled$,c=>c&&sr.set(void 0)),Cr=li(k.info.currentQuality$,()=>sr.set(void 0)),an=gi([sr,Cr],([c,h])=>c!=null?c:h),yn=gi(os,c=>c!==_i.VideoFormat.MPEG),Un=gi([rn,Nn,sn,an,yn],([c,h,V,oe,Se])=>{let tt=[];Se&&tt.push({value:"auto",displayValue:pt("auto_quality_option"),selected:V});let At=c.filter(Kt=>!(0,rt.isInvariantQuality)(Kt));for(let Kt of At){let Zt=h[Kt];tt.push({value:Kt,displayValue:`${Kt}${Zt?Cb(Zt):""}`,selected:V?!1:Kt===oe})}return tt}),zn=li(k.info.currentPlaybackRate$),zo=gi([zn,nr,wr],([c,h,V])=>{let oe=V||S?1:J.controls.playbackRateMin,Se=h?1:J.controls.playbackRateMax,tt=J.controls.playbackRateStep,At=[];for(let Kt=oe;Kt<=Se;Kt+=tt)At.push({value:Kt,displayValue:Kt===1?pt("playback_rate_1"):pt("playback_rate",{multiplier:Kt.toString(10)}),selected:c===Kt});return At}),Po=()=>({displayValue:pt("subtitles_off"),value:Rn,language:""}),ar=ae(Po()),ko=gi([ar,xt],([c],h)=>{c.value===Rn?h(Po()):h(c)}),Ki=J.features.subtitles?li(k.info.availableTextTracks$):Mr([]),Wn=T_(),lr=gi([Ki,ko],([c,h],V)=>{var tt;let oe=[],Se=c.find(({id:At})=>At===h.value);if(Se!=null&&Se.url){let[,At]=(tt=Wn.find(Se.url))!=null?tt:[];if(At){V(At);return}Je.download(Se.url).then(Kt=>{if(!Kt||Je.isDestroyed())return;let Zt=new Ib,Ks=Se.language;if(Ks){let V$=!!Se.isAuto,R$=Zt.parse(Kt,Ks);oe.push({lang:Ks,subtitles:R$,isAuto:V$,id:Se.id})}Wn.add(Se.url,oe),ge(ko).value===h.value&&V(oe)}).catch(Kt=>{var Zt;(Zt=Z==null?void 0:Z.oneStat)==null||Zt.logError({errorType:"Subtitles download",fatal:!1}),j==null||j.report(Kt,{errorType:"Subtitles download",fatal:!1})})}V(oe)}),Hr=gi([zn,Dn,ko],([c,h,V],oe)=>{let At;if(k.info.isLive$.getValue()&&h&&V.value!==Rn){let Zt=()=>{let Ks=1e3/(3*c);At=setTimeout(Zt,Ks),oe(Date.now())};return Zt(),()=>clearTimeout(At)}}),Kn=gi([Ki,ko],([c,h])=>{if(!c.length)return[];let V=[];for(let{language:oe,isAuto:Se,id:tt}of c){let At=oe&&yc(oe);oe&&At&&V.push({displayValue:Se?pt("subtitles_auto",{language:At}):At,value:tt,selected:(h==null?void 0:h.value)===tt,isAuto:Se,language:oe})}return V.length?(V.unshift(jt(Ie({},Po()),{selected:(h==null?void 0:h.value)===Rn})),V):[]}),Ao={available:[],prev:[]},Ur=()=>{var h,V;let c=k.experimental.getCurrentTime$.getValue();return(V=(h=c==null?void 0:c())!=null?h:Pe==null?void 0:Pe.currentTime)!=null?V:0},wt=gi([Tt,ko,lr,Hr],([c,h,V,oe])=>{var tt;let Se=k.info.isLive$.getValue();if(Se&&Ao.prev!==V){let At=V.find(({id:Zt})=>Zt===h.value),Kt=Ao.prev.find(({id:Zt})=>Zt===h.value);if(At){let Zt=jt(Ie({},At),{subtitles:[...(tt=Kt==null?void 0:Kt.subtitles)!=null?tt:[],...At.subtitles]});Ao.available=[Zt],Ao.prev=V}}if(h&&h.value!==Rn){let At=Se?Ur():c,Kt=Se?Ao.available:V;return kb(At,h,Kt,Se)}}),Et=gi([wt],([c])=>c!=null&&c.texts?c.texts:[]);ye.add(ko.subscribe(c=>{var h,V;if(c.value===Rn)(h=s==null?void 0:s.onSubtitleOff)==null||h.call(s);else{let oe=Object.entries(pp).find(([Se,tt])=>tt===c.displayValue);(V=s==null?void 0:s.onSubtitleOn)==null||V.call(s,oe?oe[0]:"",c.value)}}));let po=ae(!0),to=gi([zi,Uo,Sr,eo],([c,h,V,oe])=>{var Kt;let Se=(Kt=c==null?void 0:c.end)!=null?Kt:0;if(!oe)return Se/h;let At=-V+oe-h;return(Se-At)/h}),Vi=li(k.info.availableSources$),xn=gi([Vi],([c])=>Object.keys((c==null?void 0:c[_i.VideoFormat.MPEG])||{}).length>0),So=()=>{var V,oe,Se;let c=Object.keys(((oe=(V=k.info.availableSources$)==null?void 0:V.getValue())==null?void 0:oe[_i.VideoFormat.MPEG])||{}),h=(0,rt.getHighestQuality)(c)||rt.VideoQuality.Q_144P;return(Se=Ae.sources[_i.VideoFormat.MPEG])==null?void 0:Se[h]},qn=()=>{var h;let c=So();if(c)pe.log("download video",{url:c}),x_(c,((h=Ae==null?void 0:Ae.meta)==null?void 0:h.title)||"video");else{let V="There is no URL for download video";pe.log("download video",{message:V}),U({message:V})}},mi=()=>{U({message:"toggle muted"});let c=k.info.muted$.getValue();k.info.volume$.getValue()===0&&!c?ln(Wr(),!1):fo(!c,!1)},zr=()=>{var c;if(Yt.ui.settingsMenu.visible$.set(!1),!ge(Yt.ui.settingsSubMenu.visible$)){let h=ge(Yt.ui.settingsMenu.ref$);if((c=s==null?void 0:s.uiInfo)!=null&&c.onSettingsMenu&&h){let oe=td(h),Se={top:0,left:0,bottom:0,right:0};s.uiInfo.onSettingsMenu({visible:!1,size:oe,position:Se,name:"settings"})}}pe.log("close settings menu")},dr=(c,h=()=>Promise.resolve())=>gt(null,null,function*(){var Se;Yt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),Yt.ui.settingsMenu.visible$.set(!0),yield h();let V=ge(Yt.ui.settingsMenu.ref$),oe=bl();if((Se=s==null?void 0:s.uiInfo)!=null&&Se.onSettingsMenu&&V&&oe){let At=td(V),Kt=Vs(V,oe);s.uiInfo.onSettingsMenu({visible:!0,size:At,position:Kt,name:"settings"})}pe.log("open settings menu",{wasOpenedByKeyboard:c})}),rs=(c,h=!1)=>{var tt;Yt.ui.settingsSubMenu.visible$.set(!1);let V=ge(Yt.ui.settingsMenu.ref$),oe=bl(),Se=ge(Yt.ui.settingsMenu.visible$);if((tt=s==null?void 0:s.uiInfo)!=null&&tt.onSettingsMenu&&V&&oe)if(Se&&!h){let Kt=td(V),Zt=Vs(V,oe);s.uiInfo.onSettingsMenu({visible:!0,size:Kt,position:Zt,name:"settings"})}else{let Kt=td(c),Zt={top:0,left:0,bottom:0,right:0},Ks=ge(Yt.ui.settingsSubMenu.name$);s.uiInfo.onSettingsMenu({visible:!1,size:Kt,position:Zt,name:Ks})}pe.log("close settings sub menu")},ss=(c,h)=>{var oe;Yt.ui.settingsSubMenu.visible$.set(!0),Yt.ui.settingsSubMenu.ref$.set(h),Yt.ui.settingsSubMenu.name$.set(c);let V=bl();if((oe=s==null?void 0:s.uiInfo)!=null&&oe.onSettingsMenu&&h&&V){let tt=td(h),At=Vs(h,V);s.uiInfo.onSettingsMenu({visible:!0,name:c,size:tt,position:At})}pe.log("open settings sub menu",{name:c})},Wr=()=>{var h;let c=Math.max(J.volumeMinRestore,(h=Fu())!=null?h:0);return c===0?J.volumeDefault:c},Lo=c=>{let h=J.features.savePreferredStatesOnUserActionOnly;return!h||h&&!c},ln=(c,h)=>{let V=c===0?Wr():c,oe=k.info.muted$.getValue();U({message:`set volume, volume: ${c}, preferredVolume: ${V}`});let Se=!l||ze.is("ads");oe&&c>0&&Se&&(oe=!1,Lo(h)&&Yf(!1)),k.setVolume(c,oe),Te.setVolume(c),Lo(h)&&Kf(V)},fo=(c,h)=>{let V=k.info.volume$.getValue();U({message:`set muted, currentVolume: ${V}, mute: ${c}`});let oe=ze.is("ads");if(k.setMuted(c,oe),Te.setVolume(c?0:V),Lo(h)&&(!oe||!c)&&Yf(c),!c&&V===0){let Se=Wr();k.setVolume(Se),Lo(h)&&Kf(Se),Te.setVolume(Se)}},Ir=ae(!1),Wo=c=>{var h,V;pe.log("set looped",{isLooped:c}),Ir.set(c),k.setLooped(c),(V=(h=s==null?void 0:s.uiInfo)==null?void 0:h.onLoopedChanged)==null||V.call(h,c)};Wo(re);let as=()=>{var c,h;(h=(c=s==null?void 0:s.uiInfo)==null?void 0:c.onReportProblem)==null||h.call(c)},qe=(c,h=!1)=>{var V;U({message:`set autoplayNextEnabled, value: ${c}`}),pe.log("set autoplay next enabled",{autoplayNextEnabled:c}),Yt.ui.autoplayNextEnabled$.set(c),F_(c),h&&((V=s==null?void 0:s.onSetAutoplayNextEnabled)==null||V.call(s,c))},Vt=c=>{U({message:`set timerNextVideoRunning, value: ${c}`}),pe.log("set timer next video running",{timerNextVideoRunning:c}),Yt.ui.timerNextVideoRunning$.set(c)},yi=(c=!0)=>{var V;let h=!0;if(c&&(s!=null&&s.onPrevVideoClick))try{h=(V=s==null?void 0:s.onPrevVideoClick)==null?void 0:V.call(s)}catch(oe){U({message:"onPrevVideoClick callback failed to execute"})}X(!0),h&&Y()},Mo=(c=!0)=>{var V;let h=!0;if(c&&(s!=null&&s.onNextVideoClick))try{h=(V=s==null?void 0:s.onNextVideoClick)==null?void 0:V.call(s)}catch(oe){U({message:"onNextVideoClick callback failed to execute"})}X(!1),h&&le()},Vo=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementShow)==null||c.call(s)},Ko=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementClick)==null||c.call(s)},mo=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementAuto)==null||c.call(s)},io=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementCancel)==null||c.call(s)},wn=()=>{k.prepare()},Sn=()=>{(0,rt.assertNonNullable)(Yt);let c=ge(Yt.ui.controls.disabledControls$),h=ge(Yt.playerPhase),V={playerPhase:h,isInteractive:S,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(U({message:"toggle play"}),h==="ads"){V.action="play",pe.log("toggle adman play",V),Te.togglePlay();return}let oe=()=>{var tt;U({message:"toggle play, call player.play"}),V.action="play",k.play(),(tt=s==null?void 0:s.onPlay)==null||tt.call(s)},Se=()=>{var tt;U({message:"toggle play, call player.pause"}),V.action="pause",k.pause(),(tt=s==null?void 0:s.onPause)==null||tt.call(s)};if(k.info.isEnded$.getValue()){if(U({message:"toggle play, video ended, seek to 0"}),Jt.next(),Ci.next(_s.SeekAction.REWIND),S){N==null||N();return}k.seekTime(0),oe()}else k.info.playbackState$.getValue()!==_i.PlaybackState.PLAYING?oe():Se();pe.log("toggle play",V)},vo=(c,{changeReason:h="default",appliesTo:V="to-video"}={},oe)=>{U({message:`set quality, quality: ${c}`}),pe.log("set quality",{quality:c}),k.setAutoQuality(c==="auto");let{qualityDetailsSubMenuEnabled:Se}=J.features;Hu(),c!=="auto"?(Se?(Uu({type:"exact_quality",quality:c,videoId:i},V),k.setPredefinedQualityLimits(_i.PredefinedQualityLimits.UNKNOWN)):qf(i,c),sr.set(c),k.setQuality(c)):Se&&h==="default"&&(ur("auto_quality",V,oe),ge(lo)&&Ro(!1,void 0,oe),ge(Ai)&&Qn(!1,void 0,oe))},Ro=(c,h="as-default",V)=>{U({message:`set trafficSavingEnabled, value: ${c}`}),pe.log("set traffic saving enabled",{trafficSavingEnabled:c});let oe=c?_i.PredefinedQualityLimits.TRAFFIC_SAVING:_i.PredefinedQualityLimits.UNKNOWN;J.features.qualityDetailsSubMenuEnabled?(cr(oe,h,V),Jd(!1)):(k.setPredefinedQualityLimits(oe),Lo(V)&&Jd(c))},Qn=(c,h="as-default",V)=>{U({message:`set highQualityEnabled, value: ${c}`}),pe.log("set high quality enabled",{highQualityEnabled:c}),cr(c?_i.PredefinedQualityLimits.HIGH_QUALITY:_i.PredefinedQualityLimits.UNKNOWN,h,V)},cr=(c,h,V)=>{c!==_i.PredefinedQualityLimits.UNKNOWN&&(ge(nn)&&!ge(sn)&&vo("auto",{appliesTo:h,changeReason:"limit-changed"},V),ur(c,h,V)),k.setPredefinedQualityLimits(c)},ur=(c,h,V)=>{Lo(V)&&(Uu({type:c,videoId:i},h),h==="as-default"&&Uu({type:c,videoId:i},"to-video"))},Gn=(c,h=!0)=>{pe.log("set playback rate",{playbackRate:c}),k.setPlaybackRate(c),J.features.saveRate&&we&&!k.info.isLive$.getValue()&&h&&D_(c)},ys=()=>{let c=ge(Wi),h=ge(zo),V=h.findIndex(({selected:Se})=>Se);if(V===h.length-1||!c)return h[V];let oe=h[V+1];return Gn(oe.value),oe},ls=()=>{let c=ge(Wi),h=ge(zo),V=h.findIndex(({selected:Se})=>Se);if(V===0||!c)return h[V];let oe=h[V-1];return Gn(oe.value),oe},je=(c=jt(Ie({},Po()),{selected:!1}),h)=>{pe.log("set subtitles",Ie({},c)),c.value!==Rn&&Ji.next(c.isAuto?c.value+"_auto":c.value),Ke.next({enabled:c.value!==Rn,lang:c.language,auto:!!c.isAuto}),ar.set(c),Lo(h)&&(Jf(c.value===Rn?void 0:c.language),J.features.userVideoPrefs&&i&&em(J.userSalt,String(i),{subtitleTrackId:c.value===Rn?void 0:c.value}))},Gt=c=>{pe.log("toggle subtitles");let h=ge(ko);(h==null?void 0:h.value)===Rn?qo(c):dn(c)},Pi=(c,h)=>{pe.log("change subtitle",{enabled:c}),c?qo(!0,h):dn(!0)},qo=(c,h)=>{pe.log("subtitle on");let V=ge(Kn),oe=ge(Me),Se=ke!=null?ke:oe,tt;h&&(tt=V.find(At=>At.value===h)),tt!=null||(tt=V.filter(At=>At.value!==Rn).find(At=>At.language===Se)),je(tt!=null?tt:V[1],c)},dn=c=>{pe.log("subtitle off"),je(void 0,c)};ye.add(k.info.availableTextTracks$.subscribe(c=>{var V;function h(){let oe=[];for(let{language:Se,isAuto:tt,id:At}of c){let Kt=Se&&yc(Se);Se&&Kt&&oe.push({id:At,language:Se,title:tt?pt("subtitles_auto",{language:Kt}):Kt})}return oe}(V=s==null?void 0:s.onAvailableSubtitlesChanged)==null||V.call(s,h())}));let pr=ae(!0),cn=c=>{pr.set(c)},Qo=(c,h,V=!0)=>{var oe;if(U({message:`seek to time, time: ${c}`}),pe.log("seek to time",{time:c,action:h,forcePrecise:V}),Ci.next(h),k.info.isLive$.getValue()){let Se=k.info.duration$.getValue(),tt=Math.min(0,Se+c);k.seekTime(tt,V)}else{if(I!=null&&I.getValue())return;k.info.isEnded$.getValue()&&(U({message:"seek after ended, call callbacks.onPlay"}),(oe=s==null?void 0:s.onPlay)==null||oe.call(s)),k.seekTime(vg(c),V)}},Fs=c=>{U({message:`seek to episode start time: ${c}`}),pe.log("seek to episode start time",{time:c}),Qo(c,_s.SeekAction.EPISODE,!0)},un=(c,h,V=!1)=>{U({message:`seek to percent, percent: ${c}`}),pe.log("seek to percent",{percent:c,action:h});let oe=ge(Uo)*c;Qo(oe,h,V)},Hs=c=>{U({message:`seek external, time: ${c}`}),pe.log("seek external",{time:c}),Ci.next(_s.SeekAction.UNKNOWN),k.seekTime(k.info.isLive$.getValue()?-c:c)},pa=c=>{var oe,Se;let h=(oe=c.max)!=null?oe:"none",V=(Se=c.min)!=null?Se:"none";U({message:`set auto quality limitation. Max: ${h}. Min: ${V}`}),pe.log("set auto quality limits",{max:h,min:V}),k.setAutoQualityLimits(c)},fa=c=>{U({message:`seek external to episode start time: ${c}`}),pe.log("seek external to episode start time",{time:c}),Qo(c,_s.SeekAction.EPISODE,!0)},ut=c=>{U({message:`set playback rate to: ${c}`}),pe.log("set playback rate external",{playbackRate:c}),k.setPlaybackRate(c)},ii=ae(!1),go=ae(!1),he=gi([Uo],([c])=>!!p&&c>=J.suitableDurationForUsingRichSeek&&J.features.useRichSeek&&!S),St=((p==null?void 0:p.frameWidth)||0)>=((p==null?void 0:p.frameHeight)||0),ni=gi([oi],([c])=>{let h=id(c);return St?!h:h});ye.add(ze.subscribe(c=>{c!=="video"&&ii.set(!1)}));let Si=ae(void 0),Ri=ae(!1),pi=c=>{U({message:`start scrubbing, progress: ${c}`}),pe.log("start scrubbing",{progress:c}),Ri.set(!0),si(c)},si=c=>{Si.set(c)},ho,pn,fn=()=>{Si.set(void 0),Ri.set(!1)},Li=()=>{clearTimeout(pn),clearTimeout(ho),ho=window.setTimeout(()=>{fn()},500),Pe==null||Pe.removeEventListener("seeked",Li)},hd=(c,h=!1)=>{U({message:`complete scrubbing, progress: ${c}`}),pe.log("complete scrubbing",{progress:c}),un(c,_s.SeekAction.SLIDER,h),ge(Yt.ui.isMobile)&&ge(Yt.state.currentFormat$)===_i.VideoFormat.HLS?(Pe==null||Pe.addEventListener("seeked",Li),pn=window.setTimeout(()=>{Li()},300)):fn()},cl=gi([Tt,Uo,Si],([c,h,V],oe)=>{oe((0,rt.isNonNullable)(V)?V*h:c)}),Us=ae(!1),ul=()=>{Us.set(!0)},pl=()=>{Us.set(!1)},Er=gi([zt],([{width:c}],h)=>{let V=$b(c);h(V)}),ma=Q.filter(c=>w_(c)),zs=gi([Er,Fe],([c,h])=>h?ma.filter(V=>!V.hideOnMobile):ma.filter(V=>{var oe;return!((oe=V.hideOnDesktopGridTypes)!=null&&oe.includes(c))})),Kr=ae(Q.filter(c=>S_(c))),ds=gi([Kr,Er],([c,h])=>c.filter(V=>{var oe;return!((oe=V.hideOnDesktopGridTypes)!=null&&oe.includes(h))})),Ws=gi([ds,zs],([c,h])=>[...J.features.additionalButtonsDesktopControlPanelRight?c.filter(V=>V.type==="desktop-control-panel-right"):[],...J.features.additionalButtons?h.map((V,oe)=>{var Se;return{id:oe,weight:oe,type:"desktop-control-panel-right",testId:V.testId,icon:V.iconUrl,onClick:V.onClick,ariaLabel:(Se=V.ariaLabel)!=null?Se:V.tooltip,tooltipText:V.tooltip}}):[]]),fr=ae(H),fl=gi([fr],([c])=>J.features.additionalSettingsMenuItems?c.map(h=>h.type==="SWITCH"?jt(Ie({},h),{onClick:h.onChangeEnabled}):h):[]),ml=(c,h)=>{let V=ge(Kr).map(oe=>oe.id!==c?oe:Ie(Ie({},oe),h));Kr.set(V)},_d=c=>{let h=ge(Kr);if(h.some(V=>V.id===c.id)){U({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}h.push(c),Kr.set(h)},vl=c=>{let h=ge(Kr);if(!h.some(V=>V.id===c)){U({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}h=h.filter(V=>V.id!==c),Kr.set(h)},gl=c=>{Ci.next(_s.SeekAction.LIVE),U({message:"live switch to low latency "+c}),pe.log("live switch to low latency "+c),k.setLiveLowLatency(c)},hl=(c,h)=>{let V=ge(fr).map(oe=>oe.id!==c?oe:Ie(Ie({},oe),h));fr.set(V)},bd=c=>{let h=ge(fr);if(h.some(V=>V.id===c.id)){U({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}h.push(c),fr.set(h)},va=c=>{let h=ge(fr);if(!h.some(V=>V.id===c)){U({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}h=h.filter(V=>V.id!==c),fr.set(h)},Pr=ae(z),at=gi([Pr],([c])=>J.features.additionalContextMenuItems?c:[]),ft=(c,h)=>{let V=ge(Pr).map(oe=>oe.id!==c?oe:Ie(Ie({},oe),h));Pr.set(V)},qi=c=>{let h=ge(Pr);if(h.some(V=>V.id===c.id)){U({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}h.push(c),Pr.set(h)},Go=c=>{let h=ge(Pr);if(!h.some(V=>V.id===c)){U({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}h=h.filter(V=>V.id!==c),Pr.set(h)},Qi=gi([Fe,nt],([c,h],V)=>{V(c&&h)}),xi=()=>{Ci.next(_s.SeekAction.LIVE),U({message:"switch to active live"}),pe.log("switch to active live"),k.seekTime(0),k.info.playbackState$.getValue()!==_i.PlaybackState.PLAYING&&Yt.actions.internal.togglePlay()},Ni=()=>{pe.log("skip adman"),Te.skip()},ga=(c=!0)=>{var oe;(0,rt.assertNonNullable)(Yt),U({message:`switch from ads to video, callPlay: ${c}`}),pe.log("switch from ads to video",{callPlay:c}),ce.set("video"),c&&k.play(),l&&fo(!0,!0);let h=(oe=ge(Ye))==null?void 0:oe.muted,V=!k.info.muted$.getValue();h!==void 0&&!V&&fo(h,!0),Ye.set(void 0)},_l=()=>{(0,rt.assertNonNullable)(Yt),U({message:"switch from video to ads"}),pe.log("switch from video to ads"),Yt.actions.internal.pause(),xo(),ce.set("ads")},Hp=c=>{(0,rt.assertNonNullable)(Yt);let h=c?"LiveWaitingStart":"thumb";pe.log("set live waiting start",{state:c,playerPhase:h}),ce.set(h)},Jc=c=>{(0,rt.assertNonNullable)(Yt);let h=c?"LiveWaitingRecover":"thumb";pe.log("set live waiting recover",{state:c,playerPhase:h}),ce.set(h)},eu=c=>{(0,rt.assertNonNullable)(Yt);let h=c?"LiveWaitingRecord":"thumb";pe.log("set live waiting record",{state:c,playerPhase:h}),ce.set(h)},tu=()=>((0,rt.assertNonNullable)(Yt),pe.log("get debug text data"),$_(k,Ae,Yt,Ne.getTraceId())),Up=()=>((0,rt.assertNonNullable)(Yt),JSON.stringify(Ne.getFinishedSpans())),iu=()=>((0,rt.assertNonNullable)(Yt),y_(k,Ae,Yt)),bl=()=>Pe,ou=()=>{U({message:"toggle chromecast"}),pe.log("toggle chromecast"),k.toggleChromecast()},ha=c=>{var V;if((0,rt.assertNonNullable)(Yt),k.info.isEnded$.getValue())return;let h=!c;if(ge(Yt.playerPhase)==="ads"){U({message:`pause ads, internalCall: ${h}`}),pe.log("pause ads",{internalCall:h}),Te.pause();return}U({message:`pause video, internalCall: ${h}`}),pe.log("pause video",{internalCall:h}),h&&((V=s==null?void 0:s.onPause)==null||V.call(s)),k.pause()},_a=c=>{var V;(0,rt.assertNonNullable)(Yt);let h=!c;if(ge(Yt.playerPhase)==="ads"){U({message:`play ads, internalCall: ${h}`}),pe.log("play ads",{internalCall:h}),Te.play();return}U({message:`play video, internalCall: ${h}`}),pe.log("play video",{internalCall:h}),h&&((V=s==null?void 0:s.onPlay)==null||V.call(s)),k.play()},zp=c=>{(0,rt.assertNonNullable)(Yt);let h=!c;if(ge(Yt.playerPhase)==="ads"){U({message:"player cannot be stopped during ads via external method"});return}U({message:`player will be stopped, internalCall: ${h}`}),P==null||P()},nu=(c,h)=>{(0,rt.assertNonNullable)(Yt),U({message:`first start, show ads: ${c}, internalCall: ${!h}`}),pe.log("first start",{showAds:c,external:h}),c?ce.set("ads"):(ce.set("video"),h?k.play():Yt.actions.internal.togglePlay())},$d=()=>(U({message:"getting time codes"}),m),He=()=>{let c=$d();if(!c||[0,1].includes(c.length))return;let h=k.info.position$.getValue();return c.find(V=>V.time>h)},$i=c=>{let h=c;h||(h=He());let V=k.info.position$.getValue();pe.log("seek to next episode",Ie({currentTime:V},h)),h&&(U({message:"seek to next episode"}),Qo(h.time,_s.SeekAction.EPISODE,!0))},No=()=>{let c=$d();if(!c||[0,1].includes(c.length))return;let h=k.info.position$.getValue(),V=c.findIndex(Se=>Se.time>h),oe=V===-1?c.length-2:V-2;if(!(oe<0))return c[oe]},ba=c=>{let h=c;h||(h=No());let V=k.info.position$.getValue();pe.log("seek to prev episode",Ie({currentTime:V},h)),h&&(U({message:"seek to prev episode"}),Qo(h.time,_s.SeekAction.EPISODE,!0))},Tn=()=>(U({message:"getting preview thumbs data"}),pe.log("get preview thumbs data",Ie({},p)),p),S$=()=>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()),pe.log("toggle picture in picture",{isActive:c,action:h})}),T$=(c=-90)=>{pe.log("rotate video",{alphaDiff:c}),oi.update(h=>h+c)},ru=ae([]);C==null||C.subscribe(c=>{let h=[];for(let V=0;V<c.length;V++){let{range:[oe,Se],subjects:tt}=c[V];V===0&&oe!==0&&h.push({time:0,text:"",interactive:!1,completed:!0}),h.push({time:oe/1e3,text:"",interactive:!0,completed:J.features.interactiveTimeOpenUri?!tt.length||tt.every(At=>At.isRemoved):!tt.length}),Se!==1/0&&h.push({time:Se/1e3,text:"",interactive:!1,completed:!0})}ru.set(h)});let C$=ae(!1);I==null||I.subscribe(c=>{c&&ge(Ri)&&fn()});let vg=c=>{if(!S)return c;let h=ge(ru),V=ge(Uo),Se=ge(Sr)/V,tt=h.find(At=>At.interactive&&!At.completed&&At.time>Se);return typeof(tt==null?void 0:tt.time)=="number"?Math.min(c,tt.time-.05):c},I$=()=>{Yt.ui.episodes.panelOpened$.set(!1)},E$=()=>{pe.log("destroy store"),clearTimeout(pn),clearTimeout(ho),ye.unsubscribe(),Io.unsubscribe(),k.destroy(),Te.destroy(),Z==null||Z.destroy(),j==null||j.destroy(),ee.unsubscribe(),ti==null||ti.disconnect(),ti=null,Je.destroy()},P$=gi([nr,ze,Wi],([c,h,V])=>f.features.doubleForwardAvailable&&!c&&h==="video"&&V),Wp=ae(!1),gg=2,su=null,hg=c=>{if(!ge(Dn)&&c)return;let h=k.info.currentPlaybackRate$.getValue();c?h!==gg&&(su=h,Gn(gg,!1),Wp.set(!0)):(su&&Gn(su,!1),Wp.set(!1),su=null)};ze.subscribe(c=>{c!=="video"&&hg(!1)});let k$=()=>{ha(!1),ii.set(!0)},A$=()=>{_a(!1),ii.set(!1)},Kp=!1,L$=()=>{go.set(!0),Kp=k.info.playbackState$.getValue()===_i.PlaybackState.PLAYING,ha(!1)},M$=()=>{go.set(!1),!ge(ii)&&Kp&&_a(!1),Kp=!1};k.events.playing$.subscribe(()=>{ge(ii)&&ha(!1)});let Yt={interfaceLanguage$:Me,isCyrillicRelatedInterface$:Lt,initVideo:fi,videoId:i,isClip:o,playerPhase:ze,vsid:Ft,state:{positionExact$:Tt,positionWithScrubbing$:cl,duration$:Uo,playbackState$:Xt,playbackStateRealistic$:Ui,isPlaying$:Dn,isLoaderVisible:Zi,bufferedProgress$:to,isLive$:Eo,canChangePlaybackSpeed$:Wi,isActiveLive$:nr,isOldestAvailableLive$:wr,isRewindableLive$:Dr,isEnded$:on,muted$:wo,volume$:Nr,trafficSavingEnabled$:lo,highQualityEnabled$:Ai,autoQualityLimitingAvailable$:nn,availableVideoStreams$:Br,availableAudioStreams$:Bn,videoStream$:Fn,audioStream$:uo,currentQuality$:an,isAutoQualityEnabled$:sn,availableQualities$:Un,currentPlaybackRate$:zn,availablePlaybackRates$:zo,currentSubtitle$:ko,availableTextTracks$:Ki,availableSubtitlesList$:Kn,currentSubtitleCaptions$:Et,isAutoSubtitleCaptionVisible$:po,chromecastState$:ir,chromecastDeviceName$:Or,chromecastConnected$:co,currentFormat$:os,throughputEstimation$:$s,videoBitrate$:ns,videoSize$:or,errorLog$:be,crashed$:nt,isAudioAvailable$:$n,isAudioDisabled:!!l,canDownload:J.features.download&&!!d,availableSources$:Vi,hasMpegSources$:xn,isInteractive:S,showInteractiveGraph:J.features.interactiveGraph,showSeekToInteractive:J.features.seekToInteractive,showPlayPrevChapter:J.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:J.features.interactiveTimeIndicator&&!!ge(ru).length,interactiveEpisodes$:ru,isInteractiveTime$:I?li(I):ae(!1),isInteractiveExpectation$:C$,hasInteractiveBranches:E,playPrevChapterDisabledTooltip:A,looped$:Ir,loadedMetadata$:Ot,isAutoQualityAvailable$:yn,previewTrackActive:ii,previewTrackDragInProgress:go},ui:{t:pt,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:Q.length?Q.reduce(c=>[...c,ae(void 0)],[]):[],disabledControls$:Ut},modals:{hotKeyMap:{show:ae(!1),data:ae({title:"",closeBtnText:"",groups:[]})}},isFullscreen:mt,isFullscreenOpenedByKeyboard:Ht,rotateAlpha:oi,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:zt,isMobile:Fe,mobileNotReportControlHidden$:Qi,icon3DVideoVisible:ae(!1),scrubbingInProgress:Ri,volumeChangingInProgress:Us,is3DVideo:$e,currentGridType$:Er,additionalButtonsDeprecated$:zs,additionalDesktopControlPanelRightButtons$:Ws,additionalSettingsMenuItems$:fl,additionalContextMenuItems$:at,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:pr,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$:P$,previewTrackNotificationVisible:ae(!1),previewTrackActive:ii,previewTrackDragInProgress:go,previewTrackAvailable:he,isPreviewTrackHorizontallyAligned:ni},ads:{position:ae(0),duration:ae(0),playbackState:ae("inactive"),canSkip:ae(!1),secondsToWatchBeforeSkip:ae(0),postrollPassed:ae(!1)},webApi:{pictureInPictureApi:ie,annotationsApi:De,slotsApi:Be,focusManager:ot},actions:{internal:{preload:wn,firstStart:c=>nu(c,!1),play:()=>_a(!1),pause:()=>ha(!1),togglePlay:Sn,toggleMuted:mi,openSettingsMenu:dr,closeSettingsMenu:zr,openSettingsSubMenu:ss,closeSettingsSubMenu:rs,setVolume:c=>ln(c,!1),setMuted:c=>fo(c,!1),startVolumeChanging:ul,stopVolumeChanging:pl,setVideoStream:Fr,setAudioStream:c=>Hn(c,!1),setQuality:(c,h)=>vo(c,h,!1),setTrafficSavingEnabled:(c,h)=>Ro(c,h,!1),setHighQualityEnabled:(c,h)=>Qn(c,h,!1),setPlaybackRate:Gn,incrementPlaybackRate:ys,decrementPlaybackRate:ls,setSubtitle:c=>je(c,!1),toggleSubtitle:()=>Gt(!1),togglePictureInPicture:S$,startScrubbing:pi,progressScrubbing:si,completeScrubbing:hd,toggleChromecast:ou,switchToActiveLive:xi,switchFromAdsToVideo:ga,switchFromVideoToAds:_l,skipAd:Ni,setLiveWaitingStart:Hp,setLiveWaitingRecover:Jc,setLiveWaitingRecord:eu,getDebugTextData:tu,getTraceTextData:Up,getDebugPanelData:iu,getVideoElement:bl,seekTime:(c,h,V)=>Qo(c,h,V),clearDelayedBufferingCheckTimeout:On,seekEpisodeStartTime:Fs,seekToPercent:un,getNextEpisode:He,seekToNextEpisode:$i,getPrevEpisode:No,seekToPrevEpisode:ba,startLogging:bn,stopLogging:It,startCameraManualRotation:Wt,stopCameraManualRotation:W,moveCameraFocusPX:Mt,holdCamera:di,releaseCamera:ct,getVideoEpisodes:$d,getPreviewThumbsData:Tn,downloadVideo:qn,addLanguage:tm,setLanguage:fe,nextMovie:bt,videoRotate:T$,correctSeekTimeToInteractive:vg,replayInteractive:N,setLooped:Wo,reportProblem:as,setAutoplayNextEnabled:qe,setTimerNextVideoRunning:Vt,prevVideoClick:yi,nextVideoClick:Mo,nextVideoAnnouncementShow:Vo,nextVideoAnnouncementClick:Ko,nextVideoAnnouncementAuto:mo,nextVideoAnnouncementCancel:io,checkFullscreenSupport:lt,changeDoubleForwardOn:hg,closePreviewTrack:A$,previewTrackOpened:k$,previewTrackDragStarted:L$,previewTrackDragFinished:M$},external:{firstStart:c=>nu(c,!0),play:()=>_a(!0),pause:()=>ha(!0),stop:()=>zp(!0),seekTime:c=>Hs(c),seekEpisodeStartTime:c=>fa(c),setPlaybackRate:c=>ut(c),setAutoQualityLimits:c=>pa(c),setMuted:c=>fo(c,!0),toggleSubtitle:()=>Gt(!0),changeSubtitle:Pi,setVolume:c=>ln(c,!0),returnFocusToEpisodes:I$,updateAdditionalSettingsItem:hl,addAdditionalSettingsItem:bd,removeAdditionalSettingsItem:va,updateAdditionalContextItem:ft,addAdditionalContextItem:qi,removeAdditionalContextItem:Go,updateAdditionalButton:ml,addAdditionalButton:_d,removeAdditionalButton:vl,setLiveLowLatency:gl,hideControls:()=>cn(!1),showControls:()=>cn(!0),setQuality:c=>vo(c,{appliesTo:"to-video"},!0),setTrafficSavingEnabled:c=>Ro(c,"to-video",!0),setHighQualityEnabled:c=>Qn(c,"to-video",!0),changeAudioStream:ui}},callbacks:s,setUiCallbacks:c=>{Ue=Ie({},c)},getAdmanWrapper:()=>Te,getLogger:()=>We,getPlayer:()=>k,destroy:E$};return Yt};function er(t,e,i,o){var m;let r=(m=e[i])==null?void 0:m.getBoundingClientRect(),a=o&&!!r&&!!(r.right-r.left),{top:l,left:d,bottom:s,right:u}=Vs(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 Zx=["disabledControls$","additionalButtons"],Jx=["interactiveTimeIndicator"],nd=(t,e,i,o)=>{if(t){for(let[r,a]of Object.entries(e))if(!Zx.includes(r)){let l=o||Jx.includes(r);a.set(er(t,i,r,l))}}};var mp=(t,e,i)=>gt(null,null,function*(){yield yo(),e&&i&&(i.focus(),t.set(!1))});var ew=Ce('<path d="M18 10c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2Zm-6 4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2Zm-6 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2Z"></path>');function qm(t){Ze(t,{children:(e,i)=>{var o=ew();b(e,o)},$$slots:{default:!0}})}function Qm(t,e){B(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$,m=d.ui.contextMenu.showContextMenuBtn$,p=d.ui.contextMenu.position$,f=d.ui.contextMenu.btnRef$,$=K(void 0);Oe(()=>{n($)&&Pt(()=>{f.set(n($))})});let y=I=>{let N=ra(I),P=cb(n($));p.set(P),u.set(N),s.set(!r())},_=()=>{m.set(!0)},S=()=>{m.set(!1)},C=v(()=>r()?"opened":"");Qt(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($)},set ref(I){O($,I,!0)},children:(I,N)=>{qm(I,{})},$$slots:{default:!0}}),F(),o()}var tw=t=>{t.stopPropagation()},iw=M("<div><!> <div></div> <div></div></div>"),ow={hash:"s-27",code:'.interactive-episode-icon-animated.s-27{height:32px;opacity:1;position:absolute;right:16px;top:16px;transition:.3s;width:32px}.interactive-episode-icon-animated.icon-small.s-27{height:28px;width:28px}.invisible.s-27{opacity:0;visibility:hidden}.fullscreen.s-27:not(.mobile){height:40px;right:23px;top:19px;width:40px}.mobile.s-27{height:28px;right:14px;top:12px;width:28px}.fullscreen.mobile.s-27{height:32px;width:32px}@media screen and (orientation:portrait){.interactive-episode-icon-animated.mobile.fullscreen.s-27{right:16px;top:40px}}@keyframes s-27-pulse{0%{border-width:1px;opacity:0;transform:scale(1)}10%{opacity:1}50%{border-width:1px;opacity:.5;transform:scale(1.5)}to{border-width:.5px;opacity:0;transform:scale(1.5)}}.pulse.s-27{animation:s-27-pulse 1s infinite;border:1px solid #fff;border-radius:100%;bottom:0;content:"";display:block;left:0;pointer-events:none;position:absolute;right:0;top:0;transform:scale(1.8);transition:.3s}.pulse.paused.s-27{animation-play-state:paused}.interactive-episode-icon-animated svg{height:100%;width:100%}.ref-block.s-27{height:100%;position:absolute;top:0;visibility:hidden;width:100%}.hidden.s-27{display:none}'};function wc(t,e){var j;B(e,!0),q(t,ow);let[i,o]=Re(),r=()=>x(S,"$isMobile",i),a=()=>x(P,"$areControlsVisible",i),l=()=>x(A,"$currentGridType$",i),d=()=>x(I,"$isInteractiveTime$",i),s=()=>x(_,"$interactiveControlsOpacity$",i),u=()=>x(N,"$showInteractiveTimeIndicatorTooltip$",i),m=()=>x(C,"$isFullscreen",i),p=g(e,"ref",15,void 0),f=K(void 0),$=ve(),y=Co(),{interactiveControlsOpacity$:_}=y,S=$.ui.isMobile,C=$.ui.isFullscreen,I=$.state.isInteractiveTime$,N=y.showInteractiveTimeIndicatorTooltip$,P=$.ui.controlsVisible,E=(j=$.callbacks)==null?void 0:j.onInteractiveTimeIndicatorClick,A=$.ui.currentGridType$,Q=v(()=>!r()&&a()),H=v(()=>Ms(l(),"s")),z=v(()=>!d()||!!s()||n(Q)),Y=K(!1);Oe(()=>{O(Y,n(z),!0)});let le=()=>{O(Y,!0)},X=()=>{var ie;re(),(ie=n(f))==null||ie.addEventListener("animationiteration",le,{once:!0})},re=()=>{var ie;O(Y,!1),(ie=n(f))==null||ie.removeEventListener("animationiteration",le)},Z=ie=>{N.set(ie)},we=v(()=>u()&&!n(z));Oe(()=>{u()?X():re()});let ue=()=>{n(z)||(N.set(!0),E==null||E())};gn(()=>{N.clearTimeout(),re()});let ne=()=>{N.set(!1)},_e=G("tooltip_interactive_interaction_time_indicator");var xe=iw();let J;xe.__mousemove=[tw],xe.__click=ue;var Ne=T(xe);Fo(Ne,{get tooltipContent(){return _e},get tooltipVisible(){return n(we)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:Z,get ref(){return p()},set ref(ie){p(ie)},children:(ie,De)=>{mc(ie,{completed:!0})},$$slots:{default:!0}});var pe=L(Ne,2);let k;Xe(pe,ie=>p(ie),()=>p());var We=L(pe,2);let Te;Xe(We,ie=>O(f,ie),()=>n(f)),w(xe),D((ie,De,Be)=>{J=se(xe,1,"interactive-episode-icon-animated s-27",null,J,ie),k=se(pe,1,"ref-block s-27",null,k,De),Te=se(We,1,"pulse s-27",null,Te,Be)},[()=>({mobile:r(),fullscreen:m(),invisible:n(z),"icon-small":n(H)}),()=>({hidden:n(z)}),()=>({paused:n(Y)})]),_t("mouseleave",xe,ne),b(t,xe),F(),o()}it(["mousemove","click"]);function vp(t,e){B(e,!0);let i=g(e,"tooltipEnabled",3,!0),o=g(e,"disabled",3,!1),r=g(e,"className",3,void 0),a=g(e,"ref",15),l=g(e,"tooltipVisible",3,!1);Fo(t,{get disabled(){return o()},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},get hasTooltip(){return i()},get mouseEnter(){return e.mouseEnter},get mouseLeave(){return e.mouseLeave},get tooltipVisible(){return l()},get className(){return r()},get ref(){return a()},set ref(d){a(d)},children:(d,s)=>{var u=Le();let m=v(()=>e.buttonComponent);var p=de(u);Bi(p,()=>n(m),(f,$)=>{$(f,ks(()=>{var y;return(y=e.buttonComponentProps)!=null?y:{}}))}),b(d,u)},$$slots:{default:!0}}),F()}var Rs={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var rw=Ce('<path d="M32 21.68V15a2 2 90 114 0v18a2 2 90 01-4 0v-6.66l-16.3 9.32A2.48 2.48 90 0112 33.56V14.46c0-1.9 2.06-3.08 3.7-2.12z"></path>');function ca(t,e){B(e,!0);let i=g(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);transform-origin: 50%;":void 0),r=v(()=>`${hn(e.size)}${n(o)}`),a=v(()=>i()?"prev-icon":"next-icon");Ze(t,{get width(){return"48"},get height(){return"48"},get style(){return n(r)},get testId(){return n(a)},get shadow(){return e.shadow},children:(l,d)=>{var s=rw();b(l,s)},$$slots:{default:!0}}),F()}var sw=M('<div class="icon-background-mobile s-24"><!></div>'),aw={hash:"s-24",code:".icon-background-mobile.s-24{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){B(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),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}`);Qt(t,{get className(){return n(u)},get testId(){var m;return`btn-${(m=e.type)!=null?m:""}`},get disabled(){return r()},get ariaLabel(){return n(d)},get click(){return e.click},get ariaKeyShortCut(){return n(s)},get ref(){return i()},set ref(m){i(m)},children:(m,p)=>{var f=Le(),$=de(f);{var y=S=>{var C=sw(),I=T(C);let N=v(()=>e.type==="prev");ca(I,{get size(){return"32"},get reversed(){return n(N)}}),w(C),b(S,C)},_=S=>{let C=v(()=>e.type==="prev");ca(S,{get size(){return"24"},get reversed(){return n(C)}})};R($,S=>{o()?S(y):S(_,!1)})}b(m,f)},$$slots:{default:!0}}),F()}var lw=Ce('<path d="M24 21.2a.8.8 90 01-1.34.6L14.08 14a1.34 1.34 90 010-2l8.6-7.8a.8.8 90 011.32.6V11a16 16 90 11-16 16 2 2 90 114 0 12 12 90 1012-12z"></path>');function Sc(t,e){B(e,!0);let i=v(()=>hn(e.size));Ze(t,{get width(){return"48"},get height(){return"48"},get style(){return n(i)},testId:"replay-icon",get shadow(){return e.shadow},children:(o,r)=>{var a=lw();b(o,a)},$$slots:{default:!0}}),F()}var Mb=require("@vkontakte/videoplayer-shared/es2015");var dw=M('<div class="icon-background-mobile s-22"></div>'),cw=M("<!> <div><!></div>",1),uw={hash:"s-22",code:".mobile.s-22{align-items:center;display:flex;justify-content:center;position:relative}.icon-background-mobile.s-22{background-color:var(--big-play-bg-color);border-radius:var(--big-play-radius);height:calc(100% - 32px);left:16px;position:absolute;top:16px;width:calc(100% - 32px)}"};function rd(t,e){B(e,!0),q(t,uw);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,Mb.noop),d=G("tooltip_restart"),s=v(()=>`${o()?"btn-m--play":""} ${a()}`);Qt(t,{get className(){return n(s)},testId:"replay-btn",get ariaLabel(){return d},get disabled(){return r()},get click(){return l()},get ariaKeyShortCut(){return gs.KeyK},get ref(){return i()},set ref(u){i(u)},children:(u,m)=>{var p=cw(),f=de(p);{var $=I=>{var N=dw();b(I,N)};R(f,I=>{o()&&I($)})}var y=L(f,2);let _;var S=T(y);let C=v(()=>o()?"48":"24");Sc(S,{get size(){return n(C)}}),w(y),D(I=>_=se(y,1,"s-22",null,_,I),[()=>({mobile:o()})]),b(u,p)},$$slots:{default:!0}}),F()}var pw=Ce('<path d="m17.4 10 1.6.2a2 2 90 01.8.8l.2 1.6v22.8l-.2 1.6a2 2 90 01-.8.8l-1.6.2h-4l-1.4-.2a2 2 90 01-.8-.8l-.2-1.6V12.6l.2-1.6a2 2 90 01.8-.8l1.6-.2h3.801zm16 0 1.6.2a2 2 90 01.8.8l.2 1.6v22.8l-.2 1.6a2 2 90 01-.8.8l-1.6.2h-4l-1.4-.2a2 2 90 01-.8-.8l-.2-1.6V12.6l.2-1.6a2 2 90 01.8-.8l1.6-.2h4z"></path>');function Ns(t,e){B(e,!0);let i=v(()=>hn(e.size));Ze(t,{get width(){return"48"},get height(){return"48"},get fill(){return e.fill},get style(){return n(i)},testId:"pause-icon",get shadow(){return e.shadow},children:(o,r)=>{var a=pw();b(o,a)},$$slots:{default:!0}}),F()}var Vb=require("@vkontakte/videoplayer-shared/es2015");var fw=M('<div class="icon-background-mobile s-23"><!></div>'),mw={hash:"s-23",code:".icon-background-mobile.s-23{align-items:center;background-color:var(--big-play-bg-color);border-radius:var(--big-play-radius);display:flex;height:calc(100% - 32px);justify-content:space-around;left:16px;position:absolute;top:16px;width:calc(100% - 32px)}"};function sd(t,e){B(e,!0),q(t,mw);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),m=g(e,"className",3,""),p=g(e,"click",3,Vb.noop),$=ve().ui.t,{toggle:y}=a,_=v(()=>y),S=v(()=>r()!==null),C=v(()=>n(S)?r():s()),I=v(()=>n(C)?$("tooltip_pause"):$("tooltip_play")),N=v(()=>n(C)?Ns:Mn),P=v(()=>`${d()?"btn-m--play":""} ${m()}`),E=v(()=>n(S)?n(_):p());Qt(t,{get className(){return n(P)},testId:"play-btn",get click(){return n(E)},get disabled(){return u()},get ariaLabel(){return n(I)},get ariaKeyShortCut(){return gs.KeyK},get ref(){return l()},set ref(A){l(A)},children:(A,Q)=>{var H=Le();let z=v(()=>n(N));var Y=de(H);{var le=re=>{var Z=fw(),we=T(Z);Bi(we,()=>n(z),(ue,ne)=>{ne(ue,{get size(){return"48"}})}),w(Z),b(re,Z)},X=re=>{var Z=Le(),we=de(Z);Bi(we,()=>n(z),(ue,ne)=>{ne(ue,{get size(){return"24"}})}),b(re,Z)};R(Y,re=>{d()?re(le):re(X,!1)})}b(A,H)},$$slots:{default:!0}}),F(),o()}var vw=Ce('<path d="M12.58 12.92v2.5a1 1 0 0 1-1.52.85l-5.58-3.42a1 1 0 0 1 0-1.7l5.58-3.42a1 1 0 0 1 1.52.86v2.5l5.48-3.36a1 1 0 0 1 1.52.86v6.82a1 1 0 0 1-1.52.86z"></path>');function Gm(t){Ze(t,{testId:"play-prev-chapter-icon",children:(e,i)=>{var o=vw();b(e,o)},$$slots:{default:!0}})}function Tc(t,e){B(e,!0);let i=g(e,"ref",15,void 0),o=g(e,"hidden",3,!1),r=g(e,"disabled",3,!1),a=G("tooltip_interactive_go_back"),l=v(()=>o()?"hidden":"");Qt(t,{get className(){return n(l)},testId:"play-prev-chapter-btn",get ariaLabel(){return a},get disabled(){return r()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,s)=>{Gm(d,{})},$$slots:{default:!0}}),F()}var gw=M('<span class="gutter s-21"><span><!></span></span>'),hw={hash:"s-21",code:".gutter.s-21{--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-21{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-21{background-color:var(--toggle-color-autoplay-on);transform:translateX(calc(var(--gutterWidth) - var(--togglerWidth) + var(--togglerGap)))}"};function Cc(t,e){B(e,!0),q(t,hw);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,m=()=>{u(!r(),!0)},p=d("aria_label_autoplay"),f="12",$="#000",y=v(()=>r()?"true":"false");Qt(t,{click:m,get ariaLabel(){return p},role:"switch",get areaChecked(){return n(y)},get ref(){return a()},set ref(_){a(_)},children:(_,S)=>{var C=gw(),I=T(C);let N;var P=T(I);{var E=Q=>{Mn(Q,{get size(){return f},fill:$})},A=Q=>{Ns(Q,{get size(){return f},fill:$})};R(P,Q=>{r()?Q(E):Q(A,!1)})}w(I),w(C),D(Q=>N=se(I,1,"toggler s-21",null,N,Q),[()=>({enabled:r()})]),b(_,C)},$$slots:{default:!0}}),F(),o()}var _w=Ce('<path d="M16.73 4.85c-.54-.05-1.23-.05-2.23-.05H7.9a.9.9 0 1 1 0-1.8h6.64q1.41-.01 2.33.05c.64.05 1.2.16 1.73.43a4.4 4.4 0 0 1 1.92 1.92c.27.52.38 1.09.43 1.73q.06.92.05 2.33v5.08q.01 1.41-.05 2.33a5 5 0 0 1-.43 1.73 4.4 4.4 0 0 1-1.92 1.92 5 5 0 0 1-1.73.43q-.92.06-2.33.05H7.9a.9.9 0 1 1 0-1.8h6.6c1 0 1.69 0 2.23-.04.52-.05.82-.13 1.05-.24a2.6 2.6 0 0 0 1.14-1.14c.11-.23.2-.53.24-1.06s.04-1.23.04-2.22v-5c0-1 0-1.69-.04-2.23a3 3 0 0 0-.24-1.05 2.6 2.6 0 0 0-1.14-1.14c-.23-.11-.53-.2-1.05-.24"></path><path d="M7.76 11.17V8.9c0-.71.7-1.15 1.25-.78l4.6 3.1a.96.96 0 0 1 0 1.54L9 15.87c-.55.37-1.25-.07-1.25-.78v-2.26l-4.5 3.04C2.7 16.24 2 15.8 2 15.09V8.91c0-.71.7-1.15 1.25-.78z "></path>',1);function Ym(t){Ze(t,{testId:"seek-to-interactive-icon",children:(e,i)=>{var o=_w();vi(),b(e,o)},$$slots:{default:!0}})}function Ic(t,e){B(e,!0);let i=g(e,"ref",15,void 0),o=g(e,"hidden",3,!1),r=g(e,"disabled",3,!1),a=G("tooltip_interactive_seek"),l=v(()=>o()?"hidden":"");Qt(t,{get className(){return n(l)},testId:"btn-seek-to-interactive",get ariaLabel(){return a},get disabled(){return r()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,s)=>{Ym(d,{})},$$slots:{default:!0}}),F()}var bw=Ce('<path d="M15.2 5.9v1.2c0 .6 0 .9.12 1.12q.15.3.46.46c.23.12.52.12 1.12.12h1.2c.6 0 .9 0 1.12-.12q.3-.15.46-.46c.12-.23.12-.52.12-1.12V5.9c0-.6 0-.9-.12-1.12a1 1 0 0 0-.46-.46c-.23-.12-.52-.12-1.12-.12h-1.2c-.6 0-.9 0-1.12.12q-.3.15-.47.46c-.11.23-.11.53-.11 1.12m-.05 11.03v1.14c0 .6 0 .91.12 1.14q.15.31.47.47c.23.12.53.12 1.14.12h1.22c.6 0 .9 0 1.14-.12a1 1 0 0 0 .47-.47c.12-.23.12-.53.12-1.14v-1.14c0-.6 0-.9-.12-1.14a1 1 0 0 0-.47-.47c-.23-.12-.54-.12-1.14-.12h-1.22c-.6 0-.91 0-1.14.12a1 1 0 0 0-.47.47c-.12.23-.12.53-.12 1.14"></path>'),$w=Ce('<path d="M16.78 3h1.42q.47 0 .83.02.4.02.82.21.61.31.92.92.2.41.21.81.03.36.02.83v1.4q0 .47-.02.83-.02.4-.21.81a2 2 0 0 1-.92.92 2 2 0 0 1-.82.21q-.36.02-.83.02h-1.42q-.47 0-.84-.02a2 2 0 0 1-.81-.2 2 2 0 0 1-.93-.93 2 2 0 0 1-.2-.8l-.03-.64h-2.2c-.49 0-.8 0-1.04.02a1 1 0 0 0-.35.06 1 1 0 0 0-.35.35 1 1 0 0 0-.07.35c-.02.24-.02.55-.02 1.04v5.57c0 .5 0 .8.02 1.04s.05.31.07.34q.12.23.35.35c.03.02.11.05.34.07s.56.02 1.05.02h2.2q0-.34.02-.62.01-.4.21-.81.31-.61.93-.92.42-.2.81-.21.37-.02.84-.02h1.42q.47 0 .83.02.4.01.82.2.61.31.92.93.2.41.21.8.03.37.02.84v1.4q0 .47-.02.83-.02.39-.21.81a2 2 0 0 1-.92.92q-.43.2-.82.21-.36.02-.83.02h-1.42q-.47 0-.84-.02a2 2 0 0 1-.81-.21 2 2 0 0 1-.93-.92 2 2 0 0 1-.2-.81l-.03-.63h-2.24q-.68 0-1.16-.03a3 3 0 0 1-1.01-.26 2.6 2.6 0 0 1-1.14-1.14 3 3 0 0 1-.26-1q-.04-.5-.03-1.16v-1.93H2.9A.9.9 0 0 1 2 12c0-.5.4-.9.9-.9h5.23V9.18q0-.68.03-1.16.02-.51.26-1.02a2.6 2.6 0 0 1 1.14-1.13q.5-.24 1.02-.26.48-.04 1.16-.02h2.23q0-.34.02-.63.01-.4.21-.81.31-.61.93-.92.42-.2.81-.21.37-.02.84-.02m-.84 1.84.15-.02c.16-.02.37-.02.72-.02h1.35c.36 0 .57 0 .72.02l.15.02a.3.3 0 0 1 .12.12l.03.15.01.71v1.34l-.01.71-.02.15a.3.3 0 0 1-.13.13l-.15.02-.72.01h-1.35l-.72-.01-.15-.03a.3.3 0 0 1-.12-.12l-.02-.15-.02-.71V5.82q0-.5.02-.71l.02-.15a.3.3 0 0 1 .12-.12m0 11.02.15-.03.72-.01h1.35l.72.01.15.03a.3.3 0 0 1 .12.12l.03.15.01.71v1.34l-.01.71-.02.15a.3.3 0 0 1-.13.12l-.15.02c-.15.02-.36.02-.72.02h-1.35c-.35 0-.56 0-.72-.02l-.15-.02a.3.3 0 0 1-.12-.12l-.02-.15-.02-.71v-1.34c0-.35 0-.56.02-.71l.02-.15a.3.3 0 0 1 .12-.13"></path><!>',1);function jm(t,e){let i=g(e,"isOpened",3,!1),o=v(()=>i()?"graph-close-icon":"graph-open-icon");Ze(t,{get testId(){return n(o)},children:(r,a)=>{var l=$w(),d=L(de(l));{var s=u=>{var m=bw();b(u,m)};R(d,u=>{i()&&u(s)})}b(r,l)},$$slots:{default:!0}})}function Ec(t,e){B(e,!0);let i=g(e,"ref",15,void 0),o=g(e,"hidden",3,!1),r=g(e,"disabled",3,!1),a=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":"");Qt(t,{get className(){return n(u)},testId:"btn-graph",get disabled(){return r()},get ariaLabel(){return n(s)},get click(){return e.click},get ref(){return i()},set ref(m){i(m)},children:(m,p)=>{let f=v(()=>!!a());jm(m,{get isOpened(){return n(f)}})},$$slots:{default:!0}}),F()}var Xm=require("@vkontakte/videoplayer-core/es2015");function Pc(t,e){B(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$,m=s.actions.internal.switchToActiveLive,p=s.actions.internal.togglePlay,f=v(()=>()=>{if(!l()){m();return}r()===Xm.PlaybackState.PAUSED&&p()}),$=v(()=>a()?"":"btn--live btn-full-opacity"),y=v(()=>l()?"btn-live":"btn-live-offset"),_=v(()=>l()&&r()===Xm.PlaybackState.PLAYING);Qt(t,{get className(){return n($)},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}}),F(),o()}var Zm=require("@vkontakte/videoplayer-shared/es2015");var yw=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),xw=M('<img class="icon" aria-hidden="true"/>');function Xa(t,e){"use strict";let i=K(!1),o=()=>{O(i,!0)};var r=Le(),a=de(r);{var l=s=>{var u=yw();b(s,u)},d=s=>{var u=xw();D(()=>Ve(u,"src",e.icon)),_t("error",u,o),Aa(u),b(s,u)};R(a,s=>{n(i)?s(l):s(d,!1)})}b(t,r)}function Jm(t,e){B(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":"");Fo(t,{get disabled(){return n(l)},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},width:40,get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},get tooltipVisible(){return e.tooltipVisible},get ref(){return r()},set ref(s){r(s)},children:(s,u)=>{let m=v(()=>{var p;return(p=e.testId)!=null?p:e.id});Qt(s,{get className(){return n(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return n(l)},get testId(){return n(m)},children:(p,f)=>{Xa(p,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),F()}var Rb=t=>!!t.buttonComponent;var Os={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var gp=(t,e,i,o)=>{if(t)for(let[r,a]of Object.entries(e))a.set(er(t,i,r,o))};var hp=require("@vkontakte/videoplayer-shared/es2015"),Nb=10,Ob=40,ev=.2,Sw=.5,Tw=65,Cw=114,Iw=4,Db=({onPreviewTrackOpened:t,getTimelineRef:e,isHorizontal:i})=>{let o=v(()=>i?Tw:Cw),r=K(!1),a=K(0),l=K(0),d=v(()=>n(o)+Nb-Ob-Iw),s=v(()=>(0,hp.interpolate)(n(a),[ev,1],[0,-n(d)])),u=v(()=>(0,hp.interpolate)(n(a),[ev,1],[0,Ob])),m=v(()=>(0,hp.interpolate)(n(a),[ev,1],[0,n(o)+Nb]));return{progressBarY:()=>n(s),controlsY:()=>n(u),calculatedHeight:()=>n(m),onPointerDown:_=>{var S;O(l,((S=e())==null?void 0:S.getBoundingClientRect().bottom)||0,!0),O(r,!0)},onPointerMove:_=>{if(!n(r))return;let S=Math.max(Math.min(_.clientY-n(l),0),-n(d));O(a,Math.abs(S/n(d)),!0)},onPointerUp:()=>{O(r,!1),O(a,n(a)>=Sw?1:0,!0),n(a)===1&&t()},closePreviewTrack:()=>{O(a,0)}}};var Ew=t=>t;function bs(t,{delay:e=0,duration:i=400,easing:o=Ew}={}){let r=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:a=>`opacity: ${a*r}`}}var Pw=M('<span class="root s-2b"> </span>'),kw={hash:"s-2b",code:".root.s-2b{box-shadow:0 8px 24px 0 rgba(0,0,0,.08);box-shadow:0 0 2px 0 rgba(0,0,0,.08);color:#fff;font-size:13px;font-weight:500;line-height:16px}"};function tv(t,e){q(t,kw);var i=Pw(),o=T(i,!0);w(i),D(()=>me(o,e.time)),b(t,i)}var Aw=M('<div class="tooltip-wrapper s-j"><div><!></div></div>'),Lw={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,Lw);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 m(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 p=v(()=>m(r()));var f=Aw(),$=T(f);let y;var _=T($);ai(_,()=>{var S;return(S=e.children)!=null?S:ht}),w($),Xe($,S=>O(u,S),()=>n(u)),w(f),Xe(f,S=>O(s,S),()=>n(s)),D(S=>{Qe(f,`transform: translate(${n(p)}px, ${a()}px);`),y=se($,1,"tooltip s-j",null,y,S),Qe($,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),b(t,f)}var Bb=t=>Math.abs(t)/90%4===1;var Mw=M('<div class="preview s-i"></div>'),Vw=M('<div class="time s-i"> </div>'),Rw=M('<div><!> <div class="episode s-i"><!></div> <!></div>'),Nw={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){B(e,!0),q(t,Nw);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,()=>[]),m=g(e,"progress",3,0),p=g(e,"duration",3,0),f=g(e,"isInteractive",3,!1),$=ve(),y=$.ui.rotateAlpha,_=$.ui.playerSize,S=K(0),C=K(0),I=K(""),N=K(0),P=K(0),E=K(0),A=K(0),Q=v(()=>ap(m(),p(),u())),H=v(()=>id(r())),z=v(()=>Bb(r())),Y=v(re),le=v(()=>(n(z)?1:-1)*(n(S)/2-n(C)/2)),X=v(()=>n(le)*-1);Oe(()=>{(j=>{O(S,j.width,!0),O(C,j.height,!0)})(we())}),Oe(()=>{(j=>{O(I,j.imgSrc,!0),O(N,j.imgWidth,!0),O(P,j.imgHeight,!0),O(E,j.imgOffsetX,!0),O(A,j.imgOffsetY,!0)})(ue(m()))});function re(){var Be;let j=s()?l.MOBILE:l.DESKTOP,{isVertical:ie}=Z(),De=30;return(Be=n(Q))!=null&&Be.text&&(De+=16),(ie||n(H))&&(De+=18,De+=50),Math.min(Math.max(a().height-De,0),j)}function Z(){let j=e.previewThumbsData.frameWidth,ie=e.previewThumbsData.frameHeight,De=ie>j;return{width:j,height:ie,isHorizontal:!De,isVertical:De}}function we(){let{height:j,isHorizontal:ie,isVertical:De,width:Be}=Z();return ie&&(j=j/Be*n(Y),Be=n(Y)),De&&(Be=Be/j*n(Y),j=n(Y)),{width:Be,height:j}}function ue(j){let ie;e.previewThumbsData.isUV?ie=Math.floor(p()*j/e.previewThumbsData.frequency):ie=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*j)));let De=Math.floor(ie/e.previewThumbsData.countPerImage),Be=Math.floor(ie%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),ot=ie%e.previewThumbsData.countPerRow,U=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&De===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(U=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&U++);let Ae=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&De===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(Ae=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Pe=n(S)*Ae,Ue=n(C)*U,Je=-ot*n(S),ye=-Be*n(C);return{imgSrc:e.previewThumbsData.links[De],imgWidth:Pe,imgHeight:Ue,imgOffsetX:Je,imgOffsetY:ye}}var ne=Rw();let _e;var xe=T(ne);{var J=j=>{var ie=Mw();D(()=>Qe(ie,`width: ${n(S)}px; height: ${n(C)}px; background-image: url(${n(I)}); background-size: ${n(N)}px ${n(P)}px; background-position: ${n(E)}px ${n(A)}px;
|
|
61
61
|
transform: rotate(${r()}deg) ${n(H)?`translate(${n(le)}px, ${n(X)}px)`:""};
|
|
62
|
-
`)),b(j,ie)};R(xe,j=>{n(I)&&j(J)})}var Ne=L(xe,2),pe=T(Ne);{var A=j=>{var ie=Le(),De=de(ie);{var Be=U=>{var ke=vs();D(Pe=>me(ke,Pe),[()=>G("tooltip_episode_unfinished")]),b(U,ke)},ot=U=>{var ke=vs();D(()=>me(ke,n(Q).text||"")),b(U,ke)};R(De,U=>{f()&&n(Q).completed===!1?U(Be):U(ot,!1)})}b(j,ie)};R(pe,j=>{n(Q)&&j(A)})}w(Ne);var We=L(Ne,2);{var Te=j=>{var ie=Vw(),De=T(ie,!0);w(ie),D(()=>me(De,d())),b(j,ie)};R(We,j=>{f()||j(Te)})}w(ne),D(j=>{_e=se(ne,1,"timeline-preview s-j",null,_e,j),Qe(ne,`width: ${n(H)?n(C):n(S)}px;`)},[()=>({mobile:s()})]),b(t,ne),F(),o()}var Ow=M('<span class="time s-f"> </span>'),Dw=M("<!> <!>",1),Bw={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 fe,Me,xt,Lt,pt;B(e,!0),q(t,Bw);let[i,o]=Re(),r=()=>x(X,"$interactiveEpisodes$",i),a=()=>x(k,"$duration$",i),l=()=>x(E,"$position$",i),d=()=>x(we,"$isInteractiveExpectation$",i),s=()=>x(Z,"$isInteractiveTime$",i),u=()=>x(xe,"$previewTrackActive",i),m=()=>x(Q,"$isLive$",i),p=()=>x(_e,"$disabledControls$",i),f=()=>x(z,"$isMobile",i),$=()=>x(H,"$isActiveLive$",i),y=()=>x(P,"$bufferedProgress$",i),_=g(e,"showTimeline",3,!1),S=g(e,"withEpisodes",3,!0),C=g(e,"ref",15,void 0),I=ve(),N=Nt(),P=I.state.bufferedProgress$,E=I.state.positionWithScrubbing$,k=I.state.duration$,Q=I.state.isLive$,H=I.state.isActiveLive$,z=I.ui.isMobile,Y=N.features.episodes&&S()?I.actions.internal.getVideoEpisodes():void 0,le=I.actions.internal.getPreviewThumbsData(),X=I.state.interactiveEpisodes$,re=I.state.isInteractive,Z=I.state.isInteractiveTime$,we=I.state.isInteractiveExpectation$,ue=I.actions.internal.correctSeekTimeToInteractive,ne=(fe=I.callbacks)==null?void 0:fe.onDisabledTimelineClick,_e=I.ui.controls.disabledControls$,xe=I.ui.previewTrackActive,J=(xt=(Me=I.callbacks)==null?void 0:Me.uiInfo)==null?void 0:xt.onTimelineMouseEnter,Ne=(pt=(Lt=I.callbacks)==null?void 0:Lt.uiInfo)==null?void 0:pt.onTimelineMouseLeave,pe=I.ui.t,A=N.features.interactiveResponsiveUi,We=v(()=>re?r():Y),Te=v(()=>tn(a())),j=v(()=>tn(l())),ie=v(()=>l()/a()),De=v(()=>d()||s()),Be=K(!1),ot=K(""),U=K(0),ke=K(0),Pe=K(0),Ue=v(()=>({containerWidth:n(ke),translateXPx:n(U),translateYPx:re&&le?-36:-16,active:n(Be)&&_()&&!n(De)&&!A&&!u(),pointer:!N.features.timelinePreview||!le||m()})),Je=pe("aria_timeline"),ye=v(()=>pe("aria_timeline_value",{position:n(j),duration:n(Te)}));function Ae(ce){return!ue||!re?ce:ue(ce*a())/a()}function Fe(ce,ze){var Ye;(Ye=e.onSliderPointerDown)==null||Ye.call(e,ze),I.actions.internal.startScrubbing(Ae(ce))}function Ft(ce){s()||I.actions.internal.progressScrubbing(Ae(ce))}function mt(ce){var ze;I.actions.internal.completeScrubbing(Ae(ce)),O(Be,!1),(ze=e.onSliderPointerUp)==null||ze.call(e)}function Ht(ce,ze,Ye){var dt;(dt=e.onSliderPointerEnter)==null||dt.call(e,ce),oi(ce,ze,Ye),O(Be,!0)}function lt(ce,ze,Ye,dt){var Ut;(Ut=e.onSliderMove)==null||Ut.call(e,dt,ce),oi(ce,ze,Ye),O(Be,!0)}function Ct(){var ce;O(Be,!1),(ce=e.onSliderLeave)==null||ce.call(e)}function oi(ce,ze,Ye){O(Pe,Ae(ce),!0),O(U,ze,!0),Ye&&O(ke,Ye,!0),O(ot,Ot(ce),!0)}function Ot(ce){let ze=tn((m()?1-ce:ce)*a());return m()?`-${ze}`:ze}let $e=v(()=>p().has("TIMELINE"));var be=Dw(),ee=de(be);iv(ee,As(()=>n(Ue),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(ce,ze)=>{var Ye=Le(),dt=de(Ye);{var Ut=ri=>{ov(ri,{get time(){return n(ot)},get isMobile(){return f()},get videoEpisodes(){return n(We)},get previewThumbsData(){return le},get progress(){return n(Pe)},get duration(){return a()},get isInteractive(){return re}})},zt=ri=>{var wi=Ow(),Zi=T(wi,!0);w(wi),D(()=>me(Zi,n(ot))),b(ri,wi)};R(dt,ri=>{N.features.timelinePreview&&le&&!m()?ri(Ut):ri(zt,!1)})}b(ce,Ye)},$$slots:{default:!0}}));var nt=L(ee,2);Ga(nt,{className:"timeline-slider",get isActiveLive(){return $()},get isMobile(){return f()},get ariaLabel(){return Je},ariaValueMin:0,get ariaValueMax(){return a()},get ariaValueNow(){return l()},get ariaValueText(){return n(ye)},get loadedProgress(){return y()},get filledProgress(){return n(ie)},get handleProgress(){return n(ie)},get videoEpisodes(){return n(We)},onPointerDown:Fe,onHandleMove:Ft,onPointerMove:lt,onPointerUp:mt,onPointerEnter:Ht,onPointerLeave:Ct,get onMouseEnter(){return J},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:mt,get ref(){return C()},set ref(ce){C(ce)}}),b(t,be),F(),o()}var Fw={hash:"s-g",code:".timeline-ads-slider{--slider-bg:var(--timeline-slider-bg);--slider-filled-bg:var(--timeline-slider-filled-bg);--slider-handle-bg:var(--timeline-slider-handle-bg);--slider-loaded-bg:var(--timeline-slider-loaded-bg)}"};function Ac(t,e){B(e,!0),q(t,Fw);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,m=v(()=>tn(l())),p=v(()=>tn(a())),f=v(()=>a()/l()),$=v(()=>u("aria_timeline_value",{position:n(p),duration:n(m)})),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($)},get filledProgress(){return n(f)},hideHandel:!0,get squareBorders(){return r()}}),F(),o()}var Hw=M("<div><!></div>"),Uw=M("<div></div>"),zw={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 Za(t,e){B(e,!0),q(t,zw);let[i,o]=Re(),r=()=>x(S,"$isLive$",i),a=()=>x(N,"$isMobile",i),l=()=>x(P,"$disabled",i),d=()=>x(I,"$adPosition",i),s=()=>x(C,"$adDuration",i),u=g(e,"isAds",3,!1),m=g(e,"isHidden",3,!1),p=g(e,"timelineNotAvailable",3,!1),f=g(e,"needPadding",3,!0),$=g(e,"ref",15,void 0),y=ve(),_=Nt(),S=y.state.isLive$,C=y.ads.duration,I=y.ads.position,N=y.ui.isMobile,P=ae(!1),E=v(()=>!p()&&(!r()||r()&&e.canRewindLive&&e.isRewindableLive||u()));var k=Le(),Q=de(k);{var H=Y=>{var le=Hw();let X;var re=T(le);{var Z=ue=>{Ac(ue,{get position(){return d()},get duration(){return s()}})},we=ue=>{nv(ue,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return n(E)},get withEpisodes(){return e.withEpisodes},get onSliderMove(){return e.onSliderMove},get onSliderPointerDown(){return e.onSliderPointerDown},get onSliderPointerUp(){return e.onSliderPointerUp},get onSliderLeave(){return e.onSliderLeave},get onSliderPointerEnter(){return e.onSliderPointerEnter},get ref(){return $()},set ref(ne){$(ne)}})};R(re,ue=>{u()?ue(Z):ue(we,!1)})}w(le),Ps(le,()=>Ql(m()&&_.features.usePerformanceFix,P,_.disableInvisibleComponentsTimeout)),D(ue=>X=se(le,1,"timeline s-d",null,X,ue),[()=>({withoutPadding:!f(),mobile:a(),"out-of-flow":l()})]),b(Y,le)},z=Y=>{var le=Uw();let X;D(re=>X=se(le,1,"timeline-stub s-d",null,X,re),[()=>({mobile:a()})]),b(Y,le)};R(Q,Y=>{n(E)?Y(H):Y(z,!1)})}b(t,k),F(),o()}var Fb=require("@vkontakte/videoplayer-shared/es2015");var Ww=(t,e,i,o,r,a,l)=>{O(e,!0),O(i,t.clientX,!0),O(o,n(r),!0),a(l())},Kw=M("<div></div>"),qw=M('<div><div class="track s-2c"></div></div>'),Qw={hash:"s-2c",code:'.root.s-2c{display:flex;height:var(--preview-track-frame-height-horizontal);overflow:hidden;position:relative;width:100%}.root.is-vertical-video.s-2c,.root.vertically-rotated.s-2c{height:var(--preview-track-frame-height-vertical)}.root.s-2c:after{background-color:#fff;box-shadow:0 2px 2px 0 rgba(0,0,0,.12);box-shadow:0 0 2px 0 rgba(0,0,0,.06);content:"";height:100%;margin:0 auto;pointer-events:none;width:3px;z-index:1}.track.s-2c{bottom:0;display:flex;left:0;padding:0 50%;top:0}.frame.s-2c,.track.s-2c{position:absolute}.frame.s-2c{background-position-x:calc(var(--column-index)*-1*var(--frame-width));background-position-y:calc(var(--frame-height)*-1*var(--row-index));background-size:calc(var(--frame-width)*var(--column-numbers)) calc(var(--frame-height)*var(--row-numbers));flex-shrink:0;height:var(--frame-height);pointer-events:none;transform-origin:center;width:var(--frame-width)}.vertically-rotated.s-2c .frame:where(.s-2c){transform-origin:0 0}.rotate-1.s-2c{transform:rotate(-90deg) translateX(-100%)}.rotate-2.s-2c{transform:rotate(-180deg)}.rotate-3.s-2c{transform:rotate(-270deg) translateY(-100%)}'};function sv(t,e){B(e,!0),q(t,Qw);let[i,o]=Re(),r=()=>x(N,"$rotateAlpha",i),a=()=>x(_,"$position$",i),l=()=>x(y,"$duration$",i),d=ve(),{countPerImage:s=0,countPerRow:u=0,countTotal:m=0,links:p=[],frameHeight:f=0,frameWidth:$=0}=d.actions.internal.getPreviewThumbsData()||{},{duration$:y,positionWithScrubbing$:_}=d.state,{startScrubbing:S,progressScrubbing:C,completeScrubbing:I}=d.actions.internal,N=d.ui.rotateAlpha,P=K(void 0),E=K(!1),k=K(0),Q=K(0),H=K(0),z=K(0),Y=v(()=>f<=$),le=v(()=>id(r())),X=v(()=>n(Y)?!n(le):n(le)),re=114,Z=65,we=3,ue=v(()=>n(X)?re:Z),ne=v(()=>n(Y)?re:Z),_e=v(()=>n(Y)?"var(--preview-track-frame-height-horizontal)":"var(--preview-track-frame-height-vertical)"),xe=v(()=>m*n(ue)),J=K(0);Oe(()=>{O(z,Math.ceil(-n(H)/n(ue))-1),O(H,-n(xe)*a()/l())});let Ne=()=>{I(pe(),!0)},pe=()=>l()*-n(H)/n(xe)/l(),A=!1,We=ye=>{if(!n(E))return!1;let Ae=ye.clientX-n(k);O(H,n(Q)+Ae),O(H,Math.max(Math.min(n(H),0),-n(xe)),!0),Math.abs(Ae)>1&&(A=!0),C(pe())},Te=ye=>{n(E)&&(O(E,!1),!A&&ye&&O(H,-(ye.offsetX-n(J)/2)),A=!1,Ne())},j=()=>{n(E)&&Te()},ie=v(()=>s/u),De=(ye,Ae)=>{if(ye!==p.length-1)return u;let Fe=0,Ft=Ae*u;for(let mt=1;mt<=u;mt++)ye*s+Fe+Ft<m&&Fe++;return Fe},Be=v(()=>Math.floor(n(z)/s)),ot=v(()=>(0,Fb.getRangeAroundIndex)(3,n(Be),p.length-1)),U=(ye,Ae,Fe)=>{let Ft=s*n(ue);return ye*Ft+Ae*n(ue)*u+n(J)/2-we/2+Fe*n(ue)},ke=v(()=>[`--row-numbers: ${n(ie)}`,`--column-numbers: ${u}`,`--frame-width: ${n(ne)}px`,`--frame-height: ${n(_e)}`].join(";"));var Pe=qw();let Ue;var Je=T(Pe);Je.__pointerdown=[Ww,E,k,Q,H,S,pe],Je.__pointermove=We,Je.__pointerup=Te,Ti(Je,20,()=>n(ot),ye=>ye,(ye,Ae)=>{var Fe=Le(),Ft=de(Fe);Ti(Ft,16,()=>Array.from({length:n(ie)},(mt,Ht)=>Ht),mt=>mt,(mt,Ht)=>{var lt=Le(),Ct=de(lt);Ti(Ct,16,()=>Array.from({length:De(Ae,Ht)},(oi,Ot)=>Ot),oi=>oi,(oi,Ot)=>{var $e=Kw();D((be,ee)=>{Qe($e,be),se($e,1,ee,"s-2c")},[()=>`--row-index: ${Ht}; --column-index: ${Ot}; left: ${U(Ae,Ht,Ot)}px; background-image: url(${p[Ae]});`,()=>`frame rotate-${Math.abs(r())/90%4}`]),b(oi,$e)}),b(mt,lt)}),b(ye,Fe)}),w(Je),w(Pe),Xe(Pe,ye=>O(P,ye),()=>n(P)),D(ye=>{Ue=se(Pe,1,"root s-2c",null,Ue,ye),Qe(Pe,n(ke)),Qe(Je,`transform: translateX(${n(H)}px); width: ${n(xe)}px;`)},[()=>({"is-vertical-video":!n(Y),"vertically-rotated":n(le)})]),_t("mouseleave",Je,j),kn(Pe,"clientWidth",ye=>O(J,ye)),b(t,Pe),F(),o()}it(["pointerdown","pointermove","pointerup"]);var Gw=M('<div class="notification s-2d"><span class="description s-2d"> </span></div>'),Yw={hash:"s-2d",code:".notification.s-2d{background:var(--notification-bg);border-radius:var(--notification-radius);padding:9px 14px 10px 12px}.description.s-2d{font-size:14px;line-height:18px}"};function av(t,e){B(e,!1),q(t,Yw);let i=340,{ui:{t:o}}=ve();To();var r=Gw(),a=T(r),l=T(a,!0);w(a),w(r),D(d=>me(l,d),[()=>o("preview_track_close_tooltip")],Cn),Zr(3,r,()=>bs,()=>({duration:i})),b(t,r),F()}var Hb=require("@vkontakte/videoplayer-shared/es2015"),jw=M('<div class="preview-track-close tooltip s-2a"><!></div>'),Xw=M('<div class="preview-track-control s-2a"><!> <div class="preview-track-close s-2a"><!></div> <!></div>'),Zw=M('<div class="wrapper-preview-track s-2a"><!></div>'),Jw=M('<div class="enriched-timeline s-2a"><!> <!> <!></div>'),eS={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){B(e,!0),q(t,eS);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($,"$isRewindableLive$",i),u=g(e,"timelineRef",15,void 0),m=ve(),p=200,{positionWithScrubbing$:f,isRewindableLive$:$,duration$:y}=m.state,{playerSize:_,previewTrackActive:S}=m.ui,{countPerImage:C=0,links:I=[],frequency:N=0}=m.actions.internal.getPreviewThumbsData()||{},P=v(()=>r().width>100),E=K(!q_()),k=()=>{n(E)&&(K_(),O(E,!1))},Q=ue=>{let ne=Math.floor(a()*ue/N),_e=Math.floor(ne/C),xe=(0,Hb.getRangeAroundIndex)(3,_e,I.length-1);for(let J of xe){let Ne=new Image;Ne.src=I[J]}},H=(ue,ne)=>{Q(ne),!l()&&e.onTimelineMove(ue)};var z=Jw(),Y=T(z);{var le=ue=>{var ne=Xw(),_e=T(ne);let xe=v(()=>tn(d()));tv(_e,{get time(){return n(xe)}});var J=L(_e,2),Ne=T(J);Ls(Ne,{onClick:()=>m.actions.internal.closePreviewTrack()}),w(J);var pe=L(J,2);{var A=We=>{var Te=jw(),j=T(Te);av(j,{}),w(Te),b(We,Te)};R(pe,We=>{n(E)&&We(A)})}w(ne),_t("mouseleave",J,k),Zr(3,ne,()=>bs,()=>({duration:p})),b(ue,ne)};R(Y,ue=>{l()&&ue(le)})}var X=L(Y,2);let re=v(()=>!n(P));Za(X,{get isHidden(){return n(re)},get isAds(){return e.isAds},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return s()},onSliderMove:H,get onSliderPointerDown(){return e.onTimelinePointerDown},get onSliderPointerUp(){return e.onTimelinePointerUp},get onSliderLeave(){return e.onTimelinePointerLeave},onSliderPointerEnter:Q,get ref(){return u()},set ref(ue){u(ue)}});var Z=L(X,2);{var we=ue=>{var ne=Zw(),_e=T(ne);sv(_e,{}),w(ne),D(()=>Qe(ne,`height: ${e.animatedPreviewTrackHeight}px;`)),b(ue,ne)};R(Z,ue=>{e.previewTrackAvailable&&ue(we)})}w(z),D(()=>Qe(z,`transform: translateY(${e.animatedOffsetY}px);`)),b(t,z),F(),o()}var iS=M('<div><!> <div class="controls s-1f" data-testid="player_controls"><div class="controls-left s-1f"><!> <!> <!></div> <div class="controls-right s-1f"></div></div></div> <!>',1),oS={hash:"s-1f",code:'.wrapper-bottom.s-1f{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-1f:before{background:var(--controls-gradient);content:"";height:var(--controls-gradient-height);position:absolute;width:100%}.wrapper-bottom.s-1f>:where(.s-1f){pointer-events:auto}.controls.s-1f{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-1f,.controls-right.s-1f{align-content:center;display:flex}.controls-left.s-1f{flex-grow:1;min-width:0;overflow:hidden}.controls-left.s-1f >:not(:first-child),.controls-right.s-1f >*{margin-left:var(--controls-desktop-item-margin-left)}.controls-hidden.s-1f{transform:translateY(100%);visibility:visible}.wrapper-bottom.no-smooth.s-1f{transition:none}'};function cv(t,e){var va,Pr;B(e,!0),q(t,oS);let[i,o]=Re(),r=()=>x(Io,"$disabledControls$",i),a=()=>x(st,"$adPlaybackState",i),l=()=>x(zt,"$playbackState$",i),d=()=>x(xo,"$currentSubtitle$",i),s=()=>x(Zi,"$isEnded$",i),u=()=>x(on,"$currentGridType$",i),m=()=>x(Dt,"$isLive$",i),p=()=>x(Ke,"$chromecastState$",i),f=()=>x(bt,"$isPictureInPictureActive",i),$=()=>x(Jt,"$pictureInPictureType$",i),y=()=>x(Ii,"$availableSubtitlesList$",i),_=()=>x(Wt,"$contextMenuOpenedByKeyboard$",i),S=()=>x(It,"$showContextMenuBtn$",i),C=()=>x(bi,"$isRewindableLive$",i),I=()=>x(fi,"$isActiveLive$",i),N=()=>x(ns,"$graphIsOpened$",i),P=()=>x(bn,"$contextMenuVisible$",i),E=()=>x(Ui,"$isFullscreen",i),k=()=>x(Wi,"$autoplayNextEnabled",i),Q=()=>x(n(to),"$prevButton",i),H=()=>x(n(Vi),"$replayButton",i),z=()=>x(n(xn),"$playButton",i),Y=()=>x(n(So),"$nextButton",i),le=()=>x(n(qn),"$playPrevChapterButton",i),X=()=>x(n(mi),"$seekToInteractiveButton",i),re=()=>x(n(zr),"$interactiveGraphButton",i),Z=()=>x(n(dr),"$liveButton",i),we=()=>x(n(rs),"$time",i),ue=()=>x(n(ss),"$episodes",i),ne=()=>x(n(Wr),"$vkLogo",i),_e=()=>x(n(Lo),"$volume",i),xe=()=>x(n(ln),"$subtitles",i),J=()=>x(n(fo),"$settings",i),Ne=()=>x(n(Ir),"$context",i),pe=()=>x(n(Wo),"$fullscreen",i),A=()=>x(n(as),"$chromecast",i),We=()=>x(Eo,"$additionalDesktopControlPanelRightButtons$",i),Te=()=>x(zi,"$playerSize",i),j=()=>x(nn,"$isInteractiveTime$",i),ie=()=>x(ii,"$previewTrackActive",i),De=()=>x(Ci,"$settingsMenuVisible",i),Be=()=>x(mo,"$settingButtonRef$",i),ot=()=>x(W,"$startedByKeyboard$",i),U=()=>x(ri,"$isAudioAvailable$",i),ke=()=>x(be,"$fakeIsPlaying$",i),Pe=()=>x($s,"$seekToInteractiveDisabledTooltip$",i),Ue=()=>x(St,"$isPreviewTrackHorizontallyAligned$",i),Je=()=>x(he,"$previewTrackAvailable",i),ye=()=>x(go,"$previewTrackDragInProgress",i),Ae=()=>x(Xt,"$adPosition",i),Fe=()=>x(Ut,"$position$",i),Ft=()=>x(Tt,"$adDuration",i),mt=()=>x(dt,"$duration$",i),Ht=g(e,"playerControlsWrapperRef",15,void 0),lt=g(e,"playerControlsRef",15,void 0),Ct=g(e,"isAds",3,!1),oi=g(e,"logoTargetUrl",3,""),Ot=g(e,"isOneVideoPlaylist",3,!1),$e=g(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:be}=Co(),ee=ve(),nt=Co(),fe=Nt(),Me=ee.actions.internal.toggleMuted,xt=ee.actions.internal.togglePlay,Lt=ee.actions.internal.pause,pt=ee.actions.internal.toggleSubtitle,ce=ee.actions.internal.checkFullscreenSupport,ze=(va=ee.callbacks)==null?void 0:va.onAudioDoesNotExistHint,Ye=(Pr=ee.callbacks)==null?void 0:Pr.onAudioDisabledHint,dt=ee.state.duration$,Ut=ee.state.positionWithScrubbing$,zt=ee.state.playbackState$,ri=ee.state.isAudioAvailable$,wi=ee.state.isAudioDisabled,Zi=ee.state.isEnded$,Dt=ee.state.isLive$,fi=ee.state.isActiveLive$,bi=ee.state.isRewindableLive$,{isActive$:bt,type$:Jt}=nt.pictureInPicture$,Ci=ee.ui.settingsMenu.visible$,Ji=ee.ui.settingsMenu.openedByBtnKeyboard$,ti=ee.ui.controls,At=ee.actions.internal.getVideoEpisodes(),Ke=ee.state.chromecastState$,Ii=ee.state.availableSubtitlesList$,xo=ee.state.currentSubtitle$,Io=ti.disabledControls$,bn=ee.ui.contextMenu.visible$,It=ee.ui.contextMenu.showContextMenuBtn$,Wt=ee.ui.contextMenu.openedByBtnKeyboard$,W=ee.ui.startedByKeyboard$,Mt=ee.ui.controlBlocks,di=ee.ui.previewTrackNotificationVisible,ct=ee.ui.t,Tt=ee.ads.duration,Xt=ee.ads.position,st=ee.ads.playbackState,Ui=ee.ui.isFullscreen,zi=ee.ui.playerSize,on=ee.ui.currentGridType$,Eo=ee.ui.additionalDesktopControlPanelRightButtons$,Wi=ee.ui.autoplayNextEnabled$,eo=ee.actions.internal.getVideoElement,Nr=ee.actions.internal.replayInteractive,wo=ee.actions.internal.prevVideoClick,lo=ee.actions.internal.nextVideoClick,ki=ee.state.isInteractive,nn=ee.state.isInteractiveTime$,rn=ee.state.showInteractiveGraph,Nn=ee.state.showSeekToInteractive,ir=ee.state.showPlayPrevChapter,Or=ee.state.showInteractiveTimeIndicator,os=ee.state.playPrevChapterDisabledTooltip,$s=nt.seekToInteractiveDisabledTooltip$,ns=nt.graphIsOpened$,or=fe.features.interactiveResponsiveUi,xr=v(()=>r().has("EPISODE_BUTTON")),$n=v(()=>r().has("GRAPH_BUTTON")),On=v(()=>r().has("SEEK_TO_INTERACTIVE_BUTTON")),Uo=v(()=>r().has("PLAY_BUTTON")),Dn=v(()=>r().has("REPLAY_BUTTON")),nr=v(()=>r().has("PLAY_PREV_CHAPTER_BUTTON")),wr=()=>ee.actions.internal.toggleChromecast(),Sr=v(()=>Ct()?a()==="playing":l()===Ja.PlaybackState.PLAYING),Dr=v(()=>d().value!=="off"),co=v(()=>s()&&!Ct()||ki),Br=v(()=>or?n(co)&&ro(u(),"m"):n(co)),Bn=v(()=>!s()||ki||Ct()),Fn=v(()=>ro(u(),"m")),uo=v(()=>e.showNextPrevButtons&&ro(u(),"m")&&!Ct()&&e.nextButtonActive),Fr=v(()=>e.showNextPrevButtons&&ro(u(),"m")&&!Ct()&&e.prevButtonActive),Hn=v(()=>!Ct()&&!!m()),vt=v(()=>p()!==Ja.ChromecastState.NOT_AVAILABLE&&!(f()&&$()===1)&&ro(u(),"m")&&!ki),ui=v(()=>e.showAutoplayNext&&!Ot()&&ro(u(),"s")),Tr=v(()=>y().length>0&&ro(u(),"m")),rr=v(()=>_()||S()),sr=v(()=>ro(u(),"s")&&!Ct()),sn=v(()=>!e.logoHidden&&!Ct()),Cr=v(()=>fe.features.fullscreen&&ce()&&(e.logoHidden||ro(u(),or?"xs":"s"))&&!(f()&&$()===1)&&(ki?$e():!0)),an=v(()=>(!m()||Ct())&&!(fe.features.interactiveHideTime&&ki)),yn=v(()=>rn&&ro(u(),"m")),Un=v(()=>or?Nn&&ro(u(),"s"):Nn),zn=v(()=>or?ir&&ro(u(),"s"):ir),zo=v(()=>!Ct()&&!m()&&!!(At!=null&&At.length)&&n(Fn)&&!n(xr)),Po=v(()=>!C()||!!I()),ar=v(()=>N()?ct("tooltip_interactive_graph_on"):ct("tooltip_interactive_graph_off")),Ao=v(()=>P()?ct("tooltip_context_menu_close"):ct("tooltip_context_menu_open")),Ki=(at,ft)=>at?ft&&ft===Ja.PlaybackState.PAUSED?ct("tooltip_play"):"":ct("tooltip_live"),Wn=v(()=>Ki(n(Po),l())),lr=v(()=>fe.logoType==="vk_video"?ct("tooltip_vk_video_logo"):ct("tooltip_vk_logo")),Hr=v(()=>n(Dr)?ct("tooltip_subtitles_on"):ct("tooltip_subtitles_off")),Kn=v(()=>E()?ct("tooltip_fullscreen_on"):ct("tooltip_fullscreen_off")),ko=v(()=>p()===Ja.ChromecastState.CONNECTED?ct("tooltip_chromecast_on"):ct("tooltip_chromecast_off")),Ur=v(()=>k()?ct("tooltip_autoplay_on"):ct("tooltip_autoplay_off")),wt=K(0),Et=ci({}),po=ci({}),to=v(()=>ti.prevButton),Vi=v(()=>ti.replayButton),xn=v(()=>ti.playButton),So=v(()=>ti.nextButton),qn=v(()=>ti.playPrevChapterButton),mi=v(()=>ti.seekToInteractiveButton),zr=v(()=>ti.interactiveGraphButton),dr=v(()=>ti.liveButton),rs=v(()=>ti.time),ss=v(()=>ti.episodes),Wr=v(()=>ti.vkLogo),Lo=v(()=>ti.volume),ln=v(()=>ti.subtitles),fo=v(()=>ti.settings),Ir=v(()=>ti.context),Wo=v(()=>ti.fullscreen),as=v(()=>ti.chromecast),qe=v(()=>({prevButton:Q()?Q().right-Q().left:0,replayButton:H()?H().right-H().left:0,playButton:z()?z().right-z().left:0,nextButton:Y()?Y().right-Y().left:0,playPrevChapterButton:le()?le().right-le().left:0,seekToInteractiveButton:X()?X().right-X().left:0,interactiveGraphButton:re()?re().right-re().left:0,liveButton:Z()?Z().right-Z().left:0,time:we()?we().right-we().left:0,episodes:ue()?ue().right-ue().left:0,vkLogo:ne()?ne().right-ne().left:0,volume:_e()?_e().right-_e().left:0,subtitles:xe()?xe().right-xe().left:0,settings:J()?J().right-J().left:0,context:Ne()?Ne().right-Ne().left:0,fullscreen:pe()?pe().right-pe().left:0,chromecast:A()?A().right-A().left:0,additionalButtons:We().length?We().reduce(at=>[...at,40],[]):[]})),Vt=K(0);Oe(()=>{(!n(Vt)||n(Vt)<n(qe).time)&&Pt(()=>O(Vt,n(qe).time,!0))});let yi=K(!1);Oe(()=>{let at=0;n(zo)&&(ro(u(),"xl")?at=n(qe).time:at=60);let ft=n(qe).prevButton+n(qe).playButton+n(qe).nextButton+n(qe).seekToInteractiveButton+n(qe).interactiveGraphButton+n(qe).liveButton+n(Vt)+at;O(yi,n(an)&&n(wt)>=ft,!0)});let Mo=v(()=>n(yi)&&ro(u(),"m")),Vo=(0,dv.debounceFn)(nd,260),Ko=(0,dv.debounceFn)(gp,260);Oe(()=>{Te(),j(),ie(),Vo(eo(),ti,Et,e.showControls),Ko(eo(),Mt,po,e.showControls)}),Oe(()=>{po.bottom=Ht()});let mo=ae();Oe(()=>{De(),Be()&&Pt(()=>Yl(Be(),De(),Ji))});let io;Oe(()=>{ot(),Pt(()=>mp(W,ot(),io))});function wn(){sa({isAudioDisabled:wi,isAudioAvailable:U(),isAds:Ct(),audioIsNotExistHintCallback:ze,audioDisabledHintCallback:Ye})&&Me()}let Sn=ki?Nr:xt,vo=v(()=>ke()!==null),Ro=v(()=>n(vo)?ke():n(Sr)),Qn=v(()=>n(Ro)?ct("tooltip_pause"):ct("tooltip_play")),cr=ct("tooltip_episodes"),ur=v(()=>{var at,ft,qi,Go;return n(Fr)?{id:"prevButton",type:"desktop-control-panel-left",weight:Rs.prevButton,buttonComponent:ja,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:wo.bind(null,!0)},tooltipEnabled:!((ft=(at=ee.callbacks)==null?void 0:at.uiInfo)!=null&&ft.onPrevButtonMouseEnter)&&!((Go=(qi=ee.callbacks)==null?void 0:qi.uiInfo)!=null&&Go.onPrevButtonMouseLeave),mouseEnter:()=>{var Qi,xi,Ni;(Ni=(xi=(Qi=ee.callbacks)==null?void 0:Qi.uiInfo)==null?void 0:xi.onPrevButtonMouseEnter)==null||Ni.call(xi,er(eo(),Et,"prevButton",e.showControls))},mouseLeave:()=>{var Qi,xi,Ni;(Ni=(xi=(Qi=ee.callbacks)==null?void 0:Qi.uiInfo)==null?void 0:xi.onPrevButtonMouseLeave)==null||Ni.call(xi,er(eo(),Et,"prevButton",e.showControls))},tooltipText:ct("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),Gn=v(()=>n(Br)?{id:"replayButton",type:"desktop-control-panel-left",weight:Rs.replayButton,buttonComponent:rd,buttonComponentProps:{disabled:n(Dn),click:Sn},tooltipText:ct("tooltip_restart"),disabled:n(Dn)}:void 0),ys=v(()=>n(Bn)?{id:"playButton",type:"desktop-control-panel-left",weight:Rs.playButton,buttonComponent:sd,buttonComponentProps:{disabled:n(Uo),isPlaying:n(Sr),click:xt},tooltipText:n(Qn),disabled:n(Uo)}:void 0),ls=v(()=>{var at,ft,qi,Go;return n(uo)?{id:"nextButton",type:"desktop-control-panel-left",weight:Rs.nextButton,buttonComponent:ja,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:lo.bind(null,!0)},tooltipEnabled:!((ft=(at=ee.callbacks)==null?void 0:at.uiInfo)!=null&&ft.onNextButtonMouseEnter)&&!((Go=(qi=ee.callbacks)==null?void 0:qi.uiInfo)!=null&&Go.onNextButtonMouseLeave),mouseEnter:()=>{var Qi,xi,Ni;(Ni=(xi=(Qi=ee.callbacks)==null?void 0:Qi.uiInfo)==null?void 0:xi.onNextButtonMouseEnter)==null||Ni.call(xi,er(eo(),Et,"nextButton",e.showControls))},mouseLeave:()=>{var Qi,xi,Ni;(Ni=(xi=(Qi=ee.callbacks)==null?void 0:Qi.uiInfo)==null?void 0:xi.onNextButtonMouseLeave)==null||Ni.call(xi,er(eo(),Et,"nextButton",e.showControls))},tooltipText:ct("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),je=v(()=>ki&&n(zn)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:Rs.playPrevChapterButton,buttonComponent:Tc,buttonComponentProps:{disabled:n(nr),click:e.playPrevChapter},tooltipText:ct("tooltip_interactive_go_back"),disabledTooltipContent:ct(os),disabled:n(nr)}:void 0),Gt=v(()=>ki&&n(Un)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:Rs.seekToInteractiveButton,buttonComponent:Ic,buttonComponentProps:{disabled:n(On),click:e.seekToInteractive},tooltipText:ct("tooltip_interactive_seek"),disabled:n(On),disabledTooltipContent:ct(Pe())}:void 0),Pi=v(()=>ki&&n(yn)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:Rs.interactiveGraphButton,buttonComponent:Ec,buttonComponentProps:{disabled:n($n),click:ns.toggle,graphIsOpened:N()},tooltipText:n(ar)}:void 0),qo=v(()=>n(Hn)?{id:"liveButton",type:"desktop-control-panel-left",weight:Rs.liveButton,buttonComponent:Pc,buttonComponentProps:{isLiveActive:n(Po),ariaLabel:n(Wn)},tooltipText:n(Wn),disabled:n(Po)&&l()===Ja.PlaybackState.PLAYING}:void 0),dn=v(()=>[n(ur),n(Gn),n(ys),n(ls),n(je),n(Gt),n(Pi),n(qo)].filter(at=>!!at).sort(za)),pr=v(()=>n(sn)?{id:"vkLogo",type:"desktop-control-panel-right",weight:Os.vkLogo,buttonComponent:hc,buttonComponentProps:{targetUrl:oi(),logoClickable:e.logoClickable,click:Lt},tooltipText:n(lr),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),cn=v(()=>n(ui)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:Os.autoplayNext,buttonComponent:Cc,tooltipText:n(Ur)}:void 0),Qo=v(()=>({id:"volume",type:"desktop-control-panel-right",weight:Os.volume,buttonComponent:Rm,buttonComponentProps:{click:wn,isAds:Ct()}})),Fs=v(()=>n(Tr)?{id:"subtitles",type:"desktop-control-panel-right",weight:Os.subtitles,buttonComponent:km,buttonComponentProps:{isSubtitlesEnabled:n(Dr),click:pt},tooltipText:n(Hr)}:void 0),un=v(()=>n(sr)?{id:"settings",type:"desktop-control-panel-right",weight:Os.settings,buttonComponent:ed,buttonComponentProps:{ref$:mo},tooltipText:De()?void 0:ct("tooltip_settings_off")}:void 0),Hs=v(()=>fe.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:Os.context,buttonComponent:Qm,buttonComponentProps:{ariaLabel:ct("aria_label_context_menu")},className:n(rr)?"":"out-of-view",tooltipText:n(Ao)}:void 0),pa=v(()=>n(Cr)?{id:"fullscreen",type:"desktop-control-panel-right",weight:Os.fullscreen,buttonComponent:gc,buttonComponentProps:{isFullscreen:E(),click:e.toggleFullscreen},tooltipText:n(Kn)}:void 0),fa=v(()=>n(vt)?{id:"chromecast",type:"desktop-control-panel-right",weight:Os.chromecast,buttonComponent:bc,buttonComponentProps:{state:p(),click:wr},tooltipText:n(ko)}:void 0),ut=v(()=>[n(pr),n(cn),n(Qo),n(Fs),n(un),n(Hs),n(pa),n(fa),...We()].filter(at=>!!at).sort(za)),ii=ee.ui.previewTrackActive,go=ee.ui.previewTrackDragInProgress,he=ee.ui.previewTrackAvailable,St=ee.ui.isPreviewTrackHorizontallyAligned,ni=v(()=>Db({onPreviewTrackOpened:ee.actions.internal.previewTrackOpened,getTimelineRef:()=>Et.timeline,isHorizontal:Ue()})),Si=v(()=>n(ni).progressBarY),Ri=v(()=>n(ni).controlsY),pi=v(()=>n(ni).onPointerDown),si=v(()=>n(ni).onPointerMove),ho=v(()=>n(ni).onPointerUp),pn=v(()=>n(ni).calculatedHeight),fn=v(()=>n(ni).closePreviewTrack);Oe(()=>{ie()?di.set(!1):n(fn)()});let Li;Rt(()=>()=>Li&&clearTimeout(Li));let hd=at=>{ie()||!Je()||(n(pi)(at),Li=setTimeout(()=>{ee.actions.internal.previewTrackDragStarted()},200))},cl=()=>{ie()||n(ho)(),Li&&clearTimeout(Li),ye()&&ee.actions.internal.previewTrackDragFinished()},Us=at=>{n(si)(at),!ie()&&Je()&&!ie()&&di.set(!0)},ul=()=>{di.set(!1)};var pl=iS(),Er=de(pl);let ma;var zs=T(Er);{var Kr=at=>{let ft=v(()=>n(Si)()),qi=v(()=>n(pn)());lv(at,{get animatedOffsetY(){return n(ft)},get animatedPreviewTrackHeight(){return n(qi)},get canRewindLive(){return e.canRewindLive},get isAds(){return Ct()},onTimelineMove:Us,onTimelinePointerDown:hd,onTimelinePointerUp:cl,onTimelinePointerLeave:ul,get previewTrackAvailable(){return Je()},get timelineRef(){return Et.timeline},set timelineRef(Go){Et.timeline=Go}})};R(zs,at=>{e.showControls&&at(Kr)})}var ds=L(zs,2),Ws=T(ds),fr=T(Ws);Ti(fr,17,()=>n(dn),at=>at.id,(at,ft)=>{vp(at,{get buttonComponent(){return n(ft).buttonComponent},get buttonComponentProps(){return n(ft).buttonComponentProps},get tooltipText(){return n(ft).tooltipText},get disabledTooltipContent(){return n(ft).disabledTooltipContent},get disabled(){return n(ft).disabled},get className(){return n(ft).className},get tooltipEnabled(){return n(ft).tooltipEnabled},get mouseEnter(){return n(ft).mouseEnter},get mouseLeave(){return n(ft).mouseLeave},get tooltipVisible(){return e.showControls},get ref(){return Et[n(ft).id]},set ref(qi){Et[n(ft).id]=qi}})});var fl=L(fr,2);{var ml=at=>{let ft=v(()=>!e.showControls),qi=v(()=>Ct()?Ae():Fe()),Go=v(()=>Ct()?Ft():mt());fc(at,{get isHidden(){return n(ft)},isMobile:!1,get showDuration(){return n(Mo)},get position(){return n(qi)},get duration(){return n(Go)},get ref(){return Et.time},set ref(Qi){Et.time=Qi}})};R(fl,at=>{n(an)&&at(ml)})}var _d=L(fl,2);let vl=v(()=>!n(zo));Fo(_d,{className:"w-max",get disabled(){return n(vl)},get tooltipContent(){return cr},get tooltipVisible(){return e.showControls},get ref(){return Et.episodes},set ref(at){Et.episodes=at},children:(at,ft)=>{var qi=Le(),Go=de(qi);{var Qi=xi=>{$c(xi,{get position(){return Fe()},get duration(){return mt()},get timeCodes(){return At}})};R(Go,xi=>{n(zo)&&xi(Qi)})}b(at,qi)},$$slots:{default:!0}}),w(Ws);var gl=L(Ws,2);Ti(gl,21,()=>n(ut),at=>at.id,(at,ft)=>{var qi=Le(),Go=de(qi);{var Qi=Ni=>{vp(Ni,{get buttonComponent(){return n(ft).buttonComponent},get buttonComponentProps(){return n(ft).buttonComponentProps},get tooltipText(){return n(ft).tooltipText},get disabledTooltipContent(){return n(ft).disabledTooltipContent},get disabled(){return n(ft).disabled},get className(){return n(ft).className},get tooltipVisible(){return e.showControls},get ref(){return Et[n(ft).id]},set ref(ga){Et[n(ft).id]=ga}})},xi=Ni=>{let ga=v(()=>!!n(ft).disabled);Jm(Ni,{get id(){return n(ft).id},get testId(){return n(ft).testId},get icon(){return n(ft).icon},get ariaLabel(){return n(ft).ariaLabel},get tooltipText(){return n(ft).tooltipText},get disabledTooltipContent(){return n(ft).disabledTooltipContent},get disabled(){return n(ga)},get onClick(){return n(ft).onClick},get disableMouseupTooltipShow(){return n(ft).disableMouseupTooltipShow},get tooltipVisible(){return e.showControls},get ref(){return Et[n(ft).id]},set ref(_l){Et[n(ft).id]=_l}})};R(Go,Ni=>{Rb(n(ft))?Ni(Qi):Ni(xi,!1)})}b(at,qi)}),w(gl),w(ds),Xe(ds,at=>lt(at),()=>lt()),w(Er),Xe(Er,at=>Ht(at),()=>Ht());var hl=L(Er,2);{var bd=at=>{wc(at,{get ref(){return Et.interactiveTimeIndicator},set ref(ft){Et.interactiveTimeIndicator=ft}})};R(hl,at=>{Or&&at(bd)})}D((at,ft)=>{ma=se(Er,1,"wrapper-bottom s-1f",null,ma,at),Qe(ds,ft),ds.inert=ie()},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth||ye()}),()=>`transform: translateY(${n(Ri)()}px);`]),kn(Ws,"clientWidth",at=>O(wt,at)),b(t,pl),F(),o()}var ad=require("@vkontakte/videoplayer-core/es2015");var uv=require("@vkontakte/videoplayer-shared/es2015");var nS=M('<div class="icon icon-error-stub s-22"><div class="inner s-22"></div></div>'),rS=M('<img class="icon s-22" aria-hidden="true"/>'),sS={hash:"s-22",code:".icon.s-22{height:24px!important;width:24px!important}.inner.s-22{background-color:var(--white);height:16px;width:16px}"};function pv(t,e){q(t,sS);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=()=>{O(l,!0)},s=v(()=>n(r)?"btn-full-opacity":"");Qt(t,{get className(){return n(s)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return n(a)},get testId(){return e.testId},children:(u,m)=>{var p=Le(),f=de(p);{var $=_=>{var S=nS();b(_,S)},y=_=>{var S=rS();D(()=>Ve(S,"src",e.iconUrl)),_t("error",S,d),ka(S),b(_,S)};R(f,_=>{n(l)?_($):_(y,!1)})}b(u,p)},$$slots:{default:!0}})}var aS=Ce('<path d="M8.7 8.1 5.3 4.72A1 1 0 0 1 6.72 3.3L20.7 17.29a1 1 0 0 1-1.41 1.41L16 15.41V20a1 1 0 0 1-1 1c-.64 0-1.26-.25-1.72-.7L7.79 15H5a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h2.77zm2.88-2.76 1.7-1.65A2.5 2.5 0 0 1 15 3a1 1 0 0 1 1 1v5.76z"></path>');function fv(t){Ze(t,{testId:"muted-icon",children:(e,i)=>{var o=aS();b(e,o)},$$slots:{default:!0}})}var Ub=require("@vkontakte/videoplayer-shared/es2015");function _p(t,e){B(e,!0);let i=g(e,"muted",3,!1),o=g(e,"click",3,Ub.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");Qt(t,{get testId(){return n(s)},get click(){return o()},get ariaLabel(){return n(d)},role:"button",get ref(){return r()},set ref(u){r(u)},children:(u,m)=>{var p=Le(),f=de(p);{var $=_=>{fv(_,{})},y=_=>{da(_,{get size(){return"24"}})};R(f,_=>{i()?_($):_(y,!1)})}b(u,p)},$$slots:{default:!0}}),F()}var lS=Ce('<path d="M11.64 12.37 9.07 9.8h1.03a.9.9 0 1 0 0-1.8H6.9a.9.9 0 0 0-.9.9v3.2a.9.9 0 0 0 1.8 0v-1.02l2.53 2.52.13.14a.9.9 0 0 0 1.28-1.28z"></path>'),dS=Ce('<path d="m6.36 9.63 2.57 2.57H7.9a.9.9 0 1 0 0 1.8h3.2a.9.9 0 0 0 .9-.9V9.9a.9.9 0 0 0-1.8 0v1.02L7.67 8.4l-.13-.14a.9.9 0 0 0-1.28 1.28z"></path>'),cS=Ce('<path d="M7.66 4h6.68q1.2-.01 2 .04.83.06 1.53.38a4 4 0 0 1 1.7 1.7c.24.48.34.98.39 1.54q.05.8.04 2v1.44a.9.9 0 0 1-1.8 0V9.7c0-.85 0-1.44-.04-1.9-.03-.44-.1-.68-.19-.85a2 2 0 0 0-.92-.92 2 2 0 0 0-.85-.2c-.46-.03-1.04-.03-1.9-.03H7.7c-.85 0-1.44 0-1.9.04-.44.03-.68.1-.85.19a2 2 0 0 0-.92.92c-.09.17-.16.4-.2.85-.03.46-.03 1.05-.03 1.9v2.65c0 .85 0 1.44.04 1.9.03.44.1.68.19.85a2 2 0 0 0 .92.92c.17.08.4.15.85.19.46.03 1.04.04 1.9.04h2.4a.9.9 0 0 1 0 1.8H7.66q-1.2.01-2-.05a4 4 0 0 1-1.53-.38 4 4 0 0 1-1.7-1.7 4 4 0 0 1-.39-1.53q-.05-.8-.04-2V9.65q-.01-1.2.04-2c.05-.56.15-1.06.39-1.53a4 4 0 0 1 1.7-1.7c.47-.24.97-.34 1.53-.39q.8-.05 2-.04M13 16.8c0-.98 0-1.47.19-1.84a2 2 0 0 1 .77-.77c.37-.19.86-.19 1.84-.19h3.4c.98 0 1.47 0 1.85.19q.5.27.76.77c.19.37.19.86.19 1.84v.4c0 .98 0 1.47-.19 1.85a2 2 0 0 1-.77.76c-.37.19-.86.19-1.84.19h-3.4c-.98 0-1.47 0-1.85-.19a2 2 0 0 1-.76-.76c-.19-.38-.19-.87-.19-1.85z"></path><!>',1);function mv(t,e){let i=g(e,"isActive",3,!1),o=v(()=>i()?"pip-icon--active":"pip-icon");Ze(t,{get testId(){return n(o)},children:(r,a)=>{var l=cS(),d=L(de(l));{var s=m=>{var p=lS();b(m,p)},u=m=>{var p=dS();b(m,p)};R(d,m=>{i()?m(s):m(u,!1)})}b(r,l)},$$slots:{default:!0}})}var zb=require("@vkontakte/videoplayer-shared/es2015");function vv(t,e){B(e,!0);let i=g(e,"ref",15,void 0),o=g(e,"isPictureInPictureActive",3,!1),r=g(e,"click",3,zb.noop),a=G("menu_pip");Qt(t,{testId:"btn-pip",get ariaLabel(){return a},get click(){return r()},get ref(){return i()},set ref(l){i(l)},children:(l,d)=>{mv(l,{get isActive(){return o()}})},$$slots:{default:!0}}),F()}var gv=require("@vkontakte/videoplayer-shared/es2015");var uS=(t,e,i,o)=>{n(e)&&i.onDisabledPlayPrevChapterClick(n(o))},pS=(t,e,i,o)=>{n(e)&&i.onDisabledSeekToInteractiveClick(n(o))},fS=M("<div><!></div>"),mS=M("<div><!></div>"),vS=M("<div><!></div>"),gS=M("<!> <!> <!>",1),hS=M("<div></div> <div></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),_S=M('<div class="wrapper-middle s-1d"><!></div>'),bS=M("<div><!></div> <!> <div><!></div>",1),$S=M('<div aria-hidden="true">·</div> <!>',1),yS=M('<!> <!> <div><div><div class="controls mobile s-1d" data-testid="bottom-controls"><div class="controls-group contain s-1d"><!> <!> <!> <!></div> <div class="controls-group s-1d"><!> <!> <!></div></div> <!></div></div> <!>',1),xS={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 hv(t,e){var Wo,as;B(e,!0),q(t,xS);let[i,o]=Re(),r=()=>x(zi,"$seekToInteractiveDisabledTooltip$",i),a=()=>x(ti,"$disabledControls$",i),l=()=>x(Ot,"$playbackState$",i),d=()=>x(Io,"$adPlaybackState",i),s=()=>x(ee,"$isEnded$",i),u=()=>x(It,"$playerSize",i),m=()=>x(pt,"$scrubbingInProgress",i),p=()=>x(Ci,"$chromecastState$",i),f=()=>x(ze,"$isPictureInPictureActive",i),$=()=>x(Ye,"$pictureInPictureType$",i),y=()=>x(ce,"$mobileNotReportControlHidden$",i),_=()=>x(bi,"$chromecastHidden",i),S=()=>x(lt,"$playerPhase",i),C=()=>x(Dt,"$pipHidden",i),I=()=>x(Ke,"$currentGridType$",i),N=()=>x(wi,"$vkLogoHidden",i),P=()=>x(ri,"$volumeHidden",i),E=()=>x(nt,"$isLive$",i),k=()=>x(dt,"$settingsMenuVisible",i),Q=()=>x(Lt,"$isRewindableLive$",i),H=()=>x(xt,"$isActiveLive$",i),z=()=>x($e,"$isAudioAvailable$",i),Y=()=>x(Me,"$muted$",i),le=()=>x(fe,"$volume$",i),X=()=>x(ct,"$isInteractiveTime$",i),re=()=>x(Un,"$settingButtonRef$",i),Z=()=>x(At,"$startedByKeyboard$",i),we=()=>x(bn,"$isFullscreen",i),ue=()=>x(Wt,"$additionalButtons$",i),ne=()=>x(Zi,"$autoplayNextToggleHidden",i),_e=()=>x(Ji,"$crashed$",i),xe=()=>x(fi,"$settingsHidden",i),J=()=>x(on,"$graphIsOpened$",i),Ne=()=>x(xo,"$adPosition",i),pe=()=>x(Ii,"$adDuration",i),A=()=>x(oi,"$position$",i),We=()=>x(Ct,"$duration$",i),Te=g(e,"playerControlsWrapperRef",15,void 0),j=g(e,"playerControlsRef",15,void 0),ie=g(e,"isAds",3,!1),De=g(e,"logoTargetUrl",3,""),Be=g(e,"isOneVideoPlaylist",3,!1),ot=g(e,"customFullscreenSupported",3,!0),U=ve(),ke=Co(),Pe=Nt(),Ue=U.actions.internal.toggleMuted,Je=U.actions.internal.togglePlay,ye=U.actions.internal.pause,Ae=U.actions.internal.prevVideoClick,Fe=U.actions.internal.nextVideoClick,Ft=U.actions.internal.checkFullscreenSupport,mt=(Wo=U.callbacks)==null?void 0:Wo.onAudioDoesNotExistHint,Ht=(as=U.callbacks)==null?void 0:as.onAudioDisabledHint,lt=U.playerPhase,Ct=U.state.duration$,oi=U.state.positionWithScrubbing$,Ot=U.state.playbackState$,$e=U.state.isAudioAvailable$,be=U.state.isAudioDisabled,ee=U.state.isEnded$,nt=U.state.isLive$,fe=U.state.volume$,Me=U.state.muted$,xt=U.state.isActiveLive$,Lt=U.state.isRewindableLive$,pt=U.ui.scrubbingInProgress,ce=U.ui.mobileNotReportControlHidden$,{isActive$:ze,type$:Ye}=ke.pictureInPicture$,dt=U.ui.settingsMenu.visible$,Ut=U.ui.settingsMenu.openedByBtnKeyboard$,zt=U.ui.controls,{volume:ri,vkLogo:wi,autoplayNextToggle:Zi,pip:Dt,settings:fi,chromecast:bi}=U.ui.hiddenControls,bt=U.actions.internal.getVideoEpisodes(),Jt=U.webApi.pictureInPictureApi,Ci=U.state.chromecastState$,Ji=U.state.crashed$,ti=zt.disabledControls$,At=U.ui.startedByKeyboard$,Ke=U.ui.currentGridType$,Ii=U.ads.duration,xo=U.ads.position,Io=U.ads.playbackState,bn=U.ui.isFullscreen,It=U.ui.playerSize,Wt=U.ui.additionalButtonsDeprecated$,W=U.actions.internal.getVideoElement,Mt=U.actions.internal.replayInteractive,di=U.state.isInteractive,ct=U.state.isInteractiveTime$,Tt=U.state.showInteractiveGraph,Xt=U.state.showSeekToInteractive,st=U.state.showPlayPrevChapter,Ui=U.state.showInteractiveTimeIndicator,zi=ke.seekToInteractiveDisabledTooltip$,on=ke.graphIsOpened$,Eo=U.ui.controlBlocks,Wi=v(()=>G(U.state.playPrevChapterDisabledTooltip)),eo=v(()=>G(r())),Nr=v(()=>a().has("EPISODE_BUTTON")),wo=v(()=>a().has("GRAPH_BUTTON")),lo=v(()=>a().has("SEEK_TO_INTERACTIVE_BUTTON")),ki=v(()=>a().has("PLAY_BUTTON")),nn=v(()=>a().has("REPLAY_BUTTON")),rn=v(()=>a().has("PLAY_PREV_CHAPTER_BUTTON")),Nn=v(()=>l()===ad.PlaybackState.PLAYING),ir=v(()=>d()==="paused"),Or=v(()=>s()&&!ie()&&!di),os=v(()=>!s()||ie()),$s=v(()=>e.showNextPrevButtons&&!ie()&&e.prevButtonActive),ns=v(()=>e.showNextPrevButtons&&!ie()&&e.nextButtonActive),or=v(()=>u().width>300),xr=v(()=>u().width>400),$n=v(m),On=v(()=>p()!==ad.ChromecastState.NOT_AVAILABLE&&!(f()&&$()===1)&&!y()&&!di&&!_()),Uo=v(()=>S()==="LiveWaitingStart"),Dn=v(()=>!!Jt&&p()!==ad.ChromecastState.CONNECTED&&!y()&&($()===1&&n(Uo)||!n(Uo))&&!n($n)&&!di&&!C()),nr=K(!1);Rt(()=>{let qe=Jt==null?void 0:Jt.info.isActive$.subscribe(Vt=>O(nr,Vt,!0));return()=>qe==null?void 0:qe.unsubscribe()});let wr=v(()=>!n($n)&&ro(I(),"s")),Sr=v(()=>!e.logoHidden&&u().width>350&&!N()),Dr=v(()=>Pe.features.fullscreen&&Ft()&&!(f()&&$()===1)&&(di?ot():!0)&&!n($n)&&!n(nr)),co=v(()=>!P()&&!n($n)),Br=v(()=>(!E()||ie())&&u().width>260&&!n($n)&&!(Pe.features.interactiveHideTime&&di)),Bn=v(()=>k()||e.showControls),Fn=v(()=>!ie()&&!E()&&!!(bt!=null&&bt.length)&&n(or)&&!n(Nr)&&!n($n)),uo=v(()=>!Q()||!!H()),Fr=v(()=>Tt&&ro(I(),"m")),Hn=v(()=>!z()||Y()||le()===0),vt=ci({}),ui=ci({}),Tr=(0,gv.debounceFn)(nd,260),rr=(0,gv.debounceFn)(gp,260);Oe(()=>{u(),X(),Tr(W(),zt,vt,e.showControls),rr(W(),Eo,ui,e.showControls)});let sr=()=>U.actions.internal.toggleChromecast();function sn(){return gt(this,null,function*(){Jt!=null&&Jt.isActive()?yield Jt==null?void 0:Jt.exit():yield Jt==null?void 0:Jt.request()})}function Cr(){sa({isAudioDisabled:be,audioDisabledHintCallback:Ht,isAudioAvailable:z(),audioIsNotExistHintCallback:mt,isAds:ie()})&&Ue()}let an=K(""),yn=(qe,Vt)=>{if(!qe){O(an,G("tooltip_live"),!0);return}Vt&&Vt===ad.PlaybackState.PAUSED&&O(an,G("tooltip_play"),!0)};Oe(()=>{yn(n(uo),l())});let Un=ae();Oe(()=>{re()&&Yl(re(),k(),Ut)}),Oe(()=>{mp(At,Z(),vt.playButton)});var zn=yS(),zo=de(zn);{var Po=qe=>{var Vt=hS(),yi=de(Vt);let Mo;var Vo=L(yi,2);let Ko;Xe(Vo,ut=>ui.topLeft=ut,()=>ui==null?void 0:ui.topLeft);var mo=L(Vo,2);let io;var wn=T(mo);Ti(wn,1,ue,({iconUrl:ut,ariaLabel:ii,testId:go,onClick:he,tooltip:St})=>ut,(ut,ii)=>{let go=()=>n(ii).iconUrl,he=()=>n(ii).ariaLabel,St=()=>n(ii).testId,ni=()=>n(ii).onClick,Si=()=>n(ii).tooltip,Ri=v(()=>{var pi;return(pi=he())!=null?pi:Si()});pv(ut,{get iconUrl(){return go()},get ariaLabel(){return n(Ri)},get testId(){return St()},get onClick(){return ni()}})});var Sn=L(wn,2);{var vo=ut=>{Cc(ut,{get ref(){return vt.autoplayNextToggle},set ref(ii){vt.autoplayNextToggle=ii}})};R(Sn,ut=>{e.showAutoplayNext&&!Be()&&!ne()&&ut(vo)})}var Ro=L(Sn,2);{var Qn=ut=>{bc(ut,{isMobile:!0,click:sr,get state(){return p()},get ref(){return vt.chromecast},set ref(ii){vt.chromecast=ii}})};R(Ro,ut=>{n(On)&&ut(Qn)})}var cr=L(Ro,2);{var ur=ut=>{vv(ut,{click:sn,get isPictureInPictureActive(){return f()},get ref(){return vt.pip},set ref(ii){vt.pip=ii}})};R(cr,ut=>{n(Dn)&&ut(ur)})}var Gn=L(cr,2);{var ys=ut=>{ed(ut,{get ref$(){return Un}})};R(Gn,ut=>{_e()&&!xe()&&ut(ys)})}var ls=L(Gn,2);{var je=ut=>{hc(ut,{get click(){return ye},get targetUrl(){return De()},get logoClickable(){return e.logoClickable},get ref(){return vt.vkLogo},set ref(ii){vt.vkLogo=ii}})};R(ls,ut=>{n(Sr)&&ut(je)})}w(mo),Xe(mo,ut=>ui.topRight=ut,()=>ui==null?void 0:ui.topRight);var Gt=L(mo,2);let Pi;var qo=T(Gt);{var dn=ut=>{let ii=v(()=>Ae.bind(null,!0));ja(ut,{get click(){return n(ii)},type:"prev",isMobile:!0,get ref(){return vt.prevButton},set ref(go){vt.prevButton=go}})};R(qo,ut=>{n($s)&&ut(dn)})}var pr=L(qo,2);{var cn=ut=>{sd(ut,{get disabled(){return n(ki)},get click(){return Je},isMobile:!0,get isPlaying(){return n(Nn)},get ref(){return vt.playButton},set ref(ii){vt.playButton=ii}})};R(pr,ut=>{n(os)&&ut(cn)})}var Qo=L(pr,2);{var Fs=ut=>{rd(ut,{get disabled(){return n(nn)},get click(){return Je},isMobile:!0,get ref(){return vt.replayButton},set ref(ii){vt.replayButton=ii}})};R(Qo,ut=>{n(Or)&&ut(Fs)})}var un=L(Qo,2);{var Hs=ut=>{let ii=v(()=>Fe.bind(null,!0));ja(ut,{get click(){return n(ii)},type:"next",isMobile:!0,get ref(){return vt.nextButton},set ref(go){vt.nextButton=go}})};R(un,ut=>{n(ns)&&ut(Hs)})}w(Gt),Xe(Gt,ut=>ui.middle=ut,()=>ui==null?void 0:ui.middle);var pa=L(Gt,2);{var fa=ut=>{var ii=gS(),go=de(ii);{var he=pi=>{var si=fS();let ho;si.__click=[uS,rn,e,Wi];var pn=T(si);let fn=v(()=>!e.showControls);Tc(pn,{get hidden(){return n(fn)},get disabled(){return n(rn)},get click(){return e.playPrevChapter},get ref(){return vt.playPrevChapterButton},set ref(Li){vt.playPrevChapterButton=Li}}),w(si),D(Li=>ho=se(si,1,"wrapper-middle-left s-1d",null,ho,Li),[()=>({fullscreen:we(),hidden:!e.showControls})]),b(pi,si)};R(go,pi=>{st&&pi(he)})}var St=L(go,2);{var ni=pi=>{var si=mS();let ho;var pn=T(si);let fn=v(()=>!e.showControls&&!J());Ec(pn,{get hidden(){return n(fn)},get disabled(){return n(wo)},get click(){return on.toggle},get graphIsOpened(){return J()},get ref(){return vt.interactiveGraphButton},set ref(Li){vt.interactiveGraphButton=Li}}),w(si),D(Li=>ho=se(si,1,Wd(st?"wrapper-middle-left-second":"wrapper-middle-left"),"s-1d",ho,Li),[()=>({fullscreen:we(),hidden:!e.showControls&&!J()})]),b(pi,si)};R(St,pi=>{n(Fr)&&pi(ni)})}var Si=L(St,2);{var Ri=pi=>{var si=vS();let ho;si.__click=[pS,lo,e,eo];var pn=T(si);let fn=v(()=>!e.showControls);Ic(pn,{get hidden(){return n(fn)},get disabled(){return n(lo)},get click(){return e.seekToInteractive},get ref(){return vt.seekToInteractiveButton},set ref(Li){vt.seekToInteractiveButton=Li}}),w(si),D(Li=>ho=se(si,1,"wrapper-middle-right s-1d",null,ho,Li),[()=>({fullscreen:we(),hidden:!e.showControls})]),b(pi,si)};R(Si,pi=>{Xt&&pi(Ri)})}b(ut,ii)};R(pa,ut=>{di&&!m()&&ut(fa)})}D((ut,ii,go,he)=>{Mo=se(yi,1,"overlay-mobile s-1d",null,Mo,ut),Ko=se(Vo,1,"wrapper-top-left s-1d",null,Ko,ii),io=se(mo,1,"wrapper-top-right s-1d",null,io,go),Pi=se(Gt,1,"wrapper-middle s-1d",null,Pi,he)},[()=>({hidden:!n(Bn)}),()=>({hidden:!e.showControls,fullscreen:we()}),()=>({hidden:!e.showControls&&!y(),fullscreen:we()}),()=>({hidden:!e.showControls||m()||e.endScreenShown&&e.showNextPrevButtons})]),b(qe,Vt)};R(zo,qe=>{ie()||qe(Po)})}var ar=L(zo,2);{var Ao=qe=>{var Vt=bS(),yi=de(Vt);let Mo;var Vo=T(yi);_p(Vo,{get muted(){return Y()},click:Cr,get ref(){return vt.volume},set ref(vo){vt.volume=vo}}),w(yi);var Ko=L(yi,2);{var mo=vo=>{var Ro=_S(),Qn=T(Ro);let cr=v(()=>!n(ir));sd(Qn,{get disabled(){return n(ki)},get click(){return Je},isMobile:!0,get isPlaying(){return n(cr)},get ref(){return vt.playButton},set ref(ur){vt.playButton=ur}}),w(Ro),b(vo,Ro)};R(Ko,vo=>{n(ir)&&vo(mo)})}var io=L(Ko,2);let wn;var Sn=T(io);Ac(Sn,{get position(){return Ne()},get duration(){return pe()}}),w(io),D((vo,Ro)=>{Mo=se(yi,1,"wrapper-top-right s-1d",null,Mo,vo),wn=se(io,1,"wrapper-bottom ads-timeline-mobile s-1d",null,wn,Ro)},[()=>({fullscreen:we()}),()=>({fullscreen:we()})]),b(qe,Vt)};R(ar,qe=>{ie()&&d()!=="inactive"&&qe(Ao)})}var Ki=L(ar,2);let Wn;var lr=T(Ki);let Hr;var Kn=T(lr),ko=T(Kn),Ur=T(ko);{var wt=qe=>{Fo(qe,{get disabled(){return n(nn)},get ref(){return vt.replayButton},set ref(Vt){vt.replayButton=Vt},children:(Vt,yi)=>{rd(Vt,{get disabled(){return n(nn)},get click(){return Mt}})},$$slots:{default:!0}})};R(Ur,qe=>{di&&qe(wt)})}var Et=L(Ur,2);{var po=qe=>{Fo(qe,{get ref(){return vt.liveButton},set ref(Vt){vt.liveButton=Vt},children:(Vt,yi)=>{Pc(Vt,{get isLiveActive(){return n(uo)},isMobile:!0,get ariaLabel(){return n(an)}})},$$slots:{default:!0}})};R(Et,qe=>{!ie()&&E()&&qe(po)})}var to=L(Et,2);{var Vi=qe=>{let Vt=v(()=>ie()?Ne():A()),yi=v(()=>ie()?pe():We()),Mo=v(()=>!e.showControls);fc(qe,{get showDuration(){return n(xr)},get position(){return n(Vt)},get duration(){return n(yi)},isMobile:!0,get isHidden(){return n(Mo)},get ref(){return vt.time},set ref(Vo){vt.time=Vo}})};R(to,qe=>{n(Br)&&qe(Vi)})}var xn=L(to,2);let So=v(()=>!n(Fn));Fo(xn,{className:"w-max",get disabled(){return n(So)},get ref(){return vt.episodes},set ref(qe){vt.episodes=qe},children:(qe,Vt)=>{var yi=Le(),Mo=de(yi);{var Vo=Ko=>{var mo=$S(),io=L(de(mo),2);$c(io,{get position(){return A()},get duration(){return We()},get timeCodes(){return bt}}),b(Ko,mo)};R(Mo,Ko=>{n(Fn)&&Ko(Vo)})}b(qe,yi)},$$slots:{default:!0}}),w(ko),Xe(ko,qe=>ui.bottomLeft=qe,()=>ui==null?void 0:ui.bottomLeft);var qn=L(ko,2),mi=T(qn);{var zr=qe=>{Fo(qe,{get ref(){return vt.volume},set ref(Vt){vt.volume=Vt},children:(Vt,yi)=>{_p(Vt,{get muted(){return n(Hn)},click:Cr})},$$slots:{default:!0}})};R(mi,qe=>{n(co)&&qe(zr)})}var dr=L(mi,2);{var rs=qe=>{Fo(qe,{get ref(){return vt.settings},set ref(Vt){vt.settings=Vt},children:(Vt,yi)=>{ed(Vt,{get ref$(){return Un}})},$$slots:{default:!0}})};R(dr,qe=>{n(wr)&&qe(rs)})}var ss=L(dr,2);{var Wr=qe=>{Fo(qe,{get ref(){return vt.fullscreen},set ref(Vt){vt.fullscreen=Vt},children:(Vt,yi)=>{gc(Vt,{get click(){return e.toggleFullscreen},get isFullscreen(){return we()}})},$$slots:{default:!0}})};R(ss,qe=>{n(Dr)&&qe(Wr)})}w(qn),Xe(qn,qe=>ui.bottomRight=qe,()=>ui==null?void 0:ui.bottomRight),w(Kn),Xe(Kn,qe=>j(qe),()=>j());var Lo=L(Kn,2);let ln=v(()=>!e.showControls);Za(Lo,{get isHidden(){return n(ln)},get isAds(){return ie()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return Q()},get ref(){return vt.timeline},set ref(qe){vt.timeline=qe}}),w(lr),Xe(lr,qe=>ui.bottom=qe,()=>ui==null?void 0:ui.bottom),w(Ki),Xe(Ki,qe=>Te(qe),()=>Te());var fo=L(Ki,2);{var Ir=qe=>{wc(qe,{get ref(){return vt.interactiveTimeIndicator},set ref(Vt){vt.interactiveTimeIndicator=Vt}})};R(fo,qe=>{Ui&&qe(Ir)})}D((qe,Vt)=>{Wn=se(Ki,1,"wrapper-bottom mobile s-1d",null,Wn,qe),Hr=se(lr,1,"controls-wrapper s-1d",null,Hr,Vt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth}),()=>({fullscreen:we()})]),b(t,zn),F(),o()}it(["click"]);function kc(t,e){B(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,""),m=g(e,"showAutoplayNext",3,!1),p=g(e,"isOneVideoPlaylist",3,!1),f=g(e,"customFullscreenSupported",3,!0),$=g(e,"endScreenShown",3,!1),y=g(e,"onDisabledPlayPrevChapterClick",3,_v.noop),_=g(e,"onDisabledSeekToInteractiveClick",3,_v.noop),C=ve().ui.isMobile,I=K(!1);Rt(()=>{let k=setTimeout(()=>O(I,!0),0);return()=>clearTimeout(k)});var N=Le(),P=de(N);{var E=k=>{var Q=Le(),H=de(Q);{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 m()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get isOneVideoPlaylist(){return p()},get customFullscreenSupported(){return f()},get endScreenShown(){return $()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return y()},get onDisabledSeekToInteractiveClick(){return _()},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(X){l(X)},get playerControlsRef(){return d()},set playerControlsRef(X){d(X)}})},Y=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 p()},get showAutoplayNext(){return m()},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)}})};R(H,le=>{r()?le(z):le(Y,!1)})}b(k,Q)};R(P,k=>{n(I)&&k(E)})}b(t,N),F(),o()}var wS=Ce('<path d="M23.75 31.2v-5.45l-11.84 6.7a1.45 1.45 180 01-2.16-1.25v-14.4a1.45 1.45 180 012.16-1.26l11.84 6.7v-5.44a1.45 1.45 180 012.16-1.26l12.7 7.19a1.45 1.45 180 010 2.52l-12.7 7.2a1.45 1.45 180 01-2.16-1.27Z"></path>');function Lc(t,e){B(e,!0);let i=v(()=>e.reversed?"transform:scaleX(-1);transform-origin:50% 0;":""),o=v(()=>`${hn(e.size)}${n(i)}`);Ze(t,{get width(){return"48"},get height(){return"48"},get fill(){return e.fill},get style(){return n(o)},get testId(){return e.testId},get shadow(){return e.shadow},children:(r,a)=>{var l=wS();b(r,l)},$$slots:{default:!0}}),F()}var SS=Ce('<path d="M32.46 9.53a1.16 1.16 90 010 1.96l-7.66 4.83c-.78.49-1.8-.07-1.8-.98v-3.3a14 14 90 1014.1 18.93 1.5 1.5 90 012.8 1.06 17 17 90 11-16.9-23V5.66c0-.91 1.03-1.47 1.8-.98z"></path>');function bv(t,e){B(e,!0);let i=g(e,"reversed",3,!1),o=v(()=>i()?"transform:scaleX(-1);transform-origin: 50% 0;":void 0),r=v(()=>`seek-icon-${i()?"backward":"forward"}`);Ze(t,{get width(){return"48"},get height(){return"48"},get style(){return n(o)},get testId(){return n(r)},get shadow(){return e.shadow},children:(a,l)=>{var d=SS();b(a,d)},$$slots:{default:!0}}),F()}var TS=M('<span class="hot-key-helpers-text s-y"> </span>'),CS=M('<div data-testid="hotkey-helper-icon" class="s-y"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),IS=M("<div><!></div>"),ES={hash:"s-y",code:'.hot-key-helpers-container.s-y{align-items:center;animation:s-y-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-y{left:calc(25% - 100px)}.hot-key-helpers-container--right.s-y{left:calc(75% - 100px)}.hot-key-helpers-text.s-y{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-y{animation:s-y-fadeOut ease var(--controls-transition-duration);height:0;visibility:hidden;width:0}@keyframes s-y-fadeIn{0%{opacity:0}to{opacity:1}}@keyframes s-y-fadeOut{0%{opacity:1}to{opacity:0}}'};function $v(t,e){B(e,!0),q(t,ES);let[i,o]=Re(),r=()=>x(e.data,"$data",i),a=ve(),{features:l}=Nt(),d=a.ui.t,s=v(()=>!r()),u=v(()=>{var C;return((C=r())==null?void 0:C.type)==="BACKWARD_SEEK"}),m=v(()=>{var C;return((C=r())==null?void 0:C.type)==="FORWARD_SEEK"}),p=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 $=IS();let y;var _=T($);{var S=C=>{var I=CS(),N=de(I),P=T(N);{var E=j=>{let ie=v(()=>n(p)==="BACKWARD_SEEK");bv(j,{get reversed(){return n(ie)},shadow:!0})};R(P,j=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(n(p))&&j(E)})}var k=L(P,2);{var Q=j=>{Ns(j,{get size(){return"48"},shadow:!0})};R(k,j=>{n(p)==="PAUSE"&&!l.playbackStatusShow&&j(Q)})}var H=L(k,2);{var z=j=>{Mn(j,{get size(){return"48"},shadow:!0})};R(H,j=>{n(p)==="PLAY"&&!l.playbackStatusShow&&j(z)})}var Y=L(H,2);{var le=j=>{Sc(j,{get size(){return"48"},shadow:!0})};R(Y,j=>{n(p)==="REPLAY"&&!l.playbackStatusShow&&j(le)})}var X=L(Y,2);{var re=j=>{la(j,{get size(){return"48"},type:"off",shadow:!0})};R(X,j=>{n(p)==="SUBTITLES_OFF"&&j(re)})}var Z=L(X,2);{var we=j=>{la(j,{get size(){return"48"},shadow:!0})};R(Z,j=>{n(p)==="SUBTITLES_ON"&&j(we)})}var ue=L(Z,2);{var ne=j=>{let ie=v(()=>n(p)==="RATE_DOWN");Lc(j,{get size(){return"48"},get reversed(){return n(ie)},testId:"rate-change-icon",shadow:!0})};R(ue,j=>{["RATE_DOWN","RATE_UP"].includes(n(p))&&j(ne)})}var _e=L(ue,2);{var xe=j=>{let ie=v(()=>n(p)==="EPISODE_PREV");ca(j,{get size(){return"48"},get reversed(){return n(ie)},shadow:!0})};R(_e,j=>{["EPISODE_PREV","EPISODE_NEXT"].includes(n(p))&&j(xe)})}var J=L(_e,2);{var Ne=j=>{da(j,{get size(){return"48"},volume:0,shadow:!0})};R(J,j=>{n(p)==="MUTE"&&j(Ne)})}var pe=L(J,2);{var A=j=>{da(j,{get size(){return"48"},volume:1,shadow:!0})};R(pe,j=>{n(p)==="VOLUME"&&j(A)})}w(N);var We=L(N,2);{var Te=j=>{var ie=TS(),De=T(ie,!0);w(ie),D(()=>me(De,n(f))),b(j,ie)};R(We,j=>{n(f)&&j(Te)})}D(()=>Ve(N,"data-type",n(p))),b(C,I)};R(_,C=>{!n(s)&&n(p)&&C(S)})}w($),D(C=>y=se($,1,"hot-key-helpers-container s-y",null,y,C),[()=>({hidden:n(s),"hot-key-helpers-container--left":n(u),"hot-key-helpers-container--right":n(m)})]),b(t,$),F(),o()}var PS=(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}},AS=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},kS=M('<div tabindex="0" role="button"><div class="button-block s-w" aria-hidden="true"><div class="button-row s-w"><div class="button button-up s-w"><!></div> <div class="button button-right s-w"><!></div></div> <div class="button-row s-w"><div class="button button-left s-w"><!></div> <div class="button button-down s-w"><!></div></div></div></div>'),LS={hash:"s-w",code:".immersive-controls.s-w{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-w{left:20px;top:50px}.button-block.s-w{height:40px;margin:auto;transform:rotate(45deg);width:40px}.button-row.s-w{display:flex;flex-direction:row;position:relative}.button.s-w{cursor:pointer;height:20px;text-align:center;width:20px}.button.s-w svg{opacity:.7;transition:opacity .2s linear}.button.button-up.s-w svg{transform:rotate(-45deg) translate(-1px,-1px)}.button.button-right.s-w svg{transform:rotate(45deg) translate(1px,-1px)}.button.button-down.s-w svg{transform:rotate(135deg) translate(1px,-3px)}.button.button-left.s-w svg{transform:rotate(-135deg) translate(-1px,-3px)}.button.s-w:hover svg{opacity:1}"};function Mc(t,e){B(e,!0),q(t,LS);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),m=G("aria_label_spherical_control");var p=kS();let f;p.__keydown=[PS,r,a,l,s,d],p.__keyup=[AS,r,u];var $=T(p),y=T($),_=T(y);_.__mousedown=a,_.__mouseup=u;var S=T(_);Vr(S,{direction:"up",useBtnColor:!0}),w(_);var C=L(_,2);C.__mousedown=d,C.__mouseup=u;var I=T(C);Vr(I,{direction:"up",useBtnColor:!0}),w(C),w(y);var N=L(y,2),P=T(N);P.__mousedown=s,P.__mouseup=u;var E=T(P);Vr(E,{direction:"up",useBtnColor:!0}),w(P);var k=L(P,2);k.__mousedown=l,k.__mouseup=u;var Q=T(k);Vr(Q,{direction:"up",useBtnColor:!0}),w(k),w(N),w($),w(p),D(H=>{f=se(p,1,"immersive-controls s-w",null,f,H),Ve(p,"aria-label",m)},[()=>({"m-shifted":i()})]),_t("mouseleave",_,u),_t("mouseleave",C,u),_t("mouseleave",P,u),_t("mouseleave",k,u),b(t,p),F()}it(["keydown","keyup","mousedown","mouseup"]);var Ds=require("@vkontakte/videoplayer-shared/es2015");var Wb=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var bp=class{constructor(){this.flickeringTimeout=Wb(1e3);this.subscriptions=new Ds.Subscription;this.isAuto=!1;this.isLive=!1;this.captions$=new Ds.ValueSubject([]);this.captionsPrepared$=new Ds.ValueSubject([])}subscribe(){return this.subscriptions.add(this.captions$.pipe((0,Ds.filter)(()=>this.isEnabled()),(0,Ds.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 MS=M('<span class="caption-line s-c"><span class="caption-segment s-c"> </span></span>'),VS=M('<span class="caption-line s-c"><span class="caption-segment s-c"></span></span>'),RS=M('<span class="caption-line s-c"><span class="caption-segment s-c"> </span></span>'),NS=M('<div><span class="caption s-c"><!></span></div>'),OS=M("<div><!></div>"),DS={hash:"s-c",code:".subtitles-container.s-c{height:100%;left:0;pointer-events:none;position:absolute;top:0;transition:transform var(--controls-transition-duration);width:100%}.subtitles-container.shifted.s-c{transform:translateY(calc(var(--controls-height)*-1))}.subtitles-container.preview-track-active.s-c{transform:translateY(calc(var(--preview-track-height)*-1))}.preview-track-active.s-c .subtitles-caption:where(.s-c){bottom:var(--preview-track-controls-top-offset)}.subtitles-caption.s-c{bottom:4%;display:flex;justify-content:center;left:4%;position:absolute;right:4%}.subtitles-caption.mobile.s-c{bottom:8%}.subtitles-container.auto.s-c .subtitles-caption:where(.s-c){left:var(--subtitles-caption-margin);right:var(--subtitles-caption-margin)}.caption.s-c{background:rgba(0,0,0,.4);border-radius:4px;display:block;overflow-wrap:normal;padding:4px 8px}.subtitles-container.auto.s-c .caption:where(.s-c){width:100%}.caption-line.s-c{display:block;text-align:center}.subtitles-container.auto.s-c .caption-line:where(.s-c){text-align:left}.caption-segment.s-c{color:var(--white);display:inline-block;font-size:13px;line-height:1.2;white-space:pre-wrap}"};function tl(t,e){B(e,!0),q(t,DS);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($,"$isAutoSubtitleCaptionVisible$",i),u=g(e,"isMobile",3,!1),m=ve(),p=Nt(),f=m.state.currentSubtitle$,$=m.state.isAutoSubtitleCaptionVisible$,y=m.state.isLive$,_=m.ui.isFullscreen,S=m.ui.previewTrackActive,C=v(()=>!!r().isAuto),I=v(()=>!!a()),N=v(()=>e.playerSize.width*.02),P=v(()=>u()&&!l()||n(N)<=p.minSubtitlesFontSize?p.minSubtitlesFontSize:n(N)),E=K(null);Oe(()=>{var X,re,Z;(X=n(E))==null||X.setIsAuto(n(C)),(re=n(E))==null||re.setIsLive(n(I)),(Z=n(E))==null||Z.setCaptions(e.captions)});let k=K(ci([[]]));Rt(()=>{O(E,new bp().subscribe(),!0);let X=n(E).captionsPrepared$.subscribe(re=>{O(k,re,!0)});return()=>{var re;(re=n(E))==null||re.destroy(),X.unsubscribe()}}),Rt(()=>{if(n(C)){let X=window.setTimeout(()=>{$.set(!1)},p.autoSubtitlesTimeout);return()=>{window.clearTimeout(X)}}else $.set(!1)});let Q=v(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var H=OS();let z;var Y=T(H);{var le=X=>{var re=NS();let Z;var we=T(re),ue=T(we);{var ne=xe=>{var J=MS(),Ne=T(J),pe=T(Ne,!0);w(Ne),w(J),D(A=>{var We;Qe(Ne,`font-size: ${(We=n(P))!=null?We:""}px`),me(pe,A)},[()=>G("subtitles_auto_caption")]),b(xe,J)},_e=(xe,J)=>{{var Ne=A=>{var We=Le(),Te=de(We);Ti(Te,17,()=>n(k),Ud,(j,ie)=>{var De=VS(),Be=T(De);Ti(Be,21,()=>n(ie),({value:ot,timeAppeared:U})=>U,(ot,U)=>{let ke=()=>n(U).value,Pe=()=>n(U).timeAppeared;var Ue=Le(),Je=de(Ue);{var ye=Ae=>{var Fe=vs();D(()=>me(Fe,ke())),b(Ae,Fe)};R(Je,Ae=>{(!Pe()||Pe()<=e.position)&&Ae(ye)})}b(ot,Ue)}),w(Be),w(De),D(()=>{var ot;return Qe(Be,`font-size: ${(ot=n(P))!=null?ot:""}px`)}),b(j,De)}),b(A,We)},pe=A=>{var We=Le(),Te=de(We);Ti(Te,17,()=>e.captions,({value:j})=>j,(j,ie)=>{let De=()=>n(ie).value;var Be=RS(),ot=T(Be),U=T(ot,!0);w(ot),w(Be),D(()=>{var ke;Qe(ot,`font-size: ${(ke=n(P))!=null?ke:""}px`),me(U,De())}),b(j,Be)}),b(A,We)};R(xe,A=>{var We;n(C)&&((We=n(k))!=null&&We.length)?A(Ne):A(pe,!1)},J)}};R(ue,xe=>{n(C)&&s()?xe(ne):xe(_e,!1)})}w(we),w(re),D(xe=>{var J;Z=se(re,1,"subtitles-caption s-c",null,Z,xe),Qe(re,`--subtitles-caption-margin: ${(J=n(Q))!=null?J:""}%`)},[()=>({mobile:u()})]),b(X,re)};R(Y,X=>{var re;(e.captions.length||(re=n(k))!=null&&re.length)&&X(le)})}w(H),D(X=>z=se(H,1,"subtitles-container s-c",null,z,X),[()=>({shifted:e.shifted,"preview-track-active":d(),auto:n(C)&&!n(I)&&!s()})]),b(t,H),F(),o()}var Kb=require("@vkontakte/videoplayer-core/es2015");var BS=M('<div class="text s-o"> </div>'),FS=M('<div><div class="icon_wrapper s-o"><!></div> <!></div>'),HS={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 Vc(t,e){B(e,!0),q(t,HS);let i=g(e,"chromecastDeviceName",3,"chromecastDeviceName"),o=Nt();var r=FS();let a;var l=T(r),d=T(l);_c(d,{get size(){return"48"},get iconState(){return Kb.ChromecastState.CONNECTED}}),w(l);var s=L(l,2);{var u=m=>{var p=BS(),f=T(p);w(p),D(()=>{var $;return me(f,`Видео воспроизводится на ${($=i())!=null?$:""}`)}),b(m,p)};R(s,m=>{i()&&m(u)})}w(r),D(m=>{a=se(r,1,"wrapper s-o",null,a,m),Qe(r,`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${e.thumbUrl||""}')`)},[()=>({bgCover:o.features.previewNoEmptySpace})]),b(t,r),F()}var US=Ce('<path d="M460 194a4 4 0 0 1 4-4h122a4 4 0 0 1 4 4v82a4 4 0 0 1-4 4H464a4 4 0 0 1-4-4zm6 3a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm112-72a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm-71-37a6 6 0 1 0 0-12 6 6 0 0 0 0 12m36 0a6 6 0 1 0 0-12 6 6 0 0 0 0 12m-18.05 15c6.05 0 11.62 4.45 11.94 4.65 2.11 1.35 3.26.77 3.96.16s1.15-2.81-1.04-4.66c-1.74-1.48-5.8-5.16-14.86-5.15s-12.95 3.5-14.8 5.18c-1.83 1.69-2.28 3.5-.96 4.66s2.31 1.16 4.35-.33c0 .01 5.36-4.51 11.41-4.51"></path>');function yv(t){Ze(t,{width:"200",height:"200",viewBox:"460 190 130 90",testId:"error-icon",children:(e,i)=>{var o=US();b(e,o)},$$slots:{default:!0}})}var zS=M('<div class="container s-5"><!></div>'),WS={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 il(t){q(t,WS);var e=zS(),i=T(e);yv(i,{}),w(e),b(t,e)}var KS=M('<div class="playButton s-a" tabindex="0" role="button"><div class="playButtonBackground s-a"></div> <!></div>'),qS=M('<div data-testid="unstarted-thumb"><!></div>'),QS={hash:"s-a",code:".container.s-a{background-position:50%;background-repeat:no-repeat;background-size:contain;bottom:0;cursor:pointer;left:0;position:absolute;right:0;top:0;transition:opacity .2s,visibility .2s;will-change:opacity}.container.hidden.s-a{opacity:0;visibility:hidden}.container.bgCover.s-a{background-size:cover}.playButton.s-a{align-items:center;display:flex;height:var(--big-play-size);justify-content:center;margin:auto;width:var(--big-play-size)}.playButton.s-a,.playButtonBackground.s-a{bottom:0;left:0;position:absolute;right:0;top:0}.playButtonBackground.s-a{background-color:var(--big-play-bg-color);border-radius:var(--big-play-radius);transition:background .2s,transform .2s;transition-timing-function:ease-out;will-change:background,transform}.container.s-a:hover .playButtonBackground:where(.s-a){background-color:var(--big-play-hover-bg-color);transform:scale(1.15)}.playButton.s-a svg{position:relative}"};function ol(t,e){B(e,!0),q(t,QS);let i=g(e,"iconVisible",3,!0),o=ve(),r=Nt(),a=o.ui.startedByKeyboard$,l=G("tooltip_play"),d=$=>{var _;let y=$.code;["Enter","Space"].includes(y)&&($.stopPropagation(),$.preventDefault(),a.set(!0),(_=e.startVideo)==null||_.call(e))},s=$=>{var y,_;$.stopPropagation(),(y=e.startVideo)==null||y.call(e),(_=e.onClick)==null||_.call(e,$)};var u=qS();let m;u.__click=s,u.__contextmenu=function(...$){var y;(y=e.onContextMenu)==null||y.apply(this,$)};var p=T(u);{var f=$=>{var y=KS();y.__keydown=d;var _=L(T(y),2);Mn(_,{get size(){return"48"}}),w(y),D(()=>Ve(y,"aria-label",l)),b($,y)};R(p,$=>{i()&&$(f)})}return w(u),D($=>{m=se(u,1,"container s-a",null,m,$),Qe(u,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:r.features.previewNoEmptySpace})]),b(t,u),F({handlePressKey:d,handleClick:s})}it(["click","contextmenu","keydown"]);var GS=M('<div data-testid="video_title"><span> </span></div>'),YS={hash:"s-17",code:".title.s-17{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-17{opacity:0;transform:translateY(calc(var(--controls-gradient-height)*-1));visibility:hidden}"};function xv(t,e){B(e,!0),q(t,YS);let i=g(e,"title",3,""),o=g(e,"isHidden",3,!1),r=g(e,"ref",15),a=K(void 0);Rt(()=>{var p;requestAnimationFrame(()=>{var f;(f=e.onVisibilityChanged)==null||f.call(e,!0)});function m(f){var $;f.propertyName==="transform"&&(($=e.onVisibilityChanged)==null||$.call(e,!o()))}return(p=n(a))==null||p.addEventListener("transitionend",m),()=>{var f;return(f=n(a))==null?void 0:f.removeEventListener("transitionend",m)}});var l=GS();let d;var s=T(l),u=T(s,!0);w(s),Xe(s,m=>r(m),()=>r()),w(l),Xe(l,m=>O(a,m),()=>n(a)),D(m=>{d=se(l,1,"title s-17",null,d,m),me(u,i())},[()=>({hidden:o()})]),b(t,l),F()}var qb=require("@vkontakte/videoplayer-shared/es2015");var jS=M('<div class="timer__cell cell s-1a"><span class="cell__value s-1a"> </span> <span class="cell__unit s-1a"> </span></div> <span class="timer__points s-1a"> </span>',1),XS=M('<div class="timer__cell cell s-1a"><span class="cell__value s-1a"> </span> <span class="cell__unit s-1a"> </span></div> <span class="timer__points s-1a"> </span>',1),ZS=M('<div class="timer__cell cell s-1a"><span class="cell__value s-1a"> </span> <span class="cell__unit s-1a"> </span></div> <span class="timer__points s-1a"> </span>',1),JS=M('<div class="timer__cell cell s-1a"><span class="cell__value s-1a"> </span> <span class="cell__unit s-1a"> </span></div>'),e2=M("<div><!> <!> <!> <!></div>"),t2={hash:"s-1a",code:".timer__container.s-1a{align-items:flex-start;display:flex;justify-content:center}.cell.s-1a{align-items:center;display:flex;flex-direction:column}.cell__value.s-1a{font-size:48px;font-weight:600;line-height:1.2}.small.s-1a .cell__value:where(.s-1a){font-size:24px}.cell__unit.s-1a{font-size:14px;font-weight:400;line-height:1.2}.small.s-1a .cell__unit:where(.s-1a){font-size:12px}.timer__points.s-1a{display:inline-block;font-size:42px;font-weight:600;line-height:1.2;margin:0 8px}.small.s-1a .timer__points:where(.s-1a){font-size:20px}"};function wv(t,e){B(e,!0),q(t,t2);let i=K(""),o=K(""),r=K(""),a=K(""),l,d=32,s=d/2,u=H=>String(H).padStart(2,"0"),m=H=>Math.max(H.length,1),p=H=>`${(e.isSmallSize?s:d)*m(H)}px`,f=H=>{let z=Math.floor(H/86400);z&&(H-=z*86400,O(i,u(z),!0));let Y=Math.floor(H/3600);O(o,u(Y),!0);let le=Math.floor(H/60)%60;O(r,u(le),!0);let X=H%60;O(a,u(X),!0)},$=()=>{let H=Math.floor(Date.now()/1e3),z=e.startTime-H;f(z),z>=1?l=requestAnimationFrame($):e.onTimerOver()};Rt(()=>{l=requestAnimationFrame($)}),gn(()=>{cancelAnimationFrame(l)});var y=e2();let _;var S=T(y);{var C=H=>{var z=jS(),Y=de(z);let le;var X=T(Y),re=T(X,!0);w(X);var Z=L(X,2),we=T(Z,!0);w(Z),w(Y);var ue=L(Y,2),ne=T(ue,!0);w(ue),D((_e,xe,J)=>{le=Qe(Y,"",le,{width:_e}),me(re,n(i)),me(we,xe),me(ne,J)},[()=>p(n(i)),()=>G("waiting_live_day_value"),()=>G("waiting_live_colon")]),b(H,z)};R(S,H=>{n(i)&&H(C)})}var I=L(S,2);{var N=H=>{var z=XS(),Y=de(z);let le;var X=T(Y),re=T(X,!0);w(X);var Z=L(X,2),we=T(Z,!0);w(Z),w(Y);var ue=L(Y,2),ne=T(ue,!0);w(ue),D((_e,xe,J)=>{le=Qe(Y,"",le,{width:_e}),me(re,n(o)),me(we,xe),me(ne,J)},[()=>p(n(o)),()=>G("waiting_live_hour_value"),()=>G("waiting_live_colon")]),b(H,z)};R(I,H=>{n(o)&&H(N)})}var P=L(I,2);{var E=H=>{var z=ZS(),Y=de(z);let le;var X=T(Y),re=T(X,!0);w(X);var Z=L(X,2),we=T(Z,!0);w(Z),w(Y);var ue=L(Y,2),ne=T(ue,!0);w(ue),D((_e,xe,J)=>{le=Qe(Y,"",le,{width:_e}),me(re,n(r)),me(we,xe),me(ne,J)},[()=>p(n(r)),()=>G("waiting_live_minute_value"),()=>G("waiting_live_colon")]),b(H,z)};R(P,H=>{n(r)&&H(E)})}var k=L(P,2);{var Q=H=>{var z=JS();let Y;var le=T(z),X=T(le,!0);w(le);var re=L(le,2),Z=T(re,!0);w(re),w(z),D((we,ue)=>{Y=Qe(z,"",Y,{width:we}),me(X,n(a)),me(Z,ue)},[()=>p(n(a)),()=>G("waiting_live_second_value")]),b(H,z)};R(k,H=>{n(a)&&H(Q)})}w(y),D(H=>_=se(y,1,"timer__container s-1a",null,_,H),[()=>({small:e.isSmallSize})]),b(t,y),F()}var i2=M('<div class="waiting s-v"><span> </span></div>'),o2=M('<div class="upcoming-timer timer s-v"><span> </span> <!></div>'),n2=M('<div class="waiting-container s-v"><!></div>'),r2={hash:"s-v",code:'.waiting-container.s-v{background-color:var(--black);background-position:50%;background-repeat:no-repeat;background-size:cover;white-space:nowrap}.waiting-container.s-v,.waiting-container.s-v:before{height:100%;left:0;position:absolute;top:0;width:100%}.waiting-container.s-v:before{backdrop-filter:blur(15px);background-color:rgba(0,0,0,.56);content:"";z-index:1}.waiting.s-v{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-v{font-size:20px;font-weight:600;line-height:1.2}.upcoming-timer.s-v{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:2}.timer.s-v{align-items:center;display:flex;flex-direction:column;justify-content:center}.timer__title.s-v{display:inline-block;font-size:20px;font-weight:600;line-height:1.2;margin-bottom:12px;vertical-align:middle}.small.s-v{font-size:15px}.medium.s-v{font-size:17px}'};function Rc(t,e){B(e,!0),q(t,r2);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}),m=v(()=>{var S,C;return!n(u)&&(((S=n(d))!=null?S:1/0)<=699||((C=n(s))!=null?C:1/0)<=599)}),p=e.onUpcomingLiveViewStateChanged?(0,qb.throttleFn)(()=>{cancelAnimationFrame(l),l=requestAnimationFrame(()=>{let S={type:n(o)?"expired":"default",size:n(u)?"s":n(m)?"m":"l"},C=n(o)?n(r):n(a);e.onUpcomingLiveViewStateChanged(S,C)})},300):void 0;Oe(()=>{n(s),n(d),n(o),p==null||p()}),gn(()=>{if(cancelAnimationFrame(l),p==null||p.cancel(),e.onUpcomingLiveViewStateChanged){let S={type:n(o)?"expired":"default",size:n(u)?"s":n(m)?"m":"l"};e.onUpcomingLiveViewStateChanged(S)}});var f=n2();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 $=T(f);{var y=S=>{var C=i2(),I=T(C);let N;var P=T(I,!0);w(I),w(C),Xe(C,E=>O(r,E),()=>n(r)),D((E,k)=>{N=se(I,1,"waiting__title s-v",null,N,E),me(P,k)},[()=>({medium:n(m),small:n(u)}),()=>G("waiting_live_upcoming_title")]),b(S,C)},_=S=>{var C=o2(),I=T(C);let N;var P=T(I,!0);w(I);var E=L(I,2);let k=v(()=>n(u)||n(m)),Q=v(()=>i()||0);wv(E,{get isSmallSize(){return n(k)},get startTime(){return n(Q)},onTimerOver:()=>O(o,!0)}),w(C),Xe(C,H=>O(a,H),()=>n(a)),D((H,z)=>{N=se(I,1,"timer__title s-v",null,N,H),me(P,z)},[()=>({medium:n(m),small:n(u)}),()=>G("waiting_live_timer_title")]),b(S,C)};R($,S=>{n(o)?S(y):S(_,!1)})}w(f),D(()=>Qe(f,`background-image: url(${e.thumbUrl})`)),kn(f,"clientWidth",S=>O(d,S)),kn(f,"clientHeight",S=>O(s,S)),b(t,f),F()}it(["contextmenu","click"]);var s2=M('<div class="waiting-container s-p"><div class="waiting-caption s-p"><!> <p class="waiting-title s-p"> </p></div></div>'),a2={hash:"s-p",code:'.waiting-container.s-p{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-p,.waiting-container.s-p:before{height:100%;left:0;position:absolute;top:0;width:100%}.waiting-container.s-p:before{backdrop-filter:blur(10px);background-color:rgba(0,0,0,.4);content:""}.waiting-caption.s-p{align-items:center;display:flex;flex-direction:column;position:relative}.waiting-title.s-p{font-size:20px;font-weight:400;line-height:1.2;margin:0;padding:20px;text-align:center}'};function nl(t,e){B(e,!0),q(t,a2);let i=g(e,"thumbUrl",3,""),o={recover:G("waiting_live_recover_title"),record:G("waiting_record_title")},r=v(()=>o[e.kind]||"");var a=s2();a.__contextmenu=function(...m){var p;(p=e.onContextMenu)==null||p.apply(this,m)},a.__click=function(...m){var p;(p=e.onClick)==null||p.apply(this,m)};var l=T(a),d=T(l);Ka(d,{style:"position: static; transform: translate(0, 0)"});var s=L(d,2),u=T(s,!0);w(s),w(l),w(a),D(()=>{Qe(a,`background-image: url('${i()}')`),me(u,n(r))}),b(t,a),F()}it(["contextmenu","click"]);var l2=Ce('<path d="M6 10.2 3.5 7.7a.99.99 0 0 0-1.4 1.4l3.2 3.2a1 1 0 0 0 1.4 0l7.6-7.6a.99.99 0 0 0-1.4-1.4z"></path>');function Sv(t){Ze(t,{width:"16",height:"16",testId:"check-mark-icon",children:(e,i)=>{var o=l2();b(e,o)},$$slots:{default:!0}})}var d2=M('<div class="select-icon s-1x"><!></div>'),c2={hash:"s-1x",code:".select-icon.s-1x{margin-right:auto;opacity:.9;padding-right:12px;position:relative;top:3px}"};function Nc(t){q(t,c2);var e=d2(),i=T(e);Sv(i,{}),w(e),b(t,e)}var u2=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},p2=(t,e)=>{jl(t,()=>e.item.selectItem(e.item.value))},f2=M("<p> </p>"),m2=M('<p class="sublabel s-1s"> </p>'),v2=M('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),g2={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 Tv(t,e){B(e,!0),q(t,g2);let i=g(e,"isMobile",3,!1);var o=v2();let r;o.__click=[u2,e],o.__keydown=[p2,e];var a=T(o);{var l=y=>{Nc(y,{})};R(a,y=>{e.item.selected&&y(l)})}var d=L(a,2);let s;var u=T(d);{var m=y=>{var _=Le(),S=de(_);Bi(S,()=>e.item.valueComponent,(C,I)=>{I(C,As(()=>{var N;return(N=e.item.valueComponentParams)!=null?N:{}}))}),b(y,_)},p=y=>{var _=f2();let S;var C=T(_,!0);w(_),D(I=>{var N;S=se(_,1,"label s-1s",null,S,I),me(C,(N=e.item.label)!=null?N:e.item.value)},[()=>({mobile:i()})]),b(y,_)};R(u,y=>{e.item.valueComponent?y(m):y(p,!1)})}var f=L(u,2);{var $=y=>{var _=m2(),S=T(_,!0);w(_),D(()=>me(S,e.item.sublabel)),b(y,_)};R(f,y=>{e.item.sublabel&&y($)})}w(d),w(o),D((y,_,S)=>{r=se(o,1,"item",null,r,y),Ve(o,"data-value",e.item.value),Ve(o,"aria-label",_),Ve(o,"data-testid",e.item.dataTestid),s=se(d,1,"menu-item-value s-1s",null,s,S),Ve(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>{var y,_;return(_=(y=e.item.ariaLabel)!=null?y:e.item.label)!=null?_:e.item.value.toString()},()=>({"submenu-value-mobile":i()})]),b(t,o),F()}it(["click","keydown"]);var h2=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function Cv(t,e){B(e,!0);let i=g(e,"isMobile",3,!1),o=g(e,"refMenuItems",15),r=v(()=>()=>e.openSubMenuList(e.item.children)),a=v(()=>_=>ep(_,n(r)));var l=h2();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=_=>{Nc(_,{})};R(s,_=>{e.item.selected&&_(u)})}var m=L(s,2);let p;var f=T(m);{var $=_=>{var S=Le();let C=v(()=>e.item.valueComponent);var I=de(S);Bi(I,()=>n(C),(N,P)=>{P(N,As(()=>{var E;return(E=e.item.valueComponentParams)!=null?E:{}}))}),b(_,S)},y=_=>{var S=vs();D(()=>me(S,e.item.label)),b(_,S)};R(f,_=>{e.item.valueComponent?_($):_(y,!1)})}w(m),w(l),Xe(l,_=>o(o()[e.item.id]=_,!0),()=>{var _;return(_=o())==null?void 0:_[e.item.id]}),D((_,S)=>{var C;d=se(l,1,"item",null,d,_),Ve(l,"aria-label",(C=e.item.ariaLabel)!=null?C:e.item.label),Ve(l,"data-testid",e.item.id),p=se(m,1,"menu-item-value",null,p,S)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),b(t,l),F()}it(["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 b2=(t,e)=>{lb(t,e.returnFromSubMenu,e.closeSettingsMenu)},$2=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},y2=(t,e)=>{ac(t)&&(Rr(t),e.returnFromSubMenu())},x2=M('<div><ul role="menu"><li role="menuitem" tabindex="0" data-testid="return-to-settings-menu"><!> <p class="title s-1l"> </p></li> <!></ul></div>'),w2={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 Ev(t,e){B(e,!0),q(t,w2);let[i,o]=Re(),r=()=>x(p,"$isFullscreen",i),a=()=>x(f,"$playerSize",i),l=g(e,"isMobile",3,!1),d=g(e,"playerControlsHeight",3,0),s=g(e,"ariaLabelReturnFromSubMenu",19,()=>G("aria_label_submenu_back")),u=g(e,"listRef",15);Rt(()=>{let X=e.items.findIndex(re=>re.selected);u().children[X+1].focus()});let m=ve(),p=m.ui.isFullscreen,f=m.ui.playerSize,$=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=x2();let N;var P=T(I);let E;P.__keydown=[b2,e];var k=T(P);let Q;k.__click=[$2,e],k.__keydown=[y2,e];var H=T(k);Vr(H,{direction:"left"});var z=L(H,2),Y=T(z,!0);w(z),w(k),Xe(k,X=>O($,X),()=>n($));var le=L(k,2);Ti(le,17,()=>e.items,Ud,(X,re)=>{var Z=Le(),we=de(Z);{var ue=_e=>{Tv(_e,{get item(){return n(re)},get isMobile(){return l()}})},ne=(_e,xe)=>{{var J=Ne=>{Cv(Ne,{get isMobile(){return l()},get item(){return n(re)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};R(_e,Ne=>{n(re).type==="OPEN_SUB_MENU"&&Ne(J)},xe)}};R(we,_e=>{n(re).type==="SELECT_VALUE"?_e(ue):_e(ne,!1)})}b(X,Z)}),w(P),Xe(P,X=>u(X),()=>u()),w(I),D((X,re,Z)=>{N=se(I,1,"sub-menu menu s-1l",null,N,X),Ve(I,"data-testid",`${e.id}-sub-menu`),Qe(I,`min-width: ${n(C)}px`),E=se(P,1,"items s-1l",null,E,re),Qe(P,n(S)),Q=se(k,1,"item header back s-1l",null,Q,Z),Ve(k,"aria-label",s()),me(Y,e.title)},[()=>({desktop:!l(),mobile:l()}),()=>({mobile:l()}),()=>({mobile:l()})]),kn(k,"clientWidth",X=>O(y,X)),kn(k,"clientHeight",X=>O(_,X)),b(t,I),F(),o()}it(["keydown","click"]);var Gb=require("@vkontakte/videoplayer-shared/es2015");var S2=(t,e)=>ep(t,e()),T2=(t,e)=>{t.stopPropagation(),e()()},C2=M('<div class="value s-1m"> </div>'),I2=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),E2={hash:"s-1m",code:".value.s-1m{opacity:.7;overflow:hidden;position:relative;text-overflow:ellipsis}"};function Pv(t,e){B(e,!0),q(t,E2);let i=g(e,"isMobile",3,!1),o=g(e,"onClick",3,Gb.noop),r=g(e,"valueComponent",3,void 0),a=g(e,"ref",15);var l=I2();let d;l.__click=[T2,o],l.__keydown=[S2,o];var s=T(l),u=T(s);{var m=C=>{Xa(C,{get icon(){return e.icon}})},p=C=>{var I=Le();let N=v(()=>e.icon);var P=de(I);Bi(P,()=>n(N),(E,k)=>{k(E,{})}),b(C,I)};R(u,C=>{typeof e.icon=="string"?C(m):C(p,!1)})}w(s);var f=L(s,2),$=T(f,!0);w(f);var y=L(f,2);{var _=C=>{var I=Le();let N=v(r);var P=de(I);Bi(P,()=>n(N),(E,k)=>{k(E,{})}),b(C,I)},S=C=>{var I=C2(),N=T(I,!0);w(I),D(()=>me(N,e.value)),b(C,I)};R(y,C=>{r()?C(_):C(S,!1)})}w(l),Xe(l,C=>a(C),()=>a()),D(C=>{d=se(l,1,"item",null,d,C),Ve(l,"aria-label",e.ariaLabel),Ve(l,"data-testid",e.id),me($,e.label)},[()=>({mobile:i()})]),b(t,l),F()}it(["click","keydown"]);var Av=require("@vkontakte/videoplayer-shared/es2015");var P2=(t,e)=>{jl(t,()=>e())},A2=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),k2=M('<img class="icon" aria-hidden="true"/>'),L2=M('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label s-1n"> </div></li>'),M2={hash:"s-1n",code:".label.s-1n{overflow:hidden;text-overflow:ellipsis}"};function kv(t,e){B(e,!0),q(t,M2);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=()=>{O(a,!0)},d=S=>{S==null||S.stopPropagation(),o()(),r()()};var s=L2();let u;s.__click=d,s.__keydown=[P2,d];var m=T(s),p=T(m);{var f=S=>{var C=Le(),I=de(C);{var N=E=>{var k=A2();b(E,k)},P=E=>{var k=k2();D(()=>Ve(k,"src",e.icon)),_t("error",k,l),ka(k),b(E,k)};R(I,E=>{n(a)?E(N):E(P,!1)})}b(S,C)},$=S=>{var C=Le();let I=v(()=>e.icon);var N=de(C);Bi(N,()=>n(I),(P,E)=>{E(P,{})}),b(S,C)};R(p,S=>{typeof e.icon=="string"?S(f):S($,!1)})}w(m);var y=L(m,2),_=T(y,!0);w(y),w(s),D(S=>{var C;u=se(s,1,"item",null,u,S),Ve(s,"aria-label",(C=e.ariaLabel)!=null?C:e.label),Ve(s,"data-testid",e.id),me(_,e.label)},[()=>({mobile:i()})]),b(t,s),F()}it(["click","keydown"]);var Yb=require("@vkontakte/videoplayer-shared/es2015");var V2=M('<div class="toggle_wrap s-1r"><div></div> <div class="toggle-label s-1r"></div></div>'),R2={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,R2);let i=g(e,"enabled",3,!1);var o=V2(),r=T(o);let a;vi(2),w(o),D(l=>a=se(r,1,"toggle s-1r",null,a,l),[()=>({on:i()})]),b(t,o)}var N2=(t,e,i)=>{db(t,e(),o=>i()(o))},O2=(t,e,i)=>{t.stopPropagation(),e()(!i())},D2=M('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),B2=M('<li role="menuitem" tabindex="0"><!></li>');function Mv(t,e){B(e,!0);let i=g(e,"isMobile",3,!1),o=g(e,"onClick",3,Yb.noop),r=g(e,"enabled",3,!1),a=g(e,"tooltipText",3,void 0),l=g(e,"maxTooltipWidth",3,void 0);var d=B2();let s;d.__click=[O2,o,r],d.__keydown=[N2,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:(m,p)=>{var f=D2();let $;var y=T(f),_=T(y);{var S=E=>{Xa(E,{get icon(){return e.icon}})},C=E=>{var k=Le();let Q=v(()=>e.icon);var H=de(k);Bi(H,()=>n(Q),(z,Y)=>{Y(z,{})}),b(E,k)};R(_,E=>{typeof e.icon=="string"?E(S):E(C,!1)})}w(y);var I=L(y,2),N=T(I,!0);w(I);var P=L(I,2);Lv(P,{get enabled(){return r()}}),w(f),D(E=>{$=se(f,1,"switch-wrapper",null,$,E),me(N,e.label)},[()=>({mobile:i()})]),b(m,f)},$$slots:{default:!0}}),w(d),D(m=>{var p;s=se(d,1,"item switch-item",null,s,m),Ve(d,"aria-label",(p=e.ariaLabel)!=null?p:e.label),Ve(d,"data-testid",e.id)},[()=>({mobile:i()})]),b(t,d),F()}it(["click","keydown"]);var Dc=require("@vkontakte/videoplayer-shared/es2015");var jb=()=>{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:()=>{O(t,n(t).slice(0,-1),!0)},popAllSubMenus:()=>{O(t,[],!0)}}};var Xb=require("@vkontakte/videoplayer-shared/es2015");var F2=M('<div class="quality-icon s-1q"><!></div>'),H2=M('<div class="quality-label s-1q"><span> </span> <!></div>'),U2={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 rl(t,e){B(e,!0),q(t,U2);let i=g(e,"isSubCase",3,!1),o=v(()=>e.quality?(0,Xb.getVideoQualityLabel)(e.quality):""),r=v(()=>rp(e.quality));var a=H2(),l=T(a);let d;var s=T(l,!0);w(l);var u=L(l,2);{var m=p=>{var f=F2();let $=v(()=>n(r));var y=T(f);Bi(y,()=>n($),(_,S)=>{S(_,{})}),w(f),D(()=>Ve(f,"data-testid",`${n(o)}-icon`)),b(p,f)};R(u,p=>{n(r)&&!e.isMobile&&p(m)})}w(a),D(p=>{d=se(l,1,"s-1q",null,d,p),me(s,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),b(t,a),F()}var t$=require("@vkontakte/videoplayer-shared/es2015");var Vv=require("@vkontakte/videoplayer-core/es2015");var Zb=({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=Zb({quality:t,availableQualities:e});return i?t===Vv.VideoQuality.INVARIANT?G("auto_quality_invariant"):G("auto_quality",{actual:o}):o},e$=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===Vv.VideoQuality.INVARIANT?i:`${i}${Zb({quality:t,availableQualities:e})}`:"...";var z2=M('<div class="menu-item-value-wrapper s-1u"><!></div>'),W2={hash:"s-1u",code:".menu-item-value-wrapper.s-1u{line-height:normal}"};function ld(t,e){B(e,!0),q(t,W2);let[i,o]=Re(),r=()=>x(s,"$currentQuality$",i),a=()=>x(u,"$availableQualities$",i),l=()=>x(m,"$isMobile$",i),d=ve(),s=d.state.currentQuality$,u=d.state.availableQualities$,m=d.ui.isMobile,p=" · ",f=v(()=>e.prefix+(e.selected&&r()!==t$.VideoQuality.INVARIANT?p:"")),$=v(()=>e$({prefix:n(f),quality:r(),availableQualities:a(),onlyPrefix:!e.selected}));var y=z2(),_=T(y);let S=v(()=>e.selected?r():void 0);rl(_,{get quality(){return n(S)},get label(){return n($)},get isMobile(){return l()},isSubCase:!0}),w(y),b(t,y),F(),o()}var K2=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")},q2={br:!0,span:!0},Rv=(t,e={})=>{var d,s,u,m,p,f,$;if(!t)return t;let i=Ie(Ie({},q2),e),o=Object.keys(i);if(!o.length)return t;let r=K2(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)||((m=y.groups)==null?void 0:m.keyi18nself)||"",{index:C}=y;if(!i[S]){a.push(t.slice(l,C)),l=C+_.length;continue}let I=(p=y.groups)!=null&&p.childrenhtml?Rv(y.groups.childrenhtml,i):"",N=(f=y.groups)!=null&&f.childrenhtml?_.replace(new RegExp(($=y.groups)==null?void 0:$.childrenhtml),()=>I||""):_;a.push(t.slice(l,C),N),l=C+_.length}return l===0?t:(a.push(t.slice(l)),a.join(""))};function Oc(t,e){B(e,!1);let i=g(e,"message",8),o=Rv(i());To();var r=Le(),a=de(r);{var l=d=>{var s=Le(),u=de(s);zd(u,()=>o),b(d,s)};R(a,d=>{o&&d(l)})}b(t,r),F()}var Q2=M('<p class="quality-applies sublabel s-1t"><!></p>'),G2={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 Nv(t,e){B(e,!1),q(t,G2),To();var i=Q2(),o=T(i);let r=Cn(()=>G("quality_applience",{action:`<span>${G("quality_applience_action")}</span>`}));Oc(o,{get message(){return n(r)}}),w(i),b(t,i),F()}var o$=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"quality-other-settings",type:"OPEN_SUB_MENU",selected:o,valueComponent:ld,valueComponentParams:{prefix:G("other_quality"),selected:o},children:"quality-other-settings"}},Ov=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"quality-auto",type:"SELECT_VALUE",value:"auto",label:G("auto_quality_limit"),valueComponent:e?ld:void 0,valueComponentParams:{prefix:G("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),n$=()=>({id:"quality-appliance-settings",type:"OPEN_SUB_MENU",valueComponent:Nv,bottomBordered:!0,children:"quality-appliance"}),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:G("high_quality"),valueComponent:t?ld:void 0,valueComponentParams:{prefix:G("high_quality"),selected:i},sublabel:G("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:G("traffic_saving_quality"),valueComponent:t?ld:void 0,valueComponentParams:{prefix:G("traffic_saving_quality"),selected:i},sublabel:G("traffic_saving_quality_description")});var $p=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),yp=(t,e)=>{var l;if(!t)return"";let{language:i,label:o}=t,r;if(i==="und"?r=void 0:i&&(r=(l=yc(i))!=null?l:i),o&&i&&r){let d=e.filter(s=>s.label===o&&s.language===i);if(d.length===1)return G("audio_stream_display_language_label",{language:r,label:o});{let s=$p(t,d);return G("audio_stream_display_language_label_index",{language:r,label:o,index:s})}}if(o){let d=e.filter(s=>s.label===o);if(d.length===1)return o;{let s=$p(t,d);return G("audio_stream_display_label_index",{label:o,index:s})}}if(i&&r){let d=e.filter(s=>s.language===i);if(d.length===1)return r;{let s=$p(t,d);return G("audio_stream_display_language_index",{language:r,index:s})}}let a=$p(t,e);return G("audio_stream_display_unknown",{index:a})};var Y2={"quality-settings":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:G("submenu_quality"),id:"quality-settings",items:[n$(t),...a.map(({handler:l,selected:d})=>l({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),o$(t)]}},"quality-other-settings":({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"quality-other-settings",title:G("submenu_quality"),closeSettingsMenu:t,items:i.map(r=>({type:"SELECT_VALUE",value:r.value,valueComponent: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-appliance":t=>{var i,o,r;let{closeSettingsMenu:e}=t;return{id:"quality-appliance",title:G("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:Ov,selected:((i=zu())==null?void 0:i.type)==="auto_quality"},{handler:Bv,selected:((o=zu())==null?void 0:o.type)==="traffic_saving"},{handler:Dv,selected:((r=zu())==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:G("submenu_audio_languages"),closeSettingsMenu:t,items:e.map(r=>({type:"SELECT_VALUE",value:r,dataValue:r.id,selectItem:o,selected:r.id===(i==null?void 0:i.id),label:yp(r,e)}))}),"playback-rate":({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"playback-rate",title:G("submenu_playback_rate"),closeSettingsMenu:t,items:e.map(o=>({type:"SELECT_VALUE",value:o.value,selectItem:i,selected:o.selected,label:o.displayValue}))}),subtitles:({availableSubtitlesList:t,selectSubtitle:e})=>({id:"subtitles",minWidth:164,title:G("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i.value,selectItem:()=>e(i),selected:i.selected,label:i.displayValue,dataTestid:i.value===Rn?"sub_off":void 0}))})},r$=({subMenuId:t,context:e})=>t?[Y2[t](e)]:[];var j2=Ce('<path d="M3.1 9.5c0-2.24 0-3.36.44-4.22A4 4 0 015.28 3.54C6.14 3.1 7.26 3.1 9.5 3.1h5c2.24 0 3.36 0 4.22.44a4 4 0 011.74 1.74c.44.86.44 1.98.44 4.22s0 3.36-.44 4.22a4 4 0 01-1.74 1.74c-.84.43-1.93.44-4.07.44l.55 2.2h1.9a.9.9 0 010 1.8H6.9a.9.9 0 110-1.8h1.9l.55-2.2c-2.14 0-3.23-.01-4.07-.44a4 4 0 01-1.74-1.74C3.1 12.86 3.1 11.74 3.1 9.5m11.4-4.6h-5c-1.15 0-1.9 0-2.48.05-.56.04-.79.12-.92.19a2.2 2.2 0 00-.96.96 2 2 0 00-.2.92C4.9 7.6 4.9 8.35 4.9 9.5s0 1.9.05 2.48c.04.56.12.79.19.92q.33.63.96.96c.13.07.36.15.92.2.58.04 1.33.04 2.48.04h5c1.15 0 1.9 0 2.48-.05.56-.04.79-.12.92-.19a2.2 2.2 0 00.96-.96c.07-.13.15-.36.2-.92.04-.58.04-1.33.04-2.48s0-1.9-.05-2.48a3 3 0 00-.19-.92 2.2 2.2 0 00-.96-.96 2 2 0 00-.92-.2c-.58-.04-1.33-.04-2.48-.04m-3.3 11-.55 2.2h2.7l-.55-2.2z"></path>');function Fv(t){Ze(t,{testId:"traffic-saving-icon",children:(e,i)=>{var o=j2();b(e,o)},$$slots:{default:!0}})}var X2=Ce('<path d="M8.3 14.25c1.86 1.9 5.5.02 5.5-3.55V5.64l2.4-.7A2.74 2.74 0 0 0 18 2.37V.64a.75.75 0 0 0-.92-.62l-.26.06C15.88.3 14.93.51 14 .8c-1.33.45-2.03 1.62-2.01 3.08V9c-3.89.2-5.64 3.29-3.7 5.25ZM.9.1a.9.9 0 0 0 0 1.8h8.2a.9.9 0 0 0 0-1.8H.9ZM.9 5.1a.9.9 0 1 0 0 1.8h7.2a.9.9 0 0 0 0-1.8H.9ZM0 11c0-.5.4-.9.9-.9h4.18a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 11Z"></path>');function Hv(t){Ze(t,{width:"18",height:"15",children:(e,i)=>{var o=X2();b(e,o)},$$slots:{default:!0}})}var Z2=Ce('<path d="M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A8 8 0 0 1 11 4.07M5.69 7.1 4.26 5.68A10 10 0 0 0 2.05 11h2.02a8 8 0 0 1 1.62-3.9M2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A8 8 0 0 1 4.07 13zM11 21.95v-2.02a8 8 0 0 1-3.9-1.62l-1.42 1.43A10 10 0 0 0 11 21.95M22 12c0 5.16-3.92 9.42-8.95 9.95v-2.02C16.97 19.41 20 16.05 20 12s-3.03-7.41-6.95-7.93V2.05C18.08 2.58 22 6.84 22 12M10.69 8.58l4.74 2.73a.8.8 0 0 1 0 1.37l-4.74 2.74a.8.8 0 0 1-1.19-.68V9.26a.8.8 0 0 1 1.19-.68"></path>');function Uv(t){Ze(t,{testId:"play-speed-icon",children:(e,i)=>{var o=Z2();b(e,o)},$$slots:{default:!0}})}var J2=Ce('<path d="M12 2a.9.9 0 01.9.9v10.93l4.56-4.57a.9.9 0 011.28 1.28l-6.1 6.1a.9.9 0 01-1.28 0l-6.1-6.1a.9.9 0 111.28-1.28l4.56 4.57V2.9A.9.9 0 0112 2M4 20a.9.9 0 01.9-.9h14.2a.9.9 0 110 1.8H4.9A.9.9 0 014 20"></path>');function zv(t){Ze(t,{testId:"download-icon",children:(e,i)=>{var o=J2();b(e,o)},$$slots:{default:!0}})}var eT=Ce('<path d="M8.86 2.1h6.28c.67 0 1.2.21 1.68.7l4.38 4.38c.48.48.7 1 .7 1.68v6.28c0 .68-.22 1.2-.7 1.68l-4.38 4.38c-.48.48-1 .7-1.68.7H8.86c-.68 0-1.2-.22-1.68-.7L2.8 16.82c-.48-.48-.7-1-.7-1.68V8.86c0-.68.22-1.2.7-1.68L7.18 2.8c.48-.49 1-.7 1.68-.7m-.44 2L4.1 8.43c-.18.18-.21.24-.21.5v6.17c0 .25.03.31.2.5l4.32 4.3c.18.18.24.21.5.21h6.17c.25 0 .31-.03.5-.2l4.3-4.32c.18-.18.21-.24.21-.5V8.92c0-.25-.03-.31-.2-.5l-4.32-4.3c-.18-.18-.24-.21-.5-.21H8.92c-.25 0-.32.03-.5.2M13 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-.1-8.1a.9.9 0 0 0-1.8 0v5.2a.9.9 0 1 0 1.8 0z"></path>');function Wv(t){Ze(t,{testId:"report-icon",children:(e,i)=>{var o=eT();b(e,o)},$$slots:{default:!0}})}var tT=Ce('<path d="M4 12.3V12c0-1.47 0-2.55.08-3.4.07-.9.21-1.48.45-1.95a4.85 4.85 0 0 1 2.12-2.12 5.1 5.1 0 0 1 1.95-.45C9.5 4 10.68 4 12.3 4h4.51c-.03-.16-.09-.33-.17-.49a2.4 2.4 0 0 0-1.05-1.05c-.3-.16-.63-.21-.93-.24-.29-.02-.64-.02-1.03-.02h-1.37c-1.58 0-2.81 0-3.81.08a6.84 6.84 0 0 0-2.62.64 6.65 6.65 0 0 0-2.9 2.91c-.4.76-.57 1.6-.65 2.62-.08 1-.08 2.23-.08 3.81v1.37c0 .4 0 .74.02 1.03.03.3.08.62.24.93A2.4 2.4 0 0 0 4 16.8V12.3ZM10.08 6h-.03c-.53 0-.97 0-1.33.03-.39.03-.76.1-1.12.28a2.9 2.9 0 0 0-1.3 1.3c-.17.35-.24.72-.27 1.1C6 9.09 6 9.53 6 10.06v7.9c0 .53 0 .97.03 1.33.03.39.1.76.28 1.12a2.9 2.9 0 0 0 1.3 1.3c.35.17.72.24 1.1.27.37.03.81.03 1.33.03h6.91c.53 0 .97 0 1.33-.03.39-.03.76-.1 1.12-.28a2.9 2.9 0 0 0 1.3-1.3c.17-.35.24-.72.27-1.1.03-.37.03-.81.03-1.34v-7.9c0-.53 0-.97-.03-1.33-.03-.39-.1-.76-.28-1.12a2.9 2.9 0 0 0-1.3-1.3 2.96 2.96 0 0 0-1.1-.27C17.91 6 17.47 6 16.94 6h-6.87ZM8.41 7.92c.06-.04.18-.07.45-.1.28-.02.65-.02 1.22-.02h6.84c.57 0 .94 0 1.22.02.27.03.39.06.45.1.21.1.39.28.5.49.03.06.06.18.09.45.02.28.02.65.02 1.22v7.84c0 .57 0 .94-.02 1.22-.03.27-.06.39-.1.45-.1.21-.28.39-.49.5-.06.03-.18.06-.45.09-.28.02-.65.02-1.22.02h-6.84c-.57 0-.94 0-1.22-.02a1.23 1.23 0 0 1-.45-.1 1.1 1.1 0 0 1-.5-.49 1.23 1.23 0 0 1-.09-.45c-.02-.28-.02-.65-.02-1.22v-7.84c0-.57 0-.94.02-1.22.03-.27.06-.39.1-.45.1-.21.28-.39.49-.5Z"></path>');function xp(t){Ze(t,{children:(e,i)=>{var o=tT();b(e,o)},$$slots:{default:!0}})}var iT=Ce('<path d="M12 20.1a8.1 8.1 0 1 0 0-16.2 8.1 8.1 0 0 0 0 16.2m0 1.9a10 10 0 1 1 0-20 10 10 0 0 1 0 20m0-12.37A1.32 1.32 0 1 1 12 7a1.32 1.32 0 0 1 0 2.63m-.95 2.82c0-.54.43-.98.95-.98s.95.44.95.98v3.83c0 .54-.43.98-.95.98a.96.96 0 0 1-.95-.98z"></path>');function Kv(t){Ze(t,{testId:"info-icon",children:(e,i)=>{var o=iT();b(e,o)},$$slots:{default:!0}})}var oT=M('<div class="menu-item-value-wrapper s-1v"><!></div>'),nT={hash:"s-1v",code:".menu-item-value-wrapper.s-1v{line-height:normal}"};function qv(t,e){B(e,!0),q(t,nT);let[i,o]=Re(),r=()=>x(u,"$currentQuality$",i),a=()=>x(m,"$availableQualities$",i),l=()=>x(p,"$isAutoQualityEnabled$",i),d=()=>x(f,"$isMobile$",i),s=ve(),u=s.state.currentQuality$,m=s.state.availableQualities$,p=s.state.isAutoQualityEnabled$,f=s.ui.isMobile,$=v(()=>Jb({quality:r(),availableQualities:a(),isAutoQualityEnabled:l()}));var y=oT(),_=T(y);rl(_,{get quality(){return r()},get label(){return n($)},get isMobile(){return d()}}),w(y),b(t,y),F(),o()}var sT={"quality-settings":({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?G("auto_quality_option"):e)||"";return{id:"quality-settings",type:"OPEN_SUB_MENU",ariaLabel:G("aria_label_menu_quality",{actual:o}),icon:pc,label:G("menu_quality"),value:e,valueComponent:qv,weight:is["quality-settings"],children:i?"quality-settings":"quality-other-settings"}},"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:G("aria_label_submenu_traffic_saving"),icon:Fv,label:G("menu_traffic_saving"),enabled:t,tooltipText:G("traffic_saving_helper_text"),maxTooltipWidth:175}),"audio-languages-settings":({currentAudioStream:t,availableAudioStreams:e})=>{let i=yp(t,e);return{id:"audio-languages-settings",weight:is["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:G("aria_label_menu_audio_languages",{actual:i}),icon:Hv,label:G("menu_audio_languages"),value:i,children:"audio-languages"}},"playback-rate-settings":({availablePlaybackRates:t,currentPlaybackRate:e})=>{var o;let i=((o=t.find(r=>r.value===e))==null?void 0:o.displayValue)||"";return{id:"playback-rate-settings",weight:is["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:G("aria_label_menu_rate",{actual:i}),icon:Uv,label:G("menu_playback_rate"),value:`${e}x`,children:"playback-rate"}},"subtitles-settings":({currentSubtitle:t})=>({id:"subtitles-settings",weight:is["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:G("aria_label_menu_subtitle",{actual:t.displayValue}),icon:la,label:G("subtitles_caption"),value:t.displayValue,children:"subtitles"}),download:({onDownloadClick:t})=>({id:"download",weight:is.download,type:"CLICK",onClick:t,label:G("download_video_caption"),ariaLabel:G("aria_label_menu_download"),icon:zv}),"show-support":({onReportProblemClick:t})=>({id:"show-support",weight:is.report,type:"CLICK",onClick:t,label:G("menu_report"),ariaLabel:`${G("menu_report")}. ${G("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:G("menu_copy_debug"),ariaLabel:G("menu_copy_debug"),icon:xp,isHiddenFor:["desktop"]}),"save-trace-info":({onSaveTraceDataClick:t})=>({id:"save-trace-info",weight:is["save-trace-info"],type:"CLICK",onClick:t,label:G("menu_save_debug"),ariaLabel:G("menu_save_debug"),icon:xp,isHiddenFor:["desktop"]}),"debug-info":({toggleShowDebugInfo:t})=>({id:"debug-info",weight:is["debug-info"],type:"CLICK",onClick:t,ariaLabel:G("aria_label_menu_debug_overlay"),label:G("menu_debug_overlay"),icon:Kv,isHiddenFor:["desktop"]})},s$=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(r=>sT[r](e)),...i.map(r=>jt(Ie({},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 lT=(t,e)=>{Ju(t,e)},dT=M('<div><div> </div> <div class="close s-x"></div></div>'),cT=M('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),uT=M("<div><!> <!></div>"),pT={hash:"s-x",code:'.settings-menu-container.mobile.s-x{width:100%;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.settings-menu-container.s-x ul{list-style-type:none;margin:0;padding:0}.settings-menu-container.s-x .menu{background-color:var(--settings-bg);border-radius:var(--settings-radius);overflow:hidden;transition:opacity .2s,visibility .2s}.settings-menu-container.s-x .menu .item:first-child:not(.mobile){border-top-left-radius:var(--settings-radius);border-top-right-radius:var(--settings-radius)}.settings-menu-container.s-x .menu .item:last-child{border-bottom-left-radius:var(--settings-radius);border-bottom-right-radius:var(--settings-radius)}.settings-menu-container.s-x .settings-menu .item:first-child:not(.mobile){padding-top:6px}.settings-menu-container.s-x .settings-menu .item:last-child:not(.mobile){padding-bottom:6px}.settings-menu-container.s-x .menu.desktop{bottom:0;max-width:100%;position:absolute;right:0}.settings-menu.s-x{line-height:40px}.settings-menu.desktop.s-x{min-width:300px}.settings-menu-container.s-x .menu.mobile{background:var(--mobile-settings-bg);font-size:15px;line-height:50px;width:100%}.settings-menu-container.s-x .menu.mobile.hidden{display:none}.settings-menu-container.s-x .menu .item:not(.switch-item),.settings-menu-container.s-x .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-x .menu .item:hover{background-color:var(--settings-item-bg-hover)}.settings-menu-container.s-x .menu .item.mobile:hover{background:var(--mobile-settings-bg)}.settings-menu.s-x .item:not(.switch-item),.settings-menu.s-x .switch-wrapper{padding:0 32px 0 18px}.settings-menu.s-x .item.mobile:not(.switch-item),.settings-menu.s-x .switch-wrapper.mobile{padding:0 14px}.settings-menu.s-x .icon-wrapper{align-items:center;display:flex;height:24px;justify-content:center;margin-right:16px;min-width:24px;width:24px}.settings-menu.s-x .label{flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis}.settings-menu.s-x .item.header.mobile:where(.s-x){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-x .items::-webkit-scrollbar{width:8px}.settings-menu-container.s-x .items::-webkit-scrollbar-track{background-color:#3a3a3a;border-radius:4px;box-shadow:none}.settings-menu-container.s-x .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-x .items::-webkit-scrollbar-thumb:hover{background-color:#777}.settings-menu-container.s-x .items.mobile{max-height:160px;overflow-x:hidden;overflow-y:auto;text-align:left}.close.s-x{height:12px;margin-right:-12px;padding:12px;position:relative;width:12px}.close.s-x:after,.close.s-x:before{background-color:var(--white);content:" ";height:12px;left:18px;position:absolute;width:2px}.close.s-x:before{transform:rotate(45deg)}.close.s-x:after{transform:rotate(-45deg)}'};function Bc(t,e){B(e,!0),q(t,pT);let[i,o]=Re(),r=()=>x(Be,"$settingsMenuVisible",i),a=()=>x(ot,"$settingsMenuOpenedByKeyboard",i),l=()=>x(Fe,"$debugPanelVisible",i),d=()=>x(ke,"$isMobile",i),s=()=>x(Ae,"$playerSize",i),u=()=>x(De,"$hasMpegSources$",i),m=()=>x(Pe,"$mobileNotReportControlHidden$",i),p=()=>x(J,"$autoQualityLimitingAvailable$",i),f=()=>x(j,"$availableSubtitlesList$",i),$=()=>x(Ue,"$isLiveWithPlaybackSpeed",i),y=()=>x(ne,"$availableAudioStreams$",i),_=()=>x(We,"$availablePlaybackRates$",i),S=()=>x(ue,"$currentAudioStream$",i),C=()=>x(A,"$currentPlaybackRate$",i),I=()=>x(Je,"$trafficSavingEnabled",i),N=()=>x(_e,"$currentQuality$",i),P=()=>x(Ne,"$isAutoQualityEnabled$",i),E=()=>x(Te,"$currentSubtitle$",i),k=()=>x(mt,"$additionalSettingsMenuItems$",i),Q=()=>x(pe,"$isAutoQualityAvailable$",i),H=()=>x(xe,"$availableQualities$",i),z=()=>x(ye,"$highQualityEnabled",i),Y=g(e,"ref",15,void 0),le=g(e,"playerControlsHeight",3,0),X=ci({}),re=ci({}),Z=ve(),we=Nt(),ue=Z.state.audioStream$,ne=Z.state.availableAudioStreams$,_e=Z.state.currentQuality$,xe=Z.state.availableQualities$,J=Z.state.autoQualityLimitingAvailable$,Ne=Z.state.isAutoQualityEnabled$,pe=Z.state.isAutoQualityAvailable$,A=Z.state.currentPlaybackRate$,We=Z.state.availablePlaybackRates$,Te=Z.state.currentSubtitle$,j=Z.state.availableSubtitlesList$,ie=Z.state.canDownload,De=Z.state.hasMpegSources$,Be=Z.ui.settingsMenu.visible$,ot=Z.ui.settingsMenu.openedByBtnKeyboard$,U=Z.ui.settingsMenu.ref$,ke=Z.ui.isMobile,Pe=Z.ui.mobileNotReportControlHidden$,Ue=Z.state.canChangePlaybackSpeed$,Je=Z.state.trafficSavingEnabled$,ye=Z.state.highQualityEnabled$,Ae=Z.ui.playerSize,Fe=Z.ui.debugPanelVisible,Ft=Z.state.isInteractiveTime$,mt=Z.ui.additionalSettingsMenuItems$,Ht=Z.ui.t,lt=Z.actions.internal.downloadVideo,Ct=Z.actions.internal.closeSettingsMenu,oi=Z.actions.internal.openSettingsSubMenu,Ot=Z.actions.internal.closeSettingsSubMenu,$e=K(!1),be=K(void 0),ee=jb();Oe(()=>{!r()&&ee.current&&(Ot(re[ee.current]),ee.popAllSubMenus())}),Oe(()=>{r()||O(be,void 0)}),Oe(()=>{!ee.current&&n(be)&&ab(X,n(be))}),Oe(()=>{Y()&&U.set(Y())});function nt(It){return gt(this,null,function*(){var W;ee.pushSubMenu(It),yield yo(),oi(It,re[It]);let Wt=(W=Y())==null?void 0:W.firstElementChild;Wt&&um(Wt)})}function fe(It){var Wt;It==null||It.stopPropagation(),a()||(Wt=e.returnFocus)==null||Wt.call(e),Ct(),O($e,!1)}function Me(It,Wt){Z.actions.internal.setQuality(It,{appliesTo:Wt}),fe()}function xt(It){Z.actions.internal.setAudioStream(It),fe()}function Lt(It,Wt){Z.actions.internal.setTrafficSavingEnabled(It,Wt),we.features.qualityDetailsSubMenuEnabled&&fe()}function pt(It,Wt){Z.actions.internal.setHighQualityEnabled(It,Wt),fe()}function ce(It){Z.actions.internal.setPlaybackRate(It),fe()}function ze(It){Z.actions.internal.setSubtitle(It),fe()}function Ye(){lt()}function dt(){(0,Dc.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),Z.actions.internal.reportProblem(),Z.actions.internal.pause()}function Ut(){Gl(Z.actions.internal.getDebugTextData())}let zt=()=>{let It=Z.actions.internal.getTraceTextData(),Wt=new Blob([...It],{type:"application/json"}),W=window.URL.createObjectURL(Wt);Oa(W,"vk_player_trace_info","json")};function ri(){Fe.set(!l())}function wi(){O($e,!0)}function Zi(){O($e,!1)}function Dt(){return d()?`max-height: ${Math.round(s().height*.6)}px`:`max-height: ${s().height-32-le()}px; overflow: auto;`}let fi=v(()=>ie&&u()&&!m()),bi=v(()=>we.features.trafficSaving&&!m()&&p()&&!we.features.qualityDetailsSubMenuEnabled),bt=v(()=>f().length>0&&!m()),Jt=v(()=>!!$()&&!m()),Ci=v(()=>we.features.audioLanguages&&y().length>=2&&!m()),Ji=v(()=>!m());Rt(()=>Ft.subscribe(It=>{It&&!d()&&!n($e)&&!a()&&fe()}));let ti=v(()=>{let It=[n(Ji)&&"quality-settings",n(Ci)&&"audio-languages-settings",n(Jt)&&"playback-rate-settings",n(bt)&&"subtitles-settings",n(bi)&&"traffic-saving-switch",n(fi)&&"download",we.showSupport&&"show-support","copy-data",we.features.saveTraceInfoToFile&&"save-trace-info","debug-info"].filter(Wt=>!!Wt);return s$({items:It,context:{qualityDetailsSubMenuEnabled:we.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:_(),currentAudioStream:S(),availableAudioStreams:y(),currentPlaybackRate:C(),selectPlaybackRate:ce,trafficSavingEnabled:I(),toggleTrafficSaving:Lt,currentQuality:N()||Dc.VideoQuality.INVARIANT,isAutoQualityEnabled:P()||!1,currentSubtitle:E(),isMobile:d(),onDownloadClick:Ye,onCopyDataClick:Ut,onReportProblemClick:dt,onSaveTraceDataClick:zt,toggleShowDebugInfo:ri},additionalSettingsMenuItems:k()})}),At=v(()=>r$({subMenuId:ee.current,context:{availablePlaybackRates:_(),selectPlaybackRate:ce,trafficSavingEnabled:I(),toggleTrafficSaving:Lt,currentQuality:N()||Dc.VideoQuality.INVARIANT,isAutoQualityEnabled:P()||!1,isAutoQualityAvailable:Q()||!1,availableQualities:H(),highQualityEnabled:z(),toggleHighQuality:pt,availableAudioStreams:y(),availableSubtitlesList:f(),closeSettingsMenu:Ct,currentAudioStream:S(),isMobile:d(),selectAudioLanguage:xt,selectQuality:Me,selectSubtitle:ze}}));var Ke=uT();let Ii;var xo=T(Ke);{var Io=It=>{var Wt=cT();let W;Wt.__keydown=[lT,Ct];var Mt=T(Wt);{var di=Xt=>{var st=dT();let Ui;var zi=T(st),on=T(zi,!0);w(zi);var Eo=L(zi,2);Eo.__click=fe,w(st),D((Wi,eo)=>{Ui=se(st,1,"item header s-x",null,Ui,Wi),me(on,eo)},[()=>({mobile:d()}),()=>Ht("submenu_settings")]),b(Xt,st)};R(Mt,Xt=>{d()&&Xt(di)})}var ct=L(Mt,2);let Tt;Ti(ct,21,()=>n(ti),Xt=>Xt.id,(Xt,st)=>{var Ui=Le(),zi=de(Ui);{var on=Wi=>{Pv(Wi,{get isMobile(){return d()},get id(){return n(st).id},get icon(){return n(st).icon},get label(){return n(st).label},get ariaLabel(){return n(st).ariaLabel},get value(){return n(st).value},get valueComponent(){return n(st).valueComponent},onClick:()=>{nt(n(st).children),O(be,n(st).id,!0)},get ref(){return X[n(st).id]},set ref(eo){X[n(st).id]=eo}})},Eo=(Wi,eo)=>{{var Nr=lo=>{let ki=v(()=>`${n(st).id}-menu-item`);kv(lo,{get isMobile(){return d()},get id(){return n(ki)},get onClick(){return n(st).onClick},get icon(){return n(st).icon},get label(){return n(st).label},get ariaLabel(){return n(st).ariaLabel},closeSettings:fe})},wo=(lo,ki)=>{{var nn=rn=>{let Nn=v(()=>`${n(st).id}-menu-item`);Mv(rn,{get isMobile(){return d()},get id(){return n(Nn)},get onClick(){return n(st).onClick},get icon(){return n(st).icon},get label(){return n(st).label},get ariaLabel(){return n(st).ariaLabel},get enabled(){return n(st).enabled},get tooltipText(){return n(st).tooltipText},get maxTooltipWidth(){return n(st).maxTooltipWidth}})};R(lo,rn=>{n(st).type==="SWITCH"&&rn(nn)},ki)}};R(Wi,lo=>{n(st).type==="CLICK"?lo(Nr):lo(wo,!1)},eo)}};R(zi,Wi=>{n(st).type==="OPEN_SUB_MENU"?Wi(on):Wi(Eo,!1)})}b(Xt,Ui)}),w(ct),Xe(ct,Xt=>Y(Xt),()=>Y()),w(Wt),D((Xt,st,Ui)=>{W=se(Wt,1,"settings-menu menu s-x",null,W,Xt),Tt=se(ct,1,"items",null,Tt,st),Qe(ct,Ui)},[()=>({desktop:!d(),mobile:d(),hidden:!!ee.current}),()=>({mobile:d()}),Dt]),_t("mouseenter",Wt,wi),_t("mouseleave",Wt,Zi),b(It,Wt)};R(xo,It=>{r()&&It(Io)})}var bn=L(xo,2);Ti(bn,17,()=>n(At),It=>It.id,(It,Wt)=>{let W=v(()=>{var Mt;return(Mt=n(Wt).minWidth)!=null?Mt:137});Ev(It,{get isMobile(){return d()},get playerControlsHeight(){return le()},get returnFromSubMenu(){return ee.popSubMenu},get id(){return n(Wt).id},get title(){return n(Wt).title},get closeSettingsMenu(){return Ct},openSubMenuList:nt,get items(){return n(Wt).items},get minWidth(){return n(W)},get refMenuItems(){return X},get listRef(){return re[n(Wt).id]},set listRef(Mt){re[n(Wt).id]=Mt}})}),w(Ke),D(It=>Ii=se(Ke,1,"settings-menu-container s-x",null,Ii,It),[()=>({mobile:d(),hidden:!r()})]),b(t,Ke),F(),o()}it(["keydown","click"]);var fT=M('<button class="btn s-1e"> </button>'),mT={hash:"s-1e",code:"button.btn.s-1e{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,mT);var i=fT();i.__click=function(...r){var a;(a=e.onClick)==null||a.apply(this,r)};var o=T(i,!0);w(i),D(()=>me(o,e.label)),b(t,i)}it(["click"]);var vT=M('<div class="container s-u"><div class="notification s-u"><div><p class="description s-u"><!></p> <!></div> <!></div></div>'),gT={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 Fc(t,e){B(e,!0),q(t,gT);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=Nt(),{ui:{t:r}}=ve(),a=r(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var l=vT(),d=T(l),s=T(d),u=T(s),m=T(u);Oc(m,{get message(){return a}}),w(u);var p=L(u,2);{var f=y=>{let _=v(()=>r("slow_video_notification_button"));Qv(y,{get label(){return n(_)},get onClick(){return e.onSelectAutoQuality}})};R(p,y=>{o||y(f)})}w(s);var $=L(s,2);Ls($,{get onClick(){return e.onClose}}),w(d),w(l),Zr(3,d,()=>bs,()=>({duration:i})),b(t,l),F()}var Hc=require("@vkontakte/videoplayer-shared/es2015");var sl="annotation",wp=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",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))}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)||{},m=new MutationObserver($=>$.forEach(()=>{let y=Vs(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,Hc.isIntersecting)(C,y)))})}));m.observe(d,{childList:!0,subtree:!0}),l.observer=m;let p=new Hc.Subscription;o.forEach($=>{s&&p.add(s[$].subscribe(y=>{let _=u==null?void 0:u[$];y&&y.isDisplayed?_==null||_.set((0,Hc.isIntersecting)(y,Vs(d,this.shadowRootContainer))):_==null||_.set(!1)}))}),l.subs=p})}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,m;let i=this.slots.get(e);if(!i)return;let{rootElement:o,observer:r,observerForFindingSlotElement:a,subs:l,options:{controlsBehaviour:d,hideAllControls:s}}=i;o&&o.remove(),[r,a].forEach(p=>p==null?void 0:p.disconnect()),l==null||l.unsubscribe(),this.slots.delete(e),s&&((u=this.store)==null||u.ui.isControlsAvailable.set(!0)),(m=d==null?void 0:d.controlsToObserve)==null||m.forEach(p=>{var f,$;($=(f=this.store)==null?void 0:f.ui.hiddenControls[p])==null||$.set(!1)})}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}haveSlots(){return this.slots.size>0}};var hT=M('<div class="container s-4"><!></div>'),_T={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 Uc(t,e){B(e,!0),q(t,_T);let i=g(e,"reversed",3,!1);var o=Le(),r=de(o);Is(r,()=>e.Icon,a=>{var l=hT(),d=T(l);Bi(d,()=>e.Icon,(s,u)=>{u(s,{get size(){return"48"},get reversed(){return i()}})}),w(l),D(()=>Qe(l,`animation-duration: ${e.duration}ms`)),b(a,l)}),b(t,o),F()}var Gv=require("@vkontakte/videoplayer-core/es2015"),bT=M('<div class="container s-13"><!></div>'),$T={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){B(e,!0),q(t,$T);let[i,o]=Re(),r=()=>x(s,"$playbackState$",i),a=()=>x(m,"$previewTrackActive",i),l=()=>x(p,"$previewTrackDragInProgress",i),d=()=>x(u,"$isPlaying$",i),{state:{playbackState$:s,isPlaying$:u},ui:{previewTrackActive:m,previewTrackDragInProgress:p}}=ve(),{features:{playbackStatusShow:f},playbackStatusAnimationDuration:$}=Nt(),y=0,_=K(null),S=K(!1);Oe(()=>{r()===Gv.PlaybackState.PLAYING?O(_,Mn,!0):r()===Gv.PlaybackState.PAUSED?O(_,Ns,!0):O(_,null)}),Oe(()=>{if(!(!f||a()||l()))return y=window.setTimeout(()=>{y=0,O(_,null)},$),()=>{y&&(window.clearTimeout(y),y=0)}}),Oe(()=>{d()&&!n(S)&&(O(S,!0),O(_,null))});var C=Le(),I=de(C);{var N=P=>{var E=bT(),k=T(E);Uc(k,{get duration(){return $},get Icon(){return n(_)}}),w(E),b(P,E)};R(I,P=>{n(_)&&f&&P(N)})}b(t,C),F(),o()}var yT=M('<div><div data-testid="video-container"></div></div>'),xT={hash:"s-b",code:".video-container.s-b,.video-wrapper.s-b{height:100%;left:0;position:absolute;top:0;width:100%}.video-wrapper.s-b{background:var(--black)}.video-container.s-b,.video-wrapper.s-b{z-index:var(--video-container-z-index)}.video-container.s-b{transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.s-b{transition:none}.nocursor.s-b{cursor:none}"};function al(t,e){B(e,!0),q(t,xT);let[i,o]=Re(),r=()=>x(m,"$rotateAlpha",i),a=()=>x(p,"$playerSize",i),l=()=>x(u,"$playerPhase",i),d=()=>x(f,"$isPlaying$",i),s=g(e,"videoContainer",15),{playerPhase:u,ui:{rotateAlpha:m,playerSize:p},state:{isPlaying$:f}}=ve(),{isSmoothVideoRotate:$}=Nt(),y=v(()=>s()&&r()%180?a().height/a().width:1);var _=yT();let S;_.__contextmenu=function(...N){var P;(P=e.onContextMenu)==null||P.apply(this,N)},_.__mousedown=function(...N){var P;(P=e.onMouseDown)==null||P.apply(this,N)},_.__mouseup=function(...N){var P;(P=e.onMouseUp)==null||P.apply(this,N)},_.__click=function(...N){var P;(P=e.onClick)==null||P.apply(this,N)},_.__dblclick=function(...N){var P;(P=e.onDblClick)==null||P.apply(this,N)};var C=T(_);let I;Xe(C,N=>s(N),()=>s()),w(_),D((N,P)=>{S=se(_,1,"video-wrapper s-b",null,S,N),I=se(C,1,"video-container s-b",null,I,P),Qe(C,`transform: rotate(${r()}deg) scale(${n(y)})`),Ve(C,"data-is-playing",d())},[()=>({hidden:l()!=="video",nocursor:e.hideCursor}),()=>({"fast-rotate":!$})]),b(t,_),F(),o()}it(["contextmenu","mousedown","mouseup","click","dblclick"]);var wT=M('<div><span class="text s-16"> </span> <!></div>'),ST={hash:"s-16",code:".root.s-16{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-16,.root.visible.s-16{transform:translateX(-50%)}.root.visible.s-16{opacity:1;visibility:visible}.text.s-16{font-size:13px;font-weight:600;line-height:16px}"};function jv(t,e){B(e,!0),q(t,ST);let{ui:{t:i}}=ve();var o=wT();let r;var a=T(o),l=T(a,!0);w(a);var d=L(a,2);Lc(d,{get size(){return"16"},fill:"currentColor"}),w(o),D((s,u)=>{r=se(o,1,"root s-16",null,r,s),me(l,u)},[()=>({visible:e.isVisible}),()=>i("double_forward_label")]),b(t,o),F()}var TT=M('<div class="container s-15" role="button" data-testid="preview-track-overlay"><div class="icon s-15"><!></div></div>'),CT={hash:"s-15",code:".container.s-15{background-color:rgba(0,0,0,.48);cursor:pointer;height:100%;position:absolute;width:100%}.container.s-15,.icon.s-15{align-items:center;display:flex;justify-content:center}.icon.s-15{background-color:#00000073;border-radius:100%;height:64px;transition:transform .2s;transition-timing-function:ease-out;width:64px;will-change:transform}.container.s-15:hover .icon:where(.s-15){transform:scale(1.15)}"};function Xv(t,e){B(e,!1),q(t,CT);let o=ve().actions.internal.closePreviewTrack,r=200,a=u=>{u.stopPropagation(),o()};To();var l=TT();l.__click=a;var d=T(l),s=T(d);return Mn(s,{get size(){return"32"}}),w(d),w(l),Zr(3,l,()=>bs,()=>({duration:r})),b(t,l),Rf(e,"handleClick",a),F({handleClick:a})}it(["click"]);var IT=M('<div class="container s-18"><div class="notification s-18"><span class="text s-18"> </span></div></div>'),ET={hash:"s-18",code:".container.s-18{display:flex;justify-content:center;left:0;pointer-events:none;position:absolute;right:0;top:20px}.notification.s-18{background-color:var(--black-alpha-40);border-radius:var(--notification-radius);padding:10px 16px}.text.s-18{font-size:14px;font-weight:500;line-height:18px}"};function Zv(t,e){B(e,!1),q(t,ET);let{ui:{t:i}}=ve();To();var o=IT(),r=T(o),a=T(r),l=T(a,!0);w(a),w(r),w(o),D(d=>me(l,d),[()=>i("preview_track_notification_text")],Cn),Zr(3,r,()=>bs,()=>({duration:340})),b(t,o),F()}var PT=(t,e,i,o,r,a)=>{if(t.stopPropagation(),e()||o()){a();return}},AT=M("<div><!></div>"),kT=M('<div class="spherical-video-icon s-7"><!></div>'),LT=M("<div><!></div>"),MT=M('<div class="settings-menu s-7"><!></div>'),VT=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),RT=M("<!> <!> <!>",1),NT=M('<div class="blocked s-7"></div>'),OT=M('<div class="player-wrapper s-7"><!> <div class="overlay-container"></div></div> <!>',1),DT={hash:"s-7",code:".blocked.s-7,.player-wrapper.s-7{height:100%;position:absolute;width:100%}.blocked.s-7{z-index:var(--overlay-container-z-index)}.player-wrapper.s-7 .player-media{background:var(--black);height:100%;left:0;position:absolute;top:0;transition:transform .2s ease-in-out;width:100%}.spherical-video-icon.s-7{display:inline-block;left:calc(50% - 38px);position:absolute;top:calc(50% - 23px)}.ads-container.s-7{background:var(--black);height:100%;left:0;position:absolute;top:0;width:100%;z-index:var(--ads-container-z-index)}.settings-menu.s-7{bottom:57px;left:0;position:absolute;right:18px;transition:opacity .2s;z-index:var(--settings-menu-z-index)}"};function eg(t,e){B(e,!0),q(t,DT);let[i,o]=Re(),r=()=>x(ui,"$notificationsToShow$",i),a=()=>x(fi,"$playerPhase",i),l=()=>x(xo,"$isLoaderVisible",i),d=()=>x(wi,"$adPlaybackState",i),s=()=>x(di,"$crashed",i),u=()=>x(Wi,"$isInteractiveTime$",i),m=()=>x(Ci,"$settingsMenuVisible",i),p=()=>x(eo,"$isInteractiveExpectation$",i),f=()=>x(Jt,"$controlsVisible",i),$=()=>x(wo,"$touched",i),y=()=>x(Dr,"$graphIsOpened$",i),_=()=>x(bi,"$isFullscreen",i),S=()=>x($s,"$autoplayNextEnabled$",i),C=()=>x(Wt,"$postrollPassed",i),I=()=>x(Io,"$isEnded$",i),N=()=>x(zn,"$cursorInside",i),P=()=>x(or,"$isControlsAvailable",i),E=()=>x($n,"$doubleForwardOn$",i),k=()=>x(wr,"$fakeIsPlaying$",i),Q=()=>x(Cr,"$bottomNoSmooth",i),H=()=>x(rn,"$interactiveTimeIndicator",i),z=()=>x(Ui,"$playerSize",i),Y=()=>x(zi,"$is3DVideo",i),le=()=>x(On,"$doubleForwardAvailable$",i),X=()=>x(Ke,"$contextMenuVisible$",i),re=()=>x(ri,"$playbackState$",i),Z=()=>x(lo,"$hotKeyMapData",i),we=()=>x(ti,"$scrubbingInProgress",i),ue=()=>x(At,"$volumeChangingInProgress",i),ne=()=>x(bn,"$chromecastConnected$",i),_e=()=>x(yn,"$controlsTimeoutActive",i),xe=()=>x(Ji,"$settingsMenuOpenedByKeyboard",i),J=()=>x(ls,"$contextMenuOpenedByKeyboard$",i),Ne=()=>x(Pi,"$contextMenuOpenedByHotKey$",i),pe=()=>x(je,"$contextMenuButtonRef$",i),A=()=>x(qo,"$contextMenuLastActiveElem$",i),We=()=>x(bt,"$isFullscreenOpenedByKeyboard",i),Te=()=>x(zt,"$language$",i),j=()=>x(dn,"$previewTrackActive$",i),ie=()=>x(on,"$icon3DVideoVisible",i),De=()=>x(It,"$chromecastDeviceName$",i),Be=()=>x(Xt,"$currentSubtitle$",i),ot=()=>x(st,"$currentSubtitleCaptions$",i),U=()=>x(Zi,"$position$",i),ke=()=>x(Dt,"$duration$",i),Pe=()=>x(W,"$isLive$",i),Ue=()=>x(Mt,"$isPlaying$",i),Je=()=>x(ir,"$contextMenuPosition$",i),ye=()=>x(Uo,"$previewTrackNotificationVisible$",i),Ae=()=>x(ki,"$showHotKeyMap",i),Fe=()=>x(Ii,"$debugPanelVisible",i),Ft=()=>x(ns,"$userActionsDisabled$",i),mt=g(e,"videoContainer",15),Ht=g(e,"adsSlotId",3,void 0),lt=g(e,"adsParams",3,void 0),Ct=g(e,"adsAutoplayParam",3,void 0),oi=g(e,"duration",3,void 0),Ot=g(e,"logoTargetUrl",3,""),$e=g(e,"showNextPrevButtons",3,!1),be=g(e,"nextButtonActive",3,!1),ee=g(e,"prevButtonActive",3,!1),nt=g(e,"endScreenVideoTitle",3,void 0),fe=g(e,"endScreenVideoThumb",3,void 0),Me=g(e,"isOneVideoPlaylist",3,!1),xt=g(e,"shadowRootContainer",3,void 0),Lt=g(e,"outerContainerRef",3,void 0),pt=g(e,"playerStarted",3,!1),ce=g(e,"fullScreenTarget",3,void 0),ze=g(e,"showMiniTimer",3,!1),Ye=g(e,"showEndScreen",3,!0),dt=g(e,"keyboardControls",15),Ut=e.store.getLogger().createComponentLog("Root component"),zt=e.store.interfaceLanguage$,ri=e.store.state.playbackState$,wi=e.store.ads.playbackState,Zi=e.store.state.positionWithScrubbing$,Dt=e.store.state.duration$,fi=e.store.playerPhase,bi=e.store.ui.isFullscreen,bt=e.store.ui.isFullscreenOpenedByKeyboard,Jt=e.store.ui.controlsVisible,Ci=e.store.ui.settingsMenu.visible$,Ji=e.store.ui.settingsMenu.openedByBtnKeyboard$,ti=e.store.ui.scrubbingInProgress,At=e.store.ui.volumeChangingInProgress,Ke=e.store.ui.contextMenu.visible$,Ii=e.store.ui.debugPanelVisible,xo=e.store.state.isLoaderVisible,Io=e.store.state.isEnded$,bn=e.store.state.chromecastConnected$,It=e.store.state.chromecastDeviceName$,Wt=e.store.ads.postrollPassed,W=e.store.state.isLive$,Mt=e.store.state.isPlaying$,di=e.store.state.crashed$,ct=e.store.webApi.annotationsApi,Tt=e.store.webApi.pictureInPictureApi,Xt=e.store.state.currentSubtitle$,st=e.store.state.currentSubtitleCaptions$,Ui=e.store.ui.playerSize,zi=e.store.ui.is3DVideo,on=e.store.ui.icon3DVideoVisible,Eo=e.store.state.isInteractive,Wi=e.store.state.isInteractiveTime$,eo=e.store.state.isInteractiveExpectation$,Nr=e.store.state.hasInteractiveBranches,wo=e.store.ui.touched,lo=e.store.ui.modals.hotKeyMap.data,ki=e.store.ui.modals.hotKeyMap.show,nn=e.store.ui.overlayContainer$,rn=e.store.ui.controls.interactiveTimeIndicator,Nn=e.store.state.showInteractiveTimeIndicator,ir=e.store.ui.contextMenu.position$,Or=e.store.actions.internal.setQuality,os=e.store.actions.internal.closeSettingsMenu,$s=e.store.ui.autoplayNextEnabled$,ns=e.store.ui.userActionsDisabled,or=e.store.ui.isControlsAvailable,xr=e.store.ui.videoTitleInfo,$n=e.store.ui.doubleForwardOn$,On=e.store.ui.doubleForwardAvailable$,Uo=e.store.ui.previewTrackNotificationVisible,Dn=e.store.actions.internal.getVideoElement,nr=e.store.actions.internal.checkFullscreenSupport,{fakeIsPlaying$:wr,notifications$:Sr,graphIsOpened$:Dr}=Co(),co=K(void 0),Br=K(void 0),Bn=K(void 0),Fn=K(void 0),uo,Fr,Hn;lo.set(tb());let{closeNotification:vt,notificationsToShow$:ui}=Sr,Tr=v(()=>!!r().slow_video),rr=()=>vt("slow_video"),sr=v(()=>(a()==="video"&&l()||a()==="ads"&&d()==="inactive")&&!s()),sn=K(void 0),Cr=ae(!1),an,yn=ae(!1),Un=ae(),zn=ae(!1),zo=K(!1),Po=K(!1),ar=K(!1),Ao=K(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),Ki=v(()=>u()&&!m()&&!(n(zo)||n(Po))&&!(n(ar)&&!p())),Wn=!0,lr=v(()=>e.uiConfig.features.thumbTimer&&ze()&&a()==="video"&&!f()&&!s()&&!Eo&&(e.uiConfig.hideThumbTimerAfterTouch&&!$()||!e.uiConfig.hideThumbTimerAfterTouch)),Hr=v(()=>a()==="video"&&!y()&&_()),Kn=K(!1),ko=v(()=>(Ye()||e.showAutoplayNext&&S())&&!!nt()&&!!fe()&&(e.showAds&&C()||!e.showAds)&&I()&&!s()&&!n(Kn)),Ur=v(()=>N()&&!(f()||n(ko))&&!u()&&P()&&!E()),wt=K(!1),Et=v(()=>k()!==null),{toggle:po}=wr,to=!1,Vi=null;Tt==null||Tt.setContext(Cd());let xn=()=>{e.autoplay&&!Eo&&e.uiConfig.controls.showOnStartupAtAutoplay&&mi(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:xn});let So=()=>{window.clearTimeout(uo),yn.set(!1)},qn=()=>{window.clearTimeout(Fr),Un.set(null)},mi=he=>{So(),yn.set(!0),uo=window.setTimeout(()=>yn.set(!1),he);let St=he-100;an=window.setTimeout(()=>{Q()&&Cr.set(!1)},St>0?St:he)},zr=(he,St)=>{qn(),Un.set(St),Fr=window.setTimeout(()=>Un.set(null),he)},dr=zi.subscribe(he=>{on.set(he),he&&(window.clearTimeout(Hn),Hn=window.setTimeout(()=>on.set(!1),e.uiConfig.controls.hide360IconTimeout))}),rs=()=>gt(null,null,function*(){var St,ni,Si,Ri;let he=ia();if(he){let pi=tc(),si=Lo();he=pi===si||pi===xt()}if(he){mi(e.uiConfig.controls.hideTimeoutFullscreen);try{yield Tt==null?void 0:Tt.exit()}catch(pi){Ut({message:String(pi)})}}bi.set(he),e.store.getAdmanWrapper().setFullscreen(he),_()?(ni=(St=e.store.callbacks)==null?void 0:St.onFullscreenEnter)==null||ni.call(St):(Ri=(Si=e.store.callbacks)==null?void 0:Si.onFullscreenExit)==null||Ri.call(Si)}),ss=he=>{let{width:St,height:ni}=he.target;Ui.set({width:St,height:ni})},Wr=()=>{let{width:he,height:St}=n(co).getBoundingClientRect();Ui.set({width:he,height:St})};Rt(()=>{var St;return Xu(rs),e.uiConfig.features.annotationsInside&&(ct==null||ct.init(n(co))),Ha(Tt)&&(Tt==null||Tt.assignPlayerContainer(n(co)),Tt==null||Tt.setExternalEventHandlers({resize:ss,leavepictureinpicture:Wr})),e.interactiveContainer&&((St=mt().parentElement)==null||St.insertBefore(e.interactiveContainer,mt().nextSibling)),()=>{window.clearTimeout(uo),window.clearTimeout(an),window.clearTimeout(Fr),window.clearTimeout(Hn),dr(),Tt==null||Tt.dispose().catch(ni=>{Ut({message:String(ni)})}),Zu(rs)}});let Lo=()=>{let he=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Lt()?n(co):Lt(),St=he.getRootNode(),ni=St instanceof ShadowRoot?St.host:St,Si=ce()instanceof HTMLElement&&ce().contains(ni);return e.uiConfig.allowChangingFullscreenTarget&&ce()&&Si?ce():he},ln=()=>{Ke.set(!1)},fo=()=>{os(),ln()},Ir=()=>gt(null,null,function*(){if(!nr()){Ut({message:"fullscreen disabled"});return}ln(),ia()?(yield ju(document),Ut({message:"exit fullscreen"})):(Ut({message:"request fullscreen"}),yield Yu(Lo()))}),Wo=he=>{y()||(he.preventDefault(),Ke.set(!0),ir.set({left:he.clientX,top:he.clientY}))};function as(){zn.set(!0),Eo||mi(e.uiConfig.controls.hideTimeoutCursor)}function qe(he){var Ri,pi;let{relatedTarget:St}=he,Si=!!(St&&((Ri=n(Bn))!=null&&Ri.contains(St)))&&((pi=dt())==null?void 0:pi.isFocused());!Eo&&!Si&&(Cr.set(!0),mi(e.uiConfig.controls.hideTimeoutCursor))}function Vt(){zn.set(!1),O(Po,!1),O(zo,!1),to=!1,e.store.actions.internal.releaseCamera(),mi(e.uiConfig.controls.hideTimeout),E()&&Sn()}function yi(he){return he?he.offsetTop+yi(he.offsetParent):0}function Mo(he){return he?he.offsetLeft+Mo(he.offsetParent):0}function Vo(he){if(H()&&Nn){let St=he.currentTarget,ni=yi(St),Si=Mo(St),Ri=he.pageX-Si,pi=he.pageY-ni,{left:si,bottom:ho,right:pn}=H(),fn=pn-si;return Ri>=si-fn&&pi<=ho+fn}}function Ko(he){if(n(co)){let St=yi(he.currentTarget),ni=z().height,Si=he.pageY-St;if(Vo(he)){O(Po,!1);return}Si<40?O(Po,!0):Si>ni-40?O(zo,!0):(O(Po,!1),m()||O(zo,!1))}}function mo(he){Ko(he),!n(Ki)&&!E()&&mi(e.uiConfig.controls.hideTimeoutCursor),Y()&&to&&Vi&&e.store.actions.internal.moveCameraFocusPX(Vi.clientX-he.clientX,Vi.clientY-he.clientY,he.timeStamp-Vi.timeStamp),Vi=he}let io=null,wn=()=>{io=window.setTimeout(()=>{e.store.actions.internal.changeDoubleForwardOn(!0),So()},e.uiConfig.doubleForwardActivationTime)},Sn=()=>{e.store.actions.internal.changeDoubleForwardOn(!1),io&&clearTimeout(io),io=null},vo=he=>{he.preventDefault(),he.button===0&&(to=!0,e.store.actions.internal.holdCamera(),le()&&wn()),!to&&mi(e.uiConfig.controls.hideTimeoutCursor)},Ro=he=>{he.preventDefault(),he.button===0&&(Vi=he,to=!1,e.store.actions.internal.releaseCamera()),!E()&&mi(e.uiConfig.controls.hideTimeoutCursor)},Qn=he=>{he.preventDefault(),Wn&&(Ut({message:"double click on video"}),Ir(),mi(e.uiConfig.controls.hideTimeoutCursor))},cr=he=>{var St;if(he.preventDefault(),E()){Sn();return}if(io&&Sn(),X()||m()){fo();return}if(!(I()&&!Nr)){if(n(Et))return po();if((St=dt())==null||St.focus(),!pt()){e.firstStart(),mi(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||re()!==Jv.PlaybackState.PLAYING)&&e.store.actions.internal.togglePlay(),mi(e.uiConfig.controls.hideTimeoutCursor)}},ur=he=>{fo(),wo.set(!0),mi(e.uiConfig.controls.hideTimeout),he&&zr(e.uiConfig.controls.hideHotKeyHelpers,he)},Gn=()=>{var he,St;fo(),(he=e.store.callbacks)!=null&&he.onOpenHotKeyMap?(St=e.store.callbacks)==null||St.onOpenHotKeyMap(Z()):ki.update(ni=>!ni)},ys=()=>{wo.set(!0)},ls=e.store.ui.contextMenu.openedByBtnKeyboard$,je=e.store.ui.contextMenu.btnRef$,Gt=K(void 0),Pi=e.store.ui.contextMenu.openedByHotKey$,qo=e.store.ui.contextMenu.lastActiveElem$,dn=e.store.ui.previewTrackActive;Oe(()=>{nn.set(n(sn))}),Oe(()=>{O(ar,n(Ao)&&re()!==Jv.PlaybackState.PLAYING,!0),n(Ao)||Pt(()=>O(Ao,!0))}),Oe(()=>{var St,ni;let he=(n(ar)||I()||m()||we()||ue()||ne()||_e())&&!n(Ki)&&(a()==="video"||a()==="ads")&&!s()&&P();Jt.set(he),!he&&!_e()&&e.uiConfig.returnFocusOnControlsHide&&((St=n(Bn))!=null&&St.contains(np()))&&((ni=dt())==null||ni.focus())}),Oe(()=>{!we()&&n(wt)&&!u()&&mi(e.uiConfig.controls.hideTimeoutCursor),Pt(()=>O(wt,we(),!0))}),Oe(()=>{n(Fn),m(),xe(),Pt(()=>lc(n(Fn),m(),xe()))}),Oe(()=>{n(Gt),X(),J(),Ne(),Pt(()=>{let he=J()||Ne();lc(n(Gt),X(),he)})}),Oe(()=>{let he=pe();he&&(X(),Pt(()=>Yl(he,X(),ls)))}),Oe(()=>{let he=A();he&&(X(),Pt(()=>sb(he,X(),Pi)))}),Oe(()=>{var he;!We()&&_()&&(Pt(()=>bt.set(!1)),(he=dt())==null||he.focus())}),Oe(()=>{y()&&fo()});let pr=K(void 0),cn=he=>{xr.set(er(Dn(),{title:n(pr)},"title",he))},Qo=(he,St)=>{var pi,si;let ni=(si=(pi=e.store.callbacks)==null?void 0:pi.uiInfo)==null?void 0:si.onUpcomingLiveViewStateChanged;if(!ni)return;let Si=!!St,Ri=Ie(Ie({},er(n(co),{upcomingLiveScreen:St},"upcomingLiveScreen",Si)),he);ni(Ri)};var Fs=OT();_t("blur",Ia,fo);var un=de(Fs);un.__mousemove=mo;var Hs=T(un);let pa=v(()=>a()==="ads"),fa=v(()=>n(Et)?po:void 0);Xe(bm(Hs,{startDoubleForwardActivationTimer:wn,stopDoubleForward:Sn,toggleFullscreen:Ir,hideContextMenu:fo,showHotKeyHelpers:ur,showKeyMap:Gn,get isAds(){return n(pa)},get fakePlayButtonHandler(){return n(fa)},get nextButtonActive(){return be()},get prevButtonActive(){return ee()},children:(he,St)=>{var ni=RT(),Si=de(ni);al(Si,{get hideCursor(){return n(Ur)},onClick:cr,onContextMenu:Wo,onMouseDown:vo,onMouseUp:Ro,onDblClick:Qn,get videoContainer(){return mt()},set videoContainer(si){mt(si)}});var Ri=L(Si,2);Ma(Ri,()=>"slot",!1,(si,ho)=>{no(si,()=>({name:sl}))});var pi=L(Ri,2);Is(pi,Te,si=>{var ho=VT(),pn=de(ho);let fn=v(()=>a()!=="thumb"||s()||Eo&&e.autoplay);ol(pn,{get hidden(){return n(fn)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart},onContextMenu:Wo,onClick:ln});var Li=L(pn,2);{var hd=He=>{Xv(He,{})};R(Li,He=>{j()&&He(hd)})}var cl=L(Li,2);Yv(cl,{});var Us=L(cl,2);jv(Us,{get isVisible(){return E()}});var ul=L(Us,2);{var pl=He=>{let $i=v(()=>{var No;return(No=e.live)==null?void 0:No.startTime});Rc(He,{get thumbUrl(){return e.thumbUrl},get startTime(){return n($i)},onUpcomingLiveViewStateChanged:Qo,onContextMenu:Wo,onClick:ln})};R(ul,He=>{a()==="LiveWaitingStart"&&He(pl)})}var Er=L(ul,2);{var ma=He=>{nl(He,{kind:"recover",get thumbUrl(){return e.thumbUrl},onContextMenu:Wo,onClick:ln})};R(Er,He=>{a()==="LiveWaitingRecover"&&He(ma)})}var zs=L(Er,2);{var Kr=He=>{nl(He,{kind:"record",get thumbUrl(){return e.thumbUrl},onContextMenu:Wo,onClick:ln})};R(zs,He=>{a()==="LiveWaitingRecord"&&He(Kr)})}var ds=L(zs,2);{var Ws=He=>{var $i=AT();let No;var ba=T($i);oc(ba,{get adsSlotId(){return Ht()},get adsParams(){return lt()},get adsAutoplayParam(){return Ct()},get duration(){return oi()},get adsExternalApi(){return e.adsExternalApi}}),w($i),D(Tn=>No=se($i,1,"ads-container s-7",null,No,Tn),[()=>({hidden:a()!=="ads"})]),b(He,$i)};R(ds,He=>{e.showAds&&pt()&&He(Ws)})}var fr=L(ds,2);{var fl=He=>{let $i=v(()=>!Ye()&&e.showAutoplayNext&&S());gm(He,{get title(){return nt()},get thumb(){return fe()},get isHide(){return n($i)},clickCloseIcon:()=>O(Kn,!0)})};R(fr,He=>{n(ko)&&nt()&&fe()&&He(fl)})}var ml=L(fr,2);{var _d=He=>{let $i=v(()=>!f());xv(He,{get title(){return e.title},get isHidden(){return n($i)},onVisibilityChanged:cn,get ref(){return n(pr)},set ref(No){O(pr,No,!0)}})};R(ml,He=>{n(Hr)&&He(_d)})}var vl=L(ml,2);{var gl=He=>{let $i=v(()=>a()==="video"&&f());Mc(He,{get isShifted(){return n($i)}})};R(vl,He=>{Y()&&He(gl)})}var hl=L(vl,2);{var bd=He=>{var $i=kT(),No=T($i);ec(No,{}),w($i),b(He,$i)};R(hl,He=>{ie()&&He(bd)})}var va=L(hl,2);{var Pr=He=>{Vc(He,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return De()}})};R(va,He=>{ne()&&He(Pr)})}var at=L(va,2);{var ft=He=>{tl(He,{get shifted(){return f()},get captions(){return ot()},get position(){return U()},get playerSize(){return z()}})};R(at,He=>{Be().value!=="off"&&He(ft)})}var qi=L(at,2);{var Go=He=>{var $i=LT();$i.__contextmenu=Wo,$i.__click=[PT,X,Ke,m,Ci,fo];var No=T($i);il(No,{}),w($i),b(He,$i)};R(qi,He=>{s()&&He(Go)})}var Qi=L(qi,2);{var xi=He=>{let $i=v(()=>a()==="thumb"||a()==="LiveWaitingStart"||a()==="LiveWaitingRecover"||a()==="LiveWaitingRecord"),No=v(()=>a()==="ads"),ba=v(()=>e.canRewindLive&&ke()!==0);kc(He,{get bottomHidden(){return n($i)},get bottomNoSmooth(){return Q()},get showControls(){return f()},get isAds(){return n(No)},get canRewindLive(){return n(ba)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Ot()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return $e()},get nextButtonActive(){return be()},get prevButtonActive(){return ee()},get isOneVideoPlaylist(){return Me()},customFullscreenSupported:Wn,toggleFullscreen:Ir,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return n(Br)},set playerControlsWrapperRef(Tn){O(Br,Tn,!0)},get playerControlsRef(){return n(Bn)},set playerControlsRef(Tn){O(Bn,Tn,!0)}})};R(Qi,He=>{pt()&&He(xi)})}var Ni=L(Qi,2);{var ga=He=>{var $i=MT(),No=T($i);let ba=v(()=>{var Tn;return(Tn=n(Bn))==null?void 0:Tn.clientHeight});Bc(No,{get supportLink(){return e.supportLink},get playerControlsHeight(){return n(ba)},returnFocus:()=>{var Tn;return(Tn=dt())==null?void 0:Tn.focus()},get ref(){return n(Fn)},set ref(Tn){O(Fn,Tn,!0)}}),w($i),b(He,$i)};R(Ni,He=>{!ne()&&a()!=="ads"&&He(ga)})}var _l=L(Ni,2);let Hp=v(()=>!n(lr));sc(_l,{get isLive(){return Pe()},get isHidden(){return n(Hp)},get isPlaying(){return Ue()},get position(){return U()},get duration(){return ke()}});var Jc=L(_l,2);$v(Jc,{get data(){return Un}});var eu=L(Jc,2);mm(eu,{get supportLink(){return e.supportLink},returnFocus:()=>{var He;return(He=dt())==null?void 0:He.focus()},get visible(){return X()},get playerContainerRef(){return n(co)},get position(){return Je()},get menuElementRef(){return n(Gt)},set menuElementRef(He){O(Gt,He,!0)}});var tu=L(eu,2);{var Up=He=>{Fc(He,{onClose:rr,onSelectAutoQuality:()=>{Or("auto"),rr()}})};R(tu,He=>{n(Tr)&&He(Up)})}var iu=L(tu,2);{var bl=He=>{Zv(He,{})};R(iu,He=>{ye()&&He(bl)})}var ou=L(iu,2);{var ha=He=>{Ka(He,{})};R(ou,He=>{n(sr)&&He(ha)})}var _a=L(ou,2);{var zp=He=>{xm(He,{})};R(_a,He=>{Ae()&&He(zp)})}var nu=L(_a,2);{var $d=He=>{cc(He,{})};R(nu,He=>{Fe()&&He($d)})}b(si,ho)}),b(he,ni)},$$slots:{default:!0}}),he=>dt(he),()=>dt());var ut=L(Hs,2);Xe(ut,he=>O(sn,he),()=>n(sn)),w(un),Xe(un,he=>O(co,he),()=>n(co));var ii=L(un,2);{var go=he=>{var St=NT();b(he,St)};R(ii,he=>{Ft()&&he(go)})}_t("mouseenter",un,as),_t("mouseleave",un,Vt),_t("click",un,ys,!0),_t("focusin",un,qe,!0),b(t,Fs),F(),o()}it(["mousemove","contextmenu","click"]);var ua=require("@vkontakte/videoplayer-core/es2015"),f$=require("@vkontakte/videoplayer-shared/es2015");var BT=M('<div></div> <div class="info s-t"><div class="triangles-wrapper s-t"><div></div> <div></div> <div></div></div> <p class="step-caption s-t"> </p></div>',1),FT=M("<div><!></div>"),HT={hash:"s-t",code:".double-click-area.s-t{height:100%;overflow:hidden;position:absolute;top:0;width:25%}.double-click-area.left.s-t{left:0}.double-click-area.right.s-t{right:0}.semicircle.s-t{background-color:rgba(0,0,0,.5);height:100%;position:absolute;top:0;width:100%}.semicircle.left.s-t{border-bottom-right-radius:50%;border-top-right-radius:50%;left:0}.semicircle.right.s-t{border-bottom-left-radius:50%;border-top-left-radius:50%;right:0}.info.s-t{align-items:center;flex-direction:column;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.info.s-t,.triangles-wrapper.s-t{display:flex;justify-content:center}.triangles-wrapper.s-t{margin-bottom:10px;position:relative}.triangle.s-t{animation:s-t-blink .5s infinite;border-bottom:6px solid transparent;border-top:6px solid transparent;height:0;opacity:0;width:0}.triangle.left.s-t:nth-child(3),.triangle.right.s-t:first-child{animation-delay:0s}.triangle.left.s-t:nth-child(2),.triangle.right.s-t:nth-child(2){animation-delay:.1s}.triangle.left.s-t:first-child,.triangle.right.s-t:nth-child(3){animation-delay:.2s}@keyframes s-t-blink{0%{opacity:0}50%{opacity:1}to{opacity:0}}.triangle.left.s-t{border-right:8px solid var(--white)}.triangle.right.s-t{border-left:8px solid var(--white)}.triangle.s-t:not(:last-child){margin-right:5px}.step-caption.s-t{color:var(--white);font-size:12px;line-height:1;margin:0;text-align:center}"};function Sp(t,e){B(e,!0),q(t,HT);let i=g(e,"seekStep",3,0),o=K(!1),r=0,a=0,l=K(ci(i())),d=p=>{p.stopPropagation(),a+=1,O(l,i()*(a-1)),a===1?e.handleSingleFirstClick(p):(O(o,!0),e.handleSecondClick()),window.clearTimeout(r),r=window.setTimeout(()=>{a=0,O(o,!1)},300)};gn(()=>{window.clearTimeout(r)});var s=FT();s.__click=d;var u=T(s);{var m=p=>{var f=BT(),$=de(f),y=L($,2),_=T(y),S=T(_),C=L(S,2),I=L(C,2);w(_);var N=L(_,2),P=T(N,!0);w(N),w(y),D(E=>{var k,Q,H,z;se($,1,`semicircle ${(k=e.side)!=null?k:""}`,"s-t"),se(S,1,`triangle ${(Q=e.side)!=null?Q:""}`,"s-t"),se(C,1,`triangle ${(H=e.side)!=null?H:""}`,"s-t"),se(I,1,`triangle ${(z=e.side)!=null?z:""}`,"s-t"),me(P,E)},[()=>G("doubletap_seek_step",{seconds:n(l).toFixed(0)})]),b(p,f)};R(u,p=>{n(o)&&p(m)})}w(s),D(()=>{var p;return se(s,1,`double-click-area ${(p=e.side)!=null?p:""}`,"s-t")}),b(t,s),F()}it(["click"]);var UT=(t,e,i)=>{e(!1),i()},zT=M('<div class="overlay s-m"></div> <div class="next-video s-m"><div class="top s-m"><div class="caption s-m"> </div> <!></div> <div class="row s-m"><div class="column s-m"><div class="thumb s-m"><div></div> <!></div></div> <div class="column s-m"><div class="title s-m"> </div></div></div></div>',1),WT={hash:"s-m",code:".overlay.s-m{background:rgba(0,0,0,.72);height:100%;position:absolute;width:100%}.next-video.s-m{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-m{display:flex;justify-content:space-between}.caption.s-m{color:var(--white);font-size:11px;font-weight:700;opacity:.8;text-transform:uppercase}.row.s-m{background:rgba(48,48,48,.8);cursor:pointer;display:flex;flex-direction:row;height:102px;margin-top:6px;width:100%}.column.s-m{display:flex;flex-basis:50%;flex-direction:column}.thumb.s-m{align-items:center;background:no-repeat 50%;background-size:cover;display:flex;justify-content:space-around;position:relative}.thumb.s-m,.thumb-overlay.s-m{height:100%;width:100%}.thumb-overlay.s-m{position:absolute}.thumb-overlay.withOpacity.s-m{background:var(--black);opacity:.3}.title.s-m{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){B(e,!0),q(t,WT);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,m=l.actions.internal.nextVideoAnnouncementShow,p=l.actions.internal.nextVideoAnnouncementClick,f=l.actions.internal.nextVideoAnnouncementAuto,$=l.actions.internal.nextVideoAnnouncementCancel,y=()=>{u(!1),f()},_=()=>{e.clickCloseIcon(),$()};Rt(()=>{e.isHide||m(),e.isHide&&r()&&(u(!1),f())});var S=Le(),C=de(S);{var I=N=>{var P=zT(),E=L(de(P),2),k=T(E),Q=T(k),H=T(Q,!0);w(Q);var z=L(Q,2);Ls(z,{onClick:_}),w(k);var Y=L(k,2);Y.__click=[UT,u,p];var le=T(Y),X=T(le),re=T(X);let Z;var we=L(re,2);{var ue=J=>{uc(J,{get isRunning(){return a()},onTimerEnded:y})};R(we,J=>{r()&&J(ue)})}w(X),w(le);var ne=L(le,2),_e=T(ne),xe=T(_e,!0);w(_e),w(ne),w(Y),w(E),D((J,Ne)=>{me(H,J),Qe(X,`background-image: url('${e.thumb}')`),Z=se(re,1,"thumb-overlay s-m",null,Z,Ne),me(xe,e.title)},[()=>r()?G("end_screen_next_video"):G("end_screen_recommended_video"),()=>({withOpacity:r()})]),b(N,P)};R(C,N=>{e.isHide||N(I)})}b(t,S),F(),o()}it(["click"]);var l$=require("@vkontakte/videoplayer-core/es2015");var d$=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Rt(()=>{l$.clientChecker.device.isIOS&&(o=setTimeout(()=>{let a=t().querySelector("video");if(!a)return;let l=()=>e(!0),d=()=>e(!1);a.addEventListener("webkitbeginfullscreen",l),a.addEventListener("webkitendfullscreen",d),i=()=>{a.removeEventListener("webkitbeginfullscreen",l),a.removeEventListener("webkitendfullscreen",d)}},0))}),gn(()=>{i==null||i(),clearTimeout(o)})};var c$=require("@vkontakte/videoplayer-core/es2015");var Tp=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 u$=require("@vkontakte/videoplayer-core/es2015"),p$=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:r,availableSubtitlesList$:a,currentFormat$:l,availableTextTracks$:d}=t.state,s=null,u=()=>e().querySelector("video"),m=()=>u$.clientChecker.device.isIOS&&ge(l)===c$.VideoFormat.DASH_LIVE_CMAF,p=()=>{s==null||s(),s=null},f=$=>{if(p(),!m()||!$)return;let y=u();if(!y)return;let _=new Tp(y),S=ge(d),C=ge(a),I=ge(r);for(let E of S)C.some(Q=>Q.value===E.id)&&_.attach(E,I.value===E.id);let N=d.subscribe(E=>{for(let k of E)_.updateSrc(k)}),P=()=>{let E=_.getCurrentShowingId();o(ge(a).find(k=>k.value===E))};y.textTracks.addEventListener("change",P),s=()=>{N(),_.detachAll(),y.textTracks.removeEventListener("change",P)}};Rt(()=>i.subscribe(f)),gn(p)};var KT=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},qT=M("<!> <!>",1),QT=M("<div><!></div>"),GT=M('<div class="spherical-video-icon s-8"><!></div>'),YT=M("<div><!></div>"),jT=M('<div class="settings-mobile s-8"><!></div>'),XT=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),ZT=M('<div class="player-wrapper s-8" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),JT={hash:"s-8",code:".player-wrapper.s-8{height:100%;position:absolute;width:100%}.player-wrapper.s-8 .player-media{background:var(--black);height:100%;left:0;position:absolute;top:0;transition:transform .2s ease-in-out;width:100%}.spherical-video-icon.s-8{display:inline-block;left:calc(50% - 38px);position:absolute;top:calc(50% - 23px)}.ads-container.s-8{background:var(--black);height:100%;left:0;position:absolute;top:0;width:100%;z-index:var(--ads-container-z-index)}.settings-mobile.s-8{align-items:center;display:flex;left:50%;max-width:320px;position:absolute;top:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);width:90%;z-index:var(--settings-menu-z-index)}"};function ig(t,e){var ko,Ur;B(e,!0),q(t,JT);let[i,o]=Re(),r=()=>x(xt,"$playerPhase",i),a=()=>x(wi,"$isLoaderVisible",i),l=()=>x(nt,"$adPlaybackState",i),d=()=>x(ti,"$crashed",i),s=()=>x($s,"$notificationsToShow$",i),u=()=>x(ee,"$playbackState$",i),m=()=>x(Ot,"$graphIsOpened$",i),p=()=>x(ze,"$interactiveHideMobileControls",i),f=()=>x(Zi,"$isEnded$",i),$=()=>x(ct,"$isInteractiveExpectation$",i),y=()=>x(pt,"$controlsVisible",i),_=()=>x(st,"$touched",i),S=()=>x(zi,"$autoplayNextEnabled$",i),C=()=>x(bi,"$postrollPassed",i),I=()=>x(xr,"$bottomNoSmooth",i),N=()=>x(Ii,"$videoSize",i),P=()=>x(It,"$playerSize",i),E=()=>x(Lt,"$isFullscreen",i),k=()=>x(fe,"$position$",i),Q=()=>x(Me,"$duration$",i),H=()=>x(on,"$loadedMetadata",i),z=()=>x(Ye,"$settingsMenuVisible",i),Y=()=>x(Ut,"$scrubbingInProgress",i),le=()=>x(zt,"$volumeChangingInProgress",i),X=()=>x(Dt,"$chromecastConnected$",i),re=()=>x(ce,"$isControlsAvailable",i),Z=()=>x(di,"$isInteractiveTime$",i),we=()=>x(Ci,"$isActiveLive",i),ue=()=>x(dt,"$settingsMenuOpenedByKeyboard",i),ne=()=>x(be,"$language$",i),_e=()=>x(Xt,"$disabledControls$",i),xe=()=>x(Wt,"$is3DVideo",i),J=()=>x(W,"$icon3DVideoVisible",i),Ne=()=>x(fi,"$chromecastDeviceName$",i),pe=()=>x(xo,"$currentSubtitle$",i),A=()=>x(Io,"$currentSubtitleCaptions$",i),We=()=>x(bn,"$realDuration$",i),Te=()=>x(bt,"$isLive$",i),j=()=>x(Jt,"$isPlaying$",i),ie=()=>x(ri,"$debugPanelVisible",i),De=g(e,"videoContainer",15),Be=g(e,"adsSlotId",3,void 0),ot=g(e,"adsParams",3,void 0),U=g(e,"adsAutoplayParam",3,void 0),ke=g(e,"duration",3,void 0),Pe=g(e,"logoTargetUrl",3,""),Ue=g(e,"showNextPrevButtons",3,!1),Je=g(e,"nextButtonActive",3,!1),ye=g(e,"prevButtonActive",3,!1),Ae=g(e,"endScreenVideoTitle",3,void 0),Fe=g(e,"endScreenVideoThumb",3,void 0),Ft=g(e,"isOneVideoPlaylist",3,!1),mt=g(e,"showMiniTimer",3,!1),Ht=g(e,"fullScreenTarget",3,void 0),lt=g(e,"playerStarted",3,!1),Ct=g(e,"showEndScreen",3,!0),{notifications$:oi,graphIsOpened$:Ot}=Co(),$e=e.store.getLogger().createComponentLog("Root component"),be=e.store.interfaceLanguage$,ee=e.store.state.playbackState$,nt=e.store.ads.playbackState,fe=e.store.state.positionWithScrubbing$,Me=e.store.state.duration$,xt=e.store.playerPhase,Lt=e.store.ui.isFullscreen,pt=e.store.ui.controlsVisible,ce=e.store.ui.isControlsAvailable,ze=e.store.ui.interactiveHideMobileControls,Ye=e.store.ui.settingsMenu.visible$,dt=e.store.ui.settingsMenu.openedByBtnKeyboard$,Ut=e.store.ui.scrubbingInProgress,zt=e.store.ui.volumeChangingInProgress,ri=e.store.ui.debugPanelVisible,wi=e.store.state.isLoaderVisible,Zi=e.store.state.isEnded$,Dt=e.store.state.chromecastConnected$,fi=e.store.state.chromecastDeviceName$,bi=e.store.ads.postrollPassed,bt=e.store.state.isLive$,Jt=e.store.state.isPlaying$,Ci=e.store.state.isActiveLive$,Ji=e.store.state.isRewindableLive$,ti=e.store.state.crashed$,At=e.store.webApi.annotationsApi,Ke=e.store.webApi.pictureInPictureApi,Ii=e.store.state.videoSize$,xo=e.store.state.currentSubtitle$,Io=e.store.state.currentSubtitleCaptions$,bn=e.store.state.duration$,It=e.store.ui.playerSize,Wt=e.store.ui.is3DVideo,W=e.store.ui.icon3DVideoVisible,Mt=e.store.state.isInteractive,di=e.store.state.isInteractiveTime$,ct=e.store.state.isInteractiveExpectation$,Tt=e.store.state.hasInteractiveBranches,Xt=e.store.ui.controls.disabledControls$,st=e.store.ui.touched,Ui=e.store.ui.overlayContainer$,zi=e.store.ui.autoplayNextEnabled$,on=e.store.state.loadedMetadata$,Eo=e.store.actions.internal.closeSettingsMenu,Wi=(ko=e.store.callbacks)==null?void 0:ko.onDisabledPlayPrevChapterClick,eo=(Ur=e.store.callbacks)==null?void 0:Ur.onDisabledSeekToInteractiveClick,Nr=e.store.actions.internal.setQuality,wo=K(void 0),lo=K(void 0),ki=K(void 0),nn=K(void 0),rn,Nn,ir=v(()=>(r()==="video"&&a()||r()==="ads"&&l()==="inactive")&&!d()),Or=K(void 0),{closeNotification:os,notificationsToShow$:$s}=oi,ns=v(()=>!!s().slow_video),or=()=>os("slow_video"),xr=ae(!1),$n,On=K(!1),Uo=v(()=>u()!==ua.PlaybackState.PLAYING),Dn=K(!1),nr=v(()=>m()||p()||!n(On)&&(f()&&!!Tt||n(Uo)&&$())),wr=K(!0),Sr=v(()=>e.uiConfig.features.thumbTimer&&mt()&&r()==="video"&&!y()&&!d()&&!Mt&&(e.uiConfig.hideThumbTimerAfterTouch&&!_()||!e.uiConfig.hideThumbTimerAfterTouch)),Dr=K(!1),co=v(()=>(Ct()||e.showAutoplayNext&&S())&&!!Ae()&&!!Fe()&&(e.showAds&&C()||!e.showAds)&&f()&&!d()&&!n(Dr)),Br=K(!1);Ke==null||Ke.setContext(Cd());let Bn=wt=>{wt&&!Mt&&uo(e.uiConfig.controls.hideTimeoutMobile)};e.store.setUiCallbacks({onStarted:Bn});let Fn=()=>{clearTimeout(rn),O(On,!1),p()&&ze.set(!1)},uo=wt=>{Fn(),O(On,!0),rn=setTimeout(()=>O(On,!1),wt);let Et=wt-100;$n=setTimeout(()=>{I()&&xr.set(!1)},Et>0?Et:wt)},Fr=Wt.subscribe(wt=>{W.set(wt),wt&&(clearTimeout(Nn),Nn=setTimeout(()=>W.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Hn=(...Et)=>gt(null,[...Et],function*(wt=ia()){var po,to,Vi,xn,So,qn;if(wt&&!ua.clientChecker.device.isIOS){let mi=tc(),zr=sn(),dr=ua.clientChecker.browser.isSamsungBrowser&&mi===e.shadowRootContainer;wt=mi===zr||dr}if(wt){uo(e.uiConfig.controls.hideTimeoutFullscreen);try{yield Ke==null?void 0:Ke.exit()}catch(mi){$e({message:String(mi)})}try{let mi=(po=N())!=null&&po.width&&((to=N())!=null&&to.height)?N():P();yield eb(mi)}catch(mi){$e({message:String(mi)})}}Lt.set(wt),e.store.getAdmanWrapper().setFullscreen(wt),E()?(xn=(Vi=e.store.callbacks)==null?void 0:Vi.onFullscreenEnter)==null||xn.call(Vi):(qn=(So=e.store.callbacks)==null?void 0:So.onFullscreenExit)==null||qn.call(So)}),vt=wt=>{let Et=wt,{width:po,height:to}=Et.target;It.set({width:po,height:to})},ui=()=>{let{width:wt,height:Et}=n(wo).getBoundingClientRect();It.set({width:wt,height:Et})};Rt(()=>{var wt;return Xu(Hn),e.uiConfig.features.annotationsInside&&(At==null||At.init(n(wo))),Ha(Ke)&&(Ke==null||Ke.assignPlayerContainer(n(wo)),Ke==null||Ke.setExternalEventHandlers({resize:vt,leavepictureinpicture:ui})),O(wr,!ua.clientChecker.device.isIphoneOrOldIpad),e.interactiveContainer&&((wt=De().parentElement)==null||wt.insertBefore(e.interactiveContainer,De().nextSibling)),()=>{clearTimeout(rn),clearTimeout($n),clearTimeout(Nn),Fr(),Ke==null||Ke.dispose().catch(Et=>{$e({message:String(Et)})}),Zu(Hn)}});let Tr=K(!0),rr=K(!0),sr=wt=>{let Et=k()+(wt==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;Et<0?(O(Tr,!1),Et=0):Et>=Q()&&(O(rr,!1),Et=Q()),O(Dn,!0),e.seekTime(Et)},sn=()=>ua.clientChecker.device.isIOS?n(wo):!e.uiConfig.allowChangingFullscreenTarget||!Ht()?e.outerContainerRef:Ht().contains(e.outerContainerRef)?Ht():e.outerContainerRef,Cr=()=>gt(null,null,function*(){try{if(ia())yield ju(document),$e({message:"exit fullscreen"});else{if($e({message:"request fullscreen"}),ua.clientChecker.device.isIOS&&!H())return;yield Yu(sn())}}catch(wt){$e({message:String(wt)})}}),an=()=>{Eo()},yn=wt=>{if(wt.preventDefault(),z()){an();return}if(!lt()){e.firstStart(),uo(e.uiConfig.controls.hideTimeoutCursor);return}O(Dn,!1),y()?Fn():uo(e.uiConfig.controls.hideTimeoutMobile)},Un=()=>{st.set(!0)},zn=()=>{Mt||(xr.set(!0),uo(e.uiConfig.controls.hideTimeoutCursor))},zo=wt=>{Wi&&(Wi(wt),uo(e.uiConfig.controls.hideTimeoutMobile))},Po=wt=>{eo&&(eo(wt),uo(e.uiConfig.controls.hideTimeoutMobile))};Oe(()=>{Ui.set(n(Or))}),Oe(()=>{pt.set((n(Uo)||z()||Y()||le()||X()||!n(co)&&(f()||n(On)&&!n(Dn)))&&!n(nr)&&r()==="video"&&!d()&&re())}),Oe(()=>{!Y()&&n(Br)&&!Z()&&uo(e.uiConfig.controls.hideTimeoutMobile),O(Br,Y(),!0)}),Oe(()=>{O(Tr,k()>0),O(rr,!we()&&k()<Q(),!0)}),Oe(()=>{lc(n(nn),z(),ue(),!0)});let ar=G("aria_label_video_player");d$({fullScreenChangeHandler:Hn,getFullscreenTarget:sn}),p$({store:e.store,getFullscreenTarget:sn});let Ao=(wt,Et)=>{var xn,So;let po=(So=(xn=e.store.callbacks)==null?void 0:xn.uiInfo)==null?void 0:So.onUpcomingLiveViewStateChanged;if(!po)return;let to=!!Et,Vi=Ie(Ie({},er(n(wo),{upcomingLiveScreen:Et},"upcomingLiveScreen",to)),wt);po(Vi)};var Ki=ZT();_t("blur",Ia,an);var Wn=T(Ki);al(Wn,{onClick:yn,get videoContainer(){return De()},set videoContainer(wt){De(wt)}});var lr=L(Wn,2);Ma(lr,()=>"slot",!1,(wt,Et)=>{no(wt,()=>({name:sl}))});var Hr=L(lr,2);Is(Hr,ne,wt=>{var Et=XT(),po=de(Et);let to=v(()=>r()!=="thumb"||d()||Mt&&e.autoplay||e.uiConfig.features.disableThumbUnstartedOnAutoplay&&e.autoplay);ol(po,{get hidden(){return n(to)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Vi=L(po,2);{var xn=je=>{var Gt=qT(),Pi=de(Gt);{var qo=cn=>{let Qo=v(()=>e.uiConfig.controls.seekStepMobile/1e3);Sp(cn,{side:"left",get seekStep(){return n(Qo)},handleSingleFirstClick:yn,handleSecondClick:()=>sr("backward")})};R(Pi,cn=>{n(Tr)&&cn(qo)})}var dn=L(Pi,2);{var pr=cn=>{let Qo=v(()=>e.uiConfig.controls.seekStepMobile/1e3);Sp(cn,{side:"right",get seekStep(){return n(Qo)},handleSingleFirstClick:yn,handleSecondClick:()=>sr("forward")})};R(dn,cn=>{n(rr)&&cn(pr)})}b(je,Gt)};R(Vi,je=>{e.canRewindLive&&Ji&&!_e().has("TIMELINE")&&je(xn)})}var So=L(Vi,2);{var qn=je=>{let Gt=v(()=>{var Pi;return(Pi=e.live)==null?void 0:Pi.startTime});Rc(je,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(Gt)},onUpcomingLiveViewStateChanged:Ao})};R(So,je=>{r()==="LiveWaitingStart"&&je(qn)})}var mi=L(So,2);{var zr=je=>{nl(je,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};R(mi,je=>{r()==="LiveWaitingRecover"&&je(zr)})}var dr=L(mi,2);{var rs=je=>{nl(je,{kind:"record",get thumbUrl(){return e.thumbUrl}})};R(dr,je=>{r()==="LiveWaitingRecord"&&je(rs)})}var ss=L(dr,2);{var Wr=je=>{var Gt=QT();let Pi;var qo=T(Gt);oc(qo,{get adsSlotId(){return Be()},get adsParams(){return ot()},get adsAutoplayParam(){return U()},get duration(){return ke()},get adsExternalApi(){return e.adsExternalApi}}),w(Gt),D(dn=>Pi=se(Gt,1,"ads-container s-8",null,Pi,dn),[()=>({hidden:r()!=="ads"})]),b(je,Gt)};R(ss,je=>{e.showAds&<()&&je(Wr)})}var Lo=L(ss,2);{var ln=je=>{let Gt=v(()=>!Ct()&&e.showAutoplayNext&&S());tg(je,{get title(){return Ae()},get thumb(){return Fe()},get isHide(){return n(Gt)},clickCloseIcon:()=>O(Dr,!0)})};R(Lo,je=>{n(co)&&Ae()&&Fe()&&je(ln)})}var fo=L(Lo,2);{var Ir=je=>{Mc(je,{})};R(fo,je=>{xe()&&je(Ir)})}var Wo=L(fo,2);{var as=je=>{var Gt=GT(),Pi=T(Gt);ec(Pi,{}),w(Gt),b(je,Gt)};R(Wo,je=>{J()&&je(as)})}var qe=L(Wo,2);{var Vt=je=>{Vc(je,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return Ne()}})};R(qe,je=>{X()&&je(Vt)})}var yi=L(qe,2);{var Mo=je=>{tl(je,{get shifted(){return y()},get captions(){return A()},get position(){return k()},get playerSize(){return P()},isMobile:!0})};R(yi,je=>{pe().value!=="off"&&je(Mo)})}var Vo=L(yi,2);{var Ko=je=>{var Gt=YT();Gt.__click=[KT,z,Ye,an];var Pi=T(Gt);il(Pi,{}),w(Gt),b(je,Gt)};R(Vo,je=>{d()&&je(Ko)})}var mo=L(Vo,2);{var io=je=>{let Gt=v(()=>r()==="thumb"||r()==="LiveWaitingStart"||r()==="LiveWaitingRecover"||r()==="LiveWaitingRecord"||r()==="ads"),Pi=v(()=>r()==="ads"),qo=v(()=>e.canRewindLive&&We()!==0);kc(je,{get bottomHidden(){return n(Gt)},get showControls(){return y()},get bottomNoSmooth(){return I()},get isAds(){return n(Pi)},get canRewindLive(){return n(qo)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Pe()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Ue()},get nextButtonActive(){return Je()},get prevButtonActive(){return ye()},get isOneVideoPlaylist(){return Ft()},get customFullscreenSupported(){return n(wr)},get endScreenShown(){return n(co)},toggleFullscreen:Cr,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:zo,onDisabledSeekToInteractiveClick:Po,get playerControlsWrapperRef(){return n(lo)},set playerControlsWrapperRef(dn){O(lo,dn,!0)},get playerControlsRef(){return n(ki)},set playerControlsRef(dn){O(ki,dn,!0)}})};R(mo,je=>{lt()&&je(io)})}var wn=L(mo,2);{var Sn=je=>{var Gt=jT(),Pi=T(Gt);Bc(Pi,{get supportLink(){return e.supportLink},get returnFocus(){return f$.noop},get ref(){return n(nn)},set ref(qo){O(nn,qo,!0)}}),w(Gt),b(je,Gt)};R(wn,je=>{z()&&je(Sn)})}var vo=L(wn,2);let Ro=v(()=>!n(Sr));sc(vo,{get isLive(){return Te()},get isHidden(){return n(Ro)},get isPlaying(){return j()},get position(){return k()},get duration(){return Q()}});var Qn=L(vo,2);{var cr=je=>{Ka(je,{})};R(Qn,je=>{n(ir)&&je(cr)})}var ur=L(Qn,2);{var Gn=je=>{cc(je,{})};R(ur,je=>{ie()&&je(Gn)})}var ys=L(ur,2);{var ls=je=>{Fc(je,{onClose:or,onSelectAutoQuality:()=>{Nr("auto"),or()}})};R(ys,je=>{n(ns)&&je(ls)})}b(wt,Et)});var Kn=L(Hr,2);Xe(Kn,wt=>O(Or,wt),()=>n(Or)),w(Ki),Xe(Ki,wt=>O(wo,wt),()=>n(wo)),D(()=>Ve(Ki,"aria-label",ar)),_t("click",Ki,Un,!0),_t("focusin",Ki,zn,!0),b(t,Ki),F(),o()}it(["click"]);function Cp(t){let e="";return ao(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),ao(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),ao(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),ao(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),ao(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),ao(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),ao(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),ao(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),ao(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),ao(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),ao(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),ao(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),ao(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),ao(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),ao(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),ao(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),ao(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),ao(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),ao(t.font)&&(e+=`--font:${t.font};`),ao(t.controlsGradientHeight)&&(e+=`--controls-gradient-height:${t.controlsGradientHeight};`),ao(t.controlsGradient)&&(e+=`--controls-gradient:${t.controlsGradient};`),e.length&&e||void 0}function ao(t){return typeof t=="string"&&!t.includes(";")}var m$=require("@vkontakte/videoplayer-shared/es2015");var eC=M('<div class="time-container s-9"><!></div>'),tC=M('<div class="player-wrapper s-9" role="region"><!> <!> <!> <!> <!> <div><!></div></div>'),iC={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 og(t,e){B(e,!0),q(t,iC);let[i,o]=Re(),r=()=>x(Z,"$scrubbingInProgress",i),a=()=>x(X,"$playerSize",i),l=()=>x(k,"$isPlaying$",i),d=()=>x(P,"$duration$",i),s=()=>x(z,"$positionWithScrubbing$",i),u=()=>x(I,"$playerPhase",i),m=()=>x(N,"$crashed$",i),p=()=>x(Q,"$currentSubtitle$",i),f=()=>x(H,"$currentSubtitleCaptions$",i),$=()=>x(E,"$positionExact$",i),y=()=>x(Y,"$isLive$",i),_=()=>x(le,"$isRewindableLive$",i),S=g(e,"outsideDuration",3,0),C=g(e,"videoContainer",15),{playerPhase:I,state:{crashed$:N,duration$:P,positionExact$:E,isPlaying$:k,currentSubtitle$:Q,currentSubtitleCaptions$:H,positionWithScrubbing$:z,isLive$:Y,isRewindableLive$:le},ui:{playerSize:X,controls:re,scrubbingInProgress:Z},actions:{internal:{getVideoElement:we}}}=ve(),ue=8,ne=K(!1),_e=ci({}),xe=K(!1),J=v(()=>!r()&&!n(xe)),Ne=()=>{O(ne,!0)},pe=()=>{O(ne,!1)},A=(0,m$.debounceFn)(nd,260);Oe(()=>{a(),A(we(),re,_e,n(ne))});let We=v(()=>l()?tn(d()-s()):tn(isFinite(d())?d():S()));var Te=tC(),j=T(Te);al(j,{hideCursor:!1,get videoContainer(){return C()},set videoContainer(Ae){C(Ae)}});var ie=L(j,2);Ma(ie,()=>"slot",!1,(Ae,Fe)=>{no(Ae,()=>({name:sl}))});var De=L(ie,2);let Be=v(()=>u()!=="thumb"||m());ol(De,{get hidden(){return n(Be)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var ot=L(De,2);{var U=Ae=>{tl(Ae,{shifted:!1,get captions(){return f()},get position(){return $()},get playerSize(){return a()}})};R(ot,Ae=>{p().value!=="off"&&n(J)&&Ae(U)})}var ke=L(ot,2);{var Pe=Ae=>{var Fe=eC(),Ft=T(Fe);rc(Ft,{get isLive(){return y()},get isPlaying(){return l()},get time(){return n(We)}}),w(Fe),b(Ae,Fe)};R(ke,Ae=>{n(J)&&Ae(Pe)})}var Ue=L(ke,2);let Je;var ye=T(Ue);Za(ye,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return _()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:ue,tooltipRightOffset:ue,get ref(){return _e.timeline},set ref(Ae){_e.timeline=Ae}}),w(Ue),w(Te),D(Ae=>Je=se(Ue,1,"timeline s-9",null,Je,Ae),[()=>({visible:n(ne)})]),_t("mouseenter",Te,Ne),_t("mouseleave",Te,pe),_t("mouseenter",Ue,()=>O(xe,!0)),_t("mouseleave",Ue,()=>O(xe,!1)),b(t,Te),F(),o()}var oC=M("<div><!></div>"),nC={hash:"s-2",code:'.vk-vp-root.s-2{--white:#fff;--black:#000;--red:#ff3347;--blue-light:#70c1ff;--black-alpha-40:rgba(0,0,0,.4);--white-alpha-24:hsla(0,0%,100%,.24);--white-alpha-72:hsla(0,0%,100%,.72);--devider-gray:#dce1e6;--text-gray:#626d7a;--font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;--controls-height:40px;--controls-gradient-height:100px;--controls-transition-duration:0.25s;--controls-transition-fn:cubic-bezier(0.455,0.03,0.515,0.955);--controls-desktop-item-margin-left:4px;--controls-desktop-padding-horizontal:4px;--focused:var(--white);--focused-outline-width:2px;--focused-outline-radius:0;--focused-element-shadow:inset 0 0 0 var(--focused-outline-width) var(--focused);--focused-slider-shadow:0 0 0 2px var(--focused);--big-play-size:96px;--big-play-radius:50%;--big-play-bg-color:rgba(0,0,0,.5);--big-play-hover-bg-color:rgba(0,0,0,.6);--big-play-icon-width:38px;--big-play-icon-height:33px;--interactive-episode-complete:#5c9ce6;--slider-bg:hsla(0,0%,100%,.4);--slider-filled-bg:var(--white);--slider-handle-bg:var(--white);--slider-loaded-bg:hsla(0,0%,100%,.4);--slider-height:3px;--slider-video-episode-gap:1.5px;--slider-radius:0px;--slider-handle-size:12px;--slider-filled-ads:#67a5eb;--slider-disabled-color:hsla(0,0%,97%,.31);--slider-volume-height:5px;--slider-volume-radius:calc(var(--slider-volume-height)/2);--slider-volume-handle-size:13px;--timeline-slider-filled-active-live-bg:var(--red);--timeline-slider-handle-active-live-bg:var(--red);--timeline-slider-bg:var(--slider-bg);--timeline-slider-filled-bg:var(--slider-filled-bg);--timeline-slider-handle-bg:var(--slider-handle-bg);--timeline-slider-loaded-bg:var(--slider-loaded-bg);--volume-slider-bg:var(--slider-bg);--volume-slider-filled-bg:var(--slider-filled-bg);--volume-slider-handle-bg:var(--slider-handle-bg);--controls-time:var(--white);--controls-gradient:linear-gradient(180deg,transparent 0%,rgba(0,0,0,.005) 6.67%,rgba(0,0,0,.02) 13.33%,rgba(1,1,1,.04) 20%,rgba(1,1,1,.07) 26.67%,rgba(2,2,2,.11) 33.33%,rgba(3,3,3,.16) 40%,rgba(4,4,4,.22) 46.67%,rgba(6,6,6,.28) 53.33%,rgba(7,7,7,.33) 60%,rgba(8,8,8,.38) 66.67%,rgba(9,9,9,.42) 73.33%,rgba(9,9,9,.46) 80%,hsla(0,0%,4%,.48) 86.67%,hsla(0,0%,4%,.5));--timeline-preview-shadow:rgba(0,0,0,.08);--timeline-preview-bg:#222;--timeline-padding-horizontal:10px;--timeline-padding-vertical-top:3px;--timeline-padding-vertical-bottom:4px;--timeline-height:calc(var(--timeline-padding-vertical-bottom) + var(--timeline-padding-vertical-top) + var(--slider-height));--preview-track-frame-height-vertical:114px;--preview-track-frame-height-horizontal:65px;--preview-track-controls-top:16px;--preview-track-time-line-height:16px;--preview-track-bottom-offset:10px;--preview-track-height:calc(var(--preview-track-frame-height-vertical) + var(--preview-track-bottom-offset));--preview-track-controls-top-offset:calc(var(--timeline-height) + var(--preview-track-controls-top) + var(--preview-track-time-line-height));--settings-bg:rgba(0,0,0,.72);--settings-item-bg-hover:hsla(0,0%,100%,.08);--settings-radius:8px;--mobile-settings-bg:#2c2d2e;--divider-border:1px solid var(--white-alpha-24);--toggle-color-separator:#363738;--toggle-color-off:#656565;--toggle-color-on:#71aaeb;--toggle-color-autoplay-on:var(--white);--notification-bg:#2c2d2e;--notification-radius:8px;--button-hover-transition:opacity 0.2s;--video-container-z-index:0;--controls-container-z-index:1;--ads-container-z-index:1;--end-screen-mobile-z-index:1;--notification-z-index:1;--thumb-timer-z-index:2;--debug-panel-z-index:2;--modal-z-index:2;--settings-menu-z-index:2;--context-menu-z-index:3;--hot-key-helpers-container-z-index:3;--overlay-container-z-index:4;--rotate-transition-duration:0.25s;--btn-color:var(--white);--double-forward-bg:rgba(0,0,0,.6);background:var(--black);color:var(--white);font-family:var(--vk-vp-custom-font,var(--font));font-size:12px;height:100%;line-height:normal;outline:0;overflow:hidden;position:relative;user-select:none;width:100%}.vk-vp-root.visible-outside.s-2{overflow:visible}.vk-vp-root.s-2 *{-webkit-tap-highlight-color:transparent}.vk-vp-root.s-2 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-2 p{margin:0}.vk-vp-root.s-2 svg:not(.interactive-root svg){pointer-events:none}.vk-vp-root.s-2 .interactive-root{font-family:var(--vk-vp-int-custom-font,inherit)}.vk-vp-root.s-2 :focus,.vk-vp-root.s-2 :focus-visible{outline:none}.vk-vp-root.s-2 :focus-visible{border-radius:var(--focused-outline-radius);box-shadow:var(--focused-element-shadow)}.vk-vp-root.s-2 .focus-hidden:focus-visible{box-shadow:none}.vk-vp-root.s-2 .hidden{opacity:0;visibility:hidden}.vk-vp-root.s-2 .out-of-flow{content-visibility:hidden!important}.vk-vp-root.s-2 .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-2 .out-of-view{left:-1000vh!important;position:absolute!important}.vk-vp-root.s-2 .icon.icon-error-stub{align-items:center;display:flex;justify-content:center}'};function ng(t,e){B(e,!0),q(t,nC);let[i,o]=Re(),r=()=>x(lt,"$isLive$",i),a=()=>x(At,"$availableSubtitlesList$",i),l=()=>x(Ke,"$isPreviewTrackHorizontallyAligned$",i),d=g(e,"sources",7),s=g(e,"store",7),u=g(e,"microStoresRoot",7),m=g(e,"videoConfig",7),p=g(e,"uiConfig",7),f=g(e,"title",7),$=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),N=g(e,"preload",7),P=g(e,"autoplay",7),E=g(e,"volume",7,void 0),k=g(e,"muted",7,void 0),Q=g(e,"fromTime",7),H=g(e,"canRewindLive",7),z=g(e,"showAds",7),Y=g(e,"adsSlotId",7,void 0),le=g(e,"adsParams",7,void 0),X=g(e,"adsAutoplayParam",7,void 0),re=g(e,"duration",7,void 0),Z=g(e,"logoClickable",7),we=g(e,"logoHidden",7),ue=g(e,"isMobile",7),ne=g(e,"showNextPrevButtons",7,!1),_e=g(e,"nextButtonActive",7,!1),xe=g(e,"prevButtonActive",7,!1),J=g(e,"endScreenVideoTitle",7,void 0),Ne=g(e,"endScreenVideoThumb",7,void 0),pe=g(e,"isOneVideoPlaylist",7,!1),A=g(e,"supportLink",7),We=g(e,"shadowRootContainer",7),Te=g(e,"outerContainerRef",7),j=g(e,"fullScreenTarget",7,void 0),ie=g(e,"failoverHosts",7,void 0),De=g(e,"showMiniTimer",7,!1),Be=g(e,"saveRate",7),ot=g(e,"seekToInteractive",7,ll.noop),U=g(e,"playPrevChapter",7,ll.noop),ke=g(e,"volumeMultiplier",7),Pe=g(e,"showAutoplayNext",7),Ue=g(e,"showEndScreen",7,!0),Je=g(e,"keyboardControls",15,void 0),{subscribers:ye,stores:Ae}=u();l_(p());let Fe=Nt(),Ft=p().logoLink,mt=s().ui.debugPanelVisible,Ht=s().ui.playerSize,lt=s().state.isLive$,oi=s().state.isInteractive&&dd.clientChecker.device.isAndroid,Ot=K(void 0),$e=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(),Ae),Oe(()=>{var W,Mt;s().ui.isMobile.set(ue()),(Mt=(W=m().callbacks)==null?void 0:W.onDomReady)==null||Mt.call(W)});let ee=(W=!1)=>{O(be,!0),W?s().actions.external.firstStart(z()):s().actions.internal.firstStart(z())},nt=()=>{if(Fe.features.qualityDetailsSubMenuEnabled){let W=U_(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{z_(s().videoId),jf()&&s().actions.internal.setTrafficSavingEnabled(!0);let Mt=Qf(s().videoId);Mt&&s().actions.internal.setQuality(Mt)}};function fe(W){var Xt,st,Ui;let Mt=d()||W;Mt&&s().initVideo({container:n(Ot),sources:Mt,failoverHosts:ie(),subtitles:S(),subtitlesForcedLanguage:C(),volumeMultiplier:ke()});let di=ll.safeStorage.get(Gd)==="true";mt.set(di),Q()>0&&s().actions.external.seekTime(Q());let ct=ue()?Fe.volumeDefault:(st=(Xt=E())!=null?Xt:Fu())!=null?st:Fe.volumeDefault,Tt=(Ui=k())!=null?Ui:N_();if(s().actions.external.setVolume(ct),s().actions.external.setMuted(Tt),s().getAdmanWrapper().setInitialVolume(Tt?0:ct),nt(),Fe.features.saveRate&&Be()){let zi=B_();zi&&!r()&&s().actions.internal.setPlaybackRate(zi)}if(Pe()){let zi=H_();zi&&s().actions.internal.setAutoplayNextEnabled(zi)}s().ui.isAutoplay.set(P()),P()&&ee(),N()&&Fe.features.preload&&s().actions.internal.preload()}let Me=W=>{if(window.ResizeObserver){let Mt,di;$e=new ResizeObserver((0,ll.throttleFn)(ct=>{let Tt=ct[0];if(Tt.contentBoxSize){let Xt=Array.isArray(Tt.contentBoxSize)?Tt.contentBoxSize[0]:Tt.contentBoxSize;Mt=Xt.inlineSize,di=Xt.blockSize}else Tt.contentRect&&(Mt=Tt.contentRect.width,di=Tt.contentRect.height);Ht.set({width:Mt,height:di})},300)),$e.observe(W)}Ht.set({width:W.clientWidth,height:W.clientHeight})},xt=()=>{document.hidden&&s().actions.external.stop()};Rt(()=>{var di,ct,Tt,Xt;oi&&document.addEventListener("visibilitychange",xt),Fe.debugLog&&s().actions.internal.startLogging(),Me(n(Ot));let W=ye.map(st=>st.init({store:s(),microStores:Ae,config:m(),interactiveController:_(),uiConfig:p()})),Mt=()=>{oi&&document.removeEventListener("visibilitychange",xt),$e==null||$e.disconnect(),W.forEach(st=>st.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):(((Tt=I())==null?void 0:Tt.status)==="finished"||((Xt=I())==null?void 0:Xt.status)==="postlive")&&!(d()&&(0,dd.areValidLiveRecordSources)(d()))?(s().actions.internal.setLiveWaitingRecord(!0),Mt):(fe(),Mt)});function Lt(){n(be)?s().actions.external.play():ee(!0)}function pt(){s().actions.external.pause()}function ce(W){s().actions.external.setMuted(W)}function ze(){s().actions.external.toggleSubtitle()}function Ye(W,Mt){s().actions.external.changeSubtitle(W,Mt)}function dt(W){s().actions.external.changeAudioStream(W)}function Ut(){var W;(W=s().webApi.slotsApi)!=null&&W.haveSlots()&&s().actions.external.hideControls()}function zt(){var W;(W=s().webApi.slotsApi)!=null&&W.haveSlots()&&s().actions.external.showControls()}function ri(W){ue()||W>=0&&W<=1&&s().actions.external.setVolume(W)}function wi(W){s().actions.internal.seekTime(W,v$.SeekAction.UNKNOWN)}function Zi(W){s().actions.external.seekEpisodeStartTime(W)}function Dt(){s().actions.external.returnFocusToEpisodes()}function fi(W){s().actions.external.setPlaybackRate(W)}function bi(W){s().actions.external.setAutoQualityLimits(W)}function bt(){s().actions.external.setQuality("auto")}function Jt(W){s().actions.external.setTrafficSavingEnabled(W)}function Ci(W){s().actions.external.setHighQualityEnabled(W)}let Ji=Cp(Fe.view),ti=m().playerView==="preview",At=s().state.availableSubtitlesList$;if(Fe.features.initSubtitles){let W=!1;Oe(()=>{var Mt;if(!W&&a().length){W=!0;let di;if(Fe.features.userVideoPrefs&&s().videoId){let Tt=Wu(Fe.userSalt,String(s().videoId));Tt!=null&&Tt.subtitleTrackId&&(di=a().find(Xt=>Xt.value===Tt.subtitleTrackId))}let ct=(Mt=C())!=null?Mt:Zf();ct&&(di=a().find(Tt=>Tt.language===ct)),s().actions.internal.setSubtitle(di)}})}let Ke=s().ui.isPreviewTrackHorizontallyAligned;var Ii=oC();let xo;var Io=T(Ii);{var bn=W=>{ig(W,{get store(){return s()},get uiConfig(){return Fe},get thumbUrl(){return $()},get interactiveContainer(){return y()},get live(){return I()},get autoplay(){return P()},get canRewindLive(){return H()},get showAds(){return z()},get adsSlotId(){return Y()},get adsParams(){return le()},get adsAutoplayParam(){return X()},get duration(){return re()},get logoClickable(){return Z()},get logoHidden(){return we()},get logoTargetUrl(){return Ft},get nextButtonActive(){return _e()},get prevButtonActive(){return xe()},get endScreenVideoTitle(){return J()},get endScreenVideoThumb(){return Ne()},get isOneVideoPlaylist(){return pe()},get supportLink(){return A()},get shadowRootContainer(){return We()},get outerContainerRef(){return Te()},get fullScreenTarget(){return j()},get showMiniTimer(){return De()},get playerStarted(){return n(be)},get seekToInteractive(){return ot()},get playPrevChapter(){return U()},firstStart:ee,seekTime:wi,get showEndScreen(){return Ue()},get showAutoplayNext(){return Pe()},get showNextPrevButtons(){return ne()},get adsExternalApi(){return e.adsExternalApi},get videoContainer(){return n(Ot)},set videoContainer(Mt){O(Ot,Mt,!0)}})},It=W=>{var Mt=Le(),di=de(Mt);{var ct=Xt=>{og(Xt,{get thumbUrl(){return $()},get outsideDuration(){return re()},get canRewindLive(){return H()},get videoContainer(){return n(Ot)},set videoContainer(st){O(Ot,st,!0)}})},Tt=Xt=>{eg(Xt,{get store(){return s()},get uiConfig(){return Fe},get title(){return f()},get thumbUrl(){return $()},get interactiveContainer(){return y()},get live(){return I()},get autoplay(){return P()},get canRewindLive(){return H()},get showAds(){return z()},get adsSlotId(){return Y()},get adsParams(){return le()},get adsAutoplayParam(){return X()},get duration(){return re()},get logoClickable(){return Z()},get logoHidden(){return we()},get logoTargetUrl(){return Ft},get nextButtonActive(){return _e()},get prevButtonActive(){return xe()},get endScreenVideoTitle(){return J()},get endScreenVideoThumb(){return Ne()},get isOneVideoPlaylist(){return pe()},get supportLink(){return A()},get shadowRootContainer(){return We()},get outerContainerRef(){return Te()},get fullScreenTarget(){return j()},get showMiniTimer(){return De()},get playerStarted(){return n(be)},get seekToInteractive(){return ot()},get playPrevChapter(){return U()},firstStart:ee,get showEndScreen(){return Ue()},get showAutoplayNext(){return Pe()},get showNextPrevButtons(){return ne()},get adsExternalApi(){return e.adsExternalApi},get videoContainer(){return n(Ot)},set videoContainer(st){O(Ot,st,!0)},get keyboardControls(){return Je()},set keyboardControls(st){Je(st)}})};R(di,Xt=>{ti?Xt(ct):Xt(Tt,!1)})}b(W,Mt)};R(Io,W=>{ue()?W(bn):W(It,!1)})}w(Ii),D(W=>{xo=se(Ii,1,"vk-vp-root s-2",null,xo,W),Qe(Ii,Ji)},[()=>({"root--miui-browser":dd.clientChecker.device.isMobile&&dd.clientChecker.browser.isMiuiBrowser,"visible-outside":ti,"preview-track-horizontally-alinged":l()})]),b(t,Ii);var Wt=F({initVideo:fe,play:Lt,pause:pt,setMuted:ce,toggleSubtitle:ze,changeSubtitle:Ye,changeAudioStream:dt,hideControls:Ut,showControls:zt,setVolume:ri,seekTime:wi,seekEpisodeStartTime:Zi,returnFocusToEpisodes:Dt,setPlaybackRate:fi,setAutoQualityLimits:bi,setAutoQuality:bt,toggleTrafficSaving:Jt,toggleHighQuality:Ci,get sources(){return d()},set sources(W){d(W)},get store(){return s()},set store(W){s(W)},get microStoresRoot(){return u()},set microStoresRoot(W){u(W)},get videoConfig(){return m()},set videoConfig(W){m(W)},get uiConfig(){return p()},set uiConfig(W){p(W)},get title(){return f()},set title(W){f(W)},get thumbUrl(){return $()},set thumbUrl(W){$(W)},get interactiveContainer(){return y()},set interactiveContainer(W){y(W)},get interactiveController(){return _()},set interactiveController(W){_(W)},get subtitles(){return 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 N()},set preload(W){N(W)},get autoplay(){return P()},set autoplay(W){P(W)},get volume(){return E()},set volume(W){E(W)},get muted(){return k()},set muted(W){k(W)},get fromTime(){return Q()},set fromTime(W){Q(W)},get canRewindLive(){return H()},set canRewindLive(W){H(W)},get showAds(){return z()},set showAds(W){z(W)},get adsSlotId(){return Y()},set adsSlotId(W){Y(W)},get adsParams(){return le()},set adsParams(W){le(W)},get adsAutoplayParam(){return X()},set adsAutoplayParam(W){X(W)},get duration(){return re()},set duration(W){re(W)},get logoClickable(){return Z()},set logoClickable(W){Z(W)},get logoHidden(){return we()},set logoHidden(W){we(W)},get isMobile(){return ue()},set isMobile(W){ue(W)},get showNextPrevButtons(){return ne()},set showNextPrevButtons(W){ne(W)},get nextButtonActive(){return _e()},set nextButtonActive(W){_e(W)},get prevButtonActive(){return xe()},set prevButtonActive(W){xe(W)},get endScreenVideoTitle(){return J()},set endScreenVideoTitle(W){J(W)},get endScreenVideoThumb(){return Ne()},set endScreenVideoThumb(W){Ne(W)},get isOneVideoPlaylist(){return pe()},set isOneVideoPlaylist(W){pe(W)},get supportLink(){return A()},set supportLink(W){A(W)},get shadowRootContainer(){return We()},set shadowRootContainer(W){We(W)},get outerContainerRef(){return Te()},set outerContainerRef(W){Te(W)},get fullScreenTarget(){return j()},set fullScreenTarget(W){j(W)},get failoverHosts(){return ie()},set failoverHosts(W){ie(W)},get showMiniTimer(){return De()},set showMiniTimer(W){De(W)},get saveRate(){return Be()},set saveRate(W){Be(W)},get showAutoplayNext(){return Pe()},set showAutoplayNext(W){Pe(W)},get seekToInteractive(){return ot()},set seekToInteractive(W){ot(W)},get playPrevChapter(){return U()},set playPrevChapter(W){U(W)},get volumeMultiplier(){return ke()},set volumeMultiplier(W){ke(W)},get showEndScreen(){return Ue()},set showEndScreen(W){Ue(W)},get keyboardControls(){return Je()},set keyboardControls(W){Je(W)}});return o(),Wt}var rC=Ce('<defs><path id="rect" d="m2.72 0c.45 0 .6.05.77.13a1 1 0 01.38.38c.09.16.13.33.13.77v1.44c0 .44-.04.6-.13.77a1 1 0 01-.38.38c-.16.08-.32.13-.77.13h-1.44c-.44 0-.6-.05-.77-.13a1 1 0 01-.37-.38c-.1-.16-.14-.33-.14-.77v-1.44c0-.44.05-.6.13-.77a1 1 0 01.38-.38c.17-.08.33-.13.77-.13z"></path></defs><path d="M38.24 6c3.57 0 4.86.37 6.17 1.07a7.3 7.3 0 0 1 3.02 3.02c.7 1.3 1.07 2.6 1.07 6.17v23.49c0 3.56-.37 4.85-1.07 6.16a7.3 7.3 0 0 1-3.02 3.02c-1.3.7-2.6 1.07-6.16 1.07h-19.5c-3.56 0-4.85-.37-6.16-1.07a7.3 7.3 0 0 1-3.02-3.02c-.7-1.3-1.07-2.6-1.07-6.16v-23.5c0-3.56.37-4.85 1.07-6.16a7.3 7.3 0 0 1 3.02-3.02C13.9 6.37 15.2 6 18.76 6zm.32 3h-19.8c-2.8 0-3.77.19-4.75.71a4.3 4.3 0 0 0-1.8 1.8c-.5.95-.7 1.87-.7 4.43l-.01 23.8c0 2.8.19 3.76.71 4.75a4.3 4.3 0 0 0 1.8 1.8c.98.52 1.95.71 4.75.71h19.49c2.8 0 3.76-.19 4.74-.71a4.3 4.3 0 0 0 1.8-1.8c.52-.98.71-1.95.71-4.74v-23.5c0-2.8-.19-3.75-.71-4.74a4.3 4.3 0 0 0-1.8-1.8c-.95-.5-1.87-.7-4.43-.7z"></path><use xlink:href="#rect" x="16.5" y="14"></use><use xlink:href="#rect" x="16.5" y="22"></use><use xlink:href="#rect" x="16.5" y="30"></use><use xlink:href="#rect" x="16.5" y="38"></use><use xlink:href="#rect" x="37" y="14"></use><use xlink:href="#rect" x="37" y="22"></use><use xlink:href="#rect" x="37" y="30"></use><use xlink:href="#rect" x="37" y="38"></use>',1);function rg(t,e){let i=g(e,"isWhite",3,!1),o=v(()=>i()?"#fff":"#909499");Ze(t,{width:"57",height:"60",get fill(){return n(o)},testId:"stub-icon",children:(r,a)=>{var l=rC();vi(9),b(r,l)},$$slots:{default:!0}})}var sC=M('<div class="title s-0"> </div>'),aC=M('<div class="playerStub s-0"><!> <!></div>'),lC={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,lC);var i=aC(),o=T(i);{var r=d=>{var s=sC(),u=T(s,!0);w(s),D(()=>me(u,e.title)),b(d,s)};R(o,d=>{e.title&&d(r)})}var a=L(o,2);{var l=d=>{let s=v(()=>!!e.thumbUrl);rg(d,{get isWhite(){return n(s)}})};R(a,d=>{(!e.title||!e.thumbUrl)&&d(l)})}w(i),D(()=>Qe(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),b(t,i)}var dC=M('<div class="playerError s-1"><!></div>'),cC={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 ag(t){q(t,cC);var e=dC(),i=T(e);il(i,{}),w(e),b(t,e)}var Bp=require("@vkontakte/videoplayer-shared/es2015"),Hi=require("@vkontakte/videoplayer-shared/es2015"),Zc=require("@vkontakte/videoplayer-core/es2015"),vd=require("@vkontakte/videoplayer-statistics/es2015");var Ep=require("@vkontakte/videoplayer-shared/es2015"),Ip=class{constructor(){this.subscription=new Ep.Subscription,this.logger=new Ep.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 ud=require("@vkontakte/videoplayer-shared/es2015");var uC=Ce('<path d="M31.257 3.998c3.037.01 4.52.39 6.13 1.24a9 9 0 013.47 3.35l.17.31.15.3c.78 1.55 1.07 3.18 1.09 6.25v9.04a1.5 1.5 0 01-3 .02v-9.65c-.05-2.04-.24-3.12-.64-4.04l-.12-.27-.13-.25A6 6 0 0036.2 7.9c-1.19-.64-2.34-.88-5.11-.9h-8.84c-2.73 0-4 .2-5.07.7l-.25.13a6 6 0 00-2.4 2.41c-.64 1.19-.88 2.34-.9 5.11v20.83c0 2.74.2 4 .7 5.08l.13.25a6 6 0 002.41 2.4c1.1.6 2.13.83 4.44.89H26a1.5 1.5 0 010 3h-4.47c-3-.05-4.53-.38-6.14-1.24a9 9 0 01-3.48-3.35l-.15-.3c-.73-1.47-1.04-3.01-1.08-5.8V15c.05-2.98.39-4.52 1.25-6.12a9 9 0 013.293-3.582c1.85-.871 2.623-1.27 5.747-1.27z"></path><path d="M30.5 33.8c0-1.68 0-2.52.33-3.16a3 3 0 0 1 1.3-1.31c.65-.33 1.49-.33 3.17-.33h6.4c1.68 0 2.52 0 3.16.33a3 3 0 0 1 1.31 1.3c.33.65.33 1.49.33 3.17v13.4c0 1.68 0 2.52-.33 3.16a3 3 0 0 1-1.3 1.31c-.65.33-1.49.33-3.17.33h-6.4c-1.68 0-2.52 0-3.16-.33a3 3 0 0 1-1.31-1.3c-.33-.65-.33-1.49-.33-3.17z"></path>',1),pC=M('<div><div><!></div> <span class="title s-6"> </span></div>'),fC={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){B(e,!0),q(t,fC);let[i,o]=Re(),r=()=>x(u,"$interfaceLanguage$",i),a=()=>x(m,"$isMobile$",i),l=ve(),d=Nt(),s=!!l.webApi.pictureInPictureApi,u=l.interfaceLanguage$,m=l.ui.isMobile,p=l.ui.t,f=v(()=>r()&&p("pip_dummy_title")),$=Cp(d.view);var y=pC();let _;var S=T(y);let C;var I=T(S);Ze(I,{width:"57",height:"56",testId:"pip-dummy-icon",children:(E,k)=>{var Q=uC();vi(),b(E,Q)},$$slots:{default:!0}}),w(S);var N=L(S,2),P=T(N,!0);w(N),w(y),D((E,k)=>{_=se(y,1,"player-pip-dummy s-6",null,_,E),Qe(y,$),C=se(S,1,"dummy-image s-6",null,C,k),me(P,n(f))},[()=>({"is-pip-api":s}),()=>({desktop:!a()})]),b(t,y),F(),o()}var mC=Object.defineProperty,vC=(t,e,i)=>e in t?mC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,cd=(t,e,i)=>vC(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())}),gC=460,hC=280,zc=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:gC,height:hC,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||(La(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 g$(t){return t instanceof zc}var Pp=class{static getLatestSupportedVersion(e){let i=new Fa(e),o=new zc(e);if(o.isSupported())return o;if(i.isSupported())return i}};function Wc(t,e){var r,a;let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let l of i)o[l]=(a=(r=e[l])!=null?r:t[l])!=null?a:void 0;return o}var h$="Inner error. Unexpectedly root annotation container null reference exception",_$="Annotation with such name already exists",b$="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"),_C="1",bC=100,Ap=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"},bC);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(h$);if(this.annotations.has(e))throw new pd(_$);i.style.zIndex=(o=i.style.zIndex)!=null?o:_C,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(b$);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"),_n=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 Kc=class extends _n{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$=jt(Ie({},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 qc=class extends _n{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$=jt(Ie({},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:m}=a.ui,p=ge(m),f=()=>p&&ge(u);return o.add(u.subscribe($=>{if(!p)return;let y=ge(l);ge(s)?this.state$.set($):y!==null&&this.state$.set(!y||$)})),o.add(s.subscribe($=>{this.state$.set(!$||f())})),o.add(l.subscribe($=>{if($===null)return;let y=ge(d);if(f()){this.state$.set(!0);return}y&&this.state$.set(!$)})),o}};var Qc=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 $$=require("@vkontakte/videoplayer-shared/es2015");var cg=ae(!1),kp=null,Gc=class extends _n{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$=jt(Ie({},cg),{set:(i,o=!1)=>{i!==ge(cg)&&(this.clearTimeout(),cg.set(i),!i&&kp&&(kp=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()})}init(i){let o=super.init(i),{store:r,config:a}=i,{isInteractiveTime$:l,isPlaying$:d}=r.state,s=r.ui.controlsVisible,{interactiveTimeIndicator:u}=r.ui.controls;o.add(s.subscribe(p=>{ge(l)&&p&&this.state$.set(!1)}));let m=(a==null?void 0:a.interactiveData)||{tooltipHelpHintActive:!1};return o.add((0,$$.combine)({isPlaying$:d,isInteractiveTime$:l,interactiveTimeIndicator:u}).subscribe(({isPlaying$:p,isInteractiveTime$:f,interactiveTimeIndicator:$})=>{var y,_;if(!(!p||!($!=null&&$.isDisplayed))){if(!f)return this.state$.set(!1);m.tooltipHelpHintActive&&kp===null&&(kp=!0,m.tooltipHelpHintActive=!1,this.state$.set(!0),(_=(y=r.callbacks)==null?void 0:y.onInteractiveTimeIndicatorHintDeactivated)==null||_.call(y))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};var Lp=require("@vkontakte/videoplayer-shared/es2015");var Yc=class extends _n{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$=jt(Ie({},ae(null)),{toggle:Lp.noop});this.checkIfShouldHide=i=>Ms(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(ge(l)))return;let s=ge(this.state$),{isEnded$:u,playbackState$:m}=r.state,{disabledControls$:p}=r.ui.controls,f=ge(u),$=ge(m);if(s)try{yield a==null?void 0:a.toggleGraphView(!1),this.state$.set(!1),p.remove(Ff),!f&&this.graphMadePause&&r.actions.internal.play()}catch(y){d({message:"Cant hide graph"})}else{this.graphMadePause=$==="playing";try{yield a==null?void 0:a.toggleGraphView(!0),this.state$.set(!0),p.add(Ff),!f&&this.graphMadePause&&r.actions.internal.pause()}catch(y){d({message:"Cant show graph"})}}}),o.add((0,Lp.combine)({graphIsOpened:this.state$,currentGridType:l}).subscribe(m=>gt(this,[m],function*({graphIsOpened:s,currentGridType:u}){if(this.checkIfShouldHide(u)&&s)try{yield a==null?void 0:a.toggleGraphView(!1),this.state$.set(!1)}catch(f){d({message:"Cant hide graph"})}}))),o}};var ug=require("@vkontakte/videoplayer-shared/es2015"),jc=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 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 Vp=require("@vkontakte/videoplayer-shared/es2015");var Mp=require("@vkontakte/videoplayer-shared/es2015");var y$=({maxShowCount:t,timeout:e})=>{let i=[t!==0?$C({maxCount:t}):void 0,e!==0?yC({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(r=>r.notificationShowed(o)),canShowNotification:o=>i.every(r=>r.canShowNotification(o))}},$C=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,r;e[i]=((o=e[i])!=null?o:0)+1,Mp.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}}},yC=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(Mp.safeStorage.get(e)||"{}")}catch(a){return{}}},o=a=>Mp.safeStorage.set(e,JSON.stringify(a)),r=a=>{let l=i();delete l[a],o(l)};return{notificationShowed:a=>{o(jt(Ie({},i()),{[a]:{timeout:t,launchTime:Date.now()}}))},canShowNotification:a=>{let l=i()[a];if(l){let d=Date.now()-l.launchTime>t;return d&&r(a),d}else return!0}}};var Xc=class extends _n{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$: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=y$({maxShowCount:a,timeout:l});let u=r.getPlayer();return o.add(u.events.severeStallOccured$.pipe((0,Vp.filterChanged)(),(0,Vp.filter)(m=>m)).subscribe(()=>{d&&!u.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(s&&r.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var x$=()=>[Kc,qc,Qc,Gc,Yc,jc,Xc].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:jt(Ie({},e),{[o.stateName]:o.state$})}},{subscribers:[],stores:{}});var md=require("@vkontakte/videoplayer-shared/es2015");var Rp=class{constructor(e){this.getActiveElement=e;this.focusableElements=[];this.isActive=!1;this.handleTabKey=e=>{if(this.updateFocusableElements(),!this.focusableElements.length)return;let i=this.focusableElements[0],o=this.focusableElements[this.focusableElements.length-1],r=this.getActiveElement();e.shiftKey&&r===i?(e.preventDefault(),o.focus()):!e.shiftKey&&r===o&&(e.preventDefault(),i.focus())}}activate(){this.isActive||(document.addEventListener("keydown",this.handleTabKey),this.isActive=!0)}deactivate(){this.isActive&&(document.removeEventListener("keydown",this.handleTabKey),this.isActive=!1,this.focusableElements=[])}updateFocusableElements(){this.isActive&&(this.focusableElements=this.getFocusableElements())}getFocusableElements(){let e=["button:not([disabled])","[href]:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"]):not([disabled])'].join(", ");return Array.from(this.container.querySelectorAll(e)).filter(i=>!i.disabled&&i.offsetParent!==null)}destroy(){this.deactivate()}setContainer(e){this.container=e}};var 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.focusLock=new Rp(()=>this.lastFocusedNode),this.init()}destroy(){this.shadowRoot.removeEventListener("focusin",this.handleFocusChange),this.focusLock.destroy()}getLastFocusedNode(){return this.lastFocusedNode}activateLock(){this.focusLock.activate()}deactivateLock(){this.focusLock.deactivate()}setContainerForFocusLock(e){this.focusLock.setContainer(e)}};var xC=M('<div class="root s-3"><!></div>'),wC={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){B(e,!0),q(t,wC);let i=null,o=K(null);Oe(()=>(n(o)&&(i=window.setTimeout(()=>{O(o,null)},e.animationDuration)),()=>{i&&clearTimeout(i)}));function r(s){e.playbackStatusShow&&O(o,s?"prev":"next",!0)}var a=Le(),l=de(a);{var d=s=>{var u=Le(),m=de(u);Is(m,()=>n(o),p=>{var f=xC(),$=T(f);let y=v(()=>n(o)==="prev");Uc($,{get duration(){return e.animationDuration},get Icon(){return ca},get reversed(){return n(y)}}),w(f),b(p,f)}),b(s,u)};R(l,s=>{e.playbackStatusShow&&n(o)&&s(d)})}return b(t,a),F({startVideoChangedAnimation:r})}var SC=Object.defineProperty,TC=Object.defineProperties,CC=Object.getOwnPropertyDescriptors,w$=Object.getOwnPropertySymbols,IC=Object.prototype.hasOwnProperty,EC=Object.prototype.propertyIsEnumerable,mg=(t,e,i)=>e in t?SC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Bs=(t,e)=>{for(var i in e||(e={}))IC.call(e,i)&&mg(t,i,e[i]);if(w$)for(var i of w$(e))EC.call(e,i)&&mg(t,i,e[i]);return t},PC=(t,e)=>TC(t,CC(e)),ei=(t,e,i)=>mg(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())}),AC={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,Zc.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},tr=K(void 0),fg=ci({animationDuration:0,playbackStatusShow:!1}),Dp=class extends HTMLElement{constructor(){super(),ei(this,"svelteStubComponent"),ei(this,"svelteRootComponent"),ei(this,"sveltePersistentLayerComponent"),ei(this,"svelteErrorComponent"),ei(this,"store"),ei(this,"microStoresRoot"),ei(this,"statistics"),ei(this,"sentry"),ei(this,"_shadowRoot"),ei(this,"playerContainer"),ei(this,"rootContainer"),ei(this,"stateContainer"),ei(this,"shadowRootContainer"),ei(this,"playerId"),ei(this,"uiConfig"),ei(this,"coreConfig"),ei(this,"statisticsConfig"),ei(this,"interactiveController"),ei(this,"interactiveContainer"),ei(this,"graphMadePause"),ei(this,"currentPlayingVideoIndex",0),ei(this,"needToRepeatPlaylist",!1),ei(this,"videoConfig"),ei(this,"pictureInPictureApi"),ei(this,"mediaSessionApi"),ei(this,"unsubscribePlayerPhaseSubscription"),ei(this,"logger"),ei(this,"log"),ei(this,"subscription"),ei(this,"interactiveSubscription"),ei(this,"annotationsApi"),ei(this,"slotsApi"),ei(this,"focusManager"),ei(this,"prevIsid"),ei(this,"isInited",!1),ei(this,"postponedInitParams",null),ei(this,"internalsExposure",null),ei(this,"shadowDOMCallbacksDisabled",!1),ei(this,"fatalError$",new Bp.ValueSubject(null)),ei(this,"createOneStat",(e,i={})=>{var o,r,a,l;if(!this.videoConfig)return;let{albumId:d,statPlace:s,statUserSalt:u,statTrackCode:m,statVKAppId:p,refreshStatAuthToken:f,autoplay:$,isMobile:y,isTouch:_,refDomain:S,deviceId:C,interactiveData:I}=Wc(this.videoConfig,i),N=(o=I==null?void 0:I.projectInfo)==null?void 0:o.pid,P=(a=(r=this.interactiveController)==null?void 0:r.state.isReplay$.getValue())!=null?a:!1;P&&(this.prevIsid=void 0);let{unitedVideoId:E,isClip:k=!1}=e;if(this.uiConfig.features.statistics&&E)try{return new vd.OneStat(Bs({movieId:E,albumId:d,place:s,trackCode:m,vkAppId:p,autoplay:(l=$&&!this.interactiveController)!=null?l:!1,mobile:_!=null?_:y,clip:k,refDomain:S,deviceId:C,isPreviewPlayerView:this.videoConfig.playerView==="preview"},N&&(!this.isInited||P)&&{projectId:Number(N)}),Bs({refreshAuthToken:f,userSalt:u,config:this.statisticsConfig},this.interactiveController&&{useIsid:!0,isid:this.prevIsid}))}catch(H){console.error(H),this.log({message:H.message})}}),md.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=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=ci({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}=Wc(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,m,p,f,$;if(!this.videoConfig)return;let{albumId:y,statPlace:_,statAuthToken:S,preload:C,autoplay:I,volume:N,muted:P,fromTime:E,canRewindLive:k,supportLink:Q,showAds:H,adsSlotId:z,adsParams:Y={},adsAutoplayParam:le,interfaceLanguage:X,isCyrillicRelatedInterface:re,logoClickable:Z,logoHidden:we,isMobile:ue,isTouch:ne,isAudioDisabled:_e,isLiveCatchUpMode:xe,fullScreenTarget:J,failoverHosts:Ne,canDownload:pe,callbacks:A,interactiveData:We,showThumbTimer:Te,additionalButtons:j=[],additionalSettingsMenuItems:ie=[],additionalContextMenuItems:De=[],repeat:Be,loop:ot,saveRate:U,volumeMultiplier:ke,showEndScreen:Pe,showAutoplayNext:Ue,mediascopePixels:Je}=Wc(this.videoConfig,i),{sources:ye,title:Ae,thumbUrl:Fe,unitedVideoId:Ft,isClip:mt=!1,duration:Ht,adsParams:lt={},videoEpisodes:Ct,previewThumbsData:oi,subtitles:Ot,subtitlesForcedLanguage:$e,live:be,adsExternalApi:ee}=e;if(!ye&&!be){let fi=new Error("empty sources and live");this.fatalError$.next(fi),(r=A.onCrashed)==null||r.call(A,fi.message);return}let nt=Bs(Bs({},Y),lt),fe=this.getNextVideoInfo(),Me={sources:ye,title:Ae,thumbUrl:Fe,subtitles:Ot,subtitlesForcedLanguage:$e,unitedVideoId:Ft,isClip:mt,live:be,albumId:y,statPlace:_,autoplay:I,muted:P,volume:N,fromTime:E,canRewindLive:k,showAds:H,adsSlotId:z,adsParams:nt,adsAutoplayParam:le,duration:Ht,logoClickable:Z,logoHidden:we,isTouch:ne!=null?ne:ue,repeat:Be,loop:ot,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:fe.nextVideoTitle,endScreenVideoThumb:fe.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},xt={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi,focusManager:this.focusManager};this.log({message:`create player, props: ${JSON.stringify(Me)}`});let Lt=(a=this.interactiveController)==null?void 0:a.state.statistics$.getValue(),pt=(Lt==null?void 0:Lt.oneStat)||this.createOneStat(e,i),ce=this.createThinOneStat(e,i),ze;Je&&(ze=new vd.MediascopePixel({pixels:Je})),(pt||ce)&&(this.statistics=new fp(pt,ce,ze,Lt==null?void 0:Lt.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Ba(this.uiConfig.sentry,{version:Na,env:Ou},{movieId:Ft,albumId:y,place:_,autoplay:(l=I&&!this.interactiveController)!=null?l:!1,mobile:ne!=null?ne:ue,clip:mt}),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=Bs(Bs({},this.sentry),Ba.getInstance());let dt=!!We,Ut=[],zt="tooltip_interactive_go_back_disabled_first";if(dt&&this.interactiveController){let fi=this.interactiveController.state.isInitialChapter$.getValue(),bi=this.interactiveController.getHistoryState();fi&&Ut.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||Ut.push("SEEK_TO_INTERACTIVE_BUTTON"),bi.hasPrevChapter$.getValue()||(Ut.push("PLAY_PREV_CHAPTER_BUTTON"),fi||(bi.isGoBackLimited$.getValue()?zt="tooltip_interactive_go_back_disabled_limit":zt="tooltip_interactive_go_back_disabled"))}let ri=()=>{var fi;this.isInited=!1,this.prevIsid=void 0;let bi=(o==null?void 0:o.info.isEnded$.getValue())&&((fi=this.interactiveController)==null?void 0:fi.state.isEndChapter$.getValue());A.onReplayInteractiveVideo&&!bi?A.onReplayInteractiveVideo():this.replayInteractiveVideo()},wi=Be&&this.videoConfig.videos.length===1;this.store=Lb({player:o,interfaceLanguage:X,isCyrillicRelatedInterface:re,videoId:Ft,isClip:mt,isLiveCatchUpMode:xe,isAudioDisabled:_e,statAuthToken:S,callbacks:A,webApi:xt,videoEpisodes:Ct,previewThumbsData:oi,canDownload:pe,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:Ut,isInteractive:dt,saveRate:U,interactiveRanges$:(m=this.interactiveController)==null?void 0:m.state.interactiveRanges$,isInteractiveTime$:(p=this.interactiveController)==null?void 0:p.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:ri,playPrevChapterDisabledTooltip:zt,hasInteractiveBranches:!!(($=(f=this.interactiveController)==null?void 0:f.getChapterBranches())!=null&&$.length),additionalButtons:this.uiConfig.features.additionalButtons?j:[],additionalSettingsMenuItems:ie!=null?ie:[],additionalContextMenuItems:De!=null?De:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),onVideoChanged:fi=>{var bi;return(bi=this.sveltePersistentLayerComponent)==null?void 0:bi.startVideoChangedAnimation(fi)},looped:this.uiConfig.features.useLoopSetting?ot:wi,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView,playerId:this.playerId});let{stores:Zi}=this.microStoresRoot=x$(),Dt=()=>{var fi,bi,bt,Jt,Ci,Ji;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(At=>{var Ke;return(Ke=A==null?void 0:A.onCurrentFormatChanged)==null?void 0:Ke.call(A,At)})),this.subscription.add(Zi.interactiveControlsOpacity$.subscribe(At=>{var Ke;At!==null&&((Ke=this==null?void 0:this.interactiveController)==null||Ke.setDisabledControls(At))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(At=>{var Ke;return(Ke=A==null?void 0:A.onThroughputEstimationChanged)==null?void 0:Ke.call(A,At)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(At=>{var Ke;return(Ke=A==null?void 0:A.onTrafficSavingEnabledChanged)==null?void 0:Ke.call(A,At)})),this.subscription.add(this.store.state.highQualityEnabled$.subscribe(At=>{var Ke;return(Ke=A==null?void 0:A.onHighQualityEnabledChanged)==null?void 0:Ke.call(A,At)})),this.subscription.add(this.store.state.isAutoQualityEnabled$.subscribe(At=>{var Ke;return(Ke=A==null?void 0:A.onAutoQualityEnabledChanged)==null?void 0:Ke.call(A,!!At)})),this.subscription.add(new Hi.Observable(At=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(Ke=>At.next(Ke)))}).pipe((0,Hi.skip)(1)).subscribe(At=>{var Ke;return(Ke=A==null?void 0:A.onCurrentPlaybackRateChanged)==null?void 0:Ke.call(A,At)})),this.subscription.add(this.store.state.volume$.subscribe(At=>{var Ke;return(Ke=A==null?void 0:A.onVolumeChange)==null?void 0:Ke.call(A,At)})),this.subscription.add(this.store.state.muted$.subscribe(At=>{var Ke,Ii,xo,Io;if(At)(Ke=A==null?void 0:A.onMute)==null||Ke.call(A);else{let bn=(xo=((Ii=this.store)==null?void 0:Ii.state.volume$)&&ge(this.store.state.volume$))!=null?xo:0;(Io=A==null?void 0:A.onUnmute)==null||Io.call(A,bn)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(At=>{var Ke;return(Ke=A==null?void 0:A.onVideoBitrateChanged)==null?void 0:Ke.call(A,At)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(At=>{var Ke;let Ii=(Ke=this.store)==null?void 0:Ke.ui.controls.disabledControls$;Ii&&(At&&!Ii.includes(Yd)&&Ii.add(Yd),At||Ii.remove(Yd))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(At=>Op(this,null,function*(){var Ke;if(!Zc.clientChecker.browser.isSamsungBrowser||!At||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&(yield this.replayInteractiveChapter((Ke=this.videoConfig)==null?void 0:Ke.callbacks.onExternalFullscreenExit))}))),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(At=>{var Ke;return(Ke=A==null?void 0:A.onVSIDChanged)==null?void 0:Ke.call(A,At)})),this.initMediaSession(),O(tr,{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:ye,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:Ae,thumbUrl:Fe,subtitles:Ot,subtitlesForcedLanguage:$e,live:be,preload:C,autoplay:I,muted:P,volume:N,fromTime:E,canRewindLive:k,supportLink:Q,showAds:H,adsSlotId:z,adsParams:nt,adsAutoplayParam:le,duration:Ht,logoClickable:Z,logoHidden:we,isMobile:ne!=null?ne:ue,failoverHosts:Ne,fullScreenTarget:J,saveRate:U,shadowRootContainer:this.shadowRootContainer,showMiniTimer:Te,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:fe.nextVideoTitle,endScreenVideoThumb:fe.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:ke,showEndScreen:Pe,showAutoplayNext:Ue,adsExternalApi:ee},!0);let ti={target:this.playerContainer,props:n(tr)};this.svelteRootComponent=jr(ng,ti),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(bt=(bi=(fi=this.videoConfig)==null?void 0:fi.callbacks)==null?void 0:bi.onInited)==null||bt.call(bi)),(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&&((Ji=(Ci=this.videoConfig)==null?void 0:Ci.callbacks)!=null&&Ji.onDevNullLog)?md.devNull.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):md.devNull.destroy("ui")};this.coreConfig.asyncResolveClientChecker?Zc.clientChecker.isInited$.subscribe(fi=>{fi&&(console.log("UI SDK async start"),Dt())}):Dt()}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,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:m,initChapterId:p,historyApi:f,videoLoader:$}=this.videoConfig.interactiveData;this.interactiveController=new d({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:u,graph:this.uiConfig.features.interactiveGraph,projectInfo:m,initChapterId:p,historyApi:f,vkVideoLoader:$,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,interactiveTimeOpenUri:this.uiConfig.features.interactiveTimeOpenUri,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat,isTouch:this.videoConfig.isTouch,animationsFeatureToggles:{areaControlShadow:this.uiConfig.features.interactiveAreaControlShadow,controlsExpectTimeBlinkAnimation:this.uiConfig.features.interactiveControlsExpectTimeBlinkAnimation,controlsTapPlace:this.uiConfig.features.interactiveControlsTapPlace,controlsFillAnimation:this.uiConfig.features.interactiveControlsFillAnimation,controlsHideAnimation:this.uiConfig.features.interactiveControlsHideAnimation},endChapterHistoryFix:this.uiConfig.features.interactiveHistoryEndChapterFix});let{isInteractiveExpectation$:y,isSeekable$:_}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(_.subscribe(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]=PC(Bs({},C.config),{title:(m==null?void 0:m.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 N,P,E,k,Q,H;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(jd)),C==="action-choice-canceled"){let Y=ge(this.store.state.isPlaying$)||z;if(((E=(N=this.videoConfig)==null?void 0:N.isTouch)!=null?E:(P=this.videoConfig)!=null&&P.isMobile)&&Y){this.store.ui.interactiveHideMobileControls.set(!0);return}(H=(k=this.videoConfig)==null?void 0:(Q=k.callbacks).onDisabledInteractiveClick)==null||H.call(Q)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:C,removeAllOpenURI:I})=>{this.store&&C==="container-fake-removed"&&I&&this.store.ui.controls.disabledControls$.remove(jd)})),yield this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(r=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&r.onInteractiveHistoryChanged){let C=this.interactiveController.getHistoryState();this.subscription.add(C.history$.subscribe(I=>{var N,P,E;I.length&&((E=(P=(N=this.videoConfig)==null?void 0:N.callbacks)==null?void 0:P.onInteractiveHistoryChanged)==null||E.call(P,I))}))}(l=(a=this.videoConfig)==null?void 0:a.callbacks)!=null&&l.onInteractiveChapterChanged&&this.subscription.add(this.interactiveController.events.chapterChanged$.subscribe(C=>{var I,N,P;(P=(I=this.videoConfig)==null?void 0:(N=I.callbacks).onInteractiveChapterChanged)==null||P.call(N,C.chapter,C.manifestVideo)})),this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var C,I,N,P;(C=this.microStoresRoot)==null||C.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(P=(I=this.videoConfig)==null?void 0:(N=I.callbacks).onInteractiveTimeIndicatorClick)==null||P.call(N)})),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,m,p,f,$,y,_,S,C,I,N,P,E,k,Q,H,z,Y,le;if(!this.isConnected){this.postponedInitParams=[e,i];return}if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData){let X=new Error("empty videos");this.fatalError$.next(X),(r=(o=e.callbacks)==null?void 0:o.onCrashed)==null||r.call(o,X.message);return}else this.fatalError$.next(null);if(this.videoConfig=Wc(AC,(0,Hi.cloneDeepWith)(e,X=>X instanceof HTMLElement?X:void 0)),this.playerId=(0,Hi.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 Hi.InternalsExposure("ui",this.playerId))),md.devNull.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+((m=this.videoConfig)==null?void 0:m.showAds)],numbers:[(0,Bp.now)()]}),(0,Hi.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(f=(p=this.uiConfig.features.mediaSession)!=null?p:this.videoConfig.isMediaSessionEnabled)!=null?f:!0),(0,Hi.isNonNullable)(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(y=($=this.uiConfig.features.pip)!=null?$: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=Bs({preview:(C=this.uiConfig.ads.preview)!=null?C:this.videoConfig.adsPreviewParam},this.uiConfig.ads.paramsOverride),this.videoConfig.isTouch=(N=(I=this.uiConfig.isMobile)!=null?I:this.videoConfig.isTouch)!=null?N:this.videoConfig.isMobile,(P=this.videoConfig).autoplay&&(P.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(E=this.uiConfig.ads.enable)!=null?E:this.videoConfig.showAds,this.videoConfig.adsSlotId=(k=this.uiConfig.ads.slot)!=null?k:this.videoConfig.adsSlotId,this.videoConfig.logoHidden=!((Q=this.uiConfig.showLogo)!=null?Q:!this.videoConfig.logoHidden),(H=this.videoConfig).canRewindLive&&(H.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(z=this.videoConfig.supportLink)!=null?z:this.uiConfig.supportLink,this.videoConfig.showEndScreen=this.uiConfig.features.endScreen&&this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=this.uiConfig.features.autoplayNext&&this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=this.uiConfig.features.nextPrevButtons&&this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((Y=this.videoConfig.videos)!=null&&Y[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let X={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=Pp.getLatestSupportedVersion(X):this.pictureInPictureApi=new Fa(X)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new Ip:void 0,this.slotsApi=this.uiConfig.features.slots?new wp:void 0,this.annotationsApi=this.uiConfig.features.annotations?new Ap(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),this.focusManager=this._shadowRoot?new Np(this._shadowRoot):void 0,this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteErrorComponent),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveSubscription.unsubscribe()),this.videoConfig.interactiveData?this.initInteractives():this.createPlayer(this.videoConfig.videos[this.currentPlayingVideoIndex]),g$(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(le=this.slotsApi)==null||le.init(this.shadowRootContainer,this.store)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateVideos(e,i){if(!this.videoConfig)return;this.log({message:`update ${i} videos, videos: ${JSON.stringify(e)}`}),i==="prev"?(this.videoConfig.videos.splice(0,this.currentPlayingVideoIndex),this.videoConfig.videos.unshift(...e),this.currentPlayingVideoIndex=e.length):i==="next"&&(this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...e));let o=this.getNextVideoInfo();n(tr)&&(n(tr).showNextPrevButtons=this.needToShowNextPrevButtons(),n(tr).nextButtonActive=this.isNextButtonActive(),n(tr).prevButtonActive=this.isPrevButtonActive(),n(tr).endScreenVideoTitle=o.nextVideoTitle,n(tr).endScreenVideoThumb=o.nextVideoThumb,n(tr).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}=Bs({},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(tr)&&(n(tr).needToRepeatPlaylist=this.needToRepeatPlaylist,n(tr).showNextPrevButtons=this.needToShowNextPrevButtons(),n(tr).nextButtonActive=this.isNextButtonActive(),n(tr).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&&La(e)}};var gd=require("@vkontakte/videoplayer-shared/es2015"),Fp=require("@vkontakte/videoplayer-core/es2015"),kC=()=>{window.customElements.define("vk-video-player",Dp)};
|
|
62
|
+
`)),b(j,ie)};R(xe,j=>{n(I)&&j(J)})}var Ne=L(xe,2),pe=T(Ne);{var k=j=>{var ie=Le(),De=de(ie);{var Be=U=>{var Ae=vs();D(Pe=>me(Ae,Pe),[()=>G("tooltip_episode_unfinished")]),b(U,Ae)},ot=U=>{var Ae=vs();D(()=>me(Ae,n(Q).text||"")),b(U,Ae)};R(De,U=>{f()&&n(Q).completed===!1?U(Be):U(ot,!1)})}b(j,ie)};R(pe,j=>{n(Q)&&j(k)})}w(Ne);var We=L(Ne,2);{var Te=j=>{var ie=Vw(),De=T(ie,!0);w(ie),D(()=>me(De,d())),b(j,ie)};R(We,j=>{f()||j(Te)})}w(ne),D(j=>{_e=se(ne,1,"timeline-preview s-i",null,_e,j),Qe(ne,`width: ${n(H)?n(C):n(S)}px;`)},[()=>({mobile:s()})]),b(t,ne),F(),o()}var Ow=M('<span class="time s-f"> </span>'),Dw=M("<!> <!>",1),Bw={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 fe,Me,xt,Lt,pt;B(e,!0),q(t,Bw);let[i,o]=Re(),r=()=>x(X,"$interactiveEpisodes$",i),a=()=>x(A,"$duration$",i),l=()=>x(E,"$position$",i),d=()=>x(we,"$isInteractiveExpectation$",i),s=()=>x(Z,"$isInteractiveTime$",i),u=()=>x(xe,"$previewTrackActive",i),m=()=>x(Q,"$isLive$",i),p=()=>x(_e,"$disabledControls$",i),f=()=>x(z,"$isMobile",i),$=()=>x(H,"$isActiveLive$",i),y=()=>x(P,"$bufferedProgress$",i),_=g(e,"showTimeline",3,!1),S=g(e,"withEpisodes",3,!0),C=g(e,"ref",15,void 0),I=ve(),N=Nt(),P=I.state.bufferedProgress$,E=I.state.positionWithScrubbing$,A=I.state.duration$,Q=I.state.isLive$,H=I.state.isActiveLive$,z=I.ui.isMobile,Y=N.features.episodes&&S()?I.actions.internal.getVideoEpisodes():void 0,le=I.actions.internal.getPreviewThumbsData(),X=I.state.interactiveEpisodes$,re=I.state.isInteractive,Z=I.state.isInteractiveTime$,we=I.state.isInteractiveExpectation$,ue=I.actions.internal.correctSeekTimeToInteractive,ne=(fe=I.callbacks)==null?void 0:fe.onDisabledTimelineClick,_e=I.ui.controls.disabledControls$,xe=I.ui.previewTrackActive,J=(xt=(Me=I.callbacks)==null?void 0:Me.uiInfo)==null?void 0:xt.onTimelineMouseEnter,Ne=(pt=(Lt=I.callbacks)==null?void 0:Lt.uiInfo)==null?void 0:pt.onTimelineMouseLeave,pe=I.ui.t,k=N.features.interactiveResponsiveUi,We=v(()=>re?r():Y),Te=v(()=>tn(a())),j=v(()=>tn(l())),ie=v(()=>l()/a()),De=v(()=>d()||s()),Be=K(!1),ot=K(""),U=K(0),Ae=K(0),Pe=K(0),Ue=v(()=>({containerWidth:n(Ae),translateXPx:n(U),translateYPx:re&&le?-36:-16,active:n(Be)&&_()&&!n(De)&&!k&&!u(),pointer:!N.features.timelinePreview||!le||m()})),Je=pe("aria_timeline"),ye=v(()=>pe("aria_timeline_value",{position:n(j),duration:n(Te)}));function ke(ce){return!ue||!re?ce:ue(ce*a())/a()}function Fe(ce,ze){var Ye;(Ye=e.onSliderPointerDown)==null||Ye.call(e,ze),I.actions.internal.startScrubbing(ke(ce))}function Ft(ce){s()||I.actions.internal.progressScrubbing(ke(ce))}function mt(ce){var ze;I.actions.internal.completeScrubbing(ke(ce)),O(Be,!1),(ze=e.onSliderPointerUp)==null||ze.call(e)}function Ht(ce,ze,Ye){var dt;(dt=e.onSliderPointerEnter)==null||dt.call(e,ce),oi(ce,ze,Ye),O(Be,!0)}function lt(ce,ze,Ye,dt){var Ut;(Ut=e.onSliderMove)==null||Ut.call(e,dt,ce),oi(ce,ze,Ye),O(Be,!0)}function Ct(){var ce;O(Be,!1),(ce=e.onSliderLeave)==null||ce.call(e)}function oi(ce,ze,Ye){O(Pe,ke(ce),!0),O(U,ze,!0),Ye&&O(Ae,Ye,!0),O(ot,Ot(ce),!0)}function Ot(ce){let ze=tn((m()?1-ce:ce)*a());return m()?`-${ze}`:ze}let $e=v(()=>p().has("TIMELINE"));var be=Dw(),ee=de(be);iv(ee,ks(()=>n(Ue),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(ce,ze)=>{var Ye=Le(),dt=de(Ye);{var Ut=ri=>{ov(ri,{get time(){return n(ot)},get isMobile(){return f()},get videoEpisodes(){return n(We)},get previewThumbsData(){return le},get progress(){return n(Pe)},get duration(){return a()},get isInteractive(){return re}})},zt=ri=>{var wi=Ow(),Zi=T(wi,!0);w(wi),D(()=>me(Zi,n(ot))),b(ri,wi)};R(dt,ri=>{N.features.timelinePreview&&le&&!m()?ri(Ut):ri(zt,!1)})}b(ce,Ye)},$$slots:{default:!0}}));var nt=L(ee,2);Ga(nt,{className:"timeline-slider",get isActiveLive(){return $()},get isMobile(){return f()},get ariaLabel(){return Je},ariaValueMin:0,get ariaValueMax(){return a()},get ariaValueNow(){return l()},get ariaValueText(){return n(ye)},get loadedProgress(){return y()},get filledProgress(){return n(ie)},get handleProgress(){return n(ie)},get videoEpisodes(){return n(We)},onPointerDown:Fe,onHandleMove:Ft,onPointerMove:lt,onPointerUp:mt,onPointerEnter:Ht,onPointerLeave:Ct,get onMouseEnter(){return J},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:mt,get ref(){return C()},set ref(ce){C(ce)}}),b(t,be),F(),o()}var Fw={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 kc(t,e){B(e,!0),q(t,Fw);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,m=v(()=>tn(l())),p=v(()=>tn(a())),f=v(()=>a()/l()),$=v(()=>u("aria_timeline_value",{position:n(p),duration:n(m)})),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($)},get filledProgress(){return n(f)},hideHandel:!0,get squareBorders(){return r()}}),F(),o()}var Hw=M("<div><!></div>"),Uw=M("<div></div>"),zw={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){B(e,!0),q(t,zw);let[i,o]=Re(),r=()=>x(S,"$isLive$",i),a=()=>x(N,"$isMobile",i),l=()=>x(P,"$disabled",i),d=()=>x(I,"$adPosition",i),s=()=>x(C,"$adDuration",i),u=g(e,"isAds",3,!1),m=g(e,"isHidden",3,!1),p=g(e,"timelineNotAvailable",3,!1),f=g(e,"needPadding",3,!0),$=g(e,"ref",15,void 0),y=ve(),_=Nt(),S=y.state.isLive$,C=y.ads.duration,I=y.ads.position,N=y.ui.isMobile,P=ae(!1),E=v(()=>!p()&&(!r()||r()&&e.canRewindLive&&e.isRewindableLive||u()));var A=Le(),Q=de(A);{var H=Y=>{var le=Hw();let X;var re=T(le);{var Z=ue=>{kc(ue,{get position(){return d()},get duration(){return s()}})},we=ue=>{nv(ue,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return n(E)},get withEpisodes(){return e.withEpisodes},get onSliderMove(){return e.onSliderMove},get onSliderPointerDown(){return e.onSliderPointerDown},get onSliderPointerUp(){return e.onSliderPointerUp},get onSliderLeave(){return e.onSliderLeave},get onSliderPointerEnter(){return e.onSliderPointerEnter},get ref(){return $()},set ref(ne){$(ne)}})};R(re,ue=>{u()?ue(Z):ue(we,!1)})}w(le),Ps(le,()=>Ql(m()&&_.features.usePerformanceFix,P,_.disableInvisibleComponentsTimeout)),D(ue=>X=se(le,1,"timeline s-a",null,X,ue),[()=>({withoutPadding:!f(),mobile:a(),"out-of-flow":l()})]),b(Y,le)},z=Y=>{var le=Uw();let X;D(re=>X=se(le,1,"timeline-stub s-a",null,X,re),[()=>({mobile:a()})]),b(Y,le)};R(Q,Y=>{n(E)?Y(H):Y(z,!1)})}b(t,A),F(),o()}var Fb=require("@vkontakte/videoplayer-shared/es2015");var Ww=(t,e,i,o,r,a,l)=>{O(e,!0),O(i,t.clientX,!0),O(o,n(r),!0),a(l())},Kw=M("<div></div>"),qw=M('<div><div class="track s-2d"></div></div>'),Qw={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){B(e,!0),q(t,Qw);let[i,o]=Re(),r=()=>x(N,"$rotateAlpha",i),a=()=>x(_,"$position$",i),l=()=>x(y,"$duration$",i),d=ve(),{countPerImage:s=0,countPerRow:u=0,countTotal:m=0,links:p=[],frameHeight:f=0,frameWidth:$=0}=d.actions.internal.getPreviewThumbsData()||{},{duration$:y,positionWithScrubbing$:_}=d.state,{startScrubbing:S,progressScrubbing:C,completeScrubbing:I}=d.actions.internal,N=d.ui.rotateAlpha,P=K(void 0),E=K(!1),A=K(0),Q=K(0),H=K(0),z=K(0),Y=v(()=>f<=$),le=v(()=>id(r())),X=v(()=>n(Y)?!n(le):n(le)),re=114,Z=65,we=3,ue=v(()=>n(X)?re:Z),ne=v(()=>n(Y)?re:Z),_e=v(()=>n(Y)?"var(--preview-track-frame-height-horizontal)":"var(--preview-track-frame-height-vertical)"),xe=v(()=>m*n(ue)),J=K(0);Oe(()=>{O(z,Math.ceil(-n(H)/n(ue))-1),O(H,-n(xe)*a()/l())});let Ne=()=>{I(pe(),!0)},pe=()=>l()*-n(H)/n(xe)/l(),k=!1,We=ye=>{if(!n(E))return!1;let ke=ye.clientX-n(A);O(H,n(Q)+ke),O(H,Math.max(Math.min(n(H),0),-n(xe)),!0),Math.abs(ke)>1&&(k=!0),C(pe())},Te=ye=>{n(E)&&(O(E,!1),!k&&ye&&O(H,-(ye.offsetX-n(J)/2)),k=!1,Ne())},j=()=>{n(E)&&Te()},ie=v(()=>s/u),De=(ye,ke)=>{if(ye!==p.length-1)return u;let Fe=0,Ft=ke*u;for(let mt=1;mt<=u;mt++)ye*s+Fe+Ft<m&&Fe++;return Fe},Be=v(()=>Math.floor(n(z)/s)),ot=v(()=>(0,Fb.getRangeAroundIndex)(3,n(Be),p.length-1)),U=(ye,ke,Fe)=>{let Ft=s*n(ue);return ye*Ft+ke*n(ue)*u+n(J)/2-we/2+Fe*n(ue)},Ae=v(()=>[`--row-numbers: ${n(ie)}`,`--column-numbers: ${u}`,`--frame-width: ${n(ne)}px`,`--frame-height: ${n(_e)}`].join(";"));var Pe=qw();let Ue;var Je=T(Pe);Je.__pointerdown=[Ww,E,A,Q,H,S,pe],Je.__pointermove=We,Je.__pointerup=Te,Ti(Je,20,()=>n(ot),ye=>ye,(ye,ke)=>{var Fe=Le(),Ft=de(Fe);Ti(Ft,16,()=>Array.from({length:n(ie)},(mt,Ht)=>Ht),mt=>mt,(mt,Ht)=>{var lt=Le(),Ct=de(lt);Ti(Ct,16,()=>Array.from({length:De(ke,Ht)},(oi,Ot)=>Ot),oi=>oi,(oi,Ot)=>{var $e=Kw();D((be,ee)=>{Qe($e,be),se($e,1,ee,"s-2d")},[()=>`--row-index: ${Ht}; --column-index: ${Ot}; left: ${U(ke,Ht,Ot)}px; background-image: url(${p[ke]});`,()=>`frame rotate-${Math.abs(r())/90%4}`]),b(oi,$e)}),b(mt,lt)}),b(ye,Fe)}),w(Je),w(Pe),Xe(Pe,ye=>O(P,ye),()=>n(P)),D(ye=>{Ue=se(Pe,1,"root s-2d",null,Ue,ye),Qe(Pe,n(Ae)),Qe(Je,`transform: translateX(${n(H)}px); width: ${n(xe)}px;`)},[()=>({"is-vertical-video":!n(Y),"vertically-rotated":n(le)})]),_t("mouseleave",Je,j),An(Pe,"clientWidth",ye=>O(J,ye)),b(t,Pe),F(),o()}it(["pointerdown","pointermove","pointerup"]);var Gw=M('<div class="notification s-2c"><span class="description s-2c"> </span></div>'),Yw={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 av(t,e){B(e,!1),q(t,Yw);let i=340,{ui:{t:o}}=ve();To();var r=Gw(),a=T(r),l=T(a,!0);w(a),w(r),D(d=>me(l,d),[()=>o("preview_track_close_tooltip")],Cn),Zr(3,r,()=>bs,()=>({duration:i})),b(t,r),F()}var Hb=require("@vkontakte/videoplayer-shared/es2015"),jw=M('<div class="preview-track-close tooltip s-29"><!></div>'),Xw=M('<div class="preview-track-control s-29"><!> <div class="preview-track-close s-29"><!></div> <!></div>'),Zw=M('<div class="wrapper-preview-track s-29"><!></div>'),Jw=M('<div class="enriched-timeline s-29"><!> <!> <!></div>'),eS={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 lv(t,e){B(e,!0),q(t,eS);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($,"$isRewindableLive$",i),u=g(e,"timelineRef",15,void 0),m=ve(),p=200,{positionWithScrubbing$:f,isRewindableLive$:$,duration$:y}=m.state,{playerSize:_,previewTrackActive:S}=m.ui,{countPerImage:C=0,links:I=[],frequency:N=0}=m.actions.internal.getPreviewThumbsData()||{},P=v(()=>r().width>100),E=K(!q_()),A=()=>{n(E)&&(K_(),O(E,!1))},Q=ue=>{let ne=Math.floor(a()*ue/N),_e=Math.floor(ne/C),xe=(0,Hb.getRangeAroundIndex)(3,_e,I.length-1);for(let J of xe){let Ne=new Image;Ne.src=I[J]}},H=(ue,ne)=>{Q(ne),!l()&&e.onTimelineMove(ue)};var z=Jw(),Y=T(z);{var le=ue=>{var ne=Xw(),_e=T(ne);let xe=v(()=>tn(d()));tv(_e,{get time(){return n(xe)}});var J=L(_e,2),Ne=T(J);Ls(Ne,{onClick:()=>m.actions.internal.closePreviewTrack()}),w(J);var pe=L(J,2);{var k=We=>{var Te=jw(),j=T(Te);av(j,{}),w(Te),b(We,Te)};R(pe,We=>{n(E)&&We(k)})}w(ne),_t("mouseleave",J,A),Zr(3,ne,()=>bs,()=>({duration:p})),b(ue,ne)};R(Y,ue=>{l()&&ue(le)})}var X=L(Y,2);let re=v(()=>!n(P));Za(X,{get isHidden(){return n(re)},get isAds(){return e.isAds},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return s()},onSliderMove:H,get onSliderPointerDown(){return e.onTimelinePointerDown},get onSliderPointerUp(){return e.onTimelinePointerUp},get onSliderLeave(){return e.onTimelinePointerLeave},onSliderPointerEnter:Q,get ref(){return u()},set ref(ue){u(ue)}});var Z=L(X,2);{var we=ue=>{var ne=Zw(),_e=T(ne);sv(_e,{}),w(ne),D(()=>Qe(ne,`height: ${e.animatedPreviewTrackHeight}px;`)),b(ue,ne)};R(Z,ue=>{e.previewTrackAvailable&&ue(we)})}w(z),D(()=>Qe(z,`transform: translateY(${e.animatedOffsetY}px);`)),b(t,z),F(),o()}var iS=M('<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),oS={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 va,Pr;B(e,!0),q(t,oS);let[i,o]=Re(),r=()=>x(Io,"$disabledControls$",i),a=()=>x(st,"$adPlaybackState",i),l=()=>x(zt,"$playbackState$",i),d=()=>x(xo,"$currentSubtitle$",i),s=()=>x(Zi,"$isEnded$",i),u=()=>x(on,"$currentGridType$",i),m=()=>x(Dt,"$isLive$",i),p=()=>x(Ke,"$chromecastState$",i),f=()=>x(bt,"$isPictureInPictureActive",i),$=()=>x(Jt,"$pictureInPictureType$",i),y=()=>x(Ii,"$availableSubtitlesList$",i),_=()=>x(Wt,"$contextMenuOpenedByKeyboard$",i),S=()=>x(It,"$showContextMenuBtn$",i),C=()=>x(bi,"$isRewindableLive$",i),I=()=>x(fi,"$isActiveLive$",i),N=()=>x(ns,"$graphIsOpened$",i),P=()=>x(bn,"$contextMenuVisible$",i),E=()=>x(Ui,"$isFullscreen",i),A=()=>x(Wi,"$autoplayNextEnabled",i),Q=()=>x(n(to),"$prevButton",i),H=()=>x(n(Vi),"$replayButton",i),z=()=>x(n(xn),"$playButton",i),Y=()=>x(n(So),"$nextButton",i),le=()=>x(n(qn),"$playPrevChapterButton",i),X=()=>x(n(mi),"$seekToInteractiveButton",i),re=()=>x(n(zr),"$interactiveGraphButton",i),Z=()=>x(n(dr),"$liveButton",i),we=()=>x(n(rs),"$time",i),ue=()=>x(n(ss),"$episodes",i),ne=()=>x(n(Wr),"$vkLogo",i),_e=()=>x(n(Lo),"$volume",i),xe=()=>x(n(ln),"$subtitles",i),J=()=>x(n(fo),"$settings",i),Ne=()=>x(n(Ir),"$context",i),pe=()=>x(n(Wo),"$fullscreen",i),k=()=>x(n(as),"$chromecast",i),We=()=>x(Eo,"$additionalDesktopControlPanelRightButtons$",i),Te=()=>x(zi,"$playerSize",i),j=()=>x(nn,"$isInteractiveTime$",i),ie=()=>x(ii,"$previewTrackActive",i),De=()=>x(Ci,"$settingsMenuVisible",i),Be=()=>x(mo,"$settingButtonRef$",i),ot=()=>x(W,"$startedByKeyboard$",i),U=()=>x(ri,"$isAudioAvailable$",i),Ae=()=>x(be,"$fakeIsPlaying$",i),Pe=()=>x($s,"$seekToInteractiveDisabledTooltip$",i),Ue=()=>x(St,"$isPreviewTrackHorizontallyAligned$",i),Je=()=>x(he,"$previewTrackAvailable",i),ye=()=>x(go,"$previewTrackDragInProgress",i),ke=()=>x(Xt,"$adPosition",i),Fe=()=>x(Ut,"$position$",i),Ft=()=>x(Tt,"$adDuration",i),mt=()=>x(dt,"$duration$",i),Ht=g(e,"playerControlsWrapperRef",15,void 0),lt=g(e,"playerControlsRef",15,void 0),Ct=g(e,"isAds",3,!1),oi=g(e,"logoTargetUrl",3,""),Ot=g(e,"isOneVideoPlaylist",3,!1),$e=g(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:be}=Co(),ee=ve(),nt=Co(),fe=Nt(),Me=ee.actions.internal.toggleMuted,xt=ee.actions.internal.togglePlay,Lt=ee.actions.internal.pause,pt=ee.actions.internal.toggleSubtitle,ce=ee.actions.internal.checkFullscreenSupport,ze=(va=ee.callbacks)==null?void 0:va.onAudioDoesNotExistHint,Ye=(Pr=ee.callbacks)==null?void 0:Pr.onAudioDisabledHint,dt=ee.state.duration$,Ut=ee.state.positionWithScrubbing$,zt=ee.state.playbackState$,ri=ee.state.isAudioAvailable$,wi=ee.state.isAudioDisabled,Zi=ee.state.isEnded$,Dt=ee.state.isLive$,fi=ee.state.isActiveLive$,bi=ee.state.isRewindableLive$,{isActive$:bt,type$:Jt}=nt.pictureInPicture$,Ci=ee.ui.settingsMenu.visible$,Ji=ee.ui.settingsMenu.openedByBtnKeyboard$,ti=ee.ui.controls,kt=ee.actions.internal.getVideoEpisodes(),Ke=ee.state.chromecastState$,Ii=ee.state.availableSubtitlesList$,xo=ee.state.currentSubtitle$,Io=ti.disabledControls$,bn=ee.ui.contextMenu.visible$,It=ee.ui.contextMenu.showContextMenuBtn$,Wt=ee.ui.contextMenu.openedByBtnKeyboard$,W=ee.ui.startedByKeyboard$,Mt=ee.ui.controlBlocks,di=ee.ui.previewTrackNotificationVisible,ct=ee.ui.t,Tt=ee.ads.duration,Xt=ee.ads.position,st=ee.ads.playbackState,Ui=ee.ui.isFullscreen,zi=ee.ui.playerSize,on=ee.ui.currentGridType$,Eo=ee.ui.additionalDesktopControlPanelRightButtons$,Wi=ee.ui.autoplayNextEnabled$,eo=ee.actions.internal.getVideoElement,Nr=ee.actions.internal.replayInteractive,wo=ee.actions.internal.prevVideoClick,lo=ee.actions.internal.nextVideoClick,Ai=ee.state.isInteractive,nn=ee.state.isInteractiveTime$,rn=ee.state.showInteractiveGraph,Nn=ee.state.showSeekToInteractive,ir=ee.state.showPlayPrevChapter,Or=ee.state.showInteractiveTimeIndicator,os=ee.state.playPrevChapterDisabledTooltip,$s=nt.seekToInteractiveDisabledTooltip$,ns=nt.graphIsOpened$,or=fe.features.interactiveResponsiveUi,xr=v(()=>r().has("EPISODE_BUTTON")),$n=v(()=>r().has("GRAPH_BUTTON")),On=v(()=>r().has("SEEK_TO_INTERACTIVE_BUTTON")),Uo=v(()=>r().has("PLAY_BUTTON")),Dn=v(()=>r().has("REPLAY_BUTTON")),nr=v(()=>r().has("PLAY_PREV_CHAPTER_BUTTON")),wr=()=>ee.actions.internal.toggleChromecast(),Sr=v(()=>Ct()?a()==="playing":l()===Ja.PlaybackState.PLAYING),Dr=v(()=>d().value!=="off"),co=v(()=>s()&&!Ct()||Ai),Br=v(()=>or?n(co)&&ro(u(),"m"):n(co)),Bn=v(()=>!s()||Ai||Ct()),Fn=v(()=>ro(u(),"m")),uo=v(()=>e.showNextPrevButtons&&ro(u(),"m")&&!Ct()&&e.nextButtonActive),Fr=v(()=>e.showNextPrevButtons&&ro(u(),"m")&&!Ct()&&e.prevButtonActive),Hn=v(()=>!Ct()&&!!m()),vt=v(()=>p()!==Ja.ChromecastState.NOT_AVAILABLE&&!(f()&&$()===1)&&ro(u(),"m")&&!Ai),ui=v(()=>e.showAutoplayNext&&!Ot()&&ro(u(),"s")),Tr=v(()=>y().length>0&&ro(u(),"m")),rr=v(()=>_()||S()),sr=v(()=>ro(u(),"s")&&!Ct()),sn=v(()=>!e.logoHidden&&!Ct()),Cr=v(()=>fe.features.fullscreen&&ce()&&(e.logoHidden||ro(u(),or?"xs":"s"))&&!(f()&&$()===1)&&(Ai?$e():!0)),an=v(()=>(!m()||Ct())&&!(fe.features.interactiveHideTime&&Ai)),yn=v(()=>rn&&ro(u(),"m")),Un=v(()=>or?Nn&&ro(u(),"s"):Nn),zn=v(()=>or?ir&&ro(u(),"s"):ir),zo=v(()=>!Ct()&&!m()&&!!(kt!=null&&kt.length)&&n(Fn)&&!n(xr)),Po=v(()=>!C()||!!I()),ar=v(()=>N()?ct("tooltip_interactive_graph_on"):ct("tooltip_interactive_graph_off")),ko=v(()=>P()?ct("tooltip_context_menu_close"):ct("tooltip_context_menu_open")),Ki=(at,ft)=>at?ft&&ft===Ja.PlaybackState.PAUSED?ct("tooltip_play"):"":ct("tooltip_live"),Wn=v(()=>Ki(n(Po),l())),lr=v(()=>fe.logoType==="vk_video"?ct("tooltip_vk_video_logo"):ct("tooltip_vk_logo")),Hr=v(()=>n(Dr)?ct("tooltip_subtitles_on"):ct("tooltip_subtitles_off")),Kn=v(()=>E()?ct("tooltip_fullscreen_on"):ct("tooltip_fullscreen_off")),Ao=v(()=>p()===Ja.ChromecastState.CONNECTED?ct("tooltip_chromecast_on"):ct("tooltip_chromecast_off")),Ur=v(()=>A()?ct("tooltip_autoplay_on"):ct("tooltip_autoplay_off")),wt=K(0),Et=ci({}),po=ci({}),to=v(()=>ti.prevButton),Vi=v(()=>ti.replayButton),xn=v(()=>ti.playButton),So=v(()=>ti.nextButton),qn=v(()=>ti.playPrevChapterButton),mi=v(()=>ti.seekToInteractiveButton),zr=v(()=>ti.interactiveGraphButton),dr=v(()=>ti.liveButton),rs=v(()=>ti.time),ss=v(()=>ti.episodes),Wr=v(()=>ti.vkLogo),Lo=v(()=>ti.volume),ln=v(()=>ti.subtitles),fo=v(()=>ti.settings),Ir=v(()=>ti.context),Wo=v(()=>ti.fullscreen),as=v(()=>ti.chromecast),qe=v(()=>({prevButton:Q()?Q().right-Q().left:0,replayButton:H()?H().right-H().left:0,playButton:z()?z().right-z().left:0,nextButton:Y()?Y().right-Y().left:0,playPrevChapterButton:le()?le().right-le().left:0,seekToInteractiveButton:X()?X().right-X().left:0,interactiveGraphButton:re()?re().right-re().left:0,liveButton:Z()?Z().right-Z().left:0,time:we()?we().right-we().left:0,episodes:ue()?ue().right-ue().left:0,vkLogo:ne()?ne().right-ne().left:0,volume:_e()?_e().right-_e().left:0,subtitles:xe()?xe().right-xe().left:0,settings:J()?J().right-J().left:0,context:Ne()?Ne().right-Ne().left:0,fullscreen:pe()?pe().right-pe().left:0,chromecast:k()?k().right-k().left:0,additionalButtons:We().length?We().reduce(at=>[...at,40],[]):[]})),Vt=K(0);Oe(()=>{(!n(Vt)||n(Vt)<n(qe).time)&&Pt(()=>O(Vt,n(qe).time,!0))});let yi=K(!1);Oe(()=>{let at=0;n(zo)&&(ro(u(),"xl")?at=n(qe).time:at=60);let ft=n(qe).prevButton+n(qe).playButton+n(qe).nextButton+n(qe).seekToInteractiveButton+n(qe).interactiveGraphButton+n(qe).liveButton+n(Vt)+at;O(yi,n(an)&&n(wt)>=ft,!0)});let Mo=v(()=>n(yi)&&ro(u(),"m")),Vo=(0,dv.debounceFn)(nd,260),Ko=(0,dv.debounceFn)(gp,260);Oe(()=>{Te(),j(),ie(),Vo(eo(),ti,Et,e.showControls),Ko(eo(),Mt,po,e.showControls)}),Oe(()=>{po.bottom=Ht()});let mo=ae();Oe(()=>{De(),Be()&&Pt(()=>Yl(Be(),De(),Ji))});let io;Oe(()=>{ot(),Pt(()=>mp(W,ot(),io))});function wn(){sa({isAudioDisabled:wi,isAudioAvailable:U(),isAds:Ct(),audioIsNotExistHintCallback:ze,audioDisabledHintCallback:Ye})&&Me()}let Sn=Ai?Nr:xt,vo=v(()=>Ae()!==null),Ro=v(()=>n(vo)?Ae():n(Sr)),Qn=v(()=>n(Ro)?ct("tooltip_pause"):ct("tooltip_play")),cr=ct("tooltip_episodes"),ur=v(()=>{var at,ft,qi,Go;return n(Fr)?{id:"prevButton",type:"desktop-control-panel-left",weight:Rs.prevButton,buttonComponent:ja,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:wo.bind(null,!0)},tooltipEnabled:!((ft=(at=ee.callbacks)==null?void 0:at.uiInfo)!=null&&ft.onPrevButtonMouseEnter)&&!((Go=(qi=ee.callbacks)==null?void 0:qi.uiInfo)!=null&&Go.onPrevButtonMouseLeave),mouseEnter:()=>{var Qi,xi,Ni;(Ni=(xi=(Qi=ee.callbacks)==null?void 0:Qi.uiInfo)==null?void 0:xi.onPrevButtonMouseEnter)==null||Ni.call(xi,er(eo(),Et,"prevButton",e.showControls))},mouseLeave:()=>{var Qi,xi,Ni;(Ni=(xi=(Qi=ee.callbacks)==null?void 0:Qi.uiInfo)==null?void 0:xi.onPrevButtonMouseLeave)==null||Ni.call(xi,er(eo(),Et,"prevButton",e.showControls))},tooltipText:ct("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),Gn=v(()=>n(Br)?{id:"replayButton",type:"desktop-control-panel-left",weight:Rs.replayButton,buttonComponent:rd,buttonComponentProps:{disabled:n(Dn),click:Sn},tooltipText:ct("tooltip_restart"),disabled:n(Dn)}:void 0),ys=v(()=>n(Bn)?{id:"playButton",type:"desktop-control-panel-left",weight:Rs.playButton,buttonComponent:sd,buttonComponentProps:{disabled:n(Uo),isPlaying:n(Sr),click:xt},tooltipText:n(Qn),disabled:n(Uo)}:void 0),ls=v(()=>{var at,ft,qi,Go;return n(uo)?{id:"nextButton",type:"desktop-control-panel-left",weight:Rs.nextButton,buttonComponent:ja,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:lo.bind(null,!0)},tooltipEnabled:!((ft=(at=ee.callbacks)==null?void 0:at.uiInfo)!=null&&ft.onNextButtonMouseEnter)&&!((Go=(qi=ee.callbacks)==null?void 0:qi.uiInfo)!=null&&Go.onNextButtonMouseLeave),mouseEnter:()=>{var Qi,xi,Ni;(Ni=(xi=(Qi=ee.callbacks)==null?void 0:Qi.uiInfo)==null?void 0:xi.onNextButtonMouseEnter)==null||Ni.call(xi,er(eo(),Et,"nextButton",e.showControls))},mouseLeave:()=>{var Qi,xi,Ni;(Ni=(xi=(Qi=ee.callbacks)==null?void 0:Qi.uiInfo)==null?void 0:xi.onNextButtonMouseLeave)==null||Ni.call(xi,er(eo(),Et,"nextButton",e.showControls))},tooltipText:ct("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),je=v(()=>Ai&&n(zn)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:Rs.playPrevChapterButton,buttonComponent:Tc,buttonComponentProps:{disabled:n(nr),click:e.playPrevChapter},tooltipText:ct("tooltip_interactive_go_back"),disabledTooltipContent:ct(os),disabled:n(nr)}:void 0),Gt=v(()=>Ai&&n(Un)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:Rs.seekToInteractiveButton,buttonComponent:Ic,buttonComponentProps:{disabled:n(On),click:e.seekToInteractive},tooltipText:ct("tooltip_interactive_seek"),disabled:n(On),disabledTooltipContent:ct(Pe())}:void 0),Pi=v(()=>Ai&&n(yn)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:Rs.interactiveGraphButton,buttonComponent:Ec,buttonComponentProps:{disabled:n($n),click:ns.toggle,graphIsOpened:N()},tooltipText:n(ar)}:void 0),qo=v(()=>n(Hn)?{id:"liveButton",type:"desktop-control-panel-left",weight:Rs.liveButton,buttonComponent:Pc,buttonComponentProps:{isLiveActive:n(Po),ariaLabel:n(Wn)},tooltipText:n(Wn),disabled:n(Po)&&l()===Ja.PlaybackState.PLAYING}:void 0),dn=v(()=>[n(ur),n(Gn),n(ys),n(ls),n(je),n(Gt),n(Pi),n(qo)].filter(at=>!!at).sort(za)),pr=v(()=>n(sn)?{id:"vkLogo",type:"desktop-control-panel-right",weight:Os.vkLogo,buttonComponent:hc,buttonComponentProps:{targetUrl:oi(),logoClickable:e.logoClickable,click:Lt},tooltipText:n(lr),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),cn=v(()=>n(ui)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:Os.autoplayNext,buttonComponent:Cc,tooltipText:n(Ur)}:void 0),Qo=v(()=>({id:"volume",type:"desktop-control-panel-right",weight:Os.volume,buttonComponent:Rm,buttonComponentProps:{click:wn,isAds:Ct()}})),Fs=v(()=>n(Tr)?{id:"subtitles",type:"desktop-control-panel-right",weight:Os.subtitles,buttonComponent:Am,buttonComponentProps:{isSubtitlesEnabled:n(Dr),click:pt},tooltipText:n(Hr)}:void 0),un=v(()=>n(sr)?{id:"settings",type:"desktop-control-panel-right",weight:Os.settings,buttonComponent:ed,buttonComponentProps:{ref$:mo},tooltipText:De()?void 0:ct("tooltip_settings_off")}:void 0),Hs=v(()=>fe.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:Os.context,buttonComponent:Qm,buttonComponentProps:{ariaLabel:ct("aria_label_context_menu")},className:n(rr)?"":"out-of-view",tooltipText:n(ko)}:void 0),pa=v(()=>n(Cr)?{id:"fullscreen",type:"desktop-control-panel-right",weight:Os.fullscreen,buttonComponent:gc,buttonComponentProps:{isFullscreen:E(),click:e.toggleFullscreen},tooltipText:n(Kn)}:void 0),fa=v(()=>n(vt)?{id:"chromecast",type:"desktop-control-panel-right",weight:Os.chromecast,buttonComponent:bc,buttonComponentProps:{state:p(),click:wr},tooltipText:n(Ao)}:void 0),ut=v(()=>[n(pr),n(cn),n(Qo),n(Fs),n(un),n(Hs),n(pa),n(fa),...We()].filter(at=>!!at).sort(za)),ii=ee.ui.previewTrackActive,go=ee.ui.previewTrackDragInProgress,he=ee.ui.previewTrackAvailable,St=ee.ui.isPreviewTrackHorizontallyAligned,ni=v(()=>Db({onPreviewTrackOpened:ee.actions.internal.previewTrackOpened,getTimelineRef:()=>Et.timeline,isHorizontal:Ue()})),Si=v(()=>n(ni).progressBarY),Ri=v(()=>n(ni).controlsY),pi=v(()=>n(ni).onPointerDown),si=v(()=>n(ni).onPointerMove),ho=v(()=>n(ni).onPointerUp),pn=v(()=>n(ni).calculatedHeight),fn=v(()=>n(ni).closePreviewTrack);Oe(()=>{ie()?di.set(!1):n(fn)()});let Li;Rt(()=>()=>Li&&clearTimeout(Li));let hd=at=>{ie()||!Je()||(n(pi)(at),Li=setTimeout(()=>{ee.actions.internal.previewTrackDragStarted()},200))},cl=()=>{ie()||n(ho)(),Li&&clearTimeout(Li),ye()&&ee.actions.internal.previewTrackDragFinished()},Us=at=>{n(si)(at),!ie()&&Je()&&!ie()&&di.set(!0)},ul=()=>{di.set(!1)};var pl=iS(),Er=de(pl);let ma;var zs=T(Er);{var Kr=at=>{let ft=v(()=>n(Si)()),qi=v(()=>n(pn)());lv(at,{get animatedOffsetY(){return n(ft)},get animatedPreviewTrackHeight(){return n(qi)},get canRewindLive(){return e.canRewindLive},get isAds(){return Ct()},onTimelineMove:Us,onTimelinePointerDown:hd,onTimelinePointerUp:cl,onTimelinePointerLeave:ul,get previewTrackAvailable(){return Je()},get timelineRef(){return Et.timeline},set timelineRef(Go){Et.timeline=Go}})};R(zs,at=>{e.showControls&&at(Kr)})}var ds=L(zs,2),Ws=T(ds),fr=T(Ws);Ti(fr,17,()=>n(dn),at=>at.id,(at,ft)=>{vp(at,{get buttonComponent(){return n(ft).buttonComponent},get buttonComponentProps(){return n(ft).buttonComponentProps},get tooltipText(){return n(ft).tooltipText},get disabledTooltipContent(){return n(ft).disabledTooltipContent},get disabled(){return n(ft).disabled},get className(){return n(ft).className},get tooltipEnabled(){return n(ft).tooltipEnabled},get mouseEnter(){return n(ft).mouseEnter},get mouseLeave(){return n(ft).mouseLeave},get tooltipVisible(){return e.showControls},get ref(){return Et[n(ft).id]},set ref(qi){Et[n(ft).id]=qi}})});var fl=L(fr,2);{var ml=at=>{let ft=v(()=>!e.showControls),qi=v(()=>Ct()?ke():Fe()),Go=v(()=>Ct()?Ft():mt());fc(at,{get isHidden(){return n(ft)},isMobile:!1,get showDuration(){return n(Mo)},get position(){return n(qi)},get duration(){return n(Go)},get ref(){return Et.time},set ref(Qi){Et.time=Qi}})};R(fl,at=>{n(an)&&at(ml)})}var _d=L(fl,2);let vl=v(()=>!n(zo));Fo(_d,{className:"w-max",get disabled(){return n(vl)},get tooltipContent(){return cr},get tooltipVisible(){return e.showControls},get ref(){return Et.episodes},set ref(at){Et.episodes=at},children:(at,ft)=>{var qi=Le(),Go=de(qi);{var Qi=xi=>{$c(xi,{get position(){return Fe()},get duration(){return mt()},get timeCodes(){return kt}})};R(Go,xi=>{n(zo)&&xi(Qi)})}b(at,qi)},$$slots:{default:!0}}),w(Ws);var gl=L(Ws,2);Ti(gl,21,()=>n(ut),at=>at.id,(at,ft)=>{var qi=Le(),Go=de(qi);{var Qi=Ni=>{vp(Ni,{get buttonComponent(){return n(ft).buttonComponent},get buttonComponentProps(){return n(ft).buttonComponentProps},get tooltipText(){return n(ft).tooltipText},get disabledTooltipContent(){return n(ft).disabledTooltipContent},get disabled(){return n(ft).disabled},get className(){return n(ft).className},get tooltipVisible(){return e.showControls},get ref(){return Et[n(ft).id]},set ref(ga){Et[n(ft).id]=ga}})},xi=Ni=>{let ga=v(()=>!!n(ft).disabled);Jm(Ni,{get id(){return n(ft).id},get testId(){return n(ft).testId},get icon(){return n(ft).icon},get ariaLabel(){return n(ft).ariaLabel},get tooltipText(){return n(ft).tooltipText},get disabledTooltipContent(){return n(ft).disabledTooltipContent},get disabled(){return n(ga)},get onClick(){return n(ft).onClick},get disableMouseupTooltipShow(){return n(ft).disableMouseupTooltipShow},get tooltipVisible(){return e.showControls},get ref(){return Et[n(ft).id]},set ref(_l){Et[n(ft).id]=_l}})};R(Go,Ni=>{Rb(n(ft))?Ni(Qi):Ni(xi,!1)})}b(at,qi)}),w(gl),w(ds),Xe(ds,at=>lt(at),()=>lt()),w(Er),Xe(Er,at=>Ht(at),()=>Ht());var hl=L(Er,2);{var bd=at=>{wc(at,{get ref(){return Et.interactiveTimeIndicator},set ref(ft){Et.interactiveTimeIndicator=ft}})};R(hl,at=>{Or&&at(bd)})}D((at,ft)=>{ma=se(Er,1,"wrapper-bottom s-1a",null,ma,at),Qe(ds,ft),ds.inert=ie()},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth||ye()}),()=>`transform: translateY(${n(Ri)()}px);`]),An(Ws,"clientWidth",at=>O(wt,at)),b(t,pl),F(),o()}var ad=require("@vkontakte/videoplayer-core/es2015");var uv=require("@vkontakte/videoplayer-shared/es2015");var nS=M('<div class="icon icon-error-stub s-20"><div class="inner s-20"></div></div>'),rS=M('<img class="icon s-20" aria-hidden="true"/>'),sS={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 pv(t,e){q(t,sS);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=()=>{O(l,!0)},s=v(()=>n(r)?"btn-full-opacity":"");Qt(t,{get className(){return n(s)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return n(a)},get testId(){return e.testId},children:(u,m)=>{var p=Le(),f=de(p);{var $=_=>{var S=nS();b(_,S)},y=_=>{var S=rS();D(()=>Ve(S,"src",e.iconUrl)),_t("error",S,d),Aa(S),b(_,S)};R(f,_=>{n(l)?_($):_(y,!1)})}b(u,p)},$$slots:{default:!0}})}var aS=Ce('<path d="M8.7 8.1 5.3 4.72A1 1 0 0 1 6.72 3.3L20.7 17.29a1 1 0 0 1-1.41 1.41L16 15.41V20a1 1 0 0 1-1 1c-.64 0-1.26-.25-1.72-.7L7.79 15H5a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h2.77zm2.88-2.76 1.7-1.65A2.5 2.5 0 0 1 15 3a1 1 0 0 1 1 1v5.76z"></path>');function fv(t){Ze(t,{testId:"muted-icon",children:(e,i)=>{var o=aS();b(e,o)},$$slots:{default:!0}})}var Ub=require("@vkontakte/videoplayer-shared/es2015");function _p(t,e){B(e,!0);let i=g(e,"muted",3,!1),o=g(e,"click",3,Ub.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");Qt(t,{get testId(){return n(s)},get click(){return o()},get ariaLabel(){return n(d)},role:"button",get ref(){return r()},set ref(u){r(u)},children:(u,m)=>{var p=Le(),f=de(p);{var $=_=>{fv(_,{})},y=_=>{da(_,{get size(){return"24"}})};R(f,_=>{i()?_($):_(y,!1)})}b(u,p)},$$slots:{default:!0}}),F()}var lS=Ce('<path d="M11.64 12.37 9.07 9.8h1.03a.9.9 0 1 0 0-1.8H6.9a.9.9 0 0 0-.9.9v3.2a.9.9 0 0 0 1.8 0v-1.02l2.53 2.52.13.14a.9.9 0 0 0 1.28-1.28z"></path>'),dS=Ce('<path d="m6.36 9.63 2.57 2.57H7.9a.9.9 0 1 0 0 1.8h3.2a.9.9 0 0 0 .9-.9V9.9a.9.9 0 0 0-1.8 0v1.02L7.67 8.4l-.13-.14a.9.9 0 0 0-1.28 1.28z"></path>'),cS=Ce('<path d="M7.66 4h6.68q1.2-.01 2 .04.83.06 1.53.38a4 4 0 0 1 1.7 1.7c.24.48.34.98.39 1.54q.05.8.04 2v1.44a.9.9 0 0 1-1.8 0V9.7c0-.85 0-1.44-.04-1.9-.03-.44-.1-.68-.19-.85a2 2 0 0 0-.92-.92 2 2 0 0 0-.85-.2c-.46-.03-1.04-.03-1.9-.03H7.7c-.85 0-1.44 0-1.9.04-.44.03-.68.1-.85.19a2 2 0 0 0-.92.92c-.09.17-.16.4-.2.85-.03.46-.03 1.05-.03 1.9v2.65c0 .85 0 1.44.04 1.9.03.44.1.68.19.85a2 2 0 0 0 .92.92c.17.08.4.15.85.19.46.03 1.04.04 1.9.04h2.4a.9.9 0 0 1 0 1.8H7.66q-1.2.01-2-.05a4 4 0 0 1-1.53-.38 4 4 0 0 1-1.7-1.7 4 4 0 0 1-.39-1.53q-.05-.8-.04-2V9.65q-.01-1.2.04-2c.05-.56.15-1.06.39-1.53a4 4 0 0 1 1.7-1.7c.47-.24.97-.34 1.53-.39q.8-.05 2-.04M13 16.8c0-.98 0-1.47.19-1.84a2 2 0 0 1 .77-.77c.37-.19.86-.19 1.84-.19h3.4c.98 0 1.47 0 1.85.19q.5.27.76.77c.19.37.19.86.19 1.84v.4c0 .98 0 1.47-.19 1.85a2 2 0 0 1-.77.76c-.37.19-.86.19-1.84.19h-3.4c-.98 0-1.47 0-1.85-.19a2 2 0 0 1-.76-.76c-.19-.38-.19-.87-.19-1.85z"></path><!>',1);function mv(t,e){let i=g(e,"isActive",3,!1),o=v(()=>i()?"pip-icon--active":"pip-icon");Ze(t,{get testId(){return n(o)},children:(r,a)=>{var l=cS(),d=L(de(l));{var s=m=>{var p=lS();b(m,p)},u=m=>{var p=dS();b(m,p)};R(d,m=>{i()?m(s):m(u,!1)})}b(r,l)},$$slots:{default:!0}})}var zb=require("@vkontakte/videoplayer-shared/es2015");function vv(t,e){B(e,!0);let i=g(e,"ref",15,void 0),o=g(e,"isPictureInPictureActive",3,!1),r=g(e,"click",3,zb.noop),a=G("menu_pip");Qt(t,{testId:"btn-pip",get ariaLabel(){return a},get click(){return r()},get ref(){return i()},set ref(l){i(l)},children:(l,d)=>{mv(l,{get isActive(){return o()}})},$$slots:{default:!0}}),F()}var gv=require("@vkontakte/videoplayer-shared/es2015");var uS=(t,e,i,o)=>{n(e)&&i.onDisabledPlayPrevChapterClick(n(o))},pS=(t,e,i,o)=>{n(e)&&i.onDisabledSeekToInteractiveClick(n(o))},fS=M("<div><!></div>"),mS=M("<div><!></div>"),vS=M("<div><!></div>"),gS=M("<!> <!> <!>",1),hS=M("<div></div> <div></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),_S=M('<div class="wrapper-middle s-19"><!></div>'),bS=M("<div><!></div> <!> <div><!></div>",1),$S=M('<div aria-hidden="true">·</div> <!>',1),yS=M('<!> <!> <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),xS={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 Wo,as;B(e,!0),q(t,xS);let[i,o]=Re(),r=()=>x(zi,"$seekToInteractiveDisabledTooltip$",i),a=()=>x(ti,"$disabledControls$",i),l=()=>x(Ot,"$playbackState$",i),d=()=>x(Io,"$adPlaybackState",i),s=()=>x(ee,"$isEnded$",i),u=()=>x(It,"$playerSize",i),m=()=>x(pt,"$scrubbingInProgress",i),p=()=>x(Ci,"$chromecastState$",i),f=()=>x(ze,"$isPictureInPictureActive",i),$=()=>x(Ye,"$pictureInPictureType$",i),y=()=>x(ce,"$mobileNotReportControlHidden$",i),_=()=>x(bi,"$chromecastHidden",i),S=()=>x(lt,"$playerPhase",i),C=()=>x(Dt,"$pipHidden",i),I=()=>x(Ke,"$currentGridType$",i),N=()=>x(wi,"$vkLogoHidden",i),P=()=>x(ri,"$volumeHidden",i),E=()=>x(nt,"$isLive$",i),A=()=>x(dt,"$settingsMenuVisible",i),Q=()=>x(Lt,"$isRewindableLive$",i),H=()=>x(xt,"$isActiveLive$",i),z=()=>x($e,"$isAudioAvailable$",i),Y=()=>x(Me,"$muted$",i),le=()=>x(fe,"$volume$",i),X=()=>x(ct,"$isInteractiveTime$",i),re=()=>x(Un,"$settingButtonRef$",i),Z=()=>x(kt,"$startedByKeyboard$",i),we=()=>x(bn,"$isFullscreen",i),ue=()=>x(Wt,"$additionalButtons$",i),ne=()=>x(Zi,"$autoplayNextToggleHidden",i),_e=()=>x(Ji,"$crashed$",i),xe=()=>x(fi,"$settingsHidden",i),J=()=>x(on,"$graphIsOpened$",i),Ne=()=>x(xo,"$adPosition",i),pe=()=>x(Ii,"$adDuration",i),k=()=>x(oi,"$position$",i),We=()=>x(Ct,"$duration$",i),Te=g(e,"playerControlsWrapperRef",15,void 0),j=g(e,"playerControlsRef",15,void 0),ie=g(e,"isAds",3,!1),De=g(e,"logoTargetUrl",3,""),Be=g(e,"isOneVideoPlaylist",3,!1),ot=g(e,"customFullscreenSupported",3,!0),U=ve(),Ae=Co(),Pe=Nt(),Ue=U.actions.internal.toggleMuted,Je=U.actions.internal.togglePlay,ye=U.actions.internal.pause,ke=U.actions.internal.prevVideoClick,Fe=U.actions.internal.nextVideoClick,Ft=U.actions.internal.checkFullscreenSupport,mt=(Wo=U.callbacks)==null?void 0:Wo.onAudioDoesNotExistHint,Ht=(as=U.callbacks)==null?void 0:as.onAudioDisabledHint,lt=U.playerPhase,Ct=U.state.duration$,oi=U.state.positionWithScrubbing$,Ot=U.state.playbackState$,$e=U.state.isAudioAvailable$,be=U.state.isAudioDisabled,ee=U.state.isEnded$,nt=U.state.isLive$,fe=U.state.volume$,Me=U.state.muted$,xt=U.state.isActiveLive$,Lt=U.state.isRewindableLive$,pt=U.ui.scrubbingInProgress,ce=U.ui.mobileNotReportControlHidden$,{isActive$:ze,type$:Ye}=Ae.pictureInPicture$,dt=U.ui.settingsMenu.visible$,Ut=U.ui.settingsMenu.openedByBtnKeyboard$,zt=U.ui.controls,{volume:ri,vkLogo:wi,autoplayNextToggle:Zi,pip:Dt,settings:fi,chromecast:bi}=U.ui.hiddenControls,bt=U.actions.internal.getVideoEpisodes(),Jt=U.webApi.pictureInPictureApi,Ci=U.state.chromecastState$,Ji=U.state.crashed$,ti=zt.disabledControls$,kt=U.ui.startedByKeyboard$,Ke=U.ui.currentGridType$,Ii=U.ads.duration,xo=U.ads.position,Io=U.ads.playbackState,bn=U.ui.isFullscreen,It=U.ui.playerSize,Wt=U.ui.additionalButtonsDeprecated$,W=U.actions.internal.getVideoElement,Mt=U.actions.internal.replayInteractive,di=U.state.isInteractive,ct=U.state.isInteractiveTime$,Tt=U.state.showInteractiveGraph,Xt=U.state.showSeekToInteractive,st=U.state.showPlayPrevChapter,Ui=U.state.showInteractiveTimeIndicator,zi=Ae.seekToInteractiveDisabledTooltip$,on=Ae.graphIsOpened$,Eo=U.ui.controlBlocks,Wi=v(()=>G(U.state.playPrevChapterDisabledTooltip)),eo=v(()=>G(r())),Nr=v(()=>a().has("EPISODE_BUTTON")),wo=v(()=>a().has("GRAPH_BUTTON")),lo=v(()=>a().has("SEEK_TO_INTERACTIVE_BUTTON")),Ai=v(()=>a().has("PLAY_BUTTON")),nn=v(()=>a().has("REPLAY_BUTTON")),rn=v(()=>a().has("PLAY_PREV_CHAPTER_BUTTON")),Nn=v(()=>l()===ad.PlaybackState.PLAYING),ir=v(()=>d()==="paused"),Or=v(()=>s()&&!ie()&&!di),os=v(()=>!s()||ie()),$s=v(()=>e.showNextPrevButtons&&!ie()&&e.prevButtonActive),ns=v(()=>e.showNextPrevButtons&&!ie()&&e.nextButtonActive),or=v(()=>u().width>300),xr=v(()=>u().width>400),$n=v(m),On=v(()=>p()!==ad.ChromecastState.NOT_AVAILABLE&&!(f()&&$()===1)&&!y()&&!di&&!_()),Uo=v(()=>S()==="LiveWaitingStart"),Dn=v(()=>!!Jt&&p()!==ad.ChromecastState.CONNECTED&&!y()&&($()===1&&n(Uo)||!n(Uo))&&!n($n)&&!di&&!C()),nr=K(!1);Rt(()=>{let qe=Jt==null?void 0:Jt.info.isActive$.subscribe(Vt=>O(nr,Vt,!0));return()=>qe==null?void 0:qe.unsubscribe()});let wr=v(()=>!n($n)&&ro(I(),"s")),Sr=v(()=>!e.logoHidden&&u().width>350&&!N()),Dr=v(()=>Pe.features.fullscreen&&Ft()&&!(f()&&$()===1)&&(di?ot():!0)&&!n($n)&&!n(nr)),co=v(()=>!P()&&!n($n)),Br=v(()=>(!E()||ie())&&u().width>260&&!n($n)&&!(Pe.features.interactiveHideTime&&di)),Bn=v(()=>A()||e.showControls),Fn=v(()=>!ie()&&!E()&&!!(bt!=null&&bt.length)&&n(or)&&!n(Nr)&&!n($n)),uo=v(()=>!Q()||!!H()),Fr=v(()=>Tt&&ro(I(),"m")),Hn=v(()=>!z()||Y()||le()===0),vt=ci({}),ui=ci({}),Tr=(0,gv.debounceFn)(nd,260),rr=(0,gv.debounceFn)(gp,260);Oe(()=>{u(),X(),Tr(W(),zt,vt,e.showControls),rr(W(),Eo,ui,e.showControls)});let sr=()=>U.actions.internal.toggleChromecast();function sn(){return gt(this,null,function*(){Jt!=null&&Jt.isActive()?yield Jt==null?void 0:Jt.exit():yield Jt==null?void 0:Jt.request()})}function Cr(){sa({isAudioDisabled:be,audioDisabledHintCallback:Ht,isAudioAvailable:z(),audioIsNotExistHintCallback:mt,isAds:ie()})&&Ue()}let an=K(""),yn=(qe,Vt)=>{if(!qe){O(an,G("tooltip_live"),!0);return}Vt&&Vt===ad.PlaybackState.PAUSED&&O(an,G("tooltip_play"),!0)};Oe(()=>{yn(n(uo),l())});let Un=ae();Oe(()=>{re()&&Yl(re(),A(),Ut)}),Oe(()=>{mp(kt,Z(),vt.playButton)});var zn=yS(),zo=de(zn);{var Po=qe=>{var Vt=hS(),yi=de(Vt);let Mo;var Vo=L(yi,2);let Ko;Xe(Vo,ut=>ui.topLeft=ut,()=>ui==null?void 0:ui.topLeft);var mo=L(Vo,2);let io;var wn=T(mo);Ti(wn,1,ue,({iconUrl:ut,ariaLabel:ii,testId:go,onClick:he,tooltip:St})=>ut,(ut,ii)=>{let go=()=>n(ii).iconUrl,he=()=>n(ii).ariaLabel,St=()=>n(ii).testId,ni=()=>n(ii).onClick,Si=()=>n(ii).tooltip,Ri=v(()=>{var pi;return(pi=he())!=null?pi:Si()});pv(ut,{get iconUrl(){return go()},get ariaLabel(){return n(Ri)},get testId(){return St()},get onClick(){return ni()}})});var Sn=L(wn,2);{var vo=ut=>{Cc(ut,{get ref(){return vt.autoplayNextToggle},set ref(ii){vt.autoplayNextToggle=ii}})};R(Sn,ut=>{e.showAutoplayNext&&!Be()&&!ne()&&ut(vo)})}var Ro=L(Sn,2);{var Qn=ut=>{bc(ut,{isMobile:!0,click:sr,get state(){return p()},get ref(){return vt.chromecast},set ref(ii){vt.chromecast=ii}})};R(Ro,ut=>{n(On)&&ut(Qn)})}var cr=L(Ro,2);{var ur=ut=>{vv(ut,{click:sn,get isPictureInPictureActive(){return f()},get ref(){return vt.pip},set ref(ii){vt.pip=ii}})};R(cr,ut=>{n(Dn)&&ut(ur)})}var Gn=L(cr,2);{var ys=ut=>{ed(ut,{get ref$(){return Un}})};R(Gn,ut=>{_e()&&!xe()&&ut(ys)})}var ls=L(Gn,2);{var je=ut=>{hc(ut,{get click(){return ye},get targetUrl(){return De()},get logoClickable(){return e.logoClickable},get ref(){return vt.vkLogo},set ref(ii){vt.vkLogo=ii}})};R(ls,ut=>{n(Sr)&&ut(je)})}w(mo),Xe(mo,ut=>ui.topRight=ut,()=>ui==null?void 0:ui.topRight);var Gt=L(mo,2);let Pi;var qo=T(Gt);{var dn=ut=>{let ii=v(()=>ke.bind(null,!0));ja(ut,{get click(){return n(ii)},type:"prev",isMobile:!0,get ref(){return vt.prevButton},set ref(go){vt.prevButton=go}})};R(qo,ut=>{n($s)&&ut(dn)})}var pr=L(qo,2);{var cn=ut=>{sd(ut,{get disabled(){return n(Ai)},get click(){return Je},isMobile:!0,get isPlaying(){return n(Nn)},get ref(){return vt.playButton},set ref(ii){vt.playButton=ii}})};R(pr,ut=>{n(os)&&ut(cn)})}var Qo=L(pr,2);{var Fs=ut=>{rd(ut,{get disabled(){return n(nn)},get click(){return Je},isMobile:!0,get ref(){return vt.replayButton},set ref(ii){vt.replayButton=ii}})};R(Qo,ut=>{n(Or)&&ut(Fs)})}var un=L(Qo,2);{var Hs=ut=>{let ii=v(()=>Fe.bind(null,!0));ja(ut,{get click(){return n(ii)},type:"next",isMobile:!0,get ref(){return vt.nextButton},set ref(go){vt.nextButton=go}})};R(un,ut=>{n(ns)&&ut(Hs)})}w(Gt),Xe(Gt,ut=>ui.middle=ut,()=>ui==null?void 0:ui.middle);var pa=L(Gt,2);{var fa=ut=>{var ii=gS(),go=de(ii);{var he=pi=>{var si=fS();let ho;si.__click=[uS,rn,e,Wi];var pn=T(si);let fn=v(()=>!e.showControls);Tc(pn,{get hidden(){return n(fn)},get disabled(){return n(rn)},get click(){return e.playPrevChapter},get ref(){return vt.playPrevChapterButton},set ref(Li){vt.playPrevChapterButton=Li}}),w(si),D(Li=>ho=se(si,1,"wrapper-middle-left s-19",null,ho,Li),[()=>({fullscreen:we(),hidden:!e.showControls})]),b(pi,si)};R(go,pi=>{st&&pi(he)})}var St=L(go,2);{var ni=pi=>{var si=mS();let ho;var pn=T(si);let fn=v(()=>!e.showControls&&!J());Ec(pn,{get hidden(){return n(fn)},get disabled(){return n(wo)},get click(){return on.toggle},get graphIsOpened(){return J()},get ref(){return vt.interactiveGraphButton},set ref(Li){vt.interactiveGraphButton=Li}}),w(si),D(Li=>ho=se(si,1,Wd(st?"wrapper-middle-left-second":"wrapper-middle-left"),"s-19",ho,Li),[()=>({fullscreen:we(),hidden:!e.showControls&&!J()})]),b(pi,si)};R(St,pi=>{n(Fr)&&pi(ni)})}var Si=L(St,2);{var Ri=pi=>{var si=vS();let ho;si.__click=[pS,lo,e,eo];var pn=T(si);let fn=v(()=>!e.showControls);Ic(pn,{get hidden(){return n(fn)},get disabled(){return n(lo)},get click(){return e.seekToInteractive},get ref(){return vt.seekToInteractiveButton},set ref(Li){vt.seekToInteractiveButton=Li}}),w(si),D(Li=>ho=se(si,1,"wrapper-middle-right s-19",null,ho,Li),[()=>({fullscreen:we(),hidden:!e.showControls})]),b(pi,si)};R(Si,pi=>{Xt&&pi(Ri)})}b(ut,ii)};R(pa,ut=>{di&&!m()&&ut(fa)})}D((ut,ii,go,he)=>{Mo=se(yi,1,"overlay-mobile s-19",null,Mo,ut),Ko=se(Vo,1,"wrapper-top-left s-19",null,Ko,ii),io=se(mo,1,"wrapper-top-right s-19",null,io,go),Pi=se(Gt,1,"wrapper-middle s-19",null,Pi,he)},[()=>({hidden:!n(Bn)}),()=>({hidden:!e.showControls,fullscreen:we()}),()=>({hidden:!e.showControls&&!y(),fullscreen:we()}),()=>({hidden:!e.showControls||m()||e.endScreenShown&&e.showNextPrevButtons})]),b(qe,Vt)};R(zo,qe=>{ie()||qe(Po)})}var ar=L(zo,2);{var ko=qe=>{var Vt=bS(),yi=de(Vt);let Mo;var Vo=T(yi);_p(Vo,{get muted(){return Y()},click:Cr,get ref(){return vt.volume},set ref(vo){vt.volume=vo}}),w(yi);var Ko=L(yi,2);{var mo=vo=>{var Ro=_S(),Qn=T(Ro);let cr=v(()=>!n(ir));sd(Qn,{get disabled(){return n(Ai)},get click(){return Je},isMobile:!0,get isPlaying(){return n(cr)},get ref(){return vt.playButton},set ref(ur){vt.playButton=ur}}),w(Ro),b(vo,Ro)};R(Ko,vo=>{n(ir)&&vo(mo)})}var io=L(Ko,2);let wn;var Sn=T(io);kc(Sn,{get position(){return Ne()},get duration(){return pe()}}),w(io),D((vo,Ro)=>{Mo=se(yi,1,"wrapper-top-right s-19",null,Mo,vo),wn=se(io,1,"wrapper-bottom ads-timeline-mobile s-19",null,wn,Ro)},[()=>({fullscreen:we()}),()=>({fullscreen:we()})]),b(qe,Vt)};R(ar,qe=>{ie()&&d()!=="inactive"&&qe(ko)})}var Ki=L(ar,2);let Wn;var lr=T(Ki);let Hr;var Kn=T(lr),Ao=T(Kn),Ur=T(Ao);{var wt=qe=>{Fo(qe,{get disabled(){return n(nn)},get ref(){return vt.replayButton},set ref(Vt){vt.replayButton=Vt},children:(Vt,yi)=>{rd(Vt,{get disabled(){return n(nn)},get click(){return Mt}})},$$slots:{default:!0}})};R(Ur,qe=>{di&&qe(wt)})}var Et=L(Ur,2);{var po=qe=>{Fo(qe,{get ref(){return vt.liveButton},set ref(Vt){vt.liveButton=Vt},children:(Vt,yi)=>{Pc(Vt,{get isLiveActive(){return n(uo)},isMobile:!0,get ariaLabel(){return n(an)}})},$$slots:{default:!0}})};R(Et,qe=>{!ie()&&E()&&qe(po)})}var to=L(Et,2);{var Vi=qe=>{let Vt=v(()=>ie()?Ne():k()),yi=v(()=>ie()?pe():We()),Mo=v(()=>!e.showControls);fc(qe,{get showDuration(){return n(xr)},get position(){return n(Vt)},get duration(){return n(yi)},isMobile:!0,get isHidden(){return n(Mo)},get ref(){return vt.time},set ref(Vo){vt.time=Vo}})};R(to,qe=>{n(Br)&&qe(Vi)})}var xn=L(to,2);let So=v(()=>!n(Fn));Fo(xn,{className:"w-max",get disabled(){return n(So)},get ref(){return vt.episodes},set ref(qe){vt.episodes=qe},children:(qe,Vt)=>{var yi=Le(),Mo=de(yi);{var Vo=Ko=>{var mo=$S(),io=L(de(mo),2);$c(io,{get position(){return k()},get duration(){return We()},get timeCodes(){return bt}}),b(Ko,mo)};R(Mo,Ko=>{n(Fn)&&Ko(Vo)})}b(qe,yi)},$$slots:{default:!0}}),w(Ao),Xe(Ao,qe=>ui.bottomLeft=qe,()=>ui==null?void 0:ui.bottomLeft);var qn=L(Ao,2),mi=T(qn);{var zr=qe=>{Fo(qe,{get ref(){return vt.volume},set ref(Vt){vt.volume=Vt},children:(Vt,yi)=>{_p(Vt,{get muted(){return n(Hn)},click:Cr})},$$slots:{default:!0}})};R(mi,qe=>{n(co)&&qe(zr)})}var dr=L(mi,2);{var rs=qe=>{Fo(qe,{get ref(){return vt.settings},set ref(Vt){vt.settings=Vt},children:(Vt,yi)=>{ed(Vt,{get ref$(){return Un}})},$$slots:{default:!0}})};R(dr,qe=>{n(wr)&&qe(rs)})}var ss=L(dr,2);{var Wr=qe=>{Fo(qe,{get ref(){return vt.fullscreen},set ref(Vt){vt.fullscreen=Vt},children:(Vt,yi)=>{gc(Vt,{get click(){return e.toggleFullscreen},get isFullscreen(){return we()}})},$$slots:{default:!0}})};R(ss,qe=>{n(Dr)&&qe(Wr)})}w(qn),Xe(qn,qe=>ui.bottomRight=qe,()=>ui==null?void 0:ui.bottomRight),w(Kn),Xe(Kn,qe=>j(qe),()=>j());var Lo=L(Kn,2);let ln=v(()=>!e.showControls);Za(Lo,{get isHidden(){return n(ln)},get isAds(){return ie()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return Q()},get ref(){return vt.timeline},set ref(qe){vt.timeline=qe}}),w(lr),Xe(lr,qe=>ui.bottom=qe,()=>ui==null?void 0:ui.bottom),w(Ki),Xe(Ki,qe=>Te(qe),()=>Te());var fo=L(Ki,2);{var Ir=qe=>{wc(qe,{get ref(){return vt.interactiveTimeIndicator},set ref(Vt){vt.interactiveTimeIndicator=Vt}})};R(fo,qe=>{Ui&&qe(Ir)})}D((qe,Vt)=>{Wn=se(Ki,1,"wrapper-bottom mobile s-19",null,Wn,qe),Hr=se(lr,1,"controls-wrapper s-19",null,Hr,Vt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth}),()=>({fullscreen:we()})]),b(t,zn),F(),o()}it(["click"]);function Ac(t,e){B(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,""),m=g(e,"showAutoplayNext",3,!1),p=g(e,"isOneVideoPlaylist",3,!1),f=g(e,"customFullscreenSupported",3,!0),$=g(e,"endScreenShown",3,!1),y=g(e,"onDisabledPlayPrevChapterClick",3,_v.noop),_=g(e,"onDisabledSeekToInteractiveClick",3,_v.noop),C=ve().ui.isMobile,I=K(!1);Rt(()=>{let A=setTimeout(()=>O(I,!0),0);return()=>clearTimeout(A)});var N=Le(),P=de(N);{var E=A=>{var Q=Le(),H=de(Q);{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 m()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get isOneVideoPlaylist(){return p()},get customFullscreenSupported(){return f()},get endScreenShown(){return $()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return y()},get onDisabledSeekToInteractiveClick(){return _()},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(X){l(X)},get playerControlsRef(){return d()},set playerControlsRef(X){d(X)}})},Y=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 p()},get showAutoplayNext(){return m()},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)}})};R(H,le=>{r()?le(z):le(Y,!1)})}b(A,Q)};R(P,A=>{n(I)&&A(E)})}b(t,N),F(),o()}var wS=Ce('<path d="M23.75 31.2v-5.45l-11.84 6.7a1.45 1.45 180 01-2.16-1.25v-14.4a1.45 1.45 180 012.16-1.26l11.84 6.7v-5.44a1.45 1.45 180 012.16-1.26l12.7 7.19a1.45 1.45 180 010 2.52l-12.7 7.2a1.45 1.45 180 01-2.16-1.27Z"></path>');function Lc(t,e){B(e,!0);let i=v(()=>e.reversed?"transform:scaleX(-1);transform-origin:50% 0;":""),o=v(()=>`${hn(e.size)}${n(i)}`);Ze(t,{get width(){return"48"},get height(){return"48"},get fill(){return e.fill},get style(){return n(o)},get testId(){return e.testId},get shadow(){return e.shadow},children:(r,a)=>{var l=wS();b(r,l)},$$slots:{default:!0}}),F()}var SS=Ce('<path d="M32.46 9.53a1.16 1.16 90 010 1.96l-7.66 4.83c-.78.49-1.8-.07-1.8-.98v-3.3a14 14 90 1014.1 18.93 1.5 1.5 90 012.8 1.06 17 17 90 11-16.9-23V5.66c0-.91 1.03-1.47 1.8-.98z"></path>');function bv(t,e){B(e,!0);let i=g(e,"reversed",3,!1),o=v(()=>i()?"transform:scaleX(-1);transform-origin: 50% 0;":void 0),r=v(()=>`seek-icon-${i()?"backward":"forward"}`);Ze(t,{get width(){return"48"},get height(){return"48"},get style(){return n(o)},get testId(){return n(r)},get shadow(){return e.shadow},children:(a,l)=>{var d=SS();b(a,d)},$$slots:{default:!0}}),F()}var TS=M('<span class="hot-key-helpers-text s-12"> </span>'),CS=M('<div data-testid="hotkey-helper-icon" class="s-12"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),IS=M("<div><!></div>"),ES={hash:"s-12",code:'.hot-key-helpers-container.s-12{align-items:center;animation:s-12-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-12{left:calc(25% - 100px)}.hot-key-helpers-container--right.s-12{left:calc(75% - 100px)}.hot-key-helpers-text.s-12{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-12{animation:s-12-fadeOut ease var(--controls-transition-duration);height:0;visibility:hidden;width:0}@keyframes s-12-fadeIn{0%{opacity:0}to{opacity:1}}@keyframes s-12-fadeOut{0%{opacity:1}to{opacity:0}}'};function $v(t,e){B(e,!0),q(t,ES);let[i,o]=Re(),r=()=>x(e.data,"$data",i),a=ve(),{features:l}=Nt(),d=a.ui.t,s=v(()=>!r()),u=v(()=>{var C;return((C=r())==null?void 0:C.type)==="BACKWARD_SEEK"}),m=v(()=>{var C;return((C=r())==null?void 0:C.type)==="FORWARD_SEEK"}),p=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 $=IS();let y;var _=T($);{var S=C=>{var I=CS(),N=de(I),P=T(N);{var E=j=>{let ie=v(()=>n(p)==="BACKWARD_SEEK");bv(j,{get reversed(){return n(ie)},shadow:!0})};R(P,j=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(n(p))&&j(E)})}var A=L(P,2);{var Q=j=>{Ns(j,{get size(){return"48"},shadow:!0})};R(A,j=>{n(p)==="PAUSE"&&!l.playbackStatusShow&&j(Q)})}var H=L(A,2);{var z=j=>{Mn(j,{get size(){return"48"},shadow:!0})};R(H,j=>{n(p)==="PLAY"&&!l.playbackStatusShow&&j(z)})}var Y=L(H,2);{var le=j=>{Sc(j,{get size(){return"48"},shadow:!0})};R(Y,j=>{n(p)==="REPLAY"&&!l.playbackStatusShow&&j(le)})}var X=L(Y,2);{var re=j=>{la(j,{get size(){return"48"},type:"off",shadow:!0})};R(X,j=>{n(p)==="SUBTITLES_OFF"&&j(re)})}var Z=L(X,2);{var we=j=>{la(j,{get size(){return"48"},shadow:!0})};R(Z,j=>{n(p)==="SUBTITLES_ON"&&j(we)})}var ue=L(Z,2);{var ne=j=>{let ie=v(()=>n(p)==="RATE_DOWN");Lc(j,{get size(){return"48"},get reversed(){return n(ie)},testId:"rate-change-icon",shadow:!0})};R(ue,j=>{["RATE_DOWN","RATE_UP"].includes(n(p))&&j(ne)})}var _e=L(ue,2);{var xe=j=>{let ie=v(()=>n(p)==="EPISODE_PREV");ca(j,{get size(){return"48"},get reversed(){return n(ie)},shadow:!0})};R(_e,j=>{["EPISODE_PREV","EPISODE_NEXT"].includes(n(p))&&j(xe)})}var J=L(_e,2);{var Ne=j=>{da(j,{get size(){return"48"},volume:0,shadow:!0})};R(J,j=>{n(p)==="MUTE"&&j(Ne)})}var pe=L(J,2);{var k=j=>{da(j,{get size(){return"48"},volume:1,shadow:!0})};R(pe,j=>{n(p)==="VOLUME"&&j(k)})}w(N);var We=L(N,2);{var Te=j=>{var ie=TS(),De=T(ie,!0);w(ie),D(()=>me(De,n(f))),b(j,ie)};R(We,j=>{n(f)&&j(Te)})}D(()=>Ve(N,"data-type",n(p))),b(C,I)};R(_,C=>{!n(s)&&n(p)&&C(S)})}w($),D(C=>y=se($,1,"hot-key-helpers-container s-12",null,y,C),[()=>({hidden:n(s),"hot-key-helpers-container--left":n(u),"hot-key-helpers-container--right":n(m)})]),b(t,$),F(),o()}var PS=(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}},kS=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},AS=M('<div tabindex="0" role="button"><div class="button-block s-t" aria-hidden="true"><div class="button-row s-t"><div class="button button-up s-t"><!></div> <div class="button button-right s-t"><!></div></div> <div class="button-row s-t"><div class="button button-left s-t"><!></div> <div class="button button-down s-t"><!></div></div></div></div>'),LS={hash:"s-t",code:".immersive-controls.s-t{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-t{left:20px;top:50px}.button-block.s-t{height:40px;margin:auto;transform:rotate(45deg);width:40px}.button-row.s-t{display:flex;flex-direction:row;position:relative}.button.s-t{cursor:pointer;height:20px;text-align:center;width:20px}.button.s-t svg{opacity:.7;transition:opacity .2s linear}.button.button-up.s-t svg{transform:rotate(-45deg) translate(-1px,-1px)}.button.button-right.s-t svg{transform:rotate(45deg) translate(1px,-1px)}.button.button-down.s-t svg{transform:rotate(135deg) translate(1px,-3px)}.button.button-left.s-t svg{transform:rotate(-135deg) translate(-1px,-3px)}.button.s-t:hover svg{opacity:1}"};function Mc(t,e){B(e,!0),q(t,LS);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),m=G("aria_label_spherical_control");var p=AS();let f;p.__keydown=[PS,r,a,l,s,d],p.__keyup=[kS,r,u];var $=T(p),y=T($),_=T(y);_.__mousedown=a,_.__mouseup=u;var S=T(_);Vr(S,{direction:"up",useBtnColor:!0}),w(_);var C=L(_,2);C.__mousedown=d,C.__mouseup=u;var I=T(C);Vr(I,{direction:"up",useBtnColor:!0}),w(C),w(y);var N=L(y,2),P=T(N);P.__mousedown=s,P.__mouseup=u;var E=T(P);Vr(E,{direction:"up",useBtnColor:!0}),w(P);var A=L(P,2);A.__mousedown=l,A.__mouseup=u;var Q=T(A);Vr(Q,{direction:"up",useBtnColor:!0}),w(A),w(N),w($),w(p),D(H=>{f=se(p,1,"immersive-controls s-t",null,f,H),Ve(p,"aria-label",m)},[()=>({"m-shifted":i()})]),_t("mouseleave",_,u),_t("mouseleave",C,u),_t("mouseleave",P,u),_t("mouseleave",A,u),b(t,p),F()}it(["keydown","keyup","mousedown","mouseup"]);var Ds=require("@vkontakte/videoplayer-shared/es2015");var Wb=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var bp=class{constructor(){this.flickeringTimeout=Wb(1e3);this.subscriptions=new Ds.Subscription;this.isAuto=!1;this.isLive=!1;this.captions$=new Ds.ValueSubject([]);this.captionsPrepared$=new Ds.ValueSubject([])}subscribe(){return this.subscriptions.add(this.captions$.pipe((0,Ds.filter)(()=>this.isEnabled()),(0,Ds.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 MS=M('<span class="caption-line s-d"><span class="caption-segment s-d"> </span></span>'),VS=M('<span class="caption-line s-d"><span class="caption-segment s-d"></span></span>'),RS=M('<span class="caption-line s-d"><span class="caption-segment s-d"> </span></span>'),NS=M('<div><span class="caption s-d"><!></span></div>'),OS=M("<div><!></div>"),DS={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){B(e,!0),q(t,DS);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($,"$isAutoSubtitleCaptionVisible$",i),u=g(e,"isMobile",3,!1),m=ve(),p=Nt(),f=m.state.currentSubtitle$,$=m.state.isAutoSubtitleCaptionVisible$,y=m.state.isLive$,_=m.ui.isFullscreen,S=m.ui.previewTrackActive,C=v(()=>!!r().isAuto),I=v(()=>!!a()),N=v(()=>e.playerSize.width*.02),P=v(()=>u()&&!l()||n(N)<=p.minSubtitlesFontSize?p.minSubtitlesFontSize:n(N)),E=K(null);Oe(()=>{var X,re,Z;(X=n(E))==null||X.setIsAuto(n(C)),(re=n(E))==null||re.setIsLive(n(I)),(Z=n(E))==null||Z.setCaptions(e.captions)});let A=K(ci([[]]));Rt(()=>{O(E,new bp().subscribe(),!0);let X=n(E).captionsPrepared$.subscribe(re=>{O(A,re,!0)});return()=>{var re;(re=n(E))==null||re.destroy(),X.unsubscribe()}}),Rt(()=>{if(n(C)){let X=window.setTimeout(()=>{$.set(!1)},p.autoSubtitlesTimeout);return()=>{window.clearTimeout(X)}}else $.set(!1)});let Q=v(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var H=OS();let z;var Y=T(H);{var le=X=>{var re=NS();let Z;var we=T(re),ue=T(we);{var ne=xe=>{var J=MS(),Ne=T(J),pe=T(Ne,!0);w(Ne),w(J),D(k=>{var We;Qe(Ne,`font-size: ${(We=n(P))!=null?We:""}px`),me(pe,k)},[()=>G("subtitles_auto_caption")]),b(xe,J)},_e=(xe,J)=>{{var Ne=k=>{var We=Le(),Te=de(We);Ti(Te,17,()=>n(A),Ud,(j,ie)=>{var De=VS(),Be=T(De);Ti(Be,21,()=>n(ie),({value:ot,timeAppeared:U})=>U,(ot,U)=>{let Ae=()=>n(U).value,Pe=()=>n(U).timeAppeared;var Ue=Le(),Je=de(Ue);{var ye=ke=>{var Fe=vs();D(()=>me(Fe,Ae())),b(ke,Fe)};R(Je,ke=>{(!Pe()||Pe()<=e.position)&&ke(ye)})}b(ot,Ue)}),w(Be),w(De),D(()=>{var ot;return Qe(Be,`font-size: ${(ot=n(P))!=null?ot:""}px`)}),b(j,De)}),b(k,We)},pe=k=>{var We=Le(),Te=de(We);Ti(Te,17,()=>e.captions,({value:j})=>j,(j,ie)=>{let De=()=>n(ie).value;var Be=RS(),ot=T(Be),U=T(ot,!0);w(ot),w(Be),D(()=>{var Ae;Qe(ot,`font-size: ${(Ae=n(P))!=null?Ae:""}px`),me(U,De())}),b(j,Be)}),b(k,We)};R(xe,k=>{var We;n(C)&&((We=n(A))!=null&&We.length)?k(Ne):k(pe,!1)},J)}};R(ue,xe=>{n(C)&&s()?xe(ne):xe(_e,!1)})}w(we),w(re),D(xe=>{var J;Z=se(re,1,"subtitles-caption s-d",null,Z,xe),Qe(re,`--subtitles-caption-margin: ${(J=n(Q))!=null?J:""}%`)},[()=>({mobile:u()})]),b(X,re)};R(Y,X=>{var re;(e.captions.length||(re=n(A))!=null&&re.length)&&X(le)})}w(H),D(X=>z=se(H,1,"subtitles-container s-d",null,z,X),[()=>({shifted:e.shifted,"preview-track-active":d(),auto:n(C)&&!n(I)&&!s()})]),b(t,H),F(),o()}var Kb=require("@vkontakte/videoplayer-core/es2015");var BS=M('<div class="text s-r"> </div>'),FS=M('<div><div class="icon_wrapper s-r"><!></div> <!></div>'),HS={hash:"s-r",code:".wrapper.s-r{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-r{background-size:cover}.icon_wrapper.s-r{align-items:center;display:flex;flex-direction:column;width:400px}.text.s-r{margin-top:20px}"};function Vc(t,e){B(e,!0),q(t,HS);let i=g(e,"chromecastDeviceName",3,"chromecastDeviceName"),o=Nt();var r=FS();let a;var l=T(r),d=T(l);_c(d,{get size(){return"48"},get iconState(){return Kb.ChromecastState.CONNECTED}}),w(l);var s=L(l,2);{var u=m=>{var p=BS(),f=T(p);w(p),D(()=>{var $;return me(f,`Видео воспроизводится на ${($=i())!=null?$:""}`)}),b(m,p)};R(s,m=>{i()&&m(u)})}w(r),D(m=>{a=se(r,1,"wrapper s-r",null,a,m),Qe(r,`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${e.thumbUrl||""}')`)},[()=>({bgCover:o.features.previewNoEmptySpace})]),b(t,r),F()}var US=Ce('<path d="M460 194a4 4 0 0 1 4-4h122a4 4 0 0 1 4 4v82a4 4 0 0 1-4 4H464a4 4 0 0 1-4-4zm6 3a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm112-72a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm-71-37a6 6 0 1 0 0-12 6 6 0 0 0 0 12m36 0a6 6 0 1 0 0-12 6 6 0 0 0 0 12m-18.05 15c6.05 0 11.62 4.45 11.94 4.65 2.11 1.35 3.26.77 3.96.16s1.15-2.81-1.04-4.66c-1.74-1.48-5.8-5.16-14.86-5.15s-12.95 3.5-14.8 5.18c-1.83 1.69-2.28 3.5-.96 4.66s2.31 1.16 4.35-.33c0 .01 5.36-4.51 11.41-4.51"></path>');function yv(t){Ze(t,{width:"200",height:"200",viewBox:"460 190 130 90",testId:"error-icon",children:(e,i)=>{var o=US();b(e,o)},$$slots:{default:!0}})}var zS=M('<div class="container s-5"><!></div>'),WS={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 il(t){q(t,WS);var e=zS(),i=T(e);yv(i,{}),w(e),b(t,e)}var KS=M('<div class="playButton s-e" tabindex="0" role="button"><div class="playButtonBackground s-e"></div> <!></div>'),qS=M('<div data-testid="unstarted-thumb"><!></div>'),QS={hash:"s-e",code:".container.s-e{background-position:50%;background-repeat:no-repeat;background-size:contain;bottom:0;cursor:pointer;left:0;position:absolute;right:0;top:0;transition:opacity .2s,visibility .2s;will-change:opacity}.container.hidden.s-e{opacity:0;visibility:hidden}.container.bgCover.s-e{background-size:cover}.playButton.s-e{align-items:center;display:flex;height:var(--big-play-size);justify-content:center;margin:auto;width:var(--big-play-size)}.playButton.s-e,.playButtonBackground.s-e{bottom:0;left:0;position:absolute;right:0;top:0}.playButtonBackground.s-e{background-color:var(--big-play-bg-color);border-radius:var(--big-play-radius);transition:background .2s,transform .2s;transition-timing-function:ease-out;will-change:background,transform}.container.s-e:hover .playButtonBackground:where(.s-e){background-color:var(--big-play-hover-bg-color);transform:scale(1.15)}.playButton.s-e svg{position:relative}"};function ol(t,e){B(e,!0),q(t,QS);let i=g(e,"iconVisible",3,!0),o=ve(),r=Nt(),a=o.ui.startedByKeyboard$,l=G("tooltip_play"),d=$=>{var _;let y=$.code;["Enter","Space"].includes(y)&&($.stopPropagation(),$.preventDefault(),a.set(!0),(_=e.startVideo)==null||_.call(e))},s=$=>{var y,_;$.stopPropagation(),(y=e.startVideo)==null||y.call(e),(_=e.onClick)==null||_.call(e,$)};var u=qS();let m;u.__click=s,u.__contextmenu=function(...$){var y;(y=e.onContextMenu)==null||y.apply(this,$)};var p=T(u);{var f=$=>{var y=KS();y.__keydown=d;var _=L(T(y),2);Mn(_,{get size(){return"48"}}),w(y),D(()=>Ve(y,"aria-label",l)),b($,y)};R(p,$=>{i()&&$(f)})}return w(u),D($=>{m=se(u,1,"container s-e",null,m,$),Qe(u,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:r.features.previewNoEmptySpace})]),b(t,u),F({handlePressKey:d,handleClick:s})}it(["click","contextmenu","keydown"]);var GS=M('<div data-testid="video_title"><span> </span></div>'),YS={hash:"s-13",code:".title.s-13{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-13{opacity:0;transform:translateY(calc(var(--controls-gradient-height)*-1));visibility:hidden}"};function xv(t,e){B(e,!0),q(t,YS);let i=g(e,"title",3,""),o=g(e,"isHidden",3,!1),r=g(e,"ref",15),a=K(void 0);Rt(()=>{var p;requestAnimationFrame(()=>{var f;(f=e.onVisibilityChanged)==null||f.call(e,!0)});function m(f){var $;f.propertyName==="transform"&&(($=e.onVisibilityChanged)==null||$.call(e,!o()))}return(p=n(a))==null||p.addEventListener("transitionend",m),()=>{var f;return(f=n(a))==null?void 0:f.removeEventListener("transitionend",m)}});var l=GS();let d;var s=T(l),u=T(s,!0);w(s),Xe(s,m=>r(m),()=>r()),w(l),Xe(l,m=>O(a,m),()=>n(a)),D(m=>{d=se(l,1,"title s-13",null,d,m),me(u,i())},[()=>({hidden:o()})]),b(t,l),F()}var qb=require("@vkontakte/videoplayer-shared/es2015");var jS=M('<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),XS=M('<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),ZS=M('<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),JS=M('<div class="timer__cell cell s-1b"><span class="cell__value s-1b"> </span> <span class="cell__unit s-1b"> </span></div>'),e2=M("<div><!> <!> <!> <!></div>"),t2={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 wv(t,e){B(e,!0),q(t,t2);let i=K(""),o=K(""),r=K(""),a=K(""),l,d=32,s=d/2,u=H=>String(H).padStart(2,"0"),m=H=>Math.max(H.length,1),p=H=>`${(e.isSmallSize?s:d)*m(H)}px`,f=H=>{let z=Math.floor(H/86400);z&&(H-=z*86400,O(i,u(z),!0));let Y=Math.floor(H/3600);O(o,u(Y),!0);let le=Math.floor(H/60)%60;O(r,u(le),!0);let X=H%60;O(a,u(X),!0)},$=()=>{let H=Math.floor(Date.now()/1e3),z=e.startTime-H;f(z),z>=1?l=requestAnimationFrame($):e.onTimerOver()};Rt(()=>{l=requestAnimationFrame($)}),gn(()=>{cancelAnimationFrame(l)});var y=e2();let _;var S=T(y);{var C=H=>{var z=jS(),Y=de(z);let le;var X=T(Y),re=T(X,!0);w(X);var Z=L(X,2),we=T(Z,!0);w(Z),w(Y);var ue=L(Y,2),ne=T(ue,!0);w(ue),D((_e,xe,J)=>{le=Qe(Y,"",le,{width:_e}),me(re,n(i)),me(we,xe),me(ne,J)},[()=>p(n(i)),()=>G("waiting_live_day_value"),()=>G("waiting_live_colon")]),b(H,z)};R(S,H=>{n(i)&&H(C)})}var I=L(S,2);{var N=H=>{var z=XS(),Y=de(z);let le;var X=T(Y),re=T(X,!0);w(X);var Z=L(X,2),we=T(Z,!0);w(Z),w(Y);var ue=L(Y,2),ne=T(ue,!0);w(ue),D((_e,xe,J)=>{le=Qe(Y,"",le,{width:_e}),me(re,n(o)),me(we,xe),me(ne,J)},[()=>p(n(o)),()=>G("waiting_live_hour_value"),()=>G("waiting_live_colon")]),b(H,z)};R(I,H=>{n(o)&&H(N)})}var P=L(I,2);{var E=H=>{var z=ZS(),Y=de(z);let le;var X=T(Y),re=T(X,!0);w(X);var Z=L(X,2),we=T(Z,!0);w(Z),w(Y);var ue=L(Y,2),ne=T(ue,!0);w(ue),D((_e,xe,J)=>{le=Qe(Y,"",le,{width:_e}),me(re,n(r)),me(we,xe),me(ne,J)},[()=>p(n(r)),()=>G("waiting_live_minute_value"),()=>G("waiting_live_colon")]),b(H,z)};R(P,H=>{n(r)&&H(E)})}var A=L(P,2);{var Q=H=>{var z=JS();let Y;var le=T(z),X=T(le,!0);w(le);var re=L(le,2),Z=T(re,!0);w(re),w(z),D((we,ue)=>{Y=Qe(z,"",Y,{width:we}),me(X,n(a)),me(Z,ue)},[()=>p(n(a)),()=>G("waiting_live_second_value")]),b(H,z)};R(A,H=>{n(a)&&H(Q)})}w(y),D(H=>_=se(y,1,"timer__container s-1b",null,_,H),[()=>({small:e.isSmallSize})]),b(t,y),F()}var i2=M('<div class="waiting s-x"><span> </span></div>'),o2=M('<div class="upcoming-timer timer s-x"><span> </span> <!></div>'),n2=M('<div class="waiting-container s-x"><!></div>'),r2={hash:"s-x",code:'.waiting-container.s-x{background-color:var(--black);background-position:50%;background-repeat:no-repeat;background-size:cover;white-space:nowrap}.waiting-container.s-x,.waiting-container.s-x:before{height:100%;left:0;position:absolute;top:0;width:100%}.waiting-container.s-x:before{backdrop-filter:blur(15px);background-color:rgba(0,0,0,.56);content:"";z-index:1}.waiting.s-x{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-x{font-size:20px;font-weight:600;line-height:1.2}.upcoming-timer.s-x{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:2}.timer.s-x{align-items:center;display:flex;flex-direction:column;justify-content:center}.timer__title.s-x{display:inline-block;font-size:20px;font-weight:600;line-height:1.2;margin-bottom:12px;vertical-align:middle}.small.s-x{font-size:15px}.medium.s-x{font-size:17px}'};function Rc(t,e){B(e,!0),q(t,r2);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}),m=v(()=>{var S,C;return!n(u)&&(((S=n(d))!=null?S:1/0)<=699||((C=n(s))!=null?C:1/0)<=599)}),p=e.onUpcomingLiveViewStateChanged?(0,qb.throttleFn)(()=>{cancelAnimationFrame(l),l=requestAnimationFrame(()=>{let S={type:n(o)?"expired":"default",size:n(u)?"s":n(m)?"m":"l"},C=n(o)?n(r):n(a);e.onUpcomingLiveViewStateChanged(S,C)})},300):void 0;Oe(()=>{n(s),n(d),n(o),p==null||p()}),gn(()=>{if(cancelAnimationFrame(l),p==null||p.cancel(),e.onUpcomingLiveViewStateChanged){let S={type:n(o)?"expired":"default",size:n(u)?"s":n(m)?"m":"l"};e.onUpcomingLiveViewStateChanged(S)}});var f=n2();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 $=T(f);{var y=S=>{var C=i2(),I=T(C);let N;var P=T(I,!0);w(I),w(C),Xe(C,E=>O(r,E),()=>n(r)),D((E,A)=>{N=se(I,1,"waiting__title s-x",null,N,E),me(P,A)},[()=>({medium:n(m),small:n(u)}),()=>G("waiting_live_upcoming_title")]),b(S,C)},_=S=>{var C=o2(),I=T(C);let N;var P=T(I,!0);w(I);var E=L(I,2);let A=v(()=>n(u)||n(m)),Q=v(()=>i()||0);wv(E,{get isSmallSize(){return n(A)},get startTime(){return n(Q)},onTimerOver:()=>O(o,!0)}),w(C),Xe(C,H=>O(a,H),()=>n(a)),D((H,z)=>{N=se(I,1,"timer__title s-x",null,N,H),me(P,z)},[()=>({medium:n(m),small:n(u)}),()=>G("waiting_live_timer_title")]),b(S,C)};R($,S=>{n(o)?S(y):S(_,!1)})}w(f),D(()=>Qe(f,`background-image: url(${e.thumbUrl})`)),An(f,"clientWidth",S=>O(d,S)),An(f,"clientHeight",S=>O(s,S)),b(t,f),F()}it(["contextmenu","click"]);var s2=M('<div class="waiting-container s-s"><div class="waiting-caption s-s"><!> <p class="waiting-title s-s"> </p></div></div>'),a2={hash:"s-s",code:'.waiting-container.s-s{align-items:center;background-color:var(--black);background-position:50%;background-repeat:no-repeat;background-size:cover;display:flex;justify-content:center}.waiting-container.s-s,.waiting-container.s-s:before{height:100%;left:0;position:absolute;top:0;width:100%}.waiting-container.s-s:before{backdrop-filter:blur(10px);background-color:rgba(0,0,0,.4);content:""}.waiting-caption.s-s{align-items:center;display:flex;flex-direction:column;position:relative}.waiting-title.s-s{font-size:20px;font-weight:400;line-height:1.2;margin:0;padding:20px;text-align:center}'};function nl(t,e){B(e,!0),q(t,a2);let i=g(e,"thumbUrl",3,""),o={recover:G("waiting_live_recover_title"),record:G("waiting_record_title")},r=v(()=>o[e.kind]||"");var a=s2();a.__contextmenu=function(...m){var p;(p=e.onContextMenu)==null||p.apply(this,m)},a.__click=function(...m){var p;(p=e.onClick)==null||p.apply(this,m)};var l=T(a),d=T(l);Ka(d,{style:"position: static; transform: translate(0, 0)"});var s=L(d,2),u=T(s,!0);w(s),w(l),w(a),D(()=>{Qe(a,`background-image: url('${i()}')`),me(u,n(r))}),b(t,a),F()}it(["contextmenu","click"]);var l2=Ce('<path d="M6 10.2 3.5 7.7a.99.99 0 0 0-1.4 1.4l3.2 3.2a1 1 0 0 0 1.4 0l7.6-7.6a.99.99 0 0 0-1.4-1.4z"></path>');function Sv(t){Ze(t,{width:"16",height:"16",testId:"check-mark-icon",children:(e,i)=>{var o=l2();b(e,o)},$$slots:{default:!0}})}var d2=M('<div class="select-icon s-1x"><!></div>'),c2={hash:"s-1x",code:".select-icon.s-1x{margin-right:auto;opacity:.9;padding-right:12px;position:relative;top:3px}"};function Nc(t){q(t,c2);var e=d2(),i=T(e);Sv(i,{}),w(e),b(t,e)}var u2=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},p2=(t,e)=>{jl(t,()=>e.item.selectItem(e.item.value))},f2=M("<p> </p>"),m2=M('<p class="sublabel s-1u"> </p>'),v2=M('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),g2={hash:"s-1u",code:".menu-item-value.s-1u{align-items:end;display:flex;flex-direction:column;min-width:0}.menu-item-value[data-selected=false].s-1u{--select-icon-width:16px;--icon-padding:12px;margin-left:calc(var(--icon-padding) + var(--select-icon-width))}.label.s-1u,.sublabel.s-1u{max-width:100%;overflow:hidden;text-overflow:ellipsis}.sublabel.s-1u{opacity:.5}"};function Tv(t,e){B(e,!0),q(t,g2);let i=g(e,"isMobile",3,!1);var o=v2();let r;o.__click=[u2,e],o.__keydown=[p2,e];var a=T(o);{var l=y=>{Nc(y,{})};R(a,y=>{e.item.selected&&y(l)})}var d=L(a,2);let s;var u=T(d);{var m=y=>{var _=Le(),S=de(_);Bi(S,()=>e.item.valueComponent,(C,I)=>{I(C,ks(()=>{var N;return(N=e.item.valueComponentParams)!=null?N:{}}))}),b(y,_)},p=y=>{var _=f2();let S;var C=T(_,!0);w(_),D(I=>{var N;S=se(_,1,"label s-1u",null,S,I),me(C,(N=e.item.label)!=null?N:e.item.value)},[()=>({mobile:i()})]),b(y,_)};R(u,y=>{e.item.valueComponent?y(m):y(p,!1)})}var f=L(u,2);{var $=y=>{var _=m2(),S=T(_,!0);w(_),D(()=>me(S,e.item.sublabel)),b(y,_)};R(f,y=>{e.item.sublabel&&y($)})}w(d),w(o),D((y,_,S)=>{r=se(o,1,"item",null,r,y),Ve(o,"data-value",e.item.value),Ve(o,"aria-label",_),Ve(o,"data-testid",e.item.dataTestid),s=se(d,1,"menu-item-value s-1u",null,s,S),Ve(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>{var y,_;return(_=(y=e.item.ariaLabel)!=null?y:e.item.label)!=null?_:e.item.value.toString()},()=>({"submenu-value-mobile":i()})]),b(t,o),F()}it(["click","keydown"]);var h2=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function Cv(t,e){B(e,!0);let i=g(e,"isMobile",3,!1),o=g(e,"refMenuItems",15),r=v(()=>()=>e.openSubMenuList(e.item.children)),a=v(()=>_=>ep(_,n(r)));var l=h2();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=_=>{Nc(_,{})};R(s,_=>{e.item.selected&&_(u)})}var m=L(s,2);let p;var f=T(m);{var $=_=>{var S=Le();let C=v(()=>e.item.valueComponent);var I=de(S);Bi(I,()=>n(C),(N,P)=>{P(N,ks(()=>{var E;return(E=e.item.valueComponentParams)!=null?E:{}}))}),b(_,S)},y=_=>{var S=vs();D(()=>me(S,e.item.label)),b(_,S)};R(f,_=>{e.item.valueComponent?_($):_(y,!1)})}w(m),w(l),Xe(l,_=>o(o()[e.item.id]=_,!0),()=>{var _;return(_=o())==null?void 0:_[e.item.id]}),D((_,S)=>{var C;d=se(l,1,"item",null,d,_),Ve(l,"aria-label",(C=e.item.ariaLabel)!=null?C:e.item.label),Ve(l,"data-testid",e.item.id),p=se(m,1,"menu-item-value",null,p,S)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),b(t,l),F()}it(["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 b2=(t,e)=>{lb(t,e.returnFromSubMenu,e.closeSettingsMenu)},$2=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},y2=(t,e)=>{ac(t)&&(Rr(t),e.returnFromSubMenu())},x2=M('<div><ul role="menu"><li role="menuitem" tabindex="0" data-testid="return-to-settings-menu"><!> <p class="title s-1l"> </p></li> <!></ul></div>'),w2={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 Ev(t,e){B(e,!0),q(t,w2);let[i,o]=Re(),r=()=>x(p,"$isFullscreen",i),a=()=>x(f,"$playerSize",i),l=g(e,"isMobile",3,!1),d=g(e,"playerControlsHeight",3,0),s=g(e,"ariaLabelReturnFromSubMenu",19,()=>G("aria_label_submenu_back")),u=g(e,"listRef",15);Rt(()=>{let X=e.items.findIndex(re=>re.selected);u().children[X+1].focus()});let m=ve(),p=m.ui.isFullscreen,f=m.ui.playerSize,$=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=x2();let N;var P=T(I);let E;P.__keydown=[b2,e];var A=T(P);let Q;A.__click=[$2,e],A.__keydown=[y2,e];var H=T(A);Vr(H,{direction:"left"});var z=L(H,2),Y=T(z,!0);w(z),w(A),Xe(A,X=>O($,X),()=>n($));var le=L(A,2);Ti(le,17,()=>e.items,Ud,(X,re)=>{var Z=Le(),we=de(Z);{var ue=_e=>{Tv(_e,{get item(){return n(re)},get isMobile(){return l()}})},ne=(_e,xe)=>{{var J=Ne=>{Cv(Ne,{get isMobile(){return l()},get item(){return n(re)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};R(_e,Ne=>{n(re).type==="OPEN_SUB_MENU"&&Ne(J)},xe)}};R(we,_e=>{n(re).type==="SELECT_VALUE"?_e(ue):_e(ne,!1)})}b(X,Z)}),w(P),Xe(P,X=>u(X),()=>u()),w(I),D((X,re,Z)=>{N=se(I,1,"sub-menu menu s-1l",null,N,X),Ve(I,"data-testid",`${e.id}-sub-menu`),Qe(I,`min-width: ${n(C)}px`),E=se(P,1,"items s-1l",null,E,re),Qe(P,n(S)),Q=se(A,1,"item header back s-1l",null,Q,Z),Ve(A,"aria-label",s()),me(Y,e.title)},[()=>({desktop:!l(),mobile:l()}),()=>({mobile:l()}),()=>({mobile:l()})]),An(A,"clientWidth",X=>O(y,X)),An(A,"clientHeight",X=>O(_,X)),b(t,I),F(),o()}it(["keydown","click"]);var Gb=require("@vkontakte/videoplayer-shared/es2015");var S2=(t,e)=>ep(t,e()),T2=(t,e)=>{t.stopPropagation(),e()()},C2=M('<div class="value s-1o"> </div>'),I2=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),E2={hash:"s-1o",code:".value.s-1o{opacity:.7;overflow:hidden;position:relative;text-overflow:ellipsis}"};function Pv(t,e){B(e,!0),q(t,E2);let i=g(e,"isMobile",3,!1),o=g(e,"onClick",3,Gb.noop),r=g(e,"valueComponent",3,void 0),a=g(e,"ref",15);var l=I2();let d;l.__click=[T2,o],l.__keydown=[S2,o];var s=T(l),u=T(s);{var m=C=>{Xa(C,{get icon(){return e.icon}})},p=C=>{var I=Le();let N=v(()=>e.icon);var P=de(I);Bi(P,()=>n(N),(E,A)=>{A(E,{})}),b(C,I)};R(u,C=>{typeof e.icon=="string"?C(m):C(p,!1)})}w(s);var f=L(s,2),$=T(f,!0);w(f);var y=L(f,2);{var _=C=>{var I=Le();let N=v(r);var P=de(I);Bi(P,()=>n(N),(E,A)=>{A(E,{})}),b(C,I)},S=C=>{var I=C2(),N=T(I,!0);w(I),D(()=>me(N,e.value)),b(C,I)};R(y,C=>{r()?C(_):C(S,!1)})}w(l),Xe(l,C=>a(C),()=>a()),D(C=>{d=se(l,1,"item",null,d,C),Ve(l,"aria-label",e.ariaLabel),Ve(l,"data-testid",e.id),me($,e.label)},[()=>({mobile:i()})]),b(t,l),F()}it(["click","keydown"]);var kv=require("@vkontakte/videoplayer-shared/es2015");var P2=(t,e)=>{jl(t,()=>e())},k2=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),A2=M('<img class="icon" aria-hidden="true"/>'),L2=M('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label s-1m"> </div></li>'),M2={hash:"s-1m",code:".label.s-1m{overflow:hidden;text-overflow:ellipsis}"};function Av(t,e){B(e,!0),q(t,M2);let i=g(e,"isMobile",3,!1),o=g(e,"onClick",3,kv.noop),r=g(e,"closeSettings",3,kv.noop),a=K(!1),l=()=>{O(a,!0)},d=S=>{S==null||S.stopPropagation(),o()(),r()()};var s=L2();let u;s.__click=d,s.__keydown=[P2,d];var m=T(s),p=T(m);{var f=S=>{var C=Le(),I=de(C);{var N=E=>{var A=k2();b(E,A)},P=E=>{var A=A2();D(()=>Ve(A,"src",e.icon)),_t("error",A,l),Aa(A),b(E,A)};R(I,E=>{n(a)?E(N):E(P,!1)})}b(S,C)},$=S=>{var C=Le();let I=v(()=>e.icon);var N=de(C);Bi(N,()=>n(I),(P,E)=>{E(P,{})}),b(S,C)};R(p,S=>{typeof e.icon=="string"?S(f):S($,!1)})}w(m);var y=L(m,2),_=T(y,!0);w(y),w(s),D(S=>{var C;u=se(s,1,"item",null,u,S),Ve(s,"aria-label",(C=e.ariaLabel)!=null?C:e.label),Ve(s,"data-testid",e.id),me(_,e.label)},[()=>({mobile:i()})]),b(t,s),F()}it(["click","keydown"]);var Yb=require("@vkontakte/videoplayer-shared/es2015");var V2=M('<div class="toggle_wrap s-1r"><div></div> <div class="toggle-label s-1r"></div></div>'),R2={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,R2);let i=g(e,"enabled",3,!1);var o=V2(),r=T(o);let a;vi(2),w(o),D(l=>a=se(r,1,"toggle s-1r",null,a,l),[()=>({on:i()})]),b(t,o)}var N2=(t,e,i)=>{db(t,e(),o=>i()(o))},O2=(t,e,i)=>{t.stopPropagation(),e()(!i())},D2=M('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),B2=M('<li role="menuitem" tabindex="0"><!></li>');function Mv(t,e){B(e,!0);let i=g(e,"isMobile",3,!1),o=g(e,"onClick",3,Yb.noop),r=g(e,"enabled",3,!1),a=g(e,"tooltipText",3,void 0),l=g(e,"maxTooltipWidth",3,void 0);var d=B2();let s;d.__click=[O2,o,r],d.__keydown=[N2,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:(m,p)=>{var f=D2();let $;var y=T(f),_=T(y);{var S=E=>{Xa(E,{get icon(){return e.icon}})},C=E=>{var A=Le();let Q=v(()=>e.icon);var H=de(A);Bi(H,()=>n(Q),(z,Y)=>{Y(z,{})}),b(E,A)};R(_,E=>{typeof e.icon=="string"?E(S):E(C,!1)})}w(y);var I=L(y,2),N=T(I,!0);w(I);var P=L(I,2);Lv(P,{get enabled(){return r()}}),w(f),D(E=>{$=se(f,1,"switch-wrapper",null,$,E),me(N,e.label)},[()=>({mobile:i()})]),b(m,f)},$$slots:{default:!0}}),w(d),D(m=>{var p;s=se(d,1,"item switch-item",null,s,m),Ve(d,"aria-label",(p=e.ariaLabel)!=null?p:e.label),Ve(d,"data-testid",e.id)},[()=>({mobile:i()})]),b(t,d),F()}it(["click","keydown"]);var Dc=require("@vkontakte/videoplayer-shared/es2015");var jb=()=>{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:()=>{O(t,n(t).slice(0,-1),!0)},popAllSubMenus:()=>{O(t,[],!0)}}};var Xb=require("@vkontakte/videoplayer-shared/es2015");var F2=M('<div class="quality-icon s-1q"><!></div>'),H2=M('<div class="quality-label s-1q"><span> </span> <!></div>'),U2={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 rl(t,e){B(e,!0),q(t,U2);let i=g(e,"isSubCase",3,!1),o=v(()=>e.quality?(0,Xb.getVideoQualityLabel)(e.quality):""),r=v(()=>rp(e.quality));var a=H2(),l=T(a);let d;var s=T(l,!0);w(l);var u=L(l,2);{var m=p=>{var f=F2();let $=v(()=>n(r));var y=T(f);Bi(y,()=>n($),(_,S)=>{S(_,{})}),w(f),D(()=>Ve(f,"data-testid",`${n(o)}-icon`)),b(p,f)};R(u,p=>{n(r)&&!e.isMobile&&p(m)})}w(a),D(p=>{d=se(l,1,"s-1q",null,d,p),me(s,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),b(t,a),F()}var t$=require("@vkontakte/videoplayer-shared/es2015");var Vv=require("@vkontakte/videoplayer-core/es2015");var Zb=({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=Zb({quality:t,availableQualities:e});return i?t===Vv.VideoQuality.INVARIANT?G("auto_quality_invariant"):G("auto_quality",{actual:o}):o},e$=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===Vv.VideoQuality.INVARIANT?i:`${i}${Zb({quality:t,availableQualities:e})}`:"...";var z2=M('<div class="menu-item-value-wrapper s-1t"><!></div>'),W2={hash:"s-1t",code:".menu-item-value-wrapper.s-1t{line-height:normal}"};function ld(t,e){B(e,!0),q(t,W2);let[i,o]=Re(),r=()=>x(s,"$currentQuality$",i),a=()=>x(u,"$availableQualities$",i),l=()=>x(m,"$isMobile$",i),d=ve(),s=d.state.currentQuality$,u=d.state.availableQualities$,m=d.ui.isMobile,p=" · ",f=v(()=>e.prefix+(e.selected&&r()!==t$.VideoQuality.INVARIANT?p:"")),$=v(()=>e$({prefix:n(f),quality:r(),availableQualities:a(),onlyPrefix:!e.selected}));var y=z2(),_=T(y);let S=v(()=>e.selected?r():void 0);rl(_,{get quality(){return n(S)},get label(){return n($)},get isMobile(){return l()},isSubCase:!0}),w(y),b(t,y),F(),o()}var K2=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")},q2={br:!0,span:!0},Rv=(t,e={})=>{var d,s,u,m,p,f,$;if(!t)return t;let i=Ie(Ie({},q2),e),o=Object.keys(i);if(!o.length)return t;let r=K2(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)||((m=y.groups)==null?void 0:m.keyi18nself)||"",{index:C}=y;if(!i[S]){a.push(t.slice(l,C)),l=C+_.length;continue}let I=(p=y.groups)!=null&&p.childrenhtml?Rv(y.groups.childrenhtml,i):"",N=(f=y.groups)!=null&&f.childrenhtml?_.replace(new RegExp(($=y.groups)==null?void 0:$.childrenhtml),()=>I||""):_;a.push(t.slice(l,C),N),l=C+_.length}return l===0?t:(a.push(t.slice(l)),a.join(""))};function Oc(t,e){B(e,!1);let i=g(e,"message",8),o=Rv(i());To();var r=Le(),a=de(r);{var l=d=>{var s=Le(),u=de(s);zd(u,()=>o),b(d,s)};R(a,d=>{o&&d(l)})}b(t,r),F()}var Q2=M('<p class="quality-applies sublabel s-1s"><!></p>'),G2={hash:"s-1s",code:".quality-applies.s-1s{color:hsla(0,0%,100%,.5);display:flex;justify-content:end;padding:3px 0}.quality-applies span{color:#70c1ff}"};function Nv(t,e){B(e,!1),q(t,G2),To();var i=Q2(),o=T(i);let r=Cn(()=>G("quality_applience",{action:`<span>${G("quality_applience_action")}</span>`}));Oc(o,{get message(){return n(r)}}),w(i),b(t,i),F()}var o$=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"quality-other-settings",type:"OPEN_SUB_MENU",selected:o,valueComponent:ld,valueComponentParams:{prefix:G("other_quality"),selected:o},children:"quality-other-settings"}},Ov=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"quality-auto",type:"SELECT_VALUE",value:"auto",label:G("auto_quality_limit"),valueComponent:e?ld:void 0,valueComponentParams:{prefix:G("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),n$=()=>({id:"quality-appliance-settings",type:"OPEN_SUB_MENU",valueComponent:Nv,bottomBordered:!0,children:"quality-appliance"}),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:G("high_quality"),valueComponent:t?ld:void 0,valueComponentParams:{prefix:G("high_quality"),selected:i},sublabel:G("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:G("traffic_saving_quality"),valueComponent:t?ld:void 0,valueComponentParams:{prefix:G("traffic_saving_quality"),selected:i},sublabel:G("traffic_saving_quality_description")});var $p=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),yp=(t,e)=>{var l;if(!t)return"";let{language:i,label:o}=t,r;if(i==="und"?r=void 0:i&&(r=(l=yc(i))!=null?l:i),o&&i&&r){let d=e.filter(s=>s.label===o&&s.language===i);if(d.length===1)return G("audio_stream_display_language_label",{language:r,label:o});{let s=$p(t,d);return G("audio_stream_display_language_label_index",{language:r,label:o,index:s})}}if(o){let d=e.filter(s=>s.label===o);if(d.length===1)return o;{let s=$p(t,d);return G("audio_stream_display_label_index",{label:o,index:s})}}if(i&&r){let d=e.filter(s=>s.language===i);if(d.length===1)return r;{let s=$p(t,d);return G("audio_stream_display_language_index",{language:r,index:s})}}let a=$p(t,e);return G("audio_stream_display_unknown",{index:a})};var Y2={"quality-settings":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:G("submenu_quality"),id:"quality-settings",items:[n$(t),...a.map(({handler:l,selected:d})=>l({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),o$(t)]}},"quality-other-settings":({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"quality-other-settings",title:G("submenu_quality"),closeSettingsMenu:t,items:i.map(r=>({type:"SELECT_VALUE",value:r.value,valueComponent: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-appliance":t=>{var i,o,r;let{closeSettingsMenu:e}=t;return{id:"quality-appliance",title:G("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:Ov,selected:((i=zu())==null?void 0:i.type)==="auto_quality"},{handler:Bv,selected:((o=zu())==null?void 0:o.type)==="traffic_saving"},{handler:Dv,selected:((r=zu())==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:G("submenu_audio_languages"),closeSettingsMenu:t,items:e.map(r=>({type:"SELECT_VALUE",value:r,dataValue:r.id,selectItem:o,selected:r.id===(i==null?void 0:i.id),label:yp(r,e)}))}),"playback-rate":({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"playback-rate",title:G("submenu_playback_rate"),closeSettingsMenu:t,items:e.map(o=>({type:"SELECT_VALUE",value:o.value,selectItem:i,selected:o.selected,label:o.displayValue}))}),subtitles:({availableSubtitlesList:t,selectSubtitle:e})=>({id:"subtitles",minWidth:164,title:G("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i.value,selectItem:()=>e(i),selected:i.selected,label:i.displayValue,dataTestid:i.value===Rn?"sub_off":void 0}))})},r$=({subMenuId:t,context:e})=>t?[Y2[t](e)]:[];var j2=Ce('<path d="M3.1 9.5c0-2.24 0-3.36.44-4.22A4 4 0 015.28 3.54C6.14 3.1 7.26 3.1 9.5 3.1h5c2.24 0 3.36 0 4.22.44a4 4 0 011.74 1.74c.44.86.44 1.98.44 4.22s0 3.36-.44 4.22a4 4 0 01-1.74 1.74c-.84.43-1.93.44-4.07.44l.55 2.2h1.9a.9.9 0 010 1.8H6.9a.9.9 0 110-1.8h1.9l.55-2.2c-2.14 0-3.23-.01-4.07-.44a4 4 0 01-1.74-1.74C3.1 12.86 3.1 11.74 3.1 9.5m11.4-4.6h-5c-1.15 0-1.9 0-2.48.05-.56.04-.79.12-.92.19a2.2 2.2 0 00-.96.96 2 2 0 00-.2.92C4.9 7.6 4.9 8.35 4.9 9.5s0 1.9.05 2.48c.04.56.12.79.19.92q.33.63.96.96c.13.07.36.15.92.2.58.04 1.33.04 2.48.04h5c1.15 0 1.9 0 2.48-.05.56-.04.79-.12.92-.19a2.2 2.2 0 00.96-.96c.07-.13.15-.36.2-.92.04-.58.04-1.33.04-2.48s0-1.9-.05-2.48a3 3 0 00-.19-.92 2.2 2.2 0 00-.96-.96 2 2 0 00-.92-.2c-.58-.04-1.33-.04-2.48-.04m-3.3 11-.55 2.2h2.7l-.55-2.2z"></path>');function Fv(t){Ze(t,{testId:"traffic-saving-icon",children:(e,i)=>{var o=j2();b(e,o)},$$slots:{default:!0}})}var X2=Ce('<path d="M8.3 14.25c1.86 1.9 5.5.02 5.5-3.55V5.64l2.4-.7A2.74 2.74 0 0 0 18 2.37V.64a.75.75 0 0 0-.92-.62l-.26.06C15.88.3 14.93.51 14 .8c-1.33.45-2.03 1.62-2.01 3.08V9c-3.89.2-5.64 3.29-3.7 5.25ZM.9.1a.9.9 0 0 0 0 1.8h8.2a.9.9 0 0 0 0-1.8H.9ZM.9 5.1a.9.9 0 1 0 0 1.8h7.2a.9.9 0 0 0 0-1.8H.9ZM0 11c0-.5.4-.9.9-.9h4.18a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 11Z"></path>');function Hv(t){Ze(t,{width:"18",height:"15",children:(e,i)=>{var o=X2();b(e,o)},$$slots:{default:!0}})}var Z2=Ce('<path d="M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A8 8 0 0 1 11 4.07M5.69 7.1 4.26 5.68A10 10 0 0 0 2.05 11h2.02a8 8 0 0 1 1.62-3.9M2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A8 8 0 0 1 4.07 13zM11 21.95v-2.02a8 8 0 0 1-3.9-1.62l-1.42 1.43A10 10 0 0 0 11 21.95M22 12c0 5.16-3.92 9.42-8.95 9.95v-2.02C16.97 19.41 20 16.05 20 12s-3.03-7.41-6.95-7.93V2.05C18.08 2.58 22 6.84 22 12M10.69 8.58l4.74 2.73a.8.8 0 0 1 0 1.37l-4.74 2.74a.8.8 0 0 1-1.19-.68V9.26a.8.8 0 0 1 1.19-.68"></path>');function Uv(t){Ze(t,{testId:"play-speed-icon",children:(e,i)=>{var o=Z2();b(e,o)},$$slots:{default:!0}})}var J2=Ce('<path d="M12 2a.9.9 0 01.9.9v10.93l4.56-4.57a.9.9 0 011.28 1.28l-6.1 6.1a.9.9 0 01-1.28 0l-6.1-6.1a.9.9 0 111.28-1.28l4.56 4.57V2.9A.9.9 0 0112 2M4 20a.9.9 0 01.9-.9h14.2a.9.9 0 110 1.8H4.9A.9.9 0 014 20"></path>');function zv(t){Ze(t,{testId:"download-icon",children:(e,i)=>{var o=J2();b(e,o)},$$slots:{default:!0}})}var eT=Ce('<path d="M8.86 2.1h6.28c.67 0 1.2.21 1.68.7l4.38 4.38c.48.48.7 1 .7 1.68v6.28c0 .68-.22 1.2-.7 1.68l-4.38 4.38c-.48.48-1 .7-1.68.7H8.86c-.68 0-1.2-.22-1.68-.7L2.8 16.82c-.48-.48-.7-1-.7-1.68V8.86c0-.68.22-1.2.7-1.68L7.18 2.8c.48-.49 1-.7 1.68-.7m-.44 2L4.1 8.43c-.18.18-.21.24-.21.5v6.17c0 .25.03.31.2.5l4.32 4.3c.18.18.24.21.5.21h6.17c.25 0 .31-.03.5-.2l4.3-4.32c.18-.18.21-.24.21-.5V8.92c0-.25-.03-.31-.2-.5l-4.32-4.3c-.18-.18-.24-.21-.5-.21H8.92c-.25 0-.32.03-.5.2M13 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-.1-8.1a.9.9 0 0 0-1.8 0v5.2a.9.9 0 1 0 1.8 0z"></path>');function Wv(t){Ze(t,{testId:"report-icon",children:(e,i)=>{var o=eT();b(e,o)},$$slots:{default:!0}})}var tT=Ce('<path d="M4 12.3V12c0-1.47 0-2.55.08-3.4.07-.9.21-1.48.45-1.95a4.85 4.85 0 0 1 2.12-2.12 5.1 5.1 0 0 1 1.95-.45C9.5 4 10.68 4 12.3 4h4.51c-.03-.16-.09-.33-.17-.49a2.4 2.4 0 0 0-1.05-1.05c-.3-.16-.63-.21-.93-.24-.29-.02-.64-.02-1.03-.02h-1.37c-1.58 0-2.81 0-3.81.08a6.84 6.84 0 0 0-2.62.64 6.65 6.65 0 0 0-2.9 2.91c-.4.76-.57 1.6-.65 2.62-.08 1-.08 2.23-.08 3.81v1.37c0 .4 0 .74.02 1.03.03.3.08.62.24.93A2.4 2.4 0 0 0 4 16.8V12.3ZM10.08 6h-.03c-.53 0-.97 0-1.33.03-.39.03-.76.1-1.12.28a2.9 2.9 0 0 0-1.3 1.3c-.17.35-.24.72-.27 1.1C6 9.09 6 9.53 6 10.06v7.9c0 .53 0 .97.03 1.33.03.39.1.76.28 1.12a2.9 2.9 0 0 0 1.3 1.3c.35.17.72.24 1.1.27.37.03.81.03 1.33.03h6.91c.53 0 .97 0 1.33-.03.39-.03.76-.1 1.12-.28a2.9 2.9 0 0 0 1.3-1.3c.17-.35.24-.72.27-1.1.03-.37.03-.81.03-1.34v-7.9c0-.53 0-.97-.03-1.33-.03-.39-.1-.76-.28-1.12a2.9 2.9 0 0 0-1.3-1.3 2.96 2.96 0 0 0-1.1-.27C17.91 6 17.47 6 16.94 6h-6.87ZM8.41 7.92c.06-.04.18-.07.45-.1.28-.02.65-.02 1.22-.02h6.84c.57 0 .94 0 1.22.02.27.03.39.06.45.1.21.1.39.28.5.49.03.06.06.18.09.45.02.28.02.65.02 1.22v7.84c0 .57 0 .94-.02 1.22-.03.27-.06.39-.1.45-.1.21-.28.39-.49.5-.06.03-.18.06-.45.09-.28.02-.65.02-1.22.02h-6.84c-.57 0-.94 0-1.22-.02a1.23 1.23 0 0 1-.45-.1 1.1 1.1 0 0 1-.5-.49 1.23 1.23 0 0 1-.09-.45c-.02-.28-.02-.65-.02-1.22v-7.84c0-.57 0-.94.02-1.22.03-.27.06-.39.1-.45.1-.21.28-.39.49-.5Z"></path>');function xp(t){Ze(t,{children:(e,i)=>{var o=tT();b(e,o)},$$slots:{default:!0}})}var iT=Ce('<path d="M12 20.1a8.1 8.1 0 1 0 0-16.2 8.1 8.1 0 0 0 0 16.2m0 1.9a10 10 0 1 1 0-20 10 10 0 0 1 0 20m0-12.37A1.32 1.32 0 1 1 12 7a1.32 1.32 0 0 1 0 2.63m-.95 2.82c0-.54.43-.98.95-.98s.95.44.95.98v3.83c0 .54-.43.98-.95.98a.96.96 0 0 1-.95-.98z"></path>');function Kv(t){Ze(t,{testId:"info-icon",children:(e,i)=>{var o=iT();b(e,o)},$$slots:{default:!0}})}var oT=M('<div class="menu-item-value-wrapper s-1w"><!></div>'),nT={hash:"s-1w",code:".menu-item-value-wrapper.s-1w{line-height:normal}"};function qv(t,e){B(e,!0),q(t,nT);let[i,o]=Re(),r=()=>x(u,"$currentQuality$",i),a=()=>x(m,"$availableQualities$",i),l=()=>x(p,"$isAutoQualityEnabled$",i),d=()=>x(f,"$isMobile$",i),s=ve(),u=s.state.currentQuality$,m=s.state.availableQualities$,p=s.state.isAutoQualityEnabled$,f=s.ui.isMobile,$=v(()=>Jb({quality:r(),availableQualities:a(),isAutoQualityEnabled:l()}));var y=oT(),_=T(y);rl(_,{get quality(){return r()},get label(){return n($)},get isMobile(){return d()}}),w(y),b(t,y),F(),o()}var sT={"quality-settings":({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?G("auto_quality_option"):e)||"";return{id:"quality-settings",type:"OPEN_SUB_MENU",ariaLabel:G("aria_label_menu_quality",{actual:o}),icon:pc,label:G("menu_quality"),value:e,valueComponent:qv,weight:is["quality-settings"],children:i?"quality-settings":"quality-other-settings"}},"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:G("aria_label_submenu_traffic_saving"),icon:Fv,label:G("menu_traffic_saving"),enabled:t,tooltipText:G("traffic_saving_helper_text"),maxTooltipWidth:175}),"audio-languages-settings":({currentAudioStream:t,availableAudioStreams:e})=>{let i=yp(t,e);return{id:"audio-languages-settings",weight:is["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:G("aria_label_menu_audio_languages",{actual:i}),icon:Hv,label:G("menu_audio_languages"),value:i,children:"audio-languages"}},"playback-rate-settings":({availablePlaybackRates:t,currentPlaybackRate:e})=>{var o;let i=((o=t.find(r=>r.value===e))==null?void 0:o.displayValue)||"";return{id:"playback-rate-settings",weight:is["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:G("aria_label_menu_rate",{actual:i}),icon:Uv,label:G("menu_playback_rate"),value:`${e}x`,children:"playback-rate"}},"subtitles-settings":({currentSubtitle:t})=>({id:"subtitles-settings",weight:is["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:G("aria_label_menu_subtitle",{actual:t.displayValue}),icon:la,label:G("subtitles_caption"),value:t.displayValue,children:"subtitles"}),download:({onDownloadClick:t})=>({id:"download",weight:is.download,type:"CLICK",onClick:t,label:G("download_video_caption"),ariaLabel:G("aria_label_menu_download"),icon:zv}),"show-support":({onReportProblemClick:t})=>({id:"show-support",weight:is.report,type:"CLICK",onClick:t,label:G("menu_report"),ariaLabel:`${G("menu_report")}. ${G("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:G("menu_copy_debug"),ariaLabel:G("menu_copy_debug"),icon:xp,isHiddenFor:["desktop"]}),"save-trace-info":({onSaveTraceDataClick:t})=>({id:"save-trace-info",weight:is["save-trace-info"],type:"CLICK",onClick:t,label:G("menu_save_debug"),ariaLabel:G("menu_save_debug"),icon:xp,isHiddenFor:["desktop"]}),"debug-info":({toggleShowDebugInfo:t})=>({id:"debug-info",weight:is["debug-info"],type:"CLICK",onClick:t,ariaLabel:G("aria_label_menu_debug_overlay"),label:G("menu_debug_overlay"),icon:Kv,isHiddenFor:["desktop"]})},s$=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(r=>sT[r](e)),...i.map(r=>jt(Ie({},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 lT=(t,e)=>{Ju(t,e)},dT=M('<div><div> </div> <div class="close s-v"></div></div>'),cT=M('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),uT=M("<div><!> <!></div>"),pT={hash:"s-v",code:'.settings-menu-container.mobile.s-v{width:100%;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.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 Bc(t,e){B(e,!0),q(t,pT);let[i,o]=Re(),r=()=>x(Be,"$settingsMenuVisible",i),a=()=>x(ot,"$settingsMenuOpenedByKeyboard",i),l=()=>x(Fe,"$debugPanelVisible",i),d=()=>x(Ae,"$isMobile",i),s=()=>x(ke,"$playerSize",i),u=()=>x(De,"$hasMpegSources$",i),m=()=>x(Pe,"$mobileNotReportControlHidden$",i),p=()=>x(J,"$autoQualityLimitingAvailable$",i),f=()=>x(j,"$availableSubtitlesList$",i),$=()=>x(Ue,"$isLiveWithPlaybackSpeed",i),y=()=>x(ne,"$availableAudioStreams$",i),_=()=>x(We,"$availablePlaybackRates$",i),S=()=>x(ue,"$currentAudioStream$",i),C=()=>x(k,"$currentPlaybackRate$",i),I=()=>x(Je,"$trafficSavingEnabled",i),N=()=>x(_e,"$currentQuality$",i),P=()=>x(Ne,"$isAutoQualityEnabled$",i),E=()=>x(Te,"$currentSubtitle$",i),A=()=>x(mt,"$additionalSettingsMenuItems$",i),Q=()=>x(pe,"$isAutoQualityAvailable$",i),H=()=>x(xe,"$availableQualities$",i),z=()=>x(ye,"$highQualityEnabled",i),Y=g(e,"ref",15,void 0),le=g(e,"playerControlsHeight",3,0),X=ci({}),re=ci({}),Z=ve(),we=Nt(),ue=Z.state.audioStream$,ne=Z.state.availableAudioStreams$,_e=Z.state.currentQuality$,xe=Z.state.availableQualities$,J=Z.state.autoQualityLimitingAvailable$,Ne=Z.state.isAutoQualityEnabled$,pe=Z.state.isAutoQualityAvailable$,k=Z.state.currentPlaybackRate$,We=Z.state.availablePlaybackRates$,Te=Z.state.currentSubtitle$,j=Z.state.availableSubtitlesList$,ie=Z.state.canDownload,De=Z.state.hasMpegSources$,Be=Z.ui.settingsMenu.visible$,ot=Z.ui.settingsMenu.openedByBtnKeyboard$,U=Z.ui.settingsMenu.ref$,Ae=Z.ui.isMobile,Pe=Z.ui.mobileNotReportControlHidden$,Ue=Z.state.canChangePlaybackSpeed$,Je=Z.state.trafficSavingEnabled$,ye=Z.state.highQualityEnabled$,ke=Z.ui.playerSize,Fe=Z.ui.debugPanelVisible,Ft=Z.state.isInteractiveTime$,mt=Z.ui.additionalSettingsMenuItems$,Ht=Z.ui.t,lt=Z.actions.internal.downloadVideo,Ct=Z.actions.internal.closeSettingsMenu,oi=Z.actions.internal.openSettingsSubMenu,Ot=Z.actions.internal.closeSettingsSubMenu,$e=K(!1),be=K(void 0),ee=jb();Oe(()=>{!r()&&ee.current&&(Ot(re[ee.current]),ee.popAllSubMenus())}),Oe(()=>{r()||O(be,void 0)}),Oe(()=>{!ee.current&&n(be)&&ab(X,n(be))}),Oe(()=>{Y()&&U.set(Y())});function nt(It){return gt(this,null,function*(){var W;ee.pushSubMenu(It),yield yo(),oi(It,re[It]);let Wt=(W=Y())==null?void 0:W.firstElementChild;Wt&&um(Wt)})}function fe(It){var Wt;It==null||It.stopPropagation(),a()||(Wt=e.returnFocus)==null||Wt.call(e),Ct(),O($e,!1)}function Me(It,Wt){Z.actions.internal.setQuality(It,{appliesTo:Wt}),fe()}function xt(It){Z.actions.internal.setAudioStream(It),fe()}function Lt(It,Wt){Z.actions.internal.setTrafficSavingEnabled(It,Wt),we.features.qualityDetailsSubMenuEnabled&&fe()}function pt(It,Wt){Z.actions.internal.setHighQualityEnabled(It,Wt),fe()}function ce(It){Z.actions.internal.setPlaybackRate(It),fe()}function ze(It){Z.actions.internal.setSubtitle(It),fe()}function Ye(){lt()}function dt(){(0,Dc.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),Z.actions.internal.reportProblem(),Z.actions.internal.pause()}function Ut(){Gl(Z.actions.internal.getDebugTextData())}let zt=()=>{let It=Z.actions.internal.getTraceTextData(),Wt=new Blob([...It],{type:"application/json"}),W=window.URL.createObjectURL(Wt);Oa(W,"vk_player_trace_info","json")};function ri(){Fe.set(!l())}function wi(){O($e,!0)}function Zi(){O($e,!1)}function Dt(){return d()?`max-height: ${Math.round(s().height*.6)}px`:`max-height: ${s().height-32-le()}px; overflow: auto;`}let fi=v(()=>ie&&u()&&!m()),bi=v(()=>we.features.trafficSaving&&!m()&&p()&&!we.features.qualityDetailsSubMenuEnabled),bt=v(()=>f().length>0&&!m()),Jt=v(()=>!!$()&&!m()),Ci=v(()=>we.features.audioLanguages&&y().length>=2&&!m()),Ji=v(()=>!m());Rt(()=>Ft.subscribe(It=>{It&&!d()&&!n($e)&&!a()&&fe()}));let ti=v(()=>{let It=[n(Ji)&&"quality-settings",n(Ci)&&"audio-languages-settings",n(Jt)&&"playback-rate-settings",n(bt)&&"subtitles-settings",n(bi)&&"traffic-saving-switch",n(fi)&&"download",we.showSupport&&"show-support","copy-data",we.features.saveTraceInfoToFile&&"save-trace-info","debug-info"].filter(Wt=>!!Wt);return s$({items:It,context:{qualityDetailsSubMenuEnabled:we.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:_(),currentAudioStream:S(),availableAudioStreams:y(),currentPlaybackRate:C(),selectPlaybackRate:ce,trafficSavingEnabled:I(),toggleTrafficSaving:Lt,currentQuality:N()||Dc.VideoQuality.INVARIANT,isAutoQualityEnabled:P()||!1,currentSubtitle:E(),isMobile:d(),onDownloadClick:Ye,onCopyDataClick:Ut,onReportProblemClick:dt,onSaveTraceDataClick:zt,toggleShowDebugInfo:ri},additionalSettingsMenuItems:A()})}),kt=v(()=>r$({subMenuId:ee.current,context:{availablePlaybackRates:_(),selectPlaybackRate:ce,trafficSavingEnabled:I(),toggleTrafficSaving:Lt,currentQuality:N()||Dc.VideoQuality.INVARIANT,isAutoQualityEnabled:P()||!1,isAutoQualityAvailable:Q()||!1,availableQualities:H(),highQualityEnabled:z(),toggleHighQuality:pt,availableAudioStreams:y(),availableSubtitlesList:f(),closeSettingsMenu:Ct,currentAudioStream:S(),isMobile:d(),selectAudioLanguage:xt,selectQuality:Me,selectSubtitle:ze}}));var Ke=uT();let Ii;var xo=T(Ke);{var Io=It=>{var Wt=cT();let W;Wt.__keydown=[lT,Ct];var Mt=T(Wt);{var di=Xt=>{var st=dT();let Ui;var zi=T(st),on=T(zi,!0);w(zi);var Eo=L(zi,2);Eo.__click=fe,w(st),D((Wi,eo)=>{Ui=se(st,1,"item header s-v",null,Ui,Wi),me(on,eo)},[()=>({mobile:d()}),()=>Ht("submenu_settings")]),b(Xt,st)};R(Mt,Xt=>{d()&&Xt(di)})}var ct=L(Mt,2);let Tt;Ti(ct,21,()=>n(ti),Xt=>Xt.id,(Xt,st)=>{var Ui=Le(),zi=de(Ui);{var on=Wi=>{Pv(Wi,{get isMobile(){return d()},get id(){return n(st).id},get icon(){return n(st).icon},get label(){return n(st).label},get ariaLabel(){return n(st).ariaLabel},get value(){return n(st).value},get valueComponent(){return n(st).valueComponent},onClick:()=>{nt(n(st).children),O(be,n(st).id,!0)},get ref(){return X[n(st).id]},set ref(eo){X[n(st).id]=eo}})},Eo=(Wi,eo)=>{{var Nr=lo=>{let Ai=v(()=>`${n(st).id}-menu-item`);Av(lo,{get isMobile(){return d()},get id(){return n(Ai)},get onClick(){return n(st).onClick},get icon(){return n(st).icon},get label(){return n(st).label},get ariaLabel(){return n(st).ariaLabel},closeSettings:fe})},wo=(lo,Ai)=>{{var nn=rn=>{let Nn=v(()=>`${n(st).id}-menu-item`);Mv(rn,{get isMobile(){return d()},get id(){return n(Nn)},get onClick(){return n(st).onClick},get icon(){return n(st).icon},get label(){return n(st).label},get ariaLabel(){return n(st).ariaLabel},get enabled(){return n(st).enabled},get tooltipText(){return n(st).tooltipText},get maxTooltipWidth(){return n(st).maxTooltipWidth}})};R(lo,rn=>{n(st).type==="SWITCH"&&rn(nn)},Ai)}};R(Wi,lo=>{n(st).type==="CLICK"?lo(Nr):lo(wo,!1)},eo)}};R(zi,Wi=>{n(st).type==="OPEN_SUB_MENU"?Wi(on):Wi(Eo,!1)})}b(Xt,Ui)}),w(ct),Xe(ct,Xt=>Y(Xt),()=>Y()),w(Wt),D((Xt,st,Ui)=>{W=se(Wt,1,"settings-menu menu s-v",null,W,Xt),Tt=se(ct,1,"items",null,Tt,st),Qe(ct,Ui)},[()=>({desktop:!d(),mobile:d(),hidden:!!ee.current}),()=>({mobile:d()}),Dt]),_t("mouseenter",Wt,wi),_t("mouseleave",Wt,Zi),b(It,Wt)};R(xo,It=>{r()&&It(Io)})}var bn=L(xo,2);Ti(bn,17,()=>n(kt),It=>It.id,(It,Wt)=>{let W=v(()=>{var Mt;return(Mt=n(Wt).minWidth)!=null?Mt:137});Ev(It,{get isMobile(){return d()},get playerControlsHeight(){return le()},get returnFromSubMenu(){return ee.popSubMenu},get id(){return n(Wt).id},get title(){return n(Wt).title},get closeSettingsMenu(){return Ct},openSubMenuList:nt,get items(){return n(Wt).items},get minWidth(){return n(W)},get refMenuItems(){return X},get listRef(){return re[n(Wt).id]},set listRef(Mt){re[n(Wt).id]=Mt}})}),w(Ke),D(It=>Ii=se(Ke,1,"settings-menu-container s-v",null,Ii,It),[()=>({mobile:d(),hidden:!r()})]),b(t,Ke),F(),o()}it(["keydown","click"]);var fT=M('<button class="btn s-1g"> </button>'),mT={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 Qv(t,e){q(t,mT);var i=fT();i.__click=function(...r){var a;(a=e.onClick)==null||a.apply(this,r)};var o=T(i,!0);w(i),D(()=>me(o,e.label)),b(t,i)}it(["click"]);var vT=M('<div class="container s-w"><div class="notification s-w"><div><p class="description s-w"><!></p> <!></div> <!></div></div>'),gT={hash:"s-w",code:".container.s-w{display:flex;justify-content:center;left:0;pointer-events:none;position:absolute;right:0;top:20px}.notification.s-w{background:var(--notification-bg);border-radius:var(--notification-radius);display:inline-flex;gap:10px;padding:9px 14px 10px 12px;pointer-events:auto}.description.s-w{font-size:13px;line-height:16px;margin:0;white-space:pre}"};function Fc(t,e){B(e,!0),q(t,gT);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=Nt(),{ui:{t:r}}=ve(),a=r(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var l=vT(),d=T(l),s=T(d),u=T(s),m=T(u);Oc(m,{get message(){return a}}),w(u);var p=L(u,2);{var f=y=>{let _=v(()=>r("slow_video_notification_button"));Qv(y,{get label(){return n(_)},get onClick(){return e.onSelectAutoQuality}})};R(p,y=>{o||y(f)})}w(s);var $=L(s,2);Ls($,{get onClick(){return e.onClose}}),w(d),w(l),Zr(3,d,()=>bs,()=>({duration:i})),b(t,l),F()}var Hc=require("@vkontakte/videoplayer-shared/es2015");var sl="annotation",wp=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",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))}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)||{},m=new MutationObserver($=>$.forEach(()=>{let y=Vs(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,Hc.isIntersecting)(C,y)))})}));m.observe(d,{childList:!0,subtree:!0}),l.observer=m;let p=new Hc.Subscription;o.forEach($=>{s&&p.add(s[$].subscribe(y=>{let _=u==null?void 0:u[$];y&&y.isDisplayed?_==null||_.set((0,Hc.isIntersecting)(y,Vs(d,this.shadowRootContainer))):_==null||_.set(!1)}))}),l.subs=p})}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,m;let i=this.slots.get(e);if(!i)return;let{rootElement:o,observer:r,observerForFindingSlotElement:a,subs:l,options:{controlsBehaviour:d,hideAllControls:s}}=i;o&&o.remove(),[r,a].forEach(p=>p==null?void 0:p.disconnect()),l==null||l.unsubscribe(),this.slots.delete(e),s&&((u=this.store)==null||u.ui.isControlsAvailable.set(!0)),(m=d==null?void 0:d.controlsToObserve)==null||m.forEach(p=>{var f,$;($=(f=this.store)==null?void 0:f.ui.hiddenControls[p])==null||$.set(!1)})}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}haveSlots(){return this.slots.size>0}};var hT=M('<div class="container s-4"><!></div>'),_T={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 Uc(t,e){B(e,!0),q(t,_T);let i=g(e,"reversed",3,!1);var o=Le(),r=de(o);Is(r,()=>e.Icon,a=>{var l=hT(),d=T(l);Bi(d,()=>e.Icon,(s,u)=>{u(s,{get size(){return"48"},get reversed(){return i()}})}),w(l),D(()=>Qe(l,`animation-duration: ${e.duration}ms`)),b(a,l)}),b(t,o),F()}var Gv=require("@vkontakte/videoplayer-core/es2015"),bT=M('<div class="container s-15"><!></div>'),$T={hash:"s-15",code:".container.s-15{align-items:center;display:flex;height:100%;justify-content:center;pointer-events:none;position:absolute;width:100%}"};function Yv(t,e){B(e,!0),q(t,$T);let[i,o]=Re(),r=()=>x(s,"$playbackState$",i),a=()=>x(m,"$previewTrackActive",i),l=()=>x(p,"$previewTrackDragInProgress",i),d=()=>x(u,"$isPlaying$",i),{state:{playbackState$:s,isPlaying$:u},ui:{previewTrackActive:m,previewTrackDragInProgress:p}}=ve(),{features:{playbackStatusShow:f},playbackStatusAnimationDuration:$}=Nt(),y=0,_=K(null),S=K(!1);Oe(()=>{r()===Gv.PlaybackState.PLAYING?O(_,Mn,!0):r()===Gv.PlaybackState.PAUSED?O(_,Ns,!0):O(_,null)}),Oe(()=>{if(!(!f||a()||l()))return y=window.setTimeout(()=>{y=0,O(_,null)},$),()=>{y&&(window.clearTimeout(y),y=0)}}),Oe(()=>{d()&&!n(S)&&(O(S,!0),O(_,null))});var C=Le(),I=de(C);{var N=P=>{var E=bT(),A=T(E);Uc(A,{get duration(){return $},get Icon(){return n(_)}}),w(E),b(P,E)};R(I,P=>{n(_)&&f&&P(N)})}b(t,C),F(),o()}var yT=M('<div><div data-testid="video-container"></div></div>'),xT={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 al(t,e){B(e,!0),q(t,xT);let[i,o]=Re(),r=()=>x(m,"$rotateAlpha",i),a=()=>x(p,"$playerSize",i),l=()=>x(u,"$playerPhase",i),d=()=>x(f,"$isPlaying$",i),s=g(e,"videoContainer",15),{playerPhase:u,ui:{rotateAlpha:m,playerSize:p},state:{isPlaying$:f}}=ve(),{isSmoothVideoRotate:$}=Nt(),y=v(()=>s()&&r()%180?a().height/a().width:1);var _=yT();let S;_.__contextmenu=function(...N){var P;(P=e.onContextMenu)==null||P.apply(this,N)},_.__mousedown=function(...N){var P;(P=e.onMouseDown)==null||P.apply(this,N)},_.__mouseup=function(...N){var P;(P=e.onMouseUp)==null||P.apply(this,N)},_.__click=function(...N){var P;(P=e.onClick)==null||P.apply(this,N)},_.__dblclick=function(...N){var P;(P=e.onDblClick)==null||P.apply(this,N)};var C=T(_);let I;Xe(C,N=>s(N),()=>s()),w(_),D((N,P)=>{S=se(_,1,"video-wrapper s-c",null,S,N),I=se(C,1,"video-container s-c",null,I,P),Qe(C,`transform: rotate(${r()}deg) scale(${n(y)})`),Ve(C,"data-is-playing",d())},[()=>({hidden:l()!=="video",nocursor:e.hideCursor}),()=>({"fast-rotate":!$})]),b(t,_),F(),o()}it(["contextmenu","mousedown","mouseup","click","dblclick"]);var wT=M('<div><span class="text s-16"> </span> <!></div>'),ST={hash:"s-16",code:".root.s-16{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-16,.root.visible.s-16{transform:translateX(-50%)}.root.visible.s-16{opacity:1;visibility:visible}.text.s-16{font-size:13px;font-weight:600;line-height:16px}"};function jv(t,e){B(e,!0),q(t,ST);let{ui:{t:i}}=ve();var o=wT();let r;var a=T(o),l=T(a,!0);w(a);var d=L(a,2);Lc(d,{get size(){return"16"},fill:"currentColor"}),w(o),D((s,u)=>{r=se(o,1,"root s-16",null,r,s),me(l,u)},[()=>({visible:e.isVisible}),()=>i("double_forward_label")]),b(t,o),F()}var TT=M('<div class="container s-18" role="button" data-testid="preview-track-overlay"><div class="icon s-18"><!></div></div>'),CT={hash:"s-18",code:".container.s-18{background-color:rgba(0,0,0,.48);cursor:pointer;height:100%;position:absolute;width:100%}.container.s-18,.icon.s-18{align-items:center;display:flex;justify-content:center}.icon.s-18{background-color:#00000073;border-radius:100%;height:64px;transition:transform .2s;transition-timing-function:ease-out;width:64px;will-change:transform}.container.s-18:hover .icon:where(.s-18){transform:scale(1.15)}"};function Xv(t,e){B(e,!1),q(t,CT);let o=ve().actions.internal.closePreviewTrack,r=200,a=u=>{u.stopPropagation(),o()};To();var l=TT();l.__click=a;var d=T(l),s=T(d);return Mn(s,{get size(){return"32"}}),w(d),w(l),Zr(3,l,()=>bs,()=>({duration:r})),b(t,l),Rf(e,"handleClick",a),F({handleClick:a})}it(["click"]);var IT=M('<div class="container s-17"><div class="notification s-17"><span class="text s-17"> </span></div></div>'),ET={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){B(e,!1),q(t,ET);let{ui:{t:i}}=ve();To();var o=IT(),r=T(o),a=T(r),l=T(a,!0);w(a),w(r),w(o),D(d=>me(l,d),[()=>i("preview_track_notification_text")],Cn),Zr(3,r,()=>bs,()=>({duration:340})),b(t,o),F()}var PT=(t,e,i,o,r,a)=>{if(t.stopPropagation(),e()||o()){a();return}},kT=M("<div><!></div>"),AT=M('<div class="spherical-video-icon s-8"><!></div>'),LT=M("<div><!></div>"),MT=M('<div class="settings-menu s-8"><!></div>'),VT=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),RT=M("<!> <!> <!>",1),NT=M('<div class="blocked s-8"></div>'),OT=M('<div class="player-wrapper s-8"><!> <div class="overlay-container"></div></div> <!>',1),DT={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){B(e,!0),q(t,DT);let[i,o]=Re(),r=()=>x(ui,"$notificationsToShow$",i),a=()=>x(fi,"$playerPhase",i),l=()=>x(xo,"$isLoaderVisible",i),d=()=>x(wi,"$adPlaybackState",i),s=()=>x(di,"$crashed",i),u=()=>x(Wi,"$isInteractiveTime$",i),m=()=>x(Ci,"$settingsMenuVisible",i),p=()=>x(eo,"$isInteractiveExpectation$",i),f=()=>x(Jt,"$controlsVisible",i),$=()=>x(wo,"$touched",i),y=()=>x(Dr,"$graphIsOpened$",i),_=()=>x(bi,"$isFullscreen",i),S=()=>x($s,"$autoplayNextEnabled$",i),C=()=>x(Wt,"$postrollPassed",i),I=()=>x(Io,"$isEnded$",i),N=()=>x(zn,"$cursorInside",i),P=()=>x(or,"$isControlsAvailable",i),E=()=>x($n,"$doubleForwardOn$",i),A=()=>x(wr,"$fakeIsPlaying$",i),Q=()=>x(Cr,"$bottomNoSmooth",i),H=()=>x(rn,"$interactiveTimeIndicator",i),z=()=>x(Ui,"$playerSize",i),Y=()=>x(zi,"$is3DVideo",i),le=()=>x(On,"$doubleForwardAvailable$",i),X=()=>x(Ke,"$contextMenuVisible$",i),re=()=>x(ri,"$playbackState$",i),Z=()=>x(lo,"$hotKeyMapData",i),we=()=>x(ti,"$scrubbingInProgress",i),ue=()=>x(kt,"$volumeChangingInProgress",i),ne=()=>x(bn,"$chromecastConnected$",i),_e=()=>x(yn,"$controlsTimeoutActive",i),xe=()=>x(Ji,"$settingsMenuOpenedByKeyboard",i),J=()=>x(ls,"$contextMenuOpenedByKeyboard$",i),Ne=()=>x(Pi,"$contextMenuOpenedByHotKey$",i),pe=()=>x(je,"$contextMenuButtonRef$",i),k=()=>x(qo,"$contextMenuLastActiveElem$",i),We=()=>x(bt,"$isFullscreenOpenedByKeyboard",i),Te=()=>x(zt,"$language$",i),j=()=>x(dn,"$previewTrackActive$",i),ie=()=>x(on,"$icon3DVideoVisible",i),De=()=>x(It,"$chromecastDeviceName$",i),Be=()=>x(Xt,"$currentSubtitle$",i),ot=()=>x(st,"$currentSubtitleCaptions$",i),U=()=>x(Zi,"$position$",i),Ae=()=>x(Dt,"$duration$",i),Pe=()=>x(W,"$isLive$",i),Ue=()=>x(Mt,"$isPlaying$",i),Je=()=>x(ir,"$contextMenuPosition$",i),ye=()=>x(Uo,"$previewTrackNotificationVisible$",i),ke=()=>x(Ai,"$showHotKeyMap",i),Fe=()=>x(Ii,"$debugPanelVisible",i),Ft=()=>x(ns,"$userActionsDisabled$",i),mt=g(e,"videoContainer",15),Ht=g(e,"adsSlotId",3,void 0),lt=g(e,"adsParams",3,void 0),Ct=g(e,"adsAutoplayParam",3,void 0),oi=g(e,"duration",3,void 0),Ot=g(e,"logoTargetUrl",3,""),$e=g(e,"showNextPrevButtons",3,!1),be=g(e,"nextButtonActive",3,!1),ee=g(e,"prevButtonActive",3,!1),nt=g(e,"endScreenVideoTitle",3,void 0),fe=g(e,"endScreenVideoThumb",3,void 0),Me=g(e,"isOneVideoPlaylist",3,!1),xt=g(e,"shadowRootContainer",3,void 0),Lt=g(e,"outerContainerRef",3,void 0),pt=g(e,"playerStarted",3,!1),ce=g(e,"fullScreenTarget",3,void 0),ze=g(e,"showMiniTimer",3,!1),Ye=g(e,"showEndScreen",3,!0),dt=g(e,"keyboardControls",15),Ut=e.store.getLogger().createComponentLog("Root component"),zt=e.store.interfaceLanguage$,ri=e.store.state.playbackState$,wi=e.store.ads.playbackState,Zi=e.store.state.positionWithScrubbing$,Dt=e.store.state.duration$,fi=e.store.playerPhase,bi=e.store.ui.isFullscreen,bt=e.store.ui.isFullscreenOpenedByKeyboard,Jt=e.store.ui.controlsVisible,Ci=e.store.ui.settingsMenu.visible$,Ji=e.store.ui.settingsMenu.openedByBtnKeyboard$,ti=e.store.ui.scrubbingInProgress,kt=e.store.ui.volumeChangingInProgress,Ke=e.store.ui.contextMenu.visible$,Ii=e.store.ui.debugPanelVisible,xo=e.store.state.isLoaderVisible,Io=e.store.state.isEnded$,bn=e.store.state.chromecastConnected$,It=e.store.state.chromecastDeviceName$,Wt=e.store.ads.postrollPassed,W=e.store.state.isLive$,Mt=e.store.state.isPlaying$,di=e.store.state.crashed$,ct=e.store.webApi.annotationsApi,Tt=e.store.webApi.pictureInPictureApi,Xt=e.store.state.currentSubtitle$,st=e.store.state.currentSubtitleCaptions$,Ui=e.store.ui.playerSize,zi=e.store.ui.is3DVideo,on=e.store.ui.icon3DVideoVisible,Eo=e.store.state.isInteractive,Wi=e.store.state.isInteractiveTime$,eo=e.store.state.isInteractiveExpectation$,Nr=e.store.state.hasInteractiveBranches,wo=e.store.ui.touched,lo=e.store.ui.modals.hotKeyMap.data,Ai=e.store.ui.modals.hotKeyMap.show,nn=e.store.ui.overlayContainer$,rn=e.store.ui.controls.interactiveTimeIndicator,Nn=e.store.state.showInteractiveTimeIndicator,ir=e.store.ui.contextMenu.position$,Or=e.store.actions.internal.setQuality,os=e.store.actions.internal.closeSettingsMenu,$s=e.store.ui.autoplayNextEnabled$,ns=e.store.ui.userActionsDisabled,or=e.store.ui.isControlsAvailable,xr=e.store.ui.videoTitleInfo,$n=e.store.ui.doubleForwardOn$,On=e.store.ui.doubleForwardAvailable$,Uo=e.store.ui.previewTrackNotificationVisible,Dn=e.store.actions.internal.getVideoElement,nr=e.store.actions.internal.checkFullscreenSupport,{fakeIsPlaying$:wr,notifications$:Sr,graphIsOpened$:Dr}=Co(),co=K(void 0),Br=K(void 0),Bn=K(void 0),Fn=K(void 0),uo,Fr,Hn;lo.set(tb());let{closeNotification:vt,notificationsToShow$:ui}=Sr,Tr=v(()=>!!r().slow_video),rr=()=>vt("slow_video"),sr=v(()=>(a()==="video"&&l()||a()==="ads"&&d()==="inactive")&&!s()),sn=K(void 0),Cr=ae(!1),an,yn=ae(!1),Un=ae(),zn=ae(!1),zo=K(!1),Po=K(!1),ar=K(!1),ko=K(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),Ki=v(()=>u()&&!m()&&!(n(zo)||n(Po))&&!(n(ar)&&!p())),Wn=!0,lr=v(()=>e.uiConfig.features.thumbTimer&&ze()&&a()==="video"&&!f()&&!s()&&!Eo&&(e.uiConfig.hideThumbTimerAfterTouch&&!$()||!e.uiConfig.hideThumbTimerAfterTouch)),Hr=v(()=>a()==="video"&&!y()&&_()),Kn=K(!1),Ao=v(()=>(Ye()||e.showAutoplayNext&&S())&&!!nt()&&!!fe()&&(e.showAds&&C()||!e.showAds)&&I()&&!s()&&!n(Kn)),Ur=v(()=>N()&&!(f()||n(Ao))&&!u()&&P()&&!E()),wt=K(!1),Et=v(()=>A()!==null),{toggle:po}=wr,to=!1,Vi=null;Tt==null||Tt.setContext(Cd());let xn=()=>{e.autoplay&&!Eo&&e.uiConfig.controls.showOnStartupAtAutoplay&&mi(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:xn});let So=()=>{window.clearTimeout(uo),yn.set(!1)},qn=()=>{window.clearTimeout(Fr),Un.set(null)},mi=he=>{So(),yn.set(!0),uo=window.setTimeout(()=>yn.set(!1),he);let St=he-100;an=window.setTimeout(()=>{Q()&&Cr.set(!1)},St>0?St:he)},zr=(he,St)=>{qn(),Un.set(St),Fr=window.setTimeout(()=>Un.set(null),he)},dr=zi.subscribe(he=>{on.set(he),he&&(window.clearTimeout(Hn),Hn=window.setTimeout(()=>on.set(!1),e.uiConfig.controls.hide360IconTimeout))}),rs=()=>gt(null,null,function*(){var St,ni,Si,Ri;let he=ia();if(he){let pi=tc(),si=Lo();he=pi===si||pi===xt()}if(he){mi(e.uiConfig.controls.hideTimeoutFullscreen);try{yield Tt==null?void 0:Tt.exit()}catch(pi){Ut({message:String(pi)})}}bi.set(he),e.store.getAdmanWrapper().setFullscreen(he),_()?(ni=(St=e.store.callbacks)==null?void 0:St.onFullscreenEnter)==null||ni.call(St):(Ri=(Si=e.store.callbacks)==null?void 0:Si.onFullscreenExit)==null||Ri.call(Si)}),ss=he=>{let{width:St,height:ni}=he.target;Ui.set({width:St,height:ni})},Wr=()=>{let{width:he,height:St}=n(co).getBoundingClientRect();Ui.set({width:he,height:St})};Rt(()=>{var St;return Xu(rs),e.uiConfig.features.annotationsInside&&(ct==null||ct.init(n(co))),Ha(Tt)&&(Tt==null||Tt.assignPlayerContainer(n(co)),Tt==null||Tt.setExternalEventHandlers({resize:ss,leavepictureinpicture:Wr})),e.interactiveContainer&&((St=mt().parentElement)==null||St.insertBefore(e.interactiveContainer,mt().nextSibling)),()=>{window.clearTimeout(uo),window.clearTimeout(an),window.clearTimeout(Fr),window.clearTimeout(Hn),dr(),Tt==null||Tt.dispose().catch(ni=>{Ut({message:String(ni)})}),Zu(rs)}});let Lo=()=>{let he=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Lt()?n(co):Lt(),St=he.getRootNode(),ni=St instanceof ShadowRoot?St.host:St,Si=ce()instanceof HTMLElement&&ce().contains(ni);return e.uiConfig.allowChangingFullscreenTarget&&ce()&&Si?ce():he},ln=()=>{Ke.set(!1)},fo=()=>{os(),ln()},Ir=()=>gt(null,null,function*(){if(!nr()){Ut({message:"fullscreen disabled"});return}ln(),ia()?(yield ju(document),Ut({message:"exit fullscreen"})):(Ut({message:"request fullscreen"}),yield Yu(Lo()))}),Wo=he=>{y()||(he.preventDefault(),Ke.set(!0),ir.set({left:he.clientX,top:he.clientY}))};function as(){zn.set(!0),Eo||mi(e.uiConfig.controls.hideTimeoutCursor)}function qe(he){var Ri,pi;let{relatedTarget:St}=he,Si=!!(St&&((Ri=n(Bn))!=null&&Ri.contains(St)))&&((pi=dt())==null?void 0:pi.isFocused());!Eo&&!Si&&(Cr.set(!0),mi(e.uiConfig.controls.hideTimeoutCursor))}function Vt(){zn.set(!1),O(Po,!1),O(zo,!1),to=!1,e.store.actions.internal.releaseCamera(),mi(e.uiConfig.controls.hideTimeout),E()&&Sn()}function yi(he){return he?he.offsetTop+yi(he.offsetParent):0}function Mo(he){return he?he.offsetLeft+Mo(he.offsetParent):0}function Vo(he){if(H()&&Nn){let St=he.currentTarget,ni=yi(St),Si=Mo(St),Ri=he.pageX-Si,pi=he.pageY-ni,{left:si,bottom:ho,right:pn}=H(),fn=pn-si;return Ri>=si-fn&&pi<=ho+fn}}function Ko(he){if(n(co)){let St=yi(he.currentTarget),ni=z().height,Si=he.pageY-St;if(Vo(he)){O(Po,!1);return}Si<40?O(Po,!0):Si>ni-40?O(zo,!0):(O(Po,!1),m()||O(zo,!1))}}function mo(he){Ko(he),!n(Ki)&&!E()&&mi(e.uiConfig.controls.hideTimeoutCursor),Y()&&to&&Vi&&e.store.actions.internal.moveCameraFocusPX(Vi.clientX-he.clientX,Vi.clientY-he.clientY,he.timeStamp-Vi.timeStamp),Vi=he}let io=null,wn=()=>{io=window.setTimeout(()=>{e.store.actions.internal.changeDoubleForwardOn(!0),So()},e.uiConfig.doubleForwardActivationTime)},Sn=()=>{e.store.actions.internal.changeDoubleForwardOn(!1),io&&clearTimeout(io),io=null},vo=he=>{he.preventDefault(),he.button===0&&(to=!0,e.store.actions.internal.holdCamera(),le()&&wn()),!to&&mi(e.uiConfig.controls.hideTimeoutCursor)},Ro=he=>{he.preventDefault(),he.button===0&&(Vi=he,to=!1,e.store.actions.internal.releaseCamera()),!E()&&mi(e.uiConfig.controls.hideTimeoutCursor)},Qn=he=>{he.preventDefault(),Wn&&(Ut({message:"double click on video"}),Ir(),mi(e.uiConfig.controls.hideTimeoutCursor))},cr=he=>{var St;if(he.preventDefault(),E()){Sn();return}if(io&&Sn(),X()||m()){fo();return}if(!(I()&&!Nr)){if(n(Et))return po();if((St=dt())==null||St.focus(),!pt()){e.firstStart(),mi(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||re()!==Jv.PlaybackState.PLAYING)&&e.store.actions.internal.togglePlay(),mi(e.uiConfig.controls.hideTimeoutCursor)}},ur=he=>{fo(),wo.set(!0),mi(e.uiConfig.controls.hideTimeout),he&&zr(e.uiConfig.controls.hideHotKeyHelpers,he)},Gn=()=>{var he,St;fo(),(he=e.store.callbacks)!=null&&he.onOpenHotKeyMap?(St=e.store.callbacks)==null||St.onOpenHotKeyMap(Z()):Ai.update(ni=>!ni)},ys=()=>{wo.set(!0)},ls=e.store.ui.contextMenu.openedByBtnKeyboard$,je=e.store.ui.contextMenu.btnRef$,Gt=K(void 0),Pi=e.store.ui.contextMenu.openedByHotKey$,qo=e.store.ui.contextMenu.lastActiveElem$,dn=e.store.ui.previewTrackActive;Oe(()=>{nn.set(n(sn))}),Oe(()=>{O(ar,n(ko)&&re()!==Jv.PlaybackState.PLAYING,!0),n(ko)||Pt(()=>O(ko,!0))}),Oe(()=>{var St,ni;let he=(n(ar)||I()||m()||we()||ue()||ne()||_e())&&!n(Ki)&&(a()==="video"||a()==="ads")&&!s()&&P();Jt.set(he),!he&&!_e()&&e.uiConfig.returnFocusOnControlsHide&&((St=n(Bn))!=null&&St.contains(np()))&&((ni=dt())==null||ni.focus())}),Oe(()=>{!we()&&n(wt)&&!u()&&mi(e.uiConfig.controls.hideTimeoutCursor),Pt(()=>O(wt,we(),!0))}),Oe(()=>{n(Fn),m(),xe(),Pt(()=>lc(n(Fn),m(),xe()))}),Oe(()=>{n(Gt),X(),J(),Ne(),Pt(()=>{let he=J()||Ne();lc(n(Gt),X(),he)})}),Oe(()=>{let he=pe();he&&(X(),Pt(()=>Yl(he,X(),ls)))}),Oe(()=>{let he=k();he&&(X(),Pt(()=>sb(he,X(),Pi)))}),Oe(()=>{var he;!We()&&_()&&(Pt(()=>bt.set(!1)),(he=dt())==null||he.focus())}),Oe(()=>{y()&&fo()});let pr=K(void 0),cn=he=>{xr.set(er(Dn(),{title:n(pr)},"title",he))},Qo=(he,St)=>{var pi,si;let ni=(si=(pi=e.store.callbacks)==null?void 0:pi.uiInfo)==null?void 0:si.onUpcomingLiveViewStateChanged;if(!ni)return;let Si=!!St,Ri=Ie(Ie({},er(n(co),{upcomingLiveScreen:St},"upcomingLiveScreen",Si)),he);ni(Ri)};var Fs=OT();_t("blur",Ia,fo);var un=de(Fs);un.__mousemove=mo;var Hs=T(un);let pa=v(()=>a()==="ads"),fa=v(()=>n(Et)?po:void 0);Xe(bm(Hs,{startDoubleForwardActivationTimer:wn,stopDoubleForward:Sn,toggleFullscreen:Ir,hideContextMenu:fo,showHotKeyHelpers:ur,showKeyMap:Gn,get isAds(){return n(pa)},get fakePlayButtonHandler(){return n(fa)},get nextButtonActive(){return be()},get prevButtonActive(){return ee()},children:(he,St)=>{var ni=RT(),Si=de(ni);al(Si,{get hideCursor(){return n(Ur)},onClick:cr,onContextMenu:Wo,onMouseDown:vo,onMouseUp:Ro,onDblClick:Qn,get videoContainer(){return mt()},set videoContainer(si){mt(si)}});var Ri=L(Si,2);Ma(Ri,()=>"slot",!1,(si,ho)=>{no(si,()=>({name:sl}))});var pi=L(Ri,2);Is(pi,Te,si=>{var ho=VT(),pn=de(ho);let fn=v(()=>a()!=="thumb"||s()||Eo&&e.autoplay);ol(pn,{get hidden(){return n(fn)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart},onContextMenu:Wo,onClick:ln});var Li=L(pn,2);{var hd=He=>{Xv(He,{})};R(Li,He=>{j()&&He(hd)})}var cl=L(Li,2);Yv(cl,{});var Us=L(cl,2);jv(Us,{get isVisible(){return E()}});var ul=L(Us,2);{var pl=He=>{let $i=v(()=>{var No;return(No=e.live)==null?void 0:No.startTime});Rc(He,{get thumbUrl(){return e.thumbUrl},get startTime(){return n($i)},onUpcomingLiveViewStateChanged:Qo,onContextMenu:Wo,onClick:ln})};R(ul,He=>{a()==="LiveWaitingStart"&&He(pl)})}var Er=L(ul,2);{var ma=He=>{nl(He,{kind:"recover",get thumbUrl(){return e.thumbUrl},onContextMenu:Wo,onClick:ln})};R(Er,He=>{a()==="LiveWaitingRecover"&&He(ma)})}var zs=L(Er,2);{var Kr=He=>{nl(He,{kind:"record",get thumbUrl(){return e.thumbUrl},onContextMenu:Wo,onClick:ln})};R(zs,He=>{a()==="LiveWaitingRecord"&&He(Kr)})}var ds=L(zs,2);{var Ws=He=>{var $i=kT();let No;var ba=T($i);oc(ba,{get adsSlotId(){return Ht()},get adsParams(){return lt()},get adsAutoplayParam(){return Ct()},get duration(){return oi()},get adsExternalApi(){return e.adsExternalApi}}),w($i),D(Tn=>No=se($i,1,"ads-container s-8",null,No,Tn),[()=>({hidden:a()!=="ads"})]),b(He,$i)};R(ds,He=>{e.showAds&&pt()&&He(Ws)})}var fr=L(ds,2);{var fl=He=>{let $i=v(()=>!Ye()&&e.showAutoplayNext&&S());gm(He,{get title(){return nt()},get thumb(){return fe()},get isHide(){return n($i)},clickCloseIcon:()=>O(Kn,!0)})};R(fr,He=>{n(Ao)&&nt()&&fe()&&He(fl)})}var ml=L(fr,2);{var _d=He=>{let $i=v(()=>!f());xv(He,{get title(){return e.title},get isHidden(){return n($i)},onVisibilityChanged:cn,get ref(){return n(pr)},set ref(No){O(pr,No,!0)}})};R(ml,He=>{n(Hr)&&He(_d)})}var vl=L(ml,2);{var gl=He=>{let $i=v(()=>a()==="video"&&f());Mc(He,{get isShifted(){return n($i)}})};R(vl,He=>{Y()&&He(gl)})}var hl=L(vl,2);{var bd=He=>{var $i=AT(),No=T($i);ec(No,{}),w($i),b(He,$i)};R(hl,He=>{ie()&&He(bd)})}var va=L(hl,2);{var Pr=He=>{Vc(He,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return De()}})};R(va,He=>{ne()&&He(Pr)})}var at=L(va,2);{var ft=He=>{tl(He,{get shifted(){return f()},get captions(){return ot()},get position(){return U()},get playerSize(){return z()}})};R(at,He=>{Be().value!=="off"&&He(ft)})}var qi=L(at,2);{var Go=He=>{var $i=LT();$i.__contextmenu=Wo,$i.__click=[PT,X,Ke,m,Ci,fo];var No=T($i);il(No,{}),w($i),b(He,$i)};R(qi,He=>{s()&&He(Go)})}var Qi=L(qi,2);{var xi=He=>{let $i=v(()=>a()==="thumb"||a()==="LiveWaitingStart"||a()==="LiveWaitingRecover"||a()==="LiveWaitingRecord"),No=v(()=>a()==="ads"),ba=v(()=>e.canRewindLive&&Ae()!==0);Ac(He,{get bottomHidden(){return n($i)},get bottomNoSmooth(){return Q()},get showControls(){return f()},get isAds(){return n(No)},get canRewindLive(){return n(ba)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Ot()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return $e()},get nextButtonActive(){return be()},get prevButtonActive(){return ee()},get isOneVideoPlaylist(){return Me()},customFullscreenSupported:Wn,toggleFullscreen:Ir,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return n(Br)},set playerControlsWrapperRef(Tn){O(Br,Tn,!0)},get playerControlsRef(){return n(Bn)},set playerControlsRef(Tn){O(Bn,Tn,!0)}})};R(Qi,He=>{pt()&&He(xi)})}var Ni=L(Qi,2);{var ga=He=>{var $i=MT(),No=T($i);let ba=v(()=>{var Tn;return(Tn=n(Bn))==null?void 0:Tn.clientHeight});Bc(No,{get supportLink(){return e.supportLink},get playerControlsHeight(){return n(ba)},returnFocus:()=>{var Tn;return(Tn=dt())==null?void 0:Tn.focus()},get ref(){return n(Fn)},set ref(Tn){O(Fn,Tn,!0)}}),w($i),b(He,$i)};R(Ni,He=>{!ne()&&a()!=="ads"&&He(ga)})}var _l=L(Ni,2);let Hp=v(()=>!n(lr));sc(_l,{get isLive(){return Pe()},get isHidden(){return n(Hp)},get isPlaying(){return Ue()},get position(){return U()},get duration(){return Ae()}});var Jc=L(_l,2);$v(Jc,{get data(){return Un}});var eu=L(Jc,2);mm(eu,{get supportLink(){return e.supportLink},returnFocus:()=>{var He;return(He=dt())==null?void 0:He.focus()},get visible(){return X()},get playerContainerRef(){return n(co)},get position(){return Je()},get menuElementRef(){return n(Gt)},set menuElementRef(He){O(Gt,He,!0)}});var tu=L(eu,2);{var Up=He=>{Fc(He,{onClose:rr,onSelectAutoQuality:()=>{Or("auto"),rr()}})};R(tu,He=>{n(Tr)&&He(Up)})}var iu=L(tu,2);{var bl=He=>{Zv(He,{})};R(iu,He=>{ye()&&He(bl)})}var ou=L(iu,2);{var ha=He=>{Ka(He,{})};R(ou,He=>{n(sr)&&He(ha)})}var _a=L(ou,2);{var zp=He=>{xm(He,{})};R(_a,He=>{ke()&&He(zp)})}var nu=L(_a,2);{var $d=He=>{cc(He,{})};R(nu,He=>{Fe()&&He($d)})}b(si,ho)}),b(he,ni)},$$slots:{default:!0}}),he=>dt(he),()=>dt());var ut=L(Hs,2);Xe(ut,he=>O(sn,he),()=>n(sn)),w(un),Xe(un,he=>O(co,he),()=>n(co));var ii=L(un,2);{var go=he=>{var St=NT();b(he,St)};R(ii,he=>{Ft()&&he(go)})}_t("mouseenter",un,as),_t("mouseleave",un,Vt),_t("click",un,ys,!0),_t("focusin",un,qe,!0),b(t,Fs),F(),o()}it(["mousemove","contextmenu","click"]);var ua=require("@vkontakte/videoplayer-core/es2015"),f$=require("@vkontakte/videoplayer-shared/es2015");var BT=M('<div></div> <div class="info s-n"><div class="triangles-wrapper s-n"><div></div> <div></div> <div></div></div> <p class="step-caption s-n"> </p></div>',1),FT=M("<div><!></div>"),HT={hash:"s-n",code:".double-click-area.s-n{height:100%;overflow:hidden;position:absolute;top:0;width:25%}.double-click-area.left.s-n{left:0}.double-click-area.right.s-n{right:0}.semicircle.s-n{background-color:rgba(0,0,0,.5);height:100%;position:absolute;top:0;width:100%}.semicircle.left.s-n{border-bottom-right-radius:50%;border-top-right-radius:50%;left:0}.semicircle.right.s-n{border-bottom-left-radius:50%;border-top-left-radius:50%;right:0}.info.s-n{align-items:center;flex-direction:column;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.info.s-n,.triangles-wrapper.s-n{display:flex;justify-content:center}.triangles-wrapper.s-n{margin-bottom:10px;position:relative}.triangle.s-n{animation:s-n-blink .5s infinite;border-bottom:6px solid transparent;border-top:6px solid transparent;height:0;opacity:0;width:0}.triangle.left.s-n:nth-child(3),.triangle.right.s-n:first-child{animation-delay:0s}.triangle.left.s-n:nth-child(2),.triangle.right.s-n:nth-child(2){animation-delay:.1s}.triangle.left.s-n:first-child,.triangle.right.s-n:nth-child(3){animation-delay:.2s}@keyframes s-n-blink{0%{opacity:0}50%{opacity:1}to{opacity:0}}.triangle.left.s-n{border-right:8px solid var(--white)}.triangle.right.s-n{border-left:8px solid var(--white)}.triangle.s-n:not(:last-child){margin-right:5px}.step-caption.s-n{color:var(--white);font-size:12px;line-height:1;margin:0;text-align:center}"};function Sp(t,e){B(e,!0),q(t,HT);let i=g(e,"seekStep",3,0),o=K(!1),r=0,a=0,l=K(ci(i())),d=p=>{p.stopPropagation(),a+=1,O(l,i()*(a-1)),a===1?e.handleSingleFirstClick(p):(O(o,!0),e.handleSecondClick()),window.clearTimeout(r),r=window.setTimeout(()=>{a=0,O(o,!1)},300)};gn(()=>{window.clearTimeout(r)});var s=FT();s.__click=d;var u=T(s);{var m=p=>{var f=BT(),$=de(f),y=L($,2),_=T(y),S=T(_),C=L(S,2),I=L(C,2);w(_);var N=L(_,2),P=T(N,!0);w(N),w(y),D(E=>{var A,Q,H,z;se($,1,`semicircle ${(A=e.side)!=null?A:""}`,"s-n"),se(S,1,`triangle ${(Q=e.side)!=null?Q:""}`,"s-n"),se(C,1,`triangle ${(H=e.side)!=null?H:""}`,"s-n"),se(I,1,`triangle ${(z=e.side)!=null?z:""}`,"s-n"),me(P,E)},[()=>G("doubletap_seek_step",{seconds:n(l).toFixed(0)})]),b(p,f)};R(u,p=>{n(o)&&p(m)})}w(s),D(()=>{var p;return se(s,1,`double-click-area ${(p=e.side)!=null?p:""}`,"s-n")}),b(t,s),F()}it(["click"]);var UT=(t,e,i)=>{e(!1),i()},zT=M('<div class="overlay s-p"></div> <div class="next-video s-p"><div class="top s-p"><div class="caption s-p"> </div> <!></div> <div class="row s-p"><div class="column s-p"><div class="thumb s-p"><div></div> <!></div></div> <div class="column s-p"><div class="title s-p"> </div></div></div></div>',1),WT={hash:"s-p",code:".overlay.s-p{background:rgba(0,0,0,.72);height:100%;position:absolute;width:100%}.next-video.s-p{display:flex;flex-direction:column;left:50%;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-p{display:flex;justify-content:space-between}.caption.s-p{color:var(--white);font-size:11px;font-weight:700;opacity:.8;text-transform:uppercase}.row.s-p{background:rgba(48,48,48,.8);cursor:pointer;display:flex;flex-direction:row;height:102px;margin-top:6px;width:100%}.column.s-p{display:flex;flex-basis:50%;flex-direction:column}.thumb.s-p{align-items:center;background:no-repeat 50%;background-size:cover;display:flex;justify-content:space-around;position:relative}.thumb.s-p,.thumb-overlay.s-p{height:100%;width:100%}.thumb-overlay.s-p{position:absolute}.thumb-overlay.withOpacity.s-p{background:var(--black);opacity:.3}.title.s-p{color:var(--white);font-size:12px;font-weight:700;line-height:1.6;max-height:52px;overflow:hidden;padding:10px 16px}"};function tg(t,e){B(e,!0),q(t,WT);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,m=l.actions.internal.nextVideoAnnouncementShow,p=l.actions.internal.nextVideoAnnouncementClick,f=l.actions.internal.nextVideoAnnouncementAuto,$=l.actions.internal.nextVideoAnnouncementCancel,y=()=>{u(!1),f()},_=()=>{e.clickCloseIcon(),$()};Rt(()=>{e.isHide||m(),e.isHide&&r()&&(u(!1),f())});var S=Le(),C=de(S);{var I=N=>{var P=zT(),E=L(de(P),2),A=T(E),Q=T(A),H=T(Q,!0);w(Q);var z=L(Q,2);Ls(z,{onClick:_}),w(A);var Y=L(A,2);Y.__click=[UT,u,p];var le=T(Y),X=T(le),re=T(X);let Z;var we=L(re,2);{var ue=J=>{uc(J,{get isRunning(){return a()},onTimerEnded:y})};R(we,J=>{r()&&J(ue)})}w(X),w(le);var ne=L(le,2),_e=T(ne),xe=T(_e,!0);w(_e),w(ne),w(Y),w(E),D((J,Ne)=>{me(H,J),Qe(X,`background-image: url('${e.thumb}')`),Z=se(re,1,"thumb-overlay s-p",null,Z,Ne),me(xe,e.title)},[()=>r()?G("end_screen_next_video"):G("end_screen_recommended_video"),()=>({withOpacity:r()})]),b(N,P)};R(C,N=>{e.isHide||N(I)})}b(t,S),F(),o()}it(["click"]);var l$=require("@vkontakte/videoplayer-core/es2015");var d$=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Rt(()=>{l$.clientChecker.device.isIOS&&(o=setTimeout(()=>{let a=t().querySelector("video");if(!a)return;let l=()=>e(!0),d=()=>e(!1);a.addEventListener("webkitbeginfullscreen",l),a.addEventListener("webkitendfullscreen",d),i=()=>{a.removeEventListener("webkitbeginfullscreen",l),a.removeEventListener("webkitendfullscreen",d)}},0))}),gn(()=>{i==null||i(),clearTimeout(o)})};var c$=require("@vkontakte/videoplayer-core/es2015");var Tp=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 u$=require("@vkontakte/videoplayer-core/es2015"),p$=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:r,availableSubtitlesList$:a,currentFormat$:l,availableTextTracks$:d}=t.state,s=null,u=()=>e().querySelector("video"),m=()=>u$.clientChecker.device.isIOS&&ge(l)===c$.VideoFormat.DASH_LIVE_CMAF,p=()=>{s==null||s(),s=null},f=$=>{if(p(),!m()||!$)return;let y=u();if(!y)return;let _=new Tp(y),S=ge(d),C=ge(a),I=ge(r);for(let E of S)C.some(Q=>Q.value===E.id)&&_.attach(E,I.value===E.id);let N=d.subscribe(E=>{for(let A of E)_.updateSrc(A)}),P=()=>{let E=_.getCurrentShowingId();o(ge(a).find(A=>A.value===E))};y.textTracks.addEventListener("change",P),s=()=>{N(),_.detachAll(),y.textTracks.removeEventListener("change",P)}};Rt(()=>i.subscribe(f)),gn(p)};var KT=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},qT=M("<!> <!>",1),QT=M("<div><!></div>"),GT=M('<div class="spherical-video-icon s-9"><!></div>'),YT=M("<div><!></div>"),jT=M('<div class="settings-mobile s-9"><!></div>'),XT=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),ZT=M('<div class="player-wrapper s-9" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></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%}.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 Ao,Ur;B(e,!0),q(t,JT);let[i,o]=Re(),r=()=>x(xt,"$playerPhase",i),a=()=>x(wi,"$isLoaderVisible",i),l=()=>x(nt,"$adPlaybackState",i),d=()=>x(ti,"$crashed",i),s=()=>x($s,"$notificationsToShow$",i),u=()=>x(ee,"$playbackState$",i),m=()=>x(Ot,"$graphIsOpened$",i),p=()=>x(ze,"$interactiveHideMobileControls",i),f=()=>x(Zi,"$isEnded$",i),$=()=>x(ct,"$isInteractiveExpectation$",i),y=()=>x(pt,"$controlsVisible",i),_=()=>x(st,"$touched",i),S=()=>x(zi,"$autoplayNextEnabled$",i),C=()=>x(bi,"$postrollPassed",i),I=()=>x(xr,"$bottomNoSmooth",i),N=()=>x(Ii,"$videoSize",i),P=()=>x(It,"$playerSize",i),E=()=>x(Lt,"$isFullscreen",i),A=()=>x(fe,"$position$",i),Q=()=>x(Me,"$duration$",i),H=()=>x(on,"$loadedMetadata",i),z=()=>x(Ye,"$settingsMenuVisible",i),Y=()=>x(Ut,"$scrubbingInProgress",i),le=()=>x(zt,"$volumeChangingInProgress",i),X=()=>x(Dt,"$chromecastConnected$",i),re=()=>x(ce,"$isControlsAvailable",i),Z=()=>x(di,"$isInteractiveTime$",i),we=()=>x(Ci,"$isActiveLive",i),ue=()=>x(dt,"$settingsMenuOpenedByKeyboard",i),ne=()=>x(be,"$language$",i),_e=()=>x(Xt,"$disabledControls$",i),xe=()=>x(Wt,"$is3DVideo",i),J=()=>x(W,"$icon3DVideoVisible",i),Ne=()=>x(fi,"$chromecastDeviceName$",i),pe=()=>x(xo,"$currentSubtitle$",i),k=()=>x(Io,"$currentSubtitleCaptions$",i),We=()=>x(bn,"$realDuration$",i),Te=()=>x(bt,"$isLive$",i),j=()=>x(Jt,"$isPlaying$",i),ie=()=>x(ri,"$debugPanelVisible",i),De=g(e,"videoContainer",15),Be=g(e,"adsSlotId",3,void 0),ot=g(e,"adsParams",3,void 0),U=g(e,"adsAutoplayParam",3,void 0),Ae=g(e,"duration",3,void 0),Pe=g(e,"logoTargetUrl",3,""),Ue=g(e,"showNextPrevButtons",3,!1),Je=g(e,"nextButtonActive",3,!1),ye=g(e,"prevButtonActive",3,!1),ke=g(e,"endScreenVideoTitle",3,void 0),Fe=g(e,"endScreenVideoThumb",3,void 0),Ft=g(e,"isOneVideoPlaylist",3,!1),mt=g(e,"showMiniTimer",3,!1),Ht=g(e,"fullScreenTarget",3,void 0),lt=g(e,"playerStarted",3,!1),Ct=g(e,"showEndScreen",3,!0),{notifications$:oi,graphIsOpened$:Ot}=Co(),$e=e.store.getLogger().createComponentLog("Root component"),be=e.store.interfaceLanguage$,ee=e.store.state.playbackState$,nt=e.store.ads.playbackState,fe=e.store.state.positionWithScrubbing$,Me=e.store.state.duration$,xt=e.store.playerPhase,Lt=e.store.ui.isFullscreen,pt=e.store.ui.controlsVisible,ce=e.store.ui.isControlsAvailable,ze=e.store.ui.interactiveHideMobileControls,Ye=e.store.ui.settingsMenu.visible$,dt=e.store.ui.settingsMenu.openedByBtnKeyboard$,Ut=e.store.ui.scrubbingInProgress,zt=e.store.ui.volumeChangingInProgress,ri=e.store.ui.debugPanelVisible,wi=e.store.state.isLoaderVisible,Zi=e.store.state.isEnded$,Dt=e.store.state.chromecastConnected$,fi=e.store.state.chromecastDeviceName$,bi=e.store.ads.postrollPassed,bt=e.store.state.isLive$,Jt=e.store.state.isPlaying$,Ci=e.store.state.isActiveLive$,Ji=e.store.state.isRewindableLive$,ti=e.store.state.crashed$,kt=e.store.webApi.annotationsApi,Ke=e.store.webApi.pictureInPictureApi,Ii=e.store.state.videoSize$,xo=e.store.state.currentSubtitle$,Io=e.store.state.currentSubtitleCaptions$,bn=e.store.state.duration$,It=e.store.ui.playerSize,Wt=e.store.ui.is3DVideo,W=e.store.ui.icon3DVideoVisible,Mt=e.store.state.isInteractive,di=e.store.state.isInteractiveTime$,ct=e.store.state.isInteractiveExpectation$,Tt=e.store.state.hasInteractiveBranches,Xt=e.store.ui.controls.disabledControls$,st=e.store.ui.touched,Ui=e.store.ui.overlayContainer$,zi=e.store.ui.autoplayNextEnabled$,on=e.store.state.loadedMetadata$,Eo=e.store.actions.internal.closeSettingsMenu,Wi=(Ao=e.store.callbacks)==null?void 0:Ao.onDisabledPlayPrevChapterClick,eo=(Ur=e.store.callbacks)==null?void 0:Ur.onDisabledSeekToInteractiveClick,Nr=e.store.actions.internal.setQuality,wo=K(void 0),lo=K(void 0),Ai=K(void 0),nn=K(void 0),rn,Nn,ir=v(()=>(r()==="video"&&a()||r()==="ads"&&l()==="inactive")&&!d()),Or=K(void 0),{closeNotification:os,notificationsToShow$:$s}=oi,ns=v(()=>!!s().slow_video),or=()=>os("slow_video"),xr=ae(!1),$n,On=K(!1),Uo=v(()=>u()!==ua.PlaybackState.PLAYING),Dn=K(!1),nr=v(()=>m()||p()||!n(On)&&(f()&&!!Tt||n(Uo)&&$())),wr=K(!0),Sr=v(()=>e.uiConfig.features.thumbTimer&&mt()&&r()==="video"&&!y()&&!d()&&!Mt&&(e.uiConfig.hideThumbTimerAfterTouch&&!_()||!e.uiConfig.hideThumbTimerAfterTouch)),Dr=K(!1),co=v(()=>(Ct()||e.showAutoplayNext&&S())&&!!ke()&&!!Fe()&&(e.showAds&&C()||!e.showAds)&&f()&&!d()&&!n(Dr)),Br=K(!1);Ke==null||Ke.setContext(Cd());let Bn=wt=>{wt&&!Mt&&uo(e.uiConfig.controls.hideTimeoutMobile)};e.store.setUiCallbacks({onStarted:Bn});let Fn=()=>{clearTimeout(rn),O(On,!1),p()&&ze.set(!1)},uo=wt=>{Fn(),O(On,!0),rn=setTimeout(()=>O(On,!1),wt);let Et=wt-100;$n=setTimeout(()=>{I()&&xr.set(!1)},Et>0?Et:wt)},Fr=Wt.subscribe(wt=>{W.set(wt),wt&&(clearTimeout(Nn),Nn=setTimeout(()=>W.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Hn=(...Et)=>gt(null,[...Et],function*(wt=ia()){var po,to,Vi,xn,So,qn;if(wt&&!ua.clientChecker.device.isIOS){let mi=tc(),zr=sn(),dr=ua.clientChecker.browser.isSamsungBrowser&&mi===e.shadowRootContainer;wt=mi===zr||dr}if(wt){uo(e.uiConfig.controls.hideTimeoutFullscreen);try{yield Ke==null?void 0:Ke.exit()}catch(mi){$e({message:String(mi)})}try{let mi=(po=N())!=null&&po.width&&((to=N())!=null&&to.height)?N():P();yield eb(mi)}catch(mi){$e({message:String(mi)})}}Lt.set(wt),e.store.getAdmanWrapper().setFullscreen(wt),E()?(xn=(Vi=e.store.callbacks)==null?void 0:Vi.onFullscreenEnter)==null||xn.call(Vi):(qn=(So=e.store.callbacks)==null?void 0:So.onFullscreenExit)==null||qn.call(So)}),vt=wt=>{let Et=wt,{width:po,height:to}=Et.target;It.set({width:po,height:to})},ui=()=>{let{width:wt,height:Et}=n(wo).getBoundingClientRect();It.set({width:wt,height:Et})};Rt(()=>{var wt;return Xu(Hn),e.uiConfig.features.annotationsInside&&(kt==null||kt.init(n(wo))),Ha(Ke)&&(Ke==null||Ke.assignPlayerContainer(n(wo)),Ke==null||Ke.setExternalEventHandlers({resize:vt,leavepictureinpicture:ui})),O(wr,!ua.clientChecker.device.isIphoneOrOldIpad),e.interactiveContainer&&((wt=De().parentElement)==null||wt.insertBefore(e.interactiveContainer,De().nextSibling)),()=>{clearTimeout(rn),clearTimeout($n),clearTimeout(Nn),Fr(),Ke==null||Ke.dispose().catch(Et=>{$e({message:String(Et)})}),Zu(Hn)}});let Tr=K(!0),rr=K(!0),sr=wt=>{let Et=A()+(wt==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;Et<0?(O(Tr,!1),Et=0):Et>=Q()&&(O(rr,!1),Et=Q()),O(Dn,!0),e.seekTime(Et)},sn=()=>ua.clientChecker.device.isIOS?n(wo):!e.uiConfig.allowChangingFullscreenTarget||!Ht()?e.outerContainerRef:Ht().contains(e.outerContainerRef)?Ht():e.outerContainerRef,Cr=()=>gt(null,null,function*(){try{if(ia())yield ju(document),$e({message:"exit fullscreen"});else{if($e({message:"request fullscreen"}),ua.clientChecker.device.isIOS&&!H())return;yield Yu(sn())}}catch(wt){$e({message:String(wt)})}}),an=()=>{Eo()},yn=wt=>{if(wt.preventDefault(),z()){an();return}if(!lt()){e.firstStart(),uo(e.uiConfig.controls.hideTimeoutCursor);return}O(Dn,!1),y()?Fn():uo(e.uiConfig.controls.hideTimeoutMobile)},Un=()=>{st.set(!0)},zn=()=>{Mt||(xr.set(!0),uo(e.uiConfig.controls.hideTimeoutCursor))},zo=wt=>{Wi&&(Wi(wt),uo(e.uiConfig.controls.hideTimeoutMobile))},Po=wt=>{eo&&(eo(wt),uo(e.uiConfig.controls.hideTimeoutMobile))};Oe(()=>{Ui.set(n(Or))}),Oe(()=>{pt.set((n(Uo)||z()||Y()||le()||X()||!n(co)&&(f()||n(On)&&!n(Dn)))&&!n(nr)&&r()==="video"&&!d()&&re())}),Oe(()=>{!Y()&&n(Br)&&!Z()&&uo(e.uiConfig.controls.hideTimeoutMobile),O(Br,Y(),!0)}),Oe(()=>{O(Tr,A()>0),O(rr,!we()&&A()<Q(),!0)}),Oe(()=>{lc(n(nn),z(),ue(),!0)});let ar=G("aria_label_video_player");d$({fullScreenChangeHandler:Hn,getFullscreenTarget:sn}),p$({store:e.store,getFullscreenTarget:sn});let ko=(wt,Et)=>{var xn,So;let po=(So=(xn=e.store.callbacks)==null?void 0:xn.uiInfo)==null?void 0:So.onUpcomingLiveViewStateChanged;if(!po)return;let to=!!Et,Vi=Ie(Ie({},er(n(wo),{upcomingLiveScreen:Et},"upcomingLiveScreen",to)),wt);po(Vi)};var Ki=ZT();_t("blur",Ia,an);var Wn=T(Ki);al(Wn,{onClick:yn,get videoContainer(){return De()},set videoContainer(wt){De(wt)}});var lr=L(Wn,2);Ma(lr,()=>"slot",!1,(wt,Et)=>{no(wt,()=>({name:sl}))});var Hr=L(lr,2);Is(Hr,ne,wt=>{var Et=XT(),po=de(Et);let to=v(()=>r()!=="thumb"||d()||Mt&&e.autoplay||e.uiConfig.features.disableThumbUnstartedOnAutoplay&&e.autoplay);ol(po,{get hidden(){return n(to)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Vi=L(po,2);{var xn=je=>{var Gt=qT(),Pi=de(Gt);{var qo=cn=>{let Qo=v(()=>e.uiConfig.controls.seekStepMobile/1e3);Sp(cn,{side:"left",get seekStep(){return n(Qo)},handleSingleFirstClick:yn,handleSecondClick:()=>sr("backward")})};R(Pi,cn=>{n(Tr)&&cn(qo)})}var dn=L(Pi,2);{var pr=cn=>{let Qo=v(()=>e.uiConfig.controls.seekStepMobile/1e3);Sp(cn,{side:"right",get seekStep(){return n(Qo)},handleSingleFirstClick:yn,handleSecondClick:()=>sr("forward")})};R(dn,cn=>{n(rr)&&cn(pr)})}b(je,Gt)};R(Vi,je=>{e.canRewindLive&&Ji&&!_e().has("TIMELINE")&&je(xn)})}var So=L(Vi,2);{var qn=je=>{let Gt=v(()=>{var Pi;return(Pi=e.live)==null?void 0:Pi.startTime});Rc(je,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(Gt)},onUpcomingLiveViewStateChanged:ko})};R(So,je=>{r()==="LiveWaitingStart"&&je(qn)})}var mi=L(So,2);{var zr=je=>{nl(je,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};R(mi,je=>{r()==="LiveWaitingRecover"&&je(zr)})}var dr=L(mi,2);{var rs=je=>{nl(je,{kind:"record",get thumbUrl(){return e.thumbUrl}})};R(dr,je=>{r()==="LiveWaitingRecord"&&je(rs)})}var ss=L(dr,2);{var Wr=je=>{var Gt=QT();let Pi;var qo=T(Gt);oc(qo,{get adsSlotId(){return Be()},get adsParams(){return ot()},get adsAutoplayParam(){return U()},get duration(){return Ae()},get adsExternalApi(){return e.adsExternalApi}}),w(Gt),D(dn=>Pi=se(Gt,1,"ads-container s-9",null,Pi,dn),[()=>({hidden:r()!=="ads"})]),b(je,Gt)};R(ss,je=>{e.showAds&<()&&je(Wr)})}var Lo=L(ss,2);{var ln=je=>{let Gt=v(()=>!Ct()&&e.showAutoplayNext&&S());tg(je,{get title(){return ke()},get thumb(){return Fe()},get isHide(){return n(Gt)},clickCloseIcon:()=>O(Dr,!0)})};R(Lo,je=>{n(co)&&ke()&&Fe()&&je(ln)})}var fo=L(Lo,2);{var Ir=je=>{Mc(je,{})};R(fo,je=>{xe()&&je(Ir)})}var Wo=L(fo,2);{var as=je=>{var Gt=GT(),Pi=T(Gt);ec(Pi,{}),w(Gt),b(je,Gt)};R(Wo,je=>{J()&&je(as)})}var qe=L(Wo,2);{var Vt=je=>{Vc(je,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return Ne()}})};R(qe,je=>{X()&&je(Vt)})}var yi=L(qe,2);{var Mo=je=>{tl(je,{get shifted(){return y()},get captions(){return k()},get position(){return A()},get playerSize(){return P()},isMobile:!0})};R(yi,je=>{pe().value!=="off"&&je(Mo)})}var Vo=L(yi,2);{var Ko=je=>{var Gt=YT();Gt.__click=[KT,z,Ye,an];var Pi=T(Gt);il(Pi,{}),w(Gt),b(je,Gt)};R(Vo,je=>{d()&&je(Ko)})}var mo=L(Vo,2);{var io=je=>{let Gt=v(()=>r()==="thumb"||r()==="LiveWaitingStart"||r()==="LiveWaitingRecover"||r()==="LiveWaitingRecord"||r()==="ads"),Pi=v(()=>r()==="ads"),qo=v(()=>e.canRewindLive&&We()!==0);Ac(je,{get bottomHidden(){return n(Gt)},get showControls(){return y()},get bottomNoSmooth(){return I()},get isAds(){return n(Pi)},get canRewindLive(){return n(qo)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Pe()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Ue()},get nextButtonActive(){return Je()},get prevButtonActive(){return ye()},get isOneVideoPlaylist(){return Ft()},get customFullscreenSupported(){return n(wr)},get endScreenShown(){return n(co)},toggleFullscreen:Cr,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:zo,onDisabledSeekToInteractiveClick:Po,get playerControlsWrapperRef(){return n(lo)},set playerControlsWrapperRef(dn){O(lo,dn,!0)},get playerControlsRef(){return n(Ai)},set playerControlsRef(dn){O(Ai,dn,!0)}})};R(mo,je=>{lt()&&je(io)})}var wn=L(mo,2);{var Sn=je=>{var Gt=jT(),Pi=T(Gt);Bc(Pi,{get supportLink(){return e.supportLink},get returnFocus(){return f$.noop},get ref(){return n(nn)},set ref(qo){O(nn,qo,!0)}}),w(Gt),b(je,Gt)};R(wn,je=>{z()&&je(Sn)})}var vo=L(wn,2);let Ro=v(()=>!n(Sr));sc(vo,{get isLive(){return Te()},get isHidden(){return n(Ro)},get isPlaying(){return j()},get position(){return A()},get duration(){return Q()}});var Qn=L(vo,2);{var cr=je=>{Ka(je,{})};R(Qn,je=>{n(ir)&&je(cr)})}var ur=L(Qn,2);{var Gn=je=>{cc(je,{})};R(ur,je=>{ie()&&je(Gn)})}var ys=L(ur,2);{var ls=je=>{Fc(je,{onClose:or,onSelectAutoQuality:()=>{Nr("auto"),or()}})};R(ys,je=>{n(ns)&&je(ls)})}b(wt,Et)});var Kn=L(Hr,2);Xe(Kn,wt=>O(Or,wt),()=>n(Or)),w(Ki),Xe(Ki,wt=>O(wo,wt),()=>n(wo)),D(()=>Ve(Ki,"aria-label",ar)),_t("click",Ki,Un,!0),_t("focusin",Ki,zn,!0),b(t,Ki),F(),o()}it(["click"]);function Cp(t){let e="";return ao(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),ao(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),ao(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),ao(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),ao(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),ao(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),ao(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),ao(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),ao(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),ao(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),ao(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),ao(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),ao(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),ao(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),ao(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),ao(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),ao(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),ao(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),ao(t.font)&&(e+=`--font:${t.font};`),ao(t.controlsGradientHeight)&&(e+=`--controls-gradient-height:${t.controlsGradientHeight};`),ao(t.controlsGradient)&&(e+=`--controls-gradient:${t.controlsGradient};`),e.length&&e||void 0}function ao(t){return typeof t=="string"&&!t.includes(";")}var m$=require("@vkontakte/videoplayer-shared/es2015");var eC=M('<div class="time-container s-7"><!></div>'),tC=M('<div class="player-wrapper s-7" role="region"><!> <!> <!> <!> <!> <div><!></div></div>'),iC={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){B(e,!0),q(t,iC);let[i,o]=Re(),r=()=>x(Z,"$scrubbingInProgress",i),a=()=>x(X,"$playerSize",i),l=()=>x(A,"$isPlaying$",i),d=()=>x(P,"$duration$",i),s=()=>x(z,"$positionWithScrubbing$",i),u=()=>x(I,"$playerPhase",i),m=()=>x(N,"$crashed$",i),p=()=>x(Q,"$currentSubtitle$",i),f=()=>x(H,"$currentSubtitleCaptions$",i),$=()=>x(E,"$positionExact$",i),y=()=>x(Y,"$isLive$",i),_=()=>x(le,"$isRewindableLive$",i),S=g(e,"outsideDuration",3,0),C=g(e,"videoContainer",15),{playerPhase:I,state:{crashed$:N,duration$:P,positionExact$:E,isPlaying$:A,currentSubtitle$:Q,currentSubtitleCaptions$:H,positionWithScrubbing$:z,isLive$:Y,isRewindableLive$:le},ui:{playerSize:X,controls:re,scrubbingInProgress:Z},actions:{internal:{getVideoElement:we}}}=ve(),ue=8,ne=K(!1),_e=ci({}),xe=K(!1),J=v(()=>!r()&&!n(xe)),Ne=()=>{O(ne,!0)},pe=()=>{O(ne,!1)},k=(0,m$.debounceFn)(nd,260);Oe(()=>{a(),k(we(),re,_e,n(ne))});let We=v(()=>l()?tn(d()-s()):tn(isFinite(d())?d():S()));var Te=tC(),j=T(Te);al(j,{hideCursor:!1,get videoContainer(){return C()},set videoContainer(ke){C(ke)}});var ie=L(j,2);Ma(ie,()=>"slot",!1,(ke,Fe)=>{no(ke,()=>({name:sl}))});var De=L(ie,2);let Be=v(()=>u()!=="thumb"||m());ol(De,{get hidden(){return n(Be)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var ot=L(De,2);{var U=ke=>{tl(ke,{shifted:!1,get captions(){return f()},get position(){return $()},get playerSize(){return a()}})};R(ot,ke=>{p().value!=="off"&&n(J)&&ke(U)})}var Ae=L(ot,2);{var Pe=ke=>{var Fe=eC(),Ft=T(Fe);rc(Ft,{get isLive(){return y()},get isPlaying(){return l()},get time(){return n(We)}}),w(Fe),b(ke,Fe)};R(Ae,ke=>{n(J)&&ke(Pe)})}var Ue=L(Ae,2);let Je;var ye=T(Ue);Za(ye,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return _()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:ue,tooltipRightOffset:ue,get ref(){return _e.timeline},set ref(ke){_e.timeline=ke}}),w(Ue),w(Te),D(ke=>Je=se(Ue,1,"timeline s-7",null,Je,ke),[()=>({visible:n(ne)})]),_t("mouseenter",Te,Ne),_t("mouseleave",Te,pe),_t("mouseenter",Ue,()=>O(xe,!0)),_t("mouseleave",Ue,()=>O(xe,!1)),b(t,Te),F(),o()}var oC=M("<div><!></div>"),nC={hash:"s-2",code:'.vk-vp-root.s-2{--white:#fff;--black:#000;--red:#ff3347;--blue-light:#70c1ff;--black-alpha-40:rgba(0,0,0,.4);--white-alpha-24:hsla(0,0%,100%,.24);--white-alpha-72:hsla(0,0%,100%,.72);--devider-gray:#dce1e6;--text-gray:#626d7a;--font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;--controls-height:40px;--controls-gradient-height:100px;--controls-transition-duration:0.25s;--controls-transition-fn:cubic-bezier(0.455,0.03,0.515,0.955);--controls-desktop-item-margin-left:4px;--controls-desktop-padding-horizontal:4px;--focused:var(--white);--focused-outline-width:2px;--focused-outline-radius:0;--focused-element-shadow:inset 0 0 0 var(--focused-outline-width) var(--focused);--focused-slider-shadow:0 0 0 2px var(--focused);--big-play-size:96px;--big-play-radius:50%;--big-play-bg-color:rgba(0,0,0,.5);--big-play-hover-bg-color:rgba(0,0,0,.6);--big-play-icon-width:38px;--big-play-icon-height:33px;--interactive-episode-complete:#5c9ce6;--slider-bg:hsla(0,0%,100%,.4);--slider-filled-bg:var(--white);--slider-handle-bg:var(--white);--slider-loaded-bg:hsla(0,0%,100%,.4);--slider-height:3px;--slider-video-episode-gap:1.5px;--slider-radius:0px;--slider-handle-size:12px;--slider-filled-ads:#67a5eb;--slider-disabled-color:hsla(0,0%,97%,.31);--slider-volume-height:5px;--slider-volume-radius:calc(var(--slider-volume-height)/2);--slider-volume-handle-size:13px;--timeline-slider-filled-active-live-bg:var(--red);--timeline-slider-handle-active-live-bg:var(--red);--timeline-slider-bg:var(--slider-bg);--timeline-slider-filled-bg:var(--slider-filled-bg);--timeline-slider-handle-bg:var(--slider-handle-bg);--timeline-slider-loaded-bg:var(--slider-loaded-bg);--volume-slider-bg:var(--slider-bg);--volume-slider-filled-bg:var(--slider-filled-bg);--volume-slider-handle-bg:var(--slider-handle-bg);--controls-time:var(--white);--controls-gradient:linear-gradient(180deg,transparent 0%,rgba(0,0,0,.005) 6.67%,rgba(0,0,0,.02) 13.33%,rgba(1,1,1,.04) 20%,rgba(1,1,1,.07) 26.67%,rgba(2,2,2,.11) 33.33%,rgba(3,3,3,.16) 40%,rgba(4,4,4,.22) 46.67%,rgba(6,6,6,.28) 53.33%,rgba(7,7,7,.33) 60%,rgba(8,8,8,.38) 66.67%,rgba(9,9,9,.42) 73.33%,rgba(9,9,9,.46) 80%,hsla(0,0%,4%,.48) 86.67%,hsla(0,0%,4%,.5));--timeline-preview-shadow:rgba(0,0,0,.08);--timeline-preview-bg:#222;--timeline-padding-horizontal:10px;--timeline-padding-vertical-top:3px;--timeline-padding-vertical-bottom:4px;--timeline-height:calc(var(--timeline-padding-vertical-bottom) + var(--timeline-padding-vertical-top) + var(--slider-height));--preview-track-frame-height-vertical:114px;--preview-track-frame-height-horizontal:65px;--preview-track-controls-top:16px;--preview-track-time-line-height:16px;--preview-track-bottom-offset:10px;--preview-track-height:calc(var(--preview-track-frame-height-vertical) + var(--preview-track-bottom-offset));--preview-track-controls-top-offset:calc(var(--timeline-height) + var(--preview-track-controls-top) + var(--preview-track-time-line-height));--settings-bg:rgba(0,0,0,.72);--settings-item-bg-hover:hsla(0,0%,100%,.08);--settings-radius:8px;--mobile-settings-bg:#2c2d2e;--divider-border:1px solid var(--white-alpha-24);--toggle-color-separator:#363738;--toggle-color-off:#656565;--toggle-color-on:#71aaeb;--toggle-color-autoplay-on:var(--white);--notification-bg:#2c2d2e;--notification-radius:8px;--button-hover-transition:opacity 0.2s;--video-container-z-index:0;--controls-container-z-index:1;--ads-container-z-index:1;--end-screen-mobile-z-index:1;--notification-z-index:1;--thumb-timer-z-index:2;--debug-panel-z-index:2;--modal-z-index:2;--settings-menu-z-index:2;--context-menu-z-index:3;--hot-key-helpers-container-z-index:3;--overlay-container-z-index:4;--rotate-transition-duration:0.25s;--btn-color:var(--white);--double-forward-bg:rgba(0,0,0,.6);background:var(--black);color:var(--white);font-family:var(--vk-vp-custom-font,var(--font));font-size:12px;height:100%;line-height:normal;outline:0;overflow:hidden;position:relative;user-select:none;width:100%}.vk-vp-root.visible-outside.s-2{overflow:visible}.vk-vp-root.s-2 *{-webkit-tap-highlight-color:transparent}.vk-vp-root.s-2 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-2 p{margin:0}.vk-vp-root.s-2 svg:not(.interactive-root svg){pointer-events:none}.vk-vp-root.s-2 .interactive-root{font-family:var(--vk-vp-int-custom-font,inherit)}.vk-vp-root.s-2 :focus,.vk-vp-root.s-2 :focus-visible{outline:none}.vk-vp-root.s-2 :focus-visible{border-radius:var(--focused-outline-radius);box-shadow:var(--focused-element-shadow)}.vk-vp-root.s-2 .focus-hidden:focus-visible{box-shadow:none}.vk-vp-root.s-2 .hidden{opacity:0;visibility:hidden}.vk-vp-root.s-2 .out-of-flow{content-visibility:hidden!important}.vk-vp-root.s-2 .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-2 .out-of-view{left:-1000vh!important;position:absolute!important}.vk-vp-root.s-2 .icon.icon-error-stub{align-items:center;display:flex;justify-content:center}'};function ng(t,e){B(e,!0),q(t,nC);let[i,o]=Re(),r=()=>x(lt,"$isLive$",i),a=()=>x(kt,"$availableSubtitlesList$",i),l=()=>x(Ke,"$isPreviewTrackHorizontallyAligned$",i),d=g(e,"sources",7),s=g(e,"store",7),u=g(e,"microStoresRoot",7),m=g(e,"videoConfig",7),p=g(e,"uiConfig",7),f=g(e,"title",7),$=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),N=g(e,"preload",7),P=g(e,"autoplay",7),E=g(e,"volume",7,void 0),A=g(e,"muted",7,void 0),Q=g(e,"fromTime",7),H=g(e,"canRewindLive",7),z=g(e,"showAds",7),Y=g(e,"adsSlotId",7,void 0),le=g(e,"adsParams",7,void 0),X=g(e,"adsAutoplayParam",7,void 0),re=g(e,"duration",7,void 0),Z=g(e,"logoClickable",7),we=g(e,"logoHidden",7),ue=g(e,"isMobile",7),ne=g(e,"showNextPrevButtons",7,!1),_e=g(e,"nextButtonActive",7,!1),xe=g(e,"prevButtonActive",7,!1),J=g(e,"endScreenVideoTitle",7,void 0),Ne=g(e,"endScreenVideoThumb",7,void 0),pe=g(e,"isOneVideoPlaylist",7,!1),k=g(e,"supportLink",7),We=g(e,"shadowRootContainer",7),Te=g(e,"outerContainerRef",7),j=g(e,"fullScreenTarget",7,void 0),ie=g(e,"failoverHosts",7,void 0),De=g(e,"showMiniTimer",7,!1),Be=g(e,"saveRate",7),ot=g(e,"seekToInteractive",7,ll.noop),U=g(e,"playPrevChapter",7,ll.noop),Ae=g(e,"volumeMultiplier",7),Pe=g(e,"showAutoplayNext",7),Ue=g(e,"showEndScreen",7,!0),Je=g(e,"keyboardControls",15,void 0),{subscribers:ye,stores:ke}=u();l_(p());let Fe=Nt(),Ft=p().logoLink,mt=s().ui.debugPanelVisible,Ht=s().ui.playerSize,lt=s().state.isLive$,oi=s().state.isInteractive&&dd.clientChecker.device.isAndroid,Ot=K(void 0),$e=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(),ke),Oe(()=>{var W,Mt;s().ui.isMobile.set(ue()),(Mt=(W=m().callbacks)==null?void 0:W.onDomReady)==null||Mt.call(W)});let ee=(W=!1)=>{O(be,!0),W?s().actions.external.firstStart(z()):s().actions.internal.firstStart(z())},nt=()=>{if(Fe.features.qualityDetailsSubMenuEnabled){let W=U_(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{z_(s().videoId),jf()&&s().actions.internal.setTrafficSavingEnabled(!0);let Mt=Qf(s().videoId);Mt&&s().actions.internal.setQuality(Mt)}};function fe(W){var Xt,st,Ui;let Mt=d()||W;Mt&&s().initVideo({container:n(Ot),sources:Mt,failoverHosts:ie(),subtitles:S(),subtitlesForcedLanguage:C(),volumeMultiplier:Ae()});let di=ll.safeStorage.get(Gd)==="true";mt.set(di),Q()>0&&s().actions.external.seekTime(Q());let ct=ue()?Fe.volumeDefault:(st=(Xt=E())!=null?Xt:Fu())!=null?st:Fe.volumeDefault,Tt=(Ui=A())!=null?Ui:N_();if(s().actions.external.setVolume(ct),s().actions.external.setMuted(Tt),s().getAdmanWrapper().setInitialVolume(Tt?0:ct),nt(),Fe.features.saveRate&&Be()){let zi=B_();zi&&!r()&&s().actions.internal.setPlaybackRate(zi)}if(Pe()){let zi=H_();zi&&s().actions.internal.setAutoplayNextEnabled(zi)}s().ui.isAutoplay.set(P()),P()&&ee(),N()&&Fe.features.preload&&s().actions.internal.preload()}let Me=W=>{if(window.ResizeObserver){let Mt,di;$e=new ResizeObserver((0,ll.throttleFn)(ct=>{let Tt=ct[0];if(Tt.contentBoxSize){let Xt=Array.isArray(Tt.contentBoxSize)?Tt.contentBoxSize[0]:Tt.contentBoxSize;Mt=Xt.inlineSize,di=Xt.blockSize}else Tt.contentRect&&(Mt=Tt.contentRect.width,di=Tt.contentRect.height);Ht.set({width:Mt,height:di})},300)),$e.observe(W)}Ht.set({width:W.clientWidth,height:W.clientHeight})},xt=()=>{document.hidden&&s().actions.external.stop()};Rt(()=>{var di,ct,Tt,Xt;oi&&document.addEventListener("visibilitychange",xt),Fe.debugLog&&s().actions.internal.startLogging(),Me(n(Ot));let W=ye.map(st=>st.init({store:s(),microStores:ke,config:m(),interactiveController:_(),uiConfig:p()})),Mt=()=>{oi&&document.removeEventListener("visibilitychange",xt),$e==null||$e.disconnect(),W.forEach(st=>st.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):(((Tt=I())==null?void 0:Tt.status)==="finished"||((Xt=I())==null?void 0:Xt.status)==="postlive")&&!(d()&&(0,dd.areValidLiveRecordSources)(d()))?(s().actions.internal.setLiveWaitingRecord(!0),Mt):(fe(),Mt)});function Lt(){n(be)?s().actions.external.play():ee(!0)}function pt(){s().actions.external.pause()}function ce(W){s().actions.external.setMuted(W)}function ze(){s().actions.external.toggleSubtitle()}function Ye(W,Mt){s().actions.external.changeSubtitle(W,Mt)}function dt(W){s().actions.external.changeAudioStream(W)}function Ut(){var W;(W=s().webApi.slotsApi)!=null&&W.haveSlots()&&s().actions.external.hideControls()}function zt(){var W;(W=s().webApi.slotsApi)!=null&&W.haveSlots()&&s().actions.external.showControls()}function ri(W){ue()||W>=0&&W<=1&&s().actions.external.setVolume(W)}function wi(W){s().actions.internal.seekTime(W,v$.SeekAction.UNKNOWN)}function Zi(W){s().actions.external.seekEpisodeStartTime(W)}function Dt(){s().actions.external.returnFocusToEpisodes()}function fi(W){s().actions.external.setPlaybackRate(W)}function bi(W){s().actions.external.setAutoQualityLimits(W)}function bt(){s().actions.external.setQuality("auto")}function Jt(W){s().actions.external.setTrafficSavingEnabled(W)}function Ci(W){s().actions.external.setHighQualityEnabled(W)}let Ji=Cp(Fe.view),ti=m().playerView==="preview",kt=s().state.availableSubtitlesList$;if(Fe.features.initSubtitles){let W=!1;Oe(()=>{var Mt;if(!W&&a().length){W=!0;let di;if(Fe.features.userVideoPrefs&&s().videoId){let Tt=Wu(Fe.userSalt,String(s().videoId));Tt!=null&&Tt.subtitleTrackId&&(di=a().find(Xt=>Xt.value===Tt.subtitleTrackId))}let ct=(Mt=C())!=null?Mt:Zf();ct&&(di=a().find(Tt=>Tt.language===ct)),s().actions.internal.setSubtitle(di)}})}let Ke=s().ui.isPreviewTrackHorizontallyAligned;var Ii=oC();let xo;var Io=T(Ii);{var bn=W=>{ig(W,{get store(){return s()},get uiConfig(){return Fe},get thumbUrl(){return $()},get interactiveContainer(){return y()},get live(){return I()},get autoplay(){return P()},get canRewindLive(){return H()},get showAds(){return z()},get adsSlotId(){return Y()},get adsParams(){return le()},get adsAutoplayParam(){return X()},get duration(){return re()},get logoClickable(){return Z()},get logoHidden(){return we()},get logoTargetUrl(){return Ft},get nextButtonActive(){return _e()},get prevButtonActive(){return xe()},get endScreenVideoTitle(){return J()},get endScreenVideoThumb(){return Ne()},get isOneVideoPlaylist(){return pe()},get supportLink(){return k()},get shadowRootContainer(){return We()},get outerContainerRef(){return Te()},get fullScreenTarget(){return j()},get showMiniTimer(){return De()},get playerStarted(){return n(be)},get seekToInteractive(){return ot()},get playPrevChapter(){return U()},firstStart:ee,seekTime:wi,get showEndScreen(){return Ue()},get showAutoplayNext(){return Pe()},get showNextPrevButtons(){return ne()},get adsExternalApi(){return e.adsExternalApi},get videoContainer(){return n(Ot)},set videoContainer(Mt){O(Ot,Mt,!0)}})},It=W=>{var Mt=Le(),di=de(Mt);{var ct=Xt=>{og(Xt,{get thumbUrl(){return $()},get outsideDuration(){return re()},get canRewindLive(){return H()},get videoContainer(){return n(Ot)},set videoContainer(st){O(Ot,st,!0)}})},Tt=Xt=>{eg(Xt,{get store(){return s()},get uiConfig(){return Fe},get title(){return f()},get thumbUrl(){return $()},get interactiveContainer(){return y()},get live(){return I()},get autoplay(){return P()},get canRewindLive(){return H()},get showAds(){return z()},get adsSlotId(){return Y()},get adsParams(){return le()},get adsAutoplayParam(){return X()},get duration(){return re()},get logoClickable(){return Z()},get logoHidden(){return we()},get logoTargetUrl(){return Ft},get nextButtonActive(){return _e()},get prevButtonActive(){return xe()},get endScreenVideoTitle(){return J()},get endScreenVideoThumb(){return Ne()},get isOneVideoPlaylist(){return pe()},get supportLink(){return k()},get shadowRootContainer(){return We()},get outerContainerRef(){return Te()},get fullScreenTarget(){return j()},get showMiniTimer(){return De()},get playerStarted(){return n(be)},get seekToInteractive(){return ot()},get playPrevChapter(){return U()},firstStart:ee,get showEndScreen(){return Ue()},get showAutoplayNext(){return Pe()},get showNextPrevButtons(){return ne()},get adsExternalApi(){return e.adsExternalApi},get videoContainer(){return n(Ot)},set videoContainer(st){O(Ot,st,!0)},get keyboardControls(){return Je()},set keyboardControls(st){Je(st)}})};R(di,Xt=>{ti?Xt(ct):Xt(Tt,!1)})}b(W,Mt)};R(Io,W=>{ue()?W(bn):W(It,!1)})}w(Ii),D(W=>{xo=se(Ii,1,"vk-vp-root s-2",null,xo,W),Qe(Ii,Ji)},[()=>({"root--miui-browser":dd.clientChecker.device.isMobile&&dd.clientChecker.browser.isMiuiBrowser,"visible-outside":ti,"preview-track-horizontally-alinged":l()})]),b(t,Ii);var Wt=F({initVideo:fe,play:Lt,pause:pt,setMuted:ce,toggleSubtitle:ze,changeSubtitle:Ye,changeAudioStream:dt,hideControls:Ut,showControls:zt,setVolume:ri,seekTime:wi,seekEpisodeStartTime:Zi,returnFocusToEpisodes:Dt,setPlaybackRate:fi,setAutoQualityLimits:bi,setAutoQuality:bt,toggleTrafficSaving:Jt,toggleHighQuality:Ci,get sources(){return d()},set sources(W){d(W)},get store(){return s()},set store(W){s(W)},get microStoresRoot(){return u()},set microStoresRoot(W){u(W)},get videoConfig(){return m()},set videoConfig(W){m(W)},get uiConfig(){return p()},set uiConfig(W){p(W)},get title(){return f()},set title(W){f(W)},get thumbUrl(){return $()},set thumbUrl(W){$(W)},get interactiveContainer(){return y()},set interactiveContainer(W){y(W)},get interactiveController(){return _()},set interactiveController(W){_(W)},get subtitles(){return 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 N()},set preload(W){N(W)},get autoplay(){return P()},set autoplay(W){P(W)},get volume(){return E()},set volume(W){E(W)},get muted(){return A()},set muted(W){A(W)},get fromTime(){return Q()},set fromTime(W){Q(W)},get canRewindLive(){return H()},set canRewindLive(W){H(W)},get showAds(){return z()},set showAds(W){z(W)},get adsSlotId(){return Y()},set adsSlotId(W){Y(W)},get adsParams(){return le()},set adsParams(W){le(W)},get adsAutoplayParam(){return X()},set adsAutoplayParam(W){X(W)},get duration(){return re()},set duration(W){re(W)},get logoClickable(){return Z()},set logoClickable(W){Z(W)},get logoHidden(){return we()},set logoHidden(W){we(W)},get isMobile(){return ue()},set isMobile(W){ue(W)},get showNextPrevButtons(){return ne()},set showNextPrevButtons(W){ne(W)},get nextButtonActive(){return _e()},set nextButtonActive(W){_e(W)},get prevButtonActive(){return xe()},set prevButtonActive(W){xe(W)},get endScreenVideoTitle(){return J()},set endScreenVideoTitle(W){J(W)},get endScreenVideoThumb(){return Ne()},set endScreenVideoThumb(W){Ne(W)},get isOneVideoPlaylist(){return pe()},set isOneVideoPlaylist(W){pe(W)},get supportLink(){return k()},set supportLink(W){k(W)},get shadowRootContainer(){return We()},set shadowRootContainer(W){We(W)},get outerContainerRef(){return Te()},set outerContainerRef(W){Te(W)},get fullScreenTarget(){return j()},set fullScreenTarget(W){j(W)},get failoverHosts(){return ie()},set failoverHosts(W){ie(W)},get showMiniTimer(){return De()},set showMiniTimer(W){De(W)},get saveRate(){return Be()},set saveRate(W){Be(W)},get showAutoplayNext(){return Pe()},set showAutoplayNext(W){Pe(W)},get seekToInteractive(){return ot()},set seekToInteractive(W){ot(W)},get playPrevChapter(){return U()},set playPrevChapter(W){U(W)},get volumeMultiplier(){return Ae()},set volumeMultiplier(W){Ae(W)},get showEndScreen(){return Ue()},set showEndScreen(W){Ue(W)},get keyboardControls(){return Je()},set keyboardControls(W){Je(W)}});return o(),Wt}var rC=Ce('<defs><path id="rect" d="m2.72 0c.45 0 .6.05.77.13a1 1 0 01.38.38c.09.16.13.33.13.77v1.44c0 .44-.04.6-.13.77a1 1 0 01-.38.38c-.16.08-.32.13-.77.13h-1.44c-.44 0-.6-.05-.77-.13a1 1 0 01-.37-.38c-.1-.16-.14-.33-.14-.77v-1.44c0-.44.05-.6.13-.77a1 1 0 01.38-.38c.17-.08.33-.13.77-.13z"></path></defs><path d="M38.24 6c3.57 0 4.86.37 6.17 1.07a7.3 7.3 0 0 1 3.02 3.02c.7 1.3 1.07 2.6 1.07 6.17v23.49c0 3.56-.37 4.85-1.07 6.16a7.3 7.3 0 0 1-3.02 3.02c-1.3.7-2.6 1.07-6.16 1.07h-19.5c-3.56 0-4.85-.37-6.16-1.07a7.3 7.3 0 0 1-3.02-3.02c-.7-1.3-1.07-2.6-1.07-6.16v-23.5c0-3.56.37-4.85 1.07-6.16a7.3 7.3 0 0 1 3.02-3.02C13.9 6.37 15.2 6 18.76 6zm.32 3h-19.8c-2.8 0-3.77.19-4.75.71a4.3 4.3 0 0 0-1.8 1.8c-.5.95-.7 1.87-.7 4.43l-.01 23.8c0 2.8.19 3.76.71 4.75a4.3 4.3 0 0 0 1.8 1.8c.98.52 1.95.71 4.75.71h19.49c2.8 0 3.76-.19 4.74-.71a4.3 4.3 0 0 0 1.8-1.8c.52-.98.71-1.95.71-4.74v-23.5c0-2.8-.19-3.75-.71-4.74a4.3 4.3 0 0 0-1.8-1.8c-.95-.5-1.87-.7-4.43-.7z"></path><use xlink:href="#rect" x="16.5" y="14"></use><use xlink:href="#rect" x="16.5" y="22"></use><use xlink:href="#rect" x="16.5" y="30"></use><use xlink:href="#rect" x="16.5" y="38"></use><use xlink:href="#rect" x="37" y="14"></use><use xlink:href="#rect" x="37" y="22"></use><use xlink:href="#rect" x="37" y="30"></use><use xlink:href="#rect" x="37" y="38"></use>',1);function rg(t,e){let i=g(e,"isWhite",3,!1),o=v(()=>i()?"#fff":"#909499");Ze(t,{width:"57",height:"60",get fill(){return n(o)},testId:"stub-icon",children:(r,a)=>{var l=rC();vi(9),b(r,l)},$$slots:{default:!0}})}var sC=M('<div class="title s-0"> </div>'),aC=M('<div class="playerStub s-0"><!> <!></div>'),lC={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,lC);var i=aC(),o=T(i);{var r=d=>{var s=sC(),u=T(s,!0);w(s),D(()=>me(u,e.title)),b(d,s)};R(o,d=>{e.title&&d(r)})}var a=L(o,2);{var l=d=>{let s=v(()=>!!e.thumbUrl);rg(d,{get isWhite(){return n(s)}})};R(a,d=>{(!e.title||!e.thumbUrl)&&d(l)})}w(i),D(()=>Qe(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),b(t,i)}var dC=M('<div class="playerError s-3"><!></div>'),cC={hash:"s-3",code:".playerError.s-3{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,cC);var e=dC(),i=T(e);il(i,{}),w(e),b(t,e)}var Bp=require("@vkontakte/videoplayer-shared/es2015"),Hi=require("@vkontakte/videoplayer-shared/es2015"),Zc=require("@vkontakte/videoplayer-core/es2015"),vd=require("@vkontakte/videoplayer-statistics/es2015");var Ep=require("@vkontakte/videoplayer-shared/es2015"),Ip=class{constructor(){this.subscription=new Ep.Subscription,this.logger=new Ep.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 ud=require("@vkontakte/videoplayer-shared/es2015");var uC=Ce('<path d="M31.257 3.998c3.037.01 4.52.39 6.13 1.24a9 9 0 013.47 3.35l.17.31.15.3c.78 1.55 1.07 3.18 1.09 6.25v9.04a1.5 1.5 0 01-3 .02v-9.65c-.05-2.04-.24-3.12-.64-4.04l-.12-.27-.13-.25A6 6 0 0036.2 7.9c-1.19-.64-2.34-.88-5.11-.9h-8.84c-2.73 0-4 .2-5.07.7l-.25.13a6 6 0 00-2.4 2.41c-.64 1.19-.88 2.34-.9 5.11v20.83c0 2.74.2 4 .7 5.08l.13.25a6 6 0 002.41 2.4c1.1.6 2.13.83 4.44.89H26a1.5 1.5 0 010 3h-4.47c-3-.05-4.53-.38-6.14-1.24a9 9 0 01-3.48-3.35l-.15-.3c-.73-1.47-1.04-3.01-1.08-5.8V15c.05-2.98.39-4.52 1.25-6.12a9 9 0 013.293-3.582c1.85-.871 2.623-1.27 5.747-1.27z"></path><path d="M30.5 33.8c0-1.68 0-2.52.33-3.16a3 3 0 0 1 1.3-1.31c.65-.33 1.49-.33 3.17-.33h6.4c1.68 0 2.52 0 3.16.33a3 3 0 0 1 1.31 1.3c.33.65.33 1.49.33 3.17v13.4c0 1.68 0 2.52-.33 3.16a3 3 0 0 1-1.3 1.31c-.65.33-1.49.33-3.17.33h-6.4c-1.68 0-2.52 0-3.16-.33a3 3 0 0 1-1.31-1.3c-.33-.65-.33-1.49-.33-3.17z"></path>',1),pC=M('<div><div><!></div> <span class="title s-6"> </span></div>'),fC={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){B(e,!0),q(t,fC);let[i,o]=Re(),r=()=>x(u,"$interfaceLanguage$",i),a=()=>x(m,"$isMobile$",i),l=ve(),d=Nt(),s=!!l.webApi.pictureInPictureApi,u=l.interfaceLanguage$,m=l.ui.isMobile,p=l.ui.t,f=v(()=>r()&&p("pip_dummy_title")),$=Cp(d.view);var y=pC();let _;var S=T(y);let C;var I=T(S);Ze(I,{width:"57",height:"56",testId:"pip-dummy-icon",children:(E,A)=>{var Q=uC();vi(),b(E,Q)},$$slots:{default:!0}}),w(S);var N=L(S,2),P=T(N,!0);w(N),w(y),D((E,A)=>{_=se(y,1,"player-pip-dummy s-6",null,_,E),Qe(y,$),C=se(S,1,"dummy-image s-6",null,C,A),me(P,n(f))},[()=>({"is-pip-api":s}),()=>({desktop:!a()})]),b(t,y),F(),o()}var mC=Object.defineProperty,vC=(t,e,i)=>e in t?mC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,cd=(t,e,i)=>vC(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())}),gC=460,hC=280,zc=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:gC,height:hC,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||(La(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 g$(t){return t instanceof zc}var Pp=class{static getLatestSupportedVersion(e){let i=new Fa(e),o=new zc(e);if(o.isSupported())return o;if(i.isSupported())return i}};function Wc(t,e){var r,a;let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let l of i)o[l]=(a=(r=e[l])!=null?r:t[l])!=null?a:void 0;return o}var h$="Inner error. Unexpectedly root annotation container null reference exception",_$="Annotation with such name already exists",b$="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"),_C="1",bC=100,kp=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"},bC);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(h$);if(this.annotations.has(e))throw new pd(_$);i.style.zIndex=(o=i.style.zIndex)!=null?o:_C,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(b$);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"),_n=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 Kc=class extends _n{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$=jt(Ie({},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 qc=class extends _n{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$=jt(Ie({},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:m}=a.ui,p=ge(m),f=()=>p&&ge(u);return o.add(u.subscribe($=>{if(!p)return;let y=ge(l);ge(s)?this.state$.set($):y!==null&&this.state$.set(!y||$)})),o.add(s.subscribe($=>{this.state$.set(!$||f())})),o.add(l.subscribe($=>{if($===null)return;let y=ge(d);if(f()){this.state$.set(!0);return}y&&this.state$.set(!$)})),o}};var Qc=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 $$=require("@vkontakte/videoplayer-shared/es2015");var cg=ae(!1),Ap=null,Gc=class extends _n{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$=jt(Ie({},cg),{set:(i,o=!1)=>{i!==ge(cg)&&(this.clearTimeout(),cg.set(i),!i&&Ap&&(Ap=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()})}init(i){let o=super.init(i),{store:r,config:a}=i,{isInteractiveTime$:l,isPlaying$:d}=r.state,s=r.ui.controlsVisible,{interactiveTimeIndicator:u}=r.ui.controls;o.add(s.subscribe(p=>{ge(l)&&p&&this.state$.set(!1)}));let m=(a==null?void 0:a.interactiveData)||{tooltipHelpHintActive:!1};return o.add((0,$$.combine)({isPlaying$:d,isInteractiveTime$:l,interactiveTimeIndicator:u}).subscribe(({isPlaying$:p,isInteractiveTime$:f,interactiveTimeIndicator:$})=>{var y,_;if(!(!p||!($!=null&&$.isDisplayed))){if(!f)return this.state$.set(!1);m.tooltipHelpHintActive&&Ap===null&&(Ap=!0,m.tooltipHelpHintActive=!1,this.state$.set(!0),(_=(y=r.callbacks)==null?void 0:y.onInteractiveTimeIndicatorHintDeactivated)==null||_.call(y))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};var Lp=require("@vkontakte/videoplayer-shared/es2015");var Yc=class extends _n{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$=jt(Ie({},ae(null)),{toggle:Lp.noop});this.checkIfShouldHide=i=>Ms(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(ge(l)))return;let s=ge(this.state$),{isEnded$:u,playbackState$:m}=r.state,{disabledControls$:p}=r.ui.controls,f=ge(u),$=ge(m);if(s)try{yield a==null?void 0:a.toggleGraphView(!1),this.state$.set(!1),p.remove(Ff),!f&&this.graphMadePause&&r.actions.internal.play()}catch(y){d({message:"Cant hide graph"})}else{this.graphMadePause=$==="playing";try{yield a==null?void 0:a.toggleGraphView(!0),this.state$.set(!0),p.add(Ff),!f&&this.graphMadePause&&r.actions.internal.pause()}catch(y){d({message:"Cant show graph"})}}}),o.add((0,Lp.combine)({graphIsOpened:this.state$,currentGridType:l}).subscribe(m=>gt(this,[m],function*({graphIsOpened:s,currentGridType:u}){if(this.checkIfShouldHide(u)&&s)try{yield a==null?void 0:a.toggleGraphView(!1),this.state$.set(!1)}catch(f){d({message:"Cant hide graph"})}}))),o}};var ug=require("@vkontakte/videoplayer-shared/es2015"),jc=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 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 Vp=require("@vkontakte/videoplayer-shared/es2015");var Mp=require("@vkontakte/videoplayer-shared/es2015");var y$=({maxShowCount:t,timeout:e})=>{let i=[t!==0?$C({maxCount:t}):void 0,e!==0?yC({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(r=>r.notificationShowed(o)),canShowNotification:o=>i.every(r=>r.canShowNotification(o))}},$C=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,r;e[i]=((o=e[i])!=null?o:0)+1,Mp.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}}},yC=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(Mp.safeStorage.get(e)||"{}")}catch(a){return{}}},o=a=>Mp.safeStorage.set(e,JSON.stringify(a)),r=a=>{let l=i();delete l[a],o(l)};return{notificationShowed:a=>{o(jt(Ie({},i()),{[a]:{timeout:t,launchTime:Date.now()}}))},canShowNotification:a=>{let l=i()[a];if(l){let d=Date.now()-l.launchTime>t;return d&&r(a),d}else return!0}}};var Xc=class extends _n{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$: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=y$({maxShowCount:a,timeout:l});let u=r.getPlayer();return o.add(u.events.severeStallOccured$.pipe((0,Vp.filterChanged)(),(0,Vp.filter)(m=>m)).subscribe(()=>{d&&!u.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(s&&r.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var x$=()=>[Kc,qc,Qc,Gc,Yc,jc,Xc].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:jt(Ie({},e),{[o.stateName]:o.state$})}},{subscribers:[],stores:{}});var md=require("@vkontakte/videoplayer-shared/es2015");var Rp=class{constructor(e){this.getActiveElement=e;this.focusableElements=[];this.isActive=!1;this.handleTabKey=e=>{if(this.updateFocusableElements(),!this.focusableElements.length)return;let i=this.focusableElements[0],o=this.focusableElements[this.focusableElements.length-1],r=this.getActiveElement();e.shiftKey&&r===i?(e.preventDefault(),o.focus()):!e.shiftKey&&r===o&&(e.preventDefault(),i.focus())}}activate(){this.isActive||(document.addEventListener("keydown",this.handleTabKey),this.isActive=!0)}deactivate(){this.isActive&&(document.removeEventListener("keydown",this.handleTabKey),this.isActive=!1,this.focusableElements=[])}updateFocusableElements(){this.isActive&&(this.focusableElements=this.getFocusableElements())}getFocusableElements(){let e=["button:not([disabled])","[href]:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"]):not([disabled])'].join(", ");return Array.from(this.container.querySelectorAll(e)).filter(i=>!i.disabled&&i.offsetParent!==null)}destroy(){this.deactivate()}setContainer(e){this.container=e}};var 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.focusLock=new Rp(()=>this.lastFocusedNode),this.init()}destroy(){this.shadowRoot.removeEventListener("focusin",this.handleFocusChange),this.focusLock.destroy()}getLastFocusedNode(){return this.lastFocusedNode}activateLock(){this.focusLock.activate()}deactivateLock(){this.focusLock.deactivate()}setContainerForFocusLock(e){this.focusLock.setContainer(e)}};var xC=M('<div class="root s-1"><!></div>'),wC={hash:"s-1",code:".root.s-1{align-items:center;display:flex;inset:0;justify-content:center;pointer-events:none;position:absolute;z-index:1}"};function pg(t,e){B(e,!0),q(t,wC);let i=null,o=K(null);Oe(()=>(n(o)&&(i=window.setTimeout(()=>{O(o,null)},e.animationDuration)),()=>{i&&clearTimeout(i)}));function r(s){e.playbackStatusShow&&O(o,s?"prev":"next",!0)}var a=Le(),l=de(a);{var d=s=>{var u=Le(),m=de(u);Is(m,()=>n(o),p=>{var f=xC(),$=T(f);let y=v(()=>n(o)==="prev");Uc($,{get duration(){return e.animationDuration},get Icon(){return ca},get reversed(){return n(y)}}),w(f),b(p,f)}),b(s,u)};R(l,s=>{e.playbackStatusShow&&n(o)&&s(d)})}return b(t,a),F({startVideoChangedAnimation:r})}var SC=Object.defineProperty,TC=Object.defineProperties,CC=Object.getOwnPropertyDescriptors,w$=Object.getOwnPropertySymbols,IC=Object.prototype.hasOwnProperty,EC=Object.prototype.propertyIsEnumerable,mg=(t,e,i)=>e in t?SC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Bs=(t,e)=>{for(var i in e||(e={}))IC.call(e,i)&&mg(t,i,e[i]);if(w$)for(var i of w$(e))EC.call(e,i)&&mg(t,i,e[i]);return t},PC=(t,e)=>TC(t,CC(e)),ei=(t,e,i)=>mg(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())}),kC={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,Zc.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},tr=K(void 0),fg=ci({animationDuration:0,playbackStatusShow:!1}),Dp=class extends HTMLElement{constructor(){super(),ei(this,"svelteStubComponent"),ei(this,"svelteRootComponent"),ei(this,"sveltePersistentLayerComponent"),ei(this,"svelteErrorComponent"),ei(this,"store"),ei(this,"microStoresRoot"),ei(this,"statistics"),ei(this,"sentry"),ei(this,"_shadowRoot"),ei(this,"playerContainer"),ei(this,"rootContainer"),ei(this,"stateContainer"),ei(this,"shadowRootContainer"),ei(this,"playerId"),ei(this,"uiConfig"),ei(this,"coreConfig"),ei(this,"statisticsConfig"),ei(this,"interactiveController"),ei(this,"interactiveContainer"),ei(this,"graphMadePause"),ei(this,"currentPlayingVideoIndex",0),ei(this,"needToRepeatPlaylist",!1),ei(this,"videoConfig"),ei(this,"pictureInPictureApi"),ei(this,"mediaSessionApi"),ei(this,"unsubscribePlayerPhaseSubscription"),ei(this,"logger"),ei(this,"log"),ei(this,"subscription"),ei(this,"interactiveSubscription"),ei(this,"annotationsApi"),ei(this,"slotsApi"),ei(this,"focusManager"),ei(this,"prevIsid"),ei(this,"isInited",!1),ei(this,"postponedInitParams",null),ei(this,"internalsExposure",null),ei(this,"shadowDOMCallbacksDisabled",!1),ei(this,"fatalError$",new Bp.ValueSubject(null)),ei(this,"createOneStat",(e,i={})=>{var o,r,a,l;if(!this.videoConfig)return;let{albumId:d,statPlace:s,statUserSalt:u,statTrackCode:m,statVKAppId:p,refreshStatAuthToken:f,autoplay:$,isMobile:y,isTouch:_,refDomain:S,deviceId:C,interactiveData:I}=Wc(this.videoConfig,i),N=(o=I==null?void 0:I.projectInfo)==null?void 0:o.pid,P=(a=(r=this.interactiveController)==null?void 0:r.state.isReplay$.getValue())!=null?a:!1;P&&(this.prevIsid=void 0);let{unitedVideoId:E,isClip:A=!1}=e;if(this.uiConfig.features.statistics&&E)try{return new vd.OneStat(Bs({movieId:E,albumId:d,place:s,trackCode:m,vkAppId:p,autoplay:(l=$&&!this.interactiveController)!=null?l:!1,mobile:_!=null?_:y,clip:A,refDomain:S,deviceId:C,isPreviewPlayerView:this.videoConfig.playerView==="preview"},N&&(!this.isInited||P)&&{projectId:Number(N)}),Bs({refreshAuthToken:f,userSalt:u,config:this.statisticsConfig},this.interactiveController&&{useIsid:!0,isid:this.prevIsid}))}catch(H){console.error(H),this.log({message:H.message})}}),md.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=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=ci({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}=Wc(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,m,p,f,$;if(!this.videoConfig)return;let{albumId:y,statPlace:_,statAuthToken:S,preload:C,autoplay:I,volume:N,muted:P,fromTime:E,canRewindLive:A,supportLink:Q,showAds:H,adsSlotId:z,adsParams:Y={},adsAutoplayParam:le,interfaceLanguage:X,isCyrillicRelatedInterface:re,logoClickable:Z,logoHidden:we,isMobile:ue,isTouch:ne,isAudioDisabled:_e,isLiveCatchUpMode:xe,fullScreenTarget:J,failoverHosts:Ne,canDownload:pe,callbacks:k,interactiveData:We,showThumbTimer:Te,additionalButtons:j=[],additionalSettingsMenuItems:ie=[],additionalContextMenuItems:De=[],repeat:Be,loop:ot,saveRate:U,volumeMultiplier:Ae,showEndScreen:Pe,showAutoplayNext:Ue,mediascopePixels:Je}=Wc(this.videoConfig,i),{sources:ye,title:ke,thumbUrl:Fe,unitedVideoId:Ft,isClip:mt=!1,duration:Ht,adsParams:lt={},videoEpisodes:Ct,previewThumbsData:oi,subtitles:Ot,subtitlesForcedLanguage:$e,live:be,adsExternalApi:ee}=e;if(!ye&&!be){let fi=new Error("empty sources and live");this.fatalError$.next(fi),(r=k.onCrashed)==null||r.call(k,fi.message);return}let nt=Bs(Bs({},Y),lt),fe=this.getNextVideoInfo(),Me={sources:ye,title:ke,thumbUrl:Fe,subtitles:Ot,subtitlesForcedLanguage:$e,unitedVideoId:Ft,isClip:mt,live:be,albumId:y,statPlace:_,autoplay:I,muted:P,volume:N,fromTime:E,canRewindLive:A,showAds:H,adsSlotId:z,adsParams:nt,adsAutoplayParam:le,duration:Ht,logoClickable:Z,logoHidden:we,isTouch:ne!=null?ne:ue,repeat:Be,loop:ot,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:fe.nextVideoTitle,endScreenVideoThumb:fe.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},xt={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi,focusManager:this.focusManager};this.log({message:`create player, props: ${JSON.stringify(Me)}`});let Lt=(a=this.interactiveController)==null?void 0:a.state.statistics$.getValue(),pt=(Lt==null?void 0:Lt.oneStat)||this.createOneStat(e,i),ce=this.createThinOneStat(e,i),ze;Je&&(ze=new vd.MediascopePixel({pixels:Je})),(pt||ce)&&(this.statistics=new fp(pt,ce,ze,Lt==null?void 0:Lt.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Ba(this.uiConfig.sentry,{version:Na,env:Ou},{movieId:Ft,albumId:y,place:_,autoplay:(l=I&&!this.interactiveController)!=null?l:!1,mobile:ne!=null?ne:ue,clip:mt}),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=Bs(Bs({},this.sentry),Ba.getInstance());let dt=!!We,Ut=[],zt="tooltip_interactive_go_back_disabled_first";if(dt&&this.interactiveController){let fi=this.interactiveController.state.isInitialChapter$.getValue(),bi=this.interactiveController.getHistoryState();fi&&Ut.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||Ut.push("SEEK_TO_INTERACTIVE_BUTTON"),bi.hasPrevChapter$.getValue()||(Ut.push("PLAY_PREV_CHAPTER_BUTTON"),fi||(bi.isGoBackLimited$.getValue()?zt="tooltip_interactive_go_back_disabled_limit":zt="tooltip_interactive_go_back_disabled"))}let ri=()=>{var fi;this.isInited=!1,this.prevIsid=void 0;let bi=(o==null?void 0:o.info.isEnded$.getValue())&&((fi=this.interactiveController)==null?void 0:fi.state.isEndChapter$.getValue());k.onReplayInteractiveVideo&&!bi?k.onReplayInteractiveVideo():this.replayInteractiveVideo()},wi=Be&&this.videoConfig.videos.length===1;this.store=Lb({player:o,interfaceLanguage:X,isCyrillicRelatedInterface:re,videoId:Ft,isClip:mt,isLiveCatchUpMode:xe,isAudioDisabled:_e,statAuthToken:S,callbacks:k,webApi:xt,videoEpisodes:Ct,previewThumbsData:oi,canDownload:pe,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:Ut,isInteractive:dt,saveRate:U,interactiveRanges$:(m=this.interactiveController)==null?void 0:m.state.interactiveRanges$,isInteractiveTime$:(p=this.interactiveController)==null?void 0:p.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:ri,playPrevChapterDisabledTooltip:zt,hasInteractiveBranches:!!(($=(f=this.interactiveController)==null?void 0:f.getChapterBranches())!=null&&$.length),additionalButtons:this.uiConfig.features.additionalButtons?j:[],additionalSettingsMenuItems:ie!=null?ie:[],additionalContextMenuItems:De!=null?De:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),onVideoChanged:fi=>{var bi;return(bi=this.sveltePersistentLayerComponent)==null?void 0:bi.startVideoChangedAnimation(fi)},looped:this.uiConfig.features.useLoopSetting?ot:wi,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView,playerId:this.playerId});let{stores:Zi}=this.microStoresRoot=x$(),Dt=()=>{var fi,bi,bt,Jt,Ci,Ji;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(kt=>{var Ke;return(Ke=k==null?void 0:k.onCurrentFormatChanged)==null?void 0:Ke.call(k,kt)})),this.subscription.add(Zi.interactiveControlsOpacity$.subscribe(kt=>{var Ke;kt!==null&&((Ke=this==null?void 0:this.interactiveController)==null||Ke.setDisabledControls(kt))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(kt=>{var Ke;return(Ke=k==null?void 0:k.onThroughputEstimationChanged)==null?void 0:Ke.call(k,kt)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(kt=>{var Ke;return(Ke=k==null?void 0:k.onTrafficSavingEnabledChanged)==null?void 0:Ke.call(k,kt)})),this.subscription.add(this.store.state.highQualityEnabled$.subscribe(kt=>{var Ke;return(Ke=k==null?void 0:k.onHighQualityEnabledChanged)==null?void 0:Ke.call(k,kt)})),this.subscription.add(this.store.state.isAutoQualityEnabled$.subscribe(kt=>{var Ke;return(Ke=k==null?void 0:k.onAutoQualityEnabledChanged)==null?void 0:Ke.call(k,!!kt)})),this.subscription.add(new Hi.Observable(kt=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(Ke=>kt.next(Ke)))}).pipe((0,Hi.skip)(1)).subscribe(kt=>{var Ke;return(Ke=k==null?void 0:k.onCurrentPlaybackRateChanged)==null?void 0:Ke.call(k,kt)})),this.subscription.add(this.store.state.volume$.subscribe(kt=>{var Ke;return(Ke=k==null?void 0:k.onVolumeChange)==null?void 0:Ke.call(k,kt)})),this.subscription.add(this.store.state.muted$.subscribe(kt=>{var Ke,Ii,xo,Io;if(kt)(Ke=k==null?void 0:k.onMute)==null||Ke.call(k);else{let bn=(xo=((Ii=this.store)==null?void 0:Ii.state.volume$)&&ge(this.store.state.volume$))!=null?xo:0;(Io=k==null?void 0:k.onUnmute)==null||Io.call(k,bn)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(kt=>{var Ke;return(Ke=k==null?void 0:k.onVideoBitrateChanged)==null?void 0:Ke.call(k,kt)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(kt=>{var Ke;let Ii=(Ke=this.store)==null?void 0:Ke.ui.controls.disabledControls$;Ii&&(kt&&!Ii.includes(Yd)&&Ii.add(Yd),kt||Ii.remove(Yd))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(kt=>Op(this,null,function*(){var Ke;if(!Zc.clientChecker.browser.isSamsungBrowser||!kt||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&(yield this.replayInteractiveChapter((Ke=this.videoConfig)==null?void 0:Ke.callbacks.onExternalFullscreenExit))}))),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(kt=>{var Ke;return(Ke=k==null?void 0:k.onVSIDChanged)==null?void 0:Ke.call(k,kt)})),this.initMediaSession(),O(tr,{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:ye,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:ke,thumbUrl:Fe,subtitles:Ot,subtitlesForcedLanguage:$e,live:be,preload:C,autoplay:I,muted:P,volume:N,fromTime:E,canRewindLive:A,supportLink:Q,showAds:H,adsSlotId:z,adsParams:nt,adsAutoplayParam:le,duration:Ht,logoClickable:Z,logoHidden:we,isMobile:ne!=null?ne:ue,failoverHosts:Ne,fullScreenTarget:J,saveRate:U,shadowRootContainer:this.shadowRootContainer,showMiniTimer:Te,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:fe.nextVideoTitle,endScreenVideoThumb:fe.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:Ae,showEndScreen:Pe,showAutoplayNext:Ue,adsExternalApi:ee},!0);let ti={target:this.playerContainer,props:n(tr)};this.svelteRootComponent=jr(ng,ti),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(bt=(bi=(fi=this.videoConfig)==null?void 0:fi.callbacks)==null?void 0:bi.onInited)==null||bt.call(bi)),(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&&((Ji=(Ci=this.videoConfig)==null?void 0:Ci.callbacks)!=null&&Ji.onDevNullLog)?md.devNull.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):md.devNull.destroy("ui")};this.coreConfig.asyncResolveClientChecker?Zc.clientChecker.isInited$.subscribe(fi=>{fi&&(console.log("UI SDK async start"),Dt())}):Dt()}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,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:m,initChapterId:p,historyApi:f,videoLoader:$}=this.videoConfig.interactiveData;this.interactiveController=new d({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:u,graph:this.uiConfig.features.interactiveGraph,projectInfo:m,initChapterId:p,historyApi:f,vkVideoLoader:$,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,interactiveTimeOpenUri:this.uiConfig.features.interactiveTimeOpenUri,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat,isTouch:this.videoConfig.isTouch,animationsFeatureToggles:{areaControlShadow:this.uiConfig.features.interactiveAreaControlShadow,controlsExpectTimeBlinkAnimation:this.uiConfig.features.interactiveControlsExpectTimeBlinkAnimation,controlsTapPlace:this.uiConfig.features.interactiveControlsTapPlace,controlsFillAnimation:this.uiConfig.features.interactiveControlsFillAnimation,controlsHideAnimation:this.uiConfig.features.interactiveControlsHideAnimation},endChapterHistoryFix:this.uiConfig.features.interactiveHistoryEndChapterFix});let{isInteractiveExpectation$:y,isSeekable$:_}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(_.subscribe(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]=PC(Bs({},C.config),{title:(m==null?void 0:m.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 N,P,E,A,Q,H;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(jd)),C==="action-choice-canceled"){let Y=ge(this.store.state.isPlaying$)||z;if(((E=(N=this.videoConfig)==null?void 0:N.isTouch)!=null?E:(P=this.videoConfig)!=null&&P.isMobile)&&Y){this.store.ui.interactiveHideMobileControls.set(!0);return}(H=(A=this.videoConfig)==null?void 0:(Q=A.callbacks).onDisabledInteractiveClick)==null||H.call(Q)}})),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(jd)})),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 N,P,E;I.length&&((E=(P=(N=this.videoConfig)==null?void 0:N.callbacks)==null?void 0:P.onInteractiveHistoryChanged)==null||E.call(P,I))}))}(l=(a=this.videoConfig)==null?void 0:a.callbacks)!=null&&l.onInteractiveChapterChanged&&this.subscription.add(this.interactiveController.events.chapterChanged$.subscribe(C=>{var I,N,P;(P=(I=this.videoConfig)==null?void 0:(N=I.callbacks).onInteractiveChapterChanged)==null||P.call(N,C.chapter,C.manifestVideo)})),this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var C,I,N,P;(C=this.microStoresRoot)==null||C.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(P=(I=this.videoConfig)==null?void 0:(N=I.callbacks).onInteractiveTimeIndicatorClick)==null||P.call(N)})),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,m,p,f,$,y,_,S,C,I,N,P,E,A,Q,H,z,Y,le;if(!this.isConnected){this.postponedInitParams=[e,i];return}if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData){let X=new Error("empty videos");this.fatalError$.next(X),(r=(o=e.callbacks)==null?void 0:o.onCrashed)==null||r.call(o,X.message);return}else this.fatalError$.next(null);if(this.videoConfig=Wc(kC,(0,Hi.cloneDeepWith)(e,X=>X instanceof HTMLElement?X:void 0)),this.playerId=(0,Hi.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 Hi.InternalsExposure("ui",this.playerId))),md.devNull.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+((m=this.videoConfig)==null?void 0:m.showAds)],numbers:[(0,Bp.now)()]}),(0,Hi.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(f=(p=this.uiConfig.features.mediaSession)!=null?p:this.videoConfig.isMediaSessionEnabled)!=null?f:!0),(0,Hi.isNonNullable)(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(y=($=this.uiConfig.features.pip)!=null?$: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=Bs({preview:(C=this.uiConfig.ads.preview)!=null?C:this.videoConfig.adsPreviewParam},this.uiConfig.ads.paramsOverride),this.videoConfig.isTouch=(N=(I=this.uiConfig.isMobile)!=null?I:this.videoConfig.isTouch)!=null?N:this.videoConfig.isMobile,(P=this.videoConfig).autoplay&&(P.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(E=this.uiConfig.ads.enable)!=null?E:this.videoConfig.showAds,this.videoConfig.adsSlotId=(A=this.uiConfig.ads.slot)!=null?A:this.videoConfig.adsSlotId,this.videoConfig.logoHidden=!((Q=this.uiConfig.showLogo)!=null?Q:!this.videoConfig.logoHidden),(H=this.videoConfig).canRewindLive&&(H.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(z=this.videoConfig.supportLink)!=null?z:this.uiConfig.supportLink,this.videoConfig.showEndScreen=this.uiConfig.features.endScreen&&this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=this.uiConfig.features.autoplayNext&&this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=this.uiConfig.features.nextPrevButtons&&this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((Y=this.videoConfig.videos)!=null&&Y[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let X={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=Pp.getLatestSupportedVersion(X):this.pictureInPictureApi=new Fa(X)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new Ip:void 0,this.slotsApi=this.uiConfig.features.slots?new wp: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.focusManager=this._shadowRoot?new Np(this._shadowRoot):void 0,this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteErrorComponent),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveSubscription.unsubscribe()),this.videoConfig.interactiveData?this.initInteractives():this.createPlayer(this.videoConfig.videos[this.currentPlayingVideoIndex]),g$(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(le=this.slotsApi)==null||le.init(this.shadowRootContainer,this.store)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateVideos(e,i){if(!this.videoConfig)return;this.log({message:`update ${i} videos, videos: ${JSON.stringify(e)}`}),i==="prev"?(this.videoConfig.videos.splice(0,this.currentPlayingVideoIndex),this.videoConfig.videos.unshift(...e),this.currentPlayingVideoIndex=e.length):i==="next"&&(this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...e));let o=this.getNextVideoInfo();n(tr)&&(n(tr).showNextPrevButtons=this.needToShowNextPrevButtons(),n(tr).nextButtonActive=this.isNextButtonActive(),n(tr).prevButtonActive=this.isPrevButtonActive(),n(tr).endScreenVideoTitle=o.nextVideoTitle,n(tr).endScreenVideoThumb=o.nextVideoThumb,n(tr).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}=Bs({},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(tr)&&(n(tr).needToRepeatPlaylist=this.needToRepeatPlaylist,n(tr).showNextPrevButtons=this.needToShowNextPrevButtons(),n(tr).nextButtonActive=this.isNextButtonActive(),n(tr).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&&La(e)}};var gd=require("@vkontakte/videoplayer-shared/es2015"),Fp=require("@vkontakte/videoplayer-core/es2015"),AC=()=>{window.customElements.define("vk-video-player",Dp)};
|