@vkontakte/videoplayer 1.1.76-beta.2 → 1.1.76-dev.44b02f36.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.js CHANGED
@@ -1,63 +1,408 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.76-beta.2
3
- * Sat, 01 Nov 2025 09:12:28 GMT
2
+ * @vkontakte/videoplayer v1.1.76-dev.44b02f36.0
3
+ * Mon, 10 Nov 2025 14:16:30 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-76/doc/
5
5
  */
6
- "use strict";var L$=Object.create;var xd=Object.defineProperty,M$=Object.defineProperties,V$=Object.getOwnPropertyDescriptor,R$=Object.getOwnPropertyDescriptors,N$=Object.getOwnPropertyNames,yg=Object.getOwnPropertySymbols,O$=Object.getPrototypeOf,xg=Object.prototype.hasOwnProperty,D$=Object.prototype.propertyIsEnumerable;var wg=t=>{throw TypeError(t)};var Qp=(t,e,i)=>e in t?xd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Ae=(t,e)=>{for(var i in e||(e={}))xg.call(e,i)&&Qp(t,i,e[i]);if(yg)for(var i of yg(e))D$.call(e,i)&&Qp(t,i,e[i]);return t},Qt=(t,e)=>M$(t,R$(e));var B$=(t,e)=>{for(var i in e)xd(t,i,{get:e[i],enumerable:!0})},Sg=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of N$(e))!xg.call(t,r)&&r!==i&&xd(t,r,{get:()=>e[r],enumerable:!(o=V$(e,r))||o.enumerable});return t};var Tg=(t,e,i)=>(i=t!=null?L$(O$(t)):{},Sg(e||!t||!t.__esModule?xd(i,"default",{value:t,enumerable:!0}):i,t)),F$=t=>Sg(xd({},"__esModule",{value:!0}),t);var lr=(t,e,i)=>Qp(t,typeof e!="symbol"?e+"":e,i),Gp=(t,e,i)=>e.has(t)||wg("Cannot "+i);var Di=(t,e,i)=>(Gp(t,e,"read from private field"),i?i.call(t):e.get(t)),Qs=(t,e,i)=>e.has(t)?wg("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),xl=(t,e,i,o)=>(Gp(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),Cg=(t,e,i)=>(Gp(t,e,"access private method"),i);var _t=(t,e,i)=>new Promise((o,r)=>{var a=s=>{try{d(i.next(s))}catch(u){r(u)}},l=s=>{try{d(i.throw(s))}catch(u){r(u)}},d=s=>s.done?o(s.value):Promise.resolve(s.value).then(a,l);d((i=i.apply(t,e)).next())});var EC={};B$(EC,{ControlButtonType:()=>Tc,GridTypes:()=>es,InterfaceLanguage:()=>_d.InterfaceLanguage,MenuItemType:()=>Jl,PlayerPhase:()=>ts,VERSION:()=>Da,VKNumericLanguage:()=>_d.VKNumericLanguage,VideoFormat:()=>Hp.VideoFormat,VideoQuality:()=>Hp.VideoQuality,loadVKLangPack:()=>_d.loadVKLangPack,registerPlayerWebComponent:()=>IC});module.exports=F$(EC);var Gs="[",Ys="[!",ya="]",ps={};var eo=Symbol(),Kn=Symbol("filename"),Ig=Symbol("hmr"),Eg="http://www.w3.org/1999/xhtml",du="http://www.w3.org/2000/svg";var Yp="@attach";var cu=!0;var Ag,kg,Pg=(kg=(Ag=globalThis.process)==null?void 0:Ag.env)==null?void 0:kg.NODE_ENV,ke=Pg&&!Pg.toLowerCase().startsWith("prod");var dr=Array.isArray,Lg=Array.prototype.indexOf,wd=Array.from,jp=Object.keys,go=Object.defineProperty,Yo=Object.getOwnPropertyDescriptor,uu=Object.getOwnPropertyDescriptors,Xp=Object.prototype,Mg=Array.prototype,xa=Object.getPrototypeOf,Zp=Object.isExtensible;function js(t){return typeof t=="function"}var bt=()=>{};function Vg(t){return t()}function Xs(t){for(var e=0;e<t.length;e++)t[e]()}var jo=Symbol("$state"),wl=Symbol("legacy props"),Rg=Symbol(""),pu=Symbol("proxy path"),fu=1,Sl=3,cr=8;function mu(t){return t===this.v}function Tl(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Ng(t,e){return t!==e}function Cl(t){return!Tl(t,this.v)}function Og(){if(ke){let t=new Error(`derived_references_self
6
+ "use strict";var K_=Object.create;var gd=Object.defineProperty,q_=Object.defineProperties,Q_=Object.getOwnPropertyDescriptor,j_=Object.getOwnPropertyDescriptors,G_=Object.getOwnPropertyNames,Og=Object.getOwnPropertySymbols,Y_=Object.getPrototypeOf,Ng=Object.prototype.hasOwnProperty,Z_=Object.prototype.propertyIsEnumerable;var Dg=t=>{throw TypeError(t)};var Up=(t,e,i)=>e in t?gd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Q=(t,e)=>{for(var i in e||(e={}))Ng.call(e,i)&&Up(t,i,e[i]);if(Og)for(var i of Og(e))Z_.call(e,i)&&Up(t,i,e[i]);return t},Gt=(t,e)=>q_(t,j_(e));var X_=(t,e)=>{for(var i in e)gd(t,i,{get:e[i],enumerable:!0})},Bg=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of G_(e))!Ng.call(t,r)&&r!==i&&gd(t,r,{get:()=>e[r],enumerable:!(o=Q_(e,r))||o.enumerable});return t};var Hg=(t,e,i)=>(i=t!=null?K_(Y_(t)):{},Bg(e||!t||!t.__esModule?gd(i,"default",{value:t,enumerable:!0}):i,t)),J_=t=>Bg(gd({},"__esModule",{value:!0}),t);var or=(t,e,i)=>Up(t,typeof e!="symbol"?e+"":e,i),zp=(t,e,i)=>e.has(t)||Dg("Cannot "+i);var Hi=(t,e,i)=>(zp(t,e,"read from private field"),i?i.call(t):e.get(t)),zs=(t,e,i)=>e.has(t)?Dg("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),ml=(t,e,i,o)=>(zp(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),Fg=(t,e,i)=>(zp(t,e,"access private method"),i);var xt=(t,e,i)=>new Promise((o,r)=>{var s=a=>{try{d(i.next(a))}catch(u){r(u)}},l=a=>{try{d(i.throw(a))}catch(u){r(u)}},d=a=>a.done?o(a.value):Promise.resolve(a.value).then(s,l);d((i=i.apply(t,e)).next())});var Qw={};X_(Qw,{ControlButtonType:()=>_c,GridTypes:()=>Jr,InterfaceLanguage:()=>ud.InterfaceLanguage,MenuItemType:()=>ql,PlayerPhase:()=>es,VERSION:()=>La,VKNumericLanguage:()=>ud.VKNumericLanguage,VideoFormat:()=>Op.VideoFormat,VideoQuality:()=>Op.VideoQuality,loadVKLangPack:()=>ud.loadVKLangPack,registerPlayerWebComponent:()=>qw});module.exports=J_(Qw);var Ws="[",Ks="[!",ga="]",ss={};var so=Symbol(),Hn=Symbol("filename"),Ug=Symbol("hmr"),zg="http://www.w3.org/1999/xhtml",ou="http://www.w3.org/2000/svg";var Wp="@attach";var nu=!0;var Kg,qg,Wg=(qg=(Kg=globalThis.process)==null?void 0:Kg.env)==null?void 0:qg.NODE_ENV,Re=Wg&&!Wg.toLowerCase().startsWith("prod");var nr=Array.isArray,Qg=Array.prototype.indexOf,hd=Array.from,Kp=Object.keys,mo=Object.defineProperty,Qo=Object.getOwnPropertyDescriptor,ru=Object.getOwnPropertyDescriptors,qp=Object.prototype,jg=Array.prototype,ha=Object.getPrototypeOf,Qp=Object.isExtensible;function qs(t){return typeof t=="function"}var pe=()=>{};function Gg(t){return t()}function Qs(t){for(var e=0;e<t.length;e++)t[e]()}var jo=Symbol("$state"),gl=Symbol("legacy props"),Yg=Symbol(""),su=Symbol("proxy path"),au=1,hl=3,rr=8;function lu(t){return t===this.v}function _l(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Zg(t,e){return t!==e}function bl(t){return!_l(t,this.v)}function Xg(){if(Re){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 Dg(t){if(ke){let e=new Error(`effect_in_teardown
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 Jg(t){if(Re){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 Bg(){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 Fg(t){if(ke){let e=new Error(`effect_orphan
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 eh(){if(Re){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 th(t){if(Re){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 Hg(){if(ke){let t=new Error(`effect_update_depth_exceeded
12
+ https://svelte.dev/e/effect_orphan`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_orphan")}function ih(){if(Re){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 Ug(){if(ke){let t=new Error(`hydration_failed
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 oh(){if(Re){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 zg(){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 Wg(t){if(ke){let e=new Error(`props_invalid_value
16
+ https://svelte.dev/e/hydration_failed`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/hydration_failed")}function nh(){if(Re){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 rh(t){if(Re){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 Kg(t){if(ke){let e=new Error(`props_rest_readonly
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 sh(t){if(Re){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 qg(t){if(ke){let e=new Error(`rune_outside_svelte
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 ah(t){if(Re){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 Qg(){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 Gg(){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 Yg(){if(ke){let t=new Error("state_unsafe_mutation\nUpdating state inside `$derived(...)`, `$inspect(...)` or a template expression is forbidden. If the value should not be reactive, declare it without `$state`\nhttps://svelte.dev/e/state_unsafe_mutation");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_unsafe_mutation")}var fs=!1,ms=!1;function jg(){fs=!0}var Sd=null;function ws(t){let e=Error(),i=e.stack;if(i){let o=i.split(`
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 lh(){if(Re){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 dh(){if(Re){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 ch(){if(Re){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 as=!1,ls=!1;function uh(){as=!0}var _d=null;function ys(t){let e=Error(),i=e.stack;if(i){let o=i.split(`
23
23
  `),r=[`
24
- `];for(let a=0;a<o.length;a++){let l=o[a];if(l!=="Error"){if(l.includes("validate_each_keys"))return null;l.includes("svelte/src/internal")||r.push(l)}}if(r.length===1)return null;go(e,"stack",{value:r.join(`
25
- `)}),go(e,"name",{value:`${t}Error`})}return e}function Qr(t,e){return t.label=e,vu(t.v,e),t}function vu(t,e){var i;return(i=t==null?void 0:t[pu])==null||i.call(t,e),t}function Il(t){if(ke){let e=new Error(`lifecycle_outside_component
24
+ `];for(let s=0;s<o.length;s++){let l=o[s];if(l!=="Error"){if(l.includes("validate_each_keys"))return null;l.includes("svelte/src/internal")||r.push(l)}}if(r.length===1)return null;mo(e,"stack",{value:r.join(`
25
+ `)}),mo(e,"name",{value:`${t}Error`})}return e}function qr(t,e){return t.label=e,du(t.v,e),t}function du(t,e){var i;return(i=t==null?void 0:t[su])==null||i.call(t,e),t}function $l(t){if(Re){let e=new Error(`lifecycle_outside_component
26
26
  \`${t}(...)\` can only be used during component initialisation
27
- https://svelte.dev/e/lifecycle_outside_component`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/lifecycle_outside_component")}var zt=null;function Td(t){zt=t}var ur=null;function Cd(t){ur=t}function El(t){return tf("getContext").get(t)}function Pl(t,e){return tf("setContext").set(t,e),e}function Id(){return tf("getAllContexts")}function F(t,e=!1,i){var o=zt={p:zt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};fs&&!e&&(zt.l={s:null,u:null,r1:[],r2:kr(!1)}),Ao(()=>{o.d=!0}),ke&&(zt.function=i,ur=i)}function H(t){var l,d;let e=zt;if(e!==null){t!==void 0&&(e.x=t);let s=e.e;if(s!==null){var i=xt,o=Ot;e.e=null;try{for(var r=0;r<s.length;r++){var a=s[r];ho(a.effect),Yi(a.reaction),ko(a.fn)}}finally{ho(i),Yi(o)}}zt=e.p,ke&&(ur=(d=(l=e.p)==null?void 0:l.function)!=null?d:null),e.m=!0}return t||{}}function vs(){return!fs||zt!==null&&zt.l===null}function tf(t){var e;return zt===null&&Il(t),(e=zt.c)!=null?e:zt.c=new Map(U$(zt)||void 0)}function U$(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var z$=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function di(t){if(typeof t!="object"||t===null||jo in t)return t;let e=xa(t);if(e!==Xp&&e!==Mg)return t;var i=new Map,o=dr(t),r=K(0),a=ke&&ms?ws("CreatedAt"):null,l=Ot,d=p=>{var m=Ot;Yi(l);var f=p();return Yi(m),f};o&&i.set("length",K(t.length,a));var s="";function u(p){s=p,Qr(r,`${s} version`);for(let[m,f]of i)Qr(f,wa(s,m))}return new Proxy(t,{defineProperty(p,m,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&Qg();var $=i.get(m);return $===void 0?$=d(()=>{var y=K(f.value,a);return i.set(m,y),ke&&typeof m=="string"&&Qr(y,wa(s,m)),y}):N($,f.value,!0),!0},deleteProperty(p,m){var f=i.get(m);if(f===void 0){if(m in p){let b=d(()=>K(eo,a));i.set(m,b),of(r),ke&&Qr(b,wa(s,m))}}else{if(o&&typeof m=="string"){var $=i.get("length"),y=Number(m);Number.isInteger(y)&&y<$.v&&N($,y)}N(f,eo),of(r)}return!0},get(p,m,f){var S;if(m===jo)return t;if(ke&&m===pu)return u;var $=i.get(m),y=m in p;if($===void 0&&(!y||(S=Yo(p,m))!=null&&S.writable)&&($=d(()=>{var C=di(y?p[m]:eo),I=K(C,a);return ke&&Qr(I,wa(s,m)),I}),i.set(m,$)),$!==void 0){var b=n($);return b===eo?void 0:b}return Reflect.get(p,m,f)},getOwnPropertyDescriptor(p,m){var f=Reflect.getOwnPropertyDescriptor(p,m);if(f&&"value"in f){var $=i.get(m);$&&(f.value=n($))}else if(f===void 0){var y=i.get(m),b=y==null?void 0:y.v;if(y!==void 0&&b!==eo)return{enumerable:!0,configurable:!0,value:b,writable:!0}}return f},has(p,m){var b;if(m===jo)return!0;var f=i.get(m),$=f!==void 0&&f.v!==eo||Reflect.has(p,m);if(f!==void 0||xt!==null&&(!$||(b=Yo(p,m))!=null&&b.writable)){f===void 0&&(f=d(()=>{var S=$?di(p[m]):eo,C=K(S,a);return ke&&Qr(C,wa(s,m)),C}),i.set(m,f));var y=n(f);if(y===eo)return!1}return $},set(p,m,f,$){var O;var y=i.get(m),b=m in p;if(o&&m==="length")for(var S=f;S<y.v;S+=1){var C=i.get(S+"");C!==void 0?N(C,eo):S in p&&(C=d(()=>K(eo,a)),i.set(S+"",C),ke&&Qr(C,wa(s,S)))}if(y===void 0)(!b||(O=Yo(p,m))!=null&&O.writable)&&(y=d(()=>K(void 0,a)),N(y,di(f)),i.set(m,y),ke&&Qr(y,wa(s,m)));else{b=y.v!==eo;var I=d(()=>di(f));N(y,I)}var R=Reflect.getOwnPropertyDescriptor(p,m);if(R!=null&&R.set&&R.set.call($,f),!b){if(o&&typeof m=="string"){var E=i.get("length"),P=Number(m);Number.isInteger(P)&&P>=E.v&&N(E,P+1)}of(r)}return!0},ownKeys(p){n(r);var m=Reflect.ownKeys(p).filter(y=>{var b=i.get(y);return b===void 0||b.v!==eo});for(var[f,$]of i)$.v!==eo&&!(f in p)&&m.push(f);return m},setPrototypeOf(){Gg()}})}function wa(t,e){var i;return typeof e=="symbol"?`${t}[Symbol(${(i=e.description)!=null?i:""})]`:z$.test(e)?`${t}.${e}`:/^\d+$/.test(e)?`${t}[${e}]`:`${t}['${e}']`}function of(t,e=1){N(t,t.v+e)}function Al(t){try{if(t!==null&&typeof t=="object"&&jo in t)return t[jo]}catch(e){}return t}function nf(t,e){return Object.is(Al(t),Al(e))}function Gr(t){var e=2050,i=Ot!==null&&(Ot.f&2)!==0?Ot:null;xt===null||i!==null&&(i.f&256)!==0?e|=256:xt.f|=1048576;let o={ctx:zt,deps:null,effects:null,equals:mu,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:xt};return ke&&ms&&(o.created=ws("CreatedAt")),o}function v(t){let e=Gr(t);return _u(e),e}function En(t){let e=Gr(t);return e.equals=Cl,e}function gu(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)ji(e[i])}}var rf=[];function W$(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function lf(t){var e,i=xt;if(ho(W$(t)),ke){let o=Sa;sf(new Set);try{rf.includes(t)&&Og(),rf.push(t),gu(t),e=hu(t)}finally{ho(i),sf(o),rf.pop()}}else try{gu(t),e=hu(t)}finally{ho(i)}return e}function df(t){var e=lf(t);if(t.equals(e)||(t.v=e,t.wv=Ed()),!Ss){var i=(Ts||(t.f&256)!==0)&&t.deps!==null?4096:1024;Pn(t,i)}}var Sa=new Set,kl=new Map;function sf(t){Sa=t}function kr(t,e){var i={f:0,v:t,reactions:null,equals:mu,rv:0,wv:0};return ke&&ms&&(i.created=e!=null?e:ws("CreatedAt"),i.updated=null,i.set_during_effect=!1,i.trace=null),i}function K(t,e){let i=kr(t,e);return _u(i),i}function gs(t,e=!1,i=!0){var r,a;let o=kr(t);return e||(o.equals=Cl),fs&&i&&zt!==null&&zt.l!==null&&((a=(r=zt.l).s)!=null?a:r.s=[]).push(o),o}function N(t,e,i=!1){var r;Ot!==null&&(!mr||(Ot.f&262144)!==0)&&vs()&&(Ot.f&262162)!==0&&!((r=Zo)!=null&&r[1].includes(t)&&Zo[0]===Ot)&&Yg();let o=i?di(e):e;return ke&&vu(o,t.label),Ll(t,o)}function Ll(t,e){if(!t.equals(e)){var i=t.v;if(Ss?kl.set(t,e):kl.set(t,i),t.v=e,ke&&ms&&(t.updated=ws("UpdatedAt"),xt!==null&&(t.set_during_effect=!0)),(t.f&2)!==0&&((t.f&2048)!==0&&lf(t),Pn(t,(t.f&256)===0?1024:4096)),t.wv=Ed(),Zg(t,2048),vs()&&xt!==null&&(xt.f&1024)!==0&&(xt.f&96)===0&&(fr===null?Jg([t]):fr.push(t)),ke&&Sa.size>0){let o=Array.from(Sa);for(let r of o)(r.f&1024)!==0&&Pn(r,4096),Ca(r)&&Ml(r);Sa.clear()}}return e}function Zg(t,e){var i=t.reactions;if(i!==null)for(var o=vs(),r=i.length,a=0;a<r;a++){var l=i[a],d=l.f;if((d&2048)===0&&!(!o&&l===xt)){if(ke&&(d&262144)!==0){Sa.add(l);continue}Pn(l,e),(d&1280)!==0&&((d&2)!==0?Zg(l,4096):Ad(l))}}}var Vl="font-weight: bold",Rl="font-weight: normal";function eh(t,e,i){ke?console.warn(`%c[svelte] hydration_attribute_changed
27
+ https://svelte.dev/e/lifecycle_outside_component`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/lifecycle_outside_component")}var qt=null;function bd(t){qt=t}var sr=null;function $d(t){sr=t}function yl(t){return Yp("getContext").get(t)}function xl(t,e){return Yp("setContext").set(t,e),e}function yd(){return Yp("getAllContexts")}function H(t,e=!1,i){var o=qt={p:qt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};as&&!e&&(qt.l={s:null,u:null,r1:[],r2:wr(!1)}),Mo(()=>{o.d=!0}),Re&&(qt.function=i,sr=i)}function F(t){var l,d;let e=qt;if(e!==null){t!==void 0&&(e.x=t);let a=e.e;if(a!==null){var i=St,o=Bt;e.e=null;try{for(var r=0;r<a.length;r++){var s=a[r];go(s.effect),ji(s.reaction),Lo(s.fn)}}finally{go(i),ji(o)}}qt=e.p,Re&&(sr=(d=(l=e.p)==null?void 0:l.function)!=null?d:null),e.m=!0}return t||{}}function ds(){return!as||qt!==null&&qt.l===null}function Yp(t){var e;return qt===null&&$l(t),(e=qt.c)!=null?e:qt.c=new Map(tb(qt)||void 0)}function tb(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var ib=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function li(t){if(typeof t!="object"||t===null||jo in t)return t;let e=ha(t);if(e!==qp&&e!==jg)return t;var i=new Map,o=nr(t),r=j(0),s=Re&&ls?ys("CreatedAt"):null,l=Bt,d=f=>{var v=Bt;ji(l);var p=f();return ji(v),p};o&&i.set("length",j(t.length,s));var a="";function u(f){a=f,qr(r,`${a} version`);for(let[v,p]of i)qr(p,_a(a,v))}return new Proxy(t,{defineProperty(f,v,p){(!("value"in p)||p.configurable===!1||p.enumerable===!1||p.writable===!1)&&lh();var x=i.get(v);return x===void 0?x=d(()=>{var w=j(p.value,s);return i.set(v,w),Re&&typeof v=="string"&&qr(w,_a(a,v)),w}):N(x,p.value,!0),!0},deleteProperty(f,v){var p=i.get(v);if(p===void 0){if(v in f){let y=d(()=>j(so,s));i.set(v,y),Zp(r),Re&&qr(y,_a(a,v))}}else{if(o&&typeof v=="string"){var x=i.get("length"),w=Number(v);Number.isInteger(w)&&w<x.v&&N(x,w)}N(p,so),Zp(r)}return!0},get(f,v,p){var C;if(v===jo)return t;if(Re&&v===su)return u;var x=i.get(v),w=v in f;if(x===void 0&&(!w||(C=Qo(f,v))!=null&&C.writable)&&(x=d(()=>{var T=li(w?f[v]:so),E=j(T,s);return Re&&qr(E,_a(a,v)),E}),i.set(v,x)),x!==void 0){var y=n(x);return y===so?void 0:y}return Reflect.get(f,v,p)},getOwnPropertyDescriptor(f,v){var p=Reflect.getOwnPropertyDescriptor(f,v);if(p&&"value"in p){var x=i.get(v);x&&(p.value=n(x))}else if(p===void 0){var w=i.get(v),y=w==null?void 0:w.v;if(w!==void 0&&y!==so)return{enumerable:!0,configurable:!0,value:y,writable:!0}}return p},has(f,v){var y;if(v===jo)return!0;var p=i.get(v),x=p!==void 0&&p.v!==so||Reflect.has(f,v);if(p!==void 0||St!==null&&(!x||(y=Qo(f,v))!=null&&y.writable)){p===void 0&&(p=d(()=>{var C=x?li(f[v]):so,T=j(C,s);return Re&&qr(T,_a(a,v)),T}),i.set(v,p));var w=n(p);if(w===so)return!1}return x},set(f,v,p,x){var L;var w=i.get(v),y=v in f;if(o&&v==="length")for(var C=p;C<w.v;C+=1){var T=i.get(C+"");T!==void 0?N(T,so):C in f&&(T=d(()=>j(so,s)),i.set(C+"",T),Re&&qr(T,_a(a,C)))}if(w===void 0)(!y||(L=Qo(f,v))!=null&&L.writable)&&(w=d(()=>j(void 0,s)),N(w,li(p)),i.set(v,w),Re&&qr(w,_a(a,v)));else{y=w.v!==so;var E=d(()=>li(p));N(w,E)}var O=Reflect.getOwnPropertyDescriptor(f,v);if(O!=null&&O.set&&O.set.call(x,p),!y){if(o&&typeof v=="string"){var A=i.get("length"),I=Number(v);Number.isInteger(I)&&I>=A.v&&N(A,I+1)}Zp(r)}return!0},ownKeys(f){n(r);var v=Reflect.ownKeys(f).filter(w=>{var y=i.get(w);return y===void 0||y.v!==so});for(var[p,x]of i)x.v!==so&&!(p in f)&&v.push(p);return v},setPrototypeOf(){dh()}})}function _a(t,e){var i;return typeof e=="symbol"?`${t}[Symbol(${(i=e.description)!=null?i:""})]`:ib.test(e)?`${t}.${e}`:/^\d+$/.test(e)?`${t}[${e}]`:`${t}['${e}']`}function Zp(t,e=1){N(t,t.v+e)}function wl(t){try{if(t!==null&&typeof t=="object"&&jo in t)return t[jo]}catch(e){}return t}function Xp(t,e){return Object.is(wl(t),wl(e))}function Qr(t){var e=2050,i=Bt!==null&&(Bt.f&2)!==0?Bt:null;St===null||i!==null&&(i.f&256)!==0?e|=256:St.f|=1048576;let o={ctx:qt,deps:null,effects:null,equals:lu,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:St};return Re&&ls&&(o.created=ys("CreatedAt")),o}function m(t){let e=Qr(t);return pu(e),e}function En(t){let e=Qr(t);return e.equals=bl,e}function cu(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)Gi(e[i])}}var Jp=[];function ob(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function of(t){var e,i=St;if(go(ob(t)),Re){let o=ba;ef(new Set);try{Jp.includes(t)&&Xg(),Jp.push(t),cu(t),e=uu(t)}finally{go(i),ef(o),Jp.pop()}}else try{cu(t),e=uu(t)}finally{go(i)}return e}function nf(t){var e=of(t);if(t.equals(e)||(t.v=e,t.wv=xd()),!xs){var i=(ws||(t.f&256)!==0)&&t.deps!==null?4096:1024;In(t,i)}}var ba=new Set,Sl=new Map;function ef(t){ba=t}function wr(t,e){var i={f:0,v:t,reactions:null,equals:lu,rv:0,wv:0};return Re&&ls&&(i.created=e!=null?e:ys("CreatedAt"),i.updated=null,i.set_during_effect=!1,i.trace=null),i}function j(t,e){let i=wr(t,e);return pu(i),i}function cs(t,e=!1,i=!0){var r,s;let o=wr(t);return e||(o.equals=bl),as&&i&&qt!==null&&qt.l!==null&&((s=(r=qt.l).s)!=null?s:r.s=[]).push(o),o}function N(t,e,i=!1){var r;Bt!==null&&(!dr||(Bt.f&262144)!==0)&&ds()&&(Bt.f&262162)!==0&&!((r=Yo)!=null&&r[1].includes(t)&&Yo[0]===Bt)&&ch();let o=i?li(e):e;return Re&&du(o,t.label),Cl(t,o)}function Cl(t,e){if(!t.equals(e)){var i=t.v;if(xs?Sl.set(t,e):Sl.set(t,i),t.v=e,Re&&ls&&(t.updated=ys("UpdatedAt"),St!==null&&(t.set_during_effect=!0)),(t.f&2)!==0&&((t.f&2048)!==0&&of(t),In(t,(t.f&256)===0?1024:4096)),t.wv=xd(),fh(t,2048),ds()&&St!==null&&(St.f&1024)!==0&&(St.f&96)===0&&(lr===null?vh([t]):lr.push(t)),Re&&ba.size>0){let o=Array.from(ba);for(let r of o)(r.f&1024)!==0&&In(r,4096),ya(r)&&Tl(r);ba.clear()}}return e}function fh(t,e){var i=t.reactions;if(i!==null)for(var o=ds(),r=i.length,s=0;s<r;s++){var l=i[s],d=l.f;if((d&2048)===0&&!(!o&&l===St)){if(Re&&(d&262144)!==0){ba.add(l);continue}In(l,e),(d&1280)!==0&&((d&2)!==0?fh(l,4096):Sd(l))}}}var El="font-weight: bold",Il="font-weight: normal";function mh(t,e,i){Re?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`,Vl,Rl):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function th(t){ke?console.warn(`%c[svelte] hydration_html_changed
29
+ https://svelte.dev/e/hydration_attribute_changed`,El,Il):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function gh(t){Re?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`,Vl,Rl):console.warn("https://svelte.dev/e/hydration_html_changed")}function Zs(t){ke?console.warn(`%c[svelte] hydration_mismatch
31
+ https://svelte.dev/e/hydration_html_changed`,El,Il):console.warn("https://svelte.dev/e/hydration_html_changed")}function js(t){Re?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`,Vl,Rl):console.warn("https://svelte.dev/e/hydration_mismatch")}function ih(){ke?console.warn(`%c[svelte] lifecycle_double_unmount
33
+ https://svelte.dev/e/hydration_mismatch`,El,Il):console.warn("https://svelte.dev/e/hydration_mismatch")}function hh(){Re?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`,Vl,Rl):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function oh(){ke?console.warn("%c[svelte] select_multiple_invalid_value\n%cThe `value` property of a `<select multiple>` element should be an array, but it received a non-array value. The selection will be kept as is.\nhttps://svelte.dev/e/select_multiple_invalid_value",Vl,Rl):console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function bu(t){ke?console.warn(`%c[svelte] state_proxy_equality_mismatch
35
+ https://svelte.dev/e/lifecycle_double_unmount`,El,Il):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function _h(){Re?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",El,Il):console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function fu(t){Re?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`,Vl,Rl):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var it=!1;function _o(t){it=t}var wt;function Ei(t){if(t===null)throw Zs(),ps;return wt=t}function Xi(){return Ei(Jo(wt))}function w(t){if(it){if(Jo(wt)!==null)throw Zs(),ps;wt=t}}function vi(t=1){if(it){for(var e=t,i=wt;e--;)i=Jo(i);wt=i}}function Ia(){for(var t=0,e=wt;;){if(e.nodeType===cr){var i=e.data;if(i===ya){if(t===0)return e;t-=1}else(i===Gs||i===Ys)&&(t+=1)}var o=Jo(e);e.remove(),e=o}}function $u(t){if(!t||t.nodeType!==cr)throw Zs(),ps;return t.data}function nh(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:r}=t;t.indexOf=function(a,l){let d=i.call(this,a,l);if(d===-1){for(let s=l!=null?l:0;s<this.length;s+=1)if(Al(this[s])===a){bu("array.indexOf(...)");break}}return d},t.lastIndexOf=function(a,l){let d=o.call(this,a,l!=null?l:this.length-1);if(d===-1){for(let s=0;s<=(l!=null?l:this.length-1);s+=1)if(Al(this[s])===a){bu("array.lastIndexOf(...)");break}}return d},t.includes=function(a,l){let d=r.call(this,a,l);if(!d){for(let s=0;s<this.length;s+=1)if(Al(this[s])===a){bu("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=r}}var Ea,rh,kd,sh,ah;function yu(){if(Ea===void 0){Ea=window,rh=document,kd=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;sh=Yo(e,"firstChild").get,ah=Yo(e,"nextSibling").get,Zp(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),Zp(i)&&(i.__t=void 0),ke&&(t.__svelte_meta=null,nh())}}function An(t=""){return document.createTextNode(t)}function Pi(t){return sh.call(t)}function Jo(t){return ah.call(t)}function T(t,e){if(!it)return Pi(t);var i=Pi(wt);if(i===null)i=wt.appendChild(An());else if(e&&i.nodeType!==Sl){var o=An();return i==null||i.before(o),Ei(o),o}return Ei(i),i}function de(t,e){var r,a;if(!it){var i=Pi(t);return i.nodeType===8&&i.data===""?Jo(i):i}if(e&&((r=wt)==null?void 0:r.nodeType)!==Sl){var o=An();return(a=wt)==null||a.before(o),Ei(o),o}return wt}function k(t,e=1,i=!1){let o=it?wt:t;for(var r;e--;)r=o,o=Jo(o);if(!it)return o;if(i&&(o==null?void 0:o.nodeType)!==Sl){var a=An();return o===null?r==null||r.after(a):o.before(a),Ei(a),a}return Ei(o),o}function Ld(t){t.textContent=""}function pf(t){xt===null&&Ot===null&&Fg(t),Ot!==null&&(Ot.f&256)!==0&&xt===null&&Bg(),Ss&&Dg(t)}function K$(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function Pa(t,e,i,o=!0){var s;var r=xt;if(ke)for(;r!==null&&(r.f&262144)!==0;)r=r.parent;var a={ctx:zt,deps:null,nodes_start:null,nodes_end:null,f:t|2048,first:null,fn:e,last:null,next:null,parent:r,prev:null,teardown:null,transitions:null,wv:0};if(ke&&(a.component_function=ur),i)try{Ml(a),a.f|=32768}catch(u){throw ji(a),u}else e!==null&&Ad(a);var l=i&&a.deps===null&&a.first===null&&a.nodes_start===null&&a.teardown===null&&(a.f&1048704)===0;if(!l&&o&&(r!==null&&K$(a,r),Ot!==null&&(Ot.f&2)!==0)){var d=Ot;((s=d.effects)!=null?s:d.effects=[]).push(a)}return a}function Ao(t){let e=Pa(8,null,!1);return Pn(e,1024),e.teardown=t,e}function Ne(t){var r;pf("$effect");var e=xt!==null&&(xt.f&32)!==0&&zt!==null&&!zt.m;if(ke&&go(t,"name",{value:"$effect"}),e){var i=zt;((r=i.e)!=null?r:i.e=[]).push({fn:t,effect:xt,reaction:Ot})}else{var o=ko(t);return o}}function Rd(t){return pf("$effect.pre"),ke&&go(t,"name",{value:"$effect.pre"}),en(t)}function Su(t){let e=Pa(64,t,!0);return()=>{ji(e)}}function dh(t){let e=Pa(64,t,!0);return(i={})=>new Promise(o=>{i.outro?Yn(e,()=>{ji(e),o(void 0)}):(ji(e),o(void 0))})}function ko(t){return Pa(4,t,!1)}function en(t){return Pa(8,t,!0)}function B(t,e=[],i=Gr){if(ke)return en(()=>{var r=xt,a=()=>t(...l.map(n));go(r.fn,"name",{value:"{expression}"}),go(a,"name",{value:"{expression}"});let l=e.map(i);Zi(a)});let o=e.map(i);return Zi(()=>t(...o.map(n)))}function Zi(t,e=0){return Pa(24|e,t,!0)}function Bi(t,e=!0){return Pa(40,t,!0,e)}function ff(t){var e=t.teardown;if(e!==null){let i=Ss,o=Ot;cf(!0),Yi(null);try{e.call(null)}finally{cf(i),Yi(o)}}}function mf(t,e=!1){var i=t.first;for(t.first=t.last=null;i!==null;){var o=i.next;(i.f&64)!==0?i.parent=null:ji(i,e),i=o}}function ch(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&ji(e),e=i}}function ji(t,e=!0){var i=!1;(e||(t.f&524288)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(vf(t.nodes_start,t.nodes_end),i=!0),mf(t,e&&!i),Nd(t,0),Pn(t,16384);var o=t.transitions;if(o!==null)for(let a of o)a.stop();ff(t);var r=t.parent;r!==null&&r.first!==null&&gf(t),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 vf(t,e){for(;t!==null;){var i=t===e?null:Jo(t);t.remove(),t=i}}function gf(t){var e=t.parent,i=t.prev,o=t.next;i!==null&&(i.next=o),o!==null&&(o.prev=i),e!==null&&(e.first===t&&(e.first=o),e.last===t&&(e.last=i))}function Yn(t,e){var i=[];Tu(t,i,!0),hf(i,()=>{ji(t),e&&e()})}function hf(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var r of t)r.out(o)}else e()}function Tu(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;Tu(o,e,a?i:!1),o=r}}}function Is(t){uh(t,!0)}function uh(t,e){if((t.f&8192)!==0){t.f^=8192;for(var i=t.first;i!==null;){var o=i.next,r=(i.f&65536)!==0||(i.f&32)!==0;uh(i,r?e:!1),i=o}if(t.transitions!==null)for(let a of t.transitions)(a.is_global||e)&&a.in()}}var Od=[],_f=[];function ph(){var t=Od;Od=[],Xs(t)}function q$(){var t=_f;_f=[],Xs(t)}function kn(t){Od.length===0&&queueMicrotask(ph),Od.push(t)}function fh(){Od.length>0&&ph(),_f.length>0&&q$()}function vh(t){var e=xt;if(ke&&t instanceof Error&&Q$(t,e),(e.f&32768)===0){if((e.f&128)===0)throw t;e.fn(t)}else Dd(t,e)}function Dd(t,e){for(;e!==null;){if((e.f&128)!==0)try{e.fn(t);return}catch(i){}e=e.parent}throw t}var mh=new WeakSet;function Q$(t,e){var l,d;if(mh.has(t))return;mh.add(t);let i=Yo(t,"message");if(!(i&&!i.configurable)){for(var o=kd?" ":" ",r=`
38
- ${o}in ${((l=e.fn)==null?void 0:l.name)||"<unknown>"}`,a=e.ctx;a!==null;)r+=`
39
- ${o}in ${(d=a.function)==null?void 0:d[Kn].split("/").pop()}`,a=a.p;go(t,"message",{value:t.message+`
37
+ https://svelte.dev/e/state_proxy_equality_mismatch`,El,Il):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var nt=!1;function ho(t){nt=t}var Ct;function Ii(t){if(t===null)throw js(),ss;return Ct=t}function Yi(){return Ii(Zo(Ct))}function g(t){if(nt){if(Zo(Ct)!==null)throw js(),ss;Ct=t}}function Ie(t=1){if(nt){for(var e=t,i=Ct;e--;)i=Zo(i);Ct=i}}function xa(){for(var t=0,e=Ct;;){if(e.nodeType===rr){var i=e.data;if(i===ga){if(t===0)return e;t-=1}else(i===Ws||i===Ks)&&(t+=1)}var o=Zo(e);e.remove(),e=o}}function vu(t){if(!t||t.nodeType!==rr)throw js(),ss;return t.data}function bh(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:r}=t;t.indexOf=function(s,l){let d=i.call(this,s,l);if(d===-1){for(let a=l!=null?l:0;a<this.length;a+=1)if(wl(this[a])===s){fu("array.indexOf(...)");break}}return d},t.lastIndexOf=function(s,l){let d=o.call(this,s,l!=null?l:this.length-1);if(d===-1){for(let a=0;a<=(l!=null?l:this.length-1);a+=1)if(wl(this[a])===s){fu("array.lastIndexOf(...)");break}}return d},t.includes=function(s,l){let d=r.call(this,s,l);if(!d){for(let a=0;a<this.length;a+=1)if(wl(this[a])===s){fu("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=r}}var wa,$h,Cd,yh,xh;function mu(){if(wa===void 0){wa=window,$h=document,Cd=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;yh=Qo(e,"firstChild").get,xh=Qo(e,"nextSibling").get,Qp(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),Qp(i)&&(i.__t=void 0),Re&&(t.__svelte_meta=null,bh())}}function kn(t=""){return document.createTextNode(t)}function Ai(t){return yh.call(t)}function Zo(t){return xh.call(t)}function _(t,e){if(!nt)return Ai(t);var i=Ai(Ct);if(i===null)i=Ct.appendChild(kn());else if(e&&i.nodeType!==hl){var o=kn();return i==null||i.before(o),Ii(o),o}return Ii(i),i}function ve(t,e){var r,s;if(!nt){var i=Ai(t);return i.nodeType===8&&i.data===""?Zo(i):i}if(e&&((r=Ct)==null?void 0:r.nodeType)!==hl){var o=kn();return(s=Ct)==null||s.before(o),Ii(o),o}return Ct}function P(t,e=1,i=!1){let o=nt?Ct:t;for(var r;e--;)r=o,o=Zo(o);if(!nt)return o;if(i&&(o==null?void 0:o.nodeType)!==hl){var s=kn();return o===null?r==null||r.after(s):o.before(s),Ii(s),s}return Ii(o),o}function Td(t){t.textContent=""}function af(t){St===null&&Bt===null&&th(t),Bt!==null&&(Bt.f&256)!==0&&St===null&&eh(),xs&&Jg(t)}function nb(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function Sa(t,e,i,o=!0){var a;var r=St;if(Re)for(;r!==null&&(r.f&262144)!==0;)r=r.parent;var s={ctx:qt,deps:null,nodes_start:null,nodes_end:null,f:t|2048,first:null,fn:e,last:null,next:null,parent:r,prev:null,teardown:null,transitions:null,wv:0};if(Re&&(s.component_function=sr),i)try{Tl(s),s.f|=32768}catch(u){throw Gi(s),u}else e!==null&&Sd(s);var l=i&&s.deps===null&&s.first===null&&s.nodes_start===null&&s.teardown===null&&(s.f&1048704)===0;if(!l&&o&&(r!==null&&nb(s,r),Bt!==null&&(Bt.f&2)!==0)){var d=Bt;((a=d.effects)!=null?a:d.effects=[]).push(s)}return s}function Mo(t){let e=Sa(8,null,!1);return In(e,1024),e.teardown=t,e}function We(t){var r;af("$effect");var e=St!==null&&(St.f&32)!==0&&qt!==null&&!qt.m;if(Re&&mo(t,"name",{value:"$effect"}),e){var i=qt;((r=i.e)!=null?r:i.e=[]).push({fn:t,effect:St,reaction:Bt})}else{var o=Lo(t);return o}}function kd(t){return af("$effect.pre"),Re&&mo(t,"name",{value:"$effect.pre"}),Xo(t)}function _u(t){let e=Sa(64,t,!0);return()=>{Gi(e)}}function Sh(t){let e=Sa(64,t,!0);return(i={})=>new Promise(o=>{i.outro?Wn(e,()=>{Gi(e),o(void 0)}):(Gi(e),o(void 0))})}function Lo(t){return Sa(4,t,!1)}function Xo(t){return Sa(8,t,!0)}function D(t,e=[],i=Qr){if(Re)return Xo(()=>{var r=St,s=()=>t(...l.map(n));mo(r.fn,"name",{value:"{expression}"}),mo(s,"name",{value:"{expression}"});let l=e.map(i);Zi(s)});let o=e.map(i);return Zi(()=>t(...o.map(n)))}function Zi(t,e=0){return Sa(24|e,t,!0)}function Fi(t,e=!0){return Sa(40,t,!0,e)}function lf(t){var e=t.teardown;if(e!==null){let i=xs,o=Bt;rf(!0),ji(null);try{e.call(null)}finally{rf(i),ji(o)}}}function df(t,e=!1){var i=t.first;for(t.first=t.last=null;i!==null;){var o=i.next;(i.f&64)!==0?i.parent=null:Gi(i,e),i=o}}function Ch(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&Gi(e),e=i}}function Gi(t,e=!0){var i=!1;(e||(t.f&524288)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(cf(t.nodes_start,t.nodes_end),i=!0),df(t,e&&!i),Ad(t,0),In(t,16384);var o=t.transitions;if(o!==null)for(let s of o)s.stop();lf(t);var r=t.parent;r!==null&&r.first!==null&&uf(t),Re&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function cf(t,e){for(;t!==null;){var i=t===e?null:Zo(t);t.remove(),t=i}}function uf(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 Wn(t,e){var i=[];bu(t,i,!0),pf(i,()=>{Gi(t),e&&e()})}function pf(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var r of t)r.out(o)}else e()}function bu(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,s=(o.f&65536)!==0||(o.f&32)!==0;bu(o,e,s?i:!1),o=r}}}function Cs(t){Th(t,!0)}function Th(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;Th(i,r?e:!1),i=o}if(t.transitions!==null)for(let s of t.transitions)(s.is_global||e)&&s.in()}}var Pd=[],ff=[];function Eh(){var t=Pd;Pd=[],Qs(t)}function rb(){var t=ff;ff=[],Qs(t)}function An(t){Pd.length===0&&queueMicrotask(Eh),Pd.push(t)}function Ih(){Pd.length>0&&Eh(),ff.length>0&&rb()}function Ah(t){var e=St;if(Re&&t instanceof Error&&sb(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 kh=new WeakSet;function sb(t,e){var l,d;if(kh.has(t))return;kh.add(t);let i=Qo(t,"message");if(!(i&&!i.configurable)){for(var o=Cd?" ":" ",r=`
38
+ ${o}in ${((l=e.fn)==null?void 0:l.name)||"<unknown>"}`,s=e.ctx;s!==null;)r+=`
39
+ ${o}in ${(d=s.function)==null?void 0:d[Hn].split("/").pop()}`,s=s.p;mo(t,"message",{value:t.message+`
40
40
  ${r}
41
- `}),t.stack&&go(t,"stack",{value:t.stack.split(`
42
- `).filter(s=>!s.includes("svelte/src/internal")).join(`
43
- `)})}}var Aa=!1,Nl=null,ka=!1,Ss=!1;function cf(t){Ss=t}var Bd=[],Fd=[],Ot=null,mr=!1;function Yi(t){Ot=t}var xt=null;function ho(t){xt=t}var Zo=null;function _u(t){Ot!==null&&Ot.f&2097152&&(Zo===null?Zo=[Ot,[t]]:Zo[1].push(t))}var Ln=null,vr=0,fr=null;function Jg(t){fr=t}var _h=1,Iu=0,Ts=!1,Eu=null;function Ed(){return++_h}function Ca(t){var m,f;var e=t.f;if((e&2048)!==0)return!0;if((e&4096)!==0){var i=t.deps,o=(e&256)!==0;if(i!==null){var r,a,l=(e&512)!==0,d=o&&xt!==null&&!Ts,s=i.length;if(l||d){var u=t,p=u.parent;for(r=0;r<s;r++)a=i[r],(l||!((m=a==null?void 0:a.reactions)!=null&&m.includes(u)))&&((f=a.reactions)!=null?f:a.reactions=[]).push(u);l&&(u.f^=512),d&&p!==null&&(p.f&256)===0&&(u.f^=256)}for(r=0;r<s;r++)if(a=i[r],Ca(a)&&df(a),a.wv>t.wv)return!0}(!o||xt!==null&&!Ts)&&Pn(t,1024)}return!1}function bh(t,e,i=!0){var o=t.reactions;if(o!==null)for(var r=0;r<o.length;r++){var a=o[r];Zo!=null&&Zo[1].includes(t)&&Zo[0]===Ot||((a.f&2)!==0?bh(a,e,!1):e===a&&(i?Pn(a,2048):(a.f&1024)!==0&&Pn(a,4096),Ad(a)))}}function hu(t){var $,y;var e=Ln,i=vr,o=fr,r=Ot,a=Ts,l=Zo,d=zt,s=mr,u=t.f;Ln=null,vr=0,fr=null,Ts=(u&256)!==0&&(mr||!ka||Ot===null),Ot=(u&96)===0?t:null,Zo=null,Td(t.ctx),mr=!1,Iu++,t.f|=2097152;try{var p=(0,t.fn)(),m=t.deps;if(Ln!==null){var f;if(Nd(t,vr),m!==null&&vr>0)for(m.length=vr+Ln.length,f=0;f<Ln.length;f++)m[vr+f]=Ln[f];else t.deps=m=Ln;if(!Ts||(u&2)!==0&&t.reactions!==null)for(f=vr;f<m.length;f++)((y=($=m[f]).reactions)!=null?y:$.reactions=[]).push(t)}else m!==null&&vr<m.length&&(Nd(t,vr),m.length=vr);if(vs()&&fr!==null&&!mr&&m!==null&&(t.f&6146)===0)for(f=0;f<fr.length;f++)bh(fr[f],t);return r!==null&&r!==t&&(Iu++,fr!==null&&(o===null?o=fr:o.push(...fr))),p}catch(b){vh(b)}finally{Ln=e,vr=i,fr=o,Ot=r,Ts=a,Zo=l,Td(d),mr=s,t.f^=2097152}}function G$(t,e){let i=e.reactions;if(i!==null){var o=Lg.call(i,t);if(o!==-1){var r=i.length-1;r===0?i=e.reactions=null:(i[o]=i[r],i.pop())}}i===null&&(e.f&2)!==0&&(Ln===null||!Ln.includes(e))&&(Pn(e,4096),(e.f&768)===0&&(e.f^=512),gu(e),Nd(e,0))}function Nd(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)G$(t,i[o])}function Ml(t){var e=t.f;if((e&16384)===0){Pn(t,1024);var i=xt,o=ka;if(xt=t,ka=!0,ke){var r=ur;Cd(t.component_function)}try{(e&16)!==0?ch(t):mf(t),ff(t);var a=hu(t);if(t.teardown=typeof a=="function"?a:null,t.wv=_h,ke&&ms&&(t.f&2048)!==0&&t.deps!==null)for(var l of t.deps)l.set_during_effect&&(l.wv=Ed(),l.set_during_effect=!1);ke&&Fd.push(t)}finally{ka=o,xt=i,ke&&Cd(r)}}}function gh(){console.error("Last ten effects were: ",Fd.slice(-10).map(t=>t.fn)),Fd=[]}function Y$(){try{Hg()}catch(t){if(ke&&go(t,"stack",{value:""}),Nl!==null)if(ke)try{Dd(t,Nl)}catch(e){throw gh(),e}else Dd(t,Nl);else throw ke&&gh(),t}}function $f(){var t=ka;try{var e=0;for(ka=!0;Bd.length>0;){e++>1e3&&Y$();var i=Bd,o=i.length;Bd=[];for(var r=0;r<o;r++){var a=X$(i[r]);j$(a)}kl.clear()}}finally{Aa=!1,ka=t,Nl=null,ke&&(Fd=[])}}function j$(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];(o.f&24576)===0&&Ca(o)&&(Ml(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?gf(o):o.fn=null))}}function Ad(t){Aa||(Aa=!0,queueMicrotask($f));for(var e=Nl=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}Bd.push(e)}function X$(t){for(var e=[],i=t;i!==null;){var o=i.f,r=(o&96)!==0,a=r&&(o&1024)!==0;if(!a&&(o&8192)===0){(o&4)!==0?e.push(i):r?i.f^=1024:Ca(i)&&Ml(i);var l=i.first;if(l!==null){i=l;continue}}var d=i.parent;for(i=i.next;i===null&&d!==null;)i=d.next,d=d.parent}return e}function Ol(t){var e;for(t&&(Aa=!0,$f(),Aa=!0,e=t());;){if(fh(),Bd.length===0)return Aa=!1,Nl=null,ke&&(Fd=[]),e;Aa=!0,$f()}}function bo(){return _t(this,null,function*(){yield Promise.resolve(),Ol()})}function n(t){var e=t.f,i=(e&2)!==0;if(Eu!==null&&Eu.add(t),Ot!==null&&!mr){if(!(Zo!=null&&Zo[1].includes(t))||Zo[0]!==Ot){var o=Ot.deps;t.rv<Iu&&(t.rv=Iu,Ln===null&&o!==null&&o[vr]===t?vr++:Ln===null?Ln=[t]:(!Ts||!Ln.includes(t))&&Ln.push(t))}}else if(i&&t.deps===null&&t.effects===null){var r=t,a=r.parent;a!==null&&(a.f&256)===0&&(r.f^=256)}if(i&&(r=t,Ca(r)&&df(r)),ke&&ms&&!mr&&Sd!==null&&Ot!==null&&Sd.reaction===Ot)if(t.trace)t.trace();else{var l=ws("TracedAt");if(l){var d=Sd.entries.get(t);d===void 0&&(d={traces:[]},Sd.entries.set(t,d));var s=d.traces[d.traces.length-1];l.stack!==(s==null?void 0:s.stack)&&d.traces.push(l)}}return Ss&&kl.has(t)?kl.get(t):t.v}function kt(t){var e=mr;try{return mr=!0,t()}finally{mr=e}}var Z$=-7169;function Pn(t,e){t.f=t.f&Z$|e}function Au(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(jo in t)Pu(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&jo in i&&Pu(i)}}}function Pu(t,e=new Set){if(typeof t=="object"&&t!==null&&!(t instanceof EventTarget)&&!e.has(t)){e.add(t),t instanceof Date&&t.getTime();for(let o in t)try{Pu(t[o],e)}catch(r){}let i=xa(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=uu(i);for(let r in o){let a=o[r].get;if(a)try{a.call(t)}catch(l){}}}}}function yf(t,e){if(e){let i=document.body;t.autofocus=!0,kn(()=>{document.activeElement===i&&t.focus()})}}function Hd(t){var e=Ot,i=xt;Yi(null),ho(null);try{return t()}finally{Yi(e),ho(i)}}var xf=new Set,ku=new Set;function La(t){if(!it)return;t.removeAttribute("onload"),t.removeAttribute("onerror");let e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function wf(t,e,i,o={}){function r(a){if(o.capture||Dl.call(e,a),!a.cancelBubble)return Hd(()=>i==null?void 0:i.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?kn(()=>{e.addEventListener(t,r,o)}):e.addEventListener(t,r,o),r}function $t(t,e,i,o,r){var a={capture:o,passive:r},l=wf(t,e,i,a);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Ao(()=>{e.removeEventListener(t,l,a)})}function st(t){for(var e=0;e<t.length;e++)xf.add(t[e]);for(var i of ku)i(t)}function Dl(t){var I;var e=this,i=e.ownerDocument,o=t.type,r=((I=t.composedPath)==null?void 0:I.call(t))||[],a=r[0]||t.target,l=0,d=t.__root;if(d){var s=r.indexOf(d);if(s!==-1&&(e===document||e===window)){t.__root=e;return}var u=r.indexOf(e);if(u===-1)return;s<=u&&(l=s)}if(a=r[l]||t.target,a!==e){go(t,"currentTarget",{configurable:!0,get(){return a||i}});var p=Ot,m=xt;Yi(null),ho(null);try{for(var f,$=[];a!==null;){var y=a.assignedSlot||a.parentNode||a.host||null;try{var b=a["__"+o];if(b!=null&&(!a.disabled||t.target===a))if(dr(b)){var[S,...C]=b;S.apply(a,[t,...C])}else b.call(a,t)}catch(R){f?$.push(R):f=R}if(t.cancelBubble||y===e||y===null)break;a=y}if(f){for(let R of $)queueMicrotask(()=>{throw R});throw f}}finally{t.__root=e,delete t.currentTarget,Yi(p),ho(m)}}}var e1;function $h(){e1=void 0}function Bl(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function Lo(t,e){var i=xt;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function L(t,e){var i=(e&1)!==0,o=(e&2)!==0,r,a=!t.startsWith("<!>");return()=>{if(it)return Lo(wt,null),wt;r===void 0&&(r=Bl(a?t:"<!>"+t),i||(r=Pi(r)));var l=o||kd?document.importNode(r,!0):r.cloneNode(!0);if(i){var d=Pi(l),s=l.lastChild;Lo(d,s)}else Lo(l,l);return l}}function o1(t,e,i="svg"){var o=!t.startsWith("<!>"),r=(e&1)!==0,a=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(it)return Lo(wt,null),wt;if(!l){var d=Bl(a),s=Pi(d);if(r)for(l=document.createDocumentFragment();Pi(s);)l.appendChild(Pi(s));else l=Pi(s)}var u=l.cloneNode(!0);if(r){var p=Pi(u),m=u.lastChild;Lo(p,m)}else Lo(u,u);return u}}function Ie(t,e){return o1(t,e,"svg")}function hs(t=""){if(!it){var e=An(t+"");return Lo(e,e),e}var i=wt;return i.nodeType!==Sl&&(i.before(i=An()),Ei(i)),Lo(i,i),i}function Me(){if(it)return Lo(wt,null),wt;var t=document.createDocumentFragment(),e=document.createComment(""),i=An();return t.append(e,i),Lo(e,i),t}function _(t,e){if(it){xt.nodes_end=wt,Xi();return}t!==null&&t.before(e)}var n1=/\r/g;function xh(t){t=t.replace(n1,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function wh(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var r1=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Sh(t){return r1.includes(t)}var s1=["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 a1={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function Th(t){var e;return t=t.toLowerCase(),(e=a1[t])!=null?e:t}var hP=[...s1,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var l1=["touchstart","touchmove"];function Ch(t){return l1.includes(t)}var d1=["$state","$state.raw","$derived","$derived.by"],_P=[...d1,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var c1=["textarea","script","style","title"];function Ih(t){return c1.includes(t)}function Lu(t){return t==null?void 0:t.replace(/\//g,"/​")}var Ud=!0;function Mu(t){Ud=t}function fe(t,e){var o;var i=e==null?"":typeof e=="object"?e+"":e;i!==((o=t.__t)!=null?o:t.__t=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function Xr(t,e){return Eh(t,e)}function Tf(t,e){var l;yu(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=it,r=wt;try{for(var a=Pi(i);a&&(a.nodeType!==cr||a.data!==Gs);)a=Jo(a);if(!a)throw ps;_o(!0),Ei(a),Xi();let d=Eh(t,Qt(Ae({},e),{anchor:a}));if(wt===null||wt.nodeType!==cr||wt.data!==ya)throw Zs(),ps;return _o(!1),d}catch(d){if(d===ps)return e.recover===!1&&Ug(),yu(),Ld(i),_o(!1),Xr(t,e);throw d}finally{_o(o),Ei(r),$h()}}var Fl=new Map;function Eh(t,{target:e,anchor:i,props:o={},events:r,context:a,intro:l=!0}){yu();var d=new Set,s=m=>{for(var f=0;f<m.length;f++){var $=m[f];if(!d.has($)){d.add($);var y=Ch($);e.addEventListener($,Dl,{passive:y});var b=Fl.get($);b===void 0?(document.addEventListener($,Dl,{passive:y}),Fl.set($,1)):Fl.set($,b+1)}}};s(wd(xf)),ku.add(s);var u=void 0,p=dh(()=>{var m=i!=null?i:e.appendChild(An());return Bi(()=>{if(a){F({});var f=zt;f.c=a}r&&(o.$$events=r),it&&Lo(m,null),Ud=l,u=t(m,o)||{},Ud=!0,it&&(xt.nodes_end=wt),a&&H()}),()=>{var y;for(var f of d){e.removeEventListener(f,Dl);var $=Fl.get(f);--$===0?(document.removeEventListener(f,Dl),Fl.delete(f)):Fl.set(f,$)}ku.delete(s),m!==i&&((y=m.parentNode)==null||y.removeChild(m))}});return Sf.set(u,p),u}var Sf=new WeakMap;function Ma(t,e){let i=Sf.get(t);return i?(Sf.delete(t),i(e)):(ke&&ih(),Promise.resolve())}function ni(t,e,...i){var o=t,r=bt,a;Zi(()=>{r!==(r=e())&&(a&&(ji(a),a=null),ke&&r==null&&zg(),a=Bi(()=>r(o,...i)))},65536),it&&(o=wt)}if(ke){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;qg(e)},set:o=>{i=o}})}};m1=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var m1;function Dt(t){zt===null&&Il("onMount"),fs&&zt.l!==null?f1(zt).m.push(t):Ne(()=>{let e=kt(t);if(typeof e=="function")return e})}function _n(t){zt===null&&Il("onDestroy"),Dt(()=>()=>kt(t))}function f1(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}var Ph=new Map;function Ah(t,e){var i=Ph.get(t);i||(i=new Set,Ph.set(t,i)),i.add(e)}function V(t,e,[i,o]=[0,0]){it&&i===0&&Xi();var r=t,a=null,l=null,d=eo,s=i>0?65536:0,u=!1;let p=(f,$=!0)=>{u=!0,m($,f)},m=(f,$)=>{if(d===(d=f))return;let y=!1;if(it&&o!==-1){if(i===0){let S=$u(r);S===Gs?o=0:S===Ys?o=1/0:(o=parseInt(S.substring(1)),o!==o&&(o=d?1/0:-1))}let b=o>i;!!d===b&&(r=Ia(),Ei(r),_o(!1),y=!0,o=-1)}d?(a?Is(a):$&&(a=Bi(()=>$(r))),l&&Yn(l,()=>{l=null})):(l?Is(l):$&&(l=Bi(()=>$(r,[i+1,o]))),a&&Yn(a,()=>{a=null})),y&&_o(!0)};Zi(()=>{u=!1,e(p),u||m(null,null)},s),it&&(r=wt)}function Es(t,e,i){it&&Xi();var o=t,r=eo,a,l=vs()?Ng:Tl;Zi(()=>{l(r,r=e())&&(a&&Yn(a),a=Bi(()=>i(o)))}),it&&(o=wt)}var ea=null;function Ef(t){ea=t}function zd(t,e){return e}function h1(t,e,i,o){for(var r=[],a=e.length,l=0;l<a;l++)Tu(e[l].e,r,!0);var d=a>0&&r.length===0&&i!==null;if(d){var s=i.parentNode;Ld(s),s.append(i),o.clear(),Js(t,e[0].prev,e[a-1].next)}hf(r,()=>{for(var u=0;u<a;u++){var p=e[u];d||(o.delete(p.k),Js(t,p.prev,p.next)),ji(p.e,!d)}})}function Ti(t,e,i,o,r,a=null){var l=t,d={flags:e,items:new Map,first:null},s=(e&4)!==0;if(s){var u=t;l=it?Ei(Pi(u)):u.appendChild(An())}it&&Xi();var p=null,m=!1,f=En(()=>{var $=i();return dr($)?$:$==null?[]:wd($)});Zi(()=>{var $=n(f),y=$.length;if(m&&y===0)return;m=y===0;let b=!1;if(it){var S=$u(l)===Ys;S!==(y===0)&&(l=Ia(),Ei(l),_o(!1),b=!0)}if(it){for(var C=null,I,R=0;R<y;R++){if(wt.nodeType===cr&&wt.data===ya){l=wt,b=!0,_o(!1);break}var E=$[R],P=o(E,R);I=Mh(wt,d,C,null,E,P,R,r,e,i),d.items.set(P,I),C=I}y>0&&Ei(Ia())}it||_1($,d,l,r,e,o,i),a!==null&&(y===0?p?Is(p):p=Bi(()=>a(l)):p!==null&&Yn(p,()=>{p=null})),b&&_o(!0),n(f)}),it&&(l=wt)}function _1(t,e,i,o,r,a,l){var Y,ge,ce,ne;var d=(r&8)!==0,s=(r&3)!==0,u=t.length,p=e.items,m=e.first,f=m,$,y=null,b,S=[],C=[],I,R,E,P;if(d)for(P=0;P<u;P+=1)I=t[P],R=a(I,P),E=p.get(R),E!==void 0&&((Y=E.a)==null||Y.measure(),(b!=null?b:b=new Set).add(E));for(P=0;P<u;P+=1){if(I=t[P],R=a(I,P),E=p.get(R),E===void 0){var O=f?f.e.nodes_start:i;y=Mh(O,e,y,y===null?e.first:y.next,I,R,P,o,r,l),p.set(R,y),S=[],C=[],f=y.next;continue}if(s&&b1(E,I,P,r),(E.e.f&8192)!==0&&(Is(E.e),d&&((ge=E.a)==null||ge.unfix(),(b!=null?b:b=new Set).delete(E))),E!==f){if($!==void 0&&$.has(E)){if(S.length<C.length){var D=C[0],U;y=D.prev;var z=S[0],G=S[S.length-1];for(U=0;U<S.length;U+=1)kh(S[U],D,i);for(U=0;U<C.length;U+=1)$.delete(C[U]);Js(e,z.prev,G.next),Js(e,y,z),Js(e,G,D),f=D,y=G,P-=1,S=[],C=[]}else $.delete(E),kh(E,f,i),Js(e,E.prev,E.next),Js(e,E,y===null?e.first:y.next),Js(e,y,E),y=E;continue}for(S=[],C=[];f!==null&&f.k!==R;)(f.e.f&8192)===0&&($!=null?$:$=new Set).add(f),C.push(f),f=f.next;if(f===null)continue;E=f}S.push(E),y=E,f=E.next}if(f!==null||$!==void 0){for(var le=$===void 0?[]:wd($);f!==null;)(f.e.f&8192)===0&&le.push(f),f=f.next;var j=le.length;if(j>0){var ie=(r&4)!==0&&u===0?i:null;if(d){for(P=0;P<j;P+=1)(ce=le[P].a)==null||ce.measure();for(P=0;P<j;P+=1)(ne=le[P].a)==null||ne.fix()}h1(e,le,ie,p)}}d&&kn(()=>{var _e;if(b!==void 0)for(E of b)(_e=E.a)==null||_e.apply()}),xt.first=e.first&&e.first.e,xt.last=y&&y.e}function b1(t,e,i,o){(o&1)!==0&&Ll(t.v,e),(o&2)!==0?Ll(t.i,i):t.i=i}function Mh(t,e,i,o,r,a,l,d,s,u){var p=ea,m=(s&1)!==0,f=(s&16)===0,$=m?f?gs(r,!1,!1):kr(r):r,y=(s&2)===0?l:kr(l);ke&&m&&($.trace=()=>{var S=typeof y=="number"?l:y.v;u()[S]});var b={i:y,v:$,k:a,a:null,e:null,prev:i,next:o};ea=b;try{return b.e=Bi(()=>d(t,$,y,u),it),b.e.prev=i&&i.e,b.e.next=o&&o.e,i===null?e.first=b:(i.next=b,i.e.next=b.e),o!==null&&(o.prev=b,o.e.prev=b.e),b}finally{ea=p}}function kh(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,r=e?e.e.nodes_start:i,a=t.e.nodes_start;a!==o;){var l=Jo(a);r.before(a),a=l}}function Js(t,e,i){e===null?t.first=i:(e.next=i,e.e.next=i&&i.e),i!==null&&(i.prev=e,i.e.prev=e&&e.e)}function $1(t,e,i){var a,l;if(!e||e===xh(String(i!=null?i:"")))return;let o,r=(a=t.__svelte_meta)==null?void 0:a.loc;r?o=`near ${r.file}:${r.line}:${r.column}`:(l=ur)!=null&&l[Kn]&&(o=`in ${ur[Kn]}`),th(Lu(o))}function Wd(t,e,i=!1,o=!1,r=!1){var a=t,l="";B(()=>{var $;var d=xt;if(l===(l=($=e())!=null?$:"")){it&&Xi();return}if(d.nodes_start!==null&&(vf(d.nodes_start,d.nodes_end),d.nodes_start=d.nodes_end=null),l!==""){if(it){for(var s=wt.data,u=Xi(),p=u;u!==null&&(u.nodeType!==cr||u.data!=="");)p=u,u=Jo(u);if(u===null)throw Zs(),ps;ke&&!r&&$1(u.parentNode,s,l),Lo(wt,p),a=Ei(u);return}var m=l+"";i?m=`<svg>${m}</svg>`:o&&(m=`<math>${m}</math>`);var f=Bl(m);if((i||o)&&(f=Pi(f)),Lo(Pi(f),f.lastChild),i||o)for(;Pi(f);)a.before(Pi(f));else a.before(f)}})}function Fi(t,e,i){it&&Xi();var o=t,r,a;Zi(()=>{r!==(r=e())&&(a&&(Yn(a),a=null),r&&(a=Bi(()=>i(o,r))))},65536),it&&(o=wt)}function Va(t,e,i,o,r,a){var y;let l=it;it&&Xi();var d=ke&&a&&((y=zt)==null?void 0:y.function[Kn]),s,u,p=null;it&&wt.nodeType===fu&&(p=wt,Xi());var m=it?wt:t,f,$=ea;Zi(()=>{let b=e()||null;var S=r?r():i||b==="svg"?du:null;if(b!==s){var C=ea;Ef($),f&&(b===null?Yn(f,()=>{f=null,u=null}):b===u?Is(f):(ji(f),Mu(!1))),b&&b!==u&&(f=Bi(()=>{if(p=it?p:S?document.createElementNS(S,b):document.createElement(b),ke&&a&&(p.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),Lo(p,p),o){it&&Ih(b)&&p.append(document.createComment(""));var I=it?Pi(p):p.appendChild(An());it&&(I===null?_o(!1):Ei(I)),o(p,I)}xt.nodes_end=p,m.before(p)})),s=b,s&&(u=s),Mu(!0),Ef(C)}},65536),l&&(_o(!0),Ei(m))}var Af;function Vh(t){return Af=t.target,new Pf(t)}var Ps,Lr,Pf=class{constructor(e){Qs(this,Ps);Qs(this,Lr);var a,l;var i=new Map,o=(d,s)=>{var u=gs(s,!1,!1);return i.set(d,u),u};let r=new Proxy(Qt(Ae({},e.props||{}),{$$events:{}}),{get(d,s){var u;return n((u=i.get(s))!=null?u:o(s,Reflect.get(d,s)))},has(d,s){var u;return s===wl?!0:(n((u=i.get(s))!=null?u:o(s,Reflect.get(d,s))),Reflect.has(d,s))},set(d,s,u){var p;return N((p=i.get(s))!=null?p:o(s,u),u),Reflect.set(d,s,u)}});xl(this,Lr,(e.hydrate?Tf:Xr)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:(a=e.intro)!=null?a:!1,recover:e.recover})),(!((l=e==null?void 0:e.props)!=null&&l.$$host)||e.sync===!1)&&Ol(),xl(this,Ps,r.$$events);for(let d of Object.keys(Di(this,Lr)))d==="$set"||d==="$destroy"||d==="$on"||go(this,d,{get(){return Di(this,Lr)[d]},set(s){Di(this,Lr)[d]=s},enumerable:!0});Di(this,Lr).$set=d=>{Object.assign(r,d)},Di(this,Lr).$destroy=()=>{Ma(Di(this,Lr))}}$set(e){Di(this,Lr).$set(e)}$on(e,i){Di(this,Ps)[e]=Di(this,Ps)[e]||[];let o=(...r)=>i.call(this,...r);return Di(this,Ps)[e].push(o),()=>{Di(this,Ps)[e]=Di(this,Ps)[e].filter(r=>r!==o)}}$destroy(){Di(this,Lr).$destroy()}};Ps=new WeakMap,Lr=new WeakMap;function q(t,e){kn(()=>{var r,a,l;var i=t.getRootNode(),o=i.host?i:(l=(r=i.head)!=null?r:i.ownerDocument.head)!=null?l:(a=Af)==null?void 0:a.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),ke&&Ah(e.hash,d)}})}function As(t,e){var i=void 0,o;Zi(()=>{i!==(i=e())&&(o&&(ji(o),o=null),i&&(o=Bi(()=>{ko(()=>i(t))})))})}function Rh(t){var e,i,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var r=t.length;for(e=0;e<r;e++)t[e]&&(i=Rh(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Nh(){for(var t,e,i=0,o="",r=arguments.length;i<r;i++)(t=arguments[i])&&(e=Rh(t))&&(o&&(o+=" "),o+=e);return o}function Kd(t){return typeof t=="object"?Nh(t):t!=null?t:""}var Oh=[...`
44
- \r\f \v\uFEFF`];function Bh(t,e,i){var o=t==null?"":""+t;if(e&&(o=o?o+" "+e:e),i){for(var r in i)if(i[r])o=o?o+" "+r:r;else if(o.length)for(var a=r.length,l=0;(l=o.indexOf(r,l))>=0;){var d=l+a;(l===0||Oh.includes(o[l-1]))&&(d===o.length||Oh.includes(o[d]))?o=(l===0?"":o.substring(0,l))+o.substring(d+1):l=d}}return o===""?null:o}function Dh(t,e=!1){var i=e?" !important;":";",o="";for(var r in t){var a=t[r];a!=null&&a!==""&&(o+=" "+r+": "+a+i)}return o}function kf(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Fh(t,e){if(e){var i="",o,r;if(Array.isArray(e)?(o=e[0],r=e[1]):o=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var a=!1,l=0,d=!1,s=[];o&&s.push(...Object.keys(o).map(kf)),r&&s.push(...Object.keys(r).map(kf));var u=0,p=-1;let b=t.length;for(var m=0;m<b;m++){var f=t[m];if(d?f==="/"&&t[m-1]==="*"&&(d=!1):a?a===f&&(a=!1):f==="/"&&t[m+1]==="*"?d=!0:f==='"'||f==="'"?a=f:f==="("?l++:f===")"&&l--,!d&&a===!1&&l===0){if(f===":"&&p===-1)p=m;else if(f===";"||m===b-1){if(p!==-1){var $=kf(t.substring(u,p).trim());if(!s.includes($)){f!==";"&&m++;var y=t.substring(u,m).trim();i+=" "+y+";"}}u=m+1,p=-1}}}}return o&&(i+=Dh(o)),r&&(i+=Dh(r,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function re(t,e,i,o,r,a){var l=t.__className;if(it||l!==i||l===void 0){var d=Bh(i,o,a);(!it||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(a&&r!==a)for(var s in a){var u=!!a[s];(r==null||u!==!!r[s])&&t.classList.toggle(s,u)}return a}function Lf(t,e={},i,o){for(var r in i){var a=i[r];e[r]!==a&&(i[r]==null?t.style.removeProperty(r):t.style.setProperty(r,a,o))}}function Qe(t,e,i,o){var r=t.__style;if(it||r!==e){var a=Fh(e,o);(!it||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(Lf(t,i==null?void 0:i[0],o[0]),Lf(t,i==null?void 0:i[1],o[1],"important")):Lf(t,i,o));return o}function qd(t,e,i){if(t.multiple){if(e==null)return;if(!dr(e))return oh();for(var o of t.options)o.selected=e.includes(Hh(o));return}for(o of t.options){var r=Hh(o);if(nf(r,e)){o.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function Mf(t){var e=new MutationObserver(()=>{qd(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Ao(()=>{e.disconnect()})}function Hh(t){return"__value"in t?t.__value:t.value}var Hl=Symbol("class"),Ul=Symbol("style"),Wh=Symbol("is custom element"),Kh=Symbol("is html");function qh(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function We(t,e,i,o){var r=Gh(t);if(it&&(r[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||E1(t,e,i!=null?i:"");return}r[e]!==(r[e]=i)&&(e==="loading"&&(t[Rg]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Yh(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Qh(t,e,i,o,r=!1){var E;var a=Gh(t),l=a[Wh],d=!a[Kh];let s=it&&l;s&&_o(!1);var u=e||{},p=t.tagName==="OPTION";for(var m in e)m in i||(i[m]=null);i.class?i.class=Kd(i.class):(o||i[Hl])&&(i.class=null),i[Ul]&&((E=i.style)!=null||(i.style=null));var f=Yh(t);for(let P in i){let O=i[P];if(p&&P==="value"&&O==null){t.value=t.__value="",u[P]=O;continue}if(P==="class"){var $=t.namespaceURI==="http://www.w3.org/1999/xhtml";re(t,$,O,o,e==null?void 0:e[Hl],i[Hl]),u[P]=O,u[Hl]=i[Hl];continue}if(P==="style"){Qe(t,O,e==null?void 0:e[Ul],i[Ul]),u[P]=O,u[Ul]=i[Ul];continue}var y=u[P];if(!(O===y&&!(O===void 0&&t.hasAttribute(P)))){u[P]=O;var b=P[0]+P[1];if(b!=="$$")if(b==="on"){let D={},U="$$"+P,z=P.slice(2);var S=Sh(z);if(wh(z)&&(z=z.slice(0,-7),D.capture=!0),!S&&y){if(O!=null)continue;t.removeEventListener(z,u[U],D),u[U]=null}if(O!=null)if(S)t[`__${z}`]=O,st([z]);else{let G=function(le){u[P].call(this,le)};var R=G;u[U]=wf(z,t,G,D)}else S&&(t[`__${z}`]=void 0)}else if(P==="style")We(t,P,O);else if(P==="autofocus")yf(t,!!O);else if(!l&&(P==="__value"||P==="value"&&O!=null))t.value=t.__value=O;else if(P==="selected"&&p)qh(t,O);else{var C=P;d||(C=Th(C));var I=C==="defaultValue"||C==="defaultChecked";if(O==null&&!l&&!I)if(a[P]=null,C==="value"||C==="checked"){let D=t,U=e===void 0;if(C==="value"){let z=D.defaultValue;D.removeAttribute(C),D.defaultValue=z,D.value=D.__value=U?z:null}else{let z=D.defaultChecked;D.removeAttribute(C),D.defaultChecked=z,D.checked=U?z:!1}}else t.removeAttribute(P);else I||f.includes(C)&&(l||typeof O!="string")?t[C]=O:typeof O!="function"&&We(t,C,O,r)}}}return s&&_o(!0),u}function to(t,e,i=[],o,r=!1,a=Gr){let l=i.map(a);var d=void 0,s={},u=t.nodeName==="SELECT",p=!1;if(Zi(()=>{var f=e(...l.map(n)),$=Qh(t,d,f,o,r);p&&u&&"value"in f&&qd(t,f.value,!1);for(let b of Object.getOwnPropertySymbols(s))f[b]||ji(s[b]);for(let b of Object.getOwnPropertySymbols(f)){var y=f[b];b.description===Yp&&(!d||y!==d[b])&&(s[b]&&ji(s[b]),s[b]=Bi(()=>As(t,()=>y))),$[b]=y}d=$}),u){var m=t;ko(()=>{qd(m,d.value),Mf(m)})}p=!0}function Gh(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[Wh]:t.nodeName.includes("-"),[Kh]:t.namespaceURI===Eg}}var Uh=new Map;function Yh(t){var e=Uh.get(t.nodeName);if(e)return e;Uh.set(t.nodeName,e=[]);for(var i,o=t,r=Element.prototype;r!==o;){i=uu(o);for(var a in i)i[a].set&&e.push(a);o=xa(o)}return e}function E1(t,e,i){var o;ke&&(e==="srcset"&&P1(t,i)||Vf((o=t.getAttribute(e))!=null?o:"",i)||eh(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function Vf(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function zh(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function P1(t,e){var i=zh(t.srcset),o=zh(e);return o.length===i.length&&o.every(([r,a],l)=>a===i[l][1]&&(Vf(i[l][0],r)||Vf(r,i[l][0])))}var A1=cu?()=>performance.now():()=>Date.now(),Zr={tick:t=>(cu?requestAnimationFrame:bt)(t),now:()=>A1(),tasks:new Set};function jh(){let t=Zr.now();Zr.tasks.forEach(e=>{e.c(t)||(Zr.tasks.delete(e),e.f())}),Zr.tasks.size!==0&&Zr.tick(jh)}function Xh(t){let e;return Zr.tasks.size===0&&Zr.tick(jh),{promise:new Promise(i=>{Zr.tasks.add(e={c:t,f:i})}),abort(){Zr.tasks.delete(e)}}}function Vu(t,e){Hd(()=>{t.dispatchEvent(new CustomEvent(e))})}function V1(t){if(t==="float")return"cssFloat";if(t==="offset")return"cssOffset";if(t.startsWith("--"))return t;let e=t.split("-");return e.length===1?e[0]:e[0]+e.slice(1).map(i=>i[0].toUpperCase()+i.slice(1)).join("")}function Zh(t){let e={},i=t.split(";");for(let o of i){let[r,a]=o.split(":");if(!r||a===void 0)break;let l=V1(r.trim());e[l]=a.trim()}return e}var R1=t=>t;function Jr(t,e,i,o){var R;var r=(t&1)!==0,a=(t&2)!==0,l=r&&a,d=(t&4)!==0,s=l?"both":r?"in":"out",u,p=e.inert,m=e.style.overflow,f,$;function y(){var O;var E=Ot,P=xt;Yi(null),ho(null);try{return u!=null?u:u=i()(e,(O=o==null?void 0:o())!=null?O:{},{direction:s})}finally{Yi(E),ho(P)}}var b={is_global:d,in(){var E;if(e.inert=p,!r){$==null||$.abort(),(E=$==null?void 0:$.reset)==null||E.call($);return}a||f==null||f.abort(),Vu(e,"introstart"),f=Rf(e,y(),$,1,()=>{Vu(e,"introend"),f==null||f.abort(),f=u=void 0,e.style.overflow=m})},out(E){if(!a){E==null||E(),u=void 0;return}e.inert=!0,Vu(e,"outrostart"),$=Rf(e,y(),f,0,()=>{Vu(e,"outroend"),E==null||E()})},stop:()=>{f==null||f.abort(),$==null||$.abort()}},S=xt;if(((R=S.transitions)!=null?R:S.transitions=[]).push(b),r&&Ud){var C=d;if(!C){for(var I=S.parent;I&&(I.f&65536)!==0;)for(;(I=I.parent)&&(I.f&16)===0;);C=!I||(I.f&32768)!==0}C&&ko(()=>{kt(()=>b.in())})}}function Rf(t,e,i,o,r){var a=o===1;if(js(e)){var l,d=!1;return kn(()=>{if(!d){var S=e({direction:a?"in":"out"});l=Rf(t,S,i,o,r)}}),{abort:()=>{d=!0,l==null||l.abort()},deactivate:()=>l.deactivate(),reset:()=>l.reset(),t:()=>l.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return r(),{abort:bt,deactivate:bt,reset:bt,t:()=>o};let{delay:s=0,css:u,tick:p,easing:m=R1}=e;var f=[];if(a&&i===void 0&&(p&&p(0,1),u)){var $=Zh(u(0,1));f.push($,$)}var y=()=>1-o,b=t.animate(f,{duration:s,fill:"forwards"});return b.onfinish=()=>{var z;b.cancel();var S=(z=i==null?void 0:i.t())!=null?z:1-o;i==null||i.abort();var C=o-S,I=e.duration*Math.abs(C),R=[];if(I>0){var E=!1;if(u)for(var P=Math.ceil(I/16.666666666666668),O=0;O<=P;O+=1){var D=S+C*m(O/P),U=Zh(u(D,1-D));R.push(U),E||(E=U.overflow==="hidden")}E&&(t.style.overflow="hidden"),y=()=>{var G=b.currentTime;return S+C*m(G/I)},p&&Xh(()=>{if(b.playState!=="running")return!1;var G=y();return p(G,1-G),!0})}b=t.animate(R,{duration:I,fill:"forwards"}),b.onfinish=()=>{y=()=>o,p==null||p(o,1-o),r()}},{abort:()=>{b&&(b.cancel(),b.effect=null,b.onfinish=bt)},deactivate:()=>{r=bt},reset:()=>{o===0&&(p==null||p(1,0))},t:()=>y()}}function Nf(t,e,i){var o=Yo(t,e);o&&o.set&&(t[e]=i,Ao(()=>{t[e]=null}))}var ta,zl,Qd,Nu,Jh,Ou=class Ou{constructor(e){Qs(this,Nu);Qs(this,ta,new WeakMap);Qs(this,zl);Qs(this,Qd);xl(this,Qd,e)}observe(e,i){var o=Di(this,ta).get(e)||new Set;return o.add(i),Di(this,ta).set(e,o),Cg(this,Nu,Jh).call(this).observe(e,Di(this,Qd)),()=>{var r=Di(this,ta).get(e);r.delete(i),r.size===0&&(Di(this,ta).delete(e),Di(this,zl).unobserve(e))}}};ta=new WeakMap,zl=new WeakMap,Qd=new WeakMap,Nu=new WeakSet,Jh=function(){var e;return(e=Di(this,zl))!=null?e:xl(this,zl,new ResizeObserver(i=>{for(var o of i){Ou.entries.set(o.target,o);for(var r of Di(this,ta).get(o.target)||[])r(o)}}))},lr(Ou,"entries",new WeakMap);var Of=Ou;var N1=new Of({box:"border-box"});function Mn(t,e,i){var o=N1.observe(t,()=>i(t[e]));ko(()=>(kt(()=>i(t[e])),o))}function e_(t,e){return t===e||(t==null?void 0:t[jo])===e}function nt(t={},e,i,o){return ko(()=>{var r,a;return en(()=>{r=a,a=(o==null?void 0:o())||[],kt(()=>{t!==i(...a)&&(e(t,...a),r&&e_(i(...r),t)&&e(null,...r))})}),()=>{kn(()=>{a&&e_(i(...a),t)&&e(null,...a)})}}),t}function To(t=!1){let e=zt,i=e.l.u;if(!i)return;let o=()=>Au(e.s);if(t){let r=0,a={},l=Gr(()=>{let d=!1,s=e.s;for(let u in s)s[u]!==a[u]&&(a[u]=s[u],d=!0);return d&&r++,r});o=()=>n(l)}i.b.length&&Rd(()=>{t_(e,o),Xs(i.b)}),Ne(()=>{let r=kt(()=>i.m.map(Vg));return()=>{for(let a of r)typeof a=="function"&&a()}}),i.a.length&&Ne(()=>{t_(e,o),Xs(i.a)})}function t_(t,e){if(t.l.s)for(let i of t.l.s)n(i);e()}function Gd(t,e,i){if(t==null)return e(void 0),i&&i(void 0),bt;let o=kt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Wl=[];function Mr(t,e){return{subscribe:ae(t,e).subscribe}}function ae(t,e=bt){let i=null,o=new Set;function r(d){if(Tl(t,d)&&(t=d,i)){let s=!Wl.length;for(let u of o)u[1](),Wl.push(u,t);if(s){for(let u=0;u<Wl.length;u+=2)Wl[u][0](Wl[u+1]);Wl.length=0}}}function a(d){r(d(t))}function l(d,s=bt){let u=[d,s];return o.add(u),o.size===1&&(i=e(r,a)||bt),d(t),()=>{o.delete(u),o.size===0&&i&&(i(),i=null)}}return{set:r,update:a,subscribe:l}}function bi(t,e,i){let o=!Array.isArray(t),r=o?[t]:t;if(!r.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let a=e.length<2;return Mr(i,(l,d)=>{let s=!1,u=[],p=0,m=bt,f=()=>{if(p)return;m();let y=e(o?u[0]:u,l,d);a?l(y):m=typeof y=="function"?y:bt},$=r.map((y,b)=>Gd(y,S=>{u[b]=S,p&=~(1<<b),s&&f()},()=>{p|=1<<b}));return s=!0,f(),function(){Xs($),m(),s=!1}})}function he(t){let e;return Gd(t,i=>e=i)(),e}var Du=!1,Df=Symbol();function x(t,e,i){var a;let o=(a=i[e])!=null?a:i[e]={store:null,source:gs(void 0),unsubscribe:bt};if(o.store!==t&&!(Df in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=bt;else{var r=!0;o.unsubscribe=Gd(t,l=>{r?o.source.v=l:N(o.source,l)}),r=!1}return t&&Df in i?he(t):n(o.source)}function Re(){let t={};function e(){Ao(()=>{for(var i in t)t[i].unsubscribe();go(t,Df,{enumerable:!1,value:!0})})}return[t,e]}function Bf(t){var e=Du;try{return Du=!1,[t(),Du]}finally{Du=e}}var z1={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return ke&&Kg(`${t.name}.${String(e)}`),!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function Vn(t,e,i){return new Proxy(ke?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},z1)}var W1={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(js(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o)return o[e]}},set(t,e,i){let o=t.props.length;for(;o--;){let r=t.props[o];js(r)&&(r=r());let a=Yo(r,e);if(a&&a.set)return a.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(js(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let r=Yo(o,e);return r&&!r.configurable&&(r.configurable=!0),r}}},has(t,e){if(e===jo||e===wl)return!1;for(let i of t.props)if(js(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props)if(js(i)&&(i=i()),!!i){for(let o in i)e.includes(o)||e.push(o);for(let o of Object.getOwnPropertySymbols(i))e.includes(o)||e.push(o)}return e}};function ks(...t){return new Proxy({props:t},W1)}function i_(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function g(t,e,i,o){var D,U;var r=(i&1)!==0,a=!fs||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,s=!1,u;l?[u,s]=Bf(()=>t[e]):u=t[e];var p=jo in t||wl in t,m=l&&((U=(D=Yo(t,e))==null?void 0:D.set)!=null?U:p&&e in t&&(z=>t[e]=z))||void 0,f=o,$=!0,y=!1,b=()=>(y=!0,$&&($=!1,d?f=kt(o):f=o),f);u===void 0&&o!==void 0&&(m&&a&&Wg(e),u=b(),m&&m(u));var S;if(a)S=()=>{var z=t[e];return z===void 0?b():($=!0,y=!1,z)};else{var C=(r?Gr:En)(()=>t[e]);C.f|=131072,S=()=>{var z=n(C);return z!==void 0&&(f=void 0),z===void 0?f:z}}if((i&4)===0&&a)return S;if(m){var I=t.$$legacy;return function(z,G){return arguments.length>0?((!a||!G||I||s)&&m(G?S():z),z):S()}}var R=!1,E=!1,P=gs(u),O=Gr(()=>{var z=S(),G=n(P);return R?(R=!1,E=!0,G):(E=!1,P.v=z)});return l&&n(O),r||(O.equals=Cl),function(z,G){if(Eu!==null&&(R=E,S(),n(P)),arguments.length>0){let le=G?n(O):a&&l?di(z):z;if(!O.equals(le)){if(R=!0,N(P,le),y&&f!==void 0&&(f=le),i_(O))return z;kt(()=>n(O))}return z}return i_(O)?O.v:n(O)}}var K1;typeof HTMLElement=="function"&&(K1=class extends HTMLElement{constructor(e,i,o){super();lr(this,"$$ctor");lr(this,"$$s");lr(this,"$$c");lr(this,"$$cn",!1);lr(this,"$$d",{});lr(this,"$$r",!1);lr(this,"$$p_d",{});lr(this,"$$l",{});lr(this,"$$l_u",new Map);lr(this,"$$me");this.$$ctor=e,this.$$s=i,o&&this.attachShadow({mode:"open"})}addEventListener(e,i,o){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(i),this.$$c){let r=this.$$c.$on(e,i);this.$$l_u.set(i,r)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let r=this.$$l_u.get(i);r&&(r(),this.$$l_u.delete(i))}}connectedCallback(){return _t(this,null,function*(){if(this.$$cn=!0,!this.$$c){let i=function(a){return l=>{let d=document.createElement("slot");a!=="default"&&(d.name=a),_(l,d)}};var e=i;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let o={},r=q1(this);for(let a of this.$$s)a in r&&(a==="default"&&!this.$$d.children?(this.$$d.children=i(a),o.default=!0):o[a]=i(a));for(let a of this.attributes){let l=this.$$g_p(a.name);l in this.$$d||(this.$$d[l]=Ff(l,a.value,this.$$p_d,"toProp"))}for(let a in this.$$p_d)!(a in this.$$d)&&this[a]!==void 0&&(this.$$d[a]=this[a],delete this[a]);this.$$c=Vh({component:this.$$ctor,target:this.shadowRoot||this,props:Qt(Ae({},this.$$d),{$$slots:o,$$host:this})}),this.$$me=Su(()=>{en(()=>{var a;this.$$r=!0;for(let l of jp(this.$$c)){if(!((a=this.$$p_d[l])!=null&&a.reflect))continue;this.$$d[l]=this.$$c[l];let d=Ff(l,this.$$d[l],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,d)}this.$$r=!1})});for(let a in this.$$l)for(let l of this.$$l[a]){let d=this.$$c.$on(a,l);this.$$l_u.set(l,d)}this.$$l={}}})}attributeChangedCallback(e,i,o){var r;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Ff(e,o,this.$$p_d,"toProp"),(r=this.$$c)==null||r.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return jp(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function Ff(t,e,i,o){var a;let r=(a=i[t])==null?void 0:a.type;if(e=r==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!i[t])return e;if(o==="toAttribute")switch(r){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(r){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function q1(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var o_="5";var n_,r_,s_;typeof window!="undefined"&&((s_=(r_=(n_=window.__svelte)!=null?n_:window.__svelte={}).v)!=null?s_:r_.v=new Set).add(o_);var ud=require("@vkontakte/videoplayer-core/es2015"),gJ=require("@vkontakte/videoplayer-core/es2015"),cl=require("@vkontakte/videoplayer-shared/es2015"),f$=require("@vkontakte/videoplayer-statistics/es2015");var Ra=require("@vkontakte/videoplayer-shared/es2015");var Q1={isMobile:void 0,disableInvisibleComponentsTimeout:500,debugLog:!1,devNullLog:!1,defaultLanguage:Ra.InterfaceLanguage.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:Ra.VideoQuality.Q_480P,highQualityLimit:Ra.VideoQuality.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,returnFocusOnControlsHide:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,thinStatistics:!1,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,tracer:!1,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,interactiveControlsTapPlace:!1,interactiveControlsFillAnimation:!1,interactiveControlsHideAnimation:!1,interactiveHistoryEndChapterFix:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,initSubtitles:!0,useCallbackForMediaSessionNextPrevClick:!1,usePerformanceFix:!1,userVideoPrefs:!1,savePreferredStatesOnUserActionOnly:!1,useLoopSetting:!1,doubleForwardAvailable:!1,useRichSeek:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,paramsOverride:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null,font:null,focusedOutlineWidth:null,focusedOutlineRadius:null,controlsDesktopPaddingHorizontal:null,timelinePaddingHorizontal:null,settingsBackgroundColor:null,controlsGradientHeight:null,controlsGradient:null},userSalt:"0",doubleForwardActivationTime:600,playbackStatusAnimationDuration:1e3,playbackStatusNextVideoAnimationDuration:1e3,suitableDurationForUsingRichSeek:180},a_=t=>(0,Ra.fillWithDefault)(t,Q1),l_=t=>Pl("ui-config",t),Rt=()=>El("ui-config");var Yd="vk_player_debug_panel_opened";var d_="videoplayer",c_="videoplayer";var _s={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},u_=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),p_=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),f_=new Set(["ShiftRight","ShiftLeft"]);var m_=["TIMELINE"],jd=[...m_,"GRAPH_BUTTON"],Hf=[...m_,"PLAY_BUTTON"],Xd=[...jd,"PLAY_BUTTON"];var es=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(es||{}),Oa={xs:0,s:1,m:2,l:3,xl:4};var Zd=require("@vkontakte/videoplayer-shared/es2015"),v_=require("@vkontakte/videoplayer-core/es2015"),g_=require("@vkontakte/videoplayer-statistics/es2015");var Bu="prod",Da="1.1.76-beta.2";var Ba=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var h_=Symbol("storeContext"),__=Symbol("microStoresContext"),b_=(t,e)=>{Pl(h_,t),Pl(__,e),Bu==="dev"&&(window.app={store:t,microStores:e})},ve=()=>{let t=El(h_);return(0,Zd.assertNonNullable)(t,"Store context is empty!"),t},Co=()=>{let t=El(__);return(0,Zd.assertNonNullable)(t,"MicroStores context is empty!"),t},ci=(t,e)=>Hu(t,t.getValue(),e),Hu=(t,e,i)=>Mr(e,o=>{let r=t.subscribe(a=>{o(a),i==null||i(a)});return()=>r.unsubscribe()}),$_=(t,e,i,o)=>{var D,U,z,G,le,j,ie,Y,ge;let r=t.info,{width:a,height:l}=he(i.ui.playerSize),d=(U=(D=r.throughputEstimation$.getValue())==null?void 0:D.toFixed(0))!=null?U:0,s=(G=(z=r.rttEstimation$.getValue())==null?void 0:z.toFixed(0))!=null?G:0,u=r.isAutoQualityEnabled$.getValue()?"auto":"manual",p=`${Da} (core: ${v_.VERSION}, stat: ${g_.VERSION}, shared: ${Zd.VERSION})`,m=he(i.state.errorLog$),f=m.length?`
45
- `+m.map((ce,ne)=>{var Oe;let _e=`${ne}) Type: ${ce.id}
46
- `,we=`Message: ${ce.message} (${ce.thrown})
47
- `,Z=`Trace: ${(Oe=ce.thrown)==null?void 0:Oe.stack}
48
- `;return _e+we+Z}).join(`
49
- `):void 0,$=i.state.isAudioDisabled?"disabled":he(i.state.isAudioAvailable$)?void 0:"unavailable",y=t.info.currentVideoStream$.getValue(),b=t.info.currentAudioStream$.getValue(),S=[];y&&S.push(`Video: ${(le=y==null?void 0:y.codec)!=null?le:""}`+(y!=null&&y.hdr?" (HDR)":"")),b&&S.push(`Audio: ${(j=b==null?void 0:b.codec)!=null?j:""}`+(b!=null&&b.language?` (${b.language})`:""));let C=r.currentQuality$.getValue(),I="";if(C){let ce=r.availableQualitiesFps$.getValue()[C];I=ce?`${ce}fps`:""}let R=r.httpConnectionType$.getValue(),E=(Y=(ie=r.currentBuffer$.getValue())==null?void 0:ie.end)!=null?Y:0,P=Math.max(E-he(i.state.positionExact$),0),O={Version:p,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),TraceId:o,VSID:he(i.vsid),"Content host":r.hostname$.getValue(),"Connection type":R?R+(r.httpConnectionReused$.getValue()?" (reused)":""):"",Throughput:`${d}Kbps @ ${s}ms RTT`,Format:r.currentFormat$.getValue(),"Available Formats":e!=null&&e.sources?Object.keys(e.sources).join(", "):"",Streams:S.join(", "),Quality:`${u} ${C!=null?C:""} ${I}`,"Available qualities":r.availableQualities$.getValue().join(", "),Audio:$,Position:`${he(i.state.positionExact$)}s`,Buffer:`${P}s`,State:`${he(i.playerPhase)} ${(ge=r.playbackState$.getValue())!=null?ge:""}`,"Player size":`${a}x${l}`,URL:window.location.href,Errors:f};return Object.entries(O).filter(([ce,ne])=>ne!==void 0).map(([ce,ne])=>`${ce}: ${ne}`).join(`
50
- `)},y_=(t,e,i)=>{var D,U,z,G;let o=t.info,{width:r,height:a}=he(i.ui.playerSize),l={version:Da,viewport:`${r}x${a}`,volume:Math.round(he(i.state.volume$)*100)};l.id=i.videoId,o.currentFormat$.getValue()&&(l.provider=o.currentFormat$.getValue()),o.hostname$.getValue()&&(l.cdn=o.hostname$.getValue());let u=o.intrinsicVideoSize$.getValue();u&&(l.videoSize=`${u.width}x${u.height}`);let p=o.currentBuffer$.getValue(),m=o.isLive$.getValue(),f=o.liveBufferTime$.getValue();p&&(m&&f?l.buffer=p.end-f:l.buffer=Math.max(p.end-he(i.state.positionExact$),0)),l.position=he(i.state.positionExact$);let $=o.throughputEstimation$.getValue();$&&(l.speed=$);let y=o.videoBitrate$.getValue();y&&(l.bitrate=y);let b=o.liveLatency$.getValue();b&&(l.liveLatency=b);let S=o.currentVideoSegmentLength$.getValue();S&&(l.currentVideoSegmentLength=S);let C=o.currentAudioSegmentLength$.getValue();C&&(l.currentAudioSegmentLength=C);let I=he(i.vsid);typeof I=="string"&&(l.vsid=I);let R=(D=t.info.currentVideoStream$.getValue())==null?void 0:D.codec;R&&(l.videoCodec=R);let E=(U=t.info.currentAudioStream$.getValue())==null?void 0:U.codec;E&&(l.audioCodec=E),((z=t.info.currentVideoStream$.getValue())==null?void 0:z.hdr)&&(l.hdr=!0);let O=(G=t.info.currentAudioStream$.getValue())==null?void 0:G.language;return O&&(l.audioLanguage=O),l},x_=(t,e)=>Ba(t,e,"mp4"),w_=t=>!t.type,S_=t=>!!t.type,T_=()=>{let e=[],i=0;return{add:(o,r)=>{e[i]=[o,r],i=(i+1)%10},find:o=>e.find(([r])=>r===o)}},Fu=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}download(e){return _t(this,null,function*(){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let i=yield fetch(e,{signal:this.destroyController.signal});if(i.ok)return yield i.text();throw i}finally{this.pendingDownloads.delete(e)}})}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};var $i=require("@vkontakte/videoplayer-shared/es2015"),D6=require("@vkontakte/videoplayer-core/es2015");var G1="vk_player_",C_="vk_player_prefer_traffic_saving_enabled",I_="vk_player_preferred_volume",E_="vk_player_prefer_volume_mute",Kf="vk_player_preferred_quality",Uf="vk_player_preferred_default_quality_settings",zf="vk_player_preferred_quality_settings_by_video",P_="vk_player_preferred_stream_language",A_="vk_player_preferred_rate",k_="vk_player_preferred_autoplay_next",Wf="vk_player_preferred_subtitles_language",L_="vk_player_user_video_prefs",M_=`${G1}preview_track_close_tooltip`,V_=t=>t>1?1:t<0?0:t,qf=t=>$i.safeStorage.set(I_,V_(t).toString(10)),Uu=()=>{let t=$i.safeStorage.get(I_);return(0,$i.isNullable)(t)?void 0:V_(parseFloat(t))},Qf=(t,e)=>$i.safeStorage.set(Kf,JSON.stringify({videoId:t,value:e})),zu=()=>$i.safeStorage.remove(Kf),Gf=t=>{let e=$i.safeStorage.get(Kf);if((0,$i.isNullable)(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){zu();return}return o},Yf=(t,e)=>{e?$i.safeStorage.set(t,"true"):$i.safeStorage.remove(t)},jf=t=>$i.safeStorage.get(t)==="true",Xf=t=>Yf(E_,t),R_=()=>jf(E_),Jd=t=>Yf(C_,t),Zf=()=>jf(C_),N_=()=>$i.safeStorage.get(P_),Jf=t=>$i.safeStorage.set(P_,t),em=()=>$i.safeStorage.get(Wf),tm=t=>{t?$i.safeStorage.set(Wf,t):$i.safeStorage.remove(Wf)},O_=t=>$i.safeStorage.set(A_,JSON.stringify({rate:t})),D_=()=>{let t=$i.safeStorage.get(A_);if((0,$i.isNullable)(t))return;let{rate:e}=JSON.parse(t);return e},B_=t=>Yf(k_,t),F_=()=>jf(k_),Y1=()=>{let t=p=>{$i.safeStorage.set(Uf,JSON.stringify(p))},e=()=>{try{let p=$i.safeStorage.get(Uf);return p?JSON.parse(p):null}catch(p){return null}},i=()=>{try{let p=$i.safeStorage.get(zf);return p?JSON.parse(p):null}catch(p){return null}},o=p=>{$i.safeStorage.set(zf,JSON.stringify(p))},r=p=>{u(p);let m=p?i():null;if(m&&(m==null?void 0:m.videoId)===p)return Qt(Ae({},m),{appliesTo:"to-video"});m&&a();let f=e();return f?Qt(Ae({},f),{appliesTo:"as-default"}):(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},a=()=>{$i.safeStorage.remove(zf)},l=()=>{$i.safeStorage.remove(Uf)},d=(p,m="as-default")=>{p.type==="exact_quality"||m==="to-video"?o(p):t(p)},s=p=>{let m=r(p);if(m){switch(m.type){case"traffic_saving":Jd(!0);break;case"exact_quality":Qf(p,m.quality)}a(),l()}},u=p=>{let m=Gf(p);if(m){o({type:"exact_quality",videoId:p,quality:m});return}Zf()&&t({type:"traffic_saving",videoId:p}),Jd(!1),zu()};return{getPreferredQualitySettings:r,migrateSettingsToLegacyWay:s,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:a,getPreferredDefaultQualitySettings:e,getPreferredSubtitlesLanguage:em,savePreferredSubtitlesLanguage:tm}},{getPreferredQualitySettings:H_,migrateSettingsToLegacyWay:U_,savePreferredQualitySettings:Wu,savePreferredDefaultQualitySettings:B6,removePreferredQualitySettingsByVideo:F6,getPreferredDefaultQualitySettings:Ku}=Y1(),j1=3,X1=3,z_=()=>{let t=$i.safeStorage.get(L_);if(t)try{return JSON.parse(t)}catch(e){return null}return null},qu=(t,e)=>{var r,a;let i=z_();return(a=(r=i==null?void 0:i[t])==null?void 0:r[e])!=null?a:null},im=(t,e,i)=>{var l,d,s;let o=(l=z_())!=null?l:{},r=(s=(d=o[t])==null?void 0:d[e])!=null?s:{};Object.assign(r,i,{updatedTs:Date.now()}),t in o||(o[t]={}),o[t][e]=r;let a=Z1(o);$i.safeStorage.set(L_,JSON.stringify(a))};function Z1(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(X1),e.reduce((o,[r])=>(o[r]=J1(t[r]),o),{})}function J1(t){let e=Object.entries(t);return e.sort(([,i],[,o])=>i.updatedTs>o.updatedTs?-1:1),e.splice(j1),Object.fromEntries(e)}function W_(){$i.safeStorage.set(M_,JSON.stringify(!0))}function K_(){let t=$i.safeStorage.get(M_);try{return t?JSON.parse(t):!1}catch(e){return!1}}var Jv=require("@vkontakte/videoplayer-core/es2015");jg();var ia="var(--btn-color, #fff)";var ey=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 s;F(e,!0);let i=g(e,"width",19,()=>"24"),o=g(e,"height",19,()=>"24"),r=g(e,"fill",3,ia),a=(s=e.viewBox)!=null?s:`0 0 ${i()} ${o()}`;var l=ey(),d=T(l);ni(d,()=>e.children),w(l),B(()=>{We(l,"aria-label",e.ariaLabel),We(l,"aria-hidden",!e.ariaLabel),We(l,"width",i()),We(l,"height",o()),We(l,"viewBox",a),We(l,"fill",r()),Qe(l,e.style),We(l,"data-testid",e.testId)}),_(t,l),H()}var ty=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);function ec(t,e){F(e,!0);let i=g(e,"width",19,()=>"48"),o=g(e,"height",19,()=>"48");Je(t,{get width(){return i()},get height(){return o()},get ariaLabel(){return e.ariaLabel},get testId(){return e.testId},children:(r,a)=>{var l=ty(),d=de(l),s=T(d);ni(s,()=>e.children),w(d),vi(),_(r,l)},$$slots:{default:!0}}),H()}var Kl=require("@vkontakte/videoplayer-shared/es2015");var iy={auto_quality_invariant:"Авто",auto_quality:"Авто ({actual})",auto_quality_option:"Авто",other_quality:"Другое",high_quality:"Высокое качество",high_quality_description:"Будет использовано больше трафика",auto_quality_limit:"Автоматически",traffic_saving_quality:"Экономия трафика",traffic_saving_quality_description:"Видео грузятся быстрее, но качество ниже",default_quality_for_any_video:"Качество для всех видео",quality_applience:"Качество по умолчанию можно {action}",quality_applience_action:"изменить",menu_quality:"Качество",menu_traffic_saving:"Экономия данных",menu_playback_rate:"Скорость",menu_report:"Сообщить о проблеме",menu_pip:"Картинка в картинке",menu_pip_close:"Развернуть видео",menu_copy_video_link:"Скопировать ссылку на видео",menu_copy_video_link_with_timestamp:"Скопировать ссылку на кадр",menu_video_rotate:"Повернуть",menu_video_loop_on:"Включить повторение",menu_video_loop_off:"Отключить повторение",menu_chromecast:"Chromecast трансляция",menu_copy_debug:"Копировать данные для диагностики",menu_save_debug:"Сохранить данные для диагностики",menu_debug_overlay:"Техническая информация",menu_copy_embed_code:"Копировать код для встраивания",menu_audio_languages:"Звуковая дорожка",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"Дорожка {index}",pip_dummy_title:"Видео воспроизводится в режиме картинка в картинке",submenu_quality:"Качество",submenu_playback_rate:"Скорость",submenu_settings:"Настройки",submenu_traffic_saving:"Экономия данных",submenu_audio_languages:"Звуковая дорожка",playing_ads:"Реклама {timeleft}",skip_ads_now:"Пропустить рекламу",skip_ads_after:"Пропустить {time}с",visit_advertiser:"Перейти на сайт",aria_timeline:"Ползунок временной шкалы",aria_timeline_value:"{position} (общая длительность {duration}",doubletap_seek_step:"{seconds} секунд",playback_rate_1:"Обычная",playback_rate:"{multiplier}x",video360:"панорамное видео",subtitles_caption:"Субтитры",subtitles_auto:"{language} (Автоматические)",subtitles_off:"Выкл.",subtitles_auto_caption:"Автоматические субтитры",subtitles_turn_on:"Включить субтитры",subtitles_turn_off:"Выключить субтитры",traffic_saving_off:"Откл.",traffic_saving_on:"Вкл.",traffic_saving_helper_text:"При включении качество видео будет снижено для экономии трафика",tooltip_button_disabled:"Кнопка недоступна",tooltip_previous:"Предыдущее видео",tooltip_restart:"Начать заново",tooltip_play:"Смотреть",tooltip_pause:"Пауза",tooltip_next:"Следующее видео",tooltip_interactive_go_back:"Вернуться к предыдущей главе",tooltip_interactive_go_back_disabled:"История прохождения недоступна",tooltip_interactive_go_back_disabled_first:"Вы смотрите первую главу",tooltip_interactive_go_back_disabled_limit:"Лимит возвратов исчерпан",tooltip_chapter_without_interactive:"В этой главе нет интерактива",tooltip_interactive_of_chapter_completed:"Интерактивы этой главы уже пройдены",tooltip_interactive_seek:"Перейти к интерактиву",tooltip_interactive_graph_off:"Показать карту сюжета",tooltip_interactive_graph_on:"Скрыть карту сюжета",tooltip_live:"Перемотать на актуальный лайв",tooltip_episodes:"Эпизоды",tooltip_volume:"Включить звук",tooltip_volume_muted:"Выключить звук",tooltip_sound_unavailable:"Звук недоступен",tooltip_subtitles_off:"Включить субтитры",tooltip_subtitles_on:"Выключить субтитры",tooltip_settings_off:"Открыть настройки",tooltip_settings_on:"Закрыть настройки",tooltip_fullscreen_off:"На весь экран",tooltip_fullscreen_on:"Выйти из полноэкранного режима",tooltip_chromecast_off:"Включить Chromecast",tooltip_chromecast_on:"Выключить Chromecast",tooltip_episode_finished:"Вы уже сделали свой выбор",tooltip_episode_unfinished:"Не пройдено",tooltip_disabled_when_interactive:"Интерактив уже идёт",tooltip_disabled_when_graph_on:"Кнопка недоступна во время просмотра карты",tooltip_interactive_interaction_time_indicator:"Нажмите на элемент интерактива",tooltip_vk_logo:"Открыть в VK Видео",tooltip_vk_video_logo:"Перейти в VK Видео",tooltip_autoplay_off:"Включить автовоспроизведение",tooltip_autoplay_on:"Отключить автовоспроизведение",tooltip_context_menu_open:"Открыть контекстное меню",tooltip_context_menu_close:"Закрыть контекстное меню",download_video_caption:"Скачать видео",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"Быстрые клавиши",hotkey_map_modal_close_btn_text:"Закрыть",hotkey_map_group_title_common:"Общие",hotkey_map_group_title_playback:"Воспроизведение",hotkey_map_group_title_subtitles:"Субтитры",hotkey_map_group_title_episodes:"Эпизоды",hotkey_map_item_mute_description:"Включить или отключить звук",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"Увеличить громкость",hotkey_map_item_volume_up_value:"Стрелка вверх",hotkey_map_item_volume_down_description:"Уменьшить громкость",hotkey_map_item_volume_down_value:"Стрелка вниз",hotkey_map_item_pip_description:"Свернуть или развернуть мини-проигрыватель",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"Включить или выключить полноэкранный режим",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"Скрыть или показать контекстное меню",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"Скрыть или показать список горячих клавиш",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"Приостановить или продолжить воспроизведение",hotkey_map_item_play_toggle_value:"Пробел (или k)",hotkey_map_item_seek_backward_description:"Перемотать ролик на 10 секунд назад",hotkey_map_item_seek_backward_value:"Стрелка влево (или j)",hotkey_map_item_seek_forward_description:"Перемотать ролик на 10 секунд вперёд",hotkey_map_item_seek_forward_value:"Стрелка вправо (или l)",hotkey_map_item_fast_seek_backward_description:"Ускоренная перемотка назад",hotkey_map_item_fast_seek_backward_value:"Shift + Стрелка влево",hotkey_map_item_fast_seek_forward_description:"Ускоренная перемотка вперёд",hotkey_map_item_fast_seek_forward_value:"Shift + Стрелка вправо",hotkey_map_item_rate_down_description:"Уменьшить скорость воспроизведения",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"Увеличить скорость воспроизведения",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"Перейти к предыдущему кадру <br />(когда воспроизведение приостановлено)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"Перейти к следующему кадру <br />(когда воспроизведение приостановлено)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"Перейти к определённому моменту видео <br />(например, при нажатии на цифру «7» ролик будет перемотан до временной отметки, которая соответствует 70% от длительности видео)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"Включить или отключить субтитры",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"Перейти к предыдущему эпизоду",hotkey_map_item_prev_episode_pc_value:"Ctrl + Стрелка влево",hotkey_map_item_prev_episode_mac_value:"Option + Стрелка влево",hotkey_map_item_next_episode_description:"Перейти к следующему эпизоду",hotkey_map_item_next_episode_pc_value:"Ctrl + Стрелка вправо",hotkey_map_item_next_episode_mac_value:"Option + Стрелка вправо",hotkey_map_item_next_video_description:"Перейти к следующему видео",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"Перейти к предыдущему видео",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"дн",waiting_live_hour_value:"ч",waiting_live_minute_value:"мин",waiting_live_second_value:"сек",waiting_live_colon:":",waiting_live_upcoming_title:"Трансляция еще не началась",waiting_live_timer_title:"До начала трансляции осталось",waiting_live_recover_title:"Трансляция приостановлена - она продолжится, когда автор вернётся",waiting_record_title:"Трансляция завершена - запись появится позже",aria_label_video_player:"Видео плеер",aria_label_spherical_control:"Контроллер для сферического видео. Используйте клавиши со стрелками для панорамирования видео.",aria_label_debug_panel:"Область с технической информацией, сделайте скриншот для техподдержки",aria_label_new_tab_alert:"Откроется в новой вкладке.",aria_label_menu_quality:"Качество: {actual}",aria_label_menu_audio_languages:"Язык аудио: {actual}",aria_label_menu_rate:"Скорость: {actual}",aria_label_menu_subtitle:"Субтитры: {actual}",aria_label_menu_download:"Скачать видео",aria_label_menu_debug_overlay:"Отображение технической информации",aria_label_menu_rotate:"Повернуть видео на 90 градусов",aria_label_menu_loop:"Переключение режима повторения",aria_label_submenu_back:"Вернуться в меню настроек",aria_label_submenu_traffic_saving:"Режим экономии данных",aria_label_settings:"Настройки",aria_label_context_menu:"Контекстное меню",aria_label_autoplay:"Автовоспроизведение",end_screen_next_video:"Следующее видео",end_screen_recommended_video:"Рекомендуемое видео",slow_video_notification_button:"Выбрать качество «Авто»",slow_video_notification_force_description:`Видео грузится слишком медленно,
51
- качество изменено на «Авто»`,slow_video_notification_suggest_description:`Видео загружается слишком медленно -
52
- попробуйте изменить качество на «Авто»`,double_forward_label:"2x",preview_track_notification_text:"Потяните вверх для точной перемотки",preview_track_close_tooltip:"Выйти из режима точной перемотки"},q_=iy;var oy={auto_quality_invariant:"Auto",auto_quality:"Auto ({actual})",auto_quality_option:"Auto",other_quality:"Other",high_quality:"High quality",high_quality_description:"Uses more data",auto_quality_limit:"Auto",traffic_saving_quality:"Data saving",traffic_saving_quality_description:"Videos load faster but at lower quality",quality_applience:"You can {action} the default quality",quality_applience_action:"change",default_quality_for_any_video:"Quality for all videos",menu_quality:"Quality",menu_playback_rate:"Playback rate",menu_traffic_saving:"Data saving",menu_report:"Report a problem",menu_pip:"Picture in picture",menu_pip_close:"Expand video",menu_copy_video_link:"Copy video link",menu_copy_video_link_with_timestamp:"Copy link with timestamp",menu_video_rotate:"Rotate",menu_video_loop_on:"Enable loop",menu_video_loop_off:"Disable loop",menu_chromecast:"Chromecast stream",menu_copy_debug:"Copy debug info",menu_save_debug:"Save debug info",menu_debug_overlay:"Tech stats",menu_copy_embed_code:"Copy embed code",menu_audio_languages:"Audio track",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"Audio track {index}",pip_dummy_title:"Video plays in picture-in-picture mode",submenu_quality:"Quality",submenu_playback_rate:"Playback rate",submenu_traffic_saving:"Data saving",submenu_settings:"Settings",submenu_audio_languages:"Audio track",playing_ads:"Ads {timeleft}",skip_ads_after:"Skip ads",skip_ads_now:"Skip {time}s",visit_advertiser:"Visit site",aria_timeline:"Time scale slider",aria_timeline_value:"{position} out of {duration}",doubletap_seek_step:"{seconds} seconds",playback_rate_1:"Normal",playback_rate:"{multiplier}x",video360:"spherical video",subtitles_caption:"Subtitles",subtitles_auto:"{language} (Auto-generated)",subtitles_off:"Off",subtitles_auto_caption:"Auto subtitles",subtitles_turn_on:"Turn on subtitles",subtitles_turn_off:"Turn off subtitles",traffic_saving_off:"Off",traffic_saving_on:"On",traffic_saving_helper_text:"When turned on the video quality will be reduced to save data",tooltip_button_disabled:"Button disabled",tooltip_previous:"Previous video",tooltip_restart:"Watch again",tooltip_play:"Play",tooltip_pause:"Pause",tooltip_next:"Next video",tooltip_interactive_go_back:"Back to previous chapter",tooltip_interactive_go_back_disabled:"Interactive history unavailable",tooltip_interactive_go_back_disabled_first:"You're watching the first chapter",tooltip_interactive_go_back_disabled_limit:"Go-back limit exceeded",tooltip_chapter_without_interactive:"This chapter has no interactive segment",tooltip_interactive_of_chapter_completed:"Chapter's interactive segments already watched",tooltip_interactive_seek:"Go to interactive",tooltip_interactive_graph_off:"Show interactive graph",tooltip_interactive_graph_on:"Hide interactive graph",tooltip_live:"Go to the live edge",tooltip_episodes:"Episodes",tooltip_volume:"Volume off",tooltip_volume_muted:"Turn volume on",tooltip_sound_unavailable:"Sound unavailable",tooltip_subtitles_off:"Turn subtitles on",tooltip_subtitles_on:"Turn subtitles off",tooltip_settings_off:"Open settings",tooltip_settings_on:"Close settings",tooltip_fullscreen_off:"Enter fullscreen mode",tooltip_fullscreen_on:"Exit fullscreen mode",tooltip_chromecast_off:"Turn Chromecast on",tooltip_chromecast_on:"Turn Chromecast off",tooltip_episode_finished:"You have already viewed interactive episode",tooltip_episode_unfinished:"Interactive episode not finished",tooltip_disabled_when_interactive:"Interactive video in progress",tooltip_disabled_when_graph_on:"Button is disabled when graph is opened",tooltip_interactive_interaction_time_indicator:"Press the interactive element",tooltip_vk_logo:"Open in VK Video",tooltip_vk_video_logo:"Go to VK Video",tooltip_autoplay_off:"Turn autoplay on",tooltip_autoplay_on:"Turn autoplay off",tooltip_context_menu_open:"Open context menu",tooltip_context_menu_close:"Close context menu",download_video_caption:"Download video",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"Keyboard shortcuts",hotkey_map_modal_close_btn_text:"Close",hotkey_map_group_title_common:"Common",hotkey_map_group_title_playback:"Playback",hotkey_map_group_title_subtitles:"Subtitles",hotkey_map_group_title_episodes:"Episodes",hotkey_map_item_mute_description:"Toggle mute",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"Increase volume",hotkey_map_item_volume_up_value:"Arrow up",hotkey_map_item_volume_down_description:"Decrease volume",hotkey_map_item_volume_down_value:"Arrow down",hotkey_map_item_pip_description:"Toggle miniplayer",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"Toggle full screen",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"Hide or show context menu",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"Hide or show list of hotkeys",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"Toggle play/pause",hotkey_map_item_play_toggle_value:"Space (or k)",hotkey_map_item_seek_backward_description:"Rewind 10 seconds",hotkey_map_item_seek_backward_value:"Arrow left (or j)",hotkey_map_item_seek_forward_description:"Forward 10 seconds",hotkey_map_item_seek_forward_value:"Arrow right (or l)",hotkey_map_item_fast_seek_backward_description:"Fast rewind",hotkey_map_item_fast_seek_backward_value:"Shift + Arrow left",hotkey_map_item_fast_seek_forward_description:"Fast forward",hotkey_map_item_fast_seek_forward_value:"Shift + Arrow right",hotkey_map_item_rate_down_description:"Decrease playback rate",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"Increase playback rate",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"Previous frame (while paused)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"Next frame (while paused)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"Seek to specific point in the video (7 advances to 70% of duration)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"Toggle captions ON/OFF",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"Seek to previous episode",hotkey_map_item_prev_episode_pc_value:"Ctrl + Arrow left",hotkey_map_item_prev_episode_mac_value:"Option + Arrow left",hotkey_map_item_next_episode_description:"Seek to next episode",hotkey_map_item_next_episode_pc_value:"Ctrl + Arrow right",hotkey_map_item_next_episode_mac_value:"Option + Arrow right",hotkey_map_item_next_video_description:"Next video",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"Previous video",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"d",waiting_live_hour_value:"h",waiting_live_minute_value:"min",waiting_live_second_value:"sec",waiting_live_colon:":",waiting_live_upcoming_title:"The broadcast hasn't started yet",waiting_live_timer_title:"Before the start of the broadcast left",waiting_live_recover_title:"The broadcast has been paused - it will resume when the author returns",waiting_record_title:"The broadcast completed - recording will appear later",aria_label_video_player:"Video player",aria_label_spherical_control:"Spherical video control. Use the arrow keys to pan the video.",aria_label_debug_panel:"Technical information area, take a screenshot for technical support",aria_label_new_tab_alert:"Opens in a new tab.",aria_label_menu_quality:"Quality: {actual}",aria_label_menu_audio_languages:"Audio language: {actual}",aria_label_menu_rate:"Rate: {actual}",aria_label_menu_subtitle:"Subtitles: {actual}",aria_label_menu_download:"Download video",aria_label_menu_debug_overlay:"Display of technical information",aria_label_menu_rotate:"Rotate video 90 degrees",aria_label_menu_loop:"Toggle loop",aria_label_submenu_back:"Return to settings menu",aria_label_submenu_traffic_saving:"Data saving mode",aria_label_settings:"Settings",aria_label_context_menu:"Context menu",aria_label_autoplay:"Autoplay",end_screen_next_video:"Next video",end_screen_recommended_video:"Recommended video",slow_video_notification_button:"Select Auto quality",slow_video_notification_force_description:`The video is loading too slowly,
53
- so the quality was changed to Auto`,slow_video_notification_suggest_description:`The video is loading too slowly.
54
- Try switching the quality to Auto.`,double_forward_label:"2x",preview_track_notification_text:"pull up to open precise rewind",preview_track_close_tooltip:"dismiss precise rewind"},Q_=oy;var Ls=new Map;Ls.set(Kl.InterfaceLanguage.EN,Q_);Ls.set(Kl.InterfaceLanguage.RU,q_);var G_=new Map,om=({language:t,pack:e,fallback:i})=>{if(Ls.has(t)){let o=Ls.get(t);Ls.set(t,Ae(Ae({},o),e))}else Ls.set(t,e);G_.set(t,i)},nm=t=>Ls.has(t),rm=(t,e,i,o)=>{var l;let r=Ls.get(t),a=r==null?void 0:r[e];if((0,Kl.isNullable)(a)){let d=(l=G_.get(t))!=null?l:o,s=d?Ls.get(d):void 0;a=s==null?void 0:s[e]}return(0,Kl.isNullable)(a)?e+Object.values(i!=null?i:{}).join(" "):i?a.replaceAll(/{(\w+?)}/g,(d,s)=>{var u;return(u=i[s])!=null?u:""}):a},Q=(t,e)=>{let{interfaceLanguage$:i}=ve(),o=he(i),r=Rt();return rm(o,t,e,r.defaultLanguage)};var ny=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 tc(t,e){F(e,!1);let i=Q("video360");To(),ec(t,{width:"76",height:"45",get ariaLabel(){return i},testId:"video-360-icon",children:(o,r)=>{var a=ny();_(o,a)},$$slots:{default:!0}}),H()}var x8=require("@vkontakte/videoplayer-core/es2015");var ql;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(ql||(ql={}));var ry=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,sy=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,ay=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Qu="?",ly="X-Sentry-Auth",dy=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function cy(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=ry.exec(i[a]))r={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||Qu,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=ay.exec(i[a]))r={filename:o[2],function:o[1]||Qu,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=sy.exec(i[a]))a===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),r={filename:o[3],function:o[1]||Qu,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!r.function&&r.lineno&&(r.function=Qu),e.push(r)}return e.length?{value:Y_(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function Y_(t){return(t&&t.message||"No error message").split(`
56
- `).filter(i=>!!i)[0]}function uy(t){try{let e=cy(t);if(e)return e}catch(e){}return{value:Y_(t),type:t&&t.name,stacktrace:{frames:[]}}}function py(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var Gu=class{constructor(e){if(e&&e.dsn){let i=dy.exec(e.dsn),o=i?i.slice(1):[],r=o[5].split("/"),a=r.slice(0,-1).join("/");this.apiUrl=o[0]+"://"+o[3]+(o[4]?":"+o[4]:"")+(a?"/"+a:"")+"/api/"+r.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+o[1]+(o[2]?",sentry_secret="+o[2]:"")}this.environment=e&&e.environment}prepare(e){return Qt(Ae({},this.getRequestBlank()),{exception:{values:[uy(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(ly,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:py(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function j_(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function fy(){return window}var Yu=class t extends Gu{constructor(e,i=fy()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:r=u=>u,beforeBreadcrumb:a=u=>u,blacklistUrls:l=[],ignoreErrors:d=[],release:s=void 0}=this.options||{};this.plugins=o.map(u=>new u(this)),this.beforeSend=r,this.beforeBreadcrumb=a,this.blacklistUrls=l,this.ignoreErrors=d,this.release=s}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",Ae({},e)),this}setTag(e,i){return this.extendState({tags:{[e]:i}}),this}setExtra(e,i){return this.extendState({extra:{[e]:i}}),this}setExtras(e){return this.setKeyState("extra",Ae({},e)),this}setUser(e){return this.setKeyState("user",Ae({},e)),this}clone(){let e=new t(Qt(Ae({},this.options),{plugins:[]}));return e.extendState(this.state),e}withScope(e){let i=this.clone();e(i),i.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[Ae({timestamp:Date.now()/1e3},this.beforeBreadcrumb(e))]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send(Qt(Ae({},this.getRequestBlank()),{message:e,level:i}))}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(i=>this.ignoreErrors.some(o=>j_(i,o))):!1}getRequestBlank(){return Ae(Qt(Ae({request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}}},super.getRequestBlank()),{sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"}}),this.state)}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend(Ae({release:this.release},e))),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:i="",value:o=""}=e.exception.values&&e.exception.values[0]||{};return[`${o}`,`${i}: ${o}`]}catch(i){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let i=this.getEventFilterUrl(e);return i?this.blacklistUrls.some(o=>j_(i,o)):!1}getEventFilterUrl(e){try{if(e.exception){let i=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return i&&i[i.length-1].filename||null}return null}catch(i){return null}}extendState(e){this._state=Object.keys(e).reduce((i,o)=>{let r=this._state[o],a=Array.isArray(r)?r:null,l=e[o],d=Array.isArray(l)?l:null;return Qt(Ae({},i),{[o]:a||d?[...a||[],...d||[]]:Ae(Ae({},typeof r!="string"?r:{}),typeof l!="string"?l:{})})},this._state)}setKeyState(e,i){this._state[e]=i}};var Fa=require("@vkontakte/videoplayer-shared/es2015");var ju=null,Ha=class{constructor(e,i,o={}){!ju&&e.dsn&&(this.sentryClient=new Yu({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new Fa.Subscription,this.options=e,this.context=o,ju=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),ju=null}logIError(e,i=!1){e.thrown&&this.report(e.thrown,{fatal:i,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,i={},o={}){let{sentryClient:r,context:a,options:l}=this,{sampleRate:d=0,whiteErrorIdList:s,whiteErrorCategoryList:u=[],blackErrorIdList:p,blackErrorCategoryList:m}=l,{errorType:f,category:$}=i;if((0,Fa.isNonNullable)($)&&m.includes($)||(0,Fa.isNonNullable)(f)&&p.includes(f))return;if(Math.random()<=d||(0,Fa.isNonNullable)($)&&u.includes($)||(0,Fa.isNonNullable)(f)&&s.includes(f)){Object.keys(i).length&&r.setTags(Ae({version:this.version},i)),(Object.keys(a).length||Object.keys(o).length)&&r.setExtras(Ae(Ae({},a),o));try{f&&r.captureMessage(f,i.fatal?ql.fatal:ql.error),r.report(e)}catch(b){console.error(b)}}}static getInstance(){return ju}};var ts=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(ts||{});var Xu=t=>{if(t.requestFullscreen)return t.requestFullscreen();if(t.msRequestFullscreen)return t.msRequestFullscreen();if(t.webkitRequestFullscreen)return t.webkitRequestFullscreen();if(t.mozRequestFullScreen)return t.mozRequestFullScreen();let e=t.querySelector("video");return e!=null&&e.webkitEnterFullscreen?(e.webkitEnterFullscreen(),Promise.resolve()):Promise.reject()},Zu=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),X_=(t,e)=>e?!0:t.fullscreenEnabled||!!t.webkitFullscreenEnabled||!!t.mozFullscreenEnabled||!!t.msFullscreenEnabled,Z_=t=>{let e=t;e!=null&&e.webkitExitFullscreen&&(e==null||e.webkitExitFullscreen())},ic=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},oa=()=>!!ic(),Ju=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},ep=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},J_=t=>{let e=window.screen;return(r=>_t(null,null,function*(){return e.orientation?e.orientation.lock(r):e.mozLockOrientation?e.mozLockOrientation(r):e.msLockOrientation?e.msLockOrientation(r):Promise.reject()}))(((r={width:0,height:0})=>r.width<=r.height?"portrait":"landscape")(t))};var sm=require("@vkontakte/videoplayer-core/es2015"),eb=()=>({title:Q("hotkey_map_modal_title"),closeBtnText:Q("hotkey_map_modal_close_btn_text"),groups:[{title:Q("hotkey_map_group_title_common"),items:[{description:Q("hotkey_map_item_mute_description"),value:Q("hotkey_map_item_mute_value")},{description:Q("hotkey_map_item_volume_up_description"),value:Q("hotkey_map_item_volume_up_value")},{description:Q("hotkey_map_item_volume_down_description"),value:Q("hotkey_map_item_volume_down_value")},{description:Q("hotkey_map_item_pip_description"),value:Q("hotkey_map_item_pip_value")},{description:Q("hotkey_map_item_full_screen_description"),value:Q("hotkey_map_item_full_screen_value")},{description:Q("hotkey_map_item_show_context_menu_description"),value:Q("hotkey_map_item_show_context_menu_value")},{description:Q("hotkey_map_item_show_hotkey_map_description"),value:Q("hotkey_map_item_show_hotkey_map_value")}]},{title:Q("hotkey_map_group_title_playback"),items:[{description:Q("hotkey_map_item_play_toggle_description"),value:Q("hotkey_map_item_play_toggle_value")},{description:Q("hotkey_map_item_seek_backward_description"),value:Q("hotkey_map_item_seek_backward_value")},{description:Q("hotkey_map_item_seek_forward_description"),value:Q("hotkey_map_item_seek_forward_value")},{description:Q("hotkey_map_item_fast_seek_backward_description"),value:Q("hotkey_map_item_fast_seek_backward_value")},{description:Q("hotkey_map_item_fast_seek_forward_description"),value:Q("hotkey_map_item_fast_seek_forward_value")},{description:Q("hotkey_map_item_rate_down_description"),value:Q("hotkey_map_item_rate_down_value")},{description:Q("hotkey_map_item_rate_up_description"),value:Q("hotkey_map_item_rate_up_value")},{description:Q("hotkey_map_item_prev_frame_description"),value:Q("hotkey_map_item_prev_frame_value")},{description:Q("hotkey_map_item_next_frame_description"),value:Q("hotkey_map_item_next_frame_value")},{description:Q("hotkey_map_item_jump_seek_description"),value:Q("hotkey_map_item_jump_seek_value")},{description:Q("hotkey_map_item_next_video_description"),value:Q("hotkey_map_item_next_video_value")},{description:Q("hotkey_map_item_prev_video_description"),value:Q("hotkey_map_item_prev_video_value")}]},{title:Q("hotkey_map_group_title_subtitles"),items:[{description:Q("hotkey_map_item_subtitles_toggle_description"),value:Q("hotkey_map_item_subtitles_toggle_value")}]},{title:Q("hotkey_map_group_title_episodes"),items:[{description:Q("hotkey_map_item_prev_episode_description"),value:sm.clientChecker.device.isApple?Q("hotkey_map_item_prev_episode_mac_value"):Q("hotkey_map_item_prev_episode_pc_value")},{description:Q("hotkey_map_item_next_episode_description"),value:sm.clientChecker.device.isApple?Q("hotkey_map_item_next_episode_mac_value"):Q("hotkey_map_item_next_episode_pc_value")}]}]});var Ql=require("@vkontakte/videoplayer-shared/es2015");var Ua=class{constructor({enabled:e=!0}={enabled:!0}){this.isRequested=!1;this.videoElement=void 0;this.playerContainer=void 0;this.externalEventHandlers={};this.eventHandlers={enterpictureinpicture:this.onEnterPictureInPicture.bind(this),leavepictureinpicture:this.onLeavePictureInPicture.bind(this),resize:(0,Ql.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new Ql.ValueSubject(!1),isEnabled$:new Ql.ValueSubject(!1),type:0};this.info.isEnabled$=new Ql.ValueSubject(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.info.isActive$.getValue()}setContext(e){this.svelteContext=e}revealPictureInPicture(){return _t(this,null,function*(){this.isRequested&&(this.removeEventHandlers(),yield this.request(),this.addEventHandlers())})}request(){return _t(this,null,function*(){var e;if(!(!this.isSupported()||this.isActive()))try{yield(e=this.videoElement)==null?void 0:e.requestPictureInPicture()}catch(i){this.isRequested=!1}})}exit(){return _t(this,null,function*(){!this.isSupported()||!this.isActive()||(yield document.exitPictureInPicture())})}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){this.isSupported()&&this.exit().finally(()=>{var e;this.removeEventHandlers(),this.videoElement=(e=this.playerContainer)==null?void 0:e.querySelector("video"),this.addEventHandlers()})}addEventHandlers(){var e,i;(e=this.videoElement)==null||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}setExternalEventHandlers(e){this.externalEventHandlers=Ae({},e)}removeEventHandlers(){var e,i;(e=this.videoElement)==null||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}dispose(){return _t(this,null,function*(){this.removeEventHandlers(),yield this.exit(),this.info.isActive$.next(!1),this.isRequested=!1})}onEnterPictureInPicture(e){var r,a;let o=e.pictureInPictureWindow;o&&(this.info.isActive$.next(!0),this.isRequested=!0,o.addEventListener("resize",this.eventHandlers.resize),(a=(r=this.externalEventHandlers).enterpictureinpicture)==null||a.call(r,e))}onLeavePictureInPicture(e){var r,a;let o=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,this.eventHandlers.resize.cancel(),o==null||o.removeEventListener("resize",this.eventHandlers.resize),(a=(r=this.externalEventHandlers).leavepictureinpicture)==null||a.call(r,e)}onResize(e){var i,o;(o=(i=this.externalEventHandlers).resize)==null||o.call(i,e)}setEnabled(e){this.info.isEnabled$.next(e)}};function za(t){return t instanceof Ua}var Gl=require("@vkontakte/videoplayer-shared/es2015");function lm(t,e){F(e,!1);let i=ve();Dt(()=>{i.getAdmanWrapper().startPostroll()}),To(),H()}var tb=require("@vkontakte/videoplayer-shared/es2015");var my=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>'),vy=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 Vr(t,e){F(e,!0);let i=g(e,"direction",3,"left"),o=g(e,"useBtnColor",3,!1),r=v(()=>["up","down"].includes(i())),a=v(()=>["right","down"].includes(i())),l=v(()=>`chevron-icon--${i()}`),d=v(()=>(()=>{let p="";return n(a)&&(p+="transform: rotate(180deg);"),p.length?p:void 0})()),s=v(()=>o()?ia:"currentColor"),u=v(()=>n(r)?"7":"16");Je(t,{width:"12",get height(){return n(u)},get fill(){return n(s)},get testId(){return n(l)},get style(){return n(d)},children:(p,m)=>{var f=Me(),$=de(f);{var y=S=>{var C=my();_(S,C)},b=S=>{var C=vy();_(S,C)};V($,S=>{n(r)?S(y):S(b,!1)})}_(p,f)},$$slots:{default:!0}}),H()}var gy=(t,e,i)=>{t.stopPropagation(),n(e)&&i()()},hy=L('<div class="skip s-1h"> <!></div>'),_y=L("<div><!></div>"),by={hash:"s-1h",code:".container.s-1h{background:rgba(0,0,0,.56);border-radius:6px;color:#fff;font-size:13px;padding:6px 10px;position:absolute;right:16px;top:14px;transition:color .2s}.container-mobile.s-1h{bottom:14px;font-size:15px;max-width:142px;top:unset}.skip.s-1h{align-items:flex-end;display:flex;gap:4px;white-space:nowrap}.skippable.s-1h{color:var(--white);cursor:pointer}.skippable.s-1h:hover{color:hsla(0,0%,100%,.75)}"};function dm(t,e){F(e,!0),q(t,by);let[i,o]=Re(),r=()=>x(u,"$isMobile",i),a=g(e,"position",3,0),l=g(e,"secondsToWatchBeforeSkip",3,0),d=g(e,"skipAd",3,tb.noop),u=ve().ui.isMobile,p=v(()=>a()>0&&a()>=l());var m=_y();let f;m.__click=[gy,p,d];var $=T(m);{var y=S=>{var C=hy(),I=T(C),R=k(I);Vr(R,{direction:"right"}),w(C),B(E=>fe(I,`${E!=null?E:""} `),[()=>Q("skip_ads_now")]),_(S,C)},b=S=>{var C=hs();B(I=>fe(C,I),[()=>Q("skip_ads_after",{time:Math.ceil(l()-a()).toFixed(0)})]),_(S,C)};V($,S=>{n(p)?S(y):S(b,!1)})}w(m),B(S=>f=re(m,1,"container s-1h",null,f,S),[()=>({"container-mobile":r(),skippable:n(p)})]),_(t,m),H(),o()}st(["click"]);var $y=L('<button class="go-to-site s-1g"> </button>'),yy={hash:"s-1g",code:"button.go-to-site.s-1g{background:#fff;border:none;border-radius:6px;bottom:14px;color:#000;font-size:15px;left:16px;padding:6px 10px;pointer-events:none;position:absolute}"};function cm(t,e){F(e,!1),q(t,yy),To();var i=$y(),o=T(i,!0);w(i),B(r=>fe(o,r),[()=>Q("visit_advertiser")],En),_(t,i),H()}var xy=L('<div class="top-gradient-mobile s-r"></div>'),wy=L('<div class="container s-r"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),Sy={hash:"s-r",code:".container.s-r{height:100%;width:100%}.top-gradient-mobile.s-r{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 nc(t,e){F(e,!0),q(t,Sy);let[i,o]=Re(),r=()=>x(U,"$canSkipAd",i),a=()=>x(D,"$adPlaybackState",i),l=()=>x(I,"$isMobile",i),d=()=>x(z,"$adPosition",i),s=()=>x(G,"$secondsToWatchBeforeSkipAd",i),u=()=>x(C,"$isVideoEnded",i),p=g(e,"adsSlotId",3,void 0),m=g(e,"adsParams",3,void 0),f=g(e,"adsAutoplayParam",3,void 0),$=g(e,"duration",3,0),y=g(e,"adsExternalApi",3,void 0),b=ve(),S=Rt(),C=b.state.isEnded$,I=b.ui.isMobile,R=S.ads.isMobileGoToSiteButton,E=K(void 0),P=K(void 0),O=!1,D=b.ads.playbackState,U=b.ads.canSkip,z=b.ads.position,G=b.ads.secondsToWatchBeforeSkip,le=v(()=>r()&&a()!=="inactive"),j=v(()=>l()&&a()!=="inactive"&&R);Dt(()=>{let A=b.getAdmanWrapper();if(Gl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[(0,Gl.now)(),p()]}),!p()){A.onAdmanLoadingError();return}let Ke=()=>{var Fe;let{width:De,height:Be}=he(b.ui.playerSize),J=he(b.ui.isFullscreen),X=(Fe=f())!=null?Fe:he(b.ui.isAutoplay),Se=S.ads.paramsOverride;return{width:De,height:Be,isFullscreen:J,isAutoplay:X,adsContainer:n(E),adsVideoElement:n(P),slotId:p(),params:m(),paramsOverride:Se,duration:$(),externalApi:y()}},Ce=De=>_t(null,null,function*(){De&&(yield bo());let Be=Ke();yield A.initAdman(Be),O=!0}),pe=new AbortController,se=()=>{pe.abort()};return window.AdmanHTML?Ce(!0).catch(()=>{A.onAdmanLoadingError()}):A.loadAdman(pe.signal).then(()=>Ce(!1)).catch(()=>{A.onAdmanLoadingError()}),()=>{Gl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[(0,Gl.now)(),p()]}),!O&&se()}});var ie=wy(),Y=T(ie);{var ge=A=>{var Ke=xy();_(A,Ke)};V(Y,A=>{l()&&A(ge)})}var ce=k(Y,2);nt(ce,A=>N(P,A),()=>n(P));var ne=k(ce,2);{var _e=A=>{dm(A,{get position(){return d()},get secondsToWatchBeforeSkip(){return s()},get skipAd(){return b.actions.internal.skipAd}})};V(ne,A=>{n(le)&&A(_e)})}var we=k(ne,2);{var Z=A=>{lm(A,{})};V(we,A=>{u()&&A(Z)})}var Oe=k(we,2);{var ue=A=>{cm(A,{})};V(Oe,A=>{n(j)&&A(ue)})}w(ie),nt(ie,A=>N(E,A),()=>n(E)),_(t,ie),H(),o()}var tn=t=>{if(!isFinite(t))return"00:00";let e=Math.round(t),i=Math.floor(e/(60*60));e-=i*3600;let o=Math.floor(e/60);e-=o*60;let r=[o,e].map(a=>String(a).padStart(2,"0")).join(":");return i>0&&(r=`${i}:${r}`),r};var Ty=Ie('<path fill="#fff"></path>'),Cy=Ie("<path></path><!>",1);function rc(t,e){let i=g(e,"isActive",3,!1),o=v(()=>i()?"live-active-icon":"live-icon"),r=v(()=>i()?"var(--timeline-slider-filled-active-live-bg, #FF3347)":void 0),a="M8 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2H9V6a1 1 0 0 0-1-1m7 1a1 1 0 1 1 2 0v8a1 1 0 1 1-2 0zm15-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2h-3v-2h3a1 1 0 1 0 0-2h-3V7h3a1 1 0 1 0 0-2zm-8.32 9.31-2.55-7.82a1 1 0 0 1-.12-.37L19 6.1a1 1 0 1 1 2-.2l2 6.4 2-6.4a1 1 0 0 1 2 .2v.02a1 1 0 0 1-.13.37l-2.55 7.82a1 1 0 0 1-.95.69h-.74a1 1 0 0 1-.95-.69";Je(t,{width:"42",height:"20",get testId(){return n(o)},get fill(){return n(r)},children:(l,d)=>{var s=Cy(),u=de(s),p=k(u);{var m=f=>{var $=Ty();We($,"d",a),_(f,$)};V(p,f=>{i()&&f(m)})}B(()=>We(u,"d",`M5 0h32s5 0 5 5v10s0 5 -5 5h-32s-5 0 -5 -5v-10s0 -5 5 -5${i()?"":"M5.5 2h31s3.5 0 3.5 3.5v9s0 3.5-3.5 3.5h-31s-3.5 0-3.5-3.5v-9s0-3.5 3.5-3.5"+a}z`)),_(l,s)},$$slots:{default:!0}})}var Iy=L('<div class="equalizer s-e"><div class="col s-e"></div> <div class="col s-e"></div> <div class="col s-e"></div></div>'),Ey=L('<div class="live-icon s-e"><!></div>'),Py=L('<span class="text s-e"> </span>'),Ay=L("<div><!> <!></div>"),ky={hash:"s-e",code:".wrapper.s-e{background-color:var(--black-alpha-40);border-radius:4px;padding:2px 6px;transition:visibility var(--controls-transition-duration),opacity var(--controls-transition-duration);white-space:nowrap}.wrapper.live.s-e{background:var(--red);border-radius:2px;font-size:0;height:20px;line-height:20px;padding:0 7px}.equalizer.s-e{display:inline-block;height:10px;margin-right:4px;margin-top:-4px;position:relative;vertical-align:middle;width:10px}.live.s-e .equalizer:where(.s-e){margin-top:-2px}.equalizer.s-e .col:where(.s-e){animation:1.5s linear infinite alternate;animation-play-state:paused;background:var(--btn-color,--white);bottom:0;height:10px;margin-right:2px;position:absolute;transform-origin:50% 100%;width:2px}.playing.s-e .equalizer:where(.s-e) .col:where(.s-e){animation-play-state:running}.equalizer.s-e .col:where(.s-e):first-child{animation-name:s-e-thumb-timer-equalizer-col1;left:0}.equalizer.s-e .col:where(.s-e):nth-child(2){animation-name:s-e-thumb-timer-equalizer-col2;left:3px}.equalizer.s-e .col:where(.s-e):nth-child(3){animation-name:s-e-thumb-timer-equalizer-col3;left:6px}.live-icon.s-e{display:inline-block;height:20px;margin:0 -7px;vertical-align:middle;width:42px}@keyframes s-e-thumb-timer-equalizer-col1{0%{transform:scaleY(.1)}25%{transform:scaleY(.8)}50%{transform:scaleY(.4)}75%{transform:scaleY(.6)}to{transform:scaleY(.1)}}@keyframes s-e-thumb-timer-equalizer-col2{0%{transform:scaleY(1)}25%{transform:scaleY(.3)}50%{transform:scaleY(.9)}75%{transform:scaleY(.6)}to{transform:scaleY(1)}}@keyframes s-e-thumb-timer-equalizer-col3{0%{transform:scaleY(.6)}25%{transform:scaleY(.9)}50%{transform:scaleY(.1)}75%{transform:scaleY(.9)}to{transform:scaleY(.6)}}.text.s-e{color:var(--controls-time);font-size:13px;font-weight:500;line-height:16px}"};function sc(t,e){q(t,ky);let i=g(e,"withEqualizer",3,!1),o=g(e,"isLive",3,!1),r=g(e,"isPlaying",3,!1);var a=Ay();let l;var d=T(a);{var s=f=>{var $=Iy();_(f,$)};V(d,f=>{i()&&f(s)})}var u=k(d,2);{var p=f=>{var $=Ey(),y=T($);rc(y,{isActive:!0}),w($),_(f,$)},m=f=>{var $=Py(),y=T($,!0);w($),B(()=>fe(y,e.time)),_(f,$)};V(u,f=>{o()?f(p):f(m,!1)})}w(a),B(f=>l=re(a,1,"wrapper s-e",null,l,f),[()=>({live:o(),playing:r()})]),_(t,a)}var Yl=(t,e,i)=>{let o;return()=>(window.clearTimeout(o),t?o=window.setTimeout(()=>e.set(!0),i):e.set(!1),()=>window.clearTimeout(o))};var Ly=L('<div role="timer" data-testid="thumb-timer"><!></div>'),My={hash:"s-k",code:".thumb-timer.s-k{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 ac(t,e){F(e,!0),q(t,My);let[i,o]=Re(),r=()=>x(p,"$disabled",i),a=g(e,"isHidden",3,!1),l=g(e,"isLive",3,!1),d=g(e,"isPlaying",3,!1),s=Rt(),u=v(()=>tn(e.duration-e.position)),p=ae(!1);var m=Ly();let f;var $=T(m);sc($,{get time(){return n(u)},get isLive(){return l()},get isPlaying(){return d()},withEqualizer:!0}),w(m),As(m,()=>Yl(a()&&s.features.usePerformanceFix,p,s.disableInvisibleComponentsTimeout)),B(y=>f=re(m,1,"thumb-timer s-k",null,f,y),[()=>({"out-of-flow":r(),hidden:a()})]),_(t,m),H(),o()}var jl=t=>{if(!navigator.clipboard){ib(t);return}navigator.clipboard.writeText(t).catch(()=>ib(t))};function ib(t){if(document.queryCommandSupported&&document.queryCommandSupported("copy")){let e=document.createElement("textarea");e.textContent=t,e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e),e.select();try{document.execCommand("copy")}finally{document.body.removeChild(e)}}}var ub=require("@vkontakte/videoplayer-core/es2015");var pm=require("@vkontakte/videoplayer-core/es2015");var um="focus-hidden";var Rr=t=>{t.stopPropagation(),t.preventDefault()},fm=t=>{var e,i;(i=(e=t.parentNode)==null?void 0:e.firstElementChild)==null||i.classList.remove(um)},Ry=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},Ny=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},Oy=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},Dy=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},ob=t=>t.code==="Escape",By=t=>t.code==="ArrowLeft",lc=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},nb=t=>{Oy(t)?(Rr(t),Ny(t.target)):Dy(t)&&(Rr(t),Ry(t.target))},sa=t=>!pm.clientChecker.device.isAndroid&&(t==null?void 0:t.detail)===0||pm.clientChecker.device.isAndroid&&(t==null?void 0:t.pointerType)==="",Xl=(t,e,i)=>_t(null,null,function*(){yield bo(),t&&!t.classList.contains("opened")&&!e&&he(i)&&(yield bo(),i.set(!1),t.focus())}),rb=(t,e,i)=>_t(null,null,function*(){yield bo(),t&&!e&&he(i)&&(i.set(!1),t.focus())}),dc=(t,e,i,o=!1)=>_t(null,null,function*(){if(yield bo(),!!t&&e&&!o){let a=t.children[0];a==null||a.classList.toggle(um,!i),a==null||a.focus()}}),sb=(t,e)=>_t(null,null,function*(){setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)}),tp=(t,e)=>{nb(t),fm(t.target),ob(t)&&(Rr(t),e())},ip=(t,e)=>_t(null,null,function*(){lc(t,["ArrowRight"])&&(Rr(t),e())}),ab=(t,e,i)=>_t(null,null,function*(){if(nb(t),By(t)){Rr(t),e();return}ob(t)&&(Rr(t),i())}),Zl=(t,e)=>{lc(t)&&(Rr(t),e())},lb=(t,e,i)=>{if(lc(t))Rr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),Rr(t);return}o==="ArrowRight"&&!e&&(i(!0),Rr(t))}},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 qa=require("@vkontakte/videoplayer-shared/es2015");var is={"copy-link":100,"copy-link-timestamp":200,"copy-embed-code":300,pip:400,"video-loop":500,rotate:600,report:700,"save-debug":800,"save-trace":900,"debug-info":1e3};var mm=require("@vkontakte/videoplayer-shared/es2015");var Hy=(t,e)=>{Zl(t,()=>e())},Uy=L('<li class="item s-1p" role="menuitem" tabindex="0"> </li>'),zy={hash:"s-1p",code:".item.s-1p{color:hsla(0,0%,100%,.72);cursor:pointer;display:block;font-size:13px;letter-spacing:-.14px;line-height:18px;padding:8px 16px;position:relative;white-space:nowrap}.item.s-1p:hover{background:rgba(66,66,66,.5);color:var(--white)}"};function vm(t,e){F(e,!0),q(t,zy);let i=g(e,"onClick",3,mm.noop),o=g(e,"closeContextMenu",3,mm.noop),r=d=>{d==null||d.stopPropagation(),i()(),o()()};var a=Uy();a.__click=r,a.__keydown=[Hy,r];var l=T(a,!0);w(a),B(()=>{var d;We(a,"aria-label",(d=e.ariaLabel)!=null?d:e.label),We(a,"data-testid",e.id),fe(l,e.label)}),_(t,a),H()}st(["click","keydown"]);var Ka=(t,e)=>t.weight-e.weight;var Jl=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(Jl||{});var Wy=(t,e)=>{tp(t,e)},Ky=t=>{t.preventDefault()},qy=L('<ul role="menu" class="s-w"></ul>'),Qy={hash:"s-w",code:"ul.s-w{background:rgba(0,0,0,.72);border-radius:8px;list-style:none;margin:0;max-height:100%;max-width:100%;overflow-x:hidden;overflow-y:auto;padding:6px 0;position:absolute;transition:visibility .1s,opacity .1s;z-index:var(--context-menu-z-index)}"};function gm(t,e){F(e,!0),q(t,Qy);let[i,o]=Re(),r=()=>x(ge,"$playerPhase",i),a=()=>x(le,"$isLive$",i),l=()=>x(ce,"$isPiPEnabled$",i),d=()=>x(G,"$chromecastState$",i),s=()=>x(ne,"$pictureInPictureApiIsActive$",i),u=()=>x(Y,"$isLooped$",i),p=()=>x(j,"$positionExact$",i),m=()=>x(D,"$additionalContextMenuItems$",i),f=g(e,"visible",3,!1),$=g(e,"position",19,()=>({top:0,left:0})),y=g(e,"playerContainerRef",3,void 0),b=g(e,"menuElementRef",15,void 0),S=K(0),C=K(0),I=ve(),{pictureInPicture$:R}=Co(),E=Rt(),P=I.ui.contextMenu.visible$,O=I.ui.debugPanelVisible,D=I.ui.additionalContextMenuItems$,U=I.ui.t,z=I.actions.internal.togglePictureInPicture,G=I.state.chromecastState$,le=I.state.isLive$,j=I.state.positionExact$,ie=I.state.isInteractive,Y=I.state.looped$,ge=I.playerPhase,{isEnabled$:ce,isActive$:ne}=R,_e=v(()=>r()==="video"),we=v(()=>!!a()&&n(_e)),Z=v(()=>["thumb","LiveWaitingStart","LiveWaitingRecover","LiveWaitingRecord"].includes(r())),Oe=v(()=>{var $e;return E.features.copyVideoLink&&(($e=I.callbacks)==null?void 0:$e.onCopyVideoLink)}),ue=v(()=>n(Oe)&&!n(Z)&&!ie&&!n(we)),A=v(()=>{var $e;return!!(($e=I.callbacks)!=null&&$e.onCopyEmbedCodeClicked)}),Ke=v(()=>l()&&d()!==ub.ChromecastState.CONNECTED&&!ie&&n(_e)),Ce=v(()=>!ie&&!n(Z)&&!n(we)),pe=v(()=>E.features.videoRotate&&!ie&&!n(Z)),se=v(()=>E.showSupport&&!s()),De=v(()=>E.features.saveTraceInfoToFile),Be=()=>{var $e;P.set(!1),($e=e.returnFocus)==null||$e.call(e)},J=($e,et)=>{if(!b()||!y())return;let ze=b().getBoundingClientRect(),rt=y().getBoundingClientRect();N(S,$e-rt.left),N(C,et-rt.top),n(S)+ze.width>rt.width&&N(S,rt.width-ze.width),n(C)+ze.height>rt.height&&N(C,rt.height-ze.height),N(S,Math.max(n(S),0),!0),N(C,Math.max(n(C),0),!0)};Ne(()=>{_t(null,null,function*(){if(b()&&y()){yield bo();let{top:et,left:ze,bottom:rt,right:ii}=$(),ai=ze!=null?ze:0,gi=et!=null?et:0,yi=b().getBoundingClientRect();(0,qa.isNullable)(ze)&&!(0,qa.isNullable)(ii)&&(ai=ii-yi.width),(0,qa.isNullable)(et)&&!(0,qa.isNullable)(rt)&&(gi=rt-yi.height),ai=Math.max(ai,0),gi=Math.max(gi,0),J(ai,gi)}})});let X=()=>{I.actions.internal.videoRotate()},Se=()=>{(0,qa.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),I.actions.internal.reportProblem(),I.actions.internal.pause()},Fe=()=>{let $e=I.actions.internal.getDebugTextData();if(E.features.saveDebugInfoToFile){let et=new Blob([...$e],{type:"plain/text"}),ze=window.URL.createObjectURL(et);Ba(ze,"vk_player_debug_info","txt")}else jl(I.actions.internal.getDebugTextData())},qe=()=>{let $e=I.actions.internal.getTraceTextData(),et=new Blob([...$e],{type:"application/json"}),ze=window.URL.createObjectURL(et);Ba(ze,"vk_player_trace_info","json")},Ye=()=>{O.set(!0)},Te=()=>_t(null,null,function*(){var $e;try{z()}finally{($e=e.returnFocus)==null||$e.call(e)}}),Le=()=>{I.actions.internal.setLooped(!u())},Ue=()=>{var $e,et;if(n(A)){let ze=(et=($e=I.callbacks)==null?void 0:$e.onCopyEmbedCodeClicked)==null?void 0:et.call($e);ze&&jl(ze)}},Nt=($e=!1)=>{var et,ze;if((et=I.callbacks)!=null&&et.onCopyVideoLink){let rt=(ze=I.callbacks)==null?void 0:ze.onCopyVideoLink($e,p());rt&&jl(rt)}},tt=v(()=>E.features.saveDebugInfoToFile?U("menu_save_debug"):U("menu_copy_debug")),Bt=v(()=>n(Oe)?{id:"copy-link",weight:is["copy-link"],label:U("menu_copy_video_link"),onClick:()=>Nt()}:void 0),Gt=v(()=>n(ue)?{id:"copy-link-timestamp",weight:is["copy-link-timestamp"],label:U("menu_copy_video_link_with_timestamp"),onClick:()=>Nt(!0)}:void 0),Ct=v(()=>n(A)?{id:"copy-embed-code",weight:is["copy-embed-code"],label:U("menu_copy_embed_code"),onClick:Ue}:void 0),ti=v(()=>n(Ke)?{id:"pip",weight:is.pip,label:s()?U("menu_pip_close"):U("menu_pip"),onClick:Te}:void 0),Ft=v(()=>n(Ce)?{id:"video-loop",weight:is["video-loop"],label:u()?U("menu_video_loop_off"):U("menu_video_loop_on"),ariaLabel:U("aria_label_menu_loop"),onClick:Le}:void 0),ye=v(()=>n(pe)?{id:"rotate",weight:is.rotate,label:U("menu_video_rotate"),ariaLabel:U("aria_label_menu_rotate"),onClick:X}:void 0),be=v(()=>n(se)?{id:"report",weight:is.report,label:U("menu_report"),ariaLabel:`${U("menu_report")}. ${U("aria_label_new_tab_alert")}`,onClick:Se}:void 0),ee=v(()=>({id:"save-debug",weight:is["save-debug"],label:n(tt),onClick:Fe})),xe=v(()=>n(De)?{id:"save-trace",weight:is["save-trace"],label:U("menu_save_debug"),onClick:qe}:void 0),Pe=v(()=>({id:"debug-info",weight:is["debug-info"],label:U("menu_debug_overlay"),ariaLabel:U("aria_label_menu_debug_overlay"),onClick:Ye})),Pt=v(()=>[n(Bt),n(Gt),n(Ct),n(ti),n(Ft),n(ye),n(be),n(ee),n(xe),n(Pe),...m()].filter($e=>!!$e).sort(Ka));var Ve=Me(),at=de(Ve);{var gt=$e=>{var et=qy();et.__contextmenu=[Ky],et.__keydown=[Wy,Be],Ti(et,21,()=>n(Pt),ze=>ze.id,(ze,rt)=>{vm(ze,{get id(){return n(rt).id},get label(){return n(rt).label},get ariaLabel(){return n(rt).ariaLabel},get onClick(){return n(rt).onClick},closeContextMenu:Be})}),w(et),nt(et,ze=>b(ze),()=>b()),B(()=>{var ze,rt;return Qe(et,`top: ${(ze=n(C))!=null?ze:""}px; left: ${(rt=n(S))!=null?rt:""}px;`)}),_($e,et)};V(at,$e=>{f()&&$e(gt)})}_(t,Ve),H(),o()}st(["contextmenu","keydown"]);var op=class{constructor(e){this.value=e,this.next=null}};var ed=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new op(e);this.top?(this.top.next=i,this.top=i):(this.top=i,this.bottom=i),this.size++,this.size>this.maxSize&&this.bottom&&(this.bottom=this.bottom.next)}getValuesFromBottom(){let e=[],i=this.bottom;for(;i;)e.push(i.value),i=i.next;return e}};var Gy=L('<div class="container s-1f"><canvas class="s-1f"></canvas></div>'),Yy={hash:"s-1f",code:".container.s-1f{display:inline-block;height:16px;width:120px}canvas.s-1f{margin-top:2px;transform:scaleY(-1)}"};function cc(t,e){F(e,!0),q(t,Yy);let i=g(e,"values",19,()=>[]),o=K(void 0),r=K(null),a=16,l=120,d=60,s=l/d;Dt(()=>{n(o).width=l,n(o).height=a,N(r,n(o).getContext("2d"),!0)});function u(f,$,y,b,S){S===0&&(S=1),f.fillStyle="#fff",f.fillRect($,y,b,S)}Ne(()=>{let f="";if(n(r)){let $=i()[0];for(let b=1;b<i().length;b++)i()[b]>$&&($=i()[b]);n(r).clearRect(0,0,l,a);let y=d-1;for(let b=i().length-1;b>=0;b--){let S=y*s,C=$>0?a*(i()[b]/$):0;u(n(r),S,0,s,C),f=C+" "+f,y--}}});var p=Gy(),m=T(p);nt(m,f=>N(o,f),()=>n(o)),w(p),_(t,p),H()}var hm=require("@vkontakte/videoplayer-shared/es2015");var jy=(t,e)=>{t.stopPropagation(),hm.safeStorage.remove(Yd),e.set(!1)},Xy=L('<div class="s-v"><div class="s-v">Video id</div> <span> </span></div>'),Zy=L('<div class="s-v"><div class="s-v">VSID</div> <span> </span></div>'),Jy=L('<div class="s-v"><div class="s-v">Provider</div> <span> </span></div>'),e0=L('<div class="s-v"><div class="s-v">Streams</div> <span> </span></div>'),t0=L('<div class="s-v"><div class="s-v">Viewport</div> <span> </span></div>'),i0=L('<div class="s-v"><div class="s-v">Video size</div> <span> </span></div>'),o0=L('<div class="s-v"><div class="s-v">CDN host</div> <span> </span></div>'),n0=L('<div class="s-v"><div class="s-v">Volume</div> <span> </span></div>'),r0=L('<div class="s-v"><div class="s-v">Position</div> <span> </span></div>'),s0=L('<div class="s-v"><div class="s-v">Buffer</div> <span> </span></div>'),a0=L('<div class="s-v"><div class="s-v">Live latency</div> <span> </span></div>'),l0=L('<div class="s-v"><div class="s-v">Segment</div> <span> </span></div>'),d0=L('<div class="s-v"><div class="s-v">Network</div> <!> <span> </span></div>'),c0=L('<div class="s-v"><div class="s-v">V bitrate</div> <!> <span> </span></div>'),u0=L('<div role="region"><button class="close s-v" title="закрыть">[x]</button> <div class="content s-v"><div class="s-v"><div class="s-v">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="s-v"><div class="s-v">Dropped</div> <span> </span></div> <!> <!> <div class="s-v"><div class="s-v">FPS</div> <!> <span> </span></div></div></div>'),p0={hash:"s-v",code:".container.s-v{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-v{left:16px;top:16px}button.close.s-v{background-color:transparent;border:none;color:#fff;cursor:pointer;outline:0;padding:0;position:absolute;right:5px;top:3px}.content.s-v{padding:5px}.content.s-v>div:where(.s-v)>div:where(.s-v){display:inline-block;padding:0 5px;text-align:right;width:60px}"};function uc(t,e){F(e,!0),q(t,p0);let[i,o]=Re(),r=()=>x(d,"$isMobile",i),a=ve(),l=a.ui.debugPanelVisible,d=a.ui.isMobile,s=K(di(a.actions.internal.getDebugPanelData())),u=a.actions.internal.getVideoElement(),p=K(0),m=K(0),f=K(0),$=new ed(60),y=new ed(60),b=new ed(60),S=K(di([])),C=K(di([])),I=K(di([])),R=Q("aria_label_debug_panel");Dt(()=>{hm.safeStorage.set(Yd,"true"),a.actions.internal.startLogging(),u&&(N(m,u.getVideoPlaybackQuality().droppedVideoFrames,!0),N(p,u.getVideoPlaybackQuality().totalVideoFrames,!0));let ye=window.setInterval(()=>{N(s,a.actions.internal.getDebugPanelData(),!0)},500),be;return u&&(be=window.setInterval(()=>{if(u){N(m,u.getVideoPlaybackQuality().droppedVideoFrames,!0);let ee=u.getVideoPlaybackQuality().totalVideoFrames;N(f,ee-n(p)),N(p,ee,!0),$.push(n(f)),n(s).speed&&y.push(n(s).speed),n(s).bitrate&&b.push(n(s).bitrate),N(S,$.getValuesFromBottom(),!0),N(C,y.getValuesFromBottom(),!0),N(I,b.getValuesFromBottom(),!0)}},1e3)),()=>{a.actions.internal.stopLogging(),clearInterval(ye),be&&clearInterval(be)}});var E=u0();let P;var O=T(E);O.__click=[jy,l];var D=k(O,2),U=T(D),z=k(T(U),2),G=T(z,!0);w(z),w(U);var le=k(U,2);{var j=ye=>{var be=Xy(),ee=k(T(be),2),xe=T(ee,!0);w(ee),w(be),B(()=>fe(xe,n(s).id)),_(ye,be)};V(le,ye=>{n(s).id&&ye(j)})}var ie=k(le,2);{var Y=ye=>{var be=Zy(),ee=k(T(be),2),xe=T(ee,!0);w(ee),w(be),B(()=>fe(xe,n(s).vsid)),_(ye,be)};V(ie,ye=>{n(s).vsid&&ye(Y)})}var ge=k(ie,2);{var ce=ye=>{var be=Jy(),ee=k(T(be),2),xe=T(ee,!0);w(ee),w(be),B(()=>fe(xe,n(s).provider)),_(ye,be)};V(ge,ye=>{n(s).provider&&ye(ce)})}var ne=k(ge,2);{var _e=ye=>{var be=e0(),ee=k(T(be),2),xe=T(ee);w(ee),w(be),B(()=>{var Pe,Pt;return fe(xe,`Video: ${(Pe=n(s).videoCodec||"")!=null?Pe:""} ${n(s).hdr?"(HDR)":""}
41
+ `}),t.stack&&mo(t,"stack",{value:t.stack.split(`
42
+ `).filter(a=>!a.includes("svelte/src/internal")).join(`
43
+ `)})}}var Ca=!1,kl=null,Ta=!1,xs=!1;function rf(t){xs=t}var Ld=[],Vd=[],Bt=null,dr=!1;function ji(t){Bt=t}var St=null;function go(t){St=t}var Yo=null;function pu(t){Bt!==null&&Bt.f&2097152&&(Yo===null?Yo=[Bt,[t]]:Yo[1].push(t))}var Pn=null,cr=0,lr=null;function vh(t){lr=t}var Lh=1,yu=0,ws=!1,xu=null;function xd(){return++Lh}function ya(t){var v,p;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,s,l=(e&512)!==0,d=o&&St!==null&&!ws,a=i.length;if(l||d){var u=t,f=u.parent;for(r=0;r<a;r++)s=i[r],(l||!((v=s==null?void 0:s.reactions)!=null&&v.includes(u)))&&((p=s.reactions)!=null?p:s.reactions=[]).push(u);l&&(u.f^=512),d&&f!==null&&(f.f&256)===0&&(u.f^=256)}for(r=0;r<a;r++)if(s=i[r],ya(s)&&nf(s),s.wv>t.wv)return!0}(!o||St!==null&&!ws)&&In(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 s=o[r];Yo!=null&&Yo[1].includes(t)&&Yo[0]===Bt||((s.f&2)!==0?Vh(s,e,!1):e===s&&(i?In(s,2048):(s.f&1024)!==0&&In(s,4096),Sd(s)))}}function uu(t){var x,w;var e=Pn,i=cr,o=lr,r=Bt,s=ws,l=Yo,d=qt,a=dr,u=t.f;Pn=null,cr=0,lr=null,ws=(u&256)!==0&&(dr||!Ta||Bt===null),Bt=(u&96)===0?t:null,Yo=null,bd(t.ctx),dr=!1,yu++,t.f|=2097152;try{var f=(0,t.fn)(),v=t.deps;if(Pn!==null){var p;if(Ad(t,cr),v!==null&&cr>0)for(v.length=cr+Pn.length,p=0;p<Pn.length;p++)v[cr+p]=Pn[p];else t.deps=v=Pn;if(!ws||(u&2)!==0&&t.reactions!==null)for(p=cr;p<v.length;p++)((w=(x=v[p]).reactions)!=null?w:x.reactions=[]).push(t)}else v!==null&&cr<v.length&&(Ad(t,cr),v.length=cr);if(ds()&&lr!==null&&!dr&&v!==null&&(t.f&6146)===0)for(p=0;p<lr.length;p++)Vh(lr[p],t);return r!==null&&r!==t&&(yu++,lr!==null&&(o===null?o=lr:o.push(...lr))),f}catch(y){Ah(y)}finally{Pn=e,cr=i,lr=o,Bt=r,ws=s,Yo=l,bd(d),dr=a,t.f^=2097152}}function ab(t,e){let i=e.reactions;if(i!==null){var o=Qg.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&&(Pn===null||!Pn.includes(e))&&(In(e,4096),(e.f&768)===0&&(e.f^=512),cu(e),Ad(e,0))}function Ad(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)ab(t,i[o])}function Tl(t){var e=t.f;if((e&16384)===0){In(t,1024);var i=St,o=Ta;if(St=t,Ta=!0,Re){var r=sr;$d(t.component_function)}try{(e&16)!==0?Ch(t):df(t),lf(t);var s=uu(t);if(t.teardown=typeof s=="function"?s:null,t.wv=Lh,Re&&ls&&(t.f&2048)!==0&&t.deps!==null)for(var l of t.deps)l.set_during_effect&&(l.wv=xd(),l.set_during_effect=!1);Re&&Vd.push(t)}finally{Ta=o,St=i,Re&&$d(r)}}}function Ph(){console.error("Last ten effects were: ",Vd.slice(-10).map(t=>t.fn)),Vd=[]}function lb(){try{ih()}catch(t){if(Re&&mo(t,"stack",{value:""}),kl!==null)if(Re)try{Md(t,kl)}catch(e){throw Ph(),e}else Md(t,kl);else throw Re&&Ph(),t}}function mf(){var t=Ta;try{var e=0;for(Ta=!0;Ld.length>0;){e++>1e3&&lb();var i=Ld,o=i.length;Ld=[];for(var r=0;r<o;r++){var s=cb(i[r]);db(s)}Sl.clear()}}finally{Ca=!1,Ta=t,kl=null,Re&&(Vd=[])}}function db(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];(o.f&24576)===0&&ya(o)&&(Tl(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?uf(o):o.fn=null))}}function Sd(t){Ca||(Ca=!0,queueMicrotask(mf));for(var e=kl=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}Ld.push(e)}function cb(t){for(var e=[],i=t;i!==null;){var o=i.f,r=(o&96)!==0,s=r&&(o&1024)!==0;if(!s&&(o&8192)===0){(o&4)!==0?e.push(i):r?i.f^=1024:ya(i)&&Tl(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 Al(t){var e;for(t&&(Ca=!0,mf(),Ca=!0,e=t());;){if(Ih(),Ld.length===0)return Ca=!1,kl=null,Re&&(Vd=[]),e;Ca=!0,mf()}}function _o(){return xt(this,null,function*(){yield Promise.resolve(),Al()})}function n(t){var e=t.f,i=(e&2)!==0;if(xu!==null&&xu.add(t),Bt!==null&&!dr){if(!(Yo!=null&&Yo[1].includes(t))||Yo[0]!==Bt){var o=Bt.deps;t.rv<yu&&(t.rv=yu,Pn===null&&o!==null&&o[cr]===t?cr++:Pn===null?Pn=[t]:(!ws||!Pn.includes(t))&&Pn.push(t))}}else if(i&&t.deps===null&&t.effects===null){var r=t,s=r.parent;s!==null&&(s.f&256)===0&&(r.f^=256)}if(i&&(r=t,ya(r)&&nf(r)),Re&&ls&&!dr&&_d!==null&&Bt!==null&&_d.reaction===Bt)if(t.trace)t.trace();else{var l=ys("TracedAt");if(l){var d=_d.entries.get(t);d===void 0&&(d={traces:[]},_d.entries.set(t,d));var a=d.traces[d.traces.length-1];l.stack!==(a==null?void 0:a.stack)&&d.traces.push(l)}}return xs&&Sl.has(t)?Sl.get(t):t.v}function Pt(t){var e=dr;try{return dr=!0,t()}finally{dr=e}}var ub=-7169;function In(t,e){t.f=t.f&ub|e}function Su(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(jo in t)wu(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&jo in i&&wu(i)}}}function wu(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{wu(t[o],e)}catch(r){}let i=ha(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=ru(i);for(let r in o){let s=o[r].get;if(s)try{s.call(t)}catch(l){}}}}}function gf(t,e){if(e){let i=document.body;t.autofocus=!0,An(()=>{document.activeElement===i&&t.focus()})}}function Rd(t){var e=Bt,i=St;ji(null),go(null);try{return t()}finally{ji(e),go(i)}}var hf=new Set,Cu=new Set;function Ea(t){if(!nt)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 _f(t,e,i,o={}){function r(s){if(o.capture||Pl.call(e,s),!s.cancelBubble)return Rd(()=>i==null?void 0:i.call(this,s))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?An(()=>{e.addEventListener(t,r,o)}):e.addEventListener(t,r,o),r}function wt(t,e,i,o,r){var s={capture:o,passive:r},l=_f(t,e,i,s);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Mo(()=>{e.removeEventListener(t,l,s)})}function ct(t){for(var e=0;e<t.length;e++)hf.add(t[e]);for(var i of Cu)i(t)}function Pl(t){var E;var e=this,i=e.ownerDocument,o=t.type,r=((E=t.composedPath)==null?void 0:E.call(t))||[],s=r[0]||t.target,l=0,d=t.__root;if(d){var a=r.indexOf(d);if(a!==-1&&(e===document||e===window)){t.__root=e;return}var u=r.indexOf(e);if(u===-1)return;a<=u&&(l=a)}if(s=r[l]||t.target,s!==e){mo(t,"currentTarget",{configurable:!0,get(){return s||i}});var f=Bt,v=St;ji(null),go(null);try{for(var p,x=[];s!==null;){var w=s.assignedSlot||s.parentNode||s.host||null;try{var y=s["__"+o];if(y!=null&&(!s.disabled||t.target===s))if(nr(y)){var[C,...T]=y;C.apply(s,[t,...T])}else y.call(s,t)}catch(O){p?x.push(O):p=O}if(t.cancelBubble||w===e||w===null)break;s=w}if(p){for(let O of x)queueMicrotask(()=>{throw O});throw p}}finally{t.__root=e,delete t.currentTarget,ji(f),go(v)}}}var fb;function Rh(){fb=void 0}function Ml(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function Vo(t,e){var i=St;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function M(t,e){var i=(e&1)!==0,o=(e&2)!==0,r,s=!t.startsWith("<!>");return()=>{if(nt)return Vo(Ct,null),Ct;r===void 0&&(r=Ml(s?t:"<!>"+t),i||(r=Ai(r)));var l=o||Cd?document.importNode(r,!0):r.cloneNode(!0);if(i){var d=Ai(l),a=l.lastChild;Vo(d,a)}else Vo(l,l);return l}}function gb(t,e,i="svg"){var o=!t.startsWith("<!>"),r=(e&1)!==0,s=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(nt)return Vo(Ct,null),Ct;if(!l){var d=Ml(s),a=Ai(d);if(r)for(l=document.createDocumentFragment();Ai(a);)l.appendChild(Ai(a));else l=Ai(a)}var u=l.cloneNode(!0);if(r){var f=Ai(u),v=u.lastChild;Vo(f,v)}else Vo(u,u);return u}}function ke(t,e){return gb(t,e,"svg")}function us(t=""){if(!nt){var e=kn(t+"");return Vo(e,e),e}var i=Ct;return i.nodeType!==hl&&(i.before(i=kn()),Ii(i)),Vo(i,i),i}function He(){if(nt)return Vo(Ct,null),Ct;var t=document.createDocumentFragment(),e=document.createComment(""),i=kn();return t.append(e,i),Vo(e,i),t}function $(t,e){if(nt){St.nodes_end=Ct,Yi();return}t!==null&&t.before(e)}var hb=/\r/g;function Nh(t){t=t.replace(hb,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function Dh(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var _b=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Bh(t){return _b.includes(t)}var bb=["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 $b={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 Hh(t){var e;return t=t.toLowerCase(),(e=$b[t])!=null?e:t}var O9=[...bb,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var yb=["touchstart","touchmove"];function Fh(t){return yb.includes(t)}var xb=["$state","$state.raw","$derived","$derived.by"],N9=[...xb,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var wb=["textarea","script","style","title"];function Uh(t){return wb.includes(t)}function Tu(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var Od=!0;function Eu(t){Od=t}function me(t,e){var o;var i=e==null?"":typeof e=="object"?e+"":e;i!==((o=t.__t)!=null?o:t.__t=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function Yr(t,e){return zh(t,e)}function $f(t,e){var l;mu(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=nt,r=Ct;try{for(var s=Ai(i);s&&(s.nodeType!==rr||s.data!==Ws);)s=Zo(s);if(!s)throw ss;ho(!0),Ii(s),Yi();let d=zh(t,Gt(Q({},e),{anchor:s}));if(Ct===null||Ct.nodeType!==rr||Ct.data!==ga)throw js(),ss;return ho(!1),d}catch(d){if(d===ss)return e.recover===!1&&oh(),mu(),Td(i),ho(!1),Yr(t,e);throw d}finally{ho(o),Ii(r),Rh()}}var Ll=new Map;function zh(t,{target:e,anchor:i,props:o={},events:r,context:s,intro:l=!0}){mu();var d=new Set,a=v=>{for(var p=0;p<v.length;p++){var x=v[p];if(!d.has(x)){d.add(x);var w=Fh(x);e.addEventListener(x,Pl,{passive:w});var y=Ll.get(x);y===void 0?(document.addEventListener(x,Pl,{passive:w}),Ll.set(x,1)):Ll.set(x,y+1)}}};a(hd(hf)),Cu.add(a);var u=void 0,f=Sh(()=>{var v=i!=null?i:e.appendChild(kn());return Fi(()=>{if(s){H({});var p=qt;p.c=s}r&&(o.$$events=r),nt&&Vo(v,null),Od=l,u=t(v,o)||{},Od=!0,nt&&(St.nodes_end=Ct),s&&F()}),()=>{var w;for(var p of d){e.removeEventListener(p,Pl);var x=Ll.get(p);--x===0?(document.removeEventListener(p,Pl),Ll.delete(p)):Ll.set(p,x)}Cu.delete(a),v!==i&&((w=v.parentNode)==null||w.removeChild(v))}});return bf.set(u,f),u}var bf=new WeakMap;function Ia(t,e){let i=bf.get(t);return i?(bf.delete(t),i(e)):(Re&&hh(),Promise.resolve())}function ye(t,e,...i){var o=t,r=pe,s;Zi(()=>{r!==(r=e())&&(s&&(Gi(s),s=null),Re&&r==null&&nh(),s=Fi(()=>r(o,...i)))},65536),nt&&(o=Ct)}if(Re){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;ah(e)},set:o=>{i=o}})}};Eb=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var Eb;function Ht(t){qt===null&&$l("onMount"),as&&qt.l!==null?Tb(qt).m.push(t):We(()=>{let e=Pt(t);if(typeof e=="function")return e})}function pn(t){qt===null&&$l("onDestroy"),Ht(()=>()=>Pt(t))}function Tb(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}var Wh=new Map;function Kh(t,e){var i=Wh.get(t);i||(i=new Set,Wh.set(t,i)),i.add(e)}function R(t,e,[i,o]=[0,0]){nt&&i===0&&Yi();var r=t,s=null,l=null,d=so,a=i>0?65536:0,u=!1;let f=(p,x=!0)=>{u=!0,v(x,p)},v=(p,x)=>{if(d===(d=p))return;let w=!1;if(nt&&o!==-1){if(i===0){let C=vu(r);C===Ws?o=0:C===Ks?o=1/0:(o=parseInt(C.substring(1)),o!==o&&(o=d?1/0:-1))}let y=o>i;!!d===y&&(r=xa(),Ii(r),ho(!1),w=!0,o=-1)}d?(s?Cs(s):x&&(s=Fi(()=>x(r))),l&&Wn(l,()=>{l=null})):(l?Cs(l):x&&(l=Fi(()=>x(r,[i+1,o]))),s&&Wn(s,()=>{s=null})),w&&ho(!0)};Zi(()=>{u=!1,e(f),u||v(null,null)},a),nt&&(r=Ct)}function Ts(t,e,i){nt&&Yi();var o=t,r=so,s,l=ds()?Zg:_l;Zi(()=>{l(r,r=e())&&(s&&Wn(s),s=Fi(()=>i(o)))}),nt&&(o=Ct)}var Ys=null;function wf(t){Ys=t}function Nd(t,e){return e}function Ab(t,e,i,o){for(var r=[],s=e.length,l=0;l<s;l++)bu(e[l].e,r,!0);var d=s>0&&r.length===0&&i!==null;if(d){var a=i.parentNode;Td(a),a.append(i),o.clear(),Gs(t,e[0].prev,e[s-1].next)}pf(r,()=>{for(var u=0;u<s;u++){var f=e[u];d||(o.delete(f.k),Gs(t,f.prev,f.next)),Gi(f.e,!d)}})}function Ti(t,e,i,o,r,s=null){var l=t,d={flags:e,items:new Map,first:null},a=(e&4)!==0;if(a){var u=t;l=nt?Ii(Ai(u)):u.appendChild(kn())}nt&&Yi();var f=null,v=!1,p=En(()=>{var x=i();return nr(x)?x:x==null?[]:hd(x)});Zi(()=>{var x=n(p),w=x.length;if(v&&w===0)return;v=w===0;let y=!1;if(nt){var C=vu(l)===Ks;C!==(w===0)&&(l=xa(),Ii(l),ho(!1),y=!0)}if(nt){for(var T=null,E,O=0;O<w;O++){if(Ct.nodeType===rr&&Ct.data===ga){l=Ct,y=!0,ho(!1);break}var A=x[O],I=o(A,O);E=jh(Ct,d,T,null,A,I,O,r,e,i),d.items.set(I,E),T=E}w>0&&Ii(xa())}nt||Pb(x,d,l,r,e,o,i),s!==null&&(w===0?f?Cs(f):f=Fi(()=>s(l)):f!==null&&Wn(f,()=>{f=null})),y&&ho(!0),n(p)}),nt&&(l=Ct)}function Pb(t,e,i,o,r,s,l){var J,ge,se,ce;var d=(r&8)!==0,a=(r&3)!==0,u=t.length,f=e.items,v=e.first,p=v,x,w=null,y,C=[],T=[],E,O,A,I;if(d)for(I=0;I<u;I+=1)E=t[I],O=s(E,I),A=f.get(O),A!==void 0&&((J=A.a)==null||J.measure(),(y!=null?y:y=new Set).add(A));for(I=0;I<u;I+=1){if(E=t[I],O=s(E,I),A=f.get(O),A===void 0){var L=p?p.e.nodes_start:i;w=jh(L,e,w,w===null?e.first:w.next,E,O,I,o,r,l),f.set(O,w),C=[],T=[],p=w.next;continue}if(a&&Mb(A,E,I,r),(A.e.f&8192)!==0&&(Cs(A.e),d&&((ge=A.a)==null||ge.unfix(),(y!=null?y:y=new Set).delete(A))),A!==p){if(x!==void 0&&x.has(A)){if(C.length<T.length){var Z=T[0],B;w=Z.prev;var U=C[0],X=C[C.length-1];for(B=0;B<C.length;B+=1)qh(C[B],Z,i);for(B=0;B<T.length;B+=1)x.delete(T[B]);Gs(e,U.prev,X.next),Gs(e,w,U),Gs(e,X,Z),p=Z,w=X,I-=1,C=[],T=[]}else x.delete(A),qh(A,p,i),Gs(e,A.prev,A.next),Gs(e,A,w===null?e.first:w.next),Gs(e,w,A),w=A;continue}for(C=[],T=[];p!==null&&p.k!==O;)(p.e.f&8192)===0&&(x!=null?x:x=new Set).add(p),T.push(p),p=p.next;if(p===null)continue;A=p}C.push(A),w=A,p=A.next}if(p!==null||x!==void 0){for(var de=x===void 0?[]:hd(x);p!==null;)(p.e.f&8192)===0&&de.push(p),p=p.next;var K=de.length;if(K>0){var ue=(r&4)!==0&&u===0?i:null;if(d){for(I=0;I<K;I+=1)(se=de[I].a)==null||se.measure();for(I=0;I<K;I+=1)(ce=de[I].a)==null||ce.fix()}Ab(e,de,ue,f)}}d&&An(()=>{var Le;if(y!==void 0)for(A of y)(Le=A.a)==null||Le.apply()}),St.first=e.first&&e.first.e,St.last=w&&w.e}function Mb(t,e,i,o){(o&1)!==0&&Cl(t.v,e),(o&2)!==0?Cl(t.i,i):t.i=i}function jh(t,e,i,o,r,s,l,d,a,u){var f=Ys,v=(a&1)!==0,p=(a&16)===0,x=v?p?cs(r,!1,!1):wr(r):r,w=(a&2)===0?l:wr(l);Re&&v&&(x.trace=()=>{var C=typeof w=="number"?l:w.v;u()[C]});var y={i:w,v:x,k:s,a:null,e:null,prev:i,next:o};Ys=y;try{return y.e=Fi(()=>d(t,x,w,u),nt),y.e.prev=i&&i.e,y.e.next=o&&o.e,i===null?e.first=y:(i.next=y,i.e.next=y.e),o!==null&&(o.prev=y,o.e.prev=y.e),y}finally{Ys=f}}function qh(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,r=e?e.e.nodes_start:i,s=t.e.nodes_start;s!==o;){var l=Zo(s);r.before(s),s=l}}function Gs(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 Lb(t,e,i){var s,l;if(!e||e===Nh(String(i!=null?i:"")))return;let o,r=(s=t.__svelte_meta)==null?void 0:s.loc;r?o=`near ${r.file}:${r.line}:${r.column}`:(l=sr)!=null&&l[Hn]&&(o=`in ${sr[Hn]}`),gh(Tu(o))}function Dd(t,e,i=!1,o=!1,r=!1){var s=t,l="";D(()=>{var x;var d=St;if(l===(l=(x=e())!=null?x:"")){nt&&Yi();return}if(d.nodes_start!==null&&(cf(d.nodes_start,d.nodes_end),d.nodes_start=d.nodes_end=null),l!==""){if(nt){for(var a=Ct.data,u=Yi(),f=u;u!==null&&(u.nodeType!==rr||u.data!=="");)f=u,u=Zo(u);if(u===null)throw js(),ss;Re&&!r&&Lb(u.parentNode,a,l),Vo(Ct,f),s=Ii(u);return}var v=l+"";i?v=`<svg>${v}</svg>`:o&&(v=`<math>${v}</math>`);var p=Ml(v);if((i||o)&&(p=Ai(p)),Vo(Ai(p),p.lastChild),i||o)for(;Ai(p);)s.before(Ai(p));else s.before(p)}})}function Oi(t,e,i){nt&&Yi();var o=t,r,s;Zi(()=>{r!==(r=e())&&(s&&(Wn(s),s=null),r&&(s=Fi(()=>i(o,r))))},65536),nt&&(o=Ct)}function ka(t,e,i,o,r,s){var w;let l=nt;nt&&Yi();var d=Re&&s&&((w=qt)==null?void 0:w.function[Hn]),a,u,f=null;nt&&Ct.nodeType===au&&(f=Ct,Yi());var v=nt?Ct:t,p,x=Ys;Zi(()=>{let y=e()||null;var C=r?r():i||y==="svg"?ou:null;if(y!==a){var T=Ys;wf(x),p&&(y===null?Wn(p,()=>{p=null,u=null}):y===u?Cs(p):(Gi(p),Eu(!1))),y&&y!==u&&(p=Fi(()=>{if(f=nt?f:C?document.createElementNS(C,y):document.createElement(y),Re&&s&&(f.__svelte_meta={loc:{file:d,line:s[0],column:s[1]}}),Vo(f,f),o){nt&&Uh(y)&&f.append(document.createComment(""));var E=nt?Ai(f):f.appendChild(kn());nt&&(E===null?ho(!1):Ii(E)),o(f,E)}St.nodes_end=f,v.before(f)})),a=y,a&&(u=a),Eu(!0),wf(T)}},65536),l&&(ho(!0),Ii(v))}var Cf;function Gh(t){return Cf=t.target,new Sf(t)}var Es,Sr,Sf=class{constructor(e){zs(this,Es);zs(this,Sr);var s,l;var i=new Map,o=(d,a)=>{var u=cs(a,!1,!1);return i.set(d,u),u};let r=new Proxy(Gt(Q({},e.props||{}),{$$events:{}}),{get(d,a){var u;return n((u=i.get(a))!=null?u:o(a,Reflect.get(d,a)))},has(d,a){var u;return a===gl?!0:(n((u=i.get(a))!=null?u:o(a,Reflect.get(d,a))),Reflect.has(d,a))},set(d,a,u){var f;return N((f=i.get(a))!=null?f:o(a,u),u),Reflect.set(d,a,u)}});ml(this,Sr,(e.hydrate?$f:Yr)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:(s=e.intro)!=null?s:!1,recover:e.recover})),(!((l=e==null?void 0:e.props)!=null&&l.$$host)||e.sync===!1)&&Al(),ml(this,Es,r.$$events);for(let d of Object.keys(Hi(this,Sr)))d==="$set"||d==="$destroy"||d==="$on"||mo(this,d,{get(){return Hi(this,Sr)[d]},set(a){Hi(this,Sr)[d]=a},enumerable:!0});Hi(this,Sr).$set=d=>{Object.assign(r,d)},Hi(this,Sr).$destroy=()=>{Ia(Hi(this,Sr))}}$set(e){Hi(this,Sr).$set(e)}$on(e,i){Hi(this,Es)[e]=Hi(this,Es)[e]||[];let o=(...r)=>i.call(this,...r);return Hi(this,Es)[e].push(o),()=>{Hi(this,Es)[e]=Hi(this,Es)[e].filter(r=>r!==o)}}$destroy(){Hi(this,Sr).$destroy()}};Es=new WeakMap,Sr=new WeakMap;function z(t,e){An(()=>{var r,s,l;var i=t.getRootNode(),o=i.host?i:(l=(r=i.head)!=null?r:i.ownerDocument.head)!=null?l:(s=Cf)==null?void 0:s.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),Re&&Kh(e.hash,d)}})}function Is(t,e){var i=void 0,o;Zi(()=>{i!==(i=e())&&(o&&(Gi(o),o=null),i&&(o=Fi(()=>{Lo(()=>i(t))})))})}function Yh(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=Yh(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Zh(){for(var t,e,i=0,o="",r=arguments.length;i<r;i++)(t=arguments[i])&&(e=Yh(t))&&(o&&(o+=" "),o+=e);return o}function Bd(t){return typeof t=="object"?Zh(t):t!=null?t:""}var Xh=[...`
44
+ \r\f\xA0\v\uFEFF`];function e1(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 s=r.length,l=0;(l=o.indexOf(r,l))>=0;){var d=l+s;(l===0||Xh.includes(o[l-1]))&&(d===o.length||Xh.includes(o[d]))?o=(l===0?"":o.substring(0,l))+o.substring(d+1):l=d}}return o===""?null:o}function Jh(t,e=!1){var i=e?" !important;":";",o="";for(var r in t){var s=t[r];s!=null&&s!==""&&(o+=" "+r+": "+s+i)}return o}function Tf(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function t1(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 s=!1,l=0,d=!1,a=[];o&&a.push(...Object.keys(o).map(Tf)),r&&a.push(...Object.keys(r).map(Tf));var u=0,f=-1;let y=t.length;for(var v=0;v<y;v++){var p=t[v];if(d?p==="/"&&t[v-1]==="*"&&(d=!1):s?s===p&&(s=!1):p==="/"&&t[v+1]==="*"?d=!0:p==='"'||p==="'"?s=p:p==="("?l++:p===")"&&l--,!d&&s===!1&&l===0){if(p===":"&&f===-1)f=v;else if(p===";"||v===y-1){if(f!==-1){var x=Tf(t.substring(u,f).trim());if(!a.includes(x)){p!==";"&&v++;var w=t.substring(u,v).trim();i+=" "+w+";"}}u=v+1,f=-1}}}}return o&&(i+=Jh(o)),r&&(i+=Jh(r,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function re(t,e,i,o,r,s){var l=t.__className;if(nt||l!==i||l===void 0){var d=e1(i,o,s);(!nt||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(s&&r!==s)for(var a in s){var u=!!s[a];(r==null||u!==!!r[a])&&t.classList.toggle(a,u)}return s}function Ef(t,e={},i,o){for(var r in i){var s=i[r];e[r]!==s&&(i[r]==null?t.style.removeProperty(r):t.style.setProperty(r,s,o))}}function et(t,e,i,o){var r=t.__style;if(nt||r!==e){var s=t1(e,o);(!nt||s!==t.getAttribute("style"))&&(s==null?t.removeAttribute("style"):t.style.cssText=s),t.__style=e}else o&&(Array.isArray(o)?(Ef(t,i==null?void 0:i[0],o[0]),Ef(t,i==null?void 0:i[1],o[1],"important")):Ef(t,i,o));return o}function Hd(t,e,i){if(t.multiple){if(e==null)return;if(!nr(e))return _h();for(var o of t.options)o.selected=e.includes(i1(o));return}for(o of t.options){var r=i1(o);if(Xp(r,e)){o.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function If(t){var e=new MutationObserver(()=>{Hd(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Mo(()=>{e.disconnect()})}function i1(t){return"__value"in t?t.__value:t.value}var Vl=Symbol("class"),Rl=Symbol("style"),r1=Symbol("is custom element"),s1=Symbol("is html");function a1(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Ke(t,e,i,o){var r=d1(t);if(nt&&(r[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||Fb(t,e,i!=null?i:"");return}r[e]!==(r[e]=i)&&(e==="loading"&&(t[Yg]=i),i==null?t.removeAttribute(e):typeof i!="string"&&c1(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function l1(t,e,i,o,r=!1){var A;var s=d1(t),l=s[r1],d=!s[s1];let a=nt&&l;a&&ho(!1);var u=e||{},f=t.tagName==="OPTION";for(var v in e)v in i||(i[v]=null);i.class?i.class=Bd(i.class):(o||i[Vl])&&(i.class=null),i[Rl]&&((A=i.style)!=null||(i.style=null));var p=c1(t);for(let I in i){let L=i[I];if(f&&I==="value"&&L==null){t.value=t.__value="",u[I]=L;continue}if(I==="class"){var x=t.namespaceURI==="http://www.w3.org/1999/xhtml";re(t,x,L,o,e==null?void 0:e[Vl],i[Vl]),u[I]=L,u[Vl]=i[Vl];continue}if(I==="style"){et(t,L,e==null?void 0:e[Rl],i[Rl]),u[I]=L,u[Rl]=i[Rl];continue}var w=u[I];if(!(L===w&&!(L===void 0&&t.hasAttribute(I)))){u[I]=L;var y=I[0]+I[1];if(y!=="$$")if(y==="on"){let Z={},B="$$"+I,U=I.slice(2);var C=Bh(U);if(Dh(U)&&(U=U.slice(0,-7),Z.capture=!0),!C&&w){if(L!=null)continue;t.removeEventListener(U,u[B],Z),u[B]=null}if(L!=null)if(C)t[`__${U}`]=L,ct([U]);else{let X=function(de){u[I].call(this,de)};var O=X;u[B]=_f(U,t,X,Z)}else C&&(t[`__${U}`]=void 0)}else if(I==="style")Ke(t,I,L);else if(I==="autofocus")gf(t,!!L);else if(!l&&(I==="__value"||I==="value"&&L!=null))t.value=t.__value=L;else if(I==="selected"&&f)a1(t,L);else{var T=I;d||(T=Hh(T));var E=T==="defaultValue"||T==="defaultChecked";if(L==null&&!l&&!E)if(s[I]=null,T==="value"||T==="checked"){let Z=t,B=e===void 0;if(T==="value"){let U=Z.defaultValue;Z.removeAttribute(T),Z.defaultValue=U,Z.value=Z.__value=B?U:null}else{let U=Z.defaultChecked;Z.removeAttribute(T),Z.defaultChecked=U,Z.checked=B?U:!1}}else t.removeAttribute(I);else E||p.includes(T)&&(l||typeof L!="string")?t[T]=L:typeof L!="function"&&Ke(t,T,L,r)}}}return a&&ho(!0),u}function Me(t,e,i=[],o,r=!1,s=Qr){let l=i.map(s);var d=void 0,a={},u=t.nodeName==="SELECT",f=!1;if(Zi(()=>{var p=e(...l.map(n)),x=l1(t,d,p,o,r);f&&u&&"value"in p&&Hd(t,p.value,!1);for(let y of Object.getOwnPropertySymbols(a))p[y]||Gi(a[y]);for(let y of Object.getOwnPropertySymbols(p)){var w=p[y];y.description===Wp&&(!d||w!==d[y])&&(a[y]&&Gi(a[y]),a[y]=Fi(()=>Is(t,()=>w))),x[y]=w}d=x}),u){var v=t;Lo(()=>{Hd(v,d.value),If(v)})}f=!0}function d1(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[r1]:t.nodeName.includes("-"),[s1]:t.namespaceURI===zg}}var o1=new Map;function c1(t){var e=o1.get(t.nodeName);if(e)return e;o1.set(t.nodeName,e=[]);for(var i,o=t,r=Element.prototype;r!==o;){i=ru(o);for(var s in i)i[s].set&&e.push(s);o=ha(o)}return e}function Fb(t,e,i){var o;Re&&(e==="srcset"&&Ub(t,i)||kf((o=t.getAttribute(e))!=null?o:"",i)||mh(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function kf(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function n1(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function Ub(t,e){var i=n1(t.srcset),o=n1(e);return o.length===i.length&&o.every(([r,s],l)=>s===i[l][1]&&(kf(i[l][0],r)||kf(r,i[l][0])))}var zb=nu?()=>performance.now():()=>Date.now(),Zr={tick:t=>(nu?requestAnimationFrame:pe)(t),now:()=>zb(),tasks:new Set};function u1(){let t=Zr.now();Zr.tasks.forEach(e=>{e.c(t)||(Zr.tasks.delete(e),e.f())}),Zr.tasks.size!==0&&Zr.tick(u1)}function p1(t){let e;return Zr.tasks.size===0&&Zr.tick(u1),{promise:new Promise(i=>{Zr.tasks.add(e={c:t,f:i})}),abort(){Zr.tasks.delete(e)}}}function Iu(t,e){Rd(()=>{t.dispatchEvent(new CustomEvent(e))})}function Qb(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 f1(t){let e={},i=t.split(";");for(let o of i){let[r,s]=o.split(":");if(!r||s===void 0)break;let l=Qb(r.trim());e[l]=s.trim()}return e}var jb=t=>t;function Xr(t,e,i,o){var O;var r=(t&1)!==0,s=(t&2)!==0,l=r&&s,d=(t&4)!==0,a=l?"both":r?"in":"out",u,f=e.inert,v=e.style.overflow,p,x;function w(){var L;var A=Bt,I=St;ji(null),go(null);try{return u!=null?u:u=i()(e,(L=o==null?void 0:o())!=null?L:{},{direction:a})}finally{ji(A),go(I)}}var y={is_global:d,in(){var A;if(e.inert=f,!r){x==null||x.abort(),(A=x==null?void 0:x.reset)==null||A.call(x);return}s||p==null||p.abort(),Iu(e,"introstart"),p=Af(e,w(),x,1,()=>{Iu(e,"introend"),p==null||p.abort(),p=u=void 0,e.style.overflow=v})},out(A){if(!s){A==null||A(),u=void 0;return}e.inert=!0,Iu(e,"outrostart"),x=Af(e,w(),p,0,()=>{Iu(e,"outroend"),A==null||A()})},stop:()=>{p==null||p.abort(),x==null||x.abort()}},C=St;if(((O=C.transitions)!=null?O:C.transitions=[]).push(y),r&&Od){var T=d;if(!T){for(var E=C.parent;E&&(E.f&65536)!==0;)for(;(E=E.parent)&&(E.f&16)===0;);T=!E||(E.f&32768)!==0}T&&Lo(()=>{Pt(()=>y.in())})}}function Af(t,e,i,o,r){var s=o===1;if(qs(e)){var l,d=!1;return An(()=>{if(!d){var C=e({direction:s?"in":"out"});l=Af(t,C,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:pe,deactivate:pe,reset:pe,t:()=>o};let{delay:a=0,css:u,tick:f,easing:v=jb}=e;var p=[];if(s&&i===void 0&&(f&&f(0,1),u)){var x=f1(u(0,1));p.push(x,x)}var w=()=>1-o,y=t.animate(p,{duration:a,fill:"forwards"});return y.onfinish=()=>{var U;y.cancel();var C=(U=i==null?void 0:i.t())!=null?U:1-o;i==null||i.abort();var T=o-C,E=e.duration*Math.abs(T),O=[];if(E>0){var A=!1;if(u)for(var I=Math.ceil(E/16.666666666666668),L=0;L<=I;L+=1){var Z=C+T*v(L/I),B=f1(u(Z,1-Z));O.push(B),A||(A=B.overflow==="hidden")}A&&(t.style.overflow="hidden"),w=()=>{var X=y.currentTime;return C+T*v(X/E)},f&&p1(()=>{if(y.playState!=="running")return!1;var X=w();return f(X,1-X),!0})}y=t.animate(O,{duration:E,fill:"forwards"}),y.onfinish=()=>{w=()=>o,f==null||f(o,1-o),r()}},{abort:()=>{y&&(y.cancel(),y.effect=null,y.onfinish=pe)},deactivate:()=>{r=pe},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>w()}}function Pf(t,e,i){var o=Qo(t,e);o&&o.set&&(t[e]=i,Mo(()=>{t[e]=null}))}var Zs,Ol,Fd,Au,v1,Pu=class Pu{constructor(e){zs(this,Au);zs(this,Zs,new WeakMap);zs(this,Ol);zs(this,Fd);ml(this,Fd,e)}observe(e,i){var o=Hi(this,Zs).get(e)||new Set;return o.add(i),Hi(this,Zs).set(e,o),Fg(this,Au,v1).call(this).observe(e,Hi(this,Fd)),()=>{var r=Hi(this,Zs).get(e);r.delete(i),r.size===0&&(Hi(this,Zs).delete(e),Hi(this,Ol).unobserve(e))}}};Zs=new WeakMap,Ol=new WeakMap,Fd=new WeakMap,Au=new WeakSet,v1=function(){var e;return(e=Hi(this,Ol))!=null?e:ml(this,Ol,new ResizeObserver(i=>{for(var o of i){Pu.entries.set(o.target,o);for(var r of Hi(this,Zs).get(o.target)||[])r(o)}}))},or(Pu,"entries",new WeakMap);var Mf=Pu;var Gb=new Mf({box:"border-box"});function Mn(t,e,i){var o=Gb.observe(t,()=>i(t[e]));Lo(()=>(Pt(()=>i(t[e])),o))}function m1(t,e){return t===e||(t==null?void 0:t[jo])===e}function at(t={},e,i,o){return Lo(()=>{var r,s;return Xo(()=>{r=s,s=(o==null?void 0:o())||[],Pt(()=>{t!==i(...s)&&(e(t,...s),r&&m1(i(...r),t)&&e(null,...r))})}),()=>{An(()=>{s&&m1(i(...s),t)&&e(null,...s)})}}),t}function Jo(t=!1){let e=qt,i=e.l.u;if(!i)return;let o=()=>Su(e.s);if(t){let r=0,s={},l=Qr(()=>{let d=!1,a=e.s;for(let u in a)a[u]!==s[u]&&(s[u]=a[u],d=!0);return d&&r++,r});o=()=>n(l)}i.b.length&&kd(()=>{g1(e,o),Qs(i.b)}),We(()=>{let r=Pt(()=>i.m.map(Gg));return()=>{for(let s of r)typeof s=="function"&&s()}}),i.a.length&&We(()=>{g1(e,o),Qs(i.a)})}function g1(t,e){if(t.l.s)for(let i of t.l.s)n(i);e()}function Ud(t,e,i){if(t==null)return e(void 0),i&&i(void 0),pe;let o=Pt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Nl=[];function Cr(t,e){return{subscribe:le(t,e).subscribe}}function le(t,e=pe){let i=null,o=new Set;function r(d){if(_l(t,d)&&(t=d,i)){let a=!Nl.length;for(let u of o)u[1](),Nl.push(u,t);if(a){for(let u=0;u<Nl.length;u+=2)Nl[u][0](Nl[u+1]);Nl.length=0}}}function s(d){r(d(t))}function l(d,a=pe){let u=[d,a];return o.add(u),o.size===1&&(i=e(r,s)||pe),d(t),()=>{o.delete(u),o.size===0&&i&&(i(),i=null)}}return{set:r,update:s,subscribe:l}}function $i(t,e,i){let o=!Array.isArray(t),r=o?[t]:t;if(!r.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let s=e.length<2;return Cr(i,(l,d)=>{let a=!1,u=[],f=0,v=pe,p=()=>{if(f)return;v();let w=e(o?u[0]:u,l,d);s?l(w):v=typeof w=="function"?w:pe},x=r.map((w,y)=>Ud(w,C=>{u[y]=C,f&=~(1<<y),a&&p()},()=>{f|=1<<y}));return a=!0,p(),function(){Qs(x),v(),a=!1}})}function be(t){let e;return Ud(t,i=>e=i)(),e}var Mu=!1,Lf=Symbol();function S(t,e,i){var s;let o=(s=i[e])!=null?s:i[e]={store:null,source:cs(void 0),unsubscribe:pe};if(o.store!==t&&!(Lf in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=pe;else{var r=!0;o.unsubscribe=Ud(t,l=>{r?o.source.v=l:N(o.source,l)}),r=!1}return t&&Lf in i?be(t):n(o.source)}function Ne(){let t={};function e(){Mo(()=>{for(var i in t)t[i].unsubscribe();mo(t,Lf,{enumerable:!1,value:!0})})}return[t,e]}function Vf(t){var e=Mu;try{return Mu=!1,[t(),Mu]}finally{Mu=e}}var i$={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Re&&sh(`${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 Oe(t,e,i){return new Proxy(Re?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},i$)}var o$={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(qs(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];qs(r)&&(r=r());let s=Qo(r,e);if(s&&s.set)return s.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(qs(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===jo||e===gl)return!1;for(let i of t.props)if(qs(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props)if(qs(i)&&(i=i()),!!i){for(let o in i)e.includes(o)||e.push(o);for(let o of Object.getOwnPropertySymbols(i))e.includes(o)||e.push(o)}return e}};function ks(...t){return new Proxy({props:t},o$)}function h1(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,B;var r=(i&1)!==0,s=!as||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,a=!1,u;l?[u,a]=Vf(()=>t[e]):u=t[e];var f=jo in t||gl in t,v=l&&((B=(Z=Qo(t,e))==null?void 0:Z.set)!=null?B:f&&e in t&&(U=>t[e]=U))||void 0,p=o,x=!0,w=!1,y=()=>(w=!0,x&&(x=!1,d?p=Pt(o):p=o),p);u===void 0&&o!==void 0&&(v&&s&&rh(e),u=y(),v&&v(u));var C;if(s)C=()=>{var U=t[e];return U===void 0?y():(x=!0,w=!1,U)};else{var T=(r?Qr:En)(()=>t[e]);T.f|=131072,C=()=>{var U=n(T);return U!==void 0&&(p=void 0),U===void 0?p:U}}if((i&4)===0&&s)return C;if(v){var E=t.$$legacy;return function(U,X){return arguments.length>0?((!s||!X||E||a)&&v(X?C():U),U):C()}}var O=!1,A=!1,I=cs(u),L=Qr(()=>{var U=C(),X=n(I);return O?(O=!1,A=!0,X):(A=!1,I.v=U)});return l&&n(L),r||(L.equals=bl),function(U,X){if(xu!==null&&(O=A,C(),n(I)),arguments.length>0){let de=X?n(L):s&&l?li(U):U;if(!L.equals(de)){if(O=!0,N(I,de),w&&p!==void 0&&(p=de),h1(L))return U;Pt(()=>n(L))}return U}return h1(L)?L.v:n(L)}}var n$;typeof HTMLElement=="function"&&(n$=class extends HTMLElement{constructor(e,i,o){super();or(this,"$$ctor");or(this,"$$s");or(this,"$$c");or(this,"$$cn",!1);or(this,"$$d",{});or(this,"$$r",!1);or(this,"$$p_d",{});or(this,"$$l",{});or(this,"$$l_u",new Map);or(this,"$$me");this.$$ctor=e,this.$$s=i,o&&this.attachShadow({mode:"open"})}addEventListener(e,i,o){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(i),this.$$c){let r=this.$$c.$on(e,i);this.$$l_u.set(i,r)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let r=this.$$l_u.get(i);r&&(r(),this.$$l_u.delete(i))}}connectedCallback(){return xt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let i=function(s){return l=>{let d=document.createElement("slot");s!=="default"&&(d.name=s),$(l,d)}};var e=i;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let o={},r=r$(this);for(let s of this.$$s)s in r&&(s==="default"&&!this.$$d.children?(this.$$d.children=i(s),o.default=!0):o[s]=i(s));for(let s of this.attributes){let l=this.$$g_p(s.name);l in this.$$d||(this.$$d[l]=Rf(l,s.value,this.$$p_d,"toProp"))}for(let s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=Gh({component:this.$$ctor,target:this.shadowRoot||this,props:Gt(Q({},this.$$d),{$$slots:o,$$host:this})}),this.$$me=_u(()=>{Xo(()=>{var s;this.$$r=!0;for(let l of Kp(this.$$c)){if(!((s=this.$$p_d[l])!=null&&s.reflect))continue;this.$$d[l]=this.$$c[l];let d=Rf(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 s in this.$$l)for(let l of this.$$l[s]){let d=this.$$c.$on(s,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]=Rf(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 Kp(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function Rf(t,e,i,o){var s;let r=(s=i[t])==null?void 0:s.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 r$(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var _1="5";var b1,$1,y1;typeof window!="undefined"&&((y1=($1=(b1=window.__svelte)!=null?b1:window.__svelte={}).v)!=null?y1:$1.v=new Set).add(_1);var nd=require("@vkontakte/videoplayer-core/es2015"),TJ=require("@vkontakte/videoplayer-core/es2015"),rl=require("@vkontakte/videoplayer-shared/es2015"),E_=require("@vkontakte/videoplayer-statistics/es2015");var Aa=require("@vkontakte/videoplayer-shared/es2015");var s$={isMobile:void 0,disableInvisibleComponentsTimeout:500,debugLog:!1,devNullLog:!1,defaultLanguage:Aa.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:Aa.VideoQuality.Q_480P,highQualityLimit:Aa.VideoQuality.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,returnFocusOnControlsHide:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,thinStatistics:!1,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,tracer:!1,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,interactiveControlsTapPlace:!1,interactiveControlsFillAnimation:!1,interactiveControlsHideAnimation:!1,interactiveHistoryEndChapterFix:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,initSubtitles:!0,useCallbackForMediaSessionNextPrevClick:!1,usePerformanceFix:!1,userVideoPrefs:!1,savePreferredStatesOnUserActionOnly:!1,useLoopSetting:!1,doubleForwardAvailable:!1,useRichSeek:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,paramsOverride:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null,font:null,focusedOutlineWidth:null,focusedOutlineRadius:null,controlsDesktopPaddingHorizontal:null,timelinePaddingHorizontal:null,settingsBackgroundColor:null,controlsGradientHeight:null,controlsGradient:null},userSalt:"0",doubleForwardActivationTime:600,playbackStatusAnimationDuration:1e3,playbackStatusNextVideoAnimationDuration:1e3,suitableDurationForUsingRichSeek:180},x1=t=>(0,Aa.fillWithDefault)(t,s$),w1=t=>xl("ui-config",t),Nt=()=>yl("ui-config");var zd="vk_player_debug_panel_opened";var S1="videoplayer",C1="videoplayer";var ps={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},T1=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),E1=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),I1=new Set(["ShiftRight","ShiftLeft"]);var k1=["TIMELINE"],Wd=[...k1,"GRAPH_BUTTON"],Of=[...k1,"PLAY_BUTTON"],Kd=[...Wd,"PLAY_BUTTON"];var Jr=(s=>(s.XS="xs",s.S="s",s.M="m",s.L="l",s.XL="xl",s))(Jr||{}),Ma={xs:0,s:1,m:2,l:3,xl:4};var qd=require("@vkontakte/videoplayer-shared/es2015"),A1=require("@vkontakte/videoplayer-core/es2015"),P1=require("@vkontakte/videoplayer-statistics/es2015");var Lu="prod",La="1.1.76-dev.44b02f36.0";var Va=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var M1=Symbol("storeContext"),L1=Symbol("microStoresContext"),V1=(t,e)=>{xl(M1,t),xl(L1,e),Lu==="dev"&&(window.app={store:t,microStores:e})},$e=()=>{let t=yl(M1);return(0,qd.assertNonNullable)(t,"Store context is empty!"),t},To=()=>{let t=yl(L1);return(0,qd.assertNonNullable)(t,"MicroStores context is empty!"),t},di=(t,e)=>Ru(t,t.getValue(),e),Ru=(t,e,i)=>Cr(e,o=>{let r=t.subscribe(s=>{o(s),i==null||i(s)});return()=>r.unsubscribe()}),R1=(t,e,i,o)=>{var Z,B,U,X,de,K,ue,J,ge;let r=t.info,{width:s,height:l}=be(i.ui.playerSize),d=(B=(Z=r.throughputEstimation$.getValue())==null?void 0:Z.toFixed(0))!=null?B:0,a=(X=(U=r.rttEstimation$.getValue())==null?void 0:U.toFixed(0))!=null?X:0,u=r.isAutoQualityEnabled$.getValue()?"auto":"manual",f=`${La} (core: ${A1.VERSION}, stat: ${P1.VERSION}, shared: ${qd.VERSION})`,v=be(i.state.errorLog$),p=v.length?`
45
+ `+v.map((se,ce)=>{var De;let Le=`${ce}) Type: ${se.id}
46
+ `,we=`Message: ${se.message} (${se.thrown})
47
+ `,te=`Trace: ${(De=se.thrown)==null?void 0:De.stack}
48
+ `;return Le+we+te}).join(`
49
+ `):void 0,x=i.state.isAudioDisabled?"disabled":be(i.state.isAudioAvailable$)?void 0:"unavailable",w=t.info.currentVideoStream$.getValue(),y=t.info.currentAudioStream$.getValue(),C=[];w&&C.push(`Video: ${(de=w==null?void 0:w.codec)!=null?de:""}`+(w!=null&&w.hdr?" (HDR)":"")),y&&C.push(`Audio: ${(K=y==null?void 0:y.codec)!=null?K:""}`+(y!=null&&y.language?` (${y.language})`:""));let T=r.currentQuality$.getValue(),E="";if(T){let se=r.availableQualitiesFps$.getValue()[T];E=se?`${se}fps`:""}let O=r.httpConnectionType$.getValue(),A=(J=(ue=r.currentBuffer$.getValue())==null?void 0:ue.end)!=null?J:0,I=Math.max(A-be(i.state.positionExact$),0),L={Version:f,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),TraceId:o,VSID:be(i.vsid),"Content host":r.hostname$.getValue(),"Connection type":O?O+(r.httpConnectionReused$.getValue()?" (reused)":""):"",Throughput:`${d}Kbps @ ${a}ms RTT`,Format:r.currentFormat$.getValue(),"Available Formats":e!=null&&e.sources?Object.keys(e.sources).join(", "):"",Streams:C.join(", "),Quality:`${u} ${T!=null?T:""} ${E}`,"Available qualities":r.availableQualities$.getValue().join(", "),Audio:x,Position:`${be(i.state.positionExact$)}s`,Buffer:`${I}s`,State:`${be(i.playerPhase)} ${(ge=r.playbackState$.getValue())!=null?ge:""}`,"Player size":`${s}x${l}`,URL:window.location.href,Errors:p};return Object.entries(L).filter(([se,ce])=>ce!==void 0).map(([se,ce])=>`${se}: ${ce}`).join(`
50
+ `)},O1=(t,e,i)=>{var Z,B,U,X;let o=t.info,{width:r,height:s}=be(i.ui.playerSize),l={version:La,viewport:`${r}x${s}`,volume:Math.round(be(i.state.volume$)*100)};l.id=i.videoId,o.currentFormat$.getValue()&&(l.provider=o.currentFormat$.getValue()),o.hostname$.getValue()&&(l.cdn=o.hostname$.getValue());let u=o.intrinsicVideoSize$.getValue();u&&(l.videoSize=`${u.width}x${u.height}`);let f=o.currentBuffer$.getValue(),v=o.isLive$.getValue(),p=o.liveBufferTime$.getValue();f&&(v&&p?l.buffer=f.end-p:l.buffer=Math.max(f.end-be(i.state.positionExact$),0)),l.position=be(i.state.positionExact$);let x=o.throughputEstimation$.getValue();x&&(l.speed=x);let w=o.videoBitrate$.getValue();w&&(l.bitrate=w);let y=o.liveLatency$.getValue();y&&(l.liveLatency=y);let C=o.currentVideoSegmentLength$.getValue();C&&(l.currentVideoSegmentLength=C);let T=o.currentAudioSegmentLength$.getValue();T&&(l.currentAudioSegmentLength=T);let E=be(i.vsid);typeof E=="string"&&(l.vsid=E);let O=(Z=t.info.currentVideoStream$.getValue())==null?void 0:Z.codec;O&&(l.videoCodec=O);let A=(B=t.info.currentAudioStream$.getValue())==null?void 0:B.codec;A&&(l.audioCodec=A),((U=t.info.currentVideoStream$.getValue())==null?void 0:U.hdr)&&(l.hdr=!0);let L=(X=t.info.currentAudioStream$.getValue())==null?void 0:X.language;return L&&(l.audioLanguage=L),l},N1=(t,e)=>Va(t,e,"mp4"),D1=t=>!t.type,B1=t=>!!t.type,H1=()=>{let e=[],i=0;return{add:(o,r)=>{e[i]=[o,r],i=(i+1)%10},find:o=>e.find(([r])=>r===o)}},Vu=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}download(e){return xt(this,null,function*(){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let i=yield fetch(e,{signal:this.destroyController.signal});if(i.ok)return yield i.text();throw i}finally{this.pendingDownloads.delete(e)}})}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};var yi=require("@vkontakte/videoplayer-shared/es2015"),oL=require("@vkontakte/videoplayer-core/es2015");var a$="vk_player_",F1="vk_player_prefer_traffic_saving_enabled",U1="vk_player_preferred_volume",z1="vk_player_prefer_volume_mute",Hf="vk_player_preferred_quality",Nf="vk_player_preferred_default_quality_settings",Df="vk_player_preferred_quality_settings_by_video",W1="vk_player_preferred_stream_language",K1="vk_player_preferred_rate",q1="vk_player_preferred_autoplay_next",Bf="vk_player_preferred_subtitles_language",Q1="vk_player_user_video_prefs",j1=`${a$}preview_track_close_tooltip`,G1=t=>t>1?1:t<0?0:t,Ff=t=>yi.safeStorage.set(U1,G1(t).toString(10)),Ou=()=>{let t=yi.safeStorage.get(U1);return(0,yi.isNullable)(t)?void 0:G1(parseFloat(t))},Uf=(t,e)=>yi.safeStorage.set(Hf,JSON.stringify({videoId:t,value:e})),Nu=()=>yi.safeStorage.remove(Hf),zf=t=>{let e=yi.safeStorage.get(Hf);if((0,yi.isNullable)(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){Nu();return}return o},Wf=(t,e)=>{e?yi.safeStorage.set(t,"true"):yi.safeStorage.remove(t)},Kf=t=>yi.safeStorage.get(t)==="true",qf=t=>Wf(z1,t),Y1=()=>Kf(z1),Qd=t=>Wf(F1,t),Qf=()=>Kf(F1),Z1=()=>yi.safeStorage.get(W1),jf=t=>yi.safeStorage.set(W1,t),Gf=()=>yi.safeStorage.get(Bf),Yf=t=>{t?yi.safeStorage.set(Bf,t):yi.safeStorage.remove(Bf)},X1=t=>yi.safeStorage.set(K1,JSON.stringify({rate:t})),J1=()=>{let t=yi.safeStorage.get(K1);if((0,yi.isNullable)(t))return;let{rate:e}=JSON.parse(t);return e},e0=t=>Wf(q1,t),t0=()=>Kf(q1),l$=()=>{let t=f=>{yi.safeStorage.set(Nf,JSON.stringify(f))},e=()=>{try{let f=yi.safeStorage.get(Nf);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=yi.safeStorage.get(Df);return f?JSON.parse(f):null}catch(f){return null}},o=f=>{yi.safeStorage.set(Df,JSON.stringify(f))},r=f=>{u(f);let v=f?i():null;if(v&&(v==null?void 0:v.videoId)===f)return Gt(Q({},v),{appliesTo:"to-video"});v&&s();let p=e();return p?Gt(Q({},p),{appliesTo:"as-default"}):(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},s=()=>{yi.safeStorage.remove(Df)},l=()=>{yi.safeStorage.remove(Nf)},d=(f,v="as-default")=>{f.type==="exact_quality"||v==="to-video"?o(f):t(f)},a=f=>{let v=r(f);if(v){switch(v.type){case"traffic_saving":Qd(!0);break;case"exact_quality":Uf(f,v.quality)}s(),l()}},u=f=>{let v=zf(f);if(v){o({type:"exact_quality",videoId:f,quality:v});return}Qf()&&t({type:"traffic_saving",videoId:f}),Qd(!1),Nu()};return{getPreferredQualitySettings:r,migrateSettingsToLegacyWay:a,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:s,getPreferredDefaultQualitySettings:e,getPreferredSubtitlesLanguage:Gf,savePreferredSubtitlesLanguage:Yf}},{getPreferredQualitySettings:i0,migrateSettingsToLegacyWay:o0,savePreferredQualitySettings:Du,savePreferredDefaultQualitySettings:nL,removePreferredQualitySettingsByVideo:rL,getPreferredDefaultQualitySettings:Bu}=l$(),d$=3,c$=3,n0=()=>{let t=yi.safeStorage.get(Q1);if(t)try{return JSON.parse(t)}catch(e){return null}return null},Hu=(t,e)=>{var r,s;let i=n0();return(s=(r=i==null?void 0:i[t])==null?void 0:r[e])!=null?s:null},Zf=(t,e,i)=>{var l,d,a;let o=(l=n0())!=null?l:{},r=(a=(d=o[t])==null?void 0:d[e])!=null?a:{};Object.assign(r,i,{updatedTs:Date.now()}),t in o||(o[t]={}),o[t][e]=r;let s=u$(o);yi.safeStorage.set(Q1,JSON.stringify(s))};function u$(t){let e=Object.entries(t).reduce((o,[r,s])=>{let l=0;return Object.values(s).forEach(d=>{l<d.updatedTs&&(l=d.updatedTs)}),o.push([r,l]),o},[]);return e.sort(([,o],[,r])=>o>r?-1:1),e.splice(c$),e.reduce((o,[r])=>(o[r]=p$(t[r]),o),{})}function p$(t){let e=Object.entries(t);return e.sort(([,i],[,o])=>i.updatedTs>o.updatedTs?-1:1),e.splice(d$),Object.fromEntries(e)}function r0(){yi.safeStorage.set(j1,JSON.stringify(!0))}function s0(){let t=yi.safeStorage.get(j1);try{return t?JSON.parse(t):!1}catch(e){return!1}}var fg=require("@vkontakte/videoplayer-core/es2015");var f$=ke('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M67 9.489A3.49 3.49 0 0 1 63.511 13 3.493 3.493 0 0 1 60 9.489 3.49 3.49 0 0 1 63.511 6 3.484 3.484 0 0 1 67 9.489m-5.003 0c0 .834.68 1.514 1.514 1.514.812 0 1.492-.68 1.492-1.514 0-.812-.68-1.492-1.492-1.492-.834 0-1.514.68-1.514 1.492" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M26.86 15.183c1.372-.492 2.534-1.711 2.534-3.61C29.394 8.922 27.185 7 24.07 7c-1.965 0-3.573.784-4.67 2.29l-.108.149a1.333 1.333 0 0 0 .268 1.855c.536.402 1.295.343 1.736-.162.09-.102.164-.19.205-.247.594-.81 1.431-1.306 2.5-1.306 1.534 0 2.604.915 2.604 2.251 0 1.36-1.093 2.275-2.651 2.275h-.583a1.231 1.231 0 0 0 0 2.462h.583c1.744 0 2.907.985 2.907 2.392 0 1.453-1.186 2.462-2.884 2.462-1.296 0-2.201-.552-2.883-1.603a10 10 0 0 0-.2-.287 1.403 1.403 0 0 0-2.052-.246c-.494.42-.65 1.13-.305 1.68.072.116.146.227.218.322C20.132 23.137 21.678 24 23.999 24c3.28 0 5.628-2.04 5.628-4.924 0-2.204-1.395-3.4-2.767-3.893"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M37.732 12.675c-.465 0-1 .046-1.511.164l2.584-3.74a1.338 1.338 0 1 0-2.203-1.518l-3.753 5.469c-1.418 2.133-1.837 3.822-1.837 5.276 0 3.47 2.558 5.674 6.186 5.674 3.604 0 6.162-2.392 6.162-5.768 0-3.236-2.349-5.557-5.628-5.557m-.534 8.746c-1.977 0-3.326-1.267-3.326-3.142 0-1.853 1.349-3.142 3.326-3.142 1.953 0 3.302 1.29 3.302 3.142 0 1.875-1.35 3.142-3.302 3.142M58 15.512c0 5.041-2.697 8.441-6.627 8.441s-6.628-3.4-6.628-8.441 2.698-8.442 6.628-8.442S58 10.47 58 15.512m-10.348 0c0 3.564 1.488 5.862 3.72 5.862s3.721-2.298 3.721-5.862-1.488-5.862-3.72-5.862-3.72 2.298-3.72 5.862Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M67 23.5c0-1.318-1.201-3.094-4.199-4.673a1.5 1.5 0 1 1 1.398-2.654C67.452 17.886 70 20.433 70 23.5c0 3.126-2.556 5.554-6.088 7.27-3.633 1.766-8.825 3.062-15.259 3.722a1.5 1.5 0 0 1-.306-2.984c6.248-.641 11.057-1.882 14.253-3.436C65.897 26.47 67 24.8 67 23.5M38.879 35H38c-9.64 0-17.447-1.133-22.9-3.018-2.72-.941-4.94-2.099-6.506-3.468C7.019 27.138 6 25.445 6 23.5c0-1.64.785-3.073 1.908-4.255 1.119-1.179 2.66-2.205 4.42-3.086a1.5 1.5 0 1 1 1.343 2.682c-1.584.793-2.794 1.634-3.588 2.47C9.293 22.143 9 22.873 9 23.5c0 .807.407 1.74 1.568 2.755 1.17 1.022 2.996 2.02 5.513 2.892C21.106 30.885 28.55 32 38 32h.879l-1.44-1.44a1.5 1.5 0 0 1 2.122-2.12l3.999 3.998.01.011a1.5 1.5 0 0 1 .317 1.624 1.5 1.5 0 0 1-.326.488l-4 4a1.5 1.5 0 0 1-2.122-2.122L38.88 35Z"></path><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-opacity=".12" stroke-width=".5" d="m7.908 19.245-.181-.173c1.146-1.206 2.714-2.248 4.49-3.137a1.75 1.75 0 1 1 1.566 3.13c-1.57.786-2.752 1.61-3.519 2.418-.762.802-1.014 1.474-1.014 2.017 0 .713.357 1.583 1.483 2.567 1.136.993 2.93 1.978 5.43 2.843 4.99 1.726 12.403 2.84 21.837 2.84h.275l-1.012-1.013a1.75 1.75 0 1 1 2.474-2.474l4 3.998h0l.012.013s0 0 0 0c.162.165.284.354.368.556q0 0 0 0l-.23.096A1.5 1.5 0 0 1 44 33.5q-.002.306-.113.573L7.907 19.245Zm0 0-.181-.173C6.576 20.284 5.75 21.775 5.75 23.5c0 2.04 1.07 3.796 2.68 5.202 1.599 1.398 3.85 2.569 6.589 3.516C20.506 34.116 28.343 35.25 38 35.25h.275zm29.824-6.82c-.3 0-.63.018-.965.063l2.244-3.247c.728-1.054-.026-2.491-1.306-2.491-.524 0-1.014.258-1.31.69l-3.752 5.468h0l-.002.003c-1.442 2.17-1.879 3.905-1.879 5.415 0 1.8.665 3.288 1.815 4.324 1.147 1.033 2.757 1.6 4.62 1.6 3.727 0 6.413-2.488 6.413-6.018 0-3.377-2.464-5.807-5.878-5.807m25.779.825c2.07 0 3.739-1.67 3.739-3.761 0-2.07-1.67-3.739-3.739-3.739a3.74 3.74 0 0 0-3.761 3.739 3.743 3.743 0 0 0 3.761 3.761m0-2.497a1.267 1.267 0 0 1-1.264-1.264c0-.671.566-1.242 1.264-1.242.674 0 1.242.568 1.242 1.242 0 .698-.57 1.264-1.242 1.264m-33.634 8.323c0-2.043-1.139-3.272-2.388-3.895 1.208-.629 2.155-1.846 2.155-3.609 0-2.82-2.357-4.822-5.575-4.822-2.04 0-3.724.818-4.871 2.392l-.109.149a1.583 1.583 0 0 0 .32 2.203c.635.476 1.542.411 2.074-.197.09-.103.17-.198.219-.264.553-.755 1.318-1.204 2.297-1.204.72 0 1.309.214 1.715.564.403.347.64.84.64 1.437 0 .608-.242 1.107-.653 1.457-.415.353-1.017.568-1.748.568h-.583a1.481 1.481 0 0 0 0 2.962h.583c.826 0 1.493.233 1.948.61.451.375.709.902.709 1.532 0 .654-.265 1.2-.718 1.586-.455.388-1.116.626-1.916.626-.61 0-1.117-.13-1.548-.375s-.801-.614-1.125-1.114a11 11 0 0 0-.206-.296 1.653 1.653 0 0 0-2.417-.292c-.577.49-.774 1.335-.356 2.004.075.119.152.236.23.339.704.945 1.462 1.652 2.352 2.121.892.47 1.9.692 3.094.692 3.383 0 5.877-2.121 5.877-5.174m7.32 2.095c-.934 0-1.7-.299-2.232-.8-.53-.5-.843-1.217-.843-2.092 0-.863.313-1.581.844-2.085s1.298-.807 2.232-.807c.92 0 1.682.303 2.21.807.529.503.842 1.222.842 2.085 0 .875-.314 1.593-.84 2.093-.53.5-1.29.799-2.212.799Zm14.176 3.032c2.044 0 3.772-.887 4.983-2.425 1.208-1.534 1.894-3.703 1.894-6.266s-.686-4.732-1.894-6.266c-1.211-1.539-2.94-2.426-4.983-2.426-2.044 0-3.773.887-4.984 2.426-1.208 1.534-1.894 3.703-1.894 6.266s.686 4.732 1.894 6.266c1.211 1.538 2.94 2.425 4.984 2.425m0-3.08c-1.017 0-1.874-.518-2.487-1.478-.618-.968-.984-2.382-.984-4.133 0-1.752.366-3.166.984-4.133.613-.96 1.47-1.48 2.487-1.48s1.873.52 2.486 1.48c.618.967.984 2.381.984 4.133 0 1.751-.366 3.165-.984 4.133-.613.96-1.47 1.479-2.486 1.479Zm11.312-2.075c2.975 1.567 4.065 3.279 4.065 4.452 0 1.148-.983 2.756-4.259 4.347-3.16 1.536-7.937 2.773-14.17 3.412a1.75 1.75 0 0 0 .358 3.482c6.45-.662 11.673-1.963 15.342-3.746 3.551-1.725 6.229-4.216 6.229-7.495 0-3.213-2.661-5.825-5.935-7.548a1.75 1.75 0 1 0-1.63 3.096"></path></g><defs><filter id="a" width="75" height="44" x=".5" y=".5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_618_12297"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_618_12297" result="shape"></feBlend></filter></defs></svg>');function jd(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=f$();Me(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"76",height:"45",fill:"none","data-testid":"video-360-icon",role:"img"},i));var r=_(o);ye(r,()=>{var s;return(s=e.children)!=null?s:pe}),Ie(2),g(o),$(t,o)}var Dl=require("@vkontakte/videoplayer-shared/es2015");var v$={auto_quality_invariant:"\u0410\u0432\u0442\u043E",auto_quality:"\u0410\u0432\u0442\u043E ({actual})",auto_quality_option:"\u0410\u0432\u0442\u043E",other_quality:"\u0414\u0440\u0443\u0433\u043E\u0435",high_quality:"\u0412\u044B\u0441\u043E\u043A\u043E\u0435 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",high_quality_description:"\u0411\u0443\u0434\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u043E \u0431\u043E\u043B\u044C\u0448\u0435 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",auto_quality_limit:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438",traffic_saving_quality:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0442\u0440\u0430\u0444\u0438\u043A\u0430",traffic_saving_quality_description:"\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u044F\u0442\u0441\u044F \u0431\u044B\u0441\u0442\u0440\u0435\u0435, \u043D\u043E \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0438\u0436\u0435",default_quality_for_any_video:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0434\u043B\u044F \u0432\u0441\u0435\u0445 \u0432\u0438\u0434\u0435\u043E",quality_applience:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E \u043C\u043E\u0436\u043D\u043E\xA0{action}",quality_applience_action:"\u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C",menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",menu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",menu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",menu_report:"\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435",menu_pip:"\u041A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",menu_pip_close:"\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link_with_timestamp:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u043A\u0430\u0434\u0440",menu_video_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C",menu_video_loop_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_video_loop_off:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_chromecast:"Chromecast \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F",menu_copy_debug:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_save_debug:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_debug_overlay:"\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",menu_copy_embed_code:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0434 \u0434\u043B\u044F \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043D\u0438\u044F",menu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",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:"\u0414\u043E\u0440\u043E\u0436\u043A\u0430 {index}",pip_dummy_title:"\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",submenu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",submenu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",submenu_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",submenu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",submenu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",playing_ads:"\u0420\u0435\u043A\u043B\u0430\u043C\u0430 {timeleft}",skip_ads_now:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",skip_ads_after:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C {time}\u0441",visit_advertiser:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442",aria_timeline:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0448\u043A\u0430\u043B\u044B",aria_timeline_value:"{position} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C {duration}",doubletap_seek_step:"{seconds} \u0441\u0435\u043A\u0443\u043D\u0434",playback_rate_1:"\u041E\u0431\u044B\u0447\u043D\u0430\u044F",playback_rate:"{multiplier}x",video360:"\u043F\u0430\u043D\u043E\u0440\u0430\u043C\u043D\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",subtitles_caption:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_auto:"{language} (\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435)",subtitles_off:"\u0412\u044B\u043A\u043B.",subtitles_auto_caption:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",traffic_saving_off:"\u041E\u0442\u043A\u043B.",traffic_saving_on:"\u0412\u043A\u043B.",traffic_saving_helper_text:"\u041F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0438 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0432\u0438\u0434\u0435\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043D\u0438\u0436\u0435\u043D\u043E \u0434\u043B\u044F \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",tooltip_button_disabled:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_previous:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_restart:"\u041D\u0430\u0447\u0430\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E",tooltip_play:"\u0421\u043C\u043E\u0442\u0440\u0435\u0442\u044C",tooltip_pause:"\u041F\u0430\u0443\u0437\u0430",tooltip_next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_interactive_go_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0439 \u0433\u043B\u0430\u0432\u0435",tooltip_interactive_go_back_disabled:"\u0418\u0441\u0442\u043E\u0440\u0438\u044F \u043F\u0440\u043E\u0445\u043E\u0436\u0434\u0435\u043D\u0438\u044F \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_interactive_go_back_disabled_first:"\u0412\u044B \u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u043F\u0435\u0440\u0432\u0443\u044E \u0433\u043B\u0430\u0432\u0443",tooltip_interactive_go_back_disabled_limit:"\u041B\u0438\u043C\u0438\u0442 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u043E\u0432 \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D",tooltip_chapter_without_interactive:"\u0412 \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u0435 \u043D\u0435\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_interactive_of_chapter_completed:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u044B \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u044B \u0443\u0436\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u044B",tooltip_interactive_seek:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0443",tooltip_interactive_graph_off:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_interactive_graph_on:"\u0421\u043A\u0440\u044B\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_live:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u043D\u0430 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u044B\u0439 \u043B\u0430\u0439\u0432",tooltip_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",tooltip_volume:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_volume_muted:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_sound_unavailable:"\u0417\u0432\u0443\u043A \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D",tooltip_subtitles_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_subtitles_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_settings_off:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_settings_on:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_fullscreen_off:"\u041D\u0430 \u0432\u0435\u0441\u044C \u044D\u043A\u0440\u0430\u043D",tooltip_fullscreen_on:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",tooltip_chromecast_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_chromecast_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_episode_finished:"\u0412\u044B \u0443\u0436\u0435 \u0441\u0434\u0435\u043B\u0430\u043B\u0438 \u0441\u0432\u043E\u0439 \u0432\u044B\u0431\u043E\u0440",tooltip_episode_unfinished:"\u041D\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u043E",tooltip_disabled_when_interactive:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432 \u0443\u0436\u0435 \u0438\u0434\u0451\u0442",tooltip_disabled_when_graph_on:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u043A\u0430\u0440\u0442\u044B",tooltip_interactive_interaction_time_indicator:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_vk_logo:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_vk_video_logo:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_autoplay_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_autoplay_on:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_context_menu_open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",tooltip_context_menu_close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",download_video_caption:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"\u0411\u044B\u0441\u0442\u0440\u044B\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438",hotkey_map_modal_close_btn_text:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",hotkey_map_group_title_common:"\u041E\u0431\u0449\u0438\u0435",hotkey_map_group_title_playback:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_group_title_subtitles:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_group_title_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",hotkey_map_item_mute_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_up_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u0432\u0435\u0440\u0445",hotkey_map_item_volume_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_down_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437",hotkey_map_item_pip_description:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043C\u0438\u043D\u0438-\u043F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u0433\u043E\u0440\u044F\u0447\u0438\u0445 \u043A\u043B\u0430\u0432\u0438\u0448",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"\u041F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_item_play_toggle_value:"\u041F\u0440\u043E\u0431\u0435\u043B (\u0438\u043B\u0438 k)",hotkey_map_item_seek_backward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_seek_backward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E (\u0438\u043B\u0438 j)",hotkey_map_item_seek_forward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_seek_forward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E (\u0438\u043B\u0438 l)",hotkey_map_item_fast_seek_backward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_fast_seek_backward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_fast_seek_forward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_fast_seek_forward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_rate_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u043C\u0443 \u043C\u043E\u043C\u0435\u043D\u0442\u0443 \u0432\u0438\u0434\u0435\u043E <br />(\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \u043F\u0440\u0438 \u043D\u0430\u0436\u0430\u0442\u0438\u0438 \u043D\u0430 \u0446\u0438\u0444\u0440\u0443 \xAB7\xBB \u0440\u043E\u043B\u0438\u043A \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u043D \u0434\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043E\u0442\u043C\u0435\u0442\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 70% \u043E\u0442 \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043E)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_prev_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_prev_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_next_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_next_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"\u0434\u043D",waiting_live_hour_value:"\u0447",waiting_live_minute_value:"\u043C\u0438\u043D",waiting_live_second_value:"\u0441\u0435\u043A",waiting_live_colon:":",waiting_live_upcoming_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0435\u0449\u0435 \u043D\u0435 \u043D\u0430\u0447\u0430\u043B\u0430\u0441\u044C",waiting_live_timer_title:"\u0414\u043E \u043D\u0430\u0447\u0430\u043B\u0430 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C",waiting_live_recover_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430 - \u043E\u043D\u0430 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u0430\u0432\u0442\u043E\u0440 \u0432\u0435\u0440\u043D\u0451\u0442\u0441\u044F",waiting_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0430 - \u0437\u0430\u043F\u0438\u0441\u044C \u043F\u043E\u044F\u0432\u0438\u0442\u0441\u044F \u043F\u043E\u0437\u0436\u0435",aria_label_video_player:"\u0412\u0438\u0434\u0435\u043E \u043F\u043B\u0435\u0435\u0440",aria_label_spherical_control:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440 \u0434\u043B\u044F \u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u0432\u0438\u0434\u0435\u043E. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438 \u0441\u043E \u0441\u0442\u0440\u0435\u043B\u043A\u0430\u043C\u0438 \u0434\u043B\u044F \u043F\u0430\u043D\u043E\u0440\u0430\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0432\u0438\u0434\u0435\u043E.",aria_label_debug_panel:"\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u0441 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439, \u0441\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u0440\u0438\u043D\u0448\u043E\u0442 \u0434\u043B\u044F \u0442\u0435\u0445\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",aria_label_new_tab_alert:"\u041E\u0442\u043A\u0440\u043E\u0435\u0442\u0441\u044F \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435.",aria_label_menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E: {actual}",aria_label_menu_audio_languages:"\u042F\u0437\u044B\u043A \u0430\u0443\u0434\u0438\u043E: {actual}",aria_label_menu_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C: {actual}",aria_label_menu_subtitle:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B: {actual}",aria_label_menu_download:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",aria_label_menu_debug_overlay:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E \u043D\u0430 90 \u0433\u0440\u0430\u0434\u0443\u0441\u043E\u0432",aria_label_menu_loop:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u0435\u0436\u0438\u043C\u0430 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u044F",aria_label_submenu_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u043D\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",aria_label_submenu_traffic_saving:"\u0420\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",aria_label_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",aria_label_context_menu:"\u041A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_autoplay:"\u0410\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",end_screen_next_video:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",end_screen_recommended_video:"\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",slow_video_notification_button:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \xAB\u0410\u0432\u0442\u043E\xBB",slow_video_notification_force_description:`\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E,
51
+ \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u043E \u043D\u0430\xA0\xAB\u0410\u0432\u0442\u043E\xBB`,slow_video_notification_suggest_description:`\u0412\u0438\u0434\u0435\u043E \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E -
52
+ \u043F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0430 \xAB\u0410\u0432\u0442\u043E\xBB`,double_forward_label:"2x",preview_track_notification_text:"\u041F\u043E\u0442\u044F\u043D\u0438\u0442\u0435 \u0432\u0432\u0435\u0440\u0445 \u0434\u043B\u044F \u0442\u043E\u0447\u043D\u043E\u0439 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0438",preview_track_close_tooltip:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u0440\u0435\u0436\u0438\u043C\u0430 \u0442\u043E\u0447\u043D\u043E\u0439 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0438"},a0=v$;var m$={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\xA0at\xA0lower quality",quality_applience:"You can\xA0{action} the\xA0default quality",quality_applience_action:"change",default_quality_for_any_video:"Quality for\xA0all videos",menu_quality:"Quality",menu_playback_rate:"Playback rate",menu_traffic_saving:"Data saving",menu_report:"Report a problem",menu_pip:"Picture in picture",menu_pip_close:"Expand video",menu_copy_video_link:"Copy video link",menu_copy_video_link_with_timestamp:"Copy link with timestamp",menu_video_rotate:"Rotate",menu_video_loop_on:"Enable loop",menu_video_loop_off:"Disable loop",menu_chromecast:"Chromecast stream",menu_copy_debug:"Copy debug info",menu_save_debug:"Save debug info",menu_debug_overlay:"Tech stats",menu_copy_embed_code:"Copy embed code",menu_audio_languages:"Audio track",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"Audio track {index}",pip_dummy_title:"Video plays in picture-in-picture mode",submenu_quality:"Quality",submenu_playback_rate:"Playback rate",submenu_traffic_saving:"Data saving",submenu_settings:"Settings",submenu_audio_languages:"Audio track",playing_ads:"Ads {timeleft}",skip_ads_after:"Skip ads",skip_ads_now:"Skip {time}s",visit_advertiser:"Visit site",aria_timeline:"Time scale slider",aria_timeline_value:"{position} out of {duration}",doubletap_seek_step:"{seconds} seconds",playback_rate_1:"Normal",playback_rate:"{multiplier}x",video360:"spherical video",subtitles_caption:"Subtitles",subtitles_auto:"{language} (Auto-generated)",subtitles_off:"Off",subtitles_auto_caption:"Auto subtitles",subtitles_turn_on:"Turn on subtitles",subtitles_turn_off:"Turn off subtitles",traffic_saving_off:"Off",traffic_saving_on:"On",traffic_saving_helper_text:"When turned on the video quality will be reduced to save data",tooltip_button_disabled:"Button disabled",tooltip_previous:"Previous video",tooltip_restart:"Watch again",tooltip_play:"Play",tooltip_pause:"Pause",tooltip_next:"Next video",tooltip_interactive_go_back:"Back to previous chapter",tooltip_interactive_go_back_disabled:"Interactive history unavailable",tooltip_interactive_go_back_disabled_first:"You're watching the first chapter",tooltip_interactive_go_back_disabled_limit:"Go-back limit exceeded",tooltip_chapter_without_interactive:"This chapter has no interactive segment",tooltip_interactive_of_chapter_completed:"Chapter's interactive segments already watched",tooltip_interactive_seek:"Go to interactive",tooltip_interactive_graph_off:"Show interactive graph",tooltip_interactive_graph_on:"Hide interactive graph",tooltip_live:"Go to the live edge",tooltip_episodes:"Episodes",tooltip_volume:"Volume off",tooltip_volume_muted:"Turn volume on",tooltip_sound_unavailable:"Sound unavailable",tooltip_subtitles_off:"Turn subtitles on",tooltip_subtitles_on:"Turn subtitles off",tooltip_settings_off:"Open settings",tooltip_settings_on:"Close settings",tooltip_fullscreen_off:"Enter fullscreen mode",tooltip_fullscreen_on:"Exit fullscreen mode",tooltip_chromecast_off:"Turn Chromecast on",tooltip_chromecast_on:"Turn Chromecast off",tooltip_episode_finished:"You have already viewed interactive episode",tooltip_episode_unfinished:"Interactive episode not finished",tooltip_disabled_when_interactive:"Interactive video in progress",tooltip_disabled_when_graph_on:"Button is disabled when graph is opened",tooltip_interactive_interaction_time_indicator:"Press the interactive element",tooltip_vk_logo:"Open in VK Video",tooltip_vk_video_logo:"Go to VK Video",tooltip_autoplay_off:"Turn autoplay on",tooltip_autoplay_on:"Turn autoplay off",tooltip_context_menu_open:"Open context menu",tooltip_context_menu_close:"Close context menu",download_video_caption:"Download video",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"Keyboard shortcuts",hotkey_map_modal_close_btn_text:"Close",hotkey_map_group_title_common:"Common",hotkey_map_group_title_playback:"Playback",hotkey_map_group_title_subtitles:"Subtitles",hotkey_map_group_title_episodes:"Episodes",hotkey_map_item_mute_description:"Toggle mute",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"Increase volume",hotkey_map_item_volume_up_value:"Arrow up",hotkey_map_item_volume_down_description:"Decrease volume",hotkey_map_item_volume_down_value:"Arrow down",hotkey_map_item_pip_description:"Toggle miniplayer",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"Toggle full screen",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"Hide or show context menu",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"Hide or show list of hotkeys",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"Toggle play/pause",hotkey_map_item_play_toggle_value:"Space (or k)",hotkey_map_item_seek_backward_description:"Rewind 10 seconds",hotkey_map_item_seek_backward_value:"Arrow left (or j)",hotkey_map_item_seek_forward_description:"Forward 10 seconds",hotkey_map_item_seek_forward_value:"Arrow right (or l)",hotkey_map_item_fast_seek_backward_description:"Fast rewind",hotkey_map_item_fast_seek_backward_value:"Shift + Arrow left",hotkey_map_item_fast_seek_forward_description:"Fast forward",hotkey_map_item_fast_seek_forward_value:"Shift + Arrow right",hotkey_map_item_rate_down_description:"Decrease playback rate",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"Increase playback rate",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"Previous frame (while paused)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"Next frame (while paused)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"Seek to specific point in the video (7 advances to 70% of duration)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"Toggle captions ON/OFF",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"Seek to previous episode",hotkey_map_item_prev_episode_pc_value:"Ctrl + Arrow left",hotkey_map_item_prev_episode_mac_value:"Option + Arrow left",hotkey_map_item_next_episode_description:"Seek to next episode",hotkey_map_item_next_episode_pc_value:"Ctrl + Arrow right",hotkey_map_item_next_episode_mac_value:"Option + Arrow right",hotkey_map_item_next_video_description:"Next video",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"Previous video",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"d",waiting_live_hour_value:"h",waiting_live_minute_value:"min",waiting_live_second_value:"sec",waiting_live_colon:":",waiting_live_upcoming_title:"The broadcast hasn't started yet",waiting_live_timer_title:"Before the start of the broadcast left",waiting_live_recover_title:"The broadcast has been paused - it will resume when the author returns",waiting_record_title:"The broadcast completed - recording will appear later",aria_label_video_player:"Video player",aria_label_spherical_control:"Spherical video control. Use the arrow keys to pan the video.",aria_label_debug_panel:"Technical information area, take a screenshot for technical support",aria_label_new_tab_alert:"Opens in a new tab.",aria_label_menu_quality:"Quality: {actual}",aria_label_menu_audio_languages:"Audio language: {actual}",aria_label_menu_rate:"Rate: {actual}",aria_label_menu_subtitle:"Subtitles: {actual}",aria_label_menu_download:"Download video",aria_label_menu_debug_overlay:"Display of technical information",aria_label_menu_rotate:"Rotate video 90 degrees",aria_label_menu_loop:"Toggle loop",aria_label_submenu_back:"Return to settings menu",aria_label_submenu_traffic_saving:"Data saving mode",aria_label_settings:"Settings",aria_label_context_menu:"Context menu",aria_label_autoplay:"Autoplay",end_screen_next_video:"Next video",end_screen_recommended_video:"Recommended video",slow_video_notification_button:"Select Auto quality",slow_video_notification_force_description:`The video is loading too slowly,
53
+ so\xA0the\xA0quality was changed to\xA0Auto`,slow_video_notification_suggest_description:`The video is loading too slowly.
54
+ Try switching the\xA0quality to\xA0Auto.`,double_forward_label:"2x",preview_track_notification_text:"pull up to open precise rewind",preview_track_close_tooltip:"dismiss precise rewind"},l0=m$;var As=new Map;As.set(Dl.InterfaceLanguage.EN,l0);As.set(Dl.InterfaceLanguage.RU,a0);var d0=new Map,Xf=({language:t,pack:e,fallback:i})=>{if(As.has(t)){let o=As.get(t);As.set(t,Q(Q({},o),e))}else As.set(t,e);d0.set(t,i)},Jf=t=>As.has(t),ev=(t,e,i,o)=>{var l;let r=As.get(t),s=r==null?void 0:r[e];if((0,Dl.isNullable)(s)){let d=(l=d0.get(t))!=null?l:o,a=d?As.get(d):void 0;s=a==null?void 0:a[e]}return(0,Dl.isNullable)(s)?e+Object.values(i!=null?i:{}).join(" "):i?s.replaceAll(/{(\w+?)}/g,(d,a)=>{var u;return(u=i[a])!=null?u:""}):s},Y=(t,e)=>{let{interfaceLanguage$:i}=$e(),o=be(i),r=Nt();return ev(o,t,e,r.defaultLanguage)};var AL=require("@vkontakte/videoplayer-core/es2015");var Bl;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(Bl||(Bl={}));var g$=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,h$=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,_$=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Fu="?",b$="X-Sentry-Auth",$$=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function y$(t){if(!t.stack)return null;let e=[],i=t.stack.split(`
55
+ `),o,r;for(let s=0;s<i.length;++s){if(o=g$.exec(i[s]))r={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||Fu,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=_$.exec(i[s]))r={filename:o[2],function:o[1]||Fu,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=h$.exec(i[s]))s===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),r={filename:o[3],function:o[1]||Fu,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!r.function&&r.lineno&&(r.function=Fu),e.push(r)}return e.length?{value:c0(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function c0(t){return(t&&t.message||"No error message").split(`
56
+ `).filter(i=>!!i)[0]}function x$(t){try{let e=y$(t);if(e)return e}catch(e){}return{value:c0(t),type:t&&t.name,stacktrace:{frames:[]}}}function w$(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var Uu=class{constructor(e){if(e&&e.dsn){let i=$$.exec(e.dsn),o=i?i.slice(1):[],r=o[5].split("/"),s=r.slice(0,-1).join("/");this.apiUrl=o[0]+"://"+o[3]+(o[4]?":"+o[4]:"")+(s?"/"+s:"")+"/api/"+r.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+o[1]+(o[2]?",sentry_secret="+o[2]:"")}this.environment=e&&e.environment}prepare(e){return Gt(Q({},this.getRequestBlank()),{exception:{values:[x$(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(b$,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:w$(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function u0(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function S$(){return window}var zu=class t extends Uu{constructor(e,i=S$()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:r=u=>u,beforeBreadcrumb:s=u=>u,blacklistUrls:l=[],ignoreErrors:d=[],release:a=void 0}=this.options||{};this.plugins=o.map(u=>new u(this)),this.beforeSend=r,this.beforeBreadcrumb=s,this.blacklistUrls=l,this.ignoreErrors=d,this.release=a}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",Q({},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",Q({},e)),this}setUser(e){return this.setKeyState("user",Q({},e)),this}clone(){let e=new t(Gt(Q({},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:[Q({timestamp:Date.now()/1e3},this.beforeBreadcrumb(e))]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send(Gt(Q({},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=>u0(i,o))):!1}getRequestBlank(){return Q(Gt(Q({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(Q({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=>u0(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],s=Array.isArray(r)?r:null,l=e[o],d=Array.isArray(l)?l:null;return Gt(Q({},i),{[o]:s||d?[...s||[],...d||[]]:Q(Q({},typeof r!="string"?r:{}),typeof l!="string"?l:{})})},this._state)}setKeyState(e,i){this._state[e]=i}};var Ra=require("@vkontakte/videoplayer-shared/es2015");var Wu=null,Oa=class{constructor(e,i,o={}){!Wu&&e.dsn&&(this.sentryClient=new zu({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new Ra.Subscription,this.options=e,this.context=o,Wu=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),Wu=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:s,options:l}=this,{sampleRate:d=0,whiteErrorIdList:a,whiteErrorCategoryList:u=[],blackErrorIdList:f,blackErrorCategoryList:v}=l,{errorType:p,category:x}=i;if((0,Ra.isNonNullable)(x)&&v.includes(x)||(0,Ra.isNonNullable)(p)&&f.includes(p))return;if(Math.random()<=d||(0,Ra.isNonNullable)(x)&&u.includes(x)||(0,Ra.isNonNullable)(p)&&a.includes(p)){Object.keys(i).length&&r.setTags(Q({version:this.version},i)),(Object.keys(s).length||Object.keys(o).length)&&r.setExtras(Q(Q({},s),o));try{p&&r.captureMessage(p,i.fatal?Bl.fatal:Bl.error),r.report(e)}catch(y){console.error(y)}}}static getInstance(){return Wu}};var es=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(es||{});var Ku=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()},qu=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),p0=(t,e)=>e?!0:t.fullscreenEnabled||!!t.webkitFullscreenEnabled||!!t.mozFullscreenEnabled||!!t.msFullscreenEnabled,f0=t=>{let e=t;e!=null&&e.webkitExitFullscreen&&(e==null||e.webkitExitFullscreen())},Gd=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},Xs=()=>!!Gd(),Qu=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},ju=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},v0=t=>{let e=window.screen;return(r=>xt(null,null,function*(){return e.orientation?e.orientation.lock(r):e.mozLockOrientation?e.mozLockOrientation(r):e.msLockOrientation?e.msLockOrientation(r):Promise.reject()}))(((r={width:0,height:0})=>r.width<=r.height?"portrait":"landscape")(t))};var tv=require("@vkontakte/videoplayer-core/es2015"),m0=()=>({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:tv.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:tv.clientChecker.device.isApple?Y("hotkey_map_item_next_episode_mac_value"):Y("hotkey_map_item_next_episode_pc_value")}]}]});var Hl=require("@vkontakte/videoplayer-shared/es2015");var Na=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,Hl.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new Hl.ValueSubject(!1),isEnabled$:new Hl.ValueSubject(!1),type:0};this.info.isEnabled$=new Hl.ValueSubject(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.info.isActive$.getValue()}setContext(e){this.svelteContext=e}revealPictureInPicture(){return xt(this,null,function*(){this.isRequested&&(this.removeEventHandlers(),yield this.request(),this.addEventHandlers())})}request(){return xt(this,null,function*(){var e;if(!(!this.isSupported()||this.isActive()))try{yield(e=this.videoElement)==null?void 0:e.requestPictureInPicture()}catch(i){this.isRequested=!1}})}exit(){return xt(this,null,function*(){!this.isSupported()||!this.isActive()||(yield document.exitPictureInPicture())})}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){var e;this.isSupported()&&(this.removeEventHandlers(),this.videoElement=(e=this.playerContainer)==null?void 0:e.querySelector("video"),this.addEventHandlers())}addEventHandlers(){var e,i;(e=this.videoElement)==null||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}setExternalEventHandlers(e){this.externalEventHandlers=Q({},e)}removeEventHandlers(){var e,i;(e=this.videoElement)==null||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}dispose(){return xt(this,null,function*(){this.removeEventHandlers(),yield this.exit(),this.info.isActive$.next(!1),this.isRequested=!1})}onEnterPictureInPicture(e){var r,s;let o=e.pictureInPictureWindow;o&&(this.info.isActive$.next(!0),this.isRequested=!0,o.addEventListener("resize",this.eventHandlers.resize),(s=(r=this.externalEventHandlers).enterpictureinpicture)==null||s.call(r,e))}onLeavePictureInPicture(e){var r,s;let o=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,this.eventHandlers.resize.cancel(),o==null||o.removeEventListener("resize",this.eventHandlers.resize),(s=(r=this.externalEventHandlers).leavepictureinpicture)==null||s.call(r,e)}onResize(e){var i,o;(o=(i=this.externalEventHandlers).resize)==null||o.call(i,e)}setEnabled(e){this.info.isEnabled$.next(e)}};function Da(t){return t instanceof Na}var Fl=require("@vkontakte/videoplayer-shared/es2015");uh();function ov(t,e){H(e,!1);let i=$e();Ht(()=>{i.getAdmanWrapper().startPostroll()}),Jo(),F()}var g0=require("@vkontakte/videoplayer-shared/es2015");var C$=(t,e,i)=>{t.stopPropagation(),n(e)&&i()()},T$=M('<div class="skip svelte-1k4i25s"> <svg class="icon svelte-1k4i25s" width="7" height="12" viewBox="0 0 7 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.263627 0.263605C-0.0878444 0.615078 -0.0878429 1.18493 0.26363 1.5364L4.72723 5.99998L0.263627 10.4636C-0.0878444 10.8151 -0.0878429 11.3849 0.26363 11.7364C0.615103 12.0879 1.18495 12.0879 1.53642 11.7364L6.63642 6.63637C6.98789 6.2849 6.98789 5.71505 6.63642 5.36358L1.53642 0.263602C1.18495 -0.0878686 0.615098 -0.0878673 0.263627 0.263605Z"></path></svg></div>'),E$=M("<div><!></div>"),I$={hash:"svelte-1k4i25s",code:".container.svelte-1k4i25s {position:absolute;top:14px;right:16px;padding:6px 10px;font-size:13px;color:#fff;background:rgba(0, 0, 0, 0.56);border-radius:6px;transition:color .2s;}.container-mobile.svelte-1k4i25s {bottom:14px;top:unset;font-size:15px;max-width:142px;}.icon.svelte-1k4i25s {margin-left:4px;position:relative;top:2px;fill:var(--white);transition:fill .2s;}.skip.svelte-1k4i25s {width:86px;}.skippable.svelte-1k4i25s {cursor:pointer;color:var(--white);}.skippable.svelte-1k4i25s:hover {color:rgba(255, 255, 255, .75);}.skippable.svelte-1k4i25s:hover .icon:where(.svelte-1k4i25s) {fill:rgba(255, 255, 255, .75);}"};function nv(t,e){H(e,!0),z(t,I$);let[i,o]=Ne(),r=()=>S(u,"$isMobile",i),s=h(e,"position",3,0),l=h(e,"secondsToWatchBeforeSkip",3,0),d=h(e,"skipAd",3,g0.noop),u=$e().ui.isMobile,f=m(()=>s()>0&&s()>=l());var v=E$();let p;v.__click=[C$,f,d];var x=_(v);{var w=C=>{var T=T$(),E=_(T);Ie(),g(T),D(O=>me(E,`${O!=null?O:""} `),[()=>Y("skip_ads_now")]),$(C,T)},y=C=>{var T=us();D(E=>me(T,E),[()=>Y("skip_ads_after",{time:Math.ceil(l()-s()).toFixed(0)})]),$(C,T)};R(x,C=>{n(f)?C(w):C(y,!1)})}g(v),D(C=>p=re(v,1,"container svelte-1k4i25s",null,p,C),[()=>({"container-mobile":r(),skippable:n(f)})]),$(t,v),F(),o()}ct(["click"]);var k$=M('<button class="go-to-site svelte-1dzpmjp"> </button>'),A$={hash:"svelte-1dzpmjp",code:"button.go-to-site.svelte-1dzpmjp {position:absolute;pointer-events:none;bottom:14px;left:16px;font-size:15px;background:white;border:none;padding:6px 10px;border-radius:6px;color:black;}"};function rv(t,e){H(e,!1),z(t,A$),Jo();var i=k$(),o=_(i,!0);g(i),D(r=>me(o,r),[()=>Y("visit_advertiser")],En),$(t,i),F()}var P$=M('<div class="top-gradient-mobile svelte-354ajf"></div>'),M$=M('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),L$={hash:"svelte-354ajf",code:`.container.svelte-354ajf {width:100%;height:100%;}.top-gradient-mobile.svelte-354ajf {position:absolute;width:100%;height:80px;top:0;left:0;pointer-events:none;background:linear-gradient(
57
+ 360deg,
58
+ rgba(0, 0, 0, 0) 0%,
59
+ rgba(0, 0, 0, 0.05) 12%,
60
+ rgba(0, 0, 0, 0.15) 25%,
61
+ rgba(0, 0, 0, 0.3) 45%,
62
+ rgba(0, 0, 0, 0.4) 57%,
63
+ rgba(0, 0, 0, 0.5) 77%,
64
+ rgba(0, 0, 0, 0.55) 88%,
65
+ rgba(0, 0, 0, 0.65) 100%
66
+ );}`};function Zd(t,e){H(e,!0),z(t,L$);let[i,o]=Ne(),r=()=>S(B,"$canSkipAd",i),s=()=>S(Z,"$adPlaybackState",i),l=()=>S(E,"$isMobile",i),d=()=>S(U,"$adPosition",i),a=()=>S(X,"$secondsToWatchBeforeSkipAd",i),u=()=>S(T,"$isVideoEnded",i),f=h(e,"adsSlotId",3,void 0),v=h(e,"adsParams",3,void 0),p=h(e,"adsAutoplayParam",3,void 0),x=h(e,"duration",3,0),w=h(e,"adsExternalApi",3,void 0),y=$e(),C=Nt(),T=y.state.isEnded$,E=y.ui.isMobile,O=C.ads.isMobileGoToSiteButton,A=j(void 0),I=j(void 0),L=!1,Z=y.ads.playbackState,B=y.ads.canSkip,U=y.ads.position,X=y.ads.secondsToWatchBeforeSkip,de=m(()=>r()&&s()!=="inactive"),K=m(()=>l()&&s()!=="inactive"&&O);Ht(()=>{let k=y.getAdmanWrapper();if(Fl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[(0,Fl.now)(),f()]}),!f()){k.onAdmanLoadingError();return}let Qe=()=>{var Ce;let{width:Fe,height:Ge}=be(y.ui.playerSize),_e=be(y.ui.isFullscreen),ie=(Ce=p())!=null?Ce:be(y.ui.isAutoplay),Se=C.ads.paramsOverride;return{width:Fe,height:Ge,isFullscreen:_e,isAutoplay:ie,adsContainer:n(A),adsVideoElement:n(I),slotId:f(),params:v(),paramsOverride:Se,duration:x(),externalApi:w()}},Ve=Fe=>xt(null,null,function*(){Fe&&(yield _o());let Ge=Qe();yield k.initAdman(Ge),L=!0}),q=new AbortController,oe=()=>{q.abort()};return window.AdmanHTML?Ve(!0).catch(()=>{k.onAdmanLoadingError()}):k.loadAdman(q.signal).then(()=>Ve(!1)).catch(()=>{k.onAdmanLoadingError()}),()=>{Fl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[(0,Fl.now)(),f()]}),!L&&oe()}});var ue=M$(),J=_(ue);{var ge=k=>{var Qe=P$();$(k,Qe)};R(J,k=>{l()&&k(ge)})}var se=P(J,2);at(se,k=>N(I,k),()=>n(I));var ce=P(se,2);{var Le=k=>{nv(k,{get position(){return d()},get secondsToWatchBeforeSkip(){return a()},get skipAd(){return y.actions.internal.skipAd}})};R(ce,k=>{n(de)&&k(Le)})}var we=P(ce,2);{var te=k=>{ov(k,{})};R(we,k=>{u()&&k(te)})}var De=P(we,2);{var fe=k=>{rv(k,{})};R(De,k=>{n(K)&&k(fe)})}g(ue),at(ue,k=>N(A,k),()=>n(A)),$(t,ue),F(),o()}var en=t=>{if(!isFinite(t))return"00:00";let e=Math.round(t),i=Math.floor(e/(60*60));e-=i*3600;let o=Math.floor(e/60);e-=o*60;let r=[o,e].map(s=>String(s).padStart(2,"0")).join(":");return i>0&&(r=`${i}:${r}`),r};var V$=ke('<svg><!><path fill="none" stroke="var(--btn-color, #fff)" stroke-width="2" d="M6.41 1A6.46 6.46 0 0 0 3 1.55 3.5 3.5 0 0 0 1.55 3 6.46 6.46 0 0 0 1 6.41v7.18A6.46 6.46 0 0 0 1.55 17 3.5 3.5 0 0 0 3 18.45a6.46 6.46 0 0 0 3.41.55h29.18a6.46 6.46 0 0 0 3.41-.55A3.5 3.5 0 0 0 40.45 17a6.46 6.46 0 0 0 .55-3.41V6.41A6.46 6.46 0 0 0 40.45 3 3.5 3.5 0 0 0 39 1.55 6.46 6.46 0 0 0 35.59 1z"></path><path fill="var(--btn-color, #f0f2f5)" fill-rule="evenodd" d="M8 5a1 1 0 0 1 1 1v7h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-.77v-.11A.5.5 0 0 1 7 14V6a1 1 0 0 1 .88-1zm8 0a1 1 0 0 1 1 1v8a1 1 0 0 1-.88 1H16a1 1 0 0 1-1-1V6a1 1 0 0 1 .88-1zm18 0a1 1 0 0 1 1 .88V6a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V10a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-.77v-.11a.5.5 0 0 1 0-.12V6a1 1 0 0 1 .56-.9A1 1 0 0 1 30 5zm-8 0a1 1 0 0 1 1 1v.1a.9.9 0 0 1-.11.35l-2.47 7.57a1.48 1.48 0 0 1-1.32.98h-.2a1.48 1.48 0 0 1-1.31-.95l-2.47-7.57a.9.9 0 0 1-.12-.36V6a1 1 0 0 1 .88-1H20a1 1 0 0 1 1 1v-.1l2 6.4 2-6.4a1 1 0 0 1 1-.9"></path></svg>');function sv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=V$();Me(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20","aria-hidden":"true","data-testid":"live-icon",role:"img"},i));var r=_(o);ye(r,()=>{var s;return(s=e.children)!=null?s:pe}),Ie(2),g(o),$(t,o)}var R$=ke('<svg><!><rect width="42" height="20" fill="var(--timeline-slider-filled-active-live-bg, #ff3347)" rx="5"></rect><path fill="#f2f3f5" fill-rule="evenodd" d="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.325 9.31-2.55-7.824a1 1 0 0 1-.117-.363L19 6.1h.005a1 1 0 1 1 1.99-.199L21 5.9l2 6.4 2-6.4h.005a1 1 0 0 1 1.99.2H27l-.008.023a1 1 0 0 1-.118.363l-2.55 7.824a1 1 0 0 1-.95.69h-.748a1 1 0 0 1-.95-.69z" clip-rule="evenodd"></path></svg>');function av(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=R$();Me(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20",fill:"none","aria-hidden":"true","data-testid":"live-active-icon",role:"img"},i));var r=_(o);ye(r,()=>{var s;return(s=e.children)!=null?s:pe}),Ie(2),g(o),$(t,o)}function Xd(t,e){let i=h(e,"isActive",3,!1);var o=He(),r=ve(o);{var s=d=>{av(d,{})},l=d=>{sv(d,{})};R(r,d=>{i()?d(s):d(l,!1)})}$(t,o)}var O$=M('<div class="equalizer svelte-1s15d2i"><div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div></div>'),N$=M('<div class="live-icon svelte-1s15d2i"><!></div>'),D$=M('<span class="text svelte-1s15d2i"> </span>'),B$=M("<div><!> <!></div>"),H$={hash:"svelte-1s15d2i",code:`.wrapper.svelte-1s15d2i {padding:2px 6px;white-space:nowrap;border-radius:4px;background-color:var(--black-alpha-40);transition:visibility var(--controls-transition-duration),
67
+ opacity var(--controls-transition-duration);}.wrapper.live.svelte-1s15d2i {font-size:0;line-height:20px;height:20px;border-radius:2px;background:var(--red);padding:0 7px;}.equalizer.svelte-1s15d2i {display:inline-block;vertical-align:middle;position:relative;width:10px;height:10px;margin-top:-4px;margin-right:4px;}.live.svelte-1s15d2i .equalizer:where(.svelte-1s15d2i) {margin-top:-2px;}.equalizer.svelte-1s15d2i .col:where(.svelte-1s15d2i) {width:2px;height:10px;margin-right:2px;background:var(--btn-color, --white);position:absolute;bottom:0;transform-origin:50% 100%;
68
+ animation: 1.5s infinite linear alternate;animation-play-state:paused;}.playing.svelte-1s15d2i .equalizer:where(.svelte-1s15d2i) .col:where(.svelte-1s15d2i) {animation-play-state:running;}.equalizer.svelte-1s15d2i .col:where(.svelte-1s15d2i):nth-child(1) {left:0;
69
+ animation-name: svelte-1s15d2i-thumb-timer-equalizer-col1;}.equalizer.svelte-1s15d2i .col:where(.svelte-1s15d2i):nth-child(2) {left:3px;
70
+ animation-name: svelte-1s15d2i-thumb-timer-equalizer-col2;}.equalizer.svelte-1s15d2i .col:where(.svelte-1s15d2i):nth-child(3) {left:6px;
71
+ animation-name: svelte-1s15d2i-thumb-timer-equalizer-col3;}.live-icon.svelte-1s15d2i {display:inline-block;vertical-align:middle;width:42px;height:20px;margin:0 -7px;}
72
+
73
+ @keyframes svelte-1s15d2i-thumb-timer-equalizer-col1 {
74
+ 0% {
75
+ transform: scaleY(0.1);
76
+ }
77
+
78
+ 25% {
79
+ transform: scaleY(0.8);
80
+ }
81
+
82
+ 50% {
83
+ transform: scaleY(0.4);
84
+ }
85
+
86
+ 75% {
87
+ transform: scaleY(0.6);
88
+ }
89
+
90
+ 100% {
91
+ transform: scaleY(0.1);
92
+ }
93
+ }
94
+
95
+ @keyframes svelte-1s15d2i-thumb-timer-equalizer-col2 {
96
+ 0% {
97
+ transform: scaleY(1);
98
+ }
99
+
100
+ 25% {
101
+ transform: scaleY(0.3);
102
+ }
103
+
104
+ 50% {
105
+ transform: scaleY(0.9);
106
+ }
107
+
108
+ 75% {
109
+ transform: scaleY(0.6);
110
+ }
111
+
112
+ 100% {
113
+ transform: scaleY(1);
114
+ }
115
+ }
116
+
117
+ @keyframes svelte-1s15d2i-thumb-timer-equalizer-col3 {
118
+ 0% {
119
+ transform: scaleY(0.6);
120
+ }
121
+
122
+ 25% {
123
+ transform: scaleY(0.9);
124
+ }
125
+
126
+ 50% {
127
+ transform: scaleY(0.1);
128
+ }
129
+
130
+ 75% {
131
+ transform: scaleY(0.9);
132
+ }
133
+
134
+ 100% {
135
+ transform: scaleY(0.6);
136
+ }
137
+ }.text.svelte-1s15d2i {font-size:13px;line-height:16px;color:var(--controls-time);font-weight:500;}`};function Jd(t,e){z(t,H$);let i=h(e,"withEqualizer",3,!1),o=h(e,"isLive",3,!1),r=h(e,"isPlaying",3,!1);var s=B$();let l;var d=_(s);{var a=p=>{var x=O$();$(p,x)};R(d,p=>{i()&&p(a)})}var u=P(d,2);{var f=p=>{var x=N$(),w=_(x);Xd(w,{isActive:!0}),g(x),$(p,x)},v=p=>{var x=D$(),w=_(x,!0);g(x),D(()=>me(w,e.time)),$(p,x)};R(u,p=>{o()?p(f):p(v,!1)})}g(s),D(p=>l=re(s,1,"wrapper svelte-1s15d2i",null,l,p),[()=>({live:o(),playing:r()})]),$(t,s)}var Ul=(t,e,i)=>{let o;return()=>(window.clearTimeout(o),t?o=window.setTimeout(()=>e.set(!0),i):e.set(!1),()=>window.clearTimeout(o))};var F$=M('<div role="timer" data-testid="thumb-timer"><!></div>'),U$={hash:"svelte-c6gowj",code:`.thumb-timer.svelte-c6gowj {position:absolute;z-index:var(--thumb-timer-z-index);bottom:0;right:0;margin:8px;transition:visibility var(--controls-transition-duration),
138
+ opacity var(--controls-transition-duration);}`};function ec(t,e){H(e,!0),z(t,U$);let[i,o]=Ne(),r=()=>S(f,"$disabled",i),s=h(e,"isHidden",3,!1),l=h(e,"isLive",3,!1),d=h(e,"isPlaying",3,!1),a=Nt(),u=m(()=>en(e.duration-e.position)),f=le(!1);var v=F$();let p;var x=_(v);Jd(x,{get time(){return n(u)},get isLive(){return l()},get isPlaying(){return d()},withEqualizer:!0}),g(v),Is(v,()=>Ul(s()&&a.features.usePerformanceFix,f,a.disableInvisibleComponentsTimeout)),D(w=>p=re(v,1,"thumb-timer svelte-c6gowj",null,p,w),[()=>({"out-of-flow":r(),hidden:s()})]),$(t,v),F(),o()}var zl=t=>{if(!navigator.clipboard){h0(t);return}navigator.clipboard.writeText(t).catch(()=>h0(t))};function h0(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 T0=require("@vkontakte/videoplayer-core/es2015");var dv=require("@vkontakte/videoplayer-core/es2015");var lv="focus-hidden";var Tr=t=>{t.stopPropagation(),t.preventDefault()},cv=t=>{var e,i;(i=(e=t.parentNode)==null?void 0:e.firstElementChild)==null||i.classList.remove(lv)},W$=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},K$=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},q$=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},Q$=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},_0=t=>t.code==="Escape",j$=t=>t.code==="ArrowLeft",tc=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},b0=t=>{q$(t)?(Tr(t),K$(t.target)):Q$(t)&&(Tr(t),W$(t.target))},ta=t=>!dv.clientChecker.device.isAndroid&&(t==null?void 0:t.detail)===0||dv.clientChecker.device.isAndroid&&(t==null?void 0:t.pointerType)==="",Wl=(t,e,i)=>xt(null,null,function*(){yield _o(),t&&!t.classList.contains("opened")&&!e&&be(i)&&(yield _o(),i.set(!1),t.focus())}),$0=(t,e,i)=>xt(null,null,function*(){yield _o(),t&&!e&&be(i)&&(i.set(!1),t.focus())}),ic=(t,e,i,o=!1)=>xt(null,null,function*(){if(yield _o(),!!t&&e&&!o){let s=t.children[0];s==null||s.classList.toggle(lv,!i),s==null||s.focus()}}),y0=(t,e)=>xt(null,null,function*(){setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)}),Gu=(t,e)=>{b0(t),cv(t.target),_0(t)&&(Tr(t),e())},Yu=(t,e)=>xt(null,null,function*(){tc(t,["ArrowRight"])&&(Tr(t),e())}),x0=(t,e,i)=>xt(null,null,function*(){if(b0(t),j$(t)){Tr(t),e();return}_0(t)&&(Tr(t),i())}),Kl=(t,e)=>{tc(t)&&(Tr(t),e())},w0=(t,e,i)=>{if(tc(t))Tr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),Tr(t);return}o==="ArrowRight"&&!e&&(i(!0),Tr(t))}},S0=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,r=e.top+i;return{right:o,bottom:r}},C0=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 Fa=require("@vkontakte/videoplayer-shared/es2015");var ts={"copy-link":100,"copy-link-timestamp":200,"copy-embed-code":300,pip:400,"video-loop":500,rotate:600,report:700,"save-debug":800,"save-trace":900,"debug-info":1e3};var uv=require("@vkontakte/videoplayer-shared/es2015");var Y$=(t,e)=>{Kl(t,()=>e())},Z$=M('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),X$={hash:"svelte-1hm4mm9",code:".item.svelte-1hm4mm9 {padding:8px 16px;cursor:pointer;position:relative;display:block;color:rgba(255, 255, 255, 0.72);font-size:13px;line-height:18px;letter-spacing:-0.14px;white-space:nowrap;}.item.svelte-1hm4mm9:hover {background:rgba(66, 66, 66, .5);color:var(--white);}"};function pv(t,e){H(e,!0),z(t,X$);let i=h(e,"onClick",3,uv.noop),o=h(e,"closeContextMenu",3,uv.noop),r=d=>{d==null||d.stopPropagation(),i()(),o()()};var s=Z$();s.__click=r,s.__keydown=[Y$,r];var l=_(s,!0);g(s),D(()=>{var d;Ke(s,"aria-label",(d=e.ariaLabel)!=null?d:e.label),Ke(s,"data-testid",e.id),me(l,e.label)}),$(t,s),F()}ct(["click","keydown"]);var Ha=(t,e)=>t.weight-e.weight;var ql=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(ql||{});var J$=(t,e)=>{Gu(t,e)},e2=t=>{t.preventDefault()},t2=M('<ul role="menu" class="svelte-1p5ukkp"></ul>'),i2={hash:"svelte-1p5ukkp",code:"ul.svelte-1p5ukkp {position:absolute;z-index:var(--context-menu-z-index);border-radius:8px;background:rgba(0, 0, 0, 0.72);transition:visibility .1s,opacity .1s;list-style:none;margin:0;padding:6px 0;max-height:100%;max-width:100%;overflow-x:hidden;overflow-y:auto;}"};function fv(t,e){H(e,!0),z(t,i2);let[i,o]=Ne(),r=()=>S(ge,"$playerPhase",i),s=()=>S(de,"$isLive$",i),l=()=>S(se,"$isPiPEnabled$",i),d=()=>S(X,"$chromecastState$",i),a=()=>S(ce,"$pictureInPictureApiIsActive$",i),u=()=>S(J,"$isLooped$",i),f=()=>S(K,"$positionExact$",i),v=()=>S(Z,"$additionalContextMenuItems$",i),p=h(e,"visible",3,!1),x=h(e,"position",19,()=>({top:0,left:0})),w=h(e,"playerContainerRef",3,void 0),y=h(e,"menuElementRef",15,void 0),C=j(0),T=j(0),E=$e(),{pictureInPicture$:O}=To(),A=Nt(),I=E.ui.contextMenu.visible$,L=E.ui.debugPanelVisible,Z=E.ui.additionalContextMenuItems$,B=E.ui.t,U=E.actions.internal.togglePictureInPicture,X=E.state.chromecastState$,de=E.state.isLive$,K=E.state.positionExact$,ue=E.state.isInteractive,J=E.state.looped$,ge=E.playerPhase,{isEnabled$:se,isActive$:ce}=O,Le=m(()=>r()==="video"),we=m(()=>!!s()&&n(Le)),te=m(()=>["thumb","LiveWaitingStart","LiveWaitingRecover","LiveWaitingRecord"].includes(r())),De=m(()=>{var he;return A.features.copyVideoLink&&((he=E.callbacks)==null?void 0:he.onCopyVideoLink)}),fe=m(()=>n(De)&&!n(te)&&!ue&&!n(we)),k=m(()=>{var he;return!!((he=E.callbacks)!=null&&he.onCopyEmbedCodeClicked)}),Qe=m(()=>l()&&d()!==T0.ChromecastState.CONNECTED&&!ue&&n(Le)),Ve=m(()=>!ue&&!n(te)&&!n(we)),q=m(()=>A.features.videoRotate&&!ue&&!n(te)),oe=m(()=>A.showSupport&&!a()),Fe=m(()=>A.features.saveTraceInfoToFile),Ge=()=>{var he;I.set(!1),(he=e.returnFocus)==null||he.call(e)},_e=(he,lt)=>{if(!y()||!w())return;let st=y().getBoundingClientRect(),dt=w().getBoundingClientRect();N(C,he-dt.left),N(T,lt-dt.top),n(C)+st.width>dt.width&&N(C,dt.width-st.width),n(T)+st.height>dt.height&&N(T,dt.height-st.height),N(C,Math.max(n(C),0),!0),N(T,Math.max(n(T),0),!0)};We(()=>{xt(null,null,function*(){if(y()&&w()){yield _o();let{top:lt,left:st,bottom:dt,right:ri}=x(),ei=st!=null?st:0,fi=lt!=null?lt:0,Ei=y().getBoundingClientRect();(0,Fa.isNullable)(st)&&!(0,Fa.isNullable)(ri)&&(ei=ri-Ei.width),(0,Fa.isNullable)(lt)&&!(0,Fa.isNullable)(dt)&&(fi=dt-Ei.height),ei=Math.max(ei,0),fi=Math.max(fi,0),_e(ei,fi)}})});let ie=()=>{E.actions.internal.videoRotate()},Se=()=>{(0,Fa.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),E.actions.internal.reportProblem(),E.actions.internal.pause()},Ce=()=>{let he=E.actions.internal.getDebugTextData();if(A.features.saveDebugInfoToFile){let lt=new Blob([...he],{type:"plain/text"}),st=window.URL.createObjectURL(lt);Va(st,"vk_player_debug_info","txt")}else zl(E.actions.internal.getDebugTextData())},Be=()=>{let he=E.actions.internal.getTraceTextData(),lt=new Blob([...he],{type:"application/json"}),st=window.URL.createObjectURL(lt);Va(st,"vk_player_trace_info","json")},Ye=()=>{L.set(!0)},je=()=>xt(null,null,function*(){var he;try{U()}finally{(he=e.returnFocus)==null||he.call(e)}}),Ue=()=>{E.actions.internal.setLooped(!u())},Je=()=>{var he,lt;if(n(k)){let st=(lt=(he=E.callbacks)==null?void 0:he.onCopyEmbedCodeClicked)==null?void 0:lt.call(he);st&&zl(st)}},Ft=(he=!1)=>{var lt,st;if((lt=E.callbacks)!=null&&lt.onCopyVideoLink){let dt=(st=E.callbacks)==null?void 0:st.onCopyVideoLink(he,f());dt&&zl(dt)}},ot=m(()=>A.features.saveDebugInfoToFile?B("menu_save_debug"):B("menu_copy_debug")),zt=m(()=>n(De)?{id:"copy-link",weight:ts["copy-link"],label:B("menu_copy_video_link"),onClick:()=>Ft()}:void 0),Zt=m(()=>n(fe)?{id:"copy-link-timestamp",weight:ts["copy-link-timestamp"],label:B("menu_copy_video_link_with_timestamp"),onClick:()=>Ft(!0)}:void 0),Et=m(()=>n(k)?{id:"copy-embed-code",weight:ts["copy-embed-code"],label:B("menu_copy_embed_code"),onClick:Je}:void 0),oi=m(()=>n(Qe)?{id:"pip",weight:ts.pip,label:a()?B("menu_pip_close"):B("menu_pip"),onClick:je}:void 0),Rt=m(()=>n(Ve)?{id:"video-loop",weight:ts["video-loop"],label:u()?B("menu_video_loop_off"):B("menu_video_loop_on"),ariaLabel:B("aria_label_menu_loop"),onClick:Ue}:void 0),Ee=m(()=>n(q)?{id:"rotate",weight:ts.rotate,label:B("menu_video_rotate"),ariaLabel:B("aria_label_menu_rotate"),onClick:ie}:void 0),Pe=m(()=>n(oe)?{id:"report",weight:ts.report,label:B("menu_report"),ariaLabel:`${B("menu_report")}. ${B("aria_label_new_tab_alert")}`,onClick:Se}:void 0),ee=m(()=>({id:"save-debug",weight:ts["save-debug"],label:n(ot),onClick:Ce})),Te=m(()=>n(Fe)?{id:"save-trace",weight:ts["save-trace"],label:B("menu_save_debug"),onClick:Be}:void 0),ae=m(()=>({id:"debug-info",weight:ts["debug-info"],label:B("menu_debug_overlay"),ariaLabel:B("aria_label_menu_debug_overlay"),onClick:Ye})),$t=m(()=>[n(zt),n(Zt),n(Et),n(oi),n(Rt),n(Ee),n(Pe),n(ee),n(Te),n(ae),...v()].filter(he=>!!he).sort(Ha));var It=He(),ut=ve(It);{var Tt=he=>{var lt=t2();lt.__contextmenu=[e2],lt.__keydown=[J$,Ge],Ti(lt,21,()=>n($t),st=>st.id,(st,dt)=>{pv(st,{get id(){return n(dt).id},get label(){return n(dt).label},get ariaLabel(){return n(dt).ariaLabel},get onClick(){return n(dt).onClick},closeContextMenu:Ge})}),g(lt),at(lt,st=>y(st),()=>y()),D(()=>{var st,dt;return et(lt,`top: ${(st=n(T))!=null?st:""}px; left: ${(dt=n(C))!=null?dt:""}px;`)}),$(he,lt)};R(ut,he=>{p()&&he(Tt)})}$(t,It),F(),o()}ct(["contextmenu","keydown"]);var Zu=class{constructor(e){this.value=e,this.next=null}};var Ql=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new Zu(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 o2=M('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),n2={hash:"svelte-1ssl9eb",code:".container.svelte-1ssl9eb {display:inline-block;width:120px;height:16px;}canvas.svelte-1ssl9eb {transform:scale(1, -1);margin-top:2px;}"};function oc(t,e){H(e,!0),z(t,n2);let i=h(e,"values",19,()=>[]),o=j(void 0),r=j(null),s=16,l=120,d=60,a=l/d;Ht(()=>{n(o).width=l,n(o).height=s,N(r,n(o).getContext("2d"),!0)});function u(p,x,w,y,C){C===0&&(C=1),p.fillStyle="#fff",p.fillRect(x,w,y,C)}We(()=>{let p="";if(n(r)){let x=i()[0];for(let y=1;y<i().length;y++)i()[y]>x&&(x=i()[y]);n(r).clearRect(0,0,l,s);let w=d-1;for(let y=i().length-1;y>=0;y--){let C=w*a,T=x>0?s*(i()[y]/x):0;u(n(r),C,0,a,T),p=T+" "+p,w--}}});var f=o2(),v=_(f);at(v,p=>N(o,p),()=>n(o)),g(f),$(t,f),F()}var vv=require("@vkontakte/videoplayer-shared/es2015");var r2=(t,e)=>{t.stopPropagation(),vv.safeStorage.remove(zd),e.set(!1)},s2=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Video id</div> <span> </span></div>'),a2=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">VSID</div> <span> </span></div>'),l2=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Provider</div> <span> </span></div>'),d2=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Streams</div> <span> </span></div>'),c2=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Viewport</div> <span> </span></div>'),u2=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Video size</div> <span> </span></div>'),p2=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">CDN host</div> <span> </span></div>'),f2=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Volume</div> <span> </span></div>'),v2=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Position</div> <span> </span></div>'),m2=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Buffer</div> <span> </span></div>'),g2=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Live latency</div> <span> </span></div>'),h2=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Segment</div> <span> </span></div>'),_2=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">Network</div> <!> <span> </span></div>'),b2=M('<div class="svelte-lx3h69"><div class="svelte-lx3h69">V bitrate</div> <!> <span> </span></div>'),$2=M('<div role="region"><button class="close svelte-lx3h69" title="\u0437\u0430\u043A\u0440\u044B\u0442\u044C">[x]</button> <div class="content svelte-lx3h69"><div class="svelte-lx3h69"><div class="svelte-lx3h69">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="svelte-lx3h69"><div class="svelte-lx3h69">Dropped</div> <span> </span></div> <!> <!> <div class="svelte-lx3h69"><div class="svelte-lx3h69">FPS</div> <!> <span> </span></div></div></div>'),y2={hash:"svelte-lx3h69",code:".container.svelte-lx3h69 {background:rgba(28, 28, 28, 0.8);border-radius:4px;color:#fff;left:20px;position:absolute;z-index:var(--debug-panel-z-index);top:45px;min-width:160px;font-size:10px;text-align:left;user-select:text;}.container-mobile.svelte-lx3h69 {top:16px;left:16px;}button.close.svelte-lx3h69 {position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff;}.content.svelte-lx3h69 {padding:5px;}.content.svelte-lx3h69 > div:where(.svelte-lx3h69) > div:where(.svelte-lx3h69) {display:inline-block;text-align:right;width:60px;padding:0 5px;}"};function nc(t,e){H(e,!0),z(t,y2);let[i,o]=Ne(),r=()=>S(d,"$isMobile",i),s=$e(),l=s.ui.debugPanelVisible,d=s.ui.isMobile,a=j(li(s.actions.internal.getDebugPanelData())),u=s.actions.internal.getVideoElement(),f=j(0),v=j(0),p=j(0),x=new Ql(60),w=new Ql(60),y=new Ql(60),C=j(li([])),T=j(li([])),E=j(li([])),O=Y("aria_label_debug_panel");Ht(()=>{vv.safeStorage.set(zd,"true"),s.actions.internal.startLogging(),u&&(N(v,u.getVideoPlaybackQuality().droppedVideoFrames,!0),N(f,u.getVideoPlaybackQuality().totalVideoFrames,!0));let Ee=window.setInterval(()=>{N(a,s.actions.internal.getDebugPanelData(),!0)},500),Pe;return u&&(Pe=window.setInterval(()=>{if(u){N(v,u.getVideoPlaybackQuality().droppedVideoFrames,!0);let ee=u.getVideoPlaybackQuality().totalVideoFrames;N(p,ee-n(f)),N(f,ee,!0),x.push(n(p)),n(a).speed&&w.push(n(a).speed),n(a).bitrate&&y.push(n(a).bitrate),N(C,x.getValuesFromBottom(),!0),N(T,w.getValuesFromBottom(),!0),N(E,y.getValuesFromBottom(),!0)}},1e3)),()=>{s.actions.internal.stopLogging(),clearInterval(Ee),Pe&&clearInterval(Pe)}});var A=$2();let I;var L=_(A);L.__click=[r2,l];var Z=P(L,2),B=_(Z),U=P(_(B),2),X=_(U,!0);g(U),g(B);var de=P(B,2);{var K=Ee=>{var Pe=s2(),ee=P(_(Pe),2),Te=_(ee,!0);g(ee),g(Pe),D(()=>me(Te,n(a).id)),$(Ee,Pe)};R(de,Ee=>{n(a).id&&Ee(K)})}var ue=P(de,2);{var J=Ee=>{var Pe=a2(),ee=P(_(Pe),2),Te=_(ee,!0);g(ee),g(Pe),D(()=>me(Te,n(a).vsid)),$(Ee,Pe)};R(ue,Ee=>{n(a).vsid&&Ee(J)})}var ge=P(ue,2);{var se=Ee=>{var Pe=l2(),ee=P(_(Pe),2),Te=_(ee,!0);g(ee),g(Pe),D(()=>me(Te,n(a).provider)),$(Ee,Pe)};R(ge,Ee=>{n(a).provider&&Ee(se)})}var ce=P(ge,2);{var Le=Ee=>{var Pe=d2(),ee=P(_(Pe),2),Te=_(ee);g(ee),g(Pe),D(()=>{var ae,$t;return me(Te,`Video: ${(ae=n(a).videoCodec||"")!=null?ae:""} ${n(a).hdr?"(HDR)":""}
57
139
  &
58
- Audio: ${(Pt=n(s).audioCodec||"")!=null?Pt:""} ${n(s).audioLanguage?`(${n(s).audioLanguage})`:""}`)}),_(ye,be)};V(ne,ye=>{(n(s).videoCodec||n(s).audioCodec)&&ye(_e)})}var we=k(ne,2);{var Z=ye=>{var be=t0(),ee=k(T(be),2),xe=T(ee,!0);w(ee),w(be),B(()=>fe(xe,n(s).viewport)),_(ye,be)};V(we,ye=>{n(s).viewport&&ye(Z)})}var Oe=k(we,2);{var ue=ye=>{var be=i0(),ee=k(T(be),2),xe=T(ee,!0);w(ee),w(be),B(()=>fe(xe,n(s).videoSize)),_(ye,be)};V(Oe,ye=>{n(s).videoSize&&ye(ue)})}var A=k(Oe,2);{var Ke=ye=>{var be=o0(),ee=k(T(be),2),xe=T(ee,!0);w(ee),w(be),B(()=>fe(xe,n(s).cdn)),_(ye,be)};V(A,ye=>{n(s).cdn&&ye(Ke)})}var Ce=k(A,2);{var pe=ye=>{var be=n0(),ee=k(T(be),2),xe=T(ee);w(ee),w(be),B(()=>{var Pe;return fe(xe,`${(Pe=n(s).volume)!=null?Pe:""} %`)}),_(ye,be)};V(Ce,ye=>{n(s).volume&&ye(pe)})}var se=k(Ce,2);{var De=ye=>{var be=r0(),ee=k(T(be),2),xe=T(ee);w(ee),w(be),B(Pe=>fe(xe,`${Pe!=null?Pe:""} s`),[()=>n(s).position.toFixed(2)]),_(ye,be)};V(se,ye=>{n(s).position&&ye(De)})}var Be=k(se,2);{var J=ye=>{var be=s0(),ee=k(T(be),2),xe=T(ee);w(ee),w(be),B(Pe=>fe(xe,`${Pe!=null?Pe:""} s`),[()=>n(s).buffer.toFixed(2)]),_(ye,be)};V(Be,ye=>{n(s).buffer&&ye(J)})}var X=k(Be,2);{var Se=ye=>{var be=a0(),ee=k(T(be),2),xe=T(ee);w(ee),w(be),B(Pe=>fe(xe,`${Pe!=null?Pe:""} s`),[()=>n(s).liveLatency.toFixed(2)]),_(ye,be)};V(X,ye=>{n(s).liveLatency&&ye(Se)})}var Fe=k(X,2);{var qe=ye=>{var be=l0(),ee=k(T(be),2),xe=T(ee,!0);w(ee),w(be),B(Pe=>fe(xe,Pe),[()=>[{value:n(s).currentVideoSegmentLength,title:"Video:"},{value:n(s).currentAudioSegmentLength,title:"Audio:"}].filter(({value:Pe})=>Pe).map(({value:Pe,title:Pt})=>`${Pt} ${((Pe!=null?Pe:0)/1e3).toFixed(2)} s`).join(" & ")]),_(ye,be)};V(Fe,ye=>{(n(s).currentVideoSegmentLength||n(s).currentAudioSegmentLength)&&ye(qe)})}var Ye=k(Fe,2),Te=k(T(Ye),2),Le=T(Te);w(Te),w(Ye);var Ue=k(Ye,2);{var Nt=ye=>{var be=d0(),ee=k(T(be),2);cc(ee,{get values(){return n(C)}});var xe=k(ee,2),Pe=T(xe);w(xe),w(be),B(Pt=>fe(Pe,`${Pt!=null?Pt:""} Kbps`),[()=>n(s).speed.toFixed(2)]),_(ye,be)};V(Ue,ye=>{n(s).speed&&ye(Nt)})}var tt=k(Ue,2);{var Bt=ye=>{var be=c0(),ee=k(T(be),2);cc(ee,{get values(){return n(I)}});var xe=k(ee,2),Pe=T(xe);w(xe),w(be),B(Pt=>fe(Pe,`${Pt!=null?Pt:""} Kbps`),[()=>n(s).bitrate.toFixed(2)]),_(ye,be)};V(tt,ye=>{n(s).bitrate&&ye(Bt)})}var Gt=k(tt,2),Ct=k(T(Gt),2);cc(Ct,{get values(){return n(S)}});var ti=k(Ct,2),Ft=T(ti,!0);w(ti),w(Gt),w(D),w(E),B(ye=>{var be,ee;P=re(E,1,"container s-v",null,P,ye),We(E,"aria-label",R),fe(G,n(s).version),fe(Le,`${(be=n(m))!=null?be:""} / ${(ee=n(p))!=null?ee:""} frames`),fe(Ft,n(f))},[()=>({"container-mobile":r()})]),_(t,E),H(),o()}st(["click"]);var pb=require("@vkontakte/videoplayer-shared/es2015"),f0=(t,e)=>{t.stopPropagation(),e()()},m0=L('<div class="close s-1c"></div>'),v0={hash:"s-1c",code:'.close.s-1c{cursor:pointer;height:16px;opacity:.8;position:relative;transition:opacity .2s;width:16px}.close.s-1c:hover{opacity:1}.close.s-1c:after,.close.s-1c:before{background-color:var(--white);content:" ";height:16px;left:8px;position:absolute;width:2px}.close.s-1c:before{transform:rotate(45deg)}.close.s-1c:after{transform:rotate(-45deg)}'};function Ms(t,e){F(e,!0),q(t,v0);let i=g(e,"onClick",3,pb.noop);var o=m0();o.__click=[f0,i],_(t,o),H()}st(["click"]);var fb=require("@vkontakte/videoplayer-shared/es2015");var bn=t=>`width:${t}px;height:${t}px;`;var g0=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 Rn(t,e){F(e,!0);let i=v(()=>bn(e.size));Je(t,{get width(){return"48"},get height(){return"48"},get fill(){return e.fill},get style(){return n(i)},testId:"play-icon",children:(o,r)=>{var a=g0();_(o,a)},$$slots:{default:!0}}),H()}var h0=L('<div class="timer s-1e"><canvas class="timer-canvas s-1e" width="100" height="100"></canvas> <!></div>'),_0={hash:"s-1e",code:".timer.s-1e{align-items:center;background:rgba(31,31,31,.65);border-radius:50%;display:flex;height:50px;justify-content:space-around;transition:background .2s;width:50px}.timer.s-1e:hover{background:rgba(31,31,31,.85)}.timer-canvas.s-1e{height:50px;position:absolute;width:50px}"};function pc(t,e){F(e,!0),q(t,_0);let i=g(e,"isRunning",3,!0),o=g(e,"onTimerEnded",3,fb.noop),r=5e3,a=K(void 0),l,d,s=0,u;Ne(()=>{i()&&kt(()=>{d=Date.now(),s=requestAnimationFrame(m)})});let p=()=>{s&&(cancelAnimationFrame(s),s=0)},m=()=>{p(),i()&&(u=(Date.now()-d)/r,u<1?(l==null||l.clearRect(0,0,100,100),l==null||l.beginPath(),l==null||l.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*u),l==null||l.stroke(),s=requestAnimationFrame(m)):o()())};Dt(()=>{l=n(a).getContext("2d"),l&&(l.lineWidth=6,l.lineCap="round",l.strokeStyle="#fff")}),_n(()=>{p()});var f=h0(),$=T(f);nt($,b=>N(a,b),()=>n(a));var y=k($,2);Rn(y,{get size(){return"24"}}),w(f),_(t,f),H()}var b0=(t,e,i)=>{e(!1),i()},$0=L('<div class="overlay s-y"></div> <div class="next-video s-y"><div class="top s-y"><div class="caption s-y"> </div> <!></div> <div class="row s-y"><div class="column s-y"><div class="thumb s-y"><div></div> <!></div></div> <div class="column s-y"><div class="title s-y"> </div></div></div></div>',1),y0={hash:"s-y",code:".overlay.s-y{background:rgba(0,0,0,.72);height:100%;position:absolute;width:100%}.next-video.s-y{display:flex;flex-direction:column;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:362px}.top.s-y{display:flex;justify-content:space-between}.caption.s-y{color:var(--white);font-size:11px;font-weight:700;opacity:.8;text-transform:uppercase}.row.s-y{background:rgba(48,48,48,.8);cursor:pointer;display:flex;flex-direction:row;height:102px;margin-top:6px;width:100%}.column.s-y{display:flex;flex-basis:50%;flex-direction:column}.thumb.s-y{align-items:center;background:no-repeat 50%;background-size:cover;display:flex;justify-content:space-around;position:relative}.thumb.s-y,.thumb-overlay.s-y{height:100%;width:100%}.thumb-overlay.s-y{position:absolute}.thumb-overlay.withOpacity.s-y{background:var(--black);opacity:.3}.title.s-y{color:var(--white);font-size:12px;font-weight:700;line-height:1.6;max-height:52px;overflow:hidden;padding:10px 16px}"};function _m(t,e){F(e,!0),q(t,y0);let[i,o]=Re(),r=()=>x(d,"$autoplayNextEnabled$",i),a=()=>x(s,"$timerNextVideoRunning$",i),l=ve(),d=l.ui.autoplayNextEnabled$,s=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,p=l.actions.internal.nextVideoAnnouncementShow,m=l.actions.internal.nextVideoAnnouncementClick,f=l.actions.internal.nextVideoAnnouncementAuto,$=l.actions.internal.nextVideoAnnouncementCancel,y=()=>{r()&&(u(!1),f())},b=()=>{e.clickCloseIcon(),$()};Dt(()=>{e.isHide||p(),e.isHide&&r()&&(u(!1),f())});var S=Me(),C=de(S);{var I=R=>{var E=$0(),P=k(de(E),2),O=T(P),D=T(O),U=T(D,!0);w(D);var z=k(D,2);Ms(z,{onClick:b}),w(O);var G=k(O,2);G.__click=[b0,u,m];var le=T(G),j=T(le),ie=T(j);let Y;var ge=k(ie,2);{var ce=Z=>{let Oe=v(()=>a()&&r());pc(Z,{get isRunning(){return n(Oe)},onTimerEnded:y})};V(ge,Z=>{r()&&Z(ce)})}w(j),w(le);var ne=k(le,2),_e=T(ne),we=T(_e,!0);w(_e),w(ne),w(G),w(P),B((Z,Oe)=>{fe(U,Z),Qe(j,`background-image: url('${e.thumb}')`),Y=re(ie,1,"thumb-overlay s-y",null,Y,Oe),fe(we,e.title)},[()=>Q("end_screen_next_video"),()=>({withOpacity:r()})]),_(R,E)};V(C,R=>{e.isHide||R(I)})}_(t,S),H(),o()}st(["click"]);var la=require("@vkontakte/videoplayer-core/es2015"),mb=require("@vkontakte/videoplayer-shared/es2015"),Nn=require("@vkontakte/videoplayer-statistics/es2015");var bm=(t,e)=>Math.min(+(t+e).toFixed(2),1),$m=(t,e)=>Math.max(+(t-e).toFixed(2),0),np=(t,e,i)=>{let o=bm(e,i);e<1&&t.actions.internal.setVolume(o)},rp=(t,e,i)=>{let o=$m(e,i);e>0&&t.actions.internal.setVolume(o)};var aa=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:r})=>t?i?!0:(o==null||o(),!1):e?!0:(r==null||r(),!1);function sp(){var t,e,i;return(i=(e=(t=document.activeElement)==null?void 0:t.shadowRoot)==null?void 0:e.activeElement)!=null?i:null}var w0=(t,e)=>{e(t)},S0=L('<div class="keyboard-controls s-14" tabindex="-1" role="region"><!></div>'),T0={hash:"s-14",code:".keyboard-controls.s-14{bottom:0;left:0;position:absolute;right:0;top:0}"};function ym(t,e){var Pe,Pt;F(e,!0),q(t,T0);let[i,o]=Re(),r=()=>x(ge,"$disabledControls$",i),a=()=>x(Se,"$isInteractiveTime$",i),l=()=>x(Fe,"$showInteractiveTimeIndicatorTooltip$",i),d=()=>x(G,"$playbackState$",i),s=()=>x(pe,"$isEnded$",i),u=()=>x(Ke,"$doubleForwardAvailable$",i),p=()=>x(A,"$doubleForwardOn$",i),m=()=>x(se,"$overlayContainer$",i),f=()=>x(le,"$adPlaybackState",i),$=()=>x(j,"$positionExact$",i),y=()=>x(ie,"$duration$",i),b=()=>x(J,"$isAudioAvailable$",i),S=()=>x(Y,"$volume$",i),C=()=>x(we,"$availablePlaybackRates$",i),I=()=>x(_e,"$currentPlaybackRate$",i),R=()=>x(ce,"$muted$",i),E=()=>x(ne,"$currentSubtitle$",i),P=g(e,"nextButtonActive",3,!1),O=g(e,"prevButtonActive",3,!1),D=ve(),U=Rt(),z=D.getLogger().createComponentLog("KeyboardControls component"),G=D.state.playbackState$,le=D.ads.playbackState,j=D.state.positionExact$,ie=D.state.duration$,Y=D.state.volume$,ge=D.ui.controls.disabledControls$,ce=D.state.muted$,ne=D.state.currentSubtitle$,_e=D.state.currentPlaybackRate$,we=D.state.availablePlaybackRates$,Z=D.ui.contextMenu.openedByHotKey$,Oe=D.ui.contextMenu.lastActiveElem$,ue=D.ui.contextMenu.visible$,A=D.ui.doubleForwardOn$,Ke=D.ui.doubleForwardAvailable$,Ce=D.ui.contextMenu.position$,pe=D.state.isEnded$,se=D.ui.overlayContainer$,De=(Pe=D.callbacks)==null?void 0:Pe.onAudioDoesNotExistHint,Be=(Pt=D.callbacks)==null?void 0:Pt.onAudioDisabledHint,J=D.state.isAudioAvailable$,X=D.state.isAudioDisabled,Se=D.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:Fe}=Co(),qe=0,Ye=!0,Te=K(void 0),Le=Ve=>(Ve!==Ye&&(Ye=Ve,qe=0),qe+=1,(U.controls.seekStepKeyboard+U.controls.seekStepKeyboard*qe)/1e3),Ue=!0,Nt=({type:Ve,repeat:at,disableDoubleForward:gt})=>{let $e=()=>{if(!r().has("PLAY_BUTTON"))if(a()&&l()&&Fe.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{D.actions.internal.togglePlay();let ze="PLAY";d()===la.PlaybackState.PAUSED?ze="PAUSE":s()&&(ze="REPLAY"),e.showHotKeyHelpers({type:ze})}},et=Ve==="down";if(!u()||gt){et&&$e(),Ue=!0;return}if(et)Ue=!1;else if(Ue)return;if(et){!at&&e.startDoubleForwardActivationTimer();return}p()||$e(),e.stopDoubleForward(),Ue=!0},tt=Ve=>{let at=cb(m());Ce.set(at),Oe.set(Ve.target),Z.set(!0),ue.set(!0)},Bt=(Ve,at=!1)=>{var Ai,Zt;let gt=Ve.target,$e=(Ai=gt==null?void 0:gt.getAttribute("role"))==null?void 0:Ai.includes("menuitem"),et=gt.classList.contains("btn"),ze=Ve.code;if(et&&ze==="Space")return!1;let rt=p_.has(ze);if($e&&rt)return!1;let ii=!u_.has(ze);if(Ve.ctrlKey&&ii||Ve.altKey&&ii||Ve.metaKey)return!1;let ai=$e&&ze==="Escape";f_.has(ze)||ai||e.hideContextMenu();let gi=d()===la.PlaybackState.PLAYING||d()===la.PlaybackState.PAUSED,yi=e.isAds&&(f()==="paused"||f()==="playing"),ro=!yi&&!r().has("TIMELINE"),$o=Ve.shiftKey&&["Digit1","Numpad1"].includes(ze);if(!$o&&!(gi||yi))return!1;z({message:`key down, code: ${ze}, isExternal = ${at}`});let ui=!1,pt=()=>{ui=!0,at||Ve.preventDefault()};if($o)return tt(Ve),pt(),!0;switch(ze){case"KeyJ":case"ArrowLeft":{if(!ro)break;if(Ve.ctrlKey||Ve.altKey){let Tt=D.actions.internal.getPrevEpisode();D.actions.internal.seekToPrevEpisode(Tt),Tt&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:Tt.text}),pt()}else{let Tt=Ve.shiftKey?Le(!1):U.controls.seekStepKeyboard/1e3,ri=Math.max($()-Tt,0);$()>0&&(D.actions.internal.seekTime(ri,Nn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:Tt.toString()}),pt())}break}case"KeyL":case"ArrowRight":{if(!ro)break;if(Ve.ctrlKey||Ve.altKey){let Tt=D.actions.internal.getNextEpisode();D.actions.internal.seekToNextEpisode(Tt),Tt&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:Tt.text}),pt()}else{let Tt=Ve.shiftKey?Le(!0):U.controls.seekStepKeyboard/1e3,ri=Math.min($()+Tt,y());Math.round($())<Math.round(y())&&(D.actions.internal.seekTime(ri,Nn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:Tt.toString()}),pt())}break}case"ArrowUp":{if(aa({isAudioDisabled:X,audioDisabledHintCallback:Be,isAudioAvailable:b(),audioIsNotExistHintCallback:De,isAds:e.isAds})){let Tt=S(),ri=U.controls.volumeStepKeyboard,Jt=Tt<=1;if(np(D,Tt,ri),Jt){let yt=Math.round(bm(Tt,ri)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:yt}})}}pt();break}case"ArrowDown":{if(aa({isAudioDisabled:X,audioDisabledHintCallback:Be,isAudioAvailable:b(),audioIsNotExistHintCallback:De,isAds:e.isAds})){let Tt=S(),ri=U.controls.volumeStepKeyboard,Jt=Tt>=0;if(rp(D,Tt,ri),Jt){let yt=Math.round($m(Tt,ri)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:yt}})}}pt();break}case"Comma":{if(Ve.shiftKey){if(!p()){D.actions.internal.decrementPlaybackRate();let Tt=C().find(ri=>ri.value===I());e.showHotKeyHelpers({type:"RATE_DOWN",text:Tt==null?void 0:Tt.displayValue}),pt()}}else{if(yi||d()!==la.PlaybackState.PAUSED)break;let Tt=Math.max($()-U.controls.seekStepFrame/1e3,0);$()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),D.actions.internal.clearDelayedBufferingCheckTimeout(),D.actions.internal.seekTime(Tt,Nn.SeekAction.DOUBLE_TAP),pt())}break}case"Period":{if(Ve.shiftKey){if(!p()){D.actions.internal.incrementPlaybackRate();let Tt=C().find(ri=>ri.value===I());e.showHotKeyHelpers({type:"RATE_UP",text:Tt==null?void 0:Tt.displayValue}),pt()}}else{if(yi||d()!==la.PlaybackState.PAUSED)break;let Tt=Math.min($()+U.controls.seekStepFrame/1e3,y());$()<y()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),D.actions.internal.clearDelayedBufferingCheckTimeout(),D.actions.internal.seekTime(Tt,Nn.SeekAction.DOUBLE_TAP),pt())}break}case"KeyK":case"Space":Nt({type:"down",repeat:Ve.repeat,disableDoubleForward:"KeyK"===ze}),pt();break;case"KeyM":{aa({isAudioDisabled:X,audioDisabledHintCallback:Be,isAudioAvailable:b(),audioIsNotExistHintCallback:De,isAds:e.isAds})&&(e.showHotKeyHelpers({type:R()?"VOLUME":"MUTE"}),D.actions.internal.toggleMuted()),pt();break}case"KeyF":e.toggleFullscreen(),pt();break;case"KeyC":D.actions.internal.toggleSubtitle(),E().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(Zt=E())==null?void 0:Zt.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),pt();break;case"KeyI":D.actions.internal.togglePictureInPicture(),pt();break;case"Digit1":case"Numpad1":e.showHotKeyHelpers(),D.actions.internal.seekToPercent(.1,Nn.SeekAction.DOUBLE_TAP),pt();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),D.actions.internal.seekToPercent(.2,Nn.SeekAction.DOUBLE_TAP),pt();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),D.actions.internal.seekToPercent(.3,Nn.SeekAction.DOUBLE_TAP),pt();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),D.actions.internal.seekToPercent(.4,Nn.SeekAction.DOUBLE_TAP),pt();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),D.actions.internal.seekToPercent(.5,Nn.SeekAction.DOUBLE_TAP),pt();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),D.actions.internal.seekToPercent(.6,Nn.SeekAction.DOUBLE_TAP),pt();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),D.actions.internal.seekToPercent(.7,Nn.SeekAction.DOUBLE_TAP),pt();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),D.actions.internal.seekToPercent(.8,Nn.SeekAction.DOUBLE_TAP),pt();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),D.actions.internal.seekToPercent(.9,Nn.SeekAction.DOUBLE_TAP),pt();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),D.actions.internal.seekToPercent(0,Nn.SeekAction.DOUBLE_TAP),pt();break;case"Slash":{Ve.shiftKey&&U.features.hotKeyMapModal&&(e.showKeyMap(),pt());break}case"KeyN":Ve.shiftKey&&P()&&(D.actions.internal.nextVideoClick(),pt());break;case"KeyP":Ve.shiftKey&&O()&&(D.actions.internal.prevVideoClick(),pt());break;case"ShiftLeft":case"ShiftRight":pt();break;case"Tab":case"Escape":case"Enter":break;default:(0,mb.checkNever)(ze);break}return ui},Gt=Ve=>{let at=Ve.code;if(Ve.ctrlKey||Ve.altKey||Ve.metaKey)return;let gt=d()===la.PlaybackState.PLAYING||d()===la.PlaybackState.PAUSED,$e=e.isAds&&(f()==="paused"||f()==="playing");if(gt||$e)switch(at){case"ShiftLeft":case"ShiftRight":qe=0;break;case"Space":Nt({type:"up"});break}},Ct=Q("aria_label_video_player"),ti=()=>{var Ve;return(Ve=n(Te))==null?void 0:Ve.focus()},Ft=()=>n(Te)===sp(),ye=Ve=>Ve.type==="keydown"?Bt(Ve,!0):(Ve.type==="keyup"&&Gt(Ve),!1);var be=S0();be.__keyup=Gt,be.__keydown=[w0,Bt];var ee=T(be);ni(ee,()=>{var Ve;return(Ve=e.children)!=null?Ve:bt}),w(be),nt(be,Ve=>N(Te,Ve),()=>n(Te)),B(()=>We(be,"aria-label",Ct)),_(t,be);var xe=H({focus:ti,isFocused:Ft,handleExternalKeyboardEvent:ye});return o(),xe}st(["keyup","keydown"]);var C0=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>'),I0={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,I0);let i=g(e,"style",3,"");var o=C0();B(()=>Qe(o,i())),_(t,o)}var E0=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 xm(t,e){Je(t,{get fill(){return e.fill},children:(i,o)=>{var r=E0();_(i,r)},$$slots:{default:!0}})}var Ga=require("@vkontakte/videoplayer-shared/es2015"),P0=t=>{t.stopPropagation()},A0=L("<button><!></button>"),k0={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 Wt(t,e){F(e,!0),q(t,k0);let i=g(e,"className",3,""),o=g(e,"style",3,""),r=g(e,"disabled",3,void 0),a=g(e,"testId",3,void 0),l=g(e,"ariaHidden",3,void 0),d=g(e,"ariaLabel",3,void 0),s=g(e,"ref",15,void 0),u=g(e,"ariaKeyShortCut",3,void 0),p=g(e,"ariaExpanded",3,void 0),m=g(e,"tabIndex",3,0),f=g(e,"click",3,Ga.noop),$=g(e,"focus",3,Ga.noop),y=g(e,"blur",3,Ga.noop),b=v(()=>f()===Ga.noop?null:E=>{E.stopPropagation(),f()(E)}),S=v(()=>$()===Ga.noop?null:E=>{E.preventDefault(),$()()}),C=v(()=>y()===Ga.noop?null:E=>{E.preventDefault(),y()()});var I=A0();I.__pointerdown=[P0],I.__click=function(...E){var P;(P=n(b))==null||P.apply(this,E)};var R=T(I);ni(R,()=>{var E;return(E=e.children)!=null?E:bt}),w(I),nt(I,E=>s(E),()=>s()),B(()=>{var E,P,O,D,U,z,G,le;re(I,1,`btn ${(E=i())!=null?E:""}`,"s-1l"),Qe(I,o()||null),I.disabled=(P=r())!=null?P:null,We(I,"aria-hidden",(O=l())!=null?O:null),We(I,"aria-label",(D=d())!=null?D:null),We(I,"aria-keyshortcuts",(U=u())!=null?U:null),We(I,"aria-expanded",(z=p())!=null?z:null),We(I,"data-testid",(G=a())!=null?G:null),We(I,"tabindex",m()),We(I,"role",e.role),We(I,"aria-checked",(le=e.areaChecked)!=null?le:null)}),$t("focus",I,function(...E){var P;(P=n(S))==null||P.apply(this,E)}),$t("blur",I,function(...E){var P;(P=n(C))==null||P.apply(this,E)}),_(t,I),H()}st(["pointerdown","click"]);var L0=L('<div class="modal-header s-1j"><h3 class="modal-title s-1j"> </h3> <!></div>'),M0=L('<div class="modal-overlay s-1j"><div class="modal-container s-1j"><!> <div class="modal-scroll s-1j"><div class="modal-main s-1j"><!></div></div></div></div>'),V0={hash:"s-1j",code:'.modal-overlay.s-1j{align-items:center;background:transparent;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}.modal-container.s-1j{background:var(--mobile-settings-bg);border-radius:8px;color:var(--white);display:flex;flex-direction:column;height:calc(100% - 24px);max-height:490px;max-width:600px;width:calc(100% - 32px)}.modal-header.s-1j{align-items:start;border-bottom:1px solid var(--white-alpha-24);box-sizing:border-box;display:flex;height:40px;justify-content:space-between;padding:8px 10px}.modal-title.s-1j{color:var(--white);font-feature-settings:"clig" off,"liga" off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;margin:3px 0 0 6px}.modal-scroll.s-1j{height:100%;margin:8px 4px 8px 0;overflow-x:hidden;overflow-y:auto}.modal-scroll.s-1j::-webkit-scrollbar{width:8px}.modal-scroll.s-1j::-webkit-scrollbar-track{background-color:transparent;border-radius:4px;box-shadow:none;margin-right:2px}.modal-scroll.s-1j::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:#666;border:1px solid transparent;border-radius:5px;min-height:40px}.modal-scroll.s-1j::-webkit-scrollbar-thumb:hover{background-color:#777}.modal-main.s-1j{margin:-8px -4px 0 0}'};function wm(t,e){F(e,!0),q(t,V0);let i=g(e,"showHeader",3,!0),o=g(e,"showCloseCross",3,!0),r=Q("hotkey_map_modal_close_btn_text");var a=M0(),l=T(a),d=T(l);{var s=f=>{var $=L0(),y=T($),b=T(y,!0);w(y);var S=k(y,2);{var C=I=>{Wt(I,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",get ariaLabel(){return r},children:(R,E)=>{xm(R,{fill:"currentColor"})},$$slots:{default:!0}})};V(S,I=>{o()&&I(C)})}w($),B(()=>fe(b,e.title)),_(f,$)};V(d,f=>{i()&&f(s)})}var u=k(d,2),p=T(u),m=T(p);ni(m,()=>{var f;return(f=e.children)!=null?f:bt}),w(p),w(u),w(l),w(a),_(t,a),H()}var R0=new Set(["BR"]),vb=t=>{var r;let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),o=i.length;for(;o--;){let a=i[o],l=a.tagName;R0.has(l)||(r=a.parentElement)==null||r.removeChild(a)}return e.innerHTML};var N0=L('<li class="hot-key-map-item s-10"><span class="hot-key-map-item-description s-10"><!></span> <span class="hot-key-map-item-value s-10"> </span></li>'),O0=L('<div class="hot-key-map-group s-10"><h5 class="hot-key-map-group-title s-10"> </h5> <ul class="hot-key-map-group-items s-10"></ul></div>'),D0=L('<div class="hot-key-map s-10"></div>'),B0={hash:"s-10",code:'.hot-key-map.s-10{box-sizing:border-box;color:var(--black);overflow-x:hidden}.hot-key-map-group.s-10{border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px}.hot-key-map-group.s-10:last-child{border-bottom:none}.hot-key-map-group-title.s-10{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-10,.hot-key-map-item.s-10{margin:0;padding:12px 0;width:100%}.hot-key-map-group-items.s-10{box-sizing:border-box;list-style:none;margin:0;padding:0}.hot-key-map-item.s-10{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-10{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-10{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-10,.hot-key-map-item-value.s-10{font-feature-settings:"clig" off,"liga" off;font-size:13px;font-style:normal;font-weight:400;line-height:16px}'};function Sm(t,e){F(e,!1),q(t,B0);let[i,o]=Re(),r=()=>x(l,"$data",i),a=ve(),{data:l,show:d}=a.ui.modals.hotKeyMap,s=()=>{d.set(!1)};To(),wm(t,{get title(){return r().title},onClose:s,children:(u,p)=>{var m=D0();Ti(m,5,()=>r().groups,({title:f,items:$})=>f,(f,$)=>{let y=()=>n($).title,b=()=>n($).items;var S=O0(),C=T(S),I=T(C,!0);w(C);var R=k(C,2);Ti(R,5,b,({description:E,value:P})=>P,(E,P)=>{let O=()=>n(P).description,D=()=>n(P).value;var U=N0(),z=T(U),G=T(z);Wd(G,()=>vb(O())),w(z);var le=k(z,2),j=T(le,!0);w(le),w(U),B(()=>fe(j,D())),_(E,U)}),w(R),w(S),B(()=>fe(I,y())),_(f,S)}),w(m),_(u,m)},$$slots:{default:!0}}),H(),o()}var _v=require("@vkontakte/videoplayer-shared/es2015");var tl=require("@vkontakte/videoplayer-core/es2015");var YD=require("@vkontakte/videoplayer-shared/es2015");var F0=L('<div class="pillow s-27"><!></div>'),H0={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,H0);var i=F0(),o=T(i);ni(o,()=>{var r;return(r=e.children)!=null?r:bt}),w(i),_(t,i)}var td=require("@vkontakte/videoplayer-shared/es2015");var U0=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=Vn(e,["$$slots","$$events","$$legacy","children"]);var o=U0();to(o,()=>Ae({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"currentColor","fill-rule":"evenodd",role:"img"},i));var r=T(o);ni(r,()=>{var a;return(a=e.children)!=null?a:bt}),vi(),w(o),_(t,o)}var z0=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 Im(t,e){let i=Vn(e,["$$slots","$$events","$$legacy","children"]);var o=z0();to(o,()=>Ae({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"currentColor","fill-rule":"evenodd",role:"img"},i));var r=T(o);ni(r,()=>{var a;return(a=e.children)!=null?a:bt}),vi(),w(o),_(t,o)}var W0=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 Em(t,e){let i=Vn(e,["$$slots","$$events","$$legacy","children"]);var o=W0();to(o,()=>Ae({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"currentColor",role:"img"},i));var r=T(o);ni(r,()=>{var a;return(a=e.children)!=null?a:bt}),vi(),w(o),_(t,o)}var K0=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 fc(t,e){let i=Vn(e,["$$slots","$$events","$$legacy","children"]);var o=K0();to(o,()=>Ae({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"currentColor",role:"img"},i));var r=T(o);ni(r,()=>{var a;return(a=e.children)!=null?a:bt}),vi(),w(o),_(t,o)}var q0=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 mc(t,e){let i=Vn(e,["$$slots","$$events","$$legacy","children"]);var o=q0();to(o,()=>Ae({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"currentColor",role:"img"},i));var r=T(o);ni(r,()=>{var a;return(a=e.children)!=null?a:bt}),vi(),w(o),_(t,o)}var ap=t=>{switch(t){case td.VideoQuality.Q_720P:return Em;case td.VideoQuality.Q_1080P:return fc;case td.VideoQuality.Q_1440P:return mc;case td.VideoQuality.Q_2160P:return Cm;case td.VideoQuality.Q_4320P:return Im}};var Q0=Ie('<path d="M12.72 2.21q1.8.07 2.41 1.96l.06.21.06.2.06.23.06.16.04.01.06-.02.14-.05.15-.07c1.42-.66 2.5-.53 3.4.44l.12.14.82 1.02c.73.96.7 2 0 3.1l-.13.19-.12.16-.14.2-.07.12-.04.05v.03l.1.06.13.07.15.09c1.39.7 1.96 1.64 1.74 2.93l-.04.19-.24 1.06c-.16.68-.28 1-.77 1.45-.48.43-1.02.61-1.73.67l-.22.02h-.2l-.25.02-.18.02.02.14v.1l.04.17c.32 1.53-.04 2.56-1.19 3.2l-.17.1-1.17.57q-1.64.73-3.02-.7l-.15-.17-.13-.15-.17-.19-.1-.1-.05-.04-.1.09-.1.1-.12.14c-.95 1.13-1.95 1.54-3.17 1.07l-.18-.08-1.05-.5-.31-.17a2 2 0 0 1-1-1.06 3 3 0 0 1-.16-1.88l.04-.23.04-.24.02-.17-.1-.02-.15-.01h-.18c-1.56-.04-2.48-.62-2.85-1.89l-.05-.18-.3-1.28q-.33-1.77 1.37-2.78l.2-.11.17-.1.22-.12.15-.1v-.02l-.06-.1-.08-.13-.1-.14c-.94-1.25-1.04-2.34-.28-3.4L4 6.32l.82-1.01c.8-.92 1.8-1.1 3.04-.64l.2.08.19.08.22.1.13.04.04-.01.03-.1.05-.13.04-.17c.36-1.43 1.09-2.24 2.4-2.35h1.58Zm-.05 1.8h-1.34l-.14.01c-.28.04-.47.2-.65.83l-.04.16-.06.2a6 6 0 0 1-.46 1.14 6 6 0 0 0-1.15.56 7 7 0 0 1-1.16-.35l-.35-.16q-.37-.15-.59-.17h-.08a.6.6 0 0 0-.4.19l-.08.07-.78.98-.1.12c-.18.26-.2.5.2 1.08l.22.31q.34.48.6 1.1-.2.59-.27 1.2-.51.45-1.01.73l-.34.18c-.62.34-.7.56-.65.88l.01.08.28 1.21.04.16c.1.3.27.47.97.5l.39.02q.57.03 1.22.2.35.53.78.97a6 6 0 0 1-.12 1.45c-.2.95-.01 1.1.38 1.3l1.13.54a1 1 0 0 0 .34.1l.06-.01q.26-.03.67-.49l.26-.3q.4-.42.95-.83l.3.02.3.01h.3l.3-.03q.56.4.95.84l.26.3c.32.36.53.48.73.48h.07l.18-.05.09-.04 1.13-.54.14-.08c.3-.17.42-.4.24-1.22a6 6 0 0 1-.12-1.45q.44-.45.78-.97a7 7 0 0 1 1.22-.2l.39-.01c.81-.04.91-.26 1-.66l.27-1.15c.09-.4.1-.64-.62-1.03l-.34-.18a6 6 0 0 1-1.01-.73 6 6 0 0 0-.27-1.2q.26-.62.6-1.1l.22-.31c.4-.58.38-.81.2-1.08l-.05-.06-.78-.97c-.14-.18-.26-.3-.46-.33h-.07q-.23 0-.67.17l-.35.16a6 6 0 0 1-1.16.35 6 6 0 0 0-1.15-.56 7 7 0 0 1-.45-1.1l-.11-.4c-.2-.68-.4-.81-.72-.83zM12 8.2a3.8 3.8 0 1 1 0 7.6 3.8 3.8 0 0 1 0-7.6m0 1.8a2 2 0 1 0 0 4 2 2 0 0 0 0-4"></path>');function Pm(t,e){Je(t,{get testId(){return e.testId},children:(i,o)=>{var r=Q0();_(i,r)},$$slots:{default:!0}})}var G0=Ie('<path d="M13.25 2.83c.23.75.38 1.5 1.63 2.23 1.4.38 2.08 0 2.72-.42.66-.45.86-.32 1.12-.06l.65.64c.29.3.4.42 0 1.18-.38.7-.8 1.33-.42 2.73.72 1.25 1.47 1.47 2.22 1.62.78.16.83.39.83.76v.9c0 .42 0 .59-.83.84-.75.23-1.5.38-2.23 1.63-.38 1.4 0 2.08.42 2.72.45.66.32.86.06 1.12l-.64.65c-.3.29-.42.4-1.18 0-.7-.38-1.34-.8-2.73-.42-1.25.72-1.47 1.47-1.62 2.22-.16.78-.39.83-.76.83h-.9c-.42 0-.59 0-.84-.83-.23-.75-.38-1.5-1.63-2.23-1.4-.38-2.08 0-2.72.42-.66.45-.86.32-1.12.06l-.65-.64c-.29-.3-.4-.42 0-1.18.38-.7.8-1.34.42-2.73-.72-1.25-1.47-1.47-2.22-1.62-.78-.16-.83-.39-.83-.76v-.9c0-.42 0-.59.83-.84.75-.23 1.5-.38 2.22-1.63.38-1.4 0-2.08-.42-2.72-.44-.66-.31-.86-.05-1.12l.64-.65c.3-.29.42-.4 1.18 0 .7.38 1.33.8 2.73.42 1.25-.72 1.47-1.47 1.62-2.22.16-.78.39-.83.76-.83h.9c.42 0 .59 0 .84.83M12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5"></path>');function Am(t,e){Je(t,{get testId(){return e.testId},children:(i,o)=>{var r=G0();_(i,r)},$$slots:{default:!0}})}var Y0=L('<div aria-hidden="true"><!> <!></div>'),j0={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 vc(t,e){F(e,!0),q(t,j0);let i=g(e,"isMobile",3,!1),o=g(e,"currentQuality",3,void 0),r=v(()=>ap(o())),a=v(()=>!!n(r)&&[fc,mc].includes(n(r)));var l=Me(),d=de(l);{var s=p=>{Pm(p,{testId:"settings-mobile-icon"})},u=p=>{var m=Y0();let f;var $=T(m);{var y=C=>{Tm(C,{children:(I,R)=>{var E=Me(),P=de(E);Fi(P,()=>n(r),(O,D)=>{D(O,{})}),_(I,E)},$$slots:{default:!0}})};V($,C=>{n(r)&&C(y)})}var b=k($,2);let S=v(()=>n(r)?"settings-icon--labeled":"settings-icon");Am(b,{get testId(){return n(S)}}),w(m),B(C=>f=re(m,1,"icon s-1v",null,f,C),[()=>({triple:n(a)})]),_(p,m)};V(d,p=>{i()?p(s):p(u,!1)})}_(t,l),H()}var X0=L('<span class="settings-icon-wrapper s-20"><!></span>'),Z0={hash:"s-20",code:".settings-icon-wrapper.s-20{position:relative;width:24px}"};function id(t,e){F(e,!0),q(t,Z0);let[i,o]=Re(),r=()=>x(u,"$settingsMenuVisible",i),a=()=>x(f,"$isMobile",i),l=()=>x(s,"$currentQuality",i),d=ve(),s=d.state.currentQuality$,u=d.ui.settingsMenu.visible$,p=d.actions.internal.openSettingsMenu,m=d.actions.internal.closeSettingsMenu,f=d.ui.isMobile,$=d.ui.t,y=K(void 0);Ne(()=>{n(y)&&kt(()=>{e.ref$.set(n(y))})});let b=$("aria_label_settings");function S(I){return _t(this,null,function*(){let R=sa(I);r()?m():p(R,bo)})}let C=v(()=>r()?"opened":"");Wt(t,{get className(){return n(C)},testId:"btn-settings",click:S,get ariaLabel(){return b},get ariaExpanded(){return r()},get ref(){return n(y)},set ref(I){N(y,I,!0)},children:(I,R)=>{var E=X0(),P=T(E);vc(P,{get isMobile(){return a()},get currentQuality(){return l()}}),w(E),_(I,E)},$$slots:{default:!0}}),H(),o()}var J0=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),ex=Ie("<path></path>");function da(t,e){F(e,!0);let i=v(()=>`subtitles-icon-${e.type==="off"?"off":e.type==="outline"?"outline":""}`),o=v(()=>bn(e.size));Je(t,{get width(){return"48"},get height(){return"48"},get style(){return n(o)},get testId(){return n(i)},children:(r,a)=>{var l=Me(),d=de(l);{var s=p=>{var m=J0();vi(),_(p,m)},u=p=>{var m=ex();B(()=>We(m,"d",`M16.92 8h14.16q2.82-.02 4.66.1c1.28.1 2.4.32 3.46.86a8.8 8.8 90 013.84 3.84c.54 1.04.76 2.18.86 3.46q.12 1.84.1 4.66v6.16q.02 2.82-.1 4.66a10 10 90 01-.86 3.46 8.8 8.8 90 01-3.84 3.84 10 10 90 01-3.46.86q-1.84.12-4.66.1H16.92q-2.82.02-4.66-.1a10 10 90 01-3.46-.86 8.8 8.8 90 01-3.84-3.84 10 10 90 01-.86-3.46Q4 29.9 4 27.08v-6.16q-.02-2.82.1-4.66c.1-1.28.32-2.4.86-3.46A8.8 8.8 90 018.8 8.96a10 10 90 013.46-.86Q14.1 8 16.92 8
59
- ${e.type==="outline"?"M12.54 11.68c-1.04.1-1.64.26-2.1.48a5.2 5.2 90 00-2.28 2.28c-.22.46-.4 1.06-.48 2.1-.08 1.08-.08 2.46-.08 4.46v6c0 2 0 3.38.08 4.46.1 1.04.26 1.64.48 2.1q.78 1.5 2.28 2.28c.46.22 1.06.4 2.1.48 1.08.08 2.48.08 4.46.08h14c2 0 3.38 0 4.46-.08 1.04-.1 1.64-.26 2.1-.48a5.2 5.2 90 002.28-2.28c.22-.46.4-1.06.48-2.1.08-1.08.08-2.48.08-4.46v-6c0-2 0-3.38-.08-4.46a6 6 90 00-.48-2.1 5.2 5.2 90 00-2.28-2.28c-.46-.22-1.06-.4-2.1-.48-1.08-.08-2.48-.08-4.46-.08h-14c-2 0-3.38 0-4.46.08":""}
60
- M12 29.8c0-1 .8-1.8 1.8-1.8h10.4a1.8 1.8 90 010 3.6H13.8a1.8 1.8 90 01-1.8-1.8m0-7.6c0-1 .8-1.8 1.8-1.8h3.4a1.8 1.8 90 110 3.6H13.8a1.8 1.8 90 01-1.8-1.8m17 7.6c0-1 .8-1.8 1.8-1.8h3.4a1.8 1.8 90 110 3.6h-3.4a1.8 1.8 90 01-1.8-1.8M22 22.2c0-1 .8-1.8 1.8-1.8h10.4a1.8 1.8 90 010 3.6h-10.4a1.8 1.8 90 01-1.8-1.8`)),_(p,m)};V(d,p=>{e.type==="off"?p(s):p(u,!1)})}_(r,l)},$$slots:{default:!0}}),H()}function km(t,e){F(e,!0);let i=g(e,"isSubtitlesEnabled",3,!1),r=ve().ui.t,a=v(()=>i()?r("tooltip_subtitles_on"):r("tooltip_subtitles_off"));Wt(t,{testId:"btn-Subtitles",get ariaLabel(){return n(a)},get click(){return e.click},get ariaKeyShortCut(){return _s.KeyC},role:"button",children:(l,d)=>{let s=v(()=>i()?void 0:"outline");da(l,{get size(){return"24"},get type(){return n(s)}})},$$slots:{default:!0}}),H()}var tx=L('<span class="duration s-23" data-testid="video_duration"> </span>'),ix=L('<div><span class="current s-23" data-testid="current_time"> </span> <!></div>'),ox={hash:"s-23",code:'.time.s-23{align-items:center;color:var(--controls-time);display:flex;font-variant-numeric:tabular-nums;font-weight:500;padding:12px 6px}.time.mobile.s-23{padding:0 0 0 8px}.current.s-23{position:relative}.duration.s-23{opacity:.7}.duration.s-23:before{content:" / ";white-space:pre}'};function gc(t,e){F(e,!0),q(t,ox);let i=g(e,"isMobile",3,!1),o=g(e,"isHidden",3,!1),r=g(e,"showDuration",3,!0),a=g(e,"ref",15),l=Rt(),d=ae(!1),s=v(()=>tn(e.duration)),u=v(()=>tn(e.position));var p=ix();let m;var f=T(p),$=T(f,!0);w(f);var y=k(f,2);{var b=S=>{var C=tx(),I=T(C,!0);w(C),B(()=>fe(I,n(s))),_(S,C)};V(y,S=>{r()&&S(b)})}w(p),As(p,()=>Yl(o()&&l.features.usePerformanceFix,d,l.disableInvisibleComponentsTimeout)),nt(p,S=>a(S),()=>a()),B(S=>{m=re(p,1,"time s-23",null,m,S),fe($,n(u))},[()=>({mobile:i()})]),_(t,p),H()}var _c=require("@vkontakte/videoplayer-shared/es2015");var nx=Ie("<path></path>");function ca(t,e){F(e,!0);let i=g(e,"volume",3,1),o=g(e,"muted",3,!1),r=(m,f)=>f?"off":m>.5?"max":m>.2?"mid":m>0?"min":"off",a=v(()=>r(i(),o())),l=v(()=>bn(e.size)),d="M4 19.9a2 2 90 011.88-2l5.68-.32a4 4 90 002.5-1.08l8.58-8a2 2 90 013.36 1.44v28.12a2 2 90 01-3.36 1.46l-8.58-8.02a4 4 90 00-2.52-1.08l-5.66-.32a2 2 90 01-1.88-2z",s="M44.92 16.52a1.8 1.8 90 012.56 2.56L42.54 24l4.94 4.92a1.8 1.8 90 11-2.56 2.56L40 26.54l-4.92 4.94a1.8 1.8 90 01-2.56-2.56L37.46 24l-4.94-4.92a1.8 1.8 90 112.56-2.56L40 21.46z",u="M31.5 17.8a1.8 1.8 90 012.54-.14A8.6 8.6 90 0136.8 24c0 2.52-1.06 4.8-2.76 6.34a1.8 1.8 90 11-2.4-2.68c.92-.84 1.56-2.16 1.56-3.66s-.64-2.8-1.58-3.66a1.8 1.8 90 01-.12-2.54",p="M37.62 13.34a1.8 1.8 90 012.54.2 16 16 90 010 20.9 1.8 1.8 90 01-2.74-2.32 12.4 12.4 90 000-16.24 1.8 1.8 90 01.2-2.54";Je(t,{get width(){return"48"},get height(){return"48"},get style(){return n(l)},get testId(){var m;return`volume-${(m=n(a))!=null?m:""}-icon`},children:(m,f)=>{var $=nx();B(()=>We($,"d",`M4 19.9a2 2 90 011.88-2l5.68-.32a4 4 90 002.5-1.08l8.58-8a2 2 90 013.36 1.44v28.12a2 2 90 01-3.36 1.46l-8.58-8.02a4 4 90 00-2.52-1.08l-5.66-.32a2 2 90 01-1.88-2z${n(a)==="off"?s:`${u}${n(a)==="max"?p:""}`}`)),_(m,$)},$$slots:{default:!0}}),H()}var Vo=require("@vkontakte/videoplayer-shared/es2015");var lp=require("@vkontakte/videoplayer-shared/es2015");var gb=require("@vkontakte/videoplayer-shared/es2015");var rx=L('<div class="overlay"><!></div>');function Lm(t,e){F(e,!0);let[i,o]=Re(),r=()=>x(l,"$overlayContainer$",i),l=ve().ui.overlayContainer$,d=K(void 0),s=f=>{!f||!n(d)||!f.contains(n(d))||f.removeChild(n(d))},u=f=>{!f||!n(d)||f.contains(n(d))||f.appendChild(n(d))};Ne(()=>{u(r())}),Dt(()=>(u(r()),()=>s(r())));var p=rx(),m=T(p);ni(m,()=>{var f;return(f=e.children)!=null?f:bt}),w(p),nt(p,f=>N(d,f),()=>n(d)),_(t,p),H(),o()}var sx=L('<div class="tooltip s-1k"><div class="content s-1k"> </div> <div class="tooltip-pointer s-1k"></div></div>'),ax=L("<div><!></div> <!>",1),lx={hash:"s-1k",code:'.tooltip-wrapper.s-1k{display:flex;flex-direction:column;min-width:0}.full-width.s-1k{width:100%}.tooltip.s-1k{bottom:100%;left:0;opacity:0;position:absolute;transition:opacity .2s,visibility .2s;visibility:hidden}.content.s-1k{background-color:rgba(41,41,41,.8);border-radius:3px;color:var(--white);display:inline-block;padding:6px 10px}.tooltip-pointer.s-1k{border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid rgba(41,41,41,.8);bottom:0;content:" ";font-size:0;line-height:0;position:absolute;width:0}'};function Ya(t,e){F(e,!0),q(t,lx);let[i,o]=Re(),r=()=>x(G,"$overlayContainer$",i),a=()=>x(z,"$containerSize",i),l=g(e,"isMobile",3,!1),d=g(e,"content",3,""),s=g(e,"active",15,!1),u=g(e,"translateX",3,0),p=g(e,"translateY",3,0),m=g(e,"isFullWidthWrapper",3,!1),f=g(e,"maxTooltipWidth",3,void 0),$=g(e,"placement",3,"top"),y=g(e,"onVisibilityChange",3,gb.noop),b=5,S=K(void 0),C=K(void 0),I,R=K(0),E=K(0),P=K(0),O=K(0),D=Rt(),U=ve(),z=U.ui.playerSize,G=U.ui.overlayContainer$;Ne(()=>{kt(()=>{y()(s())})});let le=U.getLogger().createComponentLog("Tooltip component"),j=()=>{if(!r()||!n(C)||!n(S))return;N(E,b);let X=r().getBoundingClientRect(),Se=n(S).getBoundingClientRect(),Fe=Se.width,qe=n(C).clientWidth,Ye=a().width,Te=(Fe-qe)/2,Le=Se.left+u()-X.left,Ue=Le+Te,Nt=Se.top+p()-X.top,tt=qe/2-b,Bt=Ue<8,Gt=Ue+qe>Ye-8;Bt&&(Ue=8,tt=Le+Se.width/2-2.5*b),Gt&&(Ue=Ye-8-qe,tt=Se.left-X.left+Se.width/2-Ue-b),N(P,Ue,!0),N(O,Nt),N(R,tt,!0)},ie=()=>{!r()||!n(C)||!n(S)||N(E,-b)},Y=()=>{if(!r()||!n(C)||!n(S))return;N(R,b);let X=r().getBoundingClientRect(),Se=n(S).getBoundingClientRect(),Fe=Se.height,qe=n(C).clientHeight,Ye=(Fe-qe)/2+qe,Te=Se.left+u()-X.left-n(C).clientWidth,Le=2,Ue=Te-b;Ue<8&&(Ue=8);let tt=Se.top+p()-X.top+Ye,Bt=Le-Ye/2,Gt=Le-b;N(P,Ue,!0),N(O,tt),N(E,Bt),N(R,Gt)},ge=()=>{!r()||!n(C)||!n(S)||N(R,-b)},ce=()=>{switch($()){case"top":j();break;case"bottom":ie();break;case"left":Y();break;default:ge()}},ne=()=>{try{if(!r()||!n(S))return;ce(),s(!0)}catch(X){le({message:String(X)})}},_e=()=>{s(!1)},we=()=>{n(C)&&(I||(I=window.setTimeout(ne,D.controls.hideTimeoutTooltips)),s()&&ne())},Z=()=>{_e(),window.clearTimeout(I),I=void 0},Oe=(X,Se,Fe)=>{let qe="";switch($()){case"top":qe=`transform: translate(${X}px, ${Se}px);`;break;case"bottom":qe=`transform: translate(${X}px, ${Se}px); top: auto; bottom: 100%;`;break;case"left":qe=`transform: translate(${X}px, ${Se}px); left: 0; right: auto;`;break;default:qe=`transform: translate(${X}px, ${Se}px);`}return qe+=` max-width: ${f()===void 0?"auto":`${f()}px`};`,qe+=` opacity: ${Fe?1:0}; visibility: ${Fe?"visible":"hidden"}`,qe},ue=(X,Se)=>{let Fe="";switch($()){case"top":Fe=`transform: translate(${X}px, ${Se}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Fe=`transform: translate(${X}px, ${Se}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Fe=`transform: translate(${X}px, ${Se}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Fe=`transform: translate(${X}px, ${Se}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Fe},A=v(()=>Oe(n(P),n(O),s())),Ke=v(()=>ue(n(R),n(E)));Dt(ce),_n(()=>window.clearTimeout(I));var Ce=ax(),pe=de(Ce);let se;pe.__pointermove=we,pe.__pointerdown=Z,pe.__pointerup=function(...X){var Se;(Se=e.disableMouseupTooltipShow?void 0:we)==null||Se.apply(this,X)};var De=T(pe);ni(De,()=>{var X;return(X=e.children)!=null?X:bt}),w(pe),nt(pe,X=>N(S,X),()=>n(S));var Be=k(pe,2);{var J=X=>{Lm(X,{children:(Se,Fe)=>{var qe=sx(),Ye=T(qe),Te=T(Ye,!0);w(Ye);var Le=k(Ye,2);w(qe),nt(qe,Ue=>N(C,Ue),()=>n(C)),B(()=>{Qe(qe,n(A)),fe(Te,d()),Qe(Le,n(Ke))}),_(Se,qe)},$$slots:{default:!0}})};V(Be,X=>{d()&&!l()&&X(J)})}B(X=>se=re(pe,1,"tooltip-wrapper s-1k",null,se,X),[()=>({"full-width":m()})]),$t("pointerenter",pe,we),$t("pointerleave",pe,Z),_(t,Ce),H(),o()}st(["pointermove","pointerdown","pointerup"]);var hb=t=>{t.stopPropagation()},dx=L("<div><!></div>"),cx={hash:"s-1i",code:".btn-container.s-1i{align-items:center;display:flex;height:100%;position:relative;transition:var(--button-hover-transition);will-change:opacity;-webkit-tap-highlight-color:transparent}.w-max.s-1i{min-width:0;width:100%}"};function Mo(t,e){F(e,!0),q(t,cx);let[i,o]=Re(),r=()=>x(u,"$isGraphOpened$",i),a=()=>x(s,"$isMobile",i),l=ve(),d=Co(),s=l.ui.isMobile,u=d.graphIsOpened$,p=l.ui.t,m=g(e,"className",3,""),f=g(e,"disabled",3,!1),$=g(e,"hasTooltip",3,!0),y=g(e,"ref",15,void 0),b=g(e,"width",15,void 0),S=g(e,"isFullWidthTooltip",3,!0),C=g(e,"tooltipContent",3,""),I=g(e,"tooltipVisible",3,!1),R=g(e,"tooltipPlacement",3,"top"),E=g(e,"disabledTooltipContent",19,()=>p("tooltip_button_disabled")),P=g(e,"isAriaHidden",3,!1),O=g(e,"onTooltipVisibilityChange",3,lp.noop),D=g(e,"initialTranslateXPx",3,0),U=g(e,"initialTranslateYPx",19,()=>-18),z=g(e,"mouseEnter",3,lp.noop),G=g(e,"mouseLeave",3,lp.noop),le=v(()=>f()?r()?p("tooltip_disabled_when_graph_on"):E():C()),j=K(!1);Ne(()=>{I()||N(j,!1)});var ie=dx();ie.__pointerdown=[hb],ie.__click=[hb];var Y=T(ie);{var ge=ne=>{Ya(ne,{get content(){return n(le)},get translateX(){return D()},get translateY(){return U()},get isFullWidthWrapper(){return S()},get placement(){return R()},get onVisibilityChange(){return O()},get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},get active(){return n(j)},set active(_e){N(j,_e,!0)},children:(_e,we)=>{var Z=Me(),Oe=de(Z);ni(Oe,()=>{var ue;return(ue=e.children)!=null?ue:bt}),_(_e,Z)},$$slots:{default:!0}})},ce=ne=>{var _e=Me(),we=de(_e);ni(we,()=>{var Z;return(Z=e.children)!=null?Z:bt}),_(ne,_e)};V(Y,ne=>{$()&&n(le)&&!a()?ne(ge):ne(ce,!1)})}w(ie),nt(ie,ne=>y(ne),()=>y()),B(()=>{var ne;re(ie,1,`btn-container ${(ne=m())!=null?ne:""}`,"s-1i"),We(ie,"aria-hidden",P()||null)}),$t("mouseenter",ie,function(...ne){var _e;(_e=z())==null||_e.apply(this,ne)}),$t("mouseleave",ie,function(...ne){var _e;(_e=G())==null||_e.apply(this,ne)}),Mn(ie,"clientWidth",b),_(t,ie),H(),o()}st(["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 hc(t,e){let i=v(()=>(e.completed,"interactive-episode-completed-icon"));Je(t,{width:"20",height:"20",fill:"none",get testId(){return n(i)},children:(o,r)=>{var a=ux(),l=de(a),d=k(l);B(()=>{We(l,"fill",ia),We(l,"fill-opacity",e.completed?1:.24),We(d,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),_(o,a)},$$slots:{default:!0}})}var px=L("<div><!></div>"),fx={hash:"s-16",code:".interactive-episode-icon.s-16{cursor:default;height:20px;position:absolute;transform:translateX(-50%);width:20px}.interactive-episode-icon.disabled.s-16{opacity:.4;pointer-events:none}"};function Mm(t,e){F(e,!0),q(t,fx);let o=ve().ui.t,r=K(0),a=v(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));Mo(t,{get tooltipContent(){return n(a)},initialTranslateXPx:-10,initialTranslateYPx:-10,get disabled(){return e.disabled},get width(){return n(r)},isAriaHidden:!0,isFullWidthTooltip:!1,children:(l,d)=>{var s=px();let u;var p=T(s);let m=v(()=>!!e.videoEpisode.completed);hc(p,{get completed(){return n(m)}}),w(s),B(f=>{u=re(s,1,"interactive-episode-icon s-16",null,u,f),Qe(s,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),Mn(s,"clientWidth",f=>N(r,f)),_(l,s)},$$slots:{default:!0}}),H()}var mx=L('<div><div class="video-episode-inner s-17"><div class="video-episode-loaded s-17"></div> <div></div></div></div>'),vx=L('<div class="video-episodes-wrap s-17"></div>'),gx={hash:"s-17",code:".video-episodes-wrap.s-17{height:100%;position:absolute;width:100%}.video-episode.s-17{box-sizing:border-box;height:calc(var(--slider-height)*3);margin-top:calc(var(--slider-height)*-1);padding:var(--slider-height) var(--slider-video-episode-gap);position:absolute;transition:transform .2s}.video-episode.s-17:first-child{padding-left:0}.video-episode.s-17:last-child{padding-right:0}.video-episode.s-17:not(.disabled):where(:hover,:active){transform:scaleY(1.5)}.video-episode-filled.s-17,.video-episode-inner.s-17,.video-episode-loaded.s-17{border-radius:var(--slider-radius);height:var(--slider-height);position:absolute}.video-episode-inner.s-17{background:var(--slider-bg);overflow:hidden;position:absolute;width:calc(100% - var(--slider-video-episode-gap)*2)}.video-episode.s-17:first-child .video-episode-inner:where(.s-17),.video-episode.s-17:last-child .video-episode-inner:where(.s-17){width:calc(100% - var(--slider-video-episode-gap))}.video-episode-loaded.s-17{background:var(--slider-loaded-bg);transition:transform .2s}.video-episode-filled.s-17,.video-episode-loaded.s-17{border-radius:var(--slider-radius);height:100%;left:-100%;position:absolute;width:100%}.video-episode-filled.s-17{background-color:var(--slider-filled-bg)}"};function Vm(t,e){q(t,gx);let i=g(e,"videoEpisodes",19,()=>[]);var o=vx();Ti(o,21,i,r=>r.from,(r,a)=>{var l=mx();let d;var s=T(l),u=T(s),p=k(u,2);let m;w(s),w(l),B((f,$)=>{d=re(l,1,"video-episode s-17",null,d,f),Qe(l,`left: ${n(a).from}%; width: ${n(a).width}%`),Qe(u,`transform: translateX(${n(a).loadedWidth/n(a).width*100}%)`),m=re(p,1,"video-episode-filled s-17",null,m,$),Qe(p,`transform: translateX(${n(a).filledWidth/n(a).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),_(r,l)}),w(o),_(t,o)}function 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),Tx={hash:"s-h",code:'.interactive-icons.s-h{position:absolute;top:-28px;width:calc(100% - 20px)}.interactive-icons.mobile.s-h{top:-10px}.slider.s-h{border-radius:var(--slider-radius);cursor:pointer;height:var(--slider-height);position:relative;touch-action:none;transition:opacity .2s;width:100%;will-change:opacity,transform;-webkit-tap-highlight-color:transparent}.no-handle.s-h{cursor:default}.slider.s-h:before{content:"";height:calc(var(--controls-height)/2);left:0;position:absolute;right:0;top:calc((var(--controls-height)/2 - var(--slider-height))*-1/2)}.bars.s-h{background:var(--slider-bg);overflow:hidden}.bars.s-h,.loaded.s-h{border-radius:var(--slider-radius);height:100%;position:absolute;width:100%}.loaded.s-h{background:var(--slider-loaded-bg);left:-100%;transition:transform .2s;will-change:transform}.filled.s-h{background-color:var(--slider-filled-bg);border-radius:var(--slider-radius);height:100%;left:-100%;position:absolute;width:100%}.slider.square.s-h,.slider.square.s-h .filled:where(.s-h),.slider.square.s-h .loaded:where(.s-h),.slider.square.s-h>.bars:where(.s-h){border-radius:unset}.filled.active-live.s-h{background-color:var(--timeline-slider-filled-active-live-bg)}.filled.ads.s-h{background-color:var(--slider-filled-ads)}.handleWrap.s-h{left:-100%;position:absolute;width:100%}.handle.s-h{background-color:var(--slider-handle-bg);border-radius:50%;height:var(--slider-handle-size);opacity:0;position:absolute;right:calc(var(--slider-handle-size)*-1/2);top:calc((var(--slider-height) - var(--slider-handle-size))/2);transform:scale(0);transition:opacity .2s,transform .2s;visibility:hidden;width:var(--slider-handle-size);will-change:opacity,transform}.handle.active-live.s-h{background-color:var(--timeline-slider-handle-active-live-bg)}.handle-always-visible.s-h .handle:where(.s-h),.slider-dragging.s-h .handle:where(.s-h),.slider.s-h:hover .handle:where(.s-h){opacity:1;transform:scale(1);visibility:visible}.slider-dragging.s-h .handle:where(.s-h){transform:scale(1.3)}.slider-vertical.s-h{left:-8px;position:absolute;top:-18px;transform:rotate(-90deg);transform-origin:0 0}.slider.disabled.s-h{cursor:default;opacity:.4}'};function ja(t,e){F(e,!0),q(t,Tx);let i=g(e,"ref",15,void 0),o=g(e,"className",3,""),r=g(e,"testId",3,void 0),a=g(e,"isHidden",3,!1),l=g(e,"isVertical",3,!1),d=g(e,"isActiveLive",3,!1),s=g(e,"isMobile",3,!1),u=g(e,"squareBorders",3,!1),p=g(e,"videoEpisodes",19,()=>[]),m=g(e,"withWheelHandler",3,!1),f=g(e,"isInteractive",3,!1),$=g(e,"disabled",3,!1),y=g(e,"hideHandel",3,!1),b=g(e,"onPointerDown",3,Vo.noop),S=g(e,"onHandleMove",3,Vo.noop),C=g(e,"onPointerUp",3,Vo.noop),I=g(e,"onPointerEnter",3,Vo.noop),R=g(e,"onPointerMove",3,Vo.noop),E=g(e,"onPointerLeave",3,Vo.noop),P=g(e,"onMouseEnter",3,Vo.noop),O=g(e,"onMouseLeave",3,Vo.noop),D=g(e,"onWheelUp",3,Vo.noop),U=g(e,"onWheelDown",3,Vo.noop),z=g(e,"onWheelLeft",3,Vo.noop),G=g(e,"onWheelRight",3,Vo.noop),le=g(e,"onDisabledClick",3,Vo.noop),j=g(e,"loadedProgress",3,0),ie=g(e,"filledProgress",3,0),Y=g(e,"handleProgress",3,0),ge=g(e,"ariaLabel",3,""),ce=g(e,"ariaValueMin",3,void 0),ne=g(e,"ariaValueMax",3,void 0),_e=g(e,"ariaValueNow",3,void 0),we=g(e,"ariaValueText",3,""),Z=g(e,"onContextMenu",3,Vo.noop),Oe=g(e,"handleAlwaysVisible",3,!1),ue=Rt(),A=K(void 0),Ke=K(!1),Ce=v(()=>{var xe;return(xe=ne())!=null?xe:0}),pe=v(()=>{var xe;return(0,Vo.isNonNullable)(p())&&((xe=p()[p().length-1])==null?void 0:xe.time)<n(Ce)}),se=v(()=>(0,Vo.isNonNullable)(p())&&p().length&&n(pe)&&n(Ce)?Ye(j()*100,ie()*100):[]);function De(xe){if(xe.preventDefault(),i()&&N(A,i().getBoundingClientRect(),!0),$())return;let Pe=Fe(xe.clientX,xe.clientY),Pt=qe(xe.clientX);I()(Pe,Pt,n(A).width)}function Be(xe){xe.preventDefault(),!$()&&E()()}function J(){P()()}function X(){O()()}function Se(xe){$()||m()&&(xe.preventDefault(),xe.deltaY<0?D()():xe.deltaY>0?U()():xe.deltaX>0?G()():z()())}function Fe(xe,Pe){return l()?Math.max(0,Math.min(1,(n(A).height-(Pe-n(A).top))/n(A).height)):Math.min(Math.max(xe-n(A).x,0),n(A).width)/n(A).width}function qe(xe){return Math.min(Math.max(xe-n(A).x,0),n(A).width)}function Ye(xe,Pe){let Pt=ue.features.episodesClustering&&!f()?ue.episodeMinWidthPc:0,Ve=[],at=p()[0].time/n(Ce)*100,gt=0,$e=0;for(let rt=1;rt<p().length;rt++)gt=p()[rt].time/n(Ce)*100,gt-at>Pt&&(Ve.push({from:at,width:Math.max(0,gt-at),loadedWidth:Math.max(0,Math.min(gt,xe)-at),filledWidth:Math.max(0,Math.min(gt,Pe)-at),interactive:p()[rt-1].interactive,completed:p()[rt-1].completed}),at=p()[rt].time/n(Ce)*100,$e++);let et={from:at,width:Math.max(0,100-at),loadedWidth:Math.max(0,Math.min(xe,100)-at),filledWidth:Math.max(0,Math.min(Pe,100)-at),interactive:p()[$e].interactive,completed:p()[$e].completed};100-at<Pt?($e-=1,Ve[$e].width+=100-at,Ve[$e].loadedWidth+=Math.max(0,Math.min(xe,100)-at),Ve[$e].filledWidth+=Math.max(0,Math.min(Pe,100)-at)):Ve[$e]=et;let ze=p()[0].time;if(ze!==0){let rt=ze/n(Ce)*100;Ve.unshift({from:0,width:rt,loadedWidth:Math.min(rt,xe),filledWidth:Math.min(rt,Pe)})}return Ve}function Te(xe){return Math.max(0,Math.min(100,xe*100))}var Le=Sx(),Ue=de(Le);{var Nt=xe=>{var Pe=xx();let Pt;Ti(Pe,21,()=>n(se),Ve=>Ve.from,(Ve,at)=>{var gt=Me(),$e=de(gt);{var et=ze=>{Mm(ze,{get videoEpisode(){return n(at)},get disabled(){return $()}})};V($e,ze=>{n(at).interactive&&ze(et)})}_(Ve,gt)}),w(Pe),B(Ve=>Pt=re(Pe,1,"interactive-icons s-h",null,Pt,Ve),[()=>({mobile:s(),hidden:s()&&!n(Ke)})]),_(xe,Pe)};V(Ue,xe=>{f()&&xe(Nt)})}var tt=k(Ue,2);let Bt;tt.__pointerdown=[hx,i,A,$,Ke,Fe,b],tt.__pointermove=[_x,$,Fe,qe,R,A,Ke,S],tt.__pointerup=[bx,$,Ke,Fe,C],tt.__click=[$x,$,le,Fe],tt.__contextmenu=[yx,Fe,$,le,Ke,Z];var Gt=T(tt);{var Ct=xe=>{Vm(xe,{get videoEpisodes(){return n(se)},get disabled(){return $()},get isMobile(){return s()}})},ti=xe=>{var Pe=wx(),Pt=T(Pe),Ve=k(Pt,2);let at;w(Pe),B((gt,$e,et)=>{Qe(Pt,gt),at=re(Ve,1,"filled s-h",null,at,$e),Qe(Ve,et)},[()=>`transform: translateX(${Te(j())}%);`,()=>({"active-live":d()}),()=>`transform: translateX(${Te(ie())}%);`]),_(xe,Pe)};V(Gt,xe=>{n(se).length?xe(Ct):xe(ti,!1)})}var Ft=k(Gt,2);let ye;var be=T(Ft);let ee;w(Ft),w(tt),nt(tt,xe=>i(xe),()=>i()),B((xe,Pe,Pt,Ve)=>{var at,gt;Bt=re(tt,1,`slider ${(at=o())!=null?at:""}`,"s-h",Bt,xe),We(tt,"aria-label",ge()),We(tt,"aria-valuemin",ce()),We(tt,"aria-valuemax",ne()),We(tt,"aria-valuenow",_e()),We(tt,"aria-valuetext",we()),We(tt,"data-testid",(gt=r())!=null?gt:null),ye=re(Ft,1,"handleWrap s-h",null,ye,Pe),Qe(Ft,Pt),ee=re(be,1,"handle s-h",null,ee,Ve)},[()=>({disabled:$(),"slider-dragging":n(Ke),hidden:a(),"handle-always-visible":Oe(),"slider-vertical":l(),"no-handle":y(),square:u()}),()=>({hidden:y()}),()=>`transform: translateX(${Te(Y())}%);`,()=>({"active-live":d()})]),$t("pointerenter",tt,De),$t("pointerleave",tt,Be),$t("mouseenter",tt,J),$t("mouseleave",tt,X),$t("wheel",tt,Se),_(t,Le),H()}st(["pointerdown","pointermove","pointerup","click","contextmenu"]);var io=(t,e)=>Oa[t]>=Oa[e],_b=(t,e)=>Oa[t]<Oa[e],Vs=(t,e)=>Oa[t]<=Oa[e],bb=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 Rm(t,e){var qe,Ye;F(e,!0),q(t,Px);let[i,o]=Re(),r=()=>x(R,"$isAudioAvailable$",i),a=()=>x(f,"$muted$",i),l=()=>x(m,"$volume$",i),d=()=>x(S,"$currentGridType$",i),s=()=>x(De,"$controlsVisible",i),u=ve(),p=Rt(),m=u.state.volume$,f=u.state.muted$,{setVolume:$,startVolumeChanging:y,stopVolumeChanging:b}=u.actions.internal,S=u.ui.currentGridType$,C=(qe=u.callbacks)==null?void 0:qe.onAudioDoesNotExistHint,I=(Ye=u.callbacks)==null?void 0:Ye.onAudioDisabledHint,R=u.state.isAudioAvailable$,E=u.state.isAudioDisabled,P=u.ui.t,O=K(!1),D,U=v(()=>e.isAds||r()),z=v(()=>!n(U)||a()||l()===0),G=v(()=>Vs(d(),"s")),le=v(()=>n(G)?"":n(z)?!r()||E?P("tooltip_sound_unavailable"):P("tooltip_volume"):P("tooltip_volume_muted")),j=v(()=>n(z)?P("tooltip_volume"):P("tooltip_volume_muted")),ie=v(()=>n(z)?0:l()),Y=!1,ge=v(()=>e.isAds?!1:E?!I:r()?!1:!C);function ce(Te){y(),$(Te)}function ne(){np(u,l(),p.controls.volumeStepWheel)}function _e(){rp(u,l(),p.controls.volumeStepWheel)}function we(Te){$(Te)}function Z(Te){$(Te),b()}function Oe(){Y=!0}function ue(){Y=!1,Ce()}function A(){clearTimeout(D),N(O,!0)}function Ke(){Ce()}function Ce(){D=window.setTimeout(()=>{Y||N(O,!1)},p.controls.volumeBarTimeout)}function pe(Te){Te.preventDefault(),Te.deltaY<0?ne():Te.deltaY>0&&_e()}let se=K(!1),De=u.ui.controlsVisible;Ne(()=>{s()||N(se,!1)});var Be=Ex();let J;var X=T(Be);Ya(X,{get content(){return n(le)},translateY:-18,get active(){return n(se)},set active(Te){N(se,Te,!0)},children:(Te,Le)=>{let Ue=v(()=>n(G)?"btn-volume-vertical":"btn-volume-horizontal");Wt(Te,{className:"btn-full-opacity",get disabled(){return n(ge)},get testId(){return n(Ue)},get ariaLabel(){return n(j)},get click(){return e.click},get ariaKeyShortCut(){return _s.KeyM},role:"button",children:(Nt,tt)=>{ca(Nt,{get size(){return"24"},get volume(){return l()},get muted(){return n(z)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var Se=k(X,2);{var Fe=Te=>{var Le=Ix();let Ue;var Nt=T(Le);let tt=v(()=>n(G)?"volumeBar-slider-vertical":""),Bt=v(()=>n(G)&&!n(O)),Gt=v(()=>n(G)?Oe:_c.noop),Ct=v(()=>n(G)?ue:_c.noop),ti=v(()=>Math.round(n(ie)*100)),Ft=v(()=>`${Math.round(n(ie)*100)}%`),ye=v(()=>n(G)?"volume-slider-vertical":"volume-slider");ja(Nt,{get className(){return n(tt)},get isHidden(){return n(Bt)},get isVertical(){return n(G)},withWheelHandler:!0,onWheelUp:ne,onWheelDown:_e,onPointerDown:ce,onHandleMove:we,onPointerUp:Z,get onPointerEnter(){return n(Gt)},get onPointerLeave(){return n(Ct)},ariaLabel:"Ползунок громкости",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return n(ti)},get ariaValueText(){return n(Ft)},get filledProgress(){return n(ie)},get handleProgress(){return n(ie)},get testId(){return n(ye)}}),w(Le),B(be=>Ue=re(Le,1,"volumeBar s-28",null,Ue,be),[()=>({"volumeBar-vertical":n(G)})]),_(Te,Le)};V(Se,Te=>{n(U)&&Te(Fe)})}w(Be),B(Te=>J=re(Be,1,"volumeBar-container s-28",null,J,Te),[()=>({vertical:n(G)})]),$t("mouseenter",Be,function(...Te){var Le;(Le=n(G)?A:_c.noop)==null||Le.apply(this,Te)}),$t("mouseleave",Be,function(...Te){var Le;(Le=n(G)?Ke:_c.noop)==null||Le.apply(this,Te)}),$t("wheel",Be,pe),_(t,Be),H(),o()}var $b=require("@vkontakte/videoplayer-shared/es2015");var Ax=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>'),kx=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 Nm(t,e){let i=g(e,"isFullscreen",8,!1),o=En(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");Je(t,{get testId(){return n(o)},children:(r,a)=>{var l=Me(),d=de(l);{var s=p=>{var m=Ax();_(p,m)},u=p=>{var m=kx();_(p,m)};V(d,p=>{i()?p(s):p(u,!1)})}_(r,l)},$$slots:{default:!0}})}function bc(t,e){F(e,!0);let i=g(e,"isFullscreen",3,!1),o=g(e,"click",3,$b.noop),r=ve(),a=r.ui.isFullscreenOpenedByKeyboard,l=r.ui.t,d=v(()=>i()?l("tooltip_fullscreen_on"):l("tooltip_fullscreen_off"));Wt(t,{testId:"btn-fullscreen",get ariaLabel(){return n(d)},click:u=>{let p=sa(u);a.set(p),o()()},get ariaKeyShortCut(){return _s.KeyF},role:"button",children:(u,p)=>{Nm(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=Vn(e,["$$slots","$$events","$$legacy","children"]);var o=Lx();to(o,()=>Ae({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"vk-logo-icon",role:"img"},i));var r=T(o);ni(r,()=>{var a;return(a=e.children)!=null?a:bt}),vi(),w(o),_(t,o)}var Mx=Ie('<svg><!><svg data-logo="vk_video"><path d="M7 8.6c0-1.96 0-2.94.38-3.69a3.5 3.5 0 0 1 1.53-1.53C9.66 3 10.64 3 12.6 3h1.36c2.46 0 3.7 0 4.64.48a4.4 4.4 0 0 1 1.92 1.92c.48.94.48 2.18.48 4.64v3.92c0 2.46 0 3.7-.48 4.64a4.4 4.4 0 0 1-1.92 1.92c-.94.48-2.18.48-4.64.48H12.6c-1.96 0-2.94 0-3.69-.38a3.5 3.5 0 0 1-1.53-1.53C7 18.34 7 17.36 7 15.4zm9.26 1.74c.9.54 1.36.81 1.51 1.16.13.3.13.65 0 .96-.15.34-.6.61-1.5 1.15l-2.4 1.43c-.93.56-1.4.84-1.8.8-.33-.03-.64-.2-.84-.48-.23-.31-.23-.86-.23-1.96v-2.85c0-1.1 0-1.64.23-1.96q.31-.42.85-.48c.38-.04.86.25 1.8.8zM5 9.04c0-2.46 0-3.7.48-4.64q.37-.71.95-1.25-.58.1-1.03.33A4.4 4.4 0 0 0 3.48 5.4C3 6.34 3 7.58 3 10.04v3.92c0 2.46 0 3.7.48 4.64a4.4 4.4 0 0 0 1.92 1.92q.45.23 1.03.33a4 4 0 0 1-.95-1.25C5 18.66 5 17.42 5 14.96z"></path></svg><svg x="4" y="3" data-logo="play_market"><path d="M0 1.26v15.47q0 .66.34 1L9.52 9 .33.28C.08.53 0 .92 0 1.26"></path><path d="M.33.28.38.23c.34-.3.89-.32 1.49 0l10.75 5.81-2.6 2.48zm10.29 8.75 2.88 2.45-.53.29-.34.18-2.58-2.44-9.71 8.22c.33.34.9.37 1.53.04l11.1-6 .53-.29 2.73-1.47c1.03-.56 1.03-1.47 0-2.02l-2.77-1.5-.84-.45.84.45.1.05z"></path></svg><svg x="3" data-logo="app_store"><path d="M17.62 16.37q-.48 1.09-1.15 2.03-.9 1.27-1.48 1.75-.88.8-1.9.83-.72 0-1.76-.42a5 5 0 0 0-1.89-.4q-.9 0-1.94.4a5 5 0 0 1-1.68.44q-.98.04-1.95-.85-.62-.53-1.55-1.82a13 13 0 0 1-1.63-3.2 12 12 0 0 1-.69-3.8q0-2.1.93-3.64A5.4 5.4 0 0 1 5.5 5.03q.77 0 2.03.46t1.62.47q.26 0 1.79-.55a6 6 0 0 1 2.43-.42 5.2 5.2 0 0 1 4.05 2.09q-2.4 1.44-2.4 4.02a4.4 4.4 0 0 0 1.49 3.34q.66.61 1.48.95-.18.5-.38.98M13.5.42q0 1.58-1.17 2.94c-.94 1.08-2.07 1.7-3.3 1.6L9 4.56c0-1 .45-2.08 1.24-2.96q.6-.67 1.5-1.12.93-.44 1.74-.48z"></path></svg><path d="M32.55 17.04h2.5L38.7 7h-1.8l-2.94 8.28h-.28L30.84 7H29zm15.52 0-4.61-5.2L47.72 7H45.6l-3.56 4.09h-.42V7h-1.7v10.04h1.7v-4.3h.43l3.76 4.3z"></path><path d="M57.89 11.89a2.2 2.2 0 0 0 1.44-2.16C59.33 8.14 58 7 56.06 7h-3.92v10.04h4.2c1.96 0 3.29-1.14 3.29-2.8 0-1.17-.66-2.04-1.74-2.35m-4.04-3.4h2.21c.92 0 1.54.56 1.54 1.39 0 .8-.62 1.36-1.54 1.36h-2.2zm2.5 7.06h-2.5v-2.81h2.5c.9 0 1.52.57 1.52 1.4 0 .84-.62 1.4-1.52 1.4m4.84 1.5h2.32l2.77-5.5h.22v5.5h1.57v-7.4h-2.32l-2.77 5.5h-.22v-5.5h-1.57zm7.96 2.21h1.64v-2.2h5.33v2.2h1.64v-3.7h-1.29V9.64h-5.43l-.37 3.78c-.13 1.34-.53 2.13-1.34 2.13h-.18zm2.49-3.7c.4-.39.57-1.04.68-2.15l.23-2.27h2.28v4.42zm14.38-2.3a3.7 3.7 0 0 0-3.84-3.76 3.7 3.7 0 0 0-3.85 3.85 3.7 3.7 0 0 0 3.85 3.84c1.54 0 2.99-.72 3.55-2.13l-1.54-.26c-.36.53-1.04.9-1.91.9-1.26 0-2.09-.77-2.24-1.91H86zm-3.84-2.33c1.02 0 1.8.65 2.06 1.58h-4.1a2.1 2.1 0 0 1 2.04-1.58m8.66 6.26c2.32 0 3.96-1.6 3.96-3.84 0-2.25-1.64-3.85-3.96-3.85s-3.97 1.6-3.97 3.85 1.64 3.84 3.97 3.84m0-1.5c-1.34 0-2.25-.95-2.25-2.34 0-1.4.9-2.35 2.25-2.35 1.34 0 2.25.95 2.25 2.35s-.91 2.35-2.25 2.35" class="_ru"></path><path d="M35.02 17.36h-2.48L29 7.42h1.83l2.83 8.2h.28l2.93-8.2h1.8zm8.41-5.15 4.6 5.15h-2.24l-3.75-4.26h-.43v4.26h-1.7V7.42h1.7v4.05h.41l3.55-4.05h2.1zm13.37 5.15h-2.48L50.8 7.42h1.83l2.82 8.2h.29l2.92-8.2h1.8zm6.46 0h-1.64v-7.33h1.64zm-.81-8.37q-.45 0-.74-.27a1 1 0 0 1-.28-.72q0-.44.28-.72.3-.28.74-.28t.72.28q.3.29.29.72 0 .44-.29.72t-.72.27m5.93 8.51q-1.03 0-1.86-.48a3.5 3.5 0 0 1-1.29-1.35 4 4 0 0 1-.45-1.98q0-1.1.45-1.95.46-.88 1.3-1.36.81-.5 1.85-.5.9 0 1.6.38.68.35 1.13.88V7.42h1.63v9.94h-1.22l-.34-1.18q-.46.54-1.17.94a3.4 3.4 0 0 1-1.63.38m.4-1.45q1.04 0 1.68-.65.65-.66.65-1.7t-.65-1.7a2.2 2.2 0 0 0-1.68-.66 2.2 2.2 0 0 0-1.66.66q-.64.66-.64 1.7t.64 1.7q.64.65 1.66.65m13.15-2.44-.03.52h-5.94q.12.86.71 1.38.6.51 1.52.51.63 0 1.13-.24.51-.24.78-.65l1.53.26q-.39 1.01-1.38 1.56-.96.55-2.16.55-1.1 0-1.98-.48a3.6 3.6 0 0 1-1.85-3.33q0-1.1.48-1.95.5-.88 1.37-1.36a4 4 0 0 1 1.98-.5q1.11 0 1.98.5.88.48 1.36 1.34.5.86.5 1.89m-3.84-2.31q-.73 0-1.29.42-.53.42-.74 1.14h4.1a2.2 2.2 0 0 0-2.07-1.56m8.66 6.2q-1.14 0-2.04-.48a3.7 3.7 0 0 1-1.4-1.35 4 4 0 0 1-.5-1.98q0-1.1.5-1.95.5-.88 1.4-1.36.9-.5 2.04-.5t2.03.5q.91.48 1.4 1.36.52.86.52 1.95 0 1.11-.51 1.98-.5.86-1.4 1.35-.9.48-2.04.48m0-1.48q.99 0 1.62-.63.63-.66.63-1.7t-.63-1.67a2.2 2.2 0 0 0-1.62-.65q-.99 0-1.62.65-.62.63-.62 1.67 0 1.05.62 1.7.63.63 1.62.63" class="_en"></path></svg>');function Dm(t,e){let i=Vn(e,["$$slots","$$events","$$legacy","children"]);var o=Mx();to(o,()=>Ae({xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"var(--btn-color, #fff)","fill-rule":"evenodd","aria-hidden":"true","clip-rule":"evenodd",viewBox:"0 0 95 24",role:"img"},i));var r=T(o);ni(r,()=>{var a;return(a=e.children)!=null?a:bt}),vi(6),w(o),_(t,o)}var Vx={hash:"s-2a",code:"svg [data-logo],svg[data-testid=vk-video-logo-icon--en] ._ru,svg[data-testid=vk-video-logo-icon--short] ._en,svg[data-testid=vk-video-logo-icon--short] ._ru,svg[data-testid=vk-video-logo-icon] ._en{opacity:0;visibility:hidden}svg[data-logo=app_store] [data-logo=app_store],svg[data-logo=play_market] [data-logo=play_market],svg[data-logo=vk_video] [data-logo=vk_video]{opacity:1;visibility:visible}"};function Bm(t,e){F(e,!0),q(t,Vx);let i=g(e,"short",3,!1),o=g(e,"isCyrillic",3,!0),r=g(e,"logo",19,()=>"vk_video"),a="vk-video-logo-icon--short",l=24,d=v(()=>!o()&&!i()?91:i()?l:95),s=v(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?a:"vk-video-logo-icon"),u=v(()=>`0 0 ${n(d)} 24`);Dm(t,{get width(){return n(d)},height:"24",get viewBox(){return n(u)},get"data-testid"(){return n(s)},get"data-logo"(){return r()}}),H()}function $c(t,e){F(e,!0);let[i,o]=Re(),r=()=>x($,"$isMobile",i),a=()=>x(f,"$currentGridType$",i),l=()=>x(b,"$isCyrillicRelatedInterface$",i),d=g(e,"ref",15,void 0),s=g(e,"logoClickable",3,!1),u=g(e,"targetUrl",3,""),p=Rt(),m=ve(),f=m.ui.currentGridType$,$=m.ui.isMobile,y=m.ui.t,b=m.isCyrillicRelatedInterface$,S=v(()=>p.logoType!=="vk"),C=v(()=>n(S)?y("tooltip_vk_video_logo"):y("tooltip_vk_logo")),I=v(()=>(r()&&Vs(a(),"m")||Vs(a(),"l"))&&n(S)),R=()=>{var O,D;e.click(),(O=m.callbacks)!=null&&O.onLogoClicked?(D=m.callbacks)==null||D.onLogoClicked():u()&&window.open(u(),"_blank")},E=v(()=>!s()),P=v(()=>n(S)?"btn-vk-video-logo":"btn-vk-logo");Wt(t,{className:"btn-full-opacity",get disabled(){return n(E)},click:R,get testId(){return n(P)},get ariaLabel(){return n(C)},get ref(){return d()},set ref(O){d(O)},children:(O,D)=>{var U=Me(),z=de(U);{var G=j=>{Bm(j,{get logo(){return p.logoType},get short(){return n(I)},get isCyrillic(){return l()}})},le=j=>{Om(j,{})};V(z,j=>{n(S)?j(G):j(le,!1)})}_(O,U)},$$slots:{default:!0}}),H(),o()}var xb=require("@vkontakte/videoplayer-core/es2015");var Fm=require("@vkontakte/videoplayer-core/es2015");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-18"></path><path d="M3.6 9.7a8.7 8.7 0 0 1 8.68 9.37.9.9 0 0 1-1.8-.14c.02-.17.02-.35.02-.53a6.9 6.9 0 0 0-7.43-6.88.9.9 0 0 1-.14-1.8l.67-.02ZM3.6 16.9a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3Z" class="s-18"></path><path d="M16.24 4.1c.8 0 1.47 0 2 .04a4 4 0 0 1 1.53.38 3.9 3.9 0 0 1 1.7 1.71 4 4 0 0 1 .39 1.53c.04.53.04 1.2.04 2v4.48c0 .8 0 1.47-.04 2a4 4 0 0 1-.38 1.53 3.9 3.9 0 0 1-1.7 1.7 4 4 0 0 1-1.54.39c-.53.04-1.2.04-2 .04H15a.9.9 0 0 1 0-1.8h1.2c.85 0 1.44 0 1.9-.04.44-.03.68-.1.85-.19.4-.2.72-.52.92-.92.09-.17.16-.4.2-.85.03-.46.03-1.05.03-1.9V9.8c0-.85 0-1.44-.04-1.9-.03-.44-.1-.68-.19-.85a2.1 2.1 0 0 0-.92-.92 2.25 2.25 0 0 0-.85-.2 25.9 25.9 0 0 0-1.9-.03H5.83a2.1 2.1 0 0 0-1.81 1.4.9.9 0 1 1-1.7-.6A3.9 3.9 0 0 1 6 4.1h10.24Z" class="s-18"></path>',1),Nx=Ie('<path d="M1 18v3h3c0-1.66-1.34-3-3-3z"></path><path d="M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z"></path><path d="M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z"></path><path d="M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" class="s-18"></path><path d="M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z"></path>',1),Ox={hash:"s-18",code:".animated.s-18{animation-duration:1s;animation-iteration-count:infinite}.wave1.animated.s-18{animation-name:s-18-wave1}.wave2.animated.s-18{animation-name:s-18-wave2}.wave3.animated.s-18{animation-name:s-18-wave3}@keyframes s-18-wave1{0%{opacity:.3}33%{opacity:1}66%{opacity:1}to{opacity:1}}@keyframes s-18-wave2{0%{opacity:.3}33%{opacity:.3}66%{opacity:1}to{opacity:1}}@keyframes s-18-wave3{0%{opacity:.3}33%{opacity:.3}66%{opacity:.3}to{opacity:1}}"};function yc(t,e){F(e,!0),q(t,Ox);let i=g(e,"isMobile",3,!1),o=v(()=>e.iconState===Fm.ChromecastState.CONNECTED),r=v(()=>e.iconState===Fm.ChromecastState.CONNECTING),a=v(()=>n(o)?"#2688EB":ia),l=v(()=>e.size?bn(e.size):void 0);var d=Me(),s=de(d);{var u=m=>{Je(m,{get fill(){return n(a)},get style(){return n(l)},testId:"chromecast-mobile-icon",children:(f,$)=>{var y=Rx();vi(2),_(f,y)},$$slots:{default:!0}})},p=m=>{Je(m,{get style(){return n(l)},testId:"chromecast-icon",children:(f,$)=>{var y=Nx(),b=de(y);let S;var C=k(b);let I;var R=k(C);let E;var P=k(R,2);let O;B((D,U,z,G)=>{S=re(b,0,"wave1 s-18",null,S,D),I=re(C,0,"wave2 s-18",null,I,U),E=re(R,0,"wave3 s-18",null,E,z),O=re(P,0,"s-18",null,O,G)},[()=>({animated:n(r)}),()=>({animated:n(r)}),()=>({animated:n(r)}),()=>({hidden:!n(o)})]),_(f,y)},$$slots:{default:!0}})};V(s,m=>{i()?m(u):m(p,!1)})}_(t,d),H()}var wb=require("@vkontakte/videoplayer-shared/es2015");function xc(t,e){F(e,!0);let i=g(e,"ref",15,void 0),o=g(e,"isMobile",3,!1),r=g(e,"click",3,wb.noop),l=ve().ui.t,d=v(()=>e.state===xb.ChromecastState.CONNECTED?l("tooltip_chromecast_on"):l("tooltip_chromecast_off"));Wt(t,{get ariaLabel(){return n(d)},get click(){return r()},testId:"btn-chromecast",get ref(){return i()},set ref(s){i(s)},children:(s,u)=>{yc(s,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),H()}var Sb=require("@vkontakte/videoplayer-shared/es2015");var Dx=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 Hm(t){Je(t,{testId:"episodes-icon",children:(e,i)=>{var o=Dx();vi(2),_(e,o)},$$slots:{default:!0}})}var dp=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var Bx=L('<span class="text mobile s-24"> </span> <div class="chevron-episodes s-24" data-testid="btn-episodes_icon"><!></div>',1),Fx=L('<span class="text s-24"> </span>'),Hx=L('<span class="text count s-24"> </span>'),Ux=L("<!> <!>",1),zx={hash:"s-24",code:".text.s-24{overflow:hidden;padding:0 8px;text-overflow:ellipsis;white-space:nowrap}.text.count.s-24{overflow:visible}.text.mobile.s-24{padding:0 3px 0 4px}.chevron-episodes.s-24{margin-bottom:-6px;opacity:.7;transform:scale(.8)}"};function wc(t,e){var Y,ge,ce;F(e,!0),q(t,zx);let[i,o]=Re(),r=()=>x(y,"$currentGridType$",i),a=()=>x(b,"$openedByKeyboard$",i),l=()=>x(S,"$panelOpened$",i),d=()=>x(C,"$isMobile",i),s=g(e,"position",3,0),u=g(e,"duration",3,0),p=g(e,"timeCodes",19,()=>[]),m=ve(),f=(ge=(Y=m.callbacks)==null?void 0:Y.onEpisodeChanged)!=null?ge:Sb.noop,$=!!((ce=m.callbacks)!=null&&ce.onEpisodeClicked),y=m.ui.currentGridType$,b=m.ui.episodes.openedByKeyboard$,S=m.ui.episodes.panelOpened$,C=m.ui.isMobile,I=m.ui.t,R=K(void 0),E=ne=>{var we,Z,Oe;if(!!((we=m.callbacks)!=null&&we.onEpisodeClicked)){let ue=sa(ne);b.set(ue),S.set(!0),(Oe=(Z=m.callbacks)==null?void 0:Z.onEpisodeClicked)==null||Oe.call(Z,ue)}},P=K(null),O=v(()=>s()/u());Ne(()=>{var _e;let ne=dp(n(O),u(),p());ne?((_e=n(P))==null?void 0:_e.time)!==ne.time&&(f(ne),N(P,ne,!0)):N(P,null)});let D=v(()=>{var ne;return((ne=n(P))==null?void 0:ne.text)||""}),U=v(()=>io(r(),"xl")?"FULL":io(r(),"m")&&_b(r(),"xl")?"COUNT":"SHORT"),z=v(()=>`${I("tooltip_episodes")}: ${n(D)}`),G=(ne,_e,we)=>_t(null,null,function*(){yield bo(),(ne==null?void 0:ne.getAttribute("aria-expanded"))==="false"&&_e&&!we&&kt(()=>{b.set(!1),ne.focus()})});Ne(()=>{G(n(R),a(),l())});var le=Me(),j=de(le);{var ie=ne=>{let _e=v(()=>d()?"px-0":""),we=v(()=>!$);Wt(ne,{get className(){var Z;return`w-max btn-full-opacity btn-jc-l ${(Z=n(_e))!=null?Z:""}`},testId:"btn-episodes",click:E,get disabled(){return n(we)},get ariaExpanded(){return l()},get ariaLabel(){return n(z)},get ref(){return n(R)},set ref(Z){N(R,Z,!0)},children:(Z,Oe)=>{var ue=Me(),A=de(ue);{var Ke=pe=>{var se=Bx(),De=de(se),Be=T(De,!0);w(De);var J=k(De,2),X=T(J);Vr(X,{direction:"right"}),w(J),B(()=>fe(Be,n(D))),_(pe,se)},Ce=pe=>{var se=Ux(),De=de(se);Hm(De,{});var Be=k(De,2);{var J=Se=>{var Fe=Fx(),qe=T(Fe,!0);w(Fe),B(()=>fe(qe,n(D))),_(Se,Fe)},X=(Se,Fe)=>{{var qe=Ye=>{var Te=Hx(),Le=T(Te,!0);w(Te),B(()=>fe(Le,p().length)),_(Ye,Te)};V(Se,Ye=>{n(U)==="COUNT"&&Ye(qe)},Fe)}};V(Be,Se=>{n(U)==="FULL"?Se(J):Se(X,!1)})}_(pe,se)};V(A,pe=>{d()?pe(Ke):pe(Ce,!1)})}_(Z,ue)},$$slots:{default:!0}})};V(j,ne=>{n(P)&&ne(ie)})}_(t,le),H(),o()}var dv=require("@vkontakte/videoplayer-shared/es2015");var hi=require("@vkontakte/videoplayer-core/es2015"),lt=require("@vkontakte/videoplayer-shared/es2015"),$s=require("@vkontakte/videoplayer-statistics/es2015");var Ge=require("@vkontakte/videoplayer-shared/es2015"),oo=require("@vkontakte/videoplayer-shared/es2015");var Wx="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",cp=class{constructor(e,i){this.adman=null;this.initialVolume=1;this.videoElement=null;this.currentAdSection=null;this.actions=null;this.adsState=null;this.playerState=null;this.events={init$:new 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=>(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[(0,Ge.now)()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((i,o)=>{let r;this.events.loadStarted$.next();let a=()=>{clearTimeout(r),delete window.admanAsyncInit,window.AdmanHTML?(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[(0,Ge.now)()]}),i(),this.events.loadEnded$.next()):(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[(0,Ge.now)()]}),o())};(0,oo.addScript)(Wx,e,this.loadTimeout).then(()=>{Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[(0,Ge.now)()]}),window.AdmanHTML?(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[(0,Ge.now)()]}),i(),this.events.loadEnded$.next()):(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[(0,Ge.now)()]}),window.admanAsyncInit=a,r=window.setTimeout(a,this.initTimeout))}).catch(l=>{Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(l)],numbers:[(0,Ge.now)()]}),o(),clearTimeout(r)})});this.loadAdmanNPM=e=>new Promise((i,o)=>{let r;this.events.loadStarted$.next();let a=()=>{clearTimeout(r),delete window.admanAsyncInit,window.AdmanHTML?(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[(0,Ge.now)()]}),i(),this.events.loadEnded$.next()):(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[(0,Ge.now)()]}),o())},l=()=>{d=!0,o()},d=!1,s=window.setTimeout(()=>{Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[(0,Ge.now)()]}),l()},this.loadTimeout);e.addEventListener("abort",l),e.aborted&&(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[(0,Ge.now)()]}),l()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[(0,Ge.now)()]}),!d&&(window.AdmanHTML?(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[(0,Ge.now)()]}),i(),this.events.loadEnded$.next()):(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[(0,Ge.now)()]}),window.admanAsyncInit=a,r=window.setTimeout(a,this.initTimeout)))},l).finally(()=>{clearTimeout(r),clearTimeout(s),e.removeEventListener("abort",l)})});this.onAdsReady=()=>{Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[(0,Ge.now)()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{var o;Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[(0,Ge.now)(),i.bannerID]}),this.adsState&&this.playerState&&this.actions?(this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(i)}`}),this.events.started$.next(e),i.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"})),this.adsState.duration.set(i.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(i.allowClose),this.adsState.secondsToWatchBeforeSkip.set(i.allowCloseDelay),this.startWatchDog(),(o=this.externalApi)!=null&&o.videoTrackAdEvent&&this.safeExternalCall(this.externalApi.videoTrackAdEvent,e,String(i.bannerID))):this.onAdError("Started callback failed: Adman is not initialized")};this.onAdTimeRemained=e=>{var o;((o=this.adsState)!=null&&o.playbackState?he(this.adsState.playbackState):void 0)!=="inactive"&&(this.adsState?(this.adsState.position.set(e.currentTime),this.events.timeRemained$.next(e),this.startWatchDog()):this.onAdError("TimeRemained callback failed: Adman state is not initialized"))};this.onAdPaused=()=>{var e;Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.now)()]}),this.stopWatchDog(),this.adsState?(this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")):this.onAdError("Paused callback failed: Adman state is not initialized")};this.onAdPlayed=()=>{var e;Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.now)()]}),this.startWatchDog(),this.adsState?(this.log({message:"ad played"}),this.adsState.playbackState.set("playing")):this.onAdError("Player callback failed: Adman is not initialized")};this.onAdMidrollPoint=()=>{if(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[(0,Ge.now)()]}),this.adman&&this.actions){this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch(e){this.onAdError("could not start midroll")}}else this.onAdError("Midroll callback failed: Adman is not initialized")};this.onAdSkipped=()=>{var e;Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.now)()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.now)()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.now)()]}),this.log({message:"ad completed"}),this.currentAdSection?(this.events.ended$.next(this.currentAdSection),this.currentAdSection==="postroll"&&this.setPostrollPassed(!0)):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{var e,i;Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.now)()]}),this.log({message:"ad clicked"}),(i=this.videoElement)==null||i.pause(),this.currentAdSection&&this.events.clicked$.next(this.currentAdSection),this.stopWatchDog()};this.onAdError=(e="ad error")=>{Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[(0,Ge.now)()]}),this.log({message:e}),this.events.error$.next(e),this.currentAdSection==="postroll"&&this.setPostrollPassed(!0),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[(0,Ge.now)()]}),this.loadTimeout=i.loadTimeout,this.initTimeout=i.initTimeout,this.runtimeTimeout=i.runtimeTimeout,this.useAdmanFromNPM=i.useAdmanFromNPM,this.volumeMultiplier=Math.max(0,Math.min(i.volumeMultiplier,1)),this.isVsidOriginal=i.isVsidOriginal}init(e,i,o){this.actions=e,this.adsState=i,this.playerState=o}onAdmanLoadingError(){this.onAdError("adman loading error")}initAdman(e){return _t(this,null,function*(){var R,E;if(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[(0,Ge.now)(),e.slotId]}),this.adman)return;this.events.init$.next(e.slotId),this.startWatchDog();let{width:i,height:o,isAutoplay:r,adsContainer:a,adsVideoElement:l,slotId:d,params:s={},paramsOverride:u={},duration:p,externalApi:m}=e;this.externalApi=m;let f,$=this.playerState&&he(this.playerState.vsid);$&&(this.isVsidOriginal?f=$:f=parseInt($,36));let{isEmbed:y,immediateOrigin:b}=(0,Ge.detectEmbed)(),S=(R=y?b:window.location.href)!=null?R:window.location.href,C=Ae(Qt(Ae(Qt(Ae({},s),{dl:encodeURIComponent(S),autoplay:r?1:0,player_width:i,player_height:o}),f?{request_id:f}:{}),{duration:p}),u);C=Object.fromEntries(Object.entries(C).filter(([P,O])=>(0,Ge.isNonNullable)(O)));let I={slot:d,wrapper:a,videoEl:l,videoQuality:o,params:C,browser:{mobile:!1}};try{let P=new window.AdmanHTML;if(P.onReady(this.onAdsReady),P.onStarted(this.onAdStarted),P.onPlayed(this.onAdPlayed),P.onPaused(this.onAdPaused),P.adMidrollPoint(this.onAdMidrollPoint),P.onClosed(this.onAdClosed),P.onSkipped(this.onAdSkipped),P.onClicked(this.onAdClicked),P.onTimeRemained(this.onAdTimeRemained),P.onCompleted(this.onAdCompleted),P.onError(this.onAdError),P.setDebug(!1),(E=this.externalApi)!=null&&E.videoGetAds){let O=yield this.safeExternalCall(this.externalApi.videoGetAds,C);O&&(delete I.slot,delete I.params,Object.assign(I,{json:O}))}P.init(I),this.adman=P,this.videoElement=l,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(I)}`})}catch(P){Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(P)],numbers:[(0,Ge.now)()]}),this.onAdError("could not init adman")}})}switchToVideo(e=!1){var o,r,a;if(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[(0,Ge.now)()]}),this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}let i=this.currentAdSection==="postroll";if(this.actions){if(this.adsState&&this.playerState)this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.log({message:`switch to video, isPostroll: ${i}`});else{let l="Switch to video: Adman state was not updated correctly";this.log({message:l}),this.events.error$.next(l)}(a=(r=this.actions).switchFromAdsToVideo)==null||a.call(r,!i)}}setPostrollPassed(e){var i;(i=this.adsState)==null||i.postrollPassed.set(e),this.log({message:"postroll passed"})}togglePlay(){var e;if(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.now)()]}),this.adsState){this.log({message:"toggle play"});let i=he(this.adsState.playbackState);i==="playing"?this.pause():i==="paused"&&this.play()}else this.onAdError("Can not toggle play: Adman state is not initialized")}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){let i=e*this.volumeMultiplier;if(this.log({message:`set volume ${i}`}),this.adman)try{this.adman.setVolume(i)}catch(o){this.onAdError("could not set ad volume")}this.videoElement&&(this.videoElement.volume=i)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch(i){this.onAdError("could not set ad fullscreen")}}startPreroll(){if(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[(0,Ge.now)()]}),this.adman){if(!this.isDestroyed){this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.startWatchDog();try{this.adman.start("preroll")}catch(e){this.onAdError("could not start preroll")}}}else this.onAdError("Can not start preroll: Adman is not initialized")}startPostroll(){var e;if(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.now)()]}),this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch(i){this.onAdError("could not start postroll")}}else this.onAdError("Can not start postroll: Adman is not initialized")}startWatchDog(){this.watchDogTimeout&&this.stopWatchDog(),this.watchDogTimeout=window.setTimeout(()=>this.onAdError("Watchdog timeout"),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){var e;if(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.now)()]}),this.adman){this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch(i){this.onAdError("could not resume ad")}}else this.onAdError("Can not play: Adman is not initialized")}pause(){var e;if(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch(i){this.onAdError("could not pause ad")}}else this.onAdError("Can not pause: Adman is not initialized")}skip(){var e;if(Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ge.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch(i){this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}setPosition(e,i){var o;(o=this.adman)==null||o.setPosition(Math.floor(e),Math.floor(i))}destroy(){var e,i,o,r,a,l,d,s,u,p,m,f;Ge.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[(0,Ge.now)()]}),this.log({message:"destroy"}),this.stopWatchDog(),(e=this.adman)==null||e.onReady(void 0),(i=this.adman)==null||i.onStarted(void 0),(o=this.adman)==null||o.onPlayed(void 0),(r=this.adman)==null||r.onPaused(void 0),(a=this.adman)==null||a.adMidrollPoint(void 0),(l=this.adman)==null||l.onClosed(void 0),(d=this.adman)==null||d.onSkipped(void 0),(s=this.adman)==null||s.onClicked(void 0),(u=this.adman)==null||u.onTimeRemained(void 0),(p=this.adman)==null||p.onCompleted(void 0),(m=this.adman)==null||m.onError(void 0),(f=this.adman)==null||f.destroy(),this.videoElement&&(0,oo.clearVideoElement)(this.videoElement),this.isDestroyed=!0}safeExternalCall(e,...i){return _t(this,null,function*(){var o;try{return yield e(...i)}catch(r){return this.onAdError((o=r==null?void 0:r.message)!=null?o:"External call failed"),null}})}};var Tb=t=>{let e=Math.round(t);return isNaN(e)||e<40?"":e>=40&&e<55?50:e>=55&&e<90?60:e>=90&&e<180?120:e>=180?240:""};var Um=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e,i){let o=[],r=e.split(this.twoLinesRegExp);for(let a of r){let l={startTime:0,endTime:0,texts:[],lang:i},d=a.split(this.oneLineRegExp);for(let s of d)if(!l.startTime&&!l.endTime){let u=new up,{startTime:p,endTime:m}=u.parse(s);l.startTime=p,l.endTime=m}else if(s.trim()!==""){let u=new zm,{texts:p}=u.parse(s);l.texts=[...l.texts,...p]}(l.startTime||l.endTime)&&l.texts.length>0&&o.push(l)}return o}},up=class{constructor(){this.timeRegExp=/(\d{2,})?:?(\d{2}):(\d{2}).(\d{2,3})/;this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(e){let i={startTime:0,endTime:0},o=this.timingRegExp.exec(e);return o&&(i.startTime=this.calcTime(o[1],o[2],o[3],o[4]),i.endTime=this.calcTime(o[6],o[7],o[8],o[9])),i}parseTime(e){let i=this.timeRegExp.exec(e);return i?this.calcTime(i[1],i[2],i[3],i[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",i="0",o="0",r="0"){let a=Number(e)*60*60,l=Number(i)*60,d=Number(o),s=+`0.${r}`;return a+l+d+s}},zm=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},r=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](l){let d=0,s=[];for(;d<l.length;){let u=["<",">"].reduce((p,m)=>{let f=l.indexOf(m,d);return p===-1||p>f?f:p},-1);if(u===-1){s.push(l.substring(d));break}s.push(l.substring(d,u)),d=u+1}return s}}),a=new up;for(let l of r)a.isTime(l)?i.texts.push({type:"timestamp",value:a.parseTime(l)}):i.texts.push({type:"text",value:l});return i}},Cb=Um;var fp=require("@vkontakte/videoplayer-shared/es2015"),Xa,Mi,Wm=0,Km=!1,Ib="",Eb=(t,e=0,i=0)=>t<e&&t<i,pp=(t,e=0,i=0)=>t>=e&&t<=i,Kx=(t,e=0,i=0)=>t>e&&t>i,Pb=(t,e,i,o=!1)=>{var d;let r=(d=i.find(({id:s})=>s===e.value))==null?void 0:d.subtitles;if(o)return r==null?void 0:r.find(({startTime:u,endTime:p})=>pp(t,u,p));let a=t>=Wm,l=t<Wm;if(Wm=t,l&&(Km=!1),(0,fp.isNonNullable)(Xa)&&pp(t,Xa.startTime,Xa.endTime)&&Ib===e.value)return Xa;if(!(0,fp.isNonNullable)(Mi)&&(r!=null&&r.length)&&!Km){Mi=r.find(({startTime:u,endTime:p})=>pp(t,u,p)||a&&Eb(t,u,p)),Xa=void 0,!(0,fp.isNonNullable)(Mi)&&r[r.length-1].endTime<t&&(Km=!0);return}else{if(pp(t,Mi==null?void 0:Mi.startTime,Mi==null?void 0:Mi.endTime))return Xa=Mi,Mi=void 0,Ib=e.value,Xa;(a&&Kx(t,Mi==null?void 0:Mi.startTime,Mi==null?void 0:Mi.endTime)||l&&Eb(t,Mi==null?void 0:Mi.startTime,Mi==null?void 0:Mi.endTime))&&(Mi=void 0)}};var mp={ru:"Русский",en:"English",uk:"Українська",be:"Беларуская (тарашкевiца)",es:"Español",fi:"Suomi",de:"Deutsch",it:"Italiano",bg:"Български",hr:"Hrvatski",hu:"Magyar",sr:"Српски",pt:"Português",el:"Ελληνικά",pl:"Polski",fr:"Français",ko:"한국어","zh-CN":"汉语",lt:"Lietuvių",ja:"日本語",cs:"Čeština",et:"Eesti",tt:"Татарча",ba:"Башҡортса",cv:"Чăвашла",sk:"Slovenčina",ro:"Română",no:"Norsk",lv:"Latviešu",az:"Azərbaycan dili",hy:"Հայերեն",sv:"Svenska",nl:"Nederlands",tk:"Türkmen",ka:"ქართული",da:"Dansk",uz:"O‘zbek",th:"ภาษาไทย",id:"Bahasa Indonesia",tg:"Тоҷикӣ",sl:"Slovenščina",bs:"Bosanski","pt-BR":"Português brasileiro",fa:"فارسی",vi:"Tiếng Việt",hi:"हिन्दी",si:"සිංහල",bn:"বাংলা",tl:"Tagalog",mn:"Монгол",my:"ဗမာစာ",tr:"Türkçe",ne:"नेपाली",ur:"اردو",ky:"Кыргыз тили",pa:"پنجابی",os:"Ирон",kn:"ಕನ್ನಡ",sw:"Kiswahili",kk:"Қазақша",ar:"العربية",he:"עברית",ab:"Аҧсшәа",eu:"Euskara",eo:"Esperanto"},qx={abk:"as",ara:"ar",aze:"az",bak:"ba",bel:"be",ben:"bn",bos:"bs",bul:"bg",ces:"cs",chv:"cv",dan:"da",deu:"de",ell:"el",eng:"en",epo:"eo",est:"et",eus:"eu",fas:"fa",fin:"fi",fra:"fr",heb:"he",hin:"hi",hrv:"hr",hun:"hu",hye:"hy",ind:"id",ita:"it",jpn:"ja",kan:"kn",kat:"ka",kaz:"kk",kir:"ky",kor:"ko",lav:"lv",lit:"lt",mon:"mn",mya:"my",nep:"ne",nld:"nl",nor:"no",oss:"os",pan:"pa",pol:"pl",por:"pt",ron:"ro",rus:"ru",sin:"si",slk:"sk",slv:"sl",spa:"es",srp:"sr",swa:"sw",swe:"sv",tat:"tt",tgk:"tg",tgl:"tl",tha:"th",tuk:"tk",tur:"tr",ukr:"uk",urd:"ur",uzb:"uz",vie:"vi"},Sc=t=>{var e,i;return(i=(e=mp[t])!=null?e:mp[qx[t]])!=null?i:void 0};var Ab=require("@vkontakte/videoplayer-shared/es2015"),H7=require("@vkontakte/videoplayer-statistics/es2015"),vp=class{constructor(e,i,o,r=new Ab.Subscription){this.oneStat=e;this.thinOneStat=i;this.mediascopePixel=o;this.statSubscription=r}destroy(){var e,i,o;(e=this.oneStat)==null||e.destroy(),(i=this.thinOneStat)==null||i.destroy(),(o=this.mediascopePixel)==null||o.destroy(),this.statSubscription.unsubscribe()}};var Tc=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(Tc||{});var bs=t=>t!=null?t:0,Rs=(t,e)=>{var r,a;let i=(r=t==null?void 0:t.getBoundingClientRect)==null?void 0:r.call(t),o=(a=e==null?void 0:e.getBoundingClientRect)==null?void 0:a.call(e);return{top:Math.round(bs(i==null?void 0:i.top)-bs(o==null?void 0:o.top)),left:Math.round(bs(i==null?void 0:i.left)-bs(o==null?void 0:o.left)),bottom:Math.round(bs(i==null?void 0:i.bottom)-bs(o==null?void 0:o.top)),right:Math.round(bs(i==null?void 0:i.right)-bs(o==null?void 0:o.left))}},od=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:bs(e==null?void 0:e.width),height:bs(e==null?void 0:e.height)}};var On="off";var nd=t=>!!(Math.round(Math.abs(t)/90)%2);var kb=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:r,statAuthToken:a,isAudioDisabled:l,canDownload:d,callbacks:s,webApi:u,videoEpisodes:p,previewThumbsData:m,uiConfig:f,coreConfig:$,player:y,disabledControls:b,isInteractive:S,interactiveRanges$:C,isInteractiveTime$:I,replayInteractive:R,stopPlayer:E,hasInteractiveBranches:P,playPrevChapterDisabledTooltip:O,additionalButtons:D,additionalSettingsMenuItems:U,additionalContextMenuItems:z,playPrevVideo:G,playNextVideo:le,onVideoChanged:j,looped:ie=!1,statistics:Y,saveRate:ge,internalsExposure:ce,playerView:ne,playerId:_e})=>{var _g,bg,$g;let we=Qt(Ae({},$),{configName:[...(_g=$.configName)!=null?_g:[],"ui"],isAudioDisabled:l,live:Qt(Ae({},(bg=$.live)!=null?bg:{}),{isLiveCatchUpMode:!!r})}),Z=f,Oe=lt.TracerFactory.createRootTracer(Z.features.tracer),ue=Oe.createComponentTracer("Store"),A=y||new hi.Player(we,Oe,{playerId:_e});ce==null||ce.expose({corePlayer:A});let Ke=new lt.Logger,Ce=new cp(Ke,{loadTimeout:Z.ads.loadTimeout,initTimeout:Z.ads.initTimeout,runtimeTimeout:Z.ads.runtimeTimeout,useAdmanFromNPM:Z.ads.useAdmanFromNPM,volumeMultiplier:Z.ads.volumeMultiplier,isVsidOriginal:Z.ads.isVsidOriginal}),pe=Ha.getInstance(),se=u==null?void 0:u.pictureInPictureApi,De=u==null?void 0:u.annotationsApi,Be=u==null?void 0:u.slotsApi,J=Ke.createComponentLog("Store"),X,Se,Fe={},qe=new Fu,Ye=new lt.Subscription,Te="",Le=ae(!1),Ue=Y&&Y.oneStat?ci(Y.oneStat.vsid$):Mr(void 0),Nt=ae(oa()),tt=ae(!1),Bt=()=>X_(document,hi.clientChecker.device.isIOS),Gt=($g=se==null?void 0:se.info.isActive$)!=null?$g:new lt.ValueSubject(!1),Ct=ae(0),ti=ae(!1),Ft=ae(!1),ye=ae([]),be=(0,lt.merge)(A.events.fatalError$,A.events.managedError$).subscribe(c=>ye.update(h=>[...h,c])),ee=Mr(!1,c=>{let h=A.events.fatalError$.subscribe(()=>c(!0));return()=>h.unsubscribe()}),xe=c=>_t(null,null,function*(){var oe;let h=Object.values(lt.InterfaceLanguage).includes(c);if(Z.downloadVKLanguages&&(h&&Z.updateBuiltinLanguages||!nm(c))){let Ee;try{Ee=yield(0,lt.loadVKLangPack)(c,d_,c_)}catch(ot){(oe=Y==null?void 0:Y.oneStat)==null||oe.logError({errorType:"VKLangPack",fatal:!1}),pe==null||pe.report(ot,{errorType:"VKLangPack",fatal:!1})}Ee&&(om({language:c,pack:Ee,fallback:Z.defaultLanguage}),Pe.set(c),Pt.update(ot=>ot+1))}nm(c)&&Pe.set(c)}),Pe=ae(t),Pt=ae(0),Ve=ae(e);xe(t);let at=(c,h)=>{let M=he(Pe);return rm(M,c,h,Z.defaultLanguage)},gt=ae("thumb");gt.subscribe(c=>{c==="ads"&&A.info.playbackState$.getValue()&&ze()});let $e=(()=>{let c=bi([ee,gt],([h,M])=>h?"crashed":M);return Qt(Ae({},c),{is:h=>he(c)===h})})(),et=ae(),ze=()=>{et.set({muted:A.info.muted$.getValue()})},rt=(()=>{let c=ae(new Set(b));return Qt(Ae({},c),{add:h=>{c.update(M=>new Set([...M].concat(h)))},remove:h=>{c.update(M=>{let oe=[...M];return new Set(Array.isArray(h)?oe.filter(Ee=>!h.includes(Ee)):oe.filter(Ee=>Ee!==h))})},includes:h=>{let M=he(c);return Array.isArray(h)?h.every(oe=>M.has(oe)):M.has(h)}})})(),ii=ae({width:0,height:0}),ai=null,gi=A.info.isBuffering$,yi=Mr(gi.getValue(),c=>{let h=gi.subscribe(M=>{M&&ai===null?ai=window.setTimeout(()=>{c(gi.getValue()),ai=null},Z.loaderDelay):c(M)});return()=>{h.unsubscribe(),ai&&clearTimeout(ai)}});ue.log("create store"),J({message:"create store"});let ro=c=>{let h=c.container,M=()=>{ri=new MutationObserver(Ee=>{let{removedNodes:ot}=Ee[0];ot.length&&h.append(A.experimental.element$.getValue())}),ri.observe(h,{childList:!0})},oe=A.experimental.element$.getValue();if(oe)h.append(oe),M();else{let Ee=A.experimental.element$.pipe((0,lt.filter)(ot=>!!ot),(0,lt.once)()).subscribe(ot=>{h.append(ot),M()});Ye.add(Ee)}},$o=c=>{J({message:`init video, config: ${JSON.stringify(c)}`}),S?ro(c):(lt.devNull.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[(0,lt.now)()]}),A.initVideo(c)),ue.log("init video",{isInteractive:S}),c.subtitles&&A.setExternalTextTracks(c.subtitles),X=c,Te=c.subtitlesForcedLanguage||""},ui=new lt.Subject,pt=c=>ui.next(c),Ai=new lt.Subject,Zt=new lt.Subject,Tt=new lt.Subject,ri=null,Jt={actionRewind$:Ai,actionSeek$:Zt,inPiP$:Gt,inFullscreen$:new lt.Observable(c=>Nt.subscribe(h=>c.next(h))),actionSetSubtitle$:Tt,nextMovie$:ui},yt=new lt.Subject,je={actionSeek$:Zt,actionSubtitlesSwitched$:yt,playerSize$:new lt.Observable(c=>ii.subscribe(h=>c.next(h))),inPiP$:Gt,inFullscreen$:new lt.Observable(c=>Nt.subscribe(h=>c.next(h))),isLoaderVisible$:new lt.Observable(c=>yi.subscribe(h=>c.next(h)))};if(Y){let{oneStat:c,thinOneStat:h,mediascopePixel:M,statSubscription:oe}=Y;c&&(S||oe.add(c.attachTo(A)),oe.add(c.attachToUi(Jt)),oe.add(c.attachToAds(Ce.events)),c.authorize(a).catch(Ee=>{J({message:`onestat auth error ${String(Ee)}`})}),M&&M.attachTo(A)),h&&(oe.add(h.attachTo(A,Ce.events)),oe.add(h.attachToUi(je)),oe.add(h.attachToAds(Ce.events)),h.updateContext({isMobile:he(Le)}),h.authorize(a))}if(pe){let c=new lt.Subscription,h=(M,oe)=>c.add(M.subscribe(oe));if(h(A.events.managedError$,M=>{pe.logIError(M)}),h(A.events.fatalError$,M=>{pe.logIError(M,!0)}),Y){let{oneStat:M}=Y;M&&h(M.experimental.error$,oe=>{pe.logIError(oe)})}pe.sentrySubscription.add(c)}let Si=()=>{if(hi.clientChecker.device.isIOS&&Se)try{Z_(Se)}catch(c){J({message:`exitIosSafariFullscreen failed: ${c}`})}};Ye.add(A.experimental.element$.subscribe(c=>{c&&(Se=c,c.classList.add("player-media"),za(se)&&se.updateVideoElement(),S&&c.setAttribute("pip","false"),ne==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(A.events.ended$.subscribe(()=>{var c;Si(),(c=s==null?void 0:s.onEnded)==null||c.call(s)})).add(A.events.looped$.subscribe(()=>{var c;(c=s==null?void 0:s.onLooped)==null||c.call(s)})).add(A.events.started$.subscribe(()=>_t(null,null,function*(){var h,M;za(se)&&(yield se==null?void 0:se.revealPictureInPicture());let c=A.info.muted$.getValue();(h=s==null?void 0:s.onStarted)==null||h.call(s),(M=Fe.onStarted)==null||M.call(Fe,c)}))).add(A.events.willSeek$.subscribe(({from:c,to:h})=>{var M;(M=s==null?void 0:s.onSeek)==null||M.call(s,c,h)})).add(A.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=s==null?void 0:s.onAutoplaySoundProhibited)==null||c.call(s)})).add(A.info.position$.subscribe(c=>{var M;let h=A.info.duration$.getValue();isFinite(h)&&h>0&&((M=s==null?void 0:s.onTimeupdate)==null||M.call(s,h,c),Ce.setPosition(c,h))})).add(A.events.fatalError$.subscribe(c=>{var h;(h=s==null?void 0:s.onCrashed)==null||h.call(s,c?`${c.id}: ${c.message}`:void 0)})).add(A.events.fetcherRecoverableError$.subscribe(c=>{var h;(h=s==null?void 0:s.onRecoverableError)==null||h.call(s,c?`${c.id}: ${c.message}`:void 0)})).add(A.events.loadedMetadata$.subscribe(()=>{ti.set(!0)})).add(A.info.is3DVideo$.subscribe(c=>{Ft.set(c)})).add(A.info.isEnded$.subscribe(c=>{S&&(c?(I!=null&&I.getValue()&&rt.add(Xd),rt.add("PLAY_BUTTON")):rt.remove("PLAY_BUTTON"))})).add(A.info.liveTime$.subscribe(c=>{var h;(h=s==null?void 0:s.onLiveTime)==null||h.call(s,c)})).add(A.info.isStalled$.subscribe(c=>{var h;(h=s==null?void 0:s.onStalledChanged)==null||h.call(s,c)})).add(A.info.isLiveEnded$.subscribe(c=>{var h;return c&&((h=s==null?void 0:s.onLiveEnded)==null?void 0:h.call(s))})).add(Ce.events.loadStarted$.subscribe(()=>{var c,h;return(h=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onLoadStarted)==null?void 0:h.call(c)})).add(Ce.events.loadEnded$.subscribe(()=>{var c,h;return(h=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onLoadEnded)==null?void 0:h.call(c)})).add(Ce.events.loadError$.subscribe(()=>{var c,h;return(h=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onLoadError)==null?void 0:h.call(c)})).add(Ce.events.init$.subscribe(()=>{var c,h;return(h=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onInit)==null?void 0:h.call(c)})).add(Ce.events.ready$.subscribe(()=>{var c,h;return(h=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onReady)==null?void 0:h.call(c)})).add(Ce.events.started$.subscribe(c=>{var h,M;return(M=(h=s==null?void 0:s.adsInfo)==null?void 0:h.onStarted)==null?void 0:M.call(h,c)})).add(Ce.events.timeRemained$.subscribe(c=>{var h,M;return(M=(h=s==null?void 0:s.adsInfo)==null?void 0:h.onTimeRemained)==null?void 0:M.call(h,c)})).add(Ce.events.ended$.subscribe(c=>{var h,M;return(M=(h=s==null?void 0:s.adsInfo)==null?void 0:h.onCompleted)==null?void 0:M.call(h,c)})).add(Ce.events.empty$.subscribe(()=>{var c,h;return(h=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onEmpty)==null?void 0:h.call(c)})).add(Ce.events.clicked$.subscribe(c=>{var h,M;return(M=(h=s==null?void 0:s.adsInfo)==null?void 0:h.onClicked)==null?void 0:M.call(h,c)})).add(Ce.events.closed$.subscribe(c=>{var h,M;return(M=(h=s==null?void 0:s.adsInfo)==null?void 0:h.onClosed)==null?void 0:M.call(h,c)})).add(Ce.events.error$.subscribe(c=>{var h,M;return(M=(h=s==null?void 0:s.adsInfo)==null?void 0:h.onError)==null?void 0:M.call(h,c)})).add(Ce.events.paused$.subscribe(()=>{var c,h;return(h=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onPaused)==null?void 0:h.call(c)})).add(Ce.events.resumed$.subscribe(()=>{var c,h;return(h=(c=s==null?void 0:s.adsInfo)==null?void 0:c.onResumed)==null?void 0:h.call(c)}));let so=new lt.Subscription,on=()=>{var ot,Lt,Ut;let{debugLog:c}=Z,h,M="#9df7b7",oe="#efd169";if(c&&c!==!0){let{colors:Yt}=c;h=c.tag,M=(ot=Yt==null?void 0:Yt[0])!=null?ot:M,oe=(Ut=(Lt=Yt==null?void 0:Yt[1])!=null?Lt:Yt==null?void 0:Yt[0])!=null?Ut:oe}let Ee=h?`: ${h}`:"";so.add(A.events.log$.subscribe(Yt=>{console.debug(`%c sdk${Ee} `,`background:${M};`,`sdk component: ${Yt.component}`,Yt.message)})).add(Ke.log$.subscribe(Yt=>{console.debug(`%c ui${Ee} `,`background:${oe};`,`ui component: ${Yt.component}.`,Yt.message)}))},yn=()=>{so.unsubscribe()},At=(c,h)=>{ue.log("start camera manual rotation",{mx:c,my:h}),A.startCameraManualRotation(c,h)},Ht=(c=!1)=>{ue.log("stop camera manual rotation",{immediate:c}),A.stopCameraManualRotation(c)},W=(c,h,M)=>{ue.log("move camera focus px",{xpx:c,ypx:h,dt:M}),A.moveCameraFocusPX(c,h,M)},Mt=()=>{A.holdCamera()},li=()=>{A.releaseCamera()},dt=Mr(A.info.position$.getValue(),c=>{let h,M,oe=()=>{let Ee=A.info.playbackState$.getValue(),ot=A.info.isLive$.getValue(),Lt=A.info.duration$.getValue(),Ut=A.info.position$.getValue();if(Ee&&[hi.PlaybackState.PLAYING,hi.PlaybackState.PAUSED].includes(Ee)){let Yt=ot?Ut-Lt:A.getExactTime();Yt!==M&&c(Yt),M=Yt}h=requestAnimationFrame(oe)};return oe(),()=>cancelAnimationFrame(h)}),It=ci(A.info.playbackState$),jt=ci(A.info.currentBuffer$),ct=ci(A.info.isEnded$),Vi=ci(A.info.isLive$),Ri=Z.features.playbackRate?ci(A.info.canChangePlaybackSpeed$):Mr(!1),nn=ci(A.info.liveBufferTime$),Ro=ci(A.info.volume$),yo=ci(A.info.muted$),Ui=Hu(A.info.predefinedQualityLimitType$.pipe((0,lt.map)(c=>c===hi.PredefinedQualityLimits.TRAFFIC_SAVING)),A.info.predefinedQualityLimitType$.getValue()===hi.PredefinedQualityLimits.TRAFFIC_SAVING),gr=Hu(A.info.predefinedQualityLimitType$.pipe((0,lt.map)(c=>c===hi.PredefinedQualityLimits.HIGH_QUALITY)),A.info.predefinedQualityLimitType$.getValue()===hi.PredefinedQualityLimits.HIGH_QUALITY),ao=ci(A.info.autoQualityLimitingAvailable$),xo=ci(A.info.availableQualities$),zi=ci(A.info.availableQualitiesFps$),rn=ci(A.info.chromecastState$),sn=ci(A.info.chromecastDeviceName$),Zn=ci(A.info.currentFormat$),hr=ci(A.info.throughputEstimation$),Nr=ci(A.info.videoBitrate$),xs=ci(A.info.intrinsicVideoSize$),ns=ci(A.info.duration$),rs=ci(A.info.isAudioAvailable$),Jn=()=>{ai&&clearTimeout(ai),ai=null},an=bi([ns,Vi],([c,h])=>h?-c:c),No=bi([It],([c])=>c===hi.PlaybackState.PLAYING),ln=ci(A.info.atLiveEdge$),er=ci(A.info.atLiveDurationEdge$),Dn=ci(A.info.position$),Or=bi([Dn,ns],([c,h])=>isFinite(c)&&isFinite(h)&&!!h),Dr=bi([rn],([c])=>c===hi.ChromecastState.CONNECTED),ss=ci(A.info.availableVideoStreams$),_r=Z.features.audioLanguages?ci(A.info.availableAudioStreams$):Mr([]),lo=ci(A.info.currentVideoStream$),br=ci(A.info.currentAudioStream$),tr=c=>{c.language&&Jf(c.language),A.setVideoStream(c)},xn=(c,h)=>{A.setAudioStream(c),Fo(h)&&(c.language&&Jf(c.language),Z.features.userVideoPrefs&&i&&im(Z.userSalt,String(i),{audioTrackId:c.id}))},co=c=>{let h;if(c.length===1&&(h=c.at(0)),h!=null||(h=c.find(oe=>"isDefault"in oe&&oe.isDefault)),Z.features.userVideoPrefs&&i){let oe=qu(Z.userSalt,String(i));if(oe!=null&&oe.audioTrackId){let Ee=c.find(ot=>ot.id===oe.audioTrackId);h=Ee!=null?Ee:h}}let M=N_();return M&&(h!=null||(h=c.find(({language:oe})=>M===oe))),h!=null||(h=c.at(0)),h},Br=c=>{ue.log("change audio stream",{id:c});let h=A.info.availableAudioStreams$.getValue().find(M=>M.id===c);h&&xn(h,!0)},Bn=!1;Ye.add(A.info.availableAudioStreams$.subscribe(c=>{if(!Bn&&c.length){let h=co(c);h&&(A.setAudioStream(h),Bn=!0)}})),_r.subscribe(c=>{var h;(h=s==null?void 0:s.onAvailableAudioStreamsChanged)==null||h.call(s,c.map(({label:M="",id:oe="",language:Ee=""})=>({label:M,language:Ee,id:oe})))}),br.subscribe(c=>{var h;return c&&((h=s==null?void 0:s.onAudioStreamChanged)==null?void 0:h.call(s,c.id))});let ht=!1;Ye.add(A.info.availableVideoStreams$.subscribe(c=>{if(!ht&&c.length){let h=co(c);h&&(A.setVideoStream(h),ht=!0)}}));let pi=ae(void 0),ir=ci(A.info.isAutoQualityEnabled$,c=>c&&pi.set(void 0)),$r=ci(A.info.currentQuality$,()=>pi.set(void 0)),Fr=bi([pi,$r],([c,h])=>c!=null?c:h),wn=bi(Zn,c=>c!==hi.VideoFormat.MPEG),yr=bi([xo,zi,ir,Fr,wn],([c,h,M,oe,Ee])=>{let ot=[];Ee&&ot.push({value:"auto",displayValue:at("auto_quality_option"),selected:M});let Lt=c.filter(Ut=>!(0,lt.isInvariantQuality)(Ut));for(let Ut of Lt){let Yt=h[Ut];ot.push({value:Ut,displayValue:`${Ut}${Yt?Tb(Yt):""}`,selected:M?!1:Ut===oe})}return ot}),Oo=ci(A.info.currentPlaybackRate$),dn=bi([Oo,ln,er],([c,h,M])=>{let oe=M||S?1:Z.controls.playbackRateMin,Ee=h?1:Z.controls.playbackRateMax,ot=Z.controls.playbackRateStep,Lt=[];for(let Ut=oe;Ut<=Ee;Ut+=ot)Lt.push({value:Ut,displayValue:Ut===1?at("playback_rate_1"):at("playback_rate",{multiplier:Ut.toString(10)}),selected:c===Ut});return Lt}),Do=()=>({displayValue:at("subtitles_off"),value:On,language:""}),or=ae(Do()),Wi=bi([or,Pt],([c],h)=>{c.value===On?h(Do()):h(c)}),Bo=Z.features.subtitles?ci(A.info.availableTextTracks$):Mr([]),nr=T_(),Hr=bi([Bo,Wi],([c,h],M)=>{var ot;let oe=[],Ee=c.find(({id:Lt})=>Lt===h.value);if(Ee!=null&&Ee.url){let[,Lt]=(ot=nr.find(Ee.url))!=null?ot:[];if(Lt){M(Lt);return}qe.download(Ee.url).then(Ut=>{if(!Ut||qe.isDestroyed())return;let Yt=new Cb,qs=Ee.language;if(qs){let A$=!!Ee.isAuto,k$=Yt.parse(Ut,qs);oe.push({lang:qs,subtitles:k$,isAuto:A$,id:Ee.id})}nr.add(Ee.url,oe),he(Wi).value===h.value&&M(oe)}).catch(Ut=>{var Yt;(Yt=Y==null?void 0:Y.oneStat)==null||Yt.logError({errorType:"Subtitles download",fatal:!1}),pe==null||pe.report(Ut,{errorType:"Subtitles download",fatal:!1})})}M(oe)}),uo=bi([Oo,No,Wi],([c,h,M],oe)=>{let Lt;if(A.info.isLive$.getValue()&&h&&M.value!==On){let Yt=()=>{let qs=1e3/(3*c);Lt=setTimeout(Yt,qs),oe(Date.now())};return Yt(),()=>clearTimeout(Lt)}}),Fn=bi([Bo,Wi],([c,h])=>{if(!c.length)return[];let M=[];for(let{language:oe,isAuto:Ee,id:ot}of c){let Lt=oe&&Sc(oe);oe&&Lt&&M.push({displayValue:Ee?at("subtitles_auto",{language:Lt}):Lt,value:ot,selected:(h==null?void 0:h.value)===ot,isAuto:Ee,language:oe})}return M.length?(M.unshift(Qt(Ae({},Do()),{selected:(h==null?void 0:h.value)===On})),M):[]}),cn={available:[],prev:[]},Ur=()=>{var h,M;let c=A.experimental.getCurrentTime$.getValue();return(M=(h=c==null?void 0:c())!=null?h:Se==null?void 0:Se.currentTime)!=null?M:0},rr=bi([dt,Wi,Hr,uo],([c,h,M,oe])=>{var ot;let Ee=A.info.isLive$.getValue();if(Ee&&cn.prev!==M){let Lt=M.find(({id:Yt})=>Yt===h.value),Ut=cn.prev.find(({id:Yt})=>Yt===h.value);if(Lt){let Yt=Qt(Ae({},Lt),{subtitles:[...(ot=Ut==null?void 0:Ut.subtitles)!=null?ot:[],...Lt.subtitles]});cn.available=[Yt],cn.prev=M}}if(h&&h.value!==On){let Lt=Ee?Ur():c,Ut=Ee?cn.available:M;return Pb(Lt,h,Ut,Ee)}}),Hn=bi([rr],([c])=>c!=null&&c.texts?c.texts:[]);Ye.add(Wi.subscribe(c=>{var h,M;if(c.value===On)(h=s==null?void 0:s.onSubtitleOff)==null||h.call(s);else{let oe=Object.entries(mp).find(([Ee,ot])=>ot===c.displayValue);(M=s==null?void 0:s.onSubtitleOn)==null||M.call(s,oe?oe[0]:"",c.value)}}));let zr=ae(!0),St=bi([jt,an,Dn,nn],([c,h,M,oe])=>{var Ut;let Ee=(Ut=c==null?void 0:c.end)!=null?Ut:0;if(!oe)return Ee/h;let Lt=-M+oe-h;return(Ee-Lt)/h}),Et=ci(A.info.availableSources$),po=bi([Et],([c])=>Object.keys((c==null?void 0:c[hi.VideoFormat.MPEG])||{}).length>0),Ji=()=>{var M,oe,Ee;let c=Object.keys(((oe=(M=A.info.availableSources$)==null?void 0:M.getValue())==null?void 0:oe[hi.VideoFormat.MPEG])||{}),h=(0,lt.getHighestQuality)(c)||lt.VideoQuality.Q_144P;return(Ee=X.sources[hi.VideoFormat.MPEG])==null?void 0:Ee[h]},Ki=()=>{var h;let c=Ji();if(c)ue.log("download video",{url:c}),x_(c,((h=X==null?void 0:X.meta)==null?void 0:h.title)||"video");else{let M="There is no URL for download video";ue.log("download video",{message:M}),J({message:M})}},Sn=()=>{J({message:"toggle muted"});let c=A.info.muted$.getValue();A.info.volume$.getValue()===0&&!c?xr(Tn(),!1):sr(!c,!1)},wo=()=>{var c;if(qt.ui.settingsMenu.visible$.set(!1),!he(qt.ui.settingsSubMenu.visible$)){let h=he(qt.ui.settingsMenu.ref$);if((c=s==null?void 0:s.uiInfo)!=null&&c.onSettingsMenu&&h){let oe=od(h),Ee={top:0,left:0,bottom:0,right:0};s.uiInfo.onSettingsMenu({visible:!1,size:oe,position:Ee,name:"settings"})}}ue.log("close settings menu")},Un=(c,h=()=>Promise.resolve())=>_t(null,null,function*(){var Ee;qt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),qt.ui.settingsMenu.visible$.set(!0),yield h();let M=he(qt.ui.settingsMenu.ref$),oe=ba();if((Ee=s==null?void 0:s.uiInfo)!=null&&Ee.onSettingsMenu&&M&&oe){let Lt=od(M),Ut=Rs(M,oe);s.uiInfo.onSettingsMenu({visible:!0,size:Lt,position:Ut,name:"settings"})}ue.log("open settings menu",{wasOpenedByKeyboard:c})}),mi=(c,h=!1)=>{var ot;qt.ui.settingsSubMenu.visible$.set(!1);let M=he(qt.ui.settingsMenu.ref$),oe=ba(),Ee=he(qt.ui.settingsMenu.visible$);if((ot=s==null?void 0:s.uiInfo)!=null&&ot.onSettingsMenu&&M&&oe)if(Ee&&!h){let Ut=od(M),Yt=Rs(M,oe);s.uiInfo.onSettingsMenu({visible:!0,size:Ut,position:Yt,name:"settings"})}else{let Ut=od(c),Yt={top:0,left:0,bottom:0,right:0},qs=he(qt.ui.settingsSubMenu.name$);s.uiInfo.onSettingsMenu({visible:!1,size:Ut,position:Yt,name:qs})}ue.log("close settings sub menu")},Wr=(c,h)=>{var oe;qt.ui.settingsSubMenu.visible$.set(!0),qt.ui.settingsSubMenu.ref$.set(h),qt.ui.settingsSubMenu.name$.set(c);let M=ba();if((oe=s==null?void 0:s.uiInfo)!=null&&oe.onSettingsMenu&&h&&M){let ot=od(h),Lt=Rs(h,M);s.uiInfo.onSettingsMenu({visible:!0,name:c,size:ot,position:Lt})}ue.log("open settings sub menu",{name:c})},Tn=()=>{var h;let c=Math.max(Z.volumeMinRestore,(h=Uu())!=null?h:0);return c===0?Z.volumeDefault:c},Fo=c=>{let h=Z.features.savePreferredStatesOnUserActionOnly;return!h||h&&!c},xr=(c,h)=>{let M=c===0?Tn():c,oe=A.info.muted$.getValue();J({message:`set volume, volume: ${c}, preferredVolume: ${M}`});let Ee=!l||$e.is("ads");oe&&c>0&&Ee&&(oe=!1,Fo(h)&&Xf(!1)),A.setVolume(c,oe),Ce.setVolume(c),Fo(h)&&qf(M)},sr=(c,h)=>{let M=A.info.volume$.getValue();J({message:`set muted, currentVolume: ${M}, mute: ${c}`});let oe=$e.is("ads");if(A.setMuted(c,oe),Ce.setVolume(c?0:M),Fo(h)&&(!oe||!c)&&Xf(c),!c&&M===0){let Ee=Tn();A.setVolume(Ee),Fo(h)&&qf(Ee),Ce.setVolume(Ee)}},wr=ae(!1),Cn=c=>{var h,M;ue.log("set looped",{isLooped:c}),wr.set(c),A.setLooped(c),(M=(h=s==null?void 0:s.uiInfo)==null?void 0:h.onLoopedChanged)==null||M.call(h,c)};Cn(ie);let un=()=>{var c,h;(h=(c=s==null?void 0:s.uiInfo)==null?void 0:c.onReportProblem)==null||h.call(c)},Kr=(c,h=!1)=>{var M;J({message:`set autoplayNextEnabled, value: ${c}`}),ue.log("set autoplay next enabled",{autoplayNextEnabled:c}),qt.ui.autoplayNextEnabled$.set(c),B_(c),h&&((M=s==null?void 0:s.onSetAutoplayNextEnabled)==null||M.call(s,c))},pn=c=>{J({message:`set timerNextVideoRunning, value: ${c}`}),ue.log("set timer next video running",{timerNextVideoRunning:c}),qt.ui.timerNextVideoRunning$.set(c)},as=(c=!0)=>{var M;let h=!0;if(c&&(s!=null&&s.onPrevVideoClick))try{h=(M=s==null?void 0:s.onPrevVideoClick)==null?void 0:M.call(s)}catch(oe){J({message:"onPrevVideoClick callback failed to execute"})}j(!0),h&&G()},Xe=(c=!0)=>{var M;let h=!0;if(c&&(s!=null&&s.onNextVideoClick))try{h=(M=s==null?void 0:s.onNextVideoClick)==null?void 0:M.call(s)}catch(oe){J({message:"onNextVideoClick callback failed to execute"})}j(!1),h&&le()},Vt=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementShow)==null||c.call(s)},xi=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementClick)==null||c.call(s)},Io=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementAuto)==null||c.call(s)},Eo=()=>{var c;(c=s==null?void 0:s.onNextVideoAnnouncementCancel)==null||c.call(s)},Ho=()=>{A.prepare()},fo=()=>{(0,lt.assertNonNullable)(qt);let c=he(qt.ui.controls.disabledControls$),h=he(qt.playerPhase),M={playerPhase:h,isInteractive:S,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(J({message:"toggle play"}),h==="ads"){M.action="play",ue.log("toggle adman play",M),Ce.togglePlay();return}let oe=()=>{var ot;J({message:"toggle play, call player.play"}),M.action="play",A.play(),(ot=s==null?void 0:s.onPlay)==null||ot.call(s)},Ee=()=>{var ot;J({message:"toggle play, call player.pause"}),M.action="pause",A.pause(),(ot=s==null?void 0:s.onPause)==null||ot.call(s)};if(A.info.isEnded$.getValue()){if(J({message:"toggle play, video ended, seek to 0"}),Ai.next(),Zt.next($s.SeekAction.REWIND),S){R==null||R();return}A.seekTime(0),oe()}else A.info.playbackState$.getValue()!==hi.PlaybackState.PLAYING?oe():Ee();ue.log("toggle play",M)},Ni=(c,{changeReason:h="default",appliesTo:M="to-video"}={},oe)=>{J({message:`set quality, quality: ${c}`}),ue.log("set quality",{quality:c}),A.setAutoQuality(c==="auto");let{qualityDetailsSubMenuEnabled:Ee}=Z.features;zu(),c!=="auto"?(Ee?(Wu({type:"exact_quality",quality:c,videoId:i},M),A.setPredefinedQualityLimits(hi.PredefinedQualityLimits.UNKNOWN)):Qf(i,c),pi.set(c),A.setQuality(c)):Ee&&h==="default"&&(Wo("auto_quality",M,oe),he(Ui)&&Uo(!1,void 0,oe),he(gr)&&zo(!1,void 0,oe))},Uo=(c,h="as-default",M)=>{J({message:`set trafficSavingEnabled, value: ${c}`}),ue.log("set traffic saving enabled",{trafficSavingEnabled:c});let oe=c?hi.PredefinedQualityLimits.TRAFFIC_SAVING:hi.PredefinedQualityLimits.UNKNOWN;Z.features.qualityDetailsSubMenuEnabled?(So(oe,h,M),Jd(!1)):(A.setPredefinedQualityLimits(oe),Fo(M)&&Jd(c))},zo=(c,h="as-default",M)=>{J({message:`set highQualityEnabled, value: ${c}`}),ue.log("set high quality enabled",{highQualityEnabled:c}),So(c?hi.PredefinedQualityLimits.HIGH_QUALITY:hi.PredefinedQualityLimits.UNKNOWN,h,M)},So=(c,h,M)=>{c!==hi.PredefinedQualityLimits.UNKNOWN&&(he(ao)&&!he(ir)&&Ni("auto",{appliesTo:h,changeReason:"limit-changed"},M),Wo(c,h,M)),A.setPredefinedQualityLimits(c)},Wo=(c,h,M)=>{Fo(M)&&(Wu({type:c,videoId:i},h),h==="as-default"&&Wu({type:c,videoId:i},"to-video"))},fn=(c,h=!0)=>{ue.log("set playback rate",{playbackRate:c}),A.setPlaybackRate(c),Z.features.saveRate&&ge&&!A.info.isLive$.getValue()&&h&&O_(c)},Sr=()=>{let c=he(dn),h=c.findIndex(({selected:oe})=>oe);if(h===c.length-1)return;let M=c[h+1];fn(M.value)},Tr=()=>{let c=he(dn),h=c.findIndex(({selected:oe})=>oe);if(h===0)return;let M=c[h-1];fn(M.value)},Cr=(c=Qt(Ae({},Do()),{selected:!1}),h)=>{ue.log("set subtitles",Ae({},c)),c.value!==On&&Tt.next(c.isAuto?c.value+"_auto":c.value),yt.next({enabled:c.value!==On,lang:c.language,auto:!!c.isAuto}),or.set(c),Fo(h)&&(tm(c.value===On?void 0:c.language),Z.features.userVideoPrefs&&i&&im(Z.userSalt,String(i),{subtitleTrackId:c.value===On?void 0:c.value}))},ls=c=>{ue.log("toggle subtitles");let h=he(Wi);(h==null?void 0:h.value)===On?Ze(c):Kt(c)},ds=(c,h)=>{ue.log("change subtitle",{enabled:c}),c?Ze(!0,h):Kt(!0)},Ze=(c,h)=>{ue.log("subtitle on");let M=he(Fn),oe=he(Pe),Ee=Te!=null?Te:oe,ot;h&&(ot=M.find(Lt=>Lt.value===h)),ot!=null||(ot=M.filter(Lt=>Lt.value!==On).find(Lt=>Lt.language===Ee)),Cr(ot!=null?ot:M[1],c)},Kt=c=>{ue.log("subtitle off"),Cr(void 0,c)};Ye.add(A.info.availableTextTracks$.subscribe(c=>{var M;function h(){let oe=[];for(let{language:Ee,isAuto:ot,id:Lt}of c){let Ut=Ee&&Sc(Ee);Ee&&Ut&&oe.push({id:Lt,language:Ee,title:ot?at("subtitles_auto",{language:Ut}):Ut})}return oe}(M=s==null?void 0:s.onAvailableSubtitlesChanged)==null||M.call(s,h())}));let Ci=ae(!0),Ko=c=>{Ci.set(c)},mo=(c,h,M=!0)=>{var oe;if(J({message:`seek to time, time: ${c}`}),ue.log("seek to time",{time:c,action:h,forcePrecise:M}),Zt.next(h),A.info.isLive$.getValue()){let Ee=A.info.duration$.getValue(),ot=Math.min(0,Ee+c);A.seekTime(ot,M)}else{if(I!=null&&I.getValue())return;A.info.isEnded$.getValue()&&(J({message:"seek after ended, call callbacks.onPlay"}),(oe=s==null?void 0:s.onPlay)==null||oe.call(s)),A.seekTime(vg(c),M)}},Ir=c=>{J({message:`seek to episode start time: ${c}`}),ue.log("seek to episode start time",{time:c}),mo(c,$s.SeekAction.EPISODE,!0)},mn=(c,h,M=!1)=>{J({message:`seek to percent, percent: ${c}`}),ue.log("seek to percent",{percent:c,action:h});let oe=he(an)*c;mo(oe,h,M)},Er=c=>{J({message:`seek external, time: ${c}`}),ue.log("seek external",{time:c}),Zt.next($s.SeekAction.UNKNOWN),A.seekTime(A.info.isLive$.getValue()?-c:c)},Hs=c=>{var oe,Ee;let h=(oe=c.max)!=null?oe:"none",M=(Ee=c.min)!=null?Ee:"none";J({message:`set auto quality limitation. Max: ${h}. Min: ${M}`}),ue.log("set auto quality limits",{max:h,min:M}),A.setAutoQualityLimits(c)},In=c=>{J({message:`seek external to episode start time: ${c}`}),ue.log("seek external to episode start time",{time:c}),mo(c,$s.SeekAction.EPISODE,!0)},Us=c=>{J({message:`set playback rate to: ${c}`}),ue.log("set playback rate external",{playbackRate:c}),A.setPlaybackRate(c)},ar=ae(!1),cs=ae(!1),ft=bi([an],([c])=>!!m&&c>=Z.suitableDurationForUsingRichSeek&&Z.features.useRichSeek&&!S),fi=((m==null?void 0:m.frameWidth)||0)>=((m==null?void 0:m.frameHeight)||0),qo=bi([Ct],([c])=>{let h=nd(c);return fi?!h:h});Ye.add($e.subscribe(c=>{c!=="video"&&ar.set(!1)}));let me=ae(void 0),mt=ae(!1),ei=c=>{J({message:`start scrubbing, progress: ${c}`}),ue.log("start scrubbing",{progress:c}),mt.set(!0),Ii(c)},Ii=c=>{me.set(c)},qi,si,oi=()=>{me.set(void 0),mt.set(!1)},vo=()=>{clearTimeout(si),clearTimeout(qi),qi=window.setTimeout(()=>{oi()},500),Se==null||Se.removeEventListener("seeked",vo)},zn=(c,h=!1)=>{J({message:`complete scrubbing, progress: ${c}`}),ue.log("complete scrubbing",{progress:c}),mn(c,$s.SeekAction.SLIDER,h),he(qt.ui.isMobile)&&he(qt.state.currentFormat$)===hi.VideoFormat.HLS?(Se==null||Se.addEventListener("seeked",vo),si=window.setTimeout(()=>{vo()},300)):oi()},Wn=bi([dt,an,me],([c,h,M],oe)=>{oe((0,lt.isNonNullable)(M)?M*h:c)}),ki=ae(!1),bd=()=>{ki.set(!0)},pl=()=>{ki.set(!1)},zs=bi([ii],([{width:c}],h)=>{let M=bb(c);h(M)}),fa=D.filter(c=>w_(c)),ma=bi([zs,Le],([c,h])=>h?fa.filter(M=>!M.hideOnMobile):fa.filter(M=>{var oe;return!((oe=M.hideOnDesktopGridTypes)!=null&&oe.includes(c))})),vn=ae(D.filter(c=>S_(c))),fl=bi([vn,zs],([c,h])=>c.filter(M=>{var oe;return!((oe=M.hideOnDesktopGridTypes)!=null&&oe.includes(h))})),va=bi([fl,ma],([c,h])=>[...Z.features.additionalButtonsDesktopControlPanelRight?c.filter(M=>M.type==="desktop-control-panel-right"):[],...Z.features.additionalButtons?h.map((M,oe)=>{var Ee;return{id:oe,weight:oe,type:"desktop-control-panel-right",testId:M.testId,icon:M.iconUrl,onClick:M.onClick,ariaLabel:(Ee=M.ariaLabel)!=null?Ee:M.tooltip,tooltipText:M.tooltip}}):[]]),qr=ae(U),us=bi([qr],([c])=>Z.features.additionalSettingsMenuItems?c.map(h=>h.type==="SWITCH"?Qt(Ae({},h),{onClick:h.onChangeEnabled}):h):[]),Ws=(c,h)=>{let M=he(vn).map(oe=>oe.id!==c?oe:Ae(Ae({},oe),h));vn.set(M)},ga=c=>{let h=he(vn);if(h.some(M=>M.id===c.id)){J({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}h.push(c),vn.set(h)},ml=c=>{let h=he(vn);if(!h.some(M=>M.id===c)){J({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}h=h.filter(M=>M.id!==c),vn.set(h)},vl=c=>{Zt.next($s.SeekAction.LIVE),J({message:"live switch to low latency "+c}),ue.log("live switch to low latency "+c),A.setLiveLowLatency(c)},$d=(c,h)=>{let M=he(qr).map(oe=>oe.id!==c?oe:Ae(Ae({},oe),h));qr.set(M)},gl=c=>{let h=he(qr);if(h.some(M=>M.id===c.id)){J({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}h.push(c),qr.set(h)},hl=c=>{let h=he(qr);if(!h.some(M=>M.id===c)){J({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}h=h.filter(M=>M.id!==c),qr.set(h)},Pr=ae(z),yd=bi([Pr],([c])=>Z.features.additionalContextMenuItems?c:[]),ha=(c,h)=>{let M=he(Pr).map(oe=>oe.id!==c?oe:Ae(Ae({},oe),h));Pr.set(M)},_l=c=>{let h=he(Pr);if(h.some(M=>M.id===c.id)){J({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}h.push(c),Pr.set(h)},ut=c=>{let h=he(Pr);if(!h.some(M=>M.id===c)){J({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}h=h.filter(M=>M.id!==c),Pr.set(h)},vt=bi([Le,ee],([c,h],M)=>{M(c&&h)}),Qi=()=>{Zt.next($s.SeekAction.LIVE),J({message:"switch to active live"}),ue.log("switch to active live"),A.seekTime(0),A.info.playbackState$.getValue()!==hi.PlaybackState.PLAYING&&qt.actions.internal.togglePlay()},Qo=()=>{ue.log("skip adman"),Ce.skip()},Gi=(c=!0)=>{var oe;(0,lt.assertNonNullable)(qt),J({message:`switch from ads to video, callPlay: ${c}`}),ue.log("switch from ads to video",{callPlay:c}),gt.set("video"),c&&A.play(),l&&sr(!0,!0);let h=(oe=he(et))==null?void 0:oe.muted,M=!A.info.muted$.getValue();h!==void 0&&!M&&sr(h,!0),et.set(void 0)},wi=()=>{(0,lt.assertNonNullable)(qt),J({message:"switch from video to ads"}),ue.log("switch from video to ads"),qt.actions.internal.pause(),Si(),gt.set("ads")},Oi=c=>{(0,lt.assertNonNullable)(qt);let h=c?"LiveWaitingStart":"thumb";ue.log("set live waiting start",{state:c,playerPhase:h}),gt.set(h)},_a=c=>{(0,lt.assertNonNullable)(qt);let h=c?"LiveWaitingRecover":"thumb";ue.log("set live waiting recover",{state:c,playerPhase:h}),gt.set(h)},bl=c=>{(0,lt.assertNonNullable)(qt);let h=c?"LiveWaitingRecord":"thumb";ue.log("set live waiting record",{state:c,playerPhase:h}),gt.set(h)},Up=()=>((0,lt.assertNonNullable)(qt),ue.log("get debug text data"),$_(A,X,qt,Oe.getTraceId())),iu=()=>((0,lt.assertNonNullable)(qt),JSON.stringify(Oe.getFinishedSpans())),ou=()=>((0,lt.assertNonNullable)(qt),y_(A,X,qt)),ba=()=>Se,zp=()=>{J({message:"toggle chromecast"}),ue.log("toggle chromecast"),A.toggleChromecast()},Ks=c=>{var M;if((0,lt.assertNonNullable)(qt),A.info.isEnded$.getValue())return;let h=!c;if(he(qt.playerPhase)==="ads"){J({message:`pause ads, internalCall: ${h}`}),ue.log("pause ads",{internalCall:h}),Ce.pause();return}J({message:`pause video, internalCall: ${h}`}),ue.log("pause video",{internalCall:h}),h&&((M=s==null?void 0:s.onPause)==null||M.call(s)),A.pause()},$l=c=>{var M;(0,lt.assertNonNullable)(qt);let h=!c;if(he(qt.playerPhase)==="ads"){J({message:`play ads, internalCall: ${h}`}),ue.log("play ads",{internalCall:h}),Ce.play();return}J({message:`play video, internalCall: ${h}`}),ue.log("play video",{internalCall:h}),h&&((M=s==null?void 0:s.onPlay)==null||M.call(s)),A.play()},nu=c=>{(0,lt.assertNonNullable)(qt);let h=!c;if(he(qt.playerPhase)==="ads"){J({message:"player cannot be stopped during ads via external method"});return}J({message:`player will be stopped, internalCall: ${h}`}),E==null||E()},ru=(c,h)=>{(0,lt.assertNonNullable)(qt),J({message:`first start, show ads: ${c}, internalCall: ${!h}`}),ue.log("first start",{showAds:c,external:h}),c?gt.set("ads"):(gt.set("video"),h?A.play():qt.actions.internal.togglePlay())},yl=()=>(J({message:"getting time codes"}),p),su=()=>{let c=yl();if(!c||[0,1].includes(c.length))return;let h=A.info.position$.getValue();return c.find(M=>M.time>h)},Wp=c=>{let h=c;h||(h=su());let M=A.info.position$.getValue();ue.log("seek to next episode",Ae({currentTime:M},h)),h&&(J({message:"seek to next episode"}),mo(h.time,$s.SeekAction.EPISODE,!0))},au=()=>{let c=yl();if(!c||[0,1].includes(c.length))return;let h=A.info.position$.getValue(),M=c.findIndex(Ee=>Ee.time>h),oe=M===-1?c.length-2:M-2;if(!(oe<0))return c[oe]},He=c=>{let h=c;h||(h=au());let M=A.info.position$.getValue();ue.log("seek to prev episode",Ae({currentTime:M},h)),h&&(J({message:"seek to prev episode"}),mo(h.time,$s.SeekAction.EPISODE,!0))},_i=()=>(J({message:"getting preview thumbs data"}),ue.log("get preview thumbs data",Ae({},m)),m),Go=()=>_t(null,null,function*(){let c=se==null?void 0:se.isActive(),h="none";se!=null&&se.isActive()?(h="exit",yield se==null?void 0:se.exit()):(h="request",yield se==null?void 0:se.request()),ue.log("toggle picture in picture",{isActive:c,action:h})}),$a=(c=-90)=>{ue.log("rotate video",{alphaDiff:c}),Ct.update(h=>h+c)},Po=ae([]);C==null||C.subscribe(c=>{let h=[];for(let M=0;M<c.length;M++){let{range:[oe,Ee],subjects:ot}=c[M];M===0&&oe!==0&&h.push({time:0,text:"",interactive:!1,completed:!0}),h.push({time:oe/1e3,text:"",interactive:!0,completed:Z.features.interactiveTimeOpenUri?!ot.length||ot.every(Lt=>Lt.isRemoved):!ot.length}),Ee!==1/0&&h.push({time:Ee/1e3,text:"",interactive:!1,completed:!0})}Po.set(h)});let x$=ae(!1);I==null||I.subscribe(c=>{c&&he(mt)&&oi()});let vg=c=>{if(!S)return c;let h=he(Po),M=he(an),Ee=he(Dn)/M,ot=h.find(Lt=>Lt.interactive&&!Lt.completed&&Lt.time>Ee);return typeof(ot==null?void 0:ot.time)=="number"?Math.min(c,ot.time-.05):c},w$=()=>{qt.ui.episodes.panelOpened$.set(!1)},S$=()=>{ue.log("destroy store"),clearTimeout(si),clearTimeout(qi),Ye.unsubscribe(),so.unsubscribe(),A.destroy(),Ce.destroy(),Y==null||Y.destroy(),pe==null||pe.destroy(),be.unsubscribe(),ri==null||ri.disconnect(),ri=null,qe.destroy()},T$=bi([ln,$e,Ri],([c,h,M])=>f.features.doubleForwardAvailable&&!c&&h==="video"&&M),Kp=ae(!1),gg=2,lu=null,hg=c=>{if(!he(No)&&c)return;let h=A.info.currentPlaybackRate$.getValue();c?h!==gg&&(lu=h,fn(gg,!1),Kp.set(!0)):(lu&&fn(lu,!1),Kp.set(!1),lu=null)};$e.subscribe(c=>{c!=="video"&&hg(!1)});let C$=()=>{Ks(!1),ar.set(!0)},I$=()=>{$l(!1),ar.set(!1)},qp=!1,E$=()=>{cs.set(!0),qp=A.info.playbackState$.getValue()===hi.PlaybackState.PLAYING,Ks(!1)},P$=()=>{cs.set(!1),!he(ar)&&qp&&$l(!1),qp=!1};A.events.playing$.subscribe(()=>{he(ar)&&Ks(!1)});let qt={interfaceLanguage$:Pe,isCyrillicRelatedInterface$:Ve,initVideo:$o,videoId:i,isClip:o,playerPhase:$e,vsid:Ue,state:{positionExact$:dt,positionWithScrubbing$:Wn,duration$:an,playbackState$:It,isPlaying$:No,isLoaderVisible:yi,bufferedProgress$:St,isLive$:Vi,canChangePlaybackSpeed$:Ri,isActiveLive$:ln,isOldestAvailableLive$:er,isRewindableLive$:Or,isEnded$:ct,muted$:yo,volume$:Ro,trafficSavingEnabled$:Ui,highQualityEnabled$:gr,autoQualityLimitingAvailable$:ao,availableVideoStreams$:ss,availableAudioStreams$:_r,videoStream$:lo,audioStream$:br,currentQuality$:Fr,isAutoQualityEnabled$:ir,availableQualities$:yr,currentPlaybackRate$:Oo,availablePlaybackRates$:dn,currentSubtitle$:Wi,availableTextTracks$:Bo,availableSubtitlesList$:Fn,currentSubtitleCaptions$:Hn,isAutoSubtitleCaptionVisible$:zr,chromecastState$:rn,chromecastDeviceName$:sn,chromecastConnected$:Dr,currentFormat$:Zn,throughputEstimation$:hr,videoBitrate$:Nr,videoSize$:xs,errorLog$:ye,crashed$:ee,isAudioAvailable$:rs,isAudioDisabled:!!l,canDownload:Z.features.download&&!!d,availableSources$:Et,hasMpegSources$:po,isInteractive:S,showInteractiveGraph:Z.features.interactiveGraph,showSeekToInteractive:Z.features.seekToInteractive,showPlayPrevChapter:Z.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:Z.features.interactiveTimeIndicator&&!!he(Po).length,interactiveEpisodes$:Po,isInteractiveTime$:I?ci(I):ae(!1),isInteractiveExpectation$:x$,hasInteractiveBranches:P,playPrevChapterDisabledTooltip:O,looped$:wr,loadedMetadata$:ti,isAutoQualityAvailable$:wn,previewTrackActive:ar,previewTrackDragInProgress:cs},ui:{t:at,controlsVisible:ae(!1),touched:ae(!1),controls:{prevButton:ae(void 0),playButton:ae(void 0),replayButton:ae(void 0),nextButton:ae(void 0),playPrevChapterButton:ae(void 0),seekToInteractiveButton:ae(void 0),interactiveGraphButton:ae(void 0),liveButton:ae(void 0),time:ae(void 0),episodes:ae(void 0),volume:ae(void 0),subtitles:ae(void 0),settings:ae(void 0),context:ae(void 0),chromecast:ae(void 0),pip:ae(void 0),fullscreen:ae(void 0),vkLogo:ae(void 0),interactiveTimeIndicator:ae(void 0),timeline:ae(void 0),autoplayNextToggle:ae(void 0),additionalButtons:D.length?D.reduce(c=>[...c,ae(void 0)],[]):[],disabledControls$:rt},modals:{hotKeyMap:{show:ae(!1),data:ae({title:"",closeBtnText:"",groups:[]})}},isFullscreen:Nt,isFullscreenOpenedByKeyboard:tt,rotateAlpha:Ct,isAutoplay:ae(!1),debugPanelVisible:ae(!1),episodes:{panelOpened$:ae(!1),openedByKeyboard$:ae(!1)},contextMenu:{visible$:ae(!1),btnRef$:ae(void 0),openedByBtnKeyboard$:ae(!1),openedByHotKey$:ae(!1),lastActiveElem$:ae(void 0),showContextMenuBtn$:ae(!1),position$:ae({top:0,left:0})},playerSize:ii,isMobile:Le,mobileNotReportControlHidden$:vt,icon3DVideoVisible:ae(!1),scrubbingInProgress:mt,volumeChangingInProgress:ki,is3DVideo:Ft,currentGridType$:zs,additionalButtonsDeprecated$:ma,additionalDesktopControlPanelRightButtons$:va,additionalSettingsMenuItems$:us,additionalContextMenuItems$:yd,interactiveHideMobileControls:ae(!1),overlayContainer$:ae(void 0),startedByKeyboard$:ae(!1),autoplayNextEnabled$:ae(!1),timerNextVideoRunning$:ae(!0),settingsMenu:{visible$:ae(!1),ref$:ae(void 0),openedByBtnKeyboard$:ae(!1)},settingsSubMenu:{visible$:ae(!1),ref$:ae(void 0),name$:ae(void 0)},userActionsDisabled:ae(!1),hiddenControls:{volume:ae(!1),vkLogo:ae(!1),pip:ae(!1),chromecast:ae(!1),settings:ae(!1)},isControlsAvailable:Ci,controlBlocks:{topLeft:ae(void 0),topRight:ae(void 0),middle:ae(void 0),bottom:ae(void 0),bottomLeft:ae(void 0),bottomRight:ae(void 0)},videoTitleInfo:ae(void 0),doubleForwardOn$:Kp,doubleForwardAvailable$:T$,previewTrackNotificationVisible:ae(!1),previewTrackActive:ar,previewTrackDragInProgress:cs,previewTrackAvailable:ft,isPreviewTrackHorizontallyAligned:qo},ads:{position:ae(0),duration:ae(0),playbackState:ae("inactive"),canSkip:ae(!1),secondsToWatchBeforeSkip:ae(0),postrollPassed:ae(!1)},webApi:{pictureInPictureApi:se,annotationsApi:De,slotsApi:Be},actions:{internal:{preload:Ho,firstStart:c=>ru(c,!1),play:()=>$l(!1),pause:()=>Ks(!1),togglePlay:fo,toggleMuted:Sn,openSettingsMenu:Un,closeSettingsMenu:wo,openSettingsSubMenu:Wr,closeSettingsSubMenu:mi,setVolume:c=>xr(c,!1),setMuted:c=>sr(c,!1),startVolumeChanging:bd,stopVolumeChanging:pl,setVideoStream:tr,setAudioStream:c=>xn(c,!1),setQuality:(c,h)=>Ni(c,h,!1),setTrafficSavingEnabled:(c,h)=>Uo(c,h,!1),setHighQualityEnabled:(c,h)=>zo(c,h,!1),setPlaybackRate:fn,incrementPlaybackRate:Sr,decrementPlaybackRate:Tr,setSubtitle:c=>Cr(c,!1),toggleSubtitle:()=>ls(!1),togglePictureInPicture:Go,startScrubbing:ei,progressScrubbing:Ii,completeScrubbing:zn,toggleChromecast:zp,switchToActiveLive:Qi,switchFromAdsToVideo:Gi,switchFromVideoToAds:wi,skipAd:Qo,setLiveWaitingStart:Oi,setLiveWaitingRecover:_a,setLiveWaitingRecord:bl,getDebugTextData:Up,getTraceTextData:iu,getDebugPanelData:ou,getVideoElement:ba,seekTime:(c,h,M)=>mo(c,h,M),clearDelayedBufferingCheckTimeout:Jn,seekEpisodeStartTime:Ir,seekToPercent:mn,getNextEpisode:su,seekToNextEpisode:Wp,getPrevEpisode:au,seekToPrevEpisode:He,startLogging:on,stopLogging:yn,startCameraManualRotation:At,stopCameraManualRotation:Ht,moveCameraFocusPX:W,holdCamera:Mt,releaseCamera:li,getVideoEpisodes:yl,getPreviewThumbsData:_i,downloadVideo:Ki,addLanguage:om,setLanguage:xe,nextMovie:pt,videoRotate:$a,correctSeekTimeToInteractive:vg,replayInteractive:R,setLooped:Cn,reportProblem:un,setAutoplayNextEnabled:Kr,setTimerNextVideoRunning:pn,prevVideoClick:as,nextVideoClick:Xe,nextVideoAnnouncementShow:Vt,nextVideoAnnouncementClick:xi,nextVideoAnnouncementAuto:Io,nextVideoAnnouncementCancel:Eo,checkFullscreenSupport:Bt,changeDoubleForwardOn:hg,closePreviewTrack:I$,previewTrackOpened:C$,previewTrackDragStarted:E$,previewTrackDragFinished:P$},external:{firstStart:c=>ru(c,!0),play:()=>$l(!0),pause:()=>Ks(!0),stop:()=>nu(!0),seekTime:c=>Er(c),seekEpisodeStartTime:c=>In(c),setPlaybackRate:c=>Us(c),setAutoQualityLimits:c=>Hs(c),setMuted:c=>sr(c,!0),toggleSubtitle:()=>ls(!0),changeSubtitle:ds,setVolume:c=>xr(c,!0),returnFocusToEpisodes:w$,updateAdditionalSettingsItem:$d,addAdditionalSettingsItem:gl,removeAdditionalSettingsItem:hl,updateAdditionalContextItem:ha,addAdditionalContextItem:_l,removeAdditionalContextItem:ut,updateAdditionalButton:Ws,addAdditionalButton:ga,removeAdditionalButton:ml,setLiveLowLatency:vl,hideControls:()=>Ko(!1),showControls:()=>Ko(!0),setQuality:c=>Ni(c,{appliesTo:"to-video"},!0),setTrafficSavingEnabled:c=>Uo(c,"to-video",!0),setHighQualityEnabled:c=>zo(c,"to-video",!0),changeAudioStream:Br}},callbacks:s,setUiCallbacks:c=>{Fe=Ae({},c)},getAdmanWrapper:()=>Ce,getLogger:()=>Ke,getPlayer:()=>A,destroy:S$};return qt};function jn(t,e,i,o){var p;let r=(p=e[i])==null?void 0:p.getBoundingClientRect(),a=o&&!!r&&!!(r.right-r.left),{top:l,left:d,bottom:s,right:u}=Rs(e[i],t||void 0);return{left:a?d:0,right:a?u:0,top:a?l:0,bottom:a?s:0,isDisplayed:a}}var Qx=["disabledControls$","additionalButtons"],Gx=["interactiveTimeIndicator"],sd=(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(jn(t,i,r,l))}}};var gp=(t,e,i)=>_t(null,null,function*(){yield bo(),e&&i&&(i.focus(),t.set(!1))});var Yx=Ie('<path d="M18 10c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2Zm-6 4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2Zm-6 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2Z"></path>');function qm(t){Je(t,{children:(e,i)=>{var o=Yx();_(e,o)},$$slots:{default:!0}})}function Qm(t,e){F(e,!0);let[i,o]=Re(),r=()=>x(s,"$contextMenuVisible$",i),a=g(e,"disabled",3,!1),l=g(e,"ariaLabel",3,""),d=ve(),s=d.ui.contextMenu.visible$,u=d.ui.contextMenu.openedByBtnKeyboard$,p=d.ui.contextMenu.showContextMenuBtn$,m=d.ui.contextMenu.position$,f=d.ui.contextMenu.btnRef$,$=K(void 0);Ne(()=>{n($)&&kt(()=>{f.set(n($))})});let y=I=>{let R=sa(I),E=db(n($));m.set(E),u.set(R),s.set(!r())},b=()=>{p.set(!0)},S=()=>{p.set(!1)},C=v(()=>r()?"opened":"");Wt(t,{get className(){return n(C)},testId:"btn-context-menu",get disabled(){return a()},get ariaLabel(){return l()},click:y,focus:b,blur:S,get ariaExpanded(){return r()},get ref(){return n($)},set ref(I){N($,I,!0)},children:(I,R)=>{qm(I,{})},$$slots:{default:!0}}),H(),o()}var jx=t=>{t.stopPropagation()},Xx=L("<div><!> <div></div> <div></div></div>"),Zx={hash:"s-26",code:'.interactive-episode-icon-animated.s-26{height:32px;opacity:1;position:absolute;right:16px;top:16px;transition:.3s;width:32px}.interactive-episode-icon-animated.icon-small.s-26{height:28px;width:28px}.invisible.s-26{opacity:0;visibility:hidden}.fullscreen.s-26:not(.mobile){height:40px;right:23px;top:19px;width:40px}.mobile.s-26{height:28px;right:14px;top:12px;width:28px}.fullscreen.mobile.s-26{height:32px;width:32px}@media screen and (orientation:portrait){.interactive-episode-icon-animated.mobile.fullscreen.s-26{right:16px;top:40px}}@keyframes s-26-pulse{0%{border-width:1px;opacity:0;transform:scale(1)}10%{opacity:1}50%{border-width:1px;opacity:.5;transform:scale(1.5)}to{border-width:.5px;opacity:0;transform:scale(1.5)}}.pulse.s-26{animation:s-26-pulse 1s infinite;border:1px solid #fff;border-radius:100%;bottom:0;content:"";display:block;left:0;pointer-events:none;position:absolute;right:0;top:0;transform:scale(1.8);transition:.3s}.pulse.paused.s-26{animation-play-state:paused}.interactive-episode-icon-animated svg{height:100%;width:100%}.ref-block.s-26{height:100%;position:absolute;top:0;visibility:hidden;width:100%}.hidden.s-26{display:none}'};function Cc(t,e){var pe;F(e,!0),q(t,Zx);let[i,o]=Re(),r=()=>x(S,"$isMobile",i),a=()=>x(E,"$areControlsVisible",i),l=()=>x(O,"$currentGridType$",i),d=()=>x(I,"$isInteractiveTime$",i),s=()=>x(b,"$interactiveControlsOpacity$",i),u=()=>x(R,"$showInteractiveTimeIndicatorTooltip$",i),p=()=>x(C,"$isFullscreen",i),m=g(e,"ref",15,void 0),f=K(void 0),$=ve(),y=Co(),{interactiveControlsOpacity$:b}=y,S=$.ui.isMobile,C=$.ui.isFullscreen,I=$.state.isInteractiveTime$,R=y.showInteractiveTimeIndicatorTooltip$,E=$.ui.controlsVisible,P=(pe=$.callbacks)==null?void 0:pe.onInteractiveTimeIndicatorClick,O=$.ui.currentGridType$,D=v(()=>!r()&&a()),U=v(()=>Vs(l(),"s")),z=v(()=>!d()||!!s()||n(D)),G=K(!1);Ne(()=>{N(G,n(z),!0)});let le=()=>{N(G,!0)},j=()=>{var se;ie(),(se=n(f))==null||se.addEventListener("animationiteration",le,{once:!0})},ie=()=>{var se;N(G,!1),(se=n(f))==null||se.removeEventListener("animationiteration",le)},Y=se=>{R.set(se)},ge=v(()=>u()&&!n(z));Ne(()=>{u()?j():ie()});let ce=()=>{n(z)||(R.set(!0),P==null||P())};_n(()=>{R.clearTimeout(),ie()});let ne=()=>{R.set(!1)},_e=Q("tooltip_interactive_interaction_time_indicator");var we=Xx();let Z;we.__mousemove=[jx],we.__click=ce;var Oe=T(we);Mo(Oe,{get tooltipContent(){return _e},get tooltipVisible(){return n(ge)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:Y,get ref(){return m()},set ref(se){m(se)},children:(se,De)=>{hc(se,{completed:!0})},$$slots:{default:!0}});var ue=k(Oe,2);let A;nt(ue,se=>m(se),()=>m());var Ke=k(ue,2);let Ce;nt(Ke,se=>N(f,se),()=>n(f)),w(we),B((se,De,Be)=>{Z=re(we,1,"interactive-episode-icon-animated s-26",null,Z,se),A=re(ue,1,"ref-block s-26",null,A,De),Ce=re(Ke,1,"pulse s-26",null,Ce,Be)},[()=>({mobile:r(),fullscreen:p(),invisible:n(z),"icon-small":n(U)}),()=>({hidden:n(z)}),()=>({paused:n(G)})]),$t("mouseleave",we,ne),_(t,we),H(),o()}st(["mousemove","click"]);function hp(t,e){F(e,!0);let i=g(e,"tooltipEnabled",3,!0),o=g(e,"disabled",3,!1),r=g(e,"className",3,void 0),a=g(e,"ref",15),l=g(e,"tooltipVisible",3,!1);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 p=v(()=>e.buttonComponent);var m=de(u);Fi(m,()=>n(p),(f,$)=>{$(f,ks(()=>{var y;return(y=e.buttonComponentProps)!=null?y:{}}))}),_(d,u)},$$slots:{default:!0}}),H()}var Ns={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var ew=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 ua(t,e){F(e,!0);let i=g(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);transform-origin: 50%;":void 0),r=v(()=>`${bn(e.size)}${n(o)}`),a=v(()=>i()?"prev-icon":"next-icon");Je(t,{get width(){return"48"},get height(){return"48"},get style(){return n(r)},get testId(){return n(a)},children:(l,d)=>{var s=ew();_(l,s)},$$slots:{default:!0}}),H()}var tw=L('<div class="icon-background-mobile s-1y"><!></div>'),iw={hash:"s-1y",code:".icon-background-mobile.s-1y{align-items:center;background-color:var(--big-play-bg-color);border-radius:var(--big-play-radius);display:flex;height:100%;justify-content:space-around;left:0;position:absolute;top:0;width:100%}"};function Za(t,e){F(e,!0),q(t,iw);let i=g(e,"ref",15,void 0),o=g(e,"isMobile",3,!1),r=g(e,"disabled",3,!1),l=ve().ui.t,d=v(()=>e.type==="prev"?l("tooltip_previous"):l("tooltip_next")),s=v(()=>e.type==="prev"?l("hotkey_map_item_prev_video_value"):l("hotkey_map_item_next_video_value")),u=v(()=>`btn-${o()?"m":"d"}--${e.type}`);Wt(t,{get className(){return n(u)},get testId(){var p;return`btn-${(p=e.type)!=null?p:""}`},get disabled(){return r()},get ariaLabel(){return n(d)},get click(){return e.click},get ariaKeyShortCut(){return n(s)},get ref(){return i()},set ref(p){i(p)},children:(p,m)=>{var f=Me(),$=de(f);{var y=S=>{var C=tw(),I=T(C);let R=v(()=>e.type==="prev");ua(I,{get size(){return"32"},get reversed(){return n(R)}}),w(C),_(S,C)},b=S=>{let C=v(()=>e.type==="prev");ua(S,{get size(){return"24"},get reversed(){return n(C)}})};V($,S=>{o()?S(y):S(b,!1)})}_(p,f)},$$slots:{default:!0}}),H()}var ow=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 Ic(t,e){F(e,!0);let i=v(()=>bn(e.size));Je(t,{get width(){return"48"},get height(){return"48"},get style(){return n(i)},testId:"replay-icon",children:(o,r)=>{var a=ow();_(o,a)},$$slots:{default:!0}}),H()}var Lb=require("@vkontakte/videoplayer-shared/es2015");var nw=L('<div class="icon-background-mobile s-21"></div>'),rw=L("<!> <div><!></div>",1),sw={hash:"s-21",code:".mobile.s-21{align-items:center;display:flex;justify-content:center;position:relative}.icon-background-mobile.s-21{background-color:var(--big-play-bg-color);border-radius:var(--big-play-radius);height:calc(100% - 32px);left:16px;position:absolute;top:16px;width:calc(100% - 32px)}"};function ad(t,e){F(e,!0),q(t,sw);let i=g(e,"ref",15,void 0),o=g(e,"isMobile",3,!1),r=g(e,"disabled",3,!1),a=g(e,"className",3,""),l=g(e,"click",3,Lb.noop),d=Q("tooltip_restart"),s=v(()=>`${o()?"btn-m--play":""} ${a()}`);Wt(t,{get className(){return n(s)},testId:"btn-replay",get ariaLabel(){return d},get disabled(){return r()},get click(){return l()},get ariaKeyShortCut(){return _s.KeyK},get ref(){return i()},set ref(u){i(u)},children:(u,p)=>{var m=rw(),f=de(m);{var $=I=>{var R=nw();_(I,R)};V(f,I=>{o()&&I($)})}var y=k(f,2);let b;var S=T(y);let C=v(()=>o()?"48":"24");Ic(S,{get size(){return n(C)}}),w(y),B(I=>b=re(y,1,"s-21",null,b,I),[()=>({mobile:o()})]),_(u,m)},$$slots:{default:!0}}),H()}var aw=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 Os(t,e){F(e,!0);let i=v(()=>bn(e.size));Je(t,{get width(){return"48"},get height(){return"48"},get fill(){return e.fill},get style(){return n(i)},testId:"pause-icon",children:(o,r)=>{var a=aw();_(o,a)},$$slots:{default:!0}}),H()}var Mb=require("@vkontakte/videoplayer-shared/es2015");var lw=L('<div class="icon-background-mobile s-1z"><!></div>'),dw={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 ld(t,e){F(e,!0),q(t,dw);let[i,o]=Re(),r=()=>x(a,"$fakeIsPlaying$",i),{fakeIsPlaying$:a}=Co(),l=g(e,"ref",15,void 0),d=g(e,"isMobile",3,!1),s=g(e,"isPlaying",3,!1),u=g(e,"disabled",3,!1),p=g(e,"className",3,""),m=g(e,"click",3,Mb.noop),$=ve().ui.t,{toggle:y}=a,b=v(()=>y),S=v(()=>r()!==null),C=v(()=>n(S)?r():s()),I=v(()=>n(C)?$("tooltip_pause"):$("tooltip_play")),R=v(()=>n(C)?Os:Rn),E=v(()=>`${d()?"btn-m--play":""} ${p()}`),P=v(()=>n(S)?n(b):m());Wt(t,{get className(){return n(E)},testId:"btn-play",get click(){return n(P)},get disabled(){return u()},get ariaLabel(){return n(I)},get ariaKeyShortCut(){return _s.KeyK},get ref(){return l()},set ref(O){l(O)},children:(O,D)=>{var U=Me();let z=v(()=>n(R));var G=de(U);{var le=ie=>{var Y=lw(),ge=T(Y);Fi(ge,()=>n(z),(ce,ne)=>{ne(ce,{get size(){return"48"}})}),w(Y),_(ie,Y)},j=ie=>{var Y=Me(),ge=de(Y);Fi(ge,()=>n(z),(ce,ne)=>{ne(ce,{get size(){return"24"}})}),_(ie,Y)};V(G,ie=>{d()?ie(le):ie(j,!1)})}_(O,U)},$$slots:{default:!0}}),H(),o()}var cw=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 Gm(t){Je(t,{testId:"play-prev-chapter-icon",children:(e,i)=>{var o=cw();_(e,o)},$$slots:{default:!0}})}function Ec(t,e){F(e,!0);let i=g(e,"ref",15,void 0),o=g(e,"hidden",3,!1),r=g(e,"disabled",3,!1),a=Q("tooltip_interactive_go_back"),l=v(()=>o()?"hidden":"");Wt(t,{get className(){return n(l)},testId:"btn-play-prev-chapter",get ariaLabel(){return a},get disabled(){return r()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,s)=>{Gm(d,{})},$$slots:{default:!0}}),H()}var uw=L('<span class="gutter s-25"><span><!></span></span>'),pw={hash:"s-25",code:".gutter.s-25{--gutterWidth:32px;--gutterHeight:12px;--togglerWidth:18px;--togglerHeight:18px;--togglerGap:calc(var(--togglerWidth)/6);background-color:hsla(0,0%,100%,.3);border-radius:50px;height:var(--gutterHeight);position:relative;width:var(--gutterWidth)}.toggler.s-25{align-items:center;background-color:#626364;border-radius:50%;display:flex;height:var(--togglerHeight);justify-content:center;left:0;position:absolute;top:calc((var(--togglerHeight) - var(--gutterHeight))/2*-1);transform:translateX(calc(var(--togglerGap)*-1));transition-duration:.2s;transition-property:background-color,transform;transition-timing-function:ease;width:var(--togglerWidth)}.toggler.enabled.s-25{background-color:var(--toggle-color-autoplay-on);transform:translateX(calc(var(--gutterWidth) - var(--togglerWidth) + var(--togglerGap)))}"};function Pc(t,e){F(e,!0),q(t,pw);let[i,o]=Re(),r=()=>x(s,"$autoplayNextEnabled$",i),a=g(e,"ref",15,void 0),l=ve(),d=l.ui.t,s=l.ui.autoplayNextEnabled$,u=l.actions.internal.setAutoplayNextEnabled,p=()=>{u(!r(),!0)},m=d("aria_label_autoplay"),f="16",$="#000",y=v(()=>r()?"true":"false");Wt(t,{click:p,get ariaLabel(){return m},role:"switch",get areaChecked(){return n(y)},get ref(){return a()},set ref(b){a(b)},children:(b,S)=>{var C=uw(),I=T(C);let R;var E=T(I);{var P=D=>{Rn(D,{get size(){return f},fill:$})},O=D=>{Os(D,{get size(){return f},fill:$})};V(E,D=>{r()?D(P):D(O,!1)})}w(I),w(C),B(D=>R=re(I,1,"toggler s-25",null,R,D),[()=>({enabled:r()})]),_(b,C)},$$slots:{default:!0}}),H(),o()}var fw=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 Ym(t){Je(t,{testId:"seek-to-interactive-icon",children:(e,i)=>{var o=fw();vi(),_(e,o)},$$slots:{default:!0}})}function Ac(t,e){F(e,!0);let i=g(e,"ref",15,void 0),o=g(e,"hidden",3,!1),r=g(e,"disabled",3,!1),a=Q("tooltip_interactive_seek"),l=v(()=>o()?"hidden":"");Wt(t,{get className(){return n(l)},testId:"btn-seek-to-interactive",get ariaLabel(){return a},get disabled(){return r()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,s)=>{Ym(d,{})},$$slots:{default:!0}}),H()}var mw=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>'),vw=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=g(e,"isOpened",3,!1),o=v(()=>i()?"graph-close-icon":"graph-open-icon");Je(t,{get testId(){return n(o)},children:(r,a)=>{var l=vw(),d=k(de(l));{var s=u=>{var p=mw();_(u,p)};V(d,u=>{i()&&u(s)})}_(r,l)},$$slots:{default:!0}})}function kc(t,e){F(e,!0);let i=g(e,"ref",15,void 0),o=g(e,"hidden",3,!1),r=g(e,"disabled",3,!1),a=g(e,"graphIsOpened",3,!1),d=ve().ui.t,s=v(()=>a()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),u=v(()=>o()?"hidden":"");Wt(t,{get className(){return n(u)},testId:"btn-graph",get disabled(){return r()},get ariaLabel(){return n(s)},get click(){return e.click},get ref(){return i()},set ref(p){i(p)},children:(p,m)=>{let f=v(()=>!!a());jm(p,{get isOpened(){return n(f)}})},$$slots:{default:!0}}),H()}var Xm=require("@vkontakte/videoplayer-core/es2015");function Lc(t,e){F(e,!0);let[i,o]=Re(),r=()=>x(u,"$playbackState$",i),a=g(e,"isMobile",3,!1),l=g(e,"isLiveActive",3,!1),d=g(e,"ariaLabel",3,""),s=ve(),u=s.state.playbackState$,p=s.actions.internal.switchToActiveLive,m=s.actions.internal.togglePlay,f=v(()=>()=>{if(!l()){p();return}r()===Xm.PlaybackState.PAUSED&&m()}),$=v(()=>a()?"":"btn--live btn-full-opacity"),y=v(()=>l()?"btn-live":"btn-live-offset"),b=v(()=>l()&&r()===Xm.PlaybackState.PLAYING);Wt(t,{get className(){return n($)},get testId(){return n(y)},get disabled(){return n(b)},get ariaLabel(){return d()},get click(){return n(f)},children:(S,C)=>{rc(S,{get isActive(){return l()}})},$$slots:{default:!0}}),H(),o()}var Zm=require("@vkontakte/videoplayer-shared/es2015");var gw=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),hw=L('<img class="icon" aria-hidden="true"/>');function Ja(t,e){"use strict";let i=K(!1),o=()=>{N(i,!0)};var r=Me(),a=de(r);{var l=s=>{var u=gw();_(s,u)},d=s=>{var u=hw();B(()=>We(u,"src",e.icon)),$t("error",u,o),La(u),_(s,u)};V(a,s=>{n(i)?s(l):s(d,!1)})}_(t,r)}function Jm(t,e){F(e,!0);let i=g(e,"disabled",3,!1),o=g(e,"onClick",3,Zm.noop),r=g(e,"ref",15),a=v(()=>o()===Zm.noop),l=v(()=>n(a)||i()),d=v(()=>n(a)?"btn-full-opacity":"");Mo(t,{get disabled(){return n(l)},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},width:40,get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},get tooltipVisible(){return e.tooltipVisible},get ref(){return r()},set ref(s){r(s)},children:(s,u)=>{let p=v(()=>{var m;return(m=e.testId)!=null?m:e.id});Wt(s,{get className(){return n(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return n(l)},get testId(){return n(p)},children:(m,f)=>{Ja(m,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),H()}var Vb=t=>!!t.buttonComponent;var Ds={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var _p=(t,e,i,o)=>{if(t)for(let[r,a]of Object.entries(e))a.set(jn(t,i,r,o))};var bp=require("@vkontakte/videoplayer-shared/es2015"),Rb=10,Nb=40,ev=.2,bw=.5,$w=65,yw=114,xw=4,Ob=({onPreviewTrackOpened:t,getTimelineRef:e,isHorizontal:i})=>{let o=v(()=>i?$w:yw),r=K(!1),a=K(0),l=K(0),d=v(()=>n(o)+Rb-Nb-xw),s=v(()=>(0,bp.interpolate)(n(a),[ev,1],[0,-n(d)])),u=v(()=>(0,bp.interpolate)(n(a),[ev,1],[0,Nb])),p=v(()=>(0,bp.interpolate)(n(a),[ev,1],[0,n(o)+Rb]));return{progressBarY:()=>n(s),controlsY:()=>n(u),calculatedHeight:()=>n(p),onPointerDown:b=>{var S;N(l,((S=e())==null?void 0:S.getBoundingClientRect().bottom)||0,!0),N(r,!0)},onPointerMove:b=>{if(!n(r))return;let S=Math.max(Math.min(b.clientY-n(l),0),-n(d));N(a,Math.abs(S/n(d)),!0)},onPointerUp:()=>{N(r,!1),N(a,n(a)>=bw?1:0,!0),n(a)===1&&t()},closePreviewTrack:()=>{N(a,0)}}};var ww=t=>t;function ys(t,{delay:e=0,duration:i=400,easing:o=ww}={}){let r=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:a=>`opacity: ${a*r}`}}var Sw=L('<span class="root s-2b"> </span>'),Tw={hash:"s-2b",code:".root.s-2b{box-shadow:0 8px 24px 0 rgba(0,0,0,.08);box-shadow:0 0 2px 0 rgba(0,0,0,.08);color:#fff;font-size:13px;font-weight:500;line-height:16px}"};function tv(t,e){q(t,Tw);var i=Sw(),o=T(i,!0);w(i),B(()=>fe(o,e.time)),_(t,i)}var Cw=L('<div class="tooltip-wrapper s-j"><div><!></div></div>'),Iw={hash:"s-j",code:'.tooltip-wrapper.s-j{display:block;position:relative}.tooltip.s-j{bottom:100%;opacity:0;position:absolute;transform:translateX(-50%);transition:opacity .2s;visibility:hidden}.pointer.s-j:after{border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid rgba(41,41,41,.8);bottom:0;content:" ";font-size:0;left:50%;line-height:0;position:absolute;transform:translate(-50%,5px);width:0}.tooltip.active.s-j{opacity:1;visibility:visible}'};function iv(t,e){q(t,Iw);let i=g(e,"active",3,!1),o=g(e,"pointer",3,!1),r=g(e,"translateXPx",3,0),a=g(e,"translateYPx",3,0),l=g(e,"leftOffset",3,0),d=g(e,"rightOffset",3,0),s=K(void 0),u=K(void 0);function p(S){if(!n(u))return 0;let{width:C}=n(u).getBoundingClientRect(),I=C/2;return S<I?I+l():S>e.containerWidth-I?e.containerWidth-I-d():S}let m=v(()=>p(r()));var f=Cw(),$=T(f);let y;var b=T($);ni(b,()=>{var S;return(S=e.children)!=null?S:bt}),w($),nt($,S=>N(u,S),()=>n(u)),w(f),nt(f,S=>N(s,S),()=>n(s)),B(S=>{Qe(f,`transform: translate(${n(m)}px, ${a()}px);`),y=re($,1,"tooltip s-j",null,y,S),Qe($,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),_(t,f)}var Db=t=>Math.abs(t)/90%4===1;var Ew=L('<div class="preview s-i"></div>'),Pw=L('<div class="time s-i"> </div>'),Aw=L('<div><!> <div class="episode s-i"><!></div> <!></div>'),kw={hash:"s-i",code:".timeline-preview.s-i{border-radius:2px;bottom:18px;pointer-events:none}.timeline-preview.mobile.s-i{bottom:72px}.preview.s-i{background-color:var(--timeline-preview-bg);border:1px solid var(--white);border-radius:8px;box-shadow:0 0 2px var(--timeline-preview-shadow),0 8px 24px var(--timeline-preview-shadow)}.episode.s-i{margin-bottom:4px;margin-top:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.episode.s-i,.time.s-i{font-size:13px;font-weight:500;line-height:16px;text-align:center;text-shadow:0 8px 24px var(--timeline-preview-shadow),0 0 2px var(--timeline-preview-shadow)}.time.s-i{color:var(--white)}"};function ov(t,e){F(e,!0),q(t,kw);let[i,o]=Re(),r=()=>x(y,"$rotateAlpha",i),a=()=>x(b,"$playerSize",i),l={MOBILE:150,DESKTOP:278},d=g(e,"time",3,""),s=g(e,"isMobile",3,!1),u=g(e,"videoEpisodes",19,()=>[]),p=g(e,"progress",3,0),m=g(e,"duration",3,0),f=g(e,"isInteractive",3,!1),$=ve(),y=$.ui.rotateAlpha,b=$.ui.playerSize,S=K(0),C=K(0),I=K(""),R=K(0),E=K(0),P=K(0),O=K(0),D=v(()=>dp(p(),m(),u())),U=v(()=>nd(r())),z=v(()=>Db(r())),G=v(ie),le=v(()=>(n(z)?1:-1)*(n(S)/2-n(C)/2)),j=v(()=>n(le)*-1);Ne(()=>{(pe=>{N(S,pe.width,!0),N(C,pe.height,!0)})(ge())}),Ne(()=>{(pe=>{N(I,pe.imgSrc,!0),N(R,pe.imgWidth,!0),N(E,pe.imgHeight,!0),N(P,pe.imgOffsetX,!0),N(O,pe.imgOffsetY,!0)})(ce(p()))});function ie(){var Be;let pe=s()?l.MOBILE:l.DESKTOP,{isVertical:se}=Y(),De=30;return(Be=n(D))!=null&&Be.text&&(De+=16),(se||n(U))&&(De+=18,De+=50),Math.min(Math.max(a().height-De,0),pe)}function Y(){let pe=e.previewThumbsData.frameWidth,se=e.previewThumbsData.frameHeight,De=se>pe;return{width:pe,height:se,isHorizontal:!De,isVertical:De}}function ge(){let{height:pe,isHorizontal:se,isVertical:De,width:Be}=Y();return se&&(pe=pe/Be*n(G),Be=n(G)),De&&(Be=Be/pe*n(G),pe=n(G)),{width:Be,height:pe}}function ce(pe){let se;e.previewThumbsData.isUV?se=Math.floor(m()*pe/e.previewThumbsData.frequency):se=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*pe)));let De=Math.floor(se/e.previewThumbsData.countPerImage),Be=Math.floor(se%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),J=se%e.previewThumbsData.countPerRow,X=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&De===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(X=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&X++);let Se=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&De===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(Se=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Fe=n(S)*Se,qe=n(C)*X,Ye=-J*n(S),Te=-Be*n(C);return{imgSrc:e.previewThumbsData.links[De],imgWidth:Fe,imgHeight:qe,imgOffsetX:Ye,imgOffsetY:Te}}var ne=Aw();let _e;var we=T(ne);{var Z=pe=>{var se=Ew();B(()=>Qe(se,`width: ${n(S)}px; height: ${n(C)}px; background-image: url(${n(I)}); background-size: ${n(R)}px ${n(E)}px; background-position: ${n(P)}px ${n(O)}px;
61
- transform: rotate(${r()}deg) ${n(U)?`translate(${n(le)}px, ${n(j)}px)`:""};
62
- `)),_(pe,se)};V(we,pe=>{n(I)&&pe(Z)})}var Oe=k(we,2),ue=T(Oe);{var A=pe=>{var se=Me(),De=de(se);{var Be=X=>{var Se=hs();B(Fe=>fe(Se,Fe),[()=>Q("tooltip_episode_unfinished")]),_(X,Se)},J=X=>{var Se=hs();B(()=>fe(Se,n(D).text||"")),_(X,Se)};V(De,X=>{f()&&n(D).completed===!1?X(Be):X(J,!1)})}_(pe,se)};V(ue,pe=>{n(D)&&pe(A)})}w(Oe);var Ke=k(Oe,2);{var Ce=pe=>{var se=Pw(),De=T(se,!0);w(se),B(()=>fe(De,d())),_(pe,se)};V(Ke,pe=>{f()||pe(Ce)})}w(ne),B(pe=>{_e=re(ne,1,"timeline-preview s-i",null,_e,pe),Qe(ne,`width: ${n(U)?n(C):n(S)}px;`)},[()=>({mobile:s()})]),_(t,ne),H(),o()}var Lw=L('<span class="time s-f"> </span>'),Mw=L("<!> <!>",1),Vw={hash:"s-f",code:".time.s-f{background-color:rgba(41,41,41,.8);border-radius:3px;color:var(--white);display:inline-block;padding:6px 10px}.timeline-slider{--slider-bg:var(--timeline-slider-bg);--slider-filled-bg:var(--timeline-slider-filled-bg);--slider-handle-bg:var(--timeline-slider-handle-bg);--slider-loaded-bg:var(--timeline-slider-loaded-bg)}"};function nv(t,e){var Pe,Pt,Ve,at,gt;F(e,!0),q(t,Vw);let[i,o]=Re(),r=()=>x(j,"$interactiveEpisodes$",i),a=()=>x(O,"$duration$",i),l=()=>x(P,"$position$",i),d=()=>x(ge,"$isInteractiveExpectation$",i),s=()=>x(Y,"$isInteractiveTime$",i),u=()=>x(we,"$previewTrackActive",i),p=()=>x(D,"$isLive$",i),m=()=>x(_e,"$disabledControls$",i),f=()=>x(z,"$isMobile",i),$=()=>x(U,"$isActiveLive$",i),y=()=>x(E,"$bufferedProgress$",i),b=g(e,"showTimeline",3,!1),S=g(e,"withEpisodes",3,!0),C=g(e,"ref",15,void 0),I=ve(),R=Rt(),E=I.state.bufferedProgress$,P=I.state.positionWithScrubbing$,O=I.state.duration$,D=I.state.isLive$,U=I.state.isActiveLive$,z=I.ui.isMobile,G=R.features.episodes&&S()?I.actions.internal.getVideoEpisodes():void 0,le=I.actions.internal.getPreviewThumbsData(),j=I.state.interactiveEpisodes$,ie=I.state.isInteractive,Y=I.state.isInteractiveTime$,ge=I.state.isInteractiveExpectation$,ce=I.actions.internal.correctSeekTimeToInteractive,ne=(Pe=I.callbacks)==null?void 0:Pe.onDisabledTimelineClick,_e=I.ui.controls.disabledControls$,we=I.ui.previewTrackActive,Z=(Ve=(Pt=I.callbacks)==null?void 0:Pt.uiInfo)==null?void 0:Ve.onTimelineMouseEnter,Oe=(gt=(at=I.callbacks)==null?void 0:at.uiInfo)==null?void 0:gt.onTimelineMouseLeave,ue=I.ui.t,A=R.features.interactiveResponsiveUi,Ke=v(()=>ie?r():G),Ce=v(()=>tn(a())),pe=v(()=>tn(l())),se=v(()=>l()/a()),De=v(()=>d()||s()),Be=K(!1),J=K(""),X=K(0),Se=K(0),Fe=K(0),qe=v(()=>({containerWidth:n(Se),translateXPx:n(X),translateYPx:ie&&le?-36:-16,active:n(Be)&&b()&&!n(De)&&!A&&!u(),pointer:!R.features.timelinePreview||!le||p()})),Ye=ue("aria_timeline"),Te=v(()=>ue("aria_timeline_value",{position:n(pe),duration:n(Ce)}));function Le($e){return!ce||!ie?$e:ce($e*a())/a()}function Ue($e,et){var ze;(ze=e.onSliderPointerDown)==null||ze.call(e,et),I.actions.internal.startScrubbing(Le($e))}function Nt($e){s()||I.actions.internal.progressScrubbing(Le($e))}function tt($e){var et;I.actions.internal.completeScrubbing(Le($e)),N(Be,!1),(et=e.onSliderPointerUp)==null||et.call(e)}function Bt($e,et,ze){var rt;(rt=e.onSliderPointerEnter)==null||rt.call(e,$e),ti($e,et,ze),N(Be,!0)}function Gt($e,et,ze,rt){var ii;(ii=e.onSliderMove)==null||ii.call(e,rt,$e),ti($e,et,ze),N(Be,!0)}function Ct(){var $e;N(Be,!1),($e=e.onSliderLeave)==null||$e.call(e)}function ti($e,et,ze){N(Fe,Le($e),!0),N(X,et,!0),ze&&N(Se,ze,!0),N(J,Ft($e),!0)}function Ft($e){let et=tn((p()?1-$e:$e)*a());return p()?`-${et}`:et}let ye=v(()=>m().has("TIMELINE"));var be=Mw(),ee=de(be);iv(ee,ks(()=>n(qe),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:($e,et)=>{var ze=Me(),rt=de(ze);{var ii=gi=>{ov(gi,{get time(){return n(J)},get isMobile(){return f()},get videoEpisodes(){return n(Ke)},get previewThumbsData(){return le},get progress(){return n(Fe)},get duration(){return a()},get isInteractive(){return ie}})},ai=gi=>{var yi=Lw(),ro=T(yi,!0);w(yi),B(()=>fe(ro,n(J))),_(gi,yi)};V(rt,gi=>{R.features.timelinePreview&&le&&!p()?gi(ii):gi(ai,!1)})}_($e,ze)},$$slots:{default:!0}}));var xe=k(ee,2);ja(xe,{className:"timeline-slider",get isActiveLive(){return $()},get isMobile(){return f()},get ariaLabel(){return Ye},ariaValueMin:0,get ariaValueMax(){return a()},get ariaValueNow(){return l()},get ariaValueText(){return n(Te)},get loadedProgress(){return y()},get filledProgress(){return n(se)},get handleProgress(){return n(se)},get videoEpisodes(){return n(Ke)},onPointerDown:Ue,onHandleMove:Nt,onPointerMove:Gt,onPointerUp:tt,onPointerEnter:Bt,onPointerLeave:Ct,get onMouseEnter(){return Z},get onMouseLeave(){return Oe},get onDisabledClick(){return ne},get isInteractive(){return ie},get disabled(){return n(ye)},get handleAlwaysVisible(){return u()},get hideHandel(){return s()},testId:"progress_bar",onContextMenu:tt,get ref(){return C()},set ref($e){C($e)}}),_(t,be),H(),o()}var Rw={hash:"s-g",code:".timeline-ads-slider{--slider-bg:var(--timeline-slider-bg);--slider-filled-bg:var(--timeline-slider-filled-bg);--slider-handle-bg:var(--timeline-slider-handle-bg);--slider-loaded-bg:var(--timeline-slider-loaded-bg)}"};function Mc(t,e){F(e,!0),q(t,Rw);let[i,o]=Re(),r=()=>x(s,"$isMobile",i),a=g(e,"position",3,0),l=g(e,"duration",3,0),d=ve(),s=d.ui.isMobile,u=d.ui.t,p=v(()=>tn(l())),m=v(()=>tn(a())),f=v(()=>a()/l()),$=v(()=>u("aria_timeline_value",{position:n(m),duration:n(p)})),y=v(()=>Math.round(n(f)*100));ja(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return l()},get ariaValueNow(){return n(y)},get ariaValueText(){return n($)},get filledProgress(){return n(f)},hideHandel:!0,get squareBorders(){return r()}}),H(),o()}var Nw=L("<div><!></div>"),Ow=L("<div></div>"),Dw={hash:"s-b",code:".timeline.s-b{align-items:center;bottom:0;box-sizing:border-box;display:flex;min-width:86px;pointer-events:all;position:relative;width:100%}.timeline.mobile.s-b{height:16px;margin-top:6px;padding:6px 12px 7px}.withoutPadding.s-b{padding:0}.timeline-stub.s-b{min-width:20px;width:100%}.timeline-stub.mobile.s-b{height:8px}"};function el(t,e){F(e,!0),q(t,Dw);let[i,o]=Re(),r=()=>x(S,"$isLive$",i),a=()=>x(R,"$isMobile",i),l=()=>x(E,"$disabled",i),d=()=>x(I,"$adPosition",i),s=()=>x(C,"$adDuration",i),u=g(e,"isAds",3,!1),p=g(e,"isHidden",3,!1),m=g(e,"timelineNotAvailable",3,!1),f=g(e,"needPadding",3,!0),$=g(e,"ref",15,void 0),y=ve(),b=Rt(),S=y.state.isLive$,C=y.ads.duration,I=y.ads.position,R=y.ui.isMobile,E=ae(!1),P=v(()=>!m()&&(!r()||r()&&e.canRewindLive&&e.isRewindableLive||u()));var O=Me(),D=de(O);{var U=G=>{var le=Nw();let j;var ie=T(le);{var Y=ce=>{Mc(ce,{get position(){return d()},get duration(){return s()}})},ge=ce=>{nv(ce,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return n(P)},get withEpisodes(){return e.withEpisodes},get onSliderMove(){return e.onSliderMove},get onSliderPointerDown(){return e.onSliderPointerDown},get onSliderPointerUp(){return e.onSliderPointerUp},get onSliderLeave(){return e.onSliderLeave},get onSliderPointerEnter(){return e.onSliderPointerEnter},get ref(){return $()},set ref(ne){$(ne)}})};V(ie,ce=>{u()?ce(Y):ce(ge,!1)})}w(le),As(le,()=>Yl(p()&&b.features.usePerformanceFix,E,b.disableInvisibleComponentsTimeout)),B(ce=>j=re(le,1,"timeline s-b",null,j,ce),[()=>({withoutPadding:!f(),mobile:a(),"out-of-flow":l()})]),_(G,le)},z=G=>{var le=Ow();let j;B(ie=>j=re(le,1,"timeline-stub s-b",null,j,ie),[()=>({mobile:a()})]),_(G,le)};V(D,G=>{n(P)?G(U):G(z,!1)})}_(t,O),H(),o()}var Bb=require("@vkontakte/videoplayer-shared/es2015");var Bw=(t,e,i,o,r,a,l)=>{N(e,!0),N(i,t.clientX,!0),N(o,n(r),!0),a(l())},Fw=L("<div></div>"),Hw=L('<div><div class="track s-2d"></div></div>'),Uw={hash:"s-2d",code:'.root.s-2d{display:flex;height:var(--preview-track-frame-height-horizontal);overflow:hidden;position:relative;width:100%}.root.is-vertical-video.s-2d,.root.vertically-rotated.s-2d{height:var(--preview-track-frame-height-vertical)}.root.s-2d:after{background-color:#fff;box-shadow:0 2px 2px 0 rgba(0,0,0,.12);box-shadow:0 0 2px 0 rgba(0,0,0,.06);content:"";height:100%;margin:0 auto;pointer-events:none;width:3px;z-index:1}.track.s-2d{bottom:0;display:flex;left:0;padding:0 50%;top:0}.frame.s-2d,.track.s-2d{position:absolute}.frame.s-2d{background-position-x:calc(var(--column-index)*-1*var(--frame-width));background-position-y:calc(var(--frame-height)*-1*var(--row-index));background-size:calc(var(--frame-width)*var(--column-numbers)) calc(var(--frame-height)*var(--row-numbers));flex-shrink:0;height:var(--frame-height);pointer-events:none;transform-origin:center;width:var(--frame-width)}.vertically-rotated.s-2d .frame:where(.s-2d){transform-origin:0 0}.rotate-1.s-2d{transform:rotate(-90deg) translateX(-100%)}.rotate-2.s-2d{transform:rotate(-180deg)}.rotate-3.s-2d{transform:rotate(-270deg) translateY(-100%)}'};function sv(t,e){F(e,!0),q(t,Uw);let[i,o]=Re(),r=()=>x(R,"$rotateAlpha",i),a=()=>x(b,"$position$",i),l=()=>x(y,"$duration$",i),d=ve(),{countPerImage:s=0,countPerRow:u=0,countTotal:p=0,links:m=[],frameHeight:f=0,frameWidth:$=0}=d.actions.internal.getPreviewThumbsData()||{},{duration$:y,positionWithScrubbing$:b}=d.state,{startScrubbing:S,progressScrubbing:C,completeScrubbing:I}=d.actions.internal,R=d.ui.rotateAlpha,E=K(void 0),P=K(!1),O=K(0),D=K(0),U=K(0),z=K(0),G=v(()=>f<=$),le=v(()=>nd(r())),j=v(()=>n(G)?!n(le):n(le)),ie=114,Y=65,ge=3,ce=v(()=>n(j)?ie:Y),ne=v(()=>n(G)?ie:Y),_e=v(()=>n(G)?"var(--preview-track-frame-height-horizontal)":"var(--preview-track-frame-height-vertical)"),we=v(()=>p*n(ce)),Z=K(0);Ne(()=>{N(z,Math.ceil(-n(U)/n(ce))-1),N(U,-n(we)*a()/l())});let Oe=()=>{I(ue(),!0)},ue=()=>l()*-n(U)/n(we)/l(),A=!1,Ke=Te=>{if(!n(P))return!1;let Le=Te.clientX-n(O);N(U,n(D)+Le),N(U,Math.max(Math.min(n(U),0),-n(we)),!0),Math.abs(Le)>1&&(A=!0),C(ue())},Ce=Te=>{n(P)&&(N(P,!1),!A&&Te&&N(U,-(Te.offsetX-n(Z)/2)),A=!1,Oe())},pe=()=>{n(P)&&Ce()},se=v(()=>s/u),De=(Te,Le)=>{if(Te!==m.length-1)return u;let Ue=0,Nt=Le*u;for(let tt=1;tt<=u;tt++)Te*s+Ue+Nt<p&&Ue++;return Ue},Be=v(()=>Math.floor(n(z)/s)),J=v(()=>(0,Bb.getRangeAroundIndex)(3,n(Be),m.length-1)),X=(Te,Le,Ue)=>{let Nt=s*n(ce);return Te*Nt+Le*n(ce)*u+n(Z)/2-ge/2+Ue*n(ce)},Se=v(()=>[`--row-numbers: ${n(se)}`,`--column-numbers: ${u}`,`--frame-width: ${n(ne)}px`,`--frame-height: ${n(_e)}`].join(";"));var Fe=Hw();let qe;var Ye=T(Fe);Ye.__pointerdown=[Bw,P,O,D,U,S,ue],Ye.__pointermove=Ke,Ye.__pointerup=Ce,Ti(Ye,20,()=>n(J),Te=>Te,(Te,Le)=>{var Ue=Me(),Nt=de(Ue);Ti(Nt,16,()=>Array.from({length:n(se)},(tt,Bt)=>Bt),tt=>tt,(tt,Bt)=>{var Gt=Me(),Ct=de(Gt);Ti(Ct,16,()=>Array.from({length:De(Le,Bt)},(ti,Ft)=>Ft),ti=>ti,(ti,Ft)=>{var ye=Fw();B((be,ee)=>{Qe(ye,be),re(ye,1,ee,"s-2d")},[()=>`--row-index: ${Bt}; --column-index: ${Ft}; left: ${X(Le,Bt,Ft)}px; background-image: url(${m[Le]});`,()=>`frame rotate-${Math.abs(r())/90%4}`]),_(ti,ye)}),_(tt,Gt)}),_(Te,Ue)}),w(Ye),w(Fe),nt(Fe,Te=>N(E,Te),()=>n(E)),B(Te=>{qe=re(Fe,1,"root s-2d",null,qe,Te),Qe(Fe,n(Se)),Qe(Ye,`transform: translateX(${n(U)}px); width: ${n(we)}px;`)},[()=>({"is-vertical-video":!n(G),"vertically-rotated":n(le)})]),$t("mouseleave",Ye,pe),Mn(Fe,"clientWidth",Te=>N(Z,Te)),_(t,Fe),H(),o()}st(["pointerdown","pointermove","pointerup"]);var zw=L('<div class="notification s-2c"><span class="description s-2c"> </span></div>'),Ww={hash:"s-2c",code:".notification.s-2c{background:var(--notification-bg);border-radius:var(--notification-radius);padding:9px 14px 10px 12px}.description.s-2c{font-size:14px;line-height:18px}"};function av(t,e){F(e,!1),q(t,Ww);let i=340,{ui:{t:o}}=ve();To();var r=zw(),a=T(r),l=T(a,!0);w(a),w(r),B(d=>fe(l,d),[()=>o("preview_track_close_tooltip")],En),Jr(3,r,()=>ys,()=>({duration:i})),_(t,r),H()}var Fb=require("@vkontakte/videoplayer-shared/es2015"),Kw=L('<div class="preview-track-close tooltip s-29"><!></div>'),qw=L('<div class="preview-track-control s-29"><!> <div class="preview-track-close s-29"><!></div> <!></div>'),Qw=L('<div class="wrapper-preview-track s-29"><!></div>'),Gw=L('<div class="enriched-timeline s-29"><!> <!> <!></div>'),Yw={hash:"s-29",code:".enriched-timeline.s-29{padding:var(--timeline-padding-vertical-top) var(--timeline-padding-horizontal) var(--timeline-padding-vertical-bottom);pointer-events:auto;position:relative}.preview-track-control.s-29{align-items:center;display:flex;justify-content:center;left:0;padding:0 calc(var(--timeline-padding-horizontal));pointer-events:none;position:absolute;right:0;top:calc((var(--timeline-height) + var(--preview-track-controls-top))*-1)}.preview-track-close.s-29{pointer-events:auto;position:absolute;right:calc(var(--timeline-padding-horizontal))}.preview-track-close.tooltip.s-29{bottom:32px;opacity:0;transition:opacity .2s}.preview-track-close.s-29:hover+.tooltip:where(.s-29){opacity:1}.wrapper-preview-track.s-29{box-sizing:border-box;left:0;overflow:hidden;padding:0 calc(var(--timeline-padding-horizontal));position:absolute;right:0;z-index:-1}"};function lv(t,e){F(e,!0),q(t,Yw);let[i,o]=Re(),r=()=>x(b,"$playerSize",i),a=()=>x(y,"$duration$",i),l=()=>x(S,"$previewTrackActive",i),d=()=>x(f,"$position$",i),s=()=>x($,"$isRewindableLive$",i),u=g(e,"timelineRef",15,void 0),p=ve(),m=200,{positionWithScrubbing$:f,isRewindableLive$:$,duration$:y}=p.state,{playerSize:b,previewTrackActive:S}=p.ui,{countPerImage:C=0,links:I=[],frequency:R=0}=p.actions.internal.getPreviewThumbsData()||{},E=v(()=>r().width>100),P=K(!K_()),O=()=>{n(P)&&(W_(),N(P,!1))},D=ce=>{let ne=Math.floor(a()*ce/R),_e=Math.floor(ne/C),we=(0,Fb.getRangeAroundIndex)(3,_e,I.length-1);for(let Z of we){let Oe=new Image;Oe.src=I[Z]}},U=(ce,ne)=>{D(ne),!l()&&e.onTimelineMove(ce)};var z=Gw(),G=T(z);{var le=ce=>{var ne=qw(),_e=T(ne);let we=v(()=>tn(d()));tv(_e,{get time(){return n(we)}});var Z=k(_e,2),Oe=T(Z);Ms(Oe,{onClick:()=>p.actions.internal.closePreviewTrack()}),w(Z);var ue=k(Z,2);{var A=Ke=>{var Ce=Kw(),pe=T(Ce);av(pe,{}),w(Ce),_(Ke,Ce)};V(ue,Ke=>{n(P)&&Ke(A)})}w(ne),$t("mouseleave",Z,O),Jr(3,ne,()=>ys,()=>({duration:m})),_(ce,ne)};V(G,ce=>{l()&&ce(le)})}var j=k(G,2);let ie=v(()=>!n(E));el(j,{get isHidden(){return n(ie)},get isAds(){return e.isAds},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return s()},onSliderMove:U,get onSliderPointerDown(){return e.onTimelinePointerDown},get onSliderPointerUp(){return e.onTimelinePointerUp},get onSliderLeave(){return e.onTimelinePointerLeave},onSliderPointerEnter:D,get ref(){return u()},set ref(ce){u(ce)}});var Y=k(j,2);{var ge=ce=>{var ne=Qw(),_e=T(ne);sv(_e,{}),w(ne),B(()=>Qe(ne,`height: ${e.animatedPreviewTrackHeight}px;`)),_(ce,ne)};V(Y,ce=>{e.previewTrackAvailable&&ce(ge)})}w(z),B(()=>Qe(z,`transform: translateY(${e.animatedOffsetY}px);`)),_(t,z),H(),o()}var Xw=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),Zw={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 cv(t,e){var ha,_l;F(e,!0),q(t,Zw);let[i,o]=Re(),r=()=>x(on,"$disabledControls$",i),a=()=>x(ct,"$adPlaybackState",i),l=()=>x(ai,"$playbackState$",i),d=()=>x(so,"$currentSubtitle$",i),s=()=>x(ro,"$isEnded$",i),u=()=>x(nn,"$currentGridType$",i),p=()=>x($o,"$isLive$",i),m=()=>x(je,"$chromecastState$",i),f=()=>x(Ai,"$isPictureInPictureActive",i),$=()=>x(Zt,"$pictureInPictureType$",i),y=()=>x(Si,"$availableSubtitlesList$",i),b=()=>x(Ht,"$contextMenuOpenedByKeyboard$",i),S=()=>x(At,"$showContextMenuBtn$",i),C=()=>x(pt,"$isRewindableLive$",i),I=()=>x(ui,"$isActiveLive$",i),R=()=>x(rs,"$graphIsOpened$",i),E=()=>x(yn,"$contextMenuVisible$",i),P=()=>x(Vi,"$isFullscreen",i),O=()=>x(yo,"$autoplayNextEnabled",i),D=()=>x(n(Ji),"$prevButton",i),U=()=>x(n(Ki),"$replayButton",i),z=()=>x(n(Sn),"$playButton",i),G=()=>x(n(wo),"$nextButton",i),le=()=>x(n(Un),"$playPrevChapterButton",i),j=()=>x(n(mi),"$seekToInteractiveButton",i),ie=()=>x(n(Wr),"$interactiveGraphButton",i),Y=()=>x(n(Tn),"$liveButton",i),ge=()=>x(n(Fo),"$time",i),ce=()=>x(n(xr),"$episodes",i),ne=()=>x(n(sr),"$vkLogo",i),_e=()=>x(n(wr),"$volume",i),we=()=>x(n(Cn),"$subtitles",i),Z=()=>x(n(un),"$settings",i),Oe=()=>x(n(Kr),"$context",i),ue=()=>x(n(pn),"$fullscreen",i),A=()=>x(n(as),"$chromecast",i),Ke=()=>x(Ro,"$additionalDesktopControlPanelRightButtons$",i),Ce=()=>x(Ri,"$playerSize",i),pe=()=>x(rn,"$isInteractiveTime$",i),se=()=>x(fi,"$previewTrackActive",i),De=()=>x(Tt,"$settingsMenuVisible",i),Be=()=>x(fo,"$settingButtonRef$",i),J=()=>x(W,"$startedByKeyboard$",i),X=()=>x(gi,"$isAudioAvailable$",i),Se=()=>x(be,"$fakeIsPlaying$",i),Fe=()=>x(ns,"$seekToInteractiveDisabledTooltip$",i),qe=()=>x(mt,"$isPreviewTrackHorizontallyAligned$",i),Ye=()=>x(me,"$previewTrackAvailable",i),Te=()=>x(qo,"$previewTrackDragInProgress",i),Le=()=>x(jt,"$adPosition",i),Ue=()=>x(ii,"$position$",i),Nt=()=>x(It,"$adDuration",i),tt=()=>x(rt,"$duration$",i),Bt=g(e,"playerControlsWrapperRef",15,void 0),Gt=g(e,"playerControlsRef",15,void 0),Ct=g(e,"isAds",3,!1),ti=g(e,"logoTargetUrl",3,""),Ft=g(e,"isOneVideoPlaylist",3,!1),ye=g(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:be}=Co(),ee=ve(),xe=Co(),Pe=Rt(),Pt=ee.actions.internal.toggleMuted,Ve=ee.actions.internal.togglePlay,at=ee.actions.internal.pause,gt=ee.actions.internal.toggleSubtitle,$e=ee.actions.internal.checkFullscreenSupport,et=(ha=ee.callbacks)==null?void 0:ha.onAudioDoesNotExistHint,ze=(_l=ee.callbacks)==null?void 0:_l.onAudioDisabledHint,rt=ee.state.duration$,ii=ee.state.positionWithScrubbing$,ai=ee.state.playbackState$,gi=ee.state.isAudioAvailable$,yi=ee.state.isAudioDisabled,ro=ee.state.isEnded$,$o=ee.state.isLive$,ui=ee.state.isActiveLive$,pt=ee.state.isRewindableLive$,{isActive$:Ai,type$:Zt}=xe.pictureInPicture$,Tt=ee.ui.settingsMenu.visible$,ri=ee.ui.settingsMenu.openedByBtnKeyboard$,Jt=ee.ui.controls,yt=ee.actions.internal.getVideoEpisodes(),je=ee.state.chromecastState$,Si=ee.state.availableSubtitlesList$,so=ee.state.currentSubtitle$,on=Jt.disabledControls$,yn=ee.ui.contextMenu.visible$,At=ee.ui.contextMenu.showContextMenuBtn$,Ht=ee.ui.contextMenu.openedByBtnKeyboard$,W=ee.ui.startedByKeyboard$,Mt=ee.ui.controlBlocks,li=ee.ui.previewTrackNotificationVisible,dt=ee.ui.t,It=ee.ads.duration,jt=ee.ads.position,ct=ee.ads.playbackState,Vi=ee.ui.isFullscreen,Ri=ee.ui.playerSize,nn=ee.ui.currentGridType$,Ro=ee.ui.additionalDesktopControlPanelRightButtons$,yo=ee.ui.autoplayNextEnabled$,Ui=ee.actions.internal.getVideoElement,gr=ee.actions.internal.replayInteractive,ao=ee.actions.internal.prevVideoClick,xo=ee.actions.internal.nextVideoClick,zi=ee.state.isInteractive,rn=ee.state.isInteractiveTime$,sn=ee.state.showInteractiveGraph,Zn=ee.state.showSeekToInteractive,hr=ee.state.showPlayPrevChapter,Nr=ee.state.showInteractiveTimeIndicator,xs=ee.state.playPrevChapterDisabledTooltip,ns=xe.seekToInteractiveDisabledTooltip$,rs=xe.graphIsOpened$,Jn=Pe.features.interactiveResponsiveUi,an=v(()=>r().has("EPISODE_BUTTON")),No=v(()=>r().has("GRAPH_BUTTON")),ln=v(()=>r().has("SEEK_TO_INTERACTIVE_BUTTON")),er=v(()=>r().has("PLAY_BUTTON")),Dn=v(()=>r().has("REPLAY_BUTTON")),Or=v(()=>r().has("PLAY_PREV_CHAPTER_BUTTON")),Dr=()=>ee.actions.internal.toggleChromecast(),ss=v(()=>Ct()?a()==="playing":l()===tl.PlaybackState.PLAYING),_r=v(()=>d().value!=="off"),lo=v(()=>s()&&!Ct()||zi),br=v(()=>Jn?n(lo)&&io(u(),"m"):n(lo)),tr=v(()=>!s()||zi||Ct()),xn=v(()=>io(u(),"m")),co=v(()=>e.showNextPrevButtons&&io(u(),"m")&&!Ct()&&e.nextButtonActive),Br=v(()=>e.showNextPrevButtons&&io(u(),"m")&&!Ct()&&e.prevButtonActive),Bn=v(()=>!Ct()&&!!p()),ht=v(()=>m()!==tl.ChromecastState.NOT_AVAILABLE&&!(f()&&$()===1)&&io(u(),"m")&&!zi),pi=v(()=>e.showAutoplayNext&&!Ft()&&io(u(),"s")),ir=v(()=>y().length>0&&io(u(),"m")),$r=v(()=>b()||S()),Fr=v(()=>io(u(),"s")&&!Ct()),wn=v(()=>!e.logoHidden&&!Ct()),yr=v(()=>Pe.features.fullscreen&&$e()&&(e.logoHidden||io(u(),Jn?"xs":"s"))&&!(f()&&$()===1)&&(zi?ye():!0)),Oo=v(()=>(!p()||Ct())&&!(Pe.features.interactiveHideTime&&zi)),dn=v(()=>sn&&io(u(),"m")),Do=v(()=>Jn?Zn&&io(u(),"s"):Zn),or=v(()=>Jn?hr&&io(u(),"s"):hr),Wi=v(()=>!Ct()&&!p()&&!!(yt!=null&&yt.length)&&n(xn)&&!n(an)),Bo=v(()=>!C()||!!I()),nr=v(()=>R()?dt("tooltip_interactive_graph_on"):dt("tooltip_interactive_graph_off")),Hr=v(()=>E()?dt("tooltip_context_menu_close"):dt("tooltip_context_menu_open")),uo=(ut,vt)=>ut?vt&&vt===tl.PlaybackState.PAUSED?dt("tooltip_play"):"":dt("tooltip_live"),Fn=v(()=>uo(n(Bo),l())),cn=v(()=>Pe.logoType==="vk_video"?dt("tooltip_vk_video_logo"):dt("tooltip_vk_logo")),Ur=v(()=>n(_r)?dt("tooltip_subtitles_on"):dt("tooltip_subtitles_off")),rr=v(()=>P()?dt("tooltip_fullscreen_on"):dt("tooltip_fullscreen_off")),Hn=v(()=>m()===tl.ChromecastState.CONNECTED?dt("tooltip_chromecast_on"):dt("tooltip_chromecast_off")),zr=v(()=>O()?dt("tooltip_autoplay_on"):dt("tooltip_autoplay_off")),St=K(0),Et=di({}),po=di({}),Ji=v(()=>Jt.prevButton),Ki=v(()=>Jt.replayButton),Sn=v(()=>Jt.playButton),wo=v(()=>Jt.nextButton),Un=v(()=>Jt.playPrevChapterButton),mi=v(()=>Jt.seekToInteractiveButton),Wr=v(()=>Jt.interactiveGraphButton),Tn=v(()=>Jt.liveButton),Fo=v(()=>Jt.time),xr=v(()=>Jt.episodes),sr=v(()=>Jt.vkLogo),wr=v(()=>Jt.volume),Cn=v(()=>Jt.subtitles),un=v(()=>Jt.settings),Kr=v(()=>Jt.context),pn=v(()=>Jt.fullscreen),as=v(()=>Jt.chromecast),Xe=v(()=>({prevButton:D()?D().right-D().left:0,replayButton:U()?U().right-U().left:0,playButton:z()?z().right-z().left:0,nextButton:G()?G().right-G().left:0,playPrevChapterButton:le()?le().right-le().left:0,seekToInteractiveButton:j()?j().right-j().left:0,interactiveGraphButton:ie()?ie().right-ie().left:0,liveButton:Y()?Y().right-Y().left:0,time:ge()?ge().right-ge().left:0,episodes:ce()?ce().right-ce().left:0,vkLogo:ne()?ne().right-ne().left:0,volume:_e()?_e().right-_e().left:0,subtitles:we()?we().right-we().left:0,settings:Z()?Z().right-Z().left:0,context:Oe()?Oe().right-Oe().left:0,fullscreen:ue()?ue().right-ue().left:0,chromecast:A()?A().right-A().left:0,additionalButtons:Ke().length?Ke().reduce(ut=>[...ut,40],[]):[]})),Vt=K(0);Ne(()=>{(!n(Vt)||n(Vt)<n(Xe).time)&&kt(()=>N(Vt,n(Xe).time,!0))});let xi=K(!1);Ne(()=>{let ut=0;n(Wi)&&(io(u(),"xl")?ut=n(Xe).time:ut=60);let vt=n(Xe).prevButton+n(Xe).playButton+n(Xe).nextButton+n(Xe).seekToInteractiveButton+n(Xe).interactiveGraphButton+n(Xe).liveButton+n(Vt)+ut;N(xi,n(Oo)&&n(St)>=vt,!0)});let Io=v(()=>n(xi)&&io(u(),"m")),Eo=(0,dv.debounceFn)(sd,260),Ho=(0,dv.debounceFn)(_p,260);Ne(()=>{Ce(),pe(),se(),Eo(Ui(),Jt,Et,e.showControls),Ho(Ui(),Mt,po,e.showControls)}),Ne(()=>{po.bottom=Bt()});let fo=ae();Ne(()=>{De(),Be()&&kt(()=>Xl(Be(),De(),ri))});let Ni;Ne(()=>{J(),kt(()=>gp(W,J(),Ni))});function Uo(){aa({isAudioDisabled:yi,isAudioAvailable:X(),isAds:Ct(),audioIsNotExistHintCallback:et,audioDisabledHintCallback:ze})&&Pt()}let zo=zi?gr:Ve,So=v(()=>Se()!==null),Wo=v(()=>n(So)?Se():n(ss)),fn=v(()=>n(Wo)?dt("tooltip_pause"):dt("tooltip_play")),Sr=dt("tooltip_episodes"),Tr=v(()=>{var ut,vt,Qi,Qo;return n(Br)?{id:"prevButton",type:"desktop-control-panel-left",weight:Ns.prevButton,buttonComponent:Za,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:ao.bind(null,!0)},tooltipEnabled:!((vt=(ut=ee.callbacks)==null?void 0:ut.uiInfo)!=null&&vt.onPrevButtonMouseEnter)&&!((Qo=(Qi=ee.callbacks)==null?void 0:Qi.uiInfo)!=null&&Qo.onPrevButtonMouseLeave),mouseEnter:()=>{var Gi,wi,Oi;(Oi=(wi=(Gi=ee.callbacks)==null?void 0:Gi.uiInfo)==null?void 0:wi.onPrevButtonMouseEnter)==null||Oi.call(wi,jn(Ui(),Et,"prevButton",e.showControls))},mouseLeave:()=>{var Gi,wi,Oi;(Oi=(wi=(Gi=ee.callbacks)==null?void 0:Gi.uiInfo)==null?void 0:wi.onPrevButtonMouseLeave)==null||Oi.call(wi,jn(Ui(),Et,"prevButton",e.showControls))},tooltipText:dt("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),Cr=v(()=>n(br)?{id:"replayButton",type:"desktop-control-panel-left",weight:Ns.replayButton,buttonComponent:ad,buttonComponentProps:{disabled:n(Dn),click:zo},tooltipText:dt("tooltip_restart"),disabled:n(Dn)}:void 0),ls=v(()=>n(tr)?{id:"playButton",type:"desktop-control-panel-left",weight:Ns.playButton,buttonComponent:ld,buttonComponentProps:{disabled:n(er),isPlaying:n(ss),click:Ve},tooltipText:n(fn),disabled:n(er)}:void 0),ds=v(()=>{var ut,vt,Qi,Qo;return n(co)?{id:"nextButton",type:"desktop-control-panel-left",weight:Ns.nextButton,buttonComponent:Za,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:xo.bind(null,!0)},tooltipEnabled:!((vt=(ut=ee.callbacks)==null?void 0:ut.uiInfo)!=null&&vt.onNextButtonMouseEnter)&&!((Qo=(Qi=ee.callbacks)==null?void 0:Qi.uiInfo)!=null&&Qo.onNextButtonMouseLeave),mouseEnter:()=>{var Gi,wi,Oi;(Oi=(wi=(Gi=ee.callbacks)==null?void 0:Gi.uiInfo)==null?void 0:wi.onNextButtonMouseEnter)==null||Oi.call(wi,jn(Ui(),Et,"nextButton",e.showControls))},mouseLeave:()=>{var Gi,wi,Oi;(Oi=(wi=(Gi=ee.callbacks)==null?void 0:Gi.uiInfo)==null?void 0:wi.onNextButtonMouseLeave)==null||Oi.call(wi,jn(Ui(),Et,"nextButton",e.showControls))},tooltipText:dt("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),Ze=v(()=>zi&&n(or)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:Ns.playPrevChapterButton,buttonComponent:Ec,buttonComponentProps:{disabled:n(Or),click:e.playPrevChapter},tooltipText:dt("tooltip_interactive_go_back"),disabledTooltipContent:dt(xs),disabled:n(Or)}:void 0),Kt=v(()=>zi&&n(Do)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:Ns.seekToInteractiveButton,buttonComponent:Ac,buttonComponentProps:{disabled:n(ln),click:e.seekToInteractive},tooltipText:dt("tooltip_interactive_seek"),disabled:n(ln),disabledTooltipContent:dt(Fe())}:void 0),Ci=v(()=>zi&&n(dn)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:Ns.interactiveGraphButton,buttonComponent:kc,buttonComponentProps:{disabled:n(No),click:rs.toggle,graphIsOpened:R()},tooltipText:n(nr)}:void 0),Ko=v(()=>n(Bn)?{id:"liveButton",type:"desktop-control-panel-left",weight:Ns.liveButton,buttonComponent:Lc,buttonComponentProps:{isLiveActive:n(Bo),ariaLabel:n(Fn)},tooltipText:n(Fn),disabled:n(Bo)&&l()===tl.PlaybackState.PLAYING}:void 0),mo=v(()=>[n(Tr),n(Cr),n(ls),n(ds),n(Ze),n(Kt),n(Ci),n(Ko)].filter(ut=>!!ut).sort(Ka)),Ir=v(()=>n(wn)?{id:"vkLogo",type:"desktop-control-panel-right",weight:Ds.vkLogo,buttonComponent:$c,buttonComponentProps:{targetUrl:ti(),logoClickable:e.logoClickable,click:at},tooltipText:n(cn),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),mn=v(()=>n(pi)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:Ds.autoplayNext,buttonComponent:Pc,tooltipText:n(zr)}:void 0),Er=v(()=>({id:"volume",type:"desktop-control-panel-right",weight:Ds.volume,buttonComponent:Rm,buttonComponentProps:{click:Uo,isAds:Ct()}})),Hs=v(()=>n(ir)?{id:"subtitles",type:"desktop-control-panel-right",weight:Ds.subtitles,buttonComponent:km,buttonComponentProps:{isSubtitlesEnabled:n(_r),click:gt},tooltipText:n(Ur)}:void 0),In=v(()=>n(Fr)?{id:"settings",type:"desktop-control-panel-right",weight:Ds.settings,buttonComponent:id,buttonComponentProps:{ref$:fo},tooltipText:De()?void 0:dt("tooltip_settings_off")}:void 0),Us=v(()=>Pe.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:Ds.context,buttonComponent:Qm,buttonComponentProps:{ariaLabel:dt("aria_label_context_menu")},className:n($r)?"":"out-of-view",tooltipText:n(Hr)}:void 0),ar=v(()=>n(yr)?{id:"fullscreen",type:"desktop-control-panel-right",weight:Ds.fullscreen,buttonComponent:bc,buttonComponentProps:{isFullscreen:P(),click:e.toggleFullscreen},tooltipText:n(rr)}:void 0),cs=v(()=>n(ht)?{id:"chromecast",type:"desktop-control-panel-right",weight:Ds.chromecast,buttonComponent:xc,buttonComponentProps:{state:m(),click:Dr},tooltipText:n(Hn)}:void 0),ft=v(()=>[n(Ir),n(mn),n(Er),n(Hs),n(In),n(Us),n(ar),n(cs),...Ke()].filter(ut=>!!ut).sort(Ka)),fi=ee.ui.previewTrackActive,qo=ee.ui.previewTrackDragInProgress,me=ee.ui.previewTrackAvailable,mt=ee.ui.isPreviewTrackHorizontallyAligned,ei=v(()=>Ob({onPreviewTrackOpened:ee.actions.internal.previewTrackOpened,getTimelineRef:()=>Et.timeline,isHorizontal:qe()})),Ii=v(()=>n(ei).progressBarY),qi=v(()=>n(ei).controlsY),si=v(()=>n(ei).onPointerDown),oi=v(()=>n(ei).onPointerMove),vo=v(()=>n(ei).onPointerUp),zn=v(()=>n(ei).calculatedHeight),Wn=v(()=>n(ei).closePreviewTrack);Ne(()=>{se()?li.set(!1):n(Wn)()});let ki;Dt(()=>()=>ki&&clearTimeout(ki));let bd=ut=>{se()||!Ye()||(n(si)(ut),ki=setTimeout(()=>{ee.actions.internal.previewTrackDragStarted()},200))},pl=()=>{se()||n(vo)(),ki&&clearTimeout(ki),Te()&&ee.actions.internal.previewTrackDragFinished()},zs=ut=>{n(oi)(ut),!se()&&Ye()&&!se()&&li.set(!0)},fa=()=>{li.set(!1)};var ma=Xw(),vn=de(ma);let fl;var va=T(vn);{var qr=ut=>{let vt=v(()=>n(Ii)()),Qi=v(()=>n(zn)());lv(ut,{get animatedOffsetY(){return n(vt)},get animatedPreviewTrackHeight(){return n(Qi)},get canRewindLive(){return e.canRewindLive},get isAds(){return Ct()},onTimelineMove:zs,onTimelinePointerDown:bd,onTimelinePointerUp:pl,onTimelinePointerLeave:fa,get previewTrackAvailable(){return Ye()},get timelineRef(){return Et.timeline},set timelineRef(Qo){Et.timeline=Qo}})};V(va,ut=>{e.showControls&&ut(qr)})}var us=k(va,2),Ws=T(us),ga=T(Ws);Ti(ga,17,()=>n(mo),ut=>ut.id,(ut,vt)=>{hp(ut,{get buttonComponent(){return n(vt).buttonComponent},get buttonComponentProps(){return n(vt).buttonComponentProps},get tooltipText(){return n(vt).tooltipText},get disabledTooltipContent(){return n(vt).disabledTooltipContent},get disabled(){return n(vt).disabled},get className(){return n(vt).className},get tooltipEnabled(){return n(vt).tooltipEnabled},get mouseEnter(){return n(vt).mouseEnter},get mouseLeave(){return n(vt).mouseLeave},get tooltipVisible(){return e.showControls},get ref(){return Et[n(vt).id]},set ref(Qi){Et[n(vt).id]=Qi}})});var ml=k(ga,2);{var vl=ut=>{let vt=v(()=>!e.showControls),Qi=v(()=>Ct()?Le():Ue()),Qo=v(()=>Ct()?Nt():tt());gc(ut,{get isHidden(){return n(vt)},isMobile:!1,get showDuration(){return n(Io)},get position(){return n(Qi)},get duration(){return n(Qo)},get ref(){return Et.time},set ref(Gi){Et.time=Gi}})};V(ml,ut=>{n(Oo)&&ut(vl)})}var $d=k(ml,2);let gl=v(()=>!n(Wi));Mo($d,{className:"w-max",get disabled(){return n(gl)},get tooltipContent(){return Sr},get tooltipVisible(){return e.showControls},get ref(){return Et.episodes},set ref(ut){Et.episodes=ut},children:(ut,vt)=>{var Qi=Me(),Qo=de(Qi);{var Gi=wi=>{wc(wi,{get position(){return Ue()},get duration(){return tt()},get timeCodes(){return yt}})};V(Qo,wi=>{n(Wi)&&wi(Gi)})}_(ut,Qi)},$$slots:{default:!0}}),w(Ws);var hl=k(Ws,2);Ti(hl,21,()=>n(ft),ut=>ut.id,(ut,vt)=>{var Qi=Me(),Qo=de(Qi);{var Gi=Oi=>{hp(Oi,{get buttonComponent(){return n(vt).buttonComponent},get buttonComponentProps(){return n(vt).buttonComponentProps},get tooltipText(){return n(vt).tooltipText},get disabledTooltipContent(){return n(vt).disabledTooltipContent},get disabled(){return n(vt).disabled},get className(){return n(vt).className},get tooltipVisible(){return e.showControls},get ref(){return Et[n(vt).id]},set ref(_a){Et[n(vt).id]=_a}})},wi=Oi=>{let _a=v(()=>!!n(vt).disabled);Jm(Oi,{get id(){return n(vt).id},get testId(){return n(vt).testId},get icon(){return n(vt).icon},get ariaLabel(){return n(vt).ariaLabel},get tooltipText(){return n(vt).tooltipText},get disabledTooltipContent(){return n(vt).disabledTooltipContent},get disabled(){return n(_a)},get onClick(){return n(vt).onClick},get disableMouseupTooltipShow(){return n(vt).disableMouseupTooltipShow},get tooltipVisible(){return e.showControls},get ref(){return Et[n(vt).id]},set ref(bl){Et[n(vt).id]=bl}})};V(Qo,Oi=>{Vb(n(vt))?Oi(Gi):Oi(wi,!1)})}_(ut,Qi)}),w(hl),w(us),nt(us,ut=>Gt(ut),()=>Gt()),w(vn),nt(vn,ut=>Bt(ut),()=>Bt());var Pr=k(vn,2);{var yd=ut=>{Cc(ut,{get ref(){return Et.interactiveTimeIndicator},set ref(vt){Et.interactiveTimeIndicator=vt}})};V(Pr,ut=>{Nr&&ut(yd)})}B((ut,vt)=>{fl=re(vn,1,"wrapper-bottom s-1b",null,fl,ut),Qe(us,vt),us.inert=se()},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth||Te()}),()=>`transform: translateY(${n(qi)()}px);`]),Mn(Ws,"clientWidth",ut=>N(St,ut)),_(t,ma),H(),o()}var dd=require("@vkontakte/videoplayer-core/es2015");var uv=require("@vkontakte/videoplayer-shared/es2015");var Jw=L('<div class="icon icon-error-stub s-22"><div class="inner s-22"></div></div>'),eS=L('<img class="icon s-22" aria-hidden="true"/>'),tS={hash:"s-22",code:".icon.s-22{height:24px!important;width:24px!important}.inner.s-22{background-color:var(--white);height:16px;width:16px}"};function pv(t,e){q(t,tS);let i=g(e,"disabled",3,!1),o=g(e,"onClick",3,uv.noop),r=v(()=>o()===uv.noop),a=v(()=>n(r)||i()),l=K(!1),d=()=>{N(l,!0)},s=v(()=>n(r)?"btn-full-opacity":"");Wt(t,{get className(){return n(s)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return n(a)},get testId(){return e.testId},children:(u,p)=>{var m=Me(),f=de(m);{var $=b=>{var S=Jw();_(b,S)},y=b=>{var S=eS();B(()=>We(S,"src",e.iconUrl)),$t("error",S,d),La(S),_(b,S)};V(f,b=>{n(l)?b($):b(y,!1)})}_(u,m)},$$slots:{default:!0}})}var iS=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 fv(t){Je(t,{testId:"muted-icon",children:(e,i)=>{var o=iS();_(e,o)},$$slots:{default:!0}})}var Hb=require("@vkontakte/videoplayer-shared/es2015");function $p(t,e){F(e,!0);let i=g(e,"muted",3,!1),o=g(e,"click",3,Hb.noop),r=g(e,"ref",15,void 0),l=ve().ui.t,d=v(()=>i()?l("tooltip_volume"):l("tooltip_volume_muted")),s=v(()=>i()?"btn-mobile-muted":"btn-mobile-unmuted");Wt(t,{get testId(){return n(s)},get click(){return o()},get ariaLabel(){return n(d)},role:"button",get ref(){return r()},set ref(u){r(u)},children:(u,p)=>{var m=Me(),f=de(m);{var $=b=>{fv(b,{})},y=b=>{ca(b,{get size(){return"24"}})};V(f,b=>{i()?b($):b(y,!1)})}_(u,m)},$$slots:{default:!0}}),H()}var oS=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>'),nS=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>'),rS=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 mv(t,e){let i=g(e,"isActive",3,!1),o=v(()=>i()?"pip-icon--active":"pip-icon");Je(t,{get testId(){return n(o)},children:(r,a)=>{var l=rS(),d=k(de(l));{var s=p=>{var m=oS();_(p,m)},u=p=>{var m=nS();_(p,m)};V(d,p=>{i()?p(s):p(u,!1)})}_(r,l)},$$slots:{default:!0}})}var Ub=require("@vkontakte/videoplayer-shared/es2015");function vv(t,e){F(e,!0);let i=g(e,"ref",15,void 0),o=g(e,"isPictureInPictureActive",3,!1),r=g(e,"click",3,Ub.noop),a=Q("menu_pip");Wt(t,{testId:"btn-pip",get ariaLabel(){return a},get click(){return r()},get ref(){return i()},set ref(l){i(l)},children:(l,d)=>{mv(l,{get isActive(){return o()}})},$$slots:{default:!0}}),H()}var gv=require("@vkontakte/videoplayer-shared/es2015");var sS=(t,e,i,o)=>{n(e)&&i.onDisabledPlayPrevChapterClick(n(o))},aS=(t,e,i,o)=>{n(e)&&i.onDisabledSeekToInteractiveClick(n(o))},lS=L("<div><!></div>"),dS=L("<div><!></div>"),cS=L("<div><!></div>"),uS=L("<!> <!> <!>",1),pS=L("<div></div> <div></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),fS=L('<div class="wrapper-middle s-19"><!></div>'),mS=L("<div><!></div> <!> <div><!></div>",1),vS=L('<div aria-hidden="true">·</div> <!>',1),gS=L('<!> <!> <div><div><div class="controls mobile s-19"><div class="controls-group contain s-19"><!> <!> <!> <!></div> <div class="controls-group s-19"><!> <!> <!></div></div> <!></div></div> <!>',1),hS={hash:"s-19",code:'.wrapper-bottom.s-19{bottom:0;box-sizing:border-box;display:flex;flex-direction:column;justify-content:flex-end;left:0;padding:0 4px 8px;pointer-events:none;position:absolute;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);width:100%;z-index:var(--controls-container-z-index)}.wrapper-bottom.s-19:before{background:var(--controls-gradient);content:"";height:var(--controls-gradient-height);position:absolute;width:100%}.wrapper-bottom.s-19>:where(.s-19){pointer-events:auto}.wrapper-bottom.ads-timeline-mobile.s-19{height:9px;padding:0 4px 4px}.wrapper-middle.s-19{align-items:center;left:50%;top:50%;transform:translate(-50%,-50%)}.wrapper-middle.s-19,.wrapper-top-right.s-19{display:flex;position:absolute;transition:opacity var(--controls-transition-duration);z-index:var(--controls-container-z-index)}.wrapper-top-right.s-19{right:8px;top:4px}.wrapper-top-left.s-19{left:8px;position:absolute;top:4px;z-index:var(--controls-container-z-index)}.wrapper-middle-left.s-19,.wrapper-middle-left-second.s-19,.wrapper-middle-right.s-19{align-items:center;background-color:rgba(0,0,0,.56);border-radius:12px;display:flex;height:44px;justify-content:center;position:absolute;top:50%;transform:translateY(-50%);transition:opacity var(--controls-transition-duration);width:44px}.wrapper-middle-left.s-19{left:12px}.wrapper-middle-left-second.s-19{left:64px}.wrapper-middle-right.s-19{right:12px}.controls.s-19{align-items:center;box-sizing:border-box;font-size:13px;height:var(--controls-height);justify-content:space-between;padding:0 4px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);white-space:nowrap;width:100%;will-change:transform}.controls.s-19,.controls-group.s-19{display:flex}.controls-group.contain.s-19{min-width:0}.controls-group.s-19 >:not(:first-child){margin-left:8px}.hidden.s-19{opacity:0;visibility:hidden}.controls-hidden.s-19{transform:translateY(100%);visibility:visible}.wrapper-bottom.no-smooth.s-19{transition:none}.overlay-mobile.s-19{background-color:rgba(0,0,0,.3);height:100%;left:0;pointer-events:none;position:absolute;top:0;transition:opacity var(--controls-transition-duration);width:100%}@media screen and (orientation:portrait){.wrapper-top-left.fullscreen.s-19,.wrapper-top-right.fullscreen.s-19{top:16px}.controls-wrapper.fullscreen.s-19{bottom:30px;position:absolute;width:calc(100% - 8px)}}@media screen and (orientation:landscape){.wrapper-top-left.fullscreen.s-19{left:44px;top:12px}.wrapper-top-right.fullscreen.s-19{right:44px;top:12px}.wrapper-middle-left.fullscreen.s-19{left:44px}.wrapper-middle-left-second.fullscreen.s-19{left:96px}.wrapper-middle-right.fullscreen.s-19{right:44px}.controls-wrapper.fullscreen.s-19{bottom:32px;left:36px;position:absolute;right:36px;width:calc(100% - 72px)}}'};function hv(t,e){var pn,as;F(e,!0),q(t,hS);let[i,o]=Re(),r=()=>x(Ri,"$seekToInteractiveDisabledTooltip$",i),a=()=>x(Jt,"$disabledControls$",i),l=()=>x(Ft,"$playbackState$",i),d=()=>x(on,"$adPlaybackState",i),s=()=>x(ee,"$isEnded$",i),u=()=>x(At,"$playerSize",i),p=()=>x(gt,"$scrubbingInProgress",i),m=()=>x(Tt,"$chromecastState$",i),f=()=>x(et,"$isPictureInPictureActive",i),$=()=>x(ze,"$pictureInPictureType$",i),y=()=>x($e,"$mobileNotReportControlHidden$",i),b=()=>x(pt,"$chromecastHidden",i),S=()=>x(Gt,"$playerPhase",i),C=()=>x($o,"$pipHidden",i),I=()=>x(je,"$currentGridType$",i),R=()=>x(yi,"$vkLogoHidden",i),E=()=>x(gi,"$volumeHidden",i),P=()=>x(xe,"$isLive$",i),O=()=>x(rt,"$settingsMenuVisible",i),D=()=>x(at,"$isRewindableLive$",i),U=()=>x(Ve,"$isActiveLive$",i),z=()=>x(ye,"$isAudioAvailable$",i),G=()=>x(Pt,"$muted$",i),le=()=>x(Pe,"$volume$",i),j=()=>x(dt,"$isInteractiveTime$",i),ie=()=>x(Do,"$settingButtonRef$",i),Y=()=>x(yt,"$startedByKeyboard$",i),ge=()=>x(yn,"$isFullscreen",i),ce=()=>x(Ht,"$additionalButtons$",i),ne=()=>x(ro,"$autoplayNextToggleHidden",i),_e=()=>x(ri,"$crashed$",i),we=()=>x(ui,"$settingsHidden",i),Z=()=>x(nn,"$graphIsOpened$",i),Oe=()=>x(so,"$adPosition",i),ue=()=>x(Si,"$adDuration",i),A=()=>x(ti,"$position$",i),Ke=()=>x(Ct,"$duration$",i),Ce=g(e,"playerControlsWrapperRef",15,void 0),pe=g(e,"playerControlsRef",15,void 0),se=g(e,"isAds",3,!1),De=g(e,"logoTargetUrl",3,""),Be=g(e,"isOneVideoPlaylist",3,!1),J=g(e,"customFullscreenSupported",3,!0),X=ve(),Se=Co(),Fe=Rt(),qe=X.actions.internal.toggleMuted,Ye=X.actions.internal.togglePlay,Te=X.actions.internal.pause,Le=X.actions.internal.prevVideoClick,Ue=X.actions.internal.nextVideoClick,Nt=X.actions.internal.checkFullscreenSupport,tt=(pn=X.callbacks)==null?void 0:pn.onAudioDoesNotExistHint,Bt=(as=X.callbacks)==null?void 0:as.onAudioDisabledHint,Gt=X.playerPhase,Ct=X.state.duration$,ti=X.state.positionWithScrubbing$,Ft=X.state.playbackState$,ye=X.state.isAudioAvailable$,be=X.state.isAudioDisabled,ee=X.state.isEnded$,xe=X.state.isLive$,Pe=X.state.volume$,Pt=X.state.muted$,Ve=X.state.isActiveLive$,at=X.state.isRewindableLive$,gt=X.ui.scrubbingInProgress,$e=X.ui.mobileNotReportControlHidden$,{isActive$:et,type$:ze}=Se.pictureInPicture$,rt=X.ui.settingsMenu.visible$,ii=X.ui.settingsMenu.openedByBtnKeyboard$,ai=X.ui.controls,{volume:gi,vkLogo:yi,autoplayNextToggle:ro,pip:$o,settings:ui,chromecast:pt}=X.ui.hiddenControls,Ai=X.actions.internal.getVideoEpisodes(),Zt=X.webApi.pictureInPictureApi,Tt=X.state.chromecastState$,ri=X.state.crashed$,Jt=ai.disabledControls$,yt=X.ui.startedByKeyboard$,je=X.ui.currentGridType$,Si=X.ads.duration,so=X.ads.position,on=X.ads.playbackState,yn=X.ui.isFullscreen,At=X.ui.playerSize,Ht=X.ui.additionalButtonsDeprecated$,W=X.actions.internal.getVideoElement,Mt=X.actions.internal.replayInteractive,li=X.state.isInteractive,dt=X.state.isInteractiveTime$,It=X.state.showInteractiveGraph,jt=X.state.showSeekToInteractive,ct=X.state.showPlayPrevChapter,Vi=X.state.showInteractiveTimeIndicator,Ri=Se.seekToInteractiveDisabledTooltip$,nn=Se.graphIsOpened$,Ro=X.ui.controlBlocks,yo=v(()=>Q(X.state.playPrevChapterDisabledTooltip)),Ui=v(()=>Q(r())),gr=v(()=>a().has("EPISODE_BUTTON")),ao=v(()=>a().has("GRAPH_BUTTON")),xo=v(()=>a().has("SEEK_TO_INTERACTIVE_BUTTON")),zi=v(()=>a().has("PLAY_BUTTON")),rn=v(()=>a().has("REPLAY_BUTTON")),sn=v(()=>a().has("PLAY_PREV_CHAPTER_BUTTON")),Zn=v(()=>l()===dd.PlaybackState.PLAYING),hr=v(()=>d()==="paused"),Nr=v(()=>s()&&!se()&&!li),xs=v(()=>!s()||se()),ns=v(()=>e.showNextPrevButtons&&!se()&&e.prevButtonActive),rs=v(()=>e.showNextPrevButtons&&!se()&&e.nextButtonActive),Jn=v(()=>u().width>300),an=v(()=>u().width>400),No=v(p),ln=v(()=>m()!==dd.ChromecastState.NOT_AVAILABLE&&!(f()&&$()===1)&&!y()&&!li&&!b()),er=v(()=>S()==="LiveWaitingStart"),Dn=v(()=>!!Zt&&m()!==dd.ChromecastState.CONNECTED&&!y()&&($()===1&&n(er)||!n(er))&&!n(No)&&!li&&!C()),Or=K(!1);Dt(()=>{let Xe=Zt==null?void 0:Zt.info.isActive$.subscribe(Vt=>N(Or,Vt,!0));return()=>Xe==null?void 0:Xe.unsubscribe()});let Dr=v(()=>!n(No)&&io(I(),"s")),ss=v(()=>!e.logoHidden&&u().width>350&&!R()),_r=v(()=>Fe.features.fullscreen&&Nt()&&!(f()&&$()===1)&&(li?J():!0)&&!n(No)&&!n(Or)),lo=v(()=>!E()&&!n(No)),br=v(()=>(!P()||se())&&u().width>260&&!n(No)&&!(Fe.features.interactiveHideTime&&li)),tr=v(()=>O()||e.showControls),xn=v(()=>!se()&&!P()&&!!(Ai!=null&&Ai.length)&&n(Jn)&&!n(gr)&&!n(No)),co=v(()=>!D()||!!U()),Br=v(()=>It&&io(I(),"m")),Bn=v(()=>!z()||G()||le()===0),ht=di({}),pi=di({}),ir=(0,gv.debounceFn)(sd,260),$r=(0,gv.debounceFn)(_p,260);Ne(()=>{u(),j(),ir(W(),ai,ht,e.showControls),$r(W(),Ro,pi,e.showControls)});let Fr=()=>X.actions.internal.toggleChromecast();function wn(){return _t(this,null,function*(){Zt!=null&&Zt.isActive()?yield Zt==null?void 0:Zt.exit():yield Zt==null?void 0:Zt.request()})}function yr(){aa({isAudioDisabled:be,audioDisabledHintCallback:Bt,isAudioAvailable:z(),audioIsNotExistHintCallback:tt,isAds:se()})&&qe()}let Oo=K(""),dn=(Xe,Vt)=>{if(!Xe){N(Oo,Q("tooltip_live"),!0);return}Vt&&Vt===dd.PlaybackState.PAUSED&&N(Oo,Q("tooltip_play"),!0)};Ne(()=>{dn(n(co),l())});let Do=ae();Ne(()=>{ie()&&Xl(ie(),O(),ii)}),Ne(()=>{gp(yt,Y(),ht.playButton)}),Ne(()=>{pi.bottom=Ce()});var or=gS(),Wi=de(or);{var Bo=Xe=>{var Vt=pS(),xi=de(Vt);let Io;var Eo=k(xi,2);let Ho;nt(Eo,ft=>pi.topLeft=ft,()=>pi==null?void 0:pi.topLeft);var fo=k(Eo,2);let Ni;var Uo=T(fo);Ti(Uo,1,ce,({iconUrl:ft,ariaLabel:fi,testId:qo,onClick:me,tooltip:mt})=>ft,(ft,fi)=>{let qo=()=>n(fi).iconUrl,me=()=>n(fi).ariaLabel,mt=()=>n(fi).testId,ei=()=>n(fi).onClick,Ii=()=>n(fi).tooltip,qi=v(()=>{var si;return(si=me())!=null?si:Ii()});pv(ft,{get iconUrl(){return qo()},get ariaLabel(){return n(qi)},get testId(){return mt()},get onClick(){return ei()}})});var zo=k(Uo,2);{var So=ft=>{Pc(ft,{get ref(){return ht.autoplayNextToggle},set ref(fi){ht.autoplayNextToggle=fi}})};V(zo,ft=>{e.showAutoplayNext&&!Be()&&!ne()&&ft(So)})}var Wo=k(zo,2);{var fn=ft=>{xc(ft,{isMobile:!0,click:Fr,get state(){return m()},get ref(){return ht.chromecast},set ref(fi){ht.chromecast=fi}})};V(Wo,ft=>{n(ln)&&ft(fn)})}var Sr=k(Wo,2);{var Tr=ft=>{vv(ft,{click:wn,get isPictureInPictureActive(){return f()},get ref(){return ht.pip},set ref(fi){ht.pip=fi}})};V(Sr,ft=>{n(Dn)&&ft(Tr)})}var Cr=k(Sr,2);{var ls=ft=>{id(ft,{get ref$(){return Do}})};V(Cr,ft=>{_e()&&!we()&&ft(ls)})}var ds=k(Cr,2);{var Ze=ft=>{$c(ft,{get click(){return Te},get targetUrl(){return De()},get logoClickable(){return e.logoClickable},get ref(){return ht.vkLogo},set ref(fi){ht.vkLogo=fi}})};V(ds,ft=>{n(ss)&&ft(Ze)})}w(fo),nt(fo,ft=>pi.topRight=ft,()=>pi==null?void 0:pi.topRight);var Kt=k(fo,2);let Ci;var Ko=T(Kt);{var mo=ft=>{let fi=v(()=>Le.bind(null,!0));Za(ft,{get click(){return n(fi)},type:"prev",isMobile:!0,get ref(){return ht.prevButton},set ref(qo){ht.prevButton=qo}})};V(Ko,ft=>{n(ns)&&ft(mo)})}var Ir=k(Ko,2);{var mn=ft=>{ld(ft,{get disabled(){return n(zi)},get click(){return Ye},isMobile:!0,get isPlaying(){return n(Zn)},get ref(){return ht.playButton},set ref(fi){ht.playButton=fi}})};V(Ir,ft=>{n(xs)&&ft(mn)})}var Er=k(Ir,2);{var Hs=ft=>{ad(ft,{get disabled(){return n(rn)},get click(){return Ye},isMobile:!0,get ref(){return ht.replayButton},set ref(fi){ht.replayButton=fi}})};V(Er,ft=>{n(Nr)&&ft(Hs)})}var In=k(Er,2);{var Us=ft=>{let fi=v(()=>Ue.bind(null,!0));Za(ft,{get click(){return n(fi)},type:"next",isMobile:!0,get ref(){return ht.nextButton},set ref(qo){ht.nextButton=qo}})};V(In,ft=>{n(rs)&&ft(Us)})}w(Kt),nt(Kt,ft=>pi.middle=ft,()=>pi==null?void 0:pi.middle);var ar=k(Kt,2);{var cs=ft=>{var fi=uS(),qo=de(fi);{var me=si=>{var oi=lS();let vo;oi.__click=[sS,sn,e,yo];var zn=T(oi);let Wn=v(()=>!e.showControls);Ec(zn,{get hidden(){return n(Wn)},get disabled(){return n(sn)},get click(){return e.playPrevChapter},get ref(){return ht.playPrevChapterButton},set ref(ki){ht.playPrevChapterButton=ki}}),w(oi),B(ki=>vo=re(oi,1,"wrapper-middle-left s-19",null,vo,ki),[()=>({fullscreen:ge(),hidden:!e.showControls})]),_(si,oi)};V(qo,si=>{ct&&si(me)})}var mt=k(qo,2);{var ei=si=>{var oi=dS();let vo;var zn=T(oi);let Wn=v(()=>!e.showControls&&!Z());kc(zn,{get hidden(){return n(Wn)},get disabled(){return n(ao)},get click(){return nn.toggle},get graphIsOpened(){return Z()},get ref(){return ht.interactiveGraphButton},set ref(ki){ht.interactiveGraphButton=ki}}),w(oi),B(ki=>vo=re(oi,1,Kd(ct?"wrapper-middle-left-second":"wrapper-middle-left"),"s-19",vo,ki),[()=>({fullscreen:ge(),hidden:!e.showControls&&!Z()})]),_(si,oi)};V(mt,si=>{n(Br)&&si(ei)})}var Ii=k(mt,2);{var qi=si=>{var oi=cS();let vo;oi.__click=[aS,xo,e,Ui];var zn=T(oi);let Wn=v(()=>!e.showControls);Ac(zn,{get hidden(){return n(Wn)},get disabled(){return n(xo)},get click(){return e.seekToInteractive},get ref(){return ht.seekToInteractiveButton},set ref(ki){ht.seekToInteractiveButton=ki}}),w(oi),B(ki=>vo=re(oi,1,"wrapper-middle-right s-19",null,vo,ki),[()=>({fullscreen:ge(),hidden:!e.showControls})]),_(si,oi)};V(Ii,si=>{jt&&si(qi)})}_(ft,fi)};V(ar,ft=>{li&&!p()&&ft(cs)})}B((ft,fi,qo,me)=>{Io=re(xi,1,"overlay-mobile s-19",null,Io,ft),Ho=re(Eo,1,"wrapper-top-left s-19",null,Ho,fi),Ni=re(fo,1,"wrapper-top-right s-19",null,Ni,qo),Ci=re(Kt,1,"wrapper-middle s-19",null,Ci,me)},[()=>({hidden:!n(tr)}),()=>({hidden:!e.showControls,fullscreen:ge()}),()=>({hidden:!e.showControls&&!y(),fullscreen:ge()}),()=>({hidden:!e.showControls||p()||e.endScreenShown&&e.showNextPrevButtons})]),_(Xe,Vt)};V(Wi,Xe=>{se()||Xe(Bo)})}var nr=k(Wi,2);{var Hr=Xe=>{var Vt=mS(),xi=de(Vt);let Io;var Eo=T(xi);$p(Eo,{get muted(){return G()},click:yr,get ref(){return ht.volume},set ref(So){ht.volume=So}}),w(xi);var Ho=k(xi,2);{var fo=So=>{var Wo=fS(),fn=T(Wo);let Sr=v(()=>!n(hr));ld(fn,{get disabled(){return n(zi)},get click(){return Ye},isMobile:!0,get isPlaying(){return n(Sr)},get ref(){return ht.playButton},set ref(Tr){ht.playButton=Tr}}),w(Wo),_(So,Wo)};V(Ho,So=>{n(hr)&&So(fo)})}var Ni=k(Ho,2);let Uo;var zo=T(Ni);Mc(zo,{get position(){return Oe()},get duration(){return ue()}}),w(Ni),B((So,Wo)=>{Io=re(xi,1,"wrapper-top-right s-19",null,Io,So),Uo=re(Ni,1,"wrapper-bottom ads-timeline-mobile s-19",null,Uo,Wo)},[()=>({fullscreen:ge()}),()=>({fullscreen:ge()})]),_(Xe,Vt)};V(nr,Xe=>{se()&&d()!=="inactive"&&Xe(Hr)})}var uo=k(nr,2);let Fn;var cn=T(uo);let Ur;var rr=T(cn),Hn=T(rr),zr=T(Hn);{var St=Xe=>{Mo(Xe,{get disabled(){return n(rn)},get ref(){return ht.replayButton},set ref(Vt){ht.replayButton=Vt},children:(Vt,xi)=>{ad(Vt,{get disabled(){return n(rn)},get click(){return Mt}})},$$slots:{default:!0}})};V(zr,Xe=>{li&&Xe(St)})}var Et=k(zr,2);{var po=Xe=>{Mo(Xe,{get ref(){return ht.liveButton},set ref(Vt){ht.liveButton=Vt},children:(Vt,xi)=>{Lc(Vt,{get isLiveActive(){return n(co)},isMobile:!0,get ariaLabel(){return n(Oo)}})},$$slots:{default:!0}})};V(Et,Xe=>{!se()&&P()&&Xe(po)})}var Ji=k(Et,2);{var Ki=Xe=>{let Vt=v(()=>se()?Oe():A()),xi=v(()=>se()?ue():Ke()),Io=v(()=>!e.showControls);gc(Xe,{get showDuration(){return n(an)},get position(){return n(Vt)},get duration(){return n(xi)},isMobile:!0,get isHidden(){return n(Io)},get ref(){return ht.time},set ref(Eo){ht.time=Eo}})};V(Ji,Xe=>{n(br)&&Xe(Ki)})}var Sn=k(Ji,2);let wo=v(()=>!n(xn));Mo(Sn,{className:"w-max",get disabled(){return n(wo)},get ref(){return ht.episodes},set ref(Xe){ht.episodes=Xe},children:(Xe,Vt)=>{var xi=Me(),Io=de(xi);{var Eo=Ho=>{var fo=vS(),Ni=k(de(fo),2);wc(Ni,{get position(){return A()},get duration(){return Ke()},get timeCodes(){return Ai}}),_(Ho,fo)};V(Io,Ho=>{n(xn)&&Ho(Eo)})}_(Xe,xi)},$$slots:{default:!0}}),w(Hn),nt(Hn,Xe=>pi.bottomLeft=Xe,()=>pi==null?void 0:pi.bottomLeft);var Un=k(Hn,2),mi=T(Un);{var Wr=Xe=>{Mo(Xe,{get ref(){return ht.volume},set ref(Vt){ht.volume=Vt},children:(Vt,xi)=>{$p(Vt,{get muted(){return n(Bn)},click:yr})},$$slots:{default:!0}})};V(mi,Xe=>{n(lo)&&Xe(Wr)})}var Tn=k(mi,2);{var Fo=Xe=>{Mo(Xe,{get ref(){return ht.settings},set ref(Vt){ht.settings=Vt},children:(Vt,xi)=>{id(Vt,{get ref$(){return Do}})},$$slots:{default:!0}})};V(Tn,Xe=>{n(Dr)&&Xe(Fo)})}var xr=k(Tn,2);{var sr=Xe=>{Mo(Xe,{get ref(){return ht.fullscreen},set ref(Vt){ht.fullscreen=Vt},children:(Vt,xi)=>{bc(Vt,{get click(){return e.toggleFullscreen},get isFullscreen(){return ge()}})},$$slots:{default:!0}})};V(xr,Xe=>{n(_r)&&Xe(sr)})}w(Un),nt(Un,Xe=>pi.bottomRight=Xe,()=>pi==null?void 0:pi.bottomRight),w(rr),nt(rr,Xe=>pe(Xe),()=>pe());var wr=k(rr,2);let Cn=v(()=>!e.showControls);el(wr,{get isHidden(){return n(Cn)},get isAds(){return se()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return D()},get ref(){return ht.timeline},set ref(Xe){ht.timeline=Xe}}),w(cn),w(uo),nt(uo,Xe=>Ce(Xe),()=>Ce());var un=k(uo,2);{var Kr=Xe=>{Cc(Xe,{get ref(){return ht.interactiveTimeIndicator},set ref(Vt){ht.interactiveTimeIndicator=Vt}})};V(un,Xe=>{Vi&&Xe(Kr)})}B((Xe,Vt)=>{Fn=re(uo,1,"wrapper-bottom mobile s-19",null,Fn,Xe),Ur=re(cn,1,"controls-wrapper s-19",null,Ur,Vt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth}),()=>({fullscreen:ge()})]),_(t,or),H(),o()}st(["click"]);function Vc(t,e){F(e,!0);let[i,o]=Re(),r=()=>x(C,"$isMobile",i),a=g(e,"bottomNoSmooth",3,!1),l=g(e,"playerControlsWrapperRef",15,void 0),d=g(e,"playerControlsRef",15,void 0),s=g(e,"isAds",3,!1),u=g(e,"logoTargetUrl",3,""),p=g(e,"showAutoplayNext",3,!1),m=g(e,"isOneVideoPlaylist",3,!1),f=g(e,"customFullscreenSupported",3,!0),$=g(e,"endScreenShown",3,!1),y=g(e,"onDisabledPlayPrevChapterClick",3,_v.noop),b=g(e,"onDisabledSeekToInteractiveClick",3,_v.noop),C=ve().ui.isMobile,I=K(!1);Dt(()=>{let O=setTimeout(()=>N(I,!0),0);return()=>clearTimeout(O)});var R=Me(),E=de(R);{var P=O=>{var D=Me(),U=de(D);{var z=le=>{hv(le,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return a()},get showControls(){return e.showControls},get isAds(){return s()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},get showAutoplayNext(){return p()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get isOneVideoPlaylist(){return m()},get customFullscreenSupported(){return f()},get endScreenShown(){return $()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return y()},get onDisabledSeekToInteractiveClick(){return b()},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(j){l(j)},get playerControlsRef(){return d()},set playerControlsRef(j){d(j)}})},G=le=>{cv(le,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return a()},get showControls(){return e.showControls},get isAds(){return s()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},get isOneVideoPlaylist(){return m()},get showAutoplayNext(){return p()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get customFullscreenSupported(){return f()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(j){l(j)},get playerControlsRef(){return d()},set playerControlsRef(j){d(j)}})};V(U,le=>{r()?le(z):le(G,!1)})}_(O,D)};V(E,O=>{n(I)&&O(P)})}_(t,R),H(),o()}var _S=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 Rc(t,e){F(e,!0);let i=v(()=>e.reversed?"transform:scaleX(-1);transform-origin:50% 0;":""),o=v(()=>`${bn(e.size)}${n(i)}`);Je(t,{get width(){return"48"},get height(){return"48"},get fill(){return e.fill},get style(){return n(o)},get testId(){return e.testId},children:(r,a)=>{var l=_S();_(r,l)},$$slots:{default:!0}}),H()}var bS=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 bv(t,e){F(e,!0);let i=g(e,"reversed",3,!1),o=v(()=>i()?"transform:scaleX(-1);transform-origin: 50% 0;":void 0),r=v(()=>`seek-icon-${i()?"backward":"forward"}`);Je(t,{get width(){return"48"},get height(){return"48"},get style(){return n(o)},get testId(){return n(r)},children:(a,l)=>{var d=bS();_(a,d)},$$slots:{default:!0}}),H()}var $S=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),yS=L('<span class="hot-key-helpers-text s-x"> </span>'),xS=L("<!> <!>",1),wS=L("<div><!></div>"),SS={hash:"s-x",code:'.hot-key-helpers-container.s-x{align-items:center;animation:s-x-fadeIn ease var(--controls-transition-duration);box-sizing:border-box;display:flex;flex-direction:column;height:120px;left:calc(50% - 100px);padding-top:14px;position:absolute;top:calc(50% - 40px);width:200px;z-index:var(--hot-key-helpers-container-z-index)}.hot-key-helpers-container--left.s-x{left:calc(25% - 100px)}.hot-key-helpers-container--right.s-x{left:calc(75% - 100px)}.hot-key-helpers-text.s-x{display:-webkit-box;font-feature-settings:"clig" off,"liga" off;font-size:15px;font-style:normal;font-weight:600;letter-spacing:-.105px;-webkit-line-clamp:2;line-height:20px;margin-top:4px;max-height:40px;overflow:hidden;text-align:center;text-overflow:ellipsis;text-shadow:0 0 5px rgba(0,0,0,.16);white-space:pre-wrap;width:100%;-webkit-box-orient:vertical}.hidden.s-x{animation:s-x-fadeOut ease var(--controls-transition-duration);height:0;visibility:hidden;width:0}@keyframes s-x-fadeIn{0%{opacity:0}to{opacity:1}}@keyframes s-x-fadeOut{0%{opacity:1}to{opacity:0}}'};function $v(t,e){F(e,!0),q(t,SS);let[i,o]=Re(),r=()=>x(e.data,"$data",i),a=ve(),{features:l}=Rt(),d=a.ui.t,s=v(()=>!r()),u=v(()=>{var C;return((C=r())==null?void 0:C.type)==="BACKWARD_SEEK"}),p=v(()=>{var C;return((C=r())==null?void 0:C.type)==="FORWARD_SEEK"}),m=v(()=>{var C;return(C=r())==null?void 0:C.type}),f=v(()=>{var C,I;return(C=r())!=null&&C.t?d(r().t.key,{value:r().t.value||""}):(I=r())==null?void 0:I.text});var $=wS();let y;var b=T($);{var S=C=>{var I=xS(),R=de(I);let E=v(()=>`hotkey-helper-icon-${n(m).toLowerCase()}`);ec(R,{get testId(){return n(E)},children:(D,U)=>{var z=$S(),G=de(z);{var le=J=>{let X=v(()=>n(m)==="BACKWARD_SEEK");bv(J,{get reversed(){return n(X)}})};V(G,J=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(n(m))&&J(le)})}var j=k(G,2);{var ie=J=>{Os(J,{get size(){return"48"}})};V(j,J=>{n(m)==="PAUSE"&&!l.playbackStatusShow&&J(ie)})}var Y=k(j,2);{var ge=J=>{Rn(J,{get size(){return"48"}})};V(Y,J=>{n(m)==="PLAY"&&!l.playbackStatusShow&&J(ge)})}var ce=k(Y,2);{var ne=J=>{Ic(J,{get size(){return"48"}})};V(ce,J=>{n(m)==="REPLAY"&&!l.playbackStatusShow&&J(ne)})}var _e=k(ce,2);{var we=J=>{da(J,{get size(){return"48"},type:"off"})};V(_e,J=>{n(m)==="SUBTITLES_OFF"&&J(we)})}var Z=k(_e,2);{var Oe=J=>{da(J,{get size(){return"48"}})};V(Z,J=>{n(m)==="SUBTITLES_ON"&&J(Oe)})}var ue=k(Z,2);{var A=J=>{let X=v(()=>n(m)==="RATE_DOWN");Rc(J,{get size(){return"48"},get reversed(){return n(X)},testId:"rate-change-icon"})};V(ue,J=>{["RATE_DOWN","RATE_UP"].includes(n(m))&&J(A)})}var Ke=k(ue,2);{var Ce=J=>{let X=v(()=>n(m)==="EPISODE_PREV");ua(J,{get size(){return"48"},get reversed(){return n(X)}})};V(Ke,J=>{["EPISODE_PREV","EPISODE_NEXT"].includes(n(m))&&J(Ce)})}var pe=k(Ke,2);{var se=J=>{ca(J,{get size(){return"48"},volume:0})};V(pe,J=>{n(m)==="MUTE"&&J(se)})}var De=k(pe,2);{var Be=J=>{ca(J,{get size(){return"48"},volume:1})};V(De,J=>{n(m)==="VOLUME"&&J(Be)})}_(D,z)},$$slots:{default:!0}});var P=k(R,2);{var O=D=>{var U=yS(),z=T(U,!0);w(U),B(()=>fe(z,n(f))),_(D,U)};V(P,D=>{n(f)&&D(O)})}_(C,I)};V(b,C=>{!n(s)&&n(m)&&C(S)})}w($),B(C=>y=re($,1,"hot-key-helpers-container s-x",null,y,C),[()=>({hidden:n(s),"hot-key-helpers-container--left":n(u),"hot-key-helpers-container--right":n(p)})]),_(t,$),H(),o()}var TS=(t,e,i,o,r,a)=>{if(e.has(t.code))switch(t.preventDefault(),t.stopPropagation(),t.code){case"ArrowUp":i();break;case"ArrowDown":o();break;case"ArrowLeft":r();break;case"ArrowRight":a();break}},CS=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},IS=L('<div tabindex="0" role="button"><div class="button-block s-o" aria-hidden="true"><div class="button-row s-o"><div class="button button-up s-o"><!></div> <div class="button button-right s-o"><!></div></div> <div class="button-row s-o"><div class="button button-left s-o"><!></div> <div class="button button-down s-o"><!></div></div></div></div>'),ES={hash:"s-o",code:".immersive-controls.s-o{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-o{left:20px;top:50px}.button-block.s-o{height:40px;margin:auto;transform:rotate(45deg);width:40px}.button-row.s-o{display:flex;flex-direction:row;position:relative}.button.s-o{cursor:pointer;height:20px;text-align:center;width:20px}.button.s-o svg{opacity:.7;transition:opacity .2s linear}.button.button-up.s-o svg{transform:rotate(-45deg) translate(-1px,-1px)}.button.button-right.s-o svg{transform:rotate(45deg) translate(1px,-1px)}.button.button-down.s-o svg{transform:rotate(135deg) translate(1px,-3px)}.button.button-left.s-o svg{transform:rotate(-135deg) translate(-1px,-3px)}.button.s-o:hover svg{opacity:1}"};function Nc(t,e){F(e,!0),q(t,ES);let i=g(e,"isShifted",3,!1),o=ve(),r=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),a=()=>{o.actions.internal.startCameraManualRotation(0,1)},l=()=>{o.actions.internal.startCameraManualRotation(0,-1)},d=()=>{o.actions.internal.startCameraManualRotation(1,0)},s=()=>{o.actions.internal.startCameraManualRotation(-1,0)},u=()=>(o.actions.internal.stopCameraManualRotation(),null),p=Q("aria_label_spherical_control");var m=IS();let f;m.__keydown=[TS,r,a,l,s,d],m.__keyup=[CS,r,u];var $=T(m),y=T($),b=T(y);b.__mousedown=a,b.__mouseup=u;var S=T(b);Vr(S,{direction:"up",useBtnColor:!0}),w(b);var C=k(b,2);C.__mousedown=d,C.__mouseup=u;var I=T(C);Vr(I,{direction:"up",useBtnColor:!0}),w(C),w(y);var R=k(y,2),E=T(R);E.__mousedown=s,E.__mouseup=u;var P=T(E);Vr(P,{direction:"up",useBtnColor:!0}),w(E);var O=k(E,2);O.__mousedown=l,O.__mouseup=u;var D=T(O);Vr(D,{direction:"up",useBtnColor:!0}),w(O),w(R),w($),w(m),B(U=>{f=re(m,1,"immersive-controls s-o",null,f,U),We(m,"aria-label",p)},[()=>({"m-shifted":i()})]),$t("mouseleave",b,u),$t("mouseleave",C,u),$t("mouseleave",E,u),$t("mouseleave",O,u),_(t,m),H()}st(["keydown","keyup","mousedown","mouseup"]);var Bs=require("@vkontakte/videoplayer-shared/es2015");var zb=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var yp=class{constructor(){this.flickeringTimeout=zb(1e3);this.subscriptions=new Bs.Subscription;this.isAuto=!1;this.isLive=!1;this.captions$=new Bs.ValueSubject([]);this.captionsPrepared$=new Bs.ValueSubject([])}subscribe(){return this.subscriptions.add(this.captions$.pipe((0,Bs.filter)(()=>this.isEnabled()),(0,Bs.filterChanged)()).subscribe(e=>{this.processCaptions(e)})),this}setIsAuto(e){this.isAuto=e}setIsLive(e){this.isLive=e}setCaptions(e){this.captions$.next(e)}destroy(){this.subscriptions.unsubscribe(),this.flickeringTimeout.clear()}isEnabled(){return this.isAuto&&!this.isLive}processCaptions(e){if(!e.length){this.flickeringTimeout.add(()=>{this.captionsPrepared$.next([])});return}this.flickeringTimeout.clear();let i=[],o=e.length>1&&e[0].type!=="timestamp"&&e[1].type!=="timestamp";o&&i.push([{value:String(e[0].value),timeAppeared:null}]),i.push(e.reduce((r,{type:a,value:l},d)=>(o&&!d||(a==="timestamp"?r.push({timeAppeared:Number(l),value:""}):r.length===0?r.push({value:String(l)}):r[r.length-1].value=String(l)),r),[])),this.captionsPrepared$.next(i)}};var PS=L('<span class="caption-line s-d"><span class="caption-segment s-d"> </span></span>'),AS=L('<span class="caption-line s-d"><span class="caption-segment s-d"></span></span>'),kS=L('<span class="caption-line s-d"><span class="caption-segment s-d"> </span></span>'),LS=L('<div><span class="caption s-d"><!></span></div>'),MS=L("<div><!></div>"),VS={hash:"s-d",code:".subtitles-container.s-d{height:100%;left:0;pointer-events:none;position:absolute;top:0;transition:transform var(--controls-transition-duration);width:100%}.subtitles-container.shifted.s-d{transform:translateY(calc(var(--controls-height)*-1))}.subtitles-container.preview-track-active.s-d{transform:translateY(calc(var(--preview-track-height)*-1))}.preview-track-active.s-d .subtitles-caption:where(.s-d){bottom:var(--preview-track-controls-top-offset)}.subtitles-caption.s-d{bottom:4%;display:flex;justify-content:center;left:4%;position:absolute;right:4%}.subtitles-caption.mobile.s-d{bottom:8%}.subtitles-container.auto.s-d .subtitles-caption:where(.s-d){left:var(--subtitles-caption-margin);right:var(--subtitles-caption-margin)}.caption.s-d{background:rgba(0,0,0,.4);border-radius:4px;display:block;overflow-wrap:normal;padding:4px 8px}.subtitles-container.auto.s-d .caption:where(.s-d){width:100%}.caption-line.s-d{display:block;text-align:center}.subtitles-container.auto.s-d .caption-line:where(.s-d){text-align:left}.caption-segment.s-d{color:var(--white);display:inline-block;font-size:13px;line-height:1.2;white-space:pre-wrap}"};function ol(t,e){F(e,!0),q(t,VS);let[i,o]=Re(),r=()=>x(f,"$currentSubtitle$",i),a=()=>x(y,"$isLive$",i),l=()=>x(b,"$isFullscreen",i),d=()=>x(S,"$previewTrackActive",i),s=()=>x($,"$isAutoSubtitleCaptionVisible$",i),u=g(e,"isMobile",3,!1),p=ve(),m=Rt(),f=p.state.currentSubtitle$,$=p.state.isAutoSubtitleCaptionVisible$,y=p.state.isLive$,b=p.ui.isFullscreen,S=p.ui.previewTrackActive,C=v(()=>!!r().isAuto),I=v(()=>!!a()),R=v(()=>e.playerSize.width*.02),E=v(()=>u()&&!l()||n(R)<=m.minSubtitlesFontSize?m.minSubtitlesFontSize:n(R)),P=K(null);Ne(()=>{var j,ie,Y;(j=n(P))==null||j.setIsAuto(n(C)),(ie=n(P))==null||ie.setIsLive(n(I)),(Y=n(P))==null||Y.setCaptions(e.captions)});let O=K(di([[]]));Dt(()=>{N(P,new yp().subscribe(),!0);let j=n(P).captionsPrepared$.subscribe(ie=>{N(O,ie,!0)});return()=>{var ie;(ie=n(P))==null||ie.destroy(),j.unsubscribe()}}),Dt(()=>{if(n(C)){let j=window.setTimeout(()=>{$.set(!1)},m.autoSubtitlesTimeout);return()=>{window.clearTimeout(j)}}else $.set(!1)});let D=v(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var U=MS();let z;var G=T(U);{var le=j=>{var ie=LS();let Y;var ge=T(ie),ce=T(ge);{var ne=we=>{var Z=PS(),Oe=T(Z),ue=T(Oe,!0);w(Oe),w(Z),B(A=>{var Ke;Qe(Oe,`font-size: ${(Ke=n(E))!=null?Ke:""}px`),fe(ue,A)},[()=>Q("subtitles_auto_caption")]),_(we,Z)},_e=(we,Z)=>{{var Oe=A=>{var Ke=Me(),Ce=de(Ke);Ti(Ce,17,()=>n(O),zd,(pe,se)=>{var De=AS(),Be=T(De);Ti(Be,21,()=>n(se),({value:J,timeAppeared:X})=>X,(J,X)=>{let Se=()=>n(X).value,Fe=()=>n(X).timeAppeared;var qe=Me(),Ye=de(qe);{var Te=Le=>{var Ue=hs();B(()=>fe(Ue,Se())),_(Le,Ue)};V(Ye,Le=>{(!Fe()||Fe()<=e.position)&&Le(Te)})}_(J,qe)}),w(Be),w(De),B(()=>{var J;return Qe(Be,`font-size: ${(J=n(E))!=null?J:""}px`)}),_(pe,De)}),_(A,Ke)},ue=A=>{var Ke=Me(),Ce=de(Ke);Ti(Ce,17,()=>e.captions,({value:pe})=>pe,(pe,se)=>{let De=()=>n(se).value;var Be=kS(),J=T(Be),X=T(J,!0);w(J),w(Be),B(()=>{var Se;Qe(J,`font-size: ${(Se=n(E))!=null?Se:""}px`),fe(X,De())}),_(pe,Be)}),_(A,Ke)};V(we,A=>{var Ke;n(C)&&((Ke=n(O))!=null&&Ke.length)?A(Oe):A(ue,!1)},Z)}};V(ce,we=>{n(C)&&s()?we(ne):we(_e,!1)})}w(ge),w(ie),B(we=>{var Z;Y=re(ie,1,"subtitles-caption s-d",null,Y,we),Qe(ie,`--subtitles-caption-margin: ${(Z=n(D))!=null?Z:""}%`)},[()=>({mobile:u()})]),_(j,ie)};V(G,j=>{var ie;(e.captions.length||(ie=n(O))!=null&&ie.length)&&j(le)})}w(U),B(j=>z=re(U,1,"subtitles-container s-d",null,z,j),[()=>({shifted:e.shifted,"preview-track-active":d(),auto:n(C)&&!n(I)&&!s()})]),_(t,U),H(),o()}var Wb=require("@vkontakte/videoplayer-core/es2015");var RS=L('<div class="text s-n"> </div>'),NS=L('<div><div class="icon_wrapper s-n"><!></div> <!></div>'),OS={hash:"s-n",code:".wrapper.s-n{align-items:center;background-position:50%;background-repeat:no-repeat;background-size:contain;display:flex;flex-direction:column;font-size:16px;height:100%;justify-content:center}.wrapper.bgCover.s-n{background-size:cover}.icon_wrapper.s-n{align-items:center;display:flex;flex-direction:column;width:400px}.text.s-n{margin-top:20px}"};function Oc(t,e){F(e,!0),q(t,OS);let i=g(e,"chromecastDeviceName",3,"chromecastDeviceName"),o=Rt();var r=NS();let a;var l=T(r),d=T(l);yc(d,{get size(){return"48"},get iconState(){return Wb.ChromecastState.CONNECTED}}),w(l);var s=k(l,2);{var u=p=>{var m=RS(),f=T(m);w(m),B(()=>{var $;return fe(f,`Видео воспроизводится на ${($=i())!=null?$:""}`)}),_(p,m)};V(s,p=>{i()&&p(u)})}w(r),B(p=>{a=re(r,1,"wrapper s-n",null,a,p),Qe(r,`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${e.thumbUrl||""}')`)},[()=>({bgCover:o.features.previewNoEmptySpace})]),_(t,r),H()}var DS=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 yv(t){Je(t,{width:"200",height:"200",viewBox:"460 190 130 90",testId:"error-icon",children:(e,i)=>{var o=DS();_(e,o)},$$slots:{default:!0}})}var BS=L('<div class="container s-4"><!></div>'),FS={hash:"s-4",code:".container.s-4{align-items:center;background:#000;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}"};function nl(t){q(t,FS);var e=BS(),i=T(e);yv(i,{}),w(e),_(t,e)}var HS=L('<div class="playButton s-a" tabindex="0" role="button"><div class="playButtonBackground s-a"></div> <!></div>'),US=L("<div><!></div>"),zS={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){F(e,!0),q(t,zS);let i=g(e,"iconVisible",3,!0),o=ve(),r=Rt(),a=o.ui.startedByKeyboard$,l=Q("tooltip_play"),d=$=>{var b;let y=$.code;["Enter","Space"].includes(y)&&($.stopPropagation(),$.preventDefault(),a.set(!0),(b=e.startVideo)==null||b.call(e))},s=$=>{var y,b;$.stopPropagation(),(y=e.startVideo)==null||y.call(e),(b=e.onClick)==null||b.call(e,$)};var u=US();let p;u.__click=s,u.__contextmenu=function(...$){var y;(y=e.onContextMenu)==null||y.apply(this,$)};var m=T(u);{var f=$=>{var y=HS();y.__keydown=d;var b=k(T(y),2);Rn(b,{get size(){return"48"}}),w(y),B(()=>We(y,"aria-label",l)),_($,y)};V(m,$=>{i()&&$(f)})}return w(u),B($=>{p=re(u,1,"container s-a",null,p,$),Qe(u,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:r.features.previewNoEmptySpace})]),_(t,u),H({handlePressKey:d,handleClick:s})}st(["click","contextmenu","keydown"]);var WS=L('<div data-testid="video_title"><span> </span></div>'),KS={hash:"s-12",code:".title.s-12{background:linear-gradient(0deg,transparent,rgba(0,0,0,.02) 19%,rgba(0,0,0,.1) 34%,rgba(0,0,0,.4) 60%,rgba(0,0,0,.6));box-sizing:border-box;color:var(--white);font-size:15px;height:var(--controls-gradient-height);left:0;overflow:hidden;padding:18px 20px 10px;pointer-events:none;position:absolute;text-overflow:ellipsis;top:0;transition-duration:var(--controls-transition-duration);transition-property:visibility,transform,opacity;transition-timing-function:var(--controls-transition-fn);white-space:nowrap;width:100%;will-change:transform,opacity}.hidden.s-12{opacity:0;transform:translateY(calc(var(--controls-gradient-height)*-1));visibility:hidden}"};function xv(t,e){F(e,!0),q(t,KS);let i=g(e,"title",3,""),o=g(e,"isHidden",3,!1),r=g(e,"ref",15),a=K(void 0);Dt(()=>{var m;requestAnimationFrame(()=>{var f;(f=e.onVisibilityChanged)==null||f.call(e,!0)});function p(f){var $;f.propertyName==="transform"&&(($=e.onVisibilityChanged)==null||$.call(e,!o()))}return(m=n(a))==null||m.addEventListener("transitionend",p),()=>{var f;return(f=n(a))==null?void 0:f.removeEventListener("transitionend",p)}});var l=WS();let d;var s=T(l),u=T(s,!0);w(s),nt(s,p=>r(p),()=>r()),w(l),nt(l,p=>N(a,p),()=>n(a)),B(p=>{d=re(l,1,"title s-12",null,d,p),fe(u,i())},[()=>({hidden:o()})]),_(t,l),H()}var Kb=require("@vkontakte/videoplayer-shared/es2015");var qS=L('<div class="timer__cell cell s-1a"><span class="cell__value s-1a"> </span> <span class="cell__unit s-1a"> </span></div> <span class="timer__points s-1a"> </span>',1),QS=L('<div class="timer__cell cell s-1a"><span class="cell__value s-1a"> </span> <span class="cell__unit s-1a"> </span></div> <span class="timer__points s-1a"> </span>',1),GS=L('<div class="timer__cell cell s-1a"><span class="cell__value s-1a"> </span> <span class="cell__unit s-1a"> </span></div> <span class="timer__points s-1a"> </span>',1),YS=L('<div class="timer__cell cell s-1a"><span class="cell__value s-1a"> </span> <span class="cell__unit s-1a"> </span></div>'),jS=L("<div><!> <!> <!> <!></div>"),XS={hash:"s-1a",code:".timer__container.s-1a{align-items:flex-start;display:flex;justify-content:center}.cell.s-1a{align-items:center;display:flex;flex-direction:column}.cell__value.s-1a{font-size:48px;font-weight:600;line-height:1.2}.small.s-1a .cell__value:where(.s-1a){font-size:24px}.cell__unit.s-1a{font-size:14px;font-weight:400;line-height:1.2}.small.s-1a .cell__unit:where(.s-1a){font-size:12px}.timer__points.s-1a{display:inline-block;font-size:42px;font-weight:600;line-height:1.2;margin:0 8px}.small.s-1a .timer__points:where(.s-1a){font-size:20px}"};function wv(t,e){F(e,!0),q(t,XS);let i=K(""),o=K(""),r=K(""),a=K(""),l,d=32,s=d/2,u=U=>String(U).padStart(2,"0"),p=U=>Math.max(U.length,1),m=U=>`${(e.isSmallSize?s:d)*p(U)}px`,f=U=>{let z=Math.floor(U/86400);z&&(U-=z*86400,N(i,u(z),!0));let G=Math.floor(U/3600);N(o,u(G),!0);let le=Math.floor(U/60)%60;N(r,u(le),!0);let j=U%60;N(a,u(j),!0)},$=()=>{let U=Math.floor(Date.now()/1e3),z=e.startTime-U;f(z),z>=1?l=requestAnimationFrame($):e.onTimerOver()};Dt(()=>{l=requestAnimationFrame($)}),_n(()=>{cancelAnimationFrame(l)});var y=jS();let b;var S=T(y);{var C=U=>{var z=qS(),G=de(z);let le;var j=T(G),ie=T(j,!0);w(j);var Y=k(j,2),ge=T(Y,!0);w(Y),w(G);var ce=k(G,2),ne=T(ce,!0);w(ce),B((_e,we,Z)=>{le=Qe(G,"",le,{width:_e}),fe(ie,n(i)),fe(ge,we),fe(ne,Z)},[()=>m(n(i)),()=>Q("waiting_live_day_value"),()=>Q("waiting_live_colon")]),_(U,z)};V(S,U=>{n(i)&&U(C)})}var I=k(S,2);{var R=U=>{var z=QS(),G=de(z);let le;var j=T(G),ie=T(j,!0);w(j);var Y=k(j,2),ge=T(Y,!0);w(Y),w(G);var ce=k(G,2),ne=T(ce,!0);w(ce),B((_e,we,Z)=>{le=Qe(G,"",le,{width:_e}),fe(ie,n(o)),fe(ge,we),fe(ne,Z)},[()=>m(n(o)),()=>Q("waiting_live_hour_value"),()=>Q("waiting_live_colon")]),_(U,z)};V(I,U=>{n(o)&&U(R)})}var E=k(I,2);{var P=U=>{var z=GS(),G=de(z);let le;var j=T(G),ie=T(j,!0);w(j);var Y=k(j,2),ge=T(Y,!0);w(Y),w(G);var ce=k(G,2),ne=T(ce,!0);w(ce),B((_e,we,Z)=>{le=Qe(G,"",le,{width:_e}),fe(ie,n(r)),fe(ge,we),fe(ne,Z)},[()=>m(n(r)),()=>Q("waiting_live_minute_value"),()=>Q("waiting_live_colon")]),_(U,z)};V(E,U=>{n(r)&&U(P)})}var O=k(E,2);{var D=U=>{var z=YS();let G;var le=T(z),j=T(le,!0);w(le);var ie=k(le,2),Y=T(ie,!0);w(ie),w(z),B((ge,ce)=>{G=Qe(z,"",G,{width:ge}),fe(j,n(a)),fe(Y,ce)},[()=>m(n(a)),()=>Q("waiting_live_second_value")]),_(U,z)};V(O,U=>{n(a)&&U(D)})}w(y),B(U=>b=re(y,1,"timer__container s-1a",null,b,U),[()=>({small:e.isSmallSize})]),_(t,y),H()}var ZS=L('<div class="waiting s-q"><span> </span></div>'),JS=L('<div class="upcoming-timer timer s-q"><span> </span> <!></div>'),e2=L('<div class="waiting-container s-q"><!></div>'),t2={hash:"s-q",code:'.waiting-container.s-q{background-color:var(--black);background-position:50%;background-repeat:no-repeat;background-size:cover;white-space:nowrap}.waiting-container.s-q,.waiting-container.s-q:before{height:100%;left:0;position:absolute;top:0;width:100%}.waiting-container.s-q:before{backdrop-filter:blur(15px);background-color:rgba(0,0,0,.56);content:"";z-index:1}.waiting.s-q{align-items:center;display:flex;flex-direction:column;justify-content:center;left:0;position:absolute;top:50%;transform:translateY(-50%);width:100%;z-index:2}.waiting__title.s-q{font-size:20px;font-weight:600;line-height:1.2}.upcoming-timer.s-q{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:2}.timer.s-q{align-items:center;display:flex;flex-direction:column;justify-content:center}.timer__title.s-q{display:inline-block;font-size:20px;font-weight:600;line-height:1.2;margin-bottom:12px;vertical-align:middle}.small.s-q{font-size:15px}.medium.s-q{font-size:17px}'};function Dc(t,e){F(e,!0),q(t,t2);let i=g(e,"startTime",3,0),o=v(()=>i()<Math.floor(Date.now()/1e3)),r=K(void 0),a=K(void 0),l=0,d=K(void 0),s=K(void 0),u=v(()=>{var S,C;return((S=n(d))!=null?S:1/0)<=509||((C=n(s))!=null?C:1/0)<=320}),p=v(()=>{var S,C;return!n(u)&&(((S=n(d))!=null?S:1/0)<=699||((C=n(s))!=null?C:1/0)<=599)}),m=e.onUpcomingLiveViewStateChanged?(0,Kb.throttleFn)(()=>{cancelAnimationFrame(l),l=requestAnimationFrame(()=>{let S={type:n(o)?"expired":"default",size:n(u)?"s":n(p)?"m":"l"},C=n(o)?n(r):n(a);e.onUpcomingLiveViewStateChanged(S,C)})},300):void 0;Ne(()=>{n(s),n(d),n(o),m==null||m()}),_n(()=>{if(cancelAnimationFrame(l),m==null||m.cancel(),e.onUpcomingLiveViewStateChanged){let S={type:n(o)?"expired":"default",size:n(u)?"s":n(p)?"m":"l"};e.onUpcomingLiveViewStateChanged(S)}});var f=e2();f.__contextmenu=function(...S){var C;(C=e.onContextMenu)==null||C.apply(this,S)},f.__click=function(...S){var C;(C=e.onClick)==null||C.apply(this,S)};var $=T(f);{var y=S=>{var C=ZS(),I=T(C);let R;var E=T(I,!0);w(I),w(C),nt(C,P=>N(r,P),()=>n(r)),B((P,O)=>{R=re(I,1,"waiting__title s-q",null,R,P),fe(E,O)},[()=>({medium:n(p),small:n(u)}),()=>Q("waiting_live_upcoming_title")]),_(S,C)},b=S=>{var C=JS(),I=T(C);let R;var E=T(I,!0);w(I);var P=k(I,2);let O=v(()=>n(u)||n(p)),D=v(()=>i()||0);wv(P,{get isSmallSize(){return n(O)},get startTime(){return n(D)},onTimerOver:()=>N(o,!0)}),w(C),nt(C,U=>N(a,U),()=>n(a)),B((U,z)=>{R=re(I,1,"timer__title s-q",null,R,U),fe(E,z)},[()=>({medium:n(p),small:n(u)}),()=>Q("waiting_live_timer_title")]),_(S,C)};V($,S=>{n(o)?S(y):S(b,!1)})}w(f),B(()=>Qe(f,`background-image: url(${e.thumbUrl})`)),Mn(f,"clientWidth",S=>N(d,S)),Mn(f,"clientHeight",S=>N(s,S)),_(t,f),H()}st(["contextmenu","click"]);var i2=L('<div class="waiting-container s-u"><div class="waiting-caption s-u"><!> <p class="waiting-title s-u"> </p></div></div>'),o2={hash:"s-u",code:'.waiting-container.s-u{align-items:center;background-color:var(--black);background-position:50%;background-repeat:no-repeat;background-size:cover;display:flex;justify-content:center}.waiting-container.s-u,.waiting-container.s-u:before{height:100%;left:0;position:absolute;top:0;width:100%}.waiting-container.s-u:before{backdrop-filter:blur(10px);background-color:rgba(0,0,0,.4);content:""}.waiting-caption.s-u{align-items:center;display:flex;flex-direction:column;position:relative}.waiting-title.s-u{font-size:20px;font-weight:400;line-height:1.2;margin:0;padding:20px;text-align:center}'};function sl(t,e){F(e,!0),q(t,o2);let i=g(e,"thumbUrl",3,""),o={recover:Q("waiting_live_recover_title"),record:Q("waiting_record_title")},r=v(()=>o[e.kind]||"");var a=i2();a.__contextmenu=function(...p){var m;(m=e.onContextMenu)==null||m.apply(this,p)},a.__click=function(...p){var m;(m=e.onClick)==null||m.apply(this,p)};var l=T(a),d=T(l);Qa(d,{style:"position: static; transform: translate(0, 0)"});var s=k(d,2),u=T(s,!0);w(s),w(l),w(a),B(()=>{Qe(a,`background-image: url('${i()}')`),fe(u,n(r))}),_(t,a),H()}st(["contextmenu","click"]);var n2=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 Sv(t){Je(t,{width:"16",height:"16",testId:"check-mark-icon",children:(e,i)=>{var o=n2();_(e,o)},$$slots:{default:!0}})}var r2=L('<div class="select-icon s-1x"><!></div>'),s2={hash:"s-1x",code:".select-icon.s-1x{margin-right:auto;opacity:.9;padding-right:12px;position:relative;top:3px}"};function Bc(t){q(t,s2);var e=r2(),i=T(e);Sv(i,{}),w(e),_(t,e)}var a2=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},l2=(t,e)=>{Zl(t,()=>e.item.selectItem(e.item.value))},d2=L("<p> </p>"),c2=L('<p class="sublabel s-1s"> </p>'),u2=L('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),p2={hash:"s-1s",code:".menu-item-value.s-1s{align-items:end;display:flex;flex-direction:column;min-width:0}.menu-item-value[data-selected=false].s-1s{--select-icon-width:16px;--icon-padding:12px;margin-left:calc(var(--icon-padding) + var(--select-icon-width))}.label.s-1s,.sublabel.s-1s{max-width:100%;overflow:hidden;text-overflow:ellipsis}.sublabel.s-1s{opacity:.5}"};function Tv(t,e){F(e,!0),q(t,p2);let i=g(e,"isMobile",3,!1);var o=u2();let r;o.__click=[a2,e],o.__keydown=[l2,e];var a=T(o);{var l=y=>{Bc(y,{})};V(a,y=>{e.item.selected&&y(l)})}var d=k(a,2);let s;var u=T(d);{var p=y=>{var b=Me(),S=de(b);Fi(S,()=>e.item.valueComponent,(C,I)=>{I(C,ks(()=>{var R;return(R=e.item.valueComponentParams)!=null?R:{}}))}),_(y,b)},m=y=>{var b=d2();let S;var C=T(b,!0);w(b),B(I=>{var R;S=re(b,1,"label s-1s",null,S,I),fe(C,(R=e.item.label)!=null?R:e.item.value)},[()=>({mobile:i()})]),_(y,b)};V(u,y=>{e.item.valueComponent?y(p):y(m,!1)})}var f=k(u,2);{var $=y=>{var b=c2(),S=T(b,!0);w(b),B(()=>fe(S,e.item.sublabel)),_(y,b)};V(f,y=>{e.item.sublabel&&y($)})}w(d),w(o),B((y,b,S)=>{r=re(o,1,"item",null,r,y),We(o,"data-value",e.item.value),We(o,"aria-label",b),We(o,"data-testid",e.item.dataTestid),s=re(d,1,"menu-item-value s-1s",null,s,S),We(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>{var y,b;return(b=(y=e.item.ariaLabel)!=null?y:e.item.label)!=null?b:e.item.value.toString()},()=>({"submenu-value-mobile":i()})]),_(t,o),H()}st(["click","keydown"]);var f2=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function Cv(t,e){F(e,!0);let i=g(e,"isMobile",3,!1),o=g(e,"refMenuItems",15),r=v(()=>()=>e.openSubMenuList(e.item.children)),a=v(()=>b=>ip(b,n(r)));var l=f2();let d;l.__click=function(...b){var S;(S=n(r))==null||S.apply(this,b)},l.__keydown=function(...b){var S;(S=n(a))==null||S.apply(this,b)};var s=T(l);{var u=b=>{Bc(b,{})};V(s,b=>{e.item.selected&&b(u)})}var p=k(s,2);let m;var f=T(p);{var $=b=>{var S=Me();let C=v(()=>e.item.valueComponent);var I=de(S);Fi(I,()=>n(C),(R,E)=>{E(R,ks(()=>{var P;return(P=e.item.valueComponentParams)!=null?P:{}}))}),_(b,S)},y=b=>{var S=hs();B(()=>fe(S,e.item.label)),_(b,S)};V(f,b=>{e.item.valueComponent?b($):b(y,!1)})}w(p),w(l),nt(l,b=>o(o()[e.item.id]=b,!0),()=>{var b;return(b=o())==null?void 0:b[e.item.id]}),B((b,S)=>{var C;d=re(l,1,"item",null,d,b),We(l,"aria-label",(C=e.item.ariaLabel)!=null?C:e.item.label),We(l,"data-testid",e.item.id),m=re(p,1,"menu-item-value",null,m,S)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),_(t,l),H()}st(["click","keydown"]);var os={"quality-settings":100,"audio-language-settings":200,"playback-rate-settings":300,"subtitles-settings":400,"traffic-saving-settings":500,download:600,report:700,"copy-data":800,"save-trace-info":900,"debug-info":1e3};var v2=(t,e)=>{ab(t,e.returnFromSubMenu,e.closeSettingsMenu)},g2=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},h2=(t,e)=>{lc(t)&&(Rr(t),e.returnFromSubMenu())},_2=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>'),b2={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 Ev(t,e){F(e,!0),q(t,b2);let[i,o]=Re(),r=()=>x(m,"$isFullscreen",i),a=()=>x(f,"$playerSize",i),l=g(e,"isMobile",3,!1),d=g(e,"playerControlsHeight",3,0),s=g(e,"ariaLabelReturnFromSubMenu",19,()=>Q("aria_label_submenu_back")),u=g(e,"listRef",15);Dt(()=>{let j=e.items.findIndex(ie=>ie.selected);u().children[j+1].focus()});let p=ve(),m=p.ui.isFullscreen,f=p.ui.playerSize,$=K(void 0),y=K(0),b=K(0),S=v(()=>l()&&r()?`max-height: ${Math.round(a().height*.6)}px`:l()?"":`max-height: ${a().height-32-n(b)-d()}px; overflow: auto;`),C=v(()=>Math.max(e.minWidth,n(y)));var I=_2();let R;var E=T(I);let P;E.__keydown=[v2,e];var O=T(E);let D;O.__click=[g2,e],O.__keydown=[h2,e];var U=T(O);Vr(U,{direction:"left"});var z=k(U,2),G=T(z,!0);w(z),w(O),nt(O,j=>N($,j),()=>n($));var le=k(O,2);Ti(le,17,()=>e.items,zd,(j,ie)=>{var Y=Me(),ge=de(Y);{var ce=_e=>{Tv(_e,{get item(){return n(ie)},get isMobile(){return l()}})},ne=(_e,we)=>{{var Z=Oe=>{Cv(Oe,{get isMobile(){return l()},get item(){return n(ie)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};V(_e,Oe=>{n(ie).type==="OPEN_SUB_MENU"&&Oe(Z)},we)}};V(ge,_e=>{n(ie).type==="SELECT_VALUE"?_e(ce):_e(ne,!1)})}_(j,Y)}),w(E),nt(E,j=>u(j),()=>u()),w(I),B((j,ie,Y)=>{R=re(I,1,"sub-menu menu s-1m",null,R,j),We(I,"data-testid",`sub-menu-${e.id}`),Qe(I,`min-width: ${n(C)}px`),P=re(E,1,"items s-1m",null,P,ie),Qe(E,n(S)),D=re(O,1,"item header back s-1m",null,D,Y),We(O,"aria-label",s()),fe(G,e.title)},[()=>({desktop:!l(),mobile:l()}),()=>({mobile:l()}),()=>({mobile:l()})]),Mn(O,"clientWidth",j=>N(y,j)),Mn(O,"clientHeight",j=>N(b,j)),_(t,I),H(),o()}st(["keydown","click"]);var Qb=require("@vkontakte/videoplayer-shared/es2015");var $2=(t,e)=>ip(t,e()),y2=(t,e)=>{t.stopPropagation(),e()()},x2=L('<div class="value s-1o"> </div>'),w2=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),S2={hash:"s-1o",code:".value.s-1o{opacity:.7;overflow:hidden;position:relative;text-overflow:ellipsis}"};function Pv(t,e){F(e,!0),q(t,S2);let i=g(e,"isMobile",3,!1),o=g(e,"onClick",3,Qb.noop),r=g(e,"valueComponent",3,void 0),a=g(e,"ref",15);var l=w2();let d;l.__click=[y2,o],l.__keydown=[$2,o];var s=T(l),u=T(s);{var p=C=>{Ja(C,{get icon(){return e.icon}})},m=C=>{var I=Me();let R=v(()=>e.icon);var E=de(I);Fi(E,()=>n(R),(P,O)=>{O(P,{})}),_(C,I)};V(u,C=>{typeof e.icon=="string"?C(p):C(m,!1)})}w(s);var f=k(s,2),$=T(f,!0);w(f);var y=k(f,2);{var b=C=>{var I=Me();let R=v(r);var E=de(I);Fi(E,()=>n(R),(P,O)=>{O(P,{})}),_(C,I)},S=C=>{var I=x2(),R=T(I,!0);w(I),B(()=>fe(R,e.value)),_(C,I)};V(y,C=>{r()?C(b):C(S,!1)})}w(l),nt(l,C=>a(C),()=>a()),B(C=>{d=re(l,1,"item",null,d,C),We(l,"aria-label",e.ariaLabel),We(l,"data-testid",e.id),fe($,e.label)},[()=>({mobile:i()})]),_(t,l),H()}st(["click","keydown"]);var Av=require("@vkontakte/videoplayer-shared/es2015");var T2=(t,e)=>{Zl(t,()=>e())},C2=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),I2=L('<img class="icon" aria-hidden="true"/>'),E2=L('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label s-1n"> </div></li>'),P2={hash:"s-1n",code:".label.s-1n{overflow:hidden;text-overflow:ellipsis}"};function kv(t,e){F(e,!0),q(t,P2);let i=g(e,"isMobile",3,!1),o=g(e,"onClick",3,Av.noop),r=g(e,"closeSettings",3,Av.noop),a=K(!1),l=()=>{N(a,!0)},d=S=>{S==null||S.stopPropagation(),o()(),r()()};var s=E2();let u;s.__click=d,s.__keydown=[T2,d];var p=T(s),m=T(p);{var f=S=>{var C=Me(),I=de(C);{var R=P=>{var O=C2();_(P,O)},E=P=>{var O=I2();B(()=>We(O,"src",e.icon)),$t("error",O,l),La(O),_(P,O)};V(I,P=>{n(a)?P(R):P(E,!1)})}_(S,C)},$=S=>{var C=Me();let I=v(()=>e.icon);var R=de(C);Fi(R,()=>n(I),(E,P)=>{P(E,{})}),_(S,C)};V(m,S=>{typeof e.icon=="string"?S(f):S($,!1)})}w(p);var y=k(p,2),b=T(y,!0);w(y),w(s),B(S=>{var C;u=re(s,1,"item",null,u,S),We(s,"aria-label",(C=e.ariaLabel)!=null?C:e.label),We(s,"data-testid",e.id),fe(b,e.label)},[()=>({mobile:i()})]),_(t,s),H()}st(["click","keydown"]);var Gb=require("@vkontakte/videoplayer-shared/es2015");var A2=L('<div class="toggle_wrap s-1r"><div></div> <div class="toggle-label s-1r"></div></div>'),k2={hash:"s-1r",code:'.toggle_wrap.s-1r{cursor:pointer;font-size:12px;line-height:15px;min-height:15px;padding:0;user-select:none}.toggle.s-1r{background-color:var(--toggle-color-separator);border-radius:45px;cursor:pointer;float:right;height:9px;margin-top:3px;width:28px}.toggle.s-1r:after{background-color:var(--toggle-color-off);border-radius:50%;content:"";float:left;height:15px;left:0;position:relative;top:-3px;transition:left .1s ease;width:15px}.toggle.on.s-1r:after{background-color:var(--toggle-color-on);left:13px}.toggle-label.s-1r{overflow:hidden}'};function Lv(t,e){q(t,k2);let i=g(e,"enabled",3,!1);var o=A2(),r=T(o);let a;vi(2),w(o),B(l=>a=re(r,1,"toggle s-1r",null,a,l),[()=>({on:i()})]),_(t,o)}var L2=(t,e,i)=>{lb(t,e(),o=>i()(o))},M2=(t,e,i)=>{t.stopPropagation(),e()(!i())},V2=L('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),R2=L('<li role="menuitem" tabindex="0"><!></li>');function Mv(t,e){F(e,!0);let i=g(e,"isMobile",3,!1),o=g(e,"onClick",3,Gb.noop),r=g(e,"enabled",3,!1),a=g(e,"tooltipText",3,void 0),l=g(e,"maxTooltipWidth",3,void 0);var d=R2();let s;d.__click=[M2,o,r],d.__keydown=[L2,r,o];var u=T(d);Ya(u,{get content(){return a()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return l()},children:(p,m)=>{var f=V2();let $;var y=T(f),b=T(y);{var S=P=>{Ja(P,{get icon(){return e.icon}})},C=P=>{var O=Me();let D=v(()=>e.icon);var U=de(O);Fi(U,()=>n(D),(z,G)=>{G(z,{})}),_(P,O)};V(b,P=>{typeof e.icon=="string"?P(S):P(C,!1)})}w(y);var I=k(y,2),R=T(I,!0);w(I);var E=k(I,2);Lv(E,{get enabled(){return r()}}),w(f),B(P=>{$=re(f,1,"switch-wrapper",null,$,P),fe(R,e.label)},[()=>({mobile:i()})]),_(p,f)},$$slots:{default:!0}}),w(d),B(p=>{var m;s=re(d,1,"item switch-item",null,s,p),We(d,"aria-label",(m=e.ariaLabel)!=null?m:e.label),We(d,"data-testid",e.id)},[()=>({mobile:i()})]),_(t,d),H()}st(["click","keydown"]);var Hc=require("@vkontakte/videoplayer-shared/es2015");var Yb=()=>{let t=K(di([])),e=v(()=>(n(t).length?n(t).at(-1):null)||null);return{get current(){return n(e)},pushSubMenu:i=>{n(t).push(i)},popSubMenu:()=>{N(t,n(t).slice(0,-1),!0)},popAllSubMenus:()=>{N(t,[],!0)}}};var N2=L('<div class="quality-icon s-1q"><!></div>'),O2=L('<div class="quality-label s-1q"><span> </span> <!></div>'),D2={hash:"s-1q",code:".quality-label.s-1q{position:relative}.quality.s-1q{font-size:13px;line-height:18px}.quality.sub.s-1q{opacity:.7}.quality-icon.s-1q{display:flex;padding-left:2px;position:absolute;right:0;top:0;transform:translateX(100%)}.quality-icon.s-1q svg{color:var(--blue-light)}"};function al(t,e){F(e,!0),q(t,D2);let i=g(e,"isSubCase",3,!1),o=v(()=>ap(e.quality));var r=O2(),a=T(r);let l;var d=T(a,!0);w(a);var s=k(a,2);{var u=p=>{var m=N2();let f=v(()=>n(o));var $=T(m);Fi($,()=>n(f),(y,b)=>{b(y,{})}),w(m),_(p,m)};V(s,p=>{n(o)&&!e.isMobile&&p(u)})}w(r),B(p=>{l=re(a,1,"s-1q",null,l,p),fe(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),_(t,r),H()}var Jb=require("@vkontakte/videoplayer-shared/es2015");var Vv=require("@vkontakte/videoplayer-core/es2015");var jb=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},Xb=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=jb({quality:t,availableQualities:e});return i?t===Vv.VideoQuality.INVARIANT?Q("auto_quality_invariant"):Q("auto_quality",{actual:o}):o},Zb=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===Vv.VideoQuality.INVARIANT?i:`${i}${jb({quality:t,availableQualities:e})}`:"...";var B2=L('<div class="menu-item-value-wrapper s-1t"><!></div>'),F2={hash:"s-1t",code:".menu-item-value-wrapper.s-1t{line-height:normal}"};function cd(t,e){F(e,!0),q(t,F2);let[i,o]=Re(),r=()=>x(s,"$currentQuality$",i),a=()=>x(u,"$availableQualities$",i),l=()=>x(p,"$isMobile$",i),d=ve(),s=d.state.currentQuality$,u=d.state.availableQualities$,p=d.ui.isMobile,m=" · ",f=v(()=>e.prefix+(e.selected&&r()!==Jb.VideoQuality.INVARIANT?m:"")),$=v(()=>Zb({prefix:n(f),quality:r(),availableQualities:a(),onlyPrefix:!e.selected}));var y=B2(),b=T(y);let S=v(()=>e.selected?r():void 0);al(b,{get quality(){return n(S)},get label(){return n($)},get isMobile(){return l()},isSubCase:!0}),w(y),_(t,y),H(),o()}var H2=t=>{let e=t.join("|"),i="<(?<keyhtml>.*?)(?<propshtml> .*?)?>(?<childrenhtml>.*?)</\\k<keyhtml>>",o=`{(?<keyi18n>${e})}(?<childreni18n>.*?){/\\k<keyi18n>}`,r="<(?<keyhtmlself>.*?)(?<propshtmlself> .*?)?/?>",a=`{(?<keyi18nself>${e})}`;return new RegExp(`${i}|${o}|${r}|${a}`,"g")},U2={br:!0,span:!0},Rv=(t,e={})=>{var d,s,u,p,m,f,$;if(!t)return t;let i=Ae(Ae({},U2),e),o=Object.keys(i);if(!o.length)return t;let r=H2(o),a=[],l=0;for(let y of t.matchAll(r)){let b=y[0],S=((d=y.groups)==null?void 0:d.keyhtml)||((s=y.groups)==null?void 0:s.keyi18n)||((u=y.groups)==null?void 0:u.keyhtmlself)||((p=y.groups)==null?void 0:p.keyi18nself)||"",{index:C}=y;if(!i[S]){a.push(t.slice(l,C)),l=C+b.length;continue}let I=(m=y.groups)!=null&&m.childrenhtml?Rv(y.groups.childrenhtml,i):"",R=(f=y.groups)!=null&&f.childrenhtml?b.replace(new RegExp(($=y.groups)==null?void 0:$.childrenhtml),()=>I||""):b;a.push(t.slice(l,C),R),l=C+b.length}return l===0?t:(a.push(t.slice(l)),a.join(""))};function Fc(t,e){F(e,!1);let i=g(e,"message",8),o=Rv(i());To();var r=Me(),a=de(r);{var l=d=>{var s=Me(),u=de(s);Wd(u,()=>o),_(d,s)};V(a,d=>{o&&d(l)})}_(t,r),H()}var z2=L('<p class="quality-applies sublabel s-1u"><!></p>'),W2={hash:"s-1u",code:".quality-applies.s-1u{color:hsla(0,0%,100%,.5);display:flex;justify-content:end;padding:3px 0}.quality-applies span{color:#70c1ff}"};function Nv(t,e){F(e,!1),q(t,W2),To();var i=z2(),o=T(i);let r=En(()=>Q("quality_applience",{action:`<span>${Q("quality_applience_action")}</span>`}));Fc(o,{get message(){return n(r)}}),w(i),_(t,i),H()}var t$=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:cd,valueComponentParams:{prefix:Q("other_quality"),selected:o},children:"QUALITY"}},Ov=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:Q("auto_quality_limit"),valueComponent:e?cd:void 0,valueComponentParams:{prefix:Q("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),i$=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:Nv,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),Dv=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"QUALITY_HIGH",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:Q("high_quality"),valueComponent:t?cd:void 0,valueComponentParams:{prefix:Q("high_quality"),selected:i},sublabel:Q("high_quality_description")}),Bv=({labelWithQuality:t,appliesTo:e,selected:i},{toggleTrafficSaving:o})=>({id:"QUALITY_TRAFFIC_SAVING",type:"SELECT_VALUE",value:"save_traffic",selectItem:()=>o(!0,e),selected:i,label:Q("traffic_saving_quality"),valueComponent:t?cd:void 0,valueComponentParams:{prefix:Q("traffic_saving_quality"),selected:i},sublabel:Q("traffic_saving_quality_description")});var xp=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),wp=(t,e)=>{var l;if(!t)return"";let{language:i,label:o}=t,r;if(i==="und"?r=void 0:i&&(r=(l=Sc(i))!=null?l:i),o&&i&&r){let d=e.filter(s=>s.label===o&&s.language===i);if(d.length===1)return Q("audio_stream_display_language_label",{language:r,label:o});{let s=xp(t,d);return Q("audio_stream_display_language_label_index",{language:r,label:o,index:s})}}if(o){let d=e.filter(s=>s.label===o);if(d.length===1)return o;{let s=xp(t,d);return Q("audio_stream_display_label_index",{label:o,index:s})}}if(i&&r){let d=e.filter(s=>s.language===i);if(d.length===1)return r;{let s=xp(t,d);return Q("audio_stream_display_language_index",{language:r,index:s})}}let a=xp(t,e);return Q("audio_stream_display_unknown",{index:a})};var K2={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:r}=t,a=[];return i&&a.push({handler:Ov,selected:e&&!o&&!r||!1}),a.push({handler:Bv,selected:o},{handler:Dv,selected:r}),{title:Q("submenu_quality"),id:"QUALITY_DETAILS",items:[i$(t),...a.map(({handler:l,selected:d})=>l({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),t$(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:Q("submenu_quality"),closeSettingsMenu:t,items:i.map(r=>({type:"SELECT_VALUE",value:r.value,valueComponent:al,valueComponentParams:{quality:r.value,label:r.displayValue,isMobile:o,isSubCase:!0},selectItem:a=>e(a,"to-video"),selected:r.selected,label:r.displayValue}))}),QUALITY_APPLIENCE:t=>{var i,o,r;let{closeSettingsMenu:e}=t;return{id:"QUALITY_APPLIENCE",title:Q("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:Ov,selected:((i=Ku())==null?void 0:i.type)==="auto_quality"},{handler:Bv,selected:((o=Ku())==null?void 0:o.type)==="traffic_saving"},{handler:Dv,selected:((r=Ku())==null?void 0:r.type)==="high_quality"}].map(({handler:a,selected:l})=>a({labelWithQuality:!1,appliesTo:"as-default",selected:l},t))}},AUDIO_LANGUAGES:({closeSettingsMenu:t,availableAudioStreams:e,currentAudioStream:i,selectAudioLanguage:o})=>({id:"AUDIO_LANGUAGES",title:Q("submenu_audio_languages"),closeSettingsMenu:t,items:e.map(r=>({type:"SELECT_VALUE",value:r,dataValue:r.id,selectItem:o,selected:r.id===(i==null?void 0:i.id),label:wp(r,e)}))}),PLAYBACK_RATE_SUB_MENU:({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"PLAYBACK_RATE_SUB_MENU",title:Q("submenu_playback_rate"),closeSettingsMenu:t,items:e.map(o=>({type:"SELECT_VALUE",value:o.value,selectItem:i,selected:o.selected,label:o.displayValue}))}),SUBTITLES:({availableSubtitlesList:t,selectSubtitle:e})=>({id:"SUBTITLES",minWidth:164,title:Q("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i.value,selectItem:()=>e(i),selected:i.selected,label:i.displayValue,dataTestid:i.value===On?"sub_off":void 0}))})},o$=({subMenuId:t,context:e})=>t?[K2[t](e)]:[];var q2=Ie('<path d="M.1 6.5c0-2.24 0-3.36.44-4.22A4 4 0 0 1 2.28.54C3.14.1 4.26.1 6.5.1h5c2.24 0 3.36 0 4.22.44a4 4 0 0 1 1.74 1.74c.44.86.44 1.98.44 4.22s0 3.36-.44 4.22a4 4 0 0 1-1.74 1.74c-.84.43-1.93.44-4.07.44l.55 2.2h1.9a.9.9 0 0 1 0 1.8H3.9a.9.9 0 1 1 0-1.8h1.9l.55-2.2c-2.14 0-3.23-.01-4.07-.44a4 4 0 0 1-1.74-1.74C.1 9.86.1 8.74.1 6.5m11.4-4.6h-5c-1.15 0-1.9 0-2.48.05-.56.04-.79.12-.92.19a2.2 2.2 0 0 0-.96.96 2 2 0 0 0-.2.92C1.9 4.6 1.9 5.35 1.9 6.5s0 1.9.05 2.48c.04.56.12.79.19.92q.33.63.96.96c.13.07.36.15.92.2.58.04 1.33.04 2.48.04h5c1.15 0 1.9 0 2.48-.05.56-.04.79-.12.92-.19a2.2 2.2 0 0 0 .96-.96c.07-.13.15-.36.2-.92.04-.58.04-1.33.04-2.48s0-1.9-.05-2.48a3 3 0 0 0-.19-.92 2.2 2.2 0 0 0-.96-.96 2 2 0 0 0-.92-.2c-.58-.04-1.33-.04-2.48-.04m-3.3 11-.55 2.2h2.7l-.55-2.2z"></path>');function Fv(t){Je(t,{testId:"traffic-saving-icon",children:(e,i)=>{var o=q2();_(e,o)},$$slots:{default:!0}})}var Q2=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 Hv(t){Je(t,{width:"18",height:"15",children:(e,i)=>{var o=Q2();_(e,o)},$$slots:{default:!0}})}var G2=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 Uv(t){Je(t,{testId:"play-speed-icon",children:(e,i)=>{var o=G2();_(e,o)},$$slots:{default:!0}})}var Y2=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 zv(t){Je(t,{testId:"download-icon",children:(e,i)=>{var o=Y2();_(e,o)},$$slots:{default:!0}})}var j2=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 Wv(t){Je(t,{testId:"report-icon",children:(e,i)=>{var o=j2();_(e,o)},$$slots:{default:!0}})}var X2=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 Sp(t){Je(t,{children:(e,i)=>{var o=X2();_(e,o)},$$slots:{default:!0}})}var Z2=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 Kv(t){Je(t,{testId:"info-icon",children:(e,i)=>{var o=Z2();_(e,o)},$$slots:{default:!0}})}var J2=L('<div class="menu-item-value-wrapper s-1w"><!></div>'),eT={hash:"s-1w",code:".menu-item-value-wrapper.s-1w{line-height:normal}"};function qv(t,e){F(e,!0),q(t,eT);let[i,o]=Re(),r=()=>x(u,"$currentQuality$",i),a=()=>x(p,"$availableQualities$",i),l=()=>x(m,"$isAutoQualityEnabled$",i),d=()=>x(f,"$isMobile$",i),s=ve(),u=s.state.currentQuality$,p=s.state.availableQualities$,m=s.state.isAutoQualityEnabled$,f=s.ui.isMobile,$=v(()=>Xb({quality:r(),availableQualities:a(),isAutoQualityEnabled:l()}));var y=J2(),b=T(y);al(b,{get quality(){return r()},get label(){return n($)},get isMobile(){return d()}}),w(y),_(t,y),H(),o()}var iT={QUALITY_SETTINGS:({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?Q("auto_quality_option"):e)||"";return{id:"QUALITY_SETTINGS",type:"OPEN_SUB_MENU",ariaLabel:Q("aria_label_menu_quality",{actual:o}),icon:vc,label:Q("menu_quality"),value:e,valueComponent:qv,weight:os["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:os["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:Q("aria_label_submenu_traffic_saving"),icon:Fv,label:Q("menu_traffic_saving"),enabled:t,tooltipText:Q("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=wp(t,e);return{id:"AUDIO_LANGUAGES",weight:os["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:Q("aria_label_menu_audio_languages",{actual:i}),icon:Hv,label:Q("menu_audio_languages"),value:i,children:"AUDIO_LANGUAGES"}},PLAYBACK_RATE:({availablePlaybackRates:t,currentPlaybackRate:e})=>{var o;let i=((o=t.find(r=>r.value===e))==null?void 0:o.displayValue)||"";return{id:"PLAYBACK_RATE",weight:os["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:Q("aria_label_menu_rate",{actual:i}),icon:Uv,label:Q("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:os["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:Q("aria_label_menu_subtitle",{actual:t.displayValue}),icon:da,label:Q("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:os.download,type:"CLICK",onClick:t,label:Q("download_video_caption"),ariaLabel:Q("aria_label_menu_download"),icon:zv}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:os.report,type:"CLICK",onClick:t,label:Q("menu_report"),ariaLabel:`${Q("menu_report")}. ${Q("aria_label_new_tab_alert")}`,icon:Wv,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:os["copy-data"],type:"CLICK",onClick:t,label:Q("menu_copy_debug"),ariaLabel:Q("menu_copy_debug"),icon:Sp,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:os["save-trace-info"],type:"CLICK",onClick:t,label:Q("menu_save_debug"),ariaLabel:Q("menu_save_debug"),icon:Sp,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t})=>({id:"DEBUG_INFO",weight:os["debug-info"],type:"CLICK",onClick:t,ariaLabel:Q("aria_label_menu_debug_overlay"),label:Q("menu_debug_overlay"),icon:Kv,isHiddenFor:["desktop"]})},n$=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(r=>iT[r](e)),...i.map(r=>Qt(Ae({},r),{isAdditional:!0}))].filter(r=>{var a,l,d;return!((a=r==null?void 0:r.isHiddenFor)!=null&&a.length)||!((l=r==null?void 0:r.isHiddenFor)!=null&&l.includes("desktop"))&&!o||!((d=r==null?void 0:r.isHiddenFor)!=null&&d.includes("mobile"))&&o}).sort(Ka)};var nT=(t,e)=>{tp(t,e)},rT=L('<div><div> </div> <div class="close s-p"></div></div>'),sT=L('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),aT=L("<div><!> <!></div>"),lT={hash:"s-p",code:'.settings-menu-container.mobile.s-p{width:100%}.settings-menu-container.s-p ul{list-style-type:none;margin:0;padding:0}.settings-menu-container.s-p .menu{background-color:var(--settings-bg);border-radius:var(--settings-radius);overflow:hidden;transition:opacity .2s,visibility .2s}.settings-menu-container.s-p .menu .item:first-child:not(.mobile){border-top-left-radius:var(--settings-radius);border-top-right-radius:var(--settings-radius)}.settings-menu-container.s-p .menu .item:last-child{border-bottom-left-radius:var(--settings-radius);border-bottom-right-radius:var(--settings-radius)}.settings-menu-container.s-p .settings-menu .item:first-child:not(.mobile){padding-top:6px}.settings-menu-container.s-p .settings-menu .item:last-child:not(.mobile){padding-bottom:6px}.settings-menu-container.s-p .menu.desktop{bottom:0;max-width:100%;position:absolute;right:0}.settings-menu.s-p{line-height:40px}.settings-menu.desktop.s-p{min-width:300px}.settings-menu-container.s-p .menu.mobile{background:var(--mobile-settings-bg);font-size:15px;line-height:50px;width:100%}.settings-menu-container.s-p .menu.mobile.hidden{display:none}.settings-menu-container.s-p .menu .item:not(.switch-item),.settings-menu-container.s-p .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-p .menu .item:hover{background-color:var(--settings-item-bg-hover)}.settings-menu-container.s-p .menu .item.mobile:hover{background:var(--mobile-settings-bg)}.settings-menu.s-p .item:not(.switch-item),.settings-menu.s-p .switch-wrapper{padding:0 32px 0 18px}.settings-menu.s-p .item.mobile:not(.switch-item),.settings-menu.s-p .switch-wrapper.mobile{padding:0 14px}.settings-menu.s-p .icon-wrapper{align-items:center;display:flex;height:24px;justify-content:center;margin-right:16px;min-width:24px;width:24px}.settings-menu.s-p .label{flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis}.settings-menu.s-p .item.header.mobile:where(.s-p){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-p .items::-webkit-scrollbar{width:8px}.settings-menu-container.s-p .items::-webkit-scrollbar-track{background-color:#3a3a3a;border-radius:4px;box-shadow:none}.settings-menu-container.s-p .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-p .items::-webkit-scrollbar-thumb:hover{background-color:#777}.settings-menu-container.s-p .items.mobile{max-height:160px;overflow-x:hidden;overflow-y:auto;text-align:left}.close.s-p{height:12px;margin-right:-12px;padding:12px;position:relative;width:12px}.close.s-p:after,.close.s-p:before{background-color:var(--white);content:" ";height:12px;left:18px;position:absolute;width:2px}.close.s-p:before{transform:rotate(45deg)}.close.s-p:after{transform:rotate(-45deg)}'};function Uc(t,e){F(e,!0),q(t,lT);let[i,o]=Re(),r=()=>x(Be,"$settingsMenuVisible",i),a=()=>x(J,"$settingsMenuOpenedByKeyboard",i),l=()=>x(Ue,"$debugPanelVisible",i),d=()=>x(Se,"$isMobile",i),s=()=>x(Le,"$playerSize",i),u=()=>x(De,"$hasMpegSources$",i),p=()=>x(Fe,"$mobileNotReportControlHidden$",i),m=()=>x(Z,"$autoQualityLimitingAvailable$",i),f=()=>x(pe,"$availableSubtitlesList$",i),$=()=>x(qe,"$isLiveWithPlaybackSpeed",i),y=()=>x(ne,"$availableAudioStreams$",i),b=()=>x(Ke,"$availablePlaybackRates$",i),S=()=>x(ce,"$currentAudioStream$",i),C=()=>x(A,"$currentPlaybackRate$",i),I=()=>x(Ye,"$trafficSavingEnabled",i),R=()=>x(_e,"$currentQuality$",i),E=()=>x(Oe,"$isAutoQualityEnabled$",i),P=()=>x(Ce,"$currentSubtitle$",i),O=()=>x(tt,"$additionalSettingsMenuItems$",i),D=()=>x(ue,"$isAutoQualityAvailable$",i),U=()=>x(we,"$availableQualities$",i),z=()=>x(Te,"$highQualityEnabled",i),G=g(e,"ref",15,void 0),le=g(e,"playerControlsHeight",3,0),j=di({}),ie=di({}),Y=ve(),ge=Rt(),ce=Y.state.audioStream$,ne=Y.state.availableAudioStreams$,_e=Y.state.currentQuality$,we=Y.state.availableQualities$,Z=Y.state.autoQualityLimitingAvailable$,Oe=Y.state.isAutoQualityEnabled$,ue=Y.state.isAutoQualityAvailable$,A=Y.state.currentPlaybackRate$,Ke=Y.state.availablePlaybackRates$,Ce=Y.state.currentSubtitle$,pe=Y.state.availableSubtitlesList$,se=Y.state.canDownload,De=Y.state.hasMpegSources$,Be=Y.ui.settingsMenu.visible$,J=Y.ui.settingsMenu.openedByBtnKeyboard$,X=Y.ui.settingsMenu.ref$,Se=Y.ui.isMobile,Fe=Y.ui.mobileNotReportControlHidden$,qe=Y.state.canChangePlaybackSpeed$,Ye=Y.state.trafficSavingEnabled$,Te=Y.state.highQualityEnabled$,Le=Y.ui.playerSize,Ue=Y.ui.debugPanelVisible,Nt=Y.state.isInteractiveTime$,tt=Y.ui.additionalSettingsMenuItems$,Bt=Y.ui.t,Gt=Y.actions.internal.downloadVideo,Ct=Y.actions.internal.closeSettingsMenu,ti=Y.actions.internal.openSettingsSubMenu,Ft=Y.actions.internal.closeSettingsSubMenu,ye=K(!1),be=K(void 0),ee=Yb();Ne(()=>{!r()&&ee.current&&(Ft(ie[ee.current]),ee.popAllSubMenus())}),Ne(()=>{r()||N(be,void 0)}),Ne(()=>{!ee.current&&n(be)&&sb(j,n(be))}),Ne(()=>{G()&&X.set(G())});function xe(At){return _t(this,null,function*(){var W;ee.pushSubMenu(At),yield bo(),ti(At,ie[At]);let Ht=(W=G())==null?void 0:W.firstElementChild;Ht&&fm(Ht)})}function Pe(At){var Ht;At==null||At.stopPropagation(),a()||(Ht=e.returnFocus)==null||Ht.call(e),Ct(),N(ye,!1)}function Pt(At,Ht){Y.actions.internal.setQuality(At,{appliesTo:Ht}),Pe()}function Ve(At){Y.actions.internal.setAudioStream(At),Pe()}function at(At,Ht){Y.actions.internal.setTrafficSavingEnabled(At,Ht),ge.features.qualityDetailsSubMenuEnabled&&Pe()}function gt(At,Ht){Y.actions.internal.setHighQualityEnabled(At,Ht),Pe()}function $e(At){Y.actions.internal.setPlaybackRate(At),Pe()}function et(At){Y.actions.internal.setSubtitle(At),Pe()}function ze(){Gt()}function rt(){(0,Hc.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),Y.actions.internal.reportProblem(),Y.actions.internal.pause()}function ii(){jl(Y.actions.internal.getDebugTextData())}let ai=()=>{let At=Y.actions.internal.getTraceTextData(),Ht=new Blob([...At],{type:"application/json"}),W=window.URL.createObjectURL(Ht);Ba(W,"vk_player_trace_info","json")};function gi(){Ue.set(!l())}function yi(){N(ye,!0)}function ro(){N(ye,!1)}function $o(){return d()?`max-height: ${Math.round(s().height*.6)}px`:`max-height: ${s().height-32-le()}px; overflow: auto;`}let ui=v(()=>se&&u()&&!p()),pt=v(()=>ge.features.trafficSaving&&!p()&&m()&&!ge.features.qualityDetailsSubMenuEnabled),Ai=v(()=>f().length>0&&!p()),Zt=v(()=>!!$()&&!p()),Tt=v(()=>ge.features.audioLanguages&&y().length>=2&&!p()),ri=v(()=>!p());Dt(()=>Nt.subscribe(At=>{At&&!d()&&!n(ye)&&!a()&&Pe()}));let Jt=v(()=>{let At=[n(ri)&&"QUALITY_SETTINGS",n(Tt)&&"AUDIO_LANGUAGES",n(Zt)&&"PLAYBACK_RATE",n(Ai)&&"SUBTITLES",n(pt)&&"TRAFFIC_SAVING_SWITCH",n(ui)&&"DOWNLOAD",ge.showSupport&&"SHOW_SUPPORT","COPY_DATA",ge.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(Ht=>!!Ht);return n$({items:At,context:{qualityDetailsSubMenuEnabled:ge.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:b(),currentAudioStream:S(),availableAudioStreams:y(),currentPlaybackRate:C(),selectPlaybackRate:$e,trafficSavingEnabled:I(),toggleTrafficSaving:at,currentQuality:R()||Hc.VideoQuality.INVARIANT,isAutoQualityEnabled:E()||!1,currentSubtitle:P(),isMobile:d(),onDownloadClick:ze,onCopyDataClick:ii,onReportProblemClick:rt,onSaveTraceDataClick:ai,toggleShowDebugInfo:gi},additionalSettingsMenuItems:O()})}),yt=v(()=>o$({subMenuId:ee.current,context:{availablePlaybackRates:b(),selectPlaybackRate:$e,trafficSavingEnabled:I(),toggleTrafficSaving:at,currentQuality:R()||Hc.VideoQuality.INVARIANT,isAutoQualityEnabled:E()||!1,isAutoQualityAvailable:D()||!1,availableQualities:U(),highQualityEnabled:z(),toggleHighQuality:gt,availableAudioStreams:y(),availableSubtitlesList:f(),closeSettingsMenu:Ct,currentAudioStream:S(),isMobile:d(),selectAudioLanguage:Ve,selectQuality:Pt,selectSubtitle:et}}));var je=aT();let Si;var so=T(je);{var on=At=>{var Ht=sT();let W;Ht.__keydown=[nT,Ct];var Mt=T(Ht);{var li=jt=>{var ct=rT();let Vi;var Ri=T(ct),nn=T(Ri,!0);w(Ri);var Ro=k(Ri,2);Ro.__click=Pe,w(ct),B((yo,Ui)=>{Vi=re(ct,1,"item header s-p",null,Vi,yo),fe(nn,Ui)},[()=>({mobile:d()}),()=>Bt("submenu_settings")]),_(jt,ct)};V(Mt,jt=>{d()&&jt(li)})}var dt=k(Mt,2);let It;Ti(dt,21,()=>n(Jt),jt=>jt.id,(jt,ct)=>{var Vi=Me(),Ri=de(Vi);{var nn=yo=>{Pv(yo,{get isMobile(){return d()},get id(){return n(ct).id},get icon(){return n(ct).icon},get label(){return n(ct).label},get ariaLabel(){return n(ct).ariaLabel},get value(){return n(ct).value},get valueComponent(){return n(ct).valueComponent},onClick:()=>{xe(n(ct).children),N(be,n(ct).id,!0)},get ref(){return j[n(ct).id]},set ref(Ui){j[n(ct).id]=Ui}})},Ro=(yo,Ui)=>{{var gr=xo=>{kv(xo,{get isMobile(){return d()},get id(){return n(ct).id},get onClick(){return n(ct).onClick},get icon(){return n(ct).icon},get label(){return n(ct).label},get ariaLabel(){return n(ct).ariaLabel},closeSettings:Pe})},ao=(xo,zi)=>{{var rn=sn=>{Mv(sn,{get isMobile(){return d()},get id(){return n(ct).id},get onClick(){return n(ct).onClick},get icon(){return n(ct).icon},get label(){return n(ct).label},get ariaLabel(){return n(ct).ariaLabel},get enabled(){return n(ct).enabled},get tooltipText(){return n(ct).tooltipText},get maxTooltipWidth(){return n(ct).maxTooltipWidth}})};V(xo,sn=>{n(ct).type==="SWITCH"&&sn(rn)},zi)}};V(yo,xo=>{n(ct).type==="CLICK"?xo(gr):xo(ao,!1)},Ui)}};V(Ri,yo=>{n(ct).type==="OPEN_SUB_MENU"?yo(nn):yo(Ro,!1)})}_(jt,Vi)}),w(dt),nt(dt,jt=>G(jt),()=>G()),w(Ht),B((jt,ct,Vi)=>{W=re(Ht,1,"settings-menu menu s-p",null,W,jt),It=re(dt,1,"items",null,It,ct),Qe(dt,Vi)},[()=>({desktop:!d(),mobile:d(),hidden:!!ee.current}),()=>({mobile:d()}),$o]),$t("mouseenter",Ht,yi),$t("mouseleave",Ht,ro),_(At,Ht)};V(so,At=>{r()&&At(on)})}var yn=k(so,2);Ti(yn,17,()=>n(yt),At=>At.id,(At,Ht)=>{let W=v(()=>{var Mt;return(Mt=n(Ht).minWidth)!=null?Mt:137});Ev(At,{get isMobile(){return d()},get playerControlsHeight(){return le()},get returnFromSubMenu(){return ee.popSubMenu},get id(){return n(Ht).id},get title(){return n(Ht).title},get closeSettingsMenu(){return Ct},openSubMenuList:xe,get items(){return n(Ht).items},get minWidth(){return n(W)},get refMenuItems(){return j},get listRef(){return ie[n(Ht).id]},set listRef(Mt){ie[n(Ht).id]=Mt}})}),w(je),B(At=>Si=re(je,1,"settings-menu-container s-p",null,Si,At),[()=>({mobile:d(),hidden:!r()})]),_(t,je),H(),o()}st(["keydown","click"]);var dT=L('<button class="btn s-1d"> </button>'),cT={hash:"s-1d",code:"button.btn.s-1d{background:hsla(0,0%,100%,.1);border-radius:8px;font-size:14px;line-height:18px;margin-top:12px;padding:6px 12px 7px}"};function Qv(t,e){q(t,cT);var i=dT();i.__click=function(...r){var a;(a=e.onClick)==null||a.apply(this,r)};var o=T(i,!0);w(i),B(()=>fe(o,e.label)),_(t,i)}st(["click"]);var uT=L('<div class="container s-m"><div class="notification s-m"><div><p class="description s-m"><!></p> <!></div> <!></div></div>'),pT={hash:"s-m",code:".container.s-m{display:flex;justify-content:center;left:0;pointer-events:none;position:absolute;right:0;top:20px}.notification.s-m{background:var(--notification-bg);border-radius:var(--notification-radius);display:inline-flex;gap:10px;padding:9px 14px 10px 12px;pointer-events:auto}.description.s-m{font-size:13px;line-height:16px;margin:0;white-space:pre}"};function zc(t,e){F(e,!0),q(t,pT);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=Rt(),{ui:{t:r}}=ve(),a=r(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var l=uT(),d=T(l),s=T(d),u=T(s),p=T(u);Fc(p,{get message(){return a}}),w(u);var m=k(u,2);{var f=y=>{let b=v(()=>r("slow_video_notification_button"));Qv(y,{get label(){return n(b)},get onClick(){return e.onSelectAutoQuality}})};V(m,y=>{o||y(f)})}w(s);var $=k(s,2);Ms($,{get onClick(){return e.onClose}}),w(d),w(l),Jr(3,d,()=>ys,()=>({duration:i})),_(t,l),H()}var Wc=require("@vkontakte/videoplayer-shared/es2015");var ll="annotation",Tp=class{constructor(){this.slots=new Map}init(e,i){this.shadowRootContainer=e,this.store=i}add(e,i){var d;let{overlay:o,id:r,controlsBehaviour:a,hideAllControls:l}=i;e.setAttribute("slot",ll),this.setupSlotStyles(e,o),this.shadowRootContainer.append(e),this.slots.set(r,{rootElement:e,options:i}),a&&this.runHidingControlsWhenIntersected(r,a),l&&((d=this.store)==null||d.ui.isControlsAvailable.set(!1))}setupSlotStyles(e,i){switch(e.style.position="absolute",i){case"over_video":e.style.zIndex="calc(var(--video-container-z-index) + 1)";break;case"over_controls":e.style.zIndex="calc(var(--controls-container-z-index) + 1)";break;default:e.style.zIndex="0"}}runHidingControlsWhenIntersected(r,a){return _t(this,arguments,function*(e,{observedSlotElementId:i,controlsToObserve:o}){var f;let l=this.slots.get(e);if(!l)return;let d=yield this.findSlotElement(l.rootElement,i,e),{controls:s,hiddenControls:u}=((f=this.store)==null?void 0:f.ui)||{},p=new MutationObserver($=>$.forEach(()=>{let y=Rs(d,this.shadowRootContainer);o.forEach(b=>{let S=s==null?void 0:s[b],C=S?he(S):null,I=u==null?void 0:u[b];C&&(I==null||I.set((0,Wc.isIntersecting)(C,y)))})}));p.observe(d,{childList:!0,subtree:!0}),l.observer=p;let m=new Wc.Subscription;o.forEach($=>{s&&m.add(s[$].subscribe(y=>{let b=u==null?void 0:u[$];y&&y.isDisplayed?b==null||b.set((0,Wc.isIntersecting)(y,Rs(d,this.shadowRootContainer))):b==null||b.set(!1)}))}),l.subs=m})}findSlotElement(e,i,o){return _t(this,null,function*(){return new Promise(r=>{let a=null,l=new MutationObserver(()=>{if(a=e.querySelector(`#${i}`),a){l.disconnect();let s=this.slots.get(o);s&&(s.observerForFindingSlotElement=void 0),r(a)}});l.observe(e,{childList:!0,subtree:!0});let d=this.slots.get(o);d&&(d.observerForFindingSlotElement=l)})})}remove(e){var u,p;let i=this.slots.get(e);if(!i)return;let{rootElement:o,observer:r,observerForFindingSlotElement:a,subs:l,options:{controlsBehaviour:d,hideAllControls:s}}=i;o&&o.remove(),[r,a].forEach(m=>m==null?void 0:m.disconnect()),l==null||l.unsubscribe(),this.slots.delete(e),s&&((u=this.store)==null||u.ui.isControlsAvailable.set(!0)),(p=d==null?void 0:d.controlsToObserve)==null||p.forEach(m=>{var f,$;($=(f=this.store)==null?void 0:f.ui.hiddenControls[m])==null||$.set(!1)})}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}haveSlots(){return this.slots.size>0}};var fT=L('<div class="container s-5"><!></div>'),mT={hash:"s-5",code:".container.s-5{align-items:center;animation-fill-mode:forwards;animation-name:s-5-videoPlayerStatusIconPopup;background-color:#00000073;border-radius:100%;display:flex;height:64px;justify-content:center;width:64px;will-change:opacity,scale}@keyframes s-5-videoPlayerStatusIconPopup{0%{opacity:0;scale:.6}10%{animation-timing-function:ease-in;opacity:1;scale:1}75%{opacity:1;scale:1}90%{animation-timing-function:ease-out;opacity:0;scale:.4}to{opacity:0;scale:0}}"};function Kc(t,e){F(e,!0),q(t,mT);let i=g(e,"reversed",3,!1);var o=Me(),r=de(o);Es(r,()=>e.Icon,a=>{var l=fT(),d=T(l);Fi(d,()=>e.Icon,(s,u)=>{u(s,{get size(){return"48"},get reversed(){return i()}})}),w(l),B(()=>Qe(l,`animation-duration: ${e.duration}ms`)),_(a,l)}),_(t,o),H()}var Gv=require("@vkontakte/videoplayer-core/es2015"),vT=L('<div class="container s-13"><!></div>'),gT={hash:"s-13",code:".container.s-13{align-items:center;display:flex;height:100%;justify-content:center;pointer-events:none;position:absolute;width:100%}"};function Yv(t,e){F(e,!0),q(t,gT);let[i,o]=Re(),r=()=>x(s,"$playbackState$",i),a=()=>x(p,"$previewTrackActive",i),l=()=>x(m,"$previewTrackDragInProgress",i),d=()=>x(u,"$isPlaying$",i),{state:{playbackState$:s,isPlaying$:u},ui:{previewTrackActive:p,previewTrackDragInProgress:m}}=ve(),{features:{playbackStatusShow:f},playbackStatusAnimationDuration:$}=Rt(),y=0,b=K(null),S=K(!1);Ne(()=>{r()===Gv.PlaybackState.PLAYING?N(b,Rn,!0):r()===Gv.PlaybackState.PAUSED?N(b,Os,!0):N(b,null)}),Ne(()=>{if(!(!f||a()||l()))return y=window.setTimeout(()=>{y=0,N(b,null)},$),()=>{y&&(window.clearTimeout(y),y=0)}}),Ne(()=>{d()&&!n(S)&&(N(S,!0),N(b,null))});var C=Me(),I=de(C);{var R=E=>{var P=vT(),O=T(P);Kc(O,{get duration(){return $},get Icon(){return n(b)}}),w(P),_(E,P)};V(I,E=>{n(b)&&f&&E(R)})}_(t,C),H(),o()}var hT=L('<div><div data-testid="video-container"></div></div>'),_T={hash:"s-c",code:".video-container.s-c,.video-wrapper.s-c{height:100%;left:0;position:absolute;top:0;width:100%}.video-wrapper.s-c{background:var(--black)}.video-container.s-c,.video-wrapper.s-c{z-index:var(--video-container-z-index)}.video-container.s-c{transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.s-c{transition:none}.nocursor.s-c{cursor:none}"};function dl(t,e){F(e,!0),q(t,_T);let[i,o]=Re(),r=()=>x(p,"$rotateAlpha",i),a=()=>x(m,"$playerSize",i),l=()=>x(u,"$playerPhase",i),d=()=>x(f,"$isPlaying$",i),s=g(e,"videoContainer",15),{playerPhase:u,ui:{rotateAlpha:p,playerSize:m},state:{isPlaying$:f}}=ve(),{isSmoothVideoRotate:$}=Rt(),y=v(()=>s()&&r()%180?a().height/a().width:1);var b=hT();let S;b.__contextmenu=function(...R){var E;(E=e.onContextMenu)==null||E.apply(this,R)},b.__mousedown=function(...R){var E;(E=e.onMouseDown)==null||E.apply(this,R)},b.__mouseup=function(...R){var E;(E=e.onMouseUp)==null||E.apply(this,R)},b.__click=function(...R){var E;(E=e.onClick)==null||E.apply(this,R)},b.__dblclick=function(...R){var E;(E=e.onDblClick)==null||E.apply(this,R)};var C=T(b);let I;nt(C,R=>s(R),()=>s()),w(b),B((R,E)=>{S=re(b,1,"video-wrapper s-c",null,S,R),I=re(C,1,"video-container s-c",null,I,E),Qe(C,`transform: rotate(${r()}deg) scale(${n(y)})`),We(C,"data-is-playing",d())},[()=>({hidden:l()!=="video",nocursor:e.hideCursor}),()=>({"fast-rotate":!$})]),_(t,b),H(),o()}st(["contextmenu","mousedown","mouseup","click","dblclick"]);var bT=L('<div><span class="text s-z"> </span> <!></div>'),$T={hash:"s-z",code:".root.s-z{background-color:var(--double-forward-bg);border-radius:100px;color:var(--white);display:flex;gap:4px;left:50%;opacity:0;padding:6px 12px;pointer-events:none;position:absolute;top:24px;transition:opacity var(--controls-transition-duration) var(--controls-transition-fn);visibility:hidden}.root.s-z,.root.visible.s-z{transform:translateX(-50%)}.root.visible.s-z{opacity:1;visibility:visible}.text.s-z{font-size:13px;font-weight:600;line-height:16px}"};function jv(t,e){F(e,!0),q(t,$T);let{ui:{t:i}}=ve();var o=bT();let r;var a=T(o),l=T(a,!0);w(a);var d=k(a,2);Rc(d,{get size(){return"16"},fill:"currentColor"}),w(o),B((s,u)=>{r=re(o,1,"root s-z",null,r,s),fe(l,u)},[()=>({visible:e.isVisible}),()=>i("double_forward_label")]),_(t,o),H()}var yT=L('<div class="container s-15" role="button" data-testid="preview-track-overlay"><div class="icon s-15"><!></div></div>'),xT={hash:"s-15",code:".container.s-15{background-color:rgba(0,0,0,.48);cursor:pointer;height:100%;position:absolute;width:100%}.container.s-15,.icon.s-15{align-items:center;display:flex;justify-content:center}.icon.s-15{background-color:#00000073;border-radius:100%;height:64px;transition:transform .2s;transition-timing-function:ease-out;width:64px;will-change:transform}.container.s-15:hover .icon:where(.s-15){transform:scale(1.15)}"};function Xv(t,e){F(e,!1),q(t,xT);let o=ve().actions.internal.closePreviewTrack,r=200,a=u=>{u.stopPropagation(),o()};To();var l=yT();l.__click=a;var d=T(l),s=T(d);return Rn(s,{get size(){return"32"}}),w(d),w(l),Jr(3,l,()=>ys,()=>({duration:r})),_(t,l),Nf(e,"handleClick",a),H({handleClick:a})}st(["click"]);var wT=L('<div class="container s-11"><div class="notification s-11"><span class="text s-11"> </span></div></div>'),ST={hash:"s-11",code:".container.s-11{display:flex;justify-content:center;left:0;pointer-events:none;position:absolute;right:0;top:20px}.notification.s-11{background-color:var(--black-alpha-40);border-radius:var(--notification-radius);padding:10px 16px}.text.s-11{font-size:14px;font-weight:500;line-height:18px}"};function Zv(t,e){F(e,!1),q(t,ST);let{ui:{t:i}}=ve();To();var o=wT(),r=T(o),a=T(r),l=T(a,!0);w(a),w(r),w(o),B(d=>fe(l,d),[()=>i("preview_track_notification_text")],En),Jr(3,r,()=>ys,()=>({duration:340})),_(t,o),H()}var TT=(t,e,i,o,r,a)=>{if(t.stopPropagation(),e()||o()){a();return}},CT=L("<div><!></div>"),IT=L('<div class="spherical-video-icon s-7"><!></div>'),ET=L("<div><!></div>"),PT=L('<div class="settings-menu s-7"><!></div>'),AT=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),kT=L("<!> <!> <!>",1),LT=L('<div class="blocked s-7"></div>'),MT=L('<div class="player-wrapper s-7"><!> <div class="overlay-container"></div></div> <!>',1),VT={hash:"s-7",code:".blocked.s-7,.player-wrapper.s-7{height:100%;position:absolute;width:100%}.blocked.s-7{z-index:var(--overlay-container-z-index)}.player-wrapper.s-7 .player-media{background:var(--black);height:100%;left:0;position:absolute;top:0;transition:transform .2s ease-in-out;width:100%}.spherical-video-icon.s-7{display:inline-block;left:calc(50% - 38px);position:absolute;top:calc(50% - 23px)}.ads-container.s-7{background:var(--black);height:100%;left:0;position:absolute;top:0;width:100%;z-index:var(--ads-container-z-index)}.settings-menu.s-7{bottom:57px;left:0;position:absolute;right:18px;transition:opacity .2s;z-index:var(--settings-menu-z-index)}"};function eg(t,e){F(e,!0),q(t,VT);let[i,o]=Re(),r=()=>x(pi,"$notificationsToShow$",i),a=()=>x(ui,"$playerPhase",i),l=()=>x(so,"$isLoaderVisible",i),d=()=>x(yi,"$adPlaybackState",i),s=()=>x(li,"$crashed",i),u=()=>x(yo,"$isInteractiveTime$",i),p=()=>x(Tt,"$settingsMenuVisible",i),m=()=>x(Ui,"$isInteractiveExpectation$",i),f=()=>x(Zt,"$controlsVisible",i),$=()=>x(ao,"$touched",i),y=()=>x(_r,"$graphIsOpened$",i),b=()=>x(pt,"$isFullscreen",i),S=()=>x(ns,"$autoplayNextEnabled$",i),C=()=>x(Ht,"$postrollPassed",i),I=()=>x(on,"$isEnded$",i),R=()=>x(or,"$cursorInside",i),E=()=>x(Jn,"$isControlsAvailable",i),P=()=>x(No,"$doubleForwardOn$",i),O=()=>x(Dr,"$fakeIsPlaying$",i),D=()=>x(yr,"$bottomNoSmooth",i),U=()=>x(sn,"$interactiveTimeIndicator",i),z=()=>x(Vi,"$playerSize",i),G=()=>x(Ri,"$is3DVideo",i),le=()=>x(ln,"$doubleForwardAvailable$",i),j=()=>x(je,"$contextMenuVisible$",i),ie=()=>x(gi,"$playbackState$",i),Y=()=>x(xo,"$hotKeyMapData",i),ge=()=>x(Jt,"$scrubbingInProgress",i),ce=()=>x(yt,"$volumeChangingInProgress",i),ne=()=>x(yn,"$chromecastConnected$",i),_e=()=>x(dn,"$controlsTimeoutActive",i),we=()=>x(ri,"$settingsMenuOpenedByKeyboard",i),Z=()=>x(ds,"$contextMenuOpenedByKeyboard$",i),Oe=()=>x(Ci,"$contextMenuOpenedByHotKey$",i),ue=()=>x(Ze,"$contextMenuButtonRef$",i),A=()=>x(Ko,"$contextMenuLastActiveElem$",i),Ke=()=>x(Ai,"$isFullscreenOpenedByKeyboard",i),Ce=()=>x(ai,"$language$",i),pe=()=>x(mo,"$previewTrackActive$",i),se=()=>x(nn,"$icon3DVideoVisible",i),De=()=>x(At,"$chromecastDeviceName$",i),Be=()=>x(jt,"$currentSubtitle$",i),J=()=>x(ct,"$currentSubtitleCaptions$",i),X=()=>x(ro,"$position$",i),Se=()=>x($o,"$duration$",i),Fe=()=>x(W,"$isLive$",i),qe=()=>x(Mt,"$isPlaying$",i),Ye=()=>x(hr,"$contextMenuPosition$",i),Te=()=>x(er,"$previewTrackNotificationVisible$",i),Le=()=>x(zi,"$showHotKeyMap",i),Ue=()=>x(Si,"$debugPanelVisible",i),Nt=()=>x(rs,"$userActionsDisabled$",i),tt=g(e,"videoContainer",15),Bt=g(e,"adsSlotId",3,void 0),Gt=g(e,"adsParams",3,void 0),Ct=g(e,"adsAutoplayParam",3,void 0),ti=g(e,"duration",3,void 0),Ft=g(e,"logoTargetUrl",3,""),ye=g(e,"showNextPrevButtons",3,!1),be=g(e,"nextButtonActive",3,!1),ee=g(e,"prevButtonActive",3,!1),xe=g(e,"endScreenVideoTitle",3,void 0),Pe=g(e,"endScreenVideoThumb",3,void 0),Pt=g(e,"isOneVideoPlaylist",3,!1),Ve=g(e,"shadowRootContainer",3,void 0),at=g(e,"outerContainerRef",3,void 0),gt=g(e,"playerStarted",3,!1),$e=g(e,"fullScreenTarget",3,void 0),et=g(e,"showMiniTimer",3,!1),ze=g(e,"showEndScreen",3,!0),rt=g(e,"keyboardControls",15),ii=e.store.getLogger().createComponentLog("Root component"),ai=e.store.interfaceLanguage$,gi=e.store.state.playbackState$,yi=e.store.ads.playbackState,ro=e.store.state.positionWithScrubbing$,$o=e.store.state.duration$,ui=e.store.playerPhase,pt=e.store.ui.isFullscreen,Ai=e.store.ui.isFullscreenOpenedByKeyboard,Zt=e.store.ui.controlsVisible,Tt=e.store.ui.settingsMenu.visible$,ri=e.store.ui.settingsMenu.openedByBtnKeyboard$,Jt=e.store.ui.scrubbingInProgress,yt=e.store.ui.volumeChangingInProgress,je=e.store.ui.contextMenu.visible$,Si=e.store.ui.debugPanelVisible,so=e.store.state.isLoaderVisible,on=e.store.state.isEnded$,yn=e.store.state.chromecastConnected$,At=e.store.state.chromecastDeviceName$,Ht=e.store.ads.postrollPassed,W=e.store.state.isLive$,Mt=e.store.state.isPlaying$,li=e.store.state.crashed$,dt=e.store.webApi.annotationsApi,It=e.store.webApi.pictureInPictureApi,jt=e.store.state.currentSubtitle$,ct=e.store.state.currentSubtitleCaptions$,Vi=e.store.ui.playerSize,Ri=e.store.ui.is3DVideo,nn=e.store.ui.icon3DVideoVisible,Ro=e.store.state.isInteractive,yo=e.store.state.isInteractiveTime$,Ui=e.store.state.isInteractiveExpectation$,gr=e.store.state.hasInteractiveBranches,ao=e.store.ui.touched,xo=e.store.ui.modals.hotKeyMap.data,zi=e.store.ui.modals.hotKeyMap.show,rn=e.store.ui.overlayContainer$,sn=e.store.ui.controls.interactiveTimeIndicator,Zn=e.store.state.showInteractiveTimeIndicator,hr=e.store.ui.contextMenu.position$,Nr=e.store.actions.internal.setQuality,xs=e.store.actions.internal.closeSettingsMenu,ns=e.store.ui.autoplayNextEnabled$,rs=e.store.ui.userActionsDisabled,Jn=e.store.ui.isControlsAvailable,an=e.store.ui.videoTitleInfo,No=e.store.ui.doubleForwardOn$,ln=e.store.ui.doubleForwardAvailable$,er=e.store.ui.previewTrackNotificationVisible,Dn=e.store.actions.internal.getVideoElement,Or=e.store.actions.internal.checkFullscreenSupport,{fakeIsPlaying$:Dr,notifications$:ss,graphIsOpened$:_r}=Co(),lo=K(void 0),br=K(void 0),tr=K(void 0),xn=K(void 0),co,Br,Bn;xo.set(eb());let{closeNotification:ht,notificationsToShow$:pi}=ss,ir=v(()=>!!r().slow_video),$r=()=>ht("slow_video"),Fr=v(()=>(a()==="video"&&l()||a()==="ads"&&d()==="inactive")&&!s()),wn=K(void 0),yr=ae(!1),Oo,dn=ae(!1),Do=ae(),or=ae(!1),Wi=K(!1),Bo=K(!1),nr=K(!1),Hr=K(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),uo=v(()=>u()&&!p()&&!(n(Wi)||n(Bo))&&!(n(nr)&&!m())),Fn=!0,cn=v(()=>e.uiConfig.features.thumbTimer&&et()&&a()==="video"&&!f()&&!s()&&!Ro&&(e.uiConfig.hideThumbTimerAfterTouch&&!$()||!e.uiConfig.hideThumbTimerAfterTouch)),Ur=v(()=>a()==="video"&&!y()&&b()),rr=K(!1),Hn=v(()=>(ze()||e.showAutoplayNext&&S())&&!!xe()&&!!Pe()&&(e.showAds&&C()||!e.showAds)&&I()&&!s()&&!n(rr)),zr=v(()=>R()&&!(f()||n(Hn))&&!u()&&E()&&!P()),St=K(!1),Et=v(()=>O()!==null),{toggle:po}=Dr,Ji=!1,Ki=null;It==null||It.setContext(Id());let Sn=()=>{e.autoplay&&!Ro&&e.uiConfig.controls.showOnStartupAtAutoplay&&mi(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:Sn});let wo=()=>{window.clearTimeout(co),dn.set(!1)},Un=()=>{window.clearTimeout(Br),Do.set(null)},mi=me=>{wo(),dn.set(!0),co=window.setTimeout(()=>dn.set(!1),me);let mt=me-100;Oo=window.setTimeout(()=>{D()&&yr.set(!1)},mt>0?mt:me)},Wr=(me,mt)=>{Un(),Do.set(mt),Br=window.setTimeout(()=>Do.set(null),me)},Tn=Ri.subscribe(me=>{nn.set(me),me&&(window.clearTimeout(Bn),Bn=window.setTimeout(()=>nn.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Fo=()=>_t(null,null,function*(){var mt,ei,Ii,qi;let me=oa();if(me){let si=ic(),oi=wr();me=si===oi||si===Ve()}if(me){mi(e.uiConfig.controls.hideTimeoutFullscreen);try{yield It==null?void 0:It.exit()}catch(si){ii({message:String(si)})}}pt.set(me),e.store.getAdmanWrapper().setFullscreen(me),b()?(ei=(mt=e.store.callbacks)==null?void 0:mt.onFullscreenEnter)==null||ei.call(mt):(qi=(Ii=e.store.callbacks)==null?void 0:Ii.onFullscreenExit)==null||qi.call(Ii)}),xr=me=>{let{width:mt,height:ei}=me.target;Vi.set({width:mt,height:ei})},sr=()=>{let{width:me,height:mt}=n(lo).getBoundingClientRect();Vi.set({width:me,height:mt})};Dt(()=>{var mt;return Ju(Fo),e.uiConfig.features.annotationsInside&&(dt==null||dt.init(n(lo))),za(It)&&(It==null||It.assignPlayerContainer(n(lo)),It==null||It.setExternalEventHandlers({resize:xr,leavepictureinpicture:sr})),e.interactiveContainer&&((mt=tt().parentElement)==null||mt.insertBefore(e.interactiveContainer,tt().nextSibling)),()=>{window.clearTimeout(co),window.clearTimeout(Oo),window.clearTimeout(Br),window.clearTimeout(Bn),Tn(),It==null||It.dispose().catch(ei=>{ii({message:String(ei)})}),ep(Fo)}});let wr=()=>{let me=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!at()?n(lo):at(),mt=me.getRootNode(),ei=mt instanceof ShadowRoot?mt.host:mt,Ii=$e()instanceof HTMLElement&&$e().contains(ei);return e.uiConfig.allowChangingFullscreenTarget&&$e()&&Ii?$e():me},Cn=()=>{je.set(!1)},un=()=>{xs(),Cn()},Kr=()=>_t(null,null,function*(){if(!Or()){ii({message:"fullscreen disabled"});return}Cn(),oa()?(yield Zu(document),ii({message:"exit fullscreen"})):(ii({message:"request fullscreen"}),yield Xu(wr()))}),pn=me=>{y()||(me.preventDefault(),je.set(!0),hr.set({left:me.clientX,top:me.clientY}))};function as(){or.set(!0),Ro||mi(e.uiConfig.controls.hideTimeoutCursor)}function Xe(me){var qi,si;let{relatedTarget:mt}=me,Ii=!!(mt&&((qi=n(tr))!=null&&qi.contains(mt)))&&((si=rt())==null?void 0:si.isFocused());!Ro&&!Ii&&(yr.set(!0),mi(e.uiConfig.controls.hideTimeoutCursor))}function Vt(){or.set(!1),N(Bo,!1),N(Wi,!1),Ji=!1,e.store.actions.internal.releaseCamera(),mi(e.uiConfig.controls.hideTimeout),P()&&zo()}function xi(me){return me?me.offsetTop+xi(me.offsetParent):0}function Io(me){return me?me.offsetLeft+Io(me.offsetParent):0}function Eo(me){if(U()&&Zn){let mt=me.currentTarget,ei=xi(mt),Ii=Io(mt),qi=me.pageX-Ii,si=me.pageY-ei,{left:oi,bottom:vo,right:zn}=U(),Wn=zn-oi;return qi>=oi-Wn&&si<=vo+Wn}}function Ho(me){if(n(lo)){let mt=xi(me.currentTarget),ei=z().height,Ii=me.pageY-mt;if(Eo(me)){N(Bo,!1);return}Ii<40?N(Bo,!0):Ii>ei-40?N(Wi,!0):(N(Bo,!1),p()||N(Wi,!1))}}function fo(me){Ho(me),!n(uo)&&!P()&&mi(e.uiConfig.controls.hideTimeoutCursor),G()&&Ji&&Ki&&e.store.actions.internal.moveCameraFocusPX(Ki.clientX-me.clientX,Ki.clientY-me.clientY,me.timeStamp-Ki.timeStamp),Ki=me}let Ni=null,Uo=()=>{Ni=window.setTimeout(()=>{e.store.actions.internal.changeDoubleForwardOn(!0),wo()},e.uiConfig.doubleForwardActivationTime)},zo=()=>{e.store.actions.internal.changeDoubleForwardOn(!1),Ni&&clearTimeout(Ni),Ni=null},So=me=>{me.preventDefault(),me.button===0&&(Ji=!0,e.store.actions.internal.holdCamera(),le()&&Uo()),!Ji&&mi(e.uiConfig.controls.hideTimeoutCursor)},Wo=me=>{me.preventDefault(),me.button===0&&(Ki=me,Ji=!1,e.store.actions.internal.releaseCamera()),!P()&&mi(e.uiConfig.controls.hideTimeoutCursor)},fn=me=>{me.preventDefault(),Fn&&(ii({message:"double click on video"}),Kr(),mi(e.uiConfig.controls.hideTimeoutCursor))},Sr=me=>{var mt;if(me.preventDefault(),P()){zo();return}if(Ni&&zo(),j()||p()){un();return}if(!(I()&&!gr)){if(n(Et))return po();if((mt=rt())==null||mt.focus(),!gt()){e.firstStart(),mi(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||ie()!==Jv.PlaybackState.PLAYING)&&e.store.actions.internal.togglePlay(),mi(e.uiConfig.controls.hideTimeoutCursor)}},Tr=me=>{un(),ao.set(!0),mi(e.uiConfig.controls.hideTimeout),me&&Wr(e.uiConfig.controls.hideHotKeyHelpers,me)},Cr=()=>{var me,mt;un(),(me=e.store.callbacks)!=null&&me.onOpenHotKeyMap?(mt=e.store.callbacks)==null||mt.onOpenHotKeyMap(Y()):zi.update(ei=>!ei)},ls=()=>{ao.set(!0)},ds=e.store.ui.contextMenu.openedByBtnKeyboard$,Ze=e.store.ui.contextMenu.btnRef$,Kt=K(void 0),Ci=e.store.ui.contextMenu.openedByHotKey$,Ko=e.store.ui.contextMenu.lastActiveElem$,mo=e.store.ui.previewTrackActive;Ne(()=>{rn.set(n(wn))}),Ne(()=>{N(nr,n(Hr)&&ie()!==Jv.PlaybackState.PLAYING,!0),n(Hr)||kt(()=>N(Hr,!0))}),Ne(()=>{var mt,ei;let me=(n(nr)||I()||p()||ge()||ce()||ne()||_e())&&!n(uo)&&(a()==="video"||a()==="ads")&&!s()&&E();Zt.set(me),!me&&!_e()&&e.uiConfig.returnFocusOnControlsHide&&((mt=n(tr))!=null&&mt.contains(sp()))&&((ei=rt())==null||ei.focus())}),Ne(()=>{!ge()&&n(St)&&!u()&&mi(e.uiConfig.controls.hideTimeoutCursor),kt(()=>N(St,ge(),!0))}),Ne(()=>{n(xn),p(),we(),kt(()=>dc(n(xn),p(),we()))}),Ne(()=>{n(Kt),j(),Z(),Oe(),kt(()=>{let me=Z()||Oe();dc(n(Kt),j(),me)})}),Ne(()=>{let me=ue();me&&(j(),kt(()=>Xl(me,j(),ds)))}),Ne(()=>{let me=A();me&&(j(),kt(()=>rb(me,j(),Ci)))}),Ne(()=>{var me;!Ke()&&b()&&(kt(()=>Ai.set(!1)),(me=rt())==null||me.focus())}),Ne(()=>{y()&&un()});let Ir=K(void 0),mn=me=>{an.set(jn(Dn(),{title:n(Ir)},"title",me))},Er=(me,mt)=>{var si,oi;let ei=(oi=(si=e.store.callbacks)==null?void 0:si.uiInfo)==null?void 0:oi.onUpcomingLiveViewStateChanged;if(!ei)return;let Ii=!!mt,qi=Ae(Ae({},jn(n(lo),{upcomingLiveScreen:mt},"upcomingLiveScreen",Ii)),me);ei(qi)};var Hs=MT();$t("blur",Ea,un);var In=de(Hs);In.__mousemove=fo;var Us=T(In);let ar=v(()=>a()==="ads"),cs=v(()=>n(Et)?po:void 0);nt(ym(Us,{startDoubleForwardActivationTimer:Uo,stopDoubleForward:zo,toggleFullscreen:Kr,hideContextMenu:un,showHotKeyHelpers:Tr,showKeyMap:Cr,get isAds(){return n(ar)},get fakePlayButtonHandler(){return n(cs)},get nextButtonActive(){return be()},get prevButtonActive(){return ee()},children:(me,mt)=>{var ei=kT(),Ii=de(ei);dl(Ii,{get hideCursor(){return n(zr)},onClick:Sr,onContextMenu:pn,onMouseDown:So,onMouseUp:Wo,onDblClick:fn,get videoContainer(){return tt()},set videoContainer(oi){tt(oi)}});var qi=k(Ii,2);Va(qi,()=>"slot",!1,(oi,vo)=>{to(oi,()=>({name:ll}))});var si=k(qi,2);Es(si,Ce,oi=>{var vo=AT(),zn=de(vo);let Wn=v(()=>a()!=="thumb"||s()||Ro&&e.autoplay);rl(zn,{get hidden(){return n(Wn)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart},onContextMenu:pn,onClick:Cn});var ki=k(zn,2);{var bd=He=>{Xv(He,{})};V(ki,He=>{pe()&&He(bd)})}var pl=k(ki,2);Yv(pl,{});var zs=k(pl,2);jv(zs,{get isVisible(){return P()}});var fa=k(zs,2);{var ma=He=>{let _i=v(()=>{var Go;return(Go=e.live)==null?void 0:Go.startTime});Dc(He,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(_i)},onUpcomingLiveViewStateChanged:Er,onContextMenu:pn,onClick:Cn})};V(fa,He=>{a()==="LiveWaitingStart"&&He(ma)})}var vn=k(fa,2);{var fl=He=>{sl(He,{kind:"recover",get thumbUrl(){return e.thumbUrl},onContextMenu:pn,onClick:Cn})};V(vn,He=>{a()==="LiveWaitingRecover"&&He(fl)})}var va=k(vn,2);{var qr=He=>{sl(He,{kind:"record",get thumbUrl(){return e.thumbUrl},onContextMenu:pn,onClick:Cn})};V(va,He=>{a()==="LiveWaitingRecord"&&He(qr)})}var us=k(va,2);{var Ws=He=>{var _i=CT();let Go;var $a=T(_i);nc($a,{get adsSlotId(){return Bt()},get adsParams(){return Gt()},get adsAutoplayParam(){return Ct()},get duration(){return ti()},get adsExternalApi(){return e.adsExternalApi}}),w(_i),B(Po=>Go=re(_i,1,"ads-container s-7",null,Go,Po),[()=>({hidden:a()!=="ads"})]),_(He,_i)};V(us,He=>{e.showAds&&gt()&&He(Ws)})}var ga=k(us,2);{var ml=He=>{let _i=v(()=>!ze()&&e.showAutoplayNext&&S());_m(He,{get title(){return xe()},get thumb(){return Pe()},get isHide(){return n(_i)},clickCloseIcon:()=>N(rr,!0)})};V(ga,He=>{n(Hn)&&xe()&&Pe()&&He(ml)})}var vl=k(ga,2);{var $d=He=>{let _i=v(()=>!f());xv(He,{get title(){return e.title},get isHidden(){return n(_i)},onVisibilityChanged:mn,get ref(){return n(Ir)},set ref(Go){N(Ir,Go,!0)}})};V(vl,He=>{n(Ur)&&He($d)})}var gl=k(vl,2);{var hl=He=>{let _i=v(()=>a()==="video"&&f());Nc(He,{get isShifted(){return n(_i)}})};V(gl,He=>{G()&&He(hl)})}var Pr=k(gl,2);{var yd=He=>{var _i=IT(),Go=T(_i);tc(Go,{}),w(_i),_(He,_i)};V(Pr,He=>{se()&&He(yd)})}var ha=k(Pr,2);{var _l=He=>{Oc(He,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return De()}})};V(ha,He=>{ne()&&He(_l)})}var ut=k(ha,2);{var vt=He=>{ol(He,{get shifted(){return f()},get captions(){return J()},get position(){return X()},get playerSize(){return z()}})};V(ut,He=>{Be().value!=="off"&&He(vt)})}var Qi=k(ut,2);{var Qo=He=>{var _i=ET();_i.__contextmenu=pn,_i.__click=[TT,j,je,p,Tt,un];var Go=T(_i);nl(Go,{}),w(_i),_(He,_i)};V(Qi,He=>{s()&&He(Qo)})}var Gi=k(Qi,2);{var wi=He=>{let _i=v(()=>a()==="thumb"||a()==="LiveWaitingStart"||a()==="LiveWaitingRecover"||a()==="LiveWaitingRecord"),Go=v(()=>a()==="ads"),$a=v(()=>e.canRewindLive&&Se()!==0);Vc(He,{get bottomHidden(){return n(_i)},get bottomNoSmooth(){return D()},get showControls(){return f()},get isAds(){return n(Go)},get canRewindLive(){return n($a)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Ft()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return ye()},get nextButtonActive(){return be()},get prevButtonActive(){return ee()},get isOneVideoPlaylist(){return Pt()},customFullscreenSupported:Fn,toggleFullscreen:Kr,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return n(br)},set playerControlsWrapperRef(Po){N(br,Po,!0)},get playerControlsRef(){return n(tr)},set playerControlsRef(Po){N(tr,Po,!0)}})};V(Gi,He=>{gt()&&He(wi)})}var Oi=k(Gi,2);{var _a=He=>{var _i=PT(),Go=T(_i);let $a=v(()=>{var Po;return(Po=n(tr))==null?void 0:Po.clientHeight});Uc(Go,{get supportLink(){return e.supportLink},get playerControlsHeight(){return n($a)},returnFocus:()=>{var Po;return(Po=rt())==null?void 0:Po.focus()},get ref(){return n(xn)},set ref(Po){N(xn,Po,!0)}}),w(_i),_(He,_i)};V(Oi,He=>{!ne()&&a()!=="ads"&&He(_a)})}var bl=k(Oi,2);let Up=v(()=>!n(cn));ac(bl,{get isLive(){return Fe()},get isHidden(){return n(Up)},get isPlaying(){return qe()},get position(){return X()},get duration(){return Se()}});var iu=k(bl,2);$v(iu,{get data(){return Do}});var ou=k(iu,2);gm(ou,{get supportLink(){return e.supportLink},returnFocus:()=>{var He;return(He=rt())==null?void 0:He.focus()},get visible(){return j()},get playerContainerRef(){return n(lo)},get position(){return Ye()},get menuElementRef(){return n(Kt)},set menuElementRef(He){N(Kt,He,!0)}});var ba=k(ou,2);{var zp=He=>{zc(He,{onClose:$r,onSelectAutoQuality:()=>{Nr("auto"),$r()}})};V(ba,He=>{n(ir)&&He(zp)})}var Ks=k(ba,2);{var $l=He=>{Zv(He,{})};V(Ks,He=>{Te()&&He($l)})}var nu=k(Ks,2);{var ru=He=>{Qa(He,{})};V(nu,He=>{n(Fr)&&He(ru)})}var yl=k(nu,2);{var su=He=>{Sm(He,{})};V(yl,He=>{Le()&&He(su)})}var Wp=k(yl,2);{var au=He=>{uc(He,{})};V(Wp,He=>{Ue()&&He(au)})}_(oi,vo)}),_(me,ei)},$$slots:{default:!0}}),me=>rt(me),()=>rt());var ft=k(Us,2);nt(ft,me=>N(wn,me),()=>n(wn)),w(In),nt(In,me=>N(lo,me),()=>n(lo));var fi=k(In,2);{var qo=me=>{var mt=LT();_(me,mt)};V(fi,me=>{Nt()&&me(qo)})}$t("mouseenter",In,as),$t("mouseleave",In,Vt),$t("click",In,ls,!0),$t("focusin",In,Xe,!0),_(t,Hs),H(),o()}st(["mousemove","contextmenu","click"]);var pa=require("@vkontakte/videoplayer-core/es2015"),u$=require("@vkontakte/videoplayer-shared/es2015");var RT=L('<div></div> <div class="info s-t"><div class="triangles-wrapper s-t"><div></div> <div></div> <div></div></div> <p class="step-caption s-t"> </p></div>',1),NT=L("<div><!></div>"),OT={hash:"s-t",code:".double-click-area.s-t{height:100%;overflow:hidden;position:absolute;top:0;width:25%}.double-click-area.left.s-t{left:0}.double-click-area.right.s-t{right:0}.semicircle.s-t{background-color:rgba(0,0,0,.5);height:100%;position:absolute;top:0;width:100%}.semicircle.left.s-t{border-bottom-right-radius:50%;border-top-right-radius:50%;left:0}.semicircle.right.s-t{border-bottom-left-radius:50%;border-top-left-radius:50%;right:0}.info.s-t{align-items:center;flex-direction:column;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.info.s-t,.triangles-wrapper.s-t{display:flex;justify-content:center}.triangles-wrapper.s-t{margin-bottom:10px;position:relative}.triangle.s-t{animation:s-t-blink .5s infinite;border-bottom:6px solid transparent;border-top:6px solid transparent;height:0;opacity:0;width:0}.triangle.left.s-t:nth-child(3),.triangle.right.s-t:first-child{animation-delay:0s}.triangle.left.s-t:nth-child(2),.triangle.right.s-t:nth-child(2){animation-delay:.1s}.triangle.left.s-t:first-child,.triangle.right.s-t:nth-child(3){animation-delay:.2s}@keyframes s-t-blink{0%{opacity:0}50%{opacity:1}to{opacity:0}}.triangle.left.s-t{border-right:8px solid var(--white)}.triangle.right.s-t{border-left:8px solid var(--white)}.triangle.s-t:not(:last-child){margin-right:5px}.step-caption.s-t{color:var(--white);font-size:12px;line-height:1;margin:0;text-align:center}"};function Cp(t,e){F(e,!0),q(t,OT);let i=g(e,"seekStep",3,0),o=K(!1),r=0,a=0,l=K(di(i())),d=m=>{m.stopPropagation(),a+=1,N(l,i()*(a-1)),a===1?e.handleSingleFirstClick(m):(N(o,!0),e.handleSecondClick()),window.clearTimeout(r),r=window.setTimeout(()=>{a=0,N(o,!1)},300)};_n(()=>{window.clearTimeout(r)});var s=NT();s.__click=d;var u=T(s);{var p=m=>{var f=RT(),$=de(f),y=k($,2),b=T(y),S=T(b),C=k(S,2),I=k(C,2);w(b);var R=k(b,2),E=T(R,!0);w(R),w(y),B(P=>{var O,D,U,z;re($,1,`semicircle ${(O=e.side)!=null?O:""}`,"s-t"),re(S,1,`triangle ${(D=e.side)!=null?D:""}`,"s-t"),re(C,1,`triangle ${(U=e.side)!=null?U:""}`,"s-t"),re(I,1,`triangle ${(z=e.side)!=null?z:""}`,"s-t"),fe(E,P)},[()=>Q("doubletap_seek_step",{seconds:n(l).toFixed(0)})]),_(m,f)};V(u,m=>{n(o)&&m(p)})}w(s),B(()=>{var m;return re(s,1,`double-click-area ${(m=e.side)!=null?m:""}`,"s-t")}),_(t,s),H()}st(["click"]);var DT=(t,e,i)=>{e(!1),i()},BT=L('<div class="overlay s-s"></div> <div class="next-video s-s"><div class="top s-s"><div class="caption s-s"> </div> <!></div> <div class="row s-s"><div class="column s-s"><div class="thumb s-s"><div></div> <!></div></div> <div class="column s-s"><div class="title s-s"> </div></div></div></div>',1),FT={hash:"s-s",code:".overlay.s-s{background:rgba(0,0,0,.72);height:100%;position:absolute;width:100%}.next-video.s-s{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-s{display:flex;justify-content:space-between}.caption.s-s{color:var(--white);font-size:11px;font-weight:700;opacity:.8;text-transform:uppercase}.row.s-s{background:rgba(48,48,48,.8);cursor:pointer;display:flex;flex-direction:row;height:102px;margin-top:6px;width:100%}.column.s-s{display:flex;flex-basis:50%;flex-direction:column}.thumb.s-s{align-items:center;background:no-repeat 50%;background-size:cover;display:flex;justify-content:space-around;position:relative}.thumb.s-s,.thumb-overlay.s-s{height:100%;width:100%}.thumb-overlay.s-s{position:absolute}.thumb-overlay.withOpacity.s-s{background:var(--black);opacity:.3}.title.s-s{color:var(--white);font-size:12px;font-weight:700;line-height:1.6;max-height:52px;overflow:hidden;padding:10px 16px}"};function tg(t,e){F(e,!0),q(t,FT);let[i,o]=Re(),r=()=>x(d,"$autoplayNextEnabled$",i),a=()=>x(s,"$timerNextVideoRunning$",i),l=ve(),d=l.ui.autoplayNextEnabled$,s=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,p=l.actions.internal.nextVideoAnnouncementShow,m=l.actions.internal.nextVideoAnnouncementClick,f=l.actions.internal.nextVideoAnnouncementAuto,$=l.actions.internal.nextVideoAnnouncementCancel,y=()=>{u(!1),f()},b=()=>{e.clickCloseIcon(),$()};Dt(()=>{e.isHide||p(),e.isHide&&r()&&(u(!1),f())});var S=Me(),C=de(S);{var I=R=>{var E=BT(),P=k(de(E),2),O=T(P),D=T(O),U=T(D,!0);w(D);var z=k(D,2);Ms(z,{onClick:b}),w(O);var G=k(O,2);G.__click=[DT,u,m];var le=T(G),j=T(le),ie=T(j);let Y;var ge=k(ie,2);{var ce=Z=>{pc(Z,{get isRunning(){return a()},onTimerEnded:y})};V(ge,Z=>{r()&&Z(ce)})}w(j),w(le);var ne=k(le,2),_e=T(ne),we=T(_e,!0);w(_e),w(ne),w(G),w(P),B((Z,Oe)=>{fe(U,Z),Qe(j,`background-image: url('${e.thumb}')`),Y=re(ie,1,"thumb-overlay s-s",null,Y,Oe),fe(we,e.title)},[()=>r()?Q("end_screen_next_video"):Q("end_screen_recommended_video"),()=>({withOpacity:r()})]),_(R,E)};V(C,R=>{e.isHide||R(I)})}_(t,S),H(),o()}st(["click"]);var s$=require("@vkontakte/videoplayer-core/es2015");var a$=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Dt(()=>{s$.clientChecker.device.isIOS&&(o=setTimeout(()=>{let a=t().querySelector("video");if(!a)return;let l=()=>e(!0),d=()=>e(!1);a.addEventListener("webkitbeginfullscreen",l),a.addEventListener("webkitendfullscreen",d),i=()=>{a.removeEventListener("webkitbeginfullscreen",l),a.removeEventListener("webkitendfullscreen",d)}},0))}),_n(()=>{i==null||i(),clearTimeout(o)})};var l$=require("@vkontakte/videoplayer-core/es2015");var Ip=class{constructor(e){this.video=e}getTracksArray(){return Array.from(this.video.getElementsByTagName("track"))}attach(e,i=!1){let o=document.createElement("track");o.setAttribute("src",e.url),o.setAttribute("id",e.id),e.label&&o.setAttribute("label",e.label),e.language&&o.setAttribute("srclang",e.language),i&&(o.track.mode="showing"),this.video.appendChild(o)}detachAll(){for(let e of this.getTracksArray())this.video.removeChild(e)}updateSrc(e){let i=this.getTracksArray().find(o=>o.id===e.id);i&&(i.src=e.url)}getCurrentShowingId(){var e,i;return(i=(e=this.getTracksArray().find(o=>o.track.mode==="showing"))==null?void 0:e.id)!=null?i:null}};var d$=require("@vkontakte/videoplayer-core/es2015"),c$=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:r,availableSubtitlesList$:a,currentFormat$:l,availableTextTracks$:d}=t.state,s=null,u=()=>e().querySelector("video"),p=()=>d$.clientChecker.device.isIOS&&he(l)===l$.VideoFormat.DASH_LIVE_CMAF,m=()=>{s==null||s(),s=null},f=$=>{if(m(),!p()||!$)return;let y=u();if(!y)return;let b=new Ip(y),S=he(d),C=he(a),I=he(r);for(let P of S)C.some(D=>D.value===P.id)&&b.attach(P,I.value===P.id);let R=d.subscribe(P=>{for(let O of P)b.updateSrc(O)}),E=()=>{let P=b.getCurrentShowingId();o(he(a).find(O=>O.value===P))};y.textTracks.addEventListener("change",E),s=()=>{R(),b.detachAll(),y.textTracks.removeEventListener("change",E)}};Dt(()=>i.subscribe(f)),_n(m)};var HT=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},UT=L("<!> <!>",1),zT=L("<div><!></div>"),WT=L('<div class="spherical-video-icon s-9"><!></div>'),KT=L("<div><!></div>"),qT=L('<div class="settings-mobile s-9"><!></div>'),QT=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),GT=L('<div class="player-wrapper s-9" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),YT={hash:"s-9",code:".player-wrapper.s-9{height:100%;position:absolute;width:100%}.player-wrapper.s-9 .player-media{background:var(--black);height:100%;left:0;position:absolute;top:0;transition:transform .2s ease-in-out;width:100%}.spherical-video-icon.s-9{display:inline-block;left:calc(50% - 38px);position:absolute;top:calc(50% - 23px)}.ads-container.s-9{background:var(--black);height:100%;left:0;position:absolute;top:0;width:100%;z-index:var(--ads-container-z-index)}.settings-mobile.s-9{align-items:center;display:flex;left:50%;max-width:320px;position:absolute;top:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);width:90%;z-index:var(--settings-menu-z-index)}"};function ig(t,e){var Hn,zr;F(e,!0),q(t,YT);let[i,o]=Re(),r=()=>x(Ve,"$playerPhase",i),a=()=>x(yi,"$isLoaderVisible",i),l=()=>x(xe,"$adPlaybackState",i),d=()=>x(Jt,"$crashed",i),s=()=>x(ns,"$notificationsToShow$",i),u=()=>x(ee,"$playbackState$",i),p=()=>x(Ft,"$graphIsOpened$",i),m=()=>x(et,"$interactiveHideMobileControls",i),f=()=>x(ro,"$isEnded$",i),$=()=>x(dt,"$isInteractiveExpectation$",i),y=()=>x(gt,"$controlsVisible",i),b=()=>x(ct,"$touched",i),S=()=>x(Ri,"$autoplayNextEnabled$",i),C=()=>x(pt,"$postrollPassed",i),I=()=>x(an,"$bottomNoSmooth",i),R=()=>x(Si,"$videoSize",i),E=()=>x(At,"$playerSize",i),P=()=>x(at,"$isFullscreen",i),O=()=>x(Pe,"$position$",i),D=()=>x(Pt,"$duration$",i),U=()=>x(nn,"$loadedMetadata",i),z=()=>x(ze,"$settingsMenuVisible",i),G=()=>x(ii,"$scrubbingInProgress",i),le=()=>x(ai,"$volumeChangingInProgress",i),j=()=>x($o,"$chromecastConnected$",i),ie=()=>x($e,"$isControlsAvailable",i),Y=()=>x(li,"$isInteractiveTime$",i),ge=()=>x(Tt,"$isActiveLive",i),ce=()=>x(rt,"$settingsMenuOpenedByKeyboard",i),ne=()=>x(be,"$language$",i),_e=()=>x(jt,"$disabledControls$",i),we=()=>x(Ht,"$is3DVideo",i),Z=()=>x(W,"$icon3DVideoVisible",i),Oe=()=>x(ui,"$chromecastDeviceName$",i),ue=()=>x(so,"$currentSubtitle$",i),A=()=>x(on,"$currentSubtitleCaptions$",i),Ke=()=>x(yn,"$realDuration$",i),Ce=()=>x(Ai,"$isLive$",i),pe=()=>x(Zt,"$isPlaying$",i),se=()=>x(gi,"$debugPanelVisible",i),De=g(e,"videoContainer",15),Be=g(e,"adsSlotId",3,void 0),J=g(e,"adsParams",3,void 0),X=g(e,"adsAutoplayParam",3,void 0),Se=g(e,"duration",3,void 0),Fe=g(e,"logoTargetUrl",3,""),qe=g(e,"showNextPrevButtons",3,!1),Ye=g(e,"nextButtonActive",3,!1),Te=g(e,"prevButtonActive",3,!1),Le=g(e,"endScreenVideoTitle",3,void 0),Ue=g(e,"endScreenVideoThumb",3,void 0),Nt=g(e,"isOneVideoPlaylist",3,!1),tt=g(e,"showMiniTimer",3,!1),Bt=g(e,"fullScreenTarget",3,void 0),Gt=g(e,"playerStarted",3,!1),Ct=g(e,"showEndScreen",3,!0),{notifications$:ti,graphIsOpened$:Ft}=Co(),ye=e.store.getLogger().createComponentLog("Root component"),be=e.store.interfaceLanguage$,ee=e.store.state.playbackState$,xe=e.store.ads.playbackState,Pe=e.store.state.positionWithScrubbing$,Pt=e.store.state.duration$,Ve=e.store.playerPhase,at=e.store.ui.isFullscreen,gt=e.store.ui.controlsVisible,$e=e.store.ui.isControlsAvailable,et=e.store.ui.interactiveHideMobileControls,ze=e.store.ui.settingsMenu.visible$,rt=e.store.ui.settingsMenu.openedByBtnKeyboard$,ii=e.store.ui.scrubbingInProgress,ai=e.store.ui.volumeChangingInProgress,gi=e.store.ui.debugPanelVisible,yi=e.store.state.isLoaderVisible,ro=e.store.state.isEnded$,$o=e.store.state.chromecastConnected$,ui=e.store.state.chromecastDeviceName$,pt=e.store.ads.postrollPassed,Ai=e.store.state.isLive$,Zt=e.store.state.isPlaying$,Tt=e.store.state.isActiveLive$,ri=e.store.state.isRewindableLive$,Jt=e.store.state.crashed$,yt=e.store.webApi.annotationsApi,je=e.store.webApi.pictureInPictureApi,Si=e.store.state.videoSize$,so=e.store.state.currentSubtitle$,on=e.store.state.currentSubtitleCaptions$,yn=e.store.state.duration$,At=e.store.ui.playerSize,Ht=e.store.ui.is3DVideo,W=e.store.ui.icon3DVideoVisible,Mt=e.store.state.isInteractive,li=e.store.state.isInteractiveTime$,dt=e.store.state.isInteractiveExpectation$,It=e.store.state.hasInteractiveBranches,jt=e.store.ui.controls.disabledControls$,ct=e.store.ui.touched,Vi=e.store.ui.overlayContainer$,Ri=e.store.ui.autoplayNextEnabled$,nn=e.store.state.loadedMetadata$,Ro=e.store.actions.internal.closeSettingsMenu,yo=(Hn=e.store.callbacks)==null?void 0:Hn.onDisabledPlayPrevChapterClick,Ui=(zr=e.store.callbacks)==null?void 0:zr.onDisabledSeekToInteractiveClick,gr=e.store.actions.internal.setQuality,ao=K(void 0),xo=K(void 0),zi=K(void 0),rn=K(void 0),sn,Zn,hr=v(()=>(r()==="video"&&a()||r()==="ads"&&l()==="inactive")&&!d()),Nr=K(void 0),{closeNotification:xs,notificationsToShow$:ns}=ti,rs=v(()=>!!s().slow_video),Jn=()=>xs("slow_video"),an=ae(!1),No,ln=K(!1),er=v(()=>u()!==pa.PlaybackState.PLAYING),Dn=K(!1),Or=v(()=>p()||m()||!n(ln)&&(f()&&!!It||n(er)&&$())),Dr=K(!0),ss=v(()=>e.uiConfig.features.thumbTimer&&tt()&&r()==="video"&&!y()&&!d()&&!Mt&&(e.uiConfig.hideThumbTimerAfterTouch&&!b()||!e.uiConfig.hideThumbTimerAfterTouch)),_r=K(!1),lo=v(()=>(Ct()||e.showAutoplayNext&&S())&&!!Le()&&!!Ue()&&(e.showAds&&C()||!e.showAds)&&f()&&!d()&&!n(_r)),br=K(!1);je==null||je.setContext(Id());let tr=St=>{St&&!Mt&&co(e.uiConfig.controls.hideTimeoutMobile)};e.store.setUiCallbacks({onStarted:tr});let xn=()=>{clearTimeout(sn),N(ln,!1),m()&&et.set(!1)},co=St=>{xn(),N(ln,!0),sn=setTimeout(()=>N(ln,!1),St);let Et=St-100;No=setTimeout(()=>{I()&&an.set(!1)},Et>0?Et:St)},Br=Ht.subscribe(St=>{W.set(St),St&&(clearTimeout(Zn),Zn=setTimeout(()=>W.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Bn=(...Et)=>_t(null,[...Et],function*(St=oa()){var po,Ji,Ki,Sn,wo,Un;if(St&&!pa.clientChecker.device.isIOS){let mi=ic(),Wr=wn(),Tn=pa.clientChecker.browser.isSamsungBrowser&&mi===e.shadowRootContainer;St=mi===Wr||Tn}if(St){co(e.uiConfig.controls.hideTimeoutFullscreen);try{yield je==null?void 0:je.exit()}catch(mi){ye({message:String(mi)})}try{let mi=(po=R())!=null&&po.width&&((Ji=R())!=null&&Ji.height)?R():E();yield J_(mi)}catch(mi){ye({message:String(mi)})}}at.set(St),e.store.getAdmanWrapper().setFullscreen(St),P()?(Sn=(Ki=e.store.callbacks)==null?void 0:Ki.onFullscreenEnter)==null||Sn.call(Ki):(Un=(wo=e.store.callbacks)==null?void 0:wo.onFullscreenExit)==null||Un.call(wo)}),ht=St=>{let Et=St,{width:po,height:Ji}=Et.target;At.set({width:po,height:Ji})},pi=()=>{let{width:St,height:Et}=n(ao).getBoundingClientRect();At.set({width:St,height:Et})};Dt(()=>{var St;return Ju(Bn),e.uiConfig.features.annotationsInside&&(yt==null||yt.init(n(ao))),za(je)&&(je==null||je.assignPlayerContainer(n(ao)),je==null||je.setExternalEventHandlers({resize:ht,leavepictureinpicture:pi})),N(Dr,!pa.clientChecker.device.isIphoneOrOldIpad),e.interactiveContainer&&((St=De().parentElement)==null||St.insertBefore(e.interactiveContainer,De().nextSibling)),()=>{clearTimeout(sn),clearTimeout(No),clearTimeout(Zn),Br(),je==null||je.dispose().catch(Et=>{ye({message:String(Et)})}),ep(Bn)}});let ir=K(!0),$r=K(!0),Fr=St=>{let Et=O()+(St==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;Et<0?(N(ir,!1),Et=0):Et>=D()&&(N($r,!1),Et=D()),N(Dn,!0),e.seekTime(Et)},wn=()=>pa.clientChecker.device.isIOS?n(ao):!e.uiConfig.allowChangingFullscreenTarget||!Bt()?e.outerContainerRef:Bt().contains(e.outerContainerRef)?Bt():e.outerContainerRef,yr=()=>_t(null,null,function*(){try{if(oa())yield Zu(document),ye({message:"exit fullscreen"});else{if(ye({message:"request fullscreen"}),pa.clientChecker.device.isIOS&&!U())return;yield Xu(wn())}}catch(St){ye({message:String(St)})}}),Oo=()=>{Ro()},dn=St=>{if(St.preventDefault(),z()){Oo();return}if(!Gt()){e.firstStart(),co(e.uiConfig.controls.hideTimeoutCursor);return}N(Dn,!1),y()?xn():co(e.uiConfig.controls.hideTimeoutMobile)},Do=()=>{ct.set(!0)},or=()=>{Mt||(an.set(!0),co(e.uiConfig.controls.hideTimeoutCursor))},Wi=St=>{yo&&(yo(St),co(e.uiConfig.controls.hideTimeoutMobile))},Bo=St=>{Ui&&(Ui(St),co(e.uiConfig.controls.hideTimeoutMobile))};Ne(()=>{Vi.set(n(Nr))}),Ne(()=>{gt.set((n(er)||z()||G()||le()||j()||!n(lo)&&(f()||n(ln)&&!n(Dn)))&&!n(Or)&&r()==="video"&&!d()&&ie())}),Ne(()=>{!G()&&n(br)&&!Y()&&co(e.uiConfig.controls.hideTimeoutMobile),N(br,G(),!0)}),Ne(()=>{N(ir,O()>0),N($r,!ge()&&O()<D(),!0)}),Ne(()=>{dc(n(rn),z(),ce(),!0)});let nr=Q("aria_label_video_player");a$({fullScreenChangeHandler:Bn,getFullscreenTarget:wn}),c$({store:e.store,getFullscreenTarget:wn});let Hr=(St,Et)=>{var Sn,wo;let po=(wo=(Sn=e.store.callbacks)==null?void 0:Sn.uiInfo)==null?void 0:wo.onUpcomingLiveViewStateChanged;if(!po)return;let Ji=!!Et,Ki=Ae(Ae({},jn(n(ao),{upcomingLiveScreen:Et},"upcomingLiveScreen",Ji)),St);po(Ki)};var uo=GT();$t("blur",Ea,Oo);var Fn=T(uo);dl(Fn,{onClick:dn,get videoContainer(){return De()},set videoContainer(St){De(St)}});var cn=k(Fn,2);Va(cn,()=>"slot",!1,(St,Et)=>{to(St,()=>({name:ll}))});var Ur=k(cn,2);Es(Ur,ne,St=>{var Et=QT(),po=de(Et);let Ji=v(()=>r()!=="thumb"||d()||Mt&&e.autoplay);rl(po,{get hidden(){return n(Ji)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Ki=k(po,2);{var Sn=Ze=>{var Kt=UT(),Ci=de(Kt);{var Ko=mn=>{let Er=v(()=>e.uiConfig.controls.seekStepMobile/1e3);Cp(mn,{side:"left",get seekStep(){return n(Er)},handleSingleFirstClick:dn,handleSecondClick:()=>Fr("backward")})};V(Ci,mn=>{n(ir)&&mn(Ko)})}var mo=k(Ci,2);{var Ir=mn=>{let Er=v(()=>e.uiConfig.controls.seekStepMobile/1e3);Cp(mn,{side:"right",get seekStep(){return n(Er)},handleSingleFirstClick:dn,handleSecondClick:()=>Fr("forward")})};V(mo,mn=>{n($r)&&mn(Ir)})}_(Ze,Kt)};V(Ki,Ze=>{e.canRewindLive&&ri&&!_e().has("TIMELINE")&&Ze(Sn)})}var wo=k(Ki,2);{var Un=Ze=>{let Kt=v(()=>{var Ci;return(Ci=e.live)==null?void 0:Ci.startTime});Dc(Ze,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(Kt)},onUpcomingLiveViewStateChanged:Hr})};V(wo,Ze=>{r()==="LiveWaitingStart"&&Ze(Un)})}var mi=k(wo,2);{var Wr=Ze=>{sl(Ze,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};V(mi,Ze=>{r()==="LiveWaitingRecover"&&Ze(Wr)})}var Tn=k(mi,2);{var Fo=Ze=>{sl(Ze,{kind:"record",get thumbUrl(){return e.thumbUrl}})};V(Tn,Ze=>{r()==="LiveWaitingRecord"&&Ze(Fo)})}var xr=k(Tn,2);{var sr=Ze=>{var Kt=zT();let Ci;var Ko=T(Kt);nc(Ko,{get adsSlotId(){return Be()},get adsParams(){return J()},get adsAutoplayParam(){return X()},get duration(){return Se()},get adsExternalApi(){return e.adsExternalApi}}),w(Kt),B(mo=>Ci=re(Kt,1,"ads-container s-9",null,Ci,mo),[()=>({hidden:r()!=="ads"})]),_(Ze,Kt)};V(xr,Ze=>{e.showAds&&Gt()&&Ze(sr)})}var wr=k(xr,2);{var Cn=Ze=>{let Kt=v(()=>!Ct()&&e.showAutoplayNext&&S());tg(Ze,{get title(){return Le()},get thumb(){return Ue()},get isHide(){return n(Kt)},clickCloseIcon:()=>N(_r,!0)})};V(wr,Ze=>{n(lo)&&Le()&&Ue()&&Ze(Cn)})}var un=k(wr,2);{var Kr=Ze=>{Nc(Ze,{})};V(un,Ze=>{we()&&Ze(Kr)})}var pn=k(un,2);{var as=Ze=>{var Kt=WT(),Ci=T(Kt);tc(Ci,{}),w(Kt),_(Ze,Kt)};V(pn,Ze=>{Z()&&Ze(as)})}var Xe=k(pn,2);{var Vt=Ze=>{Oc(Ze,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return Oe()}})};V(Xe,Ze=>{j()&&Ze(Vt)})}var xi=k(Xe,2);{var Io=Ze=>{ol(Ze,{get shifted(){return y()},get captions(){return A()},get position(){return O()},get playerSize(){return E()},isMobile:!0})};V(xi,Ze=>{ue().value!=="off"&&Ze(Io)})}var Eo=k(xi,2);{var Ho=Ze=>{var Kt=KT();Kt.__click=[HT,z,ze,Oo];var Ci=T(Kt);nl(Ci,{}),w(Kt),_(Ze,Kt)};V(Eo,Ze=>{d()&&Ze(Ho)})}var fo=k(Eo,2);{var Ni=Ze=>{let Kt=v(()=>r()==="thumb"||r()==="LiveWaitingStart"||r()==="LiveWaitingRecover"||r()==="LiveWaitingRecord"||r()==="ads"),Ci=v(()=>r()==="ads"),Ko=v(()=>e.canRewindLive&&Ke()!==0);Vc(Ze,{get bottomHidden(){return n(Kt)},get showControls(){return y()},get bottomNoSmooth(){return I()},get isAds(){return n(Ci)},get canRewindLive(){return n(Ko)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Fe()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return qe()},get nextButtonActive(){return Ye()},get prevButtonActive(){return Te()},get isOneVideoPlaylist(){return Nt()},get customFullscreenSupported(){return n(Dr)},get endScreenShown(){return n(lo)},toggleFullscreen:yr,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:Wi,onDisabledSeekToInteractiveClick:Bo,get playerControlsWrapperRef(){return n(xo)},set playerControlsWrapperRef(mo){N(xo,mo,!0)},get playerControlsRef(){return n(zi)},set playerControlsRef(mo){N(zi,mo,!0)}})};V(fo,Ze=>{Gt()&&Ze(Ni)})}var Uo=k(fo,2);{var zo=Ze=>{var Kt=qT(),Ci=T(Kt);Uc(Ci,{get supportLink(){return e.supportLink},get returnFocus(){return u$.noop},get ref(){return n(rn)},set ref(Ko){N(rn,Ko,!0)}}),w(Kt),_(Ze,Kt)};V(Uo,Ze=>{z()&&Ze(zo)})}var So=k(Uo,2);let Wo=v(()=>!n(ss));ac(So,{get isLive(){return Ce()},get isHidden(){return n(Wo)},get isPlaying(){return pe()},get position(){return O()},get duration(){return D()}});var fn=k(So,2);{var Sr=Ze=>{Qa(Ze,{})};V(fn,Ze=>{n(hr)&&Ze(Sr)})}var Tr=k(fn,2);{var Cr=Ze=>{uc(Ze,{})};V(Tr,Ze=>{se()&&Ze(Cr)})}var ls=k(Tr,2);{var ds=Ze=>{zc(Ze,{onClose:Jn,onSelectAutoQuality:()=>{gr("auto"),Jn()}})};V(ls,Ze=>{n(rs)&&Ze(ds)})}_(St,Et)});var rr=k(Ur,2);nt(rr,St=>N(Nr,St),()=>n(Nr)),w(uo),nt(uo,St=>N(ao,St),()=>n(ao)),B(()=>We(uo,"aria-label",nr)),$t("click",uo,Do,!0),$t("focusin",uo,or,!0),_(t,uo),H(),o()}st(["click"]);function Ep(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/es2015");var jT=L('<div class="time-container s-8"><!></div>'),XT=L('<div class="player-wrapper s-8" role="region"><!> <!> <!> <!> <!> <div><!></div></div>'),ZT={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 og(t,e){F(e,!0),q(t,ZT);let[i,o]=Re(),r=()=>x(Y,"$scrubbingInProgress",i),a=()=>x(j,"$playerSize",i),l=()=>x(O,"$isPlaying$",i),d=()=>x(E,"$duration$",i),s=()=>x(z,"$positionWithScrubbing$",i),u=()=>x(I,"$playerPhase",i),p=()=>x(R,"$crashed$",i),m=()=>x(D,"$currentSubtitle$",i),f=()=>x(U,"$currentSubtitleCaptions$",i),$=()=>x(P,"$positionExact$",i),y=()=>x(G,"$isLive$",i),b=()=>x(le,"$isRewindableLive$",i),S=g(e,"outsideDuration",3,0),C=g(e,"videoContainer",15),{playerPhase:I,state:{crashed$:R,duration$:E,positionExact$:P,isPlaying$:O,currentSubtitle$:D,currentSubtitleCaptions$:U,positionWithScrubbing$:z,isLive$:G,isRewindableLive$:le},ui:{playerSize:j,controls:ie,scrubbingInProgress:Y},actions:{internal:{getVideoElement:ge}}}=ve(),ce=8,ne=K(!1),_e=di({}),we=K(!1),Z=v(()=>!r()&&!n(we)),Oe=()=>{N(ne,!0)},ue=()=>{N(ne,!1)},A=(0,p$.debounceFn)(sd,260);Ne(()=>{a(),A(ge(),ie,_e,n(ne))});let Ke=v(()=>l()?tn(d()-s()):tn(isFinite(d())?d():S()));var Ce=XT(),pe=T(Ce);dl(pe,{hideCursor:!1,get videoContainer(){return C()},set videoContainer(Le){C(Le)}});var se=k(pe,2);Va(se,()=>"slot",!1,(Le,Ue)=>{to(Le,()=>({name:ll}))});var De=k(se,2);let Be=v(()=>u()!=="thumb"||p());rl(De,{get hidden(){return n(Be)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var J=k(De,2);{var X=Le=>{ol(Le,{shifted:!1,get captions(){return f()},get position(){return $()},get playerSize(){return a()}})};V(J,Le=>{m().value!=="off"&&n(Z)&&Le(X)})}var Se=k(J,2);{var Fe=Le=>{var Ue=jT(),Nt=T(Ue);sc(Nt,{get isLive(){return y()},get isPlaying(){return l()},get time(){return n(Ke)}}),w(Ue),_(Le,Ue)};V(Se,Le=>{n(Z)&&Le(Fe)})}var qe=k(Se,2);let Ye;var Te=T(qe);el(Te,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return b()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:ce,tooltipRightOffset:ce,get ref(){return _e.timeline},set ref(Le){_e.timeline=Le}}),w(qe),w(Ce),B(Le=>Ye=re(qe,1,"timeline s-8",null,Ye,Le),[()=>({visible:n(ne)})]),$t("mouseenter",Ce,Oe),$t("mouseleave",Ce,ue),$t("mouseenter",qe,()=>N(we,!0)),$t("mouseleave",qe,()=>N(we,!1)),_(t,Ce),H(),o()}var JT=L("<div><!></div>"),eC={hash:"s-1",code:'.vk-vp-root.s-1{--white:#fff;--black:#000;--red:#ff3347;--blue-light:#70c1ff;--black-alpha-40:rgba(0,0,0,.4);--white-alpha-24:hsla(0,0%,100%,.24);--white-alpha-72:hsla(0,0%,100%,.72);--devider-gray:#dce1e6;--text-gray:#626d7a;--font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;--controls-height:40px;--controls-gradient-height:100px;--controls-transition-duration:0.25s;--controls-transition-fn:cubic-bezier(0.455,0.03,0.515,0.955);--controls-desktop-item-margin-left:4px;--controls-desktop-padding-horizontal:4px;--focused:var(--white);--focused-outline-width:2px;--focused-outline-radius:0;--focused-element-shadow:inset 0 0 0 var(--focused-outline-width) var(--focused);--focused-slider-shadow:0 0 0 2px var(--focused);--big-play-size:96px;--big-play-radius:50%;--big-play-bg-color:rgba(0,0,0,.5);--big-play-hover-bg-color:rgba(0,0,0,.6);--big-play-icon-width:38px;--big-play-icon-height:33px;--interactive-episode-complete:#5c9ce6;--slider-bg:hsla(0,0%,100%,.4);--slider-filled-bg:var(--white);--slider-handle-bg:var(--white);--slider-loaded-bg:hsla(0,0%,100%,.4);--slider-height:3px;--slider-video-episode-gap:1.5px;--slider-radius:0px;--slider-handle-size:12px;--slider-filled-ads:#67a5eb;--slider-disabled-color:hsla(0,0%,97%,.31);--slider-volume-height:5px;--slider-volume-radius:calc(var(--slider-volume-height)/2);--slider-volume-handle-size:13px;--timeline-slider-filled-active-live-bg:var(--red);--timeline-slider-handle-active-live-bg:var(--red);--timeline-slider-bg:var(--slider-bg);--timeline-slider-filled-bg:var(--slider-filled-bg);--timeline-slider-handle-bg:var(--slider-handle-bg);--timeline-slider-loaded-bg:var(--slider-loaded-bg);--volume-slider-bg:var(--slider-bg);--volume-slider-filled-bg:var(--slider-filled-bg);--volume-slider-handle-bg:var(--slider-handle-bg);--controls-time:var(--white);--controls-gradient:linear-gradient(180deg,transparent 0%,rgba(0,0,0,.005) 6.67%,rgba(0,0,0,.02) 13.33%,rgba(1,1,1,.04) 20%,rgba(1,1,1,.07) 26.67%,rgba(2,2,2,.11) 33.33%,rgba(3,3,3,.16) 40%,rgba(4,4,4,.22) 46.67%,rgba(6,6,6,.28) 53.33%,rgba(7,7,7,.33) 60%,rgba(8,8,8,.38) 66.67%,rgba(9,9,9,.42) 73.33%,rgba(9,9,9,.46) 80%,hsla(0,0%,4%,.48) 86.67%,hsla(0,0%,4%,.5));--timeline-preview-shadow:rgba(0,0,0,.08);--timeline-preview-bg:#222;--timeline-padding-horizontal:10px;--timeline-padding-vertical-top:3px;--timeline-padding-vertical-bottom:4px;--timeline-height:calc(var(--timeline-padding-vertical-bottom) + var(--timeline-padding-vertical-top) + var(--slider-height));--preview-track-frame-height-vertical:114px;--preview-track-frame-height-horizontal:65px;--preview-track-controls-top:16px;--preview-track-time-line-height:16px;--preview-track-bottom-offset:10px;--preview-track-height:calc(var(--preview-track-frame-height-vertical) + var(--preview-track-bottom-offset));--preview-track-controls-top-offset:calc(var(--timeline-height) + var(--preview-track-controls-top) + var(--preview-track-time-line-height));--settings-bg:rgba(0,0,0,.72);--settings-item-bg-hover:hsla(0,0%,100%,.08);--settings-radius:8px;--mobile-settings-bg:#2c2d2e;--divider-border:1px solid var(--white-alpha-24);--toggle-color-separator:#363738;--toggle-color-off:#656565;--toggle-color-on:#71aaeb;--toggle-color-autoplay-on:var(--white);--notification-bg:#2c2d2e;--notification-radius:8px;--button-hover-transition:opacity 0.2s;--video-container-z-index:0;--controls-container-z-index:1;--ads-container-z-index:1;--end-screen-mobile-z-index:1;--notification-z-index:1;--thumb-timer-z-index:2;--debug-panel-z-index:2;--settings-menu-z-index:2;--context-menu-z-index:3;--hot-key-helpers-container-z-index:3;--overlay-container-z-index:4;--rotate-transition-duration:0.25s;--btn-color:var(--white);--double-forward-bg:rgba(0,0,0,.6);background:var(--black);color:var(--white);font-family:var(--vk-vp-custom-font,var(--font));font-size:12px;height:100%;line-height:normal;outline:0;overflow:hidden;position:relative;user-select:none;width:100%}.vk-vp-root.visible-outside.s-1{overflow:visible}.vk-vp-root.s-1 *{-webkit-tap-highlight-color:transparent}.vk-vp-root.s-1 button{background:transparent;border:none;color:inherit;font:inherit;line-height:normal;margin:0;overflow:visible;padding:0;width:auto;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;cursor:pointer}.vk-vp-root.s-1 p{margin:0}.vk-vp-root.s-1 svg:not(.interactive-root svg){pointer-events:none}.vk-vp-root.s-1 .interactive-root{font-family:var(--vk-vp-int-custom-font,inherit)}.vk-vp-root.s-1 :focus,.vk-vp-root.s-1 :focus-visible{outline:none}.vk-vp-root.s-1 :focus-visible{border-radius:var(--focused-outline-radius);box-shadow:var(--focused-element-shadow)}.vk-vp-root.s-1 .focus-hidden:focus-visible{box-shadow:none}.vk-vp-root.s-1 .hidden{opacity:0;visibility:hidden}.vk-vp-root.s-1 .out-of-flow{content-visibility:hidden!important}.vk-vp-root.s-1 .overlay-container{height:100%;left:0;pointer-events:none;position:fixed;top:0;width:100%;z-index:var(--overlay-container-z-index)}.vk-vp-root.s-1 .out-of-view{left:-1000vh!important;position:absolute!important}.vk-vp-root.s-1 .icon.icon-error-stub{align-items:center;display:flex;justify-content:center}'};function ng(t,e){F(e,!0),q(t,eC);let[i,o]=Re(),r=()=>x(Gt,"$isLive$",i),a=()=>x(yt,"$availableSubtitlesList$",i),l=()=>x(je,"$isPreviewTrackHorizontallyAligned$",i),d=g(e,"sources",7),s=g(e,"store",7),u=g(e,"microStoresRoot",7),p=g(e,"videoConfig",7),m=g(e,"uiConfig",7),f=g(e,"title",7),$=g(e,"thumbUrl",7),y=g(e,"interactiveContainer",7),b=g(e,"interactiveController",7),S=g(e,"subtitles",7),C=g(e,"subtitlesForcedLanguage",7),I=g(e,"live",7),R=g(e,"preload",7),E=g(e,"autoplay",7),P=g(e,"volume",7,void 0),O=g(e,"muted",7,void 0),D=g(e,"fromTime",7),U=g(e,"canRewindLive",7),z=g(e,"showAds",7),G=g(e,"adsSlotId",7,void 0),le=g(e,"adsParams",7,void 0),j=g(e,"adsAutoplayParam",7,void 0),ie=g(e,"duration",7,void 0),Y=g(e,"logoClickable",7),ge=g(e,"logoHidden",7),ce=g(e,"isMobile",7),ne=g(e,"showNextPrevButtons",7,!1),_e=g(e,"nextButtonActive",7,!1),we=g(e,"prevButtonActive",7,!1),Z=g(e,"endScreenVideoTitle",7,void 0),Oe=g(e,"endScreenVideoThumb",7,void 0),ue=g(e,"isOneVideoPlaylist",7,!1),A=g(e,"supportLink",7),Ke=g(e,"shadowRootContainer",7),Ce=g(e,"outerContainerRef",7),pe=g(e,"fullScreenTarget",7,void 0),se=g(e,"failoverHosts",7,void 0),De=g(e,"showMiniTimer",7,!1),Be=g(e,"saveRate",7),J=g(e,"seekToInteractive",7,cl.noop),X=g(e,"playPrevChapter",7,cl.noop),Se=g(e,"volumeMultiplier",7),Fe=g(e,"showAutoplayNext",7),qe=g(e,"showEndScreen",7,!0),Ye=g(e,"keyboardControls",15,void 0),{subscribers:Te,stores:Le}=u();l_(m());let Ue=Rt(),Nt=m().logoLink,tt=s().ui.debugPanelVisible,Bt=s().ui.playerSize,Gt=s().state.isLive$,ti=s().state.isInteractive&&ud.clientChecker.device.isAndroid,Ft=K(void 0),ye=null,be=K(!1);s().getAdmanWrapper().init({switchFromAdsToVideo:s().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:s().actions.internal.switchFromVideoToAds,setMuted:s().actions.external.setMuted},s().ads,{vsid:s().vsid}),b_(s(),Le),Ne(()=>{var W,Mt;s().ui.isMobile.set(ce()),(Mt=(W=p().callbacks)==null?void 0:W.onDomReady)==null||Mt.call(W)});let ee=(W=!1)=>{N(be,!0),W?s().actions.external.firstStart(z()):s().actions.internal.firstStart(z())},xe=()=>{if(Ue.features.qualityDetailsSubMenuEnabled){let W=H_(s().videoId);if(W)switch(W.type){case"high_quality":s().actions.internal.setHighQualityEnabled(!0,W.appliesTo);break;case"traffic_saving":s().actions.internal.setTrafficSavingEnabled(!0,W.appliesTo);break;case"exact_quality":s().actions.internal.setQuality(W.quality);break}}else{U_(s().videoId),Zf()&&s().actions.internal.setTrafficSavingEnabled(!0);let Mt=Gf(s().videoId);Mt&&s().actions.internal.setQuality(Mt)}};function Pe(W){var jt,ct,Vi;let Mt=d()||W;Mt&&s().initVideo({container:n(Ft),sources:Mt,failoverHosts:se(),subtitles:S(),subtitlesForcedLanguage:C(),volumeMultiplier:Se()});let li=cl.safeStorage.get(Yd)==="true";tt.set(li),D()>0&&s().actions.external.seekTime(D());let dt=ce()?Ue.volumeDefault:(ct=(jt=P())!=null?jt:Uu())!=null?ct:Ue.volumeDefault,It=(Vi=O())!=null?Vi:R_();if(s().actions.external.setVolume(dt),s().actions.external.setMuted(It),s().getAdmanWrapper().setInitialVolume(It?0:dt),xe(),Ue.features.saveRate&&Be()){let Ri=D_();Ri&&!r()&&s().actions.internal.setPlaybackRate(Ri)}if(Fe()){let Ri=F_();Ri&&s().actions.internal.setAutoplayNextEnabled(Ri)}s().ui.isAutoplay.set(E()),E()&&ee(),R()&&Ue.features.preload&&s().actions.internal.preload()}let Pt=W=>{if(window.ResizeObserver){let Mt,li;ye=new ResizeObserver((0,cl.throttleFn)(dt=>{let It=dt[0];if(It.contentBoxSize){let jt=Array.isArray(It.contentBoxSize)?It.contentBoxSize[0]:It.contentBoxSize;Mt=jt.inlineSize,li=jt.blockSize}else It.contentRect&&(Mt=It.contentRect.width,li=It.contentRect.height);Bt.set({width:Mt,height:li})},300)),ye.observe(W)}Bt.set({width:W.clientWidth,height:W.clientHeight})},Ve=()=>{document.hidden&&s().actions.external.stop()};Dt(()=>{var li,dt,It,jt;ti&&document.addEventListener("visibilitychange",Ve),Ue.debugLog&&s().actions.internal.startLogging(),Pt(n(Ft));let W=Te.map(ct=>ct.init({store:s(),microStores:Le,config:p(),interactiveController:b(),uiConfig:m()})),Mt=()=>{ti&&document.removeEventListener("visibilitychange",Ve),ye==null||ye.disconnect(),W.forEach(ct=>ct.unsubscribe()),s().destroy()};return((li=I())==null?void 0:li.status)==="upcoming"?(s().actions.internal.setLiveWaitingStart(!0),Mt):((dt=I())==null?void 0:dt.status)==="waiting"?(s().actions.internal.setLiveWaitingRecover(!0),Mt):(((It=I())==null?void 0:It.status)==="finished"||((jt=I())==null?void 0:jt.status)==="postlive")&&!(d()&&(0,ud.areValidLiveRecordSources)(d()))?(s().actions.internal.setLiveWaitingRecord(!0),Mt):(Pe(),Mt)});function at(){n(be)?s().actions.external.play():ee(!0)}function gt(){s().actions.external.pause()}function $e(W){s().actions.external.setMuted(W)}function et(){s().actions.external.toggleSubtitle()}function ze(W,Mt){s().actions.external.changeSubtitle(W,Mt)}function rt(W){s().actions.external.changeAudioStream(W)}function ii(){var W;(W=s().webApi.slotsApi)!=null&&W.haveSlots()&&s().actions.external.hideControls()}function ai(){var W;(W=s().webApi.slotsApi)!=null&&W.haveSlots()&&s().actions.external.showControls()}function gi(W){ce()||W>=0&&W<=1&&s().actions.external.setVolume(W)}function yi(W){s().actions.internal.seekTime(W,f$.SeekAction.UNKNOWN)}function ro(W){s().actions.external.seekEpisodeStartTime(W)}function $o(){s().actions.external.returnFocusToEpisodes()}function ui(W){s().actions.external.setPlaybackRate(W)}function pt(W){s().actions.external.setAutoQualityLimits(W)}function Ai(){s().actions.external.setQuality("auto")}function Zt(W){s().actions.external.setTrafficSavingEnabled(W)}function Tt(W){s().actions.external.setHighQualityEnabled(W)}let ri=Ep(Ue.view),Jt=p().playerView==="preview",yt=s().state.availableSubtitlesList$;if(Ue.features.initSubtitles){let W=!1;Ne(()=>{var Mt;if(!W&&a().length){W=!0;let li;if(Ue.features.userVideoPrefs&&s().videoId){let It=qu(Ue.userSalt,String(s().videoId));It!=null&&It.subtitleTrackId&&(li=a().find(jt=>jt.value===It.subtitleTrackId))}let dt=(Mt=C())!=null?Mt:em();dt&&(li=a().find(It=>It.language===dt)),s().actions.internal.setSubtitle(li)}})}let je=s().ui.isPreviewTrackHorizontallyAligned;var Si=JT();let so;var on=T(Si);{var yn=W=>{ig(W,{get store(){return s()},get uiConfig(){return Ue},get thumbUrl(){return $()},get interactiveContainer(){return y()},get live(){return I()},get autoplay(){return E()},get canRewindLive(){return U()},get showAds(){return z()},get adsSlotId(){return G()},get adsParams(){return le()},get adsAutoplayParam(){return j()},get duration(){return ie()},get logoClickable(){return Y()},get logoHidden(){return ge()},get logoTargetUrl(){return Nt},get nextButtonActive(){return _e()},get prevButtonActive(){return we()},get endScreenVideoTitle(){return Z()},get endScreenVideoThumb(){return Oe()},get isOneVideoPlaylist(){return ue()},get supportLink(){return A()},get shadowRootContainer(){return Ke()},get outerContainerRef(){return Ce()},get fullScreenTarget(){return pe()},get showMiniTimer(){return De()},get playerStarted(){return n(be)},get seekToInteractive(){return J()},get playPrevChapter(){return X()},firstStart:ee,seekTime:yi,get showEndScreen(){return qe()},get showAutoplayNext(){return Fe()},get showNextPrevButtons(){return ne()},get adsExternalApi(){return e.adsExternalApi},get videoContainer(){return n(Ft)},set videoContainer(Mt){N(Ft,Mt,!0)}})},At=W=>{var Mt=Me(),li=de(Mt);{var dt=jt=>{og(jt,{get thumbUrl(){return $()},get outsideDuration(){return ie()},get canRewindLive(){return U()},get videoContainer(){return n(Ft)},set videoContainer(ct){N(Ft,ct,!0)}})},It=jt=>{eg(jt,{get store(){return s()},get uiConfig(){return Ue},get title(){return f()},get thumbUrl(){return $()},get interactiveContainer(){return y()},get live(){return I()},get autoplay(){return E()},get canRewindLive(){return U()},get showAds(){return z()},get adsSlotId(){return G()},get adsParams(){return le()},get adsAutoplayParam(){return j()},get duration(){return ie()},get logoClickable(){return Y()},get logoHidden(){return ge()},get logoTargetUrl(){return Nt},get nextButtonActive(){return _e()},get prevButtonActive(){return we()},get endScreenVideoTitle(){return Z()},get endScreenVideoThumb(){return Oe()},get isOneVideoPlaylist(){return ue()},get supportLink(){return A()},get shadowRootContainer(){return Ke()},get outerContainerRef(){return Ce()},get fullScreenTarget(){return pe()},get showMiniTimer(){return De()},get playerStarted(){return n(be)},get seekToInteractive(){return J()},get playPrevChapter(){return X()},firstStart:ee,get showEndScreen(){return qe()},get showAutoplayNext(){return Fe()},get showNextPrevButtons(){return ne()},get adsExternalApi(){return e.adsExternalApi},get videoContainer(){return n(Ft)},set videoContainer(ct){N(Ft,ct,!0)},get keyboardControls(){return Ye()},set keyboardControls(ct){Ye(ct)}})};V(li,jt=>{Jt?jt(dt):jt(It,!1)})}_(W,Mt)};V(on,W=>{ce()?W(yn):W(At,!1)})}w(Si),B(W=>{so=re(Si,1,"vk-vp-root s-1",null,so,W),Qe(Si,ri)},[()=>({"root--miui-browser":ud.clientChecker.device.isMobile&&ud.clientChecker.browser.isMiuiBrowser,"visible-outside":Jt,"preview-track-horizontally-alinged":l()})]),_(t,Si);var Ht=H({initVideo:Pe,play:at,pause:gt,setMuted:$e,toggleSubtitle:et,changeSubtitle:ze,changeAudioStream:rt,hideControls:ii,showControls:ai,setVolume:gi,seekTime:yi,seekEpisodeStartTime:ro,returnFocusToEpisodes:$o,setPlaybackRate:ui,setAutoQualityLimits:pt,setAutoQuality:Ai,toggleTrafficSaving:Zt,toggleHighQuality:Tt,get sources(){return d()},set sources(W){d(W)},get store(){return s()},set store(W){s(W)},get microStoresRoot(){return u()},set microStoresRoot(W){u(W)},get videoConfig(){return p()},set videoConfig(W){p(W)},get uiConfig(){return m()},set uiConfig(W){m(W)},get title(){return f()},set title(W){f(W)},get thumbUrl(){return $()},set thumbUrl(W){$(W)},get interactiveContainer(){return y()},set interactiveContainer(W){y(W)},get interactiveController(){return b()},set interactiveController(W){b(W)},get subtitles(){return S()},set subtitles(W){S(W)},get subtitlesForcedLanguage(){return C()},set subtitlesForcedLanguage(W){C(W)},get live(){return I()},set live(W){I(W)},get preload(){return R()},set preload(W){R(W)},get autoplay(){return E()},set autoplay(W){E(W)},get volume(){return P()},set volume(W){P(W)},get muted(){return O()},set muted(W){O(W)},get fromTime(){return D()},set fromTime(W){D(W)},get canRewindLive(){return U()},set canRewindLive(W){U(W)},get showAds(){return z()},set showAds(W){z(W)},get adsSlotId(){return G()},set adsSlotId(W){G(W)},get adsParams(){return le()},set adsParams(W){le(W)},get adsAutoplayParam(){return j()},set adsAutoplayParam(W){j(W)},get duration(){return ie()},set duration(W){ie(W)},get logoClickable(){return Y()},set logoClickable(W){Y(W)},get logoHidden(){return ge()},set logoHidden(W){ge(W)},get isMobile(){return ce()},set isMobile(W){ce(W)},get showNextPrevButtons(){return ne()},set showNextPrevButtons(W){ne(W)},get nextButtonActive(){return _e()},set nextButtonActive(W){_e(W)},get prevButtonActive(){return we()},set prevButtonActive(W){we(W)},get endScreenVideoTitle(){return Z()},set endScreenVideoTitle(W){Z(W)},get endScreenVideoThumb(){return Oe()},set endScreenVideoThumb(W){Oe(W)},get isOneVideoPlaylist(){return ue()},set isOneVideoPlaylist(W){ue(W)},get supportLink(){return A()},set supportLink(W){A(W)},get shadowRootContainer(){return Ke()},set shadowRootContainer(W){Ke(W)},get outerContainerRef(){return Ce()},set outerContainerRef(W){Ce(W)},get fullScreenTarget(){return pe()},set fullScreenTarget(W){pe(W)},get failoverHosts(){return se()},set failoverHosts(W){se(W)},get showMiniTimer(){return De()},set showMiniTimer(W){De(W)},get saveRate(){return Be()},set saveRate(W){Be(W)},get showAutoplayNext(){return Fe()},set showAutoplayNext(W){Fe(W)},get seekToInteractive(){return J()},set seekToInteractive(W){J(W)},get playPrevChapter(){return X()},set playPrevChapter(W){X(W)},get volumeMultiplier(){return Se()},set volumeMultiplier(W){Se(W)},get showEndScreen(){return qe()},set showEndScreen(W){qe(W)},get keyboardControls(){return Ye()},set keyboardControls(W){Ye(W)}});return o(),Ht}var tC=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 rg(t,e){let i=g(e,"isWhite",3,!1),o=v(()=>i()?"#fff":"#909499");Je(t,{width:"57",height:"60",get fill(){return n(o)},testId:"stub-icon",children:(r,a)=>{var l=tC();vi(9),_(r,l)},$$slots:{default:!0}})}var iC=L('<div class="title s-2"> </div>'),oC=L('<div class="playerStub s-2"><!> <!></div>'),nC={hash:"s-2",code:".playerStub.s-2{align-items:center;background-color:#222;background-position:50%;background-size:cover;display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;height:100%;justify-content:center;position:relative;width:100%}.title.s-2{box-sizing:border-box;color:#fff;font-size:15px;left:0;overflow:hidden;padding:18px 20px 10px;position:absolute;text-overflow:ellipsis;top:0;white-space:nowrap;width:100%}"};function sg(t,e){q(t,nC);var i=oC(),o=T(i);{var r=d=>{var s=iC(),u=T(s,!0);w(s),B(()=>fe(u,e.title)),_(d,s)};V(o,d=>{e.title&&d(r)})}var a=k(o,2);{var l=d=>{let s=v(()=>!!e.thumbUrl);rg(d,{get isWhite(){return n(s)}})};V(a,d=>{(!e.title||!e.thumbUrl)&&d(l)})}w(i),B(()=>Qe(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),_(t,i)}var rC=L('<div class="playerError s-0"><!></div>'),sC={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 ag(t){q(t,sC);var e=rC(),i=T(e);nl(i,{}),w(e),_(t,e)}var Fp=require("@vkontakte/videoplayer-shared/es2015"),Hi=require("@vkontakte/videoplayer-shared/es2015"),tu=require("@vkontakte/videoplayer-core/es2015"),hd=require("@vkontakte/videoplayer-statistics/es2015");var Ap=require("@vkontakte/videoplayer-shared/es2015"),Pp=class{constructor(){this.subscription=new Ap.Subscription,this.logger=new Ap.Logger,this.log=this.logger.createComponentLog("MediaSessionApi")}isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:i="",thumbUrl:o=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:i,artwork:[{src:o,sizes:"96x96",type:"image/png"},{src:o,sizes:"128x128",type:"image/png"},{src:o,sizes:"192x192",type:"image/png"},{src:o,sizes:"256x256",type:"image/png"},{src:o,sizes:"384x384",type:"image/png"},{src:o,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){let e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",null],["seekbackward",null],["seekforward",null]];this.setActionHandlers(e)}setActionHandlers(e){var i,o;if(this.isSupported())for(let[r,a]of e)try{(o=(i=navigator.mediaSession).setActionHandler)==null||o.call(i,r,a)}catch(l){throw new Error(`The media session action "${r}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||(this.clearSubscriptions(),this.subscription.add(e.state.positionExact$.subscribe(i=>{var a,l;let o=he(e.state.currentPlaybackRate$),r=he(e.state.duration$);if(!(!isFinite(i)||!isFinite(r)))try{(l=(a=navigator.mediaSession).setPositionState)==null||l.call(a,{position:i,playbackRate:o,duration:r})}catch(d){this.log({message:`MediaSession setPositionState can't call with position: ${i} and duration: ${r}`})}})))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};var fd=require("@vkontakte/videoplayer-shared/es2015");var aC=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),lC=L('<div><div><!></div> <span class="title s-6"> </span></div>'),dC={hash:"s-6",code:".player-pip-dummy.s-6{align-items:center;background-color:#19191a;display:flex;flex-direction:column;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;height:100%;justify-content:center;width:100%}.player-pip-dummy.is-pip-api.s-6{position:relative}.dummy-image.s-6 svg{transform:scale(1.07143)}.dummy-image.desktop.s-6{transform:scale(1.07143) rotate(-90deg) rotateY(180deg)}.title.s-6{color:#fff;font-size:16px;padding:18px 20px 10px;text-align:center}"};function lg(t,e){F(e,!0),q(t,dC);let[i,o]=Re(),r=()=>x(u,"$interfaceLanguage$",i),a=()=>x(p,"$isMobile$",i),l=ve(),d=Rt(),s=!!l.webApi.pictureInPictureApi,u=l.interfaceLanguage$,p=l.ui.isMobile,m=l.ui.t,f=v(()=>r()&&m("pip_dummy_title")),$=Ep(d.view);var y=lC();let b;var S=T(y);let C;var I=T(S);Je(I,{width:"57",height:"56",testId:"pip-dummy-icon",children:(P,O)=>{var D=aC();vi(),_(P,D)},$$slots:{default:!0}}),w(S);var R=k(S,2),E=T(R,!0);w(R),w(y),B((P,O)=>{b=re(y,1,"player-pip-dummy s-6",null,b,P),Qe(y,$),C=re(S,1,"dummy-image s-6",null,C,O),fe(E,n(f))},[()=>({"is-pip-api":s}),()=>({desktop:!a()})]),_(t,y),H(),o()}var cC=Object.defineProperty,uC=(t,e,i)=>e in t?cC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,pd=(t,e,i)=>uC(t,typeof e!="symbol"?e+"":e,i),dg=(t,e,i)=>new Promise((o,r)=>{var a=s=>{try{d(i.next(s))}catch(u){r(u)}},l=s=>{try{d(i.throw(s))}catch(u){r(u)}},d=s=>s.done?o(s.value):Promise.resolve(s.value).then(a,l);d((i=i.apply(t,e)).next())}),pC=460,fC=280,qc=class{constructor({enabled:e=!0}={enabled:!0}){pd(this,"playerDomElement"),pd(this,"playerParentShadowRoot"),pd(this,"playerDummyElement"),pd(this,"svelteContext"),pd(this,"pipWindow"),pd(this,"info",{isActive$:new fd.ValueSubject(!1),isEnabled$:new fd.ValueSubject(!1),type:1}),this.info.isEnabled$=new fd.ValueSubject(e)}isSupported(){let{isEmbed:e}=(0,fd.detectEmbed)();return"documentPictureInPicture"in window&&!e}isActive(){return this.info.isActive$.getValue()}setPlayerDomElement(e,i){this.playerDomElement=e,this.playerParentShadowRoot=i}setContext(e){this.svelteContext=e}request(){return dg(this,null,function*(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=yield documentPictureInPicture.requestWindow({width:pC,height:fC,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let o=[...this.playerParentShadowRoot.styleSheets].map(s=>[...s.cssRules].map(u=>u.cssText).join(" ")).filter(Boolean).join(`
63
- `),r=document.createElement("style");r.textContent=o;let a=this.createStretchedContainer(),l=a.attachShadow({mode:"open"});l.append(r),l.append(this.playerDomElement);let d={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=Xr(lg,d),(e=this.pipWindow)==null||e.document.body.append(a),this.info.isActive$.next(!0),(i=this.pipWindow)==null||i.addEventListener("unload",s=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(Ma(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1),this.pipWindow=void 0)})})}exit(){return dg(this,null,function*(){return new Promise(e=>{var i;this.pipWindow&&((i=documentPictureInPicture.window)==null||i.close()),e()})})}dispose(){return dg(this,null,function*(){yield this.exit()})}setEnabled(e){this.info.isEnabled$.next(e)}createStretchedContainer(){let e=document.createElement("div");return e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",e.style.height="100%",e}};function m$(t){return t instanceof qc}var kp=class{static getLatestSupportedVersion(e){let i=new Ua(e),o=new qc(e);if(o.isSupported())return o;if(i.isSupported())return i}};function Qc(t,e){var r,a;let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let l of i)o[l]=(a=(r=e[l])!=null?r:t[l])!=null?a:void 0;return o}var v$="Inner error. Unexpectedly root annotation container null reference exception",g$="Annotation with such name already exists",h$="Annotation with such name does not exist";var md=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var vd=require("@vkontakte/videoplayer-shared/es2015"),mC="1",vC=100,Lp=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new vd.Subscription}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=(0,vd.throttleFn)(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},vC);this.subscriptions.add((0,vd.observeElementSize)(this.rootAnnotationsContainer).subscribe(({width:o,height:r})=>{this.playerSize={width:o,height:r},i()})),this.mutationObserver=new MutationObserver(i),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,i){var o;if(!this.rootAnnotationsContainer)throw new md(v$);if(this.annotations.has(e))throw new md(g$);i.style.zIndex=(o=i.style.zIndex)!=null?o:mC,i.style.position="absolute",this.rootAnnotationsContainer.append(i),this.annotations.set(e,i)}get(e){let i=this.annotations.get(e);if(!i)throw new md(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 ul=require("@vkontakte/videoplayer-shared/es2015"),$n=class{init({store:e,microStores:i,interactiveController:o,config:r}){return(0,ul.assertNonNullable)(e),(0,ul.assertNonNullable)(i),(0,ul.assertNonNullable)(r),r.interactiveData&&(0,ul.assertNonNullable)(o),this.subscription=new ul.Subscription,this.subscription}};var Gc=class extends $n{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$=Qt(Ae({},ae(null)),{toggle:()=>this.state$.update(i=>!i)})}init(i){let o=super.init(i),{isInteractiveExpectation$:r}=i.store.state;return o.add(r.subscribe(a=>{this.state$.set(a?!0:null)})),o}};var Yc=class extends $n{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$=Qt(Ae({},ae(null)),{toggle:()=>this.state$.update(i=>!i)})}init(i){let o=super.init(i),{microStores:r,store:a}=i,{fakeIsPlaying$:l}=r,{isInteractiveExpectation$:d,isPlaying$:s}=a.state,{controlsVisible:u,isMobile:p}=a.ui,m=he(p),f=()=>m&&he(u);return o.add(u.subscribe($=>{if(!m)return;let y=he(l);he(s)?this.state$.set($):y!==null&&this.state$.set(!y||$)})),o.add(s.subscribe($=>{this.state$.set(!$||f())})),o.add(l.subscribe($=>{if($===null)return;let y=he(d);if(f()){this.state$.set(!0);return}y&&this.state$.set(!$)})),o}};var jc=class extends $n{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=ae("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:r}=i;return o.add(r.state.interactiveEpisodes$.subscribe(a=>{a.length&&(a.every(l=>l.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};var _$=require("@vkontakte/videoplayer-shared/es2015");var cg=ae(!1),Mp=null,Xc=class extends $n{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$=Qt(Ae({},cg),{set:(i,o=!1)=>{i!==he(cg)&&(this.clearTimeout(),cg.set(i),!i&&Mp&&(Mp=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()})}init(i){let o=super.init(i),{store:r,config:a}=i,{isInteractiveTime$:l,isPlaying$:d}=r.state,s=r.ui.controlsVisible,{interactiveTimeIndicator:u}=r.ui.controls;o.add(s.subscribe(m=>{he(l)&&m&&this.state$.set(!1)}));let p=(a==null?void 0:a.interactiveData)||{tooltipHelpHintActive:!1};return o.add((0,_$.combine)({isPlaying$:d,isInteractiveTime$:l,interactiveTimeIndicator:u}).subscribe(({isPlaying$:m,isInteractiveTime$:f,interactiveTimeIndicator:$})=>{var y,b;if(!(!m||!($!=null&&$.isDisplayed))){if(!f)return this.state$.set(!1);p.tooltipHelpHintActive&&Mp===null&&(Mp=!0,p.tooltipHelpHintActive=!1,this.state$.set(!0),(b=(y=r.callbacks)==null?void 0:y.onInteractiveTimeIndicatorHintDeactivated)==null||b.call(y))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};var Vp=require("@vkontakte/videoplayer-shared/es2015");var Zc=class extends $n{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$=Qt(Ae({},ae(null)),{toggle:Vp.noop});this.checkIfShouldHide=i=>Vs(i,"s")}init(i){let o=super.init(i),{store:r,interactiveController:a}=i,l=r.ui.currentGridType$,d=r.getLogger().createComponentLog("GraphIsOpened microStore");return this.state$.toggle=()=>_t(this,null,function*(){if(this.checkIfShouldHide(he(l)))return;let s=he(this.state$),{isEnded$:u,playbackState$:p}=r.state,{disabledControls$:m}=r.ui.controls,f=he(u),$=he(p);if(s)try{yield a==null?void 0:a.toggleGraphView(!1),this.state$.set(!1),m.remove(Hf),!f&&this.graphMadePause&&r.actions.internal.play()}catch(y){d({message:"Cant hide graph"})}else{this.graphMadePause=$==="playing";try{yield a==null?void 0:a.toggleGraphView(!0),this.state$.set(!0),m.add(Hf),!f&&this.graphMadePause&&r.actions.internal.pause()}catch(y){d({message:"Cant show graph"})}}}),o.add((0,Vp.combine)({graphIsOpened:this.state$,currentGridType:l}).subscribe(p=>_t(this,[p],function*({graphIsOpened:s,currentGridType:u}){if(this.checkIfShouldHide(u)&&s)try{yield a==null?void 0:a.toggleGraphView(!1),this.state$.set(!1)}catch(f){d({message:"Cant hide graph"})}}))),o}};var ug=require("@vkontakte/videoplayer-shared/es2015"),Jc=class extends $n{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:ae(!1),isEnabled$:ae(!1),type$:ae(void 0)}}init(i){let o=super.init(i),{store:r}=i,{info:{isActive$:a,isEnabled$:l,type:d}}=r.webApi.pictureInPictureApi||{info:{isActive$:new ug.ValueSubject(!1),isEnabled$:new ug.ValueSubject(!1)}};return o.add(a.subscribe(s=>{this.state$.isActive$.set(s)})),o.add(l.subscribe(s=>{this.state$.isEnabled$.set(s)})),this.state$.type$.set(d),o}};var Np=require("@vkontakte/videoplayer-shared/es2015");var Rp=require("@vkontakte/videoplayer-shared/es2015");var b$=({maxShowCount:t,timeout:e})=>{let i=[t!==0?gC({maxCount:t}):void 0,e!==0?hC({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(r=>r.notificationShowed(o)),canShowNotification:o=>i.every(r=>r.canShowNotification(o))}},gC=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,r;e[i]=((o=e[i])!=null?o:0)+1,Rp.safeStorage.set("videoplayer_notifications_manager_count",JSON.stringify((r=e[i])!=null?r:0))},canShowNotification:i=>{var o;return((o=e[i])!=null?o:0)<t}}},hC=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(Rp.safeStorage.get(e)||"{}")}catch(a){return{}}},o=a=>Rp.safeStorage.set(e,JSON.stringify(a)),r=a=>{let l=i();delete l[a],o(l)};return{notificationShowed:a=>{o(Qt(Ae({},i()),{[a]:{timeout:t,launchTime:Date.now()}}))},canShowNotification:a=>{let l=i()[a];if(l){let d=Date.now()-l.launchTime>t;return d&&r(a),d}else return!0}}};var eu=class extends $n{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:ae({}),showNotification:i=>{this.state$.notificationsToShow$.update(o=>(o[i]=!0,o)),this.notificationManager.notificationShowed(i)},closeNotification:i=>{this.state$.notificationsToShow$.update(o=>(delete o[i],o))}}}init(i){let o=super.init(i),{store:r,uiConfig:{features:{maxCountShowSlowVideoNotification:a,timeoutShowSlowVideoNotification:l,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:s}}}=i;this.notificationManager=b$({maxShowCount:a,timeout:l});let u=r.getPlayer();return o.add(u.events.severeStallOccured$.pipe((0,Np.filterChanged)(),(0,Np.filter)(p=>p)).subscribe(()=>{d&&!u.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(s&&r.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var $$=()=>[Gc,Yc,jc,Xc,Zc,Jc,eu].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:Qt(Ae({},e),{[o.stateName]:o.state$})}},{subscribers:[],stores:{}});var gd=require("@vkontakte/videoplayer-shared/es2015");var Op=class{constructor(e){this.shadowRoot=e;this.lastFocusedNode=null;this.init=()=>{this.shadowRoot.addEventListener("focusin",this.handleFocusChange)};this.handleFocusChange=()=>{this.lastFocusedNode=this.shadowRoot.activeElement};this.restoreFocus=()=>{var e;(e=this.lastFocusedNode)==null||e.focus()};this.init()}destroy(){this.shadowRoot.removeEventListener("focusin",this.handleFocusChange)}};var _C=L('<div class="root s-3"><!></div>'),bC={hash:"s-3",code:".root.s-3{align-items:center;display:flex;inset:0;justify-content:center;pointer-events:none;position:absolute;z-index:1}"};function pg(t,e){F(e,!0),q(t,bC);let i=null,o=K(null);Ne(()=>(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=de(a);{var d=s=>{var u=Me(),p=de(u);Es(p,()=>n(o),m=>{var f=_C(),$=T(f);let y=v(()=>n(o)==="prev");Kc($,{get duration(){return e.animationDuration},get Icon(){return ua},get reversed(){return n(y)}}),w(f),_(m,f)}),_(s,u)};V(l,s=>{e.playbackStatusShow&&n(o)&&s(d)})}return _(t,a),H({startVideoChangedAnimation:r})}var $C=Object.defineProperty,yC=Object.defineProperties,xC=Object.getOwnPropertyDescriptors,y$=Object.getOwnPropertySymbols,wC=Object.prototype.hasOwnProperty,SC=Object.prototype.propertyIsEnumerable,mg=(t,e,i)=>e in t?$C(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Fs=(t,e)=>{for(var i in e||(e={}))wC.call(e,i)&&mg(t,i,e[i]);if(y$)for(var i of y$(e))SC.call(e,i)&&mg(t,i,e[i]);return t},TC=(t,e)=>yC(t,xC(e)),Xt=(t,e,i)=>mg(t,typeof e!="symbol"?e+"":e,i),Dp=(t,e,i)=>new Promise((o,r)=>{var a=s=>{try{d(i.next(s))}catch(u){r(u)}},l=s=>{try{d(i.throw(s))}catch(u){r(u)}},d=s=>s.done?o(s.value):Promise.resolve(s.value).then(a,l);d((i=i.apply(t,e)).next())}),CC={preload:!0,autoplay:!1,repeat:!1,loop:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:Hi.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:(0,tu.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},Xn=K(void 0),fg=di({animationDuration:0,playbackStatusShow:!1}),Bp=class extends HTMLElement{constructor(){super(),Xt(this,"svelteStubComponent"),Xt(this,"svelteRootComponent"),Xt(this,"sveltePersistentLayerComponent"),Xt(this,"svelteErrorComponent"),Xt(this,"store"),Xt(this,"microStoresRoot"),Xt(this,"statistics"),Xt(this,"sentry"),Xt(this,"_shadowRoot"),Xt(this,"playerContainer"),Xt(this,"rootContainer"),Xt(this,"shadowRootContainer"),Xt(this,"playerId"),Xt(this,"uiConfig"),Xt(this,"coreConfig"),Xt(this,"statisticsConfig"),Xt(this,"interactiveController"),Xt(this,"interactiveContainer"),Xt(this,"graphMadePause"),Xt(this,"currentPlayingVideoIndex",0),Xt(this,"needToRepeatPlaylist",!1),Xt(this,"videoConfig"),Xt(this,"pictureInPictureApi"),Xt(this,"mediaSessionApi"),Xt(this,"unsubscribePlayerPhaseSubscription"),Xt(this,"logger"),Xt(this,"log"),Xt(this,"subscription"),Xt(this,"interactiveSubscription"),Xt(this,"annotationsApi"),Xt(this,"slotsApi"),Xt(this,"focusManager"),Xt(this,"prevIsid"),Xt(this,"isInited",!1),Xt(this,"postponedInitParams",null),Xt(this,"internalsExposure",null),Xt(this,"shadowDOMCallbacksDisabled",!1),Xt(this,"fatalError$",new Fp.ValueSubject(null)),Xt(this,"createOneStat",(e,i={})=>{var o,r,a,l;if(!this.videoConfig)return;let{albumId:d,statPlace:s,statUserSalt:u,statTrackCode:p,statVKAppId:m,refreshStatAuthToken:f,autoplay:$,isMobile:y,isTouch:b,refDomain:S,deviceId:C,interactiveData:I}=Qc(this.videoConfig,i),R=(o=I==null?void 0:I.projectInfo)==null?void 0:o.pid,E=(a=(r=this.interactiveController)==null?void 0:r.state.isReplay$.getValue())!=null?a:!1;E&&(this.prevIsid=void 0);let{unitedVideoId:P,isClip:O=!1}=e;if(this.uiConfig.features.statistics&&P)try{return new hd.OneStat(Fs({movieId:P,albumId:d,place:s,trackCode:p,vkAppId:m,autoplay:(l=$&&!this.interactiveController)!=null?l:!1,mobile:b!=null?b:y,clip:O,refDomain:S,deviceId:C,isPreviewPlayerView:this.videoConfig.playerView==="preview"},R&&(!this.isInited||E)&&{projectId:Number(R)}),Fs({refreshAuthToken:f,userSalt:u,config:this.statisticsConfig},this.interactiveController&&{useIsid:!0,isid:this.prevIsid}))}catch(U){console.error(U),this.log({message:U.message})}}),gd.devNull.create("ui"),this.logger=new Hi.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new Hi.Subscription,this.interactiveSubscription=new Hi.Subscription,this.graphMadePause=!1,this.fatalError$.subscribe(e=>{this.unmountComponent(this.svelteErrorComponent),e&&(this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.svelteErrorComponent=Xr(ag,{target:this.playerContainer}))})}connectedCallback(){var e,i;if(this.rootContainer)return;this.initPlayerRootContainers();let o=(e=this.getAttribute("stub-title"))!=null?e:void 0,r=(i=this.getAttribute("stub-thumb-url"))!=null?i:void 0,a=di({title:o,thumbUrl:r}),l={target:this.playerContainer,props:a};this.svelteStubComponent=Xr(sg,l),this.sveltePersistentLayerComponent=Xr(pg,{target:this.playerContainer,props:fg}),this.postponedInitParams&&(this.initPlayer(...this.postponedInitParams),this.postponedInitParams=null)}updatePersistentLayerProps(){if(!this.uiConfig)return;let{playbackStatusNextVideoAnimationDuration:e,features:{playbackStatusShow:i,playbackStatusNextVideoShow:o}}=this.uiConfig;fg.animationDuration=e,fg.playbackStatusShow=i&&o}disconnectedCallback(){var e,i,o,r,a,l,d;this.shadowDOMCallbacksDisabled||((e=this.annotationsApi)==null||e.destroy(),(i=this.slotsApi)==null||i.destroy(),(o=this.focusManager)==null||o.destroy(),(r=this.mediaSessionApi)==null||r.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteErrorComponent),this.unmountComponent(this.sveltePersistentLayerComponent),this.subscription.unsubscribe(),(a=this.unsubscribePlayerPhaseSubscription)==null||a.call(this),(l=this.interactiveController)==null||l.destroy(),this.interactiveSubscription.unsubscribe(),(d=this.internalsExposure)==null||d.destroy(),gd.devNull.destroy("ui"))}initPlayerRootContainers(){this.rootContainer=document.createElement("div"),this.rootContainer.style.position="relative",this.rootContainer.className="root-container",this.rootContainer.style.width="100%",this.rootContainer.style.height="100%",this.rootContainer.style.minHeight="206px",this.shadowRootContainer=document.createElement("div"),this.shadowRootContainer.style.position="absolute",this.shadowRootContainer.className="shadow-root-container",this.shadowRootContainer.style.width="100%",this.shadowRootContainer.style.height="100%",this._shadowRoot=this.shadowRootContainer.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(this.shadowRootContainer),this.append(this.rootContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1&&this.videoConfig.showNextPrevButtons:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(e){var i;let o=(i=this.store)==null?void 0:i.ui.controls.disabledControls$;return(o==null?void 0:o.includes(e))||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let e=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:e.title,nextVideoThumb:e.thumbUrl}}createThinOneStat(e,i={}){if(!this.videoConfig)return;let{deviceId:o,preload:r,refreshStatAuthToken:a}=Qc(this.videoConfig,i),{unitedVideoId:l}=e;if(this.uiConfig.features.thinStatistics&&l)return new hd.ThinOneStat.ThinOneStat({deviceId:o,movieId:l,preload:r,isPreviewPlayerView:this.videoConfig.playerView==="preview"},{config:this.statisticsConfig,refreshAuthToken:a})}createPlayer(e,i={},o){var r,a,l,d,s,u,p,m,f,$;if(!this.videoConfig)return;let{albumId:y,statPlace:b,statAuthToken:S,preload:C,autoplay:I,volume:R,muted:E,fromTime:P,canRewindLive:O,supportLink:D,showAds:U,adsSlotId:z,adsParams:G={},adsAutoplayParam:le,interfaceLanguage:j,isCyrillicRelatedInterface:ie,logoClickable:Y,logoHidden:ge,isMobile:ce,isTouch:ne,isAudioDisabled:_e,isLiveCatchUpMode:we,fullScreenTarget:Z,failoverHosts:Oe,canDownload:ue,callbacks:A,interactiveData:Ke,showThumbTimer:Ce,additionalButtons:pe=[],additionalSettingsMenuItems:se=[],additionalContextMenuItems:De=[],repeat:Be,loop:J,saveRate:X,volumeMultiplier:Se,showEndScreen:Fe,showAutoplayNext:qe,mediascopePixels:Ye}=Qc(this.videoConfig,i),{sources:Te,title:Le,thumbUrl:Ue,unitedVideoId:Nt,isClip:tt=!1,duration:Bt,adsParams:Gt={},videoEpisodes:Ct,previewThumbsData:ti,subtitles:Ft,subtitlesForcedLanguage:ye,live:be,adsExternalApi:ee}=e;if(!Te&&!be){let ui=new Error("empty sources and live");this.fatalError$.next(ui),(r=A.onCrashed)==null||r.call(A,ui.message);return}let xe=Fs(Fs({},G),Gt),Pe=this.getNextVideoInfo(),Pt={sources:Te,title:Le,thumbUrl:Ue,subtitles:Ft,subtitlesForcedLanguage:ye,unitedVideoId:Nt,isClip:tt,live:be,albumId:y,statPlace:b,autoplay:I,muted:E,volume:R,fromTime:P,canRewindLive:O,showAds:U,adsSlotId:z,adsParams:xe,adsAutoplayParam:le,duration:Bt,logoClickable:Y,logoHidden:ge,isTouch:ne!=null?ne:ce,repeat:Be,loop:J,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Pe.nextVideoTitle,endScreenVideoThumb:Pe.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Ve={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi};this.log({message:`create player, props: ${JSON.stringify(Pt)}`});let at=(a=this.interactiveController)==null?void 0:a.state.statistics$.getValue(),gt=(at==null?void 0:at.oneStat)||this.createOneStat(e,i),$e=this.createThinOneStat(e,i),et;Ye&&(et=new hd.MediascopePixel({pixels:Ye})),(gt||$e)&&(this.statistics=new vp(gt,$e,et,at==null?void 0:at.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Ha(this.uiConfig.sentry,{version:Da,env:Bu},{movieId:Nt,albumId:y,place:b,autoplay:(l=I&&!this.interactiveController)!=null?l:!1,mobile:ne!=null?ne:ce,clip:tt}),this.interactiveController&&((u=this.prevIsid)!=null||(this.prevIsid=(s=(d=this.statistics)==null?void 0:d.oneStat)==null?void 0:s.isid$.getValue())),this.sentry=Fs(Fs({},this.sentry),Ha.getInstance());let rt=!!Ke,ii=[],ai="tooltip_interactive_go_back_disabled_first";if(rt&&this.interactiveController){let ui=this.interactiveController.state.isInitialChapter$.getValue(),pt=this.interactiveController.getHistoryState();ui&&ii.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||ii.push("SEEK_TO_INTERACTIVE_BUTTON"),pt.hasPrevChapter$.getValue()||(ii.push("PLAY_PREV_CHAPTER_BUTTON"),ui||(pt.isGoBackLimited$.getValue()?ai="tooltip_interactive_go_back_disabled_limit":ai="tooltip_interactive_go_back_disabled"))}let gi=()=>{var ui;this.isInited=!1,this.prevIsid=void 0;let pt=(o==null?void 0:o.info.isEnded$.getValue())&&((ui=this.interactiveController)==null?void 0:ui.state.isEndChapter$.getValue());A.onReplayInteractiveVideo&&!pt?A.onReplayInteractiveVideo():this.replayInteractiveVideo()},yi=Be&&this.videoConfig.videos.length===1;this.store=kb({player:o,interfaceLanguage:j,isCyrillicRelatedInterface:ie,videoId:Nt,isClip:tt,isLiveCatchUpMode:we,isAudioDisabled:_e,statAuthToken:S,callbacks:A,webApi:Ve,videoEpisodes:Ct,previewThumbsData:ti,canDownload:ue,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:ii,isInteractive:rt,saveRate:X,interactiveRanges$:(p=this.interactiveController)==null?void 0:p.state.interactiveRanges$,isInteractiveTime$:(m=this.interactiveController)==null?void 0:m.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:gi,playPrevChapterDisabledTooltip:ai,hasInteractiveBranches:!!(($=(f=this.interactiveController)==null?void 0:f.getChapterBranches())!=null&&$.length),additionalButtons:this.uiConfig.features.additionalButtons?pe:[],additionalSettingsMenuItems:se!=null?se:[],additionalContextMenuItems:De!=null?De:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),onVideoChanged:ui=>{var pt;return(pt=this.sveltePersistentLayerComponent)==null?void 0:pt.startVideoChangedAnimation(ui)},looped:this.uiConfig.features.useLoopSetting?J:yi,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView,playerId:this.playerId});let{stores:ro}=this.microStoresRoot=$$(),$o=()=>{var ui,pt,Ai,Zt,Tt,ri;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(yt=>{var je;return(je=A==null?void 0:A.onCurrentFormatChanged)==null?void 0:je.call(A,yt)})),this.subscription.add(ro.interactiveControlsOpacity$.subscribe(yt=>{var je;yt!==null&&((je=this==null?void 0:this.interactiveController)==null||je.setDisabledControls(yt))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(yt=>{var je;return(je=A==null?void 0:A.onThroughputEstimationChanged)==null?void 0:je.call(A,yt)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(yt=>{var je;return(je=A==null?void 0:A.onTrafficSavingEnabledChanged)==null?void 0:je.call(A,yt)})),this.subscription.add(this.store.state.highQualityEnabled$.subscribe(yt=>{var je;return(je=A==null?void 0:A.onHighQualityEnabledChanged)==null?void 0:je.call(A,yt)})),this.subscription.add(this.store.state.isAutoQualityEnabled$.subscribe(yt=>{var je;return(je=A==null?void 0:A.onAutoQualityEnabledChanged)==null?void 0:je.call(A,!!yt)})),this.subscription.add(new Hi.Observable(yt=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(je=>yt.next(je)))}).pipe((0,Hi.skip)(1)).subscribe(yt=>{var je;return(je=A==null?void 0:A.onCurrentPlaybackRateChanged)==null?void 0:je.call(A,yt)})),this.subscription.add(this.store.state.volume$.subscribe(yt=>{var je;return(je=A==null?void 0:A.onVolumeChange)==null?void 0:je.call(A,yt)})),this.subscription.add(this.store.state.muted$.subscribe(yt=>{var je,Si,so,on;if(yt)(je=A==null?void 0:A.onMute)==null||je.call(A);else{let yn=(so=((Si=this.store)==null?void 0:Si.state.volume$)&&he(this.store.state.volume$))!=null?so:0;(on=A==null?void 0:A.onUnmute)==null||on.call(A,yn)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(yt=>{var je;return(je=A==null?void 0:A.onVideoBitrateChanged)==null?void 0:je.call(A,yt)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(yt=>{var je;let Si=(je=this.store)==null?void 0:je.ui.controls.disabledControls$;Si&&(yt&&!Si.includes(jd)&&Si.add(jd),yt||Si.remove(jd))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(yt=>Dp(this,null,function*(){var je;if(!tu.clientChecker.browser.isSamsungBrowser||!yt||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&(yield this.replayInteractiveChapter((je=this.videoConfig)==null?void 0:je.callbacks.onExternalFullscreenExit))}))),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(yt=>{var je;return(je=A==null?void 0:A.onVSIDChanged)==null?void 0:je.call(A,yt)})),this.initMediaSession(),N(Xn,{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:Te,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:Le,thumbUrl:Ue,subtitles:Ft,subtitlesForcedLanguage:ye,live:be,preload:C,autoplay:I,muted:E,volume:R,fromTime:P,canRewindLive:O,supportLink:D,showAds:U,adsSlotId:z,adsParams:xe,adsAutoplayParam:le,duration:Bt,logoClickable:Y,logoHidden:ge,isMobile:ne!=null?ne:ce,failoverHosts:Oe,fullScreenTarget:Z,saveRate:X,shadowRootContainer:this.shadowRootContainer,showMiniTimer:Ce,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Pe.nextVideoTitle,endScreenVideoThumb:Pe.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:Se,showEndScreen:Fe,showAutoplayNext:qe,adsExternalApi:ee},!0);let Jt={target:this.playerContainer,props:n(Xn)};this.svelteRootComponent=Xr(ng,Jt),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(Ai=(pt=(ui=this.videoConfig)==null?void 0:ui.callbacks)==null?void 0:pt.onInited)==null||Ai.call(pt)),(Zt=this.internalsExposure)==null||Zt.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((ri=(Tt=this.videoConfig)==null?void 0:Tt.callbacks)!=null&&ri.onDevNullLog)?gd.devNull.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):gd.devNull.destroy("ui")};this.coreConfig.asyncResolveClientChecker?tu.clientChecker.isInited$.subscribe(ui=>{ui&&(console.log("UI SDK async start"),$o())}):$o()}addPlayerInfoSubscriptions(){var e,i;let o=this.store,r=(e=this.microStoresRoot)==null?void 0:e.stores;if(!o||!r)return;let a=(i=this.videoConfig)==null?void 0:i.callbacks;a&&this.subscription.add(o.playerPhase.subscribe(d=>{var s;return(s=a.onPlayerPhaseChanged)==null?void 0:s.call(a,d)})).add(o.state.playbackState$.subscribe(d=>{var s;return d&&((s=a.onPlaybackStateChanged)==null?void 0:s.call(a,d))})).add(o.state.isLive$.subscribe(d=>{var s;return(s=a.onIsLiveChanged)==null?void 0:s.call(a,d)})).add(o.state.isActiveLive$.subscribe(d=>{var s;return(s=a.onIsActiveLiveChanged)==null?void 0:s.call(a,d)})).add(o.state.isAudioAvailable$.subscribe(d=>{var s;return(s=a.onIsAudioAvailableChanged)==null?void 0:s.call(a,d)})).add(o.state.currentQuality$.subscribe(d=>{var s;return(s=a.onCurrentQualityChanged)==null?void 0:s.call(a,d)})).add(o.state.availableQualities$.subscribe(d=>{var s;return(s=a.onAvailableQualitiesChanged)==null?void 0:s.call(a,d.map(({value:u})=>u).filter(u=>u!=="auto"))})).add(o.state.availableAudioStreams$.subscribe(d=>{d.length>1&&a.onAudioLanguagesAvailable&&a.onAudioLanguagesAvailable()})).add(r.pictureInPicture$.isActive$.subscribe(d=>{var s,u;return d?(s=a.onPiPEnter)==null?void 0:s.call(a):(u=a.onPiPExit)==null?void 0:u.call(a)}));let l=a==null?void 0:a.uiInfo;l&&this.subscription.add(o.ui.controlsVisible.subscribe(d=>{var s;return(s=l.onControlsVisibleChanged)==null?void 0:s.call(l,d)})).add(o.ui.isMobile.subscribe(d=>{var s;return(s=l.onIsMobileChanged)==null?void 0:s.call(l,d)})).add(o.ui.playerSize.subscribe(d=>{var s;return(s=l.onPlayerSizeChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.prevButton.subscribe(d=>{var s;return(s=l.onPrevButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.playButton.subscribe(d=>{var s;return(s=l.onPlayButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.replayButton.subscribe(d=>{var s;return(s=l.onReplayButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.nextButton.subscribe(d=>{var s;return(s=l.onNextButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.playPrevChapterButton.subscribe(d=>{var s;return(s=l.onPlayPrevChapterChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.seekToInteractiveButton.subscribe(d=>{var s;return(s=l.onSeekToInteractiveButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.interactiveGraphButton.subscribe(d=>{var s;return(s=l.onGraphButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.liveButton.subscribe(d=>{var s;return(s=l.onLiveButtonChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.time.subscribe(d=>{var s;return(s=l.onTimeUpdateChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.episodes.subscribe(d=>{var s;return(s=l.onEpisodesChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.subtitles.subscribe(d=>{var s;return(s=l.onSubtitlesChanged)==null?void 0:s.call(l,d)})).add(o.ui.controlBlocks.topLeft.subscribe(d=>{var s;return(s=l.onTopLeftControlBlockChanged)==null?void 0:s.call(l,d)})).add(o.ui.controlBlocks.topRight.subscribe(d=>{var s;return(s=l.onTopRightControlBlockChanged)==null?void 0:s.call(l,d)})).add(o.ui.controlBlocks.bottomLeft.subscribe(d=>{var s;return(s=l.onBottomLeftControlBlockChanged)==null?void 0:s.call(l,d)})).add(o.ui.controlBlocks.bottomRight.subscribe(d=>{var s;return(s=l.onBottomRightControlBlockChanged)==null?void 0:s.call(l,d)})).add(o.ui.controlBlocks.middle.subscribe(d=>{var s;return(s=l.onMiddleControlBlockChanged)==null?void 0:s.call(l,d)})).add(o.ui.controlBlocks.bottom.subscribe(d=>{var s;return(s=l.onBottomControlBlockChanged)==null?void 0:s.call(l,d)})).add(o.ui.videoTitleInfo.subscribe(d=>{var s;return(s=l.onTitleChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.settings.subscribe(d=>{var s;return(s=l.onSettingsChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.fullscreen.subscribe(d=>{var s;return(s=l.onFullscreenChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.chromecast.subscribe(d=>{var s;return(s=l.onChromecastChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.pip.subscribe(d=>{var s;return(s=l.onPipChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.vkLogo.subscribe(d=>{var s;return(s=l.onVkLogoChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.interactiveTimeIndicator.subscribe(d=>{var s;return(s=l.onInteractiveTimeIndicatorChanged)==null?void 0:s.call(l,d)})).add(o.ui.controls.timeline.subscribe(d=>{var s;return(s=l.onTimelineChanged)==null?void 0:s.call(l,d)}))}playNextVideo(){this.videoConfig&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){this.videoConfig&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}createPlayerWithCurrentVideo(e,i=!0){var o;if(!this.videoConfig)return;let r=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!r){this.log({message:"no next video"});return}this.isInited&&(0,Hi.isNonNullable)(r.unitedVideoId)&&((o=this.store)==null||o.actions.internal.nextMovie(r.unitedVideoId)),this.unmountComponent(this.svelteRootComponent),this.createPlayer(r,{autoplay:i,fromTime:0},e)}playPrevChapter(){var e;(e=this.interactiveController)==null||e.playPrevChapter()}seekToInteractive(){var e;let i=(e=this.interactiveController)==null?void 0:e.getNextInteractiveStartTime();typeof i=="number"&&this.seekTime(i/1e3)}initInteractives(){return Dp(this,null,function*(){var e,i,o,r,a,l;if((e=this.videoConfig)!=null&&e.interactiveData)try{let{Interactives:d}=yield import("@vkontakte/videoplayer-interactive/es2015");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let s=(i=this.store)==null?void 0:i.interfaceLanguage$,u=s?he(s):this.videoConfig.interfaceLanguage,{projectInfo:p,initChapterId:m,historyApi:f,videoLoader:$}=this.videoConfig.interactiveData;this.interactiveController=new d({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:u,graph:this.uiConfig.features.interactiveGraph,projectInfo:p,initChapterId:m,historyApi:f,vkVideoLoader:$,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,interactiveTimeOpenUri:this.uiConfig.features.interactiveTimeOpenUri,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat,isTouch:this.videoConfig.isTouch,animationsFeatureToggles:{areaControlShadow:this.uiConfig.features.interactiveAreaControlShadow,controlsExpectTimeBlinkAnimation:this.uiConfig.features.interactiveControlsExpectTimeBlinkAnimation,controlsTapPlace:this.uiConfig.features.interactiveControlsTapPlace,controlsFillAnimation:this.uiConfig.features.interactiveControlsFillAnimation,controlsHideAnimation:this.uiConfig.features.interactiveControlsHideAnimation},endChapterHistoryFix:this.uiConfig.features.interactiveHistoryEndChapterFix});let{isInteractiveExpectation$:y,isSeekable$:b}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(b.subscribe(C=>{if(!this.isInited)return;let I=this.store;C?I.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):I.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(y.subscribe(C=>{this.store&&this.store.state.isInteractiveExpectation$.set(C)}));let S=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(C=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]=TC(Fs({},C.config),{title:(p==null?void 0:p.title)||C.config.title});let I=S?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(C.player,I),S&&(S=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:C,actionType:I})=>{var R,E,P,O,D,U;if(!this.store||!this.microStoresRoot)return;let z=y.getValue();if(C==="action-choice"&&I==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(Xd)),C==="action-choice-canceled"){let G=he(this.store.state.isPlaying$)||z;if(((P=(R=this.videoConfig)==null?void 0:R.isTouch)!=null?P:(E=this.videoConfig)!=null&&E.isMobile)&&G){this.store.ui.interactiveHideMobileControls.set(!0);return}(U=(O=this.videoConfig)==null?void 0:(D=O.callbacks).onDisabledInteractiveClick)==null||U.call(D)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:C,removeAllOpenURI:I})=>{this.store&&C==="container-fake-removed"&&I&&this.store.ui.controls.disabledControls$.remove(Xd)})),yield this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(r=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&r.onInteractiveHistoryChanged){let C=this.interactiveController.getHistoryState();this.subscription.add(C.history$.subscribe(I=>{var R,E,P;I.length&&((P=(E=(R=this.videoConfig)==null?void 0:R.callbacks)==null?void 0:E.onInteractiveHistoryChanged)==null||P.call(E,I))}))}(l=(a=this.videoConfig)==null?void 0:a.callbacks)!=null&&l.onInteractiveChapterChanged&&this.subscription.add(this.interactiveController.events.chapterChanged$.subscribe(C=>{var I,R,E;(E=(I=this.videoConfig)==null?void 0:(R=I.callbacks).onInteractiveChapterChanged)==null||E.call(R,C.chapter,C.manifestVideo)})),this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var C,I,R,E;(C=this.microStoresRoot)==null||C.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(E=(I=this.videoConfig)==null?void 0:(R=I.callbacks).onInteractiveTimeIndicatorClick)==null||E.call(R)})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(C=>{this.log({message:C.toString()})}))}catch(d){this.log({message:d.message})}})}initPlayer(e,i={}){var o,r,a,l,d,s,u,p,m,f,$,y,b,S,C,I,R,E,P,O,D,U,z,G,le,j,ie,Y;if(!this.isConnected){this.postponedInitParams=[e,i];return}if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData){let ge=new Error("empty videos");this.fatalError$.next(ge),(r=(o=e.callbacks)==null?void 0:o.onCrashed)==null||r.call(o,ge.message);return}else this.fatalError$.next(null);if(this.videoConfig=Qc(CC,(0,Hi.cloneDeepWith)(e,ge=>ge instanceof HTMLElement?ge:void 0)),this.playerId=(0,Hi.getPlayerId)(e.playerId),this.uiConfig=a_((a=i.ui)!=null?a:{}),this.updatePersistentLayerProps(),this.coreConfig=(l=i.core)!=null?l:{configName:[]},this.statisticsConfig=(d=i.statistics)!=null?d:{},this.uiConfig.features.forcePlayerDisplayBlock&&(this.rootContainer&&(this.rootContainer.style.minHeight="unset"),this.style.display="block",this.style.width="100%",this.style.height="100%"),this.videoConfig.playerView==="preview"&&(this.playerContainer.style.contain="none"),this.sentry={config:(s=this.uiConfig.sentry)!=null?s:{}},this.uiConfig.features.exposeInternalsToGlobal&&((u=this.internalsExposure)!=null||(this.internalsExposure=new Hi.InternalsExposure("ui",this.playerId))),gd.devNull.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+((p=this.videoConfig)==null?void 0:p.showAds)],numbers:[(0,Fp.now)()]}),(0,Hi.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(f=(m=this.uiConfig.features.mediaSession)!=null?m:this.videoConfig.isMediaSessionEnabled)!=null?f:!0),(0,Hi.isNonNullable)(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(y=($=this.uiConfig.features.pip)!=null?$:this.videoConfig.isPictureInPictureEnabled)!=null?y:!0,this.uiConfig.features.dpip=(S=(b=this.uiConfig.features.dpip)!=null?b:this.videoConfig.isPictureInPictureEnabled)!=null?S:!0),this.uiConfig.ads.paramsOverride=Fs({preview:(C=this.uiConfig.ads.preview)!=null?C:this.videoConfig.adsPreviewParam},this.uiConfig.ads.paramsOverride),this.videoConfig.isTouch=(R=(I=this.uiConfig.isMobile)!=null?I:this.videoConfig.isTouch)!=null?R:this.videoConfig.isMobile,(E=this.videoConfig).autoplay&&(E.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(P=this.uiConfig.ads.enable)!=null?P:this.videoConfig.showAds,this.videoConfig.adsSlotId=(O=this.uiConfig.ads.slot)!=null?O:this.videoConfig.adsSlotId,this.videoConfig.logoHidden=!((D=this.uiConfig.showLogo)!=null?D:!this.videoConfig.logoHidden),(U=this.videoConfig).canRewindLive&&(U.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(z=this.videoConfig.supportLink)!=null?z:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(G=this.uiConfig.features.endScreen)!=null?G:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(le=this.uiConfig.features.autoplayNext)!=null?le:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(j=this.uiConfig.features.nextPrevButtons)!=null?j:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((ie=this.videoConfig.videos)!=null&&ie[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let ge={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=kp.getLatestSupportedVersion(ge):this.pictureInPictureApi=new Ua(ge)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new Pp:void 0,this.slotsApi=this.uiConfig.features.slots?new Tp:void 0,this.annotationsApi=this.uiConfig.features.annotations?new Lp(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteErrorComponent),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveSubscription.unsubscribe()),this.videoConfig.interactiveData?this.initInteractives():this.createPlayer(this.videoConfig.videos[this.currentPlayingVideoIndex]),m$(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(Y=this.slotsApi)==null||Y.init(this.shadowRootContainer,this.store),this.focusManager=this._shadowRoot?new Op(this._shadowRoot):void 0}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateVideos(e,i){if(!this.videoConfig)return;this.log({message:`update ${i} videos, videos: ${JSON.stringify(e)}`}),i==="prev"?(this.videoConfig.videos.splice(0,this.currentPlayingVideoIndex),this.videoConfig.videos.unshift(...e),this.currentPlayingVideoIndex=e.length):i==="next"&&(this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...e));let o=this.getNextVideoInfo();n(Xn)&&(n(Xn).showNextPrevButtons=this.needToShowNextPrevButtons(),n(Xn).nextButtonActive=this.isNextButtonActive(),n(Xn).prevButtonActive=this.isPrevButtonActive(),n(Xn).endScreenVideoTitle=o.nextVideoTitle,n(Xn).endScreenVideoThumb=o.nextVideoThumb,n(Xn).isOneVideoPlaylist=this.isOneVideoPlaylist())}updatePrevVideos(e){this.updateVideos(e,"prev")}updateNextVideos(e){this.updateVideos(e,"next")}initMediaSession(){var e,i;this.mediaSessionApi&&((e=this.unsubscribePlayerPhaseSubscription)==null||e.call(this),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=(i=this.store)==null?void 0:i.playerPhase.subscribe(o=>{o==="video"?this.setupMediaSessionForVideo():o==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:e,thumbUrl:i}=Fs({},this.videoConfig.videos[this.currentPlayingVideoIndex]),o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",r=>this.seekTime(r.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>{var r,a,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(a=(r=this.videoConfig)==null?void 0:r.callbacks)==null?void 0:a.onNextVideoClick)==null||l.call(a)}catch(d){this.log({message:"onNextVideoClick callback failed to execute"})}else this.playNextVideo()}]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>{var r,a,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(a=(r=this.videoConfig)==null?void 0:r.callbacks)==null?void 0:a.onPrevVideoClick)==null||l.call(a)}catch(d){this.log({message:"onPrevVideoClick callback failed to execute"})}else this.playPrevVideo()}])),this.mediaSessionApi.setMetaData({title:e,thumbUrl:i}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let e="Реклама",i=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:e}),this.mediaSessionApi.updateActionHandlers(i),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}moveTo(e){this.shadowDOMCallbacksDisabled=!0,e.append(this),this.shadowDOMCallbacksDisabled=!1}play(){var e,i,o,r;this.isControlDisabled("PLAY_BUTTON")||(e=this.store)!=null&&e.playerPhase.is("LiveWaitingStart")||(i=this.store)!=null&&i.playerPhase.is("LiveWaitingRecover")||(o=this.store)!=null&&o.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),(r=this.svelteRootComponent)==null||r.play())}pause(){var e;this.log({message:"pause"}),(e=this.svelteRootComponent)==null||e.pause()}stop(){var e;if(!this.videoConfig)return;this.log({message:"stop"});let i=!!this.interactiveController;i&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveContainer=void 0,this.interactiveSubscription.unsubscribe()),this.unmountComponent(this.svelteStubComponent),(e=this.mediaSessionApi)==null||e.destroy();let o=this.videoConfig.videos[0];o&&(this.unmountComponent(this.svelteRootComponent),i?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(o))}setMuted(e){var i;this.log({message:`set muted, muted: ${e}`}),(i=this.svelteRootComponent)==null||i.setMuted(e)}toggleSubtitle(){var e;this.log({message:"toggle subtitle"}),(e=this.svelteRootComponent)==null||e.toggleSubtitle()}changeSubtitle(e,i){var o;this.log({message:"change subtitle"}),(o=this.svelteRootComponent)==null||o.changeSubtitle(e,i)}hideControls(){var e;this.log({message:"hide controls"}),(e=this.svelteRootComponent)==null||e.hideControls()}showControls(){var e;this.log({message:"show controls"}),(e=this.svelteRootComponent)==null||e.showControls()}setPiPEnabled(e){var i,o;(o=(i=this.store)==null?void 0:i.webApi.pictureInPictureApi)==null||o.setEnabled(e)}setVolume(e){var i;this.log({message:`set volume, volume: ${e}`}),(i=this.svelteRootComponent)==null||i.setVolume(e)}setRepeat(e){this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,n(Xn)&&(n(Xn).needToRepeatPlaylist=this.needToRepeatPlaylist,n(Xn).showNextPrevButtons=this.needToShowNextPrevButtons(),n(Xn).nextButtonActive=this.isNextButtonActive(),n(Xn).prevButtonActive=this.isPrevButtonActive())}seekTime(e){var i;this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekTime(e))}seekEpisodeStartTime(e){var i;this.log({message:`seek episode start time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekEpisodeStartTime(e)}returnFocusToEpisodes(){var e;this.log({message:"return focus to episodes button"}),(e=this.svelteRootComponent)==null||e.returnFocusToEpisodes()}setPlaybackRate(e){var i;this.log({message:`set playback rate to: ${e}`}),(i=this.svelteRootComponent)==null||i.setPlaybackRate(e)}setAutoQualityLimits(e){var i,o,r;this.log({message:`set auto quality limitation. Max: ${(i=e.max)!=null?i:"none"}. Min: ${(o=e.min)!=null?o:"none"}`}),(r=this.svelteRootComponent)==null||r.setAutoQualityLimits(e)}setAutoQuality(){var e;(e=this.svelteRootComponent)==null||e.setAutoQuality()}toggleTrafficSaving(e){var i;(i=this.svelteRootComponent)==null||i.toggleTrafficSaving(e)}toggleHighQuality(e){var i;(i=this.svelteRootComponent)==null||i.toggleHighQuality(e)}changeAudioStream(e){var i;(i=this.svelteRootComponent)==null||i.changeAudioStream(e)}addLanguage(e){var i;(i=this.store)==null||i.actions.internal.addLanguage(e)}setLanguage(e){return Dp(this,null,function*(){var i;yield(i=this.store)==null?void 0:i.actions.internal.setLanguage(e)})}setLiveStart(e){var i,o;let r=this.isLiveTailPlaying();this.log({message:`live started: liveTailPlaying = ${r}`}),r||((i=this.store)==null||i.actions.internal.setLiveWaitingRecover(!1),(o=this.store)==null||o.actions.internal.setLiveWaitingStart(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!0}))}setLiveWaitingStart(){var e;this.log({message:"live waiting"}),(e=this.store)==null||e.actions.internal.setLiveWaitingStart(!0)}isLiveTailPlaying(){var e;let i=(e=this.store)==null?void 0:e.getPlayer();if(!i)return!1;let{info:o}=i;return o.canPlayLiveTailBuffer$.getValue()&&!o.isStalled$.getValue()&&!o.atLiveEdge$.getValue()}setLiveWaitingRecover(e=!1){var i;let o=this.isLiveTailPlaying(),r=e||!o;this.log({message:`live waiting recover: forceImmediate = ${e}, liveTailPlaying = ${o}`});let a=()=>{var l;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!0)};r&&a(),(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var l;r||a(),(l=this.store)==null||l.destroy()})}setLiveWaitingRecord(){var e;let i=this.isLiveTailPlaying(),o=!i;this.log({message:`live waiting record: liveTailPlaying = ${i}`});let r=()=>{var a;(a=this.store)==null||a.actions.internal.setLiveWaitingRecord(!0)};o&&r(),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var a;o||r(),(a=this.store)==null||a.destroy()})}setLiveEnd(e){var i;let o=this.isLiveTailPlaying(),r=!o;this.log({message:`live ended: liveTailPlaying = ${o}`});let a=()=>{var l,d;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!1),(d=this.store)==null||d.actions.internal.setLiveWaitingRecord(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!1})};if(r){a();return}(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=a)}setLiveLowLatency(e){var i;this.log({message:"live switch to low latency "+e}),(i=this.store)==null||i.actions.external.setLiveLowLatency(e)}setLooped(e){var i;(i=this.store)==null||i.actions.internal.setLooped(e)}getDebugData(){var e,i;return(i=(e=this.store)==null?void 0:e.actions.internal.getDebugTextData())!=null?i:""}getDeviceId(){var e,i,o;return(o=(i=(e=this.statistics)==null?void 0:e.oneStat)==null?void 0:i.getDeviceId())!=null?o:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}replayInteractiveChapter(e){return Dp(this,null,function*(){var i,o;if(this.interactiveController&&((i=this.store)!=null&&i.state.positionExact$)){let r=he(this.store.state.positionExact$),l=he(this.store.state.interactiveEpisodes$).find(s=>!s.completed);this.interactiveController.events.playerChanged$.pipe((0,Hi.once)()).subscribe(()=>{l&&r>=l.time?this.seekTime(l.time):this.seekTime(r),e==null||e()});let d=this.interactiveController.getCurrentChapter();yield this.interactiveController.setChapter({chapterId:(o=d==null?void 0:d.chapter)==null?void 0:o.id,pushToHistory:!1})}})}showInteractiveIndicatorTooltip(e,i=!1){var o;(o=this.microStoresRoot)==null||o.stores.showInteractiveTimeIndicatorTooltip$.set(e,i)}switchToActiveLive(){var e;(e=this.store)==null||e.actions.internal.switchToActiveLive()}updateAdditionalSettingsItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalSettingsItem(e,i)}addAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalSettingsItem(e)}removeAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalSettingsItem(e)}updateAdditionalContextItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalContextItem(e,i)}addAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalContextItem(e)}removeAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalContextItem(e)}updateAdditionalButton(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalButton(e,i)}addAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.addAdditionalButton(e)}removeAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalButton(e)}updateStatContext(e){this.statistics&&(this.statistics.oneStat&&this.statistics.oneStat.updateContext(e),this.statistics.thinOneStat&&this.statistics.thinOneStat.updateContext(e))}handleTimerNextVideo(e){var i;(i=this.store)==null||i.actions.internal.setTimerNextVideoRunning(e)}togglePictureInPicture(){var e;(e=this.store)==null||e.actions.internal.togglePictureInPicture()}focus(){var e,i,o;(o=(i=(e=this.svelteRootComponent)==null?void 0:e.keyboardControls)==null?void 0:i.focus)==null||o.call(i)}restoreFocus(){var e;(e=this.focusManager)==null||e.restoreFocus()}handleExternalKeyboardEvent(e){var i,o;return!!((o=(i=this.svelteRootComponent)==null?void 0:i.keyboardControls)!=null&&o.handleExternalKeyboardEvent(e))}setAutoplayNext(e){var i;(i=this.store)==null||i.actions.internal.setAutoplayNextEnabled(e)}getTotalViewTime(){var e,i;return(i=(e=this.statistics)==null?void 0:e.thinOneStat)==null?void 0:i.getTotalViewTime()}unmountComponent(e){e&&Ma(e)}};var _d=require("@vkontakte/videoplayer-shared/es2015"),Hp=require("@vkontakte/videoplayer-core/es2015"),IC=()=>{window.customElements.define("vk-video-player",Bp)};
140
+ Audio: ${($t=n(a).audioCodec||"")!=null?$t:""} ${n(a).audioLanguage?`(${n(a).audioLanguage})`:""}`)}),$(Ee,Pe)};R(ce,Ee=>{(n(a).videoCodec||n(a).audioCodec)&&Ee(Le)})}var we=P(ce,2);{var te=Ee=>{var Pe=c2(),ee=P(_(Pe),2),Te=_(ee,!0);g(ee),g(Pe),D(()=>me(Te,n(a).viewport)),$(Ee,Pe)};R(we,Ee=>{n(a).viewport&&Ee(te)})}var De=P(we,2);{var fe=Ee=>{var Pe=u2(),ee=P(_(Pe),2),Te=_(ee,!0);g(ee),g(Pe),D(()=>me(Te,n(a).videoSize)),$(Ee,Pe)};R(De,Ee=>{n(a).videoSize&&Ee(fe)})}var k=P(De,2);{var Qe=Ee=>{var Pe=p2(),ee=P(_(Pe),2),Te=_(ee,!0);g(ee),g(Pe),D(()=>me(Te,n(a).cdn)),$(Ee,Pe)};R(k,Ee=>{n(a).cdn&&Ee(Qe)})}var Ve=P(k,2);{var q=Ee=>{var Pe=f2(),ee=P(_(Pe),2),Te=_(ee);g(ee),g(Pe),D(()=>{var ae;return me(Te,`${(ae=n(a).volume)!=null?ae:""} %`)}),$(Ee,Pe)};R(Ve,Ee=>{n(a).volume&&Ee(q)})}var oe=P(Ve,2);{var Fe=Ee=>{var Pe=v2(),ee=P(_(Pe),2),Te=_(ee);g(ee),g(Pe),D(ae=>me(Te,`${ae!=null?ae:""} s`),[()=>n(a).position.toFixed(2)]),$(Ee,Pe)};R(oe,Ee=>{n(a).position&&Ee(Fe)})}var Ge=P(oe,2);{var _e=Ee=>{var Pe=m2(),ee=P(_(Pe),2),Te=_(ee);g(ee),g(Pe),D(ae=>me(Te,`${ae!=null?ae:""} s`),[()=>n(a).buffer.toFixed(2)]),$(Ee,Pe)};R(Ge,Ee=>{n(a).buffer&&Ee(_e)})}var ie=P(Ge,2);{var Se=Ee=>{var Pe=g2(),ee=P(_(Pe),2),Te=_(ee);g(ee),g(Pe),D(ae=>me(Te,`${ae!=null?ae:""} s`),[()=>n(a).liveLatency.toFixed(2)]),$(Ee,Pe)};R(ie,Ee=>{n(a).liveLatency&&Ee(Se)})}var Ce=P(ie,2);{var Be=Ee=>{var Pe=h2(),ee=P(_(Pe),2),Te=_(ee,!0);g(ee),g(Pe),D(ae=>me(Te,ae),[()=>[{value:n(a).currentVideoSegmentLength,title:"Video:"},{value:n(a).currentAudioSegmentLength,title:"Audio:"}].filter(({value:ae})=>ae).map(({value:ae,title:$t})=>`${$t} ${((ae!=null?ae:0)/1e3).toFixed(2)} s`).join(" & ")]),$(Ee,Pe)};R(Ce,Ee=>{(n(a).currentVideoSegmentLength||n(a).currentAudioSegmentLength)&&Ee(Be)})}var Ye=P(Ce,2),je=P(_(Ye),2),Ue=_(je);g(je),g(Ye);var Je=P(Ye,2);{var Ft=Ee=>{var Pe=_2(),ee=P(_(Pe),2);oc(ee,{get values(){return n(T)}});var Te=P(ee,2),ae=_(Te);g(Te),g(Pe),D($t=>me(ae,`${$t!=null?$t:""} Kbps`),[()=>n(a).speed.toFixed(2)]),$(Ee,Pe)};R(Je,Ee=>{n(a).speed&&Ee(Ft)})}var ot=P(Je,2);{var zt=Ee=>{var Pe=b2(),ee=P(_(Pe),2);oc(ee,{get values(){return n(E)}});var Te=P(ee,2),ae=_(Te);g(Te),g(Pe),D($t=>me(ae,`${$t!=null?$t:""} Kbps`),[()=>n(a).bitrate.toFixed(2)]),$(Ee,Pe)};R(ot,Ee=>{n(a).bitrate&&Ee(zt)})}var Zt=P(ot,2),Et=P(_(Zt),2);oc(Et,{get values(){return n(C)}});var oi=P(Et,2),Rt=_(oi,!0);g(oi),g(Zt),g(Z),g(A),D(Ee=>{var Pe,ee;I=re(A,1,"container svelte-lx3h69",null,I,Ee),Ke(A,"aria-label",O),me(X,n(a).version),me(Ue,`${(Pe=n(v))!=null?Pe:""} / ${(ee=n(f))!=null?ee:""} frames`),me(Rt,n(p))},[()=>({"container-mobile":r()})]),$(t,A),F(),o()}ct(["click"]);var E0=require("@vkontakte/videoplayer-shared/es2015"),x2=(t,e)=>{t.stopPropagation(),e()()},w2=M('<div class="close svelte-1ome55p"></div>'),S2={hash:"svelte-1ome55p",code:".close.svelte-1ome55p {cursor:pointer;opacity:0.8;transition:opacity 0.2s;position:relative;width:16px;height:16px;}.close.svelte-1ome55p:hover {opacity:1;}.close.svelte-1ome55p:before, .close.svelte-1ome55p:after {position:absolute;left:8px;content:' ';height:16px;width:2px;background-color:var(--white);}.close.svelte-1ome55p:before {transform:rotate(45deg);}.close.svelte-1ome55p:after {transform:rotate(-45deg);}"};function Ps(t,e){H(e,!0),z(t,S2);let i=h(e,"onClick",3,E0.noop);var o=w2();o.__click=[x2,i],$(t,o),F()}ct(["click"]);var I0=require("@vkontakte/videoplayer-shared/es2015"),C2=M('<div class="timer svelte-8jhsry"><canvas class="timer-canvas svelte-8jhsry" width="100" height="100"></canvas> <svg class="timer-play-icon svelte-8jhsry" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill-rule="nonzero"><path class="_play" d="m8.13340613 5.10548415 10.49681277 6.24354325c.3559987.2117494.472936.6720001.2611866 1.0279989-.0638111.1072809-.1533894.1969388-.2606135.2608453l-10.4968128 6.256187c-.35581027.2120659-.81616483.095538-1.02823068-.2602722-.06921066-.1161237-.10574852-.2487949-.10574852-.3839792v-12.49973035c0-.41421357.33578644-.75.75-.75.13495801 0 .26741554.03641567.38340613.1054073z" fill="var(--btn-color, #fff)"></path></g></g></svg></div>'),T2={hash:"svelte-8jhsry",code:".timer.svelte-8jhsry {border-radius:50%;transition:background .2s;background:rgba(31, 31, 31, .65);width:50px;height:50px;display:flex;align-items:center;justify-content:space-around;}.timer.svelte-8jhsry:hover {background:rgba(31, 31, 31, .85)}.timer-canvas.svelte-8jhsry {width:50px;height:50px;position:absolute;}.timer-play-icon.svelte-8jhsry {width:22px;height:26px;}"};function rc(t,e){H(e,!0),z(t,T2);let i=h(e,"isRunning",3,!0),o=h(e,"onTimerEnded",3,I0.noop),r=5e3,s=j(void 0),l,d,a=0,u;We(()=>{i()&&Pt(()=>{d=Date.now(),a=requestAnimationFrame(v)})});let f=()=>{a&&(cancelAnimationFrame(a),a=0)},v=()=>{f(),i()&&(u=(Date.now()-d)/r,u<1?(l==null||l.clearRect(0,0,100,100),l==null||l.beginPath(),l==null||l.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*u),l==null||l.stroke(),a=requestAnimationFrame(v)):o()())};Ht(()=>{l=n(s).getContext("2d"),l&&(l.lineWidth=6,l.lineCap="round",l.strokeStyle="#fff")}),pn(()=>{f()});var p=C2(),x=_(p);at(x,w=>N(s,w),()=>n(s)),Ie(2),g(p),$(t,p),F()}var E2=(t,e,i)=>{e(!1),i()},I2=M('<div class="overlay svelte-jfbaax"></div> <div class="next-video svelte-jfbaax"><div class="top svelte-jfbaax"><div class="caption svelte-jfbaax"> </div> <!></div> <div class="row svelte-jfbaax"><div class="column svelte-jfbaax"><div class="thumb svelte-jfbaax"><div></div> <!></div></div> <div class="column svelte-jfbaax"><div class="title svelte-jfbaax"> </div></div></div></div>',1),k2={hash:"svelte-jfbaax",code:".overlay.svelte-jfbaax {width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute;}.next-video.svelte-jfbaax {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;width:362px;flex-direction:column;}.top.svelte-jfbaax {display:flex;justify-content:space-between;}.caption.svelte-jfbaax {font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8;}.row.svelte-jfbaax {height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;width:100%;}.column.svelte-jfbaax {display:flex;flex-direction:column;flex-basis:50%;}.thumb.svelte-jfbaax {width:100%;height:100%;background:no-repeat center;background-size:cover;display:flex;align-items:center;position:relative;justify-content:space-around;}.thumb-overlay.svelte-jfbaax {width:100%;height:100%;position:absolute;}.thumb-overlay.withOpacity.svelte-jfbaax {background:var(--black);opacity:0.3;}.title.svelte-jfbaax {padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden;}"};function mv(t,e){H(e,!0),z(t,k2);let[i,o]=Ne(),r=()=>S(d,"$autoplayNextEnabled$",i),s=()=>S(a,"$timerNextVideoRunning$",i),l=$e(),d=l.ui.autoplayNextEnabled$,a=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,f=l.actions.internal.nextVideoAnnouncementShow,v=l.actions.internal.nextVideoAnnouncementClick,p=l.actions.internal.nextVideoAnnouncementAuto,x=l.actions.internal.nextVideoAnnouncementCancel,w=()=>{r()&&(u(!1),p())},y=()=>{e.clickCloseIcon(),x()};Ht(()=>{e.isHide||f(),e.isHide&&r()&&(u(!1),p())});var C=He(),T=ve(C);{var E=O=>{var A=I2(),I=P(ve(A),2),L=_(I),Z=_(L),B=_(Z,!0);g(Z);var U=P(Z,2);Ps(U,{onClick:y}),g(L);var X=P(L,2);X.__click=[E2,u,v];var de=_(X),K=_(de),ue=_(K);let J;var ge=P(ue,2);{var se=te=>{let De=m(()=>s()&&r());rc(te,{get isRunning(){return n(De)},onTimerEnded:w})};R(ge,te=>{r()&&te(se)})}g(K),g(de);var ce=P(de,2),Le=_(ce),we=_(Le,!0);g(Le),g(ce),g(X),g(I),D((te,De)=>{me(B,te),et(K,`background-image: url('${e.thumb}')`),J=re(ue,1,"thumb-overlay svelte-jfbaax",null,J,De),me(we,e.title)},[()=>Y("end_screen_next_video"),()=>({withOpacity:r()})]),$(O,A)};R(T,O=>{e.isHide||O(E)})}$(t,C),F(),o()}ct(["click"]);var oa=require("@vkontakte/videoplayer-core/es2015"),k0=require("@vkontakte/videoplayer-shared/es2015"),Ln=require("@vkontakte/videoplayer-statistics/es2015");var gv=(t,e)=>Math.min(+(t+e).toFixed(2),1),hv=(t,e)=>Math.max(+(t-e).toFixed(2),0),Xu=(t,e,i)=>{let o=gv(e,i);e<1&&t.actions.internal.setVolume(o)},Ju=(t,e,i)=>{let o=hv(e,i);e>0&&t.actions.internal.setVolume(o)};var ia=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:r})=>t?i?!0:(o==null||o(),!1):e?!0:(r==null||r(),!1);function ep(){var t,e,i;return(i=(e=(t=document.activeElement)==null?void 0:t.shadowRoot)==null?void 0:e.activeElement)!=null?i:null}var P2=(t,e)=>{e(t)},M2=M('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),L2={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function _v(t,e){var ee,Te;H(e,!0),z(t,L2);let[i,o]=Ne(),r=()=>S(ge,"$disabledControls$",i),s=()=>S(_e,"$isInteractiveTime$",i),l=()=>S(ie,"$showInteractiveTimeIndicatorTooltip$",i),d=()=>S(U,"$playbackState$",i),a=()=>S(Qe,"$isEnded$",i),u=()=>S(fe,"$doubleForwardAvailable$",i),f=()=>S(De,"$doubleForwardOn$",i),v=()=>S(Ve,"$overlayContainer$",i),p=()=>S(de,"$adPlaybackState",i),x=()=>S(K,"$positionExact$",i),w=()=>S(ue,"$duration$",i),y=()=>S(Fe,"$isAudioAvailable$",i),C=()=>S(J,"$volume$",i),T=()=>S(X,"$canChangePlaybackSpeed$",i),E=()=>S(se,"$muted$",i),O=()=>S(ce,"$currentSubtitle$",i),A=h(e,"nextButtonActive",3,!1),I=h(e,"prevButtonActive",3,!1),L=$e(),Z=Nt(),B=L.getLogger().createComponentLog("KeyboardControls component"),U=L.state.playbackState$,X=L.state.canChangePlaybackSpeed$,de=L.ads.playbackState,K=L.state.positionExact$,ue=L.state.duration$,J=L.state.volume$,ge=L.ui.controls.disabledControls$,se=L.state.muted$,ce=L.state.currentSubtitle$,Le=L.ui.contextMenu.openedByHotKey$,we=L.ui.contextMenu.lastActiveElem$,te=L.ui.contextMenu.visible$,De=L.ui.doubleForwardOn$,fe=L.ui.doubleForwardAvailable$,k=L.ui.contextMenu.position$,Qe=L.state.isEnded$,Ve=L.ui.overlayContainer$,q=(ee=L.callbacks)==null?void 0:ee.onAudioDoesNotExistHint,oe=(Te=L.callbacks)==null?void 0:Te.onAudioDisabledHint,Fe=L.state.isAudioAvailable$,Ge=L.state.isAudioDisabled,_e=L.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:ie}=To(),Se=0,Ce=!0,Be=j(void 0),Ye=ae=>(ae!==Ce&&(Ce=ae,Se=0),Se+=1,(Z.controls.seekStepKeyboard+Z.controls.seekStepKeyboard*Se)/1e3),je=!0,Ue=({type:ae,repeat:$t,disableDoubleForward:It})=>{let ut=()=>{if(!r().has("PLAY_BUTTON"))if(s()&&l()&&ie.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{L.actions.internal.togglePlay();let he="PLAY";d()===oa.PlaybackState.PAUSED?he="PAUSE":a()&&(he="REPLAY"),e.showHotKeyHelpers({type:he})}},Tt=ae==="down";if(!u()||It){Tt&&ut(),je=!0;return}if(Tt)je=!1;else if(je)return;if(Tt){!$t&&e.startDoubleForwardActivationTimer();return}f()||ut(),e.stopDoubleForward(),je=!0},Je=ae=>{let $t=C0(v());k.set($t),we.set(ae.target),Le.set(!0),te.set(!0)},Ft=(ae,$t=!1)=>{var ci,xi;let It=ae.target,ut=(ci=It==null?void 0:It.getAttribute("role"))==null?void 0:ci.includes("menuitem"),Tt=It.classList.contains("btn"),he=ae.code;if(Tt&&he==="Space")return!1;let lt=E1.has(he);if(ut&&lt)return!1;let st=!T1.has(he);if(ae.ctrlKey&&st||ae.altKey&&st||ae.metaKey)return!1;let dt=ut&&he==="Escape";I1.has(he)||dt||e.hideContextMenu();let ri=d()===oa.PlaybackState.PLAYING||d()===oa.PlaybackState.PAUSED,ei=e.isAds&&(p()==="paused"||p()==="playing"),fi=!ei&&!r().has("TIMELINE"),Ei=ae.shiftKey&&["Digit1","Numpad1"].includes(he);if(!Ei&&!(ri||ei))return!1;B({message:`key down, code: ${he}, isExternal = ${$t}`});let uo=!1,Dt=()=>{uo=!0,$t||ae.preventDefault()};if(Ei)return Je(ae),Dt(),!0;switch(he){case"KeyJ":case"ArrowLeft":{if(!fi)break;if(ae.ctrlKey||ae.altKey){let yt=L.actions.internal.getPrevEpisode();L.actions.internal.seekToPrevEpisode(yt),yt&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:yt.text}),Dt()}else{let yt=ae.shiftKey?Ye(!1):Z.controls.seekStepKeyboard/1e3,Ut=Math.max(x()-yt,0);x()>0&&(L.actions.internal.seekTime(Ut,Ln.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:yt.toString()}),Dt())}break}case"KeyL":case"ArrowRight":{if(!fi)break;if(ae.ctrlKey||ae.altKey){let yt=L.actions.internal.getNextEpisode();L.actions.internal.seekToNextEpisode(yt),yt&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:yt.text}),Dt()}else{let yt=ae.shiftKey?Ye(!0):Z.controls.seekStepKeyboard/1e3,Ut=Math.min(x()+yt,w());Math.round(x())<Math.round(w())&&(L.actions.internal.seekTime(Ut,Ln.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:yt.toString()}),Dt())}break}case"ArrowUp":{if(ia({isAudioDisabled:Ge,audioDisabledHintCallback:oe,isAudioAvailable:y(),audioIsNotExistHintCallback:q,isAds:e.isAds})){let yt=C(),Ut=Z.controls.volumeStepKeyboard,zi=yt<=1;if(Xu(L,yt,Ut),zi){let Pi=Math.round(gv(yt,Ut)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Pi}})}}Dt();break}case"ArrowDown":{if(ia({isAudioDisabled:Ge,audioDisabledHintCallback:oe,isAudioAvailable:y(),audioIsNotExistHintCallback:q,isAds:e.isAds})){let yt=C(),Ut=Z.controls.volumeStepKeyboard,zi=yt>=0;if(Ju(L,yt,Ut),zi){let Pi=Math.round(hv(yt,Ut)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Pi}})}}Dt();break}case"Comma":{if(ae.shiftKey){if(!f()&&T()){let yt=L.actions.internal.decrementPlaybackRate();e.showHotKeyHelpers({type:"RATE_DOWN",text:yt==null?void 0:yt.displayValue}),Dt()}}else{if(ei||d()!==oa.PlaybackState.PAUSED)break;let yt=Math.max(x()-Z.controls.seekStepFrame/1e3,0);x()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),L.actions.internal.clearDelayedBufferingCheckTimeout(),L.actions.internal.seekTime(yt,Ln.SeekAction.DOUBLE_TAP),Dt())}break}case"Period":{if(ae.shiftKey){if(!f()&&T()){let yt=L.actions.internal.incrementPlaybackRate();e.showHotKeyHelpers({type:"RATE_UP",text:yt==null?void 0:yt.displayValue}),Dt()}}else{if(ei||d()!==oa.PlaybackState.PAUSED)break;let yt=Math.min(x()+Z.controls.seekStepFrame/1e3,w());x()<w()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),L.actions.internal.clearDelayedBufferingCheckTimeout(),L.actions.internal.seekTime(yt,Ln.SeekAction.DOUBLE_TAP),Dt())}break}case"KeyK":case"Space":Ue({type:"down",repeat:ae.repeat,disableDoubleForward:"KeyK"===he}),Dt();break;case"KeyM":{ia({isAudioDisabled:Ge,audioDisabledHintCallback:oe,isAudioAvailable:y(),audioIsNotExistHintCallback:q,isAds:e.isAds})&&(e.showHotKeyHelpers({type:E()?"VOLUME":"MUTE"}),L.actions.internal.toggleMuted()),Dt();break}case"KeyF":e.toggleFullscreen(),Dt();break;case"KeyC":L.actions.internal.toggleSubtitle(),O().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(xi=O())==null?void 0:xi.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),Dt();break;case"KeyI":L.actions.internal.togglePictureInPicture(),Dt();break;case"Digit1":case"Numpad1":e.showHotKeyHelpers(),L.actions.internal.seekToPercent(.1,Ln.SeekAction.DOUBLE_TAP),Dt();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),L.actions.internal.seekToPercent(.2,Ln.SeekAction.DOUBLE_TAP),Dt();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),L.actions.internal.seekToPercent(.3,Ln.SeekAction.DOUBLE_TAP),Dt();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),L.actions.internal.seekToPercent(.4,Ln.SeekAction.DOUBLE_TAP),Dt();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),L.actions.internal.seekToPercent(.5,Ln.SeekAction.DOUBLE_TAP),Dt();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),L.actions.internal.seekToPercent(.6,Ln.SeekAction.DOUBLE_TAP),Dt();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),L.actions.internal.seekToPercent(.7,Ln.SeekAction.DOUBLE_TAP),Dt();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),L.actions.internal.seekToPercent(.8,Ln.SeekAction.DOUBLE_TAP),Dt();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),L.actions.internal.seekToPercent(.9,Ln.SeekAction.DOUBLE_TAP),Dt();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),L.actions.internal.seekToPercent(0,Ln.SeekAction.DOUBLE_TAP),Dt();break;case"Slash":{ae.shiftKey&&Z.features.hotKeyMapModal&&(e.showKeyMap(),Dt());break}case"KeyN":ae.shiftKey&&A()&&(L.actions.internal.nextVideoClick(),Dt());break;case"KeyP":ae.shiftKey&&I()&&(L.actions.internal.prevVideoClick(),Dt());break;case"ShiftLeft":case"ShiftRight":Dt();break;case"Tab":case"Escape":case"Enter":break;default:(0,k0.checkNever)(he);break}return uo},ot=ae=>{let $t=ae.code;if(ae.ctrlKey||ae.altKey||ae.metaKey)return;let It=d()===oa.PlaybackState.PLAYING||d()===oa.PlaybackState.PAUSED,ut=e.isAds&&(p()==="paused"||p()==="playing");if(It||ut)switch($t){case"ShiftLeft":case"ShiftRight":Se=0;break;case"Space":Ue({type:"up"});break}},zt=Y("aria_label_video_player"),Zt=()=>{var ae;return(ae=n(Be))==null?void 0:ae.focus()},Et=()=>n(Be)===ep(),oi=ae=>ae.type==="keydown"?Ft(ae,!0):(ae.type==="keyup"&&ot(ae),!1);var Rt=M2();Rt.__keyup=ot,Rt.__keydown=[P2,Ft];var Ee=_(Rt);ye(Ee,()=>{var ae;return(ae=e.children)!=null?ae:pe}),g(Rt),at(Rt,ae=>N(Be,ae),()=>n(Be)),D(()=>Ke(Rt,"aria-label",zt)),$(t,Rt);var Pe=F({focus:Zt,isFocused:Et,handleExternalKeyboardEvent:oi});return o(),Pe}ct(["keyup","keydown"]);var V2=M('<div class="container svelte-1dbnjb1"><div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div></div>'),R2={hash:"svelte-1dbnjb1",code:`.container.svelte-1dbnjb1 {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none;display:flex;}.dot.svelte-1dbnjb1:nth-child(1) {animation-delay:calc(0 * 180ms);}.dot.svelte-1dbnjb1:nth-child(2) {animation-delay:calc(1 * 180ms);}.dot.svelte-1dbnjb1:nth-child(3) {animation-delay:calc(2 * 180ms);}
141
+
142
+ @keyframes svelte-1dbnjb1-dot_animation {
143
+ 0% {
144
+ opacity: 0.2;
145
+ }
146
+ 30% {
147
+ opacity: 1;
148
+ }
149
+ 100% {
150
+ opacity: 0.2;
151
+ }
152
+ }.dot.svelte-1dbnjb1 {border-radius:4px;width:8px;height:8px;background:var(--btn-color);animation-duration:750ms;
153
+ animation-name: svelte-1dbnjb1-dot_animation;animation-iteration-count:infinite;}.dot.svelte-1dbnjb1 + .dot:where(.svelte-1dbnjb1) {margin-left:4px;}`};function Ua(t,e){z(t,R2);let i=h(e,"style",3,"");var o=V2();D(()=>et(o,i())),$(t,o)}var O2=ke('<svg><!><g filter="url(#a)"><path fill="#fff" d="M7.536 6.264a.9.9 0 0 0-1.272 1.272L10.727 12l-4.463 4.464a.9.9 0 0 0 1.272 1.272L12 13.273l4.464 4.463a.9.9 0 1 0 1.272-1.272L13.273 12l4.463-4.464a.9.9 0 1 0-1.272-1.272L12 10.727z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M7.713 6.087a1.15 1.15 0 1 0-1.626 1.626L10.374 12l-4.287 4.287a1.15 1.15 0 0 0 1.626 1.626L12 13.626l4.287 4.287a1.15 1.15 0 0 0 1.626-1.626L13.626 12l4.287-4.287a1.15 1.15 0 1 0-1.626-1.626L12 10.374z"></path></g><defs><filter id="a" width="23" height="23" x=".5" y=".5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2422_111980"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2422_111980" result="shape"></feBlend></filter></defs></svg>');function bv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=O2();Me(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"cross-icon",role:"img"},i));var r=_(o);ye(r,()=>{var s;return(s=e.children)!=null?s:pe}),Ie(2),g(o),$(t,o)}var za=require("@vkontakte/videoplayer-shared/es2015"),N2=t=>{t.stopPropagation()},D2=M("<button><!></button>"),B2={hash:"svelte-7jez3e",code:`button.btn.svelte-7jez3e {padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center;justify-content:center;
154
+ /**
155
+ * \u0412 \u0441\u0430\u0444\u0430\u0440\u0438 \u043F\u0440\u0438 \u0445\u043E\u0432\u0435\u0440\u0435 \u043F\u043E\u044F\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u043E\u043F\u0430\u0441\u0438\u0442\u0438, \u0432\u0438\u0434\u0438\u043C\u043E, \u0441\u0430\u0444\u0430\u0440\u0438 \u043A\u0440\u0438\u0432\u043E \u0432\u044B\u043D\u043E\u0441\u0438\u0442 \u044D\u0442\u043E \u0432 \u043E\u0442\u0434\u0435\u043B\u044C\u043D\u044B\u0439 \u0441\u043B\u043E\u0439
156
+ * \u0438\u0437 \u0437\u0430 \u044D\u0442\u043E\u0433\u043E \u043C\u043E\u0436\u0435\u0442 \u043E\u0431\u0440\u0435\u0437\u0430\u0442\u044C\u0441\u044F \u0448\u0438\u043B\u0434\u0438\u043A \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u0430, \u043A\u043E\u0442\u043E\u0440\u044B\u0439 \u0432\u044B\u043B\u0430\u0437\u0438\u0435\u0442 \u0437\u0430 \u043F\u0440\u0435\u0434\u0435\u043B\u044B \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440\u0430.
157
+ * \u0424\u043E\u0440\u0441 \u0432\u044B\u043D\u043E\u0441\u0430 \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440\u0430 \u0432 \u0441\u043B\u043E\u0439, \u043A\u0430\u043A \u0442\u043E \u043F\u043E\u043C\u043E\u0433\u0430\u0435\u0442 \u0441\u0430\u0444\u0430\u0440\u0438.
158
+ */will-change:opacity;}
159
+
160
+ /* \u041D\u0438\u0436\u0435 \u0438\u0434\u0443\u0442 \u0430\u0431\u0441\u0442\u0440\u0430\u043A\u0442\u043D\u044B\u0435 \u0438 \u0441\u043F\u0435\u0446\u0438\u0444\u0438\u043A \u043A\u043B\u0430\u0441\u0441\u044B \u0434\u043B\u044F \u043A\u043D\u043E\u043F\u043E\u043A \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u043C\u043E\u0436\u043D\u043E \u043F\u0435\u0440\u0435\u0434\u0430\u0442\u044C \u0447\u0435\u0440\u0435\u0437 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440 className */button.w-max.svelte-7jez3e {width:100%;}button.btn--live.svelte-7jez3e {padding:10px 4px;}button.btn-jc-l.svelte-7jez3e {justify-content:left;}
161
+
162
+ /* mobile */
163
+ /* container mobile */button.btn-m.svelte-7jez3e {position:absolute;left:12px;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center;}button.btn-m--play.svelte-7jez3e {width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;position:relative;padding:16px;}.btn-m--play.svelte-7jez3e svg {transform:scale(2);}button.btn-m--prev.svelte-7jez3e,
164
+ button.btn-m--next.svelte-7jez3e {position:absolute;width:50px;height:50px;}button.btn-m--prev.svelte-7jez3e {right:calc(100% + 35px);}button.btn-m--next.svelte-7jez3e {left:calc(100% + 35px);}button.btn.svelte-7jez3e:disabled {cursor:default;
165
+ /* \u043D\u0443\u0436\u043D\u043E \u0434\u043B\u044F \u0442\u043E\u0433\u043E, \u0447\u0442\u043E\u0431\u044B \u043D\u0435 \u0434\u0430\u0432\u0430\u0442\u044C \u0441\u043E\u0431\u044B\u0442\u0438\u044F\u043C \u043A\u043B\u0438\u043A\u0430 \u043E\u0442\u0440\u0430\u0431\u0430\u0442\u044B\u0432\u0430\u0442\u044C \u043D\u0430 \u0437\u0430\u0431\u043B\u043E\u0447\u0435\u043D\u043D\u043E\u043C \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0435 */pointer-events:none;}button.btn.svelte-7jez3e:not(.btn-full-opacity):disabled {opacity:0.4;}button.btn.svelte-7jez3e:not(:disabled):hover {opacity:0.8;}button.pr-0.svelte-7jez3e {padding-right:0;}button.pl-0.svelte-7jez3e {padding-left:0;}`};function Qt(t,e){H(e,!0),z(t,B2);let i=h(e,"className",3,""),o=h(e,"style",3,""),r=h(e,"disabled",3,void 0),s=h(e,"testId",3,void 0),l=h(e,"ariaHidden",3,void 0),d=h(e,"ariaLabel",3,void 0),a=h(e,"ref",15,void 0),u=h(e,"ariaKeyShortCut",3,void 0),f=h(e,"ariaExpanded",3,void 0),v=h(e,"tabIndex",3,0),p=h(e,"click",3,za.noop),x=h(e,"focus",3,za.noop),w=h(e,"blur",3,za.noop),y=m(()=>p()===za.noop?null:A=>{A.stopPropagation(),p()(A)}),C=m(()=>x()===za.noop?null:A=>{A.preventDefault(),x()()}),T=m(()=>w()===za.noop?null:A=>{A.preventDefault(),w()()});var E=D2();E.__pointerdown=[N2],E.__click=function(...A){var I;(I=n(y))==null||I.apply(this,A)};var O=_(E);ye(O,()=>{var A;return(A=e.children)!=null?A:pe}),g(E),at(E,A=>a(A),()=>a()),D(()=>{var A,I,L,Z,B,U,X,de;re(E,1,`btn ${(A=i())!=null?A:""}`,"svelte-7jez3e"),et(E,o()||null),E.disabled=(I=r())!=null?I:null,Ke(E,"aria-hidden",(L=l())!=null?L:null),Ke(E,"aria-label",(Z=d())!=null?Z:null),Ke(E,"aria-keyshortcuts",(B=u())!=null?B:null),Ke(E,"aria-expanded",(U=f())!=null?U:null),Ke(E,"data-testid",(X=s())!=null?X:null),Ke(E,"tabindex",v()),Ke(E,"role",e.role),Ke(E,"aria-checked",(de=e.areaChecked)!=null?de:null)}),wt("focus",E,function(...A){var I;(I=n(C))==null||I.apply(this,A)}),wt("blur",E,function(...A){var I;(I=n(T))==null||I.apply(this,A)}),$(t,E),F()}ct(["pointerdown","click"]);var H2=M('<div class="modal-header svelte-ijitjb"><h3 class="modal-title svelte-ijitjb"> </h3> <!></div>'),F2=M('<div class="modal-overlay svelte-ijitjb"><div class="modal-container svelte-ijitjb"><!> <div class="modal-scroll svelte-ijitjb"><div class="modal-main svelte-ijitjb"><!></div></div></div></div>'),U2={hash:"svelte-ijitjb",code:".modal-overlay.svelte-ijitjb {position:absolute;top:0;bottom:0;left:0;right:0;background:transparent;display:flex;align-items:center;justify-content:center;}.modal-container.svelte-ijitjb {display:flex;flex-direction:column;width:calc(100% - 32px);max-width:600px;height:calc(100% - 24px);max-height:490px;background:var(--mobile-settings-bg);color:var(--white);border-radius:8px;}.modal-header.svelte-ijitjb {box-sizing:border-box;display:flex;justify-content:space-between;align-items:start;height:40px;padding:8px 10px;border-bottom:1px solid var(--white-alpha-24);}.modal-title.svelte-ijitjb {margin:3px 0 0 6px;color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;}.modal-scroll.svelte-ijitjb {overflow-y:auto;overflow-x:hidden;margin:8px 4px 8px 0;height:100%;}.modal-scroll.svelte-ijitjb::-webkit-scrollbar {width:8px;}.modal-scroll.svelte-ijitjb::-webkit-scrollbar-track {box-shadow:none;background-color:transparent;border-radius:4px;margin-right:2px;}.modal-scroll.svelte-ijitjb::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.modal-scroll.svelte-ijitjb::-webkit-scrollbar-thumb:hover {background-color:#777;}.modal-main.svelte-ijitjb {margin:-8px -4px 0 0;}"};function $v(t,e){H(e,!0),z(t,U2);let i=h(e,"showHeader",3,!0),o=h(e,"showCloseCross",3,!0),r=Y("hotkey_map_modal_close_btn_text");var s=F2(),l=_(s),d=_(l);{var a=p=>{var x=H2(),w=_(x),y=_(w,!0);g(w);var C=P(w,2);{var T=E=>{Qt(E,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",get ariaLabel(){return r},children:(O,A)=>{bv(O,{})},$$slots:{default:!0}})};R(C,E=>{o()&&E(T)})}g(x),D(()=>me(y,e.title)),$(p,x)};R(d,p=>{i()&&p(a)})}var u=P(d,2),f=_(u),v=_(f);ye(v,()=>{var p;return(p=e.children)!=null?p:pe}),g(f),g(u),g(l),g(s),$(t,s),F()}var z2=new Set(["BR"]),A0=t=>{var r;let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),o=i.length;for(;o--;){let s=i[o],l=s.tagName;z2.has(l)||(r=s.parentElement)==null||r.removeChild(s)}return e.innerHTML};var W2=M('<li class="hot-key-map-item svelte-quklnq"><span class="hot-key-map-item-description svelte-quklnq"><!></span> <span class="hot-key-map-item-value svelte-quklnq"> </span></li>'),K2=M('<div class="hot-key-map-group svelte-quklnq"><h5 class="hot-key-map-group-title svelte-quklnq"> </h5> <ul class="hot-key-map-group-items svelte-quklnq"></ul></div>'),q2=M('<div class="hot-key-map svelte-quklnq"></div>'),Q2={hash:"svelte-quklnq",code:`.hot-key-map.svelte-quklnq {color:var(--black);box-sizing:border-box;overflow-x:hidden;}.hot-key-map-group.svelte-quklnq {border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px;}.hot-key-map-group.svelte-quklnq:last-child {border-bottom:none;}.hot-key-map-group-title.svelte-quklnq {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.svelte-quklnq,
166
+ .hot-key-map-item.svelte-quklnq {padding:12px 0;margin:0;width:100%;}.hot-key-map-group-items.svelte-quklnq {box-sizing:border-box;list-style:none;padding:0;margin:0;}.hot-key-map-item.svelte-quklnq {box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;--videoplayer-hotkey-item-value-width: 156px;--videoplayer-hotkey-item-value-padding-left: 24px;}.hot-key-map-item-description.svelte-quklnq {color:var(--white-alpha-72);width:calc(100% - var(--videoplayer-hotkey-item-value-width) - var(--videoplayer-hotkey-item-value-padding-left));max-width:388px;}.hot-key-map-item-value.svelte-quklnq {color:var(--white);width:var(--videoplayer-hotkey-item-value-width);padding-left:var(--videoplayer-hotkey-item-value-padding-left);letter-spacing:-0.14px;}.hot-key-map-item-description.svelte-quklnq,
167
+ .hot-key-map-item-value.svelte-quklnq {font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:400;line-height:16px;}`};function yv(t,e){H(e,!1),z(t,Q2);let[i,o]=Ne(),r=()=>S(l,"$data",i),s=$e(),{data:l,show:d}=s.ui.modals.hotKeyMap,a=()=>{d.set(!1)};Jo(),$v(t,{get title(){return r().title},onClose:a,children:(u,f)=>{var v=q2();Ti(v,5,()=>r().groups,({title:p,items:x})=>p,(p,x)=>{let w=()=>n(x).title,y=()=>n(x).items;var C=K2(),T=_(C),E=_(T,!0);g(T);var O=P(T,2);Ti(O,5,y,({description:A,value:I})=>I,(A,I)=>{let L=()=>n(I).description,Z=()=>n(I).value;var B=W2(),U=_(B),X=_(U);Dd(X,()=>A0(L())),g(U);var de=P(U,2),K=_(de,!0);g(de),g(B),D(()=>me(K,Z())),$(A,B)}),g(O),g(C),D(()=>me(E,w())),$(p,C)}),g(v),$(u,v)},$$slots:{default:!0}}),F(),o()}var xm=require("@vkontakte/videoplayer-shared/es2015");var Ya=require("@vkontakte/videoplayer-core/es2015");var XO=require("@vkontakte/videoplayer-shared/es2015");var j2=M('<div class="pillow svelte-1oe0j8n"><!></div>'),G2={hash:"svelte-1oe0j8n",code:".pillow.svelte-1oe0j8n {background-color:#679FF8;color:var(--white);font-size:6px;font-weight:600;-webkit-font-smoothing:antialiased;padding:2px 4px;border-radius:12px;}"};function xv(t,e){z(t,G2);var i=j2(),o=_(i);ye(o,()=>{var r;return(r=e.children)!=null?r:pe}),g(i),$(t,i)}var jl=require("@vkontakte/videoplayer-shared/es2015");var Y2=ke('<svg><!><path fill="currentColor" d="M5.517 5c.325 0 .516-.198.516-.536v-.97l.492-.517 1.46 1.74c.16.205.304.283.516.283A.49.49 0 0 0 9 4.501c0-.14-.068-.287-.222-.478l-1.47-1.73L8.818.868C8.949.731 9 .618 9 .475A.474.474 0 0 0 8.515 0c-.171 0-.301.065-.445.222L6.064 2.25h-.03V.54c0-.342-.192-.54-.517-.54s-.516.198-.516.54v3.924c0 .338.191.536.516.536"></path><path fill="currentColor" fill-rule="evenodd" d="m2.551 1.052-1.51 2.052h1.51zM3.5 3.104V.832c0-.81-1.089-1.14-1.556-.48L.139 2.821a.75.75 0 0 0 .612 1.183h1.8v.55c0 .248.25.45.499.45a.45.45 0 0 0 .45-.45v-.55h.052a.45.45 0 0 0 0-.9z" clip-rule="evenodd"></path></svg>');function wv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Y2();Me(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i));var r=_(o);ye(r,()=>{var s;return(s=e.children)!=null?s:pe}),Ie(2),g(o),$(t,o)}var Z2=ke('<svg><!><path fill="currentColor" d="M5.513 5c.323 0 .513-.198.513-.537v-.97l.49-.516L7.99 4.715c.16.205.302.284.513.284A.49.49 0 0 0 9 4.5c0-.14-.068-.287-.22-.478L7.293 2.293 8.82.868C8.949.731 9 .618 9 .475A.473.473 0 0 0 8.517 0c-.17 0-.299.065-.441.222L6.056 2.25h-.03V.54c0-.342-.19-.54-.513-.54S5 .198 5 .54v3.923c0 .339.19.537.513.537"></path><path fill="currentColor" fill-rule="evenodd" d="M2 0q-.53 0-.952.173a1.5 1.5 0 0 0-.654.484q-.23.312-.23.71c0 .423.208.756.613.995a1.46 1.46 0 0 0-.547.44q-.23.305-.23.71 0 .432.252.778l.001.001q.26.336.712.523Q1.418 5.001 2 5q.582 0 1.035-.186.451-.187.705-.524.26-.346.26-.777 0-.406-.23-.711a1.45 1.45 0 0 0-.552-.44c.409-.235.618-.569.618-.994a1.14 1.14 0 0 0-.238-.711 1.44 1.44 0 0 0-.653-.484A2.4 2.4 0 0 0 2 0m-.573.964C1.563.86 1.75.804 2 .804s.434.055.564.16h.001a.51.51 0 0 1 .204.43.52.52 0 0 1-.204.437c-.13.105-.315.161-.565.161s-.437-.056-.573-.161a.52.52 0 0 1-.203-.437q.002-.276.203-.43m-.345 2.522c0-.217.08-.381.233-.503.16-.122.385-.188.685-.188s.522.066.677.188q.24.181.24.503a.63.63 0 0 1-.24.523c-.155.122-.377.188-.677.188s-.524-.065-.684-.187a.64.64 0 0 1-.234-.524" clip-rule="evenodd"></path></svg>');function Sv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Z2();Me(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i));var r=_(o);ye(r,()=>{var s;return(s=e.children)!=null?s:pe}),Ie(2),g(o),$(t,o)}var X2=ke('<svg><!><path fill="currentColor" d="M5.516 5h1.107C8.103 5 9 4.065 9 2.5S8.103 0 6.623 0H5.516C5.191 0 5 .2 5 .537V4.46c0 .342.191.54.516.54m.516-.854V.852H6.5C7.41.852 8 1.468 8 2.5c0 1.066-.577 1.646-1.5 1.646zM.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S4 4.802 4 4.464V.54C4 .198 3.809 0 3.484 0s-.516.198-.516.54v1.531H1.032V.54C1.032.198.841 0 .516 0S0 .198 0 .54v3.989C0 4.867.191 5 .516 5"></path></svg>');function Cv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=X2();Me(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i));var r=_(o);ye(r,()=>{var s;return(s=e.children)!=null?s:pe}),Ie(),g(o),$(t,o)}var J2=ke('<svg><!><path fill="currentColor" d="M9.516 5h1.107C12.103 5 13 4.065 13 2.5S12.103 0 10.623 0H9.516C9.191 0 9 .2 9 .537V4.46c0 .342.191.54.516.54m.516-.854V.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zM4.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S8 4.802 8 4.464V.54C8 .198 7.809 0 7.484 0s-.516.198-.516.54v1.531H5.032V.54c0-.342-.191-.54-.516-.54S4 .198 4 .54v3.989c0 .338.191.471.516.471m-4 0c.325 0 .516-.198.516-.537V3h1.332c.27 0 .441-.154.441-.41 0-.253-.174-.407-.44-.407H1.031V.854h1.5c.28 0 .468-.16.468-.427C3 .161 2.815 0 2.532 0H.516C.191 0 0 .198 0 .537v3.926C0 4.802.191 5 .516 5"></path></svg>');function sc(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=J2();Me(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img"},i));var r=_(o);ye(r,()=>{var s;return(s=e.children)!=null?s:pe}),Ie(),g(o),$(t,o)}var ey=ke('<svg><!><path fill="currentColor" d="M11.516 5.75h1.107c1.48 0 2.377-.935 2.377-2.5s-.897-2.5-2.377-2.5h-1.107c-.325 0-.516.199-.516.537V5.21c0 .342.191.54.516.54m.516-.854V1.602h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zm-5.516.854c.325 0 .516-.198.516-.536V3.672h1.936v1.542c0 .338.191.536.516.536S10 5.552 10 5.214V1.29c0-.342-.191-.54-.516-.54s-.516.198-.516.54v1.531H7.032V1.29c0-.342-.191-.54-.516-.54S6 .948 6 1.29v3.989c0 .338.191.471.516.471"></path><path fill="currentColor" fill-rule="evenodd" d="M3.338 5.659a4 4 0 0 1-.838.091C1.037 5.75 0 4.885 0 3.303 0 1.733 1.037.75 2.5.75 3.96.75 5 1.734 5 3.303c0 .863-.274 1.46-.778 1.88l.194.29a.5.5 0 0 1-.832.554zm-.52-.78-.234-.352a.5.5 0 1 1 .832-.554l.245.367c.184-.26.286-.615.286-1.037 0-1.036-.64-1.653-1.447-1.653-.81 0-1.447.617-1.447 1.653 0 1.032.637 1.596 1.447 1.596.08 0 .208-.007.318-.02" clip-rule="evenodd"></path></svg>');function ac(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=ey();Me(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img"},i));var r=_(o);ye(r,()=>{var s;return(s=e.children)!=null?s:pe}),Ie(2),g(o),$(t,o)}var tp=t=>{switch(t){case jl.VideoQuality.Q_720P:return Cv;case jl.VideoQuality.Q_1080P:return sc;case jl.VideoQuality.Q_1440P:return ac;case jl.VideoQuality.Q_2160P:return wv;case jl.VideoQuality.Q_4320P:return Sv}};var ty=ke('<svg><!><path fill="var(--btn-color, #fff)" d="M12.722 2.213c1.208.037 1.994.702 2.408 1.954l.065.215.051.191q.027.111.068.235l.058.159.034.017.069-.023.133-.051.156-.068c1.414-.658 2.502-.536 3.387.437l.125.145.82 1.017c.732.962.71 1.99-.004 3.1l-.125.187-.117.16a3 3 0 0 0-.142.205l-.07.115-.034.057.004.02.091.06.127.077.153.083c1.39.71 1.963 1.641 1.742 2.936l-.038.188-.244 1.058c-.158.685-.282 1.01-.77 1.454-.475.432-1.016.61-1.732.67l-.22.014-.198.006q-.116.002-.246.015l-.181.021.013.142.013.096.033.179c.323 1.526-.04 2.558-1.188 3.202l-.17.09-1.175.57c-1.102.495-2.099.242-3.02-.702l-.153-.164-.13-.15a3 3 0 0 0-.17-.186l-.097-.096-.05-.046-.09.087-.106.108-.118.133c-.952 1.134-1.957 1.54-3.176 1.067l-.175-.074-1.052-.51-.312-.16c-.476-.26-.743-.51-1.004-1.061-.275-.58-.294-1.15-.16-1.883l.044-.225q.024-.114.041-.242l.019-.172-.004-.004-.104-.014-.146-.013-.174-.008c-1.56-.028-2.484-.614-2.853-1.877l-.049-.185-.292-1.274c-.235-1.185.236-2.1 1.364-2.785l.194-.112.175-.093a3 3 0 0 0 .216-.12l.155-.102.004-.019-.063-.108-.08-.125-.103-.143c-.937-1.246-1.044-2.335-.276-3.404l.115-.153.824-1.013c.79-.915 1.8-1.107 3.034-.64l.208.083.181.081q.103.048.222.093l.136.048.036-.017.033-.089.045-.138.046-.166c.36-1.436 1.085-2.242 2.39-2.35l.19-.011h1.39Zm-.056 1.799h-1.333l-.14.01c-.285.037-.472.191-.652.832l-.041.156-.057.206a6.3 6.3 0 0 1-.468 1.134 6 6 0 0 0-1.147.558 6.5 6.5 0 0 1-1.16-.35l-.35-.154c-.248-.107-.435-.161-.583-.175l-.084-.003a.55.55 0 0 0-.408.193l-.068.074-.789.973-.095.125c-.183.264-.21.5.195 1.075l.228.316c.212.31.425.692.598 1.102q-.195.577-.27 1.201c-.334.29-.69.537-1.013.72l-.343.184c-.617.34-.695.563-.646.881l.013.075.28 1.22.04.152c.096.308.265.475.968.509l.388.014c.37.024.798.09 1.223.204q.337.526.776.968a6.3 6.3 0 0 1-.118 1.445c-.201.95-.014 1.102.383 1.3l1.126.547a.8.8 0 0 0 .337.089l.067-.006c.181-.028.382-.162.67-.485l.258-.295a6.5 6.5 0 0 1 .949-.837l.298.023L12 18l.302-.008.298-.022c.363.263.691.559.948.837l.258.295c.325.364.538.488.737.49l.066-.003a.8.8 0 0 0 .178-.046l.093-.039 1.126-.548.139-.073c.3-.175.42-.395.245-1.226a6.2 6.2 0 0 1-.117-1.445q.436-.442.775-.97a6.5 6.5 0 0 1 1.223-.202l.387-.014c.812-.04.912-.256 1.008-.66l.264-1.142c.09-.406.095-.643-.617-1.035l-.342-.183a6.4 6.4 0 0 1-1.014-.722 6 6 0 0 0-.27-1.201c.174-.41.386-.791.598-1.1l.228-.317c.406-.575.378-.81.195-1.075l-.045-.062-.787-.974c-.14-.171-.259-.294-.452-.322l-.076-.007c-.16-.003-.368.05-.667.178l-.35.155a6.4 6.4 0 0 1-1.158.348 6 6 0 0 0-1.15-.556 6.5 6.5 0 0 1-.454-1.093l-.113-.414c-.192-.678-.393-.805-.714-.828zM12 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></svg>');function Tv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=ty();Me(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"settings-mobile-icon",role:"img"},i));var r=_(o);ye(r,()=>{var s;return(s=e.children)!=null?s:pe}),Ie(),g(o),$(t,o)}var iy=ke('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M13.933 4.875a.6.6 0 0 0-.07-.658c-.327-.413-.45-.833-.574-1.253l-.039-.13C13 2 12.833 2 12.417 2h-.91c-.371.003-.6.052-.757.833-.148.738-.36 1.476-1.566 2.186a.5.5 0 0 1-.12.05c-1.27.324-1.905-.023-2.542-.37l-.12-.065c-.766-.412-.884-.294-1.178 0l-.643.644c-.26.264-.389.461.053 1.124.418.626.789 1.299.438 2.654a.5.5 0 0 1-.05.12c-.668 1.126-1.362 1.33-2.058 1.535l-.13.039C2 11 2 11.167 2 11.583v.91c.003.371.052.6.833.757.738.148 1.476.36 2.186 1.566a.5.5 0 0 1 .05.12c.324 1.27-.023 1.905-.37 2.542l-.065.12c-.412.766-.294.884 0 1.178l.644.643c.264.26.461.389 1.124-.053.626-.418 1.299-.789 2.654-.438q.063.016.12.05c1.126.668 1.33 1.362 1.535 2.058l.039.13c.25.834.417.834.833.834h.91c.371-.003.6-.052.757-.833.148-.738.36-1.476 1.566-2.186a.5.5 0 0 1 .12-.05c1.27-.324 1.905.023 2.542.37l.12.065c.766.412.884.294 1.178 0l.643-.644c.26-.264.389-.461-.053-1.124-.26-.39-.503-.799-.563-1.38a.6.6 0 0 0-.413-.519 7.5 7.5 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.58.58 0 0 0 .633-.44 7.5 7.5 0 0 1 .749-1.967" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M13.25 2.833c.225.751.383 1.502 1.63 2.222 1.399.38 2.082.003 2.718-.42.663-.443.86-.315 1.124-.054l.644.643c.294.294.412.412 0 1.178-.372.69-.792 1.333-.418 2.726.72 1.255 1.47 1.472 2.219 1.622.78.156.83.386.833.757v.91c0 .416 0 .583-.833.833-.751.225-1.502.383-2.222 1.63-.38 1.399-.003 2.082.42 2.718.443.663.315.86.054 1.124l-.643.644c-.294.294-.412.412-1.178 0-.69-.372-1.333-.792-2.726-.418-1.255.72-1.472 1.47-1.622 2.219-.156.78-.386.83-.757.833h-.91c-.416 0-.583 0-.833-.833-.225-.751-.383-1.502-1.63-2.222-1.399-.38-2.082-.003-2.718.42-.663.443-.86.315-1.124.054l-.644-.643c-.294-.294-.412-.412 0-1.178.372-.69.792-1.333.418-2.726-.72-1.255-1.47-1.472-2.219-1.622-.78-.156-.83-.386-.833-.757v-.91c0-.416 0-.583.833-.833.751-.225 1.502-.383 2.222-1.63.38-1.399.003-2.082-.42-2.718-.443-.663-.315-.86-.054-1.124l.643-.644c.294-.294.412-.412 1.178 0 .69.372 1.333.792 2.726.418 1.255-.72 1.472-1.47 1.622-2.219.156-.78.386-.83.757-.833h.91c.416 0 .583 0 .833.833M12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5" class="_full"></path></svg>');function Ev(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=iy();Me(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img"},i));var r=_(o);ye(r,()=>{var s;return(s=e.children)!=null?s:pe}),Ie(2),g(o),$(t,o)}var oy=M('<div aria-hidden="true"><!> <!></div>'),ny={hash:"svelte-8t5w85",code:'.icon.svelte-8t5w85 {display:flex;position:relative;width:24px;height:24px;}.icon.svelte-8t5w85 .pillow {position:absolute;top:1px;right:-9px;}.icon.triple.svelte-8t5w85 .pillow {right:-13px;}.icon.svelte-8t5w85 svg[data-testid="settings-icon--labeled"] ._full {visibility:hidden;opacity:0;}'};function lc(t,e){H(e,!0),z(t,ny);let i=h(e,"isMobile",3,!1),o=h(e,"currentQuality",3,void 0),r=m(()=>tp(o())),s=m(()=>!!n(r)&&[sc,ac].includes(n(r)));var l=He(),d=ve(l);{var a=f=>{Tv(f,{})},u=f=>{var v=oy();let p;var x=_(v);{var w=T=>{xv(T,{children:(E,O)=>{var A=He(),I=ve(A);Oi(I,()=>n(r),(L,Z)=>{Z(L,{})}),$(E,A)},$$slots:{default:!0}})};R(x,T=>{n(r)&&T(w)})}var y=P(x,2);let C=m(()=>n(r)?"settings-icon--labeled":"settings-icon");Ev(y,{get"data-testid"(){return n(C)},fill:"var(--btn-color, #fff)"}),g(v),D(T=>p=re(v,1,"icon svelte-8t5w85",null,p,T),[()=>({triple:n(s)})]),$(f,v)};R(d,f=>{i()?f(a):f(u,!1)})}$(t,l),F()}var ry=M('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),sy={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function Gl(t,e){H(e,!0),z(t,sy);let[i,o]=Ne(),r=()=>S(u,"$settingsMenuVisible",i),s=()=>S(p,"$isMobile",i),l=()=>S(a,"$currentQuality",i),d=$e(),a=d.state.currentQuality$,u=d.ui.settingsMenu.visible$,f=d.actions.internal.openSettingsMenu,v=d.actions.internal.closeSettingsMenu,p=d.ui.isMobile,x=d.ui.t,w=j(void 0);We(()=>{n(w)&&Pt(()=>{e.ref$.set(n(w))})});let y=x("aria_label_settings");function C(E){return xt(this,null,function*(){let O=ta(E);r()?v():f(O,_o)})}let T=m(()=>r()?"opened":"");Qt(t,{get className(){return n(T)},testId:"btn-settings",click:C,get ariaLabel(){return y},get ariaExpanded(){return r()},get ref(){return n(w)},set ref(E){N(w,E,!0)},children:(E,O)=>{var A=ry(),I=_(A);lc(I,{get isMobile(){return s()},get currentQuality(){return l()}}),g(A),$(E,A)},$$slots:{default:!0}}),F(),o()}var ay=ke('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M15.538 4c.948 0 1.714 0 2.334.05.64.053 1.203.163 1.726.43a4.4 4.4 0 0 1 1.922 1.922c.267.523.377 1.087.43 1.726.05.62.05 1.386.05 2.334v3.076c0 .948 0 1.714-.05 2.334-.053.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.523.267-1.087.377-1.726.43-.62.05-1.386.05-2.334.05H8.462c-.948 0-1.714 0-2.334-.05-.64-.053-1.203-.163-1.726-.43a4.4 4.4 0 0 1-1.922-1.922c-.267-.523-.377-1.087-.43-1.726C2 15.252 2 14.486 2 13.538v-3.076c0-.948 0-1.714.05-2.334.053-.64.163-1.203.43-1.726A4.4 4.4 0 0 1 4.402 4.48c.523-.267 1.087-.377 1.726-.43C6.748 4 7.514 4 8.462 4zM6 14.9a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8H6.9a.9.9 0 0 1-.9-.9m.9-4.7a.9.9 0 1 0 0 1.8h1.7a.9.9 0 1 0 0-1.8zm7.6 4.7a.9.9 0 0 1 .9-.9h1.7a.9.9 0 0 1 0 1.8h-1.7a.9.9 0 0 1-.9-.9m-2.6-4.7a.9.9 0 1 0 0 1.8h5.2a.9.9 0 0 0 0-1.8z" clip-rule="evenodd"></path></svg>');function Iv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=ay();Me(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"subtitle-pained-icon",viewBox:"0 0 24 24",role:"img"},i));var r=_(o);ye(r,()=>{var s;return(s=e.children)!=null?s:pe}),Ie(),g(o),$(t,o)}var ly=ke('<svg><!><g fill="var(--btn-color, #fff)" fill-rule="evenodd" clip-rule="evenodd"><path d="M8.462 4h7.076c.948 0 1.714 0 2.334.05.64.053 1.203.163 1.726.43a4.4 4.4 0 0 1 1.922 1.922c.267.523.377 1.087.43 1.726.05.62.05 1.386.05 2.333v3.077c0 .948 0 1.713-.05 2.334-.053.64-.163 1.203-.43 1.725a4.4 4.4 0 0 1-1.922 1.923c-.523.267-1.087.377-1.726.43-.62.05-1.386.05-2.334.05H8.462c-.948 0-1.714 0-2.334-.05-.64-.053-1.203-.163-1.726-.43a4.4 4.4 0 0 1-1.922-1.923c-.267-.522-.377-1.086-.43-1.725C2 15.252 2 14.486 2 13.538v-3.077c0-.947 0-1.713.05-2.333.053-.64.163-1.203.43-1.726A4.4 4.4 0 0 1 4.402 4.48c.523-.266 1.087-.376 1.726-.428C6.748 4 7.514 4 8.462 4M6.275 5.845c-.528.043-.83.123-1.055.238A2.6 2.6 0 0 0 4.083 7.22c-.115.227-.195.527-.238 1.055C3.8 8.813 3.8 9.504 3.8 10.5v3c0 .995 0 1.687.045 2.225.043.528.123.829.238 1.055a2.6 2.6 0 0 0 1.137 1.136c.226.116.527.196 1.055.24.538.043 1.23.044 2.225.044h7c.995 0 1.687 0 2.226-.045.527-.043.828-.123 1.054-.239a2.6 2.6 0 0 0 1.137-1.136c.115-.226.195-.527.238-1.055.044-.538.045-1.23.045-2.225v-3c0-.995 0-1.687-.045-2.226-.043-.528-.123-.828-.238-1.054a2.6 2.6 0 0 0-1.137-1.137c-.226-.115-.527-.195-1.055-.238-.538-.044-1.23-.045-2.225-.045h-7c-.995 0-1.687 0-2.226.045"></path><path d="M6 14.9a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8H6.9a.9.9 0 0 1-.9-.9M6 11.1a.9.9 0 0 1 .9-.9h1.7a.9.9 0 1 1 0 1.8H6.9a.9.9 0 0 1-.9-.9M14.5 14.9a.9.9 0 0 1 .9-.9h1.7a.9.9 0 1 1 0 1.8h-1.7a.9.9 0 0 1-.9-.9M11 11.1a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8h-5.2a.9.9 0 0 1-.9-.9"></path></g></svg>');function dc(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=ly();Me(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"subtitle-empty-icon",viewBox:"0 0 24 24",role:"img"},i));var r=_(o);ye(r,()=>{var s;return(s=e.children)!=null?s:pe}),Ie(),g(o),$(t,o)}function kv(t,e){H(e,!0);let i=h(e,"isSubtitlesEnabled",3,!1),r=$e().ui.t,s=m(()=>i()?r("tooltip_subtitles_on"):r("tooltip_subtitles_off"));Qt(t,{testId:"btn-Subtitles",get ariaLabel(){return n(s)},get click(){return e.click},get ariaKeyShortCut(){return ps.KeyC},role:"button",children:(l,d)=>{var a=He(),u=ve(a);{var f=p=>{Iv(p,{})},v=p=>{dc(p,{})};R(u,p=>{i()?p(f):p(v,!1)})}$(l,a)},$$slots:{default:!0}}),F()}var dy=M('<span class="duration svelte-sz9er7" data-testid="video_duration"> </span>'),cy=M('<div><span class="current svelte-sz9er7" data-testid="current_time"> </span> <!></div>'),uy={hash:"svelte-sz9er7",code:".time.svelte-sz9er7 {display:flex;align-items:center;font-weight:500;font-variant-numeric:tabular-nums;padding:12px 6px;color:var(--controls-time);}.time.mobile.svelte-sz9er7 {padding:0 0 0 8px;}.current.svelte-sz9er7 {position:relative;}.duration.svelte-sz9er7 {opacity:0.7;}.duration.svelte-sz9er7:before {content:' / ';white-space:pre;}"};function cc(t,e){H(e,!0),z(t,uy);let i=h(e,"isMobile",3,!1),o=h(e,"isHidden",3,!1),r=h(e,"showDuration",3,!0),s=h(e,"ref",15),l=Nt(),d=le(!1),a=m(()=>en(e.duration)),u=m(()=>en(e.position));var f=cy();let v;var p=_(f),x=_(p,!0);g(p);var w=P(p,2);{var y=C=>{var T=dy(),E=_(T,!0);g(T),D(()=>me(E,n(a))),$(C,T)};R(w,C=>{r()&&C(y)})}g(f),Is(f,()=>Ul(o()&&l.features.usePerformanceFix,d,l.disableInvisibleComponentsTimeout)),at(f,C=>s(C),()=>s()),D(C=>{v=re(f,1,"time svelte-sz9er7",null,v,C),me(x,n(u))},[()=>({mobile:i()})]),$(t,f),F()}var pc=require("@vkontakte/videoplayer-shared/es2015");var py=ke('<svg xmlns="http://www.w3.org/2000/svg" class="icon svelte-v40k9i" aria-hidden="true"><g fill="var(--btn-color, #fff)" fill-rule="evenodd"><path d="M2 9.94595C2 9.41522 2.41461 8.97693 2.94453 8.94749L5.775 8.79025C6.24338 8.76422 6.6877 8.57439 7.03029 8.25394L11.3169 4.24433C11.9558 3.64667 13 4.09974 13 4.97464V19.0253C13 19.9002 11.9558 20.3533 11.3169 19.7556L7.03029 15.746C6.6877 15.4255 6.24337 15.2357 5.77499 15.2097L2.94453 15.0524C2.41461 15.023 2 14.5847 2 14.054V9.94595Z"></path><path class="cross svelte-v40k9i" d="M22.4636 8.26359C22.8151 7.91212 23.3849 7.91212 23.7364 8.26359C24.0879 8.61506 24.0879 9.18491 23.7364 9.53638L21.2728 12L23.7364 14.4636C24.0879 14.815 24.0879 15.3849 23.7364 15.7364C23.3849 16.0878 22.8151 16.0878 22.4636 15.7364L20 13.2728L17.5364 15.7364C17.1849 16.0878 16.6151 16.0878 16.2636 15.7364C15.9121 15.3849 15.9121 14.815 16.2636 14.4636L18.7272 12L16.2636 9.53638C15.9121 9.18491 15.9121 8.61506 16.2636 8.26359C16.6151 7.91212 17.1849 7.91212 17.5364 8.26359L20 10.7272L22.4636 8.26359Z"></path><path class="wave1 svelte-v40k9i" d="M15.7484 8.89758C16.0811 8.52829 16.6501 8.49862 17.0194 8.83132C17.8726 9.59994 18.4 10.7425 18.4 12C18.4 13.2575 17.8726 14.4001 17.0194 15.1687C16.6501 15.5014 16.0811 15.4717 15.7484 15.1024C15.4157 14.7331 15.4453 14.1641 15.8146 13.8314C16.2849 13.4077 16.6 12.753 16.6 12C16.6 11.2471 16.2849 10.5923 15.8146 10.1686C15.4453 9.83595 15.4157 9.26687 15.7484 8.89758Z"></path><path class="wave2 svelte-v40k9i" d="M18.8141 6.67424C19.1924 6.35184 19.7605 6.39716 20.0829 6.77547C21.2779 8.17774 22 10.0053 22 12C22 13.9946 21.2779 15.8222 20.0829 17.2245C19.7605 17.6028 19.1924 17.6481 18.8141 17.3257C18.4358 17.0033 18.3905 16.4353 18.7129 16.057C19.639 14.9702 20.2 13.5535 20.2 12C20.2 10.4464 19.639 9.02976 18.7129 7.943C18.3905 7.56469 18.4358 6.99665 18.8141 6.67424Z"></path></g></svg>'),fy={hash:"svelte-v40k9i",code:`.icon.svelte-v40k9i {display:block;width:24px;height:24px;}.icon.svelte-v40k9i .cross:where(.svelte-v40k9i) {visibility:hidden;}.icon[data-value='off'].svelte-v40k9i .wave1:where(.svelte-v40k9i),
168
+ .icon[data-value='off'].svelte-v40k9i .wave2:where(.svelte-v40k9i) {visibility:hidden;}.icon[data-value='off'].svelte-v40k9i .cross:where(.svelte-v40k9i) {visibility:visible;}.icon[data-value='mid'].svelte-v40k9i .wave2:where(.svelte-v40k9i),
169
+ .icon[data-value='min'].svelte-v40k9i .wave2:where(.svelte-v40k9i) {visibility:hidden;}`};function na(t,e){z(t,fy);let i=h(e,"volume",3,1),o=h(e,"muted",3,!1),r=(d,a)=>a?"off":d>.5?"max":d>.2?"mid":d>0?"min":"off",s=m(()=>r(i(),o()));var l=py();D(()=>{var d;Ke(l,"data-value",n(s)),Ke(l,"data-testid",`volume-${(d=n(s))!=null?d:""}-icon`)}),$(t,l)}var Oo=require("@vkontakte/videoplayer-shared/es2015");var ip=require("@vkontakte/videoplayer-shared/es2015");var P0=require("@vkontakte/videoplayer-shared/es2015");var vy=M('<div class="overlay"><!></div>');function Av(t,e){H(e,!0);let[i,o]=Ne(),r=()=>S(l,"$overlayContainer$",i),l=$e().ui.overlayContainer$,d=j(void 0),a=p=>{!p||!n(d)||!p.contains(n(d))||p.removeChild(n(d))},u=p=>{!p||!n(d)||p.contains(n(d))||p.appendChild(n(d))};We(()=>{u(r())}),Ht(()=>(u(r()),()=>a(r())));var f=vy(),v=_(f);ye(v,()=>{var p;return(p=e.children)!=null?p:pe}),g(f),at(f,p=>N(d,p),()=>n(d)),$(t,f),F(),o()}var my=M('<div class="tooltip svelte-hxlyne"><div class="content svelte-hxlyne"> </div> <div class="tooltip-pointer svelte-hxlyne"></div></div>'),gy=M("<div><!></div> <!>",1),hy={hash:"svelte-hxlyne",code:'.tooltip-wrapper.svelte-hxlyne {display:flex;flex-direction:column;min-width:0;}.full-width.svelte-hxlyne {width:100%;}.tooltip.svelte-hxlyne {position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;left:0;}.content.svelte-hxlyne {display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8);}.tooltip-pointer.svelte-hxlyne {position:absolute;bottom:0;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;}'};function Wa(t,e){H(e,!0),z(t,hy);let[i,o]=Ne(),r=()=>S(X,"$overlayContainer$",i),s=()=>S(U,"$containerSize",i),l=h(e,"isMobile",3,!1),d=h(e,"content",3,""),a=h(e,"active",15,!1),u=h(e,"translateX",3,0),f=h(e,"translateY",3,0),v=h(e,"isFullWidthWrapper",3,!1),p=h(e,"maxTooltipWidth",3,void 0),x=h(e,"placement",3,"top"),w=h(e,"onVisibilityChange",3,P0.noop),y=5,C=j(void 0),T=j(void 0),E,O=j(0),A=j(0),I=j(0),L=j(0),Z=Nt(),B=$e(),U=B.ui.playerSize,X=B.ui.overlayContainer$;We(()=>{Pt(()=>{w()(a())})});let de=B.getLogger().createComponentLog("Tooltip component"),K=()=>{if(!r()||!n(T)||!n(C))return;N(A,y);let ie=r().getBoundingClientRect(),Se=n(C).getBoundingClientRect(),Ce=Se.width,Be=n(T).clientWidth,Ye=s().width,je=(Ce-Be)/2,Ue=Se.left+u()-ie.left,Je=Ue+je,Ft=Se.top+f()-ie.top,ot=Be/2-y,zt=Je<8,Zt=Je+Be>Ye-8;zt&&(Je=8,ot=Ue+Se.width/2-2.5*y),Zt&&(Je=Ye-8-Be,ot=Se.left-ie.left+Se.width/2-Je-y),N(I,Je,!0),N(L,Ft),N(O,ot,!0)},ue=()=>{!r()||!n(T)||!n(C)||N(A,-y)},J=()=>{if(!r()||!n(T)||!n(C))return;N(O,y);let ie=r().getBoundingClientRect(),Se=n(C).getBoundingClientRect(),Ce=Se.height,Be=n(T).clientHeight,Ye=(Ce-Be)/2+Be,je=Se.left+u()-ie.left-n(T).clientWidth,Ue=2,Je=je-y;Je<8&&(Je=8);let ot=Se.top+f()-ie.top+Ye,zt=Ue-Ye/2,Zt=Ue-y;N(I,Je,!0),N(L,ot),N(A,zt),N(O,Zt)},ge=()=>{!r()||!n(T)||!n(C)||N(O,-y)},se=()=>{switch(x()){case"top":K();break;case"bottom":ue();break;case"left":J();break;default:ge()}},ce=()=>{try{if(!r()||!n(C))return;se(),a(!0)}catch(ie){de({message:String(ie)})}},Le=()=>{a(!1)},we=()=>{n(T)&&(E||(E=window.setTimeout(ce,Z.controls.hideTimeoutTooltips)),a()&&ce())},te=()=>{Le(),window.clearTimeout(E),E=void 0},De=(ie,Se,Ce)=>{let Be="";switch(x()){case"top":Be=`transform: translate(${ie}px, ${Se}px);`;break;case"bottom":Be=`transform: translate(${ie}px, ${Se}px); top: auto; bottom: 100%;`;break;case"left":Be=`transform: translate(${ie}px, ${Se}px); left: 0; right: auto;`;break;default:Be=`transform: translate(${ie}px, ${Se}px);`}return Be+=` max-width: ${p()===void 0?"auto":`${p()}px`};`,Be+=` opacity: ${Ce?1:0}; visibility: ${Ce?"visible":"hidden"}`,Be},fe=(ie,Se)=>{let Ce="";switch(x()){case"top":Ce=`transform: translate(${ie}px, ${Se}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Ce=`transform: translate(${ie}px, ${Se}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Ce=`transform: translate(${ie}px, ${Se}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Ce=`transform: translate(${ie}px, ${Se}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Ce},k=m(()=>De(n(I),n(L),a())),Qe=m(()=>fe(n(O),n(A)));Ht(se),pn(()=>window.clearTimeout(E));var Ve=gy(),q=ve(Ve);let oe;q.__mousemove=we,q.__mousedown=te,q.__mouseup=function(...ie){var Se;(Se=e.disableMouseupTooltipShow?void 0:we)==null||Se.apply(this,ie)};var Fe=_(q);ye(Fe,()=>{var ie;return(ie=e.children)!=null?ie:pe}),g(q),at(q,ie=>N(C,ie),()=>n(C));var Ge=P(q,2);{var _e=ie=>{Av(ie,{children:(Se,Ce)=>{var Be=my(),Ye=_(Be),je=_(Ye,!0);g(Ye);var Ue=P(Ye,2);g(Be),at(Be,Je=>N(T,Je),()=>n(T)),D(()=>{et(Be,n(k)),me(je,d()),et(Ue,n(Qe))}),$(Se,Be)},$$slots:{default:!0}})};R(Ge,ie=>{d()&&!l()&&ie(_e)})}D(ie=>oe=re(q,1,"tooltip-wrapper svelte-hxlyne",null,oe,ie),[()=>({"full-width":v()})]),wt("mouseenter",q,we),wt("mouseleave",q,te),$(t,Ve),F(),o()}ct(["mousemove","mousedown","mouseup"]);var M0=t=>{t.stopPropagation()},_y=M("<div><!></div>"),by={hash:"svelte-p9r045",code:".btn-container.svelte-p9r045 {position:relative;display:flex;align-items:center;height:100%;transition:var(--button-hover-transition);will-change:opacity;-webkit-tap-highlight-color:transparent;}.w-max.svelte-p9r045 {width:100%;min-width:0;}"};function Ro(t,e){H(e,!0),z(t,by);let[i,o]=Ne(),r=()=>S(u,"$isGraphOpened$",i),s=()=>S(a,"$isMobile",i),l=$e(),d=To(),a=l.ui.isMobile,u=d.graphIsOpened$,f=l.ui.t,v=h(e,"className",3,""),p=h(e,"disabled",3,!1),x=h(e,"hasTooltip",3,!0),w=h(e,"ref",15,void 0),y=h(e,"width",15,void 0),C=h(e,"isFullWidthTooltip",3,!0),T=h(e,"tooltipContent",3,""),E=h(e,"tooltipActive",3,!1),O=h(e,"tooltipPlacement",3,"top"),A=h(e,"disabledTooltipContent",19,()=>f("tooltip_button_disabled")),I=h(e,"isAriaHidden",3,!1),L=h(e,"onTooltipVisibilityChange",3,ip.noop),Z=h(e,"initialTranslateXPx",3,0),B=h(e,"initialTranslateYPx",19,()=>-18),U=h(e,"mouseEnter",3,ip.noop),X=h(e,"mouseLeave",3,ip.noop),de=m(()=>p()?r()?f("tooltip_disabled_when_graph_on"):A():T());var K=_y();K.__pointerdown=[M0],K.__click=[M0];var ue=_(K);{var J=se=>{Wa(se,{get content(){return n(de)},get translateX(){return Z()},get translateY(){return B()},get isFullWidthWrapper(){return C()},get active(){return E()},get placement(){return O()},get onVisibilityChange(){return L()},get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},children:(ce,Le)=>{var we=He(),te=ve(we);ye(te,()=>{var De;return(De=e.children)!=null?De:pe}),$(ce,we)},$$slots:{default:!0}})},ge=se=>{var ce=He(),Le=ve(ce);ye(Le,()=>{var we;return(we=e.children)!=null?we:pe}),$(se,ce)};R(ue,se=>{x()&&n(de)&&!s()?se(J):se(ge,!1)})}g(K),at(K,se=>w(se),()=>w()),D(()=>{var se;re(K,1,`btn-container ${(se=v())!=null?se:""}`,"svelte-p9r045"),Ke(K,"aria-hidden",I()||null)}),wt("mouseenter",K,function(...se){var ce;(ce=U())==null||ce.apply(this,se)}),wt("mouseleave",K,function(...se){var ce;(ce=X())==null||ce.apply(this,se)}),Mn(K,"clientWidth",y),$(t,K),F(),o()}ct(["pointerdown","click"]);var $y=ke('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><rect width="20" height="20" rx="10" fill="var(--btn-color, #fff)"></rect><path d="M12.5259 8.68864L12.587 8.87536L12.3702 8.23648C12.236 7.84095 11.8295 7.60563 11.4192 7.68593C10.9471 7.77831 10.6508 8.24892 10.7718 8.71381L10.8968 9.19361L10.6671 8.33855C10.5566 7.92714 10.1475 7.67011 9.72832 7.74872C9.32282 7.82476 9.04808 8.18606 9.06319 8.57993L8.34064 5.64592C8.21338 5.12912 7.64646 4.85578 7.1621 5.07767C6.79216 5.24715 6.59467 5.65495 6.69131 6.0498L7.98547 11.3373L6.87 10.178C6.52545 9.81987 5.94024 9.86103 5.64933 10.2638C5.44455 10.5474 5.44907 10.9312 5.66048 11.2098L7.89246 14.1518C7.89246 14.1518 9.12075 15.9833 12.1932 15.3769C14.6243 14.8972 15.4434 12.7097 14.7748 10.4997L14.2213 8.20869C14.0975 7.69621 13.5537 7.40646 13.0585 7.58916C12.614 7.75319 12.3788 8.23875 12.5259 8.68864Z"></path></svg>');function uc(t,e){"use strict";var i=$y(),o=_(i),r=P(o);g(i),D(()=>{Ke(i,"data-testid",(e.completed,"interactive-episode-completed-icon")),Ke(o,"fill-opacity",e.completed?1:.24),Ke(r,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),$(t,i)}var yy=M("<div><!></div>"),xy={hash:"svelte-bklhpe",code:".interactive-episode-icon.svelte-bklhpe {width:20px;height:20px;position:absolute;transform:translateX(-50%);cursor:default;}.interactive-episode-icon.disabled.svelte-bklhpe {pointer-events:none;opacity:0.4;}"};function Pv(t,e){H(e,!0),z(t,xy);let o=$e().ui.t,r=j(0),s=m(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));Ro(t,{get tooltipContent(){return n(s)},initialTranslateXPx:-10,initialTranslateYPx:-10,get disabled(){return e.disabled},get width(){return n(r)},isAriaHidden:!0,isFullWidthTooltip:!1,children:(l,d)=>{var a=yy();let u;var f=_(a);let v=m(()=>!!e.videoEpisode.completed);uc(f,{get completed(){return n(v)}}),g(a),D(p=>{u=re(a,1,"interactive-episode-icon svelte-bklhpe",null,u,p),et(a,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),Mn(a,"clientWidth",p=>N(r,p)),$(l,a)},$$slots:{default:!0}}),F()}var wy=M('<div><div class="video-episode-inner svelte-1uc247w"><div class="video-episode-loaded svelte-1uc247w"></div> <div></div></div></div>'),Sy=M('<div class="video-episodes-wrap svelte-1uc247w"></div>'),Cy={hash:"svelte-1uc247w",code:`.video-episodes-wrap.svelte-1uc247w {position:absolute;width:100%;height:100%;}.video-episode.svelte-1uc247w {position:absolute;height:calc(3 * var(--slider-height));box-sizing:border-box;margin-top:calc(-1 * var(--slider-height));padding:var(--slider-height) var(--slider-video-episode-gap);transition:transform 0.2s;}.video-episode.svelte-1uc247w:first-child {padding-left:0;}.video-episode.svelte-1uc247w:last-child {padding-right:0;}.video-episode.svelte-1uc247w:not(.disabled):where(:hover, :active) {transform:scaleY(1.5);}.video-episode-inner.svelte-1uc247w,
170
+ .video-episode-loaded.svelte-1uc247w,
171
+ .video-episode-filled.svelte-1uc247w {position:absolute;height:var(--slider-height);border-radius:var(--slider-radius);}.video-episode-inner.svelte-1uc247w {position:absolute;overflow:hidden;width:calc(100% - 2 * var(--slider-video-episode-gap));background:var(--slider-bg);}.video-episode.svelte-1uc247w:first-child .video-episode-inner:where(.svelte-1uc247w),
172
+ .video-episode.svelte-1uc247w:last-child .video-episode-inner:where(.svelte-1uc247w) {width:calc(100% - var(--slider-video-episode-gap));}.video-episode-loaded.svelte-1uc247w {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s;}.video-episode-filled.svelte-1uc247w {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}`};function Mv(t,e){z(t,Cy);let i=h(e,"videoEpisodes",19,()=>[]);var o=Sy();Ti(o,21,i,r=>r.from,(r,s)=>{var l=wy();let d;var a=_(l),u=_(a),f=P(u,2);let v;g(a),g(l),D((p,x)=>{d=re(l,1,"video-episode svelte-1uc247w",null,d,p),et(l,`left: ${n(s).from}%; width: ${n(s).width}%`),et(u,`transform: translateX(${n(s).loadedWidth/n(s).width*100}%)`),v=re(f,1,"video-episode-filled svelte-1uc247w",null,v,x),et(f,`transform: translateX(${n(s).filledWidth/n(s).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),$(r,l)}),g(o),$(t,o)}function Ty(t,e,i,o,r,s,l){if(t.preventDefault(),e()&&N(i,e().getBoundingClientRect(),!0),o()||n(r)||!e())return;N(r,!0);let d=s(t.clientX,t.clientY);l()(d,t),e().setPointerCapture(t.pointerId)}function Ey(t,e,i,o,r,s,l,d){if(t.preventDefault(),e())return;let a=i(t.clientX,t.clientY),u=o(t.clientX);r()(a,u,n(s).width,t),n(l)&&d()(a)}function Iy(t,e,i,o,r){if(t.preventDefault(),e()||!n(i))return;N(i,!1);let s=o(t.clientX,t.clientY);r()(s,t)}function ky(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}function Ay(t,e,i,o,r,s){let l=e(t.clientX,t.clientY);i()&&o()(l),N(r,!1),s()(l)}var Py=M("<div></div>"),My=M('<div class="bars svelte-12bsb23"><div class="loaded svelte-12bsb23"></div> <div></div></div>'),Ly=M('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),Vy={hash:"svelte-12bsb23",code:`.interactive-icons.svelte-12bsb23 {position:absolute;width:calc(100% - 20px);top:-28px;}.interactive-icons.mobile.svelte-12bsb23 {top:-10px;}.slider.svelte-12bsb23 {position:relative;height:var(--slider-height);border-radius:var(--slider-radius);cursor:pointer;transition:opacity 0.2s;will-change:opacity, transform;width:100%;touch-action:none;-webkit-tap-highlight-color:transparent;}.no-handle.svelte-12bsb23 {cursor:default;}.slider.svelte-12bsb23:before {
173
+ /* hit area */content:'';position:absolute;left:0;right:0;top:calc(-1 * (var(--controls-height) / 2 - var(--slider-height)) / 2);height:calc(var(--controls-height) / 2);}.bars.svelte-12bsb23 {position:absolute;width:100%;height:100%;border-radius:var(--slider-radius);overflow:hidden;background:var(--slider-bg);}.loaded.svelte-12bsb23 {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s;will-change:transform;}.filled.svelte-12bsb23 {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}.slider.square.svelte-12bsb23,
174
+ .slider.square.svelte-12bsb23 > .bars:where(.svelte-12bsb23),
175
+ .slider.square.svelte-12bsb23 .loaded:where(.svelte-12bsb23),
176
+ .slider.square.svelte-12bsb23 .filled:where(.svelte-12bsb23) {border-radius:unset;}.filled.active-live.svelte-12bsb23 {background-color:var(--timeline-slider-filled-active-live-bg);}.filled.ads.svelte-12bsb23 {background-color:var(--slider-filled-ads);}.handleWrap.svelte-12bsb23 {position:absolute;left:-100%;width:100%;}.handle.svelte-12bsb23 {position:absolute;width:var(--slider-handle-size);height:var(--slider-handle-size);right:calc(-1 * var(--slider-handle-size) / 2);top:calc((var(--slider-height) - var(--slider-handle-size)) / 2);border-radius:50%;background-color:var(--slider-handle-bg);visibility:hidden;opacity:0;transform:scale(0);transition:opacity 0.2s, transform 0.2s;will-change:opacity, transform;}.handle.active-live.svelte-12bsb23 {background-color:var(--timeline-slider-handle-active-live-bg);}.handle-always-visible.svelte-12bsb23 .handle:where(.svelte-12bsb23),
177
+ .slider.svelte-12bsb23:hover .handle:where(.svelte-12bsb23),
178
+ .slider-dragging.svelte-12bsb23 .handle:where(.svelte-12bsb23) {visibility:visible;opacity:1;transform:scale(1);}.slider-dragging.svelte-12bsb23 .handle:where(.svelte-12bsb23) {transform:scale(1.3);}.slider-vertical.svelte-12bsb23 {position:absolute;left:-8px;top:-18px;transform-origin:0 0;transform:rotate(-90deg);}.slider.disabled.svelte-12bsb23 {cursor:default;opacity:0.4;}`};function Ka(t,e){H(e,!0),z(t,Vy);let i=h(e,"ref",15,void 0),o=h(e,"className",3,""),r=h(e,"testId",3,void 0),s=h(e,"isHidden",3,!1),l=h(e,"isVertical",3,!1),d=h(e,"isActiveLive",3,!1),a=h(e,"isMobile",3,!1),u=h(e,"squareBorders",3,!1),f=h(e,"videoEpisodes",19,()=>[]),v=h(e,"withWheelHandler",3,!1),p=h(e,"isInteractive",3,!1),x=h(e,"disabled",3,!1),w=h(e,"hideHandel",3,!1),y=h(e,"onPointerDown",3,Oo.noop),C=h(e,"onHandleMove",3,Oo.noop),T=h(e,"onPointerUp",3,Oo.noop),E=h(e,"onPointerEnter",3,Oo.noop),O=h(e,"onPointerMove",3,Oo.noop),A=h(e,"onPointerLeave",3,Oo.noop),I=h(e,"onMouseEnter",3,Oo.noop),L=h(e,"onMouseLeave",3,Oo.noop),Z=h(e,"onWheelUp",3,Oo.noop),B=h(e,"onWheelDown",3,Oo.noop),U=h(e,"onWheelLeft",3,Oo.noop),X=h(e,"onWheelRight",3,Oo.noop),de=h(e,"onDisabledClick",3,Oo.noop),K=h(e,"loadedProgress",3,0),ue=h(e,"filledProgress",3,0),J=h(e,"handleProgress",3,0),ge=h(e,"ariaLabel",3,""),se=h(e,"ariaValueMin",3,void 0),ce=h(e,"ariaValueMax",3,void 0),Le=h(e,"ariaValueNow",3,void 0),we=h(e,"ariaValueText",3,""),te=h(e,"onContextMenu",3,Oo.noop),De=h(e,"handleAlwaysVisible",3,!1),fe=Nt(),k=j(void 0),Qe=j(!1),Ve=m(()=>{var Te;return(Te=ce())!=null?Te:0}),q=m(()=>{var Te;return(0,Oo.isNonNullable)(f())&&((Te=f()[f().length-1])==null?void 0:Te.time)<n(Ve)}),oe=m(()=>(0,Oo.isNonNullable)(f())&&f().length&&n(q)&&n(Ve)?Ye(K()*100,ue()*100):[]);function Fe(Te){if(Te.preventDefault(),i()&&N(k,i().getBoundingClientRect(),!0),x())return;let ae=Ce(Te.clientX,Te.clientY),$t=Be(Te.clientX);E()(ae,$t,n(k).width)}function Ge(Te){Te.preventDefault(),!x()&&A()()}function _e(){I()()}function ie(){L()()}function Se(Te){x()||v()&&(Te.preventDefault(),Te.deltaY<0?Z()():Te.deltaY>0?B()():Te.deltaX>0?X()():U()())}function Ce(Te,ae){return l()?Math.max(0,Math.min(1,(n(k).height-(ae-n(k).top))/n(k).height)):Math.min(Math.max(Te-n(k).x,0),n(k).width)/n(k).width}function Be(Te){return Math.min(Math.max(Te-n(k).x,0),n(k).width)}function Ye(Te,ae){let $t=fe.features.episodesClustering&&!p()?fe.episodeMinWidthPc:0,It=[],ut=f()[0].time/n(Ve)*100,Tt=0,he=0;for(let dt=1;dt<f().length;dt++)Tt=f()[dt].time/n(Ve)*100,Tt-ut>$t&&(It.push({from:ut,width:Math.max(0,Tt-ut),loadedWidth:Math.max(0,Math.min(Tt,Te)-ut),filledWidth:Math.max(0,Math.min(Tt,ae)-ut),interactive:f()[dt-1].interactive,completed:f()[dt-1].completed}),ut=f()[dt].time/n(Ve)*100,he++);let lt={from:ut,width:Math.max(0,100-ut),loadedWidth:Math.max(0,Math.min(Te,100)-ut),filledWidth:Math.max(0,Math.min(ae,100)-ut),interactive:f()[he].interactive,completed:f()[he].completed};100-ut<$t?(he-=1,It[he].width+=100-ut,It[he].loadedWidth+=Math.max(0,Math.min(Te,100)-ut),It[he].filledWidth+=Math.max(0,Math.min(ae,100)-ut)):It[he]=lt;let st=f()[0].time;if(st!==0){let dt=st/n(Ve)*100;It.unshift({from:0,width:dt,loadedWidth:Math.min(dt,Te),filledWidth:Math.min(dt,ae)})}return It}function je(Te){return Math.max(0,Math.min(100,Te*100))}var Ue=Ly(),Je=ve(Ue);{var Ft=Te=>{var ae=Py();let $t;Ti(ae,21,()=>n(oe),It=>It.from,(It,ut)=>{var Tt=He(),he=ve(Tt);{var lt=st=>{Pv(st,{get videoEpisode(){return n(ut)},get disabled(){return x()}})};R(he,st=>{n(ut).interactive&&st(lt)})}$(It,Tt)}),g(ae),D(It=>$t=re(ae,1,"interactive-icons svelte-12bsb23",null,$t,It),[()=>({mobile:a(),hidden:a()&&!n(Qe)})]),$(Te,ae)};R(Je,Te=>{p()&&Te(Ft)})}var ot=P(Je,2);let zt;ot.__pointerdown=[Ty,i,k,x,Qe,Ce,y],ot.__pointermove=[Ey,x,Ce,Be,O,k,Qe,C],ot.__pointerup=[Iy,x,Qe,Ce,T],ot.__click=[ky,x,de,Ce],ot.__contextmenu=[Ay,Ce,x,de,Qe,te];var Zt=_(ot);{var Et=Te=>{Mv(Te,{get videoEpisodes(){return n(oe)},get disabled(){return x()},get isMobile(){return a()}})},oi=Te=>{var ae=My(),$t=_(ae),It=P($t,2);let ut;g(ae),D((Tt,he,lt)=>{et($t,Tt),ut=re(It,1,"filled svelte-12bsb23",null,ut,he),et(It,lt)},[()=>`transform: translateX(${je(K())}%);`,()=>({"active-live":d()}),()=>`transform: translateX(${je(ue())}%);`]),$(Te,ae)};R(Zt,Te=>{n(oe).length?Te(Et):Te(oi,!1)})}var Rt=P(Zt,2);let Ee;var Pe=_(Rt);let ee;g(Rt),g(ot),at(ot,Te=>i(Te),()=>i()),D((Te,ae,$t,It)=>{var ut,Tt;zt=re(ot,1,`slider ${(ut=o())!=null?ut:""}`,"svelte-12bsb23",zt,Te),Ke(ot,"aria-label",ge()),Ke(ot,"aria-valuemin",se()),Ke(ot,"aria-valuemax",ce()),Ke(ot,"aria-valuenow",Le()),Ke(ot,"aria-valuetext",we()),Ke(ot,"data-testid",(Tt=r())!=null?Tt:null),Ee=re(Rt,1,"handleWrap svelte-12bsb23",null,Ee,ae),et(Rt,$t),ee=re(Pe,1,"handle svelte-12bsb23",null,ee,It)},[()=>({disabled:x(),"slider-dragging":n(Qe),hidden:s(),"handle-always-visible":De(),"slider-vertical":l(),"no-handle":w(),square:u()}),()=>({hidden:w()}),()=>`transform: translateX(${je(J())}%);`,()=>({"active-live":d()})]),wt("pointerenter",ot,Fe),wt("pointerleave",ot,Ge),wt("mouseenter",ot,_e),wt("mouseleave",ot,ie),wt("wheel",ot,Se),$(t,Ue),F()}ct(["pointerdown","pointermove","pointerup","click","contextmenu"]);var ao=(t,e)=>Ma[t]>=Ma[e],L0=(t,e)=>Ma[t]<Ma[e],Ms=(t,e)=>Ma[t]<=Ma[e],V0=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var Oy=M("<div><!></div>"),Ny=M("<div><!> <!></div>"),Dy={hash:"svelte-1auih1j",code:".volumeBar-container.svelte-1auih1j {display:flex;align-items:center;}.volumeBar-container.vertical.svelte-1auih1j, .vertical.svelte-1auih1j .tooltip-wrapper, .vertical.svelte-1auih1j .btn {width:40px;}.volumeBar.svelte-1auih1j {display:flex;align-items:center;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.svelte-1auih1j {padding:0 8px 0 0;width:0;}"};function Lv(t,e){var ie,Se;H(e,!0),z(t,Dy);let[i,o]=Ne(),r=()=>S(E,"$isAudioAvailable$",i),s=()=>S(v,"$muted$",i),l=()=>S(f,"$volume$",i),d=()=>S(y,"$currentGridType$",i),a=$e(),u=Nt(),f=a.state.volume$,v=a.state.muted$,{setVolume:p,startVolumeChanging:x,stopVolumeChanging:w}=a.actions.internal,y=a.ui.currentGridType$,C=(ie=a.callbacks)==null?void 0:ie.onAudioDoesNotExistHint,T=(Se=a.callbacks)==null?void 0:Se.onAudioDisabledHint,E=a.state.isAudioAvailable$,O=a.state.isAudioDisabled,A=a.ui.t,I=j(!1),L,Z=m(()=>e.isAds||r()),B=m(()=>!n(Z)||s()||l()===0),U=m(()=>Ms(d(),"s")),X=m(()=>n(U)?"":n(B)?!r()||O?A("tooltip_sound_unavailable"):A("tooltip_volume"):A("tooltip_volume_muted")),de=m(()=>n(B)?A("tooltip_volume"):A("tooltip_volume_muted")),K=m(()=>n(B)?0:l()),ue=!1,J=m(()=>e.isAds?!1:O?!T:r()?!1:!C);function ge(Ce){x(),p(Ce)}function se(){Xu(a,l(),u.controls.volumeStepWheel)}function ce(){Ju(a,l(),u.controls.volumeStepWheel)}function Le(Ce){p(Ce)}function we(Ce){p(Ce),w()}function te(){ue=!0}function De(){ue=!1,Qe()}function fe(){clearTimeout(L),N(I,!0)}function k(){Qe()}function Qe(){L=window.setTimeout(()=>{ue||N(I,!1)},u.controls.volumeBarTimeout)}function Ve(Ce){Ce.preventDefault(),Ce.deltaY<0?se():Ce.deltaY>0&&ce()}var q=Ny();let oe;var Fe=_(q);Wa(Fe,{get content(){return n(X)},translateY:-18,children:(Ce,Be)=>{let Ye=m(()=>n(U)?"btn-volume-vertical":"btn-volume-horizontal");Qt(Ce,{className:"btn-full-opacity",get disabled(){return n(J)},get testId(){return n(Ye)},get ariaLabel(){return n(de)},get click(){return e.click},get ariaKeyShortCut(){return ps.KeyM},role:"button",children:(je,Ue)=>{na(je,{get volume(){return l()},get muted(){return n(B)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var Ge=P(Fe,2);{var _e=Ce=>{var Be=Oy();let Ye;var je=_(Be);let Ue=m(()=>n(U)?"volumeBar-slider-vertical":""),Je=m(()=>n(U)&&!n(I)),Ft=m(()=>n(U)?te:pc.noop),ot=m(()=>n(U)?De:pc.noop),zt=m(()=>Math.round(n(K)*100)),Zt=m(()=>`${Math.round(n(K)*100)}%`),Et=m(()=>n(U)?"volume-slider-vertical":"volume-slider");Ka(je,{get className(){return n(Ue)},get isHidden(){return n(Je)},get isVertical(){return n(U)},withWheelHandler:!0,onWheelUp:se,onWheelDown:ce,onPointerDown:ge,onHandleMove:Le,onPointerUp:we,get onPointerEnter(){return n(Ft)},get onPointerLeave(){return n(ot)},ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u0438",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return n(zt)},get ariaValueText(){return n(Zt)},get filledProgress(){return n(K)},get handleProgress(){return n(K)},get testId(){return n(Et)}}),g(Be),D(oi=>Ye=re(Be,1,"volumeBar svelte-1auih1j",null,Ye,oi),[()=>({"volumeBar-vertical":n(U)})]),$(Ce,Be)};R(Ge,Ce=>{n(Z)&&Ce(_e)})}g(q),D(Ce=>oe=re(q,1,"volumeBar-container svelte-1auih1j",null,oe,Ce),[()=>({vertical:n(U)})]),wt("mouseenter",q,function(...Ce){var Be;(Be=n(U)?fe:pc.noop)==null||Be.apply(this,Ce)}),wt("mouseleave",q,function(...Ce){var Be;(Be=n(U)?k:pc.noop)==null||Be.apply(this,Ce)}),wt("wheel",q,Ve),$(t,q),F(),o()}var R0=require("@vkontakte/videoplayer-shared/es2015");var By=ke('<svg><!><g fill-rule="evenodd"><path d="M4.58 13.979a.99.99 0 0 1 .99-.99h4.451a.99.99 0 0 1 .99.99v4.452a.99.99 0 0 1-1.98 0v-2.05l-3.319 3.322a1 1 0 0 1-1.414 0v-.001a1 1 0 0 1 0-1.414l3.32-3.32H5.57a.99.99 0 0 1-.99-.99m10.388-6.36 3.32-3.322a1 1 0 0 1 1.414 0v.001a1 1 0 0 1 0 1.414l-3.32 3.32h2.049a.99.99 0 0 1 0 1.979h-4.442a1 1 0 0 1-1-1V5.569a.99.99 0 1 1 1.98 0z" class="_exit"></path><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.072l3.363-3.365a1 1 0 0 1 1.414 0l.016.016a1 1 0 0 1 0 1.414L7.429 18H9.5a1 1 0 0 1 1 1M18 7.429l-3.363 3.364a1 1 0 0 1-1.414 0l-.016-.016a1 1 0 0 1 0-1.414L16.571 6H14.5a1 1 0 0 1 0-2H19a1 1 0 0 1 1 1v4.5a1 1 0 0 1-2 0z" class="_enter"></path></g></svg>');function Vv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=By();Me(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"var(--btn-color, #fff)","aria-hidden":"true",viewBox:"0 0 24 24",role:"img"},i));var r=_(o);ye(r,()=>{var s;return(s=e.children)!=null?s:pe}),Ie(),g(o),$(t,o)}var Hy={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
179
+ svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function Rv(t,e){z(t,Hy);let i=h(e,"isFullscreen",8,!1),o=En(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");Vv(t,{get"data-testid"(){return n(o)},fill:"var(--btn-color, #fff)"})}function fc(t,e){H(e,!0);let i=h(e,"isFullscreen",3,!1),o=h(e,"click",3,R0.noop),r=$e(),s=r.ui.isFullscreenOpenedByKeyboard,l=r.ui.t,d=m(()=>i()?l("tooltip_fullscreen_on"):l("tooltip_fullscreen_off"));Qt(t,{testId:"btn-fullscreen",get ariaLabel(){return n(d)},click:u=>{let f=ta(u);s.set(f),o()()},get ariaKeyShortCut(){return ps.KeyF},role:"button",children:(u,f)=>{Rv(u,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),F()}var Fy=ke('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4.265 4.265C3 5.531 3 7.567 3 11.64v.72c0 4.073 0 6.11 1.265 7.375C5.531 21 7.567 21 11.64 21h.72c4.073 0 6.11 0 7.375-1.265C21 18.469 21 16.433 21 12.36v-.72c0-4.073 0-6.11-1.265-7.375C18.469 3 16.433 3 12.36 3h-.72C7.567 3 5.53 3 4.265 4.265M6 8.5c.096 4.682 2.556 7.5 6.61 7.5h.235v-2.679c1.476.15 2.577 1.254 3.026 2.679H18c-.578-2.132-2.075-3.31-3.005-3.76.93-.558 2.246-1.908 2.556-3.74h-1.937c-.406 1.49-1.615 2.84-2.77 2.968V8.5h-1.968v5.197c-1.197-.3-2.759-1.757-2.823-5.197z" clip-rule="evenodd"></path></svg>');function Ov(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Fy();Me(o,()=>Q({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=_(o);ye(r,()=>{var s;return(s=e.children)!=null?s:pe}),Ie(),g(o),$(t,o)}var Uy=ke('<svg><!><svg data-logo="vk_video"><path d="M7 8.6c0-1.96 0-2.94.381-3.689a3.5 3.5 0 0 1 1.53-1.53C9.66 3 10.64 3 12.6 3h1.36c2.464 0 3.696 0 4.638.48a4.4 4.4 0 0 1 1.922 1.922c.48.942.48 2.174.48 4.638v3.92c0 2.464 0 3.696-.48 4.638a4.4 4.4 0 0 1-1.922 1.922c-.942.48-2.174.48-4.638.48H12.6c-1.96 0-2.94 0-3.689-.381a3.5 3.5 0 0 1-1.53-1.53C7 18.34 7 17.36 7 15.4zm9.265 1.744c.901.539 1.352.808 1.505 1.157.133.304.133.65 0 .954-.153.349-.604.618-1.505 1.157l-2.386 1.425c-.943.563-1.414.844-1.802.807a1.2 1.2 0 0 1-.847-.48C11 15.05 11 14.5 11 13.403v-2.85c0-1.098 0-1.647.23-1.96.201-.274.51-.45.847-.481.388-.037.86.244 1.802.807zM5 9.04c0-2.464 0-3.696.48-4.638a4.4 4.4 0 0 1 .955-1.253 3.7 3.7 0 0 0-1.033.33A4.4 4.4 0 0 0 3.48 5.403C3 6.344 3 7.576 3 10.04v3.92c0 2.464 0 3.696.48 4.638a4.4 4.4 0 0 0 1.922 1.922c.304.155.637.26 1.033.33a4.4 4.4 0 0 1-.955-1.252C5 18.656 5 17.424 5 14.96z"></path></svg><svg x="4" y="3" data-logo="play_market"><path d="M0 1.261v15.474c0 .435.114.778.335.988l.002.002 9.178-8.728L.332.282C.075.532 0 .92 0 1.26"></path><path d="M.332.282.384.235c.34-.3.881-.326 1.482 0L12.623 6.04 10.018 8.52zm10.286 8.747 2.884 2.452-.532.288-.345.184-2.572-2.446-9.716 8.218c.336.34.9.378 1.529.044l11.104-6 .534-.286-.002-.002 2.725-1.472c1.03-.56 1.03-1.47 0-2.022l-2.77-1.495-.833-.452-.001.001.834.45.098.054z"></path></svg><svg x="3" data-logo="app_store"><path d="M17.623 16.365a11.4 11.4 0 0 1-1.15 2.03q-.906 1.27-1.48 1.758-.885.8-1.901.823-.732.001-1.757-.412-1.029-.412-1.892-.411-.906 0-1.945.411-1.04.413-1.68.434-.975.041-1.946-.845-.62-.53-1.548-1.82-.995-1.376-1.637-3.195Q.001 13.173 0 11.33 0 9.218.93 7.69a5.4 5.4 0 0 1 1.946-1.934 5.3 5.3 0 0 1 2.63-.73q.774.002 2.036.465 1.26.466 1.614.467.267 0 1.79-.55 1.44-.508 2.433-.424 2.699.214 4.047 2.094-2.412 1.437-2.387 4.019.022 2.01 1.481 3.34.66.615 1.48.954a16 16 0 0 1-.377.973M13.499.42q0 1.576-1.168 2.939c-.94 1.079-2.075 1.702-3.307 1.604a3 3 0 0 1-.025-.398c0-1.008.446-2.087 1.24-2.97q.595-.67 1.51-1.114.915-.438 1.728-.481.023.21.022.42"></path></svg><path d="M32.55 17.042h2.494L38.707 7h-1.81l-2.936 8.276h-.286L30.84 7H29zM48.075 17.042l-4.619-5.199L47.718 7h-2.11l-3.563 4.088h-.413V7h-1.71v10.042h1.71V12.74h.427l3.764 4.302z"></path><path d="M57.888 11.886c.883-.342 1.44-1.125 1.44-2.151C59.327 8.14 58.001 7 56.062 7h-3.92v10.042h4.205c1.953 0 3.279-1.14 3.279-2.806 0-1.168-.656-2.037-1.74-2.35m-4.034-3.39h2.21c.911 0 1.539.555 1.539 1.381 0 .812-.628 1.368-1.54 1.368h-2.21zm2.494 7.05h-2.494V12.74h2.494c.898 0 1.525.57 1.525 1.396 0 .84-.627 1.41-1.525 1.41M61.188 17.042h2.323l2.766-5.498h.228v5.498h1.568V9.635h-2.324l-2.765 5.498h-.228V9.635h-1.568zM69.146 19.25h1.64v-2.208h5.33v2.208h1.64v-3.703h-1.283V9.635h-5.431l-.37 3.79c-.13 1.338-.528 2.121-1.34 2.121h-.186zm2.494-3.703c.4-.385.57-1.04.685-2.151l.228-2.265h2.28v4.416zM86.025 13.253c0-2.136-1.597-3.76-3.849-3.76s-3.848 1.61-3.848 3.846 1.596 3.846 3.848 3.846c1.54 0 2.994-.727 3.55-2.137l-1.54-.256c-.356.527-1.04.897-1.91.897-1.254 0-2.081-.77-2.238-1.909h5.958c.015-.156.029-.327.029-.527m-3.849-2.336c1.027 0 1.796.655 2.067 1.581h-4.105c.27-.954 1.04-1.58 2.038-1.58M90.837 17.185c2.324 0 3.963-1.596 3.963-3.846s-1.64-3.846-3.963-3.846-3.962 1.595-3.962 3.846c0 2.25 1.639 3.846 3.962 3.846m0-1.496c-1.34 0-2.252-.954-2.252-2.35s.912-2.35 2.252-2.35 2.252.954 2.252 2.35-.912 2.35-2.252 2.35" class="_ru"></path><path d="M35.02 17.36h-2.484L29 7.422h1.832l2.826 8.188h.284l2.925-8.188h1.803zM43.43 12.215l4.6 5.144h-2.243l-3.749-4.256h-.426v4.256h-1.704V7.423h1.704v4.045h.412l3.55-4.045h2.101zM56.808 17.36h-2.485l-3.536-9.937h1.832l2.826 8.188h.284l2.925-8.188h1.803zM63.257 17.36h-1.633v-7.33h1.633zm-.809-8.373q-.455 0-.738-.268a.97.97 0 0 1-.284-.718.97.97 0 0 1 .284-.72q.297-.28.738-.281.44 0 .724.282a.97.97 0 0 1 .284.719.97.97 0 0 1-.284.718q-.284.268-.724.268M68.382 17.5q-1.037 0-1.86-.48a3.5 3.5 0 0 1-1.293-1.352q-.454-.874-.454-1.973t.454-1.96a3.37 3.37 0 0 1 1.293-1.352 3.55 3.55 0 0 1 1.86-.494q.894 0 1.59.367.696.352 1.136.888V7.423h1.633v9.936h-1.22l-.342-1.184a4 4 0 0 1-1.164.944q-.71.381-1.633.381m.397-1.452q1.038 0 1.676-.648.654-.663.653-1.705 0-1.044-.653-1.692-.639-.662-1.675-.662-1.023 0-1.662.662-.639.649-.639 1.692t.64 1.705q.638.648 1.66.648M81.929 13.61q0 .211-.029.522h-5.935q.113.86.71 1.38.597.508 1.52.508.624 0 1.121-.24.51-.24.781-.648l1.534.254a3 3 0 0 1-1.378 1.564q-.965.55-2.158.55-1.108 0-1.988-.48a3.6 3.6 0 0 1-1.363-1.352q-.483-.874-.483-1.973t.483-1.96a3.5 3.5 0 0 1 1.363-1.352q.88-.495 1.988-.494 1.107 0 1.974.494.88.478 1.363 1.339.497.845.497 1.888M78.095 11.3q-.738 0-1.292.423-.54.422-.739 1.141h4.09a2.17 2.17 0 0 0-.767-1.127q-.54-.437-1.292-.437M86.751 17.5q-1.136 0-2.044-.48a3.66 3.66 0 0 1-1.406-1.352q-.497-.874-.497-1.973t.497-1.96q.511-.873 1.406-1.352.909-.495 2.044-.494 1.137 0 2.031.494a3.4 3.4 0 0 1 1.406 1.353q.51.86.511 1.959 0 1.098-.511 1.973a3.53 3.53 0 0 1-1.406 1.353q-.894.48-2.03.479m0-1.48q.995 0 1.62-.634.624-.648.624-1.691t-.625-1.678q-.624-.648-1.619-.648-.993 0-1.618.648-.625.634-.625 1.678 0 1.043.625 1.69.625.636 1.618.635" class="_en"></path></svg>');function Nv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Uy();Me(o,()=>Q({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=_(o);ye(r,()=>{var s;return(s=e.children)!=null?s:pe}),Ie(6),g(o),$(t,o)}var zy={hash:"svelte-e5e2xr",code:`svg [data-logo],
180
+ svg[data-testid="vk-video-logo-icon--short"] ._ru,
181
+ svg[data-testid="vk-video-logo-icon--short"] ._en,
182
+ svg[data-testid="vk-video-logo-icon"] ._en,
183
+ svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}svg[data-logo="vk_video"] [data-logo="vk_video"],
184
+ svg[data-logo="play_market"] [data-logo="play_market"],
185
+ svg[data-logo="app_store"] [data-logo="app_store"] {visibility:visible;opacity:1;}`};function Dv(t,e){H(e,!0),z(t,zy);let i=h(e,"short",3,!1),o=h(e,"isCyrillic",3,!0),r=h(e,"logo",19,()=>"vk_video"),s="vk-video-logo-icon--short",l=24,d=m(()=>!o()&&!i()?91:i()?l:95),a=m(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?s:"vk-video-logo-icon"),u=m(()=>`0 0 ${n(d)} 24`);Nv(t,{get width(){return n(d)},height:"24",get viewBox(){return n(u)},get"data-testid"(){return n(a)},get"data-logo"(){return r()}}),F()}function vc(t,e){H(e,!0);let[i,o]=Ne(),r=()=>S(x,"$isMobile",i),s=()=>S(p,"$currentGridType$",i),l=()=>S(y,"$isCyrillicRelatedInterface$",i),d=h(e,"ref",15,void 0),a=h(e,"logoClickable",3,!1),u=h(e,"targetUrl",3,""),f=Nt(),v=$e(),p=v.ui.currentGridType$,x=v.ui.isMobile,w=v.ui.t,y=v.isCyrillicRelatedInterface$,C=m(()=>f.logoType!=="vk"),T=m(()=>n(C)?w("tooltip_vk_video_logo"):w("tooltip_vk_logo")),E=m(()=>(r()&&Ms(s(),"m")||Ms(s(),"l"))&&n(C)),O=()=>{var L,Z;e.click(),(L=v.callbacks)!=null&&L.onLogoClicked?(Z=v.callbacks)==null||Z.onLogoClicked():u()&&window.open(u(),"_blank")},A=m(()=>!a()),I=m(()=>n(C)?"btn-vk-video-logo":"btn-vk-logo");Qt(t,{className:"btn-full-opacity",get disabled(){return n(A)},click:O,get testId(){return n(I)},get ariaLabel(){return n(T)},get ref(){return d()},set ref(L){d(L)},children:(L,Z)=>{var B=He(),U=ve(B);{var X=K=>{Dv(K,{get logo(){return f.logoType},get short(){return n(E)},get isCyrillic(){return l()}})},de=K=>{Ov(K,{})};R(U,K=>{n(C)?K(X):K(de,!1)})}$(L,B)},$$slots:{default:!0}}),F(),o()}var N0=require("@vkontakte/videoplayer-core/es2015");var Bv=require("@vkontakte/videoplayer-core/es2015"),Wy=ke('<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="chromecast-mobile-icon" class="svelte-8z1bf5"><g filter="url(#b)" clip-path="url(#a)" class="svelte-8z1bf5"><mask id="c" maskUnits="userSpaceOnUse" x="1.1" y="3.1" width="22" height="18" fill="#000" class="svelte-8z1bf5"><path d="M1.1 3.1h22v18h-22z" class="svelte-8z1bf5"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z" class="svelte-8z1bf5"></path></mask><path fill-rule="evenodd" clip-rule="evenodd" d="M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z" class="svelte-8z1bf5"></path><path d="m18.097 5.938-.04.498.04-.498Zm.856.19-.227.446.227-.445Zm.918.919-.445.227.445-.227Zm.191.856-.498.04.498-.04Zm0 8.194-.498-.04.498.04Zm-.19.856-.446-.227.445.227Zm-.919.918-.227-.445.227.445Zm-.856.191.04.498-.04-.498Zm-1.86 1.838v-.5.5Zm2.007-.044.04.498-.04-.498Zm1.527-.381-.227-.446.227.446Zm1.704-1.704.445.227-.445-.227Zm.381-1.527.498.04-.498-.04Zm.044-2.006h-.5.5Zm0-4.476h-.5.5Zm-.044-2.006.498-.04-.498.04Zm-.381-1.527.445-.227-.445.227ZM19.77 4.525l-.227.446.227-.446Zm-1.527-.381.04-.498-.04.498ZM16.238 4.1v.5-.5ZM6 4.1v-.5.5ZM2.322 6.7l-.471-.167.471.167Zm1.697.6-.471-.167.471.167ZM6 5.9v-.5.5Zm-2.931 5.62-.038-.498.038.498Zm7.413 7.413.498.038-.498-.038Zm1.795.137.498.038-.498-.038ZM2.931 9.725l-.038-.498.038.498Zm-.829.966.499-.038-.499.038Zm1.025 4.443-.071-.495.071.495Zm-1.019-.763.495-.071-.495.07Zm.763-1.02.071.496-.07-.495ZM8.65 19.13l.495.072-.495-.072Zm-1.019.764-.07.494.07-.494Zm-.763-1.02.495.072-.495-.071ZM18.138 5.44c-.48-.04-1.091-.04-1.938-.04v1c.863 0 1.426.001 1.856.036l.082-.996Zm1.042.243c-.255-.13-.567-.205-1.042-.243l-.082.996c.414.034.58.092.67.138l.454-.89Zm1.137 1.137a2.6 2.6 0 0 0-1.137-1.137l-.454.891a1.6 1.6 0 0 1 .7.7l.89-.454Zm.244 1.042c-.04-.475-.114-.787-.244-1.042l-.891.454c.046.09.104.256.138.67l.997-.082ZM20.6 9.8c0-.846 0-1.458-.04-1.938l-.996.082c.035.43.036.993.036 1.856h1Zm0 4.4V9.8h-1v4.4h1Zm-.04 1.938c.04-.48.04-1.092.04-1.938h-1c0 .863-.001 1.426-.036 1.856l.997.082Zm-.243 1.042c.13-.255.205-.567.244-1.042l-.997-.082c-.034.414-.092.58-.138.67l.89.454Zm-1.137 1.137a2.6 2.6 0 0 0 1.137-1.137l-.891-.454a1.6 1.6 0 0 1-.7.7l.454.89Zm-1.042.244c.475-.04.787-.114 1.042-.244l-.454-.891c-.09.046-.256.104-.67.138l.082.997ZM16.2 18.6c.847 0 1.458 0 1.938-.04l-.082-.996c-.43.035-.993.036-1.856.036v1Zm-1.2 0h1.2v-1H15v1Zm-.4.4c0-.22.18-.4.4-.4v-1a1.4 1.4 0 0 0-1.4 1.4h1Zm.4.4a.4.4 0 0 1-.4-.4h-1a1.4 1.4 0 0 0 1.4 1.4v-1Zm1.238 0H15v1h1.238v-1Zm1.965-.042c-.512.042-1.15.042-1.965.042v1c.8 0 1.484 0 2.046-.045l-.081-.997Zm1.34-.329c-.386.198-.815.286-1.34.329l.081.997c.587-.049 1.163-.154 1.714-.435l-.454-.89Zm1.486-1.485a3.4 3.4 0 0 1-1.485 1.485l.454.891a4.4 4.4 0 0 0 1.922-1.922l-.89-.454Zm.329-1.341c-.043.525-.131.954-.329 1.34l.891.455c.281-.552.386-1.127.434-1.714l-.996-.081Zm.042-1.965c0 .815 0 1.453-.042 1.965l.997.081c.045-.561.045-1.246.045-2.046h-1Zm0 0h1-1Zm0-4.476v4.476h1V9.762h-1Zm0 0h1-1Zm-.042-1.965c.042.512.042 1.15.042 1.965h1c0-.8 0-1.484-.045-2.046l-.997.081Zm-.329-1.34c.198.386.286.815.329 1.34l.997-.081c-.049-.587-.154-1.162-.435-1.714l-.89.454ZM19.544 4.97a3.4 3.4 0 0 1 1.485 1.485l.891-.454a4.4 4.4 0 0 0-1.922-1.922l-.454.89Zm-1.341-.329c.525.043.954.132 1.34.329l.455-.891c-.552-.281-1.127-.387-1.714-.434l-.081.996ZM16.238 4.6c.815 0 1.453 0 1.965.042l.081-.996c-.562-.046-1.246-.046-2.046-.046v1Zm0 0v-1 1ZM6 4.6h10.238v-1H6v1Zm0-1v1-1Zm0 0a4.401 4.401 0 0 0-4.15 2.933l.944.334A3.401 3.401 0 0 1 6 4.6v-1ZM1.85 6.533a1.4 1.4 0 0 0 .854 1.787l.333-.943a.4.4 0 0 1-.243-.51l-.943-.334Zm.854 1.787a1.4 1.4 0 0 0 1.787-.853l-.943-.334a.4.4 0 0 1-.51.244l-.334.943Zm1.787-.853A1.601 1.601 0 0 1 6 6.4v-1c-1.131 0-2.095.722-2.452 1.733l.943.334ZM16.2 5.4H6v1h10.2v-1ZM3.602 11c-.192 0-.383.007-.571.022l.076.997A6.53 6.53 0 0 1 3.602 12v-1Zm7.4 7.4a7.4 7.4 0 0 0-7.4-7.4v1a6.4 6.4 0 0 1 6.4 6.4h1Zm-.022.571c.015-.188.022-.379.022-.571h-1c0 .167-.006.332-.019.495l.997.076Zm.369.43a.4.4 0 0 1-.369-.43l-.997-.076a1.4 1.4 0 0 0 1.29 1.502l.076-.997Zm.429-.37a.4.4 0 0 1-.43.37l-.075.996a1.4 1.4 0 0 0 1.502-1.29l-.997-.075Zm.024-.631c0 .213-.008.423-.024.632l.997.076c.018-.234.027-.47.027-.708h-1Zm-8.2-8.2a8.2 8.2 0 0 1 8.2 8.2h1a9.2 9.2 0 0 0-9.2-9.2v1Zm-.632.024c.209-.016.42-.024.632-.024v-1c-.238 0-.474.01-.708.027l.076.997Zm-.368.43a.4.4 0 0 1 .368-.43l-.076-.997a1.4 1.4 0 0 0-1.29 1.502l.998-.076Zm.429.368a.4.4 0 0 1-.43-.369l-.996.076a1.4 1.4 0 0 0 1.502 1.29l-.076-.997Zm.168 4.607c.13-.02.265-.029.403-.029v-1c-.185 0-.367.013-.545.039l.142.99Zm-1.585-1.187A1.4 1.4 0 0 0 3.2 15.629l-.142-.99a.4.4 0 0 1-.453-.34l-.99.143Zm1.187-1.585a1.4 1.4 0 0 0-1.187 1.585l.99-.142a.4.4 0 0 1 .34-.453l-.143-.99Zm.801-.057c-.271 0-.538.02-.8.057l.141.99c.216-.031.436-.047.659-.047v-1Zm5.6 5.6a5.6 5.6 0 0 0-5.6-5.6v1a4.6 4.6 0 0 1 4.6 4.6h1Zm-.057.8c.038-.262.057-.529.057-.8h-1c0 .223-.016.443-.047.659l.99.142ZM7.56 20.389A1.4 1.4 0 0 0 9.145 19.2l-.99-.142a.4.4 0 0 1-.453.34l-.142.99Zm-1.187-1.585a1.4 1.4 0 0 0 1.187 1.584l.142-.99a.4.4 0 0 1-.339-.452l-.99-.142Zm.029-.403c0 .138-.01.272-.029.403l.99.142c.026-.178.039-.36.039-.545h-1Zm-2.8-2.8a2.8 2.8 0 0 1 2.8 2.8h1a3.8 3.8 0 0 0-3.8-3.8v1Zm0 .8a2 2 0 0 0-2 2h1a1 1 0 0 1 1-1v-1Zm2 2a2 2 0 0 0-2-2v1a1 1 0 0 1 1 1h1Zm-2 2a2 2 0 0 0 2-2h-1a1 1 0 0 1-1 1v1Zm-2-2a2 2 0 0 0 2 2v-1a1 1 0 0 1-1-1h-1Z" fill="#000" fill-opacity=".12" mask="url(#c)" class="svelte-8z1bf5"></path></g><defs class="svelte-8z1bf5"><clipPath id="a" class="svelte-8z1bf5"><path d="M0 0h24v24H0z" class="svelte-8z1bf5"></path></clipPath><filter id="b" x="-3.4" y="-1.4" width="30.8" height="26.802" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB" class="svelte-8z1bf5"><feFlood flood-opacity="0" result="BackgroundImageFix" class="svelte-8z1bf5"></feFlood><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha" class="svelte-8z1bf5"></feColorMatrix><feOffset class="svelte-8z1bf5"></feOffset><feGaussianBlur stdDeviation="2.5" class="svelte-8z1bf5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0" class="svelte-8z1bf5"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_4085_178456" class="svelte-8z1bf5"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_4085_178456" result="shape" class="svelte-8z1bf5"></feBlend></filter></defs></svg>'),Ky=ke('<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="chromecast-icon"><g fill="none" fill-rule="evenodd" class="svelte-8z1bf5"><path class="wave wave1 svelte-8z1bf5" d="M1 18v3h3c0-1.66-1.34-3-3-3z" fill="var(--btn-color, #fff)"></path><path class="wave wave2 svelte-8z1bf5" d="M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z" fill="var(--btn-color, #fff)"></path><path class="wave wave3 svelte-8z1bf5" d="M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z" fill="var(--btn-color, #fff)"></path><path d="M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="var(--btn-color, #fff)" class="svelte-8z1bf5"></path><path d="M0 0h24v24H0z" class="svelte-8z1bf5"></path><path d="M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z" fill="var(--btn-color, #fff)"></path></g></svg>'),qy={hash:"svelte-8z1bf5",code:`.connecting.svelte-8z1bf5 .wave:where(.svelte-8z1bf5) {animation-duration:1s;animation-iteration-count:infinite;}.connecting.svelte-8z1bf5 .wave1:where(.svelte-8z1bf5) {
186
+ animation-name: svelte-8z1bf5-wave1;}.connecting.svelte-8z1bf5 .wave2:where(.svelte-8z1bf5) {
187
+ animation-name: svelte-8z1bf5-wave2;}.connecting.svelte-8z1bf5 .wave3:where(.svelte-8z1bf5) {
188
+ animation-name: svelte-8z1bf5-wave3;}
189
+
190
+ @keyframes svelte-8z1bf5-wave1 {
191
+ 0% {
192
+ opacity: 0.3;
193
+ }
194
+ 33% {
195
+ opacity: 1;
196
+ }
197
+ 66% {
198
+ opacity: 1;
199
+ }
200
+ 100% {
201
+ opacity: 1;
202
+ }
203
+ }
204
+
205
+ @keyframes svelte-8z1bf5-wave2 {
206
+ 0% {
207
+ opacity: 0.3;
208
+ }
209
+ 33% {
210
+ opacity: 0.3;
211
+ }
212
+ 66% {
213
+ opacity: 1;
214
+ }
215
+ 100% {
216
+ opacity: 1;
217
+ }
218
+ }
219
+
220
+ @keyframes svelte-8z1bf5-wave3 {
221
+ 0% {
222
+ opacity: 0.3;
223
+ }
224
+ 33% {
225
+ opacity: 0.3;
226
+ }
227
+ 66% {
228
+ opacity: 0.3;
229
+ }
230
+ 100% {
231
+ opacity: 1;
232
+ }
233
+ }`};function Hv(t,e){H(e,!0),z(t,qy);let i=h(e,"isMobile",3,!1),o=m(()=>e.iconState===Bv.ChromecastState.CONNECTED),r=m(()=>e.iconState===Bv.ChromecastState.CONNECTING);var s=He(),l=ve(s);{var d=u=>{var f=Wy(),v=_(f),p=_(v),x=_(p);Ie(),g(p);var w=P(p);Ie(),g(v);var y=P(v),C=_(y),T=_(C);g(C),Ie(),g(y),g(f),D(()=>{Ke(x,"fill",n(o)?"#2688EB":"var(--btn-color, #fff)"),Ke(w,"fill",n(o)?"#2688EB":"var(--btn-color, #fff)"),Ke(T,"fill",n(o)?"#2688EB":"var(--btn-color, #fff)")}),$(u,f)},a=u=>{var f=Ky();let v;var p=_(f),x=P(_(p),5);let w;g(p),g(f),D((y,C)=>{v=re(f,0,"svelte-8z1bf5",null,v,y),w=re(x,0,"svelte-8z1bf5",null,w,C)},[()=>({connecting:n(r)}),()=>({hidden:!n(o)})]),$(u,f)};R(l,u=>{i()?u(d):u(a,!1)})}$(t,s),F()}var D0=require("@vkontakte/videoplayer-shared/es2015");function mc(t,e){H(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"isMobile",3,!1),r=h(e,"click",3,D0.noop),l=$e().ui.t,d=m(()=>e.state===N0.ChromecastState.CONNECTED?l("tooltip_chromecast_on"):l("tooltip_chromecast_off"));Qt(t,{get ariaLabel(){return n(d)},get click(){return r()},testId:"btn-chromecast",get ref(){return i()},set ref(a){i(a)},children:(a,u)=>{Hv(a,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),F()}var B0=require("@vkontakte/videoplayer-shared/es2015");var Qy=ke('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="m21.616 16.495-.012.07c-.156.852-.282 1.541-.427 2.093-.148.569-.333 1.063-.64 1.5a4.4 4.4 0 0 1-2.507 1.732c-.52.133-1.046.131-1.63.069-.568-.06-1.257-.187-2.11-.343l-4.34-.794c-.853-.156-1.542-.282-2.094-.426-.568-.149-1.062-.334-1.5-.642a4.4 4.4 0 0 1-1.731-2.507c-.133-.518-.131-1.045-.069-1.63.06-.567.187-1.257.343-2.11l.012-.068c.156-.853.282-1.542.427-2.095.148-.568.333-1.062.641-1.5a4.4 4.4 0 0 1 2.507-1.731c.518-.133 1.045-.131 1.63-.069.567.06 1.256.187 2.109.343l4.34.794c.853.156 1.542.282 2.094.426.568.149 1.062.334 1.5.642a4.4 4.4 0 0 1 1.731 2.506c.133.52.131 1.046.069 1.63-.06.568-.187 1.258-.343 2.11m-1.446-2.3c.052-.483.035-.769-.022-.993a2.6 2.6 0 0 0-1.023-1.481c-.19-.133-.45-.25-.921-.373-.48-.125-1.102-.24-1.997-.404l-4.272-.781c-.895-.164-1.518-.277-2.01-.33-.483-.051-.769-.035-.993.023-.6.153-1.125.516-1.481 1.023-.133.19-.25.45-.373.92-.125.48-.24 1.103-.403 1.998s-.277 1.518-.33 2.01c-.051.484-.035.77.023.994.153.6.516 1.125 1.023 1.481.189.133.45.25.92.373.48.125 1.102.24 1.997.404l4.272.781c.895.164 1.518.277 2.01.33.483.051.77.035.993-.023a2.6 2.6 0 0 0 1.481-1.023c.133-.19.25-.45.373-.92.125-.48.24-1.103.403-1.998s.278-1.518.33-2.01Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M18.187 7.488a.9.9 0 0 1-1.045-.727c-.145-.807-.199-1.086-.28-1.296A2.6 2.6 0 0 0 14.504 3.8c-.224-.006-.505.036-1.315.169l-5.846.962c-1.366.224-1.834.313-2.174.492A2.6 2.6 0 0 0 3.837 7.18c-.08.376-.039.85.114 2.226l.011.1a.9.9 0 1 1-1.787.198l-.01-.093-.019-.17c-.129-1.147-.217-1.937-.068-2.636A4.4 4.4 0 0 1 4.332 3.83c.633-.333 1.417-.461 2.556-.648l.163-.027 5.846-.961.098-.016c.674-.111 1.138-.188 1.556-.177a4.4 4.4 0 0 1 3.99 2.819c.15.39.234.853.355 1.526l.017.097a.9.9 0 0 1-.726 1.045" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M12.724 12.414a.415.415 0 0 0-.69.231l-.72 4.18a.4.4 0 0 0 .025.221c.085.21.327.311.539.226l3.669-1.467a.406.406 0 0 0 .127-.68z"></path></svg>');function Fv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Qy();Me(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"episodes-icon",style:"flex-shrink:0",role:"img"},i));var r=_(o);ye(r,()=>{var s;return(s=e.children)!=null?s:pe}),Ie(3),g(o),$(t,o)}var jy=ke('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4.146 3.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L6.793 6.5 4.146 3.854a.5.5 0 0 1 0-.708" clip-rule="evenodd" opacity=".7"></path></svg>');function Uv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=jy();Me(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",fill:"none","aria-hidden":"true","data-testid":"chevron-light-icon",role:"img"},i));var r=_(o);ye(r,()=>{var s;return(s=e.children)!=null?s:pe}),Ie(),g(o),$(t,o)}var op=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var Gy=M('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),Yy=M('<span class="text svelte-1yhs2ga"> </span>'),Zy=M('<span class="text count svelte-1yhs2ga"> </span>'),Xy=M("<!> <!>",1),Jy={hash:"svelte-1yhs2ga",code:".text.svelte-1yhs2ga {padding:0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.text.count.svelte-1yhs2ga {overflow:visible;}.text.mobile.svelte-1yhs2ga {padding:0 3px 0 4px;}.chevron-episodes.svelte-1yhs2ga {margin-bottom:-4px;}"};function gc(t,e){var J,ge,se;H(e,!0),z(t,Jy);let[i,o]=Ne(),r=()=>S(w,"$currentGridType$",i),s=()=>S(y,"$openedByKeyboard$",i),l=()=>S(C,"$panelOpened$",i),d=()=>S(T,"$isMobile",i),a=h(e,"position",3,0),u=h(e,"duration",3,0),f=h(e,"timeCodes",19,()=>[]),v=$e(),p=(ge=(J=v.callbacks)==null?void 0:J.onEpisodeChanged)!=null?ge:B0.noop,x=!!((se=v.callbacks)!=null&&se.onEpisodeClicked),w=v.ui.currentGridType$,y=v.ui.episodes.openedByKeyboard$,C=v.ui.episodes.panelOpened$,T=v.ui.isMobile,E=v.ui.t,O=j(void 0),A=ce=>{var we,te,De;if(!!((we=v.callbacks)!=null&&we.onEpisodeClicked)){let fe=ta(ce);y.set(fe),C.set(!0),(De=(te=v.callbacks)==null?void 0:te.onEpisodeClicked)==null||De.call(te,fe)}},I=j(null),L=m(()=>a()/u());We(()=>{var Le;let ce=op(n(L),u(),f());ce?((Le=n(I))==null?void 0:Le.time)!==ce.time&&(p(ce),N(I,ce,!0)):N(I,null)});let Z=m(()=>{var ce;return((ce=n(I))==null?void 0:ce.text)||""}),B=m(()=>ao(r(),"xl")?"FULL":ao(r(),"m")&&L0(r(),"xl")?"COUNT":"SHORT"),U=m(()=>`${E("tooltip_episodes")}: ${n(Z)}`),X=(ce,Le,we)=>xt(null,null,function*(){yield _o(),(ce==null?void 0:ce.getAttribute("aria-expanded"))==="false"&&Le&&!we&&Pt(()=>{y.set(!1),ce.focus()})});We(()=>{X(n(O),s(),l())});var de=He(),K=ve(de);{var ue=ce=>{let Le=m(()=>d()?"px-0":""),we=m(()=>!x);Qt(ce,{get className(){var te;return`w-max btn-full-opacity btn-jc-l ${(te=n(Le))!=null?te:""}`},testId:"btn-episodes",click:A,get disabled(){return n(we)},get ariaExpanded(){return l()},get ariaLabel(){return n(U)},get ref(){return n(O)},set ref(te){N(O,te,!0)},children:(te,De)=>{var fe=He(),k=ve(fe);{var Qe=q=>{var oe=Gy(),Fe=ve(oe),Ge=_(Fe,!0);g(Fe);var _e=P(Fe,2),ie=_(_e);Uv(ie,{}),g(_e),D(()=>me(Ge,n(Z))),$(q,oe)},Ve=q=>{var oe=Xy(),Fe=ve(oe);Fv(Fe,{});var Ge=P(Fe,2);{var _e=Se=>{var Ce=Yy(),Be=_(Ce,!0);g(Ce),D(()=>me(Be,n(Z))),$(Se,Ce)},ie=(Se,Ce)=>{{var Be=Ye=>{var je=Zy(),Ue=_(je,!0);g(je),D(()=>me(Ue,f().length)),$(Ye,je)};R(Se,Ye=>{n(B)==="COUNT"&&Ye(Be)},Ce)}};R(Ge,Se=>{n(B)==="FULL"?Se(_e):Se(ie,!1)})}$(q,oe)};R(k,q=>{d()?q(Qe):q(Ve,!1)})}$(te,fe)},$$slots:{default:!0}})};R(K,ce=>{n(I)&&ce(ue)})}$(t,de),F(),o()}var pm=require("@vkontakte/videoplayer-shared/es2015");var gi=require("@vkontakte/videoplayer-core/es2015"),ft=require("@vkontakte/videoplayer-shared/es2015"),vs=require("@vkontakte/videoplayer-statistics/es2015");var Xe=require("@vkontakte/videoplayer-shared/es2015"),lo=require("@vkontakte/videoplayer-shared/es2015");var e4="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",np=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 lo.Subject,loadStarted$:new lo.Subject,loadEnded$:new lo.Subject,loadError$:new lo.Subject,ready$:new lo.Subject,slotRequested$:new lo.Subject,started$:new lo.Subject,timeRemained$:new lo.Subject,paused$:new lo.Subject,resumed$:new lo.Subject,ended$:new lo.Subject,empty$:new lo.Subject,skipped$:new lo.Subject,clicked$:new lo.Subject,closed$:new lo.Subject,error$:new lo.Subject};this.loadAdman=e=>(Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[(0,Xe.now)()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((i,o)=>{let r;this.events.loadStarted$.next();let s=()=>{clearTimeout(r),delete window.admanAsyncInit,window.AdmanHTML?(Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[(0,Xe.now)()]}),i(),this.events.loadEnded$.next()):(Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[(0,Xe.now)()]}),o())};(0,lo.addScript)(e4,e,this.loadTimeout).then(()=>{Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[(0,Xe.now)()]}),window.AdmanHTML?(Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[(0,Xe.now)()]}),i(),this.events.loadEnded$.next()):(Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[(0,Xe.now)()]}),window.admanAsyncInit=s,r=window.setTimeout(s,this.initTimeout))}).catch(l=>{Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(l)],numbers:[(0,Xe.now)()]}),o(),clearTimeout(r)})});this.loadAdmanNPM=e=>new Promise((i,o)=>{let r;this.events.loadStarted$.next();let s=()=>{clearTimeout(r),delete window.admanAsyncInit,window.AdmanHTML?(Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[(0,Xe.now)()]}),i(),this.events.loadEnded$.next()):(Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[(0,Xe.now)()]}),o())},l=()=>{d=!0,o()},d=!1,a=window.setTimeout(()=>{Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[(0,Xe.now)()]}),l()},this.loadTimeout);e.addEventListener("abort",l),e.aborted&&(Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[(0,Xe.now)()]}),l()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[(0,Xe.now)()]}),!d&&(window.AdmanHTML?(Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[(0,Xe.now)()]}),i(),this.events.loadEnded$.next()):(Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[(0,Xe.now)()]}),window.admanAsyncInit=s,r=window.setTimeout(s,this.initTimeout)))},l).finally(()=>{clearTimeout(r),clearTimeout(a),e.removeEventListener("abort",l)})});this.onAdsReady=()=>{Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[(0,Xe.now)()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{var o;Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[(0,Xe.now)(),i.bannerID]}),this.adsState&&this.playerState&&this.actions?(this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(i)}`}),this.events.started$.next(e),i.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"})),this.adsState.duration.set(i.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(i.allowClose),this.adsState.secondsToWatchBeforeSkip.set(i.allowCloseDelay),this.startWatchDog(),(o=this.externalApi)!=null&&o.videoTrackAdEvent&&this.safeExternalCall(this.externalApi.videoTrackAdEvent,e,String(i.bannerID))):this.onAdError("Started callback failed: Adman is not initialized")};this.onAdTimeRemained=e=>{var o;((o=this.adsState)!=null&&o.playbackState?be(this.adsState.playbackState):void 0)!=="inactive"&&(this.adsState?(this.adsState.position.set(e.currentTime),this.events.timeRemained$.next(e),this.startWatchDog()):this.onAdError("TimeRemained callback failed: Adman state is not initialized"))};this.onAdPaused=()=>{var e;Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Xe.now)()]}),this.stopWatchDog(),this.adsState?(this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")):this.onAdError("Paused callback failed: Adman state is not initialized")};this.onAdPlayed=()=>{var e;Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Xe.now)()]}),this.startWatchDog(),this.adsState?(this.log({message:"ad played"}),this.adsState.playbackState.set("playing")):this.onAdError("Player callback failed: Adman is not initialized")};this.onAdMidrollPoint=()=>{if(Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[(0,Xe.now)()]}),this.adman&&this.actions){this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch(e){this.onAdError("could not start midroll")}}else this.onAdError("Midroll callback failed: Adman is not initialized")};this.onAdSkipped=()=>{var e;Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Xe.now)()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Xe.now)()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Xe.now)()]}),this.log({message:"ad completed"}),this.currentAdSection?(this.events.ended$.next(this.currentAdSection),this.currentAdSection==="postroll"&&this.setPostrollPassed(!0)):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{var e,i;Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Xe.now)()]}),this.log({message:"ad clicked"}),(i=this.videoElement)==null||i.pause(),this.currentAdSection&&this.events.clicked$.next(this.currentAdSection),this.stopWatchDog()};this.onAdError=(e="ad error")=>{Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[(0,Xe.now)()]}),this.log({message:e}),this.events.error$.next(e),this.currentAdSection==="postroll"&&this.setPostrollPassed(!0),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[(0,Xe.now)()]}),this.loadTimeout=i.loadTimeout,this.initTimeout=i.initTimeout,this.runtimeTimeout=i.runtimeTimeout,this.useAdmanFromNPM=i.useAdmanFromNPM,this.volumeMultiplier=Math.max(0,Math.min(i.volumeMultiplier,1)),this.isVsidOriginal=i.isVsidOriginal}init(e,i,o){this.actions=e,this.adsState=i,this.playerState=o}onAdmanLoadingError(){this.onAdError("adman loading error")}initAdman(e){return xt(this,null,function*(){var O,A;if(Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[(0,Xe.now)(),e.slotId]}),this.adman)return;this.events.init$.next(e.slotId),this.startWatchDog();let{width:i,height:o,isAutoplay:r,adsContainer:s,adsVideoElement:l,slotId:d,params:a={},paramsOverride:u={},duration:f,externalApi:v}=e;this.externalApi=v;let p,x=this.playerState&&be(this.playerState.vsid);x&&(this.isVsidOriginal?p=x:p=parseInt(x,36));let{isEmbed:w,immediateOrigin:y}=(0,Xe.detectEmbed)(),C=(O=w?y:window.location.href)!=null?O:window.location.href,T=Q(Gt(Q(Gt(Q({},a),{dl:encodeURIComponent(C),autoplay:r?1:0,player_width:i,player_height:o}),p?{request_id:p}:{}),{duration:f}),u);T=Object.fromEntries(Object.entries(T).filter(([I,L])=>(0,Xe.isNonNullable)(L)));let E={slot:d,wrapper:s,videoEl:l,videoQuality:o,params:T,browser:{mobile:!1}};try{let I=new window.AdmanHTML;if(I.onReady(this.onAdsReady),I.onStarted(this.onAdStarted),I.onPlayed(this.onAdPlayed),I.onPaused(this.onAdPaused),I.adMidrollPoint(this.onAdMidrollPoint),I.onClosed(this.onAdClosed),I.onSkipped(this.onAdSkipped),I.onClicked(this.onAdClicked),I.onTimeRemained(this.onAdTimeRemained),I.onCompleted(this.onAdCompleted),I.onError(this.onAdError),I.setDebug(!1),(A=this.externalApi)!=null&&A.videoGetAds){let L=yield this.safeExternalCall(this.externalApi.videoGetAds,T);L&&(delete E.slot,delete E.params,Object.assign(E,{json:L}))}I.init(E),this.adman=I,this.videoElement=l,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(E)}`})}catch(I){Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(I)],numbers:[(0,Xe.now)()]}),this.onAdError("could not init adman")}})}switchToVideo(e=!1){var o,r,s;if(Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[(0,Xe.now)()]}),this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}let 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)}(s=(r=this.actions).switchFromAdsToVideo)==null||s.call(r,!i)}}setPostrollPassed(e){var i;(i=this.adsState)==null||i.postrollPassed.set(e),this.log({message:"postroll passed"})}togglePlay(){var e;if(Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Xe.now)()]}),this.adsState){this.log({message:"toggle play"});let i=be(this.adsState.playbackState);i==="playing"?this.pause():i==="paused"&&this.play()}else this.onAdError("Can not toggle play: Adman state is not initialized")}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){let i=e*this.volumeMultiplier;if(this.log({message:`set volume ${i}`}),this.adman)try{this.adman.setVolume(i)}catch(o){this.onAdError("could not set ad volume")}this.videoElement&&(this.videoElement.volume=i)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch(i){this.onAdError("could not set ad fullscreen")}}startPreroll(){if(Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[(0,Xe.now)()]}),this.adman){if(!this.isDestroyed){this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.startWatchDog();try{this.adman.start("preroll")}catch(e){this.onAdError("could not start preroll")}}}else this.onAdError("Can not start preroll: Adman is not initialized")}startPostroll(){var e;if(Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Xe.now)()]}),this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch(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(Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Xe.now)()]}),this.adman){this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch(i){this.onAdError("could not resume ad")}}else this.onAdError("Can not play: Adman is not initialized")}pause(){var e;if(Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Xe.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch(i){this.onAdError("could not pause ad")}}else this.onAdError("Can not pause: Adman is not initialized")}skip(){var e;if(Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Xe.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch(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,s,l,d,a,u,f,v,p;Xe.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[(0,Xe.now)()]}),this.log({message:"destroy"}),this.stopWatchDog(),(e=this.adman)==null||e.onReady(void 0),(i=this.adman)==null||i.onStarted(void 0),(o=this.adman)==null||o.onPlayed(void 0),(r=this.adman)==null||r.onPaused(void 0),(s=this.adman)==null||s.adMidrollPoint(void 0),(l=this.adman)==null||l.onClosed(void 0),(d=this.adman)==null||d.onSkipped(void 0),(a=this.adman)==null||a.onClicked(void 0),(u=this.adman)==null||u.onTimeRemained(void 0),(f=this.adman)==null||f.onCompleted(void 0),(v=this.adman)==null||v.onError(void 0),(p=this.adman)==null||p.destroy(),this.videoElement&&(0,lo.clearVideoElement)(this.videoElement),this.isDestroyed=!0}safeExternalCall(e,...i){return xt(this,null,function*(){var o;try{return yield e(...i)}catch(r){return this.onAdError((o=r==null?void 0:r.message)!=null?o:"External call failed"),null}})}};var H0=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 zv=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 s of r){let l={startTime:0,endTime:0,texts:[],lang:i},d=s.split(this.oneLineRegExp);for(let a of d)if(!l.startTime&&!l.endTime){let u=new rp,{startTime:f,endTime:v}=u.parse(a);l.startTime=f,l.endTime=v}else if(a.trim()!==""){let u=new Wv,{texts:f}=u.parse(a);l.texts=[...l.texts,...f]}(l.startTime||l.endTime)&&l.texts.length>0&&o.push(l)}return o}},rp=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 s=Number(e)*60*60,l=Number(i)*60,d=Number(o),a=+`0.${r}`;return s+l+d+a}},Wv=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,a=[];for(;d<l.length;){let u=["<",">"].reduce((f,v)=>{let p=l.indexOf(v,d);return f===-1||f>p?p:f},-1);if(u===-1){a.push(l.substring(d));break}a.push(l.substring(d,u)),d=u+1}return a}}),s=new rp;for(let l of r)s.isTime(l)?i.texts.push({type:"timestamp",value:s.parseTime(l)}):i.texts.push({type:"text",value:l});return i}},F0=zv;var ap=require("@vkontakte/videoplayer-shared/es2015"),qa,Ni,Kv=0,qv=!1,U0="",z0=(t,e=0,i=0)=>t<e&&t<i,sp=(t,e=0,i=0)=>t>=e&&t<=i,t4=(t,e=0,i=0)=>t>e&&t>i,W0=(t,e,i,o=!1)=>{var d;let r=(d=i.find(({id:a})=>a===e.value))==null?void 0:d.subtitles;if(o)return r==null?void 0:r.find(({startTime:u,endTime:f})=>sp(t,u,f));let s=t>=Kv,l=t<Kv;if(Kv=t,l&&(qv=!1),(0,ap.isNonNullable)(qa)&&sp(t,qa.startTime,qa.endTime)&&U0===e.value)return qa;if(!(0,ap.isNonNullable)(Ni)&&(r!=null&&r.length)&&!qv){Ni=r.find(({startTime:u,endTime:f})=>sp(t,u,f)||s&&z0(t,u,f)),qa=void 0,!(0,ap.isNonNullable)(Ni)&&r[r.length-1].endTime<t&&(qv=!0);return}else{if(sp(t,Ni==null?void 0:Ni.startTime,Ni==null?void 0:Ni.endTime))return qa=Ni,Ni=void 0,U0=e.value,qa;(s&&t4(t,Ni==null?void 0:Ni.startTime,Ni==null?void 0:Ni.endTime)||l&&z0(t,Ni==null?void 0:Ni.startTime,Ni==null?void 0:Ni.endTime))&&(Ni=void 0)}};var lp={ru:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",en:"English",uk:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",be:"\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F (\u0442\u0430\u0440\u0430\u0448\u043A\u0435\u0432i\u0446\u0430)",es:"Espa\xF1ol",fi:"Suomi",de:"Deutsch",it:"Italiano",bg:"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438",hr:"Hrvatski",hu:"Magyar",sr:"\u0421\u0440\u043F\u0441\u043A\u0438",pt:"Portugu\xEAs",el:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",pl:"Polski",fr:"Fran\xE7ais",ko:"\uD55C\uAD6D\uC5B4","zh-CN":"\u6C49\u8BED",lt:"Lietuvi\u0173",ja:"\u65E5\u672C\u8A9E",cs:"\u010Ce\u0161tina",et:"Eesti",tt:"\u0422\u0430\u0442\u0430\u0440\u0447\u0430",ba:"\u0411\u0430\u0448\u04A1\u043E\u0440\u0442\u0441\u0430",cv:"\u0427\u0103\u0432\u0430\u0448\u043B\u0430",sk:"Sloven\u010Dina",ro:"Rom\xE2n\u0103",no:"Norsk",lv:"Latvie\u0161u",az:"Az\u0259rbaycan dili",hy:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",sv:"Svenska",nl:"Nederlands",tk:"T\xFCrkmen",ka:"\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8",da:"Dansk",uz:"O\u2018zbek",th:"\u0E20\u0E32\u0E29\u0E32\u0E44\u0E17\u0E22",id:"Bahasa Indonesia",tg:"\u0422\u043E\u04B7\u0438\u043A\u04E3",sl:"Sloven\u0161\u010Dina",bs:"Bosanski","pt-BR":"Portugu\xEAs brasileiro",fa:"\u0641\u0627\u0631\u0633\u06CC",vi:"Ti\u1EBFng Vi\u1EC7t",hi:"\u0939\u093F\u0928\u094D\u0926\u0940",si:"\u0DC3\u0DD2\u0D82\u0DC4\u0DBD",bn:"\u09AC\u09BE\u0982\u09B2\u09BE",tl:"Tagalog",mn:"\u041C\u043E\u043D\u0433\u043E\u043B",my:"\u1017\u1019\u102C\u1005\u102C",tr:"T\xFCrk\xE7e",ne:"\u0928\u0947\u092A\u093E\u0932\u0940",ur:"\u0627\u0631\u062F\u0648",ky:"\u041A\u044B\u0440\u0433\u044B\u0437 \u0442\u0438\u043B\u0438",pa:"\u067E\u0646\u062C\u0627\u0628\u06CC",os:"\u0418\u0440\u043E\u043D",kn:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",sw:"Kiswahili",kk:"\u049A\u0430\u0437\u0430\u049B\u0448\u0430",ar:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",he:"\u05E2\u05D1\u05E8\u05D9\u05EA",ab:"\u0410\u04A7\u0441\u0448\u04D9\u0430",eu:"Euskara",eo:"Esperanto"},i4={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=lp[t])!=null?e:lp[i4[t]])!=null?i:void 0};var K0=require("@vkontakte/videoplayer-shared/es2015"),HB=require("@vkontakte/videoplayer-statistics/es2015"),dp=class{constructor(e,i,o,r=new K0.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 fs=t=>t!=null?t:0,Ls=(t,e)=>{var r,s;let i=(r=t==null?void 0:t.getBoundingClientRect)==null?void 0:r.call(t),o=(s=e==null?void 0:e.getBoundingClientRect)==null?void 0:s.call(e);return{top:Math.round(fs(i==null?void 0:i.top)-fs(o==null?void 0:o.top)),left:Math.round(fs(i==null?void 0:i.left)-fs(o==null?void 0:o.left)),bottom:Math.round(fs(i==null?void 0:i.bottom)-fs(o==null?void 0:o.top)),right:Math.round(fs(i==null?void 0:i.right)-fs(o==null?void 0:o.left))}},Yl=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:fs(e==null?void 0:e.width),height:fs(e==null?void 0:e.height)}};var Kn="off";var Zl=t=>!!(Math.round(Math.abs(t)/90)%2);var q0=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:r,statAuthToken:s,isAudioDisabled:l,canDownload:d,callbacks:a,webApi:u,videoEpisodes:f,previewThumbsData:v,uiConfig:p,coreConfig:x,player:w,disabledControls:y,isInteractive:C,interactiveRanges$:T,isInteractiveTime$:E,replayInteractive:O,stopPlayer:A,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:L,additionalButtons:Z,additionalSettingsMenuItems:B,additionalContextMenuItems:U,playPrevVideo:X,playNextVideo:de,onVideoChanged:K,looped:ue=!1,statistics:J,saveRate:ge,internalsExposure:se,playerView:ce,playerId:Le})=>{var Lg,Vg,Rg;let we=Gt(Q({},x),{configName:[...(Lg=x.configName)!=null?Lg:[],"ui"],isAudioDisabled:l,live:Gt(Q({},(Vg=x.live)!=null?Vg:{}),{isLiveCatchUpMode:!!r})}),te=p,De=ft.TracerFactory.createRootTracer(te.features.tracer),fe=De.createComponentTracer("Store"),k=w||new gi.Player(we,De,{playerId:Le});se==null||se.expose({corePlayer:k});let Qe=new ft.Logger,Ve=new np(Qe,{loadTimeout:te.ads.loadTimeout,initTimeout:te.ads.initTimeout,runtimeTimeout:te.ads.runtimeTimeout,useAdmanFromNPM:te.ads.useAdmanFromNPM,volumeMultiplier:te.ads.volumeMultiplier,isVsidOriginal:te.ads.isVsidOriginal}),q=Oa.getInstance(),oe=u==null?void 0:u.pictureInPictureApi,Fe=u==null?void 0:u.annotationsApi,Ge=u==null?void 0:u.slotsApi,_e=Qe.createComponentLog("Store"),ie,Se,Ce={},Be=new Vu,Ye=new ft.Subscription,je="",Ue=le(!1),Je=J&&J.oneStat?di(J.oneStat.vsid$):Cr(void 0),Ft=le(Xs()),ot=le(!1),zt=()=>p0(document,gi.clientChecker.device.isIOS),Zt=(Rg=oe==null?void 0:oe.info.isActive$)!=null?Rg:new ft.ValueSubject(!1),Et=le(0),oi=le(!1),Rt=le(!1),Ee=le([]),Pe=(0,ft.merge)(k.events.fatalError$,k.events.managedError$).subscribe(c=>Ee.update(b=>[...b,c])),ee=Cr(!1,c=>{let b=k.events.fatalError$.subscribe(()=>c(!0));return()=>b.unsubscribe()}),Te=c=>xt(null,null,function*(){var ne;let b=Object.values(ft.InterfaceLanguage).includes(c);if(te.downloadVKLanguages&&(b&&te.updateBuiltinLanguages||!Jf(c))){let Ae;try{Ae=yield(0,ft.loadVKLangPack)(c,S1,C1)}catch(rt){(ne=J==null?void 0:J.oneStat)==null||ne.logError({errorType:"VKLangPack",fatal:!1}),q==null||q.report(rt,{errorType:"VKLangPack",fatal:!1})}Ae&&(Xf({language:c,pack:Ae,fallback:te.defaultLanguage}),ae.set(c),$t.update(rt=>rt+1))}Jf(c)&&ae.set(c)}),ae=le(t),$t=le(0),It=le(e);Te(t);let ut=(c,b)=>{let V=be(ae);return ev(V,c,b,te.defaultLanguage)},Tt=le("thumb");Tt.subscribe(c=>{c==="ads"&&k.info.playbackState$.getValue()&&st()});let he=(()=>{let c=$i([ee,Tt],([b,V])=>b?"crashed":V);return Gt(Q({},c),{is:b=>be(c)===b})})(),lt=le(),st=()=>{lt.set({muted:k.info.muted$.getValue()})},dt=(()=>{let c=le(new Set(y));return Gt(Q({},c),{add:b=>{c.update(V=>new Set([...V].concat(b)))},remove:b=>{c.update(V=>{let ne=[...V];return new Set(Array.isArray(b)?ne.filter(Ae=>!b.includes(Ae)):ne.filter(Ae=>Ae!==b))})},includes:b=>{let V=be(c);return Array.isArray(b)?b.every(ne=>V.has(ne)):V.has(b)}})})(),ri=le({width:0,height:0}),ei=null,fi=k.info.isBuffering$,Ei=Cr(fi.getValue(),c=>{let b=fi.subscribe(V=>{V&&ei===null?ei=window.setTimeout(()=>{c(fi.getValue()),ei=null},te.loaderDelay):c(V)});return()=>{b.unsubscribe(),ei&&clearTimeout(ei)}});fe.log("create store"),_e({message:"create store"});let uo=c=>{let b=c.container,V=()=>{Pi=new MutationObserver(Ae=>{let{removedNodes:rt}=Ae[0];rt.length&&b.append(k.experimental.element$.getValue())}),Pi.observe(b,{childList:!0})},ne=k.experimental.element$.getValue();if(ne)b.append(ne),V();else{let Ae=k.experimental.element$.pipe((0,ft.filter)(rt=>!!rt),(0,ft.once)()).subscribe(rt=>{b.append(rt),V()});Ye.add(Ae)}},Dt=c=>{_e({message:`init video, config: ${JSON.stringify(c)}`}),C?uo(c):(ft.devNull.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[(0,ft.now)()]}),k.initVideo(c)),fe.log("init video",{isInteractive:C}),c.subtitles&&k.setExternalTextTracks(c.subtitles),ie=c,je=c.subtitlesForcedLanguage||""},ci=new ft.Subject,xi=c=>ci.next(c),yt=new ft.Subject,Ut=new ft.Subject,zi=new ft.Subject,Pi=null,si={actionRewind$:yt,actionSeek$:Ut,inPiP$:Zt,inFullscreen$:new ft.Observable(c=>Ft.subscribe(b=>c.next(b))),actionSetSubtitle$:zi,nextMovie$:ci},Mt={actionSeek$:Ut,playerSize$:new ft.Observable(c=>ri.subscribe(b=>c.next(b))),inPiP$:Zt,inFullscreen$:new ft.Observable(c=>Ft.subscribe(b=>c.next(b))),isLoaderVisible$:new ft.Observable(c=>Ei.subscribe(b=>c.next(b)))};if(J){let{oneStat:c,thinOneStat:b,mediascopePixel:V,statSubscription:ne}=J;c&&(C||ne.add(c.attachTo(k)),ne.add(c.attachToUi(si)),ne.add(c.attachToAds(Ve.events)),c.authorize(s).catch(Ae=>{_e({message:`onestat auth error ${String(Ae)}`})}),V&&V.attachTo(k)),b&&(ne.add(b.attachTo(k,Ve.events)),ne.add(b.attachToUi(Mt)),ne.add(b.attachToAds(Ve.events)),b.updateContext({isMobile:be(Ue)}),b.authorize(s))}if(q){let c=new ft.Subscription,b=(V,ne)=>c.add(V.subscribe(ne));if(b(k.events.managedError$,V=>{q.logIError(V)}),b(k.events.fatalError$,V=>{q.logIError(V,!0)}),J){let{oneStat:V}=J;V&&b(V.experimental.error$,ne=>{q.logIError(ne)})}q.sentrySubscription.add(c)}let Ze=()=>{if(gi.clientChecker.device.isIOS&&Se)try{f0(Se)}catch(c){_e({message:`exitIosSafariFullscreen failed: ${c}`})}};Ye.add(k.experimental.element$.subscribe(c=>{c&&(Se=c,c.classList.add("player-media"),Da(oe)&&oe.updateVideoElement(),C&&c.setAttribute("pip","false"),ce==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(k.events.ended$.subscribe(()=>{var c;Ze(),(c=a==null?void 0:a.onEnded)==null||c.call(a)})).add(k.events.looped$.subscribe(()=>{var c;(c=a==null?void 0:a.onLooped)==null||c.call(a)})).add(k.events.started$.subscribe(()=>xt(null,null,function*(){var b,V;Da(oe)&&(yield oe==null?void 0:oe.revealPictureInPicture());let c=k.info.muted$.getValue();(b=a==null?void 0:a.onStarted)==null||b.call(a),(V=Ce.onStarted)==null||V.call(Ce,c)}))).add(k.events.willSeek$.subscribe(({from:c,to:b})=>{var V;(V=a==null?void 0:a.onSeek)==null||V.call(a,c,b)})).add(k.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=a==null?void 0:a.onAutoplaySoundProhibited)==null||c.call(a)})).add(k.info.position$.subscribe(c=>{var V;let b=k.info.duration$.getValue();isFinite(b)&&b>0&&((V=a==null?void 0:a.onTimeupdate)==null||V.call(a,b,c),Ve.setPosition(c,b))})).add(k.events.fatalError$.subscribe(c=>{var b;(b=a==null?void 0:a.onCrashed)==null||b.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(k.events.fetcherRecoverableError$.subscribe(c=>{var b;(b=a==null?void 0:a.onRecoverableError)==null||b.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(k.events.loadedMetadata$.subscribe(()=>{oi.set(!0)})).add(k.info.is3DVideo$.subscribe(c=>{Rt.set(c)})).add(k.info.isEnded$.subscribe(c=>{C&&(c?(E!=null&&E.getValue()&&dt.add(Kd),dt.add("PLAY_BUTTON")):dt.remove("PLAY_BUTTON"))})).add(k.info.liveTime$.subscribe(c=>{var b;(b=a==null?void 0:a.onLiveTime)==null||b.call(a,c)})).add(k.info.isStalled$.subscribe(c=>{var b;(b=a==null?void 0:a.onStalledChanged)==null||b.call(a,c)})).add(k.info.isLiveEnded$.subscribe(c=>{var b;return c&&((b=a==null?void 0:a.onLiveEnded)==null?void 0:b.call(a))})).add(Ve.events.loadStarted$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadStarted)==null?void 0:b.call(c)})).add(Ve.events.loadEnded$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadEnded)==null?void 0:b.call(c)})).add(Ve.events.loadError$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadError)==null?void 0:b.call(c)})).add(Ve.events.init$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onInit)==null?void 0:b.call(c)})).add(Ve.events.ready$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onReady)==null?void 0:b.call(c)})).add(Ve.events.started$.subscribe(c=>{var b,V;return(V=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onStarted)==null?void 0:V.call(b,c)})).add(Ve.events.timeRemained$.subscribe(c=>{var b,V;return(V=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onTimeRemained)==null?void 0:V.call(b,c)})).add(Ve.events.ended$.subscribe(c=>{var b,V;return(V=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onCompleted)==null?void 0:V.call(b,c)})).add(Ve.events.empty$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onEmpty)==null?void 0:b.call(c)})).add(Ve.events.clicked$.subscribe(c=>{var b,V;return(V=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onClicked)==null?void 0:V.call(b,c)})).add(Ve.events.closed$.subscribe(c=>{var b,V;return(V=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onClosed)==null?void 0:V.call(b,c)})).add(Ve.events.error$.subscribe(c=>{var b,V;return(V=(b=a==null?void 0:a.adsInfo)==null?void 0:b.onError)==null?void 0:V.call(b,c)})).add(Ve.events.paused$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onPaused)==null?void 0:b.call(c)})).add(Ve.events.resumed$.subscribe(()=>{var c,b;return(b=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onResumed)==null?void 0:b.call(c)}));let wi=new ft.Subscription,Eo=()=>{var rt,Vt,Kt;let{debugLog:c}=te,b,V="#9df7b7",ne="#efd169";if(c&&c!==!0){let{colors:Yt}=c;b=c.tag,V=(rt=Yt==null?void 0:Yt[0])!=null?rt:V,ne=(Kt=(Vt=Yt==null?void 0:Yt[1])!=null?Vt:Yt==null?void 0:Yt[0])!=null?Kt:ne}let Ae=b?`: ${b}`:"";wi.add(k.events.log$.subscribe(Yt=>{console.debug(`%c sdk${Ae} `,`background:${V};`,`sdk component: ${Yt.component}`,Yt.message)})).add(Qe.log$.subscribe(Yt=>{console.debug(`%c ui${Ae} `,`background:${ne};`,`ui component: ${Yt.component}.`,Yt.message)}))},tn=()=>{wi.unsubscribe()},vn=(c,b)=>{fe.log("start camera manual rotation",{mx:c,my:b}),k.startCameraManualRotation(c,b)},kt=(c=!1)=>{fe.log("stop camera manual rotation",{immediate:c}),k.stopCameraManualRotation(c)},Wt=(c,b,V)=>{fe.log("move camera focus px",{xpx:c,ypx:b,dt:V}),k.moveCameraFocusPX(c,b,V)},W=()=>{k.holdCamera()},Ot=()=>{k.releaseCamera()},ni=Cr(k.info.position$.getValue(),c=>{let b,V,ne=()=>{let Ae=k.info.playbackState$.getValue(),rt=k.info.isLive$.getValue(),Vt=k.info.duration$.getValue(),Kt=k.info.position$.getValue();if(Ae&&[gi.PlaybackState.PLAYING,gi.PlaybackState.PAUSED].includes(Ae)){let Yt=rt?Kt-Vt:k.getExactTime();Yt!==V&&c(Yt),V=Yt}b=requestAnimationFrame(ne)};return ne(),()=>cancelAnimationFrame(b)}),vt=di(k.info.playbackState$),At=di(k.info.currentBuffer$),Xt=di(k.info.isEnded$),pt=di(k.info.isLive$),Mi=te.features.playbackRate?di(k.info.canChangePlaybackSpeed$):Cr(!1),Wi=di(k.info.liveBufferTime$),on=di(k.info.volume$),No=di(k.info.muted$),po=Ru(k.info.predefinedQualityLimitType$.pipe((0,ft.map)(c=>c===gi.PredefinedQualityLimits.TRAFFIC_SAVING)),k.info.predefinedQualityLimitType$.getValue()===gi.PredefinedQualityLimits.TRAFFIC_SAVING),Ki=Ru(k.info.predefinedQualityLimitType$.pipe((0,ft.map)(c=>c===gi.PredefinedQualityLimits.HIGH_QUALITY)),k.info.predefinedQualityLimitType$.getValue()===gi.PredefinedQualityLimits.HIGH_QUALITY),pr=di(k.info.autoQualityLimitingAvailable$),bo=di(k.info.availableQualities$),$o=di(k.info.availableQualitiesFps$),Di=di(k.info.chromecastState$),mn=di(k.info.chromecastDeviceName$),Do=di(k.info.currentFormat$),fr=di(k.info.throughputEstimation$),vr=di(k.info.videoBitrate$),Er=di(k.info.intrinsicVideoSize$),os=di(k.info.duration$),gs=di(k.info.isAudioAvailable$),ns=()=>{ei&&clearTimeout(ei),ei=null},Io=$i([os,pt],([c,b])=>b?-c:c),jn=$i([vt],([c])=>c===gi.PlaybackState.PLAYING),Bo=di(k.info.atLiveEdge$),gn=di(k.info.atLiveDurationEdge$),Vn=di(k.info.position$),mr=$i([Vn,os],([c,b])=>isFinite(c)&&isFinite(b)&&!!b),Ir=$i([Di],([c])=>c===gi.ChromecastState.CONNECTED),kr=di(k.info.availableVideoStreams$),Ar=te.features.audioLanguages?di(k.info.availableAudioStreams$):Cr([]),Pr=di(k.info.currentVideoStream$),Xi=di(k.info.currentAudioStream$),Mr=c=>{c.language&&jf(c.language),k.setVideoStream(c)},Rn=(c,b)=>{k.setAudioStream(c),wo(b)&&(c.language&&jf(c.language),te.features.userVideoPrefs&&i&&Zf(te.userSalt,String(i),{audioTrackId:c.id}))},hn=c=>{let b;if(c.length===1&&(b=c.at(0)),b!=null||(b=c.find(ne=>"isDefault"in ne&&ne.isDefault)),te.features.userVideoPrefs&&i){let ne=Hu(te.userSalt,String(i));if(ne!=null&&ne.audioTrackId){let Ae=c.find(rt=>rt.id===ne.audioTrackId);b=Ae!=null?Ae:b}}let V=Z1();return V&&(b!=null||(b=c.find(({language:ne})=>V===ne))),b!=null||(b=c.at(0)),b},yo=c=>{fe.log("change audio stream",{id:c});let b=k.info.availableAudioStreams$.getValue().find(V=>V.id===c);b&&Rn(b,!0)},gr=!1;Ye.add(k.info.availableAudioStreams$.subscribe(c=>{if(!gr&&c.length){let b=hn(c);b&&(k.setAudioStream(b),gr=!0)}})),Ar.subscribe(c=>{var b;(b=a==null?void 0:a.onAvailableAudioStreamsChanged)==null||b.call(a,c.map(({label:V="",id:ne="",language:Ae=""})=>({label:V,language:Ae,id:ne})))}),Xi.subscribe(c=>{var b;return c&&((b=a==null?void 0:a.onAudioStreamChanged)==null?void 0:b.call(a,c.id))});let On=!1;Ye.add(k.info.availableVideoStreams$.subscribe(c=>{if(!On&&c.length){let b=hn(c);b&&(k.setVideoStream(b),On=!0)}}));let gt=le(void 0),vi=di(k.info.isAutoQualityEnabled$,c=>c&&gt.set(void 0)),Lr=di(k.info.currentQuality$,()=>gt.set(void 0)),Gn=$i([gt,Lr],([c,b])=>c!=null?c:b),Vr=$i(Do,c=>c!==gi.VideoFormat.MPEG),Nn=$i([bo,$o,vi,Gn,Vr],([c,b,V,ne,Ae])=>{let rt=[];Ae&&rt.push({value:"auto",displayValue:ut("auto_quality_option"),selected:V});let Vt=c.filter(Kt=>!(0,ft.isInvariantQuality)(Kt));for(let Kt of Vt){let Yt=b[Kt];rt.push({value:Kt,displayValue:`${Kt}${Yt?H0(Yt):""}`,selected:V?!1:Kt===ne})}return rt}),Dn=di(k.info.currentPlaybackRate$),Ho=$i([Dn,Bo,gn],([c,b,V])=>{let ne=V||C?1:te.controls.playbackRateMin,Ae=b?1:te.controls.playbackRateMax,rt=te.controls.playbackRateStep,Vt=[];for(let Kt=ne;Kt<=Ae;Kt+=rt)Vt.push({value:Kt,displayValue:Kt===1?ut("playback_rate_1"):ut("playback_rate",{multiplier:Kt.toString(10)}),selected:c===Kt});return Vt}),Fo=()=>({displayValue:ut("subtitles_off"),value:Kn,language:""}),_n=le(Fo()),xo=$i([_n,$t],([c],b)=>{c.value===Kn?b(Fo()):b(c)}),Uo=te.features.subtitles?di(k.info.availableTextTracks$):Cr([]),nn=H1(),hr=$i([Uo,xo],([c,b],V)=>{var rt;let ne=[],Ae=c.find(({id:Vt})=>Vt===b.value);if(Ae!=null&&Ae.url){let[,Vt]=(rt=nn.find(Ae.url))!=null?rt:[];if(Vt){V(Vt);return}Be.download(Ae.url).then(Kt=>{if(!Kt||Be.isDestroyed())return;let Yt=new F0,Us=Ae.language;if(Us){let z_=!!Ae.isAuto,W_=Yt.parse(Kt,Us);ne.push({lang:Us,subtitles:W_,isAuto:z_,id:Ae.id})}nn.add(Ae.url,ne),be(xo).value===b.value&&V(ne)}).catch(Kt=>{var Yt;(Yt=J==null?void 0:J.oneStat)==null||Yt.logError({errorType:"Subtitles download",fatal:!1}),q==null||q.report(Kt,{errorType:"Subtitles download",fatal:!1})})}V(ne)}),Rr=$i([Dn,jn,xo],([c,b,V],ne)=>{let Vt;if(k.info.isLive$.getValue()&&b&&V.value!==Kn){let Yt=()=>{let Us=1e3/(3*c);Vt=setTimeout(Yt,Us),ne(Date.now())};return Yt(),()=>clearTimeout(Vt)}}),bn=$i([Uo,xo],([c,b])=>{if(!c.length)return[];let V=[];for(let{language:ne,isAuto:Ae,id:rt}of c){let Vt=ne&&hc(ne);ne&&Vt&&V.push({displayValue:Ae?ut("subtitles_auto",{language:Vt}):Vt,value:rt,selected:(b==null?void 0:b.value)===rt,isAuto:Ae,language:ne})}return V.length?(V.unshift(Gt(Q({},Fo()),{selected:(b==null?void 0:b.value)===Kn})),V):[]}),qi={available:[],prev:[]},_r=()=>{var b,V;let c=k.experimental.getCurrentTime$.getValue();return(V=(b=c==null?void 0:c())!=null?b:Se==null?void 0:Se.currentTime)!=null?V:0},Or=$i([ni,xo,hr,Rr],([c,b,V,ne])=>{var rt;let Ae=k.info.isLive$.getValue();if(Ae&&qi.prev!==V){let Vt=V.find(({id:Yt})=>Yt===b.value),Kt=qi.prev.find(({id:Yt})=>Yt===b.value);if(Vt){let Yt=Gt(Q({},Vt),{subtitles:[...(rt=Kt==null?void 0:Kt.subtitles)!=null?rt:[],...Vt.subtitles]});qi.available=[Yt],qi.prev=V}}if(b&&b.value!==Kn){let Vt=Ae?_r():c,Kt=Ae?qi.available:V;return W0(Vt,b,Kt,Ae)}}),Bn=$i([Or],([c])=>c!=null&&c.texts?c.texts:[]);Ye.add(xo.subscribe(c=>{var b,V;if(c.value===Kn)(b=a==null?void 0:a.onSubtitleOff)==null||b.call(a);else{let ne=Object.entries(lp).find(([Ae,rt])=>rt===c.displayValue);(V=a==null?void 0:a.onSubtitleOn)==null||V.call(a,ne?ne[0]:"",c.value)}}));let Yn=le(!0),Nr=$i([At,Io,Vn,Wi],([c,b,V,ne])=>{var Kt;let Ae=(Kt=c==null?void 0:c.end)!=null?Kt:0;if(!ne)return Ae/b;let Vt=-V+ne-b;return(Ae-Vt)/b}),Zn=di(k.info.availableSources$),it=$i([Zn],([c])=>Object.keys((c==null?void 0:c[gi.VideoFormat.MPEG])||{}).length>0),mi=()=>{var V,ne,Ae;let c=Object.keys(((ne=(V=k.info.availableSources$)==null?void 0:V.getValue())==null?void 0:ne[gi.VideoFormat.MPEG])||{}),b=(0,ft.getHighestQuality)(c)||ft.VideoQuality.Q_144P;return(Ae=ie.sources[gi.VideoFormat.MPEG])==null?void 0:Ae[b]},Bi=()=>{var b;let c=mi();if(c)fe.log("download video",{url:c}),N1(c,((b=ie==null?void 0:ie.meta)==null?void 0:b.title)||"video");else{let V="There is no URL for download video";fe.log("download video",{message:V}),_e({message:V})}},Ji=()=>{_e({message:"toggle muted"});let c=k.info.muted$.getValue();k.info.volume$.getValue()===0&&!c?$n(eo(),!1):Xn(!c,!1)},zo=()=>{var c;if(jt.ui.settingsMenu.visible$.set(!1),!be(jt.ui.settingsSubMenu.visible$)){let b=be(jt.ui.settingsMenu.ref$);if((c=a==null?void 0:a.uiInfo)!=null&&c.onSettingsMenu&&b){let ne=Yl(b),Ae={top:0,left:0,bottom:0,right:0};a.uiInfo.onSettingsMenu({visible:!1,size:ne,position:Ae,name:"settings"})}}fe.log("close settings menu")},rn=(c,b=()=>Promise.resolve())=>xt(null,null,function*(){var Ae;jt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),jt.ui.settingsMenu.visible$.set(!0),yield b();let V=be(jt.ui.settingsMenu.ref$),ne=va();if((Ae=a==null?void 0:a.uiInfo)!=null&&Ae.onSettingsMenu&&V&&ne){let Vt=Yl(V),Kt=Ls(V,ne);a.uiInfo.onSettingsMenu({visible:!0,size:Vt,position:Kt,name:"settings"})}fe.log("open settings menu",{wasOpenedByKeyboard:c})}),fo=(c,b=!1)=>{var rt;jt.ui.settingsSubMenu.visible$.set(!1);let V=be(jt.ui.settingsMenu.ref$),ne=va(),Ae=be(jt.ui.settingsMenu.visible$);if((rt=a==null?void 0:a.uiInfo)!=null&&rt.onSettingsMenu&&V&&ne)if(Ae&&!b){let Kt=Yl(V),Yt=Ls(V,ne);a.uiInfo.onSettingsMenu({visible:!0,size:Kt,position:Yt,name:"settings"})}else{let Kt=Yl(c),Yt={top:0,left:0,bottom:0,right:0},Us=be(jt.ui.settingsSubMenu.name$);a.uiInfo.onSettingsMenu({visible:!1,size:Kt,position:Yt,name:Us})}fe.log("close settings sub menu")},Li=(c,b)=>{var ne;jt.ui.settingsSubMenu.visible$.set(!0),jt.ui.settingsSubMenu.ref$.set(b),jt.ui.settingsSubMenu.name$.set(c);let V=va();if((ne=a==null?void 0:a.uiInfo)!=null&&ne.onSettingsMenu&&b&&V){let rt=Yl(b),Vt=Ls(b,V);a.uiInfo.onSettingsMenu({visible:!0,name:c,size:rt,position:Vt})}fe.log("open settings sub menu",{name:c})},eo=()=>{var b;let c=Math.max(te.volumeMinRestore,(b=Ou())!=null?b:0);return c===0?te.volumeDefault:c},wo=c=>{let b=te.features.savePreferredStatesOnUserActionOnly;return!b||b&&!c},$n=(c,b)=>{let V=c===0?eo():c,ne=k.info.muted$.getValue();_e({message:`set volume, volume: ${c}, preferredVolume: ${V}`});let Ae=!l||he.is("ads");ne&&c>0&&Ae&&(ne=!1,wo(b)&&qf(!1)),k.setVolume(c,ne),Ve.setVolume(c),wo(b)&&Ff(V)},Xn=(c,b)=>{let V=k.info.volume$.getValue();_e({message:`set muted, currentVolume: ${V}, mute: ${c}`});let ne=he.is("ads");if(k.setMuted(c,ne),Ve.setVolume(c?0:V),wo(b)&&(!ne||!c)&&qf(c),!c&&V===0){let Ae=eo();k.setVolume(Ae),wo(b)&&Ff(Ae),Ve.setVolume(Ae)}},Dr=le(!1),Br=c=>{var b,V;fe.log("set looped",{isLooped:c}),Dr.set(c),k.setLooped(c),(V=(b=a==null?void 0:a.uiInfo)==null?void 0:b.onLoopedChanged)==null||V.call(b,c)};Br(ue);let yn=()=>{var c,b;(b=(c=a==null?void 0:a.uiInfo)==null?void 0:c.onReportProblem)==null||b.call(c)},xn=(c,b=!1)=>{var V;_e({message:`set autoplayNextEnabled, value: ${c}`}),fe.log("set autoplay next enabled",{autoplayNextEnabled:c}),jt.ui.autoplayNextEnabled$.set(c),e0(c),b&&((V=a==null?void 0:a.onSetAutoplayNextEnabled)==null||V.call(a,c))},br=c=>{_e({message:`set timerNextVideoRunning, value: ${c}`}),fe.log("set timer next video running",{timerNextVideoRunning:c}),jt.ui.timerNextVideoRunning$.set(c)},wn=(c=!0)=>{var V;let b=!0;if(c&&(a!=null&&a.onPrevVideoClick))try{b=(V=a==null?void 0:a.onPrevVideoClick)==null?void 0:V.call(a)}catch(ne){_e({message:"onPrevVideoClick callback failed to execute"})}K(!0),b&&X()},Hr=(c=!0)=>{var V;let b=!0;if(c&&(a!=null&&a.onNextVideoClick))try{b=(V=a==null?void 0:a.onNextVideoClick)==null?void 0:V.call(a)}catch(ne){_e({message:"onNextVideoClick callback failed to execute"})}K(!1),b&&de()},tt=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementShow)==null||c.call(a)},Lt=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementClick)==null||c.call(a)},Si=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementAuto)==null||c.call(a)},So=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementCancel)==null||c.call(a)},Wo=()=>{k.prepare()},ko=()=>{(0,ft.assertNonNullable)(jt);let c=be(jt.ui.controls.disabledControls$),b=be(jt.playerPhase),V={playerPhase:b,isInteractive:C,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(_e({message:"toggle play"}),b==="ads"){V.action="play",fe.log("toggle adman play",V),Ve.togglePlay();return}let ne=()=>{var rt;_e({message:"toggle play, call player.play"}),V.action="play",k.play(),(rt=a==null?void 0:a.onPlay)==null||rt.call(a)},Ae=()=>{var rt;_e({message:"toggle play, call player.pause"}),V.action="pause",k.pause(),(rt=a==null?void 0:a.onPause)==null||rt.call(a)};if(k.info.isEnded$.getValue()){if(_e({message:"toggle play, video ended, seek to 0"}),yt.next(),Ut.next(vs.SeekAction.REWIND),C){O==null||O();return}k.seekTime(0),ne()}else k.info.playbackState$.getValue()!==gi.PlaybackState.PLAYING?ne():Ae();fe.log("toggle play",V)},to=(c,{changeReason:b="default",appliesTo:V="to-video"}={},ne)=>{_e({message:`set quality, quality: ${c}`}),fe.log("set quality",{quality:c}),k.setAutoQuality(c==="auto");let{qualityDetailsSubMenuEnabled:Ae}=te.features;Nu(),c!=="auto"?(Ae?(Du({type:"exact_quality",quality:c,videoId:i},V),k.setPredefinedQualityLimits(gi.PredefinedQualityLimits.UNKNOWN)):Uf(i,c),gt.set(c),k.setQuality(c)):Ae&&b==="default"&&(Ao("auto_quality",V,ne),be(po)&&Vi(!1,void 0,ne),be(Ki)&&sn(!1,void 0,ne))},Vi=(c,b="as-default",V)=>{_e({message:`set trafficSavingEnabled, value: ${c}`}),fe.log("set traffic saving enabled",{trafficSavingEnabled:c});let ne=c?gi.PredefinedQualityLimits.TRAFFIC_SAVING:gi.PredefinedQualityLimits.UNKNOWN;te.features.qualityDetailsSubMenuEnabled?(Ko(ne,b,V),Qd(!1)):(k.setPredefinedQualityLimits(ne),wo(V)&&Qd(c))},sn=(c,b="as-default",V)=>{_e({message:`set highQualityEnabled, value: ${c}`}),fe.log("set high quality enabled",{highQualityEnabled:c}),Ko(c?gi.PredefinedQualityLimits.HIGH_QUALITY:gi.PredefinedQualityLimits.UNKNOWN,b,V)},Ko=(c,b,V)=>{c!==gi.PredefinedQualityLimits.UNKNOWN&&(be(pr)&&!be(vi)&&to("auto",{appliesTo:b,changeReason:"limit-changed"},V),Ao(c,b,V)),k.setPredefinedQualityLimits(c)},Ao=(c,b,V)=>{wo(V)&&(Du({type:c,videoId:i},b),b==="as-default"&&Du({type:c,videoId:i},"to-video"))},io=(c,b=!0)=>{fe.log("set playback rate",{playbackRate:c}),k.setPlaybackRate(c),te.features.saveRate&&ge&&!k.info.isLive$.getValue()&&b&&X1(c)},Fr=()=>{let c=be(Mi),b=be(Ho),V=b.findIndex(({selected:Ae})=>Ae);if(V===b.length-1||!c)return b[V];let ne=b[V+1];return io(ne.value),ne},Jn=()=>{let c=be(Mi),b=be(Ho),V=b.findIndex(({selected:Ae})=>Ae);if(V===0||!c)return b[V];let ne=b[V-1];return io(ne.value),ne},er=(c=Gt(Q({},Fo()),{selected:!1}),b)=>{fe.log("set subtitles",Q({},c)),c.value!==Kn&&zi.next(c.isAuto?c.value+"_auto":c.value),_n.set(c),wo(b)&&(Yf(c.value===Kn?void 0:c.language),te.features.userVideoPrefs&&i&&Zf(te.userSalt,String(i),{subtitleTrackId:c.value===Kn?void 0:c.value}))},$r=c=>{fe.log("toggle subtitles");let b=be(xo);(b==null?void 0:b.value)===Kn?Ur(c):rs(c)},hs=(c,b)=>{fe.log("change subtitle",{enabled:c}),c?Ur(!0,b):rs(!0)},Ur=(c,b)=>{fe.log("subtitle on");let V=be(bn),ne=be(ae),Ae=je!=null?je:ne,rt;b&&(rt=V.find(Vt=>Vt.value===b)),rt!=null||(rt=V.filter(Vt=>Vt.value!==Kn).find(Vt=>Vt.language===Ae)),er(rt!=null?rt:V[1],c)},rs=c=>{fe.log("subtitle off"),er(void 0,c)};Ye.add(k.info.availableTextTracks$.subscribe(c=>{var V;function b(){let ne=[];for(let{language:Ae,isAuto:rt,id:Vt}of c){let Kt=Ae&&hc(Ae);Ae&&Kt&&ne.push({id:Vt,language:Ae,title:rt?ut("subtitles_auto",{language:Kt}):Kt})}return ne}(V=a==null?void 0:a.onAvailableSubtitlesChanged)==null||V.call(a,b())}));let qe=le(!0),ti=c=>{qe.set(c)},hi=(c,b,V=!0)=>{var ne;if(_e({message:`seek to time, time: ${c}`}),fe.log("seek to time",{time:c,action:b,forcePrecise:V}),Ut.next(b),k.info.isLive$.getValue()){let Ae=k.info.duration$.getValue(),rt=Math.min(0,Ae+c);k.seekTime(rt,V)}else{if(E!=null&&E.getValue())return;k.info.isEnded$.getValue()&&(_e({message:"seek after ended, call callbacks.onPlay"}),(ne=a==null?void 0:a.onPlay)==null||ne.call(a)),k.seekTime(dn(c),V)}},Sn=c=>{_e({message:`seek to episode start time: ${c}`}),fe.log("seek to episode start time",{time:c}),hi(c,vs.SeekAction.EPISODE,!0)},qo=(c,b,V=!1)=>{_e({message:`seek to percent, percent: ${c}`}),fe.log("seek to percent",{percent:c,action:b});let ne=be(Io)*c;hi(ne,b,V)},zr=c=>{_e({message:`seek external, time: ${c}`}),fe.log("seek external",{time:c}),Ut.next(vs.SeekAction.UNKNOWN),k.seekTime(k.info.isLive$.getValue()?-c:c)},an=c=>{var ne,Ae;let b=(ne=c.max)!=null?ne:"none",V=(Ae=c.min)!=null?Ae:"none";_e({message:`set auto quality limitation. Max: ${b}. Min: ${V}`}),fe.log("set auto quality limits",{max:b,min:V}),k.setAutoQualityLimits(c)},Wr=c=>{_e({message:`seek external to episode start time: ${c}`}),fe.log("seek external to episode start time",{time:c}),hi(c,vs.SeekAction.EPISODE,!0)},Bs=c=>{_e({message:`set playback rate to: ${c}`}),fe.log("set playback rate external",{playbackRate:c}),k.setPlaybackRate(c)},oo=le(!1),Kr=le(!1),aa=$i([Io],([c])=>!!v&&c>=te.suitableDurationForUsingRichSeek&&te.features.useRichSeek&&!C),ht=((v==null?void 0:v.frameWidth)||0)>=((v==null?void 0:v.frameHeight)||0),ui=$i([Et],([c])=>{let b=Zl(c);return ht?!b:b});Ye.add(he.subscribe(c=>{c!=="video"&&oo.set(!1)}));let Co=le(void 0),Cn=le(!1),xe=c=>{_e({message:`start scrubbing, progress: ${c}`}),fe.log("start scrubbing",{progress:c}),Cn.set(!0),mt(c)},mt=c=>{Co.set(c)},ai,Ci,pi=()=>{Co.set(void 0),Cn.set(!1)},ii=()=>{clearTimeout(Ci),clearTimeout(ai),ai=window.setTimeout(()=>{pi()},500),Se==null||Se.removeEventListener("seeked",ii)},ki=(c,b=!1)=>{_e({message:`complete scrubbing, progress: ${c}`}),fe.log("complete scrubbing",{progress:c}),qo(c,vs.SeekAction.SLIDER,b),be(jt.ui.isMobile)&&be(jt.state.currentFormat$)===gi.VideoFormat.HLS?(Se==null||Se.addEventListener("seeked",ii),Ci=window.setTimeout(()=>{ii()},300)):pi()},Tn=$i([ni,Io,Co],([c,b,V],ne)=>{ne((0,ft.isNonNullable)(V)?V*b:c)}),ln=le(!1),Ri=()=>{ln.set(!0)},al=()=>{ln.set(!1)},la=$i([ri],([{width:c}],b)=>{let V=V0(c);b(V)}),da=Z.filter(c=>D1(c)),ca=$i([la,Ue],([c,b])=>b?da.filter(V=>!V.hideOnMobile):da.filter(V=>{var ne;return!((ne=V.hideOnDesktopGridTypes)!=null&&ne.includes(c))})),tr=le(Z.filter(c=>B1(c))),_s=$i([tr,la],([c,b])=>c.filter(V=>{var ne;return!((ne=V.hideOnDesktopGridTypes)!=null&&ne.includes(b))})),ua=$i([_s,ca],([c,b])=>[...te.features.additionalButtonsDesktopControlPanelRight?c.filter(V=>V.type==="desktop-control-panel-right"):[],...te.features.additionalButtons?b.map((V,ne)=>{var Ae;return{id:ne,weight:ne,type:"desktop-control-panel-right",testId:V.testId,icon:V.iconUrl,onClick:V.onClick,ariaLabel:(Ae=V.ariaLabel)!=null?Ae:V.tooltip,tooltipText:V.tooltip}}):[]]),yr=le(B),ll=$i([yr],([c])=>te.features.additionalSettingsMenuItems?c.map(b=>b.type==="SWITCH"?Gt(Q({},b),{onClick:b.onChangeEnabled}):b):[]),bs=(c,b)=>{let V=be(tr).map(ne=>ne.id!==c?ne:Q(Q({},ne),b));tr.set(V)},$s=c=>{let b=be(tr);if(b.some(V=>V.id===c.id)){_e({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}b.push(c),tr.set(b)},dl=c=>{let b=be(tr);if(!b.some(V=>V.id===c)){_e({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}b=b.filter(V=>V.id!==c),tr.set(b)},pa=c=>{Ut.next(vs.SeekAction.LIVE),_e({message:"live switch to low latency "+c}),fe.log("live switch to low latency "+c),k.setLiveLowLatency(c)},pd=(c,b)=>{let V=be(yr).map(ne=>ne.id!==c?ne:Q(Q({},ne),b));yr.set(V)},cl=c=>{let b=be(yr);if(b.some(V=>V.id===c.id)){_e({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}b.push(c),yr.set(b)},fd=c=>{let b=be(yr);if(!b.some(V=>V.id===c)){_e({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}b=b.filter(V=>V.id!==c),yr.set(b)},ir=le(U),vd=$i([ir],([c])=>te.features.additionalContextMenuItems?c:[]),ul=(c,b)=>{let V=be(ir).map(ne=>ne.id!==c?ne:Q(Q({},ne),b));ir.set(V)},pl=c=>{let b=be(ir);if(b.some(V=>V.id===c.id)){_e({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}b.push(c),ir.set(b)},fa=c=>{let b=be(ir);if(!b.some(V=>V.id===c)){_e({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}b=b.filter(V=>V.id!==c),ir.set(b)},_t=$i([Ue,ee],([c,b],V)=>{V(c&&b)}),bt=()=>{Ut.next(vs.SeekAction.LIVE),_e({message:"switch to active live"}),fe.log("switch to active live"),k.seekTime(0),k.info.playbackState$.getValue()!==gi.PlaybackState.PLAYING&&jt.actions.internal.togglePlay()},no=()=>{fe.log("skip adman"),Ve.skip()},Po=(c=!0)=>{var ne;(0,ft.assertNonNullable)(jt),_e({message:`switch from ads to video, callPlay: ${c}`}),fe.log("switch from ads to video",{callPlay:c}),Tt.set("video"),c&&k.play(),l&&Xn(!0,!0);let b=(ne=be(lt))==null?void 0:ne.muted,V=!k.info.muted$.getValue();b!==void 0&&!V&&Xn(b,!0),lt.set(void 0)},ro=()=>{(0,ft.assertNonNullable)(jt),_e({message:"switch from video to ads"}),fe.log("switch from video to ads"),jt.actions.internal.pause(),Ze(),Tt.set("ads")},_i=c=>{(0,ft.assertNonNullable)(jt);let b=c?"LiveWaitingStart":"thumb";fe.log("set live waiting start",{state:c,playerPhase:b}),Tt.set(b)},Qi=c=>{(0,ft.assertNonNullable)(jt);let b=c?"LiveWaitingRecover":"thumb";fe.log("set live waiting recover",{state:c,playerPhase:b}),Tt.set(b)},Hs=c=>{(0,ft.assertNonNullable)(jt);let b=c?"LiveWaitingRecord":"thumb";fe.log("set live waiting record",{state:c,playerPhase:b}),Tt.set(b)},md=()=>((0,ft.assertNonNullable)(jt),fe.log("get debug text data"),R1(k,ie,jt,De.getTraceId())),Gc=()=>((0,ft.assertNonNullable)(jt),JSON.stringify(De.getFinishedSpans())),Np=()=>((0,ft.assertNonNullable)(jt),O1(k,ie,jt)),va=()=>Se,Yc=()=>{_e({message:"toggle chromecast"}),fe.log("toggle chromecast"),k.toggleChromecast()},Fs=c=>{var V;if((0,ft.assertNonNullable)(jt),k.info.isEnded$.getValue())return;let b=!c;if(be(jt.playerPhase)==="ads"){_e({message:`pause ads, internalCall: ${b}`}),fe.log("pause ads",{internalCall:b}),Ve.pause();return}_e({message:`pause video, internalCall: ${b}`}),fe.log("pause video",{internalCall:b}),b&&((V=a==null?void 0:a.onPause)==null||V.call(a)),k.pause()},fl=c=>{var V;(0,ft.assertNonNullable)(jt);let b=!c;if(be(jt.playerPhase)==="ads"){_e({message:`play ads, internalCall: ${b}`}),fe.log("play ads",{internalCall:b}),Ve.play();return}_e({message:`play video, internalCall: ${b}`}),fe.log("play video",{internalCall:b}),b&&((V=a==null?void 0:a.onPlay)==null||V.call(a)),k.play()},Zc=c=>{(0,ft.assertNonNullable)(jt);let b=!c;if(be(jt.playerPhase)==="ads"){_e({message:"player cannot be stopped during ads via external method"});return}_e({message:`player will be stopped, internalCall: ${b}`}),A==null||A()},Xc=(c,b)=>{(0,ft.assertNonNullable)(jt),_e({message:`first start, show ads: ${c}, internalCall: ${!b}`}),fe.log("first start",{showAds:c,external:b}),c?Tt.set("ads"):(Tt.set("video"),b?k.play():jt.actions.internal.togglePlay())},vl=()=>(_e({message:"getting time codes"}),f),Jc=()=>{let c=vl();if(!c||[0,1].includes(c.length))return;let b=k.info.position$.getValue();return c.find(V=>V.time>b)},eu=c=>{let b=c;b||(b=Jc());let V=k.info.position$.getValue();fe.log("seek to next episode",Q({currentTime:V},b)),b&&(_e({message:"seek to next episode"}),hi(b.time,vs.SeekAction.EPISODE,!0))},tu=()=>{let c=vl();if(!c||[0,1].includes(c.length))return;let b=k.info.position$.getValue(),V=c.findIndex(Ae=>Ae.time>b),ne=V===-1?c.length-2:V-2;if(!(ne<0))return c[ne]},Dp=c=>{let b=c;b||(b=tu());let V=k.info.position$.getValue();fe.log("seek to prev episode",Q({currentTime:V},b)),b&&(_e({message:"seek to prev episode"}),hi(b.time,vs.SeekAction.EPISODE,!0))},Bp=()=>(_e({message:"getting preview thumbs data"}),fe.log("get preview thumbs data",Q({},v)),v),ze=()=>xt(null,null,function*(){let c=oe==null?void 0:oe.isActive(),b="none";oe!=null&&oe.isActive()?(b="exit",yield oe==null?void 0:oe.exit()):(b="request",yield oe==null?void 0:oe.request()),fe.log("toggle picture in picture",{isActive:c,action:b})}),bi=(c=-90)=>{fe.log("rotate video",{alphaDiff:c}),Et.update(b=>b+c)},vo=le([]);T==null||T.subscribe(c=>{let b=[];for(let V=0;V<c.length;V++){let{range:[ne,Ae],subjects:rt}=c[V];V===0&&ne!==0&&b.push({time:0,text:"",interactive:!1,completed:!0}),b.push({time:ne/1e3,text:"",interactive:!0,completed:te.features.interactiveTimeOpenUri?!rt.length||rt.every(Vt=>Vt.isRemoved):!rt.length}),Ae!==1/0&&b.push({time:Ae/1e3,text:"",interactive:!1,completed:!0})}vo.set(b)});let ma=le(!1);E==null||E.subscribe(c=>{c&&be(Cn)&&pi()});let dn=c=>{if(!C)return c;let b=be(vo),V=be(Io),Ae=be(Vn)/V,rt=b.find(Vt=>Vt.interactive&&!Vt.completed&&Vt.time>Ae);return typeof(rt==null?void 0:rt.time)=="number"?Math.min(c,rt.time-.05):c},O_=()=>{jt.ui.episodes.panelOpened$.set(!1)},N_=()=>{fe.log("destroy store"),clearTimeout(Ci),clearTimeout(ai),Ye.unsubscribe(),wi.unsubscribe(),k.destroy(),Ve.destroy(),J==null||J.destroy(),q==null||q.destroy(),Pe.unsubscribe(),Pi==null||Pi.disconnect(),Pi=null,Be.destroy()},D_=$i([Bo,he,Mi],([c,b,V])=>p.features.doubleForwardAvailable&&!c&&b==="video"&&V),Hp=le(!1),Pg=2,iu=null,Mg=c=>{if(!be(jn)&&c)return;let b=k.info.currentPlaybackRate$.getValue();c?b!==Pg&&(iu=b,io(Pg,!1),Hp.set(!0)):(iu&&io(iu,!1),Hp.set(!1),iu=null)};he.subscribe(c=>{c!=="video"&&Mg(!1)});let B_=()=>{Fs(!1),oo.set(!0)},H_=()=>{fl(!1),oo.set(!1)},Fp=!1,F_=()=>{Kr.set(!0),Fp=k.info.playbackState$.getValue()===gi.PlaybackState.PLAYING,Fs(!1)},U_=()=>{Kr.set(!1),!be(oo)&&Fp&&fl(!1),Fp=!1};k.events.playing$.subscribe(()=>{be(oo)&&Fs(!1)});let jt={interfaceLanguage$:ae,isCyrillicRelatedInterface$:It,initVideo:Dt,videoId:i,isClip:o,playerPhase:he,vsid:Je,state:{positionExact$:ni,positionWithScrubbing$:Tn,duration$:Io,playbackState$:vt,isPlaying$:jn,isLoaderVisible:Ei,bufferedProgress$:Nr,isLive$:pt,canChangePlaybackSpeed$:Mi,isActiveLive$:Bo,isOldestAvailableLive$:gn,isRewindableLive$:mr,isEnded$:Xt,muted$:No,volume$:on,trafficSavingEnabled$:po,highQualityEnabled$:Ki,autoQualityLimitingAvailable$:pr,availableVideoStreams$:kr,availableAudioStreams$:Ar,videoStream$:Pr,audioStream$:Xi,currentQuality$:Gn,isAutoQualityEnabled$:vi,availableQualities$:Nn,currentPlaybackRate$:Dn,availablePlaybackRates$:Ho,currentSubtitle$:xo,availableTextTracks$:Uo,availableSubtitlesList$:bn,currentSubtitleCaptions$:Bn,isAutoSubtitleCaptionVisible$:Yn,chromecastState$:Di,chromecastDeviceName$:mn,chromecastConnected$:Ir,currentFormat$:Do,throughputEstimation$:fr,videoBitrate$:vr,videoSize$:Er,errorLog$:Ee,crashed$:ee,isAudioAvailable$:gs,isAudioDisabled:!!l,canDownload:te.features.download&&!!d,availableSources$:Zn,hasMpegSources$:it,isInteractive:C,showInteractiveGraph:te.features.interactiveGraph,showSeekToInteractive:te.features.seekToInteractive,showPlayPrevChapter:te.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:te.features.interactiveTimeIndicator&&!!be(vo).length,interactiveEpisodes$:vo,isInteractiveTime$:E?di(E):le(!1),isInteractiveExpectation$:ma,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:L,looped$:Dr,loadedMetadata$:oi,isAutoQualityAvailable$:Vr,previewTrackActive:oo,previewTrackDragInProgress:Kr},ui:{t:ut,controlsVisible:le(!1),touched:le(!1),controls:{prevButton:le(void 0),playButton:le(void 0),replayButton:le(void 0),nextButton:le(void 0),playPrevChapterButton:le(void 0),seekToInteractiveButton:le(void 0),interactiveGraphButton:le(void 0),liveButton:le(void 0),time:le(void 0),episodes:le(void 0),volume:le(void 0),subtitles:le(void 0),settings:le(void 0),context:le(void 0),chromecast:le(void 0),pip:le(void 0),fullscreen:le(void 0),vkLogo:le(void 0),interactiveTimeIndicator:le(void 0),timeline:le(void 0),autoplayNextToggle:le(void 0),additionalButtons:Z.length?Z.reduce(c=>[...c,le(void 0)],[]):[],disabledControls$:dt},modals:{hotKeyMap:{show:le(!1),data:le({title:"",closeBtnText:"",groups:[]})}},isFullscreen:Ft,isFullscreenOpenedByKeyboard:ot,rotateAlpha:Et,isAutoplay:le(!1),debugPanelVisible:le(!1),episodes:{panelOpened$:le(!1),openedByKeyboard$:le(!1)},contextMenu:{visible$:le(!1),btnRef$:le(void 0),openedByBtnKeyboard$:le(!1),openedByHotKey$:le(!1),lastActiveElem$:le(void 0),showContextMenuBtn$:le(!1),position$:le({top:0,left:0})},playerSize:ri,isMobile:Ue,mobileNotReportControlHidden$:_t,icon3DVideoVisible:le(!1),scrubbingInProgress:Cn,volumeChangingInProgress:ln,is3DVideo:Rt,currentGridType$:la,additionalButtonsDeprecated$:ca,additionalDesktopControlPanelRightButtons$:ua,additionalSettingsMenuItems$:ll,additionalContextMenuItems$:vd,interactiveHideMobileControls:le(!1),overlayContainer$:le(void 0),startedByKeyboard$:le(!1),autoplayNextEnabled$:le(!1),timerNextVideoRunning$:le(!0),settingsMenu:{visible$:le(!1),ref$:le(void 0),openedByBtnKeyboard$:le(!1)},settingsSubMenu:{visible$:le(!1),ref$:le(void 0),name$:le(void 0)},userActionsDisabled:le(!1),hiddenControls:{volume:le(!1),vkLogo:le(!1),pip:le(!1),chromecast:le(!1),settings:le(!1)},isControlsAvailable:qe,controlBlocks:{topLeft:le(void 0),topRight:le(void 0),middle:le(void 0),bottom:le(void 0),bottomLeft:le(void 0),bottomRight:le(void 0)},videoTitleInfo:le(void 0),doubleForwardOn$:Hp,doubleForwardAvailable$:D_,previewTrackNotificationVisible:le(!1),previewTrackActive:oo,previewTrackDragInProgress:Kr,previewTrackAvailable:aa,isPreviewTrackHorizontallyAligned:ui},ads:{position:le(0),duration:le(0),playbackState:le("inactive"),canSkip:le(!1),secondsToWatchBeforeSkip:le(0),postrollPassed:le(!1)},webApi:{pictureInPictureApi:oe,annotationsApi:Fe,slotsApi:Ge},actions:{internal:{preload:Wo,firstStart:c=>Xc(c,!1),play:()=>fl(!1),pause:()=>Fs(!1),togglePlay:ko,toggleMuted:Ji,openSettingsMenu:rn,closeSettingsMenu:zo,openSettingsSubMenu:Li,closeSettingsSubMenu:fo,setVolume:c=>$n(c,!1),setMuted:c=>Xn(c,!1),startVolumeChanging:Ri,stopVolumeChanging:al,setVideoStream:Mr,setAudioStream:c=>Rn(c,!1),setQuality:(c,b)=>to(c,b,!1),setTrafficSavingEnabled:(c,b)=>Vi(c,b,!1),setHighQualityEnabled:(c,b)=>sn(c,b,!1),setPlaybackRate:io,incrementPlaybackRate:Fr,decrementPlaybackRate:Jn,setSubtitle:c=>er(c,!1),toggleSubtitle:()=>$r(!1),togglePictureInPicture:ze,startScrubbing:xe,progressScrubbing:mt,completeScrubbing:ki,toggleChromecast:Yc,switchToActiveLive:bt,switchFromAdsToVideo:Po,switchFromVideoToAds:ro,skipAd:no,setLiveWaitingStart:_i,setLiveWaitingRecover:Qi,setLiveWaitingRecord:Hs,getDebugTextData:md,getTraceTextData:Gc,getDebugPanelData:Np,getVideoElement:va,seekTime:(c,b,V)=>hi(c,b,V),clearDelayedBufferingCheckTimeout:ns,seekEpisodeStartTime:Sn,seekToPercent:qo,getNextEpisode:Jc,seekToNextEpisode:eu,getPrevEpisode:tu,seekToPrevEpisode:Dp,startLogging:Eo,stopLogging:tn,startCameraManualRotation:vn,stopCameraManualRotation:kt,moveCameraFocusPX:Wt,holdCamera:W,releaseCamera:Ot,getVideoEpisodes:vl,getPreviewThumbsData:Bp,downloadVideo:Bi,addLanguage:Xf,setLanguage:Te,nextMovie:xi,videoRotate:bi,correctSeekTimeToInteractive:dn,replayInteractive:O,setLooped:Br,reportProblem:yn,setAutoplayNextEnabled:xn,setTimerNextVideoRunning:br,prevVideoClick:wn,nextVideoClick:Hr,nextVideoAnnouncementShow:tt,nextVideoAnnouncementClick:Lt,nextVideoAnnouncementAuto:Si,nextVideoAnnouncementCancel:So,checkFullscreenSupport:zt,changeDoubleForwardOn:Mg,closePreviewTrack:H_,previewTrackOpened:B_,previewTrackDragStarted:F_,previewTrackDragFinished:U_},external:{firstStart:c=>Xc(c,!0),play:()=>fl(!0),pause:()=>Fs(!0),stop:()=>Zc(!0),seekTime:c=>zr(c),seekEpisodeStartTime:c=>Wr(c),setPlaybackRate:c=>Bs(c),setAutoQualityLimits:c=>an(c),setMuted:c=>Xn(c,!0),toggleSubtitle:()=>$r(!0),changeSubtitle:hs,setVolume:c=>$n(c,!0),returnFocusToEpisodes:O_,updateAdditionalSettingsItem:pd,addAdditionalSettingsItem:cl,removeAdditionalSettingsItem:fd,updateAdditionalContextItem:ul,addAdditionalContextItem:pl,removeAdditionalContextItem:fa,updateAdditionalButton:bs,addAdditionalButton:$s,removeAdditionalButton:dl,setLiveLowLatency:pa,hideControls:()=>ti(!1),showControls:()=>ti(!0),setQuality:c=>to(c,{appliesTo:"to-video"},!0),setTrafficSavingEnabled:c=>Vi(c,"to-video",!0),setHighQualityEnabled:c=>sn(c,"to-video",!0),changeAudioStream:yo}},callbacks:a,setUiCallbacks:c=>{Ce=Q({},c)},getAdmanWrapper:()=>Ve,getLogger:()=>Qe,getPlayer:()=>k,destroy:N_};return jt};function qn(t,e,i,o){var f;let r=(f=e[i])==null?void 0:f.getBoundingClientRect(),s=o&&!!r&&!!(r.right-r.left),{top:l,left:d,bottom:a,right:u}=Ls(e[i],t||void 0);return{left:s?d:0,right:s?u:0,top:s?l:0,bottom:s?a:0,isDisplayed:s}}var o4=["disabledControls$","additionalButtons"],n4=["interactiveTimeIndicator"],Jl=(t,e,i,o)=>{if(t){for(let[r,s]of Object.entries(e))if(!o4.includes(r)){let l=o||n4.includes(r);s.set(qn(t,i,r,l))}}};var cp=(t,e,i)=>xt(null,null,function*(){yield _o(),e&&i&&(i.focus(),t.set(!1))});var r4=ke('<svg><!><path fill="var(--btn-color, #fff)" d="M18 10c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m-6 4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m-6 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"></path></svg>');function Qv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=r4();Me(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"dots-icon",role:"img"},i));var r=_(o);ye(r,()=>{var s;return(s=e.children)!=null?s:pe}),Ie(),g(o),$(t,o)}function jv(t,e){H(e,!0);let[i,o]=Ne(),r=()=>S(a,"$contextMenuVisible$",i),s=h(e,"disabled",3,!1),l=h(e,"ariaLabel",3,""),d=$e(),a=d.ui.contextMenu.visible$,u=d.ui.contextMenu.openedByBtnKeyboard$,f=d.ui.contextMenu.showContextMenuBtn$,v=d.ui.contextMenu.position$,p=d.ui.contextMenu.btnRef$,x=j(void 0);We(()=>{n(x)&&Pt(()=>{p.set(n(x))})});let w=E=>{let O=ta(E),A=S0(n(x));v.set(A),u.set(O),a.set(!r())},y=()=>{f.set(!0)},C=()=>{f.set(!1)},T=m(()=>r()?"opened":"");Qt(t,{get className(){return n(T)},testId:"btn-context-menu",get disabled(){return s()},get ariaLabel(){return l()},click:w,focus:y,blur:C,get ariaExpanded(){return r()},get ref(){return n(x)},set ref(E){N(x,E,!0)},children:(E,O)=>{Qv(E,{})},$$slots:{default:!0}}),F(),o()}var s4=t=>{t.stopPropagation()},a4=M("<div><!> <div></div> <div></div></div>"),l4={hash:"svelte-od3veb",code:`.interactive-episode-icon-animated.svelte-od3veb {position:absolute;top:16px;right:16px;width:32px;height:32px;transition:0.3s;opacity:1;}.interactive-episode-icon-animated.icon-small.svelte-od3veb {width:28px;height:28px;}.invisible.svelte-od3veb {opacity:0;visibility:hidden;}.fullscreen.svelte-od3veb:not(.mobile) {width:40px;top:19px;right:23px;height:40px;}.mobile.svelte-od3veb {width:28px;height:28px;top:12px;right:14px;}.fullscreen.mobile.svelte-od3veb {width:32px;height:32px;}
234
+
235
+ @media screen and (orientation: portrait) {.interactive-episode-icon-animated.mobile.fullscreen.svelte-od3veb {top:40px;right:16px;}
236
+ }
237
+
238
+ @keyframes svelte-od3veb-pulse {
239
+ 0% {
240
+ transform: scale(1);
241
+ border-width: 1px;
242
+ opacity: 0;
243
+ }
244
+ 10% {
245
+ opacity: 1;
246
+ }
247
+ 50% {
248
+ transform: scale(1.5);
249
+ border-width: 1px;
250
+ opacity: 0.5;
251
+ }
252
+ 100% {
253
+ transform: scale(1.5);
254
+ border-width: 0.5px;
255
+ opacity: 0;
256
+ }
257
+ }.pulse.svelte-od3veb {display:block;content:'';border:1px solid #fff;position:absolute;top:0;left:0;right:0;bottom:0;border-radius:100%;transform:scale(1.8);
258
+ animation: 1s svelte-od3veb-pulse infinite;transition:0.3s;pointer-events:none;}.pulse.paused.svelte-od3veb {animation-play-state:paused;}.interactive-episode-icon-animated svg {width:100%;height:100%;}.ref-block.svelte-od3veb {position:absolute;top:0;width:100%;height:100%;visibility:hidden;}.hidden.svelte-od3veb {display:none;}`};function bc(t,e){var q;H(e,!0),z(t,l4);let[i,o]=Ne(),r=()=>S(C,"$isMobile",i),s=()=>S(A,"$areControlsVisible",i),l=()=>S(L,"$currentGridType$",i),d=()=>S(E,"$isInteractiveTime$",i),a=()=>S(y,"$interactiveControlsOpacity$",i),u=()=>S(O,"$showInteractiveTimeIndicatorTooltip$",i),f=()=>S(T,"$isFullscreen",i),v=h(e,"ref",15,void 0),p=j(void 0),x=$e(),w=To(),{interactiveControlsOpacity$:y}=w,C=x.ui.isMobile,T=x.ui.isFullscreen,E=x.state.isInteractiveTime$,O=w.showInteractiveTimeIndicatorTooltip$,A=x.ui.controlsVisible,I=(q=x.callbacks)==null?void 0:q.onInteractiveTimeIndicatorClick,L=x.ui.currentGridType$,Z=m(()=>!r()&&s()),B=m(()=>Ms(l(),"s")),U=m(()=>!d()||!!a()||n(Z)),X=j(!1);We(()=>{N(X,n(U),!0)});let de=()=>{N(X,!0)},K=()=>{var oe;ue(),(oe=n(p))==null||oe.addEventListener("animationiteration",de,{once:!0})},ue=()=>{var oe;N(X,!1),(oe=n(p))==null||oe.removeEventListener("animationiteration",de)},J=oe=>{O.set(oe)},ge=m(()=>u()&&!n(U));We(()=>{u()?K():ue()});let se=()=>{n(U)||(O.set(!0),I==null||I())};pn(()=>{O.clearTimeout(),ue()});let ce=()=>{O.set(!1)},Le=Y("tooltip_interactive_interaction_time_indicator");var we=a4();let te;we.__mousemove=[s4],we.__click=se;var De=_(we);Ro(De,{get tooltipContent(){return Le},get tooltipActive(){return n(ge)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:J,get ref(){return v()},set ref(oe){v(oe)},children:(oe,Fe)=>{uc(oe,{completed:!0})},$$slots:{default:!0}});var fe=P(De,2);let k;at(fe,oe=>v(oe),()=>v());var Qe=P(fe,2);let Ve;at(Qe,oe=>N(p,oe),()=>n(p)),g(we),D((oe,Fe,Ge)=>{te=re(we,1,"interactive-episode-icon-animated svelte-od3veb",null,te,oe),k=re(fe,1,"ref-block svelte-od3veb",null,k,Fe),Ve=re(Qe,1,"pulse svelte-od3veb",null,Ve,Ge)},[()=>({mobile:r(),fullscreen:f(),invisible:n(U),"icon-small":n(B)}),()=>({hidden:n(U)}),()=>({paused:n(X)})]),wt("mouseleave",we,ce),$(t,we),F(),o()}ct(["mousemove","click"]);function up(t,e){H(e,!0);let i=h(e,"tooltipEnabled",3,!0),o=h(e,"disabled",3,!1),r=h(e,"className",3,void 0),s=h(e,"ref",15);Ro(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 className(){return r()},get ref(){return s()},set ref(l){s(l)},children:(l,d)=>{var a=He();let u=m(()=>e.buttonComponent);var f=ve(a);Oi(f,()=>n(u),(v,p)=>{p(v,ks(()=>{var x;return(x=e.buttonComponentProps)!=null?x:{}}))}),$(l,a)},$$slots:{default:!0}}),F()}var Vs={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var c4=ke('<svg><!><path fill="var(--btn-color, #fff)" d="M16 10.835V7.5a1 1 0 1 1 2 0v9a1 1 0 0 1-2 0v-3.335l-8.149 4.67C7.03 18.304 6 17.715 6 16.772V7.227c0-.943 1.029-1.533 1.851-1.061L16 10.834z"></path></svg>');function Gv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=c4();Me(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img"},i));var r=_(o);ye(r,()=>{var s;return(s=e.children)!=null?s:pe}),Ie(),g(o),$(t,o)}function $c(t,e){let i=h(e,"isPrev",3,!1),o=h(e,"isMobile",3,!1),r=h(e,"width",3,"24"),s=h(e,"height",3,"24"),l=m(()=>i()&&o()?"transform: scaleX(-1) scale(1.3333);":i()?"transform: scaleX(-1);":o()?"transform: scale(1.3333);":void 0),d=m(()=>i()?"prev-icon":"next-icon");Gv(t,{get style(){return n(l)},get width(){return r()},get height(){return s()},get viewBox(){return e.viewBox},get"data-testid"(){return n(d)}})}var u4=M('<div class="icon-background-mobile svelte-xtk2k4"></div>'),p4=M("<!> <!>",1),f4={hash:"svelte-xtk2k4",code:".icon-background-mobile.svelte-xtk2k4 {position:absolute;top:0;left:0;width:100%;height:100%;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);}"};function Qa(t,e){H(e,!0),z(t,f4);let i=h(e,"ref",15,void 0),o=h(e,"isMobile",3,!1),r=h(e,"disabled",3,!1),l=$e().ui.t,d=m(()=>e.type==="prev"?l("tooltip_previous"):l("tooltip_next")),a=m(()=>e.type==="prev"?l("hotkey_map_item_prev_video_value"):l("hotkey_map_item_next_video_value")),u=m(()=>`btn-${o()?"m":"d"}--${e.type}`);Qt(t,{get className(){return n(u)},get testId(){var f;return`btn-${(f=e.type)!=null?f:""}`},get disabled(){return r()},get ariaLabel(){return n(d)},get click(){return e.click},get ariaKeyShortCut(){return n(a)},get ref(){return i()},set ref(f){i(f)},children:(f,v)=>{var p=p4(),x=ve(p);{var w=T=>{var E=u4();$(T,E)};R(x,T=>{o()&&T(w)})}var y=P(x,2);let C=m(()=>e.type==="prev");$c(y,{get isMobile(){return o()},get isPrev(){return n(C)}}),$(f,p)},$$slots:{default:!0}}),F()}var v4=ke('<svg><!><path fill="var(--btn-color, #fff)" d="M12 10.096a.4.4 0 0 1-.67.296L7.044 6.493a.67.67 0 0 1 0-.986l4.288-3.899a.4.4 0 0 1 .669.296V5a8 8 0 1 1-8 8 1 1 0 1 1 2 0 6 6 0 1 0 6-6z"></path></svg>');function yc(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=v4();Me(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"replay-icon",role:"img"},i));var r=_(o);ye(r,()=>{var s;return(s=e.children)!=null?s:pe}),Ie(),g(o),$(t,o)}var Q0=require("@vkontakte/videoplayer-shared/es2015");var m4=M('<div class="icon-background-mobile svelte-1ot3duq"></div>'),g4=M("<!> <div><!></div>",1),h4={hash:"svelte-1ot3duq",code:".mobile.svelte-1ot3duq {position:relative;display:flex;align-items:center;justify-content:center;}.mobile.svelte-1ot3duq svg {transform:scale(2);}.icon-background-mobile.svelte-1ot3duq {position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px);}"};function ed(t,e){H(e,!0),z(t,h4);let i=h(e,"ref",15,void 0),o=h(e,"isMobile",3,!1),r=h(e,"disabled",3,!1),s=h(e,"className",3,""),l=h(e,"click",3,Q0.noop),d=Y("tooltip_restart"),a=m(()=>`${o()?"btn-m--play":""} ${s()}`);Qt(t,{get className(){return n(a)},testId:"btn-replay",get ariaLabel(){return d},get disabled(){return r()},get click(){return l()},get ariaKeyShortCut(){return ps.KeyK},get ref(){return i()},set ref(u){i(u)},children:(u,f)=>{var v=g4(),p=ve(v);{var x=T=>{var E=m4();$(T,E)};R(p,T=>{o()&&T(x)})}var w=P(p,2);let y;var C=_(w);yc(C,{}),g(w),D(T=>y=re(w,1,"svelte-1ot3duq",null,y,T),[()=>({mobile:o()})]),$(u,v)},$$slots:{default:!0}}),F()}var _4=ke('<svg fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="play-icon"><path d="M17.671 10.923c.82.483.82 1.67 0 2.154l-8.787 5.175A1.25 1.25 0 0 1 7 17.174V6.826a1.25 1.25 0 0 1 1.884-1.078l8.787 5.175z"></path></svg>');function ur(t,e){"use strict";let i=h(e,"width",3,"24"),o=h(e,"height",3,"24"),r=h(e,"viewBox",3,"0 0 24 24"),s=h(e,"fill",3,"var(--btn-color)");var l=_4(),d=_(l);g(l),D(()=>{Ke(l,"width",i()),Ke(l,"height",o()),Ke(l,"viewBox",r()),Ke(d,"fill",s())}),$(t,l)}var b4=ke('<svg fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="pause-icon"><path d="M8.712 5c.448 0 .61.047.774.134a.913.913 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134H6.788c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.913.913 0 0 1 .38-.38C6.178 5.047 6.34 5 6.788 5h1.924zm8 0c.448 0 .61.047.774.134a.914.914 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134h-1.924c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.914.914 0 0 1 .38-.38c.164-.087.326-.134.774-.134h1.924z"></path></svg>');function Rs(t,e){"use strict";let i=h(e,"width",3,"24"),o=h(e,"height",3,"24"),r=h(e,"viewBox",3,"0 0 24 24"),s=h(e,"fill",3,"var(--btn-color)");var l=b4(),d=_(l);g(l),D(()=>{Ke(l,"width",i()),Ke(l,"height",o()),Ke(l,"viewBox",r()),Ke(d,"fill",s())}),$(t,l)}var j0=require("@vkontakte/videoplayer-shared/es2015");var $4=M('<div class="icon-background-mobile svelte-1ot3duq"></div>'),y4=M("<!> <div><!></div>",1),x4={hash:"svelte-1ot3duq",code:".mobile.svelte-1ot3duq {position:relative;display:flex;align-items:center;justify-content:center;}.mobile.svelte-1ot3duq svg {transform:scale(2);}.icon-background-mobile.svelte-1ot3duq {position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px);}"};function td(t,e){H(e,!0),z(t,x4);let[i,o]=Ne(),r=()=>S(s,"$fakeIsPlaying$",i),{fakeIsPlaying$:s}=To(),l=h(e,"ref",15,void 0),d=h(e,"isMobile",3,!1),a=h(e,"isPlaying",3,!1),u=h(e,"disabled",3,!1),f=h(e,"className",3,""),v=h(e,"click",3,j0.noop),x=$e().ui.t,{toggle:w}=s,y=m(()=>w),C=m(()=>r()!==null),T=m(()=>n(C)?r():a()),E=m(()=>n(T)?x("tooltip_pause"):x("tooltip_play")),O=m(()=>n(T)?Rs:ur),A=m(()=>`${d()?"btn-m--play":""} ${f()}`),I=m(()=>n(C)?n(y):v());Qt(t,{get className(){return n(A)},testId:"btn-play",get click(){return n(I)},get disabled(){return u()},get ariaLabel(){return n(E)},get ariaKeyShortCut(){return ps.KeyK},get ref(){return l()},set ref(L){l(L)},children:(L,Z)=>{var B=y4();let U=m(()=>n(O));var X=ve(B);{var de=ge=>{var se=$4();$(ge,se)};R(X,ge=>{d()&&ge(de)})}var K=P(X,2);let ue;var J=_(K);Oi(J,()=>n(U),(ge,se)=>{se(ge,{})}),g(K),D(ge=>ue=re(K,1,"svelte-1ot3duq",null,ue,ge),[()=>({mobile:d()})]),$(L,B)},$$slots:{default:!0}}),F(),o()}var w4=ke('<svg><!><path fill="var(--btn-color, #fff)" d="M12.583 12.917v2.496a1 1 0 0 1-1.522.853l-5.583-3.413a1 1 0 0 1 0-1.706l5.583-3.413a1 1 0 0 1 1.522.853v2.496l5.478-3.349a1 1 0 0 1 1.522.853v6.826a1 1 0 0 1-1.522.853z"></path></svg>');function Yv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=w4();Me(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"play-prev-chapter-icon",role:"img"},i));var r=_(o);ye(r,()=>{var s;return(s=e.children)!=null?s:pe}),Ie(),g(o),$(t,o)}function xc(t,e){H(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"hidden",3,!1),r=h(e,"disabled",3,!1),s=Y("tooltip_interactive_go_back"),l=m(()=>o()?"hidden":"");Qt(t,{get className(){return n(l)},testId:"btn-play-prev-chapter",get ariaLabel(){return s},get disabled(){return r()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,a)=>{Yv(d,{})},$$slots:{default:!0}}),F()}var S4=M('<span class="gutter svelte-et3q1q"><span><!></span></span>'),C4={hash:"svelte-et3q1q",code:".gutter.svelte-et3q1q {--gutterWidth: 32px;--gutterHeight: 12px;--togglerWidth: 18px;--togglerHeight: 18px;--togglerGap: calc(var(--togglerWidth) / 6);position:relative;width:var(--gutterWidth);height:var(--gutterHeight);background-color:rgba(255, 255, 255, 0.3);border-radius:50px;}.toggler.svelte-et3q1q {position:absolute;top:calc(((var(--togglerHeight) - var(--gutterHeight)) / 2) * -1);left:0;display:flex;align-items:center;justify-content:center;width:var(--togglerWidth);height:var(--togglerHeight);background-color:rgba(98, 99, 100, 1);border-radius:50%;transform:translateX(calc(var(--togglerGap) * -1));transition-property:background-color, transform;transition-duration:0.2s;transition-timing-function:ease;}.toggler.enabled.svelte-et3q1q {background-color:var(--toggle-color-autoplay-on);transform:translateX(calc(var(--gutterWidth) - var(--togglerWidth) + var(--togglerGap)));}"};function wc(t,e){H(e,!0),z(t,C4);let[i,o]=Ne(),r=()=>S(a,"$autoplayNextEnabled$",i),s=h(e,"ref",15,void 0),l=$e(),d=l.ui.t,a=l.ui.autoplayNextEnabled$,u=l.actions.internal.setAutoplayNextEnabled,f=()=>{u(!r(),!0)},v=d("aria_label_autoplay"),p=m(()=>r()?"true":"false");Qt(t,{click:f,get ariaLabel(){return v},role:"switch",get areaChecked(){return n(p)},get ref(){return s()},set ref(x){s(x)},children:(x,w)=>{var y=S4(),C=_(y);let T;var E=_(C);{var O=I=>{ur(I,{width:"14",height:"14",fill:"#000"})},A=I=>{Rs(I,{width:"14",height:"14",fill:"#000"})};R(E,I=>{r()?I(O):I(A,!1)})}g(C),g(y),D(I=>T=re(C,1,"toggler svelte-et3q1q",null,T,I),[()=>({enabled:r()})]),$(x,y)},$$slots:{default:!0}}),F(),o()}var T4=ke('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M16.726 4.845C16.187 4.8 15.496 4.8 14.5 4.8H7.9a.9.9 0 1 1 0-1.8h6.639c.947 0 1.713 0 2.333.05.64.053 1.204.163 1.726.43a4.4 4.4 0 0 1 1.923 1.922c.266.523.377 1.087.429 1.726.05.62.05 1.386.05 2.334v5.076c0 .948 0 1.714-.05 2.334-.052.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.522.267-1.086.377-1.726.43-.62.05-1.386.05-2.333.05H7.9a.9.9 0 1 1 0-1.8h6.6c.995 0 1.687 0 2.226-.045.528-.043.828-.123 1.055-.238a2.6 2.6 0 0 0 1.136-1.137c.115-.226.195-.527.239-1.055.044-.538.044-1.23.044-2.225v-5c0-.995 0-1.687-.044-2.226-.043-.527-.124-.828-.239-1.054a2.6 2.6 0 0 0-1.136-1.137c-.227-.115-.527-.195-1.055-.238" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M7.76 11.169V8.908c0-.708.704-1.143 1.252-.774l4.594 3.093c.525.353.525 1.193 0 1.546l-4.594 3.093c-.548.369-1.252-.066-1.252-.774v-2.261l-4.508 3.035C2.704 16.235 2 15.8 2 15.091V8.908c0-.708.704-1.143 1.252-.774z"></path></svg>');function Zv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=T4();Me(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"seek-to-interactive-icon",role:"img"},i));var r=_(o);ye(r,()=>{var s;return(s=e.children)!=null?s:pe}),Ie(2),g(o),$(t,o)}function Sc(t,e){H(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"hidden",3,!1),r=h(e,"disabled",3,!1),s=Y("tooltip_interactive_seek"),l=m(()=>o()?"hidden":"");Qt(t,{get className(){return n(l)},testId:"btn-seek-to-interactive",get ariaLabel(){return s},get disabled(){return r()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,a)=>{Zv(d,{})},$$slots:{default:!0}}),F()}var E4=ke('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M16.777 3h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.2.72.523.923.918.141.277.19.557.21.814.02.237.02.521.02.83V7.19c0 .31 0 .594-.02.831-.02.256-.069.537-.21.813a2.1 2.1 0 0 1-.923.92c-.278.14-.56.188-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.919 2.1 2.1 0 0 1-.21-.813 8 8 0 0 1-.02-.63l-2.198-.002c-.495-.001-.81 0-1.05.018-.23.019-.309.05-.343.067a.8.8 0 0 0-.352.35c-.017.034-.049.113-.068.341-.02.24-.02.554-.02 1.046v5.57c0 .49 0 .804.02 1.043.019.228.05.306.068.34.077.15.2.273.35.35.035.017.113.049.342.067.24.02.555.021 1.048.022l2.203.003a8 8 0 0 1 .02-.627c.02-.256.069-.537.21-.813.203-.396.526-.718.923-.92.278-.14.56-.189.817-.21.238-.019.524-.019.834-.019h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.201.72.523.923.919.141.276.19.557.21.813.02.237.02.522.02.831v1.397c0 .31 0 .594-.02.831-.02.256-.069.537-.21.814a2.1 2.1 0 0 1-.923.919c-.278.14-.56.189-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.918 2.1 2.1 0 0 1-.21-.814 8 8 0 0 1-.02-.63l-2.24-.002c-.449 0-.839-.001-1.16-.028-.341-.028-.684-.09-1.016-.259a2.6 2.6 0 0 1-1.14-1.137c-.17-.33-.231-.672-.259-1.011-.026-.321-.026-.71-.026-1.156v-1.921H2.905A.903.903 0 0 1 2 11.992c0-.498.405-.901.905-.901h5.227V9.177c0-.448 0-.837.026-1.159.028-.34.09-.682.26-1.013a2.6 2.6 0 0 1 1.144-1.138c.332-.168.676-.23 1.017-.257.323-.025.714-.025 1.164-.024l2.23.003a8 8 0 0 1 .02-.627c.02-.257.069-.537.21-.814.203-.395.526-.717.923-.919.278-.14.56-.189.817-.21C16.18 3 16.467 3 16.777 3m-.833 1.837a1 1 0 0 1 .146-.02 10 10 0 0 1 .72-.014h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.021.3.3 0 0 1 .126.126 1 1 0 0 1 .021.145c.013.156.014.365.014.716v1.334c0 .352 0 .561-.014.716a1 1 0 0 1-.02.146.3.3 0 0 1-.127.125 1 1 0 0 1-.146.022c-.156.012-.366.013-.719.013H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.022.3.3 0 0 1-.126-.125 1 1 0 0 1-.021-.146 10 10 0 0 1-.014-.716V5.824c0-.351.001-.56.014-.716a1 1 0 0 1 .021-.145.3.3 0 0 1 .126-.126Zm0 11.018a1 1 0 0 1 .146-.022c.156-.012.366-.013.72-.013h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.022.3.3 0 0 1 .126.125 1 1 0 0 1 .021.146c.013.155.014.364.014.716v1.334c0 .351 0 .56-.014.716a1 1 0 0 1-.02.145.3.3 0 0 1-.127.126 1 1 0 0 1-.146.02c-.156.014-.366.014-.719.014H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.021.3.3 0 0 1-.126-.126 1 1 0 0 1-.021-.145 10 10 0 0 1-.014-.716v-1.334c0-.352.001-.561.014-.716a1 1 0 0 1 .021-.146.3.3 0 0 1 .126-.125Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M15.2 5.899v1.203c0 .594 0 .892.115 1.119.102.2.265.362.464.463.227.116.525.116 1.12.116H18.1c.595 0 .892 0 1.12-.116.199-.101.361-.264.463-.463.116-.227.116-.525.116-1.12V5.9c0-.595 0-.892-.116-1.12a1.06 1.06 0 0 0-.464-.463c-.227-.116-.524-.116-1.119-.116h-1.203c-.594 0-.892 0-1.119.116-.2.102-.362.264-.464.464-.115.227-.115.524-.115 1.119Zm-.051 11.03v1.143c0 .605 0 .908.118 1.139.103.203.268.368.472.472.23.117.533.117 1.138.117H18.1c.605 0 .907 0 1.138-.117a1.08 1.08 0 0 0 .472-.472c.118-.231.118-.534.118-1.139v-1.144c0-.605 0-.907-.118-1.138a1.08 1.08 0 0 0-.472-.472c-.231-.118-.534-.118-1.138-.118h-1.224c-.605 0-.907 0-1.138.118a1.08 1.08 0 0 0-.472.472c-.118.23-.118.533-.118 1.138Z" class="_closed" clip-rule="evenodd"></path></svg>');function Xv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=E4();Me(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img"},i));var r=_(o);ye(r,()=>{var s;return(s=e.children)!=null?s:pe}),Ie(2),g(o),$(t,o)}var I4={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function Jv(t,e){z(t,I4);let i=h(e,"isOpened",3,!1),o=m(()=>i()?"graph-close-icon":"graph-open-icon");Xv(t,{get"data-testid"(){return n(o)}})}function Cc(t,e){H(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"hidden",3,!1),r=h(e,"disabled",3,!1),s=h(e,"graphIsOpened",3,!1),d=$e().ui.t,a=m(()=>s()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),u=m(()=>o()?"hidden":"");Qt(t,{get className(){return n(u)},testId:"btn-graph",get disabled(){return r()},get ariaLabel(){return n(a)},get click(){return e.click},get ref(){return i()},set ref(f){i(f)},children:(f,v)=>{let p=m(()=>!!s());Jv(f,{get isOpened(){return n(p)}})},$$slots:{default:!0}}),F()}var em=require("@vkontakte/videoplayer-core/es2015");function Tc(t,e){H(e,!0);let[i,o]=Ne(),r=()=>S(u,"$playbackState$",i),s=h(e,"isMobile",3,!1),l=h(e,"isLiveActive",3,!1),d=h(e,"ariaLabel",3,""),a=$e(),u=a.state.playbackState$,f=a.actions.internal.switchToActiveLive,v=a.actions.internal.togglePlay,p=m(()=>()=>{if(!l()){f();return}r()===em.PlaybackState.PAUSED&&v()}),x=m(()=>s()?"":"btn--live btn-full-opacity"),w=m(()=>l()?"btn-live":"btn-live-offset"),y=m(()=>l()&&r()===em.PlaybackState.PLAYING);Qt(t,{get className(){return n(x)},get testId(){return n(w)},get disabled(){return n(y)},get ariaLabel(){return d()},get click(){return n(p)},children:(C,T)=>{Xd(C,{get isActive(){return l()}})},$$slots:{default:!0}}),F(),o()}var tm=require("@vkontakte/videoplayer-shared/es2015");var k4=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),A4=M('<img class="icon" aria-hidden="true"/>');function ja(t,e){"use strict";let i=j(!1),o=()=>{N(i,!0)};var r=He(),s=ve(r);{var l=a=>{var u=k4();$(a,u)},d=a=>{var u=A4();D(()=>Ke(u,"src",e.icon)),wt("error",u,o),Ea(u),$(a,u)};R(s,a=>{n(i)?a(l):a(d,!1)})}$(t,r)}function im(t,e){H(e,!0);let i=h(e,"disabled",3,!1),o=h(e,"onClick",3,tm.noop),r=h(e,"ref",15),s=m(()=>o()===tm.noop),l=m(()=>n(s)||i()),d=m(()=>n(s)?"btn-full-opacity":"");Ro(t,{get disabled(){return n(l)},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},width:40,get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},get ref(){return r()},set ref(a){r(a)},children:(a,u)=>{let f=m(()=>{var v;return(v=e.testId)!=null?v:e.id});Qt(a,{get className(){return n(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return n(l)},get testId(){return n(f)},children:(v,p)=>{ja(v,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),F()}var G0=t=>!!t.buttonComponent;var Os={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var pp=(t,e,i,o)=>{if(t)for(let[r,s]of Object.entries(e))s.set(qn(t,i,r,o))};var fp=require("@vkontakte/videoplayer-shared/es2015"),Y0=10,Z0=40,om=.2,M4=.5,L4=65,V4=114,R4=4,X0=({onPreviewTrackOpened:t,getTimelineRef:e,isHorizontal:i})=>{let o=m(()=>i?L4:V4),r=j(!1),s=j(0),l=j(0),d=m(()=>n(o)+Y0-Z0-R4),a=m(()=>(0,fp.interpolate)(n(s),[om,1],[0,-n(d)])),u=m(()=>(0,fp.interpolate)(n(s),[om,1],[0,Z0])),f=m(()=>(0,fp.interpolate)(n(s),[om,1],[0,n(o)+Y0]));return{progressBarY:()=>n(a),controlsY:()=>n(u),calculatedHeight:()=>n(f),onPointerDown:y=>{var C;N(l,((C=e())==null?void 0:C.getBoundingClientRect().bottom)||0,!0),N(r,!0)},onPointerMove:y=>{if(!n(r))return;let C=Math.max(Math.min(y.clientY-n(l),0),-n(d));N(s,Math.abs(C/n(d)),!0)},onPointerUp:()=>{N(r,!1),N(s,n(s)>=M4?1:0,!0),n(s)===1&&t()},closePreviewTrack:()=>{N(s,0)}}};var O4=t=>t;function ms(t,{delay:e=0,duration:i=400,easing:o=O4}={}){let r=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:s=>`opacity: ${s*r}`}}var N4=M('<span class="root svelte-mx6l45"> </span>'),D4={hash:"svelte-mx6l45",code:".root.svelte-mx6l45 {font-size:13px;line-height:16px;color:rgba(255, 255, 255, 1);box-shadow:0px 8px 24px 0px rgba(0, 0, 0, 0.08);box-shadow:0px 0px 2px 0px rgba(0, 0, 0, 0.08);font-weight:500;}"};function nm(t,e){z(t,D4);var i=N4(),o=_(i,!0);g(i),D(()=>me(o,e.time)),$(t,i)}var B4=M('<div class="tooltip-wrapper svelte-1xyyqd0"><div><!></div></div>'),H4={hash:"svelte-1xyyqd0",code:'.tooltip-wrapper.svelte-1xyyqd0 {position:relative;display:block;}.tooltip.svelte-1xyyqd0 {position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms;bottom:100%;transform:translateX(-50%);}.pointer.svelte-1xyyqd0:after {position:absolute;bottom:0;left:50%;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;transform:translate(-50%, 5px);}.tooltip.active.svelte-1xyyqd0 {opacity:1;visibility:visible;}'};function rm(t,e){z(t,H4);let i=h(e,"active",3,!1),o=h(e,"pointer",3,!1),r=h(e,"translateXPx",3,0),s=h(e,"translateYPx",3,0),l=h(e,"leftOffset",3,0),d=h(e,"rightOffset",3,0),a=j(void 0),u=j(void 0);function f(C){if(!n(u))return 0;let{width:T}=n(u).getBoundingClientRect(),E=T/2;return C<E?E+l():C>e.containerWidth-E?e.containerWidth-E-d():C}let v=m(()=>f(r()));var p=B4(),x=_(p);let w;var y=_(x);ye(y,()=>{var C;return(C=e.children)!=null?C:pe}),g(x),at(x,C=>N(u,C),()=>n(u)),g(p),at(p,C=>N(a,C),()=>n(a)),D(C=>{et(p,`transform: translate(${n(v)}px, ${s()}px);`),w=re(x,1,"tooltip svelte-1xyyqd0",null,w,C),et(x,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),$(t,p)}var J0=t=>Math.abs(t)/90%4===1;var F4=M('<div class="preview svelte-1wqg760"></div>'),U4=M('<div class="time svelte-1wqg760"> </div>'),z4=M('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),W4={hash:"svelte-1wqg760",code:".timeline-preview.svelte-1wqg760 {bottom:18px;border-radius:2px;pointer-events:none;}.timeline-preview.mobile.svelte-1wqg760 {bottom:72px;}.preview.svelte-1wqg760 {background-color:var(--timeline-preview-bg);box-shadow:0 0 2px var(--timeline-preview-shadow), 0 8px 24px var(--timeline-preview-shadow);border-radius:8px;border:1px solid var(--white);}.episode.svelte-1wqg760 {margin-top:10px;margin-bottom:4px;font-size:13px;line-height:16px;text-shadow:0 8px 24px var(--timeline-preview-shadow), 0 0 2px var(--timeline-preview-shadow);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;font-weight:500;}.time.svelte-1wqg760 {font-size:13px;line-height:16px;text-align:center;color:var(--white);text-shadow:0 8px 24px var(--timeline-preview-shadow), 0 0 2px var(--timeline-preview-shadow);font-weight:500;}"};function sm(t,e){H(e,!0),z(t,W4);let[i,o]=Ne(),r=()=>S(w,"$rotateAlpha",i),s=()=>S(y,"$playerSize",i),l={MOBILE:150,DESKTOP:278},d=h(e,"time",3,""),a=h(e,"isMobile",3,!1),u=h(e,"videoEpisodes",19,()=>[]),f=h(e,"progress",3,0),v=h(e,"duration",3,0),p=h(e,"isInteractive",3,!1),x=$e(),w=x.ui.rotateAlpha,y=x.ui.playerSize,C=j(0),T=j(0),E=j(""),O=j(0),A=j(0),I=j(0),L=j(0),Z=m(()=>op(f(),v(),u())),B=m(()=>Zl(r())),U=m(()=>J0(r())),X=m(ue),de=m(()=>(n(U)?1:-1)*(n(C)/2-n(T)/2)),K=m(()=>n(de)*-1);We(()=>{(q=>{N(C,q.width,!0),N(T,q.height,!0)})(ge())}),We(()=>{(q=>{N(E,q.imgSrc,!0),N(O,q.imgWidth,!0),N(A,q.imgHeight,!0),N(I,q.imgOffsetX,!0),N(L,q.imgOffsetY,!0)})(se(f()))});function ue(){var Ge;let q=a()?l.MOBILE:l.DESKTOP,{isVertical:oe}=J(),Fe=30;return(Ge=n(Z))!=null&&Ge.text&&(Fe+=16),(oe||n(B))&&(Fe+=18,Fe+=50),Math.min(Math.max(s().height-Fe,0),q)}function J(){let q=e.previewThumbsData.frameWidth,oe=e.previewThumbsData.frameHeight,Fe=oe>q;return{width:q,height:oe,isHorizontal:!Fe,isVertical:Fe}}function ge(){let{height:q,isHorizontal:oe,isVertical:Fe,width:Ge}=J();return oe&&(q=q/Ge*n(X),Ge=n(X)),Fe&&(Ge=Ge/q*n(X),q=n(X)),{width:Ge,height:q}}function se(q){let oe;e.previewThumbsData.isUV?oe=Math.floor(v()*q/e.previewThumbsData.frequency):oe=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*q)));let Fe=Math.floor(oe/e.previewThumbsData.countPerImage),Ge=Math.floor(oe%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),_e=oe%e.previewThumbsData.countPerRow,ie=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&Fe===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(ie=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&ie++);let Se=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&Fe===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(Se=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Ce=n(C)*Se,Be=n(T)*ie,Ye=-_e*n(C),je=-Ge*n(T);return{imgSrc:e.previewThumbsData.links[Fe],imgWidth:Ce,imgHeight:Be,imgOffsetX:Ye,imgOffsetY:je}}var ce=z4();let Le;var we=_(ce);{var te=q=>{var oe=F4();D(()=>et(oe,`width: ${n(C)}px; height: ${n(T)}px; background-image: url(${n(E)}); background-size: ${n(O)}px ${n(A)}px; background-position: ${n(I)}px ${n(L)}px;
259
+ transform: rotate(${r()}deg) ${n(B)?`translate(${n(de)}px, ${n(K)}px)`:""};
260
+ `)),$(q,oe)};R(we,q=>{n(E)&&q(te)})}var De=P(we,2),fe=_(De);{var k=q=>{var oe=He(),Fe=ve(oe);{var Ge=ie=>{var Se=us();D(Ce=>me(Se,Ce),[()=>Y("tooltip_episode_unfinished")]),$(ie,Se)},_e=ie=>{var Se=us();D(()=>me(Se,n(Z).text||"")),$(ie,Se)};R(Fe,ie=>{p()&&n(Z).completed===!1?ie(Ge):ie(_e,!1)})}$(q,oe)};R(fe,q=>{n(Z)&&q(k)})}g(De);var Qe=P(De,2);{var Ve=q=>{var oe=U4(),Fe=_(oe,!0);g(oe),D(()=>me(Fe,d())),$(q,oe)};R(Qe,q=>{p()||q(Ve)})}g(ce),D(q=>{Le=re(ce,1,"timeline-preview svelte-1wqg760",null,Le,q),et(ce,`width: ${n(B)?n(T):n(C)}px;`)},[()=>({mobile:a()})]),$(t,ce),F(),o()}var K4=M('<span class="time svelte-1jr6obn"> </span>'),q4=M("<!> <!>",1),Q4={hash:"svelte-1jr6obn",code:".time.svelte-1jr6obn {display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8);}.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 am(t,e){var ae,$t,It,ut,Tt;H(e,!0),z(t,Q4);let[i,o]=Ne(),r=()=>S(K,"$interactiveEpisodes$",i),s=()=>S(L,"$duration$",i),l=()=>S(I,"$position$",i),d=()=>S(ge,"$isInteractiveExpectation$",i),a=()=>S(J,"$isInteractiveTime$",i),u=()=>S(we,"$previewTrackActive",i),f=()=>S(Z,"$isLive$",i),v=()=>S(Le,"$disabledControls$",i),p=()=>S(U,"$isMobile",i),x=()=>S(B,"$isActiveLive$",i),w=()=>S(A,"$bufferedProgress$",i),y=h(e,"showTimeline",3,!1),C=h(e,"withEpisodes",3,!0),T=h(e,"ref",15,void 0),E=$e(),O=Nt(),A=E.state.bufferedProgress$,I=E.state.positionWithScrubbing$,L=E.state.duration$,Z=E.state.isLive$,B=E.state.isActiveLive$,U=E.ui.isMobile,X=O.features.episodes&&C()?E.actions.internal.getVideoEpisodes():void 0,de=E.actions.internal.getPreviewThumbsData(),K=E.state.interactiveEpisodes$,ue=E.state.isInteractive,J=E.state.isInteractiveTime$,ge=E.state.isInteractiveExpectation$,se=E.actions.internal.correctSeekTimeToInteractive,ce=(ae=E.callbacks)==null?void 0:ae.onDisabledTimelineClick,Le=E.ui.controls.disabledControls$,we=E.ui.previewTrackActive,te=(It=($t=E.callbacks)==null?void 0:$t.uiInfo)==null?void 0:It.onTimelineMouseEnter,De=(Tt=(ut=E.callbacks)==null?void 0:ut.uiInfo)==null?void 0:Tt.onTimelineMouseLeave,fe=E.ui.t,k=O.features.interactiveResponsiveUi,Qe=m(()=>ue?r():X),Ve=m(()=>en(s())),q=m(()=>en(l())),oe=m(()=>l()/s()),Fe=m(()=>d()||a()),Ge=j(!1),_e=j(""),ie=j(0),Se=j(0),Ce=j(0),Be=m(()=>({containerWidth:n(Se),translateXPx:n(ie),translateYPx:ue&&de?-36:-16,active:n(Ge)&&y()&&!n(Fe)&&!k&&!u(),pointer:!O.features.timelinePreview||!de||f()})),Ye=fe("aria_timeline"),je=m(()=>fe("aria_timeline_value",{position:n(q),duration:n(Ve)}));function Ue(he){return!se||!ue?he:se(he*s())/s()}function Je(he,lt){var st;(st=e.onSliderPointerDown)==null||st.call(e,lt),E.actions.internal.startScrubbing(Ue(he))}function Ft(he){a()||E.actions.internal.progressScrubbing(Ue(he))}function ot(he){var lt;E.actions.internal.completeScrubbing(Ue(he)),N(Ge,!1),(lt=e.onSliderPointerUp)==null||lt.call(e)}function zt(he,lt,st){var dt;(dt=e.onSliderPointerEnter)==null||dt.call(e,he),oi(he,lt,st),N(Ge,!0)}function Zt(he,lt,st,dt){var ri;(ri=e.onSliderMove)==null||ri.call(e,dt,he),oi(he,lt,st),N(Ge,!0)}function Et(){var he;N(Ge,!1),(he=e.onSliderLeave)==null||he.call(e)}function oi(he,lt,st){N(Ce,Ue(he),!0),N(ie,lt,!0),st&&N(Se,st,!0),N(_e,Rt(he),!0)}function Rt(he){let lt=en((f()?1-he:he)*s());return f()?`-${lt}`:lt}let Ee=m(()=>v().has("TIMELINE"));var Pe=q4(),ee=ve(Pe);rm(ee,ks(()=>n(Be),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(he,lt)=>{var st=He(),dt=ve(st);{var ri=fi=>{sm(fi,{get time(){return n(_e)},get isMobile(){return p()},get videoEpisodes(){return n(Qe)},get previewThumbsData(){return de},get progress(){return n(Ce)},get duration(){return s()},get isInteractive(){return ue}})},ei=fi=>{var Ei=K4(),uo=_(Ei,!0);g(Ei),D(()=>me(uo,n(_e))),$(fi,Ei)};R(dt,fi=>{O.features.timelinePreview&&de&&!f()?fi(ri):fi(ei,!1)})}$(he,st)},$$slots:{default:!0}}));var Te=P(ee,2);Ka(Te,{className:"timeline-slider",get isActiveLive(){return x()},get isMobile(){return p()},get ariaLabel(){return Ye},ariaValueMin:0,get ariaValueMax(){return s()},get ariaValueNow(){return l()},get ariaValueText(){return n(je)},get loadedProgress(){return w()},get filledProgress(){return n(oe)},get handleProgress(){return n(oe)},get videoEpisodes(){return n(Qe)},onPointerDown:Je,onHandleMove:Ft,onPointerMove:Zt,onPointerUp:ot,onPointerEnter:zt,onPointerLeave:Et,get onMouseEnter(){return te},get onMouseLeave(){return De},get onDisabledClick(){return ce},get isInteractive(){return ue},get disabled(){return n(Ee)},get handleAlwaysVisible(){return u()},get hideHandel(){return a()},testId:"progress_bar",onContextMenu:ot,get ref(){return T()},set ref(he){T(he)}}),$(t,Pe),F(),o()}var j4={hash:"svelte-1yate8h",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 Ec(t,e){H(e,!0),z(t,j4);let[i,o]=Ne(),r=()=>S(a,"$isMobile",i),s=h(e,"position",3,0),l=h(e,"duration",3,0),d=$e(),a=d.ui.isMobile,u=d.ui.t,f=m(()=>en(l())),v=m(()=>en(s())),p=m(()=>s()/l()),x=m(()=>u("aria_timeline_value",{position:n(v),duration:n(f)})),w=m(()=>Math.round(n(p)*100));Ka(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return l()},get ariaValueNow(){return n(w)},get ariaValueText(){return n(x)},get filledProgress(){return n(p)},hideHandel:!0,get squareBorders(){return r()}}),F(),o()}var G4=M("<div><!></div>"),Y4=M("<div></div>"),Z4={hash:"svelte-1b7iyrc",code:".timeline.svelte-1b7iyrc {position:relative;pointer-events:all;display:flex;align-items:center;bottom:0;width:100%;min-width:86px;box-sizing:border-box;}.timeline.mobile.svelte-1b7iyrc {height:16px;padding:6px 12px 7px;margin-top:6px;}.withoutPadding.svelte-1b7iyrc {padding:0;}.timeline-stub.svelte-1b7iyrc {width:100%;min-width:20px;}.timeline-stub.mobile.svelte-1b7iyrc {height:8px;}"};function Ga(t,e){H(e,!0),z(t,Z4);let[i,o]=Ne(),r=()=>S(C,"$isLive$",i),s=()=>S(O,"$isMobile",i),l=()=>S(A,"$disabled",i),d=()=>S(E,"$adPosition",i),a=()=>S(T,"$adDuration",i),u=h(e,"isAds",3,!1),f=h(e,"isHidden",3,!1),v=h(e,"timelineNotAvailable",3,!1),p=h(e,"needPadding",3,!0),x=h(e,"ref",15,void 0),w=$e(),y=Nt(),C=w.state.isLive$,T=w.ads.duration,E=w.ads.position,O=w.ui.isMobile,A=le(!1),I=m(()=>!v()&&(!r()||r()&&e.canRewindLive&&e.isRewindableLive||u()));var L=He(),Z=ve(L);{var B=X=>{var de=G4();let K;var ue=_(de);{var J=se=>{Ec(se,{get position(){return d()},get duration(){return a()}})},ge=se=>{am(se,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return n(I)},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 x()},set ref(ce){x(ce)}})};R(ue,se=>{u()?se(J):se(ge,!1)})}g(de),Is(de,()=>Ul(f()&&y.features.usePerformanceFix,A,y.disableInvisibleComponentsTimeout)),D(se=>K=re(de,1,"timeline svelte-1b7iyrc",null,K,se),[()=>({withoutPadding:!p(),mobile:s(),"out-of-flow":l()})]),$(X,de)},U=X=>{var de=Y4();let K;D(ue=>K=re(de,1,"timeline-stub svelte-1b7iyrc",null,K,ue),[()=>({mobile:s()})]),$(X,de)};R(Z,X=>{n(I)?X(B):X(U,!1)})}$(t,L),F(),o()}var e_=require("@vkontakte/videoplayer-shared/es2015");var X4=(t,e,i,o,r,s,l)=>{N(e,!0),N(i,t.clientX,!0),N(o,n(r),!0),s(l())},J4=M("<div></div>"),e3=M('<div><div class="track svelte-j4sfvm"></div></div>'),t3={hash:"svelte-j4sfvm",code:`.root.svelte-j4sfvm {height:var(--preview-track-frame-height-horizontal);position:relative;overflow:hidden;width:100%;display:flex;}.root.is-vertical-video.svelte-j4sfvm,
261
+ .root.vertically-rotated.svelte-j4sfvm {height:var(--preview-track-frame-height-vertical);}
262
+
263
+ /**
264
+ * \u041A\u0430\u0440\u0435\u0442\u043A\u0430, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0443\u043A\u0430\u0437\u044B\u0432\u0430\u0435\u0442 \u043D\u0430 \u0442\u0435\u043A\u0443\u0449\u0438\u0439 \u043A\u0430\u0434\u0440.
265
+ */.root.svelte-j4sfvm::after {content:'';height:100%;z-index:1;margin:0 auto;width:3px;background-color:rgba(255, 255, 255, 1);box-shadow:0px 2px 2px 0px rgba(0, 0, 0, 0.12);box-shadow:0px 0px 2px 0px rgba(0, 0, 0, 0.06);pointer-events:none;}.track.svelte-j4sfvm {position:absolute;bottom:0;left:0;top:0;display:flex;padding:0 50%;}.frame.svelte-j4sfvm {flex-shrink:0;position:absolute;pointer-events:none;background-position-y:calc(-1 * var(--frame-height) * var(--row-index));background-position-x:calc(-1 * var(--column-index)*var(--frame-width));background-size:calc(var(--frame-width)*var(--column-numbers)) calc(var(--frame-height)*var(--row-numbers));width:var(--frame-width);height:var(--frame-height);transform-origin:center;}.vertically-rotated.svelte-j4sfvm .frame:where(.svelte-j4sfvm) {transform-origin:0 0;}.rotate-1.svelte-j4sfvm {transform:rotate(-90deg) translateX(-100%);}.rotate-2.svelte-j4sfvm {transform:rotate(-180deg);}.rotate-3.svelte-j4sfvm {transform:rotate(-270deg) translateY(-100%);}`};function dm(t,e){H(e,!0),z(t,t3);let[i,o]=Ne(),r=()=>S(O,"$rotateAlpha",i),s=()=>S(y,"$position$",i),l=()=>S(w,"$duration$",i),d=$e(),{countPerImage:a=0,countPerRow:u=0,countTotal:f=0,links:v=[],frameHeight:p=0,frameWidth:x=0}=d.actions.internal.getPreviewThumbsData()||{},{duration$:w,positionWithScrubbing$:y}=d.state,{startScrubbing:C,progressScrubbing:T,completeScrubbing:E}=d.actions.internal,O=d.ui.rotateAlpha,A=j(void 0),I=j(!1),L=j(0),Z=j(0),B=j(0),U=j(0),X=m(()=>p<=x),de=m(()=>Zl(r())),K=m(()=>n(X)?!n(de):n(de)),ue=114,J=65,ge=3,se=m(()=>n(K)?ue:J),ce=m(()=>n(X)?ue:J),Le=m(()=>n(X)?"var(--preview-track-frame-height-horizontal)":"var(--preview-track-frame-height-vertical)"),we=m(()=>f*n(se)),te=j(0);We(()=>{N(U,Math.ceil(-n(B)/n(se))-1),N(B,-n(we)*s()/l())});let De=()=>{E(fe(),!0)},fe=()=>l()*-n(B)/n(we)/l(),k=!1,Qe=je=>{if(!n(I))return!1;let Ue=je.clientX-n(L);N(B,n(Z)+Ue),N(B,Math.max(Math.min(n(B),0),-n(we)),!0),Math.abs(Ue)>1&&(k=!0),T(fe())},Ve=je=>{n(I)&&(N(I,!1),!k&&je&&N(B,-(je.offsetX-n(te)/2)),k=!1,De())},q=()=>{n(I)&&Ve()},oe=m(()=>a/u),Fe=(je,Ue)=>{if(je!==v.length-1)return u;let Je=0,Ft=Ue*u;for(let ot=1;ot<=u;ot++)je*a+Je+Ft<f&&Je++;return Je},Ge=m(()=>Math.floor(n(U)/a)),_e=m(()=>(0,e_.getRangeAroundIndex)(3,n(Ge),v.length-1)),ie=(je,Ue,Je)=>{let Ft=a*n(se);return je*Ft+Ue*n(se)*u+n(te)/2-ge/2+Je*n(se)},Se=m(()=>[`--row-numbers: ${n(oe)}`,`--column-numbers: ${u}`,`--frame-width: ${n(ce)}px`,`--frame-height: ${n(Le)}`].join(";"));var Ce=e3();let Be;var Ye=_(Ce);Ye.__pointerdown=[X4,I,L,Z,B,C,fe],Ye.__pointermove=Qe,Ye.__pointerup=Ve,Ti(Ye,20,()=>n(_e),je=>je,(je,Ue)=>{var Je=He(),Ft=ve(Je);Ti(Ft,16,()=>Array.from({length:n(oe)},(ot,zt)=>zt),ot=>ot,(ot,zt)=>{var Zt=He(),Et=ve(Zt);Ti(Et,16,()=>Array.from({length:Fe(Ue,zt)},(oi,Rt)=>Rt),oi=>oi,(oi,Rt)=>{var Ee=J4();D((Pe,ee)=>{et(Ee,Pe),re(Ee,1,ee,"svelte-j4sfvm")},[()=>`--row-index: ${zt}; --column-index: ${Rt}; left: ${ie(Ue,zt,Rt)}px; background-image: url(${v[Ue]});`,()=>`frame rotate-${Math.abs(r())/90%4}`]),$(oi,Ee)}),$(ot,Zt)}),$(je,Je)}),g(Ye),g(Ce),at(Ce,je=>N(A,je),()=>n(A)),D(je=>{Be=re(Ce,1,"root svelte-j4sfvm",null,Be,je),et(Ce,n(Se)),et(Ye,`transform: translateX(${n(B)}px); width: ${n(we)}px;`)},[()=>({"is-vertical-video":!n(X),"vertically-rotated":n(de)})]),wt("mouseleave",Ye,q),Mn(Ce,"clientWidth",je=>N(te,je)),$(t,Ce),F(),o()}ct(["pointerdown","pointermove","pointerup"]);var i3=M('<div class="notification svelte-1u3ref1"><span class="description svelte-1u3ref1"> </span></div>'),o3={hash:"svelte-1u3ref1",code:".notification.svelte-1u3ref1 {padding:9px 14px 10px 12px;background:var(--notification-bg);border-radius:var(--notification-radius);}.description.svelte-1u3ref1 {line-height:18px;font-size:14px;}"};function cm(t,e){H(e,!1),z(t,o3);let i=340,{ui:{t:o}}=$e();Jo();var r=i3(),s=_(r),l=_(s,!0);g(s),g(r),D(d=>me(l,d),[()=>o("preview_track_close_tooltip")],En),Xr(3,r,()=>ms,()=>({duration:i})),$(t,r),F()}var t_=require("@vkontakte/videoplayer-shared/es2015"),n3=M('<div class="preview-track-close tooltip svelte-19h243g"><!></div>'),r3=M('<div class="preview-track-control svelte-19h243g"><!> <div class="preview-track-close svelte-19h243g"><!></div> <!></div>'),s3=M('<div class="wrapper-preview-track svelte-19h243g"><!></div>'),a3=M('<div class="enriched-timeline svelte-19h243g"><!> <!> <!></div>'),l3={hash:"svelte-19h243g",code:`.enriched-timeline.svelte-19h243g {padding:var(--timeline-padding-vertical-top) var(--timeline-padding-horizontal)
266
+ var(--timeline-padding-vertical-bottom);position:relative;pointer-events:auto;}.preview-track-control.svelte-19h243g {top:calc((var(--timeline-height) + var(--preview-track-controls-top)) * -1);position:absolute;left:0;right:0;padding:0 calc(var(--timeline-padding-horizontal));display:flex;align-items:center;justify-content:center;pointer-events:none;}.preview-track-close.svelte-19h243g {position:absolute;right:calc(var(--timeline-padding-horizontal));pointer-events:auto;}.preview-track-close.tooltip.svelte-19h243g {bottom:32px;opacity:0;transition:opacity 200ms;}.preview-track-close.svelte-19h243g:hover + .tooltip:where(.svelte-19h243g) {opacity:1;}.wrapper-preview-track.svelte-19h243g {position:absolute;left:0;right:0;overflow:hidden;z-index:-1;padding:0 calc(var(--timeline-padding-horizontal));box-sizing:border-box;}`};function um(t,e){H(e,!0),z(t,l3);let[i,o]=Ne(),r=()=>S(y,"$playerSize",i),s=()=>S(w,"$duration$",i),l=()=>S(C,"$previewTrackActive",i),d=()=>S(p,"$position$",i),a=()=>S(x,"$isRewindableLive$",i),u=h(e,"timelineRef",15,void 0),f=$e(),v=200,{positionWithScrubbing$:p,isRewindableLive$:x,duration$:w}=f.state,{playerSize:y,previewTrackActive:C}=f.ui,{countPerImage:T=0,links:E=[],frequency:O=0}=f.actions.internal.getPreviewThumbsData()||{},A=m(()=>r().width>100),I=j(!s0()),L=()=>{n(I)&&(r0(),N(I,!1))},Z=se=>{let ce=Math.floor(s()*se/O),Le=Math.floor(ce/T),we=(0,t_.getRangeAroundIndex)(3,Le,E.length-1);for(let te of we){let De=new Image;De.src=E[te]}},B=(se,ce)=>{Z(ce),!l()&&e.onTimelineMove(se)};var U=a3(),X=_(U);{var de=se=>{var ce=r3(),Le=_(ce);let we=m(()=>en(d()));nm(Le,{get time(){return n(we)}});var te=P(Le,2),De=_(te);Ps(De,{onClick:()=>f.actions.internal.closePreviewTrack()}),g(te);var fe=P(te,2);{var k=Qe=>{var Ve=n3(),q=_(Ve);cm(q,{}),g(Ve),$(Qe,Ve)};R(fe,Qe=>{n(I)&&Qe(k)})}g(ce),wt("mouseleave",te,L),Xr(3,ce,()=>ms,()=>({duration:v})),$(se,ce)};R(X,se=>{l()&&se(de)})}var K=P(X,2);let ue=m(()=>!n(A));Ga(K,{get isHidden(){return n(ue)},get isAds(){return e.isAds},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return a()},onSliderMove:B,get onSliderPointerDown(){return e.onTimelinePointerDown},get onSliderPointerUp(){return e.onTimelinePointerUp},get onSliderLeave(){return e.onTimelinePointerLeave},onSliderPointerEnter:Z,get ref(){return u()},set ref(se){u(se)}});var J=P(K,2);{var ge=se=>{var ce=s3(),Le=_(ce);dm(Le,{}),g(ce),D(()=>et(ce,`height: ${e.animatedPreviewTrackHeight}px;`)),$(se,ce)};R(J,se=>{e.previewTrackAvailable&&se(ge)})}g(U),D(()=>et(U,`transform: translateY(${e.animatedOffsetY}px);`)),$(t,U),F(),o()}var c3=M('<div><!> <div class="controls svelte-1ojrdvx" data-testid="player_controls"><div class="controls-left svelte-1ojrdvx"><!> <!> <!></div> <div class="controls-right svelte-1ojrdvx"></div></div></div> <!>',1),u3={hash:"svelte-1ojrdvx",code:".wrapper-bottom.svelte-1ojrdvx {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;}.wrapper-bottom.svelte-1ojrdvx::before {content:'';height:var(--controls-gradient-height);background:var(--controls-gradient);position:absolute;width:100%;}.wrapper-bottom.svelte-1ojrdvx > :where(.svelte-1ojrdvx) {pointer-events:auto;}.controls.svelte-1ojrdvx {width:100%;display:flex;align-items:center;justify-content:space-between;height:var(--controls-height);white-space:nowrap;font-size:13px;padding:0 var(--controls-desktop-padding-horizontal) 4px;box-sizing:border-box;}.controls-left.svelte-1ojrdvx, .controls-right.svelte-1ojrdvx {display:flex;align-content:center;}.controls-left.svelte-1ojrdvx {flex-grow:1;min-width:0;overflow:hidden;}.controls-left.svelte-1ojrdvx > *:not(:first-child), .controls-right.svelte-1ojrdvx > * {margin-left:var(--controls-desktop-item-margin-left);}.controls-hidden.svelte-1ojrdvx {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-1ojrdvx {transition:none;}"};function fm(t,e){var pl,fa;H(e,!0),z(t,u3);let[i,o]=Ne(),r=()=>S(tn,"$disabledControls$",i),s=()=>S(pt,"$adPlaybackState",i),l=()=>S(ei,"$playbackState$",i),d=()=>S(Eo,"$currentSubtitle$",i),a=()=>S(uo,"$isEnded$",i),u=()=>S(on,"$currentGridType$",i),f=()=>S(Dt,"$isLive$",i),v=()=>S(Ze,"$chromecastState$",i),p=()=>S(yt,"$isPictureInPictureActive",i),x=()=>S(Ut,"$pictureInPictureType$",i),w=()=>S(wi,"$availableSubtitlesList$",i),y=()=>S(Wt,"$contextMenuOpenedByKeyboard$",i),C=()=>S(kt,"$showContextMenuBtn$",i),T=()=>S(xi,"$isRewindableLive$",i),E=()=>S(ci,"$isActiveLive$",i),O=()=>S(ns,"$graphIsOpened$",i),A=()=>S(vn,"$contextMenuVisible$",i),I=()=>S(Mi,"$isFullscreen",i),L=()=>S(po,"$autoplayNextEnabled",i),Z=()=>S(n(Bi),"$prevButton",i),B=()=>S(n(Ji),"$replayButton",i),U=()=>S(n(zo),"$playButton",i),X=()=>S(n(rn),"$nextButton",i),de=()=>S(n(fo),"$playPrevChapterButton",i),K=()=>S(n(Li),"$seekToInteractiveButton",i),ue=()=>S(n(eo),"$interactiveGraphButton",i),J=()=>S(n(wo),"$liveButton",i),ge=()=>S(n($n),"$time",i),se=()=>S(n(Xn),"$episodes",i),ce=()=>S(n(Dr),"$vkLogo",i),Le=()=>S(n(Br),"$volume",i),we=()=>S(n(yn),"$subtitles",i),te=()=>S(n(xn),"$settings",i),De=()=>S(n(br),"$context",i),fe=()=>S(n(wn),"$fullscreen",i),k=()=>S(n(Hr),"$chromecast",i),Qe=()=>S(No,"$additionalDesktopControlPanelRightButtons$",i),Ve=()=>S(Wi,"$playerSize",i),q=()=>S(mn,"$isInteractiveTime$",i),oe=()=>S(ui,"$previewTrackActive",i),Fe=()=>S(zi,"$settingsMenuVisible",i),Ge=()=>S(to,"$settingButtonRef$",i),_e=()=>S(W,"$startedByKeyboard$",i),ie=()=>S(fi,"$isAudioAvailable$",i),Se=()=>S(Pe,"$fakeIsPlaying$",i),Ce=()=>S(gs,"$seekToInteractiveDisabledTooltip$",i),Be=()=>S(xe,"$isPreviewTrackHorizontallyAligned$",i),Ye=()=>S(Cn,"$previewTrackAvailable",i),je=()=>S(Co,"$previewTrackDragInProgress",i),Ue=()=>S(Xt,"$adPosition",i),Je=()=>S(ri,"$position$",i),Ft=()=>S(At,"$adDuration",i),ot=()=>S(dt,"$duration$",i),zt=h(e,"playerControlsWrapperRef",15,void 0),Zt=h(e,"playerControlsRef",15,void 0),Et=h(e,"isAds",3,!1),oi=h(e,"logoTargetUrl",3,""),Rt=h(e,"isOneVideoPlaylist",3,!1),Ee=h(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:Pe}=To(),ee=$e(),Te=To(),ae=Nt(),$t=ee.actions.internal.toggleMuted,It=ee.actions.internal.togglePlay,ut=ee.actions.internal.pause,Tt=ee.actions.internal.toggleSubtitle,he=ee.actions.internal.checkFullscreenSupport,lt=(pl=ee.callbacks)==null?void 0:pl.onAudioDoesNotExistHint,st=(fa=ee.callbacks)==null?void 0:fa.onAudioDisabledHint,dt=ee.state.duration$,ri=ee.state.positionWithScrubbing$,ei=ee.state.playbackState$,fi=ee.state.isAudioAvailable$,Ei=ee.state.isAudioDisabled,uo=ee.state.isEnded$,Dt=ee.state.isLive$,ci=ee.state.isActiveLive$,xi=ee.state.isRewindableLive$,{isActive$:yt,type$:Ut}=Te.pictureInPicture$,zi=ee.ui.settingsMenu.visible$,Pi=ee.ui.settingsMenu.openedByBtnKeyboard$,si=ee.ui.controls,Mt=ee.actions.internal.getVideoEpisodes(),Ze=ee.state.chromecastState$,wi=ee.state.availableSubtitlesList$,Eo=ee.state.currentSubtitle$,tn=si.disabledControls$,vn=ee.ui.contextMenu.visible$,kt=ee.ui.contextMenu.showContextMenuBtn$,Wt=ee.ui.contextMenu.openedByBtnKeyboard$,W=ee.ui.startedByKeyboard$,Ot=ee.ui.controlBlocks,ni=ee.ui.previewTrackNotificationVisible,vt=ee.ui.t,At=ee.ads.duration,Xt=ee.ads.position,pt=ee.ads.playbackState,Mi=ee.ui.isFullscreen,Wi=ee.ui.playerSize,on=ee.ui.currentGridType$,No=ee.ui.additionalDesktopControlPanelRightButtons$,po=ee.ui.autoplayNextEnabled$,Ki=ee.actions.internal.getVideoElement,pr=ee.actions.internal.replayInteractive,bo=ee.actions.internal.prevVideoClick,$o=ee.actions.internal.nextVideoClick,Di=ee.state.isInteractive,mn=ee.state.isInteractiveTime$,Do=ee.state.showInteractiveGraph,fr=ee.state.showSeekToInteractive,vr=ee.state.showPlayPrevChapter,Er=ee.state.showInteractiveTimeIndicator,os=ee.state.playPrevChapterDisabledTooltip,gs=Te.seekToInteractiveDisabledTooltip$,ns=Te.graphIsOpened$,Io=ae.features.interactiveResponsiveUi,jn=m(()=>r().has("EPISODE_BUTTON")),Bo=m(()=>r().has("GRAPH_BUTTON")),gn=m(()=>r().has("SEEK_TO_INTERACTIVE_BUTTON")),Vn=m(()=>r().has("PLAY_BUTTON")),mr=m(()=>r().has("REPLAY_BUTTON")),Ir=m(()=>r().has("PLAY_PREV_CHAPTER_BUTTON")),kr=()=>ee.actions.internal.toggleChromecast(),Ar=m(()=>Et()?s()==="playing":l()===Ya.PlaybackState.PLAYING),Pr=m(()=>d().value!=="off"),Xi=m(()=>a()&&!Et()||Di),Mr=m(()=>Io?n(Xi)&&ao(u(),"m"):n(Xi)),Rn=m(()=>!a()||Di||Et()),hn=m(()=>ao(u(),"m")),yo=m(()=>e.showNextPrevButtons&&ao(u(),"m")&&!Et()&&e.nextButtonActive),gr=m(()=>e.showNextPrevButtons&&ao(u(),"m")&&!Et()&&e.prevButtonActive),On=m(()=>!Et()&&!!f()),gt=m(()=>v()!==Ya.ChromecastState.NOT_AVAILABLE&&!(p()&&x()===1)&&ao(u(),"m")&&!Di),vi=m(()=>e.showAutoplayNext&&!Rt()&&ao(u(),"s")),Lr=m(()=>w().length>0&&ao(u(),"m")),Gn=m(()=>y()||C()),Vr=m(()=>ao(u(),"s")&&!Et()),Nn=m(()=>!e.logoHidden&&!Et()),Dn=m(()=>ae.features.fullscreen&&he()&&(e.logoHidden||ao(u(),Io?"xs":"s"))&&!(p()&&x()===1)&&(Di?Ee():!0)),Ho=m(()=>(!f()||Et())&&!(ae.features.interactiveHideTime&&Di)),Fo=m(()=>Do&&ao(u(),"m")),_n=m(()=>Io?fr&&ao(u(),"s"):fr),xo=m(()=>Io?vr&&ao(u(),"s"):vr),Uo=m(()=>!Et()&&!f()&&!!(Mt!=null&&Mt.length)&&n(hn)&&!n(jn)),nn=m(()=>!T()||!!E()),hr=m(()=>O()?vt("tooltip_interactive_graph_on"):vt("tooltip_interactive_graph_off")),Rr=m(()=>A()?vt("tooltip_context_menu_close"):vt("tooltip_context_menu_open")),bn=(_t,bt)=>_t?bt&&bt===Ya.PlaybackState.PAUSED?vt("tooltip_play"):"":vt("tooltip_live"),qi=m(()=>bn(n(nn),l())),_r=m(()=>ae.logoType==="vk_video"?vt("tooltip_vk_video_logo"):vt("tooltip_vk_logo")),Or=m(()=>n(Pr)?vt("tooltip_subtitles_on"):vt("tooltip_subtitles_off")),Bn=m(()=>I()?vt("tooltip_fullscreen_on"):vt("tooltip_fullscreen_off")),Yn=m(()=>v()===Ya.ChromecastState.CONNECTED?vt("tooltip_chromecast_on"):vt("tooltip_chromecast_off")),Nr=m(()=>L()?vt("tooltip_autoplay_on"):vt("tooltip_autoplay_off")),Zn=j(0),it=li({}),mi=li({}),Bi=m(()=>si.prevButton),Ji=m(()=>si.replayButton),zo=m(()=>si.playButton),rn=m(()=>si.nextButton),fo=m(()=>si.playPrevChapterButton),Li=m(()=>si.seekToInteractiveButton),eo=m(()=>si.interactiveGraphButton),wo=m(()=>si.liveButton),$n=m(()=>si.time),Xn=m(()=>si.episodes),Dr=m(()=>si.vkLogo),Br=m(()=>si.volume),yn=m(()=>si.subtitles),xn=m(()=>si.settings),br=m(()=>si.context),wn=m(()=>si.fullscreen),Hr=m(()=>si.chromecast),tt=m(()=>({prevButton:Z()?Z().right-Z().left:0,replayButton:B()?B().right-B().left:0,playButton:U()?U().right-U().left:0,nextButton:X()?X().right-X().left:0,playPrevChapterButton:de()?de().right-de().left:0,seekToInteractiveButton:K()?K().right-K().left:0,interactiveGraphButton:ue()?ue().right-ue().left:0,liveButton:J()?J().right-J().left:0,time:ge()?ge().right-ge().left:0,episodes:se()?se().right-se().left:0,vkLogo:ce()?ce().right-ce().left:0,volume:Le()?Le().right-Le().left:0,subtitles:we()?we().right-we().left:0,settings:te()?te().right-te().left:0,context:De()?De().right-De().left:0,fullscreen:fe()?fe().right-fe().left:0,chromecast:k()?k().right-k().left:0,additionalButtons:Qe().length?Qe().reduce(_t=>[..._t,40],[]):[]})),Lt=j(0);We(()=>{(!n(Lt)||n(Lt)<n(tt).time)&&Pt(()=>N(Lt,n(tt).time,!0))});let Si=j(!1);We(()=>{let _t=0;n(Uo)&&(ao(u(),"xl")?_t=n(tt).time:_t=60);let bt=n(tt).prevButton+n(tt).playButton+n(tt).nextButton+n(tt).seekToInteractiveButton+n(tt).interactiveGraphButton+n(tt).liveButton+n(Lt)+_t;N(Si,n(Ho)&&n(Zn)>=bt,!0)});let So=m(()=>n(Si)&&ao(u(),"m")),Wo=(0,pm.debounceFn)(Jl,260),ko=(0,pm.debounceFn)(pp,260);We(()=>{Ve(),q(),oe(),Wo(Ki(),si,it,e.showControls),ko(Ki(),Ot,mi,e.showControls)}),We(()=>{mi.bottom=zt()});let to=le();We(()=>{Fe(),Ge()&&Pt(()=>Wl(Ge(),Fe(),Pi))});let Vi;We(()=>{_e(),Pt(()=>cp(W,_e(),Vi))});function sn(){ia({isAudioDisabled:Ei,isAudioAvailable:ie(),isAds:Et(),audioIsNotExistHintCallback:lt,audioDisabledHintCallback:st})&&$t()}let Ko=Di?pr:It,Ao=m(()=>Se()!==null),io=m(()=>n(Ao)?Se():n(Ar)),Fr=m(()=>n(io)?vt("tooltip_pause"):vt("tooltip_play")),Jn=vt("tooltip_episodes"),er=m(()=>{var _t,bt,no,Po;return n(gr)?{id:"prevButton",type:"desktop-control-panel-left",weight:Vs.prevButton,buttonComponent:Qa,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:bo.bind(null,!0)},tooltipEnabled:!((bt=(_t=ee.callbacks)==null?void 0:_t.uiInfo)!=null&&bt.onPrevButtonMouseEnter)&&!((Po=(no=ee.callbacks)==null?void 0:no.uiInfo)!=null&&Po.onPrevButtonMouseLeave),mouseEnter:()=>{var ro,_i,Qi;(Qi=(_i=(ro=ee.callbacks)==null?void 0:ro.uiInfo)==null?void 0:_i.onPrevButtonMouseEnter)==null||Qi.call(_i,qn(Ki(),it,"prevButton",e.showControls))},mouseLeave:()=>{var ro,_i,Qi;(Qi=(_i=(ro=ee.callbacks)==null?void 0:ro.uiInfo)==null?void 0:_i.onPrevButtonMouseLeave)==null||Qi.call(_i,qn(Ki(),it,"prevButton",e.showControls))},tooltipText:vt("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),$r=m(()=>n(Mr)?{id:"replayButton",type:"desktop-control-panel-left",weight:Vs.replayButton,buttonComponent:ed,buttonComponentProps:{disabled:n(mr),click:Ko},tooltipText:vt("tooltip_restart"),disabled:n(mr)}:void 0),hs=m(()=>n(Rn)?{id:"playButton",type:"desktop-control-panel-left",weight:Vs.playButton,buttonComponent:td,buttonComponentProps:{disabled:n(Vn),isPlaying:n(Ar),click:It},tooltipText:n(Fr),disabled:n(Vn)}:void 0),Ur=m(()=>{var _t,bt,no,Po;return n(yo)?{id:"nextButton",type:"desktop-control-panel-left",weight:Vs.nextButton,buttonComponent:Qa,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:$o.bind(null,!0)},tooltipEnabled:!((bt=(_t=ee.callbacks)==null?void 0:_t.uiInfo)!=null&&bt.onNextButtonMouseEnter)&&!((Po=(no=ee.callbacks)==null?void 0:no.uiInfo)!=null&&Po.onNextButtonMouseLeave),mouseEnter:()=>{var ro,_i,Qi;(Qi=(_i=(ro=ee.callbacks)==null?void 0:ro.uiInfo)==null?void 0:_i.onNextButtonMouseEnter)==null||Qi.call(_i,qn(Ki(),it,"nextButton",e.showControls))},mouseLeave:()=>{var ro,_i,Qi;(Qi=(_i=(ro=ee.callbacks)==null?void 0:ro.uiInfo)==null?void 0:_i.onNextButtonMouseLeave)==null||Qi.call(_i,qn(Ki(),it,"nextButton",e.showControls))},tooltipText:vt("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),rs=m(()=>Di&&n(xo)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:Vs.playPrevChapterButton,buttonComponent:xc,buttonComponentProps:{disabled:n(Ir),click:e.playPrevChapter},tooltipText:vt("tooltip_interactive_go_back"),disabledTooltipContent:vt(os),disabled:n(Ir)}:void 0),qe=m(()=>Di&&n(_n)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:Vs.seekToInteractiveButton,buttonComponent:Sc,buttonComponentProps:{disabled:n(gn),click:e.seekToInteractive},tooltipText:vt("tooltip_interactive_seek"),disabled:n(gn),disabledTooltipContent:vt(Ce())}:void 0),ti=m(()=>Di&&n(Fo)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:Vs.interactiveGraphButton,buttonComponent:Cc,buttonComponentProps:{disabled:n(Bo),click:ns.toggle,graphIsOpened:O()},tooltipText:n(hr)}:void 0),hi=m(()=>n(On)?{id:"liveButton",type:"desktop-control-panel-left",weight:Vs.liveButton,buttonComponent:Tc,buttonComponentProps:{isLiveActive:n(nn),ariaLabel:n(qi)},tooltipText:n(qi),disabled:n(nn)&&l()===Ya.PlaybackState.PLAYING}:void 0),Sn=m(()=>[n(er),n($r),n(hs),n(Ur),n(rs),n(qe),n(ti),n(hi)].filter(_t=>!!_t).sort(Ha)),qo=m(()=>n(Nn)?{id:"vkLogo",type:"desktop-control-panel-right",weight:Os.vkLogo,buttonComponent:vc,buttonComponentProps:{targetUrl:oi(),logoClickable:e.logoClickable,click:ut},tooltipText:n(_r),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),zr=m(()=>n(vi)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:Os.autoplayNext,buttonComponent:wc,tooltipText:n(Nr)}:void 0),an=m(()=>({id:"volume",type:"desktop-control-panel-right",weight:Os.volume,buttonComponent:Lv,buttonComponentProps:{click:sn,isAds:Et()}})),Wr=m(()=>n(Lr)?{id:"subtitles",type:"desktop-control-panel-right",weight:Os.subtitles,buttonComponent:kv,buttonComponentProps:{isSubtitlesEnabled:n(Pr),click:Tt},tooltipText:n(Or)}:void 0),Bs=m(()=>n(Vr)?{id:"settings",type:"desktop-control-panel-right",weight:Os.settings,buttonComponent:Gl,buttonComponentProps:{ref$:to},tooltipText:Fe()?void 0:vt("tooltip_settings_off")}:void 0),oo=m(()=>ae.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:Os.context,buttonComponent:jv,buttonComponentProps:{ariaLabel:vt("aria_label_context_menu")},className:n(Gn)?"":"out-of-view",tooltipText:n(Rr)}:void 0),Kr=m(()=>n(Dn)?{id:"fullscreen",type:"desktop-control-panel-right",weight:Os.fullscreen,buttonComponent:fc,buttonComponentProps:{isFullscreen:I(),click:e.toggleFullscreen},tooltipText:n(Bn)}:void 0),aa=m(()=>n(gt)?{id:"chromecast",type:"desktop-control-panel-right",weight:Os.chromecast,buttonComponent:mc,buttonComponentProps:{state:v(),click:kr},tooltipText:n(Yn)}:void 0),ht=m(()=>[n(qo),n(zr),n(an),n(Wr),n(Bs),n(oo),n(Kr),n(aa),...Qe()].filter(_t=>!!_t).sort(Ha)),ui=ee.ui.previewTrackActive,Co=ee.ui.previewTrackDragInProgress,Cn=ee.ui.previewTrackAvailable,xe=ee.ui.isPreviewTrackHorizontallyAligned,mt=m(()=>X0({onPreviewTrackOpened:ee.actions.internal.previewTrackOpened,getTimelineRef:()=>it.timeline,isHorizontal:Be()})),ai=m(()=>n(mt).progressBarY),Ci=m(()=>n(mt).controlsY),pi=m(()=>n(mt).onPointerDown),ii=m(()=>n(mt).onPointerMove),ki=m(()=>n(mt).onPointerUp),Tn=m(()=>n(mt).calculatedHeight),ln=m(()=>n(mt).closePreviewTrack);We(()=>{oe()?ni.set(!1):n(ln)()});let Ri;Ht(()=>()=>Ri&&clearTimeout(Ri));let al=_t=>{oe()||!Ye()||(n(pi)(_t),Ri=setTimeout(()=>{ee.actions.internal.previewTrackDragStarted()},200))},la=()=>{oe()||n(ki)(),Ri&&clearTimeout(Ri),je()&&ee.actions.internal.previewTrackDragFinished()},da=_t=>{n(ii)(_t),!oe()&&Ye()&&!oe()&&ni.set(!0)},ca=()=>{ni.set(!1)};var tr=c3(),_s=ve(tr);let ua;var yr=_(_s);{var ll=_t=>{let bt=m(()=>n(ai)()),no=m(()=>n(Tn)());um(_t,{get animatedOffsetY(){return n(bt)},get animatedPreviewTrackHeight(){return n(no)},get canRewindLive(){return e.canRewindLive},get isAds(){return Et()},onTimelineMove:da,onTimelinePointerDown:al,onTimelinePointerUp:la,onTimelinePointerLeave:ca,get previewTrackAvailable(){return Ye()},get timelineRef(){return it.timeline},set timelineRef(Po){it.timeline=Po}})};R(yr,_t=>{e.showControls&&_t(ll)})}var bs=P(yr,2),$s=_(bs),dl=_($s);Ti(dl,17,()=>n(Sn),_t=>_t.id,(_t,bt)=>{up(_t,{get buttonComponent(){return n(bt).buttonComponent},get buttonComponentProps(){return n(bt).buttonComponentProps},get tooltipText(){return n(bt).tooltipText},get disabledTooltipContent(){return n(bt).disabledTooltipContent},get disabled(){return n(bt).disabled},get className(){return n(bt).className},get tooltipEnabled(){return n(bt).tooltipEnabled},get mouseEnter(){return n(bt).mouseEnter},get mouseLeave(){return n(bt).mouseLeave},get ref(){return it[n(bt).id]},set ref(no){it[n(bt).id]=no}})});var pa=P(dl,2);{var pd=_t=>{let bt=m(()=>!e.showControls),no=m(()=>Et()?Ue():Je()),Po=m(()=>Et()?Ft():ot());cc(_t,{get isHidden(){return n(bt)},isMobile:!1,get showDuration(){return n(So)},get position(){return n(no)},get duration(){return n(Po)},get ref(){return it.time},set ref(ro){it.time=ro}})};R(pa,_t=>{n(Ho)&&_t(pd)})}var cl=P(pa,2);let fd=m(()=>!n(Uo));Ro(cl,{className:"w-max",get disabled(){return n(fd)},get tooltipContent(){return Jn},get ref(){return it.episodes},set ref(_t){it.episodes=_t},children:(_t,bt)=>{var no=He(),Po=ve(no);{var ro=_i=>{gc(_i,{get position(){return Je()},get duration(){return ot()},get timeCodes(){return Mt}})};R(Po,_i=>{n(Uo)&&_i(ro)})}$(_t,no)},$$slots:{default:!0}}),g($s);var ir=P($s,2);Ti(ir,21,()=>n(ht),_t=>_t.id,(_t,bt)=>{var no=He(),Po=ve(no);{var ro=Qi=>{up(Qi,{get buttonComponent(){return n(bt).buttonComponent},get buttonComponentProps(){return n(bt).buttonComponentProps},get tooltipText(){return n(bt).tooltipText},get disabledTooltipContent(){return n(bt).disabledTooltipContent},get disabled(){return n(bt).disabled},get className(){return n(bt).className},get ref(){return it[n(bt).id]},set ref(Hs){it[n(bt).id]=Hs}})},_i=Qi=>{let Hs=m(()=>!!n(bt).disabled);im(Qi,{get id(){return n(bt).id},get testId(){return n(bt).testId},get icon(){return n(bt).icon},get ariaLabel(){return n(bt).ariaLabel},get tooltipText(){return n(bt).tooltipText},get disabledTooltipContent(){return n(bt).disabledTooltipContent},get disabled(){return n(Hs)},get onClick(){return n(bt).onClick},get disableMouseupTooltipShow(){return n(bt).disableMouseupTooltipShow},get ref(){return it[n(bt).id]},set ref(md){it[n(bt).id]=md}})};R(Po,Qi=>{G0(n(bt))?Qi(ro):Qi(_i,!1)})}$(_t,no)}),g(ir),g(bs),at(bs,_t=>Zt(_t),()=>Zt()),g(_s),at(_s,_t=>zt(_t),()=>zt());var vd=P(_s,2);{var ul=_t=>{bc(_t,{get ref(){return it.interactiveTimeIndicator},set ref(bt){it.interactiveTimeIndicator=bt}})};R(vd,_t=>{Er&&_t(ul)})}D((_t,bt)=>{ua=re(_s,1,"wrapper-bottom svelte-1ojrdvx",null,ua,_t),et(bs,bt),bs.inert=oe()},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth||je()}),()=>`transform: translateY(${n(Ci)()}px);`]),Mn($s,"clientWidth",_t=>N(Zn,_t)),$(t,tr),F(),o()}var id=require("@vkontakte/videoplayer-core/es2015");var vm=require("@vkontakte/videoplayer-shared/es2015");var p3=M('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),f3=M('<img class="icon svelte-167ouw6" aria-hidden="true"/>'),v3={hash:"svelte-167ouw6",code:".icon.svelte-167ouw6 {width:24px !important;height:24px !important;}.inner.svelte-167ouw6 {width:16px;height:16px;background-color:var(--white);}"};function mm(t,e){z(t,v3);let i=h(e,"disabled",3,!1),o=h(e,"onClick",3,vm.noop),r=m(()=>o()===vm.noop),s=m(()=>n(r)||i()),l=j(!1),d=()=>{N(l,!0)},a=m(()=>n(r)?"btn-full-opacity":"");Qt(t,{get className(){return n(a)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return n(s)},get testId(){return e.testId},children:(u,f)=>{var v=He(),p=ve(v);{var x=y=>{var C=p3();$(y,C)},w=y=>{var C=f3();D(()=>Ke(C,"src",e.iconUrl)),wt("error",C,d),Ea(C),$(y,C)};R(p,y=>{n(l)?y(x):y(w,!1)})}$(u,v)},$$slots:{default:!0}})}var m3=ke('<svg><!><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"></path><path fill="var(--btn-color, #fff)" d="M8.695 8.105 5.301 4.71a1 1 0 0 1 1.414-1.415L20.7 17.285a1 1 0 0 1-1.414 1.415L16 15.41V20a1 1 0 0 1-1 1c-.641 0-1.258-.25-1.72-.695L7.79 15H5a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h2.765zm2.88-2.77 1.704-1.642A2.48 2.48 0 0 1 15 3a1 1 0 0 1 1 1v5.76l-4.426-4.426Z"></path></g></svg>');function gm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=m3();Me(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img"},i));var r=_(o);ye(r,()=>{var s;return(s=e.children)!=null?s:pe}),Ie(),g(o),$(t,o)}var i_=require("@vkontakte/videoplayer-shared/es2015");var g3=M('<div class="container svelte-yslgu" aria-hidden="true"><!></div>'),h3={hash:"svelte-yslgu",code:".container.svelte-yslgu {display:flex;align-items:center;}"};function vp(t,e){H(e,!0),z(t,h3);let i=h(e,"muted",3,!1),o=h(e,"click",3,i_.noop),r=h(e,"ref",15,void 0),l=$e().ui.t,d=m(()=>i()?l("tooltip_volume"):l("tooltip_volume_muted")),a=m(()=>i()?gm:na),u=m(()=>i()?"btn-mobile-muted":"btn-mobile-unmuted");Qt(t,{get testId(){return n(u)},get click(){return o()},get ariaLabel(){return n(d)},role:"button",get ref(){return r()},set ref(f){r(f)},children:(f,v)=>{var p=g3();let x=m(()=>n(a));var w=_(p);Oi(w,()=>n(x),(y,C)=>{C(y,{})}),g(p),$(f,p)},$$slots:{default:!0}}),F()}var _3=ke('<svg><!><path fill="var(--btn-color, #fff)" d="M7.662 4h6.676c.808 0 1.469 0 2.006.044.556.045 1.058.142 1.526.381a3.9 3.9 0 0 1 1.705 1.704c.239.47.336.971.381 1.527C20 8.193 20 8.854 20 9.662V11.1a.9.9 0 0 1-1.8 0V9.7c0-.855 0-1.442-.038-1.897-.036-.445-.103-.684-.19-.856a2.1 2.1 0 0 0-.919-.918c-.172-.088-.411-.155-.856-.191C15.742 5.8 15.155 5.8 14.3 5.8H7.7c-.855 0-1.442 0-1.897.038-.445.036-.684.103-.856.19a2.1 2.1 0 0 0-.918.919c-.088.172-.155.411-.191.856C3.8 8.258 3.8 8.845 3.8 9.7v2.646c0 .855 0 1.442.038 1.897.036.445.103.683.19.856a2.1 2.1 0 0 0 .919.918c.172.088.411.155.856.191.455.037 1.042.038 1.897.038h2.4a.9.9 0 0 1 0 1.8H7.662c-.808 0-1.469 0-2.006-.044-.556-.045-1.058-.142-1.527-.381a3.9 3.9 0 0 1-1.704-1.704c-.239-.47-.336-.972-.381-1.527C2 13.852 2 13.192 2 12.384V9.662c0-.808 0-1.469.044-2.006.045-.556.142-1.058.381-1.527A3.9 3.9 0 0 1 4.13 4.425c.47-.239.971-.336 1.527-.381C6.193 4 6.854 4 7.662 4M13 16.8c0-.98 0-1.47.19-1.845a1.75 1.75 0 0 1 .766-.764C14.33 14 14.82 14 15.8 14h3.4c.98 0 1.47 0 1.845.19.329.168.596.436.764.766.191.374.191.864.191 1.844v.4c0 .98 0 1.47-.19 1.845a1.75 1.75 0 0 1-.765.764C20.67 20 20.18 20 19.2 20h-3.4c-.98 0-1.47 0-1.845-.19a1.75 1.75 0 0 1-.764-.765C13 18.67 13 18.18 13 17.2z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="m11.643 12.37-.007-.006L9.073 9.8H10.1a.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.022l2.53 2.524.134.134a.9.9 0 0 0 1.272-1.272z" class="hidden-not-active"></path><path fill="var(--btn-color, #fff)" d="m6.357 9.63.007.006L8.927 12.2H7.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.022L7.67 8.397l-.134-.133a.9.9 0 0 0-1.272 1.272z" class="hidden-active"></path></svg>');function hm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=_3();Me(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img"},i));var r=_(o);ye(r,()=>{var s;return(s=e.children)!=null?s:pe}),Ie(3),g(o),$(t,o)}var b3={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
267
+ svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function _m(t,e){z(t,b3);let i=h(e,"isActive",3,!1),o=m(()=>i()?"color: #2688EB;":"color: #fff;"),r=m(()=>i()?"pip-icon--active":"pip-icon");hm(t,{get style(){return n(o)},get"data-testid"(){return n(r)}})}var o_=require("@vkontakte/videoplayer-shared/es2015");function bm(t,e){H(e,!0);let i=h(e,"ref",15,void 0),o=h(e,"isPictureInPictureActive",3,!1),r=h(e,"click",3,o_.noop),s=Y("menu_pip");Qt(t,{testId:"btn-pip",get ariaLabel(){return s},get click(){return r()},get ref(){return i()},set ref(l){i(l)},children:(l,d)=>{_m(l,{get isActive(){return o()}})},$$slots:{default:!0}}),F()}var $m=require("@vkontakte/videoplayer-shared/es2015");var $3=(t,e,i,o)=>{n(e)&&i.onDisabledPlayPrevChapterClick(n(o))},y3=(t,e,i,o)=>{n(e)&&i.onDisabledSeekToInteractiveClick(n(o))},x3=M("<div><!></div>"),w3=M("<div><!></div>"),S3=M("<div><!></div>"),C3=M("<!> <!> <!>",1),T3=M("<div></div> <div></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),E3=M('<div class="wrapper-middle svelte-tg0ura"><!></div>'),I3=M("<div><!></div> <!> <div><!></div>",1),k3=M('<div aria-hidden="true">\xB7</div> <!>',1),A3=M('<!> <!> <div><div><div class="controls mobile svelte-tg0ura"><div class="controls-group contain svelte-tg0ura"><!> <!> <!> <!></div> <div class="controls-group svelte-tg0ura"><!> <!> <!></div></div> <!></div></div> <!>',1),P3={hash:"svelte-tg0ura",code:`.wrapper-bottom.svelte-tg0ura {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;padding:0 4px 8px;}.wrapper-bottom.svelte-tg0ura::before {content:'';height:var(--controls-gradient-height);background:var(--controls-gradient);position:absolute;width:100%;}.wrapper-bottom.svelte-tg0ura > :where(.svelte-tg0ura) {pointer-events:auto;}.wrapper-bottom.ads-timeline-mobile.svelte-tg0ura {height:9px;padding:0 4px 4px;}.wrapper-middle.svelte-tg0ura {position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;z-index:var(--controls-container-z-index);}.wrapper-top-right.svelte-tg0ura {position:absolute;top:4px;right:8px;transition:opacity var(--controls-transition-duration);display:flex;z-index:var(--controls-container-z-index);}.wrapper-top-left.svelte-tg0ura {position:absolute;top:4px;left:8px;z-index:var(--controls-container-z-index);}.wrapper-middle-left.svelte-tg0ura,
268
+ .wrapper-middle-left-second.svelte-tg0ura,
269
+ .wrapper-middle-right.svelte-tg0ura {position:absolute;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center;}.wrapper-middle-left.svelte-tg0ura {left:12px;}.wrapper-middle-left-second.svelte-tg0ura {left:64px;}.wrapper-middle-right.svelte-tg0ura {right:12px;}.controls.svelte-tg0ura {width:100%;display:flex;align-items:center;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 4px;box-sizing:border-box;justify-content:space-between;}.controls-group.svelte-tg0ura {display:flex;}.controls-group.contain.svelte-tg0ura {min-width:0;}.controls-group.svelte-tg0ura > *:not(:first-child) {margin-left:8px;}.hidden.svelte-tg0ura {visibility:hidden;opacity:0;}.controls-hidden.svelte-tg0ura {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-tg0ura {transition:none;}.overlay-mobile.svelte-tg0ura {position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.3);pointer-events:none;transition:opacity var(--controls-transition-duration);}
270
+
271
+ @media screen and (orientation: portrait) {.wrapper-top-right.fullscreen.svelte-tg0ura {top:16px;}.wrapper-top-left.fullscreen.svelte-tg0ura {top:16px;}.controls-wrapper.fullscreen.svelte-tg0ura {position:absolute;bottom:30px;width:calc(100% - 8px);}
272
+ }
273
+
274
+ @media screen and (orientation: landscape) {.wrapper-top-left.fullscreen.svelte-tg0ura {top:12px;left:44px;}.wrapper-top-right.fullscreen.svelte-tg0ura {top:12px;right:44px;}.wrapper-middle-left.fullscreen.svelte-tg0ura {left:44px;}.wrapper-middle-left-second.fullscreen.svelte-tg0ura {left:96px;}.wrapper-middle-right.fullscreen.svelte-tg0ura {right:44px;}.controls-wrapper.fullscreen.svelte-tg0ura {position:absolute;left:36px;right:36px;bottom:32px;width:calc(100% - 72px);}
275
+ }`};function ym(t,e){var wn,Hr;H(e,!0),z(t,P3);let[i,o]=Ne(),r=()=>S(Wi,"$seekToInteractiveDisabledTooltip$",i),s=()=>S(si,"$disabledControls$",i),l=()=>S(Rt,"$playbackState$",i),d=()=>S(tn,"$adPlaybackState",i),a=()=>S(ee,"$isEnded$",i),u=()=>S(kt,"$playerSize",i),f=()=>S(Tt,"$scrubbingInProgress",i),v=()=>S(zi,"$chromecastState$",i),p=()=>S(lt,"$isPictureInPictureActive",i),x=()=>S(st,"$pictureInPictureType$",i),w=()=>S(he,"$mobileNotReportControlHidden$",i),y=()=>S(xi,"$chromecastHidden",i),C=()=>S(Zt,"$playerPhase",i),T=()=>S(Dt,"$pipHidden",i),E=()=>S(Ze,"$currentGridType$",i),O=()=>S(Ei,"$vkLogoHidden",i),A=()=>S(fi,"$volumeHidden",i),I=()=>S(Te,"$isLive$",i),L=()=>S(dt,"$settingsMenuVisible",i),Z=()=>S(ut,"$isRewindableLive$",i),B=()=>S(It,"$isActiveLive$",i),U=()=>S(Ee,"$isAudioAvailable$",i),X=()=>S($t,"$muted$",i),de=()=>S(ae,"$volume$",i),K=()=>S(vt,"$isInteractiveTime$",i),ue=()=>S(_n,"$settingButtonRef$",i),J=()=>S(Mt,"$startedByKeyboard$",i),ge=()=>S(vn,"$isFullscreen",i),se=()=>S(Wt,"$additionalButtons$",i),ce=()=>S(uo,"$autoplayNextToggleHidden",i),Le=()=>S(Pi,"$crashed$",i),we=()=>S(ci,"$settingsHidden",i),te=()=>S(on,"$graphIsOpened$",i),De=()=>S(Eo,"$adPosition",i),fe=()=>S(wi,"$adDuration",i),k=()=>S(oi,"$position$",i),Qe=()=>S(Et,"$duration$",i),Ve=h(e,"playerControlsWrapperRef",15,void 0),q=h(e,"playerControlsRef",15,void 0),oe=h(e,"isAds",3,!1),Fe=h(e,"logoTargetUrl",3,""),Ge=h(e,"isOneVideoPlaylist",3,!1),_e=h(e,"customFullscreenSupported",3,!0),ie=$e(),Se=To(),Ce=Nt(),Be=ie.actions.internal.toggleMuted,Ye=ie.actions.internal.togglePlay,je=ie.actions.internal.pause,Ue=ie.actions.internal.prevVideoClick,Je=ie.actions.internal.nextVideoClick,Ft=ie.actions.internal.checkFullscreenSupport,ot=(wn=ie.callbacks)==null?void 0:wn.onAudioDoesNotExistHint,zt=(Hr=ie.callbacks)==null?void 0:Hr.onAudioDisabledHint,Zt=ie.playerPhase,Et=ie.state.duration$,oi=ie.state.positionWithScrubbing$,Rt=ie.state.playbackState$,Ee=ie.state.isAudioAvailable$,Pe=ie.state.isAudioDisabled,ee=ie.state.isEnded$,Te=ie.state.isLive$,ae=ie.state.volume$,$t=ie.state.muted$,It=ie.state.isActiveLive$,ut=ie.state.isRewindableLive$,Tt=ie.ui.scrubbingInProgress,he=ie.ui.mobileNotReportControlHidden$,{isActive$:lt,type$:st}=Se.pictureInPicture$,dt=ie.ui.settingsMenu.visible$,ri=ie.ui.settingsMenu.openedByBtnKeyboard$,ei=ie.ui.controls,{volume:fi,vkLogo:Ei,autoplayNextToggle:uo,pip:Dt,settings:ci,chromecast:xi}=ie.ui.hiddenControls,yt=ie.actions.internal.getVideoEpisodes(),Ut=ie.webApi.pictureInPictureApi,zi=ie.state.chromecastState$,Pi=ie.state.crashed$,si=ei.disabledControls$,Mt=ie.ui.startedByKeyboard$,Ze=ie.ui.currentGridType$,wi=ie.ads.duration,Eo=ie.ads.position,tn=ie.ads.playbackState,vn=ie.ui.isFullscreen,kt=ie.ui.playerSize,Wt=ie.ui.additionalButtonsDeprecated$,W=ie.actions.internal.getVideoElement,Ot=ie.actions.internal.replayInteractive,ni=ie.state.isInteractive,vt=ie.state.isInteractiveTime$,At=ie.state.showInteractiveGraph,Xt=ie.state.showSeekToInteractive,pt=ie.state.showPlayPrevChapter,Mi=ie.state.showInteractiveTimeIndicator,Wi=Se.seekToInteractiveDisabledTooltip$,on=Se.graphIsOpened$,No=ie.ui.controlBlocks,po=m(()=>Y(ie.state.playPrevChapterDisabledTooltip)),Ki=m(()=>Y(r())),pr=m(()=>s().has("EPISODE_BUTTON")),bo=m(()=>s().has("GRAPH_BUTTON")),$o=m(()=>s().has("SEEK_TO_INTERACTIVE_BUTTON")),Di=m(()=>s().has("PLAY_BUTTON")),mn=m(()=>s().has("REPLAY_BUTTON")),Do=m(()=>s().has("PLAY_PREV_CHAPTER_BUTTON")),fr=m(()=>l()===id.PlaybackState.PLAYING),vr=m(()=>d()==="paused"),Er=m(()=>a()&&!oe()&&!ni),os=m(()=>!a()||oe()),gs=m(()=>e.showNextPrevButtons&&!oe()&&e.prevButtonActive),ns=m(()=>e.showNextPrevButtons&&!oe()&&e.nextButtonActive),Io=m(()=>u().width>300),jn=m(()=>u().width>400),Bo=m(f),gn=m(()=>v()!==id.ChromecastState.NOT_AVAILABLE&&!(p()&&x()===1)&&!w()&&!ni&&!y()),Vn=m(()=>C()==="LiveWaitingStart"),mr=m(()=>!!Ut&&v()!==id.ChromecastState.CONNECTED&&!w()&&(x()===1&&n(Vn)||!n(Vn))&&!n(Bo)&&!ni&&!T()),Ir=j(!1);Ht(()=>{let tt=Ut==null?void 0:Ut.info.isActive$.subscribe(Lt=>N(Ir,Lt,!0));return()=>tt==null?void 0:tt.unsubscribe()});let kr=m(()=>!n(Bo)&&ao(E(),"s")),Ar=m(()=>!e.logoHidden&&u().width>350&&!O()),Pr=m(()=>Ce.features.fullscreen&&Ft()&&!(p()&&x()===1)&&(ni?_e():!0)&&!n(Bo)&&!n(Ir)),Xi=m(()=>!A()&&!n(Bo)),Mr=m(()=>(!I()||oe())&&u().width>260&&!n(Bo)&&!(Ce.features.interactiveHideTime&&ni)),Rn=m(()=>L()||e.showControls),hn=m(()=>!oe()&&!I()&&!!(yt!=null&&yt.length)&&n(Io)&&!n(pr)&&!n(Bo)),yo=m(()=>!Z()||!!B()),gr=m(()=>At&&ao(E(),"m")),On=m(()=>!U()||X()||de()===0),gt=li({}),vi=li({}),Lr=(0,$m.debounceFn)(Jl,260),Gn=(0,$m.debounceFn)(pp,260);We(()=>{u(),K(),Lr(W(),ei,gt,e.showControls),Gn(W(),No,vi,e.showControls)});let Vr=()=>ie.actions.internal.toggleChromecast();function Nn(){return xt(this,null,function*(){Ut!=null&&Ut.isActive()?yield Ut==null?void 0:Ut.exit():yield Ut==null?void 0:Ut.request()})}function Dn(){ia({isAudioDisabled:Pe,audioDisabledHintCallback:zt,isAudioAvailable:U(),audioIsNotExistHintCallback:ot,isAds:oe()})&&Be()}let Ho=j(""),Fo=(tt,Lt)=>{if(!tt){N(Ho,Y("tooltip_live"),!0);return}Lt&&Lt===id.PlaybackState.PAUSED&&N(Ho,Y("tooltip_play"),!0)};We(()=>{Fo(n(yo),l())});let _n=le();We(()=>{ue()&&Wl(ue(),L(),ri)}),We(()=>{cp(Mt,J(),gt.playButton)}),We(()=>{vi.bottom=Ve()});var xo=A3(),Uo=ve(xo);{var nn=tt=>{var Lt=T3(),Si=ve(Lt);let So;var Wo=P(Si,2);let ko;at(Wo,ht=>vi.topLeft=ht,()=>vi==null?void 0:vi.topLeft);var to=P(Wo,2);let Vi;var sn=_(to);Ti(sn,1,se,({iconUrl:ht,ariaLabel:ui,testId:Co,onClick:Cn,tooltip:xe})=>ht,(ht,ui)=>{let Co=()=>n(ui).iconUrl,Cn=()=>n(ui).ariaLabel,xe=()=>n(ui).testId,mt=()=>n(ui).onClick,ai=()=>n(ui).tooltip,Ci=m(()=>{var pi;return(pi=Cn())!=null?pi:ai()});mm(ht,{get iconUrl(){return Co()},get ariaLabel(){return n(Ci)},get testId(){return xe()},get onClick(){return mt()}})});var Ko=P(sn,2);{var Ao=ht=>{wc(ht,{get ref(){return gt.autoplayNextToggle},set ref(ui){gt.autoplayNextToggle=ui}})};R(Ko,ht=>{e.showAutoplayNext&&!Ge()&&!ce()&&ht(Ao)})}var io=P(Ko,2);{var Fr=ht=>{mc(ht,{isMobile:!0,click:Vr,get state(){return v()},get ref(){return gt.chromecast},set ref(ui){gt.chromecast=ui}})};R(io,ht=>{n(gn)&&ht(Fr)})}var Jn=P(io,2);{var er=ht=>{bm(ht,{click:Nn,get isPictureInPictureActive(){return p()},get ref(){return gt.pip},set ref(ui){gt.pip=ui}})};R(Jn,ht=>{n(mr)&&ht(er)})}var $r=P(Jn,2);{var hs=ht=>{Gl(ht,{get ref$(){return _n}})};R($r,ht=>{Le()&&!we()&&ht(hs)})}var Ur=P($r,2);{var rs=ht=>{vc(ht,{get click(){return je},get targetUrl(){return Fe()},get logoClickable(){return e.logoClickable},get ref(){return gt.vkLogo},set ref(ui){gt.vkLogo=ui}})};R(Ur,ht=>{n(Ar)&&ht(rs)})}g(to),at(to,ht=>vi.topRight=ht,()=>vi==null?void 0:vi.topRight);var qe=P(to,2);let ti;var hi=_(qe);{var Sn=ht=>{let ui=m(()=>Ue.bind(null,!0));Qa(ht,{get click(){return n(ui)},type:"prev",isMobile:!0,get ref(){return gt.prevButton},set ref(Co){gt.prevButton=Co}})};R(hi,ht=>{n(gs)&&ht(Sn)})}var qo=P(hi,2);{var zr=ht=>{td(ht,{get disabled(){return n(Di)},get click(){return Ye},isMobile:!0,get isPlaying(){return n(fr)},get ref(){return gt.playButton},set ref(ui){gt.playButton=ui}})};R(qo,ht=>{n(os)&&ht(zr)})}var an=P(qo,2);{var Wr=ht=>{ed(ht,{get disabled(){return n(mn)},get click(){return Ye},isMobile:!0,get ref(){return gt.replayButton},set ref(ui){gt.replayButton=ui}})};R(an,ht=>{n(Er)&&ht(Wr)})}var Bs=P(an,2);{var oo=ht=>{let ui=m(()=>Je.bind(null,!0));Qa(ht,{get click(){return n(ui)},type:"next",isMobile:!0,get ref(){return gt.nextButton},set ref(Co){gt.nextButton=Co}})};R(Bs,ht=>{n(ns)&&ht(oo)})}g(qe),at(qe,ht=>vi.middle=ht,()=>vi==null?void 0:vi.middle);var Kr=P(qe,2);{var aa=ht=>{var ui=C3(),Co=ve(ui);{var Cn=pi=>{var ii=x3();let ki;ii.__click=[$3,Do,e,po];var Tn=_(ii);let ln=m(()=>!e.showControls);xc(Tn,{get hidden(){return n(ln)},get disabled(){return n(Do)},get click(){return e.playPrevChapter},get ref(){return gt.playPrevChapterButton},set ref(Ri){gt.playPrevChapterButton=Ri}}),g(ii),D(Ri=>ki=re(ii,1,"wrapper-middle-left svelte-tg0ura",null,ki,Ri),[()=>({fullscreen:ge(),hidden:!e.showControls})]),$(pi,ii)};R(Co,pi=>{pt&&pi(Cn)})}var xe=P(Co,2);{var mt=pi=>{var ii=w3();let ki;var Tn=_(ii);let ln=m(()=>!e.showControls&&!te());Cc(Tn,{get hidden(){return n(ln)},get disabled(){return n(bo)},get click(){return on.toggle},get graphIsOpened(){return te()},get ref(){return gt.interactiveGraphButton},set ref(Ri){gt.interactiveGraphButton=Ri}}),g(ii),D(Ri=>ki=re(ii,1,Bd(pt?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-tg0ura",ki,Ri),[()=>({fullscreen:ge(),hidden:!e.showControls&&!te()})]),$(pi,ii)};R(xe,pi=>{n(gr)&&pi(mt)})}var ai=P(xe,2);{var Ci=pi=>{var ii=S3();let ki;ii.__click=[y3,$o,e,Ki];var Tn=_(ii);let ln=m(()=>!e.showControls);Sc(Tn,{get hidden(){return n(ln)},get disabled(){return n($o)},get click(){return e.seekToInteractive},get ref(){return gt.seekToInteractiveButton},set ref(Ri){gt.seekToInteractiveButton=Ri}}),g(ii),D(Ri=>ki=re(ii,1,"wrapper-middle-right svelte-tg0ura",null,ki,Ri),[()=>({fullscreen:ge(),hidden:!e.showControls})]),$(pi,ii)};R(ai,pi=>{Xt&&pi(Ci)})}$(ht,ui)};R(Kr,ht=>{ni&&!f()&&ht(aa)})}D((ht,ui,Co,Cn)=>{So=re(Si,1,"overlay-mobile svelte-tg0ura",null,So,ht),ko=re(Wo,1,"wrapper-top-left svelte-tg0ura",null,ko,ui),Vi=re(to,1,"wrapper-top-right svelte-tg0ura",null,Vi,Co),ti=re(qe,1,"wrapper-middle svelte-tg0ura",null,ti,Cn)},[()=>({hidden:!n(Rn)}),()=>({hidden:!e.showControls,fullscreen:ge()}),()=>({hidden:!e.showControls&&!w(),fullscreen:ge()}),()=>({hidden:!e.showControls||f()||e.endScreenShown&&e.showNextPrevButtons})]),$(tt,Lt)};R(Uo,tt=>{oe()||tt(nn)})}var hr=P(Uo,2);{var Rr=tt=>{var Lt=I3(),Si=ve(Lt);let So;var Wo=_(Si);vp(Wo,{get muted(){return X()},click:Dn,get ref(){return gt.volume},set ref(Ao){gt.volume=Ao}}),g(Si);var ko=P(Si,2);{var to=Ao=>{var io=E3(),Fr=_(io);let Jn=m(()=>!n(vr));td(Fr,{get disabled(){return n(Di)},get click(){return Ye},isMobile:!0,get isPlaying(){return n(Jn)},get ref(){return gt.playButton},set ref(er){gt.playButton=er}}),g(io),$(Ao,io)};R(ko,Ao=>{n(vr)&&Ao(to)})}var Vi=P(ko,2);let sn;var Ko=_(Vi);Ec(Ko,{get position(){return De()},get duration(){return fe()}}),g(Vi),D((Ao,io)=>{So=re(Si,1,"wrapper-top-right svelte-tg0ura",null,So,Ao),sn=re(Vi,1,"wrapper-bottom ads-timeline-mobile svelte-tg0ura",null,sn,io)},[()=>({fullscreen:ge()}),()=>({fullscreen:ge()})]),$(tt,Lt)};R(hr,tt=>{oe()&&d()!=="inactive"&&tt(Rr)})}var bn=P(hr,2);let qi;var _r=_(bn);let Or;var Bn=_(_r),Yn=_(Bn),Nr=_(Yn);{var Zn=tt=>{Ro(tt,{get disabled(){return n(mn)},get ref(){return gt.replayButton},set ref(Lt){gt.replayButton=Lt},children:(Lt,Si)=>{ed(Lt,{get disabled(){return n(mn)},get click(){return Ot}})},$$slots:{default:!0}})};R(Nr,tt=>{ni&&tt(Zn)})}var it=P(Nr,2);{var mi=tt=>{Ro(tt,{get ref(){return gt.liveButton},set ref(Lt){gt.liveButton=Lt},children:(Lt,Si)=>{Tc(Lt,{get isLiveActive(){return n(yo)},isMobile:!0,get ariaLabel(){return n(Ho)}})},$$slots:{default:!0}})};R(it,tt=>{!oe()&&I()&&tt(mi)})}var Bi=P(it,2);{var Ji=tt=>{let Lt=m(()=>oe()?De():k()),Si=m(()=>oe()?fe():Qe()),So=m(()=>!e.showControls);cc(tt,{get showDuration(){return n(jn)},get position(){return n(Lt)},get duration(){return n(Si)},isMobile:!0,get isHidden(){return n(So)},get ref(){return gt.time},set ref(Wo){gt.time=Wo}})};R(Bi,tt=>{n(Mr)&&tt(Ji)})}var zo=P(Bi,2);let rn=m(()=>!n(hn));Ro(zo,{className:"w-max",get disabled(){return n(rn)},get ref(){return gt.episodes},set ref(tt){gt.episodes=tt},children:(tt,Lt)=>{var Si=He(),So=ve(Si);{var Wo=ko=>{var to=k3(),Vi=P(ve(to),2);gc(Vi,{get position(){return k()},get duration(){return Qe()},get timeCodes(){return yt}}),$(ko,to)};R(So,ko=>{n(hn)&&ko(Wo)})}$(tt,Si)},$$slots:{default:!0}}),g(Yn),at(Yn,tt=>vi.bottomLeft=tt,()=>vi==null?void 0:vi.bottomLeft);var fo=P(Yn,2),Li=_(fo);{var eo=tt=>{Ro(tt,{get ref(){return gt.volume},set ref(Lt){gt.volume=Lt},children:(Lt,Si)=>{vp(Lt,{get muted(){return n(On)},click:Dn})},$$slots:{default:!0}})};R(Li,tt=>{n(Xi)&&tt(eo)})}var wo=P(Li,2);{var $n=tt=>{Ro(tt,{get ref(){return gt.settings},set ref(Lt){gt.settings=Lt},children:(Lt,Si)=>{Gl(Lt,{get ref$(){return _n}})},$$slots:{default:!0}})};R(wo,tt=>{n(kr)&&tt($n)})}var Xn=P(wo,2);{var Dr=tt=>{Ro(tt,{get ref(){return gt.fullscreen},set ref(Lt){gt.fullscreen=Lt},children:(Lt,Si)=>{fc(Lt,{get click(){return e.toggleFullscreen},get isFullscreen(){return ge()}})},$$slots:{default:!0}})};R(Xn,tt=>{n(Pr)&&tt(Dr)})}g(fo),at(fo,tt=>vi.bottomRight=tt,()=>vi==null?void 0:vi.bottomRight),g(Bn),at(Bn,tt=>q(tt),()=>q());var Br=P(Bn,2);let yn=m(()=>!e.showControls);Ga(Br,{get isHidden(){return n(yn)},get isAds(){return oe()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return Z()},get ref(){return gt.timeline},set ref(tt){gt.timeline=tt}}),g(_r),g(bn),at(bn,tt=>Ve(tt),()=>Ve());var xn=P(bn,2);{var br=tt=>{bc(tt,{get ref(){return gt.interactiveTimeIndicator},set ref(Lt){gt.interactiveTimeIndicator=Lt}})};R(xn,tt=>{Mi&&tt(br)})}D((tt,Lt)=>{qi=re(bn,1,"wrapper-bottom mobile svelte-tg0ura",null,qi,tt),Or=re(_r,1,"controls-wrapper svelte-tg0ura",null,Or,Lt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth}),()=>({fullscreen:ge()})]),$(t,xo),F(),o()}ct(["click"]);function Ic(t,e){H(e,!0);let[i,o]=Ne(),r=()=>S(T,"$isMobile",i),s=h(e,"bottomNoSmooth",3,!1),l=h(e,"playerControlsWrapperRef",15,void 0),d=h(e,"playerControlsRef",15,void 0),a=h(e,"isAds",3,!1),u=h(e,"logoTargetUrl",3,""),f=h(e,"showAutoplayNext",3,!1),v=h(e,"isOneVideoPlaylist",3,!1),p=h(e,"customFullscreenSupported",3,!0),x=h(e,"endScreenShown",3,!1),w=h(e,"onDisabledPlayPrevChapterClick",3,xm.noop),y=h(e,"onDisabledSeekToInteractiveClick",3,xm.noop),T=$e().ui.isMobile,E=j(!1);Ht(()=>{let L=setTimeout(()=>N(E,!0),0);return()=>clearTimeout(L)});var O=He(),A=ve(O);{var I=L=>{var Z=He(),B=ve(Z);{var U=de=>{ym(de,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return s()},get showControls(){return e.showControls},get isAds(){return a()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},get showAutoplayNext(){return f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get isOneVideoPlaylist(){return v()},get customFullscreenSupported(){return p()},get endScreenShown(){return x()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return w()},get onDisabledSeekToInteractiveClick(){return y()},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(K){l(K)},get playerControlsRef(){return d()},set playerControlsRef(K){d(K)}})},X=de=>{fm(de,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return s()},get showControls(){return e.showControls},get isAds(){return a()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return u()},get isOneVideoPlaylist(){return v()},get showAutoplayNext(){return f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get customFullscreenSupported(){return p()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(K){l(K)},get playerControlsRef(){return d()},set playerControlsRef(K){d(K)}})};R(B,de=>{r()?de(U):de(X,!1)})}$(L,Z)};R(A,L=>{n(E)&&L(I)})}$(t,O),F(),o()}var M3=ke('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M15.537 10.534a1.157 1.157 0 0 0 .003 1.96l7.658 4.823c.78.491 1.798-.065 1.798-.981v-3.3c7.265.512 13 6.568 13 13.964 0 7.732-6.268 14-14 14-5.98 0-11.088-3.75-13.093-9.032a1.5 1.5 0 0 0-2.805 1.064C10.531 39.441 16.73 44 23.996 44c9.39 0 17-7.611 17-17 0-9.053-7.076-16.453-16-16.971V6.664c0-.918-1.021-1.473-1.8-.98z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M15.404 10.322a1.407 1.407 0 0 0 .003 2.384l7.657 4.823c.944.594 2.182-.076 2.182-1.193v-3.03c7.008.631 12.5 6.522 12.5 13.694 0 7.594-6.156 13.75-13.75 13.75-5.873 0-10.89-3.683-12.86-8.871a1.75 1.75 0 1 0-3.272 1.242c2.469 6.503 8.758 11.129 16.132 11.129 9.527 0 17.25-7.723 17.25-17.25 0-9.107-7.056-16.565-16-17.205V6.664c0-1.118-1.241-1.788-2.184-1.19z"></path></g><defs><filter id="a" width="43.996" height="49.5" x="2.5" y="0" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_100684"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_100684" result="shape"></feBlend></filter></defs></svg>');function wm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=M3();Me(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"51",fill:"none","aria-hidden":"true","data-testid":"seek-icon",role:"img"},i));var r=_(o);ye(r,()=>{var s;return(s=e.children)!=null?s:pe}),Ie(2),g(o),$(t,o)}function Sm(t,e){let i=h(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);":void 0);wm(t,{get style(){return n(o)}})}var L3=ke('<svg><!><g clip-path="url(#c)" filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M28.167 7h-8.334c-2.463 0-4.404 0-5.966.128-1.594.13-2.925.4-4.134 1.016a10.5 10.5 0 0 0-4.589 4.59c-.616 1.208-.886 2.54-1.016 4.133C4 18.429 4 20.37 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.594-.13 2.925-.4 4.134-1.016a10.5 10.5 0 0 0 4.589-4.59c.616-1.208.886-2.54 1.016-4.133.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7M13.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 22m18.5 6a1.5 1.5 0 0 0 0 3h4a1.5 1.5 0 0 0 0-3zM22 22a1.5 1.5 0 0 1 1.5-1.5h11a1.5 1.5 0 0 1 0 3h-11A1.5 1.5 0 0 1 22 22" clip-rule="evenodd"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M28.167 6.75h-8.344c-2.455 0-4.405 0-5.977.128-1.609.132-2.976.407-4.226 1.044a10.75 10.75 0 0 0-4.698 4.698c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.609-.132 2.976-.407 4.226-1.044a10.75 10.75 0 0 0 4.698-4.698c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm17 7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm-7-7.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Z"></path></g><defs><clipPath id="c"><path fill="var(--btn-color, #fff)" d="M0 0h48v48H0z"></path></clipPath><filter id="a" width="51" height="45" x="-1.5" y="1.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_104204"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_104204" result="shape"></feBlend></filter></defs></svg>');function Cm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=L3();Me(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-on-icon",role:"img"},i));var r=_(o);ye(r,()=>{var s;return(s=e.children)!=null?s:pe}),Ie(2),g(o),$(t,o)}var V3=ke('<svg><!><g clip-path="url(#c)" filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M6.56 4.44a1.5 1.5 0 1 0-2.12 2.12l3.088 3.09a10.5 10.5 0 0 0-2.384 3.083c-.616 1.21-.886 2.54-1.016 4.134C4 18.429 4 20.369 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.437-.117 2.66-.348 3.773-.844l3.533 3.533a1.5 1.5 0 0 0 2.122-2.122l-37-37ZM13.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" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M34.5 23.5h-4.639l12.552 12.551q.237-.381.443-.784c.616-1.21.886-2.54 1.016-4.134.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7h-8.334c-2.463 0-4.404 0-5.966.128l-.347.03L26.86 20.5h7.64a1.5 1.5 0 0 1 0 3"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M29.861 23.25h-.603l.427.427 12.55 12.551.223.223.167-.268q.243-.39.453-.803c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128h-8.354c-2.455 0-4.405 0-5.977.128q-.177.014-.35.032l-.527.051.374.374 13.341 13.342.074.073H34.5a1.25 1.25 0 1 1 0 2.5zM6.737 4.263a1.75 1.75 0 0 0-2.474 2.474l2.903 2.904a10.8 10.8 0 0 0-2.244 2.979c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.384-.114 2.59-.333 3.696-.797l3.413 3.412a1.75 1.75 0 1 0 2.474-2.474zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Z"></path></g><defs><clipPath id="c"><path fill="var(--btn-color, #fff)" d="M0 0h48v48H0z"></path></clipPath><filter id="a" width="51" height="51" x="-1.5" y="-1.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_104293"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_104293" result="shape"></feBlend></filter></defs></svg>');function Tm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=V3();Me(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-off-icon",role:"img"},i));var r=_(o);ye(r,()=>{var s;return(s=e.children)!=null?s:pe}),Ie(2),g(o),$(t,o)}function mp(t,e){let i=h(e,"isOff",3,!1);var o=He(),r=ve(o);{var s=d=>{Tm(d,{})},l=d=>{Cm(d,{})};R(r,d=>{i()?d(s):d(l,!1)})}$(t,o)}var R3=ke('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M24 22.677v-5.87a1.2 1.2 0 0 0-1.792-1.045L9.51 22.955a1.2 1.2 0 0 0 0 2.088l12.697 7.192a1.2 1.2 0 0 0 1.791-1.044v-5.873l12.21 6.916A1.2 1.2 0 0 0 38 31.19V16.805a1.2 1.2 0 0 0-1.791-1.044z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M24.25 16.806v5.442l11.835-6.704a1.45 1.45 0 0 1 2.165 1.261V31.19a1.45 1.45 0 0 1-2.165 1.262L24.25 25.747v5.444a1.45 1.45 0 0 1-2.164 1.262L9.388 25.26a1.45 1.45 0 0 1 0-2.523l12.697-7.192a1.45 1.45 0 0 1 2.164 1.261Z"></path></g><defs><filter id="a" width="40.098" height="27.785" x="3.402" y="10.105" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_106627"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_106627" result="shape"></feBlend></filter></defs></svg>');function Em(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=R3();Me(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"rate-change-icon",role:"img"},i));var r=_(o);ye(r,()=>{var s;return(s=e.children)!=null?s:pe}),Ie(2),g(o),$(t,o)}function Im(t,e){let i=h(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);":void 0);Em(t,{get style(){return n(o)}})}var O3=ke('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M14 21.817c.631-.505 1.627-1.054 3.084-1.857l13.009-7.172c2.268-1.25 3.402-1.875 4.332-1.778a2.9 2.9 0 0 1 2.026 1.134c.549.73.549 1.991.549 4.511v14.69c0 2.52 0 3.78-.549 4.51a2.9 2.9 0 0 1-2.026 1.135c-.93.097-2.064-.528-4.332-1.778L17.084 28.04c-1.457-.803-2.453-1.352-3.084-1.857V34.5a1.5 1.5 0 0 1-3 0v-21a1.5 1.5 0 0 1 3 0z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="m16.964 19.74-.029.016c-1.162.641-2.046 1.129-2.685 1.567V13.5a1.75 1.75 0 1 0-3.5 0v21a1.75 1.75 0 1 0 3.5 0v-7.823c.639.438 1.523.926 2.685 1.567l.029.015 13.008 7.172.012.006c1.124.62 1.983 1.093 2.676 1.398.695.306 1.26.46 1.791.404a3.16 3.16 0 0 0 2.2-1.233c.317-.421.46-.976.53-1.711.069-.733.069-1.688.069-2.936V16.641c0-1.248 0-2.203-.07-2.936-.07-.735-.212-1.29-.529-1.711a3.16 3.16 0 0 0-2.2-1.233c-.53-.055-1.096.098-1.79.404-.694.305-1.553.778-2.677 1.398l-.012.006z"></path></g><defs><filter id="a" width="37" height="37" x="5.5" y="5.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2340_106922"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2340_106922" result="shape"></feBlend></filter></defs></svg>');function km(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=O3();Me(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"episodes-seek-icon",role:"img"},i));var r=_(o);ye(r,()=>{var s;return(s=e.children)!=null?s:pe}),Ie(2),g(o),$(t,o)}function Am(t,e){let i=h(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);":void 0);km(t,{get style(){return n(o)}})}var N3=M('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),D3=M('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),B3=M("<div><!></div>"),H3={hash:"svelte-1ad3n06",code:`.hot-key-helpers-container.svelte-1ad3n06 {position:absolute;z-index:var(--hot-key-helpers-container-z-index);top:calc(50% - 40px);left:calc(50% - 100px);width:200px;height:120px;display:flex;align-items:center;flex-direction:column;
276
+ animation: svelte-1ad3n06-fadeIn ease var(--controls-transition-duration);padding-top:14px;box-sizing:border-box;}.hot-key-helpers-container.svelte-1ad3n06 > div:where(.svelte-1ad3n06) {width:48px;height:48px;display:flex;justify-content:center;align-items:center;}.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="volume-off-icon"],
277
+ .hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="volume-max-icon"] {transform:scale(2);}.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="replay-icon"],
278
+ .hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="play-icon"],
279
+ .hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="pause-icon"] {transform:scale(2.5);}.hot-key-helpers-container--left.svelte-1ad3n06 {left:calc(25% - 100px);}.hot-key-helpers-container--right.svelte-1ad3n06 {left:calc(75% - 100px);}.hot-key-helpers-text.svelte-1ad3n06 {text-align:center;font-feature-settings:'clig' off, 'liga' off;text-shadow:0px 0px 5px rgba(0, 0, 0, 0.16);font-size:15px;font-style:normal;font-weight:600;line-height:20px; /* 133.333% */letter-spacing:-0.105px;width:100%;max-height:40px;margin-top:4px;display:-webkit-box;text-overflow:ellipsis;white-space:pre-wrap;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;}.hidden.svelte-1ad3n06 {visibility:hidden;
280
+ animation: svelte-1ad3n06-fadeOut ease var(--controls-transition-duration);width:0;height:0;}
281
+
282
+ @keyframes svelte-1ad3n06-fadeIn {
283
+ 0% {opacity:0;}
284
+ 100% {opacity:1;}
285
+ }
286
+
287
+ @keyframes svelte-1ad3n06-fadeOut {
288
+ 0% {opacity:1;}
289
+ 100% {opacity:0;}
290
+ }`};function Pm(t,e){H(e,!0),z(t,H3);let[i,o]=Ne(),r=()=>S(e.data,"$data",i),s=$e(),{features:l}=Nt(),d=s.ui.t,a=m(()=>!r()),u=m(()=>{var T;return((T=r())==null?void 0:T.type)==="BACKWARD_SEEK"}),f=m(()=>{var T;return((T=r())==null?void 0:T.type)==="FORWARD_SEEK"}),v=m(()=>{var T;return(T=r())==null?void 0:T.type}),p=m(()=>{var T,E;return(T=r())!=null&&T.t?d(r().t.key,{value:r().t.value||""}):(E=r())==null?void 0:E.text});var x=B3();let w;var y=_(x);{var C=T=>{var E=D3(),O=ve(E),A=_(O);{var I=q=>{let oe=m(()=>n(v)==="FORWARD_SEEK");Sm(q,{get reversed(){return n(oe)}})};R(A,q=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(n(v))&&q(I)})}var L=P(A,2);{var Z=q=>{Rs(q,{})};R(L,q=>{n(v)==="PAUSE"&&!l.playbackStatusShow&&q(Z)})}var B=P(L,2);{var U=q=>{ur(q,{})};R(B,q=>{n(v)==="PLAY"&&!l.playbackStatusShow&&q(U)})}var X=P(B,2);{var de=q=>{yc(q,{})};R(X,q=>{n(v)==="REPLAY"&&!l.playbackStatusShow&&q(de)})}var K=P(X,2);{var ue=q=>{mp(q,{isOff:!0})};R(K,q=>{n(v)==="SUBTITLES_OFF"&&q(ue)})}var J=P(K,2);{var ge=q=>{mp(q,{})};R(J,q=>{n(v)==="SUBTITLES_ON"&&q(ge)})}var se=P(J,2);{var ce=q=>{let oe=m(()=>n(v)==="RATE_UP");Im(q,{get reversed(){return n(oe)}})};R(se,q=>{["RATE_DOWN","RATE_UP"].includes(n(v))&&q(ce)})}var Le=P(se,2);{var we=q=>{let oe=m(()=>n(v)==="EPISODE_NEXT");Am(q,{get reversed(){return n(oe)}})};R(Le,q=>{["EPISODE_PREV","EPISODE_NEXT"].includes(n(v))&&q(we)})}var te=P(Le,2);{var De=q=>{na(q,{volume:0})};R(te,q=>{n(v)==="MUTE"&&q(De)})}var fe=P(te,2);{var k=q=>{na(q,{volume:1})};R(fe,q=>{n(v)==="VOLUME"&&q(k)})}g(O);var Qe=P(O,2);{var Ve=q=>{var oe=N3(),Fe=_(oe,!0);g(oe),D(()=>me(Fe,n(p))),$(q,oe)};R(Qe,q=>{n(p)&&q(Ve)})}$(T,E)};R(y,T=>{!n(a)&&n(v)&&T(C)})}g(x),D(T=>w=re(x,1,"hot-key-helpers-container svelte-1ad3n06",null,w,T),[()=>({hidden:n(a),"hot-key-helpers-container--left":n(u),"hot-key-helpers-container--right":n(f)})]),$(t,x),F(),o()}var F3=ke('<svg><!><path fill="currentColor" fill-opacity=".72" fill-rule="evenodd" d="M11.736 6.736a.9.9 0 0 1-1.272 0L6 2.273 1.536 6.736A.9.9 0 1 1 .264 5.464l5.1-5.1a.9.9 0 0 1 1.272 0l5.1 5.1a.9.9 0 0 1 0 1.272" clip-rule="evenodd"></path></svg>');function Mm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=F3();Me(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",fill:"none","aria-hidden":"true",color:"#fff",role:"img"},i));var r=_(o);ye(r,()=>{var s;return(s=e.children)!=null?s:pe}),Ie(),g(o),$(t,o)}var U3=ke('<svg><!><path fill="currentColor" 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.272z"></path></svg>');function Lm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=U3();Me(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"16",fill:"none","aria-hidden":"true",color:"#fff",role:"img"},i));var r=_(o);ye(r,()=>{var s;return(s=e.children)!=null?s:pe}),Ie(),g(o),$(t,o)}function ra(t,e){H(e,!0);let i=h(e,"direction",3,"left"),o=h(e,"useBtnColor",3,!1),r=m(()=>["up","down"].includes(i())),s=m(()=>["right","down"].includes(i())),l=m(()=>(()=>{let v="";return n(s)&&(v+="transform: rotate(180deg);"),o()&&(v+="color: var(--btn-color, #fff);"),v.length?v:void 0})());var d=He(),a=ve(d);{var u=v=>{let p=m(()=>n(s)?"chevron-icon--down":"chevron-icon--up");Mm(v,{get style(){return n(l)},get"data-testid"(){return n(p)}})},f=v=>{let p=m(()=>n(s)?"chevron-icon--right":"chevron-icon--left");Lm(v,{get style(){return n(l)},get"data-testid"(){return n(p)}})};R(a,v=>{n(r)?v(u):v(f,!1)})}$(t,d),F()}var z3=(t,e,i,o,r,s)=>{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":s();break}},W3=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},K3=M('<div tabindex="0" role="button"><div class="button-block svelte-1yzc86r" aria-hidden="true"><div class="button-row svelte-1yzc86r"><div class="button button-up svelte-1yzc86r"><!></div> <div class="button button-right svelte-1yzc86r"><!></div></div> <div class="button-row svelte-1yzc86r"><div class="button button-left svelte-1yzc86r"><!></div> <div class="button button-down svelte-1yzc86r"><!></div></div></div></div>'),q3={hash:"svelte-1yzc86r",code:".immersive-controls.svelte-1yzc86r {position:absolute;display:flex;flex-direction:row;top:10px;left:10px;width:56px;height:56px;background-color:rgba(0, 0, 0, .56);border-radius:8px;transition-property:top, left;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);}.immersive-controls.m-shifted.svelte-1yzc86r {top:50px;left:20px;}.button-block.svelte-1yzc86r {width:40px;height:40px;margin:auto auto;transform:rotate(45deg);}.button-row.svelte-1yzc86r {display:flex;flex-direction:row;position:relative;}.button.svelte-1yzc86r {width:20px;height:20px;text-align:center;cursor:pointer;}.button.svelte-1yzc86r svg {opacity:0.7;transition:opacity linear 0.2s;}.button.button-up.svelte-1yzc86r svg {transform:rotate(-45deg) translate(-1px, -1px);}.button.button-right.svelte-1yzc86r svg {transform:rotate(45deg) translate(1px, -1px);}.button.button-down.svelte-1yzc86r svg {transform:rotate(135deg) translate(1px, -3px);}.button.button-left.svelte-1yzc86r svg {transform:rotate(-135deg) translate(-1px, -3px);}.button.svelte-1yzc86r:hover svg {opacity:1;}"};function kc(t,e){H(e,!0),z(t,q3);let i=h(e,"isShifted",3,!1),o=$e(),r=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),s=()=>{o.actions.internal.startCameraManualRotation(0,1)},l=()=>{o.actions.internal.startCameraManualRotation(0,-1)},d=()=>{o.actions.internal.startCameraManualRotation(1,0)},a=()=>{o.actions.internal.startCameraManualRotation(-1,0)},u=()=>(o.actions.internal.stopCameraManualRotation(),null),f=Y("aria_label_spherical_control");var v=K3();let p;v.__keydown=[z3,r,s,l,a,d],v.__keyup=[W3,r,u];var x=_(v),w=_(x),y=_(w);y.__mousedown=s,y.__mouseup=u;var C=_(y);ra(C,{direction:"up",useBtnColor:!0}),g(y);var T=P(y,2);T.__mousedown=d,T.__mouseup=u;var E=_(T);ra(E,{direction:"up",useBtnColor:!0}),g(T),g(w);var O=P(w,2),A=_(O);A.__mousedown=a,A.__mouseup=u;var I=_(A);ra(I,{direction:"up",useBtnColor:!0}),g(A);var L=P(A,2);L.__mousedown=l,L.__mouseup=u;var Z=_(L);ra(Z,{direction:"up",useBtnColor:!0}),g(L),g(O),g(x),g(v),D(B=>{p=re(v,1,"immersive-controls svelte-1yzc86r",null,p,B),Ke(v,"aria-label",f)},[()=>({"m-shifted":i()})]),wt("mouseleave",y,u),wt("mouseleave",T,u),wt("mouseleave",A,u),wt("mouseleave",L,u),$(t,v),F()}ct(["keydown","keyup","mousedown","mouseup"]);var Ns=require("@vkontakte/videoplayer-shared/es2015");var n_=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var gp=class{constructor(){this.flickeringTimeout=n_(1e3);this.subscriptions=new Ns.Subscription;this.isAuto=!1;this.isLive=!1;this.captions$=new Ns.ValueSubject([]);this.captionsPrepared$=new Ns.ValueSubject([])}subscribe(){return this.subscriptions.add(this.captions$.pipe((0,Ns.filter)(()=>this.isEnabled()),(0,Ns.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:s,value:l},d)=>(o&&!d||(s==="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 Q3=M('<span class="caption-line svelte-1i1hgvc"><span class="caption-segment svelte-1i1hgvc"> </span></span>'),j3=M('<span class="caption-line svelte-1i1hgvc"><span class="caption-segment svelte-1i1hgvc"></span></span>'),G3=M('<span class="caption-line svelte-1i1hgvc"><span class="caption-segment svelte-1i1hgvc"> </span></span>'),Y3=M('<div><span class="caption svelte-1i1hgvc"><!></span></div>'),Z3=M("<div><!></div>"),X3={hash:"svelte-1i1hgvc",code:`.subtitles-container.svelte-1i1hgvc {position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;transition:transform var(--controls-transition-duration);}.subtitles-container.shifted.svelte-1i1hgvc {transform:translateY(calc(var(--controls-height) * -1));}.subtitles-container.preview-track-active.svelte-1i1hgvc {transform:translateY(calc(var(--preview-track-height) * -1));}.preview-track-active.svelte-1i1hgvc .subtitles-caption:where(.svelte-1i1hgvc) {bottom:var(--preview-track-controls-top-offset);}.subtitles-caption.svelte-1i1hgvc {position:absolute;left:4%;right:4%;bottom:4%;display:flex;justify-content:center;}.subtitles-caption.mobile.svelte-1i1hgvc {bottom:8%;}.subtitles-container.auto.svelte-1i1hgvc .subtitles-caption:where(.svelte-1i1hgvc) {left:var(--subtitles-caption-margin);right:var(--subtitles-caption-margin);}.caption.svelte-1i1hgvc {display:block;overflow-wrap:normal;padding:4px 8px;border-radius:4px;background:rgba(0, 0, 0, 0.4);}.subtitles-container.auto.svelte-1i1hgvc .caption:where(.svelte-1i1hgvc) {width:100%;}.caption-line.svelte-1i1hgvc {display:block;text-align:center;}.subtitles-container.auto.svelte-1i1hgvc .caption-line:where(.svelte-1i1hgvc) {text-align:left;}.caption-segment.svelte-1i1hgvc {display:inline-block;line-height:1.2;font-size:13px;
291
+ /*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function Xa(t,e){H(e,!0),z(t,X3);let[i,o]=Ne(),r=()=>S(p,"$currentSubtitle$",i),s=()=>S(w,"$isLive$",i),l=()=>S(y,"$isFullscreen",i),d=()=>S(C,"$previewTrackActive",i),a=()=>S(x,"$isAutoSubtitleCaptionVisible$",i),u=h(e,"isMobile",3,!1),f=$e(),v=Nt(),p=f.state.currentSubtitle$,x=f.state.isAutoSubtitleCaptionVisible$,w=f.state.isLive$,y=f.ui.isFullscreen,C=f.ui.previewTrackActive,T=m(()=>!!r().isAuto),E=m(()=>!!s()),O=m(()=>e.playerSize.width*.02),A=m(()=>u()&&!l()||n(O)<=v.minSubtitlesFontSize?v.minSubtitlesFontSize:n(O)),I=j(null);We(()=>{var K,ue,J;(K=n(I))==null||K.setIsAuto(n(T)),(ue=n(I))==null||ue.setIsLive(n(E)),(J=n(I))==null||J.setCaptions(e.captions)});let L=j(li([[]]));Ht(()=>{N(I,new gp().subscribe(),!0);let K=n(I).captionsPrepared$.subscribe(ue=>{N(L,ue,!0)});return()=>{var ue;(ue=n(I))==null||ue.destroy(),K.unsubscribe()}}),Ht(()=>{if(n(T)){let K=window.setTimeout(()=>{x.set(!1)},v.autoSubtitlesTimeout);return()=>{window.clearTimeout(K)}}else x.set(!1)});let Z=m(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var B=Z3();let U;var X=_(B);{var de=K=>{var ue=Y3();let J;var ge=_(ue),se=_(ge);{var ce=we=>{var te=Q3(),De=_(te),fe=_(De,!0);g(De),g(te),D(k=>{var Qe;et(De,`font-size: ${(Qe=n(A))!=null?Qe:""}px`),me(fe,k)},[()=>Y("subtitles_auto_caption")]),$(we,te)},Le=(we,te)=>{{var De=k=>{var Qe=He(),Ve=ve(Qe);Ti(Ve,17,()=>n(L),Nd,(q,oe)=>{var Fe=j3(),Ge=_(Fe);Ti(Ge,21,()=>n(oe),({value:_e,timeAppeared:ie})=>ie,(_e,ie)=>{let Se=()=>n(ie).value,Ce=()=>n(ie).timeAppeared;var Be=He(),Ye=ve(Be);{var je=Ue=>{var Je=us();D(()=>me(Je,Se())),$(Ue,Je)};R(Ye,Ue=>{(!Ce()||Ce()<=e.position)&&Ue(je)})}$(_e,Be)}),g(Ge),g(Fe),D(()=>{var _e;return et(Ge,`font-size: ${(_e=n(A))!=null?_e:""}px`)}),$(q,Fe)}),$(k,Qe)},fe=k=>{var Qe=He(),Ve=ve(Qe);Ti(Ve,17,()=>e.captions,({value:q})=>q,(q,oe)=>{let Fe=()=>n(oe).value;var Ge=G3(),_e=_(Ge),ie=_(_e,!0);g(_e),g(Ge),D(()=>{var Se;et(_e,`font-size: ${(Se=n(A))!=null?Se:""}px`),me(ie,Fe())}),$(q,Ge)}),$(k,Qe)};R(we,k=>{var Qe;n(T)&&((Qe=n(L))!=null&&Qe.length)?k(De):k(fe,!1)},te)}};R(se,we=>{n(T)&&a()?we(ce):we(Le,!1)})}g(ge),g(ue),D(we=>{var te;J=re(ue,1,"subtitles-caption svelte-1i1hgvc",null,J,we),et(ue,`--subtitles-caption-margin: ${(te=n(Z))!=null?te:""}%`)},[()=>({mobile:u()})]),$(K,ue)};R(X,K=>{var ue;(e.captions.length||(ue=n(L))!=null&&ue.length)&&K(de)})}g(B),D(K=>U=re(B,1,"subtitles-container svelte-1i1hgvc",null,U,K),[()=>({shifted:e.shifted,"preview-track-active":d(),auto:n(T)&&!n(E)&&!a()})]),$(t,B),F(),o()}var J3=M('<div class="text svelte-raurnb"> </div>'),ex=M('<div><div class="icon_wrapper svelte-raurnb"><svg class="icon svelte-raurnb" width="22" height="22" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path d="M1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm0-4v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11zm20-7H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="var(--btn-color, #fff)"></path><path d="M0 0h24v24H0z"></path></g></svg></div> <!></div>'),tx={hash:"svelte-raurnb",code:".wrapper.svelte-raurnb {height:100%;background-position:center;background-size:contain;background-repeat:no-repeat;display:flex;align-items:center;justify-content:center;font-size:16px;flex-direction:column;}.wrapper.bgCover.svelte-raurnb {background-size:cover;}.icon_wrapper.svelte-raurnb {display:flex;flex-direction:column;align-items:center;width:400px;}.icon.svelte-raurnb {width:50px;height:50px;}.text.svelte-raurnb {margin-top:20px;}"};function Ac(t,e){H(e,!0),z(t,tx);let i=Nt();var o=ex();let r;var s=P(_(o),2);{var l=d=>{var a=J3(),u=_(a);g(a),D(()=>{var f;return me(u,`\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 ${(f=e.chromecastDeviceName)!=null?f:""}`)}),$(d,a)};R(s,d=>{e.chromecastDeviceName&&d(l)})}g(o),D(d=>{r=re(o,1,"wrapper svelte-raurnb",null,r,d),et(o,`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${e.thumbUrl||""}')`)},[()=>({bgCover:i.features.previewNoEmptySpace})]),$(t,o),F()}var ix=ke('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M460 193.998a3.997 3.997 0 0 1 3.997-3.998h122.006a4.003 4.003 0 0 1 3.997 3.998v82.004a3.997 3.997 0 0 1-3.997 3.998H463.997a4.003 4.003 0 0 1-3.997-3.998zm6 2.993c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm112-72c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zM507 232a6 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.624 4.446 11.944 4.65 2.106 1.35 3.252.772 3.957.156s1.15-2.806-1.044-4.657c-1.735-1.48-5.806-5.16-14.856-5.15s-12.95 3.5-14.792 5.185c-1.84 1.685-2.288 3.498-.973 4.657s2.315 1.158 4.357-.327c-.007.007 5.357-4.515 11.408-4.515z"></path></svg>');function Vm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=ix();Me(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200","aria-hidden":"true","data-testid":"error-icon",viewBox:"460 190 130 90",role:"img"},i));var r=_(o);ye(r,()=>{var s;return(s=e.children)!=null?s:pe}),Ie(),g(o),$(t,o)}var ox=M('<div class="container svelte-13zpvm8"><!></div>'),nx={hash:"svelte-13zpvm8",code:".container.svelte-13zpvm8 {position:absolute;top:0;bottom:0;left:0;right:0;background:#000;display:flex;align-items:center;justify-content:center;}"};function Ja(t){z(t,nx);var e=ox(),i=_(e);Vm(i,{}),g(e),$(t,e)}var rx=M('<div class="playButton svelte-1ciju45" tabindex="0" role="button"><div class="playButtonBackground svelte-1ciju45"></div> <!></div>'),sx=M("<div><!></div>"),ax={hash:"svelte-1ciju45",code:`.container.svelte-1ciju45 {position:absolute;top:0;bottom:0;left:0;right:0;background-position:center;background-size:contain;background-repeat:no-repeat;cursor:pointer;transition:opacity 0.2s,
292
+ visibility 0.2s;will-change:opacity;}.container.hidden.svelte-1ciju45 {opacity:0;visibility:hidden;}.container.bgCover.svelte-1ciju45 {background-size:cover;}.playButton.svelte-1ciju45 {position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;}.playButtonBackground.svelte-1ciju45 {position:absolute;top:0;bottom:0;left:0;right:0;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);transition:background 0.2s,
293
+ transform 0.2s;transition-timing-function:ease-out;will-change:background, transform;}.container.svelte-1ciju45:hover .playButtonBackground:where(.svelte-1ciju45) {background-color:var(--big-play-hover-bg-color);transform:scale(1.15);}.playButton.svelte-1ciju45 svg {transform:scale(2);}`};function el(t,e){H(e,!0),z(t,ax);let i=h(e,"iconVisible",3,!0),o=$e(),r=Nt(),s=o.ui.startedByKeyboard$,l=Y("tooltip_play"),d=x=>{var y;let w=x.code;["Enter","Space"].includes(w)&&(x.stopPropagation(),x.preventDefault(),s.set(!0),(y=e.startVideo)==null||y.call(e))},a=x=>{var w,y;x.stopPropagation(),(w=e.startVideo)==null||w.call(e),(y=e.onClick)==null||y.call(e,x)};var u=sx();let f;u.__click=a,u.__contextmenu=function(...x){var w;(w=e.onContextMenu)==null||w.apply(this,x)};var v=_(u);{var p=x=>{var w=rx();w.__keydown=d;var y=P(_(w),2);ur(y,{}),g(w),D(()=>Ke(w,"aria-label",l)),$(x,w)};R(v,x=>{i()&&x(p)})}return g(u),D(x=>{f=re(u,1,"container svelte-1ciju45",null,f,x),et(u,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:r.features.previewNoEmptySpace})]),$(t,u),F({handlePressKey:d,handleClick:a})}ct(["click","contextmenu","keydown"]);var lx=M('<div data-testid="video_title"><span> </span></div>'),dx={hash:"svelte-14hk510",code:`.title.svelte-14hk510 {position:absolute;pointer-events:none;left:0;top:0;width:100%;height:var(--controls-gradient-height);font-size:15px;color:var(--white);box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transition-property:visibility, transform, opacity;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);will-change:transform, opacity;background:linear-gradient(
294
+ 0deg,
295
+ rgba(0, 0, 0, 0) 0%,
296
+ rgba(0, 0, 0, 0.02) 19%,
297
+ rgba(0, 0, 0, 0.1) 34%,
298
+ rgba(0, 0, 0, 0.4) 60%,
299
+ rgba(0, 0, 0, 0.6) 100%
300
+ );}.hidden.svelte-14hk510 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function Rm(t,e){H(e,!0),z(t,dx);let i=h(e,"title",3,""),o=h(e,"isHidden",3,!1),r=h(e,"ref",15),s=j(void 0);Ht(()=>{var v;requestAnimationFrame(()=>{var p;(p=e.onVisibilityChanged)==null||p.call(e,!0)});function f(p){var x;p.propertyName==="transform"&&((x=e.onVisibilityChanged)==null||x.call(e,!o()))}return(v=n(s))==null||v.addEventListener("transitionend",f),()=>{var p;return(p=n(s))==null?void 0:p.removeEventListener("transitionend",f)}});var l=lx();let d;var a=_(l),u=_(a,!0);g(a),at(a,f=>r(f),()=>r()),g(l),at(l,f=>N(s,f),()=>n(s)),D(f=>{d=re(l,1,"title svelte-14hk510",null,d,f),me(u,i())},[()=>({hidden:o()})]),$(t,l),F()}var r_=require("@vkontakte/videoplayer-shared/es2015");var cx=M('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div> <span class="timer__points svelte-gt98rn"> </span>',1),ux=M('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div> <span class="timer__points svelte-gt98rn"> </span>',1),px=M('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div> <span class="timer__points svelte-gt98rn"> </span>',1),fx=M('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div>'),vx=M("<div><!> <!> <!> <!></div>"),mx={hash:"svelte-gt98rn",code:".timer__container.svelte-gt98rn {display:flex;align-items:flex-start;justify-content:center;}.cell.svelte-gt98rn {display:flex;flex-direction:column;align-items:center;}.cell__value.svelte-gt98rn {font-size:48px;line-height:1.2;font-weight:600;}.small.svelte-gt98rn .cell__value:where(.svelte-gt98rn) {font-size:24px;}.cell__unit.svelte-gt98rn {font-size:14px;line-height:1.2;font-weight:400;}.small.svelte-gt98rn .cell__unit:where(.svelte-gt98rn) {font-size:12px;}.timer__points.svelte-gt98rn {display:inline-block;margin:0 8px;font-size:42px;line-height:1.2;font-weight:600;}.small.svelte-gt98rn .timer__points:where(.svelte-gt98rn) {font-size:20px;}"};function Om(t,e){H(e,!0),z(t,mx);let i=j(""),o=j(""),r=j(""),s=j(""),l,d=32,a=d/2,u=B=>String(B).padStart(2,"0"),f=B=>Math.max(B.length,1),v=B=>`${(e.isSmallSize?a:d)*f(B)}px`,p=B=>{let U=Math.floor(B/86400);U&&(B-=U*86400,N(i,u(U),!0));let X=Math.floor(B/3600);N(o,u(X),!0);let de=Math.floor(B/60)%60;N(r,u(de),!0);let K=B%60;N(s,u(K),!0)},x=()=>{let B=Math.floor(Date.now()/1e3),U=e.startTime-B;p(U),U>=1?l=requestAnimationFrame(x):e.onTimerOver()};Ht(()=>{l=requestAnimationFrame(x)}),pn(()=>{cancelAnimationFrame(l)});var w=vx();let y;var C=_(w);{var T=B=>{var U=cx(),X=ve(U);let de;var K=_(X),ue=_(K,!0);g(K);var J=P(K,2),ge=_(J,!0);g(J),g(X);var se=P(X,2),ce=_(se,!0);g(se),D((Le,we,te)=>{de=et(X,"",de,{width:Le}),me(ue,n(i)),me(ge,we),me(ce,te)},[()=>v(n(i)),()=>Y("waiting_live_day_value"),()=>Y("waiting_live_colon")]),$(B,U)};R(C,B=>{n(i)&&B(T)})}var E=P(C,2);{var O=B=>{var U=ux(),X=ve(U);let de;var K=_(X),ue=_(K,!0);g(K);var J=P(K,2),ge=_(J,!0);g(J),g(X);var se=P(X,2),ce=_(se,!0);g(se),D((Le,we,te)=>{de=et(X,"",de,{width:Le}),me(ue,n(o)),me(ge,we),me(ce,te)},[()=>v(n(o)),()=>Y("waiting_live_hour_value"),()=>Y("waiting_live_colon")]),$(B,U)};R(E,B=>{n(o)&&B(O)})}var A=P(E,2);{var I=B=>{var U=px(),X=ve(U);let de;var K=_(X),ue=_(K,!0);g(K);var J=P(K,2),ge=_(J,!0);g(J),g(X);var se=P(X,2),ce=_(se,!0);g(se),D((Le,we,te)=>{de=et(X,"",de,{width:Le}),me(ue,n(r)),me(ge,we),me(ce,te)},[()=>v(n(r)),()=>Y("waiting_live_minute_value"),()=>Y("waiting_live_colon")]),$(B,U)};R(A,B=>{n(r)&&B(I)})}var L=P(A,2);{var Z=B=>{var U=fx();let X;var de=_(U),K=_(de,!0);g(de);var ue=P(de,2),J=_(ue,!0);g(ue),g(U),D((ge,se)=>{X=et(U,"",X,{width:ge}),me(K,n(s)),me(J,se)},[()=>v(n(s)),()=>Y("waiting_live_second_value")]),$(B,U)};R(L,B=>{n(s)&&B(Z)})}g(w),D(B=>y=re(w,1,"timer__container svelte-gt98rn",null,y,B),[()=>({small:e.isSmallSize})]),$(t,w),F()}var gx=M('<div class="waiting svelte-17m8dcd"><span> </span></div>'),hx=M('<div class="upcoming-timer timer svelte-17m8dcd"><span> </span> <!></div>'),_x=M('<div class="waiting-container svelte-17m8dcd"><!></div>'),bx={hash:"svelte-17m8dcd",code:".waiting-container.svelte-17m8dcd {position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat;white-space:nowrap;}.waiting-container.svelte-17m8dcd::before {content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.56);z-index:1;backdrop-filter:blur(15px);}.waiting.svelte-17m8dcd {position:absolute;top:50%;left:0;width:100%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:2;}.waiting__title.svelte-17m8dcd {font-size:20px;line-height:1.2;font-weight:600;}.upcoming-timer.svelte-17m8dcd {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:2;}.timer.svelte-17m8dcd {display:flex;flex-direction:column;align-items:center;justify-content:center;}.timer__title.svelte-17m8dcd {display:inline-block;vertical-align:middle;margin-bottom:12px;font-size:20px;line-height:1.2;font-weight:600;}.small.svelte-17m8dcd {font-size:15px;}.medium.svelte-17m8dcd {font-size:17px;}"};function Pc(t,e){H(e,!0),z(t,bx);let i=h(e,"startTime",3,0),o=m(()=>i()<Math.floor(Date.now()/1e3)),r=j(void 0),s=j(void 0),l=0,d=j(void 0),a=j(void 0),u=m(()=>{var C,T;return((C=n(d))!=null?C:1/0)<=509||((T=n(a))!=null?T:1/0)<=320}),f=m(()=>{var C,T;return!n(u)&&(((C=n(d))!=null?C:1/0)<=699||((T=n(a))!=null?T:1/0)<=599)}),v=e.onUpcomingLiveViewStateChanged?(0,r_.throttleFn)(()=>{cancelAnimationFrame(l),l=requestAnimationFrame(()=>{let C={type:n(o)?"expired":"default",size:n(u)?"s":n(f)?"m":"l"},T=n(o)?n(r):n(s);e.onUpcomingLiveViewStateChanged(C,T)})},300):void 0;We(()=>{n(a),n(d),n(o),v==null||v()}),pn(()=>{if(cancelAnimationFrame(l),v==null||v.cancel(),e.onUpcomingLiveViewStateChanged){let C={type:n(o)?"expired":"default",size:n(u)?"s":n(f)?"m":"l"};e.onUpcomingLiveViewStateChanged(C)}});var p=_x();p.__contextmenu=function(...C){var T;(T=e.onContextMenu)==null||T.apply(this,C)},p.__click=function(...C){var T;(T=e.onClick)==null||T.apply(this,C)};var x=_(p);{var w=C=>{var T=gx(),E=_(T);let O;var A=_(E,!0);g(E),g(T),at(T,I=>N(r,I),()=>n(r)),D((I,L)=>{O=re(E,1,"waiting__title svelte-17m8dcd",null,O,I),me(A,L)},[()=>({medium:n(f),small:n(u)}),()=>Y("waiting_live_upcoming_title")]),$(C,T)},y=C=>{var T=hx(),E=_(T);let O;var A=_(E,!0);g(E);var I=P(E,2);let L=m(()=>n(u)||n(f)),Z=m(()=>i()||0);Om(I,{get isSmallSize(){return n(L)},get startTime(){return n(Z)},onTimerOver:()=>N(o,!0)}),g(T),at(T,B=>N(s,B),()=>n(s)),D((B,U)=>{O=re(E,1,"timer__title svelte-17m8dcd",null,O,B),me(A,U)},[()=>({medium:n(f),small:n(u)}),()=>Y("waiting_live_timer_title")]),$(C,T)};R(x,C=>{n(o)?C(w):C(y,!1)})}g(p),D(()=>et(p,`background-image: url(${e.thumbUrl})`)),Mn(p,"clientWidth",C=>N(d,C)),Mn(p,"clientHeight",C=>N(a,C)),$(t,p),F()}ct(["contextmenu","click"]);var $x=M('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),yx={hash:"svelte-xvqwsa",code:".waiting-container.svelte-xvqwsa {position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat;}.waiting-container.svelte-xvqwsa::before {content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.4);backdrop-filter:blur(10px);}.waiting-caption.svelte-xvqwsa {position:relative;display:flex;flex-direction:column;align-items:center;}.waiting-title.svelte-xvqwsa {margin:0;padding:20px;text-align:center;font-size:20px;line-height:1.2;font-weight:400;}"};function tl(t,e){H(e,!0),z(t,yx);let i=h(e,"thumbUrl",3,""),o={recover:Y("waiting_live_recover_title"),record:Y("waiting_record_title")},r=m(()=>o[e.kind]||"");var s=$x();s.__contextmenu=function(...f){var v;(v=e.onContextMenu)==null||v.apply(this,f)},s.__click=function(...f){var v;(v=e.onClick)==null||v.apply(this,f)};var l=_(s),d=_(l);Ua(d,{style:"position: static; transform: translate(0, 0)"});var a=P(d,2),u=_(a,!0);g(a),g(l),g(s),D(()=>{et(s,`background-image: url('${i()}')`),me(u,n(r))}),$(t,s),F()}ct(["contextmenu","click"]);var xx=ke('<svg><!><path fill="var(--btn-color, #fff)" 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></svg>');function Nm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=xx();Me(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true","data-testid":"check-mark-icon",role:"img"},i));var r=_(o);ye(r,()=>{var s;return(s=e.children)!=null?s:pe}),Ie(),g(o),$(t,o)}var wx=M('<div class="select-icon svelte-124aexk"><!></div>'),Sx={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function Mc(t){z(t,Sx);var e=wx(),i=_(e);Nm(i,{}),g(e),$(t,e)}var Cx=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},Tx=(t,e)=>{Kl(t,()=>e.item.selectItem(e.item.value))},Ex=M("<p> </p>"),Ix=M('<p class="sublabel svelte-1t7rx2m"> </p>'),kx=M('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),Ax={hash:"svelte-1t7rx2m",code:`.menu-item-value.svelte-1t7rx2m {display:flex;flex-direction:column;align-items:end;min-width:0;}.menu-item-value[data-selected='false'].svelte-1t7rx2m {--select-icon-width: 16px;--icon-padding: 12px;
301
+
302
+ /**
303
+ * \u0415\u0441\u043B\u0438 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u043D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D(\u0438\u043A\u043E\u043D\u043A\u0430 \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442), \u0442\u043E \u0434\u043E\u043B\u0436\u043D\u044B \u0437\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u043F\u0443\u0441\u0442\u043E\u0435 \u043C\u0435\u0441\u0442\u043E
304
+ * \u0447\u0442\u043E\u0431\u044B \u0432\u0441\u0435 \u043B\u0435\u0439\u0431\u043B\u044B \u043D\u0430\u0447\u0438\u043D\u0430\u043B\u0438\u0441\u044C \u0441 \u043E\u0434\u043D\u043E\u0433\u043E \u043E\u0442\u0441\u0442\u0443\u043F\u0430.
305
+ */margin-left:calc(var(--icon-padding) + var(--select-icon-width));}.label.svelte-1t7rx2m,
306
+ .sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function Dm(t,e){H(e,!0),z(t,Ax);let i=h(e,"isMobile",3,!1);var o=kx();let r;o.__click=[Cx,e],o.__keydown=[Tx,e];var s=_(o);{var l=w=>{Mc(w,{})};R(s,w=>{e.item.selected&&w(l)})}var d=P(s,2);let a;var u=_(d);{var f=w=>{var y=He(),C=ve(y);Oi(C,()=>e.item.valueComponent,(T,E)=>{E(T,ks(()=>{var O;return(O=e.item.valueComponentParams)!=null?O:{}}))}),$(w,y)},v=w=>{var y=Ex();let C;var T=_(y,!0);g(y),D(E=>{var O;C=re(y,1,"label svelte-1t7rx2m",null,C,E),me(T,(O=e.item.label)!=null?O:e.item.value)},[()=>({mobile:i()})]),$(w,y)};R(u,w=>{e.item.valueComponent?w(f):w(v,!1)})}var p=P(u,2);{var x=w=>{var y=Ix(),C=_(y,!0);g(y),D(()=>me(C,e.item.sublabel)),$(w,y)};R(p,w=>{e.item.sublabel&&w(x)})}g(d),g(o),D((w,y,C)=>{r=re(o,1,"item",null,r,w),Ke(o,"data-value",e.item.value),Ke(o,"aria-label",y),Ke(o,"data-testid",e.item.dataTestid),a=re(d,1,"menu-item-value svelte-1t7rx2m",null,a,C),Ke(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>{var w,y;return(y=(w=e.item.ariaLabel)!=null?w:e.item.label)!=null?y:e.item.value.toString()},()=>({"submenu-value-mobile":i()})]),$(t,o),F()}ct(["click","keydown"]);var Px=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function Bm(t,e){H(e,!0);let i=h(e,"isMobile",3,!1),o=h(e,"refMenuItems",15),r=m(()=>()=>e.openSubMenuList(e.item.children)),s=m(()=>y=>Yu(y,n(r)));var l=Px();let d;l.__click=function(...y){var C;(C=n(r))==null||C.apply(this,y)},l.__keydown=function(...y){var C;(C=n(s))==null||C.apply(this,y)};var a=_(l);{var u=y=>{Mc(y,{})};R(a,y=>{e.item.selected&&y(u)})}var f=P(a,2);let v;var p=_(f);{var x=y=>{var C=He();let T=m(()=>e.item.valueComponent);var E=ve(C);Oi(E,()=>n(T),(O,A)=>{A(O,ks(()=>{var I;return(I=e.item.valueComponentParams)!=null?I:{}}))}),$(y,C)},w=y=>{var C=us();D(()=>me(C,e.item.label)),$(y,C)};R(p,y=>{e.item.valueComponent?y(x):y(w,!1)})}g(f),g(l),at(l,y=>o(o()[e.item.id]=y,!0),()=>{var y;return(y=o())==null?void 0:y[e.item.id]}),D((y,C)=>{var T;d=re(l,1,"item",null,d,y),Ke(l,"aria-label",(T=e.item.ariaLabel)!=null?T:e.item.label),Ke(l,"data-testid",e.item.id),v=re(f,1,"menu-item-value",null,v,C)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),$(t,l),F()}ct(["click","keydown"]);var is={"quality-settings":100,"audio-language-settings":200,"playback-rate-settings":300,"subtitles-settings":400,"traffic-saving-settings":500,download:600,report:700,"copy-data":800,"save-trace-info":900,"debug-info":1e3};var Lx=(t,e)=>{x0(t,e.returnFromSubMenu,e.closeSettingsMenu)},Vx=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},Rx=(t,e)=>{tc(t)&&(Tr(t),e.returnFromSubMenu())},Ox=M('<div><ul role="menu"><li role="menuitem" tabindex="0" data-testid="return-to-settings-menu"><!> <p class="title svelte-7dfsuh"> </p></li> <!></ul></div>'),Nx={hash:"svelte-7dfsuh",code:`.sub-menu.svelte-7dfsuh {--item-padding-vertical-mobile: 16px;--item-padding-vertical: 7px;--item-label-line-height: 18px;
307
+ /*\u0414\u043B\u044F \u043F\u0435\u0440\u0432\u043E\u0433\u043E \u0438 \u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0435\u0433\u043E \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430 \u0441\u043F\u0438\u0441\u043A\u0430*/--edge-item-padding-vertical-mobile: calc(6px + var(--item-padding-vertical-mobile));--edge-item-padding-vertical: calc(8px + var(--item-padding-vertical));}.sub-menu.svelte-7dfsuh .item.mobile {padding:var(--item-padding-vertical-mobile) 17px;line-height:var(--item-label-line-height);font-size:14px;}.sub-menu.svelte-7dfsuh {
308
+ /**
309
+ * \u0422\u0430\u043A \u043A\u0430\u043A \u0443 \u043D\u0430\u0441 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A \u0434\u043E\u043B\u0436\u0435\u043D \u0431\u044B\u0442\u044C \u0441\u0442\u0438\u043A\u0438, \u043D\u0443\u0436\u043D\u043E \u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043F\u0430\u0434\u0434\u0438\u043D\u0433 \u0441 \u0432\u044B\u0441\u043E\u0442\u0443 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043A\u0430.
310
+ * \u041F\u0440\u0435\u0434\u043F\u043E\u043B\u0430\u0433\u0430\u0435\u043C, \u0447\u0442\u043E \u0432 \u043E\u0434\u043D\u0443 \u0441\u0442\u0440\u043E\u043A\u0443 \u043E\u043D, \u0438\u043D\u0430\u0447\u0435 \u043D\u0443\u0436\u043D\u043E \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u044B\u0432\u0430\u0442\u044C \u0434\u0438\u043D\u0430\u043C\u0438\u0447\u0435\u0441\u043A\u0438.
311
+ * paddingTop + lineHeight + paddingBottom.
312
+ */padding-top:calc(var(--edge-item-padding-vertical) + var(--item-padding-vertical) + var(--item-label-line-height));}.sub-menu.mobile.svelte-7dfsuh {padding-top:calc(
313
+ var(--edge-item-padding-vertical-mobile) + var(--item-padding-vertical-mobile) + var(--item-label-line-height) +
314
+ 1px
315
+ );}.sub-menu.svelte-7dfsuh .items:where(.svelte-7dfsuh) .item.header:where(.svelte-7dfsuh) {position:absolute;top:0;left:0;right:0;min-width:max-content;display:flex;justify-content:space-between;border-bottom:var(--divider-border);}.header.svelte-7dfsuh .title:where(.svelte-7dfsuh) {margin-left:8px;}.sub-menu.svelte-7dfsuh .item {padding:var(--item-padding-vertical) 12px;padding-right:22px;}.items.svelte-7dfsuh .item:first-child:not(.mobile) {padding-top:var(--edge-item-padding-vertical);}.items.svelte-7dfsuh .item:last-child:not(.mobile) {padding-bottom:var(--edge-item-padding-vertical);}.items.svelte-7dfsuh .item.mobile:first-child {padding-top:var(--edge-item-padding-vertical-mobile);}.items.svelte-7dfsuh .item.mobile:last-child {padding-bottom:var(--edge-item-padding-vertical-mobile);}.sub-menu.svelte-7dfsuh .item.bottomBordered {border-bottom:var(--divider-border);}.sub-menu.svelte-7dfsuh .item .sublabel {line-height:14px;font-size:12px;}.sub-menu.svelte-7dfsuh .item:not(.mobile) .label,
316
+ .item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function Fm(t,e){H(e,!0),z(t,Nx);let[i,o]=Ne(),r=()=>S(v,"$isFullscreen",i),s=()=>S(p,"$playerSize",i),l=h(e,"isMobile",3,!1),d=h(e,"playerControlsHeight",3,0),a=h(e,"ariaLabelReturnFromSubMenu",19,()=>Y("aria_label_submenu_back")),u=h(e,"listRef",15);Ht(()=>{let K=e.items.findIndex(ue=>ue.selected);u().children[K+1].focus()});let f=$e(),v=f.ui.isFullscreen,p=f.ui.playerSize,x=j(void 0),w=j(0),y=j(0),C=m(()=>l()&&r()?`max-height: ${Math.round(s().height*.6)}px`:l()?"":`max-height: ${s().height-32-n(y)-d()}px; overflow: auto;`),T=m(()=>Math.max(e.minWidth,n(w)));var E=Ox();let O;var A=_(E);let I;A.__keydown=[Lx,e];var L=_(A);let Z;L.__click=[Vx,e],L.__keydown=[Rx,e];var B=_(L);ra(B,{direction:"left"});var U=P(B,2),X=_(U,!0);g(U),g(L),at(L,K=>N(x,K),()=>n(x));var de=P(L,2);Ti(de,17,()=>e.items,Nd,(K,ue)=>{var J=He(),ge=ve(J);{var se=Le=>{Dm(Le,{get item(){return n(ue)},get isMobile(){return l()}})},ce=(Le,we)=>{{var te=De=>{Bm(De,{get isMobile(){return l()},get item(){return n(ue)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};R(Le,De=>{n(ue).type==="OPEN_SUB_MENU"&&De(te)},we)}};R(ge,Le=>{n(ue).type==="SELECT_VALUE"?Le(se):Le(ce,!1)})}$(K,J)}),g(A),at(A,K=>u(K),()=>u()),g(E),D((K,ue,J)=>{O=re(E,1,"sub-menu menu svelte-7dfsuh",null,O,K),Ke(E,"data-testid",`sub-menu-${e.id}`),et(E,`min-width: ${n(T)}px`),I=re(A,1,"items svelte-7dfsuh",null,I,ue),et(A,n(C)),Z=re(L,1,"item header back svelte-7dfsuh",null,Z,J),Ke(L,"aria-label",a()),me(X,e.title)},[()=>({desktop:!l(),mobile:l()}),()=>({mobile:l()}),()=>({mobile:l()})]),Mn(L,"clientWidth",K=>N(w,K)),Mn(L,"clientHeight",K=>N(y,K)),$(t,E),F(),o()}ct(["keydown","click"]);var a_=require("@vkontakte/videoplayer-shared/es2015");var Dx=(t,e)=>Yu(t,e()),Bx=(t,e)=>{t.stopPropagation(),e()()},Hx=M('<div class="value svelte-1ikfjte"> </div>'),Fx=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),Ux={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function Um(t,e){H(e,!0),z(t,Ux);let i=h(e,"isMobile",3,!1),o=h(e,"onClick",3,a_.noop),r=h(e,"valueComponent",3,void 0),s=h(e,"ref",15);var l=Fx();let d;l.__click=[Bx,o],l.__keydown=[Dx,o];var a=_(l),u=_(a);{var f=T=>{ja(T,{get icon(){return e.icon}})},v=T=>{var E=He();let O=m(()=>e.icon);var A=ve(E);Oi(A,()=>n(O),(I,L)=>{L(I,{})}),$(T,E)};R(u,T=>{typeof e.icon=="string"?T(f):T(v,!1)})}g(a);var p=P(a,2),x=_(p,!0);g(p);var w=P(p,2);{var y=T=>{var E=He();let O=m(r);var A=ve(E);Oi(A,()=>n(O),(I,L)=>{L(I,{})}),$(T,E)},C=T=>{var E=Hx(),O=_(E,!0);g(E),D(()=>me(O,e.value)),$(T,E)};R(w,T=>{r()?T(y):T(C,!1)})}g(l),at(l,T=>s(T),()=>s()),D(T=>{d=re(l,1,"item",null,d,T),Ke(l,"aria-label",e.ariaLabel),Ke(l,"data-testid",e.id),me(x,e.label)},[()=>({mobile:i()})]),$(t,l),F()}ct(["click","keydown"]);var zm=require("@vkontakte/videoplayer-shared/es2015");var zx=(t,e)=>{Kl(t,()=>e())},Wx=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),Kx=M('<img class="icon" aria-hidden="true"/>'),qx=M('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),Qx={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function Wm(t,e){H(e,!0),z(t,Qx);let i=h(e,"isMobile",3,!1),o=h(e,"onClick",3,zm.noop),r=h(e,"closeSettings",3,zm.noop),s=j(!1),l=()=>{N(s,!0)},d=C=>{C==null||C.stopPropagation(),o()(),r()()};var a=qx();let u;a.__click=d,a.__keydown=[zx,d];var f=_(a),v=_(f);{var p=C=>{var T=He(),E=ve(T);{var O=I=>{var L=Wx();$(I,L)},A=I=>{var L=Kx();D(()=>Ke(L,"src",e.icon)),wt("error",L,l),Ea(L),$(I,L)};R(E,I=>{n(s)?I(O):I(A,!1)})}$(C,T)},x=C=>{var T=He();let E=m(()=>e.icon);var O=ve(T);Oi(O,()=>n(E),(A,I)=>{I(A,{})}),$(C,T)};R(v,C=>{typeof e.icon=="string"?C(p):C(x,!1)})}g(f);var w=P(f,2),y=_(w,!0);g(w),g(a),D(C=>{var T;u=re(a,1,"item",null,u,C),Ke(a,"aria-label",(T=e.ariaLabel)!=null?T:e.label),Ke(a,"data-testid",e.id),me(y,e.label)},[()=>({mobile:i()})]),$(t,a),F()}ct(["click","keydown"]);var l_=require("@vkontakte/videoplayer-shared/es2015");var jx=M('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),Gx={hash:"svelte-17wbjko",code:'.toggle_wrap.svelte-17wbjko {min-height:15px;padding:0;font-size:12px;line-height:15px;cursor:pointer;user-select:none;}.toggle.svelte-17wbjko {float:right;margin-top:3px;width:28px;height:9px;border-radius:45px;background-color:var(--toggle-color-separator);cursor:pointer;}.toggle.svelte-17wbjko::after {content:"";float:left;position:relative;width:15px;height:15px;border-radius:50%;background-color:var(--toggle-color-off);top:-3px;left:0;transition:left .1s ease;}.toggle.on.svelte-17wbjko::after {background-color:var(--toggle-color-on);left:13px;}.toggle-label.svelte-17wbjko {overflow:hidden;}'};function Km(t,e){z(t,Gx);let i=h(e,"enabled",3,!1);var o=jx(),r=_(o);let s;Ie(2),g(o),D(l=>s=re(r,1,"toggle svelte-17wbjko",null,s,l),[()=>({on:i()})]),$(t,o)}var Yx=(t,e,i)=>{w0(t,e(),o=>i()(o))},Zx=(t,e,i)=>{t.stopPropagation(),e()(!i())},Xx=M('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),Jx=M('<li role="menuitem" tabindex="0"><!></li>');function qm(t,e){H(e,!0);let i=h(e,"isMobile",3,!1),o=h(e,"onClick",3,l_.noop),r=h(e,"enabled",3,!1),s=h(e,"tooltipText",3,void 0),l=h(e,"maxTooltipWidth",3,void 0);var d=Jx();let a;d.__click=[Zx,o,r],d.__keydown=[Yx,r,o];var u=_(d);Wa(u,{get content(){return s()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return l()},children:(f,v)=>{var p=Xx();let x;var w=_(p),y=_(w);{var C=I=>{ja(I,{get icon(){return e.icon}})},T=I=>{var L=He();let Z=m(()=>e.icon);var B=ve(L);Oi(B,()=>n(Z),(U,X)=>{X(U,{})}),$(I,L)};R(y,I=>{typeof e.icon=="string"?I(C):I(T,!1)})}g(w);var E=P(w,2),O=_(E,!0);g(E);var A=P(E,2);Km(A,{get enabled(){return r()}}),g(p),D(I=>{x=re(p,1,"switch-wrapper",null,x,I),me(O,e.label)},[()=>({mobile:i()})]),$(f,p)},$$slots:{default:!0}}),g(d),D(f=>{var v;a=re(d,1,"item switch-item",null,a,f),Ke(d,"aria-label",(v=e.ariaLabel)!=null?v:e.label),Ke(d,"data-testid",e.id)},[()=>({mobile:i()})]),$(t,d),F()}ct(["click","keydown"]);var Vc=require("@vkontakte/videoplayer-shared/es2015");var d_=()=>{let t=j(li([])),e=m(()=>(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 e5=M('<div class="quality-icon svelte-t2qk8t"><!></div>'),t5=M('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),i5={hash:"svelte-t2qk8t",code:".quality-label.svelte-t2qk8t {position:relative;}.quality.svelte-t2qk8t {font-size:13px;line-height:18px;}.quality.sub.svelte-t2qk8t {opacity:0.7;}.quality-icon.svelte-t2qk8t {position:absolute;padding-left:2px;transform:translateX(100%);display:flex;top:0;right:0;}.quality-icon.svelte-t2qk8t svg {color:var(--blue-light);}"};function il(t,e){H(e,!0),z(t,i5);let i=h(e,"isSubCase",3,!1),o=m(()=>tp(e.quality));var r=t5(),s=_(r);let l;var d=_(s,!0);g(s);var a=P(s,2);{var u=f=>{var v=e5();let p=m(()=>n(o));var x=_(v);Oi(x,()=>n(p),(w,y)=>{y(w,{})}),g(v),$(f,v)};R(a,f=>{n(o)&&!e.isMobile&&f(u)})}g(r),D(f=>{l=re(s,1,"svelte-t2qk8t",null,l,f),me(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),$(t,r),F()}var f_=require("@vkontakte/videoplayer-shared/es2015");var Qm=require("@vkontakte/videoplayer-core/es2015");var c_=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},u_=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=c_({quality:t,availableQualities:e});return i?t===Qm.VideoQuality.INVARIANT?Y("auto_quality_invariant"):Y("auto_quality",{actual:o}):o},p_=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===Qm.VideoQuality.INVARIANT?i:`${i}${c_({quality:t,availableQualities:e})}`:"...";var o5=M('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),n5={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function od(t,e){H(e,!0),z(t,n5);let[i,o]=Ne(),r=()=>S(a,"$currentQuality$",i),s=()=>S(u,"$availableQualities$",i),l=()=>S(f,"$isMobile$",i),d=$e(),a=d.state.currentQuality$,u=d.state.availableQualities$,f=d.ui.isMobile,v=" \xB7 ",p=m(()=>e.prefix+(e.selected&&r()!==f_.VideoQuality.INVARIANT?v:"")),x=m(()=>p_({prefix:n(p),quality:r(),availableQualities:s(),onlyPrefix:!e.selected}));var w=o5(),y=_(w);let C=m(()=>e.selected?r():void 0);il(y,{get quality(){return n(C)},get label(){return n(x)},get isMobile(){return l()},isSubCase:!0}),g(w),$(t,w),F(),o()}var r5=t=>{let e=t.join("|"),i="<(?<keyhtml>.*?)(?<propshtml> .*?)?>(?<childrenhtml>.*?)</\\k<keyhtml>>",o=`{(?<keyi18n>${e})}(?<childreni18n>.*?){/\\k<keyi18n>}`,r="<(?<keyhtmlself>.*?)(?<propshtmlself> .*?)?/?>",s=`{(?<keyi18nself>${e})}`;return new RegExp(`${i}|${o}|${r}|${s}`,"g")},s5={br:!0,span:!0},jm=(t,e={})=>{var d,a,u,f,v,p,x;if(!t)return t;let i=Q(Q({},s5),e),o=Object.keys(i);if(!o.length)return t;let r=r5(o),s=[],l=0;for(let w of t.matchAll(r)){let y=w[0],C=((d=w.groups)==null?void 0:d.keyhtml)||((a=w.groups)==null?void 0:a.keyi18n)||((u=w.groups)==null?void 0:u.keyhtmlself)||((f=w.groups)==null?void 0:f.keyi18nself)||"",{index:T}=w;if(!i[C]){s.push(t.slice(l,T)),l=T+y.length;continue}let E=(v=w.groups)!=null&&v.childrenhtml?jm(w.groups.childrenhtml,i):"",O=(p=w.groups)!=null&&p.childrenhtml?y.replace(new RegExp((x=w.groups)==null?void 0:x.childrenhtml),()=>E||""):y;s.push(t.slice(l,T),O),l=T+y.length}return l===0?t:(s.push(t.slice(l)),s.join(""))};function Lc(t,e){H(e,!1);let i=h(e,"message",8),o=jm(i());Jo();var r=He(),s=ve(r);{var l=d=>{var a=He(),u=ve(a);Dd(u,()=>o),$(d,a)};R(s,d=>{o&&d(l)})}$(t,r),F()}var a5=M('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),l5={hash:"svelte-1qk3zto",code:".quality-applies.svelte-1qk3zto {display:flex;justify-content:end;padding:3px 0;color:rgba(255, 255, 255, 0.5);}.quality-applies span {color:#70c1ff;}"};function Gm(t,e){H(e,!1),z(t,l5),Jo();var i=a5(),o=_(i);let r=En(()=>Y("quality_applience",{action:`<span>${Y("quality_applience_action")}</span>`}));Lc(o,{get message(){return n(r)}}),g(i),$(t,i),F()}var m_=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:od,valueComponentParams:{prefix:Y("other_quality"),selected:o},children:"QUALITY"}},Ym=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:Y("auto_quality_limit"),valueComponent:e?od:void 0,valueComponentParams:{prefix:Y("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),g_=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:Gm,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),Zm=({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?od:void 0,valueComponentParams:{prefix:Y("high_quality"),selected:i},sublabel:Y("high_quality_description")}),Xm=({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?od:void 0,valueComponentParams:{prefix:Y("traffic_saving_quality"),selected:i},sublabel:Y("traffic_saving_quality_description")});var hp=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),_p=(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(a=>a.label===o&&a.language===i);if(d.length===1)return Y("audio_stream_display_language_label",{language:r,label:o});{let a=hp(t,d);return Y("audio_stream_display_language_label_index",{language:r,label:o,index:a})}}if(o){let d=e.filter(a=>a.label===o);if(d.length===1)return o;{let a=hp(t,d);return Y("audio_stream_display_label_index",{label:o,index:a})}}if(i&&r){let d=e.filter(a=>a.language===i);if(d.length===1)return r;{let a=hp(t,d);return Y("audio_stream_display_language_index",{language:r,index:a})}}let s=hp(t,e);return Y("audio_stream_display_unknown",{index:s})};var d5={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:r}=t,s=[];return i&&s.push({handler:Ym,selected:e&&!o&&!r||!1}),s.push({handler:Xm,selected:o},{handler:Zm,selected:r}),{title:Y("submenu_quality"),id:"QUALITY_DETAILS",items:[g_(t),...s.map(({handler:l,selected:d})=>l({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),m_(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:Y("submenu_quality"),closeSettingsMenu:t,items:i.map(r=>({type:"SELECT_VALUE",value:r.value,valueComponent:il,valueComponentParams:{quality:r.value,label:r.displayValue,isMobile:o,isSubCase:!0},selectItem:s=>e(s,"to-video"),selected:r.selected,label:r.displayValue}))}),QUALITY_APPLIENCE:t=>{var i,o,r;let{closeSettingsMenu:e}=t;return{id:"QUALITY_APPLIENCE",title:Y("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:Ym,selected:((i=Bu())==null?void 0:i.type)==="auto_quality"},{handler:Xm,selected:((o=Bu())==null?void 0:o.type)==="traffic_saving"},{handler:Zm,selected:((r=Bu())==null?void 0:r.type)==="high_quality"}].map(({handler:s,selected:l})=>s({labelWithQuality:!1,appliesTo:"as-default",selected:l},t))}},AUDIO_LANGUAGES:({closeSettingsMenu:t,availableAudioStreams:e,currentAudioStream:i,selectAudioLanguage:o})=>({id:"AUDIO_LANGUAGES",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:_p(r,e)}))}),PLAYBACK_RATE_SUB_MENU:({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"PLAYBACK_RATE_SUB_MENU",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===Kn?"sub_off":void 0}))})},h_=({subMenuId:t,context:e})=>t?[d5[t](e)]:[];var c5=ke('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M.1 6.5c0-2.24 0-3.36.436-4.216A4 4 0 0 1 2.284.536C3.139.1 4.259.1 6.5.1h5c2.24 0 3.36 0 4.216.436a4 4 0 0 1 1.748 1.748c.436.856.436 1.976.436 4.216s0 3.36-.436 4.216a4 4 0 0 1-1.748 1.748c-.836.426-1.925.436-4.064.436l.55 2.2H14.1a.9.9 0 0 1 0 1.8H3.9a.9.9 0 1 1 0-1.8h1.897l.55-2.2c-2.139 0-3.227-.01-4.063-.436a4 4 0 0 1-1.748-1.748C.1 9.86.1 8.74.1 6.5m11.4-4.6h-5c-1.15 0-1.904.002-2.481.049-.556.045-.786.124-.918.19a2.2 2.2 0 0 0-.962.962c-.067.132-.145.363-.19.918-.048.577-.05 1.331-.05 2.481s.002 1.904.05 2.48c.045.556.123.787.19.919a2.2 2.2 0 0 0 .962.961c.132.068.362.146.918.192.577.047 1.33.048 2.48.048h5c1.15 0 1.904-.001 2.481-.048.556-.046.787-.124.918-.192a2.2 2.2 0 0 0 .962-.961c.067-.132.146-.363.191-.918.047-.577.049-1.331.049-2.48s-.002-1.905-.049-2.482c-.045-.555-.124-.786-.191-.918a2.2 2.2 0 0 0-.962-.961c-.131-.067-.362-.146-.918-.191-.577-.048-1.33-.049-2.48-.049m-3.298 11-.55 2.2h2.695l-.55-2.2z" clip-rule="evenodd"></path></svg>');function Jm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=c5();Me(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"17",fill:"none","aria-hidden":"true","data-testid":"traffic-saving-icon",role:"img"},i));var r=_(o);ye(r,()=>{var s;return(s=e.children)!=null?s:pe}),Ie(),g(o),$(t,o)}var u5=ke('<svg><!><path fill="var(--btn-color, #fff)" d="M8.295 14.247c1.87 1.896 5.505.02 5.505-3.548V5.645l2.399-.697A2.74 2.74 0 0 0 18 2.364l-.01-1.72a.75.75 0 0 0-.906-.623l-.267.061c-.941.215-1.886.431-2.807.721-1.332.45-2.03 1.614-2.01 3.077V9c-3.887.196-5.639 3.286-3.705 5.247M.9.1a.9.9 0 0 0 0 1.8h8.197a.9.9 0 0 0 0-1.8zM.9 5.1a.9.9 0 1 0 0 1.8h7.196a.9.9 0 0 0 0-1.8zM0 11a.9.9 0 0 1 .9-.9h4.183a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 11"></path></svg>');function eg(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=u5();Me(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",fill:"none","aria-hidden":"true","data-testid":"audio-languages-icon",viewBox:"0 0 18 15",role:"img"},i));var r=_(o);ye(r,()=>{var s;return(s=e.children)!=null?s:pe}),Ie(),g(o),$(t,o)}var p5=ke('<svg><!><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"></path><path fill="var(--btn-color, #fff)" fill-rule="nonzero" d="M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A7.94 7.94 0 0 1 11 4.07M5.69 7.1 4.26 5.68A9.95 9.95 0 0 0 2.05 11h2.02c.18-1.46.76-2.79 1.62-3.9M2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A7.87 7.87 0 0 1 4.07 13zM11 21.95v-2.02a7.94 7.94 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.688 8.576l4.746 2.736a.792.792 0 0 1 0 1.372l-4.746 2.737a.792.792 0 0 1-1.188-.686V9.262a.792.792 0 0 1 1.188-.686"></path></g></svg>');function tg(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=p5();Me(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"play-speed-icon",role:"img"},i));var r=_(o);ye(r,()=>{var s;return(s=e.children)!=null?s:pe}),Ie(),g(o),$(t,o)}var f5=ke('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M8 0a.9.9 0 0 1 .9.9v10.927l4.564-4.563a.9.9 0 0 1 1.272 1.272l-6.1 6.1a.9.9 0 0 1-1.272 0l-6.1-6.1a.9.9 0 1 1 1.272-1.272L7.1 11.827V.9A.9.9 0 0 1 8 0M0 18a.9.9 0 0 1 .9-.9h14.2a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 18" clip-rule="evenodd"></path></svg>');function ig(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=f5();Me(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"19",fill:"none","aria-hidden":"true","data-testid":"download-icon",role:"img"},i));var r=_(o);ye(r,()=>{var s;return(s=e.children)!=null?s:pe}),Ie(),g(o),$(t,o)}var v5=ke('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M8.863 2.1h6.274c.674-.002 1.2.211 1.683.697l4.383 4.383c.478.476.699.998.697 1.683v6.274c.002.685-.22 1.207-.697 1.683l-4.383 4.383c-.476.478-.998.699-1.683.697H8.863c-.685.002-1.207-.22-1.683-.697L2.797 16.82c-.478-.476-.699-.998-.697-1.683V8.863c-.002-.685.22-1.207.697-1.683L7.18 2.797c.484-.486 1.009-.699 1.683-.697m-.445 2.005L4.105 8.418c-.18.18-.205.242-.205.495v6.174c0 .25.025.316.205.495l4.313 4.313c.179.179.24.205.495.205h6.174c.253 0 .316-.026.495-.205l4.313-4.313c.18-.18.205-.245.205-.495V8.913c0-.254-.026-.316-.205-.495l-4.313-4.313c-.18-.18-.242-.205-.495-.205H8.913c-.254 0-.319.029-.495.205M13 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" clip-rule="evenodd"></path></svg>');function og(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=v5();Me(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"report-icon",role:"img"},i));var r=_(o);ye(r,()=>{var s;return(s=e.children)!=null?s:pe}),Ie(),g(o),$(t,o)}var m5=ke('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4 12.3V12c0-1.47.005-2.547.075-3.403.074-.904.216-1.482.454-1.949a4.85 4.85 0 0 1 2.12-2.12c.466-.237 1.044-.379 1.948-.453C9.51 4.001 10.675 4 12.3 4h4.512a2 2 0 0 0-.174-.49 2.4 2.4 0 0 0-1.048-1.048 2.4 2.4 0 0 0-.931-.239 14 14 0 0 0-1.026-.023H12.26c-1.576 0-2.814 0-3.81.081-1.014.083-1.856.255-2.62.644A6.65 6.65 0 0 0 2.926 5.83c-.389.763-.56 1.605-.644 2.62-.081.995-.081 2.233-.081 3.809v1.373c0 .392 0 .738.023 1.025.025.306.081.623.239.931a2.4 2.4 0 0 0 1.048 1.05c.162.082.326.136.49.173V12.3zM10.08 6h-.035c-.52 0-.964 0-1.329.03-.383.03-.755.097-1.112.276a2.9 2.9 0 0 0-1.298 1.298c-.179.357-.246.73-.277 1.112C6 9.081 6 9.524 6 10.046v7.909c0 .52 0 .964.03 1.329.03.382.097.755.276 1.112a2.9 2.9 0 0 0 1.298 1.298c.357.179.73.246 1.112.277.365.029.808.029 1.329.029h6.91c.52 0 .964 0 1.329-.03.382-.03.755-.097 1.112-.276a2.9 2.9 0 0 0 1.298-1.298c.179-.357.246-.73.277-1.112.029-.365.029-.808.029-1.33v-7.909c0-.52 0-.964-.03-1.329-.03-.382-.097-.755-.276-1.112a2.9 2.9 0 0 0-1.298-1.298c-.357-.179-.73-.246-1.112-.277C17.919 6 17.476 6 16.954 6zM8.408 7.916c.065-.032.179-.07.452-.093a18 18 0 0 1 1.22-.023h6.84c.565 0 .936 0 1.22.023.273.022.387.06.452.093a1.1 1.1 0 0 1 .492.492c.032.065.07.179.093.452.022.284.023.655.023 1.22v7.84c0 .565 0 .936-.023 1.22-.023.273-.06.387-.093.452a1.1 1.1 0 0 1-.492.492c-.065.032-.18.07-.452.093a18 18 0 0 1-1.22.023h-6.84c-.565 0-.936 0-1.22-.023-.273-.023-.387-.06-.452-.093a1.1 1.1 0 0 1-.492-.492c-.032-.065-.07-.18-.093-.452a17 17 0 0 1-.023-1.22v-7.84c0-.565 0-.936.023-1.22.022-.273.06-.387.093-.452a1.1 1.1 0 0 1 .492-.492" clip-rule="evenodd"></path></svg>');function bp(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=m5();Me(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"copy-icon",role:"img"},i));var r=_(o);ye(r,()=>{var s;return(s=e.children)!=null?s:pe}),Ie(),g(o),$(t,o)}var g5=ke('<svg><!><path fill="var(--btn-color, #fff)" d="M12 20.105a8.105 8.105 0 1 0 0-16.21 8.105 8.105 0 0 0 0 16.21M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10m0-12.372a1.316 1.316 0 1 1 0-2.632 1.316 1.316 0 0 1 0 2.632m-.947 2.822c0-.541.424-.98.947-.98s.947.439.947.98v3.83c0 .54-.424.98-.947.98s-.947-.44-.947-.98z"></path></svg>');function ng(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=g5();Me(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"info-icon",role:"img"},i));var r=_(o);ye(r,()=>{var s;return(s=e.children)!=null?s:pe}),Ie(),g(o),$(t,o)}var h5=M('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),_5={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function rg(t,e){H(e,!0),z(t,_5);let[i,o]=Ne(),r=()=>S(u,"$currentQuality$",i),s=()=>S(f,"$availableQualities$",i),l=()=>S(v,"$isAutoQualityEnabled$",i),d=()=>S(p,"$isMobile$",i),a=$e(),u=a.state.currentQuality$,f=a.state.availableQualities$,v=a.state.isAutoQualityEnabled$,p=a.ui.isMobile,x=m(()=>u_({quality:r(),availableQualities:s(),isAutoQualityEnabled:l()}));var w=h5(),y=_(w);il(y,{get quality(){return r()},get label(){return n(x)},get isMobile(){return d()}}),g(w),$(t,w),F(),o()}var $5={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:rg,weight:is["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:is["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:Y("aria_label_submenu_traffic_saving"),icon:Jm,label:Y("menu_traffic_saving"),enabled:t,tooltipText:Y("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=_p(t,e);return{id:"AUDIO_LANGUAGES",weight:is["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:Y("aria_label_menu_audio_languages",{actual:i}),icon:eg,label:Y("menu_audio_languages"),value:i,children:"AUDIO_LANGUAGES"}},PLAYBACK_RATE:({availablePlaybackRates:t,currentPlaybackRate:e})=>{var o;let i=((o=t.find(r=>r.value===e))==null?void 0:o.displayValue)||"";return{id:"PLAYBACK_RATE",weight:is["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:Y("aria_label_menu_rate",{actual:i}),icon:tg,label:Y("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:is["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:Y("aria_label_menu_subtitle",{actual:t.displayValue}),icon:dc,label:Y("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:is.download,type:"CLICK",onClick:t,label:Y("download_video_caption"),ariaLabel:Y("aria_label_menu_download"),icon:ig}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:is.report,type:"CLICK",onClick:t,label:Y("menu_report"),ariaLabel:`${Y("menu_report")}. ${Y("aria_label_new_tab_alert")}`,icon:og,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:is["copy-data"],type:"CLICK",onClick:t,label:Y("menu_copy_debug"),ariaLabel:Y("menu_copy_debug"),icon:bp,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:is["save-trace-info"],type:"CLICK",onClick:t,label:Y("menu_save_debug"),ariaLabel:Y("menu_save_debug"),icon:bp,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t})=>({id:"DEBUG_INFO",weight:is["debug-info"],type:"CLICK",onClick:t,ariaLabel:Y("aria_label_menu_debug_overlay"),label:Y("menu_debug_overlay"),icon:ng,isHiddenFor:["desktop"]})},__=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(r=>$5[r](e)),...i.map(r=>Gt(Q({},r),{isAdditional:!0}))].filter(r=>{var s,l,d;return!((s=r==null?void 0:r.isHiddenFor)!=null&&s.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(Ha)};var x5=(t,e)=>{Gu(t,e)},w5=M('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),S5=M('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),C5=M("<div><!> <!></div>"),T5={hash:"svelte-17or3al",code:`.settings-menu-container.mobile.svelte-17or3al {width:100%;}.settings-menu-container.svelte-17or3al ul {margin:0;padding:0;list-style-type:none;}.settings-menu-container.svelte-17or3al .menu {background-color:var(--settings-bg);border-radius:var(--settings-radius);transition:opacity 0.2s, visibility 0.2s;overflow:hidden;}.settings-menu-container.svelte-17or3al .menu .item:first-child:not(.mobile) {border-top-right-radius:var(--settings-radius);border-top-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .menu .item:last-child {border-bottom-right-radius:var(--settings-radius);border-bottom-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .settings-menu .item:first-child:not(.mobile) {padding-top:6px;}.settings-menu-container.svelte-17or3al .settings-menu .item:last-child:not(.mobile) {padding-bottom:6px;}.settings-menu-container.svelte-17or3al .menu.desktop {position:absolute;right:0;bottom:0;max-width:100%;}.settings-menu.svelte-17or3al {line-height:40px;}.settings-menu.desktop.svelte-17or3al {
317
+ /* \u043D\u0443\u0436\u043D\u043E \u0447\u0442\u043E\u0431 \u043C\u0435\u043D\u044E \u043D\u0435 \u0441\u043A\u0430\u043A\u0430\u043B\u043E \u0432 \u0448\u0438\u0440\u0438\u043D\u0435 \u043F\u0440\u0438 \u0441\u043C\u0435\u043D\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u0438\u044F, \u043E\u0441\u043E\u0431\u043E \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u043E \u043F\u0440\u0438 \u0430\u0432\u0442\u043E \u0440\u0435\u0436\u0438\u043C\u0435 */min-width:300px;}.settings-menu-container.svelte-17or3al .menu.mobile {width:100%;background:var(--mobile-settings-bg);font-size:15px;line-height:50px;}.settings-menu-container.svelte-17or3al .menu.mobile.hidden {display:none;}.settings-menu-container.svelte-17or3al .menu .item:not(.switch-item),
318
+ .settings-menu-container.svelte-17or3al .menu .switch-wrapper {align-items:center;color:var(--white);cursor:pointer;display:flex;justify-content:flex-end;white-space:nowrap;position:relative;}.settings-menu-container.svelte-17or3al .menu .item:hover {background-color:var(--settings-item-bg-hover);}.settings-menu-container.svelte-17or3al .menu .item.mobile:hover {background:var(--mobile-settings-bg);}.settings-menu.svelte-17or3al .item:not(.switch-item),
319
+ .settings-menu.svelte-17or3al .switch-wrapper {padding:0 32px 0 18px;}.settings-menu.svelte-17or3al .item.mobile:not(.switch-item),
320
+ .settings-menu.svelte-17or3al .switch-wrapper.mobile {padding:0 14px;}.settings-menu.svelte-17or3al .icon-wrapper {width:24px;min-width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin-right:16px;}.settings-menu.svelte-17or3al .label {flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis;}.settings-menu.svelte-17or3al .item.header.mobile:where(.svelte-17or3al) {color:var(--white);cursor:pointer;justify-content:space-between;column-gap:12px;display:flex;border-bottom:var(--divider-border);margin-bottom:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar {width:8px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-track {box-shadow:none;background-color:#3a3a3a;border-radius:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb:hover {background-color:#777;}.settings-menu-container.svelte-17or3al .items.mobile {overflow-y:auto;overflow-x:hidden;max-height:160px;text-align:left;}.close.svelte-17or3al {position:relative;width:12px;height:12px;padding:12px;margin-right:-12px;}.close.svelte-17or3al:before, .close.svelte-17or3al:after {position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white);}.close.svelte-17or3al:before {transform:rotate(45deg);}.close.svelte-17or3al:after {transform:rotate(-45deg);}`};function Rc(t,e){H(e,!0),z(t,T5);let[i,o]=Ne(),r=()=>S(Ge,"$settingsMenuVisible",i),s=()=>S(_e,"$settingsMenuOpenedByKeyboard",i),l=()=>S(Je,"$debugPanelVisible",i),d=()=>S(Se,"$isMobile",i),a=()=>S(Ue,"$playerSize",i),u=()=>S(Fe,"$hasMpegSources$",i),f=()=>S(Ce,"$mobileNotReportControlHidden$",i),v=()=>S(te,"$autoQualityLimitingAvailable$",i),p=()=>S(q,"$availableSubtitlesList$",i),x=()=>S(Be,"$isLiveWithPlaybackSpeed",i),w=()=>S(ce,"$availableAudioStreams$",i),y=()=>S(Qe,"$availablePlaybackRates$",i),C=()=>S(se,"$currentAudioStream$",i),T=()=>S(k,"$currentPlaybackRate$",i),E=()=>S(Ye,"$trafficSavingEnabled",i),O=()=>S(Le,"$currentQuality$",i),A=()=>S(De,"$isAutoQualityEnabled$",i),I=()=>S(Ve,"$currentSubtitle$",i),L=()=>S(ot,"$additionalSettingsMenuItems$",i),Z=()=>S(fe,"$isAutoQualityAvailable$",i),B=()=>S(we,"$availableQualities$",i),U=()=>S(je,"$highQualityEnabled",i),X=h(e,"ref",15,void 0),de=h(e,"playerControlsHeight",3,0),K=li({}),ue=li({}),J=$e(),ge=Nt(),se=J.state.audioStream$,ce=J.state.availableAudioStreams$,Le=J.state.currentQuality$,we=J.state.availableQualities$,te=J.state.autoQualityLimitingAvailable$,De=J.state.isAutoQualityEnabled$,fe=J.state.isAutoQualityAvailable$,k=J.state.currentPlaybackRate$,Qe=J.state.availablePlaybackRates$,Ve=J.state.currentSubtitle$,q=J.state.availableSubtitlesList$,oe=J.state.canDownload,Fe=J.state.hasMpegSources$,Ge=J.ui.settingsMenu.visible$,_e=J.ui.settingsMenu.openedByBtnKeyboard$,ie=J.ui.settingsMenu.ref$,Se=J.ui.isMobile,Ce=J.ui.mobileNotReportControlHidden$,Be=J.state.canChangePlaybackSpeed$,Ye=J.state.trafficSavingEnabled$,je=J.state.highQualityEnabled$,Ue=J.ui.playerSize,Je=J.ui.debugPanelVisible,Ft=J.state.isInteractiveTime$,ot=J.ui.additionalSettingsMenuItems$,zt=J.ui.t,Zt=J.actions.internal.downloadVideo,Et=J.actions.internal.closeSettingsMenu,oi=J.actions.internal.openSettingsSubMenu,Rt=J.actions.internal.closeSettingsSubMenu,Ee=j(!1),Pe=j(void 0),ee=d_();We(()=>{!r()&&ee.current&&(Rt(ue[ee.current]),ee.popAllSubMenus())}),We(()=>{r()||N(Pe,void 0)}),We(()=>{!ee.current&&n(Pe)&&y0(K,n(Pe))}),We(()=>{X()&&ie.set(X())});function Te(kt){return xt(this,null,function*(){var W;ee.pushSubMenu(kt),yield _o(),oi(kt,ue[kt]);let Wt=(W=X())==null?void 0:W.firstElementChild;Wt&&cv(Wt)})}function ae(kt){var Wt;kt==null||kt.stopPropagation(),s()||(Wt=e.returnFocus)==null||Wt.call(e),Et(),N(Ee,!1)}function $t(kt,Wt){J.actions.internal.setQuality(kt,{appliesTo:Wt}),ae()}function It(kt){J.actions.internal.setAudioStream(kt),ae()}function ut(kt,Wt){J.actions.internal.setTrafficSavingEnabled(kt,Wt),ge.features.qualityDetailsSubMenuEnabled&&ae()}function Tt(kt,Wt){J.actions.internal.setHighQualityEnabled(kt,Wt),ae()}function he(kt){J.actions.internal.setPlaybackRate(kt),ae()}function lt(kt){J.actions.internal.setSubtitle(kt),ae()}function st(){Zt()}function dt(){(0,Vc.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),J.actions.internal.reportProblem(),J.actions.internal.pause()}function ri(){zl(J.actions.internal.getDebugTextData())}let ei=()=>{let kt=J.actions.internal.getTraceTextData(),Wt=new Blob([...kt],{type:"application/json"}),W=window.URL.createObjectURL(Wt);Va(W,"vk_player_trace_info","json")};function fi(){Je.set(!l())}function Ei(){N(Ee,!0)}function uo(){N(Ee,!1)}function Dt(){return d()?`max-height: ${Math.round(a().height*.6)}px`:`max-height: ${a().height-32-de()}px; overflow: auto;`}let ci=m(()=>oe&&u()&&!f()),xi=m(()=>ge.features.trafficSaving&&!f()&&v()&&!ge.features.qualityDetailsSubMenuEnabled),yt=m(()=>p().length>0&&!f()),Ut=m(()=>!!x()&&!f()),zi=m(()=>ge.features.audioLanguages&&w().length>=2&&!f()),Pi=m(()=>!f());Ht(()=>Ft.subscribe(kt=>{kt&&!d()&&!n(Ee)&&!s()&&ae()}));let si=m(()=>{let kt=[n(Pi)&&"QUALITY_SETTINGS",n(zi)&&"AUDIO_LANGUAGES",n(Ut)&&"PLAYBACK_RATE",n(yt)&&"SUBTITLES",n(xi)&&"TRAFFIC_SAVING_SWITCH",n(ci)&&"DOWNLOAD",ge.showSupport&&"SHOW_SUPPORT","COPY_DATA",ge.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(Wt=>!!Wt);return __({items:kt,context:{qualityDetailsSubMenuEnabled:ge.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:y(),currentAudioStream:C(),availableAudioStreams:w(),currentPlaybackRate:T(),selectPlaybackRate:he,trafficSavingEnabled:E(),toggleTrafficSaving:ut,currentQuality:O()||Vc.VideoQuality.INVARIANT,isAutoQualityEnabled:A()||!1,currentSubtitle:I(),isMobile:d(),onDownloadClick:st,onCopyDataClick:ri,onReportProblemClick:dt,onSaveTraceDataClick:ei,toggleShowDebugInfo:fi},additionalSettingsMenuItems:L()})}),Mt=m(()=>h_({subMenuId:ee.current,context:{availablePlaybackRates:y(),selectPlaybackRate:he,trafficSavingEnabled:E(),toggleTrafficSaving:ut,currentQuality:O()||Vc.VideoQuality.INVARIANT,isAutoQualityEnabled:A()||!1,isAutoQualityAvailable:Z()||!1,availableQualities:B(),highQualityEnabled:U(),toggleHighQuality:Tt,availableAudioStreams:w(),availableSubtitlesList:p(),closeSettingsMenu:Et,currentAudioStream:C(),isMobile:d(),selectAudioLanguage:It,selectQuality:$t,selectSubtitle:lt}}));var Ze=C5();let wi;var Eo=_(Ze);{var tn=kt=>{var Wt=S5();let W;Wt.__keydown=[x5,Et];var Ot=_(Wt);{var ni=Xt=>{var pt=w5();let Mi;var Wi=_(pt),on=_(Wi,!0);g(Wi);var No=P(Wi,2);No.__click=ae,g(pt),D((po,Ki)=>{Mi=re(pt,1,"item header svelte-17or3al",null,Mi,po),me(on,Ki)},[()=>({mobile:d()}),()=>zt("submenu_settings")]),$(Xt,pt)};R(Ot,Xt=>{d()&&Xt(ni)})}var vt=P(Ot,2);let At;Ti(vt,21,()=>n(si),Xt=>Xt.id,(Xt,pt)=>{var Mi=He(),Wi=ve(Mi);{var on=po=>{Um(po,{get isMobile(){return d()},get id(){return n(pt).id},get icon(){return n(pt).icon},get label(){return n(pt).label},get ariaLabel(){return n(pt).ariaLabel},get value(){return n(pt).value},get valueComponent(){return n(pt).valueComponent},onClick:()=>{Te(n(pt).children),N(Pe,n(pt).id,!0)},get ref(){return K[n(pt).id]},set ref(Ki){K[n(pt).id]=Ki}})},No=(po,Ki)=>{{var pr=$o=>{Wm($o,{get isMobile(){return d()},get id(){return n(pt).id},get onClick(){return n(pt).onClick},get icon(){return n(pt).icon},get label(){return n(pt).label},get ariaLabel(){return n(pt).ariaLabel},closeSettings:ae})},bo=($o,Di)=>{{var mn=Do=>{qm(Do,{get isMobile(){return d()},get id(){return n(pt).id},get onClick(){return n(pt).onClick},get icon(){return n(pt).icon},get label(){return n(pt).label},get ariaLabel(){return n(pt).ariaLabel},get enabled(){return n(pt).enabled},get tooltipText(){return n(pt).tooltipText},get maxTooltipWidth(){return n(pt).maxTooltipWidth}})};R($o,Do=>{n(pt).type==="SWITCH"&&Do(mn)},Di)}};R(po,$o=>{n(pt).type==="CLICK"?$o(pr):$o(bo,!1)},Ki)}};R(Wi,po=>{n(pt).type==="OPEN_SUB_MENU"?po(on):po(No,!1)})}$(Xt,Mi)}),g(vt),at(vt,Xt=>X(Xt),()=>X()),g(Wt),D((Xt,pt,Mi)=>{W=re(Wt,1,"settings-menu menu svelte-17or3al",null,W,Xt),At=re(vt,1,"items",null,At,pt),et(vt,Mi)},[()=>({desktop:!d(),mobile:d(),hidden:!!ee.current}),()=>({mobile:d()}),Dt]),wt("mouseenter",Wt,Ei),wt("mouseleave",Wt,uo),$(kt,Wt)};R(Eo,kt=>{r()&&kt(tn)})}var vn=P(Eo,2);Ti(vn,17,()=>n(Mt),kt=>kt.id,(kt,Wt)=>{let W=m(()=>{var Ot;return(Ot=n(Wt).minWidth)!=null?Ot:137});Fm(kt,{get isMobile(){return d()},get playerControlsHeight(){return de()},get returnFromSubMenu(){return ee.popSubMenu},get id(){return n(Wt).id},get title(){return n(Wt).title},get closeSettingsMenu(){return Et},openSubMenuList:Te,get items(){return n(Wt).items},get minWidth(){return n(W)},get refMenuItems(){return K},get listRef(){return ue[n(Wt).id]},set listRef(Ot){ue[n(Wt).id]=Ot}})}),g(Ze),D(kt=>wi=re(Ze,1,"settings-menu-container svelte-17or3al",null,wi,kt),[()=>({mobile:d(),hidden:!r()})]),$(t,Ze),F(),o()}ct(["keydown","click"]);var E5=M('<button class="btn svelte-1f0voc7"> </button>'),I5={hash:"svelte-1f0voc7",code:"button.btn.svelte-1f0voc7 {margin-top:12px;font-size:14px;line-height:18px;background:rgba(255, 255, 255, 0.1);padding:6px 12px 7px;border-radius:8px;}"};function sg(t,e){z(t,I5);var i=E5();i.__click=function(...r){var s;(s=e.onClick)==null||s.apply(this,r)};var o=_(i,!0);g(i),D(()=>me(o,e.label)),$(t,i)}ct(["click"]);var k5=M('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),A5={hash:"svelte-1es7arp",code:`.container.svelte-1es7arp {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
321
+ /**
322
+ * \u0415\u0441\u043B\u0438 \u043D\u0435 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u043C \u0443 \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440\u0430 \u0441\u043E\u0431\u044B\u0442\u0438\u044F, \u0442\u043E \u043D\u0435 \u0441\u043C\u043E\u0436\u0435\u043C \u043F\u043E \u044D\u0442\u043E\u0439 \u043E\u0431\u043B\u0430\u0441\u0442\u0438 \u0432\u044B\u0437\u0432\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E.
323
+ */pointer-events:none;}.notification.svelte-1es7arp {padding:9px 14px 10px 12px;background:var(--notification-bg);display:inline-flex;border-radius:var(--notification-radius);gap:10px;pointer-events:auto;}.description.svelte-1es7arp {line-height:16px;font-size:13px;margin:0;white-space:pre;}`};function Oc(t,e){H(e,!0),z(t,A5);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=Nt(),{ui:{t:r}}=$e(),s=r(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var l=k5(),d=_(l),a=_(d),u=_(a),f=_(u);Lc(f,{get message(){return s}}),g(u);var v=P(u,2);{var p=w=>{let y=m(()=>r("slow_video_notification_button"));sg(w,{get label(){return n(y)},get onClick(){return e.onSelectAutoQuality}})};R(v,w=>{o||w(p)})}g(a);var x=P(a,2);Ps(x,{get onClick(){return e.onClose}}),g(d),g(l),Xr(3,d,()=>ms,()=>({duration:i})),$(t,l),F()}var Nc=require("@vkontakte/videoplayer-shared/es2015");var ol="annotation",$p=class{constructor(){this.slots=new Map}init(e,i){this.shadowRootContainer=e,this.store=i}add(e,i){var d;let{overlay:o,id:r,controlsBehaviour:s,hideAllControls:l}=i;e.setAttribute("slot",ol),this.setupSlotStyles(e,o),this.shadowRootContainer.append(e),this.slots.set(r,{rootElement:e,options:i}),s&&this.runHidingControlsWhenIntersected(r,s),l&&((d=this.store)==null||d.ui.isControlsAvailable.set(!1))}setupSlotStyles(e,i){switch(e.style.position="absolute",i){case"over_video":e.style.zIndex="calc(var(--video-container-z-index) + 1)";break;case"over_controls":e.style.zIndex="calc(var(--controls-container-z-index) + 1)";break;default:e.style.zIndex="0"}}runHidingControlsWhenIntersected(r,s){return xt(this,arguments,function*(e,{observedSlotElementId:i,controlsToObserve:o}){var p;let l=this.slots.get(e);if(!l)return;let d=yield this.findSlotElement(l.rootElement,i,e),{controls:a,hiddenControls:u}=((p=this.store)==null?void 0:p.ui)||{},f=new MutationObserver(x=>x.forEach(()=>{let w=Ls(d,this.shadowRootContainer);o.forEach(y=>{let C=a==null?void 0:a[y],T=C?be(C):null,E=u==null?void 0:u[y];T&&(E==null||E.set((0,Nc.isIntersecting)(T,w)))})}));f.observe(d,{childList:!0,subtree:!0}),l.observer=f;let v=new Nc.Subscription;o.forEach(x=>{a&&v.add(a[x].subscribe(w=>{let y=u==null?void 0:u[x];w&&w.isDisplayed?y==null||y.set((0,Nc.isIntersecting)(w,Ls(d,this.shadowRootContainer))):y==null||y.set(!1)}))}),l.subs=v})}findSlotElement(e,i,o){return xt(this,null,function*(){return new Promise(r=>{let s=null,l=new MutationObserver(()=>{if(s=e.querySelector(`#${i}`),s){l.disconnect();let a=this.slots.get(o);a&&(a.observerForFindingSlotElement=void 0),r(s)}});l.observe(e,{childList:!0,subtree:!0});let d=this.slots.get(o);d&&(d.observerForFindingSlotElement=l)})})}remove(e){var u,f;let i=this.slots.get(e);if(!i)return;let{rootElement:o,observer:r,observerForFindingSlotElement:s,subs:l,options:{controlsBehaviour:d,hideAllControls:a}}=i;o&&o.remove(),[r,s].forEach(v=>v==null?void 0:v.disconnect()),l==null||l.unsubscribe(),this.slots.delete(e),a&&((u=this.store)==null||u.ui.isControlsAvailable.set(!0)),(f=d==null?void 0:d.controlsToObserve)==null||f.forEach(v=>{var p,x;(x=(p=this.store)==null?void 0:p.ui.hiddenControls[v])==null||x.set(!1)})}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}haveSlots(){return this.slots.size>0}};var P5=M('<div class="container svelte-16aykgd"><!></div>'),M5={hash:"svelte-16aykgd",code:`.container.svelte-16aykgd {display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:100%;background-color:#00000073;will-change:opacity, scale;
324
+
325
+ animation-name: svelte-16aykgd-videoPlayerStatusIconPopup;animation-fill-mode:forwards;}
326
+
327
+ @keyframes svelte-16aykgd-videoPlayerStatusIconPopup {
328
+ from {
329
+ opacity: 0;
330
+ scale: 0.6;
331
+ }
332
+
333
+ 10% {
334
+ opacity: 1;
335
+ scale: 1;
336
+ animation-timing-function: ease-in;
337
+ }
338
+
339
+ 75% {
340
+ opacity: 1;
341
+ scale: 1;
342
+ }
343
+
344
+ 90% {
345
+ opacity: 0;
346
+ scale: 0.4;
347
+ animation-timing-function: ease-out;
348
+ }
349
+
350
+ to {
351
+ opacity: 0;
352
+ scale: 0;
353
+ }
354
+ }`};function Dc(t,e){z(t,M5);let i=h(e,"isPrev",3,!1);var o=He(),r=ve(o);Ts(r,()=>e.Icon,s=>{var l=P5(),d=_(l);Oi(d,()=>e.Icon,(a,u)=>{u(a,{width:"40",height:"40",viewBox:"0 0 24 24",get isPrev(){return i()}})}),g(l),D(()=>et(l,`animation-duration: ${e.duration}ms`)),$(s,l)}),$(t,o)}var ag=require("@vkontakte/videoplayer-core/es2015"),L5=M('<div class="container svelte-1sw36pi"><!></div>'),V5={hash:"svelte-1sw36pi",code:".container.svelte-1sw36pi {position:absolute;display:flex;width:100%;height:100%;align-items:center;justify-content:center;pointer-events:none;}"};function lg(t,e){H(e,!0),z(t,V5);let[i,o]=Ne(),r=()=>S(a,"$playbackState$",i),s=()=>S(f,"$previewTrackActive",i),l=()=>S(v,"$previewTrackDragInProgress",i),d=()=>S(u,"$isPlaying$",i),{state:{playbackState$:a,isPlaying$:u},ui:{previewTrackActive:f,previewTrackDragInProgress:v}}=$e(),{features:{playbackStatusShow:p},playbackStatusAnimationDuration:x}=Nt(),w=0,y=j(null),C=j(!1);We(()=>{r()===ag.PlaybackState.PLAYING?N(y,ur,!0):r()===ag.PlaybackState.PAUSED?N(y,Rs,!0):N(y,null)}),We(()=>{if(!(!p||s()||l()))return w=window.setTimeout(()=>{w=0,N(y,null)},x),()=>{w&&(window.clearTimeout(w),w=0)}}),We(()=>{d()&&!n(C)&&(N(C,!0),N(y,null))});var T=He(),E=ve(T);{var O=A=>{var I=L5(),L=_(I);Dc(L,{get duration(){return x},get Icon(){return n(y)}}),g(I),$(A,I)};R(E,A=>{n(y)&&p&&A(O)})}$(t,T),F(),o()}var R5=M('<div><div data-testid="video-container"></div></div>'),O5={hash:"svelte-1czns9r",code:`.video-wrapper.svelte-1czns9r,
355
+ .video-container.svelte-1czns9r {position:absolute;width:100%;height:100%;left:0;top:0;}.video-wrapper.svelte-1czns9r {z-index:var(--video-container-z-index);background:var(--black);}.video-container.svelte-1czns9r {z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all;}.video-container.fast-rotate.svelte-1czns9r {transition:none;}.nocursor.svelte-1czns9r {cursor:none;}`};function nl(t,e){H(e,!0),z(t,O5);let[i,o]=Ne(),r=()=>S(f,"$rotateAlpha",i),s=()=>S(v,"$playerSize",i),l=()=>S(u,"$playerPhase",i),d=()=>S(p,"$isPlaying$",i),a=h(e,"videoContainer",15),{playerPhase:u,ui:{rotateAlpha:f,playerSize:v},state:{isPlaying$:p}}=$e(),{isSmoothVideoRotate:x}=Nt(),w=m(()=>a()&&r()%180?s().height/s().width:1);var y=R5();let C;y.__contextmenu=function(...O){var A;(A=e.onContextMenu)==null||A.apply(this,O)},y.__mousedown=function(...O){var A;(A=e.onMouseDown)==null||A.apply(this,O)},y.__mouseup=function(...O){var A;(A=e.onMouseUp)==null||A.apply(this,O)},y.__click=function(...O){var A;(A=e.onClick)==null||A.apply(this,O)},y.__dblclick=function(...O){var A;(A=e.onDblClick)==null||A.apply(this,O)};var T=_(y);let E;at(T,O=>a(O),()=>a()),g(y),D((O,A)=>{C=re(y,1,"video-wrapper svelte-1czns9r",null,C,O),E=re(T,1,"video-container svelte-1czns9r",null,E,A),et(T,`transform: rotate(${r()}deg) scale(${n(w)})`),Ke(T,"data-is-playing",d())},[()=>({hidden:l()!=="video",nocursor:e.hideCursor}),()=>({"fast-rotate":!x})]),$(t,y),F(),o()}ct(["contextmenu","mousedown","mouseup","click","dblclick"]);var N5=ke('<svg><!><path fill="currentColor" d="M8 7.389V5.725c0-.52.57-.84 1.015-.569l3.721 2.275a.667.667 0 0 1 0 1.138l-3.721 2.275A.667.667 0 0 1 8 10.275V8.611l-3.652 2.233a.667.667 0 0 1-1.014-.569v-4.55c0-.52.57-.84 1.014-.569z"></path></svg>');function dg(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=N5();Me(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",role:"img"},i));var r=_(o);ye(r,()=>{var s;return(s=e.children)!=null?s:pe}),Ie(),g(o),$(t,o)}var D5=M('<div><span class="text svelte-1gi6268"> </span> <!></div>'),B5={hash:"svelte-1gi6268",code:".root.svelte-1gi6268 {padding:6px 12px;gap:4px;background-color:var(--double-forward-bg);color:var(--white);display:flex;border-radius:100px;position:absolute;top:24px;left:50%;transform:translateX(-50%);transition:opacity var(--controls-transition-duration) var(--controls-transition-fn);visibility:hidden;opacity:0;pointer-events:none;}.root.visible.svelte-1gi6268 {transform:translateX(-50%);visibility:visible;opacity:1;}.text.svelte-1gi6268 {font-size:13px;line-height:16px;font-weight:600;}"};function cg(t,e){H(e,!0),z(t,B5);let{ui:{t:i}}=$e();var o=D5();let r;var s=_(o),l=_(s,!0);g(s);var d=P(s,2);dg(d,{}),g(o),D((a,u)=>{r=re(o,1,"root svelte-1gi6268",null,r,a),me(l,u)},[()=>({visible:e.isVisible}),()=>i("double_forward_label")]),$(t,o),F()}var H5=M('<div class="container svelte-1k32wyl" role="button"><div class="icon svelte-1k32wyl"><!></div></div>'),F5={hash:"svelte-1k32wyl",code:".container.svelte-1k32wyl {position:absolute;display:flex;width:100%;height:100%;align-items:center;justify-content:center;background-color:rgba(0, 0, 0, 0.48);cursor:pointer;}.icon.svelte-1k32wyl {display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:100%;background-color:#00000073;transition:transform 0.2s;transition-timing-function:ease-out;will-change:transform;}.container.svelte-1k32wyl:hover .icon:where(.svelte-1k32wyl) {transform:scale(1.15);}"};function ug(t,e){H(e,!1),z(t,F5);let o=$e().actions.internal.closePreviewTrack,r=200,s=u=>{u.stopPropagation(),o()};Jo();var l=H5();l.__click=s;var d=_(l),a=_(d);return ur(a,{width:"40",height:"40",viewBox:"0 0 24 24"}),g(d),g(l),Xr(3,l,()=>ms,()=>({duration:r})),$(t,l),Pf(e,"handleClick",s),F({handleClick:s})}ct(["click"]);var U5=M('<div class="container svelte-17g9o6z"><div class="notification svelte-17g9o6z"><span class="text svelte-17g9o6z"> </span></div></div>'),z5={hash:"svelte-17g9o6z",code:`.container.svelte-17g9o6z {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
356
+ /**
357
+ * \u0415\u0441\u043B\u0438 \u043D\u0435 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u043C \u0443 \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440\u0430 \u0441\u043E\u0431\u044B\u0442\u0438\u044F, \u0442\u043E \u043D\u0435 \u0441\u043C\u043E\u0436\u0435\u043C \u043F\u043E \u044D\u0442\u043E\u0439 \u043E\u0431\u043B\u0430\u0441\u0442\u0438 \u0432\u044B\u0437\u0432\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E.
358
+ */pointer-events:none;}.notification.svelte-17g9o6z {padding:10px 16px;background-color:var(--black-alpha-40);border-radius:var(--notification-radius);}.text.svelte-17g9o6z {line-height:18px;font-size:14px;font-weight:500;}`};function pg(t,e){H(e,!1),z(t,z5);let{ui:{t:i}}=$e();Jo();var o=U5(),r=_(o),s=_(r),l=_(s,!0);g(s),g(r),g(o),D(d=>me(l,d),[()=>i("preview_track_notification_text")],En),Xr(3,r,()=>ms,()=>({duration:340})),$(t,o),F()}var W5=(t,e,i,o,r,s)=>{if(t.stopPropagation(),e()||o()){s();return}},K5=M("<div><!></div>"),q5=M('<div class="spherical-video-icon svelte-nqua3g"><!></div>'),Q5=M("<div><!></div>"),j5=M('<div class="settings-menu svelte-nqua3g"><!></div>'),G5=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),Y5=M("<!> <!> <!>",1),Z5=M('<div class="blocked svelte-nqua3g"></div>'),X5=M('<div class="player-wrapper svelte-nqua3g"><!> <div class="overlay-container"></div></div> <!>',1),J5={hash:"svelte-nqua3g",code:".player-wrapper.svelte-nqua3g {position:absolute;width:100%;height:100%;}.blocked.svelte-nqua3g {position:absolute;width:100%;height:100%;z-index:var(--overlay-container-z-index);}.player-wrapper.svelte-nqua3g .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.spherical-video-icon.svelte-nqua3g {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.ads-container.svelte-nqua3g {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-nqua3g {z-index:var(--ads-container-z-index);background:var(--black);}.settings-menu.svelte-nqua3g {position:absolute;z-index:var(--settings-menu-z-index);bottom:57px;right:18px;left:0;transition:opacity 0.2s;}"};function vg(t,e){H(e,!0),z(t,J5);let[i,o]=Ne(),r=()=>S(vi,"$notificationsToShow$",i),s=()=>S(ci,"$playerPhase",i),l=()=>S(Eo,"$isLoaderVisible",i),d=()=>S(Ei,"$adPlaybackState",i),a=()=>S(ni,"$crashed",i),u=()=>S(po,"$isInteractiveTime$",i),f=()=>S(zi,"$settingsMenuVisible",i),v=()=>S(Ki,"$isInteractiveExpectation$",i),p=()=>S(Ut,"$controlsVisible",i),x=()=>S(bo,"$touched",i),w=()=>S(Pr,"$graphIsOpened$",i),y=()=>S(xi,"$isFullscreen",i),C=()=>S(gs,"$autoplayNextEnabled$",i),T=()=>S(Wt,"$postrollPassed",i),E=()=>S(tn,"$isEnded$",i),O=()=>S(xo,"$cursorInside",i),A=()=>S(Io,"$isControlsAvailable",i),I=()=>S(Bo,"$doubleForwardOn$",i),L=()=>S(kr,"$fakeIsPlaying$",i),Z=()=>S(Dn,"$bottomNoSmooth",i),B=()=>S(Do,"$interactiveTimeIndicator",i),U=()=>S(Mi,"$playerSize",i),X=()=>S(Wi,"$is3DVideo",i),de=()=>S(gn,"$doubleForwardAvailable$",i),K=()=>S(Ze,"$contextMenuVisible$",i),ue=()=>S(fi,"$playbackState$",i),J=()=>S($o,"$hotKeyMapData",i),ge=()=>S(si,"$scrubbingInProgress",i),se=()=>S(Mt,"$volumeChangingInProgress",i),ce=()=>S(vn,"$chromecastConnected$",i),Le=()=>S(Fo,"$controlsTimeoutActive",i),we=()=>S(Pi,"$settingsMenuOpenedByKeyboard",i),te=()=>S(Ur,"$contextMenuOpenedByKeyboard$",i),De=()=>S(ti,"$contextMenuOpenedByHotKey$",i),fe=()=>S(rs,"$contextMenuButtonRef$",i),k=()=>S(hi,"$contextMenuLastActiveElem$",i),Qe=()=>S(yt,"$isFullscreenOpenedByKeyboard",i),Ve=()=>S(ei,"$language$",i),q=()=>S(Sn,"$previewTrackActive$",i),oe=()=>S(on,"$icon3DVideoVisible",i),Fe=()=>S(kt,"$chromecastDeviceName$",i),Ge=()=>S(Xt,"$currentSubtitle$",i),_e=()=>S(pt,"$currentSubtitleCaptions$",i),ie=()=>S(uo,"$position$",i),Se=()=>S(Dt,"$duration$",i),Ce=()=>S(W,"$isLive$",i),Be=()=>S(Ot,"$isPlaying$",i),Ye=()=>S(vr,"$contextMenuPosition$",i),je=()=>S(Vn,"$previewTrackNotificationVisible$",i),Ue=()=>S(Di,"$showHotKeyMap",i),Je=()=>S(wi,"$debugPanelVisible",i),Ft=()=>S(ns,"$userActionsDisabled$",i),ot=h(e,"videoContainer",15),zt=h(e,"adsSlotId",3,void 0),Zt=h(e,"adsParams",3,void 0),Et=h(e,"adsAutoplayParam",3,void 0),oi=h(e,"duration",3,void 0),Rt=h(e,"logoTargetUrl",3,""),Ee=h(e,"showNextPrevButtons",3,!1),Pe=h(e,"nextButtonActive",3,!1),ee=h(e,"prevButtonActive",3,!1),Te=h(e,"endScreenVideoTitle",3,void 0),ae=h(e,"endScreenVideoThumb",3,void 0),$t=h(e,"isOneVideoPlaylist",3,!1),It=h(e,"shadowRootContainer",3,void 0),ut=h(e,"outerContainerRef",3,void 0),Tt=h(e,"playerStarted",3,!1),he=h(e,"fullScreenTarget",3,void 0),lt=h(e,"showMiniTimer",3,!1),st=h(e,"showEndScreen",3,!0),dt=h(e,"keyboardControls",15),ri=e.store.getLogger().createComponentLog("Root component"),ei=e.store.interfaceLanguage$,fi=e.store.state.playbackState$,Ei=e.store.ads.playbackState,uo=e.store.state.positionWithScrubbing$,Dt=e.store.state.duration$,ci=e.store.playerPhase,xi=e.store.ui.isFullscreen,yt=e.store.ui.isFullscreenOpenedByKeyboard,Ut=e.store.ui.controlsVisible,zi=e.store.ui.settingsMenu.visible$,Pi=e.store.ui.settingsMenu.openedByBtnKeyboard$,si=e.store.ui.scrubbingInProgress,Mt=e.store.ui.volumeChangingInProgress,Ze=e.store.ui.contextMenu.visible$,wi=e.store.ui.debugPanelVisible,Eo=e.store.state.isLoaderVisible,tn=e.store.state.isEnded$,vn=e.store.state.chromecastConnected$,kt=e.store.state.chromecastDeviceName$,Wt=e.store.ads.postrollPassed,W=e.store.state.isLive$,Ot=e.store.state.isPlaying$,ni=e.store.state.crashed$,vt=e.store.webApi.annotationsApi,At=e.store.webApi.pictureInPictureApi,Xt=e.store.state.currentSubtitle$,pt=e.store.state.currentSubtitleCaptions$,Mi=e.store.ui.playerSize,Wi=e.store.ui.is3DVideo,on=e.store.ui.icon3DVideoVisible,No=e.store.state.isInteractive,po=e.store.state.isInteractiveTime$,Ki=e.store.state.isInteractiveExpectation$,pr=e.store.state.hasInteractiveBranches,bo=e.store.ui.touched,$o=e.store.ui.modals.hotKeyMap.data,Di=e.store.ui.modals.hotKeyMap.show,mn=e.store.ui.overlayContainer$,Do=e.store.ui.controls.interactiveTimeIndicator,fr=e.store.state.showInteractiveTimeIndicator,vr=e.store.ui.contextMenu.position$,Er=e.store.actions.internal.setQuality,os=e.store.actions.internal.closeSettingsMenu,gs=e.store.ui.autoplayNextEnabled$,ns=e.store.ui.userActionsDisabled,Io=e.store.ui.isControlsAvailable,jn=e.store.ui.videoTitleInfo,Bo=e.store.ui.doubleForwardOn$,gn=e.store.ui.doubleForwardAvailable$,Vn=e.store.ui.previewTrackNotificationVisible,mr=e.store.actions.internal.getVideoElement,Ir=e.store.actions.internal.checkFullscreenSupport,{fakeIsPlaying$:kr,notifications$:Ar,graphIsOpened$:Pr}=To(),Xi=j(void 0),Mr=j(void 0),Rn=j(void 0),hn=j(void 0),yo,gr,On;$o.set(m0());let{closeNotification:gt,notificationsToShow$:vi}=Ar,Lr=m(()=>!!r().slow_video),Gn=()=>gt("slow_video"),Vr=m(()=>(s()==="video"&&l()||s()==="ads"&&d()==="inactive")&&!a()),Nn=j(void 0),Dn=le(!1),Ho,Fo=le(!1),_n=le(),xo=le(!1),Uo=j(!1),nn=j(!1),hr=j(!1),Rr=j(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),bn=m(()=>u()&&!f()&&!(n(Uo)||n(nn))&&!(n(hr)&&!v())),qi=!0,_r=m(()=>e.uiConfig.features.thumbTimer&&lt()&&s()==="video"&&!p()&&!a()&&!No&&(e.uiConfig.hideThumbTimerAfterTouch&&!x()||!e.uiConfig.hideThumbTimerAfterTouch)),Or=m(()=>s()==="video"&&!w()&&y()),Bn=j(!1),Yn=m(()=>(st()||e.showAutoplayNext&&C())&&!!Te()&&!!ae()&&(e.showAds&&T()||!e.showAds)&&E()&&!a()&&!n(Bn)),Nr=m(()=>O()&&!(p()||n(Yn))&&!u()&&A()&&!I()),Zn=j(!1),it=m(()=>L()!==null),{toggle:mi}=kr,Bi=!1,Ji=null;At==null||At.setContext(yd());let zo=()=>{e.autoplay&&!No&&e.uiConfig.controls.showOnStartupAtAutoplay&&Li(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:zo});let rn=()=>{window.clearTimeout(yo),Fo.set(!1)},fo=()=>{window.clearTimeout(gr),_n.set(null)},Li=xe=>{rn(),Fo.set(!0),yo=window.setTimeout(()=>Fo.set(!1),xe);let mt=xe-100;Ho=window.setTimeout(()=>{Z()&&Dn.set(!1)},mt>0?mt:xe)},eo=(xe,mt)=>{fo(),_n.set(mt),gr=window.setTimeout(()=>_n.set(null),xe)},wo=Wi.subscribe(xe=>{on.set(xe),xe&&(window.clearTimeout(On),On=window.setTimeout(()=>on.set(!1),e.uiConfig.controls.hide360IconTimeout))}),$n=()=>xt(null,null,function*(){var mt,ai,Ci,pi;let xe=Xs();if(xe){let ii=Gd(),ki=Br();xe=ii===ki||ii===It()}if(xe){Li(e.uiConfig.controls.hideTimeoutFullscreen);try{yield At==null?void 0:At.exit()}catch(ii){ri({message:String(ii)})}}xi.set(xe),e.store.getAdmanWrapper().setFullscreen(xe),y()?(ai=(mt=e.store.callbacks)==null?void 0:mt.onFullscreenEnter)==null||ai.call(mt):(pi=(Ci=e.store.callbacks)==null?void 0:Ci.onFullscreenExit)==null||pi.call(Ci)}),Xn=xe=>{let{width:mt,height:ai}=xe.target;Mi.set({width:mt,height:ai})},Dr=()=>{let{width:xe,height:mt}=n(Xi).getBoundingClientRect();Mi.set({width:xe,height:mt})};Ht(()=>{var mt;return Qu($n),e.uiConfig.features.annotationsInside&&(vt==null||vt.init(n(Xi))),Da(At)&&(At==null||At.assignPlayerContainer(n(Xi)),At==null||At.setExternalEventHandlers({resize:Xn,leavepictureinpicture:Dr})),e.interactiveContainer&&((mt=ot().parentElement)==null||mt.insertBefore(e.interactiveContainer,ot().nextSibling)),()=>{window.clearTimeout(yo),window.clearTimeout(Ho),window.clearTimeout(gr),window.clearTimeout(On),wo(),At==null||At.dispose().catch(ai=>{ri({message:String(ai)})}),ju($n)}});let Br=()=>{let xe=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!ut()?n(Xi):ut(),mt=xe.getRootNode(),ai=mt instanceof ShadowRoot?mt.host:mt,Ci=he()instanceof HTMLElement&&he().contains(ai);return e.uiConfig.allowChangingFullscreenTarget&&he()&&Ci?he():xe},yn=()=>{Ze.set(!1)},xn=()=>{os(),yn()},br=()=>xt(null,null,function*(){if(!Ir()){ri({message:"fullscreen disabled"});return}yn(),Xs()?(yield qu(document),ri({message:"exit fullscreen"})):(ri({message:"request fullscreen"}),yield Ku(Br()))}),wn=xe=>{w()||(xe.preventDefault(),Ze.set(!0),vr.set({left:xe.clientX,top:xe.clientY}))};function Hr(){xo.set(!0),No||Li(e.uiConfig.controls.hideTimeoutCursor)}function tt(xe){var pi,ii;let{relatedTarget:mt}=xe,Ci=!!(mt&&((pi=n(Rn))!=null&&pi.contains(mt)))&&((ii=dt())==null?void 0:ii.isFocused());!No&&!Ci&&(Dn.set(!0),Li(e.uiConfig.controls.hideTimeoutCursor))}function Lt(){xo.set(!1),N(nn,!1),N(Uo,!1),Bi=!1,e.store.actions.internal.releaseCamera(),Li(e.uiConfig.controls.hideTimeout),I()&&Ko()}function Si(xe){return xe?xe.offsetTop+Si(xe.offsetParent):0}function So(xe){return xe?xe.offsetLeft+So(xe.offsetParent):0}function Wo(xe){if(B()&&fr){let mt=xe.currentTarget,ai=Si(mt),Ci=So(mt),pi=xe.pageX-Ci,ii=xe.pageY-ai,{left:ki,bottom:Tn,right:ln}=B(),Ri=ln-ki;return pi>=ki-Ri&&ii<=Tn+Ri}}function ko(xe){if(n(Xi)){let mt=Si(xe.currentTarget),ai=U().height,Ci=xe.pageY-mt;if(Wo(xe)){N(nn,!1);return}Ci<40?N(nn,!0):Ci>ai-40?N(Uo,!0):(N(nn,!1),f()||N(Uo,!1))}}function to(xe){ko(xe),!n(bn)&&!I()&&Li(e.uiConfig.controls.hideTimeoutCursor),X()&&Bi&&Ji&&e.store.actions.internal.moveCameraFocusPX(Ji.clientX-xe.clientX,Ji.clientY-xe.clientY,xe.timeStamp-Ji.timeStamp),Ji=xe}let Vi=null,sn=()=>{Vi=window.setTimeout(()=>{e.store.actions.internal.changeDoubleForwardOn(!0),rn()},e.uiConfig.doubleForwardActivationTime)},Ko=()=>{e.store.actions.internal.changeDoubleForwardOn(!1),Vi&&clearTimeout(Vi),Vi=null},Ao=xe=>{xe.preventDefault(),xe.button===0&&(Bi=!0,e.store.actions.internal.holdCamera(),de()&&sn()),!Bi&&Li(e.uiConfig.controls.hideTimeoutCursor)},io=xe=>{xe.preventDefault(),xe.button===0&&(Ji=xe,Bi=!1,e.store.actions.internal.releaseCamera()),!I()&&Li(e.uiConfig.controls.hideTimeoutCursor)},Fr=xe=>{xe.preventDefault(),qi&&(ri({message:"double click on video"}),br(),Li(e.uiConfig.controls.hideTimeoutCursor))},Jn=xe=>{var mt;if(xe.preventDefault(),I()){Ko();return}if(Vi&&Ko(),K()||f()){xn();return}if(!(E()&&!pr)){if(n(it))return mi();if((mt=dt())==null||mt.focus(),!Tt()){e.firstStart(),Li(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||ue()!==fg.PlaybackState.PLAYING)&&e.store.actions.internal.togglePlay(),Li(e.uiConfig.controls.hideTimeoutCursor)}},er=xe=>{xn(),bo.set(!0),Li(e.uiConfig.controls.hideTimeout),xe&&eo(e.uiConfig.controls.hideHotKeyHelpers,xe)},$r=()=>{var xe,mt;xn(),(xe=e.store.callbacks)!=null&&xe.onOpenHotKeyMap?(mt=e.store.callbacks)==null||mt.onOpenHotKeyMap(J()):Di.update(ai=>!ai)},hs=()=>{bo.set(!0)},Ur=e.store.ui.contextMenu.openedByBtnKeyboard$,rs=e.store.ui.contextMenu.btnRef$,qe=j(void 0),ti=e.store.ui.contextMenu.openedByHotKey$,hi=e.store.ui.contextMenu.lastActiveElem$,Sn=e.store.ui.previewTrackActive;We(()=>{mn.set(n(Nn))}),We(()=>{N(hr,n(Rr)&&ue()!==fg.PlaybackState.PLAYING,!0),n(Rr)||Pt(()=>N(Rr,!0))}),We(()=>{var mt,ai;let xe=(n(hr)||E()||f()||ge()||se()||ce()||Le())&&!n(bn)&&(s()==="video"||s()==="ads")&&!a()&&A();Ut.set(xe),!xe&&!Le()&&e.uiConfig.returnFocusOnControlsHide&&((mt=n(Rn))!=null&&mt.contains(ep()))&&((ai=dt())==null||ai.focus())}),We(()=>{!ge()&&n(Zn)&&!u()&&Li(e.uiConfig.controls.hideTimeoutCursor),Pt(()=>N(Zn,ge(),!0))}),We(()=>{n(hn),f(),we(),Pt(()=>ic(n(hn),f(),we()))}),We(()=>{n(qe),K(),te(),De(),Pt(()=>{let xe=te()||De();ic(n(qe),K(),xe)})}),We(()=>{let xe=fe();xe&&(K(),Pt(()=>Wl(xe,K(),Ur)))}),We(()=>{let xe=k();xe&&(K(),Pt(()=>$0(xe,K(),ti)))}),We(()=>{var xe;!Qe()&&y()&&(Pt(()=>yt.set(!1)),(xe=dt())==null||xe.focus())}),We(()=>{w()&&xn()});let qo=Y("video360"),zr=j(void 0),an=xe=>{jn.set(qn(mr(),{title:n(zr)},"title",xe))},Wr=(xe,mt)=>{var ii,ki;let ai=(ki=(ii=e.store.callbacks)==null?void 0:ii.uiInfo)==null?void 0:ki.onUpcomingLiveViewStateChanged;if(!ai)return;let Ci=!!mt,pi=Q(Q({},qn(n(Xi),{upcomingLiveScreen:mt},"upcomingLiveScreen",Ci)),xe);ai(pi)};var Bs=X5();wt("blur",wa,xn);var oo=ve(Bs);oo.__mousemove=to;var Kr=_(oo);let aa=m(()=>s()==="ads"),ht=m(()=>n(it)?mi:void 0);at(_v(Kr,{startDoubleForwardActivationTimer:sn,stopDoubleForward:Ko,toggleFullscreen:br,hideContextMenu:xn,showHotKeyHelpers:er,showKeyMap:$r,get isAds(){return n(aa)},get fakePlayButtonHandler(){return n(ht)},get nextButtonActive(){return Pe()},get prevButtonActive(){return ee()},children:(xe,mt)=>{var ai=Y5(),Ci=ve(ai);nl(Ci,{get hideCursor(){return n(Nr)},onClick:Jn,onContextMenu:wn,onMouseDown:Ao,onMouseUp:io,onDblClick:Fr,get videoContainer(){return ot()},set videoContainer(ki){ot(ki)}});var pi=P(Ci,2);ka(pi,()=>"slot",!1,(ki,Tn)=>{Me(ki,()=>({name:ol}))});var ii=P(pi,2);Ts(ii,Ve,ki=>{var Tn=G5(),ln=ve(Tn);let Ri=m(()=>s()!=="thumb"||a()||No&&e.autoplay);el(ln,{get hidden(){return n(Ri)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart},onContextMenu:wn,onClick:yn});var al=P(ln,2);{var la=ze=>{ug(ze,{})};R(al,ze=>{q()&&ze(la)})}var da=P(al,2);lg(da,{});var ca=P(da,2);cg(ca,{get isVisible(){return I()}});var tr=P(ca,2);{var _s=ze=>{let bi=m(()=>{var vo;return(vo=e.live)==null?void 0:vo.startTime});Pc(ze,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(bi)},onUpcomingLiveViewStateChanged:Wr,onContextMenu:wn,onClick:yn})};R(tr,ze=>{s()==="LiveWaitingStart"&&ze(_s)})}var ua=P(tr,2);{var yr=ze=>{tl(ze,{kind:"recover",get thumbUrl(){return e.thumbUrl},onContextMenu:wn,onClick:yn})};R(ua,ze=>{s()==="LiveWaitingRecover"&&ze(yr)})}var ll=P(ua,2);{var bs=ze=>{tl(ze,{kind:"record",get thumbUrl(){return e.thumbUrl},onContextMenu:wn,onClick:yn})};R(ll,ze=>{s()==="LiveWaitingRecord"&&ze(bs)})}var $s=P(ll,2);{var dl=ze=>{var bi=K5();let vo;var ma=_(bi);Zd(ma,{get adsSlotId(){return zt()},get adsParams(){return Zt()},get adsAutoplayParam(){return Et()},get duration(){return oi()},get adsExternalApi(){return e.adsExternalApi}}),g(bi),D(dn=>vo=re(bi,1,"ads-container svelte-nqua3g",null,vo,dn),[()=>({hidden:s()!=="ads"})]),$(ze,bi)};R($s,ze=>{e.showAds&&Tt()&&ze(dl)})}var pa=P($s,2);{var pd=ze=>{let bi=m(()=>!st()&&e.showAutoplayNext&&C());mv(ze,{get title(){return Te()},get thumb(){return ae()},get isHide(){return n(bi)},clickCloseIcon:()=>N(Bn,!0)})};R(pa,ze=>{n(Yn)&&Te()&&ae()&&ze(pd)})}var cl=P(pa,2);{var fd=ze=>{let bi=m(()=>!p());Rm(ze,{get title(){return e.title},get isHidden(){return n(bi)},onVisibilityChanged:an,get ref(){return n(zr)},set ref(vo){N(zr,vo,!0)}})};R(cl,ze=>{n(Or)&&ze(fd)})}var ir=P(cl,2);{var vd=ze=>{let bi=m(()=>s()==="video"&&p());kc(ze,{get isShifted(){return n(bi)}})};R(ir,ze=>{X()&&ze(vd)})}var ul=P(ir,2);{var pl=ze=>{var bi=q5(),vo=_(bi);jd(vo,{get"aria-label"(){return qo}}),g(bi),$(ze,bi)};R(ul,ze=>{oe()&&ze(pl)})}var fa=P(ul,2);{var _t=ze=>{Ac(ze,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return Fe()}})};R(fa,ze=>{ce()&&ze(_t)})}var bt=P(fa,2);{var no=ze=>{Xa(ze,{get shifted(){return p()},get captions(){return _e()},get position(){return ie()},get playerSize(){return U()}})};R(bt,ze=>{Ge().value!=="off"&&ze(no)})}var Po=P(bt,2);{var ro=ze=>{var bi=Q5();bi.__contextmenu=wn,bi.__click=[W5,K,Ze,f,zi,xn];var vo=_(bi);Ja(vo,{}),g(bi),$(ze,bi)};R(Po,ze=>{a()&&ze(ro)})}var _i=P(Po,2);{var Qi=ze=>{let bi=m(()=>s()==="thumb"||s()==="LiveWaitingStart"||s()==="LiveWaitingRecover"||s()==="LiveWaitingRecord"),vo=m(()=>s()==="ads"),ma=m(()=>e.canRewindLive&&Se()!==0);Ic(ze,{get bottomHidden(){return n(bi)},get bottomNoSmooth(){return Z()},get showControls(){return p()},get isAds(){return n(vo)},get canRewindLive(){return n(ma)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Rt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Ee()},get nextButtonActive(){return Pe()},get prevButtonActive(){return ee()},get isOneVideoPlaylist(){return $t()},customFullscreenSupported:qi,toggleFullscreen:br,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return n(Mr)},set playerControlsWrapperRef(dn){N(Mr,dn,!0)},get playerControlsRef(){return n(Rn)},set playerControlsRef(dn){N(Rn,dn,!0)}})};R(_i,ze=>{Tt()&&ze(Qi)})}var Hs=P(_i,2);{var md=ze=>{var bi=j5(),vo=_(bi);let ma=m(()=>{var dn;return(dn=n(Rn))==null?void 0:dn.clientHeight});Rc(vo,{get supportLink(){return e.supportLink},get playerControlsHeight(){return n(ma)},returnFocus:()=>{var dn;return(dn=dt())==null?void 0:dn.focus()},get ref(){return n(hn)},set ref(dn){N(hn,dn,!0)}}),g(bi),$(ze,bi)};R(Hs,ze=>{!ce()&&s()!=="ads"&&ze(md)})}var Gc=P(Hs,2);let Np=m(()=>!n(_r));ec(Gc,{get isLive(){return Ce()},get isHidden(){return n(Np)},get isPlaying(){return Be()},get position(){return ie()},get duration(){return Se()}});var va=P(Gc,2);Pm(va,{get data(){return _n}});var Yc=P(va,2);fv(Yc,{get supportLink(){return e.supportLink},returnFocus:()=>{var ze;return(ze=dt())==null?void 0:ze.focus()},get visible(){return K()},get playerContainerRef(){return n(Xi)},get position(){return Ye()},get menuElementRef(){return n(qe)},set menuElementRef(ze){N(qe,ze,!0)}});var Fs=P(Yc,2);{var fl=ze=>{Oc(ze,{onClose:Gn,onSelectAutoQuality:()=>{Er("auto"),Gn()}})};R(Fs,ze=>{n(Lr)&&ze(fl)})}var Zc=P(Fs,2);{var Xc=ze=>{pg(ze,{})};R(Zc,ze=>{je()&&ze(Xc)})}var vl=P(Zc,2);{var Jc=ze=>{Ua(ze,{})};R(vl,ze=>{n(Vr)&&ze(Jc)})}var eu=P(vl,2);{var tu=ze=>{yv(ze,{})};R(eu,ze=>{Ue()&&ze(tu)})}var Dp=P(eu,2);{var Bp=ze=>{nc(ze,{})};R(Dp,ze=>{Je()&&ze(Bp)})}$(ki,Tn)}),$(xe,ai)},$$slots:{default:!0}}),xe=>dt(xe),()=>dt());var ui=P(Kr,2);at(ui,xe=>N(Nn,xe),()=>n(Nn)),g(oo),at(oo,xe=>N(Xi,xe),()=>n(Xi));var Co=P(oo,2);{var Cn=xe=>{var mt=Z5();$(xe,mt)};R(Co,xe=>{Ft()&&xe(Cn)})}wt("mouseenter",oo,Hr),wt("mouseleave",oo,Lt),wt("click",oo,hs,!0),wt("focusin",oo,tt,!0),$(t,Bs),F(),o()}ct(["mousemove","contextmenu","click"]);var sa=require("@vkontakte/videoplayer-core/es2015"),C_=require("@vkontakte/videoplayer-shared/es2015");var ew=M('<div></div> <div class="info svelte-nhq2ld"><div class="triangles-wrapper svelte-nhq2ld"><div></div> <div></div> <div></div></div> <p class="step-caption svelte-nhq2ld"> </p></div>',1),tw=M("<div><!></div>"),iw={hash:"svelte-nhq2ld",code:`.double-click-area.svelte-nhq2ld {position:absolute;top:0;height:100%;width:25%;overflow:hidden;}.double-click-area.left.svelte-nhq2ld {left:0;}.double-click-area.right.svelte-nhq2ld {right:0;}.semicircle.svelte-nhq2ld {position:absolute;top:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5);}.semicircle.left.svelte-nhq2ld {left:0;border-top-right-radius:50%;border-bottom-right-radius:50%;}.semicircle.right.svelte-nhq2ld {right:0;border-top-left-radius:50%;border-bottom-left-radius:50%;}.info.svelte-nhq2ld {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;flex-direction:column;align-items:center;justify-content:center;}.triangles-wrapper.svelte-nhq2ld {position:relative;display:flex;margin-bottom:10px;justify-content:center;}.triangle.svelte-nhq2ld {width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;
359
+ animation: svelte-nhq2ld-blink 500ms infinite;opacity:0;}.triangle.right.svelte-nhq2ld:nth-child(1),
360
+ .triangle.left.svelte-nhq2ld:nth-child(3) {animation-delay:0ms;}.triangle.right.svelte-nhq2ld:nth-child(2),
361
+ .triangle.left.svelte-nhq2ld:nth-child(2) {animation-delay:100ms;}.triangle.right.svelte-nhq2ld:nth-child(3),
362
+ .triangle.left.svelte-nhq2ld:nth-child(1) {animation-delay:200ms;}
363
+
364
+ @keyframes svelte-nhq2ld-blink {
365
+ 0% {
366
+ opacity: 0;
367
+ }
368
+ 50% {
369
+ opacity: 1;
370
+ }
371
+ 100% {
372
+ opacity: 0;
373
+ }
374
+ }.triangle.left.svelte-nhq2ld {border-right:8px solid var(--white);}.triangle.right.svelte-nhq2ld {border-left:8px solid var(--white);}.triangle.svelte-nhq2ld:not(:last-child) {margin-right:5px;}.step-caption.svelte-nhq2ld {margin:0;text-align:center;font-size:12px;line-height:1;color:var(--white);}`};function yp(t,e){H(e,!0),z(t,iw);let i=h(e,"seekStep",3,0),o=j(!1),r=0,s=0,l=j(li(i())),d=v=>{v.stopPropagation(),s+=1,N(l,i()*(s-1)),s===1?e.handleSingleFirstClick(v):(N(o,!0),e.handleSecondClick()),window.clearTimeout(r),r=window.setTimeout(()=>{s=0,N(o,!1)},300)};pn(()=>{window.clearTimeout(r)});var a=tw();a.__click=d;var u=_(a);{var f=v=>{var p=ew(),x=ve(p),w=P(x,2),y=_(w),C=_(y),T=P(C,2),E=P(T,2);g(y);var O=P(y,2),A=_(O,!0);g(O),g(w),D(I=>{var L,Z,B,U;re(x,1,`semicircle ${(L=e.side)!=null?L:""}`,"svelte-nhq2ld"),re(C,1,`triangle ${(Z=e.side)!=null?Z:""}`,"svelte-nhq2ld"),re(T,1,`triangle ${(B=e.side)!=null?B:""}`,"svelte-nhq2ld"),re(E,1,`triangle ${(U=e.side)!=null?U:""}`,"svelte-nhq2ld"),me(A,I)},[()=>Y("doubletap_seek_step",{seconds:n(l).toFixed(0)})]),$(v,p)};R(u,v=>{n(o)&&v(f)})}g(a),D(()=>{var v;return re(a,1,`double-click-area ${(v=e.side)!=null?v:""}`,"svelte-nhq2ld")}),$(t,a),F()}ct(["click"]);var ow=(t,e,i)=>{e(!1),i()},nw=M('<div class="overlay svelte-1qdxi6t"></div> <div class="next-video svelte-1qdxi6t"><div class="top svelte-1qdxi6t"><div class="caption svelte-1qdxi6t"> </div> <!></div> <div class="row svelte-1qdxi6t"><div class="column svelte-1qdxi6t"><div class="thumb svelte-1qdxi6t"><div></div> <!></div></div> <div class="column svelte-1qdxi6t"><div class="title svelte-1qdxi6t"> </div></div></div></div>',1),rw={hash:"svelte-1qdxi6t",code:".overlay.svelte-1qdxi6t {width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute;}.next-video.svelte-1qdxi6t {position:absolute;top:50%;left:50%;z-index:var(--end-screen-mobile-z-index);transform:translate(-50%, -50%);display:flex;flex-direction:column;max-width:362px;min-width:320px;margin:0 auto;padding-bottom:12px;}.top.svelte-1qdxi6t {display:flex;justify-content:space-between;}.caption.svelte-1qdxi6t {font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8;}.row.svelte-1qdxi6t {height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;width:100%;}.column.svelte-1qdxi6t {display:flex;flex-direction:column;flex-basis:50%;}.thumb.svelte-1qdxi6t {width:100%;height:100%;background:no-repeat center;background-size:cover;display:flex;align-items:center;position:relative;justify-content:space-around;}.thumb-overlay.svelte-1qdxi6t {width:100%;height:100%;position:absolute;}.thumb-overlay.withOpacity.svelte-1qdxi6t {background:var(--black);opacity:0.3;}.title.svelte-1qdxi6t {padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden;}"};function mg(t,e){H(e,!0),z(t,rw);let[i,o]=Ne(),r=()=>S(d,"$autoplayNextEnabled$",i),s=()=>S(a,"$timerNextVideoRunning$",i),l=$e(),d=l.ui.autoplayNextEnabled$,a=l.ui.timerNextVideoRunning$,u=l.actions.internal.nextVideoClick,f=l.actions.internal.nextVideoAnnouncementShow,v=l.actions.internal.nextVideoAnnouncementClick,p=l.actions.internal.nextVideoAnnouncementAuto,x=l.actions.internal.nextVideoAnnouncementCancel,w=()=>{u(!1),p()},y=()=>{e.clickCloseIcon(),x()};Ht(()=>{e.isHide||f(),e.isHide&&r()&&(u(!1),p())});var C=He(),T=ve(C);{var E=O=>{var A=nw(),I=P(ve(A),2),L=_(I),Z=_(L),B=_(Z,!0);g(Z);var U=P(Z,2);Ps(U,{onClick:y}),g(L);var X=P(L,2);X.__click=[ow,u,v];var de=_(X),K=_(de),ue=_(K);let J;var ge=P(ue,2);{var se=te=>{rc(te,{get isRunning(){return s()},onTimerEnded:w})};R(ge,te=>{r()&&te(se)})}g(K),g(de);var ce=P(de,2),Le=_(ce),we=_(Le,!0);g(Le),g(ce),g(X),g(I),D((te,De)=>{me(B,te),et(K,`background-image: url('${e.thumb}')`),J=re(ue,1,"thumb-overlay svelte-1qdxi6t",null,J,De),me(we,e.title)},[()=>r()?Y("end_screen_next_video"):Y("end_screen_recommended_video"),()=>({withOpacity:r()})]),$(O,A)};R(T,O=>{e.isHide||O(E)})}$(t,C),F(),o()}ct(["click"]);var $_=require("@vkontakte/videoplayer-core/es2015");var y_=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Ht(()=>{$_.clientChecker.device.isIOS&&(o=setTimeout(()=>{let s=t().querySelector("video");if(!s)return;let l=()=>e(!0),d=()=>e(!1);s.addEventListener("webkitbeginfullscreen",l),s.addEventListener("webkitendfullscreen",d),i=()=>{s.removeEventListener("webkitbeginfullscreen",l),s.removeEventListener("webkitendfullscreen",d)}},0))}),pn(()=>{i==null||i(),clearTimeout(o)})};var x_=require("@vkontakte/videoplayer-core/es2015");var xp=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 w_=require("@vkontakte/videoplayer-core/es2015"),S_=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:r,availableSubtitlesList$:s,currentFormat$:l,availableTextTracks$:d}=t.state,a=null,u=()=>e().querySelector("video"),f=()=>w_.clientChecker.device.isIOS&&be(l)===x_.VideoFormat.DASH_LIVE_CMAF,v=()=>{a==null||a(),a=null},p=x=>{if(v(),!f()||!x)return;let w=u();if(!w)return;let y=new xp(w),C=be(d),T=be(s),E=be(r);for(let I of C)T.some(Z=>Z.value===I.id)&&y.attach(I,E.value===I.id);let O=d.subscribe(I=>{for(let L of I)y.updateSrc(L)}),A=()=>{let I=y.getCurrentShowingId();o(be(s).find(L=>L.value===I))};w.textTracks.addEventListener("change",A),a=()=>{O(),y.detachAll(),w.textTracks.removeEventListener("change",A)}};Ht(()=>i.subscribe(p)),pn(v)};var sw=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},aw=M("<!> <!>",1),lw=M("<div><!></div>"),dw=M('<div class="spherical-video-icon svelte-7yl31d"><!></div>'),cw=M("<div><!></div>"),uw=M('<div class="settings-mobile svelte-7yl31d"><!></div>'),pw=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),fw=M('<div class="player-wrapper svelte-7yl31d" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),vw={hash:"svelte-7yl31d",code:".player-wrapper.svelte-7yl31d {position:absolute;width:100%;height:100%;}.player-wrapper.svelte-7yl31d .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.spherical-video-icon.svelte-7yl31d {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.ads-container.svelte-7yl31d {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-7yl31d {z-index:var(--ads-container-z-index);background:var(--black);}.settings-mobile.svelte-7yl31d {position:absolute;z-index:var(--settings-menu-z-index);top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;max-width:320px;width:90%;}"};function gg(t,e){var Nr,Zn;H(e,!0),z(t,vw);let[i,o]=Ne(),r=()=>S(It,"$playerPhase",i),s=()=>S(Ei,"$isLoaderVisible",i),l=()=>S(Te,"$adPlaybackState",i),d=()=>S(si,"$crashed",i),a=()=>S(gs,"$notificationsToShow$",i),u=()=>S(ee,"$playbackState$",i),f=()=>S(Rt,"$graphIsOpened$",i),v=()=>S(lt,"$interactiveHideMobileControls",i),p=()=>S(uo,"$isEnded$",i),x=()=>S(vt,"$isInteractiveExpectation$",i),w=()=>S(Tt,"$controlsVisible",i),y=()=>S(pt,"$touched",i),C=()=>S(Wi,"$autoplayNextEnabled$",i),T=()=>S(xi,"$postrollPassed",i),E=()=>S(jn,"$bottomNoSmooth",i),O=()=>S(wi,"$videoSize",i),A=()=>S(kt,"$playerSize",i),I=()=>S(ut,"$isFullscreen",i),L=()=>S(ae,"$position$",i),Z=()=>S($t,"$duration$",i),B=()=>S(on,"$loadedMetadata",i),U=()=>S(st,"$settingsMenuVisible",i),X=()=>S(ri,"$scrubbingInProgress",i),de=()=>S(ei,"$volumeChangingInProgress",i),K=()=>S(Dt,"$chromecastConnected$",i),ue=()=>S(he,"$isControlsAvailable",i),J=()=>S(ni,"$isInteractiveTime$",i),ge=()=>S(zi,"$isActiveLive",i),se=()=>S(dt,"$settingsMenuOpenedByKeyboard",i),ce=()=>S(Pe,"$language$",i),Le=()=>S(Xt,"$disabledControls$",i),we=()=>S(Wt,"$is3DVideo",i),te=()=>S(W,"$icon3DVideoVisible",i),De=()=>S(ci,"$chromecastDeviceName$",i),fe=()=>S(Eo,"$currentSubtitle$",i),k=()=>S(tn,"$currentSubtitleCaptions$",i),Qe=()=>S(vn,"$realDuration$",i),Ve=()=>S(yt,"$isLive$",i),q=()=>S(Ut,"$isPlaying$",i),oe=()=>S(fi,"$debugPanelVisible",i),Fe=h(e,"videoContainer",15),Ge=h(e,"adsSlotId",3,void 0),_e=h(e,"adsParams",3,void 0),ie=h(e,"adsAutoplayParam",3,void 0),Se=h(e,"duration",3,void 0),Ce=h(e,"logoTargetUrl",3,""),Be=h(e,"showNextPrevButtons",3,!1),Ye=h(e,"nextButtonActive",3,!1),je=h(e,"prevButtonActive",3,!1),Ue=h(e,"endScreenVideoTitle",3,void 0),Je=h(e,"endScreenVideoThumb",3,void 0),Ft=h(e,"isOneVideoPlaylist",3,!1),ot=h(e,"showMiniTimer",3,!1),zt=h(e,"fullScreenTarget",3,void 0),Zt=h(e,"playerStarted",3,!1),Et=h(e,"showEndScreen",3,!0),{notifications$:oi,graphIsOpened$:Rt}=To(),Ee=e.store.getLogger().createComponentLog("Root component"),Pe=e.store.interfaceLanguage$,ee=e.store.state.playbackState$,Te=e.store.ads.playbackState,ae=e.store.state.positionWithScrubbing$,$t=e.store.state.duration$,It=e.store.playerPhase,ut=e.store.ui.isFullscreen,Tt=e.store.ui.controlsVisible,he=e.store.ui.isControlsAvailable,lt=e.store.ui.interactiveHideMobileControls,st=e.store.ui.settingsMenu.visible$,dt=e.store.ui.settingsMenu.openedByBtnKeyboard$,ri=e.store.ui.scrubbingInProgress,ei=e.store.ui.volumeChangingInProgress,fi=e.store.ui.debugPanelVisible,Ei=e.store.state.isLoaderVisible,uo=e.store.state.isEnded$,Dt=e.store.state.chromecastConnected$,ci=e.store.state.chromecastDeviceName$,xi=e.store.ads.postrollPassed,yt=e.store.state.isLive$,Ut=e.store.state.isPlaying$,zi=e.store.state.isActiveLive$,Pi=e.store.state.isRewindableLive$,si=e.store.state.crashed$,Mt=e.store.webApi.annotationsApi,Ze=e.store.webApi.pictureInPictureApi,wi=e.store.state.videoSize$,Eo=e.store.state.currentSubtitle$,tn=e.store.state.currentSubtitleCaptions$,vn=e.store.state.duration$,kt=e.store.ui.playerSize,Wt=e.store.ui.is3DVideo,W=e.store.ui.icon3DVideoVisible,Ot=e.store.state.isInteractive,ni=e.store.state.isInteractiveTime$,vt=e.store.state.isInteractiveExpectation$,At=e.store.state.hasInteractiveBranches,Xt=e.store.ui.controls.disabledControls$,pt=e.store.ui.touched,Mi=e.store.ui.overlayContainer$,Wi=e.store.ui.autoplayNextEnabled$,on=e.store.state.loadedMetadata$,No=e.store.actions.internal.closeSettingsMenu,po=(Nr=e.store.callbacks)==null?void 0:Nr.onDisabledPlayPrevChapterClick,Ki=(Zn=e.store.callbacks)==null?void 0:Zn.onDisabledSeekToInteractiveClick,pr=e.store.actions.internal.setQuality,bo=j(void 0),$o=j(void 0),Di=j(void 0),mn=j(void 0),Do,fr,vr=m(()=>(r()==="video"&&s()||r()==="ads"&&l()==="inactive")&&!d()),Er=j(void 0),{closeNotification:os,notificationsToShow$:gs}=oi,ns=m(()=>!!a().slow_video),Io=()=>os("slow_video"),jn=le(!1),Bo,gn=j(!1),Vn=m(()=>u()!==sa.PlaybackState.PLAYING),mr=j(!1),Ir=m(()=>f()||v()||!n(gn)&&(p()&&!!At||n(Vn)&&x())),kr=j(!0),Ar=m(()=>e.uiConfig.features.thumbTimer&&ot()&&r()==="video"&&!w()&&!d()&&!Ot&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),Pr=j(!1),Xi=m(()=>(Et()||e.showAutoplayNext&&C())&&!!Ue()&&!!Je()&&(e.showAds&&T()||!e.showAds)&&p()&&!d()&&!n(Pr)),Mr=j(!1);Ze==null||Ze.setContext(yd());let Rn=it=>{it&&!Ot&&yo(e.uiConfig.controls.hideTimeoutMobile)};e.store.setUiCallbacks({onStarted:Rn});let hn=()=>{clearTimeout(Do),N(gn,!1),v()&&lt.set(!1)},yo=it=>{hn(),N(gn,!0),Do=setTimeout(()=>N(gn,!1),it);let mi=it-100;Bo=setTimeout(()=>{E()&&jn.set(!1)},mi>0?mi:it)},gr=Wt.subscribe(it=>{W.set(it),it&&(clearTimeout(fr),fr=setTimeout(()=>W.set(!1),e.uiConfig.controls.hide360IconTimeout))}),On=(...mi)=>xt(null,[...mi],function*(it=Xs()){var Bi,Ji,zo,rn,fo,Li;if(it&&!sa.clientChecker.device.isIOS){let eo=Gd(),wo=Nn(),$n=sa.clientChecker.browser.isSamsungBrowser&&eo===e.shadowRootContainer;it=eo===wo||$n}if(it){yo(e.uiConfig.controls.hideTimeoutFullscreen);try{yield Ze==null?void 0:Ze.exit()}catch(eo){Ee({message:String(eo)})}try{let eo=(Bi=O())!=null&&Bi.width&&((Ji=O())!=null&&Ji.height)?O():A();yield v0(eo)}catch(eo){Ee({message:String(eo)})}}ut.set(it),e.store.getAdmanWrapper().setFullscreen(it),I()?(rn=(zo=e.store.callbacks)==null?void 0:zo.onFullscreenEnter)==null||rn.call(zo):(Li=(fo=e.store.callbacks)==null?void 0:fo.onFullscreenExit)==null||Li.call(fo)}),gt=it=>{let mi=it,{width:Bi,height:Ji}=mi.target;kt.set({width:Bi,height:Ji})},vi=()=>{let{width:it,height:mi}=n(bo).getBoundingClientRect();kt.set({width:it,height:mi})};Ht(()=>{var it;return Qu(On),e.uiConfig.features.annotationsInside&&(Mt==null||Mt.init(n(bo))),Da(Ze)&&(Ze==null||Ze.assignPlayerContainer(n(bo)),Ze==null||Ze.setExternalEventHandlers({resize:gt,leavepictureinpicture:vi})),N(kr,!sa.clientChecker.device.isIphoneOrOldIpad),e.interactiveContainer&&((it=Fe().parentElement)==null||it.insertBefore(e.interactiveContainer,Fe().nextSibling)),()=>{clearTimeout(Do),clearTimeout(Bo),clearTimeout(fr),gr(),Ze==null||Ze.dispose().catch(mi=>{Ee({message:String(mi)})}),ju(On)}});let Lr=j(!0),Gn=j(!0),Vr=it=>{let mi=L()+(it==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;mi<0?(N(Lr,!1),mi=0):mi>=Z()&&(N(Gn,!1),mi=Z()),N(mr,!0),e.seekTime(mi)},Nn=()=>sa.clientChecker.device.isIOS?n(bo):!e.uiConfig.allowChangingFullscreenTarget||!zt()?e.outerContainerRef:zt().contains(e.outerContainerRef)?zt():e.outerContainerRef,Dn=()=>xt(null,null,function*(){try{if(Xs())yield qu(document),Ee({message:"exit fullscreen"});else{if(Ee({message:"request fullscreen"}),sa.clientChecker.device.isIOS&&!B())return;yield Ku(Nn())}}catch(it){Ee({message:String(it)})}}),Ho=()=>{No()},Fo=it=>{if(it.preventDefault(),U()){Ho();return}if(!Zt()){e.firstStart(),yo(e.uiConfig.controls.hideTimeoutCursor);return}N(mr,!1),w()?hn():yo(e.uiConfig.controls.hideTimeoutMobile)},_n=()=>{pt.set(!0)},xo=()=>{Ot||(jn.set(!0),yo(e.uiConfig.controls.hideTimeoutCursor))},Uo=it=>{po&&(po(it),yo(e.uiConfig.controls.hideTimeoutMobile))},nn=it=>{Ki&&(Ki(it),yo(e.uiConfig.controls.hideTimeoutMobile))};We(()=>{Mi.set(n(Er))}),We(()=>{Tt.set((n(Vn)||U()||X()||de()||K()||!n(Xi)&&(p()||n(gn)&&!n(mr)))&&!n(Ir)&&r()==="video"&&!d()&&ue())}),We(()=>{!X()&&n(Mr)&&!J()&&yo(e.uiConfig.controls.hideTimeoutMobile),N(Mr,X(),!0)}),We(()=>{N(Lr,L()>0),N(Gn,!ge()&&L()<Z(),!0)}),We(()=>{ic(n(mn),U(),se(),!0)});let hr=Y("aria_label_video_player"),Rr=Y("video360");y_({fullScreenChangeHandler:On,getFullscreenTarget:Nn}),S_({store:e.store,getFullscreenTarget:Nn});let bn=(it,mi)=>{var rn,fo;let Bi=(fo=(rn=e.store.callbacks)==null?void 0:rn.uiInfo)==null?void 0:fo.onUpcomingLiveViewStateChanged;if(!Bi)return;let Ji=!!mi,zo=Q(Q({},qn(n(bo),{upcomingLiveScreen:mi},"upcomingLiveScreen",Ji)),it);Bi(zo)};var qi=fw();wt("blur",wa,Ho);var _r=_(qi);nl(_r,{onClick:Fo,get videoContainer(){return Fe()},set videoContainer(it){Fe(it)}});var Or=P(_r,2);ka(Or,()=>"slot",!1,(it,mi)=>{Me(it,()=>({name:ol}))});var Bn=P(Or,2);Ts(Bn,ce,it=>{var mi=pw(),Bi=ve(mi);let Ji=m(()=>r()!=="thumb"||d()||Ot&&e.autoplay);el(Bi,{get hidden(){return n(Ji)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var zo=P(Bi,2);{var rn=qe=>{var ti=aw(),hi=ve(ti);{var Sn=an=>{let Wr=m(()=>e.uiConfig.controls.seekStepMobile/1e3);yp(an,{side:"left",get seekStep(){return n(Wr)},handleSingleFirstClick:Fo,handleSecondClick:()=>Vr("backward")})};R(hi,an=>{n(Lr)&&an(Sn)})}var qo=P(hi,2);{var zr=an=>{let Wr=m(()=>e.uiConfig.controls.seekStepMobile/1e3);yp(an,{side:"right",get seekStep(){return n(Wr)},handleSingleFirstClick:Fo,handleSecondClick:()=>Vr("forward")})};R(qo,an=>{n(Gn)&&an(zr)})}$(qe,ti)};R(zo,qe=>{e.canRewindLive&&Pi&&!Le().has("TIMELINE")&&qe(rn)})}var fo=P(zo,2);{var Li=qe=>{let ti=m(()=>{var hi;return(hi=e.live)==null?void 0:hi.startTime});Pc(qe,{get thumbUrl(){return e.thumbUrl},get startTime(){return n(ti)},onUpcomingLiveViewStateChanged:bn})};R(fo,qe=>{r()==="LiveWaitingStart"&&qe(Li)})}var eo=P(fo,2);{var wo=qe=>{tl(qe,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};R(eo,qe=>{r()==="LiveWaitingRecover"&&qe(wo)})}var $n=P(eo,2);{var Xn=qe=>{tl(qe,{kind:"record",get thumbUrl(){return e.thumbUrl}})};R($n,qe=>{r()==="LiveWaitingRecord"&&qe(Xn)})}var Dr=P($n,2);{var Br=qe=>{var ti=lw();let hi;var Sn=_(ti);Zd(Sn,{get adsSlotId(){return Ge()},get adsParams(){return _e()},get adsAutoplayParam(){return ie()},get duration(){return Se()},get adsExternalApi(){return e.adsExternalApi}}),g(ti),D(qo=>hi=re(ti,1,"ads-container svelte-7yl31d",null,hi,qo),[()=>({hidden:r()!=="ads"})]),$(qe,ti)};R(Dr,qe=>{e.showAds&&Zt()&&qe(Br)})}var yn=P(Dr,2);{var xn=qe=>{let ti=m(()=>!Et()&&e.showAutoplayNext&&C());mg(qe,{get title(){return Ue()},get thumb(){return Je()},get isHide(){return n(ti)},clickCloseIcon:()=>N(Pr,!0)})};R(yn,qe=>{n(Xi)&&Ue()&&Je()&&qe(xn)})}var br=P(yn,2);{var wn=qe=>{kc(qe,{})};R(br,qe=>{we()&&qe(wn)})}var Hr=P(br,2);{var tt=qe=>{var ti=dw(),hi=_(ti);jd(hi,{get"aria-label"(){return Rr}}),g(ti),$(qe,ti)};R(Hr,qe=>{te()&&qe(tt)})}var Lt=P(Hr,2);{var Si=qe=>{Ac(qe,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return De()}})};R(Lt,qe=>{K()&&qe(Si)})}var So=P(Lt,2);{var Wo=qe=>{Xa(qe,{get shifted(){return w()},get captions(){return k()},get position(){return L()},get playerSize(){return A()},isMobile:!0})};R(So,qe=>{fe().value!=="off"&&qe(Wo)})}var ko=P(So,2);{var to=qe=>{var ti=cw();ti.__click=[sw,U,st,Ho];var hi=_(ti);Ja(hi,{}),g(ti),$(qe,ti)};R(ko,qe=>{d()&&qe(to)})}var Vi=P(ko,2);{var sn=qe=>{let ti=m(()=>r()==="thumb"||r()==="LiveWaitingStart"||r()==="LiveWaitingRecover"||r()==="LiveWaitingRecord"||r()==="ads"),hi=m(()=>r()==="ads"),Sn=m(()=>e.canRewindLive&&Qe()!==0);Ic(qe,{get bottomHidden(){return n(ti)},get showControls(){return w()},get bottomNoSmooth(){return E()},get isAds(){return n(hi)},get canRewindLive(){return n(Sn)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Ce()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Be()},get nextButtonActive(){return Ye()},get prevButtonActive(){return je()},get isOneVideoPlaylist(){return Ft()},get customFullscreenSupported(){return n(kr)},get endScreenShown(){return n(Xi)},toggleFullscreen:Dn,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:Uo,onDisabledSeekToInteractiveClick:nn,get playerControlsWrapperRef(){return n($o)},set playerControlsWrapperRef(qo){N($o,qo,!0)},get playerControlsRef(){return n(Di)},set playerControlsRef(qo){N(Di,qo,!0)}})};R(Vi,qe=>{Zt()&&qe(sn)})}var Ko=P(Vi,2);{var Ao=qe=>{var ti=uw(),hi=_(ti);Rc(hi,{get supportLink(){return e.supportLink},get returnFocus(){return C_.noop},get ref(){return n(mn)},set ref(Sn){N(mn,Sn,!0)}}),g(ti),$(qe,ti)};R(Ko,qe=>{U()&&qe(Ao)})}var io=P(Ko,2);let Fr=m(()=>!n(Ar));ec(io,{get isLive(){return Ve()},get isHidden(){return n(Fr)},get isPlaying(){return q()},get position(){return L()},get duration(){return Z()}});var Jn=P(io,2);{var er=qe=>{Ua(qe,{})};R(Jn,qe=>{n(vr)&&qe(er)})}var $r=P(Jn,2);{var hs=qe=>{nc(qe,{})};R($r,qe=>{oe()&&qe(hs)})}var Ur=P($r,2);{var rs=qe=>{Oc(qe,{onClose:Io,onSelectAutoQuality:()=>{pr("auto"),Io()}})};R(Ur,qe=>{n(ns)&&qe(rs)})}$(it,mi)});var Yn=P(Bn,2);at(Yn,it=>N(Er,it),()=>n(Er)),g(qi),at(qi,it=>N(bo,it),()=>n(bo)),D(()=>Ke(qi,"aria-label",hr)),wt("click",qi,_n,!0),wt("focusin",qi,xo,!0),$(t,qi),F(),o()}ct(["click"]);function wp(t){let e="";return co(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),co(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),co(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),co(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),co(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),co(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),co(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),co(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),co(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),co(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),co(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),co(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),co(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),co(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),co(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),co(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),co(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),co(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),co(t.font)&&(e+=`--font:${t.font};`),co(t.controlsGradientHeight)&&(e+=`--controls-gradient-height:${t.controlsGradientHeight};`),co(t.controlsGradient)&&(e+=`--controls-gradient:${t.controlsGradient};`),e.length&&e||void 0}function co(t){return typeof t=="string"&&!t.includes(";")}var T_=require("@vkontakte/videoplayer-shared/es2015");var mw=M('<div class="time-container svelte-1qfjf44"><!></div>'),gw=M('<div class="player-wrapper svelte-1qfjf44" role="region"><!> <!> <!> <!> <!> <div><!></div></div>'),hw={hash:"svelte-1qfjf44",code:".player-wrapper.svelte-1qfjf44 {position:absolute;width:100%;height:100%;}.player-wrapper.svelte-1qfjf44 .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.timeline.svelte-1qfjf44 {opacity:0;opacity:1;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;transition:opacity var(--controls-transition-duration) var(--controls-transition-fn);}.visible.svelte-1qfjf44 {opacity:1;}.time-container.svelte-1qfjf44 {position:absolute;bottom:8px;right:8px;z-index:var(--thumb-timer-z-index);}"};function hg(t,e){H(e,!0),z(t,hw);let[i,o]=Ne(),r=()=>S(J,"$scrubbingInProgress",i),s=()=>S(K,"$playerSize",i),l=()=>S(L,"$isPlaying$",i),d=()=>S(A,"$duration$",i),a=()=>S(U,"$positionWithScrubbing$",i),u=()=>S(E,"$playerPhase",i),f=()=>S(O,"$crashed$",i),v=()=>S(Z,"$currentSubtitle$",i),p=()=>S(B,"$currentSubtitleCaptions$",i),x=()=>S(I,"$positionExact$",i),w=()=>S(X,"$isLive$",i),y=()=>S(de,"$isRewindableLive$",i),C=h(e,"outsideDuration",3,0),T=h(e,"videoContainer",15),{playerPhase:E,state:{crashed$:O,duration$:A,positionExact$:I,isPlaying$:L,currentSubtitle$:Z,currentSubtitleCaptions$:B,positionWithScrubbing$:U,isLive$:X,isRewindableLive$:de},ui:{playerSize:K,controls:ue,scrubbingInProgress:J},actions:{internal:{getVideoElement:ge}}}=$e(),se=8,ce=j(!1),Le=li({}),we=j(!1),te=m(()=>!r()&&!n(we)),De=()=>{N(ce,!0)},fe=()=>{N(ce,!1)},k=(0,T_.debounceFn)(Jl,260);We(()=>{s(),k(ge(),ue,Le,n(ce))});let Qe=m(()=>l()?en(d()-a()):en(isFinite(d())?d():C()));var Ve=gw(),q=_(Ve);nl(q,{hideCursor:!1,get videoContainer(){return T()},set videoContainer(Ue){T(Ue)}});var oe=P(q,2);ka(oe,()=>"slot",!1,(Ue,Je)=>{Me(Ue,()=>({name:ol}))});var Fe=P(oe,2);let Ge=m(()=>u()!=="thumb"||f());el(Fe,{get hidden(){return n(Ge)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var _e=P(Fe,2);{var ie=Ue=>{Xa(Ue,{shifted:!1,get captions(){return p()},get position(){return x()},get playerSize(){return s()}})};R(_e,Ue=>{v().value!=="off"&&n(te)&&Ue(ie)})}var Se=P(_e,2);{var Ce=Ue=>{var Je=mw(),Ft=_(Je);Jd(Ft,{get isLive(){return w()},get isPlaying(){return l()},get time(){return n(Qe)}}),g(Je),$(Ue,Je)};R(Se,Ue=>{n(te)&&Ue(Ce)})}var Be=P(Se,2);let Ye;var je=_(Be);Ga(je,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return y()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:se,tooltipRightOffset:se,get ref(){return Le.timeline},set ref(Ue){Le.timeline=Ue}}),g(Be),g(Ve),D(Ue=>Ye=re(Be,1,"timeline svelte-1qfjf44",null,Ye,Ue),[()=>({visible:n(ce)})]),wt("mouseenter",Ve,De),wt("mouseleave",Ve,fe),wt("mouseenter",Be,()=>N(we,!0)),wt("mouseleave",Be,()=>N(we,!1)),$(t,Ve),F(),o()}var _w=M("<div><!></div>"),bw={hash:"svelte-3c0y7j",code:`.vk-vp-root.svelte-3c0y7j {--white: #fff;--black: #000;--red: #ff3347;--blue-light: #70c1ff;--black-alpha-40: rgba(0, 0, 0, 0.4);--white-alpha-24: rgba(255, 255, 255, 0.24);--white-alpha-72: rgba(255, 255, 255, 0.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, 0.5);--big-play-hover-bg-color: rgba(0, 0, 0, 0.6);--big-play-icon-width: 38px;--big-play-icon-height: 33px;--interactive-episode-complete: rgba(92, 156, 230, 1);--slider-bg: rgba(255, 255, 255, 0.4);--slider-filled-bg: var(--white);--slider-handle-bg: var(--white);--slider-loaded-bg: rgba(255, 255, 255, 0.4);--slider-height: 3px;--slider-video-episode-gap: 1.5px;--slider-radius: 0px;--slider-handle-size: 12px;--slider-filled-ads: rgba(103, 165, 235, 1);--slider-disabled-color: rgba(248, 248, 248, 0.31);--slider-volume-height: 5px;--slider-volume-radius: calc(var(--slider-volume-height) / 2);--slider-volume-handle-size: 13px;
375
+
376
+ /* USER DEFINED COLORS */
377
+
378
+ /* timeline active live */--timeline-slider-filled-active-live-bg: var(--red);--timeline-slider-handle-active-live-bg: var(--red);
379
+ /* timeline & timeline ads */--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);
380
+ /* volume slider colors */--volume-slider-bg: var(--slider-bg);--volume-slider-filled-bg: var(--slider-filled-bg);--volume-slider-handle-bg: var(--slider-handle-bg);
381
+ /* controls time */--controls-time: var(--white);
382
+
383
+ /* /// USER DEFINED COLORS */--controls-gradient: linear-gradient(
384
+ to bottom,
385
+ rgba(0, 0, 0, 0) 0%,
386
+ rgba(0, 0, 0, 0.005) 6.67%,
387
+ rgba(0, 0, 0, 0.02) 13.33%,
388
+ rgba(1, 1, 1, 0.04) 20%,
389
+ rgba(1, 1, 1, 0.07) 26.67%,
390
+ rgba(2, 2, 2, 0.11) 33.33%,
391
+ rgba(3, 3, 3, 0.16) 40%,
392
+ rgba(4, 4, 4, 0.22) 46.67%,
393
+ rgba(6, 6, 6, 0.28) 53.33%,
394
+ rgba(7, 7, 7, 0.33) 60%,
395
+ rgba(8, 8, 8, 0.38) 66.67%,
396
+ rgba(9, 9, 9, 0.42) 73.33%,
397
+ rgba(9, 9, 9, 0.46) 80%,
398
+ rgba(10, 10, 10, 0.48) 86.67%,
399
+ rgba(10, 10, 10, 0.50) 100%
400
+ );--timeline-preview-shadow: rgba(0, 0, 0, 0.08);--timeline-preview-bg: rgba(34, 34, 34, 1);--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, 0.72);--settings-item-bg-hover: rgba(255, 255, 255, 0.08);--settings-radius: 8px;--mobile-settings-bg: #2c2d2e;--divider-border: 1px solid var(--white-alpha-24);--toggle-color-separator: #363738;--toggle-color-off: #656565;--toggle-color-on: #71aaeb;--toggle-color-autoplay-on: var(--white);--notification-bg: #2C2D2E;--notification-radius: 8px;--button-hover-transition: opacity 0.2s;--video-container-z-index: 0;--controls-container-z-index: 1;--ads-container-z-index: 1;--end-screen-mobile-z-index: 1;--notification-z-index: 1;--thumb-timer-z-index: 2;--debug-panel-z-index: 2;--settings-menu-z-index: 2;--context-menu-z-index: 3;--hot-key-helpers-container-z-index: 3;--overlay-container-z-index: 4;--rotate-transition-duration: 0.25s;--btn-color: var(--white);--double-forward-bg: rgba(0, 0, 0, 0.6);position:relative;width:100%;height:100%;color:var(--white);font-size:12px;line-height:normal;overflow:hidden;outline:0;user-select:none;
401
+ /* --vk-vp-custom-font - vk video player custom font */font-family:var(--vk-vp-custom-font, var(--font));background:var(--black);}.vk-vp-root.visible-outside.svelte-3c0y7j {overflow:visible;}
402
+
403
+ /* css reset start */.vk-vp-root.svelte-3c0y7j * {-webkit-tap-highlight-color:transparent;}.vk-vp-root.svelte-3c0y7j button {border:none;margin:0;padding:0;width:auto;overflow:visible;background:transparent;color:inherit;font:inherit;line-height:normal;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;cursor:pointer;}.vk-vp-root.svelte-3c0y7j p {margin:0;}.vk-vp-root.svelte-3c0y7j svg:not(.interactive-root svg) {pointer-events:none;}.vk-vp-root.svelte-3c0y7j .interactive-root {
404
+ /* --vk-vp-int-custom-font - vk video player interactive custom font */font-family:var(--vk-vp-int-custom-font, inherit);}.vk-vp-root.svelte-3c0y7j *:focus, .vk-vp-root.svelte-3c0y7j *:focus-visible {outline:none;}.vk-vp-root.svelte-3c0y7j *:focus-visible {box-shadow:var(--focused-element-shadow);border-radius:var(--focused-outline-radius);}.vk-vp-root.svelte-3c0y7j *.focus-hidden:focus-visible {box-shadow:none;}
405
+ /* css reset end */.vk-vp-root.svelte-3c0y7j .hidden {visibility:hidden;opacity:0;}.vk-vp-root.svelte-3c0y7j .out-of-flow {content-visibility:hidden !important;}.vk-vp-root.svelte-3c0y7j .overlay-container {pointer-events:none;top:0;left:0;height:100%;width:100%;position:fixed;z-index:var(--overlay-container-z-index);}
406
+
407
+ /* \u041A\u043B\u0430\u0441\u0441 \u0434\u043B\u044F \u0441\u043E\u043A\u0440\u044B\u0442\u0438\u0435 \u043A\u043E\u043D\u0442\u0435\u043D\u0442\u0430 \u0432\u0438\u0437\u0443\u0430\u043B\u044C\u043D\u043E \u043D\u043E \u043D\u0435 \u0434\u043B\u044F \u043E\u0431\u0445\u043E\u0434\u0430 \u043F\u043E \u0442\u0430\u0431 \u0438 \u0441\u043A\u0440\u0438\u043D \u0440\u0438\u0434\u0435\u0440\u0430 */.vk-vp-root.svelte-3c0y7j .out-of-view {position:absolute !important;left:-1000vh !important;}.vk-vp-root.svelte-3c0y7j .icon.icon-error-stub {display:flex;justify-content:center;align-items:center;}`};function _g(t,e){H(e,!0),z(t,bw);let[i,o]=Ne(),r=()=>S(Zt,"$isLive$",i),s=()=>S(Mt,"$availableSubtitlesList$",i),l=()=>S(Ze,"$isPreviewTrackHorizontallyAligned$",i),d=h(e,"sources",7),a=h(e,"store",7),u=h(e,"microStoresRoot",7),f=h(e,"videoConfig",7),v=h(e,"uiConfig",7),p=h(e,"title",7),x=h(e,"thumbUrl",7),w=h(e,"interactiveContainer",7),y=h(e,"interactiveController",7),C=h(e,"subtitles",7),T=h(e,"subtitlesForcedLanguage",7),E=h(e,"live",7),O=h(e,"preload",7),A=h(e,"autoplay",7),I=h(e,"volume",7,void 0),L=h(e,"muted",7,void 0),Z=h(e,"fromTime",7),B=h(e,"canRewindLive",7),U=h(e,"showAds",7),X=h(e,"adsSlotId",7,void 0),de=h(e,"adsParams",7,void 0),K=h(e,"adsAutoplayParam",7,void 0),ue=h(e,"duration",7,void 0),J=h(e,"logoClickable",7),ge=h(e,"logoHidden",7),se=h(e,"isMobile",7),ce=h(e,"showNextPrevButtons",7,!1),Le=h(e,"nextButtonActive",7,!1),we=h(e,"prevButtonActive",7,!1),te=h(e,"endScreenVideoTitle",7,void 0),De=h(e,"endScreenVideoThumb",7,void 0),fe=h(e,"isOneVideoPlaylist",7,!1),k=h(e,"supportLink",7),Qe=h(e,"shadowRootContainer",7),Ve=h(e,"outerContainerRef",7),q=h(e,"fullScreenTarget",7,void 0),oe=h(e,"failoverHosts",7,void 0),Fe=h(e,"showMiniTimer",7,!1),Ge=h(e,"saveRate",7),_e=h(e,"seekToInteractive",7,rl.noop),ie=h(e,"playPrevChapter",7,rl.noop),Se=h(e,"volumeMultiplier",7),Ce=h(e,"showAutoplayNext",7),Be=h(e,"showEndScreen",7,!0),Ye=h(e,"keyboardControls",15,void 0),{subscribers:je,stores:Ue}=u();w1(v());let Je=Nt(),Ft=v().logoLink,ot=a().ui.debugPanelVisible,zt=a().ui.playerSize,Zt=a().state.isLive$,oi=a().state.isInteractive&&nd.clientChecker.device.isAndroid,Rt=j(void 0),Ee=null,Pe=j(!1);a().getAdmanWrapper().init({switchFromAdsToVideo:a().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:a().actions.internal.switchFromVideoToAds,setMuted:a().actions.external.setMuted},a().ads,{vsid:a().vsid}),V1(a(),Ue),We(()=>{var W,Ot;a().ui.isMobile.set(se()),(Ot=(W=f().callbacks)==null?void 0:W.onDomReady)==null||Ot.call(W)});let ee=(W=!1)=>{N(Pe,!0),W?a().actions.external.firstStart(U()):a().actions.internal.firstStart(U())},Te=()=>{if(Je.features.qualityDetailsSubMenuEnabled){let W=i0(a().videoId);if(W)switch(W.type){case"high_quality":a().actions.internal.setHighQualityEnabled(!0,W.appliesTo);break;case"traffic_saving":a().actions.internal.setTrafficSavingEnabled(!0,W.appliesTo);break;case"exact_quality":a().actions.internal.setQuality(W.quality);break}}else{o0(a().videoId),Qf()&&a().actions.internal.setTrafficSavingEnabled(!0);let Ot=zf(a().videoId);Ot&&a().actions.internal.setQuality(Ot)}};function ae(W){var Xt,pt,Mi;let Ot=d()||W;Ot&&a().initVideo({container:n(Rt),sources:Ot,failoverHosts:oe(),subtitles:C(),subtitlesForcedLanguage:T(),volumeMultiplier:Se()});let ni=rl.safeStorage.get(zd)==="true";ot.set(ni),Z()>0&&a().actions.external.seekTime(Z());let vt=se()?Je.volumeDefault:(pt=(Xt=I())!=null?Xt:Ou())!=null?pt:Je.volumeDefault,At=(Mi=L())!=null?Mi:Y1();if(a().actions.external.setVolume(vt),a().actions.external.setMuted(At),a().getAdmanWrapper().setInitialVolume(At?0:vt),Te(),Je.features.saveRate&&Ge()){let Wi=J1();Wi&&!r()&&a().actions.internal.setPlaybackRate(Wi)}if(Ce()){let Wi=t0();Wi&&a().actions.internal.setAutoplayNextEnabled(Wi)}a().ui.isAutoplay.set(A()),A()&&ee(),O()&&Je.features.preload&&a().actions.internal.preload()}let $t=W=>{if(window.ResizeObserver){let Ot,ni;Ee=new ResizeObserver((0,rl.throttleFn)(vt=>{let At=vt[0];if(At.contentBoxSize){let Xt=Array.isArray(At.contentBoxSize)?At.contentBoxSize[0]:At.contentBoxSize;Ot=Xt.inlineSize,ni=Xt.blockSize}else At.contentRect&&(Ot=At.contentRect.width,ni=At.contentRect.height);zt.set({width:Ot,height:ni})},300)),Ee.observe(W)}zt.set({width:W.clientWidth,height:W.clientHeight})},It=()=>{document.hidden&&a().actions.external.stop()};Ht(()=>{var ni,vt,At,Xt;oi&&document.addEventListener("visibilitychange",It),Je.debugLog&&a().actions.internal.startLogging(),$t(n(Rt));let W=je.map(pt=>pt.init({store:a(),microStores:Ue,config:f(),interactiveController:y(),uiConfig:v()})),Ot=()=>{oi&&document.removeEventListener("visibilitychange",It),Ee==null||Ee.disconnect(),W.forEach(pt=>pt.unsubscribe()),a().destroy()};return((ni=E())==null?void 0:ni.status)==="upcoming"?(a().actions.internal.setLiveWaitingStart(!0),Ot):((vt=E())==null?void 0:vt.status)==="waiting"?(a().actions.internal.setLiveWaitingRecover(!0),Ot):(((At=E())==null?void 0:At.status)==="finished"||((Xt=E())==null?void 0:Xt.status)==="postlive")&&!(d()&&(0,nd.areValidLiveRecordSources)(d()))?(a().actions.internal.setLiveWaitingRecord(!0),Ot):(ae(),Ot)});function ut(){n(Pe)?a().actions.external.play():ee(!0)}function Tt(){a().actions.external.pause()}function he(W){a().actions.external.setMuted(W)}function lt(){a().actions.external.toggleSubtitle()}function st(W,Ot){a().actions.external.changeSubtitle(W,Ot)}function dt(W){a().actions.external.changeAudioStream(W)}function ri(){var W;(W=a().webApi.slotsApi)!=null&&W.haveSlots()&&a().actions.external.hideControls()}function ei(){var W;(W=a().webApi.slotsApi)!=null&&W.haveSlots()&&a().actions.external.showControls()}function fi(W){se()||W>=0&&W<=1&&a().actions.external.setVolume(W)}function Ei(W){a().actions.internal.seekTime(W,E_.SeekAction.UNKNOWN)}function uo(W){a().actions.external.seekEpisodeStartTime(W)}function Dt(){a().actions.external.returnFocusToEpisodes()}function ci(W){a().actions.external.setPlaybackRate(W)}function xi(W){a().actions.external.setAutoQualityLimits(W)}function yt(){a().actions.external.setQuality("auto")}function Ut(W){a().actions.external.setTrafficSavingEnabled(W)}function zi(W){a().actions.external.setHighQualityEnabled(W)}let Pi=wp(Je.view),si=f().playerView==="preview",Mt=a().state.availableSubtitlesList$;if(Je.features.initSubtitles){let W=!1;We(()=>{var Ot;if(!W&&s().length){W=!0;let ni;if(Je.features.userVideoPrefs&&a().videoId){let At=Hu(Je.userSalt,String(a().videoId));At!=null&&At.subtitleTrackId&&(ni=s().find(Xt=>Xt.value===At.subtitleTrackId))}let vt=(Ot=T())!=null?Ot:Gf();vt&&(ni=s().find(At=>At.language===vt)),a().actions.internal.setSubtitle(ni)}})}let Ze=a().ui.isPreviewTrackHorizontallyAligned;var wi=_w();let Eo;var tn=_(wi);{var vn=W=>{gg(W,{get store(){return a()},get uiConfig(){return Je},get thumbUrl(){return x()},get interactiveContainer(){return w()},get live(){return E()},get autoplay(){return A()},get canRewindLive(){return B()},get showAds(){return U()},get adsSlotId(){return X()},get adsParams(){return de()},get adsAutoplayParam(){return K()},get duration(){return ue()},get logoClickable(){return J()},get logoHidden(){return ge()},get logoTargetUrl(){return Ft},get nextButtonActive(){return Le()},get prevButtonActive(){return we()},get endScreenVideoTitle(){return te()},get endScreenVideoThumb(){return De()},get isOneVideoPlaylist(){return fe()},get supportLink(){return k()},get shadowRootContainer(){return Qe()},get outerContainerRef(){return Ve()},get fullScreenTarget(){return q()},get showMiniTimer(){return Fe()},get playerStarted(){return n(Pe)},get seekToInteractive(){return _e()},get playPrevChapter(){return ie()},firstStart:ee,seekTime:Ei,get showEndScreen(){return Be()},get showAutoplayNext(){return Ce()},get showNextPrevButtons(){return ce()},get adsExternalApi(){return e.adsExternalApi},get videoContainer(){return n(Rt)},set videoContainer(Ot){N(Rt,Ot,!0)}})},kt=W=>{var Ot=He(),ni=ve(Ot);{var vt=Xt=>{hg(Xt,{get thumbUrl(){return x()},get outsideDuration(){return ue()},get canRewindLive(){return B()},get videoContainer(){return n(Rt)},set videoContainer(pt){N(Rt,pt,!0)}})},At=Xt=>{vg(Xt,{get store(){return a()},get uiConfig(){return Je},get title(){return p()},get thumbUrl(){return x()},get interactiveContainer(){return w()},get live(){return E()},get autoplay(){return A()},get canRewindLive(){return B()},get showAds(){return U()},get adsSlotId(){return X()},get adsParams(){return de()},get adsAutoplayParam(){return K()},get duration(){return ue()},get logoClickable(){return J()},get logoHidden(){return ge()},get logoTargetUrl(){return Ft},get nextButtonActive(){return Le()},get prevButtonActive(){return we()},get endScreenVideoTitle(){return te()},get endScreenVideoThumb(){return De()},get isOneVideoPlaylist(){return fe()},get supportLink(){return k()},get shadowRootContainer(){return Qe()},get outerContainerRef(){return Ve()},get fullScreenTarget(){return q()},get showMiniTimer(){return Fe()},get playerStarted(){return n(Pe)},get seekToInteractive(){return _e()},get playPrevChapter(){return ie()},firstStart:ee,get showEndScreen(){return Be()},get showAutoplayNext(){return Ce()},get showNextPrevButtons(){return ce()},get adsExternalApi(){return e.adsExternalApi},get videoContainer(){return n(Rt)},set videoContainer(pt){N(Rt,pt,!0)},get keyboardControls(){return Ye()},set keyboardControls(pt){Ye(pt)}})};R(ni,Xt=>{si?Xt(vt):Xt(At,!1)})}$(W,Ot)};R(tn,W=>{se()?W(vn):W(kt,!1)})}g(wi),D(W=>{Eo=re(wi,1,"vk-vp-root svelte-3c0y7j",null,Eo,W),et(wi,Pi)},[()=>({"root--miui-browser":nd.clientChecker.device.isMobile&&nd.clientChecker.browser.isMiuiBrowser,"visible-outside":si,"preview-track-horizontally-alinged":l()})]),$(t,wi);var Wt=F({initVideo:ae,play:ut,pause:Tt,setMuted:he,toggleSubtitle:lt,changeSubtitle:st,changeAudioStream:dt,hideControls:ri,showControls:ei,setVolume:fi,seekTime:Ei,seekEpisodeStartTime:uo,returnFocusToEpisodes:Dt,setPlaybackRate:ci,setAutoQualityLimits:xi,setAutoQuality:yt,toggleTrafficSaving:Ut,toggleHighQuality:zi,get sources(){return d()},set sources(W){d(W)},get store(){return a()},set store(W){a(W)},get microStoresRoot(){return u()},set microStoresRoot(W){u(W)},get videoConfig(){return f()},set videoConfig(W){f(W)},get uiConfig(){return v()},set uiConfig(W){v(W)},get title(){return p()},set title(W){p(W)},get thumbUrl(){return x()},set thumbUrl(W){x(W)},get interactiveContainer(){return w()},set interactiveContainer(W){w(W)},get interactiveController(){return y()},set interactiveController(W){y(W)},get subtitles(){return C()},set subtitles(W){C(W)},get subtitlesForcedLanguage(){return T()},set subtitlesForcedLanguage(W){T(W)},get live(){return E()},set live(W){E(W)},get preload(){return O()},set preload(W){O(W)},get autoplay(){return A()},set autoplay(W){A(W)},get volume(){return I()},set volume(W){I(W)},get muted(){return L()},set muted(W){L(W)},get fromTime(){return Z()},set fromTime(W){Z(W)},get canRewindLive(){return B()},set canRewindLive(W){B(W)},get showAds(){return U()},set showAds(W){U(W)},get adsSlotId(){return X()},set adsSlotId(W){X(W)},get adsParams(){return de()},set adsParams(W){de(W)},get adsAutoplayParam(){return K()},set adsAutoplayParam(W){K(W)},get duration(){return ue()},set duration(W){ue(W)},get logoClickable(){return J()},set logoClickable(W){J(W)},get logoHidden(){return ge()},set logoHidden(W){ge(W)},get isMobile(){return se()},set isMobile(W){se(W)},get showNextPrevButtons(){return ce()},set showNextPrevButtons(W){ce(W)},get nextButtonActive(){return Le()},set nextButtonActive(W){Le(W)},get prevButtonActive(){return we()},set prevButtonActive(W){we(W)},get endScreenVideoTitle(){return te()},set endScreenVideoTitle(W){te(W)},get endScreenVideoThumb(){return De()},set endScreenVideoThumb(W){De(W)},get isOneVideoPlaylist(){return fe()},set isOneVideoPlaylist(W){fe(W)},get supportLink(){return k()},set supportLink(W){k(W)},get shadowRootContainer(){return Qe()},set shadowRootContainer(W){Qe(W)},get outerContainerRef(){return Ve()},set outerContainerRef(W){Ve(W)},get fullScreenTarget(){return q()},set fullScreenTarget(W){q(W)},get failoverHosts(){return oe()},set failoverHosts(W){oe(W)},get showMiniTimer(){return Fe()},set showMiniTimer(W){Fe(W)},get saveRate(){return Ge()},set saveRate(W){Ge(W)},get showAutoplayNext(){return Ce()},set showAutoplayNext(W){Ce(W)},get seekToInteractive(){return _e()},set seekToInteractive(W){_e(W)},get playPrevChapter(){return ie()},set playPrevChapter(W){ie(W)},get volumeMultiplier(){return Se()},set volumeMultiplier(W){Se(W)},get showEndScreen(){return Be()},set showEndScreen(W){Be(W)},get keyboardControls(){return Ye()},set keyboardControls(W){Ye(W)}});return o(),Wt}var $w=ke('<svg><!><path fill="currentColor" d="M38.245 6c3.566 0 4.859.371 6.162 1.069a7.27 7.27 0 0 1 3.025 3.024c.697 1.303 1.068 2.597 1.068 6.163v23.489c0 3.566-.371 4.859-1.069 6.162a7.27 7.27 0 0 1-3.024 3.025C43.104 49.629 41.811 50 38.245 50h-19.49c-3.565 0-4.859-.371-6.162-1.069a7.27 7.27 0 0 1-3.024-3.024C8.87 44.604 8.5 43.311 8.5 39.745v-23.49c0-3.565.371-4.859 1.069-6.162a7.27 7.27 0 0 1 3.024-3.024C13.896 6.37 15.19 6 18.756 6zm.314 3H18.756c-2.799 0-3.761.186-4.749.714a4.27 4.27 0 0 0-1.793 1.793c-.508.95-.7 1.876-.713 4.434L11.5 39.744c0 2.799.186 3.761.714 4.749a4.27 4.27 0 0 0 1.793 1.793c.988.528 1.95.714 4.749.714h19.489c2.798 0 3.76-.186 4.748-.714a4.27 4.27 0 0 0 1.793-1.793c.528-.988.714-1.95.714-4.748v-23.49c0-2.798-.186-3.76-.714-4.748a4.27 4.27 0 0 0-1.793-1.793c-.95-.508-1.876-.7-4.434-.713zM19.22 38c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134z"></path></svg>');function bg(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=$w();Me(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"60",fill:"none","aria-hidden":"true","data-testid":"stub-icon",role:"img"},i));var r=_(o);ye(r,()=>{var s;return(s=e.children)!=null?s:pe}),Ie(),g(o),$(t,o)}function $g(t,e){let i=h(e,"isWhite",3,!1),o=m(()=>i()?"color: #fff;":"color: #909499;");bg(t,{get style(){return n(o)}})}var yw=M('<div class="title svelte-1y9fytq"> </div>'),xw=M('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),ww={hash:"svelte-1y9fytq",code:".playerStub.svelte-1y9fytq {width:100%;height:100%;background-color:#222;display:flex;justify-content:center;align-items:center;position:relative;background-position:center;background-size:cover;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;}.title.svelte-1y9fytq {position:absolute;left:0;top:0;width:100%;font-size:15px;color:#fff;box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}"};function yg(t,e){z(t,ww);var i=xw(),o=_(i);{var r=d=>{var a=yw(),u=_(a,!0);g(a),D(()=>me(u,e.title)),$(d,a)};R(o,d=>{e.title&&d(r)})}var s=P(o,2);{var l=d=>{let a=m(()=>!!e.thumbUrl);$g(d,{get isWhite(){return n(a)}})};R(s,d=>{(!e.title||!e.thumbUrl)&&d(l)})}g(i),D(()=>et(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),$(t,i)}var Sw=M('<div class="playerError svelte-m5iv29"><!></div>'),Cw={hash:"svelte-m5iv29",code:".playerError.svelte-m5iv29 {width:100%;height:100%;background-color:#222;display:flex;justify-content:center;align-items:center;position:relative;background-position:center;background-size:cover;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;}"};function xg(t){z(t,Cw);var e=Sw(),i=_(e);Ja(i,{}),g(e),$(t,e)}var Rp=require("@vkontakte/videoplayer-shared/es2015"),Ui=require("@vkontakte/videoplayer-shared/es2015"),jc=require("@vkontakte/videoplayer-core/es2015"),cd=require("@vkontakte/videoplayer-statistics/es2015");var Cp=require("@vkontakte/videoplayer-shared/es2015"),Sp=class{constructor(){this.subscription=new Cp.Subscription,this.logger=new Cp.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,s]of e)try{(o=(i=navigator.mediaSession).setActionHandler)==null||o.call(i,r,s)}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 s,l;let o=be(e.state.currentPlaybackRate$),r=be(e.state.duration$);if(!(!isFinite(i)||!isFinite(r)))try{(l=(s=navigator.mediaSession).setPositionState)==null||l.call(s,{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 sd=require("@vkontakte/videoplayer-shared/es2015");var Tw=ke('<svg><!><g fill="var(--btn-color, #fff)"><path d="m30.744 4 .744.005c2.981.046 4.526.385 6.127 1.24a8.77 8.77 0 0 1 3.475 3.347l.174.312.15.292c.772 1.553 1.066 3.18 1.085 6.251v9.045a1.5 1.5 0 0 1-3 .016l-.008-9.651c-.04-2.032-.228-3.12-.627-4.035l-.126-.27-.13-.252A5.77 5.77 0 0 0 36.2 7.891c-1.187-.635-2.339-.873-5.115-.89L22.255 7c-2.737 0-4.003.2-5.071.698l-.133.064-.251.13a5.77 5.77 0 0 0-2.409 2.408c-.635 1.187-.873 2.339-.89 5.114l-.001 20.83c0 2.738.2 4.004.698 5.072l.064.133.13.251a5.77 5.77 0 0 0 2.408 2.409c1.1.588 2.134.825 4.438.88l.323.006 3.695.005H26a1.5 1.5 0 0 1 0 3h-.756l-3.718-.005c-2.989-.047-4.526-.377-6.14-1.24a8.77 8.77 0 0 1-3.476-3.347l-.174-.312-.15-.292c-.731-1.472-1.036-3.016-1.08-5.803l-.006-.756v-20.49l.005-.743c.046-2.981.385-4.526 1.24-6.127a8.77 8.77 0 0 1 3.347-3.475l.312-.174.292-.15c1.472-.731 3.016-1.036 5.803-1.08L22.256 4z"></path><path d="M30.5 33.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C32.78 29 33.62 29 35.3 29h6.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311c.327.642.327 1.482.327 3.162v13.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C44.22 52 43.38 52 41.7 52h-6.4c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C30.5 49.72 30.5 48.88 30.5 47.2z"></path></g></svg>');function wg(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Tw();Me(o,()=>Q({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"56",fill:"none","aria-label":"dummy-image","data-testid":"pip-dummy-icon",role:"img"},i));var r=_(o);ye(r,()=>{var s;return(s=e.children)!=null?s:pe}),Ie(),g(o),$(t,o)}var Ew=M('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),Iw={hash:"svelte-1pbsod4",code:".player-pip-dummy.svelte-1pbsod4 {width:100%;height:100%;background-color:#19191A;display:flex;flex-direction:column;justify-content:center;align-items:center;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;}.player-pip-dummy.is-pip-api.svelte-1pbsod4 {position:relative;}.dummy-image.svelte-1pbsod4 svg {transform:scale(1.07143);}.dummy-image.desktop.svelte-1pbsod4 {transform:scale(1.07143) rotate(-90deg) rotateY(180deg);}.title.svelte-1pbsod4 {font-size:16px;color:#fff;padding:18px 20px 10px;text-align:center;}"};function Sg(t,e){H(e,!0),z(t,Iw);let[i,o]=Ne(),r=()=>S(u,"$interfaceLanguage$",i),s=()=>S(f,"$isMobile$",i),l=$e(),d=Nt(),a=!!l.webApi.pictureInPictureApi,u=l.interfaceLanguage$,f=l.ui.isMobile,v=l.ui.t,p=m(()=>r()&&v("pip_dummy_title")),x=wp(d.view);var w=Ew();let y;var C=_(w);let T;var E=_(C);wg(E,{}),g(C);var O=P(C,2),A=_(O,!0);g(O),g(w),D((I,L)=>{y=re(w,1,"player-pip-dummy svelte-1pbsod4",null,y,I),et(w,x),T=re(C,1,"dummy-image svelte-1pbsod4",null,T,L),me(A,n(p))},[()=>({"is-pip-api":a}),()=>({desktop:!s()})]),$(t,w),F(),o()}var kw=Object.defineProperty,Aw=(t,e,i)=>e in t?kw(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,rd=(t,e,i)=>Aw(t,typeof e!="symbol"?e+"":e,i),Cg=(t,e,i)=>new Promise((o,r)=>{var s=a=>{try{d(i.next(a))}catch(u){r(u)}},l=a=>{try{d(i.throw(a))}catch(u){r(u)}},d=a=>a.done?o(a.value):Promise.resolve(a.value).then(s,l);d((i=i.apply(t,e)).next())}),Pw=460,Mw=280,Bc=class{constructor({enabled:e=!0}={enabled:!0}){rd(this,"playerDomElement"),rd(this,"playerParentShadowRoot"),rd(this,"playerDummyElement"),rd(this,"svelteContext"),rd(this,"pipWindow"),rd(this,"info",{isActive$:new sd.ValueSubject(!1),isEnabled$:new sd.ValueSubject(!1),type:1}),this.info.isEnabled$=new sd.ValueSubject(e)}isSupported(){let{isEmbed:e}=(0,sd.detectEmbed)();return"documentPictureInPicture"in window&&!e}isActive(){return this.info.isActive$.getValue()}setPlayerDomElement(e,i){this.playerDomElement=e,this.playerParentShadowRoot=i}setContext(e){this.svelteContext=e}request(){return Cg(this,null,function*(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=yield documentPictureInPicture.requestWindow({width:Pw,height:Mw,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let o=[...this.playerParentShadowRoot.styleSheets].map(a=>[...a.cssRules].map(u=>u.cssText).join(" ")).filter(Boolean).join(`
408
+ `),r=document.createElement("style");r.textContent=o;let s=this.createStretchedContainer(),l=s.attachShadow({mode:"open"});l.append(r),l.append(this.playerDomElement);let d={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=Yr(Sg,d),(e=this.pipWindow)==null||e.document.body.append(s),this.info.isActive$.next(!0),(i=this.pipWindow)==null||i.addEventListener("unload",a=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(Ia(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1),this.pipWindow=void 0)})})}exit(){return Cg(this,null,function*(){return new Promise(e=>{var i;this.pipWindow&&((i=documentPictureInPicture.window)==null||i.close()),e()})})}dispose(){return Cg(this,null,function*(){yield this.exit()})}setEnabled(e){this.info.isEnabled$.next(e)}createStretchedContainer(){let e=document.createElement("div");return e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",e.style.height="100%",e}};function I_(t){return t instanceof Bc}var Tp=class{static getLatestSupportedVersion(e){let i=new Na(e),o=new Bc(e);if(o.isSupported())return o;if(i.isSupported())return i}};function Hc(t,e){var r,s;let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let l of i)o[l]=(s=(r=e[l])!=null?r:t[l])!=null?s:void 0;return o}var k_="Inner error. Unexpectedly root annotation container null reference exception",A_="Annotation with such name already exists",P_="Annotation with such name does not exist";var ad=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var ld=require("@vkontakte/videoplayer-shared/es2015"),Lw="1",Vw=100,Ep=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new ld.Subscription}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=(0,ld.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"},Vw);this.subscriptions.add((0,ld.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 ad(k_);if(this.annotations.has(e))throw new ad(A_);i.style.zIndex=(o=i.style.zIndex)!=null?o:Lw,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 ad(P_);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,s=e.offsetLeft,l=e.offsetWidth,d=e.offsetHeight;return r<0||s<0||s+l>i||r+d>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};var sl=require("@vkontakte/videoplayer-shared/es2015"),fn=class{init({store:e,microStores:i,interactiveController:o,config:r}){return(0,sl.assertNonNullable)(e),(0,sl.assertNonNullable)(i),(0,sl.assertNonNullable)(r),r.interactiveData&&(0,sl.assertNonNullable)(o),this.subscription=new sl.Subscription,this.subscription}};var Fc=class extends fn{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$=Gt(Q({},le(null)),{toggle:()=>this.state$.update(i=>!i)})}init(i){let o=super.init(i),{isInteractiveExpectation$:r}=i.store.state;return o.add(r.subscribe(s=>{this.state$.set(s?!0:null)})),o}};var Uc=class extends fn{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$=Gt(Q({},le(null)),{toggle:()=>this.state$.update(i=>!i)})}init(i){let o=super.init(i),{microStores:r,store:s}=i,{fakeIsPlaying$:l}=r,{isInteractiveExpectation$:d,isPlaying$:a}=s.state,{controlsVisible:u,isMobile:f}=s.ui,v=be(f),p=()=>v&&be(u);return o.add(u.subscribe(x=>{if(!v)return;let w=be(l);be(a)?this.state$.set(x):w!==null&&this.state$.set(!w||x)})),o.add(a.subscribe(x=>{this.state$.set(!x||p())})),o.add(l.subscribe(x=>{if(x===null)return;let w=be(d);if(p()){this.state$.set(!0);return}w&&this.state$.set(!x)})),o}};var zc=class extends fn{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=le("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:r}=i;return o.add(r.state.interactiveEpisodes$.subscribe(s=>{s.length&&(s.every(l=>l.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};var M_=require("@vkontakte/videoplayer-shared/es2015");var Tg=le(!1),Ip=null,Wc=class extends fn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$=Gt(Q({},Tg),{set:(i,o=!1)=>{i!==be(Tg)&&(this.clearTimeout(),Tg.set(i),!i&&Ip&&(Ip=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()})}init(i){let o=super.init(i),{store:r,config:s}=i,{isInteractiveTime$:l,isPlaying$:d}=r.state,a=r.ui.controlsVisible,{interactiveTimeIndicator:u}=r.ui.controls;o.add(a.subscribe(v=>{be(l)&&v&&this.state$.set(!1)}));let f=(s==null?void 0:s.interactiveData)||{tooltipHelpHintActive:!1};return o.add((0,M_.combine)({isPlaying$:d,isInteractiveTime$:l,interactiveTimeIndicator:u}).subscribe(({isPlaying$:v,isInteractiveTime$:p,interactiveTimeIndicator:x})=>{var w,y;if(!(!v||!(x!=null&&x.isDisplayed))){if(!p)return this.state$.set(!1);f.tooltipHelpHintActive&&Ip===null&&(Ip=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),(y=(w=r.callbacks)==null?void 0:w.onInteractiveTimeIndicatorHintDeactivated)==null||y.call(w))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};var kp=require("@vkontakte/videoplayer-shared/es2015");var Kc=class extends fn{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$=Gt(Q({},le(null)),{toggle:kp.noop});this.checkIfShouldHide=i=>Ms(i,"s")}init(i){let o=super.init(i),{store:r,interactiveController:s}=i,l=r.ui.currentGridType$,d=r.getLogger().createComponentLog("GraphIsOpened microStore");return this.state$.toggle=()=>xt(this,null,function*(){if(this.checkIfShouldHide(be(l)))return;let a=be(this.state$),{isEnded$:u,playbackState$:f}=r.state,{disabledControls$:v}=r.ui.controls,p=be(u),x=be(f);if(a)try{yield s==null?void 0:s.toggleGraphView(!1),this.state$.set(!1),v.remove(Of),!p&&this.graphMadePause&&r.actions.internal.play()}catch(w){d({message:"Cant hide graph"})}else{this.graphMadePause=x==="playing";try{yield s==null?void 0:s.toggleGraphView(!0),this.state$.set(!0),v.add(Of),!p&&this.graphMadePause&&r.actions.internal.pause()}catch(w){d({message:"Cant show graph"})}}}),o.add((0,kp.combine)({graphIsOpened:this.state$,currentGridType:l}).subscribe(f=>xt(this,[f],function*({graphIsOpened:a,currentGridType:u}){if(this.checkIfShouldHide(u)&&a)try{yield s==null?void 0:s.toggleGraphView(!1),this.state$.set(!1)}catch(p){d({message:"Cant hide graph"})}}))),o}};var Eg=require("@vkontakte/videoplayer-shared/es2015"),qc=class extends fn{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:le(!1),isEnabled$:le(!1),type$:le(void 0)}}init(i){let o=super.init(i),{store:r}=i,{info:{isActive$:s,isEnabled$:l,type:d}}=r.webApi.pictureInPictureApi||{info:{isActive$:new Eg.ValueSubject(!1),isEnabled$:new Eg.ValueSubject(!1)}};return o.add(s.subscribe(a=>{this.state$.isActive$.set(a)})),o.add(l.subscribe(a=>{this.state$.isEnabled$.set(a)})),this.state$.type$.set(d),o}};var Pp=require("@vkontakte/videoplayer-shared/es2015");var Ap=require("@vkontakte/videoplayer-shared/es2015");var L_=({maxShowCount:t,timeout:e})=>{let i=[t!==0?Rw({maxCount:t}):void 0,e!==0?Ow({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(r=>r.notificationShowed(o)),canShowNotification:o=>i.every(r=>r.canShowNotification(o))}},Rw=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,r;e[i]=((o=e[i])!=null?o:0)+1,Ap.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}}},Ow=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(Ap.safeStorage.get(e)||"{}")}catch(s){return{}}},o=s=>Ap.safeStorage.set(e,JSON.stringify(s)),r=s=>{let l=i();delete l[s],o(l)};return{notificationShowed:s=>{o(Gt(Q({},i()),{[s]:{timeout:t,launchTime:Date.now()}}))},canShowNotification:s=>{let l=i()[s];if(l){let d=Date.now()-l.launchTime>t;return d&&r(s),d}else return!0}}};var Qc=class extends fn{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:le({}),showNotification:i=>{this.state$.notificationsToShow$.update(o=>(o[i]=!0,o)),this.notificationManager.notificationShowed(i)},closeNotification:i=>{this.state$.notificationsToShow$.update(o=>(delete o[i],o))}}}init(i){let o=super.init(i),{store:r,uiConfig:{features:{maxCountShowSlowVideoNotification:s,timeoutShowSlowVideoNotification:l,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:a}}}=i;this.notificationManager=L_({maxShowCount:s,timeout:l});let u=r.getPlayer();return o.add(u.events.severeStallOccured$.pipe((0,Pp.filterChanged)(),(0,Pp.filter)(f=>f)).subscribe(()=>{d&&!u.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(a&&r.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var V_=()=>[Fc,Uc,zc,Wc,Kc,qc,Qc].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:Gt(Q({},e),{[o.stateName]:o.state$})}},{subscribers:[],stores:{}});var dd=require("@vkontakte/videoplayer-shared/es2015");var Mp=class{constructor(e){this.shadowRoot=e;this.lastFocusedNode=null;this.init=()=>{this.shadowRoot.addEventListener("focusin",this.handleFocusChange)};this.handleFocusChange=()=>{this.lastFocusedNode=this.shadowRoot.activeElement};this.restoreFocus=()=>{var e;(e=this.lastFocusedNode)==null||e.focus()};this.init()}destroy(){this.shadowRoot.removeEventListener("focusin",this.handleFocusChange)}};var Nw=M('<div class="root svelte-9ubj1t"><!></div>'),Dw={hash:"svelte-9ubj1t",code:".root.svelte-9ubj1t {position:absolute;display:flex;inset:0;align-items:center;justify-content:center;pointer-events:none;z-index:1;}"};function Ig(t,e){H(e,!0),z(t,Dw);let i=null,o=j(null);We(()=>(n(o)&&(i=window.setTimeout(()=>{N(o,null)},e.animationDuration)),()=>{i&&clearTimeout(i)}));function r(a){e.playbackStatusShow&&N(o,a?"prev":"next",!0)}var s=He(),l=ve(s);{var d=a=>{var u=He(),f=ve(u);Ts(f,()=>n(o),v=>{var p=Nw(),x=_(p);let w=m(()=>n(o)==="prev");Dc(x,{get duration(){return e.animationDuration},get Icon(){return $c},get isPrev(){return n(w)}}),g(p),$(v,p)}),$(a,u)};R(l,a=>{e.playbackStatusShow&&n(o)&&a(d)})}return $(t,s),F({startVideoChangedAnimation:r})}var Bw=Object.defineProperty,Hw=Object.defineProperties,Fw=Object.getOwnPropertyDescriptors,R_=Object.getOwnPropertySymbols,Uw=Object.prototype.hasOwnProperty,zw=Object.prototype.propertyIsEnumerable,Ag=(t,e,i)=>e in t?Bw(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Ds=(t,e)=>{for(var i in e||(e={}))Uw.call(e,i)&&Ag(t,i,e[i]);if(R_)for(var i of R_(e))zw.call(e,i)&&Ag(t,i,e[i]);return t},Ww=(t,e)=>Hw(t,Fw(e)),Jt=(t,e,i)=>Ag(t,typeof e!="symbol"?e+"":e,i),Lp=(t,e,i)=>new Promise((o,r)=>{var s=a=>{try{d(i.next(a))}catch(u){r(u)}},l=a=>{try{d(i.throw(a))}catch(u){r(u)}},d=a=>a.done?o(a.value):Promise.resolve(a.value).then(s,l);d((i=i.apply(t,e)).next())}),Kw={preload:!0,autoplay:!1,repeat:!1,loop:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:Ui.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:(0,jc.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},Qn=j(void 0),kg=li({animationDuration:0,playbackStatusShow:!1}),Vp=class extends HTMLElement{constructor(){super(),Jt(this,"svelteStubComponent"),Jt(this,"svelteRootComponent"),Jt(this,"sveltePersistentLayerComponent"),Jt(this,"svelteErrorComponent"),Jt(this,"store"),Jt(this,"microStoresRoot"),Jt(this,"statistics"),Jt(this,"sentry"),Jt(this,"_shadowRoot"),Jt(this,"playerContainer"),Jt(this,"rootContainer"),Jt(this,"shadowRootContainer"),Jt(this,"playerId"),Jt(this,"uiConfig"),Jt(this,"coreConfig"),Jt(this,"statisticsConfig"),Jt(this,"interactiveController"),Jt(this,"interactiveContainer"),Jt(this,"graphMadePause"),Jt(this,"currentPlayingVideoIndex",0),Jt(this,"needToRepeatPlaylist",!1),Jt(this,"videoConfig"),Jt(this,"pictureInPictureApi"),Jt(this,"mediaSessionApi"),Jt(this,"unsubscribePlayerPhaseSubscription"),Jt(this,"logger"),Jt(this,"log"),Jt(this,"subscription"),Jt(this,"interactiveSubscription"),Jt(this,"annotationsApi"),Jt(this,"slotsApi"),Jt(this,"focusManager"),Jt(this,"prevIsid"),Jt(this,"isInited",!1),Jt(this,"internalsExposure",null),Jt(this,"shadowDOMCallbacksDisabled",!1),Jt(this,"fatalError$",new Rp.ValueSubject(null)),Jt(this,"createOneStat",(e,i={})=>{var o,r,s,l;if(!this.videoConfig)return;let{albumId:d,statPlace:a,statUserSalt:u,statTrackCode:f,statVKAppId:v,refreshStatAuthToken:p,autoplay:x,isMobile:w,isTouch:y,refDomain:C,deviceId:T,interactiveData:E}=Hc(this.videoConfig,i),O=(o=E==null?void 0:E.projectInfo)==null?void 0:o.pid,A=(s=(r=this.interactiveController)==null?void 0:r.state.isReplay$.getValue())!=null?s:!1;A&&(this.prevIsid=void 0);let{unitedVideoId:I,isClip:L=!1}=e;if(this.uiConfig.features.statistics&&I)try{return new cd.OneStat(Ds({movieId:I,albumId:d,place:a,trackCode:f,vkAppId:v,autoplay:(l=x&&!this.interactiveController)!=null?l:!1,mobile:y!=null?y:w,clip:L,refDomain:C,deviceId:T,isPreviewPlayerView:this.videoConfig.playerView==="preview"},O&&(!this.isInited||A)&&{projectId:Number(O)}),Ds({refreshAuthToken:p,userSalt:u,config:this.statisticsConfig},this.interactiveController&&{useIsid:!0,isid:this.prevIsid}))}catch(B){console.error(B),this.log({message:B.message})}}),dd.devNull.create("ui"),this.logger=new Ui.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new Ui.Subscription,this.interactiveSubscription=new Ui.Subscription,this.graphMadePause=!1,this.fatalError$.subscribe(e=>{this.unmountComponent(this.svelteErrorComponent),e&&(this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.svelteErrorComponent=Yr(xg,{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,s=li({title:o,thumbUrl:r}),l={target:this.playerContainer,props:s};this.svelteStubComponent=Yr(yg,l),this.sveltePersistentLayerComponent=Yr(Ig,{target:this.playerContainer,props:kg})}updatePersistentLayerProps(){if(!this.uiConfig)return;let{playbackStatusNextVideoAnimationDuration:e,features:{playbackStatusShow:i,playbackStatusNextVideoShow:o}}=this.uiConfig;kg.animationDuration=e,kg.playbackStatusShow=i&&o}disconnectedCallback(){var e,i,o,r,s,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(),(s=this.unsubscribePlayerPhaseSubscription)==null||s.call(this),(l=this.interactiveController)==null||l.destroy(),this.interactiveSubscription.unsubscribe(),(d=this.internalsExposure)==null||d.destroy(),dd.devNull.destroy("ui"))}initPlayerRootContainers(){this.rootContainer=document.createElement("div"),this.rootContainer.style.position="relative",this.rootContainer.className="root-container",this.rootContainer.style.width="100%",this.rootContainer.style.height="100%",this.rootContainer.style.minHeight="206px",this.shadowRootContainer=document.createElement("div"),this.shadowRootContainer.style.position="absolute",this.shadowRootContainer.className="shadow-root-container",this.shadowRootContainer.style.width="100%",this.shadowRootContainer.style.height="100%",this._shadowRoot=this.shadowRootContainer.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(this.shadowRootContainer),this.append(this.rootContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1&&this.videoConfig.showNextPrevButtons:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(e){var i;let o=(i=this.store)==null?void 0:i.ui.controls.disabledControls$;return(o==null?void 0:o.includes(e))||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let e=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:e.title,nextVideoThumb:e.thumbUrl}}createThinOneStat(e,i={}){if(!this.videoConfig)return;let{deviceId:o,preload:r,refreshStatAuthToken:s}=Hc(this.videoConfig,i),{unitedVideoId:l}=e;if(this.uiConfig.features.thinStatistics&&l)return new cd.ThinOneStat.ThinOneStat({deviceId:o,movieId:l,preload:r,isPreviewPlayerView:this.videoConfig.playerView==="preview"},{config:this.statisticsConfig,refreshAuthToken:s})}createPlayer(e,i={},o){var r,s,l,d,a,u,f,v,p,x;if(!this.videoConfig)return;let{albumId:w,statPlace:y,statAuthToken:C,preload:T,autoplay:E,volume:O,muted:A,fromTime:I,canRewindLive:L,supportLink:Z,showAds:B,adsSlotId:U,adsParams:X={},adsAutoplayParam:de,interfaceLanguage:K,isCyrillicRelatedInterface:ue,logoClickable:J,logoHidden:ge,isMobile:se,isTouch:ce,isAudioDisabled:Le,isLiveCatchUpMode:we,fullScreenTarget:te,failoverHosts:De,canDownload:fe,callbacks:k,interactiveData:Qe,showThumbTimer:Ve,additionalButtons:q=[],additionalSettingsMenuItems:oe=[],additionalContextMenuItems:Fe=[],repeat:Ge,loop:_e,saveRate:ie,volumeMultiplier:Se,showEndScreen:Ce,showAutoplayNext:Be,mediascopePixels:Ye}=Hc(this.videoConfig,i),{sources:je,title:Ue,thumbUrl:Je,unitedVideoId:Ft,isClip:ot=!1,duration:zt,adsParams:Zt={},videoEpisodes:Et,previewThumbsData:oi,subtitles:Rt,subtitlesForcedLanguage:Ee,live:Pe,adsExternalApi:ee}=e;if(!je&&!Pe){let ci=new Error("empty sources and live");this.fatalError$.next(ci),(r=k.onCrashed)==null||r.call(k,ci.message);return}let Te=Ds(Ds({},X),Zt),ae=this.getNextVideoInfo(),$t={sources:je,title:Ue,thumbUrl:Je,subtitles:Rt,subtitlesForcedLanguage:Ee,unitedVideoId:Ft,isClip:ot,live:Pe,albumId:w,statPlace:y,autoplay:E,muted:A,volume:O,fromTime:I,canRewindLive:L,showAds:B,adsSlotId:U,adsParams:Te,adsAutoplayParam:de,duration:zt,logoClickable:J,logoHidden:ge,isTouch:ce!=null?ce:se,repeat:Ge,loop:_e,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:ae.nextVideoTitle,endScreenVideoThumb:ae.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},It={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi};this.log({message:`create player, props: ${JSON.stringify($t)}`});let ut=(s=this.interactiveController)==null?void 0:s.state.statistics$.getValue(),Tt=(ut==null?void 0:ut.oneStat)||this.createOneStat(e,i),he=this.createThinOneStat(e,i),lt;Ye&&(lt=new cd.MediascopePixel({pixels:Ye})),(Tt||he)&&(this.statistics=new dp(Tt,he,lt,ut==null?void 0:ut.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Oa(this.uiConfig.sentry,{version:La,env:Lu},{movieId:Ft,albumId:w,place:y,autoplay:(l=E&&!this.interactiveController)!=null?l:!1,mobile:ce!=null?ce:se,clip:ot}),this.interactiveController&&((u=this.prevIsid)!=null||(this.prevIsid=(a=(d=this.statistics)==null?void 0:d.oneStat)==null?void 0:a.isid$.getValue())),this.sentry=Ds(Ds({},this.sentry),Oa.getInstance());let dt=!!Qe,ri=[],ei="tooltip_interactive_go_back_disabled_first";if(dt&&this.interactiveController){let ci=this.interactiveController.state.isInitialChapter$.getValue(),xi=this.interactiveController.getHistoryState();ci&&ri.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||ri.push("SEEK_TO_INTERACTIVE_BUTTON"),xi.hasPrevChapter$.getValue()||(ri.push("PLAY_PREV_CHAPTER_BUTTON"),ci||(xi.isGoBackLimited$.getValue()?ei="tooltip_interactive_go_back_disabled_limit":ei="tooltip_interactive_go_back_disabled"))}let fi=()=>{var ci;this.isInited=!1,this.prevIsid=void 0;let xi=(o==null?void 0:o.info.isEnded$.getValue())&&((ci=this.interactiveController)==null?void 0:ci.state.isEndChapter$.getValue());k.onReplayInteractiveVideo&&!xi?k.onReplayInteractiveVideo():this.replayInteractiveVideo()},Ei=Ge&&this.videoConfig.videos.length===1;this.store=q0({player:o,interfaceLanguage:K,isCyrillicRelatedInterface:ue,videoId:Ft,isClip:ot,isLiveCatchUpMode:we,isAudioDisabled:Le,statAuthToken:C,callbacks:k,webApi:It,videoEpisodes:Et,previewThumbsData:oi,canDownload:fe,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:ri,isInteractive:dt,saveRate:ie,interactiveRanges$:(f=this.interactiveController)==null?void 0:f.state.interactiveRanges$,isInteractiveTime$:(v=this.interactiveController)==null?void 0:v.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:fi,playPrevChapterDisabledTooltip:ei,hasInteractiveBranches:!!((x=(p=this.interactiveController)==null?void 0:p.getChapterBranches())!=null&&x.length),additionalButtons:this.uiConfig.features.additionalButtons?q:[],additionalSettingsMenuItems:oe!=null?oe:[],additionalContextMenuItems:Fe!=null?Fe:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),onVideoChanged:ci=>{var xi;return(xi=this.sveltePersistentLayerComponent)==null?void 0:xi.startVideoChangedAnimation(ci)},looped:this.uiConfig.features.useLoopSetting?_e:Ei,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView,playerId:this.playerId});let{stores:uo}=this.microStoresRoot=V_(),Dt=()=>{var ci,xi,yt,Ut,zi,Pi;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(Mt=>{var Ze;return(Ze=k==null?void 0:k.onCurrentFormatChanged)==null?void 0:Ze.call(k,Mt)})),this.subscription.add(uo.interactiveControlsOpacity$.subscribe(Mt=>{var Ze;Mt!==null&&((Ze=this==null?void 0:this.interactiveController)==null||Ze.setDisabledControls(Mt))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(Mt=>{var Ze;return(Ze=k==null?void 0:k.onThroughputEstimationChanged)==null?void 0:Ze.call(k,Mt)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(Mt=>{var Ze;return(Ze=k==null?void 0:k.onTrafficSavingEnabledChanged)==null?void 0:Ze.call(k,Mt)})),this.subscription.add(this.store.state.highQualityEnabled$.subscribe(Mt=>{var Ze;return(Ze=k==null?void 0:k.onHighQualityEnabledChanged)==null?void 0:Ze.call(k,Mt)})),this.subscription.add(this.store.state.isAutoQualityEnabled$.subscribe(Mt=>{var Ze;return(Ze=k==null?void 0:k.onAutoQualityEnabledChanged)==null?void 0:Ze.call(k,!!Mt)})),this.subscription.add(new Ui.Observable(Mt=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(Ze=>Mt.next(Ze)))}).pipe((0,Ui.skip)(1)).subscribe(Mt=>{var Ze;return(Ze=k==null?void 0:k.onCurrentPlaybackRateChanged)==null?void 0:Ze.call(k,Mt)})),this.subscription.add(this.store.state.volume$.subscribe(Mt=>{var Ze;return(Ze=k==null?void 0:k.onVolumeChange)==null?void 0:Ze.call(k,Mt)})),this.subscription.add(this.store.state.muted$.subscribe(Mt=>{var Ze,wi,Eo,tn;if(Mt)(Ze=k==null?void 0:k.onMute)==null||Ze.call(k);else{let vn=(Eo=((wi=this.store)==null?void 0:wi.state.volume$)&&be(this.store.state.volume$))!=null?Eo:0;(tn=k==null?void 0:k.onUnmute)==null||tn.call(k,vn)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(Mt=>{var Ze;return(Ze=k==null?void 0:k.onVideoBitrateChanged)==null?void 0:Ze.call(k,Mt)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(Mt=>{var Ze;let wi=(Ze=this.store)==null?void 0:Ze.ui.controls.disabledControls$;wi&&(Mt&&!wi.includes(Wd)&&wi.add(Wd),Mt||wi.remove(Wd))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(Mt=>Lp(this,null,function*(){var Ze;if(!jc.clientChecker.browser.isSamsungBrowser||!Mt||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&(yield this.replayInteractiveChapter((Ze=this.videoConfig)==null?void 0:Ze.callbacks.onExternalFullscreenExit))}))),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(Mt=>{var Ze;return(Ze=k==null?void 0:k.onVSIDChanged)==null?void 0:Ze.call(k,Mt)})),this.initMediaSession(),N(Qn,{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:je,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:Ue,thumbUrl:Je,subtitles:Rt,subtitlesForcedLanguage:Ee,live:Pe,preload:T,autoplay:E,muted:A,volume:O,fromTime:I,canRewindLive:L,supportLink:Z,showAds:B,adsSlotId:U,adsParams:Te,adsAutoplayParam:de,duration:zt,logoClickable:J,logoHidden:ge,isMobile:ce!=null?ce:se,failoverHosts:De,fullScreenTarget:te,saveRate:ie,shadowRootContainer:this.shadowRootContainer,showMiniTimer:Ve,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:ae.nextVideoTitle,endScreenVideoThumb:ae.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:Se,showEndScreen:Ce,showAutoplayNext:Be,adsExternalApi:ee},!0);let si={target:this.playerContainer,props:n(Qn)};this.svelteRootComponent=Yr(_g,si),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(yt=(xi=(ci=this.videoConfig)==null?void 0:ci.callbacks)==null?void 0:xi.onInited)==null||yt.call(xi)),(Ut=this.internalsExposure)==null||Ut.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((Pi=(zi=this.videoConfig)==null?void 0:zi.callbacks)!=null&&Pi.onDevNullLog)?dd.devNull.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):dd.devNull.destroy("ui")};this.coreConfig.asyncResolveClientChecker?jc.clientChecker.isInited$.subscribe(ci=>{ci&&(console.log("UI SDK async start"),Dt())}):Dt()}addPlayerInfoSubscriptions(){var e,i;let o=this.store,r=(e=this.microStoresRoot)==null?void 0:e.stores;if(!o||!r)return;let s=(i=this.videoConfig)==null?void 0:i.callbacks;s&&this.subscription.add(o.playerPhase.subscribe(d=>{var a;return(a=s.onPlayerPhaseChanged)==null?void 0:a.call(s,d)})).add(o.state.playbackState$.subscribe(d=>{var a;return d&&((a=s.onPlaybackStateChanged)==null?void 0:a.call(s,d))})).add(o.state.isLive$.subscribe(d=>{var a;return(a=s.onIsLiveChanged)==null?void 0:a.call(s,d)})).add(o.state.isActiveLive$.subscribe(d=>{var a;return(a=s.onIsActiveLiveChanged)==null?void 0:a.call(s,d)})).add(o.state.isAudioAvailable$.subscribe(d=>{var a;return(a=s.onIsAudioAvailableChanged)==null?void 0:a.call(s,d)})).add(o.state.currentQuality$.subscribe(d=>{var a;return(a=s.onCurrentQualityChanged)==null?void 0:a.call(s,d)})).add(o.state.availableQualities$.subscribe(d=>{var a;return(a=s.onAvailableQualitiesChanged)==null?void 0:a.call(s,d.map(({value:u})=>u).filter(u=>u!=="auto"))})).add(o.state.availableAudioStreams$.subscribe(d=>{d.length>1&&s.onAudioLanguagesAvailable&&s.onAudioLanguagesAvailable()})).add(r.pictureInPicture$.isActive$.subscribe(d=>{var a,u;return d?(a=s.onPiPEnter)==null?void 0:a.call(s):(u=s.onPiPExit)==null?void 0:u.call(s)}));let l=s==null?void 0:s.uiInfo;l&&this.subscription.add(o.ui.controlsVisible.subscribe(d=>{var a;return(a=l.onControlsVisibleChanged)==null?void 0:a.call(l,d)})).add(o.ui.isMobile.subscribe(d=>{var a;return(a=l.onIsMobileChanged)==null?void 0:a.call(l,d)})).add(o.ui.playerSize.subscribe(d=>{var a;return(a=l.onPlayerSizeChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.prevButton.subscribe(d=>{var a;return(a=l.onPrevButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.playButton.subscribe(d=>{var a;return(a=l.onPlayButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.replayButton.subscribe(d=>{var a;return(a=l.onReplayButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.nextButton.subscribe(d=>{var a;return(a=l.onNextButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.playPrevChapterButton.subscribe(d=>{var a;return(a=l.onPlayPrevChapterChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.seekToInteractiveButton.subscribe(d=>{var a;return(a=l.onSeekToInteractiveButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.interactiveGraphButton.subscribe(d=>{var a;return(a=l.onGraphButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.liveButton.subscribe(d=>{var a;return(a=l.onLiveButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.time.subscribe(d=>{var a;return(a=l.onTimeUpdateChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.episodes.subscribe(d=>{var a;return(a=l.onEpisodesChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.subtitles.subscribe(d=>{var a;return(a=l.onSubtitlesChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.topLeft.subscribe(d=>{var a;return(a=l.onTopLeftControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.topRight.subscribe(d=>{var a;return(a=l.onTopRightControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottomLeft.subscribe(d=>{var a;return(a=l.onBottomLeftControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottomRight.subscribe(d=>{var a;return(a=l.onBottomRightControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.middle.subscribe(d=>{var a;return(a=l.onMiddleControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottom.subscribe(d=>{var a;return(a=l.onBottomControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.videoTitleInfo.subscribe(d=>{var a;return(a=l.onTitleChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.settings.subscribe(d=>{var a;return(a=l.onSettingsChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.fullscreen.subscribe(d=>{var a;return(a=l.onFullscreenChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.chromecast.subscribe(d=>{var a;return(a=l.onChromecastChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.pip.subscribe(d=>{var a;return(a=l.onPipChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.vkLogo.subscribe(d=>{var a;return(a=l.onVkLogoChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.interactiveTimeIndicator.subscribe(d=>{var a;return(a=l.onInteractiveTimeIndicatorChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.timeline.subscribe(d=>{var a;return(a=l.onTimelineChanged)==null?void 0:a.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,Ui.isNonNullable)(r.unitedVideoId)&&((o=this.store)==null||o.actions.internal.nextMovie(r.unitedVideoId)),this.unmountComponent(this.svelteRootComponent),this.createPlayer(r,{autoplay:i,fromTime:0},e)}playPrevChapter(){var e;(e=this.interactiveController)==null||e.playPrevChapter()}seekToInteractive(){var e;let i=(e=this.interactiveController)==null?void 0:e.getNextInteractiveStartTime();typeof i=="number"&&this.seekTime(i/1e3)}initInteractives(){return Lp(this,null,function*(){var e,i,o,r,s,l;if((e=this.videoConfig)!=null&&e.interactiveData)try{let{Interactives:d}=yield import("@vkontakte/videoplayer-interactive/es2015");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let a=(i=this.store)==null?void 0:i.interfaceLanguage$,u=a?be(a):this.videoConfig.interfaceLanguage,{projectInfo:f,initChapterId:v,historyApi:p,videoLoader:x}=this.videoConfig.interactiveData;this.interactiveController=new d({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:u,graph:this.uiConfig.features.interactiveGraph,projectInfo:f,initChapterId:v,historyApi:p,vkVideoLoader:x,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$:w,isSeekable$:y}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(y.subscribe(T=>{if(!this.isInited)return;let E=this.store;T?E.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):E.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(w.subscribe(T=>{this.store&&this.store.state.isInteractiveExpectation$.set(T)}));let C=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(T=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]=Ww(Ds({},T.config),{title:(f==null?void 0:f.title)||T.config.title});let E=C?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(T.player,E),C&&(C=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:T,actionType:E})=>{var O,A,I,L,Z,B;if(!this.store||!this.microStoresRoot)return;let U=w.getValue();if(T==="action-choice"&&E==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(Kd)),T==="action-choice-canceled"){let X=be(this.store.state.isPlaying$)||U;if(((I=(O=this.videoConfig)==null?void 0:O.isTouch)!=null?I:(A=this.videoConfig)!=null&&A.isMobile)&&X){this.store.ui.interactiveHideMobileControls.set(!0);return}(B=(L=this.videoConfig)==null?void 0:(Z=L.callbacks).onDisabledInteractiveClick)==null||B.call(Z)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:T,removeAllOpenURI:E})=>{this.store&&T==="container-fake-removed"&&E&&this.store.ui.controls.disabledControls$.remove(Kd)})),yield this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(r=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&r.onInteractiveHistoryChanged){let T=this.interactiveController.getHistoryState();this.subscription.add(T.history$.subscribe(E=>{var O,A,I;E.length&&((I=(A=(O=this.videoConfig)==null?void 0:O.callbacks)==null?void 0:A.onInteractiveHistoryChanged)==null||I.call(A,E))}))}(l=(s=this.videoConfig)==null?void 0:s.callbacks)!=null&&l.onInteractiveChapterChanged&&this.subscription.add(this.interactiveController.events.chapterChanged$.subscribe(T=>{var E,O,A;(A=(E=this.videoConfig)==null?void 0:(O=E.callbacks).onInteractiveChapterChanged)==null||A.call(O,T.chapter,T.manifestVideo)})),this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var T,E,O,A;(T=this.microStoresRoot)==null||T.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(A=(E=this.videoConfig)==null?void 0:(O=E.callbacks).onInteractiveTimeIndicatorClick)==null||A.call(O)})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(T=>{this.log({message:T.toString()})}))}catch(d){this.log({message:d.message})}})}initPlayer(e,i={}){var o,r,s,l,d,a,u,f,v,p,x,w,y,C,T,E,O,A,I,L,Z,B,U,X,de,K,ue,J;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData){let ge=new Error("empty videos");this.fatalError$.next(ge),(r=(o=e.callbacks)==null?void 0:o.onCrashed)==null||r.call(o,ge.message);return}else this.fatalError$.next(null);if(this.videoConfig=Hc(Kw,(0,Ui.cloneDeepWith)(e,ge=>ge instanceof HTMLElement?ge:void 0)),this.playerId=(0,Ui.getPlayerId)(e.playerId),this.uiConfig=x1((s=i.ui)!=null?s:{}),this.updatePersistentLayerProps(),this.coreConfig=(l=i.core)!=null?l:{configName:[]},this.statisticsConfig=(d=i.statistics)!=null?d:{},this.uiConfig.features.forcePlayerDisplayBlock&&(this.rootContainer&&(this.rootContainer.style.minHeight="unset"),this.style.display="block",this.style.width="100%",this.style.height="100%"),this.videoConfig.playerView==="preview"&&(this.playerContainer.style.contain="none"),this.sentry={config:(a=this.uiConfig.sentry)!=null?a:{}},this.uiConfig.features.exposeInternalsToGlobal&&((u=this.internalsExposure)!=null||(this.internalsExposure=new Ui.InternalsExposure("ui",this.playerId))),dd.devNull.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+((f=this.videoConfig)==null?void 0:f.showAds)],numbers:[(0,Rp.now)()]}),(0,Ui.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(p=(v=this.uiConfig.features.mediaSession)!=null?v:this.videoConfig.isMediaSessionEnabled)!=null?p:!0),(0,Ui.isNonNullable)(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(w=(x=this.uiConfig.features.pip)!=null?x:this.videoConfig.isPictureInPictureEnabled)!=null?w:!0,this.uiConfig.features.dpip=(C=(y=this.uiConfig.features.dpip)!=null?y:this.videoConfig.isPictureInPictureEnabled)!=null?C:!0),this.uiConfig.ads.paramsOverride=Ds({preview:(T=this.uiConfig.ads.preview)!=null?T:this.videoConfig.adsPreviewParam},this.uiConfig.ads.paramsOverride),this.videoConfig.isTouch=(O=(E=this.uiConfig.isMobile)!=null?E:this.videoConfig.isTouch)!=null?O:this.videoConfig.isMobile,(A=this.videoConfig).autoplay&&(A.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(I=this.uiConfig.ads.enable)!=null?I:this.videoConfig.showAds,this.videoConfig.adsSlotId=(L=this.uiConfig.ads.slot)!=null?L:this.videoConfig.adsSlotId,this.videoConfig.logoHidden=!((Z=this.uiConfig.showLogo)!=null?Z:!this.videoConfig.logoHidden),(B=this.videoConfig).canRewindLive&&(B.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(U=this.videoConfig.supportLink)!=null?U:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(X=this.uiConfig.features.endScreen)!=null?X:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(de=this.uiConfig.features.autoplayNext)!=null?de:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(K=this.uiConfig.features.nextPrevButtons)!=null?K:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((ue=this.videoConfig.videos)!=null&&ue[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let ge={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=Tp.getLatestSupportedVersion(ge):this.pictureInPictureApi=new Na(ge)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new Sp:void 0,this.slotsApi=this.uiConfig.features.slots?new $p:void 0,this.annotationsApi=this.uiConfig.features.annotations?new Ep(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteErrorComponent),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveSubscription.unsubscribe()),this.videoConfig.interactiveData?this.initInteractives():this.createPlayer(this.videoConfig.videos[this.currentPlayingVideoIndex]),I_(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(J=this.slotsApi)==null||J.init(this.shadowRootContainer,this.store),this.focusManager=this._shadowRoot?new Mp(this._shadowRoot):void 0}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateVideos(e,i){if(!this.videoConfig)return;this.log({message:`update ${i} videos, videos: ${JSON.stringify(e)}`}),i==="prev"?(this.videoConfig.videos.splice(0,this.currentPlayingVideoIndex),this.videoConfig.videos.unshift(...e),this.currentPlayingVideoIndex=e.length):i==="next"&&(this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...e));let o=this.getNextVideoInfo();n(Qn)&&(n(Qn).showNextPrevButtons=this.needToShowNextPrevButtons(),n(Qn).nextButtonActive=this.isNextButtonActive(),n(Qn).prevButtonActive=this.isPrevButtonActive(),n(Qn).endScreenVideoTitle=o.nextVideoTitle,n(Qn).endScreenVideoThumb=o.nextVideoThumb,n(Qn).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}=Ds({},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,s,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(s=(r=this.videoConfig)==null?void 0:r.callbacks)==null?void 0:s.onNextVideoClick)==null||l.call(s)}catch(d){this.log({message:"onNextVideoClick callback failed to execute"})}else this.playNextVideo()}]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>{var r,s,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(s=(r=this.videoConfig)==null?void 0:r.callbacks)==null?void 0:s.onPrevVideoClick)==null||l.call(s)}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="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",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(Qn)&&(n(Qn).needToRepeatPlaylist=this.needToRepeatPlaylist,n(Qn).showNextPrevButtons=this.needToShowNextPrevButtons(),n(Qn).nextButtonActive=this.isNextButtonActive(),n(Qn).prevButtonActive=this.isPrevButtonActive())}seekTime(e){var i;this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekTime(e))}seekEpisodeStartTime(e){var i;this.log({message:`seek episode start time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekEpisodeStartTime(e)}returnFocusToEpisodes(){var e;this.log({message:"return focus to episodes button"}),(e=this.svelteRootComponent)==null||e.returnFocusToEpisodes()}setPlaybackRate(e){var i;this.log({message:`set playback rate to: ${e}`}),(i=this.svelteRootComponent)==null||i.setPlaybackRate(e)}setAutoQualityLimits(e){var i,o,r;this.log({message:`set auto quality limitation. Max: ${(i=e.max)!=null?i:"none"}. Min: ${(o=e.min)!=null?o:"none"}`}),(r=this.svelteRootComponent)==null||r.setAutoQualityLimits(e)}setAutoQuality(){var e;(e=this.svelteRootComponent)==null||e.setAutoQuality()}toggleTrafficSaving(e){var i;(i=this.svelteRootComponent)==null||i.toggleTrafficSaving(e)}toggleHighQuality(e){var i;(i=this.svelteRootComponent)==null||i.toggleHighQuality(e)}changeAudioStream(e){var i;(i=this.svelteRootComponent)==null||i.changeAudioStream(e)}addLanguage(e){var i;(i=this.store)==null||i.actions.internal.addLanguage(e)}setLanguage(e){return Lp(this,null,function*(){var i;yield(i=this.store)==null?void 0:i.actions.internal.setLanguage(e)})}setLiveStart(e){var i,o;let r=this.isLiveTailPlaying();this.log({message:`live started: liveTailPlaying = ${r}`}),r||((i=this.store)==null||i.actions.internal.setLiveWaitingRecover(!1),(o=this.store)==null||o.actions.internal.setLiveWaitingStart(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!0}))}setLiveWaitingStart(){var e;this.log({message:"live waiting"}),(e=this.store)==null||e.actions.internal.setLiveWaitingStart(!0)}isLiveTailPlaying(){var e;let i=(e=this.store)==null?void 0:e.getPlayer();if(!i)return!1;let{info:o}=i;return o.canPlayLiveTailBuffer$.getValue()&&!o.isStalled$.getValue()&&!o.atLiveEdge$.getValue()}setLiveWaitingRecover(e=!1){var i;let o=this.isLiveTailPlaying(),r=e||!o;this.log({message:`live waiting recover: forceImmediate = ${e}, liveTailPlaying = ${o}`});let s=()=>{var l;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!0)};r&&s(),(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var l;r||s(),(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 s;(s=this.store)==null||s.actions.internal.setLiveWaitingRecord(!0)};o&&r(),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var s;o||r(),(s=this.store)==null||s.destroy()})}setLiveEnd(e){var i;let o=this.isLiveTailPlaying(),r=!o;this.log({message:`live ended: liveTailPlaying = ${o}`});let s=()=>{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){s();return}(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=s)}setLiveLowLatency(e){var i;this.log({message:"live switch to low latency "+e}),(i=this.store)==null||i.actions.external.setLiveLowLatency(e)}setLooped(e){var i;(i=this.store)==null||i.actions.internal.setLooped(e)}getDebugData(){var e,i;return(i=(e=this.store)==null?void 0:e.actions.internal.getDebugTextData())!=null?i:""}getDeviceId(){var e,i,o;return(o=(i=(e=this.statistics)==null?void 0:e.oneStat)==null?void 0:i.getDeviceId())!=null?o:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}replayInteractiveChapter(e){return Lp(this,null,function*(){var i,o;if(this.interactiveController&&((i=this.store)!=null&&i.state.positionExact$)){let r=be(this.store.state.positionExact$),l=be(this.store.state.interactiveEpisodes$).find(a=>!a.completed);this.interactiveController.events.playerChanged$.pipe((0,Ui.once)()).subscribe(()=>{l&&r>=l.time?this.seekTime(l.time):this.seekTime(r),e==null||e()});let d=this.interactiveController.getCurrentChapter();yield this.interactiveController.setChapter({chapterId:(o=d==null?void 0:d.chapter)==null?void 0:o.id,pushToHistory:!1})}})}showInteractiveIndicatorTooltip(e,i=!1){var o;(o=this.microStoresRoot)==null||o.stores.showInteractiveTimeIndicatorTooltip$.set(e,i)}switchToActiveLive(){var e;(e=this.store)==null||e.actions.internal.switchToActiveLive()}updateAdditionalSettingsItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalSettingsItem(e,i)}addAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalSettingsItem(e)}removeAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalSettingsItem(e)}updateAdditionalContextItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalContextItem(e,i)}addAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalContextItem(e)}removeAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalContextItem(e)}updateAdditionalButton(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalButton(e,i)}addAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.addAdditionalButton(e)}removeAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalButton(e)}updateStatContext(e){this.statistics&&(this.statistics.oneStat&&this.statistics.oneStat.updateContext(e),this.statistics.thinOneStat&&this.statistics.thinOneStat.updateContext(e))}handleTimerNextVideo(e){var i;(i=this.store)==null||i.actions.internal.setTimerNextVideoRunning(e)}togglePictureInPicture(){var e;(e=this.store)==null||e.actions.internal.togglePictureInPicture()}focus(){var e,i,o;(o=(i=(e=this.svelteRootComponent)==null?void 0:e.keyboardControls)==null?void 0:i.focus)==null||o.call(i)}restoreFocus(){var e;(e=this.focusManager)==null||e.restoreFocus()}handleExternalKeyboardEvent(e){var i,o;return!!((o=(i=this.svelteRootComponent)==null?void 0:i.keyboardControls)!=null&&o.handleExternalKeyboardEvent(e))}setAutoplayNext(e){var i;(i=this.store)==null||i.actions.internal.setAutoplayNextEnabled(e)}getTotalViewTime(){var e,i;return(i=(e=this.statistics)==null?void 0:e.thinOneStat)==null?void 0:i.getTotalViewTime()}unmountComponent(e){e&&Ia(e)}};var ud=require("@vkontakte/videoplayer-shared/es2015"),Op=require("@vkontakte/videoplayer-core/es2015"),qw=()=>{window.customElements.define("vk-video-player",Vp)};