@vkontakte/videoplayer 1.1.80 → 1.1.81-dev.0b96aed5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es2015.cjs +63 -0
- package/es2015.esm.js +37 -37
- package/es2018.cjs +63 -0
- package/es2018.esm.js +39 -39
- package/es2024.cjs +63 -0
- package/es2024.esm.js +39 -39
- package/esnext.cjs +63 -0
- package/esnext.esm.js +39 -39
- package/evergreen.esm.js +39 -39
- package/package.json +16 -16
- package/types/VKVideoPlayer/HTMLElement.d.ts +2 -0
- package/types/VKVideoPlayer/index.svelte.d.ts +2 -0
- package/types/components/Root/types.d.ts +1 -1
- package/types/config.d.ts +9 -0
- package/types/store/index.d.ts +3 -2
- package/types/store/utils.d.ts +2 -1
- package/types/types/index.d.ts +2 -1
- package/types/utils/userSettings.d.ts +7 -1
- package/types/utils/webAPI/pictureInPictureApi/pictureInPictureApi.d.ts +6 -0
- package/types/utils/webAPI/slotsApi.d.ts +9 -2
- package/es2015.cjs.js +0 -63
- package/es2018.cjs.js +0 -63
- package/es2024.cjs.js +0 -63
- package/esnext.cjs.js +0 -63
package/es2018.cjs
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @vkontakte/videoplayer v1.1.81-dev.0b96aed5.0
|
|
3
|
+
* Tue, 27 Jan 2026 06:13:58 GMT
|
|
4
|
+
* https://st.mycdn.me/static/vkontakte-videoplayer/1-1-81/doc/
|
|
5
|
+
*/
|
|
6
|
+
"use strict";var k$=Object.create;var hd=Object.defineProperty;var P$=Object.getOwnPropertyDescriptor;var A$=Object.getOwnPropertyNames;var L$=Object.getPrototypeOf,M$=Object.prototype.hasOwnProperty;var bg=t=>{throw TypeError(t)};var V$=(t,e,i)=>e in t?hd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var R$=(t,e)=>{for(var i in e)hd(t,i,{get:e[i],enumerable:!0})},$g=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of A$(e))!M$.call(t,r)&&r!==i&&hd(t,r,{get:()=>e[r],enumerable:!(o=P$(e,r))||o.enumerable});return t};var yg=(t,e,i)=>(i=t!=null?k$(L$(t)):{},$g(e||!t||!t.__esModule?hd(i,"default",{value:t,enumerable:!0}):i,t)),N$=t=>$g(hd({},"__esModule",{value:!0}),t);var sr=(t,e,i)=>V$(t,typeof e!="symbol"?e+"":e,i),Gp=(t,e,i)=>e.has(t)||bg("Cannot "+i);var Li=(t,e,i)=>(Gp(t,e,"read from private field"),i?i.call(t):e.get(t)),Ys=(t,e,i)=>e.has(t)?bg("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),_l=(t,e,i,o)=>(Gp(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),xg=(t,e,i)=>(Gp(t,e,"access private method"),i);var ET={};R$(ET,{ControlButtonType:()=>_c,GridTypes:()=>os,InterfaceLanguage:()=>fd.InterfaceLanguage,MenuItemType:()=>Gl,PlayerPhase:()=>ns,VERSION:()=>Oa,VKNumericLanguage:()=>fd.VKNumericLanguage,VideoFormat:()=>Bp.VideoFormat,VideoQuality:()=>Bp.VideoQuality,loadVKLangPack:()=>fd.loadVKLangPack,registerPlayerWebComponent:()=>IT});module.exports=N$(ET);var js="[",Xs="[!",xa="]",cs={};var Ji=Symbol(),Qn=Symbol("filename"),wg=Symbol("hmr"),Sg="http://www.w3.org/1999/xhtml",su="http://www.w3.org/2000/svg";var Yp="@attach";var au=!0;var Tg,Ig,Cg=(Ig=(Tg=globalThis.process)==null?void 0:Tg.env)==null?void 0:Ig.NODE_ENV,Ae=Cg&&!Cg.toLowerCase().startsWith("prod");var ar=Array.isArray,Eg=Array.prototype.indexOf,_d=Array.from,jp=Object.keys,uo=Object.defineProperty,Ko=Object.getOwnPropertyDescriptor,lu=Object.getOwnPropertyDescriptors,Xp=Object.prototype,kg=Array.prototype,wa=Object.getPrototypeOf,Zp=Object.isExtensible;function Zs(t){return typeof t=="function"}var ht=()=>{};function Pg(t){return t()}function Js(t){for(var e=0;e<t.length;e++)t[e]()}var qo=Symbol("$state"),bl=Symbol("legacy props"),Ag=Symbol(""),du=Symbol("proxy path"),cu=1,$l=3,lr=8;function uu(t){return t===this.v}function yl(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Lg(t,e){return t!==e}function xl(t){return!yl(t,this.v)}function Mg(){if(Ae){let t=new Error(`derived_references_self
|
|
7
|
+
A derived value cannot reference itself recursively
|
|
8
|
+
https://svelte.dev/e/derived_references_self`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/derived_references_self")}function Vg(t){if(Ae){let e=new Error(`effect_in_teardown
|
|
9
|
+
\`${t}\` cannot be used inside an effect cleanup function
|
|
10
|
+
https://svelte.dev/e/effect_in_teardown`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_in_teardown")}function Rg(){if(Ae){let t=new Error("effect_in_unowned_derived\nEffect cannot be created inside a `$derived` value that was not itself created inside an effect\nhttps://svelte.dev/e/effect_in_unowned_derived");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Ng(t){if(Ae){let e=new Error(`effect_orphan
|
|
11
|
+
\`${t}\` can only be used inside an effect (e.g. during component initialisation)
|
|
12
|
+
https://svelte.dev/e/effect_orphan`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_orphan")}function Dg(){if(Ae){let t=new Error(`effect_update_depth_exceeded
|
|
13
|
+
Maximum update depth exceeded. This can happen when a reactive block or effect repeatedly sets a new value. Svelte limits the number of nested updates to prevent infinite loops
|
|
14
|
+
https://svelte.dev/e/effect_update_depth_exceeded`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Og(){if(Ae){let t=new Error(`hydration_failed
|
|
15
|
+
Failed to hydrate the application
|
|
16
|
+
https://svelte.dev/e/hydration_failed`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/hydration_failed")}function Bg(){if(Ae){let t=new Error("invalid_snippet\nCould not `{@render}` snippet due to the expression being `null` or `undefined`. Consider using optional chaining `{@render snippet?.()}`\nhttps://svelte.dev/e/invalid_snippet");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/invalid_snippet")}function Hg(t){if(Ae){let e=new Error(`props_invalid_value
|
|
17
|
+
Cannot do \`bind:${t}={undefined}\` when \`${t}\` has a fallback value
|
|
18
|
+
https://svelte.dev/e/props_invalid_value`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/props_invalid_value")}function Fg(t){if(Ae){let e=new Error(`props_rest_readonly
|
|
19
|
+
Rest element properties of \`$props()\` such as \`${t}\` are readonly
|
|
20
|
+
https://svelte.dev/e/props_rest_readonly`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/props_rest_readonly")}function Ug(t){if(Ae){let e=new Error(`rune_outside_svelte
|
|
21
|
+
The \`${t}\` rune is only available inside \`.svelte\` and \`.svelte.js/ts\` files
|
|
22
|
+
https://svelte.dev/e/rune_outside_svelte`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/rune_outside_svelte")}function zg(){if(Ae){let t=new Error("state_descriptors_fixed\nProperty descriptors defined on `$state` objects must contain `value` and always be `enumerable`, `configurable` and `writable`.\nhttps://svelte.dev/e/state_descriptors_fixed");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Wg(){if(Ae){let t=new Error("state_prototype_fixed\nCannot set prototype of `$state` object\nhttps://svelte.dev/e/state_prototype_fixed");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Kg(){if(Ae){let t=new Error("state_unsafe_mutation\nUpdating state inside `$derived(...)`, `$inspect(...)` or a template expression is forbidden. If the value should not be reactive, declare it without `$state`\nhttps://svelte.dev/e/state_unsafe_mutation");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_unsafe_mutation")}var us=!1,ps=!1;function qg(){us=!0}var bd=null;function Is(t){let e=Error(),i=e.stack;if(i){let o=i.split(`
|
|
23
|
+
`),r=[`
|
|
24
|
+
`];for(let a=0;a<o.length;a++){let l=o[a];if(l!=="Error"){if(l.includes("validate_each_keys"))return null;l.includes("svelte/src/internal")||r.push(l)}}if(r.length===1)return null;uo(e,"stack",{value:r.join(`
|
|
25
|
+
`)}),uo(e,"name",{value:`${t}Error`})}return e}function Yr(t,e){return t.label=e,pu(t.v,e),t}function pu(t,e){var i;return(i=t==null?void 0:t[du])==null||i.call(t,e),t}function wl(t){if(Ae){let e=new Error(`lifecycle_outside_component
|
|
26
|
+
\`${t}(...)\` can only be used during component initialisation
|
|
27
|
+
https://svelte.dev/e/lifecycle_outside_component`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/lifecycle_outside_component")}var zt=null;function $d(t){zt=t}var dr=null;function yd(t){dr=t}function Sl(t){return tf("getContext").get(t)}function Cl(t,e){return tf("setContext").set(t,e),e}function xd(){return tf("getAllContexts")}function B(t,e=!1,i){var o=zt={p:zt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};us&&!e&&(zt.l={s:null,u:null,r1:[],r2:Pr(!1)}),Ao(()=>{o.d=!0}),Ae&&(zt.function=i,dr=i)}function H(t){var l,d;let e=zt;if(e!==null){t!==void 0&&(e.x=t);let s=e.e;if(s!==null){var i=$t,o=Dt;e.e=null;try{for(var r=0;r<s.length;r++){var a=s[r];po(a.effect),Wi(a.reaction),Lo(a.fn)}}finally{po(i),Wi(o)}}zt=e.p,Ae&&(dr=(d=(l=e.p)==null?void 0:l.function)!=null?d:null),e.m=!0}return t||{}}function fs(){return!us||zt!==null&&zt.l===null}function tf(t){var e;return zt===null&&wl(t),(e=zt.c)!=null?e:zt.c=new Map(O$(zt)||void 0)}function O$(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var B$=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function si(t){if(typeof t!="object"||t===null||qo in t)return t;let e=wa(t);if(e!==Xp&&e!==kg)return t;var i=new Map,o=ar(t),r=q(0),a=Ae&&ps?Is("CreatedAt"):null,l=Dt,d=f=>{var p=Dt;Wi(l);var v=f();return Wi(p),v};o&&i.set("length",q(t.length,a));var s="";function u(f){s=f,Yr(r,`${s} version`);for(let[p,v]of i)Yr(v,Sa(s,p))}return new Proxy(t,{defineProperty(f,p,v){(!("value"in v)||v.configurable===!1||v.enumerable===!1||v.writable===!1)&&zg();var _=i.get(p);return _===void 0?_=d(()=>{var y=q(v.value,a);return i.set(p,y),Ae&&typeof p=="string"&&Yr(y,Sa(s,p)),y}):R(_,v.value,!0),!0},deleteProperty(f,p){var v=i.get(p);if(v===void 0){if(p in f){let b=d(()=>q(Ji,a));i.set(p,b),of(r),Ae&&Yr(b,Sa(s,p))}}else{if(o&&typeof p=="string"){var _=i.get("length"),y=Number(p);Number.isInteger(y)&&y<_.v&&R(_,y)}R(v,Ji),of(r)}return!0},get(f,p,v){var w;if(p===qo)return t;if(Ae&&p===du)return u;var _=i.get(p),y=p in f;if(_===void 0&&(!y||(w=Ko(f,p))!=null&&w.writable)&&(_=d(()=>{var I=si(y?f[p]:Ji),T=q(I,a);return Ae&&Yr(T,Sa(s,p)),T}),i.set(p,_)),_!==void 0){var b=n(_);return b===Ji?void 0:b}return Reflect.get(f,p,v)},getOwnPropertyDescriptor(f,p){var v=Reflect.getOwnPropertyDescriptor(f,p);if(v&&"value"in v){var _=i.get(p);_&&(v.value=n(_))}else if(v===void 0){var y=i.get(p),b=y==null?void 0:y.v;if(y!==void 0&&b!==Ji)return{enumerable:!0,configurable:!0,value:b,writable:!0}}return v},has(f,p){var b;if(p===qo)return!0;var v=i.get(p),_=v!==void 0&&v.v!==Ji||Reflect.has(f,p);if(v!==void 0||$t!==null&&(!_||(b=Ko(f,p))!=null&&b.writable)){v===void 0&&(v=d(()=>{var w=_?si(f[p]):Ji,I=q(w,a);return Ae&&Yr(I,Sa(s,p)),I}),i.set(p,v));var y=n(v);if(y===Ji)return!1}return _},set(f,p,v,_){var k;var y=i.get(p),b=p in f;if(o&&p==="length")for(var w=v;w<y.v;w+=1){var I=i.get(w+"");I!==void 0?R(I,Ji):w in f&&(I=d(()=>q(Ji,a)),i.set(w+"",I),Ae&&Yr(I,Sa(s,w)))}if(y===void 0)(!b||(k=Ko(f,p))!=null&&k.writable)&&(y=d(()=>q(void 0,a)),R(y,si(v)),i.set(p,y),Ae&&Yr(y,Sa(s,p)));else{b=y.v!==Ji;var T=d(()=>si(v));R(y,T)}var N=Reflect.getOwnPropertyDescriptor(f,p);if(N!=null&&N.set&&N.set.call(_,v),!b){if(o&&typeof p=="string"){var A=i.get("length"),E=Number(p);Number.isInteger(E)&&E>=A.v&&R(A,E+1)}of(r)}return!0},ownKeys(f){n(r);var p=Reflect.ownKeys(f).filter(y=>{var b=i.get(y);return b===void 0||b.v!==Ji});for(var[v,_]of i)_.v!==Ji&&!(v in f)&&p.push(v);return p},setPrototypeOf(){Wg()}})}function Sa(t,e){var i;return typeof e=="symbol"?`${t}[Symbol(${(i=e.description)!=null?i:""})]`:B$.test(e)?`${t}.${e}`:/^\d+$/.test(e)?`${t}[${e}]`:`${t}['${e}']`}function of(t,e=1){R(t,t.v+e)}function Tl(t){try{if(t!==null&&typeof t=="object"&&qo in t)return t[qo]}catch(e){}return t}function nf(t,e){return Object.is(Tl(t),Tl(e))}function jr(t){var e=2050,i=Dt!==null&&(Dt.f&2)!==0?Dt:null;$t===null||i!==null&&(i.f&256)!==0?e|=256:$t.f|=1048576;let o={ctx:zt,deps:null,effects:null,equals:uu,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:$t};return Ae&&ps&&(o.created=Is("CreatedAt")),o}function m(t){let e=jr(t);return vu(e),e}function In(t){let e=jr(t);return e.equals=xl,e}function fu(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)Ki(e[i])}}var rf=[];function H$(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function lf(t){var e,i=$t;if(po(H$(t)),Ae){let o=Ca;sf(new Set);try{rf.includes(t)&&Mg(),rf.push(t),fu(t),e=mu(t)}finally{po(i),sf(o),rf.pop()}}else try{fu(t),e=mu(t)}finally{po(i)}return e}function df(t){var e=lf(t);if(t.equals(e)||(t.v=e,t.wv=wd()),!Es){var i=(ks||(t.f&256)!==0)&&t.deps!==null?4096:1024;En(t,i)}}var Ca=new Set,Il=new Map;function sf(t){Ca=t}function Pr(t,e){var i={f:0,v:t,reactions:null,equals:uu,rv:0,wv:0};return Ae&&ps&&(i.created=e!=null?e:Is("CreatedAt"),i.updated=null,i.set_during_effect=!1,i.trace=null),i}function q(t,e){let i=Pr(t,e);return vu(i),i}function ms(t,e=!1,i=!0){var r,a;let o=Pr(t);return e||(o.equals=xl),us&&i&&zt!==null&&zt.l!==null&&((a=(r=zt.l).s)!=null?a:r.s=[]).push(o),o}function R(t,e,i=!1){var r;Dt!==null&&(!pr||(Dt.f&262144)!==0)&&fs()&&(Dt.f&262162)!==0&&!((r=Go)!=null&&r[1].includes(t)&&Go[0]===Dt)&&Kg();let o=i?si(e):e;return Ae&&pu(o,t.label),El(t,o)}function El(t,e){if(!t.equals(e)){var i=t.v;if(Es?Il.set(t,e):Il.set(t,i),t.v=e,Ae&&ps&&(t.updated=Is("UpdatedAt"),$t!==null&&(t.set_during_effect=!0)),(t.f&2)!==0&&((t.f&2048)!==0&&lf(t),En(t,(t.f&256)===0?1024:4096)),t.wv=wd(),Gg(t,2048),fs()&&$t!==null&&($t.f&1024)!==0&&($t.f&96)===0&&(ur===null?Yg([t]):ur.push(t)),Ae&&Ca.size>0){let o=Array.from(Ca);for(let r of o)(r.f&1024)!==0&&En(r,4096),Ia(r)&&kl(r);Ca.clear()}}return e}function Gg(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(Ae&&(d&262144)!==0){Ca.add(l);continue}En(l,e),(d&1280)!==0&&((d&2)!==0?Gg(l,4096):Cd(l))}}}var Pl="font-weight: bold",Al="font-weight: normal";function jg(t,e,i){Ae?console.warn(`%c[svelte] hydration_attribute_changed
|
|
28
|
+
%cThe \`${t}\` attribute on \`${e}\` changed its value between server and client renders. The client value, \`${i}\`, will be ignored in favour of the server value
|
|
29
|
+
https://svelte.dev/e/hydration_attribute_changed`,Pl,Al):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function Xg(t){Ae?console.warn(`%c[svelte] hydration_html_changed
|
|
30
|
+
%c${t?`The value of an \`{@html ...}\` block ${t} changed between server and client renders. The client value will be ignored in favour of the server value`:"The value of an `{@html ...}` block changed between server and client renders. The client value will be ignored in favour of the server value"}
|
|
31
|
+
https://svelte.dev/e/hydration_html_changed`,Pl,Al):console.warn("https://svelte.dev/e/hydration_html_changed")}function ea(t){Ae?console.warn(`%c[svelte] hydration_mismatch
|
|
32
|
+
%c${t?`Hydration failed because the initial UI does not match what was rendered on the server. The error occurred near ${t}`:"Hydration failed because the initial UI does not match what was rendered on the server"}
|
|
33
|
+
https://svelte.dev/e/hydration_mismatch`,Pl,Al):console.warn("https://svelte.dev/e/hydration_mismatch")}function Zg(){Ae?console.warn(`%c[svelte] lifecycle_double_unmount
|
|
34
|
+
%cTried to unmount a component that was not mounted
|
|
35
|
+
https://svelte.dev/e/lifecycle_double_unmount`,Pl,Al):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function Jg(){Ae?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",Pl,Al):console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function gu(t){Ae?console.warn(`%c[svelte] state_proxy_equality_mismatch
|
|
36
|
+
%cReactive \`$state(...)\` proxies and the values they proxy have different identities. Because of this, comparisons with \`${t}\` will produce unexpected results
|
|
37
|
+
https://svelte.dev/e/state_proxy_equality_mismatch`,Pl,Al):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var it=!1;function fo(t){it=t}var yt;function wi(t){if(t===null)throw ea(),cs;return yt=t}function qi(){return wi(Yo(yt))}function S(t){if(it){if(Yo(yt)!==null)throw ea(),cs;yt=t}}function ai(t=1){if(it){for(var e=t,i=yt;e--;)i=Yo(i);yt=i}}function Ea(){for(var t=0,e=yt;;){if(e.nodeType===lr){var i=e.data;if(i===xa){if(t===0)return e;t-=1}else(i===js||i===Xs)&&(t+=1)}var o=Yo(e);e.remove(),e=o}}function hu(t){if(!t||t.nodeType!==lr)throw ea(),cs;return t.data}function eh(){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(Tl(this[s])===a){gu("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(Tl(this[s])===a){gu("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(Tl(this[s])===a){gu("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=r}}var ka,th,Td,ih,oh;function _u(){if(ka===void 0){ka=window,th=document,Td=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;ih=Ko(e,"firstChild").get,oh=Ko(e,"nextSibling").get,Zp(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),Zp(i)&&(i.__t=void 0),Ae&&(t.__svelte_meta=null,eh())}}function kn(t=""){return document.createTextNode(t)}function Si(t){return ih.call(t)}function Yo(t){return oh.call(t)}function C(t,e){if(!it)return Si(t);var i=Si(yt);if(i===null)i=yt.appendChild(kn());else if(e&&i.nodeType!==$l){var o=kn();return i==null||i.before(o),wi(o),o}return wi(i),i}function ce(t,e){var r,a;if(!it){var i=Si(t);return i.nodeType===8&&i.data===""?Yo(i):i}if(e&&((r=yt)==null?void 0:r.nodeType)!==$l){var o=kn();return(a=yt)==null||a.before(o),wi(o),o}return yt}function P(t,e=1,i=!1){let o=it?yt:t;for(var r;e--;)r=o,o=Yo(o);if(!it)return o;if(i&&(o==null?void 0:o.nodeType)!==$l){var a=kn();return o===null?r==null||r.after(a):o.before(a),wi(a),a}return wi(o),o}function Id(t){t.textContent=""}function pf(t){$t===null&&Dt===null&&Ng(t),Dt!==null&&(Dt.f&256)!==0&&$t===null&&Rg(),Es&&Vg(t)}function F$(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function Pa(t,e,i,o=!0){var s;var r=$t;if(Ae)for(;r!==null&&(r.f&262144)!==0;)r=r.parent;var a={ctx:zt,deps:null,nodes_start:null,nodes_end:null,f:t|2048,first:null,fn:e,last:null,next:null,parent:r,prev:null,teardown:null,transitions:null,wv:0};if(Ae&&(a.component_function=dr),i)try{kl(a),a.f|=32768}catch(u){throw Ki(a),u}else e!==null&&Cd(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&&F$(a,r),Dt!==null&&(Dt.f&2)!==0)){var d=Dt;((s=d.effects)!=null?s:d.effects=[]).push(a)}return a}function Ao(t){let e=Pa(8,null,!1);return En(e,1024),e.teardown=t,e}function Oe(t){var r;pf("$effect");var e=$t!==null&&($t.f&32)!==0&&zt!==null&&!zt.m;if(Ae&&uo(t,"name",{value:"$effect"}),e){var i=zt;((r=i.e)!=null?r:i.e=[]).push({fn:t,effect:$t,reaction:Dt})}else{var o=Lo(t);return o}}function Pd(t){return pf("$effect.pre"),Ae&&uo(t,"name",{value:"$effect.pre"}),jo(t)}function yu(t){let e=Pa(64,t,!0);return()=>{Ki(e)}}function rh(t){let e=Pa(64,t,!0);return(i={})=>new Promise(o=>{i.outro?Xn(e,()=>{Ki(e),o(void 0)}):(Ki(e),o(void 0))})}function Lo(t){return Pa(4,t,!1)}function jo(t){return Pa(8,t,!0)}function D(t,e=[],i=jr){if(Ae)return jo(()=>{var r=$t,a=()=>t(...l.map(n));uo(r.fn,"name",{value:"{expression}"}),uo(a,"name",{value:"{expression}"});let l=e.map(i);Qi(a)});let o=e.map(i);return Qi(()=>t(...o.map(n)))}function Qi(t,e=0){return Pa(24|e,t,!0)}function Mi(t,e=!0){return Pa(40,t,!0,e)}function ff(t){var e=t.teardown;if(e!==null){let i=Es,o=Dt;cf(!0),Wi(null);try{e.call(null)}finally{cf(i),Wi(o)}}}function mf(t,e=!1){var i=t.first;for(t.first=t.last=null;i!==null;){var o=i.next;(i.f&64)!==0?i.parent=null:Ki(i,e),i=o}}function sh(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&Ki(e),e=i}}function Ki(t,e=!0){var i=!1;(e||(t.f&524288)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(vf(t.nodes_start,t.nodes_end),i=!0),mf(t,e&&!i),Ad(t,0),En(t,16384);var o=t.transitions;if(o!==null)for(let a of o)a.stop();ff(t);var r=t.parent;r!==null&&r.first!==null&&gf(t),Ae&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function vf(t,e){for(;t!==null;){var i=t===e?null:Yo(t);t.remove(),t=i}}function gf(t){var e=t.parent,i=t.prev,o=t.next;i!==null&&(i.next=o),o!==null&&(o.prev=i),e!==null&&(e.first===t&&(e.first=o),e.last===t&&(e.last=i))}function Xn(t,e){var i=[];xu(t,i,!0),hf(i,()=>{Ki(t),e&&e()})}function hf(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var r of t)r.out(o)}else e()}function xu(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;xu(o,e,a?i:!1),o=r}}}function As(t){ah(t,!0)}function ah(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;ah(i,r?e:!1),i=o}if(t.transitions!==null)for(let a of t.transitions)(a.is_global||e)&&a.in()}}var Ld=[],_f=[];function lh(){var t=Ld;Ld=[],Js(t)}function U$(){var t=_f;_f=[],Js(t)}function Pn(t){Ld.length===0&&queueMicrotask(lh),Ld.push(t)}function dh(){Ld.length>0&&lh(),_f.length>0&&U$()}function uh(t){var e=$t;if(Ae&&t instanceof Error&&z$(t,e),(e.f&32768)===0){if((e.f&128)===0)throw t;e.fn(t)}else Md(t,e)}function Md(t,e){for(;e!==null;){if((e.f&128)!==0)try{e.fn(t);return}catch(i){}e=e.parent}throw t}var ch=new WeakSet;function z$(t,e){var l,d;if(ch.has(t))return;ch.add(t);let i=Ko(t,"message");if(!(i&&!i.configurable)){for(var o=Td?" ":" ",r=`
|
|
38
|
+
${o}in ${((l=e.fn)==null?void 0:l.name)||"<unknown>"}`,a=e.ctx;a!==null;)r+=`
|
|
39
|
+
${o}in ${(d=a.function)==null?void 0:d[Qn].split("/").pop()}`,a=a.p;uo(t,"message",{value:t.message+`
|
|
40
|
+
${r}
|
|
41
|
+
`}),t.stack&&uo(t,"stack",{value:t.stack.split(`
|
|
42
|
+
`).filter(s=>!s.includes("svelte/src/internal")).join(`
|
|
43
|
+
`)})}}var Aa=!1,Ll=null,La=!1,Es=!1;function cf(t){Es=t}var Vd=[],Rd=[],Dt=null,pr=!1;function Wi(t){Dt=t}var $t=null;function po(t){$t=t}var Go=null;function vu(t){Dt!==null&&Dt.f&2097152&&(Go===null?Go=[Dt,[t]]:Go[1].push(t))}var An=null,fr=0,ur=null;function Yg(t){ur=t}var mh=1,Su=0,ks=!1,Cu=null;function wd(){return++mh}function Ia(t){var p,v;var e=t.f;if((e&2048)!==0)return!0;if((e&4096)!==0){var i=t.deps,o=(e&256)!==0;if(i!==null){var r,a,l=(e&512)!==0,d=o&&$t!==null&&!ks,s=i.length;if(l||d){var u=t,f=u.parent;for(r=0;r<s;r++)a=i[r],(l||!((p=a==null?void 0:a.reactions)!=null&&p.includes(u)))&&((v=a.reactions)!=null?v:a.reactions=[]).push(u);l&&(u.f^=512),d&&f!==null&&(f.f&256)===0&&(u.f^=256)}for(r=0;r<s;r++)if(a=i[r],Ia(a)&&df(a),a.wv>t.wv)return!0}(!o||$t!==null&&!ks)&&En(t,1024)}return!1}function vh(t,e,i=!0){var o=t.reactions;if(o!==null)for(var r=0;r<o.length;r++){var a=o[r];Go!=null&&Go[1].includes(t)&&Go[0]===Dt||((a.f&2)!==0?vh(a,e,!1):e===a&&(i?En(a,2048):(a.f&1024)!==0&&En(a,4096),Cd(a)))}}function mu(t){var _,y;var e=An,i=fr,o=ur,r=Dt,a=ks,l=Go,d=zt,s=pr,u=t.f;An=null,fr=0,ur=null,ks=(u&256)!==0&&(pr||!La||Dt===null),Dt=(u&96)===0?t:null,Go=null,$d(t.ctx),pr=!1,Su++,t.f|=2097152;try{var f=(0,t.fn)(),p=t.deps;if(An!==null){var v;if(Ad(t,fr),p!==null&&fr>0)for(p.length=fr+An.length,v=0;v<An.length;v++)p[fr+v]=An[v];else t.deps=p=An;if(!ks||(u&2)!==0&&t.reactions!==null)for(v=fr;v<p.length;v++)((y=(_=p[v]).reactions)!=null?y:_.reactions=[]).push(t)}else p!==null&&fr<p.length&&(Ad(t,fr),p.length=fr);if(fs()&&ur!==null&&!pr&&p!==null&&(t.f&6146)===0)for(v=0;v<ur.length;v++)vh(ur[v],t);return r!==null&&r!==t&&(Su++,ur!==null&&(o===null?o=ur:o.push(...ur))),f}catch(b){uh(b)}finally{An=e,fr=i,ur=o,Dt=r,ks=a,Go=l,$d(d),pr=s,t.f^=2097152}}function W$(t,e){let i=e.reactions;if(i!==null){var o=Eg.call(i,t);if(o!==-1){var r=i.length-1;r===0?i=e.reactions=null:(i[o]=i[r],i.pop())}}i===null&&(e.f&2)!==0&&(An===null||!An.includes(e))&&(En(e,4096),(e.f&768)===0&&(e.f^=512),fu(e),Ad(e,0))}function Ad(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)W$(t,i[o])}function kl(t){var e=t.f;if((e&16384)===0){En(t,1024);var i=$t,o=La;if($t=t,La=!0,Ae){var r=dr;yd(t.component_function)}try{(e&16)!==0?sh(t):mf(t),ff(t);var a=mu(t);if(t.teardown=typeof a=="function"?a:null,t.wv=mh,Ae&&ps&&(t.f&2048)!==0&&t.deps!==null)for(var l of t.deps)l.set_during_effect&&(l.wv=wd(),l.set_during_effect=!1);Ae&&Rd.push(t)}finally{La=o,$t=i,Ae&&yd(r)}}}function ph(){console.error("Last ten effects were: ",Rd.slice(-10).map(t=>t.fn)),Rd=[]}function K$(){try{Dg()}catch(t){if(Ae&&uo(t,"stack",{value:""}),Ll!==null)if(Ae)try{Md(t,Ll)}catch(e){throw ph(),e}else Md(t,Ll);else throw Ae&&ph(),t}}function $f(){var t=La;try{var e=0;for(La=!0;Vd.length>0;){e++>1e3&&K$();var i=Vd,o=i.length;Vd=[];for(var r=0;r<o;r++){var a=Q$(i[r]);q$(a)}Il.clear()}}finally{Aa=!1,La=t,Ll=null,Ae&&(Rd=[])}}function q$(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];(o.f&24576)===0&&Ia(o)&&(kl(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?gf(o):o.fn=null))}}function Cd(t){Aa||(Aa=!0,queueMicrotask($f));for(var e=Ll=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}Vd.push(e)}function Q$(t){for(var e=[],i=t;i!==null;){var o=i.f,r=(o&96)!==0,a=r&&(o&1024)!==0;if(!a&&(o&8192)===0){(o&4)!==0?e.push(i):r?i.f^=1024:Ia(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 Ml(t){var e;for(t&&(Aa=!0,$f(),Aa=!0,e=t());;){if(dh(),Vd.length===0)return Aa=!1,Ll=null,Ae&&(Rd=[]),e;Aa=!0,$f()}}async function mo(){await Promise.resolve(),Ml()}function n(t){var e=t.f,i=(e&2)!==0;if(Cu!==null&&Cu.add(t),Dt!==null&&!pr){if(!(Go!=null&&Go[1].includes(t))||Go[0]!==Dt){var o=Dt.deps;t.rv<Su&&(t.rv=Su,An===null&&o!==null&&o[fr]===t?fr++:An===null?An=[t]:(!ks||!An.includes(t))&&An.push(t))}}else if(i&&t.deps===null&&t.effects===null){var r=t,a=r.parent;a!==null&&(a.f&256)===0&&(r.f^=256)}if(i&&(r=t,Ia(r)&&df(r)),Ae&&ps&&!pr&&bd!==null&&Dt!==null&&bd.reaction===Dt)if(t.trace)t.trace();else{var l=Is("TracedAt");if(l){var d=bd.entries.get(t);d===void 0&&(d={traces:[]},bd.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 Es&&Il.has(t)?Il.get(t):t.v}function Et(t){var e=pr;try{return pr=!0,t()}finally{pr=e}}var G$=-7169;function En(t,e){t.f=t.f&G$|e}function Iu(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(qo in t)Tu(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&qo in i&&Tu(i)}}}function Tu(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{Tu(t[o],e)}catch(r){}let i=wa(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=lu(i);for(let r in o){let a=o[r].get;if(a)try{a.call(t)}catch(l){}}}}}function yf(t,e){if(e){let i=document.body;t.autofocus=!0,Pn(()=>{document.activeElement===i&&t.focus()})}}function Nd(t){var e=Dt,i=$t;Wi(null),po(null);try{return t()}finally{Wi(e),po(i)}}var xf=new Set,Eu=new Set;function Ma(t){if(!it)return;t.removeAttribute("onload"),t.removeAttribute("onerror");let e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function wf(t,e,i,o={}){function r(a){if(o.capture||Vl.call(e,a),!a.cancelBubble)return Nd(()=>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 ut(t,e,i,o,r){var a={capture:o,passive:r},l=wf(t,e,i,a);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Ao(()=>{e.removeEventListener(t,l,a)})}function je(t){for(var e=0;e<t.length;e++)xf.add(t[e]);for(var i of Eu)i(t)}function Vl(t){var T;var e=this,i=e.ownerDocument,o=t.type,r=((T=t.composedPath)==null?void 0:T.call(t))||[],a=r[0]||t.target,l=0,d=t.__root;if(d){var s=r.indexOf(d);if(s!==-1&&(e===document||e===window)){t.__root=e;return}var u=r.indexOf(e);if(u===-1)return;s<=u&&(l=s)}if(a=r[l]||t.target,a!==e){uo(t,"currentTarget",{configurable:!0,get(){return a||i}});var f=Dt,p=$t;Wi(null),po(null);try{for(var v,_=[];a!==null;){var y=a.assignedSlot||a.parentNode||a.host||null;try{var b=a["__"+o];if(b!=null&&(!a.disabled||t.target===a))if(ar(b)){var[w,...I]=b;w.apply(a,[t,...I])}else b.call(a,t)}catch(N){v?_.push(N):v=N}if(t.cancelBubble||y===e||y===null)break;a=y}if(v){for(let N of _)queueMicrotask(()=>{throw N});throw v}}finally{t.__root=e,delete t.currentTarget,Wi(f),po(p)}}}var j$;function gh(){j$=void 0}function Rl(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function Mo(t,e){var i=$t;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function L(t,e){var i=(e&1)!==0,o=(e&2)!==0,r,a=!t.startsWith("<!>");return()=>{if(it)return Mo(yt,null),yt;r===void 0&&(r=Rl(a?t:"<!>"+t),i||(r=Si(r)));var l=o||Td?document.importNode(r,!0):r.cloneNode(!0);if(i){var d=Si(l),s=l.lastChild;Mo(d,s)}else Mo(l,l);return l}}function J$(t,e,i="svg"){var o=!t.startsWith("<!>"),r=(e&1)!==0,a=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(it)return Mo(yt,null),yt;if(!l){var d=Rl(a),s=Si(d);if(r)for(l=document.createDocumentFragment();Si(s);)l.appendChild(Si(s));else l=Si(s)}var u=l.cloneNode(!0);if(r){var f=Si(u),p=u.lastChild;Mo(f,p)}else Mo(u,u);return u}}function Ie(t,e){return J$(t,e,"svg")}function vs(t=""){if(!it){var e=kn(t+"");return Mo(e,e),e}var i=yt;return i.nodeType!==$l&&(i.before(i=kn()),wi(i)),Mo(i,i),i}function Le(){if(it)return Mo(yt,null),yt;var t=document.createDocumentFragment(),e=document.createComment(""),i=kn();return t.append(e,i),Mo(e,i),t}function $(t,e){if(it){$t.nodes_end=yt,qi();return}t!==null&&t.before(e)}var e1=/\r/g;function _h(t){t=t.replace(e1,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function bh(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var t1=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function $h(t){return t1.includes(t)}var i1=["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 o1={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 yh(t){var e;return t=t.toLowerCase(),(e=o1[t])!=null?e:t}var gk=[...i1,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var n1=["touchstart","touchmove"];function xh(t){return n1.includes(t)}var r1=["$state","$state.raw","$derived","$derived.by"],hk=[...r1,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var s1=["textarea","script","style","title"];function wh(t){return s1.includes(t)}function ku(t){return t==null?void 0:t.replace(/\//g,"/")}var Dd=!0;function Pu(t){Dd=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 Sh(t,e)}function Cf(t,e){var l;_u(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=it,r=yt;try{for(var a=Si(i);a&&(a.nodeType!==lr||a.data!==js);)a=Yo(a);if(!a)throw cs;fo(!0),wi(a),qi();let d=Sh(t,{...e,anchor:a});if(yt===null||yt.nodeType!==lr||yt.data!==xa)throw ea(),cs;return fo(!1),d}catch(d){if(d===cs)return e.recover===!1&&Og(),_u(),Id(i),fo(!1),Jr(t,e);throw d}finally{fo(o),wi(r),gh()}}var Nl=new Map;function Sh(t,{target:e,anchor:i,props:o={},events:r,context:a,intro:l=!0}){_u();var d=new Set,s=p=>{for(var v=0;v<p.length;v++){var _=p[v];if(!d.has(_)){d.add(_);var y=xh(_);e.addEventListener(_,Vl,{passive:y});var b=Nl.get(_);b===void 0?(document.addEventListener(_,Vl,{passive:y}),Nl.set(_,1)):Nl.set(_,b+1)}}};s(_d(xf)),Eu.add(s);var u=void 0,f=rh(()=>{var p=i!=null?i:e.appendChild(kn());return Mi(()=>{if(a){B({});var v=zt;v.c=a}r&&(o.$$events=r),it&&Mo(p,null),Dd=l,u=t(p,o)||{},Dd=!0,it&&($t.nodes_end=yt),a&&H()}),()=>{var y;for(var v of d){e.removeEventListener(v,Vl);var _=Nl.get(v);--_===0?(document.removeEventListener(v,Vl),Nl.delete(v)):Nl.set(v,_)}Eu.delete(s),p!==i&&((y=p.parentNode)==null||y.removeChild(p))}});return Sf.set(u,f),u}var Sf=new WeakMap;function Va(t,e){let i=Sf.get(t);return i?(Sf.delete(t),i(e)):(Ae&&Zg(),Promise.resolve())}function ii(t,e,...i){var o=t,r=ht,a;Qi(()=>{r!==(r=e())&&(a&&(Ki(a),a=null),Ae&&r==null&&Bg(),a=Mi(()=>r(o,...i)))},65536),it&&(o=yt)}if(Ae){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;Ug(e)},set:o=>{i=o}})}};c1=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var c1;function Vt(t){zt===null&&wl("onMount"),us&&zt.l!==null?d1(zt).m.push(t):Oe(()=>{let e=Et(t);if(typeof e=="function")return e})}function cn(t){zt===null&&wl("onDestroy"),Vt(()=>()=>Et(t))}function d1(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}var Ch=new Map;function Th(t,e){var i=Ch.get(t);i||(i=new Set,Ch.set(t,i)),i.add(e)}function V(t,e,[i,o]=[0,0]){it&&i===0&&qi();var r=t,a=null,l=null,d=Ji,s=i>0?65536:0,u=!1;let f=(v,_=!0)=>{u=!0,p(_,v)},p=(v,_)=>{if(d===(d=v))return;let y=!1;if(it&&o!==-1){if(i===0){let w=hu(r);w===js?o=0:w===Xs?o=1/0:(o=parseInt(w.substring(1)),o!==o&&(o=d?1/0:-1))}let b=o>i;!!d===b&&(r=Ea(),wi(r),fo(!1),y=!0,o=-1)}d?(a?As(a):_&&(a=Mi(()=>_(r))),l&&Xn(l,()=>{l=null})):(l?As(l):_&&(l=Mi(()=>_(r,[i+1,o]))),a&&Xn(a,()=>{a=null})),y&&fo(!0)};Qi(()=>{u=!1,e(f),u||p(null,null)},s),it&&(r=yt)}function Ls(t,e,i){it&&qi();var o=t,r=Ji,a,l=fs()?Lg:yl;Qi(()=>{l(r,r=e())&&(a&&Xn(a),a=Mi(()=>i(o)))}),it&&(o=yt)}var ia=null;function Ef(t){ia=t}function Od(t,e){return e}function f1(t,e,i,o){for(var r=[],a=e.length,l=0;l<a;l++)xu(e[l].e,r,!0);var d=a>0&&r.length===0&&i!==null;if(d){var s=i.parentNode;Id(s),s.append(i),o.clear(),ta(t,e[0].prev,e[a-1].next)}hf(r,()=>{for(var u=0;u<a;u++){var f=e[u];d||(o.delete(f.k),ta(t,f.prev,f.next)),Ki(f.e,!d)}})}function $i(t,e,i,o,r,a=null){var l=t,d={flags:e,items:new Map,first:null},s=(e&4)!==0;if(s){var u=t;l=it?wi(Si(u)):u.appendChild(kn())}it&&qi();var f=null,p=!1,v=In(()=>{var _=i();return ar(_)?_:_==null?[]:_d(_)});Qi(()=>{var _=n(v),y=_.length;if(p&&y===0)return;p=y===0;let b=!1;if(it){var w=hu(l)===Xs;w!==(y===0)&&(l=Ea(),wi(l),fo(!1),b=!0)}if(it){for(var I=null,T,N=0;N<y;N++){if(yt.nodeType===lr&&yt.data===xa){l=yt,b=!0,fo(!1);break}var A=_[N],E=o(A,N);T=kh(yt,d,I,null,A,E,N,r,e,i),d.items.set(E,T),I=T}y>0&&wi(Ea())}it||m1(_,d,l,r,e,o,i),a!==null&&(y===0?f?As(f):f=Mi(()=>a(l)):f!==null&&Xn(f,()=>{f=null})),b&&fo(!0),n(v)}),it&&(l=yt)}function m1(t,e,i,o,r,a,l){var J,Ce,pe,ee;var d=(r&8)!==0,s=(r&3)!==0,u=t.length,f=e.items,p=e.first,v=p,_,y=null,b,w=[],I=[],T,N,A,E;if(d)for(E=0;E<u;E+=1)T=t[E],N=a(T,E),A=f.get(N),A!==void 0&&((J=A.a)==null||J.measure(),(b!=null?b:b=new Set).add(A));for(E=0;E<u;E+=1){if(T=t[E],N=a(T,E),A=f.get(N),A===void 0){var k=v?v.e.nodes_start:i;y=kh(k,e,y,y===null?e.first:y.next,T,N,E,o,r,l),f.set(N,y),w=[],I=[],v=y.next;continue}if(s&&v1(A,T,E,r),(A.e.f&8192)!==0&&(As(A.e),d&&((Ce=A.a)==null||Ce.unfix(),(b!=null?b:b=new Set).delete(A))),A!==v){if(_!==void 0&&_.has(A)){if(w.length<I.length){var Q=I[0],F;y=Q.prev;var z=w[0],X=w[w.length-1];for(F=0;F<w.length;F+=1)Ih(w[F],Q,i);for(F=0;F<I.length;F+=1)_.delete(I[F]);ta(e,z.prev,X.next),ta(e,y,z),ta(e,X,Q),v=Q,y=X,E-=1,w=[],I=[]}else _.delete(A),Ih(A,v,i),ta(e,A.prev,A.next),ta(e,A,y===null?e.first:y.next),ta(e,y,A),y=A;continue}for(w=[],I=[];v!==null&&v.k!==N;)(v.e.f&8192)===0&&(_!=null?_:_=new Set).add(v),I.push(v),v=v.next;if(v===null)continue;A=v}w.push(A),y=A,v=A.next}if(v!==null||_!==void 0){for(var se=_===void 0?[]:_d(_);v!==null;)(v.e.f&8192)===0&&se.push(v),v=v.next;var Z=se.length;if(Z>0){var oe=(r&4)!==0&&u===0?i:null;if(d){for(E=0;E<Z;E+=1)(pe=se[E].a)==null||pe.measure();for(E=0;E<Z;E+=1)(ee=se[E].a)==null||ee.fix()}f1(e,se,oe,f)}}d&&Pn(()=>{var _e;if(b!==void 0)for(A of b)(_e=A.a)==null||_e.apply()}),$t.first=e.first&&e.first.e,$t.last=y&&y.e}function v1(t,e,i,o){(o&1)!==0&&El(t.v,e),(o&2)!==0?El(t.i,i):t.i=i}function kh(t,e,i,o,r,a,l,d,s,u){var f=ia,p=(s&1)!==0,v=(s&16)===0,_=p?v?ms(r,!1,!1):Pr(r):r,y=(s&2)===0?l:Pr(l);Ae&&p&&(_.trace=()=>{var w=typeof y=="number"?l:y.v;u()[w]});var b={i:y,v:_,k:a,a:null,e:null,prev:i,next:o};ia=b;try{return b.e=Mi(()=>d(t,_,y,u),it),b.e.prev=i&&i.e,b.e.next=o&&o.e,i===null?e.first=b:(i.next=b,i.e.next=b.e),o!==null&&(o.prev=b,o.e.prev=b.e),b}finally{ia=f}}function Ih(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=Yo(a);r.before(a),a=l}}function ta(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 g1(t,e,i){var a,l;if(!e||e===_h(String(i!=null?i:"")))return;let o,r=(a=t.__svelte_meta)==null?void 0:a.loc;r?o=`near ${r.file}:${r.line}:${r.column}`:(l=dr)!=null&&l[Qn]&&(o=`in ${dr[Qn]}`),Xg(ku(o))}function Bd(t,e,i=!1,o=!1,r=!1){var a=t,l="";D(()=>{var _;var d=$t;if(l===(l=(_=e())!=null?_:"")){it&&qi();return}if(d.nodes_start!==null&&(vf(d.nodes_start,d.nodes_end),d.nodes_start=d.nodes_end=null),l!==""){if(it){for(var s=yt.data,u=qi(),f=u;u!==null&&(u.nodeType!==lr||u.data!=="");)f=u,u=Yo(u);if(u===null)throw ea(),cs;Ae&&!r&&g1(u.parentNode,s,l),Mo(yt,f),a=wi(u);return}var p=l+"";i?p=`<svg>${p}</svg>`:o&&(p=`<math>${p}</math>`);var v=Rl(p);if((i||o)&&(v=Si(v)),Mo(Si(v),v.lastChild),i||o)for(;Si(v);)a.before(Si(v));else a.before(v)}})}function Vi(t,e,i){it&&qi();var o=t,r,a;Qi(()=>{r!==(r=e())&&(a&&(Xn(a),a=null),r&&(a=Mi(()=>i(o,r))))},65536),it&&(o=yt)}function Ra(t,e,i,o,r,a){var y;let l=it;it&&qi();var d=Ae&&a&&((y=zt)==null?void 0:y.function[Qn]),s,u,f=null;it&&yt.nodeType===cu&&(f=yt,qi());var p=it?yt:t,v,_=ia;Qi(()=>{let b=e()||null;var w=r?r():i||b==="svg"?su:null;if(b!==s){var I=ia;Ef(_),v&&(b===null?Xn(v,()=>{v=null,u=null}):b===u?As(v):(Ki(v),Pu(!1))),b&&b!==u&&(v=Mi(()=>{if(f=it?f:w?document.createElementNS(w,b):document.createElement(b),Ae&&a&&(f.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),Mo(f,f),o){it&&wh(b)&&f.append(document.createComment(""));var T=it?Si(f):f.appendChild(kn());it&&(T===null?fo(!1):wi(T)),o(f,T)}$t.nodes_end=f,p.before(f)})),s=b,s&&(u=s),Pu(!0),Ef(I)}},65536),l&&(fo(!0),wi(p))}var Pf;function Ph(t){return Pf=t.target,new kf(t)}var Ms,Ar,kf=class{constructor(e){Ys(this,Ms);Ys(this,Ar);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({...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===bl?!0:(n((u=i.get(s))!=null?u:o(s,Reflect.get(d,s))),Reflect.has(d,s))},set(d,s,u){var f;return R((f=i.get(s))!=null?f:o(s,u),u),Reflect.set(d,s,u)}});_l(this,Ar,(e.hydrate?Cf: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)&&Ml(),_l(this,Ms,r.$$events);for(let d of Object.keys(Li(this,Ar)))d==="$set"||d==="$destroy"||d==="$on"||uo(this,d,{get(){return Li(this,Ar)[d]},set(s){Li(this,Ar)[d]=s},enumerable:!0});Li(this,Ar).$set=d=>{Object.assign(r,d)},Li(this,Ar).$destroy=()=>{Va(Li(this,Ar))}}$set(e){Li(this,Ar).$set(e)}$on(e,i){Li(this,Ms)[e]=Li(this,Ms)[e]||[];let o=(...r)=>i.call(this,...r);return Li(this,Ms)[e].push(o),()=>{Li(this,Ms)[e]=Li(this,Ms)[e].filter(r=>r!==o)}}$destroy(){Li(this,Ar).$destroy()}};Ms=new WeakMap,Ar=new WeakMap;function Y(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),Ae&&Th(e.hash,d)}})}function Vs(t,e){var i=void 0,o;Qi(()=>{i!==(i=e())&&(o&&(Ki(o),o=null),i&&(o=Mi(()=>{Lo(()=>i(t))})))})}function Ah(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=Ah(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Lh(){for(var t,e,i=0,o="",r=arguments.length;i<r;i++)(t=arguments[i])&&(e=Ah(t))&&(o&&(o+=" "),o+=e);return o}function Hd(t){return typeof t=="object"?Lh(t):t!=null?t:""}var Mh=[...`
|
|
44
|
+
\r\f \v\uFEFF`];function Rh(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||Mh.includes(o[l-1]))&&(d===o.length||Mh.includes(o[d]))?o=(l===0?"":o.substring(0,l))+o.substring(d+1):l=d}}return o===""?null:o}function Vh(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 Nh(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,f=-1;let b=t.length;for(var p=0;p<b;p++){var v=t[p];if(d?v==="/"&&t[p-1]==="*"&&(d=!1):a?a===v&&(a=!1):v==="/"&&t[p+1]==="*"?d=!0:v==='"'||v==="'"?a=v:v==="("?l++:v===")"&&l--,!d&&a===!1&&l===0){if(v===":"&&f===-1)f=p;else if(v===";"||p===b-1){if(f!==-1){var _=Af(t.substring(u,f).trim());if(!s.includes(_)){v!==";"&&p++;var y=t.substring(u,p).trim();i+=" "+y+";"}}u=p+1,f=-1}}}}return o&&(i+=Vh(o)),r&&(i+=Vh(r,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function ne(t,e,i,o,r,a){var l=t.__className;if(it||l!==i||l===void 0){var d=Rh(i,o,a);(!it||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(a&&r!==a)for(var s in a){var u=!!a[s];(r==null||u!==!!r[s])&&t.classList.toggle(s,u)}return a}function Lf(t,e={},i,o){for(var r in i){var a=i[r];e[r]!==a&&(i[r]==null?t.style.removeProperty(r):t.style.setProperty(r,a,o))}}function Ke(t,e,i,o){var r=t.__style;if(it||r!==e){var a=Nh(e,o);(!it||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(Lf(t,i==null?void 0:i[0],o[0]),Lf(t,i==null?void 0:i[1],o[1],"important")):Lf(t,i,o));return o}function Fd(t,e,i){if(t.multiple){if(e==null)return;if(!ar(e))return Jg();for(var o of t.options)o.selected=e.includes(Dh(o));return}for(o of t.options){var r=Dh(o);if(nf(r,e)){o.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function Mf(t){var e=new MutationObserver(()=>{Fd(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Ao(()=>{e.disconnect()})}function Dh(t){return"__value"in t?t.__value:t.value}var Dl=Symbol("class"),Ol=Symbol("style"),Hh=Symbol("is custom element"),Fh=Symbol("is html");function Uh(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Me(t,e,i,o){var r=Wh(t);if(it&&(r[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||S1(t,e,i!=null?i:"");return}r[e]!==(r[e]=i)&&(e==="loading"&&(t[Ag]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Kh(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function zh(t,e,i,o,r=!1){var A;var a=Wh(t),l=a[Hh],d=!a[Fh];let s=it&&l;s&&fo(!1);var u=e||{},f=t.tagName==="OPTION";for(var p in e)p in i||(i[p]=null);i.class?i.class=Hd(i.class):(o||i[Dl])&&(i.class=null),i[Ol]&&((A=i.style)!=null||(i.style=null));var v=Kh(t);for(let E in i){let k=i[E];if(f&&E==="value"&&k==null){t.value=t.__value="",u[E]=k;continue}if(E==="class"){var _=t.namespaceURI==="http://www.w3.org/1999/xhtml";ne(t,_,k,o,e==null?void 0:e[Dl],i[Dl]),u[E]=k,u[Dl]=i[Dl];continue}if(E==="style"){Ke(t,k,e==null?void 0:e[Ol],i[Ol]),u[E]=k,u[Ol]=i[Ol];continue}var y=u[E];if(!(k===y&&!(k===void 0&&t.hasAttribute(E)))){u[E]=k;var b=E[0]+E[1];if(b!=="$$")if(b==="on"){let Q={},F="$$"+E,z=E.slice(2);var w=$h(z);if(bh(z)&&(z=z.slice(0,-7),Q.capture=!0),!w&&y){if(k!=null)continue;t.removeEventListener(z,u[F],Q),u[F]=null}if(k!=null)if(w)t[`__${z}`]=k,je([z]);else{let X=function(se){u[E].call(this,se)};var N=X;u[F]=wf(z,t,X,Q)}else w&&(t[`__${z}`]=void 0)}else if(E==="style")Me(t,E,k);else if(E==="autofocus")yf(t,!!k);else if(!l&&(E==="__value"||E==="value"&&k!=null))t.value=t.__value=k;else if(E==="selected"&&f)Uh(t,k);else{var I=E;d||(I=yh(I));var T=I==="defaultValue"||I==="defaultChecked";if(k==null&&!l&&!T)if(a[E]=null,I==="value"||I==="checked"){let Q=t,F=e===void 0;if(I==="value"){let z=Q.defaultValue;Q.removeAttribute(I),Q.defaultValue=z,Q.value=Q.__value=F?z:null}else{let z=Q.defaultChecked;Q.removeAttribute(I),Q.defaultChecked=z,Q.checked=F?z:!1}}else t.removeAttribute(E);else T||v.includes(I)&&(l||typeof k!="string")?t[I]=k:typeof k!="function"&&Me(t,I,k,r)}}}return s&&fo(!0),u}function eo(t,e,i=[],o,r=!1,a=jr){let l=i.map(a);var d=void 0,s={},u=t.nodeName==="SELECT",f=!1;if(Qi(()=>{var v=e(...l.map(n)),_=zh(t,d,v,o,r);f&&u&&"value"in v&&Fd(t,v.value,!1);for(let b of Object.getOwnPropertySymbols(s))v[b]||Ki(s[b]);for(let b of Object.getOwnPropertySymbols(v)){var y=v[b];b.description===Yp&&(!d||y!==d[b])&&(s[b]&&Ki(s[b]),s[b]=Mi(()=>Vs(t,()=>y))),_[b]=y}d=_}),u){var p=t;Lo(()=>{Fd(p,d.value),Mf(p)})}f=!0}function Wh(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[Hh]:t.nodeName.includes("-"),[Fh]:t.namespaceURI===Sg}}var Oh=new Map;function Kh(t){var e=Oh.get(t.nodeName);if(e)return e;Oh.set(t.nodeName,e=[]);for(var i,o=t,r=Element.prototype;r!==o;){i=lu(o);for(var a in i)i[a].set&&e.push(a);o=wa(o)}return e}function S1(t,e,i){var o;Ae&&(e==="srcset"&&C1(t,i)||Vf((o=t.getAttribute(e))!=null?o:"",i)||jg(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function Vf(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function Bh(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function C1(t,e){var i=Bh(t.srcset),o=Bh(e);return o.length===i.length&&o.every(([r,a],l)=>a===i[l][1]&&(Vf(i[l][0],r)||Vf(r,i[l][0])))}var T1=au?()=>performance.now():()=>Date.now(),es={tick:t=>(au?requestAnimationFrame:ht)(t),now:()=>T1(),tasks:new Set};function qh(){let t=es.now();es.tasks.forEach(e=>{e.c(t)||(es.tasks.delete(e),e.f())}),es.tasks.size!==0&&es.tick(qh)}function Qh(t){let e;return es.tasks.size===0&&es.tick(qh),{promise:new Promise(i=>{es.tasks.add(e={c:t,f:i})}),abort(){es.tasks.delete(e)}}}function Au(t,e){Nd(()=>{t.dispatchEvent(new CustomEvent(e))})}function P1(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 Gh(t){let e={},i=t.split(";");for(let o of i){let[r,a]=o.split(":");if(!r||a===void 0)break;let l=P1(r.trim());e[l]=a.trim()}return e}var A1=t=>t;function ts(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,f=e.inert,p=e.style.overflow,v,_;function y(){var k;var A=Dt,E=$t;Wi(null),po(null);try{return u!=null?u:u=i()(e,(k=o==null?void 0:o())!=null?k:{},{direction:s})}finally{Wi(A),po(E)}}var b={is_global:d,in(){var A;if(e.inert=f,!r){_==null||_.abort(),(A=_==null?void 0:_.reset)==null||A.call(_);return}a||v==null||v.abort(),Au(e,"introstart"),v=Rf(e,y(),_,1,()=>{Au(e,"introend"),v==null||v.abort(),v=u=void 0,e.style.overflow=p})},out(A){if(!a){A==null||A(),u=void 0;return}e.inert=!0,Au(e,"outrostart"),_=Rf(e,y(),v,0,()=>{Au(e,"outroend"),A==null||A()})},stop:()=>{v==null||v.abort(),_==null||_.abort()}},w=$t;if(((N=w.transitions)!=null?N:w.transitions=[]).push(b),r&&Dd){var I=d;if(!I){for(var T=w.parent;T&&(T.f&65536)!==0;)for(;(T=T.parent)&&(T.f&16)===0;);I=!T||(T.f&32768)!==0}I&&Lo(()=>{Et(()=>b.in())})}}function Rf(t,e,i,o,r){var a=o===1;if(Zs(e)){var l,d=!1;return Pn(()=>{if(!d){var w=e({direction:a?"in":"out"});l=Rf(t,w,i,o,r)}}),{abort:()=>{d=!0,l==null||l.abort()},deactivate:()=>l.deactivate(),reset:()=>l.reset(),t:()=>l.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return r(),{abort:ht,deactivate:ht,reset:ht,t:()=>o};let{delay:s=0,css:u,tick:f,easing:p=A1}=e;var v=[];if(a&&i===void 0&&(f&&f(0,1),u)){var _=Gh(u(0,1));v.push(_,_)}var y=()=>1-o,b=t.animate(v,{duration:s,fill:"forwards"});return b.onfinish=()=>{var z;b.cancel();var w=(z=i==null?void 0:i.t())!=null?z:1-o;i==null||i.abort();var I=o-w,T=e.duration*Math.abs(I),N=[];if(T>0){var A=!1;if(u)for(var E=Math.ceil(T/16.666666666666668),k=0;k<=E;k+=1){var Q=w+I*p(k/E),F=Gh(u(Q,1-Q));N.push(F),A||(A=F.overflow==="hidden")}A&&(t.style.overflow="hidden"),y=()=>{var X=b.currentTime;return w+I*p(X/T)},f&&Qh(()=>{if(b.playState!=="running")return!1;var X=y();return f(X,1-X),!0})}b=t.animate(N,{duration:T,fill:"forwards"}),b.onfinish=()=>{y=()=>o,f==null||f(o,1-o),r()}},{abort:()=>{b&&(b.cancel(),b.effect=null,b.onfinish=ht)},deactivate:()=>{r=ht},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>y()}}function Nf(t,e,i){var o=Ko(t,e);o&&o.set&&(t[e]=i,Ao(()=>{t[e]=null}))}var oa,Bl,Ud,Mu,Yh,Vu=class Vu{constructor(e){Ys(this,Mu);Ys(this,oa,new WeakMap);Ys(this,Bl);Ys(this,Ud);_l(this,Ud,e)}observe(e,i){var o=Li(this,oa).get(e)||new Set;return o.add(i),Li(this,oa).set(e,o),xg(this,Mu,Yh).call(this).observe(e,Li(this,Ud)),()=>{var r=Li(this,oa).get(e);r.delete(i),r.size===0&&(Li(this,oa).delete(e),Li(this,Bl).unobserve(e))}}};oa=new WeakMap,Bl=new WeakMap,Ud=new WeakMap,Mu=new WeakSet,Yh=function(){var e;return(e=Li(this,Bl))!=null?e:_l(this,Bl,new ResizeObserver(i=>{for(var o of i){Vu.entries.set(o.target,o);for(var r of Li(this,oa).get(o.target)||[])r(o)}}))},sr(Vu,"entries",new WeakMap);var Df=Vu;var L1=new Df({box:"border-box"});function Ln(t,e,i){var o=L1.observe(t,()=>i(t[e]));Lo(()=>(Et(()=>i(t[e])),o))}function jh(t,e){return t===e||(t==null?void 0:t[qo])===e}function Ze(t={},e,i,o){return Lo(()=>{var r,a;return jo(()=>{r=a,a=(o==null?void 0:o())||[],Et(()=>{t!==i(...a)&&(e(t,...a),r&&jh(i(...r),t)&&e(null,...r))})}),()=>{Pn(()=>{a&&jh(i(...a),t)&&e(null,...a)})}}),t}function ho(t=!1){let e=zt,i=e.l.u;if(!i)return;let o=()=>Iu(e.s);if(t){let r=0,a={},l=jr(()=>{let d=!1,s=e.s;for(let u in s)s[u]!==a[u]&&(a[u]=s[u],d=!0);return d&&r++,r});o=()=>n(l)}i.b.length&&Pd(()=>{Xh(e,o),Js(i.b)}),Oe(()=>{let r=Et(()=>i.m.map(Pg));return()=>{for(let a of r)typeof a=="function"&&a()}}),i.a.length&&Oe(()=>{Xh(e,o),Js(i.a)})}function Xh(t,e){if(t.l.s)for(let i of t.l.s)n(i);e()}function zd(t,e,i){if(t==null)return e(void 0),i&&i(void 0),ht;let o=Et(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Hl=[];function Lr(t,e){return{subscribe:le(t,e).subscribe}}function le(t,e=ht){let i=null,o=new Set;function r(d){if(yl(t,d)&&(t=d,i)){let s=!Hl.length;for(let u of o)u[1](),Hl.push(u,t);if(s){for(let u=0;u<Hl.length;u+=2)Hl[u][0](Hl[u+1]);Hl.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 mi(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 Lr(i,(l,d)=>{let s=!1,u=[],f=0,p=ht,v=()=>{if(f)return;p();let y=e(o?u[0]:u,l,d);a?l(y):p=typeof y=="function"?y:ht},_=r.map((y,b)=>zd(y,w=>{u[b]=w,f&=~(1<<b),s&&v()},()=>{f|=1<<b}));return s=!0,v(),function(){Js(_),p(),s=!1}})}function be(t){let e;return zd(t,i=>e=i)(),e}var Ru=!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=zd(t,l=>{r?o.source.v=l:R(o.source,l)}),r=!1}return t&&Of in i?be(t):n(o.source)}function De(){let t={};function e(){Ao(()=>{for(var i in t)t[i].unsubscribe();uo(t,Of,{enumerable:!1,value:!0})})}return[t,e]}function Bf(t){var e=Ru;try{return Ru=!1,[t(),Ru]}finally{Ru=e}}var B1={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Ae&&Fg(`${t.name}.${String(e)}`),!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function Mn(t,e,i){return new Proxy(Ae?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},B1)}var H1={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Zs(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];Zs(r)&&(r=r());let a=Ko(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(Zs(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let r=Ko(o,e);return r&&!r.configurable&&(r.configurable=!0),r}}},has(t,e){if(e===qo||e===bl)return!1;for(let i of t.props)if(Zs(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props)if(Zs(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 is(...t){return new Proxy({props:t},H1)}function Zh(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function h(t,e,i,o){var Q,F;var r=(i&1)!==0,a=!us||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,s=!1,u;l?[u,s]=Bf(()=>t[e]):u=t[e];var f=qo in t||bl in t,p=l&&((F=(Q=Ko(t,e))==null?void 0:Q.set)!=null?F:f&&e in t&&(z=>t[e]=z))||void 0,v=o,_=!0,y=!1,b=()=>(y=!0,_&&(_=!1,d?v=Et(o):v=o),v);u===void 0&&o!==void 0&&(p&&a&&Hg(e),u=b(),p&&p(u));var w;if(a)w=()=>{var z=t[e];return z===void 0?b():(_=!0,y=!1,z)};else{var I=(r?jr:In)(()=>t[e]);I.f|=131072,w=()=>{var z=n(I);return z!==void 0&&(v=void 0),z===void 0?v:z}}if((i&4)===0&&a)return w;if(p){var T=t.$$legacy;return function(z,X){return arguments.length>0?((!a||!X||T||s)&&p(X?w():z),z):w()}}var N=!1,A=!1,E=ms(u),k=jr(()=>{var z=w(),X=n(E);return N?(N=!1,A=!0,X):(A=!1,E.v=z)});return l&&n(k),r||(k.equals=xl),function(z,X){if(Cu!==null&&(N=A,w(),n(E)),arguments.length>0){let se=X?n(k):a&&l?si(z):z;if(!k.equals(se)){if(N=!0,R(E,se),y&&v!==void 0&&(v=se),Zh(k))return z;Et(()=>n(k))}return z}return Zh(k)?k.v:n(k)}}var F1;typeof HTMLElement=="function"&&(F1=class extends HTMLElement{constructor(e,i,o){super();sr(this,"$$ctor");sr(this,"$$s");sr(this,"$$c");sr(this,"$$cn",!1);sr(this,"$$d",{});sr(this,"$$r",!1);sr(this,"$$p_d",{});sr(this,"$$l",{});sr(this,"$$l_u",new Map);sr(this,"$$me");this.$$ctor=e,this.$$s=i,o&&this.attachShadow({mode:"open"})}addEventListener(e,i,o){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(i),this.$$c){let r=this.$$c.$on(e,i);this.$$l_u.set(i,r)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let r=this.$$l_u.get(i);r&&(r(),this.$$l_u.delete(i))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let i=function(a){return l=>{let d=document.createElement("slot");a!=="default"&&(d.name=a),$(l,d)}};var e=i;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let o={},r=U1(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]=Hf(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=Ph({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=yu(()=>{jo(()=>{var a;this.$$r=!0;for(let l of jp(this.$$c)){if(!((a=this.$$p_d[l])!=null&&a.reflect))continue;this.$$d[l]=this.$$c[l];let d=Hf(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]=Hf(e,o,this.$$p_d,"toProp"),(r=this.$$c)==null||r.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return jp(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function Hf(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 U1(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var Jh="5";var e_,t_,i_;typeof window!="undefined"&&((i_=(t_=(e_=window.__svelte)!=null?e_:window.__svelte={}).v)!=null?i_:t_.v=new Set).add(Jh);var sd=require("@vkontakte/videoplayer-core/es2018"),MZ=require("@vkontakte/videoplayer-core/es2018"),cl=require("@vkontakte/videoplayer-shared/es2018"),u$=require("@vkontakte/videoplayer-statistics/es2018");var Na=require("@vkontakte/videoplayer-shared/es2018");var z1={isMobile:void 0,disableInvisibleComponentsTimeout:500,debugLog:!1,devNullLog:!1,defaultLanguage:Na.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:Na.VideoQuality.Q_480P,highQualityLimit:Na.VideoQuality.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,thinStatistics:!1,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,tracer:!1,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,interactiveControlsTapPlace:!1,interactiveControlsFillAnimation:!1,interactiveControlsHideAnimation:!1,interactiveHistoryEndChapterFix:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,initSubtitles:!0,useCallbackForMediaSessionNextPrevClick:!1,usePerformanceFix:!1,userVideoPrefs:!1,savePreferredStatesOnUserActionOnly:!1,useLoopSetting:!1,doubleForwardAvailable:!1,useRichSeek:!1,disableThumbUnstartedOnAutoplay:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,paramsOverride:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null,font:null,focusedOutlineWidth:null,focusedOutlineRadius:null,controlsDesktopPaddingHorizontal:null,timelinePaddingHorizontal:null,settingsBackgroundColor:null,controlsGradientHeight:null,controlsGradient:null},userSalt:"0",doubleForwardActivationTime:600,playbackStatusAnimationDuration:1e3,playbackStatusNextVideoAnimationDuration:1e3,suitableDurationForUsingRichSeek:180,titleShowBehaviour:"fullscreen",disabledSlotIds:[],disabledAdditionalButtonIds:[]},o_=t=>(0,Na.fillWithDefault)(t,z1),n_=t=>Cl("ui-config",t),Rt=()=>Sl("ui-config");var Wd="vk_player_debug_panel_opened";var r_="videoplayer",s_="videoplayer";var gs={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},a_=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),l_=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),d_=new Set(["ShiftRight","ShiftLeft"]);var c_=["TIMELINE"],Kd=[...c_,"GRAPH_BUTTON"],Ff=[...c_,"PLAY_BUTTON"],qd=[...Kd,"PLAY_BUTTON"];var os=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(os||{}),Qd={xs:0,s:1,m:2,l:3,xl:4};var Gd=require("@vkontakte/videoplayer-shared/es2018"),u_=require("@vkontakte/videoplayer-core/es2018"),p_=require("@vkontakte/videoplayer-statistics/es2018");var Nu="prod",Oa="1.1.81-dev.0b96aed5.0";var Ba=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var f_=Symbol("storeContext"),m_=Symbol("microStoresContext"),v_=(t,e)=>{Cl(f_,t),Cl(m_,e),Nu==="dev"&&(window.app={store:t,microStores:e})},he=()=>{let t=Sl(f_);return(0,Gd.assertNonNullable)(t,"Store context is empty!"),t},_o=()=>{let t=Sl(m_);return(0,Gd.assertNonNullable)(t,"MicroStores context is empty!"),t},oi=(t,e)=>Ou(t,t.getValue(),e),Ou=(t,e,i)=>Lr(e,o=>{let r=t.subscribe(a=>{o(a),i==null||i(a)});return()=>r.unsubscribe()}),g_=(t,e,i,o,r=["meta config not provided"])=>{var F,z,X,se,Z,oe,J,Ce,pe;let a=t.info,{width:l,height:d}=be(i.ui.playerSize),s=(z=(F=a.throughputEstimation$.getValue())==null?void 0:F.toFixed(0))!=null?z:0,u=(se=(X=a.rttEstimation$.getValue())==null?void 0:X.toFixed(0))!=null?se:0,f=a.isAutoQualityEnabled$.getValue()?"auto":"manual",p=`${Oa} (core: ${u_.VERSION}, stat: ${p_.VERSION}, shared: ${Gd.VERSION})`,v=be(i.state.errorLog$),_=v.length?`
|
|
45
|
+
`+v.map((ee,_e)=>{var Ge;let we=`${_e}) Type: ${ee.id}
|
|
46
|
+
`,ve=`Message: ${ee.message} (${ee.thrown})
|
|
47
|
+
`,ue=`Trace: ${(Ge=ee.thrown)==null?void 0:Ge.stack}
|
|
48
|
+
`;return we+ve+ue}).join(`
|
|
49
|
+
`):void 0,y=i.state.isAudioDisabled?"disabled":be(i.state.isAudioAvailable$)?void 0:"unavailable",b=t.info.currentVideoStream$.getValue(),w=t.info.currentAudioStream$.getValue(),I=[];b&&I.push(`Video: ${(Z=b==null?void 0:b.codec)!=null?Z:""}`+(b!=null&&b.hdr?" (HDR)":"")),w&&I.push(`Audio: ${(oe=w==null?void 0:w.codec)!=null?oe:""}`+(w!=null&&w.language?` (${w.language})`:""));let T=a.currentQuality$.getValue(),N="";if(T){let ee=a.availableQualitiesFps$.getValue()[T];N=ee?`${ee}fps`:""}let A=a.httpConnectionType$.getValue(),E=(Ce=(J=a.currentBuffer$.getValue())==null?void 0:J.end)!=null?Ce:0,k=Math.max(E-be(i.state.positionExact$),0),Q={Version:p,Browser:navigator.userAgent,Config:r.join(", "),"United video id":String(i.videoId),TraceId:o,VSID:be(i.vsid),"Content host":a.hostname$.getValue(),"Connection type":A?A+(a.httpConnectionReused$.getValue()?" (reused)":""):"",Throughput:`${s}Kbps @ ${u}ms RTT`,Format:a.currentFormat$.getValue(),"Available Formats":e!=null&&e.sources?Object.keys(e.sources).join(", "):"",Streams:I.join(", "),Quality:`${f} ${T!=null?T:""} ${N}`,"Available qualities":a.availableQualities$.getValue().join(", "),Audio:y,Position:`${be(i.state.positionExact$)}s`,Buffer:`${k}s`,State:`${be(i.playerPhase)} ${(pe=a.playbackState$.getValue())!=null?pe:""}`,"Player size":`${l}x${d}`,URL:window.location.href,Errors:_};return Object.entries(Q).filter(([ee,_e])=>_e!==void 0).map(([ee,_e])=>`${ee}: ${_e}`).join(`
|
|
50
|
+
`)},h_=(t,e,i)=>{var F,z,X,se;let o=t.info,{width:r,height:a}=be(i.ui.playerSize),l={version:Oa,viewport:`${r}x${a}`,volume:Math.round(be(i.state.volume$)*100)};l.id=i.videoId,o.currentFormat$.getValue()&&(l.provider=o.currentFormat$.getValue()),o.hostname$.getValue()&&(l.cdn=o.hostname$.getValue());let u=o.intrinsicVideoSize$.getValue();u&&(l.videoSize=`${u.width}x${u.height}`);let f=o.currentBuffer$.getValue(),p=o.currentNativeBuffer$.getValue(),v=o.isLive$.getValue(),_=o.liveBufferTime$.getValue();f&&p&&(v&&_?(l.buffer=f.end-_,l.nativeBuffer=p.end-_):(l.buffer=Math.max(f.end-be(i.state.positionExact$),0),l.nativeBuffer=Math.max(p.end-be(i.state.positionExact$),0))),l.position=be(i.state.positionExact$);let y=o.throughputEstimation$.getValue();y&&(l.speed=y);let b=o.videoBitrate$.getValue();b&&(l.bitrate=b);let w=o.liveLatency$.getValue();w&&(l.liveLatency=w);let I=o.currentVideoSegmentLength$.getValue();I&&(l.currentVideoSegmentLength=I);let T=o.currentAudioSegmentLength$.getValue();T&&(l.currentAudioSegmentLength=T);let N=be(i.vsid);typeof N=="string"&&(l.vsid=N);let A=(F=t.info.currentVideoStream$.getValue())==null?void 0:F.codec;A&&(l.videoCodec=A);let E=(z=t.info.currentAudioStream$.getValue())==null?void 0:z.codec;E&&(l.audioCodec=E),((X=t.info.currentVideoStream$.getValue())==null?void 0:X.hdr)&&(l.hdr=!0);let Q=(se=t.info.currentAudioStream$.getValue())==null?void 0:se.language;return Q&&(l.audioLanguage=Q),l},__=(t,e)=>Ba(t,e,"mp4"),b_=t=>!t.type,$_=t=>!!t.type,y_=()=>{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}async download(e){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let i=await fetch(e,{signal:this.destroyController.signal});if(i.ok)return await i.text();throw i}finally{this.pendingDownloads.delete(e)}}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};var vi=require("@vkontakte/videoplayer-shared/es2018"),RV=require("@vkontakte/videoplayer-core/es2018"),W1="vk_player_",x_="vk_player_prefer_traffic_saving_enabled",w_="vk_player_preferred_volume",S_="vk_player_prefer_volume_mute",Kf="vk_player_preferred_quality",Uf="vk_player_preferred_default_quality_settings",zf="vk_player_preferred_quality_settings_by_video",C_="vk_player_preferred_stream_language",T_="vk_player_preferred_rate",I_="vk_player_preferred_autoplay_next",Wf="vk_player_preferred_subtitles_language",E_="vk_player_user_video_prefs",k_=`${W1}preview_track_close_tooltip`,P_=t=>t>1?1:t<0?0:t,qf=t=>vi.safeStorage.set(w_,P_(t).toString(10)),Bu=()=>{let t=vi.safeStorage.get(w_);return(0,vi.isNullable)(t)?void 0:P_(parseFloat(t))},Qf=(t,e)=>vi.safeStorage.set(Kf,JSON.stringify({videoId:t,value:e})),Hu=()=>vi.safeStorage.remove(Kf),Gf=t=>{let e=vi.safeStorage.get(Kf);if((0,vi.isNullable)(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){Hu();return}return o},A_=(t,e)=>{e?vi.safeStorage.set(t,"true"):vi.safeStorage.remove(t)},Yf=t=>vi.safeStorage.get(t)==="true",jf=t=>A_(S_,t),L_=()=>Yf(S_),Yd=t=>A_(x_,t),Xf=()=>Yf(x_),M_=()=>vi.safeStorage.get(C_),Zf=t=>vi.safeStorage.set(C_,t),Jf=()=>vi.safeStorage.get(Wf),em=t=>{t?vi.safeStorage.set(Wf,t):vi.safeStorage.remove(Wf)},V_=t=>vi.safeStorage.set(T_,JSON.stringify({rate:t})),R_=()=>{let t=vi.safeStorage.get(T_);if((0,vi.isNullable)(t))return;let{rate:e}=JSON.parse(t);return e},N_=t=>{vi.safeStorage.set(I_,String(t))},D_=()=>Yf(I_),K1=()=>{let t=f=>{vi.safeStorage.set(Uf,JSON.stringify(f))},e=()=>{try{let f=vi.safeStorage.get(Uf);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=vi.safeStorage.get(zf);return f?JSON.parse(f):null}catch(f){return null}},o=f=>{vi.safeStorage.set(zf,JSON.stringify(f))},r=f=>{u(f);let p=f?i():null;if(p&&(p==null?void 0:p.videoId)===f)return{...p,appliesTo:"to-video"};p&&a();let v=e();return v?{...v,appliesTo:"as-default"}:(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},a=()=>{vi.safeStorage.remove(zf)},l=()=>{vi.safeStorage.remove(Uf)},d=(f,p="as-default")=>{f.type==="exact_quality"||p==="to-video"?o(f):t(f)},s=f=>{let p=r(f);if(p){switch(p.type){case"traffic_saving":Yd(!0);break;case"exact_quality":Qf(f,p.quality)}a(),l()}},u=f=>{let p=Gf(f);if(p){o({type:"exact_quality",videoId:f,quality:p});return}Xf()&&t({type:"traffic_saving",videoId:f}),Yd(!1),Hu()};return{getPreferredQualitySettings:r,migrateSettingsToLegacyWay:s,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:a,getPreferredDefaultQualitySettings:e,getPreferredSubtitlesLanguage:Jf,savePreferredSubtitlesLanguage:em}},{getPreferredQualitySettings:O_,migrateSettingsToLegacyWay:B_,savePreferredQualitySettings:Fu,savePreferredDefaultQualitySettings:NV,removePreferredQualitySettingsByVideo:DV,getPreferredDefaultQualitySettings:Uu}=K1(),q1=3,Q1=3,H_=()=>{let t=vi.safeStorage.get(E_);if(t)try{return JSON.parse(t)}catch(e){return null}return null},zu=(t,e)=>{var r,a;let i=H_();return(a=(r=i==null?void 0:i[t])==null?void 0:r[e])!=null?a:null},tm=(t,e,i)=>{var l,d,s;let o=(l=H_())!=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=G1(o);vi.safeStorage.set(E_,JSON.stringify(a))};function G1(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(Q1),e.reduce((o,[r])=>(o[r]=Y1(t[r]),o),{})}function Y1(t){let e=Object.entries(t);return e.sort(([,i],[,o])=>i.updatedTs>o.updatedTs?-1:1),e.splice(q1),Object.fromEntries(e)}function F_(){vi.safeStorage.set(k_,JSON.stringify(!0))}function U_(){let t=vi.safeStorage.get(k_);try{return t?JSON.parse(t):!1}catch(e){return!1}}var eg=require("@vkontakte/videoplayer-core/es2018");qg();var na="var(--btn-color, #fff)";var j1=Ie('<g filter="url(#strokeAndShadow)"><!></g><defs><filter x="-12" width="72" y="-12" height="72" id="strokeAndShadow"><feMorphology operator="dilate" radius=".4" result="outer"></feMorphology><feFlood flood-color="rgba(0,0,0,0.1)" result="outerColor"></feFlood><feComposite operator="in" in="outerColor" in2="outer" result="outerOutline"></feComposite><feDropShadow in="SourceGraphic" dx="0" dy="0" stdDeviation="3" flood-color="rgba(0,0,0,0.4)" result="outerShadow"></feDropShadow><feMerge><feMergeNode in="outerShadow"></feMergeNode><feMergeNode in="outerOutline"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter></defs>',1),X1=Ie('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill-rule="evenodd" clip-rule="evenodd"><!></svg>');function Je(t,e){var f;B(e,!0);let i=h(e,"width",19,()=>"24"),o=h(e,"height",19,()=>"24"),r=h(e,"fill",3,na),a=(f=e.viewBox)!=null?f:`0 0 ${i()} ${o()}`;var l=X1(),d=C(l);{var s=p=>{var v=j1(),_=ce(v),y=C(_);ii(y,()=>e.children),S(_),ai(),$(p,v)},u=p=>{var v=Le(),_=ce(v);ii(_,()=>e.children),$(p,v)};V(d,p=>{e.shadow?p(s):p(u,!1)})}S(l),D(()=>{Me(l,"aria-label",e.ariaLabel),Me(l,"aria-hidden",!e.ariaLabel),Me(l,"width",i()),Me(l,"height",o()),Me(l,"viewBox",a),Me(l,"fill",r()),Ke(l,e.style),Me(l,"data-testid",e.testId)}),$(t,l),H()}var Fl=require("@vkontakte/videoplayer-shared/es2018");var Z1={auto_quality_invariant:"Авто",auto_quality:"Авто ({actual})",auto_quality_option:"Авто",other_quality:"Другое",high_quality:"Высокое качество",high_quality_description:"Будет использовано больше трафика",auto_quality_limit:"Автоматически",traffic_saving_quality:"Экономия трафика",traffic_saving_quality_description:"Видео грузятся быстрее, но качество ниже",default_quality_for_any_video:"Качество для всех видео",quality_applience:"Качество по умолчанию можно {action}",quality_applience_action:"изменить",menu_quality:"Качество",menu_traffic_saving:"Экономия данных",menu_playback_rate:"Скорость",menu_report:"Сообщить о проблеме",menu_pip:"Картинка в картинке",menu_pip_close:"Развернуть видео",menu_copy_video_link:"Скопировать ссылку на видео",menu_copy_video_link_with_timestamp:"Скопировать ссылку на кадр",menu_video_rotate:"Повернуть",menu_video_loop_on:"Включить повторение",menu_video_loop_off:"Отключить повторение",menu_chromecast:"Chromecast трансляция",menu_copy_debug:"Копировать данные для диагностики",menu_save_debug:"Сохранить данные для диагностики",menu_debug_overlay:"Техническая информация",menu_copy_embed_code:"Копировать код для встраивания",menu_audio_languages:"Звуковая дорожка",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"Дорожка {index}",pip_dummy_title:"Видео воспроизводится в режиме картинка в картинке",submenu_quality:"Качество",submenu_playback_rate:"Скорость",submenu_settings:"Настройки",submenu_traffic_saving:"Экономия данных",submenu_audio_languages:"Звуковая дорожка",playing_ads:"Реклама {timeleft}",skip_ads_now:"Пропустить рекламу",skip_ads_after:"Пропустить {time}с",visit_advertiser:"Перейти на сайт",aria_timeline:"Ползунок временной шкалы",aria_timeline_value:"{position} (общая длительность {duration}",doubletap_seek_step:"{seconds} секунд",playback_rate_1:"Обычная",playback_rate:"{multiplier}x",video360:"панорамное видео",subtitles_caption:"Субтитры",subtitles_auto:"{language} (Автоматические)",subtitles_off:"Выкл.",subtitles_auto_caption:"Автоматические субтитры",subtitles_turn_on:"Включить субтитры",subtitles_turn_off:"Выключить субтитры",traffic_saving_off:"Откл.",traffic_saving_on:"Вкл.",traffic_saving_helper_text:"При включении качество видео будет снижено для экономии трафика",tooltip_button_disabled:"Кнопка недоступна",tooltip_previous:"Предыдущее видео",tooltip_restart:"Начать заново",tooltip_play:"Смотреть",tooltip_pause:"Пауза",tooltip_next:"Следующее видео",tooltip_interactive_go_back:"Вернуться к предыдущей главе",tooltip_interactive_go_back_disabled:"История прохождения недоступна",tooltip_interactive_go_back_disabled_first:"Вы смотрите первую главу",tooltip_interactive_go_back_disabled_limit:"Лимит возвратов исчерпан",tooltip_chapter_without_interactive:"В этой главе нет интерактива",tooltip_interactive_of_chapter_completed:"Интерактивы этой главы уже пройдены",tooltip_interactive_seek:"Перейти к интерактиву",tooltip_interactive_graph_off:"Показать карту сюжета",tooltip_interactive_graph_on:"Скрыть карту сюжета",tooltip_live:"Перемотать на актуальный лайв",tooltip_episodes:"Эпизоды",tooltip_volume:"Включить звук",tooltip_volume_muted:"Выключить звук",tooltip_sound_unavailable:"Звук недоступен",tooltip_subtitles_off:"Включить субтитры",tooltip_subtitles_on:"Выключить субтитры",tooltip_settings_off:"Открыть настройки",tooltip_settings_on:"Закрыть настройки",tooltip_fullscreen_off:"На весь экран",tooltip_fullscreen_on:"Выйти из полноэкранного режима",tooltip_chromecast_off:"Включить Chromecast",tooltip_chromecast_on:"Выключить Chromecast",tooltip_episode_finished:"Вы уже сделали свой выбор",tooltip_episode_unfinished:"Не пройдено",tooltip_disabled_when_interactive:"Интерактив уже идёт",tooltip_disabled_when_graph_on:"Кнопка недоступна во время просмотра карты",tooltip_interactive_interaction_time_indicator:"Нажмите на элемент интерактива",tooltip_vk_logo:"Открыть в VK Видео",tooltip_vk_video_logo:"Перейти в VK Видео",tooltip_autoplay_off:"Включить автовоспроизведение",tooltip_autoplay_on:"Отключить автовоспроизведение",tooltip_context_menu_open:"Открыть контекстное меню",tooltip_context_menu_close:"Закрыть контекстное меню",download_video_caption:"Скачать видео",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"Быстрые клавиши",hotkey_map_modal_close_btn_text:"Закрыть",hotkey_map_group_title_common:"Общие",hotkey_map_group_title_playback:"Воспроизведение",hotkey_map_group_title_subtitles:"Субтитры",hotkey_map_group_title_episodes:"Эпизоды",hotkey_map_item_mute_description:"Включить или отключить звук",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"Увеличить громкость",hotkey_map_item_volume_up_value:"Стрелка вверх",hotkey_map_item_volume_down_description:"Уменьшить громкость",hotkey_map_item_volume_down_value:"Стрелка вниз",hotkey_map_item_pip_description:"Свернуть или развернуть мини-проигрыватель",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"Включить или выключить полноэкранный режим",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"Скрыть или показать контекстное меню",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"Скрыть или показать список горячих клавиш",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"Приостановить или продолжить воспроизведение",hotkey_map_item_play_toggle_value:"Пробел (или k)",hotkey_map_item_seek_backward_description:"Перемотать ролик на 10 секунд назад",hotkey_map_item_seek_backward_value:"Стрелка влево (или j)",hotkey_map_item_seek_forward_description:"Перемотать ролик на 10 секунд вперёд",hotkey_map_item_seek_forward_value:"Стрелка вправо (или l)",hotkey_map_item_fast_seek_backward_description:"Ускоренная перемотка назад",hotkey_map_item_fast_seek_backward_value:"Shift + Стрелка влево",hotkey_map_item_fast_seek_forward_description:"Ускоренная перемотка вперёд",hotkey_map_item_fast_seek_forward_value:"Shift + Стрелка вправо",hotkey_map_item_rate_down_description:"Уменьшить скорость воспроизведения",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"Увеличить скорость воспроизведения",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"Перейти к предыдущему кадру <br />(когда воспроизведение приостановлено)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"Перейти к следующему кадру <br />(когда воспроизведение приостановлено)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"Перейти к определённому моменту видео <br />(например, при нажатии на цифру «7» ролик будет перемотан до временной отметки, которая соответствует 70% от длительности видео)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"Включить или отключить субтитры",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"Перейти к предыдущему эпизоду",hotkey_map_item_prev_episode_pc_value:"Ctrl + Стрелка влево",hotkey_map_item_prev_episode_mac_value:"Option + Стрелка влево",hotkey_map_item_next_episode_description:"Перейти к следующему эпизоду",hotkey_map_item_next_episode_pc_value:"Ctrl + Стрелка вправо",hotkey_map_item_next_episode_mac_value:"Option + Стрелка вправо",hotkey_map_item_next_video_description:"Перейти к следующему видео",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"Перейти к предыдущему видео",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"дн",waiting_live_hour_value:"ч",waiting_live_minute_value:"мин",waiting_live_second_value:"сек",waiting_live_colon:":",waiting_live_upcoming_title:"Трансляция еще не началась",waiting_live_timer_title:"До начала трансляции осталось",waiting_live_recover_title:"Трансляция приостановлена - она продолжится, когда автор вернётся",waiting_record_title:"Трансляция завершена - запись появится позже",aria_label_video_player:"Видео плеер",aria_label_spherical_control:"Контроллер для сферического видео. Используйте клавиши со стрелками для панорамирования видео.",aria_label_debug_panel:"Область с технической информацией, сделайте скриншот для техподдержки",aria_label_new_tab_alert:"Откроется в новой вкладке.",aria_label_menu_quality:"Качество: {actual}",aria_label_menu_audio_languages:"Язык аудио: {actual}",aria_label_menu_rate:"Скорость: {actual}",aria_label_menu_subtitle:"Субтитры: {actual}",aria_label_menu_download:"Скачать видео",aria_label_menu_debug_overlay:"Отображение технической информации",aria_label_menu_rotate:"Повернуть видео на 90 градусов",aria_label_menu_loop:"Переключение режима повторения",aria_label_submenu_back:"Вернуться в меню настроек",aria_label_submenu_traffic_saving:"Режим экономии данных",aria_label_settings:"Настройки",aria_label_context_menu:"Контекстное меню",aria_label_autoplay:"Автовоспроизведение",end_screen_next_video:"Следующее видео",end_screen_recommended_video:"Рекомендуемое видео",slow_video_notification_button:"Выбрать качество «Авто»",slow_video_notification_force_description:`Видео грузится слишком медленно,
|
|
51
|
+
качество изменено на «Авто»`,slow_video_notification_suggest_description:`Видео загружается слишком медленно -
|
|
52
|
+
попробуйте изменить качество на «Авто»`,double_forward_label:"2x",preview_track_notification_text:"Потяните вверх для точной перемотки",preview_track_close_tooltip:"Выйти из режима точной перемотки"},z_=Z1;var J1={auto_quality_invariant:"Auto",auto_quality:"Auto ({actual})",auto_quality_option:"Auto",other_quality:"Other",high_quality:"High quality",high_quality_description:"Uses more data",auto_quality_limit:"Auto",traffic_saving_quality:"Data saving",traffic_saving_quality_description:"Videos load faster but at lower quality",quality_applience:"You can {action} the default quality",quality_applience_action:"change",default_quality_for_any_video:"Quality for all videos",menu_quality:"Quality",menu_playback_rate:"Playback rate",menu_traffic_saving:"Data saving",menu_report:"Report a problem",menu_pip:"Picture in picture",menu_pip_close:"Expand video",menu_copy_video_link:"Copy video link",menu_copy_video_link_with_timestamp:"Copy link with timestamp",menu_video_rotate:"Rotate",menu_video_loop_on:"Enable loop",menu_video_loop_off:"Disable loop",menu_chromecast:"Chromecast stream",menu_copy_debug:"Copy debug info",menu_save_debug:"Save debug info",menu_debug_overlay:"Tech stats",menu_copy_embed_code:"Copy embed code",menu_audio_languages:"Audio track",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"Audio track {index}",pip_dummy_title:"Video plays in picture-in-picture mode",submenu_quality:"Quality",submenu_playback_rate:"Playback rate",submenu_traffic_saving:"Data saving",submenu_settings:"Settings",submenu_audio_languages:"Audio track",playing_ads:"Ads {timeleft}",skip_ads_after:"Skip ads",skip_ads_now:"Skip {time}s",visit_advertiser:"Visit site",aria_timeline:"Time scale slider",aria_timeline_value:"{position} out of {duration}",doubletap_seek_step:"{seconds} seconds",playback_rate_1:"Normal",playback_rate:"{multiplier}x",video360:"spherical video",subtitles_caption:"Subtitles",subtitles_auto:"{language} (Auto-generated)",subtitles_off:"Off",subtitles_auto_caption:"Auto subtitles",subtitles_turn_on:"Turn on subtitles",subtitles_turn_off:"Turn off subtitles",traffic_saving_off:"Off",traffic_saving_on:"On",traffic_saving_helper_text:"When turned on the video quality will be reduced to save data",tooltip_button_disabled:"Button disabled",tooltip_previous:"Previous video",tooltip_restart:"Watch again",tooltip_play:"Play",tooltip_pause:"Pause",tooltip_next:"Next video",tooltip_interactive_go_back:"Back to previous chapter",tooltip_interactive_go_back_disabled:"Interactive history unavailable",tooltip_interactive_go_back_disabled_first:"You're watching the first chapter",tooltip_interactive_go_back_disabled_limit:"Go-back limit exceeded",tooltip_chapter_without_interactive:"This chapter has no interactive segment",tooltip_interactive_of_chapter_completed:"Chapter's interactive segments already watched",tooltip_interactive_seek:"Go to interactive",tooltip_interactive_graph_off:"Show interactive graph",tooltip_interactive_graph_on:"Hide interactive graph",tooltip_live:"Go to the live edge",tooltip_episodes:"Episodes",tooltip_volume:"Volume off",tooltip_volume_muted:"Turn volume on",tooltip_sound_unavailable:"Sound unavailable",tooltip_subtitles_off:"Turn subtitles on",tooltip_subtitles_on:"Turn subtitles off",tooltip_settings_off:"Open settings",tooltip_settings_on:"Close settings",tooltip_fullscreen_off:"Enter fullscreen mode",tooltip_fullscreen_on:"Exit fullscreen mode",tooltip_chromecast_off:"Turn Chromecast on",tooltip_chromecast_on:"Turn Chromecast off",tooltip_episode_finished:"You have already viewed interactive episode",tooltip_episode_unfinished:"Interactive episode not finished",tooltip_disabled_when_interactive:"Interactive video in progress",tooltip_disabled_when_graph_on:"Button is disabled when graph is opened",tooltip_interactive_interaction_time_indicator:"Press the interactive element",tooltip_vk_logo:"Open in VK Video",tooltip_vk_video_logo:"Go to VK Video",tooltip_autoplay_off:"Turn autoplay on",tooltip_autoplay_on:"Turn autoplay off",tooltip_context_menu_open:"Open context menu",tooltip_context_menu_close:"Close context menu",download_video_caption:"Download video",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"Keyboard shortcuts",hotkey_map_modal_close_btn_text:"Close",hotkey_map_group_title_common:"Common",hotkey_map_group_title_playback:"Playback",hotkey_map_group_title_subtitles:"Subtitles",hotkey_map_group_title_episodes:"Episodes",hotkey_map_item_mute_description:"Toggle mute",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"Increase volume",hotkey_map_item_volume_up_value:"Arrow up",hotkey_map_item_volume_down_description:"Decrease volume",hotkey_map_item_volume_down_value:"Arrow down",hotkey_map_item_pip_description:"Toggle miniplayer",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"Toggle full screen",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"Hide or show context menu",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"Hide or show list of hotkeys",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"Toggle play/pause",hotkey_map_item_play_toggle_value:"Space (or k)",hotkey_map_item_seek_backward_description:"Rewind 10 seconds",hotkey_map_item_seek_backward_value:"Arrow left (or j)",hotkey_map_item_seek_forward_description:"Forward 10 seconds",hotkey_map_item_seek_forward_value:"Arrow right (or l)",hotkey_map_item_fast_seek_backward_description:"Fast rewind",hotkey_map_item_fast_seek_backward_value:"Shift + Arrow left",hotkey_map_item_fast_seek_forward_description:"Fast forward",hotkey_map_item_fast_seek_forward_value:"Shift + Arrow right",hotkey_map_item_rate_down_description:"Decrease playback rate",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"Increase playback rate",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"Previous frame (while paused)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"Next frame (while paused)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"Seek to specific point in the video (7 advances to 70% of duration)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"Toggle captions ON/OFF",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"Seek to previous episode",hotkey_map_item_prev_episode_pc_value:"Ctrl + Arrow left",hotkey_map_item_prev_episode_mac_value:"Option + Arrow left",hotkey_map_item_next_episode_description:"Seek to next episode",hotkey_map_item_next_episode_pc_value:"Ctrl + Arrow right",hotkey_map_item_next_episode_mac_value:"Option + Arrow right",hotkey_map_item_next_video_description:"Next video",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"Previous video",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"d",waiting_live_hour_value:"h",waiting_live_minute_value:"min",waiting_live_second_value:"sec",waiting_live_colon:":",waiting_live_upcoming_title:"The broadcast hasn't started yet",waiting_live_timer_title:"Before the start of the broadcast left",waiting_live_recover_title:"The broadcast has been paused - it will resume when the author returns",waiting_record_title:"The broadcast completed - recording will appear later",aria_label_video_player:"Video player",aria_label_spherical_control:"Spherical video control. Use the arrow keys to pan the video.",aria_label_debug_panel:"Technical information area, take a screenshot for technical support",aria_label_new_tab_alert:"Opens in a new tab.",aria_label_menu_quality:"Quality: {actual}",aria_label_menu_audio_languages:"Audio language: {actual}",aria_label_menu_rate:"Rate: {actual}",aria_label_menu_subtitle:"Subtitles: {actual}",aria_label_menu_download:"Download video",aria_label_menu_debug_overlay:"Display of technical information",aria_label_menu_rotate:"Rotate video 90 degrees",aria_label_menu_loop:"Toggle loop",aria_label_submenu_back:"Return to settings menu",aria_label_submenu_traffic_saving:"Data saving mode",aria_label_settings:"Settings",aria_label_context_menu:"Context menu",aria_label_autoplay:"Autoplay",end_screen_next_video:"Next video",end_screen_recommended_video:"Recommended video",slow_video_notification_button:"Select Auto quality",slow_video_notification_force_description:`The video is loading too slowly,
|
|
53
|
+
so the quality was changed to Auto`,slow_video_notification_suggest_description:`The video is loading too slowly.
|
|
54
|
+
Try switching the quality to Auto.`,double_forward_label:"2x",preview_track_notification_text:"pull up to open precise rewind",preview_track_close_tooltip:"dismiss precise rewind"},W_=J1;var Rs=new Map;Rs.set(Fl.InterfaceLanguage.EN,W_);Rs.set(Fl.InterfaceLanguage.RU,z_);var K_=new Map,im=({language:t,pack:e,fallback:i})=>{if(Rs.has(t)){let o=Rs.get(t);Rs.set(t,{...o,...e})}else Rs.set(t,e);K_.set(t,i)},om=t=>Rs.has(t),nm=(t,e,i,o)=>{var l;let r=Rs.get(t),a=r==null?void 0:r[e];if((0,Fl.isNullable)(a)){let d=(l=K_.get(t))!=null?l:o,s=d?Rs.get(d):void 0;a=s==null?void 0:s[e]}return(0,Fl.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},j=(t,e)=>{let{interfaceLanguage$:i}=he(),o=be(i),r=Rt();return nm(o,t,e,r.defaultLanguage)};var ey=Ie('<path d="M26.86 15.18a3.7 3.7 0 0 0 2.53-3.6C29.4 8.91 27.2 7 24.07 7c-1.96 0-3.57.78-4.67 2.29l-.1.15a1.33 1.33 0 0 0 .26 1.85c.54.4 1.3.35 1.74-.16l.2-.25a3 3 0 0 1 2.5-1.3c1.53 0 2.6.91 2.6 2.25 0 1.36-1.09 2.27-2.65 2.27h-.58a1.23 1.23 0 0 0 0 2.47h.58c1.75 0 2.91.98 2.91 2.39 0 1.45-1.19 2.46-2.88 2.46a3.2 3.2 0 0 1-2.89-1.6l-.2-.29a1.4 1.4 0 0 0-2.05-.25 1.3 1.3 0 0 0-.3 1.68l.21.33A6 6 0 0 0 24 24c3.28 0 5.63-2.04 5.63-4.92a4 4 0 0 0-2.77-3.9M37.73 12.68c-.46 0-1 .04-1.5.16L38.8 9.1a1.34 1.34 0 1 0-2.2-1.52l-3.76 5.47C31.43 15.18 31 16.87 31 18.33 31 21.8 33.56 24 37.19 24c3.6 0 6.16-2.4 6.16-5.77a5.4 5.4 0 0 0-5.63-5.56m-.53 8.74c-1.98 0-3.33-1.27-3.33-3.14 0-1.85 1.35-3.14 3.33-3.14 1.95 0 3.3 1.29 3.3 3.14 0 1.87-1.35 3.14-3.3 3.14m20.8-5.9c0 5.03-2.7 8.43-6.63 8.43s-6.62-3.4-6.62-8.44 2.7-8.44 6.62-8.44S58 10.47 58 15.51m-10.35 0c0 3.56 1.49 5.85 3.72 5.85s3.72-2.3 3.72-5.86-1.48-5.86-3.72-5.86c-2.23 0-3.72 2.3-3.72 5.86M67 9.49A3.5 3.5 0 0 1 63.51 13 3.5 3.5 0 0 1 60 9.49 3.5 3.5 0 0 1 63.51 6 3.5 3.5 0 0 1 67 9.49m-5 0c0 .83.68 1.51 1.51 1.51.81 0 1.5-.68 1.5-1.51 0-.81-.69-1.5-1.5-1.5-.83 0-1.51.69-1.51 1.5ZM67 23.5c0-1.32-1.2-3.1-4.2-4.67a1.5 1.5 0 1 1 1.4-2.66c3.25 1.72 5.8 4.26 5.8 7.33 0 3.13-2.56 5.55-6.09 7.27-3.63 1.77-8.82 3.06-15.26 3.72a1.5 1.5 0 0 1-.3-2.98c6.25-.64 11.05-1.88 14.25-3.44 3.3-1.6 4.4-3.27 4.4-4.57M38.88 35H38c-9.64 0-17.45-1.13-22.9-3.02-2.72-.94-4.94-2.1-6.5-3.47C7.01 27.14 6 25.44 6 23.5a6.2 6.2 0 0 1 1.9-4.25 16 16 0 0 1 4.43-3.1 1.5 1.5 0 1 1 1.34 2.7q-2.39 1.19-3.59 2.46C9.3 22.14 9 22.87 9 23.5c0 .8.4 1.74 1.57 2.76s3 2.01 5.51 2.89C21.11 30.89 28.55 32 38 32h.88l-1.44-1.44a1.5 1.5 0 0 1 2.12-2.12l4 4h.01a1.5 1.5 0 0 1 .32 1.63 2 2 0 0 1-.33.5l-4 4a1.5 1.5 0 0 1-2.12-2.13z"></path>');function jd(t,e){B(e,!1);let i=j("video360");ho(),Je(t,{width:"76",height:"45",get ariaLabel(){return i},testId:"video-360-icon",shadow:!0,children:(o,r)=>{var a=ey();$(o,a)},$$slots:{default:!0}}),H()}var c9=require("@vkontakte/videoplayer-core/es2018");var Ul;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(Ul||(Ul={}));var ty=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,iy=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,oy=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Wu="?",ny="X-Sentry-Auth",ry=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function sy(t){if(!t.stack)return null;let e=[],i=t.stack.split(`
|
|
55
|
+
`),o,r;for(let a=0;a<i.length;++a){if(o=ty.exec(i[a]))r={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||Wu,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=oy.exec(i[a]))r={filename:o[2],function:o[1]||Wu,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=iy.exec(i[a]))a===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),r={filename:o[3],function:o[1]||Wu,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!r.function&&r.lineno&&(r.function=Wu),e.push(r)}return e.length?{value:q_(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function q_(t){return(t&&t.message||"No error message").split(`
|
|
56
|
+
`).filter(i=>!!i)[0]}function ay(t){try{let e=sy(t);if(e)return e}catch(e){}return{value:q_(t),type:t&&t.name,stacktrace:{frames:[]}}}function ly(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var Ku=class{constructor(e){if(e&&e.dsn){let i=ry.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{...this.getRequestBlank(),exception:{values:[ay(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(ny,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:ly(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function Q_(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function dy(){return window}var qu=class t extends Ku{constructor(e,i=dy()){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",{...e}),this}setTag(e,i){return this.extendState({tags:{[e]:i}}),this}setExtra(e,i){return this.extendState({extra:{[e]:i}}),this}setExtras(e){return this.setKeyState("extra",{...e}),this}setUser(e){return this.setKeyState("user",{...e}),this}clone(){let e=new t({...this.options,plugins:[]});return e.extendState(this.state),e}withScope(e){let i=this.clone();e(i),i.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[{timestamp:Date.now()/1e3,...this.beforeBreadcrumb(e)}]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send({...this.getRequestBlank(),message:e,level:i})}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(i=>this.ignoreErrors.some(o=>Q_(i,o))):!1}getRequestBlank(){return{request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}},...super.getRequestBlank(),sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"},...this.state}}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend({release:this.release,...e})),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:i="",value:o=""}=e.exception.values&&e.exception.values[0]||{};return[`${o}`,`${i}: ${o}`]}catch(i){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let i=this.getEventFilterUrl(e);return i?this.blacklistUrls.some(o=>Q_(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{...i,[o]:a||d?[...a||[],...d||[]]:{...typeof r!="string"?r:{},...typeof l!="string"?l:{}}}},this._state)}setKeyState(e,i){this._state[e]=i}};var Ha=require("@vkontakte/videoplayer-shared/es2018");var Qu=null,Fa=class{constructor(e,i,o={}){!Qu&&e.dsn&&(this.sentryClient=new qu({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new Ha.Subscription,this.options=e,this.context=o,Qu=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),Qu=null}logIError(e,i=!1){e.thrown&&this.report(e.thrown,{fatal:i,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,i={},o={}){let{sentryClient:r,context:a,options:l}=this,{sampleRate:d=0,whiteErrorIdList:s,whiteErrorCategoryList:u=[],blackErrorIdList:f,blackErrorCategoryList:p}=l,{errorType:v,category:_}=i;if((0,Ha.isNonNullable)(_)&&p.includes(_)||(0,Ha.isNonNullable)(v)&&f.includes(v))return;if(Math.random()<=d||(0,Ha.isNonNullable)(_)&&u.includes(_)||(0,Ha.isNonNullable)(v)&&s.includes(v)){Object.keys(i).length&&r.setTags({version:this.version,...i}),(Object.keys(a).length||Object.keys(o).length)&&r.setExtras({...a,...o});try{v&&r.captureMessage(v,i.fatal?Ul.fatal:Ul.error),r.report(e)}catch(b){console.error(b)}}}static getInstance(){return Qu}};var ns=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(ns||{});var Gu=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()},Yu=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),G_=(t,e)=>e?!0:t.fullscreenEnabled||!!t.webkitFullscreenEnabled||!!t.mozFullscreenEnabled||!!t.msFullscreenEnabled,Y_=t=>{let e=t;e!=null&&e.webkitExitFullscreen&&(e==null||e.webkitExitFullscreen())},Xd=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},ra=()=>!!Xd(),ju=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},Xu=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},j_=t=>{let e=window.screen;return(async r=>e.orientation?e.orientation.lock(r):e.mozLockOrientation?e.mozLockOrientation(r):e.msLockOrientation?e.msLockOrientation(r):Promise.reject())(((r={width:0,height:0})=>r.width<=r.height?"portrait":"landscape")(t))};var rm=require("@vkontakte/videoplayer-core/es2018"),X_=()=>({title:j("hotkey_map_modal_title"),closeBtnText:j("hotkey_map_modal_close_btn_text"),groups:[{title:j("hotkey_map_group_title_common"),items:[{description:j("hotkey_map_item_mute_description"),value:j("hotkey_map_item_mute_value")},{description:j("hotkey_map_item_volume_up_description"),value:j("hotkey_map_item_volume_up_value")},{description:j("hotkey_map_item_volume_down_description"),value:j("hotkey_map_item_volume_down_value")},{description:j("hotkey_map_item_pip_description"),value:j("hotkey_map_item_pip_value")},{description:j("hotkey_map_item_full_screen_description"),value:j("hotkey_map_item_full_screen_value")},{description:j("hotkey_map_item_show_context_menu_description"),value:j("hotkey_map_item_show_context_menu_value")},{description:j("hotkey_map_item_show_hotkey_map_description"),value:j("hotkey_map_item_show_hotkey_map_value")}]},{title:j("hotkey_map_group_title_playback"),items:[{description:j("hotkey_map_item_play_toggle_description"),value:j("hotkey_map_item_play_toggle_value")},{description:j("hotkey_map_item_seek_backward_description"),value:j("hotkey_map_item_seek_backward_value")},{description:j("hotkey_map_item_seek_forward_description"),value:j("hotkey_map_item_seek_forward_value")},{description:j("hotkey_map_item_fast_seek_backward_description"),value:j("hotkey_map_item_fast_seek_backward_value")},{description:j("hotkey_map_item_fast_seek_forward_description"),value:j("hotkey_map_item_fast_seek_forward_value")},{description:j("hotkey_map_item_rate_down_description"),value:j("hotkey_map_item_rate_down_value")},{description:j("hotkey_map_item_rate_up_description"),value:j("hotkey_map_item_rate_up_value")},{description:j("hotkey_map_item_prev_frame_description"),value:j("hotkey_map_item_prev_frame_value")},{description:j("hotkey_map_item_next_frame_description"),value:j("hotkey_map_item_next_frame_value")},{description:j("hotkey_map_item_jump_seek_description"),value:j("hotkey_map_item_jump_seek_value")},{description:j("hotkey_map_item_next_video_description"),value:j("hotkey_map_item_next_video_value")},{description:j("hotkey_map_item_prev_video_description"),value:j("hotkey_map_item_prev_video_value")}]},{title:j("hotkey_map_group_title_subtitles"),items:[{description:j("hotkey_map_item_subtitles_toggle_description"),value:j("hotkey_map_item_subtitles_toggle_value")}]},{title:j("hotkey_map_group_title_episodes"),items:[{description:j("hotkey_map_item_prev_episode_description"),value:rm.clientChecker.device.isApple?j("hotkey_map_item_prev_episode_mac_value"):j("hotkey_map_item_prev_episode_pc_value")},{description:j("hotkey_map_item_next_episode_description"),value:rm.clientChecker.device.isApple?j("hotkey_map_item_next_episode_mac_value"):j("hotkey_map_item_next_episode_pc_value")}]}]});var Ns=require("@vkontakte/videoplayer-shared/es2018"),Z_=require("@vkontakte/videoplayer-core/es2018"),Ua=class{constructor({enabled:e=!0}={enabled:!0}){this.isRequested=!1;this.videoElement=void 0;this.playerContainer=void 0;this.externalEventHandlers={};this.eventHandlers={enterpictureinpicture:this.onEnterPictureInPicture.bind(this),leavepictureinpicture:this.onLeavePictureInPicture.bind(this),resize:(0,Ns.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new Ns.ValueSubject(!1),isEnabled$:new Ns.ValueSubject(!1),type:0};this.info.isEnabled$=new Ns.ValueSubject(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.info.isActive$.getValue()}setContext(e){this.svelteContext=e}async revealPictureInPicture(){this.isRequested&&(this.removeEventHandlers(),await this.request(),this.addEventHandlers())}async request(){var e;if(!(!this.isSupported()||this.isActive()))try{await((e=this.videoElement)==null?void 0:e.requestPictureInPicture())}catch(i){this.isRequested=!1}}async exit(){!this.isSupported()||!this.isActive()||await document.exitPictureInPicture()}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){this.isSupported()&&this.exit().finally(()=>{var i;this.removeEventHandlers();let e=this.videoElement;this.videoElement=(i=this.playerContainer)==null?void 0:i.querySelector("video"),this.waitForSafariLeavePictureInPicture(e,this.videoElement),this.addEventHandlers()})}addEventHandlers(){var e,i;(e=this.videoElement)==null||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}setExternalEventHandlers(e){this.externalEventHandlers={...e}}removeEventHandlers(){var e,i;(e=this.videoElement)==null||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}async dispose(){this.removeEventHandlers(),await this.exit(),this.info.isActive$.next(!1),this.isRequested=!1}onEnterPictureInPicture(e){var r,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)}waitForSafariLeavePictureInPicture(e,i){if(Z_.clientChecker.browser.isSafari&&e&&e!==i){let r=this.eventHandlers.leavepictureinpicture,a=0,l=()=>{(0,Ns.getWindow)().clearTimeout(a),e.removeEventListener("leavepictureinpicture",d)},d=s=>(r(s),l());e.addEventListener("leavepictureinpicture",d),a=(0,Ns.getWindow)().setTimeout(l,1e3)}}};function za(t){return t instanceof Ua}var zl=require("@vkontakte/videoplayer-shared/es2018");function am(t,e){B(e,!1);let i=he();Vt(()=>{i.getAdmanWrapper().startPostroll()}),ho(),H()}var J_=require("@vkontakte/videoplayer-shared/es2018");var cy=Ie('<path d="M11.74 6.74a.9.9 0 0 1-1.28 0L6 2.27 1.54 6.74A.9.9 0 1 1 .26 5.46l5.1-5.1a.9.9 0 0 1 1.28 0l5.1 5.1a.9.9 0 0 1 0 1.28Z"></path>'),uy=Ie('<path d="m5.773 8 3.363 3.364a.9.9 0 1 1-1.272 1.272l-4-4a.9.9 0 0 1 0-1.272l4-4a.9.9 0 0 1 1.272 1.272L5.773 8z"></path>');function Mr(t,e){B(e,!0);let i=h(e,"direction",3,"left"),o=h(e,"useBtnColor",3,!1),r=m(()=>["up","down"].includes(i())),a=m(()=>["right","down"].includes(i())),l=m(()=>`chevron-icon--${i()}`),d=m(()=>(()=>{let f="";return n(a)&&(f+="transform: rotate(180deg);"),f.length?f:void 0})()),s=m(()=>o()?na:"currentColor"),u=m(()=>n(r)?"7":"16");Je(t,{width:"12",get height(){return n(u)},get fill(){return n(s)},get testId(){return n(l)},get style(){return n(d)},children:(f,p)=>{var v=Le(),_=ce(v);{var y=w=>{var I=cy();$(w,I)},b=w=>{var I=uy();$(w,I)};V(_,w=>{n(r)?w(y):w(b,!1)})}$(f,v)},$$slots:{default:!0}}),H()}var py=(t,e,i)=>{t.stopPropagation(),n(e)&&i()()},fy=L('<div class="skip s-1h"> <!></div>'),my=L("<div><!></div>"),vy={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 lm(t,e){B(e,!0),Y(t,vy);let[i,o]=De(),r=()=>x(u,"$isMobile",i),a=h(e,"position",3,0),l=h(e,"secondsToWatchBeforeSkip",3,0),d=h(e,"skipAd",3,J_.noop),u=he().ui.isMobile,f=m(()=>a()>0&&a()>=l());var p=my();let v;p.__click=[py,f,d];var _=C(p);{var y=w=>{var I=fy(),T=C(I),N=P(T);Mr(N,{direction:"right"}),S(I),D(A=>me(T,`${A!=null?A:""} `),[()=>j("skip_ads_now")]),$(w,I)},b=w=>{var I=vs();D(T=>me(I,T),[()=>j("skip_ads_after",{time:Math.ceil(l()-a()).toFixed(0)})]),$(w,I)};V(_,w=>{n(f)?w(y):w(b,!1)})}S(p),D(w=>v=ne(p,1,"container s-1h",null,v,w),[()=>({"container-mobile":r(),skippable:n(f)})]),$(t,p),H(),o()}je(["click"]);var gy=L('<button class="go-to-site s-1i"> </button>'),hy={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 dm(t,e){B(e,!1),Y(t,hy),ho();var i=gy(),o=C(i,!0);S(i),D(r=>me(o,r),[()=>j("visit_advertiser")],In),$(t,i),H()}var _y=L('<div class="top-gradient-mobile s-s"></div>'),by=L('<div class="container s-s"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),$y={hash:"s-s",code:".container.s-s{height:100%;width:100%}.top-gradient-mobile.s-s{background:linear-gradient(1turn,transparent,rgba(0,0,0,.05) 12%,rgba(0,0,0,.15) 25%,rgba(0,0,0,.3) 45%,rgba(0,0,0,.4) 57%,rgba(0,0,0,.5) 77%,rgba(0,0,0,.55) 88%,rgba(0,0,0,.65));height:80px;left:0;pointer-events:none;position:absolute;top:0;width:100%}"};function Jd(t,e){B(e,!0),Y(t,$y);let[i,o]=De(),r=()=>x(F,"$canSkipAd",i),a=()=>x(Q,"$adPlaybackState",i),l=()=>x(T,"$isMobile",i),d=()=>x(z,"$adPosition",i),s=()=>x(X,"$secondsToWatchBeforeSkipAd",i),u=()=>x(I,"$isVideoEnded",i),f=h(e,"adsSlotId",3,void 0),p=h(e,"adsParams",3,void 0),v=h(e,"adsAutoplayParam",3,void 0),_=h(e,"duration",3,0),y=h(e,"adsExternalApi",3,void 0),b=he(),w=Rt(),I=b.state.isEnded$,T=b.ui.isMobile,N=w.ads.isMobileGoToSiteButton,A=q(void 0),E=q(void 0),k=!1,Q=b.ads.playbackState,F=b.ads.canSkip,z=b.ads.position,X=b.ads.secondsToWatchBeforeSkip,se=m(()=>r()&&a()!=="inactive"),Z=m(()=>l()&&a()!=="inactive"&&N);Vt(()=>{let U=b.getAdmanWrapper();if(zl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[(0,zl.now)(),f()]}),!f()){U.onAdmanLoadingError();return}let O=()=>{var Re;let{width:ye,height:He}=be(b.ui.playerSize),ot=be(b.ui.isFullscreen),re=(Re=v())!=null?Re:be(b.ui.isAutoplay),de=w.ads.paramsOverride;return{width:ye,height:He,isFullscreen:ot,isAutoplay:re,adsContainer:n(A),adsVideoElement:n(E),slotId:f(),params:p(),paramsOverride:de,duration:_(),externalApi:y()}},Ye=async ye=>{ye&&await mo();let He=O();await U.initAdman(He),k=!0},K=new AbortController,ae=()=>{K.abort()};return window.AdmanHTML?Ye(!0).catch(()=>{U.onAdmanLoadingError()}):U.loadAdman(K.signal).then(()=>Ye(!1)).catch(()=>{U.onAdmanLoadingError()}),()=>{zl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[(0,zl.now)(),f()]}),!k&&ae()}});var oe=by(),J=C(oe);{var Ce=U=>{var O=_y();$(U,O)};V(J,U=>{l()&&U(Ce)})}var pe=P(J,2);Ze(pe,U=>R(E,U),()=>n(E));var ee=P(pe,2);{var _e=U=>{lm(U,{get position(){return d()},get secondsToWatchBeforeSkip(){return s()},get skipAd(){return b.actions.internal.skipAd}})};V(ee,U=>{n(se)&&U(_e)})}var we=P(ee,2);{var ve=U=>{am(U,{})};V(we,U=>{u()&&U(ve)})}var ue=P(we,2);{var Ge=U=>{dm(U,{})};V(ue,U=>{n(Z)&&U(Ge)})}S(oe),Ze(oe,U=>R(A,U),()=>n(A)),$(t,oe),H(),o()}var Xo=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 yy=Ie('<path fill="#fff"></path>'),xy=Ie("<path></path><!>",1);function ec(t,e){let i=h(e,"isActive",3,!1),o=m(()=>i()?"live-active-icon":"live-icon"),r=m(()=>i()?"var(--timeline-slider-filled-active-live-bg, #FF3347)":void 0),a="M8 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2H9V6a1 1 0 0 0-1-1m7 1a1 1 0 1 1 2 0v8a1 1 0 1 1-2 0zm15-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2h-3v-2h3a1 1 0 1 0 0-2h-3V7h3a1 1 0 1 0 0-2zm-8.32 9.31-2.55-7.82a1 1 0 0 1-.12-.37L19 6.1a1 1 0 1 1 2-.2l2 6.4 2-6.4a1 1 0 0 1 2 .2v.02a1 1 0 0 1-.13.37l-2.55 7.82a1 1 0 0 1-.95.69h-.74a1 1 0 0 1-.95-.69";Je(t,{width:"42",height:"20",get testId(){return n(o)},get fill(){return n(r)},children:(l,d)=>{var s=xy(),u=ce(s),f=P(u);{var p=v=>{var _=yy();Me(_,"d",a),$(v,_)};V(f,v=>{i()&&v(p)})}D(()=>Me(u,"d",`M5 0h32s5 0 5 5v10s0 5 -5 5h-32s-5 0 -5 -5v-10s0 -5 5 -5${i()?"":"M5.5 2h31s3.5 0 3.5 3.5v9s0 3.5-3.5 3.5h-31s-3.5 0-3.5-3.5v-9s0-3.5 3.5-3.5"+a}z`)),$(l,s)},$$slots:{default:!0}})}var wy=L('<div class="equalizer s-b"><div class="col s-b"></div> <div class="col s-b"></div> <div class="col s-b"></div></div>'),Sy=L('<div class="live-icon s-b"><!></div>'),Cy=L('<span class="text s-b"> </span>'),Ty=L("<div><!> <!></div>"),Iy={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 tc(t,e){Y(t,Iy);let i=h(e,"withEqualizer",3,!1),o=h(e,"isLive",3,!1),r=h(e,"isPlaying",3,!1);var a=Ty();let l;var d=C(a);{var s=v=>{var _=wy();$(v,_)};V(d,v=>{i()&&v(s)})}var u=P(d,2);{var f=v=>{var _=Sy(),y=C(_);ec(y,{isActive:!0}),S(_),$(v,_)},p=v=>{var _=Cy(),y=C(_,!0);S(_),D(()=>me(y,e.time)),$(v,_)};V(u,v=>{o()?v(f):v(p,!1)})}S(a),D(v=>l=ne(a,1,"wrapper s-b",null,l,v),[()=>({live:o(),playing:r()})]),$(t,a)}var Wl=(t,e,i)=>{let o;return()=>(window.clearTimeout(o),t?o=window.setTimeout(()=>e.set(!0),i):e.set(!1),()=>window.clearTimeout(o))};var Ey=L('<div role="timer" data-testid="thumb-timer"><!></div>'),ky={hash:"s-i",code:".thumb-timer.s-i{bottom:0;margin:8px;position:absolute;right:0;transition:visibility var(--controls-transition-duration),opacity var(--controls-transition-duration);z-index:var(--thumb-timer-z-index)}"};function ic(t,e){B(e,!0),Y(t,ky);let[i,o]=De(),r=()=>x(f,"$disabled",i),a=h(e,"isHidden",3,!1),l=h(e,"isLive",3,!1),d=h(e,"isPlaying",3,!1),s=Rt(),u=m(()=>Xo(e.duration-e.position)),f=le(!1);var p=Ey();let v;var _=C(p);tc(_,{get time(){return n(u)},get isLive(){return l()},get isPlaying(){return d()},withEqualizer:!0}),S(p),Vs(p,()=>Wl(a()&&s.features.usePerformanceFix,f,s.disableInvisibleComponentsTimeout)),D(y=>v=ne(p,1,"thumb-timer s-i",null,v,y),[()=>({"out-of-flow":r(),hidden:a()})]),$(t,p),H(),o()}var Kl=t=>{if(!navigator.clipboard){eb(t);return}navigator.clipboard.writeText(t).catch(()=>eb(t))};function eb(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 ep=require("@vkontakte/videoplayer-core/es2018");var um=require("@vkontakte/videoplayer-core/es2018");var cm="focus-hidden";var Vr=t=>{t.stopPropagation(),t.preventDefault()},pm=t=>{var e,i;(i=(e=t.parentNode)==null?void 0:e.firstElementChild)==null||i.classList.remove(cm)},Ay=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},Ly=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},My=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},Vy=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},tb=t=>t.code==="Escape",Ry=t=>t.code==="ArrowLeft",oc=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},ib=t=>{My(t)?(Vr(t),Ly(t.target)):Vy(t)&&(Vr(t),Ay(t.target))},la=t=>!um.clientChecker.device.isAndroid&&(t==null?void 0:t.detail)===0||um.clientChecker.device.isAndroid&&(t==null?void 0:t.pointerType)==="",ql=async(t,e,i)=>{await mo(),t&&!t.classList.contains("opened")&&!e&&be(i)&&(await mo(),i.set(!1),t.focus())},ob=async(t,e,i)=>{await mo(),t&&!e&&be(i)&&(i.set(!1),t.focus())},nc=async(t,e,i,o=!1)=>{if(await mo(),!!t&&e&&!o){let a=t.children[0];a==null||a.classList.toggle(cm,!i),a==null||a.focus()}},nb=async(t,e)=>{setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)},Zu=(t,e)=>{ib(t),pm(t.target),tb(t)&&(Vr(t),e())},Ju=async(t,e)=>{oc(t,["ArrowRight"])&&(Vr(t),e())},rb=async(t,e,i)=>{if(ib(t),Ry(t)){Vr(t),e();return}tb(t)&&(Vr(t),i())},Ql=(t,e)=>{oc(t)&&(Vr(t),e())},sb=(t,e,i)=>{if(oc(t))Vr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),Vr(t);return}o==="ArrowRight"&&!e&&(i(!0),Vr(t))}},ab=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,r=e.top+i;return{right:o,bottom:r}},lb=t=>{if(!t)return{top:0,left:0};let e=t.getBoundingClientRect(),i=-58,o=8,r=e.left+o;return{bottom:e.bottom+i,left:r}};var qa=require("@vkontakte/videoplayer-shared/es2018");var rs={"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 fm=require("@vkontakte/videoplayer-shared/es2018");var Dy=(t,e)=>{Ql(t,()=>e())},Oy=L('<li class="item s-1n" role="menuitem" tabindex="0"> </li>'),By={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 mm(t,e){B(e,!0),Y(t,By);let i=h(e,"onClick",3,fm.noop),o=h(e,"closeContextMenu",3,fm.noop),r=d=>{d==null||d.stopPropagation(),i()(),o()()};var a=Oy();a.__click=r,a.__keydown=[Dy,r];var l=C(a,!0);S(a),D(()=>{var d;Me(a,"aria-label",(d=e.ariaLabel)!=null?d:e.label),Me(a,"data-testid",e.id),me(l,e.label)}),$(t,a),H()}je(["click","keydown"]);var Ka=(t,e)=>t.weight-e.weight;var Gl=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(Gl||{});var Hy=(t,e)=>{Zu(t,e)},Fy=t=>{t.preventDefault()},Uy=L('<ul role="menu" class="s-y"></ul>'),zy={hash:"s-y",code:"ul.s-y{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 vm(t,e){B(e,!0),Y(t,zy);let[i,o]=De(),r=()=>x(Ce,"$playerPhase",i),a=()=>x(se,"$isLive$",i),l=()=>x(pe,"$isPiPEnabled$",i),d=()=>x(X,"$chromecastState$",i),s=()=>x(ee,"$pictureInPictureApiIsActive$",i),u=()=>x(J,"$isLooped$",i),f=()=>x(Z,"$positionExact$",i),p=()=>x(Q,"$additionalContextMenuItems$",i),v=h(e,"visible",3,!1),_=h(e,"position",19,()=>({top:0,left:0})),y=h(e,"playerContainerRef",3,void 0),b=h(e,"menuElementRef",15,void 0),w=q(0),I=q(0),T=he(),{pictureInPicture$:N}=_o(),A=Rt(),E=T.ui.contextMenu.visible$,k=T.ui.debugPanelVisible,Q=T.ui.additionalContextMenuItems$,F=T.ui.t,z=T.actions.internal.togglePictureInPicture,X=T.state.chromecastState$,se=T.state.isLive$,Z=T.state.positionExact$,oe=T.state.isInteractive,J=T.state.looped$,Ce=T.playerPhase,{isEnabled$:pe,isActive$:ee}=N,_e=m(()=>r()==="video"),we=m(()=>!!a()&&n(_e)),ve=m(()=>["thumb","LiveWaitingStart","LiveWaitingRecover","LiveWaitingRecord"].includes(r())),ue=m(()=>{var fe;return A.features.copyVideoLink&&((fe=T.callbacks)==null?void 0:fe.onCopyVideoLink)}),Ge=m(()=>n(ue)&&!n(ve)&&!oe&&!n(we)),U=m(()=>{var fe;return!!((fe=T.callbacks)!=null&&fe.onCopyEmbedCodeClicked)}),O=m(()=>l()&&d()!==ep.ChromecastState.CONNECTED&&!oe&&n(_e)&&!ep.clientChecker.browser.isFirefox),Ye=m(()=>!oe&&!n(ve)&&!n(we)),K=m(()=>A.features.videoRotate&&!oe&&!n(ve)),ae=m(()=>A.showSupport&&!s()),ye=m(()=>A.features.saveTraceInfoToFile),He=()=>{var fe;E.set(!1),(fe=e.returnFocus)==null||fe.call(e)},ot=(fe,Ne)=>{if(!b()||!y())return;let Qe=b().getBoundingClientRect(),rt=y().getBoundingClientRect();R(w,fe-rt.left),R(I,Ne-rt.top),n(w)+Qe.width>rt.width&&R(w,rt.width-Qe.width),n(I)+Qe.height>rt.height&&R(I,rt.height-Qe.height),R(w,Math.max(n(w),0),!0),R(I,Math.max(n(I),0),!0)};Oe(()=>{(async()=>{if(b()&&y()){await mo();let{top:Ne,left:Qe,bottom:rt,right:qt}=_(),Nt=Qe!=null?Qe:0,pi=Ne!=null?Ne:0,di=b().getBoundingClientRect();(0,qa.isNullable)(Qe)&&!(0,qa.isNullable)(qt)&&(Nt=qt-di.width),(0,qa.isNullable)(Ne)&&!(0,qa.isNullable)(rt)&&(pi=rt-di.height),Nt=Math.max(Nt,0),pi=Math.max(pi,0),ot(Nt,pi)}})()});let re=()=>{T.actions.internal.videoRotate()},de=()=>{(0,qa.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),T.actions.internal.reportProblem(),T.actions.internal.pause()},Re=()=>{let fe=T.actions.internal.getDebugTextData();if(A.features.saveDebugInfoToFile){let Ne=new Blob([...fe],{type:"plain/text"}),Qe=window.URL.createObjectURL(Ne);Ba(Qe,"vk_player_debug_info","txt")}else Kl(T.actions.internal.getDebugTextData())},Ve=()=>{let fe=T.actions.internal.getTraceTextData(),Ne=new Blob([...fe],{type:"application/json"}),Qe=window.URL.createObjectURL(Ne);Ba(Qe,"vk_player_trace_info","json")},tt=()=>{k.set(!0)},Ee=async()=>{var fe;try{z()}finally{(fe=e.returnFocus)==null||fe.call(e)}},Te=()=>{T.actions.internal.setLooped(!u())},Fe=()=>{var fe,Ne;if(n(U)){let Qe=(Ne=(fe=T.callbacks)==null?void 0:fe.onCopyEmbedCodeClicked)==null?void 0:Ne.call(fe);Qe&&Kl(Qe)}},At=(fe=!1)=>{var Ne,Qe;if((Ne=T.callbacks)!=null&&Ne.onCopyVideoLink){let rt=(Qe=T.callbacks)==null?void 0:Qe.onCopyVideoLink(fe,f());rt&&Kl(rt)}},kt=m(()=>A.features.saveDebugInfoToFile?F("menu_save_debug"):F("menu_copy_debug")),Lt=m(()=>n(ue)?{id:"copy-link",weight:rs["copy-link"],label:F("menu_copy_video_link"),onClick:()=>At()}:void 0),lt=m(()=>n(Ge)?{id:"copy-link-timestamp",weight:rs["copy-link-timestamp"],label:F("menu_copy_video_link_with_timestamp"),onClick:()=>At(!0)}:void 0),Ct=m(()=>n(U)?{id:"copy-embed-code",weight:rs["copy-embed-code"],label:F("menu_copy_embed_code"),onClick:Fe}:void 0),Zt=m(()=>n(O)?{id:"pip",weight:rs.pip,label:s()?F("menu_pip_close"):F("menu_pip"),onClick:Ee}:void 0),Ht=m(()=>n(Ye)?{id:"video-loop",weight:rs["video-loop"],label:u()?F("menu_video_loop_off"):F("menu_video_loop_on"),ariaLabel:F("aria_label_menu_loop"),onClick:Te}:void 0),Ot=m(()=>n(K)?{id:"rotate",weight:rs.rotate,label:F("menu_video_rotate"),ariaLabel:F("aria_label_menu_rotate"),onClick:re}:void 0),Kt=m(()=>n(ae)?{id:"report",weight:rs.report,label:F("menu_report"),ariaLabel:`${F("menu_report")}. ${F("aria_label_new_tab_alert")}`,onClick:de}:void 0),G=m(()=>({id:"save-debug",weight:rs["save-debug"],label:n(kt),onClick:Re})),Pe=m(()=>n(ye)?{id:"save-trace",weight:rs["save-trace"],label:F("menu_save_debug"),onClick:Ve}:void 0),ke=m(()=>({id:"debug-info",weight:rs["debug-info"],label:F("menu_debug_overlay"),ariaLabel:F("aria_label_menu_debug_overlay"),onClick:tt})),xe=m(()=>[n(Lt),n(lt),n(Ct),n(Zt),n(Ht),n(Ot),n(Kt),n(G),n(Pe),n(ke),...p()].filter(fe=>!!fe).sort(Ka));var Be=Le(),$e=ce(Be);{var Tt=fe=>{var Ne=Uy();Ne.__contextmenu=[Fy],Ne.__keydown=[Hy,He],$i(Ne,21,()=>n(xe),Qe=>Qe.id,(Qe,rt)=>{mm(Qe,{get id(){return n(rt).id},get label(){return n(rt).label},get ariaLabel(){return n(rt).ariaLabel},get onClick(){return n(rt).onClick},closeContextMenu:He})}),S(Ne),Ze(Ne,Qe=>b(Qe),()=>b()),D(()=>{var Qe,rt;return Ke(Ne,`top: ${(Qe=n(I))!=null?Qe:""}px; left: ${(rt=n(w))!=null?rt:""}px;`)}),$(fe,Ne)};V($e,fe=>{v()&&fe(Tt)})}$(t,Be),H(),o()}je(["contextmenu","keydown"]);var tp=class{constructor(e){this.value=e,this.next=null}};var Yl=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 Wy=L('<div class="container s-1f"><canvas class="s-1f"></canvas></div>'),Ky={hash:"s-1f",code:".container.s-1f{display:inline-block;height:16px;width:120px}canvas.s-1f{margin-top:2px;transform:scaleY(-1)}"};function rc(t,e){B(e,!0),Y(t,Ky);let i=h(e,"values",19,()=>[]),o=q(void 0),r=q(null),a=16,l=120,d=60,s=l/d;Vt(()=>{n(o).width=l,n(o).height=a,R(r,n(o).getContext("2d"),!0)});function u(v,_,y,b,w){w===0&&(w=1),v.fillStyle="#fff",v.fillRect(_,y,b,w)}Oe(()=>{let v="";if(n(r)){let _=i()[0];for(let b=1;b<i().length;b++)i()[b]>_&&(_=i()[b]);n(r).clearRect(0,0,l,a);let y=d-1;for(let b=i().length-1;b>=0;b--){let w=y*s,I=_>0?a*(i()[b]/_):0;u(n(r),w,0,s,I),v=I+" "+v,y--}}});var f=Wy(),p=C(f);Ze(p,v=>R(o,v),()=>n(o)),S(f),$(t,f),H()}var gm=require("@vkontakte/videoplayer-shared/es2018");var qy=(t,e)=>{t.stopPropagation(),gm.safeStorage.remove(Wd),e.set(!1)},Qy=L('<div class="s-k"><div class="s-k">Video id</div> <span> </span></div>'),Gy=L('<div class="s-k"><div class="s-k">VSID</div> <span> </span></div>'),Yy=L('<div class="s-k"><div class="s-k">Provider</div> <span> </span></div>'),jy=L('<div class="s-k"><div class="s-k">Streams</div> <span> </span></div>'),Xy=L('<div class="s-k"><div class="s-k">Viewport</div> <span> </span></div>'),Zy=L('<div class="s-k"><div class="s-k">Video size</div> <span> </span></div>'),Jy=L('<div class="s-k"><div class="s-k">CDN host</div> <span> </span></div>'),e0=L('<div class="s-k"><div class="s-k">Volume</div> <span> </span></div>'),t0=L('<div class="s-k"><div class="s-k">Position</div> <span> </span></div>'),i0=L('<div class="s-k"><div class="s-k">Buffer</div> <span> </span></div>'),o0=L('<div class="s-k"><div class="s-k">Nbuffer</div> <span> </span></div>'),n0=L('<div class="s-k"><div class="s-k">Live latency</div> <span> </span></div>'),r0=L('<div class="s-k"><div class="s-k">Segment</div> <span> </span></div>'),s0=L('<div class="s-k"><div class="s-k">Network</div> <!> <span> </span></div>'),a0=L('<div class="s-k"><div class="s-k">V bitrate</div> <!> <span> </span></div>'),l0=L('<div role="region"><button class="close s-k" title="закрыть">[x]</button> <div class="content s-k"><div class="s-k"><div class="s-k">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="s-k"><div class="s-k">Dropped</div> <span> </span></div> <!> <!> <div class="s-k"><div class="s-k">FPS</div> <!> <span> </span></div></div></div>'),d0={hash:"s-k",code:".container.s-k{background:rgba(28,28,28,.8);border-radius:4px;color:#fff;font-size:10px;left:20px;min-width:160px;position:absolute;text-align:left;top:45px;user-select:text;z-index:var(--debug-panel-z-index)}.container-mobile.s-k{left:16px;top:16px}button.close.s-k{background-color:transparent;border:none;color:#fff;cursor:pointer;outline:0;padding:0;position:absolute;right:5px;top:3px}.content.s-k{padding:5px}.content.s-k>div:where(.s-k)>div:where(.s-k){display:inline-block;padding:0 5px;text-align:right;width:60px}"};function sc(t,e){B(e,!0),Y(t,d0);let[i,o]=De(),r=()=>x(d,"$isMobile",i),a=he(),l=a.ui.debugPanelVisible,d=a.ui.isMobile,s=q(si(a.actions.internal.getDebugPanelData())),u=a.actions.internal.getVideoElement(),f=q(0),p=q(0),v=q(0),_=new Yl(60),y=new Yl(60),b=new Yl(60),w=q(si([])),I=q(si([])),T=q(si([])),N=j("aria_label_debug_panel");Vt(()=>{gm.safeStorage.set(Wd,"true"),a.actions.internal.startLogging(),u&&(R(p,u.getVideoPlaybackQuality().droppedVideoFrames,!0),R(f,u.getVideoPlaybackQuality().totalVideoFrames,!0));let G=window.setInterval(()=>{R(s,a.actions.internal.getDebugPanelData(),!0)},500),Pe;return u&&(Pe=window.setInterval(()=>{if(u){R(p,u.getVideoPlaybackQuality().droppedVideoFrames,!0);let ke=u.getVideoPlaybackQuality().totalVideoFrames;R(v,ke-n(f)),R(f,ke,!0),_.push(n(v)),n(s).speed&&y.push(n(s).speed),n(s).bitrate&&b.push(n(s).bitrate),R(w,_.getValuesFromBottom(),!0),R(I,y.getValuesFromBottom(),!0),R(T,b.getValuesFromBottom(),!0)}},1e3)),()=>{a.actions.internal.stopLogging(),clearInterval(G),Pe&&clearInterval(Pe)}});var A=l0();let E;var k=C(A);k.__click=[qy,l];var Q=P(k,2),F=C(Q),z=P(C(F),2),X=C(z,!0);S(z),S(F);var se=P(F,2);{var Z=G=>{var Pe=Qy(),ke=P(C(Pe),2),xe=C(ke,!0);S(ke),S(Pe),D(()=>me(xe,n(s).id)),$(G,Pe)};V(se,G=>{n(s).id&&G(Z)})}var oe=P(se,2);{var J=G=>{var Pe=Gy(),ke=P(C(Pe),2),xe=C(ke,!0);S(ke),S(Pe),D(()=>me(xe,n(s).vsid)),$(G,Pe)};V(oe,G=>{n(s).vsid&&G(J)})}var Ce=P(oe,2);{var pe=G=>{var Pe=Yy(),ke=P(C(Pe),2),xe=C(ke,!0);S(ke),S(Pe),D(()=>me(xe,n(s).provider)),$(G,Pe)};V(Ce,G=>{n(s).provider&&G(pe)})}var ee=P(Ce,2);{var _e=G=>{var Pe=jy(),ke=P(C(Pe),2),xe=C(ke);S(ke),S(Pe),D(()=>{var Be,$e;return me(xe,`Video: ${(Be=n(s).videoCodec||"")!=null?Be:""} ${n(s).hdr?"(HDR)":""}
|
|
57
|
+
&
|
|
58
|
+
Audio: ${($e=n(s).audioCodec||"")!=null?$e:""} ${n(s).audioLanguage?`(${n(s).audioLanguage})`:""}`)}),$(G,Pe)};V(ee,G=>{(n(s).videoCodec||n(s).audioCodec)&&G(_e)})}var we=P(ee,2);{var ve=G=>{var Pe=Xy(),ke=P(C(Pe),2),xe=C(ke,!0);S(ke),S(Pe),D(()=>me(xe,n(s).viewport)),$(G,Pe)};V(we,G=>{n(s).viewport&&G(ve)})}var ue=P(we,2);{var Ge=G=>{var Pe=Zy(),ke=P(C(Pe),2),xe=C(ke,!0);S(ke),S(Pe),D(()=>me(xe,n(s).videoSize)),$(G,Pe)};V(ue,G=>{n(s).videoSize&&G(Ge)})}var U=P(ue,2);{var O=G=>{var Pe=Jy(),ke=P(C(Pe),2),xe=C(ke,!0);S(ke),S(Pe),D(()=>me(xe,n(s).cdn)),$(G,Pe)};V(U,G=>{n(s).cdn&&G(O)})}var Ye=P(U,2);{var K=G=>{var Pe=e0(),ke=P(C(Pe),2),xe=C(ke);S(ke),S(Pe),D(()=>{var Be;return me(xe,`${(Be=n(s).volume)!=null?Be:""} %`)}),$(G,Pe)};V(Ye,G=>{n(s).volume&&G(K)})}var ae=P(Ye,2);{var ye=G=>{var Pe=t0(),ke=P(C(Pe),2),xe=C(ke);S(ke),S(Pe),D(Be=>me(xe,`${Be!=null?Be:""} s`),[()=>n(s).position.toFixed(2)]),$(G,Pe)};V(ae,G=>{n(s).position&&G(ye)})}var He=P(ae,2);{var ot=G=>{var Pe=i0(),ke=P(C(Pe),2),xe=C(ke);S(ke),S(Pe),D(Be=>me(xe,`${Be!=null?Be:""} s`),[()=>n(s).buffer.toFixed(2)]),$(G,Pe)};V(He,G=>{n(s).buffer&&G(ot)})}var re=P(He,2);{var de=G=>{var Pe=o0(),ke=P(C(Pe),2),xe=C(ke);S(ke),S(Pe),D(Be=>me(xe,`${Be!=null?Be:""} s`),[()=>n(s).nativeBuffer.toFixed(2)]),$(G,Pe)};V(re,G=>{n(s).nativeBuffer&&G(de)})}var Re=P(re,2);{var Ve=G=>{var Pe=n0(),ke=P(C(Pe),2),xe=C(ke);S(ke),S(Pe),D(Be=>me(xe,`${Be!=null?Be:""} s`),[()=>n(s).liveLatency.toFixed(2)]),$(G,Pe)};V(Re,G=>{n(s).liveLatency&&G(Ve)})}var tt=P(Re,2);{var Ee=G=>{var Pe=r0(),ke=P(C(Pe),2),xe=C(ke,!0);S(ke),S(Pe),D(Be=>me(xe,Be),[()=>[{value:n(s).currentVideoSegmentLength,title:"Video:"},{value:n(s).currentAudioSegmentLength,title:"Audio:"}].filter(({value:Be})=>Be).map(({value:Be,title:$e})=>`${$e} ${((Be!=null?Be:0)/1e3).toFixed(2)} s`).join(" & ")]),$(G,Pe)};V(tt,G=>{(n(s).currentVideoSegmentLength||n(s).currentAudioSegmentLength)&&G(Ee)})}var Te=P(tt,2),Fe=P(C(Te),2),At=C(Fe);S(Fe),S(Te);var kt=P(Te,2);{var Lt=G=>{var Pe=s0(),ke=P(C(Pe),2);rc(ke,{get values(){return n(I)}});var xe=P(ke,2),Be=C(xe);S(xe),S(Pe),D($e=>me(Be,`${$e!=null?$e:""} Kbps`),[()=>n(s).speed.toFixed(2)]),$(G,Pe)};V(kt,G=>{n(s).speed&&G(Lt)})}var lt=P(kt,2);{var Ct=G=>{var Pe=a0(),ke=P(C(Pe),2);rc(ke,{get values(){return n(T)}});var xe=P(ke,2),Be=C(xe);S(xe),S(Pe),D($e=>me(Be,`${$e!=null?$e:""} Kbps`),[()=>n(s).bitrate.toFixed(2)]),$(G,Pe)};V(lt,G=>{n(s).bitrate&&G(Ct)})}var Zt=P(lt,2),Ht=P(C(Zt),2);rc(Ht,{get values(){return n(w)}});var Ot=P(Ht,2),Kt=C(Ot,!0);S(Ot),S(Zt),S(Q),S(A),D(G=>{var Pe,ke;E=ne(A,1,"container s-k",null,E,G),Me(A,"aria-label",N),me(X,n(s).version),me(At,`${(Pe=n(p))!=null?Pe:""} / ${(ke=n(f))!=null?ke:""} frames`),me(Kt,n(v))},[()=>({"container-mobile":r()})]),$(t,A),H(),o()}je(["click"]);var db=require("@vkontakte/videoplayer-shared/es2018"),c0=(t,e)=>{t.stopPropagation(),e()()},u0=L('<div class="close s-1b"></div>'),p0={hash:"s-1b",code:'.close.s-1b{cursor:pointer;height:16px;opacity:.8;position:relative;transition:opacity .2s;width:16px}.close.s-1b:hover{opacity:1}.close.s-1b:after,.close.s-1b:before{background-color:var(--white);content:" ";height:16px;left:8px;position:absolute;width:2px}.close.s-1b:before{transform:rotate(45deg)}.close.s-1b:after{transform:rotate(-45deg)}'};function Ds(t,e){B(e,!0),Y(t,p0);let i=h(e,"onClick",3,db.noop);var o=u0();o.__click=[c0,i],$(t,o),H()}je(["click"]);var cb=require("@vkontakte/videoplayer-shared/es2018");var un=t=>`width:${t}px;height:${t}px;`;var f0=Ie('<path d="m14.4 8.76 24.02 13.85a1.6 1.6 0 0 1 0 2.78L14.4 39.24a1.6 1.6 0 0 1-2.4-1.39v-27.7a1.6 1.6 0 0 1 2.4-1.39"></path>');function Vn(t,e){B(e,!0);let i=m(()=>un(e.size));Je(t,{get width(){return"48"},get height(){return"48"},get fill(){return e.fill},get style(){return n(i)},testId:"play-icon",get shadow(){return e.shadow},children:(o,r)=>{var a=f0();$(o,a)},$$slots:{default:!0}}),H()}var m0=L('<div class="timer s-1a"><canvas class="timer-canvas s-1a" width="100" height="100"></canvas> <!></div>'),v0={hash:"s-1a",code:".timer.s-1a{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-1a:hover{background:rgba(31,31,31,.85)}.timer-canvas.s-1a{height:50px;position:absolute;width:50px}"};function ac(t,e){B(e,!0),Y(t,v0);let i=h(e,"isRunning",3,!0),o=h(e,"onTimerEnded",3,cb.noop),r=5e3,a=q(void 0),l,d,s=0,u;Oe(()=>{i()&&Et(()=>{d=Date.now(),s=requestAnimationFrame(p)})});let f=()=>{s&&(cancelAnimationFrame(s),s=0)},p=()=>{f(),i()&&(u=(Date.now()-d)/r,u<1?(l==null||l.clearRect(0,0,100,100),l==null||l.beginPath(),l==null||l.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*u),l==null||l.stroke(),s=requestAnimationFrame(p)):o()())};Vt(()=>{l=n(a).getContext("2d"),l&&(l.lineWidth=6,l.lineCap="round",l.strokeStyle="#fff")}),cn(()=>{f()});var v=m0(),_=C(v);Ze(_,b=>R(a,b),()=>n(a));var y=P(_,2);Vn(y,{get size(){return"24"}}),S(v),$(t,v),H()}var g0=(t,e,i)=>{e(!1),i()},h0=L('<div class="overlay s-z"></div> <div class="next-video s-z"><div class="top s-z"><div class="caption s-z"> </div> <!></div> <div class="row s-z"><div class="column s-z"><div class="thumb s-z"><div></div> <!></div></div> <div class="column s-z"><div class="title s-z"> </div></div></div></div>',1),_0={hash:"s-z",code:".overlay.s-z{background:rgba(0,0,0,.72);height:100%;position:absolute;width:100%}.next-video.s-z{display:flex;flex-direction:column;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:362px}.top.s-z{display:flex;justify-content:space-between}.caption.s-z{color:var(--white);font-size:11px;font-weight:700;opacity:.8;text-transform:uppercase}.row.s-z{background:rgba(48,48,48,.8);cursor:pointer;display:flex;flex-direction:row;height:102px;margin-top:6px;width:100%}.column.s-z{display:flex;flex-basis:50%;flex-direction:column}.thumb.s-z{align-items:center;background:no-repeat 50%;background-size:cover;display:flex;justify-content:space-around;position:relative}.thumb.s-z,.thumb-overlay.s-z{height:100%;width:100%}.thumb-overlay.s-z{position:absolute}.thumb-overlay.withOpacity.s-z{background:var(--black);opacity:.3}.title.s-z{color:var(--white);font-size:12px;font-weight:700;line-height:1.6;max-height:52px;overflow:hidden;padding:10px 16px}"};function hm(t,e){B(e,!0),Y(t,_0);let[i,o]=De(),r=()=>x(d,"$autoplayNextEnabled$",i),a=()=>x(s,"$timerNextVideoRunning$",i),l=he(),d=l.ui.autoplayNextEnabled$,s=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,f=l.actions.internal.nextVideoAnnouncementShow,p=l.actions.internal.nextVideoAnnouncementClick,v=l.actions.internal.nextVideoAnnouncementAuto,_=l.actions.internal.nextVideoAnnouncementCancel,y=()=>{r()&&(u(!1),v())},b=()=>{e.clickCloseIcon(),_()};Vt(()=>{e.isHide||f(),e.isHide&&r()&&(u(!1),v())});var w=Le(),I=ce(w);{var T=N=>{var A=h0(),E=P(ce(A),2),k=C(E),Q=C(k),F=C(Q,!0);S(Q);var z=P(Q,2);Ds(z,{onClick:b}),S(k);var X=P(k,2);X.__click=[g0,u,p];var se=C(X),Z=C(se),oe=C(Z);let J;var Ce=P(oe,2);{var pe=ve=>{let ue=m(()=>a()&&r());ac(ve,{get isRunning(){return n(ue)},onTimerEnded:y})};V(Ce,ve=>{r()&&ve(pe)})}S(Z),S(se);var ee=P(se,2),_e=C(ee),we=C(_e,!0);S(_e),S(ee),S(X),S(E),D((ve,ue)=>{me(F,ve),Ke(Z,`background-image: url('${e.thumb}')`),J=ne(oe,1,"thumb-overlay s-z",null,J,ue),me(we,e.title)},[()=>j("end_screen_next_video"),()=>({withOpacity:r()})]),$(N,A)};V(I,N=>{e.isHide||N(T)})}$(t,w),H(),o()}je(["click"]);var ca=require("@vkontakte/videoplayer-core/es2018"),ub=require("@vkontakte/videoplayer-shared/es2018"),Rn=require("@vkontakte/videoplayer-statistics/es2018");var _m=(t,e)=>Math.min(+(t+e).toFixed(2),1),bm=(t,e)=>Math.max(+(t-e).toFixed(2),0),ip=(t,e,i)=>{let o=_m(e,i);e<1&&t.actions.internal.setVolume(o)},op=(t,e,i)=>{let o=bm(e,i);e>0&&t.actions.internal.setVolume(o)};var da=({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 $0=(t,e)=>{e(t)},y0=L('<div class="keyboard-controls s-w" tabindex="-1" role="region"><!></div>'),x0={hash:"s-w",code:".keyboard-controls.s-w{bottom:0;left:0;position:absolute;right:0;top:0}"};function $m(t,e){var xe,Be;B(e,!0),Y(t,x0);let[i,o]=De(),r=()=>x(Ce,"$disabledControls$",i),a=()=>x(ot,"$isInteractiveTime$",i),l=()=>x(re,"$showInteractiveTimeIndicatorTooltip$",i),d=()=>x(z,"$playbackState$",i),s=()=>x(O,"$isEnded$",i),u=()=>x(Ge,"$doubleForwardAvailable$",i),f=()=>x(ue,"$doubleForwardOn$",i),p=()=>x(Ye,"$overlayContainer$",i),v=()=>x(se,"$adPlaybackState",i),_=()=>x(Z,"$positionExact$",i),y=()=>x(oe,"$duration$",i),b=()=>x(ye,"$isAudioAvailable$",i),w=()=>x(J,"$volume$",i),I=()=>x(X,"$canChangePlaybackSpeed$",i),T=()=>x(pe,"$muted$",i),N=()=>x(ee,"$currentSubtitle$",i),A=h(e,"nextButtonActive",3,!1),E=h(e,"prevButtonActive",3,!1),k=he(),Q=Rt(),F=k.getLogger().createComponentLog("KeyboardControls component"),z=k.state.playbackState$,X=k.state.canChangePlaybackSpeed$,se=k.ads.playbackState,Z=k.state.positionExact$,oe=k.state.duration$,J=k.state.volume$,Ce=k.ui.controls.disabledControls$,pe=k.state.muted$,ee=k.state.currentSubtitle$,_e=k.ui.contextMenu.openedByHotKey$,we=k.ui.contextMenu.lastActiveElem$,ve=k.ui.contextMenu.visible$,ue=k.ui.doubleForwardOn$,Ge=k.ui.doubleForwardAvailable$,U=k.ui.contextMenu.position$,O=k.state.isEnded$,Ye=k.ui.overlayContainer$,K=(xe=k.callbacks)==null?void 0:xe.onAudioDoesNotExistHint,ae=(Be=k.callbacks)==null?void 0:Be.onAudioDisabledHint,ye=k.state.isAudioAvailable$,He=k.state.isAudioDisabled,ot=k.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:re}=_o(),de=0,Re=!0,Ve=q(void 0),tt=$e=>($e!==Re&&(Re=$e,de=0),de+=1,(Q.controls.seekStepKeyboard+Q.controls.seekStepKeyboard*de)/1e3),Ee=!0,Te=()=>{if(!r().has("PLAY_BUTTON"))if(a()&&l()&&re.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{k.actions.internal.togglePlay();let $e="PLAY";d()===ca.PlaybackState.PAUSED?$e="PAUSE":s()&&($e="REPLAY"),e.showHotKeyHelpers({type:$e})}},Fe=$e=>{if(!u()||!$e&&f()){Te(),e.stopDoubleForward(),Ee=!0;return}Ee=!1,!$e&&e.startDoubleForwardActivationTimer()},At=()=>{Ee||(f()||Te(),e.stopDoubleForward(),Ee=!0)},kt=$e=>{$e!=="Space"&&e.stopDoubleForward()},Lt=$e=>{let Tt=lb(p());U.set(Tt),we.set($e.target),_e.set(!0),ve.set(!0)},lt=($e,Tt=!1)=>{var ui,Yi;let fe=$e.target,Ne=(ui=fe==null?void 0:fe.getAttribute("role"))==null?void 0:ui.includes("menuitem"),Qe=fe.classList.contains("btn"),rt=$e.code;if(Qe&&rt==="Space")return!1;let qt=l_.has(rt);if(Ne&&qt)return!1;let Nt=!a_.has(rt);if($e.ctrlKey&&Nt||$e.altKey&&Nt||$e.metaKey)return!1;let pi=Ne&&rt==="Escape";d_.has(rt)||pi||e.hideContextMenu();let di=d()===ca.PlaybackState.PLAYING||d()===ca.PlaybackState.PAUSED,Ti=e.isAds&&(v()==="paused"||v()==="playing"),no=!Ti&&!r().has("TIMELINE"),ci=$e.shiftKey&&["Digit1","Numpad1"].includes(rt);if(!ci&&!(di||Ti))return!1;F({message:`key down, code: ${rt}, isExternal = ${Tt}`});let bi=!1,xt=()=>{bi=!0,Tt||$e.preventDefault()};if(kt(rt),ci)return Lt($e),xt(),!0;switch(rt){case"KeyJ":case"ArrowLeft":{if(!no)break;if($e.ctrlKey||$e.altKey){let pt=k.actions.internal.getPrevEpisode();k.actions.internal.seekToPrevEpisode(pt),pt&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:pt.text}),xt()}else{let pt=$e.shiftKey?tt(!1):Q.controls.seekStepKeyboard/1e3,Bt=Math.max(_()-pt,0);_()>0&&(k.actions.internal.seekTime(Bt,Rn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:pt.toString()}),xt())}break}case"KeyL":case"ArrowRight":{if(!no)break;if($e.ctrlKey||$e.altKey){let pt=k.actions.internal.getNextEpisode();k.actions.internal.seekToNextEpisode(pt),pt&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:pt.text}),xt()}else{let pt=$e.shiftKey?tt(!0):Q.controls.seekStepKeyboard/1e3,Bt=Math.min(_()+pt,y());Math.round(_())<Math.round(y())&&(k.actions.internal.seekTime(Bt,Rn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:pt.toString()}),xt())}break}case"ArrowUp":{if(da({isAudioDisabled:He,audioDisabledHintCallback:ae,isAudioAvailable:b(),audioIsNotExistHintCallback:K,isAds:e.isAds})){let pt=w(),Bt=Q.controls.volumeStepKeyboard,dt=pt<=1;if(ip(k,pt,Bt),dt){let We=Math.round(_m(pt,Bt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:We}})}}xt();break}case"ArrowDown":{if(da({isAudioDisabled:He,audioDisabledHintCallback:ae,isAudioAvailable:b(),audioIsNotExistHintCallback:K,isAds:e.isAds})){let pt=w(),Bt=Q.controls.volumeStepKeyboard,dt=pt>=0;if(op(k,pt,Bt),dt){let We=Math.round(bm(pt,Bt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:We}})}}xt();break}case"Comma":{if($e.shiftKey){if(!f()&&I()){let pt=k.actions.internal.decrementPlaybackRate();e.showHotKeyHelpers({type:"RATE_DOWN",text:pt==null?void 0:pt.displayValue}),xt()}}else{if(Ti||d()!==ca.PlaybackState.PAUSED)break;let pt=Math.max(_()-Q.controls.seekStepFrame/1e3,0);_()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),k.actions.internal.clearDelayedBufferingCheckTimeout(),k.actions.internal.seekTime(pt,Rn.SeekAction.DOUBLE_TAP),xt())}break}case"Period":{if($e.shiftKey){if(!f()&&I()){let pt=k.actions.internal.incrementPlaybackRate();e.showHotKeyHelpers({type:"RATE_UP",text:pt==null?void 0:pt.displayValue}),xt()}}else{if(Ti||d()!==ca.PlaybackState.PAUSED)break;let pt=Math.min(_()+Q.controls.seekStepFrame/1e3,y());_()<y()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),k.actions.internal.clearDelayedBufferingCheckTimeout(),k.actions.internal.seekTime(pt,Rn.SeekAction.DOUBLE_TAP),xt())}break}case"KeyK":Te(),xt();break;case"Space":Fe($e.repeat),xt();break;case"KeyM":{da({isAudioDisabled:He,audioDisabledHintCallback:ae,isAudioAvailable:b(),audioIsNotExistHintCallback:K,isAds:e.isAds})&&(e.showHotKeyHelpers({type:T()?"VOLUME":"MUTE"}),k.actions.internal.toggleMuted()),xt();break}case"KeyF":e.toggleFullscreen(),xt();break;case"KeyC":k.actions.internal.toggleSubtitle(),N().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(Yi=N())==null?void 0:Yi.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),xt();break;case"KeyI":k.actions.internal.togglePictureInPicture(),xt();break;case"Digit1":case"Numpad1":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.1,Rn.SeekAction.DOUBLE_TAP),xt();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.2,Rn.SeekAction.DOUBLE_TAP),xt();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.3,Rn.SeekAction.DOUBLE_TAP),xt();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.4,Rn.SeekAction.DOUBLE_TAP),xt();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.5,Rn.SeekAction.DOUBLE_TAP),xt();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.6,Rn.SeekAction.DOUBLE_TAP),xt();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.7,Rn.SeekAction.DOUBLE_TAP),xt();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.8,Rn.SeekAction.DOUBLE_TAP),xt();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.9,Rn.SeekAction.DOUBLE_TAP),xt();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(0,Rn.SeekAction.DOUBLE_TAP),xt();break;case"Slash":{$e.shiftKey&&Q.features.hotKeyMapModal&&(e.showKeyMap(),xt());break}case"KeyN":$e.shiftKey&&A()&&(k.actions.internal.nextVideoClick(),xt());break;case"KeyP":$e.shiftKey&&E()&&(k.actions.internal.prevVideoClick(),xt());break;case"ShiftLeft":case"ShiftRight":xt();break;case"Tab":case"Escape":case"Enter":break;default:(0,ub.checkNever)(rt);break}return bi},Ct=$e=>{let Tt=$e.code;if($e.ctrlKey||$e.altKey||$e.metaKey)return;let fe=d()===ca.PlaybackState.PLAYING||d()===ca.PlaybackState.PAUSED,Ne=e.isAds&&(v()==="paused"||v()==="playing");if(fe||Ne)switch(Tt){case"ShiftLeft":case"ShiftRight":de=0;break;case"Space":At();break}},Zt=j("aria_label_video_player"),Ht=()=>{var $e;return($e=n(Ve))==null?void 0:$e.focus()},Ot=()=>n(Ve)===np(),Kt=$e=>$e.type==="keydown"?lt($e,!0):($e.type==="keyup"&&Ct($e),!1);var G=y0();G.__keyup=Ct,G.__keydown=[$0,lt];var Pe=C(G);ii(Pe,()=>{var $e;return($e=e.children)!=null?$e:ht}),S(G),Ze(G,$e=>R(Ve,$e),()=>n(Ve)),D(()=>Me(G,"aria-label",Zt)),$(t,G);var ke=H({focus:Ht,isFocused:Ot,handleExternalKeyboardEvent:Kt});return o(),ke}je(["keyup","keydown"]);var w0=L('<div class="container s-j"><div class="dot s-j"></div> <div class="dot s-j"></div> <div class="dot s-j"></div></div>'),S0={hash:"s-j",code:".container.s-j{display:flex;left:50%;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%)}.dot.s-j:first-child{animation-delay:0s}.dot.s-j:nth-child(2){animation-delay:.18s}.dot.s-j:nth-child(3){animation-delay:.36s}@keyframes s-j-dot_animation{0%{opacity:.2}30%{opacity:1}to{opacity:.2}}.dot.s-j{animation-duration:.75s;animation-iteration-count:infinite;animation-name:s-j-dot_animation;background:var(--btn-color);border-radius:4px;height:8px;width:8px}.dot.s-j+.dot:where(.s-j){margin-left:4px}"};function Qa(t,e){Y(t,S0);let i=h(e,"style",3,"");var o=w0();D(()=>Ke(o,i())),$(t,o)}var C0=Ie('<path d="M5.26 5.26a.9.9 0 0 1 1.28 0L12 10.73l5.46-5.47a.9.9 0 0 1 1.28 1.28L13.27 12l5.47 5.46a.9.9 0 1 1-1.28 1.28L12 13.27l-5.46 5.47a.9.9 0 1 1-1.28-1.28L10.73 12 5.26 6.54a.9.9 0 0 1 0-1.28Z"></path>');function ym(t,e){Je(t,{get fill(){return e.fill},children:(i,o)=>{var r=C0();$(i,r)},$$slots:{default:!0}})}var Ga=require("@vkontakte/videoplayer-shared/es2018"),T0=t=>{t.stopPropagation()},I0=L("<button><!></button>"),E0={hash:"s-1o",code:"button.btn.s-1o{align-items:center;display:flex;flex-direction:row;height:var(--controls-height);justify-content:center;margin:0;padding:8px;will-change:opacity}button.w-max.s-1o{width:100%}button.btn--live.s-1o{padding:10px 4px}button.btn-jc-l.s-1o{justify-content:left}button.btn-m.s-1o{background-color:rgba(0,0,0,.56);border-radius:12px;height:44px;left:12px;position:absolute;top:50%;transform:translateY(-50%);transition:opacity var(--controls-transition-duration);width:44px}button.btn-m.s-1o,button.btn-m--play.s-1o{align-items:center;display:flex;justify-content:center}button.btn-m--play.s-1o{height:var(--big-play-size);padding:16px;position:relative;width:var(--big-play-size)}button.btn-m--next.s-1o,button.btn-m--prev.s-1o{height:50px;position:absolute;width:50px}button.btn-m--prev.s-1o{right:calc(100% + 35px)}button.btn-m--next.s-1o{left:calc(100% + 35px)}button.btn.s-1o:disabled{cursor:default;pointer-events:none}button.btn.s-1o:not(.btn-full-opacity):disabled{opacity:.4}button.btn.s-1o:not(:disabled):hover{opacity:.8}button.pr-0.s-1o{padding-right:0}button.pl-0.s-1o{padding-left:0}"};function Wt(t,e){B(e,!0),Y(t,E0);let i=h(e,"className",3,""),o=h(e,"style",3,""),r=h(e,"disabled",3,void 0),a=h(e,"testId",3,void 0),l=h(e,"ariaHidden",3,void 0),d=h(e,"ariaLabel",3,void 0),s=h(e,"ref",15,void 0),u=h(e,"ariaKeyShortCut",3,void 0),f=h(e,"ariaExpanded",3,void 0),p=h(e,"tabIndex",3,0),v=h(e,"click",3,Ga.noop),_=h(e,"focus",3,Ga.noop),y=h(e,"blur",3,Ga.noop),b=m(()=>v()===Ga.noop?null:A=>{A.stopPropagation(),v()(A)}),w=m(()=>_()===Ga.noop?null:A=>{A.preventDefault(),_()()}),I=m(()=>y()===Ga.noop?null:A=>{A.preventDefault(),y()()});var T=I0();T.__pointerdown=[T0],T.__click=function(...A){var E;(E=n(b))==null||E.apply(this,A)};var N=C(T);ii(N,()=>{var A;return(A=e.children)!=null?A:ht}),S(T),Ze(T,A=>s(A),()=>s()),D(()=>{var A,E,k,Q,F,z,X,se;ne(T,1,`btn ${(A=i())!=null?A:""}`,"s-1o"),Ke(T,o()||null),T.disabled=(E=r())!=null?E:null,Me(T,"aria-hidden",(k=l())!=null?k:null),Me(T,"aria-label",(Q=d())!=null?Q:null),Me(T,"aria-keyshortcuts",(F=u())!=null?F:null),Me(T,"aria-expanded",(z=f())!=null?z:null),Me(T,"data-testid",(X=a())!=null?X:null),Me(T,"tabindex",p()),Me(T,"role",e.role),Me(T,"aria-checked",(se=e.areaChecked)!=null?se:null)}),ut("focus",T,function(...A){var E;(E=n(w))==null||E.apply(this,A)}),ut("blur",T,function(...A){var E;(E=n(I))==null||E.apply(this,A)}),$(t,T),H()}je(["pointerdown","click"]);var k0=(t,e)=>{t.key==="Escape"&&e.onClose(),(t.key==="ArrowUp"||t.key==="ArrowDown")&&t.stopPropagation()},P0=L('<div class="modal-header s-1g"><h3 class="modal-title s-1g"> </h3> <!></div>'),A0=L('<div class="modal-overlay s-1g"><div class="modal-container s-1g" role="dialog" aria-modal="true"><!> <div class="modal-scroll s-1g" tabindex="0" role="scrollbar"><div class="modal-main s-1g"><!></div></div></div></div>'),L0={hash:"s-1g",code:'.modal-overlay.s-1g{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-1g{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-1g{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-1g{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-1g{height:100%;margin:8px 4px 8px 0;overflow-x:hidden;overflow-y:auto}.modal-scroll.s-1g::-webkit-scrollbar{width:8px}.modal-scroll.s-1g::-webkit-scrollbar-track{background-color:transparent;border-radius:4px;box-shadow:none;margin-right:2px}.modal-scroll.s-1g::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:#666;border:1px solid transparent;border-radius:5px;min-height:40px}.modal-scroll.s-1g::-webkit-scrollbar-thumb:hover{background-color:#777}.modal-main.s-1g{margin:-8px -4px 0 0}'};function xm(t,e){B(e,!0),Y(t,L0);let i=h(e,"showHeader",3,!0),o=h(e,"showCloseCross",3,!0),r=q(void 0),a=q(void 0),{webApi:{focusManager:l}}=he(),d=j("hotkey_map_modal_close_btn_text");Vt(()=>{var b;return(b=n(r))==null||b.focus(),n(a)&&l&&(l.setContainerForFocusLock(n(a)),l.activateLock()),()=>l==null?void 0:l.deactivateLock()});var s=A0();s.__keydown=[k0,e];var u=C(s),f=C(u);{var p=b=>{var w=P0(),I=C(w),T=C(I,!0);S(I);var N=P(I,2);{var A=E=>{Wt(E,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",get ariaLabel(){return d},children:(k,Q)=>{ym(k,{fill:"currentColor"})},$$slots:{default:!0}})};V(N,E=>{o()&&E(A)})}S(w),D(()=>me(T,e.title)),$(b,w)};V(f,b=>{i()&&b(p)})}var v=P(f,2),_=C(v),y=C(_);ii(y,()=>{var b;return(b=e.children)!=null?b:ht}),S(_),S(v),Ze(v,b=>R(r,b),()=>n(r)),S(u),Ze(u,b=>R(a,b),()=>n(a)),S(s),$(t,s),H()}je(["keydown"]);var M0=new Set(["BR"]),pb=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;M0.has(l)||(r=a.parentElement)==null||r.removeChild(a)}return e.innerHTML};var V0=L('<li class="hot-key-map-item s-13"><span class="hot-key-map-item-description s-13"><!></span> <span class="hot-key-map-item-value s-13"> </span></li>'),R0=L('<div class="hot-key-map-group s-13"><h5 class="hot-key-map-group-title s-13"> </h5> <ul class="hot-key-map-group-items s-13"></ul></div>'),N0=L('<div class="hot-key-map s-13"></div>'),D0={hash:"s-13",code:'.hot-key-map.s-13{box-sizing:border-box;color:var(--black);overflow-x:hidden}.hot-key-map-group.s-13{border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px}.hot-key-map-group.s-13:last-child{border-bottom:none}.hot-key-map-group-title.s-13{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-13,.hot-key-map-item.s-13{margin:0;padding:12px 0;width:100%}.hot-key-map-group-items.s-13{box-sizing:border-box;list-style:none;margin:0;padding:0}.hot-key-map-item.s-13{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-13{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-13{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-13,.hot-key-map-item-value.s-13{font-feature-settings:"clig" off,"liga" off;font-size:13px;font-style:normal;font-weight:400;line-height:16px}'};function wm(t,e){B(e,!1),Y(t,D0);let[i,o]=De(),r=()=>x(l,"$data",i),a=he(),{data:l,show:d}=a.ui.modals.hotKeyMap,s=()=>{d.set(!1)};ho(),xm(t,{get title(){return r().title},onClose:s,children:(u,f)=>{var p=N0();$i(p,5,()=>r().groups,({title:v,items:_})=>v,(v,_)=>{let y=()=>n(_).title,b=()=>n(_).items;var w=R0(),I=C(w),T=C(I,!0);S(I);var N=P(I,2);$i(N,5,b,({description:A,value:E})=>E,(A,E)=>{let k=()=>n(E).description,Q=()=>n(E).value;var F=V0(),z=C(F),X=C(z);Bd(X,()=>pb(k())),S(z);var se=P(z,2),Z=C(se,!0);S(se),S(F),D(()=>me(Z,Q())),$(A,F)}),S(N),S(w),D(()=>me(T,y())),$(v,w)}),S(p),$(u,p)},$$slots:{default:!0}}),H(),o()}var bv=require("@vkontakte/videoplayer-shared/es2018");var tl=require("@vkontakte/videoplayer-core/es2018");var fb=require("@vkontakte/videoplayer-shared/es2018");var O0=L('<div class="pillow s-1y"><!></div>'),B0={hash:"s-1y",code:".pillow.s-1y{background-color:#679ff8;color:var(--white);font-size:6px;font-weight:600;-webkit-font-smoothing:antialiased;border-radius:12px;padding:2px 4px}"};function Sm(t,e){Y(t,B0);var i=O0(),o=C(i);ii(o,()=>{var r;return(r=e.children)!=null?r:ht}),S(i),D(()=>Me(i,"data-testid",e.testId)),$(t,i)}var jl=require("@vkontakte/videoplayer-shared/es2018");var H0=Ie('<svg><!><path d="M5.52 5c.32 0 .51-.2.51-.54V3.5l.5-.51 1.46 1.74c.16.2.3.28.51.28a.5.5 0 0 0 .5-.5c0-.14-.07-.29-.22-.48L7.3 2.3 8.8.87c.16-.14.2-.25.2-.4A.47.47 0 0 0 8.52 0c-.18 0-.3.07-.45.22l-2 2.03h-.04V.54C6.03.2 5.84 0 5.52 0S5 .2 5 .54v3.92c0 .34.2.54.52.54M2.55 1.05 1.05 3.1h1.5zM3.5 3.1V.83C3.5.03 2.41-.3 1.94.35L.14 2.82A.75.75 0 0 0 .75 4h1.8v.55c0 .25.25.45.5.45a.45.45 0 0 0 .45-.45V4h.05a.45.45 0 0 0 0-.9z"></path></svg>');function Cm(t,e){let i=Mn(e,["$$slots","$$events","$$legacy","children"]);var o=H0();eo(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"currentColor","fill-rule":"evenodd",role:"img",...i}));var r=C(o);ii(r,()=>{var a;return(a=e.children)!=null?a:ht}),ai(),S(o),$(t,o)}var F0=Ie('<svg><!><path d="M5.51 5c.33 0 .52-.2.52-.54V3.5l.49-.51L7.99 4.7c.16.21.3.29.51.29a.49.49 0 0 0 .5-.5c0-.14-.07-.29-.22-.48L7.29 2.3 8.82.87C8.95.73 9 .62 9 .47A.47.47 0 0 0 8.52 0c-.17 0-.3.07-.44.22L6.06 2.25h-.03V.54C6.03.2 5.83 0 5.5 0S5 .2 5 .54v3.92c0 .34.19.54.51.54M2 0c-.35 0-.67.06-.95.17a1.5 1.5 0 0 0-.66.49c-.15.2-.23.44-.23.7 0 .43.21.76.62 1-.23.11-.41.26-.55.44-.15.2-.23.44-.23.71 0 .29.08.55.25.78.18.23.41.4.71.52.3.13.65.19 1.04.19s.73-.06 1.03-.19c.3-.12.54-.3.71-.52a1.26 1.26 0 0 0 .03-1.49 1.45 1.45 0 0 0-.55-.44c.4-.23.62-.57.62-1a1.14 1.14 0 0 0-.24-.7 1.44 1.44 0 0 0-.66-.49A2.4 2.4 0 0 0 2 0m-.57.96C1.56.86 1.75.8 2 .8s.43.06.56.16a.51.51 0 0 1 .2.43c0 .2-.06.34-.2.44A.87.87 0 0 1 2 2a.9.9 0 0 1-.57-.16.52.52 0 0 1-.2-.44c0-.18.06-.32.2-.43ZM1.08 3.5a.6.6 0 0 1 .24-.5c.16-.13.38-.2.68-.2s.52.07.68.2a.6.6 0 0 1 .24.5.63.63 0 0 1-.24.52c-.16.12-.38.19-.68.19s-.52-.07-.68-.19a.64.64 0 0 1-.24-.52"></path></svg>');function Tm(t,e){let i=Mn(e,["$$slots","$$events","$$legacy","children"]);var o=F0();eo(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"currentColor","fill-rule":"evenodd",role:"img",...i}));var r=C(o);ii(r,()=>{var a;return(a=e.children)!=null?a:ht}),ai(),S(o),$(t,o)}var U0=Ie('<svg><!><path d="M5.52 5h1.1C8.1 5 9 4.07 9 2.5S8.1 0 6.62 0h-1.1C5.19 0 5 .2 5 .54v3.92c0 .34.2.54.52.54m.51-.85V.85h.47C7.41.85 8 1.47 8 2.5c0 1.07-.58 1.65-1.5 1.65zM.52 5c.32 0 .51-.2.51-.54V2.92h1.94v1.54c0 .34.19.54.51.54S4 4.8 4 4.46V.54C4 .2 3.8 0 3.48 0s-.51.2-.51.54v1.53H1.03V.54C1.03.2.84 0 .52 0S0 .2 0 .54v3.99c0 .34.2.47.52.47"></path></svg>');function Im(t,e){let i=Mn(e,["$$slots","$$events","$$legacy","children"]);var o=U0();eo(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"currentColor",role:"img",...i}));var r=C(o);ii(r,()=>{var a;return(a=e.children)!=null?a:ht}),ai(),S(o),$(t,o)}var z0=Ie('<svg><!><path d="M9.52 5h1.1C12.1 5 13 4.07 13 2.5S12.1 0 10.62 0h-1.1C9.19 0 9 .2 9 .54v3.92c0 .34.2.54.52.54m.51-.85V.85h.47c.91 0 1.5.62 1.5 1.65 0 1.07-.58 1.65-1.5 1.65zM4.52 5c.32 0 .51-.2.51-.54V2.92h1.94v1.54c0 .34.19.54.51.54S8 4.8 8 4.46V.54C8 .2 7.8 0 7.48 0s-.51.2-.51.54v1.53H5.03V.54C5.03.2 4.84 0 4.52 0S4 .2 4 .54v3.99c0 .34.2.47.52.47m-4 0c.32 0 .51-.2.51-.54V3h1.33c.27 0 .45-.15.45-.41 0-.25-.18-.4-.45-.4H1.03V.84h1.5C2.81.85 3 .7 3 .43S2.8 0 2.53 0H.52C.19 0 0 .2 0 .54v3.92C0 4.8.2 5 .52 5"></path></svg>');function Em(t,e){let i=Mn(e,["$$slots","$$events","$$legacy","children"]);var o=z0();eo(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"currentColor",role:"img",...i}));var r=C(o);ii(r,()=>{var a;return(a=e.children)!=null?a:ht}),ai(),S(o),$(t,o)}var W0=Ie('<svg><!><path d="M11.52 5.75h1.1c1.48 0 2.38-.94 2.38-2.5s-.9-2.5-2.38-2.5h-1.1c-.33 0-.52.2-.52.54V5.2c0 .34.2.54.52.54Zm.51-.85V1.6h.47c.91 0 1.5.62 1.5 1.65 0 1.07-.58 1.65-1.5 1.65zm-5.51.85c.32 0 .51-.2.51-.54V3.67h1.94v1.54c0 .34.19.54.51.54s.52-.2.52-.54V1.3c0-.34-.2-.54-.52-.54s-.51.2-.51.54v1.53H7.03V1.3c0-.34-.19-.54-.51-.54S6 .95 6 1.29v3.99c0 .34.2.47.52.47m-3.18-.09a4 4 0 0 1-.84.09C1.04 5.75 0 4.88 0 3.3 0 1.73 1.04.75 2.5.75S5 1.73 5 3.3c0 .87-.27 1.46-.78 1.88l.2.3a.5.5 0 0 1-.84.55zm-.52-.78-.24-.35a.5.5 0 1 1 .84-.56l.24.37c.18-.26.29-.62.29-1.04 0-1.03-.64-1.65-1.45-1.65s-1.45.62-1.45 1.65.64 1.6 1.45 1.6c.08 0 .2 0 .32-.02"></path></svg>');function km(t,e){let i=Mn(e,["$$slots","$$events","$$legacy","children"]);var o=W0();eo(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"currentColor",role:"img",...i}));var r=C(o);ii(r,()=>{var a;return(a=e.children)!=null?a:ht}),ai(),S(o),$(t,o)}var rp=t=>{switch(t){case jl.VideoQuality.Q_720P:return Im;case jl.VideoQuality.Q_1080P:return Em;case jl.VideoQuality.Q_1440P:return km;case jl.VideoQuality.Q_2160P:return Cm;case jl.VideoQuality.Q_4320P:return Tm}};var K0=Ie('<path d="M12.72 2.21q1.8.07 2.41 1.96l.06.21.06.2.06.23.06.16.04.01.06-.02.14-.05.15-.07c1.42-.66 2.5-.53 3.4.44l.12.14.82 1.02c.73.96.7 2 0 3.1l-.13.19-.12.16-.14.2-.07.12-.04.05v.03l.1.06.13.07.15.09c1.39.7 1.96 1.64 1.74 2.93l-.04.19-.24 1.06c-.16.68-.28 1-.77 1.45-.48.43-1.02.61-1.73.67l-.22.02h-.2l-.25.02-.18.02.02.14v.1l.04.17c.32 1.53-.04 2.56-1.19 3.2l-.17.1-1.17.57q-1.64.73-3.02-.7l-.15-.17-.13-.15-.17-.19-.1-.1-.05-.04-.1.09-.1.1-.12.14c-.95 1.13-1.95 1.54-3.17 1.07l-.18-.08-1.05-.5-.31-.17a2 2 0 0 1-1-1.06 3 3 0 0 1-.16-1.88l.04-.23.04-.24.02-.17-.1-.02-.15-.01h-.18c-1.56-.04-2.48-.62-2.85-1.89l-.05-.18-.3-1.28q-.33-1.77 1.37-2.78l.2-.11.17-.1.22-.12.15-.1v-.02l-.06-.1-.08-.13-.1-.14c-.94-1.25-1.04-2.34-.28-3.4L4 6.32l.82-1.01c.8-.92 1.8-1.1 3.04-.64l.2.08.19.08.22.1.13.04.04-.01.03-.1.05-.13.04-.17c.36-1.43 1.09-2.24 2.4-2.35h1.58Zm-.05 1.8h-1.34l-.14.01c-.28.04-.47.2-.65.83l-.04.16-.06.2a6 6 0 0 1-.46 1.14 6 6 0 0 0-1.15.56 7 7 0 0 1-1.16-.35l-.35-.16q-.37-.15-.59-.17h-.08a.6.6 0 0 0-.4.19l-.08.07-.78.98-.1.12c-.18.26-.2.5.2 1.08l.22.31q.34.48.6 1.1-.2.59-.27 1.2-.51.45-1.01.73l-.34.18c-.62.34-.7.56-.65.88l.01.08.28 1.21.04.16c.1.3.27.47.97.5l.39.02q.57.03 1.22.2.35.53.78.97a6 6 0 0 1-.12 1.45c-.2.95-.01 1.1.38 1.3l1.13.54a1 1 0 0 0 .34.1l.06-.01q.26-.03.67-.49l.26-.3q.4-.42.95-.83l.3.02.3.01h.3l.3-.03q.56.4.95.84l.26.3c.32.36.53.48.73.48h.07l.18-.05.09-.04 1.13-.54.14-.08c.3-.17.42-.4.24-1.22a6 6 0 0 1-.12-1.45q.44-.45.78-.97a7 7 0 0 1 1.22-.2l.39-.01c.81-.04.91-.26 1-.66l.27-1.15c.09-.4.1-.64-.62-1.03l-.34-.18a6 6 0 0 1-1.01-.73 6 6 0 0 0-.27-1.2q.26-.62.6-1.1l.22-.31c.4-.58.38-.81.2-1.08l-.05-.06-.78-.97c-.14-.18-.26-.3-.46-.33h-.07q-.23 0-.67.17l-.35.16a6 6 0 0 1-1.16.35 6 6 0 0 0-1.15-.56 7 7 0 0 1-.45-1.1l-.11-.4c-.2-.68-.4-.81-.72-.83zM12 8.2a3.8 3.8 0 1 1 0 7.6 3.8 3.8 0 0 1 0-7.6m0 1.8a2 2 0 1 0 0 4 2 2 0 0 0 0-4"></path>');function Pm(t,e){Je(t,{get testId(){return e.testId},children:(i,o)=>{var r=K0();$(i,r)},$$slots:{default:!0}})}var q0=Ie('<path d="M13.25 2.83c.23.75.38 1.5 1.63 2.23 1.4.38 2.08 0 2.72-.42.66-.45.86-.32 1.12-.06l.65.64c.29.3.4.42 0 1.18-.38.7-.8 1.33-.42 2.73.72 1.25 1.47 1.47 2.22 1.62.78.16.83.39.83.76v.9c0 .42 0 .59-.83.84-.75.23-1.5.38-2.23 1.63-.38 1.4 0 2.08.42 2.72.45.66.32.86.06 1.12l-.64.65c-.3.29-.42.4-1.18 0-.7-.38-1.34-.8-2.73-.42-1.25.72-1.47 1.47-1.62 2.22-.16.78-.39.83-.76.83h-.9c-.42 0-.59 0-.84-.83-.23-.75-.38-1.5-1.63-2.23-1.4-.38-2.08 0-2.72.42-.66.45-.86.32-1.12.06l-.65-.64c-.29-.3-.4-.42 0-1.18.38-.7.8-1.34.42-2.73-.72-1.25-1.47-1.47-2.22-1.62-.78-.16-.83-.39-.83-.76v-.9c0-.42 0-.59.83-.84.75-.23 1.5-.38 2.22-1.63.38-1.4 0-2.08-.42-2.72-.44-.66-.31-.86-.05-1.12l.64-.65c.3-.29.42-.4 1.18 0 .7.38 1.33.8 2.73.42 1.25-.72 1.47-1.47 1.62-2.22.16-.78.39-.83.76-.83h.9c.42 0 .59 0 .84.83M12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5"></path>');function Am(t,e){Je(t,{get testId(){return e.testId},children:(i,o)=>{var r=q0();$(i,r)},$$slots:{default:!0}})}var Q0=L('<div aria-hidden="true"><!> <!></div>'),G0={hash:"s-1v",code:".icon.s-1v{display:flex;height:24px;position:relative;width:24px}.icon.s-1v .pillow{position:absolute;right:-9px;top:1px}.icon.triple.s-1v .pillow{right:-13px}.icon.s-1v svg[data-testid=settings-icon--labeled] ._full{opacity:0;visibility:hidden}"};function lc(t,e){B(e,!0),Y(t,G0);let i=h(e,"isMobile",3,!1),o=h(e,"currentQuality",3,void 0),r=m(()=>o()?(0,fb.getVideoQualityLabel)(o()):""),a=m(()=>rp(o())),l=m(()=>n(r).length>2);var d=Le(),s=ce(d);{var u=p=>{Pm(p,{testId:"settings-mobile-icon"})},f=p=>{var v=Q0();let _;var y=C(v);{var b=T=>{let N=m(()=>`${n(r)}-pill-icon`);Sm(T,{get testId(){return n(N)},children:(A,E)=>{var k=Le(),Q=ce(k);Vi(Q,()=>n(a),(F,z)=>{z(F,{})}),$(A,k)},$$slots:{default:!0}})};V(y,T=>{n(a)&&T(b)})}var w=P(y,2);let I=m(()=>n(a)?"settings-icon--labeled":"settings-icon");Am(w,{get testId(){return n(I)}}),S(v),D(T=>_=ne(v,1,"icon s-1v",null,_,T),[()=>({triple:n(l)})]),$(p,v)};V(s,p=>{i()?p(u):p(f,!1)})}$(t,d),H()}var Y0=L('<span class="settings-icon-wrapper s-20"><!></span>'),j0={hash:"s-20",code:".settings-icon-wrapper.s-20{position:relative;width:24px}"};function Xl(t,e){B(e,!0),Y(t,j0);let[i,o]=De(),r=()=>x(u,"$settingsMenuVisible",i),a=()=>x(v,"$isMobile",i),l=()=>x(s,"$currentQuality",i),d=he(),s=d.state.currentQuality$,u=d.ui.settingsMenu.visible$,f=d.actions.internal.openSettingsMenu,p=d.actions.internal.closeSettingsMenu,v=d.ui.isMobile,_=d.ui.t,y=q(void 0);Oe(()=>{n(y)&&Et(()=>{e.ref$.set(n(y))})});let b=_("aria_label_settings");async function w(T){let N=la(T);r()?p():f(N,mo)}let I=m(()=>r()?"opened":"");Wt(t,{get className(){return n(I)},testId:"settings-btn",click:w,get ariaLabel(){return b},get ariaExpanded(){return r()},get ref(){return n(y)},set ref(T){R(y,T,!0)},children:(T,N)=>{var A=Y0(),E=C(A);lc(E,{get isMobile(){return a()},get currentQuality(){return l()}}),S(A),$(T,A)},$$slots:{default:!0}}),H(),o()}var X0=Ie('<path d="M6.56 4.44a1.5 1.5 0 1 0-2.12 2.12l3.09 3.09a11 11 0 0 0-2.39 3.08 11 11 0 0 0-1.01 4.14C4 18.43 4 20.37 4 22.83v2.34c0 2.46 0 4.4.13 5.96.13 1.6.4 2.93 1.01 4.14a10.5 10.5 0 0 0 4.6 4.59c1.2.61 2.53.88 4.13 1.01 1.56.13 3.5.13 5.96.13h8.34c2.46 0 4.4 0 5.96-.13 1.44-.12 2.66-.35 3.78-.84l3.53 3.53a1.5 1.5 0 0 0 2.12-2.12zM13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22"></path><path d="M34.5 23.5h-4.64l12.55 12.55q.23-.37.45-.78a11 11 0 0 0 1.01-4.14c.13-1.56.13-3.5.13-5.96v-2.34c0-2.46 0-4.4-.13-5.96a11 11 0 0 0-1.01-4.14 10.5 10.5 0 0 0-4.6-4.59 11 11 0 0 0-4.13-1.01C32.57 7 30.63 7 28.17 7h-8.34c-2.46 0-4.4 0-5.96.13l-.35.03L26.86 20.5h7.64a1.5 1.5 0 0 1 0 3"></path>',1),Z0=Ie("<path></path>");function ua(t,e){B(e,!0);let i=m(()=>`subtitles-icon${e.type==="off"?"-off":e.type==="outline"?"-outline":""}`),o=m(()=>un(e.size));Je(t,{get width(){return"48"},get height(){return"48"},get style(){return n(o)},get testId(){return n(i)},get shadow(){return e.shadow},children:(r,a)=>{var l=Le(),d=ce(l);{var s=f=>{var p=X0();ai(),$(f,p)},u=f=>{var p=Z0();D(()=>Me(p,"d",`M16.92 8h14.16q2.82-.02 4.66.1c1.28.1 2.4.32 3.46.86a8.8 8.8 90 013.84 3.84c.54 1.04.76 2.18.86 3.46q.12 1.84.1 4.66v6.16q.02 2.82-.1 4.66a10 10 90 01-.86 3.46 8.8 8.8 90 01-3.84 3.84 10 10 90 01-3.46.86q-1.84.12-4.66.1H16.92q-2.82.02-4.66-.1a10 10 90 01-3.46-.86 8.8 8.8 90 01-3.84-3.84 10 10 90 01-.86-3.46Q4 29.9 4 27.08v-6.16q-.02-2.82.1-4.66c.1-1.28.32-2.4.86-3.46A8.8 8.8 90 018.8 8.96a10 10 90 013.46-.86Q14.1 8 16.92 8
|
|
59
|
+
${e.type==="outline"?"M12.54 11.68c-1.04.1-1.64.26-2.1.48a5.2 5.2 90 00-2.28 2.28c-.22.46-.4 1.06-.48 2.1-.08 1.08-.08 2.46-.08 4.46v6c0 2 0 3.38.08 4.46.1 1.04.26 1.64.48 2.1q.78 1.5 2.28 2.28c.46.22 1.06.4 2.1.48 1.08.08 2.48.08 4.46.08h14c2 0 3.38 0 4.46-.08 1.04-.1 1.64-.26 2.1-.48a5.2 5.2 90 002.28-2.28c.22-.46.4-1.06.48-2.1.08-1.08.08-2.48.08-4.46v-6c0-2 0-3.38-.08-4.46a6 6 90 00-.48-2.1 5.2 5.2 90 00-2.28-2.28c-.46-.22-1.06-.4-2.1-.48-1.08-.08-2.48-.08-4.46-.08h-14c-2 0-3.38 0-4.46.08":""}
|
|
60
|
+
M12 29.8c0-1 .8-1.8 1.8-1.8h10.4a1.8 1.8 90 010 3.6H13.8a1.8 1.8 90 01-1.8-1.8m0-7.6c0-1 .8-1.8 1.8-1.8h3.4a1.8 1.8 90 110 3.6H13.8a1.8 1.8 90 01-1.8-1.8m17 7.6c0-1 .8-1.8 1.8-1.8h3.4a1.8 1.8 90 110 3.6h-3.4a1.8 1.8 90 01-1.8-1.8M22 22.2c0-1 .8-1.8 1.8-1.8h10.4a1.8 1.8 90 010 3.6h-10.4a1.8 1.8 90 01-1.8-1.8`)),$(f,p)};V(d,f=>{e.type==="off"?f(s):f(u,!1)})}$(r,l)},$$slots:{default:!0}}),H()}function Lm(t,e){B(e,!0);let i=h(e,"isSubtitlesEnabled",3,!1),r=he().ui.t,a=m(()=>i()?r("tooltip_subtitles_on"):r("tooltip_subtitles_off"));Wt(t,{testId:"subtitles-btn",get ariaLabel(){return n(a)},get click(){return e.click},get ariaKeyShortCut(){return gs.KeyC},role:"button",children:(l,d)=>{let s=m(()=>i()?void 0:"outline");ua(l,{get size(){return"24"},get type(){return n(s)}})},$$slots:{default:!0}}),H()}var J0=L('<span class="duration s-23" data-testid="video_duration"> </span>'),ex=L('<div><span class="current s-23" data-testid="current_time"> </span> <!></div>'),tx={hash:"s-23",code:'.time.s-23{align-items:center;color:var(--controls-time);display:flex;font-variant-numeric:tabular-nums;font-weight:500;padding:12px 6px}.time.mobile.s-23{padding:0 0 0 8px}.current.s-23{position:relative}.duration.s-23{opacity:.7}.duration.s-23:before{content:" / ";white-space:pre}'};function dc(t,e){B(e,!0),Y(t,tx);let i=h(e,"isMobile",3,!1),o=h(e,"isHidden",3,!1),r=h(e,"showDuration",3,!0),a=h(e,"ref",15),l=Rt(),d=le(!1),s=m(()=>Xo(e.duration)),u=m(()=>Xo(e.position));var f=ex();let p;var v=C(f),_=C(v,!0);S(v);var y=P(v,2);{var b=w=>{var I=J0(),T=C(I,!0);S(I),D(()=>me(T,n(s))),$(w,I)};V(y,w=>{r()&&w(b)})}S(f),Vs(f,()=>Wl(o()&&l.features.usePerformanceFix,d,l.disableInvisibleComponentsTimeout)),Ze(f,w=>a(w),()=>a()),D(w=>{p=ne(f,1,"time s-23",null,p,w),me(_,n(u))},[()=>({mobile:i()})]),$(t,f),H()}var uc=require("@vkontakte/videoplayer-shared/es2018");var ix=Ie('<path d="M21.8632 10.0832C22.2147 9.73171 22.7852 9.73171 23.1367 10.0832C23.4881 10.4347 23.4881 11.0051 23.1367 11.3566L18.6367 15.8566C18.2852 16.2081 17.7147 16.2081 17.3632 15.8566C17.0117 15.5051 17.0117 14.9347 17.3632 14.5832L21.8632 10.0832Z"></path><path d="M17.3632 11.3566C17.0117 11.0051 17.0117 10.4347 17.3632 10.0832C17.7147 9.73171 18.2852 9.73171 18.6367 10.0832L23.1367 14.5832C23.4881 14.9347 23.4881 15.5051 23.1367 15.8566C22.7852 16.2081 22.2147 16.2081 21.8632 15.8566L17.3632 11.3566Z"></path>',1),ox=Ie("<path></path>"),nx=Ie('<path d="M14 3.96997C14.5523 3.96997 15 4.41769 15 4.96997V20.97C15 21.5223 14.5523 21.97 14 21.97C13.3585 21.97 12.7422 21.7208 12.2808 21.2751L6.79013 15.97H4C2.89543 15.97 2 15.0745 2 13.97V11.97C2 10.8654 2.89543 9.96997 4 9.96997H6.765L12.2794 4.66337C12.7417 4.21849 13.3584 3.96997 14 3.96997Z"></path><!>',1);function pa(t,e){B(e,!0);let i=h(e,"volume",3,1),o=h(e,"muted",3,!1),r=(u,f)=>f?"off":u>.5?"max":u>.2?"mid":u>0?"min":"off",a=m(()=>r(i(),o())),l=m(()=>un(e.size)),d="M16.8748 8.85259C17.2324 8.50731 17.8021 8.51726 18.1474 8.87481C18.5465 9.28803 18.8614 9.77691 19.0757 10.3128C19.2901 10.8486 19.4 11.4218 19.4 12C19.4 12.5782 19.2901 13.1514 19.0757 13.6872C18.8614 14.2231 18.5465 14.712 18.1474 15.1252C17.8021 15.4827 17.2324 15.4927 16.8748 15.1474C16.5173 14.8021 16.5073 14.2324 16.8526 13.8748C17.0876 13.6314 17.2757 13.3408 17.4045 13.0187C17.5333 12.6966 17.6 12.3504 17.6 12C17.6 11.6496 17.5333 11.3034 17.4045 10.9813C17.2757 10.6592 17.0876 10.3686 16.8526 10.1252C16.5073 9.76764 16.5173 9.19788 16.8748 8.85259Z",s="M19.2636 6.2636C19.6151 5.91213 20.1849 5.91213 20.5364 6.2636C21.2516 6.97878 21.9929 7.99659 22.3989 8.97678C22.7959 9.93525 23.0003 10.9625 23.0003 12C23.0003 13.0374 22.7959 14.0647 22.3989 15.0232C21.9929 16.0034 21.2516 17.0212 20.5364 17.7364C20.1849 18.0879 19.6151 18.0879 19.2636 17.7364C18.9121 17.3849 18.9121 16.8151 19.2636 16.4636C19.8484 15.8788 20.4384 15.0527 20.7359 14.3343C21.0425 13.5943 21.2003 12.801 21.2003 12C21.2003 11.1989 21.0425 10.4057 20.7359 9.66561C20.4384 8.94724 19.8484 8.12124 19.2636 7.5364C18.9121 7.18492 18.9121 6.61508 19.2636 6.2636Z";Je(t,{get style(){return n(l)},get testId(){var u;return`volume-${(u=n(a))!=null?u:""}-icon`},get shadow(){return e.shadow},children:(u,f)=>{var p=nx(),v=P(ce(p));{var _=b=>{var w=ix();ai(),$(b,w)},y=b=>{var w=ox();D(()=>Me(w,"d",`${d}${n(a)==="max"?s:""}`)),$(b,w)};V(v,b=>{n(a)==="off"?b(_):b(y,!1)})}$(u,p)},$$slots:{default:!0}}),H()}var Ro=require("@vkontakte/videoplayer-shared/es2018");var sp=require("@vkontakte/videoplayer-shared/es2018");var mb=require("@vkontakte/videoplayer-shared/es2018");var rx=L('<div class="overlay"><!></div>');function Mm(t,e){B(e,!0);let[i,o]=De(),r=()=>x(l,"$overlayContainer$",i),l=he().ui.overlayContainer$,d=q(void 0),s=v=>{!v||!n(d)||!v.contains(n(d))||v.removeChild(n(d))},u=v=>{!v||!n(d)||v.contains(n(d))||v.appendChild(n(d))};Oe(()=>{u(r())}),Vt(()=>(u(r()),()=>s(r())));var f=rx(),p=C(f);ii(p,()=>{var v;return(v=e.children)!=null?v:ht}),S(f),Ze(f,v=>R(d,v),()=>n(d)),$(t,f),H(),o()}var sx=L('<div class="tooltip s-1p"><div class="content s-1p"> </div> <div class="tooltip-pointer s-1p"></div></div>'),ax=L("<div><!></div> <!>",1),lx={hash:"s-1p",code:'.tooltip-wrapper.s-1p{display:flex;flex-direction:column;min-width:0}.full-width.s-1p{width:100%}.tooltip.s-1p{bottom:100%;left:0;opacity:0;position:absolute;transition:opacity .2s,visibility .2s;visibility:hidden}.content.s-1p{background-color:rgba(41,41,41,.8);border-radius:3px;color:var(--white);display:inline-block;padding:6px 10px}.tooltip-pointer.s-1p{border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid rgba(41,41,41,.8);bottom:0;content:" ";font-size:0;line-height:0;position:absolute;width:0}'};function Ya(t,e){B(e,!0),Y(t,lx);let[i,o]=De(),r=()=>x(X,"$overlayContainer$",i),a=()=>x(z,"$containerSize",i),l=h(e,"isMobile",3,!1),d=h(e,"content",3,""),s=h(e,"active",15,!1),u=h(e,"translateX",3,0),f=h(e,"translateY",3,0),p=h(e,"isFullWidthWrapper",3,!1),v=h(e,"maxTooltipWidth",3,void 0),_=h(e,"placement",3,"top"),y=h(e,"onVisibilityChange",3,mb.noop),b=5,w=q(void 0),I=q(void 0),T,N=q(0),A=q(0),E=q(0),k=q(0),Q=Rt(),F=he(),z=F.ui.playerSize,X=F.ui.overlayContainer$;Oe(()=>{Et(()=>{y()(s())})});let se=F.getLogger().createComponentLog("Tooltip component"),Z=()=>{if(!r()||!n(I)||!n(w))return;R(A,b);let re=r().getBoundingClientRect(),de=n(w).getBoundingClientRect(),Re=de.width,Ve=n(I).clientWidth,tt=a().width,Ee=(Re-Ve)/2,Te=de.left+u()-re.left,Fe=Te+Ee,At=de.top+f()-re.top,kt=Ve/2-b,Lt=Fe<8,lt=Fe+Ve>tt-8;Lt&&(Fe=8,kt=Te+de.width/2-2.5*b),lt&&(Fe=tt-8-Ve,kt=de.left-re.left+de.width/2-Fe-b),R(E,Fe,!0),R(k,At),R(N,kt,!0)},oe=()=>{!r()||!n(I)||!n(w)||R(A,-b)},J=()=>{if(!r()||!n(I)||!n(w))return;R(N,b);let re=r().getBoundingClientRect(),de=n(w).getBoundingClientRect(),Re=de.height,Ve=n(I).clientHeight,tt=(Re-Ve)/2+Ve,Ee=de.left+u()-re.left-n(I).clientWidth,Te=2,Fe=Ee-b;Fe<8&&(Fe=8);let kt=de.top+f()-re.top+tt,Lt=Te-tt/2,lt=Te-b;R(E,Fe,!0),R(k,kt),R(A,Lt),R(N,lt)},Ce=()=>{!r()||!n(I)||!n(w)||R(N,-b)},pe=()=>{switch(_()){case"top":Z();break;case"bottom":oe();break;case"left":J();break;default:Ce()}},ee=()=>{try{if(!r()||!n(w))return;pe(),s(!0)}catch(re){se({message:String(re)})}},_e=()=>{s(!1)},we=()=>{n(I)&&(T||(T=window.setTimeout(ee,Q.controls.hideTimeoutTooltips)),s()&&ee())},ve=()=>{_e(),window.clearTimeout(T),T=void 0},ue=(re,de,Re)=>{let Ve="";switch(_()){case"top":Ve=`transform: translate(${re}px, ${de}px);`;break;case"bottom":Ve=`transform: translate(${re}px, ${de}px); top: auto; bottom: 100%;`;break;case"left":Ve=`transform: translate(${re}px, ${de}px); left: 0; right: auto;`;break;default:Ve=`transform: translate(${re}px, ${de}px);`}return Ve+=` max-width: ${v()===void 0?"auto":`${v()}px`};`,Ve+=` opacity: ${Re?1:0}; visibility: ${Re?"visible":"hidden"}`,Ve},Ge=(re,de)=>{let Re="";switch(_()){case"top":Re=`transform: translate(${re}px, ${de}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Re=`transform: translate(${re}px, ${de}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Re=`transform: translate(${re}px, ${de}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Re=`transform: translate(${re}px, ${de}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Re},U=m(()=>ue(n(E),n(k),s())),O=m(()=>Ge(n(N),n(A)));Vt(pe),cn(()=>window.clearTimeout(T));var Ye=ax(),K=ce(Ye);let ae;K.__pointermove=we,K.__pointerdown=ve,K.__pointerup=function(...re){var de;(de=e.disableMouseupTooltipShow?void 0:we)==null||de.apply(this,re)};var ye=C(K);ii(ye,()=>{var re;return(re=e.children)!=null?re:ht}),S(K),Ze(K,re=>R(w,re),()=>n(w));var He=P(K,2);{var ot=re=>{Mm(re,{children:(de,Re)=>{var Ve=sx(),tt=C(Ve),Ee=C(tt,!0);S(tt);var Te=P(tt,2);S(Ve),Ze(Ve,Fe=>R(I,Fe),()=>n(I)),D(()=>{Ke(Ve,n(U)),me(Ee,d()),Ke(Te,n(O))}),$(de,Ve)},$$slots:{default:!0}})};V(He,re=>{d()&&!l()&&re(ot)})}D(re=>ae=ne(K,1,"tooltip-wrapper s-1p",null,ae,re),[()=>({"full-width":p()})]),ut("pointerenter",K,we),ut("pointerleave",K,ve),$(t,Ye),H(),o()}je(["pointermove","pointerdown","pointerup"]);var vb=t=>{t.stopPropagation()},dx=L("<div><!></div>"),cx={hash:"s-1j",code:".btn-container.s-1j{align-items:center;display:flex;height:100%;position:relative;transition:var(--button-hover-transition);will-change:opacity;-webkit-tap-highlight-color:transparent}.w-max.s-1j{min-width:0;width:100%}"};function Vo(t,e){B(e,!0),Y(t,cx);let[i,o]=De(),r=()=>x(u,"$isGraphOpened$",i),a=()=>x(s,"$isMobile",i),l=he(),d=_o(),s=l.ui.isMobile,u=d.graphIsOpened$,f=l.ui.t,p=h(e,"className",3,""),v=h(e,"disabled",3,!1),_=h(e,"hasTooltip",3,!0),y=h(e,"ref",15,void 0),b=h(e,"width",15,void 0),w=h(e,"isFullWidthTooltip",3,!0),I=h(e,"tooltipContent",3,""),T=h(e,"tooltipVisible",3,!1),N=h(e,"tooltipPlacement",3,"top"),A=h(e,"disabledTooltipContent",19,()=>f("tooltip_button_disabled")),E=h(e,"isAriaHidden",3,!1),k=h(e,"onTooltipVisibilityChange",3,sp.noop),Q=h(e,"initialTranslateXPx",3,0),F=h(e,"initialTranslateYPx",19,()=>-18),z=h(e,"mouseEnter",3,sp.noop),X=h(e,"mouseLeave",3,sp.noop),se=m(()=>v()?r()?f("tooltip_disabled_when_graph_on"):A():I()),Z=q(!1);Oe(()=>{T()||R(Z,!1)});var oe=dx();oe.__pointerdown=[vb],oe.__click=[vb];var J=C(oe);{var Ce=ee=>{Ya(ee,{get content(){return n(se)},get translateX(){return Q()},get translateY(){return F()},get isFullWidthWrapper(){return w()},get placement(){return N()},get onVisibilityChange(){return k()},get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},get active(){return n(Z)},set active(_e){R(Z,_e,!0)},children:(_e,we)=>{var ve=Le(),ue=ce(ve);ii(ue,()=>{var Ge;return(Ge=e.children)!=null?Ge:ht}),$(_e,ve)},$$slots:{default:!0}})},pe=ee=>{var _e=Le(),we=ce(_e);ii(we,()=>{var ve;return(ve=e.children)!=null?ve:ht}),$(ee,_e)};V(J,ee=>{_()&&n(se)&&!a()?ee(Ce):ee(pe,!1)})}S(oe),Ze(oe,ee=>y(ee),()=>y()),D(()=>{var ee;ne(oe,1,`btn-container ${(ee=p())!=null?ee:""}`,"s-1j"),Me(oe,"aria-hidden",E()||null)}),ut("mouseenter",oe,function(...ee){var _e;(_e=z())==null||_e.apply(this,ee)}),ut("mouseleave",oe,function(...ee){var _e;(_e=X())==null||_e.apply(this,ee)}),Ln(oe,"clientWidth",b),$(t,oe),H(),o()}je(["pointerdown","click"]);var ux=Ie('<rect width="20" height="20" rx="10"></rect><path d="m12.53 8.69.06.19-.22-.64a.83.83 0 0 0-1.6.47l.13.48-.23-.85a.82.82 0 0 0-1.6.24l-.73-2.93a.85.85 0 0 0-1.65.4L8 11.34l-1.12-1.16a.8.8 0 0 0-1.21 1.03l2.23 2.94s1.23 1.83 4.3 1.23c2.43-.48 3.25-2.67 2.58-4.88l-.55-2.3a.88.88 0 1 0-1.7.49"></path>',1);function cc(t,e){let i=m(()=>(e.completed,"interactive-episode-completed-icon"));Je(t,{width:"20",height:"20",fill:"none",get testId(){return n(i)},children:(o,r)=>{var a=ux(),l=ce(a),d=P(l);D(()=>{Me(l,"fill",na),Me(l,"fill-opacity",e.completed?1:.24),Me(d,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),$(o,a)},$$slots:{default:!0}})}var px=L("<div><!></div>"),fx={hash:"s-19",code:".interactive-episode-icon.s-19{cursor:default;height:20px;position:absolute;transform:translateX(-50%);width:20px}.interactive-episode-icon.disabled.s-19{opacity:.4;pointer-events:none}"};function Vm(t,e){B(e,!0),Y(t,fx);let o=he().ui.t,r=q(0),a=m(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));Vo(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=px();let u;var f=C(s);let p=m(()=>!!e.videoEpisode.completed);cc(f,{get completed(){return n(p)}}),S(s),D(v=>{u=ne(s,1,"interactive-episode-icon s-19",null,u,v),Ke(s,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),Ln(s,"clientWidth",v=>R(r,v)),$(l,s)},$$slots:{default:!0}}),H()}var mx=L('<div><div class="video-episode-inner s-17"><div class="video-episode-loaded s-17"></div> <div></div></div></div>'),vx=L('<div class="video-episodes-wrap s-17"></div>'),gx={hash:"s-17",code:".video-episodes-wrap.s-17{height:100%;position:absolute;width:100%}.video-episode.s-17{box-sizing:border-box;height:calc(var(--slider-height)*3);margin-top:calc(var(--slider-height)*-1);padding:var(--slider-height) var(--slider-video-episode-gap);position:absolute;transition:transform .2s}.video-episode.s-17:first-child{padding-left:0}.video-episode.s-17:last-child{padding-right:0}.video-episode.s-17:not(.disabled):where(:hover,:active){transform:scaleY(1.5)}.video-episode-filled.s-17,.video-episode-inner.s-17,.video-episode-loaded.s-17{border-radius:var(--slider-radius);height:var(--slider-height);position:absolute}.video-episode-inner.s-17{background:var(--slider-bg);overflow:hidden;position:absolute;width:calc(100% - var(--slider-video-episode-gap)*2)}.video-episode.s-17:first-child .video-episode-inner:where(.s-17),.video-episode.s-17:last-child .video-episode-inner:where(.s-17){width:calc(100% - var(--slider-video-episode-gap))}.video-episode-loaded.s-17{background:var(--slider-loaded-bg);transition:transform .2s}.video-episode-filled.s-17,.video-episode-loaded.s-17{border-radius:var(--slider-radius);height:100%;left:-100%;position:absolute;width:100%}.video-episode-filled.s-17{background-color:var(--slider-filled-bg)}"};function Rm(t,e){Y(t,gx);let i=h(e,"videoEpisodes",19,()=>[]);var o=vx();$i(o,21,i,r=>r.from,(r,a)=>{var l=mx();let d;var s=C(l),u=C(s),f=P(u,2);let p;S(s),S(l),D((v,_)=>{d=ne(l,1,"video-episode s-17",null,d,v),Ke(l,`left: ${n(a).from}%; width: ${n(a).width}%`),Ke(u,`transform: translateX(${n(a).loadedWidth/n(a).width*100}%)`),p=ne(f,1,"video-episode-filled s-17",null,p,_),Ke(f,`transform: translateX(${n(a).filledWidth/n(a).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),$(r,l)}),S(o),$(t,o)}function hx(t,e,i,o,r,a,l){if(t.preventDefault(),e()&&R(i,e().getBoundingClientRect(),!0),o()||n(r)||!e())return;R(r,!0);let d=a(t.clientX,t.clientY);l()(d,t),e().setPointerCapture(t.pointerId)}function _x(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 bx(t,e,i,o,r){if(t.preventDefault(),e()||!n(i))return;R(i,!1);let a=o(t.clientX,t.clientY);r()(a,t)}function $x(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}function yx(t,e,i,o,r,a){let l=e(t.clientX,t.clientY);i()&&o()(l),R(r,!1),a()(l)}var xx=L("<div></div>"),wx=L('<div class="bars s-t"><div class="loaded s-t"></div> <div></div></div>'),Sx=L('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),Cx={hash:"s-t",code:'.interactive-icons.s-t{position:absolute;top:-28px;width:calc(100% - 20px)}.interactive-icons.mobile.s-t{top:-10px}.slider.s-t{border-radius:var(--slider-radius);cursor:pointer;height:var(--slider-height);position:relative;touch-action:none;transition:opacity .2s;width:100%;will-change:opacity,transform;-webkit-tap-highlight-color:transparent}.no-handle.s-t{cursor:default}.slider.s-t:before{content:"";height:calc(var(--controls-height)/2);left:0;position:absolute;right:0;top:calc((var(--controls-height)/2 - var(--slider-height))*-1/2)}.bars.s-t{background:var(--slider-bg);overflow:hidden}.bars.s-t,.loaded.s-t{border-radius:var(--slider-radius);height:100%;position:absolute;width:100%}.loaded.s-t{background:var(--slider-loaded-bg);left:-100%;transition:transform .2s;will-change:transform}.filled.s-t{background-color:var(--slider-filled-bg);border-radius:var(--slider-radius);height:100%;left:-100%;position:absolute;width:100%}.slider.square.s-t,.slider.square.s-t .filled:where(.s-t),.slider.square.s-t .loaded:where(.s-t),.slider.square.s-t>.bars:where(.s-t){border-radius:unset}.filled.active-live.s-t{background-color:var(--timeline-slider-filled-active-live-bg)}.filled.ads.s-t{background-color:var(--slider-filled-ads)}.handleWrap.s-t{left:-100%;position:absolute;width:100%}.handle.s-t{background-color:var(--slider-handle-bg);border-radius:50%;height:var(--slider-handle-size);opacity:0;position:absolute;right:calc(var(--slider-handle-size)*-1/2);top:calc((var(--slider-height) - var(--slider-handle-size))/2);transform:scale(0);transition:opacity .2s,transform .2s;visibility:hidden;width:var(--slider-handle-size);will-change:opacity,transform}.handle.active-live.s-t{background-color:var(--timeline-slider-handle-active-live-bg)}.handle-always-visible.s-t .handle:where(.s-t),.slider-dragging.s-t .handle:where(.s-t),.slider.s-t:hover .handle:where(.s-t){opacity:1;transform:scale(1);visibility:visible}.slider-dragging.s-t .handle:where(.s-t){transform:scale(1.3)}.slider-vertical.s-t{left:-8px;position:absolute;top:-18px;transform:rotate(-90deg);transform-origin:0 0}.slider.disabled.s-t{cursor:default;opacity:.4}'};function ja(t,e){B(e,!0),Y(t,Cx);let i=h(e,"ref",15,void 0),o=h(e,"className",3,""),r=h(e,"testId",3,void 0),a=h(e,"isHidden",3,!1),l=h(e,"isVertical",3,!1),d=h(e,"isActiveLive",3,!1),s=h(e,"isMobile",3,!1),u=h(e,"squareBorders",3,!1),f=h(e,"videoEpisodes",19,()=>[]),p=h(e,"withWheelHandler",3,!1),v=h(e,"isInteractive",3,!1),_=h(e,"disabled",3,!1),y=h(e,"hideHandel",3,!1),b=h(e,"onPointerDown",3,Ro.noop),w=h(e,"onHandleMove",3,Ro.noop),I=h(e,"onPointerUp",3,Ro.noop),T=h(e,"onPointerEnter",3,Ro.noop),N=h(e,"onPointerMove",3,Ro.noop),A=h(e,"onPointerLeave",3,Ro.noop),E=h(e,"onMouseEnter",3,Ro.noop),k=h(e,"onMouseLeave",3,Ro.noop),Q=h(e,"onWheelUp",3,Ro.noop),F=h(e,"onWheelDown",3,Ro.noop),z=h(e,"onWheelLeft",3,Ro.noop),X=h(e,"onWheelRight",3,Ro.noop),se=h(e,"onDisabledClick",3,Ro.noop),Z=h(e,"loadedProgress",3,0),oe=h(e,"filledProgress",3,0),J=h(e,"handleProgress",3,0),Ce=h(e,"ariaLabel",3,""),pe=h(e,"ariaValueMin",3,void 0),ee=h(e,"ariaValueMax",3,void 0),_e=h(e,"ariaValueNow",3,void 0),we=h(e,"ariaValueText",3,""),ve=h(e,"onContextMenu",3,Ro.noop),ue=h(e,"handleAlwaysVisible",3,!1),Ge=Rt(),U=q(void 0),O=q(!1),Ye=m(()=>{var xe;return(xe=ee())!=null?xe:0}),K=m(()=>{var xe;return(0,Ro.isNonNullable)(f())&&((xe=f()[f().length-1])==null?void 0:xe.time)<n(Ye)}),ae=m(()=>(0,Ro.isNonNullable)(f())&&f().length&&n(K)&&n(Ye)?tt(Z()*100,oe()*100):[]);function ye(xe){if(xe.preventDefault(),i()&&R(U,i().getBoundingClientRect(),!0),_())return;let Be=Re(xe.clientX,xe.clientY),$e=Ve(xe.clientX);T()(Be,$e,n(U).width)}function He(xe){xe.preventDefault(),!_()&&A()()}function ot(){E()()}function re(){k()()}function de(xe){_()||p()&&(xe.preventDefault(),xe.deltaY<0?Q()():xe.deltaY>0?F()():xe.deltaX>0?X()():z()())}function Re(xe,Be){return l()?Math.max(0,Math.min(1,(n(U).height-(Be-n(U).top))/n(U).height)):Math.min(Math.max(xe-n(U).x,0),n(U).width)/n(U).width}function Ve(xe){return Math.min(Math.max(xe-n(U).x,0),n(U).width)}function tt(xe,Be){let $e=Ge.features.episodesClustering&&!v()?Ge.episodeMinWidthPc:0,Tt=[],fe=f()[0].time/n(Ye)*100,Ne=0,Qe=0;for(let Nt=1;Nt<f().length;Nt++)Ne=f()[Nt].time/n(Ye)*100,Ne-fe>$e&&(Tt.push({from:fe,width:Math.max(0,Ne-fe),loadedWidth:Math.max(0,Math.min(Ne,xe)-fe),filledWidth:Math.max(0,Math.min(Ne,Be)-fe),interactive:f()[Nt-1].interactive,completed:f()[Nt-1].completed}),fe=f()[Nt].time/n(Ye)*100,Qe++);let rt={from:fe,width:Math.max(0,100-fe),loadedWidth:Math.max(0,Math.min(xe,100)-fe),filledWidth:Math.max(0,Math.min(Be,100)-fe),interactive:f()[Qe].interactive,completed:f()[Qe].completed};100-fe<$e?(Qe-=1,Tt[Qe].width+=100-fe,Tt[Qe].loadedWidth+=Math.max(0,Math.min(xe,100)-fe),Tt[Qe].filledWidth+=Math.max(0,Math.min(Be,100)-fe)):Tt[Qe]=rt;let qt=f()[0].time;if(qt!==0){let Nt=qt/n(Ye)*100;Tt.unshift({from:0,width:Nt,loadedWidth:Math.min(Nt,xe),filledWidth:Math.min(Nt,Be)})}return Tt}function Ee(xe){return Math.max(0,Math.min(100,xe*100))}let Te=m(()=>Ee(Z())),Fe=m(()=>Ee(oe()));var At=Sx(),kt=ce(At);{var Lt=xe=>{var Be=xx();let $e;$i(Be,21,()=>n(ae),Tt=>Tt.from,(Tt,fe)=>{var Ne=Le(),Qe=ce(Ne);{var rt=qt=>{Vm(qt,{get videoEpisode(){return n(fe)},get disabled(){return _()}})};V(Qe,qt=>{n(fe).interactive&&qt(rt)})}$(Tt,Ne)}),S(Be),D(Tt=>$e=ne(Be,1,"interactive-icons s-t",null,$e,Tt),[()=>({mobile:s(),hidden:s()&&!n(O)})]),$(xe,Be)};V(kt,xe=>{v()&&xe(Lt)})}var lt=P(kt,2);let Ct;lt.__pointerdown=[hx,i,U,_,O,Re,b],lt.__pointermove=[_x,_,Re,Ve,N,U,O,w],lt.__pointerup=[bx,_,O,Re,I],lt.__click=[$x,_,se,Re],lt.__contextmenu=[yx,Re,_,se,O,ve];var Zt=C(lt);{var Ht=xe=>{Rm(xe,{get videoEpisodes(){return n(ae)},get disabled(){return _()},get isMobile(){return s()}})},Ot=xe=>{var Be=wx(),$e=C(Be),Tt=P($e,2);let fe;S(Be),D(Ne=>{Me($e,"data-value",n(Te)),Ke($e,`transform: translateX(${n(Te)}%);`),fe=ne(Tt,1,"filled s-t",null,fe,Ne),Me(Tt,"data-value",n(Fe)),Ke(Tt,`transform: translateX(${n(Fe)}%);`)},[()=>({"active-live":d()})]),$(xe,Be)};V(Zt,xe=>{n(ae).length?xe(Ht):xe(Ot,!1)})}var Kt=P(Zt,2);let G;var Pe=C(Kt);let ke;S(Kt),S(lt),Ze(lt,xe=>i(xe),()=>i()),D((xe,Be,$e,Tt)=>{var fe,Ne;Ct=ne(lt,1,`slider ${(fe=o())!=null?fe:""}`,"s-t",Ct,xe),Me(lt,"aria-label",Ce()),Me(lt,"aria-valuemin",pe()),Me(lt,"aria-valuemax",ee()),Me(lt,"aria-valuenow",_e()),Me(lt,"aria-valuetext",we()),Me(lt,"data-testid",(Ne=r())!=null?Ne:null),G=ne(Kt,1,"handleWrap s-t",null,G,Be),Ke(Kt,$e),ke=ne(Pe,1,"handle s-t",null,ke,Tt)},[()=>({disabled:_(),"slider-dragging":n(O),hidden:a(),"handle-always-visible":ue(),"slider-vertical":l(),"no-handle":y(),square:u()}),()=>({hidden:y()}),()=>`transform: translateX(${Ee(J())}%);`,()=>({"active-live":d()})]),ut("pointerenter",lt,ye),ut("pointerleave",lt,He),ut("mouseenter",lt,ot),ut("mouseleave",lt,re),ut("wheel",lt,de),$(t,At),H()}je(["pointerdown","pointermove","pointerup","click","contextmenu"]);var to=(t,e)=>Qd[t]>=Qd[e];var Os=(t,e)=>Qd[t]<=Qd[e],gb=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var Ix=L("<div><!></div>"),Ex=L("<div><!> <!></div>"),kx={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 Nm(t,e){var Ve,tt;B(e,!0),Y(t,kx);let[i,o]=De(),r=()=>x(N,"$isAudioAvailable$",i),a=()=>x(v,"$muted$",i),l=()=>x(p,"$volume$",i),d=()=>x(w,"$currentGridType$",i),s=()=>x(ye,"$controlsVisible",i),u=he(),f=Rt(),p=u.state.volume$,v=u.state.muted$,{setVolume:_,startVolumeChanging:y,stopVolumeChanging:b}=u.actions.internal,w=u.ui.currentGridType$,I=(Ve=u.callbacks)==null?void 0:Ve.onAudioDoesNotExistHint,T=(tt=u.callbacks)==null?void 0:tt.onAudioDisabledHint,N=u.state.isAudioAvailable$,A=u.state.isAudioDisabled,E=u.ui.t,k=q(!1),Q,F=m(()=>e.isAds||r()),z=m(()=>!n(F)||a()||l()===0),X=m(()=>Os(d(),"l")),se=m(()=>n(X)?"":n(z)?!r()||A?E("tooltip_sound_unavailable"):E("tooltip_volume"):E("tooltip_volume_muted")),Z=m(()=>n(z)?E("tooltip_volume"):E("tooltip_volume_muted")),oe=m(()=>n(z)?0:l()),J=!1,Ce=m(()=>e.isAds?!1:A?!T:r()?!1:!I);function pe(Ee){y(),_(Ee)}function ee(){ip(u,l(),f.controls.volumeStepWheel)}function _e(){op(u,l(),f.controls.volumeStepWheel)}function we(Ee){_(Ee)}function ve(Ee){_(Ee),b()}function ue(){J=!0}function Ge(){J=!1,Ye()}function U(){clearTimeout(Q),R(k,!0)}function O(){Ye()}function Ye(){Q=window.setTimeout(()=>{J||R(k,!1)},f.controls.volumeBarTimeout)}function K(Ee){Ee.preventDefault(),Ee.deltaY<0?ee():Ee.deltaY>0&&_e()}let ae=q(!1),ye=u.ui.controlsVisible;Oe(()=>{s()||R(ae,!1)});var He=Ex();let ot;var re=C(He);Ya(re,{get content(){return n(se)},translateY:-18,get active(){return n(ae)},set active(Ee){R(ae,Ee,!0)},children:(Ee,Te)=>{let Fe=m(()=>n(X)?"btn-volume-vertical":"btn-volume-horizontal");Wt(Ee,{className:"btn-full-opacity",get disabled(){return n(Ce)},get testId(){return n(Fe)},get ariaLabel(){return n(Z)},get click(){return e.click},get ariaKeyShortCut(){return gs.KeyM},role:"button",children:(At,kt)=>{pa(At,{get size(){return"24"},get volume(){return l()},get muted(){return n(z)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var de=P(re,2);{var Re=Ee=>{var Te=Ix();let Fe;var At=C(Te);let kt=m(()=>n(X)?"volumeBar-slider-vertical":""),Lt=m(()=>n(X)&&!n(k)),lt=m(()=>n(X)?ue:uc.noop),Ct=m(()=>n(X)?Ge:uc.noop),Zt=m(()=>Math.round(n(oe)*100)),Ht=m(()=>`${Math.round(n(oe)*100)}%`),Ot=m(()=>n(X)?"volume-slider-vertical":"volume-slider");ja(At,{get className(){return n(kt)},get isHidden(){return n(Lt)},get isVertical(){return n(X)},withWheelHandler:!0,onWheelUp:ee,onWheelDown:_e,onPointerDown:pe,onHandleMove:we,onPointerUp:ve,get onPointerEnter(){return n(lt)},get onPointerLeave(){return n(Ct)},ariaLabel:"Ползунок громкости",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return n(Zt)},get ariaValueText(){return n(Ht)},get filledProgress(){return n(oe)},get handleProgress(){return n(oe)},get testId(){return n(Ot)}}),S(Te),D(Kt=>Fe=ne(Te,1,"volumeBar s-28",null,Fe,Kt),[()=>({"volumeBar-vertical":n(X)})]),$(Ee,Te)};V(de,Ee=>{n(F)&&Ee(Re)})}S(He),D(Ee=>ot=ne(He,1,"volumeBar-container s-28",null,ot,Ee),[()=>({vertical:n(X)})]),ut("mouseenter",He,function(...Ee){var Te;(Te=n(X)?U:uc.noop)==null||Te.apply(this,Ee)}),ut("mouseleave",He,function(...Ee){var Te;(Te=n(X)?O:uc.noop)==null||Te.apply(this,Ee)}),ut("wheel",He,K),$(t,He),H(),o()}var hb=require("@vkontakte/videoplayer-shared/es2018");var Px=Ie('<path d="M4.58 13.98a1 1 0 0 1 .99-1h4.45a1 1 0 0 1 1 1v4.45a.99.99 0 0 1-1.99 0v-2.05L5.71 19.7a1 1 0 1 1-1.41-1.4l3.32-3.32H5.57a1 1 0 0 1-.99-1m10.39-6.36 3.32-3.32a1 1 0 1 1 1.41 1.4l-3.32 3.32h2.05a.99.99 0 0 1 0 1.98H14a1 1 0 0 1-1-1V5.57a.99.99 0 1 1 1.98 0z"></path>'),Ax=Ie('<path d="M10.5 19a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-4.5a1 1 0 0 1 2 0v2.07l3.36-3.36a1 1 0 0 1 1.42 0l.01.01a1 1 0 0 1 0 1.42L7.43 18H9.5a1 1 0 0 1 1 1M18 7.43l-3.36 3.36a1 1 0 0 1-1.42 0l-.01-.01a1 1 0 0 1 0-1.42L16.57 6H14.5a1 1 0 0 1 0-2H19a1 1 0 0 1 1 1v4.5a1 1 0 0 1-2 0z"></path>');function Dm(t,e){let i=h(e,"isFullscreen",8,!1),o=In(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");Je(t,{get testId(){return n(o)},children:(r,a)=>{var l=Le(),d=ce(l);{var s=f=>{var p=Px();$(f,p)},u=f=>{var p=Ax();$(f,p)};V(d,f=>{i()?f(s):f(u,!1)})}$(r,l)},$$slots:{default:!0}})}function pc(t,e){B(e,!0);let i=h(e,"isFullscreen",3,!1),o=h(e,"click",3,hb.noop),r=he(),a=r.ui.isFullscreenOpenedByKeyboard,l=r.ui.t,d=m(()=>i()?l("tooltip_fullscreen_on"):l("tooltip_fullscreen_off"));Wt(t,{testId:"fullscreen-btn",get ariaLabel(){return n(d)},click:u=>{let f=la(u);a.set(f),o()()},get ariaKeyShortCut(){return gs.KeyF},role:"button",children:(u,f)=>{Dm(u,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),H()}var Lx=Ie('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4.26 4.26C3 5.54 3 7.57 3 11.65v.72c0 4.07 0 6.11 1.26 7.38C5.54 21 7.57 21 11.65 21h.72c4.07 0 6.11 0 7.38-1.26C21 18.47 21 16.43 21 12.36v-.72c0-4.07 0-6.11-1.26-7.38C18.47 3 16.43 3 12.36 3h-.72C7.57 3 5.53 3 4.26 4.26M6 8.5c.1 4.68 2.56 7.5 6.61 7.5h.24v-2.68c1.47.15 2.57 1.25 3.02 2.68H18a6 6 0 0 0-3-3.76 5.7 5.7 0 0 0 2.55-3.74h-1.94c-.4 1.49-1.61 2.84-2.77 2.97V8.5h-1.96v5.2c-1.2-.3-2.76-1.76-2.83-5.2z" clip-rule="evenodd"></path></svg>');function Om(t,e){let i=Mn(e,["$$slots","$$events","$$legacy","children"]);var o=Lx();eo(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"vk-logo-icon",role:"img",...i}));var r=C(o);ii(r,()=>{var a;return(a=e.children)!=null?a:ht}),ai(),S(o),$(t,o)}var Mx=Ie('<svg><!><svg data-logo="vk_video"><path d="M7 8.6c0-1.96 0-2.94.38-3.69a3.5 3.5 0 0 1 1.53-1.53C9.66 3 10.64 3 12.6 3h1.36c2.46 0 3.7 0 4.64.48a4.4 4.4 0 0 1 1.92 1.92c.48.94.48 2.18.48 4.64v3.92c0 2.46 0 3.7-.48 4.64a4.4 4.4 0 0 1-1.92 1.92c-.94.48-2.18.48-4.64.48H12.6c-1.96 0-2.94 0-3.69-.38a3.5 3.5 0 0 1-1.53-1.53C7 18.34 7 17.36 7 15.4zm9.26 1.74c.9.54 1.36.81 1.51 1.16.13.3.13.65 0 .96-.15.34-.6.61-1.5 1.15l-2.4 1.43c-.93.56-1.4.84-1.8.8-.33-.03-.64-.2-.84-.48-.23-.31-.23-.86-.23-1.96v-2.85c0-1.1 0-1.64.23-1.96q.31-.42.85-.48c.38-.04.86.25 1.8.8zM5 9.04c0-2.46 0-3.7.48-4.64q.37-.71.95-1.25-.58.1-1.03.33A4.4 4.4 0 0 0 3.48 5.4C3 6.34 3 7.58 3 10.04v3.92c0 2.46 0 3.7.48 4.64a4.4 4.4 0 0 0 1.92 1.92q.45.23 1.03.33a4 4 0 0 1-.95-1.25C5 18.66 5 17.42 5 14.96z"></path></svg><svg x="4" y="3" data-logo="play_market"><path d="M0 1.26v15.47q0 .66.34 1L9.52 9 .33.28C.08.53 0 .92 0 1.26"></path><path d="M.33.28.38.23c.34-.3.89-.32 1.49 0l10.75 5.81-2.6 2.48zm10.29 8.75 2.88 2.45-.53.29-.34.18-2.58-2.44-9.71 8.22c.33.34.9.37 1.53.04l11.1-6 .53-.29 2.73-1.47c1.03-.56 1.03-1.47 0-2.02l-2.77-1.5-.84-.45.84.45.1.05z"></path></svg><svg x="3" data-logo="app_store"><path d="M17.62 16.37q-.48 1.09-1.15 2.03-.9 1.27-1.48 1.75-.88.8-1.9.83-.72 0-1.76-.42a5 5 0 0 0-1.89-.4q-.9 0-1.94.4a5 5 0 0 1-1.68.44q-.98.04-1.95-.85-.62-.53-1.55-1.82a13 13 0 0 1-1.63-3.2 12 12 0 0 1-.69-3.8q0-2.1.93-3.64A5.4 5.4 0 0 1 5.5 5.03q.77 0 2.03.46t1.62.47q.26 0 1.79-.55a6 6 0 0 1 2.43-.42 5.2 5.2 0 0 1 4.05 2.09q-2.4 1.44-2.4 4.02a4.4 4.4 0 0 0 1.49 3.34q.66.61 1.48.95-.18.5-.38.98M13.5.42q0 1.58-1.17 2.94c-.94 1.08-2.07 1.7-3.3 1.6L9 4.56c0-1 .45-2.08 1.24-2.96q.6-.67 1.5-1.12.93-.44 1.74-.48z"></path></svg><path d="M32.55 17.04h2.5L38.7 7h-1.8l-2.94 8.28h-.28L30.84 7H29zm15.52 0-4.61-5.2L47.72 7H45.6l-3.56 4.09h-.42V7h-1.7v10.04h1.7v-4.3h.43l3.76 4.3z"></path><path d="M57.89 11.89a2.2 2.2 0 0 0 1.44-2.16C59.33 8.14 58 7 56.06 7h-3.92v10.04h4.2c1.96 0 3.29-1.14 3.29-2.8 0-1.17-.66-2.04-1.74-2.35m-4.04-3.4h2.21c.92 0 1.54.56 1.54 1.39 0 .8-.62 1.36-1.54 1.36h-2.2zm2.5 7.06h-2.5v-2.81h2.5c.9 0 1.52.57 1.52 1.4 0 .84-.62 1.4-1.52 1.4m4.84 1.5h2.32l2.77-5.5h.22v5.5h1.57v-7.4h-2.32l-2.77 5.5h-.22v-5.5h-1.57zm7.96 2.21h1.64v-2.2h5.33v2.2h1.64v-3.7h-1.29V9.64h-5.43l-.37 3.78c-.13 1.34-.53 2.13-1.34 2.13h-.18zm2.49-3.7c.4-.39.57-1.04.68-2.15l.23-2.27h2.28v4.42zm14.38-2.3a3.7 3.7 0 0 0-3.84-3.76 3.7 3.7 0 0 0-3.85 3.85 3.7 3.7 0 0 0 3.85 3.84c1.54 0 2.99-.72 3.55-2.13l-1.54-.26c-.36.53-1.04.9-1.91.9-1.26 0-2.09-.77-2.24-1.91H86zm-3.84-2.33c1.02 0 1.8.65 2.06 1.58h-4.1a2.1 2.1 0 0 1 2.04-1.58m8.66 6.26c2.32 0 3.96-1.6 3.96-3.84 0-2.25-1.64-3.85-3.96-3.85s-3.97 1.6-3.97 3.85 1.64 3.84 3.97 3.84m0-1.5c-1.34 0-2.25-.95-2.25-2.34 0-1.4.9-2.35 2.25-2.35 1.34 0 2.25.95 2.25 2.35s-.91 2.35-2.25 2.35" class="_ru"></path><path d="M35.02 17.36h-2.48L29 7.42h1.83l2.83 8.2h.28l2.93-8.2h1.8zm8.41-5.15 4.6 5.15h-2.24l-3.75-4.26h-.43v4.26h-1.7V7.42h1.7v4.05h.41l3.55-4.05h2.1zm13.37 5.15h-2.48L50.8 7.42h1.83l2.82 8.2h.29l2.92-8.2h1.8zm6.46 0h-1.64v-7.33h1.64zm-.81-8.37q-.45 0-.74-.27a1 1 0 0 1-.28-.72q0-.44.28-.72.3-.28.74-.28t.72.28q.3.29.29.72 0 .44-.29.72t-.72.27m5.93 8.51q-1.03 0-1.86-.48a3.5 3.5 0 0 1-1.29-1.35 4 4 0 0 1-.45-1.98q0-1.1.45-1.95.46-.88 1.3-1.36.81-.5 1.85-.5.9 0 1.6.38.68.35 1.13.88V7.42h1.63v9.94h-1.22l-.34-1.18q-.46.54-1.17.94a3.4 3.4 0 0 1-1.63.38m.4-1.45q1.04 0 1.68-.65.65-.66.65-1.7t-.65-1.7a2.2 2.2 0 0 0-1.68-.66 2.2 2.2 0 0 0-1.66.66q-.64.66-.64 1.7t.64 1.7q.64.65 1.66.65m13.15-2.44-.03.52h-5.94q.12.86.71 1.38.6.51 1.52.51.63 0 1.13-.24.51-.24.78-.65l1.53.26q-.39 1.01-1.38 1.56-.96.55-2.16.55-1.1 0-1.98-.48a3.6 3.6 0 0 1-1.85-3.33q0-1.1.48-1.95.5-.88 1.37-1.36a4 4 0 0 1 1.98-.5q1.11 0 1.98.5.88.48 1.36 1.34.5.86.5 1.89m-3.84-2.31q-.73 0-1.29.42-.53.42-.74 1.14h4.1a2.2 2.2 0 0 0-2.07-1.56m8.66 6.2q-1.14 0-2.04-.48a3.7 3.7 0 0 1-1.4-1.35 4 4 0 0 1-.5-1.98q0-1.1.5-1.95.5-.88 1.4-1.36.9-.5 2.04-.5t2.03.5q.91.48 1.4 1.36.52.86.52 1.95 0 1.11-.51 1.98-.5.86-1.4 1.35-.9.48-2.04.48m0-1.48q.99 0 1.62-.63.63-.66.63-1.7t-.63-1.67a2.2 2.2 0 0 0-1.62-.65q-.99 0-1.62.65-.62.63-.62 1.67 0 1.05.62 1.7.63.63 1.62.63" class="_en"></path></svg>');function Bm(t,e){let i=Mn(e,["$$slots","$$events","$$legacy","children"]);var o=Mx();eo(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"var(--btn-color, #fff)","fill-rule":"evenodd","aria-hidden":"true","clip-rule":"evenodd",viewBox:"0 0 95 24",role:"img",...i}));var r=C(o);ii(r,()=>{var a;return(a=e.children)!=null?a:ht}),ai(6),S(o),$(t,o)}var Vx={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 Hm(t,e){B(e,!0),Y(t,Vx);let i=h(e,"short",3,!1),o=h(e,"isCyrillic",3,!0),r=h(e,"logo",19,()=>"vk_video"),a="vk-video-logo-icon--short",l=24,d=m(()=>!o()&&!i()?91:i()?l:95),s=m(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?a:"vk-video-logo-icon"),u=m(()=>`0 0 ${n(d)} 24`);Bm(t,{get width(){return n(d)},height:"24",get viewBox(){return n(u)},get"data-testid"(){return n(s)},get"data-logo"(){return r()}}),H()}function fc(t,e){B(e,!0);let[i,o]=De(),r=()=>x(_,"$isMobile",i),a=()=>x(v,"$currentGridType$",i),l=()=>x(b,"$isCyrillicRelatedInterface$",i),d=h(e,"ref",15,void 0),s=h(e,"logoClickable",3,!1),u=h(e,"targetUrl",3,""),f=Rt(),p=he(),v=p.ui.currentGridType$,_=p.ui.isMobile,y=p.ui.t,b=p.isCyrillicRelatedInterface$,w=m(()=>f.logoType!=="vk"),I=m(()=>n(w)?y("tooltip_vk_video_logo"):y("tooltip_vk_logo")),T=m(()=>(r()&&Os(a(),"m")||Os(a(),"l"))&&n(w)),N=()=>{var k,Q;e.click(),(k=p.callbacks)!=null&&k.onLogoClicked?(Q=p.callbacks)==null||Q.onLogoClicked():u()&&window.open(u(),"_blank")},A=m(()=>!s()),E=m(()=>n(w)?"btn-vk-video-logo":"btn-vk-logo");Wt(t,{className:"btn-full-opacity",get disabled(){return n(A)},click:N,get testId(){return n(E)},get ariaLabel(){return n(I)},get ref(){return d()},set ref(k){d(k)},children:(k,Q)=>{var F=Le(),z=ce(F);{var X=Z=>{Hm(Z,{get logo(){return f.logoType},get short(){return n(T)},get isCyrillic(){return l()}})},se=Z=>{Om(Z,{})};V(z,Z=>{n(w)?Z(X):Z(se,!1)})}$(k,F)},$$slots:{default:!0}}),H(),o()}var bb=require("@vkontakte/videoplayer-core/es2018");var Fm=require("@vkontakte/videoplayer-core/es2018");var Rx=Ie('<path d="M3.6 13.3a5.1 5.1 0 0 1 5.05 5.83.9.9 0 0 1-1.78-.26 3.3 3.3 0 0 0-3.74-3.74.9.9 0 0 1-.26-1.78c.24-.03.49-.05.73-.05Z" class="s-16"></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-16"></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-16"></path>',1),Nx=Ie('<path d="M3.60219 13.2993C6.41858 13.2995 8.70256 15.5835 8.70278 18.3999C8.70277 18.6469 8.68424 18.8909 8.65004 19.1294C8.57937 19.6212 8.12333 19.9625 7.63149 19.8921C7.13968 19.8213 6.79823 19.3654 6.86879 18.8735C6.89087 18.7195 6.90199 18.5611 6.902 18.3999C6.90178 16.5776 5.42447 15.1003 3.60219 15.1001C3.441 15.1001 3.28267 15.1112 3.12856 15.1333C2.63666 15.2039 2.18077 14.8624 2.11 14.3706C2.03966 13.8788 2.38091 13.4227 2.8727 13.3521C3.11125 13.3178 3.35516 13.2993 3.60219 13.2993Z"></path><path d="M3.60219 9.69971C8.40682 9.69977 12.3021 13.5953 12.3024 18.3999C12.3024 18.6248 12.2938 18.8489 12.277 19.0698C12.239 19.5651 11.8065 19.9365 11.3112 19.8989C10.8157 19.8611 10.4445 19.4286 10.4821 18.9331C10.4954 18.7576 10.5026 18.5791 10.5026 18.3999C10.5023 14.5894 7.41271 11.5005 3.60219 11.5005C3.42268 11.5005 3.24474 11.5066 3.06899 11.52C2.57352 11.5578 2.14115 11.1863 2.10317 10.6909C2.06587 10.1957 2.43694 9.76287 2.93227 9.7251C3.15348 9.70823 3.37699 9.69971 3.60219 9.69971Z"></path><path d="M3.60219 16.8999C4.43047 16.8999 5.10198 17.5717 5.10219 18.3999C5.10209 19.2282 4.43054 19.8999 3.60219 19.8999C2.77383 19.8999 2.10229 19.2282 2.10219 18.3999C2.10241 17.5717 2.7739 16.8999 3.60219 16.8999Z"></path><path d="M16.2379 4.1001C17.0459 4.10009 17.7067 4.10017 18.2438 4.14404C18.7997 4.18946 19.3022 4.28599 19.7711 4.5249C20.5049 4.89882 21.1014 5.49623 21.4752 6.22998C21.714 6.69873 21.8107 7.20063 21.8561 7.75635C21.9 8.29338 21.9001 8.95424 21.9 9.76221V14.2378C21.9001 15.0458 21.9 15.7066 21.8561 16.2437C21.8107 16.7996 21.7141 17.3021 21.4752 17.771C21.1014 18.5046 20.5048 19.1012 19.7711 19.4751C19.3022 19.714 18.7997 19.8105 18.2438 19.856C17.7067 19.8998 17.0459 19.8999 16.2379 19.8999H14.9997C14.503 19.8996 14.1005 19.4972 14.1002 19.0005C14.1002 18.5036 14.5028 18.1004 14.9997 18.1001H16.1998C17.0548 18.1001 17.6422 18.0992 18.0973 18.062C18.5419 18.0257 18.7809 17.9596 18.9538 17.8716C19.3489 17.6702 19.6704 17.3487 19.8717 16.9536C19.9598 16.7808 20.0258 16.5417 20.0622 16.0972C20.0993 15.6421 20.1002 15.0546 20.1002 14.1997V9.80029C20.1002 8.94536 20.0993 8.35794 20.0622 7.90283C20.0258 7.45834 19.9598 7.21921 19.8717 7.04639C19.6704 6.6514 19.3487 6.33073 18.9538 6.12939C18.7809 6.04133 18.5419 5.97431 18.0973 5.93799C17.6422 5.9008 17.0548 5.8999 16.1998 5.8999H6.00063L5.83071 5.90674C4.99191 5.97398 4.28981 6.53462 4.01918 7.30029C3.85342 7.76872 3.33928 8.01472 2.87075 7.84912C2.40214 7.68346 2.15628 7.16833 2.32192 6.69971C2.85696 5.18632 4.30125 4.1001 6.00063 4.1001H16.2379Z"></path><path d="M2.95114 7.11345C2.42394 7.1914 1.90399 6.78569 2.00995 6.2634C2.05777 6.0277 2.12517 5.82449 2.22018 5.63803C2.5078 5.07354 2.96674 4.6146 3.53123 4.32698C4.17296 4 5.01304 4 6.6932 4H17.2001C18.8803 4 19.7204 4 20.3621 4.32698C20.9266 4.6146 21.3855 5.07354 21.6731 5.63803C22.0001 6.27976 22.0001 7.11984 22.0001 8.8V15.2C22.0001 16.8802 22.0001 17.7202 21.6731 18.362C21.3855 18.9265 20.9266 19.3854 20.3621 19.673C19.7204 20 18.8803 20 17.2001 20H15.7196C15.2009 20 14.8203 19.5134 14.8938 19C14.9638 18.5101 15.0001 18.0093 15.0001 17.5C15.0001 11.701 10.2991 7 4.5001 7C3.97384 7 3.45662 7.03872 2.95114 7.11345Z"></path>',1),Dx={hash:"s-16",code:".animated.s-16{animation-duration:1s;animation-iteration-count:infinite}.wave1.animated.s-16{animation-name:s-16-wave1}.wave2.animated.s-16{animation-name:s-16-wave2}.wave3.animated.s-16{animation-name:s-16-wave3}@keyframes s-16-wave1{0%{opacity:.3}33%{opacity:1}66%{opacity:1}to{opacity:1}}@keyframes s-16-wave2{0%{opacity:.3}33%{opacity:.3}66%{opacity:1}to{opacity:1}}@keyframes s-16-wave3{0%{opacity:.3}33%{opacity:.3}66%{opacity:.3}to{opacity:1}}"};function mc(t,e){B(e,!0),Y(t,Dx);let i=h(e,"isMobile",3,!1),o=m(()=>e.iconState===Fm.ChromecastState.CONNECTED),r=m(()=>e.iconState===Fm.ChromecastState.CONNECTING),a=m(()=>n(o)?"#2688EB":na),l=m(()=>e.size?un(e.size):void 0);var d=Le(),s=ce(d);{var u=p=>{Je(p,{get fill(){return n(a)},get style(){return n(l)},testId:"chromecast-mobile-icon",children:(v,_)=>{var y=Rx();ai(2),$(v,y)},$$slots:{default:!0}})},f=p=>{Je(p,{get style(){return n(l)},testId:"chromecast-icon",children:(v,_)=>{var y=Nx(),b=ce(y);let w;var I=P(b);let T;var N=P(I);let A;var E=P(N);let k;var Q=P(E);let F;D((z,X,se,Z,oe)=>{w=ne(b,0,"wave2 s-16",null,w,z),T=ne(I,0,"wave3 s-16",null,T,X),A=ne(N,0,"wave1 s-16",null,A,se),k=ne(E,0,"s-16",null,k,Z),F=ne(Q,0,"s-16",null,F,oe)},[()=>({animated:n(r)}),()=>({animated:n(r)}),()=>({animated:n(r)}),()=>({hidden:n(o)}),()=>({hidden:!n(o)})]),$(v,y)},$$slots:{default:!0}})};V(s,p=>{i()?p(u):p(f,!1)})}$(t,d),H()}var $b=require("@vkontakte/videoplayer-shared/es2018");function vc(t,e){B(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"isMobile",3,!1),r=h(e,"click",3,$b.noop),l=he().ui.t,d=m(()=>e.state===bb.ChromecastState.CONNECTED?l("tooltip_chromecast_on"):l("tooltip_chromecast_off"));Wt(t,{get ariaLabel(){return n(d)},get click(){return r()},testId:"btn-chromecast",get ref(){return i()},set ref(s){i(s)},children:(s,u)=>{mc(s,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),H()}var yb=require("@vkontakte/videoplayer-shared/es2018");var Ox=Ie('<path d="m21.62 16.5-.02.07q-.22 1.27-.42 2.09a5 5 0 0 1-.64 1.5 4.4 4.4 0 0 1-2.51 1.73q-.77.18-1.63.07t-2.11-.34l-4.34-.8q-1.27-.22-2.1-.42a5 5 0 0 1-1.5-.65 4.4 4.4 0 0 1-1.72-2.5 5 5 0 0 1-.07-1.63q.1-.84.34-2.11l.01-.07q.22-1.27.43-2.1a5 5 0 0 1 .64-1.5 4.4 4.4 0 0 1 2.5-1.73 5 5 0 0 1 1.64-.07q.83.1 2.1.35l4.34.8q1.28.21 2.1.42a5 5 0 0 1 1.5.64 4.4 4.4 0 0 1 1.73 2.5q.18.78.07 1.64-.1.83-.34 2.1m-1.45-2.3c.05-.49.03-.77-.02-1a2.6 2.6 0 0 0-1.02-1.48 3 3 0 0 0-.93-.37c-.48-.13-1.1-.24-2-.4l-4.26-.79c-.9-.16-1.52-.27-2.01-.33a3 3 0 0 0-1 .03 2.6 2.6 0 0 0-1.48 1.02 3 3 0 0 0-.37.92c-.13.48-.24 1.1-.4 2s-.28 1.51-.33 2c-.06.5-.04.78.02 1 .15.6.51 1.13 1.02 1.48.19.13.45.25.92.37.48.13 1.1.25 2 .4l4.27.79c.9.16 1.52.28 2.01.33s.77.03 1-.02a2.6 2.6 0 0 0 1.47-1.03c.14-.19.25-.45.38-.92.12-.48.24-1.1.4-2s.28-1.51.33-2"></path><path d="M18.19 7.49a.9.9 0 0 1-1.05-.73c-.14-.8-.2-1.08-.28-1.3A2.6 2.6 0 0 0 14.5 3.8c-.22 0-.5.04-1.31.17l-5.85.96a8 8 0 0 0-2.17.5 2.6 2.6 0 0 0-1.33 1.75c-.08.38-.04.85.11 2.23l.01.1a.9.9 0 1 1-1.78.2l-.01-.1-.02-.17a9 9 0 0 1-.07-2.64 4.4 4.4 0 0 1 2.25-2.97c.63-.33 1.42-.46 2.56-.65l.16-.03 5.85-.96.1-.01c.67-.11 1.13-.19 1.55-.18a4.4 4.4 0 0 1 4 2.82c.14.39.23.85.35 1.53l.01.1a.9.9 0 0 1-.72 1.04"></path><path d="M12.72 12.41a.42.42 0 0 0-.69.23l-.72 4.18a.4.4 0 0 0 .03.23c.08.2.33.3.54.22l3.67-1.47a.4.4 0 0 0 .12-.68z"></path>',1);function Um(t){Je(t,{testId:"episodes-icon",children:(e,i)=>{var o=Ox();ai(2),$(e,o)},$$slots:{default:!0}})}var ap=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var Bx=L('<span class="text mobile s-22"> </span> <div class="chevron-episodes s-22" data-testid="btn-episodes_icon"><!></div>',1),Hx=L('<span class="text s-22"> </span>'),Fx=L('<span class="text count s-22"> </span>'),Ux=L('<span class="icon s-22"><!></span> <!>',1),zx={hash:"s-22",code:".icon.s-22{flex-shrink:0}.text.s-22{overflow:hidden;padding:0 8px;text-overflow:ellipsis;white-space:nowrap}.text.count.s-22{overflow:visible}.text.mobile.s-22{padding:0 3px 0 4px}.chevron-episodes.s-22{margin-bottom:-6px;opacity:.7;transform:scale(.8)}"};function gc(t,e){var J,Ce,pe;B(e,!0),Y(t,zx);let[i,o]=De(),r=()=>x(y,"$currentGridType$",i),a=()=>x(b,"$openedByKeyboard$",i),l=()=>x(w,"$panelOpened$",i),d=()=>x(I,"$isMobile",i),s=h(e,"position",3,0),u=h(e,"duration",3,0),f=h(e,"timeCodes",19,()=>[]),p=he(),v=(Ce=(J=p.callbacks)==null?void 0:J.onEpisodeChanged)!=null?Ce:yb.noop,_=!!((pe=p.callbacks)!=null&&pe.onEpisodeClicked),y=p.ui.currentGridType$,b=p.ui.episodes.openedByKeyboard$,w=p.ui.episodes.panelOpened$,I=p.ui.isMobile,T=p.ui.t,N=q(void 0),A=ee=>{var we,ve,ue;if(!!((we=p.callbacks)!=null&&we.onEpisodeClicked)){let Ge=la(ee);b.set(Ge),w.set(!0),(ue=(ve=p.callbacks)==null?void 0:ve.onEpisodeClicked)==null||ue.call(ve,Ge)}},E=q(null),k=m(()=>s()/u());Oe(()=>{var _e;let ee=ap(n(k),u(),f());ee?((_e=n(E))==null?void 0:_e.time)!==ee.time&&(v(ee),R(E,ee,!0)):R(E,null)});let Q=m(()=>{var ee;return((ee=n(E))==null?void 0:ee.text)||""}),F=m(()=>to(r(),"xl")?"FULL":to(r(),"m")?"COUNT":"SHORT"),z=m(()=>`${T("tooltip_episodes")}: ${n(Q)}`),X=async(ee,_e,we)=>{await mo(),(ee==null?void 0:ee.getAttribute("aria-expanded"))==="false"&&_e&&!we&&Et(()=>{b.set(!1),ee.focus()})};Oe(()=>{X(n(N),a(),l())});var se=Le(),Z=ce(se);{var oe=ee=>{let _e=m(()=>d()?"px-0":""),we=m(()=>!_);Wt(ee,{get className(){var ve;return`w-max btn-full-opacity btn-jc-l ${(ve=n(_e))!=null?ve:""}`},testId:"btn-episodes",click:A,get disabled(){return n(we)},get ariaExpanded(){return l()},get ariaLabel(){return n(z)},get ref(){return n(N)},set ref(ve){R(N,ve,!0)},children:(ve,ue)=>{var Ge=Le(),U=ce(Ge);{var O=K=>{var ae=Bx(),ye=ce(ae),He=C(ye,!0);S(ye);var ot=P(ye,2),re=C(ot);Mr(re,{direction:"right"}),S(ot),D(()=>me(He,n(Q))),$(K,ae)},Ye=K=>{var ae=Ux(),ye=ce(ae),He=C(ye);Um(He,{}),S(ye);var ot=P(ye,2);{var re=Re=>{var Ve=Hx(),tt=C(Ve,!0);S(Ve),D(()=>me(tt,n(Q))),$(Re,Ve)},de=(Re,Ve)=>{{var tt=Ee=>{var Te=Fx(),Fe=C(Te,!0);S(Te),D(()=>me(Fe,f().length)),$(Ee,Te)};V(Re,Ee=>{n(F)==="COUNT"&&Ee(tt)},Ve)}};V(ot,Re=>{n(F)==="FULL"?Re(re):Re(de,!1)})}$(K,ae)};V(U,K=>{d()?K(O):K(Ye,!1)})}$(ve,Ge)},$$slots:{default:!0}})};V(Z,ee=>{n(E)&&ee(oe)})}$(t,se),H(),o()}var cv=require("@vkontakte/videoplayer-shared/es2018");var gi=require("@vkontakte/videoplayer-core/es2018"),at=require("@vkontakte/videoplayer-shared/es2018"),_s=require("@vkontakte/videoplayer-statistics/es2018");var qe=require("@vkontakte/videoplayer-shared/es2018"),io=require("@vkontakte/videoplayer-shared/es2018"),Wx="//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 io.Subject,loadStarted$:new io.Subject,loadEnded$:new io.Subject,loadError$:new io.Subject,ready$:new io.Subject,slotRequested$:new io.Subject,started$:new io.Subject,timeRemained$:new io.Subject,paused$:new io.Subject,resumed$:new io.Subject,ended$:new io.Subject,empty$:new io.Subject,skipped$:new io.Subject,clicked$:new io.Subject,closed$:new io.Subject,error$:new io.Subject};this.loadAdman=e=>(qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[(0,qe.now)()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((i,o)=>{let r;this.events.loadStarted$.next();let a=()=>{clearTimeout(r),delete window.admanAsyncInit,window.AdmanHTML?(qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[(0,qe.now)()]}),i(),this.events.loadEnded$.next()):(qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[(0,qe.now)()]}),o())};(0,io.addScript)(Wx,e,this.loadTimeout).then(()=>{qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[(0,qe.now)()]}),window.AdmanHTML?(qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[(0,qe.now)()]}),i(),this.events.loadEnded$.next()):(qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[(0,qe.now)()]}),window.admanAsyncInit=a,r=window.setTimeout(a,this.initTimeout))}).catch(l=>{qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(l)],numbers:[(0,qe.now)()]}),o(),clearTimeout(r)})});this.loadAdmanNPM=e=>new Promise((i,o)=>{let r;this.events.loadStarted$.next();let a=()=>{clearTimeout(r),delete window.admanAsyncInit,window.AdmanHTML?(qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[(0,qe.now)()]}),i(),this.events.loadEnded$.next()):(qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[(0,qe.now)()]}),o())},l=()=>{d=!0,o()},d=!1,s=window.setTimeout(()=>{qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[(0,qe.now)()]}),l()},this.loadTimeout);e.addEventListener("abort",l),e.aborted&&(qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[(0,qe.now)()]}),l()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[(0,qe.now)()]}),!d&&(window.AdmanHTML?(qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[(0,qe.now)()]}),i(),this.events.loadEnded$.next()):(qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[(0,qe.now)()]}),window.admanAsyncInit=a,r=window.setTimeout(a,this.initTimeout)))},l).finally(()=>{clearTimeout(r),clearTimeout(s),e.removeEventListener("abort",l)})});this.onAdsReady=()=>{qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[(0,qe.now)()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{var o;qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[(0,qe.now)(),i.bannerID]}),this.adsState&&this.playerState&&this.actions?(this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(i)}`}),this.events.started$.next(e),i.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"})),this.adsState.duration.set(i.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(i.allowClose),this.adsState.secondsToWatchBeforeSkip.set(i.allowCloseDelay),this.startWatchDog(),(o=this.externalApi)!=null&&o.videoTrackAdEvent&&this.safeExternalCall(this.externalApi.videoTrackAdEvent,e,String(i.bannerID))):this.onAdError("Started callback failed: Adman is not initialized")};this.onAdTimeRemained=e=>{var o;((o=this.adsState)!=null&&o.playbackState?be(this.adsState.playbackState):void 0)!=="inactive"&&(this.adsState?(this.adsState.position.set(e.currentTime),this.events.timeRemained$.next(e),this.startWatchDog()):this.onAdError("TimeRemained callback failed: Adman state is not initialized"))};this.onAdPaused=()=>{var e;qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[(0,qe.now)()]}),this.stopWatchDog(),this.adsState?(this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")):this.onAdError("Paused callback failed: Adman state is not initialized")};this.onAdPlayed=()=>{var e;qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[(0,qe.now)()]}),this.startWatchDog(),this.adsState?(this.log({message:"ad played"}),this.adsState.playbackState.set("playing")):this.onAdError("Player callback failed: Adman is not initialized")};this.onAdMidrollPoint=()=>{if(qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[(0,qe.now)()]}),this.adman&&this.actions){this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch(e){this.onAdError("could not start midroll")}}else this.onAdError("Midroll callback failed: Adman is not initialized")};this.onAdSkipped=()=>{var e;qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[(0,qe.now)()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,qe.now)()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,qe.now)()]}),this.log({message:"ad completed"}),this.currentAdSection?(this.events.ended$.next(this.currentAdSection),this.currentAdSection==="postroll"&&this.setPostrollPassed(!0)):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{var e,i;qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[(0,qe.now)()]}),this.log({message:"ad clicked"}),(i=this.videoElement)==null||i.pause(),this.currentAdSection&&this.events.clicked$.next(this.currentAdSection),this.stopWatchDog()};this.onAdError=(e="ad error")=>{qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[(0,qe.now)()]}),this.log({message:e}),this.events.error$.next(e),this.currentAdSection==="postroll"&&this.setPostrollPassed(!0),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[(0,qe.now)()]}),this.loadTimeout=i.loadTimeout,this.initTimeout=i.initTimeout,this.runtimeTimeout=i.runtimeTimeout,this.useAdmanFromNPM=i.useAdmanFromNPM,this.volumeMultiplier=Math.max(0,Math.min(i.volumeMultiplier,1)),this.isVsidOriginal=i.isVsidOriginal}init(e,i,o){this.actions=e,this.adsState=i,this.playerState=o}onAdmanLoadingError(){this.onAdError("adman loading error")}async initAdman(e){var N,A;if(qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[(0,qe.now)(),e.slotId]}),this.adman)return;this.events.init$.next(e.slotId),this.startWatchDog();let{width:i,height:o,isAutoplay:r,adsContainer:a,adsVideoElement:l,slotId:d,params:s={},paramsOverride:u={},duration:f,externalApi:p}=e;this.externalApi=p;let v,_=this.playerState&&be(this.playerState.vsid);_&&(this.isVsidOriginal?v=_:v=parseInt(_,36));let{isEmbed:y,immediateOrigin:b}=(0,qe.detectEmbed)(),w=(N=y?b:window.location.href)!=null?N:window.location.href,I={...s,dl:encodeURIComponent(w),autoplay:r?1:0,player_width:i,player_height:o,...v?{request_id:v}:{},duration:f,...u};I=Object.fromEntries(Object.entries(I).filter(([E,k])=>(0,qe.isNonNullable)(k)));let T={slot:d,wrapper:a,videoEl:l,videoQuality:o,params:I,browser:{mobile:!1}};try{let E=new window.AdmanHTML;if(E.onReady(this.onAdsReady),E.onStarted(this.onAdStarted),E.onPlayed(this.onAdPlayed),E.onPaused(this.onAdPaused),E.adMidrollPoint(this.onAdMidrollPoint),E.onClosed(this.onAdClosed),E.onSkipped(this.onAdSkipped),E.onClicked(this.onAdClicked),E.onTimeRemained(this.onAdTimeRemained),E.onCompleted(this.onAdCompleted),E.onError(this.onAdError),E.setDebug(!1),(A=this.externalApi)!=null&&A.videoGetAds){let k=await this.safeExternalCall(this.externalApi.videoGetAds,I);k&&(delete T.slot,delete T.params,Object.assign(T,{json:k}))}E.init(T),this.adman=E,this.videoElement=l,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(T)}`})}catch(E){qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(E)],numbers:[(0,qe.now)()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,r,a;if(qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[(0,qe.now)()]}),this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}let i=this.currentAdSection==="postroll";if(this.actions){if(this.adsState&&this.playerState)this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.log({message:`switch to video, isPostroll: ${i}`});else{let l="Switch to video: Adman state was not updated correctly";this.log({message:l}),this.events.error$.next(l)}(a=(r=this.actions).switchFromAdsToVideo)==null||a.call(r,!i)}}setPostrollPassed(e){var i;(i=this.adsState)==null||i.postrollPassed.set(e),this.log({message:"postroll passed"})}togglePlay(){var e;if(qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[(0,qe.now)()]}),this.adsState){this.log({message:"toggle play"});let i=be(this.adsState.playbackState);i==="playing"?this.pause():i==="paused"&&this.play()}else this.onAdError("Can not toggle play: Adman state is not initialized")}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){let i=e*this.volumeMultiplier;if(this.log({message:`set volume ${i}`}),this.adman)try{this.adman.setVolume(i)}catch(o){this.onAdError("could not set ad volume")}this.videoElement&&(this.videoElement.volume=i)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch(i){this.onAdError("could not set ad fullscreen")}}startPreroll(){if(qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[(0,qe.now)()]}),this.adman){if(!this.isDestroyed){this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.startWatchDog();try{this.adman.start("preroll")}catch(e){this.onAdError("could not start preroll")}}}else this.onAdError("Can not start preroll: Adman is not initialized")}startPostroll(){var e;if(qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[(0,qe.now)()]}),this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch(i){this.onAdError("could not start postroll")}}else this.onAdError("Can not start postroll: Adman is not initialized")}startWatchDog(){this.watchDogTimeout&&this.stopWatchDog(),this.watchDogTimeout=window.setTimeout(()=>this.onAdError("Watchdog timeout"),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){var e;if(qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[(0,qe.now)()]}),this.adman){this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch(i){this.onAdError("could not resume ad")}}else this.onAdError("Can not play: Adman is not initialized")}pause(){var e;if(qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[(0,qe.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch(i){this.onAdError("could not pause ad")}}else this.onAdError("Can not pause: Adman is not initialized")}skip(){var e;if(qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[(0,qe.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch(i){this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}setPosition(e,i){var o;(o=this.adman)==null||o.setPosition(Math.floor(e),Math.floor(i))}destroy(){var e,i,o,r,a,l,d,s,u,f,p,v;qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[(0,qe.now)()]}),this.log({message:"destroy"}),this.stopWatchDog(),(e=this.adman)==null||e.onReady(void 0),(i=this.adman)==null||i.onStarted(void 0),(o=this.adman)==null||o.onPlayed(void 0),(r=this.adman)==null||r.onPaused(void 0),(a=this.adman)==null||a.adMidrollPoint(void 0),(l=this.adman)==null||l.onClosed(void 0),(d=this.adman)==null||d.onSkipped(void 0),(s=this.adman)==null||s.onClicked(void 0),(u=this.adman)==null||u.onTimeRemained(void 0),(f=this.adman)==null||f.onCompleted(void 0),(p=this.adman)==null||p.onError(void 0),(v=this.adman)==null||v.destroy(),this.videoElement&&(0,io.clearVideoElement)(this.videoElement),this.isDestroyed=!0}async safeExternalCall(e,...i){var o;try{return await e(...i)}catch(r){return this.onAdError((o=r==null?void 0:r.message)!=null?o:"External call failed"),null}}};var xb=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 zm=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:f,endTime:p}=u.parse(s);l.startTime=f,l.endTime=p}else if(s.trim()!==""){let u=new Wm,{texts:f}=u.parse(s);l.texts=[...l.texts,...f]}(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}},Wm=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},r=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](l){let d=0,s=[];for(;d<l.length;){let u=["<",">"].reduce((f,p)=>{let v=l.indexOf(p,d);return f===-1||f>v?v:f},-1);if(u===-1){s.push(l.substring(d));break}s.push(l.substring(d,u)),d=u+1}return s}}),a=new 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}},wb=zm;var up=require("@vkontakte/videoplayer-shared/es2018"),Xa,ki,Km=0,qm=!1,Sb="",Cb=(t,e=0,i=0)=>t<e&&t<i,cp=(t,e=0,i=0)=>t>=e&&t<=i,Kx=(t,e=0,i=0)=>t>e&&t>i,Tb=(t,e,i,o=!1)=>{var d;let r=(d=i.find(({id:s})=>s===e.value))==null?void 0:d.subtitles;if(o)return r==null?void 0:r.find(({startTime:u,endTime:f})=>cp(t,u,f));let a=t>=Km,l=t<Km;if(Km=t,l&&(qm=!1),(0,up.isNonNullable)(Xa)&&cp(t,Xa.startTime,Xa.endTime)&&Sb===e.value)return Xa;if(!(0,up.isNonNullable)(ki)&&(r!=null&&r.length)&&!qm){ki=r.find(({startTime:u,endTime:f})=>cp(t,u,f)||a&&Cb(t,u,f)),Xa=void 0,!(0,up.isNonNullable)(ki)&&r[r.length-1].endTime<t&&(qm=!0);return}else{if(cp(t,ki==null?void 0:ki.startTime,ki==null?void 0:ki.endTime))return Xa=ki,ki=void 0,Sb=e.value,Xa;(a&&Kx(t,ki==null?void 0:ki.startTime,ki==null?void 0:ki.endTime)||l&&Cb(t,ki==null?void 0:ki.startTime,ki==null?void 0:ki.endTime))&&(ki=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"},qx={abk:"as",ara:"ar",aze:"az",bak:"ba",bel:"be",ben:"bn",bos:"bs",bul:"bg",ces:"cs",chv:"cv",dan:"da",deu:"de",ell:"el",eng:"en",epo:"eo",est:"et",eus:"eu",fas:"fa",fin:"fi",fra:"fr",heb:"he",hin:"hi",hrv:"hr",hun:"hu",hye:"hy",ind:"id",ita:"it",jpn:"ja",kan:"kn",kat:"ka",kaz:"kk",kir:"ky",kor:"ko",lav:"lv",lit:"lt",mon:"mn",mya:"my",nep:"ne",nld:"nl",nor:"no",oss:"os",pan:"pa",pol:"pl",por:"pt",ron:"ro",rus:"ru",sin:"si",slk:"sk",slv:"sl",spa:"es",srp:"sr",swa:"sw",swe:"sv",tat:"tt",tgk:"tg",tgl:"tl",tha:"th",tuk:"tk",tur:"tr",ukr:"uk",urd:"ur",uzb:"uz",vie:"vi"},hc=t=>{var e,i;return(i=(e=pp[t])!=null?e:pp[qx[t]])!=null?i:void 0};var Ib=require("@vkontakte/videoplayer-shared/es2018"),mB=require("@vkontakte/videoplayer-statistics/es2018"),fp=class{constructor(e,i,o,r=new Ib.Subscription){this.oneStat=e;this.thinOneStat=i;this.mediascopePixel=o;this.statSubscription=r}destroy(){var e,i,o;(e=this.oneStat)==null||e.destroy(),(i=this.thinOneStat)==null||i.destroy(),(o=this.mediascopePixel)==null||o.destroy(),this.statSubscription.unsubscribe()}};var _c=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(_c||{});var hs=t=>t!=null?t:0,Bs=(t,e)=>{var r,a;let i=(r=t==null?void 0:t.getBoundingClientRect)==null?void 0:r.call(t),o=(a=e==null?void 0:e.getBoundingClientRect)==null?void 0:a.call(e);return{top:Math.round(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))}},Zl=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 Nn="off";var Jl=t=>!!(Math.round(Math.abs(t)/90)%2);var Eb=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:r,statAuthToken:a,isAudioDisabled:l,canDownload:d,callbacks:s,webApi:u,videoEpisodes:f,previewThumbsData:p,uiConfig:v,coreConfig:_,player:y,disabledControls:b,isInteractive:w,interactiveRanges$:I,isInteractiveTime$:T,replayInteractive:N,stopPlayer:A,hasInteractiveBranches:E,playPrevChapterDisabledTooltip:k,additionalButtons:Q,additionalSettingsMenuItems:F,additionalContextMenuItems:z,playPrevVideo:X,playNextVideo:se,onVideoChanged:Z,looped:oe=!1,statistics:J,saveRate:Ce,internalsExposure:pe,playerView:ee,playerId:_e,metaConfig:we})=>{var hg,_g;let ve={..._,isAudioDisabled:l,live:{...(hg=_.live)!=null?hg:{},isLiveCatchUpMode:!!r}},ue=v,Ge=at.TracerFactory.createRootTracer(ue.features.tracer),U=Ge.createComponentTracer("Store"),O=y||new gi.Player(ve,Ge,{playerId:_e,onDevNullLog:s==null?void 0:s.onDevNullLog});pe==null||pe.expose({corePlayer:O});let Ye=new at.Logger,K=new lp(Ye,{loadTimeout:ue.ads.loadTimeout,initTimeout:ue.ads.initTimeout,runtimeTimeout:ue.ads.runtimeTimeout,useAdmanFromNPM:ue.ads.useAdmanFromNPM,volumeMultiplier:ue.ads.volumeMultiplier,isVsidOriginal:ue.ads.isVsidOriginal}),ae=Fa.getInstance(),ye=u==null?void 0:u.pictureInPictureApi,He=u==null?void 0:u.annotationsApi,ot=u==null?void 0:u.slotsApi,re=u==null?void 0:u.focusManager,de=Ye.createComponentLog("Store"),Re,Ve,tt={},Ee=new Du,Te=new at.Subscription,Fe="",At=le(!1),kt=J&&J.oneStat?oi(J.oneStat.vsid$):Lr(void 0),Lt=le(ra()),lt=le(!1),Ct=()=>G_(document,gi.clientChecker.device.isIOS),Zt=(_g=ye==null?void 0:ye.info.isActive$)!=null?_g:new at.ValueSubject(!1),Ht=le(0),Ot=le(!1),Kt=le(!1),G=le([]),Pe=(0,at.merge)(O.events.fatalError$,O.events.managedError$).subscribe(c=>G.update(g=>[...g,c])),ke=Lr(!1,c=>{let g=O.events.fatalError$.subscribe(()=>c(!0));return()=>g.unsubscribe()}),xe=async c=>{var ie;let g=Object.values(at.InterfaceLanguage).includes(c);if(ue.downloadVKLanguages&&(g&&ue.updateBuiltinLanguages||!om(c))){let Se;try{Se=await(0,at.loadVKLangPack)(c,r_,s_)}catch(Xe){(ie=J==null?void 0:J.oneStat)==null||ie.logError({errorType:"VKLangPack",fatal:!1}),ae==null||ae.report(Xe,{errorType:"VKLangPack",fatal:!1})}Se&&(im({language:c,pack:Se,fallback:ue.defaultLanguage}),Be.set(c),$e.update(Xe=>Xe+1))}om(c)&&Be.set(c)},Be=le(t),$e=le(0),Tt=le(e);xe(t);let fe=(c,g)=>{let M=be(Be);return nm(M,c,g,ue.defaultLanguage)},Ne=le("thumb");Ne.subscribe(c=>{c==="ads"&&O.info.playbackState$.getValue()&&qt()});let Qe=(()=>{let c=mi([ke,Ne],([g,M])=>g?"crashed":M);return{...c,is:g=>be(c)===g}})(),rt=le(),qt=()=>{rt.set({muted:O.info.muted$.getValue()})},Nt=(()=>{let c=le(new Set(b));return{...c,add:g=>{c.update(M=>new Set([...M].concat(g)))},remove:g=>{c.update(M=>{let ie=[...M];return new Set(Array.isArray(g)?ie.filter(Se=>!g.includes(Se)):ie.filter(Se=>Se!==g))})},includes:g=>{let M=be(c);return Array.isArray(g)?g.every(ie=>M.has(ie)):M.has(g)}}})(),pi=le({width:0,height:0}),di=null,Ti=O.info.isBuffering$,no=Lr(Ti.getValue(),c=>{let g=Ti.subscribe(M=>{M&&di===null?di=window.setTimeout(()=>{c(Ti.getValue()),di=null},ue.loaderDelay):c(M)});return()=>{g.unsubscribe(),di&&clearTimeout(di)}});U.log("create store"),de({message:"create store"});let ci=c=>{let g=c.container,M=()=>{dt=new MutationObserver(Se=>{let{removedNodes:Xe}=Se[0];Xe.length&&g.append(O.experimental.element$.getValue())}),dt.observe(g,{childList:!0})},ie=O.experimental.element$.getValue();if(ie)g.append(ie),M();else{let Se=O.experimental.element$.pipe((0,at.filter)(Xe=>!!Xe),(0,at.once)()).subscribe(Xe=>{g.append(Xe),M()});Te.add(Se)}},bi=c=>{de({message:`init video, config: ${JSON.stringify(c)}`}),w?ci(c):(at.devNull.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[(0,at.now)()]}),O.initVideo(c)),U.log("init video",{isInteractive:w}),c.subtitles&&O.setExternalTextTracks(c.subtitles),Re=c,Fe=c.subtitlesForcedLanguage||""},xt=new at.Subject,ui=c=>xt.next(c),Yi=new at.Subject,pt=new at.Subject,Bt=new at.Subject,dt=null,We={actionRewind$:Yi,actionSeek$:pt,inPiP$:Zt,inFullscreen$:new at.Observable(c=>Lt.subscribe(g=>c.next(g))),actionSetSubtitle$:Bt,nextMovie$:xt},fi=new at.Subject,vo=new at.Subject,Zo={actionSeek$:pt,actionSubtitlesSwitched$:fi,actionQuality$:vo,playerSize$:new at.Observable(c=>pi.subscribe(g=>c.next(g))),inPiP$:Zt,inFullscreen$:new at.Observable(c=>Lt.subscribe(g=>c.next(g))),isLoaderVisible$:new at.Observable(c=>no.subscribe(g=>c.next(g)))};if(J){let{oneStat:c,thinOneStat:g,mediascopePixel:M,statSubscription:ie}=J;c&&(w||ie.add(c.attachTo(O)),ie.add(c.attachToUi(We)),ie.add(c.attachToAds(K.events)),c.authorize(a).catch(Se=>{de({message:`onestat auth error ${String(Se)}`})}),M&&M.attachTo(O)),g&&(ie.add(g.attachTo(O,K.events)),ie.add(g.attachToUi(Zo)),ie.add(g.attachToAds(K.events)),g.updateContext({isMobile:be(At)}),g.authorize(a))}if(ae){let c=new at.Subscription,g=(M,ie)=>c.add(M.subscribe(ie));if(g(O.events.managedError$,M=>{ae.logIError(M)}),g(O.events.fatalError$,M=>{ae.logIError(M,!0)}),J){let{oneStat:M}=J;M&&g(M.experimental.error$,ie=>{ae.logIError(ie)})}ae.sentrySubscription.add(c)}let Jo=()=>{if(gi.clientChecker.device.isIOS&&Ve)try{Y_(Ve)}catch(c){de({message:`exitIosSafariFullscreen failed: ${c}`})}};Te.add(O.experimental.element$.subscribe(c=>{c&&(Ve=c,c.classList.add("player-media"),za(ye)&&ye.updateVideoElement(),w&&c.setAttribute("pip","false"),(ee==="preview"||!ue.features.pip&&!ue.features.dpip)&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(O.events.ended$.subscribe(()=>{var c;Jo(),(c=s==null?void 0:s.onEnded)==null||c.call(s)})).add(O.events.looped$.subscribe(()=>{var c;(c=s==null?void 0:s.onLooped)==null||c.call(s)})).add(O.events.started$.subscribe(async()=>{var g,M;za(ye)&&await(ye==null?void 0:ye.revealPictureInPicture());let c=O.info.muted$.getValue();(g=s==null?void 0:s.onStarted)==null||g.call(s),(M=tt.onStarted)==null||M.call(tt,c)})).add(O.events.willSeek$.subscribe(({from:c,to:g})=>{var M;(M=s==null?void 0:s.onSeek)==null||M.call(s,c,g)})).add(O.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=s==null?void 0:s.onAutoplaySoundProhibited)==null||c.call(s)})).add(O.info.position$.subscribe(c=>{var M;let g=O.info.duration$.getValue();isFinite(g)&&g>0&&((M=s==null?void 0:s.onTimeupdate)==null||M.call(s,g,c),K.setPosition(c,g))})).add(O.events.fatalError$.subscribe(c=>{var g;(g=s==null?void 0:s.onCrashed)==null||g.call(s,c?`${c.id}: ${c.message}`:void 0)})).add(O.events.fetcherRecoverableError$.subscribe(c=>{var g;(g=s==null?void 0:s.onRecoverableError)==null||g.call(s,c?`${c.id}: ${c.message}`:void 0)})).add(O.events.loadedMetadata$.subscribe(()=>{Ot.set(!0)})).add(O.info.is3DVideo$.subscribe(c=>{Kt.set(c)})).add(O.info.isEnded$.subscribe(c=>{w&&(c?(T!=null&&T.getValue()&&Nt.add(qd),Nt.add("PLAY_BUTTON")):Nt.remove("PLAY_BUTTON"))})).add(O.info.liveTime$.subscribe(c=>{var g;(g=s==null?void 0:s.onLiveTime)==null||g.call(s,c)})).add(O.info.isStalled$.subscribe(c=>{var g;(g=s==null?void 0:s.onStalledChanged)==null||g.call(s,c)})).add(O.info.isLiveEnded$.subscribe(c=>{var g;return c&&((g=s==null?void 0:s.onLiveEnded)==null?void 0:g.call(s))})).add(K.events.loadStarted$.subscribe(()=>{var c,g;return(g=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onLoadStarted)==null?void 0:g.call(c)})).add(K.events.loadEnded$.subscribe(()=>{var c,g;return(g=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onLoadEnded)==null?void 0:g.call(c)})).add(K.events.loadError$.subscribe(()=>{var c,g;return(g=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onLoadError)==null?void 0:g.call(c)})).add(K.events.init$.subscribe(()=>{var c,g;return(g=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onInit)==null?void 0:g.call(c)})).add(K.events.ready$.subscribe(()=>{var c,g;return(g=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onReady)==null?void 0:g.call(c)})).add(K.events.started$.subscribe(c=>{var g,M;return(M=(g=s==null?void 0:s.adsInfo)==null?void 0:g.onStarted)==null?void 0:M.call(g,c)})).add(K.events.timeRemained$.subscribe(c=>{var g,M;return(M=(g=s==null?void 0:s.adsInfo)==null?void 0:g.onTimeRemained)==null?void 0:M.call(g,c)})).add(K.events.ended$.subscribe(c=>{var g,M;return(M=(g=s==null?void 0:s.adsInfo)==null?void 0:g.onCompleted)==null?void 0:M.call(g,c)})).add(K.events.empty$.subscribe(()=>{var c,g;return(g=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onEmpty)==null?void 0:g.call(c)})).add(K.events.clicked$.subscribe(c=>{var g,M;return(M=(g=s==null?void 0:s.adsInfo)==null?void 0:g.onClicked)==null?void 0:M.call(g,c)})).add(K.events.closed$.subscribe(c=>{var g,M;return(M=(g=s==null?void 0:s.adsInfo)==null?void 0:g.onClosed)==null?void 0:M.call(g,c)})).add(K.events.error$.subscribe(c=>{var g,M;return(M=(g=s==null?void 0:s.adsInfo)==null?void 0:g.onError)==null?void 0:M.call(g,c)})).add(K.events.paused$.subscribe(()=>{var c,g;return(g=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onPaused)==null?void 0:g.call(c)})).add(K.events.resumed$.subscribe(()=>{var c,g;return(g=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onResumed)==null?void 0:g.call(c)}));let St=new at.Subscription,Ft=()=>{var Xe,Pt,Ut;let{debugLog:c}=ue,g,M="#9df7b7",ie="#efd169";if(c&&c!==!0){let{colors:Gt}=c;g=c.tag,M=(Xe=Gt==null?void 0:Gt[0])!=null?Xe:M,ie=(Ut=(Pt=Gt==null?void 0:Gt[1])!=null?Pt:Gt==null?void 0:Gt[0])!=null?Ut:ie}let Se=g?`: ${g}`:"";St.add(O.events.log$.subscribe(Gt=>{console.debug(`%c sdk${Se} `,`background:${M};`,`sdk component: ${Gt.component}`,Gt.message)})).add(Ye.log$.subscribe(Gt=>{console.debug(`%c ui${Se} `,`background:${ie};`,`ui component: ${Gt.component}.`,Gt.message)}))},W=()=>{St.unsubscribe()},Mt=(c,g)=>{U.log("start camera manual rotation",{mx:c,my:g}),O.startCameraManualRotation(c,g)},ni=(c=!1)=>{U.log("stop camera manual rotation",{immediate:c}),O.stopCameraManualRotation(c)},gt=(c,g,M)=>{U.log("move camera focus px",{xpx:c,ypx:g,dt:M}),O.moveCameraFocusPX(c,g,M)},Jt=()=>{O.holdCamera()},_t=()=>{O.releaseCamera()},st=Lr(O.info.position$.getValue(),c=>{let g,M,ie=()=>{let Se=O.info.playbackState$.getValue(),Xe=O.info.isLive$.getValue(),Pt=O.info.duration$.getValue(),Ut=O.info.position$.getValue();if(Se&&[gi.PlaybackState.PLAYING,gi.PlaybackState.PAUSED].includes(Se)){let Gt=Xe?Ut-Pt:O.getExactTime();Gt!==M&&c(Gt),M=Gt}g=requestAnimationFrame(ie)};return ie(),()=>cancelAnimationFrame(g)}),Ni=oi(O.info.playbackState$),Pi=oi(O.info.isBuffering$),fn=mi([Ni,Pi],([c,g])=>g?"buffering":c),mn=oi(O.info.currentBuffer$),Ai=oi(O.info.isEnded$),Di=oi(O.info.isLive$),Dn=ue.features.playbackRate?oi(O.info.canChangePlaybackSpeed$):Lr(!1),bo=oi(O.info.liveBufferTime$),ro=oi(O.info.volume$),Ii=oi(O.info.muted$),No=Ou(O.info.predefinedQualityLimitType$.pipe((0,at.map)(c=>c===gi.PredefinedQualityLimits.TRAFFIC_SAVING)),O.info.predefinedQualityLimitType$.getValue()===gi.PredefinedQualityLimits.TRAFFIC_SAVING),Do=Ou(O.info.predefinedQualityLimitType$.pipe((0,at.map)(c=>c===gi.PredefinedQualityLimits.HIGH_QUALITY)),O.info.predefinedQualityLimitType$.getValue()===gi.PredefinedQualityLimits.HIGH_QUALITY),vn=oi(O.info.autoQualityLimitingAvailable$),Rr=oi(O.info.availableQualities$),Nr=oi(O.info.availableQualitiesFps$),Dr=oi(O.info.chromecastState$),$s=oi(O.info.chromecastDeviceName$),Or=oi(O.info.currentFormat$),er=oi(O.info.throughputEstimation$),Br=oi(O.info.videoBitrate$),gn=oi(O.info.intrinsicVideoSize$),hn=oi(O.info.duration$),mr=oi(O.info.isAudioAvailable$),vr=()=>{di&&clearTimeout(di),di=null},en=mi([hn,Di],([c,g])=>g?-c:c),gr=mi([Ni],([c])=>c===gi.PlaybackState.PLAYING),hr=oi(O.info.atLiveEdge$),tr=oi(O.info.atLiveDurationEdge$),On=oi(O.info.position$),as=mi([On,hn],([c,g])=>isFinite(c)&&isFinite(g)&&!!g),Oo=mi([Dr],([c])=>c===gi.ChromecastState.CONNECTED),_r=oi(O.info.availableVideoStreams$),Oi=ue.features.audioLanguages?oi(O.info.availableAudioStreams$):Lr([]),br=oi(O.info.currentVideoStream$),Bn=oi(O.info.currentAudioStream$),vt=c=>{c.language&&Zf(c.language),O.setVideoStream(c)},ei=(c,g)=>{O.setAudioStream(c),Bo(g)&&(c.language&&Zf(c.language),ue.features.userVideoPrefs&&i&&tm(ue.userSalt,String(i),{audioTrackId:c.id}))},$r=c=>{let g;if(c.length===1&&(g=c.at(0)),g!=null||(g=c.find(ie=>"isDefault"in ie&&ie.isDefault)),ue.features.userVideoPrefs&&i){let ie=zu(ue.userSalt,String(i));if(ie!=null&&ie.audioTrackId){let Se=c.find(Xe=>Xe.id===ie.audioTrackId);g=Se!=null?Se:g}}let M=M_();return M&&(g!=null||(g=c.find(({language:ie})=>M===ie))),g!=null||(g=c.at(0)),g},Hr=c=>{U.log("change audio stream",{id:c});let g=O.info.availableAudioStreams$.getValue().find(M=>M.id===c);g&&ei(g,!0)},Fr=!1;Te.add(O.info.availableAudioStreams$.subscribe(c=>{if(!Fr&&c.length){let g=$r(c);g&&(O.setAudioStream(g),Fr=!0)}})),Oi.subscribe(c=>{var g;(g=s==null?void 0:s.onAvailableAudioStreamsChanged)==null||g.call(s,c.map(({label:M="",id:ie="",language:Se=""})=>({label:M,language:Se,id:ie})))}),Bn.subscribe(c=>{var g;return c&&((g=s==null?void 0:s.onAudioStreamChanged)==null?void 0:g.call(s,c.id))});let Hn=!1;Te.add(O.info.availableVideoStreams$.subscribe(c=>{if(!Hn&&c.length){let g=$r(c);g&&(O.setVideoStream(g),Hn=!0)}}));let ir=le(void 0),$o=oi(O.info.isAutoQualityEnabled$,c=>c&&ir.set(void 0)),Fn=oi(O.info.currentQuality$,()=>ir.set(void 0)),or=mi([ir,Fn],([c,g])=>c!=null?c:g),Un=mi(Or,c=>c!==gi.VideoFormat.MPEG),_n=mi([Rr,Nr,$o,or,Un],([c,g,M,ie,Se])=>{let Xe=[];Se&&Xe.push({value:"auto",displayValue:fe("auto_quality_option"),selected:M});let Pt=c.filter(Ut=>!(0,at.isInvariantQuality)(Ut));for(let Ut of Pt){let Gt=g[Ut];Xe.push({value:Ut,displayValue:`${Ut}${Gt?xb(Gt):""}`,selected:M?!1:Ut===ie})}return Xe}),bn=oi(O.info.currentPlaybackRate$),$n=mi([bn,hr,tr],([c,g,M])=>{let ie=M||w?1:ue.controls.playbackRateMin,Se=g?1:ue.controls.playbackRateMax,Xe=ue.controls.playbackRateStep,Pt=[];for(let Ut=ie;Ut<=Se;Ut+=Xe)Pt.push({value:Ut,displayValue:Ut===1?fe("playback_rate_1"):fe("playback_rate",{multiplier:Ut.toString(10)}),selected:c===Ut});return Pt}),tn=()=>({displayValue:fe("subtitles_off"),value:Nn,language:""}),Bi=le(tn()),ji=mi([Bi,$e],([c],g)=>{c.value===Nn?g(tn()):g(c)}),on=ue.features.subtitles?oi(O.info.availableTextTracks$):Lr([]),nr=y_(),yr=mi([on,ji],([c,g],M)=>{var Xe;let ie=[],Se=c.find(({id:Pt})=>Pt===g.value);if(Se!=null&&Se.url){let[,Pt]=(Xe=nr.find(Se.url))!=null?Xe:[];if(Pt){M(Pt);return}Ee.download(Se.url).then(Ut=>{if(!Ut||Ee.isDestroyed())return;let Gt=new wb,Gs=Se.language;if(Gs){let I$=!!Se.isAuto,E$=Gt.parse(Ut,Gs);ie.push({lang:Gs,subtitles:E$,isAuto:I$,id:Se.id})}nr.add(Se.url,ie),be(ji).value===g.value&&M(ie)}).catch(Ut=>{var Gt;(Gt=J==null?void 0:J.oneStat)==null||Gt.logError({errorType:"Subtitles download",fatal:!1}),ae==null||ae.report(Ut,{errorType:"Subtitles download",fatal:!1})})}M(ie)}),yn=mi([bn,gr,ji],([c,g,M],ie)=>{let Pt;if(O.info.isLive$.getValue()&&g&&M.value!==Nn){let Gt=()=>{let Gs=1e3/(3*c);Pt=setTimeout(Gt,Gs),ie(Date.now())};return Gt(),()=>clearTimeout(Pt)}}),xr=mi([on,ji],([c,g])=>{if(!c.length)return[];let M=[];for(let{language:ie,isAuto:Se,id:Xe}of c){let Pt=ie&&hc(ie);ie&&Pt&&M.push({displayValue:Se?fe("subtitles_auto",{language:Pt}):Pt,value:Xe,selected:(g==null?void 0:g.value)===Xe,isAuto:Se,language:ie})}return M.length?(M.unshift({...tn(),selected:(g==null?void 0:g.value)===Nn}),M):[]}),ft={available:[],prev:[]},wt=()=>{var g,M;let c=O.experimental.getCurrentTime$.getValue();return(M=(g=c==null?void 0:c())!=null?g:Ve==null?void 0:Ve.currentTime)!=null?M:0},so=mi([st,ji,yr,yn],([c,g,M,ie])=>{var Xe;let Se=O.info.isLive$.getValue();if(Se&&ft.prev!==M){let Pt=M.find(({id:Gt})=>Gt===g.value),Ut=ft.prev.find(({id:Gt})=>Gt===g.value);if(Pt){let Gt={...Pt,subtitles:[...(Xe=Ut==null?void 0:Ut.subtitles)!=null?Xe:[],...Pt.subtitles]};ft.available=[Gt],ft.prev=M}}if(g&&g.value!==Nn){let Pt=Se?wt():c,Ut=Se?ft.available:M;return Tb(Pt,g,Ut,Se)}}),go=mi([so],([c])=>c!=null&&c.texts?c.texts:[]);Te.add(ji.subscribe(c=>{var g,M;if(c.value===Nn)(g=s==null?void 0:s.onSubtitleOff)==null||g.call(s);else{let ie=Object.entries(pp).find(([Se,Xe])=>Xe===c.displayValue);(M=s==null?void 0:s.onSubtitleOn)==null||M.call(s,ie?ie[0]:"",c.value)}}));let nn=le(!0),yo=mi([mn,en,On,bo],([c,g,M,ie])=>{var Ut;let Se=(Ut=c==null?void 0:c.end)!=null?Ut:0;if(!ie)return Se/g;let Pt=-M+ie-g;return(Se-Pt)/g}),xo=oi(O.info.availableSources$),Ei=mi([xo],([c])=>Object.keys((c==null?void 0:c[gi.VideoFormat.MPEG])||{}).length>0),wo=()=>{var M,ie,Se;let c=Object.keys(((ie=(M=O.info.availableSources$)==null?void 0:M.getValue())==null?void 0:ie[gi.VideoFormat.MPEG])||{}),g=(0,at.getHighestQuality)(c)||at.VideoQuality.Q_144P;return(Se=Re.sources[gi.VideoFormat.MPEG])==null?void 0:Se[g]},Ur=()=>{var g;let c=wo();if(c)U.log("download video",{url:c}),__(c,((g=Re==null?void 0:Re.meta)==null?void 0:g.title)||"video");else{let M="There is no URL for download video";U.log("download video",{message:M}),de({message:M})}},wr=()=>{de({message:"toggle muted"});let c=O.info.muted$.getValue();O.info.volume$.getValue()===0&&!c?zr(Sr(),!1):rn(!c,!1)},ys=()=>{var c;if(Qt.ui.settingsMenu.visible$.set(!1),!be(Qt.ui.settingsSubMenu.visible$)){let g=be(Qt.ui.settingsMenu.ref$);if((c=s==null?void 0:s.uiInfo)!=null&&c.onSettingsMenu&&g){let ie=Zl(g),Se={top:0,left:0,bottom:0,right:0};s.uiInfo.onSettingsMenu({visible:!1,size:ie,position:Se,name:"settings"})}}U.log("close settings menu")},Hi=async(c,g=()=>Promise.resolve())=>{var Se;Qt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),Qt.ui.settingsMenu.visible$.set(!0),await g();let M=be(Qt.ui.settingsMenu.ref$),ie=ya();if((Se=s==null?void 0:s.uiInfo)!=null&&Se.onSettingsMenu&&M&&ie){let Pt=Zl(M),Ut=Bs(M,ie);s.uiInfo.onSettingsMenu({visible:!0,size:Pt,position:Ut,name:"settings"})}U.log("open settings menu",{wasOpenedByKeyboard:c})},xs=(c,g=!1)=>{var Xe;Qt.ui.settingsSubMenu.visible$.set(!1);let M=be(Qt.ui.settingsMenu.ref$),ie=ya(),Se=be(Qt.ui.settingsMenu.visible$);if((Xe=s==null?void 0:s.uiInfo)!=null&&Xe.onSettingsMenu&&M&&ie)if(Se&&!g){let Ut=Zl(M),Gt=Bs(M,ie);s.uiInfo.onSettingsMenu({visible:!0,size:Ut,position:Gt,name:"settings"})}else{let Ut=Zl(c),Gt={top:0,left:0,bottom:0,right:0},Gs=be(Qt.ui.settingsSubMenu.name$);s.uiInfo.onSettingsMenu({visible:!1,size:Ut,position:Gt,name:Gs})}U.log("close settings sub menu")},ls=(c,g)=>{var ie;Qt.ui.settingsSubMenu.visible$.set(!0),Qt.ui.settingsSubMenu.ref$.set(g),Qt.ui.settingsSubMenu.name$.set(c);let M=ya();if((ie=s==null?void 0:s.uiInfo)!=null&&ie.onSettingsMenu&&g&&M){let Xe=Zl(g),Pt=Bs(g,M);s.uiInfo.onSettingsMenu({visible:!0,name:c,size:Xe,position:Pt})}U.log("open settings sub menu",{name:c})},Sr=()=>{var g;let c=Math.max(ue.volumeMinRestore,(g=Bu())!=null?g:0);return c===0?ue.volumeDefault:c},Bo=c=>{let g=ue.features.savePreferredStatesOnUserActionOnly;return!g||g&&!c},zr=(c,g)=>{let M=c===0?Sr():c,ie=O.info.muted$.getValue();de({message:`set volume, volume: ${c}, preferredVolume: ${M}`});let Se=!l||Qe.is("ads");ie&&c>0&&Se&&(ie=!1,Bo(g)&&jf(!1)),O.setVolume(c,ie),K.setVolume(c),Bo(g)&&qf(M)},rn=(c,g)=>{let M=O.info.volume$.getValue();de({message:`set muted, currentVolume: ${M}, mute: ${c}`});let ie=Qe.is("ads");if(O.setMuted(c,ie),K.setVolume(c?0:M),Bo(g)&&(!ie||!c)&&jf(c),!c&&M===0){let Se=Sr();O.setVolume(Se),Bo(g)&&qf(Se),K.setVolume(Se)}},sn=le(!1),Ue=c=>{var g,M;U.log("set looped",{isLooped:c}),sn.set(c),O.setLooped(c),(M=(g=s==null?void 0:s.uiInfo)==null?void 0:g.onLoopedChanged)==null||M.call(g,c)};Ue(oe);let It=()=>{var c,g;(g=(c=s==null?void 0:s.uiInfo)==null?void 0:c.onReportProblem)==null||g.call(c)},li=(c,g=!1)=>{var M;de({message:`set autoplayNextEnabled, value: ${c}`}),U.log("set autoplay next enabled",{autoplayNextEnabled:c}),Qt.ui.autoplayNextEnabled$.set(c),N_(c),g&&((M=s==null?void 0:s.onSetAutoplayNextEnabled)==null||M.call(s,c))},Ho=c=>{de({message:`set timerNextVideoRunning, value: ${c}`}),U.log("set timer next video running",{timerNextVideoRunning:c}),Qt.ui.timerNextVideoRunning$.set(c)},So=(c=!0)=>{var M;let g=!0;if(c&&(s!=null&&s.onPrevVideoClick))try{g=(M=s==null?void 0:s.onPrevVideoClick)==null?void 0:M.call(s)}catch(ie){de({message:"onPrevVideoClick callback failed to execute"})}Z(!0),g&&X()},Fo=(c=!0)=>{var M;let g=!0;if(c&&(s!=null&&s.onNextVideoClick))try{g=(M=s==null?void 0:s.onNextVideoClick)==null?void 0:M.call(s)}catch(ie){de({message:"onNextVideoClick callback failed to execute"})}Z(!1),g&&se()},Fi=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementShow)==null||c.call(s)},Co=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementClick)==null||c.call(s)},zn=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementAuto)==null||c.call(s)},Cr=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementCancel)==null||c.call(s)},To=()=>{O.prepare()},ao=()=>{(0,at.assertNonNullable)(Qt);let c=be(Qt.ui.controls.disabledControls$),g=be(Qt.playerPhase),M={playerPhase:g,isInteractive:w,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(de({message:"toggle play"}),g==="ads"){M.action="play",U.log("toggle adman play",M),K.togglePlay();return}let ie=()=>{var Xe;de({message:"toggle play, call player.play"}),M.action="play",O.play(),(Xe=s==null?void 0:s.onPlay)==null||Xe.call(s)},Se=()=>{var Xe;de({message:"toggle play, call player.pause"}),M.action="pause",O.pause(),(Xe=s==null?void 0:s.onPause)==null||Xe.call(s)};if(O.info.isEnded$.getValue()){if(de({message:"toggle play, video ended, seek to 0"}),Yi.next(),pt.next(_s.SeekAction.REWIND),w){N==null||N();return}O.seekTime(0),ie()}else O.info.playbackState$.getValue()!==gi.PlaybackState.PLAYING?ie():Se();U.log("toggle play",M)},xn=(c,{changeReason:g="default",appliesTo:M="to-video",byUser:ie=!1}={},Se)=>{de({message:`set quality, quality: ${c}`}),U.log("set quality",{quality:c}),ie&&vo.next(c),O.setAutoQuality(c==="auto");let{qualityDetailsSubMenuEnabled:Xe}=ue.features;Hu(),c!=="auto"?(Xe?(Fu({type:"exact_quality",quality:c,videoId:i},M),O.setPredefinedQualityLimits(gi.PredefinedQualityLimits.UNKNOWN)):Qf(i,c),ir.set(c),O.setQuality(c)):Xe&&g==="default"&&(Kr("auto_quality",M,Se),be(No)&&Uo(!1,void 0,Se),be(Do)&&Wn(!1,void 0,Se))},Uo=(c,g="as-default",M)=>{de({message:`set trafficSavingEnabled, value: ${c}`}),U.log("set traffic saving enabled",{trafficSavingEnabled:c});let ie=c?gi.PredefinedQualityLimits.TRAFFIC_SAVING:gi.PredefinedQualityLimits.UNKNOWN;ue.features.qualityDetailsSubMenuEnabled?(Wr(ie,g,M),Yd(!1)):(O.setPredefinedQualityLimits(ie),Bo(M)&&Yd(c))},Wn=(c,g="as-default",M)=>{de({message:`set highQualityEnabled, value: ${c}`}),U.log("set high quality enabled",{highQualityEnabled:c}),Wr(c?gi.PredefinedQualityLimits.HIGH_QUALITY:gi.PredefinedQualityLimits.UNKNOWN,g,M)},Wr=(c,g,M)=>{c!==gi.PredefinedQualityLimits.UNKNOWN&&(be(vn)&&!be($o)&&xn("auto",{appliesTo:g,changeReason:"limit-changed"},M),Kr(c,g,M)),O.setPredefinedQualityLimits(c)},Kr=(c,g,M)=>{Bo(M)&&(Fu({type:c,videoId:i},g),g==="as-default"&&Fu({type:c,videoId:i},"to-video"))},Kn=(c,g=!0)=>{U.log("set playback rate",{playbackRate:c}),O.setPlaybackRate(c),ue.features.saveRate&&Ce&&!O.info.isLive$.getValue()&&g&&V_(c)},et=()=>{let c=be(Dn),g=be($n),M=g.findIndex(({selected:Se})=>Se);if(M===g.length-1||!c)return g[M];let ie=g[M+1];return Kn(ie.value),ie},Xt=()=>{let c=be(Dn),g=be($n),M=g.findIndex(({selected:Se})=>Se);if(M===0||!c)return g[M];let ie=g[M-1];return Kn(ie.value),ie},yi=(c={...tn(),selected:!1},g)=>{U.log("set subtitles",{...c}),c.value!==Nn&&Bt.next(c.isAuto?c.value+"_auto":c.value),fi.next({enabled:c.value!==Nn,lang:c.language,auto:!!c.isAuto}),Bi.set(c),Bo(g)&&(em(c.value===Nn?void 0:c.language),ue.features.userVideoPrefs&&i&&tm(ue.userSalt,String(i),{subtitleTrackId:c.value===Nn?void 0:c.value}))},Io=c=>{U.log("toggle subtitles");let g=be(ji);(g==null?void 0:g.value)===Nn?qn(c):zo(c)},wn=(c,g)=>{U.log("change subtitle",{enabled:c}),c?qn(!0,g):zo(!0)},qn=(c,g)=>{U.log("subtitle on");let M=be(xr),ie=be(Be),Se=Fe!=null?Fe:ie,Xe;g&&(Xe=M.find(Pt=>Pt.value===g)),Xe!=null||(Xe=M.filter(Pt=>Pt.value!==Nn).find(Pt=>Pt.language===Se)),yi(Xe!=null?Xe:M[1],c)},zo=c=>{U.log("subtitle off"),yi(void 0,c)};Te.add(O.info.availableTextTracks$.subscribe(c=>{var M;function g(){let ie=[];for(let{language:Se,isAuto:Xe,id:Pt}of c){let Ut=Se&&hc(Se);Se&&Ut&&ie.push({id:Pt,language:Se,title:Xe?fe("subtitles_auto",{language:Ut}):Ut})}return ie}(M=s==null?void 0:s.onAvailableSubtitlesChanged)==null||M.call(s,g())}));let rr=le(!0),ds=c=>{rr.set(c)},Tr=(c,g,M=!0)=>{var ie;if(de({message:`seek to time, time: ${c}`}),U.log("seek to time",{time:c,action:g,forcePrecise:M}),pt.next(g),O.info.isLive$.getValue()){let Se=O.info.duration$.getValue(),Xe=Math.min(0,Se+c);O.seekTime(Xe,M)}else{if(T!=null&&T.getValue())return;O.info.isEnded$.getValue()&&(de({message:"seek after ended, call callbacks.onPlay"}),(ie=s==null?void 0:s.onPlay)==null||ie.call(s)),O.seekTime(an(c),M)}},ws=c=>{de({message:`seek to episode start time: ${c}`}),U.log("seek to episode start time",{time:c}),Tr(c,_s.SeekAction.EPISODE,!0)},Ws=(c,g,M=!1)=>{de({message:`seek to percent, percent: ${c}`}),U.log("seek to percent",{percent:c,action:g});let ie=be(en)*c;Tr(ie,g,M)},va=c=>{de({message:`seek external, time: ${c}`}),U.log("seek external",{time:c}),pt.next(_s.SeekAction.UNKNOWN),O.seekTime(O.info.isLive$.getValue()?-c:c)},ct=c=>{var ie,Se;let g=(ie=c.max)!=null?ie:"none",M=(Se=c.min)!=null?Se:"none";de({message:`set auto quality limitation. Max: ${g}. Min: ${M}`}),U.log("set auto quality limits",{max:g,min:M}),O.setAutoQualityLimits(c)},ri=c=>{de({message:`seek external to episode start time: ${c}`}),U.log("seek external to episode start time",{time:c}),Tr(c,_s.SeekAction.EPISODE,!0)},Eo=c=>{de({message:`set playback rate to: ${c}`}),U.log("set playback rate external",{playbackRate:c}),O.setPlaybackRate(c)},xi=le(!1),Sn=le(!1),Cn=mi([en],([c])=>!!p&&c>=ue.suitableDurationForUsingRichSeek&&ue.features.useRichSeek&&!w),Ss=((p==null?void 0:p.frameWidth)||0)>=((p==null?void 0:p.frameHeight)||0),Cs=mi([Ht],([c])=>{let g=Jl(c);return Ss?!g:g});Te.add(Qe.subscribe(c=>{c!=="video"&&xi.set(!1)})),xi.subscribe(c=>{var g;(g=s==null?void 0:s.onRichSeekActiveChanged)==null||g.call(s,c)});let Ui=le(void 0),Ci=le(!1),ge=c=>{de({message:`start scrubbing, progress: ${c}`}),U.log("start scrubbing",{progress:c}),Ci.set(!0),bt(c)},bt=c=>{Ui.set(c)},ti,jt,ko=()=>{Ui.set(void 0),Ci.set(!1)},lo=()=>{clearTimeout(jt),clearTimeout(ti),ti=window.setTimeout(()=>{ko()},500),Ve==null||Ve.removeEventListener("seeked",lo)},Wo=(c,g=!1)=>{de({message:`complete scrubbing, progress: ${c}`}),U.log("complete scrubbing",{progress:c}),Ws(c,_s.SeekAction.SLIDER,g),be(Qt.ui.isMobile)&&be(Qt.state.currentFormat$)===gi.VideoFormat.HLS?(Ve==null||Ve.addEventListener("seeked",lo),jt=window.setTimeout(()=>{lo()},300)):ko()},Ts=mi([st,en,Ui],([c,g,M],ie)=>{ie((0,at.isNonNullable)(M)?M*g:c)}),qr=le(!1),Ir=()=>{qr.set(!0)},ga=()=>{qr.set(!1)},Ks=mi([pi],([{width:c}],g)=>{let M=gb(c);g(M)}),ha=Q.filter(c=>b_(c)),Qr=mi([Ks,At],([c,g])=>g?ha.filter(M=>!M.hideOnMobile):ha.filter(M=>{var ie;return!((ie=M.hideOnDesktopGridTypes)!=null&&ie.includes(c))})),Tn=le(Q.filter(c=>$_(c))),pl=mi([Tn,Ks],([c,g])=>c.filter(M=>{var ie;return!((ie=M.hideOnDesktopGridTypes)!=null&&ie.includes(g))})),_a=mi([pl,Qr],([c,g])=>[...ue.features.additionalButtonsDesktopControlPanelRight?c.filter(M=>M.type==="desktop-control-panel-right"):[],...ue.features.additionalButtons?g.map((M,ie)=>{var Se;return{id:ie,weight:ie,type:"desktop-control-panel-right",testId:M.testId,icon:M.iconUrl,onClick:M.onClick,ariaLabel:(Se=M.ariaLabel)!=null?Se:M.tooltip,tooltipText:M.tooltip}}):[]].filter(M=>!v.disabledAdditionalButtonIds.includes(M.id))),Gr=le(F),fl=mi([Gr],([c])=>ue.features.additionalSettingsMenuItems?c.map(g=>g.type==="SWITCH"?{...g,onClick:g.onChangeEnabled}:g):[]),md=(c,g)=>{let M=be(Tn).map(ie=>ie.id!==c?ie:{...ie,...g});Tn.set(M)},ba=c=>{let g=be(Tn);if(g.some(M=>M.id===c.id)){de({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}g.push(c),Tn.set(g)},vd=c=>{let g=be(Tn);if(!g.some(M=>M.id===c)){de({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}g=g.filter(M=>M.id!==c),Tn.set(g)},ml=c=>{pt.next(_s.SeekAction.LIVE),de({message:"live switch to low latency "+c}),U.log("live switch to low latency "+c),O.setLiveLowLatency(c)},vl=(c,g)=>{let M=be(Gr).map(ie=>ie.id!==c?ie:{...ie,...g});Gr.set(M)},$a=c=>{let g=be(Gr);if(g.some(M=>M.id===c.id)){de({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}g.push(c),Gr.set(g)},mt=c=>{let g=be(Gr);if(!g.some(M=>M.id===c)){de({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}g=g.filter(M=>M.id!==c),Gr.set(g)},nt=le(z),Xi=mi([nt],([c])=>ue.features.additionalContextMenuItems?c:[]),Po=(c,g)=>{let M=be(nt).map(ie=>ie.id!==c?ie:{...ie,...g});nt.set(M)},Zi=c=>{let g=be(nt);if(g.some(M=>M.id===c.id)){de({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}g.push(c),nt.set(g)},hi=c=>{let g=be(nt);if(!g.some(M=>M.id===c)){de({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}g=g.filter(M=>M.id!==c),nt.set(g)},zi=mi([At,ke],([c,g],M)=>{M(c&&g)}),qs=()=>{pt.next(_s.SeekAction.LIVE),de({message:"switch to active live"}),U.log("switch to active live"),O.seekTime(0),O.info.playbackState$.getValue()!==gi.PlaybackState.PLAYING&&Qt.actions.internal.togglePlay()},gd=()=>{U.log("skip adman"),K.skip()},Yc=(c=!0)=>{var ie;(0,at.assertNonNullable)(Qt),de({message:`switch from ads to video, callPlay: ${c}`}),U.log("switch from ads to video",{callPlay:c}),Ne.set("video"),c&&O.play(),l&&rn(!0,!0);let g=(ie=be(rt))==null?void 0:ie.muted,M=!O.info.muted$.getValue();g!==void 0&&!M&&rn(g,!0),rt.set(void 0)},Hp=()=>{(0,at.assertNonNullable)(Qt),de({message:"switch from video to ads"}),U.log("switch from video to ads"),Qt.actions.internal.pause(),Jo(),Ne.set("ads")},jc=c=>{(0,at.assertNonNullable)(Qt);let g=c?"LiveWaitingStart":"thumb";U.log("set live waiting start",{state:c,playerPhase:g}),Ne.set(g)},Fp=c=>{(0,at.assertNonNullable)(Qt);let g=c?"LiveWaitingRecover":"thumb";U.log("set live waiting recover",{state:c,playerPhase:g}),Ne.set(g)},Xc=c=>{(0,at.assertNonNullable)(Qt);let g=c?"LiveWaitingRecord":"thumb";U.log("set live waiting record",{state:c,playerPhase:g}),Ne.set(g)},Up=()=>((0,at.assertNonNullable)(Qt),U.log("get debug text data"),g_(O,Re,Qt,Ge.getTraceId(),we)),Zc=()=>((0,at.assertNonNullable)(Qt),JSON.stringify(Ge.getFinishedSpans())),zp=()=>((0,at.assertNonNullable)(Qt),h_(O,Re,Qt)),ya=()=>Ve,Jc=()=>{de({message:"toggle chromecast"}),U.log("toggle chromecast"),O.toggleChromecast()},Qs=c=>{var M;if((0,at.assertNonNullable)(Qt),O.info.isEnded$.getValue())return;let g=!c;if(be(Qt.playerPhase)==="ads"){de({message:`pause ads, internalCall: ${g}`}),U.log("pause ads",{internalCall:g}),K.pause();return}de({message:`pause video, internalCall: ${g}`}),U.log("pause video",{internalCall:g}),g&&((M=s==null?void 0:s.onPause)==null||M.call(s)),O.pause()},gl=c=>{var M;(0,at.assertNonNullable)(Qt);let g=!c;if(be(Qt.playerPhase)==="ads"){de({message:`play ads, internalCall: ${g}`}),U.log("play ads",{internalCall:g}),K.play();return}de({message:`play video, internalCall: ${g}`}),U.log("play video",{internalCall:g}),g&&((M=s==null?void 0:s.onPlay)==null||M.call(s)),O.play()},eu=c=>{(0,at.assertNonNullable)(Qt);let g=!c;if(be(Qt.playerPhase)==="ads"){de({message:"player cannot be stopped during ads via external method"});return}de({message:`player will be stopped, internalCall: ${g}`}),A==null||A()},tu=(c,g)=>{(0,at.assertNonNullable)(Qt),de({message:`first start, show ads: ${c}, internalCall: ${!g}`}),U.log("first start",{showAds:c,external:g}),c?Ne.set("ads"):(Ne.set("video"),g?O.play():Qt.actions.internal.togglePlay())},hl=()=>(de({message:"getting time codes"}),f),iu=()=>{let c=hl();if(!c||[0,1].includes(c.length))return;let g=O.info.position$.getValue();return c.find(M=>M.time>g)},ou=c=>{let g=c;g||(g=iu());let M=O.info.position$.getValue();U.log("seek to next episode",{currentTime:M,...g}),g&&(de({message:"seek to next episode"}),Tr(g.time,_s.SeekAction.EPISODE,!0))},nu=()=>{let c=hl();if(!c||[0,1].includes(c.length))return;let g=O.info.position$.getValue(),M=c.findIndex(Se=>Se.time>g),ie=M===-1?c.length-2:M-2;if(!(ie<0))return c[ie]},Wp=c=>{let g=c;g||(g=nu());let M=O.info.position$.getValue();U.log("seek to prev episode",{currentTime:M,...g}),g&&(de({message:"seek to prev episode"}),Tr(g.time,_s.SeekAction.EPISODE,!0))},Kp=()=>(de({message:"getting preview thumbs data"}),U.log("get preview thumbs data",{...p}),p),ze=async()=>{let c=ye==null?void 0:ye.isActive(),g="none";ye!=null&&ye.isActive()?(g="exit",await(ye==null?void 0:ye.exit())):(g="request",await(ye==null?void 0:ye.request())),U.log("toggle picture in picture",{isActive:c,action:g})},_i=(c=-90)=>{U.log("rotate video",{alphaDiff:c}),Ht.update(g=>g+c)},co=le([]);I==null||I.subscribe(c=>{let g=[];for(let M=0;M<c.length;M++){let{range:[ie,Se],subjects:Xe}=c[M];M===0&&ie!==0&&g.push({time:0,text:"",interactive:!1,completed:!0}),g.push({time:ie/1e3,text:"",interactive:!0,completed:ue.features.interactiveTimeOpenUri?!Xe.length||Xe.every(Pt=>Pt.isRemoved):!Xe.length}),Se!==1/0&&g.push({time:Se/1e3,text:"",interactive:!1,completed:!0})}co.set(g)});let Er=le(!1);T==null||T.subscribe(c=>{c&&be(Ci)&&ko()});let an=c=>{if(!w)return c;let g=be(co),M=be(en),Se=be(On)/M,Xe=g.find(Pt=>Pt.interactive&&!Pt.completed&&Pt.time>Se);return typeof(Xe==null?void 0:Xe.time)=="number"?Math.min(c,Xe.time-.05):c},$$=()=>{Qt.ui.episodes.panelOpened$.set(!1)},y$=()=>{U.log("destroy store"),clearTimeout(jt),clearTimeout(ti),Te.unsubscribe(),St.unsubscribe(),O.destroy(),K.destroy(),J==null||J.destroy(),ae==null||ae.destroy(),Pe.unsubscribe(),dt==null||dt.disconnect(),dt=null,Ee.destroy()},x$=mi([hr,Qe,Dn],([c,g,M])=>v.features.doubleForwardAvailable&&!c&&g==="video"&&M),qp=le(!1),vg=2,ru=null,gg=c=>{if(!be(gr)&&c)return;let g=O.info.currentPlaybackRate$.getValue();c?g!==vg&&(ru=g,Kn(vg,!1),qp.set(!0)):(ru&&Kn(ru,!1),qp.set(!1),ru=null)};Qe.subscribe(c=>{c!=="video"&&gg(!1)});let w$=()=>{Qs(!1),xi.set(!0)},S$=()=>{gl(!1),xi.set(!1)},Qp=!1,C$=()=>{Sn.set(!0),Qp=O.info.playbackState$.getValue()===gi.PlaybackState.PLAYING,Qs(!1)},T$=()=>{Sn.set(!1),!be(xi)&&Qp&&gl(!1),Qp=!1};O.events.playing$.subscribe(()=>{be(xi)&&Qs(!1)});let Qt={interfaceLanguage$:Be,isCyrillicRelatedInterface$:Tt,initVideo:bi,videoId:i,isClip:o,playerPhase:Qe,vsid:kt,state:{positionExact$:st,positionWithScrubbing$:Ts,duration$:en,playbackState$:Ni,playbackStateRealistic$:fn,isPlaying$:gr,isLoaderVisible:no,bufferedProgress$:yo,isLive$:Di,canChangePlaybackSpeed$:Dn,isActiveLive$:hr,isOldestAvailableLive$:tr,isRewindableLive$:as,isEnded$:Ai,muted$:Ii,volume$:ro,trafficSavingEnabled$:No,highQualityEnabled$:Do,autoQualityLimitingAvailable$:vn,availableVideoStreams$:_r,availableAudioStreams$:Oi,videoStream$:br,audioStream$:Bn,currentQuality$:or,isAutoQualityEnabled$:$o,availableQualities$:_n,currentPlaybackRate$:bn,availablePlaybackRates$:$n,currentSubtitle$:ji,availableTextTracks$:on,availableSubtitlesList$:xr,currentSubtitleCaptions$:go,isAutoSubtitleCaptionVisible$:nn,chromecastState$:Dr,chromecastDeviceName$:$s,chromecastConnected$:Oo,currentFormat$:Or,throughputEstimation$:er,videoBitrate$:Br,videoSize$:gn,errorLog$:G,crashed$:ke,isAudioAvailable$:mr,isAudioDisabled:!!l,canDownload:ue.features.download&&!!d,availableSources$:xo,hasMpegSources$:Ei,isInteractive:w,showInteractiveGraph:ue.features.interactiveGraph,showSeekToInteractive:ue.features.seekToInteractive,showPlayPrevChapter:ue.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:ue.features.interactiveTimeIndicator&&!!be(co).length,interactiveEpisodes$:co,isInteractiveTime$:T?oi(T):le(!1),isInteractiveExpectation$:Er,hasInteractiveBranches:E,playPrevChapterDisabledTooltip:k,looped$:sn,loadedMetadata$:Ot,isAutoQualityAvailable$:Un,previewTrackActive:xi,previewTrackDragInProgress:Sn},ui:{t:fe,controlsVisible:le(!1),touched:le(!1),controls:{prevButton:le(void 0),playButton:le(void 0),replayButton:le(void 0),nextButton:le(void 0),playPrevChapterButton:le(void 0),seekToInteractiveButton:le(void 0),interactiveGraphButton:le(void 0),liveButton:le(void 0),time:le(void 0),episodes:le(void 0),volume:le(void 0),subtitles:le(void 0),settings:le(void 0),context:le(void 0),chromecast:le(void 0),pip:le(void 0),fullscreen:le(void 0),vkLogo:le(void 0),interactiveTimeIndicator:le(void 0),timeline:le(void 0),autoplayNextToggle:le(void 0),additionalButtons:Q.length?Q.reduce(c=>[...c,le(void 0)],[]):[],disabledControls$:Nt},modals:{hotKeyMap:{show:le(!1),data:le({title:"",closeBtnText:"",groups:[]})}},isFullscreen:Lt,isFullscreenOpenedByKeyboard:lt,rotateAlpha:Ht,isAutoplay:le(!1),debugPanelVisible:le(!1),episodes:{panelOpened$:le(!1),openedByKeyboard$:le(!1)},contextMenu:{visible$:le(!1),btnRef$:le(void 0),openedByBtnKeyboard$:le(!1),openedByHotKey$:le(!1),lastActiveElem$:le(void 0),showContextMenuBtn$:le(!1),position$:le({top:0,left:0})},playerSize:pi,isMobile:At,mobileNotReportControlHidden$:zi,icon3DVideoVisible:le(!1),scrubbingInProgress:Ci,volumeChangingInProgress:qr,is3DVideo:Kt,currentGridType$:Ks,additionalButtonsDeprecated$:Qr,additionalDesktopControlPanelRightButtons$:_a,additionalSettingsMenuItems$:fl,additionalContextMenuItems$:Xi,interactiveHideMobileControls:le(!1),overlayContainer$:le(void 0),startedByKeyboard$:le(!1),autoplayNextEnabled$:le(!1),timerNextVideoRunning$:le(!0),settingsMenu:{visible$:le(!1),ref$:le(void 0),openedByBtnKeyboard$:le(!1)},settingsSubMenu:{visible$:le(!1),ref$:le(void 0),name$:le(void 0)},userActionsDisabled:le(!1),hiddenControls:{volume:le(!1),vkLogo:le(!1),pip:le(!1),chromecast:le(!1),settings:le(!1)},isControlsAvailable:rr,controlBlocks:{topLeft:le(void 0),topRight:le(void 0),middle:le(void 0),bottom:le(void 0),bottomLeft:le(void 0),bottomRight:le(void 0)},videoTitleInfo:le(void 0),doubleForwardOn$:qp,doubleForwardAvailable$:x$,previewTrackNotificationVisible:le(!1),previewTrackActive:xi,previewTrackDragInProgress:Sn,previewTrackAvailable:Cn,isPreviewTrackHorizontallyAligned:Cs},ads:{position:le(0),duration:le(0),playbackState:le("inactive"),canSkip:le(!1),secondsToWatchBeforeSkip:le(0),postrollPassed:le(!1)},webApi:{pictureInPictureApi:ye,annotationsApi:He,slotsApi:ot,focusManager:re},actions:{internal:{preload:To,firstStart:c=>tu(c,!1),play:()=>gl(!1),pause:()=>Qs(!1),togglePlay:ao,toggleMuted:wr,openSettingsMenu:Hi,closeSettingsMenu:ys,openSettingsSubMenu:ls,closeSettingsSubMenu:xs,setVolume:c=>zr(c,!1),setMuted:c=>rn(c,!1),startVolumeChanging:Ir,stopVolumeChanging:ga,setVideoStream:vt,setAudioStream:c=>ei(c,!1),setQuality:(c,g)=>xn(c,g,!1),setTrafficSavingEnabled:(c,g)=>Uo(c,g,!1),setHighQualityEnabled:(c,g)=>Wn(c,g,!1),setPlaybackRate:Kn,incrementPlaybackRate:et,decrementPlaybackRate:Xt,setSubtitle:c=>yi(c,!1),toggleSubtitle:()=>Io(!1),togglePictureInPicture:ze,startScrubbing:ge,progressScrubbing:bt,completeScrubbing:Wo,toggleChromecast:Jc,switchToActiveLive:qs,switchFromAdsToVideo:Yc,switchFromVideoToAds:Hp,skipAd:gd,setLiveWaitingStart:jc,setLiveWaitingRecover:Fp,setLiveWaitingRecord:Xc,getDebugTextData:Up,getTraceTextData:Zc,getDebugPanelData:zp,getVideoElement:ya,seekTime:(c,g,M)=>Tr(c,g,M),clearDelayedBufferingCheckTimeout:vr,seekEpisodeStartTime:ws,seekToPercent:Ws,getNextEpisode:iu,seekToNextEpisode:ou,getPrevEpisode:nu,seekToPrevEpisode:Wp,startLogging:Ft,stopLogging:W,startCameraManualRotation:Mt,stopCameraManualRotation:ni,moveCameraFocusPX:gt,holdCamera:Jt,releaseCamera:_t,getVideoEpisodes:hl,getPreviewThumbsData:Kp,downloadVideo:Ur,addLanguage:im,setLanguage:xe,nextMovie:ui,videoRotate:_i,correctSeekTimeToInteractive:an,replayInteractive:N,setLooped:Ue,reportProblem:It,setAutoplayNextEnabled:li,setTimerNextVideoRunning:Ho,prevVideoClick:So,nextVideoClick:Fo,nextVideoAnnouncementShow:Fi,nextVideoAnnouncementClick:Co,nextVideoAnnouncementAuto:zn,nextVideoAnnouncementCancel:Cr,checkFullscreenSupport:Ct,changeDoubleForwardOn:gg,closePreviewTrack:S$,previewTrackOpened:w$,previewTrackDragStarted:C$,previewTrackDragFinished:T$},external:{firstStart:c=>tu(c,!0),play:()=>gl(!0),pause:()=>Qs(!0),stop:()=>eu(!0),seekTime:c=>va(c),seekEpisodeStartTime:c=>ri(c),setPlaybackRate:c=>Eo(c),setAutoQualityLimits:c=>ct(c),setMuted:c=>rn(c,!0),toggleSubtitle:()=>Io(!0),changeSubtitle:wn,setVolume:c=>zr(c,!0),returnFocusToEpisodes:$$,updateAdditionalSettingsItem:vl,addAdditionalSettingsItem:$a,removeAdditionalSettingsItem:mt,updateAdditionalContextItem:Po,addAdditionalContextItem:Zi,removeAdditionalContextItem:hi,updateAdditionalButton:md,addAdditionalButton:ba,removeAdditionalButton:vd,setLiveLowLatency:ml,hideControls:()=>ds(!1),showControls:()=>ds(!0),setQuality:c=>xn(c,{appliesTo:"to-video"},!0),setTrafficSavingEnabled:c=>Uo(c,"to-video",!0),setHighQualityEnabled:c=>Wn(c,"to-video",!0),changeAudioStream:Hr}},callbacks:s,setUiCallbacks:c=>{tt={...c}},getAdmanWrapper:()=>K,getLogger:()=>Ye,getPlayer:()=>O,destroy:y$};return Qt};function Zn(t,e,i,o){var f;let r=(f=e[i])==null?void 0:f.getBoundingClientRect(),a=o&&!!r&&!!(r.right-r.left),{top:l,left:d,bottom:s,right:u}=Bs(e[i],t||void 0);return{left:a?d:0,right:a?u:0,top:a?l:0,bottom:a?s:0,isDisplayed:a}}var Qx=["disabledControls$","additionalButtons"],Gx=["interactiveTimeIndicator"],td=(t,e,i,o)=>{if(t){for(let[r,a]of Object.entries(e))if(!Qx.includes(r)){let l=o||Gx.includes(r);a.set(Zn(t,i,r,l))}}};var mp=async(t,e,i)=>{await mo(),e&&i&&(i.focus(),t.set(!1))};var Yx=Ie('<path d="M18 10c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2Zm-6 4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2Zm-6 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2Z"></path>');function Qm(t){Je(t,{children:(e,i)=>{var o=Yx();$(e,o)},$$slots:{default:!0}})}function Gm(t,e){B(e,!0);let[i,o]=De(),r=()=>x(s,"$contextMenuVisible$",i),a=h(e,"disabled",3,!1),l=h(e,"ariaLabel",3,""),d=he(),s=d.ui.contextMenu.visible$,u=d.ui.contextMenu.openedByBtnKeyboard$,f=d.ui.contextMenu.showContextMenuBtn$,p=d.ui.contextMenu.position$,v=d.ui.contextMenu.btnRef$,_=q(void 0);Oe(()=>{n(_)&&Et(()=>{v.set(n(_))})});let y=T=>{let N=la(T),A=ab(n(_));p.set(A),u.set(N),s.set(!r())},b=()=>{f.set(!0)},w=()=>{f.set(!1)},I=m(()=>r()?"opened":"");Wt(t,{get className(){return n(I)},testId:"btn-context-menu",get disabled(){return a()},get ariaLabel(){return l()},click:y,focus:b,blur:w,get ariaExpanded(){return r()},get ref(){return n(_)},set ref(T){R(_,T,!0)},children:(T,N)=>{Qm(T,{})},$$slots:{default:!0}}),H(),o()}var jx=t=>{t.stopPropagation()},Xx=L("<div><!> <div></div> <div></div></div>"),Zx={hash:"s-27",code:'.interactive-episode-icon-animated.s-27{height:32px;opacity:1;position:absolute;right:16px;top:16px;transition:.3s;width:32px}.interactive-episode-icon-animated.icon-small.s-27{height:28px;width:28px}.invisible.s-27{opacity:0;visibility:hidden}.fullscreen.s-27:not(.mobile){height:40px;right:23px;top:19px;width:40px}.mobile.s-27{height:28px;right:14px;top:12px;width:28px}.fullscreen.mobile.s-27{height:32px;width:32px}@media screen and (orientation:portrait){.interactive-episode-icon-animated.mobile.fullscreen.s-27{right:16px;top:40px}}@keyframes s-27-pulse{0%{border-width:1px;opacity:0;transform:scale(1)}10%{opacity:1}50%{border-width:1px;opacity:.5;transform:scale(1.5)}to{border-width:.5px;opacity:0;transform:scale(1.5)}}.pulse.s-27{animation:s-27-pulse 1s infinite;border:1px solid #fff;border-radius:100%;bottom:0;content:"";display:block;left:0;pointer-events:none;position:absolute;right:0;top:0;transform:scale(1.8);transition:.3s}.pulse.paused.s-27{animation-play-state:paused}.interactive-episode-icon-animated svg{height:100%;width:100%}.ref-block.s-27{height:100%;position:absolute;top:0;visibility:hidden;width:100%}.hidden.s-27{display:none}'};function bc(t,e){var K;B(e,!0),Y(t,Zx);let[i,o]=De(),r=()=>x(w,"$isMobile",i),a=()=>x(A,"$areControlsVisible",i),l=()=>x(k,"$currentGridType$",i),d=()=>x(T,"$isInteractiveTime$",i),s=()=>x(b,"$interactiveControlsOpacity$",i),u=()=>x(N,"$showInteractiveTimeIndicatorTooltip$",i),f=()=>x(I,"$isFullscreen",i),p=h(e,"ref",15,void 0),v=q(void 0),_=he(),y=_o(),{interactiveControlsOpacity$:b}=y,w=_.ui.isMobile,I=_.ui.isFullscreen,T=_.state.isInteractiveTime$,N=y.showInteractiveTimeIndicatorTooltip$,A=_.ui.controlsVisible,E=(K=_.callbacks)==null?void 0:K.onInteractiveTimeIndicatorClick,k=_.ui.currentGridType$,Q=m(()=>!r()&&a()),F=m(()=>Os(l(),"s")),z=m(()=>!d()||!!s()||n(Q)),X=q(!1);Oe(()=>{R(X,n(z),!0)});let se=()=>{R(X,!0)},Z=()=>{var ae;oe(),(ae=n(v))==null||ae.addEventListener("animationiteration",se,{once:!0})},oe=()=>{var ae;R(X,!1),(ae=n(v))==null||ae.removeEventListener("animationiteration",se)},J=ae=>{N.set(ae)},Ce=m(()=>u()&&!n(z));Oe(()=>{u()?Z():oe()});let pe=()=>{n(z)||(N.set(!0),E==null||E())};cn(()=>{N.clearTimeout(),oe()});let ee=()=>{N.set(!1)},_e=j("tooltip_interactive_interaction_time_indicator");var we=Xx();let ve;we.__mousemove=[jx],we.__click=pe;var ue=C(we);Vo(ue,{get tooltipContent(){return _e},get tooltipVisible(){return n(Ce)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:J,get ref(){return p()},set ref(ae){p(ae)},children:(ae,ye)=>{cc(ae,{completed:!0})},$$slots:{default:!0}});var Ge=P(ue,2);let U;Ze(Ge,ae=>p(ae),()=>p());var O=P(Ge,2);let Ye;Ze(O,ae=>R(v,ae),()=>n(v)),S(we),D((ae,ye,He)=>{ve=ne(we,1,"interactive-episode-icon-animated s-27",null,ve,ae),U=ne(Ge,1,"ref-block s-27",null,U,ye),Ye=ne(O,1,"pulse s-27",null,Ye,He)},[()=>({mobile:r(),fullscreen:f(),invisible:n(z),"icon-small":n(F)}),()=>({hidden:n(z)}),()=>({paused:n(X)})]),ut("mouseleave",we,ee),$(t,we),H(),o()}je(["mousemove","click"]);function vp(t,e){B(e,!0);let i=h(e,"tooltipEnabled",3,!0),o=h(e,"disabled",3,!1),r=h(e,"className",3,void 0),a=h(e,"ref",15),l=h(e,"tooltipVisible",3,!1);Vo(t,{get disabled(){return o()},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},get hasTooltip(){return i()},get mouseEnter(){return e.mouseEnter},get mouseLeave(){return e.mouseLeave},get tooltipVisible(){return l()},get className(){return r()},get ref(){return a()},set ref(d){a(d)},children:(d,s)=>{var u=Le();let f=m(()=>e.buttonComponent);var p=ce(u);Vi(p,()=>n(f),(v,_)=>{_(v,is(()=>{var y;return(y=e.buttonComponentProps)!=null?y:{}}))}),$(d,u)},$$slots:{default:!0}}),H()}var Hs={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var e2=Ie('<path d="M32 21.68V15a2 2 90 114 0v18a2 2 90 01-4 0v-6.66l-16.3 9.32A2.48 2.48 90 0112 33.56V14.46c0-1.9 2.06-3.08 3.7-2.12z"></path>');function fa(t,e){B(e,!0);let i=h(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);transform-origin: 50%;":void 0),r=m(()=>`${un(e.size)}${n(o)}`),a=m(()=>i()?"prev-icon":"next-icon");Je(t,{get width(){return"48"},get height(){return"48"},get style(){return n(r)},get testId(){return n(a)},get shadow(){return e.shadow},children:(l,d)=>{var s=e2();$(l,s)},$$slots:{default:!0}}),H()}var t2=L('<div class="icon-background-mobile s-26"><!></div>'),i2={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:100%;justify-content:space-around;left:0;position:absolute;top:0;width:100%}"};function Za(t,e){B(e,!0),Y(t,i2);let i=h(e,"ref",15,void 0),o=h(e,"isMobile",3,!1),r=h(e,"disabled",3,!1),l=he().ui.t,d=m(()=>e.type==="prev"?l("tooltip_previous"):l("tooltip_next")),s=m(()=>e.type==="prev"?l("hotkey_map_item_prev_video_value"):l("hotkey_map_item_next_video_value")),u=m(()=>`btn-${o()?"m":"d"}--${e.type}`);Wt(t,{get className(){return n(u)},get testId(){var f;return`btn-${(f=e.type)!=null?f:""}`},get disabled(){return r()},get ariaLabel(){return n(d)},get click(){return e.click},get ariaKeyShortCut(){return n(s)},get ref(){return i()},set ref(f){i(f)},children:(f,p)=>{var v=Le(),_=ce(v);{var y=w=>{var I=t2(),T=C(I);let N=m(()=>e.type==="prev");fa(T,{get size(){return"32"},get reversed(){return n(N)}}),S(I),$(w,I)},b=w=>{let I=m(()=>e.type==="prev");fa(w,{get size(){return"24"},get reversed(){return n(I)}})};V(_,w=>{o()?w(y):w(b,!1)})}$(f,v)},$$slots:{default:!0}}),H()}var o2=Ie('<path d="M24 21.2a.8.8 90 01-1.34.6L14.08 14a1.34 1.34 90 010-2l8.6-7.8a.8.8 90 011.32.6V11a16 16 90 11-16 16 2 2 90 114 0 12 12 90 1012-12z"></path>');function $c(t,e){B(e,!0);let i=m(()=>un(e.size));Je(t,{get width(){return"48"},get height(){return"48"},get style(){return n(i)},testId:"replay-icon",get shadow(){return e.shadow},children:(o,r)=>{var a=o2();$(o,a)},$$slots:{default:!0}}),H()}var kb=require("@vkontakte/videoplayer-shared/es2018");var n2=L('<div class="icon-background-mobile s-24"></div>'),r2=L("<!> <div><!></div>",1),s2={hash:"s-24",code:".mobile.s-24{align-items:center;display:flex;justify-content:center;position:relative}.icon-background-mobile.s-24{background-color:var(--big-play-bg-color);border-radius:var(--big-play-radius);height:calc(100% - 32px);left:16px;position:absolute;top:16px;width:calc(100% - 32px)}"};function id(t,e){B(e,!0),Y(t,s2);let i=h(e,"ref",15,void 0),o=h(e,"isMobile",3,!1),r=h(e,"disabled",3,!1),a=h(e,"className",3,""),l=h(e,"click",3,kb.noop),d=j("tooltip_restart"),s=m(()=>`${o()?"btn-m--play":""} ${a()}`);Wt(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,f)=>{var p=r2(),v=ce(p);{var _=T=>{var N=n2();$(T,N)};V(v,T=>{o()&&T(_)})}var y=P(v,2);let b;var w=C(y);let I=m(()=>o()?"48":"24");$c(w,{get size(){return n(I)}}),S(y),D(T=>b=ne(y,1,"s-24",null,b,T),[()=>({mobile:o()})]),$(u,p)},$$slots:{default:!0}}),H()}var a2=Ie('<path d="m17.4 10 1.6.2a2 2 90 01.8.8l.2 1.6v22.8l-.2 1.6a2 2 90 01-.8.8l-1.6.2h-4l-1.4-.2a2 2 90 01-.8-.8l-.2-1.6V12.6l.2-1.6a2 2 90 01.8-.8l1.6-.2h3.801zm16 0 1.6.2a2 2 90 01.8.8l.2 1.6v22.8l-.2 1.6a2 2 90 01-.8.8l-1.6.2h-4l-1.4-.2a2 2 90 01-.8-.8l-.2-1.6V12.6l.2-1.6a2 2 90 01.8-.8l1.6-.2h4z"></path>');function Fs(t,e){B(e,!0);let i=m(()=>un(e.size));Je(t,{get width(){return"48"},get height(){return"48"},get fill(){return e.fill},get style(){return n(i)},testId:"pause-icon",get shadow(){return e.shadow},children:(o,r)=>{var a=a2();$(o,a)},$$slots:{default:!0}}),H()}var Pb=require("@vkontakte/videoplayer-shared/es2018");var l2=L('<div class="icon-background-mobile s-21"><!></div>'),d2={hash:"s-21",code:".icon-background-mobile.s-21{align-items:center;background-color:var(--big-play-bg-color);border-radius:var(--big-play-radius);display:flex;height:calc(100% - 32px);justify-content:space-around;left:16px;position:absolute;top:16px;width:calc(100% - 32px)}"};function od(t,e){B(e,!0),Y(t,d2);let[i,o]=De(),r=()=>x(a,"$fakeIsPlaying$",i),{fakeIsPlaying$:a}=_o(),l=h(e,"ref",15,void 0),d=h(e,"isMobile",3,!1),s=h(e,"isPlaying",3,!1),u=h(e,"disabled",3,!1),f=h(e,"className",3,""),p=h(e,"click",3,Pb.noop),_=he().ui.t,{toggle:y}=a,b=m(()=>y),w=m(()=>r()!==null),I=m(()=>n(w)?r():s()),T=m(()=>n(I)?_("tooltip_pause"):_("tooltip_play")),N=m(()=>n(I)?Fs:Vn),A=m(()=>`${d()?"btn-m--play":""} ${f()}`),E=m(()=>n(w)?n(b):p());Wt(t,{get className(){return n(A)},testId:"play-btn",get click(){return n(E)},get disabled(){return u()},get ariaLabel(){return n(T)},get ariaKeyShortCut(){return gs.KeyK},get ref(){return l()},set ref(k){l(k)},children:(k,Q)=>{var F=Le();let z=m(()=>n(N));var X=ce(F);{var se=oe=>{var J=l2(),Ce=C(J);Vi(Ce,()=>n(z),(pe,ee)=>{ee(pe,{get size(){return"48"}})}),S(J),$(oe,J)},Z=oe=>{var J=Le(),Ce=ce(J);Vi(Ce,()=>n(z),(pe,ee)=>{ee(pe,{get size(){return"24"}})}),$(oe,J)};V(X,oe=>{d()?oe(se):oe(Z,!1)})}$(k,F)},$$slots:{default:!0}}),H(),o()}var c2=Ie('<path d="M12.58 12.92v2.5a1 1 0 0 1-1.52.85l-5.58-3.42a1 1 0 0 1 0-1.7l5.58-3.42a1 1 0 0 1 1.52.86v2.5l5.48-3.36a1 1 0 0 1 1.52.86v6.82a1 1 0 0 1-1.52.86z"></path>');function Ym(t){Je(t,{testId:"play-prev-chapter-icon",children:(e,i)=>{var o=c2();$(e,o)},$$slots:{default:!0}})}function yc(t,e){B(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"hidden",3,!1),r=h(e,"disabled",3,!1),a=j("tooltip_interactive_go_back"),l=m(()=>o()?"hidden":"");Wt(t,{get className(){return n(l)},testId:"play-prev-chapter-btn",get ariaLabel(){return a},get disabled(){return r()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,s)=>{Ym(d,{})},$$slots:{default:!0}}),H()}var u2=L('<span class="gutter s-25"><span><!></span></span>'),p2={hash:"s-25",code:".gutter.s-25{--gutterWidth:32px;--gutterHeight:12px;--togglerWidth:18px;--togglerHeight:18px;--togglerGap:calc(var(--togglerWidth)/6);background-color:hsla(0,0%,100%,.3);border-radius:50px;height:var(--gutterHeight);position:relative;width:var(--gutterWidth)}.toggler.s-25{align-items:center;background-color:#626364;border-radius:50%;display:flex;height:var(--togglerHeight);justify-content:center;left:0;position:absolute;top:calc((var(--togglerHeight) - var(--gutterHeight))/2*-1);transform:translateX(calc(var(--togglerGap)*-1));transition-duration:.2s;transition-property:background-color,transform;transition-timing-function:ease;width:var(--togglerWidth)}.toggler.enabled.s-25{background-color:var(--toggle-color-autoplay-on);transform:translateX(calc(var(--gutterWidth) - var(--togglerWidth) + var(--togglerGap)))}"};function xc(t,e){B(e,!0),Y(t,p2);let[i,o]=De(),r=()=>x(s,"$autoplayNextEnabled$",i),a=h(e,"ref",15,void 0),l=he(),d=l.ui.t,s=l.ui.autoplayNextEnabled$,u=l.actions.internal.setAutoplayNextEnabled,f=()=>{u(!r(),!0)},p=d("aria_label_autoplay"),v="12",_="#000",y=m(()=>r()?"true":"false");Wt(t,{click:f,get ariaLabel(){return p},role:"switch",get areaChecked(){return n(y)},get ref(){return a()},set ref(b){a(b)},children:(b,w)=>{var I=u2(),T=C(I);let N;var A=C(T);{var E=Q=>{Vn(Q,{get size(){return v},fill:_})},k=Q=>{Fs(Q,{get size(){return v},fill:_})};V(A,Q=>{r()?Q(E):Q(k,!1)})}S(T),S(I),D(Q=>N=ne(T,1,"toggler s-25",null,N,Q),[()=>({enabled:r()})]),$(b,I)},$$slots:{default:!0}}),H(),o()}var f2=Ie('<path d="M16.73 4.85c-.54-.05-1.23-.05-2.23-.05H7.9a.9.9 0 1 1 0-1.8h6.64q1.41-.01 2.33.05c.64.05 1.2.16 1.73.43a4.4 4.4 0 0 1 1.92 1.92c.27.52.38 1.09.43 1.73q.06.92.05 2.33v5.08q.01 1.41-.05 2.33a5 5 0 0 1-.43 1.73 4.4 4.4 0 0 1-1.92 1.92 5 5 0 0 1-1.73.43q-.92.06-2.33.05H7.9a.9.9 0 1 1 0-1.8h6.6c1 0 1.69 0 2.23-.04.52-.05.82-.13 1.05-.24a2.6 2.6 0 0 0 1.14-1.14c.11-.23.2-.53.24-1.06s.04-1.23.04-2.22v-5c0-1 0-1.69-.04-2.23a3 3 0 0 0-.24-1.05 2.6 2.6 0 0 0-1.14-1.14c-.23-.11-.53-.2-1.05-.24"></path><path d="M7.76 11.17V8.9c0-.71.7-1.15 1.25-.78l4.6 3.1a.96.96 0 0 1 0 1.54L9 15.87c-.55.37-1.25-.07-1.25-.78v-2.26l-4.5 3.04C2.7 16.24 2 15.8 2 15.09V8.91c0-.71.7-1.15 1.25-.78z "></path>',1);function jm(t){Je(t,{testId:"seek-to-interactive-icon",children:(e,i)=>{var o=f2();ai(),$(e,o)},$$slots:{default:!0}})}function wc(t,e){B(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"hidden",3,!1),r=h(e,"disabled",3,!1),a=j("tooltip_interactive_seek"),l=m(()=>o()?"hidden":"");Wt(t,{get className(){return n(l)},testId:"btn-seek-to-interactive",get ariaLabel(){return a},get disabled(){return r()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,s)=>{jm(d,{})},$$slots:{default:!0}}),H()}var m2=Ie('<path d="M15.2 5.9v1.2c0 .6 0 .9.12 1.12q.15.3.46.46c.23.12.52.12 1.12.12h1.2c.6 0 .9 0 1.12-.12q.3-.15.46-.46c.12-.23.12-.52.12-1.12V5.9c0-.6 0-.9-.12-1.12a1 1 0 0 0-.46-.46c-.23-.12-.52-.12-1.12-.12h-1.2c-.6 0-.9 0-1.12.12q-.3.15-.47.46c-.11.23-.11.53-.11 1.12m-.05 11.03v1.14c0 .6 0 .91.12 1.14q.15.31.47.47c.23.12.53.12 1.14.12h1.22c.6 0 .9 0 1.14-.12a1 1 0 0 0 .47-.47c.12-.23.12-.53.12-1.14v-1.14c0-.6 0-.9-.12-1.14a1 1 0 0 0-.47-.47c-.23-.12-.54-.12-1.14-.12h-1.22c-.6 0-.91 0-1.14.12a1 1 0 0 0-.47.47c-.12.23-.12.53-.12 1.14"></path>'),v2=Ie('<path d="M16.78 3h1.42q.47 0 .83.02.4.02.82.21.61.31.92.92.2.41.21.81.03.36.02.83v1.4q0 .47-.02.83-.02.4-.21.81a2 2 0 0 1-.92.92 2 2 0 0 1-.82.21q-.36.02-.83.02h-1.42q-.47 0-.84-.02a2 2 0 0 1-.81-.2 2 2 0 0 1-.93-.93 2 2 0 0 1-.2-.8l-.03-.64h-2.2c-.49 0-.8 0-1.04.02a1 1 0 0 0-.35.06 1 1 0 0 0-.35.35 1 1 0 0 0-.07.35c-.02.24-.02.55-.02 1.04v5.57c0 .5 0 .8.02 1.04s.05.31.07.34q.12.23.35.35c.03.02.11.05.34.07s.56.02 1.05.02h2.2q0-.34.02-.62.01-.4.21-.81.31-.61.93-.92.42-.2.81-.21.37-.02.84-.02h1.42q.47 0 .83.02.4.01.82.2.61.31.92.93.2.41.21.8.03.37.02.84v1.4q0 .47-.02.83-.02.39-.21.81a2 2 0 0 1-.92.92q-.43.2-.82.21-.36.02-.83.02h-1.42q-.47 0-.84-.02a2 2 0 0 1-.81-.21 2 2 0 0 1-.93-.92 2 2 0 0 1-.2-.81l-.03-.63h-2.24q-.68 0-1.16-.03a3 3 0 0 1-1.01-.26 2.6 2.6 0 0 1-1.14-1.14 3 3 0 0 1-.26-1q-.04-.5-.03-1.16v-1.93H2.9A.9.9 0 0 1 2 12c0-.5.4-.9.9-.9h5.23V9.18q0-.68.03-1.16.02-.51.26-1.02a2.6 2.6 0 0 1 1.14-1.13q.5-.24 1.02-.26.48-.04 1.16-.02h2.23q0-.34.02-.63.01-.4.21-.81.31-.61.93-.92.42-.2.81-.21.37-.02.84-.02m-.84 1.84.15-.02c.16-.02.37-.02.72-.02h1.35c.36 0 .57 0 .72.02l.15.02a.3.3 0 0 1 .12.12l.03.15.01.71v1.34l-.01.71-.02.15a.3.3 0 0 1-.13.13l-.15.02-.72.01h-1.35l-.72-.01-.15-.03a.3.3 0 0 1-.12-.12l-.02-.15-.02-.71V5.82q0-.5.02-.71l.02-.15a.3.3 0 0 1 .12-.12m0 11.02.15-.03.72-.01h1.35l.72.01.15.03a.3.3 0 0 1 .12.12l.03.15.01.71v1.34l-.01.71-.02.15a.3.3 0 0 1-.13.12l-.15.02c-.15.02-.36.02-.72.02h-1.35c-.35 0-.56 0-.72-.02l-.15-.02a.3.3 0 0 1-.12-.12l-.02-.15-.02-.71v-1.34c0-.35 0-.56.02-.71l.02-.15a.3.3 0 0 1 .12-.13"></path><!>',1);function Xm(t,e){let i=h(e,"isOpened",3,!1),o=m(()=>i()?"graph-close-icon":"graph-open-icon");Je(t,{get testId(){return n(o)},children:(r,a)=>{var l=v2(),d=P(ce(l));{var s=u=>{var f=m2();$(u,f)};V(d,u=>{i()&&u(s)})}$(r,l)},$$slots:{default:!0}})}function Sc(t,e){B(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"hidden",3,!1),r=h(e,"disabled",3,!1),a=h(e,"graphIsOpened",3,!1),d=he().ui.t,s=m(()=>a()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),u=m(()=>o()?"hidden":"");Wt(t,{get className(){return n(u)},testId:"btn-graph",get disabled(){return r()},get ariaLabel(){return n(s)},get click(){return e.click},get ref(){return i()},set ref(f){i(f)},children:(f,p)=>{let v=m(()=>!!a());Xm(f,{get isOpened(){return n(v)}})},$$slots:{default:!0}}),H()}var Zm=require("@vkontakte/videoplayer-core/es2018");function Cc(t,e){B(e,!0);let[i,o]=De(),r=()=>x(u,"$playbackState$",i),a=h(e,"isMobile",3,!1),l=h(e,"isLiveActive",3,!1),d=h(e,"ariaLabel",3,""),s=he(),u=s.state.playbackState$,f=s.actions.internal.switchToActiveLive,p=s.actions.internal.togglePlay,v=m(()=>()=>{if(!l()){f();return}r()===Zm.PlaybackState.PAUSED&&p()}),_=m(()=>a()?"":"btn--live btn-full-opacity"),y=m(()=>l()?"btn-live":"btn-live-offset"),b=m(()=>l()&&r()===Zm.PlaybackState.PLAYING);Wt(t,{get className(){return n(_)},get testId(){return n(y)},get disabled(){return n(b)},get ariaLabel(){return d()},get click(){return n(v)},children:(w,I)=>{ec(w,{get isActive(){return l()}})},$$slots:{default:!0}}),H(),o()}var Jm=require("@vkontakte/videoplayer-shared/es2018");var g2=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),h2=L('<img class="icon" aria-hidden="true"/>');function Ja(t,e){"use strict";let i=q(!1),o=()=>{R(i,!0)};var r=Le(),a=ce(r);{var l=s=>{var u=g2();$(s,u)},d=s=>{var u=h2();D(()=>Me(u,"src",e.icon)),ut("error",u,o),Ma(u),$(s,u)};V(a,s=>{n(i)?s(l):s(d,!1)})}$(t,r)}function ev(t,e){B(e,!0);let i=h(e,"disabled",3,!1),o=h(e,"onClick",3,Jm.noop),r=h(e,"ref",15),a=m(()=>o()===Jm.noop),l=m(()=>n(a)||i()),d=m(()=>n(a)?"btn-full-opacity":"");Vo(t,{get disabled(){return n(l)},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},width:40,get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},get tooltipVisible(){return e.tooltipVisible},get ref(){return r()},set ref(s){r(s)},children:(s,u)=>{let f=m(()=>{var p;return(p=e.testId)!=null?p:e.id});Wt(s,{get className(){return n(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return n(l)},get testId(){return n(f)},children:(p,v)=>{Ja(p,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),H()}var Ab=t=>!!t.buttonComponent;var Us={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(Zn(t,i,r,o))};var hp=require("@vkontakte/videoplayer-shared/es2018"),Lb=10,Mb=40,tv=.2,b2=.5,$2=65,y2=114,x2=4,Vb=({onPreviewTrackOpened:t,getTimelineRef:e,isHorizontal:i})=>{let o=m(()=>i?$2:y2),r=q(!1),a=q(0),l=q(0),d=m(()=>n(o)+Lb-Mb-x2),s=m(()=>(0,hp.interpolate)(n(a),[tv,1],[0,-n(d)])),u=m(()=>(0,hp.interpolate)(n(a),[tv,1],[0,Mb])),f=m(()=>(0,hp.interpolate)(n(a),[tv,1],[0,n(o)+Lb]));return{progressBarY:()=>n(s),controlsY:()=>n(u),calculatedHeight:()=>n(f),onPointerDown:b=>{var w;R(l,((w=e())==null?void 0:w.getBoundingClientRect().bottom)||0,!0),R(r,!0)},onPointerMove:b=>{if(!n(r))return;let w=Math.max(Math.min(b.clientY-n(l),0),-n(d));R(a,Math.abs(w/n(d)),!0)},onPointerUp:()=>{R(r,!1),R(a,n(a)>=b2?1:0,!0),n(a)===1&&t()},closePreviewTrack:()=>{R(a,0)}}};var w2=t=>t;function bs(t,{delay:e=0,duration:i=400,easing:o=w2}={}){let r=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:a=>`opacity: ${a*r}`}}var S2=L('<span class="root s-2c"> </span>'),C2={hash:"s-2c",code:".root.s-2c{box-shadow:0 8px 24px 0 rgba(0,0,0,.08);box-shadow:0 0 2px 0 rgba(0,0,0,.08);color:#fff;font-size:13px;font-weight:500;line-height:16px}"};function iv(t,e){Y(t,C2);var i=S2(),o=C(i,!0);S(i),D(()=>me(o,e.time)),$(t,i)}var T2=L('<div class="tooltip-wrapper s-v"><div><!></div></div>'),I2={hash:"s-v",code:'.tooltip-wrapper.s-v{display:block;position:relative}.tooltip.s-v{bottom:100%;opacity:0;position:absolute;transform:translateX(-50%);transition:opacity .2s;visibility:hidden}.pointer.s-v:after{border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid rgba(41,41,41,.8);bottom:0;content:" ";font-size:0;left:50%;line-height:0;position:absolute;transform:translate(-50%,5px);width:0}.tooltip.active.s-v{opacity:1;visibility:visible}'};function ov(t,e){Y(t,I2);let i=h(e,"active",3,!1),o=h(e,"pointer",3,!1),r=h(e,"translateXPx",3,0),a=h(e,"translateYPx",3,0),l=h(e,"leftOffset",3,0),d=h(e,"rightOffset",3,0),s=q(void 0),u=q(void 0);function f(w){if(!n(u))return 0;let{width:I}=n(u).getBoundingClientRect(),T=I/2;return w<T?T+l():w>e.containerWidth-T?e.containerWidth-T-d():w}let p=m(()=>f(r()));var v=T2(),_=C(v);let y;var b=C(_);ii(b,()=>{var w;return(w=e.children)!=null?w:ht}),S(_),Ze(_,w=>R(u,w),()=>n(u)),S(v),Ze(v,w=>R(s,w),()=>n(s)),D(w=>{Ke(v,`transform: translate(${n(p)}px, ${a()}px);`),y=ne(_,1,"tooltip s-v",null,y,w),Ke(_,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),$(t,v)}var Rb=t=>Math.abs(t)/90%4===1;var E2=L('<div class="preview s-u"></div>'),k2=L('<div class="time s-u"> </div>'),P2=L('<div><!> <div class="episode s-u"><!></div> <!></div>'),A2={hash:"s-u",code:".timeline-preview.s-u{border-radius:2px;bottom:18px;pointer-events:none}.timeline-preview.mobile.s-u{bottom:72px}.preview.s-u{background-color:var(--timeline-preview-bg);border:1px solid var(--white);border-radius:8px;box-shadow:0 0 2px var(--timeline-preview-shadow),0 8px 24px var(--timeline-preview-shadow)}.episode.s-u{margin-bottom:4px;margin-top:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.episode.s-u,.time.s-u{font-size:13px;font-weight:500;line-height:16px;text-align:center;text-shadow:0 8px 24px var(--timeline-preview-shadow),0 0 2px var(--timeline-preview-shadow)}.time.s-u{color:var(--white)}"};function nv(t,e){B(e,!0),Y(t,A2);let[i,o]=De(),r=()=>x(y,"$rotateAlpha",i),a=()=>x(b,"$playerSize",i),l={MOBILE:150,DESKTOP:278},d=h(e,"time",3,""),s=h(e,"isMobile",3,!1),u=h(e,"videoEpisodes",19,()=>[]),f=h(e,"progress",3,0),p=h(e,"duration",3,0),v=h(e,"isInteractive",3,!1),_=he(),y=_.ui.rotateAlpha,b=_.ui.playerSize,w=q(0),I=q(0),T=q(""),N=q(0),A=q(0),E=q(0),k=q(0),Q=m(()=>ap(f(),p(),u())),F=m(()=>Jl(r())),z=m(()=>Rb(r())),X=m(oe),se=m(()=>(n(z)?1:-1)*(n(w)/2-n(I)/2)),Z=m(()=>n(se)*-1);Oe(()=>{(K=>{R(w,K.width,!0),R(I,K.height,!0)})(Ce())}),Oe(()=>{(K=>{R(T,K.imgSrc,!0),R(N,K.imgWidth,!0),R(A,K.imgHeight,!0),R(E,K.imgOffsetX,!0),R(k,K.imgOffsetY,!0)})(pe(f()))});function oe(){var He;let K=s()?l.MOBILE:l.DESKTOP,{isVertical:ae}=J(),ye=30;return(He=n(Q))!=null&&He.text&&(ye+=16),(ae||n(F))&&(ye+=18,ye+=50),Math.min(Math.max(a().height-ye,0),K)}function J(){let K=e.previewThumbsData.frameWidth,ae=e.previewThumbsData.frameHeight,ye=ae>K;return{width:K,height:ae,isHorizontal:!ye,isVertical:ye}}function Ce(){let{height:K,isHorizontal:ae,isVertical:ye,width:He}=J();return ae&&(K=K/He*n(X),He=n(X)),ye&&(He=He/K*n(X),K=n(X)),{width:He,height:K}}function pe(K){let ae;e.previewThumbsData.isUV?ae=Math.floor(p()*K/e.previewThumbsData.frequency):ae=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*K)));let ye=Math.floor(ae/e.previewThumbsData.countPerImage),He=Math.floor(ae%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),ot=ae%e.previewThumbsData.countPerRow,re=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&ye===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(re=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&re++);let de=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&ye===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(de=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Re=n(w)*de,Ve=n(I)*re,tt=-ot*n(w),Ee=-He*n(I);return{imgSrc:e.previewThumbsData.links[ye],imgWidth:Re,imgHeight:Ve,imgOffsetX:tt,imgOffsetY:Ee}}var ee=P2();let _e;var we=C(ee);{var ve=K=>{var ae=E2();D(()=>Ke(ae,`width: ${n(w)}px; height: ${n(I)}px; background-image: url(${n(T)}); background-size: ${n(N)}px ${n(A)}px; background-position: ${n(E)}px ${n(k)}px;
|
|
61
|
+
transform: rotate(${r()}deg) ${n(F)?`translate(${n(se)}px, ${n(Z)}px)`:""};
|
|
62
|
+
`)),$(K,ae)};V(we,K=>{n(T)&&K(ve)})}var ue=P(we,2),Ge=C(ue);{var U=K=>{var ae=Le(),ye=ce(ae);{var He=re=>{var de=vs();D(Re=>me(de,Re),[()=>j("tooltip_episode_unfinished")]),$(re,de)},ot=re=>{var de=vs();D(()=>me(de,n(Q).text||"")),$(re,de)};V(ye,re=>{v()&&n(Q).completed===!1?re(He):re(ot,!1)})}$(K,ae)};V(Ge,K=>{n(Q)&&K(U)})}S(ue);var O=P(ue,2);{var Ye=K=>{var ae=k2(),ye=C(ae,!0);S(ae),D(()=>me(ye,d())),$(K,ae)};V(O,K=>{v()||K(Ye)})}S(ee),D(K=>{_e=ne(ee,1,"timeline-preview s-u",null,_e,K),Ke(ee,`width: ${n(F)?n(I):n(w)}px;`)},[()=>({mobile:s()})]),$(t,ee),H(),o()}var L2=L('<span class="time s-f"> </span>'),M2=L("<!> <!>",1),V2={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 rv(t,e){var ke,xe,Be,$e,Tt;B(e,!0),Y(t,V2);let[i,o]=De(),r=()=>x(Z,"$interactiveEpisodes$",i),a=()=>x(k,"$duration$",i),l=()=>x(E,"$position$",i),d=()=>x(Ce,"$isInteractiveExpectation$",i),s=()=>x(J,"$isInteractiveTime$",i),u=()=>x(we,"$previewTrackActive",i),f=()=>x(Q,"$isLive$",i),p=()=>x(_e,"$disabledControls$",i),v=()=>x(z,"$isMobile",i),_=()=>x(F,"$isActiveLive$",i),y=()=>x(A,"$bufferedProgress$",i),b=h(e,"showTimeline",3,!1),w=h(e,"withEpisodes",3,!0),I=h(e,"ref",15,void 0),T=he(),N=Rt(),A=T.state.bufferedProgress$,E=T.state.positionWithScrubbing$,k=T.state.duration$,Q=T.state.isLive$,F=T.state.isActiveLive$,z=T.ui.isMobile,X=N.features.episodes&&w()?T.actions.internal.getVideoEpisodes():void 0,se=T.actions.internal.getPreviewThumbsData(),Z=T.state.interactiveEpisodes$,oe=T.state.isInteractive,J=T.state.isInteractiveTime$,Ce=T.state.isInteractiveExpectation$,pe=T.actions.internal.correctSeekTimeToInteractive,ee=(ke=T.callbacks)==null?void 0:ke.onDisabledTimelineClick,_e=T.ui.controls.disabledControls$,we=T.ui.previewTrackActive,ve=(Be=(xe=T.callbacks)==null?void 0:xe.uiInfo)==null?void 0:Be.onTimelineMouseEnter,ue=(Tt=($e=T.callbacks)==null?void 0:$e.uiInfo)==null?void 0:Tt.onTimelineMouseLeave,Ge=T.ui.t,U=N.features.interactiveResponsiveUi,O=m(()=>oe?r():X),Ye=m(()=>Xo(a())),K=m(()=>Xo(l())),ae=m(()=>l()/a()),ye=m(()=>d()||s()),He=q(!1),ot=q(""),re=q(0),de=q(0),Re=q(0),Ve=m(()=>({containerWidth:n(de),translateXPx:n(re),translateYPx:oe&&se?-36:-16,active:n(He)&&b()&&!n(ye)&&!U&&!u(),pointer:!N.features.timelinePreview||!se||f()})),tt=Ge("aria_timeline"),Ee=m(()=>Ge("aria_timeline_value",{position:n(K),duration:n(Ye)}));function Te(fe){return!pe||!oe?fe:pe(fe*a())/a()}function Fe(fe,Ne){var Qe;(Qe=e.onSliderPointerDown)==null||Qe.call(e,Ne),T.actions.internal.startScrubbing(Te(fe))}function At(fe){s()||T.actions.internal.progressScrubbing(Te(fe))}function kt(fe){var Ne;T.actions.internal.completeScrubbing(Te(fe)),R(He,!1),(Ne=e.onSliderPointerUp)==null||Ne.call(e)}function Lt(fe,Ne,Qe){var rt;(rt=e.onSliderPointerEnter)==null||rt.call(e,fe),Zt(fe,Ne,Qe),R(He,!0)}function lt(fe,Ne,Qe,rt){var qt;(qt=e.onSliderMove)==null||qt.call(e,rt,fe),Zt(fe,Ne,Qe),R(He,!0)}function Ct(){var fe;R(He,!1),(fe=e.onSliderLeave)==null||fe.call(e)}function Zt(fe,Ne,Qe){R(Re,Te(fe),!0),R(re,Ne,!0),Qe&&R(de,Qe,!0),R(ot,Ht(fe),!0)}function Ht(fe){let Ne=Xo((f()?1-fe:fe)*a());return f()?`-${Ne}`:Ne}let Ot=m(()=>p().has("TIMELINE"));var Kt=M2(),G=ce(Kt);ov(G,is(()=>n(Ve),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(fe,Ne)=>{var Qe=Le(),rt=ce(Qe);{var qt=pi=>{nv(pi,{get time(){return n(ot)},get isMobile(){return v()},get videoEpisodes(){return n(O)},get previewThumbsData(){return se},get progress(){return n(Re)},get duration(){return a()},get isInteractive(){return oe}})},Nt=pi=>{var di=L2(),Ti=C(di,!0);S(di),D(()=>me(Ti,n(ot))),$(pi,di)};V(rt,pi=>{N.features.timelinePreview&&se&&!f()?pi(qt):pi(Nt,!1)})}$(fe,Qe)},$$slots:{default:!0}}));var Pe=P(G,2);ja(Pe,{className:"timeline-slider",get isActiveLive(){return _()},get isMobile(){return v()},get ariaLabel(){return tt},ariaValueMin:0,get ariaValueMax(){return a()},get ariaValueNow(){return l()},get ariaValueText(){return n(Ee)},get loadedProgress(){return y()},get filledProgress(){return n(ae)},get handleProgress(){return n(ae)},get videoEpisodes(){return n(O)},onPointerDown:Fe,onHandleMove:At,onPointerMove:lt,onPointerUp:kt,onPointerEnter:Lt,onPointerLeave:Ct,get onMouseEnter(){return ve},get onMouseLeave(){return ue},get onDisabledClick(){return ee},get isInteractive(){return oe},get disabled(){return n(Ot)},get handleAlwaysVisible(){return u()},get hideHandel(){return s()},testId:"progress_bar",onContextMenu:kt,get ref(){return I()},set ref(fe){I(fe)}}),$(t,Kt),H(),o()}var R2={hash:"s-g",code:".timeline-ads-slider{--slider-bg:var(--timeline-slider-bg);--slider-filled-bg:var(--timeline-slider-filled-bg);--slider-handle-bg:var(--timeline-slider-handle-bg);--slider-loaded-bg:var(--timeline-slider-loaded-bg)}"};function Tc(t,e){B(e,!0),Y(t,R2);let[i,o]=De(),r=()=>x(s,"$isMobile",i),a=h(e,"position",3,0),l=h(e,"duration",3,0),d=he(),s=d.ui.isMobile,u=d.ui.t,f=m(()=>Xo(l())),p=m(()=>Xo(a())),v=m(()=>a()/l()),_=m(()=>u("aria_timeline_value",{position:n(p),duration:n(f)})),y=m(()=>Math.round(n(v)*100));ja(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return l()},get ariaValueNow(){return n(y)},get ariaValueText(){return n(_)},get filledProgress(){return n(v)},hideHandel:!0,get squareBorders(){return r()}}),H(),o()}var N2=L("<div><!></div>"),D2=L("<div></div>"),O2={hash:"s-e",code:".timeline.s-e{align-items:center;bottom:0;box-sizing:border-box;display:flex;min-width:86px;pointer-events:all;position:relative;width:100%}.timeline.mobile.s-e{height:16px;margin-top:6px;padding:6px 12px 7px}.withoutPadding.s-e{padding:0}.timeline-stub.s-e{min-width:20px;width:100%}.timeline-stub.mobile.s-e{height:8px}"};function el(t,e){B(e,!0),Y(t,O2);let[i,o]=De(),r=()=>x(w,"$isLive$",i),a=()=>x(N,"$isMobile",i),l=()=>x(A,"$disabled",i),d=()=>x(T,"$adPosition",i),s=()=>x(I,"$adDuration",i),u=h(e,"isAds",3,!1),f=h(e,"isHidden",3,!1),p=h(e,"timelineNotAvailable",3,!1),v=h(e,"needPadding",3,!0),_=h(e,"ref",15,void 0),y=he(),b=Rt(),w=y.state.isLive$,I=y.ads.duration,T=y.ads.position,N=y.ui.isMobile,A=le(!1),E=m(()=>!p()&&(!r()||r()&&e.canRewindLive&&e.isRewindableLive||u()));var k=Le(),Q=ce(k);{var F=X=>{var se=N2();let Z;var oe=C(se);{var J=pe=>{Tc(pe,{get position(){return d()},get duration(){return s()}})},Ce=pe=>{rv(pe,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return n(E)},get withEpisodes(){return e.withEpisodes},get onSliderMove(){return e.onSliderMove},get onSliderPointerDown(){return e.onSliderPointerDown},get onSliderPointerUp(){return e.onSliderPointerUp},get onSliderLeave(){return e.onSliderLeave},get onSliderPointerEnter(){return e.onSliderPointerEnter},get ref(){return _()},set ref(ee){_(ee)}})};V(oe,pe=>{u()?pe(J):pe(Ce,!1)})}S(se),Vs(se,()=>Wl(f()&&b.features.usePerformanceFix,A,b.disableInvisibleComponentsTimeout)),D(pe=>Z=ne(se,1,"timeline s-e",null,Z,pe),[()=>({withoutPadding:!v(),mobile:a(),"out-of-flow":l()})]),$(X,se)},z=X=>{var se=D2();let Z;D(oe=>Z=ne(se,1,"timeline-stub s-e",null,Z,oe),[()=>({mobile:a()})]),$(X,se)};V(Q,X=>{n(E)?X(F):X(z,!1)})}$(t,k),H(),o()}var Nb=require("@vkontakte/videoplayer-shared/es2018");var B2=(t,e,i,o,r,a,l)=>{R(e,!0),R(i,t.clientX,!0),R(o,n(r),!0),a(l())},H2=L("<div></div>"),F2=L('<div><div class="track s-2b"></div></div>'),U2={hash:"s-2b",code:'.root.s-2b{display:flex;height:var(--preview-track-frame-height-horizontal);overflow:hidden;position:relative;width:100%}.root.is-vertical-video.s-2b,.root.vertically-rotated.s-2b{height:var(--preview-track-frame-height-vertical)}.root.s-2b:after{background-color:#fff;box-shadow:0 2px 2px 0 rgba(0,0,0,.12);box-shadow:0 0 2px 0 rgba(0,0,0,.06);content:"";height:100%;margin:0 auto;pointer-events:none;width:3px;z-index:1}.track.s-2b{bottom:0;display:flex;left:0;padding:0 50%;top:0}.frame.s-2b,.track.s-2b{position:absolute}.frame.s-2b{background-position-x:calc(var(--column-index)*-1*var(--frame-width));background-position-y:calc(var(--frame-height)*-1*var(--row-index));background-size:calc(var(--frame-width)*var(--column-numbers)) calc(var(--frame-height)*var(--row-numbers));flex-shrink:0;height:var(--frame-height);pointer-events:none;transform-origin:center;width:var(--frame-width)}.vertically-rotated.s-2b .frame:where(.s-2b){transform-origin:0 0}.rotate-1.s-2b{transform:rotate(-90deg) translateX(-100%)}.rotate-2.s-2b{transform:rotate(-180deg)}.rotate-3.s-2b{transform:rotate(-270deg) translateY(-100%)}'};function av(t,e){B(e,!0),Y(t,U2);let[i,o]=De(),r=()=>x(N,"$rotateAlpha",i),a=()=>x(b,"$position$",i),l=()=>x(y,"$duration$",i),d=he(),{countPerImage:s=0,countPerRow:u=0,countTotal:f=0,links:p=[],frameHeight:v=0,frameWidth:_=0}=d.actions.internal.getPreviewThumbsData()||{},{duration$:y,positionWithScrubbing$:b}=d.state,{startScrubbing:w,progressScrubbing:I,completeScrubbing:T}=d.actions.internal,N=d.ui.rotateAlpha,A=q(void 0),E=q(!1),k=q(0),Q=q(0),F=q(0),z=q(0),X=m(()=>v<=_),se=m(()=>Jl(r())),Z=m(()=>n(X)?!n(se):n(se)),oe=114,J=65,Ce=3,pe=m(()=>n(Z)?oe:J),ee=m(()=>n(X)?oe:J),_e=m(()=>n(X)?"var(--preview-track-frame-height-horizontal)":"var(--preview-track-frame-height-vertical)"),we=m(()=>f*n(pe)),ve=q(0);Oe(()=>{R(z,Math.ceil(-n(F)/n(pe))-1),R(F,-n(we)*a()/l())});let ue=()=>{T(Ge(),!0)},Ge=()=>l()*-n(F)/n(we)/l(),U=!1,O=Ee=>{if(!n(E))return!1;let Te=Ee.clientX-n(k);R(F,n(Q)+Te),R(F,Math.max(Math.min(n(F),0),-n(we)),!0),Math.abs(Te)>1&&(U=!0),I(Ge())},Ye=Ee=>{n(E)&&(R(E,!1),!U&&Ee&&R(F,-(Ee.offsetX-n(ve)/2)),U=!1,ue())},K=()=>{n(E)&&Ye()},ae=m(()=>s/u),ye=(Ee,Te)=>{if(Ee!==p.length-1)return u;let Fe=0,At=Te*u;for(let kt=1;kt<=u;kt++)Ee*s+Fe+At<f&&Fe++;return Fe},He=m(()=>Math.floor(n(z)/s)),ot=m(()=>(0,Nb.getRangeAroundIndex)(3,n(He),p.length-1)),re=(Ee,Te,Fe)=>{let At=s*n(pe);return Ee*At+Te*n(pe)*u+n(ve)/2-Ce/2+Fe*n(pe)},de=m(()=>[`--row-numbers: ${n(ae)}`,`--column-numbers: ${u}`,`--frame-width: ${n(ee)}px`,`--frame-height: ${n(_e)}`].join(";"));var Re=F2();let Ve;var tt=C(Re);tt.__pointerdown=[B2,E,k,Q,F,w,Ge],tt.__pointermove=O,tt.__pointerup=Ye,$i(tt,20,()=>n(ot),Ee=>Ee,(Ee,Te)=>{var Fe=Le(),At=ce(Fe);$i(At,16,()=>Array.from({length:n(ae)},(kt,Lt)=>Lt),kt=>kt,(kt,Lt)=>{var lt=Le(),Ct=ce(lt);$i(Ct,16,()=>Array.from({length:ye(Te,Lt)},(Zt,Ht)=>Ht),Zt=>Zt,(Zt,Ht)=>{var Ot=H2();D((Kt,G)=>{Ke(Ot,Kt),ne(Ot,1,G,"s-2b")},[()=>`--row-index: ${Lt}; --column-index: ${Ht}; left: ${re(Te,Lt,Ht)}px; background-image: url(${p[Te]});`,()=>`frame rotate-${Math.abs(r())/90%4}`]),$(Zt,Ot)}),$(kt,lt)}),$(Ee,Fe)}),S(tt),S(Re),Ze(Re,Ee=>R(A,Ee),()=>n(A)),D(Ee=>{Ve=ne(Re,1,"root s-2b",null,Ve,Ee),Ke(Re,n(de)),Ke(tt,`transform: translateX(${n(F)}px); width: ${n(we)}px;`)},[()=>({"is-vertical-video":!n(X),"vertically-rotated":n(se)})]),ut("mouseleave",tt,K),Ln(Re,"clientWidth",Ee=>R(ve,Ee)),$(t,Re),H(),o()}je(["pointerdown","pointermove","pointerup"]);var z2=L('<div class="notification s-2d"><span class="description s-2d"> </span></div>'),W2={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 lv(t,e){B(e,!1),Y(t,W2);let i=340,{ui:{t:o}}=he();ho();var r=z2(),a=C(r),l=C(a,!0);S(a),S(r),D(d=>me(l,d),[()=>o("preview_track_close_tooltip")],In),ts(3,r,()=>bs,()=>({duration:i})),$(t,r),H()}var Db=require("@vkontakte/videoplayer-shared/es2018"),K2=L('<div class="preview-track-close tooltip s-29"><!></div>'),q2=L('<div class="preview-track-control s-29"><!> <div class="preview-track-close s-29"><!></div> <!></div>'),Q2=L('<div class="wrapper-preview-track s-29"><!></div>'),G2=L('<div class="enriched-timeline s-29"><!> <!> <!></div>'),Y2={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 dv(t,e){B(e,!0),Y(t,Y2);let[i,o]=De(),r=()=>x(b,"$playerSize",i),a=()=>x(y,"$duration$",i),l=()=>x(w,"$previewTrackActive",i),d=()=>x(v,"$position$",i),s=()=>x(_,"$isRewindableLive$",i),u=h(e,"timelineRef",15,void 0),f=he(),p=200,{positionWithScrubbing$:v,isRewindableLive$:_,duration$:y}=f.state,{playerSize:b,previewTrackActive:w}=f.ui,{countPerImage:I=0,links:T=[],frequency:N=0}=f.actions.internal.getPreviewThumbsData()||{},A=m(()=>r().width>100),E=q(!U_()),k=()=>{n(E)&&(F_(),R(E,!1))},Q=pe=>{let ee=Math.floor(a()*pe/N),_e=Math.floor(ee/I),we=(0,Db.getRangeAroundIndex)(3,_e,T.length-1);for(let ve of we){let ue=new Image;ue.src=T[ve]}},F=(pe,ee)=>{Q(ee),!l()&&e.onTimelineMove(pe)};var z=G2(),X=C(z);{var se=pe=>{var ee=q2(),_e=C(ee);let we=m(()=>Xo(d()));iv(_e,{get time(){return n(we)}});var ve=P(_e,2),ue=C(ve);Ds(ue,{onClick:()=>f.actions.internal.closePreviewTrack()}),S(ve);var Ge=P(ve,2);{var U=O=>{var Ye=K2(),K=C(Ye);lv(K,{}),S(Ye),$(O,Ye)};V(Ge,O=>{n(E)&&O(U)})}S(ee),ut("mouseleave",ve,k),ts(3,ee,()=>bs,()=>({duration:p})),$(pe,ee)};V(X,pe=>{l()&&pe(se)})}var Z=P(X,2);let oe=m(()=>!n(A));el(Z,{get isHidden(){return n(oe)},get isAds(){return e.isAds},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return s()},onSliderMove:F,get onSliderPointerDown(){return e.onTimelinePointerDown},get onSliderPointerUp(){return e.onTimelinePointerUp},get onSliderLeave(){return e.onTimelinePointerLeave},onSliderPointerEnter:Q,get ref(){return u()},set ref(pe){u(pe)}});var J=P(Z,2);{var Ce=pe=>{var ee=Q2(),_e=C(ee);av(_e,{}),S(ee),D(()=>Ke(ee,`height: ${e.animatedPreviewTrackHeight}px;`)),$(pe,ee)};V(J,pe=>{e.previewTrackAvailable&&pe(Ce)})}S(z),D(()=>Ke(z,`transform: translateY(${e.animatedOffsetY}px);`)),$(t,z),H(),o()}var X2=L('<div><!> <div class="controls s-1e" data-testid="player_controls"><div class="controls-left s-1e"><!> <!> <!></div> <div class="controls-right s-1e"></div></div></div> <!>',1),Z2={hash:"s-1e",code:'.wrapper-bottom.s-1e{bottom:0;box-sizing:border-box;display:flex;flex-direction:column;justify-content:flex-end;left:0;pointer-events:none;position:absolute;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);width:100%;will-change:transform;z-index:var(--controls-container-z-index)}.wrapper-bottom.s-1e:before{background:var(--controls-gradient);content:"";height:var(--controls-gradient-height);position:absolute;width:100%}.wrapper-bottom.s-1e>:where(.s-1e){pointer-events:auto}.controls.s-1e{align-items:center;box-sizing:border-box;display:flex;font-size:13px;height:var(--controls-height);justify-content:space-between;padding:0 var(--controls-desktop-padding-horizontal) 4px;white-space:nowrap;width:100%}.controls-left.s-1e,.controls-right.s-1e{align-content:center;display:flex}.controls-left.s-1e{flex-grow:1;min-width:0;overflow:hidden}.controls-left.s-1e >:not(:first-child),.controls-right.s-1e >*{margin-left:var(--controls-desktop-item-margin-left)}.controls-hidden.s-1e{transform:translateY(100%);visibility:visible}.wrapper-bottom.no-smooth.s-1e{transition:none}'};function uv(t,e){var vl,$a;B(e,!0),Y(t,Z2);let[i,o]=De(),r=()=>x(Zo,"$disabledControls$",i),a=()=>x(st,"$adPlaybackState",i),l=()=>x(Nt,"$playbackState$",i),d=()=>x(vo,"$currentSubtitle$",i),s=()=>x(Ti,"$isEnded$",i),u=()=>x(fn,"$currentGridType$",i),f=()=>x(no,"$isLive$",i),p=()=>x(We,"$chromecastState$",i),v=()=>x(xt,"$isPictureInPictureActive",i),_=()=>x(ui,"$pictureInPictureType$",i),y=()=>x(fi,"$availableSubtitlesList$",i),b=()=>x(Ft,"$contextMenuOpenedByKeyboard$",i),w=()=>x(St,"$showContextMenuBtn$",i),I=()=>x(bi,"$isRewindableLive$",i),T=()=>x(ci,"$isActiveLive$",i),N=()=>x(Or,"$graphIsOpened$",i),A=()=>x(Jo,"$contextMenuVisible$",i),E=()=>x(Ni,"$isFullscreen",i),k=()=>x(Ai,"$autoplayNextEnabled",i),Q=()=>x(n(go),"$prevButton",i),F=()=>x(n(nn),"$replayButton",i),z=()=>x(n(yo),"$playButton",i),X=()=>x(n(xo),"$nextButton",i),se=()=>x(n(Ei),"$playPrevChapterButton",i),Z=()=>x(n(wo),"$seekToInteractiveButton",i),oe=()=>x(n(Ur),"$interactiveGraphButton",i),J=()=>x(n(wr),"$liveButton",i),Ce=()=>x(n(ys),"$time",i),pe=()=>x(n(Hi),"$episodes",i),ee=()=>x(n(xs),"$vkLogo",i),_e=()=>x(n(ls),"$volume",i),we=()=>x(n(Sr),"$subtitles",i),ve=()=>x(n(Bo),"$settings",i),ue=()=>x(n(zr),"$context",i),Ge=()=>x(n(rn),"$fullscreen",i),U=()=>x(n(sn),"$chromecast",i),O=()=>x(mn,"$additionalDesktopControlPanelRightButtons$",i),Ye=()=>x(Pi,"$playerSize",i),K=()=>x(No,"$isInteractiveTime$",i),ae=()=>x(ri,"$previewTrackActive",i),ye=()=>x(Yi,"$settingsMenuVisible",i),He=()=>x(Fi,"$settingButtonRef$",i),ot=()=>x(W,"$startedByKeyboard$",i),re=()=>x(pi,"$isAudioAvailable$",i),de=()=>x(Kt,"$fakeIsPlaying$",i),Re=()=>x($s,"$seekToInteractiveDisabledTooltip$",i),Ve=()=>x(Sn,"$isPreviewTrackHorizontallyAligned$",i),tt=()=>x(xi,"$previewTrackAvailable",i),Ee=()=>x(Eo,"$previewTrackDragInProgress",i),Te=()=>x(_t,"$adPosition",i),Fe=()=>x(qt,"$position$",i),At=()=>x(Jt,"$adDuration",i),kt=()=>x(rt,"$duration$",i),Lt=h(e,"playerControlsWrapperRef",15,void 0),lt=h(e,"playerControlsRef",15,void 0),Ct=h(e,"isAds",3,!1),Zt=h(e,"logoTargetUrl",3,""),Ht=h(e,"isOneVideoPlaylist",3,!1),Ot=h(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:Kt}=_o(),G=he(),Pe=_o(),ke=Rt(),xe=G.actions.internal.toggleMuted,Be=G.actions.internal.togglePlay,$e=G.actions.internal.pause,Tt=G.actions.internal.toggleSubtitle,fe=G.actions.internal.checkFullscreenSupport,Ne=(vl=G.callbacks)==null?void 0:vl.onAudioDoesNotExistHint,Qe=($a=G.callbacks)==null?void 0:$a.onAudioDisabledHint,rt=G.state.duration$,qt=G.state.positionWithScrubbing$,Nt=G.state.playbackState$,pi=G.state.isAudioAvailable$,di=G.state.isAudioDisabled,Ti=G.state.isEnded$,no=G.state.isLive$,ci=G.state.isActiveLive$,bi=G.state.isRewindableLive$,{isActive$:xt,type$:ui}=Pe.pictureInPicture$,Yi=G.ui.settingsMenu.visible$,pt=G.ui.settingsMenu.openedByBtnKeyboard$,Bt=G.ui.controls,dt=G.actions.internal.getVideoEpisodes(),We=G.state.chromecastState$,fi=G.state.availableSubtitlesList$,vo=G.state.currentSubtitle$,Zo=Bt.disabledControls$,Jo=G.ui.contextMenu.visible$,St=G.ui.contextMenu.showContextMenuBtn$,Ft=G.ui.contextMenu.openedByBtnKeyboard$,W=G.ui.startedByKeyboard$,Mt=G.ui.controlBlocks,ni=G.ui.previewTrackNotificationVisible,gt=G.ui.t,Jt=G.ads.duration,_t=G.ads.position,st=G.ads.playbackState,Ni=G.ui.isFullscreen,Pi=G.ui.playerSize,fn=G.ui.currentGridType$,mn=G.ui.additionalDesktopControlPanelRightButtons$,Ai=G.ui.autoplayNextEnabled$,Di=G.actions.internal.getVideoElement,Dn=G.actions.internal.replayInteractive,bo=G.actions.internal.prevVideoClick,ro=G.actions.internal.nextVideoClick,Ii=G.state.isInteractive,No=G.state.isInteractiveTime$,Do=G.state.showInteractiveGraph,vn=G.state.showSeekToInteractive,Rr=G.state.showPlayPrevChapter,Nr=G.state.showInteractiveTimeIndicator,Dr=G.state.playPrevChapterDisabledTooltip,$s=Pe.seekToInteractiveDisabledTooltip$,Or=Pe.graphIsOpened$,er=ke.features.interactiveResponsiveUi,Br=m(()=>r().has("EPISODE_BUTTON")),gn=m(()=>r().has("GRAPH_BUTTON")),hn=m(()=>r().has("SEEK_TO_INTERACTIVE_BUTTON")),mr=m(()=>r().has("PLAY_BUTTON")),vr=m(()=>r().has("REPLAY_BUTTON")),en=m(()=>r().has("PLAY_PREV_CHAPTER_BUTTON")),gr=()=>G.actions.internal.toggleChromecast(),hr=m(()=>Ct()?a()==="playing":l()===tl.PlaybackState.PLAYING),tr=m(()=>d().value!=="off"),On=m(()=>s()&&!Ct()||Ii),as=m(()=>er?n(On)&&to(u(),"m"):n(On)),Oo=m(()=>!s()||Ii||Ct()),_r=m(()=>to(u(),"m")),Oi=m(()=>e.showNextPrevButtons&&to(u(),"m")&&!Ct()&&e.nextButtonActive),br=m(()=>e.showNextPrevButtons&&to(u(),"m")&&!Ct()&&e.prevButtonActive),Bn=m(()=>!Ct()&&!!f()),vt=m(()=>p()!==tl.ChromecastState.NOT_AVAILABLE&&!(v()&&_()===1)&&to(u(),"m")&&!Ii),ei=m(()=>e.showAutoplayNext&&!Ht()&&to(u(),"s")),$r=m(()=>y().length>0&&to(u(),"m")),Hr=m(()=>b()||w()),Fr=m(()=>to(u(),"s")&&!Ct()),Hn=m(()=>!e.logoHidden&&!Ct()),ir=m(()=>ke.features.fullscreen&&fe()&&(e.logoHidden||to(u(),er?"xs":"s"))&&!(v()&&_()===1)&&(Ii?Ot():!0)),$o=m(()=>(!f()||Ct())&&!(ke.features.interactiveHideTime&&Ii)),Fn=m(()=>Do&&to(u(),"m")),or=m(()=>er?vn&&to(u(),"s"):vn),Un=m(()=>er?Rr&&to(u(),"s"):Rr),_n=m(()=>!Ct()&&!f()&&!!(dt!=null&&dt.length)&&n(_r)&&!n(Br)),bn=m(()=>!I()||!!T()),$n=m(()=>N()?gt("tooltip_interactive_graph_on"):gt("tooltip_interactive_graph_off")),tn=m(()=>A()?gt("tooltip_context_menu_close"):gt("tooltip_context_menu_open")),Bi=(mt,nt)=>mt?nt&&nt===tl.PlaybackState.PAUSED?gt("tooltip_play"):"":gt("tooltip_live"),ji=m(()=>Bi(n(bn),l())),on=m(()=>ke.logoType==="vk_video"?gt("tooltip_vk_video_logo"):gt("tooltip_vk_logo")),nr=m(()=>n(tr)?gt("tooltip_subtitles_on"):gt("tooltip_subtitles_off")),yr=m(()=>E()?gt("tooltip_fullscreen_on"):gt("tooltip_fullscreen_off")),yn=m(()=>p()===tl.ChromecastState.CONNECTED?gt("tooltip_chromecast_on"):gt("tooltip_chromecast_off")),xr=m(()=>k()?gt("tooltip_autoplay_on"):gt("tooltip_autoplay_off")),ft=q(0),wt=si({}),so=si({}),go=m(()=>Bt.prevButton),nn=m(()=>Bt.replayButton),yo=m(()=>Bt.playButton),xo=m(()=>Bt.nextButton),Ei=m(()=>Bt.playPrevChapterButton),wo=m(()=>Bt.seekToInteractiveButton),Ur=m(()=>Bt.interactiveGraphButton),wr=m(()=>Bt.liveButton),ys=m(()=>Bt.time),Hi=m(()=>Bt.episodes),xs=m(()=>Bt.vkLogo),ls=m(()=>Bt.volume),Sr=m(()=>Bt.subtitles),Bo=m(()=>Bt.settings),zr=m(()=>Bt.context),rn=m(()=>Bt.fullscreen),sn=m(()=>Bt.chromecast),Ue=m(()=>({prevButton:Q()?Q().right-Q().left:0,replayButton:F()?F().right-F().left:0,playButton:z()?z().right-z().left:0,nextButton:X()?X().right-X().left:0,playPrevChapterButton:se()?se().right-se().left:0,seekToInteractiveButton:Z()?Z().right-Z().left:0,interactiveGraphButton:oe()?oe().right-oe().left:0,liveButton:J()?J().right-J().left:0,time:Ce()?Ce().right-Ce().left:0,episodes:pe()?pe().right-pe().left:0,vkLogo:ee()?ee().right-ee().left:0,volume:_e()?_e().right-_e().left:0,subtitles:we()?we().right-we().left:0,settings:ve()?ve().right-ve().left:0,context:ue()?ue().right-ue().left:0,fullscreen:Ge()?Ge().right-Ge().left:0,chromecast:U()?U().right-U().left:0,additionalButtons:O().length?O().reduce(mt=>[...mt,40],[]):[]})),It=q(0);Oe(()=>{(!n(It)||n(It)<n(Ue).time)&&Et(()=>R(It,n(Ue).time,!0))});let li=q(!1);Oe(()=>{let mt=0;n(_n)&&(to(u(),"xl")?mt=n(Ue).time:mt=60);let nt=n(Ue).prevButton+n(Ue).playButton+n(Ue).nextButton+n(Ue).seekToInteractiveButton+n(Ue).interactiveGraphButton+n(Ue).liveButton+n(It)+mt;R(li,n($o)&&n(ft)>=nt,!0)});let Ho=m(()=>n(li)&&to(u(),"m")),So=(0,cv.debounceFn)(td,260),Fo=(0,cv.debounceFn)(gp,260);Oe(()=>{Ye(),K(),ae(),So(Di(),Bt,wt,e.showControls),Fo(Di(),Mt,so,e.showControls)}),Oe(()=>{so.bottom=Lt()});let Fi=le();Oe(()=>{ye(),He()&&Et(()=>ql(He(),ye(),pt))});let Co;Oe(()=>{ot(),Et(()=>mp(W,ot(),Co))});function zn(){da({isAudioDisabled:di,isAudioAvailable:re(),isAds:Ct(),audioIsNotExistHintCallback:Ne,audioDisabledHintCallback:Qe})&&xe()}let Cr=Ii?Dn:Be,To=m(()=>de()!==null),ao=m(()=>n(To)?de():n(hr)),xn=m(()=>n(ao)?gt("tooltip_pause"):gt("tooltip_play")),Uo=gt("tooltip_episodes"),Wn=m(()=>{var mt,nt,Xi,Po;return n(br)?{id:"prevButton",type:"desktop-control-panel-left",weight:Hs.prevButton,buttonComponent:Za,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:bo.bind(null,!0)},tooltipEnabled:!((nt=(mt=G.callbacks)==null?void 0:mt.uiInfo)!=null&&nt.onPrevButtonMouseEnter)&&!((Po=(Xi=G.callbacks)==null?void 0:Xi.uiInfo)!=null&&Po.onPrevButtonMouseLeave),mouseEnter:()=>{var Zi,hi,zi;(zi=(hi=(Zi=G.callbacks)==null?void 0:Zi.uiInfo)==null?void 0:hi.onPrevButtonMouseEnter)==null||zi.call(hi,Zn(Di(),wt,"prevButton",e.showControls))},mouseLeave:()=>{var Zi,hi,zi;(zi=(hi=(Zi=G.callbacks)==null?void 0:Zi.uiInfo)==null?void 0:hi.onPrevButtonMouseLeave)==null||zi.call(hi,Zn(Di(),wt,"prevButton",e.showControls))},tooltipText:gt("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),Wr=m(()=>n(as)?{id:"replayButton",type:"desktop-control-panel-left",weight:Hs.replayButton,buttonComponent:id,buttonComponentProps:{disabled:n(vr),click:Cr},tooltipText:gt("tooltip_restart"),disabled:n(vr)}:void 0),Kr=m(()=>n(Oo)?{id:"playButton",type:"desktop-control-panel-left",weight:Hs.playButton,buttonComponent:od,buttonComponentProps:{disabled:n(mr),isPlaying:n(hr),click:Be},tooltipText:n(xn),disabled:n(mr)}:void 0),Kn=m(()=>{var mt,nt,Xi,Po;return n(Oi)?{id:"nextButton",type:"desktop-control-panel-left",weight:Hs.nextButton,buttonComponent:Za,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:ro.bind(null,!0)},tooltipEnabled:!((nt=(mt=G.callbacks)==null?void 0:mt.uiInfo)!=null&&nt.onNextButtonMouseEnter)&&!((Po=(Xi=G.callbacks)==null?void 0:Xi.uiInfo)!=null&&Po.onNextButtonMouseLeave),mouseEnter:()=>{var Zi,hi,zi;(zi=(hi=(Zi=G.callbacks)==null?void 0:Zi.uiInfo)==null?void 0:hi.onNextButtonMouseEnter)==null||zi.call(hi,Zn(Di(),wt,"nextButton",e.showControls))},mouseLeave:()=>{var Zi,hi,zi;(zi=(hi=(Zi=G.callbacks)==null?void 0:Zi.uiInfo)==null?void 0:hi.onNextButtonMouseLeave)==null||zi.call(hi,Zn(Di(),wt,"nextButton",e.showControls))},tooltipText:gt("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),et=m(()=>Ii&&n(Un)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:Hs.playPrevChapterButton,buttonComponent:yc,buttonComponentProps:{disabled:n(en),click:e.playPrevChapter},tooltipText:gt("tooltip_interactive_go_back"),disabledTooltipContent:gt(Dr),disabled:n(en)}:void 0),Xt=m(()=>Ii&&n(or)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:Hs.seekToInteractiveButton,buttonComponent:wc,buttonComponentProps:{disabled:n(hn),click:e.seekToInteractive},tooltipText:gt("tooltip_interactive_seek"),disabled:n(hn),disabledTooltipContent:gt(Re())}:void 0),yi=m(()=>Ii&&n(Fn)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:Hs.interactiveGraphButton,buttonComponent:Sc,buttonComponentProps:{disabled:n(gn),click:Or.toggle,graphIsOpened:N()},tooltipText:n($n)}:void 0),Io=m(()=>n(Bn)?{id:"liveButton",type:"desktop-control-panel-left",weight:Hs.liveButton,buttonComponent:Cc,buttonComponentProps:{isLiveActive:n(bn),ariaLabel:n(ji)},tooltipText:n(ji),disabled:n(bn)&&l()===tl.PlaybackState.PLAYING}:void 0),wn=m(()=>[n(Wn),n(Wr),n(Kr),n(Kn),n(et),n(Xt),n(yi),n(Io)].filter(mt=>!!mt).sort(Ka)),qn=m(()=>n(Hn)?{id:"vkLogo",type:"desktop-control-panel-right",weight:Us.vkLogo,buttonComponent:fc,buttonComponentProps:{targetUrl:Zt(),logoClickable:e.logoClickable,click:$e},tooltipText:n(on),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),zo=m(()=>n(ei)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:Us.autoplayNext,buttonComponent:xc,tooltipText:n(xr)}:void 0),rr=m(()=>({id:"volume",type:"desktop-control-panel-right",weight:Us.volume,buttonComponent:Nm,buttonComponentProps:{click:zn,isAds:Ct()}})),ds=m(()=>n($r)?{id:"subtitles",type:"desktop-control-panel-right",weight:Us.subtitles,buttonComponent:Lm,buttonComponentProps:{isSubtitlesEnabled:n(tr),click:Tt},tooltipText:n(nr)}:void 0),Tr=m(()=>n(Fr)?{id:"settings",type:"desktop-control-panel-right",weight:Us.settings,buttonComponent:Xl,buttonComponentProps:{ref$:Fi},tooltipText:ye()?void 0:gt("tooltip_settings_off")}:void 0),ws=m(()=>ke.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:Us.context,buttonComponent:Gm,buttonComponentProps:{ariaLabel:gt("aria_label_context_menu")},className:n(Hr)?"":"out-of-view",tooltipText:n(tn)}:void 0),Ws=m(()=>n(ir)?{id:"fullscreen",type:"desktop-control-panel-right",weight:Us.fullscreen,buttonComponent:pc,buttonComponentProps:{isFullscreen:E(),click:e.toggleFullscreen},tooltipText:n(yr)}:void 0),va=m(()=>n(vt)?{id:"chromecast",type:"desktop-control-panel-right",weight:Us.chromecast,buttonComponent:vc,buttonComponentProps:{state:p(),click:gr},tooltipText:n(yn)}:void 0),ct=m(()=>[n(qn),n(zo),n(rr),n(ds),n(Tr),n(ws),n(Ws),n(va),...O()].filter(mt=>!!mt).sort(Ka)),ri=G.ui.previewTrackActive,Eo=G.ui.previewTrackDragInProgress,xi=G.ui.previewTrackAvailable,Sn=G.ui.isPreviewTrackHorizontallyAligned,Cn=m(()=>Vb({onPreviewTrackOpened:G.actions.internal.previewTrackOpened,getTimelineRef:()=>wt.timeline,isHorizontal:Ve()})),Ss=m(()=>n(Cn).progressBarY),Cs=m(()=>n(Cn).controlsY),Ui=m(()=>n(Cn).onPointerDown),Ci=m(()=>n(Cn).onPointerMove),ge=m(()=>n(Cn).onPointerUp),bt=m(()=>n(Cn).calculatedHeight),ti=m(()=>n(Cn).closePreviewTrack);Oe(()=>{ae()?ni.set(!1):n(ti)()});let jt;Vt(()=>()=>jt&&clearTimeout(jt));let ko=mt=>{ae()||!tt()||(n(Ui)(mt),jt=setTimeout(()=>{G.actions.internal.previewTrackDragStarted()},200))},lo=()=>{ae()||n(ge)(),jt&&clearTimeout(jt),Ee()&&G.actions.internal.previewTrackDragFinished()},Wo=mt=>{n(Ci)(mt),!ae()&&tt()&&!ae()&&ni.set(!0)},Ts=()=>{ni.set(!1)};var qr=X2(),Ir=ce(qr);let ga;var Ks=C(Ir);{var ha=mt=>{let nt=m(()=>n(Ss)()),Xi=m(()=>n(bt)());dv(mt,{get animatedOffsetY(){return n(nt)},get animatedPreviewTrackHeight(){return n(Xi)},get canRewindLive(){return e.canRewindLive},get isAds(){return Ct()},onTimelineMove:Wo,onTimelinePointerDown:ko,onTimelinePointerUp:lo,onTimelinePointerLeave:Ts,get previewTrackAvailable(){return tt()},get timelineRef(){return wt.timeline},set timelineRef(Po){wt.timeline=Po}})};V(Ks,mt=>{e.showControls&&mt(ha)})}var Qr=P(Ks,2),Tn=C(Qr),pl=C(Tn);$i(pl,17,()=>n(wn),mt=>mt.id,(mt,nt)=>{vp(mt,{get buttonComponent(){return n(nt).buttonComponent},get buttonComponentProps(){return n(nt).buttonComponentProps},get tooltipText(){return n(nt).tooltipText},get disabledTooltipContent(){return n(nt).disabledTooltipContent},get disabled(){return n(nt).disabled},get className(){return n(nt).className},get tooltipEnabled(){return n(nt).tooltipEnabled},get mouseEnter(){return n(nt).mouseEnter},get mouseLeave(){return n(nt).mouseLeave},get tooltipVisible(){return e.showControls},get ref(){return wt[n(nt).id]},set ref(Xi){wt[n(nt).id]=Xi}})});var _a=P(pl,2);{var Gr=mt=>{let nt=m(()=>!e.showControls),Xi=m(()=>Ct()?Te():Fe()),Po=m(()=>Ct()?At():kt());dc(mt,{get isHidden(){return n(nt)},isMobile:!1,get showDuration(){return n(Ho)},get position(){return n(Xi)},get duration(){return n(Po)},get ref(){return wt.time},set ref(Zi){wt.time=Zi}})};V(_a,mt=>{n($o)&&mt(Gr)})}var fl=P(_a,2);let md=m(()=>!n(_n));Vo(fl,{className:"w-max",get disabled(){return n(md)},get tooltipContent(){return Uo},get tooltipVisible(){return e.showControls},get ref(){return wt.episodes},set ref(mt){wt.episodes=mt},children:(mt,nt)=>{var Xi=Le(),Po=ce(Xi);{var Zi=hi=>{gc(hi,{get position(){return Fe()},get duration(){return kt()},get timeCodes(){return dt}})};V(Po,hi=>{n(_n)&&hi(Zi)})}$(mt,Xi)},$$slots:{default:!0}}),S(Tn);var ba=P(Tn,2);$i(ba,21,()=>n(ct),mt=>mt.id,(mt,nt)=>{var Xi=Le(),Po=ce(Xi);{var Zi=zi=>{vp(zi,{get buttonComponent(){return n(nt).buttonComponent},get buttonComponentProps(){return n(nt).buttonComponentProps},get tooltipText(){return n(nt).tooltipText},get disabledTooltipContent(){return n(nt).disabledTooltipContent},get disabled(){return n(nt).disabled},get className(){return n(nt).className},get tooltipVisible(){return e.showControls},get ref(){return wt[n(nt).id]},set ref(qs){wt[n(nt).id]=qs}})},hi=zi=>{let qs=m(()=>!!n(nt).disabled);ev(zi,{get id(){return n(nt).id},get testId(){return n(nt).testId},get icon(){return n(nt).icon},get ariaLabel(){return n(nt).ariaLabel},get tooltipText(){return n(nt).tooltipText},get disabledTooltipContent(){return n(nt).disabledTooltipContent},get disabled(){return n(qs)},get onClick(){return n(nt).onClick},get disableMouseupTooltipShow(){return n(nt).disableMouseupTooltipShow},get tooltipVisible(){return e.showControls},get ref(){return wt[n(nt).id]},set ref(gd){wt[n(nt).id]=gd}})};V(Po,zi=>{Ab(n(nt))?zi(Zi):zi(hi,!1)})}$(mt,Xi)}),S(ba),S(Qr),Ze(Qr,mt=>lt(mt),()=>lt()),S(Ir),Ze(Ir,mt=>Lt(mt),()=>Lt());var vd=P(Ir,2);{var ml=mt=>{bc(mt,{get ref(){return wt.interactiveTimeIndicator},set ref(nt){wt.interactiveTimeIndicator=nt}})};V(vd,mt=>{Nr&&mt(ml)})}D((mt,nt)=>{ga=ne(Ir,1,"wrapper-bottom s-1e",null,ga,mt),Ke(Qr,nt),Qr.inert=ae()},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth||Ee()}),()=>`transform: translateY(${n(Cs)()}px);`]),Ln(Tn,"clientWidth",mt=>R(ft,mt)),$(t,qr),H(),o()}var nd=require("@vkontakte/videoplayer-core/es2018");var pv=require("@vkontakte/videoplayer-shared/es2018");var J2=L('<div class="icon icon-error-stub s-1z"><div class="inner s-1z"></div></div>'),ew=L('<img class="icon s-1z" aria-hidden="true"/>'),tw={hash:"s-1z",code:".icon.s-1z{height:24px!important;width:24px!important}.inner.s-1z{background-color:var(--white);height:16px;width:16px}"};function fv(t,e){Y(t,tw);let i=h(e,"disabled",3,!1),o=h(e,"onClick",3,pv.noop),r=m(()=>o()===pv.noop),a=m(()=>n(r)||i()),l=q(!1),d=()=>{R(l,!0)},s=m(()=>n(r)?"btn-full-opacity":"");Wt(t,{get className(){return n(s)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return n(a)},get testId(){return e.testId},children:(u,f)=>{var p=Le(),v=ce(p);{var _=b=>{var w=J2();$(b,w)},y=b=>{var w=ew();D(()=>Me(w,"src",e.iconUrl)),ut("error",w,d),Ma(w),$(b,w)};V(v,b=>{n(l)?b(_):b(y,!1)})}$(u,p)},$$slots:{default:!0}})}var iw=Ie('<path d="M8.7 8.1 5.3 4.72A1 1 0 0 1 6.72 3.3L20.7 17.29a1 1 0 0 1-1.41 1.41L16 15.41V20a1 1 0 0 1-1 1c-.64 0-1.26-.25-1.72-.7L7.79 15H5a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h2.77zm2.88-2.76 1.7-1.65A2.5 2.5 0 0 1 15 3a1 1 0 0 1 1 1v5.76z"></path>');function mv(t){Je(t,{testId:"muted-icon",children:(e,i)=>{var o=iw();$(e,o)},$$slots:{default:!0}})}var Ob=require("@vkontakte/videoplayer-shared/es2018");function _p(t,e){B(e,!0);let i=h(e,"muted",3,!1),o=h(e,"click",3,Ob.noop),r=h(e,"ref",15,void 0),l=he().ui.t,d=m(()=>i()?l("tooltip_volume"):l("tooltip_volume_muted")),s=m(()=>i()?"btn-mobile-muted":"btn-mobile-unmuted");Wt(t,{get testId(){return n(s)},get click(){return o()},get ariaLabel(){return n(d)},role:"button",get ref(){return r()},set ref(u){r(u)},children:(u,f)=>{var p=Le(),v=ce(p);{var _=b=>{mv(b,{})},y=b=>{pa(b,{get size(){return"24"}})};V(v,b=>{i()?b(_):b(y,!1)})}$(u,p)},$$slots:{default:!0}}),H()}var ow=Ie('<path d="M11.64 12.37 9.07 9.8h1.03a.9.9 0 1 0 0-1.8H6.9a.9.9 0 0 0-.9.9v3.2a.9.9 0 0 0 1.8 0v-1.02l2.53 2.52.13.14a.9.9 0 0 0 1.28-1.28z"></path>'),nw=Ie('<path d="m6.36 9.63 2.57 2.57H7.9a.9.9 0 1 0 0 1.8h3.2a.9.9 0 0 0 .9-.9V9.9a.9.9 0 0 0-1.8 0v1.02L7.67 8.4l-.13-.14a.9.9 0 0 0-1.28 1.28z"></path>'),rw=Ie('<path d="M7.66 4h6.68q1.2-.01 2 .04.83.06 1.53.38a4 4 0 0 1 1.7 1.7c.24.48.34.98.39 1.54q.05.8.04 2v1.44a.9.9 0 0 1-1.8 0V9.7c0-.85 0-1.44-.04-1.9-.03-.44-.1-.68-.19-.85a2 2 0 0 0-.92-.92 2 2 0 0 0-.85-.2c-.46-.03-1.04-.03-1.9-.03H7.7c-.85 0-1.44 0-1.9.04-.44.03-.68.1-.85.19a2 2 0 0 0-.92.92c-.09.17-.16.4-.2.85-.03.46-.03 1.05-.03 1.9v2.65c0 .85 0 1.44.04 1.9.03.44.1.68.19.85a2 2 0 0 0 .92.92c.17.08.4.15.85.19.46.03 1.04.04 1.9.04h2.4a.9.9 0 0 1 0 1.8H7.66q-1.2.01-2-.05a4 4 0 0 1-1.53-.38 4 4 0 0 1-1.7-1.7 4 4 0 0 1-.39-1.53q-.05-.8-.04-2V9.65q-.01-1.2.04-2c.05-.56.15-1.06.39-1.53a4 4 0 0 1 1.7-1.7c.47-.24.97-.34 1.53-.39q.8-.05 2-.04M13 16.8c0-.98 0-1.47.19-1.84a2 2 0 0 1 .77-.77c.37-.19.86-.19 1.84-.19h3.4c.98 0 1.47 0 1.85.19q.5.27.76.77c.19.37.19.86.19 1.84v.4c0 .98 0 1.47-.19 1.85a2 2 0 0 1-.77.76c-.37.19-.86.19-1.84.19h-3.4c-.98 0-1.47 0-1.85-.19a2 2 0 0 1-.76-.76c-.19-.38-.19-.87-.19-1.85z"></path><!>',1);function vv(t,e){let i=h(e,"isActive",3,!1),o=m(()=>i()?"pip-icon--active":"pip-icon");Je(t,{get testId(){return n(o)},children:(r,a)=>{var l=rw(),d=P(ce(l));{var s=f=>{var p=ow();$(f,p)},u=f=>{var p=nw();$(f,p)};V(d,f=>{i()?f(s):f(u,!1)})}$(r,l)},$$slots:{default:!0}})}var Bb=require("@vkontakte/videoplayer-shared/es2018");function gv(t,e){B(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"isPictureInPictureActive",3,!1),r=h(e,"click",3,Bb.noop),a=j("menu_pip");Wt(t,{testId:"btn-pip",get ariaLabel(){return a},get click(){return r()},get ref(){return i()},set ref(l){i(l)},children:(l,d)=>{vv(l,{get isActive(){return o()}})},$$slots:{default:!0}}),H()}var hv=require("@vkontakte/videoplayer-shared/es2018");var sw=(t,e,i,o)=>{n(e)&&i.onDisabledPlayPrevChapterClick(n(o))},aw=(t,e,i,o)=>{n(e)&&i.onDisabledSeekToInteractiveClick(n(o))},lw=L("<div><!></div>"),dw=L("<div><!></div>"),cw=L("<div><!></div>"),uw=L("<!> <!> <!>",1),pw=L("<div></div> <div></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),fw=L('<div class="wrapper-middle s-1c"><!></div>'),mw=L("<div><!></div> <!> <div><!></div>",1),vw=L('<div aria-hidden="true">·</div> <!>',1),gw=L('<!> <!> <div><div><div class="controls mobile s-1c" data-testid="bottom-controls"><div class="controls-group contain s-1c"><!> <!> <!> <!></div> <div class="controls-group s-1c"><!> <!> <!></div></div> <!></div></div> <!>',1),hw={hash:"s-1c",code:".wrapper-bottom.s-1c{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-1c>:where(.s-1c){pointer-events:auto}.wrapper-bottom.ads-timeline-mobile.s-1c{height:9px;padding:0 4px 4px}.wrapper-middle.s-1c{align-items:center;left:50%;top:50%;transform:translate(-50%,-50%)}.wrapper-middle.s-1c,.wrapper-top-right.s-1c{display:flex;position:absolute;transition:opacity var(--controls-transition-duration);z-index:var(--controls-container-z-index)}.wrapper-top-right.s-1c{right:8px;top:4px}.wrapper-top-left.s-1c{left:8px;position:absolute;top:4px;z-index:var(--controls-container-z-index)}.wrapper-middle-left.s-1c,.wrapper-middle-left-second.s-1c,.wrapper-middle-right.s-1c{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-1c{left:12px}.wrapper-middle-left-second.s-1c{left:64px}.wrapper-middle-right.s-1c{right:12px}.controls.s-1c{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-1c,.controls-group.s-1c{display:flex}.controls-group.contain.s-1c{min-width:0}.controls-group.s-1c >:not(:first-child){margin-left:8px}.hidden.s-1c{opacity:0;visibility:hidden}.controls-hidden.s-1c{transform:translateY(100%);visibility:visible}.wrapper-bottom.no-smooth.s-1c{transition:none}.overlay-mobile.s-1c{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-1c,.wrapper-top-right.fullscreen.s-1c{top:16px}.controls-wrapper.fullscreen.s-1c{bottom:30px;position:absolute;width:calc(100% - 8px)}}@media screen and (orientation:landscape){.wrapper-top-left.fullscreen.s-1c{left:44px;top:12px}.wrapper-top-right.fullscreen.s-1c{right:44px;top:12px}.wrapper-middle-left.fullscreen.s-1c{left:44px}.wrapper-middle-left-second.fullscreen.s-1c{left:96px}.wrapper-middle-right.fullscreen.s-1c{right:44px}.controls-wrapper.fullscreen.s-1c{bottom:32px;left:36px;position:absolute;right:36px;width:calc(100% - 72px)}}"};function _v(t,e){var rn,sn;B(e,!0),Y(t,hw);let[i,o]=De(),r=()=>x(Pi,"$seekToInteractiveDisabledTooltip$",i),a=()=>x(Bt,"$disabledControls$",i),l=()=>x(Ht,"$playbackState$",i),d=()=>x(Zo,"$adPlaybackState",i),s=()=>x(G,"$isEnded$",i),u=()=>x(St,"$playerSize",i),f=()=>x(Tt,"$scrubbingInProgress",i),p=()=>x(Yi,"$chromecastState$",i),v=()=>x(Ne,"$isPictureInPictureActive",i),_=()=>x(Qe,"$pictureInPictureType$",i),y=()=>x(fe,"$mobileNotReportControlHidden$",i),b=()=>x(bi,"$chromecastHidden",i),w=()=>x(lt,"$playerPhase",i),I=()=>x(no,"$pipHidden",i),T=()=>x(We,"$currentGridType$",i),N=()=>x(di,"$vkLogoHidden",i),A=()=>x(pi,"$volumeHidden",i),E=()=>x(Pe,"$isLive$",i),k=()=>x(rt,"$settingsMenuVisible",i),Q=()=>x($e,"$isRewindableLive$",i),F=()=>x(Be,"$isActiveLive$",i),z=()=>x(Ot,"$isAudioAvailable$",i),X=()=>x(xe,"$muted$",i),se=()=>x(ke,"$volume$",i),Z=()=>x(gt,"$isInteractiveTime$",i),oe=()=>x(or,"$settingButtonRef$",i),J=()=>x(dt,"$startedByKeyboard$",i),Ce=()=>x(Jo,"$isFullscreen",i),pe=()=>x(Ft,"$additionalButtons$",i),ee=()=>x(Ti,"$autoplayNextToggleHidden",i),_e=()=>x(pt,"$crashed$",i),we=()=>x(ci,"$settingsHidden",i),ve=()=>x(fn,"$graphIsOpened$",i),ue=()=>x(vo,"$adPosition",i),Ge=()=>x(fi,"$adDuration",i),U=()=>x(Zt,"$position$",i),O=()=>x(Ct,"$duration$",i),Ye=h(e,"playerControlsWrapperRef",15,void 0),K=h(e,"playerControlsRef",15,void 0),ae=h(e,"isAds",3,!1),ye=h(e,"logoTargetUrl",3,""),He=h(e,"isOneVideoPlaylist",3,!1),ot=h(e,"customFullscreenSupported",3,!0),re=he(),de=_o(),Re=Rt(),Ve=re.actions.internal.toggleMuted,tt=re.actions.internal.togglePlay,Ee=re.actions.internal.pause,Te=re.actions.internal.prevVideoClick,Fe=re.actions.internal.nextVideoClick,At=re.actions.internal.checkFullscreenSupport,kt=(rn=re.callbacks)==null?void 0:rn.onAudioDoesNotExistHint,Lt=(sn=re.callbacks)==null?void 0:sn.onAudioDisabledHint,lt=re.playerPhase,Ct=re.state.duration$,Zt=re.state.positionWithScrubbing$,Ht=re.state.playbackState$,Ot=re.state.isAudioAvailable$,Kt=re.state.isAudioDisabled,G=re.state.isEnded$,Pe=re.state.isLive$,ke=re.state.volume$,xe=re.state.muted$,Be=re.state.isActiveLive$,$e=re.state.isRewindableLive$,Tt=re.ui.scrubbingInProgress,fe=re.ui.mobileNotReportControlHidden$,{isActive$:Ne,type$:Qe}=de.pictureInPicture$,rt=re.ui.settingsMenu.visible$,qt=re.ui.settingsMenu.openedByBtnKeyboard$,Nt=re.ui.controls,{volume:pi,vkLogo:di,autoplayNextToggle:Ti,pip:no,settings:ci,chromecast:bi}=re.ui.hiddenControls,xt=re.actions.internal.getVideoEpisodes(),ui=re.webApi.pictureInPictureApi,Yi=re.state.chromecastState$,pt=re.state.crashed$,Bt=Nt.disabledControls$,dt=re.ui.startedByKeyboard$,We=re.ui.currentGridType$,fi=re.ads.duration,vo=re.ads.position,Zo=re.ads.playbackState,Jo=re.ui.isFullscreen,St=re.ui.playerSize,Ft=re.ui.additionalButtonsDeprecated$,W=re.actions.internal.getVideoElement,Mt=re.actions.internal.replayInteractive,ni=re.state.isInteractive,gt=re.state.isInteractiveTime$,Jt=re.state.showInteractiveGraph,_t=re.state.showSeekToInteractive,st=re.state.showPlayPrevChapter,Ni=re.state.showInteractiveTimeIndicator,Pi=de.seekToInteractiveDisabledTooltip$,fn=de.graphIsOpened$,mn=re.ui.controlBlocks,Ai=m(()=>j(re.state.playPrevChapterDisabledTooltip)),Di=m(()=>j(r())),Dn=m(()=>a().has("EPISODE_BUTTON")),bo=m(()=>a().has("GRAPH_BUTTON")),ro=m(()=>a().has("SEEK_TO_INTERACTIVE_BUTTON")),Ii=m(()=>a().has("PLAY_BUTTON")),No=m(()=>a().has("REPLAY_BUTTON")),Do=m(()=>a().has("PLAY_PREV_CHAPTER_BUTTON")),vn=m(()=>l()===nd.PlaybackState.PLAYING),Rr=m(()=>d()==="paused"),Nr=m(()=>s()&&!ae()&&!ni),Dr=m(()=>!s()||ae()),$s=m(()=>e.showNextPrevButtons&&!ae()&&e.prevButtonActive),Or=m(()=>e.showNextPrevButtons&&!ae()&&e.nextButtonActive),er=m(()=>u().width>300),Br=m(()=>u().width>400),gn=m(f),hn=m(()=>p()!==nd.ChromecastState.NOT_AVAILABLE&&!(v()&&_()===1)&&!y()&&!ni&&!b()),mr=m(()=>w()==="LiveWaitingStart"),vr=m(()=>!!ui&&p()!==nd.ChromecastState.CONNECTED&&!y()&&(_()===1&&n(mr)||!n(mr))&&!n(gn)&&!ni&&!I()),en=q(!1);Vt(()=>{let Ue=ui==null?void 0:ui.info.isActive$.subscribe(It=>R(en,It,!0));return()=>Ue==null?void 0:Ue.unsubscribe()});let gr=m(()=>!n(gn)&&to(T(),"s")),hr=m(()=>!e.logoHidden&&u().width>350&&!N()),tr=m(()=>Re.features.fullscreen&&At()&&!(v()&&_()===1)&&(ni?ot():!0)&&!n(gn)&&!n(en)),On=m(()=>!A()&&!n(gn)),as=m(()=>(!E()||ae())&&u().width>260&&!n(gn)&&!(Re.features.interactiveHideTime&&ni)),Oo=m(()=>k()||e.showControls),_r=m(()=>!ae()&&!E()&&!!(xt!=null&&xt.length)&&n(er)&&!n(Dn)&&!n(gn)),Oi=m(()=>!Q()||!!F()),br=m(()=>Jt&&to(T(),"m")),Bn=m(()=>!z()||X()||se()===0),vt=si({}),ei=si({}),$r=(0,hv.debounceFn)(td,260),Hr=(0,hv.debounceFn)(gp,260);Oe(()=>{u(),Z(),$r(W(),Nt,vt,e.showControls),Hr(W(),mn,ei,e.showControls)});let Fr=()=>re.actions.internal.toggleChromecast();async function Hn(){ui!=null&&ui.isActive()?await(ui==null?void 0:ui.exit()):await(ui==null?void 0:ui.request())}function ir(){da({isAudioDisabled:Kt,audioDisabledHintCallback:Lt,isAudioAvailable:z(),audioIsNotExistHintCallback:kt,isAds:ae()})&&Ve()}let $o=q(""),Fn=(Ue,It)=>{if(!Ue){R($o,j("tooltip_live"),!0);return}It&&It===nd.PlaybackState.PAUSED&&R($o,j("tooltip_play"),!0)};Oe(()=>{Fn(n(Oi),l())});let or=le();Oe(()=>{oe()&&ql(oe(),k(),qt)}),Oe(()=>{mp(dt,J(),vt.playButton)});var Un=gw(),_n=ce(Un);{var bn=Ue=>{var It=pw(),li=ce(It);let Ho;var So=P(li,2);let Fo;Ze(So,ct=>ei.topLeft=ct,()=>ei==null?void 0:ei.topLeft);var Fi=P(So,2);let Co;var zn=C(Fi);$i(zn,1,pe,({iconUrl:ct,ariaLabel:ri,testId:Eo,onClick:xi,tooltip:Sn})=>ct,(ct,ri)=>{let Eo=()=>n(ri).iconUrl,xi=()=>n(ri).ariaLabel,Sn=()=>n(ri).testId,Cn=()=>n(ri).onClick,Ss=()=>n(ri).tooltip,Cs=m(()=>{var Ui;return(Ui=xi())!=null?Ui:Ss()});fv(ct,{get iconUrl(){return Eo()},get ariaLabel(){return n(Cs)},get testId(){return Sn()},get onClick(){return Cn()}})});var Cr=P(zn,2);{var To=ct=>{xc(ct,{get ref(){return vt.autoplayNextToggle},set ref(ri){vt.autoplayNextToggle=ri}})};V(Cr,ct=>{e.showAutoplayNext&&!He()&&!ee()&&ct(To)})}var ao=P(Cr,2);{var xn=ct=>{vc(ct,{isMobile:!0,click:Fr,get state(){return p()},get ref(){return vt.chromecast},set ref(ri){vt.chromecast=ri}})};V(ao,ct=>{n(hn)&&ct(xn)})}var Uo=P(ao,2);{var Wn=ct=>{gv(ct,{click:Hn,get isPictureInPictureActive(){return v()},get ref(){return vt.pip},set ref(ri){vt.pip=ri}})};V(Uo,ct=>{n(vr)&&ct(Wn)})}var Wr=P(Uo,2);{var Kr=ct=>{Xl(ct,{get ref$(){return or}})};V(Wr,ct=>{_e()&&!we()&&ct(Kr)})}var Kn=P(Wr,2);{var et=ct=>{fc(ct,{get click(){return Ee},get targetUrl(){return ye()},get logoClickable(){return e.logoClickable},get ref(){return vt.vkLogo},set ref(ri){vt.vkLogo=ri}})};V(Kn,ct=>{n(hr)&&ct(et)})}S(Fi),Ze(Fi,ct=>ei.topRight=ct,()=>ei==null?void 0:ei.topRight);var Xt=P(Fi,2);let yi;var Io=C(Xt);{var wn=ct=>{let ri=m(()=>Te.bind(null,!0));Za(ct,{get click(){return n(ri)},type:"prev",isMobile:!0,get ref(){return vt.prevButton},set ref(Eo){vt.prevButton=Eo}})};V(Io,ct=>{n($s)&&ct(wn)})}var qn=P(Io,2);{var zo=ct=>{od(ct,{get disabled(){return n(Ii)},get click(){return tt},isMobile:!0,get isPlaying(){return n(vn)},get ref(){return vt.playButton},set ref(ri){vt.playButton=ri}})};V(qn,ct=>{n(Dr)&&ct(zo)})}var rr=P(qn,2);{var ds=ct=>{id(ct,{get disabled(){return n(No)},get click(){return tt},isMobile:!0,get ref(){return vt.replayButton},set ref(ri){vt.replayButton=ri}})};V(rr,ct=>{n(Nr)&&ct(ds)})}var Tr=P(rr,2);{var ws=ct=>{let ri=m(()=>Fe.bind(null,!0));Za(ct,{get click(){return n(ri)},type:"next",isMobile:!0,get ref(){return vt.nextButton},set ref(Eo){vt.nextButton=Eo}})};V(Tr,ct=>{n(Or)&&ct(ws)})}S(Xt),Ze(Xt,ct=>ei.middle=ct,()=>ei==null?void 0:ei.middle);var Ws=P(Xt,2);{var va=ct=>{var ri=uw(),Eo=ce(ri);{var xi=Ui=>{var Ci=lw();let ge;Ci.__click=[sw,Do,e,Ai];var bt=C(Ci);let ti=m(()=>!e.showControls);yc(bt,{get hidden(){return n(ti)},get disabled(){return n(Do)},get click(){return e.playPrevChapter},get ref(){return vt.playPrevChapterButton},set ref(jt){vt.playPrevChapterButton=jt}}),S(Ci),D(jt=>ge=ne(Ci,1,"wrapper-middle-left s-1c",null,ge,jt),[()=>({fullscreen:Ce(),hidden:!e.showControls})]),$(Ui,Ci)};V(Eo,Ui=>{st&&Ui(xi)})}var Sn=P(Eo,2);{var Cn=Ui=>{var Ci=dw();let ge;var bt=C(Ci);let ti=m(()=>!e.showControls&&!ve());Sc(bt,{get hidden(){return n(ti)},get disabled(){return n(bo)},get click(){return fn.toggle},get graphIsOpened(){return ve()},get ref(){return vt.interactiveGraphButton},set ref(jt){vt.interactiveGraphButton=jt}}),S(Ci),D(jt=>ge=ne(Ci,1,Hd(st?"wrapper-middle-left-second":"wrapper-middle-left"),"s-1c",ge,jt),[()=>({fullscreen:Ce(),hidden:!e.showControls&&!ve()})]),$(Ui,Ci)};V(Sn,Ui=>{n(br)&&Ui(Cn)})}var Ss=P(Sn,2);{var Cs=Ui=>{var Ci=cw();let ge;Ci.__click=[aw,ro,e,Di];var bt=C(Ci);let ti=m(()=>!e.showControls);wc(bt,{get hidden(){return n(ti)},get disabled(){return n(ro)},get click(){return e.seekToInteractive},get ref(){return vt.seekToInteractiveButton},set ref(jt){vt.seekToInteractiveButton=jt}}),S(Ci),D(jt=>ge=ne(Ci,1,"wrapper-middle-right s-1c",null,ge,jt),[()=>({fullscreen:Ce(),hidden:!e.showControls})]),$(Ui,Ci)};V(Ss,Ui=>{_t&&Ui(Cs)})}$(ct,ri)};V(Ws,ct=>{ni&&!f()&&ct(va)})}D((ct,ri,Eo,xi)=>{Ho=ne(li,1,"overlay-mobile s-1c",null,Ho,ct),Fo=ne(So,1,"wrapper-top-left s-1c",null,Fo,ri),Co=ne(Fi,1,"wrapper-top-right s-1c",null,Co,Eo),yi=ne(Xt,1,"wrapper-middle s-1c",null,yi,xi)},[()=>({hidden:!n(Oo)}),()=>({hidden:!e.showControls,fullscreen:Ce()}),()=>({hidden:!e.showControls&&!y(),fullscreen:Ce()}),()=>({hidden:!e.showControls||f()||e.endScreenShown&&e.showNextPrevButtons})]),$(Ue,It)};V(_n,Ue=>{ae()||Ue(bn)})}var $n=P(_n,2);{var tn=Ue=>{var It=mw(),li=ce(It);let Ho;var So=C(li);_p(So,{get muted(){return X()},click:ir,get ref(){return vt.volume},set ref(To){vt.volume=To}}),S(li);var Fo=P(li,2);{var Fi=To=>{var ao=fw(),xn=C(ao);let Uo=m(()=>!n(Rr));od(xn,{get disabled(){return n(Ii)},get click(){return tt},isMobile:!0,get isPlaying(){return n(Uo)},get ref(){return vt.playButton},set ref(Wn){vt.playButton=Wn}}),S(ao),$(To,ao)};V(Fo,To=>{n(Rr)&&To(Fi)})}var Co=P(Fo,2);let zn;var Cr=C(Co);Tc(Cr,{get position(){return ue()},get duration(){return Ge()}}),S(Co),D((To,ao)=>{Ho=ne(li,1,"wrapper-top-right s-1c",null,Ho,To),zn=ne(Co,1,"wrapper-bottom ads-timeline-mobile s-1c",null,zn,ao)},[()=>({fullscreen:Ce()}),()=>({fullscreen:Ce()})]),$(Ue,It)};V($n,Ue=>{ae()&&d()!=="inactive"&&Ue(tn)})}var Bi=P($n,2);let ji;var on=C(Bi);let nr;var yr=C(on),yn=C(yr),xr=C(yn);{var ft=Ue=>{Vo(Ue,{get disabled(){return n(No)},get ref(){return vt.replayButton},set ref(It){vt.replayButton=It},children:(It,li)=>{id(It,{get disabled(){return n(No)},get click(){return Mt}})},$$slots:{default:!0}})};V(xr,Ue=>{ni&&Ue(ft)})}var wt=P(xr,2);{var so=Ue=>{Vo(Ue,{get ref(){return vt.liveButton},set ref(It){vt.liveButton=It},children:(It,li)=>{Cc(It,{get isLiveActive(){return n(Oi)},isMobile:!0,get ariaLabel(){return n($o)}})},$$slots:{default:!0}})};V(wt,Ue=>{!ae()&&E()&&Ue(so)})}var go=P(wt,2);{var nn=Ue=>{let It=m(()=>ae()?ue():U()),li=m(()=>ae()?Ge():O()),Ho=m(()=>!e.showControls);dc(Ue,{get showDuration(){return n(Br)},get position(){return n(It)},get duration(){return n(li)},isMobile:!0,get isHidden(){return n(Ho)},get ref(){return vt.time},set ref(So){vt.time=So}})};V(go,Ue=>{n(as)&&Ue(nn)})}var yo=P(go,2);let xo=m(()=>!n(_r));Vo(yo,{className:"w-max",get disabled(){return n(xo)},get ref(){return vt.episodes},set ref(Ue){vt.episodes=Ue},children:(Ue,It)=>{var li=Le(),Ho=ce(li);{var So=Fo=>{var Fi=vw(),Co=P(ce(Fi),2);gc(Co,{get position(){return U()},get duration(){return O()},get timeCodes(){return xt}}),$(Fo,Fi)};V(Ho,Fo=>{n(_r)&&Fo(So)})}$(Ue,li)},$$slots:{default:!0}}),S(yn),Ze(yn,Ue=>ei.bottomLeft=Ue,()=>ei==null?void 0:ei.bottomLeft);var Ei=P(yn,2),wo=C(Ei);{var Ur=Ue=>{Vo(Ue,{get ref(){return vt.volume},set ref(It){vt.volume=It},children:(It,li)=>{_p(It,{get muted(){return n(Bn)},click:ir})},$$slots:{default:!0}})};V(wo,Ue=>{n(On)&&Ue(Ur)})}var wr=P(wo,2);{var ys=Ue=>{Vo(Ue,{get ref(){return vt.settings},set ref(It){vt.settings=It},children:(It,li)=>{Xl(It,{get ref$(){return or}})},$$slots:{default:!0}})};V(wr,Ue=>{n(gr)&&Ue(ys)})}var Hi=P(wr,2);{var xs=Ue=>{Vo(Ue,{get ref(){return vt.fullscreen},set ref(It){vt.fullscreen=It},children:(It,li)=>{pc(It,{get click(){return e.toggleFullscreen},get isFullscreen(){return Ce()}})},$$slots:{default:!0}})};V(Hi,Ue=>{n(tr)&&Ue(xs)})}S(Ei),Ze(Ei,Ue=>ei.bottomRight=Ue,()=>ei==null?void 0:ei.bottomRight),S(yr),Ze(yr,Ue=>K(Ue),()=>K());var ls=P(yr,2);let Sr=m(()=>!e.showControls);el(ls,{get isHidden(){return n(Sr)},get isAds(){return ae()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return Q()},get ref(){return vt.timeline},set ref(Ue){vt.timeline=Ue}}),S(on),Ze(on,Ue=>ei.bottom=Ue,()=>ei==null?void 0:ei.bottom),S(Bi),Ze(Bi,Ue=>Ye(Ue),()=>Ye());var Bo=P(Bi,2);{var zr=Ue=>{bc(Ue,{get ref(){return vt.interactiveTimeIndicator},set ref(It){vt.interactiveTimeIndicator=It}})};V(Bo,Ue=>{Ni&&Ue(zr)})}D((Ue,It)=>{ji=ne(Bi,1,"wrapper-bottom mobile s-1c",null,ji,Ue),nr=ne(on,1,"controls-wrapper s-1c",null,nr,It)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth}),()=>({fullscreen:Ce()})]),$(t,Un),H(),o()}je(["click"]);function Ic(t,e){B(e,!0);let[i,o]=De(),r=()=>x(I,"$isMobile",i),a=h(e,"bottomNoSmooth",3,!1),l=h(e,"playerControlsWrapperRef",15,void 0),d=h(e,"playerControlsRef",15,void 0),s=h(e,"isAds",3,!1),u=h(e,"logoTargetUrl",3,""),f=h(e,"showAutoplayNext",3,!1),p=h(e,"isOneVideoPlaylist",3,!1),v=h(e,"customFullscreenSupported",3,!0),_=h(e,"endScreenShown",3,!1),y=h(e,"onDisabledPlayPrevChapterClick",3,bv.noop),b=h(e,"onDisabledSeekToInteractiveClick",3,bv.noop),I=he().ui.isMobile,T=q(!1);Vt(()=>{let k=setTimeout(()=>R(T,!0),0);return()=>clearTimeout(k)});var N=Le(),A=ce(N);{var E=k=>{var Q=Le(),F=ce(Q);{var z=se=>{_v(se,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return a()},get showControls(){return e.showControls},get isAds(){return s()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},get showAutoplayNext(){return f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get isOneVideoPlaylist(){return p()},get customFullscreenSupported(){return v()},get endScreenShown(){return _()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return y()},get onDisabledSeekToInteractiveClick(){return b()},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(Z){l(Z)},get playerControlsRef(){return d()},set playerControlsRef(Z){d(Z)}})},X=se=>{uv(se,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return a()},get showControls(){return e.showControls},get isAds(){return s()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},get isOneVideoPlaylist(){return p()},get showAutoplayNext(){return f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get customFullscreenSupported(){return v()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(Z){l(Z)},get playerControlsRef(){return d()},set playerControlsRef(Z){d(Z)}})};V(F,se=>{r()?se(z):se(X,!1)})}$(k,Q)};V(A,k=>{n(T)&&k(E)})}$(t,N),H(),o()}var _w=Ie('<path d="M23.75 31.2v-5.45l-11.84 6.7a1.45 1.45 180 01-2.16-1.25v-14.4a1.45 1.45 180 012.16-1.26l11.84 6.7v-5.44a1.45 1.45 180 012.16-1.26l12.7 7.19a1.45 1.45 180 010 2.52l-12.7 7.2a1.45 1.45 180 01-2.16-1.27Z"></path>');function Ec(t,e){B(e,!0);let i=m(()=>e.reversed?"transform:scaleX(-1);transform-origin:50% 0;":""),o=m(()=>`${un(e.size)}${n(i)}`);Je(t,{get width(){return"48"},get height(){return"48"},get fill(){return e.fill},get style(){return n(o)},get testId(){return e.testId},get shadow(){return e.shadow},children:(r,a)=>{var l=_w();$(r,l)},$$slots:{default:!0}}),H()}var bw=Ie('<path d="M32.46 9.53a1.16 1.16 90 010 1.96l-7.66 4.83c-.78.49-1.8-.07-1.8-.98v-3.3a14 14 90 1014.1 18.93 1.5 1.5 90 012.8 1.06 17 17 90 11-16.9-23V5.66c0-.91 1.03-1.47 1.8-.98z"></path>');function $v(t,e){B(e,!0);let i=h(e,"reversed",3,!1),o=m(()=>i()?"transform:scaleX(-1);transform-origin: 50% 0;":void 0),r=m(()=>`seek-icon-${i()?"backward":"forward"}`);Je(t,{get width(){return"48"},get height(){return"48"},get style(){return n(o)},get testId(){return n(r)},get shadow(){return e.shadow},children:(a,l)=>{var d=bw();$(a,d)},$$slots:{default:!0}}),H()}var $w=L('<span class="hot-key-helpers-text s-x"> </span>'),yw=L('<div data-testid="hotkey-helper-icon" class="s-x"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),xw=L("<div><!></div>"),ww={hash:"s-x",code:'.hot-key-helpers-container.s-x{align-items:center;animation:s-x-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-x{left:calc(25% - 100px)}.hot-key-helpers-container--right.s-x{left:calc(75% - 100px)}.hot-key-helpers-text.s-x{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-x{animation:s-x-fadeOut ease var(--controls-transition-duration);height:0;visibility:hidden;width:0}@keyframes s-x-fadeIn{0%{opacity:0}to{opacity:1}}@keyframes s-x-fadeOut{0%{opacity:1}to{opacity:0}}'};function yv(t,e){B(e,!0),Y(t,ww);let[i,o]=De(),r=()=>x(e.data,"$data",i),a=he(),{features:l}=Rt(),d=a.ui.t,s=m(()=>!r()),u=m(()=>{var I;return((I=r())==null?void 0:I.type)==="BACKWARD_SEEK"}),f=m(()=>{var I;return((I=r())==null?void 0:I.type)==="FORWARD_SEEK"}),p=m(()=>{var I;return(I=r())==null?void 0:I.type}),v=m(()=>{var I,T;return(I=r())!=null&&I.t?d(r().t.key,{value:r().t.value||""}):(T=r())==null?void 0:T.text});var _=xw();let y;var b=C(_);{var w=I=>{var T=yw(),N=ce(T),A=C(N);{var E=K=>{let ae=m(()=>n(p)==="BACKWARD_SEEK");$v(K,{get reversed(){return n(ae)},shadow:!0})};V(A,K=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(n(p))&&K(E)})}var k=P(A,2);{var Q=K=>{Fs(K,{get size(){return"48"},shadow:!0})};V(k,K=>{n(p)==="PAUSE"&&!l.playbackStatusShow&&K(Q)})}var F=P(k,2);{var z=K=>{Vn(K,{get size(){return"48"},shadow:!0})};V(F,K=>{n(p)==="PLAY"&&!l.playbackStatusShow&&K(z)})}var X=P(F,2);{var se=K=>{$c(K,{get size(){return"48"},shadow:!0})};V(X,K=>{n(p)==="REPLAY"&&!l.playbackStatusShow&&K(se)})}var Z=P(X,2);{var oe=K=>{ua(K,{get size(){return"48"},type:"off",shadow:!0})};V(Z,K=>{n(p)==="SUBTITLES_OFF"&&K(oe)})}var J=P(Z,2);{var Ce=K=>{ua(K,{get size(){return"48"},shadow:!0})};V(J,K=>{n(p)==="SUBTITLES_ON"&&K(Ce)})}var pe=P(J,2);{var ee=K=>{let ae=m(()=>n(p)==="RATE_DOWN");Ec(K,{get size(){return"48"},get reversed(){return n(ae)},testId:"rate-change-icon",shadow:!0})};V(pe,K=>{["RATE_DOWN","RATE_UP"].includes(n(p))&&K(ee)})}var _e=P(pe,2);{var we=K=>{let ae=m(()=>n(p)==="EPISODE_PREV");fa(K,{get size(){return"48"},get reversed(){return n(ae)},shadow:!0})};V(_e,K=>{["EPISODE_PREV","EPISODE_NEXT"].includes(n(p))&&K(we)})}var ve=P(_e,2);{var ue=K=>{pa(K,{get size(){return"48"},volume:0,shadow:!0})};V(ve,K=>{n(p)==="MUTE"&&K(ue)})}var Ge=P(ve,2);{var U=K=>{pa(K,{get size(){return"48"},volume:1,shadow:!0})};V(Ge,K=>{n(p)==="VOLUME"&&K(U)})}S(N);var O=P(N,2);{var Ye=K=>{var ae=$w(),ye=C(ae,!0);S(ae),D(()=>me(ye,n(v))),$(K,ae)};V(O,K=>{n(v)&&K(Ye)})}D(()=>Me(N,"data-type",n(p))),$(I,T)};V(b,I=>{!n(s)&&n(p)&&I(w)})}S(_),D(I=>y=ne(_,1,"hot-key-helpers-container s-x",null,y,I),[()=>({hidden:n(s),"hot-key-helpers-container--left":n(u),"hot-key-helpers-container--right":n(f)})]),$(t,_),H(),o()}var Sw=(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}},Cw=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},Tw=L('<div tabindex="0" role="button"><div class="button-block s-p" aria-hidden="true"><div class="button-row s-p"><div class="button button-up s-p"><!></div> <div class="button button-right s-p"><!></div></div> <div class="button-row s-p"><div class="button button-left s-p"><!></div> <div class="button button-down s-p"><!></div></div></div></div>'),Iw={hash:"s-p",code:".immersive-controls.s-p{background-color:rgba(0,0,0,.56);border-radius:8px;display:flex;flex-direction:row;height:56px;left:10px;position:absolute;top:10px;transition-duration:var(--controls-transition-duration);transition-property:top,left;transition-timing-function:var(--controls-transition-fn);width:56px}.immersive-controls.m-shifted.s-p{left:20px;top:50px}.button-block.s-p{height:40px;margin:auto;transform:rotate(45deg);width:40px}.button-row.s-p{display:flex;flex-direction:row;position:relative}.button.s-p{cursor:pointer;height:20px;text-align:center;width:20px}.button.s-p svg{opacity:.7;transition:opacity .2s linear}.button.button-up.s-p svg{transform:rotate(-45deg) translate(-1px,-1px)}.button.button-right.s-p svg{transform:rotate(45deg) translate(1px,-1px)}.button.button-down.s-p svg{transform:rotate(135deg) translate(1px,-3px)}.button.button-left.s-p svg{transform:rotate(-135deg) translate(-1px,-3px)}.button.s-p:hover svg{opacity:1}"};function kc(t,e){B(e,!0),Y(t,Iw);let i=h(e,"isShifted",3,!1),o=he(),r=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),a=()=>{o.actions.internal.startCameraManualRotation(0,1)},l=()=>{o.actions.internal.startCameraManualRotation(0,-1)},d=()=>{o.actions.internal.startCameraManualRotation(1,0)},s=()=>{o.actions.internal.startCameraManualRotation(-1,0)},u=()=>(o.actions.internal.stopCameraManualRotation(),null),f=j("aria_label_spherical_control");var p=Tw();let v;p.__keydown=[Sw,r,a,l,s,d],p.__keyup=[Cw,r,u];var _=C(p),y=C(_),b=C(y);b.__mousedown=a,b.__mouseup=u;var w=C(b);Mr(w,{direction:"up",useBtnColor:!0}),S(b);var I=P(b,2);I.__mousedown=d,I.__mouseup=u;var T=C(I);Mr(T,{direction:"up",useBtnColor:!0}),S(I),S(y);var N=P(y,2),A=C(N);A.__mousedown=s,A.__mouseup=u;var E=C(A);Mr(E,{direction:"up",useBtnColor:!0}),S(A);var k=P(A,2);k.__mousedown=l,k.__mouseup=u;var Q=C(k);Mr(Q,{direction:"up",useBtnColor:!0}),S(k),S(N),S(_),S(p),D(F=>{v=ne(p,1,"immersive-controls s-p",null,v,F),Me(p,"aria-label",f)},[()=>({"m-shifted":i()})]),ut("mouseleave",b,u),ut("mouseleave",I,u),ut("mouseleave",A,u),ut("mouseleave",k,u),$(t,p),H()}je(["keydown","keyup","mousedown","mouseup"]);var zs=require("@vkontakte/videoplayer-shared/es2018");var Hb=(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=Hb(1e3);this.subscriptions=new zs.Subscription;this.isAuto=!1;this.isLive=!1;this.captions$=new zs.ValueSubject([]);this.captionsPrepared$=new zs.ValueSubject([])}subscribe(){return this.subscriptions.add(this.captions$.pipe((0,zs.filter)(()=>this.isEnabled()),(0,zs.filterChanged)()).subscribe(e=>{this.processCaptions(e)})),this}setIsAuto(e){this.isAuto=e}setIsLive(e){this.isLive=e}setCaptions(e){this.captions$.next(e)}destroy(){this.subscriptions.unsubscribe(),this.flickeringTimeout.clear()}isEnabled(){return this.isAuto&&!this.isLive}processCaptions(e){if(!e.length){this.flickeringTimeout.add(()=>{this.captionsPrepared$.next([])});return}this.flickeringTimeout.clear();let i=[],o=e.length>1&&e[0].type!=="timestamp"&&e[1].type!=="timestamp";o&&i.push([{value:String(e[0].value),timeAppeared:null}]),i.push(e.reduce((r,{type:a,value:l},d)=>(o&&!d||(a==="timestamp"?r.push({timeAppeared:Number(l),value:""}):r.length===0?r.push({value:String(l)}):r[r.length-1].value=String(l)),r),[])),this.captionsPrepared$.next(i)}};var Ew=L('<span class="caption-line s-a"><span class="caption-segment s-a"> </span></span>'),kw=L('<span class="caption-line s-a"><span class="caption-segment s-a"></span></span>'),Pw=L('<span class="caption-line s-a"><span class="caption-segment s-a"> </span></span>'),Aw=L('<div><span class="caption s-a"><!></span></div>'),Lw=L("<div><!></div>"),Mw={hash:"s-a",code:".subtitles-container.s-a{height:100%;left:0;pointer-events:none;position:absolute;top:0;transition:transform var(--controls-transition-duration);width:100%}.subtitles-container.shifted.s-a{transform:translateY(calc(var(--controls-height)*-1))}.subtitles-container.preview-track-active.s-a{transform:translateY(calc(var(--preview-track-height)*-1))}.preview-track-active.s-a .subtitles-caption:where(.s-a){bottom:var(--preview-track-controls-top-offset)}.subtitles-caption.s-a{bottom:4%;display:flex;justify-content:center;left:4%;position:absolute;right:4%}.subtitles-caption.mobile.s-a{bottom:8%}.subtitles-container.auto.s-a .subtitles-caption:where(.s-a){left:var(--subtitles-caption-margin);right:var(--subtitles-caption-margin)}.caption.s-a{background:rgba(0,0,0,.4);border-radius:4px;display:block;overflow-wrap:normal;padding:4px 8px}.subtitles-container.auto.s-a .caption:where(.s-a){width:100%}.caption-line.s-a{display:block;text-align:center}.subtitles-container.auto.s-a .caption-line:where(.s-a){text-align:left}.caption-segment.s-a{color:var(--white);display:inline-block;font-size:13px;line-height:1.2;white-space:pre-wrap}"};function ol(t,e){B(e,!0),Y(t,Mw);let[i,o]=De(),r=()=>x(v,"$currentSubtitle$",i),a=()=>x(y,"$isLive$",i),l=()=>x(b,"$isFullscreen",i),d=()=>x(w,"$previewTrackActive",i),s=()=>x(_,"$isAutoSubtitleCaptionVisible$",i),u=h(e,"isMobile",3,!1),f=he(),p=Rt(),v=f.state.currentSubtitle$,_=f.state.isAutoSubtitleCaptionVisible$,y=f.state.isLive$,b=f.ui.isFullscreen,w=f.ui.previewTrackActive,I=m(()=>!!r().isAuto),T=m(()=>!!a()),N=m(()=>e.playerSize.width*.02),A=m(()=>u()&&!l()||n(N)<=p.minSubtitlesFontSize?p.minSubtitlesFontSize:n(N)),E=q(null);Oe(()=>{var Z,oe,J;(Z=n(E))==null||Z.setIsAuto(n(I)),(oe=n(E))==null||oe.setIsLive(n(T)),(J=n(E))==null||J.setCaptions(e.captions)});let k=q(si([[]]));Vt(()=>{R(E,new bp().subscribe(),!0);let Z=n(E).captionsPrepared$.subscribe(oe=>{R(k,oe,!0)});return()=>{var oe;(oe=n(E))==null||oe.destroy(),Z.unsubscribe()}}),Vt(()=>{if(n(I)){let Z=window.setTimeout(()=>{_.set(!1)},p.autoSubtitlesTimeout);return()=>{window.clearTimeout(Z)}}else _.set(!1)});let Q=m(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var F=Lw();let z;var X=C(F);{var se=Z=>{var oe=Aw();let J;var Ce=C(oe),pe=C(Ce);{var ee=we=>{var ve=Ew(),ue=C(ve),Ge=C(ue,!0);S(ue),S(ve),D(U=>{var O;Ke(ue,`font-size: ${(O=n(A))!=null?O:""}px`),me(Ge,U)},[()=>j("subtitles_auto_caption")]),$(we,ve)},_e=(we,ve)=>{{var ue=U=>{var O=Le(),Ye=ce(O);$i(Ye,17,()=>n(k),Od,(K,ae)=>{var ye=kw(),He=C(ye);$i(He,21,()=>n(ae),({value:ot,timeAppeared:re})=>re,(ot,re)=>{let de=()=>n(re).value,Re=()=>n(re).timeAppeared;var Ve=Le(),tt=ce(Ve);{var Ee=Te=>{var Fe=vs();D(()=>me(Fe,de())),$(Te,Fe)};V(tt,Te=>{(!Re()||Re()<=e.position)&&Te(Ee)})}$(ot,Ve)}),S(He),S(ye),D(()=>{var ot;return Ke(He,`font-size: ${(ot=n(A))!=null?ot:""}px`)}),$(K,ye)}),$(U,O)},Ge=U=>{var O=Le(),Ye=ce(O);$i(Ye,17,()=>e.captions,({value:K})=>K,(K,ae)=>{let ye=()=>n(ae).value;var He=Pw(),ot=C(He),re=C(ot,!0);S(ot),S(He),D(()=>{var de;Ke(ot,`font-size: ${(de=n(A))!=null?de:""}px`),me(re,ye())}),$(K,He)}),$(U,O)};V(we,U=>{var O;n(I)&&((O=n(k))!=null&&O.length)?U(ue):U(Ge,!1)},ve)}};V(pe,we=>{n(I)&&s()?we(ee):we(_e,!1)})}S(Ce),S(oe),D(we=>{var ve;J=ne(oe,1,"subtitles-caption s-a",null,J,we),Ke(oe,`--subtitles-caption-margin: ${(ve=n(Q))!=null?ve:""}%`)},[()=>({mobile:u()})]),$(Z,oe)};V(X,Z=>{var oe;(e.captions.length||(oe=n(k))!=null&&oe.length)&&Z(se)})}S(F),D(Z=>z=ne(F,1,"subtitles-container s-a",null,z,Z),[()=>({shifted:e.shifted,"preview-track-active":d(),auto:n(I)&&!n(T)&&!s()})]),$(t,F),H(),o()}var Fb=require("@vkontakte/videoplayer-core/es2018");var Vw=L('<div class="text s-l"> </div>'),Rw=L('<div><div class="icon_wrapper s-l"><!></div> <!></div>'),Nw={hash:"s-l",code:".wrapper.s-l{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-l{background-size:cover}.icon_wrapper.s-l{align-items:center;display:flex;flex-direction:column;width:400px}.text.s-l{margin-top:20px}"};function Pc(t,e){B(e,!0),Y(t,Nw);let i=h(e,"chromecastDeviceName",3,"chromecastDeviceName"),o=Rt();var r=Rw();let a;r.__contextmenu=function(...f){var p;(p=e.onContextMenu)==null||p.apply(this,f)},r.__click=function(...f){var p;(p=e.onClick)==null||p.apply(this,f)},r.__dblclick=function(...f){var p;(p=e.onDblClick)==null||p.apply(this,f)};var l=C(r),d=C(l);mc(d,{get size(){return"48"},get iconState(){return Fb.ChromecastState.CONNECTED}}),S(l);var s=P(l,2);{var u=f=>{var p=Vw(),v=C(p);S(p),D(()=>{var _;return me(v,`Видео воспроизводится на ${(_=i())!=null?_:""}`)}),$(f,p)};V(s,f=>{i()&&f(u)})}S(r),D(f=>{a=ne(r,1,"wrapper s-l",null,a,f),Ke(r,`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${e.thumbUrl||""}')`)},[()=>({bgCover:o.features.previewNoEmptySpace})]),$(t,r),H()}je(["contextmenu","click","dblclick"]);var Dw=Ie('<path d="M460 194a4 4 0 0 1 4-4h122a4 4 0 0 1 4 4v82a4 4 0 0 1-4 4H464a4 4 0 0 1-4-4zm6 3a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm112-72a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm0 12a1 1 0 0 1 .99-1h4.02a1 1 0 0 1 .99 1v4a1 1 0 0 1-.99 1h-4.02a1 1 0 0 1-.99-1zm-71-37a6 6 0 1 0 0-12 6 6 0 0 0 0 12m36 0a6 6 0 1 0 0-12 6 6 0 0 0 0 12m-18.05 15c6.05 0 11.62 4.45 11.94 4.65 2.11 1.35 3.26.77 3.96.16s1.15-2.81-1.04-4.66c-1.74-1.48-5.8-5.16-14.86-5.15s-12.95 3.5-14.8 5.18c-1.83 1.69-2.28 3.5-.96 4.66s2.31 1.16 4.35-.33c0 .01 5.36-4.51 11.41-4.51"></path>');function xv(t){Je(t,{width:"200",height:"200",viewBox:"460 190 130 90",testId:"error-icon",children:(e,i)=>{var o=Dw();$(e,o)},$$slots:{default:!0}})}var Ow=L('<div class="container s-4"><!></div>'),Bw={hash:"s-4",code:".container.s-4{align-items:center;background:#000;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}"};function nl(t){Y(t,Bw);var e=Ow(),i=C(e);xv(i,{}),S(e),$(t,e)}var Hw=L('<div class="playButton s-c" tabindex="0" role="button"><div class="playButtonBackground s-c"></div> <!></div>'),Fw=L('<div data-testid="unstarted-thumb"><!></div>'),Uw={hash:"s-c",code:".container.s-c{background-position:50%;background-repeat:no-repeat;background-size:contain;bottom:0;cursor:pointer;left:0;position:absolute;right:0;top:0;transition:opacity .2s,visibility .2s;will-change:opacity}.container.hidden.s-c{opacity:0;visibility:hidden}.container.bgCover.s-c{background-size:cover}.playButton.s-c{align-items:center;display:flex;height:var(--big-play-size);justify-content:center;margin:auto;width:var(--big-play-size)}.playButton.s-c,.playButtonBackground.s-c{bottom:0;left:0;position:absolute;right:0;top:0}.playButtonBackground.s-c{background-color:var(--big-play-bg-color);border-radius:var(--big-play-radius);transition:background .2s,transform .2s;transition-timing-function:ease-out;will-change:background,transform}.container.s-c:hover .playButtonBackground:where(.s-c){background-color:var(--big-play-hover-bg-color);transform:scale(1.15)}.playButton.s-c svg{position:relative}"};function rl(t,e){B(e,!0),Y(t,Uw);let i=h(e,"iconVisible",3,!0),o=he(),r=Rt(),a=o.ui.startedByKeyboard$,l=j("tooltip_play"),d=_=>{var b;let y=_.code;["Enter","Space"].includes(y)&&(_.stopPropagation(),_.preventDefault(),a.set(!0),(b=e.startVideo)==null||b.call(e))},s=_=>{var y,b;_.stopPropagation(),(y=e.startVideo)==null||y.call(e),(b=e.onClick)==null||b.call(e,_)};var u=Fw();let f;u.__click=s,u.__contextmenu=function(..._){var y;(y=e.onContextMenu)==null||y.apply(this,_)};var p=C(u);{var v=_=>{var y=Hw();y.__keydown=d;var b=P(C(y),2);Vn(b,{get size(){return"48"}}),S(y),D(()=>Me(y,"aria-label",l)),$(_,y)};V(p,_=>{i()&&_(v)})}return S(u),D(_=>{f=ne(u,1,"container s-c",null,f,_),Ke(u,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:r.features.previewNoEmptySpace})]),$(t,u),H({handlePressKey:d,handleClick:s})}je(["click","contextmenu","keydown"]);var zw=L('<span class="text s-11"> </span>'),Ww=(t,e)=>{var i;return(i=e.onTitleClicked)==null?void 0:i.call(e)},Kw=L('<a target="_blank" class="link s-11"><!></a>'),qw=(t,e)=>e.onTitleClicked(),Qw=L("<button><!></button>"),Gw=L('<div data-testid="video_title"><!></div>'),Yw={hash:"s-11",code:".title.s-11{background:linear-gradient(0deg,transparent,rgba(0,0,0,.02) 19%,rgba(0,0,0,.1) 34%,rgba(0,0,0,.4) 60%,rgba(0,0,0,.6));box-sizing:border-box;font-size:15px;height:var(--controls-gradient-height);left:0;overflow:hidden;padding:18px 20px 10px;pointer-events:none;position:absolute;text-overflow:ellipsis;top:0;transition-duration:var(--controls-transition-duration);transition-property:visibility,transform,opacity;transition-timing-function:var(--controls-transition-fn);white-space:nowrap;width:100%;will-change:transform,opacity;z-index:var(--controls-container-z-index)}.link.s-11,.title.s-11{color:var(--white)}.link.s-11{pointer-events:auto;text-decoration:none}.link.s-11:hover{text-decoration:underline}.text.s-11{pointer-events:auto}.size-sm.s-11{font-size:14px;font-weight:500;line-height:18px}.hidden.s-11{opacity:0;transform:translateY(calc(var(--controls-gradient-height)*-1));visibility:hidden}"};function wv(t,e){B(e,!0),Y(t,Yw);let i=_=>{var y=zw(),b=C(y,!0);S(y),Ze(y,w=>l(w),()=>l()),D(()=>me(b,o())),ut("mouseenter",y,function(...w){var I;(I=e.onMouseEnter)==null||I.apply(this,w)}),ut("mouseleave",y,function(...w){var I;(I=e.onMouseLeave)==null||I.apply(this,w)}),$(_,y)},o=h(e,"title",3,""),r=h(e,"isHidden",3,!1),a=h(e,"size",3,"md"),l=h(e,"ref",15),d=q(void 0);Vt(()=>{var y;requestAnimationFrame(()=>{var b;(b=e.onVisibilityChanged)==null||b.call(e,!0)});function _(b){var w;b.propertyName==="transform"&&((w=e.onVisibilityChanged)==null||w.call(e,!r()))}return(y=n(d))==null||y.addEventListener("transitionend",_),()=>{var b;return(b=n(d))==null?void 0:b.removeEventListener("transitionend",_)}});var s=Gw();let u;var f=C(s);{var p=_=>{var y=Kw();y.__click=[Ww,e];var b=C(y);i(b),S(y),D(()=>Me(y,"href",e.titleLinkHref)),$(_,y)},v=(_,y)=>{{var b=I=>{var T=Qw();T.__click=[qw,e];var N=C(T);i(N),S(T),$(I,T)},w=I=>{i(I)};V(_,I=>{e.onTitleClicked?I(b):I(w,!1)},y)}};V(f,_=>{e.titleLinkHref?_(p):_(v,!1)})}S(s),Ze(s,_=>R(d,_),()=>n(d)),D(_=>u=ne(s,1,`title size-${a()}`,"s-11",u,_),[()=>({hidden:r()})]),$(t,s),H()}je(["click"]);var Ub=require("@vkontakte/videoplayer-shared/es2018");var jw=L('<div class="timer__cell cell s-18"><span class="cell__value s-18"> </span> <span class="cell__unit s-18"> </span></div> <span class="timer__points s-18"> </span>',1),Xw=L('<div class="timer__cell cell s-18"><span class="cell__value s-18"> </span> <span class="cell__unit s-18"> </span></div> <span class="timer__points s-18"> </span>',1),Zw=L('<div class="timer__cell cell s-18"><span class="cell__value s-18"> </span> <span class="cell__unit s-18"> </span></div> <span class="timer__points s-18"> </span>',1),Jw=L('<div class="timer__cell cell s-18"><span class="cell__value s-18"> </span> <span class="cell__unit s-18"> </span></div>'),eS=L("<div><!> <!> <!> <!></div>"),tS={hash:"s-18",code:".timer__container.s-18{align-items:flex-start;display:flex;justify-content:center}.cell.s-18{align-items:center;display:flex;flex-direction:column}.cell__value.s-18{font-size:48px;font-weight:600;line-height:1.2}.small.s-18 .cell__value:where(.s-18){font-size:24px}.cell__unit.s-18{font-size:14px;font-weight:400;line-height:1.2}.small.s-18 .cell__unit:where(.s-18){font-size:12px}.timer__points.s-18{display:inline-block;font-size:42px;font-weight:600;line-height:1.2;margin:0 8px}.small.s-18 .timer__points:where(.s-18){font-size:20px}"};function Sv(t,e){B(e,!0),Y(t,tS);let i=q(""),o=q(""),r=q(""),a=q(""),l,d=32,s=d/2,u=F=>String(F).padStart(2,"0"),f=F=>Math.max(F.length,1),p=F=>`${(e.isSmallSize?s:d)*f(F)}px`,v=F=>{let z=Math.floor(F/86400);z&&(F-=z*86400,R(i,u(z),!0));let X=Math.floor(F/3600);R(o,u(X),!0);let se=Math.floor(F/60)%60;R(r,u(se),!0);let Z=F%60;R(a,u(Z),!0)},_=()=>{let F=Math.floor(Date.now()/1e3),z=e.startTime-F;v(z),z>=1?l=requestAnimationFrame(_):e.onTimerOver()};Vt(()=>{l=requestAnimationFrame(_)}),cn(()=>{cancelAnimationFrame(l)});var y=eS();let b;var w=C(y);{var I=F=>{var z=jw(),X=ce(z);let se;var Z=C(X),oe=C(Z,!0);S(Z);var J=P(Z,2),Ce=C(J,!0);S(J),S(X);var pe=P(X,2),ee=C(pe,!0);S(pe),D((_e,we,ve)=>{se=Ke(X,"",se,{width:_e}),me(oe,n(i)),me(Ce,we),me(ee,ve)},[()=>p(n(i)),()=>j("waiting_live_day_value"),()=>j("waiting_live_colon")]),$(F,z)};V(w,F=>{n(i)&&F(I)})}var T=P(w,2);{var N=F=>{var z=Xw(),X=ce(z);let se;var Z=C(X),oe=C(Z,!0);S(Z);var J=P(Z,2),Ce=C(J,!0);S(J),S(X);var pe=P(X,2),ee=C(pe,!0);S(pe),D((_e,we,ve)=>{se=Ke(X,"",se,{width:_e}),me(oe,n(o)),me(Ce,we),me(ee,ve)},[()=>p(n(o)),()=>j("waiting_live_hour_value"),()=>j("waiting_live_colon")]),$(F,z)};V(T,F=>{n(o)&&F(N)})}var A=P(T,2);{var E=F=>{var z=Zw(),X=ce(z);let se;var Z=C(X),oe=C(Z,!0);S(Z);var J=P(Z,2),Ce=C(J,!0);S(J),S(X);var pe=P(X,2),ee=C(pe,!0);S(pe),D((_e,we,ve)=>{se=Ke(X,"",se,{width:_e}),me(oe,n(r)),me(Ce,we),me(ee,ve)},[()=>p(n(r)),()=>j("waiting_live_minute_value"),()=>j("waiting_live_colon")]),$(F,z)};V(A,F=>{n(r)&&F(E)})}var k=P(A,2);{var Q=F=>{var z=Jw();let X;var se=C(z),Z=C(se,!0);S(se);var oe=P(se,2),J=C(oe,!0);S(oe),S(z),D((Ce,pe)=>{X=Ke(z,"",X,{width:Ce}),me(Z,n(a)),me(J,pe)},[()=>p(n(a)),()=>j("waiting_live_second_value")]),$(F,z)};V(k,F=>{n(a)&&F(Q)})}S(y),D(F=>b=ne(y,1,"timer__container s-18",null,b,F),[()=>({small:e.isSmallSize})]),$(t,y),H()}var iS=L('<div class="waiting s-n"><span> </span></div>'),oS=L('<div class="upcoming-timer timer s-n"><span> </span> <!></div>'),nS=L('<div class="waiting-container s-n"><!></div>'),rS={hash:"s-n",code:'.waiting-container.s-n{background-color:var(--black);background-position:50%;background-repeat:no-repeat;background-size:cover;white-space:nowrap}.waiting-container.s-n,.waiting-container.s-n:before{height:100%;left:0;position:absolute;top:0;width:100%}.waiting-container.s-n:before{backdrop-filter:blur(15px);background-color:rgba(0,0,0,.56);content:"";z-index:1}.waiting.s-n{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-n{font-size:20px;font-weight:600;line-height:1.2}.upcoming-timer.s-n{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:2}.timer.s-n{align-items:center;display:flex;flex-direction:column;justify-content:center}.timer__title.s-n{display:inline-block;font-size:20px;font-weight:600;line-height:1.2;margin-bottom:12px;vertical-align:middle}.small.s-n{font-size:15px}.medium.s-n{font-size:17px}'};function Ac(t,e){B(e,!0),Y(t,rS);let i=h(e,"startTime",3,0),o=m(()=>i()<Math.floor(Date.now()/1e3)),r=q(void 0),a=q(void 0),l=0,d=q(void 0),s=q(void 0),u=m(()=>{var w,I;return((w=n(d))!=null?w:1/0)<=509||((I=n(s))!=null?I:1/0)<=320}),f=m(()=>{var w,I;return!n(u)&&(((w=n(d))!=null?w:1/0)<=699||((I=n(s))!=null?I:1/0)<=599)}),p=e.onUpcomingLiveViewStateChanged?(0,Ub.throttleFn)(()=>{cancelAnimationFrame(l),l=requestAnimationFrame(()=>{let w={type:n(o)?"expired":"default",size:n(u)?"s":n(f)?"m":"l"},I=n(o)?n(r):n(a);e.onUpcomingLiveViewStateChanged(w,I)})},300):void 0;Oe(()=>{n(s),n(d),n(o),p==null||p()}),cn(()=>{if(cancelAnimationFrame(l),p==null||p.cancel(),e.onUpcomingLiveViewStateChanged){let w={type:n(o)?"expired":"default",size:n(u)?"s":n(f)?"m":"l"};e.onUpcomingLiveViewStateChanged(w)}});var v=nS();v.__contextmenu=function(...w){var I;(I=e.onContextMenu)==null||I.apply(this,w)},v.__click=function(...w){var I;(I=e.onClick)==null||I.apply(this,w)};var _=C(v);{var y=w=>{var I=iS(),T=C(I);let N;var A=C(T,!0);S(T),S(I),Ze(I,E=>R(r,E),()=>n(r)),D((E,k)=>{N=ne(T,1,"waiting__title s-n",null,N,E),me(A,k)},[()=>({medium:n(f),small:n(u)}),()=>j("waiting_live_upcoming_title")]),$(w,I)},b=w=>{var I=oS(),T=C(I);let N;var A=C(T,!0);S(T);var E=P(T,2);let k=m(()=>n(u)||n(f)),Q=m(()=>i()||0);Sv(E,{get isSmallSize(){return n(k)},get startTime(){return n(Q)},onTimerOver:()=>R(o,!0)}),S(I),Ze(I,F=>R(a,F),()=>n(a)),D((F,z)=>{N=ne(T,1,"timer__title s-n",null,N,F),me(A,z)},[()=>({medium:n(f),small:n(u)}),()=>j("waiting_live_timer_title")]),$(w,I)};V(_,w=>{n(o)?w(y):w(b,!1)})}S(v),D(()=>Ke(v,`background-image: url(${e.thumbUrl})`)),Ln(v,"clientWidth",w=>R(d,w)),Ln(v,"clientHeight",w=>R(s,w)),$(t,v),H()}je(["contextmenu","click"]);var sS=L('<div class="waiting-container s-r"><div class="waiting-caption s-r"><!> <p class="waiting-title s-r"> </p></div></div>'),aS={hash:"s-r",code:'.waiting-container.s-r{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-r,.waiting-container.s-r:before{height:100%;left:0;position:absolute;top:0;width:100%}.waiting-container.s-r:before{backdrop-filter:blur(10px);background-color:rgba(0,0,0,.4);content:""}.waiting-caption.s-r{align-items:center;display:flex;flex-direction:column;position:relative}.waiting-title.s-r{font-size:20px;font-weight:400;line-height:1.2;margin:0;padding:20px;text-align:center}'};function sl(t,e){B(e,!0),Y(t,aS);let i=h(e,"thumbUrl",3,""),o={recover:j("waiting_live_recover_title"),record:j("waiting_record_title")},r=m(()=>o[e.kind]||"");var a=sS();a.__contextmenu=function(...f){var p;(p=e.onContextMenu)==null||p.apply(this,f)},a.__click=function(...f){var p;(p=e.onClick)==null||p.apply(this,f)};var l=C(a),d=C(l);Qa(d,{style:"position: static; transform: translate(0, 0)"});var s=P(d,2),u=C(s,!0);S(s),S(l),S(a),D(()=>{Ke(a,`background-image: url('${i()}')`),me(u,n(r))}),$(t,a),H()}je(["contextmenu","click"]);var lS=Ie('<path d="M6 10.2 3.5 7.7a.99.99 0 0 0-1.4 1.4l3.2 3.2a1 1 0 0 0 1.4 0l7.6-7.6a.99.99 0 0 0-1.4-1.4z"></path>');function Cv(t){Je(t,{width:"16",height:"16",testId:"check-mark-icon",children:(e,i)=>{var o=lS();$(e,o)},$$slots:{default:!0}})}var dS=L('<div class="select-icon s-1x"><!></div>'),cS={hash:"s-1x",code:".select-icon.s-1x{margin-right:auto;opacity:.9;padding-right:12px;position:relative;top:3px}"};function Lc(t){Y(t,cS);var e=dS(),i=C(e);Cv(i,{}),S(e),$(t,e)}var uS=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},pS=(t,e)=>{Ql(t,()=>e.item.selectItem(e.item.value))},fS=L("<p> </p>"),mS=L('<p class="sublabel s-1s"> </p>'),vS=L('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),gS={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),Y(t,gS);let i=h(e,"isMobile",3,!1);var o=vS();let r;o.__click=[uS,e],o.__keydown=[pS,e];var a=C(o);{var l=y=>{Lc(y,{})};V(a,y=>{e.item.selected&&y(l)})}var d=P(a,2);let s;var u=C(d);{var f=y=>{var b=Le(),w=ce(b);Vi(w,()=>e.item.valueComponent,(I,T)=>{T(I,is(()=>{var N;return(N=e.item.valueComponentParams)!=null?N:{}}))}),$(y,b)},p=y=>{var b=fS();let w;var I=C(b,!0);S(b),D(T=>{var N;w=ne(b,1,"label s-1s",null,w,T),me(I,(N=e.item.label)!=null?N:e.item.value)},[()=>({mobile:i()})]),$(y,b)};V(u,y=>{e.item.valueComponent?y(f):y(p,!1)})}var v=P(u,2);{var _=y=>{var b=mS(),w=C(b,!0);S(b),D(()=>me(w,e.item.sublabel)),$(y,b)};V(v,y=>{e.item.sublabel&&y(_)})}S(d),S(o),D((y,b,w)=>{var I;r=ne(o,1,"item",null,r,y),Me(o,"data-value",(I=e.item.dataValue)!=null?I:e.item.value),Me(o,"aria-label",b),Me(o,"data-testid",e.item.dataTestid),s=ne(d,1,"menu-item-value s-1s",null,s,w),Me(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>{var y,b;return(b=(y=e.item.ariaLabel)!=null?y:e.item.label)!=null?b:e.item.value.toString()},()=>({"submenu-value-mobile":i()})]),$(t,o),H()}je(["click","keydown"]);var hS=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function Iv(t,e){B(e,!0);let i=h(e,"isMobile",3,!1),o=h(e,"refMenuItems",15),r=m(()=>()=>e.openSubMenuList(e.item.children)),a=m(()=>b=>Ju(b,n(r)));var l=hS();let d;l.__click=function(...b){var w;(w=n(r))==null||w.apply(this,b)},l.__keydown=function(...b){var w;(w=n(a))==null||w.apply(this,b)};var s=C(l);{var u=b=>{Lc(b,{})};V(s,b=>{e.item.selected&&b(u)})}var f=P(s,2);let p;var v=C(f);{var _=b=>{var w=Le();let I=m(()=>e.item.valueComponent);var T=ce(w);Vi(T,()=>n(I),(N,A)=>{A(N,is(()=>{var E;return(E=e.item.valueComponentParams)!=null?E:{}}))}),$(b,w)},y=b=>{var w=vs();D(()=>me(w,e.item.label)),$(b,w)};V(v,b=>{e.item.valueComponent?b(_):b(y,!1)})}S(f),S(l),Ze(l,b=>o(o()[e.item.id]=b,!0),()=>{var b;return(b=o())==null?void 0:b[e.item.id]}),D((b,w)=>{var I;d=ne(l,1,"item",null,d,b),Me(l,"aria-label",(I=e.item.ariaLabel)!=null?I:e.item.label),Me(l,"data-testid",e.item.id),p=ne(f,1,"menu-item-value",null,p,w)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),$(t,l),H()}je(["click","keydown"]);var ss={"quality-settings":100,"audio-language-settings":200,"playback-rate-settings":300,"subtitles-settings":400,"traffic-saving-settings":500,download:600,report:700,"copy-data":800,"save-trace-info":900,"debug-info":1e3};var bS=(t,e)=>{rb(t,e.returnFromSubMenu,e.closeSettingsMenu)},$S=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},yS=(t,e)=>{oc(t)&&(Vr(t),e.returnFromSubMenu())},xS=L('<div><ul role="menu"><li role="menuitem" tabindex="0" data-testid="return-to-settings-menu"><!> <p class="title s-1k"> </p></li> <!></ul></div>'),wS={hash:"s-1k",code:".sub-menu.s-1k{--item-padding-vertical-mobile:16px;--item-padding-vertical:7px;--item-label-line-height:18px;--edge-item-padding-vertical-mobile:calc(6px + var(--item-padding-vertical-mobile));--edge-item-padding-vertical:calc(8px + var(--item-padding-vertical))}.sub-menu.s-1k .item.mobile{font-size:14px;line-height:var(--item-label-line-height);padding:var(--item-padding-vertical-mobile) 17px}.sub-menu.s-1k{padding-top:calc(var(--edge-item-padding-vertical) + var(--item-padding-vertical) + var(--item-label-line-height))}.sub-menu.mobile.s-1k{padding-top:calc(var(--edge-item-padding-vertical-mobile) + var(--item-padding-vertical-mobile) + var(--item-label-line-height) + 1px)}.sub-menu.s-1k .items:where(.s-1k) .item.header:where(.s-1k){border-bottom:var(--divider-border);display:flex;justify-content:space-between;left:0;min-width:max-content;position:absolute;right:0;top:0}.header.s-1k .title:where(.s-1k){margin-left:8px}.sub-menu.s-1k .item{padding:var(--item-padding-vertical) 12px;padding-right:22px}.items.s-1k .item:first-child:not(.mobile){padding-top:var(--edge-item-padding-vertical)}.items.s-1k .item:last-child:not(.mobile){padding-bottom:var(--edge-item-padding-vertical)}.items.s-1k .item.mobile:first-child{padding-top:var(--edge-item-padding-vertical-mobile)}.items.s-1k .item.mobile:last-child{padding-bottom:var(--edge-item-padding-vertical-mobile)}.sub-menu.s-1k .item.bottomBordered{border-bottom:var(--divider-border)}.sub-menu.s-1k .item .sublabel{font-size:12px;line-height:14px}.item.s-1k:not(.mobile) p:where(.s-1k),.sub-menu.s-1k .item:not(.mobile) .label{font-size:13px;line-height:var(--item-label-line-height)}"};function kv(t,e){B(e,!0),Y(t,wS);let[i,o]=De(),r=()=>x(p,"$isFullscreen",i),a=()=>x(v,"$playerSize",i),l=h(e,"isMobile",3,!1),d=h(e,"playerControlsHeight",3,0),s=h(e,"ariaLabelReturnFromSubMenu",19,()=>j("aria_label_submenu_back")),u=h(e,"listRef",15);Vt(()=>{let Z=e.items.findIndex(oe=>oe.selected);u().children[Z+1].focus()});let f=he(),p=f.ui.isFullscreen,v=f.ui.playerSize,_=q(void 0),y=q(0),b=q(0),w=m(()=>l()&&r()?`max-height: ${Math.round(a().height*.6)}px`:l()?"":`max-height: ${a().height-32-n(b)-d()}px; overflow: auto;`),I=m(()=>Math.max(e.minWidth,n(y)));var T=xS();let N;var A=C(T);let E;A.__keydown=[bS,e];var k=C(A);let Q;k.__click=[$S,e],k.__keydown=[yS,e];var F=C(k);Mr(F,{direction:"left"});var z=P(F,2),X=C(z,!0);S(z),S(k),Ze(k,Z=>R(_,Z),()=>n(_));var se=P(k,2);$i(se,17,()=>e.items,Od,(Z,oe)=>{var J=Le(),Ce=ce(J);{var pe=_e=>{Tv(_e,{get item(){return n(oe)},get isMobile(){return l()}})},ee=(_e,we)=>{{var ve=ue=>{Iv(ue,{get isMobile(){return l()},get item(){return n(oe)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};V(_e,ue=>{n(oe).type==="OPEN_SUB_MENU"&&ue(ve)},we)}};V(Ce,_e=>{n(oe).type==="SELECT_VALUE"?_e(pe):_e(ee,!1)})}$(Z,J)}),S(A),Ze(A,Z=>u(Z),()=>u()),S(T),D((Z,oe,J)=>{N=ne(T,1,"sub-menu menu s-1k",null,N,Z),Me(T,"data-testid",`${e.id}-sub-menu`),Ke(T,`min-width: ${n(I)}px`),E=ne(A,1,"items s-1k",null,E,oe),Ke(A,n(w)),Q=ne(k,1,"item header back s-1k",null,Q,J),Me(k,"aria-label",s()),me(X,e.title)},[()=>({desktop:!l(),mobile:l()}),()=>({mobile:l()}),()=>({mobile:l()})]),Ln(k,"clientWidth",Z=>R(y,Z)),Ln(k,"clientHeight",Z=>R(b,Z)),$(t,T),H(),o()}je(["keydown","click"]);var Wb=require("@vkontakte/videoplayer-shared/es2018");var SS=(t,e)=>Ju(t,e()),CS=(t,e)=>{t.stopPropagation(),e()()},TS=L('<div class="value s-1l"> </div>'),IS=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),ES={hash:"s-1l",code:".value.s-1l{opacity:.7;overflow:hidden;position:relative;text-overflow:ellipsis}"};function Pv(t,e){B(e,!0),Y(t,ES);let i=h(e,"isMobile",3,!1),o=h(e,"onClick",3,Wb.noop),r=h(e,"valueComponent",3,void 0),a=h(e,"iconProps",19,()=>({})),l=h(e,"ref",15);var d=IS();let s;d.__click=[CS,o],d.__keydown=[SS,o];var u=C(d),f=C(u);{var p=T=>{Ja(T,{get icon(){return e.icon}})},v=T=>{var N=Le();let A=m(()=>e.icon);var E=ce(N);Vi(E,()=>n(A),(k,Q)=>{Q(k,is(a))}),$(T,N)};V(f,T=>{typeof e.icon=="string"?T(p):T(v,!1)})}S(u);var _=P(u,2),y=C(_,!0);S(_);var b=P(_,2);{var w=T=>{var N=Le();let A=m(r);var E=ce(N);Vi(E,()=>n(A),(k,Q)=>{Q(k,{})}),$(T,N)},I=T=>{var N=TS(),A=C(N,!0);S(N),D(()=>me(A,e.value)),$(T,N)};V(b,T=>{r()?T(w):T(I,!1)})}S(d),Ze(d,T=>l(T),()=>l()),D(T=>{s=ne(d,1,"item",null,s,T),Me(d,"aria-label",e.ariaLabel),Me(d,"data-testid",e.id),me(y,e.label)},[()=>({mobile:i()})]),$(t,d),H()}je(["click","keydown"]);var Av=require("@vkontakte/videoplayer-shared/es2018");var kS=(t,e)=>{Ql(t,()=>e())},PS=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),AS=L('<img class="icon" aria-hidden="true"/>'),LS=L('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label s-1m"> </div></li>'),MS={hash:"s-1m",code:".label.s-1m{overflow:hidden;text-overflow:ellipsis}"};function Lv(t,e){B(e,!0),Y(t,MS);let i=h(e,"isMobile",3,!1),o=h(e,"onClick",3,Av.noop),r=h(e,"closeSettings",3,Av.noop),a=q(!1),l=()=>{R(a,!0)},d=w=>{w==null||w.stopPropagation(),o()(),r()()};var s=LS();let u;s.__click=d,s.__keydown=[kS,d];var f=C(s),p=C(f);{var v=w=>{var I=Le(),T=ce(I);{var N=E=>{var k=PS();$(E,k)},A=E=>{var k=AS();D(()=>Me(k,"src",e.icon)),ut("error",k,l),Ma(k),$(E,k)};V(T,E=>{n(a)?E(N):E(A,!1)})}$(w,I)},_=w=>{var I=Le();let T=m(()=>e.icon);var N=ce(I);Vi(N,()=>n(T),(A,E)=>{E(A,{})}),$(w,I)};V(p,w=>{typeof e.icon=="string"?w(v):w(_,!1)})}S(f);var y=P(f,2),b=C(y,!0);S(y),S(s),D(w=>{var I;u=ne(s,1,"item",null,u,w),Me(s,"aria-label",(I=e.ariaLabel)!=null?I:e.label),Me(s,"data-testid",e.id),me(b,e.label)},[()=>({mobile:i()})]),$(t,s),H()}je(["click","keydown"]);var Kb=require("@vkontakte/videoplayer-shared/es2018");var VS=L('<div class="toggle_wrap s-1r"><div></div> <div class="toggle-label s-1r"></div></div>'),RS={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 Mv(t,e){Y(t,RS);let i=h(e,"enabled",3,!1);var o=VS(),r=C(o);let a;ai(2),S(o),D(l=>a=ne(r,1,"toggle s-1r",null,a,l),[()=>({on:i()})]),$(t,o)}var NS=(t,e,i)=>{sb(t,e(),o=>i()(o))},DS=(t,e,i)=>{t.stopPropagation(),e()(!i())},OS=L('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),BS=L('<li role="menuitem" tabindex="0"><!></li>');function Vv(t,e){B(e,!0);let i=h(e,"isMobile",3,!1),o=h(e,"onClick",3,Kb.noop),r=h(e,"enabled",3,!1),a=h(e,"tooltipText",3,void 0),l=h(e,"maxTooltipWidth",3,void 0);var d=BS();let s;d.__click=[DS,o,r],d.__keydown=[NS,r,o];var u=C(d);Ya(u,{get content(){return a()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return l()},children:(f,p)=>{var v=OS();let _;var y=C(v),b=C(y);{var w=E=>{Ja(E,{get icon(){return e.icon}})},I=E=>{var k=Le();let Q=m(()=>e.icon);var F=ce(k);Vi(F,()=>n(Q),(z,X)=>{X(z,{})}),$(E,k)};V(b,E=>{typeof e.icon=="string"?E(w):E(I,!1)})}S(y);var T=P(y,2),N=C(T,!0);S(T);var A=P(T,2);Mv(A,{get enabled(){return r()}}),S(v),D(E=>{_=ne(v,1,"switch-wrapper",null,_,E),me(N,e.label)},[()=>({mobile:i()})]),$(f,v)},$$slots:{default:!0}}),S(d),D(f=>{var p;s=ne(d,1,"item switch-item",null,s,f),Me(d,"aria-label",(p=e.ariaLabel)!=null?p:e.label),Me(d,"data-testid",e.id)},[()=>({mobile:i()})]),$(t,d),H()}je(["click","keydown"]);var Vc=require("@vkontakte/videoplayer-shared/es2018");var qb=()=>{let t=q(si([])),e=m(()=>(n(t).length?n(t).at(-1):null)||null);return{get current(){return n(e)},pushSubMenu:i=>{n(t).push(i)},popSubMenu:()=>{R(t,n(t).slice(0,-1),!0)},popAllSubMenus:()=>{R(t,[],!0)}}};var Qb=require("@vkontakte/videoplayer-shared/es2018");var HS=L('<div class="quality-icon s-1q"><!></div>'),FS=L('<div class="quality-label s-1q"><span> </span> <!></div>'),US={hash:"s-1q",code:".quality-label.s-1q{position:relative}.quality.s-1q{font-size:13px;line-height:18px}.quality.sub.s-1q{opacity:.7}.quality-icon.s-1q{display:flex;padding-left:2px;position:absolute;right:0;top:0;transform:translateX(100%)}.quality-icon.s-1q svg{color:var(--blue-light)}"};function al(t,e){B(e,!0),Y(t,US);let i=h(e,"isSubCase",3,!1),o=m(()=>e.quality?(0,Qb.getVideoQualityLabel)(e.quality):""),r=m(()=>rp(e.quality));var a=FS(),l=C(a);let d;var s=C(l,!0);S(l);var u=P(l,2);{var f=p=>{var v=HS();let _=m(()=>n(r));var y=C(v);Vi(y,()=>n(_),(b,w)=>{w(b,{})}),S(v),D(()=>Me(v,"data-testid",`${n(o)}-icon`)),$(p,v)};V(u,p=>{n(r)&&!e.isMobile&&p(f)})}S(a),D(p=>{d=ne(l,1,"s-1q",null,d,p),me(s,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),$(t,a),H()}var Xb=require("@vkontakte/videoplayer-shared/es2018");var Rv=require("@vkontakte/videoplayer-core/es2018");var Gb=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},Yb=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=Gb({quality:t,availableQualities:e});return i?t===Rv.VideoQuality.INVARIANT?j("auto_quality_invariant"):j("auto_quality",{actual:o}):o},jb=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===Rv.VideoQuality.INVARIANT?i:`${i}${Gb({quality:t,availableQualities:e})}`:"...";var zS=L('<div class="menu-item-value-wrapper s-1t"><!></div>'),WS={hash:"s-1t",code:".menu-item-value-wrapper.s-1t{line-height:normal}"};function rd(t,e){B(e,!0),Y(t,WS);let[i,o]=De(),r=()=>x(s,"$currentQuality$",i),a=()=>x(u,"$availableQualities$",i),l=()=>x(f,"$isMobile$",i),d=he(),s=d.state.currentQuality$,u=d.state.availableQualities$,f=d.ui.isMobile,p=" · ",v=m(()=>e.prefix+(e.selected&&r()!==Xb.VideoQuality.INVARIANT?p:"")),_=m(()=>jb({prefix:n(v),quality:r(),availableQualities:a(),onlyPrefix:!e.selected}));var y=zS(),b=C(y);let w=m(()=>e.selected?r():void 0);al(b,{get quality(){return n(w)},get label(){return n(_)},get isMobile(){return l()},isSubCase:!0}),S(y),$(t,y),H(),o()}var KS=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")},qS={br:!0,span:!0},Nv=(t,e={})=>{var d,s,u,f,p,v,_;if(!t)return t;let i={...qS,...e},o=Object.keys(i);if(!o.length)return t;let r=KS(o),a=[],l=0;for(let y of t.matchAll(r)){let b=y[0],w=((d=y.groups)==null?void 0:d.keyhtml)||((s=y.groups)==null?void 0:s.keyi18n)||((u=y.groups)==null?void 0:u.keyhtmlself)||((f=y.groups)==null?void 0:f.keyi18nself)||"",{index:I}=y;if(!i[w]){a.push(t.slice(l,I)),l=I+b.length;continue}let T=(p=y.groups)!=null&&p.childrenhtml?Nv(y.groups.childrenhtml,i):"",N=(v=y.groups)!=null&&v.childrenhtml?b.replace(new RegExp((_=y.groups)==null?void 0:_.childrenhtml),()=>T||""):b;a.push(t.slice(l,I),N),l=I+b.length}return l===0?t:(a.push(t.slice(l)),a.join(""))};function Mc(t,e){B(e,!1);let i=h(e,"message",8),o=Nv(i());ho();var r=Le(),a=ce(r);{var l=d=>{var s=Le(),u=ce(s);Bd(u,()=>o),$(d,s)};V(a,d=>{o&&d(l)})}$(t,r),H()}var QS=L('<p class="quality-applies sublabel s-1u"><!></p>'),GS={hash:"s-1u",code:".quality-applies.s-1u{color:hsla(0,0%,100%,.5);display:flex;justify-content:end;padding:3px 0}.quality-applies span{color:#70c1ff}"};function Dv(t,e){B(e,!1),Y(t,GS),ho();var i=QS(),o=C(i);let r=In(()=>j("quality_applience",{action:`<span>${j("quality_applience_action")}</span>`}));Mc(o,{get message(){return n(r)}}),S(i),$(t,i),H()}var Jb=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"quality-other-settings",type:"OPEN_SUB_MENU",label:j("other_quality"),selected:o,valueComponent:rd,valueComponentParams:{prefix:j("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:j("auto_quality_limit"),valueComponent:e?rd:void 0,valueComponentParams:{prefix:j("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),e$=()=>({id:"quality-appliance-settings",type:"OPEN_SUB_MENU",valueComponent:Dv,bottomBordered:!0,children:"quality-appliance"}),Bv=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"quality-high",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:j("high_quality"),valueComponent:t?rd:void 0,valueComponentParams:{prefix:j("high_quality"),selected:i},sublabel:j("high_quality_description")}),Hv=({labelWithQuality:t,appliesTo:e,selected:i},{toggleTrafficSaving:o})=>({id:"quality-traffic-saving",type:"SELECT_VALUE",value:"save_traffic",selectItem:()=>o(!0,e),selected:i,label:j("traffic_saving_quality"),valueComponent:t?rd:void 0,valueComponentParams:{prefix:j("traffic_saving_quality"),selected:i},sublabel:j("traffic_saving_quality_description")});var $p=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),yp=(t,e)=>{var l;if(!t)return"";let{language:i,label:o}=t,r;if(i==="und"?r=void 0:i&&(r=(l=hc(i))!=null?l:i),o&&i&&r){let d=e.filter(s=>s.label===o&&s.language===i);if(d.length===1)return j("audio_stream_display_language_label",{language:r,label:o});{let s=$p(t,d);return j("audio_stream_display_language_label_index",{language:r,label:o,index:s})}}if(o){let d=e.filter(s=>s.label===o);if(d.length===1)return o;{let s=$p(t,d);return j("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 j("audio_stream_display_language_index",{language:r,index:s})}}let a=$p(t,e);return j("audio_stream_display_unknown",{index:a})};var YS={"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:Hv,selected:o},{handler:Bv,selected:r}),{title:j("submenu_quality"),id:"quality-settings",items:[e$(t),...a.map(({handler:l,selected:d})=>l({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),Jb(t)]}},"quality-other-settings":({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"quality-other-settings",title:j("submenu_quality"),closeSettingsMenu:t,items:i.map(r=>({type:"SELECT_VALUE",value:r.value,valueComponent:al,valueComponentParams:{quality:r.value,label:r.displayValue,isMobile:o,isSubCase:!0},selectItem:a=>e(a,"to-video"),selected:r.selected,label:r.displayValue}))}),"quality-appliance":t=>{var i,o,r;let{closeSettingsMenu:e}=t;return{id:"quality-appliance",title:j("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:Ov,selected:((i=Uu())==null?void 0:i.type)==="auto_quality"},{handler:Hv,selected:((o=Uu())==null?void 0:o.type)==="traffic_saving"},{handler:Bv,selected:((r=Uu())==null?void 0:r.type)==="high_quality"}].map(({handler:a,selected:l})=>a({labelWithQuality:!1,appliesTo:"as-default",selected:l},t))}},"audio-tracks":({closeSettingsMenu:t,availableAudioStreams:e,currentAudioStream:i,selectAudioLanguage:o})=>({id:"audio-tracks",title:j("submenu_audio_languages"),closeSettingsMenu:t,items:e.map(r=>({type:"SELECT_VALUE",value:r,dataValue:r.id,selectItem:o,selected:r.id===(i==null?void 0:i.id),label:yp(r,e)}))}),"playback-rate":({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"playback-rate",title:j("submenu_playback_rate"),closeSettingsMenu:t,items:e.map(o=>({type:"SELECT_VALUE",value:o.value,selectItem:i,selected:o.selected,label:o.displayValue}))}),subtitles:({availableSubtitlesList:t,selectSubtitle:e})=>({id:"subtitles",minWidth:164,title:j("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i.value,selectItem:()=>e(i),selected:i.selected,label:i.displayValue,dataTestid:i.value===Nn?"sub_off":void 0}))})},t$=({subMenuId:t,context:e})=>t?[YS[t](e)]:[];var jS=Ie('<path d="M3.1 9.5c0-2.24 0-3.36.44-4.22A4 4 0 015.28 3.54C6.14 3.1 7.26 3.1 9.5 3.1h5c2.24 0 3.36 0 4.22.44a4 4 0 011.74 1.74c.44.86.44 1.98.44 4.22s0 3.36-.44 4.22a4 4 0 01-1.74 1.74c-.84.43-1.93.44-4.07.44l.55 2.2h1.9a.9.9 0 010 1.8H6.9a.9.9 0 110-1.8h1.9l.55-2.2c-2.14 0-3.23-.01-4.07-.44a4 4 0 01-1.74-1.74C3.1 12.86 3.1 11.74 3.1 9.5m11.4-4.6h-5c-1.15 0-1.9 0-2.48.05-.56.04-.79.12-.92.19a2.2 2.2 0 00-.96.96 2 2 0 00-.2.92C4.9 7.6 4.9 8.35 4.9 9.5s0 1.9.05 2.48c.04.56.12.79.19.92q.33.63.96.96c.13.07.36.15.92.2.58.04 1.33.04 2.48.04h5c1.15 0 1.9 0 2.48-.05.56-.04.79-.12.92-.19a2.2 2.2 0 00.96-.96c.07-.13.15-.36.2-.92.04-.58.04-1.33.04-2.48s0-1.9-.05-2.48a3 3 0 00-.19-.92 2.2 2.2 0 00-.96-.96 2 2 0 00-.92-.2c-.58-.04-1.33-.04-2.48-.04m-3.3 11-.55 2.2h2.7l-.55-2.2z"></path>');function Fv(t){Je(t,{testId:"traffic-saving-icon",children:(e,i)=>{var o=jS();$(e,o)},$$slots:{default:!0}})}var XS=Ie('<path d="M8.3 14.25c1.86 1.9 5.5.02 5.5-3.55V5.64l2.4-.7A2.74 2.74 0 0 0 18 2.37V.64a.75.75 0 0 0-.92-.62l-.26.06C15.88.3 14.93.51 14 .8c-1.33.45-2.03 1.62-2.01 3.08V9c-3.89.2-5.64 3.29-3.7 5.25ZM.9.1a.9.9 0 0 0 0 1.8h8.2a.9.9 0 0 0 0-1.8H.9ZM.9 5.1a.9.9 0 1 0 0 1.8h7.2a.9.9 0 0 0 0-1.8H.9ZM0 11c0-.5.4-.9.9-.9h4.18a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 11Z"></path>');function Uv(t){Je(t,{width:"18",height:"15",children:(e,i)=>{var o=XS();$(e,o)},$$slots:{default:!0}})}var ZS=Ie('<path d="M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A8 8 0 0 1 11 4.07M5.69 7.1 4.26 5.68A10 10 0 0 0 2.05 11h2.02a8 8 0 0 1 1.62-3.9M2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A8 8 0 0 1 4.07 13zM11 21.95v-2.02a8 8 0 0 1-3.9-1.62l-1.42 1.43A10 10 0 0 0 11 21.95M22 12c0 5.16-3.92 9.42-8.95 9.95v-2.02C16.97 19.41 20 16.05 20 12s-3.03-7.41-6.95-7.93V2.05C18.08 2.58 22 6.84 22 12M10.69 8.58l4.74 2.73a.8.8 0 0 1 0 1.37l-4.74 2.74a.8.8 0 0 1-1.19-.68V9.26a.8.8 0 0 1 1.19-.68"></path>');function zv(t){Je(t,{testId:"play-speed-icon",children:(e,i)=>{var o=ZS();$(e,o)},$$slots:{default:!0}})}var JS=Ie('<path d="M12 2a.9.9 0 01.9.9v10.93l4.56-4.57a.9.9 0 011.28 1.28l-6.1 6.1a.9.9 0 01-1.28 0l-6.1-6.1a.9.9 0 111.28-1.28l4.56 4.57V2.9A.9.9 0 0112 2M4 20a.9.9 0 01.9-.9h14.2a.9.9 0 110 1.8H4.9A.9.9 0 014 20"></path>');function Wv(t){Je(t,{testId:"download-icon",children:(e,i)=>{var o=JS();$(e,o)},$$slots:{default:!0}})}var eC=Ie('<path d="M8.86 2.1h6.28c.67 0 1.2.21 1.68.7l4.38 4.38c.48.48.7 1 .7 1.68v6.28c0 .68-.22 1.2-.7 1.68l-4.38 4.38c-.48.48-1 .7-1.68.7H8.86c-.68 0-1.2-.22-1.68-.7L2.8 16.82c-.48-.48-.7-1-.7-1.68V8.86c0-.68.22-1.2.7-1.68L7.18 2.8c.48-.49 1-.7 1.68-.7m-.44 2L4.1 8.43c-.18.18-.21.24-.21.5v6.17c0 .25.03.31.2.5l4.32 4.3c.18.18.24.21.5.21h6.17c.25 0 .31-.03.5-.2l4.3-4.32c.18-.18.21-.24.21-.5V8.92c0-.25-.03-.31-.2-.5l-4.32-4.3c-.18-.18-.24-.21-.5-.21H8.92c-.25 0-.32.03-.5.2M13 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-.1-8.1a.9.9 0 0 0-1.8 0v5.2a.9.9 0 1 0 1.8 0z"></path>');function Kv(t){Je(t,{testId:"report-icon",children:(e,i)=>{var o=eC();$(e,o)},$$slots:{default:!0}})}var tC=Ie('<path d="M4 12.3V12c0-1.47 0-2.55.08-3.4.07-.9.21-1.48.45-1.95a4.85 4.85 0 0 1 2.12-2.12 5.1 5.1 0 0 1 1.95-.45C9.5 4 10.68 4 12.3 4h4.51c-.03-.16-.09-.33-.17-.49a2.4 2.4 0 0 0-1.05-1.05c-.3-.16-.63-.21-.93-.24-.29-.02-.64-.02-1.03-.02h-1.37c-1.58 0-2.81 0-3.81.08a6.84 6.84 0 0 0-2.62.64 6.65 6.65 0 0 0-2.9 2.91c-.4.76-.57 1.6-.65 2.62-.08 1-.08 2.23-.08 3.81v1.37c0 .4 0 .74.02 1.03.03.3.08.62.24.93A2.4 2.4 0 0 0 4 16.8V12.3ZM10.08 6h-.03c-.53 0-.97 0-1.33.03-.39.03-.76.1-1.12.28a2.9 2.9 0 0 0-1.3 1.3c-.17.35-.24.72-.27 1.1C6 9.09 6 9.53 6 10.06v7.9c0 .53 0 .97.03 1.33.03.39.1.76.28 1.12a2.9 2.9 0 0 0 1.3 1.3c.35.17.72.24 1.1.27.37.03.81.03 1.33.03h6.91c.53 0 .97 0 1.33-.03.39-.03.76-.1 1.12-.28a2.9 2.9 0 0 0 1.3-1.3c.17-.35.24-.72.27-1.1.03-.37.03-.81.03-1.34v-7.9c0-.53 0-.97-.03-1.33-.03-.39-.1-.76-.28-1.12a2.9 2.9 0 0 0-1.3-1.3 2.96 2.96 0 0 0-1.1-.27C17.91 6 17.47 6 16.94 6h-6.87ZM8.41 7.92c.06-.04.18-.07.45-.1.28-.02.65-.02 1.22-.02h6.84c.57 0 .94 0 1.22.02.27.03.39.06.45.1.21.1.39.28.5.49.03.06.06.18.09.45.02.28.02.65.02 1.22v7.84c0 .57 0 .94-.02 1.22-.03.27-.06.39-.1.45-.1.21-.28.39-.49.5-.06.03-.18.06-.45.09-.28.02-.65.02-1.22.02h-6.84c-.57 0-.94 0-1.22-.02a1.23 1.23 0 0 1-.45-.1 1.1 1.1 0 0 1-.5-.49 1.23 1.23 0 0 1-.09-.45c-.02-.28-.02-.65-.02-1.22v-7.84c0-.57 0-.94.02-1.22.03-.27.06-.39.1-.45.1-.21.28-.39.49-.5Z"></path>');function xp(t){Je(t,{children:(e,i)=>{var o=tC();$(e,o)},$$slots:{default:!0}})}var iC=Ie('<path d="M12 20.1a8.1 8.1 0 1 0 0-16.2 8.1 8.1 0 0 0 0 16.2m0 1.9a10 10 0 1 1 0-20 10 10 0 0 1 0 20m0-12.37A1.32 1.32 0 1 1 12 7a1.32 1.32 0 0 1 0 2.63m-.95 2.82c0-.54.43-.98.95-.98s.95.44.95.98v3.83c0 .54-.43.98-.95.98a.96.96 0 0 1-.95-.98z"></path>');function qv(t){Je(t,{testId:"info-icon",children:(e,i)=>{var o=iC();$(e,o)},$$slots:{default:!0}})}var oC=L('<div class="menu-item-value-wrapper s-1w"><!></div>'),nC={hash:"s-1w",code:".menu-item-value-wrapper.s-1w{line-height:normal}"};function Qv(t,e){B(e,!0),Y(t,nC);let[i,o]=De(),r=()=>x(u,"$currentQuality$",i),a=()=>x(f,"$availableQualities$",i),l=()=>x(p,"$isAutoQualityEnabled$",i),d=()=>x(v,"$isMobile$",i),s=he(),u=s.state.currentQuality$,f=s.state.availableQualities$,p=s.state.isAutoQualityEnabled$,v=s.ui.isMobile,_=m(()=>Yb({quality:r(),availableQualities:a(),isAutoQualityEnabled:l()}));var y=oC(),b=C(y);al(b,{get quality(){return r()},get label(){return n(_)},get isMobile(){return d()}}),S(y),$(t,y),H(),o()}var sC={"quality-settings":({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?j("auto_quality_option"):e)||"";return{id:"quality-settings",type:"OPEN_SUB_MENU",ariaLabel:j("aria_label_menu_quality",{actual:o}),icon:lc,label:j("menu_quality"),value:e,valueComponent:Qv,weight:ss["quality-settings"],children:i?"quality-settings":"quality-other-settings"}},"traffic-saving-switch":({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"traffic-saving-switch",weight:ss["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:j("aria_label_submenu_traffic_saving"),icon:Fv,label:j("menu_traffic_saving"),enabled:t,tooltipText:j("traffic_saving_helper_text"),maxTooltipWidth:175}),"audio-tracks-settings":({currentAudioStream:t,availableAudioStreams:e})=>{let i=yp(t,e);return{id:"audio-tracks-settings",weight:ss["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:j("aria_label_menu_audio_languages",{actual:i}),icon:Uv,label:j("menu_audio_languages"),value:i,children:"audio-tracks"}},"playback-rate-settings":({availablePlaybackRates:t,currentPlaybackRate:e})=>{var o;let i=((o=t.find(r=>r.value===e))==null?void 0:o.displayValue)||"";return{id:"playback-rate-settings",weight:ss["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:j("aria_label_menu_rate",{actual:i}),icon:zv,label:j("menu_playback_rate"),value:`${e}x`,children:"playback-rate"}},"subtitles-settings":({currentSubtitle:t})=>({id:"subtitles-settings",weight:ss["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:j("aria_label_menu_subtitle",{actual:t.displayValue}),icon:ua,iconProps:{type:"outline"},label:j("subtitles_caption"),value:t.displayValue,children:"subtitles"}),download:({onDownloadClick:t})=>({id:"download",weight:ss.download,type:"CLICK",onClick:t,label:j("download_video_caption"),ariaLabel:j("aria_label_menu_download"),icon:Wv}),"show-support":({onReportProblemClick:t})=>({id:"show-support",weight:ss.report,type:"CLICK",onClick:t,label:j("menu_report"),ariaLabel:`${j("menu_report")}. ${j("aria_label_new_tab_alert")}`,icon:Kv,isHiddenFor:["desktop"]}),"copy-data":({onCopyDataClick:t})=>({id:"copy-data",weight:ss["copy-data"],type:"CLICK",onClick:t,label:j("menu_copy_debug"),ariaLabel:j("menu_copy_debug"),icon:xp,isHiddenFor:["desktop"]}),"save-trace-info":({onSaveTraceDataClick:t})=>({id:"save-trace-info",weight:ss["save-trace-info"],type:"CLICK",onClick:t,label:j("menu_save_debug"),ariaLabel:j("menu_save_debug"),icon:xp,isHiddenFor:["desktop"]}),"debug-info":({toggleShowDebugInfo:t})=>({id:"debug-info",weight:ss["debug-info"],type:"CLICK",onClick:t,ariaLabel:j("aria_label_menu_debug_overlay"),label:j("menu_debug_overlay"),icon:qv,isHiddenFor:["desktop"]})},i$=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(r=>sC[r](e)),...i.map(r=>({...r,isAdditional:!0}))].filter(r=>{var a,l,d;return!((a=r==null?void 0:r.isHiddenFor)!=null&&a.length)||!((l=r==null?void 0:r.isHiddenFor)!=null&&l.includes("desktop"))&&!o||!((d=r==null?void 0:r.isHiddenFor)!=null&&d.includes("mobile"))&&o}).sort(Ka)};var lC=(t,e)=>{Zu(t,e)},dC=L('<div><div> </div> <div class="close s-o"></div></div>'),cC=L('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),uC=L("<div><!> <!></div>"),pC={hash:"s-o",code:'.settings-menu-container.mobile.s-o{width:100%;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.settings-menu-container.s-o ul{list-style-type:none;margin:0;padding:0}.settings-menu-container.s-o .menu{background-color:var(--settings-bg);border-radius:var(--settings-radius);overflow:hidden;transition:opacity .2s,visibility .2s}.settings-menu-container.s-o .menu .item:first-child:not(.mobile){border-top-left-radius:var(--settings-radius);border-top-right-radius:var(--settings-radius)}.settings-menu-container.s-o .menu .item:last-child{border-bottom-left-radius:var(--settings-radius);border-bottom-right-radius:var(--settings-radius)}.settings-menu-container.s-o .settings-menu .item:first-child:not(.mobile){padding-top:6px}.settings-menu-container.s-o .settings-menu .item:last-child:not(.mobile){padding-bottom:6px}.settings-menu-container.s-o .menu.desktop{bottom:0;max-width:100%;position:absolute;right:0}.settings-menu.s-o{line-height:40px}.settings-menu.desktop.s-o{min-width:300px}.settings-menu-container.s-o .menu.mobile{background:var(--mobile-settings-bg);font-size:15px;line-height:50px;width:100%}.settings-menu-container.s-o .menu.mobile.hidden{display:none}.settings-menu-container.s-o .menu .item:not(.switch-item),.settings-menu-container.s-o .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-o .menu .item:hover{background-color:var(--settings-item-bg-hover)}.settings-menu-container.s-o .menu .item.mobile:hover{background:var(--mobile-settings-bg)}.settings-menu.s-o .item:not(.switch-item),.settings-menu.s-o .switch-wrapper{padding:0 32px 0 18px}.settings-menu.s-o .item.mobile:not(.switch-item),.settings-menu.s-o .switch-wrapper.mobile{padding:0 14px}.settings-menu.s-o .icon-wrapper{align-items:center;display:flex;height:24px;justify-content:center;margin-right:16px;min-width:24px;width:24px}.settings-menu.s-o .label{flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis}.settings-menu.s-o .item.header.mobile:where(.s-o){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-o .items::-webkit-scrollbar{width:8px}.settings-menu-container.s-o .items::-webkit-scrollbar-track{background-color:#3a3a3a;border-radius:4px;box-shadow:none}.settings-menu-container.s-o .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-o .items::-webkit-scrollbar-thumb:hover{background-color:#777}.settings-menu-container.s-o .items.mobile{max-height:160px;overflow-x:hidden;overflow-y:auto;text-align:left}.close.s-o{height:12px;margin-right:-12px;padding:12px;position:relative;width:12px}.close.s-o:after,.close.s-o:before{background-color:var(--white);content:" ";height:12px;left:18px;position:absolute;width:2px}.close.s-o:before{transform:rotate(45deg)}.close.s-o:after{transform:rotate(-45deg)}'};function Rc(t,e){B(e,!0),Y(t,pC);let[i,o]=De(),r=()=>x(He,"$settingsMenuVisible",i),a=()=>x(ot,"$settingsMenuOpenedByKeyboard",i),l=()=>x(Fe,"$debugPanelVisible",i),d=()=>x(de,"$isMobile",i),s=()=>x(Te,"$playerSize",i),u=()=>x(ye,"$hasMpegSources$",i),f=()=>x(Re,"$mobileNotReportControlHidden$",i),p=()=>x(ve,"$autoQualityLimitingAvailable$",i),v=()=>x(K,"$availableSubtitlesList$",i),_=()=>x(Ve,"$isLiveWithPlaybackSpeed",i),y=()=>x(ee,"$availableAudioStreams$",i),b=()=>x(O,"$availablePlaybackRates$",i),w=()=>x(pe,"$currentAudioStream$",i),I=()=>x(U,"$currentPlaybackRate$",i),T=()=>x(tt,"$trafficSavingEnabled",i),N=()=>x(_e,"$currentQuality$",i),A=()=>x(ue,"$isAutoQualityEnabled$",i),E=()=>x(Ye,"$currentSubtitle$",i),k=()=>x(kt,"$additionalSettingsMenuItems$",i),Q=()=>x(Ge,"$isAutoQualityAvailable$",i),F=()=>x(we,"$availableQualities$",i),z=()=>x(Ee,"$highQualityEnabled",i),X=h(e,"ref",15,void 0),se=h(e,"playerControlsHeight",3,0),Z=si({}),oe=si({}),J=he(),Ce=Rt(),pe=J.state.audioStream$,ee=J.state.availableAudioStreams$,_e=J.state.currentQuality$,we=J.state.availableQualities$,ve=J.state.autoQualityLimitingAvailable$,ue=J.state.isAutoQualityEnabled$,Ge=J.state.isAutoQualityAvailable$,U=J.state.currentPlaybackRate$,O=J.state.availablePlaybackRates$,Ye=J.state.currentSubtitle$,K=J.state.availableSubtitlesList$,ae=J.state.canDownload,ye=J.state.hasMpegSources$,He=J.ui.settingsMenu.visible$,ot=J.ui.settingsMenu.openedByBtnKeyboard$,re=J.ui.settingsMenu.ref$,de=J.ui.isMobile,Re=J.ui.mobileNotReportControlHidden$,Ve=J.state.canChangePlaybackSpeed$,tt=J.state.trafficSavingEnabled$,Ee=J.state.highQualityEnabled$,Te=J.ui.playerSize,Fe=J.ui.debugPanelVisible,At=J.state.isInteractiveTime$,kt=J.ui.additionalSettingsMenuItems$,Lt=J.ui.t,lt=J.actions.internal.downloadVideo,Ct=J.actions.internal.closeSettingsMenu,Zt=J.actions.internal.openSettingsSubMenu,Ht=J.actions.internal.closeSettingsSubMenu,Ot=q(!1),Kt=q(void 0),G=qb();Oe(()=>{!r()&&G.current&&(Ht(oe[G.current]),G.popAllSubMenus())}),Oe(()=>{r()||R(Kt,void 0)}),Oe(()=>{!G.current&&n(Kt)&&nb(Z,n(Kt))}),Oe(()=>{X()&&re.set(X())});async function Pe(St){var W;G.pushSubMenu(St),await mo(),Zt(St,oe[St]);let Ft=(W=X())==null?void 0:W.firstElementChild;Ft&&pm(Ft)}function ke(St){var Ft;St==null||St.stopPropagation(),a()||(Ft=e.returnFocus)==null||Ft.call(e),Ct(),R(Ot,!1)}function xe(St,Ft){J.actions.internal.setQuality(St,{appliesTo:Ft,byUser:!0}),ke()}function Be(St){J.actions.internal.setAudioStream(St),ke()}function $e(St,Ft){J.actions.internal.setTrafficSavingEnabled(St,Ft),Ce.features.qualityDetailsSubMenuEnabled&&ke()}function Tt(St,Ft){J.actions.internal.setHighQualityEnabled(St,Ft),ke()}function fe(St){J.actions.internal.setPlaybackRate(St),ke()}function Ne(St){J.actions.internal.setSubtitle(St),ke()}function Qe(){lt()}function rt(){(0,Vc.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),J.actions.internal.reportProblem(),J.actions.internal.pause()}function qt(){Kl(J.actions.internal.getDebugTextData())}let Nt=()=>{let St=J.actions.internal.getTraceTextData(),Ft=new Blob([...St],{type:"application/json"}),W=window.URL.createObjectURL(Ft);Ba(W,"vk_player_trace_info","json")};function pi(){Fe.set(!l())}function di(){R(Ot,!0)}function Ti(){R(Ot,!1)}function no(){return d()?`max-height: ${Math.round(s().height*.6)}px`:`max-height: ${s().height-32-se()}px; overflow: auto;`}let ci=m(()=>ae&&u()&&!f()),bi=m(()=>Ce.features.trafficSaving&&!f()&&p()&&!Ce.features.qualityDetailsSubMenuEnabled),xt=m(()=>v().length>0&&!f()),ui=m(()=>!!_()&&!f()),Yi=m(()=>Ce.features.audioLanguages&&y().length>=2&&!f()),pt=m(()=>!f());Vt(()=>At.subscribe(St=>{St&&!d()&&!n(Ot)&&!a()&&ke()}));let Bt=m(()=>{let St=[n(pt)&&"quality-settings",n(Yi)&&"audio-tracks-settings",n(ui)&&"playback-rate-settings",n(xt)&&"subtitles-settings",n(bi)&&"traffic-saving-switch",n(ci)&&"download",Ce.showSupport&&"show-support","copy-data",Ce.features.saveTraceInfoToFile&&"save-trace-info","debug-info"].filter(Ft=>!!Ft);return i$({items:St,context:{qualityDetailsSubMenuEnabled:Ce.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:b(),currentAudioStream:w(),availableAudioStreams:y(),currentPlaybackRate:I(),selectPlaybackRate:fe,trafficSavingEnabled:T(),toggleTrafficSaving:$e,currentQuality:N()||Vc.VideoQuality.INVARIANT,isAutoQualityEnabled:A()||!1,currentSubtitle:E(),isMobile:d(),onDownloadClick:Qe,onCopyDataClick:qt,onReportProblemClick:rt,onSaveTraceDataClick:Nt,toggleShowDebugInfo:pi},additionalSettingsMenuItems:k()})}),dt=m(()=>t$({subMenuId:G.current,context:{availablePlaybackRates:b(),selectPlaybackRate:fe,trafficSavingEnabled:T(),toggleTrafficSaving:$e,currentQuality:N()||Vc.VideoQuality.INVARIANT,isAutoQualityEnabled:A()||!1,isAutoQualityAvailable:Q()||!1,availableQualities:F(),highQualityEnabled:z(),toggleHighQuality:Tt,availableAudioStreams:y(),availableSubtitlesList:v(),closeSettingsMenu:Ct,currentAudioStream:w(),isMobile:d(),selectAudioLanguage:Be,selectQuality:xe,selectSubtitle:Ne}}));var We=uC();let fi;var vo=C(We);{var Zo=St=>{var Ft=cC();let W;Ft.__keydown=[lC,Ct];var Mt=C(Ft);{var ni=_t=>{var st=dC();let Ni;var Pi=C(st),fn=C(Pi,!0);S(Pi);var mn=P(Pi,2);mn.__click=ke,S(st),D((Ai,Di)=>{Ni=ne(st,1,"item header s-o",null,Ni,Ai),me(fn,Di)},[()=>({mobile:d()}),()=>Lt("submenu_settings")]),$(_t,st)};V(Mt,_t=>{d()&&_t(ni)})}var gt=P(Mt,2);let Jt;$i(gt,21,()=>n(Bt),_t=>_t.id,(_t,st)=>{var Ni=Le(),Pi=ce(Ni);{var fn=Ai=>{Pv(Ai,{get isMobile(){return d()},get id(){return n(st).id},get icon(){return n(st).icon},get iconProps(){return n(st).iconProps},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:()=>{Pe(n(st).children),R(Kt,n(st).id,!0)},get ref(){return Z[n(st).id]},set ref(Di){Z[n(st).id]=Di}})},mn=(Ai,Di)=>{{var Dn=ro=>{let Ii=m(()=>`${n(st).id}-menu-item`);Lv(ro,{get isMobile(){return d()},get id(){return n(Ii)},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:ke})},bo=(ro,Ii)=>{{var No=Do=>{let vn=m(()=>`${n(st).id}-menu-item`);Vv(Do,{get isMobile(){return d()},get id(){return n(vn)},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}})};V(ro,Do=>{n(st).type==="SWITCH"&&Do(No)},Ii)}};V(Ai,ro=>{n(st).type==="CLICK"?ro(Dn):ro(bo,!1)},Di)}};V(Pi,Ai=>{n(st).type==="OPEN_SUB_MENU"?Ai(fn):Ai(mn,!1)})}$(_t,Ni)}),S(gt),Ze(gt,_t=>X(_t),()=>X()),S(Ft),D((_t,st,Ni)=>{W=ne(Ft,1,"settings-menu menu s-o",null,W,_t),Jt=ne(gt,1,"items",null,Jt,st),Ke(gt,Ni)},[()=>({desktop:!d(),mobile:d(),hidden:!!G.current}),()=>({mobile:d()}),no]),ut("mouseenter",Ft,di),ut("mouseleave",Ft,Ti),$(St,Ft)};V(vo,St=>{r()&&St(Zo)})}var Jo=P(vo,2);$i(Jo,17,()=>n(dt),St=>St.id,(St,Ft)=>{let W=m(()=>{var Mt;return(Mt=n(Ft).minWidth)!=null?Mt:137});kv(St,{get isMobile(){return d()},get playerControlsHeight(){return se()},get returnFromSubMenu(){return G.popSubMenu},get id(){return n(Ft).id},get title(){return n(Ft).title},get closeSettingsMenu(){return Ct},openSubMenuList:Pe,get items(){return n(Ft).items},get minWidth(){return n(W)},get refMenuItems(){return Z},get listRef(){return oe[n(Ft).id]},set listRef(Mt){oe[n(Ft).id]=Mt}})}),S(We),D(St=>fi=ne(We,1,"settings-menu-container s-o",null,fi,St),[()=>({mobile:d(),hidden:!r()})]),$(t,We),H(),o()}je(["keydown","click"]);var fC=L('<button class="btn s-1d"> </button>'),mC={hash:"s-1d",code:"button.btn.s-1d{background:hsla(0,0%,100%,.1);border-radius:8px;font-size:14px;line-height:18px;margin-top:12px;padding:6px 12px 7px}"};function Gv(t,e){Y(t,mC);var i=fC();i.__click=function(...r){var a;(a=e.onClick)==null||a.apply(this,r)};var o=C(i,!0);S(i),D(()=>me(o,e.label)),$(t,i)}je(["click"]);var vC=L('<div class="container s-q"><div class="notification s-q"><div><p class="description s-q"><!></p> <!></div> <!></div></div>'),gC={hash:"s-q",code:".container.s-q{display:flex;justify-content:center;left:0;pointer-events:none;position:absolute;right:0;top:20px;z-index:var(--controls-container-z-index)}.notification.s-q{background:var(--notification-bg);border-radius:var(--notification-radius);display:inline-flex;gap:10px;padding:9px 14px 10px 12px;pointer-events:auto}.description.s-q{font-size:13px;line-height:16px;margin:0;white-space:pre}"};function Nc(t,e){B(e,!0),Y(t,gC);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=Rt(),{ui:{t:r}}=he(),a=r(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var l=vC(),d=C(l),s=C(d),u=C(s),f=C(u);Mc(f,{get message(){return a}}),S(u);var p=P(u,2);{var v=y=>{let b=m(()=>r("slow_video_notification_button"));Gv(y,{get label(){return n(b)},get onClick(){return e.onSelectAutoQuality}})};V(p,y=>{o||y(v)})}S(s);var _=P(s,2);Ds(_,{get onClick(){return e.onClose}}),S(d),S(l),ts(3,d,()=>bs,()=>({duration:i})),$(t,l),H()}var Dc=require("@vkontakte/videoplayer-shared/es2018"),ll="annotation",wp=class{constructor(e){this.slots=new Map;this.disabledIds=new Set(e)}init(e,i){this.shadowRootContainer=e,this.store=i}add(e,i){var s;let{overlay:o,id:r,controlsBehaviour:a,hideAllControls:l}=i;if(this.disabledIds.has(r))return{success:!1,message:"current slotId is disabled via config"};let d=typeof e=="function"?e():e;return d.setAttribute("slot",ll),this.setupSlotStyles(d,o),this.shadowRootContainer.append(d),this.slots.set(r,{rootElement:d,options:i}),a&&this.runHidingControlsWhenIntersected(r,a),l&&((s=this.store)==null||s.ui.isControlsAvailable.set(!1)),{success:!0}}setupSlotStyles(e,i){switch(e.style.position="absolute",i){case"over_video":e.style.zIndex="calc(var(--video-container-z-index) + 1)";break;case"over_controls":e.style.zIndex="calc(var(--controls-container-z-index) + 1)";break;default:e.style.zIndex="0"}}async runHidingControlsWhenIntersected(e,{observedSlotElementId:i,controlsToObserve:o}){var f;let r=this.slots.get(e);if(!r)return;let a=await this.findSlotElement(r.rootElement,i,e),{controls:l,hiddenControls:d}=((f=this.store)==null?void 0:f.ui)||{},s=new MutationObserver(p=>p.forEach(()=>{let v=Bs(a,this.shadowRootContainer);o.forEach(_=>{let y=l==null?void 0:l[_],b=y?be(y):null,w=d==null?void 0:d[_];b&&(w==null||w.set((0,Dc.isIntersecting)(b,v)))})}));s.observe(a,{childList:!0,subtree:!0}),r.observer=s;let u=new Dc.Subscription;o.forEach(p=>{l&&u.add(l[p].subscribe(v=>{let _=d==null?void 0:d[p];v&&v.isDisplayed?_==null||_.set((0,Dc.isIntersecting)(v,Bs(a,this.shadowRootContainer))):_==null||_.set(!1)}))}),r.subs=u}async findSlotElement(e,i,o){return new Promise(r=>{let a=null,l=new MutationObserver(()=>{if(a=e.querySelector(`#${i}`),a){l.disconnect();let s=this.slots.get(o);s&&(s.observerForFindingSlotElement=void 0),r(a)}});l.observe(e,{childList:!0,subtree:!0});let d=this.slots.get(o);d&&(d.observerForFindingSlotElement=l)})}remove(e){var u,f;let i=this.slots.get(e);if(!i)return;let{rootElement:o,observer:r,observerForFindingSlotElement:a,subs:l,options:{controlsBehaviour:d,hideAllControls:s}}=i;o&&o.remove(),[r,a].forEach(p=>p==null?void 0:p.disconnect()),l==null||l.unsubscribe(),this.slots.delete(e),s&&((u=this.store)==null||u.ui.isControlsAvailable.set(!0)),(f=d==null?void 0:d.controlsToObserve)==null||f.forEach(p=>{var v,_;(_=(v=this.store)==null?void 0:v.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 hC=L('<div class="container s-5"><!></div>'),_C={hash:"s-5",code:".container.s-5{align-items:center;animation-fill-mode:forwards;animation-name:s-5-videoPlayerStatusIconPopup;background-color:#00000073;border-radius:100%;display:flex;height:64px;justify-content:center;width:64px;will-change:opacity,scale}@keyframes s-5-videoPlayerStatusIconPopup{0%{opacity:0;scale:.6}10%{animation-timing-function:ease-in;opacity:1;scale:1}75%{opacity:1;scale:1}90%{animation-timing-function:ease-out;opacity:0;scale:.4}to{opacity:0;scale:0}}"};function Oc(t,e){B(e,!0),Y(t,_C);let i=h(e,"reversed",3,!1);var o=Le(),r=ce(o);Ls(r,()=>e.Icon,a=>{var l=hC(),d=C(l);Vi(d,()=>e.Icon,(s,u)=>{u(s,{get size(){return"48"},get reversed(){return i()}})}),S(l),D(()=>Ke(l,`animation-duration: ${e.duration}ms`)),$(a,l)}),$(t,o),H()}var Yv=require("@vkontakte/videoplayer-core/es2018"),bC=L('<div class="container s-10"><!></div>'),$C={hash:"s-10",code:".container.s-10{align-items:center;display:flex;height:100%;justify-content:center;pointer-events:none;position:absolute;width:100%}"};function jv(t,e){B(e,!0),Y(t,$C);let[i,o]=De(),r=()=>x(s,"$playbackState$",i),a=()=>x(f,"$previewTrackActive",i),l=()=>x(p,"$previewTrackDragInProgress",i),d=()=>x(u,"$isPlaying$",i),{state:{playbackState$:s,isPlaying$:u},ui:{previewTrackActive:f,previewTrackDragInProgress:p}}=he(),{features:{playbackStatusShow:v},playbackStatusAnimationDuration:_}=Rt(),y=0,b=q(null),w=q(!1);Oe(()=>{r()===Yv.PlaybackState.PLAYING?R(b,Vn,!0):r()===Yv.PlaybackState.PAUSED?R(b,Fs,!0):R(b,null)}),Oe(()=>{if(!(!v||a()||l()))return y=window.setTimeout(()=>{y=0,R(b,null)},_),()=>{y&&(window.clearTimeout(y),y=0)}}),Oe(()=>{d()&&!n(w)&&(R(w,!0),R(b,null))});var I=Le(),T=ce(I);{var N=A=>{var E=bC(),k=C(E);Oc(k,{get duration(){return _},get Icon(){return n(b)}}),S(E),$(A,E)};V(T,A=>{n(b)&&v&&A(N)})}$(t,I),H(),o()}var yC=L('<div><div data-testid="video-container"></div></div>'),xC={hash:"s-d",code:".video-container.s-d,.video-wrapper.s-d{height:100%;left:0;position:absolute;top:0;width:100%}.video-wrapper.s-d{background:var(--black)}.video-container.s-d,.video-wrapper.s-d{z-index:var(--video-container-z-index)}.video-container.s-d{transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.s-d{transition:none}.nocursor.s-d{cursor:none}"};function dl(t,e){B(e,!0),Y(t,xC);let[i,o]=De(),r=()=>x(p,"$rotateAlpha",i),a=()=>x(v,"$playerSize",i),l=()=>x(f,"$playerPhase",i),d=()=>x(y,"$chromecastConnected$",i),s=()=>x(_,"$isPlaying$",i),u=h(e,"videoContainer",15),{playerPhase:f,ui:{rotateAlpha:p,playerSize:v},state:{isPlaying$:_,chromecastConnected$:y}}=he(),{isSmoothVideoRotate:b}=Rt(),w=m(()=>u()&&r()%180?a().height/a().width:1);var I=yC();let T;I.__contextmenu=function(...E){var k;(k=e.onContextMenu)==null||k.apply(this,E)},I.__mousedown=function(...E){var k;(k=e.onMouseDown)==null||k.apply(this,E)},I.__mouseup=function(...E){var k;(k=e.onMouseUp)==null||k.apply(this,E)},I.__click=function(...E){var k;(k=e.onClick)==null||k.apply(this,E)},I.__dblclick=function(...E){var k;(k=e.onDblClick)==null||k.apply(this,E)};var N=C(I);let A;Ze(N,E=>u(E),()=>u()),S(I),D((E,k)=>{T=ne(I,1,"video-wrapper s-d",null,T,E),A=ne(N,1,"video-container s-d",null,A,k),Ke(N,`transform: rotate(${r()}deg) scale(${n(w)})`),Me(N,"data-is-playing",s())},[()=>({hidden:l()!=="video"||d(),nocursor:e.hideCursor}),()=>({"fast-rotate":!b})]),$(t,I),H(),o()}je(["contextmenu","mousedown","mouseup","click","dblclick"]);var wC=L('<div><span class="text s-12"> </span> <!></div>'),SC={hash:"s-12",code:".root.s-12{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-12,.root.visible.s-12{transform:translateX(-50%)}.root.visible.s-12{opacity:1;visibility:visible}.text.s-12{font-size:13px;font-weight:600;line-height:16px}"};function Xv(t,e){B(e,!0),Y(t,SC);let{ui:{t:i}}=he();var o=wC();let r;var a=C(o),l=C(a,!0);S(a);var d=P(a,2);Ec(d,{get size(){return"16"},fill:"currentColor"}),S(o),D((s,u)=>{r=ne(o,1,"root s-12",null,r,s),me(l,u)},[()=>({visible:e.isVisible}),()=>i("double_forward_label")]),$(t,o),H()}var CC=L('<div class="container s-14" role="button" data-testid="preview-track-overlay"><div class="icon s-14"><!></div></div>'),TC={hash:"s-14",code:".container.s-14{background-color:rgba(0,0,0,.48);cursor:pointer;height:100%;position:absolute;width:100%}.container.s-14,.icon.s-14{align-items:center;display:flex;justify-content:center}.icon.s-14{background-color:#00000073;border-radius:100%;height:64px;transition:transform .2s;transition-timing-function:ease-out;width:64px;will-change:transform}.container.s-14:hover .icon:where(.s-14){transform:scale(1.15)}"};function Zv(t,e){B(e,!1),Y(t,TC);let o=he().actions.internal.closePreviewTrack,r=200,a=u=>{u.stopPropagation(),o()};ho();var l=CC();l.__click=a;var d=C(l),s=C(d);return Vn(s,{get size(){return"32"}}),S(d),S(l),ts(3,l,()=>bs,()=>({duration:r})),$(t,l),Nf(e,"handleClick",a),H({handleClick:a})}je(["click"]);var IC=L('<div class="container s-15"><div class="notification s-15"><span class="text s-15"> </span></div></div>'),EC={hash:"s-15",code:".container.s-15{display:flex;justify-content:center;left:0;pointer-events:none;position:absolute;right:0;top:20px}.notification.s-15{background-color:var(--black-alpha-40);border-radius:var(--notification-radius);padding:10px 16px}.text.s-15{font-size:14px;font-weight:500;line-height:18px}"};function Jv(t,e){B(e,!1),Y(t,EC);let{ui:{t:i}}=he();ho();var o=IC(),r=C(o),a=C(r),l=C(a,!0);S(a),S(r),S(o),D(d=>me(l,d),[()=>i("preview_track_notification_text")],In),ts(3,r,()=>bs,()=>({duration:340})),$(t,o),H()}var kC=(t,e,i,o,r,a)=>{if(t.stopPropagation(),e()||o()){a();return}},PC=L("<div><!></div>"),AC=L('<div class="spherical-video-icon s-7"><!></div>'),LC=L("<div><!></div>"),MC=L('<div class="settings-menu s-7"><!></div>'),VC=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),RC=L("<!> <!> <!>",1),NC=L('<div class="blocked s-7"></div>'),DC=L('<div class="player-wrapper s-7"><!> <div class="overlay-container"></div></div> <!>',1),OC={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 tg(t,e){B(e,!0),Y(t,OC);let[i,o]=De(),r=()=>x(Hr,"$notificationsToShow$",i),a=()=>x(bi,"$playerPhase",i),l=()=>x(Zo,"$isLoaderVisible",i),d=()=>x(Ti,"$adPlaybackState",i),s=()=>x(gt,"$crashed",i),u=()=>x(Di,"$isInteractiveTime$",i),f=()=>x(pt,"$settingsMenuVisible",i),p=()=>x(Dn,"$isInteractiveExpectation$",i),v=()=>x(Yi,"$controlsVisible",i),_=()=>x(ro,"$touched",i),y=()=>x(as,"$graphIsOpened$",i),b=()=>x(xt,"$isFullscreen",i),w=()=>x(er,"$autoplayNextEnabled$",i),I=()=>x(W,"$postrollPassed",i),T=()=>x(Jo,"$isEnded$",i),N=()=>x(bn,"$cursorInside",i),A=()=>x(gn,"$isControlsAvailable",i),E=()=>x(mr,"$doubleForwardOn$",i),k=()=>x(tr,"$fakeIsPlaying$",i),Q=()=>x(Fn,"$bottomNoSmooth",i),F=()=>x(Rr,"$interactiveTimeIndicator",i),z=()=>x(Pi,"$playerSize",i),X=()=>x(fn,"$is3DVideo",i),se=()=>x(vr,"$doubleForwardAvailable$",i),Z=()=>x(fi,"$contextMenuVisible$",i),oe=()=>x(di,"$playbackState$",i),J=()=>x(Ii,"$hotKeyMapData",i),Ce=()=>x(dt,"$scrubbingInProgress",i),pe=()=>x(We,"$volumeChangingInProgress",i),ee=()=>x(St,"$chromecastConnected$",i),_e=()=>x(Un,"$controlsTimeoutActive",i),we=()=>x(Bt,"$settingsMenuOpenedByKeyboard",i),ve=()=>x(Io,"$contextMenuOpenedByKeyboard$",i),ue=()=>x(zo,"$contextMenuOpenedByHotKey$",i),Ge=()=>x(wn,"$contextMenuButtonRef$",i),U=()=>x(rr,"$contextMenuLastActiveElem$",i),O=()=>x(ui,"$isFullscreenOpenedByKeyboard",i),Ye=()=>x(Do,"$positionExact$",i),K=()=>x(pi,"$language$",i),ae=()=>x(Tr,"$previewTrackActive$",i),ye=()=>x(mn,"$icon3DVideoVisible",i),He=()=>x(Ft,"$chromecastDeviceName$",i),ot=()=>x(st,"$currentSubtitle$",i),re=()=>x(Ni,"$currentSubtitleCaptions$",i),de=()=>x(no,"$position$",i),Re=()=>x(ci,"$duration$",i),Ve=()=>x(Mt,"$isLive$",i),tt=()=>x(ni,"$isPlaying$",i),Ee=()=>x(Dr,"$contextMenuPosition$",i),Te=()=>x(en,"$previewTrackNotificationVisible$",i),Fe=()=>x(No,"$showHotKeyMap",i),At=()=>x(vo,"$debugPanelVisible",i),kt=()=>x(Br,"$userActionsDisabled$",i),Lt=h(e,"videoContainer",15),lt=h(e,"adsSlotId",3,void 0),Ct=h(e,"adsParams",3,void 0),Zt=h(e,"adsAutoplayParam",3,void 0),Ht=h(e,"duration",3,void 0),Ot=h(e,"logoTargetUrl",3,""),Kt=h(e,"showNextPrevButtons",3,!1),G=h(e,"nextButtonActive",3,!1),Pe=h(e,"prevButtonActive",3,!1),ke=h(e,"endScreenVideoTitle",3,void 0),xe=h(e,"endScreenVideoThumb",3,void 0),Be=h(e,"isOneVideoPlaylist",3,!1),$e=h(e,"shadowRootContainer",3,void 0),Tt=h(e,"outerContainerRef",3,void 0),fe=h(e,"playerStarted",3,!1),Ne=h(e,"fullScreenTarget",3,void 0),Qe=h(e,"showMiniTimer",3,!1),rt=h(e,"showEndScreen",3,!0),qt=h(e,"keyboardControls",15),Nt=e.store.getLogger().createComponentLog("Root component"),pi=e.store.interfaceLanguage$,di=e.store.state.playbackState$,Ti=e.store.ads.playbackState,no=e.store.state.positionWithScrubbing$,ci=e.store.state.duration$,bi=e.store.playerPhase,xt=e.store.ui.isFullscreen,ui=e.store.ui.isFullscreenOpenedByKeyboard,Yi=e.store.ui.controlsVisible,pt=e.store.ui.settingsMenu.visible$,Bt=e.store.ui.settingsMenu.openedByBtnKeyboard$,dt=e.store.ui.scrubbingInProgress,We=e.store.ui.volumeChangingInProgress,fi=e.store.ui.contextMenu.visible$,vo=e.store.ui.debugPanelVisible,Zo=e.store.state.isLoaderVisible,Jo=e.store.state.isEnded$,St=e.store.state.chromecastConnected$,Ft=e.store.state.chromecastDeviceName$,W=e.store.ads.postrollPassed,Mt=e.store.state.isLive$,ni=e.store.state.isPlaying$,gt=e.store.state.crashed$,Jt=e.store.webApi.annotationsApi,_t=e.store.webApi.pictureInPictureApi,st=e.store.state.currentSubtitle$,Ni=e.store.state.currentSubtitleCaptions$,Pi=e.store.ui.playerSize,fn=e.store.ui.is3DVideo,mn=e.store.ui.icon3DVideoVisible,Ai=e.store.state.isInteractive,Di=e.store.state.isInteractiveTime$,Dn=e.store.state.isInteractiveExpectation$,bo=e.store.state.hasInteractiveBranches,ro=e.store.ui.touched,Ii=e.store.ui.modals.hotKeyMap.data,No=e.store.ui.modals.hotKeyMap.show,Do=e.store.state.positionExact$,vn=e.store.ui.overlayContainer$,Rr=e.store.ui.controls.interactiveTimeIndicator,Nr=e.store.state.showInteractiveTimeIndicator,Dr=e.store.ui.contextMenu.position$,$s=e.store.actions.internal.setQuality,Or=e.store.actions.internal.closeSettingsMenu,er=e.store.ui.autoplayNextEnabled$,Br=e.store.ui.userActionsDisabled,gn=e.store.ui.isControlsAvailable,hn=e.store.ui.videoTitleInfo,mr=e.store.ui.doubleForwardOn$,vr=e.store.ui.doubleForwardAvailable$,en=e.store.ui.previewTrackNotificationVisible,gr=e.store.actions.internal.getVideoElement,hr=e.store.actions.internal.checkFullscreenSupport,{fakeIsPlaying$:tr,notifications$:On,graphIsOpened$:as}=_o(),Oo=q(void 0),_r=q(void 0),Oi=q(void 0),br=q(void 0),Bn,vt,ei;Ii.set(X_());let{closeNotification:$r,notificationsToShow$:Hr}=On,Fr=m(()=>!!r().slow_video),Hn=()=>$r("slow_video"),ir=m(()=>(a()==="video"&&l()||a()==="ads"&&d()==="inactive")&&!s()),$o=q(void 0),Fn=le(!1),or,Un=le(!1),_n=le(),bn=le(!1),$n=q(!1),tn=q(!1),Bi=q(!1),ji=q(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),on=m(()=>u()&&!f()&&!(n($n)||n(tn))&&!(n(Bi)&&!p())),nr=!0,yr=m(()=>e.uiConfig.features.thumbTimer&&Qe()&&a()==="video"&&!v()&&!s()&&!Ai&&(e.uiConfig.hideThumbTimerAfterTouch&&!_()||!e.uiConfig.hideThumbTimerAfterTouch)),yn=e.uiConfig.titleShowBehaviour,xr=m(()=>!["video","thumb"].includes(a())||yn==="never"||y()?!1:yn==="fullscreen"?b():!0),ft=m(()=>yn==="always"||a()==="thumb"?!1:!v()),wt=q(!1),so=m(()=>(rt()||e.showAutoplayNext&&w())&&!!ke()&&!!xe()&&(e.showAds&&I()||!e.showAds)&&T()&&!s()&&!n(wt)&&!bo),go=m(()=>N()&&!(v()||n(so))&&!u()&&A()&&!E()),nn=q(!1),yo=m(()=>k()!==null),{toggle:xo}=tr,Ei=!1,wo=null;_t==null||_t.setContext(xd());let Ur=()=>{e.autoplay&&!Ai&&e.uiConfig.controls.showOnStartupAtAutoplay&&Hi(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:Ur});let wr=()=>{window.clearTimeout(Bn),Un.set(!1)},ys=()=>{window.clearTimeout(vt),_n.set(null)},Hi=ge=>{wr(),Un.set(!0),Bn=window.setTimeout(()=>Un.set(!1),ge);let bt=ge-100;or=window.setTimeout(()=>{Q()&&Fn.set(!1)},bt>0?bt:ge)},xs=(ge,bt)=>{ys(),_n.set(bt),vt=window.setTimeout(()=>_n.set(null),ge)},ls=fn.subscribe(ge=>{mn.set(ge),ge&&(window.clearTimeout(ei),ei=window.setTimeout(()=>mn.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Sr=async()=>{var bt,ti,jt,ko;let ge=ra();if(ge){let lo=Xd(),Wo=rn();ge=lo===Wo||lo===$e()}if(ge){Hi(e.uiConfig.controls.hideTimeoutFullscreen);try{await(_t==null?void 0:_t.exit())}catch(lo){Nt({message:String(lo)})}}xt.set(ge),e.store.getAdmanWrapper().setFullscreen(ge),b()?(ti=(bt=e.store.callbacks)==null?void 0:bt.onFullscreenEnter)==null||ti.call(bt):(ko=(jt=e.store.callbacks)==null?void 0:jt.onFullscreenExit)==null||ko.call(jt)},Bo=ge=>{let{width:bt,height:ti}=ge.target;Pi.set({width:bt,height:ti})},zr=()=>{let{width:ge,height:bt}=n(Oo).getBoundingClientRect();Pi.set({width:ge,height:bt})};Vt(()=>{var bt;return ju(Sr),e.uiConfig.features.annotationsInside&&(Jt==null||Jt.init(n(Oo))),za(_t)&&(_t==null||_t.assignPlayerContainer(n(Oo)),_t==null||_t.setExternalEventHandlers({resize:Bo,leavepictureinpicture:zr})),e.interactiveContainer&&((bt=Lt().parentElement)==null||bt.insertBefore(e.interactiveContainer,Lt().nextSibling)),()=>{window.clearTimeout(Bn),window.clearTimeout(or),window.clearTimeout(vt),window.clearTimeout(ei),ls(),_t==null||_t.dispose().catch(ti=>{Nt({message:String(ti)})}),Xu(Sr)}});let rn=()=>{let ge=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Tt()?n(Oo):Tt(),bt=ge.getRootNode(),ti=bt instanceof ShadowRoot?bt.host:bt,jt=Ne()instanceof HTMLElement&&Ne().contains(ti);return e.uiConfig.allowChangingFullscreenTarget&&Ne()&&jt?Ne():ge},sn=()=>{fi.set(!1)},Ue=()=>{Or(),sn()},It=async()=>{if(!hr()){Nt({message:"fullscreen disabled"});return}sn(),ra()?(await Yu(document),Nt({message:"exit fullscreen"})):(Nt({message:"request fullscreen"}),await Gu(rn()))},li=ge=>{y()||(ge.preventDefault(),fi.set(!0),Dr.set({left:ge.clientX,top:ge.clientY}))};function Ho(){bn.set(!0),Ai||Hi(e.uiConfig.controls.hideTimeoutCursor)}function So(ge){var ko,lo;let{relatedTarget:bt}=ge,jt=!!(bt&&((ko=n(Oi))!=null&&ko.contains(bt)))&&((lo=qt())==null?void 0:lo.isFocused());!Ai&&!jt&&(Fn.set(!0),Hi(e.uiConfig.controls.hideTimeoutCursor))}function Fo(){bn.set(!1),R(tn,!1),R($n,!1),Ei=!1,e.store.actions.internal.releaseCamera(),Hi(e.uiConfig.controls.hideTimeout),E()&&Uo()}function Fi(ge){return ge?ge.offsetTop+Fi(ge.offsetParent):0}function Co(ge){return ge?ge.offsetLeft+Co(ge.offsetParent):0}function zn(ge){if(F()&&Nr){let bt=ge.currentTarget,ti=Fi(bt),jt=Co(bt),ko=ge.pageX-jt,lo=ge.pageY-ti,{left:Wo,bottom:Ts,right:qr}=F(),Ir=qr-Wo;return ko>=Wo-Ir&&lo<=Ts+Ir}}function Cr(ge){if(n(Oo)){let bt=Fi(ge.currentTarget),ti=z().height,jt=ge.pageY-bt;if(zn(ge)){R(tn,!1);return}jt<40?R(tn,!0):jt>ti-40?R($n,!0):(R(tn,!1),f()||R($n,!1))}}function To(ge){Cr(ge),!n(on)&&!E()&&Hi(e.uiConfig.controls.hideTimeoutCursor),X()&&Ei&&wo&&e.store.actions.internal.moveCameraFocusPX(wo.clientX-ge.clientX,wo.clientY-ge.clientY,ge.timeStamp-wo.timeStamp),wo=ge}let ao=null,xn=()=>{ao=window.setTimeout(()=>{e.store.actions.internal.changeDoubleForwardOn(!0),wr()},e.uiConfig.doubleForwardActivationTime)},Uo=()=>{e.store.actions.internal.changeDoubleForwardOn(!1),ao&&clearTimeout(ao),ao=null},Wn=ge=>{ge.preventDefault(),ge.button===0&&(Ei=!0,e.store.actions.internal.holdCamera(),se()&&xn()),!Ei&&Hi(e.uiConfig.controls.hideTimeoutCursor)},Wr=ge=>{ge.preventDefault(),ge.button===0&&(wo=ge,Ei=!1,e.store.actions.internal.releaseCamera()),!E()&&Hi(e.uiConfig.controls.hideTimeoutCursor)},Kr=ge=>{ge.preventDefault(),nr&&(Nt({message:"double click on video"}),It(),Hi(e.uiConfig.controls.hideTimeoutCursor))},Kn=ge=>{var bt;if(ge.preventDefault(),E()){Uo();return}if(ao&&Uo(),Z()||f()){Ue();return}if(!(T()&&!bo)){if(n(yo))return xo();if((bt=qt())==null||bt.focus(),!fe()){e.firstStart(),Hi(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||oe()!==eg.PlaybackState.PLAYING)&&e.store.actions.internal.togglePlay(),Hi(e.uiConfig.controls.hideTimeoutCursor)}},et=ge=>{Ue(),ro.set(!0),Hi(e.uiConfig.controls.hideTimeout),ge&&xs(e.uiConfig.controls.hideHotKeyHelpers,ge)},Xt=()=>{var ge,bt;Ue(),(ge=e.store.callbacks)!=null&&ge.onOpenHotKeyMap?(bt=e.store.callbacks)==null||bt.onOpenHotKeyMap(J()):No.update(ti=>!ti)},yi=()=>{ro.set(!0)},Io=e.store.ui.contextMenu.openedByBtnKeyboard$,wn=e.store.ui.contextMenu.btnRef$,qn=q(void 0),zo=e.store.ui.contextMenu.openedByHotKey$,rr=e.store.ui.contextMenu.lastActiveElem$,ds=q(!1),Tr=e.store.ui.previewTrackActive;Oe(()=>{vn.set(n($o))}),Oe(()=>{R(Bi,n(ji)&&oe()!==eg.PlaybackState.PLAYING,!0),n(ji)||Et(()=>R(ji,!0))}),Oe(()=>{var bt,ti;let ge=(n(Bi)||T()||f()||Ce()||pe()||ee()||_e()||n(ds))&&!n(on)&&(a()==="video"||a()==="ads")&&!s()&&A();Yi.set(ge),!ge&&!_e()&&((bt=n(Oi))!=null&&bt.contains(np()))&&((ti=qt())==null||ti.focus())}),Oe(()=>{!Ce()&&n(nn)&&!u()&&Hi(e.uiConfig.controls.hideTimeoutCursor),Et(()=>R(nn,Ce(),!0))}),Oe(()=>{n(br),f(),we(),Et(()=>nc(n(br),f(),we()))}),Oe(()=>{n(qn),Z(),ve(),ue(),Et(()=>{let ge=ve()||ue();nc(n(qn),Z(),ge)})}),Oe(()=>{let ge=Ge();ge&&(Z(),Et(()=>ql(ge,Z(),Io)))}),Oe(()=>{let ge=U();ge&&(Z(),Et(()=>ob(ge,Z(),zo)))}),Oe(()=>{var ge;!O()&&b()&&(Et(()=>ui.set(!1)),(ge=qt())==null||ge.focus())}),Oe(()=>{y()&&Ue()});let ws=q(void 0),Ws=ge=>{hn.set(Zn(gr(),{title:n(ws)},"title",ge))},va=(ge,bt)=>{var lo,Wo;let ti=(Wo=(lo=e.store.callbacks)==null?void 0:lo.uiInfo)==null?void 0:Wo.onUpcomingLiveViewStateChanged;if(!ti)return;let jt=!!bt,ko={...Zn(n(Oo),{upcomingLiveScreen:bt},"upcomingLiveScreen",jt),...ge};ti(ko)},ct="",ri=m(()=>{var ge;return n(ft)?ct:(ge=e.getVideoDeeplink)==null?void 0:ge.call(e,Ye())});Oe(()=>{ct=n(ri)});var Eo=DC();ut("blur",ka,Ue);var xi=ce(Eo);xi.__mousemove=To;var Sn=C(xi);let Cn=m(()=>a()==="ads"),Ss=m(()=>n(yo)?xo:void 0);Ze($m(Sn,{startDoubleForwardActivationTimer:xn,stopDoubleForward:Uo,toggleFullscreen:It,hideContextMenu:Ue,showHotKeyHelpers:et,showKeyMap:Xt,get isAds(){return n(Cn)},get fakePlayButtonHandler(){return n(Ss)},get nextButtonActive(){return G()},get prevButtonActive(){return Pe()},children:(ge,bt)=>{var ti=RC(),jt=ce(ti);dl(jt,{get hideCursor(){return n(go)},onClick:Kn,onContextMenu:li,onMouseDown:Wn,onMouseUp:Wr,onDblClick:Kr,get videoContainer(){return Lt()},set videoContainer(Wo){Lt(Wo)}});var ko=P(jt,2);Ra(ko,()=>"slot",!1,(Wo,Ts)=>{eo(Wo,()=>({name:ll}))});var lo=P(ko,2);Ls(lo,K,Wo=>{var Ts=VC(),qr=ce(Ts);let Ir=m(()=>a()!=="thumb"||s()||Ai&&e.autoplay);rl(qr,{get hidden(){return n(Ir)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart},onContextMenu:li,onClick:sn});var ga=P(qr,2);{var Ks=ze=>{Zv(ze,{})};V(ga,ze=>{ae()&&ze(Ks)})}var ha=P(ga,2);jv(ha,{});var Qr=P(ha,2);Xv(Qr,{get isVisible(){return E()}});var Tn=P(Qr,2);{var pl=ze=>{let _i=m(()=>{var co;return(co=e.live)==null?void 0:co.startTime});Ac(ze,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(_i)},onUpcomingLiveViewStateChanged:va,onContextMenu:li,onClick:sn})};V(Tn,ze=>{a()==="LiveWaitingStart"&&ze(pl)})}var _a=P(Tn,2);{var Gr=ze=>{sl(ze,{kind:"recover",get thumbUrl(){return e.thumbUrl},onContextMenu:li,onClick:sn})};V(_a,ze=>{a()==="LiveWaitingRecover"&&ze(Gr)})}var fl=P(_a,2);{var md=ze=>{sl(ze,{kind:"record",get thumbUrl(){return e.thumbUrl},onContextMenu:li,onClick:sn})};V(fl,ze=>{a()==="LiveWaitingRecord"&&ze(md)})}var ba=P(fl,2);{var vd=ze=>{var _i=PC();let co;var Er=C(_i);Jd(Er,{get adsSlotId(){return lt()},get adsParams(){return Ct()},get adsAutoplayParam(){return Zt()},get duration(){return Ht()},get adsExternalApi(){return e.adsExternalApi}}),S(_i),D(an=>co=ne(_i,1,"ads-container s-7",null,co,an),[()=>({hidden:a()!=="ads"})]),$(ze,_i)};V(ba,ze=>{e.showAds&&fe()&&ze(vd)})}var ml=P(ba,2);{var vl=ze=>{let _i=m(()=>!rt()&&e.showAutoplayNext&&w());hm(ze,{get title(){return ke()},get thumb(){return xe()},get isHide(){return n(_i)},clickCloseIcon:()=>R(wt,!0)})};V(ml,ze=>{n(so)&&ke()&&xe()&&ze(vl)})}var $a=P(ml,2);{var mt=ze=>{let _i=m(()=>b()?"md":"sm"),co=m(()=>{var Er;return(Er=e.store.callbacks)==null?void 0:Er.onTitleClicked});wv(ze,{get title(){return e.title},get isHidden(){return n(ft)},onVisibilityChanged:Ws,get titleLinkHref(){return n(ri)},onMouseEnter:()=>{R(ds,!0)},onMouseLeave:()=>{R(ds,!1)},get size(){return n(_i)},get onTitleClicked(){return n(co)},get ref(){return n(ws)},set ref(Er){R(ws,Er,!0)}})};V($a,ze=>{n(xr)&&ze(mt)})}var nt=P($a,2);{var Xi=ze=>{let _i=m(()=>a()==="video"&&v());kc(ze,{get isShifted(){return n(_i)}})};V(nt,ze=>{X()&&ze(Xi)})}var Po=P(nt,2);{var Zi=ze=>{var _i=AC(),co=C(_i);jd(co,{}),S(_i),$(ze,_i)};V(Po,ze=>{ye()&&ze(Zi)})}var hi=P(Po,2);{var zi=ze=>{Pc(ze,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return He()},onClick:Kn,onContextMenu:li,onDblClick:Kr})};V(hi,ze=>{ee()&&ze(zi)})}var qs=P(hi,2);{var gd=ze=>{ol(ze,{get shifted(){return v()},get captions(){return re()},get position(){return de()},get playerSize(){return z()}})};V(qs,ze=>{ot().value!=="off"&&ze(gd)})}var Yc=P(qs,2);{var Hp=ze=>{var _i=LC();_i.__contextmenu=li,_i.__click=[kC,Z,fi,f,pt,Ue];var co=C(_i);nl(co,{}),S(_i),$(ze,_i)};V(Yc,ze=>{s()&&ze(Hp)})}var jc=P(Yc,2);{var Fp=ze=>{let _i=m(()=>a()==="thumb"||a()==="LiveWaitingStart"||a()==="LiveWaitingRecover"||a()==="LiveWaitingRecord"),co=m(()=>a()==="ads"),Er=m(()=>e.canRewindLive&&Re()!==0);Ic(ze,{get bottomHidden(){return n(_i)},get bottomNoSmooth(){return Q()},get showControls(){return v()},get isAds(){return n(co)},get canRewindLive(){return n(Er)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Ot()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Kt()},get nextButtonActive(){return G()},get prevButtonActive(){return Pe()},get isOneVideoPlaylist(){return Be()},customFullscreenSupported:nr,toggleFullscreen:It,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return n(_r)},set playerControlsWrapperRef(an){R(_r,an,!0)},get playerControlsRef(){return n(Oi)},set playerControlsRef(an){R(Oi,an,!0)}})};V(jc,ze=>{fe()&&ze(Fp)})}var Xc=P(jc,2);{var Up=ze=>{var _i=MC(),co=C(_i);let Er=m(()=>{var an;return(an=n(Oi))==null?void 0:an.clientHeight});Rc(co,{get supportLink(){return e.supportLink},get playerControlsHeight(){return n(Er)},returnFocus:()=>{var an;return(an=qt())==null?void 0:an.focus()},get ref(){return n(br)},set ref(an){R(br,an,!0)}}),S(_i),$(ze,_i)};V(Xc,ze=>{!ee()&&a()!=="ads"&&ze(Up)})}var Zc=P(Xc,2);let zp=m(()=>!n(yr));ic(Zc,{get isLive(){return Ve()},get isHidden(){return n(zp)},get isPlaying(){return tt()},get position(){return de()},get duration(){return Re()}});var ya=P(Zc,2);yv(ya,{get data(){return _n}});var Jc=P(ya,2);vm(Jc,{get supportLink(){return e.supportLink},returnFocus:()=>{var ze;return(ze=qt())==null?void 0:ze.focus()},get visible(){return Z()},get playerContainerRef(){return n(Oo)},get position(){return Ee()},get menuElementRef(){return n(qn)},set menuElementRef(ze){R(qn,ze,!0)}});var Qs=P(Jc,2);{var gl=ze=>{Nc(ze,{onClose:Hn,onSelectAutoQuality:()=>{$s("auto"),Hn()}})};V(Qs,ze=>{n(Fr)&&ze(gl)})}var eu=P(Qs,2);{var tu=ze=>{Jv(ze,{})};V(eu,ze=>{Te()&&ze(tu)})}var hl=P(eu,2);{var iu=ze=>{Qa(ze,{})};V(hl,ze=>{n(ir)&&ze(iu)})}var ou=P(hl,2);{var nu=ze=>{wm(ze,{})};V(ou,ze=>{Fe()&&ze(nu)})}var Wp=P(ou,2);{var Kp=ze=>{sc(ze,{})};V(Wp,ze=>{At()&&ze(Kp)})}$(Wo,Ts)}),$(ge,ti)},$$slots:{default:!0}}),ge=>qt(ge),()=>qt());var Cs=P(Sn,2);Ze(Cs,ge=>R($o,ge),()=>n($o)),S(xi),Ze(xi,ge=>R(Oo,ge),()=>n(Oo));var Ui=P(xi,2);{var Ci=ge=>{var bt=NC();$(ge,bt)};V(Ui,ge=>{kt()&&ge(Ci)})}ut("mouseenter",xi,Ho),ut("mouseleave",xi,Fo),ut("click",xi,yi,!0),ut("focusin",xi,So,!0),$(t,Eo),H(),o()}je(["mousemove","contextmenu","click"]);var ma=require("@vkontakte/videoplayer-core/es2018"),d$=require("@vkontakte/videoplayer-shared/es2018");var BC=L('<div></div> <div class="info s-h"><div class="triangles-wrapper s-h"><div></div> <div></div> <div></div></div> <p class="step-caption s-h"> </p></div>',1),HC=L("<div><!></div>"),FC={hash:"s-h",code:".double-click-area.s-h{height:100%;overflow:hidden;position:absolute;top:0;width:25%}.double-click-area.left.s-h{left:0}.double-click-area.right.s-h{right:0}.semicircle.s-h{background-color:rgba(0,0,0,.5);height:100%;position:absolute;top:0;width:100%}.semicircle.left.s-h{border-bottom-right-radius:50%;border-top-right-radius:50%;left:0}.semicircle.right.s-h{border-bottom-left-radius:50%;border-top-left-radius:50%;right:0}.info.s-h{align-items:center;flex-direction:column;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.info.s-h,.triangles-wrapper.s-h{display:flex;justify-content:center}.triangles-wrapper.s-h{margin-bottom:10px;position:relative}.triangle.s-h{animation:s-h-blink .5s infinite;border-bottom:6px solid transparent;border-top:6px solid transparent;height:0;opacity:0;width:0}.triangle.left.s-h:nth-child(3),.triangle.right.s-h:first-child{animation-delay:0s}.triangle.left.s-h:nth-child(2),.triangle.right.s-h:nth-child(2){animation-delay:.1s}.triangle.left.s-h:first-child,.triangle.right.s-h:nth-child(3){animation-delay:.2s}@keyframes s-h-blink{0%{opacity:0}50%{opacity:1}to{opacity:0}}.triangle.left.s-h{border-right:8px solid var(--white)}.triangle.right.s-h{border-left:8px solid var(--white)}.triangle.s-h:not(:last-child){margin-right:5px}.step-caption.s-h{color:var(--white);font-size:12px;line-height:1;margin:0;text-align:center}"};function Sp(t,e){B(e,!0),Y(t,FC);let i=h(e,"seekStep",3,0),o=q(!1),r=0,a=0,l=q(si(i())),d=p=>{p.stopPropagation(),a+=1,R(l,i()*(a-1)),a===1?e.handleSingleFirstClick(p):(R(o,!0),e.handleSecondClick()),window.clearTimeout(r),r=window.setTimeout(()=>{a=0,R(o,!1)},300)};cn(()=>{window.clearTimeout(r)});var s=HC();s.__click=d;var u=C(s);{var f=p=>{var v=BC(),_=ce(v),y=P(_,2),b=C(y),w=C(b),I=P(w,2),T=P(I,2);S(b);var N=P(b,2),A=C(N,!0);S(N),S(y),D(E=>{var k,Q,F,z;ne(_,1,`semicircle ${(k=e.side)!=null?k:""}`,"s-h"),ne(w,1,`triangle ${(Q=e.side)!=null?Q:""}`,"s-h"),ne(I,1,`triangle ${(F=e.side)!=null?F:""}`,"s-h"),ne(T,1,`triangle ${(z=e.side)!=null?z:""}`,"s-h"),me(A,E)},[()=>j("doubletap_seek_step",{seconds:n(l).toFixed(0)})]),$(p,v)};V(u,p=>{n(o)&&p(f)})}S(s),D(()=>{var p;return ne(s,1,`double-click-area ${(p=e.side)!=null?p:""}`,"s-h")}),$(t,s),H()}je(["click"]);var UC=(t,e,i)=>{e(!1),i()},zC=L('<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),WC={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 ig(t,e){B(e,!0),Y(t,WC);let[i,o]=De(),r=()=>x(d,"$autoplayNextEnabled$",i),a=()=>x(s,"$timerNextVideoRunning$",i),l=he(),d=l.ui.autoplayNextEnabled$,s=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,f=l.actions.internal.nextVideoAnnouncementShow,p=l.actions.internal.nextVideoAnnouncementClick,v=l.actions.internal.nextVideoAnnouncementAuto,_=l.actions.internal.nextVideoAnnouncementCancel,y=()=>{u(!1),v()},b=()=>{e.clickCloseIcon(),_()};Vt(()=>{e.isHide||f(),e.isHide&&r()&&(u(!1),v())});var w=Le(),I=ce(w);{var T=N=>{var A=zC(),E=P(ce(A),2),k=C(E),Q=C(k),F=C(Q,!0);S(Q);var z=P(Q,2);Ds(z,{onClick:b}),S(k);var X=P(k,2);X.__click=[UC,u,p];var se=C(X),Z=C(se),oe=C(Z);let J;var Ce=P(oe,2);{var pe=ve=>{ac(ve,{get isRunning(){return a()},onTimerEnded:y})};V(Ce,ve=>{r()&&ve(pe)})}S(Z),S(se);var ee=P(se,2),_e=C(ee),we=C(_e,!0);S(_e),S(ee),S(X),S(E),D((ve,ue)=>{me(F,ve),Ke(Z,`background-image: url('${e.thumb}')`),J=ne(oe,1,"thumb-overlay s-m",null,J,ue),me(we,e.title)},[()=>r()?j("end_screen_next_video"):j("end_screen_recommended_video"),()=>({withOpacity:r()})]),$(N,A)};V(I,N=>{e.isHide||N(T)})}$(t,w),H(),o()}je(["click"]);var n$=require("@vkontakte/videoplayer-core/es2018");var r$=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Vt(()=>{n$.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))}),cn(()=>{i==null||i(),clearTimeout(o)})};var s$=require("@vkontakte/videoplayer-core/es2018");var Cp=class{constructor(e){this.video=e}getTracksArray(){return Array.from(this.video.getElementsByTagName("track"))}attach(e,i=!1){let o=document.createElement("track");o.setAttribute("src",e.url),o.setAttribute("id",e.id),e.label&&o.setAttribute("label",e.label),e.language&&o.setAttribute("srclang",e.language),i&&(o.track.mode="showing"),this.video.appendChild(o)}detachAll(){for(let e of this.getTracksArray())this.video.removeChild(e)}updateSrc(e){let i=this.getTracksArray().find(o=>o.id===e.id);i&&(i.src=e.url)}getCurrentShowingId(){var e,i;return(i=(e=this.getTracksArray().find(o=>o.track.mode==="showing"))==null?void 0:e.id)!=null?i:null}};var a$=require("@vkontakte/videoplayer-core/es2018"),l$=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:r,availableSubtitlesList$:a,currentFormat$:l,availableTextTracks$:d}=t.state,s=null,u=()=>e().querySelector("video"),f=()=>a$.clientChecker.device.isIOS&&be(l)===s$.VideoFormat.DASH_LIVE_CMAF,p=()=>{s==null||s(),s=null},v=_=>{if(p(),!f()||!_)return;let y=u();if(!y)return;let b=new Cp(y),w=be(d),I=be(a),T=be(r);for(let E of w)I.some(Q=>Q.value===E.id)&&b.attach(E,T.value===E.id);let N=d.subscribe(E=>{for(let k of E)b.updateSrc(k)}),A=()=>{let E=b.getCurrentShowingId();o(be(a).find(k=>k.value===E))};y.textTracks.addEventListener("change",A),s=()=>{N(),b.detachAll(),y.textTracks.removeEventListener("change",A)}};Vt(()=>i.subscribe(v)),cn(p)};var KC=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},qC=L("<!> <!>",1),QC=L("<div><!></div>"),GC=L('<div class="spherical-video-icon s-8"><!></div>'),YC=L("<div><!></div>"),jC=L('<div class="settings-mobile s-8"><!></div>'),XC=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),ZC=L('<div class="player-wrapper s-8" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),JC={hash:"s-8",code:".player-wrapper.s-8{height:100%;position:absolute;width:100%}.player-wrapper.s-8 .player-media{background:var(--black);height:100%;left:0;position:absolute;top:0;transition:transform .2s ease-in-out;width:100%}.spherical-video-icon.s-8{display:inline-block;left:calc(50% - 38px);position:absolute;top:calc(50% - 23px)}.ads-container.s-8{background:var(--black);height:100%;left:0;position:absolute;top:0;width:100%;z-index:var(--ads-container-z-index)}.settings-mobile.s-8{align-items:center;display:flex;left:50%;max-width:320px;position:absolute;top:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);width:90%;z-index:var(--settings-menu-z-index)}"};function og(t,e){var yn,xr;B(e,!0),Y(t,JC);let[i,o]=De(),r=()=>x(Be,"$playerPhase",i),a=()=>x(di,"$isLoaderVisible",i),l=()=>x(Pe,"$adPlaybackState",i),d=()=>x(Bt,"$crashed",i),s=()=>x($s,"$notificationsToShow$",i),u=()=>x(G,"$playbackState$",i),f=()=>x(Ht,"$graphIsOpened$",i),p=()=>x(Ne,"$interactiveHideMobileControls",i),v=()=>x(Ti,"$isEnded$",i),_=()=>x(gt,"$isInteractiveExpectation$",i),y=()=>x(Tt,"$controlsVisible",i),b=()=>x(st,"$touched",i),w=()=>x(Pi,"$autoplayNextEnabled$",i),I=()=>x(bi,"$postrollPassed",i),T=()=>x(Br,"$bottomNoSmooth",i),N=()=>x(fi,"$videoSize",i),A=()=>x(St,"$playerSize",i),E=()=>x($e,"$isFullscreen",i),k=()=>x(ke,"$position$",i),Q=()=>x(xe,"$duration$",i),F=()=>x(fn,"$loadedMetadata",i),z=()=>x(Qe,"$settingsMenuVisible",i),X=()=>x(qt,"$scrubbingInProgress",i),se=()=>x(Nt,"$volumeChangingInProgress",i),Z=()=>x(no,"$chromecastConnected$",i),oe=()=>x(fe,"$isControlsAvailable",i),J=()=>x(ni,"$isInteractiveTime$",i),Ce=()=>x(Yi,"$isActiveLive",i),pe=()=>x(rt,"$settingsMenuOpenedByKeyboard",i),ee=()=>x(Kt,"$language$",i),_e=()=>x(_t,"$disabledControls$",i),we=()=>x(Ft,"$is3DVideo",i),ve=()=>x(W,"$icon3DVideoVisible",i),ue=()=>x(ci,"$chromecastDeviceName$",i),Ge=()=>x(vo,"$currentSubtitle$",i),U=()=>x(Zo,"$currentSubtitleCaptions$",i),O=()=>x(Jo,"$realDuration$",i),Ye=()=>x(xt,"$isLive$",i),K=()=>x(ui,"$isPlaying$",i),ae=()=>x(pi,"$debugPanelVisible",i),ye=h(e,"videoContainer",15),He=h(e,"adsSlotId",3,void 0),ot=h(e,"adsParams",3,void 0),re=h(e,"adsAutoplayParam",3,void 0),de=h(e,"duration",3,void 0),Re=h(e,"logoTargetUrl",3,""),Ve=h(e,"showNextPrevButtons",3,!1),tt=h(e,"nextButtonActive",3,!1),Ee=h(e,"prevButtonActive",3,!1),Te=h(e,"endScreenVideoTitle",3,void 0),Fe=h(e,"endScreenVideoThumb",3,void 0),At=h(e,"isOneVideoPlaylist",3,!1),kt=h(e,"showMiniTimer",3,!1),Lt=h(e,"fullScreenTarget",3,void 0),lt=h(e,"playerStarted",3,!1),Ct=h(e,"showEndScreen",3,!0),{notifications$:Zt,graphIsOpened$:Ht}=_o(),Ot=e.store.getLogger().createComponentLog("Root component"),Kt=e.store.interfaceLanguage$,G=e.store.state.playbackState$,Pe=e.store.ads.playbackState,ke=e.store.state.positionWithScrubbing$,xe=e.store.state.duration$,Be=e.store.playerPhase,$e=e.store.ui.isFullscreen,Tt=e.store.ui.controlsVisible,fe=e.store.ui.isControlsAvailable,Ne=e.store.ui.interactiveHideMobileControls,Qe=e.store.ui.settingsMenu.visible$,rt=e.store.ui.settingsMenu.openedByBtnKeyboard$,qt=e.store.ui.scrubbingInProgress,Nt=e.store.ui.volumeChangingInProgress,pi=e.store.ui.debugPanelVisible,di=e.store.state.isLoaderVisible,Ti=e.store.state.isEnded$,no=e.store.state.chromecastConnected$,ci=e.store.state.chromecastDeviceName$,bi=e.store.ads.postrollPassed,xt=e.store.state.isLive$,ui=e.store.state.isPlaying$,Yi=e.store.state.isActiveLive$,pt=e.store.state.isRewindableLive$,Bt=e.store.state.crashed$,dt=e.store.webApi.annotationsApi,We=e.store.webApi.pictureInPictureApi,fi=e.store.state.videoSize$,vo=e.store.state.currentSubtitle$,Zo=e.store.state.currentSubtitleCaptions$,Jo=e.store.state.duration$,St=e.store.ui.playerSize,Ft=e.store.ui.is3DVideo,W=e.store.ui.icon3DVideoVisible,Mt=e.store.state.isInteractive,ni=e.store.state.isInteractiveTime$,gt=e.store.state.isInteractiveExpectation$,Jt=e.store.state.hasInteractiveBranches,_t=e.store.ui.controls.disabledControls$,st=e.store.ui.touched,Ni=e.store.ui.overlayContainer$,Pi=e.store.ui.autoplayNextEnabled$,fn=e.store.state.loadedMetadata$,mn=e.store.actions.internal.closeSettingsMenu,Ai=(yn=e.store.callbacks)==null?void 0:yn.onDisabledPlayPrevChapterClick,Di=(xr=e.store.callbacks)==null?void 0:xr.onDisabledSeekToInteractiveClick,Dn=e.store.actions.internal.setQuality,bo=q(void 0),ro=q(void 0),Ii=q(void 0),No=q(void 0),Do,vn,Rr=m(()=>(r()==="video"&&a()||r()==="ads"&&l()==="inactive")&&!d()),Nr=q(void 0),{closeNotification:Dr,notificationsToShow$:$s}=Zt,Or=m(()=>!!s().slow_video),er=()=>Dr("slow_video"),Br=le(!1),gn,hn=q(!1),mr=m(()=>u()!==ma.PlaybackState.PLAYING),vr=q(!1),en=m(()=>f()||p()||!n(hn)&&(v()&&!!Jt||n(mr)&&_())),gr=q(!0),hr=m(()=>e.uiConfig.features.thumbTimer&&kt()&&r()==="video"&&!y()&&!d()&&!Mt&&(e.uiConfig.hideThumbTimerAfterTouch&&!b()||!e.uiConfig.hideThumbTimerAfterTouch)),tr=q(!1),On=m(()=>(Ct()||e.showAutoplayNext&&w())&&!!Te()&&!!Fe()&&(e.showAds&&I()||!e.showAds)&&v()&&!d()&&!n(tr)),as=q(!1);We==null||We.setContext(xd());let Oo=ft=>{ft&&!Mt&&Oi(e.uiConfig.controls.hideTimeoutMobile)};e.store.setUiCallbacks({onStarted:Oo});let _r=()=>{clearTimeout(Do),R(hn,!1),p()&&Ne.set(!1)},Oi=ft=>{_r(),R(hn,!0),Do=setTimeout(()=>R(hn,!1),ft);let wt=ft-100;gn=setTimeout(()=>{T()&&Br.set(!1)},wt>0?wt:ft)},br=Ft.subscribe(ft=>{W.set(ft),ft&&(clearTimeout(vn),vn=setTimeout(()=>W.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Bn=async(ft=ra())=>{var wt,so,go,nn,yo,xo;if(ft&&!ma.clientChecker.device.isIOS){let Ei=Xd(),wo=Hn(),Ur=ma.clientChecker.browser.isSamsungBrowser&&Ei===e.shadowRootContainer;ft=Ei===wo||Ur}if(ft){Oi(e.uiConfig.controls.hideTimeoutFullscreen);try{await(We==null?void 0:We.exit())}catch(Ei){Ot({message:String(Ei)})}try{let Ei=(wt=N())!=null&&wt.width&&((so=N())!=null&&so.height)?N():A();await j_(Ei)}catch(Ei){Ot({message:String(Ei)})}}$e.set(ft),e.store.getAdmanWrapper().setFullscreen(ft),E()?(nn=(go=e.store.callbacks)==null?void 0:go.onFullscreenEnter)==null||nn.call(go):(xo=(yo=e.store.callbacks)==null?void 0:yo.onFullscreenExit)==null||xo.call(yo)},vt=ft=>{let wt=ft,{width:so,height:go}=wt.target;St.set({width:so,height:go})},ei=()=>{let{width:ft,height:wt}=n(bo).getBoundingClientRect();St.set({width:ft,height:wt})};Vt(()=>{var ft;return ju(Bn),e.uiConfig.features.annotationsInside&&(dt==null||dt.init(n(bo))),za(We)&&(We==null||We.assignPlayerContainer(n(bo)),We==null||We.setExternalEventHandlers({resize:vt,leavepictureinpicture:ei})),R(gr,!ma.clientChecker.device.isIphoneOrOldIpad),e.interactiveContainer&&((ft=ye().parentElement)==null||ft.insertBefore(e.interactiveContainer,ye().nextSibling)),()=>{clearTimeout(Do),clearTimeout(gn),clearTimeout(vn),br(),We==null||We.dispose().catch(wt=>{Ot({message:String(wt)})}),Xu(Bn)}});let $r=q(!0),Hr=q(!0),Fr=ft=>{let wt=k()+(ft==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;wt<0?(R($r,!1),wt=0):wt>=Q()&&(R(Hr,!1),wt=Q()),R(vr,!0),e.seekTime(wt)},Hn=()=>ma.clientChecker.device.isIOS?n(bo):!e.uiConfig.allowChangingFullscreenTarget||!Lt()?e.outerContainerRef:Lt().contains(e.outerContainerRef)?Lt():e.outerContainerRef,ir=async()=>{try{if(ra())await Yu(document),Ot({message:"exit fullscreen"});else{if(Ot({message:"request fullscreen"}),ma.clientChecker.device.isIOS&&!F())return;await Gu(Hn())}}catch(ft){Ot({message:String(ft)})}},$o=()=>{mn()},Fn=ft=>{if(ft.preventDefault(),z()){$o();return}if(!lt()){e.firstStart(),Oi(e.uiConfig.controls.hideTimeoutCursor);return}R(vr,!1),y()?_r():Oi(e.uiConfig.controls.hideTimeoutMobile)},or=()=>{st.set(!0)},Un=()=>{Mt||(Br.set(!0),Oi(e.uiConfig.controls.hideTimeoutCursor))},_n=ft=>{Ai&&(Ai(ft),Oi(e.uiConfig.controls.hideTimeoutMobile))},bn=ft=>{Di&&(Di(ft),Oi(e.uiConfig.controls.hideTimeoutMobile))};Oe(()=>{Ni.set(n(Nr))}),Oe(()=>{Tt.set((n(mr)||z()||X()||se()||Z()||!n(On)&&(v()||n(hn)&&!n(vr)))&&!n(en)&&r()==="video"&&!d()&&oe())}),Oe(()=>{!X()&&n(as)&&!J()&&Oi(e.uiConfig.controls.hideTimeoutMobile),R(as,X(),!0)}),Oe(()=>{R($r,k()>0),R(Hr,!Ce()&&k()<Q(),!0)}),Oe(()=>{nc(n(No),z(),pe(),!0)});let $n=j("aria_label_video_player");r$({fullScreenChangeHandler:Bn,getFullscreenTarget:Hn}),l$({store:e.store,getFullscreenTarget:Hn});let tn=(ft,wt)=>{var yo,xo;let so=(xo=(yo=e.store.callbacks)==null?void 0:yo.uiInfo)==null?void 0:xo.onUpcomingLiveViewStateChanged;if(!so)return;let go=!!wt,nn={...Zn(n(bo),{upcomingLiveScreen:wt},"upcomingLiveScreen",go),...ft};so(nn)};var Bi=ZC();ut("blur",ka,$o);var ji=C(Bi);dl(ji,{onClick:Fn,get videoContainer(){return ye()},set videoContainer(ft){ye(ft)}});var on=P(ji,2);Ra(on,()=>"slot",!1,(ft,wt)=>{eo(ft,()=>({name:ll}))});var nr=P(on,2);Ls(nr,ee,ft=>{var wt=XC(),so=ce(wt);let go=m(()=>r()!=="thumb"||d()||Mt&&e.autoplay||e.uiConfig.features.disableThumbUnstartedOnAutoplay&&e.autoplay);rl(so,{get hidden(){return n(go)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var nn=P(so,2);{var yo=et=>{var Xt=qC(),yi=ce(Xt);{var Io=zo=>{let rr=m(()=>e.uiConfig.controls.seekStepMobile/1e3);Sp(zo,{side:"left",get seekStep(){return n(rr)},handleSingleFirstClick:Fn,handleSecondClick:()=>Fr("backward")})};V(yi,zo=>{n($r)&&zo(Io)})}var wn=P(yi,2);{var qn=zo=>{let rr=m(()=>e.uiConfig.controls.seekStepMobile/1e3);Sp(zo,{side:"right",get seekStep(){return n(rr)},handleSingleFirstClick:Fn,handleSecondClick:()=>Fr("forward")})};V(wn,zo=>{n(Hr)&&zo(qn)})}$(et,Xt)};V(nn,et=>{e.canRewindLive&&pt&&!_e().has("TIMELINE")&&et(yo)})}var xo=P(nn,2);{var Ei=et=>{let Xt=m(()=>{var yi;return(yi=e.live)==null?void 0:yi.startTime});Ac(et,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(Xt)},onUpcomingLiveViewStateChanged:tn})};V(xo,et=>{r()==="LiveWaitingStart"&&et(Ei)})}var wo=P(xo,2);{var Ur=et=>{sl(et,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};V(wo,et=>{r()==="LiveWaitingRecover"&&et(Ur)})}var wr=P(wo,2);{var ys=et=>{sl(et,{kind:"record",get thumbUrl(){return e.thumbUrl}})};V(wr,et=>{r()==="LiveWaitingRecord"&&et(ys)})}var Hi=P(wr,2);{var xs=et=>{var Xt=QC();let yi;var Io=C(Xt);Jd(Io,{get adsSlotId(){return He()},get adsParams(){return ot()},get adsAutoplayParam(){return re()},get duration(){return de()},get adsExternalApi(){return e.adsExternalApi}}),S(Xt),D(wn=>yi=ne(Xt,1,"ads-container s-8",null,yi,wn),[()=>({hidden:r()!=="ads"})]),$(et,Xt)};V(Hi,et=>{e.showAds&<()&&et(xs)})}var ls=P(Hi,2);{var Sr=et=>{let Xt=m(()=>!Ct()&&e.showAutoplayNext&&w());ig(et,{get title(){return Te()},get thumb(){return Fe()},get isHide(){return n(Xt)},clickCloseIcon:()=>R(tr,!0)})};V(ls,et=>{n(On)&&Te()&&Fe()&&et(Sr)})}var Bo=P(ls,2);{var zr=et=>{kc(et,{})};V(Bo,et=>{we()&&et(zr)})}var rn=P(Bo,2);{var sn=et=>{var Xt=GC(),yi=C(Xt);jd(yi,{}),S(Xt),$(et,Xt)};V(rn,et=>{ve()&&et(sn)})}var Ue=P(rn,2);{var It=et=>{Pc(et,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return ue()},onClick:Fn})};V(Ue,et=>{Z()&&et(It)})}var li=P(Ue,2);{var Ho=et=>{ol(et,{get shifted(){return y()},get captions(){return U()},get position(){return k()},get playerSize(){return A()},isMobile:!0})};V(li,et=>{Ge().value!=="off"&&et(Ho)})}var So=P(li,2);{var Fo=et=>{var Xt=YC();Xt.__click=[KC,z,Qe,$o];var yi=C(Xt);nl(yi,{}),S(Xt),$(et,Xt)};V(So,et=>{d()&&et(Fo)})}var Fi=P(So,2);{var Co=et=>{let Xt=m(()=>r()==="thumb"||r()==="LiveWaitingStart"||r()==="LiveWaitingRecover"||r()==="LiveWaitingRecord"||r()==="ads"),yi=m(()=>r()==="ads"),Io=m(()=>e.canRewindLive&&O()!==0);Ic(et,{get bottomHidden(){return n(Xt)},get showControls(){return y()},get bottomNoSmooth(){return T()},get isAds(){return n(yi)},get canRewindLive(){return n(Io)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Re()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Ve()},get nextButtonActive(){return tt()},get prevButtonActive(){return Ee()},get isOneVideoPlaylist(){return At()},get customFullscreenSupported(){return n(gr)},get endScreenShown(){return n(On)},toggleFullscreen:ir,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:_n,onDisabledSeekToInteractiveClick:bn,get playerControlsWrapperRef(){return n(ro)},set playerControlsWrapperRef(wn){R(ro,wn,!0)},get playerControlsRef(){return n(Ii)},set playerControlsRef(wn){R(Ii,wn,!0)}})};V(Fi,et=>{lt()&&et(Co)})}var zn=P(Fi,2);{var Cr=et=>{var Xt=jC(),yi=C(Xt);Rc(yi,{get supportLink(){return e.supportLink},get returnFocus(){return d$.noop},get ref(){return n(No)},set ref(Io){R(No,Io,!0)}}),S(Xt),$(et,Xt)};V(zn,et=>{z()&&et(Cr)})}var To=P(zn,2);let ao=m(()=>!n(hr));ic(To,{get isLive(){return Ye()},get isHidden(){return n(ao)},get isPlaying(){return K()},get position(){return k()},get duration(){return Q()}});var xn=P(To,2);{var Uo=et=>{Qa(et,{})};V(xn,et=>{n(Rr)&&et(Uo)})}var Wn=P(xn,2);{var Wr=et=>{sc(et,{})};V(Wn,et=>{ae()&&et(Wr)})}var Kr=P(Wn,2);{var Kn=et=>{Nc(et,{onClose:er,onSelectAutoQuality:()=>{Dn("auto"),er()}})};V(Kr,et=>{n(Or)&&et(Kn)})}$(ft,wt)});var yr=P(nr,2);Ze(yr,ft=>R(Nr,ft),()=>n(Nr)),S(Bi),Ze(Bi,ft=>R(bo,ft),()=>n(bo)),D(()=>Me(Bi,"aria-label",$n)),ut("click",Bi,or,!0),ut("focusin",Bi,Un,!0),$(t,Bi),H(),o()}je(["click"]);function Tp(t){let e="";return oo(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),oo(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),oo(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),oo(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),oo(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),oo(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),oo(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),oo(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),oo(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),oo(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),oo(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),oo(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),oo(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),oo(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),oo(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),oo(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),oo(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),oo(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),oo(t.font)&&(e+=`--font:${t.font};`),oo(t.controlsGradientHeight)&&(e+=`--controls-gradient-height:${t.controlsGradientHeight};`),oo(t.controlsGradient)&&(e+=`--controls-gradient:${t.controlsGradient};`),e.length&&e||void 0}function oo(t){return typeof t=="string"&&!t.includes(";")}var c$=require("@vkontakte/videoplayer-shared/es2018");var eT=L('<div class="time-container s-9"><!></div>'),tT=L('<div class="player-wrapper s-9" role="region"><!> <!> <!> <!> <!> <div><!></div></div>'),iT={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 ng(t,e){B(e,!0),Y(t,iT);let[i,o]=De(),r=()=>x(J,"$scrubbingInProgress",i),a=()=>x(Z,"$playerSize",i),l=()=>x(k,"$isPlaying$",i),d=()=>x(A,"$duration$",i),s=()=>x(z,"$positionWithScrubbing$",i),u=()=>x(T,"$playerPhase",i),f=()=>x(N,"$crashed$",i),p=()=>x(Q,"$currentSubtitle$",i),v=()=>x(F,"$currentSubtitleCaptions$",i),_=()=>x(E,"$positionExact$",i),y=()=>x(X,"$isLive$",i),b=()=>x(se,"$isRewindableLive$",i),w=h(e,"outsideDuration",3,0),I=h(e,"videoContainer",15),{playerPhase:T,state:{crashed$:N,duration$:A,positionExact$:E,isPlaying$:k,currentSubtitle$:Q,currentSubtitleCaptions$:F,positionWithScrubbing$:z,isLive$:X,isRewindableLive$:se},ui:{playerSize:Z,controls:oe,scrubbingInProgress:J},actions:{internal:{getVideoElement:Ce}}}=he(),pe=8,ee=q(!1),_e=si({}),we=q(!1),ve=m(()=>!r()&&!n(we)),ue=()=>{R(ee,!0)},Ge=()=>{R(ee,!1)},U=(0,c$.debounceFn)(td,260);Oe(()=>{a(),U(Ce(),oe,_e,n(ee))});let O=m(()=>l()?Xo(d()-s()):Xo(isFinite(d())?d():w()));var Ye=tT(),K=C(Ye);dl(K,{hideCursor:!1,get videoContainer(){return I()},set videoContainer(Te){I(Te)}});var ae=P(K,2);Ra(ae,()=>"slot",!1,(Te,Fe)=>{eo(Te,()=>({name:ll}))});var ye=P(ae,2);let He=m(()=>u()!=="thumb"||f());rl(ye,{get hidden(){return n(He)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var ot=P(ye,2);{var re=Te=>{ol(Te,{shifted:!1,get captions(){return v()},get position(){return _()},get playerSize(){return a()}})};V(ot,Te=>{p().value!=="off"&&n(ve)&&Te(re)})}var de=P(ot,2);{var Re=Te=>{var Fe=eT(),At=C(Fe);tc(At,{get isLive(){return y()},get isPlaying(){return l()},get time(){return n(O)}}),S(Fe),$(Te,Fe)};V(de,Te=>{n(ve)&&Te(Re)})}var Ve=P(de,2);let tt;var Ee=C(Ve);el(Ee,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return b()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:pe,tooltipRightOffset:pe,get ref(){return _e.timeline},set ref(Te){_e.timeline=Te}}),S(Ve),S(Ye),D(Te=>tt=ne(Ve,1,"timeline s-9",null,tt,Te),[()=>({visible:n(ee)})]),ut("mouseenter",Ye,ue),ut("mouseleave",Ye,Ge),ut("mouseenter",Ve,()=>R(we,!0)),ut("mouseleave",Ve,()=>R(we,!1)),$(t,Ye),H(),o()}var oT=L("<div><!></div>"),nT={hash:"s-0",code:'.vk-vp-root.s-0{--white:#fff;--black:#000;--red:#ff3347;--blue-light:#70c1ff;--black-alpha-40:rgba(0,0,0,.4);--white-alpha-24:hsla(0,0%,100%,.24);--white-alpha-72:hsla(0,0%,100%,.72);--devider-gray:#dce1e6;--text-gray:#626d7a;--font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;--controls-height:40px;--controls-gradient-height:100px;--controls-transition-duration:0.25s;--controls-transition-fn:cubic-bezier(0.455,0.03,0.515,0.955);--controls-desktop-item-margin-left:4px;--controls-desktop-padding-horizontal:4px;--focused:var(--white);--focused-outline-width:2px;--focused-outline-radius:0;--focused-element-shadow:inset 0 0 0 var(--focused-outline-width) var(--focused);--focused-slider-shadow:0 0 0 2px var(--focused);--big-play-size:96px;--big-play-radius:50%;--big-play-bg-color:rgba(0,0,0,.5);--big-play-hover-bg-color:rgba(0,0,0,.6);--big-play-icon-width:38px;--big-play-icon-height:33px;--interactive-episode-complete:#5c9ce6;--slider-bg:hsla(0,0%,100%,.4);--slider-filled-bg:var(--white);--slider-handle-bg:var(--white);--slider-loaded-bg:hsla(0,0%,100%,.4);--slider-height:3px;--slider-video-episode-gap:1.5px;--slider-radius:0px;--slider-handle-size:12px;--slider-filled-ads:#67a5eb;--slider-disabled-color:hsla(0,0%,97%,.31);--slider-volume-height:5px;--slider-volume-radius:calc(var(--slider-volume-height)/2);--slider-volume-handle-size:13px;--timeline-slider-filled-active-live-bg:var(--red);--timeline-slider-handle-active-live-bg:var(--red);--timeline-slider-bg:var(--slider-bg);--timeline-slider-filled-bg:var(--slider-filled-bg);--timeline-slider-handle-bg:var(--slider-handle-bg);--timeline-slider-loaded-bg:var(--slider-loaded-bg);--volume-slider-bg:var(--slider-bg);--volume-slider-filled-bg:var(--slider-filled-bg);--volume-slider-handle-bg:var(--slider-handle-bg);--controls-time:var(--white);--controls-gradient:linear-gradient(180deg,transparent 0%,rgba(0,0,0,.005) 6.67%,rgba(0,0,0,.02) 13.33%,rgba(1,1,1,.04) 20%,rgba(1,1,1,.07) 26.67%,rgba(2,2,2,.11) 33.33%,rgba(3,3,3,.16) 40%,rgba(4,4,4,.22) 46.67%,rgba(6,6,6,.28) 53.33%,rgba(7,7,7,.33) 60%,rgba(8,8,8,.38) 66.67%,rgba(9,9,9,.42) 73.33%,rgba(9,9,9,.46) 80%,hsla(0,0%,4%,.48) 86.67%,hsla(0,0%,4%,.5));--timeline-preview-shadow:rgba(0,0,0,.08);--timeline-preview-bg:#222;--timeline-padding-horizontal:10px;--timeline-padding-vertical-top:3px;--timeline-padding-vertical-bottom:4px;--timeline-height:calc(var(--timeline-padding-vertical-bottom) + var(--timeline-padding-vertical-top) + var(--slider-height));--preview-track-frame-height-vertical:114px;--preview-track-frame-height-horizontal:65px;--preview-track-controls-top:16px;--preview-track-time-line-height:16px;--preview-track-bottom-offset:10px;--preview-track-height:calc(var(--preview-track-frame-height-vertical) + var(--preview-track-bottom-offset));--preview-track-controls-top-offset:calc(var(--timeline-height) + var(--preview-track-controls-top) + var(--preview-track-time-line-height));--settings-bg:rgba(0,0,0,.72);--settings-item-bg-hover:hsla(0,0%,100%,.08);--settings-radius:8px;--mobile-settings-bg:#2c2d2e;--divider-border:1px solid var(--white-alpha-24);--toggle-color-separator:#363738;--toggle-color-off:#656565;--toggle-color-on:#71aaeb;--toggle-color-autoplay-on:var(--white);--notification-bg:#2c2d2e;--notification-radius:8px;--button-hover-transition:opacity 0.2s;--video-container-z-index:0;--controls-container-z-index:1;--ads-container-z-index:1;--end-screen-mobile-z-index:1;--notification-z-index:1;--thumb-timer-z-index:2;--debug-panel-z-index:2;--modal-z-index:2;--settings-menu-z-index:2;--context-menu-z-index:3;--hot-key-helpers-container-z-index:3;--overlay-container-z-index:4;--rotate-transition-duration:0.25s;--btn-color:var(--white);--double-forward-bg:rgba(0,0,0,.6);background:var(--black);color:var(--white);font-family:var(--vk-vp-custom-font,var(--font));font-size:12px;height:100%;line-height:normal;outline:0;overflow:hidden;position:relative;user-select:none;width:100%}.vk-vp-root.visible-outside.s-0{overflow:visible}.vk-vp-root.s-0 *{-webkit-tap-highlight-color:transparent}.vk-vp-root.s-0 button{background:transparent;border:none;color:inherit;font:inherit;line-height:normal;margin:0;overflow:visible;padding:0;width:auto;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;cursor:pointer}.vk-vp-root.s-0 p{margin:0}.vk-vp-root.s-0 svg:not(.interactive-root svg){pointer-events:none}.vk-vp-root.s-0 .interactive-root{font-family:var(--vk-vp-int-custom-font,inherit)}.vk-vp-root.s-0 :focus,.vk-vp-root.s-0 :focus-visible{outline:none}.vk-vp-root.s-0 :focus-visible{border-radius:var(--focused-outline-radius);box-shadow:var(--focused-element-shadow)}.vk-vp-root.s-0 .focus-hidden:focus-visible{box-shadow:none}.vk-vp-root.s-0 .hidden{opacity:0;visibility:hidden}.vk-vp-root.s-0 .out-of-flow{content-visibility:hidden!important}.vk-vp-root.s-0 .overlay-container{height:100%;left:0;pointer-events:none;position:fixed;top:0;width:100%;z-index:var(--overlay-container-z-index)}.vk-vp-root.s-0 .out-of-view{left:-1000vh!important;position:absolute!important}.vk-vp-root.s-0 .icon.icon-error-stub{align-items:center;display:flex;justify-content:center}'};function rg(t,e){B(e,!0),Y(t,nT);let[i,o]=De(),r=()=>x(lt,"$isLive$",i),a=()=>x(dt,"$availableSubtitlesList$",i),l=()=>x(We,"$isPreviewTrackHorizontallyAligned$",i),d=h(e,"sources",7),s=h(e,"store",7),u=h(e,"microStoresRoot",7),f=h(e,"videoConfig",7),p=h(e,"uiConfig",7),v=h(e,"title",7),_=h(e,"thumbUrl",7),y=h(e,"interactiveContainer",7),b=h(e,"interactiveController",7),w=h(e,"subtitles",7),I=h(e,"subtitlesForcedLanguage",7),T=h(e,"live",7),N=h(e,"preload",7),A=h(e,"autoplay",7),E=h(e,"volume",7,void 0),k=h(e,"muted",7,void 0),Q=h(e,"fromTime",7),F=h(e,"canRewindLive",7),z=h(e,"showAds",7),X=h(e,"adsSlotId",7,void 0),se=h(e,"adsParams",7,void 0),Z=h(e,"adsAutoplayParam",7,void 0),oe=h(e,"duration",7,void 0),J=h(e,"logoClickable",7),Ce=h(e,"logoHidden",7),pe=h(e,"isMobile",7),ee=h(e,"showNextPrevButtons",7,!1),_e=h(e,"nextButtonActive",7,!1),we=h(e,"prevButtonActive",7,!1),ve=h(e,"endScreenVideoTitle",7,void 0),ue=h(e,"endScreenVideoThumb",7,void 0),Ge=h(e,"isOneVideoPlaylist",7,!1),U=h(e,"supportLink",7),O=h(e,"shadowRootContainer",7),Ye=h(e,"outerContainerRef",7),K=h(e,"fullScreenTarget",7,void 0),ae=h(e,"failoverHosts",7,void 0),ye=h(e,"showMiniTimer",7,!1),He=h(e,"saveRate",7),ot=h(e,"seekToInteractive",7,cl.noop),re=h(e,"playPrevChapter",7,cl.noop),de=h(e,"volumeMultiplier",7),Re=h(e,"showAutoplayNext",7),Ve=h(e,"showEndScreen",7,!0),tt=h(e,"keyboardControls",15,void 0),{subscribers:Ee,stores:Te}=u();n_(p());let Fe=Rt(),At=p().logoLink,kt=s().ui.debugPanelVisible,Lt=s().ui.playerSize,lt=s().state.isLive$,Zt=s().state.isInteractive&&sd.clientChecker.device.isAndroid,Ht=q(void 0),Ot=null,Kt=q(!1);s().getAdmanWrapper().init({switchFromAdsToVideo:s().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:s().actions.internal.switchFromVideoToAds,setMuted:s().actions.external.setMuted},s().ads,{vsid:s().vsid}),v_(s(),Te),Oe(()=>{var W,Mt;s().ui.isMobile.set(pe()),(Mt=(W=f().callbacks)==null?void 0:W.onDomReady)==null||Mt.call(W)});let G=(W=!1)=>{R(Kt,!0),W?s().actions.external.firstStart(z()):s().actions.internal.firstStart(z())},Pe=()=>{if(Fe.features.qualityDetailsSubMenuEnabled){let W=O_(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{B_(s().videoId),Xf()&&s().actions.internal.setTrafficSavingEnabled(!0);let Mt=Gf(s().videoId);Mt&&s().actions.internal.setQuality(Mt)}};function ke(W){var _t,st,Ni;let Mt=d()||W;Mt&&s().initVideo({container:n(Ht),sources:Mt,failoverHosts:ae(),subtitles:w(),subtitlesForcedLanguage:I(),volumeMultiplier:de()});let ni=cl.safeStorage.get(Wd)==="true";kt.set(ni),Q()>0&&s().actions.external.seekTime(Q());let gt=pe()?Fe.volumeDefault:(st=(_t=E())!=null?_t:Bu())!=null?st:Fe.volumeDefault,Jt=(Ni=k())!=null?Ni:L_();if(s().actions.external.setVolume(gt),s().actions.external.setMuted(Jt),s().getAdmanWrapper().setInitialVolume(Jt?0:gt),Pe(),Fe.features.saveRate&&He()){let Pi=R_();Pi&&!r()&&s().actions.internal.setPlaybackRate(Pi)}if(Re()){let Pi=D_();Pi&&s().actions.internal.setAutoplayNextEnabled(Pi)}s().ui.isAutoplay.set(A()),A()&&G(),N()&&Fe.features.preload&&s().actions.internal.preload()}let xe=W=>{if(window.ResizeObserver){let Mt,ni;Ot=new ResizeObserver((0,cl.throttleFn)(gt=>{let Jt=gt[0];if(Jt.contentBoxSize){let _t=Array.isArray(Jt.contentBoxSize)?Jt.contentBoxSize[0]:Jt.contentBoxSize;Mt=_t.inlineSize,ni=_t.blockSize}else Jt.contentRect&&(Mt=Jt.contentRect.width,ni=Jt.contentRect.height);Lt.set({width:Mt,height:ni})},300)),Ot.observe(W)}W.clientWidth&&W.clientHeight&&Lt.set({width:W.clientWidth,height:W.clientHeight})},Be=()=>{document.hidden&&s().actions.external.stop()};Vt(()=>{var ni,gt,Jt,_t;Zt&&document.addEventListener("visibilitychange",Be),Fe.debugLog&&s().actions.internal.startLogging(),xe(n(Ht));let W=Ee.map(st=>st.init({store:s(),microStores:Te,config:f(),interactiveController:b(),uiConfig:p()})),Mt=()=>{Zt&&document.removeEventListener("visibilitychange",Be),Ot==null||Ot.disconnect(),W.forEach(st=>st.unsubscribe()),s().destroy()};return((ni=T())==null?void 0:ni.status)==="upcoming"?(s().actions.internal.setLiveWaitingStart(!0),Mt):((gt=T())==null?void 0:gt.status)==="waiting"?(s().actions.internal.setLiveWaitingRecover(!0),Mt):(((Jt=T())==null?void 0:Jt.status)==="finished"||((_t=T())==null?void 0:_t.status)==="postlive")&&!(d()&&(0,sd.areValidLiveRecordSources)(d()))?(s().actions.internal.setLiveWaitingRecord(!0),Mt):(ke(),Mt)});function $e(){n(Kt)?s().actions.external.play():G(!0)}function Tt(){s().actions.external.pause()}function fe(W){s().actions.external.setMuted(W)}function Ne(){s().actions.external.toggleSubtitle()}function Qe(W,Mt){s().actions.external.changeSubtitle(W,Mt)}function rt(W){s().actions.external.changeAudioStream(W)}function qt(){var W;(W=s().webApi.slotsApi)!=null&&W.haveSlots()&&s().actions.external.hideControls()}function Nt(){var W;(W=s().webApi.slotsApi)!=null&&W.haveSlots()&&s().actions.external.showControls()}function pi(W){pe()||W>=0&&W<=1&&s().actions.external.setVolume(W)}function di(W){s().actions.internal.seekTime(W,u$.SeekAction.UNKNOWN)}function Ti(W){s().actions.external.seekEpisodeStartTime(W)}function no(){s().actions.external.returnFocusToEpisodes()}function ci(W){s().actions.external.setPlaybackRate(W)}function bi(W){s().actions.external.setAutoQualityLimits(W)}function xt(){s().actions.external.setQuality("auto")}function ui(W){s().actions.external.setTrafficSavingEnabled(W)}function Yi(W){s().actions.external.setHighQualityEnabled(W)}let pt=Tp(Fe.view),Bt=f().playerView==="preview",dt=s().state.availableSubtitlesList$;if(Fe.features.initSubtitles){let W=!1;Oe(()=>{var Mt;if(!W&&a().length){W=!0;let ni;if(Fe.features.userVideoPrefs&&s().videoId){let Jt=zu(Fe.userSalt,String(s().videoId));Jt!=null&&Jt.subtitleTrackId&&(ni=a().find(_t=>_t.value===Jt.subtitleTrackId))}let gt=(Mt=I())!=null?Mt:Jf();gt&&(ni=a().find(Jt=>Jt.language===gt)),s().actions.internal.setSubtitle(ni)}})}let We=s().ui.isPreviewTrackHorizontallyAligned;var fi=oT();let vo;var Zo=C(fi);{var Jo=W=>{og(W,{get store(){return s()},get uiConfig(){return Fe},get thumbUrl(){return _()},get interactiveContainer(){return y()},get live(){return T()},get autoplay(){return A()},get canRewindLive(){return F()},get showAds(){return z()},get adsSlotId(){return X()},get adsParams(){return se()},get adsAutoplayParam(){return Z()},get duration(){return oe()},get logoClickable(){return J()},get logoHidden(){return Ce()},get logoTargetUrl(){return At},get nextButtonActive(){return _e()},get prevButtonActive(){return we()},get endScreenVideoTitle(){return ve()},get endScreenVideoThumb(){return ue()},get isOneVideoPlaylist(){return Ge()},get supportLink(){return U()},get shadowRootContainer(){return O()},get outerContainerRef(){return Ye()},get fullScreenTarget(){return K()},get showMiniTimer(){return ye()},get playerStarted(){return n(Kt)},get seekToInteractive(){return ot()},get playPrevChapter(){return re()},firstStart:G,seekTime:di,get showEndScreen(){return Ve()},get showAutoplayNext(){return Re()},get showNextPrevButtons(){return ee()},get adsExternalApi(){return e.adsExternalApi},get videoContainer(){return n(Ht)},set videoContainer(Mt){R(Ht,Mt,!0)}})},St=W=>{var Mt=Le(),ni=ce(Mt);{var gt=_t=>{ng(_t,{get thumbUrl(){return _()},get outsideDuration(){return oe()},get canRewindLive(){return F()},get videoContainer(){return n(Ht)},set videoContainer(st){R(Ht,st,!0)}})},Jt=_t=>{tg(_t,{get store(){return s()},get uiConfig(){return Fe},get title(){return v()},get thumbUrl(){return _()},get interactiveContainer(){return y()},get live(){return T()},get autoplay(){return A()},get canRewindLive(){return F()},get showAds(){return z()},get adsSlotId(){return X()},get adsParams(){return se()},get adsAutoplayParam(){return Z()},get duration(){return oe()},get logoClickable(){return J()},get logoHidden(){return Ce()},get logoTargetUrl(){return At},get nextButtonActive(){return _e()},get prevButtonActive(){return we()},get endScreenVideoTitle(){return ve()},get endScreenVideoThumb(){return ue()},get isOneVideoPlaylist(){return Ge()},get supportLink(){return U()},get shadowRootContainer(){return O()},get outerContainerRef(){return Ye()},get fullScreenTarget(){return K()},get showMiniTimer(){return ye()},get playerStarted(){return n(Kt)},get seekToInteractive(){return ot()},get playPrevChapter(){return re()},firstStart:G,get showEndScreen(){return Ve()},get showAutoplayNext(){return Re()},get showNextPrevButtons(){return ee()},get adsExternalApi(){return e.adsExternalApi},get getVideoDeeplink(){return e.getVideoDeeplink},get videoContainer(){return n(Ht)},set videoContainer(st){R(Ht,st,!0)},get keyboardControls(){return tt()},set keyboardControls(st){tt(st)}})};V(ni,_t=>{Bt?_t(gt):_t(Jt,!1)})}$(W,Mt)};V(Zo,W=>{pe()?W(Jo):W(St,!1)})}S(fi),D(W=>{vo=ne(fi,1,"vk-vp-root s-0",null,vo,W),Ke(fi,pt)},[()=>({"root--miui-browser":sd.clientChecker.device.isMobile&&sd.clientChecker.browser.isMiuiBrowser,"visible-outside":Bt,"preview-track-horizontally-alinged":l()})]),$(t,fi);var Ft=H({initVideo:ke,play:$e,pause:Tt,setMuted:fe,toggleSubtitle:Ne,changeSubtitle:Qe,changeAudioStream:rt,hideControls:qt,showControls:Nt,setVolume:pi,seekTime:di,seekEpisodeStartTime:Ti,returnFocusToEpisodes:no,setPlaybackRate:ci,setAutoQualityLimits:bi,setAutoQuality:xt,toggleTrafficSaving:ui,toggleHighQuality:Yi,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 f()},set videoConfig(W){f(W)},get uiConfig(){return p()},set uiConfig(W){p(W)},get title(){return v()},set title(W){v(W)},get thumbUrl(){return _()},set thumbUrl(W){_(W)},get interactiveContainer(){return y()},set interactiveContainer(W){y(W)},get interactiveController(){return b()},set interactiveController(W){b(W)},get subtitles(){return w()},set subtitles(W){w(W)},get subtitlesForcedLanguage(){return I()},set subtitlesForcedLanguage(W){I(W)},get live(){return T()},set live(W){T(W)},get preload(){return N()},set preload(W){N(W)},get autoplay(){return A()},set autoplay(W){A(W)},get volume(){return E()},set volume(W){E(W)},get muted(){return k()},set muted(W){k(W)},get fromTime(){return Q()},set fromTime(W){Q(W)},get canRewindLive(){return F()},set canRewindLive(W){F(W)},get showAds(){return z()},set showAds(W){z(W)},get adsSlotId(){return X()},set adsSlotId(W){X(W)},get adsParams(){return se()},set adsParams(W){se(W)},get adsAutoplayParam(){return Z()},set adsAutoplayParam(W){Z(W)},get duration(){return oe()},set duration(W){oe(W)},get logoClickable(){return J()},set logoClickable(W){J(W)},get logoHidden(){return Ce()},set logoHidden(W){Ce(W)},get isMobile(){return pe()},set isMobile(W){pe(W)},get showNextPrevButtons(){return ee()},set showNextPrevButtons(W){ee(W)},get nextButtonActive(){return _e()},set nextButtonActive(W){_e(W)},get prevButtonActive(){return we()},set prevButtonActive(W){we(W)},get endScreenVideoTitle(){return ve()},set endScreenVideoTitle(W){ve(W)},get endScreenVideoThumb(){return ue()},set endScreenVideoThumb(W){ue(W)},get isOneVideoPlaylist(){return Ge()},set isOneVideoPlaylist(W){Ge(W)},get supportLink(){return U()},set supportLink(W){U(W)},get shadowRootContainer(){return O()},set shadowRootContainer(W){O(W)},get outerContainerRef(){return Ye()},set outerContainerRef(W){Ye(W)},get fullScreenTarget(){return K()},set fullScreenTarget(W){K(W)},get failoverHosts(){return ae()},set failoverHosts(W){ae(W)},get showMiniTimer(){return ye()},set showMiniTimer(W){ye(W)},get saveRate(){return He()},set saveRate(W){He(W)},get showAutoplayNext(){return Re()},set showAutoplayNext(W){Re(W)},get seekToInteractive(){return ot()},set seekToInteractive(W){ot(W)},get playPrevChapter(){return re()},set playPrevChapter(W){re(W)},get volumeMultiplier(){return de()},set volumeMultiplier(W){de(W)},get showEndScreen(){return Ve()},set showEndScreen(W){Ve(W)},get keyboardControls(){return tt()},set keyboardControls(W){tt(W)}});return o(),Ft}var rT=Ie('<defs><path id="rect" d="m2.72 0c.45 0 .6.05.77.13a1 1 0 01.38.38c.09.16.13.33.13.77v1.44c0 .44-.04.6-.13.77a1 1 0 01-.38.38c-.16.08-.32.13-.77.13h-1.44c-.44 0-.6-.05-.77-.13a1 1 0 01-.37-.38c-.1-.16-.14-.33-.14-.77v-1.44c0-.44.05-.6.13-.77a1 1 0 01.38-.38c.17-.08.33-.13.77-.13z"></path></defs><path d="M38.24 6c3.57 0 4.86.37 6.17 1.07a7.3 7.3 0 0 1 3.02 3.02c.7 1.3 1.07 2.6 1.07 6.17v23.49c0 3.56-.37 4.85-1.07 6.16a7.3 7.3 0 0 1-3.02 3.02c-1.3.7-2.6 1.07-6.16 1.07h-19.5c-3.56 0-4.85-.37-6.16-1.07a7.3 7.3 0 0 1-3.02-3.02c-.7-1.3-1.07-2.6-1.07-6.16v-23.5c0-3.56.37-4.85 1.07-6.16a7.3 7.3 0 0 1 3.02-3.02C13.9 6.37 15.2 6 18.76 6zm.32 3h-19.8c-2.8 0-3.77.19-4.75.71a4.3 4.3 0 0 0-1.8 1.8c-.5.95-.7 1.87-.7 4.43l-.01 23.8c0 2.8.19 3.76.71 4.75a4.3 4.3 0 0 0 1.8 1.8c.98.52 1.95.71 4.75.71h19.49c2.8 0 3.76-.19 4.74-.71a4.3 4.3 0 0 0 1.8-1.8c.52-.98.71-1.95.71-4.74v-23.5c0-2.8-.19-3.75-.71-4.74a4.3 4.3 0 0 0-1.8-1.8c-.95-.5-1.87-.7-4.43-.7z"></path><use xlink:href="#rect" x="16.5" y="14"></use><use xlink:href="#rect" x="16.5" y="22"></use><use xlink:href="#rect" x="16.5" y="30"></use><use xlink:href="#rect" x="16.5" y="38"></use><use xlink:href="#rect" x="37" y="14"></use><use xlink:href="#rect" x="37" y="22"></use><use xlink:href="#rect" x="37" y="30"></use><use xlink:href="#rect" x="37" y="38"></use>',1);function sg(t,e){let i=h(e,"isWhite",3,!1),o=m(()=>i()?"#fff":"#909499");Je(t,{width:"57",height:"60",get fill(){return n(o)},testId:"stub-icon",children:(r,a)=>{var l=rT();ai(9),$(r,l)},$$slots:{default:!0}})}var sT=L('<div class="title s-2"> </div>'),aT=L('<div class="playerStub s-2"><!> <!></div>'),lT={hash:"s-2",code:".playerStub.s-2{align-items:center;background-color:#222;background-position:50%;background-size:cover;display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;height:100%;justify-content:center;position:relative;width:100%}.title.s-2{box-sizing:border-box;color:#fff;font-size:15px;left:0;overflow:hidden;padding:18px 20px 10px;position:absolute;text-overflow:ellipsis;top:0;white-space:nowrap;width:100%}"};function ag(t,e){Y(t,lT);var i=aT(),o=C(i);{var r=d=>{var s=sT(),u=C(s,!0);S(s),D(()=>me(u,e.title)),$(d,s)};V(o,d=>{e.title&&d(r)})}var a=P(o,2);{var l=d=>{let s=m(()=>!!e.thumbUrl);sg(d,{get isWhite(){return n(s)}})};V(a,d=>{(!e.title||!e.thumbUrl)&&d(l)})}S(i),D(()=>Ke(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),$(t,i)}var dT=L('<div class="playerError s-1"><!></div>'),cT={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 lg(t){Y(t,cT);var e=dT(),i=C(e);nl(i,{}),S(e),$(t,e)}var Op=require("@vkontakte/videoplayer-shared/es2018"),Ri=require("@vkontakte/videoplayer-shared/es2018"),Gc=require("@vkontakte/videoplayer-core/es2018"),pd=require("@vkontakte/videoplayer-statistics/es2018");var Ep=require("@vkontakte/videoplayer-shared/es2018"),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=be(e.state.currentPlaybackRate$),r=be(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 ld=require("@vkontakte/videoplayer-shared/es2018");var uT=Ie('<path d="M31.257 3.998c3.037.01 4.52.39 6.13 1.24a9 9 0 013.47 3.35l.17.31.15.3c.78 1.55 1.07 3.18 1.09 6.25v9.04a1.5 1.5 0 01-3 .02v-9.65c-.05-2.04-.24-3.12-.64-4.04l-.12-.27-.13-.25A6 6 0 0036.2 7.9c-1.19-.64-2.34-.88-5.11-.9h-8.84c-2.73 0-4 .2-5.07.7l-.25.13a6 6 0 00-2.4 2.41c-.64 1.19-.88 2.34-.9 5.11v20.83c0 2.74.2 4 .7 5.08l.13.25a6 6 0 002.41 2.4c1.1.6 2.13.83 4.44.89H26a1.5 1.5 0 010 3h-4.47c-3-.05-4.53-.38-6.14-1.24a9 9 0 01-3.48-3.35l-.15-.3c-.73-1.47-1.04-3.01-1.08-5.8V15c.05-2.98.39-4.52 1.25-6.12a9 9 0 013.293-3.582c1.85-.871 2.623-1.27 5.747-1.27z"></path><path d="M30.5 33.8c0-1.68 0-2.52.33-3.16a3 3 0 0 1 1.3-1.31c.65-.33 1.49-.33 3.17-.33h6.4c1.68 0 2.52 0 3.16.33a3 3 0 0 1 1.31 1.3c.33.65.33 1.49.33 3.17v13.4c0 1.68 0 2.52-.33 3.16a3 3 0 0 1-1.3 1.31c-.65.33-1.49.33-3.17.33h-6.4c-1.68 0-2.52 0-3.16-.33a3 3 0 0 1-1.31-1.3c-.33-.65-.33-1.49-.33-3.17z"></path>',1),pT=L('<div><div><!></div> <span class="title s-6"> </span></div>'),fT={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 dg(t,e){B(e,!0),Y(t,fT);let[i,o]=De(),r=()=>x(u,"$interfaceLanguage$",i),a=()=>x(f,"$isMobile$",i),l=he(),d=Rt(),s=!!l.webApi.pictureInPictureApi,u=l.interfaceLanguage$,f=l.ui.isMobile,p=l.ui.t,v=m(()=>r()&&p("pip_dummy_title")),_=Tp(d.view);var y=pT();let b;var w=C(y);let I;var T=C(w);Je(T,{width:"57",height:"56",testId:"pip-dummy-icon",children:(E,k)=>{var Q=uT();ai(),$(E,Q)},$$slots:{default:!0}}),S(w);var N=P(w,2),A=C(N,!0);S(N),S(y),D((E,k)=>{b=ne(y,1,"player-pip-dummy s-6",null,b,E),Ke(y,_),I=ne(w,1,"dummy-image s-6",null,I,k),me(A,n(v))},[()=>({"is-pip-api":s}),()=>({desktop:!a()})]),$(t,y),H(),o()}var mT=Object.defineProperty,vT=(t,e,i)=>e in t?mT(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,ad=(t,e,i)=>vT(t,typeof e!="symbol"?e+"":e,i),gT=460,hT=280,Bc=class{constructor({enabled:e=!0}={enabled:!0}){ad(this,"playerDomElement"),ad(this,"playerParentShadowRoot"),ad(this,"playerDummyElement"),ad(this,"svelteContext"),ad(this,"pipWindow"),ad(this,"info",{isActive$:new ld.ValueSubject(!1),isEnabled$:new ld.ValueSubject(!1),type:1}),this.info.isEnabled$=new ld.ValueSubject(e)}isSupported(){let{isEmbed:e}=(0,ld.detectEmbed)();return"documentPictureInPicture"in window&&!e}isActive(){return this.info.isActive$.getValue()}setPlayerDomElement(e,i){this.playerDomElement=e,this.playerParentShadowRoot=i}setContext(e){this.svelteContext=e}async request(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:gT,height:hT,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(dg,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||(Va(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1),this.pipWindow=void 0)})}async exit(){return new Promise(e=>{var i;this.pipWindow&&((i=documentPictureInPicture.window)==null||i.close()),e()})}async dispose(){await this.exit()}setEnabled(e){this.info.isEnabled$.next(e)}createStretchedContainer(){let e=document.createElement("div");return e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",e.style.height="100%",e}};function p$(t){return t instanceof Bc}var kp=class{static getLatestSupportedVersion(e){let i=new Ua(e),o=new Bc(e);if(o.isSupported())return o;if(i.isSupported())return i}};function Hc(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 f$="Inner error. Unexpectedly root annotation container null reference exception",m$="Annotation with such name already exists",v$="Annotation with such name does not exist";var dd=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var cd=require("@vkontakte/videoplayer-shared/es2018"),_T="1",bT=100,Pp=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new cd.Subscription}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=(0,cd.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"},bT);this.subscriptions.add((0,cd.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 dd(f$);if(this.annotations.has(e))throw new dd(m$);i.style.zIndex=(o=i.style.zIndex)!=null?o:_T,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 dd(v$);return i}remove(e){let i=this.get(e);this.annotations.delete(e)&&i.remove()}clear(){for(let e in this.annotations.keys())this.remove(e)}destroy(){var e;this.annotations.clear(),this.subscriptions.unsubscribe(),(e=this.mutationObserver)==null||e.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,i,o){let r=e.offsetTop,a=e.offsetLeft,l=e.offsetWidth,d=e.offsetHeight;return r<0||a<0||a+l>i||r+d>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};var ul=require("@vkontakte/videoplayer-shared/es2018"),pn=class{init({store:e,microStores:i,interactiveController:o,config:r}){return(0,ul.assertNonNullable)(e),(0,ul.assertNonNullable)(i),(0,ul.assertNonNullable)(r),r.interactiveData&&(0,ul.assertNonNullable)(o),this.subscription=new ul.Subscription,this.subscription}};var Fc=class extends pn{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...le(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 Uc=class extends pn{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...le(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{microStores:r,store:a}=i,{fakeIsPlaying$:l}=r,{isInteractiveExpectation$:d,isPlaying$:s}=a.state,{controlsVisible:u,isMobile:f}=a.ui,p=be(f),v=()=>p&&be(u);return o.add(u.subscribe(_=>{if(!p)return;let y=be(l);be(s)?this.state$.set(_):y!==null&&this.state$.set(!y||_)})),o.add(s.subscribe(_=>{this.state$.set(!_||v())})),o.add(l.subscribe(_=>{if(_===null)return;let y=be(d);if(v()){this.state$.set(!0);return}y&&this.state$.set(!_)})),o}};var zc=class extends pn{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=le("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 g$=require("@vkontakte/videoplayer-shared/es2018"),cg=le(!1),Ap=null,Wc=class extends pn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...cg,set:(i,o=!1)=>{i!==be(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=>{be(l)&&p&&this.state$.set(!1)}));let f=(a==null?void 0:a.interactiveData)||{tooltipHelpHintActive:!1};return o.add((0,g$.combine)({isPlaying$:d,isInteractiveTime$:l,interactiveTimeIndicator:u}).subscribe(({isPlaying$:p,isInteractiveTime$:v,interactiveTimeIndicator:_})=>{var y,b;if(!(!p||!(_!=null&&_.isDisplayed))){if(!v)return this.state$.set(!1);f.tooltipHelpHintActive&&Ap===null&&(Ap=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),(b=(y=r.callbacks)==null?void 0:y.onInteractiveTimeIndicatorHintDeactivated)==null||b.call(y))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};var Lp=require("@vkontakte/videoplayer-shared/es2018");var Kc=class extends pn{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...le(null),toggle:Lp.noop};this.checkIfShouldHide=i=>Os(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=async()=>{if(this.checkIfShouldHide(be(l)))return;let s=be(this.state$),{isEnded$:u,playbackState$:f}=r.state,{disabledControls$:p}=r.ui.controls,v=be(u),_=be(f);if(s)try{await(a==null?void 0:a.toggleGraphView(!1)),this.state$.set(!1),p.remove(Ff),!v&&this.graphMadePause&&r.actions.internal.play()}catch(y){d({message:"Cant hide graph"})}else{this.graphMadePause=_==="playing";try{await(a==null?void 0:a.toggleGraphView(!0)),this.state$.set(!0),p.add(Ff),!v&&this.graphMadePause&&r.actions.internal.pause()}catch(y){d({message:"Cant show graph"})}}},o.add((0,Lp.combine)({graphIsOpened:this.state$,currentGridType:l}).subscribe(async({graphIsOpened:s,currentGridType:u})=>{if(this.checkIfShouldHide(u)&&s)try{await(a==null?void 0:a.toggleGraphView(!1)),this.state$.set(!1)}catch(p){d({message:"Cant hide graph"})}})),o}};var ug=require("@vkontakte/videoplayer-shared/es2018"),qc=class extends pn{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:le(!1),isEnabled$:le(!1),type$:le(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/es2018");var Mp=require("@vkontakte/videoplayer-shared/es2018"),h$=({maxShowCount:t,timeout:e})=>{let i=[t!==0?$T({maxCount:t}):void 0,e!==0?yT({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(r=>r.notificationShowed(o)),canShowNotification:o=>i.every(r=>r.canShowNotification(o))}},$T=({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}}},yT=({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({...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 Qc=class extends pn{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:le({}),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=h$({maxShowCount:a,timeout:l});let u=r.getPlayer();return o.add(u.events.severeStallOccured$.pipe((0,Vp.filterChanged)(),(0,Vp.filter)(f=>f)).subscribe(()=>{d&&!u.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(s&&r.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var _$=()=>[Fc,Uc,zc,Wc,Kc,qc,Qc].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:{...e,[o.stateName]:o.state$}}},{subscribers:[],stores:{}});var ud=require("@vkontakte/videoplayer-shared/es2018");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 xT=L('<div class="root s-3"><!></div>'),wT={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),Y(t,wT);let i=null,o=q(null);Oe(()=>(n(o)&&(i=window.setTimeout(()=>{R(o,null)},e.animationDuration)),()=>{i&&clearTimeout(i)}));function r(s){e.playbackStatusShow&&R(o,s?"prev":"next",!0)}var a=Le(),l=ce(a);{var d=s=>{var u=Le(),f=ce(u);Ls(f,()=>n(o),p=>{var v=xT(),_=C(v);let y=m(()=>n(o)==="prev");Oc(_,{get duration(){return e.animationDuration},get Icon(){return fa},get reversed(){return n(y)}}),S(v),$(p,v)}),$(s,u)};V(l,s=>{e.playbackStatusShow&&n(o)&&s(d)})}return $(t,a),H({startVideoChangedAnimation:r})}var b$=require("@vkontakte/videoplayer-shared/es2018"),fg=(0,b$.getWindow)().HTMLElement||class{constructor(){this.isConnected=!1}};var ST=Object.defineProperty,CT=(t,e,i)=>e in t?ST(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Yt=(t,e,i)=>CT(t,typeof e!="symbol"?e+"":e,i),TT={preload:!0,autoplay:!1,repeat:!1,loop:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:Ri.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:(0,Gc.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},Jn=q(void 0),mg=si({animationDuration:0,playbackStatusShow:!1}),Dp=class extends fg{constructor(){super(),Yt(this,"svelteStubComponent"),Yt(this,"svelteRootComponent"),Yt(this,"sveltePersistentLayerComponent"),Yt(this,"svelteErrorComponent"),Yt(this,"store"),Yt(this,"microStoresRoot"),Yt(this,"statistics"),Yt(this,"sentry"),Yt(this,"_shadowRoot"),Yt(this,"playerContainer"),Yt(this,"rootContainer"),Yt(this,"stateContainer"),Yt(this,"shadowRootContainer"),Yt(this,"playerId"),Yt(this,"uiConfig"),Yt(this,"coreConfig"),Yt(this,"statisticsConfig"),Yt(this,"metaConfig"),Yt(this,"interactiveController"),Yt(this,"interactiveContainer"),Yt(this,"graphMadePause"),Yt(this,"currentPlayingVideoIndex",0),Yt(this,"needToRepeatPlaylist",!1),Yt(this,"videoConfig"),Yt(this,"pictureInPictureApi"),Yt(this,"mediaSessionApi"),Yt(this,"unsubscribePlayerPhaseSubscription"),Yt(this,"logger"),Yt(this,"log"),Yt(this,"subscription"),Yt(this,"interactiveSubscription"),Yt(this,"annotationsApi"),Yt(this,"slotsApi"),Yt(this,"focusManager"),Yt(this,"prevIsid"),Yt(this,"isInited",!1),Yt(this,"postponedInitParams",null),Yt(this,"internalsExposure",null),Yt(this,"shadowDOMCallbacksDisabled",!1),Yt(this,"fatalError$",new Op.ValueSubject(null)),Yt(this,"createOneStat",(e,i={})=>{var o,r,a,l;if(!this.videoConfig)return;let{albumId:d,statPlace:s,statUserSalt:u,statTrackCode:f,statVKAppId:p,refreshStatAuthToken:v,autoplay:_,isMobile:y,isTouch:b,refDomain:w,deviceId:I,interactiveData:T}=Hc(this.videoConfig,i),N=(o=T==null?void 0:T.projectInfo)==null?void 0:o.pid,A=(a=(r=this.interactiveController)==null?void 0:r.state.isReplay$.getValue())!=null?a:!1;A&&(this.prevIsid=void 0);let{unitedVideoId:E,isClip:k=!1}=e;if(this.uiConfig.features.statistics&&E)try{return new pd.OneStat({movieId:E,albumId:d,place:s,trackCode:f,vkAppId:p,autoplay:(l=_&&!this.interactiveController)!=null?l:!1,mobile:b!=null?b:y,clip:k,refDomain:w,deviceId:I,isPreviewPlayerView:this.videoConfig.playerView==="preview",...N&&(!this.isInited||A)&&{projectId:Number(N)}},{refreshAuthToken:v,userSalt:u,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})}catch(F){console.error(F),this.log({message:F.message})}}),ud.devNull.create("ui"),this.logger=new Ri.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new Ri.Subscription,this.interactiveSubscription=new Ri.Subscription,this.graphMadePause=!1,this.fatalError$.subscribe(e=>{this.unmountComponent(this.svelteErrorComponent),e&&(this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.svelteErrorComponent=Jr(lg,{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=si({title:o,thumbUrl:r}),l={target:this.playerContainer,props:a};this.svelteStubComponent=Jr(ag,l),this.sveltePersistentLayerComponent=Jr(pg,{target:this.playerContainer,props:mg}),this.postponedInitParams&&(this.initPlayer(...this.postponedInitParams),this.postponedInitParams=null)}updatePersistentLayerProps(){if(!this.uiConfig)return;let{playbackStatusNextVideoAnimationDuration:e,features:{playbackStatusShow:i,playbackStatusNextVideoShow:o}}=this.uiConfig;mg.animationDuration=e,mg.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(),ud.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}=Hc(this.videoConfig,i),{unitedVideoId:l}=e;if(this.uiConfig.features.thinStatistics&&l)return new pd.ThinOneStat.ThinOneStat({deviceId:o,movieId:l,preload:r,isPreviewPlayerView:this.videoConfig.playerView==="preview"},{config:this.statisticsConfig,refreshAuthToken:a})}createPlayer(e,i={},o){var r,a,l,d,s,u,f,p,v,_;if(!this.videoConfig)return;let{albumId:y,statPlace:b,statAuthToken:w,preload:I,autoplay:T,volume:N,muted:A,fromTime:E,canRewindLive:k,supportLink:Q,showAds:F,adsSlotId:z,adsParams:X={},adsAutoplayParam:se,interfaceLanguage:Z,isCyrillicRelatedInterface:oe,logoClickable:J,logoHidden:Ce,isMobile:pe,isTouch:ee,isAudioDisabled:_e,isLiveCatchUpMode:we,fullScreenTarget:ve,failoverHosts:ue,canDownload:Ge,callbacks:U,interactiveData:O,showThumbTimer:Ye,additionalButtons:K=[],additionalSettingsMenuItems:ae=[],additionalContextMenuItems:ye=[],repeat:He,loop:ot,saveRate:re,volumeMultiplier:de,showEndScreen:Re,showAutoplayNext:Ve,mediascopePixels:tt}=Hc(this.videoConfig,i),{sources:Ee,title:Te,thumbUrl:Fe,unitedVideoId:At,isClip:kt=!1,duration:Lt,adsParams:lt={},videoEpisodes:Ct,previewThumbsData:Zt,subtitles:Ht,subtitlesForcedLanguage:Ot,live:Kt,adsExternalApi:G}=e;if(!Ee&&!Kt){let ci=new Error("empty sources and live");this.fatalError$.next(ci),(r=U.onCrashed)==null||r.call(U,ci.message);return}let Pe={...X,...lt},ke=this.getNextVideoInfo(),xe={sources:Ee,title:Te,thumbUrl:Fe,subtitles:Ht,subtitlesForcedLanguage:Ot,unitedVideoId:At,isClip:kt,live:Kt,albumId:y,statPlace:b,autoplay:T,muted:A,volume:N,fromTime:E,canRewindLive:k,showAds:F,adsSlotId:z,adsParams:Pe,adsAutoplayParam:se,duration:Lt,logoClickable:J,logoHidden:Ce,isTouch:ee!=null?ee:pe,repeat:He,loop:ot,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:ke.nextVideoTitle,endScreenVideoThumb:ke.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Be={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi,focusManager:this.focusManager};this.log({message:`create player, props: ${JSON.stringify(xe)}`});let $e=(a=this.interactiveController)==null?void 0:a.state.statistics$.getValue(),Tt=($e==null?void 0:$e.oneStat)||this.createOneStat(e,i),fe=this.createThinOneStat(e,i),Ne;tt&&(Ne=new pd.MediascopePixel({pixels:tt})),(Tt||fe)&&(this.statistics=new fp(Tt,fe,Ne,$e==null?void 0:$e.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Fa(this.uiConfig.sentry,{version:Oa,env:Nu},{movieId:At,albumId:y,place:b,autoplay:(l=T&&!this.interactiveController)!=null?l:!1,mobile:ee!=null?ee:pe,clip:kt}),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={...this.sentry,...Fa.getInstance()};let rt=!!O,qt=[],Nt="tooltip_interactive_go_back_disabled_first";if(rt&&this.interactiveController){let ci=this.interactiveController.state.isInitialChapter$.getValue(),bi=this.interactiveController.getHistoryState();ci&&qt.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||qt.push("SEEK_TO_INTERACTIVE_BUTTON"),bi.hasPrevChapter$.getValue()||(qt.push("PLAY_PREV_CHAPTER_BUTTON"),ci||(bi.isGoBackLimited$.getValue()?Nt="tooltip_interactive_go_back_disabled_limit":Nt="tooltip_interactive_go_back_disabled"))}let pi=()=>{var ci;this.isInited=!1,this.prevIsid=void 0;let bi=(o==null?void 0:o.info.isEnded$.getValue())&&((ci=this.interactiveController)==null?void 0:ci.state.isEndChapter$.getValue());U.onReplayInteractiveVideo&&!bi?U.onReplayInteractiveVideo():this.replayInteractiveVideo()},di=He&&this.videoConfig.videos.length===1;this.store=Eb({player:o,interfaceLanguage:Z,isCyrillicRelatedInterface:oe,videoId:At,isClip:kt,isLiveCatchUpMode:we,isAudioDisabled:_e,statAuthToken:w,callbacks:U,webApi:Be,videoEpisodes:Ct,previewThumbsData:Zt,canDownload:Ge,uiConfig:this.uiConfig,coreConfig:this.coreConfig,metaConfig:this.metaConfig,disabledControls:qt,isInteractive:rt,saveRate:re,interactiveRanges$:(f=this.interactiveController)==null?void 0:f.state.interactiveRanges$,isInteractiveTime$:(p=this.interactiveController)==null?void 0:p.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:pi,playPrevChapterDisabledTooltip:Nt,hasInteractiveBranches:!!((_=(v=this.interactiveController)==null?void 0:v.getChapterBranches())!=null&&_.length),additionalButtons:this.uiConfig.features.additionalButtons?K:[],additionalSettingsMenuItems:ae!=null?ae:[],additionalContextMenuItems:ye!=null?ye:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),onVideoChanged:ci=>{var bi;return(bi=this.sveltePersistentLayerComponent)==null?void 0:bi.startVideoChangedAnimation(ci)},looped:this.uiConfig.features.useLoopSetting?ot:di,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView,playerId:this.playerId});let{stores:Ti}=this.microStoresRoot=_$(),no=()=>{var ci,bi,xt,ui,Yi,pt;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(dt=>{var We;return(We=U==null?void 0:U.onCurrentFormatChanged)==null?void 0:We.call(U,dt)})),this.subscription.add(Ti.interactiveControlsOpacity$.subscribe(dt=>{var We;dt!==null&&((We=this==null?void 0:this.interactiveController)==null||We.setDisabledControls(dt))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(dt=>{var We;return(We=U==null?void 0:U.onThroughputEstimationChanged)==null?void 0:We.call(U,dt)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(dt=>{var We;return(We=U==null?void 0:U.onTrafficSavingEnabledChanged)==null?void 0:We.call(U,dt)})),this.subscription.add(this.store.state.highQualityEnabled$.subscribe(dt=>{var We;return(We=U==null?void 0:U.onHighQualityEnabledChanged)==null?void 0:We.call(U,dt)})),this.subscription.add(this.store.state.isAutoQualityEnabled$.subscribe(dt=>{var We;return(We=U==null?void 0:U.onAutoQualityEnabledChanged)==null?void 0:We.call(U,!!dt)})),this.subscription.add(new Ri.Observable(dt=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(We=>dt.next(We)))}).pipe((0,Ri.skip)(1)).subscribe(dt=>{var We;return(We=U==null?void 0:U.onCurrentPlaybackRateChanged)==null?void 0:We.call(U,dt)})),this.subscription.add(this.store.state.volume$.subscribe(dt=>{var We;return(We=U==null?void 0:U.onVolumeChange)==null?void 0:We.call(U,dt)})),this.subscription.add(this.store.state.muted$.subscribe(dt=>{var We,fi,vo,Zo;if(dt)(We=U==null?void 0:U.onMute)==null||We.call(U);else{let Jo=(vo=((fi=this.store)==null?void 0:fi.state.volume$)&&be(this.store.state.volume$))!=null?vo:0;(Zo=U==null?void 0:U.onUnmute)==null||Zo.call(U,Jo)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(dt=>{var We;return(We=U==null?void 0:U.onVideoBitrateChanged)==null?void 0:We.call(U,dt)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(dt=>{var We;let fi=(We=this.store)==null?void 0:We.ui.controls.disabledControls$;fi&&(dt&&!fi.includes(Kd)&&fi.add(Kd),dt||fi.remove(Kd))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async dt=>{var We;if(!Gc.clientChecker.browser.isSamsungBrowser||!dt||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter((We=this.videoConfig)==null?void 0:We.callbacks.onExternalFullscreenExit)})),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(dt=>{var We;return(We=U==null?void 0:U.onVSIDChanged)==null?void 0:We.call(U,dt)})),this.initMediaSession(),R(Jn,{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:Ee,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:Te,thumbUrl:Fe,subtitles:Ht,subtitlesForcedLanguage:Ot,live:Kt,preload:I,autoplay:T,muted:A,volume:N,fromTime:E,canRewindLive:k,supportLink:Q,showAds:F,adsSlotId:z,adsParams:Pe,adsAutoplayParam:se,duration:Lt,logoClickable:J,logoHidden:Ce,isMobile:ee!=null?ee:pe,failoverHosts:ue,fullScreenTarget:ve,saveRate:re,shadowRootContainer:this.shadowRootContainer,showMiniTimer:Ye,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:ke.nextVideoTitle,endScreenVideoThumb:ke.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:de,showEndScreen:Re,showAutoplayNext:Ve,adsExternalApi:G,getVideoDeeplink:this.videoConfig.getVideoDeeplink},!0);let Bt={target:this.playerContainer,props:n(Jn)};this.svelteRootComponent=Jr(rg,Bt),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(xt=(bi=(ci=this.videoConfig)==null?void 0:ci.callbacks)==null?void 0:bi.onInited)==null||xt.call(bi)),(ui=this.internalsExposure)==null||ui.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((pt=(Yi=this.videoConfig)==null?void 0:Yi.callbacks)!=null&&pt.onDevNullLog)?ud.devNull.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):ud.devNull.destroy("ui")};this.coreConfig.asyncResolveClientChecker?Gc.clientChecker.isInited$.subscribe(ci=>{ci&&(console.log("UI SDK async start"),no())}):no()}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,Ri.isNonNullable)(r.unitedVideoId)&&((o=this.store)==null||o.actions.internal.nextMovie(r.unitedVideoId)),this.unmountComponent(this.svelteRootComponent),this.createPlayer(r,{autoplay:i,fromTime:0},e)}playPrevChapter(){var e;(e=this.interactiveController)==null||e.playPrevChapter()}seekToInteractive(){var e;let i=(e=this.interactiveController)==null?void 0:e.getNextInteractiveStartTime();typeof i=="number"&&this.seekTime(i/1e3)}async initInteractives(){var e,i,o,r,a,l;if((e=this.videoConfig)!=null&&e.interactiveData)try{let{Interactives:d}=await import("@vkontakte/videoplayer-interactive/es2018");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let s=(i=this.store)==null?void 0:i.interfaceLanguage$,u=s?be(s):this.videoConfig.interfaceLanguage,{projectInfo:f,initChapterId:p,historyApi:v,videoLoader:_}=this.videoConfig.interactiveData;this.interactiveController=new d({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:u,graph:this.uiConfig.features.interactiveGraph,projectInfo:f,initChapterId:p,historyApi:v,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$:b}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(b.subscribe(I=>{if(!this.isInited)return;let T=this.store;I?T.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):T.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(y.subscribe(I=>{this.store&&this.store.state.isInteractiveExpectation$.set(I)}));let w=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(I=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...I.config,title:(f==null?void 0:f.title)||I.config.title};let T=w?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(I.player,T),w&&(w=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:I,actionType:T})=>{var N,A,E,k,Q,F;if(!this.store||!this.microStoresRoot)return;let z=y.getValue();if(I==="action-choice"&&T==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(qd)),I==="action-choice-canceled"){let X=be(this.store.state.isPlaying$)||z;if(((E=(N=this.videoConfig)==null?void 0:N.isTouch)!=null?E:(A=this.videoConfig)!=null&&A.isMobile)&&X){this.store.ui.interactiveHideMobileControls.set(!0);return}(F=(k=this.videoConfig)==null?void 0:(Q=k.callbacks).onDisabledInteractiveClick)==null||F.call(Q)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:I,removeAllOpenURI:T})=>{this.store&&I==="container-fake-removed"&&T&&this.store.ui.controls.disabledControls$.remove(qd)})),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(r=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&r.onInteractiveHistoryChanged){let I=this.interactiveController.getHistoryState();this.subscription.add(I.history$.subscribe(T=>{var N,A,E;T.length&&((E=(A=(N=this.videoConfig)==null?void 0:N.callbacks)==null?void 0:A.onInteractiveHistoryChanged)==null||E.call(A,T))}))}(l=(a=this.videoConfig)==null?void 0:a.callbacks)!=null&&l.onInteractiveChapterChanged&&this.subscription.add(this.interactiveController.events.chapterChanged$.subscribe(I=>{var T,N,A;(A=(T=this.videoConfig)==null?void 0:(N=T.callbacks).onInteractiveChapterChanged)==null||A.call(N,I.chapter,I.manifestVideo)})),this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var I,T,N,A;(I=this.microStoresRoot)==null||I.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(A=(T=this.videoConfig)==null?void 0:(N=T.callbacks).onInteractiveTimeIndicatorClick)==null||A.call(N)})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(I=>{this.log({message:I.toString()})}))}catch(d){this.log({message:d.message})}}initPlayer(e,i={}){var o,r,a,l,d,s,u,f,p,v,_,y,b,w,I,T,N,A,E,k,Q,F,z,X,se;if(!this.isConnected){this.postponedInitParams=[e,i];return}if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData){let Z=new Error("empty videos");this.fatalError$.next(Z),(r=(o=e.callbacks)==null?void 0:o.onCrashed)==null||r.call(o,Z.message);return}else this.fatalError$.next(null);if(this.videoConfig=Hc(TT,(0,Ri.cloneDeepWith)(e,Z=>Z instanceof fg?Z:void 0)),this.playerId=(0,Ri.getPlayerId)(e.playerId),this.uiConfig=o_((a=i.ui)!=null?a:{}),this.updatePersistentLayerProps(),this.coreConfig=(l=i.core)!=null?l:{},this.statisticsConfig=(d=i.statistics)!=null?d:{},this.metaConfig=i.meta,this.uiConfig.features.forcePlayerDisplayBlock&&(this.rootContainer&&(this.rootContainer.style.minHeight="unset"),this.style.display="block",this.style.width="100%",this.style.height="100%"),this.videoConfig.playerView==="preview"&&(this.playerContainer.style.contain="none"),this.sentry={config:(s=this.uiConfig.sentry)!=null?s:{}},this.uiConfig.features.exposeInternalsToGlobal&&((u=this.internalsExposure)!=null||(this.internalsExposure=new Ri.InternalsExposure("ui",this.playerId))),ud.devNull.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+((f=this.videoConfig)==null?void 0:f.showAds)],numbers:[(0,Op.now)()]}),(0,Ri.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(v=(p=this.uiConfig.features.mediaSession)!=null?p:this.videoConfig.isMediaSessionEnabled)!=null?v:!0),(0,Ri.isNonNullable)(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(y=(_=this.uiConfig.features.pip)!=null?_:this.videoConfig.isPictureInPictureEnabled)!=null?y:!0,this.uiConfig.features.dpip=(w=(b=this.uiConfig.features.dpip)!=null?b:this.videoConfig.isPictureInPictureEnabled)!=null?w:!0),this.uiConfig.ads.paramsOverride={preview:(I=this.uiConfig.ads.preview)!=null?I:this.videoConfig.adsPreviewParam,...this.uiConfig.ads.paramsOverride},this.videoConfig.isTouch=(N=(T=this.uiConfig.isMobile)!=null?T:this.videoConfig.isTouch)!=null?N:this.videoConfig.isMobile,(A=this.videoConfig).autoplay&&(A.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(E=this.uiConfig.ads.enable)!=null?E:this.videoConfig.showAds,this.videoConfig.adsSlotId=(k=this.uiConfig.ads.slot)!=null?k:this.videoConfig.adsSlotId,this.videoConfig.logoHidden=!((Q=this.uiConfig.showLogo)!=null?Q:!this.videoConfig.logoHidden),(F=this.videoConfig).canRewindLive&&(F.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(z=this.videoConfig.supportLink)!=null?z:this.uiConfig.supportLink,this.videoConfig.showEndScreen=this.uiConfig.features.endScreen&&this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=this.uiConfig.features.autoplayNext&&this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=this.uiConfig.features.nextPrevButtons&&this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((X=this.videoConfig.videos)!=null&&X[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let Z={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=kp.getLatestSupportedVersion(Z):this.pictureInPictureApi=new Ua(Z)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new Ip:void 0,this.slotsApi=this.uiConfig.features.slots?new wp(this.uiConfig.disabledSlotIds):void 0,this.annotationsApi=this.uiConfig.features.annotations?new Pp(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]),p$(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(se=this.slotsApi)==null||se.init(this.shadowRootContainer,this.store)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateVideos(e,i){if(!this.videoConfig)return;this.log({message:`update ${i} videos, videos: ${JSON.stringify(e)}`}),i==="prev"?(this.videoConfig.videos.splice(0,this.currentPlayingVideoIndex),this.videoConfig.videos.unshift(...e),this.currentPlayingVideoIndex=e.length):i==="next"&&(this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...e));let o=this.getNextVideoInfo();n(Jn)&&(n(Jn).showNextPrevButtons=this.needToShowNextPrevButtons(),n(Jn).nextButtonActive=this.isNextButtonActive(),n(Jn).prevButtonActive=this.isPrevButtonActive(),n(Jn).endScreenVideoTitle=o.nextVideoTitle,n(Jn).endScreenVideoThumb=o.nextVideoThumb,n(Jn).isOneVideoPlaylist=this.isOneVideoPlaylist())}updatePrevVideos(e){this.updateVideos(e,"prev")}updateNextVideos(e){this.updateVideos(e,"next")}initMediaSession(){var e,i;this.mediaSessionApi&&((e=this.unsubscribePlayerPhaseSubscription)==null||e.call(this),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=(i=this.store)==null?void 0:i.playerPhase.subscribe(o=>{o==="video"?this.setupMediaSessionForVideo():o==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:e,thumbUrl:i}={...this.videoConfig.videos[this.currentPlayingVideoIndex]},o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",r=>this.seekTime(r.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>{var r,a,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(a=(r=this.videoConfig)==null?void 0:r.callbacks)==null?void 0:a.onNextVideoClick)==null||l.call(a)}catch(d){this.log({message:"onNextVideoClick callback failed to execute"})}else this.playNextVideo()}]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>{var r,a,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(a=(r=this.videoConfig)==null?void 0:r.callbacks)==null?void 0:a.onPrevVideoClick)==null||l.call(a)}catch(d){this.log({message:"onPrevVideoClick callback failed to execute"})}else this.playPrevVideo()}])),this.mediaSessionApi.setMetaData({title:e,thumbUrl:i}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let e="Реклама",i=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:e}),this.mediaSessionApi.updateActionHandlers(i),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}moveTo(e){this.shadowDOMCallbacksDisabled=!0,e.append(this),this.shadowDOMCallbacksDisabled=!1}play(){var e,i,o,r;this.isControlDisabled("PLAY_BUTTON")||(e=this.store)!=null&&e.playerPhase.is("LiveWaitingStart")||(i=this.store)!=null&&i.playerPhase.is("LiveWaitingRecover")||(o=this.store)!=null&&o.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),(r=this.svelteRootComponent)==null||r.play())}pause(){var e;this.log({message:"pause"}),(e=this.svelteRootComponent)==null||e.pause()}stop(){var e;if(!this.videoConfig)return;this.log({message:"stop"});let i=!!this.interactiveController;i&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveContainer=void 0,this.interactiveSubscription.unsubscribe()),this.unmountComponent(this.svelteStubComponent),(e=this.mediaSessionApi)==null||e.destroy();let o=this.videoConfig.videos[0];o&&(this.unmountComponent(this.svelteRootComponent),i?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(o))}setMuted(e){var i;this.log({message:`set muted, muted: ${e}`}),(i=this.svelteRootComponent)==null||i.setMuted(e)}toggleSubtitle(){var e;this.log({message:"toggle subtitle"}),(e=this.svelteRootComponent)==null||e.toggleSubtitle()}changeSubtitle(e,i){var o;this.log({message:"change subtitle"}),(o=this.svelteRootComponent)==null||o.changeSubtitle(e,i)}hideControls(){var e;this.log({message:"hide controls"}),(e=this.svelteRootComponent)==null||e.hideControls()}showControls(){var e;this.log({message:"show controls"}),(e=this.svelteRootComponent)==null||e.showControls()}setPiPEnabled(e){var i,o;(o=(i=this.store)==null?void 0:i.webApi.pictureInPictureApi)==null||o.setEnabled(e)}setVolume(e){var i;this.log({message:`set volume, volume: ${e}`}),(i=this.svelteRootComponent)==null||i.setVolume(e)}setRepeat(e){this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,n(Jn)&&(n(Jn).needToRepeatPlaylist=this.needToRepeatPlaylist,n(Jn).showNextPrevButtons=this.needToShowNextPrevButtons(),n(Jn).nextButtonActive=this.isNextButtonActive(),n(Jn).prevButtonActive=this.isPrevButtonActive())}seekTime(e){var i;this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekTime(e))}seekEpisodeStartTime(e){var i;this.log({message:`seek episode start time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekEpisodeStartTime(e)}returnFocusToEpisodes(){var e;this.log({message:"return focus to episodes button"}),(e=this.svelteRootComponent)==null||e.returnFocusToEpisodes()}setPlaybackRate(e){var i;this.log({message:`set playback rate to: ${e}`}),(i=this.svelteRootComponent)==null||i.setPlaybackRate(e)}setAutoQualityLimits(e){var i,o,r;this.log({message:`set auto quality limitation. Max: ${(i=e.max)!=null?i:"none"}. Min: ${(o=e.min)!=null?o:"none"}`}),(r=this.svelteRootComponent)==null||r.setAutoQualityLimits(e)}setAutoQuality(){var e;(e=this.svelteRootComponent)==null||e.setAutoQuality()}toggleTrafficSaving(e){var i;(i=this.svelteRootComponent)==null||i.toggleTrafficSaving(e)}toggleHighQuality(e){var i;(i=this.svelteRootComponent)==null||i.toggleHighQuality(e)}changeAudioStream(e){var i;(i=this.svelteRootComponent)==null||i.changeAudioStream(e)}addLanguage(e){var i;(i=this.store)==null||i.actions.internal.addLanguage(e)}async setLanguage(e){var i;await((i=this.store)==null?void 0:i.actions.internal.setLanguage(e))}setLiveStart(e){var i,o;let r=this.isLiveTailPlaying();this.log({message:`live started: liveTailPlaying = ${r}`}),r||((i=this.store)==null||i.actions.internal.setLiveWaitingRecover(!1),(o=this.store)==null||o.actions.internal.setLiveWaitingStart(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!0}))}setLiveWaitingStart(){var e;this.log({message:"live waiting"}),(e=this.store)==null||e.actions.internal.setLiveWaitingStart(!0)}isLiveTailPlaying(){var e;let i=(e=this.store)==null?void 0:e.getPlayer();if(!i)return!1;let{info:o}=i;return o.canPlayLiveTailBuffer$.getValue()&&!o.isStalled$.getValue()&&!o.atLiveEdge$.getValue()}setLiveWaitingRecover(e=!1){var i;let o=this.isLiveTailPlaying(),r=e||!o;this.log({message:`live waiting recover: forceImmediate = ${e}, liveTailPlaying = ${o}`});let 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()}async replayInteractiveChapter(e){var i,o;if(this.interactiveController&&((i=this.store)!=null&&i.state.positionExact$)){let r=be(this.store.state.positionExact$),l=be(this.store.state.interactiveEpisodes$).find(s=>!s.completed);this.interactiveController.events.playerChanged$.pipe((0,Ri.once)()).subscribe(()=>{l&&r>=l.time?this.seekTime(l.time):this.seekTime(r),e==null||e()});let d=this.interactiveController.getCurrentChapter();await this.interactiveController.setChapter({chapterId:(o=d==null?void 0:d.chapter)==null?void 0:o.id,pushToHistory:!1})}}showInteractiveIndicatorTooltip(e,i=!1){var o;(o=this.microStoresRoot)==null||o.stores.showInteractiveTimeIndicatorTooltip$.set(e,i)}switchToActiveLive(){var e;(e=this.store)==null||e.actions.internal.switchToActiveLive()}updateAdditionalSettingsItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalSettingsItem(e,i)}addAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalSettingsItem(e)}removeAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalSettingsItem(e)}updateAdditionalContextItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalContextItem(e,i)}addAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalContextItem(e)}removeAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalContextItem(e)}updateAdditionalButton(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalButton(e,i)}addAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.addAdditionalButton(e)}removeAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalButton(e)}updateStatContext(e){this.statistics&&(this.statistics.oneStat&&this.statistics.oneStat.updateContext(e),this.statistics.thinOneStat&&this.statistics.thinOneStat.updateContext(e))}handleTimerNextVideo(e){var i;(i=this.store)==null||i.actions.internal.setTimerNextVideoRunning(e)}togglePictureInPicture(){var e;(e=this.store)==null||e.actions.internal.togglePictureInPicture()}focus(){var e,i,o;(o=(i=(e=this.svelteRootComponent)==null?void 0:e.keyboardControls)==null?void 0:i.focus)==null||o.call(i)}restoreFocus(){var e;(e=this.focusManager)==null||e.restoreFocus()}handleExternalKeyboardEvent(e){var i,o;return!!((o=(i=this.svelteRootComponent)==null?void 0:i.keyboardControls)!=null&&o.handleExternalKeyboardEvent(e))}setAutoplayNext(e){var i;(i=this.store)==null||i.actions.internal.setAutoplayNextEnabled(e)}getTotalViewTime(){var e,i;return(i=(e=this.statistics)==null?void 0:e.thinOneStat)==null?void 0:i.getTotalViewTime()}unmountComponent(e){e&&Va(e)}};var fd=require("@vkontakte/videoplayer-shared/es2018"),Bp=require("@vkontakte/videoplayer-core/es2018"),IT=()=>{window.customElements.define("vk-video-player",Dp)};
|