@vkontakte/videoplayer 1.1.82-dev.6dd94264.0 → 1.1.82-dev.a57718f4.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 +34 -34
- package/es2015.esm.js +34 -34
- package/es2018.cjs +31 -31
- package/es2018.esm.js +31 -31
- package/es2024.cjs +31 -31
- package/es2024.esm.js +31 -31
- package/esnext.cjs +31 -31
- package/esnext.esm.js +31 -31
- package/evergreen.esm.js +31 -31
- package/package.json +5 -5
package/es2018.cjs
CHANGED
|
@@ -1,63 +1,63 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vkontakte/videoplayer v1.1.82-dev.
|
|
3
|
-
*
|
|
2
|
+
* @vkontakte/videoplayer v1.1.82-dev.a57718f4.0
|
|
3
|
+
* Tue, 03 Feb 2026 14:46:54 GMT
|
|
4
4
|
* https://st.mycdn.me/static/vkontakte-videoplayer/1-1-82/doc/
|
|
5
5
|
*/
|
|
6
|
-
"use strict";var P$=Object.create;var hd=Object.defineProperty;var k$=Object.getOwnPropertyDescriptor;var A$=Object.getOwnPropertyNames;var L$=Object.getPrototypeOf,M$=Object.prototype.hasOwnProperty;var
|
|
6
|
+
"use strict";var P$=Object.create;var hd=Object.defineProperty;var k$=Object.getOwnPropertyDescriptor;var A$=Object.getOwnPropertyNames;var L$=Object.getPrototypeOf,M$=Object.prototype.hasOwnProperty;var yg=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})},xg=(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=k$(e,r))||o.enumerable});return t};var wg=(t,e,i)=>(i=t!=null?P$(L$(t)):{},xg(e||!t||!t.__esModule?hd(i,"default",{value:t,enumerable:!0}):i,t)),N$=t=>xg(hd({},"__esModule",{value:!0}),t);var cr=(t,e,i)=>V$(t,typeof e!="symbol"?e+"":e,i),jp=(t,e,i)=>e.has(t)||yg("Cannot "+i);var Ri=(t,e,i)=>(jp(t,e,"read from private field"),i?i.call(t):e.get(t)),Xs=(t,e,i)=>e.has(t)?yg("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),_l=(t,e,i,o)=>(jp(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),Sg=(t,e,i)=>(jp(t,e,"access private method"),i);var ET={};R$(ET,{ControlButtonType:()=>_c,GridTypes:()=>is,InterfaceLanguage:()=>fd.InterfaceLanguage,MenuItemType:()=>Gl,PlayerPhase:()=>os,VERSION:()=>Ha,VKNumericLanguage:()=>fd.VKNumericLanguage,VideoFormat:()=>Bp.VideoFormat,VideoQuality:()=>Bp.VideoQuality,loadVKLangPack:()=>fd.loadVKLangPack,registerPlayerWebComponent:()=>IT});module.exports=N$(ET);var Zs="[",Js="[!",Sa="]",us={};var eo=Symbol(),Qn=Symbol("filename"),Cg=Symbol("hmr"),Tg="http://www.w3.org/1999/xhtml",su="http://www.w3.org/2000/svg";var Xp="@attach";var au=!0;var Eg,Pg,Ig=(Pg=(Eg=globalThis.process)==null?void 0:Eg.env)==null?void 0:Pg.NODE_ENV,ke=Ig&&!Ig.toLowerCase().startsWith("prod");var ur=Array.isArray,kg=Array.prototype.indexOf,_d=Array.from,Zp=Object.keys,uo=Object.defineProperty,Wo=Object.getOwnPropertyDescriptor,lu=Object.getOwnPropertyDescriptors,Jp=Object.prototype,Ag=Array.prototype,Ca=Object.getPrototypeOf,ef=Object.isExtensible;function ea(t){return typeof t=="function"}var ht=()=>{};function Lg(t){return t()}function ta(t){for(var e=0;e<t.length;e++)t[e]()}var Ko=Symbol("$state"),bl=Symbol("legacy props"),Mg=Symbol(""),du=Symbol("proxy path"),cu=1,$l=3,pr=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 Vg(t,e){return t!==e}function xl(t){return!yl(t,this.v)}function Rg(){if(ke){let t=new Error(`derived_references_self
|
|
7
7
|
A derived value cannot reference itself recursively
|
|
8
|
-
https://svelte.dev/e/derived_references_self`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/derived_references_self")}function
|
|
8
|
+
https://svelte.dev/e/derived_references_self`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/derived_references_self")}function Ng(t){if(ke){let e=new Error(`effect_in_teardown
|
|
9
9
|
\`${t}\` cannot be used inside an effect cleanup function
|
|
10
|
-
https://svelte.dev/e/effect_in_teardown`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_in_teardown")}function
|
|
10
|
+
https://svelte.dev/e/effect_in_teardown`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_in_teardown")}function Dg(){if(ke){let t=new Error("effect_in_unowned_derived\nEffect cannot be created inside a `$derived` value that was not itself created inside an effect\nhttps://svelte.dev/e/effect_in_unowned_derived");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Og(t){if(ke){let e=new Error(`effect_orphan
|
|
11
11
|
\`${t}\` can only be used inside an effect (e.g. during component initialisation)
|
|
12
|
-
https://svelte.dev/e/effect_orphan`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_orphan")}function
|
|
12
|
+
https://svelte.dev/e/effect_orphan`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_orphan")}function Bg(){if(ke){let t=new Error(`effect_update_depth_exceeded
|
|
13
13
|
Maximum update depth exceeded. This can happen when a reactive block or effect repeatedly sets a new value. Svelte limits the number of nested updates to prevent infinite loops
|
|
14
|
-
https://svelte.dev/e/effect_update_depth_exceeded`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function
|
|
14
|
+
https://svelte.dev/e/effect_update_depth_exceeded`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Hg(){if(ke){let t=new Error(`hydration_failed
|
|
15
15
|
Failed to hydrate the application
|
|
16
|
-
https://svelte.dev/e/hydration_failed`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/hydration_failed")}function
|
|
16
|
+
https://svelte.dev/e/hydration_failed`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/hydration_failed")}function Fg(){if(ke){let t=new Error("invalid_snippet\nCould not `{@render}` snippet due to the expression being `null` or `undefined`. Consider using optional chaining `{@render snippet?.()}`\nhttps://svelte.dev/e/invalid_snippet");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/invalid_snippet")}function Ug(t){if(ke){let e=new Error(`props_invalid_value
|
|
17
17
|
Cannot do \`bind:${t}={undefined}\` when \`${t}\` has a fallback value
|
|
18
|
-
https://svelte.dev/e/props_invalid_value`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/props_invalid_value")}function
|
|
18
|
+
https://svelte.dev/e/props_invalid_value`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/props_invalid_value")}function zg(t){if(ke){let e=new Error(`props_rest_readonly
|
|
19
19
|
Rest element properties of \`$props()\` such as \`${t}\` are readonly
|
|
20
|
-
https://svelte.dev/e/props_rest_readonly`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/props_rest_readonly")}function
|
|
20
|
+
https://svelte.dev/e/props_rest_readonly`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/props_rest_readonly")}function Wg(t){if(ke){let e=new Error(`rune_outside_svelte
|
|
21
21
|
The \`${t}\` rune is only available inside \`.svelte\` and \`.svelte.js/ts\` files
|
|
22
|
-
https://svelte.dev/e/rune_outside_svelte`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/rune_outside_svelte")}function
|
|
22
|
+
https://svelte.dev/e/rune_outside_svelte`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/rune_outside_svelte")}function Kg(){if(ke){let t=new Error("state_descriptors_fixed\nProperty descriptors defined on `$state` objects must contain `value` and always be `enumerable`, `configurable` and `writable`.\nhttps://svelte.dev/e/state_descriptors_fixed");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function qg(){if(ke){let t=new Error("state_prototype_fixed\nCannot set prototype of `$state` object\nhttps://svelte.dev/e/state_prototype_fixed");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Qg(){if(ke){let t=new Error("state_unsafe_mutation\nUpdating state inside `$derived(...)`, `$inspect(...)` or a template expression is forbidden. If the value should not be reactive, declare it without `$state`\nhttps://svelte.dev/e/state_unsafe_mutation");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_unsafe_mutation")}var ps=!1,fs=!1;function Gg(){ps=!0}var bd=null;function ks(t){let e=Error(),i=e.stack;if(i){let o=i.split(`
|
|
23
23
|
`),r=[`
|
|
24
24
|
`];for(let a=0;a<o.length;a++){let l=o[a];if(l!=="Error"){if(l.includes("validate_each_keys"))return null;l.includes("svelte/src/internal")||r.push(l)}}if(r.length===1)return null;uo(e,"stack",{value:r.join(`
|
|
25
|
-
`)}),uo(e,"name",{value:`${t}Error`})}return e}function
|
|
25
|
+
`)}),uo(e,"name",{value:`${t}Error`})}return e}function Gr(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(ke){let e=new Error(`lifecycle_outside_component
|
|
26
26
|
\`${t}(...)\` can only be used during component initialisation
|
|
27
|
-
https://svelte.dev/e/lifecycle_outside_component`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/lifecycle_outside_component")}var
|
|
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 Ft=null;function $d(t){Ft=t}var fr=null;function yd(t){fr=t}function Sl(t){return nf("getContext").get(t)}function Cl(t,e){return nf("setContext").set(t,e),e}function xd(){return nf("getAllContexts")}function B(t,e=!1,i){var o=Ft={p:Ft,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};ps&&!e&&(Ft.l={s:null,u:null,r1:[],r2:Lr(!1)}),ko(()=>{o.d=!0}),ke&&(Ft.function=i,fr=i)}function H(t){var l,d;let e=Ft;if(e!==null){t!==void 0&&(e.x=t);let s=e.e;if(s!==null){var i=bt,o=Nt;e.e=null;try{for(var r=0;r<s.length;r++){var a=s[r];po(a.effect),Ki(a.reaction),Ao(a.fn)}}finally{po(i),Ki(o)}}Ft=e.p,ke&&(fr=(d=(l=e.p)==null?void 0:l.function)!=null?d:null),e.m=!0}return t||{}}function ms(){return!ps||Ft!==null&&Ft.l===null}function nf(t){var e;return Ft===null&&wl(t),(e=Ft.c)!=null?e:Ft.c=new Map(O$(Ft)||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 ri(t){if(typeof t!="object"||t===null||Ko in t)return t;let e=Ca(t);if(e!==Jp&&e!==Ag)return t;var i=new Map,o=ur(t),r=q(0),a=ke&&fs?ks("CreatedAt"):null,l=Nt,d=m=>{var p=Nt;Ki(l);var v=m();return Ki(p),v};o&&i.set("length",q(t.length,a));var s="";function u(m){s=m,Gr(r,`${s} version`);for(let[p,v]of i)Gr(v,Ta(s,p))}return new Proxy(t,{defineProperty(m,p,v){(!("value"in v)||v.configurable===!1||v.enumerable===!1||v.writable===!1)&&Kg();var _=i.get(p);return _===void 0?_=d(()=>{var y=q(v.value,a);return i.set(p,y),ke&&typeof p=="string"&&Gr(y,Ta(s,p)),y}):N(_,v.value,!0),!0},deleteProperty(m,p){var v=i.get(p);if(v===void 0){if(p in m){let $=d(()=>q(eo,a));i.set(p,$),rf(r),ke&&Gr($,Ta(s,p))}}else{if(o&&typeof p=="string"){var _=i.get("length"),y=Number(p);Number.isInteger(y)&&y<_.v&&N(_,y)}N(v,eo),rf(r)}return!0},get(m,p,v){var x;if(p===Ko)return t;if(ke&&p===du)return u;var _=i.get(p),y=p in m;if(_===void 0&&(!y||(x=Wo(m,p))!=null&&x.writable)&&(_=d(()=>{var I=ri(y?m[p]:eo),T=q(I,a);return ke&&Gr(T,Ta(s,p)),T}),i.set(p,_)),_!==void 0){var $=n(_);return $===eo?void 0:$}return Reflect.get(m,p,v)},getOwnPropertyDescriptor(m,p){var v=Reflect.getOwnPropertyDescriptor(m,p);if(v&&"value"in v){var _=i.get(p);_&&(v.value=n(_))}else if(v===void 0){var y=i.get(p),$=y==null?void 0:y.v;if(y!==void 0&&$!==eo)return{enumerable:!0,configurable:!0,value:$,writable:!0}}return v},has(m,p){var $;if(p===Ko)return!0;var v=i.get(p),_=v!==void 0&&v.v!==eo||Reflect.has(m,p);if(v!==void 0||bt!==null&&(!_||($=Wo(m,p))!=null&&$.writable)){v===void 0&&(v=d(()=>{var x=_?ri(m[p]):eo,I=q(x,a);return ke&&Gr(I,Ta(s,p)),I}),i.set(p,v));var y=n(v);if(y===eo)return!1}return _},set(m,p,v,_){var E;var y=i.get(p),$=p in m;if(o&&p==="length")for(var x=v;x<y.v;x+=1){var I=i.get(x+"");I!==void 0?N(I,eo):x in m&&(I=d(()=>q(eo,a)),i.set(x+"",I),ke&&Gr(I,Ta(s,x)))}if(y===void 0)(!$||(E=Wo(m,p))!=null&&E.writable)&&(y=d(()=>q(void 0,a)),N(y,ri(v)),i.set(p,y),ke&&Gr(y,Ta(s,p)));else{$=y.v!==eo;var T=d(()=>ri(v));N(y,T)}var R=Reflect.getOwnPropertyDescriptor(m,p);if(R!=null&&R.set&&R.set.call(_,v),!$){if(o&&typeof p=="string"){var A=i.get("length"),P=Number(p);Number.isInteger(P)&&P>=A.v&&N(A,P+1)}rf(r)}return!0},ownKeys(m){n(r);var p=Reflect.ownKeys(m).filter(y=>{var $=i.get(y);return $===void 0||$.v!==eo});for(var[v,_]of i)_.v!==eo&&!(v in m)&&p.push(v);return p},setPrototypeOf(){qg()}})}function Ta(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 rf(t,e=1){N(t,t.v+e)}function Tl(t){try{if(t!==null&&typeof t=="object"&&Ko in t)return t[Ko]}catch(e){}return t}function sf(t,e){return Object.is(Tl(t),Tl(e))}function Yr(t){var e=2050,i=Nt!==null&&(Nt.f&2)!==0?Nt:null;bt===null||i!==null&&(i.f&256)!==0?e|=256:bt.f|=1048576;let o={ctx:Ft,deps:null,effects:null,equals:uu,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:bt};return ke&&fs&&(o.created=ks("CreatedAt")),o}function f(t){let e=Yr(t);return vu(e),e}function Tn(t){let e=Yr(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)qi(e[i])}}var af=[];function H$(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function cf(t){var e,i=bt;if(po(H$(t)),ke){let o=Ia;lf(new Set);try{af.includes(t)&&Rg(),af.push(t),fu(t),e=mu(t)}finally{po(i),lf(o),af.pop()}}else try{fu(t),e=mu(t)}finally{po(i)}return e}function uf(t){var e=cf(t);if(t.equals(e)||(t.v=e,t.wv=wd()),!As){var i=(Ls||(t.f&256)!==0)&&t.deps!==null?4096:1024;In(t,i)}}var Ia=new Set,Il=new Map;function lf(t){Ia=t}function Lr(t,e){var i={f:0,v:t,reactions:null,equals:uu,rv:0,wv:0};return ke&&fs&&(i.created=e!=null?e:ks("CreatedAt"),i.updated=null,i.set_during_effect=!1,i.trace=null),i}function q(t,e){let i=Lr(t,e);return vu(i),i}function vs(t,e=!1,i=!0){var r,a;let o=Lr(t);return e||(o.equals=xl),ps&&i&&Ft!==null&&Ft.l!==null&&((a=(r=Ft.l).s)!=null?a:r.s=[]).push(o),o}function N(t,e,i=!1){var r;Nt!==null&&(!gr||(Nt.f&262144)!==0)&&ms()&&(Nt.f&262162)!==0&&!((r=Qo)!=null&&r[1].includes(t)&&Qo[0]===Nt)&&Qg();let o=i?ri(e):e;return ke&&pu(o,t.label),El(t,o)}function El(t,e){if(!t.equals(e)){var i=t.v;if(As?Il.set(t,e):Il.set(t,i),t.v=e,ke&&fs&&(t.updated=ks("UpdatedAt"),bt!==null&&(t.set_during_effect=!0)),(t.f&2)!==0&&((t.f&2048)!==0&&cf(t),In(t,(t.f&256)===0?1024:4096)),t.wv=wd(),jg(t,2048),ms()&&bt!==null&&(bt.f&1024)!==0&&(bt.f&96)===0&&(vr===null?Xg([t]):vr.push(t)),ke&&Ia.size>0){let o=Array.from(Ia);for(let r of o)(r.f&1024)!==0&&In(r,4096),Pa(r)&&Pl(r);Ia.clear()}}return e}function jg(t,e){var i=t.reactions;if(i!==null)for(var o=ms(),r=i.length,a=0;a<r;a++){var l=i[a],d=l.f;if((d&2048)===0&&!(!o&&l===bt)){if(ke&&(d&262144)!==0){Ia.add(l);continue}In(l,e),(d&1280)!==0&&((d&2)!==0?jg(l,4096):Cd(l))}}}var kl="font-weight: bold",Al="font-weight: normal";function Zg(t,e,i){ke?console.warn(`%c[svelte] hydration_attribute_changed
|
|
28
28
|
%cThe \`${t}\` attribute on \`${e}\` changed its value between server and client renders. The client value, \`${i}\`, will be ignored in favour of the server value
|
|
29
|
-
https://svelte.dev/e/hydration_attribute_changed`,kl,Al):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function
|
|
29
|
+
https://svelte.dev/e/hydration_attribute_changed`,kl,Al):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function Jg(t){ke?console.warn(`%c[svelte] hydration_html_changed
|
|
30
30
|
%c${t?`The value of an \`{@html ...}\` block ${t} changed between server and client renders. The client value will be ignored in favour of the server value`:"The value of an `{@html ...}` block changed between server and client renders. The client value will be ignored in favour of the server value"}
|
|
31
|
-
https://svelte.dev/e/hydration_html_changed`,kl,Al):console.warn("https://svelte.dev/e/hydration_html_changed")}function
|
|
31
|
+
https://svelte.dev/e/hydration_html_changed`,kl,Al):console.warn("https://svelte.dev/e/hydration_html_changed")}function ia(t){ke?console.warn(`%c[svelte] hydration_mismatch
|
|
32
32
|
%c${t?`Hydration failed because the initial UI does not match what was rendered on the server. The error occurred near ${t}`:"Hydration failed because the initial UI does not match what was rendered on the server"}
|
|
33
|
-
https://svelte.dev/e/hydration_mismatch`,kl,Al):console.warn("https://svelte.dev/e/hydration_mismatch")}function
|
|
33
|
+
https://svelte.dev/e/hydration_mismatch`,kl,Al):console.warn("https://svelte.dev/e/hydration_mismatch")}function eh(){ke?console.warn(`%c[svelte] lifecycle_double_unmount
|
|
34
34
|
%cTried to unmount a component that was not mounted
|
|
35
|
-
https://svelte.dev/e/lifecycle_double_unmount`,kl,Al):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function
|
|
35
|
+
https://svelte.dev/e/lifecycle_double_unmount`,kl,Al):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function th(){ke?console.warn("%c[svelte] select_multiple_invalid_value\n%cThe `value` property of a `<select multiple>` element should be an array, but it received a non-array value. The selection will be kept as is.\nhttps://svelte.dev/e/select_multiple_invalid_value",kl,Al):console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function gu(t){ke?console.warn(`%c[svelte] state_proxy_equality_mismatch
|
|
36
36
|
%cReactive \`$state(...)\` proxies and the values they proxy have different identities. Because of this, comparisons with \`${t}\` will produce unexpected results
|
|
37
|
-
https://svelte.dev/e/state_proxy_equality_mismatch`,kl,Al):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var
|
|
37
|
+
https://svelte.dev/e/state_proxy_equality_mismatch`,kl,Al):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var tt=!1;function fo(t){tt=t}var $t;function yi(t){if(t===null)throw ia(),us;return $t=t}function Qi(){return yi(Go($t))}function S(t){if(tt){if(Go($t)!==null)throw ia(),us;$t=t}}function si(t=1){if(tt){for(var e=t,i=$t;e--;)i=Go(i);$t=i}}function ka(){for(var t=0,e=$t;;){if(e.nodeType===pr){var i=e.data;if(i===Sa){if(t===0)return e;t-=1}else(i===Zs||i===Js)&&(t+=1)}var o=Go(e);e.remove(),e=o}}function hu(t){if(!t||t.nodeType!==pr)throw ia(),us;return t.data}function ih(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:r}=t;t.indexOf=function(a,l){let d=i.call(this,a,l);if(d===-1){for(let s=l!=null?l:0;s<this.length;s+=1)if(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 Aa,oh,Td,nh,rh;function _u(){if(Aa===void 0){Aa=window,oh=document,Td=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;nh=Wo(e,"firstChild").get,rh=Wo(e,"nextSibling").get,ef(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),ef(i)&&(i.__t=void 0),ke&&(t.__svelte_meta=null,ih())}}function En(t=""){return document.createTextNode(t)}function Si(t){return nh.call(t)}function Go(t){return rh.call(t)}function C(t,e){if(!tt)return Si(t);var i=Si($t);if(i===null)i=$t.appendChild(En());else if(e&&i.nodeType!==$l){var o=En();return i==null||i.before(o),yi(o),o}return yi(i),i}function ue(t,e){var r,a;if(!tt){var i=Si(t);return i.nodeType===8&&i.data===""?Go(i):i}if(e&&((r=$t)==null?void 0:r.nodeType)!==$l){var o=En();return(a=$t)==null||a.before(o),yi(o),o}return $t}function k(t,e=1,i=!1){let o=tt?$t:t;for(var r;e--;)r=o,o=Go(o);if(!tt)return o;if(i&&(o==null?void 0:o.nodeType)!==$l){var a=En();return o===null?r==null||r.after(a):o.before(a),yi(a),a}return yi(o),o}function Id(t){t.textContent=""}function mf(t){bt===null&&Nt===null&&Og(t),Nt!==null&&(Nt.f&256)!==0&&bt===null&&Dg(),As&&Ng(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 La(t,e,i,o=!0){var s;var r=bt;if(ke)for(;r!==null&&(r.f&262144)!==0;)r=r.parent;var a={ctx:Ft,deps:null,nodes_start:null,nodes_end:null,f:t|2048,first:null,fn:e,last:null,next:null,parent:r,prev:null,teardown:null,transitions:null,wv:0};if(ke&&(a.component_function=fr),i)try{Pl(a),a.f|=32768}catch(u){throw qi(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),Nt!==null&&(Nt.f&2)!==0)){var d=Nt;((s=d.effects)!=null?s:d.effects=[]).push(a)}return a}function ko(t){let e=La(8,null,!1);return In(e,1024),e.teardown=t,e}function De(t){var r;mf("$effect");var e=bt!==null&&(bt.f&32)!==0&&Ft!==null&&!Ft.m;if(ke&&uo(t,"name",{value:"$effect"}),e){var i=Ft;((r=i.e)!=null?r:i.e=[]).push({fn:t,effect:bt,reaction:Nt})}else{var o=Ao(t);return o}}function kd(t){return mf("$effect.pre"),ke&&uo(t,"name",{value:"$effect.pre"}),Yo(t)}function yu(t){let e=La(64,t,!0);return()=>{qi(e)}}function ah(t){let e=La(64,t,!0);return(i={})=>new Promise(o=>{i.outro?Xn(e,()=>{qi(e),o(void 0)}):(qi(e),o(void 0))})}function Ao(t){return La(4,t,!1)}function Yo(t){return La(8,t,!0)}function O(t,e=[],i=Yr){if(ke)return Yo(()=>{var r=bt,a=()=>t(...l.map(n));uo(r.fn,"name",{value:"{expression}"}),uo(a,"name",{value:"{expression}"});let l=e.map(i);Gi(a)});let o=e.map(i);return Gi(()=>t(...o.map(n)))}function Gi(t,e=0){return La(24|e,t,!0)}function Ni(t,e=!0){return La(40,t,!0,e)}function vf(t){var e=t.teardown;if(e!==null){let i=As,o=Nt;pf(!0),Ki(null);try{e.call(null)}finally{pf(i),Ki(o)}}}function gf(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:qi(i,e),i=o}}function lh(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&qi(e),e=i}}function qi(t,e=!0){var i=!1;(e||(t.f&524288)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(hf(t.nodes_start,t.nodes_end),i=!0),gf(t,e&&!i),Ad(t,0),In(t,16384);var o=t.transitions;if(o!==null)for(let a of o)a.stop();vf(t);var r=t.parent;r!==null&&r.first!==null&&_f(t),ke&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function hf(t,e){for(;t!==null;){var i=t===e?null:Go(t);t.remove(),t=i}}function _f(t){var e=t.parent,i=t.prev,o=t.next;i!==null&&(i.next=o),o!==null&&(o.prev=i),e!==null&&(e.first===t&&(e.first=o),e.last===t&&(e.last=i))}function Xn(t,e){var i=[];xu(t,i,!0),bf(i,()=>{qi(t),e&&e()})}function bf(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 Vs(t){dh(t,!0)}function dh(t,e){if((t.f&8192)!==0){t.f^=8192;for(var i=t.first;i!==null;){var o=i.next,r=(i.f&65536)!==0||(i.f&32)!==0;dh(i,r?e:!1),i=o}if(t.transitions!==null)for(let a of t.transitions)(a.is_global||e)&&a.in()}}var Ld=[],$f=[];function ch(){var t=Ld;Ld=[],ta(t)}function U$(){var t=$f;$f=[],ta(t)}function Pn(t){Ld.length===0&&queueMicrotask(ch),Ld.push(t)}function uh(){Ld.length>0&&ch(),$f.length>0&&U$()}function fh(t){var e=bt;if(ke&&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 ph=new WeakSet;function z$(t,e){var l,d;if(ph.has(t))return;ph.add(t);let i=Wo(t,"message");if(!(i&&!i.configurable)){for(var o=Td?" ":" ",r=`
|
|
38
38
|
${o}in ${((l=e.fn)==null?void 0:l.name)||"<unknown>"}`,a=e.ctx;a!==null;)r+=`
|
|
39
39
|
${o}in ${(d=a.function)==null?void 0:d[Qn].split("/").pop()}`,a=a.p;uo(t,"message",{value:t.message+`
|
|
40
40
|
${r}
|
|
41
41
|
`}),t.stack&&uo(t,"stack",{value:t.stack.split(`
|
|
42
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=[],Ot=null,pr=!1;function qi(t){Ot=t}var $t=null;function po(t){$t=t}var Yo=null;function vu(t){Ot!==null&&Ot.f&2097152&&(Yo===null?Yo=[Ot,[t]]:Yo[1].push(t))}var An=null,fr=0,ur=null;function Yg(t){ur=t}var mh=1,Su=0,Ps=!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&&!Ps,s=i.length;if(l||d){var u=t,m=u.parent;for(r=0;r<s;r++)a=i[r],(l||!((p=a==null?void 0:a.reactions)!=null&&p.includes(u)))&&((v=a.reactions)!=null?v:a.reactions=[]).push(u);l&&(u.f^=512),d&&m!==null&&(m.f&256)===0&&(u.f^=256)}for(r=0;r<s;r++)if(a=i[r],Ia(a)&&df(a),a.wv>t.wv)return!0}(!o||$t!==null&&!Ps)&&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];Yo!=null&&Yo[1].includes(t)&&Yo[0]===Ot||((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=Ot,a=Ps,l=Yo,d=Ut,s=pr,u=t.f;An=null,fr=0,ur=null,Ps=(u&256)!==0&&(pr||!La||Ot===null),Ot=(u&96)===0?t:null,Yo=null,$d(t.ctx),pr=!1,Su++,t.f|=2097152;try{var m=(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(!Ps||(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))),m}catch($){uh($)}finally{An=e,fr=i,ur=o,Ot=r,Ps=a,Yo=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 Pl(t){var e=t.f;if((e&16384)===0){En(t,1024);var i=$t,o=La;if($t=t,La=!0,ke){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,ke&&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);ke&&Rd.push(t)}finally{La=o,$t=i,ke&&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(ke&&uo(t,"stack",{value:""}),Ll!==null)if(ke)try{Md(t,Ll)}catch(e){throw ph(),e}else Md(t,Ll);else throw ke&&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,ke&&(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)&&(Pl(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)&&Pl(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,ke&&(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),Ot!==null&&!pr){if(!(Yo!=null&&Yo[1].includes(t))||Yo[0]!==Ot){var o=Ot.deps;t.rv<Su&&(t.rv=Su,An===null&&o!==null&&o[fr]===t?fr++:An===null?An=[t]:(!Ps||!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)),ke&&ps&&!pr&&bd!==null&&Ot!==null&&bd.reaction===Ot)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,kn(()=>{document.activeElement===i&&t.focus()})}}function Nd(t){var e=Ot,i=$t;qi(null),po(null);try{return t()}finally{qi(e),po(i)}}var xf=new Set,Eu=new Set;function Ma(t){if(!et)return;t.removeAttribute("onload"),t.removeAttribute("onerror");let e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function 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"?kn(()=>{e.addEventListener(t,r,o)}):e.addEventListener(t,r,o),r}function ct(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 Ge(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 m=Ot,p=$t;qi(null),po(null);try{for(var v,_=[];a!==null;){var y=a.assignedSlot||a.parentNode||a.host||null;try{var $=a["__"+o];if($!=null&&(!a.disabled||t.target===a))if(ar($)){var[x,...I]=$;x.apply(a,[t,...I])}else $.call(a,t)}catch(R){v?_.push(R):v=R}if(t.cancelBubble||y===e||y===null)break;a=y}if(v){for(let R of _)queueMicrotask(()=>{throw R});throw v}}finally{t.__root=e,delete t.currentTarget,qi(m),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(et)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(et)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 m=Si(u),p=u.lastChild;Mo(m,p)}else Mo(u,u);return u}}function Ie(t,e){return J$(t,e,"svg")}function vs(t=""){if(!et){var e=Pn(t+"");return Mo(e,e),e}var i=yt;return i.nodeType!==$l&&(i.before(i=Pn()),xi(i)),Mo(i,i),i}function Le(){if(et)return Mo(yt,null),yt;var t=document.createDocumentFragment(),e=document.createComment(""),i=Pn();return t.append(e,i),Mo(e,i),t}function b(t,e){if(et){$t.nodes_end=yt,Gi();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 gP=[...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"],hP=[...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 Pu(t){return t==null?void 0:t.replace(/\//g,"/")}var Dd=!0;function ku(t){Dd=t}function ve(t,e){var o;var i=e==null?"":typeof e=="object"?e+"":e;i!==((o=t.__t)!=null?o:t.__t=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function 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=et,r=yt;try{for(var a=Si(i);a&&(a.nodeType!==lr||a.data!==js);)a=jo(a);if(!a)throw cs;fo(!0),xi(a),Gi();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),xi(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 $=Nl.get(_);$===void 0?(document.addEventListener(_,Vl,{passive:y}),Nl.set(_,1)):Nl.set(_,$+1)}}};s(_d(xf)),Eu.add(s);var u=void 0,m=rh(()=>{var p=i!=null?i:e.appendChild(Pn());return Mi(()=>{if(a){B({});var v=Ut;v.c=a}r&&(o.$$events=r),et&&Mo(p,null),Dd=l,u=t(p,o)||{},Dd=!0,et&&($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,m),u}var Sf=new WeakMap;function Va(t,e){let i=Sf.get(t);return i?(Sf.delete(t),i(e)):(ke&&Zg(),Promise.resolve())}function oi(t,e,...i){var o=t,r=gt,a;Yi(()=>{r!==(r=e())&&(a&&(Qi(a),a=null),ke&&r==null&&Bg(),a=Mi(()=>r(o,...i)))},65536),et&&(o=yt)}if(ke){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;Ug(e)},set:o=>{i=o}})}};c1=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var c1;function Rt(t){Ut===null&&wl("onMount"),us&&Ut.l!==null?d1(Ut).m.push(t):De(()=>{let e=Et(t);if(typeof e=="function")return e})}function cn(t){Ut===null&&wl("onDestroy"),Rt(()=>()=>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]){et&&i===0&&Gi();var r=t,a=null,l=null,d=eo,s=i>0?65536:0,u=!1;let m=(v,_=!0)=>{u=!0,p(_,v)},p=(v,_)=>{if(d===(d=v))return;let y=!1;if(et&&o!==-1){if(i===0){let x=hu(r);x===js?o=0:x===Xs?o=1/0:(o=parseInt(x.substring(1)),o!==o&&(o=d?1/0:-1))}let $=o>i;!!d===$&&(r=Ea(),xi(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)};Yi(()=>{u=!1,e(m),u||p(null,null)},s),et&&(r=yt)}function Ls(t,e,i){et&&Gi();var o=t,r=eo,a,l=fs()?Lg:yl;Yi(()=>{l(r,r=e())&&(a&&Xn(a),a=Mi(()=>i(o)))}),et&&(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 m=e[u];d||(o.delete(m.k),ta(t,m.prev,m.next)),Qi(m.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=et?xi(Si(u)):u.appendChild(Pn())}et&&Gi();var m=null,p=!1,v=In(()=>{var _=i();return ar(_)?_:_==null?[]:_d(_)});Yi(()=>{var _=n(v),y=_.length;if(p&&y===0)return;p=y===0;let $=!1;if(et){var x=hu(l)===Xs;x!==(y===0)&&(l=Ea(),xi(l),fo(!1),$=!0)}if(et){for(var I=null,T,R=0;R<y;R++){if(yt.nodeType===lr&&yt.data===xa){l=yt,$=!0,fo(!1);break}var A=_[R],P=o(A,R);T=Ph(yt,d,I,null,A,P,R,r,e,i),d.items.set(P,T),I=T}y>0&&xi(Ea())}et||m1(_,d,l,r,e,o,i),a!==null&&(y===0?m?As(m):m=Mi(()=>a(l)):m!==null&&Xn(m,()=>{m=null})),$&&fo(!0),n(v)}),et&&(l=yt)}function m1(t,e,i,o,r,a,l){var J,we,me,ee;var d=(r&8)!==0,s=(r&3)!==0,u=t.length,m=e.items,p=e.first,v=p,_,y=null,$,x=[],I=[],T,R,A,P;if(d)for(P=0;P<u;P+=1)T=t[P],R=a(T,P),A=m.get(R),A!==void 0&&((J=A.a)==null||J.measure(),($!=null?$:$=new Set).add(A));for(P=0;P<u;P+=1){if(T=t[P],R=a(T,P),A=m.get(R),A===void 0){var E=v?v.e.nodes_start:i;y=Ph(E,e,y,y===null?e.first:y.next,T,R,P,o,r,l),m.set(R,y),x=[],I=[],v=y.next;continue}if(s&&v1(A,T,P,r),(A.e.f&8192)!==0&&(As(A.e),d&&((we=A.a)==null||we.unfix(),($!=null?$:$=new Set).delete(A))),A!==v){if(_!==void 0&&_.has(A)){if(x.length<I.length){var z=I[0],F;y=z.prev;var U=x[0],X=x[x.length-1];for(F=0;F<x.length;F+=1)Ih(x[F],z,i);for(F=0;F<I.length;F+=1)_.delete(I[F]);ta(e,U.prev,X.next),ta(e,y,U),ta(e,X,z),v=z,y=X,P-=1,x=[],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(x=[],I=[];v!==null&&v.k!==R;)(v.e.f&8192)===0&&(_!=null?_:_=new Set).add(v),I.push(v),v=v.next;if(v===null)continue;A=v}x.push(A),y=A,v=A.next}if(v!==null||_!==void 0){for(var ae=_===void 0?[]:_d(_);v!==null;)(v.e.f&8192)===0&&ae.push(v),v=v.next;var Z=ae.length;if(Z>0){var re=(r&4)!==0&&u===0?i:null;if(d){for(P=0;P<Z;P+=1)(me=ae[P].a)==null||me.measure();for(P=0;P<Z;P+=1)(ee=ae[P].a)==null||ee.fix()}f1(e,ae,re,m)}}d&&kn(()=>{var _e;if($!==void 0)for(A of $)(_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 Ph(t,e,i,o,r,a,l,d,s,u){var m=ia,p=(s&1)!==0,v=(s&16)===0,_=p?v?ms(r,!1,!1):kr(r):r,y=(s&2)===0?l:kr(l);ke&&p&&(_.trace=()=>{var x=typeof y=="number"?l:y.v;u()[x]});var $={i:y,v:_,k:a,a:null,e:null,prev:i,next:o};ia=$;try{return $.e=Mi(()=>d(t,_,y,u),et),$.e.prev=i&&i.e,$.e.next=o&&o.e,i===null?e.first=$:(i.next=$,i.e.next=$.e),o!==null&&(o.prev=$,o.e.prev=$.e),$}finally{ia=m}}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=jo(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(Pu(o))}function Bd(t,e,i=!1,o=!1,r=!1){var a=t,l="";O(()=>{var _;var d=$t;if(l===(l=(_=e())!=null?_:"")){et&&Gi();return}if(d.nodes_start!==null&&(vf(d.nodes_start,d.nodes_end),d.nodes_start=d.nodes_end=null),l!==""){if(et){for(var s=yt.data,u=Gi(),m=u;u!==null&&(u.nodeType!==lr||u.data!=="");)m=u,u=jo(u);if(u===null)throw ea(),cs;ke&&!r&&g1(u.parentNode,s,l),Mo(yt,m),a=xi(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){et&&Gi();var o=t,r,a;Yi(()=>{r!==(r=e())&&(a&&(Xn(a),a=null),r&&(a=Mi(()=>i(o,r))))},65536),et&&(o=yt)}function Ra(t,e,i,o,r,a){var y;let l=et;et&&Gi();var d=ke&&a&&((y=Ut)==null?void 0:y.function[Qn]),s,u,m=null;et&&yt.nodeType===cu&&(m=yt,Gi());var p=et?yt:t,v,_=ia;Yi(()=>{let $=e()||null;var x=r?r():i||$==="svg"?su:null;if($!==s){var I=ia;Ef(_),v&&($===null?Xn(v,()=>{v=null,u=null}):$===u?As(v):(Qi(v),ku(!1))),$&&$!==u&&(v=Mi(()=>{if(m=et?m:x?document.createElementNS(x,$):document.createElement($),ke&&a&&(m.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),Mo(m,m),o){et&&wh($)&&m.append(document.createComment(""));var T=et?Si(m):m.appendChild(Pn());et&&(T===null?fo(!1):xi(T)),o(m,T)}$t.nodes_end=m,p.before(m)})),s=$,s&&(u=s),ku(!0),Ef(I)}},65536),l&&(fo(!0),xi(p))}var kf;function kh(t){return kf=t.target,new Pf(t)}var Ms,Ar,Pf=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 m;return N((m=i.get(s))!=null?m: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 Q(t,e){kn(()=>{var r,a,l;var i=t.getRootNode(),o=i.host?i:(l=(r=i.head)!=null?r:i.ownerDocument.head)!=null?l:(a=kf)==null?void 0:a.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),ke&&Th(e.hash,d)}})}function Vs(t,e){var i=void 0,o;Yi(()=>{i!==(i=e())&&(o&&(Qi(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,m=-1;let $=t.length;for(var p=0;p<$;p++){var v=t[p];if(d?v==="/"&&t[p-1]==="*"&&(d=!1):a?a===v&&(a=!1):v==="/"&&t[p+1]==="*"?d=!0:v==='"'||v==="'"?a=v:v==="("?l++:v===")"&&l--,!d&&a===!1&&l===0){if(v===":"&&m===-1)m=p;else if(v===";"||p===$-1){if(m!==-1){var _=Af(t.substring(u,m).trim());if(!s.includes(_)){v!==";"&&p++;var y=t.substring(u,p).trim();i+=" "+y+";"}}u=p+1,m=-1}}}}return o&&(i+=Vh(o)),r&&(i+=Vh(r,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function oe(t,e,i,o,r,a){var l=t.__className;if(et||l!==i||l===void 0){var d=Rh(i,o,a);(!et||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(a&&r!==a)for(var s in a){var u=!!a[s];(r==null||u!==!!r[s])&&t.classList.toggle(s,u)}return a}function 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(et||r!==e){var a=Nh(e,o);(!et||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 Ve(t,e,i,o){var r=Wh(t);if(et&&(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=et&&l;s&&fo(!1);var u=e||{},m=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 P in i){let E=i[P];if(m&&P==="value"&&E==null){t.value=t.__value="",u[P]=E;continue}if(P==="class"){var _=t.namespaceURI==="http://www.w3.org/1999/xhtml";oe(t,_,E,o,e==null?void 0:e[Dl],i[Dl]),u[P]=E,u[Dl]=i[Dl];continue}if(P==="style"){Ke(t,E,e==null?void 0:e[Ol],i[Ol]),u[P]=E,u[Ol]=i[Ol];continue}var y=u[P];if(!(E===y&&!(E===void 0&&t.hasAttribute(P)))){u[P]=E;var $=P[0]+P[1];if($!=="$$")if($==="on"){let z={},F="$$"+P,U=P.slice(2);var x=$h(U);if(bh(U)&&(U=U.slice(0,-7),z.capture=!0),!x&&y){if(E!=null)continue;t.removeEventListener(U,u[F],z),u[F]=null}if(E!=null)if(x)t[`__${U}`]=E,Ge([U]);else{let X=function(ae){u[P].call(this,ae)};var R=X;u[F]=wf(U,t,X,z)}else x&&(t[`__${U}`]=void 0)}else if(P==="style")Ve(t,P,E);else if(P==="autofocus")yf(t,!!E);else if(!l&&(P==="__value"||P==="value"&&E!=null))t.value=t.__value=E;else if(P==="selected"&&m)Uh(t,E);else{var I=P;d||(I=yh(I));var T=I==="defaultValue"||I==="defaultChecked";if(E==null&&!l&&!T)if(a[P]=null,I==="value"||I==="checked"){let z=t,F=e===void 0;if(I==="value"){let U=z.defaultValue;z.removeAttribute(I),z.defaultValue=U,z.value=z.__value=F?U:null}else{let U=z.defaultChecked;z.removeAttribute(I),z.defaultChecked=U,z.checked=F?U:!1}}else t.removeAttribute(P);else T||v.includes(I)&&(l||typeof E!="string")?t[I]=E:typeof E!="function"&&Ve(t,I,E,r)}}}return s&&fo(!0),u}function to(t,e,i=[],o,r=!1,a=jr){let l=i.map(a);var d=void 0,s={},u=t.nodeName==="SELECT",m=!1;if(Yi(()=>{var v=e(...l.map(n)),_=zh(t,d,v,o,r);m&&u&&"value"in v&&Fd(t,v.value,!1);for(let $ of Object.getOwnPropertySymbols(s))v[$]||Qi(s[$]);for(let $ of Object.getOwnPropertySymbols(v)){var y=v[$];$.description===Yp&&(!d||y!==d[$])&&(s[$]&&Qi(s[$]),s[$]=Mi(()=>Vs(t,()=>y))),_[$]=y}d=_}),u){var p=t;Lo(()=>{Fd(p,d.value),Mf(p)})}m=!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;ke&&(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:gt)(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 k1(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=k1(r.trim());e[l]=a.trim()}return e}var A1=t=>t;function ts(t,e,i,o){var R;var r=(t&1)!==0,a=(t&2)!==0,l=r&&a,d=(t&4)!==0,s=l?"both":r?"in":"out",u,m=e.inert,p=e.style.overflow,v,_;function y(){var E;var A=Ot,P=$t;qi(null),po(null);try{return u!=null?u:u=i()(e,(E=o==null?void 0:o())!=null?E:{},{direction:s})}finally{qi(A),po(P)}}var $={is_global:d,in(){var A;if(e.inert=m,!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()}},x=$t;if(((R=x.transitions)!=null?R:x.transitions=[]).push($),r&&Dd){var I=d;if(!I){for(var T=x.parent;T&&(T.f&65536)!==0;)for(;(T=T.parent)&&(T.f&16)===0;);I=!T||(T.f&32768)!==0}I&&Lo(()=>{Et(()=>$.in())})}}function Rf(t,e,i,o,r){var a=o===1;if(Zs(e)){var l,d=!1;return kn(()=>{if(!d){var x=e({direction:a?"in":"out"});l=Rf(t,x,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:gt,deactivate:gt,reset:gt,t:()=>o};let{delay:s=0,css:u,tick:m,easing:p=A1}=e;var v=[];if(a&&i===void 0&&(m&&m(0,1),u)){var _=Gh(u(0,1));v.push(_,_)}var y=()=>1-o,$=t.animate(v,{duration:s,fill:"forwards"});return $.onfinish=()=>{var U;$.cancel();var x=(U=i==null?void 0:i.t())!=null?U:1-o;i==null||i.abort();var I=o-x,T=e.duration*Math.abs(I),R=[];if(T>0){var A=!1;if(u)for(var P=Math.ceil(T/16.666666666666668),E=0;E<=P;E+=1){var z=x+I*p(E/P),F=Gh(u(z,1-z));R.push(F),A||(A=F.overflow==="hidden")}A&&(t.style.overflow="hidden"),y=()=>{var X=$.currentTime;return x+I*p(X/T)},m&&Qh(()=>{if($.playState!=="running")return!1;var X=y();return m(X,1-X),!0})}$=t.animate(R,{duration:T,fill:"forwards"}),$.onfinish=()=>{y=()=>o,m==null||m(o,1-o),r()}},{abort:()=>{$&&($.cancel(),$.effect=null,$.onfinish=gt)},deactivate:()=>{r=gt},reset:()=>{o===0&&(m==null||m(1,0))},t:()=>y()}}function Nf(t,e,i){var o=qo(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 je(t={},e,i,o){return Lo(()=>{var r,a;return Xo(()=>{r=a,a=(o==null?void 0:o())||[],Et(()=>{t!==i(...a)&&(e(t,...a),r&&jh(i(...r),t)&&e(null,...r))})}),()=>{kn(()=>{a&&jh(i(...a),t)&&e(null,...a)})}}),t}function ho(t=!1){let e=Ut,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&&kd(()=>{Xh(e,o),Js(i.b)}),De(()=>{let r=Et(()=>i.m.map(kg));return()=>{for(let a of r)typeof a=="function"&&a()}}),i.a.length&&De(()=>{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),gt;let o=Et(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Hl=[];function Lr(t,e){return{subscribe:de(t,e).subscribe}}function de(t,e=gt){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=gt){let u=[d,s];return o.add(u),o.size===1&&(i=e(r,a)||gt),d(t),()=>{o.delete(u),o.size===0&&i&&(i(),i=null)}}return{set:r,update:a,subscribe:l}}function fi(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=[],m=0,p=gt,v=()=>{if(m)return;p();let y=e(o?u[0]:u,l,d);a?l(y):p=typeof y=="function"?y:gt},_=r.map((y,$)=>zd(y,x=>{u[$]=x,m&=~(1<<$),s&&v()},()=>{m|=1<<$}));return s=!0,v(),function(){Js(_),p(),s=!1}})}function ye(t){let e;return zd(t,i=>e=i)(),e}var Ru=!1,Of=Symbol();function w(t,e,i){var a;let o=(a=i[e])!=null?a:i[e]={store:null,source:ms(void 0),unsubscribe:gt};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=gt;else{var r=!0;o.unsubscribe=zd(t,l=>{r?o.source.v=l:N(o.source,l)}),r=!1}return t&&Of in i?ye(t):n(o.source)}function Ne(){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 ke&&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(ke?{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=qo(r,e);if(a&&a.set)return a.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Zs(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let r=qo(o,e);return r&&!r.configurable&&(r.configurable=!0),r}}},has(t,e){if(e===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 z,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 m=Qo in t||bl in t,p=l&&((F=(z=qo(t,e))==null?void 0:z.set)!=null?F:m&&e in t&&(U=>t[e]=U))||void 0,v=o,_=!0,y=!1,$=()=>(y=!0,_&&(_=!1,d?v=Et(o):v=o),v);u===void 0&&o!==void 0&&(p&&a&&Hg(e),u=$(),p&&p(u));var x;if(a)x=()=>{var U=t[e];return U===void 0?$():(_=!0,y=!1,U)};else{var I=(r?jr:In)(()=>t[e]);I.f|=131072,x=()=>{var U=n(I);return U!==void 0&&(v=void 0),U===void 0?v:U}}if((i&4)===0&&a)return x;if(p){var T=t.$$legacy;return function(U,X){return arguments.length>0?((!a||!X||T||s)&&p(X?x():U),U):x()}}var R=!1,A=!1,P=ms(u),E=jr(()=>{var U=x(),X=n(P);return R?(R=!1,A=!0,X):(A=!1,P.v=U)});return l&&n(E),r||(E.equals=xl),function(U,X){if(Cu!==null&&(R=A,x(),n(P)),arguments.length>0){let ae=X?n(E):a&&l?li(U):U;if(!E.equals(ae)){if(R=!0,N(P,ae),y&&v!==void 0&&(v=ae),Zh(E))return U;Et(()=>n(E))}return U}return Zh(E)?E.v:n(E)}}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),b(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=kh({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=yu(()=>{Xo(()=>{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),Nt=()=>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.82-dev.6dd94264.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})},be=()=>{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},ni=(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,U,X,ae,Z,re,J,we,me;let a=t.info,{width:l,height:d}=ye(i.ui.playerSize),s=(U=(F=a.throughputEstimation$.getValue())==null?void 0:F.toFixed(0))!=null?U:0,u=(ae=(X=a.rttEstimation$.getValue())==null?void 0:X.toFixed(0))!=null?ae:0,m=a.isAutoQualityEnabled$.getValue()?"auto":"manual",p=`${Oa} (core: ${u_.VERSION}, stat: ${p_.VERSION}, shared: ${Gd.VERSION})`,v=ye(i.state.errorLog$),_=v.length?`
|
|
45
|
-
`+v.map((ee,_e)=>{var
|
|
43
|
+
`)})}}var Ma=!1,Ll=null,Va=!1,As=!1;function pf(t){As=t}var Vd=[],Rd=[],Nt=null,gr=!1;function Ki(t){Nt=t}var bt=null;function po(t){bt=t}var Qo=null;function vu(t){Nt!==null&&Nt.f&2097152&&(Qo===null?Qo=[Nt,[t]]:Qo[1].push(t))}var kn=null,hr=0,vr=null;function Xg(t){vr=t}var gh=1,Su=0,Ls=!1,Cu=null;function wd(){return++gh}function Pa(t){var p,v;var e=t.f;if((e&2048)!==0)return!0;if((e&4096)!==0){var i=t.deps,o=(e&256)!==0;if(i!==null){var r,a,l=(e&512)!==0,d=o&&bt!==null&&!Ls,s=i.length;if(l||d){var u=t,m=u.parent;for(r=0;r<s;r++)a=i[r],(l||!((p=a==null?void 0:a.reactions)!=null&&p.includes(u)))&&((v=a.reactions)!=null?v:a.reactions=[]).push(u);l&&(u.f^=512),d&&m!==null&&(m.f&256)===0&&(u.f^=256)}for(r=0;r<s;r++)if(a=i[r],Pa(a)&&uf(a),a.wv>t.wv)return!0}(!o||bt!==null&&!Ls)&&In(t,1024)}return!1}function hh(t,e,i=!0){var o=t.reactions;if(o!==null)for(var r=0;r<o.length;r++){var a=o[r];Qo!=null&&Qo[1].includes(t)&&Qo[0]===Nt||((a.f&2)!==0?hh(a,e,!1):e===a&&(i?In(a,2048):(a.f&1024)!==0&&In(a,4096),Cd(a)))}}function mu(t){var _,y;var e=kn,i=hr,o=vr,r=Nt,a=Ls,l=Qo,d=Ft,s=gr,u=t.f;kn=null,hr=0,vr=null,Ls=(u&256)!==0&&(gr||!Va||Nt===null),Nt=(u&96)===0?t:null,Qo=null,$d(t.ctx),gr=!1,Su++,t.f|=2097152;try{var m=(0,t.fn)(),p=t.deps;if(kn!==null){var v;if(Ad(t,hr),p!==null&&hr>0)for(p.length=hr+kn.length,v=0;v<kn.length;v++)p[hr+v]=kn[v];else t.deps=p=kn;if(!Ls||(u&2)!==0&&t.reactions!==null)for(v=hr;v<p.length;v++)((y=(_=p[v]).reactions)!=null?y:_.reactions=[]).push(t)}else p!==null&&hr<p.length&&(Ad(t,hr),p.length=hr);if(ms()&&vr!==null&&!gr&&p!==null&&(t.f&6146)===0)for(v=0;v<vr.length;v++)hh(vr[v],t);return r!==null&&r!==t&&(Su++,vr!==null&&(o===null?o=vr:o.push(...vr))),m}catch($){fh($)}finally{kn=e,hr=i,vr=o,Nt=r,Ls=a,Qo=l,$d(d),gr=s,t.f^=2097152}}function W$(t,e){let i=e.reactions;if(i!==null){var o=kg.call(i,t);if(o!==-1){var r=i.length-1;r===0?i=e.reactions=null:(i[o]=i[r],i.pop())}}i===null&&(e.f&2)!==0&&(kn===null||!kn.includes(e))&&(In(e,4096),(e.f&768)===0&&(e.f^=512),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 Pl(t){var e=t.f;if((e&16384)===0){In(t,1024);var i=bt,o=Va;if(bt=t,Va=!0,ke){var r=fr;yd(t.component_function)}try{(e&16)!==0?lh(t):gf(t),vf(t);var a=mu(t);if(t.teardown=typeof a=="function"?a:null,t.wv=gh,ke&&fs&&(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);ke&&Rd.push(t)}finally{Va=o,bt=i,ke&&yd(r)}}}function mh(){console.error("Last ten effects were: ",Rd.slice(-10).map(t=>t.fn)),Rd=[]}function K$(){try{Bg()}catch(t){if(ke&&uo(t,"stack",{value:""}),Ll!==null)if(ke)try{Md(t,Ll)}catch(e){throw mh(),e}else Md(t,Ll);else throw ke&&mh(),t}}function xf(){var t=Va;try{var e=0;for(Va=!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{Ma=!1,Va=t,Ll=null,ke&&(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&&Pa(o)&&(Pl(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?_f(o):o.fn=null))}}function Cd(t){Ma||(Ma=!0,queueMicrotask(xf));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:Pa(i)&&Pl(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&&(Ma=!0,xf(),Ma=!0,e=t());;){if(uh(),Vd.length===0)return Ma=!1,Ll=null,ke&&(Rd=[]),e;Ma=!0,xf()}}async function mo(){await Promise.resolve(),Ml()}function n(t){var e=t.f,i=(e&2)!==0;if(Cu!==null&&Cu.add(t),Nt!==null&&!gr){if(!(Qo!=null&&Qo[1].includes(t))||Qo[0]!==Nt){var o=Nt.deps;t.rv<Su&&(t.rv=Su,kn===null&&o!==null&&o[hr]===t?hr++:kn===null?kn=[t]:(!Ls||!kn.includes(t))&&kn.push(t))}}else if(i&&t.deps===null&&t.effects===null){var r=t,a=r.parent;a!==null&&(a.f&256)===0&&(r.f^=256)}if(i&&(r=t,Pa(r)&&uf(r)),ke&&fs&&!gr&&bd!==null&&Nt!==null&&bd.reaction===Nt)if(t.trace)t.trace();else{var l=ks("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 As&&Il.has(t)?Il.get(t):t.v}function It(t){var e=gr;try{return gr=!0,t()}finally{gr=e}}var G$=-7169;function In(t,e){t.f=t.f&G$|e}function Iu(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Ko in t)Tu(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Ko 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=Ca(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 wf(t,e){if(e){let i=document.body;t.autofocus=!0,Pn(()=>{document.activeElement===i&&t.focus()})}}function Nd(t){var e=Nt,i=bt;Ki(null),po(null);try{return t()}finally{Ki(e),po(i)}}var Sf=new Set,Eu=new Set;function Ra(t){if(!tt)return;t.removeAttribute("onload"),t.removeAttribute("onerror");let e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function Cf(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 pt(t,e,i,o,r){var a={capture:o,passive:r},l=Cf(t,e,i,a);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&ko(()=>{e.removeEventListener(t,l,a)})}function Ye(t){for(var e=0;e<t.length;e++)Sf.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 m=Nt,p=bt;Ki(null),po(null);try{for(var v,_=[];a!==null;){var y=a.assignedSlot||a.parentNode||a.host||null;try{var $=a["__"+o];if($!=null&&(!a.disabled||t.target===a))if(ur($)){var[x,...I]=$;x.apply(a,[t,...I])}else $.call(a,t)}catch(R){v?_.push(R):v=R}if(t.cancelBubble||y===e||y===null)break;a=y}if(v){for(let R of _)queueMicrotask(()=>{throw R});throw v}}finally{t.__root=e,delete t.currentTarget,Ki(m),po(p)}}}var j$;function _h(){j$=void 0}function Rl(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function Lo(t,e){var i=bt;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(tt)return Lo($t,null),$t;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;Lo(d,s)}else Lo(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(tt)return Lo($t,null),$t;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 m=Si(u),p=u.lastChild;Lo(m,p)}else Lo(u,u);return u}}function Ie(t,e){return J$(t,e,"svg")}function gs(t=""){if(!tt){var e=En(t+"");return Lo(e,e),e}var i=$t;return i.nodeType!==$l&&(i.before(i=En()),yi(i)),Lo(i,i),i}function Me(){if(tt)return Lo($t,null),$t;var t=document.createDocumentFragment(),e=document.createComment(""),i=En();return t.append(e,i),Lo(e,i),t}function b(t,e){if(tt){bt.nodes_end=$t,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 yh(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 xh(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 wh(t){var e;return t=t.toLowerCase(),(e=o1[t])!=null?e:t}var g3=[...i1,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var n1=["touchstart","touchmove"];function Sh(t){return n1.includes(t)}var r1=["$state","$state.raw","$derived","$derived.by"],h3=[...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 Ch(t){return s1.includes(t)}function Pu(t){return t==null?void 0:t.replace(/\//g,"/")}var Dd=!0;function ku(t){Dd=t}function ve(t,e){var o;var i=e==null?"":typeof e=="object"?e+"":e;i!==((o=t.__t)!=null?o:t.__t=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function Zr(t,e){return Th(t,e)}function If(t,e){var l;_u(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=tt,r=$t;try{for(var a=Si(i);a&&(a.nodeType!==pr||a.data!==Zs);)a=Go(a);if(!a)throw us;fo(!0),yi(a),Qi();let d=Th(t,{...e,anchor:a});if($t===null||$t.nodeType!==pr||$t.data!==Sa)throw ia(),us;return fo(!1),d}catch(d){if(d===us)return e.recover===!1&&Hg(),_u(),Id(i),fo(!1),Zr(t,e);throw d}finally{fo(o),yi(r),_h()}}var Nl=new Map;function Th(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=Sh(_);e.addEventListener(_,Vl,{passive:y});var $=Nl.get(_);$===void 0?(document.addEventListener(_,Vl,{passive:y}),Nl.set(_,1)):Nl.set(_,$+1)}}};s(_d(Sf)),Eu.add(s);var u=void 0,m=ah(()=>{var p=i!=null?i:e.appendChild(En());return Ni(()=>{if(a){B({});var v=Ft;v.c=a}r&&(o.$$events=r),tt&&Lo(p,null),Dd=l,u=t(p,o)||{},Dd=!0,tt&&(bt.nodes_end=$t),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 Tf.set(u,m),u}var Tf=new WeakMap;function Na(t,e){let i=Tf.get(t);return i?(Tf.delete(t),i(e)):(ke&&eh(),Promise.resolve())}function ti(t,e,...i){var o=t,r=ht,a;Gi(()=>{r!==(r=e())&&(a&&(qi(a),a=null),ke&&r==null&&Fg(),a=Ni(()=>r(o,...i)))},65536),tt&&(o=$t)}if(ke){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;Wg(e)},set:o=>{i=o}})}};c1=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var c1;function Mt(t){Ft===null&&wl("onMount"),ps&&Ft.l!==null?d1(Ft).m.push(t):De(()=>{let e=It(t);if(typeof e=="function")return e})}function pn(t){Ft===null&&wl("onDestroy"),Mt(()=>()=>It(t))}function d1(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}var Ih=new Map;function Eh(t,e){var i=Ih.get(t);i||(i=new Set,Ih.set(t,i)),i.add(e)}function V(t,e,[i,o]=[0,0]){tt&&i===0&&Qi();var r=t,a=null,l=null,d=eo,s=i>0?65536:0,u=!1;let m=(v,_=!0)=>{u=!0,p(_,v)},p=(v,_)=>{if(d===(d=v))return;let y=!1;if(tt&&o!==-1){if(i===0){let x=hu(r);x===Zs?o=0:x===Js?o=1/0:(o=parseInt(x.substring(1)),o!==o&&(o=d?1/0:-1))}let $=o>i;!!d===$&&(r=ka(),yi(r),fo(!1),y=!0,o=-1)}d?(a?Vs(a):_&&(a=Ni(()=>_(r))),l&&Xn(l,()=>{l=null})):(l?Vs(l):_&&(l=Ni(()=>_(r,[i+1,o]))),a&&Xn(a,()=>{a=null})),y&&fo(!0)};Gi(()=>{u=!1,e(m),u||p(null,null)},s),tt&&(r=$t)}function Rs(t,e,i){tt&&Qi();var o=t,r=eo,a,l=ms()?Vg:yl;Gi(()=>{l(r,r=e())&&(a&&Xn(a),a=Ni(()=>i(o)))}),tt&&(o=$t)}var na=null;function kf(t){na=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(),oa(t,e[0].prev,e[a-1].next)}bf(r,()=>{for(var u=0;u<a;u++){var m=e[u];d||(o.delete(m.k),oa(t,m.prev,m.next)),qi(m.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=tt?yi(Si(u)):u.appendChild(En())}tt&&Qi();var m=null,p=!1,v=Tn(()=>{var _=i();return ur(_)?_:_==null?[]:_d(_)});Gi(()=>{var _=n(v),y=_.length;if(p&&y===0)return;p=y===0;let $=!1;if(tt){var x=hu(l)===Js;x!==(y===0)&&(l=ka(),yi(l),fo(!1),$=!0)}if(tt){for(var I=null,T,R=0;R<y;R++){if($t.nodeType===pr&&$t.data===Sa){l=$t,$=!0,fo(!1);break}var A=_[R],P=o(A,R);T=Ah($t,d,I,null,A,P,R,r,e,i),d.items.set(P,T),I=T}y>0&&yi(ka())}tt||m1(_,d,l,r,e,o,i),a!==null&&(y===0?m?Vs(m):m=Ni(()=>a(l)):m!==null&&Xn(m,()=>{m=null})),$&&fo(!0),n(v)}),tt&&(l=$t)}function m1(t,e,i,o,r,a,l){var J,we,me,ee;var d=(r&8)!==0,s=(r&3)!==0,u=t.length,m=e.items,p=e.first,v=p,_,y=null,$,x=[],I=[],T,R,A,P;if(d)for(P=0;P<u;P+=1)T=t[P],R=a(T,P),A=m.get(R),A!==void 0&&((J=A.a)==null||J.measure(),($!=null?$:$=new Set).add(A));for(P=0;P<u;P+=1){if(T=t[P],R=a(T,P),A=m.get(R),A===void 0){var E=v?v.e.nodes_start:i;y=Ah(E,e,y,y===null?e.first:y.next,T,R,P,o,r,l),m.set(R,y),x=[],I=[],v=y.next;continue}if(s&&v1(A,T,P,r),(A.e.f&8192)!==0&&(Vs(A.e),d&&((we=A.a)==null||we.unfix(),($!=null?$:$=new Set).delete(A))),A!==v){if(_!==void 0&&_.has(A)){if(x.length<I.length){var z=I[0],F;y=z.prev;var U=x[0],X=x[x.length-1];for(F=0;F<x.length;F+=1)Ph(x[F],z,i);for(F=0;F<I.length;F+=1)_.delete(I[F]);oa(e,U.prev,X.next),oa(e,y,U),oa(e,X,z),v=z,y=X,P-=1,x=[],I=[]}else _.delete(A),Ph(A,v,i),oa(e,A.prev,A.next),oa(e,A,y===null?e.first:y.next),oa(e,y,A),y=A;continue}for(x=[],I=[];v!==null&&v.k!==R;)(v.e.f&8192)===0&&(_!=null?_:_=new Set).add(v),I.push(v),v=v.next;if(v===null)continue;A=v}x.push(A),y=A,v=A.next}if(v!==null||_!==void 0){for(var ae=_===void 0?[]:_d(_);v!==null;)(v.e.f&8192)===0&&ae.push(v),v=v.next;var Z=ae.length;if(Z>0){var re=(r&4)!==0&&u===0?i:null;if(d){for(P=0;P<Z;P+=1)(me=ae[P].a)==null||me.measure();for(P=0;P<Z;P+=1)(ee=ae[P].a)==null||ee.fix()}f1(e,ae,re,m)}}d&&Pn(()=>{var _e;if($!==void 0)for(A of $)(_e=A.a)==null||_e.apply()}),bt.first=e.first&&e.first.e,bt.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 Ah(t,e,i,o,r,a,l,d,s,u){var m=na,p=(s&1)!==0,v=(s&16)===0,_=p?v?vs(r,!1,!1):Lr(r):r,y=(s&2)===0?l:Lr(l);ke&&p&&(_.trace=()=>{var x=typeof y=="number"?l:y.v;u()[x]});var $={i:y,v:_,k:a,a:null,e:null,prev:i,next:o};na=$;try{return $.e=Ni(()=>d(t,_,y,u),tt),$.e.prev=i&&i.e,$.e.next=o&&o.e,i===null?e.first=$:(i.next=$,i.e.next=$.e),o!==null&&(o.prev=$,o.e.prev=$.e),$}finally{na=m}}function Ph(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,r=e?e.e.nodes_start:i,a=t.e.nodes_start;a!==o;){var l=Go(a);r.before(a),a=l}}function oa(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=fr)!=null&&l[Qn]&&(o=`in ${fr[Qn]}`),Jg(Pu(o))}function Bd(t,e,i=!1,o=!1,r=!1){var a=t,l="";O(()=>{var _;var d=bt;if(l===(l=(_=e())!=null?_:"")){tt&&Qi();return}if(d.nodes_start!==null&&(hf(d.nodes_start,d.nodes_end),d.nodes_start=d.nodes_end=null),l!==""){if(tt){for(var s=$t.data,u=Qi(),m=u;u!==null&&(u.nodeType!==pr||u.data!=="");)m=u,u=Go(u);if(u===null)throw ia(),us;ke&&!r&&g1(u.parentNode,s,l),Lo($t,m),a=yi(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)),Lo(Si(v),v.lastChild),i||o)for(;Si(v);)a.before(Si(v));else a.before(v)}})}function Di(t,e,i){tt&&Qi();var o=t,r,a;Gi(()=>{r!==(r=e())&&(a&&(Xn(a),a=null),r&&(a=Ni(()=>i(o,r))))},65536),tt&&(o=$t)}function Da(t,e,i,o,r,a){var y;let l=tt;tt&&Qi();var d=ke&&a&&((y=Ft)==null?void 0:y.function[Qn]),s,u,m=null;tt&&$t.nodeType===cu&&(m=$t,Qi());var p=tt?$t:t,v,_=na;Gi(()=>{let $=e()||null;var x=r?r():i||$==="svg"?su:null;if($!==s){var I=na;kf(_),v&&($===null?Xn(v,()=>{v=null,u=null}):$===u?Vs(v):(qi(v),ku(!1))),$&&$!==u&&(v=Ni(()=>{if(m=tt?m:x?document.createElementNS(x,$):document.createElement($),ke&&a&&(m.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),Lo(m,m),o){tt&&Ch($)&&m.append(document.createComment(""));var T=tt?Si(m):m.appendChild(En());tt&&(T===null?fo(!1):yi(T)),o(m,T)}bt.nodes_end=m,p.before(m)})),s=$,s&&(u=s),ku(!0),kf(I)}},65536),l&&(fo(!0),yi(p))}var Lf;function Lh(t){return Lf=t.target,new Af(t)}var Ns,Mr,Af=class{constructor(e){Xs(this,Ns);Xs(this,Mr);var a,l;var i=new Map,o=(d,s)=>{var u=vs(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 m;return N((m=i.get(s))!=null?m:o(s,u),u),Reflect.set(d,s,u)}});_l(this,Mr,(e.hydrate?If:Zr)(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,Ns,r.$$events);for(let d of Object.keys(Ri(this,Mr)))d==="$set"||d==="$destroy"||d==="$on"||uo(this,d,{get(){return Ri(this,Mr)[d]},set(s){Ri(this,Mr)[d]=s},enumerable:!0});Ri(this,Mr).$set=d=>{Object.assign(r,d)},Ri(this,Mr).$destroy=()=>{Na(Ri(this,Mr))}}$set(e){Ri(this,Mr).$set(e)}$on(e,i){Ri(this,Ns)[e]=Ri(this,Ns)[e]||[];let o=(...r)=>i.call(this,...r);return Ri(this,Ns)[e].push(o),()=>{Ri(this,Ns)[e]=Ri(this,Ns)[e].filter(r=>r!==o)}}$destroy(){Ri(this,Mr).$destroy()}};Ns=new WeakMap,Mr=new WeakMap;function Q(t,e){Pn(()=>{var r,a,l;var i=t.getRootNode(),o=i.host?i:(l=(r=i.head)!=null?r:i.ownerDocument.head)!=null?l:(a=Lf)==null?void 0:a.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),ke&&Eh(e.hash,d)}})}function Ds(t,e){var i=void 0,o;Gi(()=>{i!==(i=e())&&(o&&(qi(o),o=null),i&&(o=Ni(()=>{Ao(()=>i(t))})))})}function Mh(t){var e,i,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var r=t.length;for(e=0;e<r;e++)t[e]&&(i=Mh(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Vh(){for(var t,e,i=0,o="",r=arguments.length;i<r;i++)(t=arguments[i])&&(e=Mh(t))&&(o&&(o+=" "),o+=e);return o}function Hd(t){return typeof t=="object"?Vh(t):t!=null?t:""}var Rh=[...`
|
|
44
|
+
\r\f \v\uFEFF`];function Dh(t,e,i){var o=t==null?"":""+t;if(e&&(o=o?o+" "+e:e),i){for(var r in i)if(i[r])o=o?o+" "+r:r;else if(o.length)for(var a=r.length,l=0;(l=o.indexOf(r,l))>=0;){var d=l+a;(l===0||Rh.includes(o[l-1]))&&(d===o.length||Rh.includes(o[d]))?o=(l===0?"":o.substring(0,l))+o.substring(d+1):l=d}}return o===""?null:o}function Nh(t,e=!1){var i=e?" !important;":";",o="";for(var r in t){var a=t[r];a!=null&&a!==""&&(o+=" "+r+": "+a+i)}return o}function Mf(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Oh(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(Mf)),r&&s.push(...Object.keys(r).map(Mf));var u=0,m=-1;let $=t.length;for(var p=0;p<$;p++){var v=t[p];if(d?v==="/"&&t[p-1]==="*"&&(d=!1):a?a===v&&(a=!1):v==="/"&&t[p+1]==="*"?d=!0:v==='"'||v==="'"?a=v:v==="("?l++:v===")"&&l--,!d&&a===!1&&l===0){if(v===":"&&m===-1)m=p;else if(v===";"||p===$-1){if(m!==-1){var _=Mf(t.substring(u,m).trim());if(!s.includes(_)){v!==";"&&p++;var y=t.substring(u,p).trim();i+=" "+y+";"}}u=p+1,m=-1}}}}return o&&(i+=Nh(o)),r&&(i+=Nh(r,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function oe(t,e,i,o,r,a){var l=t.__className;if(tt||l!==i||l===void 0){var d=Dh(i,o,a);(!tt||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(a&&r!==a)for(var s in a){var u=!!a[s];(r==null||u!==!!r[s])&&t.classList.toggle(s,u)}return a}function Vf(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(tt||r!==e){var a=Oh(e,o);(!tt||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(Vf(t,i==null?void 0:i[0],o[0]),Vf(t,i==null?void 0:i[1],o[1],"important")):Vf(t,i,o));return o}function Fd(t,e,i){if(t.multiple){if(e==null)return;if(!ur(e))return th();for(var o of t.options)o.selected=e.includes(Bh(o));return}for(o of t.options){var r=Bh(o);if(sf(r,e)){o.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function Rf(t){var e=new MutationObserver(()=>{Fd(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),ko(()=>{e.disconnect()})}function Bh(t){return"__value"in t?t.__value:t.value}var Dl=Symbol("class"),Ol=Symbol("style"),Uh=Symbol("is custom element"),zh=Symbol("is html");function Wh(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Ve(t,e,i,o){var r=qh(t);if(tt&&(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[Mg]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Qh(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Kh(t,e,i,o,r=!1){var A;var a=qh(t),l=a[Uh],d=!a[zh];let s=tt&&l;s&&fo(!1);var u=e||{},m=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=Qh(t);for(let P in i){let E=i[P];if(m&&P==="value"&&E==null){t.value=t.__value="",u[P]=E;continue}if(P==="class"){var _=t.namespaceURI==="http://www.w3.org/1999/xhtml";oe(t,_,E,o,e==null?void 0:e[Dl],i[Dl]),u[P]=E,u[Dl]=i[Dl];continue}if(P==="style"){Ke(t,E,e==null?void 0:e[Ol],i[Ol]),u[P]=E,u[Ol]=i[Ol];continue}var y=u[P];if(!(E===y&&!(E===void 0&&t.hasAttribute(P)))){u[P]=E;var $=P[0]+P[1];if($!=="$$")if($==="on"){let z={},F="$$"+P,U=P.slice(2);var x=xh(U);if(yh(U)&&(U=U.slice(0,-7),z.capture=!0),!x&&y){if(E!=null)continue;t.removeEventListener(U,u[F],z),u[F]=null}if(E!=null)if(x)t[`__${U}`]=E,Ye([U]);else{let X=function(ae){u[P].call(this,ae)};var R=X;u[F]=Cf(U,t,X,z)}else x&&(t[`__${U}`]=void 0)}else if(P==="style")Ve(t,P,E);else if(P==="autofocus")wf(t,!!E);else if(!l&&(P==="__value"||P==="value"&&E!=null))t.value=t.__value=E;else if(P==="selected"&&m)Wh(t,E);else{var I=P;d||(I=wh(I));var T=I==="defaultValue"||I==="defaultChecked";if(E==null&&!l&&!T)if(a[P]=null,I==="value"||I==="checked"){let z=t,F=e===void 0;if(I==="value"){let U=z.defaultValue;z.removeAttribute(I),z.defaultValue=U,z.value=z.__value=F?U:null}else{let U=z.defaultChecked;z.removeAttribute(I),z.defaultChecked=U,z.checked=F?U:!1}}else t.removeAttribute(P);else T||v.includes(I)&&(l||typeof E!="string")?t[I]=E:typeof E!="function"&&Ve(t,I,E,r)}}}return s&&fo(!0),u}function to(t,e,i=[],o,r=!1,a=Yr){let l=i.map(a);var d=void 0,s={},u=t.nodeName==="SELECT",m=!1;if(Gi(()=>{var v=e(...l.map(n)),_=Kh(t,d,v,o,r);m&&u&&"value"in v&&Fd(t,v.value,!1);for(let $ of Object.getOwnPropertySymbols(s))v[$]||qi(s[$]);for(let $ of Object.getOwnPropertySymbols(v)){var y=v[$];$.description===Xp&&(!d||y!==d[$])&&(s[$]&&qi(s[$]),s[$]=Ni(()=>Ds(t,()=>y))),_[$]=y}d=_}),u){var p=t;Ao(()=>{Fd(p,d.value),Rf(p)})}m=!0}function qh(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[Uh]:t.nodeName.includes("-"),[zh]:t.namespaceURI===Tg}}var Hh=new Map;function Qh(t){var e=Hh.get(t.nodeName);if(e)return e;Hh.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=Ca(o)}return e}function S1(t,e,i){var o;ke&&(e==="srcset"&&C1(t,i)||Nf((o=t.getAttribute(e))!=null?o:"",i)||Zg(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function Nf(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function Fh(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function C1(t,e){var i=Fh(t.srcset),o=Fh(e);return o.length===i.length&&o.every(([r,a],l)=>a===i[l][1]&&(Nf(i[l][0],r)||Nf(r,i[l][0])))}var T1=au?()=>performance.now():()=>Date.now(),Jr={tick:t=>(au?requestAnimationFrame:ht)(t),now:()=>T1(),tasks:new Set};function Gh(){let t=Jr.now();Jr.tasks.forEach(e=>{e.c(t)||(Jr.tasks.delete(e),e.f())}),Jr.tasks.size!==0&&Jr.tick(Gh)}function Yh(t){let e;return Jr.tasks.size===0&&Jr.tick(Gh),{promise:new Promise(i=>{Jr.tasks.add(e={c:t,f:i})}),abort(){Jr.tasks.delete(e)}}}function Au(t,e){Nd(()=>{t.dispatchEvent(new CustomEvent(e))})}function k1(t){if(t==="float")return"cssFloat";if(t==="offset")return"cssOffset";if(t.startsWith("--"))return t;let e=t.split("-");return e.length===1?e[0]:e[0]+e.slice(1).map(i=>i[0].toUpperCase()+i.slice(1)).join("")}function jh(t){let e={},i=t.split(";");for(let o of i){let[r,a]=o.split(":");if(!r||a===void 0)break;let l=k1(r.trim());e[l]=a.trim()}return e}var A1=t=>t;function es(t,e,i,o){var R;var r=(t&1)!==0,a=(t&2)!==0,l=r&&a,d=(t&4)!==0,s=l?"both":r?"in":"out",u,m=e.inert,p=e.style.overflow,v,_;function y(){var E;var A=Nt,P=bt;Ki(null),po(null);try{return u!=null?u:u=i()(e,(E=o==null?void 0:o())!=null?E:{},{direction:s})}finally{Ki(A),po(P)}}var $={is_global:d,in(){var A;if(e.inert=m,!r){_==null||_.abort(),(A=_==null?void 0:_.reset)==null||A.call(_);return}a||v==null||v.abort(),Au(e,"introstart"),v=Df(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"),_=Df(e,y(),v,0,()=>{Au(e,"outroend"),A==null||A()})},stop:()=>{v==null||v.abort(),_==null||_.abort()}},x=bt;if(((R=x.transitions)!=null?R:x.transitions=[]).push($),r&&Dd){var I=d;if(!I){for(var T=x.parent;T&&(T.f&65536)!==0;)for(;(T=T.parent)&&(T.f&16)===0;);I=!T||(T.f&32768)!==0}I&&Ao(()=>{It(()=>$.in())})}}function Df(t,e,i,o,r){var a=o===1;if(ea(e)){var l,d=!1;return Pn(()=>{if(!d){var x=e({direction:a?"in":"out"});l=Df(t,x,i,o,r)}}),{abort:()=>{d=!0,l==null||l.abort()},deactivate:()=>l.deactivate(),reset:()=>l.reset(),t:()=>l.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return r(),{abort:ht,deactivate:ht,reset:ht,t:()=>o};let{delay:s=0,css:u,tick:m,easing:p=A1}=e;var v=[];if(a&&i===void 0&&(m&&m(0,1),u)){var _=jh(u(0,1));v.push(_,_)}var y=()=>1-o,$=t.animate(v,{duration:s,fill:"forwards"});return $.onfinish=()=>{var U;$.cancel();var x=(U=i==null?void 0:i.t())!=null?U:1-o;i==null||i.abort();var I=o-x,T=e.duration*Math.abs(I),R=[];if(T>0){var A=!1;if(u)for(var P=Math.ceil(T/16.666666666666668),E=0;E<=P;E+=1){var z=x+I*p(E/P),F=jh(u(z,1-z));R.push(F),A||(A=F.overflow==="hidden")}A&&(t.style.overflow="hidden"),y=()=>{var X=$.currentTime;return x+I*p(X/T)},m&&Yh(()=>{if($.playState!=="running")return!1;var X=y();return m(X,1-X),!0})}$=t.animate(R,{duration:T,fill:"forwards"}),$.onfinish=()=>{y=()=>o,m==null||m(o,1-o),r()}},{abort:()=>{$&&($.cancel(),$.effect=null,$.onfinish=ht)},deactivate:()=>{r=ht},reset:()=>{o===0&&(m==null||m(1,0))},t:()=>y()}}function Of(t,e,i){var o=Wo(t,e);o&&o.set&&(t[e]=i,ko(()=>{t[e]=null}))}var ra,Bl,Ud,Mu,Xh,Vu=class Vu{constructor(e){Xs(this,Mu);Xs(this,ra,new WeakMap);Xs(this,Bl);Xs(this,Ud);_l(this,Ud,e)}observe(e,i){var o=Ri(this,ra).get(e)||new Set;return o.add(i),Ri(this,ra).set(e,o),Sg(this,Mu,Xh).call(this).observe(e,Ri(this,Ud)),()=>{var r=Ri(this,ra).get(e);r.delete(i),r.size===0&&(Ri(this,ra).delete(e),Ri(this,Bl).unobserve(e))}}};ra=new WeakMap,Bl=new WeakMap,Ud=new WeakMap,Mu=new WeakSet,Xh=function(){var e;return(e=Ri(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 Ri(this,ra).get(o.target)||[])r(o)}}))},cr(Vu,"entries",new WeakMap);var Bf=Vu;var L1=new Bf({box:"border-box"});function An(t,e,i){var o=L1.observe(t,()=>i(t[e]));Ao(()=>(It(()=>i(t[e])),o))}function Zh(t,e){return t===e||(t==null?void 0:t[Ko])===e}function Ze(t={},e,i,o){return Ao(()=>{var r,a;return Yo(()=>{r=a,a=(o==null?void 0:o())||[],It(()=>{t!==i(...a)&&(e(t,...a),r&&Zh(i(...r),t)&&e(null,...r))})}),()=>{Pn(()=>{a&&Zh(i(...a),t)&&e(null,...a)})}}),t}function ho(t=!1){let e=Ft,i=e.l.u;if(!i)return;let o=()=>Iu(e.s);if(t){let r=0,a={},l=Yr(()=>{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&&kd(()=>{Jh(e,o),ta(i.b)}),De(()=>{let r=It(()=>i.m.map(Lg));return()=>{for(let a of r)typeof a=="function"&&a()}}),i.a.length&&De(()=>{Jh(e,o),ta(i.a)})}function Jh(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=It(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Hl=[];function Vr(t,e){return{subscribe:de(t,e).subscribe}}function de(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 ui(t,e,i){let o=!Array.isArray(t),r=o?[t]:t;if(!r.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let a=e.length<2;return Vr(i,(l,d)=>{let s=!1,u=[],m=0,p=ht,v=()=>{if(m)return;p();let y=e(o?u[0]:u,l,d);a?l(y):p=typeof y=="function"?y:ht},_=r.map((y,$)=>zd(y,x=>{u[$]=x,m&=~(1<<$),s&&v()},()=>{m|=1<<$}));return s=!0,v(),function(){ta(_),p(),s=!1}})}function ye(t){let e;return zd(t,i=>e=i)(),e}var Ru=!1,Hf=Symbol();function w(t,e,i){var a;let o=(a=i[e])!=null?a:i[e]={store:null,source:vs(void 0),unsubscribe:ht};if(o.store!==t&&!(Hf in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=ht;else{var r=!0;o.unsubscribe=zd(t,l=>{r?o.source.v=l:N(o.source,l)}),r=!1}return t&&Hf in i?ye(t):n(o.source)}function Ne(){let t={};function e(){ko(()=>{for(var i in t)t[i].unsubscribe();uo(t,Hf,{enumerable:!1,value:!0})})}return[t,e]}function Ff(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 ke&&zg(`${t.name}.${String(e)}`),!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function Ln(t,e,i){return new Proxy(ke?{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(ea(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];ea(r)&&(r=r());let a=Wo(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(ea(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let r=Wo(o,e);return r&&!r.configurable&&(r.configurable=!0),r}}},has(t,e){if(e===Ko||e===bl)return!1;for(let i of t.props)if(ea(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props)if(ea(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 ts(...t){return new Proxy({props:t},H1)}function e_(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function h(t,e,i,o){var z,F;var r=(i&1)!==0,a=!ps||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,s=!1,u;l?[u,s]=Ff(()=>t[e]):u=t[e];var m=Ko in t||bl in t,p=l&&((F=(z=Wo(t,e))==null?void 0:z.set)!=null?F:m&&e in t&&(U=>t[e]=U))||void 0,v=o,_=!0,y=!1,$=()=>(y=!0,_&&(_=!1,d?v=It(o):v=o),v);u===void 0&&o!==void 0&&(p&&a&&Ug(e),u=$(),p&&p(u));var x;if(a)x=()=>{var U=t[e];return U===void 0?$():(_=!0,y=!1,U)};else{var I=(r?Yr:Tn)(()=>t[e]);I.f|=131072,x=()=>{var U=n(I);return U!==void 0&&(v=void 0),U===void 0?v:U}}if((i&4)===0&&a)return x;if(p){var T=t.$$legacy;return function(U,X){return arguments.length>0?((!a||!X||T||s)&&p(X?x():U),U):x()}}var R=!1,A=!1,P=vs(u),E=Yr(()=>{var U=x(),X=n(P);return R?(R=!1,A=!0,X):(A=!1,P.v=U)});return l&&n(E),r||(E.equals=xl),function(U,X){if(Cu!==null&&(R=A,x(),n(P)),arguments.length>0){let ae=X?n(E):a&&l?ri(U):U;if(!E.equals(ae)){if(R=!0,N(P,ae),y&&v!==void 0&&(v=ae),e_(E))return U;It(()=>n(E))}return U}return e_(E)?E.v:n(E)}}var F1;typeof HTMLElement=="function"&&(F1=class extends HTMLElement{constructor(e,i,o){super();cr(this,"$$ctor");cr(this,"$$s");cr(this,"$$c");cr(this,"$$cn",!1);cr(this,"$$d",{});cr(this,"$$r",!1);cr(this,"$$p_d",{});cr(this,"$$l",{});cr(this,"$$l_u",new Map);cr(this,"$$me");this.$$ctor=e,this.$$s=i,o&&this.attachShadow({mode:"open"})}addEventListener(e,i,o){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(i),this.$$c){let r=this.$$c.$on(e,i);this.$$l_u.set(i,r)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let r=this.$$l_u.get(i);r&&(r(),this.$$l_u.delete(i))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let i=function(a){return l=>{let d=document.createElement("slot");a!=="default"&&(d.name=a),b(l,d)}};var e=i;if(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]=Uf(l,a.value,this.$$p_d,"toProp"))}for(let a in this.$$p_d)!(a in this.$$d)&&this[a]!==void 0&&(this.$$d[a]=this[a],delete this[a]);this.$$c=Lh({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=yu(()=>{Yo(()=>{var a;this.$$r=!0;for(let l of Zp(this.$$c)){if(!((a=this.$$p_d[l])!=null&&a.reflect))continue;this.$$d[l]=this.$$c[l];let d=Uf(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]=Uf(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 Zp(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function Uf(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 t_="5";var i_,o_,n_;typeof window!="undefined"&&((n_=(o_=(i_=window.__svelte)!=null?i_:window.__svelte={}).v)!=null?n_:o_.v=new Set).add(t_);var sd=require("@vkontakte/videoplayer-core/es2018"),MZ=require("@vkontakte/videoplayer-core/es2018"),pl=require("@vkontakte/videoplayer-shared/es2018"),f$=require("@vkontakte/videoplayer-statistics/es2018");var Oa=require("@vkontakte/videoplayer-shared/es2018");var z1={isMobile:void 0,disableInvisibleComponentsTimeout:500,debugLog:!1,devNullLog:!1,defaultLanguage:Oa.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:Oa.VideoQuality.Q_480P,highQualityLimit:Oa.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:[]},r_=t=>(0,Oa.fillWithDefault)(t,z1),s_=t=>Cl("ui-config",t),Vt=()=>Sl("ui-config");var Wd="vk_player_debug_panel_opened";var a_="videoplayer",l_="videoplayer";var hs={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},d_=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),c_=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),u_=new Set(["ShiftRight","ShiftLeft"]);var p_=["TIMELINE"],Kd=[...p_,"GRAPH_BUTTON"],zf=[...p_,"PLAY_BUTTON"],qd=[...Kd,"PLAY_BUTTON"];var is=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(is||{}),Qd={xs:0,s:1,m:2,l:3,xl:4};var Gd=require("@vkontakte/videoplayer-shared/es2018"),f_=require("@vkontakte/videoplayer-core/es2018"),m_=require("@vkontakte/videoplayer-statistics/es2018");var Nu="prod",Ha="1.1.82-dev.a57718f4.0";var Fa=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var v_=Symbol("storeContext"),g_=Symbol("microStoresContext"),h_=(t,e)=>{Cl(v_,t),Cl(g_,e),Nu==="dev"&&(window.app={store:t,microStores:e})},be=()=>{let t=Sl(v_);return(0,Gd.assertNonNullable)(t,"Store context is empty!"),t},_o=()=>{let t=Sl(g_);return(0,Gd.assertNonNullable)(t,"MicroStores context is empty!"),t},ii=(t,e)=>Ou(t,t.getValue(),e),Ou=(t,e,i)=>Vr(e,o=>{let r=t.subscribe(a=>{o(a),i==null||i(a)});return()=>r.unsubscribe()}),__=(t,e,i,o,r=["meta config not provided"])=>{var F,U,X,ae,Z,re,J,we,me;let a=t.info,{width:l,height:d}=ye(i.ui.playerSize),s=(U=(F=a.throughputEstimation$.getValue())==null?void 0:F.toFixed(0))!=null?U:0,u=(ae=(X=a.rttEstimation$.getValue())==null?void 0:X.toFixed(0))!=null?ae:0,m=a.isAutoQualityEnabled$.getValue()?"auto":"manual",p=`${Ha} (core: ${f_.VERSION}, stat: ${m_.VERSION}, shared: ${Gd.VERSION})`,v=ye(i.state.errorLog$),_=v.length?`
|
|
45
|
+
`+v.map((ee,_e)=>{var Qe;let Ce=`${_e}) Type: ${ee.id}
|
|
46
46
|
`,ge=`Message: ${ee.message} (${ee.thrown})
|
|
47
|
-
`,pe=`Trace: ${(
|
|
47
|
+
`,pe=`Trace: ${(Qe=ee.thrown)==null?void 0:Qe.stack}
|
|
48
48
|
`;return Ce+ge+pe}).join(`
|
|
49
49
|
`):void 0,y=i.state.isAudioDisabled?"disabled":ye(i.state.isAudioAvailable$)?void 0:"unavailable",$=t.info.currentVideoStream$.getValue(),x=t.info.currentAudioStream$.getValue(),I=[];$&&I.push(`Video: ${(Z=$==null?void 0:$.codec)!=null?Z:""}`+($!=null&&$.hdr?" (HDR)":"")),x&&I.push(`Audio: ${(re=x==null?void 0:x.codec)!=null?re:""}`+(x!=null&&x.language?` (${x.language})`:""));let T=a.currentQuality$.getValue(),R="";if(T){let ee=a.availableQualitiesFps$.getValue()[T];R=ee?`${ee}fps`:""}let A=a.httpConnectionType$.getValue(),P=(we=(J=a.currentBuffer$.getValue())==null?void 0:J.end)!=null?we:0,E=Math.max(P-ye(i.state.positionExact$),0),z={Version:p,Browser:navigator.userAgent,Config:r.join(", "),"United video id":String(i.videoId),TraceId:o,VSID:ye(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:`${m} ${T!=null?T:""} ${R}`,"Available qualities":a.availableQualities$.getValue().join(", "),Audio:y,Position:`${ye(i.state.positionExact$)}s`,Buffer:`${E}s`,State:`${ye(i.playerPhase)} ${(me=a.playbackState$.getValue())!=null?me:""}`,"Player size":`${l}x${d}`,URL:window.location.href,Errors:_};return Object.entries(z).filter(([ee,_e])=>_e!==void 0).map(([ee,_e])=>`${ee}: ${_e}`).join(`
|
|
50
|
-
`)},h_=(t,e,i)=>{var F,U,X,ae;let o=t.info,{width:r,height:a}=ye(i.ui.playerSize),l={version:Oa,viewport:`${r}x${a}`,volume:Math.round(ye(i.state.volume$)*100)};l.id=i.videoId,o.currentFormat$.getValue()&&(l.provider=o.currentFormat$.getValue()),o.hostname$.getValue()&&(l.cdn=o.hostname$.getValue());let u=o.intrinsicVideoSize$.getValue();u&&(l.videoSize=`${u.width}x${u.height}`);let m=o.currentBuffer$.getValue(),p=o.currentNativeBuffer$.getValue(),v=o.isLive$.getValue(),_=o.liveBufferTime$.getValue();m&&p&&(v&&_?(l.buffer=m.end-_,l.nativeBuffer=p.end-_):(l.buffer=Math.max(m.end-ye(i.state.positionExact$),0),l.nativeBuffer=Math.max(p.end-ye(i.state.positionExact$),0))),l.position=ye(i.state.positionExact$);let y=o.throughputEstimation$.getValue();y&&(l.speed=y);let $=o.videoBitrate$.getValue();$&&(l.bitrate=$);let x=o.liveLatency$.getValue();x&&(l.liveLatency=x);let I=o.currentVideoSegmentLength$.getValue();I&&(l.currentVideoSegmentLength=I);let T=o.currentAudioSegmentLength$.getValue();T&&(l.currentAudioSegmentLength=T);let R=ye(i.vsid);typeof R=="string"&&(l.vsid=R);let A=(F=t.info.currentVideoStream$.getValue())==null?void 0:F.codec;A&&(l.videoCodec=A);let P=(U=t.info.currentAudioStream$.getValue())==null?void 0:U.codec;P&&(l.audioCodec=P),((X=t.info.currentVideoStream$.getValue())==null?void 0:X.hdr)&&(l.hdr=!0);let z=(ae=t.info.currentAudioStream$.getValue())==null?void 0:ae.language;return z&&(l.audioLanguage=z),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 mi=require("@vkontakte/videoplayer-shared/es2018"),R9=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",P_=`${W1}preview_track_close_tooltip`,k_=t=>t>1?1:t<0?0:t,qf=t=>mi.safeStorage.set(w_,k_(t).toString(10)),Bu=()=>{let t=mi.safeStorage.get(w_);return(0,mi.isNullable)(t)?void 0:k_(parseFloat(t))},Qf=(t,e)=>mi.safeStorage.set(Kf,JSON.stringify({videoId:t,value:e})),Hu=()=>mi.safeStorage.remove(Kf),Gf=t=>{let e=mi.safeStorage.get(Kf);if((0,mi.isNullable)(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){Hu();return}return o},A_=(t,e)=>{e?mi.safeStorage.set(t,"true"):mi.safeStorage.remove(t)},Yf=t=>mi.safeStorage.get(t)==="true",jf=t=>A_(S_,t),L_=()=>Yf(S_),Yd=t=>A_(x_,t),Xf=()=>Yf(x_),M_=()=>mi.safeStorage.get(C_),Zf=t=>mi.safeStorage.set(C_,t),Jf=()=>mi.safeStorage.get(Wf),em=t=>{t?mi.safeStorage.set(Wf,t):mi.safeStorage.remove(Wf)},V_=t=>mi.safeStorage.set(T_,JSON.stringify({rate:t})),R_=()=>{let t=mi.safeStorage.get(T_);if((0,mi.isNullable)(t))return;let{rate:e}=JSON.parse(t);return e},N_=t=>{mi.safeStorage.set(I_,String(t))},D_=()=>Yf(I_),K1=()=>{let t=m=>{mi.safeStorage.set(Uf,JSON.stringify(m))},e=()=>{try{let m=mi.safeStorage.get(Uf);return m?JSON.parse(m):null}catch(m){return null}},i=()=>{try{let m=mi.safeStorage.get(zf);return m?JSON.parse(m):null}catch(m){return null}},o=m=>{mi.safeStorage.set(zf,JSON.stringify(m))},r=m=>{u(m);let p=m?i():null;if(p&&(p==null?void 0:p.videoId)===m)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=()=>{mi.safeStorage.remove(zf)},l=()=>{mi.safeStorage.remove(Uf)},d=(m,p="as-default")=>{m.type==="exact_quality"||p==="to-video"?o(m):t(m)},s=m=>{let p=r(m);if(p){switch(p.type){case"traffic_saving":Yd(!0);break;case"exact_quality":Qf(m,p.quality)}a(),l()}},u=m=>{let p=Gf(m);if(p){o({type:"exact_quality",videoId:m,quality:p});return}Xf()&&t({type:"traffic_saving",videoId:m}),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:N9,removePreferredQualitySettingsByVideo:D9,getPreferredDefaultQualitySettings:Uu}=K1(),q1=3,Q1=3,H_=()=>{let t=mi.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);mi.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_(){mi.safeStorage.set(P_,JSON.stringify(!0))}function U_(){let t=mi.safeStorage.get(P_);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 Xe(t,e){var m;B(e,!0);let i=h(e,"width",19,()=>"24"),o=h(e,"height",19,()=>"24"),r=h(e,"fill",3,na),a=(m=e.viewBox)!=null?m:`0 0 ${i()} ${o()}`;var l=X1(),d=C(l);{var s=p=>{var v=j1(),_=ue(v),y=C(_);oi(y,()=>e.children),S(_),di(),b(p,v)},u=p=>{var v=Le(),_=ue(v);oi(_,()=>e.children),b(p,v)};V(d,p=>{e.shadow?p(s):p(u,!1)})}S(l),O(()=>{Ve(l,"aria-label",e.ariaLabel),Ve(l,"aria-hidden",!e.ariaLabel),Ve(l,"width",i()),Ve(l,"height",o()),Ve(l,"viewBox",a),Ve(l,"fill",r()),Ke(l,e.style),Ve(l,"data-testid",e.testId)}),b(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:`Видео грузится слишком медленно,
|
|
50
|
+
`)},b_=(t,e,i)=>{var F,U,X,ae;let o=t.info,{width:r,height:a}=ye(i.ui.playerSize),l={version:Ha,viewport:`${r}x${a}`,volume:Math.round(ye(i.state.volume$)*100)};l.id=i.videoId,o.currentFormat$.getValue()&&(l.provider=o.currentFormat$.getValue()),o.hostname$.getValue()&&(l.cdn=o.hostname$.getValue());let u=o.intrinsicVideoSize$.getValue();u&&(l.videoSize=`${u.width}x${u.height}`);let m=o.currentBuffer$.getValue(),p=o.currentNativeBuffer$.getValue(),v=o.isLive$.getValue(),_=o.liveBufferTime$.getValue();m&&p&&(v&&_?(l.buffer=m.end-_,l.nativeBuffer=p.end-_):(l.buffer=Math.max(m.end-ye(i.state.positionExact$),0),l.nativeBuffer=Math.max(p.end-ye(i.state.positionExact$),0))),l.position=ye(i.state.positionExact$);let y=o.throughputEstimation$.getValue();y&&(l.speed=y);let $=o.videoBitrate$.getValue();$&&(l.bitrate=$);let x=o.liveLatency$.getValue();x&&(l.liveLatency=x);let I=o.currentVideoSegmentLength$.getValue();I&&(l.currentVideoSegmentLength=I);let T=o.currentAudioSegmentLength$.getValue();T&&(l.currentAudioSegmentLength=T);let R=ye(i.vsid);typeof R=="string"&&(l.vsid=R);let A=(F=t.info.currentVideoStream$.getValue())==null?void 0:F.codec;A&&(l.videoCodec=A);let P=(U=t.info.currentAudioStream$.getValue())==null?void 0:U.codec;P&&(l.audioCodec=P),((X=t.info.currentVideoStream$.getValue())==null?void 0:X.hdr)&&(l.hdr=!0);let z=(ae=t.info.currentAudioStream$.getValue())==null?void 0:ae.language;return z&&(l.audioLanguage=z),l},$_=(t,e)=>Fa(t,e,"mp4"),y_=t=>!t.type,x_=t=>!!t.type,w_=()=>{let e=[],i=0;return{add:(o,r)=>{e[i]=[o,r],i=(i+1)%10},find:o=>e.find(([r])=>r===o)}},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 pi=require("@vkontakte/videoplayer-shared/es2018"),RV=require("@vkontakte/videoplayer-core/es2018"),W1="vk_player_",S_="vk_player_prefer_traffic_saving_enabled",C_="vk_player_preferred_volume",T_="vk_player_prefer_volume_mute",Qf="vk_player_preferred_quality",Wf="vk_player_preferred_default_quality_settings",Kf="vk_player_preferred_quality_settings_by_video",I_="vk_player_preferred_stream_language",E_="vk_player_preferred_rate",P_="vk_player_preferred_autoplay_next",qf="vk_player_preferred_subtitles_language",k_="vk_player_user_video_prefs",A_=`${W1}preview_track_close_tooltip`,L_=t=>t>1?1:t<0?0:t,Gf=t=>pi.safeStorage.set(C_,L_(t).toString(10)),Bu=()=>{let t=pi.safeStorage.get(C_);return(0,pi.isNullable)(t)?void 0:L_(parseFloat(t))},Yf=(t,e)=>pi.safeStorage.set(Qf,JSON.stringify({videoId:t,value:e})),Hu=()=>pi.safeStorage.remove(Qf),jf=t=>{let e=pi.safeStorage.get(Qf);if((0,pi.isNullable)(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){Hu();return}return o},M_=(t,e)=>{e?pi.safeStorage.set(t,"true"):pi.safeStorage.remove(t)},Xf=t=>pi.safeStorage.get(t)==="true",Zf=t=>M_(T_,t),V_=()=>Xf(T_),Yd=t=>M_(S_,t),Jf=()=>Xf(S_),R_=()=>pi.safeStorage.get(I_),em=t=>pi.safeStorage.set(I_,t),tm=()=>pi.safeStorage.get(qf),im=t=>{t?pi.safeStorage.set(qf,t):pi.safeStorage.remove(qf)},N_=t=>pi.safeStorage.set(E_,JSON.stringify({rate:t})),D_=()=>{let t=pi.safeStorage.get(E_);if((0,pi.isNullable)(t))return;let{rate:e}=JSON.parse(t);return e},O_=t=>{pi.safeStorage.set(P_,String(t))},B_=()=>Xf(P_),K1=()=>{let t=m=>{pi.safeStorage.set(Wf,JSON.stringify(m))},e=()=>{try{let m=pi.safeStorage.get(Wf);return m?JSON.parse(m):null}catch(m){return null}},i=()=>{try{let m=pi.safeStorage.get(Kf);return m?JSON.parse(m):null}catch(m){return null}},o=m=>{pi.safeStorage.set(Kf,JSON.stringify(m))},r=m=>{u(m);let p=m?i():null;if(p&&(p==null?void 0:p.videoId)===m)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=()=>{pi.safeStorage.remove(Kf)},l=()=>{pi.safeStorage.remove(Wf)},d=(m,p="as-default")=>{m.type==="exact_quality"||p==="to-video"?o(m):t(m)},s=m=>{let p=r(m);if(p){switch(p.type){case"traffic_saving":Yd(!0);break;case"exact_quality":Yf(m,p.quality)}a(),l()}},u=m=>{let p=jf(m);if(p){o({type:"exact_quality",videoId:m,quality:p});return}Jf()&&t({type:"traffic_saving",videoId:m}),Yd(!1),Hu()};return{getPreferredQualitySettings:r,migrateSettingsToLegacyWay:s,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:a,getPreferredDefaultQualitySettings:e,getPreferredSubtitlesLanguage:tm,savePreferredSubtitlesLanguage:im}},{getPreferredQualitySettings:H_,migrateSettingsToLegacyWay:F_,savePreferredQualitySettings:Fu,savePreferredDefaultQualitySettings:NV,removePreferredQualitySettingsByVideo:DV,getPreferredDefaultQualitySettings:Uu}=K1(),q1=3,Q1=3,U_=()=>{let t=pi.safeStorage.get(k_);if(t)try{return JSON.parse(t)}catch(e){return null}return null},zu=(t,e)=>{var r,a;let i=U_();return(a=(r=i==null?void 0:i[t])==null?void 0:r[e])!=null?a:null},om=(t,e,i)=>{var l,d,s;let o=(l=U_())!=null?l:{},r=(s=(d=o[t])==null?void 0:d[e])!=null?s:{};Object.assign(r,i,{updatedTs:Date.now()}),t in o||(o[t]={}),o[t][e]=r;let a=G1(o);pi.safeStorage.set(k_,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 z_(){pi.safeStorage.set(A_,JSON.stringify(!0))}function W_(){let t=pi.safeStorage.get(A_);try{return t?JSON.parse(t):!1}catch(e){return!1}}var ig=require("@vkontakte/videoplayer-core/es2018");Gg();var sa="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 m;B(e,!0);let i=h(e,"width",19,()=>"24"),o=h(e,"height",19,()=>"24"),r=h(e,"fill",3,sa),a=(m=e.viewBox)!=null?m:`0 0 ${i()} ${o()}`;var l=X1(),d=C(l);{var s=p=>{var v=j1(),_=ue(v),y=C(_);ti(y,()=>e.children),S(_),si(),b(p,v)},u=p=>{var v=Me(),_=ue(v);ti(_,()=>e.children),b(p,v)};V(d,p=>{e.shadow?p(s):p(u,!1)})}S(l),O(()=>{Ve(l,"aria-label",e.ariaLabel),Ve(l,"aria-hidden",!e.ariaLabel),Ve(l,"width",i()),Ve(l,"height",o()),Ve(l,"viewBox",a),Ve(l,"fill",r()),Ke(l,e.style),Ve(l,"data-testid",e.testId)}),b(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
51
|
качество изменено на «Авто»`,slow_video_notification_suggest_description:`Видео загружается слишком медленно -
|
|
52
|
-
попробуйте изменить качество на «Авто»`,double_forward_label:"2x",preview_track_notification_text:"Потяните вверх для точной перемотки",preview_track_close_tooltip:"Выйти из режима точной перемотки"},
|
|
52
|
+
попробуйте изменить качество на «Авто»`,double_forward_label:"2x",preview_track_notification_text:"Потяните вверх для точной перемотки",preview_track_close_tooltip:"Выйти из режима точной перемотки"},K_=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
53
|
so the quality was changed to Auto`,slow_video_notification_suggest_description:`The video is loading too slowly.
|
|
54
|
-
Try switching the quality to Auto.`,double_forward_label:"2x",preview_track_notification_text:"pull up to open precise rewind",preview_track_close_tooltip:"dismiss precise rewind"},
|
|
55
|
-
`),o,r;for(let a=0;a<i.length;++a){if(o=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:
|
|
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:m,blackErrorCategoryList:p}=l,{errorType:v,category:_}=i;if((0,Ha.isNonNullable)(_)&&p.includes(_)||(0,Ha.isNonNullable)(v)&&m.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($){console.error($)}}}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=be();Rt(()=>{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=f(()=>["up","down"].includes(i())),a=f(()=>["right","down"].includes(i())),l=f(()=>`chevron-icon--${i()}`),d=f(()=>(()=>{let m="";return n(a)&&(m+="transform: rotate(180deg);"),m.length?m:void 0})()),s=f(()=>o()?na:"currentColor"),u=f(()=>n(r)?"7":"16");Xe(t,{width:"12",get height(){return n(u)},get fill(){return n(s)},get testId(){return n(l)},get style(){return n(d)},children:(m,p)=>{var v=Le(),_=ue(v);{var y=x=>{var I=cy();b(x,I)},$=x=>{var I=uy();b(x,I)};V(_,x=>{n(r)?x(y):x($,!1)})}b(m,v)},$$slots:{default:!0}}),H()}var py=(t,e,i)=>{t.stopPropagation(),n(e)&&i()()},fy=L('<div class="skip s-14"> <!></div>'),my=L("<div><!></div>"),vy={hash:"s-14",code:".container.s-14{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-14{bottom:14px;font-size:15px;max-width:142px;top:unset}.skip.s-14{align-items:flex-end;display:flex;gap:4px;white-space:nowrap}.skippable.s-14{color:var(--white);cursor:pointer}.skippable.s-14:hover{color:hsla(0,0%,100%,.75)}"};function lm(t,e){B(e,!0),Q(t,vy);let[i,o]=Ne(),r=()=>w(u,"$isMobile",i),a=h(e,"position",3,0),l=h(e,"secondsToWatchBeforeSkip",3,0),d=h(e,"skipAd",3,J_.noop),u=be().ui.isMobile,m=f(()=>a()>0&&a()>=l());var p=my();let v;p.__click=[py,m,d];var _=C(p);{var y=x=>{var I=fy(),T=C(I),R=k(T);Mr(R,{direction:"right"}),S(I),O(A=>ve(T,`${A!=null?A:""} `),[()=>j("skip_ads_now")]),b(x,I)},$=x=>{var I=vs();O(T=>ve(I,T),[()=>j("skip_ads_after",{time:Math.ceil(l()-a()).toFixed(0)})]),b(x,I)};V(_,x=>{n(m)?x(y):x($,!1)})}S(p),O(x=>v=oe(p,1,"container s-14",null,v,x),[()=>({"container-mobile":r(),skippable:n(m)})]),b(t,p),H(),o()}Ge(["click"]);var gy=L('<button class="go-to-site s-15"> </button>'),hy={hash:"s-15",code:"button.go-to-site.s-15{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),Q(t,hy),ho();var i=gy(),o=C(i,!0);S(i),O(r=>ve(o,r),[()=>j("visit_advertiser")],In),b(t,i),H()}var _y=L('<div class="top-gradient-mobile s-m"></div>'),by=L('<div class="container s-m"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),$y={hash:"s-m",code:".container.s-m{height:100%;width:100%}.top-gradient-mobile.s-m{background:linear-gradient(1turn,transparent,rgba(0,0,0,.05) 12%,rgba(0,0,0,.15) 25%,rgba(0,0,0,.3) 45%,rgba(0,0,0,.4) 57%,rgba(0,0,0,.5) 77%,rgba(0,0,0,.55) 88%,rgba(0,0,0,.65));height:80px;left:0;pointer-events:none;position:absolute;top:0;width:100%}"};function Jd(t,e){B(e,!0),Q(t,$y);let[i,o]=Ne(),r=()=>w(U,"$canSkipAd",i),a=()=>w(F,"$adPlaybackState",i),l=()=>w(R,"$isMobile",i),d=()=>w(X,"$adPosition",i),s=()=>w(ae,"$secondsToWatchBeforeSkipAd",i),u=()=>w(T,"$isVideoEnded",i),m=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),$=h(e,"adsJson",3,void 0),x=be(),I=Nt(),T=x.state.isEnded$,R=x.ui.isMobile,A=I.ads.isMobileGoToSiteButton,P=q(void 0),E=q(void 0),z=!1,F=x.ads.playbackState,U=x.ads.canSkip,X=x.ads.position,ae=x.ads.secondsToWatchBeforeSkip,Z=f(()=>r()&&a()!=="inactive"),re=f(()=>l()&&a()!=="inactive"&&A);Rt(()=>{let D=x.getAdmanWrapper();if(zl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[(0,zl.now)(),m()]}),!m()){D.onAdmanLoadingError();return}let Qe=()=>{var Ae;let{width:Be,height:tt}=ye(x.ui.playerSize),ne=ye(x.ui.isFullscreen),ce=(Ae=v())!=null?Ae:ye(x.ui.isAutoplay),Re=I.ads.paramsOverride;return{width:Be,height:tt,isFullscreen:ne,isAutoplay:ce,adsContainer:n(P),adsVideoElement:n(E),slotId:m(),params:p(),paramsOverride:Re,duration:_(),externalApi:y(),json:$()}},K=async Be=>{Be&&await mo();let tt=Qe();await D.initAdman(tt),z=!0},se=new AbortController,xe=()=>{se.abort()};return window.AdmanHTML?K(!0).catch(()=>{D.onAdmanLoadingError()}):D.loadAdman(se.signal).then(()=>K(!1)).catch(()=>{D.onAdmanLoadingError()}),()=>{zl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[(0,zl.now)(),m()]}),!z&&xe()}});var J=by(),we=C(J);{var me=D=>{var Qe=_y();b(D,Qe)};V(we,D=>{l()&&D(me)})}var ee=k(we,2);je(ee,D=>N(E,D),()=>n(E));var _e=k(ee,2);{var Ce=D=>{lm(D,{get position(){return d()},get secondsToWatchBeforeSkip(){return s()},get skipAd(){return x.actions.internal.skipAd}})};V(_e,D=>{n(Z)&&D(Ce)})}var ge=k(_e,2);{var pe=D=>{am(D,{})};V(ge,D=>{u()&&D(pe)})}var qe=k(ge,2);{var G=D=>{dm(D,{})};V(qe,D=>{n(re)&&D(G)})}S(J),je(J,D=>N(P,D),()=>n(P)),b(t,J),H(),o()}var Zo=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=f(()=>i()?"live-active-icon":"live-icon"),r=f(()=>i()?"var(--timeline-slider-filled-active-live-bg, #FF3347)":void 0),a="M8 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2H9V6a1 1 0 0 0-1-1m7 1a1 1 0 1 1 2 0v8a1 1 0 1 1-2 0zm15-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2h-3v-2h3a1 1 0 1 0 0-2h-3V7h3a1 1 0 1 0 0-2zm-8.32 9.31-2.55-7.82a1 1 0 0 1-.12-.37L19 6.1a1 1 0 1 1 2-.2l2 6.4 2-6.4a1 1 0 0 1 2 .2v.02a1 1 0 0 1-.13.37l-2.55 7.82a1 1 0 0 1-.95.69h-.74a1 1 0 0 1-.95-.69";Xe(t,{width:"42",height:"20",get testId(){return n(o)},get fill(){return n(r)},children:(l,d)=>{var s=xy(),u=ue(s),m=k(u);{var p=v=>{var _=yy();Ve(_,"d",a),b(v,_)};V(m,v=>{i()&&v(p)})}O(()=>Ve(u,"d",`M5 0h32s5 0 5 5v10s0 5 -5 5h-32s-5 0 -5 -5v-10s0 -5 5 -5${i()?"":"M5.5 2h31s3.5 0 3.5 3.5v9s0 3.5-3.5 3.5h-31s-3.5 0-3.5-3.5v-9s0-3.5 3.5-3.5"+a}z`)),b(l,s)},$$slots:{default:!0}})}var wy=L('<div class="equalizer s-c"><div class="col s-c"></div> <div class="col s-c"></div> <div class="col s-c"></div></div>'),Sy=L('<div class="live-icon s-c"><!></div>'),Cy=L('<span class="text s-c"> </span>'),Ty=L("<div><!> <!></div>"),Iy={hash:"s-c",code:".wrapper.s-c{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-c{background:var(--red);border-radius:2px;font-size:0;height:20px;line-height:20px;padding:0 7px}.equalizer.s-c{display:inline-block;height:10px;margin-right:4px;margin-top:-4px;position:relative;vertical-align:middle;width:10px}.live.s-c .equalizer:where(.s-c){margin-top:-2px}.equalizer.s-c .col:where(.s-c){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-c .equalizer:where(.s-c) .col:where(.s-c){animation-play-state:running}.equalizer.s-c .col:where(.s-c):first-child{animation-name:s-c-thumb-timer-equalizer-col1;left:0}.equalizer.s-c .col:where(.s-c):nth-child(2){animation-name:s-c-thumb-timer-equalizer-col2;left:3px}.equalizer.s-c .col:where(.s-c):nth-child(3){animation-name:s-c-thumb-timer-equalizer-col3;left:6px}.live-icon.s-c{display:inline-block;height:20px;margin:0 -7px;vertical-align:middle;width:42px}@keyframes s-c-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-c-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-c-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-c{color:var(--controls-time);font-size:13px;font-weight:500;line-height:16px}"};function tc(t,e){Q(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();b(v,_)};V(d,v=>{i()&&v(s)})}var u=k(d,2);{var m=v=>{var _=Sy(),y=C(_);ec(y,{isActive:!0}),S(_),b(v,_)},p=v=>{var _=Cy(),y=C(_,!0);S(_),O(()=>ve(y,e.time)),b(v,_)};V(u,v=>{o()?v(m):v(p,!1)})}S(a),O(v=>l=oe(a,1,"wrapper s-c",null,l,v),[()=>({live:o(),playing:r()})]),b(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>'),Py={hash:"s-j",code:".thumb-timer.s-j{bottom:0;margin:8px;position:absolute;right:0;transition:visibility var(--controls-transition-duration),opacity var(--controls-transition-duration);z-index:var(--thumb-timer-z-index)}"};function ic(t,e){B(e,!0),Q(t,Py);let[i,o]=Ne(),r=()=>w(m,"$disabled",i),a=h(e,"isHidden",3,!1),l=h(e,"isLive",3,!1),d=h(e,"isPlaying",3,!1),s=Nt(),u=f(()=>Zo(e.duration-e.position)),m=de(!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,m,s.disableInvisibleComponentsTimeout)),O(y=>v=oe(p,1,"thumb-timer s-j",null,v,y),[()=>({"out-of-flow":r(),hidden:a()})]),b(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&&ye(i)&&(await mo(),i.set(!1),t.focus())},ob=async(t,e,i)=>{await mo(),t&&!e&&ye(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-1v" role="menuitem" tabindex="0"> </li>'),By={hash:"s-1v",code:".item.s-1v{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-1v:hover{background:rgba(66,66,66,.5);color:var(--white)}"};function mm(t,e){B(e,!0),Q(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),O(()=>{var d;Ve(a,"aria-label",(d=e.ariaLabel)!=null?d:e.label),Ve(a,"data-testid",e.id),ve(l,e.label)}),b(t,a),H()}Ge(["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-1a"></ul>'),zy={hash:"s-1a",code:"ul.s-1a{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),Q(t,zy);let[i,o]=Ne(),r=()=>w(we,"$playerPhase",i),a=()=>w(ae,"$isLive$",i),l=()=>w(me,"$isPiPEnabled$",i),d=()=>w(X,"$chromecastState$",i),s=()=>w(ee,"$pictureInPictureApiIsActive$",i),u=()=>w(J,"$isLooped$",i),m=()=>w(Z,"$positionExact$",i),p=()=>w(z,"$additionalContextMenuItems$",i),v=h(e,"visible",3,!1),_=h(e,"position",19,()=>({top:0,left:0})),y=h(e,"playerContainerRef",3,void 0),$=h(e,"menuElementRef",15,void 0),x=q(0),I=q(0),T=be(),{pictureInPicture$:R}=_o(),A=Nt(),P=T.ui.contextMenu.visible$,E=T.ui.debugPanelVisible,z=T.ui.additionalContextMenuItems$,F=T.ui.t,U=T.actions.internal.togglePictureInPicture,X=T.state.chromecastState$,ae=T.state.isLive$,Z=T.state.positionExact$,re=T.state.isInteractive,J=T.state.looped$,we=T.playerPhase,{isEnabled$:me,isActive$:ee}=R,_e=f(()=>r()==="video"),Ce=f(()=>!!a()&&n(_e)),ge=f(()=>["thumb","LiveWaitingStart","LiveWaitingRecover","LiveWaitingRecord"].includes(r())),pe=f(()=>{var fe;return A.features.copyVideoLink&&((fe=T.callbacks)==null?void 0:fe.onCopyVideoLink)}),qe=f(()=>n(pe)&&!n(ge)&&!re&&!n(Ce)),G=f(()=>{var fe;return!!((fe=T.callbacks)!=null&&fe.onCopyEmbedCodeClicked)}),D=f(()=>l()&&d()!==ep.ChromecastState.CONNECTED&&!re&&n(_e)&&!ep.clientChecker.browser.isFirefox),Qe=f(()=>!re&&!n(ge)&&!n(Ce)),K=f(()=>A.features.videoRotate&&!re&&!n(ge)),se=f(()=>A.showSupport&&!s()),xe=f(()=>A.features.saveTraceInfoToFile),Be=()=>{var fe;P.set(!1),(fe=e.returnFocus)==null||fe.call(e)},tt=(fe,Oe)=>{if(!$()||!y())return;let ze=$().getBoundingClientRect(),St=y().getBoundingClientRect();N(x,fe-St.left),N(I,Oe-St.top),n(x)+ze.width>St.width&&N(x,St.width-ze.width),n(I)+ze.height>St.height&&N(I,St.height-ze.height),N(x,Math.max(n(x),0),!0),N(I,Math.max(n(I),0),!0)};De(()=>{(async()=>{if($()&&y()){await mo();let{top:Oe,left:ze,bottom:St,right:Gt}=_(),Tt=ze!=null?ze:0,ri=Oe!=null?Oe:0,ci=$().getBoundingClientRect();(0,qa.isNullable)(ze)&&!(0,qa.isNullable)(Gt)&&(Tt=Gt-ci.width),(0,qa.isNullable)(Oe)&&!(0,qa.isNullable)(St)&&(ri=St-ci.height),Tt=Math.max(Tt,0),ri=Math.max(ri,0),tt(Tt,ri)}})()});let ne=()=>{T.actions.internal.videoRotate()},ce=()=>{(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 Oe=new Blob([...fe],{type:"plain/text"}),ze=window.URL.createObjectURL(Oe);Ba(ze,"vk_player_debug_info","txt")}else Kl(T.actions.internal.getDebugTextData())},Ae=()=>{let fe=T.actions.internal.getTraceTextData(),Oe=new Blob([...fe],{type:"application/json"}),ze=window.URL.createObjectURL(Oe);Ba(ze,"vk_player_trace_info","json")},Je=()=>{E.set(!0)},Ee=async()=>{var fe;try{U()}finally{(fe=e.returnFocus)==null||fe.call(e)}},Te=()=>{T.actions.internal.setLooped(!u())},He=()=>{var fe,Oe;if(n(G)){let ze=(Oe=(fe=T.callbacks)==null?void 0:fe.onCopyEmbedCodeClicked)==null?void 0:Oe.call(fe);ze&&Kl(ze)}},Pt=(fe=!1)=>{var Oe,ze;if((Oe=T.callbacks)!=null&&Oe.onCopyVideoLink){let St=(ze=T.callbacks)==null?void 0:ze.onCopyVideoLink(fe,m());St&&Kl(St)}},Ct=f(()=>A.features.saveDebugInfoToFile?F("menu_save_debug"):F("menu_copy_debug")),Mt=f(()=>n(pe)?{id:"copy-link",weight:rs["copy-link"],label:F("menu_copy_video_link"),onClick:()=>Pt()}:void 0),ut=f(()=>n(qe)?{id:"copy-link-timestamp",weight:rs["copy-link-timestamp"],label:F("menu_copy_video_link_with_timestamp"),onClick:()=>Pt(!0)}:void 0),kt=f(()=>n(G)?{id:"copy-embed-code",weight:rs["copy-embed-code"],label:F("menu_copy_embed_code"),onClick:He}:void 0),Zt=f(()=>n(D)?{id:"pip",weight:rs.pip,label:s()?F("menu_pip_close"):F("menu_pip"),onClick:Ee}:void 0),At=f(()=>n(Qe)?{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),Bt=f(()=>n(K)?{id:"rotate",weight:rs.rotate,label:F("menu_video_rotate"),ariaLabel:F("aria_label_menu_rotate"),onClick:ne}:void 0),Wt=f(()=>n(se)?{id:"report",weight:rs.report,label:F("menu_report"),ariaLabel:`${F("menu_report")}. ${F("aria_label_new_tab_alert")}`,onClick:ce}:void 0),Y=f(()=>({id:"save-debug",weight:rs["save-debug"],label:n(Ct),onClick:Re})),Pe=f(()=>n(xe)?{id:"save-trace",weight:rs["save-trace"],label:F("menu_save_debug"),onClick:Ae}:void 0),le=f(()=>({id:"debug-info",weight:rs["debug-info"],label:F("menu_debug_overlay"),ariaLabel:F("aria_label_menu_debug_overlay"),onClick:Je})),$e=f(()=>[n(Mt),n(ut),n(kt),n(Zt),n(At),n(Bt),n(Wt),n(Y),n(Pe),n(le),...p()].filter(fe=>!!fe).sort(Ka));var Me=Le(),lt=ue(Me);{var wt=fe=>{var Oe=Uy();Oe.__contextmenu=[Fy],Oe.__keydown=[Hy,Be],_i(Oe,21,()=>n($e),ze=>ze.id,(ze,St)=>{mm(ze,{get id(){return n(St).id},get label(){return n(St).label},get ariaLabel(){return n(St).ariaLabel},get onClick(){return n(St).onClick},closeContextMenu:Be})}),S(Oe),je(Oe,ze=>$(ze),()=>$()),O(()=>{var ze,St;return Ke(Oe,`top: ${(ze=n(I))!=null?ze:""}px; left: ${(St=n(x))!=null?St:""}px;`)}),b(fe,Oe)};V(lt,fe=>{v()&&fe(wt)})}b(t,Me),H(),o()}Ge(["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-12"><canvas class="s-12"></canvas></div>'),Ky={hash:"s-12",code:".container.s-12{display:inline-block;height:16px;width:120px}canvas.s-12{margin-top:2px;transform:scaleY(-1)}"};function rc(t,e){B(e,!0),Q(t,Ky);let i=h(e,"values",19,()=>[]),o=q(void 0),r=q(null),a=16,l=120,d=60,s=l/d;Rt(()=>{n(o).width=l,n(o).height=a,N(r,n(o).getContext("2d"),!0)});function u(v,_,y,$,x){x===0&&(x=1),v.fillStyle="#fff",v.fillRect(_,y,$,x)}De(()=>{let v="";if(n(r)){let _=i()[0];for(let $=1;$<i().length;$++)i()[$]>_&&(_=i()[$]);n(r).clearRect(0,0,l,a);let y=d-1;for(let $=i().length-1;$>=0;$--){let x=y*s,I=_>0?a*(i()[$]/_):0;u(n(r),x,0,s,I),v=I+" "+v,y--}}});var m=Wy(),p=C(m);je(p,v=>N(o,v),()=>n(o)),S(m),b(t,m),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-i"><div class="s-i">Video id</div> <span> </span></div>'),Gy=L('<div class="s-i"><div class="s-i">VSID</div> <span> </span></div>'),Yy=L('<div class="s-i"><div class="s-i">Provider</div> <span> </span></div>'),jy=L('<div class="s-i"><div class="s-i">Streams</div> <span> </span></div>'),Xy=L('<div class="s-i"><div class="s-i">Viewport</div> <span> </span></div>'),Zy=L('<div class="s-i"><div class="s-i">Video size</div> <span> </span></div>'),Jy=L('<div class="s-i"><div class="s-i">CDN host</div> <span> </span></div>'),e0=L('<div class="s-i"><div class="s-i">Volume</div> <span> </span></div>'),t0=L('<div class="s-i"><div class="s-i">Position</div> <span> </span></div>'),i0=L('<div class="s-i"><div class="s-i">Buffer</div> <span> </span></div>'),o0=L('<div class="s-i"><div class="s-i">Nbuffer</div> <span> </span></div>'),n0=L('<div class="s-i"><div class="s-i">Live latency</div> <span> </span></div>'),r0=L('<div class="s-i"><div class="s-i">Segment</div> <span> </span></div>'),s0=L('<div class="s-i"><div class="s-i">Network</div> <!> <span> </span></div>'),a0=L('<div class="s-i"><div class="s-i">V bitrate</div> <!> <span> </span></div>'),l0=L('<div role="region"><button class="close s-i" title="закрыть">[x]</button> <div class="content s-i"><div class="s-i"><div class="s-i">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="s-i"><div class="s-i">Dropped</div> <span> </span></div> <!> <!> <div class="s-i"><div class="s-i">FPS</div> <!> <span> </span></div></div></div>'),d0={hash:"s-i",code:".container.s-i{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-i{left:16px;top:16px}button.close.s-i{background-color:transparent;border:none;color:#fff;cursor:pointer;outline:0;padding:0;position:absolute;right:5px;top:3px}.content.s-i{padding:5px}.content.s-i>div:where(.s-i)>div:where(.s-i){display:inline-block;padding:0 5px;text-align:right;width:60px}"};function sc(t,e){B(e,!0),Q(t,d0);let[i,o]=Ne(),r=()=>w(d,"$isMobile",i),a=be(),l=a.ui.debugPanelVisible,d=a.ui.isMobile,s=q(li(a.actions.internal.getDebugPanelData())),u=a.actions.internal.getVideoElement(),m=q(0),p=q(0),v=q(0),_=new Yl(60),y=new Yl(60),$=new Yl(60),x=q(li([])),I=q(li([])),T=q(li([])),R=j("aria_label_debug_panel");Rt(()=>{gm.safeStorage.set(Wd,"true"),a.actions.internal.startLogging(),u&&(N(p,u.getVideoPlaybackQuality().droppedVideoFrames,!0),N(m,u.getVideoPlaybackQuality().totalVideoFrames,!0));let Y=window.setInterval(()=>{N(s,a.actions.internal.getDebugPanelData(),!0)},500),Pe;return u&&(Pe=window.setInterval(()=>{if(u){N(p,u.getVideoPlaybackQuality().droppedVideoFrames,!0);let le=u.getVideoPlaybackQuality().totalVideoFrames;N(v,le-n(m)),N(m,le,!0),_.push(n(v)),n(s).speed&&y.push(n(s).speed),n(s).bitrate&&$.push(n(s).bitrate),N(x,_.getValuesFromBottom(),!0),N(I,y.getValuesFromBottom(),!0),N(T,$.getValuesFromBottom(),!0)}},1e3)),()=>{a.actions.internal.stopLogging(),clearInterval(Y),Pe&&clearInterval(Pe)}});var A=l0();let P;var E=C(A);E.__click=[qy,l];var z=k(E,2),F=C(z),U=k(C(F),2),X=C(U,!0);S(U),S(F);var ae=k(F,2);{var Z=Y=>{var Pe=Qy(),le=k(C(Pe),2),$e=C(le,!0);S(le),S(Pe),O(()=>ve($e,n(s).id)),b(Y,Pe)};V(ae,Y=>{n(s).id&&Y(Z)})}var re=k(ae,2);{var J=Y=>{var Pe=Gy(),le=k(C(Pe),2),$e=C(le,!0);S(le),S(Pe),O(()=>ve($e,n(s).vsid)),b(Y,Pe)};V(re,Y=>{n(s).vsid&&Y(J)})}var we=k(re,2);{var me=Y=>{var Pe=Yy(),le=k(C(Pe),2),$e=C(le,!0);S(le),S(Pe),O(()=>ve($e,n(s).provider)),b(Y,Pe)};V(we,Y=>{n(s).provider&&Y(me)})}var ee=k(we,2);{var _e=Y=>{var Pe=jy(),le=k(C(Pe),2),$e=C(le);S(le),S(Pe),O(()=>{var Me,lt;return ve($e,`Video: ${(Me=n(s).videoCodec||"")!=null?Me:""} ${n(s).hdr?"(HDR)":""}
|
|
54
|
+
Try switching the quality to Auto.`,double_forward_label:"2x",preview_track_notification_text:"pull up to open precise rewind",preview_track_close_tooltip:"dismiss precise rewind"},q_=J1;var Os=new Map;Os.set(Fl.InterfaceLanguage.EN,q_);Os.set(Fl.InterfaceLanguage.RU,K_);var Q_=new Map,nm=({language:t,pack:e,fallback:i})=>{if(Os.has(t)){let o=Os.get(t);Os.set(t,{...o,...e})}else Os.set(t,e);Q_.set(t,i)},rm=t=>Os.has(t),sm=(t,e,i,o)=>{var l;let r=Os.get(t),a=r==null?void 0:r[e];if((0,Fl.isNullable)(a)){let d=(l=Q_.get(t))!=null?l:o,s=d?Os.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},Y=(t,e)=>{let{interfaceLanguage$:i}=be(),o=ye(i),r=Vt();return sm(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=Y("video360");ho(),Je(t,{width:"76",height:"45",get ariaLabel(){return i},testId:"video-360-icon",shadow:!0,children:(o,r)=>{var a=ey();b(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:G_(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function G_(t){return(t&&t.message||"No error message").split(`
|
|
56
|
+
`).filter(i=>!!i)[0]}function ay(t){try{let e=sy(t);if(e)return e}catch(e){}return{value:G_(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 Y_(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=>Y_(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=>Y_(i,o)):!1}getEventFilterUrl(e){try{if(e.exception){let i=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return i&&i[i.length-1].filename||null}return null}catch(i){return null}}extendState(e){this._state=Object.keys(e).reduce((i,o)=>{let r=this._state[o],a=Array.isArray(r)?r:null,l=e[o],d=Array.isArray(l)?l:null;return{...i,[o]:a||d?[...a||[],...d||[]]:{...typeof r!="string"?r:{},...typeof l!="string"?l:{}}}},this._state)}setKeyState(e,i){this._state[e]=i}};var Ua=require("@vkontakte/videoplayer-shared/es2018");var Qu=null,za=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 Ua.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:m,blackErrorCategoryList:p}=l,{errorType:v,category:_}=i;if((0,Ua.isNonNullable)(_)&&p.includes(_)||(0,Ua.isNonNullable)(v)&&m.includes(v))return;if(Math.random()<=d||(0,Ua.isNonNullable)(_)&&u.includes(_)||(0,Ua.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($){console.error($)}}}static getInstance(){return Qu}};var os=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(os||{});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(),j_=(t,e)=>e?!0:t.fullscreenEnabled||!!t.webkitFullscreenEnabled||!!t.mozFullscreenEnabled||!!t.msFullscreenEnabled,X_=t=>{let e=t;e!=null&&e.webkitExitFullscreen&&(e==null||e.webkitExitFullscreen())},Xd=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},aa=()=>!!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)},Z_=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 am=require("@vkontakte/videoplayer-core/es2018"),J_=()=>({title:Y("hotkey_map_modal_title"),closeBtnText:Y("hotkey_map_modal_close_btn_text"),groups:[{title:Y("hotkey_map_group_title_common"),items:[{description:Y("hotkey_map_item_mute_description"),value:Y("hotkey_map_item_mute_value")},{description:Y("hotkey_map_item_volume_up_description"),value:Y("hotkey_map_item_volume_up_value")},{description:Y("hotkey_map_item_volume_down_description"),value:Y("hotkey_map_item_volume_down_value")},{description:Y("hotkey_map_item_pip_description"),value:Y("hotkey_map_item_pip_value")},{description:Y("hotkey_map_item_full_screen_description"),value:Y("hotkey_map_item_full_screen_value")},{description:Y("hotkey_map_item_show_context_menu_description"),value:Y("hotkey_map_item_show_context_menu_value")},{description:Y("hotkey_map_item_show_hotkey_map_description"),value:Y("hotkey_map_item_show_hotkey_map_value")}]},{title:Y("hotkey_map_group_title_playback"),items:[{description:Y("hotkey_map_item_play_toggle_description"),value:Y("hotkey_map_item_play_toggle_value")},{description:Y("hotkey_map_item_seek_backward_description"),value:Y("hotkey_map_item_seek_backward_value")},{description:Y("hotkey_map_item_seek_forward_description"),value:Y("hotkey_map_item_seek_forward_value")},{description:Y("hotkey_map_item_fast_seek_backward_description"),value:Y("hotkey_map_item_fast_seek_backward_value")},{description:Y("hotkey_map_item_fast_seek_forward_description"),value:Y("hotkey_map_item_fast_seek_forward_value")},{description:Y("hotkey_map_item_rate_down_description"),value:Y("hotkey_map_item_rate_down_value")},{description:Y("hotkey_map_item_rate_up_description"),value:Y("hotkey_map_item_rate_up_value")},{description:Y("hotkey_map_item_prev_frame_description"),value:Y("hotkey_map_item_prev_frame_value")},{description:Y("hotkey_map_item_next_frame_description"),value:Y("hotkey_map_item_next_frame_value")},{description:Y("hotkey_map_item_jump_seek_description"),value:Y("hotkey_map_item_jump_seek_value")},{description:Y("hotkey_map_item_next_video_description"),value:Y("hotkey_map_item_next_video_value")},{description:Y("hotkey_map_item_prev_video_description"),value:Y("hotkey_map_item_prev_video_value")}]},{title:Y("hotkey_map_group_title_subtitles"),items:[{description:Y("hotkey_map_item_subtitles_toggle_description"),value:Y("hotkey_map_item_subtitles_toggle_value")}]},{title:Y("hotkey_map_group_title_episodes"),items:[{description:Y("hotkey_map_item_prev_episode_description"),value:am.clientChecker.device.isApple?Y("hotkey_map_item_prev_episode_mac_value"):Y("hotkey_map_item_prev_episode_pc_value")},{description:Y("hotkey_map_item_next_episode_description"),value:am.clientChecker.device.isApple?Y("hotkey_map_item_next_episode_mac_value"):Y("hotkey_map_item_next_episode_pc_value")}]}]});var Bs=require("@vkontakte/videoplayer-shared/es2018"),eb=require("@vkontakte/videoplayer-core/es2018"),Wa=class{constructor({enabled:e=!0}={enabled:!0}){this.isRequested=!1;this.videoElement=void 0;this.playerContainer=void 0;this.externalEventHandlers={};this.eventHandlers={enterpictureinpicture:this.onEnterPictureInPicture.bind(this),leavepictureinpicture:this.onLeavePictureInPicture.bind(this),resize:(0,Bs.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new Bs.ValueSubject(!1),isEnabled$:new Bs.ValueSubject(!1),type:0};this.info.isEnabled$=new Bs.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(eb.clientChecker.browser.isSafari&&e&&e!==i){let r=this.eventHandlers.leavepictureinpicture,a=0,l=()=>{(0,Bs.getWindow)().clearTimeout(a),e.removeEventListener("leavepictureinpicture",d)},d=s=>(r(s),l());e.addEventListener("leavepictureinpicture",d),a=(0,Bs.getWindow)().setTimeout(l,1e3)}}};function Ka(t){return t instanceof Wa}var zl=require("@vkontakte/videoplayer-shared/es2018");function dm(t,e){B(e,!1);let i=be();Mt(()=>{i.getAdmanWrapper().startPostroll()}),ho(),H()}var tb=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 Rr(t,e){B(e,!0);let i=h(e,"direction",3,"left"),o=h(e,"useBtnColor",3,!1),r=f(()=>["up","down"].includes(i())),a=f(()=>["right","down"].includes(i())),l=f(()=>`chevron-icon--${i()}`),d=f(()=>(()=>{let m="";return n(a)&&(m+="transform: rotate(180deg);"),m.length?m:void 0})()),s=f(()=>o()?sa:"currentColor"),u=f(()=>n(r)?"7":"16");Je(t,{width:"12",get height(){return n(u)},get fill(){return n(s)},get testId(){return n(l)},get style(){return n(d)},children:(m,p)=>{var v=Me(),_=ue(v);{var y=x=>{var I=cy();b(x,I)},$=x=>{var I=uy();b(x,I)};V(_,x=>{n(r)?x(y):x($,!1)})}b(m,v)},$$slots:{default:!0}}),H()}var py=(t,e,i)=>{t.stopPropagation(),n(e)&&i()()},fy=L('<div class="skip s-1g"> <!></div>'),my=L("<div><!></div>"),vy={hash:"s-1g",code:".container.s-1g{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-1g{bottom:14px;font-size:15px;max-width:142px;top:unset}.skip.s-1g{align-items:flex-end;display:flex;gap:4px;white-space:nowrap}.skippable.s-1g{color:var(--white);cursor:pointer}.skippable.s-1g:hover{color:hsla(0,0%,100%,.75)}"};function cm(t,e){B(e,!0),Q(t,vy);let[i,o]=Ne(),r=()=>w(u,"$isMobile",i),a=h(e,"position",3,0),l=h(e,"secondsToWatchBeforeSkip",3,0),d=h(e,"skipAd",3,tb.noop),u=be().ui.isMobile,m=f(()=>a()>0&&a()>=l());var p=my();let v;p.__click=[py,m,d];var _=C(p);{var y=x=>{var I=fy(),T=C(I),R=k(T);Rr(R,{direction:"right"}),S(I),O(A=>ve(T,`${A!=null?A:""} `),[()=>Y("skip_ads_now")]),b(x,I)},$=x=>{var I=gs();O(T=>ve(I,T),[()=>Y("skip_ads_after",{time:Math.ceil(l()-a()).toFixed(0)})]),b(x,I)};V(_,x=>{n(m)?x(y):x($,!1)})}S(p),O(x=>v=oe(p,1,"container s-1g",null,v,x),[()=>({"container-mobile":r(),skippable:n(m)})]),b(t,p),H(),o()}Ye(["click"]);var gy=L('<button class="go-to-site s-1h"> </button>'),hy={hash:"s-1h",code:"button.go-to-site.s-1h{background:#fff;border:none;border-radius:6px;bottom:14px;color:#000;font-size:15px;left:16px;padding:6px 10px;pointer-events:none;position:absolute}"};function um(t,e){B(e,!1),Q(t,hy),ho();var i=gy(),o=C(i,!0);S(i),O(r=>ve(o,r),[()=>Y("visit_advertiser")],Tn),b(t,i),H()}var _y=L('<div class="top-gradient-mobile s-k"></div>'),by=L('<div class="container s-k"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),$y={hash:"s-k",code:".container.s-k{height:100%;width:100%}.top-gradient-mobile.s-k{background:linear-gradient(1turn,transparent,rgba(0,0,0,.05) 12%,rgba(0,0,0,.15) 25%,rgba(0,0,0,.3) 45%,rgba(0,0,0,.4) 57%,rgba(0,0,0,.5) 77%,rgba(0,0,0,.55) 88%,rgba(0,0,0,.65));height:80px;left:0;pointer-events:none;position:absolute;top:0;width:100%}"};function Jd(t,e){B(e,!0),Q(t,$y);let[i,o]=Ne(),r=()=>w(U,"$canSkipAd",i),a=()=>w(F,"$adPlaybackState",i),l=()=>w(R,"$isMobile",i),d=()=>w(X,"$adPosition",i),s=()=>w(ae,"$secondsToWatchBeforeSkipAd",i),u=()=>w(T,"$isVideoEnded",i),m=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),$=h(e,"adsJson",3,void 0),x=be(),I=Vt(),T=x.state.isEnded$,R=x.ui.isMobile,A=I.ads.isMobileGoToSiteButton,P=q(void 0),E=q(void 0),z=!1,F=x.ads.playbackState,U=x.ads.canSkip,X=x.ads.position,ae=x.ads.secondsToWatchBeforeSkip,Z=f(()=>r()&&a()!=="inactive"),re=f(()=>l()&&a()!=="inactive"&&A);Mt(()=>{let D=x.getAdmanWrapper();if(zl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[(0,zl.now)(),m()]}),!m()){D.onAdmanLoadingError();return}let Ge=()=>{var Ae;let{width:Be,height:ot}=ye(x.ui.playerSize),ne=ye(x.ui.isFullscreen),ce=(Ae=v())!=null?Ae:ye(x.ui.isAutoplay),Re=I.ads.paramsOverride;return{width:Be,height:ot,isFullscreen:ne,isAutoplay:ce,adsContainer:n(P),adsVideoElement:n(E),slotId:m(),params:p(),paramsOverride:Re,duration:_(),externalApi:y(),json:$()}},K=async Be=>{Be&&await mo();let ot=Ge();await D.initAdman(ot),z=!0},se=new AbortController,xe=()=>{se.abort()};return window.AdmanHTML?K(!0).catch(()=>{D.onAdmanLoadingError()}):D.loadAdman(se.signal).then(()=>K(!1)).catch(()=>{D.onAdmanLoadingError()}),()=>{zl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[(0,zl.now)(),m()]}),!z&&xe()}});var J=by(),we=C(J);{var me=D=>{var Ge=_y();b(D,Ge)};V(we,D=>{l()&&D(me)})}var ee=k(we,2);Ze(ee,D=>N(E,D),()=>n(E));var _e=k(ee,2);{var Ce=D=>{cm(D,{get position(){return d()},get secondsToWatchBeforeSkip(){return s()},get skipAd(){return x.actions.internal.skipAd}})};V(_e,D=>{n(Z)&&D(Ce)})}var ge=k(_e,2);{var pe=D=>{dm(D,{})};V(ge,D=>{u()&&D(pe)})}var Qe=k(ge,2);{var G=D=>{um(D,{})};V(Qe,D=>{n(re)&&D(G)})}S(J),Ze(J,D=>N(P,D),()=>n(P)),b(t,J),H(),o()}var jo=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=f(()=>i()?"live-active-icon":"live-icon"),r=f(()=>i()?"var(--timeline-slider-filled-active-live-bg, #FF3347)":void 0),a="M8 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2H9V6a1 1 0 0 0-1-1m7 1a1 1 0 1 1 2 0v8a1 1 0 1 1-2 0zm15-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2h-3v-2h3a1 1 0 1 0 0-2h-3V7h3a1 1 0 1 0 0-2zm-8.32 9.31-2.55-7.82a1 1 0 0 1-.12-.37L19 6.1a1 1 0 1 1 2-.2l2 6.4 2-6.4a1 1 0 0 1 2 .2v.02a1 1 0 0 1-.13.37l-2.55 7.82a1 1 0 0 1-.95.69h-.74a1 1 0 0 1-.95-.69";Je(t,{width:"42",height:"20",get testId(){return n(o)},get fill(){return n(r)},children:(l,d)=>{var s=xy(),u=ue(s),m=k(u);{var p=v=>{var _=yy();Ve(_,"d",a),b(v,_)};V(m,v=>{i()&&v(p)})}O(()=>Ve(u,"d",`M5 0h32s5 0 5 5v10s0 5 -5 5h-32s-5 0 -5 -5v-10s0 -5 5 -5${i()?"":"M5.5 2h31s3.5 0 3.5 3.5v9s0 3.5-3.5 3.5h-31s-3.5 0-3.5-3.5v-9s0-3.5 3.5-3.5"+a}z`)),b(l,s)},$$slots:{default:!0}})}var wy=L('<div class="equalizer s-a"><div class="col s-a"></div> <div class="col s-a"></div> <div class="col s-a"></div></div>'),Sy=L('<div class="live-icon s-a"><!></div>'),Cy=L('<span class="text s-a"> </span>'),Ty=L("<div><!> <!></div>"),Iy={hash:"s-a",code:".wrapper.s-a{background-color:var(--black-alpha-40);border-radius:4px;padding:2px 6px;transition:visibility var(--controls-transition-duration),opacity var(--controls-transition-duration);white-space:nowrap}.wrapper.live.s-a{background:var(--red);border-radius:2px;font-size:0;height:20px;line-height:20px;padding:0 7px}.equalizer.s-a{display:inline-block;height:10px;margin-right:4px;margin-top:-4px;position:relative;vertical-align:middle;width:10px}.live.s-a .equalizer:where(.s-a){margin-top:-2px}.equalizer.s-a .col:where(.s-a){animation:1.5s linear infinite alternate;animation-play-state:paused;background:var(--btn-color,--white);bottom:0;height:10px;margin-right:2px;position:absolute;transform-origin:50% 100%;width:2px}.playing.s-a .equalizer:where(.s-a) .col:where(.s-a){animation-play-state:running}.equalizer.s-a .col:where(.s-a):first-child{animation-name:s-a-thumb-timer-equalizer-col1;left:0}.equalizer.s-a .col:where(.s-a):nth-child(2){animation-name:s-a-thumb-timer-equalizer-col2;left:3px}.equalizer.s-a .col:where(.s-a):nth-child(3){animation-name:s-a-thumb-timer-equalizer-col3;left:6px}.live-icon.s-a{display:inline-block;height:20px;margin:0 -7px;vertical-align:middle;width:42px}@keyframes s-a-thumb-timer-equalizer-col1{0%{transform:scaleY(.1)}25%{transform:scaleY(.8)}50%{transform:scaleY(.4)}75%{transform:scaleY(.6)}to{transform:scaleY(.1)}}@keyframes s-a-thumb-timer-equalizer-col2{0%{transform:scaleY(1)}25%{transform:scaleY(.3)}50%{transform:scaleY(.9)}75%{transform:scaleY(.6)}to{transform:scaleY(1)}}@keyframes s-a-thumb-timer-equalizer-col3{0%{transform:scaleY(.6)}25%{transform:scaleY(.9)}50%{transform:scaleY(.1)}75%{transform:scaleY(.9)}to{transform:scaleY(.6)}}.text.s-a{color:var(--controls-time);font-size:13px;font-weight:500;line-height:16px}"};function tc(t,e){Q(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();b(v,_)};V(d,v=>{i()&&v(s)})}var u=k(d,2);{var m=v=>{var _=Sy(),y=C(_);ec(y,{isActive:!0}),S(_),b(v,_)},p=v=>{var _=Cy(),y=C(_,!0);S(_),O(()=>ve(y,e.time)),b(v,_)};V(u,v=>{o()?v(m):v(p,!1)})}S(a),O(v=>l=oe(a,1,"wrapper s-a",null,l,v),[()=>({live:o(),playing:r()})]),b(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>'),Py={hash:"s-l",code:".thumb-timer.s-l{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),Q(t,Py);let[i,o]=Ne(),r=()=>w(m,"$disabled",i),a=h(e,"isHidden",3,!1),l=h(e,"isLive",3,!1),d=h(e,"isPlaying",3,!1),s=Vt(),u=f(()=>jo(e.duration-e.position)),m=de(!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),Ds(p,()=>Wl(a()&&s.features.usePerformanceFix,m,s.disableInvisibleComponentsTimeout)),O(y=>v=oe(p,1,"thumb-timer s-l",null,v,y),[()=>({"out-of-flow":r(),hidden:a()})]),b(t,p),H(),o()}var Kl=t=>{if(!navigator.clipboard){ib(t);return}navigator.clipboard.writeText(t).catch(()=>ib(t))};function ib(t){if(document.queryCommandSupported&&document.queryCommandSupported("copy")){let e=document.createElement("textarea");e.textContent=t,e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e),e.select();try{document.execCommand("copy")}finally{document.body.removeChild(e)}}}var ep=require("@vkontakte/videoplayer-core/es2018");var fm=require("@vkontakte/videoplayer-core/es2018");var pm="focus-hidden";var Nr=t=>{t.stopPropagation(),t.preventDefault()},mm=t=>{var e,i;(i=(e=t.parentNode)==null?void 0:e.firstElementChild)==null||i.classList.remove(pm)},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"},ob=t=>t.code==="Escape",Ry=t=>t.code==="ArrowLeft",oc=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},nb=t=>{My(t)?(Nr(t),Ly(t.target)):Vy(t)&&(Nr(t),Ay(t.target))},ca=t=>!fm.clientChecker.device.isAndroid&&(t==null?void 0:t.detail)===0||fm.clientChecker.device.isAndroid&&(t==null?void 0:t.pointerType)==="",ql=async(t,e,i)=>{await mo(),t&&!t.classList.contains("opened")&&!e&&ye(i)&&(await mo(),i.set(!1),t.focus())},rb=async(t,e,i)=>{await mo(),t&&!e&&ye(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(pm,!i),a==null||a.focus()}},sb=async(t,e)=>{setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)},Zu=(t,e)=>{nb(t),mm(t.target),ob(t)&&(Nr(t),e())},Ju=async(t,e)=>{oc(t,["ArrowRight"])&&(Nr(t),e())},ab=async(t,e,i)=>{if(nb(t),Ry(t)){Nr(t),e();return}ob(t)&&(Nr(t),i())},Ql=(t,e)=>{oc(t)&&(Nr(t),e())},lb=(t,e,i)=>{if(oc(t))Nr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),Nr(t);return}o==="ArrowRight"&&!e&&(i(!0),Nr(t))}},db=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,r=e.top+i;return{right:o,bottom:r}},cb=t=>{if(!t)return{top:0,left:0};let e=t.getBoundingClientRect(),i=-58,o=8,r=e.left+o;return{bottom:e.bottom+i,left:r}};var Ga=require("@vkontakte/videoplayer-shared/es2018");var ns={"copy-link":100,"copy-link-timestamp":200,"copy-embed-code":300,pip:400,"video-loop":500,rotate:600,report:700,"save-debug":800,"save-trace":900,"debug-info":1e3};var vm=require("@vkontakte/videoplayer-shared/es2018");var Dy=(t,e)=>{Ql(t,()=>e())},Oy=L('<li class="item s-1k" role="menuitem" tabindex="0"> </li>'),By={hash:"s-1k",code:".item.s-1k{color:hsla(0,0%,100%,.72);cursor:pointer;display:block;font-size:13px;letter-spacing:-.14px;line-height:18px;padding:8px 16px;position:relative;white-space:nowrap}.item.s-1k:hover{background:rgba(66,66,66,.5);color:var(--white)}"};function gm(t,e){B(e,!0),Q(t,By);let i=h(e,"onClick",3,vm.noop),o=h(e,"closeContextMenu",3,vm.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),O(()=>{var d;Ve(a,"aria-label",(d=e.ariaLabel)!=null?d:e.label),Ve(a,"data-testid",e.id),ve(l,e.label)}),b(t,a),H()}Ye(["click","keydown"]);var Qa=(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" data-testid="context-menu" class="s-r"></ul>'),zy={hash:"s-r",code:"ul.s-r{background:rgba(0,0,0,.72);border-radius:8px;list-style:none;margin:0;max-height:100%;max-width:100%;overflow-x:hidden;overflow-y:auto;padding:6px 0;position:absolute;transition:visibility .1s,opacity .1s;z-index:var(--context-menu-z-index)}"};function hm(t,e){B(e,!0),Q(t,zy);let[i,o]=Ne(),r=()=>w(we,"$playerPhase",i),a=()=>w(ae,"$isLive$",i),l=()=>w(me,"$isPiPEnabled$",i),d=()=>w(X,"$chromecastState$",i),s=()=>w(ee,"$pictureInPictureApiIsActive$",i),u=()=>w(J,"$isLooped$",i),m=()=>w(Z,"$positionExact$",i),p=()=>w(z,"$additionalContextMenuItems$",i),v=h(e,"visible",3,!1),_=h(e,"position",19,()=>({top:0,left:0})),y=h(e,"playerContainerRef",3,void 0),$=h(e,"menuElementRef",15,void 0),x=q(0),I=q(0),T=be(),{pictureInPicture$:R}=_o(),A=Vt(),P=T.ui.contextMenu.visible$,E=T.ui.debugPanelVisible,z=T.ui.additionalContextMenuItems$,F=T.ui.t,U=T.actions.internal.togglePictureInPicture,X=T.state.chromecastState$,ae=T.state.isLive$,Z=T.state.positionExact$,re=T.state.isInteractive,J=T.state.looped$,we=T.playerPhase,{isEnabled$:me,isActive$:ee}=R,_e=f(()=>r()==="video"),Ce=f(()=>!!a()&&n(_e)),ge=f(()=>["thumb","LiveWaitingStart","LiveWaitingRecover","LiveWaitingRecord"].includes(r())),pe=f(()=>{var fe;return A.features.copyVideoLink&&((fe=T.callbacks)==null?void 0:fe.onCopyVideoLink)}),Qe=f(()=>n(pe)&&!n(ge)&&!re&&!n(Ce)),G=f(()=>{var fe;return!!((fe=T.callbacks)!=null&&fe.onCopyEmbedCodeClicked)}),D=f(()=>l()&&d()!==ep.ChromecastState.CONNECTED&&!re&&n(_e)&&!ep.clientChecker.browser.isFirefox),Ge=f(()=>!re&&!n(ge)&&!n(Ce)),K=f(()=>A.features.videoRotate&&!re&&!n(ge)),se=f(()=>A.showSupport&&!s()),xe=f(()=>A.features.saveTraceInfoToFile),Be=()=>{var fe;P.set(!1),(fe=e.returnFocus)==null||fe.call(e)},ot=(fe,Fe)=>{if(!$()||!y())return;let Ue=$().getBoundingClientRect(),Tt=y().getBoundingClientRect();N(x,fe-Tt.left),N(I,Fe-Tt.top),n(x)+Ue.width>Tt.width&&N(x,Tt.width-Ue.width),n(I)+Ue.height>Tt.height&&N(I,Tt.height-Ue.height),N(x,Math.max(n(x),0),!0),N(I,Math.max(n(I),0),!0)};De(()=>{(async()=>{if($()&&y()){await mo();let{top:Fe,left:Ue,bottom:Tt,right:oi}=_(),xt=Ue!=null?Ue:0,Gt=Fe!=null?Fe:0,ai=$().getBoundingClientRect();(0,Ga.isNullable)(Ue)&&!(0,Ga.isNullable)(oi)&&(xt=oi-ai.width),(0,Ga.isNullable)(Fe)&&!(0,Ga.isNullable)(Tt)&&(Gt=Tt-ai.height),xt=Math.max(xt,0),Gt=Math.max(Gt,0),ot(xt,Gt)}})()});let ne=()=>{T.actions.internal.videoRotate()},ce=()=>{(0,Ga.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 Fe=new Blob([...fe],{type:"plain/text"}),Ue=window.URL.createObjectURL(Fe);Fa(Ue,"vk_player_debug_info","txt")}else Kl(T.actions.internal.getDebugTextData())},Ae=()=>{let fe=T.actions.internal.getTraceTextData(),Fe=new Blob([...fe],{type:"application/json"}),Ue=window.URL.createObjectURL(Fe);Fa(Ue,"vk_player_trace_info","json")},et=()=>{E.set(!0)},Ee=async()=>{var fe;try{U()}finally{(fe=e.returnFocus)==null||fe.call(e)}},Te=()=>{T.actions.internal.setLooped(!u())},He=()=>{var fe,Fe;if(n(G)){let Ue=(Fe=(fe=T.callbacks)==null?void 0:fe.onCopyEmbedCodeClicked)==null?void 0:Fe.call(fe);Ue&&Kl(Ue)}},Et=(fe=!1)=>{var Fe,Ue;if((Fe=T.callbacks)!=null&&Fe.onCopyVideoLink){let Tt=(Ue=T.callbacks)==null?void 0:Ue.onCopyVideoLink(fe,m());Tt&&Kl(Tt)}},St=f(()=>A.features.saveDebugInfoToFile?F("menu_save_debug"):F("menu_copy_debug")),Ot=f(()=>n(pe)?{id:"copy-link",weight:ns["copy-link"],label:F("menu_copy_video_link"),onClick:()=>Et()}:void 0),lt=f(()=>n(Qe)?{id:"copy-link-timestamp",weight:ns["copy-link-timestamp"],label:F("menu_copy_video_link_with_timestamp"),onClick:()=>Et(!0)}:void 0),Pt=f(()=>n(G)?{id:"copy-embed-code",weight:ns["copy-embed-code"],label:F("menu_copy_embed_code"),onClick:He}:void 0),Xt=f(()=>n(D)?{id:"pip",weight:ns.pip,label:s()?F("menu_pip_close"):F("menu_pip"),onClick:Ee}:void 0),kt=f(()=>n(Ge)?{id:"video-loop",weight:ns["video-loop"],label:u()?F("menu_video_loop_off"):F("menu_video_loop_on"),ariaLabel:F("aria_label_menu_loop"),onClick:Te}:void 0),Dt=f(()=>n(K)?{id:"rotate",weight:ns.rotate,label:F("menu_video_rotate"),ariaLabel:F("aria_label_menu_rotate"),onClick:ne}:void 0),zt=f(()=>n(se)?{id:"report",weight:ns.report,label:F("menu_report"),ariaLabel:`${F("menu_report")}. ${F("aria_label_new_tab_alert")}`,onClick:ce}:void 0),j=f(()=>({id:"save-debug",weight:ns["save-debug"],label:n(St),onClick:Re})),Pe=f(()=>n(xe)?{id:"save-trace",weight:ns["save-trace"],label:F("menu_save_debug"),onClick:Ae}:void 0),le=f(()=>({id:"debug-info",weight:ns["debug-info"],label:F("menu_debug_overlay"),ariaLabel:F("aria_label_menu_debug_overlay"),onClick:et})),$e=f(()=>[n(Ot),n(lt),n(Pt),n(Xt),n(kt),n(Dt),n(zt),n(j),n(Pe),n(le),...p()].filter(fe=>!!fe).sort(Qa));var Le=Me(),ct=ue(Le);{var Ct=fe=>{var Fe=Uy();Fe.__contextmenu=[Fy],Fe.__keydown=[Hy,Be],_i(Fe,21,()=>n($e),Ue=>Ue.id,(Ue,Tt)=>{gm(Ue,{get id(){return n(Tt).id},get label(){return n(Tt).label},get ariaLabel(){return n(Tt).ariaLabel},get onClick(){return n(Tt).onClick},closeContextMenu:Be})}),S(Fe),Ze(Fe,Ue=>$(Ue),()=>$()),O(()=>{var Ue,Tt;return Ke(Fe,`top: ${(Ue=n(I))!=null?Ue:""}px; left: ${(Tt=n(x))!=null?Tt:""}px;`)}),b(fe,Fe)};V(ct,fe=>{v()&&fe(Ct)})}b(t,Le),H(),o()}Ye(["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-1i"><canvas class="s-1i"></canvas></div>'),Ky={hash:"s-1i",code:".container.s-1i{display:inline-block;height:16px;width:120px}canvas.s-1i{margin-top:2px;transform:scaleY(-1)}"};function rc(t,e){B(e,!0),Q(t,Ky);let i=h(e,"values",19,()=>[]),o=q(void 0),r=q(null),a=16,l=120,d=60,s=l/d;Mt(()=>{n(o).width=l,n(o).height=a,N(r,n(o).getContext("2d"),!0)});function u(v,_,y,$,x){x===0&&(x=1),v.fillStyle="#fff",v.fillRect(_,y,$,x)}De(()=>{let v="";if(n(r)){let _=i()[0];for(let $=1;$<i().length;$++)i()[$]>_&&(_=i()[$]);n(r).clearRect(0,0,l,a);let y=d-1;for(let $=i().length-1;$>=0;$--){let x=y*s,I=_>0?a*(i()[$]/_):0;u(n(r),x,0,s,I),v=I+" "+v,y--}}});var m=Wy(),p=C(m);Ze(p,v=>N(o,v),()=>n(o)),S(m),b(t,m),H()}var _m=require("@vkontakte/videoplayer-shared/es2018");var qy=(t,e)=>{t.stopPropagation(),_m.safeStorage.remove(Wd),e.set(!1)},Qy=L('<div class="s-o"><div class="s-o">Video id</div> <span> </span></div>'),Gy=L('<div class="s-o"><div class="s-o">VSID</div> <span> </span></div>'),Yy=L('<div class="s-o"><div class="s-o">Provider</div> <span> </span></div>'),jy=L('<div class="s-o"><div class="s-o">Streams</div> <span> </span></div>'),Xy=L('<div class="s-o"><div class="s-o">Viewport</div> <span> </span></div>'),Zy=L('<div class="s-o"><div class="s-o">Video size</div> <span> </span></div>'),Jy=L('<div class="s-o"><div class="s-o">CDN host</div> <span> </span></div>'),e0=L('<div class="s-o"><div class="s-o">Volume</div> <span> </span></div>'),t0=L('<div class="s-o"><div class="s-o">Position</div> <span> </span></div>'),i0=L('<div class="s-o"><div class="s-o">Buffer</div> <span> </span></div>'),o0=L('<div class="s-o"><div class="s-o">Nbuffer</div> <span> </span></div>'),n0=L('<div class="s-o"><div class="s-o">Live latency</div> <span> </span></div>'),r0=L('<div class="s-o"><div class="s-o">Segment</div> <span> </span></div>'),s0=L('<div class="s-o"><div class="s-o">Network</div> <!> <span> </span></div>'),a0=L('<div class="s-o"><div class="s-o">V bitrate</div> <!> <span> </span></div>'),l0=L('<div role="region"><button class="close s-o" title="закрыть">[x]</button> <div class="content s-o"><div class="s-o"><div class="s-o">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="s-o"><div class="s-o">Dropped</div> <span> </span></div> <!> <!> <div class="s-o"><div class="s-o">FPS</div> <!> <span> </span></div></div></div>'),d0={hash:"s-o",code:".container.s-o{background:rgba(28,28,28,.8);border-radius:4px;color:#fff;font-size:10px;left:20px;min-width:160px;position:absolute;text-align:left;top:45px;user-select:text;z-index:var(--debug-panel-z-index)}.container-mobile.s-o{left:16px;top:16px}button.close.s-o{background-color:transparent;border:none;color:#fff;cursor:pointer;outline:0;padding:0;position:absolute;right:5px;top:3px}.content.s-o{padding:5px}.content.s-o>div:where(.s-o)>div:where(.s-o){display:inline-block;padding:0 5px;text-align:right;width:60px}"};function sc(t,e){B(e,!0),Q(t,d0);let[i,o]=Ne(),r=()=>w(d,"$isMobile",i),a=be(),l=a.ui.debugPanelVisible,d=a.ui.isMobile,s=q(ri(a.actions.internal.getDebugPanelData())),u=a.actions.internal.getVideoElement(),m=q(0),p=q(0),v=q(0),_=new Yl(60),y=new Yl(60),$=new Yl(60),x=q(ri([])),I=q(ri([])),T=q(ri([])),R=Y("aria_label_debug_panel");Mt(()=>{_m.safeStorage.set(Wd,"true"),a.actions.internal.startLogging(),u&&(N(p,u.getVideoPlaybackQuality().droppedVideoFrames,!0),N(m,u.getVideoPlaybackQuality().totalVideoFrames,!0));let j=window.setInterval(()=>{N(s,a.actions.internal.getDebugPanelData(),!0)},500),Pe;return u&&(Pe=window.setInterval(()=>{if(u){N(p,u.getVideoPlaybackQuality().droppedVideoFrames,!0);let le=u.getVideoPlaybackQuality().totalVideoFrames;N(v,le-n(m)),N(m,le,!0),_.push(n(v)),n(s).speed&&y.push(n(s).speed),n(s).bitrate&&$.push(n(s).bitrate),N(x,_.getValuesFromBottom(),!0),N(I,y.getValuesFromBottom(),!0),N(T,$.getValuesFromBottom(),!0)}},1e3)),()=>{a.actions.internal.stopLogging(),clearInterval(j),Pe&&clearInterval(Pe)}});var A=l0();let P;var E=C(A);E.__click=[qy,l];var z=k(E,2),F=C(z),U=k(C(F),2),X=C(U,!0);S(U),S(F);var ae=k(F,2);{var Z=j=>{var Pe=Qy(),le=k(C(Pe),2),$e=C(le,!0);S(le),S(Pe),O(()=>ve($e,n(s).id)),b(j,Pe)};V(ae,j=>{n(s).id&&j(Z)})}var re=k(ae,2);{var J=j=>{var Pe=Gy(),le=k(C(Pe),2),$e=C(le,!0);S(le),S(Pe),O(()=>ve($e,n(s).vsid)),b(j,Pe)};V(re,j=>{n(s).vsid&&j(J)})}var we=k(re,2);{var me=j=>{var Pe=Yy(),le=k(C(Pe),2),$e=C(le,!0);S(le),S(Pe),O(()=>ve($e,n(s).provider)),b(j,Pe)};V(we,j=>{n(s).provider&&j(me)})}var ee=k(we,2);{var _e=j=>{var Pe=jy(),le=k(C(Pe),2),$e=C(le);S(le),S(Pe),O(()=>{var Le,ct;return ve($e,`Video: ${(Le=n(s).videoCodec||"")!=null?Le:""} ${n(s).hdr?"(HDR)":""}
|
|
57
57
|
&
|
|
58
|
-
Audio: ${(lt=n(s).audioCodec||"")!=null?lt:""} ${n(s).audioLanguage?`(${n(s).audioLanguage})`:""}`)}),b(Y,Pe)};V(ee,Y=>{(n(s).videoCodec||n(s).audioCodec)&&Y(_e)})}var Ce=k(ee,2);{var ge=Y=>{var Pe=Xy(),le=k(C(Pe),2),$e=C(le,!0);S(le),S(Pe),O(()=>ve($e,n(s).viewport)),b(Y,Pe)};V(Ce,Y=>{n(s).viewport&&Y(ge)})}var pe=k(Ce,2);{var qe=Y=>{var Pe=Zy(),le=k(C(Pe),2),$e=C(le,!0);S(le),S(Pe),O(()=>ve($e,n(s).videoSize)),b(Y,Pe)};V(pe,Y=>{n(s).videoSize&&Y(qe)})}var G=k(pe,2);{var D=Y=>{var Pe=Jy(),le=k(C(Pe),2),$e=C(le,!0);S(le),S(Pe),O(()=>ve($e,n(s).cdn)),b(Y,Pe)};V(G,Y=>{n(s).cdn&&Y(D)})}var Qe=k(G,2);{var K=Y=>{var Pe=e0(),le=k(C(Pe),2),$e=C(le);S(le),S(Pe),O(()=>{var Me;return ve($e,`${(Me=n(s).volume)!=null?Me:""} %`)}),b(Y,Pe)};V(Qe,Y=>{n(s).volume&&Y(K)})}var se=k(Qe,2);{var xe=Y=>{var Pe=t0(),le=k(C(Pe),2),$e=C(le);S(le),S(Pe),O(Me=>ve($e,`${Me!=null?Me:""} s`),[()=>n(s).position.toFixed(2)]),b(Y,Pe)};V(se,Y=>{n(s).position&&Y(xe)})}var Be=k(se,2);{var tt=Y=>{var Pe=i0(),le=k(C(Pe),2),$e=C(le);S(le),S(Pe),O(Me=>ve($e,`${Me!=null?Me:""} s`),[()=>n(s).buffer.toFixed(2)]),b(Y,Pe)};V(Be,Y=>{n(s).buffer&&Y(tt)})}var ne=k(Be,2);{var ce=Y=>{var Pe=o0(),le=k(C(Pe),2),$e=C(le);S(le),S(Pe),O(Me=>ve($e,`${Me!=null?Me:""} s`),[()=>n(s).nativeBuffer.toFixed(2)]),b(Y,Pe)};V(ne,Y=>{n(s).nativeBuffer&&Y(ce)})}var Re=k(ne,2);{var Ae=Y=>{var Pe=n0(),le=k(C(Pe),2),$e=C(le);S(le),S(Pe),O(Me=>ve($e,`${Me!=null?Me:""} s`),[()=>n(s).liveLatency.toFixed(2)]),b(Y,Pe)};V(Re,Y=>{n(s).liveLatency&&Y(Ae)})}var Je=k(Re,2);{var Ee=Y=>{var Pe=r0(),le=k(C(Pe),2),$e=C(le,!0);S(le),S(Pe),O(Me=>ve($e,Me),[()=>[{value:n(s).currentVideoSegmentLength,title:"Video:"},{value:n(s).currentAudioSegmentLength,title:"Audio:"}].filter(({value:Me})=>Me).map(({value:Me,title:lt})=>`${lt} ${((Me!=null?Me:0)/1e3).toFixed(2)} s`).join(" & ")]),b(Y,Pe)};V(Je,Y=>{(n(s).currentVideoSegmentLength||n(s).currentAudioSegmentLength)&&Y(Ee)})}var Te=k(Je,2),He=k(C(Te),2),Pt=C(He);S(He),S(Te);var Ct=k(Te,2);{var Mt=Y=>{var Pe=s0(),le=k(C(Pe),2);rc(le,{get values(){return n(I)}});var $e=k(le,2),Me=C($e);S($e),S(Pe),O(lt=>ve(Me,`${lt!=null?lt:""} Kbps`),[()=>n(s).speed.toFixed(2)]),b(Y,Pe)};V(Ct,Y=>{n(s).speed&&Y(Mt)})}var ut=k(Ct,2);{var kt=Y=>{var Pe=a0(),le=k(C(Pe),2);rc(le,{get values(){return n(T)}});var $e=k(le,2),Me=C($e);S($e),S(Pe),O(lt=>ve(Me,`${lt!=null?lt:""} Kbps`),[()=>n(s).bitrate.toFixed(2)]),b(Y,Pe)};V(ut,Y=>{n(s).bitrate&&Y(kt)})}var Zt=k(ut,2),At=k(C(Zt),2);rc(At,{get values(){return n(x)}});var Bt=k(At,2),Wt=C(Bt,!0);S(Bt),S(Zt),S(z),S(A),O(Y=>{var Pe,le;P=oe(A,1,"container s-i",null,P,Y),Ve(A,"aria-label",R),ve(X,n(s).version),ve(Pt,`${(Pe=n(p))!=null?Pe:""} / ${(le=n(m))!=null?le:""} frames`),ve(Wt,n(v))},[()=>({"container-mobile":r()})]),b(t,A),H(),o()}Ge(["click"]);var db=require("@vkontakte/videoplayer-shared/es2018"),c0=(t,e)=>{t.stopPropagation(),e()()},u0=L('<div class="close s-11"></div>'),p0={hash:"s-11",code:'.close.s-11{cursor:pointer;height:16px;opacity:.8;position:relative;transition:opacity .2s;width:16px}.close.s-11:hover{opacity:1}.close.s-11:after,.close.s-11:before{background-color:var(--white);content:" ";height:16px;left:8px;position:absolute;width:2px}.close.s-11:before{transform:rotate(45deg)}.close.s-11:after{transform:rotate(-45deg)}'};function Ds(t,e){B(e,!0),Q(t,p0);let i=h(e,"onClick",3,db.noop);var o=u0();o.__click=[c0,i],b(t,o),H()}Ge(["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=f(()=>un(e.size));Xe(t,{get width(){return"48"},get height(){return"48"},get fill(){return e.fill},get style(){return n(i)},testId:"play-icon",get shadow(){return e.shadow},children:(o,r)=>{var a=f0();b(o,a)},$$slots:{default:!0}}),H()}var m0=L('<div class="timer s-z"><canvas class="timer-canvas s-z" width="100" height="100"></canvas> <!></div>'),v0={hash:"s-z",code:".timer.s-z{align-items:center;background:rgba(31,31,31,.65);border-radius:50%;display:flex;height:50px;justify-content:space-around;transition:background .2s;width:50px}.timer.s-z:hover{background:rgba(31,31,31,.85)}.timer-canvas.s-z{height:50px;position:absolute;width:50px}"};function ac(t,e){B(e,!0),Q(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;De(()=>{i()&&Et(()=>{d=Date.now(),s=requestAnimationFrame(p)})});let m=()=>{s&&(cancelAnimationFrame(s),s=0)},p=()=>{m(),i()&&(u=(Date.now()-d)/r,u<1?(l==null||l.clearRect(0,0,100,100),l==null||l.beginPath(),l==null||l.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*u),l==null||l.stroke(),s=requestAnimationFrame(p)):o()())};Rt(()=>{l=n(a).getContext("2d"),l&&(l.lineWidth=6,l.lineCap="round",l.strokeStyle="#fff")}),cn(()=>{m()});var v=m0(),_=C(v);je(_,$=>N(a,$),()=>n(a));var y=k(_,2);Vn(y,{get size(){return"24"}}),S(v),b(t,v),H()}var g0=(t,e,i)=>{e(!1),i()},h0=L('<div class="overlay s-1h"></div> <div class="next-video s-1h"><div class="top s-1h"><div class="caption s-1h"> </div> <!></div> <div class="row s-1h"><div class="column s-1h"><div class="thumb s-1h"><div></div> <!></div></div> <div class="column s-1h"><div class="title s-1h"> </div></div></div></div>',1),_0={hash:"s-1h",code:".overlay.s-1h{background:rgba(0,0,0,.72);height:100%;position:absolute;width:100%}.next-video.s-1h{display:flex;flex-direction:column;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:362px}.top.s-1h{display:flex;justify-content:space-between}.caption.s-1h{color:var(--white);font-size:11px;font-weight:700;opacity:.8;text-transform:uppercase}.row.s-1h{background:rgba(48,48,48,.8);cursor:pointer;display:flex;flex-direction:row;height:102px;margin-top:6px;width:100%}.column.s-1h{display:flex;flex-basis:50%;flex-direction:column}.thumb.s-1h{align-items:center;background:no-repeat 50%;background-size:cover;display:flex;justify-content:space-around;position:relative}.thumb.s-1h,.thumb-overlay.s-1h{height:100%;width:100%}.thumb-overlay.s-1h{position:absolute}.thumb-overlay.withOpacity.s-1h{background:var(--black);opacity:.3}.title.s-1h{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),Q(t,_0);let[i,o]=Ne(),r=()=>w(d,"$autoplayNextEnabled$",i),a=()=>w(s,"$timerNextVideoRunning$",i),l=be(),d=l.ui.autoplayNextEnabled$,s=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,m=l.actions.internal.nextVideoAnnouncementShow,p=l.actions.internal.nextVideoAnnouncementClick,v=l.actions.internal.nextVideoAnnouncementAuto,_=l.actions.internal.nextVideoAnnouncementCancel,y=()=>{r()&&(u(!1),v())},$=()=>{e.clickCloseIcon(),_()};Rt(()=>{e.isHide||m(),e.isHide&&r()&&(u(!1),v())});var x=Le(),I=ue(x);{var T=R=>{var A=h0(),P=k(ue(A),2),E=C(P),z=C(E),F=C(z,!0);S(z);var U=k(z,2);Ds(U,{onClick:$}),S(E);var X=k(E,2);X.__click=[g0,u,p];var ae=C(X),Z=C(ae),re=C(Z);let J;var we=k(re,2);{var me=ge=>{let pe=f(()=>a()&&r());ac(ge,{get isRunning(){return n(pe)},onTimerEnded:y})};V(we,ge=>{r()&&ge(me)})}S(Z),S(ae);var ee=k(ae,2),_e=C(ee),Ce=C(_e,!0);S(_e),S(ee),S(X),S(P),O((ge,pe)=>{ve(F,ge),Ke(Z,`background-image: url('${e.thumb}')`),J=oe(re,1,"thumb-overlay s-1h",null,J,pe),ve(Ce,e.title)},[()=>j("end_screen_next_video"),()=>({withOpacity:r()})]),b(R,A)};V(I,R=>{e.isHide||R(T)})}b(t,x),H(),o()}Ge(["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-18" tabindex="-1" role="region"><!></div>'),x0={hash:"s-18",code:".keyboard-controls.s-18{bottom:0;left:0;position:absolute;right:0;top:0}"};function $m(t,e){var Y,Pe;B(e,!0),Q(t,x0);let[i,o]=Ne(),r=()=>w(we,"$disabledControls$",i),a=()=>w(tt,"$isInteractiveTime$",i),l=()=>w(ne,"$showInteractiveTimeIndicatorTooltip$",i),d=()=>w(U,"$playbackState$",i),s=()=>w(D,"$isEnded$",i),u=()=>w(qe,"$doubleForwardAvailable$",i),m=()=>w(pe,"$doubleForwardOn$",i),p=()=>w(Qe,"$overlayContainer$",i),v=()=>w(ae,"$adPlaybackState",i),_=()=>w(Z,"$positionExact$",i),y=()=>w(re,"$duration$",i),$=()=>w(xe,"$isAudioAvailable$",i),x=()=>w(J,"$volume$",i),I=()=>w(X,"$canChangePlaybackSpeed$",i),T=()=>w(me,"$muted$",i),R=()=>w(ee,"$currentSubtitle$",i),A=h(e,"nextButtonActive",3,!1),P=h(e,"prevButtonActive",3,!1),E=be(),z=Nt(),F=E.getLogger().createComponentLog("KeyboardControls component"),U=E.state.playbackState$,X=E.state.canChangePlaybackSpeed$,ae=E.ads.playbackState,Z=E.state.positionExact$,re=E.state.duration$,J=E.state.volume$,we=E.ui.controls.disabledControls$,me=E.state.muted$,ee=E.state.currentSubtitle$,_e=E.ui.contextMenu.openedByHotKey$,Ce=E.ui.contextMenu.lastActiveElem$,ge=E.ui.contextMenu.visible$,pe=E.ui.doubleForwardOn$,qe=E.ui.doubleForwardAvailable$,G=E.ui.contextMenu.position$,D=E.state.isEnded$,Qe=E.ui.overlayContainer$,K=(Y=E.callbacks)==null?void 0:Y.onAudioDoesNotExistHint,se=(Pe=E.callbacks)==null?void 0:Pe.onAudioDisabledHint,xe=E.state.isAudioAvailable$,Be=E.state.isAudioDisabled,tt=E.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:ne}=_o(),ce=0,Re=!0,Ae=q(void 0),Je=le=>(le!==Re&&(Re=le,ce=0),ce+=1,(z.controls.seekStepKeyboard+z.controls.seekStepKeyboard*ce)/1e3),Ee=!0,Te=({type:le,repeat:$e,disableDoubleForward:Me})=>{let lt=()=>{if(!r().has("PLAY_BUTTON"))if(a()&&l()&&ne.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{E.actions.internal.togglePlay();let fe="PLAY";d()===ca.PlaybackState.PAUSED?fe="PAUSE":s()&&(fe="REPLAY"),e.showHotKeyHelpers({type:fe})}},wt=le==="down";if(!u()||Me){wt&<(),Ee=!0;return}if(wt)Ee=!1;else if(Ee)return;if(wt){!$e&&e.startDoubleForwardActivationTimer();return}m()||lt(),e.stopDoubleForward(),Ee=!0},He=le=>{let $e=lb(p());G.set($e),Ce.set(le.target),_e.set(!0),ge.set(!0)},Pt=(le,$e=!1)=>{var vo,pi;let Me=le.target,lt=(vo=Me==null?void 0:Me.getAttribute("role"))==null?void 0:vo.includes("menuitem"),wt=Me.classList.contains("btn"),fe=le.code;if(wt&&fe==="Space")return!1;let Oe=l_.has(fe);if(lt&&Oe)return!1;let ze=!a_.has(fe);if(le.ctrlKey&&ze||le.altKey&&ze||le.metaKey)return!1;let St=lt&&fe==="Escape";d_.has(fe)||St||e.hideContextMenu();let Gt=d()===ca.PlaybackState.PLAYING||d()===ca.PlaybackState.PAUSED,Tt=e.isAds&&(v()==="paused"||v()==="playing"),ri=!Tt&&!r().has("TIMELINE"),ci=le.shiftKey&&["Digit1","Numpad1"].includes(fe);if(!ci&&!(Gt||Tt))return!1;F({message:`key down, code: ${fe}, isExternal = ${$e}`});let Ni=!1,Dt=()=>{Ni=!0,$e||le.preventDefault()};if(ci)return He(le),Dt(),!0;switch(fe){case"KeyJ":case"ArrowLeft":{if(!ri)break;if(le.ctrlKey||le.altKey){let it=E.actions.internal.getPrevEpisode();E.actions.internal.seekToPrevEpisode(it),it&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:it.text}),Dt()}else{let it=le.shiftKey?Je(!1):z.controls.seekStepKeyboard/1e3,jt=Math.max(_()-it,0);_()>0&&(E.actions.internal.seekTime(jt,Rn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:it.toString()}),Dt())}break}case"KeyL":case"ArrowRight":{if(!ri)break;if(le.ctrlKey||le.altKey){let it=E.actions.internal.getNextEpisode();E.actions.internal.seekToNextEpisode(it),it&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:it.text}),Dt()}else{let it=le.shiftKey?Je(!0):z.controls.seekStepKeyboard/1e3,jt=Math.min(_()+it,y());Math.round(_())<Math.round(y())&&(E.actions.internal.seekTime(jt,Rn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:it.toString()}),Dt())}break}case"ArrowUp":{if(da({isAudioDisabled:Be,audioDisabledHintCallback:se,isAudioAvailable:$(),audioIsNotExistHintCallback:K,isAds:e.isAds})){let it=x(),jt=z.controls.volumeStepKeyboard,Di=it<=1;if(ip(E,it,jt),Di){let bi=Math.round(_m(it,jt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:bi}})}}Dt();break}case"ArrowDown":{if(da({isAudioDisabled:Be,audioDisabledHintCallback:se,isAudioAvailable:$(),audioIsNotExistHintCallback:K,isAds:e.isAds})){let it=x(),jt=z.controls.volumeStepKeyboard,Di=it>=0;if(op(E,it,jt),Di){let bi=Math.round(bm(it,jt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:bi}})}}Dt();break}case"Comma":{if(le.shiftKey){if(!m()&&I()){let it=E.actions.internal.decrementPlaybackRate();e.showHotKeyHelpers({type:"RATE_DOWN",text:it==null?void 0:it.displayValue}),Dt()}}else{if(Tt||d()!==ca.PlaybackState.PAUSED)break;let it=Math.max(_()-z.controls.seekStepFrame/1e3,0);_()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),E.actions.internal.clearDelayedBufferingCheckTimeout(),E.actions.internal.seekTime(it,Rn.SeekAction.DOUBLE_TAP),Dt())}break}case"Period":{if(le.shiftKey){if(!m()&&I()){let it=E.actions.internal.incrementPlaybackRate();e.showHotKeyHelpers({type:"RATE_UP",text:it==null?void 0:it.displayValue}),Dt()}}else{if(Tt||d()!==ca.PlaybackState.PAUSED)break;let it=Math.min(_()+z.controls.seekStepFrame/1e3,y());_()<y()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),E.actions.internal.clearDelayedBufferingCheckTimeout(),E.actions.internal.seekTime(it,Rn.SeekAction.DOUBLE_TAP),Dt())}break}case"KeyK":case"Space":Te({type:"down",repeat:le.repeat,disableDoubleForward:"KeyK"===fe}),Dt();break;case"KeyM":{da({isAudioDisabled:Be,audioDisabledHintCallback:se,isAudioAvailable:$(),audioIsNotExistHintCallback:K,isAds:e.isAds})&&(e.showHotKeyHelpers({type:T()?"VOLUME":"MUTE"}),E.actions.internal.toggleMuted()),Dt();break}case"KeyF":e.toggleFullscreen(),Dt();break;case"KeyC":E.actions.internal.toggleSubtitle(),R().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(pi=R())==null?void 0:pi.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),Dt();break;case"KeyI":E.actions.internal.togglePictureInPicture(),Dt();break;case"Digit1":case"Numpad1":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.1,Rn.SeekAction.DOUBLE_TAP),Dt();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.2,Rn.SeekAction.DOUBLE_TAP),Dt();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.3,Rn.SeekAction.DOUBLE_TAP),Dt();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.4,Rn.SeekAction.DOUBLE_TAP),Dt();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.5,Rn.SeekAction.DOUBLE_TAP),Dt();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.6,Rn.SeekAction.DOUBLE_TAP),Dt();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.7,Rn.SeekAction.DOUBLE_TAP),Dt();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.8,Rn.SeekAction.DOUBLE_TAP),Dt();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.9,Rn.SeekAction.DOUBLE_TAP),Dt();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(0,Rn.SeekAction.DOUBLE_TAP),Dt();break;case"Slash":{le.shiftKey&&z.features.hotKeyMapModal&&(e.showKeyMap(),Dt());break}case"KeyN":le.shiftKey&&A()&&(E.actions.internal.nextVideoClick(),Dt());break;case"KeyP":le.shiftKey&&P()&&(E.actions.internal.prevVideoClick(),Dt());break;case"ShiftLeft":case"ShiftRight":Dt();break;case"Tab":case"Escape":case"Enter":break;default:(0,ub.checkNever)(fe);break}return Ni},Ct=le=>{let $e=le.code;if(le.ctrlKey||le.altKey||le.metaKey)return;let Me=d()===ca.PlaybackState.PLAYING||d()===ca.PlaybackState.PAUSED,lt=e.isAds&&(v()==="paused"||v()==="playing");if(Me||lt)switch($e){case"ShiftLeft":case"ShiftRight":ce=0;break;case"Space":Te({type:"up"});break}},Mt=j("aria_label_video_player"),ut=()=>{var le;return(le=n(Ae))==null?void 0:le.focus()},kt=()=>n(Ae)===np(),Zt=le=>le.type==="keydown"?Pt(le,!0):(le.type==="keyup"&&Ct(le),!1);var At=y0();At.__keyup=Ct,At.__keydown=[$0,Pt];var Bt=C(At);oi(Bt,()=>{var le;return(le=e.children)!=null?le:gt}),S(At),je(At,le=>N(Ae,le),()=>n(Ae)),O(()=>Ve(At,"aria-label",Mt)),b(t,At);var Wt=H({focus:ut,isFocused:kt,handleExternalKeyboardEvent:Zt});return o(),Wt}Ge(["keyup","keydown"]);var w0=L('<div class="container s-l"><div class="dot s-l"></div> <div class="dot s-l"></div> <div class="dot s-l"></div></div>'),S0={hash:"s-l",code:".container.s-l{display:flex;left:50%;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%)}.dot.s-l:first-child{animation-delay:0s}.dot.s-l:nth-child(2){animation-delay:.18s}.dot.s-l:nth-child(3){animation-delay:.36s}@keyframes s-l-dot_animation{0%{opacity:.2}30%{opacity:1}to{opacity:.2}}.dot.s-l{animation-duration:.75s;animation-iteration-count:infinite;animation-name:s-l-dot_animation;background:var(--btn-color);border-radius:4px;height:8px;width:8px}.dot.s-l+.dot:where(.s-l){margin-left:4px}"};function Qa(t,e){Q(t,S0);let i=h(e,"style",3,"");var o=w0();O(()=>Ke(o,i())),b(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){Xe(t,{get fill(){return e.fill},children:(i,o)=>{var r=C0();b(i,r)},$$slots:{default:!0}})}var Ga=require("@vkontakte/videoplayer-shared/es2018"),T0=t=>{t.stopPropagation()},I0=L("<button><!></button>"),E0={hash:"s-1w",code:"button.btn.s-1w{align-items:center;display:flex;flex-direction:row;height:var(--controls-height);justify-content:center;margin:0;padding:8px;will-change:opacity}button.w-max.s-1w{width:100%}button.btn--live.s-1w{padding:10px 4px}button.btn-jc-l.s-1w{justify-content:left}button.btn-m.s-1w{background-color:rgba(0,0,0,.56);border-radius:12px;height:44px;left:12px;position:absolute;top:50%;transform:translateY(-50%);transition:opacity var(--controls-transition-duration);width:44px}button.btn-m.s-1w,button.btn-m--play.s-1w{align-items:center;display:flex;justify-content:center}button.btn-m--play.s-1w{height:var(--big-play-size);padding:16px;position:relative;width:var(--big-play-size)}button.btn-m--next.s-1w,button.btn-m--prev.s-1w{height:50px;position:absolute;width:50px}button.btn-m--prev.s-1w{right:calc(100% + 35px)}button.btn-m--next.s-1w{left:calc(100% + 35px)}button.btn.s-1w:disabled{cursor:default;pointer-events:none}button.btn.s-1w:not(.btn-full-opacity):disabled{opacity:.4}button.btn.s-1w:not(:disabled):hover{opacity:.8}button.pr-0.s-1w{padding-right:0}button.pl-0.s-1w{padding-left:0}"};function zt(t,e){B(e,!0),Q(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),m=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),$=f(()=>v()===Ga.noop?null:A=>{A.stopPropagation(),v()(A)}),x=f(()=>_()===Ga.noop?null:A=>{A.preventDefault(),_()()}),I=f(()=>y()===Ga.noop?null:A=>{A.preventDefault(),y()()});var T=I0();T.__pointerdown=[T0],T.__click=function(...A){var P;(P=n($))==null||P.apply(this,A)};var R=C(T);oi(R,()=>{var A;return(A=e.children)!=null?A:gt}),S(T),je(T,A=>s(A),()=>s()),O(()=>{var A,P,E,z,F,U,X,ae;oe(T,1,`btn ${(A=i())!=null?A:""}`,"s-1w"),Ke(T,o()||null),T.disabled=(P=r())!=null?P:null,Ve(T,"aria-hidden",(E=l())!=null?E:null),Ve(T,"aria-label",(z=d())!=null?z:null),Ve(T,"aria-keyshortcuts",(F=u())!=null?F:null),Ve(T,"aria-expanded",(U=m())!=null?U:null),Ve(T,"data-testid",(X=a())!=null?X:null),Ve(T,"tabindex",p()),Ve(T,"role",e.role),Ve(T,"aria-checked",(ae=e.areaChecked)!=null?ae:null)}),ct("focus",T,function(...A){var P;(P=n(x))==null||P.apply(this,A)}),ct("blur",T,function(...A){var P;(P=n(I))==null||P.apply(this,A)}),b(t,T),H()}Ge(["pointerdown","click"]);var P0=(t,e)=>{t.key==="Escape"&&e.onClose(),(t.key==="ArrowUp"||t.key==="ArrowDown")&&t.stopPropagation()},k0=L('<div class="modal-header s-1m"><h3 class="modal-title s-1m"> </h3> <!></div>'),A0=L('<div class="modal-overlay s-1m"><div class="modal-container s-1m" role="dialog" aria-modal="true"><!> <div class="modal-scroll s-1m" tabindex="0" role="scrollbar"><div class="modal-main s-1m"><!></div></div></div></div>'),L0={hash:"s-1m",code:'.modal-overlay.s-1m{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-1m{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-1m{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-1m{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-1m{height:100%;margin:8px 4px 8px 0;overflow-x:hidden;overflow-y:auto}.modal-scroll.s-1m::-webkit-scrollbar{width:8px}.modal-scroll.s-1m::-webkit-scrollbar-track{background-color:transparent;border-radius:4px;box-shadow:none;margin-right:2px}.modal-scroll.s-1m::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:#666;border:1px solid transparent;border-radius:5px;min-height:40px}.modal-scroll.s-1m::-webkit-scrollbar-thumb:hover{background-color:#777}.modal-main.s-1m{margin:-8px -4px 0 0}'};function xm(t,e){B(e,!0),Q(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}}=be(),d=j("hotkey_map_modal_close_btn_text");Rt(()=>{var $;return($=n(r))==null||$.focus(),n(a)&&l&&(l.setContainerForFocusLock(n(a)),l.activateLock()),()=>l==null?void 0:l.deactivateLock()});var s=A0();s.__keydown=[P0,e];var u=C(s),m=C(u);{var p=$=>{var x=k0(),I=C(x),T=C(I,!0);S(I);var R=k(I,2);{var A=P=>{zt(P,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",get ariaLabel(){return d},children:(E,z)=>{ym(E,{fill:"currentColor"})},$$slots:{default:!0}})};V(R,P=>{o()&&P(A)})}S(x),O(()=>ve(T,e.title)),b($,x)};V(m,$=>{i()&&$(p)})}var v=k(m,2),_=C(v),y=C(_);oi(y,()=>{var $;return($=e.children)!=null?$:gt}),S(_),S(v),je(v,$=>N(r,$),()=>n(r)),S(u),je(u,$=>N(a,$),()=>n(a)),S(s),b(t,s),H()}Ge(["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-1b"><span class="hot-key-map-item-description s-1b"><!></span> <span class="hot-key-map-item-value s-1b"> </span></li>'),R0=L('<div class="hot-key-map-group s-1b"><h5 class="hot-key-map-group-title s-1b"> </h5> <ul class="hot-key-map-group-items s-1b"></ul></div>'),N0=L('<div class="hot-key-map s-1b"></div>'),D0={hash:"s-1b",code:'.hot-key-map.s-1b{box-sizing:border-box;color:var(--black);overflow-x:hidden}.hot-key-map-group.s-1b{border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px}.hot-key-map-group.s-1b:last-child{border-bottom:none}.hot-key-map-group-title.s-1b{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-1b,.hot-key-map-item.s-1b{margin:0;padding:12px 0;width:100%}.hot-key-map-group-items.s-1b{box-sizing:border-box;list-style:none;margin:0;padding:0}.hot-key-map-item.s-1b{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-1b{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-1b{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-1b,.hot-key-map-item-value.s-1b{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),Q(t,D0);let[i,o]=Ne(),r=()=>w(l,"$data",i),a=be(),{data:l,show:d}=a.ui.modals.hotKeyMap,s=()=>{d.set(!1)};ho(),xm(t,{get title(){return r().title},onClose:s,children:(u,m)=>{var p=N0();_i(p,5,()=>r().groups,({title:v,items:_})=>v,(v,_)=>{let y=()=>n(_).title,$=()=>n(_).items;var x=R0(),I=C(x),T=C(I,!0);S(I);var R=k(I,2);_i(R,5,$,({description:A,value:P})=>P,(A,P)=>{let E=()=>n(P).description,z=()=>n(P).value;var F=V0(),U=C(F),X=C(U);Bd(X,()=>pb(E())),S(U);var ae=k(U,2),Z=C(ae,!0);S(ae),S(F),O(()=>ve(Z,z())),b(A,F)}),S(R),S(x),O(()=>ve(T,y())),b(v,x)}),S(p),b(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){Q(t,B0);var i=O0(),o=C(i);oi(o,()=>{var r;return(r=e.children)!=null?r:gt}),S(i),O(()=>Ve(i,"data-testid",e.testId)),b(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();to(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"currentColor","fill-rule":"evenodd",role:"img",...i}));var r=C(o);oi(r,()=>{var a;return(a=e.children)!=null?a:gt}),di(),S(o),b(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();to(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"currentColor","fill-rule":"evenodd",role:"img",...i}));var r=C(o);oi(r,()=>{var a;return(a=e.children)!=null?a:gt}),di(),S(o),b(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();to(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"currentColor",role:"img",...i}));var r=C(o);oi(r,()=>{var a;return(a=e.children)!=null?a:gt}),di(),S(o),b(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();to(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"currentColor",role:"img",...i}));var r=C(o);oi(r,()=>{var a;return(a=e.children)!=null?a:gt}),di(),S(o),b(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 Pm(t,e){let i=Mn(e,["$$slots","$$events","$$legacy","children"]);var o=W0();to(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"currentColor",role:"img",...i}));var r=C(o);oi(r,()=>{var a;return(a=e.children)!=null?a:gt}),di(),S(o),b(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 Pm;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 km(t,e){Xe(t,{get testId(){return e.testId},children:(i,o)=>{var r=K0();b(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){Xe(t,{get testId(){return e.testId},children:(i,o)=>{var r=q0();b(i,r)},$$slots:{default:!0}})}var Q0=L('<div aria-hidden="true"><!> <!></div>'),G0={hash:"s-1t",code:".icon.s-1t{display:flex;height:24px;position:relative;width:24px}.icon.s-1t .pillow{position:absolute;right:-9px;top:1px}.icon.triple.s-1t .pillow{right:-13px}.icon.s-1t svg[data-testid=settings-icon--labeled] ._full{opacity:0;visibility:hidden}"};function lc(t,e){B(e,!0),Q(t,G0);let i=h(e,"isMobile",3,!1),o=h(e,"currentQuality",3,void 0),r=f(()=>o()?(0,fb.getVideoQualityLabel)(o()):""),a=f(()=>rp(o())),l=f(()=>n(r).length>2);var d=Le(),s=ue(d);{var u=p=>{km(p,{testId:"settings-mobile-icon"})},m=p=>{var v=Q0();let _;var y=C(v);{var $=T=>{let R=f(()=>`${n(r)}-pill-icon`);Sm(T,{get testId(){return n(R)},children:(A,P)=>{var E=Le(),z=ue(E);Vi(z,()=>n(a),(F,U)=>{U(F,{})}),b(A,E)},$$slots:{default:!0}})};V(y,T=>{n(a)&&T($)})}var x=k(y,2);let I=f(()=>n(a)?"settings-icon--labeled":"settings-icon");Am(x,{get testId(){return n(I)}}),S(v),O(T=>_=oe(v,1,"icon s-1t",null,_,T),[()=>({triple:n(l)})]),b(p,v)};V(s,p=>{i()?p(u):p(m,!1)})}b(t,d),H()}var Y0=L('<span class="settings-icon-wrapper s-23"><!></span>'),j0={hash:"s-23",code:".settings-icon-wrapper.s-23{position:relative;width:24px}"};function Xl(t,e){B(e,!0),Q(t,j0);let[i,o]=Ne(),r=()=>w(u,"$settingsMenuVisible",i),a=()=>w(v,"$isMobile",i),l=()=>w(s,"$currentQuality",i),d=be(),s=d.state.currentQuality$,u=d.ui.settingsMenu.visible$,m=d.actions.internal.openSettingsMenu,p=d.actions.internal.closeSettingsMenu,v=d.ui.isMobile,_=d.ui.t,y=q(void 0);De(()=>{n(y)&&Et(()=>{e.ref$.set(n(y))})});let $=_("aria_label_settings");async function x(T){let R=la(T);r()?p():m(R,mo)}let I=f(()=>r()?"opened":"");zt(t,{get className(){return n(I)},testId:"settings-btn",click:x,get ariaLabel(){return $},get ariaExpanded(){return r()},get ref(){return n(y)},set ref(T){N(y,T,!0)},children:(T,R)=>{var A=Y0(),P=C(A);lc(P,{get isMobile(){return a()},get currentQuality(){return l()}}),S(A),b(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=f(()=>`subtitles-icon${e.type==="off"?"-off":e.type==="outline"?"-outline":""}`),o=f(()=>un(e.size));Xe(t,{get width(){return"48"},get height(){return"48"},get style(){return n(o)},get testId(){return n(i)},get shadow(){return e.shadow},children:(r,a)=>{var l=Le(),d=ue(l);{var s=m=>{var p=X0();di(),b(m,p)},u=m=>{var p=Z0();O(()=>Ve(p,"d",`M16.92 8h14.16q2.82-.02 4.66.1c1.28.1 2.4.32 3.46.86a8.8 8.8 90 013.84 3.84c.54 1.04.76 2.18.86 3.46q.12 1.84.1 4.66v6.16q.02 2.82-.1 4.66a10 10 90 01-.86 3.46 8.8 8.8 90 01-3.84 3.84 10 10 90 01-3.46.86q-1.84.12-4.66.1H16.92q-2.82.02-4.66-.1a10 10 90 01-3.46-.86 8.8 8.8 90 01-3.84-3.84 10 10 90 01-.86-3.46Q4 29.9 4 27.08v-6.16q-.02-2.82.1-4.66c.1-1.28.32-2.4.86-3.46A8.8 8.8 90 018.8 8.96a10 10 90 013.46-.86Q14.1 8 16.92 8
|
|
58
|
+
Audio: ${(ct=n(s).audioCodec||"")!=null?ct:""} ${n(s).audioLanguage?`(${n(s).audioLanguage})`:""}`)}),b(j,Pe)};V(ee,j=>{(n(s).videoCodec||n(s).audioCodec)&&j(_e)})}var Ce=k(ee,2);{var ge=j=>{var Pe=Xy(),le=k(C(Pe),2),$e=C(le,!0);S(le),S(Pe),O(()=>ve($e,n(s).viewport)),b(j,Pe)};V(Ce,j=>{n(s).viewport&&j(ge)})}var pe=k(Ce,2);{var Qe=j=>{var Pe=Zy(),le=k(C(Pe),2),$e=C(le,!0);S(le),S(Pe),O(()=>ve($e,n(s).videoSize)),b(j,Pe)};V(pe,j=>{n(s).videoSize&&j(Qe)})}var G=k(pe,2);{var D=j=>{var Pe=Jy(),le=k(C(Pe),2),$e=C(le,!0);S(le),S(Pe),O(()=>ve($e,n(s).cdn)),b(j,Pe)};V(G,j=>{n(s).cdn&&j(D)})}var Ge=k(G,2);{var K=j=>{var Pe=e0(),le=k(C(Pe),2),$e=C(le);S(le),S(Pe),O(()=>{var Le;return ve($e,`${(Le=n(s).volume)!=null?Le:""} %`)}),b(j,Pe)};V(Ge,j=>{n(s).volume&&j(K)})}var se=k(Ge,2);{var xe=j=>{var Pe=t0(),le=k(C(Pe),2),$e=C(le);S(le),S(Pe),O(Le=>ve($e,`${Le!=null?Le:""} s`),[()=>n(s).position.toFixed(2)]),b(j,Pe)};V(se,j=>{n(s).position&&j(xe)})}var Be=k(se,2);{var ot=j=>{var Pe=i0(),le=k(C(Pe),2),$e=C(le);S(le),S(Pe),O(Le=>ve($e,`${Le!=null?Le:""} s`),[()=>n(s).buffer.toFixed(2)]),b(j,Pe)};V(Be,j=>{n(s).buffer&&j(ot)})}var ne=k(Be,2);{var ce=j=>{var Pe=o0(),le=k(C(Pe),2),$e=C(le);S(le),S(Pe),O(Le=>ve($e,`${Le!=null?Le:""} s`),[()=>n(s).nativeBuffer.toFixed(2)]),b(j,Pe)};V(ne,j=>{n(s).nativeBuffer&&j(ce)})}var Re=k(ne,2);{var Ae=j=>{var Pe=n0(),le=k(C(Pe),2),$e=C(le);S(le),S(Pe),O(Le=>ve($e,`${Le!=null?Le:""} s`),[()=>n(s).liveLatency.toFixed(2)]),b(j,Pe)};V(Re,j=>{n(s).liveLatency&&j(Ae)})}var et=k(Re,2);{var Ee=j=>{var Pe=r0(),le=k(C(Pe),2),$e=C(le,!0);S(le),S(Pe),O(Le=>ve($e,Le),[()=>[{value:n(s).currentVideoSegmentLength,title:"Video:"},{value:n(s).currentAudioSegmentLength,title:"Audio:"}].filter(({value:Le})=>Le).map(({value:Le,title:ct})=>`${ct} ${((Le!=null?Le:0)/1e3).toFixed(2)} s`).join(" & ")]),b(j,Pe)};V(et,j=>{(n(s).currentVideoSegmentLength||n(s).currentAudioSegmentLength)&&j(Ee)})}var Te=k(et,2),He=k(C(Te),2),Et=C(He);S(He),S(Te);var St=k(Te,2);{var Ot=j=>{var Pe=s0(),le=k(C(Pe),2);rc(le,{get values(){return n(I)}});var $e=k(le,2),Le=C($e);S($e),S(Pe),O(ct=>ve(Le,`${ct!=null?ct:""} Kbps`),[()=>n(s).speed.toFixed(2)]),b(j,Pe)};V(St,j=>{n(s).speed&&j(Ot)})}var lt=k(St,2);{var Pt=j=>{var Pe=a0(),le=k(C(Pe),2);rc(le,{get values(){return n(T)}});var $e=k(le,2),Le=C($e);S($e),S(Pe),O(ct=>ve(Le,`${ct!=null?ct:""} Kbps`),[()=>n(s).bitrate.toFixed(2)]),b(j,Pe)};V(lt,j=>{n(s).bitrate&&j(Pt)})}var Xt=k(lt,2),kt=k(C(Xt),2);rc(kt,{get values(){return n(x)}});var Dt=k(kt,2),zt=C(Dt,!0);S(Dt),S(Xt),S(z),S(A),O(j=>{var Pe,le;P=oe(A,1,"container s-o",null,P,j),Ve(A,"aria-label",R),ve(X,n(s).version),ve(Et,`${(Pe=n(p))!=null?Pe:""} / ${(le=n(m))!=null?le:""} frames`),ve(zt,n(v))},[()=>({"container-mobile":r()})]),b(t,A),H(),o()}Ye(["click"]);var ub=require("@vkontakte/videoplayer-shared/es2018"),c0=(t,e)=>{t.stopPropagation(),e()()},u0=L('<div class="close s-19"></div>'),p0={hash:"s-19",code:'.close.s-19{cursor:pointer;height:16px;opacity:.8;position:relative;transition:opacity .2s;width:16px}.close.s-19:hover{opacity:1}.close.s-19:after,.close.s-19:before{background-color:var(--white);content:" ";height:16px;left:8px;position:absolute;width:2px}.close.s-19:before{transform:rotate(45deg)}.close.s-19:after{transform:rotate(-45deg)}'};function Hs(t,e){B(e,!0),Q(t,p0);let i=h(e,"onClick",3,ub.noop);var o=u0();o.__click=[c0,i],b(t,o),H()}Ye(["click"]);var pb=require("@vkontakte/videoplayer-shared/es2018");var fn=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 Mn(t,e){B(e,!0);let i=f(()=>fn(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();b(o,a)},$$slots:{default:!0}}),H()}var m0=L('<div class="timer s-17"><canvas class="timer-canvas s-17" width="100" height="100"></canvas> <!></div>'),v0={hash:"s-17",code:".timer.s-17{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-17:hover{background:rgba(31,31,31,.85)}.timer-canvas.s-17{height:50px;position:absolute;width:50px}"};function ac(t,e){B(e,!0),Q(t,v0);let i=h(e,"isRunning",3,!0),o=h(e,"onTimerEnded",3,pb.noop),r=5e3,a=q(void 0),l,d,s=0,u;De(()=>{i()&&It(()=>{d=Date.now(),s=requestAnimationFrame(p)})});let m=()=>{s&&(cancelAnimationFrame(s),s=0)},p=()=>{m(),i()&&(u=(Date.now()-d)/r,u<1?(l==null||l.clearRect(0,0,100,100),l==null||l.beginPath(),l==null||l.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*u),l==null||l.stroke(),s=requestAnimationFrame(p)):o()())};Mt(()=>{l=n(a).getContext("2d"),l&&(l.lineWidth=6,l.lineCap="round",l.strokeStyle="#fff")}),pn(()=>{m()});var v=m0(),_=C(v);Ze(_,$=>N(a,$),()=>n(a));var y=k(_,2);Mn(y,{get size(){return"24"}}),S(v),b(t,v),H()}var g0=(t,e,i)=>{e(!1),i()},h0=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),_0={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%;position:absolute;top:50%;transform:translate(-50%,-50%);width:362px}.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 bm(t,e){B(e,!0),Q(t,_0);let[i,o]=Ne(),r=()=>w(d,"$autoplayNextEnabled$",i),a=()=>w(s,"$timerNextVideoRunning$",i),l=be(),d=l.ui.autoplayNextEnabled$,s=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,m=l.actions.internal.nextVideoAnnouncementShow,p=l.actions.internal.nextVideoAnnouncementClick,v=l.actions.internal.nextVideoAnnouncementAuto,_=l.actions.internal.nextVideoAnnouncementCancel,y=()=>{r()&&(u(!1),v())},$=()=>{e.clickCloseIcon(),_()};Mt(()=>{e.isHide||m(),e.isHide&&r()&&(u(!1),v())});var x=Me(),I=ue(x);{var T=R=>{var A=h0(),P=k(ue(A),2),E=C(P),z=C(E),F=C(z,!0);S(z);var U=k(z,2);Hs(U,{onClick:$}),S(E);var X=k(E,2);X.__click=[g0,u,p];var ae=C(X),Z=C(ae),re=C(Z);let J;var we=k(re,2);{var me=ge=>{let pe=f(()=>a()&&r());ac(ge,{get isRunning(){return n(pe)},onTimerEnded:y})};V(we,ge=>{r()&&ge(me)})}S(Z),S(ae);var ee=k(ae,2),_e=C(ee),Ce=C(_e,!0);S(_e),S(ee),S(X),S(P),O((ge,pe)=>{ve(F,ge),Ke(Z,`background-image: url('${e.thumb}')`),J=oe(re,1,"thumb-overlay s-m",null,J,pe),ve(Ce,e.title)},[()=>Y("end_screen_next_video"),()=>({withOpacity:r()})]),b(R,A)};V(I,R=>{e.isHide||R(T)})}b(t,x),H(),o()}Ye(["click"]);var pa=require("@vkontakte/videoplayer-core/es2018"),fb=require("@vkontakte/videoplayer-shared/es2018"),Vn=require("@vkontakte/videoplayer-statistics/es2018");var $m=(t,e)=>Math.min(+(t+e).toFixed(2),1),ym=(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=ym(e,i);e>0&&t.actions.internal.setVolume(o)};var ua=({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-n" tabindex="-1" role="region"><!></div>'),x0={hash:"s-n",code:".keyboard-controls.s-n{bottom:0;left:0;position:absolute;right:0;top:0}"};function xm(t,e){var j,Pe;B(e,!0),Q(t,x0);let[i,o]=Ne(),r=()=>w(we,"$disabledControls$",i),a=()=>w(ot,"$isInteractiveTime$",i),l=()=>w(ne,"$showInteractiveTimeIndicatorTooltip$",i),d=()=>w(U,"$playbackState$",i),s=()=>w(D,"$isEnded$",i),u=()=>w(Qe,"$doubleForwardAvailable$",i),m=()=>w(pe,"$doubleForwardOn$",i),p=()=>w(Ge,"$overlayContainer$",i),v=()=>w(ae,"$adPlaybackState",i),_=()=>w(Z,"$positionExact$",i),y=()=>w(re,"$duration$",i),$=()=>w(xe,"$isAudioAvailable$",i),x=()=>w(J,"$volume$",i),I=()=>w(X,"$canChangePlaybackSpeed$",i),T=()=>w(me,"$muted$",i),R=()=>w(ee,"$currentSubtitle$",i),A=h(e,"nextButtonActive",3,!1),P=h(e,"prevButtonActive",3,!1),E=be(),z=Vt(),F=E.getLogger().createComponentLog("KeyboardControls component"),U=E.state.playbackState$,X=E.state.canChangePlaybackSpeed$,ae=E.ads.playbackState,Z=E.state.positionExact$,re=E.state.duration$,J=E.state.volume$,we=E.ui.controls.disabledControls$,me=E.state.muted$,ee=E.state.currentSubtitle$,_e=E.ui.contextMenu.openedByHotKey$,Ce=E.ui.contextMenu.lastActiveElem$,ge=E.ui.contextMenu.visible$,pe=E.ui.doubleForwardOn$,Qe=E.ui.doubleForwardAvailable$,G=E.ui.contextMenu.position$,D=E.state.isEnded$,Ge=E.ui.overlayContainer$,K=(j=E.callbacks)==null?void 0:j.onAudioDoesNotExistHint,se=(Pe=E.callbacks)==null?void 0:Pe.onAudioDisabledHint,xe=E.state.isAudioAvailable$,Be=E.state.isAudioDisabled,ot=E.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:ne}=_o(),ce=0,Re=!0,Ae=q(void 0),et=le=>(le!==Re&&(Re=le,ce=0),ce+=1,(z.controls.seekStepKeyboard+z.controls.seekStepKeyboard*ce)/1e3),Ee=!0,Te=({type:le,repeat:$e,disableDoubleForward:Le})=>{let ct=()=>{if(!r().has("PLAY_BUTTON"))if(a()&&l()&&ne.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{E.actions.internal.togglePlay();let fe="PLAY";d()===pa.PlaybackState.PAUSED?fe="PAUSE":s()&&(fe="REPLAY"),e.showHotKeyHelpers({type:fe})}},Ct=le==="down";if(!u()||Le){Ct&&ct(),Ee=!0;return}if(Ct)Ee=!1;else if(Ee)return;if(Ct){!$e&&e.startDoubleForwardActivationTimer();return}m()||ct(),e.stopDoubleForward(),Ee=!0},He=le=>{let $e=cb(p());G.set($e),Ce.set(le.target),_e.set(!0),ge.set(!0)},Et=(le,$e=!1)=>{var vo,ci;let Le=le.target,ct=(vo=Le==null?void 0:Le.getAttribute("role"))==null?void 0:vo.includes("menuitem"),Ct=Le.classList.contains("btn"),fe=le.code;if(Ct&&fe==="Space")return!1;let Fe=c_.has(fe);if(ct&&Fe)return!1;let Ue=!d_.has(fe);if(le.ctrlKey&&Ue||le.altKey&&Ue||le.metaKey)return!1;let Tt=ct&&fe==="Escape";u_.has(fe)||Tt||e.hideContextMenu();let oi=d()===pa.PlaybackState.PLAYING||d()===pa.PlaybackState.PAUSED,xt=e.isAds&&(v()==="paused"||v()==="playing"),Gt=!xt&&!r().has("TIMELINE"),ai=le.shiftKey&&["Digit1","Numpad1"].includes(fe);if(!ai&&!(oi||xt))return!1;F({message:`key down, code: ${fe}, isExternal = ${$e}`});let Bi=!1,Rt=()=>{Bi=!0,$e||le.preventDefault()};if(ai)return He(le),Rt(),!0;switch(fe){case"KeyJ":case"ArrowLeft":{if(!Gt)break;if(le.ctrlKey||le.altKey){let nt=E.actions.internal.getPrevEpisode();E.actions.internal.seekToPrevEpisode(nt),nt&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:nt.text}),Rt()}else{let nt=le.shiftKey?et(!1):z.controls.seekStepKeyboard/1e3,Yt=Math.max(_()-nt,0);_()>0&&(E.actions.internal.seekTime(Yt,Vn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:nt.toString()}),Rt())}break}case"KeyL":case"ArrowRight":{if(!Gt)break;if(le.ctrlKey||le.altKey){let nt=E.actions.internal.getNextEpisode();E.actions.internal.seekToNextEpisode(nt),nt&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:nt.text}),Rt()}else{let nt=le.shiftKey?et(!0):z.controls.seekStepKeyboard/1e3,Yt=Math.min(_()+nt,y());Math.round(_())<Math.round(y())&&(E.actions.internal.seekTime(Yt,Vn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:nt.toString()}),Rt())}break}case"ArrowUp":{if(ua({isAudioDisabled:Be,audioDisabledHintCallback:se,isAudioAvailable:$(),audioIsNotExistHintCallback:K,isAds:e.isAds})){let nt=x(),Yt=z.controls.volumeStepKeyboard,Hi=nt<=1;if(ip(E,nt,Yt),Hi){let bi=Math.round($m(nt,Yt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:bi}})}}Rt();break}case"ArrowDown":{if(ua({isAudioDisabled:Be,audioDisabledHintCallback:se,isAudioAvailable:$(),audioIsNotExistHintCallback:K,isAds:e.isAds})){let nt=x(),Yt=z.controls.volumeStepKeyboard,Hi=nt>=0;if(op(E,nt,Yt),Hi){let bi=Math.round(ym(nt,Yt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:bi}})}}Rt();break}case"Comma":{if(le.shiftKey){if(!m()&&I()){let nt=E.actions.internal.decrementPlaybackRate();e.showHotKeyHelpers({type:"RATE_DOWN",text:nt==null?void 0:nt.displayValue}),Rt()}}else{if(xt||d()!==pa.PlaybackState.PAUSED)break;let nt=Math.max(_()-z.controls.seekStepFrame/1e3,0);_()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),E.actions.internal.clearDelayedBufferingCheckTimeout(),E.actions.internal.seekTime(nt,Vn.SeekAction.DOUBLE_TAP),Rt())}break}case"Period":{if(le.shiftKey){if(!m()&&I()){let nt=E.actions.internal.incrementPlaybackRate();e.showHotKeyHelpers({type:"RATE_UP",text:nt==null?void 0:nt.displayValue}),Rt()}}else{if(xt||d()!==pa.PlaybackState.PAUSED)break;let nt=Math.min(_()+z.controls.seekStepFrame/1e3,y());_()<y()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),E.actions.internal.clearDelayedBufferingCheckTimeout(),E.actions.internal.seekTime(nt,Vn.SeekAction.DOUBLE_TAP),Rt())}break}case"KeyK":case"Space":Te({type:"down",repeat:le.repeat,disableDoubleForward:"KeyK"===fe}),Rt();break;case"KeyM":{ua({isAudioDisabled:Be,audioDisabledHintCallback:se,isAudioAvailable:$(),audioIsNotExistHintCallback:K,isAds:e.isAds})&&(e.showHotKeyHelpers({type:T()?"VOLUME":"MUTE"}),E.actions.internal.toggleMuted()),Rt();break}case"KeyF":e.toggleFullscreen(),Rt();break;case"KeyC":E.actions.internal.toggleSubtitle(),R().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(ci=R())==null?void 0:ci.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),Rt();break;case"KeyI":E.actions.internal.togglePictureInPicture(),Rt();break;case"Digit1":case"Numpad1":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.1,Vn.SeekAction.DOUBLE_TAP),Rt();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.2,Vn.SeekAction.DOUBLE_TAP),Rt();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.3,Vn.SeekAction.DOUBLE_TAP),Rt();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.4,Vn.SeekAction.DOUBLE_TAP),Rt();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.5,Vn.SeekAction.DOUBLE_TAP),Rt();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.6,Vn.SeekAction.DOUBLE_TAP),Rt();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.7,Vn.SeekAction.DOUBLE_TAP),Rt();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.8,Vn.SeekAction.DOUBLE_TAP),Rt();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.9,Vn.SeekAction.DOUBLE_TAP),Rt();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(0,Vn.SeekAction.DOUBLE_TAP),Rt();break;case"Slash":{le.shiftKey&&z.features.hotKeyMapModal&&(e.showKeyMap(),Rt());break}case"KeyN":le.shiftKey&&A()&&(E.actions.internal.nextVideoClick(),Rt());break;case"KeyP":le.shiftKey&&P()&&(E.actions.internal.prevVideoClick(),Rt());break;case"ShiftLeft":case"ShiftRight":Rt();break;case"Tab":case"Escape":case"Enter":break;default:(0,fb.checkNever)(fe);break}return Bi},St=le=>{let $e=le.code;if(le.ctrlKey||le.altKey||le.metaKey)return;let Le=d()===pa.PlaybackState.PLAYING||d()===pa.PlaybackState.PAUSED,ct=e.isAds&&(v()==="paused"||v()==="playing");if(Le||ct)switch($e){case"ShiftLeft":case"ShiftRight":ce=0;break;case"Space":Te({type:"up"});break}},Ot=Y("aria_label_video_player"),lt=()=>{var le;return(le=n(Ae))==null?void 0:le.focus()},Pt=()=>n(Ae)===np(),Xt=le=>le.type==="keydown"?Et(le,!0):(le.type==="keyup"&&St(le),!1);var kt=y0();kt.__keyup=St,kt.__keydown=[$0,Et];var Dt=C(kt);ti(Dt,()=>{var le;return(le=e.children)!=null?le:ht}),S(kt),Ze(kt,le=>N(Ae,le),()=>n(Ae)),O(()=>Ve(kt,"aria-label",Ot)),b(t,kt);var zt=H({focus:lt,isFocused:Pt,handleExternalKeyboardEvent:Xt});return o(),zt}Ye(["keyup","keydown"]);var w0=L('<div class="container s-u"><div class="dot s-u"></div> <div class="dot s-u"></div> <div class="dot s-u"></div></div>'),S0={hash:"s-u",code:".container.s-u{display:flex;left:50%;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%)}.dot.s-u:first-child{animation-delay:0s}.dot.s-u:nth-child(2){animation-delay:.18s}.dot.s-u:nth-child(3){animation-delay:.36s}@keyframes s-u-dot_animation{0%{opacity:.2}30%{opacity:1}to{opacity:.2}}.dot.s-u{animation-duration:.75s;animation-iteration-count:infinite;animation-name:s-u-dot_animation;background:var(--btn-color);border-radius:4px;height:8px;width:8px}.dot.s-u+.dot:where(.s-u){margin-left:4px}"};function Ya(t,e){Q(t,S0);let i=h(e,"style",3,"");var o=w0();O(()=>Ke(o,i())),b(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 wm(t,e){Je(t,{get fill(){return e.fill},children:(i,o)=>{var r=C0();b(i,r)},$$slots:{default:!0}})}var ja=require("@vkontakte/videoplayer-shared/es2018"),T0=t=>{t.stopPropagation()},I0=L("<button><!></button>"),E0={hash:"s-1l",code:"button.btn.s-1l{align-items:center;display:flex;flex-direction:row;height:var(--controls-height);justify-content:center;margin:0;padding:8px;will-change:opacity}button.w-max.s-1l{width:100%}button.btn--live.s-1l{padding:10px 4px}button.btn-jc-l.s-1l{justify-content:left}button.btn-m.s-1l{background-color:rgba(0,0,0,.56);border-radius:12px;height:44px;left:12px;position:absolute;top:50%;transform:translateY(-50%);transition:opacity var(--controls-transition-duration);width:44px}button.btn-m.s-1l,button.btn-m--play.s-1l{align-items:center;display:flex;justify-content:center}button.btn-m--play.s-1l{height:var(--big-play-size);padding:16px;position:relative;width:var(--big-play-size)}button.btn-m--next.s-1l,button.btn-m--prev.s-1l{height:50px;position:absolute;width:50px}button.btn-m--prev.s-1l{right:calc(100% + 35px)}button.btn-m--next.s-1l{left:calc(100% + 35px)}button.btn.s-1l:disabled{cursor:default;pointer-events:none}button.btn.s-1l:not(.btn-full-opacity):disabled{opacity:.4}button.btn.s-1l:not(:disabled):hover{opacity:.8}button.pr-0.s-1l{padding-right:0}button.pl-0.s-1l{padding-left:0}"};function Ut(t,e){B(e,!0),Q(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),m=h(e,"ariaExpanded",3,void 0),p=h(e,"tabIndex",3,0),v=h(e,"click",3,ja.noop),_=h(e,"focus",3,ja.noop),y=h(e,"blur",3,ja.noop),$=f(()=>v()===ja.noop?null:A=>{A.stopPropagation(),v()(A)}),x=f(()=>_()===ja.noop?null:A=>{A.preventDefault(),_()()}),I=f(()=>y()===ja.noop?null:A=>{A.preventDefault(),y()()});var T=I0();T.__pointerdown=[T0],T.__click=function(...A){var P;(P=n($))==null||P.apply(this,A)};var R=C(T);ti(R,()=>{var A;return(A=e.children)!=null?A:ht}),S(T),Ze(T,A=>s(A),()=>s()),O(()=>{var A,P,E,z,F,U,X,ae;oe(T,1,`btn ${(A=i())!=null?A:""}`,"s-1l"),Ke(T,o()||null),T.disabled=(P=r())!=null?P:null,Ve(T,"aria-hidden",(E=l())!=null?E:null),Ve(T,"aria-label",(z=d())!=null?z:null),Ve(T,"aria-keyshortcuts",(F=u())!=null?F:null),Ve(T,"aria-expanded",(U=m())!=null?U:null),Ve(T,"data-testid",(X=a())!=null?X:null),Ve(T,"tabindex",p()),Ve(T,"role",e.role),Ve(T,"aria-checked",(ae=e.areaChecked)!=null?ae:null)}),pt("focus",T,function(...A){var P;(P=n(x))==null||P.apply(this,A)}),pt("blur",T,function(...A){var P;(P=n(I))==null||P.apply(this,A)}),b(t,T),H()}Ye(["pointerdown","click"]);var P0=(t,e)=>{t.key==="Escape"&&e.onClose(),(t.key==="ArrowUp"||t.key==="ArrowDown")&&t.stopPropagation()},k0=L('<div class="modal-header s-1a"><h3 class="modal-title s-1a"> </h3> <!></div>'),A0=L('<div class="modal-overlay s-1a"><div class="modal-container s-1a" role="dialog" aria-modal="true"><!> <div class="modal-scroll s-1a" tabindex="0" role="scrollbar"><div class="modal-main s-1a"><!></div></div></div></div>'),L0={hash:"s-1a",code:'.modal-overlay.s-1a{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-1a{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-1a{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-1a{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-1a{height:100%;margin:8px 4px 8px 0;overflow-x:hidden;overflow-y:auto}.modal-scroll.s-1a::-webkit-scrollbar{width:8px}.modal-scroll.s-1a::-webkit-scrollbar-track{background-color:transparent;border-radius:4px;box-shadow:none;margin-right:2px}.modal-scroll.s-1a::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:#666;border:1px solid transparent;border-radius:5px;min-height:40px}.modal-scroll.s-1a::-webkit-scrollbar-thumb:hover{background-color:#777}.modal-main.s-1a{margin:-8px -4px 0 0}'};function Sm(t,e){B(e,!0),Q(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}}=be(),d=Y("hotkey_map_modal_close_btn_text");Mt(()=>{var $;return($=n(r))==null||$.focus(),n(a)&&l&&(l.setContainerForFocusLock(n(a)),l.activateLock()),()=>l==null?void 0:l.deactivateLock()});var s=A0();s.__keydown=[P0,e];var u=C(s),m=C(u);{var p=$=>{var x=k0(),I=C(x),T=C(I,!0);S(I);var R=k(I,2);{var A=P=>{Ut(P,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",get ariaLabel(){return d},children:(E,z)=>{wm(E,{fill:"currentColor"})},$$slots:{default:!0}})};V(R,P=>{o()&&P(A)})}S(x),O(()=>ve(T,e.title)),b($,x)};V(m,$=>{i()&&$(p)})}var v=k(m,2),_=C(v),y=C(_);ti(y,()=>{var $;return($=e.children)!=null?$:ht}),S(_),S(v),Ze(v,$=>N(r,$),()=>n(r)),S(u),Ze(u,$=>N(a,$),()=>n(a)),S(s),b(t,s),H()}Ye(["keydown"]);var M0=new Set(["BR"]),mb=t=>{var r;let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),o=i.length;for(;o--;){let a=i[o],l=a.tagName;M0.has(l)||(r=a.parentElement)==null||r.removeChild(a)}return e.innerHTML};var V0=L('<li class="hot-key-map-item s-p"><span class="hot-key-map-item-description s-p"><!></span> <span class="hot-key-map-item-value s-p"> </span></li>'),R0=L('<div class="hot-key-map-group s-p"><h5 class="hot-key-map-group-title s-p"> </h5> <ul class="hot-key-map-group-items s-p"></ul></div>'),N0=L('<div class="hot-key-map s-p"></div>'),D0={hash:"s-p",code:'.hot-key-map.s-p{box-sizing:border-box;color:var(--black);overflow-x:hidden}.hot-key-map-group.s-p{border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px}.hot-key-map-group.s-p:last-child{border-bottom:none}.hot-key-map-group-title.s-p{color:var(--white);font-feature-settings:"clig" off,"liga" off;font-size:13px;font-style:normal;font-weight:600;line-height:16px}.hot-key-map-group-title.s-p,.hot-key-map-item.s-p{margin:0;padding:12px 0;width:100%}.hot-key-map-group-items.s-p{box-sizing:border-box;list-style:none;margin:0;padding:0}.hot-key-map-item.s-p{align-items:center;box-sizing:border-box;display:flex;justify-content:space-between;--videoplayer-hotkey-item-value-width:156px;--videoplayer-hotkey-item-value-padding-left:24px}.hot-key-map-item-description.s-p{color:var(--white-alpha-72);max-width:388px;width:calc(100% - var(--videoplayer-hotkey-item-value-width) - var(--videoplayer-hotkey-item-value-padding-left))}.hot-key-map-item-value.s-p{color:var(--white);letter-spacing:-.14px;padding-left:var(--videoplayer-hotkey-item-value-padding-left);width:var(--videoplayer-hotkey-item-value-width)}.hot-key-map-item-description.s-p,.hot-key-map-item-value.s-p{font-feature-settings:"clig" off,"liga" off;font-size:13px;font-style:normal;font-weight:400;line-height:16px}'};function Cm(t,e){B(e,!1),Q(t,D0);let[i,o]=Ne(),r=()=>w(l,"$data",i),a=be(),{data:l,show:d}=a.ui.modals.hotKeyMap,s=()=>{d.set(!1)};ho(),Sm(t,{get title(){return r().title},onClose:s,children:(u,m)=>{var p=N0();_i(p,5,()=>r().groups,({title:v,items:_})=>v,(v,_)=>{let y=()=>n(_).title,$=()=>n(_).items;var x=R0(),I=C(x),T=C(I,!0);S(I);var R=k(I,2);_i(R,5,$,({description:A,value:P})=>P,(A,P)=>{let E=()=>n(P).description,z=()=>n(P).value;var F=V0(),U=C(F),X=C(U);Bd(X,()=>mb(E())),S(U);var ae=k(U,2),Z=C(ae,!0);S(ae),S(F),O(()=>ve(Z,z())),b(A,F)}),S(R),S(x),O(()=>ve(T,y())),b(v,x)}),S(p),b(u,p)},$$slots:{default:!0}}),H(),o()}var yv=require("@vkontakte/videoplayer-shared/es2018");var ol=require("@vkontakte/videoplayer-core/es2018");var vb=require("@vkontakte/videoplayer-shared/es2018");var O0=L('<div class="pillow s-27"><!></div>'),B0={hash:"s-27",code:".pillow.s-27{background-color:#679ff8;color:var(--white);font-size:6px;font-weight:600;-webkit-font-smoothing:antialiased;border-radius:12px;padding:2px 4px}"};function Tm(t,e){Q(t,B0);var i=O0(),o=C(i);ti(o,()=>{var r;return(r=e.children)!=null?r:ht}),S(i),O(()=>Ve(i,"data-testid",e.testId)),b(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 Im(t,e){let i=Ln(e,["$$slots","$$events","$$legacy","children"]);var o=H0();to(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"currentColor","fill-rule":"evenodd",role:"img",...i}));var r=C(o);ti(r,()=>{var a;return(a=e.children)!=null?a:ht}),si(),S(o),b(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 Em(t,e){let i=Ln(e,["$$slots","$$events","$$legacy","children"]);var o=F0();to(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"currentColor","fill-rule":"evenodd",role:"img",...i}));var r=C(o);ti(r,()=>{var a;return(a=e.children)!=null?a:ht}),si(),S(o),b(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 Pm(t,e){let i=Ln(e,["$$slots","$$events","$$legacy","children"]);var o=U0();to(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"currentColor",role:"img",...i}));var r=C(o);ti(r,()=>{var a;return(a=e.children)!=null?a:ht}),si(),S(o),b(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 km(t,e){let i=Ln(e,["$$slots","$$events","$$legacy","children"]);var o=z0();to(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"currentColor",role:"img",...i}));var r=C(o);ti(r,()=>{var a;return(a=e.children)!=null?a:ht}),si(),S(o),b(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 Am(t,e){let i=Ln(e,["$$slots","$$events","$$legacy","children"]);var o=W0();to(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"currentColor",role:"img",...i}));var r=C(o);ti(r,()=>{var a;return(a=e.children)!=null?a:ht}),si(),S(o),b(t,o)}var rp=t=>{switch(t){case jl.VideoQuality.Q_720P:return Pm;case jl.VideoQuality.Q_1080P:return km;case jl.VideoQuality.Q_1440P:return Am;case jl.VideoQuality.Q_2160P:return Im;case jl.VideoQuality.Q_4320P:return Em}};var 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 Lm(t,e){Je(t,{get testId(){return e.testId},children:(i,o)=>{var r=K0();b(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 Mm(t,e){Je(t,{get testId(){return e.testId},children:(i,o)=>{var r=q0();b(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),Q(t,G0);let i=h(e,"isMobile",3,!1),o=h(e,"currentQuality",3,void 0),r=f(()=>o()?(0,vb.getVideoQualityLabel)(o()):""),a=f(()=>rp(o())),l=f(()=>n(r).length>2);var d=Me(),s=ue(d);{var u=p=>{Lm(p,{testId:"settings-mobile-icon"})},m=p=>{var v=Q0();let _;var y=C(v);{var $=T=>{let R=f(()=>`${n(r)}-pill-icon`);Tm(T,{get testId(){return n(R)},children:(A,P)=>{var E=Me(),z=ue(E);Di(z,()=>n(a),(F,U)=>{U(F,{})}),b(A,E)},$$slots:{default:!0}})};V(y,T=>{n(a)&&T($)})}var x=k(y,2);let I=f(()=>n(a)?"settings-icon--labeled":"settings-icon");Mm(x,{get testId(){return n(I)}}),S(v),O(T=>_=oe(v,1,"icon s-1v",null,_,T),[()=>({triple:n(l)})]),b(p,v)};V(s,p=>{i()?p(u):p(m,!1)})}b(t,d),H()}var Y0=L('<span class="settings-icon-wrapper s-1y"><!></span>'),j0={hash:"s-1y",code:".settings-icon-wrapper.s-1y{position:relative;width:24px}"};function Xl(t,e){B(e,!0),Q(t,j0);let[i,o]=Ne(),r=()=>w(u,"$settingsMenuVisible",i),a=()=>w(v,"$isMobile",i),l=()=>w(s,"$currentQuality",i),d=be(),s=d.state.currentQuality$,u=d.ui.settingsMenu.visible$,m=d.actions.internal.openSettingsMenu,p=d.actions.internal.closeSettingsMenu,v=d.ui.isMobile,_=d.ui.t,y=q(void 0);De(()=>{n(y)&&It(()=>{e.ref$.set(n(y))})});let $=_("aria_label_settings");async function x(T){let R=ca(T);r()?p():m(R,mo)}let I=f(()=>r()?"opened":"");Ut(t,{get className(){return n(I)},testId:"settings-btn",click:x,get ariaLabel(){return $},get ariaExpanded(){return r()},get ref(){return n(y)},set ref(T){N(y,T,!0)},children:(T,R)=>{var A=Y0(),P=C(A);lc(P,{get isMobile(){return a()},get currentQuality(){return l()}}),S(A),b(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 fa(t,e){B(e,!0);let i=f(()=>`subtitles-icon${e.type==="off"?"-off":e.type==="outline"?"-outline":""}`),o=f(()=>fn(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=Me(),d=ue(l);{var s=m=>{var p=X0();si(),b(m,p)},u=m=>{var p=Z0();O(()=>Ve(p,"d",`M16.92 8h14.16q2.82-.02 4.66.1c1.28.1 2.4.32 3.46.86a8.8 8.8 90 013.84 3.84c.54 1.04.76 2.18.86 3.46q.12 1.84.1 4.66v6.16q.02 2.82-.1 4.66a10 10 90 01-.86 3.46 8.8 8.8 90 01-3.84 3.84 10 10 90 01-3.46.86q-1.84.12-4.66.1H16.92q-2.82.02-4.66-.1a10 10 90 01-3.46-.86 8.8 8.8 90 01-3.84-3.84 10 10 90 01-.86-3.46Q4 29.9 4 27.08v-6.16q-.02-2.82.1-4.66c.1-1.28.32-2.4.86-3.46A8.8 8.8 90 018.8 8.96a10 10 90 013.46-.86Q14.1 8 16.92 8
|
|
59
59
|
${e.type==="outline"?"M12.54 11.68c-1.04.1-1.64.26-2.1.48a5.2 5.2 90 00-2.28 2.28c-.22.46-.4 1.06-.48 2.1-.08 1.08-.08 2.46-.08 4.46v6c0 2 0 3.38.08 4.46.1 1.04.26 1.64.48 2.1q.78 1.5 2.28 2.28c.46.22 1.06.4 2.1.48 1.08.08 2.48.08 4.46.08h14c2 0 3.38 0 4.46-.08 1.04-.1 1.64-.26 2.1-.48a5.2 5.2 90 002.28-2.28c.22-.46.4-1.06.48-2.1.08-1.08.08-2.48.08-4.46v-6c0-2 0-3.38-.08-4.46a6 6 90 00-.48-2.1 5.2 5.2 90 00-2.28-2.28c-.46-.22-1.06-.4-2.1-.48-1.08-.08-2.48-.08-4.46-.08h-14c-2 0-3.38 0-4.46.08":""}
|
|
60
|
-
M12 29.8c0-1 .8-1.8 1.8-1.8h10.4a1.8 1.8 90 010 3.6H13.8a1.8 1.8 90 01-1.8-1.8m0-7.6c0-1 .8-1.8 1.8-1.8h3.4a1.8 1.8 90 110 3.6H13.8a1.8 1.8 90 01-1.8-1.8m17 7.6c0-1 .8-1.8 1.8-1.8h3.4a1.8 1.8 90 110 3.6h-3.4a1.8 1.8 90 01-1.8-1.8M22 22.2c0-1 .8-1.8 1.8-1.8h10.4a1.8 1.8 90 010 3.6h-10.4a1.8 1.8 90 01-1.8-1.8`)),b(m,p)};V(d,m=>{e.type==="off"?m(s):m(u,!1)})}b(r,l)},$$slots:{default:!0}}),H()}function Lm(t,e){B(e,!0);let i=h(e,"isSubtitlesEnabled",3,!1),r=be().ui.t,a=f(()=>i()?r("tooltip_subtitles_on"):r("tooltip_subtitles_off"));zt(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=f(()=>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-21" data-testid="video_duration"> </span>'),ex=L('<div><span class="current s-21" data-testid="current_time"> </span> <!></div>'),tx={hash:"s-21",code:'.time.s-21{align-items:center;color:var(--controls-time);display:flex;font-variant-numeric:tabular-nums;font-weight:500;padding:12px 6px}.time.mobile.s-21{padding:0 0 0 8px}.current.s-21{position:relative}.duration.s-21{opacity:.7}.duration.s-21:before{content:" / ";white-space:pre}'};function dc(t,e){B(e,!0),Q(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=Nt(),d=de(!1),s=f(()=>Zo(e.duration)),u=f(()=>Zo(e.position));var m=ex();let p;var v=C(m),_=C(v,!0);S(v);var y=k(v,2);{var $=x=>{var I=J0(),T=C(I,!0);S(I),O(()=>ve(T,n(s))),b(x,I)};V(y,x=>{r()&&x($)})}S(m),Vs(m,()=>Wl(o()&&l.features.usePerformanceFix,d,l.disableInvisibleComponentsTimeout)),je(m,x=>a(x),()=>a()),O(x=>{p=oe(m,1,"time s-21",null,p,x),ve(_,n(u))},[()=>({mobile:i()})]),b(t,m),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,m)=>m?"off":u>.5?"max":u>.2?"mid":u>0?"min":"off",a=f(()=>r(i(),o())),l=f(()=>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";Xe(t,{get style(){return n(l)},get testId(){var u;return`volume-${(u=n(a))!=null?u:""}-icon`},get shadow(){return e.shadow},children:(u,m)=>{var p=nx(),v=k(ue(p));{var _=$=>{var x=ix();di(),b($,x)},y=$=>{var x=ox();O(()=>Ve(x,"d",`${d}${n(a)==="max"?s:""}`)),b($,x)};V(v,$=>{n(a)==="off"?$(_):$(y,!1)})}b(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]=Ne(),r=()=>w(l,"$overlayContainer$",i),l=be().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))};De(()=>{u(r())}),Rt(()=>(u(r()),()=>s(r())));var m=rx(),p=C(m);oi(p,()=>{var v;return(v=e.children)!=null?v:gt}),S(m),je(m,v=>N(d,v),()=>n(d)),b(t,m),H(),o()}var sx=L('<div class="tooltip s-1o"><div class="content s-1o"> </div> <div class="tooltip-pointer s-1o"></div></div>'),ax=L("<div><!></div> <!>",1),lx={hash:"s-1o",code:'.tooltip-wrapper.s-1o{display:flex;flex-direction:column;min-width:0}.full-width.s-1o{width:100%}.tooltip.s-1o{bottom:100%;left:0;opacity:0;position:absolute;transition:opacity .2s,visibility .2s;visibility:hidden}.content.s-1o{background-color:rgba(41,41,41,.8);border-radius:3px;color:var(--white);display:inline-block;padding:6px 10px}.tooltip-pointer.s-1o{border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid rgba(41,41,41,.8);bottom:0;content:" ";font-size:0;line-height:0;position:absolute;width:0}'};function Ya(t,e){B(e,!0),Q(t,lx);let[i,o]=Ne(),r=()=>w(X,"$overlayContainer$",i),a=()=>w(U,"$containerSize",i),l=h(e,"isMobile",3,!1),d=h(e,"content",3,""),s=h(e,"active",15,!1),u=h(e,"translateX",3,0),m=h(e,"translateY",3,0),p=h(e,"isFullWidthWrapper",3,!1),v=h(e,"maxTooltipWidth",3,void 0),_=h(e,"placement",3,"top"),y=h(e,"onVisibilityChange",3,mb.noop),$=5,x=q(void 0),I=q(void 0),T,R=q(0),A=q(0),P=q(0),E=q(0),z=Nt(),F=be(),U=F.ui.playerSize,X=F.ui.overlayContainer$;De(()=>{Et(()=>{y()(s())})});let ae=F.getLogger().createComponentLog("Tooltip component"),Z=()=>{if(!r()||!n(I)||!n(x))return;N(A,$);let ne=r().getBoundingClientRect(),ce=n(x).getBoundingClientRect(),Re=ce.width,Ae=n(I).clientWidth,Je=a().width,Ee=(Re-Ae)/2,Te=ce.left+u()-ne.left,He=Te+Ee,Pt=ce.top+m()-ne.top,Ct=Ae/2-$,Mt=He<8,ut=He+Ae>Je-8;Mt&&(He=8,Ct=Te+ce.width/2-2.5*$),ut&&(He=Je-8-Ae,Ct=ce.left-ne.left+ce.width/2-He-$),N(P,He,!0),N(E,Pt),N(R,Ct,!0)},re=()=>{!r()||!n(I)||!n(x)||N(A,-$)},J=()=>{if(!r()||!n(I)||!n(x))return;N(R,$);let ne=r().getBoundingClientRect(),ce=n(x).getBoundingClientRect(),Re=ce.height,Ae=n(I).clientHeight,Je=(Re-Ae)/2+Ae,Ee=ce.left+u()-ne.left-n(I).clientWidth,Te=2,He=Ee-$;He<8&&(He=8);let Ct=ce.top+m()-ne.top+Je,Mt=Te-Je/2,ut=Te-$;N(P,He,!0),N(E,Ct),N(A,Mt),N(R,ut)},we=()=>{!r()||!n(I)||!n(x)||N(R,-$)},me=()=>{switch(_()){case"top":Z();break;case"bottom":re();break;case"left":J();break;default:we()}},ee=()=>{try{if(!r()||!n(x))return;me(),s(!0)}catch(ne){ae({message:String(ne)})}},_e=()=>{s(!1)},Ce=()=>{n(I)&&(T||(T=window.setTimeout(ee,z.controls.hideTimeoutTooltips)),s()&&ee())},ge=()=>{_e(),window.clearTimeout(T),T=void 0},pe=(ne,ce,Re)=>{let Ae="";switch(_()){case"top":Ae=`transform: translate(${ne}px, ${ce}px);`;break;case"bottom":Ae=`transform: translate(${ne}px, ${ce}px); top: auto; bottom: 100%;`;break;case"left":Ae=`transform: translate(${ne}px, ${ce}px); left: 0; right: auto;`;break;default:Ae=`transform: translate(${ne}px, ${ce}px);`}return Ae+=` max-width: ${v()===void 0?"auto":`${v()}px`};`,Ae+=` opacity: ${Re?1:0}; visibility: ${Re?"visible":"hidden"}`,Ae},qe=(ne,ce)=>{let Re="";switch(_()){case"top":Re=`transform: translate(${ne}px, ${ce}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Re=`transform: translate(${ne}px, ${ce}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Re=`transform: translate(${ne}px, ${ce}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Re=`transform: translate(${ne}px, ${ce}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Re},G=f(()=>pe(n(P),n(E),s())),D=f(()=>qe(n(R),n(A)));Rt(me),cn(()=>window.clearTimeout(T));var Qe=ax(),K=ue(Qe);let se;K.__pointermove=Ce,K.__pointerdown=ge,K.__pointerup=function(...ne){var ce;(ce=e.disableMouseupTooltipShow?void 0:Ce)==null||ce.apply(this,ne)};var xe=C(K);oi(xe,()=>{var ne;return(ne=e.children)!=null?ne:gt}),S(K),je(K,ne=>N(x,ne),()=>n(x));var Be=k(K,2);{var tt=ne=>{Mm(ne,{children:(ce,Re)=>{var Ae=sx(),Je=C(Ae),Ee=C(Je,!0);S(Je);var Te=k(Je,2);S(Ae),je(Ae,He=>N(I,He),()=>n(I)),O(()=>{Ke(Ae,n(G)),ve(Ee,d()),Ke(Te,n(D))}),b(ce,Ae)},$$slots:{default:!0}})};V(Be,ne=>{d()&&!l()&&ne(tt)})}O(ne=>se=oe(K,1,"tooltip-wrapper s-1o",null,se,ne),[()=>({"full-width":p()})]),ct("pointerenter",K,Ce),ct("pointerleave",K,ge),b(t,Qe),H(),o()}Ge(["pointermove","pointerdown","pointerup"]);var vb=t=>{t.stopPropagation()},dx=L("<div><!></div>"),cx={hash:"s-1l",code:".btn-container.s-1l{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-1l{min-width:0;width:100%}"};function Vo(t,e){B(e,!0),Q(t,cx);let[i,o]=Ne(),r=()=>w(u,"$isGraphOpened$",i),a=()=>w(s,"$isMobile",i),l=be(),d=_o(),s=l.ui.isMobile,u=d.graphIsOpened$,m=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),$=h(e,"width",15,void 0),x=h(e,"isFullWidthTooltip",3,!0),I=h(e,"tooltipContent",3,""),T=h(e,"tooltipVisible",3,!1),R=h(e,"tooltipPlacement",3,"top"),A=h(e,"disabledTooltipContent",19,()=>m("tooltip_button_disabled")),P=h(e,"isAriaHidden",3,!1),E=h(e,"onTooltipVisibilityChange",3,sp.noop),z=h(e,"initialTranslateXPx",3,0),F=h(e,"initialTranslateYPx",19,()=>-18),U=h(e,"mouseEnter",3,sp.noop),X=h(e,"mouseLeave",3,sp.noop),ae=f(()=>v()?r()?m("tooltip_disabled_when_graph_on"):A():I()),Z=q(!1);De(()=>{T()||N(Z,!1)});var re=dx();re.__pointerdown=[vb],re.__click=[vb];var J=C(re);{var we=ee=>{Ya(ee,{get content(){return n(ae)},get translateX(){return z()},get translateY(){return F()},get isFullWidthWrapper(){return x()},get placement(){return R()},get onVisibilityChange(){return E()},get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},get active(){return n(Z)},set active(_e){N(Z,_e,!0)},children:(_e,Ce)=>{var ge=Le(),pe=ue(ge);oi(pe,()=>{var qe;return(qe=e.children)!=null?qe:gt}),b(_e,ge)},$$slots:{default:!0}})},me=ee=>{var _e=Le(),Ce=ue(_e);oi(Ce,()=>{var ge;return(ge=e.children)!=null?ge:gt}),b(ee,_e)};V(J,ee=>{_()&&n(ae)&&!a()?ee(we):ee(me,!1)})}S(re),je(re,ee=>y(ee),()=>y()),O(()=>{var ee;oe(re,1,`btn-container ${(ee=p())!=null?ee:""}`,"s-1l"),Ve(re,"aria-hidden",P()||null)}),ct("mouseenter",re,function(...ee){var _e;(_e=U())==null||_e.apply(this,ee)}),ct("mouseleave",re,function(...ee){var _e;(_e=X())==null||_e.apply(this,ee)}),Ln(re,"clientWidth",$),b(t,re),H(),o()}Ge(["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=f(()=>(e.completed,"interactive-episode-completed-icon"));Xe(t,{width:"20",height:"20",fill:"none",get testId(){return n(i)},children:(o,r)=>{var a=ux(),l=ue(a),d=k(l);O(()=>{Ve(l,"fill",na),Ve(l,"fill-opacity",e.completed?1:.24),Ve(d,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),b(o,a)},$$slots:{default:!0}})}var px=L("<div><!></div>"),fx={hash:"s-17",code:".interactive-episode-icon.s-17{cursor:default;height:20px;position:absolute;transform:translateX(-50%);width:20px}.interactive-episode-icon.disabled.s-17{opacity:.4;pointer-events:none}"};function Vm(t,e){B(e,!0),Q(t,fx);let o=be().ui.t,r=q(0),a=f(()=>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 m=C(s);let p=f(()=>!!e.videoEpisode.completed);cc(m,{get completed(){return n(p)}}),S(s),O(v=>{u=oe(s,1,"interactive-episode-icon s-17",null,u,v),Ke(s,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),Ln(s,"clientWidth",v=>N(r,v)),b(l,s)},$$slots:{default:!0}}),H()}var mx=L('<div><div class="video-episode-inner s-16"><div class="video-episode-loaded s-16"></div> <div></div></div></div>'),vx=L('<div class="video-episodes-wrap s-16"></div>'),gx={hash:"s-16",code:".video-episodes-wrap.s-16{height:100%;position:absolute;width:100%}.video-episode.s-16{box-sizing:border-box;height:calc(var(--slider-height)*3);margin-top:calc(var(--slider-height)*-1);padding:var(--slider-height) var(--slider-video-episode-gap);position:absolute;transition:transform .2s}.video-episode.s-16:first-child{padding-left:0}.video-episode.s-16:last-child{padding-right:0}.video-episode.s-16:not(.disabled):where(:hover,:active){transform:scaleY(1.5)}.video-episode-filled.s-16,.video-episode-inner.s-16,.video-episode-loaded.s-16{border-radius:var(--slider-radius);height:var(--slider-height);position:absolute}.video-episode-inner.s-16{background:var(--slider-bg);overflow:hidden;position:absolute;width:calc(100% - var(--slider-video-episode-gap)*2)}.video-episode.s-16:first-child .video-episode-inner:where(.s-16),.video-episode.s-16:last-child .video-episode-inner:where(.s-16){width:calc(100% - var(--slider-video-episode-gap))}.video-episode-loaded.s-16{background:var(--slider-loaded-bg);transition:transform .2s}.video-episode-filled.s-16,.video-episode-loaded.s-16{border-radius:var(--slider-radius);height:100%;left:-100%;position:absolute;width:100%}.video-episode-filled.s-16{background-color:var(--slider-filled-bg)}"};function Rm(t,e){Q(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),m=k(u,2);let p;S(s),S(l),O((v,_)=>{d=oe(l,1,"video-episode s-16",null,d,v),Ke(l,`left: ${n(a).from}%; width: ${n(a).width}%`),Ke(u,`transform: translateX(${n(a).loadedWidth/n(a).width*100}%)`),p=oe(m,1,"video-episode-filled s-16",null,p,_),Ke(m,`transform: translateX(${n(a).filledWidth/n(a).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),b(r,l)}),S(o),b(t,o)}function hx(t,e,i,o,r,a,l){if(t.preventDefault(),e()&&N(i,e().getBoundingClientRect(),!0),o()||n(r)||!e())return;N(r,!0);let d=a(t.clientX,t.clientY);l()(d,t),e().setPointerCapture(t.pointerId)}function _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;N(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),N(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),Q(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),m=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),$=h(e,"onPointerDown",3,Ro.noop),x=h(e,"onHandleMove",3,Ro.noop),I=h(e,"onPointerUp",3,Ro.noop),T=h(e,"onPointerEnter",3,Ro.noop),R=h(e,"onPointerMove",3,Ro.noop),A=h(e,"onPointerLeave",3,Ro.noop),P=h(e,"onMouseEnter",3,Ro.noop),E=h(e,"onMouseLeave",3,Ro.noop),z=h(e,"onWheelUp",3,Ro.noop),F=h(e,"onWheelDown",3,Ro.noop),U=h(e,"onWheelLeft",3,Ro.noop),X=h(e,"onWheelRight",3,Ro.noop),ae=h(e,"onDisabledClick",3,Ro.noop),Z=h(e,"loadedProgress",3,0),re=h(e,"filledProgress",3,0),J=h(e,"handleProgress",3,0),we=h(e,"ariaLabel",3,""),me=h(e,"ariaValueMin",3,void 0),ee=h(e,"ariaValueMax",3,void 0),_e=h(e,"ariaValueNow",3,void 0),Ce=h(e,"ariaValueText",3,""),ge=h(e,"onContextMenu",3,Ro.noop),pe=h(e,"handleAlwaysVisible",3,!1),qe=Nt(),G=q(void 0),D=q(!1),Qe=f(()=>{var $e;return($e=ee())!=null?$e:0}),K=f(()=>{var $e;return(0,Ro.isNonNullable)(m())&&(($e=m()[m().length-1])==null?void 0:$e.time)<n(Qe)}),se=f(()=>(0,Ro.isNonNullable)(m())&&m().length&&n(K)&&n(Qe)?Je(Z()*100,re()*100):[]);function xe($e){if($e.preventDefault(),i()&&N(G,i().getBoundingClientRect(),!0),_())return;let Me=Re($e.clientX,$e.clientY),lt=Ae($e.clientX);T()(Me,lt,n(G).width)}function Be($e){$e.preventDefault(),!_()&&A()()}function tt(){P()()}function ne(){E()()}function ce($e){_()||p()&&($e.preventDefault(),$e.deltaY<0?z()():$e.deltaY>0?F()():$e.deltaX>0?X()():U()())}function Re($e,Me){return l()?Math.max(0,Math.min(1,(n(G).height-(Me-n(G).top))/n(G).height)):Math.min(Math.max($e-n(G).x,0),n(G).width)/n(G).width}function Ae($e){return Math.min(Math.max($e-n(G).x,0),n(G).width)}function Je($e,Me){let lt=qe.features.episodesClustering&&!v()?qe.episodeMinWidthPc:0,wt=[],fe=m()[0].time/n(Qe)*100,Oe=0,ze=0;for(let Tt=1;Tt<m().length;Tt++)Oe=m()[Tt].time/n(Qe)*100,Oe-fe>lt&&(wt.push({from:fe,width:Math.max(0,Oe-fe),loadedWidth:Math.max(0,Math.min(Oe,$e)-fe),filledWidth:Math.max(0,Math.min(Oe,Me)-fe),interactive:m()[Tt-1].interactive,completed:m()[Tt-1].completed}),fe=m()[Tt].time/n(Qe)*100,ze++);let St={from:fe,width:Math.max(0,100-fe),loadedWidth:Math.max(0,Math.min($e,100)-fe),filledWidth:Math.max(0,Math.min(Me,100)-fe),interactive:m()[ze].interactive,completed:m()[ze].completed};100-fe<lt?(ze-=1,wt[ze].width+=100-fe,wt[ze].loadedWidth+=Math.max(0,Math.min($e,100)-fe),wt[ze].filledWidth+=Math.max(0,Math.min(Me,100)-fe)):wt[ze]=St;let Gt=m()[0].time;if(Gt!==0){let Tt=Gt/n(Qe)*100;wt.unshift({from:0,width:Tt,loadedWidth:Math.min(Tt,$e),filledWidth:Math.min(Tt,Me)})}return wt}function Ee($e){return Math.max(0,Math.min(100,$e*100))}let Te=f(()=>Ee(Z())),He=f(()=>Ee(re()));var Pt=Sx(),Ct=ue(Pt);{var Mt=$e=>{var Me=xx();let lt;_i(Me,21,()=>n(se),wt=>wt.from,(wt,fe)=>{var Oe=Le(),ze=ue(Oe);{var St=Gt=>{Vm(Gt,{get videoEpisode(){return n(fe)},get disabled(){return _()}})};V(ze,Gt=>{n(fe).interactive&&Gt(St)})}b(wt,Oe)}),S(Me),O(wt=>lt=oe(Me,1,"interactive-icons s-t",null,lt,wt),[()=>({mobile:s(),hidden:s()&&!n(D)})]),b($e,Me)};V(Ct,$e=>{v()&&$e(Mt)})}var ut=k(Ct,2);let kt;ut.__pointerdown=[hx,i,G,_,D,Re,$],ut.__pointermove=[_x,_,Re,Ae,R,G,D,x],ut.__pointerup=[bx,_,D,Re,I],ut.__click=[$x,_,ae,Re],ut.__contextmenu=[yx,Re,_,ae,D,ge];var Zt=C(ut);{var At=$e=>{Rm($e,{get videoEpisodes(){return n(se)},get disabled(){return _()},get isMobile(){return s()}})},Bt=$e=>{var Me=wx(),lt=C(Me),wt=k(lt,2);let fe;S(Me),O(Oe=>{Ve(lt,"data-value",n(Te)),Ke(lt,`transform: translateX(${n(Te)}%);`),fe=oe(wt,1,"filled s-t",null,fe,Oe),Ve(wt,"data-value",n(He)),Ke(wt,`transform: translateX(${n(He)}%);`)},[()=>({"active-live":d()})]),b($e,Me)};V(Zt,$e=>{n(se).length?$e(At):$e(Bt,!1)})}var Wt=k(Zt,2);let Y;var Pe=C(Wt);let le;S(Wt),S(ut),je(ut,$e=>i($e),()=>i()),O(($e,Me,lt,wt)=>{var fe,Oe;kt=oe(ut,1,`slider ${(fe=o())!=null?fe:""}`,"s-t",kt,$e),Ve(ut,"aria-label",we()),Ve(ut,"aria-valuemin",me()),Ve(ut,"aria-valuemax",ee()),Ve(ut,"aria-valuenow",_e()),Ve(ut,"aria-valuetext",Ce()),Ve(ut,"data-testid",(Oe=r())!=null?Oe:null),Y=oe(Wt,1,"handleWrap s-t",null,Y,Me),Ke(Wt,lt),le=oe(Pe,1,"handle s-t",null,le,wt)},[()=>({disabled:_(),"slider-dragging":n(D),hidden:a(),"handle-always-visible":pe(),"slider-vertical":l(),"no-handle":y(),square:u()}),()=>({hidden:y()}),()=>`transform: translateX(${Ee(J())}%);`,()=>({"active-live":d()})]),ct("pointerenter",ut,xe),ct("pointerleave",ut,Be),ct("mouseenter",ut,tt),ct("mouseleave",ut,ne),ct("wheel",ut,ce),b(t,Pt),H()}Ge(["pointerdown","pointermove","pointerup","click","contextmenu"]);var io=(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>"),Px={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 Ae,Je;B(e,!0),Q(t,Px);let[i,o]=Ne(),r=()=>w(R,"$isAudioAvailable$",i),a=()=>w(v,"$muted$",i),l=()=>w(p,"$volume$",i),d=()=>w(x,"$currentGridType$",i),s=()=>w(xe,"$controlsVisible",i),u=be(),m=Nt(),p=u.state.volume$,v=u.state.muted$,{setVolume:_,startVolumeChanging:y,stopVolumeChanging:$}=u.actions.internal,x=u.ui.currentGridType$,I=(Ae=u.callbacks)==null?void 0:Ae.onAudioDoesNotExistHint,T=(Je=u.callbacks)==null?void 0:Je.onAudioDisabledHint,R=u.state.isAudioAvailable$,A=u.state.isAudioDisabled,P=u.ui.t,E=q(!1),z,F=f(()=>e.isAds||r()),U=f(()=>!n(F)||a()||l()===0),X=f(()=>Os(d(),"l")),ae=f(()=>n(X)?"":n(U)?!r()||A?P("tooltip_sound_unavailable"):P("tooltip_volume"):P("tooltip_volume_muted")),Z=f(()=>n(U)?P("tooltip_volume"):P("tooltip_volume_muted")),re=f(()=>n(U)?0:l()),J=!1,we=f(()=>e.isAds?!1:A?!T:r()?!1:!I);function me(Ee){y(),_(Ee)}function ee(){ip(u,l(),m.controls.volumeStepWheel)}function _e(){op(u,l(),m.controls.volumeStepWheel)}function Ce(Ee){_(Ee)}function ge(Ee){_(Ee),$()}function pe(){J=!0}function qe(){J=!1,Qe()}function G(){clearTimeout(z),N(E,!0)}function D(){Qe()}function Qe(){z=window.setTimeout(()=>{J||N(E,!1)},m.controls.volumeBarTimeout)}function K(Ee){Ee.preventDefault(),Ee.deltaY<0?ee():Ee.deltaY>0&&_e()}let se=q(!1),xe=u.ui.controlsVisible;De(()=>{s()||N(se,!1)});var Be=Ex();let tt;var ne=C(Be);Ya(ne,{get content(){return n(ae)},translateY:-18,get active(){return n(se)},set active(Ee){N(se,Ee,!0)},children:(Ee,Te)=>{let He=f(()=>n(X)?"btn-volume-vertical":"btn-volume-horizontal");zt(Ee,{className:"btn-full-opacity",get disabled(){return n(we)},get testId(){return n(He)},get ariaLabel(){return n(Z)},get click(){return e.click},get ariaKeyShortCut(){return gs.KeyM},role:"button",children:(Pt,Ct)=>{pa(Pt,{get size(){return"24"},get volume(){return l()},get muted(){return n(U)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var ce=k(ne,2);{var Re=Ee=>{var Te=Ix();let He;var Pt=C(Te);let Ct=f(()=>n(X)?"volumeBar-slider-vertical":""),Mt=f(()=>n(X)&&!n(E)),ut=f(()=>n(X)?pe:uc.noop),kt=f(()=>n(X)?qe:uc.noop),Zt=f(()=>Math.round(n(re)*100)),At=f(()=>`${Math.round(n(re)*100)}%`),Bt=f(()=>n(X)?"volume-slider-vertical":"volume-slider");ja(Pt,{get className(){return n(Ct)},get isHidden(){return n(Mt)},get isVertical(){return n(X)},withWheelHandler:!0,onWheelUp:ee,onWheelDown:_e,onPointerDown:me,onHandleMove:Ce,onPointerUp:ge,get onPointerEnter(){return n(ut)},get onPointerLeave(){return n(kt)},ariaLabel:"Ползунок громкости",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return n(Zt)},get ariaValueText(){return n(At)},get filledProgress(){return n(re)},get handleProgress(){return n(re)},get testId(){return n(Bt)}}),S(Te),O(Wt=>He=oe(Te,1,"volumeBar s-28",null,He,Wt),[()=>({"volumeBar-vertical":n(X)})]),b(Ee,Te)};V(ce,Ee=>{n(F)&&Ee(Re)})}S(Be),O(Ee=>tt=oe(Be,1,"volumeBar-container s-28",null,tt,Ee),[()=>({vertical:n(X)})]),ct("mouseenter",Be,function(...Ee){var Te;(Te=n(X)?G:uc.noop)==null||Te.apply(this,Ee)}),ct("mouseleave",Be,function(...Ee){var Te;(Te=n(X)?D:uc.noop)==null||Te.apply(this,Ee)}),ct("wheel",Be,K),b(t,Be),H(),o()}var hb=require("@vkontakte/videoplayer-shared/es2018");var kx=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");Xe(t,{get testId(){return n(o)},children:(r,a)=>{var l=Le(),d=ue(l);{var s=m=>{var p=kx();b(m,p)},u=m=>{var p=Ax();b(m,p)};V(d,m=>{i()?m(s):m(u,!1)})}b(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=be(),a=r.ui.isFullscreenOpenedByKeyboard,l=r.ui.t,d=f(()=>i()?l("tooltip_fullscreen_on"):l("tooltip_fullscreen_off"));zt(t,{testId:"fullscreen-btn",get ariaLabel(){return n(d)},click:u=>{let m=la(u);a.set(m),o()()},get ariaKeyShortCut(){return gs.KeyF},role:"button",children:(u,m)=>{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();to(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);oi(r,()=>{var a;return(a=e.children)!=null?a:gt}),di(),S(o),b(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();to(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);oi(r,()=>{var a;return(a=e.children)!=null?a:gt}),di(6),S(o),b(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),Q(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=f(()=>!o()&&!i()?91:i()?l:95),s=f(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?a:"vk-video-logo-icon"),u=f(()=>`0 0 ${n(d)} 24`);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]=Ne(),r=()=>w(_,"$isMobile",i),a=()=>w(v,"$currentGridType$",i),l=()=>w($,"$isCyrillicRelatedInterface$",i),d=h(e,"ref",15,void 0),s=h(e,"logoClickable",3,!1),u=h(e,"targetUrl",3,""),m=Nt(),p=be(),v=p.ui.currentGridType$,_=p.ui.isMobile,y=p.ui.t,$=p.isCyrillicRelatedInterface$,x=f(()=>m.logoType!=="vk"),I=f(()=>n(x)?y("tooltip_vk_video_logo"):y("tooltip_vk_logo")),T=f(()=>(r()&&Os(a(),"m")||Os(a(),"l"))&&n(x)),R=()=>{var E,z;e.click(),(E=p.callbacks)!=null&&E.onLogoClicked?(z=p.callbacks)==null||z.onLogoClicked():u()&&window.open(u(),"_blank")},A=f(()=>!s()),P=f(()=>n(x)?"btn-vk-video-logo":"btn-vk-logo");zt(t,{className:"btn-full-opacity",get disabled(){return n(A)},click:R,get testId(){return n(P)},get ariaLabel(){return n(I)},get ref(){return d()},set ref(E){d(E)},children:(E,z)=>{var F=Le(),U=ue(F);{var X=Z=>{Hm(Z,{get logo(){return m.logoType},get short(){return n(T)},get isCyrillic(){return l()}})},ae=Z=>{Om(Z,{})};V(U,Z=>{n(x)?Z(X):Z(ae,!1)})}b(E,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-u"></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-u"></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-u"></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-u",code:".animated.s-u{animation-duration:1s;animation-iteration-count:infinite}.wave1.animated.s-u{animation-name:s-u-wave1}.wave2.animated.s-u{animation-name:s-u-wave2}.wave3.animated.s-u{animation-name:s-u-wave3}@keyframes s-u-wave1{0%{opacity:.3}33%{opacity:1}66%{opacity:1}to{opacity:1}}@keyframes s-u-wave2{0%{opacity:.3}33%{opacity:.3}66%{opacity:1}to{opacity:1}}@keyframes s-u-wave3{0%{opacity:.3}33%{opacity:.3}66%{opacity:.3}to{opacity:1}}"};function mc(t,e){B(e,!0),Q(t,Dx);let i=h(e,"isMobile",3,!1),o=f(()=>e.iconState===Fm.ChromecastState.CONNECTED),r=f(()=>e.iconState===Fm.ChromecastState.CONNECTING),a=f(()=>n(o)?"#2688EB":na),l=f(()=>e.size?un(e.size):void 0);var d=Le(),s=ue(d);{var u=p=>{Xe(p,{get fill(){return n(a)},get style(){return n(l)},testId:"chromecast-mobile-icon",children:(v,_)=>{var y=Rx();di(2),b(v,y)},$$slots:{default:!0}})},m=p=>{Xe(p,{get style(){return n(l)},testId:"chromecast-icon",children:(v,_)=>{var y=Nx(),$=ue(y);let x;var I=k($);let T;var R=k(I);let A;var P=k(R);let E;var z=k(P);let F;O((U,X,ae,Z,re)=>{x=oe($,0,"wave2 s-u",null,x,U),T=oe(I,0,"wave3 s-u",null,T,X),A=oe(R,0,"wave1 s-u",null,A,ae),E=oe(P,0,"s-u",null,E,Z),F=oe(z,0,"s-u",null,F,re)},[()=>({animated:n(r)}),()=>({animated:n(r)}),()=>({animated:n(r)}),()=>({hidden:n(o)}),()=>({hidden:!n(o)})]),b(v,y)},$$slots:{default:!0}})};V(s,p=>{i()?p(u):p(m,!1)})}b(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=be().ui.t,d=f(()=>e.state===bb.ChromecastState.CONNECTED?l("tooltip_chromecast_on"):l("tooltip_chromecast_off"));zt(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){Xe(t,{testId:"episodes-icon",children:(e,i)=>{var o=Ox();di(2),b(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-26"> </span> <div class="chevron-episodes s-26" data-testid="btn-episodes_icon"><!></div>',1),Hx=L('<span class="text s-26"> </span>'),Fx=L('<span class="text count s-26"> </span>'),Ux=L('<span class="icon s-26"><!></span> <!>',1),zx={hash:"s-26",code:".icon.s-26{flex-shrink:0}.text.s-26{overflow:hidden;padding:0 8px;text-overflow:ellipsis;white-space:nowrap}.text.count.s-26{overflow:visible}.text.mobile.s-26{padding:0 3px 0 4px}.chevron-episodes.s-26{margin-bottom:-6px;opacity:.7;transform:scale(.8)}"};function gc(t,e){var J,we,me;B(e,!0),Q(t,zx);let[i,o]=Ne(),r=()=>w(y,"$currentGridType$",i),a=()=>w($,"$openedByKeyboard$",i),l=()=>w(x,"$panelOpened$",i),d=()=>w(I,"$isMobile",i),s=h(e,"position",3,0),u=h(e,"duration",3,0),m=h(e,"timeCodes",19,()=>[]),p=be(),v=(we=(J=p.callbacks)==null?void 0:J.onEpisodeChanged)!=null?we:yb.noop,_=!!((me=p.callbacks)!=null&&me.onEpisodeClicked),y=p.ui.currentGridType$,$=p.ui.episodes.openedByKeyboard$,x=p.ui.episodes.panelOpened$,I=p.ui.isMobile,T=p.ui.t,R=q(void 0),A=ee=>{var Ce,ge,pe;if(!!((Ce=p.callbacks)!=null&&Ce.onEpisodeClicked)){let qe=la(ee);$.set(qe),x.set(!0),(pe=(ge=p.callbacks)==null?void 0:ge.onEpisodeClicked)==null||pe.call(ge,qe)}},P=q(null),E=f(()=>s()/u());De(()=>{var _e;let ee=ap(n(E),u(),m());ee?((_e=n(P))==null?void 0:_e.time)!==ee.time&&(v(ee),N(P,ee,!0)):N(P,null)});let z=f(()=>{var ee;return((ee=n(P))==null?void 0:ee.text)||""}),F=f(()=>io(r(),"xl")?"FULL":io(r(),"m")?"COUNT":"SHORT"),U=f(()=>`${T("tooltip_episodes")}: ${n(z)}`),X=async(ee,_e,Ce)=>{await mo(),(ee==null?void 0:ee.getAttribute("aria-expanded"))==="false"&&_e&&!Ce&&Et(()=>{$.set(!1),ee.focus()})};De(()=>{X(n(R),a(),l())});var ae=Le(),Z=ue(ae);{var re=ee=>{let _e=f(()=>d()?"px-0":""),Ce=f(()=>!_);zt(ee,{get className(){var ge;return`w-max btn-full-opacity btn-jc-l ${(ge=n(_e))!=null?ge:""}`},testId:"btn-episodes",click:A,get disabled(){return n(Ce)},get ariaExpanded(){return l()},get ariaLabel(){return n(U)},get ref(){return n(R)},set ref(ge){N(R,ge,!0)},children:(ge,pe)=>{var qe=Le(),G=ue(qe);{var D=K=>{var se=Bx(),xe=ue(se),Be=C(xe,!0);S(xe);var tt=k(xe,2),ne=C(tt);Mr(ne,{direction:"right"}),S(tt),O(()=>ve(Be,n(z))),b(K,se)},Qe=K=>{var se=Ux(),xe=ue(se),Be=C(xe);Um(Be,{}),S(xe);var tt=k(xe,2);{var ne=Re=>{var Ae=Hx(),Je=C(Ae,!0);S(Ae),O(()=>ve(Je,n(z))),b(Re,Ae)},ce=(Re,Ae)=>{{var Je=Ee=>{var Te=Fx(),He=C(Te,!0);S(Te),O(()=>ve(He,m().length)),b(Ee,Te)};V(Re,Ee=>{n(F)==="COUNT"&&Ee(Je)},Ae)}};V(tt,Re=>{n(F)==="FULL"?Re(ne):Re(ce,!1)})}b(K,se)};V(G,K=>{d()?K(D):K(Qe,!1)})}b(ge,qe)},$$slots:{default:!0}})};V(Z,ee=>{n(P)&&ee(re)})}b(t,ae),H(),o()}var cv=require("@vkontakte/videoplayer-shared/es2018");var vi=require("@vkontakte/videoplayer-core/es2018"),at=require("@vkontakte/videoplayer-shared/es2018"),_s=require("@vkontakte/videoplayer-statistics/es2018");var We=require("@vkontakte/videoplayer-shared/es2018"),oo=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 oo.Subject,loadStarted$:new oo.Subject,loadEnded$:new oo.Subject,loadError$:new oo.Subject,ready$:new oo.Subject,slotRequested$:new oo.Subject,started$:new oo.Subject,timeRemained$:new oo.Subject,paused$:new oo.Subject,resumed$:new oo.Subject,ended$:new oo.Subject,empty$:new oo.Subject,skipped$:new oo.Subject,clicked$:new oo.Subject,closed$:new oo.Subject,error$:new oo.Subject};this.loadAdman=e=>(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[(0,We.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?(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[(0,We.now)()]}),i(),this.events.loadEnded$.next()):(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[(0,We.now)()]}),o())};(0,oo.addScript)(Wx,e,this.loadTimeout).then(()=>{We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[(0,We.now)()]}),window.AdmanHTML?(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[(0,We.now)()]}),i(),this.events.loadEnded$.next()):(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[(0,We.now)()]}),window.admanAsyncInit=a,r=window.setTimeout(a,this.initTimeout))}).catch(l=>{We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(l)],numbers:[(0,We.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?(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[(0,We.now)()]}),i(),this.events.loadEnded$.next()):(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[(0,We.now)()]}),o())},l=()=>{d=!0,o()},d=!1,s=window.setTimeout(()=>{We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[(0,We.now)()]}),l()},this.loadTimeout);e.addEventListener("abort",l),e.aborted&&(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[(0,We.now)()]}),l()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[(0,We.now)()]}),!d&&(window.AdmanHTML?(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[(0,We.now)()]}),i(),this.events.loadEnded$.next()):(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[(0,We.now)()]}),window.admanAsyncInit=a,r=window.setTimeout(a,this.initTimeout)))},l).finally(()=>{clearTimeout(r),clearTimeout(s),e.removeEventListener("abort",l)})});this.onAdsReady=()=>{We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[(0,We.now)()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{var o;We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[(0,We.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?ye(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;We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[(0,We.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;We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[(0,We.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(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[(0,We.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;We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[(0,We.now)()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,We.now)()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,We.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;We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[(0,We.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")=>{We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[(0,We.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"),We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[(0,We.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 A,P;if(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[(0,We.now)(),e.slotId]}),this.adman)return;this.events.init$.next(e.slotId),this.startWatchDog();let{width:i,height:o,isAutoplay:r,adsContainer:a,adsVideoElement:l,slotId:d,params:s={},paramsOverride:u={},duration:m,externalApi:p,json:v}=e;this.externalApi=p;let _,y=this.playerState&&ye(this.playerState.vsid);y&&(this.isVsidOriginal?_=y:_=parseInt(y,36));let{isEmbed:$,immediateOrigin:x}=(0,We.detectEmbed)(),I=(A=$?x:window.location.href)!=null?A:window.location.href,T=(0,We.withoutNullable)({...s,dl:encodeURIComponent(I),autoplay:r?1:0,player_width:i,player_height:o,..._?{request_id:_}:{},duration:m,...u}),R=(0,We.withoutNullable)({slot:v?void 0:d,wrapper:a,videoEl:l,videoQuality:o,params:v?void 0:T,browser:{mobile:!1},json:v});try{let E=new window.AdmanHTML;if(E.onReady(this.onAdsReady),E.onStarted(this.onAdStarted),E.onPlayed(this.onAdPlayed),E.onPaused(this.onAdPaused),E.adMidrollPoint(this.onAdMidrollPoint),E.onClosed(this.onAdClosed),E.onSkipped(this.onAdSkipped),E.onClicked(this.onAdClicked),E.onTimeRemained(this.onAdTimeRemained),E.onCompleted(this.onAdCompleted),E.onError(this.onAdError),E.setDebug(!1),!v&&((P=this.externalApi)!=null&&P.videoGetAds)){let z=await this.safeExternalCall(this.externalApi.videoGetAds,T);z&&(delete R.slot,delete R.params,Object.assign(R,{json:z}))}E.init(R),this.adman=E,this.videoElement=l,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(R)}`})}catch(E){We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(E)],numbers:[(0,We.now)()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,r,a;if(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[(0,We.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(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[(0,We.now)()]}),this.adsState){this.log({message:"toggle play"});let i=ye(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(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[(0,We.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(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[(0,We.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(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[(0,We.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(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[(0,We.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(We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[(0,We.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch(i){this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}setPosition(e,i){var o;(o=this.adman)==null||o.setPosition(Math.floor(e),Math.floor(i))}destroy(){var e,i,o,r,a,l,d,s,u,m,p,v;We.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[(0,We.now)()]}),this.log({message:"destroy"}),this.stopWatchDog(),(e=this.adman)==null||e.onReady(void 0),(i=this.adman)==null||i.onStarted(void 0),(o=this.adman)==null||o.onPlayed(void 0),(r=this.adman)==null||r.onPaused(void 0),(a=this.adman)==null||a.adMidrollPoint(void 0),(l=this.adman)==null||l.onClosed(void 0),(d=this.adman)==null||d.onSkipped(void 0),(s=this.adman)==null||s.onClicked(void 0),(u=this.adman)==null||u.onTimeRemained(void 0),(m=this.adman)==null||m.onCompleted(void 0),(p=this.adman)==null||p.onError(void 0),(v=this.adman)==null||v.destroy(),this.videoElement&&(0,oo.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:m,endTime:p}=u.parse(s);l.startTime=m,l.endTime=p}else if(s.trim()!==""){let u=new Wm,{texts:m}=u.parse(s);l.texts=[...l.texts,...m]}(l.startTime||l.endTime)&&l.texts.length>0&&o.push(l)}return o}},dp=class{constructor(){this.timeRegExp=/(\d{2,})?:?(\d{2}):(\d{2}).(\d{2,3})/;this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(e){let i={startTime:0,endTime:0},o=this.timingRegExp.exec(e);return o&&(i.startTime=this.calcTime(o[1],o[2],o[3],o[4]),i.endTime=this.calcTime(o[6],o[7],o[8],o[9])),i}parseTime(e){let i=this.timeRegExp.exec(e);return i?this.calcTime(i[1],i[2],i[3],i[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",i="0",o="0",r="0"){let a=Number(e)*60*60,l=Number(i)*60,d=Number(o),s=+`0.${r}`;return a+l+d+s}},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((m,p)=>{let v=l.indexOf(p,d);return m===-1||m>v?v:m},-1);if(u===-1){s.push(l.substring(d));break}s.push(l.substring(d,u)),d=u+1}return s}}),a=new 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,Pi,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:m})=>cp(t,u,m));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)(Pi)&&(r!=null&&r.length)&&!qm){Pi=r.find(({startTime:u,endTime:m})=>cp(t,u,m)||a&&Cb(t,u,m)),Xa=void 0,!(0,up.isNonNullable)(Pi)&&r[r.length-1].endTime<t&&(qm=!0);return}else{if(cp(t,Pi==null?void 0:Pi.startTime,Pi==null?void 0:Pi.endTime))return Xa=Pi,Pi=void 0,Sb=e.value,Xa;(a&&Kx(t,Pi==null?void 0:Pi.startTime,Pi==null?void 0:Pi.endTime)||l&&Cb(t,Pi==null?void 0:Pi.startTime,Pi==null?void 0:Pi.endTime))&&(Pi=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:m,previewThumbsData:p,uiConfig:v,coreConfig:_,player:y,disabledControls:$,isInteractive:x,interactiveRanges$:I,isInteractiveTime$:T,replayInteractive:R,stopPlayer:A,hasInteractiveBranches:P,playPrevChapterDisabledTooltip:E,additionalButtons:z,additionalSettingsMenuItems:F,additionalContextMenuItems:U,playPrevVideo:X,playNextVideo:ae,onVideoChanged:Z,looped:re=!1,statistics:J,saveRate:we,internalsExposure:me,playerView:ee,playerId:_e,metaConfig:Ce})=>{var hg,_g;let ge={..._,isAudioDisabled:l,live:{...(hg=_.live)!=null?hg:{},isLiveCatchUpMode:!!r}},pe=v,qe=at.TracerFactory.createRootTracer(pe.features.tracer),G=qe.createComponentTracer("Store"),D=y||new vi.Player(ge,qe,{playerId:_e,onDevNullLog:s==null?void 0:s.onDevNullLog});me==null||me.expose({corePlayer:D});let Qe=new at.Logger,K=new lp(Qe,{loadTimeout:pe.ads.loadTimeout,initTimeout:pe.ads.initTimeout,runtimeTimeout:pe.ads.runtimeTimeout,useAdmanFromNPM:pe.ads.useAdmanFromNPM,volumeMultiplier:pe.ads.volumeMultiplier,isVsidOriginal:pe.ads.isVsidOriginal}),se=Fa.getInstance(),xe=u==null?void 0:u.pictureInPictureApi,Be=u==null?void 0:u.annotationsApi,tt=u==null?void 0:u.slotsApi,ne=u==null?void 0:u.focusManager,ce=Qe.createComponentLog("Store"),Re,Ae,Je={},Ee=new Du,Te=new at.Subscription,He="",Pt=de(!1),Ct=J&&J.oneStat?ni(J.oneStat.vsid$):Lr(void 0),Mt=de(ra()),ut=de(!1),kt=()=>G_(document,vi.clientChecker.device.isIOS),Zt=(_g=xe==null?void 0:xe.info.isActive$)!=null?_g:new at.ValueSubject(!1),At=de(0),Bt=de(!1),Wt=de(!1),Y=de([]),Pe=(0,at.merge)(D.events.fatalError$,D.events.managedError$).subscribe(c=>Y.update(g=>[...g,c])),le=Lr(!1,c=>{let g=D.events.fatalError$.subscribe(()=>c(!0));return()=>g.unsubscribe()}),$e=async c=>{var ie;let g=Object.values(at.InterfaceLanguage).includes(c);if(pe.downloadVKLanguages&&(g&&pe.updateBuiltinLanguages||!om(c))){let Se;try{Se=await(0,at.loadVKLangPack)(c,r_,s_)}catch(Ye){(ie=J==null?void 0:J.oneStat)==null||ie.logError({errorType:"VKLangPack",fatal:!1}),se==null||se.report(Ye,{errorType:"VKLangPack",fatal:!1})}Se&&(im({language:c,pack:Se,fallback:pe.defaultLanguage}),Me.set(c),lt.update(Ye=>Ye+1))}om(c)&&Me.set(c)},Me=de(t),lt=de(0),wt=de(e);$e(t);let fe=(c,g)=>{let M=ye(Me);return nm(M,c,g,pe.defaultLanguage)},Oe=de("thumb");Oe.subscribe(c=>{c==="ads"&&D.info.playbackState$.getValue()&&Gt()});let ze=(()=>{let c=fi([le,Oe],([g,M])=>g?"crashed":M);return{...c,is:g=>ye(c)===g}})(),St=de(),Gt=()=>{St.set({muted:D.info.muted$.getValue()})},Tt=(()=>{let c=de(new Set($));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=ye(c);return Array.isArray(g)?g.every(ie=>M.has(ie)):M.has(g)}}})(),ri=de({width:0,height:0}),ci=null,Ni=D.info.isBuffering$,Dt=Lr(Ni.getValue(),c=>{let g=Ni.subscribe(M=>{M&&ci===null?ci=window.setTimeout(()=>{c(Ni.getValue()),ci=null},pe.loaderDelay):c(M)});return()=>{g.unsubscribe(),ci&&clearTimeout(ci)}});G.log("create store"),ce({message:"create store"});let vo=c=>{let g=c.container,M=()=>{wi=new MutationObserver(Se=>{let{removedNodes:Ye}=Se[0];Ye.length&&g.append(D.experimental.element$.getValue())}),wi.observe(g,{childList:!0})},ie=D.experimental.element$.getValue();if(ie)g.append(ie),M();else{let Se=D.experimental.element$.pipe((0,at.filter)(Ye=>!!Ye),(0,at.once)()).subscribe(Ye=>{g.append(Ye),M()});Te.add(Se)}},pi=c=>{ce({message:`init video, config: ${JSON.stringify(c)}`}),x?vo(c):(at.devNull.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[(0,at.now)()]}),D.initVideo(c)),G.log("init video",{isInteractive:x}),c.subtitles&&D.setExternalTextTracks(c.subtitles),Re=c,He=c.subtitlesForcedLanguage||""},it=new at.Subject,jt=c=>it.next(c),Di=new at.Subject,bi=new at.Subject,ei=new at.Subject,wi=null,st={actionRewind$:Di,actionSeek$:bi,inPiP$:Zt,inFullscreen$:new at.Observable(c=>Mt.subscribe(g=>c.next(g))),actionSetSubtitle$:ei,nextMovie$:it},ot=new at.Subject,Ci=new at.Subject,Jo={actionSeek$:bi,actionSubtitlesSwitched$:ot,actionQuality$:Ci,playerSize$:new at.Observable(c=>ri.subscribe(g=>c.next(g))),inPiP$:Zt,inFullscreen$:new at.Observable(c=>Mt.subscribe(g=>c.next(g))),isLoaderVisible$:new at.Observable(c=>Dt.subscribe(g=>c.next(g)))};if(J){let{oneStat:c,thinOneStat:g,mediascopePixel:M,statSubscription:ie}=J;c&&(x||ie.add(c.attachTo(D)),ie.add(c.attachToUi(st)),ie.add(c.attachToAds(K.events)),c.authorize(a).catch(Se=>{ce({message:`onestat auth error ${String(Se)}`})}),M&&M.attachTo(D)),g&&(ie.add(g.attachTo(D,K.events)),ie.add(g.attachToUi(Jo)),ie.add(g.attachToAds(K.events)),g.updateContext({isMobile:ye(Pt)}),g.authorize(a))}if(se){let c=new at.Subscription,g=(M,ie)=>c.add(M.subscribe(ie));if(g(D.events.managedError$,M=>{se.logIError(M)}),g(D.events.fatalError$,M=>{se.logIError(M,!0)}),J){let{oneStat:M}=J;M&&g(M.experimental.error$,ie=>{se.logIError(ie)})}se.sentrySubscription.add(c)}let No=()=>{if(vi.clientChecker.device.isIOS&&Ae)try{Y_(Ae)}catch(c){ce({message:`exitIosSafariFullscreen failed: ${c}`})}};Te.add(D.experimental.element$.subscribe(c=>{c&&(Ae=c,c.classList.add("player-media"),za(xe)&&xe.updateVideoElement(),x&&c.setAttribute("pip","false"),(ee==="preview"||!pe.features.pip&&!pe.features.dpip)&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(D.events.ended$.subscribe(()=>{var c;No(),(c=s==null?void 0:s.onEnded)==null||c.call(s)})).add(D.events.looped$.subscribe(()=>{var c;(c=s==null?void 0:s.onLooped)==null||c.call(s)})).add(D.events.started$.subscribe(async()=>{var g,M;za(xe)&&await(xe==null?void 0:xe.revealPictureInPicture());let c=D.info.muted$.getValue();(g=s==null?void 0:s.onStarted)==null||g.call(s),(M=Je.onStarted)==null||M.call(Je,c)})).add(D.events.willSeek$.subscribe(({from:c,to:g})=>{var M;(M=s==null?void 0:s.onSeek)==null||M.call(s,c,g)})).add(D.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=s==null?void 0:s.onAutoplaySoundProhibited)==null||c.call(s)})).add(D.info.position$.subscribe(c=>{var M;let g=D.info.duration$.getValue();isFinite(g)&&g>0&&((M=s==null?void 0:s.onTimeupdate)==null||M.call(s,g,c),K.setPosition(c,g))})).add(D.events.fatalError$.subscribe(c=>{var g;(g=s==null?void 0:s.onCrashed)==null||g.call(s,c?`${c.id}: ${c.message}`:void 0)})).add(D.events.fetcherRecoverableError$.subscribe(c=>{var g;(g=s==null?void 0:s.onRecoverableError)==null||g.call(s,c?`${c.id}: ${c.message}`:void 0)})).add(D.events.loadedMetadata$.subscribe(()=>{Bt.set(!0)})).add(D.info.is3DVideo$.subscribe(c=>{Wt.set(c)})).add(D.info.isEnded$.subscribe(c=>{x&&(c?(T!=null&&T.getValue()&&Tt.add(qd),Tt.add("PLAY_BUTTON")):Tt.remove("PLAY_BUTTON"))})).add(D.info.liveTime$.subscribe(c=>{var g;(g=s==null?void 0:s.onLiveTime)==null||g.call(s,c)})).add(D.info.isStalled$.subscribe(c=>{var g;(g=s==null?void 0:s.onStalledChanged)==null||g.call(s,c)})).add(D.info.isLiveEnded$.subscribe(c=>{var g;return c&&((g=s==null?void 0:s.onLiveEnded)==null?void 0:g.call(s))})).add(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 ht=new at.Subscription,Ht=()=>{var Ye,Lt,Ft;let{debugLog:c}=pe,g,M="#9df7b7",ie="#efd169";if(c&&c!==!0){let{colors:qt}=c;g=c.tag,M=(Ye=qt==null?void 0:qt[0])!=null?Ye:M,ie=(Ft=(Lt=qt==null?void 0:qt[1])!=null?Lt:qt==null?void 0:qt[0])!=null?Ft:ie}let Se=g?`: ${g}`:"";ht.add(D.events.log$.subscribe(qt=>{console.debug(`%c sdk${Se} `,`background:${M};`,`sdk component: ${qt.component}`,qt.message)})).add(Qe.log$.subscribe(qt=>{console.debug(`%c ui${Se} `,`background:${ie};`,`ui component: ${qt.component}.`,qt.message)}))},W=()=>{ht.unsubscribe()},Vt=(c,g)=>{G.log("start camera manual rotation",{mx:c,my:g}),D.startCameraManualRotation(c,g)},si=(c=!1)=>{G.log("stop camera manual rotation",{immediate:c}),D.stopCameraManualRotation(c)},vt=(c,g,M)=>{G.log("move camera focus px",{xpx:c,ypx:g,dt:M}),D.moveCameraFocusPX(c,g,M)},Jt=()=>{D.holdCamera()},_t=()=>{D.releaseCamera()},rt=Lr(D.info.position$.getValue(),c=>{let g,M,ie=()=>{let Se=D.info.playbackState$.getValue(),Ye=D.info.isLive$.getValue(),Lt=D.info.duration$.getValue(),Ft=D.info.position$.getValue();if(Se&&[vi.PlaybackState.PLAYING,vi.PlaybackState.PAUSED].includes(Se)){let qt=Ye?Ft-Lt:D.getExactTime();qt!==M&&c(qt),M=qt}g=requestAnimationFrame(ie)};return ie(),()=>cancelAnimationFrame(g)}),Oi=ni(D.info.playbackState$),ki=ni(D.info.isBuffering$),fn=fi([Oi,ki],([c,g])=>g?"buffering":c),mn=ni(D.info.currentBuffer$),Ai=ni(D.info.isEnded$),Bi=ni(D.info.isLive$),Dn=pe.features.playbackRate?ni(D.info.canChangePlaybackSpeed$):Lr(!1),bo=ni(D.info.liveBufferTime$),ro=ni(D.info.volume$),Ii=ni(D.info.muted$),Do=Ou(D.info.predefinedQualityLimitType$.pipe((0,at.map)(c=>c===vi.PredefinedQualityLimits.TRAFFIC_SAVING)),D.info.predefinedQualityLimitType$.getValue()===vi.PredefinedQualityLimits.TRAFFIC_SAVING),Oo=Ou(D.info.predefinedQualityLimitType$.pipe((0,at.map)(c=>c===vi.PredefinedQualityLimits.HIGH_QUALITY)),D.info.predefinedQualityLimitType$.getValue()===vi.PredefinedQualityLimits.HIGH_QUALITY),vn=ni(D.info.autoQualityLimitingAvailable$),Rr=ni(D.info.availableQualities$),Nr=ni(D.info.availableQualitiesFps$),Dr=ni(D.info.chromecastState$),$s=ni(D.info.chromecastDeviceName$),Or=ni(D.info.currentFormat$),er=ni(D.info.throughputEstimation$),Br=ni(D.info.videoBitrate$),gn=ni(D.info.intrinsicVideoSize$),hn=ni(D.info.duration$),mr=ni(D.info.isAudioAvailable$),vr=()=>{ci&&clearTimeout(ci),ci=null},en=fi([hn,Bi],([c,g])=>g?-c:c),gr=fi([Oi],([c])=>c===vi.PlaybackState.PLAYING),hr=ni(D.info.atLiveEdge$),tr=ni(D.info.atLiveDurationEdge$),On=ni(D.info.position$),as=fi([On,hn],([c,g])=>isFinite(c)&&isFinite(g)&&!!g),Bo=fi([Dr],([c])=>c===vi.ChromecastState.CONNECTED),_r=ni(D.info.availableVideoStreams$),Hi=pe.features.audioLanguages?ni(D.info.availableAudioStreams$):Lr([]),br=ni(D.info.currentVideoStream$),Bn=ni(D.info.currentAudioStream$),mt=c=>{c.language&&Zf(c.language),D.setVideoStream(c)},ti=(c,g)=>{D.setAudioStream(c),Ho(g)&&(c.language&&Zf(c.language),pe.features.userVideoPrefs&&i&&tm(pe.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)),pe.features.userVideoPrefs&&i){let ie=zu(pe.userSalt,String(i));if(ie!=null&&ie.audioTrackId){let Se=c.find(Ye=>Ye.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=>{G.log("change audio stream",{id:c});let g=D.info.availableAudioStreams$.getValue().find(M=>M.id===c);g&&ti(g,!0)},Fr=!1;Te.add(D.info.availableAudioStreams$.subscribe(c=>{if(!Fr&&c.length){let g=$r(c);g&&(D.setAudioStream(g),Fr=!0)}})),Hi.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(D.info.availableVideoStreams$.subscribe(c=>{if(!Hn&&c.length){let g=$r(c);g&&(D.setVideoStream(g),Hn=!0)}}));let ir=de(void 0),$o=ni(D.info.isAutoQualityEnabled$,c=>c&&ir.set(void 0)),Fn=ni(D.info.currentQuality$,()=>ir.set(void 0)),or=fi([ir,Fn],([c,g])=>c!=null?c:g),Un=fi(Or,c=>c!==vi.VideoFormat.MPEG),_n=fi([Rr,Nr,$o,or,Un],([c,g,M,ie,Se])=>{let Ye=[];Se&&Ye.push({value:"auto",displayValue:fe("auto_quality_option"),selected:M});let Lt=c.filter(Ft=>!(0,at.isInvariantQuality)(Ft));for(let Ft of Lt){let qt=g[Ft];Ye.push({value:Ft,displayValue:`${Ft}${qt?xb(qt):""}`,selected:M?!1:Ft===ie})}return Ye}),bn=ni(D.info.currentPlaybackRate$),$n=fi([bn,hr,tr],([c,g,M])=>{let ie=M||x?1:pe.controls.playbackRateMin,Se=g?1:pe.controls.playbackRateMax,Ye=pe.controls.playbackRateStep,Lt=[];for(let Ft=ie;Ft<=Se;Ft+=Ye)Lt.push({value:Ft,displayValue:Ft===1?fe("playback_rate_1"):fe("playback_rate",{multiplier:Ft.toString(10)}),selected:c===Ft});return Lt}),tn=()=>({displayValue:fe("subtitles_off"),value:Nn,language:""}),Fi=de(tn()),Xi=fi([Fi,lt],([c],g)=>{c.value===Nn?g(tn()):g(c)}),on=pe.features.subtitles?ni(D.info.availableTextTracks$):Lr([]),nr=y_(),yr=fi([on,Xi],([c,g],M)=>{var Ye;let ie=[],Se=c.find(({id:Lt})=>Lt===g.value);if(Se!=null&&Se.url){let[,Lt]=(Ye=nr.find(Se.url))!=null?Ye:[];if(Lt){M(Lt);return}Ee.download(Se.url).then(Ft=>{if(!Ft||Ee.isDestroyed())return;let qt=new wb,Gs=Se.language;if(Gs){let I$=!!Se.isAuto,E$=qt.parse(Ft,Gs);ie.push({lang:Gs,subtitles:E$,isAuto:I$,id:Se.id})}nr.add(Se.url,ie),ye(Xi).value===g.value&&M(ie)}).catch(Ft=>{var qt;(qt=J==null?void 0:J.oneStat)==null||qt.logError({errorType:"Subtitles download",fatal:!1}),se==null||se.report(Ft,{errorType:"Subtitles download",fatal:!1})})}M(ie)}),yn=fi([bn,gr,Xi],([c,g,M],ie)=>{let Lt;if(D.info.isLive$.getValue()&&g&&M.value!==Nn){let qt=()=>{let Gs=1e3/(3*c);Lt=setTimeout(qt,Gs),ie(Date.now())};return qt(),()=>clearTimeout(Lt)}}),xr=fi([on,Xi],([c,g])=>{if(!c.length)return[];let M=[];for(let{language:ie,isAuto:Se,id:Ye}of c){let Lt=ie&&hc(ie);ie&&Lt&&M.push({displayValue:Se?fe("subtitles_auto",{language:Lt}):Lt,value:Ye,selected:(g==null?void 0:g.value)===Ye,isAuto:Se,language:ie})}return M.length?(M.unshift({...tn(),selected:(g==null?void 0:g.value)===Nn}),M):[]}),pt={available:[],prev:[]},xt=()=>{var g,M;let c=D.experimental.getCurrentTime$.getValue();return(M=(g=c==null?void 0:c())!=null?g:Ae==null?void 0:Ae.currentTime)!=null?M:0},so=fi([rt,Xi,yr,yn],([c,g,M,ie])=>{var Ye;let Se=D.info.isLive$.getValue();if(Se&&pt.prev!==M){let Lt=M.find(({id:qt})=>qt===g.value),Ft=pt.prev.find(({id:qt})=>qt===g.value);if(Lt){let qt={...Lt,subtitles:[...(Ye=Ft==null?void 0:Ft.subtitles)!=null?Ye:[],...Lt.subtitles]};pt.available=[qt],pt.prev=M}}if(g&&g.value!==Nn){let Lt=Se?xt():c,Ft=Se?pt.available:M;return Tb(Lt,g,Ft,Se)}}),go=fi([so],([c])=>c!=null&&c.texts?c.texts:[]);Te.add(Xi.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,Ye])=>Ye===c.displayValue);(M=s==null?void 0:s.onSubtitleOn)==null||M.call(s,ie?ie[0]:"",c.value)}}));let nn=de(!0),yo=fi([mn,en,On,bo],([c,g,M,ie])=>{var Ft;let Se=(Ft=c==null?void 0:c.end)!=null?Ft:0;if(!ie)return Se/g;let Lt=-M+ie-g;return(Se-Lt)/g}),xo=ni(D.info.availableSources$),Ei=fi([xo],([c])=>Object.keys((c==null?void 0:c[vi.VideoFormat.MPEG])||{}).length>0),wo=()=>{var M,ie,Se;let c=Object.keys(((ie=(M=D.info.availableSources$)==null?void 0:M.getValue())==null?void 0:ie[vi.VideoFormat.MPEG])||{}),g=(0,at.getHighestQuality)(c)||at.VideoQuality.Q_144P;return(Se=Re.sources[vi.VideoFormat.MPEG])==null?void 0:Se[g]},Ur=()=>{var g;let c=wo();if(c)G.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";G.log("download video",{message:M}),ce({message:M})}},wr=()=>{ce({message:"toggle muted"});let c=D.info.muted$.getValue();D.info.volume$.getValue()===0&&!c?zr(Sr(),!1):rn(!c,!1)},ys=()=>{var c;if(Kt.ui.settingsMenu.visible$.set(!1),!ye(Kt.ui.settingsSubMenu.visible$)){let g=ye(Kt.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"})}}G.log("close settings menu")},Ui=async(c,g=()=>Promise.resolve())=>{var Se;Kt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),Kt.ui.settingsMenu.visible$.set(!0),await g();let M=ye(Kt.ui.settingsMenu.ref$),ie=ya();if((Se=s==null?void 0:s.uiInfo)!=null&&Se.onSettingsMenu&&M&&ie){let Lt=Zl(M),Ft=Bs(M,ie);s.uiInfo.onSettingsMenu({visible:!0,size:Lt,position:Ft,name:"settings"})}G.log("open settings menu",{wasOpenedByKeyboard:c})},xs=(c,g=!1)=>{var Ye;Kt.ui.settingsSubMenu.visible$.set(!1);let M=ye(Kt.ui.settingsMenu.ref$),ie=ya(),Se=ye(Kt.ui.settingsMenu.visible$);if((Ye=s==null?void 0:s.uiInfo)!=null&&Ye.onSettingsMenu&&M&&ie)if(Se&&!g){let Ft=Zl(M),qt=Bs(M,ie);s.uiInfo.onSettingsMenu({visible:!0,size:Ft,position:qt,name:"settings"})}else{let Ft=Zl(c),qt={top:0,left:0,bottom:0,right:0},Gs=ye(Kt.ui.settingsSubMenu.name$);s.uiInfo.onSettingsMenu({visible:!1,size:Ft,position:qt,name:Gs})}G.log("close settings sub menu")},ls=(c,g)=>{var ie;Kt.ui.settingsSubMenu.visible$.set(!0),Kt.ui.settingsSubMenu.ref$.set(g),Kt.ui.settingsSubMenu.name$.set(c);let M=ya();if((ie=s==null?void 0:s.uiInfo)!=null&&ie.onSettingsMenu&&g&&M){let Ye=Zl(g),Lt=Bs(g,M);s.uiInfo.onSettingsMenu({visible:!0,name:c,size:Ye,position:Lt})}G.log("open settings sub menu",{name:c})},Sr=()=>{var g;let c=Math.max(pe.volumeMinRestore,(g=Bu())!=null?g:0);return c===0?pe.volumeDefault:c},Ho=c=>{let g=pe.features.savePreferredStatesOnUserActionOnly;return!g||g&&!c},zr=(c,g)=>{let M=c===0?Sr():c,ie=D.info.muted$.getValue();ce({message:`set volume, volume: ${c}, preferredVolume: ${M}`});let Se=!l||ze.is("ads");ie&&c>0&&Se&&(ie=!1,Ho(g)&&jf(!1)),D.setVolume(c,ie),K.setVolume(c),Ho(g)&&qf(M)},rn=(c,g)=>{let M=D.info.volume$.getValue();ce({message:`set muted, currentVolume: ${M}, mute: ${c}`});let ie=ze.is("ads");if(D.setMuted(c,ie),K.setVolume(c?0:M),Ho(g)&&(!ie||!c)&&jf(c),!c&&M===0){let Se=Sr();D.setVolume(Se),Ho(g)&&qf(Se),K.setVolume(Se)}},sn=de(!1),Fe=c=>{var g,M;G.log("set looped",{isLooped:c}),sn.set(c),D.setLooped(c),(M=(g=s==null?void 0:s.uiInfo)==null?void 0:g.onLoopedChanged)==null||M.call(g,c)};Fe(re);let It=()=>{var c,g;(g=(c=s==null?void 0:s.uiInfo)==null?void 0:c.onReportProblem)==null||g.call(c)},ui=(c,g=!1)=>{var M;ce({message:`set autoplayNextEnabled, value: ${c}`}),G.log("set autoplay next enabled",{autoplayNextEnabled:c}),Kt.ui.autoplayNextEnabled$.set(c),N_(c),g&&((M=s==null?void 0:s.onSetAutoplayNextEnabled)==null||M.call(s,c))},Fo=c=>{ce({message:`set timerNextVideoRunning, value: ${c}`}),G.log("set timer next video running",{timerNextVideoRunning:c}),Kt.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){ce({message:"onPrevVideoClick callback failed to execute"})}Z(!0),g&&X()},Uo=(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){ce({message:"onNextVideoClick callback failed to execute"})}Z(!1),g&&ae()},zi=()=>{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=()=>{D.prepare()},ao=()=>{(0,at.assertNonNullable)(Kt);let c=ye(Kt.ui.controls.disabledControls$),g=ye(Kt.playerPhase),M={playerPhase:g,isInteractive:x,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(ce({message:"toggle play"}),g==="ads"){M.action="play",G.log("toggle adman play",M),K.togglePlay();return}let ie=()=>{var Ye;ce({message:"toggle play, call player.play"}),M.action="play",D.play(),(Ye=s==null?void 0:s.onPlay)==null||Ye.call(s)},Se=()=>{var Ye;ce({message:"toggle play, call player.pause"}),M.action="pause",D.pause(),(Ye=s==null?void 0:s.onPause)==null||Ye.call(s)};if(D.info.isEnded$.getValue()){if(ce({message:"toggle play, video ended, seek to 0"}),Di.next(),bi.next(_s.SeekAction.REWIND),x){R==null||R();return}D.seekTime(0),ie()}else D.info.playbackState$.getValue()!==vi.PlaybackState.PLAYING?ie():Se();G.log("toggle play",M)},xn=(c,{changeReason:g="default",appliesTo:M="to-video",byUser:ie=!1}={},Se)=>{ce({message:`set quality, quality: ${c}`}),G.log("set quality",{quality:c}),ie&&Ci.next(c),D.setAutoQuality(c==="auto");let{qualityDetailsSubMenuEnabled:Ye}=pe.features;Hu(),c!=="auto"?(Ye?(Fu({type:"exact_quality",quality:c,videoId:i},M),D.setPredefinedQualityLimits(vi.PredefinedQualityLimits.UNKNOWN)):Qf(i,c),ir.set(c),D.setQuality(c)):Ye&&g==="default"&&(Kr("auto_quality",M,Se),ye(Do)&&zo(!1,void 0,Se),ye(Oo)&&Wn(!1,void 0,Se))},zo=(c,g="as-default",M)=>{ce({message:`set trafficSavingEnabled, value: ${c}`}),G.log("set traffic saving enabled",{trafficSavingEnabled:c});let ie=c?vi.PredefinedQualityLimits.TRAFFIC_SAVING:vi.PredefinedQualityLimits.UNKNOWN;pe.features.qualityDetailsSubMenuEnabled?(Wr(ie,g,M),Yd(!1)):(D.setPredefinedQualityLimits(ie),Ho(M)&&Yd(c))},Wn=(c,g="as-default",M)=>{ce({message:`set highQualityEnabled, value: ${c}`}),G.log("set high quality enabled",{highQualityEnabled:c}),Wr(c?vi.PredefinedQualityLimits.HIGH_QUALITY:vi.PredefinedQualityLimits.UNKNOWN,g,M)},Wr=(c,g,M)=>{c!==vi.PredefinedQualityLimits.UNKNOWN&&(ye(vn)&&!ye($o)&&xn("auto",{appliesTo:g,changeReason:"limit-changed"},M),Kr(c,g,M)),D.setPredefinedQualityLimits(c)},Kr=(c,g,M)=>{Ho(M)&&(Fu({type:c,videoId:i},g),g==="as-default"&&Fu({type:c,videoId:i},"to-video"))},Kn=(c,g=!0)=>{G.log("set playback rate",{playbackRate:c}),D.setPlaybackRate(c),pe.features.saveRate&&we&&!D.info.isLive$.getValue()&&g&&V_(c)},Ze=()=>{let c=ye(Dn),g=ye($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=ye(Dn),g=ye($n),M=g.findIndex(({selected:Se})=>Se);if(M===0||!c)return g[M];let ie=g[M-1];return Kn(ie.value),ie},$i=(c={...tn(),selected:!1},g)=>{G.log("set subtitles",{...c}),c.value!==Nn&&ei.next(c.isAuto?c.value+"_auto":c.value),ot.next({enabled:c.value!==Nn,lang:c.language,auto:!!c.isAuto}),Fi.set(c),Ho(g)&&(em(c.value===Nn?void 0:c.language),pe.features.userVideoPrefs&&i&&tm(pe.userSalt,String(i),{subtitleTrackId:c.value===Nn?void 0:c.value}))},Io=c=>{G.log("toggle subtitles");let g=ye(Xi);(g==null?void 0:g.value)===Nn?qn(c):Wo(c)},wn=(c,g)=>{G.log("change subtitle",{enabled:c}),c?qn(!0,g):Wo(!0)},qn=(c,g)=>{G.log("subtitle on");let M=ye(xr),ie=ye(Me),Se=He!=null?He:ie,Ye;g&&(Ye=M.find(Lt=>Lt.value===g)),Ye!=null||(Ye=M.filter(Lt=>Lt.value!==Nn).find(Lt=>Lt.language===Se)),$i(Ye!=null?Ye:M[1],c)},Wo=c=>{G.log("subtitle off"),$i(void 0,c)};Te.add(D.info.availableTextTracks$.subscribe(c=>{var M;function g(){let ie=[];for(let{language:Se,isAuto:Ye,id:Lt}of c){let Ft=Se&&hc(Se);Se&&Ft&&ie.push({id:Lt,language:Se,title:Ye?fe("subtitles_auto",{language:Ft}):Ft})}return ie}(M=s==null?void 0:s.onAvailableSubtitlesChanged)==null||M.call(s,g())}));let rr=de(!0),ds=c=>{rr.set(c)},Tr=(c,g,M=!0)=>{var ie;if(ce({message:`seek to time, time: ${c}`}),G.log("seek to time",{time:c,action:g,forcePrecise:M}),bi.next(g),D.info.isLive$.getValue()){let Se=D.info.duration$.getValue(),Ye=Math.min(0,Se+c);D.seekTime(Ye,M)}else{if(T!=null&&T.getValue())return;D.info.isEnded$.getValue()&&(ce({message:"seek after ended, call callbacks.onPlay"}),(ie=s==null?void 0:s.onPlay)==null||ie.call(s)),D.seekTime(an(c),M)}},ws=c=>{ce({message:`seek to episode start time: ${c}`}),G.log("seek to episode start time",{time:c}),Tr(c,_s.SeekAction.EPISODE,!0)},Ws=(c,g,M=!1)=>{ce({message:`seek to percent, percent: ${c}`}),G.log("seek to percent",{percent:c,action:g});let ie=ye(en)*c;Tr(ie,g,M)},va=c=>{ce({message:`seek external, time: ${c}`}),G.log("seek external",{time:c}),bi.next(_s.SeekAction.UNKNOWN),D.seekTime(D.info.isLive$.getValue()?-c:c)},dt=c=>{var ie,Se;let g=(ie=c.max)!=null?ie:"none",M=(Se=c.min)!=null?Se:"none";ce({message:`set auto quality limitation. Max: ${g}. Min: ${M}`}),G.log("set auto quality limits",{max:g,min:M}),D.setAutoQualityLimits(c)},ai=c=>{ce({message:`seek external to episode start time: ${c}`}),G.log("seek external to episode start time",{time:c}),Tr(c,_s.SeekAction.EPISODE,!0)},Eo=c=>{ce({message:`set playback rate to: ${c}`}),G.log("set playback rate external",{playbackRate:c}),D.setPlaybackRate(c)},yi=de(!1),Sn=de(!1),Cn=fi([en],([c])=>!!p&&c>=pe.suitableDurationForUsingRichSeek&&pe.features.useRichSeek&&!x),Ss=((p==null?void 0:p.frameWidth)||0)>=((p==null?void 0:p.frameHeight)||0),Cs=fi([At],([c])=>{let g=Jl(c);return Ss?!g:g});Te.add(ze.subscribe(c=>{c!=="video"&&yi.set(!1)})),yi.subscribe(c=>{var g;(g=s==null?void 0:s.onRichSeekActiveChanged)==null||g.call(s,c)});let Wi=de(void 0),Ti=de(!1),he=c=>{ce({message:`start scrubbing, progress: ${c}`}),G.log("start scrubbing",{progress:c}),Ti.set(!0),bt(c)},bt=c=>{Wi.set(c)},ii,Yt,Po=()=>{Wi.set(void 0),Ti.set(!1)},lo=()=>{clearTimeout(Yt),clearTimeout(ii),ii=window.setTimeout(()=>{Po()},500),Ae==null||Ae.removeEventListener("seeked",lo)},Ko=(c,g=!1)=>{ce({message:`complete scrubbing, progress: ${c}`}),G.log("complete scrubbing",{progress:c}),Ws(c,_s.SeekAction.SLIDER,g),ye(Kt.ui.isMobile)&&ye(Kt.state.currentFormat$)===vi.VideoFormat.HLS?(Ae==null||Ae.addEventListener("seeked",lo),Yt=window.setTimeout(()=>{lo()},300)):Po()},Ts=fi([rt,en,Wi],([c,g,M],ie)=>{ie((0,at.isNonNullable)(M)?M*g:c)}),qr=de(!1),Ir=()=>{qr.set(!0)},ga=()=>{qr.set(!1)},Ks=fi([ri],([{width:c}],g)=>{let M=gb(c);g(M)}),ha=z.filter(c=>b_(c)),Qr=fi([Ks,Pt],([c,g])=>g?ha.filter(M=>!M.hideOnMobile):ha.filter(M=>{var ie;return!((ie=M.hideOnDesktopGridTypes)!=null&&ie.includes(c))})),Tn=de(z.filter(c=>$_(c))),pl=fi([Tn,Ks],([c,g])=>c.filter(M=>{var ie;return!((ie=M.hideOnDesktopGridTypes)!=null&&ie.includes(g))})),_a=fi([pl,Qr],([c,g])=>[...pe.features.additionalButtonsDesktopControlPanelRight?c.filter(M=>M.type==="desktop-control-panel-right"):[],...pe.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=de(F),fl=fi([Gr],([c])=>pe.features.additionalSettingsMenuItems?c.map(g=>g.type==="SWITCH"?{...g,onClick:g.onChangeEnabled}:g):[]),md=(c,g)=>{let M=ye(Tn).map(ie=>ie.id!==c?ie:{...ie,...g});Tn.set(M)},ba=c=>{let g=ye(Tn);if(g.some(M=>M.id===c.id)){ce({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=ye(Tn);if(!g.some(M=>M.id===c)){ce({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=>{bi.next(_s.SeekAction.LIVE),ce({message:"live switch to low latency "+c}),G.log("live switch to low latency "+c),D.setLiveLowLatency(c)},vl=(c,g)=>{let M=ye(Gr).map(ie=>ie.id!==c?ie:{...ie,...g});Gr.set(M)},$a=c=>{let g=ye(Gr);if(g.some(M=>M.id===c.id)){ce({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)},ft=c=>{let g=ye(Gr);if(!g.some(M=>M.id===c)){ce({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=de(U),Zi=fi([nt],([c])=>pe.features.additionalContextMenuItems?c:[]),ko=(c,g)=>{let M=ye(nt).map(ie=>ie.id!==c?ie:{...ie,...g});nt.set(M)},Ji=c=>{let g=ye(nt);if(g.some(M=>M.id===c.id)){ce({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)},gi=c=>{let g=ye(nt);if(!g.some(M=>M.id===c)){ce({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)},Ki=fi([Pt,le],([c,g],M)=>{M(c&&g)}),qs=()=>{bi.next(_s.SeekAction.LIVE),ce({message:"switch to active live"}),G.log("switch to active live"),D.seekTime(0),D.info.playbackState$.getValue()!==vi.PlaybackState.PLAYING&&Kt.actions.internal.togglePlay()},gd=()=>{G.log("skip adman"),K.skip()},Yc=(c=!0)=>{var ie;(0,at.assertNonNullable)(Kt),ce({message:`switch from ads to video, callPlay: ${c}`}),G.log("switch from ads to video",{callPlay:c}),Oe.set("video"),c&&D.play(),l&&rn(!0,!0);let g=(ie=ye(St))==null?void 0:ie.muted,M=!D.info.muted$.getValue();g!==void 0&&!M&&rn(g,!0),St.set(void 0)},Hp=()=>{(0,at.assertNonNullable)(Kt),ce({message:"switch from video to ads"}),G.log("switch from video to ads"),Kt.actions.internal.pause(),No(),Oe.set("ads")},jc=c=>{(0,at.assertNonNullable)(Kt);let g=c?"LiveWaitingStart":"thumb";G.log("set live waiting start",{state:c,playerPhase:g}),Oe.set(g)},Fp=c=>{(0,at.assertNonNullable)(Kt);let g=c?"LiveWaitingRecover":"thumb";G.log("set live waiting recover",{state:c,playerPhase:g}),Oe.set(g)},Xc=c=>{(0,at.assertNonNullable)(Kt);let g=c?"LiveWaitingRecord":"thumb";G.log("set live waiting record",{state:c,playerPhase:g}),Oe.set(g)},Up=()=>((0,at.assertNonNullable)(Kt),G.log("get debug text data"),g_(D,Re,Kt,qe.getTraceId(),Ce)),Zc=()=>((0,at.assertNonNullable)(Kt),JSON.stringify(qe.getFinishedSpans())),zp=()=>((0,at.assertNonNullable)(Kt),h_(D,Re,Kt)),ya=()=>Ae,Jc=()=>{ce({message:"toggle chromecast"}),G.log("toggle chromecast"),D.toggleChromecast()},Qs=c=>{var M;if((0,at.assertNonNullable)(Kt),D.info.isEnded$.getValue())return;let g=!c;if(ye(Kt.playerPhase)==="ads"){ce({message:`pause ads, internalCall: ${g}`}),G.log("pause ads",{internalCall:g}),K.pause();return}ce({message:`pause video, internalCall: ${g}`}),G.log("pause video",{internalCall:g}),g&&((M=s==null?void 0:s.onPause)==null||M.call(s)),D.pause()},gl=c=>{var M;(0,at.assertNonNullable)(Kt);let g=!c;if(ye(Kt.playerPhase)==="ads"){ce({message:`play ads, internalCall: ${g}`}),G.log("play ads",{internalCall:g}),K.play();return}ce({message:`play video, internalCall: ${g}`}),G.log("play video",{internalCall:g}),g&&((M=s==null?void 0:s.onPlay)==null||M.call(s)),D.play()},eu=c=>{(0,at.assertNonNullable)(Kt);let g=!c;if(ye(Kt.playerPhase)==="ads"){ce({message:"player cannot be stopped during ads via external method"});return}ce({message:`player will be stopped, internalCall: ${g}`}),A==null||A()},tu=(c,g)=>{(0,at.assertNonNullable)(Kt),ce({message:`first start, show ads: ${c}, internalCall: ${!g}`}),G.log("first start",{showAds:c,external:g}),c?Oe.set("ads"):(Oe.set("video"),g?D.play():Kt.actions.internal.togglePlay())},hl=()=>(ce({message:"getting time codes"}),m),iu=()=>{let c=hl();if(!c||[0,1].includes(c.length))return;let g=D.info.position$.getValue();return c.find(M=>M.time>g)},ou=c=>{let g=c;g||(g=iu());let M=D.info.position$.getValue();G.log("seek to next episode",{currentTime:M,...g}),g&&(ce({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=D.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=D.info.position$.getValue();G.log("seek to prev episode",{currentTime:M,...g}),g&&(ce({message:"seek to prev episode"}),Tr(g.time,_s.SeekAction.EPISODE,!0))},Kp=()=>(ce({message:"getting preview thumbs data"}),G.log("get preview thumbs data",{...p}),p),Ue=async()=>{let c=xe==null?void 0:xe.isActive(),g="none";xe!=null&&xe.isActive()?(g="exit",await(xe==null?void 0:xe.exit())):(g="request",await(xe==null?void 0:xe.request())),G.log("toggle picture in picture",{isActive:c,action:g})},hi=(c=-90)=>{G.log("rotate video",{alphaDiff:c}),At.update(g=>g+c)},co=de([]);I==null||I.subscribe(c=>{let g=[];for(let M=0;M<c.length;M++){let{range:[ie,Se],subjects:Ye}=c[M];M===0&&ie!==0&&g.push({time:0,text:"",interactive:!1,completed:!0}),g.push({time:ie/1e3,text:"",interactive:!0,completed:pe.features.interactiveTimeOpenUri?!Ye.length||Ye.every(Lt=>Lt.isRemoved):!Ye.length}),Se!==1/0&&g.push({time:Se/1e3,text:"",interactive:!1,completed:!0})}co.set(g)});let Er=de(!1);T==null||T.subscribe(c=>{c&&ye(Ti)&&Po()});let an=c=>{if(!x)return c;let g=ye(co),M=ye(en),Se=ye(On)/M,Ye=g.find(Lt=>Lt.interactive&&!Lt.completed&&Lt.time>Se);return typeof(Ye==null?void 0:Ye.time)=="number"?Math.min(c,Ye.time-.05):c},$$=()=>{Kt.ui.episodes.panelOpened$.set(!1)},y$=()=>{G.log("destroy store"),clearTimeout(Yt),clearTimeout(ii),Te.unsubscribe(),ht.unsubscribe(),D.destroy(),K.destroy(),J==null||J.destroy(),se==null||se.destroy(),Pe.unsubscribe(),wi==null||wi.disconnect(),wi=null,Ee.destroy()},x$=fi([hr,ze,Dn],([c,g,M])=>v.features.doubleForwardAvailable&&!c&&g==="video"&&M),qp=de(!1),vg=2,ru=null,gg=c=>{if(!ye(gr)&&c)return;let g=D.info.currentPlaybackRate$.getValue();c?g!==vg&&(ru=g,Kn(vg,!1),qp.set(!0)):(ru&&Kn(ru,!1),qp.set(!1),ru=null)};ze.subscribe(c=>{c!=="video"&&gg(!1)});let w$=()=>{Qs(!1),yi.set(!0)},S$=()=>{gl(!1),yi.set(!1)},Qp=!1,C$=()=>{Sn.set(!0),Qp=D.info.playbackState$.getValue()===vi.PlaybackState.PLAYING,Qs(!1)},T$=()=>{Sn.set(!1),!ye(yi)&&Qp&&gl(!1),Qp=!1};D.events.playing$.subscribe(()=>{ye(yi)&&Qs(!1)});let Kt={interfaceLanguage$:Me,isCyrillicRelatedInterface$:wt,initVideo:pi,videoId:i,isClip:o,playerPhase:ze,vsid:Ct,state:{positionExact$:rt,positionWithScrubbing$:Ts,duration$:en,playbackState$:Oi,playbackStateRealistic$:fn,isPlaying$:gr,isLoaderVisible:Dt,bufferedProgress$:yo,isLive$:Bi,canChangePlaybackSpeed$:Dn,isActiveLive$:hr,isOldestAvailableLive$:tr,isRewindableLive$:as,isEnded$:Ai,muted$:Ii,volume$:ro,trafficSavingEnabled$:Do,highQualityEnabled$:Oo,autoQualityLimitingAvailable$:vn,availableVideoStreams$:_r,availableAudioStreams$:Hi,videoStream$:br,audioStream$:Bn,currentQuality$:or,isAutoQualityEnabled$:$o,availableQualities$:_n,currentPlaybackRate$:bn,availablePlaybackRates$:$n,currentSubtitle$:Xi,availableTextTracks$:on,availableSubtitlesList$:xr,currentSubtitleCaptions$:go,isAutoSubtitleCaptionVisible$:nn,chromecastState$:Dr,chromecastDeviceName$:$s,chromecastConnected$:Bo,currentFormat$:Or,throughputEstimation$:er,videoBitrate$:Br,videoSize$:gn,errorLog$:Y,crashed$:le,isAudioAvailable$:mr,isAudioDisabled:!!l,canDownload:pe.features.download&&!!d,availableSources$:xo,hasMpegSources$:Ei,isInteractive:x,showInteractiveGraph:pe.features.interactiveGraph,showSeekToInteractive:pe.features.seekToInteractive,showPlayPrevChapter:pe.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:pe.features.interactiveTimeIndicator&&!!ye(co).length,interactiveEpisodes$:co,isInteractiveTime$:T?ni(T):de(!1),isInteractiveExpectation$:Er,hasInteractiveBranches:P,playPrevChapterDisabledTooltip:E,looped$:sn,loadedMetadata$:Bt,isAutoQualityAvailable$:Un,previewTrackActive:yi,previewTrackDragInProgress:Sn},ui:{t:fe,controlsVisible:de(!1),touched:de(!1),controls:{prevButton:de(void 0),playButton:de(void 0),replayButton:de(void 0),nextButton:de(void 0),playPrevChapterButton:de(void 0),seekToInteractiveButton:de(void 0),interactiveGraphButton:de(void 0),liveButton:de(void 0),time:de(void 0),episodes:de(void 0),volume:de(void 0),subtitles:de(void 0),settings:de(void 0),context:de(void 0),chromecast:de(void 0),pip:de(void 0),fullscreen:de(void 0),vkLogo:de(void 0),interactiveTimeIndicator:de(void 0),timeline:de(void 0),autoplayNextToggle:de(void 0),additionalButtons:z.length?z.reduce(c=>[...c,de(void 0)],[]):[],disabledControls$:Tt},modals:{hotKeyMap:{show:de(!1),data:de({title:"",closeBtnText:"",groups:[]})}},isFullscreen:Mt,isFullscreenOpenedByKeyboard:ut,rotateAlpha:At,isAutoplay:de(!1),debugPanelVisible:de(!1),episodes:{panelOpened$:de(!1),openedByKeyboard$:de(!1)},contextMenu:{visible$:de(!1),btnRef$:de(void 0),openedByBtnKeyboard$:de(!1),openedByHotKey$:de(!1),lastActiveElem$:de(void 0),showContextMenuBtn$:de(!1),position$:de({top:0,left:0})},playerSize:ri,isMobile:Pt,mobileNotReportControlHidden$:Ki,icon3DVideoVisible:de(!1),scrubbingInProgress:Ti,volumeChangingInProgress:qr,is3DVideo:Wt,currentGridType$:Ks,additionalButtonsDeprecated$:Qr,additionalDesktopControlPanelRightButtons$:_a,additionalSettingsMenuItems$:fl,additionalContextMenuItems$:Zi,interactiveHideMobileControls:de(!1),overlayContainer$:de(void 0),startedByKeyboard$:de(!1),autoplayNextEnabled$:de(!1),timerNextVideoRunning$:de(!0),settingsMenu:{visible$:de(!1),ref$:de(void 0),openedByBtnKeyboard$:de(!1)},settingsSubMenu:{visible$:de(!1),ref$:de(void 0),name$:de(void 0)},userActionsDisabled:de(!1),hiddenControls:{volume:de(!1),vkLogo:de(!1),pip:de(!1),chromecast:de(!1),settings:de(!1)},isControlsAvailable:rr,controlBlocks:{topLeft:de(void 0),topRight:de(void 0),middle:de(void 0),bottom:de(void 0),bottomLeft:de(void 0),bottomRight:de(void 0)},videoTitleInfo:de(void 0),doubleForwardOn$:qp,doubleForwardAvailable$:x$,previewTrackNotificationVisible:de(!1),previewTrackActive:yi,previewTrackDragInProgress:Sn,previewTrackAvailable:Cn,isPreviewTrackHorizontallyAligned:Cs},ads:{position:de(0),duration:de(0),playbackState:de("inactive"),canSkip:de(!1),secondsToWatchBeforeSkip:de(0),postrollPassed:de(!1)},webApi:{pictureInPictureApi:xe,annotationsApi:Be,slotsApi:tt,focusManager:ne},actions:{internal:{preload:To,firstStart:c=>tu(c,!1),play:()=>gl(!1),pause:()=>Qs(!1),togglePlay:ao,toggleMuted:wr,openSettingsMenu:Ui,closeSettingsMenu:ys,openSettingsSubMenu:ls,closeSettingsSubMenu:xs,setVolume:c=>zr(c,!1),setMuted:c=>rn(c,!1),startVolumeChanging:Ir,stopVolumeChanging:ga,setVideoStream:mt,setAudioStream:c=>ti(c,!1),setQuality:(c,g)=>xn(c,g,!1),setTrafficSavingEnabled:(c,g)=>zo(c,g,!1),setHighQualityEnabled:(c,g)=>Wn(c,g,!1),setPlaybackRate:Kn,incrementPlaybackRate:Ze,decrementPlaybackRate:Xt,setSubtitle:c=>$i(c,!1),toggleSubtitle:()=>Io(!1),togglePictureInPicture:Ue,startScrubbing:he,progressScrubbing:bt,completeScrubbing:Ko,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:Ht,stopLogging:W,startCameraManualRotation:Vt,stopCameraManualRotation:si,moveCameraFocusPX:vt,holdCamera:Jt,releaseCamera:_t,getVideoEpisodes:hl,getPreviewThumbsData:Kp,downloadVideo:Ur,addLanguage:im,setLanguage:$e,nextMovie:jt,videoRotate:hi,correctSeekTimeToInteractive:an,replayInteractive:R,setLooped:Fe,reportProblem:It,setAutoplayNextEnabled:ui,setTimerNextVideoRunning:Fo,prevVideoClick:So,nextVideoClick:Uo,nextVideoAnnouncementShow:zi,nextVideoAnnouncementClick:Co,nextVideoAnnouncementAuto:zn,nextVideoAnnouncementCancel:Cr,checkFullscreenSupport:kt,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=>ai(c),setPlaybackRate:c=>Eo(c),setAutoQualityLimits:c=>dt(c),setMuted:c=>rn(c,!0),toggleSubtitle:()=>Io(!0),changeSubtitle:wn,setVolume:c=>zr(c,!0),returnFocusToEpisodes:$$,updateAdditionalSettingsItem:vl,addAdditionalSettingsItem:$a,removeAdditionalSettingsItem:ft,updateAdditionalContextItem:ko,addAdditionalContextItem:Ji,removeAdditionalContextItem:gi,updateAdditionalButton:md,addAdditionalButton:ba,removeAdditionalButton:vd,setLiveLowLatency:ml,hideControls:()=>ds(!1),showControls:()=>ds(!0),setQuality:c=>xn(c,{appliesTo:"to-video"},!0),setTrafficSavingEnabled:c=>zo(c,"to-video",!0),setHighQualityEnabled:c=>Wn(c,"to-video",!0),changeAudioStream:Hr}},callbacks:s,setUiCallbacks:c=>{Je={...c}},getAdmanWrapper:()=>K,getLogger:()=>Qe,getPlayer:()=>D,destroy:y$};return Kt};function Zn(t,e,i,o){var m;let r=(m=e[i])==null?void 0:m.getBoundingClientRect(),a=o&&!!r&&!!(r.right-r.left),{top:l,left:d,bottom:s,right:u}=Bs(e[i],t||void 0);return{left:a?d:0,right:a?u:0,top:a?l:0,bottom:a?s:0,isDisplayed:a}}var 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){Xe(t,{children:(e,i)=>{var o=Yx();b(e,o)},$$slots:{default:!0}})}function Gm(t,e){B(e,!0);let[i,o]=Ne(),r=()=>w(s,"$contextMenuVisible$",i),a=h(e,"disabled",3,!1),l=h(e,"ariaLabel",3,""),d=be(),s=d.ui.contextMenu.visible$,u=d.ui.contextMenu.openedByBtnKeyboard$,m=d.ui.contextMenu.showContextMenuBtn$,p=d.ui.contextMenu.position$,v=d.ui.contextMenu.btnRef$,_=q(void 0);De(()=>{n(_)&&Et(()=>{v.set(n(_))})});let y=T=>{let R=la(T),A=ab(n(_));p.set(A),u.set(R),s.set(!r())},$=()=>{m.set(!0)},x=()=>{m.set(!1)},I=f(()=>r()?"opened":"");zt(t,{get className(){return n(I)},testId:"btn-context-menu",get disabled(){return a()},get ariaLabel(){return l()},click:y,focus:$,blur:x,get ariaExpanded(){return r()},get ref(){return n(_)},set ref(T){N(_,T,!0)},children:(T,R)=>{Qm(T,{})},$$slots:{default:!0}}),H(),o()}var jx=t=>{t.stopPropagation()},Xx=L("<div><!> <div></div> <div></div></div>"),Zx={hash:"s-25",code:'.interactive-episode-icon-animated.s-25{height:32px;opacity:1;position:absolute;right:16px;top:16px;transition:.3s;width:32px}.interactive-episode-icon-animated.icon-small.s-25{height:28px;width:28px}.invisible.s-25{opacity:0;visibility:hidden}.fullscreen.s-25:not(.mobile){height:40px;right:23px;top:19px;width:40px}.mobile.s-25{height:28px;right:14px;top:12px;width:28px}.fullscreen.mobile.s-25{height:32px;width:32px}@media screen and (orientation:portrait){.interactive-episode-icon-animated.mobile.fullscreen.s-25{right:16px;top:40px}}@keyframes s-25-pulse{0%{border-width:1px;opacity:0;transform:scale(1)}10%{opacity:1}50%{border-width:1px;opacity:.5;transform:scale(1.5)}to{border-width:.5px;opacity:0;transform:scale(1.5)}}.pulse.s-25{animation:s-25-pulse 1s infinite;border:1px solid #fff;border-radius:100%;bottom:0;content:"";display:block;left:0;pointer-events:none;position:absolute;right:0;top:0;transform:scale(1.8);transition:.3s}.pulse.paused.s-25{animation-play-state:paused}.interactive-episode-icon-animated svg{height:100%;width:100%}.ref-block.s-25{height:100%;position:absolute;top:0;visibility:hidden;width:100%}.hidden.s-25{display:none}'};function bc(t,e){var K;B(e,!0),Q(t,Zx);let[i,o]=Ne(),r=()=>w(x,"$isMobile",i),a=()=>w(A,"$areControlsVisible",i),l=()=>w(E,"$currentGridType$",i),d=()=>w(T,"$isInteractiveTime$",i),s=()=>w($,"$interactiveControlsOpacity$",i),u=()=>w(R,"$showInteractiveTimeIndicatorTooltip$",i),m=()=>w(I,"$isFullscreen",i),p=h(e,"ref",15,void 0),v=q(void 0),_=be(),y=_o(),{interactiveControlsOpacity$:$}=y,x=_.ui.isMobile,I=_.ui.isFullscreen,T=_.state.isInteractiveTime$,R=y.showInteractiveTimeIndicatorTooltip$,A=_.ui.controlsVisible,P=(K=_.callbacks)==null?void 0:K.onInteractiveTimeIndicatorClick,E=_.ui.currentGridType$,z=f(()=>!r()&&a()),F=f(()=>Os(l(),"s")),U=f(()=>!d()||!!s()||n(z)),X=q(!1);De(()=>{N(X,n(U),!0)});let ae=()=>{N(X,!0)},Z=()=>{var se;re(),(se=n(v))==null||se.addEventListener("animationiteration",ae,{once:!0})},re=()=>{var se;N(X,!1),(se=n(v))==null||se.removeEventListener("animationiteration",ae)},J=se=>{R.set(se)},we=f(()=>u()&&!n(U));De(()=>{u()?Z():re()});let me=()=>{n(U)||(R.set(!0),P==null||P())};cn(()=>{R.clearTimeout(),re()});let ee=()=>{R.set(!1)},_e=j("tooltip_interactive_interaction_time_indicator");var Ce=Xx();let ge;Ce.__mousemove=[jx],Ce.__click=me;var pe=C(Ce);Vo(pe,{get tooltipContent(){return _e},get tooltipVisible(){return n(we)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:J,get ref(){return p()},set ref(se){p(se)},children:(se,xe)=>{cc(se,{completed:!0})},$$slots:{default:!0}});var qe=k(pe,2);let G;je(qe,se=>p(se),()=>p());var D=k(qe,2);let Qe;je(D,se=>N(v,se),()=>n(v)),S(Ce),O((se,xe,Be)=>{ge=oe(Ce,1,"interactive-episode-icon-animated s-25",null,ge,se),G=oe(qe,1,"ref-block s-25",null,G,xe),Qe=oe(D,1,"pulse s-25",null,Qe,Be)},[()=>({mobile:r(),fullscreen:m(),invisible:n(U),"icon-small":n(F)}),()=>({hidden:n(U)}),()=>({paused:n(X)})]),ct("mouseleave",Ce,ee),b(t,Ce),H(),o()}Ge(["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 m=f(()=>e.buttonComponent);var p=ue(u);Vi(p,()=>n(m),(v,_)=>{_(v,is(()=>{var y;return(y=e.buttonComponentProps)!=null?y:{}}))}),b(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=f(()=>i()?"transform: scaleX(-1);transform-origin: 50%;":void 0),r=f(()=>`${un(e.size)}${n(o)}`),a=f(()=>i()?"prev-icon":"next-icon");Xe(t,{get width(){return"48"},get height(){return"48"},get style(){return n(r)},get testId(){return n(a)},get shadow(){return e.shadow},children:(l,d)=>{var s=e2();b(l,s)},$$slots:{default:!0}}),H()}var t2=L('<div class="icon-background-mobile s-1z"><!></div>'),i2={hash:"s-1z",code:".icon-background-mobile.s-1z{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),Q(t,i2);let i=h(e,"ref",15,void 0),o=h(e,"isMobile",3,!1),r=h(e,"disabled",3,!1),l=be().ui.t,d=f(()=>e.type==="prev"?l("tooltip_previous"):l("tooltip_next")),s=f(()=>e.type==="prev"?l("hotkey_map_item_prev_video_value"):l("hotkey_map_item_next_video_value")),u=f(()=>`btn-${o()?"m":"d"}--${e.type}`);zt(t,{get className(){return n(u)},get testId(){var m;return`btn-${(m=e.type)!=null?m:""}`},get disabled(){return r()},get ariaLabel(){return n(d)},get click(){return e.click},get ariaKeyShortCut(){return n(s)},get ref(){return i()},set ref(m){i(m)},children:(m,p)=>{var v=Le(),_=ue(v);{var y=x=>{var I=t2(),T=C(I);let R=f(()=>e.type==="prev");fa(T,{get size(){return"32"},get reversed(){return n(R)}}),S(I),b(x,I)},$=x=>{let I=f(()=>e.type==="prev");fa(x,{get size(){return"24"},get reversed(){return n(I)}})};V(_,x=>{o()?x(y):x($,!1)})}b(m,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=f(()=>un(e.size));Xe(t,{get width(){return"48"},get height(){return"48"},get style(){return n(i)},testId:"replay-icon",get shadow(){return e.shadow},children:(o,r)=>{var a=o2();b(o,a)},$$slots:{default:!0}}),H()}var Pb=require("@vkontakte/videoplayer-shared/es2018");var n2=L('<div class="icon-background-mobile s-22"></div>'),r2=L("<!> <div><!></div>",1),s2={hash:"s-22",code:".mobile.s-22{align-items:center;display:flex;justify-content:center;position:relative}.icon-background-mobile.s-22{background-color:var(--big-play-bg-color);border-radius:var(--big-play-radius);height:calc(100% - 32px);left:16px;position:absolute;top:16px;width:calc(100% - 32px)}"};function id(t,e){B(e,!0),Q(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,Pb.noop),d=j("tooltip_restart"),s=f(()=>`${o()?"btn-m--play":""} ${a()}`);zt(t,{get className(){return n(s)},testId:"replay-btn",get ariaLabel(){return d},get disabled(){return r()},get click(){return l()},get ariaKeyShortCut(){return gs.KeyK},get ref(){return i()},set ref(u){i(u)},children:(u,m)=>{var p=r2(),v=ue(p);{var _=T=>{var R=n2();b(T,R)};V(v,T=>{o()&&T(_)})}var y=k(v,2);let $;var x=C(y);let I=f(()=>o()?"48":"24");$c(x,{get size(){return n(I)}}),S(y),O(T=>$=oe(y,1,"s-22",null,$,T),[()=>({mobile:o()})]),b(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=f(()=>un(e.size));Xe(t,{get width(){return"48"},get height(){return"48"},get fill(){return e.fill},get style(){return n(i)},testId:"pause-icon",get shadow(){return e.shadow},children:(o,r)=>{var a=a2();b(o,a)},$$slots:{default:!0}}),H()}var kb=require("@vkontakte/videoplayer-shared/es2018");var l2=L('<div class="icon-background-mobile s-24"><!></div>'),d2={hash:"s-24",code:".icon-background-mobile.s-24{align-items:center;background-color:var(--big-play-bg-color);border-radius:var(--big-play-radius);display:flex;height:calc(100% - 32px);justify-content:space-around;left:16px;position:absolute;top:16px;width:calc(100% - 32px)}"};function od(t,e){B(e,!0),Q(t,d2);let[i,o]=Ne(),r=()=>w(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),m=h(e,"className",3,""),p=h(e,"click",3,kb.noop),_=be().ui.t,{toggle:y}=a,$=f(()=>y),x=f(()=>r()!==null),I=f(()=>n(x)?r():s()),T=f(()=>n(I)?_("tooltip_pause"):_("tooltip_play")),R=f(()=>n(I)?Fs:Vn),A=f(()=>`${d()?"btn-m--play":""} ${m()}`),P=f(()=>n(x)?n($):p());zt(t,{get className(){return n(A)},testId:"play-btn",get click(){return n(P)},get disabled(){return u()},get ariaLabel(){return n(T)},get ariaKeyShortCut(){return gs.KeyK},get ref(){return l()},set ref(E){l(E)},children:(E,z)=>{var F=Le();let U=f(()=>n(R));var X=ue(F);{var ae=re=>{var J=l2(),we=C(J);Vi(we,()=>n(U),(me,ee)=>{ee(me,{get size(){return"48"}})}),S(J),b(re,J)},Z=re=>{var J=Le(),we=ue(J);Vi(we,()=>n(U),(me,ee)=>{ee(me,{get size(){return"24"}})}),b(re,J)};V(X,re=>{d()?re(ae):re(Z,!1)})}b(E,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){Xe(t,{testId:"play-prev-chapter-icon",children:(e,i)=>{var o=c2();b(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=f(()=>o()?"hidden":"");zt(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-27"><span><!></span></span>'),p2={hash:"s-27",code:".gutter.s-27{--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-27{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-27{background-color:var(--toggle-color-autoplay-on);transform:translateX(calc(var(--gutterWidth) - var(--togglerWidth) + var(--togglerGap)))}"};function xc(t,e){B(e,!0),Q(t,p2);let[i,o]=Ne(),r=()=>w(s,"$autoplayNextEnabled$",i),a=h(e,"ref",15,void 0),l=be(),d=l.ui.t,s=l.ui.autoplayNextEnabled$,u=l.actions.internal.setAutoplayNextEnabled,m=()=>{u(!r(),!0)},p=d("aria_label_autoplay"),v="12",_="#000",y=f(()=>r()?"true":"false");zt(t,{click:m,get ariaLabel(){return p},role:"switch",get areaChecked(){return n(y)},get ref(){return a()},set ref($){a($)},children:($,x)=>{var I=u2(),T=C(I);let R;var A=C(T);{var P=z=>{Vn(z,{get size(){return v},fill:_})},E=z=>{Fs(z,{get size(){return v},fill:_})};V(A,z=>{r()?z(P):z(E,!1)})}S(T),S(I),O(z=>R=oe(T,1,"toggler s-27",null,R,z),[()=>({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){Xe(t,{testId:"seek-to-interactive-icon",children:(e,i)=>{var o=f2();di(),b(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=f(()=>o()?"hidden":"");zt(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=f(()=>i()?"graph-close-icon":"graph-open-icon");Xe(t,{get testId(){return n(o)},children:(r,a)=>{var l=v2(),d=k(ue(l));{var s=u=>{var m=m2();b(u,m)};V(d,u=>{i()&&u(s)})}b(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=be().ui.t,s=f(()=>a()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),u=f(()=>o()?"hidden":"");zt(t,{get className(){return n(u)},testId:"btn-graph",get disabled(){return r()},get ariaLabel(){return n(s)},get click(){return e.click},get ref(){return i()},set ref(m){i(m)},children:(m,p)=>{let v=f(()=>!!a());Xm(m,{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]=Ne(),r=()=>w(u,"$playbackState$",i),a=h(e,"isMobile",3,!1),l=h(e,"isLiveActive",3,!1),d=h(e,"ariaLabel",3,""),s=be(),u=s.state.playbackState$,m=s.actions.internal.switchToActiveLive,p=s.actions.internal.togglePlay,v=f(()=>()=>{if(!l()){m();return}r()===Zm.PlaybackState.PAUSED&&p()}),_=f(()=>a()?"":"btn--live btn-full-opacity"),y=f(()=>l()?"btn-live":"btn-live-offset"),$=f(()=>l()&&r()===Zm.PlaybackState.PLAYING);zt(t,{get className(){return n(_)},get testId(){return n(y)},get disabled(){return n($)},get ariaLabel(){return d()},get click(){return n(v)},children:(x,I)=>{ec(x,{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=()=>{N(i,!0)};var r=Le(),a=ue(r);{var l=s=>{var u=g2();b(s,u)},d=s=>{var u=h2();O(()=>Ve(u,"src",e.icon)),ct("error",u,o),Ma(u),b(s,u)};V(a,s=>{n(i)?s(l):s(d,!1)})}b(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=f(()=>o()===Jm.noop),l=f(()=>n(a)||i()),d=f(()=>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 m=f(()=>{var p;return(p=e.testId)!=null?p:e.id});zt(s,{get className(){return n(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return n(l)},get testId(){return n(m)},children:(p,v)=>{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=f(()=>i?$2:y2),r=q(!1),a=q(0),l=q(0),d=f(()=>n(o)+Lb-Mb-x2),s=f(()=>(0,hp.interpolate)(n(a),[tv,1],[0,-n(d)])),u=f(()=>(0,hp.interpolate)(n(a),[tv,1],[0,Mb])),m=f(()=>(0,hp.interpolate)(n(a),[tv,1],[0,n(o)+Lb]));return{progressBarY:()=>n(s),controlsY:()=>n(u),calculatedHeight:()=>n(m),onPointerDown:$=>{var x;N(l,((x=e())==null?void 0:x.getBoundingClientRect().bottom)||0,!0),N(r,!0)},onPointerMove:$=>{if(!n(r))return;let x=Math.max(Math.min($.clientY-n(l),0),-n(d));N(a,Math.abs(x/n(d)),!0)},onPointerUp:()=>{N(r,!1),N(a,n(a)>=b2?1:0,!0),n(a)===1&&t()},closePreviewTrack:()=>{N(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-2b"> </span>'),C2={hash:"s-2b",code:".root.s-2b{box-shadow:0 8px 24px 0 rgba(0,0,0,.08);box-shadow:0 0 2px 0 rgba(0,0,0,.08);color:#fff;font-size:13px;font-weight:500;line-height:16px}"};function iv(t,e){Q(t,C2);var i=S2(),o=C(i,!0);S(i),O(()=>ve(o,e.time)),b(t,i)}var T2=L('<div class="tooltip-wrapper s-w"><div><!></div></div>'),I2={hash:"s-w",code:'.tooltip-wrapper.s-w{display:block;position:relative}.tooltip.s-w{bottom:100%;opacity:0;position:absolute;transform:translateX(-50%);transition:opacity .2s;visibility:hidden}.pointer.s-w: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-w{opacity:1;visibility:visible}'};function ov(t,e){Q(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 m(x){if(!n(u))return 0;let{width:I}=n(u).getBoundingClientRect(),T=I/2;return x<T?T+l():x>e.containerWidth-T?e.containerWidth-T-d():x}let p=f(()=>m(r()));var v=T2(),_=C(v);let y;var $=C(_);oi($,()=>{var x;return(x=e.children)!=null?x:gt}),S(_),je(_,x=>N(u,x),()=>n(u)),S(v),je(v,x=>N(s,x),()=>n(s)),O(x=>{Ke(v,`transform: translate(${n(p)}px, ${a()}px);`),y=oe(_,1,"tooltip s-w",null,y,x),Ke(_,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),b(t,v)}var Rb=t=>Math.abs(t)/90%4===1;var E2=L('<div class="preview s-v"></div>'),P2=L('<div class="time s-v"> </div>'),k2=L('<div><!> <div class="episode s-v"><!></div> <!></div>'),A2={hash:"s-v",code:".timeline-preview.s-v{border-radius:2px;bottom:18px;pointer-events:none}.timeline-preview.mobile.s-v{bottom:72px}.preview.s-v{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-v{margin-bottom:4px;margin-top:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.episode.s-v,.time.s-v{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-v{color:var(--white)}"};function nv(t,e){B(e,!0),Q(t,A2);let[i,o]=Ne(),r=()=>w(y,"$rotateAlpha",i),a=()=>w($,"$playerSize",i),l={MOBILE:150,DESKTOP:278},d=h(e,"time",3,""),s=h(e,"isMobile",3,!1),u=h(e,"videoEpisodes",19,()=>[]),m=h(e,"progress",3,0),p=h(e,"duration",3,0),v=h(e,"isInteractive",3,!1),_=be(),y=_.ui.rotateAlpha,$=_.ui.playerSize,x=q(0),I=q(0),T=q(""),R=q(0),A=q(0),P=q(0),E=q(0),z=f(()=>ap(m(),p(),u())),F=f(()=>Jl(r())),U=f(()=>Rb(r())),X=f(re),ae=f(()=>(n(U)?1:-1)*(n(x)/2-n(I)/2)),Z=f(()=>n(ae)*-1);De(()=>{(K=>{N(x,K.width,!0),N(I,K.height,!0)})(we())}),De(()=>{(K=>{N(T,K.imgSrc,!0),N(R,K.imgWidth,!0),N(A,K.imgHeight,!0),N(P,K.imgOffsetX,!0),N(E,K.imgOffsetY,!0)})(me(m()))});function re(){var Be;let K=s()?l.MOBILE:l.DESKTOP,{isVertical:se}=J(),xe=30;return(Be=n(z))!=null&&Be.text&&(xe+=16),(se||n(F))&&(xe+=18,xe+=50),Math.min(Math.max(a().height-xe,0),K)}function J(){let K=e.previewThumbsData.frameWidth,se=e.previewThumbsData.frameHeight,xe=se>K;return{width:K,height:se,isHorizontal:!xe,isVertical:xe}}function we(){let{height:K,isHorizontal:se,isVertical:xe,width:Be}=J();return se&&(K=K/Be*n(X),Be=n(X)),xe&&(Be=Be/K*n(X),K=n(X)),{width:Be,height:K}}function me(K){let se;e.previewThumbsData.isUV?se=Math.floor(p()*K/e.previewThumbsData.frequency):se=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*K)));let xe=Math.floor(se/e.previewThumbsData.countPerImage),Be=Math.floor(se%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),tt=se%e.previewThumbsData.countPerRow,ne=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&xe===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(ne=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&ne++);let ce=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&xe===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(ce=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Re=n(x)*ce,Ae=n(I)*ne,Je=-tt*n(x),Ee=-Be*n(I);return{imgSrc:e.previewThumbsData.links[xe],imgWidth:Re,imgHeight:Ae,imgOffsetX:Je,imgOffsetY:Ee}}var ee=k2();let _e;var Ce=C(ee);{var ge=K=>{var se=E2();O(()=>Ke(se,`width: ${n(x)}px; height: ${n(I)}px; background-image: url(${n(T)}); background-size: ${n(R)}px ${n(A)}px; background-position: ${n(P)}px ${n(E)}px;
|
|
60
|
+
M12 29.8c0-1 .8-1.8 1.8-1.8h10.4a1.8 1.8 90 010 3.6H13.8a1.8 1.8 90 01-1.8-1.8m0-7.6c0-1 .8-1.8 1.8-1.8h3.4a1.8 1.8 90 110 3.6H13.8a1.8 1.8 90 01-1.8-1.8m17 7.6c0-1 .8-1.8 1.8-1.8h3.4a1.8 1.8 90 110 3.6h-3.4a1.8 1.8 90 01-1.8-1.8M22 22.2c0-1 .8-1.8 1.8-1.8h10.4a1.8 1.8 90 010 3.6h-10.4a1.8 1.8 90 01-1.8-1.8`)),b(m,p)};V(d,m=>{e.type==="off"?m(s):m(u,!1)})}b(r,l)},$$slots:{default:!0}}),H()}function Vm(t,e){B(e,!0);let i=h(e,"isSubtitlesEnabled",3,!1),r=be().ui.t,a=f(()=>i()?r("tooltip_subtitles_on"):r("tooltip_subtitles_off"));Ut(t,{testId:"subtitles-btn",get ariaLabel(){return n(a)},get click(){return e.click},get ariaKeyShortCut(){return hs.KeyC},role:"button",children:(l,d)=>{let s=f(()=>i()?void 0:"outline");fa(l,{get size(){return"24"},get type(){return n(s)}})},$$slots:{default:!0}}),H()}var J0=L('<span class="duration s-21" data-testid="video_duration"> </span>'),ex=L('<div data-testid="time"><span class="current s-21" data-testid="current_time"> </span> <!></div>'),tx={hash:"s-21",code:'.time.s-21{align-items:center;color:var(--controls-time);display:flex;font-variant-numeric:tabular-nums;font-weight:500;padding:12px 6px}.time.mobile.s-21{padding:0 0 0 8px}.current.s-21{position:relative}.duration.s-21{opacity:.7}.duration.s-21:before{content:" / ";white-space:pre}'};function dc(t,e){B(e,!0),Q(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=Vt(),d=de(!1),s=f(()=>jo(e.duration)),u=f(()=>jo(e.position));var m=ex();let p;var v=C(m),_=C(v,!0);S(v);var y=k(v,2);{var $=x=>{var I=J0(),T=C(I,!0);S(I),O(()=>ve(T,n(s))),b(x,I)};V(y,x=>{r()&&x($)})}S(m),Ds(m,()=>Wl(o()&&l.features.usePerformanceFix,d,l.disableInvisibleComponentsTimeout)),Ze(m,x=>a(x),()=>a()),O(x=>{p=oe(m,1,"time s-21",null,p,x),ve(_,n(u))},[()=>({mobile:i()})]),b(t,m),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 ma(t,e){B(e,!0);let i=h(e,"volume",3,1),o=h(e,"muted",3,!1),r=(u,m)=>m?"off":u>.5?"max":u>.2?"mid":u>0?"min":"off",a=f(()=>r(i(),o())),l=f(()=>fn(e.size)),d="M16.8748 8.85259C17.2324 8.50731 17.8021 8.51726 18.1474 8.87481C18.5465 9.28803 18.8614 9.77691 19.0757 10.3128C19.2901 10.8486 19.4 11.4218 19.4 12C19.4 12.5782 19.2901 13.1514 19.0757 13.6872C18.8614 14.2231 18.5465 14.712 18.1474 15.1252C17.8021 15.4827 17.2324 15.4927 16.8748 15.1474C16.5173 14.8021 16.5073 14.2324 16.8526 13.8748C17.0876 13.6314 17.2757 13.3408 17.4045 13.0187C17.5333 12.6966 17.6 12.3504 17.6 12C17.6 11.6496 17.5333 11.3034 17.4045 10.9813C17.2757 10.6592 17.0876 10.3686 16.8526 10.1252C16.5073 9.76764 16.5173 9.19788 16.8748 8.85259Z",s="M19.2636 6.2636C19.6151 5.91213 20.1849 5.91213 20.5364 6.2636C21.2516 6.97878 21.9929 7.99659 22.3989 8.97678C22.7959 9.93525 23.0003 10.9625 23.0003 12C23.0003 13.0374 22.7959 14.0647 22.3989 15.0232C21.9929 16.0034 21.2516 17.0212 20.5364 17.7364C20.1849 18.0879 19.6151 18.0879 19.2636 17.7364C18.9121 17.3849 18.9121 16.8151 19.2636 16.4636C19.8484 15.8788 20.4384 15.0527 20.7359 14.3343C21.0425 13.5943 21.2003 12.801 21.2003 12C21.2003 11.1989 21.0425 10.4057 20.7359 9.66561C20.4384 8.94724 19.8484 8.12124 19.2636 7.5364C18.9121 7.18492 18.9121 6.61508 19.2636 6.2636Z";Je(t,{get style(){return n(l)},get testId(){var u;return`volume-${(u=n(a))!=null?u:""}-icon`},get shadow(){return e.shadow},children:(u,m)=>{var p=nx(),v=k(ue(p));{var _=$=>{var x=ix();si(),b($,x)},y=$=>{var x=ox();O(()=>Ve(x,"d",`${d}${n(a)==="max"?s:""}`)),b($,x)};V(v,$=>{n(a)==="off"?$(_):$(y,!1)})}b(u,p)},$$slots:{default:!0}}),H()}var Vo=require("@vkontakte/videoplayer-shared/es2018");var sp=require("@vkontakte/videoplayer-shared/es2018");var gb=require("@vkontakte/videoplayer-shared/es2018");var rx=L('<div class="overlay"><!></div>');function Rm(t,e){B(e,!0);let[i,o]=Ne(),r=()=>w(l,"$overlayContainer$",i),l=be().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))};De(()=>{u(r())}),Mt(()=>(u(r()),()=>s(r())));var m=rx(),p=C(m);ti(p,()=>{var v;return(v=e.children)!=null?v:ht}),S(m),Ze(m,v=>N(d,v),()=>n(d)),b(t,m),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 Xa(t,e){B(e,!0),Q(t,lx);let[i,o]=Ne(),r=()=>w(X,"$overlayContainer$",i),a=()=>w(U,"$containerSize",i),l=h(e,"isMobile",3,!1),d=h(e,"content",3,""),s=h(e,"active",15,!1),u=h(e,"translateX",3,0),m=h(e,"translateY",3,0),p=h(e,"isFullWidthWrapper",3,!1),v=h(e,"maxTooltipWidth",3,void 0),_=h(e,"placement",3,"top"),y=h(e,"onVisibilityChange",3,gb.noop),$=5,x=q(void 0),I=q(void 0),T,R=q(0),A=q(0),P=q(0),E=q(0),z=Vt(),F=be(),U=F.ui.playerSize,X=F.ui.overlayContainer$;De(()=>{It(()=>{y()(s())})});let ae=F.getLogger().createComponentLog("Tooltip component"),Z=()=>{if(!r()||!n(I)||!n(x))return;N(A,$);let ne=r().getBoundingClientRect(),ce=n(x).getBoundingClientRect(),Re=ce.width,Ae=n(I).clientWidth,et=a().width,Ee=(Re-Ae)/2,Te=ce.left+u()-ne.left,He=Te+Ee,Et=ce.top+m()-ne.top,St=Ae/2-$,Ot=He<8,lt=He+Ae>et-8;Ot&&(He=8,St=Te+ce.width/2-2.5*$),lt&&(He=et-8-Ae,St=ce.left-ne.left+ce.width/2-He-$),N(P,He,!0),N(E,Et),N(R,St,!0)},re=()=>{!r()||!n(I)||!n(x)||N(A,-$)},J=()=>{if(!r()||!n(I)||!n(x))return;N(R,$);let ne=r().getBoundingClientRect(),ce=n(x).getBoundingClientRect(),Re=ce.height,Ae=n(I).clientHeight,et=(Re-Ae)/2+Ae,Ee=ce.left+u()-ne.left-n(I).clientWidth,Te=2,He=Ee-$;He<8&&(He=8);let St=ce.top+m()-ne.top+et,Ot=Te-et/2,lt=Te-$;N(P,He,!0),N(E,St),N(A,Ot),N(R,lt)},we=()=>{!r()||!n(I)||!n(x)||N(R,-$)},me=()=>{switch(_()){case"top":Z();break;case"bottom":re();break;case"left":J();break;default:we()}},ee=()=>{try{if(!r()||!n(x))return;me(),s(!0)}catch(ne){ae({message:String(ne)})}},_e=()=>{s(!1)},Ce=()=>{n(I)&&(T||(T=window.setTimeout(ee,z.controls.hideTimeoutTooltips)),s()&&ee())},ge=()=>{_e(),window.clearTimeout(T),T=void 0},pe=(ne,ce,Re)=>{let Ae="";switch(_()){case"top":Ae=`transform: translate(${ne}px, ${ce}px);`;break;case"bottom":Ae=`transform: translate(${ne}px, ${ce}px); top: auto; bottom: 100%;`;break;case"left":Ae=`transform: translate(${ne}px, ${ce}px); left: 0; right: auto;`;break;default:Ae=`transform: translate(${ne}px, ${ce}px);`}return Ae+=` max-width: ${v()===void 0?"auto":`${v()}px`};`,Ae+=` opacity: ${Re?1:0}; visibility: ${Re?"visible":"hidden"}`,Ae},Qe=(ne,ce)=>{let Re="";switch(_()){case"top":Re=`transform: translate(${ne}px, ${ce}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Re=`transform: translate(${ne}px, ${ce}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Re=`transform: translate(${ne}px, ${ce}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Re=`transform: translate(${ne}px, ${ce}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Re},G=f(()=>pe(n(P),n(E),s())),D=f(()=>Qe(n(R),n(A)));Mt(me),pn(()=>window.clearTimeout(T));var Ge=ax(),K=ue(Ge);let se;K.__pointermove=Ce,K.__pointerdown=ge,K.__pointerup=function(...ne){var ce;(ce=e.disableMouseupTooltipShow?void 0:Ce)==null||ce.apply(this,ne)};var xe=C(K);ti(xe,()=>{var ne;return(ne=e.children)!=null?ne:ht}),S(K),Ze(K,ne=>N(x,ne),()=>n(x));var Be=k(K,2);{var ot=ne=>{Rm(ne,{children:(ce,Re)=>{var Ae=sx(),et=C(Ae),Ee=C(et,!0);S(et);var Te=k(et,2);S(Ae),Ze(Ae,He=>N(I,He),()=>n(I)),O(()=>{Ke(Ae,n(G)),ve(Ee,d()),Ke(Te,n(D))}),b(ce,Ae)},$$slots:{default:!0}})};V(Be,ne=>{d()&&!l()&&ne(ot)})}O(ne=>se=oe(K,1,"tooltip-wrapper s-1p",null,se,ne),[()=>({"full-width":p()})]),pt("pointerenter",K,Ce),pt("pointerleave",K,ge),b(t,Ge),H(),o()}Ye(["pointermove","pointerdown","pointerup"]);var hb=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 Mo(t,e){B(e,!0),Q(t,cx);let[i,o]=Ne(),r=()=>w(u,"$isGraphOpened$",i),a=()=>w(s,"$isMobile",i),l=be(),d=_o(),s=l.ui.isMobile,u=d.graphIsOpened$,m=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),$=h(e,"width",15,void 0),x=h(e,"isFullWidthTooltip",3,!0),I=h(e,"tooltipContent",3,""),T=h(e,"tooltipVisible",3,!1),R=h(e,"tooltipPlacement",3,"top"),A=h(e,"disabledTooltipContent",19,()=>m("tooltip_button_disabled")),P=h(e,"isAriaHidden",3,!1),E=h(e,"onTooltipVisibilityChange",3,sp.noop),z=h(e,"initialTranslateXPx",3,0),F=h(e,"initialTranslateYPx",19,()=>-18),U=h(e,"mouseEnter",3,sp.noop),X=h(e,"mouseLeave",3,sp.noop),ae=f(()=>v()?r()?m("tooltip_disabled_when_graph_on"):A():I()),Z=q(!1);De(()=>{T()||N(Z,!1)});var re=dx();re.__pointerdown=[hb],re.__click=[hb];var J=C(re);{var we=ee=>{Xa(ee,{get content(){return n(ae)},get translateX(){return z()},get translateY(){return F()},get isFullWidthWrapper(){return x()},get placement(){return R()},get onVisibilityChange(){return E()},get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},get active(){return n(Z)},set active(_e){N(Z,_e,!0)},children:(_e,Ce)=>{var ge=Me(),pe=ue(ge);ti(pe,()=>{var Qe;return(Qe=e.children)!=null?Qe:ht}),b(_e,ge)},$$slots:{default:!0}})},me=ee=>{var _e=Me(),Ce=ue(_e);ti(Ce,()=>{var ge;return(ge=e.children)!=null?ge:ht}),b(ee,_e)};V(J,ee=>{_()&&n(ae)&&!a()?ee(we):ee(me,!1)})}S(re),Ze(re,ee=>y(ee),()=>y()),O(()=>{var ee;oe(re,1,`btn-container ${(ee=p())!=null?ee:""}`,"s-1j"),Ve(re,"aria-hidden",P()||null)}),pt("mouseenter",re,function(...ee){var _e;(_e=U())==null||_e.apply(this,ee)}),pt("mouseleave",re,function(...ee){var _e;(_e=X())==null||_e.apply(this,ee)}),An(re,"clientWidth",$),b(t,re),H(),o()}Ye(["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=f(()=>(e.completed,"interactive-episode-completed-icon"));Je(t,{width:"20",height:"20",fill:"none",get testId(){return n(i)},children:(o,r)=>{var a=ux(),l=ue(a),d=k(l);O(()=>{Ve(l,"fill",sa),Ve(l,"fill-opacity",e.completed?1:.24),Ve(d,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),b(o,a)},$$slots:{default:!0}})}var px=L("<div><!></div>"),fx={hash:"s-18",code:".interactive-episode-icon.s-18{cursor:default;height:20px;position:absolute;transform:translateX(-50%);width:20px}.interactive-episode-icon.disabled.s-18{opacity:.4;pointer-events:none}"};function Nm(t,e){B(e,!0),Q(t,fx);let o=be().ui.t,r=q(0),a=f(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));Mo(t,{get tooltipContent(){return n(a)},initialTranslateXPx:-10,initialTranslateYPx:-10,get disabled(){return e.disabled},get width(){return n(r)},isAriaHidden:!0,isFullWidthTooltip:!1,children:(l,d)=>{var s=px();let u;var m=C(s);let p=f(()=>!!e.videoEpisode.completed);cc(m,{get completed(){return n(p)}}),S(s),O(v=>{u=oe(s,1,"interactive-episode-icon s-18",null,u,v),Ke(s,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),An(s,"clientWidth",v=>N(r,v)),b(l,s)},$$slots:{default:!0}}),H()}var mx=L('<div><div class="video-episode-inner s-16"><div class="video-episode-loaded s-16"></div> <div></div></div></div>'),vx=L('<div class="video-episodes-wrap s-16"></div>'),gx={hash:"s-16",code:".video-episodes-wrap.s-16{height:100%;position:absolute;width:100%}.video-episode.s-16{box-sizing:border-box;height:calc(var(--slider-height)*3);margin-top:calc(var(--slider-height)*-1);padding:var(--slider-height) var(--slider-video-episode-gap);position:absolute;transition:transform .2s}.video-episode.s-16:first-child{padding-left:0}.video-episode.s-16:last-child{padding-right:0}.video-episode.s-16:not(.disabled):where(:hover,:active){transform:scaleY(1.5)}.video-episode-filled.s-16,.video-episode-inner.s-16,.video-episode-loaded.s-16{border-radius:var(--slider-radius);height:var(--slider-height);position:absolute}.video-episode-inner.s-16{background:var(--slider-bg);overflow:hidden;position:absolute;width:calc(100% - var(--slider-video-episode-gap)*2)}.video-episode.s-16:first-child .video-episode-inner:where(.s-16),.video-episode.s-16:last-child .video-episode-inner:where(.s-16){width:calc(100% - var(--slider-video-episode-gap))}.video-episode-loaded.s-16{background:var(--slider-loaded-bg);transition:transform .2s}.video-episode-filled.s-16,.video-episode-loaded.s-16{border-radius:var(--slider-radius);height:100%;left:-100%;position:absolute;width:100%}.video-episode-filled.s-16{background-color:var(--slider-filled-bg)}"};function Dm(t,e){Q(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),m=k(u,2);let p;S(s),S(l),O((v,_)=>{d=oe(l,1,"video-episode s-16",null,d,v),Ke(l,`left: ${n(a).from}%; width: ${n(a).width}%`),Ke(u,`transform: translateX(${n(a).loadedWidth/n(a).width*100}%)`),p=oe(m,1,"video-episode-filled s-16",null,p,_),Ke(m,`transform: translateX(${n(a).filledWidth/n(a).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),b(r,l)}),S(o),b(t,o)}function hx(t,e,i,o,r,a,l){if(t.preventDefault(),e()&&N(i,e().getBoundingClientRect(),!0),o()||n(r)||!e())return;N(r,!0);let d=a(t.clientX,t.clientY);l()(d,t),e().setPointerCapture(t.pointerId)}function _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;N(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),N(r,!1),a()(l)}var xx=L("<div></div>"),wx=L('<div class="bars s-h"><div class="loaded s-h"></div> <div></div></div>'),Sx=L('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),Cx={hash:"s-h",code:'.interactive-icons.s-h{position:absolute;top:-28px;width:calc(100% - 20px)}.interactive-icons.mobile.s-h{top:-10px}.slider.s-h{border-radius:var(--slider-radius);cursor:pointer;height:var(--slider-height);position:relative;touch-action:none;transition:opacity .2s;width:100%;will-change:opacity,transform;-webkit-tap-highlight-color:transparent}.no-handle.s-h{cursor:default}.slider.s-h:before{content:"";height:calc(var(--controls-height)/2);left:0;position:absolute;right:0;top:calc((var(--controls-height)/2 - var(--slider-height))*-1/2)}.bars.s-h{background:var(--slider-bg);overflow:hidden}.bars.s-h,.loaded.s-h{border-radius:var(--slider-radius);height:100%;position:absolute;width:100%}.loaded.s-h{background:var(--slider-loaded-bg);left:-100%;transition:transform .2s;will-change:transform}.filled.s-h{background-color:var(--slider-filled-bg);border-radius:var(--slider-radius);height:100%;left:-100%;position:absolute;width:100%}.slider.square.s-h,.slider.square.s-h .filled:where(.s-h),.slider.square.s-h .loaded:where(.s-h),.slider.square.s-h>.bars:where(.s-h){border-radius:unset}.filled.active-live.s-h{background-color:var(--timeline-slider-filled-active-live-bg)}.filled.ads.s-h{background-color:var(--slider-filled-ads)}.handleWrap.s-h{left:-100%;position:absolute;width:100%}.handle.s-h{background-color:var(--slider-handle-bg);border-radius:50%;height:var(--slider-handle-size);opacity:0;position:absolute;right:calc(var(--slider-handle-size)*-1/2);top:calc((var(--slider-height) - var(--slider-handle-size))/2);transform:scale(0);transition:opacity .2s,transform .2s;visibility:hidden;width:var(--slider-handle-size);will-change:opacity,transform}.handle.active-live.s-h{background-color:var(--timeline-slider-handle-active-live-bg)}.handle-always-visible.s-h .handle:where(.s-h),.slider-dragging.s-h .handle:where(.s-h),.slider.s-h:hover .handle:where(.s-h){opacity:1;transform:scale(1);visibility:visible}.slider-dragging.s-h .handle:where(.s-h){transform:scale(1.3)}.slider-vertical.s-h{left:-8px;position:absolute;top:-18px;transform:rotate(-90deg);transform-origin:0 0}.slider.disabled.s-h{cursor:default;opacity:.4}'};function Za(t,e){B(e,!0),Q(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),m=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),$=h(e,"onPointerDown",3,Vo.noop),x=h(e,"onHandleMove",3,Vo.noop),I=h(e,"onPointerUp",3,Vo.noop),T=h(e,"onPointerEnter",3,Vo.noop),R=h(e,"onPointerMove",3,Vo.noop),A=h(e,"onPointerLeave",3,Vo.noop),P=h(e,"onMouseEnter",3,Vo.noop),E=h(e,"onMouseLeave",3,Vo.noop),z=h(e,"onWheelUp",3,Vo.noop),F=h(e,"onWheelDown",3,Vo.noop),U=h(e,"onWheelLeft",3,Vo.noop),X=h(e,"onWheelRight",3,Vo.noop),ae=h(e,"onDisabledClick",3,Vo.noop),Z=h(e,"loadedProgress",3,0),re=h(e,"filledProgress",3,0),J=h(e,"handleProgress",3,0),we=h(e,"ariaLabel",3,""),me=h(e,"ariaValueMin",3,void 0),ee=h(e,"ariaValueMax",3,void 0),_e=h(e,"ariaValueNow",3,void 0),Ce=h(e,"ariaValueText",3,""),ge=h(e,"onContextMenu",3,Vo.noop),pe=h(e,"handleAlwaysVisible",3,!1),Qe=Vt(),G=q(void 0),D=q(!1),Ge=f(()=>{var $e;return($e=ee())!=null?$e:0}),K=f(()=>{var $e;return(0,Vo.isNonNullable)(m())&&(($e=m()[m().length-1])==null?void 0:$e.time)<n(Ge)}),se=f(()=>(0,Vo.isNonNullable)(m())&&m().length&&n(K)&&n(Ge)?et(Z()*100,re()*100):[]);function xe($e){if($e.preventDefault(),i()&&N(G,i().getBoundingClientRect(),!0),_())return;let Le=Re($e.clientX,$e.clientY),ct=Ae($e.clientX);T()(Le,ct,n(G).width)}function Be($e){$e.preventDefault(),!_()&&A()()}function ot(){P()()}function ne(){E()()}function ce($e){_()||p()&&($e.preventDefault(),$e.deltaY<0?z()():$e.deltaY>0?F()():$e.deltaX>0?X()():U()())}function Re($e,Le){return l()?Math.max(0,Math.min(1,(n(G).height-(Le-n(G).top))/n(G).height)):Math.min(Math.max($e-n(G).x,0),n(G).width)/n(G).width}function Ae($e){return Math.min(Math.max($e-n(G).x,0),n(G).width)}function et($e,Le){let ct=Qe.features.episodesClustering&&!v()?Qe.episodeMinWidthPc:0,Ct=[],fe=m()[0].time/n(Ge)*100,Fe=0,Ue=0;for(let xt=1;xt<m().length;xt++)Fe=m()[xt].time/n(Ge)*100,Fe-fe>ct&&(Ct.push({from:fe,width:Math.max(0,Fe-fe),loadedWidth:Math.max(0,Math.min(Fe,$e)-fe),filledWidth:Math.max(0,Math.min(Fe,Le)-fe),interactive:m()[xt-1].interactive,completed:m()[xt-1].completed}),fe=m()[xt].time/n(Ge)*100,Ue++);let Tt={from:fe,width:Math.max(0,100-fe),loadedWidth:Math.max(0,Math.min($e,100)-fe),filledWidth:Math.max(0,Math.min(Le,100)-fe),interactive:m()[Ue].interactive,completed:m()[Ue].completed};100-fe<ct?(Ue-=1,Ct[Ue].width+=100-fe,Ct[Ue].loadedWidth+=Math.max(0,Math.min($e,100)-fe),Ct[Ue].filledWidth+=Math.max(0,Math.min(Le,100)-fe)):Ct[Ue]=Tt;let oi=m()[0].time;if(oi!==0){let xt=oi/n(Ge)*100;Ct.unshift({from:0,width:xt,loadedWidth:Math.min(xt,$e),filledWidth:Math.min(xt,Le)})}return Ct}function Ee($e){return Math.max(0,Math.min(100,$e*100))}let Te=f(()=>Ee(Z())),He=f(()=>Ee(re()));var Et=Sx(),St=ue(Et);{var Ot=$e=>{var Le=xx();let ct;_i(Le,21,()=>n(se),Ct=>Ct.from,(Ct,fe)=>{var Fe=Me(),Ue=ue(Fe);{var Tt=oi=>{Nm(oi,{get videoEpisode(){return n(fe)},get disabled(){return _()}})};V(Ue,oi=>{n(fe).interactive&&oi(Tt)})}b(Ct,Fe)}),S(Le),O(Ct=>ct=oe(Le,1,"interactive-icons s-h",null,ct,Ct),[()=>({mobile:s(),hidden:s()&&!n(D)})]),b($e,Le)};V(St,$e=>{v()&&$e(Ot)})}var lt=k(St,2);let Pt;lt.__pointerdown=[hx,i,G,_,D,Re,$],lt.__pointermove=[_x,_,Re,Ae,R,G,D,x],lt.__pointerup=[bx,_,D,Re,I],lt.__click=[$x,_,ae,Re],lt.__contextmenu=[yx,Re,_,ae,D,ge];var Xt=C(lt);{var kt=$e=>{Dm($e,{get videoEpisodes(){return n(se)},get disabled(){return _()},get isMobile(){return s()}})},Dt=$e=>{var Le=wx(),ct=C(Le),Ct=k(ct,2);let fe;S(Le),O(Fe=>{Ve(ct,"data-value",n(Te)),Ke(ct,`transform: translateX(${n(Te)}%);`),fe=oe(Ct,1,"filled s-h",null,fe,Fe),Ve(Ct,"data-value",n(He)),Ke(Ct,`transform: translateX(${n(He)}%);`)},[()=>({"active-live":d()})]),b($e,Le)};V(Xt,$e=>{n(se).length?$e(kt):$e(Dt,!1)})}var zt=k(Xt,2);let j;var Pe=C(zt);let le;S(zt),S(lt),Ze(lt,$e=>i($e),()=>i()),O(($e,Le,ct,Ct)=>{var fe,Fe;Pt=oe(lt,1,`slider ${(fe=o())!=null?fe:""}`,"s-h",Pt,$e),Ve(lt,"aria-label",we()),Ve(lt,"aria-valuemin",me()),Ve(lt,"aria-valuemax",ee()),Ve(lt,"aria-valuenow",_e()),Ve(lt,"aria-valuetext",Ce()),Ve(lt,"data-testid",(Fe=r())!=null?Fe:null),j=oe(zt,1,"handleWrap s-h",null,j,Le),Ke(zt,ct),le=oe(Pe,1,"handle s-h",null,le,Ct)},[()=>({disabled:_(),"slider-dragging":n(D),hidden:a(),"handle-always-visible":pe(),"slider-vertical":l(),"no-handle":y(),square:u()}),()=>({hidden:y()}),()=>`transform: translateX(${Ee(J())}%);`,()=>({"active-live":d()})]),pt("pointerenter",lt,xe),pt("pointerleave",lt,Be),pt("mouseenter",lt,ot),pt("mouseleave",lt,ne),pt("wheel",lt,ce),b(t,Et),H()}Ye(["pointerdown","pointermove","pointerup","click","contextmenu"]);var io=(t,e)=>Qd[t]>=Qd[e];var Fs=(t,e)=>Qd[t]<=Qd[e],_b=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var Ix=L("<div><!></div>"),Ex=L("<div><!> <!></div>"),Px={hash:"s-29",code:".volumeBar-container.s-29{align-items:center;display:flex}.vertical.s-29 .btn,.vertical.s-29 .tooltip-wrapper,.volumeBar-container.vertical.s-29{width:40px}.volumeBar.s-29{align-items:center;display:flex;margin:0 8px;position:relative;width:70px;--slider-height:var(--slider-volume-height);--slider-radius:var(--slider-volume-radius);--slider-handle-size:var(--slider-volume-handle-size);--slider-bg:var(--volume-slider-bg);--slider-filled-bg:var(--volume-slider-filled-bg);--slider-handle-bg:var(--volume-slider-handle-bg)}.volumeBar-slider-vertical{width:50px!important}.volumeBar-vertical.s-29{padding:0 8px 0 0;width:0}"};function Om(t,e){var Ae,et;B(e,!0),Q(t,Px);let[i,o]=Ne(),r=()=>w(R,"$isAudioAvailable$",i),a=()=>w(v,"$muted$",i),l=()=>w(p,"$volume$",i),d=()=>w(x,"$currentGridType$",i),s=()=>w(xe,"$controlsVisible",i),u=be(),m=Vt(),p=u.state.volume$,v=u.state.muted$,{setVolume:_,startVolumeChanging:y,stopVolumeChanging:$}=u.actions.internal,x=u.ui.currentGridType$,I=(Ae=u.callbacks)==null?void 0:Ae.onAudioDoesNotExistHint,T=(et=u.callbacks)==null?void 0:et.onAudioDisabledHint,R=u.state.isAudioAvailable$,A=u.state.isAudioDisabled,P=u.ui.t,E=q(!1),z,F=f(()=>e.isAds||r()),U=f(()=>!n(F)||a()||l()===0),X=f(()=>Fs(d(),"l")),ae=f(()=>n(X)?"":n(U)?!r()||A?P("tooltip_sound_unavailable"):P("tooltip_volume"):P("tooltip_volume_muted")),Z=f(()=>n(U)?P("tooltip_volume"):P("tooltip_volume_muted")),re=f(()=>n(U)?0:l()),J=!1,we=f(()=>e.isAds?!1:A?!T:r()?!1:!I);function me(Ee){y(),_(Ee)}function ee(){ip(u,l(),m.controls.volumeStepWheel)}function _e(){op(u,l(),m.controls.volumeStepWheel)}function Ce(Ee){_(Ee)}function ge(Ee){_(Ee),$()}function pe(){J=!0}function Qe(){J=!1,Ge()}function G(){clearTimeout(z),N(E,!0)}function D(){Ge()}function Ge(){z=window.setTimeout(()=>{J||N(E,!1)},m.controls.volumeBarTimeout)}function K(Ee){Ee.preventDefault(),Ee.deltaY<0?ee():Ee.deltaY>0&&_e()}let se=q(!1),xe=u.ui.controlsVisible;De(()=>{s()||N(se,!1)});var Be=Ex();let ot;var ne=C(Be);Xa(ne,{get content(){return n(ae)},translateY:-18,get active(){return n(se)},set active(Ee){N(se,Ee,!0)},children:(Ee,Te)=>{let He=f(()=>n(X)?"btn-volume-vertical":"btn-volume-horizontal");Ut(Ee,{className:"btn-full-opacity",get disabled(){return n(we)},get testId(){return n(He)},get ariaLabel(){return n(Z)},get click(){return e.click},get ariaKeyShortCut(){return hs.KeyM},role:"button",children:(Et,St)=>{ma(Et,{get size(){return"24"},get volume(){return l()},get muted(){return n(U)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var ce=k(ne,2);{var Re=Ee=>{var Te=Ix();let He;var Et=C(Te);let St=f(()=>n(X)?"volumeBar-slider-vertical":""),Ot=f(()=>n(X)&&!n(E)),lt=f(()=>n(X)?pe:uc.noop),Pt=f(()=>n(X)?Qe:uc.noop),Xt=f(()=>Math.round(n(re)*100)),kt=f(()=>`${Math.round(n(re)*100)}%`),Dt=f(()=>n(X)?"volume-slider-vertical":"volume-slider");Za(Et,{get className(){return n(St)},get isHidden(){return n(Ot)},get isVertical(){return n(X)},withWheelHandler:!0,onWheelUp:ee,onWheelDown:_e,onPointerDown:me,onHandleMove:Ce,onPointerUp:ge,get onPointerEnter(){return n(lt)},get onPointerLeave(){return n(Pt)},ariaLabel:"Ползунок громкости",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return n(Xt)},get ariaValueText(){return n(kt)},get filledProgress(){return n(re)},get handleProgress(){return n(re)},get testId(){return n(Dt)}}),S(Te),O(zt=>He=oe(Te,1,"volumeBar s-29",null,He,zt),[()=>({"volumeBar-vertical":n(X)})]),b(Ee,Te)};V(ce,Ee=>{n(F)&&Ee(Re)})}S(Be),O(Ee=>ot=oe(Be,1,"volumeBar-container s-29",null,ot,Ee),[()=>({vertical:n(X)})]),pt("mouseenter",Be,function(...Ee){var Te;(Te=n(X)?G:uc.noop)==null||Te.apply(this,Ee)}),pt("mouseleave",Be,function(...Ee){var Te;(Te=n(X)?D:uc.noop)==null||Te.apply(this,Ee)}),pt("wheel",Be,K),b(t,Be),H(),o()}var bb=require("@vkontakte/videoplayer-shared/es2018");var kx=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 Bm(t,e){let i=h(e,"isFullscreen",8,!1),o=Tn(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");Je(t,{get testId(){return n(o)},children:(r,a)=>{var l=Me(),d=ue(l);{var s=m=>{var p=kx();b(m,p)},u=m=>{var p=Ax();b(m,p)};V(d,m=>{i()?m(s):m(u,!1)})}b(r,l)},$$slots:{default:!0}})}function pc(t,e){B(e,!0);let i=h(e,"isFullscreen",3,!1),o=h(e,"click",3,bb.noop),r=be(),a=r.ui.isFullscreenOpenedByKeyboard,l=r.ui.t,d=f(()=>i()?l("tooltip_fullscreen_on"):l("tooltip_fullscreen_off"));Ut(t,{testId:"fullscreen-btn",get ariaLabel(){return n(d)},click:u=>{let m=ca(u);a.set(m),o()()},get ariaKeyShortCut(){return hs.KeyF},role:"button",children:(u,m)=>{Bm(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 Hm(t,e){let i=Ln(e,["$$slots","$$events","$$legacy","children"]);var o=Lx();to(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);ti(r,()=>{var a;return(a=e.children)!=null?a:ht}),si(),S(o),b(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 Fm(t,e){let i=Ln(e,["$$slots","$$events","$$legacy","children"]);var o=Mx();to(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);ti(r,()=>{var a;return(a=e.children)!=null?a:ht}),si(6),S(o),b(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 Um(t,e){B(e,!0),Q(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=f(()=>!o()&&!i()?91:i()?l:95),s=f(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?a:"vk-video-logo-icon"),u=f(()=>`0 0 ${n(d)} 24`);Fm(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]=Ne(),r=()=>w(_,"$isMobile",i),a=()=>w(v,"$currentGridType$",i),l=()=>w($,"$isCyrillicRelatedInterface$",i),d=h(e,"ref",15,void 0),s=h(e,"logoClickable",3,!1),u=h(e,"targetUrl",3,""),m=Vt(),p=be(),v=p.ui.currentGridType$,_=p.ui.isMobile,y=p.ui.t,$=p.isCyrillicRelatedInterface$,x=f(()=>m.logoType!=="vk"),I=f(()=>n(x)?y("tooltip_vk_video_logo"):y("tooltip_vk_logo")),T=f(()=>(r()&&Fs(a(),"m")||Fs(a(),"l"))&&n(x)),R=()=>{var E,z;e.click(),(E=p.callbacks)!=null&&E.onLogoClicked?(z=p.callbacks)==null||z.onLogoClicked():u()&&window.open(u(),"_blank")},A=f(()=>!s()),P=f(()=>n(x)?"btn-vk-video-logo":"btn-vk-logo");Ut(t,{className:"btn-full-opacity",get disabled(){return n(A)},click:R,get testId(){return n(P)},get ariaLabel(){return n(I)},get ref(){return d()},set ref(E){d(E)},children:(E,z)=>{var F=Me(),U=ue(F);{var X=Z=>{Um(Z,{get logo(){return m.logoType},get short(){return n(T)},get isCyrillic(){return l()}})},ae=Z=>{Hm(Z,{})};V(U,Z=>{n(x)?Z(X):Z(ae,!1)})}b(E,F)},$$slots:{default:!0}}),H(),o()}var yb=require("@vkontakte/videoplayer-core/es2018");var zm=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-1d"></path><path d="M3.6 9.7a8.7 8.7 0 0 1 8.68 9.37.9.9 0 0 1-1.8-.14c.02-.17.02-.35.02-.53a6.9 6.9 0 0 0-7.43-6.88.9.9 0 0 1-.14-1.8l.67-.02ZM3.6 16.9a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3Z" class="s-1d"></path><path d="M16.24 4.1c.8 0 1.47 0 2 .04a4 4 0 0 1 1.53.38 3.9 3.9 0 0 1 1.7 1.71 4 4 0 0 1 .39 1.53c.04.53.04 1.2.04 2v4.48c0 .8 0 1.47-.04 2a4 4 0 0 1-.38 1.53 3.9 3.9 0 0 1-1.7 1.7 4 4 0 0 1-1.54.39c-.53.04-1.2.04-2 .04H15a.9.9 0 0 1 0-1.8h1.2c.85 0 1.44 0 1.9-.04.44-.03.68-.1.85-.19.4-.2.72-.52.92-.92.09-.17.16-.4.2-.85.03-.46.03-1.05.03-1.9V9.8c0-.85 0-1.44-.04-1.9-.03-.44-.1-.68-.19-.85a2.1 2.1 0 0 0-.92-.92 2.25 2.25 0 0 0-.85-.2 25.9 25.9 0 0 0-1.9-.03H5.83a2.1 2.1 0 0 0-1.81 1.4.9.9 0 1 1-1.7-.6A3.9 3.9 0 0 1 6 4.1h10.24Z" class="s-1d"></path>',1),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-1d",code:".animated.s-1d{animation-duration:1s;animation-iteration-count:infinite}.wave1.animated.s-1d{animation-name:s-1d-wave1}.wave2.animated.s-1d{animation-name:s-1d-wave2}.wave3.animated.s-1d{animation-name:s-1d-wave3}@keyframes s-1d-wave1{0%{opacity:.3}33%{opacity:1}66%{opacity:1}to{opacity:1}}@keyframes s-1d-wave2{0%{opacity:.3}33%{opacity:.3}66%{opacity:1}to{opacity:1}}@keyframes s-1d-wave3{0%{opacity:.3}33%{opacity:.3}66%{opacity:.3}to{opacity:1}}"};function mc(t,e){B(e,!0),Q(t,Dx);let i=h(e,"isMobile",3,!1),o=f(()=>e.iconState===zm.ChromecastState.CONNECTED),r=f(()=>e.iconState===zm.ChromecastState.CONNECTING),a=f(()=>n(o)?"#2688EB":sa),l=f(()=>e.size?fn(e.size):void 0);var d=Me(),s=ue(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();si(2),b(v,y)},$$slots:{default:!0}})},m=p=>{Je(p,{get style(){return n(l)},testId:"chromecast-icon",children:(v,_)=>{var y=Nx(),$=ue(y);let x;var I=k($);let T;var R=k(I);let A;var P=k(R);let E;var z=k(P);let F;O((U,X,ae,Z,re)=>{x=oe($,0,"wave2 s-1d",null,x,U),T=oe(I,0,"wave3 s-1d",null,T,X),A=oe(R,0,"wave1 s-1d",null,A,ae),E=oe(P,0,"s-1d",null,E,Z),F=oe(z,0,"s-1d",null,F,re)},[()=>({animated:n(r)}),()=>({animated:n(r)}),()=>({animated:n(r)}),()=>({hidden:n(o)}),()=>({hidden:!n(o)})]),b(v,y)},$$slots:{default:!0}})};V(s,p=>{i()?p(u):p(m,!1)})}b(t,d),H()}var xb=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,xb.noop),l=be().ui.t,d=f(()=>e.state===yb.ChromecastState.CONNECTED?l("tooltip_chromecast_on"):l("tooltip_chromecast_off"));Ut(t,{get ariaLabel(){return n(d)},get click(){return r()},testId:"btn-chromecast",get ref(){return i()},set ref(s){i(s)},children:(s,u)=>{mc(s,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),H()}var wb=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 Wm(t){Je(t,{testId:"episodes-icon",children:(e,i)=>{var o=Ox();si(2),b(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-25"> </span> <div class="chevron-episodes s-25" data-testid="btn-episodes_icon"><!></div>',1),Hx=L('<span class="text s-25"> </span>'),Fx=L('<span class="text count s-25"> </span>'),Ux=L('<span class="icon s-25"><!></span> <!>',1),zx={hash:"s-25",code:".icon.s-25{flex-shrink:0}.text.s-25{overflow:hidden;padding:0 8px;text-overflow:ellipsis;white-space:nowrap}.text.count.s-25{overflow:visible}.text.mobile.s-25{padding:0 3px 0 4px}.chevron-episodes.s-25{margin-bottom:-6px;opacity:.7;transform:scale(.8)}"};function gc(t,e){var J,we,me;B(e,!0),Q(t,zx);let[i,o]=Ne(),r=()=>w(y,"$currentGridType$",i),a=()=>w($,"$openedByKeyboard$",i),l=()=>w(x,"$panelOpened$",i),d=()=>w(I,"$isMobile",i),s=h(e,"position",3,0),u=h(e,"duration",3,0),m=h(e,"timeCodes",19,()=>[]),p=be(),v=(we=(J=p.callbacks)==null?void 0:J.onEpisodeChanged)!=null?we:wb.noop,_=!!((me=p.callbacks)!=null&&me.onEpisodeClicked),y=p.ui.currentGridType$,$=p.ui.episodes.openedByKeyboard$,x=p.ui.episodes.panelOpened$,I=p.ui.isMobile,T=p.ui.t,R=q(void 0),A=ee=>{var Ce,ge,pe;if(!!((Ce=p.callbacks)!=null&&Ce.onEpisodeClicked)){let Qe=ca(ee);$.set(Qe),x.set(!0),(pe=(ge=p.callbacks)==null?void 0:ge.onEpisodeClicked)==null||pe.call(ge,Qe)}},P=q(null),E=f(()=>s()/u());De(()=>{var _e;let ee=ap(n(E),u(),m());ee?((_e=n(P))==null?void 0:_e.time)!==ee.time&&(v(ee),N(P,ee,!0)):N(P,null)});let z=f(()=>{var ee;return((ee=n(P))==null?void 0:ee.text)||""}),F=f(()=>io(r(),"xl")?"FULL":io(r(),"m")?"COUNT":"SHORT"),U=f(()=>`${T("tooltip_episodes")}: ${n(z)}`),X=async(ee,_e,Ce)=>{await mo(),(ee==null?void 0:ee.getAttribute("aria-expanded"))==="false"&&_e&&!Ce&&It(()=>{$.set(!1),ee.focus()})};De(()=>{X(n(R),a(),l())});var ae=Me(),Z=ue(ae);{var re=ee=>{let _e=f(()=>d()?"px-0":""),Ce=f(()=>!_);Ut(ee,{get className(){var ge;return`w-max btn-full-opacity btn-jc-l ${(ge=n(_e))!=null?ge:""}`},testId:"btn-episodes",click:A,get disabled(){return n(Ce)},get ariaExpanded(){return l()},get ariaLabel(){return n(U)},get ref(){return n(R)},set ref(ge){N(R,ge,!0)},children:(ge,pe)=>{var Qe=Me(),G=ue(Qe);{var D=K=>{var se=Bx(),xe=ue(se),Be=C(xe,!0);S(xe);var ot=k(xe,2),ne=C(ot);Rr(ne,{direction:"right"}),S(ot),O(()=>ve(Be,n(z))),b(K,se)},Ge=K=>{var se=Ux(),xe=ue(se),Be=C(xe);Wm(Be,{}),S(xe);var ot=k(xe,2);{var ne=Re=>{var Ae=Hx(),et=C(Ae,!0);S(Ae),O(()=>ve(et,n(z))),b(Re,Ae)},ce=(Re,Ae)=>{{var et=Ee=>{var Te=Fx(),He=C(Te,!0);S(Te),O(()=>ve(He,m().length)),b(Ee,Te)};V(Re,Ee=>{n(F)==="COUNT"&&Ee(et)},Ae)}};V(ot,Re=>{n(F)==="FULL"?Re(ne):Re(ce,!1)})}b(K,se)};V(G,K=>{d()?K(D):K(Ge,!1)})}b(ge,Qe)},$$slots:{default:!0}})};V(Z,ee=>{n(P)&&ee(re)})}b(t,ae),H(),o()}var pv=require("@vkontakte/videoplayer-shared/es2018");var fi=require("@vkontakte/videoplayer-core/es2018"),at=require("@vkontakte/videoplayer-shared/es2018"),bs=require("@vkontakte/videoplayer-statistics/es2018");var qe=require("@vkontakte/videoplayer-shared/es2018"),oo=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 oo.Subject,loadStarted$:new oo.Subject,loadEnded$:new oo.Subject,loadError$:new oo.Subject,ready$:new oo.Subject,slotRequested$:new oo.Subject,started$:new oo.Subject,timeRemained$:new oo.Subject,paused$:new oo.Subject,resumed$:new oo.Subject,ended$:new oo.Subject,empty$:new oo.Subject,skipped$:new oo.Subject,clicked$:new oo.Subject,closed$:new oo.Subject,error$:new oo.Subject};this.loadAdman=e=>(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,oo.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?ye(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 A,P;if(qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[(0,qe.now)(),e.slotId]}),this.adman)return;this.events.init$.next(e.slotId),this.startWatchDog();let{width:i,height:o,isAutoplay:r,adsContainer:a,adsVideoElement:l,slotId:d,params:s={},paramsOverride:u={},duration:m,externalApi:p,json:v}=e;this.externalApi=p;let _,y=this.playerState&&ye(this.playerState.vsid);y&&(this.isVsidOriginal?_=y:_=parseInt(y,36));let{isEmbed:$,immediateOrigin:x}=(0,qe.detectEmbed)(),I=(A=$?x:window.location.href)!=null?A:window.location.href,T=(0,qe.withoutNullable)({...s,dl:encodeURIComponent(I),autoplay:r?1:0,player_width:i,player_height:o,..._?{request_id:_}:{},duration:m,...u}),R=(0,qe.withoutNullable)({slot:v?void 0:d,wrapper:a,videoEl:l,videoQuality:o,params:v?void 0:T,browser:{mobile:!1},json:v});try{let E=new window.AdmanHTML;if(E.onReady(this.onAdsReady),E.onStarted(this.onAdStarted),E.onPlayed(this.onAdPlayed),E.onPaused(this.onAdPaused),E.adMidrollPoint(this.onAdMidrollPoint),E.onClosed(this.onAdClosed),E.onSkipped(this.onAdSkipped),E.onClicked(this.onAdClicked),E.onTimeRemained(this.onAdTimeRemained),E.onCompleted(this.onAdCompleted),E.onError(this.onAdError),E.setDebug(!1),!v&&((P=this.externalApi)!=null&&P.videoGetAds)){let z=await this.safeExternalCall(this.externalApi.videoGetAds,T);z&&(delete R.slot,delete R.params,Object.assign(R,{json:z}))}E.init(R),this.adman=E,this.videoElement=l,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(R)}`})}catch(E){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=ye(this.adsState.playbackState);i==="playing"?this.pause():i==="paused"&&this.play()}else this.onAdError("Can not toggle play: Adman state is not initialized")}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){let i=e*this.volumeMultiplier;if(this.log({message:`set volume ${i}`}),this.adman)try{this.adman.setVolume(i)}catch(o){this.onAdError("could not set ad volume")}this.videoElement&&(this.videoElement.volume=i)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch(i){this.onAdError("could not set ad fullscreen")}}startPreroll(){if(qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[(0,qe.now)()]}),this.adman){if(!this.isDestroyed){this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.startWatchDog();try{this.adman.start("preroll")}catch(e){this.onAdError("could not start preroll")}}}else this.onAdError("Can not start preroll: Adman is not initialized")}startPostroll(){var e;if(qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[(0,qe.now)()]}),this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch(i){this.onAdError("could not start postroll")}}else this.onAdError("Can not start postroll: Adman is not initialized")}startWatchDog(){this.watchDogTimeout&&this.stopWatchDog(),this.watchDogTimeout=window.setTimeout(()=>this.onAdError("Watchdog timeout"),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){var e;if(qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[(0,qe.now)()]}),this.adman){this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch(i){this.onAdError("could not resume ad")}}else this.onAdError("Can not play: Adman is not initialized")}pause(){var e;if(qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[(0,qe.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch(i){this.onAdError("could not pause ad")}}else this.onAdError("Can not pause: Adman is not initialized")}skip(){var e;if(qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[(0,qe.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch(i){this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}setPosition(e,i){var o;(o=this.adman)==null||o.setPosition(Math.floor(e),Math.floor(i))}destroy(){var e,i,o,r,a,l,d,s,u,m,p,v;qe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[(0,qe.now)()]}),this.log({message:"destroy"}),this.stopWatchDog(),(e=this.adman)==null||e.onReady(void 0),(i=this.adman)==null||i.onStarted(void 0),(o=this.adman)==null||o.onPlayed(void 0),(r=this.adman)==null||r.onPaused(void 0),(a=this.adman)==null||a.adMidrollPoint(void 0),(l=this.adman)==null||l.onClosed(void 0),(d=this.adman)==null||d.onSkipped(void 0),(s=this.adman)==null||s.onClicked(void 0),(u=this.adman)==null||u.onTimeRemained(void 0),(m=this.adman)==null||m.onCompleted(void 0),(p=this.adman)==null||p.onError(void 0),(v=this.adman)==null||v.destroy(),this.videoElement&&(0,oo.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 Sb=t=>{let e=Math.round(t);return isNaN(e)||e<40?"":e>=40&&e<55?50:e>=55&&e<90?60:e>=90&&e<180?120:e>=180?240:""};var Km=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e,i){let o=[],r=e.split(this.twoLinesRegExp);for(let a of r){let l={startTime:0,endTime:0,texts:[],lang:i},d=a.split(this.oneLineRegExp);for(let s of d)if(!l.startTime&&!l.endTime){let u=new dp,{startTime:m,endTime:p}=u.parse(s);l.startTime=m,l.endTime=p}else if(s.trim()!==""){let u=new qm,{texts:m}=u.parse(s);l.texts=[...l.texts,...m]}(l.startTime||l.endTime)&&l.texts.length>0&&o.push(l)}return o}},dp=class{constructor(){this.timeRegExp=/(\d{2,})?:?(\d{2}):(\d{2}).(\d{2,3})/;this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(e){let i={startTime:0,endTime:0},o=this.timingRegExp.exec(e);return o&&(i.startTime=this.calcTime(o[1],o[2],o[3],o[4]),i.endTime=this.calcTime(o[6],o[7],o[8],o[9])),i}parseTime(e){let i=this.timeRegExp.exec(e);return i?this.calcTime(i[1],i[2],i[3],i[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",i="0",o="0",r="0"){let a=Number(e)*60*60,l=Number(i)*60,d=Number(o),s=+`0.${r}`;return a+l+d+s}},qm=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},r=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](l){let d=0,s=[];for(;d<l.length;){let u=["<",">"].reduce((m,p)=>{let v=l.indexOf(p,d);return m===-1||m>v?v:m},-1);if(u===-1){s.push(l.substring(d));break}s.push(l.substring(d,u)),d=u+1}return s}}),a=new 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}},Cb=Km;var up=require("@vkontakte/videoplayer-shared/es2018"),Ja,ki,Qm=0,Gm=!1,Tb="",Ib=(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,Eb=(t,e,i,o=!1)=>{var d;let r=(d=i.find(({id:s})=>s===e.value))==null?void 0:d.subtitles;if(o)return r==null?void 0:r.find(({startTime:u,endTime:m})=>cp(t,u,m));let a=t>=Qm,l=t<Qm;if(Qm=t,l&&(Gm=!1),(0,up.isNonNullable)(Ja)&&cp(t,Ja.startTime,Ja.endTime)&&Tb===e.value)return Ja;if(!(0,up.isNonNullable)(ki)&&(r!=null&&r.length)&&!Gm){ki=r.find(({startTime:u,endTime:m})=>cp(t,u,m)||a&&Ib(t,u,m)),Ja=void 0,!(0,up.isNonNullable)(ki)&&r[r.length-1].endTime<t&&(Gm=!0);return}else{if(cp(t,ki==null?void 0:ki.startTime,ki==null?void 0:ki.endTime))return Ja=ki,ki=void 0,Tb=e.value,Ja;(a&&Kx(t,ki==null?void 0:ki.startTime,ki==null?void 0:ki.endTime)||l&&Ib(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 Pb=require("@vkontakte/videoplayer-shared/es2018"),mB=require("@vkontakte/videoplayer-statistics/es2018"),fp=class{constructor(e,i,o,r=new Pb.Subscription){this.oneStat=e;this.thinOneStat=i;this.mediascopePixel=o;this.statSubscription=r}destroy(){var e,i,o;(e=this.oneStat)==null||e.destroy(),(i=this.thinOneStat)==null||i.destroy(),(o=this.mediascopePixel)==null||o.destroy(),this.statSubscription.unsubscribe()}};var _c=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(_c||{});var _s=t=>t!=null?t:0,Us=(t,e)=>{var r,a;let i=(r=t==null?void 0:t.getBoundingClientRect)==null?void 0:r.call(t),o=(a=e==null?void 0:e.getBoundingClientRect)==null?void 0:a.call(e);return{top:Math.round(_s(i==null?void 0:i.top)-_s(o==null?void 0:o.top)),left:Math.round(_s(i==null?void 0:i.left)-_s(o==null?void 0:o.left)),bottom:Math.round(_s(i==null?void 0:i.bottom)-_s(o==null?void 0:o.top)),right:Math.round(_s(i==null?void 0:i.right)-_s(o==null?void 0:o.left))}},Zl=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:_s(e==null?void 0:e.width),height:_s(e==null?void 0:e.height)}};var Rn="off";var Jl=t=>!!(Math.round(Math.abs(t)/90)%2);var kb=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:r,statAuthToken:a,isAudioDisabled:l,canDownload:d,callbacks:s,webApi:u,videoEpisodes:m,previewThumbsData:p,uiConfig:v,coreConfig:_,player:y,disabledControls:$,isInteractive:x,interactiveRanges$:I,isInteractiveTime$:T,replayInteractive:R,stopPlayer:A,hasInteractiveBranches:P,playPrevChapterDisabledTooltip:E,additionalButtons:z,additionalSettingsMenuItems:F,additionalContextMenuItems:U,playPrevVideo:X,playNextVideo:ae,onVideoChanged:Z,looped:re=!1,statistics:J,saveRate:we,internalsExposure:me,playerView:ee,playerId:_e,metaConfig:Ce})=>{var bg,$g;let ge={..._,isAudioDisabled:l,live:{...(bg=_.live)!=null?bg:{},isLiveCatchUpMode:!!r}},pe=v,Qe=at.TracerFactory.createRootTracer(pe.features.tracer),G=Qe.createComponentTracer("Store"),D=y||new fi.Player(ge,Qe,{playerId:_e,onDevNullLog:s==null?void 0:s.onDevNullLog});me==null||me.expose({corePlayer:D});let Ge=new at.Logger,K=new lp(Ge,{loadTimeout:pe.ads.loadTimeout,initTimeout:pe.ads.initTimeout,runtimeTimeout:pe.ads.runtimeTimeout,useAdmanFromNPM:pe.ads.useAdmanFromNPM,volumeMultiplier:pe.ads.volumeMultiplier,isVsidOriginal:pe.ads.isVsidOriginal}),se=za.getInstance(),xe=u==null?void 0:u.pictureInPictureApi,Be=u==null?void 0:u.annotationsApi,ot=u==null?void 0:u.slotsApi,ne=u==null?void 0:u.focusManager,ce=Ge.createComponentLog("Store"),Re,Ae,et={},Ee=new Du,Te=new at.Subscription,He="",Et=de(!1),St=J&&J.oneStat?ii(J.oneStat.vsid$):Vr(void 0),Ot=de(aa()),lt=de(!1),Pt=()=>j_(document,fi.clientChecker.device.isIOS),Xt=($g=xe==null?void 0:xe.info.isActive$)!=null?$g:new at.ValueSubject(!1),kt=de(0),Dt=de(!1),zt=de(!1),j=de([]),Pe=(0,at.merge)(D.events.fatalError$,D.events.managedError$).subscribe(c=>j.update(g=>[...g,c])),le=Vr(!1,c=>{let g=D.events.fatalError$.subscribe(()=>c(!0));return()=>g.unsubscribe()}),$e=async c=>{var ie;let g=Object.values(at.InterfaceLanguage).includes(c);if(pe.downloadVKLanguages&&(g&&pe.updateBuiltinLanguages||!rm(c))){let Se;try{Se=await(0,at.loadVKLangPack)(c,a_,l_)}catch(Xe){(ie=J==null?void 0:J.oneStat)==null||ie.logError({errorType:"VKLangPack",fatal:!1}),se==null||se.report(Xe,{errorType:"VKLangPack",fatal:!1})}Se&&(nm({language:c,pack:Se,fallback:pe.defaultLanguage}),Le.set(c),ct.update(Xe=>Xe+1))}rm(c)&&Le.set(c)},Le=de(t),ct=de(0),Ct=de(e);$e(t);let fe=(c,g)=>{let M=ye(Le);return sm(M,c,g,pe.defaultLanguage)},Fe=de("thumb");Fe.subscribe(c=>{c==="ads"&&D.info.playbackState$.getValue()&&oi()});let Ue=(()=>{let c=ui([le,Fe],([g,M])=>g?"crashed":M);return{...c,is:g=>ye(c)===g}})(),Tt=de(),oi=()=>{Tt.set({muted:D.info.muted$.getValue()})},xt=(()=>{let c=de(new Set($));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=ye(c);return Array.isArray(g)?g.every(ie=>M.has(ie)):M.has(g)}}})(),Gt=de({width:0,height:0}),ai=null,Bi=D.info.isBuffering$,Rt=Vr(Bi.getValue(),c=>{let g=Bi.subscribe(M=>{M&&ai===null?ai=window.setTimeout(()=>{c(Bi.getValue()),ai=null},pe.loaderDelay):c(M)});return()=>{g.unsubscribe(),ai&&clearTimeout(ai)}});G.log("create store"),ce({message:"create store"});let vo=c=>{let g=c.container,M=()=>{xi=new MutationObserver(Se=>{let{removedNodes:Xe}=Se[0];Xe.length&&g.append(D.experimental.element$.getValue())}),xi.observe(g,{childList:!0})},ie=D.experimental.element$.getValue();if(ie)g.append(ie),M();else{let Se=D.experimental.element$.pipe((0,at.filter)(Xe=>!!Xe),(0,at.once)()).subscribe(Xe=>{g.append(Xe),M()});Te.add(Se)}},ci=c=>{ce({message:`init video, config: ${JSON.stringify(c)}`}),x?vo(c):(at.devNull.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[(0,at.now)()]}),D.initVideo(c)),G.log("init video",{isInteractive:x}),c.subtitles&&D.setExternalTextTracks(c.subtitles),Re=c,He=c.subtitlesForcedLanguage||""},nt=new at.Subject,Yt=c=>nt.next(c),Hi=new at.Subject,bi=new at.Subject,Zt=new at.Subject,xi=null,st={actionRewind$:Hi,actionSeek$:bi,inPiP$:Xt,inFullscreen$:new at.Observable(c=>Ot.subscribe(g=>c.next(g))),actionSetSubtitle$:Zt,nextMovie$:nt},dt=new at.Subject,hi=new at.Subject,Xo={actionSeek$:bi,actionSubtitlesSwitched$:dt,actionQuality$:hi,playerSize$:new at.Observable(c=>Gt.subscribe(g=>c.next(g))),inPiP$:Xt,inFullscreen$:new at.Observable(c=>Ot.subscribe(g=>c.next(g))),isLoaderVisible$:new at.Observable(c=>Rt.subscribe(g=>c.next(g)))};if(J){let{oneStat:c,thinOneStat:g,mediascopePixel:M,statSubscription:ie}=J;c&&(x||ie.add(c.attachTo(D)),ie.add(c.attachToUi(st)),ie.add(c.attachToAds(K.events)),c.authorize(a).catch(Se=>{ce({message:`onestat auth error ${String(Se)}`})}),M&&M.attachTo(D)),g&&(ie.add(g.attachTo(D,K.events)),ie.add(g.attachToUi(Xo)),ie.add(g.attachToAds(K.events)),g.updateContext({isMobile:ye(Et)}),g.authorize(a))}if(se){let c=new at.Subscription,g=(M,ie)=>c.add(M.subscribe(ie));if(g(D.events.managedError$,M=>{se.logIError(M)}),g(D.events.fatalError$,M=>{se.logIError(M,!0)}),J){let{oneStat:M}=J;M&&g(M.experimental.error$,ie=>{se.logIError(ie)})}se.sentrySubscription.add(c)}let Ro=()=>{if(fi.clientChecker.device.isIOS&&Ae)try{X_(Ae)}catch(c){ce({message:`exitIosSafariFullscreen failed: ${c}`})}};Te.add(D.experimental.element$.subscribe(c=>{c&&(Ae=c,c.classList.add("player-media"),Ka(xe)&&xe.updateVideoElement(),x&&c.setAttribute("pip","false"),(ee==="preview"||!pe.features.pip&&!pe.features.dpip)&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(D.events.ended$.subscribe(()=>{var c;Ro(),(c=s==null?void 0:s.onEnded)==null||c.call(s)})).add(D.events.looped$.subscribe(()=>{var c;(c=s==null?void 0:s.onLooped)==null||c.call(s)})).add(D.events.started$.subscribe(async()=>{var g,M;Ka(xe)&&await(xe==null?void 0:xe.revealPictureInPicture());let c=D.info.muted$.getValue();(g=s==null?void 0:s.onStarted)==null||g.call(s),(M=et.onStarted)==null||M.call(et,c)})).add(D.events.willSeek$.subscribe(({from:c,to:g})=>{var M;(M=s==null?void 0:s.onSeek)==null||M.call(s,c,g)})).add(D.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=s==null?void 0:s.onAutoplaySoundProhibited)==null||c.call(s)})).add(D.info.position$.subscribe(c=>{var M;let g=D.info.duration$.getValue();isFinite(g)&&g>0&&((M=s==null?void 0:s.onTimeupdate)==null||M.call(s,g,c),K.setPosition(c,g))})).add(D.events.fatalError$.subscribe(c=>{var g;(g=s==null?void 0:s.onCrashed)==null||g.call(s,c?`${c.id}: ${c.message}`:void 0)})).add(D.events.fetcherRecoverableError$.subscribe(c=>{var g;(g=s==null?void 0:s.onRecoverableError)==null||g.call(s,c?`${c.id}: ${c.message}`:void 0)})).add(D.events.loadedMetadata$.subscribe(()=>{Dt.set(!0)})).add(D.info.is3DVideo$.subscribe(c=>{zt.set(c)})).add(D.info.isEnded$.subscribe(c=>{x&&(c?(T!=null&&T.getValue()&&xt.add(qd),xt.add("PLAY_BUTTON")):xt.remove("PLAY_BUTTON"))})).add(D.info.liveTime$.subscribe(c=>{var g;(g=s==null?void 0:s.onLiveTime)==null||g.call(s,c)})).add(D.info.isStalled$.subscribe(c=>{var g;(g=s==null?void 0:s.onStalledChanged)==null||g.call(s,c)})).add(D.info.isLiveEnded$.subscribe(c=>{var g;return c&&((g=s==null?void 0:s.onLiveEnded)==null?void 0:g.call(s))})).add(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 _t=new at.Subscription,Bt=()=>{var Xe,At,Ht;let{debugLog:c}=pe,g,M="#9df7b7",ie="#efd169";if(c&&c!==!0){let{colors:qt}=c;g=c.tag,M=(Xe=qt==null?void 0:qt[0])!=null?Xe:M,ie=(Ht=(At=qt==null?void 0:qt[1])!=null?At:qt==null?void 0:qt[0])!=null?Ht:ie}let Se=g?`: ${g}`:"";_t.add(D.events.log$.subscribe(qt=>{console.debug(`%c sdk${Se} `,`background:${M};`,`sdk component: ${qt.component}`,qt.message)})).add(Ge.log$.subscribe(qt=>{console.debug(`%c ui${Se} `,`background:${ie};`,`ui component: ${qt.component}.`,qt.message)}))},W=()=>{_t.unsubscribe()},Lt=(c,g)=>{G.log("start camera manual rotation",{mx:c,my:g}),D.startCameraManualRotation(c,g)},ni=(c=!1)=>{G.log("stop camera manual rotation",{immediate:c}),D.stopCameraManualRotation(c)},gt=(c,g,M)=>{G.log("move camera focus px",{xpx:c,ypx:g,dt:M}),D.moveCameraFocusPX(c,g,M)},ei=()=>{D.holdCamera()},Kt=()=>{D.releaseCamera()},We=Vr(D.info.position$.getValue(),c=>{let g,M,ie=()=>{let Se=D.info.playbackState$.getValue(),Xe=D.info.isLive$.getValue(),At=D.info.duration$.getValue(),Ht=D.info.position$.getValue();if(Se&&[fi.PlaybackState.PLAYING,fi.PlaybackState.PAUSED].includes(Se)){let qt=Xe?Ht-At:D.getExactTime();qt!==M&&c(qt),M=qt}g=requestAnimationFrame(ie)};return ie(),()=>cancelAnimationFrame(g)}),Fi=ii(D.info.playbackState$),ji=ii(D.info.isBuffering$),Zo=ui([Fi,ji],([c,g])=>g?"buffering":c),er=ii(D.info.currentBuffer$),ro=ii(D.info.isEnded$),Ti=ii(D.info.isLive$),bo=pe.features.playbackRate?ii(D.info.canChangePlaybackSpeed$):Vr(!1),No=ii(D.info.liveBufferTime$),$o=ii(D.info.volume$),Ii=ii(D.info.muted$),yo=Ou(D.info.predefinedQualityLimitType$.pipe((0,at.map)(c=>c===fi.PredefinedQualityLimits.TRAFFIC_SAVING)),D.info.predefinedQualityLimitType$.getValue()===fi.PredefinedQualityLimits.TRAFFIC_SAVING),xo=Ou(D.info.predefinedQualityLimitType$.pipe((0,at.map)(c=>c===fi.PredefinedQualityLimits.HIGH_QUALITY)),D.info.predefinedQualityLimitType$.getValue()===fi.PredefinedQualityLimits.HIGH_QUALITY),Jo=ii(D.info.autoQualityLimitingAvailable$),Dr=ii(D.info.availableQualities$),Or=ii(D.info.availableQualitiesFps$),ss=ii(D.info.chromecastState$),ys=ii(D.info.chromecastDeviceName$),_r=ii(D.info.currentFormat$),tr=ii(D.info.throughputEstimation$),Br=ii(D.info.videoBitrate$),vn=ii(D.info.intrinsicVideoSize$),gn=ii(D.info.duration$),br=ii(D.info.isAudioAvailable$),$r=()=>{ai&&clearTimeout(ai),ai=null},en=ui([gn,Ti],([c,g])=>g?-c:c),yr=ui([Fi],([c])=>c===fi.PlaybackState.PLAYING),xr=ii(D.info.atLiveEdge$),wr=ii(D.info.atLiveDurationEdge$),Nn=ii(D.info.position$),Hr=ui([Nn,gn],([c,g])=>isFinite(c)&&isFinite(g)&&!!g),xs=ui([ss],([c])=>c===fi.ChromecastState.CONNECTED),Fr=ii(D.info.availableVideoStreams$),wi=pe.features.audioLanguages?ii(D.info.availableAudioStreams$):Vr([]),as=ii(D.info.currentVideoStream$),tn=ii(D.info.currentAudioStream$),ft=c=>{c.language&&em(c.language),D.setVideoStream(c)},Jt=(c,g)=>{D.setAudioStream(c),Ho(g)&&(c.language&&em(c.language),pe.features.userVideoPrefs&&i&&om(pe.userSalt,String(i),{audioTrackId:c.id}))},Dn=c=>{let g;if(c.length===1&&(g=c.at(0)),g!=null||(g=c.find(ie=>"isDefault"in ie&&ie.isDefault)),pe.features.userVideoPrefs&&i){let ie=zu(pe.userSalt,String(i));if(ie!=null&&ie.audioTrackId){let Se=c.find(Xe=>Xe.id===ie.audioTrackId);g=Se!=null?Se:g}}let M=R_();return M&&(g!=null||(g=c.find(({language:ie})=>M===ie))),g!=null||(g=c.at(0)),g},ir=c=>{G.log("change audio stream",{id:c});let g=D.info.availableAudioStreams$.getValue().find(M=>M.id===c);g&&Jt(g,!0)},Ur=!1;Te.add(D.info.availableAudioStreams$.subscribe(c=>{if(!Ur&&c.length){let g=Dn(c);g&&(D.setAudioStream(g),Ur=!0)}})),wi.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})))}),tn.subscribe(c=>{var g;return c&&((g=s==null?void 0:s.onAudioStreamChanged)==null?void 0:g.call(s,c.id))});let or=!1;Te.add(D.info.availableVideoStreams$.subscribe(c=>{if(!or&&c.length){let g=Dn(c);g&&(D.setVideoStream(g),or=!0)}}));let nr=de(void 0),Do=ii(D.info.isAutoQualityEnabled$,c=>c&&nr.set(void 0)),Sr=ii(D.info.currentQuality$,()=>nr.set(void 0)),On=ui([nr,Sr],([c,g])=>c!=null?c:g),rr=ui(_r,c=>c!==fi.VideoFormat.MPEG),sr=ui([Dr,Or,Do,On,rr],([c,g,M,ie,Se])=>{let Xe=[];Se&&Xe.push({value:"auto",displayValue:fe("auto_quality_option"),selected:M});let At=c.filter(Ht=>!(0,at.isInvariantQuality)(Ht));for(let Ht of At){let qt=g[Ht];Xe.push({value:Ht,displayValue:`${Ht}${qt?Sb(qt):""}`,selected:M?!1:Ht===ie})}return Xe}),on=ii(D.info.currentPlaybackRate$),hn=ui([on,xr,wr],([c,g,M])=>{let ie=M||x?1:pe.controls.playbackRateMin,Se=g?1:pe.controls.playbackRateMax,Xe=pe.controls.playbackRateStep,At=[];for(let Ht=ie;Ht<=Se;Ht+=Xe)At.push({value:Ht,displayValue:Ht===1?fe("playback_rate_1"):fe("playback_rate",{multiplier:Ht.toString(10)}),selected:c===Ht});return At}),Bn=()=>({displayValue:fe("subtitles_off"),value:Rn,language:""}),Ai=de(Bn()),Li=ui([Ai,ct],([c],g)=>{c.value===Rn?g(Bn()):g(c)}),Oo=pe.features.subtitles?ii(D.info.availableTextTracks$):Vr([]),Hn=w_(),ar=ui([Oo,Li],([c,g],M)=>{var Xe;let ie=[],Se=c.find(({id:At})=>At===g.value);if(Se!=null&&Se.url){let[,At]=(Xe=Hn.find(Se.url))!=null?Xe:[];if(At){M(At);return}Ee.download(Se.url).then(Ht=>{if(!Ht||Ee.isDestroyed())return;let qt=new Cb,js=Se.language;if(js){let I$=!!Se.isAuto,E$=qt.parse(Ht,js);ie.push({lang:js,subtitles:E$,isAuto:I$,id:Se.id})}Hn.add(Se.url,ie),ye(Li).value===g.value&&M(ie)}).catch(Ht=>{var qt;(qt=J==null?void 0:J.oneStat)==null||qt.logError({errorType:"Subtitles download",fatal:!1}),se==null||se.report(Ht,{errorType:"Subtitles download",fatal:!1})})}M(ie)}),Fn=ui([on,yr,Li],([c,g,M],ie)=>{let At;if(D.info.isLive$.getValue()&&g&&M.value!==Rn){let qt=()=>{let js=1e3/(3*c);At=setTimeout(qt,js),ie(Date.now())};return qt(),()=>clearTimeout(At)}}),Cr=ui([Oo,Li],([c,g])=>{if(!c.length)return[];let M=[];for(let{language:ie,isAuto:Se,id:Xe}of c){let At=ie&&hc(ie);ie&&At&&M.push({displayValue:Se?fe("subtitles_auto",{language:At}):At,value:Xe,selected:(g==null?void 0:g.value)===Xe,isAuto:Se,language:ie})}return M.length?(M.unshift({...Bn(),selected:(g==null?void 0:g.value)===Rn}),M):[]}),ut={available:[],prev:[]},wt=()=>{var g,M;let c=D.experimental.getCurrentTime$.getValue();return(M=(g=c==null?void 0:c())!=null?g:Ae==null?void 0:Ae.currentTime)!=null?M:0},so=ui([We,Li,ar,Fn],([c,g,M,ie])=>{var Xe;let Se=D.info.isLive$.getValue();if(Se&&ut.prev!==M){let At=M.find(({id:qt})=>qt===g.value),Ht=ut.prev.find(({id:qt})=>qt===g.value);if(At){let qt={...At,subtitles:[...(Xe=Ht==null?void 0:Ht.subtitles)!=null?Xe:[],...At.subtitles]};ut.available=[qt],ut.prev=M}}if(g&&g.value!==Rn){let At=Se?wt():c,Ht=Se?ut.available:M;return Eb(At,g,Ht,Se)}}),ao=ui([so],([c])=>c!=null&&c.texts?c.texts:[]);Te.add(Li.subscribe(c=>{var g,M;if(c.value===Rn)(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=de(!0),Bo=ui([er,en,Nn,No],([c,g,M,ie])=>{var Ht;let Se=(Ht=c==null?void 0:c.end)!=null?Ht:0;if(!ie)return Se/g;let At=-M+ie-g;return(Se-At)/g}),wo=ii(D.info.availableSources$),Xi=ui([wo],([c])=>Object.keys((c==null?void 0:c[fi.VideoFormat.MPEG])||{}).length>0),Un=()=>{var M,ie,Se;let c=Object.keys(((ie=(M=D.info.availableSources$)==null?void 0:M.getValue())==null?void 0:ie[fi.VideoFormat.MPEG])||{}),g=(0,at.getHighestQuality)(c)||at.VideoQuality.Q_144P;return(Se=Re.sources[fi.VideoFormat.MPEG])==null?void 0:Se[g]},_n=()=>{var g;let c=Un();if(c)G.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";G.log("download video",{message:M}),ce({message:M})}},rn=()=>{ce({message:"toggle muted"});let c=D.info.muted$.getValue();D.info.volume$.getValue()===0&&!c?Tr(Wr(),!1):bn(!c,!1)},ws=()=>{var c;if(Wt.ui.settingsMenu.visible$.set(!1),!ye(Wt.ui.settingsSubMenu.visible$)){let g=ye(Wt.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"})}}G.log("close settings menu")},zr=async(c,g=()=>Promise.resolve())=>{var Se;Wt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),Wt.ui.settingsMenu.visible$.set(!0),await g();let M=ye(Wt.ui.settingsMenu.ref$),ie=xa();if((Se=s==null?void 0:s.uiInfo)!=null&&Se.onSettingsMenu&&M&&ie){let At=Zl(M),Ht=Us(M,ie);s.uiInfo.onSettingsMenu({visible:!0,size:At,position:Ht,name:"settings"})}G.log("open settings menu",{wasOpenedByKeyboard:c})},Ss=(c,g=!1)=>{var Xe;Wt.ui.settingsSubMenu.visible$.set(!1);let M=ye(Wt.ui.settingsMenu.ref$),ie=xa(),Se=ye(Wt.ui.settingsMenu.visible$);if((Xe=s==null?void 0:s.uiInfo)!=null&&Xe.onSettingsMenu&&M&&ie)if(Se&&!g){let Ht=Zl(M),qt=Us(M,ie);s.uiInfo.onSettingsMenu({visible:!0,size:Ht,position:qt,name:"settings"})}else{let Ht=Zl(c),qt={top:0,left:0,bottom:0,right:0},js=ye(Wt.ui.settingsSubMenu.name$);s.uiInfo.onSettingsMenu({visible:!1,size:Ht,position:qt,name:js})}G.log("close settings sub menu")},Ui=(c,g)=>{var ie;Wt.ui.settingsSubMenu.visible$.set(!0),Wt.ui.settingsSubMenu.ref$.set(g),Wt.ui.settingsSubMenu.name$.set(c);let M=xa();if((ie=s==null?void 0:s.uiInfo)!=null&&ie.onSettingsMenu&&g&&M){let Xe=Zl(g),At=Us(g,M);s.uiInfo.onSettingsMenu({visible:!0,name:c,size:Xe,position:At})}G.log("open settings sub menu",{name:c})},Wr=()=>{var g;let c=Math.max(pe.volumeMinRestore,(g=Bu())!=null?g:0);return c===0?pe.volumeDefault:c},Ho=c=>{let g=pe.features.savePreferredStatesOnUserActionOnly;return!g||g&&!c},Tr=(c,g)=>{let M=c===0?Wr():c,ie=D.info.muted$.getValue();ce({message:`set volume, volume: ${c}, preferredVolume: ${M}`});let Se=!l||Ue.is("ads");ie&&c>0&&Se&&(ie=!1,Ho(g)&&Zf(!1)),D.setVolume(c,ie),K.setVolume(c),Ho(g)&&Gf(M)},bn=(c,g)=>{let M=D.info.volume$.getValue();ce({message:`set muted, currentVolume: ${M}, mute: ${c}`});let ie=Ue.is("ads");if(D.setMuted(c,ie),K.setVolume(c?0:M),Ho(g)&&(!ie||!c)&&Zf(c),!c&&M===0){let Se=Wr();D.setVolume(Se),Ho(g)&&Gf(Se),K.setVolume(Se)}},Kr=de(!1),ze=c=>{var g,M;G.log("set looped",{isLooped:c}),Kr.set(c),D.setLooped(c),(M=(g=s==null?void 0:s.uiInfo)==null?void 0:g.onLoopedChanged)==null||M.call(g,c)};ze(re);let yt=()=>{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;ce({message:`set autoplayNextEnabled, value: ${c}`}),G.log("set autoplay next enabled",{autoplayNextEnabled:c}),Wt.ui.autoplayNextEnabled$.set(c),O_(c),g&&((M=s==null?void 0:s.onSetAutoplayNextEnabled)==null||M.call(s,c))},go=c=>{ce({message:`set timerNextVideoRunning, value: ${c}`}),G.log("set timer next video running",{timerNextVideoRunning:c}),Wt.ui.timerNextVideoRunning$.set(c)},Ei=(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){ce({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){ce({message:"onNextVideoClick callback failed to execute"})}Z(!1),g&&ae()},lo=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementShow)==null||c.call(s)},Uo=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementClick)==null||c.call(s)},sn=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementAuto)==null||c.call(s)},lr=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementCancel)==null||c.call(s)},So=()=>{D.prepare()},an=()=>{(0,at.assertNonNullable)(Wt);let c=ye(Wt.ui.controls.disabledControls$),g=ye(Wt.playerPhase),M={playerPhase:g,isInteractive:x,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(ce({message:"toggle play"}),g==="ads"){M.action="play",G.log("toggle adman play",M),K.togglePlay();return}let ie=()=>{var Xe;ce({message:"toggle play, call player.play"}),M.action="play",D.play(),(Xe=s==null?void 0:s.onPlay)==null||Xe.call(s)},Se=()=>{var Xe;ce({message:"toggle play, call player.pause"}),M.action="pause",D.pause(),(Xe=s==null?void 0:s.onPause)==null||Xe.call(s)};if(D.info.isEnded$.getValue()){if(ce({message:"toggle play, video ended, seek to 0"}),Hi.next(),bi.next(bs.SeekAction.REWIND),x){R==null||R();return}D.seekTime(0),ie()}else D.info.playbackState$.getValue()!==fi.PlaybackState.PLAYING?ie():Se();G.log("toggle play",M)},zn=(c,{changeReason:g="default",appliesTo:M="to-video",byUser:ie=!1}={},Se)=>{ce({message:`set quality, quality: ${c}`}),G.log("set quality",{quality:c}),ie&&hi.next(c),D.setAutoQuality(c==="auto");let{qualityDetailsSubMenuEnabled:Xe}=pe.features;Hu(),c!=="auto"?(Xe?(Fu({type:"exact_quality",quality:c,videoId:i},M),D.setPredefinedQualityLimits(fi.PredefinedQualityLimits.UNKNOWN)):Yf(i,c),nr.set(c),D.setQuality(c)):Xe&&g==="default"&&(ls("auto_quality",M,Se),ye(yo)&&Co(!1,void 0,Se),ye(xo)&&$n(!1,void 0,Se))},Co=(c,g="as-default",M)=>{ce({message:`set trafficSavingEnabled, value: ${c}`}),G.log("set traffic saving enabled",{trafficSavingEnabled:c});let ie=c?fi.PredefinedQualityLimits.TRAFFIC_SAVING:fi.PredefinedQualityLimits.UNKNOWN;pe.features.qualityDetailsSubMenuEnabled?(Wn(ie,g,M),Yd(!1)):(D.setPredefinedQualityLimits(ie),Ho(M)&&Yd(c))},$n=(c,g="as-default",M)=>{ce({message:`set highQualityEnabled, value: ${c}`}),G.log("set high quality enabled",{highQualityEnabled:c}),Wn(c?fi.PredefinedQualityLimits.HIGH_QUALITY:fi.PredefinedQualityLimits.UNKNOWN,g,M)},Wn=(c,g,M)=>{c!==fi.PredefinedQualityLimits.UNKNOWN&&(ye(Jo)&&!ye(Do)&&zn("auto",{appliesTo:g,changeReason:"limit-changed"},M),ls(c,g,M)),D.setPredefinedQualityLimits(c)},ls=(c,g,M)=>{Ho(M)&&(Fu({type:c,videoId:i},g),g==="as-default"&&Fu({type:c,videoId:i},"to-video"))},dr=(c,g=!0)=>{G.log("set playback rate",{playbackRate:c}),D.setPlaybackRate(c),pe.features.saveRate&&we&&!D.info.isLive$.getValue()&&g&&N_(c)},je=()=>{let c=ye(bo),g=ye(hn),M=g.findIndex(({selected:Se})=>Se);if(M===g.length-1||!c)return g[M];let ie=g[M+1];return dr(ie.value),ie},jt=()=>{let c=ye(bo),g=ye(hn),M=g.findIndex(({selected:Se})=>Se);if(M===0||!c)return g[M];let ie=g[M-1];return dr(ie.value),ie},$i=(c={...Bn(),selected:!1},g)=>{G.log("set subtitles",{...c}),c.value!==Rn&&Zt.next(c.isAuto?c.value+"_auto":c.value),dt.next({enabled:c.value!==Rn,lang:c.language,auto:!!c.isAuto}),Ai.set(c),Ho(g)&&(im(c.value===Rn?void 0:c.language),pe.features.userVideoPrefs&&i&&om(pe.userSalt,String(i),{subtitleTrackId:c.value===Rn?void 0:c.value}))},zo=c=>{G.log("toggle subtitles");let g=ye(Li);(g==null?void 0:g.value)===Rn?Ir(c):ln(c)},yn=(c,g)=>{G.log("change subtitle",{enabled:c}),c?Ir(!0,g):ln(!0)},Ir=(c,g)=>{G.log("subtitle on");let M=ye(Cr),ie=ye(Le),Se=He!=null?He:ie,Xe;g&&(Xe=M.find(At=>At.value===g)),Xe!=null||(Xe=M.filter(At=>At.value!==Rn).find(At=>At.language===Se)),$i(Xe!=null?Xe:M[1],c)},ln=c=>{G.log("subtitle off"),$i(void 0,c)};Te.add(D.info.availableTextTracks$.subscribe(c=>{var M;function g(){let ie=[];for(let{language:Se,isAuto:Xe,id:At}of c){let Ht=Se&&hc(Se);Se&&Ht&&ie.push({id:At,language:Se,title:Xe?fe("subtitles_auto",{language:Ht}):Ht})}return ie}(M=s==null?void 0:s.onAvailableSubtitlesChanged)==null||M.call(s,g())}));let dn=de(!0),Cs=c=>{dn.set(c)},Er=(c,g,M=!0)=>{var ie;if(ce({message:`seek to time, time: ${c}`}),G.log("seek to time",{time:c,action:g,forcePrecise:M}),bi.next(g),D.info.isLive$.getValue()){let Se=D.info.duration$.getValue(),Xe=Math.min(0,Se+c);D.seekTime(Xe,M)}else{if(T!=null&&T.getValue())return;D.info.isEnded$.getValue()&&(ce({message:"seek after ended, call callbacks.onPlay"}),(ie=s==null?void 0:s.onPlay)==null||ie.call(s)),D.seekTime(Po(c),M)}},Ts=c=>{ce({message:`seek to episode start time: ${c}`}),G.log("seek to episode start time",{time:c}),Er(c,bs.SeekAction.EPISODE,!0)},Qs=(c,g,M=!1)=>{ce({message:`seek to percent, percent: ${c}`}),G.log("seek to percent",{percent:c,action:g});let ie=ye(en)*c;Er(ie,g,M)},Is=c=>{ce({message:`seek external, time: ${c}`}),G.log("seek external",{time:c}),bi.next(bs.SeekAction.UNKNOWN),D.seekTime(D.info.isLive$.getValue()?-c:c)},mt=c=>{var ie,Se;let g=(ie=c.max)!=null?ie:"none",M=(Se=c.min)!=null?Se:"none";ce({message:`set auto quality limitation. Max: ${g}. Min: ${M}`}),G.log("set auto quality limits",{max:g,min:M}),D.setAutoQualityLimits(c)},di=c=>{ce({message:`seek external to episode start time: ${c}`}),G.log("seek external to episode start time",{time:c}),Er(c,bs.SeekAction.EPISODE,!0)},To=c=>{ce({message:`set playback rate to: ${c}`}),G.log("set playback rate external",{playbackRate:c}),D.setPlaybackRate(c)},co=de(!1),xn=de(!1),Mi=ui([en],([c])=>!!p&&c>=pe.suitableDurationForUsingRichSeek&&pe.features.useRichSeek&&!x),ds=((p==null?void 0:p.frameWidth)||0)>=((p==null?void 0:p.frameHeight)||0),Es=ui([kt],([c])=>{let g=Jl(c);return ds?!g:g});Te.add(Ue.subscribe(c=>{c!=="video"&&co.set(!1)})),co.subscribe(c=>{var g;(g=s==null?void 0:s.onRichSeekActiveChanged)==null||g.call(s,c)});let zi=de(void 0),Ci=de(!1),Kn=c=>{ce({message:`start scrubbing, progress: ${c}`}),G.log("start scrubbing",{progress:c}),Ci.set(!0),Pr(c)},Pr=c=>{zi.set(c)},he,it,mi=()=>{zi.set(void 0),Ci.set(!1)},Pi=()=>{clearTimeout(it),clearTimeout(he),he=window.setTimeout(()=>{mi()},500),Ae==null||Ae.removeEventListener("seeked",Pi)},wn=(c,g=!1)=>{ce({message:`complete scrubbing, progress: ${c}`}),G.log("complete scrubbing",{progress:c}),Qs(c,bs.SeekAction.SLIDER,g),ye(Wt.ui.isMobile)&&ye(Wt.state.currentFormat$)===fi.VideoFormat.HLS?(Ae==null||Ae.addEventListener("seeked",Pi),it=window.setTimeout(()=>{Pi()},300)):mi()},Io=ui([We,en,zi],([c,g,M],ie)=>{ie((0,at.isNonNullable)(M)?M*g:c)}),Vi=de(!1),qn=()=>{Vi.set(!0)},Ps=()=>{Vi.set(!1)},qr=ui([Gt],([{width:c}],g)=>{let M=_b(c);g(M)}),ha=z.filter(c=>y_(c)),cs=ui([qr,Et],([c,g])=>g?ha.filter(M=>!M.hideOnMobile):ha.filter(M=>{var ie;return!((ie=M.hideOnDesktopGridTypes)!=null&&ie.includes(c))})),Sn=de(z.filter(c=>x_(c))),_a=ui([Sn,qr],([c,g])=>c.filter(M=>{var ie;return!((ie=M.hideOnDesktopGridTypes)!=null&&ie.includes(g))})),ba=ui([_a,cs],([c,g])=>[...pe.features.additionalButtonsDesktopControlPanelRight?c.filter(M=>M.type==="desktop-control-panel-right"):[],...pe.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))),Qr=de(F),ml=ui([Qr],([c])=>pe.features.additionalSettingsMenuItems?c.map(g=>g.type==="SWITCH"?{...g,onClick:g.onChangeEnabled}:g):[]),md=(c,g)=>{let M=ye(Sn).map(ie=>ie.id!==c?ie:{...ie,...g});Sn.set(M)},$a=c=>{let g=ye(Sn);if(g.some(M=>M.id===c.id)){ce({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}g.push(c),Sn.set(g)},vd=c=>{let g=ye(Sn);if(!g.some(M=>M.id===c)){ce({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}g=g.filter(M=>M.id!==c),Sn.set(g)},vl=c=>{bi.next(bs.SeekAction.LIVE),ce({message:"live switch to low latency "+c}),G.log("live switch to low latency "+c),D.setLiveLowLatency(c)},gl=(c,g)=>{let M=ye(Qr).map(ie=>ie.id!==c?ie:{...ie,...g});Qr.set(M)},ya=c=>{let g=ye(Qr);if(g.some(M=>M.id===c.id)){ce({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}g.push(c),Qr.set(g)},vt=c=>{let g=ye(Qr);if(!g.some(M=>M.id===c)){ce({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),Qr.set(g)},rt=de(U),Zi=ui([rt],([c])=>pe.features.additionalContextMenuItems?c:[]),Eo=(c,g)=>{let M=ye(rt).map(ie=>ie.id!==c?ie:{...ie,...g});rt.set(M)},Ji=c=>{let g=ye(rt);if(g.some(M=>M.id===c.id)){ce({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}g.push(c),rt.set(g)},vi=c=>{let g=ye(rt);if(!g.some(M=>M.id===c)){ce({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),rt.set(g)},Wi=ui([Et,le],([c,g],M)=>{M(c&&g)}),Gs=()=>{bi.next(bs.SeekAction.LIVE),ce({message:"switch to active live"}),G.log("switch to active live"),D.seekTime(0),D.info.playbackState$.getValue()!==fi.PlaybackState.PLAYING&&Wt.actions.internal.togglePlay()},gd=()=>{G.log("skip adman"),K.skip()},Yc=(c=!0)=>{var ie;(0,at.assertNonNullable)(Wt),ce({message:`switch from ads to video, callPlay: ${c}`}),G.log("switch from ads to video",{callPlay:c}),Fe.set("video"),c&&D.play(),l&&bn(!0,!0);let g=(ie=ye(Tt))==null?void 0:ie.muted,M=!D.info.muted$.getValue();g!==void 0&&!M&&bn(g,!0),Tt.set(void 0)},Hp=()=>{(0,at.assertNonNullable)(Wt),ce({message:"switch from video to ads"}),G.log("switch from video to ads"),Wt.actions.internal.pause(),Ro(),Fe.set("ads")},jc=c=>{(0,at.assertNonNullable)(Wt);let g=c?"LiveWaitingStart":"thumb";G.log("set live waiting start",{state:c,playerPhase:g}),Fe.set(g)},Fp=c=>{(0,at.assertNonNullable)(Wt);let g=c?"LiveWaitingRecover":"thumb";G.log("set live waiting recover",{state:c,playerPhase:g}),Fe.set(g)},Xc=c=>{(0,at.assertNonNullable)(Wt);let g=c?"LiveWaitingRecord":"thumb";G.log("set live waiting record",{state:c,playerPhase:g}),Fe.set(g)},Up=()=>((0,at.assertNonNullable)(Wt),G.log("get debug text data"),__(D,Re,Wt,Qe.getTraceId(),Ce)),Zc=()=>((0,at.assertNonNullable)(Wt),JSON.stringify(Qe.getFinishedSpans())),zp=()=>((0,at.assertNonNullable)(Wt),b_(D,Re,Wt)),xa=()=>Ae,Wp=()=>{ce({message:"toggle chromecast"}),G.log("toggle chromecast"),D.toggleChromecast()},Ys=c=>{var M;if((0,at.assertNonNullable)(Wt),D.info.isEnded$.getValue())return;let g=!c;if(ye(Wt.playerPhase)==="ads"){ce({message:`pause ads, internalCall: ${g}`}),G.log("pause ads",{internalCall:g}),K.pause();return}ce({message:`pause video, internalCall: ${g}`}),G.log("pause video",{internalCall:g}),g&&((M=s==null?void 0:s.onPause)==null||M.call(s)),D.pause()},wa=c=>{var M;(0,at.assertNonNullable)(Wt);let g=!c;if(ye(Wt.playerPhase)==="ads"){ce({message:`play ads, internalCall: ${g}`}),G.log("play ads",{internalCall:g}),K.play();return}ce({message:`play video, internalCall: ${g}`}),G.log("play video",{internalCall:g}),g&&((M=s==null?void 0:s.onPlay)==null||M.call(s)),D.play()},Jc=c=>{(0,at.assertNonNullable)(Wt);let g=!c;if(ye(Wt.playerPhase)==="ads"){ce({message:"player cannot be stopped during ads via external method"});return}ce({message:`player will be stopped, internalCall: ${g}`}),A==null||A()},eu=(c,g)=>{(0,at.assertNonNullable)(Wt),ce({message:`first start, show ads: ${c}, internalCall: ${!g}`}),G.log("first start",{showAds:c,external:g}),c?Fe.set("ads"):(Fe.set("video"),g?D.play():Wt.actions.internal.togglePlay())},hl=()=>(ce({message:"getting time codes"}),m),tu=()=>{let c=hl();if(!c||[0,1].includes(c.length))return;let g=D.info.position$.getValue();return c.find(M=>M.time>g)},iu=c=>{let g=c;g||(g=tu());let M=D.info.position$.getValue();G.log("seek to next episode",{currentTime:M,...g}),g&&(ce({message:"seek to next episode"}),Er(g.time,bs.SeekAction.EPISODE,!0))},ou=()=>{let c=hl();if(!c||[0,1].includes(c.length))return;let g=D.info.position$.getValue(),M=c.findIndex(Se=>Se.time>g),ie=M===-1?c.length-2:M-2;if(!(ie<0))return c[ie]},nu=c=>{let g=c;g||(g=ou());let M=D.info.position$.getValue();G.log("seek to prev episode",{currentTime:M,...g}),g&&(ce({message:"seek to prev episode"}),Er(g.time,bs.SeekAction.EPISODE,!0))},Kp=()=>(ce({message:"getting preview thumbs data"}),G.log("get preview thumbs data",{...p}),p),qp=async()=>{let c=xe==null?void 0:xe.isActive(),g="none";xe!=null&&xe.isActive()?(g="exit",await(xe==null?void 0:xe.exit())):(g="request",await(xe==null?void 0:xe.request())),G.log("toggle picture in picture",{isActive:c,action:g})},Qp=(c=-90)=>{G.log("rotate video",{alphaDiff:c}),kt.update(g=>g+c)},Oe=de([]);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:pe.features.interactiveTimeOpenUri?!Xe.length||Xe.every(At=>At.isRemoved):!Xe.length}),Se!==1/0&&g.push({time:Se/1e3,text:"",interactive:!1,completed:!0})}Oe.set(g)});let gi=de(!1);T==null||T.subscribe(c=>{c&&ye(Ci)&&mi()});let Po=c=>{if(!x)return c;let g=ye(Oe),M=ye(en),Se=ye(Nn)/M,Xe=g.find(At=>At.interactive&&!At.completed&&At.time>Se);return typeof(Xe==null?void 0:Xe.time)=="number"?Math.min(c,Xe.time-.05):c},kr=()=>{Wt.ui.episodes.panelOpened$.set(!1)},Cn=()=>{G.log("destroy store"),clearTimeout(it),clearTimeout(he),Te.unsubscribe(),_t.unsubscribe(),D.destroy(),K.destroy(),J==null||J.destroy(),se==null||se.destroy(),Pe.unsubscribe(),xi==null||xi.disconnect(),xi=null,Ee.destroy()},x$=ui([xr,Ue,bo],([c,g,M])=>v.features.doubleForwardAvailable&&!c&&g==="video"&&M),Gp=de(!1),hg=2,ru=null,_g=c=>{if(!ye(yr)&&c)return;let g=D.info.currentPlaybackRate$.getValue();c?g!==hg&&(ru=g,dr(hg,!1),Gp.set(!0)):(ru&&dr(ru,!1),Gp.set(!1),ru=null)};Ue.subscribe(c=>{c!=="video"&&_g(!1)});let w$=()=>{Ys(!1),co.set(!0)},S$=()=>{wa(!1),co.set(!1)},Yp=!1,C$=()=>{xn.set(!0),Yp=D.info.playbackState$.getValue()===fi.PlaybackState.PLAYING,Ys(!1)},T$=()=>{xn.set(!1),!ye(co)&&Yp&&wa(!1),Yp=!1};D.events.playing$.subscribe(()=>{ye(co)&&Ys(!1)});let Wt={interfaceLanguage$:Le,isCyrillicRelatedInterface$:Ct,initVideo:ci,videoId:i,isClip:o,playerPhase:Ue,vsid:St,state:{positionExact$:We,positionWithScrubbing$:Io,duration$:en,playbackState$:Fi,playbackStateRealistic$:Zo,isPlaying$:yr,isLoaderVisible:Rt,bufferedProgress$:Bo,isLive$:Ti,canChangePlaybackSpeed$:bo,isActiveLive$:xr,isOldestAvailableLive$:wr,isRewindableLive$:Hr,isEnded$:ro,muted$:Ii,volume$:$o,trafficSavingEnabled$:yo,highQualityEnabled$:xo,autoQualityLimitingAvailable$:Jo,availableVideoStreams$:Fr,availableAudioStreams$:wi,videoStream$:as,audioStream$:tn,currentQuality$:On,isAutoQualityEnabled$:Do,availableQualities$:sr,currentPlaybackRate$:on,availablePlaybackRates$:hn,currentSubtitle$:Li,availableTextTracks$:Oo,availableSubtitlesList$:Cr,currentSubtitleCaptions$:ao,isAutoSubtitleCaptionVisible$:nn,chromecastState$:ss,chromecastDeviceName$:ys,chromecastConnected$:xs,currentFormat$:_r,throughputEstimation$:tr,videoBitrate$:Br,videoSize$:vn,errorLog$:j,crashed$:le,isAudioAvailable$:br,isAudioDisabled:!!l,canDownload:pe.features.download&&!!d,availableSources$:wo,hasMpegSources$:Xi,isInteractive:x,showInteractiveGraph:pe.features.interactiveGraph,showSeekToInteractive:pe.features.seekToInteractive,showPlayPrevChapter:pe.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:pe.features.interactiveTimeIndicator&&!!ye(Oe).length,interactiveEpisodes$:Oe,isInteractiveTime$:T?ii(T):de(!1),isInteractiveExpectation$:gi,hasInteractiveBranches:P,playPrevChapterDisabledTooltip:E,looped$:Kr,loadedMetadata$:Dt,isAutoQualityAvailable$:rr,previewTrackActive:co,previewTrackDragInProgress:xn},ui:{t:fe,controlsVisible:de(!1),touched:de(!1),controls:{prevButton:de(void 0),playButton:de(void 0),replayButton:de(void 0),nextButton:de(void 0),playPrevChapterButton:de(void 0),seekToInteractiveButton:de(void 0),interactiveGraphButton:de(void 0),liveButton:de(void 0),time:de(void 0),episodes:de(void 0),volume:de(void 0),subtitles:de(void 0),settings:de(void 0),context:de(void 0),chromecast:de(void 0),pip:de(void 0),fullscreen:de(void 0),vkLogo:de(void 0),interactiveTimeIndicator:de(void 0),timeline:de(void 0),autoplayNextToggle:de(void 0),additionalButtons:z.length?z.reduce(c=>[...c,de(void 0)],[]):[],disabledControls$:xt},modals:{hotKeyMap:{show:de(!1),data:de({title:"",closeBtnText:"",groups:[]})}},isFullscreen:Ot,isFullscreenOpenedByKeyboard:lt,rotateAlpha:kt,isAutoplay:de(!1),debugPanelVisible:de(!1),episodes:{panelOpened$:de(!1),openedByKeyboard$:de(!1)},contextMenu:{visible$:de(!1),btnRef$:de(void 0),openedByBtnKeyboard$:de(!1),openedByHotKey$:de(!1),lastActiveElem$:de(void 0),showContextMenuBtn$:de(!1),position$:de({top:0,left:0})},playerSize:Gt,isMobile:Et,mobileNotReportControlHidden$:Wi,icon3DVideoVisible:de(!1),scrubbingInProgress:Ci,volumeChangingInProgress:Vi,is3DVideo:zt,currentGridType$:qr,additionalButtonsDeprecated$:cs,additionalDesktopControlPanelRightButtons$:ba,additionalSettingsMenuItems$:ml,additionalContextMenuItems$:Zi,interactiveHideMobileControls:de(!1),overlayContainer$:de(void 0),startedByKeyboard$:de(!1),autoplayNextEnabled$:de(!1),timerNextVideoRunning$:de(!0),settingsMenu:{visible$:de(!1),ref$:de(void 0),openedByBtnKeyboard$:de(!1)},settingsSubMenu:{visible$:de(!1),ref$:de(void 0),name$:de(void 0)},userActionsDisabled:de(!1),hiddenControls:{volume:de(!1),vkLogo:de(!1),pip:de(!1),chromecast:de(!1),settings:de(!1)},isControlsAvailable:dn,controlBlocks:{topLeft:de(void 0),topRight:de(void 0),middle:de(void 0),bottom:de(void 0),bottomLeft:de(void 0),bottomRight:de(void 0)},videoTitleInfo:de(void 0),doubleForwardOn$:Gp,doubleForwardAvailable$:x$,previewTrackNotificationVisible:de(!1),previewTrackActive:co,previewTrackDragInProgress:xn,previewTrackAvailable:Mi,isPreviewTrackHorizontallyAligned:Es},ads:{position:de(0),duration:de(0),playbackState:de("inactive"),canSkip:de(!1),secondsToWatchBeforeSkip:de(0),postrollPassed:de(!1)},webApi:{pictureInPictureApi:xe,annotationsApi:Be,slotsApi:ot,focusManager:ne},actions:{internal:{preload:So,firstStart:c=>eu(c,!1),play:()=>wa(!1),pause:()=>Ys(!1),togglePlay:an,toggleMuted:rn,openSettingsMenu:zr,closeSettingsMenu:ws,openSettingsSubMenu:Ui,closeSettingsSubMenu:Ss,setVolume:c=>Tr(c,!1),setMuted:c=>bn(c,!1),startVolumeChanging:qn,stopVolumeChanging:Ps,setVideoStream:ft,setAudioStream:c=>Jt(c,!1),setQuality:(c,g)=>zn(c,g,!1),setTrafficSavingEnabled:(c,g)=>Co(c,g,!1),setHighQualityEnabled:(c,g)=>$n(c,g,!1),setPlaybackRate:dr,incrementPlaybackRate:je,decrementPlaybackRate:jt,setSubtitle:c=>$i(c,!1),toggleSubtitle:()=>zo(!1),togglePictureInPicture:qp,startScrubbing:Kn,progressScrubbing:Pr,completeScrubbing:wn,toggleChromecast:Wp,switchToActiveLive:Gs,switchFromAdsToVideo:Yc,switchFromVideoToAds:Hp,skipAd:gd,setLiveWaitingStart:jc,setLiveWaitingRecover:Fp,setLiveWaitingRecord:Xc,getDebugTextData:Up,getTraceTextData:Zc,getDebugPanelData:zp,getVideoElement:xa,seekTime:(c,g,M)=>Er(c,g,M),clearDelayedBufferingCheckTimeout:$r,seekEpisodeStartTime:Ts,seekToPercent:Qs,getNextEpisode:tu,seekToNextEpisode:iu,getPrevEpisode:ou,seekToPrevEpisode:nu,startLogging:Bt,stopLogging:W,startCameraManualRotation:Lt,stopCameraManualRotation:ni,moveCameraFocusPX:gt,holdCamera:ei,releaseCamera:Kt,getVideoEpisodes:hl,getPreviewThumbsData:Kp,downloadVideo:_n,addLanguage:nm,setLanguage:$e,nextMovie:Yt,videoRotate:Qp,correctSeekTimeToInteractive:Po,replayInteractive:R,setLooped:ze,reportProblem:yt,setAutoplayNextEnabled:li,setTimerNextVideoRunning:go,prevVideoClick:Ei,nextVideoClick:Fo,nextVideoAnnouncementShow:lo,nextVideoAnnouncementClick:Uo,nextVideoAnnouncementAuto:sn,nextVideoAnnouncementCancel:lr,checkFullscreenSupport:Pt,changeDoubleForwardOn:_g,closePreviewTrack:S$,previewTrackOpened:w$,previewTrackDragStarted:C$,previewTrackDragFinished:T$},external:{firstStart:c=>eu(c,!0),play:()=>wa(!0),pause:()=>Ys(!0),stop:()=>Jc(!0),seekTime:c=>Is(c),seekEpisodeStartTime:c=>di(c),setPlaybackRate:c=>To(c),setAutoQualityLimits:c=>mt(c),setMuted:c=>bn(c,!0),toggleSubtitle:()=>zo(!0),changeSubtitle:yn,setVolume:c=>Tr(c,!0),returnFocusToEpisodes:kr,updateAdditionalSettingsItem:gl,addAdditionalSettingsItem:ya,removeAdditionalSettingsItem:vt,updateAdditionalContextItem:Eo,addAdditionalContextItem:Ji,removeAdditionalContextItem:vi,updateAdditionalButton:md,addAdditionalButton:$a,removeAdditionalButton:vd,setLiveLowLatency:vl,hideControls:()=>Cs(!1),showControls:()=>Cs(!0),setQuality:c=>zn(c,{appliesTo:"to-video"},!0),setTrafficSavingEnabled:c=>Co(c,"to-video",!0),setHighQualityEnabled:c=>$n(c,"to-video",!0),changeAudioStream:ir}},callbacks:s,setUiCallbacks:c=>{et={...c}},getAdmanWrapper:()=>K,getLogger:()=>Ge,getPlayer:()=>D,destroy:Cn};return Wt};function Zn(t,e,i,o){var m;let r=(m=e[i])==null?void 0:m.getBoundingClientRect(),a=o&&!!r&&!!(r.right-r.left),{top:l,left:d,bottom:s,right:u}=Us(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 Ym(t){Je(t,{children:(e,i)=>{var o=Yx();b(e,o)},$$slots:{default:!0}})}function jm(t,e){B(e,!0);let[i,o]=Ne(),r=()=>w(s,"$contextMenuVisible$",i),a=h(e,"disabled",3,!1),l=h(e,"ariaLabel",3,""),d=be(),s=d.ui.contextMenu.visible$,u=d.ui.contextMenu.openedByBtnKeyboard$,m=d.ui.contextMenu.showContextMenuBtn$,p=d.ui.contextMenu.position$,v=d.ui.contextMenu.btnRef$,_=q(void 0);De(()=>{n(_)&&It(()=>{v.set(n(_))})});let y=T=>{let R=ca(T),A=db(n(_));p.set(A),u.set(R),s.set(!r())},$=()=>{m.set(!0)},x=()=>{m.set(!1)},I=f(()=>r()?"opened":"");Ut(t,{get className(){return n(I)},testId:"btn-context-menu",get disabled(){return a()},get ariaLabel(){return l()},click:y,focus:$,blur:x,get ariaExpanded(){return r()},get ref(){return n(_)},set ref(T){N(_,T,!0)},children:(T,R)=>{Ym(T,{})},$$slots:{default:!0}}),H(),o()}var jx=t=>{t.stopPropagation()},Xx=L("<div><!> <div></div> <div></div></div>"),Zx={hash:"s-24",code:'.interactive-episode-icon-animated.s-24{height:32px;opacity:1;position:absolute;right:16px;top:16px;transition:.3s;width:32px}.interactive-episode-icon-animated.icon-small.s-24{height:28px;width:28px}.invisible.s-24{opacity:0;visibility:hidden}.fullscreen.s-24:not(.mobile){height:40px;right:23px;top:19px;width:40px}.mobile.s-24{height:28px;right:14px;top:12px;width:28px}.fullscreen.mobile.s-24{height:32px;width:32px}@media screen and (orientation:portrait){.interactive-episode-icon-animated.mobile.fullscreen.s-24{right:16px;top:40px}}@keyframes s-24-pulse{0%{border-width:1px;opacity:0;transform:scale(1)}10%{opacity:1}50%{border-width:1px;opacity:.5;transform:scale(1.5)}to{border-width:.5px;opacity:0;transform:scale(1.5)}}.pulse.s-24{animation:s-24-pulse 1s infinite;border:1px solid #fff;border-radius:100%;bottom:0;content:"";display:block;left:0;pointer-events:none;position:absolute;right:0;top:0;transform:scale(1.8);transition:.3s}.pulse.paused.s-24{animation-play-state:paused}.interactive-episode-icon-animated svg{height:100%;width:100%}.ref-block.s-24{height:100%;position:absolute;top:0;visibility:hidden;width:100%}.hidden.s-24{display:none}'};function bc(t,e){var K;B(e,!0),Q(t,Zx);let[i,o]=Ne(),r=()=>w(x,"$isMobile",i),a=()=>w(A,"$areControlsVisible",i),l=()=>w(E,"$currentGridType$",i),d=()=>w(T,"$isInteractiveTime$",i),s=()=>w($,"$interactiveControlsOpacity$",i),u=()=>w(R,"$showInteractiveTimeIndicatorTooltip$",i),m=()=>w(I,"$isFullscreen",i),p=h(e,"ref",15,void 0),v=q(void 0),_=be(),y=_o(),{interactiveControlsOpacity$:$}=y,x=_.ui.isMobile,I=_.ui.isFullscreen,T=_.state.isInteractiveTime$,R=y.showInteractiveTimeIndicatorTooltip$,A=_.ui.controlsVisible,P=(K=_.callbacks)==null?void 0:K.onInteractiveTimeIndicatorClick,E=_.ui.currentGridType$,z=f(()=>!r()&&a()),F=f(()=>Fs(l(),"s")),U=f(()=>!d()||!!s()||n(z)),X=q(!1);De(()=>{N(X,n(U),!0)});let ae=()=>{N(X,!0)},Z=()=>{var se;re(),(se=n(v))==null||se.addEventListener("animationiteration",ae,{once:!0})},re=()=>{var se;N(X,!1),(se=n(v))==null||se.removeEventListener("animationiteration",ae)},J=se=>{R.set(se)},we=f(()=>u()&&!n(U));De(()=>{u()?Z():re()});let me=()=>{n(U)||(R.set(!0),P==null||P())};pn(()=>{R.clearTimeout(),re()});let ee=()=>{R.set(!1)},_e=Y("tooltip_interactive_interaction_time_indicator");var Ce=Xx();let ge;Ce.__mousemove=[jx],Ce.__click=me;var pe=C(Ce);Mo(pe,{get tooltipContent(){return _e},get tooltipVisible(){return n(we)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:J,get ref(){return p()},set ref(se){p(se)},children:(se,xe)=>{cc(se,{completed:!0})},$$slots:{default:!0}});var Qe=k(pe,2);let G;Ze(Qe,se=>p(se),()=>p());var D=k(Qe,2);let Ge;Ze(D,se=>N(v,se),()=>n(v)),S(Ce),O((se,xe,Be)=>{ge=oe(Ce,1,"interactive-episode-icon-animated s-24",null,ge,se),G=oe(Qe,1,"ref-block s-24",null,G,xe),Ge=oe(D,1,"pulse s-24",null,Ge,Be)},[()=>({mobile:r(),fullscreen:m(),invisible:n(U),"icon-small":n(F)}),()=>({hidden:n(U)}),()=>({paused:n(X)})]),pt("mouseleave",Ce,ee),b(t,Ce),H(),o()}Ye(["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);Mo(t,{get disabled(){return o()},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},get hasTooltip(){return i()},get mouseEnter(){return e.mouseEnter},get mouseLeave(){return e.mouseLeave},get tooltipVisible(){return l()},get className(){return r()},get ref(){return a()},set ref(d){a(d)},children:(d,s)=>{var u=Me();let m=f(()=>e.buttonComponent);var p=ue(u);Di(p,()=>n(m),(v,_)=>{_(v,ts(()=>{var y;return(y=e.buttonComponentProps)!=null?y:{}}))}),b(d,u)},$$slots:{default:!0}}),H()}var zs={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var 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 va(t,e){B(e,!0);let i=h(e,"reversed",3,!1),o=f(()=>i()?"transform: scaleX(-1);transform-origin: 50%;":void 0),r=f(()=>`${fn(e.size)}${n(o)}`),a=f(()=>i()?"prev-icon":"next-icon");Je(t,{get width(){return"48"},get height(){return"48"},get style(){return n(r)},get testId(){return n(a)},get shadow(){return e.shadow},children:(l,d)=>{var s=e2();b(l,s)},$$slots:{default:!0}}),H()}var t2=L('<div class="icon-background-mobile s-22"><!></div>'),i2={hash:"s-22",code:".icon-background-mobile.s-22{align-items:center;background-color:var(--big-play-bg-color);border-radius:var(--big-play-radius);display:flex;height:100%;justify-content:space-around;left:0;position:absolute;top:0;width:100%}"};function el(t,e){B(e,!0),Q(t,i2);let i=h(e,"ref",15,void 0),o=h(e,"isMobile",3,!1),r=h(e,"disabled",3,!1),l=be().ui.t,d=f(()=>e.type==="prev"?l("tooltip_previous"):l("tooltip_next")),s=f(()=>e.type==="prev"?l("hotkey_map_item_prev_video_value"):l("hotkey_map_item_next_video_value")),u=f(()=>`btn-${o()?"m":"d"}--${e.type}`);Ut(t,{get className(){return n(u)},get testId(){var m;return`btn-${(m=e.type)!=null?m:""}`},get disabled(){return r()},get ariaLabel(){return n(d)},get click(){return e.click},get ariaKeyShortCut(){return n(s)},get ref(){return i()},set ref(m){i(m)},children:(m,p)=>{var v=Me(),_=ue(v);{var y=x=>{var I=t2(),T=C(I);let R=f(()=>e.type==="prev");va(T,{get size(){return"32"},get reversed(){return n(R)}}),S(I),b(x,I)},$=x=>{let I=f(()=>e.type==="prev");va(x,{get size(){return"24"},get reversed(){return n(I)}})};V(_,x=>{o()?x(y):x($,!1)})}b(m,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=f(()=>fn(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();b(o,a)},$$slots:{default:!0}}),H()}var Ab=require("@vkontakte/videoplayer-shared/es2018");var n2=L('<div class="icon-background-mobile s-23"></div>'),r2=L("<!> <div><!></div>",1),s2={hash:"s-23",code:".mobile.s-23{align-items:center;display:flex;justify-content:center;position:relative}.icon-background-mobile.s-23{background-color:var(--big-play-bg-color);border-radius:var(--big-play-radius);height:calc(100% - 32px);left:16px;position:absolute;top:16px;width:calc(100% - 32px)}"};function id(t,e){B(e,!0),Q(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,Ab.noop),d=Y("tooltip_restart"),s=f(()=>`${o()?"btn-m--play":""} ${a()}`);Ut(t,{get className(){return n(s)},testId:"replay-btn",get ariaLabel(){return d},get disabled(){return r()},get click(){return l()},get ariaKeyShortCut(){return hs.KeyK},get ref(){return i()},set ref(u){i(u)},children:(u,m)=>{var p=r2(),v=ue(p);{var _=T=>{var R=n2();b(T,R)};V(v,T=>{o()&&T(_)})}var y=k(v,2);let $;var x=C(y);let I=f(()=>o()?"48":"24");$c(x,{get size(){return n(I)}}),S(y),O(T=>$=oe(y,1,"s-23",null,$,T),[()=>({mobile:o()})]),b(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 Ws(t,e){B(e,!0);let i=f(()=>fn(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();b(o,a)},$$slots:{default:!0}}),H()}var Lb=require("@vkontakte/videoplayer-shared/es2018");var l2=L('<div class="icon-background-mobile s-1z"><!></div>'),d2={hash:"s-1z",code:".icon-background-mobile.s-1z{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),Q(t,d2);let[i,o]=Ne(),r=()=>w(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),m=h(e,"className",3,""),p=h(e,"click",3,Lb.noop),_=be().ui.t,{toggle:y}=a,$=f(()=>y),x=f(()=>r()!==null),I=f(()=>n(x)?r():s()),T=f(()=>n(I)?_("tooltip_pause"):_("tooltip_play")),R=f(()=>n(I)?Ws:Mn),A=f(()=>`${d()?"btn-m--play":""} ${m()}`),P=f(()=>n(x)?n($):p());Ut(t,{get className(){return n(A)},testId:"play-btn",get click(){return n(P)},get disabled(){return u()},get ariaLabel(){return n(T)},get ariaKeyShortCut(){return hs.KeyK},get ref(){return l()},set ref(E){l(E)},children:(E,z)=>{var F=Me();let U=f(()=>n(R));var X=ue(F);{var ae=re=>{var J=l2(),we=C(J);Di(we,()=>n(U),(me,ee)=>{ee(me,{get size(){return"48"}})}),S(J),b(re,J)},Z=re=>{var J=Me(),we=ue(J);Di(we,()=>n(U),(me,ee)=>{ee(me,{get size(){return"24"}})}),b(re,J)};V(X,re=>{d()?re(ae):re(Z,!1)})}b(E,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 Xm(t){Je(t,{testId:"play-prev-chapter-icon",children:(e,i)=>{var o=c2();b(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=Y("tooltip_interactive_go_back"),l=f(()=>o()?"hidden":"");Ut(t,{get className(){return n(l)},testId:"play-prev-chapter-btn",get ariaLabel(){return a},get disabled(){return r()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,s)=>{Xm(d,{})},$$slots:{default:!0}}),H()}var u2=L('<span class="gutter s-26"><span><!></span></span>'),p2={hash:"s-26",code:".gutter.s-26{--gutterWidth:32px;--gutterHeight:12px;--togglerWidth:18px;--togglerHeight:18px;--togglerGap:calc(var(--togglerWidth)/6);background-color:hsla(0,0%,100%,.3);border-radius:50px;height:var(--gutterHeight);position:relative;width:var(--gutterWidth)}.toggler.s-26{align-items:center;background-color:#626364;border-radius:50%;display:flex;height:var(--togglerHeight);justify-content:center;left:0;position:absolute;top:calc((var(--togglerHeight) - var(--gutterHeight))/2*-1);transform:translateX(calc(var(--togglerGap)*-1));transition-duration:.2s;transition-property:background-color,transform;transition-timing-function:ease;width:var(--togglerWidth)}.toggler.enabled.s-26{background-color:var(--toggle-color-autoplay-on);transform:translateX(calc(var(--gutterWidth) - var(--togglerWidth) + var(--togglerGap)))}"};function xc(t,e){B(e,!0),Q(t,p2);let[i,o]=Ne(),r=()=>w(s,"$autoplayNextEnabled$",i),a=h(e,"ref",15,void 0),l=be(),d=l.ui.t,s=l.ui.autoplayNextEnabled$,u=l.actions.internal.setAutoplayNextEnabled,m=()=>{u(!r(),!0)},p=d("aria_label_autoplay"),v="12",_="#000",y=f(()=>r()?"true":"false");Ut(t,{click:m,get ariaLabel(){return p},role:"switch",get areaChecked(){return n(y)},get ref(){return a()},set ref($){a($)},children:($,x)=>{var I=u2(),T=C(I);let R;var A=C(T);{var P=z=>{Mn(z,{get size(){return v},fill:_})},E=z=>{Ws(z,{get size(){return v},fill:_})};V(A,z=>{r()?z(P):z(E,!1)})}S(T),S(I),O(z=>R=oe(T,1,"toggler s-26",null,R,z),[()=>({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 Zm(t){Je(t,{testId:"seek-to-interactive-icon",children:(e,i)=>{var o=f2();si(),b(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=Y("tooltip_interactive_seek"),l=f(()=>o()?"hidden":"");Ut(t,{get className(){return n(l)},testId:"btn-seek-to-interactive",get ariaLabel(){return a},get disabled(){return r()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,s)=>{Zm(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 Jm(t,e){let i=h(e,"isOpened",3,!1),o=f(()=>i()?"graph-close-icon":"graph-open-icon");Je(t,{get testId(){return n(o)},children:(r,a)=>{var l=v2(),d=k(ue(l));{var s=u=>{var m=m2();b(u,m)};V(d,u=>{i()&&u(s)})}b(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=be().ui.t,s=f(()=>a()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),u=f(()=>o()?"hidden":"");Ut(t,{get className(){return n(u)},testId:"btn-graph",get disabled(){return r()},get ariaLabel(){return n(s)},get click(){return e.click},get ref(){return i()},set ref(m){i(m)},children:(m,p)=>{let v=f(()=>!!a());Jm(m,{get isOpened(){return n(v)}})},$$slots:{default:!0}}),H()}var ev=require("@vkontakte/videoplayer-core/es2018");function Cc(t,e){B(e,!0);let[i,o]=Ne(),r=()=>w(u,"$playbackState$",i),a=h(e,"isMobile",3,!1),l=h(e,"isLiveActive",3,!1),d=h(e,"ariaLabel",3,""),s=be(),u=s.state.playbackState$,m=s.actions.internal.switchToActiveLive,p=s.actions.internal.togglePlay,v=f(()=>()=>{if(!l()){m();return}r()===ev.PlaybackState.PAUSED&&p()}),_=f(()=>a()?"":"btn--live btn-full-opacity"),y=f(()=>l()?"btn-live":"btn-live-offset"),$=f(()=>l()&&r()===ev.PlaybackState.PLAYING);Ut(t,{get className(){return n(_)},get testId(){return n(y)},get disabled(){return n($)},get ariaLabel(){return d()},get click(){return n(v)},children:(x,I)=>{ec(x,{get isActive(){return l()}})},$$slots:{default:!0}}),H(),o()}var tv=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 tl(t,e){"use strict";let i=q(!1),o=()=>{N(i,!0)};var r=Me(),a=ue(r);{var l=s=>{var u=g2();b(s,u)},d=s=>{var u=h2();O(()=>Ve(u,"src",e.icon)),pt("error",u,o),Ra(u),b(s,u)};V(a,s=>{n(i)?s(l):s(d,!1)})}b(t,r)}function iv(t,e){B(e,!0);let i=h(e,"disabled",3,!1),o=h(e,"onClick",3,tv.noop),r=h(e,"ref",15),a=f(()=>o()===tv.noop),l=f(()=>n(a)||i()),d=f(()=>n(a)?"btn-full-opacity":"");Mo(t,{get disabled(){return n(l)},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},width:40,get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},get tooltipVisible(){return e.tooltipVisible},get ref(){return r()},set ref(s){r(s)},children:(s,u)=>{let m=f(()=>{var p;return(p=e.testId)!=null?p:e.id});Ut(s,{get className(){return n(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return n(l)},get testId(){return n(m)},children:(p,v)=>{tl(p,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),H()}var Mb=t=>!!t.buttonComponent;var Ks={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"),Vb=10,Rb=40,ov=.2,b2=.5,$2=65,y2=114,x2=4,Nb=({onPreviewTrackOpened:t,getTimelineRef:e,isHorizontal:i})=>{let o=f(()=>i?$2:y2),r=q(!1),a=q(0),l=q(0),d=f(()=>n(o)+Vb-Rb-x2),s=f(()=>(0,hp.interpolate)(n(a),[ov,1],[0,-n(d)])),u=f(()=>(0,hp.interpolate)(n(a),[ov,1],[0,Rb])),m=f(()=>(0,hp.interpolate)(n(a),[ov,1],[0,n(o)+Vb]));return{progressBarY:()=>n(s),controlsY:()=>n(u),calculatedHeight:()=>n(m),onPointerDown:$=>{var x;N(l,((x=e())==null?void 0:x.getBoundingClientRect().bottom)||0,!0),N(r,!0)},onPointerMove:$=>{if(!n(r))return;let x=Math.max(Math.min($.clientY-n(l),0),-n(d));N(a,Math.abs(x/n(d)),!0)},onPointerUp:()=>{N(r,!1),N(a,n(a)>=b2?1:0,!0),n(a)===1&&t()},closePreviewTrack:()=>{N(a,0)}}};var w2=t=>t;function $s(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-2b"> </span>'),C2={hash:"s-2b",code:".root.s-2b{box-shadow:0 8px 24px 0 rgba(0,0,0,.08);box-shadow:0 0 2px 0 rgba(0,0,0,.08);color:#fff;font-size:13px;font-weight:500;line-height:16px}"};function nv(t,e){Q(t,C2);var i=S2(),o=C(i,!0);S(i),O(()=>ve(o,e.time)),b(t,i)}var T2=L('<div class="tooltip-wrapper s-i"><div><!></div></div>'),I2={hash:"s-i",code:'.tooltip-wrapper.s-i{display:block;position:relative}.tooltip.s-i{bottom:100%;opacity:0;position:absolute;transform:translateX(-50%);transition:opacity .2s;visibility:hidden}.pointer.s-i:after{border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid rgba(41,41,41,.8);bottom:0;content:" ";font-size:0;left:50%;line-height:0;position:absolute;transform:translate(-50%,5px);width:0}.tooltip.active.s-i{opacity:1;visibility:visible}'};function rv(t,e){Q(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 m(x){if(!n(u))return 0;let{width:I}=n(u).getBoundingClientRect(),T=I/2;return x<T?T+l():x>e.containerWidth-T?e.containerWidth-T-d():x}let p=f(()=>m(r()));var v=T2(),_=C(v);let y;var $=C(_);ti($,()=>{var x;return(x=e.children)!=null?x:ht}),S(_),Ze(_,x=>N(u,x),()=>n(u)),S(v),Ze(v,x=>N(s,x),()=>n(s)),O(x=>{Ke(v,`transform: translate(${n(p)}px, ${a()}px);`),y=oe(_,1,"tooltip s-i",null,y,x),Ke(_,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),b(t,v)}var Db=t=>Math.abs(t)/90%4===1;var E2=L('<div class="preview s-j"></div>'),P2=L('<div class="time s-j"> </div>'),k2=L('<div><!> <div class="episode s-j"><!></div> <!></div>'),A2={hash:"s-j",code:".timeline-preview.s-j{border-radius:2px;bottom:18px;pointer-events:none}.timeline-preview.mobile.s-j{bottom:72px}.preview.s-j{background-color:var(--timeline-preview-bg);border:1px solid var(--white);border-radius:8px;box-shadow:0 0 2px var(--timeline-preview-shadow),0 8px 24px var(--timeline-preview-shadow)}.episode.s-j{margin-bottom:4px;margin-top:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.episode.s-j,.time.s-j{font-size:13px;font-weight:500;line-height:16px;text-align:center;text-shadow:0 8px 24px var(--timeline-preview-shadow),0 0 2px var(--timeline-preview-shadow)}.time.s-j{color:var(--white)}"};function sv(t,e){B(e,!0),Q(t,A2);let[i,o]=Ne(),r=()=>w(y,"$rotateAlpha",i),a=()=>w($,"$playerSize",i),l={MOBILE:150,DESKTOP:278},d=h(e,"time",3,""),s=h(e,"isMobile",3,!1),u=h(e,"videoEpisodes",19,()=>[]),m=h(e,"progress",3,0),p=h(e,"duration",3,0),v=h(e,"isInteractive",3,!1),_=be(),y=_.ui.rotateAlpha,$=_.ui.playerSize,x=q(0),I=q(0),T=q(""),R=q(0),A=q(0),P=q(0),E=q(0),z=f(()=>ap(m(),p(),u())),F=f(()=>Jl(r())),U=f(()=>Db(r())),X=f(re),ae=f(()=>(n(U)?1:-1)*(n(x)/2-n(I)/2)),Z=f(()=>n(ae)*-1);De(()=>{(K=>{N(x,K.width,!0),N(I,K.height,!0)})(we())}),De(()=>{(K=>{N(T,K.imgSrc,!0),N(R,K.imgWidth,!0),N(A,K.imgHeight,!0),N(P,K.imgOffsetX,!0),N(E,K.imgOffsetY,!0)})(me(m()))});function re(){var Be;let K=s()?l.MOBILE:l.DESKTOP,{isVertical:se}=J(),xe=30;return(Be=n(z))!=null&&Be.text&&(xe+=16),(se||n(F))&&(xe+=18,xe+=50),Math.min(Math.max(a().height-xe,0),K)}function J(){let K=e.previewThumbsData.frameWidth,se=e.previewThumbsData.frameHeight,xe=se>K;return{width:K,height:se,isHorizontal:!xe,isVertical:xe}}function we(){let{height:K,isHorizontal:se,isVertical:xe,width:Be}=J();return se&&(K=K/Be*n(X),Be=n(X)),xe&&(Be=Be/K*n(X),K=n(X)),{width:Be,height:K}}function me(K){let se;e.previewThumbsData.isUV?se=Math.floor(p()*K/e.previewThumbsData.frequency):se=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*K)));let xe=Math.floor(se/e.previewThumbsData.countPerImage),Be=Math.floor(se%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),ot=se%e.previewThumbsData.countPerRow,ne=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&xe===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(ne=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&ne++);let ce=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&xe===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(ce=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Re=n(x)*ce,Ae=n(I)*ne,et=-ot*n(x),Ee=-Be*n(I);return{imgSrc:e.previewThumbsData.links[xe],imgWidth:Re,imgHeight:Ae,imgOffsetX:et,imgOffsetY:Ee}}var ee=k2();let _e;var Ce=C(ee);{var ge=K=>{var se=E2();O(()=>Ke(se,`width: ${n(x)}px; height: ${n(I)}px; background-image: url(${n(T)}); background-size: ${n(R)}px ${n(A)}px; background-position: ${n(P)}px ${n(E)}px;
|
|
61
61
|
transform: rotate(${r()}deg) ${n(F)?`translate(${n(ae)}px, ${n(Z)}px)`:""};
|
|
62
|
-
`)),b(K,se)};V(Ce,K=>{n(T)&&K(ge)})}var pe=k(Ce,2),qe=C(pe);{var G=K=>{var se=Le(),xe=ue(se);{var Be=ne=>{var ce=vs();O(Re=>ve(ce,Re),[()=>j("tooltip_episode_unfinished")]),b(ne,ce)},tt=ne=>{var ce=vs();O(()=>ve(ce,n(z).text||"")),b(ne,ce)};V(xe,ne=>{v()&&n(z).completed===!1?ne(Be):ne(tt,!1)})}b(K,se)};V(qe,K=>{n(z)&&K(G)})}S(pe);var D=k(pe,2);{var Qe=K=>{var se=P2(),xe=C(se,!0);S(se),O(()=>ve(xe,d())),b(K,se)};V(D,K=>{v()||K(Qe)})}S(ee),O(K=>{_e=oe(ee,1,"timeline-preview s-v",null,_e,K),Ke(ee,`width: ${n(F)?n(I):n(x)}px;`)},[()=>({mobile:s()})]),b(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 le,$e,Me,lt,wt;B(e,!0),Q(t,V2);let[i,o]=Ne(),r=()=>w(Z,"$interactiveEpisodes$",i),a=()=>w(E,"$duration$",i),l=()=>w(P,"$position$",i),d=()=>w(we,"$isInteractiveExpectation$",i),s=()=>w(J,"$isInteractiveTime$",i),u=()=>w(Ce,"$previewTrackActive",i),m=()=>w(z,"$isLive$",i),p=()=>w(_e,"$disabledControls$",i),v=()=>w(U,"$isMobile",i),_=()=>w(F,"$isActiveLive$",i),y=()=>w(A,"$bufferedProgress$",i),$=h(e,"showTimeline",3,!1),x=h(e,"withEpisodes",3,!0),I=h(e,"ref",15,void 0),T=be(),R=Nt(),A=T.state.bufferedProgress$,P=T.state.positionWithScrubbing$,E=T.state.duration$,z=T.state.isLive$,F=T.state.isActiveLive$,U=T.ui.isMobile,X=R.features.episodes&&x()?T.actions.internal.getVideoEpisodes():void 0,ae=T.actions.internal.getPreviewThumbsData(),Z=T.state.interactiveEpisodes$,re=T.state.isInteractive,J=T.state.isInteractiveTime$,we=T.state.isInteractiveExpectation$,me=T.actions.internal.correctSeekTimeToInteractive,ee=(le=T.callbacks)==null?void 0:le.onDisabledTimelineClick,_e=T.ui.controls.disabledControls$,Ce=T.ui.previewTrackActive,ge=(Me=($e=T.callbacks)==null?void 0:$e.uiInfo)==null?void 0:Me.onTimelineMouseEnter,pe=(wt=(lt=T.callbacks)==null?void 0:lt.uiInfo)==null?void 0:wt.onTimelineMouseLeave,qe=T.ui.t,G=R.features.interactiveResponsiveUi,D=f(()=>re?r():X),Qe=f(()=>Zo(a())),K=f(()=>Zo(l())),se=f(()=>l()/a()),xe=f(()=>d()||s()),Be=q(!1),tt=q(""),ne=q(0),ce=q(0),Re=q(0),Ae=f(()=>({containerWidth:n(ce),translateXPx:n(ne),translateYPx:re&&ae?-36:-16,active:n(Be)&&$()&&!n(xe)&&!G&&!u(),pointer:!R.features.timelinePreview||!ae||m()})),Je=qe("aria_timeline"),Ee=f(()=>qe("aria_timeline_value",{position:n(K),duration:n(Qe)}));function Te(fe){return!me||!re?fe:me(fe*a())/a()}function He(fe,Oe){var ze;(ze=e.onSliderPointerDown)==null||ze.call(e,Oe),T.actions.internal.startScrubbing(Te(fe))}function Pt(fe){s()||T.actions.internal.progressScrubbing(Te(fe))}function Ct(fe){var Oe;T.actions.internal.completeScrubbing(Te(fe)),N(Be,!1),(Oe=e.onSliderPointerUp)==null||Oe.call(e)}function Mt(fe,Oe,ze){var St;(St=e.onSliderPointerEnter)==null||St.call(e,fe),Zt(fe,Oe,ze),N(Be,!0)}function ut(fe,Oe,ze,St){var Gt;(Gt=e.onSliderMove)==null||Gt.call(e,St,fe),Zt(fe,Oe,ze),N(Be,!0)}function kt(){var fe;N(Be,!1),(fe=e.onSliderLeave)==null||fe.call(e)}function Zt(fe,Oe,ze){N(Re,Te(fe),!0),N(ne,Oe,!0),ze&&N(ce,ze,!0),N(tt,At(fe),!0)}function At(fe){let Oe=Zo((m()?1-fe:fe)*a());return m()?`-${Oe}`:Oe}let Bt=f(()=>p().has("TIMELINE"));var Wt=M2(),Y=ue(Wt);ov(Y,is(()=>n(Ae),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(fe,Oe)=>{var ze=Le(),St=ue(ze);{var Gt=ri=>{nv(ri,{get time(){return n(tt)},get isMobile(){return v()},get videoEpisodes(){return n(D)},get previewThumbsData(){return ae},get progress(){return n(Re)},get duration(){return a()},get isInteractive(){return re}})},Tt=ri=>{var ci=L2(),Ni=C(ci,!0);S(ci),O(()=>ve(Ni,n(tt))),b(ri,ci)};V(St,ri=>{R.features.timelinePreview&&ae&&!m()?ri(Gt):ri(Tt,!1)})}b(fe,ze)},$$slots:{default:!0}}));var Pe=k(Y,2);ja(Pe,{className:"timeline-slider",get isActiveLive(){return _()},get isMobile(){return v()},get ariaLabel(){return Je},ariaValueMin:0,get ariaValueMax(){return a()},get ariaValueNow(){return l()},get ariaValueText(){return n(Ee)},get loadedProgress(){return y()},get filledProgress(){return n(se)},get handleProgress(){return n(se)},get videoEpisodes(){return n(D)},onPointerDown:He,onHandleMove:Pt,onPointerMove:ut,onPointerUp:Ct,onPointerEnter:Mt,onPointerLeave:kt,get onMouseEnter(){return ge},get onMouseLeave(){return pe},get onDisabledClick(){return ee},get isInteractive(){return re},get disabled(){return n(Bt)},get handleAlwaysVisible(){return u()},get hideHandel(){return s()},testId:"progress_bar",onContextMenu:Ct,get ref(){return I()},set ref(fe){I(fe)}}),b(t,Wt),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),Q(t,R2);let[i,o]=Ne(),r=()=>w(s,"$isMobile",i),a=h(e,"position",3,0),l=h(e,"duration",3,0),d=be(),s=d.ui.isMobile,u=d.ui.t,m=f(()=>Zo(l())),p=f(()=>Zo(a())),v=f(()=>a()/l()),_=f(()=>u("aria_timeline_value",{position:n(p),duration:n(m)})),y=f(()=>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),Q(t,O2);let[i,o]=Ne(),r=()=>w(x,"$isLive$",i),a=()=>w(R,"$isMobile",i),l=()=>w(A,"$disabled",i),d=()=>w(T,"$adPosition",i),s=()=>w(I,"$adDuration",i),u=h(e,"isAds",3,!1),m=h(e,"isHidden",3,!1),p=h(e,"timelineNotAvailable",3,!1),v=h(e,"needPadding",3,!0),_=h(e,"ref",15,void 0),y=be(),$=Nt(),x=y.state.isLive$,I=y.ads.duration,T=y.ads.position,R=y.ui.isMobile,A=de(!1),P=f(()=>!p()&&(!r()||r()&&e.canRewindLive&&e.isRewindableLive||u()));var E=Le(),z=ue(E);{var F=X=>{var ae=N2();let Z;var re=C(ae);{var J=me=>{Tc(me,{get position(){return d()},get duration(){return s()}})},we=me=>{rv(me,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return n(P)},get withEpisodes(){return e.withEpisodes},get onSliderMove(){return e.onSliderMove},get onSliderPointerDown(){return e.onSliderPointerDown},get onSliderPointerUp(){return e.onSliderPointerUp},get onSliderLeave(){return e.onSliderLeave},get onSliderPointerEnter(){return e.onSliderPointerEnter},get ref(){return _()},set ref(ee){_(ee)}})};V(re,me=>{u()?me(J):me(we,!1)})}S(ae),Vs(ae,()=>Wl(m()&&$.features.usePerformanceFix,A,$.disableInvisibleComponentsTimeout)),O(me=>Z=oe(ae,1,"timeline s-e",null,Z,me),[()=>({withoutPadding:!v(),mobile:a(),"out-of-flow":l()})]),b(X,ae)},U=X=>{var ae=D2();let Z;O(re=>Z=oe(ae,1,"timeline-stub s-e",null,Z,re),[()=>({mobile:a()})]),b(X,ae)};V(z,X=>{n(P)?X(F):X(U,!1)})}b(t,E),H(),o()}var Nb=require("@vkontakte/videoplayer-shared/es2018");var B2=(t,e,i,o,r,a,l)=>{N(e,!0),N(i,t.clientX,!0),N(o,n(r),!0),a(l())},H2=L("<div></div>"),F2=L('<div><div class="track s-2d"></div></div>'),U2={hash:"s-2d",code:'.root.s-2d{display:flex;height:var(--preview-track-frame-height-horizontal);overflow:hidden;position:relative;width:100%}.root.is-vertical-video.s-2d,.root.vertically-rotated.s-2d{height:var(--preview-track-frame-height-vertical)}.root.s-2d:after{background-color:#fff;box-shadow:0 2px 2px 0 rgba(0,0,0,.12);box-shadow:0 0 2px 0 rgba(0,0,0,.06);content:"";height:100%;margin:0 auto;pointer-events:none;width:3px;z-index:1}.track.s-2d{bottom:0;display:flex;left:0;padding:0 50%;top:0}.frame.s-2d,.track.s-2d{position:absolute}.frame.s-2d{background-position-x:calc(var(--column-index)*-1*var(--frame-width));background-position-y:calc(var(--frame-height)*-1*var(--row-index));background-size:calc(var(--frame-width)*var(--column-numbers)) calc(var(--frame-height)*var(--row-numbers));flex-shrink:0;height:var(--frame-height);pointer-events:none;transform-origin:center;width:var(--frame-width)}.vertically-rotated.s-2d .frame:where(.s-2d){transform-origin:0 0}.rotate-1.s-2d{transform:rotate(-90deg) translateX(-100%)}.rotate-2.s-2d{transform:rotate(-180deg)}.rotate-3.s-2d{transform:rotate(-270deg) translateY(-100%)}'};function av(t,e){B(e,!0),Q(t,U2);let[i,o]=Ne(),r=()=>w(R,"$rotateAlpha",i),a=()=>w($,"$position$",i),l=()=>w(y,"$duration$",i),d=be(),{countPerImage:s=0,countPerRow:u=0,countTotal:m=0,links:p=[],frameHeight:v=0,frameWidth:_=0}=d.actions.internal.getPreviewThumbsData()||{},{duration$:y,positionWithScrubbing$:$}=d.state,{startScrubbing:x,progressScrubbing:I,completeScrubbing:T}=d.actions.internal,R=d.ui.rotateAlpha,A=q(void 0),P=q(!1),E=q(0),z=q(0),F=q(0),U=q(0),X=f(()=>v<=_),ae=f(()=>Jl(r())),Z=f(()=>n(X)?!n(ae):n(ae)),re=114,J=65,we=3,me=f(()=>n(Z)?re:J),ee=f(()=>n(X)?re:J),_e=f(()=>n(X)?"var(--preview-track-frame-height-horizontal)":"var(--preview-track-frame-height-vertical)"),Ce=f(()=>m*n(me)),ge=q(0);De(()=>{N(U,Math.ceil(-n(F)/n(me))-1),N(F,-n(Ce)*a()/l())});let pe=()=>{T(qe(),!0)},qe=()=>l()*-n(F)/n(Ce)/l(),G=!1,D=Ee=>{if(!n(P))return!1;let Te=Ee.clientX-n(E);N(F,n(z)+Te),N(F,Math.max(Math.min(n(F),0),-n(Ce)),!0),Math.abs(Te)>1&&(G=!0),I(qe())},Qe=Ee=>{n(P)&&(N(P,!1),!G&&Ee&&N(F,-(Ee.offsetX-n(ge)/2)),G=!1,pe())},K=()=>{n(P)&&Qe()},se=f(()=>s/u),xe=(Ee,Te)=>{if(Ee!==p.length-1)return u;let He=0,Pt=Te*u;for(let Ct=1;Ct<=u;Ct++)Ee*s+He+Pt<m&&He++;return He},Be=f(()=>Math.floor(n(U)/s)),tt=f(()=>(0,Nb.getRangeAroundIndex)(3,n(Be),p.length-1)),ne=(Ee,Te,He)=>{let Pt=s*n(me);return Ee*Pt+Te*n(me)*u+n(ge)/2-we/2+He*n(me)},ce=f(()=>[`--row-numbers: ${n(se)}`,`--column-numbers: ${u}`,`--frame-width: ${n(ee)}px`,`--frame-height: ${n(_e)}`].join(";"));var Re=F2();let Ae;var Je=C(Re);Je.__pointerdown=[B2,P,E,z,F,x,qe],Je.__pointermove=D,Je.__pointerup=Qe,_i(Je,20,()=>n(tt),Ee=>Ee,(Ee,Te)=>{var He=Le(),Pt=ue(He);_i(Pt,16,()=>Array.from({length:n(se)},(Ct,Mt)=>Mt),Ct=>Ct,(Ct,Mt)=>{var ut=Le(),kt=ue(ut);_i(kt,16,()=>Array.from({length:xe(Te,Mt)},(Zt,At)=>At),Zt=>Zt,(Zt,At)=>{var Bt=H2();O((Wt,Y)=>{Ke(Bt,Wt),oe(Bt,1,Y,"s-2d")},[()=>`--row-index: ${Mt}; --column-index: ${At}; left: ${ne(Te,Mt,At)}px; background-image: url(${p[Te]});`,()=>`frame rotate-${Math.abs(r())/90%4}`]),b(Zt,Bt)}),b(Ct,ut)}),b(Ee,He)}),S(Je),S(Re),je(Re,Ee=>N(A,Ee),()=>n(A)),O(Ee=>{Ae=oe(Re,1,"root s-2d",null,Ae,Ee),Ke(Re,n(ce)),Ke(Je,`transform: translateX(${n(F)}px); width: ${n(Ce)}px;`)},[()=>({"is-vertical-video":!n(X),"vertically-rotated":n(ae)})]),ct("mouseleave",Je,K),Ln(Re,"clientWidth",Ee=>N(ge,Ee)),b(t,Re),H(),o()}Ge(["pointerdown","pointermove","pointerup"]);var z2=L('<div class="notification s-2c"><span class="description s-2c"> </span></div>'),W2={hash:"s-2c",code:".notification.s-2c{background:var(--notification-bg);border-radius:var(--notification-radius);padding:9px 14px 10px 12px}.description.s-2c{font-size:14px;line-height:18px}"};function lv(t,e){B(e,!1),Q(t,W2);let i=340,{ui:{t:o}}=be();ho();var r=z2(),a=C(r),l=C(a,!0);S(a),S(r),O(d=>ve(l,d),[()=>o("preview_track_close_tooltip")],In),ts(3,r,()=>bs,()=>({duration:i})),b(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),Q(t,Y2);let[i,o]=Ne(),r=()=>w($,"$playerSize",i),a=()=>w(y,"$duration$",i),l=()=>w(x,"$previewTrackActive",i),d=()=>w(v,"$position$",i),s=()=>w(_,"$isRewindableLive$",i),u=h(e,"timelineRef",15,void 0),m=be(),p=200,{positionWithScrubbing$:v,isRewindableLive$:_,duration$:y}=m.state,{playerSize:$,previewTrackActive:x}=m.ui,{countPerImage:I=0,links:T=[],frequency:R=0}=m.actions.internal.getPreviewThumbsData()||{},A=f(()=>r().width>100),P=q(!U_()),E=()=>{n(P)&&(F_(),N(P,!1))},z=me=>{let ee=Math.floor(a()*me/R),_e=Math.floor(ee/I),Ce=(0,Db.getRangeAroundIndex)(3,_e,T.length-1);for(let ge of Ce){let pe=new Image;pe.src=T[ge]}},F=(me,ee)=>{z(ee),!l()&&e.onTimelineMove(me)};var U=G2(),X=C(U);{var ae=me=>{var ee=q2(),_e=C(ee);let Ce=f(()=>Zo(d()));iv(_e,{get time(){return n(Ce)}});var ge=k(_e,2),pe=C(ge);Ds(pe,{onClick:()=>m.actions.internal.closePreviewTrack()}),S(ge);var qe=k(ge,2);{var G=D=>{var Qe=K2(),K=C(Qe);lv(K,{}),S(Qe),b(D,Qe)};V(qe,D=>{n(P)&&D(G)})}S(ee),ct("mouseleave",ge,E),ts(3,ee,()=>bs,()=>({duration:p})),b(me,ee)};V(X,me=>{l()&&me(ae)})}var Z=k(X,2);let re=f(()=>!n(A));el(Z,{get isHidden(){return n(re)},get isAds(){return e.isAds},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return s()},onSliderMove:F,get onSliderPointerDown(){return e.onTimelinePointerDown},get onSliderPointerUp(){return e.onTimelinePointerUp},get onSliderLeave(){return e.onTimelinePointerLeave},onSliderPointerEnter:z,get ref(){return u()},set ref(me){u(me)}});var J=k(Z,2);{var we=me=>{var ee=Q2(),_e=C(ee);av(_e,{}),S(ee),O(()=>Ke(ee,`height: ${e.animatedPreviewTrackHeight}px;`)),b(me,ee)};V(J,me=>{e.previewTrackAvailable&&me(we)})}S(U),O(()=>Ke(U,`transform: translateY(${e.animatedOffsetY}px);`)),b(t,U),H(),o()}var X2=L('<div><!> <div class="controls s-y" data-testid="player_controls"><div class="controls-left s-y"><!> <!> <!></div> <div class="controls-right s-y"></div></div></div> <!>',1),Z2={hash:"s-y",code:'.wrapper-bottom.s-y{bottom:0;box-sizing:border-box;display:flex;flex-direction:column;justify-content:flex-end;left:0;pointer-events:none;position:absolute;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);width:100%;will-change:transform;z-index:var(--controls-container-z-index)}.wrapper-bottom.s-y:before{background:var(--controls-gradient);content:"";height:var(--controls-gradient-height);position:absolute;width:100%}.wrapper-bottom.s-y>:where(.s-y){pointer-events:auto}.controls.s-y{align-items:center;box-sizing:border-box;display:flex;font-size:13px;height:var(--controls-height);justify-content:space-between;padding:0 var(--controls-desktop-padding-horizontal) 4px;white-space:nowrap;width:100%}.controls-left.s-y,.controls-right.s-y{align-content:center;display:flex}.controls-left.s-y{flex-grow:1;min-width:0;overflow:hidden}.controls-left.s-y >:not(:first-child),.controls-right.s-y >*{margin-left:var(--controls-desktop-item-margin-left)}.controls-hidden.s-y{transform:translateY(100%);visibility:visible}.wrapper-bottom.no-smooth.s-y{transition:none}'};function uv(t,e){var vl,$a;B(e,!0),Q(t,Z2);let[i,o]=Ne(),r=()=>w(Jo,"$disabledControls$",i),a=()=>w(rt,"$adPlaybackState",i),l=()=>w(Tt,"$playbackState$",i),d=()=>w(Ci,"$currentSubtitle$",i),s=()=>w(Ni,"$isEnded$",i),u=()=>w(fn,"$currentGridType$",i),m=()=>w(Dt,"$isLive$",i),p=()=>w(st,"$chromecastState$",i),v=()=>w(it,"$isPictureInPictureActive",i),_=()=>w(jt,"$pictureInPictureType$",i),y=()=>w(ot,"$availableSubtitlesList$",i),$=()=>w(Ht,"$contextMenuOpenedByKeyboard$",i),x=()=>w(ht,"$showContextMenuBtn$",i),I=()=>w(pi,"$isRewindableLive$",i),T=()=>w(vo,"$isActiveLive$",i),R=()=>w(Or,"$graphIsOpened$",i),A=()=>w(No,"$contextMenuVisible$",i),P=()=>w(Oi,"$isFullscreen",i),E=()=>w(Ai,"$autoplayNextEnabled",i),z=()=>w(n(go),"$prevButton",i),F=()=>w(n(nn),"$replayButton",i),U=()=>w(n(yo),"$playButton",i),X=()=>w(n(xo),"$nextButton",i),ae=()=>w(n(Ei),"$playPrevChapterButton",i),Z=()=>w(n(wo),"$seekToInteractiveButton",i),re=()=>w(n(Ur),"$interactiveGraphButton",i),J=()=>w(n(wr),"$liveButton",i),we=()=>w(n(ys),"$time",i),me=()=>w(n(Ui),"$episodes",i),ee=()=>w(n(xs),"$vkLogo",i),_e=()=>w(n(ls),"$volume",i),Ce=()=>w(n(Sr),"$subtitles",i),ge=()=>w(n(Ho),"$settings",i),pe=()=>w(n(zr),"$context",i),qe=()=>w(n(rn),"$fullscreen",i),G=()=>w(n(sn),"$chromecast",i),D=()=>w(mn,"$additionalDesktopControlPanelRightButtons$",i),Qe=()=>w(ki,"$playerSize",i),K=()=>w(Do,"$isInteractiveTime$",i),se=()=>w(ai,"$previewTrackActive",i),xe=()=>w(Di,"$settingsMenuVisible",i),Be=()=>w(zi,"$settingButtonRef$",i),tt=()=>w(W,"$startedByKeyboard$",i),ne=()=>w(ri,"$isAudioAvailable$",i),ce=()=>w(Wt,"$fakeIsPlaying$",i),Re=()=>w($s,"$seekToInteractiveDisabledTooltip$",i),Ae=()=>w(Sn,"$isPreviewTrackHorizontallyAligned$",i),Je=()=>w(yi,"$previewTrackAvailable",i),Ee=()=>w(Eo,"$previewTrackDragInProgress",i),Te=()=>w(_t,"$adPosition",i),He=()=>w(Gt,"$position$",i),Pt=()=>w(Jt,"$adDuration",i),Ct=()=>w(St,"$duration$",i),Mt=h(e,"playerControlsWrapperRef",15,void 0),ut=h(e,"playerControlsRef",15,void 0),kt=h(e,"isAds",3,!1),Zt=h(e,"logoTargetUrl",3,""),At=h(e,"isOneVideoPlaylist",3,!1),Bt=h(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:Wt}=_o(),Y=be(),Pe=_o(),le=Nt(),$e=Y.actions.internal.toggleMuted,Me=Y.actions.internal.togglePlay,lt=Y.actions.internal.pause,wt=Y.actions.internal.toggleSubtitle,fe=Y.actions.internal.checkFullscreenSupport,Oe=(vl=Y.callbacks)==null?void 0:vl.onAudioDoesNotExistHint,ze=($a=Y.callbacks)==null?void 0:$a.onAudioDisabledHint,St=Y.state.duration$,Gt=Y.state.positionWithScrubbing$,Tt=Y.state.playbackState$,ri=Y.state.isAudioAvailable$,ci=Y.state.isAudioDisabled,Ni=Y.state.isEnded$,Dt=Y.state.isLive$,vo=Y.state.isActiveLive$,pi=Y.state.isRewindableLive$,{isActive$:it,type$:jt}=Pe.pictureInPicture$,Di=Y.ui.settingsMenu.visible$,bi=Y.ui.settingsMenu.openedByBtnKeyboard$,ei=Y.ui.controls,wi=Y.actions.internal.getVideoEpisodes(),st=Y.state.chromecastState$,ot=Y.state.availableSubtitlesList$,Ci=Y.state.currentSubtitle$,Jo=ei.disabledControls$,No=Y.ui.contextMenu.visible$,ht=Y.ui.contextMenu.showContextMenuBtn$,Ht=Y.ui.contextMenu.openedByBtnKeyboard$,W=Y.ui.startedByKeyboard$,Vt=Y.ui.controlBlocks,si=Y.ui.previewTrackNotificationVisible,vt=Y.ui.t,Jt=Y.ads.duration,_t=Y.ads.position,rt=Y.ads.playbackState,Oi=Y.ui.isFullscreen,ki=Y.ui.playerSize,fn=Y.ui.currentGridType$,mn=Y.ui.additionalDesktopControlPanelRightButtons$,Ai=Y.ui.autoplayNextEnabled$,Bi=Y.actions.internal.getVideoElement,Dn=Y.actions.internal.replayInteractive,bo=Y.actions.internal.prevVideoClick,ro=Y.actions.internal.nextVideoClick,Ii=Y.state.isInteractive,Do=Y.state.isInteractiveTime$,Oo=Y.state.showInteractiveGraph,vn=Y.state.showSeekToInteractive,Rr=Y.state.showPlayPrevChapter,Nr=Y.state.showInteractiveTimeIndicator,Dr=Y.state.playPrevChapterDisabledTooltip,$s=Pe.seekToInteractiveDisabledTooltip$,Or=Pe.graphIsOpened$,er=le.features.interactiveResponsiveUi,Br=f(()=>r().has("EPISODE_BUTTON")),gn=f(()=>r().has("GRAPH_BUTTON")),hn=f(()=>r().has("SEEK_TO_INTERACTIVE_BUTTON")),mr=f(()=>r().has("PLAY_BUTTON")),vr=f(()=>r().has("REPLAY_BUTTON")),en=f(()=>r().has("PLAY_PREV_CHAPTER_BUTTON")),gr=()=>Y.actions.internal.toggleChromecast(),hr=f(()=>kt()?a()==="playing":l()===tl.PlaybackState.PLAYING),tr=f(()=>d().value!=="off"),On=f(()=>s()&&!kt()||Ii),as=f(()=>er?n(On)&&io(u(),"m"):n(On)),Bo=f(()=>!s()||Ii||kt()),_r=f(()=>io(u(),"m")),Hi=f(()=>e.showNextPrevButtons&&io(u(),"m")&&!kt()&&e.nextButtonActive),br=f(()=>e.showNextPrevButtons&&io(u(),"m")&&!kt()&&e.prevButtonActive),Bn=f(()=>!kt()&&!!m()),mt=f(()=>p()!==tl.ChromecastState.NOT_AVAILABLE&&!(v()&&_()===1)&&io(u(),"m")&&!Ii),ti=f(()=>e.showAutoplayNext&&!At()&&io(u(),"s")),$r=f(()=>y().length>0&&io(u(),"m")),Hr=f(()=>$()||x()),Fr=f(()=>io(u(),"s")&&!kt()),Hn=f(()=>!e.logoHidden&&!kt()),ir=f(()=>le.features.fullscreen&&fe()&&(e.logoHidden||io(u(),er?"xs":"s"))&&!(v()&&_()===1)&&(Ii?Bt():!0)),$o=f(()=>(!m()||kt())&&!(le.features.interactiveHideTime&&Ii)),Fn=f(()=>Oo&&io(u(),"m")),or=f(()=>er?vn&&io(u(),"s"):vn),Un=f(()=>er?Rr&&io(u(),"s"):Rr),_n=f(()=>!kt()&&!m()&&!!(wi!=null&&wi.length)&&n(_r)&&!n(Br)),bn=f(()=>!I()||!!T()),$n=f(()=>R()?vt("tooltip_interactive_graph_on"):vt("tooltip_interactive_graph_off")),tn=f(()=>A()?vt("tooltip_context_menu_close"):vt("tooltip_context_menu_open")),Fi=(ft,nt)=>ft?nt&&nt===tl.PlaybackState.PAUSED?vt("tooltip_play"):"":vt("tooltip_live"),Xi=f(()=>Fi(n(bn),l())),on=f(()=>le.logoType==="vk_video"?vt("tooltip_vk_video_logo"):vt("tooltip_vk_logo")),nr=f(()=>n(tr)?vt("tooltip_subtitles_on"):vt("tooltip_subtitles_off")),yr=f(()=>P()?vt("tooltip_fullscreen_on"):vt("tooltip_fullscreen_off")),yn=f(()=>p()===tl.ChromecastState.CONNECTED?vt("tooltip_chromecast_on"):vt("tooltip_chromecast_off")),xr=f(()=>E()?vt("tooltip_autoplay_on"):vt("tooltip_autoplay_off")),pt=q(0),xt=li({}),so=li({}),go=f(()=>ei.prevButton),nn=f(()=>ei.replayButton),yo=f(()=>ei.playButton),xo=f(()=>ei.nextButton),Ei=f(()=>ei.playPrevChapterButton),wo=f(()=>ei.seekToInteractiveButton),Ur=f(()=>ei.interactiveGraphButton),wr=f(()=>ei.liveButton),ys=f(()=>ei.time),Ui=f(()=>ei.episodes),xs=f(()=>ei.vkLogo),ls=f(()=>ei.volume),Sr=f(()=>ei.subtitles),Ho=f(()=>ei.settings),zr=f(()=>ei.context),rn=f(()=>ei.fullscreen),sn=f(()=>ei.chromecast),Fe=f(()=>({prevButton:z()?z().right-z().left:0,replayButton:F()?F().right-F().left:0,playButton:U()?U().right-U().left:0,nextButton:X()?X().right-X().left:0,playPrevChapterButton:ae()?ae().right-ae().left:0,seekToInteractiveButton:Z()?Z().right-Z().left:0,interactiveGraphButton:re()?re().right-re().left:0,liveButton:J()?J().right-J().left:0,time:we()?we().right-we().left:0,episodes:me()?me().right-me().left:0,vkLogo:ee()?ee().right-ee().left:0,volume:_e()?_e().right-_e().left:0,subtitles:Ce()?Ce().right-Ce().left:0,settings:ge()?ge().right-ge().left:0,context:pe()?pe().right-pe().left:0,fullscreen:qe()?qe().right-qe().left:0,chromecast:G()?G().right-G().left:0,additionalButtons:D().length?D().reduce(ft=>[...ft,40],[]):[]})),It=q(0);De(()=>{(!n(It)||n(It)<n(Fe).time)&&Et(()=>N(It,n(Fe).time,!0))});let ui=q(!1);De(()=>{let ft=0;n(_n)&&(io(u(),"xl")?ft=n(Fe).time:ft=60);let nt=n(Fe).prevButton+n(Fe).playButton+n(Fe).nextButton+n(Fe).seekToInteractiveButton+n(Fe).interactiveGraphButton+n(Fe).liveButton+n(It)+ft;N(ui,n($o)&&n(pt)>=nt,!0)});let Fo=f(()=>n(ui)&&io(u(),"m")),So=(0,cv.debounceFn)(td,260),Uo=(0,cv.debounceFn)(gp,260);De(()=>{Qe(),K(),se(),So(Bi(),ei,xt,e.showControls),Uo(Bi(),Vt,so,e.showControls)}),De(()=>{so.bottom=Mt()});let zi=de();De(()=>{xe(),Be()&&Et(()=>ql(Be(),xe(),bi))});let Co;De(()=>{tt(),Et(()=>mp(W,tt(),Co))});function zn(){da({isAudioDisabled:ci,isAudioAvailable:ne(),isAds:kt(),audioIsNotExistHintCallback:Oe,audioDisabledHintCallback:ze})&&$e()}let Cr=Ii?Dn:Me,To=f(()=>ce()!==null),ao=f(()=>n(To)?ce():n(hr)),xn=f(()=>n(ao)?vt("tooltip_pause"):vt("tooltip_play")),zo=vt("tooltip_episodes"),Wn=f(()=>{var ft,nt,Zi,ko;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=(ft=Y.callbacks)==null?void 0:ft.uiInfo)!=null&&nt.onPrevButtonMouseEnter)&&!((ko=(Zi=Y.callbacks)==null?void 0:Zi.uiInfo)!=null&&ko.onPrevButtonMouseLeave),mouseEnter:()=>{var Ji,gi,Ki;(Ki=(gi=(Ji=Y.callbacks)==null?void 0:Ji.uiInfo)==null?void 0:gi.onPrevButtonMouseEnter)==null||Ki.call(gi,Zn(Bi(),xt,"prevButton",e.showControls))},mouseLeave:()=>{var Ji,gi,Ki;(Ki=(gi=(Ji=Y.callbacks)==null?void 0:Ji.uiInfo)==null?void 0:gi.onPrevButtonMouseLeave)==null||Ki.call(gi,Zn(Bi(),xt,"prevButton",e.showControls))},tooltipText:vt("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),Wr=f(()=>n(as)?{id:"replayButton",type:"desktop-control-panel-left",weight:Hs.replayButton,buttonComponent:id,buttonComponentProps:{disabled:n(vr),click:Cr},tooltipText:vt("tooltip_restart"),disabled:n(vr)}:void 0),Kr=f(()=>n(Bo)?{id:"playButton",type:"desktop-control-panel-left",weight:Hs.playButton,buttonComponent:od,buttonComponentProps:{disabled:n(mr),isPlaying:n(hr),click:Me},tooltipText:n(xn),disabled:n(mr)}:void 0),Kn=f(()=>{var ft,nt,Zi,ko;return n(Hi)?{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=(ft=Y.callbacks)==null?void 0:ft.uiInfo)!=null&&nt.onNextButtonMouseEnter)&&!((ko=(Zi=Y.callbacks)==null?void 0:Zi.uiInfo)!=null&&ko.onNextButtonMouseLeave),mouseEnter:()=>{var Ji,gi,Ki;(Ki=(gi=(Ji=Y.callbacks)==null?void 0:Ji.uiInfo)==null?void 0:gi.onNextButtonMouseEnter)==null||Ki.call(gi,Zn(Bi(),xt,"nextButton",e.showControls))},mouseLeave:()=>{var Ji,gi,Ki;(Ki=(gi=(Ji=Y.callbacks)==null?void 0:Ji.uiInfo)==null?void 0:gi.onNextButtonMouseLeave)==null||Ki.call(gi,Zn(Bi(),xt,"nextButton",e.showControls))},tooltipText:vt("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),Ze=f(()=>Ii&&n(Un)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:Hs.playPrevChapterButton,buttonComponent:yc,buttonComponentProps:{disabled:n(en),click:e.playPrevChapter},tooltipText:vt("tooltip_interactive_go_back"),disabledTooltipContent:vt(Dr),disabled:n(en)}:void 0),Xt=f(()=>Ii&&n(or)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:Hs.seekToInteractiveButton,buttonComponent:wc,buttonComponentProps:{disabled:n(hn),click:e.seekToInteractive},tooltipText:vt("tooltip_interactive_seek"),disabled:n(hn),disabledTooltipContent:vt(Re())}:void 0),$i=f(()=>Ii&&n(Fn)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:Hs.interactiveGraphButton,buttonComponent:Sc,buttonComponentProps:{disabled:n(gn),click:Or.toggle,graphIsOpened:R()},tooltipText:n($n)}:void 0),Io=f(()=>n(Bn)?{id:"liveButton",type:"desktop-control-panel-left",weight:Hs.liveButton,buttonComponent:Cc,buttonComponentProps:{isLiveActive:n(bn),ariaLabel:n(Xi)},tooltipText:n(Xi),disabled:n(bn)&&l()===tl.PlaybackState.PLAYING}:void 0),wn=f(()=>[n(Wn),n(Wr),n(Kr),n(Kn),n(Ze),n(Xt),n($i),n(Io)].filter(ft=>!!ft).sort(Ka)),qn=f(()=>n(Hn)?{id:"vkLogo",type:"desktop-control-panel-right",weight:Us.vkLogo,buttonComponent:fc,buttonComponentProps:{targetUrl:Zt(),logoClickable:e.logoClickable,click:lt},tooltipText:n(on),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),Wo=f(()=>n(ti)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:Us.autoplayNext,buttonComponent:xc,tooltipText:n(xr)}:void 0),rr=f(()=>({id:"volume",type:"desktop-control-panel-right",weight:Us.volume,buttonComponent:Nm,buttonComponentProps:{click:zn,isAds:kt()}})),ds=f(()=>n($r)?{id:"subtitles",type:"desktop-control-panel-right",weight:Us.subtitles,buttonComponent:Lm,buttonComponentProps:{isSubtitlesEnabled:n(tr),click:wt},tooltipText:n(nr)}:void 0),Tr=f(()=>n(Fr)?{id:"settings",type:"desktop-control-panel-right",weight:Us.settings,buttonComponent:Xl,buttonComponentProps:{ref$:zi},tooltipText:xe()?void 0:vt("tooltip_settings_off")}:void 0),ws=f(()=>le.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:Us.context,buttonComponent:Gm,buttonComponentProps:{ariaLabel:vt("aria_label_context_menu")},className:n(Hr)?"":"out-of-view",tooltipText:n(tn)}:void 0),Ws=f(()=>n(ir)?{id:"fullscreen",type:"desktop-control-panel-right",weight:Us.fullscreen,buttonComponent:pc,buttonComponentProps:{isFullscreen:P(),click:e.toggleFullscreen},tooltipText:n(yr)}:void 0),va=f(()=>n(mt)?{id:"chromecast",type:"desktop-control-panel-right",weight:Us.chromecast,buttonComponent:vc,buttonComponentProps:{state:p(),click:gr},tooltipText:n(yn)}:void 0),dt=f(()=>[n(qn),n(Wo),n(rr),n(ds),n(Tr),n(ws),n(Ws),n(va),...D()].filter(ft=>!!ft).sort(Ka)),ai=Y.ui.previewTrackActive,Eo=Y.ui.previewTrackDragInProgress,yi=Y.ui.previewTrackAvailable,Sn=Y.ui.isPreviewTrackHorizontallyAligned,Cn=f(()=>Vb({onPreviewTrackOpened:Y.actions.internal.previewTrackOpened,getTimelineRef:()=>xt.timeline,isHorizontal:Ae()})),Ss=f(()=>n(Cn).progressBarY),Cs=f(()=>n(Cn).controlsY),Wi=f(()=>n(Cn).onPointerDown),Ti=f(()=>n(Cn).onPointerMove),he=f(()=>n(Cn).onPointerUp),bt=f(()=>n(Cn).calculatedHeight),ii=f(()=>n(Cn).closePreviewTrack);De(()=>{se()?si.set(!1):n(ii)()});let Yt;Rt(()=>()=>Yt&&clearTimeout(Yt));let Po=ft=>{se()||!Je()||(n(Wi)(ft),Yt=setTimeout(()=>{Y.actions.internal.previewTrackDragStarted()},200))},lo=()=>{se()||n(he)(),Yt&&clearTimeout(Yt),Ee()&&Y.actions.internal.previewTrackDragFinished()},Ko=ft=>{n(Ti)(ft),!se()&&Je()&&!se()&&si.set(!0)},Ts=()=>{si.set(!1)};var qr=X2(),Ir=ue(qr);let ga;var Ks=C(Ir);{var ha=ft=>{let nt=f(()=>n(Ss)()),Zi=f(()=>n(bt)());dv(ft,{get animatedOffsetY(){return n(nt)},get animatedPreviewTrackHeight(){return n(Zi)},get canRewindLive(){return e.canRewindLive},get isAds(){return kt()},onTimelineMove:Ko,onTimelinePointerDown:Po,onTimelinePointerUp:lo,onTimelinePointerLeave:Ts,get previewTrackAvailable(){return Je()},get timelineRef(){return xt.timeline},set timelineRef(ko){xt.timeline=ko}})};V(Ks,ft=>{e.showControls&&ft(ha)})}var Qr=k(Ks,2),Tn=C(Qr),pl=C(Tn);_i(pl,17,()=>n(wn),ft=>ft.id,(ft,nt)=>{vp(ft,{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 xt[n(nt).id]},set ref(Zi){xt[n(nt).id]=Zi}})});var _a=k(pl,2);{var Gr=ft=>{let nt=f(()=>!e.showControls),Zi=f(()=>kt()?Te():He()),ko=f(()=>kt()?Pt():Ct());dc(ft,{get isHidden(){return n(nt)},isMobile:!1,get showDuration(){return n(Fo)},get position(){return n(Zi)},get duration(){return n(ko)},get ref(){return xt.time},set ref(Ji){xt.time=Ji}})};V(_a,ft=>{n($o)&&ft(Gr)})}var fl=k(_a,2);let md=f(()=>!n(_n));Vo(fl,{className:"w-max",get disabled(){return n(md)},get tooltipContent(){return zo},get tooltipVisible(){return e.showControls},get ref(){return xt.episodes},set ref(ft){xt.episodes=ft},children:(ft,nt)=>{var Zi=Le(),ko=ue(Zi);{var Ji=gi=>{gc(gi,{get position(){return He()},get duration(){return Ct()},get timeCodes(){return wi}})};V(ko,gi=>{n(_n)&&gi(Ji)})}b(ft,Zi)},$$slots:{default:!0}}),S(Tn);var ba=k(Tn,2);_i(ba,21,()=>n(dt),ft=>ft.id,(ft,nt)=>{var Zi=Le(),ko=ue(Zi);{var Ji=Ki=>{vp(Ki,{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 xt[n(nt).id]},set ref(qs){xt[n(nt).id]=qs}})},gi=Ki=>{let qs=f(()=>!!n(nt).disabled);ev(Ki,{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 xt[n(nt).id]},set ref(gd){xt[n(nt).id]=gd}})};V(ko,Ki=>{Ab(n(nt))?Ki(Ji):Ki(gi,!1)})}b(ft,Zi)}),S(ba),S(Qr),je(Qr,ft=>ut(ft),()=>ut()),S(Ir),je(Ir,ft=>Mt(ft),()=>Mt());var vd=k(Ir,2);{var ml=ft=>{bc(ft,{get ref(){return xt.interactiveTimeIndicator},set ref(nt){xt.interactiveTimeIndicator=nt}})};V(vd,ft=>{Nr&&ft(ml)})}O((ft,nt)=>{ga=oe(Ir,1,"wrapper-bottom s-y",null,ga,ft),Ke(Qr,nt),Qr.inert=se()},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth||Ee()}),()=>`transform: translateY(${n(Cs)()}px);`]),Ln(Tn,"clientWidth",ft=>N(pt,ft)),b(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-20"><div class="inner s-20"></div></div>'),ew=L('<img class="icon s-20" aria-hidden="true"/>'),tw={hash:"s-20",code:".icon.s-20{height:24px!important;width:24px!important}.inner.s-20{background-color:var(--white);height:16px;width:16px}"};function fv(t,e){Q(t,tw);let i=h(e,"disabled",3,!1),o=h(e,"onClick",3,pv.noop),r=f(()=>o()===pv.noop),a=f(()=>n(r)||i()),l=q(!1),d=()=>{N(l,!0)},s=f(()=>n(r)?"btn-full-opacity":"");zt(t,{get className(){return n(s)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return n(a)},get testId(){return e.testId},children:(u,m)=>{var p=Le(),v=ue(p);{var _=$=>{var x=J2();b($,x)},y=$=>{var x=ew();O(()=>Ve(x,"src",e.iconUrl)),ct("error",x,d),Ma(x),b($,x)};V(v,$=>{n(l)?$(_):$(y,!1)})}b(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){Xe(t,{testId:"muted-icon",children:(e,i)=>{var o=iw();b(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=be().ui.t,d=f(()=>i()?l("tooltip_volume"):l("tooltip_volume_muted")),s=f(()=>i()?"btn-mobile-muted":"btn-mobile-unmuted");zt(t,{get testId(){return n(s)},get click(){return o()},get ariaLabel(){return n(d)},role:"button",get ref(){return r()},set ref(u){r(u)},children:(u,m)=>{var p=Le(),v=ue(p);{var _=$=>{mv($,{})},y=$=>{pa($,{get size(){return"24"}})};V(v,$=>{i()?$(_):$(y,!1)})}b(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=f(()=>i()?"pip-icon--active":"pip-icon");Xe(t,{get testId(){return n(o)},children:(r,a)=>{var l=rw(),d=k(ue(l));{var s=m=>{var p=ow();b(m,p)},u=m=>{var p=nw();b(m,p)};V(d,m=>{i()?m(s):m(u,!1)})}b(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");zt(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-x"><!></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-x" data-testid="bottom-controls"><div class="controls-group contain s-x"><!> <!> <!> <!></div> <div class="controls-group s-x"><!> <!> <!></div></div> <!></div></div> <!>',1),hw={hash:"s-x",code:".wrapper-bottom.s-x{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-x>:where(.s-x){pointer-events:auto}.wrapper-bottom.ads-timeline-mobile.s-x{height:9px;padding:0 4px 4px}.wrapper-middle.s-x{align-items:center;left:50%;top:50%;transform:translate(-50%,-50%)}.wrapper-middle.s-x,.wrapper-top-right.s-x{display:flex;position:absolute;transition:opacity var(--controls-transition-duration);z-index:var(--controls-container-z-index)}.wrapper-top-right.s-x{right:8px;top:4px}.wrapper-top-left.s-x{left:8px;position:absolute;top:4px;z-index:var(--controls-container-z-index)}.wrapper-middle-left.s-x,.wrapper-middle-left-second.s-x,.wrapper-middle-right.s-x{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-x{left:12px}.wrapper-middle-left-second.s-x{left:64px}.wrapper-middle-right.s-x{right:12px}.controls.s-x{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-x,.controls-group.s-x{display:flex}.controls-group.contain.s-x{min-width:0}.controls-group.s-x >:not(:first-child){margin-left:8px}.hidden.s-x{opacity:0;visibility:hidden}.controls-hidden.s-x{transform:translateY(100%);visibility:visible}.wrapper-bottom.no-smooth.s-x{transition:none}.overlay-mobile.s-x{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-x,.wrapper-top-right.fullscreen.s-x{top:16px}.controls-wrapper.fullscreen.s-x{bottom:30px;position:absolute;width:calc(100% - 8px)}}@media screen and (orientation:landscape){.wrapper-top-left.fullscreen.s-x{left:44px;top:12px}.wrapper-top-right.fullscreen.s-x{right:44px;top:12px}.wrapper-middle-left.fullscreen.s-x{left:44px}.wrapper-middle-left-second.fullscreen.s-x{left:96px}.wrapper-middle-right.fullscreen.s-x{right:44px}.controls-wrapper.fullscreen.s-x{bottom:32px;left:36px;position:absolute;right:36px;width:calc(100% - 72px)}}"};function _v(t,e){var rn,sn;B(e,!0),Q(t,hw);let[i,o]=Ne(),r=()=>w(ki,"$seekToInteractiveDisabledTooltip$",i),a=()=>w(ei,"$disabledControls$",i),l=()=>w(At,"$playbackState$",i),d=()=>w(Jo,"$adPlaybackState",i),s=()=>w(Y,"$isEnded$",i),u=()=>w(ht,"$playerSize",i),m=()=>w(wt,"$scrubbingInProgress",i),p=()=>w(Di,"$chromecastState$",i),v=()=>w(Oe,"$isPictureInPictureActive",i),_=()=>w(ze,"$pictureInPictureType$",i),y=()=>w(fe,"$mobileNotReportControlHidden$",i),$=()=>w(pi,"$chromecastHidden",i),x=()=>w(ut,"$playerPhase",i),I=()=>w(Dt,"$pipHidden",i),T=()=>w(st,"$currentGridType$",i),R=()=>w(ci,"$vkLogoHidden",i),A=()=>w(ri,"$volumeHidden",i),P=()=>w(Pe,"$isLive$",i),E=()=>w(St,"$settingsMenuVisible",i),z=()=>w(lt,"$isRewindableLive$",i),F=()=>w(Me,"$isActiveLive$",i),U=()=>w(Bt,"$isAudioAvailable$",i),X=()=>w($e,"$muted$",i),ae=()=>w(le,"$volume$",i),Z=()=>w(vt,"$isInteractiveTime$",i),re=()=>w(or,"$settingButtonRef$",i),J=()=>w(wi,"$startedByKeyboard$",i),we=()=>w(No,"$isFullscreen",i),me=()=>w(Ht,"$additionalButtons$",i),ee=()=>w(Ni,"$autoplayNextToggleHidden",i),_e=()=>w(bi,"$crashed$",i),Ce=()=>w(vo,"$settingsHidden",i),ge=()=>w(fn,"$graphIsOpened$",i),pe=()=>w(Ci,"$adPosition",i),qe=()=>w(ot,"$adDuration",i),G=()=>w(Zt,"$position$",i),D=()=>w(kt,"$duration$",i),Qe=h(e,"playerControlsWrapperRef",15,void 0),K=h(e,"playerControlsRef",15,void 0),se=h(e,"isAds",3,!1),xe=h(e,"logoTargetUrl",3,""),Be=h(e,"isOneVideoPlaylist",3,!1),tt=h(e,"customFullscreenSupported",3,!0),ne=be(),ce=_o(),Re=Nt(),Ae=ne.actions.internal.toggleMuted,Je=ne.actions.internal.togglePlay,Ee=ne.actions.internal.pause,Te=ne.actions.internal.prevVideoClick,He=ne.actions.internal.nextVideoClick,Pt=ne.actions.internal.checkFullscreenSupport,Ct=(rn=ne.callbacks)==null?void 0:rn.onAudioDoesNotExistHint,Mt=(sn=ne.callbacks)==null?void 0:sn.onAudioDisabledHint,ut=ne.playerPhase,kt=ne.state.duration$,Zt=ne.state.positionWithScrubbing$,At=ne.state.playbackState$,Bt=ne.state.isAudioAvailable$,Wt=ne.state.isAudioDisabled,Y=ne.state.isEnded$,Pe=ne.state.isLive$,le=ne.state.volume$,$e=ne.state.muted$,Me=ne.state.isActiveLive$,lt=ne.state.isRewindableLive$,wt=ne.ui.scrubbingInProgress,fe=ne.ui.mobileNotReportControlHidden$,{isActive$:Oe,type$:ze}=ce.pictureInPicture$,St=ne.ui.settingsMenu.visible$,Gt=ne.ui.settingsMenu.openedByBtnKeyboard$,Tt=ne.ui.controls,{volume:ri,vkLogo:ci,autoplayNextToggle:Ni,pip:Dt,settings:vo,chromecast:pi}=ne.ui.hiddenControls,it=ne.actions.internal.getVideoEpisodes(),jt=ne.webApi.pictureInPictureApi,Di=ne.state.chromecastState$,bi=ne.state.crashed$,ei=Tt.disabledControls$,wi=ne.ui.startedByKeyboard$,st=ne.ui.currentGridType$,ot=ne.ads.duration,Ci=ne.ads.position,Jo=ne.ads.playbackState,No=ne.ui.isFullscreen,ht=ne.ui.playerSize,Ht=ne.ui.additionalButtonsDeprecated$,W=ne.actions.internal.getVideoElement,Vt=ne.actions.internal.replayInteractive,si=ne.state.isInteractive,vt=ne.state.isInteractiveTime$,Jt=ne.state.showInteractiveGraph,_t=ne.state.showSeekToInteractive,rt=ne.state.showPlayPrevChapter,Oi=ne.state.showInteractiveTimeIndicator,ki=ce.seekToInteractiveDisabledTooltip$,fn=ce.graphIsOpened$,mn=ne.ui.controlBlocks,Ai=f(()=>j(ne.state.playPrevChapterDisabledTooltip)),Bi=f(()=>j(r())),Dn=f(()=>a().has("EPISODE_BUTTON")),bo=f(()=>a().has("GRAPH_BUTTON")),ro=f(()=>a().has("SEEK_TO_INTERACTIVE_BUTTON")),Ii=f(()=>a().has("PLAY_BUTTON")),Do=f(()=>a().has("REPLAY_BUTTON")),Oo=f(()=>a().has("PLAY_PREV_CHAPTER_BUTTON")),vn=f(()=>l()===nd.PlaybackState.PLAYING),Rr=f(()=>d()==="paused"),Nr=f(()=>s()&&!se()&&!si),Dr=f(()=>!s()||se()),$s=f(()=>e.showNextPrevButtons&&!se()&&e.prevButtonActive),Or=f(()=>e.showNextPrevButtons&&!se()&&e.nextButtonActive),er=f(()=>u().width>300),Br=f(()=>u().width>400),gn=f(m),hn=f(()=>p()!==nd.ChromecastState.NOT_AVAILABLE&&!(v()&&_()===1)&&!y()&&!si&&!$()),mr=f(()=>x()==="LiveWaitingStart"),vr=f(()=>!!jt&&p()!==nd.ChromecastState.CONNECTED&&!y()&&(_()===1&&n(mr)||!n(mr))&&!n(gn)&&!si&&!I()),en=q(!1);Rt(()=>{let Fe=jt==null?void 0:jt.info.isActive$.subscribe(It=>N(en,It,!0));return()=>Fe==null?void 0:Fe.unsubscribe()});let gr=f(()=>!n(gn)&&io(T(),"s")),hr=f(()=>!e.logoHidden&&u().width>350&&!R()),tr=f(()=>Re.features.fullscreen&&Pt()&&!(v()&&_()===1)&&(si?tt():!0)&&!n(gn)&&!n(en)),On=f(()=>!A()&&!n(gn)),as=f(()=>(!P()||se())&&u().width>260&&!n(gn)&&!(Re.features.interactiveHideTime&&si)),Bo=f(()=>E()||e.showControls),_r=f(()=>!se()&&!P()&&!!(it!=null&&it.length)&&n(er)&&!n(Dn)&&!n(gn)),Hi=f(()=>!z()||!!F()),br=f(()=>Jt&&io(T(),"m")),Bn=f(()=>!U()||X()||ae()===0),mt=li({}),ti=li({}),$r=(0,hv.debounceFn)(td,260),Hr=(0,hv.debounceFn)(gp,260);De(()=>{u(),Z(),$r(W(),Tt,mt,e.showControls),Hr(W(),mn,ti,e.showControls)});let Fr=()=>ne.actions.internal.toggleChromecast();async function Hn(){jt!=null&&jt.isActive()?await(jt==null?void 0:jt.exit()):await(jt==null?void 0:jt.request())}function ir(){da({isAudioDisabled:Wt,audioDisabledHintCallback:Mt,isAudioAvailable:U(),audioIsNotExistHintCallback:Ct,isAds:se()})&&Ae()}let $o=q(""),Fn=(Fe,It)=>{if(!Fe){N($o,j("tooltip_live"),!0);return}It&&It===nd.PlaybackState.PAUSED&&N($o,j("tooltip_play"),!0)};De(()=>{Fn(n(Hi),l())});let or=de();De(()=>{re()&&ql(re(),E(),Gt)}),De(()=>{mp(wi,J(),mt.playButton)});var Un=gw(),_n=ue(Un);{var bn=Fe=>{var It=pw(),ui=ue(It);let Fo;var So=k(ui,2);let Uo;je(So,dt=>ti.topLeft=dt,()=>ti==null?void 0:ti.topLeft);var zi=k(So,2);let Co;var zn=C(zi);_i(zn,1,me,({iconUrl:dt,ariaLabel:ai,testId:Eo,onClick:yi,tooltip:Sn})=>dt,(dt,ai)=>{let Eo=()=>n(ai).iconUrl,yi=()=>n(ai).ariaLabel,Sn=()=>n(ai).testId,Cn=()=>n(ai).onClick,Ss=()=>n(ai).tooltip,Cs=f(()=>{var Wi;return(Wi=yi())!=null?Wi:Ss()});fv(dt,{get iconUrl(){return Eo()},get ariaLabel(){return n(Cs)},get testId(){return Sn()},get onClick(){return Cn()}})});var Cr=k(zn,2);{var To=dt=>{xc(dt,{get ref(){return mt.autoplayNextToggle},set ref(ai){mt.autoplayNextToggle=ai}})};V(Cr,dt=>{e.showAutoplayNext&&!Be()&&!ee()&&dt(To)})}var ao=k(Cr,2);{var xn=dt=>{vc(dt,{isMobile:!0,click:Fr,get state(){return p()},get ref(){return mt.chromecast},set ref(ai){mt.chromecast=ai}})};V(ao,dt=>{n(hn)&&dt(xn)})}var zo=k(ao,2);{var Wn=dt=>{gv(dt,{click:Hn,get isPictureInPictureActive(){return v()},get ref(){return mt.pip},set ref(ai){mt.pip=ai}})};V(zo,dt=>{n(vr)&&dt(Wn)})}var Wr=k(zo,2);{var Kr=dt=>{Xl(dt,{get ref$(){return or}})};V(Wr,dt=>{_e()&&!Ce()&&dt(Kr)})}var Kn=k(Wr,2);{var Ze=dt=>{fc(dt,{get click(){return Ee},get targetUrl(){return xe()},get logoClickable(){return e.logoClickable},get ref(){return mt.vkLogo},set ref(ai){mt.vkLogo=ai}})};V(Kn,dt=>{n(hr)&&dt(Ze)})}S(zi),je(zi,dt=>ti.topRight=dt,()=>ti==null?void 0:ti.topRight);var Xt=k(zi,2);let $i;var Io=C(Xt);{var wn=dt=>{let ai=f(()=>Te.bind(null,!0));Za(dt,{get click(){return n(ai)},type:"prev",isMobile:!0,get ref(){return mt.prevButton},set ref(Eo){mt.prevButton=Eo}})};V(Io,dt=>{n($s)&&dt(wn)})}var qn=k(Io,2);{var Wo=dt=>{od(dt,{get disabled(){return n(Ii)},get click(){return Je},isMobile:!0,get isPlaying(){return n(vn)},get ref(){return mt.playButton},set ref(ai){mt.playButton=ai}})};V(qn,dt=>{n(Dr)&&dt(Wo)})}var rr=k(qn,2);{var ds=dt=>{id(dt,{get disabled(){return n(Do)},get click(){return Je},isMobile:!0,get ref(){return mt.replayButton},set ref(ai){mt.replayButton=ai}})};V(rr,dt=>{n(Nr)&&dt(ds)})}var Tr=k(rr,2);{var ws=dt=>{let ai=f(()=>He.bind(null,!0));Za(dt,{get click(){return n(ai)},type:"next",isMobile:!0,get ref(){return mt.nextButton},set ref(Eo){mt.nextButton=Eo}})};V(Tr,dt=>{n(Or)&&dt(ws)})}S(Xt),je(Xt,dt=>ti.middle=dt,()=>ti==null?void 0:ti.middle);var Ws=k(Xt,2);{var va=dt=>{var ai=uw(),Eo=ue(ai);{var yi=Wi=>{var Ti=lw();let he;Ti.__click=[sw,Oo,e,Ai];var bt=C(Ti);let ii=f(()=>!e.showControls);yc(bt,{get hidden(){return n(ii)},get disabled(){return n(Oo)},get click(){return e.playPrevChapter},get ref(){return mt.playPrevChapterButton},set ref(Yt){mt.playPrevChapterButton=Yt}}),S(Ti),O(Yt=>he=oe(Ti,1,"wrapper-middle-left s-x",null,he,Yt),[()=>({fullscreen:we(),hidden:!e.showControls})]),b(Wi,Ti)};V(Eo,Wi=>{rt&&Wi(yi)})}var Sn=k(Eo,2);{var Cn=Wi=>{var Ti=dw();let he;var bt=C(Ti);let ii=f(()=>!e.showControls&&!ge());Sc(bt,{get hidden(){return n(ii)},get disabled(){return n(bo)},get click(){return fn.toggle},get graphIsOpened(){return ge()},get ref(){return mt.interactiveGraphButton},set ref(Yt){mt.interactiveGraphButton=Yt}}),S(Ti),O(Yt=>he=oe(Ti,1,Hd(rt?"wrapper-middle-left-second":"wrapper-middle-left"),"s-x",he,Yt),[()=>({fullscreen:we(),hidden:!e.showControls&&!ge()})]),b(Wi,Ti)};V(Sn,Wi=>{n(br)&&Wi(Cn)})}var Ss=k(Sn,2);{var Cs=Wi=>{var Ti=cw();let he;Ti.__click=[aw,ro,e,Bi];var bt=C(Ti);let ii=f(()=>!e.showControls);wc(bt,{get hidden(){return n(ii)},get disabled(){return n(ro)},get click(){return e.seekToInteractive},get ref(){return mt.seekToInteractiveButton},set ref(Yt){mt.seekToInteractiveButton=Yt}}),S(Ti),O(Yt=>he=oe(Ti,1,"wrapper-middle-right s-x",null,he,Yt),[()=>({fullscreen:we(),hidden:!e.showControls})]),b(Wi,Ti)};V(Ss,Wi=>{_t&&Wi(Cs)})}b(dt,ai)};V(Ws,dt=>{si&&!m()&&dt(va)})}O((dt,ai,Eo,yi)=>{Fo=oe(ui,1,"overlay-mobile s-x",null,Fo,dt),Uo=oe(So,1,"wrapper-top-left s-x",null,Uo,ai),Co=oe(zi,1,"wrapper-top-right s-x",null,Co,Eo),$i=oe(Xt,1,"wrapper-middle s-x",null,$i,yi)},[()=>({hidden:!n(Bo)}),()=>({hidden:!e.showControls,fullscreen:we()}),()=>({hidden:!e.showControls&&!y(),fullscreen:we()}),()=>({hidden:!e.showControls||m()||e.endScreenShown&&e.showNextPrevButtons})]),b(Fe,It)};V(_n,Fe=>{se()||Fe(bn)})}var $n=k(_n,2);{var tn=Fe=>{var It=mw(),ui=ue(It);let Fo;var So=C(ui);_p(So,{get muted(){return X()},click:ir,get ref(){return mt.volume},set ref(To){mt.volume=To}}),S(ui);var Uo=k(ui,2);{var zi=To=>{var ao=fw(),xn=C(ao);let zo=f(()=>!n(Rr));od(xn,{get disabled(){return n(Ii)},get click(){return Je},isMobile:!0,get isPlaying(){return n(zo)},get ref(){return mt.playButton},set ref(Wn){mt.playButton=Wn}}),S(ao),b(To,ao)};V(Uo,To=>{n(Rr)&&To(zi)})}var Co=k(Uo,2);let zn;var Cr=C(Co);Tc(Cr,{get position(){return pe()},get duration(){return qe()}}),S(Co),O((To,ao)=>{Fo=oe(ui,1,"wrapper-top-right s-x",null,Fo,To),zn=oe(Co,1,"wrapper-bottom ads-timeline-mobile s-x",null,zn,ao)},[()=>({fullscreen:we()}),()=>({fullscreen:we()})]),b(Fe,It)};V($n,Fe=>{se()&&d()!=="inactive"&&Fe(tn)})}var Fi=k($n,2);let Xi;var on=C(Fi);let nr;var yr=C(on),yn=C(yr),xr=C(yn);{var pt=Fe=>{Vo(Fe,{get disabled(){return n(Do)},get ref(){return mt.replayButton},set ref(It){mt.replayButton=It},children:(It,ui)=>{id(It,{get disabled(){return n(Do)},get click(){return Vt}})},$$slots:{default:!0}})};V(xr,Fe=>{si&&Fe(pt)})}var xt=k(xr,2);{var so=Fe=>{Vo(Fe,{get ref(){return mt.liveButton},set ref(It){mt.liveButton=It},children:(It,ui)=>{Cc(It,{get isLiveActive(){return n(Hi)},isMobile:!0,get ariaLabel(){return n($o)}})},$$slots:{default:!0}})};V(xt,Fe=>{!se()&&P()&&Fe(so)})}var go=k(xt,2);{var nn=Fe=>{let It=f(()=>se()?pe():G()),ui=f(()=>se()?qe():D()),Fo=f(()=>!e.showControls);dc(Fe,{get showDuration(){return n(Br)},get position(){return n(It)},get duration(){return n(ui)},isMobile:!0,get isHidden(){return n(Fo)},get ref(){return mt.time},set ref(So){mt.time=So}})};V(go,Fe=>{n(as)&&Fe(nn)})}var yo=k(go,2);let xo=f(()=>!n(_r));Vo(yo,{className:"w-max",get disabled(){return n(xo)},get ref(){return mt.episodes},set ref(Fe){mt.episodes=Fe},children:(Fe,It)=>{var ui=Le(),Fo=ue(ui);{var So=Uo=>{var zi=vw(),Co=k(ue(zi),2);gc(Co,{get position(){return G()},get duration(){return D()},get timeCodes(){return it}}),b(Uo,zi)};V(Fo,Uo=>{n(_r)&&Uo(So)})}b(Fe,ui)},$$slots:{default:!0}}),S(yn),je(yn,Fe=>ti.bottomLeft=Fe,()=>ti==null?void 0:ti.bottomLeft);var Ei=k(yn,2),wo=C(Ei);{var Ur=Fe=>{Vo(Fe,{get ref(){return mt.volume},set ref(It){mt.volume=It},children:(It,ui)=>{_p(It,{get muted(){return n(Bn)},click:ir})},$$slots:{default:!0}})};V(wo,Fe=>{n(On)&&Fe(Ur)})}var wr=k(wo,2);{var ys=Fe=>{Vo(Fe,{get ref(){return mt.settings},set ref(It){mt.settings=It},children:(It,ui)=>{Xl(It,{get ref$(){return or}})},$$slots:{default:!0}})};V(wr,Fe=>{n(gr)&&Fe(ys)})}var Ui=k(wr,2);{var xs=Fe=>{Vo(Fe,{get ref(){return mt.fullscreen},set ref(It){mt.fullscreen=It},children:(It,ui)=>{pc(It,{get click(){return e.toggleFullscreen},get isFullscreen(){return we()}})},$$slots:{default:!0}})};V(Ui,Fe=>{n(tr)&&Fe(xs)})}S(Ei),je(Ei,Fe=>ti.bottomRight=Fe,()=>ti==null?void 0:ti.bottomRight),S(yr),je(yr,Fe=>K(Fe),()=>K());var ls=k(yr,2);let Sr=f(()=>!e.showControls);el(ls,{get isHidden(){return n(Sr)},get isAds(){return se()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return z()},get ref(){return mt.timeline},set ref(Fe){mt.timeline=Fe}}),S(on),je(on,Fe=>ti.bottom=Fe,()=>ti==null?void 0:ti.bottom),S(Fi),je(Fi,Fe=>Qe(Fe),()=>Qe());var Ho=k(Fi,2);{var zr=Fe=>{bc(Fe,{get ref(){return mt.interactiveTimeIndicator},set ref(It){mt.interactiveTimeIndicator=It}})};V(Ho,Fe=>{Oi&&Fe(zr)})}O((Fe,It)=>{Xi=oe(Fi,1,"wrapper-bottom mobile s-x",null,Xi,Fe),nr=oe(on,1,"controls-wrapper s-x",null,nr,It)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth}),()=>({fullscreen:we()})]),b(t,Un),H(),o()}Ge(["click"]);function Ic(t,e){B(e,!0);let[i,o]=Ne(),r=()=>w(I,"$isMobile",i),a=h(e,"bottomNoSmooth",3,!1),l=h(e,"playerControlsWrapperRef",15,void 0),d=h(e,"playerControlsRef",15,void 0),s=h(e,"isAds",3,!1),u=h(e,"logoTargetUrl",3,""),m=h(e,"showAutoplayNext",3,!1),p=h(e,"isOneVideoPlaylist",3,!1),v=h(e,"customFullscreenSupported",3,!0),_=h(e,"endScreenShown",3,!1),y=h(e,"onDisabledPlayPrevChapterClick",3,bv.noop),$=h(e,"onDisabledSeekToInteractiveClick",3,bv.noop),I=be().ui.isMobile,T=q(!1);Rt(()=>{let E=setTimeout(()=>N(T,!0),0);return()=>clearTimeout(E)});var R=Le(),A=ue(R);{var P=E=>{var z=Le(),F=ue(z);{var U=ae=>{_v(ae,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return a()},get showControls(){return e.showControls},get isAds(){return s()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},get showAutoplayNext(){return m()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get isOneVideoPlaylist(){return p()},get customFullscreenSupported(){return v()},get endScreenShown(){return _()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return y()},get onDisabledSeekToInteractiveClick(){return $()},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(Z){l(Z)},get playerControlsRef(){return d()},set playerControlsRef(Z){d(Z)}})},X=ae=>{uv(ae,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return a()},get showControls(){return e.showControls},get isAds(){return s()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},get isOneVideoPlaylist(){return p()},get showAutoplayNext(){return m()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get customFullscreenSupported(){return v()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(Z){l(Z)},get playerControlsRef(){return d()},set playerControlsRef(Z){d(Z)}})};V(F,ae=>{r()?ae(U):ae(X,!1)})}b(E,z)};V(A,E=>{n(T)&&E(P)})}b(t,R),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=f(()=>e.reversed?"transform:scaleX(-1);transform-origin:50% 0;":""),o=f(()=>`${un(e.size)}${n(i)}`);Xe(t,{get width(){return"48"},get height(){return"48"},get fill(){return e.fill},get style(){return n(o)},get testId(){return e.testId},get shadow(){return e.shadow},children:(r,a)=>{var l=_w();b(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=f(()=>i()?"transform:scaleX(-1);transform-origin: 50% 0;":void 0),r=f(()=>`seek-icon-${i()?"backward":"forward"}`);Xe(t,{get width(){return"48"},get height(){return"48"},get style(){return n(o)},get testId(){return n(r)},get shadow(){return e.shadow},children:(a,l)=>{var d=bw();b(a,d)},$$slots:{default:!0}}),H()}var $w=L('<span class="hot-key-helpers-text s-19"> </span>'),yw=L('<div data-testid="hotkey-helper-icon" class="s-19"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),xw=L("<div><!></div>"),ww={hash:"s-19",code:'.hot-key-helpers-container.s-19{align-items:center;animation:s-19-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-19{left:calc(25% - 100px)}.hot-key-helpers-container--right.s-19{left:calc(75% - 100px)}.hot-key-helpers-text.s-19{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-19{animation:s-19-fadeOut ease var(--controls-transition-duration);height:0;visibility:hidden;width:0}@keyframes s-19-fadeIn{0%{opacity:0}to{opacity:1}}@keyframes s-19-fadeOut{0%{opacity:1}to{opacity:0}}'};function yv(t,e){B(e,!0),Q(t,ww);let[i,o]=Ne(),r=()=>w(e.data,"$data",i),a=be(),{features:l}=Nt(),d=a.ui.t,s=f(()=>!r()),u=f(()=>{var I;return((I=r())==null?void 0:I.type)==="BACKWARD_SEEK"}),m=f(()=>{var I;return((I=r())==null?void 0:I.type)==="FORWARD_SEEK"}),p=f(()=>{var I;return(I=r())==null?void 0:I.type}),v=f(()=>{var I,T;return(I=r())!=null&&I.t?d(r().t.key,{value:r().t.value||""}):(T=r())==null?void 0:T.text});var _=xw();let y;var $=C(_);{var x=I=>{var T=yw(),R=ue(T),A=C(R);{var P=K=>{let se=f(()=>n(p)==="BACKWARD_SEEK");$v(K,{get reversed(){return n(se)},shadow:!0})};V(A,K=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(n(p))&&K(P)})}var E=k(A,2);{var z=K=>{Fs(K,{get size(){return"48"},shadow:!0})};V(E,K=>{n(p)==="PAUSE"&&!l.playbackStatusShow&&K(z)})}var F=k(E,2);{var U=K=>{Vn(K,{get size(){return"48"},shadow:!0})};V(F,K=>{n(p)==="PLAY"&&!l.playbackStatusShow&&K(U)})}var X=k(F,2);{var ae=K=>{$c(K,{get size(){return"48"},shadow:!0})};V(X,K=>{n(p)==="REPLAY"&&!l.playbackStatusShow&&K(ae)})}var Z=k(X,2);{var re=K=>{ua(K,{get size(){return"48"},type:"off",shadow:!0})};V(Z,K=>{n(p)==="SUBTITLES_OFF"&&K(re)})}var J=k(Z,2);{var we=K=>{ua(K,{get size(){return"48"},shadow:!0})};V(J,K=>{n(p)==="SUBTITLES_ON"&&K(we)})}var me=k(J,2);{var ee=K=>{let se=f(()=>n(p)==="RATE_DOWN");Ec(K,{get size(){return"48"},get reversed(){return n(se)},testId:"rate-change-icon",shadow:!0})};V(me,K=>{["RATE_DOWN","RATE_UP"].includes(n(p))&&K(ee)})}var _e=k(me,2);{var Ce=K=>{let se=f(()=>n(p)==="EPISODE_PREV");fa(K,{get size(){return"48"},get reversed(){return n(se)},shadow:!0})};V(_e,K=>{["EPISODE_PREV","EPISODE_NEXT"].includes(n(p))&&K(Ce)})}var ge=k(_e,2);{var pe=K=>{pa(K,{get size(){return"48"},volume:0,shadow:!0})};V(ge,K=>{n(p)==="MUTE"&&K(pe)})}var qe=k(ge,2);{var G=K=>{pa(K,{get size(){return"48"},volume:1,shadow:!0})};V(qe,K=>{n(p)==="VOLUME"&&K(G)})}S(R);var D=k(R,2);{var Qe=K=>{var se=$w(),xe=C(se,!0);S(se),O(()=>ve(xe,n(v))),b(K,se)};V(D,K=>{n(v)&&K(Qe)})}O(()=>Ve(R,"data-type",n(p))),b(I,T)};V($,I=>{!n(s)&&n(p)&&I(x)})}S(_),O(I=>y=oe(_,1,"hot-key-helpers-container s-19",null,y,I),[()=>({hidden:n(s),"hot-key-helpers-container--left":n(u),"hot-key-helpers-container--right":n(m)})]),b(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 Pc(t,e){B(e,!0),Q(t,Iw);let i=h(e,"isShifted",3,!1),o=be(),r=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),a=()=>{o.actions.internal.startCameraManualRotation(0,1)},l=()=>{o.actions.internal.startCameraManualRotation(0,-1)},d=()=>{o.actions.internal.startCameraManualRotation(1,0)},s=()=>{o.actions.internal.startCameraManualRotation(-1,0)},u=()=>(o.actions.internal.stopCameraManualRotation(),null),m=j("aria_label_spherical_control");var p=Tw();let v;p.__keydown=[Sw,r,a,l,s,d],p.__keyup=[Cw,r,u];var _=C(p),y=C(_),$=C(y);$.__mousedown=a,$.__mouseup=u;var x=C($);Mr(x,{direction:"up",useBtnColor:!0}),S($);var I=k($,2);I.__mousedown=d,I.__mouseup=u;var T=C(I);Mr(T,{direction:"up",useBtnColor:!0}),S(I),S(y);var R=k(y,2),A=C(R);A.__mousedown=s,A.__mouseup=u;var P=C(A);Mr(P,{direction:"up",useBtnColor:!0}),S(A);var E=k(A,2);E.__mousedown=l,E.__mouseup=u;var z=C(E);Mr(z,{direction:"up",useBtnColor:!0}),S(E),S(R),S(_),S(p),O(F=>{v=oe(p,1,"immersive-controls s-p",null,v,F),Ve(p,"aria-label",m)},[()=>({"m-shifted":i()})]),ct("mouseleave",$,u),ct("mouseleave",I,u),ct("mouseleave",A,u),ct("mouseleave",E,u),b(t,p),H()}Ge(["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-b"><span class="caption-segment s-b"> </span></span>'),Pw=L('<span class="caption-line s-b"><span class="caption-segment s-b"></span></span>'),kw=L('<span class="caption-line s-b"><span class="caption-segment s-b"> </span></span>'),Aw=L('<div><span class="caption s-b"><!></span></div>'),Lw=L("<div><!></div>"),Mw={hash:"s-b",code:".subtitles-container.s-b{height:100%;left:0;pointer-events:none;position:absolute;top:0;transition:transform var(--controls-transition-duration);width:100%}.subtitles-container.shifted.s-b{transform:translateY(calc(var(--controls-height)*-1))}.subtitles-container.preview-track-active.s-b{transform:translateY(calc(var(--preview-track-height)*-1))}.preview-track-active.s-b .subtitles-caption:where(.s-b){bottom:var(--preview-track-controls-top-offset)}.subtitles-caption.s-b{bottom:4%;display:flex;justify-content:center;left:4%;position:absolute;right:4%}.subtitles-caption.mobile.s-b{bottom:8%}.subtitles-container.auto.s-b .subtitles-caption:where(.s-b){left:var(--subtitles-caption-margin);right:var(--subtitles-caption-margin)}.caption.s-b{background:rgba(0,0,0,.4);border-radius:4px;display:block;overflow-wrap:normal;padding:4px 8px}.subtitles-container.auto.s-b .caption:where(.s-b){width:100%}.caption-line.s-b{display:block;text-align:center}.subtitles-container.auto.s-b .caption-line:where(.s-b){text-align:left}.caption-segment.s-b{color:var(--white);display:inline-block;font-size:13px;line-height:1.2;white-space:pre-wrap}"};function ol(t,e){B(e,!0),Q(t,Mw);let[i,o]=Ne(),r=()=>w(v,"$currentSubtitle$",i),a=()=>w(y,"$isLive$",i),l=()=>w($,"$isFullscreen",i),d=()=>w(x,"$previewTrackActive",i),s=()=>w(_,"$isAutoSubtitleCaptionVisible$",i),u=h(e,"isMobile",3,!1),m=be(),p=Nt(),v=m.state.currentSubtitle$,_=m.state.isAutoSubtitleCaptionVisible$,y=m.state.isLive$,$=m.ui.isFullscreen,x=m.ui.previewTrackActive,I=f(()=>!!r().isAuto),T=f(()=>!!a()),R=f(()=>e.playerSize.width*.02),A=f(()=>u()&&!l()||n(R)<=p.minSubtitlesFontSize?p.minSubtitlesFontSize:n(R)),P=q(null);De(()=>{var Z,re,J;(Z=n(P))==null||Z.setIsAuto(n(I)),(re=n(P))==null||re.setIsLive(n(T)),(J=n(P))==null||J.setCaptions(e.captions)});let E=q(li([[]]));Rt(()=>{N(P,new bp().subscribe(),!0);let Z=n(P).captionsPrepared$.subscribe(re=>{N(E,re,!0)});return()=>{var re;(re=n(P))==null||re.destroy(),Z.unsubscribe()}}),Rt(()=>{if(n(I)){let Z=window.setTimeout(()=>{_.set(!1)},p.autoSubtitlesTimeout);return()=>{window.clearTimeout(Z)}}else _.set(!1)});let z=f(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var F=Lw();let U;var X=C(F);{var ae=Z=>{var re=Aw();let J;var we=C(re),me=C(we);{var ee=Ce=>{var ge=Ew(),pe=C(ge),qe=C(pe,!0);S(pe),S(ge),O(G=>{var D;Ke(pe,`font-size: ${(D=n(A))!=null?D:""}px`),ve(qe,G)},[()=>j("subtitles_auto_caption")]),b(Ce,ge)},_e=(Ce,ge)=>{{var pe=G=>{var D=Le(),Qe=ue(D);_i(Qe,17,()=>n(E),Od,(K,se)=>{var xe=Pw(),Be=C(xe);_i(Be,21,()=>n(se),({value:tt,timeAppeared:ne})=>ne,(tt,ne)=>{let ce=()=>n(ne).value,Re=()=>n(ne).timeAppeared;var Ae=Le(),Je=ue(Ae);{var Ee=Te=>{var He=vs();O(()=>ve(He,ce())),b(Te,He)};V(Je,Te=>{(!Re()||Re()<=e.position)&&Te(Ee)})}b(tt,Ae)}),S(Be),S(xe),O(()=>{var tt;return Ke(Be,`font-size: ${(tt=n(A))!=null?tt:""}px`)}),b(K,xe)}),b(G,D)},qe=G=>{var D=Le(),Qe=ue(D);_i(Qe,17,()=>e.captions,({value:K})=>K,(K,se)=>{let xe=()=>n(se).value;var Be=kw(),tt=C(Be),ne=C(tt,!0);S(tt),S(Be),O(()=>{var ce;Ke(tt,`font-size: ${(ce=n(A))!=null?ce:""}px`),ve(ne,xe())}),b(K,Be)}),b(G,D)};V(Ce,G=>{var D;n(I)&&((D=n(E))!=null&&D.length)?G(pe):G(qe,!1)},ge)}};V(me,Ce=>{n(I)&&s()?Ce(ee):Ce(_e,!1)})}S(we),S(re),O(Ce=>{var ge;J=oe(re,1,"subtitles-caption s-b",null,J,Ce),Ke(re,`--subtitles-caption-margin: ${(ge=n(z))!=null?ge:""}%`)},[()=>({mobile:u()})]),b(Z,re)};V(X,Z=>{var re;(e.captions.length||(re=n(E))!=null&&re.length)&&Z(ae)})}S(F),O(Z=>U=oe(F,1,"subtitles-container s-b",null,U,Z),[()=>({shifted:e.shifted,"preview-track-active":d(),auto:n(I)&&!n(T)&&!s()})]),b(t,F),H(),o()}var Fb=require("@vkontakte/videoplayer-core/es2018");var Vw=L('<div class="text s-q"> </div>'),Rw=L('<div><div class="icon_wrapper s-q"><!></div> <!></div>'),Nw={hash:"s-q",code:".wrapper.s-q{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-q{background-size:cover}.icon_wrapper.s-q{align-items:center;display:flex;flex-direction:column;width:400px}.text.s-q{margin-top:20px}"};function kc(t,e){B(e,!0),Q(t,Nw);let i=h(e,"chromecastDeviceName",3,"chromecastDeviceName"),o=Nt();var r=Rw();let a;r.__contextmenu=function(...m){var p;(p=e.onContextMenu)==null||p.apply(this,m)},r.__click=function(...m){var p;(p=e.onClick)==null||p.apply(this,m)},r.__dblclick=function(...m){var p;(p=e.onDblClick)==null||p.apply(this,m)};var l=C(r),d=C(l);mc(d,{get size(){return"48"},get iconState(){return Fb.ChromecastState.CONNECTED}}),S(l);var s=k(l,2);{var u=m=>{var p=Vw(),v=C(p);S(p),O(()=>{var _;return ve(v,`Видео воспроизводится на ${(_=i())!=null?_:""}`)}),b(m,p)};V(s,m=>{i()&&m(u)})}S(r),O(m=>{a=oe(r,1,"wrapper s-q",null,a,m),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})]),b(t,r),H()}Ge(["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){Xe(t,{width:"200",height:"200",viewBox:"460 190 130 90",testId:"error-icon",children:(e,i)=>{var o=Dw();b(e,o)},$$slots:{default:!0}})}var Ow=L('<div class="container s-5"><!></div>'),Bw={hash:"s-5",code:".container.s-5{align-items:center;background:#000;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}"};function nl(t){Q(t,Bw);var e=Ow(),i=C(e);xv(i,{}),S(e),b(t,e)}var Hw=L('<div class="playButton s-a" tabindex="0" role="button"><div class="playButtonBackground s-a"></div> <!></div>'),Fw=L('<div data-testid="unstarted-thumb"><!></div>'),Uw={hash:"s-a",code:".container.s-a{background-position:50%;background-repeat:no-repeat;background-size:contain;bottom:0;cursor:pointer;left:0;position:absolute;right:0;top:0;transition:opacity .2s,visibility .2s;will-change:opacity}.container.hidden.s-a{opacity:0;visibility:hidden}.container.bgCover.s-a{background-size:cover}.playButton.s-a{align-items:center;display:flex;height:var(--big-play-size);justify-content:center;margin:auto;width:var(--big-play-size)}.playButton.s-a,.playButtonBackground.s-a{bottom:0;left:0;position:absolute;right:0;top:0}.playButtonBackground.s-a{background-color:var(--big-play-bg-color);border-radius:var(--big-play-radius);transition:background .2s,transform .2s;transition-timing-function:ease-out;will-change:background,transform}.container.s-a:hover .playButtonBackground:where(.s-a){background-color:var(--big-play-hover-bg-color);transform:scale(1.15)}.playButton.s-a svg{position:relative}"};function rl(t,e){B(e,!0),Q(t,Uw);let i=h(e,"iconVisible",3,!0),o=be(),r=Nt(),a=o.ui.startedByKeyboard$,l=j("tooltip_play"),d=_=>{var $;let y=_.code;["Enter","Space"].includes(y)&&(_.stopPropagation(),_.preventDefault(),a.set(!0),($=e.startVideo)==null||$.call(e))},s=_=>{var y,$;_.stopPropagation(),(y=e.startVideo)==null||y.call(e),($=e.onClick)==null||$.call(e,_)};var u=Fw();let m;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 $=k(C(y),2);Vn($,{get size(){return"48"}}),S(y),O(()=>Ve(y,"aria-label",l)),b(_,y)};V(p,_=>{i()&&_(v)})}return S(u),O(_=>{m=oe(u,1,"container s-a",null,m,_),Ke(u,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:r.features.previewNoEmptySpace})]),b(t,u),H({handlePressKey:d,handleClick:s})}Ge(["click","contextmenu","keydown"]);var zw=L('<span class="text s-1f"> </span>'),Ww=(t,e)=>{var i;return(i=e.onTitleClicked)==null?void 0:i.call(e)},Kw=L('<a target="_blank" class="link s-1f"><!></a>'),qw=(t,e)=>e.onTitleClicked(),Qw=L("<button><!></button>"),Gw=L('<div data-testid="video_title"><!></div>'),Yw={hash:"s-1f",code:".title.s-1f{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-1f,.title.s-1f{color:var(--white)}.link.s-1f{pointer-events:auto;text-decoration:none}.link.s-1f:hover{text-decoration:underline}.text.s-1f{pointer-events:auto}.size-sm.s-1f{font-size:14px;font-weight:500;line-height:18px}.hidden.s-1f{opacity:0;transform:translateY(calc(var(--controls-gradient-height)*-1));visibility:hidden}"};function wv(t,e){B(e,!0),Q(t,Yw);let i=_=>{var y=zw(),$=C(y,!0);S(y),je(y,x=>l(x),()=>l()),O(()=>ve($,o())),ct("mouseenter",y,function(...x){var I;(I=e.onMouseEnter)==null||I.apply(this,x)}),ct("mouseleave",y,function(...x){var I;(I=e.onMouseLeave)==null||I.apply(this,x)}),b(_,y)},o=h(e,"title",3,""),r=h(e,"isHidden",3,!1),a=h(e,"size",3,"md"),l=h(e,"ref",15),d=q(void 0);Rt(()=>{var y;requestAnimationFrame(()=>{var $;($=e.onVisibilityChanged)==null||$.call(e,!0)});function _($){var x;$.propertyName==="transform"&&((x=e.onVisibilityChanged)==null||x.call(e,!r()))}return(y=n(d))==null||y.addEventListener("transitionend",_),()=>{var $;return($=n(d))==null?void 0:$.removeEventListener("transitionend",_)}});var s=Gw();let u;var m=C(s);{var p=_=>{var y=Kw();y.__click=[Ww,e];var $=C(y);i($),S(y),O(()=>Ve(y,"href",e.titleLinkHref)),b(_,y)},v=(_,y)=>{{var $=I=>{var T=Qw();T.__click=[qw,e];var R=C(T);i(R),S(T),b(I,T)},x=I=>{i(I)};V(_,I=>{e.onTitleClicked?I($):I(x,!1)},y)}};V(m,_=>{e.titleLinkHref?_(p):_(v,!1)})}S(s),je(s,_=>N(d,_),()=>n(d)),O(_=>u=oe(s,1,`title size-${a()}`,"s-1f",u,_),[()=>({hidden:r()})]),b(t,s),H()}Ge(["click"]);var Ub=require("@vkontakte/videoplayer-shared/es2018");var jw=L('<div class="timer__cell cell s-10"><span class="cell__value s-10"> </span> <span class="cell__unit s-10"> </span></div> <span class="timer__points s-10"> </span>',1),Xw=L('<div class="timer__cell cell s-10"><span class="cell__value s-10"> </span> <span class="cell__unit s-10"> </span></div> <span class="timer__points s-10"> </span>',1),Zw=L('<div class="timer__cell cell s-10"><span class="cell__value s-10"> </span> <span class="cell__unit s-10"> </span></div> <span class="timer__points s-10"> </span>',1),Jw=L('<div class="timer__cell cell s-10"><span class="cell__value s-10"> </span> <span class="cell__unit s-10"> </span></div>'),eS=L("<div><!> <!> <!> <!></div>"),tS={hash:"s-10",code:".timer__container.s-10{align-items:flex-start;display:flex;justify-content:center}.cell.s-10{align-items:center;display:flex;flex-direction:column}.cell__value.s-10{font-size:48px;font-weight:600;line-height:1.2}.small.s-10 .cell__value:where(.s-10){font-size:24px}.cell__unit.s-10{font-size:14px;font-weight:400;line-height:1.2}.small.s-10 .cell__unit:where(.s-10){font-size:12px}.timer__points.s-10{display:inline-block;font-size:42px;font-weight:600;line-height:1.2;margin:0 8px}.small.s-10 .timer__points:where(.s-10){font-size:20px}"};function Sv(t,e){B(e,!0),Q(t,tS);let i=q(""),o=q(""),r=q(""),a=q(""),l,d=32,s=d/2,u=F=>String(F).padStart(2,"0"),m=F=>Math.max(F.length,1),p=F=>`${(e.isSmallSize?s:d)*m(F)}px`,v=F=>{let U=Math.floor(F/86400);U&&(F-=U*86400,N(i,u(U),!0));let X=Math.floor(F/3600);N(o,u(X),!0);let ae=Math.floor(F/60)%60;N(r,u(ae),!0);let Z=F%60;N(a,u(Z),!0)},_=()=>{let F=Math.floor(Date.now()/1e3),U=e.startTime-F;v(U),U>=1?l=requestAnimationFrame(_):e.onTimerOver()};Rt(()=>{l=requestAnimationFrame(_)}),cn(()=>{cancelAnimationFrame(l)});var y=eS();let $;var x=C(y);{var I=F=>{var U=jw(),X=ue(U);let ae;var Z=C(X),re=C(Z,!0);S(Z);var J=k(Z,2),we=C(J,!0);S(J),S(X);var me=k(X,2),ee=C(me,!0);S(me),O((_e,Ce,ge)=>{ae=Ke(X,"",ae,{width:_e}),ve(re,n(i)),ve(we,Ce),ve(ee,ge)},[()=>p(n(i)),()=>j("waiting_live_day_value"),()=>j("waiting_live_colon")]),b(F,U)};V(x,F=>{n(i)&&F(I)})}var T=k(x,2);{var R=F=>{var U=Xw(),X=ue(U);let ae;var Z=C(X),re=C(Z,!0);S(Z);var J=k(Z,2),we=C(J,!0);S(J),S(X);var me=k(X,2),ee=C(me,!0);S(me),O((_e,Ce,ge)=>{ae=Ke(X,"",ae,{width:_e}),ve(re,n(o)),ve(we,Ce),ve(ee,ge)},[()=>p(n(o)),()=>j("waiting_live_hour_value"),()=>j("waiting_live_colon")]),b(F,U)};V(T,F=>{n(o)&&F(R)})}var A=k(T,2);{var P=F=>{var U=Zw(),X=ue(U);let ae;var Z=C(X),re=C(Z,!0);S(Z);var J=k(Z,2),we=C(J,!0);S(J),S(X);var me=k(X,2),ee=C(me,!0);S(me),O((_e,Ce,ge)=>{ae=Ke(X,"",ae,{width:_e}),ve(re,n(r)),ve(we,Ce),ve(ee,ge)},[()=>p(n(r)),()=>j("waiting_live_minute_value"),()=>j("waiting_live_colon")]),b(F,U)};V(A,F=>{n(r)&&F(P)})}var E=k(A,2);{var z=F=>{var U=Jw();let X;var ae=C(U),Z=C(ae,!0);S(ae);var re=k(ae,2),J=C(re,!0);S(re),S(U),O((we,me)=>{X=Ke(U,"",X,{width:we}),ve(Z,n(a)),ve(J,me)},[()=>p(n(a)),()=>j("waiting_live_second_value")]),b(F,U)};V(E,F=>{n(a)&&F(z)})}S(y),O(F=>$=oe(y,1,"timer__container s-10",null,$,F),[()=>({small:e.isSmallSize})]),b(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),Q(t,rS);let i=h(e,"startTime",3,0),o=f(()=>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=f(()=>{var x,I;return((x=n(d))!=null?x:1/0)<=509||((I=n(s))!=null?I:1/0)<=320}),m=f(()=>{var x,I;return!n(u)&&(((x=n(d))!=null?x:1/0)<=699||((I=n(s))!=null?I:1/0)<=599)}),p=e.onUpcomingLiveViewStateChanged?(0,Ub.throttleFn)(()=>{cancelAnimationFrame(l),l=requestAnimationFrame(()=>{let x={type:n(o)?"expired":"default",size:n(u)?"s":n(m)?"m":"l"},I=n(o)?n(r):n(a);e.onUpcomingLiveViewStateChanged(x,I)})},300):void 0;De(()=>{n(s),n(d),n(o),p==null||p()}),cn(()=>{if(cancelAnimationFrame(l),p==null||p.cancel(),e.onUpcomingLiveViewStateChanged){let x={type:n(o)?"expired":"default",size:n(u)?"s":n(m)?"m":"l"};e.onUpcomingLiveViewStateChanged(x)}});var v=nS();v.__contextmenu=function(...x){var I;(I=e.onContextMenu)==null||I.apply(this,x)},v.__click=function(...x){var I;(I=e.onClick)==null||I.apply(this,x)};var _=C(v);{var y=x=>{var I=iS(),T=C(I);let R;var A=C(T,!0);S(T),S(I),je(I,P=>N(r,P),()=>n(r)),O((P,E)=>{R=oe(T,1,"waiting__title s-n",null,R,P),ve(A,E)},[()=>({medium:n(m),small:n(u)}),()=>j("waiting_live_upcoming_title")]),b(x,I)},$=x=>{var I=oS(),T=C(I);let R;var A=C(T,!0);S(T);var P=k(T,2);let E=f(()=>n(u)||n(m)),z=f(()=>i()||0);Sv(P,{get isSmallSize(){return n(E)},get startTime(){return n(z)},onTimerOver:()=>N(o,!0)}),S(I),je(I,F=>N(a,F),()=>n(a)),O((F,U)=>{R=oe(T,1,"timer__title s-n",null,R,F),ve(A,U)},[()=>({medium:n(m),small:n(u)}),()=>j("waiting_live_timer_title")]),b(x,I)};V(_,x=>{n(o)?x(y):x($,!1)})}S(v),O(()=>Ke(v,`background-image: url(${e.thumbUrl})`)),Ln(v,"clientWidth",x=>N(d,x)),Ln(v,"clientHeight",x=>N(s,x)),b(t,v),H()}Ge(["contextmenu","click"]);var sS=L('<div class="waiting-container s-o"><div class="waiting-caption s-o"><!> <p class="waiting-title s-o"> </p></div></div>'),aS={hash:"s-o",code:'.waiting-container.s-o{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-o,.waiting-container.s-o:before{height:100%;left:0;position:absolute;top:0;width:100%}.waiting-container.s-o:before{backdrop-filter:blur(10px);background-color:rgba(0,0,0,.4);content:""}.waiting-caption.s-o{align-items:center;display:flex;flex-direction:column;position:relative}.waiting-title.s-o{font-size:20px;font-weight:400;line-height:1.2;margin:0;padding:20px;text-align:center}'};function sl(t,e){B(e,!0),Q(t,aS);let i=h(e,"thumbUrl",3,""),o={recover:j("waiting_live_recover_title"),record:j("waiting_record_title")},r=f(()=>o[e.kind]||"");var a=sS();a.__contextmenu=function(...m){var p;(p=e.onContextMenu)==null||p.apply(this,m)},a.__click=function(...m){var p;(p=e.onClick)==null||p.apply(this,m)};var l=C(a),d=C(l);Qa(d,{style:"position: static; transform: translate(0, 0)"});var s=k(d,2),u=C(s,!0);S(s),S(l),S(a),O(()=>{Ke(a,`background-image: url('${i()}')`),ve(u,n(r))}),b(t,a),H()}Ge(["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){Xe(t,{width:"16",height:"16",testId:"check-mark-icon",children:(e,i)=>{var o=lS();b(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){Q(t,cS);var e=dS(),i=C(e);Cv(i,{}),S(e),b(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-1q"> </p>'),vS=L('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),gS={hash:"s-1q",code:".menu-item-value.s-1q{align-items:end;display:flex;flex-direction:column;min-width:0}.menu-item-value[data-selected=false].s-1q{--select-icon-width:16px;--icon-padding:12px;margin-left:calc(var(--icon-padding) + var(--select-icon-width))}.label.s-1q,.sublabel.s-1q{max-width:100%;overflow:hidden;text-overflow:ellipsis}.sublabel.s-1q{opacity:.5}"};function Tv(t,e){B(e,!0),Q(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=k(a,2);let s;var u=C(d);{var m=y=>{var $=Le(),x=ue($);Vi(x,()=>e.item.valueComponent,(I,T)=>{T(I,is(()=>{var R;return(R=e.item.valueComponentParams)!=null?R:{}}))}),b(y,$)},p=y=>{var $=fS();let x;var I=C($,!0);S($),O(T=>{var R;x=oe($,1,"label s-1q",null,x,T),ve(I,(R=e.item.label)!=null?R:e.item.value)},[()=>({mobile:i()})]),b(y,$)};V(u,y=>{e.item.valueComponent?y(m):y(p,!1)})}var v=k(u,2);{var _=y=>{var $=mS(),x=C($,!0);S($),O(()=>ve(x,e.item.sublabel)),b(y,$)};V(v,y=>{e.item.sublabel&&y(_)})}S(d),S(o),O((y,$,x)=>{var I;r=oe(o,1,"item",null,r,y),Ve(o,"data-value",(I=e.item.dataValue)!=null?I:e.item.value),Ve(o,"aria-label",$),Ve(o,"data-testid",e.item.dataTestid),s=oe(d,1,"menu-item-value s-1q",null,s,x),Ve(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>{var y,$;return($=(y=e.item.ariaLabel)!=null?y:e.item.label)!=null?$:e.item.value.toString()},()=>({"submenu-value-mobile":i()})]),b(t,o),H()}Ge(["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=f(()=>()=>e.openSubMenuList(e.item.children)),a=f(()=>$=>Ju($,n(r)));var l=hS();let d;l.__click=function(...$){var x;(x=n(r))==null||x.apply(this,$)},l.__keydown=function(...$){var x;(x=n(a))==null||x.apply(this,$)};var s=C(l);{var u=$=>{Lc($,{})};V(s,$=>{e.item.selected&&$(u)})}var m=k(s,2);let p;var v=C(m);{var _=$=>{var x=Le();let I=f(()=>e.item.valueComponent);var T=ue(x);Vi(T,()=>n(I),(R,A)=>{A(R,is(()=>{var P;return(P=e.item.valueComponentParams)!=null?P:{}}))}),b($,x)},y=$=>{var x=vs();O(()=>ve(x,e.item.label)),b($,x)};V(v,$=>{e.item.valueComponent?$(_):$(y,!1)})}S(m),S(l),je(l,$=>o(o()[e.item.id]=$,!0),()=>{var $;return($=o())==null?void 0:$[e.item.id]}),O(($,x)=>{var I;d=oe(l,1,"item",null,d,$),Ve(l,"aria-label",(I=e.item.ariaLabel)!=null?I:e.item.label),Ve(l,"data-testid",e.item.id),p=oe(m,1,"menu-item-value",null,p,x)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),b(t,l),H()}Ge(["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-1i"> </p></li> <!></ul></div>'),wS={hash:"s-1i",code:".sub-menu.s-1i{--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-1i .item.mobile{font-size:14px;line-height:var(--item-label-line-height);padding:var(--item-padding-vertical-mobile) 17px}.sub-menu.s-1i{padding-top:calc(var(--edge-item-padding-vertical) + var(--item-padding-vertical) + var(--item-label-line-height))}.sub-menu.mobile.s-1i{padding-top:calc(var(--edge-item-padding-vertical-mobile) + var(--item-padding-vertical-mobile) + var(--item-label-line-height) + 1px)}.sub-menu.s-1i .items:where(.s-1i) .item.header:where(.s-1i){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-1i .title:where(.s-1i){margin-left:8px}.sub-menu.s-1i .item{padding:var(--item-padding-vertical) 12px;padding-right:22px}.items.s-1i .item:first-child:not(.mobile){padding-top:var(--edge-item-padding-vertical)}.items.s-1i .item:last-child:not(.mobile){padding-bottom:var(--edge-item-padding-vertical)}.items.s-1i .item.mobile:first-child{padding-top:var(--edge-item-padding-vertical-mobile)}.items.s-1i .item.mobile:last-child{padding-bottom:var(--edge-item-padding-vertical-mobile)}.sub-menu.s-1i .item.bottomBordered{border-bottom:var(--divider-border)}.sub-menu.s-1i .item .sublabel{font-size:12px;line-height:14px}.item.s-1i:not(.mobile) p:where(.s-1i),.sub-menu.s-1i .item:not(.mobile) .label{font-size:13px;line-height:var(--item-label-line-height)}"};function Pv(t,e){B(e,!0),Q(t,wS);let[i,o]=Ne(),r=()=>w(p,"$isFullscreen",i),a=()=>w(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);Rt(()=>{let Z=e.items.findIndex(re=>re.selected);u().children[Z+1].focus()});let m=be(),p=m.ui.isFullscreen,v=m.ui.playerSize,_=q(void 0),y=q(0),$=q(0),x=f(()=>l()&&r()?`max-height: ${Math.round(a().height*.6)}px`:l()?"":`max-height: ${a().height-32-n($)-d()}px; overflow: auto;`),I=f(()=>Math.max(e.minWidth,n(y)));var T=xS();let R;var A=C(T);let P;A.__keydown=[bS,e];var E=C(A);let z;E.__click=[$S,e],E.__keydown=[yS,e];var F=C(E);Mr(F,{direction:"left"});var U=k(F,2),X=C(U,!0);S(U),S(E),je(E,Z=>N(_,Z),()=>n(_));var ae=k(E,2);_i(ae,17,()=>e.items,Od,(Z,re)=>{var J=Le(),we=ue(J);{var me=_e=>{Tv(_e,{get item(){return n(re)},get isMobile(){return l()}})},ee=(_e,Ce)=>{{var ge=pe=>{Iv(pe,{get isMobile(){return l()},get item(){return n(re)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};V(_e,pe=>{n(re).type==="OPEN_SUB_MENU"&&pe(ge)},Ce)}};V(we,_e=>{n(re).type==="SELECT_VALUE"?_e(me):_e(ee,!1)})}b(Z,J)}),S(A),je(A,Z=>u(Z),()=>u()),S(T),O((Z,re,J)=>{R=oe(T,1,"sub-menu menu s-1i",null,R,Z),Ve(T,"data-testid",`${e.id}-sub-menu`),Ke(T,`min-width: ${n(I)}px`),P=oe(A,1,"items s-1i",null,P,re),Ke(A,n(x)),z=oe(E,1,"item header back s-1i",null,z,J),Ve(E,"aria-label",s()),ve(X,e.title)},[()=>({desktop:!l(),mobile:l()}),()=>({mobile:l()}),()=>({mobile:l()})]),Ln(E,"clientWidth",Z=>N(y,Z)),Ln(E,"clientHeight",Z=>N($,Z)),b(t,T),H(),o()}Ge(["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-1k"> </div>'),IS=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),ES={hash:"s-1k",code:".value.s-1k{opacity:.7;overflow:hidden;position:relative;text-overflow:ellipsis}"};function kv(t,e){B(e,!0),Q(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),m=C(u);{var p=T=>{Ja(T,{get icon(){return e.icon}})},v=T=>{var R=Le();let A=f(()=>e.icon);var P=ue(R);Vi(P,()=>n(A),(E,z)=>{z(E,is(a))}),b(T,R)};V(m,T=>{typeof e.icon=="string"?T(p):T(v,!1)})}S(u);var _=k(u,2),y=C(_,!0);S(_);var $=k(_,2);{var x=T=>{var R=Le();let A=f(r);var P=ue(R);Vi(P,()=>n(A),(E,z)=>{z(E,{})}),b(T,R)},I=T=>{var R=TS(),A=C(R,!0);S(R),O(()=>ve(A,e.value)),b(T,R)};V($,T=>{r()?T(x):T(I,!1)})}S(d),je(d,T=>l(T),()=>l()),O(T=>{s=oe(d,1,"item",null,s,T),Ve(d,"aria-label",e.ariaLabel),Ve(d,"data-testid",e.id),ve(y,e.label)},[()=>({mobile:i()})]),b(t,d),H()}Ge(["click","keydown"]);var Av=require("@vkontakte/videoplayer-shared/es2018");var PS=(t,e)=>{Ql(t,()=>e())},kS=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-1j"> </div></li>'),MS={hash:"s-1j",code:".label.s-1j{overflow:hidden;text-overflow:ellipsis}"};function Lv(t,e){B(e,!0),Q(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=()=>{N(a,!0)},d=x=>{x==null||x.stopPropagation(),o()(),r()()};var s=LS();let u;s.__click=d,s.__keydown=[PS,d];var m=C(s),p=C(m);{var v=x=>{var I=Le(),T=ue(I);{var R=P=>{var E=kS();b(P,E)},A=P=>{var E=AS();O(()=>Ve(E,"src",e.icon)),ct("error",E,l),Ma(E),b(P,E)};V(T,P=>{n(a)?P(R):P(A,!1)})}b(x,I)},_=x=>{var I=Le();let T=f(()=>e.icon);var R=ue(I);Vi(R,()=>n(T),(A,P)=>{P(A,{})}),b(x,I)};V(p,x=>{typeof e.icon=="string"?x(v):x(_,!1)})}S(m);var y=k(m,2),$=C(y,!0);S(y),S(s),O(x=>{var I;u=oe(s,1,"item",null,u,x),Ve(s,"aria-label",(I=e.ariaLabel)!=null?I:e.label),Ve(s,"data-testid",e.id),ve($,e.label)},[()=>({mobile:i()})]),b(t,s),H()}Ge(["click","keydown"]);var Kb=require("@vkontakte/videoplayer-shared/es2018");var VS=L('<div class="toggle_wrap s-1p"><div></div> <div class="toggle-label s-1p"></div></div>'),RS={hash:"s-1p",code:'.toggle_wrap.s-1p{cursor:pointer;font-size:12px;line-height:15px;min-height:15px;padding:0;user-select:none}.toggle.s-1p{background-color:var(--toggle-color-separator);border-radius:45px;cursor:pointer;float:right;height:9px;margin-top:3px;width:28px}.toggle.s-1p: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-1p:after{background-color:var(--toggle-color-on);left:13px}.toggle-label.s-1p{overflow:hidden}'};function Mv(t,e){Q(t,RS);let i=h(e,"enabled",3,!1);var o=VS(),r=C(o);let a;di(2),S(o),O(l=>a=oe(r,1,"toggle s-1p",null,a,l),[()=>({on:i()})]),b(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:(m,p)=>{var v=OS();let _;var y=C(v),$=C(y);{var x=P=>{Ja(P,{get icon(){return e.icon}})},I=P=>{var E=Le();let z=f(()=>e.icon);var F=ue(E);Vi(F,()=>n(z),(U,X)=>{X(U,{})}),b(P,E)};V($,P=>{typeof e.icon=="string"?P(x):P(I,!1)})}S(y);var T=k(y,2),R=C(T,!0);S(T);var A=k(T,2);Mv(A,{get enabled(){return r()}}),S(v),O(P=>{_=oe(v,1,"switch-wrapper",null,_,P),ve(R,e.label)},[()=>({mobile:i()})]),b(m,v)},$$slots:{default:!0}}),S(d),O(m=>{var p;s=oe(d,1,"item switch-item",null,s,m),Ve(d,"aria-label",(p=e.ariaLabel)!=null?p:e.label),Ve(d,"data-testid",e.id)},[()=>({mobile:i()})]),b(t,d),H()}Ge(["click","keydown"]);var Vc=require("@vkontakte/videoplayer-shared/es2018");var qb=()=>{let t=q(li([])),e=f(()=>(n(t).length?n(t).at(-1):null)||null);return{get current(){return n(e)},pushSubMenu:i=>{n(t).push(i)},popSubMenu:()=>{N(t,n(t).slice(0,-1),!0)},popAllSubMenus:()=>{N(t,[],!0)}}};var Qb=require("@vkontakte/videoplayer-shared/es2018");var HS=L('<div class="quality-icon s-1n"><!></div>'),FS=L('<div class="quality-label s-1n"><span> </span> <!></div>'),US={hash:"s-1n",code:".quality-label.s-1n{position:relative}.quality.s-1n{font-size:13px;line-height:18px}.quality.sub.s-1n{opacity:.7}.quality-icon.s-1n{display:flex;padding-left:2px;position:absolute;right:0;top:0;transform:translateX(100%)}.quality-icon.s-1n svg{color:var(--blue-light)}"};function al(t,e){B(e,!0),Q(t,US);let i=h(e,"isSubCase",3,!1),o=f(()=>e.quality?(0,Qb.getVideoQualityLabel)(e.quality):""),r=f(()=>rp(e.quality));var a=FS(),l=C(a);let d;var s=C(l,!0);S(l);var u=k(l,2);{var m=p=>{var v=HS();let _=f(()=>n(r));var y=C(v);Vi(y,()=>n(_),($,x)=>{x($,{})}),S(v),O(()=>Ve(v,"data-testid",`${n(o)}-icon`)),b(p,v)};V(u,p=>{n(r)&&!e.isMobile&&p(m)})}S(a),O(p=>{d=oe(l,1,"s-1n",null,d,p),ve(s,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),b(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-1s"><!></div>'),WS={hash:"s-1s",code:".menu-item-value-wrapper.s-1s{line-height:normal}"};function rd(t,e){B(e,!0),Q(t,WS);let[i,o]=Ne(),r=()=>w(s,"$currentQuality$",i),a=()=>w(u,"$availableQualities$",i),l=()=>w(m,"$isMobile$",i),d=be(),s=d.state.currentQuality$,u=d.state.availableQualities$,m=d.ui.isMobile,p=" · ",v=f(()=>e.prefix+(e.selected&&r()!==Xb.VideoQuality.INVARIANT?p:"")),_=f(()=>jb({prefix:n(v),quality:r(),availableQualities:a(),onlyPrefix:!e.selected}));var y=zS(),$=C(y);let x=f(()=>e.selected?r():void 0);al($,{get quality(){return n(x)},get label(){return n(_)},get isMobile(){return l()},isSubCase:!0}),S(y),b(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,m,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 $=y[0],x=((d=y.groups)==null?void 0:d.keyhtml)||((s=y.groups)==null?void 0:s.keyi18n)||((u=y.groups)==null?void 0:u.keyhtmlself)||((m=y.groups)==null?void 0:m.keyi18nself)||"",{index:I}=y;if(!i[x]){a.push(t.slice(l,I)),l=I+$.length;continue}let T=(p=y.groups)!=null&&p.childrenhtml?Nv(y.groups.childrenhtml,i):"",R=(v=y.groups)!=null&&v.childrenhtml?$.replace(new RegExp((_=y.groups)==null?void 0:_.childrenhtml),()=>T||""):$;a.push(t.slice(l,I),R),l=I+$.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=ue(r);{var l=d=>{var s=Le(),u=ue(s);Bd(u,()=>o),b(d,s)};V(a,d=>{o&&d(l)})}b(t,r),H()}var QS=L('<p class="quality-applies sublabel s-1r"><!></p>'),GS={hash:"s-1r",code:".quality-applies.s-1r{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),Q(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),b(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){Xe(t,{testId:"traffic-saving-icon",children:(e,i)=>{var o=jS();b(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){Xe(t,{width:"18",height:"15",children:(e,i)=>{var o=XS();b(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){Xe(t,{testId:"play-speed-icon",children:(e,i)=>{var o=ZS();b(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){Xe(t,{testId:"download-icon",children:(e,i)=>{var o=JS();b(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){Xe(t,{testId:"report-icon",children:(e,i)=>{var o=eC();b(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){Xe(t,{children:(e,i)=>{var o=tC();b(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){Xe(t,{testId:"info-icon",children:(e,i)=>{var o=iC();b(e,o)},$$slots:{default:!0}})}var oC=L('<div class="menu-item-value-wrapper s-1u"><!></div>'),nC={hash:"s-1u",code:".menu-item-value-wrapper.s-1u{line-height:normal}"};function Qv(t,e){B(e,!0),Q(t,nC);let[i,o]=Ne(),r=()=>w(u,"$currentQuality$",i),a=()=>w(m,"$availableQualities$",i),l=()=>w(p,"$isAutoQualityEnabled$",i),d=()=>w(v,"$isMobile$",i),s=be(),u=s.state.currentQuality$,m=s.state.availableQualities$,p=s.state.isAutoQualityEnabled$,v=s.ui.isMobile,_=f(()=>Yb({quality:r(),availableQualities:a(),isAutoQualityEnabled:l()}));var y=oC(),$=C(y);al($,{get quality(){return r()},get label(){return n(_)},get isMobile(){return d()}}),S(y),b(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-r"></div></div>'),cC=L('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),uC=L("<div><!> <!></div>"),pC={hash:"s-r",code:'.settings-menu-container.mobile.s-r{width:100%;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.settings-menu-container.s-r ul{list-style-type:none;margin:0;padding:0}.settings-menu-container.s-r .menu{background-color:var(--settings-bg);border-radius:var(--settings-radius);overflow:hidden;transition:opacity .2s,visibility .2s}.settings-menu-container.s-r .menu .item:first-child:not(.mobile){border-top-left-radius:var(--settings-radius);border-top-right-radius:var(--settings-radius)}.settings-menu-container.s-r .menu .item:last-child{border-bottom-left-radius:var(--settings-radius);border-bottom-right-radius:var(--settings-radius)}.settings-menu-container.s-r .settings-menu .item:first-child:not(.mobile){padding-top:6px}.settings-menu-container.s-r .settings-menu .item:last-child:not(.mobile){padding-bottom:6px}.settings-menu-container.s-r .menu.desktop{bottom:0;max-width:100%;position:absolute;right:0}.settings-menu.s-r{line-height:40px}.settings-menu.desktop.s-r{min-width:300px}.settings-menu-container.s-r .menu.mobile{background:var(--mobile-settings-bg);font-size:15px;line-height:50px;width:100%}.settings-menu-container.s-r .menu.mobile.hidden{display:none}.settings-menu-container.s-r .menu .item:not(.switch-item),.settings-menu-container.s-r .menu .switch-wrapper{align-items:center;color:var(--white);cursor:pointer;display:flex;justify-content:flex-end;position:relative;white-space:nowrap}.settings-menu-container.s-r .menu .item:hover{background-color:var(--settings-item-bg-hover)}.settings-menu-container.s-r .menu .item.mobile:hover{background:var(--mobile-settings-bg)}.settings-menu.s-r .item:not(.switch-item),.settings-menu.s-r .switch-wrapper{padding:0 32px 0 18px}.settings-menu.s-r .item.mobile:not(.switch-item),.settings-menu.s-r .switch-wrapper.mobile{padding:0 14px}.settings-menu.s-r .icon-wrapper{align-items:center;display:flex;height:24px;justify-content:center;margin-right:16px;min-width:24px;width:24px}.settings-menu.s-r .label{flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis}.settings-menu.s-r .item.header.mobile:where(.s-r){border-bottom:var(--divider-border);color:var(--white);column-gap:12px;cursor:pointer;display:flex;justify-content:space-between;margin-bottom:4px}.settings-menu-container.s-r .items::-webkit-scrollbar{width:8px}.settings-menu-container.s-r .items::-webkit-scrollbar-track{background-color:#3a3a3a;border-radius:4px;box-shadow:none}.settings-menu-container.s-r .items::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:#666;border:1px solid transparent;border-radius:5px;min-height:40px}.settings-menu-container.s-r .items::-webkit-scrollbar-thumb:hover{background-color:#777}.settings-menu-container.s-r .items.mobile{max-height:160px;overflow-x:hidden;overflow-y:auto;text-align:left}.close.s-r{height:12px;margin-right:-12px;padding:12px;position:relative;width:12px}.close.s-r:after,.close.s-r:before{background-color:var(--white);content:" ";height:12px;left:18px;position:absolute;width:2px}.close.s-r:before{transform:rotate(45deg)}.close.s-r:after{transform:rotate(-45deg)}'};function Rc(t,e){B(e,!0),Q(t,pC);let[i,o]=Ne(),r=()=>w(Be,"$settingsMenuVisible",i),a=()=>w(tt,"$settingsMenuOpenedByKeyboard",i),l=()=>w(He,"$debugPanelVisible",i),d=()=>w(ce,"$isMobile",i),s=()=>w(Te,"$playerSize",i),u=()=>w(xe,"$hasMpegSources$",i),m=()=>w(Re,"$mobileNotReportControlHidden$",i),p=()=>w(ge,"$autoQualityLimitingAvailable$",i),v=()=>w(K,"$availableSubtitlesList$",i),_=()=>w(Ae,"$isLiveWithPlaybackSpeed",i),y=()=>w(ee,"$availableAudioStreams$",i),$=()=>w(D,"$availablePlaybackRates$",i),x=()=>w(me,"$currentAudioStream$",i),I=()=>w(G,"$currentPlaybackRate$",i),T=()=>w(Je,"$trafficSavingEnabled",i),R=()=>w(_e,"$currentQuality$",i),A=()=>w(pe,"$isAutoQualityEnabled$",i),P=()=>w(Qe,"$currentSubtitle$",i),E=()=>w(Ct,"$additionalSettingsMenuItems$",i),z=()=>w(qe,"$isAutoQualityAvailable$",i),F=()=>w(Ce,"$availableQualities$",i),U=()=>w(Ee,"$highQualityEnabled",i),X=h(e,"ref",15,void 0),ae=h(e,"playerControlsHeight",3,0),Z=li({}),re=li({}),J=be(),we=Nt(),me=J.state.audioStream$,ee=J.state.availableAudioStreams$,_e=J.state.currentQuality$,Ce=J.state.availableQualities$,ge=J.state.autoQualityLimitingAvailable$,pe=J.state.isAutoQualityEnabled$,qe=J.state.isAutoQualityAvailable$,G=J.state.currentPlaybackRate$,D=J.state.availablePlaybackRates$,Qe=J.state.currentSubtitle$,K=J.state.availableSubtitlesList$,se=J.state.canDownload,xe=J.state.hasMpegSources$,Be=J.ui.settingsMenu.visible$,tt=J.ui.settingsMenu.openedByBtnKeyboard$,ne=J.ui.settingsMenu.ref$,ce=J.ui.isMobile,Re=J.ui.mobileNotReportControlHidden$,Ae=J.state.canChangePlaybackSpeed$,Je=J.state.trafficSavingEnabled$,Ee=J.state.highQualityEnabled$,Te=J.ui.playerSize,He=J.ui.debugPanelVisible,Pt=J.state.isInteractiveTime$,Ct=J.ui.additionalSettingsMenuItems$,Mt=J.ui.t,ut=J.actions.internal.downloadVideo,kt=J.actions.internal.closeSettingsMenu,Zt=J.actions.internal.openSettingsSubMenu,At=J.actions.internal.closeSettingsSubMenu,Bt=q(!1),Wt=q(void 0),Y=qb();De(()=>{!r()&&Y.current&&(At(re[Y.current]),Y.popAllSubMenus())}),De(()=>{r()||N(Wt,void 0)}),De(()=>{!Y.current&&n(Wt)&&nb(Z,n(Wt))}),De(()=>{X()&&ne.set(X())});async function Pe(ht){var W;Y.pushSubMenu(ht),await mo(),Zt(ht,re[ht]);let Ht=(W=X())==null?void 0:W.firstElementChild;Ht&&pm(Ht)}function le(ht){var Ht;ht==null||ht.stopPropagation(),a()||(Ht=e.returnFocus)==null||Ht.call(e),kt(),N(Bt,!1)}function $e(ht,Ht){J.actions.internal.setQuality(ht,{appliesTo:Ht,byUser:!0}),le()}function Me(ht){J.actions.internal.setAudioStream(ht),le()}function lt(ht,Ht){J.actions.internal.setTrafficSavingEnabled(ht,Ht),we.features.qualityDetailsSubMenuEnabled&&le()}function wt(ht,Ht){J.actions.internal.setHighQualityEnabled(ht,Ht),le()}function fe(ht){J.actions.internal.setPlaybackRate(ht),le()}function Oe(ht){J.actions.internal.setSubtitle(ht),le()}function ze(){ut()}function St(){(0,Vc.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),J.actions.internal.reportProblem(),J.actions.internal.pause()}function Gt(){Kl(J.actions.internal.getDebugTextData())}let Tt=()=>{let ht=J.actions.internal.getTraceTextData(),Ht=new Blob([...ht],{type:"application/json"}),W=window.URL.createObjectURL(Ht);Ba(W,"vk_player_trace_info","json")};function ri(){He.set(!l())}function ci(){N(Bt,!0)}function Ni(){N(Bt,!1)}function Dt(){return d()?`max-height: ${Math.round(s().height*.6)}px`:`max-height: ${s().height-32-ae()}px; overflow: auto;`}let vo=f(()=>se&&u()&&!m()),pi=f(()=>we.features.trafficSaving&&!m()&&p()&&!we.features.qualityDetailsSubMenuEnabled),it=f(()=>v().length>0&&!m()),jt=f(()=>!!_()&&!m()),Di=f(()=>we.features.audioLanguages&&y().length>=2&&!m()),bi=f(()=>!m());Rt(()=>Pt.subscribe(ht=>{ht&&!d()&&!n(Bt)&&!a()&&le()}));let ei=f(()=>{let ht=[n(bi)&&"quality-settings",n(Di)&&"audio-tracks-settings",n(jt)&&"playback-rate-settings",n(it)&&"subtitles-settings",n(pi)&&"traffic-saving-switch",n(vo)&&"download",we.showSupport&&"show-support","copy-data",we.features.saveTraceInfoToFile&&"save-trace-info","debug-info"].filter(Ht=>!!Ht);return i$({items:ht,context:{qualityDetailsSubMenuEnabled:we.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:$(),currentAudioStream:x(),availableAudioStreams:y(),currentPlaybackRate:I(),selectPlaybackRate:fe,trafficSavingEnabled:T(),toggleTrafficSaving:lt,currentQuality:R()||Vc.VideoQuality.INVARIANT,isAutoQualityEnabled:A()||!1,currentSubtitle:P(),isMobile:d(),onDownloadClick:ze,onCopyDataClick:Gt,onReportProblemClick:St,onSaveTraceDataClick:Tt,toggleShowDebugInfo:ri},additionalSettingsMenuItems:E()})}),wi=f(()=>t$({subMenuId:Y.current,context:{availablePlaybackRates:$(),selectPlaybackRate:fe,trafficSavingEnabled:T(),toggleTrafficSaving:lt,currentQuality:R()||Vc.VideoQuality.INVARIANT,isAutoQualityEnabled:A()||!1,isAutoQualityAvailable:z()||!1,availableQualities:F(),highQualityEnabled:U(),toggleHighQuality:wt,availableAudioStreams:y(),availableSubtitlesList:v(),closeSettingsMenu:kt,currentAudioStream:x(),isMobile:d(),selectAudioLanguage:Me,selectQuality:$e,selectSubtitle:Oe}}));var st=uC();let ot;var Ci=C(st);{var Jo=ht=>{var Ht=cC();let W;Ht.__keydown=[lC,kt];var Vt=C(Ht);{var si=_t=>{var rt=dC();let Oi;var ki=C(rt),fn=C(ki,!0);S(ki);var mn=k(ki,2);mn.__click=le,S(rt),O((Ai,Bi)=>{Oi=oe(rt,1,"item header s-r",null,Oi,Ai),ve(fn,Bi)},[()=>({mobile:d()}),()=>Mt("submenu_settings")]),b(_t,rt)};V(Vt,_t=>{d()&&_t(si)})}var vt=k(Vt,2);let Jt;_i(vt,21,()=>n(ei),_t=>_t.id,(_t,rt)=>{var Oi=Le(),ki=ue(Oi);{var fn=Ai=>{kv(Ai,{get isMobile(){return d()},get id(){return n(rt).id},get icon(){return n(rt).icon},get iconProps(){return n(rt).iconProps},get label(){return n(rt).label},get ariaLabel(){return n(rt).ariaLabel},get value(){return n(rt).value},get valueComponent(){return n(rt).valueComponent},onClick:()=>{Pe(n(rt).children),N(Wt,n(rt).id,!0)},get ref(){return Z[n(rt).id]},set ref(Bi){Z[n(rt).id]=Bi}})},mn=(Ai,Bi)=>{{var Dn=ro=>{let Ii=f(()=>`${n(rt).id}-menu-item`);Lv(ro,{get isMobile(){return d()},get id(){return n(Ii)},get onClick(){return n(rt).onClick},get icon(){return n(rt).icon},get label(){return n(rt).label},get ariaLabel(){return n(rt).ariaLabel},closeSettings:le})},bo=(ro,Ii)=>{{var Do=Oo=>{let vn=f(()=>`${n(rt).id}-menu-item`);Vv(Oo,{get isMobile(){return d()},get id(){return n(vn)},get onClick(){return n(rt).onClick},get icon(){return n(rt).icon},get label(){return n(rt).label},get ariaLabel(){return n(rt).ariaLabel},get enabled(){return n(rt).enabled},get tooltipText(){return n(rt).tooltipText},get maxTooltipWidth(){return n(rt).maxTooltipWidth}})};V(ro,Oo=>{n(rt).type==="SWITCH"&&Oo(Do)},Ii)}};V(Ai,ro=>{n(rt).type==="CLICK"?ro(Dn):ro(bo,!1)},Bi)}};V(ki,Ai=>{n(rt).type==="OPEN_SUB_MENU"?Ai(fn):Ai(mn,!1)})}b(_t,Oi)}),S(vt),je(vt,_t=>X(_t),()=>X()),S(Ht),O((_t,rt,Oi)=>{W=oe(Ht,1,"settings-menu menu s-r",null,W,_t),Jt=oe(vt,1,"items",null,Jt,rt),Ke(vt,Oi)},[()=>({desktop:!d(),mobile:d(),hidden:!!Y.current}),()=>({mobile:d()}),Dt]),ct("mouseenter",Ht,ci),ct("mouseleave",Ht,Ni),b(ht,Ht)};V(Ci,ht=>{r()&&ht(Jo)})}var No=k(Ci,2);_i(No,17,()=>n(wi),ht=>ht.id,(ht,Ht)=>{let W=f(()=>{var Vt;return(Vt=n(Ht).minWidth)!=null?Vt:137});Pv(ht,{get isMobile(){return d()},get playerControlsHeight(){return ae()},get returnFromSubMenu(){return Y.popSubMenu},get id(){return n(Ht).id},get title(){return n(Ht).title},get closeSettingsMenu(){return kt},openSubMenuList:Pe,get items(){return n(Ht).items},get minWidth(){return n(W)},get refMenuItems(){return Z},get listRef(){return re[n(Ht).id]},set listRef(Vt){re[n(Ht).id]=Vt}})}),S(st),O(ht=>ot=oe(st,1,"settings-menu-container s-r",null,ot,ht),[()=>({mobile:d(),hidden:!r()})]),b(t,st),H(),o()}Ge(["keydown","click"]);var fC=L('<button class="btn s-13"> </button>'),mC={hash:"s-13",code:"button.btn.s-13{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){Q(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),O(()=>ve(o,e.label)),b(t,i)}Ge(["click"]);var vC=L('<div class="container s-s"><div class="notification s-s"><div><p class="description s-s"><!></p> <!></div> <!></div></div>'),gC={hash:"s-s",code:".container.s-s{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-s{background:var(--notification-bg);border-radius:var(--notification-radius);display:inline-flex;gap:10px;padding:9px 14px 10px 12px;pointer-events:auto}.description.s-s{font-size:13px;line-height:16px;margin:0;white-space:pre}"};function Nc(t,e){B(e,!0),Q(t,gC);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=Nt(),{ui:{t:r}}=be(),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),m=C(u);Mc(m,{get message(){return a}}),S(u);var p=k(u,2);{var v=y=>{let $=f(()=>r("slow_video_notification_button"));Gv(y,{get label(){return n($)},get onClick(){return e.onSelectAutoQuality}})};V(p,y=>{o||y(v)})}S(s);var _=k(s,2);Ds(_,{get onClick(){return e.onClose}}),S(d),S(l),ts(3,d,()=>bs,()=>({duration:i})),b(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 m;let r=this.slots.get(e);if(!r)return;let a=await this.findSlotElement(r.rootElement,i,e),{controls:l,hiddenControls:d}=((m=this.store)==null?void 0:m.ui)||{},s=new MutationObserver(p=>p.forEach(()=>{let v=Bs(a,this.shadowRootContainer);o.forEach(_=>{let y=l==null?void 0:l[_],$=y?ye(y):null,x=d==null?void 0:d[_];$&&(x==null||x.set((0,Dc.isIntersecting)($,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,m;let i=this.slots.get(e);if(!i)return;let{rootElement:o,observer:r,observerForFindingSlotElement:a,subs:l,options:{controlsBehaviour:d,hideAllControls:s}}=i;o&&o.remove(),[r,a].forEach(p=>p==null?void 0:p.disconnect()),l==null||l.unsubscribe(),this.slots.delete(e),s&&((u=this.store)==null||u.ui.isControlsAvailable.set(!0)),(m=d==null?void 0:d.controlsToObserve)==null||m.forEach(p=>{var v,_;(_=(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-4"><!></div>'),_C={hash:"s-4",code:".container.s-4{align-items:center;animation-fill-mode:forwards;animation-name:s-4-videoPlayerStatusIconPopup;background-color:#00000073;border-radius:100%;display:flex;height:64px;justify-content:center;width:64px;will-change:opacity,scale}@keyframes s-4-videoPlayerStatusIconPopup{0%{opacity:0;scale:.6}10%{animation-timing-function:ease-in;opacity:1;scale:1}75%{opacity:1;scale:1}90%{animation-timing-function:ease-out;opacity:0;scale:.4}to{opacity:0;scale:0}}"};function Oc(t,e){B(e,!0),Q(t,_C);let i=h(e,"reversed",3,!1);var o=Le(),r=ue(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),O(()=>Ke(l,`animation-duration: ${e.duration}ms`)),b(a,l)}),b(t,o),H()}var Yv=require("@vkontakte/videoplayer-core/es2018"),bC=L('<div class="container s-1e"><!></div>'),$C={hash:"s-1e",code:".container.s-1e{align-items:center;display:flex;height:100%;justify-content:center;pointer-events:none;position:absolute;width:100%}"};function jv(t,e){B(e,!0),Q(t,$C);let[i,o]=Ne(),r=()=>w(s,"$playbackState$",i),a=()=>w(m,"$previewTrackActive",i),l=()=>w(p,"$previewTrackDragInProgress",i),d=()=>w(u,"$isPlaying$",i),{state:{playbackState$:s,isPlaying$:u},ui:{previewTrackActive:m,previewTrackDragInProgress:p}}=be(),{features:{playbackStatusShow:v},playbackStatusAnimationDuration:_}=Nt(),y=0,$=q(null),x=q(!1);De(()=>{r()===Yv.PlaybackState.PLAYING?N($,Vn,!0):r()===Yv.PlaybackState.PAUSED?N($,Fs,!0):N($,null)}),De(()=>{if(!(!v||a()||l()))return y=window.setTimeout(()=>{y=0,N($,null)},_),()=>{y&&(window.clearTimeout(y),y=0)}}),De(()=>{d()&&!n(x)&&(N(x,!0),N($,null))});var I=Le(),T=ue(I);{var R=A=>{var P=bC(),E=C(P);Oc(E,{get duration(){return _},get Icon(){return n($)}}),S(P),b(A,P)};V(T,A=>{n($)&&v&&A(R)})}b(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),Q(t,xC);let[i,o]=Ne(),r=()=>w(p,"$rotateAlpha",i),a=()=>w(v,"$playerSize",i),l=()=>w(m,"$playerPhase",i),d=()=>w(y,"$chromecastConnected$",i),s=()=>w(_,"$isPlaying$",i),u=h(e,"videoContainer",15),{playerPhase:m,ui:{rotateAlpha:p,playerSize:v},state:{isPlaying$:_,chromecastConnected$:y}}=be(),{isSmoothVideoRotate:$}=Nt(),x=f(()=>u()&&r()%180?a().height/a().width:1);var I=yC();let T;I.__contextmenu=function(...P){var E;(E=e.onContextMenu)==null||E.apply(this,P)},I.__mousedown=function(...P){var E;(E=e.onMouseDown)==null||E.apply(this,P)},I.__mouseup=function(...P){var E;(E=e.onMouseUp)==null||E.apply(this,P)},I.__click=function(...P){var E;(E=e.onClick)==null||E.apply(this,P)},I.__dblclick=function(...P){var E;(E=e.onDblClick)==null||E.apply(this,P)};var R=C(I);let A;je(R,P=>u(P),()=>u()),S(I),O((P,E)=>{T=oe(I,1,"video-wrapper s-d",null,T,P),A=oe(R,1,"video-container s-d",null,A,E),Ke(R,`transform: rotate(${r()}deg) scale(${n(x)})`),Ve(R,"data-is-playing",s())},[()=>({hidden:l()!=="video"||d(),nocursor:e.hideCursor}),()=>({"fast-rotate":!$})]),b(t,I),H(),o()}Ge(["contextmenu","mousedown","mouseup","click","dblclick"]);var wC=L('<div><span class="text s-1d"> </span> <!></div>'),SC={hash:"s-1d",code:".root.s-1d{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-1d,.root.visible.s-1d{transform:translateX(-50%)}.root.visible.s-1d{opacity:1;visibility:visible}.text.s-1d{font-size:13px;font-weight:600;line-height:16px}"};function Xv(t,e){B(e,!0),Q(t,SC);let{ui:{t:i}}=be();var o=wC();let r;var a=C(o),l=C(a,!0);S(a);var d=k(a,2);Ec(d,{get size(){return"16"},fill:"currentColor"}),S(o),O((s,u)=>{r=oe(o,1,"root s-1d",null,r,s),ve(l,u)},[()=>({visible:e.isVisible}),()=>i("double_forward_label")]),b(t,o),H()}var CC=L('<div class="container s-1g" role="button" data-testid="preview-track-overlay"><div class="icon s-1g"><!></div></div>'),TC={hash:"s-1g",code:".container.s-1g{background-color:rgba(0,0,0,.48);cursor:pointer;height:100%;position:absolute;width:100%}.container.s-1g,.icon.s-1g{align-items:center;display:flex;justify-content:center}.icon.s-1g{background-color:#00000073;border-radius:100%;height:64px;transition:transform .2s;transition-timing-function:ease-out;width:64px;will-change:transform}.container.s-1g:hover .icon:where(.s-1g){transform:scale(1.15)}"};function Zv(t,e){B(e,!1),Q(t,TC);let o=be().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})),b(t,l),Nf(e,"handleClick",a),H({handleClick:a})}Ge(["click"]);var IC=L('<div class="container s-1c"><div class="notification s-1c"><span class="text s-1c"> </span></div></div>'),EC={hash:"s-1c",code:".container.s-1c{display:flex;justify-content:center;left:0;pointer-events:none;position:absolute;right:0;top:20px}.notification.s-1c{background-color:var(--black-alpha-40);border-radius:var(--notification-radius);padding:10px 16px}.text.s-1c{font-size:14px;font-weight:500;line-height:18px}"};function Jv(t,e){B(e,!1),Q(t,EC);let{ui:{t:i}}=be();ho();var o=IC(),r=C(o),a=C(r),l=C(a,!0);S(a),S(r),S(o),O(d=>ve(l,d),[()=>i("preview_track_notification_text")],In),ts(3,r,()=>bs,()=>({duration:340})),b(t,o),H()}var PC=(t,e,i,o,r,a)=>{if(t.stopPropagation(),e()||o()){a();return}},kC=L("<div><!></div>"),AC=L('<div class="spherical-video-icon s-9"><!></div>'),LC=L("<div><!></div>"),MC=L('<div class="settings-menu s-9"><!></div>'),VC=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),RC=L("<!> <!> <!>",1),NC=L('<div class="blocked s-9"></div>'),DC=L('<div class="player-wrapper s-9"><!> <div class="overlay-container"></div></div> <!>',1),OC={hash:"s-9",code:".blocked.s-9,.player-wrapper.s-9{height:100%;position:absolute;width:100%}.blocked.s-9{z-index:var(--overlay-container-z-index)}.player-wrapper.s-9 .player-media{background:var(--black);height:100%;left:0;position:absolute;top:0;transition:transform .2s ease-in-out;width:100%}.spherical-video-icon.s-9{display:inline-block;left:calc(50% - 38px);position:absolute;top:calc(50% - 23px)}.ads-container.s-9{background:var(--black);height:100%;left:0;position:absolute;top:0;width:100%;z-index:var(--ads-container-z-index)}.settings-menu.s-9{bottom:57px;left:0;position:absolute;right:18px;transition:opacity .2s;z-index:var(--settings-menu-z-index)}"};function tg(t,e){B(e,!0),Q(t,OC);let[i,o]=Ne(),r=()=>w(Hr,"$notificationsToShow$",i),a=()=>w(pi,"$playerPhase",i),l=()=>w(Jo,"$isLoaderVisible",i),d=()=>w(Ni,"$adPlaybackState",i),s=()=>w(vt,"$crashed",i),u=()=>w(Bi,"$isInteractiveTime$",i),m=()=>w(bi,"$settingsMenuVisible",i),p=()=>w(Dn,"$isInteractiveExpectation$",i),v=()=>w(Di,"$controlsVisible",i),_=()=>w(ro,"$touched",i),y=()=>w(as,"$graphIsOpened$",i),$=()=>w(it,"$isFullscreen",i),x=()=>w(er,"$autoplayNextEnabled$",i),I=()=>w(W,"$postrollPassed",i),T=()=>w(No,"$isEnded$",i),R=()=>w(bn,"$cursorInside",i),A=()=>w(gn,"$isControlsAvailable",i),P=()=>w(mr,"$doubleForwardOn$",i),E=()=>w(tr,"$fakeIsPlaying$",i),z=()=>w(Fn,"$bottomNoSmooth",i),F=()=>w(Rr,"$interactiveTimeIndicator",i),U=()=>w(ki,"$playerSize",i),X=()=>w(fn,"$is3DVideo",i),ae=()=>w(vr,"$doubleForwardAvailable$",i),Z=()=>w(ot,"$contextMenuVisible$",i),re=()=>w(ci,"$playbackState$",i),J=()=>w(Ii,"$hotKeyMapData",i),we=()=>w(wi,"$scrubbingInProgress",i),me=()=>w(st,"$volumeChangingInProgress",i),ee=()=>w(ht,"$chromecastConnected$",i),_e=()=>w(Un,"$controlsTimeoutActive",i),Ce=()=>w(ei,"$settingsMenuOpenedByKeyboard",i),ge=()=>w(Io,"$contextMenuOpenedByKeyboard$",i),pe=()=>w(Wo,"$contextMenuOpenedByHotKey$",i),qe=()=>w(wn,"$contextMenuButtonRef$",i),G=()=>w(rr,"$contextMenuLastActiveElem$",i),D=()=>w(jt,"$isFullscreenOpenedByKeyboard",i),Qe=()=>w(Oo,"$positionExact$",i),K=()=>w(ri,"$language$",i),se=()=>w(Tr,"$previewTrackActive$",i),xe=()=>w(mn,"$icon3DVideoVisible",i),Be=()=>w(Ht,"$chromecastDeviceName$",i),tt=()=>w(rt,"$currentSubtitle$",i),ne=()=>w(Oi,"$currentSubtitleCaptions$",i),ce=()=>w(Dt,"$position$",i),Re=()=>w(vo,"$duration$",i),Ae=()=>w(Vt,"$isLive$",i),Je=()=>w(si,"$isPlaying$",i),Ee=()=>w(Dr,"$contextMenuPosition$",i),Te=()=>w(en,"$previewTrackNotificationVisible$",i),He=()=>w(Do,"$showHotKeyMap",i),Pt=()=>w(Ci,"$debugPanelVisible",i),Ct=()=>w(Br,"$userActionsDisabled$",i),Mt=h(e,"videoContainer",15),ut=h(e,"adsSlotId",3,void 0),kt=h(e,"adsParams",3,void 0),Zt=h(e,"adsAutoplayParam",3,void 0),At=h(e,"duration",3,void 0),Bt=h(e,"logoTargetUrl",3,""),Wt=h(e,"showNextPrevButtons",3,!1),Y=h(e,"nextButtonActive",3,!1),Pe=h(e,"prevButtonActive",3,!1),le=h(e,"endScreenVideoTitle",3,void 0),$e=h(e,"endScreenVideoThumb",3,void 0),Me=h(e,"isOneVideoPlaylist",3,!1),lt=h(e,"shadowRootContainer",3,void 0),wt=h(e,"outerContainerRef",3,void 0),fe=h(e,"playerStarted",3,!1),Oe=h(e,"fullScreenTarget",3,void 0),ze=h(e,"showMiniTimer",3,!1),St=h(e,"showEndScreen",3,!0),Gt=h(e,"keyboardControls",15),Tt=e.store.getLogger().createComponentLog("Root component"),ri=e.store.interfaceLanguage$,ci=e.store.state.playbackState$,Ni=e.store.ads.playbackState,Dt=e.store.state.positionWithScrubbing$,vo=e.store.state.duration$,pi=e.store.playerPhase,it=e.store.ui.isFullscreen,jt=e.store.ui.isFullscreenOpenedByKeyboard,Di=e.store.ui.controlsVisible,bi=e.store.ui.settingsMenu.visible$,ei=e.store.ui.settingsMenu.openedByBtnKeyboard$,wi=e.store.ui.scrubbingInProgress,st=e.store.ui.volumeChangingInProgress,ot=e.store.ui.contextMenu.visible$,Ci=e.store.ui.debugPanelVisible,Jo=e.store.state.isLoaderVisible,No=e.store.state.isEnded$,ht=e.store.state.chromecastConnected$,Ht=e.store.state.chromecastDeviceName$,W=e.store.ads.postrollPassed,Vt=e.store.state.isLive$,si=e.store.state.isPlaying$,vt=e.store.state.crashed$,Jt=e.store.webApi.annotationsApi,_t=e.store.webApi.pictureInPictureApi,rt=e.store.state.currentSubtitle$,Oi=e.store.state.currentSubtitleCaptions$,ki=e.store.ui.playerSize,fn=e.store.ui.is3DVideo,mn=e.store.ui.icon3DVideoVisible,Ai=e.store.state.isInteractive,Bi=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,Do=e.store.ui.modals.hotKeyMap.show,Oo=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(),Bo=q(void 0),_r=q(void 0),Hi=q(void 0),br=q(void 0),Bn,mt,ti;Ii.set(X_());let{closeNotification:$r,notificationsToShow$:Hr}=On,Fr=f(()=>!!r().slow_video),Hn=()=>$r("slow_video"),ir=f(()=>(a()==="video"&&l()||a()==="ads"&&d()==="inactive")&&!s()),$o=q(void 0),Fn=de(!1),or,Un=de(!1),_n=de(),bn=de(!1),$n=q(!1),tn=q(!1),Fi=q(!1),Xi=q(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),on=f(()=>u()&&!m()&&!(n($n)||n(tn))&&!(n(Fi)&&!p())),nr=!0,yr=f(()=>e.uiConfig.features.thumbTimer&&ze()&&a()==="video"&&!v()&&!s()&&!Ai&&(e.uiConfig.hideThumbTimerAfterTouch&&!_()||!e.uiConfig.hideThumbTimerAfterTouch)),yn=e.uiConfig.titleShowBehaviour,xr=f(()=>!["video","thumb"].includes(a())||yn==="never"||y()?!1:yn==="fullscreen"?$():!0),pt=f(()=>yn==="always"||a()==="thumb"?!1:!v()),xt=q(!1),so=f(()=>(St()||e.showAutoplayNext&&x())&&!!le()&&!!$e()&&(e.showAds&&I()||!e.showAds)&&T()&&!s()&&!n(xt)&&!bo),go=f(()=>R()&&!(v()||n(so))&&!u()&&A()&&!P()),nn=q(!1),yo=f(()=>E()!==null),{toggle:xo}=tr,Ei=!1,wo=null;_t==null||_t.setContext(xd());let Ur=()=>{e.autoplay&&!Ai&&e.uiConfig.controls.showOnStartupAtAutoplay&&Ui(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:Ur});let wr=()=>{window.clearTimeout(Bn),Un.set(!1)},ys=()=>{window.clearTimeout(mt),_n.set(null)},Ui=he=>{wr(),Un.set(!0),Bn=window.setTimeout(()=>Un.set(!1),he);let bt=he-100;or=window.setTimeout(()=>{z()&&Fn.set(!1)},bt>0?bt:he)},xs=(he,bt)=>{ys(),_n.set(bt),mt=window.setTimeout(()=>_n.set(null),he)},ls=fn.subscribe(he=>{mn.set(he),he&&(window.clearTimeout(ti),ti=window.setTimeout(()=>mn.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Sr=async()=>{var bt,ii,Yt,Po;let he=ra();if(he){let lo=Xd(),Ko=rn();he=lo===Ko||lo===lt()}if(he){Ui(e.uiConfig.controls.hideTimeoutFullscreen);try{await(_t==null?void 0:_t.exit())}catch(lo){Tt({message:String(lo)})}}it.set(he),e.store.getAdmanWrapper().setFullscreen(he),$()?(ii=(bt=e.store.callbacks)==null?void 0:bt.onFullscreenEnter)==null||ii.call(bt):(Po=(Yt=e.store.callbacks)==null?void 0:Yt.onFullscreenExit)==null||Po.call(Yt)},Ho=he=>{let{width:bt,height:ii}=he.target;ki.set({width:bt,height:ii})},zr=()=>{let{width:he,height:bt}=n(Bo).getBoundingClientRect();ki.set({width:he,height:bt})};Rt(()=>{var bt;return ju(Sr),e.uiConfig.features.annotationsInside&&(Jt==null||Jt.init(n(Bo))),za(_t)&&(_t==null||_t.assignPlayerContainer(n(Bo)),_t==null||_t.setExternalEventHandlers({resize:Ho,leavepictureinpicture:zr})),e.interactiveContainer&&((bt=Mt().parentElement)==null||bt.insertBefore(e.interactiveContainer,Mt().nextSibling)),()=>{window.clearTimeout(Bn),window.clearTimeout(or),window.clearTimeout(mt),window.clearTimeout(ti),ls(),_t==null||_t.dispose().catch(ii=>{Tt({message:String(ii)})}),Xu(Sr)}});let rn=()=>{let he=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!wt()?n(Bo):wt(),bt=he.getRootNode(),ii=bt instanceof ShadowRoot?bt.host:bt,Yt=Oe()instanceof HTMLElement&&Oe().contains(ii);return e.uiConfig.allowChangingFullscreenTarget&&Oe()&&Yt?Oe():he},sn=()=>{ot.set(!1)},Fe=()=>{Or(),sn()},It=async()=>{if(!hr()){Tt({message:"fullscreen disabled"});return}sn(),ra()?(await Yu(document),Tt({message:"exit fullscreen"})):(Tt({message:"request fullscreen"}),await Gu(rn()))},ui=he=>{y()||(he.preventDefault(),ot.set(!0),Dr.set({left:he.clientX,top:he.clientY}))};function Fo(){bn.set(!0),Ai||Ui(e.uiConfig.controls.hideTimeoutCursor)}function So(he){var Po,lo;let{relatedTarget:bt}=he,Yt=!!(bt&&((Po=n(Hi))!=null&&Po.contains(bt)))&&((lo=Gt())==null?void 0:lo.isFocused());!Ai&&!Yt&&(Fn.set(!0),Ui(e.uiConfig.controls.hideTimeoutCursor))}function Uo(){bn.set(!1),N(tn,!1),N($n,!1),Ei=!1,e.store.actions.internal.releaseCamera(),Ui(e.uiConfig.controls.hideTimeout),P()&&zo()}function zi(he){return he?he.offsetTop+zi(he.offsetParent):0}function Co(he){return he?he.offsetLeft+Co(he.offsetParent):0}function zn(he){if(F()&&Nr){let bt=he.currentTarget,ii=zi(bt),Yt=Co(bt),Po=he.pageX-Yt,lo=he.pageY-ii,{left:Ko,bottom:Ts,right:qr}=F(),Ir=qr-Ko;return Po>=Ko-Ir&&lo<=Ts+Ir}}function Cr(he){if(n(Bo)){let bt=zi(he.currentTarget),ii=U().height,Yt=he.pageY-bt;if(zn(he)){N(tn,!1);return}Yt<40?N(tn,!0):Yt>ii-40?N($n,!0):(N(tn,!1),m()||N($n,!1))}}function To(he){Cr(he),!n(on)&&!P()&&Ui(e.uiConfig.controls.hideTimeoutCursor),X()&&Ei&&wo&&e.store.actions.internal.moveCameraFocusPX(wo.clientX-he.clientX,wo.clientY-he.clientY,he.timeStamp-wo.timeStamp),wo=he}let ao=null,xn=()=>{ao=window.setTimeout(()=>{e.store.actions.internal.changeDoubleForwardOn(!0),wr()},e.uiConfig.doubleForwardActivationTime)},zo=()=>{e.store.actions.internal.changeDoubleForwardOn(!1),ao&&clearTimeout(ao),ao=null},Wn=he=>{he.preventDefault(),he.button===0&&(Ei=!0,e.store.actions.internal.holdCamera(),ae()&&xn()),!Ei&&Ui(e.uiConfig.controls.hideTimeoutCursor)},Wr=he=>{he.preventDefault(),he.button===0&&(wo=he,Ei=!1,e.store.actions.internal.releaseCamera()),!P()&&Ui(e.uiConfig.controls.hideTimeoutCursor)},Kr=he=>{he.preventDefault(),nr&&(Tt({message:"double click on video"}),It(),Ui(e.uiConfig.controls.hideTimeoutCursor))},Kn=he=>{var bt;if(he.preventDefault(),P()){zo();return}if(ao&&zo(),Z()||m()){Fe();return}if(!(T()&&!bo)){if(n(yo))return xo();if((bt=Gt())==null||bt.focus(),!fe()){e.firstStart(),Ui(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||re()!==eg.PlaybackState.PLAYING)&&e.store.actions.internal.togglePlay(),Ui(e.uiConfig.controls.hideTimeoutCursor)}},Ze=he=>{Fe(),ro.set(!0),Ui(e.uiConfig.controls.hideTimeout),he&&xs(e.uiConfig.controls.hideHotKeyHelpers,he)},Xt=()=>{var he,bt;Fe(),(he=e.store.callbacks)!=null&&he.onOpenHotKeyMap?(bt=e.store.callbacks)==null||bt.onOpenHotKeyMap(J()):Do.update(ii=>!ii)},$i=()=>{ro.set(!0)},Io=e.store.ui.contextMenu.openedByBtnKeyboard$,wn=e.store.ui.contextMenu.btnRef$,qn=q(void 0),Wo=e.store.ui.contextMenu.openedByHotKey$,rr=e.store.ui.contextMenu.lastActiveElem$,ds=q(!1),Tr=e.store.ui.previewTrackActive;De(()=>{vn.set(n($o))}),De(()=>{N(Fi,n(Xi)&&re()!==eg.PlaybackState.PLAYING,!0),n(Xi)||Et(()=>N(Xi,!0))}),De(()=>{var bt,ii;let he=(n(Fi)||T()||m()||we()||me()||ee()||_e()||n(ds))&&!n(on)&&(a()==="video"||a()==="ads")&&!s()&&A();Di.set(he),!he&&!_e()&&((bt=n(Hi))!=null&&bt.contains(np()))&&((ii=Gt())==null||ii.focus())}),De(()=>{!we()&&n(nn)&&!u()&&Ui(e.uiConfig.controls.hideTimeoutCursor),Et(()=>N(nn,we(),!0))}),De(()=>{n(br),m(),Ce(),Et(()=>nc(n(br),m(),Ce()))}),De(()=>{n(qn),Z(),ge(),pe(),Et(()=>{let he=ge()||pe();nc(n(qn),Z(),he)})}),De(()=>{let he=qe();he&&(Z(),Et(()=>ql(he,Z(),Io)))}),De(()=>{let he=G();he&&(Z(),Et(()=>ob(he,Z(),Wo)))}),De(()=>{var he;!D()&&$()&&(Et(()=>jt.set(!1)),(he=Gt())==null||he.focus())}),De(()=>{y()&&Fe()});let ws=q(void 0),Ws=he=>{hn.set(Zn(gr(),{title:n(ws)},"title",he))},va=(he,bt)=>{var lo,Ko;let ii=(Ko=(lo=e.store.callbacks)==null?void 0:lo.uiInfo)==null?void 0:Ko.onUpcomingLiveViewStateChanged;if(!ii)return;let Yt=!!bt,Po={...Zn(n(Bo),{upcomingLiveScreen:bt},"upcomingLiveScreen",Yt),...he};ii(Po)},dt="",ai=f(()=>{var he;return n(pt)?dt:(he=e.getVideoDeeplink)==null?void 0:he.call(e,Qe())});De(()=>{dt=n(ai)});var Eo=DC();ct("blur",Pa,Fe);var yi=ue(Eo);yi.__mousemove=To;var Sn=C(yi);let Cn=f(()=>a()==="ads"),Ss=f(()=>n(yo)?xo:void 0);je($m(Sn,{startDoubleForwardActivationTimer:xn,stopDoubleForward:zo,toggleFullscreen:It,hideContextMenu:Fe,showHotKeyHelpers:Ze,showKeyMap:Xt,get isAds(){return n(Cn)},get fakePlayButtonHandler(){return n(Ss)},get nextButtonActive(){return Y()},get prevButtonActive(){return Pe()},children:(he,bt)=>{var ii=RC(),Yt=ue(ii);dl(Yt,{get hideCursor(){return n(go)},onClick:Kn,onContextMenu:ui,onMouseDown:Wn,onMouseUp:Wr,onDblClick:Kr,get videoContainer(){return Mt()},set videoContainer(Ko){Mt(Ko)}});var Po=k(Yt,2);Ra(Po,()=>"slot",!1,(Ko,Ts)=>{to(Ko,()=>({name:ll}))});var lo=k(Po,2);Ls(lo,K,Ko=>{var Ts=VC(),qr=ue(Ts);let Ir=f(()=>a()!=="thumb"||s()||Ai&&e.autoplay);rl(qr,{get hidden(){return n(Ir)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart},onContextMenu:ui,onClick:sn});var ga=k(qr,2);{var Ks=Ue=>{Zv(Ue,{})};V(ga,Ue=>{se()&&Ue(Ks)})}var ha=k(ga,2);jv(ha,{});var Qr=k(ha,2);Xv(Qr,{get isVisible(){return P()}});var Tn=k(Qr,2);{var pl=Ue=>{let hi=f(()=>{var co;return(co=e.live)==null?void 0:co.startTime});Ac(Ue,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(hi)},onUpcomingLiveViewStateChanged:va,onContextMenu:ui,onClick:sn})};V(Tn,Ue=>{a()==="LiveWaitingStart"&&Ue(pl)})}var _a=k(Tn,2);{var Gr=Ue=>{sl(Ue,{kind:"recover",get thumbUrl(){return e.thumbUrl},onContextMenu:ui,onClick:sn})};V(_a,Ue=>{a()==="LiveWaitingRecover"&&Ue(Gr)})}var fl=k(_a,2);{var md=Ue=>{sl(Ue,{kind:"record",get thumbUrl(){return e.thumbUrl},onContextMenu:ui,onClick:sn})};V(fl,Ue=>{a()==="LiveWaitingRecord"&&Ue(md)})}var ba=k(fl,2);{var vd=Ue=>{var hi=kC();let co;var Er=C(hi);Jd(Er,{get adsSlotId(){return ut()},get adsParams(){return kt()},get adsAutoplayParam(){return Zt()},get duration(){return At()},get adsExternalApi(){return e.adsExternalApi},get adsJson(){return e.adsJson}}),S(hi),O(an=>co=oe(hi,1,"ads-container s-9",null,co,an),[()=>({hidden:a()!=="ads"})]),b(Ue,hi)};V(ba,Ue=>{e.showAds&&fe()&&Ue(vd)})}var ml=k(ba,2);{var vl=Ue=>{let hi=f(()=>!St()&&e.showAutoplayNext&&x());hm(Ue,{get title(){return le()},get thumb(){return $e()},get isHide(){return n(hi)},clickCloseIcon:()=>N(xt,!0)})};V(ml,Ue=>{n(so)&&le()&&$e()&&Ue(vl)})}var $a=k(ml,2);{var ft=Ue=>{let hi=f(()=>$()?"md":"sm"),co=f(()=>{var Er;return(Er=e.store.callbacks)==null?void 0:Er.onTitleClicked});wv(Ue,{get title(){return e.title},get isHidden(){return n(pt)},onVisibilityChanged:Ws,get titleLinkHref(){return n(ai)},onMouseEnter:()=>{N(ds,!0)},onMouseLeave:()=>{N(ds,!1)},get size(){return n(hi)},get onTitleClicked(){return n(co)},get ref(){return n(ws)},set ref(Er){N(ws,Er,!0)}})};V($a,Ue=>{n(xr)&&Ue(ft)})}var nt=k($a,2);{var Zi=Ue=>{let hi=f(()=>a()==="video"&&v());Pc(Ue,{get isShifted(){return n(hi)}})};V(nt,Ue=>{X()&&Ue(Zi)})}var ko=k(nt,2);{var Ji=Ue=>{var hi=AC(),co=C(hi);jd(co,{}),S(hi),b(Ue,hi)};V(ko,Ue=>{xe()&&Ue(Ji)})}var gi=k(ko,2);{var Ki=Ue=>{kc(Ue,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return Be()},onClick:Kn,onContextMenu:ui,onDblClick:Kr})};V(gi,Ue=>{ee()&&Ue(Ki)})}var qs=k(gi,2);{var gd=Ue=>{ol(Ue,{get shifted(){return v()},get captions(){return ne()},get position(){return ce()},get playerSize(){return U()}})};V(qs,Ue=>{tt().value!=="off"&&Ue(gd)})}var Yc=k(qs,2);{var Hp=Ue=>{var hi=LC();hi.__contextmenu=ui,hi.__click=[PC,Z,ot,m,bi,Fe];var co=C(hi);nl(co,{}),S(hi),b(Ue,hi)};V(Yc,Ue=>{s()&&Ue(Hp)})}var jc=k(Yc,2);{var Fp=Ue=>{let hi=f(()=>a()==="thumb"||a()==="LiveWaitingStart"||a()==="LiveWaitingRecover"||a()==="LiveWaitingRecord"),co=f(()=>a()==="ads"),Er=f(()=>e.canRewindLive&&Re()!==0);Ic(Ue,{get bottomHidden(){return n(hi)},get bottomNoSmooth(){return z()},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 Bt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Wt()},get nextButtonActive(){return Y()},get prevButtonActive(){return Pe()},get isOneVideoPlaylist(){return Me()},customFullscreenSupported:nr,toggleFullscreen:It,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return n(_r)},set playerControlsWrapperRef(an){N(_r,an,!0)},get playerControlsRef(){return n(Hi)},set playerControlsRef(an){N(Hi,an,!0)}})};V(jc,Ue=>{fe()&&Ue(Fp)})}var Xc=k(jc,2);{var Up=Ue=>{var hi=MC(),co=C(hi);let Er=f(()=>{var an;return(an=n(Hi))==null?void 0:an.clientHeight});Rc(co,{get supportLink(){return e.supportLink},get playerControlsHeight(){return n(Er)},returnFocus:()=>{var an;return(an=Gt())==null?void 0:an.focus()},get ref(){return n(br)},set ref(an){N(br,an,!0)}}),S(hi),b(Ue,hi)};V(Xc,Ue=>{!ee()&&a()!=="ads"&&Ue(Up)})}var Zc=k(Xc,2);let zp=f(()=>!n(yr));ic(Zc,{get isLive(){return Ae()},get isHidden(){return n(zp)},get isPlaying(){return Je()},get position(){return ce()},get duration(){return Re()}});var ya=k(Zc,2);yv(ya,{get data(){return _n}});var Jc=k(ya,2);vm(Jc,{get supportLink(){return e.supportLink},returnFocus:()=>{var Ue;return(Ue=Gt())==null?void 0:Ue.focus()},get visible(){return Z()},get playerContainerRef(){return n(Bo)},get position(){return Ee()},get menuElementRef(){return n(qn)},set menuElementRef(Ue){N(qn,Ue,!0)}});var Qs=k(Jc,2);{var gl=Ue=>{Nc(Ue,{onClose:Hn,onSelectAutoQuality:()=>{$s("auto"),Hn()}})};V(Qs,Ue=>{n(Fr)&&Ue(gl)})}var eu=k(Qs,2);{var tu=Ue=>{Jv(Ue,{})};V(eu,Ue=>{Te()&&Ue(tu)})}var hl=k(eu,2);{var iu=Ue=>{Qa(Ue,{})};V(hl,Ue=>{n(ir)&&Ue(iu)})}var ou=k(hl,2);{var nu=Ue=>{wm(Ue,{})};V(ou,Ue=>{He()&&Ue(nu)})}var Wp=k(ou,2);{var Kp=Ue=>{sc(Ue,{})};V(Wp,Ue=>{Pt()&&Ue(Kp)})}b(Ko,Ts)}),b(he,ii)},$$slots:{default:!0}}),he=>Gt(he),()=>Gt());var Cs=k(Sn,2);je(Cs,he=>N($o,he),()=>n($o)),S(yi),je(yi,he=>N(Bo,he),()=>n(Bo));var Wi=k(yi,2);{var Ti=he=>{var bt=NC();b(he,bt)};V(Wi,he=>{Ct()&&he(Ti)})}ct("mouseenter",yi,Fo),ct("mouseleave",yi,Uo),ct("click",yi,$i,!0),ct("focusin",yi,So,!0),b(t,Eo),H(),o()}Ge(["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),Q(t,FC);let i=h(e,"seekStep",3,0),o=q(!1),r=0,a=0,l=q(li(i())),d=p=>{p.stopPropagation(),a+=1,N(l,i()*(a-1)),a===1?e.handleSingleFirstClick(p):(N(o,!0),e.handleSecondClick()),window.clearTimeout(r),r=window.setTimeout(()=>{a=0,N(o,!1)},300)};cn(()=>{window.clearTimeout(r)});var s=HC();s.__click=d;var u=C(s);{var m=p=>{var v=BC(),_=ue(v),y=k(_,2),$=C(y),x=C($),I=k(x,2),T=k(I,2);S($);var R=k($,2),A=C(R,!0);S(R),S(y),O(P=>{var E,z,F,U;oe(_,1,`semicircle ${(E=e.side)!=null?E:""}`,"s-h"),oe(x,1,`triangle ${(z=e.side)!=null?z:""}`,"s-h"),oe(I,1,`triangle ${(F=e.side)!=null?F:""}`,"s-h"),oe(T,1,`triangle ${(U=e.side)!=null?U:""}`,"s-h"),ve(A,P)},[()=>j("doubletap_seek_step",{seconds:n(l).toFixed(0)})]),b(p,v)};V(u,p=>{n(o)&&p(m)})}S(s),O(()=>{var p;return oe(s,1,`double-click-area ${(p=e.side)!=null?p:""}`,"s-h")}),b(t,s),H()}Ge(["click"]);var UC=(t,e,i)=>{e(!1),i()},zC=L('<div class="overlay s-k"></div> <div class="next-video s-k"><div class="top s-k"><div class="caption s-k"> </div> <!></div> <div class="row s-k"><div class="column s-k"><div class="thumb s-k"><div></div> <!></div></div> <div class="column s-k"><div class="title s-k"> </div></div></div></div>',1),WC={hash:"s-k",code:".overlay.s-k{background:rgba(0,0,0,.72);height:100%;position:absolute;width:100%}.next-video.s-k{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-k{display:flex;justify-content:space-between}.caption.s-k{color:var(--white);font-size:11px;font-weight:700;opacity:.8;text-transform:uppercase}.row.s-k{background:rgba(48,48,48,.8);cursor:pointer;display:flex;flex-direction:row;height:102px;margin-top:6px;width:100%}.column.s-k{display:flex;flex-basis:50%;flex-direction:column}.thumb.s-k{align-items:center;background:no-repeat 50%;background-size:cover;display:flex;justify-content:space-around;position:relative}.thumb.s-k,.thumb-overlay.s-k{height:100%;width:100%}.thumb-overlay.s-k{position:absolute}.thumb-overlay.withOpacity.s-k{background:var(--black);opacity:.3}.title.s-k{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),Q(t,WC);let[i,o]=Ne(),r=()=>w(d,"$autoplayNextEnabled$",i),a=()=>w(s,"$timerNextVideoRunning$",i),l=be(),d=l.ui.autoplayNextEnabled$,s=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,m=l.actions.internal.nextVideoAnnouncementShow,p=l.actions.internal.nextVideoAnnouncementClick,v=l.actions.internal.nextVideoAnnouncementAuto,_=l.actions.internal.nextVideoAnnouncementCancel,y=()=>{u(!1),v()},$=()=>{e.clickCloseIcon(),_()};Rt(()=>{e.isHide||m(),e.isHide&&r()&&(u(!1),v())});var x=Le(),I=ue(x);{var T=R=>{var A=zC(),P=k(ue(A),2),E=C(P),z=C(E),F=C(z,!0);S(z);var U=k(z,2);Ds(U,{onClick:$}),S(E);var X=k(E,2);X.__click=[UC,u,p];var ae=C(X),Z=C(ae),re=C(Z);let J;var we=k(re,2);{var me=ge=>{ac(ge,{get isRunning(){return a()},onTimerEnded:y})};V(we,ge=>{r()&&ge(me)})}S(Z),S(ae);var ee=k(ae,2),_e=C(ee),Ce=C(_e,!0);S(_e),S(ee),S(X),S(P),O((ge,pe)=>{ve(F,ge),Ke(Z,`background-image: url('${e.thumb}')`),J=oe(re,1,"thumb-overlay s-k",null,J,pe),ve(Ce,e.title)},[()=>r()?j("end_screen_next_video"):j("end_screen_recommended_video"),()=>({withOpacity:r()})]),b(R,A)};V(I,R=>{e.isHide||R(T)})}b(t,x),H(),o()}Ge(["click"]);var n$=require("@vkontakte/videoplayer-core/es2018");var r$=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Rt(()=>{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"),m=()=>a$.clientChecker.device.isIOS&&ye(l)===s$.VideoFormat.DASH_LIVE_CMAF,p=()=>{s==null||s(),s=null},v=_=>{if(p(),!m()||!_)return;let y=u();if(!y)return;let $=new Cp(y),x=ye(d),I=ye(a),T=ye(r);for(let P of x)I.some(z=>z.value===P.id)&&$.attach(P,T.value===P.id);let R=d.subscribe(P=>{for(let E of P)$.updateSrc(E)}),A=()=>{let P=$.getCurrentShowingId();o(ye(a).find(E=>E.value===P))};y.textTracks.addEventListener("change",A),s=()=>{R(),$.detachAll(),y.textTracks.removeEventListener("change",A)}};Rt(()=>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-7"><!></div>'),YC=L("<div><!></div>"),jC=L('<div class="settings-mobile s-7"><!></div>'),XC=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),ZC=L('<div class="player-wrapper s-7" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),JC={hash:"s-7",code:".player-wrapper.s-7{height:100%;position:absolute;width:100%}.player-wrapper.s-7 .player-media{background:var(--black);height:100%;left:0;position:absolute;top:0;transition:transform .2s ease-in-out;width:100%}.spherical-video-icon.s-7{display:inline-block;left:calc(50% - 38px);position:absolute;top:calc(50% - 23px)}.ads-container.s-7{background:var(--black);height:100%;left:0;position:absolute;top:0;width:100%;z-index:var(--ads-container-z-index)}.settings-mobile.s-7{align-items:center;display:flex;left:50%;max-width:320px;position:absolute;top:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);width:90%;z-index:var(--settings-menu-z-index)}"};function og(t,e){var yn,xr;B(e,!0),Q(t,JC);let[i,o]=Ne(),r=()=>w(Me,"$playerPhase",i),a=()=>w(ci,"$isLoaderVisible",i),l=()=>w(Pe,"$adPlaybackState",i),d=()=>w(ei,"$crashed",i),s=()=>w($s,"$notificationsToShow$",i),u=()=>w(Y,"$playbackState$",i),m=()=>w(At,"$graphIsOpened$",i),p=()=>w(Oe,"$interactiveHideMobileControls",i),v=()=>w(Ni,"$isEnded$",i),_=()=>w(vt,"$isInteractiveExpectation$",i),y=()=>w(wt,"$controlsVisible",i),$=()=>w(rt,"$touched",i),x=()=>w(ki,"$autoplayNextEnabled$",i),I=()=>w(pi,"$postrollPassed",i),T=()=>w(Br,"$bottomNoSmooth",i),R=()=>w(ot,"$videoSize",i),A=()=>w(ht,"$playerSize",i),P=()=>w(lt,"$isFullscreen",i),E=()=>w(le,"$position$",i),z=()=>w($e,"$duration$",i),F=()=>w(fn,"$loadedMetadata",i),U=()=>w(ze,"$settingsMenuVisible",i),X=()=>w(Gt,"$scrubbingInProgress",i),ae=()=>w(Tt,"$volumeChangingInProgress",i),Z=()=>w(Dt,"$chromecastConnected$",i),re=()=>w(fe,"$isControlsAvailable",i),J=()=>w(si,"$isInteractiveTime$",i),we=()=>w(Di,"$isActiveLive",i),me=()=>w(St,"$settingsMenuOpenedByKeyboard",i),ee=()=>w(Wt,"$language$",i),_e=()=>w(_t,"$disabledControls$",i),Ce=()=>w(Ht,"$is3DVideo",i),ge=()=>w(W,"$icon3DVideoVisible",i),pe=()=>w(vo,"$chromecastDeviceName$",i),qe=()=>w(Ci,"$currentSubtitle$",i),G=()=>w(Jo,"$currentSubtitleCaptions$",i),D=()=>w(No,"$realDuration$",i),Qe=()=>w(it,"$isLive$",i),K=()=>w(jt,"$isPlaying$",i),se=()=>w(ri,"$debugPanelVisible",i),xe=h(e,"videoContainer",15),Be=h(e,"adsSlotId",3,void 0),tt=h(e,"adsParams",3,void 0),ne=h(e,"adsAutoplayParam",3,void 0),ce=h(e,"duration",3,void 0),Re=h(e,"logoTargetUrl",3,""),Ae=h(e,"showNextPrevButtons",3,!1),Je=h(e,"nextButtonActive",3,!1),Ee=h(e,"prevButtonActive",3,!1),Te=h(e,"endScreenVideoTitle",3,void 0),He=h(e,"endScreenVideoThumb",3,void 0),Pt=h(e,"isOneVideoPlaylist",3,!1),Ct=h(e,"showMiniTimer",3,!1),Mt=h(e,"fullScreenTarget",3,void 0),ut=h(e,"playerStarted",3,!1),kt=h(e,"showEndScreen",3,!0),{notifications$:Zt,graphIsOpened$:At}=_o(),Bt=e.store.getLogger().createComponentLog("Root component"),Wt=e.store.interfaceLanguage$,Y=e.store.state.playbackState$,Pe=e.store.ads.playbackState,le=e.store.state.positionWithScrubbing$,$e=e.store.state.duration$,Me=e.store.playerPhase,lt=e.store.ui.isFullscreen,wt=e.store.ui.controlsVisible,fe=e.store.ui.isControlsAvailable,Oe=e.store.ui.interactiveHideMobileControls,ze=e.store.ui.settingsMenu.visible$,St=e.store.ui.settingsMenu.openedByBtnKeyboard$,Gt=e.store.ui.scrubbingInProgress,Tt=e.store.ui.volumeChangingInProgress,ri=e.store.ui.debugPanelVisible,ci=e.store.state.isLoaderVisible,Ni=e.store.state.isEnded$,Dt=e.store.state.chromecastConnected$,vo=e.store.state.chromecastDeviceName$,pi=e.store.ads.postrollPassed,it=e.store.state.isLive$,jt=e.store.state.isPlaying$,Di=e.store.state.isActiveLive$,bi=e.store.state.isRewindableLive$,ei=e.store.state.crashed$,wi=e.store.webApi.annotationsApi,st=e.store.webApi.pictureInPictureApi,ot=e.store.state.videoSize$,Ci=e.store.state.currentSubtitle$,Jo=e.store.state.currentSubtitleCaptions$,No=e.store.state.duration$,ht=e.store.ui.playerSize,Ht=e.store.ui.is3DVideo,W=e.store.ui.icon3DVideoVisible,Vt=e.store.state.isInteractive,si=e.store.state.isInteractiveTime$,vt=e.store.state.isInteractiveExpectation$,Jt=e.store.state.hasInteractiveBranches,_t=e.store.ui.controls.disabledControls$,rt=e.store.ui.touched,Oi=e.store.ui.overlayContainer$,ki=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,Bi=(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),Do=q(void 0),Oo,vn,Rr=f(()=>(r()==="video"&&a()||r()==="ads"&&l()==="inactive")&&!d()),Nr=q(void 0),{closeNotification:Dr,notificationsToShow$:$s}=Zt,Or=f(()=>!!s().slow_video),er=()=>Dr("slow_video"),Br=de(!1),gn,hn=q(!1),mr=f(()=>u()!==ma.PlaybackState.PLAYING),vr=q(!1),en=f(()=>m()||p()||!n(hn)&&(v()&&!!Jt||n(mr)&&_())),gr=q(!0),hr=f(()=>e.uiConfig.features.thumbTimer&&Ct()&&r()==="video"&&!y()&&!d()&&!Vt&&(e.uiConfig.hideThumbTimerAfterTouch&&!$()||!e.uiConfig.hideThumbTimerAfterTouch)),tr=q(!1),On=f(()=>(kt()||e.showAutoplayNext&&x())&&!!Te()&&!!He()&&(e.showAds&&I()||!e.showAds)&&v()&&!d()&&!n(tr)),as=q(!1);st==null||st.setContext(xd());let Bo=pt=>{pt&&!Vt&&Hi(e.uiConfig.controls.hideTimeoutMobile)};e.store.setUiCallbacks({onStarted:Bo});let _r=()=>{clearTimeout(Oo),N(hn,!1),p()&&Oe.set(!1)},Hi=pt=>{_r(),N(hn,!0),Oo=setTimeout(()=>N(hn,!1),pt);let xt=pt-100;gn=setTimeout(()=>{T()&&Br.set(!1)},xt>0?xt:pt)},br=Ht.subscribe(pt=>{W.set(pt),pt&&(clearTimeout(vn),vn=setTimeout(()=>W.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Bn=async(pt=ra())=>{var xt,so,go,nn,yo,xo;if(pt&&!ma.clientChecker.device.isIOS){let Ei=Xd(),wo=Hn(),Ur=ma.clientChecker.browser.isSamsungBrowser&&Ei===e.shadowRootContainer;pt=Ei===wo||Ur}if(pt){Hi(e.uiConfig.controls.hideTimeoutFullscreen);try{await(st==null?void 0:st.exit())}catch(Ei){Bt({message:String(Ei)})}try{let Ei=(xt=R())!=null&&xt.width&&((so=R())!=null&&so.height)?R():A();await j_(Ei)}catch(Ei){Bt({message:String(Ei)})}}lt.set(pt),e.store.getAdmanWrapper().setFullscreen(pt),P()?(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)},mt=pt=>{let xt=pt,{width:so,height:go}=xt.target;ht.set({width:so,height:go})},ti=()=>{let{width:pt,height:xt}=n(bo).getBoundingClientRect();ht.set({width:pt,height:xt})};Rt(()=>{var pt;return ju(Bn),e.uiConfig.features.annotationsInside&&(wi==null||wi.init(n(bo))),za(st)&&(st==null||st.assignPlayerContainer(n(bo)),st==null||st.setExternalEventHandlers({resize:mt,leavepictureinpicture:ti})),N(gr,!ma.clientChecker.device.isIphoneOrOldIpad),e.interactiveContainer&&((pt=xe().parentElement)==null||pt.insertBefore(e.interactiveContainer,xe().nextSibling)),()=>{clearTimeout(Oo),clearTimeout(gn),clearTimeout(vn),br(),st==null||st.dispose().catch(xt=>{Bt({message:String(xt)})}),Xu(Bn)}});let $r=q(!0),Hr=q(!0),Fr=pt=>{let xt=E()+(pt==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;xt<0?(N($r,!1),xt=0):xt>=z()&&(N(Hr,!1),xt=z()),N(vr,!0),e.seekTime(xt)},Hn=()=>ma.clientChecker.device.isIOS?n(bo):!e.uiConfig.allowChangingFullscreenTarget||!Mt()?e.outerContainerRef:Mt().contains(e.outerContainerRef)?Mt():e.outerContainerRef,ir=async()=>{try{if(ra())await Yu(document),Bt({message:"exit fullscreen"});else{if(Bt({message:"request fullscreen"}),ma.clientChecker.device.isIOS&&!F())return;await Gu(Hn())}}catch(pt){Bt({message:String(pt)})}},$o=()=>{mn()},Fn=pt=>{if(pt.preventDefault(),U()){$o();return}if(!ut()){e.firstStart(),Hi(e.uiConfig.controls.hideTimeoutCursor);return}N(vr,!1),y()?_r():Hi(e.uiConfig.controls.hideTimeoutMobile)},or=()=>{rt.set(!0)},Un=()=>{Vt||(Br.set(!0),Hi(e.uiConfig.controls.hideTimeoutCursor))},_n=pt=>{Ai&&(Ai(pt),Hi(e.uiConfig.controls.hideTimeoutMobile))},bn=pt=>{Bi&&(Bi(pt),Hi(e.uiConfig.controls.hideTimeoutMobile))};De(()=>{Oi.set(n(Nr))}),De(()=>{wt.set((n(mr)||U()||X()||ae()||Z()||!n(On)&&(v()||n(hn)&&!n(vr)))&&!n(en)&&r()==="video"&&!d()&&re())}),De(()=>{!X()&&n(as)&&!J()&&Hi(e.uiConfig.controls.hideTimeoutMobile),N(as,X(),!0)}),De(()=>{N($r,E()>0),N(Hr,!we()&&E()<z(),!0)}),De(()=>{nc(n(Do),U(),me(),!0)});let $n=j("aria_label_video_player");r$({fullScreenChangeHandler:Bn,getFullscreenTarget:Hn}),l$({store:e.store,getFullscreenTarget:Hn});let tn=(pt,xt)=>{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=!!xt,nn={...Zn(n(bo),{upcomingLiveScreen:xt},"upcomingLiveScreen",go),...pt};so(nn)};var Fi=ZC();ct("blur",Pa,$o);var Xi=C(Fi);dl(Xi,{onClick:Fn,get videoContainer(){return xe()},set videoContainer(pt){xe(pt)}});var on=k(Xi,2);Ra(on,()=>"slot",!1,(pt,xt)=>{to(pt,()=>({name:ll}))});var nr=k(on,2);Ls(nr,ee,pt=>{var xt=XC(),so=ue(xt);let go=f(()=>r()!=="thumb"||d()||Vt&&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=k(so,2);{var yo=Ze=>{var Xt=qC(),$i=ue(Xt);{var Io=Wo=>{let rr=f(()=>e.uiConfig.controls.seekStepMobile/1e3);Sp(Wo,{side:"left",get seekStep(){return n(rr)},handleSingleFirstClick:Fn,handleSecondClick:()=>Fr("backward")})};V($i,Wo=>{n($r)&&Wo(Io)})}var wn=k($i,2);{var qn=Wo=>{let rr=f(()=>e.uiConfig.controls.seekStepMobile/1e3);Sp(Wo,{side:"right",get seekStep(){return n(rr)},handleSingleFirstClick:Fn,handleSecondClick:()=>Fr("forward")})};V(wn,Wo=>{n(Hr)&&Wo(qn)})}b(Ze,Xt)};V(nn,Ze=>{e.canRewindLive&&bi&&!_e().has("TIMELINE")&&Ze(yo)})}var xo=k(nn,2);{var Ei=Ze=>{let Xt=f(()=>{var $i;return($i=e.live)==null?void 0:$i.startTime});Ac(Ze,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(Xt)},onUpcomingLiveViewStateChanged:tn})};V(xo,Ze=>{r()==="LiveWaitingStart"&&Ze(Ei)})}var wo=k(xo,2);{var Ur=Ze=>{sl(Ze,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};V(wo,Ze=>{r()==="LiveWaitingRecover"&&Ze(Ur)})}var wr=k(wo,2);{var ys=Ze=>{sl(Ze,{kind:"record",get thumbUrl(){return e.thumbUrl}})};V(wr,Ze=>{r()==="LiveWaitingRecord"&&Ze(ys)})}var Ui=k(wr,2);{var xs=Ze=>{var Xt=QC();let $i;var Io=C(Xt);Jd(Io,{get adsSlotId(){return Be()},get adsParams(){return tt()},get adsAutoplayParam(){return ne()},get duration(){return ce()},get adsExternalApi(){return e.adsExternalApi},get adsJson(){return e.adsJson}}),S(Xt),O(wn=>$i=oe(Xt,1,"ads-container s-7",null,$i,wn),[()=>({hidden:r()!=="ads"})]),b(Ze,Xt)};V(Ui,Ze=>{e.showAds&&ut()&&Ze(xs)})}var ls=k(Ui,2);{var Sr=Ze=>{let Xt=f(()=>!kt()&&e.showAutoplayNext&&x());ig(Ze,{get title(){return Te()},get thumb(){return He()},get isHide(){return n(Xt)},clickCloseIcon:()=>N(tr,!0)})};V(ls,Ze=>{n(On)&&Te()&&He()&&Ze(Sr)})}var Ho=k(ls,2);{var zr=Ze=>{Pc(Ze,{})};V(Ho,Ze=>{Ce()&&Ze(zr)})}var rn=k(Ho,2);{var sn=Ze=>{var Xt=GC(),$i=C(Xt);jd($i,{}),S(Xt),b(Ze,Xt)};V(rn,Ze=>{ge()&&Ze(sn)})}var Fe=k(rn,2);{var It=Ze=>{kc(Ze,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return pe()},onClick:Fn})};V(Fe,Ze=>{Z()&&Ze(It)})}var ui=k(Fe,2);{var Fo=Ze=>{ol(Ze,{get shifted(){return y()},get captions(){return G()},get position(){return E()},get playerSize(){return A()},isMobile:!0})};V(ui,Ze=>{qe().value!=="off"&&Ze(Fo)})}var So=k(ui,2);{var Uo=Ze=>{var Xt=YC();Xt.__click=[KC,U,ze,$o];var $i=C(Xt);nl($i,{}),S(Xt),b(Ze,Xt)};V(So,Ze=>{d()&&Ze(Uo)})}var zi=k(So,2);{var Co=Ze=>{let Xt=f(()=>r()==="thumb"||r()==="LiveWaitingStart"||r()==="LiveWaitingRecover"||r()==="LiveWaitingRecord"||r()==="ads"),$i=f(()=>r()==="ads"),Io=f(()=>e.canRewindLive&&D()!==0);Ic(Ze,{get bottomHidden(){return n(Xt)},get showControls(){return y()},get bottomNoSmooth(){return T()},get isAds(){return n($i)},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 Ae()},get nextButtonActive(){return Je()},get prevButtonActive(){return Ee()},get isOneVideoPlaylist(){return Pt()},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){N(ro,wn,!0)},get playerControlsRef(){return n(Ii)},set playerControlsRef(wn){N(Ii,wn,!0)}})};V(zi,Ze=>{ut()&&Ze(Co)})}var zn=k(zi,2);{var Cr=Ze=>{var Xt=jC(),$i=C(Xt);Rc($i,{get supportLink(){return e.supportLink},get returnFocus(){return d$.noop},get ref(){return n(Do)},set ref(Io){N(Do,Io,!0)}}),S(Xt),b(Ze,Xt)};V(zn,Ze=>{U()&&Ze(Cr)})}var To=k(zn,2);let ao=f(()=>!n(hr));ic(To,{get isLive(){return Qe()},get isHidden(){return n(ao)},get isPlaying(){return K()},get position(){return E()},get duration(){return z()}});var xn=k(To,2);{var zo=Ze=>{Qa(Ze,{})};V(xn,Ze=>{n(Rr)&&Ze(zo)})}var Wn=k(xn,2);{var Wr=Ze=>{sc(Ze,{})};V(Wn,Ze=>{se()&&Ze(Wr)})}var Kr=k(Wn,2);{var Kn=Ze=>{Nc(Ze,{onClose:er,onSelectAutoQuality:()=>{Dn("auto"),er()}})};V(Kr,Ze=>{n(Or)&&Ze(Kn)})}b(pt,xt)});var yr=k(nr,2);je(yr,pt=>N(Nr,pt),()=>n(Nr)),S(Fi),je(Fi,pt=>N(bo,pt),()=>n(bo)),O(()=>Ve(Fi,"aria-label",$n)),ct("click",Fi,or,!0),ct("focusin",Fi,Un,!0),b(t,Fi),H(),o()}Ge(["click"]);function Tp(t){let e="";return no(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),no(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),no(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),no(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),no(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),no(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),no(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),no(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),no(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),no(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),no(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),no(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),no(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),no(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),no(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),no(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),no(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),no(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),no(t.font)&&(e+=`--font:${t.font};`),no(t.controlsGradientHeight)&&(e+=`--controls-gradient-height:${t.controlsGradientHeight};`),no(t.controlsGradient)&&(e+=`--controls-gradient:${t.controlsGradient};`),e.length&&e||void 0}function no(t){return typeof t=="string"&&!t.includes(";")}var c$=require("@vkontakte/videoplayer-shared/es2018");var eT=L('<div class="time-container s-8"><!></div>'),tT=L('<div class="player-wrapper s-8" role="region"><!> <!> <!> <!> <!> <div><!></div></div>'),iT={hash:"s-8",code:".player-wrapper.s-8{height:100%;position:absolute;width:100%}.player-wrapper.s-8 .player-media{background:var(--black);height:100%;left:0;position:absolute;top:0;transition:transform .2s ease-in-out;width:100%}.timeline.s-8{bottom:0;left:0;opacity:0;opacity:1;position:absolute;transition:opacity var(--controls-transition-duration) var(--controls-transition-fn);width:100%;z-index:var(--controls-container-z-index)}.visible.s-8{opacity:1}.time-container.s-8{bottom:8px;position:absolute;right:8px;z-index:var(--thumb-timer-z-index)}"};function ng(t,e){B(e,!0),Q(t,iT);let[i,o]=Ne(),r=()=>w(J,"$scrubbingInProgress",i),a=()=>w(Z,"$playerSize",i),l=()=>w(E,"$isPlaying$",i),d=()=>w(A,"$duration$",i),s=()=>w(U,"$positionWithScrubbing$",i),u=()=>w(T,"$playerPhase",i),m=()=>w(R,"$crashed$",i),p=()=>w(z,"$currentSubtitle$",i),v=()=>w(F,"$currentSubtitleCaptions$",i),_=()=>w(P,"$positionExact$",i),y=()=>w(X,"$isLive$",i),$=()=>w(ae,"$isRewindableLive$",i),x=h(e,"outsideDuration",3,0),I=h(e,"videoContainer",15),{playerPhase:T,state:{crashed$:R,duration$:A,positionExact$:P,isPlaying$:E,currentSubtitle$:z,currentSubtitleCaptions$:F,positionWithScrubbing$:U,isLive$:X,isRewindableLive$:ae},ui:{playerSize:Z,controls:re,scrubbingInProgress:J},actions:{internal:{getVideoElement:we}}}=be(),me=8,ee=q(!1),_e=li({}),Ce=q(!1),ge=f(()=>!r()&&!n(Ce)),pe=()=>{N(ee,!0)},qe=()=>{N(ee,!1)},G=(0,c$.debounceFn)(td,260);De(()=>{a(),G(we(),re,_e,n(ee))});let D=f(()=>l()?Zo(d()-s()):Zo(isFinite(d())?d():x()));var Qe=tT(),K=C(Qe);dl(K,{hideCursor:!1,get videoContainer(){return I()},set videoContainer(Te){I(Te)}});var se=k(K,2);Ra(se,()=>"slot",!1,(Te,He)=>{to(Te,()=>({name:ll}))});var xe=k(se,2);let Be=f(()=>u()!=="thumb"||m());rl(xe,{get hidden(){return n(Be)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var tt=k(xe,2);{var ne=Te=>{ol(Te,{shifted:!1,get captions(){return v()},get position(){return _()},get playerSize(){return a()}})};V(tt,Te=>{p().value!=="off"&&n(ge)&&Te(ne)})}var ce=k(tt,2);{var Re=Te=>{var He=eT(),Pt=C(He);tc(Pt,{get isLive(){return y()},get isPlaying(){return l()},get time(){return n(D)}}),S(He),b(Te,He)};V(ce,Te=>{n(ge)&&Te(Re)})}var Ae=k(ce,2);let Je;var Ee=C(Ae);el(Ee,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return $()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:me,tooltipRightOffset:me,get ref(){return _e.timeline},set ref(Te){_e.timeline=Te}}),S(Ae),S(Qe),O(Te=>Je=oe(Ae,1,"timeline s-8",null,Je,Te),[()=>({visible:n(ee)})]),ct("mouseenter",Qe,pe),ct("mouseleave",Qe,qe),ct("mouseenter",Ae,()=>N(Ce,!0)),ct("mouseleave",Ae,()=>N(Ce,!1)),b(t,Qe),H(),o()}var oT=L("<div><!></div>"),nT={hash:"s-1",code:'.vk-vp-root.s-1{--white:#fff;--black:#000;--red:#ff3347;--blue-light:#70c1ff;--black-alpha-40:rgba(0,0,0,.4);--white-alpha-24:hsla(0,0%,100%,.24);--white-alpha-72:hsla(0,0%,100%,.72);--devider-gray:#dce1e6;--text-gray:#626d7a;--font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;--controls-height:40px;--controls-gradient-height:100px;--controls-transition-duration:0.25s;--controls-transition-fn:cubic-bezier(0.455,0.03,0.515,0.955);--controls-desktop-item-margin-left:4px;--controls-desktop-padding-horizontal:4px;--focused:var(--white);--focused-outline-width:2px;--focused-outline-radius:0;--focused-element-shadow:inset 0 0 0 var(--focused-outline-width) var(--focused);--focused-slider-shadow:0 0 0 2px var(--focused);--big-play-size:96px;--big-play-radius:50%;--big-play-bg-color:rgba(0,0,0,.5);--big-play-hover-bg-color:rgba(0,0,0,.6);--big-play-icon-width:38px;--big-play-icon-height:33px;--interactive-episode-complete:#5c9ce6;--slider-bg:hsla(0,0%,100%,.4);--slider-filled-bg:var(--white);--slider-handle-bg:var(--white);--slider-loaded-bg:hsla(0,0%,100%,.4);--slider-height:3px;--slider-video-episode-gap:1.5px;--slider-radius:0px;--slider-handle-size:12px;--slider-filled-ads:#67a5eb;--slider-disabled-color:hsla(0,0%,97%,.31);--slider-volume-height:5px;--slider-volume-radius:calc(var(--slider-volume-height)/2);--slider-volume-handle-size:13px;--timeline-slider-filled-active-live-bg:var(--red);--timeline-slider-handle-active-live-bg:var(--red);--timeline-slider-bg:var(--slider-bg);--timeline-slider-filled-bg:var(--slider-filled-bg);--timeline-slider-handle-bg:var(--slider-handle-bg);--timeline-slider-loaded-bg:var(--slider-loaded-bg);--volume-slider-bg:var(--slider-bg);--volume-slider-filled-bg:var(--slider-filled-bg);--volume-slider-handle-bg:var(--slider-handle-bg);--controls-time:var(--white);--controls-gradient:linear-gradient(180deg,transparent 0%,rgba(0,0,0,.005) 6.67%,rgba(0,0,0,.02) 13.33%,rgba(1,1,1,.04) 20%,rgba(1,1,1,.07) 26.67%,rgba(2,2,2,.11) 33.33%,rgba(3,3,3,.16) 40%,rgba(4,4,4,.22) 46.67%,rgba(6,6,6,.28) 53.33%,rgba(7,7,7,.33) 60%,rgba(8,8,8,.38) 66.67%,rgba(9,9,9,.42) 73.33%,rgba(9,9,9,.46) 80%,hsla(0,0%,4%,.48) 86.67%,hsla(0,0%,4%,.5));--timeline-preview-shadow:rgba(0,0,0,.08);--timeline-preview-bg:#222;--timeline-padding-horizontal:10px;--timeline-padding-vertical-top:3px;--timeline-padding-vertical-bottom:4px;--timeline-height:calc(var(--timeline-padding-vertical-bottom) + var(--timeline-padding-vertical-top) + var(--slider-height));--preview-track-frame-height-vertical:114px;--preview-track-frame-height-horizontal:65px;--preview-track-controls-top:16px;--preview-track-time-line-height:16px;--preview-track-bottom-offset:10px;--preview-track-height:calc(var(--preview-track-frame-height-vertical) + var(--preview-track-bottom-offset));--preview-track-controls-top-offset:calc(var(--timeline-height) + var(--preview-track-controls-top) + var(--preview-track-time-line-height));--settings-bg:rgba(0,0,0,.72);--settings-item-bg-hover:hsla(0,0%,100%,.08);--settings-radius:8px;--mobile-settings-bg:#2c2d2e;--divider-border:1px solid var(--white-alpha-24);--toggle-color-separator:#363738;--toggle-color-off:#656565;--toggle-color-on:#71aaeb;--toggle-color-autoplay-on:var(--white);--notification-bg:#2c2d2e;--notification-radius:8px;--button-hover-transition:opacity 0.2s;--video-container-z-index:0;--controls-container-z-index:1;--ads-container-z-index:1;--end-screen-mobile-z-index:1;--notification-z-index:1;--thumb-timer-z-index:2;--debug-panel-z-index:2;--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-1{overflow:visible}.vk-vp-root.s-1 *{-webkit-tap-highlight-color:transparent}.vk-vp-root.s-1 button{background:transparent;border:none;color:inherit;font:inherit;line-height:normal;margin:0;overflow:visible;padding:0;width:auto;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;cursor:pointer}.vk-vp-root.s-1 p{margin:0}.vk-vp-root.s-1 svg:not(.interactive-root svg){pointer-events:none}.vk-vp-root.s-1 .interactive-root{font-family:var(--vk-vp-int-custom-font,inherit)}.vk-vp-root.s-1 :focus,.vk-vp-root.s-1 :focus-visible{outline:none}.vk-vp-root.s-1 :focus-visible{border-radius:var(--focused-outline-radius);box-shadow:var(--focused-element-shadow)}.vk-vp-root.s-1 .focus-hidden:focus-visible{box-shadow:none}.vk-vp-root.s-1 .hidden{opacity:0;visibility:hidden}.vk-vp-root.s-1 .out-of-flow{content-visibility:hidden!important}.vk-vp-root.s-1 .overlay-container{height:100%;left:0;pointer-events:none;position:fixed;top:0;width:100%;z-index:var(--overlay-container-z-index)}.vk-vp-root.s-1 .out-of-view{left:-1000vh!important;position:absolute!important}.vk-vp-root.s-1 .icon.icon-error-stub{align-items:center;display:flex;justify-content:center}'};function rg(t,e){B(e,!0),Q(t,nT);let[i,o]=Ne(),r=()=>w(ut,"$isLive$",i),a=()=>w(wi,"$availableSubtitlesList$",i),l=()=>w(st,"$isPreviewTrackHorizontallyAligned$",i),d=h(e,"sources",7),s=h(e,"store",7),u=h(e,"microStoresRoot",7),m=h(e,"videoConfig",7),p=h(e,"uiConfig",7),v=h(e,"title",7),_=h(e,"thumbUrl",7),y=h(e,"interactiveContainer",7),$=h(e,"interactiveController",7),x=h(e,"subtitles",7),I=h(e,"subtitlesForcedLanguage",7),T=h(e,"live",7),R=h(e,"preload",7),A=h(e,"autoplay",7),P=h(e,"volume",7,void 0),E=h(e,"muted",7,void 0),z=h(e,"fromTime",7),F=h(e,"canRewindLive",7),U=h(e,"showAds",7),X=h(e,"adsSlotId",7,void 0),ae=h(e,"adsParams",7,void 0),Z=h(e,"adsAutoplayParam",7,void 0),re=h(e,"duration",7,void 0),J=h(e,"logoClickable",7),we=h(e,"logoHidden",7),me=h(e,"isMobile",7),ee=h(e,"showNextPrevButtons",7,!1),_e=h(e,"nextButtonActive",7,!1),Ce=h(e,"prevButtonActive",7,!1),ge=h(e,"endScreenVideoTitle",7,void 0),pe=h(e,"endScreenVideoThumb",7,void 0),qe=h(e,"isOneVideoPlaylist",7,!1),G=h(e,"supportLink",7),D=h(e,"shadowRootContainer",7),Qe=h(e,"outerContainerRef",7),K=h(e,"fullScreenTarget",7,void 0),se=h(e,"failoverHosts",7,void 0),xe=h(e,"showMiniTimer",7,!1),Be=h(e,"saveRate",7),tt=h(e,"seekToInteractive",7,cl.noop),ne=h(e,"playPrevChapter",7,cl.noop),ce=h(e,"volumeMultiplier",7),Re=h(e,"showAutoplayNext",7),Ae=h(e,"showEndScreen",7,!0),Je=h(e,"keyboardControls",15,void 0),{subscribers:Ee,stores:Te}=u();n_(p());let He=Nt(),Pt=p().logoLink,Ct=s().ui.debugPanelVisible,Mt=s().ui.playerSize,ut=s().state.isLive$,Zt=s().state.isInteractive&&sd.clientChecker.device.isAndroid,At=q(void 0),Bt=null,Wt=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),De(()=>{var W,Vt;s().ui.isMobile.set(me()),(Vt=(W=m().callbacks)==null?void 0:W.onDomReady)==null||Vt.call(W)});let Y=(W=!1)=>{N(Wt,!0),W?s().actions.external.firstStart(U()):s().actions.internal.firstStart(U())},Pe=()=>{if(He.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 Vt=Gf(s().videoId);Vt&&s().actions.internal.setQuality(Vt)}};function le(W){var _t,rt,Oi;let Vt=d()||W;Vt&&s().initVideo({container:n(At),sources:Vt,failoverHosts:se(),subtitles:x(),subtitlesForcedLanguage:I(),volumeMultiplier:ce()});let si=cl.safeStorage.get(Wd)==="true";Ct.set(si),z()>0&&s().actions.external.seekTime(z());let vt=me()?He.volumeDefault:(rt=(_t=P())!=null?_t:Bu())!=null?rt:He.volumeDefault,Jt=(Oi=E())!=null?Oi:L_();if(s().actions.external.setVolume(vt),s().actions.external.setMuted(Jt),s().getAdmanWrapper().setInitialVolume(Jt?0:vt),Pe(),He.features.saveRate&&Be()){let ki=R_();ki&&!r()&&s().actions.internal.setPlaybackRate(ki)}if(Re()){let ki=D_();ki&&s().actions.internal.setAutoplayNextEnabled(ki)}s().ui.isAutoplay.set(A()),A()&&Y(),R()&&He.features.preload&&s().actions.internal.preload()}let $e=W=>{if(window.ResizeObserver){let Vt,si;Bt=new ResizeObserver((0,cl.throttleFn)(vt=>{let Jt=vt[0];if(Jt.contentBoxSize){let _t=Array.isArray(Jt.contentBoxSize)?Jt.contentBoxSize[0]:Jt.contentBoxSize;Vt=_t.inlineSize,si=_t.blockSize}else Jt.contentRect&&(Vt=Jt.contentRect.width,si=Jt.contentRect.height);Mt.set({width:Vt,height:si})},300)),Bt.observe(W)}W.clientWidth&&W.clientHeight&&Mt.set({width:W.clientWidth,height:W.clientHeight})},Me=()=>{document.hidden&&s().actions.external.stop()};Rt(()=>{var si,vt,Jt,_t;Zt&&document.addEventListener("visibilitychange",Me),He.debugLog&&s().actions.internal.startLogging(),$e(n(At));let W=Ee.map(rt=>rt.init({store:s(),microStores:Te,config:m(),interactiveController:$(),uiConfig:p()})),Vt=()=>{Zt&&document.removeEventListener("visibilitychange",Me),Bt==null||Bt.disconnect(),W.forEach(rt=>rt.unsubscribe()),s().destroy()};return((si=T())==null?void 0:si.status)==="upcoming"?(s().actions.internal.setLiveWaitingStart(!0),Vt):((vt=T())==null?void 0:vt.status)==="waiting"?(s().actions.internal.setLiveWaitingRecover(!0),Vt):(((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),Vt):(le(),Vt)});function lt(){n(Wt)?s().actions.external.play():Y(!0)}function wt(){s().actions.external.pause()}function fe(W){s().actions.external.setMuted(W)}function Oe(){s().actions.external.toggleSubtitle()}function ze(W,Vt){s().actions.external.changeSubtitle(W,Vt)}function St(W){s().actions.external.changeAudioStream(W)}function Gt(){var W;(W=s().webApi.slotsApi)!=null&&W.haveSlots()&&s().actions.external.hideControls()}function Tt(){var W;(W=s().webApi.slotsApi)!=null&&W.haveSlots()&&s().actions.external.showControls()}function ri(W){me()||W>=0&&W<=1&&s().actions.external.setVolume(W)}function ci(W){s().actions.internal.seekTime(W,u$.SeekAction.UNKNOWN)}function Ni(W){s().actions.external.seekEpisodeStartTime(W)}function Dt(){s().actions.external.returnFocusToEpisodes()}function vo(W){s().actions.external.setPlaybackRate(W)}function pi(W){s().actions.external.setAutoQualityLimits(W)}function it(){s().actions.external.setQuality("auto")}function jt(W){s().actions.external.setTrafficSavingEnabled(W)}function Di(W){s().actions.external.setHighQualityEnabled(W)}let bi=Tp(He.view),ei=m().playerView==="preview",wi=s().state.availableSubtitlesList$;if(He.features.initSubtitles){let W=!1;De(()=>{var Vt;if(!W&&a().length){W=!0;let si;if(He.features.userVideoPrefs&&s().videoId){let Jt=zu(He.userSalt,String(s().videoId));Jt!=null&&Jt.subtitleTrackId&&(si=a().find(_t=>_t.value===Jt.subtitleTrackId))}let vt=(Vt=I())!=null?Vt:Jf();vt&&(si=a().find(Jt=>Jt.language===vt)),s().actions.internal.setSubtitle(si)}})}let st=s().ui.isPreviewTrackHorizontallyAligned;var ot=oT();let Ci;var Jo=C(ot);{var No=W=>{og(W,{get store(){return s()},get uiConfig(){return He},get thumbUrl(){return _()},get interactiveContainer(){return y()},get live(){return T()},get autoplay(){return A()},get canRewindLive(){return F()},get showAds(){return U()},get adsSlotId(){return X()},get adsParams(){return ae()},get adsAutoplayParam(){return Z()},get duration(){return re()},get logoClickable(){return J()},get logoHidden(){return we()},get logoTargetUrl(){return Pt},get nextButtonActive(){return _e()},get prevButtonActive(){return Ce()},get endScreenVideoTitle(){return ge()},get endScreenVideoThumb(){return pe()},get isOneVideoPlaylist(){return qe()},get supportLink(){return G()},get shadowRootContainer(){return D()},get outerContainerRef(){return Qe()},get fullScreenTarget(){return K()},get showMiniTimer(){return xe()},get playerStarted(){return n(Wt)},get seekToInteractive(){return tt()},get playPrevChapter(){return ne()},firstStart:Y,seekTime:ci,get showEndScreen(){return Ae()},get showAutoplayNext(){return Re()},get showNextPrevButtons(){return ee()},get adsExternalApi(){return e.adsExternalApi},get adsJson(){return e.adsJson},get videoContainer(){return n(At)},set videoContainer(Vt){N(At,Vt,!0)}})},ht=W=>{var Vt=Le(),si=ue(Vt);{var vt=_t=>{ng(_t,{get thumbUrl(){return _()},get outsideDuration(){return re()},get canRewindLive(){return F()},get videoContainer(){return n(At)},set videoContainer(rt){N(At,rt,!0)}})},Jt=_t=>{tg(_t,{get store(){return s()},get uiConfig(){return He},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 U()},get adsSlotId(){return X()},get adsParams(){return ae()},get adsAutoplayParam(){return Z()},get duration(){return re()},get logoClickable(){return J()},get logoHidden(){return we()},get logoTargetUrl(){return Pt},get nextButtonActive(){return _e()},get prevButtonActive(){return Ce()},get endScreenVideoTitle(){return ge()},get endScreenVideoThumb(){return pe()},get isOneVideoPlaylist(){return qe()},get supportLink(){return G()},get shadowRootContainer(){return D()},get outerContainerRef(){return Qe()},get fullScreenTarget(){return K()},get showMiniTimer(){return xe()},get playerStarted(){return n(Wt)},get seekToInteractive(){return tt()},get playPrevChapter(){return ne()},firstStart:Y,get showEndScreen(){return Ae()},get showAutoplayNext(){return Re()},get showNextPrevButtons(){return ee()},get adsExternalApi(){return e.adsExternalApi},get adsJson(){return e.adsJson},get getVideoDeeplink(){return e.getVideoDeeplink},get videoContainer(){return n(At)},set videoContainer(rt){N(At,rt,!0)},get keyboardControls(){return Je()},set keyboardControls(rt){Je(rt)}})};V(si,_t=>{ei?_t(vt):_t(Jt,!1)})}b(W,Vt)};V(Jo,W=>{me()?W(No):W(ht,!1)})}S(ot),O(W=>{Ci=oe(ot,1,"vk-vp-root s-1",null,Ci,W),Ke(ot,bi)},[()=>({"root--miui-browser":sd.clientChecker.device.isMobile&&sd.clientChecker.browser.isMiuiBrowser,"visible-outside":ei,"preview-track-horizontally-alinged":l()})]),b(t,ot);var Ht=H({initVideo:le,play:lt,pause:wt,setMuted:fe,toggleSubtitle:Oe,changeSubtitle:ze,changeAudioStream:St,hideControls:Gt,showControls:Tt,setVolume:ri,seekTime:ci,seekEpisodeStartTime:Ni,returnFocusToEpisodes:Dt,setPlaybackRate:vo,setAutoQualityLimits:pi,setAutoQuality:it,toggleTrafficSaving:jt,toggleHighQuality:Di,get sources(){return d()},set sources(W){d(W)},get store(){return s()},set store(W){s(W)},get microStoresRoot(){return u()},set microStoresRoot(W){u(W)},get videoConfig(){return m()},set videoConfig(W){m(W)},get uiConfig(){return p()},set uiConfig(W){p(W)},get title(){return v()},set title(W){v(W)},get thumbUrl(){return _()},set thumbUrl(W){_(W)},get interactiveContainer(){return y()},set interactiveContainer(W){y(W)},get interactiveController(){return $()},set interactiveController(W){$(W)},get subtitles(){return x()},set subtitles(W){x(W)},get subtitlesForcedLanguage(){return I()},set subtitlesForcedLanguage(W){I(W)},get live(){return T()},set live(W){T(W)},get preload(){return R()},set preload(W){R(W)},get autoplay(){return A()},set autoplay(W){A(W)},get volume(){return P()},set volume(W){P(W)},get muted(){return E()},set muted(W){E(W)},get fromTime(){return z()},set fromTime(W){z(W)},get canRewindLive(){return F()},set canRewindLive(W){F(W)},get showAds(){return U()},set showAds(W){U(W)},get adsSlotId(){return X()},set adsSlotId(W){X(W)},get adsParams(){return ae()},set adsParams(W){ae(W)},get adsAutoplayParam(){return Z()},set adsAutoplayParam(W){Z(W)},get duration(){return re()},set duration(W){re(W)},get logoClickable(){return J()},set logoClickable(W){J(W)},get logoHidden(){return we()},set logoHidden(W){we(W)},get isMobile(){return me()},set isMobile(W){me(W)},get showNextPrevButtons(){return ee()},set showNextPrevButtons(W){ee(W)},get nextButtonActive(){return _e()},set nextButtonActive(W){_e(W)},get prevButtonActive(){return Ce()},set prevButtonActive(W){Ce(W)},get endScreenVideoTitle(){return ge()},set endScreenVideoTitle(W){ge(W)},get endScreenVideoThumb(){return pe()},set endScreenVideoThumb(W){pe(W)},get isOneVideoPlaylist(){return qe()},set isOneVideoPlaylist(W){qe(W)},get supportLink(){return G()},set supportLink(W){G(W)},get shadowRootContainer(){return D()},set shadowRootContainer(W){D(W)},get outerContainerRef(){return Qe()},set outerContainerRef(W){Qe(W)},get fullScreenTarget(){return K()},set fullScreenTarget(W){K(W)},get failoverHosts(){return se()},set failoverHosts(W){se(W)},get showMiniTimer(){return xe()},set showMiniTimer(W){xe(W)},get saveRate(){return Be()},set saveRate(W){Be(W)},get showAutoplayNext(){return Re()},set showAutoplayNext(W){Re(W)},get seekToInteractive(){return tt()},set seekToInteractive(W){tt(W)},get playPrevChapter(){return ne()},set playPrevChapter(W){ne(W)},get volumeMultiplier(){return ce()},set volumeMultiplier(W){ce(W)},get showEndScreen(){return Ae()},set showEndScreen(W){Ae(W)},get keyboardControls(){return Je()},set keyboardControls(W){Je(W)}});return o(),Ht}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=f(()=>i()?"#fff":"#909499");Xe(t,{width:"57",height:"60",get fill(){return n(o)},testId:"stub-icon",children:(r,a)=>{var l=rT();di(9),b(r,l)},$$slots:{default:!0}})}var sT=L('<div class="title s-0"> </div>'),aT=L('<div class="playerStub s-0"><!> <!></div>'),lT={hash:"s-0",code:".playerStub.s-0{align-items:center;background-color:#222;background-position:50%;background-size:cover;display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;height:100%;justify-content:center;position:relative;width:100%}.title.s-0{box-sizing:border-box;color:#fff;font-size:15px;left:0;overflow:hidden;padding:18px 20px 10px;position:absolute;text-overflow:ellipsis;top:0;white-space:nowrap;width:100%}"};function ag(t,e){Q(t,lT);var i=aT(),o=C(i);{var r=d=>{var s=sT(),u=C(s,!0);S(s),O(()=>ve(u,e.title)),b(d,s)};V(o,d=>{e.title&&d(r)})}var a=k(o,2);{var l=d=>{let s=f(()=>!!e.thumbUrl);sg(d,{get isWhite(){return n(s)}})};V(a,d=>{(!e.title||!e.thumbUrl)&&d(l)})}S(i),O(()=>Ke(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),b(t,i)}var dT=L('<div class="playerError s-3"><!></div>'),cT={hash:"s-3",code:".playerError.s-3{align-items:center;background-color:#222;background-position:50%;background-size:cover;display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;height:100%;justify-content:center;position:relative;width:100%}"};function lg(t){Q(t,cT);var e=dT(),i=C(e);nl(i,{}),S(e),b(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=ye(e.state.currentPlaybackRate$),r=ye(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),Q(t,fT);let[i,o]=Ne(),r=()=>w(u,"$interfaceLanguage$",i),a=()=>w(m,"$isMobile$",i),l=be(),d=Nt(),s=!!l.webApi.pictureInPictureApi,u=l.interfaceLanguage$,m=l.ui.isMobile,p=l.ui.t,v=f(()=>r()&&p("pip_dummy_title")),_=Tp(d.view);var y=pT();let $;var x=C(y);let I;var T=C(x);Xe(T,{width:"57",height:"56",testId:"pip-dummy-icon",children:(P,E)=>{var z=uT();di(),b(P,z)},$$slots:{default:!0}}),S(x);var R=k(x,2),A=C(R,!0);S(R),S(y),O((P,E)=>{$=oe(y,1,"player-pip-dummy s-6",null,$,P),Ke(y,_),I=oe(x,1,"dummy-image s-6",null,I,E),ve(A,n(v))},[()=>({"is-pip-api":s}),()=>({desktop:!a()})]),b(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 Pp=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,kp=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$={...de(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{isInteractiveExpectation$:r}=i.store.state;return o.add(r.subscribe(a=>{this.state$.set(a?!0:null)})),o}};var Uc=class extends pn{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...de(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{microStores:r,store:a}=i,{fakeIsPlaying$:l}=r,{isInteractiveExpectation$:d,isPlaying$:s}=a.state,{controlsVisible:u,isMobile:m}=a.ui,p=ye(m),v=()=>p&&ye(u);return o.add(u.subscribe(_=>{if(!p)return;let y=ye(l);ye(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=ye(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$=de("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:r}=i;return o.add(r.state.interactiveEpisodes$.subscribe(a=>{a.length&&(a.every(l=>l.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};var g$=require("@vkontakte/videoplayer-shared/es2018"),cg=de(!1),Ap=null,Wc=class extends pn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...cg,set:(i,o=!1)=>{i!==ye(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=>{ye(l)&&p&&this.state$.set(!1)}));let m=(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,$;if(!(!p||!(_!=null&&_.isDisplayed))){if(!v)return this.state$.set(!1);m.tooltipHelpHintActive&&Ap===null&&(Ap=!0,m.tooltipHelpHintActive=!1,this.state$.set(!0),($=(y=r.callbacks)==null?void 0:y.onInteractiveTimeIndicatorHintDeactivated)==null||$.call(y))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};var Lp=require("@vkontakte/videoplayer-shared/es2018");var Kc=class extends pn{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...de(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(ye(l)))return;let s=ye(this.state$),{isEnded$:u,playbackState$:m}=r.state,{disabledControls$:p}=r.ui.controls,v=ye(u),_=ye(m);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$:de(!1),isEnabled$:de(!1),type$:de(void 0)}}init(i){let o=super.init(i),{store:r}=i,{info:{isActive$:a,isEnabled$:l,type:d}}=r.webApi.pictureInPictureApi||{info:{isActive$:new 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$:de({}),showNotification:i=>{this.state$.notificationsToShow$.update(o=>(o[i]=!0,o)),this.notificationManager.notificationShowed(i)},closeNotification:i=>{this.state$.notificationsToShow$.update(o=>(delete o[i],o))}}}init(i){let o=super.init(i),{store:r,uiConfig:{features:{maxCountShowSlowVideoNotification:a,timeoutShowSlowVideoNotification:l,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:s}}}=i;this.notificationManager=h$({maxShowCount:a,timeout:l});let u=r.getPlayer();return o.add(u.events.severeStallOccured$.pipe((0,Vp.filterChanged)(),(0,Vp.filter)(m=>m)).subscribe(()=>{d&&!u.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(s&&r.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var _$=()=>[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-2"><!></div>'),wT={hash:"s-2",code:".root.s-2{align-items:center;display:flex;inset:0;justify-content:center;pointer-events:none;position:absolute;z-index:1}"};function pg(t,e){B(e,!0),Q(t,wT);let i=null,o=q(null);De(()=>(n(o)&&(i=window.setTimeout(()=>{N(o,null)},e.animationDuration)),()=>{i&&clearTimeout(i)}));function r(s){e.playbackStatusShow&&N(o,s?"prev":"next",!0)}var a=Le(),l=ue(a);{var d=s=>{var u=Le(),m=ue(u);Ls(m,()=>n(o),p=>{var v=xT(),_=C(v);let y=f(()=>n(o)==="prev");Oc(_,{get duration(){return e.animationDuration},get Icon(){return fa},get reversed(){return n(y)}}),S(v),b(p,v)}),b(s,u)};V(l,s=>{e.playbackStatusShow&&n(o)&&s(d)})}return b(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,Qt=(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=li({animationDuration:0,playbackStatusShow:!1}),Dp=class extends fg{constructor(){super(),Qt(this,"svelteStubComponent"),Qt(this,"svelteRootComponent"),Qt(this,"sveltePersistentLayerComponent"),Qt(this,"svelteErrorComponent"),Qt(this,"store"),Qt(this,"microStoresRoot"),Qt(this,"statistics"),Qt(this,"sentry"),Qt(this,"_shadowRoot"),Qt(this,"playerContainer"),Qt(this,"rootContainer"),Qt(this,"stateContainer"),Qt(this,"shadowRootContainer"),Qt(this,"playerId"),Qt(this,"uiConfig"),Qt(this,"coreConfig"),Qt(this,"statisticsConfig"),Qt(this,"metaConfig"),Qt(this,"interactiveController"),Qt(this,"interactiveContainer"),Qt(this,"graphMadePause"),Qt(this,"currentPlayingVideoIndex",0),Qt(this,"needToRepeatPlaylist",!1),Qt(this,"videoConfig"),Qt(this,"pictureInPictureApi"),Qt(this,"mediaSessionApi"),Qt(this,"unsubscribePlayerPhaseSubscription"),Qt(this,"logger"),Qt(this,"log"),Qt(this,"subscription"),Qt(this,"interactiveSubscription"),Qt(this,"annotationsApi"),Qt(this,"slotsApi"),Qt(this,"focusManager"),Qt(this,"prevIsid"),Qt(this,"isInited",!1),Qt(this,"postponedInitParams",null),Qt(this,"internalsExposure",null),Qt(this,"shadowDOMCallbacksDisabled",!1),Qt(this,"fatalError$",new Op.ValueSubject(null)),Qt(this,"createOneStat",(e,i={})=>{var o,r,a,l;if(!this.videoConfig)return;let{albumId:d,statPlace:s,statUserSalt:u,statTrackCode:m,statVKAppId:p,refreshStatAuthToken:v,autoplay:_,isMobile:y,isTouch:$,refDomain:x,deviceId:I,interactiveData:T}=Hc(this.videoConfig,i),R=(o=T==null?void 0:T.projectInfo)==null?void 0:o.pid,A=(a=(r=this.interactiveController)==null?void 0:r.state.isReplay$.getValue())!=null?a:!1;A&&(this.prevIsid=void 0);let{unitedVideoId:P,isClip:E=!1}=e;if(this.uiConfig.features.statistics&&P)try{return new pd.OneStat({movieId:P,albumId:d,place:s,trackCode:m,vkAppId:p,autoplay:(l=_&&!this.interactiveController)!=null?l:!1,mobile:$!=null?$:y,clip:E,refDomain:x,deviceId:I,isPreviewPlayerView:this.videoConfig.playerView==="preview",...R&&(!this.isInited||A)&&{projectId:Number(R)}},{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=li({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,m,p,v,_;if(!this.videoConfig)return;let{albumId:y,statPlace:$,statAuthToken:x,preload:I,autoplay:T,volume:R,muted:A,fromTime:P,canRewindLive:E,supportLink:z,showAds:F,adsSlotId:U,adsParams:X={},adsAutoplayParam:ae,interfaceLanguage:Z,isCyrillicRelatedInterface:re,logoClickable:J,logoHidden:we,isMobile:me,isTouch:ee,isAudioDisabled:_e,isLiveCatchUpMode:Ce,fullScreenTarget:ge,failoverHosts:pe,canDownload:qe,callbacks:G,interactiveData:D,showThumbTimer:Qe,additionalButtons:K=[],additionalSettingsMenuItems:se=[],additionalContextMenuItems:xe=[],repeat:Be,loop:tt,saveRate:ne,volumeMultiplier:ce,showEndScreen:Re,showAutoplayNext:Ae,mediascopePixels:Je}=Hc(this.videoConfig,i),{sources:Ee,title:Te,thumbUrl:He,unitedVideoId:Pt,isClip:Ct=!1,duration:Mt,adsParams:ut={},videoEpisodes:kt,previewThumbsData:Zt,subtitles:At,subtitlesForcedLanguage:Bt,live:Wt,adsExternalApi:Y,adsJson:Pe}=e;if(!Ee&&!Wt){let pi=new Error("empty sources and live");this.fatalError$.next(pi),(r=G.onCrashed)==null||r.call(G,pi.message);return}let le={...X,...ut},$e=this.getNextVideoInfo(),Me={sources:Ee,title:Te,thumbUrl:He,subtitles:At,subtitlesForcedLanguage:Bt,unitedVideoId:Pt,isClip:Ct,live:Wt,albumId:y,statPlace:$,autoplay:T,muted:A,volume:R,fromTime:P,canRewindLive:E,showAds:F,adsSlotId:U,adsParams:le,adsAutoplayParam:ae,duration:Mt,logoClickable:J,logoHidden:we,isTouch:ee!=null?ee:me,repeat:Be,loop:tt,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:$e.nextVideoTitle,endScreenVideoThumb:$e.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},lt={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi,focusManager:this.focusManager};this.log({message:`create player, props: ${JSON.stringify(Me)}`});let wt=(a=this.interactiveController)==null?void 0:a.state.statistics$.getValue(),fe=(wt==null?void 0:wt.oneStat)||this.createOneStat(e,i),Oe=this.createThinOneStat(e,i),ze;Je&&(ze=new pd.MediascopePixel({pixels:Je})),(fe||Oe)&&(this.statistics=new fp(fe,Oe,ze,wt==null?void 0:wt.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Fa(this.uiConfig.sentry,{version:Oa,env:Nu},{movieId:Pt,albumId:y,place:$,autoplay:(l=T&&!this.interactiveController)!=null?l:!1,mobile:ee!=null?ee:me,clip:Ct}),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 Gt=!!D,Tt=[],ri="tooltip_interactive_go_back_disabled_first";if(Gt&&this.interactiveController){let pi=this.interactiveController.state.isInitialChapter$.getValue(),it=this.interactiveController.getHistoryState();pi&&Tt.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||Tt.push("SEEK_TO_INTERACTIVE_BUTTON"),it.hasPrevChapter$.getValue()||(Tt.push("PLAY_PREV_CHAPTER_BUTTON"),pi||(it.isGoBackLimited$.getValue()?ri="tooltip_interactive_go_back_disabled_limit":ri="tooltip_interactive_go_back_disabled"))}let ci=()=>{var pi;this.isInited=!1,this.prevIsid=void 0;let it=(o==null?void 0:o.info.isEnded$.getValue())&&((pi=this.interactiveController)==null?void 0:pi.state.isEndChapter$.getValue());G.onReplayInteractiveVideo&&!it?G.onReplayInteractiveVideo():this.replayInteractiveVideo()},Ni=Be&&this.videoConfig.videos.length===1;this.store=Eb({player:o,interfaceLanguage:Z,isCyrillicRelatedInterface:re,videoId:Pt,isClip:Ct,isLiveCatchUpMode:Ce,isAudioDisabled:_e,statAuthToken:x,callbacks:G,webApi:lt,videoEpisodes:kt,previewThumbsData:Zt,canDownload:qe,uiConfig:this.uiConfig,coreConfig:this.coreConfig,metaConfig:this.metaConfig,disabledControls:Tt,isInteractive:Gt,saveRate:ne,interactiveRanges$:(m=this.interactiveController)==null?void 0:m.state.interactiveRanges$,isInteractiveTime$:(p=this.interactiveController)==null?void 0:p.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:ci,playPrevChapterDisabledTooltip:ri,hasInteractiveBranches:!!((_=(v=this.interactiveController)==null?void 0:v.getChapterBranches())!=null&&_.length),additionalButtons:this.uiConfig.features.additionalButtons?K:[],additionalSettingsMenuItems:se!=null?se:[],additionalContextMenuItems:xe!=null?xe:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),onVideoChanged:pi=>{var it;return(it=this.sveltePersistentLayerComponent)==null?void 0:it.startVideoChangedAnimation(pi)},looped:this.uiConfig.features.useLoopSetting?tt:Ni,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView,playerId:this.playerId});let{stores:Dt}=this.microStoresRoot=_$(),vo=()=>{var pi,it,jt,Di,bi,ei;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(st=>{var ot;return(ot=G==null?void 0:G.onCurrentFormatChanged)==null?void 0:ot.call(G,st)})),this.subscription.add(Dt.interactiveControlsOpacity$.subscribe(st=>{var ot;st!==null&&((ot=this==null?void 0:this.interactiveController)==null||ot.setDisabledControls(st))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(st=>{var ot;return(ot=G==null?void 0:G.onThroughputEstimationChanged)==null?void 0:ot.call(G,st)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(st=>{var ot;return(ot=G==null?void 0:G.onTrafficSavingEnabledChanged)==null?void 0:ot.call(G,st)})),this.subscription.add(this.store.state.highQualityEnabled$.subscribe(st=>{var ot;return(ot=G==null?void 0:G.onHighQualityEnabledChanged)==null?void 0:ot.call(G,st)})),this.subscription.add(this.store.state.isAutoQualityEnabled$.subscribe(st=>{var ot;return(ot=G==null?void 0:G.onAutoQualityEnabledChanged)==null?void 0:ot.call(G,!!st)})),this.subscription.add(new Ri.Observable(st=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(ot=>st.next(ot)))}).pipe((0,Ri.skip)(1)).subscribe(st=>{var ot;return(ot=G==null?void 0:G.onCurrentPlaybackRateChanged)==null?void 0:ot.call(G,st)})),this.subscription.add(this.store.state.volume$.subscribe(st=>{var ot;return(ot=G==null?void 0:G.onVolumeChange)==null?void 0:ot.call(G,st)})),this.subscription.add(this.store.state.muted$.subscribe(st=>{var ot,Ci,Jo,No;if(st)(ot=G==null?void 0:G.onMute)==null||ot.call(G);else{let ht=(Jo=((Ci=this.store)==null?void 0:Ci.state.volume$)&&ye(this.store.state.volume$))!=null?Jo:0;(No=G==null?void 0:G.onUnmute)==null||No.call(G,ht)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(st=>{var ot;return(ot=G==null?void 0:G.onVideoBitrateChanged)==null?void 0:ot.call(G,st)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(st=>{var ot;let Ci=(ot=this.store)==null?void 0:ot.ui.controls.disabledControls$;Ci&&(st&&!Ci.includes(Kd)&&Ci.add(Kd),st||Ci.remove(Kd))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async st=>{var ot;if(!Gc.clientChecker.browser.isSamsungBrowser||!st||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter((ot=this.videoConfig)==null?void 0:ot.callbacks.onExternalFullscreenExit)})),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(st=>{var ot;return(ot=G==null?void 0:G.onVSIDChanged)==null?void 0:ot.call(G,st)})),this.initMediaSession(),N(Jn,{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:Ee,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:Te,thumbUrl:He,subtitles:At,subtitlesForcedLanguage:Bt,live:Wt,preload:I,autoplay:T,muted:A,volume:R,fromTime:P,canRewindLive:E,supportLink:z,showAds:F,adsSlotId:U,adsParams:le,adsAutoplayParam:ae,duration:Mt,logoClickable:J,logoHidden:we,isMobile:ee!=null?ee:me,failoverHosts:pe,fullScreenTarget:ge,saveRate:ne,shadowRootContainer:this.shadowRootContainer,showMiniTimer:Qe,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:$e.nextVideoTitle,endScreenVideoThumb:$e.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:ce,showEndScreen:Re,showAutoplayNext:Ae,adsExternalApi:Y,adsJson:Pe,getVideoDeeplink:this.videoConfig.getVideoDeeplink},!0);let wi={target:this.playerContainer,props:n(Jn)};this.svelteRootComponent=Jr(rg,wi),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(jt=(it=(pi=this.videoConfig)==null?void 0:pi.callbacks)==null?void 0:it.onInited)==null||jt.call(it)),(Di=this.internalsExposure)==null||Di.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((ei=(bi=this.videoConfig)==null?void 0:bi.callbacks)!=null&&ei.onDevNullLog)?ud.devNull.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):ud.devNull.destroy("ui")};this.coreConfig.asyncResolveClientChecker?Gc.clientChecker.isInited$.subscribe(pi=>{pi&&(console.log("UI SDK async start"),vo())}):vo()}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?ye(s):this.videoConfig.interfaceLanguage,{projectInfo:m,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:m,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$:$}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add($.subscribe(I=>{if(!this.isInited)return;let T=this.store;I?T.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):T.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(y.subscribe(I=>{this.store&&this.store.state.isInteractiveExpectation$.set(I)}));let x=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(I=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...I.config,title:(m==null?void 0:m.title)||I.config.title};let T=x?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(I.player,T),x&&(x=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:I,actionType:T})=>{var R,A,P,E,z,F;if(!this.store||!this.microStoresRoot)return;let U=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=ye(this.store.state.isPlaying$)||U;if(((P=(R=this.videoConfig)==null?void 0:R.isTouch)!=null?P:(A=this.videoConfig)!=null&&A.isMobile)&&X){this.store.ui.interactiveHideMobileControls.set(!0);return}(F=(E=this.videoConfig)==null?void 0:(z=E.callbacks).onDisabledInteractiveClick)==null||F.call(z)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:I,removeAllOpenURI:T})=>{this.store&&I==="container-fake-removed"&&T&&this.store.ui.controls.disabledControls$.remove(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 R,A,P;T.length&&((P=(A=(R=this.videoConfig)==null?void 0:R.callbacks)==null?void 0:A.onInteractiveHistoryChanged)==null||P.call(A,T))}))}(l=(a=this.videoConfig)==null?void 0:a.callbacks)!=null&&l.onInteractiveChapterChanged&&this.subscription.add(this.interactiveController.events.chapterChanged$.subscribe(I=>{var T,R,A;(A=(T=this.videoConfig)==null?void 0:(R=T.callbacks).onInteractiveChapterChanged)==null||A.call(R,I.chapter,I.manifestVideo)})),this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var I,T,R,A;(I=this.microStoresRoot)==null||I.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(A=(T=this.videoConfig)==null?void 0:(R=T.callbacks).onInteractiveTimeIndicatorClick)==null||A.call(R)})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(I=>{this.log({message:I.toString()})}))}catch(d){this.log({message:d.message})}}initPlayer(e,i={}){var o,r,a,l,d,s,u,m,p,v,_,y,$,x,I,T,R,A,P,E,z,F,U,X,ae;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: "+((m=this.videoConfig)==null?void 0:m.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=(x=($=this.uiConfig.features.dpip)!=null?$:this.videoConfig.isPictureInPictureEnabled)!=null?x:!0),this.uiConfig.ads.paramsOverride={preview:(I=this.uiConfig.ads.preview)!=null?I:this.videoConfig.adsPreviewParam,...this.uiConfig.ads.paramsOverride},this.videoConfig.isTouch=(R=(T=this.uiConfig.isMobile)!=null?T:this.videoConfig.isTouch)!=null?R:this.videoConfig.isMobile,(A=this.videoConfig).autoplay&&(A.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(P=this.uiConfig.ads.enable)!=null?P:this.videoConfig.showAds,this.videoConfig.adsSlotId=(E=this.uiConfig.ads.slot)!=null?E:this.videoConfig.adsSlotId,this.videoConfig.logoHidden=!((z=this.uiConfig.showLogo)!=null?z:!this.videoConfig.logoHidden),(F=this.videoConfig).canRewindLive&&(F.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(U=this.videoConfig.supportLink)!=null?U: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=Pp.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 kp(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),this.focusManager=this._shadowRoot?new Np(this._shadowRoot):void 0,this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteErrorComponent),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveSubscription.unsubscribe()),this.videoConfig.interactiveData?this.initInteractives():this.createPlayer(this.videoConfig.videos[this.currentPlayingVideoIndex]),p$(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(ae=this.slotsApi)==null||ae.init(this.shadowRootContainer,this.store)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateVideos(e,i){if(!this.videoConfig)return;this.log({message:`update ${i} videos, videos: ${JSON.stringify(e)}`}),i==="prev"?(this.videoConfig.videos.splice(0,this.currentPlayingVideoIndex),this.videoConfig.videos.unshift(...e),this.currentPlayingVideoIndex=e.length):i==="next"&&(this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...e));let o=this.getNextVideoInfo();n(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=ye(this.store.state.positionExact$),l=ye(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)};
|
|
62
|
+
`)),b(K,se)};V(Ce,K=>{n(T)&&K(ge)})}var pe=k(Ce,2),Qe=C(pe);{var G=K=>{var se=Me(),xe=ue(se);{var Be=ne=>{var ce=gs();O(Re=>ve(ce,Re),[()=>Y("tooltip_episode_unfinished")]),b(ne,ce)},ot=ne=>{var ce=gs();O(()=>ve(ce,n(z).text||"")),b(ne,ce)};V(xe,ne=>{v()&&n(z).completed===!1?ne(Be):ne(ot,!1)})}b(K,se)};V(Qe,K=>{n(z)&&K(G)})}S(pe);var D=k(pe,2);{var Ge=K=>{var se=P2(),xe=C(se,!0);S(se),O(()=>ve(xe,d())),b(K,se)};V(D,K=>{v()||K(Ge)})}S(ee),O(K=>{_e=oe(ee,1,"timeline-preview s-j",null,_e,K),Ke(ee,`width: ${n(F)?n(I):n(x)}px;`)},[()=>({mobile:s()})]),b(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 av(t,e){var le,$e,Le,ct,Ct;B(e,!0),Q(t,V2);let[i,o]=Ne(),r=()=>w(Z,"$interactiveEpisodes$",i),a=()=>w(E,"$duration$",i),l=()=>w(P,"$position$",i),d=()=>w(we,"$isInteractiveExpectation$",i),s=()=>w(J,"$isInteractiveTime$",i),u=()=>w(Ce,"$previewTrackActive",i),m=()=>w(z,"$isLive$",i),p=()=>w(_e,"$disabledControls$",i),v=()=>w(U,"$isMobile",i),_=()=>w(F,"$isActiveLive$",i),y=()=>w(A,"$bufferedProgress$",i),$=h(e,"showTimeline",3,!1),x=h(e,"withEpisodes",3,!0),I=h(e,"ref",15,void 0),T=be(),R=Vt(),A=T.state.bufferedProgress$,P=T.state.positionWithScrubbing$,E=T.state.duration$,z=T.state.isLive$,F=T.state.isActiveLive$,U=T.ui.isMobile,X=R.features.episodes&&x()?T.actions.internal.getVideoEpisodes():void 0,ae=T.actions.internal.getPreviewThumbsData(),Z=T.state.interactiveEpisodes$,re=T.state.isInteractive,J=T.state.isInteractiveTime$,we=T.state.isInteractiveExpectation$,me=T.actions.internal.correctSeekTimeToInteractive,ee=(le=T.callbacks)==null?void 0:le.onDisabledTimelineClick,_e=T.ui.controls.disabledControls$,Ce=T.ui.previewTrackActive,ge=(Le=($e=T.callbacks)==null?void 0:$e.uiInfo)==null?void 0:Le.onTimelineMouseEnter,pe=(Ct=(ct=T.callbacks)==null?void 0:ct.uiInfo)==null?void 0:Ct.onTimelineMouseLeave,Qe=T.ui.t,G=R.features.interactiveResponsiveUi,D=f(()=>re?r():X),Ge=f(()=>jo(a())),K=f(()=>jo(l())),se=f(()=>l()/a()),xe=f(()=>d()||s()),Be=q(!1),ot=q(""),ne=q(0),ce=q(0),Re=q(0),Ae=f(()=>({containerWidth:n(ce),translateXPx:n(ne),translateYPx:re&&ae?-36:-16,active:n(Be)&&$()&&!n(xe)&&!G&&!u(),pointer:!R.features.timelinePreview||!ae||m()})),et=Qe("aria_timeline"),Ee=f(()=>Qe("aria_timeline_value",{position:n(K),duration:n(Ge)}));function Te(fe){return!me||!re?fe:me(fe*a())/a()}function He(fe,Fe){var Ue;(Ue=e.onSliderPointerDown)==null||Ue.call(e,Fe),T.actions.internal.startScrubbing(Te(fe))}function Et(fe){s()||T.actions.internal.progressScrubbing(Te(fe))}function St(fe){var Fe;T.actions.internal.completeScrubbing(Te(fe)),N(Be,!1),(Fe=e.onSliderPointerUp)==null||Fe.call(e)}function Ot(fe,Fe,Ue){var Tt;(Tt=e.onSliderPointerEnter)==null||Tt.call(e,fe),Xt(fe,Fe,Ue),N(Be,!0)}function lt(fe,Fe,Ue,Tt){var oi;(oi=e.onSliderMove)==null||oi.call(e,Tt,fe),Xt(fe,Fe,Ue),N(Be,!0)}function Pt(){var fe;N(Be,!1),(fe=e.onSliderLeave)==null||fe.call(e)}function Xt(fe,Fe,Ue){N(Re,Te(fe),!0),N(ne,Fe,!0),Ue&&N(ce,Ue,!0),N(ot,kt(fe),!0)}function kt(fe){let Fe=jo((m()?1-fe:fe)*a());return m()?`-${Fe}`:Fe}let Dt=f(()=>p().has("TIMELINE"));var zt=M2(),j=ue(zt);rv(j,ts(()=>n(Ae),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(fe,Fe)=>{var Ue=Me(),Tt=ue(Ue);{var oi=Gt=>{sv(Gt,{get time(){return n(ot)},get isMobile(){return v()},get videoEpisodes(){return n(D)},get previewThumbsData(){return ae},get progress(){return n(Re)},get duration(){return a()},get isInteractive(){return re}})},xt=Gt=>{var ai=L2(),Bi=C(ai,!0);S(ai),O(()=>ve(Bi,n(ot))),b(Gt,ai)};V(Tt,Gt=>{R.features.timelinePreview&&ae&&!m()?Gt(oi):Gt(xt,!1)})}b(fe,Ue)},$$slots:{default:!0}}));var Pe=k(j,2);Za(Pe,{className:"timeline-slider",get isActiveLive(){return _()},get isMobile(){return v()},get ariaLabel(){return et},ariaValueMin:0,get ariaValueMax(){return a()},get ariaValueNow(){return l()},get ariaValueText(){return n(Ee)},get loadedProgress(){return y()},get filledProgress(){return n(se)},get handleProgress(){return n(se)},get videoEpisodes(){return n(D)},onPointerDown:He,onHandleMove:Et,onPointerMove:lt,onPointerUp:St,onPointerEnter:Ot,onPointerLeave:Pt,get onMouseEnter(){return ge},get onMouseLeave(){return pe},get onDisabledClick(){return ee},get isInteractive(){return re},get disabled(){return n(Dt)},get handleAlwaysVisible(){return u()},get hideHandel(){return s()},testId:"progress_bar",onContextMenu:St,get ref(){return I()},set ref(fe){I(fe)}}),b(t,zt),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),Q(t,R2);let[i,o]=Ne(),r=()=>w(s,"$isMobile",i),a=h(e,"position",3,0),l=h(e,"duration",3,0),d=be(),s=d.ui.isMobile,u=d.ui.t,m=f(()=>jo(l())),p=f(()=>jo(a())),v=f(()=>a()/l()),_=f(()=>u("aria_timeline_value",{position:n(p),duration:n(m)})),y=f(()=>Math.round(n(v)*100));Za(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return l()},get ariaValueNow(){return n(y)},get ariaValueText(){return n(_)},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-c",code:".timeline.s-c{align-items:center;bottom:0;box-sizing:border-box;display:flex;min-width:86px;pointer-events:all;position:relative;width:100%}.timeline.mobile.s-c{height:16px;margin-top:6px;padding:6px 12px 7px}.withoutPadding.s-c{padding:0}.timeline-stub.s-c{min-width:20px;width:100%}.timeline-stub.mobile.s-c{height:8px}"};function il(t,e){B(e,!0),Q(t,O2);let[i,o]=Ne(),r=()=>w(x,"$isLive$",i),a=()=>w(R,"$isMobile",i),l=()=>w(A,"$disabled",i),d=()=>w(T,"$adPosition",i),s=()=>w(I,"$adDuration",i),u=h(e,"isAds",3,!1),m=h(e,"isHidden",3,!1),p=h(e,"timelineNotAvailable",3,!1),v=h(e,"needPadding",3,!0),_=h(e,"ref",15,void 0),y=be(),$=Vt(),x=y.state.isLive$,I=y.ads.duration,T=y.ads.position,R=y.ui.isMobile,A=de(!1),P=f(()=>!p()&&(!r()||r()&&e.canRewindLive&&e.isRewindableLive||u()));var E=Me(),z=ue(E);{var F=X=>{var ae=N2();let Z;var re=C(ae);{var J=me=>{Tc(me,{get position(){return d()},get duration(){return s()}})},we=me=>{av(me,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return n(P)},get withEpisodes(){return e.withEpisodes},get onSliderMove(){return e.onSliderMove},get onSliderPointerDown(){return e.onSliderPointerDown},get onSliderPointerUp(){return e.onSliderPointerUp},get onSliderLeave(){return e.onSliderLeave},get onSliderPointerEnter(){return e.onSliderPointerEnter},get ref(){return _()},set ref(ee){_(ee)}})};V(re,me=>{u()?me(J):me(we,!1)})}S(ae),Ds(ae,()=>Wl(m()&&$.features.usePerformanceFix,A,$.disableInvisibleComponentsTimeout)),O(me=>Z=oe(ae,1,"timeline s-c",null,Z,me),[()=>({withoutPadding:!v(),mobile:a(),"out-of-flow":l()})]),b(X,ae)},U=X=>{var ae=D2();let Z;O(re=>Z=oe(ae,1,"timeline-stub s-c",null,Z,re),[()=>({mobile:a()})]),b(X,ae)};V(z,X=>{n(P)?X(F):X(U,!1)})}b(t,E),H(),o()}var Ob=require("@vkontakte/videoplayer-shared/es2018");var B2=(t,e,i,o,r,a,l)=>{N(e,!0),N(i,t.clientX,!0),N(o,n(r),!0),a(l())},H2=L("<div></div>"),F2=L('<div><div class="track s-2c"></div></div>'),U2={hash:"s-2c",code:'.root.s-2c{display:flex;height:var(--preview-track-frame-height-horizontal);overflow:hidden;position:relative;width:100%}.root.is-vertical-video.s-2c,.root.vertically-rotated.s-2c{height:var(--preview-track-frame-height-vertical)}.root.s-2c:after{background-color:#fff;box-shadow:0 2px 2px 0 rgba(0,0,0,.12);box-shadow:0 0 2px 0 rgba(0,0,0,.06);content:"";height:100%;margin:0 auto;pointer-events:none;width:3px;z-index:1}.track.s-2c{bottom:0;display:flex;left:0;padding:0 50%;top:0}.frame.s-2c,.track.s-2c{position:absolute}.frame.s-2c{background-position-x:calc(var(--column-index)*-1*var(--frame-width));background-position-y:calc(var(--frame-height)*-1*var(--row-index));background-size:calc(var(--frame-width)*var(--column-numbers)) calc(var(--frame-height)*var(--row-numbers));flex-shrink:0;height:var(--frame-height);pointer-events:none;transform-origin:center;width:var(--frame-width)}.vertically-rotated.s-2c .frame:where(.s-2c){transform-origin:0 0}.rotate-1.s-2c{transform:rotate(-90deg) translateX(-100%)}.rotate-2.s-2c{transform:rotate(-180deg)}.rotate-3.s-2c{transform:rotate(-270deg) translateY(-100%)}'};function dv(t,e){B(e,!0),Q(t,U2);let[i,o]=Ne(),r=()=>w(R,"$rotateAlpha",i),a=()=>w($,"$position$",i),l=()=>w(y,"$duration$",i),d=be(),{countPerImage:s=0,countPerRow:u=0,countTotal:m=0,links:p=[],frameHeight:v=0,frameWidth:_=0}=d.actions.internal.getPreviewThumbsData()||{},{duration$:y,positionWithScrubbing$:$}=d.state,{startScrubbing:x,progressScrubbing:I,completeScrubbing:T}=d.actions.internal,R=d.ui.rotateAlpha,A=q(void 0),P=q(!1),E=q(0),z=q(0),F=q(0),U=q(0),X=f(()=>v<=_),ae=f(()=>Jl(r())),Z=f(()=>n(X)?!n(ae):n(ae)),re=114,J=65,we=3,me=f(()=>n(Z)?re:J),ee=f(()=>n(X)?re:J),_e=f(()=>n(X)?"var(--preview-track-frame-height-horizontal)":"var(--preview-track-frame-height-vertical)"),Ce=f(()=>m*n(me)),ge=q(0);De(()=>{N(U,Math.ceil(-n(F)/n(me))-1),N(F,-n(Ce)*a()/l())});let pe=()=>{T(Qe(),!0)},Qe=()=>l()*-n(F)/n(Ce)/l(),G=!1,D=Ee=>{if(!n(P))return!1;let Te=Ee.clientX-n(E);N(F,n(z)+Te),N(F,Math.max(Math.min(n(F),0),-n(Ce)),!0),Math.abs(Te)>1&&(G=!0),I(Qe())},Ge=Ee=>{n(P)&&(N(P,!1),!G&&Ee&&N(F,-(Ee.offsetX-n(ge)/2)),G=!1,pe())},K=()=>{n(P)&&Ge()},se=f(()=>s/u),xe=(Ee,Te)=>{if(Ee!==p.length-1)return u;let He=0,Et=Te*u;for(let St=1;St<=u;St++)Ee*s+He+Et<m&&He++;return He},Be=f(()=>Math.floor(n(U)/s)),ot=f(()=>(0,Ob.getRangeAroundIndex)(3,n(Be),p.length-1)),ne=(Ee,Te,He)=>{let Et=s*n(me);return Ee*Et+Te*n(me)*u+n(ge)/2-we/2+He*n(me)},ce=f(()=>[`--row-numbers: ${n(se)}`,`--column-numbers: ${u}`,`--frame-width: ${n(ee)}px`,`--frame-height: ${n(_e)}`].join(";"));var Re=F2();let Ae;var et=C(Re);et.__pointerdown=[B2,P,E,z,F,x,Qe],et.__pointermove=D,et.__pointerup=Ge,_i(et,20,()=>n(ot),Ee=>Ee,(Ee,Te)=>{var He=Me(),Et=ue(He);_i(Et,16,()=>Array.from({length:n(se)},(St,Ot)=>Ot),St=>St,(St,Ot)=>{var lt=Me(),Pt=ue(lt);_i(Pt,16,()=>Array.from({length:xe(Te,Ot)},(Xt,kt)=>kt),Xt=>Xt,(Xt,kt)=>{var Dt=H2();O((zt,j)=>{Ke(Dt,zt),oe(Dt,1,j,"s-2c")},[()=>`--row-index: ${Ot}; --column-index: ${kt}; left: ${ne(Te,Ot,kt)}px; background-image: url(${p[Te]});`,()=>`frame rotate-${Math.abs(r())/90%4}`]),b(Xt,Dt)}),b(St,lt)}),b(Ee,He)}),S(et),S(Re),Ze(Re,Ee=>N(A,Ee),()=>n(A)),O(Ee=>{Ae=oe(Re,1,"root s-2c",null,Ae,Ee),Ke(Re,n(ce)),Ke(et,`transform: translateX(${n(F)}px); width: ${n(Ce)}px;`)},[()=>({"is-vertical-video":!n(X),"vertically-rotated":n(ae)})]),pt("mouseleave",et,K),An(Re,"clientWidth",Ee=>N(ge,Ee)),b(t,Re),H(),o()}Ye(["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 cv(t,e){B(e,!1),Q(t,W2);let i=340,{ui:{t:o}}=be();ho();var r=z2(),a=C(r),l=C(a,!0);S(a),S(r),O(d=>ve(l,d),[()=>o("preview_track_close_tooltip")],Tn),es(3,r,()=>$s,()=>({duration:i})),b(t,r),H()}var Bb=require("@vkontakte/videoplayer-shared/es2018"),K2=L('<div class="preview-track-close tooltip s-28"><!></div>'),q2=L('<div class="preview-track-control s-28"><!> <div class="preview-track-close s-28"><!></div> <!></div>'),Q2=L('<div class="wrapper-preview-track s-28"><!></div>'),G2=L('<div class="enriched-timeline s-28"><!> <!> <!></div>'),Y2={hash:"s-28",code:".enriched-timeline.s-28{padding:var(--timeline-padding-vertical-top) var(--timeline-padding-horizontal) var(--timeline-padding-vertical-bottom);pointer-events:auto;position:relative}.preview-track-control.s-28{align-items:center;display:flex;justify-content:center;left:0;padding:0 calc(var(--timeline-padding-horizontal));pointer-events:none;position:absolute;right:0;top:calc((var(--timeline-height) + var(--preview-track-controls-top))*-1)}.preview-track-close.s-28{pointer-events:auto;position:absolute;right:calc(var(--timeline-padding-horizontal))}.preview-track-close.tooltip.s-28{bottom:32px;opacity:0;transition:opacity .2s}.preview-track-close.s-28:hover+.tooltip:where(.s-28){opacity:1}.wrapper-preview-track.s-28{box-sizing:border-box;left:0;overflow:hidden;padding:0 calc(var(--timeline-padding-horizontal));position:absolute;right:0;z-index:-1}"};function uv(t,e){B(e,!0),Q(t,Y2);let[i,o]=Ne(),r=()=>w($,"$playerSize",i),a=()=>w(y,"$duration$",i),l=()=>w(x,"$previewTrackActive",i),d=()=>w(v,"$position$",i),s=()=>w(_,"$isRewindableLive$",i),u=h(e,"timelineRef",15,void 0),m=be(),p=200,{positionWithScrubbing$:v,isRewindableLive$:_,duration$:y}=m.state,{playerSize:$,previewTrackActive:x}=m.ui,{countPerImage:I=0,links:T=[],frequency:R=0}=m.actions.internal.getPreviewThumbsData()||{},A=f(()=>r().width>100),P=q(!W_()),E=()=>{n(P)&&(z_(),N(P,!1))},z=me=>{let ee=Math.floor(a()*me/R),_e=Math.floor(ee/I),Ce=(0,Bb.getRangeAroundIndex)(3,_e,T.length-1);for(let ge of Ce){let pe=new Image;pe.src=T[ge]}},F=(me,ee)=>{z(ee),!l()&&e.onTimelineMove(me)};var U=G2(),X=C(U);{var ae=me=>{var ee=q2(),_e=C(ee);let Ce=f(()=>jo(d()));nv(_e,{get time(){return n(Ce)}});var ge=k(_e,2),pe=C(ge);Hs(pe,{onClick:()=>m.actions.internal.closePreviewTrack()}),S(ge);var Qe=k(ge,2);{var G=D=>{var Ge=K2(),K=C(Ge);cv(K,{}),S(Ge),b(D,Ge)};V(Qe,D=>{n(P)&&D(G)})}S(ee),pt("mouseleave",ge,E),es(3,ee,()=>$s,()=>({duration:p})),b(me,ee)};V(X,me=>{l()&&me(ae)})}var Z=k(X,2);let re=f(()=>!n(A));il(Z,{get isHidden(){return n(re)},get isAds(){return e.isAds},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return s()},onSliderMove:F,get onSliderPointerDown(){return e.onTimelinePointerDown},get onSliderPointerUp(){return e.onTimelinePointerUp},get onSliderLeave(){return e.onTimelinePointerLeave},onSliderPointerEnter:z,get ref(){return u()},set ref(me){u(me)}});var J=k(Z,2);{var we=me=>{var ee=Q2(),_e=C(ee);dv(_e,{}),S(ee),O(()=>Ke(ee,`height: ${e.animatedPreviewTrackHeight}px;`)),b(me,ee)};V(J,me=>{e.previewTrackAvailable&&me(we)})}S(U),O(()=>Ke(U,`transform: translateY(${e.animatedOffsetY}px);`)),b(t,U),H(),o()}var X2=L('<div><!> <div class="controls s-1b" data-testid="player_controls"><div class="controls-left s-1b"><!> <!> <!></div> <div class="controls-right s-1b"></div></div></div> <!>',1),Z2={hash:"s-1b",code:'.wrapper-bottom.s-1b{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-1b:before{background:var(--controls-gradient);content:"";height:var(--controls-gradient-height);position:absolute;width:100%}.wrapper-bottom.s-1b>:where(.s-1b){pointer-events:auto}.controls.s-1b{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-1b,.controls-right.s-1b{align-content:center;display:flex}.controls-left.s-1b{flex-grow:1;min-width:0;overflow:hidden}.controls-left.s-1b >:not(:first-child),.controls-right.s-1b >*{margin-left:var(--controls-desktop-item-margin-left)}.controls-hidden.s-1b{transform:translateY(100%);visibility:visible}.wrapper-bottom.no-smooth.s-1b{transition:none}'};function fv(t,e){var gl,ya;B(e,!0),Q(t,Z2);let[i,o]=Ne(),r=()=>w(Xo,"$disabledControls$",i),a=()=>w(We,"$adPlaybackState",i),l=()=>w(xt,"$playbackState$",i),d=()=>w(hi,"$currentSubtitle$",i),s=()=>w(Bi,"$isEnded$",i),u=()=>w(Zo,"$currentGridType$",i),m=()=>w(Rt,"$isLive$",i),p=()=>w(st,"$chromecastState$",i),v=()=>w(nt,"$isPictureInPictureActive",i),_=()=>w(Yt,"$pictureInPictureType$",i),y=()=>w(dt,"$availableSubtitlesList$",i),$=()=>w(Bt,"$contextMenuOpenedByKeyboard$",i),x=()=>w(_t,"$showContextMenuBtn$",i),I=()=>w(ci,"$isRewindableLive$",i),T=()=>w(vo,"$isActiveLive$",i),R=()=>w(_r,"$graphIsOpened$",i),A=()=>w(Ro,"$contextMenuVisible$",i),P=()=>w(Fi,"$isFullscreen",i),E=()=>w(ro,"$autoplayNextEnabled",i),z=()=>w(n(ao),"$prevButton",i),F=()=>w(n(nn),"$replayButton",i),U=()=>w(n(Bo),"$playButton",i),X=()=>w(n(wo),"$nextButton",i),ae=()=>w(n(Xi),"$playPrevChapterButton",i),Z=()=>w(n(Un),"$seekToInteractiveButton",i),re=()=>w(n(_n),"$interactiveGraphButton",i),J=()=>w(n(rn),"$liveButton",i),we=()=>w(n(ws),"$time",i),me=()=>w(n(zr),"$episodes",i),ee=()=>w(n(Ss),"$vkLogo",i),_e=()=>w(n(Ui),"$volume",i),Ce=()=>w(n(Wr),"$subtitles",i),ge=()=>w(n(Ho),"$settings",i),pe=()=>w(n(Tr),"$context",i),Qe=()=>w(n(bn),"$fullscreen",i),G=()=>w(n(Kr),"$chromecast",i),D=()=>w(er,"$additionalDesktopControlPanelRightButtons$",i),Ge=()=>w(ji,"$playerSize",i),K=()=>w(yo,"$isInteractiveTime$",i),se=()=>w(di,"$previewTrackActive",i),xe=()=>w(Hi,"$settingsMenuVisible",i),Be=()=>w(lo,"$settingButtonRef$",i),ot=()=>w(W,"$startedByKeyboard$",i),ne=()=>w(Gt,"$isAudioAvailable$",i),ce=()=>w(zt,"$fakeIsPlaying$",i),Re=()=>w(ys,"$seekToInteractiveDisabledTooltip$",i),Ae=()=>w(xn,"$isPreviewTrackHorizontallyAligned$",i),et=()=>w(co,"$previewTrackAvailable",i),Ee=()=>w(To,"$previewTrackDragInProgress",i),Te=()=>w(Kt,"$adPosition",i),He=()=>w(oi,"$position$",i),Et=()=>w(ei,"$adDuration",i),St=()=>w(Tt,"$duration$",i),Ot=h(e,"playerControlsWrapperRef",15,void 0),lt=h(e,"playerControlsRef",15,void 0),Pt=h(e,"isAds",3,!1),Xt=h(e,"logoTargetUrl",3,""),kt=h(e,"isOneVideoPlaylist",3,!1),Dt=h(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:zt}=_o(),j=be(),Pe=_o(),le=Vt(),$e=j.actions.internal.toggleMuted,Le=j.actions.internal.togglePlay,ct=j.actions.internal.pause,Ct=j.actions.internal.toggleSubtitle,fe=j.actions.internal.checkFullscreenSupport,Fe=(gl=j.callbacks)==null?void 0:gl.onAudioDoesNotExistHint,Ue=(ya=j.callbacks)==null?void 0:ya.onAudioDisabledHint,Tt=j.state.duration$,oi=j.state.positionWithScrubbing$,xt=j.state.playbackState$,Gt=j.state.isAudioAvailable$,ai=j.state.isAudioDisabled,Bi=j.state.isEnded$,Rt=j.state.isLive$,vo=j.state.isActiveLive$,ci=j.state.isRewindableLive$,{isActive$:nt,type$:Yt}=Pe.pictureInPicture$,Hi=j.ui.settingsMenu.visible$,bi=j.ui.settingsMenu.openedByBtnKeyboard$,Zt=j.ui.controls,xi=j.actions.internal.getVideoEpisodes(),st=j.state.chromecastState$,dt=j.state.availableSubtitlesList$,hi=j.state.currentSubtitle$,Xo=Zt.disabledControls$,Ro=j.ui.contextMenu.visible$,_t=j.ui.contextMenu.showContextMenuBtn$,Bt=j.ui.contextMenu.openedByBtnKeyboard$,W=j.ui.startedByKeyboard$,Lt=j.ui.controlBlocks,ni=j.ui.previewTrackNotificationVisible,gt=j.ui.t,ei=j.ads.duration,Kt=j.ads.position,We=j.ads.playbackState,Fi=j.ui.isFullscreen,ji=j.ui.playerSize,Zo=j.ui.currentGridType$,er=j.ui.additionalDesktopControlPanelRightButtons$,ro=j.ui.autoplayNextEnabled$,Ti=j.actions.internal.getVideoElement,bo=j.actions.internal.replayInteractive,No=j.actions.internal.prevVideoClick,$o=j.actions.internal.nextVideoClick,Ii=j.state.isInteractive,yo=j.state.isInteractiveTime$,xo=j.state.showInteractiveGraph,Jo=j.state.showSeekToInteractive,Dr=j.state.showPlayPrevChapter,Or=j.state.showInteractiveTimeIndicator,ss=j.state.playPrevChapterDisabledTooltip,ys=Pe.seekToInteractiveDisabledTooltip$,_r=Pe.graphIsOpened$,tr=le.features.interactiveResponsiveUi,Br=f(()=>r().has("EPISODE_BUTTON")),vn=f(()=>r().has("GRAPH_BUTTON")),gn=f(()=>r().has("SEEK_TO_INTERACTIVE_BUTTON")),br=f(()=>r().has("PLAY_BUTTON")),$r=f(()=>r().has("REPLAY_BUTTON")),en=f(()=>r().has("PLAY_PREV_CHAPTER_BUTTON")),yr=()=>j.actions.internal.toggleChromecast(),xr=f(()=>Pt()?a()==="playing":l()===ol.PlaybackState.PLAYING),wr=f(()=>d().value!=="off"),Nn=f(()=>s()&&!Pt()||Ii),Hr=f(()=>tr?n(Nn)&&io(u(),"m"):n(Nn)),xs=f(()=>!s()||Ii||Pt()),Fr=f(()=>io(u(),"m")),wi=f(()=>e.showNextPrevButtons&&io(u(),"m")&&!Pt()&&e.nextButtonActive),as=f(()=>e.showNextPrevButtons&&io(u(),"m")&&!Pt()&&e.prevButtonActive),tn=f(()=>!Pt()&&!!m()),ft=f(()=>p()!==ol.ChromecastState.NOT_AVAILABLE&&!(v()&&_()===1)&&io(u(),"m")&&!Ii),Jt=f(()=>e.showAutoplayNext&&!kt()&&io(u(),"s")),Dn=f(()=>y().length>0&&io(u(),"m")),ir=f(()=>$()||x()),Ur=f(()=>io(u(),"s")&&!Pt()),or=f(()=>!e.logoHidden&&!Pt()),nr=f(()=>le.features.fullscreen&&fe()&&(e.logoHidden||io(u(),tr?"xs":"s"))&&!(v()&&_()===1)&&(Ii?Dt():!0)),Do=f(()=>(!m()||Pt())&&!(le.features.interactiveHideTime&&Ii)),Sr=f(()=>xo&&io(u(),"m")),On=f(()=>tr?Jo&&io(u(),"s"):Jo),rr=f(()=>tr?Dr&&io(u(),"s"):Dr),sr=f(()=>!Pt()&&!m()&&!!(xi!=null&&xi.length)&&n(Fr)&&!n(Br)),on=f(()=>!I()||!!T()),hn=f(()=>R()?gt("tooltip_interactive_graph_on"):gt("tooltip_interactive_graph_off")),Bn=f(()=>A()?gt("tooltip_context_menu_close"):gt("tooltip_context_menu_open")),Ai=(vt,rt)=>vt?rt&&rt===ol.PlaybackState.PAUSED?gt("tooltip_play"):"":gt("tooltip_live"),Li=f(()=>Ai(n(on),l())),Oo=f(()=>le.logoType==="vk_video"?gt("tooltip_vk_video_logo"):gt("tooltip_vk_logo")),Hn=f(()=>n(wr)?gt("tooltip_subtitles_on"):gt("tooltip_subtitles_off")),ar=f(()=>P()?gt("tooltip_fullscreen_on"):gt("tooltip_fullscreen_off")),Fn=f(()=>p()===ol.ChromecastState.CONNECTED?gt("tooltip_chromecast_on"):gt("tooltip_chromecast_off")),Cr=f(()=>E()?gt("tooltip_autoplay_on"):gt("tooltip_autoplay_off")),ut=q(0),wt=ri({}),so=ri({}),ao=f(()=>Zt.prevButton),nn=f(()=>Zt.replayButton),Bo=f(()=>Zt.playButton),wo=f(()=>Zt.nextButton),Xi=f(()=>Zt.playPrevChapterButton),Un=f(()=>Zt.seekToInteractiveButton),_n=f(()=>Zt.interactiveGraphButton),rn=f(()=>Zt.liveButton),ws=f(()=>Zt.time),zr=f(()=>Zt.episodes),Ss=f(()=>Zt.vkLogo),Ui=f(()=>Zt.volume),Wr=f(()=>Zt.subtitles),Ho=f(()=>Zt.settings),Tr=f(()=>Zt.context),bn=f(()=>Zt.fullscreen),Kr=f(()=>Zt.chromecast),ze=f(()=>({prevButton:z()?z().right-z().left:0,replayButton:F()?F().right-F().left:0,playButton:U()?U().right-U().left:0,nextButton:X()?X().right-X().left:0,playPrevChapterButton:ae()?ae().right-ae().left:0,seekToInteractiveButton:Z()?Z().right-Z().left:0,interactiveGraphButton:re()?re().right-re().left:0,liveButton:J()?J().right-J().left:0,time:we()?we().right-we().left:0,episodes:me()?me().right-me().left:0,vkLogo:ee()?ee().right-ee().left:0,volume:_e()?_e().right-_e().left:0,subtitles:Ce()?Ce().right-Ce().left:0,settings:ge()?ge().right-ge().left:0,context:pe()?pe().right-pe().left:0,fullscreen:Qe()?Qe().right-Qe().left:0,chromecast:G()?G().right-G().left:0,additionalButtons:D().length?D().reduce(vt=>[...vt,40],[]):[]})),yt=q(0);De(()=>{(!n(yt)||n(yt)<n(ze).time)&&It(()=>N(yt,n(ze).time,!0))});let li=q(!1);De(()=>{let vt=0;n(sr)&&(io(u(),"xl")?vt=n(ze).time:vt=60);let rt=n(ze).prevButton+n(ze).playButton+n(ze).nextButton+n(ze).seekToInteractiveButton+n(ze).interactiveGraphButton+n(ze).liveButton+n(yt)+vt;N(li,n(Do)&&n(ut)>=rt,!0)});let go=f(()=>n(li)&&io(u(),"m")),Ei=(0,pv.debounceFn)(td,260),Fo=(0,pv.debounceFn)(gp,260);De(()=>{Ge(),K(),se(),Ei(Ti(),Zt,wt,e.showControls),Fo(Ti(),Lt,so,e.showControls)}),De(()=>{so.bottom=Ot()});let lo=de();De(()=>{xe(),Be()&&It(()=>ql(Be(),xe(),bi))});let Uo;De(()=>{ot(),It(()=>mp(W,ot(),Uo))});function sn(){ua({isAudioDisabled:ai,isAudioAvailable:ne(),isAds:Pt(),audioIsNotExistHintCallback:Fe,audioDisabledHintCallback:Ue})&&$e()}let lr=Ii?bo:Le,So=f(()=>ce()!==null),an=f(()=>n(So)?ce():n(xr)),zn=f(()=>n(an)?gt("tooltip_pause"):gt("tooltip_play")),Co=gt("tooltip_episodes"),$n=f(()=>{var vt,rt,Zi,Eo;return n(as)?{id:"prevButton",type:"desktop-control-panel-left",weight:zs.prevButton,buttonComponent:el,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:No.bind(null,!0)},tooltipEnabled:!((rt=(vt=j.callbacks)==null?void 0:vt.uiInfo)!=null&&rt.onPrevButtonMouseEnter)&&!((Eo=(Zi=j.callbacks)==null?void 0:Zi.uiInfo)!=null&&Eo.onPrevButtonMouseLeave),mouseEnter:()=>{var Ji,vi,Wi;(Wi=(vi=(Ji=j.callbacks)==null?void 0:Ji.uiInfo)==null?void 0:vi.onPrevButtonMouseEnter)==null||Wi.call(vi,Zn(Ti(),wt,"prevButton",e.showControls))},mouseLeave:()=>{var Ji,vi,Wi;(Wi=(vi=(Ji=j.callbacks)==null?void 0:Ji.uiInfo)==null?void 0:vi.onPrevButtonMouseLeave)==null||Wi.call(vi,Zn(Ti(),wt,"prevButton",e.showControls))},tooltipText:gt("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),Wn=f(()=>n(Hr)?{id:"replayButton",type:"desktop-control-panel-left",weight:zs.replayButton,buttonComponent:id,buttonComponentProps:{disabled:n($r),click:lr},tooltipText:gt("tooltip_restart"),disabled:n($r)}:void 0),ls=f(()=>n(xs)?{id:"playButton",type:"desktop-control-panel-left",weight:zs.playButton,buttonComponent:od,buttonComponentProps:{disabled:n(br),isPlaying:n(xr),click:Le},tooltipText:n(zn),disabled:n(br)}:void 0),dr=f(()=>{var vt,rt,Zi,Eo;return n(wi)?{id:"nextButton",type:"desktop-control-panel-left",weight:zs.nextButton,buttonComponent:el,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:$o.bind(null,!0)},tooltipEnabled:!((rt=(vt=j.callbacks)==null?void 0:vt.uiInfo)!=null&&rt.onNextButtonMouseEnter)&&!((Eo=(Zi=j.callbacks)==null?void 0:Zi.uiInfo)!=null&&Eo.onNextButtonMouseLeave),mouseEnter:()=>{var Ji,vi,Wi;(Wi=(vi=(Ji=j.callbacks)==null?void 0:Ji.uiInfo)==null?void 0:vi.onNextButtonMouseEnter)==null||Wi.call(vi,Zn(Ti(),wt,"nextButton",e.showControls))},mouseLeave:()=>{var Ji,vi,Wi;(Wi=(vi=(Ji=j.callbacks)==null?void 0:Ji.uiInfo)==null?void 0:vi.onNextButtonMouseLeave)==null||Wi.call(vi,Zn(Ti(),wt,"nextButton",e.showControls))},tooltipText:gt("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),je=f(()=>Ii&&n(rr)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:zs.playPrevChapterButton,buttonComponent:yc,buttonComponentProps:{disabled:n(en),click:e.playPrevChapter},tooltipText:gt("tooltip_interactive_go_back"),disabledTooltipContent:gt(ss),disabled:n(en)}:void 0),jt=f(()=>Ii&&n(On)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:zs.seekToInteractiveButton,buttonComponent:wc,buttonComponentProps:{disabled:n(gn),click:e.seekToInteractive},tooltipText:gt("tooltip_interactive_seek"),disabled:n(gn),disabledTooltipContent:gt(Re())}:void 0),$i=f(()=>Ii&&n(Sr)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:zs.interactiveGraphButton,buttonComponent:Sc,buttonComponentProps:{disabled:n(vn),click:_r.toggle,graphIsOpened:R()},tooltipText:n(hn)}:void 0),zo=f(()=>n(tn)?{id:"liveButton",type:"desktop-control-panel-left",weight:zs.liveButton,buttonComponent:Cc,buttonComponentProps:{isLiveActive:n(on),ariaLabel:n(Li)},tooltipText:n(Li),disabled:n(on)&&l()===ol.PlaybackState.PLAYING}:void 0),yn=f(()=>[n($n),n(Wn),n(ls),n(dr),n(je),n(jt),n($i),n(zo)].filter(vt=>!!vt).sort(Qa)),Ir=f(()=>n(or)?{id:"vkLogo",type:"desktop-control-panel-right",weight:Ks.vkLogo,buttonComponent:fc,buttonComponentProps:{targetUrl:Xt(),logoClickable:e.logoClickable,click:ct},tooltipText:n(Oo),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),ln=f(()=>n(Jt)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:Ks.autoplayNext,buttonComponent:xc,tooltipText:n(Cr)}:void 0),dn=f(()=>({id:"volume",type:"desktop-control-panel-right",weight:Ks.volume,buttonComponent:Om,buttonComponentProps:{click:sn,isAds:Pt()}})),Cs=f(()=>n(Dn)?{id:"subtitles",type:"desktop-control-panel-right",weight:Ks.subtitles,buttonComponent:Vm,buttonComponentProps:{isSubtitlesEnabled:n(wr),click:Ct},tooltipText:n(Hn)}:void 0),Er=f(()=>n(Ur)?{id:"settings",type:"desktop-control-panel-right",weight:Ks.settings,buttonComponent:Xl,buttonComponentProps:{ref$:lo},tooltipText:xe()?void 0:gt("tooltip_settings_off")}:void 0),Ts=f(()=>le.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:Ks.context,buttonComponent:jm,buttonComponentProps:{ariaLabel:gt("aria_label_context_menu")},className:n(ir)?"":"out-of-view",tooltipText:n(Bn)}:void 0),Qs=f(()=>n(nr)?{id:"fullscreen",type:"desktop-control-panel-right",weight:Ks.fullscreen,buttonComponent:pc,buttonComponentProps:{isFullscreen:P(),click:e.toggleFullscreen},tooltipText:n(ar)}:void 0),Is=f(()=>n(ft)?{id:"chromecast",type:"desktop-control-panel-right",weight:Ks.chromecast,buttonComponent:vc,buttonComponentProps:{state:p(),click:yr},tooltipText:n(Fn)}:void 0),mt=f(()=>[n(Ir),n(ln),n(dn),n(Cs),n(Er),n(Ts),n(Qs),n(Is),...D()].filter(vt=>!!vt).sort(Qa)),di=j.ui.previewTrackActive,To=j.ui.previewTrackDragInProgress,co=j.ui.previewTrackAvailable,xn=j.ui.isPreviewTrackHorizontallyAligned,Mi=f(()=>Nb({onPreviewTrackOpened:j.actions.internal.previewTrackOpened,getTimelineRef:()=>wt.timeline,isHorizontal:Ae()})),ds=f(()=>n(Mi).progressBarY),Es=f(()=>n(Mi).controlsY),zi=f(()=>n(Mi).onPointerDown),Ci=f(()=>n(Mi).onPointerMove),Kn=f(()=>n(Mi).onPointerUp),Pr=f(()=>n(Mi).calculatedHeight),he=f(()=>n(Mi).closePreviewTrack);De(()=>{se()?ni.set(!1):n(he)()});let it;Mt(()=>()=>it&&clearTimeout(it));let mi=vt=>{se()||!et()||(n(zi)(vt),it=setTimeout(()=>{j.actions.internal.previewTrackDragStarted()},200))},Pi=()=>{se()||n(Kn)(),it&&clearTimeout(it),Ee()&&j.actions.internal.previewTrackDragFinished()},wn=vt=>{n(Ci)(vt),!se()&&et()&&!se()&&ni.set(!0)},Io=()=>{ni.set(!1)};var Vi=X2(),qn=ue(Vi);let Ps;var qr=C(qn);{var ha=vt=>{let rt=f(()=>n(ds)()),Zi=f(()=>n(Pr)());uv(vt,{get animatedOffsetY(){return n(rt)},get animatedPreviewTrackHeight(){return n(Zi)},get canRewindLive(){return e.canRewindLive},get isAds(){return Pt()},onTimelineMove:wn,onTimelinePointerDown:mi,onTimelinePointerUp:Pi,onTimelinePointerLeave:Io,get previewTrackAvailable(){return et()},get timelineRef(){return wt.timeline},set timelineRef(Eo){wt.timeline=Eo}})};V(qr,vt=>{e.showControls&&vt(ha)})}var cs=k(qr,2),Sn=C(cs),_a=C(Sn);_i(_a,17,()=>n(yn),vt=>vt.id,(vt,rt)=>{vp(vt,{get buttonComponent(){return n(rt).buttonComponent},get buttonComponentProps(){return n(rt).buttonComponentProps},get tooltipText(){return n(rt).tooltipText},get disabledTooltipContent(){return n(rt).disabledTooltipContent},get disabled(){return n(rt).disabled},get className(){return n(rt).className},get tooltipEnabled(){return n(rt).tooltipEnabled},get mouseEnter(){return n(rt).mouseEnter},get mouseLeave(){return n(rt).mouseLeave},get tooltipVisible(){return e.showControls},get ref(){return wt[n(rt).id]},set ref(Zi){wt[n(rt).id]=Zi}})});var ba=k(_a,2);{var Qr=vt=>{let rt=f(()=>!e.showControls),Zi=f(()=>Pt()?Te():He()),Eo=f(()=>Pt()?Et():St());dc(vt,{get isHidden(){return n(rt)},isMobile:!1,get showDuration(){return n(go)},get position(){return n(Zi)},get duration(){return n(Eo)},get ref(){return wt.time},set ref(Ji){wt.time=Ji}})};V(ba,vt=>{n(Do)&&vt(Qr)})}var ml=k(ba,2);let md=f(()=>!n(sr));Mo(ml,{className:"w-max",get disabled(){return n(md)},get tooltipContent(){return Co},get tooltipVisible(){return e.showControls},get ref(){return wt.episodes},set ref(vt){wt.episodes=vt},children:(vt,rt)=>{var Zi=Me(),Eo=ue(Zi);{var Ji=vi=>{gc(vi,{get position(){return He()},get duration(){return St()},get timeCodes(){return xi}})};V(Eo,vi=>{n(sr)&&vi(Ji)})}b(vt,Zi)},$$slots:{default:!0}}),S(Sn);var $a=k(Sn,2);_i($a,21,()=>n(mt),vt=>vt.id,(vt,rt)=>{var Zi=Me(),Eo=ue(Zi);{var Ji=Wi=>{vp(Wi,{get buttonComponent(){return n(rt).buttonComponent},get buttonComponentProps(){return n(rt).buttonComponentProps},get tooltipText(){return n(rt).tooltipText},get disabledTooltipContent(){return n(rt).disabledTooltipContent},get disabled(){return n(rt).disabled},get className(){return n(rt).className},get tooltipVisible(){return e.showControls},get ref(){return wt[n(rt).id]},set ref(Gs){wt[n(rt).id]=Gs}})},vi=Wi=>{let Gs=f(()=>!!n(rt).disabled);iv(Wi,{get id(){return n(rt).id},get testId(){return n(rt).testId},get icon(){return n(rt).icon},get ariaLabel(){return n(rt).ariaLabel},get tooltipText(){return n(rt).tooltipText},get disabledTooltipContent(){return n(rt).disabledTooltipContent},get disabled(){return n(Gs)},get onClick(){return n(rt).onClick},get disableMouseupTooltipShow(){return n(rt).disableMouseupTooltipShow},get tooltipVisible(){return e.showControls},get ref(){return wt[n(rt).id]},set ref(gd){wt[n(rt).id]=gd}})};V(Eo,Wi=>{Mb(n(rt))?Wi(Ji):Wi(vi,!1)})}b(vt,Zi)}),S($a),S(cs),Ze(cs,vt=>lt(vt),()=>lt()),S(qn),Ze(qn,vt=>Ot(vt),()=>Ot());var vd=k(qn,2);{var vl=vt=>{bc(vt,{get ref(){return wt.interactiveTimeIndicator},set ref(rt){wt.interactiveTimeIndicator=rt}})};V(vd,vt=>{Or&&vt(vl)})}O((vt,rt)=>{Ps=oe(qn,1,"wrapper-bottom s-1b",null,Ps,vt),Ke(qn,`transform: ${e.showControls?"translateY(0)":"translateY(100%)"}`),Ke(cs,rt),cs.inert=se()},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth||Ee()}),()=>`transform: translateY(${n(Es)()}px);`]),An(Sn,"clientWidth",vt=>N(ut,vt)),b(t,Vi),H(),o()}var nd=require("@vkontakte/videoplayer-core/es2018");var mv=require("@vkontakte/videoplayer-shared/es2018");var J2=L('<div class="icon icon-error-stub s-20"><div class="inner s-20"></div></div>'),ew=L('<img class="icon s-20" aria-hidden="true"/>'),tw={hash:"s-20",code:".icon.s-20{height:24px!important;width:24px!important}.inner.s-20{background-color:var(--white);height:16px;width:16px}"};function vv(t,e){Q(t,tw);let i=h(e,"disabled",3,!1),o=h(e,"onClick",3,mv.noop),r=f(()=>o()===mv.noop),a=f(()=>n(r)||i()),l=q(!1),d=()=>{N(l,!0)},s=f(()=>n(r)?"btn-full-opacity":"");Ut(t,{get className(){return n(s)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return n(a)},get testId(){return e.testId},children:(u,m)=>{var p=Me(),v=ue(p);{var _=$=>{var x=J2();b($,x)},y=$=>{var x=ew();O(()=>Ve(x,"src",e.iconUrl)),pt("error",x,d),Ra(x),b($,x)};V(v,$=>{n(l)?$(_):$(y,!1)})}b(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 gv(t){Je(t,{testId:"muted-icon",children:(e,i)=>{var o=iw();b(e,o)},$$slots:{default:!0}})}var Hb=require("@vkontakte/videoplayer-shared/es2018");function _p(t,e){B(e,!0);let i=h(e,"muted",3,!1),o=h(e,"click",3,Hb.noop),r=h(e,"ref",15,void 0),l=be().ui.t,d=f(()=>i()?l("tooltip_volume"):l("tooltip_volume_muted")),s=f(()=>i()?"btn-mobile-muted":"btn-mobile-unmuted");Ut(t,{get testId(){return n(s)},get click(){return o()},get ariaLabel(){return n(d)},role:"button",get ref(){return r()},set ref(u){r(u)},children:(u,m)=>{var p=Me(),v=ue(p);{var _=$=>{gv($,{})},y=$=>{ma($,{get size(){return"24"}})};V(v,$=>{i()?$(_):$(y,!1)})}b(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 hv(t,e){let i=h(e,"isActive",3,!1),o=f(()=>i()?"pip-icon--active":"pip-icon");Je(t,{get testId(){return n(o)},children:(r,a)=>{var l=rw(),d=k(ue(l));{var s=m=>{var p=ow();b(m,p)},u=m=>{var p=nw();b(m,p)};V(d,m=>{i()?m(s):m(u,!1)})}b(r,l)},$$slots:{default:!0}})}var Fb=require("@vkontakte/videoplayer-shared/es2018");function _v(t,e){B(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"isPictureInPictureActive",3,!1),r=h(e,"click",3,Fb.noop),a=Y("menu_pip");Ut(t,{testId:"btn-pip",get ariaLabel(){return a},get click(){return r()},get ref(){return i()},set ref(l){i(l)},children:(l,d)=>{hv(l,{get isActive(){return o()}})},$$slots:{default:!0}}),H()}var bv=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 bn,Kr;B(e,!0),Q(t,hw);let[i,o]=Ne(),r=()=>w(ji,"$seekToInteractiveDisabledTooltip$",i),a=()=>w(Zt,"$disabledControls$",i),l=()=>w(kt,"$playbackState$",i),d=()=>w(Xo,"$adPlaybackState",i),s=()=>w(j,"$isEnded$",i),u=()=>w(_t,"$playerSize",i),m=()=>w(Ct,"$scrubbingInProgress",i),p=()=>w(Hi,"$chromecastState$",i),v=()=>w(Fe,"$isPictureInPictureActive",i),_=()=>w(Ue,"$pictureInPictureType$",i),y=()=>w(fe,"$mobileNotReportControlHidden$",i),$=()=>w(ci,"$chromecastHidden",i),x=()=>w(lt,"$playerPhase",i),I=()=>w(Rt,"$pipHidden",i),T=()=>w(st,"$currentGridType$",i),R=()=>w(ai,"$vkLogoHidden",i),A=()=>w(Gt,"$volumeHidden",i),P=()=>w(Pe,"$isLive$",i),E=()=>w(Tt,"$settingsMenuVisible",i),z=()=>w(ct,"$isRewindableLive$",i),F=()=>w(Le,"$isActiveLive$",i),U=()=>w(Dt,"$isAudioAvailable$",i),X=()=>w($e,"$muted$",i),ae=()=>w(le,"$volume$",i),Z=()=>w(gt,"$isInteractiveTime$",i),re=()=>w(On,"$settingButtonRef$",i),J=()=>w(xi,"$startedByKeyboard$",i),we=()=>w(Ro,"$isFullscreen",i),me=()=>w(Bt,"$additionalButtons$",i),ee=()=>w(Bi,"$autoplayNextToggleHidden",i),_e=()=>w(bi,"$crashed$",i),Ce=()=>w(vo,"$settingsHidden",i),ge=()=>w(Zo,"$graphIsOpened$",i),pe=()=>w(hi,"$adPosition",i),Qe=()=>w(dt,"$adDuration",i),G=()=>w(Xt,"$position$",i),D=()=>w(Pt,"$duration$",i),Ge=h(e,"playerControlsWrapperRef",15,void 0),K=h(e,"playerControlsRef",15,void 0),se=h(e,"isAds",3,!1),xe=h(e,"logoTargetUrl",3,""),Be=h(e,"isOneVideoPlaylist",3,!1),ot=h(e,"customFullscreenSupported",3,!0),ne=be(),ce=_o(),Re=Vt(),Ae=ne.actions.internal.toggleMuted,et=ne.actions.internal.togglePlay,Ee=ne.actions.internal.pause,Te=ne.actions.internal.prevVideoClick,He=ne.actions.internal.nextVideoClick,Et=ne.actions.internal.checkFullscreenSupport,St=(bn=ne.callbacks)==null?void 0:bn.onAudioDoesNotExistHint,Ot=(Kr=ne.callbacks)==null?void 0:Kr.onAudioDisabledHint,lt=ne.playerPhase,Pt=ne.state.duration$,Xt=ne.state.positionWithScrubbing$,kt=ne.state.playbackState$,Dt=ne.state.isAudioAvailable$,zt=ne.state.isAudioDisabled,j=ne.state.isEnded$,Pe=ne.state.isLive$,le=ne.state.volume$,$e=ne.state.muted$,Le=ne.state.isActiveLive$,ct=ne.state.isRewindableLive$,Ct=ne.ui.scrubbingInProgress,fe=ne.ui.mobileNotReportControlHidden$,{isActive$:Fe,type$:Ue}=ce.pictureInPicture$,Tt=ne.ui.settingsMenu.visible$,oi=ne.ui.settingsMenu.openedByBtnKeyboard$,xt=ne.ui.controls,{volume:Gt,vkLogo:ai,autoplayNextToggle:Bi,pip:Rt,settings:vo,chromecast:ci}=ne.ui.hiddenControls,nt=ne.actions.internal.getVideoEpisodes(),Yt=ne.webApi.pictureInPictureApi,Hi=ne.state.chromecastState$,bi=ne.state.crashed$,Zt=xt.disabledControls$,xi=ne.ui.startedByKeyboard$,st=ne.ui.currentGridType$,dt=ne.ads.duration,hi=ne.ads.position,Xo=ne.ads.playbackState,Ro=ne.ui.isFullscreen,_t=ne.ui.playerSize,Bt=ne.ui.additionalButtonsDeprecated$,W=ne.actions.internal.getVideoElement,Lt=ne.actions.internal.replayInteractive,ni=ne.state.isInteractive,gt=ne.state.isInteractiveTime$,ei=ne.state.showInteractiveGraph,Kt=ne.state.showSeekToInteractive,We=ne.state.showPlayPrevChapter,Fi=ne.state.showInteractiveTimeIndicator,ji=ce.seekToInteractiveDisabledTooltip$,Zo=ce.graphIsOpened$,er=ne.ui.controlBlocks,ro=f(()=>Y(ne.state.playPrevChapterDisabledTooltip)),Ti=f(()=>Y(r())),bo=f(()=>a().has("EPISODE_BUTTON")),No=f(()=>a().has("GRAPH_BUTTON")),$o=f(()=>a().has("SEEK_TO_INTERACTIVE_BUTTON")),Ii=f(()=>a().has("PLAY_BUTTON")),yo=f(()=>a().has("REPLAY_BUTTON")),xo=f(()=>a().has("PLAY_PREV_CHAPTER_BUTTON")),Jo=f(()=>l()===nd.PlaybackState.PLAYING),Dr=f(()=>d()==="paused"),Or=f(()=>s()&&!se()&&!ni),ss=f(()=>!s()||se()),ys=f(()=>e.showNextPrevButtons&&!se()&&e.prevButtonActive),_r=f(()=>e.showNextPrevButtons&&!se()&&e.nextButtonActive),tr=f(()=>u().width>300),Br=f(()=>u().width>400),vn=f(m),gn=f(()=>p()!==nd.ChromecastState.NOT_AVAILABLE&&!(v()&&_()===1)&&!y()&&!ni&&!$()),br=f(()=>x()==="LiveWaitingStart"),$r=f(()=>!!Yt&&p()!==nd.ChromecastState.CONNECTED&&!y()&&(_()===1&&n(br)||!n(br))&&!n(vn)&&!ni&&!I()),en=q(!1);Mt(()=>{let ze=Yt==null?void 0:Yt.info.isActive$.subscribe(yt=>N(en,yt,!0));return()=>ze==null?void 0:ze.unsubscribe()});let yr=f(()=>!n(vn)&&io(T(),"s")),xr=f(()=>!e.logoHidden&&u().width>350&&!R()),wr=f(()=>Re.features.fullscreen&&Et()&&!(v()&&_()===1)&&(ni?ot():!0)&&!n(vn)&&!n(en)),Nn=f(()=>!A()&&!n(vn)),Hr=f(()=>(!P()||se())&&u().width>260&&!n(vn)&&!(Re.features.interactiveHideTime&&ni)),xs=f(()=>E()||e.showControls),Fr=f(()=>!se()&&!P()&&!!(nt!=null&&nt.length)&&n(tr)&&!n(bo)&&!n(vn)),wi=f(()=>!z()||!!F()),as=f(()=>ei&&io(T(),"m")),tn=f(()=>!U()||X()||ae()===0),ft=ri({}),Jt=ri({}),Dn=(0,bv.debounceFn)(td,260),ir=(0,bv.debounceFn)(gp,260);De(()=>{u(),Z(),Dn(W(),xt,ft,e.showControls),ir(W(),er,Jt,e.showControls)});let Ur=()=>ne.actions.internal.toggleChromecast();async function or(){Yt!=null&&Yt.isActive()?await(Yt==null?void 0:Yt.exit()):await(Yt==null?void 0:Yt.request())}function nr(){ua({isAudioDisabled:zt,audioDisabledHintCallback:Ot,isAudioAvailable:U(),audioIsNotExistHintCallback:St,isAds:se()})&&Ae()}let Do=q(""),Sr=(ze,yt)=>{if(!ze){N(Do,Y("tooltip_live"),!0);return}yt&&yt===nd.PlaybackState.PAUSED&&N(Do,Y("tooltip_play"),!0)};De(()=>{Sr(n(wi),l())});let On=de();De(()=>{re()&&ql(re(),E(),oi)}),De(()=>{mp(xi,J(),ft.playButton)});var rr=gw(),sr=ue(rr);{var on=ze=>{var yt=pw(),li=ue(yt);let go;var Ei=k(li,2);let Fo;Ze(Ei,mt=>Jt.topLeft=mt,()=>Jt==null?void 0:Jt.topLeft);var lo=k(Ei,2);let Uo;var sn=C(lo);_i(sn,1,me,({iconUrl:mt,ariaLabel:di,testId:To,onClick:co,tooltip:xn})=>mt,(mt,di)=>{let To=()=>n(di).iconUrl,co=()=>n(di).ariaLabel,xn=()=>n(di).testId,Mi=()=>n(di).onClick,ds=()=>n(di).tooltip,Es=f(()=>{var zi;return(zi=co())!=null?zi:ds()});vv(mt,{get iconUrl(){return To()},get ariaLabel(){return n(Es)},get testId(){return xn()},get onClick(){return Mi()}})});var lr=k(sn,2);{var So=mt=>{xc(mt,{get ref(){return ft.autoplayNextToggle},set ref(di){ft.autoplayNextToggle=di}})};V(lr,mt=>{e.showAutoplayNext&&!Be()&&!ee()&&mt(So)})}var an=k(lr,2);{var zn=mt=>{vc(mt,{isMobile:!0,click:Ur,get state(){return p()},get ref(){return ft.chromecast},set ref(di){ft.chromecast=di}})};V(an,mt=>{n(gn)&&mt(zn)})}var Co=k(an,2);{var $n=mt=>{_v(mt,{click:or,get isPictureInPictureActive(){return v()},get ref(){return ft.pip},set ref(di){ft.pip=di}})};V(Co,mt=>{n($r)&&mt($n)})}var Wn=k(Co,2);{var ls=mt=>{Xl(mt,{get ref$(){return On}})};V(Wn,mt=>{_e()&&!Ce()&&mt(ls)})}var dr=k(Wn,2);{var je=mt=>{fc(mt,{get click(){return Ee},get targetUrl(){return xe()},get logoClickable(){return e.logoClickable},get ref(){return ft.vkLogo},set ref(di){ft.vkLogo=di}})};V(dr,mt=>{n(xr)&&mt(je)})}S(lo),Ze(lo,mt=>Jt.topRight=mt,()=>Jt==null?void 0:Jt.topRight);var jt=k(lo,2);let $i;var zo=C(jt);{var yn=mt=>{let di=f(()=>Te.bind(null,!0));el(mt,{get click(){return n(di)},type:"prev",isMobile:!0,get ref(){return ft.prevButton},set ref(To){ft.prevButton=To}})};V(zo,mt=>{n(ys)&&mt(yn)})}var Ir=k(zo,2);{var ln=mt=>{od(mt,{get disabled(){return n(Ii)},get click(){return et},isMobile:!0,get isPlaying(){return n(Jo)},get ref(){return ft.playButton},set ref(di){ft.playButton=di}})};V(Ir,mt=>{n(ss)&&mt(ln)})}var dn=k(Ir,2);{var Cs=mt=>{id(mt,{get disabled(){return n(yo)},get click(){return et},isMobile:!0,get ref(){return ft.replayButton},set ref(di){ft.replayButton=di}})};V(dn,mt=>{n(Or)&&mt(Cs)})}var Er=k(dn,2);{var Ts=mt=>{let di=f(()=>He.bind(null,!0));el(mt,{get click(){return n(di)},type:"next",isMobile:!0,get ref(){return ft.nextButton},set ref(To){ft.nextButton=To}})};V(Er,mt=>{n(_r)&&mt(Ts)})}S(jt),Ze(jt,mt=>Jt.middle=mt,()=>Jt==null?void 0:Jt.middle);var Qs=k(jt,2);{var Is=mt=>{var di=uw(),To=ue(di);{var co=zi=>{var Ci=lw();let Kn;Ci.__click=[sw,xo,e,ro];var Pr=C(Ci);let he=f(()=>!e.showControls);yc(Pr,{get hidden(){return n(he)},get disabled(){return n(xo)},get click(){return e.playPrevChapter},get ref(){return ft.playPrevChapterButton},set ref(it){ft.playPrevChapterButton=it}}),S(Ci),O(it=>Kn=oe(Ci,1,"wrapper-middle-left s-1c",null,Kn,it),[()=>({fullscreen:we(),hidden:!e.showControls})]),b(zi,Ci)};V(To,zi=>{We&&zi(co)})}var xn=k(To,2);{var Mi=zi=>{var Ci=dw();let Kn;var Pr=C(Ci);let he=f(()=>!e.showControls&&!ge());Sc(Pr,{get hidden(){return n(he)},get disabled(){return n(No)},get click(){return Zo.toggle},get graphIsOpened(){return ge()},get ref(){return ft.interactiveGraphButton},set ref(it){ft.interactiveGraphButton=it}}),S(Ci),O(it=>Kn=oe(Ci,1,Hd(We?"wrapper-middle-left-second":"wrapper-middle-left"),"s-1c",Kn,it),[()=>({fullscreen:we(),hidden:!e.showControls&&!ge()})]),b(zi,Ci)};V(xn,zi=>{n(as)&&zi(Mi)})}var ds=k(xn,2);{var Es=zi=>{var Ci=cw();let Kn;Ci.__click=[aw,$o,e,Ti];var Pr=C(Ci);let he=f(()=>!e.showControls);wc(Pr,{get hidden(){return n(he)},get disabled(){return n($o)},get click(){return e.seekToInteractive},get ref(){return ft.seekToInteractiveButton},set ref(it){ft.seekToInteractiveButton=it}}),S(Ci),O(it=>Kn=oe(Ci,1,"wrapper-middle-right s-1c",null,Kn,it),[()=>({fullscreen:we(),hidden:!e.showControls})]),b(zi,Ci)};V(ds,zi=>{Kt&&zi(Es)})}b(mt,di)};V(Qs,mt=>{ni&&!m()&&mt(Is)})}O((mt,di,To,co)=>{go=oe(li,1,"overlay-mobile s-1c",null,go,mt),Fo=oe(Ei,1,"wrapper-top-left s-1c",null,Fo,di),Uo=oe(lo,1,"wrapper-top-right s-1c",null,Uo,To),$i=oe(jt,1,"wrapper-middle s-1c",null,$i,co)},[()=>({hidden:!n(xs)}),()=>({hidden:!e.showControls,fullscreen:we()}),()=>({hidden:!e.showControls&&!y(),fullscreen:we()}),()=>({hidden:!e.showControls||m()||e.endScreenShown&&e.showNextPrevButtons})]),b(ze,yt)};V(sr,ze=>{se()||ze(on)})}var hn=k(sr,2);{var Bn=ze=>{var yt=mw(),li=ue(yt);let go;var Ei=C(li);_p(Ei,{get muted(){return X()},click:nr,get ref(){return ft.volume},set ref(So){ft.volume=So}}),S(li);var Fo=k(li,2);{var lo=So=>{var an=fw(),zn=C(an);let Co=f(()=>!n(Dr));od(zn,{get disabled(){return n(Ii)},get click(){return et},isMobile:!0,get isPlaying(){return n(Co)},get ref(){return ft.playButton},set ref($n){ft.playButton=$n}}),S(an),b(So,an)};V(Fo,So=>{n(Dr)&&So(lo)})}var Uo=k(Fo,2);let sn;var lr=C(Uo);Tc(lr,{get position(){return pe()},get duration(){return Qe()}}),S(Uo),O((So,an)=>{go=oe(li,1,"wrapper-top-right s-1c",null,go,So),sn=oe(Uo,1,"wrapper-bottom ads-timeline-mobile s-1c",null,sn,an)},[()=>({fullscreen:we()}),()=>({fullscreen:we()})]),b(ze,yt)};V(hn,ze=>{se()&&d()!=="inactive"&&ze(Bn)})}var Ai=k(hn,2);let Li;var Oo=C(Ai);let Hn;var ar=C(Oo),Fn=C(ar),Cr=C(Fn);{var ut=ze=>{Mo(ze,{get disabled(){return n(yo)},get ref(){return ft.replayButton},set ref(yt){ft.replayButton=yt},children:(yt,li)=>{id(yt,{get disabled(){return n(yo)},get click(){return Lt}})},$$slots:{default:!0}})};V(Cr,ze=>{ni&&ze(ut)})}var wt=k(Cr,2);{var so=ze=>{Mo(ze,{get ref(){return ft.liveButton},set ref(yt){ft.liveButton=yt},children:(yt,li)=>{Cc(yt,{get isLiveActive(){return n(wi)},isMobile:!0,get ariaLabel(){return n(Do)}})},$$slots:{default:!0}})};V(wt,ze=>{!se()&&P()&&ze(so)})}var ao=k(wt,2);{var nn=ze=>{let yt=f(()=>se()?pe():G()),li=f(()=>se()?Qe():D()),go=f(()=>!e.showControls);dc(ze,{get showDuration(){return n(Br)},get position(){return n(yt)},get duration(){return n(li)},isMobile:!0,get isHidden(){return n(go)},get ref(){return ft.time},set ref(Ei){ft.time=Ei}})};V(ao,ze=>{n(Hr)&&ze(nn)})}var Bo=k(ao,2);let wo=f(()=>!n(Fr));Mo(Bo,{className:"w-max",get disabled(){return n(wo)},get ref(){return ft.episodes},set ref(ze){ft.episodes=ze},children:(ze,yt)=>{var li=Me(),go=ue(li);{var Ei=Fo=>{var lo=vw(),Uo=k(ue(lo),2);gc(Uo,{get position(){return G()},get duration(){return D()},get timeCodes(){return nt}}),b(Fo,lo)};V(go,Fo=>{n(Fr)&&Fo(Ei)})}b(ze,li)},$$slots:{default:!0}}),S(Fn),Ze(Fn,ze=>Jt.bottomLeft=ze,()=>Jt==null?void 0:Jt.bottomLeft);var Xi=k(Fn,2),Un=C(Xi);{var _n=ze=>{Mo(ze,{get ref(){return ft.volume},set ref(yt){ft.volume=yt},children:(yt,li)=>{_p(yt,{get muted(){return n(tn)},click:nr})},$$slots:{default:!0}})};V(Un,ze=>{n(Nn)&&ze(_n)})}var rn=k(Un,2);{var ws=ze=>{Mo(ze,{get ref(){return ft.settings},set ref(yt){ft.settings=yt},children:(yt,li)=>{Xl(yt,{get ref$(){return On}})},$$slots:{default:!0}})};V(rn,ze=>{n(yr)&&ze(ws)})}var zr=k(rn,2);{var Ss=ze=>{Mo(ze,{get ref(){return ft.fullscreen},set ref(yt){ft.fullscreen=yt},children:(yt,li)=>{pc(yt,{get click(){return e.toggleFullscreen},get isFullscreen(){return we()}})},$$slots:{default:!0}})};V(zr,ze=>{n(wr)&&ze(Ss)})}S(Xi),Ze(Xi,ze=>Jt.bottomRight=ze,()=>Jt==null?void 0:Jt.bottomRight),S(ar),Ze(ar,ze=>K(ze),()=>K());var Ui=k(ar,2);let Wr=f(()=>!e.showControls);il(Ui,{get isHidden(){return n(Wr)},get isAds(){return se()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return z()},get ref(){return ft.timeline},set ref(ze){ft.timeline=ze}}),S(Oo),Ze(Oo,ze=>Jt.bottom=ze,()=>Jt==null?void 0:Jt.bottom),S(Ai),Ze(Ai,ze=>Ge(ze),()=>Ge());var Ho=k(Ai,2);{var Tr=ze=>{bc(ze,{get ref(){return ft.interactiveTimeIndicator},set ref(yt){ft.interactiveTimeIndicator=yt}})};V(Ho,ze=>{Fi&&ze(Tr)})}O((ze,yt)=>{Li=oe(Ai,1,"wrapper-bottom mobile s-1c",null,Li,ze),Hn=oe(Oo,1,"controls-wrapper s-1c",null,Hn,yt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth}),()=>({fullscreen:we()})]),b(t,rr),H(),o()}Ye(["click"]);function Ic(t,e){B(e,!0);let[i,o]=Ne(),r=()=>w(I,"$isMobile",i),a=h(e,"bottomNoSmooth",3,!1),l=h(e,"playerControlsWrapperRef",15,void 0),d=h(e,"playerControlsRef",15,void 0),s=h(e,"isAds",3,!1),u=h(e,"logoTargetUrl",3,""),m=h(e,"showAutoplayNext",3,!1),p=h(e,"isOneVideoPlaylist",3,!1),v=h(e,"customFullscreenSupported",3,!0),_=h(e,"endScreenShown",3,!1),y=h(e,"onDisabledPlayPrevChapterClick",3,yv.noop),$=h(e,"onDisabledSeekToInteractiveClick",3,yv.noop),I=be().ui.isMobile,T=q(!1);Mt(()=>{let E=setTimeout(()=>N(T,!0),0);return()=>clearTimeout(E)});var R=Me(),A=ue(R);{var P=E=>{var z=Me(),F=ue(z);{var U=ae=>{$v(ae,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return a()},get showControls(){return e.showControls},get isAds(){return s()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},get showAutoplayNext(){return m()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get isOneVideoPlaylist(){return p()},get customFullscreenSupported(){return v()},get endScreenShown(){return _()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return y()},get onDisabledSeekToInteractiveClick(){return $()},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(Z){l(Z)},get playerControlsRef(){return d()},set playerControlsRef(Z){d(Z)}})},X=ae=>{fv(ae,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return a()},get showControls(){return e.showControls},get isAds(){return s()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},get isOneVideoPlaylist(){return p()},get showAutoplayNext(){return m()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get customFullscreenSupported(){return v()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(Z){l(Z)},get playerControlsRef(){return d()},set playerControlsRef(Z){d(Z)}})};V(F,ae=>{r()?ae(U):ae(X,!1)})}b(E,z)};V(A,E=>{n(T)&&E(P)})}b(t,R),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=f(()=>e.reversed?"transform:scaleX(-1);transform-origin:50% 0;":""),o=f(()=>`${fn(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();b(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 xv(t,e){B(e,!0);let i=h(e,"reversed",3,!1),o=f(()=>i()?"transform:scaleX(-1);transform-origin: 50% 0;":void 0),r=f(()=>`seek-icon-${i()?"backward":"forward"}`);Je(t,{get width(){return"48"},get height(){return"48"},get style(){return n(o)},get testId(){return n(r)},get shadow(){return e.shadow},children:(a,l)=>{var d=bw();b(a,d)},$$slots:{default:!0}}),H()}var $w=L('<span class="hot-key-helpers-text s-t"> </span>'),yw=L('<div data-testid="hotkey-helper-icon" class="s-t"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),xw=L("<div><!></div>"),ww={hash:"s-t",code:'.hot-key-helpers-container.s-t{align-items:center;animation:s-t-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-t{left:calc(25% - 100px)}.hot-key-helpers-container--right.s-t{left:calc(75% - 100px)}.hot-key-helpers-text.s-t{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-t{animation:s-t-fadeOut ease var(--controls-transition-duration);height:0;visibility:hidden;width:0}@keyframes s-t-fadeIn{0%{opacity:0}to{opacity:1}}@keyframes s-t-fadeOut{0%{opacity:1}to{opacity:0}}'};function wv(t,e){B(e,!0),Q(t,ww);let[i,o]=Ne(),r=()=>w(e.data,"$data",i),a=be(),{features:l}=Vt(),d=a.ui.t,s=f(()=>!r()),u=f(()=>{var I;return((I=r())==null?void 0:I.type)==="BACKWARD_SEEK"}),m=f(()=>{var I;return((I=r())==null?void 0:I.type)==="FORWARD_SEEK"}),p=f(()=>{var I;return(I=r())==null?void 0:I.type}),v=f(()=>{var I,T;return(I=r())!=null&&I.t?d(r().t.key,{value:r().t.value||""}):(T=r())==null?void 0:T.text});var _=xw();let y;var $=C(_);{var x=I=>{var T=yw(),R=ue(T),A=C(R);{var P=K=>{let se=f(()=>n(p)==="BACKWARD_SEEK");xv(K,{get reversed(){return n(se)},shadow:!0})};V(A,K=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(n(p))&&K(P)})}var E=k(A,2);{var z=K=>{Ws(K,{get size(){return"48"},shadow:!0})};V(E,K=>{n(p)==="PAUSE"&&!l.playbackStatusShow&&K(z)})}var F=k(E,2);{var U=K=>{Mn(K,{get size(){return"48"},shadow:!0})};V(F,K=>{n(p)==="PLAY"&&!l.playbackStatusShow&&K(U)})}var X=k(F,2);{var ae=K=>{$c(K,{get size(){return"48"},shadow:!0})};V(X,K=>{n(p)==="REPLAY"&&!l.playbackStatusShow&&K(ae)})}var Z=k(X,2);{var re=K=>{fa(K,{get size(){return"48"},type:"off",shadow:!0})};V(Z,K=>{n(p)==="SUBTITLES_OFF"&&K(re)})}var J=k(Z,2);{var we=K=>{fa(K,{get size(){return"48"},shadow:!0})};V(J,K=>{n(p)==="SUBTITLES_ON"&&K(we)})}var me=k(J,2);{var ee=K=>{let se=f(()=>n(p)==="RATE_DOWN");Ec(K,{get size(){return"48"},get reversed(){return n(se)},testId:"rate-change-icon",shadow:!0})};V(me,K=>{["RATE_DOWN","RATE_UP"].includes(n(p))&&K(ee)})}var _e=k(me,2);{var Ce=K=>{let se=f(()=>n(p)==="EPISODE_PREV");va(K,{get size(){return"48"},get reversed(){return n(se)},shadow:!0})};V(_e,K=>{["EPISODE_PREV","EPISODE_NEXT"].includes(n(p))&&K(Ce)})}var ge=k(_e,2);{var pe=K=>{ma(K,{get size(){return"48"},volume:0,shadow:!0})};V(ge,K=>{n(p)==="MUTE"&&K(pe)})}var Qe=k(ge,2);{var G=K=>{ma(K,{get size(){return"48"},volume:1,shadow:!0})};V(Qe,K=>{n(p)==="VOLUME"&&K(G)})}S(R);var D=k(R,2);{var Ge=K=>{var se=$w(),xe=C(se,!0);S(se),O(()=>ve(xe,n(v))),b(K,se)};V(D,K=>{n(v)&&K(Ge)})}O(()=>Ve(R,"data-type",n(p))),b(I,T)};V($,I=>{!n(s)&&n(p)&&I(x)})}S(_),O(I=>y=oe(_,1,"hot-key-helpers-container s-t",null,y,I),[()=>({hidden:n(s),"hot-key-helpers-container--left":n(u),"hot-key-helpers-container--right":n(m)})]),b(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-q" aria-hidden="true"><div class="button-row s-q"><div class="button button-up s-q"><!></div> <div class="button button-right s-q"><!></div></div> <div class="button-row s-q"><div class="button button-left s-q"><!></div> <div class="button button-down s-q"><!></div></div></div></div>'),Iw={hash:"s-q",code:".immersive-controls.s-q{background-color:rgba(0,0,0,.56);border-radius:8px;display:flex;flex-direction:row;height:56px;left:10px;position:absolute;top:10px;transition-duration:var(--controls-transition-duration);transition-property:top,left;transition-timing-function:var(--controls-transition-fn);width:56px}.immersive-controls.m-shifted.s-q{left:20px;top:50px}.button-block.s-q{height:40px;margin:auto;transform:rotate(45deg);width:40px}.button-row.s-q{display:flex;flex-direction:row;position:relative}.button.s-q{cursor:pointer;height:20px;text-align:center;width:20px}.button.s-q svg{opacity:.7;transition:opacity .2s linear}.button.button-up.s-q svg{transform:rotate(-45deg) translate(-1px,-1px)}.button.button-right.s-q svg{transform:rotate(45deg) translate(1px,-1px)}.button.button-down.s-q svg{transform:rotate(135deg) translate(1px,-3px)}.button.button-left.s-q svg{transform:rotate(-135deg) translate(-1px,-3px)}.button.s-q:hover svg{opacity:1}"};function Pc(t,e){B(e,!0),Q(t,Iw);let i=h(e,"isShifted",3,!1),o=be(),r=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),a=()=>{o.actions.internal.startCameraManualRotation(0,1)},l=()=>{o.actions.internal.startCameraManualRotation(0,-1)},d=()=>{o.actions.internal.startCameraManualRotation(1,0)},s=()=>{o.actions.internal.startCameraManualRotation(-1,0)},u=()=>(o.actions.internal.stopCameraManualRotation(),null),m=Y("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(_),$=C(y);$.__mousedown=a,$.__mouseup=u;var x=C($);Rr(x,{direction:"up",useBtnColor:!0}),S($);var I=k($,2);I.__mousedown=d,I.__mouseup=u;var T=C(I);Rr(T,{direction:"up",useBtnColor:!0}),S(I),S(y);var R=k(y,2),A=C(R);A.__mousedown=s,A.__mouseup=u;var P=C(A);Rr(P,{direction:"up",useBtnColor:!0}),S(A);var E=k(A,2);E.__mousedown=l,E.__mouseup=u;var z=C(E);Rr(z,{direction:"up",useBtnColor:!0}),S(E),S(R),S(_),S(p),O(F=>{v=oe(p,1,"immersive-controls s-q",null,v,F),Ve(p,"aria-label",m)},[()=>({"m-shifted":i()})]),pt("mouseleave",$,u),pt("mouseleave",I,u),pt("mouseleave",A,u),pt("mouseleave",E,u),b(t,p),H()}Ye(["keydown","keyup","mousedown","mouseup"]);var qs=require("@vkontakte/videoplayer-shared/es2018");var Ub=(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=Ub(1e3);this.subscriptions=new qs.Subscription;this.isAuto=!1;this.isLive=!1;this.captions$=new qs.ValueSubject([]);this.captionsPrepared$=new qs.ValueSubject([])}subscribe(){return this.subscriptions.add(this.captions$.pipe((0,qs.filter)(()=>this.isEnabled()),(0,qs.filterChanged)()).subscribe(e=>{this.processCaptions(e)})),this}setIsAuto(e){this.isAuto=e}setIsLive(e){this.isLive=e}setCaptions(e){this.captions$.next(e)}destroy(){this.subscriptions.unsubscribe(),this.flickeringTimeout.clear()}isEnabled(){return this.isAuto&&!this.isLive}processCaptions(e){if(!e.length){this.flickeringTimeout.add(()=>{this.captionsPrepared$.next([])});return}this.flickeringTimeout.clear();let 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-d"><span class="caption-segment s-d"> </span></span>'),Pw=L('<span class="caption-line s-d"><span class="caption-segment s-d"></span></span>'),kw=L('<span class="caption-line s-d"><span class="caption-segment s-d"> </span></span>'),Aw=L('<div><span class="caption s-d"><!></span></div>'),Lw=L("<div><!></div>"),Mw={hash:"s-d",code:".subtitles-container.s-d{height:100%;left:0;pointer-events:none;position:absolute;top:0;transition:transform var(--controls-transition-duration);width:100%}.subtitles-container.shifted.s-d{transform:translateY(calc(var(--controls-height)*-1))}.subtitles-container.preview-track-active.s-d{transform:translateY(calc(var(--preview-track-height)*-1))}.preview-track-active.s-d .subtitles-caption:where(.s-d){bottom:var(--preview-track-controls-top-offset)}.subtitles-caption.s-d{bottom:4%;display:flex;justify-content:center;left:4%;position:absolute;right:4%}.subtitles-caption.mobile.s-d{bottom:8%}.subtitles-container.auto.s-d .subtitles-caption:where(.s-d){left:var(--subtitles-caption-margin);right:var(--subtitles-caption-margin)}.caption.s-d{background:rgba(0,0,0,.4);border-radius:4px;display:block;overflow-wrap:normal;padding:4px 8px}.subtitles-container.auto.s-d .caption:where(.s-d){width:100%}.caption-line.s-d{display:block;text-align:center}.subtitles-container.auto.s-d .caption-line:where(.s-d){text-align:left}.caption-segment.s-d{color:var(--white);display:inline-block;font-size:13px;line-height:1.2;white-space:pre-wrap}"};function rl(t,e){B(e,!0),Q(t,Mw);let[i,o]=Ne(),r=()=>w(v,"$currentSubtitle$",i),a=()=>w(y,"$isLive$",i),l=()=>w($,"$isFullscreen",i),d=()=>w(x,"$previewTrackActive",i),s=()=>w(_,"$isAutoSubtitleCaptionVisible$",i),u=h(e,"isMobile",3,!1),m=be(),p=Vt(),v=m.state.currentSubtitle$,_=m.state.isAutoSubtitleCaptionVisible$,y=m.state.isLive$,$=m.ui.isFullscreen,x=m.ui.previewTrackActive,I=f(()=>!!r().isAuto),T=f(()=>!!a()),R=f(()=>e.playerSize.width*.02),A=f(()=>u()&&!l()||n(R)<=p.minSubtitlesFontSize?p.minSubtitlesFontSize:n(R)),P=q(null);De(()=>{var Z,re,J;(Z=n(P))==null||Z.setIsAuto(n(I)),(re=n(P))==null||re.setIsLive(n(T)),(J=n(P))==null||J.setCaptions(e.captions)});let E=q(ri([[]]));Mt(()=>{N(P,new bp().subscribe(),!0);let Z=n(P).captionsPrepared$.subscribe(re=>{N(E,re,!0)});return()=>{var re;(re=n(P))==null||re.destroy(),Z.unsubscribe()}}),Mt(()=>{if(n(I)){let Z=window.setTimeout(()=>{_.set(!1)},p.autoSubtitlesTimeout);return()=>{window.clearTimeout(Z)}}else _.set(!1)});let z=f(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var F=Lw();let U;var X=C(F);{var ae=Z=>{var re=Aw();let J;var we=C(re),me=C(we);{var ee=Ce=>{var ge=Ew(),pe=C(ge),Qe=C(pe,!0);S(pe),S(ge),O(G=>{var D;Ke(pe,`font-size: ${(D=n(A))!=null?D:""}px`),ve(Qe,G)},[()=>Y("subtitles_auto_caption")]),b(Ce,ge)},_e=(Ce,ge)=>{{var pe=G=>{var D=Me(),Ge=ue(D);_i(Ge,17,()=>n(E),Od,(K,se)=>{var xe=Pw(),Be=C(xe);_i(Be,21,()=>n(se),({value:ot,timeAppeared:ne})=>ne,(ot,ne)=>{let ce=()=>n(ne).value,Re=()=>n(ne).timeAppeared;var Ae=Me(),et=ue(Ae);{var Ee=Te=>{var He=gs();O(()=>ve(He,ce())),b(Te,He)};V(et,Te=>{(!Re()||Re()<=e.position)&&Te(Ee)})}b(ot,Ae)}),S(Be),S(xe),O(()=>{var ot;return Ke(Be,`font-size: ${(ot=n(A))!=null?ot:""}px`)}),b(K,xe)}),b(G,D)},Qe=G=>{var D=Me(),Ge=ue(D);_i(Ge,17,()=>e.captions,({value:K})=>K,(K,se)=>{let xe=()=>n(se).value;var Be=kw(),ot=C(Be),ne=C(ot,!0);S(ot),S(Be),O(()=>{var ce;Ke(ot,`font-size: ${(ce=n(A))!=null?ce:""}px`),ve(ne,xe())}),b(K,Be)}),b(G,D)};V(Ce,G=>{var D;n(I)&&((D=n(E))!=null&&D.length)?G(pe):G(Qe,!1)},ge)}};V(me,Ce=>{n(I)&&s()?Ce(ee):Ce(_e,!1)})}S(we),S(re),O(Ce=>{var ge;J=oe(re,1,"subtitles-caption s-d",null,J,Ce),Ke(re,`--subtitles-caption-margin: ${(ge=n(z))!=null?ge:""}%`)},[()=>({mobile:u()})]),b(Z,re)};V(X,Z=>{var re;(e.captions.length||(re=n(E))!=null&&re.length)&&Z(ae)})}S(F),O(Z=>U=oe(F,1,"subtitles-container s-d",null,U,Z),[()=>({shifted:e.shifted,"preview-track-active":d(),auto:n(I)&&!n(T)&&!s()})]),b(t,F),H(),o()}var zb=require("@vkontakte/videoplayer-core/es2018");var Vw=L('<div class="text s-v"> </div>'),Rw=L('<div><div class="icon_wrapper s-v"><!></div> <!></div>'),Nw={hash:"s-v",code:".wrapper.s-v{align-items:center;background-position:50%;background-repeat:no-repeat;background-size:contain;display:flex;flex-direction:column;font-size:16px;height:100%;justify-content:center}.wrapper.bgCover.s-v{background-size:cover}.icon_wrapper.s-v{align-items:center;display:flex;flex-direction:column;width:400px}.text.s-v{margin-top:20px}"};function kc(t,e){B(e,!0),Q(t,Nw);let i=h(e,"chromecastDeviceName",3,"chromecastDeviceName"),o=Vt();var r=Rw();let a;r.__contextmenu=function(...m){var p;(p=e.onContextMenu)==null||p.apply(this,m)},r.__click=function(...m){var p;(p=e.onClick)==null||p.apply(this,m)},r.__dblclick=function(...m){var p;(p=e.onDblClick)==null||p.apply(this,m)};var l=C(r),d=C(l);mc(d,{get size(){return"48"},get iconState(){return zb.ChromecastState.CONNECTED}}),S(l);var s=k(l,2);{var u=m=>{var p=Vw(),v=C(p);S(p),O(()=>{var _;return ve(v,`Видео воспроизводится на ${(_=i())!=null?_:""}`)}),b(m,p)};V(s,m=>{i()&&m(u)})}S(r),O(m=>{a=oe(r,1,"wrapper s-v",null,a,m),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})]),b(t,r),H()}Ye(["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 Sv(t){Je(t,{width:"200",height:"200",viewBox:"460 190 130 90",testId:"error-icon",children:(e,i)=>{var o=Dw();b(e,o)},$$slots:{default:!0}})}var Ow=L('<div class="container s-5"><!></div>'),Bw={hash:"s-5",code:".container.s-5{align-items:center;background:#000;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}"};function sl(t){Q(t,Bw);var e=Ow(),i=C(e);Sv(i,{}),S(e),b(t,e)}var Hw=L('<div class="playButton s-b" tabindex="0" role="button"><div class="playButtonBackground s-b"></div> <!></div>'),Fw=L('<div data-testid="unstarted-thumb"><!></div>'),Uw={hash:"s-b",code:".container.s-b{background-position:50%;background-repeat:no-repeat;background-size:contain;bottom:0;cursor:pointer;left:0;position:absolute;right:0;top:0;transition:opacity .2s,visibility .2s;will-change:opacity}.container.hidden.s-b{opacity:0;visibility:hidden}.container.bgCover.s-b{background-size:cover}.playButton.s-b{align-items:center;display:flex;height:var(--big-play-size);justify-content:center;margin:auto;width:var(--big-play-size)}.playButton.s-b,.playButtonBackground.s-b{bottom:0;left:0;position:absolute;right:0;top:0}.playButtonBackground.s-b{background-color:var(--big-play-bg-color);border-radius:var(--big-play-radius);transition:background .2s,transform .2s;transition-timing-function:ease-out;will-change:background,transform}.container.s-b:hover .playButtonBackground:where(.s-b){background-color:var(--big-play-hover-bg-color);transform:scale(1.15)}.playButton.s-b svg{position:relative}"};function al(t,e){B(e,!0),Q(t,Uw);let i=h(e,"iconVisible",3,!0),o=be(),r=Vt(),a=o.ui.startedByKeyboard$,l=Y("tooltip_play"),d=_=>{var $;let y=_.code;["Enter","Space"].includes(y)&&(_.stopPropagation(),_.preventDefault(),a.set(!0),($=e.startVideo)==null||$.call(e))},s=_=>{var y,$;_.stopPropagation(),(y=e.startVideo)==null||y.call(e),($=e.onClick)==null||$.call(e,_)};var u=Fw();let m;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 $=k(C(y),2);Mn($,{get size(){return"48"}}),S(y),O(()=>Ve(y,"aria-label",l)),b(_,y)};V(p,_=>{i()&&_(v)})}return S(u),O(_=>{m=oe(u,1,"container s-b",null,m,_),Ke(u,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:r.features.previewNoEmptySpace})]),b(t,u),H({handlePressKey:d,handleClick:s})}Ye(["click","contextmenu","keydown"]);var zw=L('<span class="text s-y"> </span>'),Ww=(t,e)=>{var i;return(i=e.onTitleClicked)==null?void 0:i.call(e)},Kw=L('<a target="_blank" class="link s-y"><!></a>'),qw=(t,e)=>e.onTitleClicked(),Qw=L("<button><!></button>"),Gw=L('<div data-testid="video_title"><!></div>'),Yw={hash:"s-y",code:".title.s-y{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-y,.title.s-y{color:var(--white)}.link.s-y{pointer-events:auto;text-decoration:none}.link.s-y:hover{text-decoration:underline}.text.s-y{pointer-events:auto}.size-sm.s-y{font-size:14px;font-weight:500;line-height:18px}.hidden.s-y{opacity:0;transform:translateY(calc(var(--controls-gradient-height)*-1));visibility:hidden}"};function Cv(t,e){B(e,!0),Q(t,Yw);let i=_=>{var y=zw(),$=C(y,!0);S(y),Ze(y,x=>l(x),()=>l()),O(()=>ve($,o())),pt("mouseenter",y,function(...x){var I;(I=e.onMouseEnter)==null||I.apply(this,x)}),pt("mouseleave",y,function(...x){var I;(I=e.onMouseLeave)==null||I.apply(this,x)}),b(_,y)},o=h(e,"title",3,""),r=h(e,"isHidden",3,!1),a=h(e,"size",3,"md"),l=h(e,"ref",15),d=q(void 0);Mt(()=>{var y;requestAnimationFrame(()=>{var $;($=e.onVisibilityChanged)==null||$.call(e,!0)});function _($){var x;$.propertyName==="transform"&&((x=e.onVisibilityChanged)==null||x.call(e,!r()))}return(y=n(d))==null||y.addEventListener("transitionend",_),()=>{var $;return($=n(d))==null?void 0:$.removeEventListener("transitionend",_)}});var s=Gw();let u;var m=C(s);{var p=_=>{var y=Kw();y.__click=[Ww,e];var $=C(y);i($),S(y),O(()=>Ve(y,"href",e.titleLinkHref)),b(_,y)},v=(_,y)=>{{var $=I=>{var T=Qw();T.__click=[qw,e];var R=C(T);i(R),S(T),b(I,T)},x=I=>{i(I)};V(_,I=>{e.onTitleClicked?I($):I(x,!1)},y)}};V(m,_=>{e.titleLinkHref?_(p):_(v,!1)})}S(s),Ze(s,_=>N(d,_),()=>n(d)),O(_=>u=oe(s,1,`title size-${a()}`,"s-y",u,_),[()=>({hidden:r()})]),b(t,s),H()}Ye(["click"]);var Wb=require("@vkontakte/videoplayer-shared/es2018");var jw=L('<div class="timer__cell cell s-1f"><span class="cell__value s-1f"> </span> <span class="cell__unit s-1f"> </span></div> <span class="timer__points s-1f"> </span>',1),Xw=L('<div class="timer__cell cell s-1f"><span class="cell__value s-1f"> </span> <span class="cell__unit s-1f"> </span></div> <span class="timer__points s-1f"> </span>',1),Zw=L('<div class="timer__cell cell s-1f"><span class="cell__value s-1f"> </span> <span class="cell__unit s-1f"> </span></div> <span class="timer__points s-1f"> </span>',1),Jw=L('<div class="timer__cell cell s-1f"><span class="cell__value s-1f"> </span> <span class="cell__unit s-1f"> </span></div>'),eS=L("<div><!> <!> <!> <!></div>"),tS={hash:"s-1f",code:".timer__container.s-1f{align-items:flex-start;display:flex;justify-content:center}.cell.s-1f{align-items:center;display:flex;flex-direction:column}.cell__value.s-1f{font-size:48px;font-weight:600;line-height:1.2}.small.s-1f .cell__value:where(.s-1f){font-size:24px}.cell__unit.s-1f{font-size:14px;font-weight:400;line-height:1.2}.small.s-1f .cell__unit:where(.s-1f){font-size:12px}.timer__points.s-1f{display:inline-block;font-size:42px;font-weight:600;line-height:1.2;margin:0 8px}.small.s-1f .timer__points:where(.s-1f){font-size:20px}"};function Tv(t,e){B(e,!0),Q(t,tS);let i=q(""),o=q(""),r=q(""),a=q(""),l,d=32,s=d/2,u=F=>String(F).padStart(2,"0"),m=F=>Math.max(F.length,1),p=F=>`${(e.isSmallSize?s:d)*m(F)}px`,v=F=>{let U=Math.floor(F/86400);U&&(F-=U*86400,N(i,u(U),!0));let X=Math.floor(F/3600);N(o,u(X),!0);let ae=Math.floor(F/60)%60;N(r,u(ae),!0);let Z=F%60;N(a,u(Z),!0)},_=()=>{let F=Math.floor(Date.now()/1e3),U=e.startTime-F;v(U),U>=1?l=requestAnimationFrame(_):e.onTimerOver()};Mt(()=>{l=requestAnimationFrame(_)}),pn(()=>{cancelAnimationFrame(l)});var y=eS();let $;var x=C(y);{var I=F=>{var U=jw(),X=ue(U);let ae;var Z=C(X),re=C(Z,!0);S(Z);var J=k(Z,2),we=C(J,!0);S(J),S(X);var me=k(X,2),ee=C(me,!0);S(me),O((_e,Ce,ge)=>{ae=Ke(X,"",ae,{width:_e}),ve(re,n(i)),ve(we,Ce),ve(ee,ge)},[()=>p(n(i)),()=>Y("waiting_live_day_value"),()=>Y("waiting_live_colon")]),b(F,U)};V(x,F=>{n(i)&&F(I)})}var T=k(x,2);{var R=F=>{var U=Xw(),X=ue(U);let ae;var Z=C(X),re=C(Z,!0);S(Z);var J=k(Z,2),we=C(J,!0);S(J),S(X);var me=k(X,2),ee=C(me,!0);S(me),O((_e,Ce,ge)=>{ae=Ke(X,"",ae,{width:_e}),ve(re,n(o)),ve(we,Ce),ve(ee,ge)},[()=>p(n(o)),()=>Y("waiting_live_hour_value"),()=>Y("waiting_live_colon")]),b(F,U)};V(T,F=>{n(o)&&F(R)})}var A=k(T,2);{var P=F=>{var U=Zw(),X=ue(U);let ae;var Z=C(X),re=C(Z,!0);S(Z);var J=k(Z,2),we=C(J,!0);S(J),S(X);var me=k(X,2),ee=C(me,!0);S(me),O((_e,Ce,ge)=>{ae=Ke(X,"",ae,{width:_e}),ve(re,n(r)),ve(we,Ce),ve(ee,ge)},[()=>p(n(r)),()=>Y("waiting_live_minute_value"),()=>Y("waiting_live_colon")]),b(F,U)};V(A,F=>{n(r)&&F(P)})}var E=k(A,2);{var z=F=>{var U=Jw();let X;var ae=C(U),Z=C(ae,!0);S(ae);var re=k(ae,2),J=C(re,!0);S(re),S(U),O((we,me)=>{X=Ke(U,"",X,{width:we}),ve(Z,n(a)),ve(J,me)},[()=>p(n(a)),()=>Y("waiting_live_second_value")]),b(F,U)};V(E,F=>{n(a)&&F(z)})}S(y),O(F=>$=oe(y,1,"timer__container s-1f",null,$,F),[()=>({small:e.isSmallSize})]),b(t,y),H()}var iS=L('<div class="waiting s-s"><span> </span></div>'),oS=L('<div class="upcoming-timer timer s-s"><span> </span> <!></div>'),nS=L('<div class="waiting-container s-s"><!></div>'),rS={hash:"s-s",code:'.waiting-container.s-s{background-color:var(--black);background-position:50%;background-repeat:no-repeat;background-size:cover;white-space:nowrap}.waiting-container.s-s,.waiting-container.s-s:before{height:100%;left:0;position:absolute;top:0;width:100%}.waiting-container.s-s:before{backdrop-filter:blur(15px);background-color:rgba(0,0,0,.56);content:"";z-index:1}.waiting.s-s{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-s{font-size:20px;font-weight:600;line-height:1.2}.upcoming-timer.s-s{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:2}.timer.s-s{align-items:center;display:flex;flex-direction:column;justify-content:center}.timer__title.s-s{display:inline-block;font-size:20px;font-weight:600;line-height:1.2;margin-bottom:12px;vertical-align:middle}.small.s-s{font-size:15px}.medium.s-s{font-size:17px}'};function Ac(t,e){B(e,!0),Q(t,rS);let i=h(e,"startTime",3,0),o=f(()=>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=f(()=>{var x,I;return((x=n(d))!=null?x:1/0)<=509||((I=n(s))!=null?I:1/0)<=320}),m=f(()=>{var x,I;return!n(u)&&(((x=n(d))!=null?x:1/0)<=699||((I=n(s))!=null?I:1/0)<=599)}),p=e.onUpcomingLiveViewStateChanged?(0,Wb.throttleFn)(()=>{cancelAnimationFrame(l),l=requestAnimationFrame(()=>{let x={type:n(o)?"expired":"default",size:n(u)?"s":n(m)?"m":"l"},I=n(o)?n(r):n(a);e.onUpcomingLiveViewStateChanged(x,I)})},300):void 0;De(()=>{n(s),n(d),n(o),p==null||p()}),pn(()=>{if(cancelAnimationFrame(l),p==null||p.cancel(),e.onUpcomingLiveViewStateChanged){let x={type:n(o)?"expired":"default",size:n(u)?"s":n(m)?"m":"l"};e.onUpcomingLiveViewStateChanged(x)}});var v=nS();v.__contextmenu=function(...x){var I;(I=e.onContextMenu)==null||I.apply(this,x)},v.__click=function(...x){var I;(I=e.onClick)==null||I.apply(this,x)};var _=C(v);{var y=x=>{var I=iS(),T=C(I);let R;var A=C(T,!0);S(T),S(I),Ze(I,P=>N(r,P),()=>n(r)),O((P,E)=>{R=oe(T,1,"waiting__title s-s",null,R,P),ve(A,E)},[()=>({medium:n(m),small:n(u)}),()=>Y("waiting_live_upcoming_title")]),b(x,I)},$=x=>{var I=oS(),T=C(I);let R;var A=C(T,!0);S(T);var P=k(T,2);let E=f(()=>n(u)||n(m)),z=f(()=>i()||0);Tv(P,{get isSmallSize(){return n(E)},get startTime(){return n(z)},onTimerOver:()=>N(o,!0)}),S(I),Ze(I,F=>N(a,F),()=>n(a)),O((F,U)=>{R=oe(T,1,"timer__title s-s",null,R,F),ve(A,U)},[()=>({medium:n(m),small:n(u)}),()=>Y("waiting_live_timer_title")]),b(x,I)};V(_,x=>{n(o)?x(y):x($,!1)})}S(v),O(()=>Ke(v,`background-image: url(${e.thumbUrl})`)),An(v,"clientWidth",x=>N(d,x)),An(v,"clientHeight",x=>N(s,x)),b(t,v),H()}Ye(["contextmenu","click"]);var sS=L('<div class="waiting-container s-x"><div class="waiting-caption s-x"><!> <p class="waiting-title s-x"> </p></div></div>'),aS={hash:"s-x",code:'.waiting-container.s-x{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-x,.waiting-container.s-x:before{height:100%;left:0;position:absolute;top:0;width:100%}.waiting-container.s-x:before{backdrop-filter:blur(10px);background-color:rgba(0,0,0,.4);content:""}.waiting-caption.s-x{align-items:center;display:flex;flex-direction:column;position:relative}.waiting-title.s-x{font-size:20px;font-weight:400;line-height:1.2;margin:0;padding:20px;text-align:center}'};function ll(t,e){B(e,!0),Q(t,aS);let i=h(e,"thumbUrl",3,""),o={recover:Y("waiting_live_recover_title"),record:Y("waiting_record_title")},r=f(()=>o[e.kind]||"");var a=sS();a.__contextmenu=function(...m){var p;(p=e.onContextMenu)==null||p.apply(this,m)},a.__click=function(...m){var p;(p=e.onClick)==null||p.apply(this,m)};var l=C(a),d=C(l);Ya(d,{style:"position: static; transform: translate(0, 0)"});var s=k(d,2),u=C(s,!0);S(s),S(l),S(a),O(()=>{Ke(a,`background-image: url('${i()}')`),ve(u,n(r))}),b(t,a),H()}Ye(["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 Iv(t){Je(t,{width:"16",height:"16",testId:"check-mark-icon",children:(e,i)=>{var o=lS();b(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){Q(t,cS);var e=dS(),i=C(e);Iv(i,{}),S(e),b(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-1u"> </p>'),vS=L('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),gS={hash:"s-1u",code:".menu-item-value.s-1u{align-items:end;display:flex;flex-direction:column;min-width:0}.menu-item-value[data-selected=false].s-1u{--select-icon-width:16px;--icon-padding:12px;margin-left:calc(var(--icon-padding) + var(--select-icon-width))}.label.s-1u,.sublabel.s-1u{max-width:100%;overflow:hidden;text-overflow:ellipsis}.sublabel.s-1u{opacity:.5}"};function Ev(t,e){B(e,!0),Q(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=k(a,2);let s;var u=C(d);{var m=y=>{var $=Me(),x=ue($);Di(x,()=>e.item.valueComponent,(I,T)=>{T(I,ts(()=>{var R;return(R=e.item.valueComponentParams)!=null?R:{}}))}),b(y,$)},p=y=>{var $=fS();let x;var I=C($,!0);S($),O(T=>{var R;x=oe($,1,"label s-1u",null,x,T),ve(I,(R=e.item.label)!=null?R:e.item.value)},[()=>({mobile:i()})]),b(y,$)};V(u,y=>{e.item.valueComponent?y(m):y(p,!1)})}var v=k(u,2);{var _=y=>{var $=mS(),x=C($,!0);S($),O(()=>ve(x,e.item.sublabel)),b(y,$)};V(v,y=>{e.item.sublabel&&y(_)})}S(d),S(o),O((y,$,x)=>{var I;r=oe(o,1,"item",null,r,y),Ve(o,"data-value",(I=e.item.dataValue)!=null?I:e.item.value),Ve(o,"aria-label",$),Ve(o,"data-testid",e.item.dataTestid),s=oe(d,1,"menu-item-value s-1u",null,s,x),Ve(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>{var y,$;return($=(y=e.item.ariaLabel)!=null?y:e.item.label)!=null?$:e.item.value.toString()},()=>({"submenu-value-mobile":i()})]),b(t,o),H()}Ye(["click","keydown"]);var hS=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function Pv(t,e){B(e,!0);let i=h(e,"isMobile",3,!1),o=h(e,"refMenuItems",15),r=f(()=>()=>e.openSubMenuList(e.item.children)),a=f(()=>$=>Ju($,n(r)));var l=hS();let d;l.__click=function(...$){var x;(x=n(r))==null||x.apply(this,$)},l.__keydown=function(...$){var x;(x=n(a))==null||x.apply(this,$)};var s=C(l);{var u=$=>{Lc($,{})};V(s,$=>{e.item.selected&&$(u)})}var m=k(s,2);let p;var v=C(m);{var _=$=>{var x=Me();let I=f(()=>e.item.valueComponent);var T=ue(x);Di(T,()=>n(I),(R,A)=>{A(R,ts(()=>{var P;return(P=e.item.valueComponentParams)!=null?P:{}}))}),b($,x)},y=$=>{var x=gs();O(()=>ve(x,e.item.label)),b($,x)};V(v,$=>{e.item.valueComponent?$(_):$(y,!1)})}S(m),S(l),Ze(l,$=>o(o()[e.item.id]=$,!0),()=>{var $;return($=o())==null?void 0:$[e.item.id]}),O(($,x)=>{var I;d=oe(l,1,"item",null,d,$),Ve(l,"aria-label",(I=e.item.ariaLabel)!=null?I:e.item.label),Ve(l,"data-testid",e.item.id),p=oe(m,1,"menu-item-value",null,p,x)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),b(t,l),H()}Ye(["click","keydown"]);var rs={"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)=>{ab(t,e.returnFromSubMenu,e.closeSettingsMenu)},$S=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},yS=(t,e)=>{oc(t)&&(Nr(t),e.returnFromSubMenu())},xS=L('<div><ul role="menu"><li role="menuitem" tabindex="0" data-testid="return-to-settings-menu"><!> <p class="title s-1m"> </p></li> <!></ul></div>'),wS={hash:"s-1m",code:".sub-menu.s-1m{--item-padding-vertical-mobile:16px;--item-padding-vertical:7px;--item-label-line-height:18px;--edge-item-padding-vertical-mobile:calc(6px + var(--item-padding-vertical-mobile));--edge-item-padding-vertical:calc(8px + var(--item-padding-vertical))}.sub-menu.s-1m .item.mobile{font-size:14px;line-height:var(--item-label-line-height);padding:var(--item-padding-vertical-mobile) 17px}.sub-menu.s-1m{padding-top:calc(var(--edge-item-padding-vertical) + var(--item-padding-vertical) + var(--item-label-line-height))}.sub-menu.mobile.s-1m{padding-top:calc(var(--edge-item-padding-vertical-mobile) + var(--item-padding-vertical-mobile) + var(--item-label-line-height) + 1px)}.sub-menu.s-1m .items:where(.s-1m) .item.header:where(.s-1m){border-bottom:var(--divider-border);display:flex;justify-content:space-between;left:0;min-width:max-content;position:absolute;right:0;top:0}.header.s-1m .title:where(.s-1m){margin-left:8px}.sub-menu.s-1m .item{padding:var(--item-padding-vertical) 12px;padding-right:22px}.items.s-1m .item:first-child:not(.mobile){padding-top:var(--edge-item-padding-vertical)}.items.s-1m .item:last-child:not(.mobile){padding-bottom:var(--edge-item-padding-vertical)}.items.s-1m .item.mobile:first-child{padding-top:var(--edge-item-padding-vertical-mobile)}.items.s-1m .item.mobile:last-child{padding-bottom:var(--edge-item-padding-vertical-mobile)}.sub-menu.s-1m .item.bottomBordered{border-bottom:var(--divider-border)}.sub-menu.s-1m .item .sublabel{font-size:12px;line-height:14px}.item.s-1m:not(.mobile) p:where(.s-1m),.sub-menu.s-1m .item:not(.mobile) .label{font-size:13px;line-height:var(--item-label-line-height)}"};function Av(t,e){B(e,!0),Q(t,wS);let[i,o]=Ne(),r=()=>w(p,"$isFullscreen",i),a=()=>w(v,"$playerSize",i),l=h(e,"isMobile",3,!1),d=h(e,"playerControlsHeight",3,0),s=h(e,"ariaLabelReturnFromSubMenu",19,()=>Y("aria_label_submenu_back")),u=h(e,"listRef",15);Mt(()=>{let Z=e.items.findIndex(re=>re.selected);u().children[Z+1].focus()});let m=be(),p=m.ui.isFullscreen,v=m.ui.playerSize,_=q(void 0),y=q(0),$=q(0),x=f(()=>l()&&r()?`max-height: ${Math.round(a().height*.6)}px`:l()?"":`max-height: ${a().height-32-n($)-d()}px; overflow: auto;`),I=f(()=>Math.max(e.minWidth,n(y)));var T=xS();let R;var A=C(T);let P;A.__keydown=[bS,e];var E=C(A);let z;E.__click=[$S,e],E.__keydown=[yS,e];var F=C(E);Rr(F,{direction:"left"});var U=k(F,2),X=C(U,!0);S(U),S(E),Ze(E,Z=>N(_,Z),()=>n(_));var ae=k(E,2);_i(ae,17,()=>e.items,Od,(Z,re)=>{var J=Me(),we=ue(J);{var me=_e=>{Ev(_e,{get item(){return n(re)},get isMobile(){return l()}})},ee=(_e,Ce)=>{{var ge=pe=>{Pv(pe,{get isMobile(){return l()},get item(){return n(re)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};V(_e,pe=>{n(re).type==="OPEN_SUB_MENU"&&pe(ge)},Ce)}};V(we,_e=>{n(re).type==="SELECT_VALUE"?_e(me):_e(ee,!1)})}b(Z,J)}),S(A),Ze(A,Z=>u(Z),()=>u()),S(T),O((Z,re,J)=>{R=oe(T,1,"sub-menu menu s-1m",null,R,Z),Ve(T,"data-testid",`${e.id}-sub-menu`),Ke(T,`min-width: ${n(I)}px`),P=oe(A,1,"items s-1m",null,P,re),Ke(A,n(x)),z=oe(E,1,"item header back s-1m",null,z,J),Ve(E,"aria-label",s()),ve(X,e.title)},[()=>({desktop:!l(),mobile:l()}),()=>({mobile:l()}),()=>({mobile:l()})]),An(E,"clientWidth",Z=>N(y,Z)),An(E,"clientHeight",Z=>N($,Z)),b(t,T),H(),o()}Ye(["keydown","click"]);var qb=require("@vkontakte/videoplayer-shared/es2018");var SS=(t,e)=>Ju(t,e()),CS=(t,e)=>{t.stopPropagation(),e()()},TS=L('<div class="value s-1n"> </div>'),IS=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),ES={hash:"s-1n",code:".value.s-1n{opacity:.7;overflow:hidden;position:relative;text-overflow:ellipsis}"};function Lv(t,e){B(e,!0),Q(t,ES);let i=h(e,"isMobile",3,!1),o=h(e,"onClick",3,qb.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),m=C(u);{var p=T=>{tl(T,{get icon(){return e.icon}})},v=T=>{var R=Me();let A=f(()=>e.icon);var P=ue(R);Di(P,()=>n(A),(E,z)=>{z(E,ts(a))}),b(T,R)};V(m,T=>{typeof e.icon=="string"?T(p):T(v,!1)})}S(u);var _=k(u,2),y=C(_,!0);S(_);var $=k(_,2);{var x=T=>{var R=Me();let A=f(r);var P=ue(R);Di(P,()=>n(A),(E,z)=>{z(E,{})}),b(T,R)},I=T=>{var R=TS(),A=C(R,!0);S(R),O(()=>ve(A,e.value)),b(T,R)};V($,T=>{r()?T(x):T(I,!1)})}S(d),Ze(d,T=>l(T),()=>l()),O(T=>{s=oe(d,1,"item",null,s,T),Ve(d,"aria-label",e.ariaLabel),Ve(d,"data-testid",e.id),ve(y,e.label)},[()=>({mobile:i()})]),b(t,d),H()}Ye(["click","keydown"]);var Mv=require("@vkontakte/videoplayer-shared/es2018");var PS=(t,e)=>{Ql(t,()=>e())},kS=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-1o"> </div></li>'),MS={hash:"s-1o",code:".label.s-1o{overflow:hidden;text-overflow:ellipsis}"};function Vv(t,e){B(e,!0),Q(t,MS);let i=h(e,"isMobile",3,!1),o=h(e,"onClick",3,Mv.noop),r=h(e,"closeSettings",3,Mv.noop),a=q(!1),l=()=>{N(a,!0)},d=x=>{x==null||x.stopPropagation(),o()(),r()()};var s=LS();let u;s.__click=d,s.__keydown=[PS,d];var m=C(s),p=C(m);{var v=x=>{var I=Me(),T=ue(I);{var R=P=>{var E=kS();b(P,E)},A=P=>{var E=AS();O(()=>Ve(E,"src",e.icon)),pt("error",E,l),Ra(E),b(P,E)};V(T,P=>{n(a)?P(R):P(A,!1)})}b(x,I)},_=x=>{var I=Me();let T=f(()=>e.icon);var R=ue(I);Di(R,()=>n(T),(A,P)=>{P(A,{})}),b(x,I)};V(p,x=>{typeof e.icon=="string"?x(v):x(_,!1)})}S(m);var y=k(m,2),$=C(y,!0);S(y),S(s),O(x=>{var I;u=oe(s,1,"item",null,u,x),Ve(s,"aria-label",(I=e.ariaLabel)!=null?I:e.label),Ve(s,"data-testid",e.id),ve($,e.label)},[()=>({mobile:i()})]),b(t,s),H()}Ye(["click","keydown"]);var Qb=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 Rv(t,e){Q(t,RS);let i=h(e,"enabled",3,!1);var o=VS(),r=C(o);let a;si(2),S(o),O(l=>a=oe(r,1,"toggle s-1r",null,a,l),[()=>({on:i()})]),b(t,o)}var NS=(t,e,i)=>{lb(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 Nv(t,e){B(e,!0);let i=h(e,"isMobile",3,!1),o=h(e,"onClick",3,Qb.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);Xa(u,{get content(){return a()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return l()},children:(m,p)=>{var v=OS();let _;var y=C(v),$=C(y);{var x=P=>{tl(P,{get icon(){return e.icon}})},I=P=>{var E=Me();let z=f(()=>e.icon);var F=ue(E);Di(F,()=>n(z),(U,X)=>{X(U,{})}),b(P,E)};V($,P=>{typeof e.icon=="string"?P(x):P(I,!1)})}S(y);var T=k(y,2),R=C(T,!0);S(T);var A=k(T,2);Rv(A,{get enabled(){return r()}}),S(v),O(P=>{_=oe(v,1,"switch-wrapper",null,_,P),ve(R,e.label)},[()=>({mobile:i()})]),b(m,v)},$$slots:{default:!0}}),S(d),O(m=>{var p;s=oe(d,1,"item switch-item",null,s,m),Ve(d,"aria-label",(p=e.ariaLabel)!=null?p:e.label),Ve(d,"data-testid",e.id)},[()=>({mobile:i()})]),b(t,d),H()}Ye(["click","keydown"]);var Vc=require("@vkontakte/videoplayer-shared/es2018");var Gb=()=>{let t=q(ri([])),e=f(()=>(n(t).length?n(t).at(-1):null)||null);return{get current(){return n(e)},pushSubMenu:i=>{n(t).push(i)},popSubMenu:()=>{N(t,n(t).slice(0,-1),!0)},popAllSubMenus:()=>{N(t,[],!0)}}};var Yb=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 dl(t,e){B(e,!0),Q(t,US);let i=h(e,"isSubCase",3,!1),o=f(()=>e.quality?(0,Yb.getVideoQualityLabel)(e.quality):""),r=f(()=>rp(e.quality));var a=FS(),l=C(a);let d;var s=C(l,!0);S(l);var u=k(l,2);{var m=p=>{var v=HS();let _=f(()=>n(r));var y=C(v);Di(y,()=>n(_),($,x)=>{x($,{})}),S(v),O(()=>Ve(v,"data-testid",`${n(o)}-icon`)),b(p,v)};V(u,p=>{n(r)&&!e.isMobile&&p(m)})}S(a),O(p=>{d=oe(l,1,"s-1q",null,d,p),ve(s,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),b(t,a),H()}var Jb=require("@vkontakte/videoplayer-shared/es2018");var Dv=require("@vkontakte/videoplayer-core/es2018");var jb=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},Xb=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=jb({quality:t,availableQualities:e});return i?t===Dv.VideoQuality.INVARIANT?Y("auto_quality_invariant"):Y("auto_quality",{actual:o}):o},Zb=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===Dv.VideoQuality.INVARIANT?i:`${i}${jb({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),Q(t,WS);let[i,o]=Ne(),r=()=>w(s,"$currentQuality$",i),a=()=>w(u,"$availableQualities$",i),l=()=>w(m,"$isMobile$",i),d=be(),s=d.state.currentQuality$,u=d.state.availableQualities$,m=d.ui.isMobile,p=" · ",v=f(()=>e.prefix+(e.selected&&r()!==Jb.VideoQuality.INVARIANT?p:"")),_=f(()=>Zb({prefix:n(v),quality:r(),availableQualities:a(),onlyPrefix:!e.selected}));var y=zS(),$=C(y);let x=f(()=>e.selected?r():void 0);dl($,{get quality(){return n(x)},get label(){return n(_)},get isMobile(){return l()},isSubCase:!0}),S(y),b(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},Ov=(t,e={})=>{var d,s,u,m,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 $=y[0],x=((d=y.groups)==null?void 0:d.keyhtml)||((s=y.groups)==null?void 0:s.keyi18n)||((u=y.groups)==null?void 0:u.keyhtmlself)||((m=y.groups)==null?void 0:m.keyi18nself)||"",{index:I}=y;if(!i[x]){a.push(t.slice(l,I)),l=I+$.length;continue}let T=(p=y.groups)!=null&&p.childrenhtml?Ov(y.groups.childrenhtml,i):"",R=(v=y.groups)!=null&&v.childrenhtml?$.replace(new RegExp((_=y.groups)==null?void 0:_.childrenhtml),()=>T||""):$;a.push(t.slice(l,I),R),l=I+$.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=Ov(i());ho();var r=Me(),a=ue(r);{var l=d=>{var s=Me(),u=ue(s);Bd(u,()=>o),b(d,s)};V(a,d=>{o&&d(l)})}b(t,r),H()}var QS=L('<p class="quality-applies sublabel s-1s"><!></p>'),GS={hash:"s-1s",code:".quality-applies.s-1s{color:hsla(0,0%,100%,.5);display:flex;justify-content:end;padding:3px 0}.quality-applies span{color:#70c1ff}"};function Bv(t,e){B(e,!1),Q(t,GS),ho();var i=QS(),o=C(i);let r=Tn(()=>Y("quality_applience",{action:`<span>${Y("quality_applience_action")}</span>`}));Mc(o,{get message(){return n(r)}}),S(i),b(t,i),H()}var t$=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"quality-other-settings",type:"OPEN_SUB_MENU",label:Y("other_quality"),selected:o,valueComponent:rd,valueComponentParams:{prefix:Y("other_quality"),selected:o},children:"quality-other-settings"}},Hv=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"quality-auto",type:"SELECT_VALUE",value:"auto",label:Y("auto_quality_limit"),valueComponent:e?rd:void 0,valueComponentParams:{prefix:Y("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),i$=()=>({id:"quality-appliance-settings",type:"OPEN_SUB_MENU",valueComponent:Bv,bottomBordered:!0,children:"quality-appliance"}),Fv=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"quality-high",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:Y("high_quality"),valueComponent:t?rd:void 0,valueComponentParams:{prefix:Y("high_quality"),selected:i},sublabel:Y("high_quality_description")}),Uv=({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:Y("traffic_saving_quality"),valueComponent:t?rd:void 0,valueComponentParams:{prefix:Y("traffic_saving_quality"),selected:i},sublabel:Y("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 Y("audio_stream_display_language_label",{language:r,label:o});{let s=$p(t,d);return Y("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 Y("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 Y("audio_stream_display_language_index",{language:r,index:s})}}let a=$p(t,e);return Y("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:Hv,selected:e&&!o&&!r||!1}),a.push({handler:Uv,selected:o},{handler:Fv,selected:r}),{title:Y("submenu_quality"),id:"quality-settings",items:[i$(t),...a.map(({handler:l,selected:d})=>l({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),t$(t)]}},"quality-other-settings":({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"quality-other-settings",title:Y("submenu_quality"),closeSettingsMenu:t,items:i.map(r=>({type:"SELECT_VALUE",value:r.value,valueComponent:dl,valueComponentParams:{quality:r.value,label:r.displayValue,isMobile:o,isSubCase:!0},selectItem:a=>e(a,"to-video"),selected:r.selected,label:r.displayValue}))}),"quality-appliance":t=>{var i,o,r;let{closeSettingsMenu:e}=t;return{id:"quality-appliance",title:Y("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:Hv,selected:((i=Uu())==null?void 0:i.type)==="auto_quality"},{handler:Uv,selected:((o=Uu())==null?void 0:o.type)==="traffic_saving"},{handler:Fv,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:Y("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:Y("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:Y("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i.value,selectItem:()=>e(i),selected:i.selected,label:i.displayValue,dataTestid:i.value===Rn?"sub_off":void 0}))})},o$=({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 zv(t){Je(t,{testId:"traffic-saving-icon",children:(e,i)=>{var o=jS();b(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 Wv(t){Je(t,{width:"18",height:"15",children:(e,i)=>{var o=XS();b(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 Kv(t){Je(t,{testId:"play-speed-icon",children:(e,i)=>{var o=ZS();b(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 qv(t){Je(t,{testId:"download-icon",children:(e,i)=>{var o=JS();b(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 Qv(t){Je(t,{testId:"report-icon",children:(e,i)=>{var o=eC();b(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();b(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 Gv(t){Je(t,{testId:"info-icon",children:(e,i)=>{var o=iC();b(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 Yv(t,e){B(e,!0),Q(t,nC);let[i,o]=Ne(),r=()=>w(u,"$currentQuality$",i),a=()=>w(m,"$availableQualities$",i),l=()=>w(p,"$isAutoQualityEnabled$",i),d=()=>w(v,"$isMobile$",i),s=be(),u=s.state.currentQuality$,m=s.state.availableQualities$,p=s.state.isAutoQualityEnabled$,v=s.ui.isMobile,_=f(()=>Xb({quality:r(),availableQualities:a(),isAutoQualityEnabled:l()}));var y=oC(),$=C(y);dl($,{get quality(){return r()},get label(){return n(_)},get isMobile(){return d()}}),S(y),b(t,y),H(),o()}var sC={"quality-settings":({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?Y("auto_quality_option"):e)||"";return{id:"quality-settings",type:"OPEN_SUB_MENU",ariaLabel:Y("aria_label_menu_quality",{actual:o}),icon:lc,label:Y("menu_quality"),value:e,valueComponent:Yv,weight:rs["quality-settings"],children:i?"quality-settings":"quality-other-settings"}},"traffic-saving-switch":({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"traffic-saving-switch",weight:rs["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:Y("aria_label_submenu_traffic_saving"),icon:zv,label:Y("menu_traffic_saving"),enabled:t,tooltipText:Y("traffic_saving_helper_text"),maxTooltipWidth:175}),"audio-tracks-settings":({currentAudioStream:t,availableAudioStreams:e})=>{let i=yp(t,e);return{id:"audio-tracks-settings",weight:rs["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:Y("aria_label_menu_audio_languages",{actual:i}),icon:Wv,label:Y("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:rs["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:Y("aria_label_menu_rate",{actual:i}),icon:Kv,label:Y("menu_playback_rate"),value:`${e}x`,children:"playback-rate"}},"subtitles-settings":({currentSubtitle:t})=>({id:"subtitles-settings",weight:rs["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:Y("aria_label_menu_subtitle",{actual:t.displayValue}),icon:fa,iconProps:{type:"outline"},label:Y("subtitles_caption"),value:t.displayValue,children:"subtitles"}),download:({onDownloadClick:t})=>({id:"download",weight:rs.download,type:"CLICK",onClick:t,label:Y("download_video_caption"),ariaLabel:Y("aria_label_menu_download"),icon:qv}),"show-support":({onReportProblemClick:t})=>({id:"show-support",weight:rs.report,type:"CLICK",onClick:t,label:Y("menu_report"),ariaLabel:`${Y("menu_report")}. ${Y("aria_label_new_tab_alert")}`,icon:Qv,isHiddenFor:["desktop"]}),"copy-data":({onCopyDataClick:t})=>({id:"copy-data",weight:rs["copy-data"],type:"CLICK",onClick:t,label:Y("menu_copy_debug"),ariaLabel:Y("menu_copy_debug"),icon:xp,isHiddenFor:["desktop"]}),"save-trace-info":({onSaveTraceDataClick:t})=>({id:"save-trace-info",weight:rs["save-trace-info"],type:"CLICK",onClick:t,label:Y("menu_save_debug"),ariaLabel:Y("menu_save_debug"),icon:xp,isHiddenFor:["desktop"]}),"debug-info":({toggleShowDebugInfo:t})=>({id:"debug-info",weight:rs["debug-info"],type:"CLICK",onClick:t,ariaLabel:Y("aria_label_menu_debug_overlay"),label:Y("menu_debug_overlay"),icon:Gv,isHiddenFor:["desktop"]})},n$=({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(Qa)};var lC=(t,e)=>{Zu(t,e)},dC=L('<div><div> </div> <div class="close s-13" data-testid="close-settings-menu"></div></div>'),cC=L('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),uC=L("<div><!> <!></div>"),pC={hash:"s-13",code:'.settings-menu-container.mobile.s-13{width:100%;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.settings-menu-container.s-13 ul{list-style-type:none;margin:0;padding:0}.settings-menu-container.s-13 .menu{background-color:var(--settings-bg);border-radius:var(--settings-radius);overflow:hidden;transition:opacity .2s,visibility .2s}.settings-menu-container.s-13 .menu .item:first-child:not(.mobile){border-top-left-radius:var(--settings-radius);border-top-right-radius:var(--settings-radius)}.settings-menu-container.s-13 .menu .item:last-child{border-bottom-left-radius:var(--settings-radius);border-bottom-right-radius:var(--settings-radius)}.settings-menu-container.s-13 .settings-menu .item:first-child:not(.mobile){padding-top:6px}.settings-menu-container.s-13 .settings-menu .item:last-child:not(.mobile){padding-bottom:6px}.settings-menu-container.s-13 .menu.desktop{bottom:0;max-width:100%;position:absolute;right:0}.settings-menu.s-13{line-height:40px}.settings-menu.desktop.s-13{min-width:300px}.settings-menu-container.s-13 .menu.mobile{background:var(--mobile-settings-bg);font-size:15px;line-height:50px;width:100%}.settings-menu-container.s-13 .menu.mobile.hidden{display:none}.settings-menu-container.s-13 .menu .item:not(.switch-item),.settings-menu-container.s-13 .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-13 .menu .item:hover{background-color:var(--settings-item-bg-hover)}.settings-menu-container.s-13 .menu .item.mobile:hover{background:var(--mobile-settings-bg)}.settings-menu.s-13 .item:not(.switch-item),.settings-menu.s-13 .switch-wrapper{padding:0 32px 0 18px}.settings-menu.s-13 .item.mobile:not(.switch-item),.settings-menu.s-13 .switch-wrapper.mobile{padding:0 14px}.settings-menu.s-13 .icon-wrapper{align-items:center;display:flex;height:24px;justify-content:center;margin-right:16px;min-width:24px;width:24px}.settings-menu.s-13 .label{flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis}.settings-menu.s-13 .item.header.mobile:where(.s-13){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-13 .items::-webkit-scrollbar{width:8px}.settings-menu-container.s-13 .items::-webkit-scrollbar-track{background-color:#3a3a3a;border-radius:4px;box-shadow:none}.settings-menu-container.s-13 .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-13 .items::-webkit-scrollbar-thumb:hover{background-color:#777}.settings-menu-container.s-13 .items.mobile{max-height:160px;overflow-x:hidden;overflow-y:auto;text-align:left}.close.s-13{height:12px;margin-right:-12px;padding:12px;position:relative;width:12px}.close.s-13:after,.close.s-13:before{background-color:var(--white);content:" ";height:12px;left:18px;position:absolute;width:2px}.close.s-13:before{transform:rotate(45deg)}.close.s-13:after{transform:rotate(-45deg)}'};function Rc(t,e){B(e,!0),Q(t,pC);let[i,o]=Ne(),r=()=>w(Be,"$settingsMenuVisible",i),a=()=>w(ot,"$settingsMenuOpenedByKeyboard",i),l=()=>w(He,"$debugPanelVisible",i),d=()=>w(ce,"$isMobile",i),s=()=>w(Te,"$playerSize",i),u=()=>w(xe,"$hasMpegSources$",i),m=()=>w(Re,"$mobileNotReportControlHidden$",i),p=()=>w(ge,"$autoQualityLimitingAvailable$",i),v=()=>w(K,"$availableSubtitlesList$",i),_=()=>w(Ae,"$isLiveWithPlaybackSpeed",i),y=()=>w(ee,"$availableAudioStreams$",i),$=()=>w(D,"$availablePlaybackRates$",i),x=()=>w(me,"$currentAudioStream$",i),I=()=>w(G,"$currentPlaybackRate$",i),T=()=>w(et,"$trafficSavingEnabled",i),R=()=>w(_e,"$currentQuality$",i),A=()=>w(pe,"$isAutoQualityEnabled$",i),P=()=>w(Ge,"$currentSubtitle$",i),E=()=>w(St,"$additionalSettingsMenuItems$",i),z=()=>w(Qe,"$isAutoQualityAvailable$",i),F=()=>w(Ce,"$availableQualities$",i),U=()=>w(Ee,"$highQualityEnabled",i),X=h(e,"ref",15,void 0),ae=h(e,"playerControlsHeight",3,0),Z=ri({}),re=ri({}),J=be(),we=Vt(),me=J.state.audioStream$,ee=J.state.availableAudioStreams$,_e=J.state.currentQuality$,Ce=J.state.availableQualities$,ge=J.state.autoQualityLimitingAvailable$,pe=J.state.isAutoQualityEnabled$,Qe=J.state.isAutoQualityAvailable$,G=J.state.currentPlaybackRate$,D=J.state.availablePlaybackRates$,Ge=J.state.currentSubtitle$,K=J.state.availableSubtitlesList$,se=J.state.canDownload,xe=J.state.hasMpegSources$,Be=J.ui.settingsMenu.visible$,ot=J.ui.settingsMenu.openedByBtnKeyboard$,ne=J.ui.settingsMenu.ref$,ce=J.ui.isMobile,Re=J.ui.mobileNotReportControlHidden$,Ae=J.state.canChangePlaybackSpeed$,et=J.state.trafficSavingEnabled$,Ee=J.state.highQualityEnabled$,Te=J.ui.playerSize,He=J.ui.debugPanelVisible,Et=J.state.isInteractiveTime$,St=J.ui.additionalSettingsMenuItems$,Ot=J.ui.t,lt=J.actions.internal.downloadVideo,Pt=J.actions.internal.closeSettingsMenu,Xt=J.actions.internal.openSettingsSubMenu,kt=J.actions.internal.closeSettingsSubMenu,Dt=q(!1),zt=q(void 0),j=Gb();De(()=>{!r()&&j.current&&(kt(re[j.current]),j.popAllSubMenus())}),De(()=>{r()||N(zt,void 0)}),De(()=>{!j.current&&n(zt)&&sb(Z,n(zt))}),De(()=>{X()&&ne.set(X())});async function Pe(_t){var W;j.pushSubMenu(_t),await mo(),Xt(_t,re[_t]);let Bt=(W=X())==null?void 0:W.firstElementChild;Bt&&mm(Bt)}function le(_t){var Bt;_t==null||_t.stopPropagation(),a()||(Bt=e.returnFocus)==null||Bt.call(e),Pt(),N(Dt,!1)}function $e(_t,Bt){J.actions.internal.setQuality(_t,{appliesTo:Bt,byUser:!0}),le()}function Le(_t){J.actions.internal.setAudioStream(_t),le()}function ct(_t,Bt){J.actions.internal.setTrafficSavingEnabled(_t,Bt),we.features.qualityDetailsSubMenuEnabled&&le()}function Ct(_t,Bt){J.actions.internal.setHighQualityEnabled(_t,Bt),le()}function fe(_t){J.actions.internal.setPlaybackRate(_t),le()}function Fe(_t){J.actions.internal.setSubtitle(_t),le()}function Ue(){lt()}function Tt(){(0,Vc.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),J.actions.internal.reportProblem(),J.actions.internal.pause()}function oi(){Kl(J.actions.internal.getDebugTextData())}let xt=()=>{let _t=J.actions.internal.getTraceTextData(),Bt=new Blob([..._t],{type:"application/json"}),W=window.URL.createObjectURL(Bt);Fa(W,"vk_player_trace_info","json")};function Gt(){He.set(!l())}function ai(){N(Dt,!0)}function Bi(){N(Dt,!1)}function Rt(){return d()?`max-height: ${Math.round(s().height*.6)}px`:`max-height: ${s().height-32-ae()}px; overflow: auto;`}let vo=f(()=>se&&u()&&!m()),ci=f(()=>we.features.trafficSaving&&!m()&&p()&&!we.features.qualityDetailsSubMenuEnabled),nt=f(()=>v().length>0&&!m()),Yt=f(()=>!!_()&&!m()),Hi=f(()=>we.features.audioLanguages&&y().length>=2&&!m()),bi=f(()=>!m());Mt(()=>Et.subscribe(_t=>{_t&&!d()&&!n(Dt)&&!a()&&le()}));let Zt=f(()=>{let _t=[n(bi)&&"quality-settings",n(Hi)&&"audio-tracks-settings",n(Yt)&&"playback-rate-settings",n(nt)&&"subtitles-settings",n(ci)&&"traffic-saving-switch",n(vo)&&"download",we.showSupport&&"show-support","copy-data",we.features.saveTraceInfoToFile&&"save-trace-info","debug-info"].filter(Bt=>!!Bt);return n$({items:_t,context:{qualityDetailsSubMenuEnabled:we.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:$(),currentAudioStream:x(),availableAudioStreams:y(),currentPlaybackRate:I(),selectPlaybackRate:fe,trafficSavingEnabled:T(),toggleTrafficSaving:ct,currentQuality:R()||Vc.VideoQuality.INVARIANT,isAutoQualityEnabled:A()||!1,currentSubtitle:P(),isMobile:d(),onDownloadClick:Ue,onCopyDataClick:oi,onReportProblemClick:Tt,onSaveTraceDataClick:xt,toggleShowDebugInfo:Gt},additionalSettingsMenuItems:E()})}),xi=f(()=>o$({subMenuId:j.current,context:{availablePlaybackRates:$(),selectPlaybackRate:fe,trafficSavingEnabled:T(),toggleTrafficSaving:ct,currentQuality:R()||Vc.VideoQuality.INVARIANT,isAutoQualityEnabled:A()||!1,isAutoQualityAvailable:z()||!1,availableQualities:F(),highQualityEnabled:U(),toggleHighQuality:Ct,availableAudioStreams:y(),availableSubtitlesList:v(),closeSettingsMenu:Pt,currentAudioStream:x(),isMobile:d(),selectAudioLanguage:Le,selectQuality:$e,selectSubtitle:Fe}}));var st=uC();let dt;var hi=C(st);{var Xo=_t=>{var Bt=cC();let W;Bt.__keydown=[lC,Pt];var Lt=C(Bt);{var ni=Kt=>{var We=dC();let Fi;var ji=C(We),Zo=C(ji,!0);S(ji);var er=k(ji,2);er.__click=le,S(We),O((ro,Ti)=>{Fi=oe(We,1,"item header s-13",null,Fi,ro),ve(Zo,Ti)},[()=>({mobile:d()}),()=>Ot("submenu_settings")]),b(Kt,We)};V(Lt,Kt=>{d()&&Kt(ni)})}var gt=k(Lt,2);let ei;_i(gt,21,()=>n(Zt),Kt=>Kt.id,(Kt,We)=>{var Fi=Me(),ji=ue(Fi);{var Zo=ro=>{Lv(ro,{get isMobile(){return d()},get id(){return n(We).id},get icon(){return n(We).icon},get iconProps(){return n(We).iconProps},get label(){return n(We).label},get ariaLabel(){return n(We).ariaLabel},get value(){return n(We).value},get valueComponent(){return n(We).valueComponent},onClick:()=>{Pe(n(We).children),N(zt,n(We).id,!0)},get ref(){return Z[n(We).id]},set ref(Ti){Z[n(We).id]=Ti}})},er=(ro,Ti)=>{{var bo=$o=>{let Ii=f(()=>`${n(We).id}-menu-item`);Vv($o,{get isMobile(){return d()},get id(){return n(Ii)},get onClick(){return n(We).onClick},get icon(){return n(We).icon},get label(){return n(We).label},get ariaLabel(){return n(We).ariaLabel},closeSettings:le})},No=($o,Ii)=>{{var yo=xo=>{let Jo=f(()=>`${n(We).id}-menu-item`);Nv(xo,{get isMobile(){return d()},get id(){return n(Jo)},get onClick(){return n(We).onClick},get icon(){return n(We).icon},get label(){return n(We).label},get ariaLabel(){return n(We).ariaLabel},get enabled(){return n(We).enabled},get tooltipText(){return n(We).tooltipText},get maxTooltipWidth(){return n(We).maxTooltipWidth}})};V($o,xo=>{n(We).type==="SWITCH"&&xo(yo)},Ii)}};V(ro,$o=>{n(We).type==="CLICK"?$o(bo):$o(No,!1)},Ti)}};V(ji,ro=>{n(We).type==="OPEN_SUB_MENU"?ro(Zo):ro(er,!1)})}b(Kt,Fi)}),S(gt),Ze(gt,Kt=>X(Kt),()=>X()),S(Bt),O((Kt,We,Fi)=>{W=oe(Bt,1,"settings-menu menu s-13",null,W,Kt),ei=oe(gt,1,"items",null,ei,We),Ke(gt,Fi)},[()=>({desktop:!d(),mobile:d(),hidden:!!j.current}),()=>({mobile:d()}),Rt]),pt("mouseenter",Bt,ai),pt("mouseleave",Bt,Bi),b(_t,Bt)};V(hi,_t=>{r()&&_t(Xo)})}var Ro=k(hi,2);_i(Ro,17,()=>n(xi),_t=>_t.id,(_t,Bt)=>{let W=f(()=>{var Lt;return(Lt=n(Bt).minWidth)!=null?Lt:137});Av(_t,{get isMobile(){return d()},get playerControlsHeight(){return ae()},get returnFromSubMenu(){return j.popSubMenu},get id(){return n(Bt).id},get title(){return n(Bt).title},get closeSettingsMenu(){return Pt},openSubMenuList:Pe,get items(){return n(Bt).items},get minWidth(){return n(W)},get refMenuItems(){return Z},get listRef(){return re[n(Bt).id]},set listRef(Lt){re[n(Bt).id]=Lt}})}),S(st),O(_t=>dt=oe(st,1,"settings-menu-container s-13",null,dt,_t),[()=>({mobile:d(),hidden:!r()})]),b(t,st),H(),o()}Ye(["keydown","click"]);var fC=L('<button class="btn s-1e"> </button>'),mC={hash:"s-1e",code:"button.btn.s-1e{background:hsla(0,0%,100%,.1);border-radius:8px;font-size:14px;line-height:18px;margin-top:12px;padding:6px 12px 7px}"};function jv(t,e){Q(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),O(()=>ve(o,e.label)),b(t,i)}Ye(["click"]);var vC=L('<div class="container s-10"><div class="notification s-10"><div><p class="description s-10"><!></p> <!></div> <!></div></div>'),gC={hash:"s-10",code:".container.s-10{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-10{background:var(--notification-bg);border-radius:var(--notification-radius);display:inline-flex;gap:10px;padding:9px 14px 10px 12px;pointer-events:auto}.description.s-10{font-size:13px;line-height:16px;margin:0;white-space:pre}"};function Nc(t,e){B(e,!0),Q(t,gC);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=Vt(),{ui:{t:r}}=be(),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),m=C(u);Mc(m,{get message(){return a}}),S(u);var p=k(u,2);{var v=y=>{let $=f(()=>r("slow_video_notification_button"));jv(y,{get label(){return n($)},get onClick(){return e.onSelectAutoQuality}})};V(p,y=>{o||y(v)})}S(s);var _=k(s,2);Hs(_,{get onClick(){return e.onClose}}),S(d),S(l),es(3,d,()=>$s,()=>({duration:i})),b(t,l),H()}var Dc=require("@vkontakte/videoplayer-shared/es2018"),cl="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",cl),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 m;let r=this.slots.get(e);if(!r)return;let a=await this.findSlotElement(r.rootElement,i,e),{controls:l,hiddenControls:d}=((m=this.store)==null?void 0:m.ui)||{},s=new MutationObserver(p=>p.forEach(()=>{let v=Us(a,this.shadowRootContainer);o.forEach(_=>{let y=l==null?void 0:l[_],$=y?ye(y):null,x=d==null?void 0:d[_];$&&(x==null||x.set((0,Dc.isIntersecting)($,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,Us(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,m;let i=this.slots.get(e);if(!i)return;let{rootElement:o,observer:r,observerForFindingSlotElement:a,subs:l,options:{controlsBehaviour:d,hideAllControls:s}}=i;o&&o.remove(),[r,a].forEach(p=>p==null?void 0:p.disconnect()),l==null||l.unsubscribe(),this.slots.delete(e),s&&((u=this.store)==null||u.ui.isControlsAvailable.set(!0)),(m=d==null?void 0:d.controlsToObserve)==null||m.forEach(p=>{var v,_;(_=(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-4"><!></div>'),_C={hash:"s-4",code:".container.s-4{align-items:center;animation-fill-mode:forwards;animation-name:s-4-videoPlayerStatusIconPopup;background-color:#00000073;border-radius:100%;display:flex;height:64px;justify-content:center;width:64px;will-change:opacity,scale}@keyframes s-4-videoPlayerStatusIconPopup{0%{opacity:0;scale:.6}10%{animation-timing-function:ease-in;opacity:1;scale:1}75%{opacity:1;scale:1}90%{animation-timing-function:ease-out;opacity:0;scale:.4}to{opacity:0;scale:0}}"};function Oc(t,e){B(e,!0),Q(t,_C);let i=h(e,"reversed",3,!1);var o=Me(),r=ue(o);Rs(r,()=>e.Icon,a=>{var l=hC(),d=C(l);Di(d,()=>e.Icon,(s,u)=>{u(s,{get size(){return"48"},get reversed(){return i()}})}),S(l),O(()=>Ke(l,`animation-duration: ${e.duration}ms`)),b(a,l)}),b(t,o),H()}var Xv=require("@vkontakte/videoplayer-core/es2018"),bC=L('<div class="container s-z"><!></div>'),$C={hash:"s-z",code:".container.s-z{align-items:center;display:flex;height:100%;justify-content:center;pointer-events:none;position:absolute;width:100%}"};function Zv(t,e){B(e,!0),Q(t,$C);let[i,o]=Ne(),r=()=>w(s,"$playbackState$",i),a=()=>w(m,"$previewTrackActive",i),l=()=>w(p,"$previewTrackDragInProgress",i),d=()=>w(u,"$isPlaying$",i),{state:{playbackState$:s,isPlaying$:u},ui:{previewTrackActive:m,previewTrackDragInProgress:p}}=be(),{features:{playbackStatusShow:v},playbackStatusAnimationDuration:_}=Vt(),y=0,$=q(null),x=q(!1);De(()=>{r()===Xv.PlaybackState.PLAYING?N($,Mn,!0):r()===Xv.PlaybackState.PAUSED?N($,Ws,!0):N($,null)}),De(()=>{if(!(!v||a()||l()))return y=window.setTimeout(()=>{y=0,N($,null)},_),()=>{y&&(window.clearTimeout(y),y=0)}}),De(()=>{d()&&!n(x)&&(N(x,!0),N($,null))});var I=Me(),T=ue(I);{var R=A=>{var P=bC(),E=C(P);Oc(E,{get duration(){return _},get Icon(){return n($)}}),S(P),b(A,P)};V(T,A=>{n($)&&v&&A(R)})}b(t,I),H(),o()}var yC=L('<div><div data-testid="video-container"></div></div>'),xC={hash:"s-e",code:".video-container.s-e,.video-wrapper.s-e{height:100%;left:0;position:absolute;top:0;width:100%}.video-wrapper.s-e{background:var(--black)}.video-container.s-e,.video-wrapper.s-e{z-index:var(--video-container-z-index)}.video-container.s-e{transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.s-e{transition:none}.nocursor.s-e{cursor:none}"};function ul(t,e){B(e,!0),Q(t,xC);let[i,o]=Ne(),r=()=>w(p,"$rotateAlpha",i),a=()=>w(v,"$playerSize",i),l=()=>w(m,"$playerPhase",i),d=()=>w(y,"$chromecastConnected$",i),s=()=>w(_,"$isPlaying$",i),u=h(e,"videoContainer",15),{playerPhase:m,ui:{rotateAlpha:p,playerSize:v},state:{isPlaying$:_,chromecastConnected$:y}}=be(),{isSmoothVideoRotate:$}=Vt(),x=f(()=>u()&&r()%180?a().height/a().width:1);var I=yC();let T;I.__contextmenu=function(...P){var E;(E=e.onContextMenu)==null||E.apply(this,P)},I.__mousedown=function(...P){var E;(E=e.onMouseDown)==null||E.apply(this,P)},I.__mouseup=function(...P){var E;(E=e.onMouseUp)==null||E.apply(this,P)},I.__click=function(...P){var E;(E=e.onClick)==null||E.apply(this,P)},I.__dblclick=function(...P){var E;(E=e.onDblClick)==null||E.apply(this,P)};var R=C(I);let A;Ze(R,P=>u(P),()=>u()),S(I),O((P,E)=>{T=oe(I,1,"video-wrapper s-e",null,T,P),A=oe(R,1,"video-container s-e",null,A,E),Ke(R,`transform: rotate(${r()}deg) scale(${n(x)})`),Ve(R,"data-is-playing",s())},[()=>({hidden:l()!=="video"||d(),nocursor:e.hideCursor}),()=>({"fast-rotate":!$})]),b(t,I),H(),o()}Ye(["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 Jv(t,e){B(e,!0),Q(t,SC);let{ui:{t:i}}=be();var o=wC();let r;var a=C(o),l=C(a,!0);S(a);var d=k(a,2);Ec(d,{get size(){return"16"},fill:"currentColor"}),S(o),O((s,u)=>{r=oe(o,1,"root s-12",null,r,s),ve(l,u)},[()=>({visible:e.isVisible}),()=>i("double_forward_label")]),b(t,o),H()}var CC=L('<div class="container s-11" role="button" data-testid="preview-track-overlay"><div class="icon s-11"><!></div></div>'),TC={hash:"s-11",code:".container.s-11{background-color:rgba(0,0,0,.48);cursor:pointer;height:100%;position:absolute;width:100%}.container.s-11,.icon.s-11{align-items:center;display:flex;justify-content:center}.icon.s-11{background-color:#00000073;border-radius:100%;height:64px;transition:transform .2s;transition-timing-function:ease-out;width:64px;will-change:transform}.container.s-11:hover .icon:where(.s-11){transform:scale(1.15)}"};function eg(t,e){B(e,!1),Q(t,TC);let o=be().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 Mn(s,{get size(){return"32"}}),S(d),S(l),es(3,l,()=>$s,()=>({duration:r})),b(t,l),Of(e,"handleClick",a),H({handleClick:a})}Ye(["click"]);var IC=L('<div class="container s-w"><div class="notification s-w"><span class="text s-w"> </span></div></div>'),EC={hash:"s-w",code:".container.s-w{display:flex;justify-content:center;left:0;pointer-events:none;position:absolute;right:0;top:20px}.notification.s-w{background-color:var(--black-alpha-40);border-radius:var(--notification-radius);padding:10px 16px}.text.s-w{font-size:14px;font-weight:500;line-height:18px}"};function tg(t,e){B(e,!1),Q(t,EC);let{ui:{t:i}}=be();ho();var o=IC(),r=C(o),a=C(r),l=C(a,!0);S(a),S(r),S(o),O(d=>ve(l,d),[()=>i("preview_track_notification_text")],Tn),es(3,r,()=>$s,()=>({duration:340})),b(t,o),H()}var PC=(t,e,i,o,r,a)=>{if(t.stopPropagation(),e()||o()){a();return}},kC=L("<div><!></div>"),AC=L('<div class="spherical-video-icon s-8"><!></div>'),LC=L("<div><!></div>"),MC=L('<div class="settings-menu s-8"><!></div>'),VC=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),RC=L("<!> <!> <!>",1),NC=L('<div class="blocked s-8"></div>'),DC=L('<div class="player-wrapper s-8"><!> <div class="overlay-container"></div></div> <!>',1),OC={hash:"s-8",code:".blocked.s-8,.player-wrapper.s-8{height:100%;position:absolute;width:100%}.blocked.s-8{z-index:var(--overlay-container-z-index)}.player-wrapper.s-8 .player-media{background:var(--black);height:100%;left:0;position:absolute;top:0;transition:transform .2s ease-in-out;width:100%}.spherical-video-icon.s-8{display:inline-block;left:calc(50% - 38px);position:absolute;top:calc(50% - 23px)}.ads-container.s-8{background:var(--black);height:100%;left:0;position:absolute;top:0;width:100%;z-index:var(--ads-container-z-index)}.settings-menu.s-8{bottom:57px;left:0;position:absolute;right:18px;transition:opacity .2s;z-index:var(--settings-menu-z-index)}"};function og(t,e){B(e,!0),Q(t,OC);let[i,o]=Ne(),r=()=>w(or,"$notificationsToShow$",i),a=()=>w(nt,"$playerPhase",i),l=()=>w(Ro,"$isLoaderVisible",i),d=()=>w(Rt,"$adPlaybackState",i),s=()=>w(ei,"$crashed",i),u=()=>w(No,"$isInteractiveTime$",i),m=()=>w(Zt,"$settingsMenuVisible",i),p=()=>w($o,"$isInteractiveExpectation$",i),v=()=>w(bi,"$controlsVisible",i),_=()=>w(yo,"$touched",i),y=()=>w(Fr,"$graphIsOpened$",i),$=()=>w(Yt,"$isFullscreen",i),x=()=>w(vn,"$autoplayNextEnabled$",i),I=()=>w(Lt,"$postrollPassed",i),T=()=>w(_t,"$isEnded$",i),R=()=>w(Bn,"$cursorInside",i),A=()=>w(br,"$isControlsAvailable",i),P=()=>w(en,"$doubleForwardOn$",i),E=()=>w(Hr,"$fakeIsPlaying$",i),z=()=>w(rr,"$bottomNoSmooth",i),F=()=>w(ss,"$interactiveTimeIndicator",i),U=()=>w(Zo,"$playerSize",i),X=()=>w(ro,"$is3DVideo",i),ae=()=>w(yr,"$doubleForwardAvailable$",i),Z=()=>w(hi,"$contextMenuVisible$",i),re=()=>w(Bi,"$playbackState$",i),J=()=>w(xo,"$hotKeyMapData",i),we=()=>w(st,"$scrubbingInProgress",i),me=()=>w(dt,"$volumeChangingInProgress",i),ee=()=>w(Bt,"$chromecastConnected$",i),_e=()=>w(on,"$controlsTimeoutActive",i),Ce=()=>w(er,"$adsPlaybackState",i),ge=()=>w(xi,"$settingsMenuOpenedByKeyboard",i),pe=()=>w(Ir,"$contextMenuOpenedByKeyboard$",i),Qe=()=>w(Cs,"$contextMenuOpenedByHotKey$",i),G=()=>w(ln,"$contextMenuButtonRef$",i),D=()=>w(Er,"$contextMenuLastActiveElem$",i),Ge=()=>w(Hi,"$isFullscreenOpenedByKeyboard",i),K=()=>w(Dr,"$positionExact$",i),se=()=>w(ai,"$language$",i),xe=()=>w(Qs,"$previewTrackActive$",i),Be=()=>w(Ti,"$icon3DVideoVisible",i),ot=()=>w(W,"$chromecastDeviceName$",i),ne=()=>w(Fi,"$currentSubtitle$",i),ce=()=>w(ji,"$currentSubtitleCaptions$",i),Re=()=>w(vo,"$position$",i),Ae=()=>w(ci,"$duration$",i),et=()=>w(ni,"$isLive$",i),Ee=()=>w(gt,"$isPlaying$",i),Te=()=>w(_r,"$contextMenuPosition$",i),He=()=>w(xr,"$previewTrackNotificationVisible$",i),Et=()=>w(Jo,"$showHotKeyMap",i),St=()=>w(Xo,"$debugPanelVisible",i),Ot=()=>w(gn,"$userActionsDisabled$",i),lt=h(e,"videoContainer",15),Pt=h(e,"adsSlotId",3,void 0),Xt=h(e,"adsParams",3,void 0),kt=h(e,"adsAutoplayParam",3,void 0),Dt=h(e,"duration",3,void 0),zt=h(e,"logoTargetUrl",3,""),j=h(e,"showNextPrevButtons",3,!1),Pe=h(e,"nextButtonActive",3,!1),le=h(e,"prevButtonActive",3,!1),$e=h(e,"endScreenVideoTitle",3,void 0),Le=h(e,"endScreenVideoThumb",3,void 0),ct=h(e,"isOneVideoPlaylist",3,!1),Ct=h(e,"shadowRootContainer",3,void 0),fe=h(e,"outerContainerRef",3,void 0),Fe=h(e,"playerStarted",3,!1),Ue=h(e,"fullScreenTarget",3,void 0),Tt=h(e,"showMiniTimer",3,!1),oi=h(e,"showEndScreen",3,!0),xt=h(e,"keyboardControls",15),Gt=e.store.getLogger().createComponentLog("Root component"),ai=e.store.interfaceLanguage$,Bi=e.store.state.playbackState$,Rt=e.store.ads.playbackState,vo=e.store.state.positionWithScrubbing$,ci=e.store.state.duration$,nt=e.store.playerPhase,Yt=e.store.ui.isFullscreen,Hi=e.store.ui.isFullscreenOpenedByKeyboard,bi=e.store.ui.controlsVisible,Zt=e.store.ui.settingsMenu.visible$,xi=e.store.ui.settingsMenu.openedByBtnKeyboard$,st=e.store.ui.scrubbingInProgress,dt=e.store.ui.volumeChangingInProgress,hi=e.store.ui.contextMenu.visible$,Xo=e.store.ui.debugPanelVisible,Ro=e.store.state.isLoaderVisible,_t=e.store.state.isEnded$,Bt=e.store.state.chromecastConnected$,W=e.store.state.chromecastDeviceName$,Lt=e.store.ads.postrollPassed,ni=e.store.state.isLive$,gt=e.store.state.isPlaying$,ei=e.store.state.crashed$,Kt=e.store.webApi.annotationsApi,We=e.store.webApi.pictureInPictureApi,Fi=e.store.state.currentSubtitle$,ji=e.store.state.currentSubtitleCaptions$,Zo=e.store.ui.playerSize,er=e.store.ads.playbackState,ro=e.store.ui.is3DVideo,Ti=e.store.ui.icon3DVideoVisible,bo=e.store.state.isInteractive,No=e.store.state.isInteractiveTime$,$o=e.store.state.isInteractiveExpectation$,Ii=e.store.state.hasInteractiveBranches,yo=e.store.ui.touched,xo=e.store.ui.modals.hotKeyMap.data,Jo=e.store.ui.modals.hotKeyMap.show,Dr=e.store.state.positionExact$,Or=e.store.ui.overlayContainer$,ss=e.store.ui.controls.interactiveTimeIndicator,ys=e.store.state.showInteractiveTimeIndicator,_r=e.store.ui.contextMenu.position$,tr=e.store.actions.internal.setQuality,Br=e.store.actions.internal.closeSettingsMenu,vn=e.store.ui.autoplayNextEnabled$,gn=e.store.ui.userActionsDisabled,br=e.store.ui.isControlsAvailable,$r=e.store.ui.videoTitleInfo,en=e.store.ui.doubleForwardOn$,yr=e.store.ui.doubleForwardAvailable$,xr=e.store.ui.previewTrackNotificationVisible,wr=e.store.actions.internal.getVideoElement,Nn=e.store.actions.internal.checkFullscreenSupport,{fakeIsPlaying$:Hr,notifications$:xs,graphIsOpened$:Fr}=_o(),wi=q(void 0),as=q(void 0),tn=q(void 0),ft=q(void 0),Jt,Dn,ir;xo.set(J_());let{closeNotification:Ur,notificationsToShow$:or}=xs,nr=f(()=>!!r().slow_video),Do=()=>Ur("slow_video"),Sr=f(()=>(a()==="video"&&l()||a()==="ads"&&d()==="inactive")&&!s()),On=q(void 0),rr=de(!1),sr,on=de(!1),hn=de(),Bn=de(!1),Ai=q(!1),Li=q(!1),Oo=q(!1),Hn=q(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),ar=f(()=>u()&&!m()&&!(n(Ai)||n(Li))&&!(n(Oo)&&!p())),Fn=!0,Cr=f(()=>e.uiConfig.features.thumbTimer&&Tt()&&a()==="video"&&!v()&&!s()&&!bo&&(e.uiConfig.hideThumbTimerAfterTouch&&!_()||!e.uiConfig.hideThumbTimerAfterTouch)),ut=e.uiConfig.titleShowBehaviour,wt=f(()=>!["video","thumb"].includes(a())||ut==="never"||y()?!1:ut==="fullscreen"?$():!0),so=f(()=>ut==="always"||a()==="thumb"?!1:!v()),ao=q(!1),nn=f(()=>(oi()||e.showAutoplayNext&&x())&&!!$e()&&!!Le()&&(e.showAds&&I()||!e.showAds)&&T()&&!s()&&!n(ao)&&!Ii),Bo=f(()=>R()&&!(v()||n(nn))&&!u()&&A()&&!P()),wo=q(!1),Xi=f(()=>E()!==null),{toggle:Un}=Hr,_n=!1,rn=null;We==null||We.setContext(xd());let ws=()=>{e.autoplay&&!bo&&e.uiConfig.controls.showOnStartupAtAutoplay&&Ui(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:ws});let zr=()=>{window.clearTimeout(Jt),on.set(!1)},Ss=()=>{window.clearTimeout(Dn),hn.set(null)},Ui=he=>{zr(),on.set(!0),Jt=window.setTimeout(()=>on.set(!1),he);let it=he-100;sr=window.setTimeout(()=>{z()&&rr.set(!1)},it>0?it:he)},Wr=(he,it)=>{Ss(),hn.set(it),Dn=window.setTimeout(()=>hn.set(null),he)},Ho=ro.subscribe(he=>{Ti.set(he),he&&(window.clearTimeout(ir),ir=window.setTimeout(()=>Ti.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Tr=async()=>{var it,mi,Pi,wn;let he=aa();if(he){let Io=Xd(),Vi=ze();he=Io===Vi||Io===Ct()}if(he){Ui(e.uiConfig.controls.hideTimeoutFullscreen);try{await(We==null?void 0:We.exit())}catch(Io){Gt({message:String(Io)})}}Yt.set(he),e.store.getAdmanWrapper().setFullscreen(he),$()?(mi=(it=e.store.callbacks)==null?void 0:it.onFullscreenEnter)==null||mi.call(it):(wn=(Pi=e.store.callbacks)==null?void 0:Pi.onFullscreenExit)==null||wn.call(Pi)},bn=he=>{let{width:it,height:mi}=he.target;Zo.set({width:it,height:mi})},Kr=()=>{let{width:he,height:it}=n(wi).getBoundingClientRect();Zo.set({width:he,height:it})};Mt(()=>{var it;return ju(Tr),e.uiConfig.features.annotationsInside&&(Kt==null||Kt.init(n(wi))),Ka(We)&&(We==null||We.assignPlayerContainer(n(wi)),We==null||We.setExternalEventHandlers({resize:bn,leavepictureinpicture:Kr})),e.interactiveContainer&&((it=lt().parentElement)==null||it.insertBefore(e.interactiveContainer,lt().nextSibling)),()=>{window.clearTimeout(Jt),window.clearTimeout(sr),window.clearTimeout(Dn),window.clearTimeout(ir),Ho(),We==null||We.dispose().catch(mi=>{Gt({message:String(mi)})}),Xu(Tr)}});let ze=()=>{let he=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!fe()?n(wi):fe(),it=he.getRootNode(),mi=it instanceof ShadowRoot?it.host:it,Pi=Ue()instanceof HTMLElement&&Ue().contains(mi);return e.uiConfig.allowChangingFullscreenTarget&&Ue()&&Pi?Ue():he},yt=()=>{hi.set(!1)},li=()=>{Br(),yt()},go=async()=>{if(!Nn()){Gt({message:"fullscreen disabled"});return}yt(),aa()?(await Yu(document),Gt({message:"exit fullscreen"})):(Gt({message:"request fullscreen"}),await Gu(ze()))},Ei=he=>{y()||(he.preventDefault(),hi.set(!0),_r.set({left:he.clientX,top:he.clientY}))};function Fo(){Bn.set(!0),bo||Ui(e.uiConfig.controls.hideTimeoutCursor)}function lo(he){var Io,Vi;let{relatedTarget:it}=he,Pi=!!(it&&((Io=n(tn))!=null&&Io.contains(it)))&&((Vi=xt())==null?void 0:Vi.isFocused()),wn=e.uiConfig.controls.showOnStartupAtAutoplay||!!it;!bo&&!Pi&&wn&&(rr.set(!0),Ui(e.uiConfig.controls.hideTimeoutCursor))}function Uo(){Bn.set(!1),N(Li,!1),N(Ai,!1),_n=!1,e.store.actions.internal.releaseCamera(),Ui(e.uiConfig.controls.hideTimeout),P()&&Wn()}function sn(he){return he?he.offsetTop+sn(he.offsetParent):0}function lr(he){return he?he.offsetLeft+lr(he.offsetParent):0}function So(he){if(F()&&ys){let it=he.currentTarget,mi=sn(it),Pi=lr(it),wn=he.pageX-Pi,Io=he.pageY-mi,{left:Vi,bottom:qn,right:Ps}=F(),qr=Ps-Vi;return wn>=Vi-qr&&Io<=qn+qr}}function an(he){if(n(wi)){let it=sn(he.currentTarget),mi=U().height,Pi=he.pageY-it;if(So(he)){N(Li,!1);return}Pi<40?N(Li,!0):Pi>mi-40?N(Ai,!0):(N(Li,!1),m()||N(Ai,!1))}}function zn(he){an(he),!n(ar)&&!P()&&Ui(e.uiConfig.controls.hideTimeoutCursor),X()&&_n&&rn&&e.store.actions.internal.moveCameraFocusPX(rn.clientX-he.clientX,rn.clientY-he.clientY,he.timeStamp-rn.timeStamp),rn=he}let Co=null,$n=()=>{Co=window.setTimeout(()=>{e.store.actions.internal.changeDoubleForwardOn(!0),zr()},e.uiConfig.doubleForwardActivationTime)},Wn=()=>{e.store.actions.internal.changeDoubleForwardOn(!1),Co&&clearTimeout(Co),Co=null},ls=he=>{he.preventDefault(),he.button===0&&(_n=!0,e.store.actions.internal.holdCamera(),ae()&&$n()),!_n&&Ui(e.uiConfig.controls.hideTimeoutCursor)},dr=he=>{he.preventDefault(),he.button===0&&(rn=he,_n=!1,e.store.actions.internal.releaseCamera()),!P()&&Ui(e.uiConfig.controls.hideTimeoutCursor)},je=he=>{he.preventDefault(),Fn&&(Gt({message:"double click on video"}),go(),Ui(e.uiConfig.controls.hideTimeoutCursor))},jt=he=>{var it;if(he.preventDefault(),P()){Wn();return}if(Co&&Wn(),Z()||m()){li();return}if(!(T()&&!Ii)){if(n(Xi))return Un();if((it=xt())==null||it.focus(),!Fe()){e.firstStart(),Ui(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||re()!==ig.PlaybackState.PLAYING)&&e.store.actions.internal.togglePlay(),Ui(e.uiConfig.controls.hideTimeoutCursor)}},$i=he=>{li(),yo.set(!0),Ui(e.uiConfig.controls.hideTimeout),he&&Wr(e.uiConfig.controls.hideHotKeyHelpers,he)},zo=()=>{var he,it;li(),(he=e.store.callbacks)!=null&&he.onOpenHotKeyMap?(it=e.store.callbacks)==null||it.onOpenHotKeyMap(J()):Jo.update(mi=>!mi)},yn=()=>{yo.set(!0)},Ir=e.store.ui.contextMenu.openedByBtnKeyboard$,ln=e.store.ui.contextMenu.btnRef$,dn=q(void 0),Cs=e.store.ui.contextMenu.openedByHotKey$,Er=e.store.ui.contextMenu.lastActiveElem$,Ts=q(!1),Qs=e.store.ui.previewTrackActive;De(()=>{Or.set(n(On))}),De(()=>{N(Oo,n(Hn)&&re()!==ig.PlaybackState.PLAYING,!0),n(Hn)||It(()=>N(Hn,!0))}),De(()=>{var it,mi;let he=(n(Oo)||T()||m()||we()||me()||ee()||_e()||n(Ts))&&!n(ar)&&(a()==="video"||a()==="ads"&&(e.uiConfig.controls.showOnStartupAtAutoplay||Ce()!=="inactive"))&&!s()&&A();bi.set(he),!he&&!_e()&&((it=n(tn))!=null&&it.contains(np()))&&((mi=xt())==null||mi.focus())}),De(()=>{!we()&&n(wo)&&!u()&&Ui(e.uiConfig.controls.hideTimeoutCursor),It(()=>N(wo,we(),!0))}),De(()=>{n(ft),m(),ge(),It(()=>nc(n(ft),m(),ge()))}),De(()=>{n(dn),Z(),pe(),Qe(),It(()=>{let he=pe()||Qe();nc(n(dn),Z(),he)})}),De(()=>{let he=G();he&&(Z(),It(()=>ql(he,Z(),Ir)))}),De(()=>{let he=D();he&&(Z(),It(()=>rb(he,Z(),Cs)))}),De(()=>{var he;!Ge()&&$()&&(It(()=>Hi.set(!1)),(he=xt())==null||he.focus())}),De(()=>{y()&&li()});let Is=q(void 0),mt=he=>{$r.set(Zn(wr(),{title:n(Is)},"title",he))},di=(he,it)=>{var Io,Vi;let mi=(Vi=(Io=e.store.callbacks)==null?void 0:Io.uiInfo)==null?void 0:Vi.onUpcomingLiveViewStateChanged;if(!mi)return;let Pi=!!it,wn={...Zn(n(wi),{upcomingLiveScreen:it},"upcomingLiveScreen",Pi),...he};mi(wn)},To="",co=f(()=>{var he;return n(so)?To:(he=e.getVideoDeeplink)==null?void 0:he.call(e,K())});De(()=>{To=n(co)});var xn=DC();pt("blur",Aa,li);var Mi=ue(xn);Mi.__mousemove=zn;var ds=C(Mi);let Es=f(()=>a()==="ads"),zi=f(()=>n(Xi)?Un:void 0);Ze(xm(ds,{startDoubleForwardActivationTimer:$n,stopDoubleForward:Wn,toggleFullscreen:go,hideContextMenu:li,showHotKeyHelpers:$i,showKeyMap:zo,get isAds(){return n(Es)},get fakePlayButtonHandler(){return n(zi)},get nextButtonActive(){return Pe()},get prevButtonActive(){return le()},children:(he,it)=>{var mi=RC(),Pi=ue(mi);ul(Pi,{get hideCursor(){return n(Bo)},onClick:jt,onContextMenu:Ei,onMouseDown:ls,onMouseUp:dr,onDblClick:je,get videoContainer(){return lt()},set videoContainer(Vi){lt(Vi)}});var wn=k(Pi,2);Da(wn,()=>"slot",!1,(Vi,qn)=>{to(Vi,()=>({name:cl}))});var Io=k(wn,2);Rs(Io,se,Vi=>{var qn=VC(),Ps=ue(qn);let qr=f(()=>a()!=="thumb"||s()||bo&&e.autoplay);al(Ps,{get hidden(){return n(qr)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart},onContextMenu:Ei,onClick:yt});var ha=k(Ps,2);{var cs=Oe=>{eg(Oe,{})};V(ha,Oe=>{xe()&&Oe(cs)})}var Sn=k(ha,2);Zv(Sn,{});var _a=k(Sn,2);Jv(_a,{get isVisible(){return P()}});var ba=k(_a,2);{var Qr=Oe=>{let gi=f(()=>{var Po;return(Po=e.live)==null?void 0:Po.startTime});Ac(Oe,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(gi)},onUpcomingLiveViewStateChanged:di,onContextMenu:Ei,onClick:yt})};V(ba,Oe=>{a()==="LiveWaitingStart"&&Oe(Qr)})}var ml=k(ba,2);{var md=Oe=>{ll(Oe,{kind:"recover",get thumbUrl(){return e.thumbUrl},onContextMenu:Ei,onClick:yt})};V(ml,Oe=>{a()==="LiveWaitingRecover"&&Oe(md)})}var $a=k(ml,2);{var vd=Oe=>{ll(Oe,{kind:"record",get thumbUrl(){return e.thumbUrl},onContextMenu:Ei,onClick:yt})};V($a,Oe=>{a()==="LiveWaitingRecord"&&Oe(vd)})}var vl=k($a,2);{var gl=Oe=>{var gi=kC();let Po;var kr=C(gi);Jd(kr,{get adsSlotId(){return Pt()},get adsParams(){return Xt()},get adsAutoplayParam(){return kt()},get duration(){return Dt()},get adsExternalApi(){return e.adsExternalApi},get adsJson(){return e.adsJson}}),S(gi),O(Cn=>Po=oe(gi,1,"ads-container s-8",null,Po,Cn),[()=>({hidden:a()!=="ads"})]),b(Oe,gi)};V(vl,Oe=>{e.showAds&&Fe()&&Oe(gl)})}var ya=k(vl,2);{var vt=Oe=>{let gi=f(()=>!oi()&&e.showAutoplayNext&&x());bm(Oe,{get title(){return $e()},get thumb(){return Le()},get isHide(){return n(gi)},clickCloseIcon:()=>N(ao,!0)})};V(ya,Oe=>{n(nn)&&$e()&&Le()&&Oe(vt)})}var rt=k(ya,2);{var Zi=Oe=>{let gi=f(()=>$()?"md":"sm"),Po=f(()=>{var kr;return(kr=e.store.callbacks)==null?void 0:kr.onTitleClicked});Cv(Oe,{get title(){return e.title},get isHidden(){return n(so)},onVisibilityChanged:mt,get titleLinkHref(){return n(co)},onMouseEnter:()=>{N(Ts,!0)},onMouseLeave:()=>{N(Ts,!1)},get size(){return n(gi)},get onTitleClicked(){return n(Po)},get ref(){return n(Is)},set ref(kr){N(Is,kr,!0)}})};V(rt,Oe=>{n(wt)&&Oe(Zi)})}var Eo=k(rt,2);{var Ji=Oe=>{let gi=f(()=>a()==="video"&&v());Pc(Oe,{get isShifted(){return n(gi)}})};V(Eo,Oe=>{X()&&Oe(Ji)})}var vi=k(Eo,2);{var Wi=Oe=>{var gi=AC(),Po=C(gi);jd(Po,{}),S(gi),b(Oe,gi)};V(vi,Oe=>{Be()&&Oe(Wi)})}var Gs=k(vi,2);{var gd=Oe=>{kc(Oe,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return ot()},onClick:jt,onContextMenu:Ei,onDblClick:je})};V(Gs,Oe=>{ee()&&Oe(gd)})}var Yc=k(Gs,2);{var Hp=Oe=>{rl(Oe,{get shifted(){return v()},get captions(){return ce()},get position(){return Re()},get playerSize(){return U()}})};V(Yc,Oe=>{ne().value!=="off"&&Oe(Hp)})}var jc=k(Yc,2);{var Fp=Oe=>{var gi=LC();gi.__contextmenu=Ei,gi.__click=[PC,Z,hi,m,Zt,li];var Po=C(gi);sl(Po,{}),S(gi),b(Oe,gi)};V(jc,Oe=>{s()&&Oe(Fp)})}var Xc=k(jc,2);{var Up=Oe=>{let gi=f(()=>a()==="thumb"||a()==="LiveWaitingStart"||a()==="LiveWaitingRecover"||a()==="LiveWaitingRecord"),Po=f(()=>a()==="ads"),kr=f(()=>e.canRewindLive&&Ae()!==0);Ic(Oe,{get bottomHidden(){return n(gi)},get bottomNoSmooth(){return z()},get showControls(){return v()},get isAds(){return n(Po)},get canRewindLive(){return n(kr)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return zt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return j()},get nextButtonActive(){return Pe()},get prevButtonActive(){return le()},get isOneVideoPlaylist(){return ct()},customFullscreenSupported:Fn,toggleFullscreen:go,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return n(as)},set playerControlsWrapperRef(Cn){N(as,Cn,!0)},get playerControlsRef(){return n(tn)},set playerControlsRef(Cn){N(tn,Cn,!0)}})};V(Xc,Oe=>{Fe()&&Oe(Up)})}var Zc=k(Xc,2);{var zp=Oe=>{var gi=MC(),Po=C(gi);let kr=f(()=>{var Cn;return(Cn=n(tn))==null?void 0:Cn.clientHeight});Rc(Po,{get supportLink(){return e.supportLink},get playerControlsHeight(){return n(kr)},returnFocus:()=>{var Cn;return(Cn=xt())==null?void 0:Cn.focus()},get ref(){return n(ft)},set ref(Cn){N(ft,Cn,!0)}}),S(gi),b(Oe,gi)};V(Zc,Oe=>{!ee()&&a()!=="ads"&&Oe(zp)})}var xa=k(Zc,2);let Wp=f(()=>!n(Cr));ic(xa,{get isLive(){return et()},get isHidden(){return n(Wp)},get isPlaying(){return Ee()},get position(){return Re()},get duration(){return Ae()}});var Ys=k(xa,2);wv(Ys,{get data(){return hn}});var wa=k(Ys,2);hm(wa,{get supportLink(){return e.supportLink},returnFocus:()=>{var Oe;return(Oe=xt())==null?void 0:Oe.focus()},get visible(){return Z()},get playerContainerRef(){return n(wi)},get position(){return Te()},get menuElementRef(){return n(dn)},set menuElementRef(Oe){N(dn,Oe,!0)}});var Jc=k(wa,2);{var eu=Oe=>{Nc(Oe,{onClose:Do,onSelectAutoQuality:()=>{tr("auto"),Do()}})};V(Jc,Oe=>{n(nr)&&Oe(eu)})}var hl=k(Jc,2);{var tu=Oe=>{tg(Oe,{})};V(hl,Oe=>{He()&&Oe(tu)})}var iu=k(hl,2);{var ou=Oe=>{Ya(Oe,{})};V(iu,Oe=>{n(Sr)&&Oe(ou)})}var nu=k(iu,2);{var Kp=Oe=>{Cm(Oe,{})};V(nu,Oe=>{Et()&&Oe(Kp)})}var qp=k(nu,2);{var Qp=Oe=>{sc(Oe,{})};V(qp,Oe=>{St()&&Oe(Qp)})}b(Vi,qn)}),b(he,mi)},$$slots:{default:!0}}),he=>xt(he),()=>xt());var Ci=k(ds,2);Ze(Ci,he=>N(On,he),()=>n(On)),S(Mi),Ze(Mi,he=>N(wi,he),()=>n(wi));var Kn=k(Mi,2);{var Pr=he=>{var it=NC();b(he,it)};V(Kn,he=>{Ot()&&he(Pr)})}pt("mouseenter",Mi,Fo),pt("mouseleave",Mi,Uo),pt("click",Mi,yn,!0),pt("focusin",Mi,lo,!0),b(t,xn),H(),o()}Ye(["mousemove","contextmenu","click"]);var ga=require("@vkontakte/videoplayer-core/es2018"),u$=require("@vkontakte/videoplayer-shared/es2018");var BC=L('<div></div> <div class="info s-14"><div class="triangles-wrapper s-14"><div></div> <div></div> <div></div></div> <p class="step-caption s-14"> </p></div>',1),HC=L("<div><!></div>"),FC={hash:"s-14",code:".double-click-area.s-14{height:100%;overflow:hidden;position:absolute;top:0;width:25%}.double-click-area.left.s-14{left:0}.double-click-area.right.s-14{right:0}.semicircle.s-14{background-color:rgba(0,0,0,.5);height:100%;position:absolute;top:0;width:100%}.semicircle.left.s-14{border-bottom-right-radius:50%;border-top-right-radius:50%;left:0}.semicircle.right.s-14{border-bottom-left-radius:50%;border-top-left-radius:50%;right:0}.info.s-14{align-items:center;flex-direction:column;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.info.s-14,.triangles-wrapper.s-14{display:flex;justify-content:center}.triangles-wrapper.s-14{margin-bottom:10px;position:relative}.triangle.s-14{animation:s-14-blink .5s infinite;border-bottom:6px solid transparent;border-top:6px solid transparent;height:0;opacity:0;width:0}.triangle.left.s-14:nth-child(3),.triangle.right.s-14:first-child{animation-delay:0s}.triangle.left.s-14:nth-child(2),.triangle.right.s-14:nth-child(2){animation-delay:.1s}.triangle.left.s-14:first-child,.triangle.right.s-14:nth-child(3){animation-delay:.2s}@keyframes s-14-blink{0%{opacity:0}50%{opacity:1}to{opacity:0}}.triangle.left.s-14{border-right:8px solid var(--white)}.triangle.right.s-14{border-left:8px solid var(--white)}.triangle.s-14:not(:last-child){margin-right:5px}.step-caption.s-14{color:var(--white);font-size:12px;line-height:1;margin:0;text-align:center}"};function Sp(t,e){B(e,!0),Q(t,FC);let i=h(e,"seekStep",3,0),o=q(!1),r=0,a=0,l=q(ri(i())),d=p=>{p.stopPropagation(),a+=1,N(l,i()*(a-1)),a===1?e.handleSingleFirstClick(p):(N(o,!0),e.handleSecondClick()),window.clearTimeout(r),r=window.setTimeout(()=>{a=0,N(o,!1)},300)};pn(()=>{window.clearTimeout(r)});var s=HC();s.__click=d;var u=C(s);{var m=p=>{var v=BC(),_=ue(v),y=k(_,2),$=C(y),x=C($),I=k(x,2),T=k(I,2);S($);var R=k($,2),A=C(R,!0);S(R),S(y),O(P=>{var E,z,F,U;oe(_,1,`semicircle ${(E=e.side)!=null?E:""}`,"s-14"),oe(x,1,`triangle ${(z=e.side)!=null?z:""}`,"s-14"),oe(I,1,`triangle ${(F=e.side)!=null?F:""}`,"s-14"),oe(T,1,`triangle ${(U=e.side)!=null?U:""}`,"s-14"),ve(A,P)},[()=>Y("doubletap_seek_step",{seconds:n(l).toFixed(0)})]),b(p,v)};V(u,p=>{n(o)&&p(m)})}S(s),O(()=>{var p;return oe(s,1,`double-click-area ${(p=e.side)!=null?p:""}`,"s-14")}),b(t,s),H()}Ye(["click"]);var UC=(t,e,i)=>{e(!1),i()},zC=L('<div class="overlay s-15"></div> <div class="next-video s-15"><div class="top s-15"><div class="caption s-15"> </div> <!></div> <div class="row s-15"><div class="column s-15"><div class="thumb s-15"><div></div> <!></div></div> <div class="column s-15"><div class="title s-15"> </div></div></div></div>',1),WC={hash:"s-15",code:".overlay.s-15{background:rgba(0,0,0,.72);height:100%;position:absolute;width:100%}.next-video.s-15{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-15{display:flex;justify-content:space-between}.caption.s-15{color:var(--white);font-size:11px;font-weight:700;opacity:.8;text-transform:uppercase}.row.s-15{background:rgba(48,48,48,.8);cursor:pointer;display:flex;flex-direction:row;height:102px;margin-top:6px;width:100%}.column.s-15{display:flex;flex-basis:50%;flex-direction:column}.thumb.s-15{align-items:center;background:no-repeat 50%;background-size:cover;display:flex;justify-content:space-around;position:relative}.thumb.s-15,.thumb-overlay.s-15{height:100%;width:100%}.thumb-overlay.s-15{position:absolute}.thumb-overlay.withOpacity.s-15{background:var(--black);opacity:.3}.title.s-15{color:var(--white);font-size:12px;font-weight:700;line-height:1.6;max-height:52px;overflow:hidden;padding:10px 16px}"};function ng(t,e){B(e,!0),Q(t,WC);let[i,o]=Ne(),r=()=>w(d,"$autoplayNextEnabled$",i),a=()=>w(s,"$timerNextVideoRunning$",i),l=be(),d=l.ui.autoplayNextEnabled$,s=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,m=l.actions.internal.nextVideoAnnouncementShow,p=l.actions.internal.nextVideoAnnouncementClick,v=l.actions.internal.nextVideoAnnouncementAuto,_=l.actions.internal.nextVideoAnnouncementCancel,y=()=>{u(!1),v()},$=()=>{e.clickCloseIcon(),_()};Mt(()=>{e.isHide||m(),e.isHide&&r()&&(u(!1),v())});var x=Me(),I=ue(x);{var T=R=>{var A=zC(),P=k(ue(A),2),E=C(P),z=C(E),F=C(z,!0);S(z);var U=k(z,2);Hs(U,{onClick:$}),S(E);var X=k(E,2);X.__click=[UC,u,p];var ae=C(X),Z=C(ae),re=C(Z);let J;var we=k(re,2);{var me=ge=>{ac(ge,{get isRunning(){return a()},onTimerEnded:y})};V(we,ge=>{r()&&ge(me)})}S(Z),S(ae);var ee=k(ae,2),_e=C(ee),Ce=C(_e,!0);S(_e),S(ee),S(X),S(P),O((ge,pe)=>{ve(F,ge),Ke(Z,`background-image: url('${e.thumb}')`),J=oe(re,1,"thumb-overlay s-15",null,J,pe),ve(Ce,e.title)},[()=>r()?Y("end_screen_next_video"):Y("end_screen_recommended_video"),()=>({withOpacity:r()})]),b(R,A)};V(I,R=>{e.isHide||R(T)})}b(t,x),H(),o()}Ye(["click"]);var s$=require("@vkontakte/videoplayer-core/es2018");var a$=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Mt(()=>{s$.clientChecker.device.isIOS&&(o=setTimeout(()=>{let a=t().querySelector("video");if(!a)return;let l=()=>e(!0),d=()=>e(!1);a.addEventListener("webkitbeginfullscreen",l),a.addEventListener("webkitendfullscreen",d),i=()=>{a.removeEventListener("webkitbeginfullscreen",l),a.removeEventListener("webkitendfullscreen",d)}},0))}),pn(()=>{i==null||i(),clearTimeout(o)})};var l$=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 d$=require("@vkontakte/videoplayer-core/es2018"),c$=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:r,availableSubtitlesList$:a,currentFormat$:l,availableTextTracks$:d}=t.state,s=null,u=()=>e().querySelector("video"),m=()=>d$.clientChecker.device.isIOS&&ye(l)===l$.VideoFormat.DASH_LIVE_CMAF,p=()=>{s==null||s(),s=null},v=_=>{if(p(),!m()||!_)return;let y=u();if(!y)return;let $=new Cp(y),x=ye(d),I=ye(a),T=ye(r);for(let P of x)I.some(z=>z.value===P.id)&&$.attach(P,T.value===P.id);let R=d.subscribe(P=>{for(let E of P)$.updateSrc(E)}),A=()=>{let P=$.getCurrentShowingId();o(ye(a).find(E=>E.value===P))};y.textTracks.addEventListener("change",A),s=()=>{R(),$.detachAll(),y.textTracks.removeEventListener("change",A)}};Mt(()=>i.subscribe(v)),pn(p)};var 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-9"><!></div>'),YC=L("<div><!></div>"),jC=L('<div class="settings-mobile s-9"><!></div>'),XC=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),ZC=L('<div class="player-wrapper s-9" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),JC={hash:"s-9",code:".player-wrapper.s-9{height:100%;position:absolute;width:100%}.player-wrapper.s-9 .player-media{background:var(--black);height:100%;left:0;position:absolute;top:0;transition:transform .2s ease-in-out;width:100%}.spherical-video-icon.s-9{display:inline-block;left:calc(50% - 38px);position:absolute;top:calc(50% - 23px)}.ads-container.s-9{background:var(--black);height:100%;left:0;position:absolute;top:0;width:100%;z-index:var(--ads-container-z-index)}.settings-mobile.s-9{align-items:center;display:flex;left:50%;max-width:320px;position:absolute;top:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);width:90%;z-index:var(--settings-menu-z-index)}"};function rg(t,e){var Fn,Cr;B(e,!0),Q(t,JC);let[i,o]=Ne(),r=()=>w(Le,"$playerPhase",i),a=()=>w(ai,"$isLoaderVisible",i),l=()=>w(Pe,"$adPlaybackState",i),d=()=>w(Zt,"$crashed",i),s=()=>w(ys,"$notificationsToShow$",i),u=()=>w(j,"$playbackState$",i),m=()=>w(kt,"$graphIsOpened$",i),p=()=>w(Fe,"$interactiveHideMobileControls",i),v=()=>w(Bi,"$isEnded$",i),_=()=>w(gt,"$isInteractiveExpectation$",i),y=()=>w(Ct,"$controlsVisible",i),$=()=>w(We,"$touched",i),x=()=>w(ji,"$autoplayNextEnabled$",i),I=()=>w(ci,"$postrollPassed",i),T=()=>w(Br,"$bottomNoSmooth",i),R=()=>w(dt,"$videoSize",i),A=()=>w(_t,"$playerSize",i),P=()=>w(ct,"$isFullscreen",i),E=()=>w(le,"$position$",i),z=()=>w($e,"$duration$",i),F=()=>w(Zo,"$loadedMetadata",i),U=()=>w(Ue,"$settingsMenuVisible",i),X=()=>w(oi,"$scrubbingInProgress",i),ae=()=>w(xt,"$volumeChangingInProgress",i),Z=()=>w(Rt,"$chromecastConnected$",i),re=()=>w(fe,"$isControlsAvailable",i),J=()=>w(ni,"$isInteractiveTime$",i),we=()=>w(Hi,"$isActiveLive",i),me=()=>w(Tt,"$settingsMenuOpenedByKeyboard",i),ee=()=>w(zt,"$language$",i),_e=()=>w(Kt,"$disabledControls$",i),Ce=()=>w(Bt,"$is3DVideo",i),ge=()=>w(W,"$icon3DVideoVisible",i),pe=()=>w(vo,"$chromecastDeviceName$",i),Qe=()=>w(hi,"$currentSubtitle$",i),G=()=>w(Xo,"$currentSubtitleCaptions$",i),D=()=>w(Ro,"$realDuration$",i),Ge=()=>w(nt,"$isLive$",i),K=()=>w(Yt,"$isPlaying$",i),se=()=>w(Gt,"$debugPanelVisible",i),xe=h(e,"videoContainer",15),Be=h(e,"adsSlotId",3,void 0),ot=h(e,"adsParams",3,void 0),ne=h(e,"adsAutoplayParam",3,void 0),ce=h(e,"duration",3,void 0),Re=h(e,"logoTargetUrl",3,""),Ae=h(e,"showNextPrevButtons",3,!1),et=h(e,"nextButtonActive",3,!1),Ee=h(e,"prevButtonActive",3,!1),Te=h(e,"endScreenVideoTitle",3,void 0),He=h(e,"endScreenVideoThumb",3,void 0),Et=h(e,"isOneVideoPlaylist",3,!1),St=h(e,"showMiniTimer",3,!1),Ot=h(e,"fullScreenTarget",3,void 0),lt=h(e,"playerStarted",3,!1),Pt=h(e,"showEndScreen",3,!0),{notifications$:Xt,graphIsOpened$:kt}=_o(),Dt=e.store.getLogger().createComponentLog("Root component"),zt=e.store.interfaceLanguage$,j=e.store.state.playbackState$,Pe=e.store.ads.playbackState,le=e.store.state.positionWithScrubbing$,$e=e.store.state.duration$,Le=e.store.playerPhase,ct=e.store.ui.isFullscreen,Ct=e.store.ui.controlsVisible,fe=e.store.ui.isControlsAvailable,Fe=e.store.ui.interactiveHideMobileControls,Ue=e.store.ui.settingsMenu.visible$,Tt=e.store.ui.settingsMenu.openedByBtnKeyboard$,oi=e.store.ui.scrubbingInProgress,xt=e.store.ui.volumeChangingInProgress,Gt=e.store.ui.debugPanelVisible,ai=e.store.state.isLoaderVisible,Bi=e.store.state.isEnded$,Rt=e.store.state.chromecastConnected$,vo=e.store.state.chromecastDeviceName$,ci=e.store.ads.postrollPassed,nt=e.store.state.isLive$,Yt=e.store.state.isPlaying$,Hi=e.store.state.isActiveLive$,bi=e.store.state.isRewindableLive$,Zt=e.store.state.crashed$,xi=e.store.webApi.annotationsApi,st=e.store.webApi.pictureInPictureApi,dt=e.store.state.videoSize$,hi=e.store.state.currentSubtitle$,Xo=e.store.state.currentSubtitleCaptions$,Ro=e.store.state.duration$,_t=e.store.ui.playerSize,Bt=e.store.ui.is3DVideo,W=e.store.ui.icon3DVideoVisible,Lt=e.store.state.isInteractive,ni=e.store.state.isInteractiveTime$,gt=e.store.state.isInteractiveExpectation$,ei=e.store.state.hasInteractiveBranches,Kt=e.store.ui.controls.disabledControls$,We=e.store.ui.touched,Fi=e.store.ui.overlayContainer$,ji=e.store.ui.autoplayNextEnabled$,Zo=e.store.state.loadedMetadata$,er=e.store.actions.internal.closeSettingsMenu,ro=(Fn=e.store.callbacks)==null?void 0:Fn.onDisabledPlayPrevChapterClick,Ti=(Cr=e.store.callbacks)==null?void 0:Cr.onDisabledSeekToInteractiveClick,bo=e.store.actions.internal.setQuality,No=q(void 0),$o=q(void 0),Ii=q(void 0),yo=q(void 0),xo,Jo,Dr=f(()=>(r()==="video"&&a()||r()==="ads"&&l()==="inactive")&&!d()),Or=q(void 0),{closeNotification:ss,notificationsToShow$:ys}=Xt,_r=f(()=>!!s().slow_video),tr=()=>ss("slow_video"),Br=de(!1),vn,gn=q(!1),br=f(()=>u()!==ga.PlaybackState.PLAYING),$r=q(!1),en=f(()=>m()||p()||!n(gn)&&(v()&&!!ei||n(br)&&_())),yr=q(!0),xr=f(()=>e.uiConfig.features.thumbTimer&&St()&&r()==="video"&&!y()&&!d()&&!Lt&&(e.uiConfig.hideThumbTimerAfterTouch&&!$()||!e.uiConfig.hideThumbTimerAfterTouch)),wr=q(!1),Nn=f(()=>(Pt()||e.showAutoplayNext&&x())&&!!Te()&&!!He()&&(e.showAds&&I()||!e.showAds)&&v()&&!d()&&!n(wr)),Hr=q(!1);st==null||st.setContext(xd());let xs=ut=>{ut&&!Lt&&wi(e.uiConfig.controls.hideTimeoutMobile)};e.store.setUiCallbacks({onStarted:xs});let Fr=()=>{clearTimeout(xo),N(gn,!1),p()&&Fe.set(!1)},wi=ut=>{Fr(),N(gn,!0),xo=setTimeout(()=>N(gn,!1),ut);let wt=ut-100;vn=setTimeout(()=>{T()&&Br.set(!1)},wt>0?wt:ut)},as=Bt.subscribe(ut=>{W.set(ut),ut&&(clearTimeout(Jo),Jo=setTimeout(()=>W.set(!1),e.uiConfig.controls.hide360IconTimeout))}),tn=async(ut=aa())=>{var wt,so,ao,nn,Bo,wo;if(ut&&!ga.clientChecker.device.isIOS){let Xi=Xd(),Un=or(),_n=ga.clientChecker.browser.isSamsungBrowser&&Xi===e.shadowRootContainer;ut=Xi===Un||_n}if(ut){wi(e.uiConfig.controls.hideTimeoutFullscreen);try{await(st==null?void 0:st.exit())}catch(Xi){Dt({message:String(Xi)})}try{let Xi=(wt=R())!=null&&wt.width&&((so=R())!=null&&so.height)?R():A();await Z_(Xi)}catch(Xi){Dt({message:String(Xi)})}}ct.set(ut),e.store.getAdmanWrapper().setFullscreen(ut),P()?(nn=(ao=e.store.callbacks)==null?void 0:ao.onFullscreenEnter)==null||nn.call(ao):(wo=(Bo=e.store.callbacks)==null?void 0:Bo.onFullscreenExit)==null||wo.call(Bo)},ft=ut=>{let wt=ut,{width:so,height:ao}=wt.target;_t.set({width:so,height:ao})},Jt=()=>{let{width:ut,height:wt}=n(No).getBoundingClientRect();_t.set({width:ut,height:wt})};Mt(()=>{var ut;return ju(tn),e.uiConfig.features.annotationsInside&&(xi==null||xi.init(n(No))),Ka(st)&&(st==null||st.assignPlayerContainer(n(No)),st==null||st.setExternalEventHandlers({resize:ft,leavepictureinpicture:Jt})),N(yr,!ga.clientChecker.device.isIphoneOrOldIpad),e.interactiveContainer&&((ut=xe().parentElement)==null||ut.insertBefore(e.interactiveContainer,xe().nextSibling)),()=>{clearTimeout(xo),clearTimeout(vn),clearTimeout(Jo),as(),st==null||st.dispose().catch(wt=>{Dt({message:String(wt)})}),Xu(tn)}});let Dn=q(!0),ir=q(!0),Ur=ut=>{let wt=E()+(ut==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;wt<0?(N(Dn,!1),wt=0):wt>=z()&&(N(ir,!1),wt=z()),N($r,!0),e.seekTime(wt)},or=()=>ga.clientChecker.device.isIOS?n(No):!e.uiConfig.allowChangingFullscreenTarget||!Ot()?e.outerContainerRef:Ot().contains(e.outerContainerRef)?Ot():e.outerContainerRef,nr=async()=>{try{if(aa())await Yu(document),Dt({message:"exit fullscreen"});else{if(Dt({message:"request fullscreen"}),ga.clientChecker.device.isIOS&&!F())return;await Gu(or())}}catch(ut){Dt({message:String(ut)})}},Do=()=>{er()},Sr=ut=>{if(ut.preventDefault(),U()){Do();return}if(!lt()){e.firstStart(),wi(e.uiConfig.controls.hideTimeoutCursor);return}N($r,!1),y()?Fr():wi(e.uiConfig.controls.hideTimeoutMobile)},On=()=>{We.set(!0)},rr=()=>{Lt||(Br.set(!0),wi(e.uiConfig.controls.hideTimeoutCursor))},sr=ut=>{ro&&(ro(ut),wi(e.uiConfig.controls.hideTimeoutMobile))},on=ut=>{Ti&&(Ti(ut),wi(e.uiConfig.controls.hideTimeoutMobile))};De(()=>{Fi.set(n(Or))}),De(()=>{Ct.set((n(br)||U()||X()||ae()||Z()||!n(Nn)&&(v()||n(gn)&&!n($r)))&&!n(en)&&r()==="video"&&!d()&&re())}),De(()=>{!X()&&n(Hr)&&!J()&&wi(e.uiConfig.controls.hideTimeoutMobile),N(Hr,X(),!0)}),De(()=>{N(Dn,E()>0),N(ir,!we()&&E()<z(),!0)}),De(()=>{nc(n(yo),U(),me(),!0)});let hn=Y("aria_label_video_player");a$({fullScreenChangeHandler:tn,getFullscreenTarget:or}),c$({store:e.store,getFullscreenTarget:or});let Bn=(ut,wt)=>{var Bo,wo;let so=(wo=(Bo=e.store.callbacks)==null?void 0:Bo.uiInfo)==null?void 0:wo.onUpcomingLiveViewStateChanged;if(!so)return;let ao=!!wt,nn={...Zn(n(No),{upcomingLiveScreen:wt},"upcomingLiveScreen",ao),...ut};so(nn)};var Ai=ZC();pt("blur",Aa,Do);var Li=C(Ai);ul(Li,{onClick:Sr,get videoContainer(){return xe()},set videoContainer(ut){xe(ut)}});var Oo=k(Li,2);Da(Oo,()=>"slot",!1,(ut,wt)=>{to(ut,()=>({name:cl}))});var Hn=k(Oo,2);Rs(Hn,ee,ut=>{var wt=XC(),so=ue(wt);let ao=f(()=>r()!=="thumb"||d()||Lt&&e.autoplay||e.uiConfig.features.disableThumbUnstartedOnAutoplay&&e.autoplay);al(so,{get hidden(){return n(ao)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var nn=k(so,2);{var Bo=je=>{var jt=qC(),$i=ue(jt);{var zo=ln=>{let dn=f(()=>e.uiConfig.controls.seekStepMobile/1e3);Sp(ln,{side:"left",get seekStep(){return n(dn)},handleSingleFirstClick:Sr,handleSecondClick:()=>Ur("backward")})};V($i,ln=>{n(Dn)&&ln(zo)})}var yn=k($i,2);{var Ir=ln=>{let dn=f(()=>e.uiConfig.controls.seekStepMobile/1e3);Sp(ln,{side:"right",get seekStep(){return n(dn)},handleSingleFirstClick:Sr,handleSecondClick:()=>Ur("forward")})};V(yn,ln=>{n(ir)&&ln(Ir)})}b(je,jt)};V(nn,je=>{e.canRewindLive&&bi&&!_e().has("TIMELINE")&&je(Bo)})}var wo=k(nn,2);{var Xi=je=>{let jt=f(()=>{var $i;return($i=e.live)==null?void 0:$i.startTime});Ac(je,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(jt)},onUpcomingLiveViewStateChanged:Bn})};V(wo,je=>{r()==="LiveWaitingStart"&&je(Xi)})}var Un=k(wo,2);{var _n=je=>{ll(je,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};V(Un,je=>{r()==="LiveWaitingRecover"&&je(_n)})}var rn=k(Un,2);{var ws=je=>{ll(je,{kind:"record",get thumbUrl(){return e.thumbUrl}})};V(rn,je=>{r()==="LiveWaitingRecord"&&je(ws)})}var zr=k(rn,2);{var Ss=je=>{var jt=QC();let $i;var zo=C(jt);Jd(zo,{get adsSlotId(){return Be()},get adsParams(){return ot()},get adsAutoplayParam(){return ne()},get duration(){return ce()},get adsExternalApi(){return e.adsExternalApi},get adsJson(){return e.adsJson}}),S(jt),O(yn=>$i=oe(jt,1,"ads-container s-9",null,$i,yn),[()=>({hidden:r()!=="ads"})]),b(je,jt)};V(zr,je=>{e.showAds&<()&&je(Ss)})}var Ui=k(zr,2);{var Wr=je=>{let jt=f(()=>!Pt()&&e.showAutoplayNext&&x());ng(je,{get title(){return Te()},get thumb(){return He()},get isHide(){return n(jt)},clickCloseIcon:()=>N(wr,!0)})};V(Ui,je=>{n(Nn)&&Te()&&He()&&je(Wr)})}var Ho=k(Ui,2);{var Tr=je=>{Pc(je,{})};V(Ho,je=>{Ce()&&je(Tr)})}var bn=k(Ho,2);{var Kr=je=>{var jt=GC(),$i=C(jt);jd($i,{}),S(jt),b(je,jt)};V(bn,je=>{ge()&&je(Kr)})}var ze=k(bn,2);{var yt=je=>{kc(je,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return pe()},onClick:Sr})};V(ze,je=>{Z()&&je(yt)})}var li=k(ze,2);{var go=je=>{rl(je,{get shifted(){return y()},get captions(){return G()},get position(){return E()},get playerSize(){return A()},isMobile:!0})};V(li,je=>{Qe().value!=="off"&&je(go)})}var Ei=k(li,2);{var Fo=je=>{var jt=YC();jt.__click=[KC,U,Ue,Do];var $i=C(jt);sl($i,{}),S(jt),b(je,jt)};V(Ei,je=>{d()&&je(Fo)})}var lo=k(Ei,2);{var Uo=je=>{let jt=f(()=>r()==="thumb"||r()==="LiveWaitingStart"||r()==="LiveWaitingRecover"||r()==="LiveWaitingRecord"||r()==="ads"),$i=f(()=>r()==="ads"),zo=f(()=>e.canRewindLive&&D()!==0);Ic(je,{get bottomHidden(){return n(jt)},get showControls(){return y()},get bottomNoSmooth(){return T()},get isAds(){return n($i)},get canRewindLive(){return n(zo)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Re()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Ae()},get nextButtonActive(){return et()},get prevButtonActive(){return Ee()},get isOneVideoPlaylist(){return Et()},get customFullscreenSupported(){return n(yr)},get endScreenShown(){return n(Nn)},toggleFullscreen:nr,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:sr,onDisabledSeekToInteractiveClick:on,get playerControlsWrapperRef(){return n($o)},set playerControlsWrapperRef(yn){N($o,yn,!0)},get playerControlsRef(){return n(Ii)},set playerControlsRef(yn){N(Ii,yn,!0)}})};V(lo,je=>{lt()&&je(Uo)})}var sn=k(lo,2);{var lr=je=>{var jt=jC(),$i=C(jt);Rc($i,{get supportLink(){return e.supportLink},get returnFocus(){return u$.noop},get ref(){return n(yo)},set ref(zo){N(yo,zo,!0)}}),S(jt),b(je,jt)};V(sn,je=>{U()&&je(lr)})}var So=k(sn,2);let an=f(()=>!n(xr));ic(So,{get isLive(){return Ge()},get isHidden(){return n(an)},get isPlaying(){return K()},get position(){return E()},get duration(){return z()}});var zn=k(So,2);{var Co=je=>{Ya(je,{})};V(zn,je=>{n(Dr)&&je(Co)})}var $n=k(zn,2);{var Wn=je=>{sc(je,{})};V($n,je=>{se()&&je(Wn)})}var ls=k($n,2);{var dr=je=>{Nc(je,{onClose:tr,onSelectAutoQuality:()=>{bo("auto"),tr()}})};V(ls,je=>{n(_r)&&je(dr)})}b(ut,wt)});var ar=k(Hn,2);Ze(ar,ut=>N(Or,ut),()=>n(Or)),S(Ai),Ze(Ai,ut=>N(No,ut),()=>n(No)),O(()=>Ve(Ai,"aria-label",hn)),pt("click",Ai,On,!0),pt("focusin",Ai,rr,!0),b(t,Ai),H(),o()}Ye(["click"]);function Tp(t){let e="";return no(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),no(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),no(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),no(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),no(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),no(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),no(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),no(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),no(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),no(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),no(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),no(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),no(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),no(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),no(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),no(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),no(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),no(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),no(t.font)&&(e+=`--font:${t.font};`),no(t.controlsGradientHeight)&&(e+=`--controls-gradient-height:${t.controlsGradientHeight};`),no(t.controlsGradient)&&(e+=`--controls-gradient:${t.controlsGradient};`),e.length&&e||void 0}function no(t){return typeof t=="string"&&!t.includes(";")}var p$=require("@vkontakte/videoplayer-shared/es2018");var eT=L('<div class="time-container s-7"><!></div>'),tT=L('<div class="player-wrapper s-7" role="region"><!> <!> <!> <!> <!> <div><!></div></div>'),iT={hash:"s-7",code:".player-wrapper.s-7{height:100%;position:absolute;width:100%}.player-wrapper.s-7 .player-media{background:var(--black);height:100%;left:0;position:absolute;top:0;transition:transform .2s ease-in-out;width:100%}.timeline.s-7{bottom:0;left:0;opacity:0;opacity:1;position:absolute;transition:opacity var(--controls-transition-duration) var(--controls-transition-fn);width:100%;z-index:var(--controls-container-z-index)}.visible.s-7{opacity:1}.time-container.s-7{bottom:8px;position:absolute;right:8px;z-index:var(--thumb-timer-z-index)}"};function sg(t,e){B(e,!0),Q(t,iT);let[i,o]=Ne(),r=()=>w(J,"$scrubbingInProgress",i),a=()=>w(Z,"$playerSize",i),l=()=>w(E,"$isPlaying$",i),d=()=>w(A,"$duration$",i),s=()=>w(U,"$positionWithScrubbing$",i),u=()=>w(T,"$playerPhase",i),m=()=>w(R,"$crashed$",i),p=()=>w(z,"$currentSubtitle$",i),v=()=>w(F,"$currentSubtitleCaptions$",i),_=()=>w(P,"$positionExact$",i),y=()=>w(X,"$isLive$",i),$=()=>w(ae,"$isRewindableLive$",i),x=h(e,"outsideDuration",3,0),I=h(e,"videoContainer",15),{playerPhase:T,state:{crashed$:R,duration$:A,positionExact$:P,isPlaying$:E,currentSubtitle$:z,currentSubtitleCaptions$:F,positionWithScrubbing$:U,isLive$:X,isRewindableLive$:ae},ui:{playerSize:Z,controls:re,scrubbingInProgress:J},actions:{internal:{getVideoElement:we}}}=be(),me=8,ee=q(!1),_e=ri({}),Ce=q(!1),ge=f(()=>!r()&&!n(Ce)),pe=()=>{N(ee,!0)},Qe=()=>{N(ee,!1)},G=(0,p$.debounceFn)(td,260);De(()=>{a(),G(we(),re,_e,n(ee))});let D=f(()=>l()?jo(d()-s()):jo(isFinite(d())?d():x()));var Ge=tT(),K=C(Ge);ul(K,{hideCursor:!1,get videoContainer(){return I()},set videoContainer(Te){I(Te)}});var se=k(K,2);Da(se,()=>"slot",!1,(Te,He)=>{to(Te,()=>({name:cl}))});var xe=k(se,2);let Be=f(()=>u()!=="thumb"||m());al(xe,{get hidden(){return n(Be)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var ot=k(xe,2);{var ne=Te=>{rl(Te,{shifted:!1,get captions(){return v()},get position(){return _()},get playerSize(){return a()}})};V(ot,Te=>{p().value!=="off"&&n(ge)&&Te(ne)})}var ce=k(ot,2);{var Re=Te=>{var He=eT(),Et=C(He);tc(Et,{get isLive(){return y()},get isPlaying(){return l()},get time(){return n(D)}}),S(He),b(Te,He)};V(ce,Te=>{n(ge)&&Te(Re)})}var Ae=k(ce,2);let et;var Ee=C(Ae);il(Ee,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return $()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:me,tooltipRightOffset:me,get ref(){return _e.timeline},set ref(Te){_e.timeline=Te}}),S(Ae),S(Ge),O(Te=>et=oe(Ae,1,"timeline s-7",null,et,Te),[()=>({visible:n(ee)})]),pt("mouseenter",Ge,pe),pt("mouseleave",Ge,Qe),pt("mouseenter",Ae,()=>N(Ce,!0)),pt("mouseleave",Ae,()=>N(Ce,!1)),b(t,Ge),H(),o()}var oT=L("<div><!></div>"),nT={hash:"s-2",code:'.vk-vp-root.s-2{--white:#fff;--black:#000;--red:#ff3347;--blue-light:#70c1ff;--black-alpha-40:rgba(0,0,0,.4);--white-alpha-24:hsla(0,0%,100%,.24);--white-alpha-72:hsla(0,0%,100%,.72);--devider-gray:#dce1e6;--text-gray:#626d7a;--font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;--controls-height:40px;--controls-gradient-height:100px;--controls-transition-duration:0.25s;--controls-transition-fn:cubic-bezier(0.455,0.03,0.515,0.955);--controls-desktop-item-margin-left:4px;--controls-desktop-padding-horizontal:4px;--focused:var(--white);--focused-outline-width:2px;--focused-outline-radius:0;--focused-element-shadow:inset 0 0 0 var(--focused-outline-width) var(--focused);--focused-slider-shadow:0 0 0 2px var(--focused);--big-play-size:96px;--big-play-radius:50%;--big-play-bg-color:rgba(0,0,0,.5);--big-play-hover-bg-color:rgba(0,0,0,.6);--big-play-icon-width:38px;--big-play-icon-height:33px;--interactive-episode-complete:#5c9ce6;--slider-bg:hsla(0,0%,100%,.4);--slider-filled-bg:var(--white);--slider-handle-bg:var(--white);--slider-loaded-bg:hsla(0,0%,100%,.4);--slider-height:3px;--slider-video-episode-gap:1.5px;--slider-radius:0px;--slider-handle-size:12px;--slider-filled-ads:#67a5eb;--slider-disabled-color:hsla(0,0%,97%,.31);--slider-volume-height:5px;--slider-volume-radius:calc(var(--slider-volume-height)/2);--slider-volume-handle-size:13px;--timeline-slider-filled-active-live-bg:var(--red);--timeline-slider-handle-active-live-bg:var(--red);--timeline-slider-bg:var(--slider-bg);--timeline-slider-filled-bg:var(--slider-filled-bg);--timeline-slider-handle-bg:var(--slider-handle-bg);--timeline-slider-loaded-bg:var(--slider-loaded-bg);--volume-slider-bg:var(--slider-bg);--volume-slider-filled-bg:var(--slider-filled-bg);--volume-slider-handle-bg:var(--slider-handle-bg);--controls-time:var(--white);--controls-gradient:linear-gradient(180deg,transparent 0%,rgba(0,0,0,.005) 6.67%,rgba(0,0,0,.02) 13.33%,rgba(1,1,1,.04) 20%,rgba(1,1,1,.07) 26.67%,rgba(2,2,2,.11) 33.33%,rgba(3,3,3,.16) 40%,rgba(4,4,4,.22) 46.67%,rgba(6,6,6,.28) 53.33%,rgba(7,7,7,.33) 60%,rgba(8,8,8,.38) 66.67%,rgba(9,9,9,.42) 73.33%,rgba(9,9,9,.46) 80%,hsla(0,0%,4%,.48) 86.67%,hsla(0,0%,4%,.5));--timeline-preview-shadow:rgba(0,0,0,.08);--timeline-preview-bg:#222;--timeline-padding-horizontal:10px;--timeline-padding-vertical-top:3px;--timeline-padding-vertical-bottom:4px;--timeline-height:calc(var(--timeline-padding-vertical-bottom) + var(--timeline-padding-vertical-top) + var(--slider-height));--preview-track-frame-height-vertical:114px;--preview-track-frame-height-horizontal:65px;--preview-track-controls-top:16px;--preview-track-time-line-height:16px;--preview-track-bottom-offset:10px;--preview-track-height:calc(var(--preview-track-frame-height-vertical) + var(--preview-track-bottom-offset));--preview-track-controls-top-offset:calc(var(--timeline-height) + var(--preview-track-controls-top) + var(--preview-track-time-line-height));--settings-bg:rgba(0,0,0,.72);--settings-item-bg-hover:hsla(0,0%,100%,.08);--settings-radius:8px;--mobile-settings-bg:#2c2d2e;--divider-border:1px solid var(--white-alpha-24);--toggle-color-separator:#363738;--toggle-color-off:#656565;--toggle-color-on:#71aaeb;--toggle-color-autoplay-on:var(--white);--notification-bg:#2c2d2e;--notification-radius:8px;--button-hover-transition:opacity 0.2s;--video-container-z-index:0;--controls-container-z-index:1;--ads-container-z-index:1;--end-screen-mobile-z-index:1;--notification-z-index:1;--thumb-timer-z-index:2;--debug-panel-z-index:2;--modal-z-index:2;--settings-menu-z-index:2;--context-menu-z-index:3;--hot-key-helpers-container-z-index:3;--overlay-container-z-index:4;--rotate-transition-duration:0.25s;--btn-color:var(--white);--double-forward-bg:rgba(0,0,0,.6);background:var(--black);color:var(--white);font-family:var(--vk-vp-custom-font,var(--font));font-size:12px;height:100%;line-height:normal;outline:0;overflow:hidden;position:relative;user-select:none;width:100%}.vk-vp-root.visible-outside.s-2{overflow:visible}.vk-vp-root.s-2 *{-webkit-tap-highlight-color:transparent}.vk-vp-root.s-2 button{background:transparent;border:none;color:inherit;font:inherit;line-height:normal;margin:0;overflow:visible;padding:0;width:auto;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;cursor:pointer}.vk-vp-root.s-2 p{margin:0}.vk-vp-root.s-2 svg:not(.interactive-root svg){pointer-events:none}.vk-vp-root.s-2 .interactive-root{font-family:var(--vk-vp-int-custom-font,inherit)}.vk-vp-root.s-2 :focus,.vk-vp-root.s-2 :focus-visible{outline:none}.vk-vp-root.s-2 :focus-visible{border-radius:var(--focused-outline-radius);box-shadow:var(--focused-element-shadow)}.vk-vp-root.s-2 .focus-hidden:focus-visible{box-shadow:none}.vk-vp-root.s-2 .hidden{opacity:0;visibility:hidden}.vk-vp-root.s-2 .out-of-flow{content-visibility:hidden!important}.vk-vp-root.s-2 .overlay-container{height:100%;left:0;pointer-events:none;position:fixed;top:0;width:100%;z-index:var(--overlay-container-z-index)}.vk-vp-root.s-2 .out-of-view{left:-1000vh!important;position:absolute!important}.vk-vp-root.s-2 .icon.icon-error-stub{align-items:center;display:flex;justify-content:center}'};function ag(t,e){B(e,!0),Q(t,nT);let[i,o]=Ne(),r=()=>w(lt,"$isLive$",i),a=()=>w(xi,"$availableSubtitlesList$",i),l=()=>w(st,"$isPreviewTrackHorizontallyAligned$",i),d=h(e,"sources",7),s=h(e,"store",7),u=h(e,"microStoresRoot",7),m=h(e,"videoConfig",7),p=h(e,"uiConfig",7),v=h(e,"title",7),_=h(e,"thumbUrl",7),y=h(e,"interactiveContainer",7),$=h(e,"interactiveController",7),x=h(e,"subtitles",7),I=h(e,"subtitlesForcedLanguage",7),T=h(e,"live",7),R=h(e,"preload",7),A=h(e,"autoplay",7),P=h(e,"volume",7,void 0),E=h(e,"muted",7,void 0),z=h(e,"fromTime",7),F=h(e,"canRewindLive",7),U=h(e,"showAds",7),X=h(e,"adsSlotId",7,void 0),ae=h(e,"adsParams",7,void 0),Z=h(e,"adsAutoplayParam",7,void 0),re=h(e,"duration",7,void 0),J=h(e,"logoClickable",7),we=h(e,"logoHidden",7),me=h(e,"isMobile",7),ee=h(e,"showNextPrevButtons",7,!1),_e=h(e,"nextButtonActive",7,!1),Ce=h(e,"prevButtonActive",7,!1),ge=h(e,"endScreenVideoTitle",7,void 0),pe=h(e,"endScreenVideoThumb",7,void 0),Qe=h(e,"isOneVideoPlaylist",7,!1),G=h(e,"supportLink",7),D=h(e,"shadowRootContainer",7),Ge=h(e,"outerContainerRef",7),K=h(e,"fullScreenTarget",7,void 0),se=h(e,"failoverHosts",7,void 0),xe=h(e,"showMiniTimer",7,!1),Be=h(e,"saveRate",7),ot=h(e,"seekToInteractive",7,pl.noop),ne=h(e,"playPrevChapter",7,pl.noop),ce=h(e,"volumeMultiplier",7),Re=h(e,"showAutoplayNext",7),Ae=h(e,"showEndScreen",7,!0),et=h(e,"keyboardControls",15,void 0),{subscribers:Ee,stores:Te}=u();s_(p());let He=Vt(),Et=p().logoLink,St=s().ui.debugPanelVisible,Ot=s().ui.playerSize,lt=s().state.isLive$,Xt=s().state.isInteractive&&sd.clientChecker.device.isAndroid,kt=q(void 0),Dt=null,zt=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}),h_(s(),Te),De(()=>{var W,Lt;s().ui.isMobile.set(me()),(Lt=(W=m().callbacks)==null?void 0:W.onDomReady)==null||Lt.call(W)});let j=(W=!1)=>{N(zt,!0),W?s().actions.external.firstStart(U()):s().actions.internal.firstStart(U())},Pe=()=>{if(He.features.qualityDetailsSubMenuEnabled){let W=H_(s().videoId);if(W)switch(W.type){case"high_quality":s().actions.internal.setHighQualityEnabled(!0,W.appliesTo);break;case"traffic_saving":s().actions.internal.setTrafficSavingEnabled(!0,W.appliesTo);break;case"exact_quality":s().actions.internal.setQuality(W.quality);break}}else{F_(s().videoId),Jf()&&s().actions.internal.setTrafficSavingEnabled(!0);let Lt=jf(s().videoId);Lt&&s().actions.internal.setQuality(Lt)}};function le(W){var Kt,We,Fi;let Lt=d()||W;Lt&&s().initVideo({container:n(kt),sources:Lt,failoverHosts:se(),subtitles:x(),subtitlesForcedLanguage:I(),volumeMultiplier:ce()});let ni=pl.safeStorage.get(Wd)==="true";St.set(ni),z()>0&&s().actions.external.seekTime(z());let gt=me()?He.volumeDefault:(We=(Kt=P())!=null?Kt:Bu())!=null?We:He.volumeDefault,ei=(Fi=E())!=null?Fi:V_();if(s().actions.external.setVolume(gt),s().actions.external.setMuted(ei),s().getAdmanWrapper().setInitialVolume(ei?0:gt),Pe(),He.features.saveRate&&Be()){let ji=D_();ji&&!r()&&s().actions.internal.setPlaybackRate(ji)}if(Re()){let ji=B_();ji&&s().actions.internal.setAutoplayNextEnabled(ji)}s().ui.isAutoplay.set(A()),A()&&j(),R()&&He.features.preload&&s().actions.internal.preload()}let $e=W=>{if(window.ResizeObserver){let Lt,ni;Dt=new ResizeObserver((0,pl.throttleFn)(gt=>{let ei=gt[0];if(ei.contentBoxSize){let Kt=Array.isArray(ei.contentBoxSize)?ei.contentBoxSize[0]:ei.contentBoxSize;Lt=Kt.inlineSize,ni=Kt.blockSize}else ei.contentRect&&(Lt=ei.contentRect.width,ni=ei.contentRect.height);Ot.set({width:Lt,height:ni})},300)),Dt.observe(W)}W.clientWidth&&W.clientHeight&&Ot.set({width:W.clientWidth,height:W.clientHeight})},Le=()=>{document.hidden&&s().actions.external.stop()};Mt(()=>{var ni,gt,ei,Kt;Xt&&document.addEventListener("visibilitychange",Le),He.debugLog&&s().actions.internal.startLogging(),$e(n(kt));let W=Ee.map(We=>We.init({store:s(),microStores:Te,config:m(),interactiveController:$(),uiConfig:p()})),Lt=()=>{Xt&&document.removeEventListener("visibilitychange",Le),Dt==null||Dt.disconnect(),W.forEach(We=>We.unsubscribe()),s().destroy()};return((ni=T())==null?void 0:ni.status)==="upcoming"?(s().actions.internal.setLiveWaitingStart(!0),Lt):((gt=T())==null?void 0:gt.status)==="waiting"?(s().actions.internal.setLiveWaitingRecover(!0),Lt):(((ei=T())==null?void 0:ei.status)==="finished"||((Kt=T())==null?void 0:Kt.status)==="postlive")&&!(d()&&(0,sd.areValidLiveRecordSources)(d()))?(s().actions.internal.setLiveWaitingRecord(!0),Lt):(le(),Lt)});function ct(){n(zt)?s().actions.external.play():j(!0)}function Ct(){s().actions.external.pause()}function fe(W){s().actions.external.setMuted(W)}function Fe(){s().actions.external.toggleSubtitle()}function Ue(W,Lt){s().actions.external.changeSubtitle(W,Lt)}function Tt(W){s().actions.external.changeAudioStream(W)}function oi(){var W;(W=s().webApi.slotsApi)!=null&&W.haveSlots()&&s().actions.external.hideControls()}function xt(){var W;(W=s().webApi.slotsApi)!=null&&W.haveSlots()&&s().actions.external.showControls()}function Gt(W){me()||W>=0&&W<=1&&s().actions.external.setVolume(W)}function ai(W){s().actions.internal.seekTime(W,f$.SeekAction.UNKNOWN)}function Bi(W){s().actions.external.seekEpisodeStartTime(W)}function Rt(){s().actions.external.returnFocusToEpisodes()}function vo(W){s().actions.external.setPlaybackRate(W)}function ci(W){s().actions.external.setAutoQualityLimits(W)}function nt(){s().actions.external.setQuality("auto")}function Yt(W){s().actions.external.setTrafficSavingEnabled(W)}function Hi(W){s().actions.external.setHighQualityEnabled(W)}let bi=Tp(He.view),Zt=m().playerView==="preview",xi=s().state.availableSubtitlesList$;if(He.features.initSubtitles){let W=!1;De(()=>{var Lt;if(!W&&a().length){W=!0;let ni;if(He.features.userVideoPrefs&&s().videoId){let ei=zu(He.userSalt,String(s().videoId));ei!=null&&ei.subtitleTrackId&&(ni=a().find(Kt=>Kt.value===ei.subtitleTrackId))}let gt=(Lt=I())!=null?Lt:tm();gt&&(ni=a().find(ei=>ei.language===gt)),s().actions.internal.setSubtitle(ni)}})}let st=s().ui.isPreviewTrackHorizontallyAligned;var dt=oT();let hi;var Xo=C(dt);{var Ro=W=>{rg(W,{get store(){return s()},get uiConfig(){return He},get thumbUrl(){return _()},get interactiveContainer(){return y()},get live(){return T()},get autoplay(){return A()},get canRewindLive(){return F()},get showAds(){return U()},get adsSlotId(){return X()},get adsParams(){return ae()},get adsAutoplayParam(){return Z()},get duration(){return re()},get logoClickable(){return J()},get logoHidden(){return we()},get logoTargetUrl(){return Et},get nextButtonActive(){return _e()},get prevButtonActive(){return Ce()},get endScreenVideoTitle(){return ge()},get endScreenVideoThumb(){return pe()},get isOneVideoPlaylist(){return Qe()},get supportLink(){return G()},get shadowRootContainer(){return D()},get outerContainerRef(){return Ge()},get fullScreenTarget(){return K()},get showMiniTimer(){return xe()},get playerStarted(){return n(zt)},get seekToInteractive(){return ot()},get playPrevChapter(){return ne()},firstStart:j,seekTime:ai,get showEndScreen(){return Ae()},get showAutoplayNext(){return Re()},get showNextPrevButtons(){return ee()},get adsExternalApi(){return e.adsExternalApi},get adsJson(){return e.adsJson},get videoContainer(){return n(kt)},set videoContainer(Lt){N(kt,Lt,!0)}})},_t=W=>{var Lt=Me(),ni=ue(Lt);{var gt=Kt=>{sg(Kt,{get thumbUrl(){return _()},get outsideDuration(){return re()},get canRewindLive(){return F()},get videoContainer(){return n(kt)},set videoContainer(We){N(kt,We,!0)}})},ei=Kt=>{og(Kt,{get store(){return s()},get uiConfig(){return He},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 U()},get adsSlotId(){return X()},get adsParams(){return ae()},get adsAutoplayParam(){return Z()},get duration(){return re()},get logoClickable(){return J()},get logoHidden(){return we()},get logoTargetUrl(){return Et},get nextButtonActive(){return _e()},get prevButtonActive(){return Ce()},get endScreenVideoTitle(){return ge()},get endScreenVideoThumb(){return pe()},get isOneVideoPlaylist(){return Qe()},get supportLink(){return G()},get shadowRootContainer(){return D()},get outerContainerRef(){return Ge()},get fullScreenTarget(){return K()},get showMiniTimer(){return xe()},get playerStarted(){return n(zt)},get seekToInteractive(){return ot()},get playPrevChapter(){return ne()},firstStart:j,get showEndScreen(){return Ae()},get showAutoplayNext(){return Re()},get showNextPrevButtons(){return ee()},get adsExternalApi(){return e.adsExternalApi},get adsJson(){return e.adsJson},get getVideoDeeplink(){return e.getVideoDeeplink},get videoContainer(){return n(kt)},set videoContainer(We){N(kt,We,!0)},get keyboardControls(){return et()},set keyboardControls(We){et(We)}})};V(ni,Kt=>{Zt?Kt(gt):Kt(ei,!1)})}b(W,Lt)};V(Xo,W=>{me()?W(Ro):W(_t,!1)})}S(dt),O(W=>{hi=oe(dt,1,"vk-vp-root s-2",null,hi,W),Ke(dt,bi)},[()=>({"root--miui-browser":sd.clientChecker.device.isMobile&&sd.clientChecker.browser.isMiuiBrowser,"visible-outside":Zt,"preview-track-horizontally-alinged":l()})]),b(t,dt);var Bt=H({initVideo:le,play:ct,pause:Ct,setMuted:fe,toggleSubtitle:Fe,changeSubtitle:Ue,changeAudioStream:Tt,hideControls:oi,showControls:xt,setVolume:Gt,seekTime:ai,seekEpisodeStartTime:Bi,returnFocusToEpisodes:Rt,setPlaybackRate:vo,setAutoQualityLimits:ci,setAutoQuality:nt,toggleTrafficSaving:Yt,toggleHighQuality:Hi,get sources(){return d()},set sources(W){d(W)},get store(){return s()},set store(W){s(W)},get microStoresRoot(){return u()},set microStoresRoot(W){u(W)},get videoConfig(){return m()},set videoConfig(W){m(W)},get uiConfig(){return p()},set uiConfig(W){p(W)},get title(){return v()},set title(W){v(W)},get thumbUrl(){return _()},set thumbUrl(W){_(W)},get interactiveContainer(){return y()},set interactiveContainer(W){y(W)},get interactiveController(){return $()},set interactiveController(W){$(W)},get subtitles(){return x()},set subtitles(W){x(W)},get subtitlesForcedLanguage(){return I()},set subtitlesForcedLanguage(W){I(W)},get live(){return T()},set live(W){T(W)},get preload(){return R()},set preload(W){R(W)},get autoplay(){return A()},set autoplay(W){A(W)},get volume(){return P()},set volume(W){P(W)},get muted(){return E()},set muted(W){E(W)},get fromTime(){return z()},set fromTime(W){z(W)},get canRewindLive(){return F()},set canRewindLive(W){F(W)},get showAds(){return U()},set showAds(W){U(W)},get adsSlotId(){return X()},set adsSlotId(W){X(W)},get adsParams(){return ae()},set adsParams(W){ae(W)},get adsAutoplayParam(){return Z()},set adsAutoplayParam(W){Z(W)},get duration(){return re()},set duration(W){re(W)},get logoClickable(){return J()},set logoClickable(W){J(W)},get logoHidden(){return we()},set logoHidden(W){we(W)},get isMobile(){return me()},set isMobile(W){me(W)},get showNextPrevButtons(){return ee()},set showNextPrevButtons(W){ee(W)},get nextButtonActive(){return _e()},set nextButtonActive(W){_e(W)},get prevButtonActive(){return Ce()},set prevButtonActive(W){Ce(W)},get endScreenVideoTitle(){return ge()},set endScreenVideoTitle(W){ge(W)},get endScreenVideoThumb(){return pe()},set endScreenVideoThumb(W){pe(W)},get isOneVideoPlaylist(){return Qe()},set isOneVideoPlaylist(W){Qe(W)},get supportLink(){return G()},set supportLink(W){G(W)},get shadowRootContainer(){return D()},set shadowRootContainer(W){D(W)},get outerContainerRef(){return Ge()},set outerContainerRef(W){Ge(W)},get fullScreenTarget(){return K()},set fullScreenTarget(W){K(W)},get failoverHosts(){return se()},set failoverHosts(W){se(W)},get showMiniTimer(){return xe()},set showMiniTimer(W){xe(W)},get saveRate(){return Be()},set saveRate(W){Be(W)},get showAutoplayNext(){return Re()},set showAutoplayNext(W){Re(W)},get seekToInteractive(){return ot()},set seekToInteractive(W){ot(W)},get playPrevChapter(){return ne()},set playPrevChapter(W){ne(W)},get volumeMultiplier(){return ce()},set volumeMultiplier(W){ce(W)},get showEndScreen(){return Ae()},set showEndScreen(W){Ae(W)},get keyboardControls(){return et()},set keyboardControls(W){et(W)}});return o(),Bt}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 lg(t,e){let i=h(e,"isWhite",3,!1),o=f(()=>i()?"#fff":"#909499");Je(t,{width:"57",height:"60",get fill(){return n(o)},testId:"stub-icon",children:(r,a)=>{var l=rT();si(9),b(r,l)},$$slots:{default:!0}})}var sT=L('<div class="title s-1"> </div>'),aT=L('<div class="playerStub s-1"><!> <!></div>'),lT={hash:"s-1",code:".playerStub.s-1{align-items:center;background-color:#222;background-position:50%;background-size:cover;display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;height:100%;justify-content:center;position:relative;width:100%}.title.s-1{box-sizing:border-box;color:#fff;font-size:15px;left:0;overflow:hidden;padding:18px 20px 10px;position:absolute;text-overflow:ellipsis;top:0;white-space:nowrap;width:100%}"};function dg(t,e){Q(t,lT);var i=aT(),o=C(i);{var r=d=>{var s=sT(),u=C(s,!0);S(s),O(()=>ve(u,e.title)),b(d,s)};V(o,d=>{e.title&&d(r)})}var a=k(o,2);{var l=d=>{let s=f(()=>!!e.thumbUrl);lg(d,{get isWhite(){return n(s)}})};V(a,d=>{(!e.title||!e.thumbUrl)&&d(l)})}S(i),O(()=>Ke(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),b(t,i)}var dT=L('<div class="playerError s-0"><!></div>'),cT={hash:"s-0",code:".playerError.s-0{align-items:center;background-color:#222;background-position:50%;background-size:cover;display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;height:100%;justify-content:center;position:relative;width:100%}"};function cg(t){Q(t,cT);var e=dT(),i=C(e);sl(i,{}),S(e),b(t,e)}var Op=require("@vkontakte/videoplayer-shared/es2018"),Oi=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=ye(e.state.currentPlaybackRate$),r=ye(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 ug(t,e){B(e,!0),Q(t,fT);let[i,o]=Ne(),r=()=>w(u,"$interfaceLanguage$",i),a=()=>w(m,"$isMobile$",i),l=be(),d=Vt(),s=!!l.webApi.pictureInPictureApi,u=l.interfaceLanguage$,m=l.ui.isMobile,p=l.ui.t,v=f(()=>r()&&p("pip_dummy_title")),_=Tp(d.view);var y=pT();let $;var x=C(y);let I;var T=C(x);Je(T,{width:"57",height:"56",testId:"pip-dummy-icon",children:(P,E)=>{var z=uT();si(),b(P,z)},$$slots:{default:!0}}),S(x);var R=k(x,2),A=C(R,!0);S(R),S(y),O((P,E)=>{$=oe(y,1,"player-pip-dummy s-6",null,$,P),Ke(y,_),I=oe(x,1,"dummy-image s-6",null,I,E),ve(A,n(v))},[()=>({"is-pip-api":s}),()=>({desktop:!a()})]),b(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=Zr(ug,d),(e=this.pipWindow)==null||e.document.body.append(a),this.info.isActive$.next(!0),(i=this.pipWindow)==null||i.addEventListener("unload",s=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(Na(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1),this.pipWindow=void 0)})}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 m$(t){return t instanceof Bc}var Pp=class{static getLatestSupportedVersion(e){let i=new Wa(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 v$="Inner error. Unexpectedly root annotation container null reference exception",g$="Annotation with such name already exists",h$="Annotation with such name does not exist";var dd=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var cd=require("@vkontakte/videoplayer-shared/es2018"),_T="1",bT=100,kp=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(v$);if(this.annotations.has(e))throw new dd(g$);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(h$);return i}remove(e){let i=this.get(e);this.annotations.delete(e)&&i.remove()}clear(){for(let e in this.annotations.keys())this.remove(e)}destroy(){var e;this.annotations.clear(),this.subscriptions.unsubscribe(),(e=this.mutationObserver)==null||e.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,i,o){let r=e.offsetTop,a=e.offsetLeft,l=e.offsetWidth,d=e.offsetHeight;return r<0||a<0||a+l>i||r+d>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};var fl=require("@vkontakte/videoplayer-shared/es2018"),mn=class{init({store:e,microStores:i,interactiveController:o,config:r}){return(0,fl.assertNonNullable)(e),(0,fl.assertNonNullable)(i),(0,fl.assertNonNullable)(r),r.interactiveData&&(0,fl.assertNonNullable)(o),this.subscription=new fl.Subscription,this.subscription}};var Fc=class extends mn{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...de(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{isInteractiveExpectation$:r}=i.store.state;return o.add(r.subscribe(a=>{this.state$.set(a?!0:null)})),o}};var Uc=class extends mn{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...de(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{microStores:r,store:a}=i,{fakeIsPlaying$:l}=r,{isInteractiveExpectation$:d,isPlaying$:s}=a.state,{controlsVisible:u,isMobile:m}=a.ui,p=ye(m),v=()=>p&&ye(u);return o.add(u.subscribe(_=>{if(!p)return;let y=ye(l);ye(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=ye(d);if(v()){this.state$.set(!0);return}y&&this.state$.set(!_)})),o}};var zc=class extends mn{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=de("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:r}=i;return o.add(r.state.interactiveEpisodes$.subscribe(a=>{a.length&&(a.every(l=>l.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};var _$=require("@vkontakte/videoplayer-shared/es2018"),pg=de(!1),Ap=null,Wc=class extends mn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...pg,set:(i,o=!1)=>{i!==ye(pg)&&(this.clearTimeout(),pg.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=>{ye(l)&&p&&this.state$.set(!1)}));let m=(a==null?void 0:a.interactiveData)||{tooltipHelpHintActive:!1};return o.add((0,_$.combine)({isPlaying$:d,isInteractiveTime$:l,interactiveTimeIndicator:u}).subscribe(({isPlaying$:p,isInteractiveTime$:v,interactiveTimeIndicator:_})=>{var y,$;if(!(!p||!(_!=null&&_.isDisplayed))){if(!v)return this.state$.set(!1);m.tooltipHelpHintActive&&Ap===null&&(Ap=!0,m.tooltipHelpHintActive=!1,this.state$.set(!0),($=(y=r.callbacks)==null?void 0:y.onInteractiveTimeIndicatorHintDeactivated)==null||$.call(y))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};var Lp=require("@vkontakte/videoplayer-shared/es2018");var Kc=class extends mn{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...de(null),toggle:Lp.noop};this.checkIfShouldHide=i=>Fs(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(ye(l)))return;let s=ye(this.state$),{isEnded$:u,playbackState$:m}=r.state,{disabledControls$:p}=r.ui.controls,v=ye(u),_=ye(m);if(s)try{await(a==null?void 0:a.toggleGraphView(!1)),this.state$.set(!1),p.remove(zf),!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(zf),!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 fg=require("@vkontakte/videoplayer-shared/es2018"),qc=class extends mn{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:de(!1),isEnabled$:de(!1),type$:de(void 0)}}init(i){let o=super.init(i),{store:r}=i,{info:{isActive$:a,isEnabled$:l,type:d}}=r.webApi.pictureInPictureApi||{info:{isActive$:new fg.ValueSubject(!1),isEnabled$:new fg.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"),b$=({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 mn{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:de({}),showNotification:i=>{this.state$.notificationsToShow$.update(o=>(o[i]=!0,o)),this.notificationManager.notificationShowed(i)},closeNotification:i=>{this.state$.notificationsToShow$.update(o=>(delete o[i],o))}}}init(i){let o=super.init(i),{store:r,uiConfig:{features:{maxCountShowSlowVideoNotification:a,timeoutShowSlowVideoNotification:l,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:s}}}=i;this.notificationManager=b$({maxShowCount:a,timeout:l});let u=r.getPlayer();return o.add(u.events.severeStallOccured$.pipe((0,Vp.filterChanged)(),(0,Vp.filter)(m=>m)).subscribe(()=>{d&&!u.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(s&&r.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var $$=()=>[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 mg(t,e){B(e,!0),Q(t,wT);let i=null,o=q(null);De(()=>(n(o)&&(i=window.setTimeout(()=>{N(o,null)},e.animationDuration)),()=>{i&&clearTimeout(i)}));function r(s){e.playbackStatusShow&&N(o,s?"prev":"next",!0)}var a=Me(),l=ue(a);{var d=s=>{var u=Me(),m=ue(u);Rs(m,()=>n(o),p=>{var v=xT(),_=C(v);let y=f(()=>n(o)==="prev");Oc(_,{get duration(){return e.animationDuration},get Icon(){return va},get reversed(){return n(y)}}),S(v),b(p,v)}),b(s,u)};V(l,s=>{e.playbackStatusShow&&n(o)&&s(d)})}return b(t,a),H({startVideoChangedAnimation:r})}var y$=require("@vkontakte/videoplayer-shared/es2018"),vg=(0,y$.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,Qt=(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:Oi.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),gg=ri({animationDuration:0,playbackStatusShow:!1}),Dp=class extends vg{constructor(){super(),Qt(this,"svelteStubComponent"),Qt(this,"svelteRootComponent"),Qt(this,"sveltePersistentLayerComponent"),Qt(this,"svelteErrorComponent"),Qt(this,"store"),Qt(this,"microStoresRoot"),Qt(this,"statistics"),Qt(this,"sentry"),Qt(this,"_shadowRoot"),Qt(this,"playerContainer"),Qt(this,"rootContainer"),Qt(this,"stateContainer"),Qt(this,"shadowRootContainer"),Qt(this,"playerId"),Qt(this,"uiConfig"),Qt(this,"coreConfig"),Qt(this,"statisticsConfig"),Qt(this,"metaConfig"),Qt(this,"interactiveController"),Qt(this,"interactiveContainer"),Qt(this,"graphMadePause"),Qt(this,"currentPlayingVideoIndex",0),Qt(this,"needToRepeatPlaylist",!1),Qt(this,"videoConfig"),Qt(this,"pictureInPictureApi"),Qt(this,"mediaSessionApi"),Qt(this,"unsubscribePlayerPhaseSubscription"),Qt(this,"logger"),Qt(this,"log"),Qt(this,"subscription"),Qt(this,"interactiveSubscription"),Qt(this,"annotationsApi"),Qt(this,"slotsApi"),Qt(this,"focusManager"),Qt(this,"prevIsid"),Qt(this,"isInited",!1),Qt(this,"postponedInitParams",null),Qt(this,"internalsExposure",null),Qt(this,"shadowDOMCallbacksDisabled",!1),Qt(this,"fatalError$",new Op.ValueSubject(null)),Qt(this,"createOneStat",(e,i={})=>{var o,r,a,l;if(!this.videoConfig)return;let{albumId:d,statPlace:s,statUserSalt:u,statTrackCode:m,statVKAppId:p,refreshStatAuthToken:v,autoplay:_,isMobile:y,isTouch:$,refDomain:x,deviceId:I,interactiveData:T}=Hc(this.videoConfig,i),R=(o=T==null?void 0:T.projectInfo)==null?void 0:o.pid,A=(a=(r=this.interactiveController)==null?void 0:r.state.isReplay$.getValue())!=null?a:!1;A&&(this.prevIsid=void 0);let{unitedVideoId:P,isClip:E=!1}=e;if(this.uiConfig.features.statistics&&P)try{return new pd.OneStat({movieId:P,albumId:d,place:s,trackCode:m,vkAppId:p,autoplay:(l=_&&!this.interactiveController)!=null?l:!1,mobile:$!=null?$:y,clip:E,refDomain:x,deviceId:I,isPreviewPlayerView:this.videoConfig.playerView==="preview",...R&&(!this.isInited||A)&&{projectId:Number(R)}},{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 Oi.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new Oi.Subscription,this.interactiveSubscription=new Oi.Subscription,this.graphMadePause=!1,this.fatalError$.subscribe(e=>{this.unmountComponent(this.svelteErrorComponent),e&&(this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.svelteErrorComponent=Zr(cg,{target:this.playerContainer}))})}connectedCallback(){var e,i;if(this.rootContainer)return;this.initPlayerRootContainers();let o=(e=this.getAttribute("stub-title"))!=null?e:void 0,r=(i=this.getAttribute("stub-thumb-url"))!=null?i:void 0,a=ri({title:o,thumbUrl:r}),l={target:this.playerContainer,props:a};this.svelteStubComponent=Zr(dg,l),this.sveltePersistentLayerComponent=Zr(mg,{target:this.playerContainer,props:gg}),this.postponedInitParams&&(this.initPlayer(...this.postponedInitParams),this.postponedInitParams=null)}updatePersistentLayerProps(){if(!this.uiConfig)return;let{playbackStatusNextVideoAnimationDuration:e,features:{playbackStatusShow:i,playbackStatusNextVideoShow:o}}=this.uiConfig;gg.animationDuration=e,gg.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,m,p,v,_;if(!this.videoConfig)return;let{albumId:y,statPlace:$,statAuthToken:x,preload:I,autoplay:T,volume:R,muted:A,fromTime:P,canRewindLive:E,supportLink:z,showAds:F,adsSlotId:U,adsParams:X={},adsAutoplayParam:ae,interfaceLanguage:Z,isCyrillicRelatedInterface:re,logoClickable:J,logoHidden:we,isMobile:me,isTouch:ee,isAudioDisabled:_e,isLiveCatchUpMode:Ce,fullScreenTarget:ge,failoverHosts:pe,canDownload:Qe,callbacks:G,interactiveData:D,showThumbTimer:Ge,additionalButtons:K=[],additionalSettingsMenuItems:se=[],additionalContextMenuItems:xe=[],repeat:Be,loop:ot,saveRate:ne,volumeMultiplier:ce,showEndScreen:Re,showAutoplayNext:Ae,mediascopePixels:et}=Hc(this.videoConfig,i),{sources:Ee,title:Te,thumbUrl:He,unitedVideoId:Et,isClip:St=!1,duration:Ot,adsParams:lt={},videoEpisodes:Pt,previewThumbsData:Xt,subtitles:kt,subtitlesForcedLanguage:Dt,live:zt,adsExternalApi:j,adsJson:Pe}=e;if(!Ee&&!zt){let ci=new Error("empty sources and live");this.fatalError$.next(ci),(r=G.onCrashed)==null||r.call(G,ci.message);return}let le={...X,...lt},$e=this.getNextVideoInfo(),Le={sources:Ee,title:Te,thumbUrl:He,subtitles:kt,subtitlesForcedLanguage:Dt,unitedVideoId:Et,isClip:St,live:zt,albumId:y,statPlace:$,autoplay:T,muted:A,volume:R,fromTime:P,canRewindLive:E,showAds:F,adsSlotId:U,adsParams:le,adsAutoplayParam:ae,duration:Ot,logoClickable:J,logoHidden:we,isTouch:ee!=null?ee:me,repeat:Be,loop:ot,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:$e.nextVideoTitle,endScreenVideoThumb:$e.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},ct={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi,focusManager:this.focusManager};this.log({message:`create player, props: ${JSON.stringify(Le)}`});let Ct=(a=this.interactiveController)==null?void 0:a.state.statistics$.getValue(),fe=(Ct==null?void 0:Ct.oneStat)||this.createOneStat(e,i),Fe=this.createThinOneStat(e,i),Ue;et&&(Ue=new pd.MediascopePixel({pixels:et})),(fe||Fe)&&(this.statistics=new fp(fe,Fe,Ue,Ct==null?void 0:Ct.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new za(this.uiConfig.sentry,{version:Ha,env:Nu},{movieId:Et,albumId:y,place:$,autoplay:(l=T&&!this.interactiveController)!=null?l:!1,mobile:ee!=null?ee:me,clip:St}),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,...za.getInstance()};let oi=!!D,xt=[],Gt="tooltip_interactive_go_back_disabled_first";if(oi&&this.interactiveController){let ci=this.interactiveController.state.isInitialChapter$.getValue(),nt=this.interactiveController.getHistoryState();ci&&xt.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||xt.push("SEEK_TO_INTERACTIVE_BUTTON"),nt.hasPrevChapter$.getValue()||(xt.push("PLAY_PREV_CHAPTER_BUTTON"),ci||(nt.isGoBackLimited$.getValue()?Gt="tooltip_interactive_go_back_disabled_limit":Gt="tooltip_interactive_go_back_disabled"))}let ai=()=>{var ci;this.isInited=!1,this.prevIsid=void 0;let nt=(o==null?void 0:o.info.isEnded$.getValue())&&((ci=this.interactiveController)==null?void 0:ci.state.isEndChapter$.getValue());G.onReplayInteractiveVideo&&!nt?G.onReplayInteractiveVideo():this.replayInteractiveVideo()},Bi=Be&&this.videoConfig.videos.length===1;this.store=kb({player:o,interfaceLanguage:Z,isCyrillicRelatedInterface:re,videoId:Et,isClip:St,isLiveCatchUpMode:Ce,isAudioDisabled:_e,statAuthToken:x,callbacks:G,webApi:ct,videoEpisodes:Pt,previewThumbsData:Xt,canDownload:Qe,uiConfig:this.uiConfig,coreConfig:this.coreConfig,metaConfig:this.metaConfig,disabledControls:xt,isInteractive:oi,saveRate:ne,interactiveRanges$:(m=this.interactiveController)==null?void 0:m.state.interactiveRanges$,isInteractiveTime$:(p=this.interactiveController)==null?void 0:p.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:ai,playPrevChapterDisabledTooltip:Gt,hasInteractiveBranches:!!((_=(v=this.interactiveController)==null?void 0:v.getChapterBranches())!=null&&_.length),additionalButtons:this.uiConfig.features.additionalButtons?K:[],additionalSettingsMenuItems:se!=null?se:[],additionalContextMenuItems:xe!=null?xe:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),onVideoChanged:ci=>{var nt;return(nt=this.sveltePersistentLayerComponent)==null?void 0:nt.startVideoChangedAnimation(ci)},looped:this.uiConfig.features.useLoopSetting?ot:Bi,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView,playerId:this.playerId});let{stores:Rt}=this.microStoresRoot=$$(),vo=()=>{var ci,nt,Yt,Hi,bi,Zt;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(st=>{var dt;return(dt=G==null?void 0:G.onCurrentFormatChanged)==null?void 0:dt.call(G,st)})),this.subscription.add(Rt.interactiveControlsOpacity$.subscribe(st=>{var dt;st!==null&&((dt=this==null?void 0:this.interactiveController)==null||dt.setDisabledControls(st))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(st=>{var dt;return(dt=G==null?void 0:G.onThroughputEstimationChanged)==null?void 0:dt.call(G,st)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(st=>{var dt;return(dt=G==null?void 0:G.onTrafficSavingEnabledChanged)==null?void 0:dt.call(G,st)})),this.subscription.add(this.store.state.highQualityEnabled$.subscribe(st=>{var dt;return(dt=G==null?void 0:G.onHighQualityEnabledChanged)==null?void 0:dt.call(G,st)})),this.subscription.add(this.store.state.isAutoQualityEnabled$.subscribe(st=>{var dt;return(dt=G==null?void 0:G.onAutoQualityEnabledChanged)==null?void 0:dt.call(G,!!st)})),this.subscription.add(new Oi.Observable(st=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(dt=>st.next(dt)))}).pipe((0,Oi.skip)(1)).subscribe(st=>{var dt;return(dt=G==null?void 0:G.onCurrentPlaybackRateChanged)==null?void 0:dt.call(G,st)})),this.subscription.add(this.store.state.volume$.subscribe(st=>{var dt;return(dt=G==null?void 0:G.onVolumeChange)==null?void 0:dt.call(G,st)})),this.subscription.add(this.store.state.muted$.subscribe(st=>{var dt,hi,Xo,Ro;if(st)(dt=G==null?void 0:G.onMute)==null||dt.call(G);else{let _t=(Xo=((hi=this.store)==null?void 0:hi.state.volume$)&&ye(this.store.state.volume$))!=null?Xo:0;(Ro=G==null?void 0:G.onUnmute)==null||Ro.call(G,_t)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(st=>{var dt;return(dt=G==null?void 0:G.onVideoBitrateChanged)==null?void 0:dt.call(G,st)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(st=>{var dt;let hi=(dt=this.store)==null?void 0:dt.ui.controls.disabledControls$;hi&&(st&&!hi.includes(Kd)&&hi.add(Kd),st||hi.remove(Kd))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async st=>{var dt;if(!Gc.clientChecker.browser.isSamsungBrowser||!st||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter((dt=this.videoConfig)==null?void 0:dt.callbacks.onExternalFullscreenExit)})),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(st=>{var dt;return(dt=G==null?void 0:G.onVSIDChanged)==null?void 0:dt.call(G,st)})),this.initMediaSession(),N(Jn,{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:Ee,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:Te,thumbUrl:He,subtitles:kt,subtitlesForcedLanguage:Dt,live:zt,preload:I,autoplay:T,muted:A,volume:R,fromTime:P,canRewindLive:E,supportLink:z,showAds:F,adsSlotId:U,adsParams:le,adsAutoplayParam:ae,duration:Ot,logoClickable:J,logoHidden:we,isMobile:ee!=null?ee:me,failoverHosts:pe,fullScreenTarget:ge,saveRate:ne,shadowRootContainer:this.shadowRootContainer,showMiniTimer:Ge,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:$e.nextVideoTitle,endScreenVideoThumb:$e.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:ce,showEndScreen:Re,showAutoplayNext:Ae,adsExternalApi:j,adsJson:Pe,getVideoDeeplink:this.videoConfig.getVideoDeeplink},!0);let xi={target:this.playerContainer,props:n(Jn)};this.svelteRootComponent=Zr(ag,xi),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(Yt=(nt=(ci=this.videoConfig)==null?void 0:ci.callbacks)==null?void 0:nt.onInited)==null||Yt.call(nt)),(Hi=this.internalsExposure)==null||Hi.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((Zt=(bi=this.videoConfig)==null?void 0:bi.callbacks)!=null&&Zt.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"),vo())}):vo()}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,Oi.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?ye(s):this.videoConfig.interfaceLanguage,{projectInfo:m,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:m,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$:$}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add($.subscribe(I=>{if(!this.isInited)return;let T=this.store;I?T.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):T.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(y.subscribe(I=>{this.store&&this.store.state.isInteractiveExpectation$.set(I)}));let x=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(I=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...I.config,title:(m==null?void 0:m.title)||I.config.title};let T=x?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(I.player,T),x&&(x=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:I,actionType:T})=>{var R,A,P,E,z,F;if(!this.store||!this.microStoresRoot)return;let U=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=ye(this.store.state.isPlaying$)||U;if(((P=(R=this.videoConfig)==null?void 0:R.isTouch)!=null?P:(A=this.videoConfig)!=null&&A.isMobile)&&X){this.store.ui.interactiveHideMobileControls.set(!0);return}(F=(E=this.videoConfig)==null?void 0:(z=E.callbacks).onDisabledInteractiveClick)==null||F.call(z)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:I,removeAllOpenURI:T})=>{this.store&&I==="container-fake-removed"&&T&&this.store.ui.controls.disabledControls$.remove(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 R,A,P;T.length&&((P=(A=(R=this.videoConfig)==null?void 0:R.callbacks)==null?void 0:A.onInteractiveHistoryChanged)==null||P.call(A,T))}))}(l=(a=this.videoConfig)==null?void 0:a.callbacks)!=null&&l.onInteractiveChapterChanged&&this.subscription.add(this.interactiveController.events.chapterChanged$.subscribe(I=>{var T,R,A;(A=(T=this.videoConfig)==null?void 0:(R=T.callbacks).onInteractiveChapterChanged)==null||A.call(R,I.chapter,I.manifestVideo)})),this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var I,T,R,A;(I=this.microStoresRoot)==null||I.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(A=(T=this.videoConfig)==null?void 0:(R=T.callbacks).onInteractiveTimeIndicatorClick)==null||A.call(R)})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(I=>{this.log({message:I.toString()})}))}catch(d){this.log({message:d.message})}}initPlayer(e,i={}){var o,r,a,l,d,s,u,m,p,v,_,y,$,x,I,T,R,A,P,E,z,F,U,X,ae;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,Oi.cloneDeepWith)(e,Z=>Z instanceof vg?Z:void 0)),this.playerId=(0,Oi.getPlayerId)(e.playerId),this.uiConfig=r_((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 Oi.InternalsExposure("ui",this.playerId))),ud.devNull.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+((m=this.videoConfig)==null?void 0:m.showAds)],numbers:[(0,Op.now)()]}),(0,Oi.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(v=(p=this.uiConfig.features.mediaSession)!=null?p:this.videoConfig.isMediaSessionEnabled)!=null?v:!0),(0,Oi.isNonNullable)(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(y=(_=this.uiConfig.features.pip)!=null?_:this.videoConfig.isPictureInPictureEnabled)!=null?y:!0,this.uiConfig.features.dpip=(x=($=this.uiConfig.features.dpip)!=null?$:this.videoConfig.isPictureInPictureEnabled)!=null?x:!0),this.uiConfig.ads.paramsOverride={preview:(I=this.uiConfig.ads.preview)!=null?I:this.videoConfig.adsPreviewParam,...this.uiConfig.ads.paramsOverride},this.videoConfig.isTouch=(R=(T=this.uiConfig.isMobile)!=null?T:this.videoConfig.isTouch)!=null?R:this.videoConfig.isMobile,(A=this.videoConfig).autoplay&&(A.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(P=this.uiConfig.ads.enable)!=null?P:this.videoConfig.showAds,this.videoConfig.adsSlotId=(E=this.uiConfig.ads.slot)!=null?E:this.videoConfig.adsSlotId,this.videoConfig.logoHidden=!((z=this.uiConfig.showLogo)!=null?z:!this.videoConfig.logoHidden),(F=this.videoConfig).canRewindLive&&(F.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(U=this.videoConfig.supportLink)!=null?U: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=Pp.getLatestSupportedVersion(Z):this.pictureInPictureApi=new Wa(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 kp(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),this.focusManager=this._shadowRoot?new Np(this._shadowRoot):void 0,this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteErrorComponent),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveSubscription.unsubscribe()),this.videoConfig.interactiveData?this.initInteractives():this.createPlayer(this.videoConfig.videos[this.currentPlayingVideoIndex]),m$(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(ae=this.slotsApi)==null||ae.init(this.shadowRootContainer,this.store)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateVideos(e,i){if(!this.videoConfig)return;this.log({message:`update ${i} videos, videos: ${JSON.stringify(e)}`}),i==="prev"?(this.videoConfig.videos.splice(0,this.currentPlayingVideoIndex),this.videoConfig.videos.unshift(...e),this.currentPlayingVideoIndex=e.length):i==="next"&&(this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...e));let o=this.getNextVideoInfo();n(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=ye(this.store.state.positionExact$),l=ye(this.store.state.interactiveEpisodes$).find(s=>!s.completed);this.interactiveController.events.playerChanged$.pipe((0,Oi.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&&Na(e)}};var fd=require("@vkontakte/videoplayer-shared/es2018"),Bp=require("@vkontakte/videoplayer-core/es2018"),IT=()=>{window.customElements.define("vk-video-player",Dp)};
|