@vkontakte/videoplayer 1.1.71-dev.69616eb7.0 → 1.1.71-dev.7e2bd993.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,59 +1,59 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.71-dev.69616eb7.0
3
- * Tue, 09 Sep 2025 11:50:58 GMT
2
+ * @vkontakte/videoplayer v1.1.71-dev.7e2bd993.0
3
+ * Wed, 17 Sep 2025 08:46:31 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-71/doc/
5
5
  */
6
- "use strict";var Y0=Object.create;var Ql=Object.defineProperty,Z0=Object.defineProperties,X0=Object.getOwnPropertyDescriptor,J0=Object.getOwnPropertyDescriptors,e_=Object.getOwnPropertyNames,Xv=Object.getOwnPropertySymbols,t_=Object.getPrototypeOf,Jv=Object.prototype.hasOwnProperty,i_=Object.prototype.propertyIsEnumerable;var eg=t=>{throw TypeError(t)};var _p=(t,e,i)=>e in t?Ql(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,z=(t,e)=>{for(var i in e||(e={}))Jv.call(e,i)&&_p(t,i,e[i]);if(Xv)for(var i of Xv(e))i_.call(e,i)&&_p(t,i,e[i]);return t},Bt=(t,e)=>Z0(t,J0(e));var o_=(t,e)=>{for(var i in e)Ql(t,i,{get:e[i],enumerable:!0})},tg=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of e_(e))!Jv.call(t,n)&&n!==i&&Ql(t,n,{get:()=>e[n],enumerable:!(o=X0(e,n))||o.enumerable});return t};var ig=(t,e,i)=>(i=t!=null?Y0(t_(t)):{},tg(e||!t||!t.__esModule?Ql(i,"default",{value:t,enumerable:!0}):i,t)),n_=t=>tg(Ql({},"__esModule",{value:!0}),t);var jn=(t,e,i)=>_p(t,typeof e!="symbol"?e+"":e,i),bp=(t,e,i)=>e.has(t)||eg("Cannot "+i);var Bi=(t,e,i)=>(bp(t,e,"read from private field"),i?i.call(t):e.get(t)),ks=(t,e,i)=>e.has(t)?eg("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),Qa=(t,e,i,o)=>(bp(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),og=(t,e,i)=>(bp(t,e,"access private method"),i);var xt=(t,e,i)=>new Promise((o,n)=>{var s=a=>{try{d(i.next(a))}catch(u){n(u)}},l=a=>{try{d(i.throw(a))}catch(u){n(u)}},d=a=>a.done?o(a.value):Promise.resolve(a.value).then(s,l);d((i=i.apply(t,e)).next())});var w5={};o_(w5,{ControlButtonType:()=>Zd,GridTypes:()=>Dr,InterfaceLanguage:()=>Ul.InterfaceLanguage,MenuItemType:()=>Cl,PlayerPhase:()=>ls,VERSION:()=>ha,VKNumericLanguage:()=>Ul.VKNumericLanguage,VideoFormat:()=>cp.VideoFormat,VideoQuality:()=>cp.VideoQuality,loadVKLangPack:()=>Ul.loadVKLangPack,registerPlayerWebComponent:()=>x5});module.exports=n_(w5);var Ps="[",As="[!",Js="]",es={};var ji=Symbol(),Ln=Symbol("filename"),ng=Symbol("hmr"),rg="http://www.w3.org/1999/xhtml",Mc="http://www.w3.org/2000/svg";var $p="@attach";var Lc=!0;var ag,lg,sg=(lg=(ag=globalThis.process)==null?void 0:ag.env)==null?void 0:lg.NODE_ENV,Me=sg&&!sg.toLowerCase().startsWith("prod");var Yn=Array.isArray,dg=Array.prototype.indexOf,jl=Array.from,yp=Object.keys,ro=Object.defineProperty,an=Object.getOwnPropertyDescriptor,Vc=Object.getOwnPropertyDescriptors,xp=Object.prototype,cg=Array.prototype,ea=Object.getPrototypeOf,wp=Object.isExtensible;function Ms(t){return typeof t=="function"}var de=()=>{};function ug(t){return t()}function Ls(t){for(var e=0;e<t.length;e++)t[e]()}var Ko=Symbol("$state"),ja=Symbol("legacy props"),pg=Symbol(""),Rc=Symbol("proxy path"),Nc=1,Ya=3,Zn=8;function Oc(t){return t===this.v}function Za(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function fg(t,e){return t!==e}function Xa(t){return!Za(t,this.v)}function mg(){if(Me){let t=new Error(`derived_references_self
6
+ "use strict";var X_=Object.create;var Wl=Object.defineProperty,J_=Object.defineProperties,e0=Object.getOwnPropertyDescriptor,t0=Object.getOwnPropertyDescriptors,i0=Object.getOwnPropertyNames,Jv=Object.getOwnPropertySymbols,o0=Object.getPrototypeOf,eg=Object.prototype.hasOwnProperty,n0=Object.prototype.propertyIsEnumerable;var tg=t=>{throw TypeError(t)};var bp=(t,e,i)=>e in t?Wl(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,W=(t,e)=>{for(var i in e||(e={}))eg.call(e,i)&&bp(t,i,e[i]);if(Jv)for(var i of Jv(e))n0.call(e,i)&&bp(t,i,e[i]);return t},Ut=(t,e)=>J_(t,t0(e));var r0=(t,e)=>{for(var i in e)Wl(t,i,{get:e[i],enumerable:!0})},ig=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of i0(e))!eg.call(t,n)&&n!==i&&Wl(t,n,{get:()=>e[n],enumerable:!(o=e0(e,n))||o.enumerable});return t};var og=(t,e,i)=>(i=t!=null?X_(o0(t)):{},ig(e||!t||!t.__esModule?Wl(i,"default",{value:t,enumerable:!0}):i,t)),s0=t=>ig(Wl({},"__esModule",{value:!0}),t);var Xn=(t,e,i)=>bp(t,typeof e!="symbol"?e+"":e,i),$p=(t,e,i)=>e.has(t)||tg("Cannot "+i);var Vi=(t,e,i)=>($p(t,e,"read from private field"),i?i.call(t):e.get(t)),Is=(t,e,i)=>e.has(t)?tg("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),Ga=(t,e,i,o)=>($p(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),ng=(t,e,i)=>($p(t,e,"access private method"),i);var St=(t,e,i)=>new Promise((o,n)=>{var s=a=>{try{d(i.next(a))}catch(u){n(u)}},l=a=>{try{d(i.throw(a))}catch(u){n(u)}},d=a=>a.done?o(a.value):Promise.resolve(a.value).then(s,l);d((i=i.apply(t,e)).next())});var C5={};r0(C5,{ControlButtonType:()=>Gd,GridTypes:()=>Fr,InterfaceLanguage:()=>Fl.InterfaceLanguage,MenuItemType:()=>Sl,PlayerPhase:()=>ss,VERSION:()=>ga,VKNumericLanguage:()=>Fl.VKNumericLanguage,VideoFormat:()=>pp.VideoFormat,VideoQuality:()=>pp.VideoQuality,loadVKLangPack:()=>Fl.loadVKLangPack,registerPlayerWebComponent:()=>S5});module.exports=s0(C5);var Es="[",ks="[!",Xs="]",Xr={};var eo=Symbol(),Rn=Symbol("filename"),rg=Symbol("hmr"),sg="http://www.w3.org/1999/xhtml",Lc="http://www.w3.org/2000/svg";var yp="@attach";var Vc=!0;var lg,dg,ag=(dg=(lg=globalThis.process)==null?void 0:lg.env)==null?void 0:dg.NODE_ENV,Ae=ag&&!ag.toLowerCase().startsWith("prod");var Jn=Array.isArray,cg=Array.prototype.indexOf,Kl=Array.from,xp=Object.keys,vo=Object.defineProperty,en=Object.getOwnPropertyDescriptor,Rc=Object.getOwnPropertyDescriptors,wp=Object.prototype,ug=Array.prototype,Js=Object.getPrototypeOf,Sp=Object.isExtensible;function Ps(t){return typeof t=="function"}var ae=()=>{};function pg(t){return t()}function As(t){for(var e=0;e<t.length;e++)t[e]()}var zo=Symbol("$state"),Qa=Symbol("legacy props"),fg=Symbol(""),Nc=Symbol("proxy path"),Oc=1,ja=3,er=8;function Bc(t){return t===this.v}function Ya(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function mg(t,e){return t!==e}function Za(t){return!Ya(t,this.v)}function vg(){if(Ae){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 vg(t){if(Me){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 gg(t){if(Ae){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 gg(){if(Me){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 hg(t){if(Me){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 hg(){if(Ae){let t=new Error("effect_in_unowned_derived\nEffect cannot be created inside a `$derived` value that was not itself created inside an effect\nhttps://svelte.dev/e/effect_in_unowned_derived");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function _g(t){if(Ae){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 _g(){if(Me){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 bg(){if(Ae){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 bg(){if(Me){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 $g(){if(Ae){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 $g(){if(Me){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 yg(t){if(Me){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 yg(){if(Ae){let t=new Error("invalid_snippet\nCould not `{@render}` snippet due to the expression being `null` or `undefined`. Consider using optional chaining `{@render snippet?.()}`\nhttps://svelte.dev/e/invalid_snippet");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/invalid_snippet")}function xg(t){if(Ae){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 xg(t){if(Me){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 wg(t){if(Ae){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 wg(t){if(Me){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 Sg(t){if(Ae){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 Sg(){if(Me){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 Cg(){if(Me){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 Tg(){if(Me){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 ts=!1,is=!1;function Eg(){ts=!0}var Yl=null;function ms(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 Cg(){if(Ae){let t=new Error("state_descriptors_fixed\nProperty descriptors defined on `$state` objects must contain `value` and always be `enumerable`, `configurable` and `writable`.\nhttps://svelte.dev/e/state_descriptors_fixed");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Tg(){if(Ae){let t=new Error("state_prototype_fixed\nCannot set prototype of `$state` object\nhttps://svelte.dev/e/state_prototype_fixed");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Ig(){if(Ae){let t=new Error("state_unsafe_mutation\nUpdating state inside `$derived(...)`, `$inspect(...)` or a template expression is forbidden. If the value should not be reactive, declare it without `$state`\nhttps://svelte.dev/e/state_unsafe_mutation");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_unsafe_mutation")}var Jr=!1,es=!1;function Eg(){Jr=!0}var ql=null;function ps(t){let e=Error(),i=e.stack;if(i){let o=i.split(`
23
23
  `),n=[`
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")||n.push(l)}}if(n.length===1)return null;ro(e,"stack",{value:n.join(`
25
- `)}),ro(e,"name",{value:`${t}Error`})}return e}function Mr(t,e){return t.label=e,Bc(t.v,e),t}function Bc(t,e){var i;return(i=t==null?void 0:t[Rc])==null||i.call(t,e),t}function Ja(t){if(Me){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")||n.push(l)}}if(n.length===1)return null;vo(e,"stack",{value:n.join(`
25
+ `)}),vo(e,"name",{value:`${t}Error`})}return e}function Vr(t,e){return t.label=e,Dc(t.v,e),t}function Dc(t,e){var i;return(i=t==null?void 0:t[Nc])==null||i.call(t,e),t}function Xa(t){if(Ae){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 Nt=null;function Zl(t){Nt=t}var Xn=null;function Xl(t){Xn=t}function el(t){return Tp("getContext").get(t)}function tl(t,e){return Tp("setContext").set(t,e),e}function Jl(){return Tp("getAllContexts")}function F(t,e=!1,i){var o=Nt={p:Nt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};ts&&!e&&(Nt.l={s:null,u:null,r1:[],r2:br(!1)}),qo(()=>{o.d=!0}),Me&&(Nt.function=i,Xn=i)}function U(t){var l,d;let e=Nt;if(e!==null){t!==void 0&&(e.x=t);let a=e.e;if(a!==null){var i=ht,o=kt;e.e=null;try{for(var n=0;n<a.length;n++){var s=a[n];so(s.effect),Wi(s.reaction),Io(s.fn)}}finally{so(i),Wi(o)}}Nt=e.p,Me&&(Xn=(d=(l=e.p)==null?void 0:l.function)!=null?d:null),e.m=!0}return t||{}}function os(){return!ts||Nt!==null&&Nt.l===null}function Tp(t){var e;return Nt===null&&Ja(t),(e=Nt.c)!=null?e:Nt.c=new Map(s_(Nt)||void 0)}function s_(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var a_=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function ri(t){if(typeof t!="object"||t===null||Ko in t)return t;let e=ea(t);if(e!==xp&&e!==cg)return t;var i=new Map,o=Yn(t),n=Y(0),s=Me&&is?ms("CreatedAt"):null,l=kt,d=f=>{var v=kt;Wi(l);var p=f();return Wi(v),p};o&&i.set("length",Y(t.length,s));var a="";function u(f){a=f,Mr(n,`${a} version`);for(let[v,p]of i)Mr(p,ta(a,v))}return new Proxy(t,{defineProperty(f,v,p){(!("value"in p)||p.configurable===!1||p.enumerable===!1||p.writable===!1)&&Sg();var y=i.get(v);return y===void 0?y=d(()=>{var w=Y(p.value,s);return i.set(v,w),Me&&typeof v=="string"&&Mr(w,ta(a,v)),w}):O(y,p.value,!0),!0},deleteProperty(f,v){var p=i.get(v);if(p===void 0){if(v in f){let $=d(()=>Y(ji,s));i.set(v,$),Ep(n),Me&&Mr($,ta(a,v))}}else{if(o&&typeof v=="string"){var y=i.get("length"),w=Number(v);Number.isInteger(w)&&w<y.v&&O(y,w)}O(p,ji),Ep(n)}return!0},get(f,v,p){var S;if(v===Ko)return t;if(Me&&v===Rc)return u;var y=i.get(v),w=v in f;if(y===void 0&&(!w||(S=an(f,v))!=null&&S.writable)&&(y=d(()=>{var T=ri(w?f[v]:ji),E=Y(T,s);return Me&&Mr(E,ta(a,v)),E}),i.set(v,y)),y!==void 0){var $=r(y);return $===ji?void 0:$}return Reflect.get(f,v,p)},getOwnPropertyDescriptor(f,v){var p=Reflect.getOwnPropertyDescriptor(f,v);if(p&&"value"in p){var y=i.get(v);y&&(p.value=r(y))}else if(p===void 0){var w=i.get(v),$=w==null?void 0:w.v;if(w!==void 0&&$!==ji)return{enumerable:!0,configurable:!0,value:$,writable:!0}}return p},has(f,v){var $;if(v===Ko)return!0;var p=i.get(v),y=p!==void 0&&p.v!==ji||Reflect.has(f,v);if(p!==void 0||ht!==null&&(!y||($=an(f,v))!=null&&$.writable)){p===void 0&&(p=d(()=>{var S=y?ri(f[v]):ji,T=Y(S,s);return Me&&Mr(T,ta(a,v)),T}),i.set(v,p));var w=r(p);if(w===ji)return!1}return y},set(f,v,p,y){var R;var w=i.get(v),$=v in f;if(o&&v==="length")for(var S=p;S<w.v;S+=1){var T=i.get(S+"");T!==void 0?O(T,ji):S in f&&(T=d(()=>Y(ji,s)),i.set(S+"",T),Me&&Mr(T,ta(a,S)))}if(w===void 0)(!$||(R=an(f,v))!=null&&R.writable)&&(w=d(()=>Y(void 0,s)),O(w,ri(p)),i.set(v,w),Me&&Mr(w,ta(a,v)));else{$=w.v!==ji;var E=d(()=>ri(p));O(w,E)}var V=Reflect.getOwnPropertyDescriptor(f,v);if(V!=null&&V.set&&V.set.call(y,p),!$){if(o&&typeof v=="string"){var k=i.get("length"),I=Number(v);Number.isInteger(I)&&I>=k.v&&O(k,I+1)}Ep(n)}return!0},ownKeys(f){r(n);var v=Reflect.ownKeys(f).filter(w=>{var $=i.get(w);return $===void 0||$.v!==ji});for(var[p,y]of i)y.v!==ji&&!(p in f)&&v.push(p);return v},setPrototypeOf(){Cg()}})}function ta(t,e){var i;return typeof e=="symbol"?`${t}[Symbol(${(i=e.description)!=null?i:""})]`:a_.test(e)?`${t}.${e}`:/^\d+$/.test(e)?`${t}[${e}]`:`${t}['${e}']`}function Ep(t,e=1){O(t,t.v+e)}function il(t){try{if(t!==null&&typeof t=="object"&&Ko in t)return t[Ko]}catch(e){}return t}function Ip(t,e){return Object.is(il(t),il(e))}function Lr(t){var e=2050,i=kt!==null&&(kt.f&2)!==0?kt:null;ht===null||i!==null&&(i.f&256)!==0?e|=256:ht.f|=1048576;let o={ctx:Nt,deps:null,effects:null,equals:Oc,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:ht};return Me&&is&&(o.created=ms("CreatedAt")),o}function g(t){let e=Lr(t);return Fc(e),e}function Vr(t){let e=Lr(t);return e.equals=Xa,e}function Dc(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)Ki(e[i])}}var kp=[];function l_(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function Mp(t){var e,i=ht;if(so(l_(t)),Me){let o=ia;Pp(new Set);try{kp.includes(t)&&mg(),kp.push(t),Dc(t),e=Hc(t)}finally{so(i),Pp(o),kp.pop()}}else try{Dc(t),e=Hc(t)}finally{so(i)}return e}function Lp(t){var e=Mp(t);if(t.equals(e)||(t.v=e,t.wv=ed()),!vs){var i=(gs||(t.f&256)!==0)&&t.deps!==null?4096:1024;$n(t,i)}}var ia=new Set,ol=new Map;function Pp(t){ia=t}function br(t,e){var i={f:0,v:t,reactions:null,equals:Oc,rv:0,wv:0};return Me&&is&&(i.created=e!=null?e:ms("CreatedAt"),i.updated=null,i.set_during_effect=!1,i.trace=null),i}function Y(t,e){let i=br(t,e);return Fc(i),i}function ns(t,e=!1,i=!0){var n,s;let o=br(t);return e||(o.equals=Xa),ts&&i&&Nt!==null&&Nt.l!==null&&((s=(n=Nt.l).s)!=null?s:n.s=[]).push(o),o}function O(t,e,i=!1){var n;kt!==null&&(!tr||(kt.f&262144)!==0)&&os()&&(kt.f&262162)!==0&&!((n=Qo)!=null&&n[1].includes(t)&&Qo[0]===kt)&&Tg();let o=i?ri(e):e;return Me&&Bc(o,t.label),nl(t,o)}function nl(t,e){if(!t.equals(e)){var i=t.v;if(vs?ol.set(t,e):ol.set(t,i),t.v=e,Me&&is&&(t.updated=ms("UpdatedAt"),ht!==null&&(t.set_during_effect=!0)),(t.f&2)!==0&&((t.f&2048)!==0&&Mp(t),$n(t,(t.f&256)===0?1024:4096)),t.wv=ed(),kg(t,2048),os()&&ht!==null&&(ht.f&1024)!==0&&(ht.f&96)===0&&(er===null?Pg([t]):er.push(t)),Me&&ia.size>0){let o=Array.from(ia);for(let n of o)(n.f&1024)!==0&&$n(n,4096),na(n)&&rl(n);ia.clear()}}return e}function kg(t,e){var i=t.reactions;if(i!==null)for(var o=os(),n=i.length,s=0;s<n;s++){var l=i[s],d=l.f;if((d&2048)===0&&!(!o&&l===ht)){if(Me&&(d&262144)!==0){ia.add(l);continue}$n(l,e),(d&1280)!==0&&((d&2)!==0?kg(l,4096):id(l))}}}var sl="font-weight: bold",al="font-weight: normal";function Ag(t,e,i){Me?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 Ht=null;function Gl(t){Ht=t}var tr=null;function Ql(t){tr=t}function Ja(t){return Ip("getContext").get(t)}function el(t,e){return Ip("setContext").set(t,e),e}function jl(){return Ip("getAllContexts")}function U(t,e=!1,i){var o=Ht={p:Ht,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};Jr&&!e&&(Ht.l={s:null,u:null,r1:[],r2:$r(!1)}),Wo(()=>{o.d=!0}),Ae&&(Ht.function=i,tr=i)}function z(t){var l,d;let e=Ht;if(e!==null){t!==void 0&&(e.x=t);let a=e.e;if(a!==null){var i=gt,o=Pt;e.e=null;try{for(var n=0;n<a.length;n++){var s=a[n];go(s.effect),Ui(s.reaction),Po(s.fn)}}finally{go(i),Ui(o)}}Ht=e.p,Ae&&(tr=(d=(l=e.p)==null?void 0:l.function)!=null?d:null),e.m=!0}return t||{}}function ts(){return!Jr||Ht!==null&&Ht.l===null}function Ip(t){var e;return Ht===null&&Xa(t),(e=Ht.c)!=null?e:Ht.c=new Map(l0(Ht)||void 0)}function l0(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var d0=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function ri(t){if(typeof t!="object"||t===null||zo in t)return t;let e=Js(t);if(e!==wp&&e!==ug)return t;var i=new Map,o=Jn(t),n=Y(0),s=Ae&&es?ps("CreatedAt"):null,l=Pt,d=f=>{var v=Pt;Ui(l);var p=f();return Ui(v),p};o&&i.set("length",Y(t.length,s));var a="";function u(f){a=f,Vr(n,`${a} version`);for(let[v,p]of i)Vr(p,ea(a,v))}return new Proxy(t,{defineProperty(f,v,p){(!("value"in p)||p.configurable===!1||p.enumerable===!1||p.writable===!1)&&Cg();var y=i.get(v);return y===void 0?y=d(()=>{var w=Y(p.value,s);return i.set(v,w),Ae&&typeof v=="string"&&Vr(w,ea(a,v)),w}):O(y,p.value,!0),!0},deleteProperty(f,v){var p=i.get(v);if(p===void 0){if(v in f){let $=d(()=>Y(eo,s));i.set(v,$),Ep(n),Ae&&Vr($,ea(a,v))}}else{if(o&&typeof v=="string"){var y=i.get("length"),w=Number(v);Number.isInteger(w)&&w<y.v&&O(y,w)}O(p,eo),Ep(n)}return!0},get(f,v,p){var C;if(v===zo)return t;if(Ae&&v===Nc)return u;var y=i.get(v),w=v in f;if(y===void 0&&(!w||(C=en(f,v))!=null&&C.writable)&&(y=d(()=>{var T=ri(w?f[v]:eo),I=Y(T,s);return Ae&&Vr(I,ea(a,v)),I}),i.set(v,y)),y!==void 0){var $=r(y);return $===eo?void 0:$}return Reflect.get(f,v,p)},getOwnPropertyDescriptor(f,v){var p=Reflect.getOwnPropertyDescriptor(f,v);if(p&&"value"in p){var y=i.get(v);y&&(p.value=r(y))}else if(p===void 0){var w=i.get(v),$=w==null?void 0:w.v;if(w!==void 0&&$!==eo)return{enumerable:!0,configurable:!0,value:$,writable:!0}}return p},has(f,v){var $;if(v===zo)return!0;var p=i.get(v),y=p!==void 0&&p.v!==eo||Reflect.has(f,v);if(p!==void 0||gt!==null&&(!y||($=en(f,v))!=null&&$.writable)){p===void 0&&(p=d(()=>{var C=y?ri(f[v]):eo,T=Y(C,s);return Ae&&Vr(T,ea(a,v)),T}),i.set(v,p));var w=r(p);if(w===eo)return!1}return y},set(f,v,p,y){var R;var w=i.get(v),$=v in f;if(o&&v==="length")for(var C=p;C<w.v;C+=1){var T=i.get(C+"");T!==void 0?O(T,eo):C in f&&(T=d(()=>Y(eo,s)),i.set(C+"",T),Ae&&Vr(T,ea(a,C)))}if(w===void 0)(!$||(R=en(f,v))!=null&&R.writable)&&(w=d(()=>Y(void 0,s)),O(w,ri(p)),i.set(v,w),Ae&&Vr(w,ea(a,v)));else{$=w.v!==eo;var I=d(()=>ri(p));O(w,I)}var M=Reflect.getOwnPropertyDescriptor(f,v);if(M!=null&&M.set&&M.set.call(y,p),!$){if(o&&typeof v=="string"){var k=i.get("length"),E=Number(v);Number.isInteger(E)&&E>=k.v&&O(k,E+1)}Ep(n)}return!0},ownKeys(f){r(n);var v=Reflect.ownKeys(f).filter(w=>{var $=i.get(w);return $===void 0||$.v!==eo});for(var[p,y]of i)y.v!==eo&&!(p in f)&&v.push(p);return v},setPrototypeOf(){Tg()}})}function ea(t,e){var i;return typeof e=="symbol"?`${t}[Symbol(${(i=e.description)!=null?i:""})]`:d0.test(e)?`${t}.${e}`:/^\d+$/.test(e)?`${t}[${e}]`:`${t}['${e}']`}function Ep(t,e=1){O(t,t.v+e)}function tl(t){try{if(t!==null&&typeof t=="object"&&zo in t)return t[zo]}catch(e){}return t}function kp(t,e){return Object.is(tl(t),tl(e))}function Rr(t){var e=2050,i=Pt!==null&&(Pt.f&2)!==0?Pt:null;gt===null||i!==null&&(i.f&256)!==0?e|=256:gt.f|=1048576;let o={ctx:Ht,deps:null,effects:null,equals:Bc,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:gt};return Ae&&es&&(o.created=ps("CreatedAt")),o}function g(t){let e=Rr(t);return Uc(e),e}function Nr(t){let e=Rr(t);return e.equals=Za,e}function Hc(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)zi(e[i])}}var Pp=[];function c0(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function Lp(t){var e,i=gt;if(go(c0(t)),Ae){let o=ta;Ap(new Set);try{Pp.includes(t)&&vg(),Pp.push(t),Hc(t),e=Fc(t)}finally{go(i),Ap(o),Pp.pop()}}else try{Hc(t),e=Fc(t)}finally{go(i)}return e}function Vp(t){var e=Lp(t);if(t.equals(e)||(t.v=e,t.wv=Yl()),!fs){var i=(ms||(t.f&256)!==0)&&t.deps!==null?4096:1024;bn(t,i)}}var ta=new Set,il=new Map;function Ap(t){ta=t}function $r(t,e){var i={f:0,v:t,reactions:null,equals:Bc,rv:0,wv:0};return Ae&&es&&(i.created=e!=null?e:ps("CreatedAt"),i.updated=null,i.set_during_effect=!1,i.trace=null),i}function Y(t,e){let i=$r(t,e);return Uc(i),i}function is(t,e=!1,i=!0){var n,s;let o=$r(t);return e||(o.equals=Za),Jr&&i&&Ht!==null&&Ht.l!==null&&((s=(n=Ht.l).s)!=null?s:n.s=[]).push(o),o}function O(t,e,i=!1){var n;Pt!==null&&(!nr||(Pt.f&262144)!==0)&&ts()&&(Pt.f&262162)!==0&&!((n=qo)!=null&&n[1].includes(t)&&qo[0]===Pt)&&Ig();let o=i?ri(e):e;return Ae&&Dc(o,t.label),ol(t,o)}function ol(t,e){if(!t.equals(e)){var i=t.v;if(fs?il.set(t,e):il.set(t,i),t.v=e,Ae&&es&&(t.updated=ps("UpdatedAt"),gt!==null&&(t.set_during_effect=!0)),(t.f&2)!==0&&((t.f&2048)!==0&&Lp(t),bn(t,(t.f&256)===0?1024:4096)),t.wv=Yl(),Pg(t,2048),ts()&&gt!==null&&(gt.f&1024)!==0&&(gt.f&96)===0&&(or===null?Ag([t]):or.push(t)),Ae&&ta.size>0){let o=Array.from(ta);for(let n of o)(n.f&1024)!==0&&bn(n,4096),oa(n)&&nl(n);ta.clear()}}return e}function Pg(t,e){var i=t.reactions;if(i!==null)for(var o=ts(),n=i.length,s=0;s<n;s++){var l=i[s],d=l.f;if((d&2048)===0&&!(!o&&l===gt)){if(Ae&&(d&262144)!==0){ta.add(l);continue}bn(l,e),(d&1280)!==0&&((d&2)!==0?Pg(l,4096):Xl(l))}}}var rl="font-weight: bold",sl="font-weight: normal";function Mg(t,e,i){Ae?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`,sl,al):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function Mg(t){Me?console.warn(`%c[svelte] hydration_html_changed
29
+ https://svelte.dev/e/hydration_attribute_changed`,rl,sl):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function Lg(t){Ae?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`,sl,al):console.warn("https://svelte.dev/e/hydration_html_changed")}function Vs(t){Me?console.warn(`%c[svelte] hydration_mismatch
31
+ https://svelte.dev/e/hydration_html_changed`,rl,sl):console.warn("https://svelte.dev/e/hydration_html_changed")}function Ms(t){Ae?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`,sl,al):console.warn("https://svelte.dev/e/hydration_mismatch")}function Lg(){Me?console.warn(`%c[svelte] lifecycle_double_unmount
33
+ https://svelte.dev/e/hydration_mismatch`,rl,sl):console.warn("https://svelte.dev/e/hydration_mismatch")}function Vg(){Ae?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`,sl,al):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function Vg(){Me?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",sl,al):console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Uc(t){Me?console.warn(`%c[svelte] state_proxy_equality_mismatch
35
+ https://svelte.dev/e/lifecycle_double_unmount`,rl,sl):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function Rg(){Ae?console.warn("%c[svelte] select_multiple_invalid_value\n%cThe `value` property of a `<select multiple>` element should be an array, but it received a non-array value. The selection will be kept as is.\nhttps://svelte.dev/e/select_multiple_invalid_value",rl,sl):console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function zc(t){Ae?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`,sl,al):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var Je=!1;function ao(t){Je=t}var _t;function $i(t){if(t===null)throw Vs(),es;return _t=t}function qi(){return $i(jo(_t))}function h(t){if(Je){if(jo(_t)!==null)throw Vs(),es;_t=t}}function Te(t=1){if(Je){for(var e=t,i=_t;e--;)i=jo(i);_t=i}}function ra(){for(var t=0,e=_t;;){if(e.nodeType===Zn){var i=e.data;if(i===Js){if(t===0)return e;t-=1}else(i===Ps||i===As)&&(t+=1)}var o=jo(e);e.remove(),e=o}}function zc(t){if(!t||t.nodeType!==Zn)throw Vs(),es;return t.data}function Rg(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:n}=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(il(this[a])===s){Uc("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(il(this[a])===s){Uc("array.lastIndexOf(...)");break}}return d},t.includes=function(s,l){let d=n.call(this,s,l);if(!d){for(let a=0;a<this.length;a+=1)if(il(this[a])===s){Uc("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var sa,Ng,od,Og,Bg;function Wc(){if(sa===void 0){sa=window,Ng=document,od=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;Og=an(e,"firstChild").get,Bg=an(e,"nextSibling").get,wp(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),wp(i)&&(i.__t=void 0),Me&&(t.__svelte_meta=null,Rg())}}function yn(t=""){return document.createTextNode(t)}function Ci(t){return Og.call(t)}function jo(t){return Bg.call(t)}function _(t,e){if(!Je)return Ci(t);var i=Ci(_t);if(i===null)i=_t.appendChild(yn());else if(e&&i.nodeType!==Ya){var o=yn();return i==null||i.before(o),$i(o),o}return $i(i),i}function ge(t,e){var n,s;if(!Je){var i=Ci(t);return i.nodeType===8&&i.data===""?jo(i):i}if(e&&((n=_t)==null?void 0:n.nodeType)!==Ya){var o=yn();return(s=_t)==null||s.before(o),$i(o),o}return _t}function P(t,e=1,i=!1){let o=Je?_t:t;for(var n;e--;)n=o,o=jo(o);if(!Je)return o;if(i&&(o==null?void 0:o.nodeType)!==Ya){var s=yn();return o===null?n==null||n.after(s):o.before(s),$i(s),s}return $i(o),o}function nd(t){t.textContent=""}function Np(t){ht===null&&kt===null&&hg(t),kt!==null&&(kt.f&256)!==0&&ht===null&&gg(),vs&&vg(t)}function d_(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function aa(t,e,i,o=!0){var a;var n=ht;if(Me)for(;n!==null&&(n.f&262144)!==0;)n=n.parent;var s={ctx:Nt,deps:null,nodes_start:null,nodes_end:null,f:t|2048,first:null,fn:e,last:null,next:null,parent:n,prev:null,teardown:null,transitions:null,wv:0};if(Me&&(s.component_function=Xn),i)try{rl(s),s.f|=32768}catch(u){throw Ki(s),u}else e!==null&&id(s);var l=i&&s.deps===null&&s.first===null&&s.nodes_start===null&&s.teardown===null&&(s.f&1048704)===0;if(!l&&o&&(n!==null&&d_(s,n),kt!==null&&(kt.f&2)!==0)){var d=kt;((a=d.effects)!=null?a:d.effects=[]).push(s)}return s}function qo(t){let e=aa(8,null,!1);return $n(e,1024),e.teardown=t,e}function We(t){var n;Np("$effect");var e=ht!==null&&(ht.f&32)!==0&&Nt!==null&&!Nt.m;if(Me&&ro(t,"name",{value:"$effect"}),e){var i=Nt;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:ht,reaction:kt})}else{var o=Io(t);return o}}function ad(t){return Np("$effect.pre"),Me&&ro(t,"name",{value:"$effect.pre"}),Yo(t)}function Gc(t){let e=aa(64,t,!0);return()=>{Ki(e)}}function Hg(t){let e=aa(64,t,!0);return(i={})=>new Promise(o=>{i.outro?On(e,()=>{Ki(e),o(void 0)}):(Ki(e),o(void 0))})}function Io(t){return aa(4,t,!1)}function Yo(t){return aa(8,t,!0)}function B(t,e=[],i=Lr){if(Me)return Yo(()=>{var n=ht,s=()=>t(...l.map(r));ro(n.fn,"name",{value:"{expression}"}),ro(s,"name",{value:"{expression}"});let l=e.map(i);Gi(s)});let o=e.map(i);return Gi(()=>t(...o.map(r)))}function Gi(t,e=0){return aa(24|e,t,!0)}function Di(t,e=!0){return aa(40,t,!0,e)}function Op(t){var e=t.teardown;if(e!==null){let i=vs,o=kt;Vp(!0),Wi(null);try{e.call(null)}finally{Vp(i),Wi(o)}}}function Bp(t,e=!1){var i=t.first;for(t.first=t.last=null;i!==null;){var o=i.next;(i.f&64)!==0?i.parent=null:Ki(i,e),i=o}}function Fg(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&Ki(e),e=i}}function Ki(t,e=!0){var i=!1;(e||(t.f&524288)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(Dp(t.nodes_start,t.nodes_end),i=!0),Bp(t,e&&!i),ld(t,0),$n(t,16384);var o=t.transitions;if(o!==null)for(let s of o)s.stop();Op(t);var n=t.parent;n!==null&&n.first!==null&&Hp(t),Me&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Dp(t,e){for(;t!==null;){var i=t===e?null:jo(t);t.remove(),t=i}}function Hp(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 On(t,e){var i=[];Qc(t,i,!0),Fp(i,()=>{Ki(t),e&&e()})}function Fp(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function Qc(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 n=o.next,s=(o.f&65536)!==0||(o.f&32)!==0;Qc(o,e,s?i:!1),o=n}}}function _s(t){Ug(t,!0)}function Ug(t,e){if((t.f&8192)!==0){t.f^=8192;for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;Ug(i,n?e:!1),i=o}if(t.transitions!==null)for(let s of t.transitions)(s.is_global||e)&&s.in()}}var dd=[],Up=[];function zg(){var t=dd;dd=[],Ls(t)}function c_(){var t=Up;Up=[],Ls(t)}function xn(t){dd.length===0&&queueMicrotask(zg),dd.push(t)}function Wg(){dd.length>0&&zg(),Up.length>0&&c_()}function qg(t){var e=ht;if(Me&&t instanceof Error&&u_(t,e),(e.f&32768)===0){if((e.f&128)===0)throw t;e.fn(t)}else cd(t,e)}function cd(t,e){for(;e!==null;){if((e.f&128)!==0)try{e.fn(t);return}catch(i){}e=e.parent}throw t}var Kg=new WeakSet;function u_(t,e){var l,d;if(Kg.has(t))return;Kg.add(t);let i=an(t,"message");if(!(i&&!i.configurable)){for(var o=od?" ":" ",n=`
37
+ https://svelte.dev/e/state_proxy_equality_mismatch`,rl,sl):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var Je=!1;function ho(t){Je=t}var ht;function $i(t){if(t===null)throw Ms(),Xr;return ht=t}function Wi(){return $i(Go(ht))}function h(t){if(Je){if(Go(ht)!==null)throw Ms(),Xr;ht=t}}function Ce(t=1){if(Je){for(var e=t,i=ht;e--;)i=Go(i);ht=i}}function na(){for(var t=0,e=ht;;){if(e.nodeType===er){var i=e.data;if(i===Xs){if(t===0)return e;t-=1}else(i===Es||i===ks)&&(t+=1)}var o=Go(e);e.remove(),e=o}}function Wc(t){if(!t||t.nodeType!==er)throw Ms(),Xr;return t.data}function Ng(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:n}=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(tl(this[a])===s){zc("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(tl(this[a])===s){zc("array.lastIndexOf(...)");break}}return d},t.includes=function(s,l){let d=n.call(this,s,l);if(!d){for(let a=0;a<this.length;a+=1)if(tl(this[a])===s){zc("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var ra,Og,Jl,Bg,Dg;function Kc(){if(ra===void 0){ra=window,Og=document,Jl=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;Bg=en(e,"firstChild").get,Dg=en(e,"nextSibling").get,Sp(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),Sp(i)&&(i.__t=void 0),Ae&&(t.__svelte_meta=null,Ng())}}function $n(t=""){return document.createTextNode(t)}function yi(t){return Bg.call(t)}function Go(t){return Dg.call(t)}function _(t,e){if(!Je)return yi(t);var i=yi(ht);if(i===null)i=ht.appendChild($n());else if(e&&i.nodeType!==ja){var o=$n();return i==null||i.before(o),$i(o),o}return $i(i),i}function he(t,e){var n,s;if(!Je){var i=yi(t);return i.nodeType===8&&i.data===""?Go(i):i}if(e&&((n=ht)==null?void 0:n.nodeType)!==ja){var o=$n();return(s=ht)==null||s.before(o),$i(o),o}return ht}function P(t,e=1,i=!1){let o=Je?ht:t;for(var n;e--;)n=o,o=Go(o);if(!Je)return o;if(i&&(o==null?void 0:o.nodeType)!==ja){var s=$n();return o===null?n==null||n.after(s):o.before(s),$i(s),s}return $i(o),o}function ed(t){t.textContent=""}function Op(t){gt===null&&Pt===null&&_g(t),Pt!==null&&(Pt.f&256)!==0&&gt===null&&hg(),fs&&gg(t)}function u0(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 n=gt;if(Ae)for(;n!==null&&(n.f&262144)!==0;)n=n.parent;var s={ctx:Ht,deps:null,nodes_start:null,nodes_end:null,f:t|2048,first:null,fn:e,last:null,next:null,parent:n,prev:null,teardown:null,transitions:null,wv:0};if(Ae&&(s.component_function=tr),i)try{nl(s),s.f|=32768}catch(u){throw zi(s),u}else e!==null&&Xl(s);var l=i&&s.deps===null&&s.first===null&&s.nodes_start===null&&s.teardown===null&&(s.f&1048704)===0;if(!l&&o&&(n!==null&&u0(s,n),Pt!==null&&(Pt.f&2)!==0)){var d=Pt;((a=d.effects)!=null?a:d.effects=[]).push(s)}return s}function Wo(t){let e=sa(8,null,!1);return bn(e,1024),e.teardown=t,e}function Ge(t){var n;Op("$effect");var e=gt!==null&&(gt.f&32)!==0&&Ht!==null&&!Ht.m;if(Ae&&vo(t,"name",{value:"$effect"}),e){var i=Ht;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:gt,reaction:Pt})}else{var o=Po(t);return o}}function od(t){return Op("$effect.pre"),Ae&&vo(t,"name",{value:"$effect.pre"}),Qo(t)}function Qc(t){let e=sa(64,t,!0);return()=>{zi(e)}}function Fg(t){let e=sa(64,t,!0);return(i={})=>new Promise(o=>{i.outro?Dn(e,()=>{zi(e),o(void 0)}):(zi(e),o(void 0))})}function Po(t){return sa(4,t,!1)}function Qo(t){return sa(8,t,!0)}function B(t,e=[],i=Rr){if(Ae)return Qo(()=>{var n=gt,s=()=>t(...l.map(r));vo(n.fn,"name",{value:"{expression}"}),vo(s,"name",{value:"{expression}"});let l=e.map(i);Ki(s)});let o=e.map(i);return Ki(()=>t(...o.map(r)))}function Ki(t,e=0){return sa(24|e,t,!0)}function Ri(t,e=!0){return sa(40,t,!0,e)}function Bp(t){var e=t.teardown;if(e!==null){let i=fs,o=Pt;Rp(!0),Ui(null);try{e.call(null)}finally{Rp(i),Ui(o)}}}function Dp(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:zi(i,e),i=o}}function Ug(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&zi(e),e=i}}function zi(t,e=!0){var i=!1;(e||(t.f&524288)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(Hp(t.nodes_start,t.nodes_end),i=!0),Dp(t,e&&!i),nd(t,0),bn(t,16384);var o=t.transitions;if(o!==null)for(let s of o)s.stop();Bp(t);var n=t.parent;n!==null&&n.first!==null&&Fp(t),Ae&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Hp(t,e){for(;t!==null;){var i=t===e?null:Go(t);t.remove(),t=i}}function Fp(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 Dn(t,e){var i=[];jc(t,i,!0),Up(i,()=>{zi(t),e&&e()})}function Up(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function jc(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 n=o.next,s=(o.f&65536)!==0||(o.f&32)!==0;jc(o,e,s?i:!1),o=n}}}function gs(t){zg(t,!0)}function zg(t,e){if((t.f&8192)!==0){t.f^=8192;for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;zg(i,n?e:!1),i=o}if(t.transitions!==null)for(let s of t.transitions)(s.is_global||e)&&s.in()}}var rd=[],zp=[];function Wg(){var t=rd;rd=[],As(t)}function p0(){var t=zp;zp=[],As(t)}function yn(t){rd.length===0&&queueMicrotask(Wg),rd.push(t)}function Kg(){rd.length>0&&Wg(),zp.length>0&&p0()}function Gg(t){var e=gt;if(Ae&&t instanceof Error&&f0(t,e),(e.f&32768)===0){if((e.f&128)===0)throw t;e.fn(t)}else sd(t,e)}function sd(t,e){for(;e!==null;){if((e.f&128)!==0)try{e.fn(t);return}catch(i){}e=e.parent}throw t}var qg=new WeakSet;function f0(t,e){var l,d;if(qg.has(t))return;qg.add(t);let i=en(t,"message");if(!(i&&!i.configurable)){for(var o=Jl?" ":" ",n=`
38
38
  ${o}in ${((l=e.fn)==null?void 0:l.name)||"<unknown>"}`,s=e.ctx;s!==null;)n+=`
39
- ${o}in ${(d=s.function)==null?void 0:d[Ln].split("/").pop()}`,s=s.p;ro(t,"message",{value:t.message+`
39
+ ${o}in ${(d=s.function)==null?void 0:d[Rn].split("/").pop()}`,s=s.p;vo(t,"message",{value:t.message+`
40
40
  ${n}
41
- `}),t.stack&&ro(t,"stack",{value:t.stack.split(`
41
+ `}),t.stack&&vo(t,"stack",{value:t.stack.split(`
42
42
  `).filter(a=>!a.includes("svelte/src/internal")).join(`
43
- `)})}}var la=!1,ll=null,da=!1,vs=!1;function Vp(t){vs=t}var ud=[],pd=[],kt=null,tr=!1;function Wi(t){kt=t}var ht=null;function so(t){ht=t}var Qo=null;function Fc(t){kt!==null&&kt.f&2097152&&(Qo===null?Qo=[kt,[t]]:Qo[1].push(t))}var wn=null,ir=0,er=null;function Pg(t){er=t}var jg=1,Yc=0,gs=!1,Zc=null;function ed(){return++jg}function na(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 n,s,l=(e&512)!==0,d=o&&ht!==null&&!gs,a=i.length;if(l||d){var u=t,f=u.parent;for(n=0;n<a;n++)s=i[n],(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(n=0;n<a;n++)if(s=i[n],na(s)&&Lp(s),s.wv>t.wv)return!0}(!o||ht!==null&&!gs)&&$n(t,1024)}return!1}function Yg(t,e,i=!0){var o=t.reactions;if(o!==null)for(var n=0;n<o.length;n++){var s=o[n];Qo!=null&&Qo[1].includes(t)&&Qo[0]===kt||((s.f&2)!==0?Yg(s,e,!1):e===s&&(i?$n(s,2048):(s.f&1024)!==0&&$n(s,4096),id(s)))}}function Hc(t){var y,w;var e=wn,i=ir,o=er,n=kt,s=gs,l=Qo,d=Nt,a=tr,u=t.f;wn=null,ir=0,er=null,gs=(u&256)!==0&&(tr||!da||kt===null),kt=(u&96)===0?t:null,Qo=null,Zl(t.ctx),tr=!1,Yc++,t.f|=2097152;try{var f=(0,t.fn)(),v=t.deps;if(wn!==null){var p;if(ld(t,ir),v!==null&&ir>0)for(v.length=ir+wn.length,p=0;p<wn.length;p++)v[ir+p]=wn[p];else t.deps=v=wn;if(!gs||(u&2)!==0&&t.reactions!==null)for(p=ir;p<v.length;p++)((w=(y=v[p]).reactions)!=null?w:y.reactions=[]).push(t)}else v!==null&&ir<v.length&&(ld(t,ir),v.length=ir);if(os()&&er!==null&&!tr&&v!==null&&(t.f&6146)===0)for(p=0;p<er.length;p++)Yg(er[p],t);return n!==null&&n!==t&&(Yc++,er!==null&&(o===null?o=er:o.push(...er))),f}catch($){qg($)}finally{wn=e,ir=i,er=o,kt=n,gs=s,Qo=l,Zl(d),tr=a,t.f^=2097152}}function p_(t,e){let i=e.reactions;if(i!==null){var o=dg.call(i,t);if(o!==-1){var n=i.length-1;n===0?i=e.reactions=null:(i[o]=i[n],i.pop())}}i===null&&(e.f&2)!==0&&(wn===null||!wn.includes(e))&&($n(e,4096),(e.f&768)===0&&(e.f^=512),Dc(e),ld(e,0))}function ld(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)p_(t,i[o])}function rl(t){var e=t.f;if((e&16384)===0){$n(t,1024);var i=ht,o=da;if(ht=t,da=!0,Me){var n=Xn;Xl(t.component_function)}try{(e&16)!==0?Fg(t):Bp(t),Op(t);var s=Hc(t);if(t.teardown=typeof s=="function"?s:null,t.wv=jg,Me&&is&&(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);Me&&pd.push(t)}finally{da=o,ht=i,Me&&Xl(n)}}}function Gg(){console.error("Last ten effects were: ",pd.slice(-10).map(t=>t.fn)),pd=[]}function f_(){try{_g()}catch(t){if(Me&&ro(t,"stack",{value:""}),ll!==null)if(Me)try{cd(t,ll)}catch(e){throw Gg(),e}else cd(t,ll);else throw Me&&Gg(),t}}function Wp(){var t=da;try{var e=0;for(da=!0;ud.length>0;){e++>1e3&&f_();var i=ud,o=i.length;ud=[];for(var n=0;n<o;n++){var s=v_(i[n]);m_(s)}ol.clear()}}finally{la=!1,da=t,ll=null,Me&&(pd=[])}}function m_(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];(o.f&24576)===0&&na(o)&&(rl(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?Hp(o):o.fn=null))}}function id(t){la||(la=!0,queueMicrotask(Wp));for(var e=ll=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}ud.push(e)}function v_(t){for(var e=[],i=t;i!==null;){var o=i.f,n=(o&96)!==0,s=n&&(o&1024)!==0;if(!s&&(o&8192)===0){(o&4)!==0?e.push(i):n?i.f^=1024:na(i)&&rl(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 dl(t){var e;for(t&&(la=!0,Wp(),la=!0,e=t());;){if(Wg(),ud.length===0)return la=!1,ll=null,Me&&(pd=[]),e;la=!0,Wp()}}function ko(){return xt(this,null,function*(){yield Promise.resolve(),dl()})}function r(t){var e=t.f,i=(e&2)!==0;if(Zc!==null&&Zc.add(t),kt!==null&&!tr){if(!(Qo!=null&&Qo[1].includes(t))||Qo[0]!==kt){var o=kt.deps;t.rv<Yc&&(t.rv=Yc,wn===null&&o!==null&&o[ir]===t?ir++:wn===null?wn=[t]:(!gs||!wn.includes(t))&&wn.push(t))}}else if(i&&t.deps===null&&t.effects===null){var n=t,s=n.parent;s!==null&&(s.f&256)===0&&(n.f^=256)}if(i&&(n=t,na(n)&&Lp(n)),Me&&is&&!tr&&Yl!==null&&kt!==null&&Yl.reaction===kt)if(t.trace)t.trace();else{var l=ms("TracedAt");if(l){var d=Yl.entries.get(t);d===void 0&&(d={traces:[]},Yl.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 vs&&ol.has(t)?ol.get(t):t.v}function wt(t){var e=tr;try{return tr=!0,t()}finally{tr=e}}var g_=-7169;function $n(t,e){t.f=t.f&g_|e}function Jc(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Ko in t)Xc(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Ko in i&&Xc(i)}}}function Xc(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{Xc(t[o],e)}catch(n){}let i=ea(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=Vc(i);for(let n in o){let s=o[n].get;if(s)try{s.call(t)}catch(l){}}}}}function Kp(t,e){if(e){let i=document.body;t.autofocus=!0,xn(()=>{document.activeElement===i&&t.focus()})}}function fd(t){var e=kt,i=ht;Wi(null),so(null);try{return t()}finally{Wi(e),so(i)}}var qp=new Set,eu=new Set;function ca(t){if(!Je)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 Gp(t,e,i,o={}){function n(s){if(o.capture||cl.call(e,s),!s.cancelBubble)return fd(()=>i==null?void 0:i.call(this,s))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?xn(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function Ct(t,e,i,o,n){var s={capture:o,passive:n},l=Gp(t,e,i,s);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&qo(()=>{e.removeEventListener(t,l,s)})}function ct(t){for(var e=0;e<t.length;e++)qp.add(t[e]);for(var i of eu)i(t)}function cl(t){var E;var e=this,i=e.ownerDocument,o=t.type,n=((E=t.composedPath)==null?void 0:E.call(t))||[],s=n[0]||t.target,l=0,d=t.__root;if(d){var a=n.indexOf(d);if(a!==-1&&(e===document||e===window)){t.__root=e;return}var u=n.indexOf(e);if(u===-1)return;a<=u&&(l=a)}if(s=n[l]||t.target,s!==e){ro(t,"currentTarget",{configurable:!0,get(){return s||i}});var f=kt,v=ht;Wi(null),so(null);try{for(var p,y=[];s!==null;){var w=s.assignedSlot||s.parentNode||s.host||null;try{var $=s["__"+o];if($!=null&&(!s.disabled||t.target===s))if(Yn($)){var[S,...T]=$;S.apply(s,[t,...T])}else $.call(s,t)}catch(V){p?y.push(V):p=V}if(t.cancelBubble||w===e||w===null)break;s=w}if(p){for(let V of y)queueMicrotask(()=>{throw V});throw p}}finally{t.__root=e,delete t.currentTarget,Wi(f),so(v)}}}var __;function Zg(){__=void 0}function ul(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function Po(t,e){var i=ht;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function A(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,s=!t.startsWith("<!>");return()=>{if(Je)return Po(_t,null),_t;n===void 0&&(n=ul(s?t:"<!>"+t),i||(n=Ci(n)));var l=o||od?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=Ci(l),a=l.lastChild;Po(d,a)}else Po(l,l);return l}}function y_(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,s=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(Je)return Po(_t,null),_t;if(!l){var d=ul(s),a=Ci(d);if(n)for(l=document.createDocumentFragment();Ci(a);)l.appendChild(Ci(a));else l=Ci(a)}var u=l.cloneNode(!0);if(n){var f=Ci(u),v=u.lastChild;Po(f,v)}else Po(u,u);return u}}function Ee(t,e){return y_(t,e,"svg")}function rs(t=""){if(!Je){var e=yn(t+"");return Po(e,e),e}var i=_t;return i.nodeType!==Ya&&(i.before(i=yn()),$i(i)),Po(i,i),i}function ze(){if(Je)return Po(_t,null),_t;var t=document.createDocumentFragment(),e=document.createComment(""),i=yn();return t.append(e,i),Po(e,i),t}function b(t,e){if(Je){ht.nodes_end=_t,qi();return}t!==null&&t.before(e)}var x_=/\r/g;function Jg(t){t=t.replace(x_,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function eh(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var w_=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function th(t){return w_.includes(t)}var S_=["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 C_={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 ih(t){var e;return t=t.toLowerCase(),(e=C_[t])!=null?e:t}var p9=[...S_,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var T_=["touchstart","touchmove"];function oh(t){return T_.includes(t)}var E_=["$state","$state.raw","$derived","$derived.by"],f9=[...E_,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var I_=["textarea","script","style","title"];function nh(t){return I_.includes(t)}function tu(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var md=!0;function iu(t){md=t}function ye(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 ss(t,e){return rh(t,e)}function jp(t,e){var l;Wc(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=Je,n=_t;try{for(var s=Ci(i);s&&(s.nodeType!==Zn||s.data!==Ps);)s=jo(s);if(!s)throw es;ao(!0),$i(s),qi();let d=rh(t,Bt(z({},e),{anchor:s}));if(_t===null||_t.nodeType!==Zn||_t.data!==Js)throw Vs(),es;return ao(!1),d}catch(d){if(d===es)return e.recover===!1&&bg(),Wc(),nd(i),ao(!1),ss(t,e);throw d}finally{ao(o),$i(n),Zg()}}var pl=new Map;function rh(t,{target:e,anchor:i,props:o={},events:n,context:s,intro:l=!0}){Wc();var d=new Set,a=v=>{for(var p=0;p<v.length;p++){var y=v[p];if(!d.has(y)){d.add(y);var w=oh(y);e.addEventListener(y,cl,{passive:w});var $=pl.get(y);$===void 0?(document.addEventListener(y,cl,{passive:w}),pl.set(y,1)):pl.set(y,$+1)}}};a(jl(qp)),eu.add(a);var u=void 0,f=Hg(()=>{var v=i!=null?i:e.appendChild(yn());return Di(()=>{if(s){F({});var p=Nt;p.c=s}n&&(o.$$events=n),Je&&Po(v,null),md=l,u=t(v,o)||{},md=!0,Je&&(ht.nodes_end=_t),s&&U()}),()=>{var w;for(var p of d){e.removeEventListener(p,cl);var y=pl.get(p);--y===0?(document.removeEventListener(p,cl),pl.delete(p)):pl.set(p,y)}eu.delete(a),v!==i&&((w=v.parentNode)==null||w.removeChild(v))}});return Qp.set(u,f),u}var Qp=new WeakMap;function ua(t,e){let i=Qp.get(t);return i?(Qp.delete(t),i(e)):(Me&&Lg(),Promise.resolve())}function we(t,e,...i){var o=t,n=de,s;Gi(()=>{n!==(n=e())&&(s&&(Ki(s),s=null),Me&&n==null&&$g(),s=Di(()=>n(o,...i)))},65536),Je&&(o=_t)}if(Me){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;wg(e)},set:o=>{i=o}})}};M_=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var M_;function Dt(t){Nt===null&&Ja("onMount"),ts&&Nt.l!==null?A_(Nt).m.push(t):We(()=>{let e=wt(t);if(typeof e=="function")return e})}function cn(t){Nt===null&&Ja("onDestroy"),Dt(()=>()=>wt(t))}function A_(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}var sh=new Map;function ah(t,e){var i=sh.get(t);i||(i=new Set,sh.set(t,i)),i.add(e)}function L(t,e,[i,o]=[0,0]){Je&&i===0&&qi();var n=t,s=null,l=null,d=ji,a=i>0?65536:0,u=!1;let f=(p,y=!0)=>{u=!0,v(y,p)},v=(p,y)=>{if(d===(d=p))return;let w=!1;if(Je&&o!==-1){if(i===0){let S=zc(n);S===Ps?o=0:S===As?o=1/0:(o=parseInt(S.substring(1)),o!==o&&(o=d?1/0:-1))}let $=o>i;!!d===$&&(n=ra(),$i(n),ao(!1),w=!0,o=-1)}d?(s?_s(s):y&&(s=Di(()=>y(n))),l&&On(l,()=>{l=null})):(l?_s(l):y&&(l=Di(()=>y(n,[i+1,o]))),s&&On(s,()=>{s=null})),w&&ao(!0)};Gi(()=>{u=!1,e(f),u||v(null,null)},a),Je&&(n=_t)}function pa(t,e,i){Je&&qi();var o=t,n=ji,s,l=os()?fg:Za;Gi(()=>{l(n,n=e())&&(s&&On(s),s=Di(()=>i(o)))}),Je&&(o=_t)}var Ns=null;function Xp(t){Ns=t}function vd(t,e){return e}function R_(t,e,i,o){for(var n=[],s=e.length,l=0;l<s;l++)Qc(e[l].e,n,!0);var d=s>0&&n.length===0&&i!==null;if(d){var a=i.parentNode;nd(a),a.append(i),o.clear(),Rs(t,e[0].prev,e[s-1].next)}Fp(n,()=>{for(var u=0;u<s;u++){var f=e[u];d||(o.delete(f.k),Rs(t,f.prev,f.next)),Ki(f.e,!d)}})}function ki(t,e,i,o,n,s=null){var l=t,d={flags:e,items:new Map,first:null},a=(e&4)!==0;if(a){var u=t;l=Je?$i(Ci(u)):u.appendChild(yn())}Je&&qi();var f=null,v=!1,p=Vr(()=>{var y=i();return Yn(y)?y:y==null?[]:jl(y)});Gi(()=>{var y=r(p),w=y.length;if(v&&w===0)return;v=w===0;let $=!1;if(Je){var S=zc(l)===As;S!==(w===0)&&(l=ra(),$i(l),ao(!1),$=!0)}if(Je){for(var T=null,E,V=0;V<w;V++){if(_t.nodeType===Zn&&_t.data===Js){l=_t,$=!0,ao(!1);break}var k=y[V],I=o(k,V);E=ch(_t,d,T,null,k,I,V,n,e,i),d.items.set(I,E),T=E}w>0&&$i(ra())}Je||N_(y,d,l,n,e,o,i),s!==null&&(w===0?f?_s(f):f=Di(()=>s(l)):f!==null&&On(f,()=>{f=null})),$&&ao(!0),r(p)}),Je&&(l=_t)}function N_(t,e,i,o,n,s,l){var re,pe,xe,fe;var d=(n&8)!==0,a=(n&3)!==0,u=t.length,f=e.items,v=e.first,p=v,y,w=null,$,S=[],T=[],E,V,k,I;if(d)for(I=0;I<u;I+=1)E=t[I],V=s(E,I),k=f.get(V),k!==void 0&&((re=k.a)==null||re.measure(),($!=null?$:$=new Set).add(k));for(I=0;I<u;I+=1){if(E=t[I],V=s(E,I),k=f.get(V),k===void 0){var R=p?p.e.nodes_start:i;w=ch(R,e,w,w===null?e.first:w.next,E,V,I,o,n,l),f.set(V,w),S=[],T=[],p=w.next;continue}if(a&&O_(k,E,I,n),(k.e.f&8192)!==0&&(_s(k.e),d&&((pe=k.a)==null||pe.unfix(),($!=null?$:$=new Set).delete(k))),k!==p){if(y!==void 0&&y.has(k)){if(S.length<T.length){var Z=T[0],D;w=Z.prev;var H=S[0],W=S[S.length-1];for(D=0;D<S.length;D+=1)lh(S[D],Z,i);for(D=0;D<T.length;D+=1)y.delete(T[D]);Rs(e,H.prev,W.next),Rs(e,w,H),Rs(e,W,Z),p=Z,w=W,I-=1,S=[],T=[]}else y.delete(k),lh(k,p,i),Rs(e,k.prev,k.next),Rs(e,k,w===null?e.first:w.next),Rs(e,w,k),w=k;continue}for(S=[],T=[];p!==null&&p.k!==V;)(p.e.f&8192)===0&&(y!=null?y:y=new Set).add(p),T.push(p),p=p.next;if(p===null)continue;k=p}S.push(k),w=k,p=k.next}if(p!==null||y!==void 0){for(var X=y===void 0?[]:jl(y);p!==null;)(p.e.f&8192)===0&&X.push(p),p=p.next;var j=X.length;if(j>0){var ce=(n&4)!==0&&u===0?i:null;if(d){for(I=0;I<j;I+=1)(xe=X[I].a)==null||xe.measure();for(I=0;I<j;I+=1)(fe=X[I].a)==null||fe.fix()}R_(e,X,ce,f)}}d&&xn(()=>{var ie;if($!==void 0)for(k of $)(ie=k.a)==null||ie.apply()}),ht.first=e.first&&e.first.e,ht.last=w&&w.e}function O_(t,e,i,o){(o&1)!==0&&nl(t.v,e),(o&2)!==0?nl(t.i,i):t.i=i}function ch(t,e,i,o,n,s,l,d,a,u){var f=Ns,v=(a&1)!==0,p=(a&16)===0,y=v?p?ns(n,!1,!1):br(n):n,w=(a&2)===0?l:br(l);Me&&v&&(y.trace=()=>{var S=typeof w=="number"?l:w.v;u()[S]});var $={i:w,v:y,k:s,a:null,e:null,prev:i,next:o};Ns=$;try{return $.e=Di(()=>d(t,y,w,u),Je),$.e.prev=i&&i.e,$.e.next=o&&o.e,i===null?e.first=$:(i.next=$,i.e.next=$.e),o!==null&&(o.prev=$,o.e.prev=$.e),$}finally{Ns=f}}function lh(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,n=e?e.e.nodes_start:i,s=t.e.nodes_start;s!==o;){var l=jo(s);n.before(s),s=l}}function Rs(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 B_(t,e,i){var s,l;if(!e||e===Jg(String(i!=null?i:"")))return;let o,n=(s=t.__svelte_meta)==null?void 0:s.loc;n?o=`near ${n.file}:${n.line}:${n.column}`:(l=Xn)!=null&&l[Ln]&&(o=`in ${Xn[Ln]}`),Mg(tu(o))}function gd(t,e,i=!1,o=!1,n=!1){var s=t,l="";B(()=>{var y;var d=ht;if(l===(l=(y=e())!=null?y:"")){Je&&qi();return}if(d.nodes_start!==null&&(Dp(d.nodes_start,d.nodes_end),d.nodes_start=d.nodes_end=null),l!==""){if(Je){for(var a=_t.data,u=qi(),f=u;u!==null&&(u.nodeType!==Zn||u.data!=="");)f=u,u=jo(u);if(u===null)throw Vs(),es;Me&&!n&&B_(u.parentNode,a,l),Po(_t,f),s=$i(u);return}var v=l+"";i?v=`<svg>${v}</svg>`:o&&(v=`<math>${v}</math>`);var p=ul(v);if((i||o)&&(p=Ci(p)),Po(Ci(p),p.lastChild),i||o)for(;Ci(p);)s.before(Ci(p));else s.before(p)}})}function Pi(t,e,i){Je&&qi();var o=t,n,s;Gi(()=>{n!==(n=e())&&(s&&(On(s),s=null),n&&(s=Di(()=>i(o,n))))},65536),Je&&(o=_t)}function fa(t,e,i,o,n,s){var w;let l=Je;Je&&qi();var d=Me&&s&&((w=Nt)==null?void 0:w.function[Ln]),a,u,f=null;Je&&_t.nodeType===Nc&&(f=_t,qi());var v=Je?_t:t,p,y=Ns;Gi(()=>{let $=e()||null;var S=n?n():i||$==="svg"?Mc:null;if($!==a){var T=Ns;Xp(y),p&&($===null?On(p,()=>{p=null,u=null}):$===u?_s(p):(Ki(p),iu(!1))),$&&$!==u&&(p=Di(()=>{if(f=Je?f:S?document.createElementNS(S,$):document.createElement($),Me&&s&&(f.__svelte_meta={loc:{file:d,line:s[0],column:s[1]}}),Po(f,f),o){Je&&nh($)&&f.append(document.createComment(""));var E=Je?Ci(f):f.appendChild(yn());Je&&(E===null?ao(!1):$i(E)),o(f,E)}ht.nodes_end=f,v.before(f)})),a=$,a&&(u=a),iu(!0),Xp(T)}},65536),l&&(ao(!0),$i(v))}var ef;function uh(t){return ef=t.target,new Jp(t)}var bs,$r,Jp=class{constructor(e){ks(this,bs);ks(this,$r);var s,l;var i=new Map,o=(d,a)=>{var u=ns(a,!1,!1);return i.set(d,u),u};let n=new Proxy(Bt(z({},e.props||{}),{$$events:{}}),{get(d,a){var u;return r((u=i.get(a))!=null?u:o(a,Reflect.get(d,a)))},has(d,a){var u;return a===ja?!0:(r((u=i.get(a))!=null?u:o(a,Reflect.get(d,a))),Reflect.has(d,a))},set(d,a,u){var f;return O((f=i.get(a))!=null?f:o(a,u),u),Reflect.set(d,a,u)}});Qa(this,$r,(e.hydrate?jp:ss)(e.component,{target:e.target,anchor:e.anchor,props:n,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)&&dl(),Qa(this,bs,n.$$events);for(let d of Object.keys(Bi(this,$r)))d==="$set"||d==="$destroy"||d==="$on"||ro(this,d,{get(){return Bi(this,$r)[d]},set(a){Bi(this,$r)[d]=a},enumerable:!0});Bi(this,$r).$set=d=>{Object.assign(n,d)},Bi(this,$r).$destroy=()=>{ua(Bi(this,$r))}}$set(e){Bi(this,$r).$set(e)}$on(e,i){Bi(this,bs)[e]=Bi(this,bs)[e]||[];let o=(...n)=>i.call(this,...n);return Bi(this,bs)[e].push(o),()=>{Bi(this,bs)[e]=Bi(this,bs)[e].filter(n=>n!==o)}}$destroy(){Bi(this,$r).$destroy()}};bs=new WeakMap,$r=new WeakMap;function q(t,e){xn(()=>{var n,s,l;var i=t.getRootNode(),o=i.host?i:(l=(n=i.head)!=null?n:i.ownerDocument.head)!=null?l:(s=ef)==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),Me&&ah(e.hash,d)}})}function $s(t,e){var i=void 0,o;Gi(()=>{i!==(i=e())&&(o&&(Ki(o),o=null),i&&(o=Di(()=>{Io(()=>i(t))})))})}function ph(t){var e,i,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var n=t.length;for(e=0;e<n;e++)t[e]&&(i=ph(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function fh(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=ph(t))&&(o&&(o+=" "),o+=e);return o}function hd(t){return typeof t=="object"?fh(t):t!=null?t:""}var mh=[...`
44
- \r\f\xA0\v\uFEFF`];function gh(t,e,i){var o=t==null?"":""+t;if(e&&(o=o?o+" "+e:e),i){for(var n in i)if(i[n])o=o?o+" "+n:n;else if(o.length)for(var s=n.length,l=0;(l=o.indexOf(n,l))>=0;){var d=l+s;(l===0||mh.includes(o[l-1]))&&(d===o.length||mh.includes(o[d]))?o=(l===0?"":o.substring(0,l))+o.substring(d+1):l=d}}return o===""?null:o}function vh(t,e=!1){var i=e?" !important;":";",o="";for(var n in t){var s=t[n];s!=null&&s!==""&&(o+=" "+n+": "+s+i)}return o}function tf(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function hh(t,e){if(e){var i="",o,n;if(Array.isArray(e)?(o=e[0],n=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)),n&&a.push(...Object.keys(n).map(tf));var u=0,f=-1;let $=t.length;for(var v=0;v<$;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===$-1){if(f!==-1){var y=tf(t.substring(u,f).trim());if(!a.includes(y)){p!==";"&&v++;var w=t.substring(u,v).trim();i+=" "+w+";"}}u=v+1,f=-1}}}}return o&&(i+=vh(o)),n&&(i+=vh(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function te(t,e,i,o,n,s){var l=t.__className;if(Je||l!==i||l===void 0){var d=gh(i,o,s);(!Je||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(s&&n!==s)for(var a in s){var u=!!s[a];(n==null||u!==!!n[a])&&t.classList.toggle(a,u)}return s}function of(t,e={},i,o){for(var n in i){var s=i[n];e[n]!==s&&(i[n]==null?t.style.removeProperty(n):t.style.setProperty(n,s,o))}}function st(t,e,i,o){var n=t.__style;if(Je||n!==e){var s=hh(e,o);(!Je||s!==t.getAttribute("style"))&&(s==null?t.removeAttribute("style"):t.style.cssText=s),t.__style=e}else o&&(Array.isArray(o)?(of(t,i==null?void 0:i[0],o[0]),of(t,i==null?void 0:i[1],o[1],"important")):of(t,i,o));return o}function _d(t,e,i){if(t.multiple){if(e==null)return;if(!Yn(e))return Vg();for(var o of t.options)o.selected=e.includes(_h(o));return}for(o of t.options){var n=_h(o);if(Ip(n,e)){o.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function nf(t){var e=new MutationObserver(()=>{_d(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),qo(()=>{e.disconnect()})}function _h(t){return"__value"in t?t.__value:t.value}var fl=Symbol("class"),ml=Symbol("style"),yh=Symbol("is custom element"),xh=Symbol("is html");function wh(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Fe(t,e,i,o){var n=Ch(t);if(Je&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||q_(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[pg]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Th(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Sh(t,e,i,o,n=!1){var k;var s=Ch(t),l=s[yh],d=!s[xh];let a=Je&&l;a&&ao(!1);var u=e||{},f=t.tagName==="OPTION";for(var v in e)v in i||(i[v]=null);i.class?i.class=hd(i.class):(o||i[fl])&&(i.class=null),i[ml]&&((k=i.style)!=null||(i.style=null));var p=Th(t);for(let I in i){let R=i[I];if(f&&I==="value"&&R==null){t.value=t.__value="",u[I]=R;continue}if(I==="class"){var y=t.namespaceURI==="http://www.w3.org/1999/xhtml";te(t,y,R,o,e==null?void 0:e[fl],i[fl]),u[I]=R,u[fl]=i[fl];continue}if(I==="style"){st(t,R,e==null?void 0:e[ml],i[ml]),u[I]=R,u[ml]=i[ml];continue}var w=u[I];if(!(R===w&&!(R===void 0&&t.hasAttribute(I)))){u[I]=R;var $=I[0]+I[1];if($!=="$$")if($==="on"){let Z={},D="$$"+I,H=I.slice(2);var S=th(H);if(eh(H)&&(H=H.slice(0,-7),Z.capture=!0),!S&&w){if(R!=null)continue;t.removeEventListener(H,u[D],Z),u[D]=null}if(R!=null)if(S)t[`__${H}`]=R,ct([H]);else{let W=function(X){u[I].call(this,X)};var V=W;u[D]=Gp(H,t,W,Z)}else S&&(t[`__${H}`]=void 0)}else if(I==="style")Fe(t,I,R);else if(I==="autofocus")Kp(t,!!R);else if(!l&&(I==="__value"||I==="value"&&R!=null))t.value=t.__value=R;else if(I==="selected"&&f)wh(t,R);else{var T=I;d||(T=ih(T));var E=T==="defaultValue"||T==="defaultChecked";if(R==null&&!l&&!E)if(s[I]=null,T==="value"||T==="checked"){let Z=t,D=e===void 0;if(T==="value"){let H=Z.defaultValue;Z.removeAttribute(T),Z.defaultValue=H,Z.value=Z.__value=D?H:null}else{let H=Z.defaultChecked;Z.removeAttribute(T),Z.defaultChecked=H,Z.checked=D?H:!1}}else t.removeAttribute(I);else E||p.includes(T)&&(l||typeof R!="string")?t[T]=R:typeof R!="function"&&Fe(t,T,R,n)}}}return a&&ao(!0),u}function Ae(t,e,i=[],o,n=!1,s=Lr){let l=i.map(s);var d=void 0,a={},u=t.nodeName==="SELECT",f=!1;if(Gi(()=>{var p=e(...l.map(r)),y=Sh(t,d,p,o,n);f&&u&&"value"in p&&_d(t,p.value,!1);for(let $ of Object.getOwnPropertySymbols(a))p[$]||Ki(a[$]);for(let $ of Object.getOwnPropertySymbols(p)){var w=p[$];$.description===$p&&(!d||w!==d[$])&&(a[$]&&Ki(a[$]),a[$]=Di(()=>$s(t,()=>w))),y[$]=w}d=y}),u){var v=t;Io(()=>{_d(v,d.value),nf(v)})}f=!0}function Ch(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[yh]:t.nodeName.includes("-"),[xh]:t.namespaceURI===rg}}var bh=new Map;function Th(t){var e=bh.get(t.nodeName);if(e)return e;bh.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=Vc(o);for(var s in i)i[s].set&&e.push(s);o=ea(o)}return e}function q_(t,e,i){var o;Me&&(e==="srcset"&&G_(t,i)||rf((o=t.getAttribute(e))!=null?o:"",i)||Ag(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function rf(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function $h(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function G_(t,e){var i=$h(t.srcset),o=$h(e);return o.length===i.length&&o.every(([n,s],l)=>s===i[l][1]&&(rf(i[l][0],n)||rf(n,i[l][0])))}var Q_=Lc?()=>performance.now():()=>Date.now(),Or={tick:t=>(Lc?requestAnimationFrame:de)(t),now:()=>Q_(),tasks:new Set};function Eh(){let t=Or.now();Or.tasks.forEach(e=>{e.c(t)||(Or.tasks.delete(e),e.f())}),Or.tasks.size!==0&&Or.tick(Eh)}function Ih(t){let e;return Or.tasks.size===0&&Or.tick(Eh),{promise:new Promise(i=>{Or.tasks.add(e={c:t,f:i})}),abort(){Or.tasks.delete(e)}}}function ou(t,e){fd(()=>{t.dispatchEvent(new CustomEvent(e))})}function X_(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 kh(t){let e={},i=t.split(";");for(let o of i){let[n,s]=o.split(":");if(!n||s===void 0)break;let l=X_(n.trim());e[l]=s.trim()}return e}var J_=t=>t;function af(t,e,i,o){var V;var n=(t&1)!==0,s=(t&2)!==0,l=n&&s,d=(t&4)!==0,a=l?"both":n?"in":"out",u,f=e.inert,v=e.style.overflow,p,y;function w(){var R;var k=kt,I=ht;Wi(null),so(null);try{return u!=null?u:u=i()(e,(R=o==null?void 0:o())!=null?R:{},{direction:a})}finally{Wi(k),so(I)}}var $={is_global:d,in(){var k;if(e.inert=f,!n){y==null||y.abort(),(k=y==null?void 0:y.reset)==null||k.call(y);return}s||p==null||p.abort(),ou(e,"introstart"),p=sf(e,w(),y,1,()=>{ou(e,"introend"),p==null||p.abort(),p=u=void 0,e.style.overflow=v})},out(k){if(!s){k==null||k(),u=void 0;return}e.inert=!0,ou(e,"outrostart"),y=sf(e,w(),p,0,()=>{ou(e,"outroend"),k==null||k()})},stop:()=>{p==null||p.abort(),y==null||y.abort()}},S=ht;if(((V=S.transitions)!=null?V:S.transitions=[]).push($),n&&md){var T=d;if(!T){for(var E=S.parent;E&&(E.f&65536)!==0;)for(;(E=E.parent)&&(E.f&16)===0;);T=!E||(E.f&32768)!==0}T&&Io(()=>{wt(()=>$.in())})}}function sf(t,e,i,o,n){var s=o===1;if(Ms(e)){var l,d=!1;return xn(()=>{if(!d){var S=e({direction:s?"in":"out"});l=sf(t,S,i,o,n)}}),{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 n(),{abort:de,deactivate:de,reset:de,t:()=>o};let{delay:a=0,css:u,tick:f,easing:v=J_}=e;var p=[];if(s&&i===void 0&&(f&&f(0,1),u)){var y=kh(u(0,1));p.push(y,y)}var w=()=>1-o,$=t.animate(p,{duration:a,fill:"forwards"});return $.onfinish=()=>{var H;$.cancel();var S=(H=i==null?void 0:i.t())!=null?H:1-o;i==null||i.abort();var T=o-S,E=e.duration*Math.abs(T),V=[];if(E>0){var k=!1;if(u)for(var I=Math.ceil(E/16.666666666666668),R=0;R<=I;R+=1){var Z=S+T*v(R/I),D=kh(u(Z,1-Z));V.push(D),k||(k=D.overflow==="hidden")}k&&(t.style.overflow="hidden"),w=()=>{var W=$.currentTime;return S+T*v(W/E)},f&&Ih(()=>{if($.playState!=="running")return!1;var W=w();return f(W,1-W),!0})}$=t.animate(V,{duration:E,fill:"forwards"}),$.onfinish=()=>{w=()=>o,f==null||f(o,1-o),n()}},{abort:()=>{$&&($.cancel(),$.effect=null,$.onfinish=de)},deactivate:()=>{n=de},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>w()}}var Os,vl,bd,ru,Ph,su=class su{constructor(e){ks(this,ru);ks(this,Os,new WeakMap);ks(this,vl);ks(this,bd);Qa(this,bd,e)}observe(e,i){var o=Bi(this,Os).get(e)||new Set;return o.add(i),Bi(this,Os).set(e,o),og(this,ru,Ph).call(this).observe(e,Bi(this,bd)),()=>{var n=Bi(this,Os).get(e);n.delete(i),n.size===0&&(Bi(this,Os).delete(e),Bi(this,vl).unobserve(e))}}};Os=new WeakMap,vl=new WeakMap,bd=new WeakMap,ru=new WeakSet,Ph=function(){var e;return(e=Bi(this,vl))!=null?e:Qa(this,vl,new ResizeObserver(i=>{for(var o of i){su.entries.set(o.target,o);for(var n of Bi(this,Os).get(o.target)||[])n(o)}}))},jn(su,"entries",new WeakMap);var lf=su;var eb=new lf({box:"border-box"});function or(t,e,i){var o=eb.observe(t,()=>i(t[e]));Io(()=>(wt(()=>i(t[e])),o))}function Ah(t,e){return t===e||(t==null?void 0:t[Ko])===e}function rt(t={},e,i,o){return Io(()=>{var n,s;return Yo(()=>{n=s,s=(o==null?void 0:o())||[],wt(()=>{t!==i(...s)&&(e(t,...s),n&&Ah(i(...n),t)&&e(null,...n))})}),()=>{xn(()=>{s&&Ah(i(...s),t)&&e(null,...s)})}}),t}function Br(t=!1){let e=Nt,i=e.l.u;if(!i)return;let o=()=>Jc(e.s);if(t){let n=0,s={},l=Lr(()=>{let d=!1,a=e.s;for(let u in a)a[u]!==s[u]&&(s[u]=a[u],d=!0);return d&&n++,n});o=()=>r(l)}i.b.length&&ad(()=>{Mh(e,o),Ls(i.b)}),We(()=>{let n=wt(()=>i.m.map(ug));return()=>{for(let s of n)typeof s=="function"&&s()}}),i.a.length&&We(()=>{Mh(e,o),Ls(i.a)})}function Mh(t,e){if(t.l.s)for(let i of t.l.s)r(i);e()}function $d(t,e,i){if(t==null)return e(void 0),i&&i(void 0),de;let o=wt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var gl=[];function yr(t,e){return{subscribe:ae(t,e).subscribe}}function ae(t,e=de){let i=null,o=new Set;function n(d){if(Za(t,d)&&(t=d,i)){let a=!gl.length;for(let u of o)u[1](),gl.push(u,t);if(a){for(let u=0;u<gl.length;u+=2)gl[u][0](gl[u+1]);gl.length=0}}}function s(d){n(d(t))}function l(d,a=de){let u=[d,a];return o.add(u),o.size===1&&(i=e(n,s)||de),d(t),()=>{o.delete(u),o.size===0&&i&&(i(),i=null)}}return{set:n,update:s,subscribe:l}}function Ti(t,e,i){let o=!Array.isArray(t),n=o?[t]:t;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let s=e.length<2;return yr(i,(l,d)=>{let a=!1,u=[],f=0,v=de,p=()=>{if(f)return;v();let w=e(o?u[0]:u,l,d);s?l(w):v=typeof w=="function"?w:de},y=n.map((w,$)=>$d(w,S=>{u[$]=S,f&=~(1<<$),a&&p()},()=>{f|=1<<$}));return a=!0,p(),function(){Ls(y),v(),a=!1}})}function Se(t){let e;return $d(t,i=>e=i)(),e}var au=!1,df=Symbol();function C(t,e,i){var s;let o=(s=i[e])!=null?s:i[e]={store:null,source:ns(void 0),unsubscribe:de};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=de;else{var n=!0;o.unsubscribe=$d(t,l=>{n?o.source.v=l:O(o.source,l)}),n=!1}return t&&df in i?Se(t):r(o.source)}function He(){let t={};function e(){qo(()=>{for(var i in t)t[i].unsubscribe();ro(t,df,{enumerable:!1,value:!0})})}return[t,e]}function cf(t){var e=au;try{return au=!1,[t(),au]}finally{au=e}}var ab={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Me&&xg(`${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(Me?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},ab)}var lb={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Ms(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 n=t.props[o];Ms(n)&&(n=n());let s=an(n,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(Ms(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=an(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Ko||e===ja)return!1;for(let i of t.props)if(Ms(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props)if(Ms(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 ys(...t){return new Proxy({props:t},lb)}function Lh(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function m(t,e,i,o){var Z,D;var n=(i&1)!==0,s=!ts||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,a=!1,u;l?[u,a]=cf(()=>t[e]):u=t[e];var f=Ko in t||ja in t,v=l&&((D=(Z=an(t,e))==null?void 0:Z.set)!=null?D:f&&e in t&&(H=>t[e]=H))||void 0,p=o,y=!0,w=!1,$=()=>(w=!0,y&&(y=!1,d?p=wt(o):p=o),p);u===void 0&&o!==void 0&&(v&&s&&yg(e),u=$(),v&&v(u));var S;if(s)S=()=>{var H=t[e];return H===void 0?$():(y=!0,w=!1,H)};else{var T=(n?Lr:Vr)(()=>t[e]);T.f|=131072,S=()=>{var H=r(T);return H!==void 0&&(p=void 0),H===void 0?p:H}}if((i&4)===0&&s)return S;if(v){var E=t.$$legacy;return function(H,W){return arguments.length>0?((!s||!W||E||a)&&v(W?S():H),H):S()}}var V=!1,k=!1,I=ns(u),R=Lr(()=>{var H=S(),W=r(I);return V?(V=!1,k=!0,W):(k=!1,I.v=H)});return l&&r(R),n||(R.equals=Xa),function(H,W){if(Zc!==null&&(V=k,S(),r(I)),arguments.length>0){let X=W?r(R):s&&l?ri(H):H;if(!R.equals(X)){if(V=!0,O(I,X),w&&p!==void 0&&(p=X),Lh(R))return H;wt(()=>r(R))}return H}return Lh(R)?R.v:r(R)}}var db;typeof HTMLElement=="function"&&(db=class extends HTMLElement{constructor(e,i,o){super();jn(this,"$$ctor");jn(this,"$$s");jn(this,"$$c");jn(this,"$$cn",!1);jn(this,"$$d",{});jn(this,"$$r",!1);jn(this,"$$p_d",{});jn(this,"$$l",{});jn(this,"$$l_u",new Map);jn(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 n=this.$$c.$on(e,i);this.$$l_u.set(i,n)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let n=this.$$l_u.get(i);n&&(n(),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),b(l,d)}};var e=i;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=cb(this);for(let s of this.$$s)s in n&&(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]=uf(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=uh({component:this.$$ctor,target:this.shadowRoot||this,props:Bt(z({},this.$$d),{$$slots:o,$$host:this})}),this.$$me=Gc(()=>{Yo(()=>{var s;this.$$r=!0;for(let l of yp(this.$$c)){if(!((s=this.$$p_d[l])!=null&&s.reflect))continue;this.$$d[l]=this.$$c[l];let d=uf(l,this.$$d[l],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,d)}this.$$r=!1})});for(let 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 n;this.$$r||(e=this.$$g_p(e),this.$$d[e]=uf(e,o,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return yp(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function uf(t,e,i,o){var s;let n=(s=i[t])==null?void 0:s.type;if(e=n==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!i[t])return e;if(o==="toAttribute")switch(n){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(n){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function cb(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var Vh="5";var Rh,Nh,Oh;typeof window!="undefined"&&((Oh=(Nh=(Rh=window.__svelte)!=null?Rh:window.__svelte={}).v)!=null?Oh:Nh.v=new Set).add(Vh);var Rl=require("@vkontakte/videoplayer-core/es2015"),eZ=require("@vkontakte/videoplayer-core/es2015"),Wa=require("@vkontakte/videoplayer-shared/es2015"),O0=require("@vkontakte/videoplayer-statistics/es2015");var ma=require("@vkontakte/videoplayer-shared/es2015");var ub={isMobile:void 0,disableInvisibleComponentsTimeout:500,debugLog:!1,devNullLog:!1,defaultLanguage:ma.InterfaceLanguage.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:ma.VideoQuality.Q_480P,highQualityLimit:ma.VideoQuality.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,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,skipInitialPlaybackRateValue:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusAnimationDuration:1e3,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,playbackStatusNextVideoAnimationDuration:1e3,initSubtitles:!0,useCallbackForMediaSessionNextPrevClick:!1,usePerformanceFix:!1,userVideoPrefs:!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,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1,usePuid:!0},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"},Bh=t=>(0,ma.fillWithDefault)(t,ub),Dh=t=>tl("ui-config",t),At=()=>el("ui-config");var yd="vk_player_debug_panel_opened";var Hh="videoplayer",Fh="videoplayer";var as={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Uh=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),zh=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Wh=new Set(["ShiftRight","ShiftLeft"]);var Kh=["TIMELINE"],xd=[...Kh,"GRAPH_BUTTON"],pf=[...Kh,"PLAY_BUTTON"],wd=[...xd,"PLAY_BUTTON"];var Dr=(s=>(s.XS="xs",s.S="s",s.M="m",s.L="l",s.XL="xl",s))(Dr||{}),ga={xs:0,s:1,m:2,l:3,xl:4};var Sd=require("@vkontakte/videoplayer-shared/es2015"),qh=require("@vkontakte/videoplayer-core/es2015"),Gh=require("@vkontakte/videoplayer-statistics/es2015");var lu="prod",ha="1.1.71-dev.69616eb7.0";var _a=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var Qh=Symbol("storeContext"),jh=Symbol("microStoresContext"),Yh=(t,e)=>{tl(Qh,t),tl(jh,e),lu==="dev"&&(window.app={store:t,microStores:e})},ke=()=>{let t=el(Qh);return(0,Sd.assertNonNullable)(t,"Store context is empty!"),t},yo=()=>{let t=el(jh);return(0,Sd.assertNonNullable)(t,"MicroStores context is empty!"),t},oi=(t,e)=>cu(t,t.getValue(),e),cu=(t,e,i)=>yr(e,o=>{let n=t.subscribe(s=>{o(s),i==null||i(s)});return()=>n.unsubscribe()}),Zh=(t,e,i,o)=>{var R,Z,D,H,W,X,j,ce;let n=t.info,{width:s,height:l}=Se(i.ui.playerSize),d=(Z=(R=n.throughputEstimation$.getValue())==null?void 0:R.toFixed(0))!=null?Z:0,a=(H=(D=n.rttEstimation$.getValue())==null?void 0:D.toFixed(0))!=null?H:0,u=n.isAutoQualityEnabled$.getValue()?"auto":"manual",f=`${ha} (core: ${qh.VERSION}, stat: ${Gh.VERSION}, shared: ${Sd.VERSION})`,v=Se(i.state.errorLog$),p=v.length?`
45
- `+v.map((re,pe)=>{var Pe;let xe=`${pe}) Type: ${re.id}
46
- `,fe=`Message: ${re.message} (${re.thrown})
47
- `,ie=`Trace: ${(Pe=re.thrown)==null?void 0:Pe.stack}
48
- `;return xe+fe+ie}).join(`
49
- `):void 0,y=i.state.isAudioDisabled?"disabled":Se(i.state.isAudioAvailable$)?void 0:"unavailable",w=t.info.currentVideoStream$.getValue(),$=t.info.currentAudioStream$.getValue(),S=[];w&&S.push(`Video: ${(W=w==null?void 0:w.codec)!=null?W:""}`+(w!=null&&w.hdr?" (HDR)":"")),$&&S.push(`Audio: ${(X=$==null?void 0:$.codec)!=null?X:""}`+($!=null&&$.language?` (${$.language})`:""));let T=n.currentQuality$.getValue(),E="";if(T){let re=n.availableQualitiesFps$.getValue()[T];E=re?`${re}fps`:""}let V=(ce=(j=n.currentBuffer$.getValue())==null?void 0:j.end)!=null?ce:0,k=Math.max(V-Se(i.state.positionExact$),0),I={Version:f,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),TraceId:o,VSID:Se(i.vsid),"Content host":n.hostname$.getValue(),"Connection type":n.httpConnectionType$.getValue()+(n.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${d}Kbps @ ${a}ms RTT`,Format:n.currentFormat$.getValue(),"Available Formats":Object.keys(e.sources).join(", "),Streams:S.join(", "),Quality:`${u} ${T} ${E}`,"Available qualities":n.availableQualities$.getValue().join(", "),Audio:y,Position:`${Se(i.state.positionExact$)}s`,Buffer:`${k}s`,State:`${Se(i.playerPhase)} ${n.playbackState$.getValue()}`,"Player size":`${s}x${l}`,URL:window.location.href,Errors:p};return Object.entries(I).filter(([re,pe])=>pe!==void 0).map(([re,pe])=>`${re}: ${pe}`).join(`
50
- `)},Xh=(t,e,i)=>{var Z,D,H,W;let o=t.info,{width:n,height:s}=Se(i.ui.playerSize),l={version:ha,viewport:`${n}x${s}`,volume:Math.round(Se(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-Se(i.state.positionExact$),0)),l.position=Se(i.state.positionExact$);let y=o.throughputEstimation$.getValue();y&&(l.speed=y);let w=o.videoBitrate$.getValue();w&&(l.bitrate=w);let $=o.liveLatency$.getValue();$&&(l.liveLatency=$);let S=o.currentVideoSegmentLength$.getValue();S&&(l.currentVideoSegmentLength=S);let T=o.currentAudioSegmentLength$.getValue();T&&(l.currentAudioSegmentLength=T);let E=Se(i.vsid);typeof E=="string"&&(l.vsid=E);let V=(Z=t.info.currentVideoStream$.getValue())==null?void 0:Z.codec;V&&(l.videoCodec=V);let k=(D=t.info.currentAudioStream$.getValue())==null?void 0:D.codec;k&&(l.audioCodec=k),((H=t.info.currentVideoStream$.getValue())==null?void 0:H.hdr)&&(l.hdr=!0);let R=(W=t.info.currentAudioStream$.getValue())==null?void 0:W.language;return R&&(l.audioLanguage=R),l},Jh=(t,e)=>_a(t,e,"mp4"),e1=t=>!t.type,t1=t=>!!t.type,i1=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},du=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 fi=require("@vkontakte/videoplayer-shared/es2015"),VA=require("@vkontakte/videoplayer-core/es2015");var o1="vk_player_prefer_traffic_saving_enabled",n1="vk_player_preferred_volume",r1="vk_player_prefer_volume_mute",gf="vk_player_preferred_quality",ff="vk_player_preferred_default_quality_settings",mf="vk_player_preferred_quality_settings_by_video",s1="vk_player_preferred_stream_language",a1="vk_player_preferred_rate",l1="vk_player_preferred_autoplay_next",vf="vk_player_preferred_subtitles_language",d1="vk_player_user_video_prefs",c1=t=>t>1?1:t<0?0:t,hf=t=>fi.safeStorage.set(n1,c1(t).toString(10)),uu=()=>{let t=fi.safeStorage.get(n1);return(0,fi.isNullable)(t)?void 0:c1(parseFloat(t))},_f=(t,e)=>fi.safeStorage.set(gf,JSON.stringify({videoId:t,value:e})),Td=()=>fi.safeStorage.remove(gf),bf=t=>{let e=fi.safeStorage.get(gf);if((0,fi.isNullable)(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){Td();return}return o},$f=(t,e)=>{e?fi.safeStorage.set(t,"true"):fi.safeStorage.remove(t)},yf=t=>fi.safeStorage.get(t)==="true",xf=t=>$f(r1,t),u1=()=>yf(r1),Cd=t=>$f(o1,t),wf=()=>yf(o1),p1=()=>fi.safeStorage.get(s1),Sf=t=>fi.safeStorage.set(s1,t),Cf=()=>fi.safeStorage.get(vf),Tf=t=>{t?fi.safeStorage.set(vf,t):fi.safeStorage.remove(vf)},f1=t=>fi.safeStorage.set(a1,JSON.stringify({rate:t})),m1=()=>{let t=fi.safeStorage.get(a1);if((0,fi.isNullable)(t))return;let{rate:e}=JSON.parse(t);return e},v1=t=>$f(l1,t),g1=()=>yf(l1),pb=()=>{let t=f=>{fi.safeStorage.set(ff,JSON.stringify(f))},e=()=>{try{let f=fi.safeStorage.get(ff);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=fi.safeStorage.get(mf);return f?JSON.parse(f):null}catch(f){return null}},o=f=>{fi.safeStorage.set(mf,JSON.stringify(f))},n=f=>{u(f);let v=f?i():null;if(v&&(v==null?void 0:v.videoId)===f)return Bt(z({},v),{appliesTo:"to-video"});v&&s();let p=e();return p?Bt(z({},p),{appliesTo:"as-default"}):(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},s=()=>{fi.safeStorage.remove(mf)},l=()=>{fi.safeStorage.remove(ff)},d=(f,v="as-default")=>{f.type==="exact_quality"?o(f):v==="as-default"?t(f):o(f)},a=f=>{let v=n(f);if(v){switch(v.type){case"traffic_saving":Cd(!0);break;case"exact_quality":_f(f,v.quality)}s(),l()}},u=f=>{let v=bf(f);if(v){o({type:"exact_quality",videoId:f,quality:v});return}wf()&&t({type:"traffic_saving",videoId:f}),Cd(!1),Td()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:a,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:s,getPreferredDefaultQualitySettings:e,getPreferredSubtitlesLanguage:Cf,savePreferredSubtitlesLanguage:Tf}},{getPreferredQualitySettings:h1,migrateSettingsToLegacyWay:_1,savePreferredQualitySettings:pu,savePreferredDefaultQualitySettings:RA,removePreferredQualitySettingsByVideo:NA,getPreferredDefaultQualitySettings:fu}=pb(),fb=3,mb=3,b1=()=>{let t=fi.safeStorage.get(d1);if(t)try{return JSON.parse(t)}catch(e){return null}return null},mu=(t,e)=>{var n,s;let i=b1();return(s=(n=i==null?void 0:i[t])==null?void 0:n[e])!=null?s:null},Ef=(t,e,i)=>{var l,d,a;let o=(l=b1())!=null?l:{},n=(a=(d=o[t])==null?void 0:d[e])!=null?a:{};Object.assign(n,i,{updatedTs:Date.now()}),t in o||(o[t]={}),o[t][e]=n;let s=vb(o);fi.safeStorage.set(d1,JSON.stringify(s))};function vb(t){let e=Object.entries(t).reduce((o,[n,s])=>{let l=0;return Object.values(s).forEach(d=>{l<d.updatedTs&&(l=d.updatedTs)}),o.push([n,l]),o},[]);return e.sort(([,o],[,n])=>o>n?-1:1),e.splice(mb),e.reduce((o,[n])=>(o[n]=gb(t[n]),o),{})}function gb(t){let e=Object.entries(t);return e.sort(([,i],[,o])=>i.updatedTs>o.updatedTs?-1:1),e.splice(fb),Object.fromEntries(e)}var Mv=require("@vkontakte/videoplayer-core/es2015");var hb=Ee('<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 Ed(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=hb();Ae(o,()=>z({xmlns:"http://www.w3.org/2000/svg",width:"76",height:"45",fill:"none","data-testid":"video-360-icon",role:"img"},i));var n=_(o);we(n,()=>{var s;return(s=e.children)!=null?s:de}),Te(2),h(o),b(t,o)}var hl=require("@vkontakte/videoplayer-shared/es2015");var _b={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,
43
+ `)})}}var aa=!1,al=null,la=!1,fs=!1;function Rp(t){fs=t}var ad=[],ld=[],Pt=null,nr=!1;function Ui(t){Pt=t}var gt=null;function go(t){gt=t}var qo=null;function Uc(t){Pt!==null&&Pt.f&2097152&&(qo===null?qo=[Pt,[t]]:qo[1].push(t))}var xn=null,rr=0,or=null;function Ag(t){or=t}var Yg=1,Zc=0,ms=!1,Xc=null;function Yl(){return++Yg}function oa(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 n,s,l=(e&512)!==0,d=o&&gt!==null&&!ms,a=i.length;if(l||d){var u=t,f=u.parent;for(n=0;n<a;n++)s=i[n],(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(n=0;n<a;n++)if(s=i[n],oa(s)&&Vp(s),s.wv>t.wv)return!0}(!o||gt!==null&&!ms)&&bn(t,1024)}return!1}function Zg(t,e,i=!0){var o=t.reactions;if(o!==null)for(var n=0;n<o.length;n++){var s=o[n];qo!=null&&qo[1].includes(t)&&qo[0]===Pt||((s.f&2)!==0?Zg(s,e,!1):e===s&&(i?bn(s,2048):(s.f&1024)!==0&&bn(s,4096),Xl(s)))}}function Fc(t){var y,w;var e=xn,i=rr,o=or,n=Pt,s=ms,l=qo,d=Ht,a=nr,u=t.f;xn=null,rr=0,or=null,ms=(u&256)!==0&&(nr||!la||Pt===null),Pt=(u&96)===0?t:null,qo=null,Gl(t.ctx),nr=!1,Zc++,t.f|=2097152;try{var f=(0,t.fn)(),v=t.deps;if(xn!==null){var p;if(nd(t,rr),v!==null&&rr>0)for(v.length=rr+xn.length,p=0;p<xn.length;p++)v[rr+p]=xn[p];else t.deps=v=xn;if(!ms||(u&2)!==0&&t.reactions!==null)for(p=rr;p<v.length;p++)((w=(y=v[p]).reactions)!=null?w:y.reactions=[]).push(t)}else v!==null&&rr<v.length&&(nd(t,rr),v.length=rr);if(ts()&&or!==null&&!nr&&v!==null&&(t.f&6146)===0)for(p=0;p<or.length;p++)Zg(or[p],t);return n!==null&&n!==t&&(Zc++,or!==null&&(o===null?o=or:o.push(...or))),f}catch($){Gg($)}finally{xn=e,rr=i,or=o,Pt=n,ms=s,qo=l,Gl(d),nr=a,t.f^=2097152}}function m0(t,e){let i=e.reactions;if(i!==null){var o=cg.call(i,t);if(o!==-1){var n=i.length-1;n===0?i=e.reactions=null:(i[o]=i[n],i.pop())}}i===null&&(e.f&2)!==0&&(xn===null||!xn.includes(e))&&(bn(e,4096),(e.f&768)===0&&(e.f^=512),Hc(e),nd(e,0))}function nd(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)m0(t,i[o])}function nl(t){var e=t.f;if((e&16384)===0){bn(t,1024);var i=gt,o=la;if(gt=t,la=!0,Ae){var n=tr;Ql(t.component_function)}try{(e&16)!==0?Ug(t):Dp(t),Bp(t);var s=Fc(t);if(t.teardown=typeof s=="function"?s:null,t.wv=Yg,Ae&&es&&(t.f&2048)!==0&&t.deps!==null)for(var l of t.deps)l.set_during_effect&&(l.wv=Yl(),l.set_during_effect=!1);Ae&&ld.push(t)}finally{la=o,gt=i,Ae&&Ql(n)}}}function Qg(){console.error("Last ten effects were: ",ld.slice(-10).map(t=>t.fn)),ld=[]}function v0(){try{bg()}catch(t){if(Ae&&vo(t,"stack",{value:""}),al!==null)if(Ae)try{sd(t,al)}catch(e){throw Qg(),e}else sd(t,al);else throw Ae&&Qg(),t}}function Kp(){var t=la;try{var e=0;for(la=!0;ad.length>0;){e++>1e3&&v0();var i=ad,o=i.length;ad=[];for(var n=0;n<o;n++){var s=h0(i[n]);g0(s)}il.clear()}}finally{aa=!1,la=t,al=null,Ae&&(ld=[])}}function g0(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];(o.f&24576)===0&&oa(o)&&(nl(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?Fp(o):o.fn=null))}}function Xl(t){aa||(aa=!0,queueMicrotask(Kp));for(var e=al=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}ad.push(e)}function h0(t){for(var e=[],i=t;i!==null;){var o=i.f,n=(o&96)!==0,s=n&&(o&1024)!==0;if(!s&&(o&8192)===0){(o&4)!==0?e.push(i):n?i.f^=1024:oa(i)&&nl(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 ll(t){var e;for(t&&(aa=!0,Kp(),aa=!0,e=t());;){if(Kg(),ad.length===0)return aa=!1,al=null,Ae&&(ld=[]),e;aa=!0,Kp()}}function Ao(){return St(this,null,function*(){yield Promise.resolve(),ll()})}function r(t){var e=t.f,i=(e&2)!==0;if(Xc!==null&&Xc.add(t),Pt!==null&&!nr){if(!(qo!=null&&qo[1].includes(t))||qo[0]!==Pt){var o=Pt.deps;t.rv<Zc&&(t.rv=Zc,xn===null&&o!==null&&o[rr]===t?rr++:xn===null?xn=[t]:(!ms||!xn.includes(t))&&xn.push(t))}}else if(i&&t.deps===null&&t.effects===null){var n=t,s=n.parent;s!==null&&(s.f&256)===0&&(n.f^=256)}if(i&&(n=t,oa(n)&&Vp(n)),Ae&&es&&!nr&&ql!==null&&Pt!==null&&ql.reaction===Pt)if(t.trace)t.trace();else{var l=ps("TracedAt");if(l){var d=ql.entries.get(t);d===void 0&&(d={traces:[]},ql.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 fs&&il.has(t)?il.get(t):t.v}function Ct(t){var e=nr;try{return nr=!0,t()}finally{nr=e}}var _0=-7169;function bn(t,e){t.f=t.f&_0|e}function eu(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(zo in t)Jc(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&zo in i&&Jc(i)}}}function Jc(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{Jc(t[o],e)}catch(n){}let i=Js(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=Rc(i);for(let n in o){let s=o[n].get;if(s)try{s.call(t)}catch(l){}}}}}function qp(t,e){if(e){let i=document.body;t.autofocus=!0,yn(()=>{document.activeElement===i&&t.focus()})}}function dd(t){var e=Pt,i=gt;Ui(null),go(null);try{return t()}finally{Ui(e),go(i)}}var Gp=new Set,tu=new Set;function da(t){if(!Je)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 Qp(t,e,i,o={}){function n(s){if(o.capture||dl.call(e,s),!s.cancelBubble)return dd(()=>i==null?void 0:i.call(this,s))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?yn(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function It(t,e,i,o,n){var s={capture:o,passive:n},l=Qp(t,e,i,s);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Wo(()=>{e.removeEventListener(t,l,s)})}function ft(t){for(var e=0;e<t.length;e++)Gp.add(t[e]);for(var i of tu)i(t)}function dl(t){var I;var e=this,i=e.ownerDocument,o=t.type,n=((I=t.composedPath)==null?void 0:I.call(t))||[],s=n[0]||t.target,l=0,d=t.__root;if(d){var a=n.indexOf(d);if(a!==-1&&(e===document||e===window)){t.__root=e;return}var u=n.indexOf(e);if(u===-1)return;a<=u&&(l=a)}if(s=n[l]||t.target,s!==e){vo(t,"currentTarget",{configurable:!0,get(){return s||i}});var f=Pt,v=gt;Ui(null),go(null);try{for(var p,y=[];s!==null;){var w=s.assignedSlot||s.parentNode||s.host||null;try{var $=s["__"+o];if($!=null&&(!s.disabled||t.target===s))if(Jn($)){var[C,...T]=$;C.apply(s,[t,...T])}else $.call(s,t)}catch(M){p?y.push(M):p=M}if(t.cancelBubble||w===e||w===null)break;s=w}if(p){for(let M of y)queueMicrotask(()=>{throw M});throw p}}finally{t.__root=e,delete t.currentTarget,Ui(f),go(v)}}}var $0;function Xg(){$0=void 0}function cl(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function Mo(t,e){var i=gt;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function A(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,s=!t.startsWith("<!>");return()=>{if(Je)return Mo(ht,null),ht;n===void 0&&(n=cl(s?t:"<!>"+t),i||(n=yi(n)));var l=o||Jl?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=yi(l),a=l.lastChild;Mo(d,a)}else Mo(l,l);return l}}function w0(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,s=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(Je)return Mo(ht,null),ht;if(!l){var d=cl(s),a=yi(d);if(n)for(l=document.createDocumentFragment();yi(a);)l.appendChild(yi(a));else l=yi(a)}var u=l.cloneNode(!0);if(n){var f=yi(u),v=u.lastChild;Mo(f,v)}else Mo(u,u);return u}}function Te(t,e){return w0(t,e,"svg")}function os(t=""){if(!Je){var e=$n(t+"");return Mo(e,e),e}var i=ht;return i.nodeType!==ja&&(i.before(i=$n()),$i(i)),Mo(i,i),i}function qe(){if(Je)return Mo(ht,null),ht;var t=document.createDocumentFragment(),e=document.createComment(""),i=$n();return t.append(e,i),Mo(e,i),t}function b(t,e){if(Je){gt.nodes_end=ht,Wi();return}t!==null&&t.before(e)}var S0=/\r/g;function eh(t){t=t.replace(S0,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function th(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var C0=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function ih(t){return C0.includes(t)}var T0=["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 I0={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 oh(t){var e;return t=t.toLowerCase(),(e=I0[t])!=null?e:t}var mS=[...T0,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var E0=["touchstart","touchmove"];function nh(t){return E0.includes(t)}var k0=["$state","$state.raw","$derived","$derived.by"],vS=[...k0,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var P0=["textarea","script","style","title"];function rh(t){return P0.includes(t)}function iu(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var cd=!0;function ou(t){cd=t}function $e(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 ns(t,e){return sh(t,e)}function Yp(t,e){var l;Kc(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=Je,n=ht;try{for(var s=yi(i);s&&(s.nodeType!==er||s.data!==Es);)s=Go(s);if(!s)throw Xr;ho(!0),$i(s),Wi();let d=sh(t,Ut(W({},e),{anchor:s}));if(ht===null||ht.nodeType!==er||ht.data!==Xs)throw Ms(),Xr;return ho(!1),d}catch(d){if(d===Xr)return e.recover===!1&&$g(),Kc(),ed(i),ho(!1),ns(t,e);throw d}finally{ho(o),$i(n),Xg()}}var ul=new Map;function sh(t,{target:e,anchor:i,props:o={},events:n,context:s,intro:l=!0}){Kc();var d=new Set,a=v=>{for(var p=0;p<v.length;p++){var y=v[p];if(!d.has(y)){d.add(y);var w=nh(y);e.addEventListener(y,dl,{passive:w});var $=ul.get(y);$===void 0?(document.addEventListener(y,dl,{passive:w}),ul.set(y,1)):ul.set(y,$+1)}}};a(Kl(Gp)),tu.add(a);var u=void 0,f=Fg(()=>{var v=i!=null?i:e.appendChild($n());return Ri(()=>{if(s){U({});var p=Ht;p.c=s}n&&(o.$$events=n),Je&&Mo(v,null),cd=l,u=t(v,o)||{},cd=!0,Je&&(gt.nodes_end=ht),s&&z()}),()=>{var w;for(var p of d){e.removeEventListener(p,dl);var y=ul.get(p);--y===0?(document.removeEventListener(p,dl),ul.delete(p)):ul.set(p,y)}tu.delete(a),v!==i&&((w=v.parentNode)==null||w.removeChild(v))}});return jp.set(u,f),u}var jp=new WeakMap;function ca(t,e){let i=jp.get(t);return i?(jp.delete(t),i(e)):(Ae&&Vg(),Promise.resolve())}function ye(t,e,...i){var o=t,n=ae,s;Ki(()=>{n!==(n=e())&&(s&&(zi(s),s=null),Ae&&n==null&&yg(),s=Ri(()=>n(o,...i)))},65536),Je&&(o=ht)}if(Ae){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;Sg(e)},set:o=>{i=o}})}};V0=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var V0;function zt(t){Ht===null&&Xa("onMount"),Jr&&Ht.l!==null?L0(Ht).m.push(t):Ge(()=>{let e=Ct(t);if(typeof e=="function")return e})}function nn(t){Ht===null&&Xa("onDestroy"),zt(()=>()=>Ct(t))}function L0(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}var ah=new Map;function lh(t,e){var i=ah.get(t);i||(i=new Set,ah.set(t,i)),i.add(e)}function V(t,e,[i,o]=[0,0]){Je&&i===0&&Wi();var n=t,s=null,l=null,d=eo,a=i>0?65536:0,u=!1;let f=(p,y=!0)=>{u=!0,v(y,p)},v=(p,y)=>{if(d===(d=p))return;let w=!1;if(Je&&o!==-1){if(i===0){let C=Wc(n);C===Es?o=0:C===ks?o=1/0:(o=parseInt(C.substring(1)),o!==o&&(o=d?1/0:-1))}let $=o>i;!!d===$&&(n=na(),$i(n),ho(!1),w=!0,o=-1)}d?(s?gs(s):y&&(s=Ri(()=>y(n))),l&&Dn(l,()=>{l=null})):(l?gs(l):y&&(l=Ri(()=>y(n,[i+1,o]))),s&&Dn(s,()=>{s=null})),w&&ho(!0)};Ki(()=>{u=!1,e(f),u||v(null,null)},a),Je&&(n=ht)}function ua(t,e,i){Je&&Wi();var o=t,n=eo,s,l=ts()?mg:Ya;Ki(()=>{l(n,n=e())&&(s&&Dn(s),s=Ri(()=>i(o)))}),Je&&(o=ht)}var Vs=null;function Jp(t){Vs=t}function ud(t,e){return e}function O0(t,e,i,o){for(var n=[],s=e.length,l=0;l<s;l++)jc(e[l].e,n,!0);var d=s>0&&n.length===0&&i!==null;if(d){var a=i.parentNode;ed(a),a.append(i),o.clear(),Ls(t,e[0].prev,e[s-1].next)}Up(n,()=>{for(var u=0;u<s;u++){var f=e[u];d||(o.delete(f.k),Ls(t,f.prev,f.next)),zi(f.e,!d)}})}function Ei(t,e,i,o,n,s=null){var l=t,d={flags:e,items:new Map,first:null},a=(e&4)!==0;if(a){var u=t;l=Je?$i(yi(u)):u.appendChild($n())}Je&&Wi();var f=null,v=!1,p=Nr(()=>{var y=i();return Jn(y)?y:y==null?[]:Kl(y)});Ki(()=>{var y=r(p),w=y.length;if(v&&w===0)return;v=w===0;let $=!1;if(Je){var C=Wc(l)===ks;C!==(w===0)&&(l=na(),$i(l),ho(!1),$=!0)}if(Je){for(var T=null,I,M=0;M<w;M++){if(ht.nodeType===er&&ht.data===Xs){l=ht,$=!0,ho(!1);break}var k=y[M],E=o(k,M);I=uh(ht,d,T,null,k,E,M,n,e,i),d.items.set(E,I),T=I}w>0&&$i(na())}Je||B0(y,d,l,n,e,o,i),s!==null&&(w===0?f?gs(f):f=Ri(()=>s(l)):f!==null&&Dn(f,()=>{f=null})),$&&ho(!0),r(p)}),Je&&(l=ht)}function B0(t,e,i,o,n,s,l){var oe,pe,be,fe;var d=(n&8)!==0,a=(n&3)!==0,u=t.length,f=e.items,v=e.first,p=v,y,w=null,$,C=[],T=[],I,M,k,E;if(d)for(E=0;E<u;E+=1)I=t[E],M=s(I,E),k=f.get(M),k!==void 0&&((oe=k.a)==null||oe.measure(),($!=null?$:$=new Set).add(k));for(E=0;E<u;E+=1){if(I=t[E],M=s(I,E),k=f.get(M),k===void 0){var R=p?p.e.nodes_start:i;w=uh(R,e,w,w===null?e.first:w.next,I,M,E,o,n,l),f.set(M,w),C=[],T=[],p=w.next;continue}if(a&&D0(k,I,E,n),(k.e.f&8192)!==0&&(gs(k.e),d&&((pe=k.a)==null||pe.unfix(),($!=null?$:$=new Set).delete(k))),k!==p){if(y!==void 0&&y.has(k)){if(C.length<T.length){var X=T[0],D;w=X.prev;var H=C[0],K=C[C.length-1];for(D=0;D<C.length;D+=1)dh(C[D],X,i);for(D=0;D<T.length;D+=1)y.delete(T[D]);Ls(e,H.prev,K.next),Ls(e,w,H),Ls(e,K,X),p=X,w=K,E-=1,C=[],T=[]}else y.delete(k),dh(k,p,i),Ls(e,k.prev,k.next),Ls(e,k,w===null?e.first:w.next),Ls(e,w,k),w=k;continue}for(C=[],T=[];p!==null&&p.k!==M;)(p.e.f&8192)===0&&(y!=null?y:y=new Set).add(p),T.push(p),p=p.next;if(p===null)continue;k=p}C.push(k),w=k,p=k.next}if(p!==null||y!==void 0){for(var J=y===void 0?[]:Kl(y);p!==null;)(p.e.f&8192)===0&&J.push(p),p=p.next;var j=J.length;if(j>0){var ce=(n&4)!==0&&u===0?i:null;if(d){for(E=0;E<j;E+=1)(be=J[E].a)==null||be.measure();for(E=0;E<j;E+=1)(fe=J[E].a)==null||fe.fix()}O0(e,J,ce,f)}}d&&yn(()=>{var ke;if($!==void 0)for(k of $)(ke=k.a)==null||ke.apply()}),gt.first=e.first&&e.first.e,gt.last=w&&w.e}function D0(t,e,i,o){(o&1)!==0&&ol(t.v,e),(o&2)!==0?ol(t.i,i):t.i=i}function uh(t,e,i,o,n,s,l,d,a,u){var f=Vs,v=(a&1)!==0,p=(a&16)===0,y=v?p?is(n,!1,!1):$r(n):n,w=(a&2)===0?l:$r(l);Ae&&v&&(y.trace=()=>{var C=typeof w=="number"?l:w.v;u()[C]});var $={i:w,v:y,k:s,a:null,e:null,prev:i,next:o};Vs=$;try{return $.e=Ri(()=>d(t,y,w,u),Je),$.e.prev=i&&i.e,$.e.next=o&&o.e,i===null?e.first=$:(i.next=$,i.e.next=$.e),o!==null&&(o.prev=$,o.e.prev=$.e),$}finally{Vs=f}}function dh(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,n=e?e.e.nodes_start:i,s=t.e.nodes_start;s!==o;){var l=Go(s);n.before(s),s=l}}function Ls(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 H0(t,e,i){var s,l;if(!e||e===eh(String(i!=null?i:"")))return;let o,n=(s=t.__svelte_meta)==null?void 0:s.loc;n?o=`near ${n.file}:${n.line}:${n.column}`:(l=tr)!=null&&l[Rn]&&(o=`in ${tr[Rn]}`),Lg(iu(o))}function pd(t,e,i=!1,o=!1,n=!1){var s=t,l="";B(()=>{var y;var d=gt;if(l===(l=(y=e())!=null?y:"")){Je&&Wi();return}if(d.nodes_start!==null&&(Hp(d.nodes_start,d.nodes_end),d.nodes_start=d.nodes_end=null),l!==""){if(Je){for(var a=ht.data,u=Wi(),f=u;u!==null&&(u.nodeType!==er||u.data!=="");)f=u,u=Go(u);if(u===null)throw Ms(),Xr;Ae&&!n&&H0(u.parentNode,a,l),Mo(ht,f),s=$i(u);return}var v=l+"";i?v=`<svg>${v}</svg>`:o&&(v=`<math>${v}</math>`);var p=cl(v);if((i||o)&&(p=yi(p)),Mo(yi(p),p.lastChild),i||o)for(;yi(p);)s.before(yi(p));else s.before(p)}})}function ki(t,e,i){Je&&Wi();var o=t,n,s;Ki(()=>{n!==(n=e())&&(s&&(Dn(s),s=null),n&&(s=Ri(()=>i(o,n))))},65536),Je&&(o=ht)}function pa(t,e,i,o,n,s){var w;let l=Je;Je&&Wi();var d=Ae&&s&&((w=Ht)==null?void 0:w.function[Rn]),a,u,f=null;Je&&ht.nodeType===Oc&&(f=ht,Wi());var v=Je?ht:t,p,y=Vs;Ki(()=>{let $=e()||null;var C=n?n():i||$==="svg"?Lc:null;if($!==a){var T=Vs;Jp(y),p&&($===null?Dn(p,()=>{p=null,u=null}):$===u?gs(p):(zi(p),ou(!1))),$&&$!==u&&(p=Ri(()=>{if(f=Je?f:C?document.createElementNS(C,$):document.createElement($),Ae&&s&&(f.__svelte_meta={loc:{file:d,line:s[0],column:s[1]}}),Mo(f,f),o){Je&&rh($)&&f.append(document.createComment(""));var I=Je?yi(f):f.appendChild($n());Je&&(I===null?ho(!1):$i(I)),o(f,I)}gt.nodes_end=f,v.before(f)})),a=$,a&&(u=a),ou(!0),Jp(T)}},65536),l&&(ho(!0),$i(v))}var tf;function ph(t){return tf=t.target,new ef(t)}var hs,yr,ef=class{constructor(e){Is(this,hs);Is(this,yr);var s,l;var i=new Map,o=(d,a)=>{var u=is(a,!1,!1);return i.set(d,u),u};let n=new Proxy(Ut(W({},e.props||{}),{$$events:{}}),{get(d,a){var u;return r((u=i.get(a))!=null?u:o(a,Reflect.get(d,a)))},has(d,a){var u;return a===Qa?!0:(r((u=i.get(a))!=null?u:o(a,Reflect.get(d,a))),Reflect.has(d,a))},set(d,a,u){var f;return O((f=i.get(a))!=null?f:o(a,u),u),Reflect.set(d,a,u)}});Ga(this,yr,(e.hydrate?Yp:ns)(e.component,{target:e.target,anchor:e.anchor,props:n,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)&&ll(),Ga(this,hs,n.$$events);for(let d of Object.keys(Vi(this,yr)))d==="$set"||d==="$destroy"||d==="$on"||vo(this,d,{get(){return Vi(this,yr)[d]},set(a){Vi(this,yr)[d]=a},enumerable:!0});Vi(this,yr).$set=d=>{Object.assign(n,d)},Vi(this,yr).$destroy=()=>{ca(Vi(this,yr))}}$set(e){Vi(this,yr).$set(e)}$on(e,i){Vi(this,hs)[e]=Vi(this,hs)[e]||[];let o=(...n)=>i.call(this,...n);return Vi(this,hs)[e].push(o),()=>{Vi(this,hs)[e]=Vi(this,hs)[e].filter(n=>n!==o)}}$destroy(){Vi(this,yr).$destroy()}};hs=new WeakMap,yr=new WeakMap;function G(t,e){yn(()=>{var n,s,l;var i=t.getRootNode(),o=i.host?i:(l=(n=i.head)!=null?n:i.ownerDocument.head)!=null?l:(s=tf)==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),Ae&&lh(e.hash,d)}})}function _s(t,e){var i=void 0,o;Ki(()=>{i!==(i=e())&&(o&&(zi(o),o=null),i&&(o=Ri(()=>{Po(()=>i(t))})))})}function fh(t){var e,i,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var n=t.length;for(e=0;e<n;e++)t[e]&&(i=fh(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function mh(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=fh(t))&&(o&&(o+=" "),o+=e);return o}function fd(t){return typeof t=="object"?mh(t):t!=null?t:""}var vh=[...`
44
+ \r\f\xA0\v\uFEFF`];function hh(t,e,i){var o=t==null?"":""+t;if(e&&(o=o?o+" "+e:e),i){for(var n in i)if(i[n])o=o?o+" "+n:n;else if(o.length)for(var s=n.length,l=0;(l=o.indexOf(n,l))>=0;){var d=l+s;(l===0||vh.includes(o[l-1]))&&(d===o.length||vh.includes(o[d]))?o=(l===0?"":o.substring(0,l))+o.substring(d+1):l=d}}return o===""?null:o}function gh(t,e=!1){var i=e?" !important;":";",o="";for(var n in t){var s=t[n];s!=null&&s!==""&&(o+=" "+n+": "+s+i)}return o}function of(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function _h(t,e){if(e){var i="",o,n;if(Array.isArray(e)?(o=e[0],n=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(of)),n&&a.push(...Object.keys(n).map(of));var u=0,f=-1;let $=t.length;for(var v=0;v<$;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===$-1){if(f!==-1){var y=of(t.substring(u,f).trim());if(!a.includes(y)){p!==";"&&v++;var w=t.substring(u,v).trim();i+=" "+w+";"}}u=v+1,f=-1}}}}return o&&(i+=gh(o)),n&&(i+=gh(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function te(t,e,i,o,n,s){var l=t.__className;if(Je||l!==i||l===void 0){var d=hh(i,o,s);(!Je||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(s&&n!==s)for(var a in s){var u=!!s[a];(n==null||u!==!!n[a])&&t.classList.toggle(a,u)}return s}function nf(t,e={},i,o){for(var n in i){var s=i[n];e[n]!==s&&(i[n]==null?t.style.removeProperty(n):t.style.setProperty(n,s,o))}}function rt(t,e,i,o){var n=t.__style;if(Je||n!==e){var s=_h(e,o);(!Je||s!==t.getAttribute("style"))&&(s==null?t.removeAttribute("style"):t.style.cssText=s),t.__style=e}else o&&(Array.isArray(o)?(nf(t,i==null?void 0:i[0],o[0]),nf(t,i==null?void 0:i[1],o[1],"important")):nf(t,i,o));return o}function md(t,e,i){if(t.multiple){if(e==null)return;if(!Jn(e))return Rg();for(var o of t.options)o.selected=e.includes(bh(o));return}for(o of t.options){var n=bh(o);if(kp(n,e)){o.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function rf(t){var e=new MutationObserver(()=>{md(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Wo(()=>{e.disconnect()})}function bh(t){return"__value"in t?t.__value:t.value}var pl=Symbol("class"),fl=Symbol("style"),xh=Symbol("is custom element"),wh=Symbol("is html");function Sh(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function ze(t,e,i,o){var n=Th(t);if(Je&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||Q0(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[fg]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Ih(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Ch(t,e,i,o,n=!1){var k;var s=Th(t),l=s[xh],d=!s[wh];let a=Je&&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=fd(i.class):(o||i[pl])&&(i.class=null),i[fl]&&((k=i.style)!=null||(i.style=null));var p=Ih(t);for(let E in i){let R=i[E];if(f&&E==="value"&&R==null){t.value=t.__value="",u[E]=R;continue}if(E==="class"){var y=t.namespaceURI==="http://www.w3.org/1999/xhtml";te(t,y,R,o,e==null?void 0:e[pl],i[pl]),u[E]=R,u[pl]=i[pl];continue}if(E==="style"){rt(t,R,e==null?void 0:e[fl],i[fl]),u[E]=R,u[fl]=i[fl];continue}var w=u[E];if(!(R===w&&!(R===void 0&&t.hasAttribute(E)))){u[E]=R;var $=E[0]+E[1];if($!=="$$")if($==="on"){let X={},D="$$"+E,H=E.slice(2);var C=ih(H);if(th(H)&&(H=H.slice(0,-7),X.capture=!0),!C&&w){if(R!=null)continue;t.removeEventListener(H,u[D],X),u[D]=null}if(R!=null)if(C)t[`__${H}`]=R,ft([H]);else{let K=function(J){u[E].call(this,J)};var M=K;u[D]=Qp(H,t,K,X)}else C&&(t[`__${H}`]=void 0)}else if(E==="style")ze(t,E,R);else if(E==="autofocus")qp(t,!!R);else if(!l&&(E==="__value"||E==="value"&&R!=null))t.value=t.__value=R;else if(E==="selected"&&f)Sh(t,R);else{var T=E;d||(T=oh(T));var I=T==="defaultValue"||T==="defaultChecked";if(R==null&&!l&&!I)if(s[E]=null,T==="value"||T==="checked"){let X=t,D=e===void 0;if(T==="value"){let H=X.defaultValue;X.removeAttribute(T),X.defaultValue=H,X.value=X.__value=D?H:null}else{let H=X.defaultChecked;X.removeAttribute(T),X.defaultChecked=H,X.checked=D?H:!1}}else t.removeAttribute(E);else I||p.includes(T)&&(l||typeof R!="string")?t[T]=R:typeof R!="function"&&ze(t,T,R,n)}}}return a&&ho(!0),u}function Pe(t,e,i=[],o,n=!1,s=Rr){let l=i.map(s);var d=void 0,a={},u=t.nodeName==="SELECT",f=!1;if(Ki(()=>{var p=e(...l.map(r)),y=Ch(t,d,p,o,n);f&&u&&"value"in p&&md(t,p.value,!1);for(let $ of Object.getOwnPropertySymbols(a))p[$]||zi(a[$]);for(let $ of Object.getOwnPropertySymbols(p)){var w=p[$];$.description===yp&&(!d||w!==d[$])&&(a[$]&&zi(a[$]),a[$]=Ri(()=>_s(t,()=>w))),y[$]=w}d=y}),u){var v=t;Po(()=>{md(v,d.value),rf(v)})}f=!0}function Th(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[xh]:t.nodeName.includes("-"),[wh]:t.namespaceURI===sg}}var $h=new Map;function Ih(t){var e=$h.get(t.nodeName);if(e)return e;$h.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=Rc(o);for(var s in i)i[s].set&&e.push(s);o=Js(o)}return e}function Q0(t,e,i){var o;Ae&&(e==="srcset"&&j0(t,i)||sf((o=t.getAttribute(e))!=null?o:"",i)||Mg(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function sf(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function yh(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function j0(t,e){var i=yh(t.srcset),o=yh(e);return o.length===i.length&&o.every(([n,s],l)=>s===i[l][1]&&(sf(i[l][0],n)||sf(n,i[l][0])))}var Y0=Vc?()=>performance.now():()=>Date.now(),Dr={tick:t=>(Vc?requestAnimationFrame:ae)(t),now:()=>Y0(),tasks:new Set};function Eh(){let t=Dr.now();Dr.tasks.forEach(e=>{e.c(t)||(Dr.tasks.delete(e),e.f())}),Dr.tasks.size!==0&&Dr.tick(Eh)}function kh(t){let e;return Dr.tasks.size===0&&Dr.tick(Eh),{promise:new Promise(i=>{Dr.tasks.add(e={c:t,f:i})}),abort(){Dr.tasks.delete(e)}}}function nu(t,e){dd(()=>{t.dispatchEvent(new CustomEvent(e))})}function eb(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 Ph(t){let e={},i=t.split(";");for(let o of i){let[n,s]=o.split(":");if(!n||s===void 0)break;let l=eb(n.trim());e[l]=s.trim()}return e}var tb=t=>t;function lf(t,e,i,o){var M;var n=(t&1)!==0,s=(t&2)!==0,l=n&&s,d=(t&4)!==0,a=l?"both":n?"in":"out",u,f=e.inert,v=e.style.overflow,p,y;function w(){var R;var k=Pt,E=gt;Ui(null),go(null);try{return u!=null?u:u=i()(e,(R=o==null?void 0:o())!=null?R:{},{direction:a})}finally{Ui(k),go(E)}}var $={is_global:d,in(){var k;if(e.inert=f,!n){y==null||y.abort(),(k=y==null?void 0:y.reset)==null||k.call(y);return}s||p==null||p.abort(),nu(e,"introstart"),p=af(e,w(),y,1,()=>{nu(e,"introend"),p==null||p.abort(),p=u=void 0,e.style.overflow=v})},out(k){if(!s){k==null||k(),u=void 0;return}e.inert=!0,nu(e,"outrostart"),y=af(e,w(),p,0,()=>{nu(e,"outroend"),k==null||k()})},stop:()=>{p==null||p.abort(),y==null||y.abort()}},C=gt;if(((M=C.transitions)!=null?M:C.transitions=[]).push($),n&&cd){var T=d;if(!T){for(var I=C.parent;I&&(I.f&65536)!==0;)for(;(I=I.parent)&&(I.f&16)===0;);T=!I||(I.f&32768)!==0}T&&Po(()=>{Ct(()=>$.in())})}}function af(t,e,i,o,n){var s=o===1;if(Ps(e)){var l,d=!1;return yn(()=>{if(!d){var C=e({direction:s?"in":"out"});l=af(t,C,i,o,n)}}),{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 n(),{abort:ae,deactivate:ae,reset:ae,t:()=>o};let{delay:a=0,css:u,tick:f,easing:v=tb}=e;var p=[];if(s&&i===void 0&&(f&&f(0,1),u)){var y=Ph(u(0,1));p.push(y,y)}var w=()=>1-o,$=t.animate(p,{duration:a,fill:"forwards"});return $.onfinish=()=>{var H;$.cancel();var C=(H=i==null?void 0:i.t())!=null?H:1-o;i==null||i.abort();var T=o-C,I=e.duration*Math.abs(T),M=[];if(I>0){var k=!1;if(u)for(var E=Math.ceil(I/16.666666666666668),R=0;R<=E;R+=1){var X=C+T*v(R/E),D=Ph(u(X,1-X));M.push(D),k||(k=D.overflow==="hidden")}k&&(t.style.overflow="hidden"),w=()=>{var K=$.currentTime;return C+T*v(K/I)},f&&kh(()=>{if($.playState!=="running")return!1;var K=w();return f(K,1-K),!0})}$=t.animate(M,{duration:I,fill:"forwards"}),$.onfinish=()=>{w=()=>o,f==null||f(o,1-o),n()}},{abort:()=>{$&&($.cancel(),$.effect=null,$.onfinish=ae)},deactivate:()=>{n=ae},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>w()}}var Rs,ml,vd,su,Ah,au=class au{constructor(e){Is(this,su);Is(this,Rs,new WeakMap);Is(this,ml);Is(this,vd);Ga(this,vd,e)}observe(e,i){var o=Vi(this,Rs).get(e)||new Set;return o.add(i),Vi(this,Rs).set(e,o),ng(this,su,Ah).call(this).observe(e,Vi(this,vd)),()=>{var n=Vi(this,Rs).get(e);n.delete(i),n.size===0&&(Vi(this,Rs).delete(e),Vi(this,ml).unobserve(e))}}};Rs=new WeakMap,ml=new WeakMap,vd=new WeakMap,su=new WeakSet,Ah=function(){var e;return(e=Vi(this,ml))!=null?e:Ga(this,ml,new ResizeObserver(i=>{for(var o of i){au.entries.set(o.target,o);for(var n of Vi(this,Rs).get(o.target)||[])n(o)}}))},Xn(au,"entries",new WeakMap);var df=au;var ib=new df({box:"border-box"});function sr(t,e,i){var o=ib.observe(t,()=>i(t[e]));Po(()=>(Ct(()=>i(t[e])),o))}function Mh(t,e){return t===e||(t==null?void 0:t[zo])===e}function nt(t={},e,i,o){return Po(()=>{var n,s;return Qo(()=>{n=s,s=(o==null?void 0:o())||[],Ct(()=>{t!==i(...s)&&(e(t,...s),n&&Mh(i(...n),t)&&e(null,...n))})}),()=>{yn(()=>{s&&Mh(i(...s),t)&&e(null,...s)})}}),t}function Hr(t=!1){let e=Ht,i=e.l.u;if(!i)return;let o=()=>eu(e.s);if(t){let n=0,s={},l=Rr(()=>{let d=!1,a=e.s;for(let u in a)a[u]!==s[u]&&(s[u]=a[u],d=!0);return d&&n++,n});o=()=>r(l)}i.b.length&&od(()=>{Lh(e,o),As(i.b)}),Ge(()=>{let n=Ct(()=>i.m.map(pg));return()=>{for(let s of n)typeof s=="function"&&s()}}),i.a.length&&Ge(()=>{Lh(e,o),As(i.a)})}function Lh(t,e){if(t.l.s)for(let i of t.l.s)r(i);e()}function gd(t,e,i){if(t==null)return e(void 0),i&&i(void 0),ae;let o=Ct(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var vl=[];function xr(t,e){return{subscribe:re(t,e).subscribe}}function re(t,e=ae){let i=null,o=new Set;function n(d){if(Ya(t,d)&&(t=d,i)){let a=!vl.length;for(let u of o)u[1](),vl.push(u,t);if(a){for(let u=0;u<vl.length;u+=2)vl[u][0](vl[u+1]);vl.length=0}}}function s(d){n(d(t))}function l(d,a=ae){let u=[d,a];return o.add(u),o.size===1&&(i=e(n,s)||ae),d(t),()=>{o.delete(u),o.size===0&&i&&(i(),i=null)}}return{set:n,update:s,subscribe:l}}function xi(t,e,i){let o=!Array.isArray(t),n=o?[t]:t;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let s=e.length<2;return xr(i,(l,d)=>{let a=!1,u=[],f=0,v=ae,p=()=>{if(f)return;v();let w=e(o?u[0]:u,l,d);s?l(w):v=typeof w=="function"?w:ae},y=n.map((w,$)=>gd(w,C=>{u[$]=C,f&=~(1<<$),a&&p()},()=>{f|=1<<$}));return a=!0,p(),function(){As(y),v(),a=!1}})}function xe(t){let e;return gd(t,i=>e=i)(),e}var lu=!1,cf=Symbol();function S(t,e,i){var s;let o=(s=i[e])!=null?s:i[e]={store:null,source:is(void 0),unsubscribe:ae};if(o.store!==t&&!(cf in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=ae;else{var n=!0;o.unsubscribe=gd(t,l=>{n?o.source.v=l:O(o.source,l)}),n=!1}return t&&cf in i?xe(t):r(o.source)}function Ue(){let t={};function e(){Wo(()=>{for(var i in t)t[i].unsubscribe();vo(t,cf,{enumerable:!1,value:!0})})}return[t,e]}function uf(t){var e=lu;try{return lu=!1,[t(),lu]}finally{lu=e}}var db={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Ae&&wg(`${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 Re(t,e,i){return new Proxy(Ae?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},db)}var cb={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Ps(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 n=t.props[o];Ps(n)&&(n=n());let s=en(n,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(Ps(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=en(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===zo||e===Qa)return!1;for(let i of t.props)if(Ps(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props)if(Ps(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 bs(...t){return new Proxy({props:t},cb)}function Vh(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function m(t,e,i,o){var X,D;var n=(i&1)!==0,s=!Jr||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,a=!1,u;l?[u,a]=uf(()=>t[e]):u=t[e];var f=zo in t||Qa in t,v=l&&((D=(X=en(t,e))==null?void 0:X.set)!=null?D:f&&e in t&&(H=>t[e]=H))||void 0,p=o,y=!0,w=!1,$=()=>(w=!0,y&&(y=!1,d?p=Ct(o):p=o),p);u===void 0&&o!==void 0&&(v&&s&&xg(e),u=$(),v&&v(u));var C;if(s)C=()=>{var H=t[e];return H===void 0?$():(y=!0,w=!1,H)};else{var T=(n?Rr:Nr)(()=>t[e]);T.f|=131072,C=()=>{var H=r(T);return H!==void 0&&(p=void 0),H===void 0?p:H}}if((i&4)===0&&s)return C;if(v){var I=t.$$legacy;return function(H,K){return arguments.length>0?((!s||!K||I||a)&&v(K?C():H),H):C()}}var M=!1,k=!1,E=is(u),R=Rr(()=>{var H=C(),K=r(E);return M?(M=!1,k=!0,K):(k=!1,E.v=H)});return l&&r(R),n||(R.equals=Za),function(H,K){if(Xc!==null&&(M=k,C(),r(E)),arguments.length>0){let J=K?r(R):s&&l?ri(H):H;if(!R.equals(J)){if(M=!0,O(E,J),w&&p!==void 0&&(p=J),Vh(R))return H;Ct(()=>r(R))}return H}return Vh(R)?R.v:r(R)}}var ub;typeof HTMLElement=="function"&&(ub=class extends HTMLElement{constructor(e,i,o){super();Xn(this,"$$ctor");Xn(this,"$$s");Xn(this,"$$c");Xn(this,"$$cn",!1);Xn(this,"$$d",{});Xn(this,"$$r",!1);Xn(this,"$$p_d",{});Xn(this,"$$l",{});Xn(this,"$$l_u",new Map);Xn(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 n=this.$$c.$on(e,i);this.$$l_u.set(i,n)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let n=this.$$l_u.get(i);n&&(n(),this.$$l_u.delete(i))}}connectedCallback(){return St(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),b(l,d)}};var e=i;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=pb(this);for(let s of this.$$s)s in n&&(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]=pf(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=ph({component:this.$$ctor,target:this.shadowRoot||this,props:Ut(W({},this.$$d),{$$slots:o,$$host:this})}),this.$$me=Qc(()=>{Qo(()=>{var s;this.$$r=!0;for(let l of xp(this.$$c)){if(!((s=this.$$p_d[l])!=null&&s.reflect))continue;this.$$d[l]=this.$$c[l];let d=pf(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 n;this.$$r||(e=this.$$g_p(e),this.$$d[e]=pf(e,o,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$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 xp(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function pf(t,e,i,o){var s;let n=(s=i[t])==null?void 0:s.type;if(e=n==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!i[t])return e;if(o==="toAttribute")switch(n){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(n){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function pb(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var Rh="5";var Nh,Oh,Bh;typeof window!="undefined"&&((Bh=(Oh=(Nh=window.__svelte)!=null?Nh:window.__svelte={}).v)!=null?Bh:Oh.v=new Set).add(Rh);var Vl=require("@vkontakte/videoplayer-core/es2015"),nZ=require("@vkontakte/videoplayer-core/es2015"),za=require("@vkontakte/videoplayer-shared/es2015"),O_=require("@vkontakte/videoplayer-statistics/es2015");var fa=require("@vkontakte/videoplayer-shared/es2015");var fb={isMobile:void 0,disableInvisibleComponentsTimeout:500,debugLog:!1,devNullLog:!1,defaultLanguage:fa.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:fa.VideoQuality.Q_480P,highQualityLimit:fa.VideoQuality.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,thinStatistics:!1,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,tracer:!1,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,interactiveControlsTapPlace:!1,interactiveControlsFillAnimation:!1,interactiveControlsHideAnimation:!1,interactiveHistoryEndChapterFix:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,skipInitialPlaybackRateValue:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusAnimationDuration:1e3,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,playbackStatusNextVideoAnimationDuration:1e3,initSubtitles:!0,useCallbackForMediaSessionNextPrevClick:!1,usePerformanceFix:!1,userVideoPrefs:!1,savePreferredStatesOnUserActionOnly:!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,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1,usePuid:!0},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"},Dh=t=>(0,fa.fillWithDefault)(t,fb),Hh=t=>el("ui-config",t),At=()=>Ja("ui-config");var hd="vk_player_debug_panel_opened";var Fh="videoplayer",Uh="videoplayer";var rs={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},zh=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Wh=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Kh=new Set(["ShiftRight","ShiftLeft"]);var qh=["TIMELINE"],_d=[...qh,"GRAPH_BUTTON"],ff=[...qh,"PLAY_BUTTON"],bd=[..._d,"PLAY_BUTTON"];var Fr=(s=>(s.XS="xs",s.S="s",s.M="m",s.L="l",s.XL="xl",s))(Fr||{}),va={xs:0,s:1,m:2,l:3,xl:4};var $d=require("@vkontakte/videoplayer-shared/es2015"),Gh=require("@vkontakte/videoplayer-core/es2015"),Qh=require("@vkontakte/videoplayer-statistics/es2015");var du="prod",ga="1.1.71-dev.7e2bd993.0";var ha=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var jh=Symbol("storeContext"),Yh=Symbol("microStoresContext"),Zh=(t,e)=>{el(jh,t),el(Yh,e),du==="dev"&&(window.app={store:t,microStores:e})},Ie=()=>{let t=Ja(jh);return(0,$d.assertNonNullable)(t,"Store context is empty!"),t},xo=()=>{let t=Ja(Yh);return(0,$d.assertNonNullable)(t,"MicroStores context is empty!"),t},ni=(t,e)=>uu(t,t.getValue(),e),uu=(t,e,i)=>xr(e,o=>{let n=t.subscribe(s=>{o(s),i==null||i(s)});return()=>n.unsubscribe()}),Xh=(t,e,i,o)=>{var R,X,D,H,K,J,j,ce;let n=t.info,{width:s,height:l}=xe(i.ui.playerSize),d=(X=(R=n.throughputEstimation$.getValue())==null?void 0:R.toFixed(0))!=null?X:0,a=(H=(D=n.rttEstimation$.getValue())==null?void 0:D.toFixed(0))!=null?H:0,u=n.isAutoQualityEnabled$.getValue()?"auto":"manual",f=`${ga} (core: ${Gh.VERSION}, stat: ${Qh.VERSION}, shared: ${$d.VERSION})`,v=xe(i.state.errorLog$),p=v.length?`
45
+ `+v.map((oe,pe)=>{var ne;let be=`${pe}) Type: ${oe.id}
46
+ `,fe=`Message: ${oe.message} (${oe.thrown})
47
+ `,ke=`Trace: ${(ne=oe.thrown)==null?void 0:ne.stack}
48
+ `;return be+fe+ke}).join(`
49
+ `):void 0,y=i.state.isAudioDisabled?"disabled":xe(i.state.isAudioAvailable$)?void 0:"unavailable",w=t.info.currentVideoStream$.getValue(),$=t.info.currentAudioStream$.getValue(),C=[];w&&C.push(`Video: ${(K=w==null?void 0:w.codec)!=null?K:""}`+(w!=null&&w.hdr?" (HDR)":"")),$&&C.push(`Audio: ${(J=$==null?void 0:$.codec)!=null?J:""}`+($!=null&&$.language?` (${$.language})`:""));let T=n.currentQuality$.getValue(),I="";if(T){let oe=n.availableQualitiesFps$.getValue()[T];I=oe?`${oe}fps`:""}let M=(ce=(j=n.currentBuffer$.getValue())==null?void 0:j.end)!=null?ce:0,k=Math.max(M-xe(i.state.positionExact$),0),E={Version:f,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),TraceId:o,VSID:xe(i.vsid),"Content host":n.hostname$.getValue(),"Connection type":n.httpConnectionType$.getValue()+(n.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${d}Kbps @ ${a}ms RTT`,Format:n.currentFormat$.getValue(),"Available Formats":Object.keys(e.sources).join(", "),Streams:C.join(", "),Quality:`${u} ${T} ${I}`,"Available qualities":n.availableQualities$.getValue().join(", "),Audio:y,Position:`${xe(i.state.positionExact$)}s`,Buffer:`${k}s`,State:`${xe(i.playerPhase)} ${n.playbackState$.getValue()}`,"Player size":`${s}x${l}`,URL:window.location.href,Errors:p};return Object.entries(E).filter(([oe,pe])=>pe!==void 0).map(([oe,pe])=>`${oe}: ${pe}`).join(`
50
+ `)},Jh=(t,e,i)=>{var X,D,H,K;let o=t.info,{width:n,height:s}=xe(i.ui.playerSize),l={version:ga,viewport:`${n}x${s}`,volume:Math.round(xe(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-xe(i.state.positionExact$),0)),l.position=xe(i.state.positionExact$);let y=o.throughputEstimation$.getValue();y&&(l.speed=y);let w=o.videoBitrate$.getValue();w&&(l.bitrate=w);let $=o.liveLatency$.getValue();$&&(l.liveLatency=$);let C=o.currentVideoSegmentLength$.getValue();C&&(l.currentVideoSegmentLength=C);let T=o.currentAudioSegmentLength$.getValue();T&&(l.currentAudioSegmentLength=T);let I=xe(i.vsid);typeof I=="string"&&(l.vsid=I);let M=(X=t.info.currentVideoStream$.getValue())==null?void 0:X.codec;M&&(l.videoCodec=M);let k=(D=t.info.currentAudioStream$.getValue())==null?void 0:D.codec;k&&(l.audioCodec=k),((H=t.info.currentVideoStream$.getValue())==null?void 0:H.hdr)&&(l.hdr=!0);let R=(K=t.info.currentAudioStream$.getValue())==null?void 0:K.language;return R&&(l.audioLanguage=R),l},e1=(t,e)=>ha(t,e,"mp4"),t1=t=>!t.type,i1=t=>!!t.type,o1=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},cu=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}download(e){return St(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"),NA=require("@vkontakte/videoplayer-core/es2015");var n1="vk_player_prefer_traffic_saving_enabled",r1="vk_player_preferred_volume",s1="vk_player_prefer_volume_mute",hf="vk_player_preferred_quality",mf="vk_player_preferred_default_quality_settings",vf="vk_player_preferred_quality_settings_by_video",a1="vk_player_preferred_stream_language",l1="vk_player_preferred_rate",d1="vk_player_preferred_autoplay_next",gf="vk_player_preferred_subtitles_language",c1="vk_player_user_video_prefs",u1=t=>t>1?1:t<0?0:t,_f=t=>_i.safeStorage.set(r1,u1(t).toString(10)),pu=()=>{let t=_i.safeStorage.get(r1);return(0,_i.isNullable)(t)?void 0:u1(parseFloat(t))},bf=(t,e)=>_i.safeStorage.set(hf,JSON.stringify({videoId:t,value:e})),xd=()=>_i.safeStorage.remove(hf),$f=t=>{let e=_i.safeStorage.get(hf);if((0,_i.isNullable)(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){xd();return}return o},yf=(t,e)=>{e?_i.safeStorage.set(t,"true"):_i.safeStorage.remove(t)},xf=t=>_i.safeStorage.get(t)==="true",wf=t=>yf(s1,t),p1=()=>xf(s1),yd=t=>yf(n1,t),Sf=()=>xf(n1),f1=()=>_i.safeStorage.get(a1),Cf=t=>_i.safeStorage.set(a1,t),Tf=()=>_i.safeStorage.get(gf),If=t=>{t?_i.safeStorage.set(gf,t):_i.safeStorage.remove(gf)},m1=t=>_i.safeStorage.set(l1,JSON.stringify({rate:t})),v1=()=>{let t=_i.safeStorage.get(l1);if((0,_i.isNullable)(t))return;let{rate:e}=JSON.parse(t);return e},g1=t=>yf(d1,t),h1=()=>xf(d1),mb=()=>{let t=f=>{_i.safeStorage.set(mf,JSON.stringify(f))},e=()=>{try{let f=_i.safeStorage.get(mf);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=_i.safeStorage.get(vf);return f?JSON.parse(f):null}catch(f){return null}},o=f=>{_i.safeStorage.set(vf,JSON.stringify(f))},n=f=>{u(f);let v=f?i():null;if(v&&(v==null?void 0:v.videoId)===f)return Ut(W({},v),{appliesTo:"to-video"});v&&s();let p=e();return p?Ut(W({},p),{appliesTo:"as-default"}):(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},s=()=>{_i.safeStorage.remove(vf)},l=()=>{_i.safeStorage.remove(mf)},d=(f,v="as-default")=>{f.type==="exact_quality"?o(f):v==="as-default"?t(f):o(f)},a=f=>{let v=n(f);if(v){switch(v.type){case"traffic_saving":yd(!0);break;case"exact_quality":bf(f,v.quality)}s(),l()}},u=f=>{let v=$f(f);if(v){o({type:"exact_quality",videoId:f,quality:v});return}Sf()&&t({type:"traffic_saving",videoId:f}),yd(!1),xd()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:a,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:s,getPreferredDefaultQualitySettings:e,getPreferredSubtitlesLanguage:Tf,savePreferredSubtitlesLanguage:If}},{getPreferredQualitySettings:_1,migrateSettingsToLegacyWay:b1,savePreferredQualitySettings:fu,savePreferredDefaultQualitySettings:OA,removePreferredQualitySettingsByVideo:BA,getPreferredDefaultQualitySettings:mu}=mb(),vb=3,gb=3,$1=()=>{let t=_i.safeStorage.get(c1);if(t)try{return JSON.parse(t)}catch(e){return null}return null},vu=(t,e)=>{var n,s;let i=$1();return(s=(n=i==null?void 0:i[t])==null?void 0:n[e])!=null?s:null},Ef=(t,e,i)=>{var l,d,a;let o=(l=$1())!=null?l:{},n=(a=(d=o[t])==null?void 0:d[e])!=null?a:{};Object.assign(n,i,{updatedTs:Date.now()}),t in o||(o[t]={}),o[t][e]=n;let s=hb(o);_i.safeStorage.set(c1,JSON.stringify(s))};function hb(t){let e=Object.entries(t).reduce((o,[n,s])=>{let l=0;return Object.values(s).forEach(d=>{l<d.updatedTs&&(l=d.updatedTs)}),o.push([n,l]),o},[]);return e.sort(([,o],[,n])=>o>n?-1:1),e.splice(gb),e.reduce((o,[n])=>(o[n]=_b(t[n]),o),{})}function _b(t){let e=Object.entries(t);return e.sort(([,i],[,o])=>i.updatedTs>o.updatedTs?-1:1),e.splice(vb),Object.fromEntries(e)}var Lv=require("@vkontakte/videoplayer-core/es2015");var bb=Te('<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 wd(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=bb();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"76",height:"45",fill:"none","data-testid":"video-360-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Ce(2),h(o),b(t,o)}var gl=require("@vkontakte/videoplayer-shared/es2015");var $b={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
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`},$1=_b;var bb={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,
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`},y1=$b;var yb={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
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.`},y1=bb;var xs=new Map;xs.set(hl.InterfaceLanguage.EN,y1);xs.set(hl.InterfaceLanguage.RU,$1);var x1=new Map,If=({language:t,pack:e,fallback:i})=>{if(xs.has(t)){let o=xs.get(t);xs.set(t,z(z({},o),e))}else xs.set(t,e);x1.set(t,i)},kf=t=>xs.has(t),Pf=(t,e,i,o)=>{var l;let n=xs.get(t),s=n==null?void 0:n[e];if((0,hl.isNullable)(s)){let d=(l=x1.get(t))!=null?l:o,a=d?xs.get(d):void 0;s=a==null?void 0:a[e]}return(0,hl.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},K=(t,e)=>{let{interfaceLanguage$:i}=ke(),o=Se(i),n=At();return Pf(o,t,e,n.defaultLanguage)};var aM=require("@vkontakte/videoplayer-core/es2015");var _l;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(_l||(_l={}));var $b=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,yb=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,xb=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,vu="?",wb="X-Sentry-Auth",Sb=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Cb(t){if(!t.stack)return null;let e=[],i=t.stack.split(`
55
- `),o,n;for(let s=0;s<i.length;++s){if(o=$b.exec(i[s]))n={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||vu,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=xb.exec(i[s]))n={filename:o[2],function:o[1]||vu,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=yb.exec(i[s]))s===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),n={filename:o[3],function:o[1]||vu,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!n.function&&n.lineno&&(n.function=vu),e.push(n)}return e.length?{value:w1(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function w1(t){return(t&&t.message||"No error message").split(`
56
- `).filter(i=>!!i)[0]}function Tb(t){try{let e=Cb(t);if(e)return e}catch(e){}return{value:w1(t),type:t&&t.name,stacktrace:{frames:[]}}}function Eb(){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=Sb.exec(e.dsn),o=i?i.slice(1):[],n=o[5].split("/"),s=n.slice(0,-1).join("/");this.apiUrl=o[0]+"://"+o[3]+(o[4]?":"+o[4]:"")+(s?"/"+s:"")+"/api/"+n.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 Bt(z({},this.getRequestBlank()),{exception:{values:[Tb(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(wb,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:Eb(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function S1(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function Ib(){return window}var hu=class t extends gu{constructor(e,i=Ib()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:n=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=n,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",z({},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",z({},e)),this}setUser(e){return this.setKeyState("user",z({},e)),this}clone(){let e=new t(Bt(z({},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:[z({timestamp:Date.now()/1e3},this.beforeBreadcrumb(e))]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send(Bt(z({},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=>S1(i,o))):!1}getRequestBlank(){return z(Bt(z({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(z({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=>S1(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 n=this._state[o],s=Array.isArray(n)?n:null,l=e[o],d=Array.isArray(l)?l:null;return Bt(z({},i),{[o]:s||d?[...s||[],...d||[]]:z(z({},typeof n!="string"?n:{}),typeof l!="string"?l:{})})},this._state)}setKeyState(e,i){this._state[e]=i}};var ba=require("@vkontakte/videoplayer-shared/es2015");var _u=null,$a=class{constructor(e,i,o={}){!_u&&e.dsn&&(this.sentryClient=new hu({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new ba.Subscription,this.options=e,this.context=o,_u=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),_u=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:n,context:s,options:l}=this,{sampleRate:d=0,whiteErrorIdList:a,whiteErrorCategoryList:u=[],blackErrorIdList:f,blackErrorCategoryList:v}=l,{errorType:p,category:y}=i;if((0,ba.isNonNullable)(y)&&v.includes(y)||(0,ba.isNonNullable)(p)&&f.includes(p))return;if(Math.random()<=d||(0,ba.isNonNullable)(y)&&u.includes(y)||(0,ba.isNonNullable)(p)&&a.includes(p)){Object.keys(i).length&&n.setTags(z({version:this.version},i)),(Object.keys(s).length||Object.keys(o).length)&&n.setExtras(z(z({},s),o));try{p&&n.captureMessage(p,i.fatal?_l.fatal:_l.error),n.report(e)}catch($){console.error($)}}}static getInstance(){return _u}};var ls=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(ls||{});var bu=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()},$u=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),C1=(t,e)=>!!(e!=null&&e.webkitSupportsFullscreen)||t.fullscreenEnabled||!!t.webkitFullscreenEnabled||!!t.mozFullscreenEnabled||!!t.msFullscreenEnabled,T1=t=>{let e=t;e!=null&&e.webkitExitFullscreen&&(e==null||e.webkitExitFullscreen())},Id=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},Bs=()=>!!Id(),yu=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},xu=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},E1=t=>{let e=window.screen;return(n=>xt(null,null,function*(){return e.orientation?e.orientation.lock(n):e.mozLockOrientation?e.mozLockOrientation(n):e.msLockOrientation?e.msLockOrientation(n):Promise.reject()}))(((n={width:0,height:0})=>n.width<=n.height?"portrait":"landscape")(t))};var Af=require("@vkontakte/videoplayer-core/es2015"),I1=()=>({title:K("hotkey_map_modal_title"),closeBtnText:K("hotkey_map_modal_close_btn_text"),groups:[{title:K("hotkey_map_group_title_common"),items:[{description:K("hotkey_map_item_mute_description"),value:K("hotkey_map_item_mute_value")},{description:K("hotkey_map_item_volume_up_description"),value:K("hotkey_map_item_volume_up_value")},{description:K("hotkey_map_item_volume_down_description"),value:K("hotkey_map_item_volume_down_value")},{description:K("hotkey_map_item_pip_description"),value:K("hotkey_map_item_pip_value")},{description:K("hotkey_map_item_full_screen_description"),value:K("hotkey_map_item_full_screen_value")},{description:K("hotkey_map_item_show_context_menu_description"),value:K("hotkey_map_item_show_context_menu_value")},{description:K("hotkey_map_item_show_hotkey_map_description"),value:K("hotkey_map_item_show_hotkey_map_value")}]},{title:K("hotkey_map_group_title_playback"),items:[{description:K("hotkey_map_item_play_toggle_description"),value:K("hotkey_map_item_play_toggle_value")},{description:K("hotkey_map_item_seek_backward_description"),value:K("hotkey_map_item_seek_backward_value")},{description:K("hotkey_map_item_seek_forward_description"),value:K("hotkey_map_item_seek_forward_value")},{description:K("hotkey_map_item_fast_seek_backward_description"),value:K("hotkey_map_item_fast_seek_backward_value")},{description:K("hotkey_map_item_fast_seek_forward_description"),value:K("hotkey_map_item_fast_seek_forward_value")},{description:K("hotkey_map_item_rate_down_description"),value:K("hotkey_map_item_rate_down_value")},{description:K("hotkey_map_item_rate_up_description"),value:K("hotkey_map_item_rate_up_value")},{description:K("hotkey_map_item_prev_frame_description"),value:K("hotkey_map_item_prev_frame_value")},{description:K("hotkey_map_item_next_frame_description"),value:K("hotkey_map_item_next_frame_value")},{description:K("hotkey_map_item_jump_seek_description"),value:K("hotkey_map_item_jump_seek_value")},{description:K("hotkey_map_item_next_video_description"),value:K("hotkey_map_item_next_video_value")},{description:K("hotkey_map_item_prev_video_description"),value:K("hotkey_map_item_prev_video_value")}]},{title:K("hotkey_map_group_title_subtitles"),items:[{description:K("hotkey_map_item_subtitles_toggle_description"),value:K("hotkey_map_item_subtitles_toggle_value")}]},{title:K("hotkey_map_group_title_episodes"),items:[{description:K("hotkey_map_item_prev_episode_description"),value:Af.clientChecker.device.isApple?K("hotkey_map_item_prev_episode_mac_value"):K("hotkey_map_item_prev_episode_pc_value")},{description:K("hotkey_map_item_next_episode_description"),value:Af.clientChecker.device.isApple?K("hotkey_map_item_next_episode_mac_value"):K("hotkey_map_item_next_episode_pc_value")}]}]});var bl=require("@vkontakte/videoplayer-shared/es2015");var ya=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,bl.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new bl.ValueSubject(!1),isEnabled$:new bl.ValueSubject(!1),type:0};this.info.isEnabled$=new bl.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=z({},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 n,s;let o=e.pictureInPictureWindow;o&&(this.info.isActive$.next(!0),this.isRequested=!0,o.addEventListener("resize",this.eventHandlers.resize),(s=(n=this.externalEventHandlers).enterpictureinpicture)==null||s.call(n,e))}onLeavePictureInPicture(e){var n,s;let o=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,o==null||o.removeEventListener("resize",this.eventHandlers.resize),(s=(n=this.externalEventHandlers).leavepictureinpicture)==null||s.call(n,e)}onResize(e){var i,o;(o=(i=this.externalEventHandlers).resize)==null||o.call(i,e)}setEnabled(e){this.info.isEnabled$.next(e)}};function xa(t){return t instanceof ya}var $l=require("@vkontakte/videoplayer-shared/es2015");Eg();function Lf(t,e){F(e,!1);let i=ke();Dt(()=>{i.getAdmanWrapper().startPostroll()}),Br(),U()}var k1=require("@vkontakte/videoplayer-shared/es2015");var kb=(t,e,i)=>{t.stopPropagation(),r(e)&&i()()},Pb=A('<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>'),Ab=A("<div><!></div>"),Mb={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 Vf(t,e){F(e,!0),q(t,Mb);let[i,o]=He(),n=()=>C(u,"$isMobile",i),s=m(e,"position",3,0),l=m(e,"secondsToWatchBeforeSkip",3,0),d=m(e,"skipAd",3,k1.noop),u=ke().ui.isMobile,f=g(()=>s()>0&&s()>=l());var v=Ab();let p;v.__click=[kb,f,d];var y=_(v);{var w=S=>{var T=Pb(),E=_(T);Te(),h(T),B(V=>ye(E,`${V!=null?V:""} `),[()=>K("skip_ads_now")]),b(S,T)},$=S=>{var T=rs();B(E=>ye(T,E),[()=>K("skip_ads_after",{time:Math.ceil(l()-s()).toFixed(0)})]),b(S,T)};L(y,S=>{r(f)?S(w):S($,!1)})}h(v),B(S=>p=te(v,1,"container svelte-1k4i25s",null,p,S),[()=>({"container-mobile":n(),skippable:r(f)})]),b(t,v),U(),o()}ct(["click"]);var Lb=A('<button class="svelte-1wy3dql"> </button>'),Vb={hash:"svelte-1wy3dql",code:"button.svelte-1wy3dql {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 Rf(t,e){F(e,!1),q(t,Vb),Br();var i=Lb(),o=_(i,!0);h(i),B(n=>ye(o,n),[()=>K("visit_advertiser")],Vr),b(t,i),U()}var Rb=A('<div class="top-gradient-mobile svelte-354ajf"></div>'),Nb=A('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),Ob={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(
54
+ Try switching the\xA0quality to\xA0Auto.`},x1=yb;var $s=new Map;$s.set(gl.InterfaceLanguage.EN,x1);$s.set(gl.InterfaceLanguage.RU,y1);var w1=new Map,kf=({language:t,pack:e,fallback:i})=>{if($s.has(t)){let o=$s.get(t);$s.set(t,W(W({},o),e))}else $s.set(t,e);w1.set(t,i)},Pf=t=>$s.has(t),Af=(t,e,i,o)=>{var l;let n=$s.get(t),s=n==null?void 0:n[e];if((0,gl.isNullable)(s)){let d=(l=w1.get(t))!=null?l:o,a=d?$s.get(d):void 0;s=a==null?void 0:a[e]}return(0,gl.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},q=(t,e)=>{let{interfaceLanguage$:i}=Ie(),o=xe(i),n=At();return Af(o,t,e,n.defaultLanguage)};var dM=require("@vkontakte/videoplayer-core/es2015");var hl;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(hl||(hl={}));var xb=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,wb=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,Sb=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,gu="?",Cb="X-Sentry-Auth",Tb=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Ib(t){if(!t.stack)return null;let e=[],i=t.stack.split(`
55
+ `),o,n;for(let s=0;s<i.length;++s){if(o=xb.exec(i[s]))n={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||gu,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=Sb.exec(i[s]))n={filename:o[2],function:o[1]||gu,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=wb.exec(i[s]))s===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),n={filename:o[3],function:o[1]||gu,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!n.function&&n.lineno&&(n.function=gu),e.push(n)}return e.length?{value:S1(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function S1(t){return(t&&t.message||"No error message").split(`
56
+ `).filter(i=>!!i)[0]}function Eb(t){try{let e=Ib(t);if(e)return e}catch(e){}return{value:S1(t),type:t&&t.name,stacktrace:{frames:[]}}}function kb(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var hu=class{constructor(e){if(e&&e.dsn){let i=Tb.exec(e.dsn),o=i?i.slice(1):[],n=o[5].split("/"),s=n.slice(0,-1).join("/");this.apiUrl=o[0]+"://"+o[3]+(o[4]?":"+o[4]:"")+(s?"/"+s:"")+"/api/"+n.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 Ut(W({},this.getRequestBlank()),{exception:{values:[Eb(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(Cb,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:kb(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function C1(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function Pb(){return window}var _u=class t extends hu{constructor(e,i=Pb()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:n=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=n,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",W({},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",W({},e)),this}setUser(e){return this.setKeyState("user",W({},e)),this}clone(){let e=new t(Ut(W({},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:[W({timestamp:Date.now()/1e3},this.beforeBreadcrumb(e))]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send(Ut(W({},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=>C1(i,o))):!1}getRequestBlank(){return W(Ut(W({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(W({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=>C1(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 n=this._state[o],s=Array.isArray(n)?n:null,l=e[o],d=Array.isArray(l)?l:null;return Ut(W({},i),{[o]:s||d?[...s||[],...d||[]]:W(W({},typeof n!="string"?n:{}),typeof l!="string"?l:{})})},this._state)}setKeyState(e,i){this._state[e]=i}};var _a=require("@vkontakte/videoplayer-shared/es2015");var bu=null,ba=class{constructor(e,i,o={}){!bu&&e.dsn&&(this.sentryClient=new _u({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new _a.Subscription,this.options=e,this.context=o,bu=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),bu=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:n,context:s,options:l}=this,{sampleRate:d=0,whiteErrorIdList:a,whiteErrorCategoryList:u=[],blackErrorIdList:f,blackErrorCategoryList:v}=l,{errorType:p,category:y}=i;if((0,_a.isNonNullable)(y)&&v.includes(y)||(0,_a.isNonNullable)(p)&&f.includes(p))return;if(Math.random()<=d||(0,_a.isNonNullable)(y)&&u.includes(y)||(0,_a.isNonNullable)(p)&&a.includes(p)){Object.keys(i).length&&n.setTags(W({version:this.version},i)),(Object.keys(s).length||Object.keys(o).length)&&n.setExtras(W(W({},s),o));try{p&&n.captureMessage(p,i.fatal?hl.fatal:hl.error),n.report(e)}catch($){console.error($)}}}static getInstance(){return bu}};var ss=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(ss||{});var $u=t=>{if(t.requestFullscreen)return t.requestFullscreen();if(t.msRequestFullscreen)return t.msRequestFullscreen();if(t.webkitRequestFullscreen)return t.webkitRequestFullscreen();if(t.mozRequestFullScreen)return t.mozRequestFullScreen();let e=t.querySelector("video");return e!=null&&e.webkitEnterFullscreen?(e.webkitEnterFullscreen(),Promise.resolve()):Promise.reject()},yu=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),xu=t=>t.fullscreenEnabled,T1=t=>{let e=t;e!=null&&e.webkitExitFullscreen&&(e==null||e.webkitExitFullscreen())},Sd=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},Ns=()=>!!Sd(),wu=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},Su=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},I1=t=>{let e=window.screen;return(n=>St(null,null,function*(){return e.orientation?e.orientation.lock(n):e.mozLockOrientation?e.mozLockOrientation(n):e.msLockOrientation?e.msLockOrientation(n):Promise.reject()}))(((n={width:0,height:0})=>n.width<=n.height?"portrait":"landscape")(t))};var Mf=require("@vkontakte/videoplayer-core/es2015"),E1=()=>({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:Mf.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:Mf.clientChecker.device.isApple?q("hotkey_map_item_next_episode_mac_value"):q("hotkey_map_item_next_episode_pc_value")}]}]});var _l=require("@vkontakte/videoplayer-shared/es2015");var $a=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,_l.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new _l.ValueSubject(!1),isEnabled$:new _l.ValueSubject(!1),type:0};this.info.isEnabled$=new _l.ValueSubject(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.info.isActive$.getValue()}setContext(e){this.svelteContext=e}revealPictureInPicture(){return St(this,null,function*(){this.isRequested&&(this.removeEventHandlers(),yield this.request(),this.addEventHandlers())})}request(){return St(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 St(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=W({},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 St(this,null,function*(){this.removeEventHandlers(),yield this.exit(),this.info.isActive$.next(!1),this.isRequested=!1})}onEnterPictureInPicture(e){var n,s;let o=e.pictureInPictureWindow;o&&(this.info.isActive$.next(!0),this.isRequested=!0,o.addEventListener("resize",this.eventHandlers.resize),(s=(n=this.externalEventHandlers).enterpictureinpicture)==null||s.call(n,e))}onLeavePictureInPicture(e){var n,s;let o=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,o==null||o.removeEventListener("resize",this.eventHandlers.resize),(s=(n=this.externalEventHandlers).leavepictureinpicture)==null||s.call(n,e)}onResize(e){var i,o;(o=(i=this.externalEventHandlers).resize)==null||o.call(i,e)}setEnabled(e){this.info.isEnabled$.next(e)}};function ya(t){return t instanceof $a}var bl=require("@vkontakte/videoplayer-shared/es2015");Eg();function Vf(t,e){U(e,!1);let i=Ie();zt(()=>{i.getAdmanWrapper().startPostroll()}),Hr(),z()}var k1=require("@vkontakte/videoplayer-shared/es2015");var Ab=(t,e,i)=>{t.stopPropagation(),r(e)&&i()()},Mb=A('<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>'),Lb=A("<div><!></div>"),Vb={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 Rf(t,e){U(e,!0),G(t,Vb);let[i,o]=Ue(),n=()=>S(u,"$isMobile",i),s=m(e,"position",3,0),l=m(e,"secondsToWatchBeforeSkip",3,0),d=m(e,"skipAd",3,k1.noop),u=Ie().ui.isMobile,f=g(()=>s()>0&&s()>=l());var v=Lb();let p;v.__click=[Ab,f,d];var y=_(v);{var w=C=>{var T=Mb(),I=_(T);Ce(),h(T),B(M=>$e(I,`${M!=null?M:""} `),[()=>q("skip_ads_now")]),b(C,T)},$=C=>{var T=os();B(I=>$e(T,I),[()=>q("skip_ads_after",{time:Math.ceil(l()-s()).toFixed(0)})]),b(C,T)};V(y,C=>{r(f)?C(w):C($,!1)})}h(v),B(C=>p=te(v,1,"container svelte-1k4i25s",null,p,C),[()=>({"container-mobile":n(),skippable:r(f)})]),b(t,v),z(),o()}ft(["click"]);var Rb=A('<button class="svelte-1wy3dql"> </button>'),Nb={hash:"svelte-1wy3dql",code:"button.svelte-1wy3dql {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 Nf(t,e){U(e,!1),G(t,Nb),Hr();var i=Rb(),o=_(i,!0);h(i),B(n=>$e(o,n),[()=>q("visit_advertiser")],Nr),b(t,i),z()}var Ob=A('<div class="top-gradient-mobile svelte-354ajf"></div>'),Bb=A('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),Db={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
57
  360deg,
58
58
  rgba(0, 0, 0, 0) 0%,
59
59
  rgba(0, 0, 0, 0.05) 12%,
@@ -63,7 +63,7 @@ Try switching the\xA0quality to\xA0Auto.`},y1=bb;var xs=new Map;xs.set(hl.Interf
63
63
  rgba(0, 0, 0, 0.5) 77%,
64
64
  rgba(0, 0, 0, 0.55) 88%,
65
65
  rgba(0, 0, 0, 0.65) 100%
66
- );}`};function Pd(t,e){F(e,!0),q(t,Ob);let[i,o]=He(),n=()=>C(D,"$canSkipAd",i),s=()=>C(Z,"$adPlaybackState",i),l=()=>C(E,"$isMobile",i),d=()=>C(H,"$adPosition",i),a=()=>C(W,"$secondsToWatchBeforeSkipAd",i),u=()=>C(T,"$isVideoEnded",i),f=m(e,"adsSlotId",3,void 0),v=m(e,"adsParams",3,void 0),p=m(e,"adsPreviewParam",3,void 0),y=m(e,"adsAutoplayParam",3,void 0),w=m(e,"duration",3,0),$=ke(),S=At(),T=$.state.isEnded$,E=$.ui.isMobile,V=S.ads.isMobileGoToSiteButton,k=Y(void 0),I=Y(void 0),R=!1,Z=$.ads.playbackState,D=$.ads.canSkip,H=$.ads.position,W=$.ads.secondsToWatchBeforeSkip,X=g(()=>n()&&s()!=="inactive"),j=g(()=>l()&&s()!=="inactive"&&V);Dt(()=>{var Le;let _e=$.getAdmanWrapper();if($l.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[(0,$l.now)(),f()]}),!f()){_e.onAdmanLoadingError();return}let he=Ie=>{_e.initAdman(Ie),R=!0},ue=new AbortController,me=()=>{ue.abort()},{width:ve,height:se}=Se($.ui.playerSize),Ge=Se($.ui.isFullscreen),et=(Le=y())!=null?Le:Se($.ui.isAutoplay),J={width:ve,height:se,isFullscreen:Ge,isAutoplay:et,adsContainer:r(k),adsVideoElement:r(I),slotId:f(),params:v(),previewParam:p(),duration:w()};return window.AdmanHTML?he(J):_e.loadAdman(ue.signal).then(()=>{he(J)}).catch(()=>{_e.onAdmanLoadingError()}),()=>{$l.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[(0,$l.now)(),f()]}),!R&&me()}});var ce=Nb(),re=_(ce);{var pe=_e=>{var he=Rb();b(_e,he)};L(re,_e=>{l()&&_e(pe)})}var xe=P(re,2);rt(xe,_e=>O(I,_e),()=>r(I));var fe=P(xe,2);{var ie=_e=>{Vf(_e,{get position(){return d()},get secondsToWatchBeforeSkip(){return a()},get skipAd(){return $.actions.internal.skipAd}})};L(fe,_e=>{r(X)&&_e(ie)})}var Pe=P(fe,2);{var ee=_e=>{Lf(_e,{})};L(Pe,_e=>{u()&&_e(ee)})}var N=P(Pe,2);{var Ue=_e=>{Rf(_e,{})};L(N,_e=>{r(j)&&_e(Ue)})}h(ce),rt(ce,_e=>O(k,_e),()=>r(k)),b(t,ce),U(),o()}var Sn=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 n=[o,e].map(s=>String(s).padStart(2,"0")).join(":");return i>0&&(n=`${i}:${n}`),n};var Bb=Ee('<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 Nf(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Bb();Ae(o,()=>z({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20","aria-hidden":"true","data-testid":"live-icon",role:"img"},i));var n=_(o);we(n,()=>{var s;return(s=e.children)!=null?s:de}),Te(2),h(o),b(t,o)}var Db=Ee('<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 Of(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Db();Ae(o,()=>z({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 n=_(o);we(n,()=>{var s;return(s=e.children)!=null?s:de}),Te(2),h(o),b(t,o)}function Ad(t,e){let i=m(e,"isActive",3,!1);var o=ze(),n=ge(o);{var s=d=>{Of(d,{})},l=d=>{Nf(d,{})};L(n,d=>{i()?d(s):d(l,!1)})}b(t,o)}var Hb=A('<div class="equalizer svelte-1s15d2i"><div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div></div>'),Fb=A('<div class="live-icon svelte-1s15d2i"><!></div>'),Ub=A('<span class="text svelte-1s15d2i"> </span>'),zb=A("<div><!> <!></div>"),Wb={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),
66
+ );}`};function Td(t,e){U(e,!0),G(t,Db);let[i,o]=Ue(),n=()=>S(D,"$canSkipAd",i),s=()=>S(X,"$adPlaybackState",i),l=()=>S(I,"$isMobile",i),d=()=>S(H,"$adPosition",i),a=()=>S(K,"$secondsToWatchBeforeSkipAd",i),u=()=>S(T,"$isVideoEnded",i),f=m(e,"adsSlotId",3,void 0),v=m(e,"adsParams",3,void 0),p=m(e,"adsPreviewParam",3,void 0),y=m(e,"adsAutoplayParam",3,void 0),w=m(e,"duration",3,0),$=Ie(),C=At(),T=$.state.isEnded$,I=$.ui.isMobile,M=C.ads.isMobileGoToSiteButton,k=Y(void 0),E=Y(void 0),R=!1,X=$.ads.playbackState,D=$.ads.canSkip,H=$.ads.position,K=$.ads.secondsToWatchBeforeSkip,J=g(()=>n()&&s()!=="inactive"),j=g(()=>l()&&s()!=="inactive"&&M);zt(()=>{var Me;let Be=$.getAdmanWrapper();if(bl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[(0,bl.now)(),f()]}),!f()){Be.onAdmanLoadingError();return}let ue=Ee=>{Be.initAdman(Ee),R=!0},ge=new AbortController,ee=()=>{ge.abort()},{width:ve,height:De}=xe($.ui.playerSize),me=xe($.ui.isFullscreen),at=(Me=y())!=null?Me:xe($.ui.isAutoplay),Z={width:ve,height:De,isFullscreen:me,isAutoplay:at,adsContainer:r(k),adsVideoElement:r(E),slotId:f(),params:v(),previewParam:p(),duration:w()};return window.AdmanHTML?ue(Z):Be.loadAdman(ge.signal).then(()=>{ue(Z)}).catch(()=>{Be.onAdmanLoadingError()}),()=>{bl.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[(0,bl.now)(),f()]}),!R&&ee()}});var ce=Bb(),oe=_(ce);{var pe=Be=>{var ue=Ob();b(Be,ue)};V(oe,Be=>{l()&&Be(pe)})}var be=P(oe,2);nt(be,Be=>O(E,Be),()=>r(E));var fe=P(be,2);{var ke=Be=>{Rf(Be,{get position(){return d()},get secondsToWatchBeforeSkip(){return a()},get skipAd(){return $.actions.internal.skipAd}})};V(fe,Be=>{r(J)&&Be(ke)})}var ne=P(fe,2);{var Le=Be=>{Vf(Be,{})};V(ne,Be=>{u()&&Be(Le)})}var se=P(ne,2);{var N=Be=>{Nf(Be,{})};V(se,Be=>{r(j)&&Be(N)})}h(ce),nt(ce,Be=>O(k,Be),()=>r(k)),b(t,ce),z(),o()}var wn=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 n=[o,e].map(s=>String(s).padStart(2,"0")).join(":");return i>0&&(n=`${i}:${n}`),n};var Hb=Te('<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 Of(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=Hb();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20","aria-hidden":"true","data-testid":"live-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Ce(2),h(o),b(t,o)}var Fb=Te('<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 Bf(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=Fb();Pe(o,()=>W({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 n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Ce(2),h(o),b(t,o)}function Id(t,e){let i=m(e,"isActive",3,!1);var o=qe(),n=he(o);{var s=d=>{Bf(d,{})},l=d=>{Of(d,{})};V(n,d=>{i()?d(s):d(l,!1)})}b(t,o)}var Ub=A('<div class="equalizer svelte-1s15d2i"><div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div></div>'),zb=A('<div class="live-icon svelte-1s15d2i"><!></div>'),Wb=A('<span class="text svelte-1s15d2i"> </span>'),Kb=A("<div><!> <!></div>"),qb={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
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
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
69
  animation-name: svelte-1s15d2i-thumb-timer-equalizer-col1;}.equalizer.svelte-1s15d2i .col:where(.svelte-1s15d2i):nth-child(2) {left:3px;
@@ -134,10 +134,10 @@ Try switching the\xA0quality to\xA0Auto.`},y1=bb;var xs=new Map;xs.set(hl.Interf
134
134
  100% {
135
135
  transform: scaleY(0.6);
136
136
  }
137
- }.text.svelte-1s15d2i {font-size:13px;line-height:16px;color:var(--controls-time);font-weight:500;}`};function Md(t,e){q(t,Wb);let i=m(e,"withEqualizer",3,!1),o=m(e,"isLive",3,!1),n=m(e,"isPlaying",3,!1);var s=zb();let l;var d=_(s);{var a=p=>{var y=Hb();b(p,y)};L(d,p=>{i()&&p(a)})}var u=P(d,2);{var f=p=>{var y=Fb(),w=_(y);Ad(w,{isActive:!0}),h(y),b(p,y)},v=p=>{var y=Ub(),w=_(y,!0);h(y),B(()=>ye(w,e.time)),b(p,y)};L(u,p=>{o()?p(f):p(v,!1)})}h(s),B(p=>l=te(s,1,"wrapper svelte-1s15d2i",null,l,p),[()=>({live:o(),playing:n()})]),b(t,s)}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 Kb=A('<div role="timer" data-testid="thumb-timer"><!></div>'),qb={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 Ld(t,e){F(e,!0),q(t,qb);let[i,o]=He(),n=()=>C(f,"$disabled",i),s=m(e,"isHidden",3,!1),l=m(e,"isLive",3,!1),d=m(e,"isPlaying",3,!1),a=At(),u=g(()=>Sn(e.duration-e.position)),f=ae(!1);var v=Kb();let p;var y=_(v);Md(y,{get time(){return r(u)},get isLive(){return l()},get isPlaying(){return d()},withEqualizer:!0}),h(v),$s(v,()=>yl(s()&&a.features.usePerformanceFix,f,a.disableInvisibleComponentsTimeout)),B(w=>p=te(v,1,"thumb-timer svelte-c6gowj",null,p,w),[()=>({"out-of-flow":n(),hidden:s()})]),b(t,v),U(),o()}var xl=t=>{if(!navigator.clipboard){P1(t);return}navigator.clipboard.writeText(t).catch(()=>P1(t))};function P1(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 D1=require("@vkontakte/videoplayer-core/es2015");var Df=require("@vkontakte/videoplayer-core/es2015");var Bf="focus-hidden";var xr=t=>{t.stopPropagation(),t.preventDefault()},Hf=t=>{var e,i;(i=(e=t.parentNode)==null?void 0:e.firstElementChild)==null||i.classList.remove(Bf)},Qb=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},jb=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},Yb=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},Zb=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},A1=t=>t.code==="Escape",Xb=t=>t.code==="ArrowLeft",Vd=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},M1=t=>{Yb(t)?(xr(t),jb(t.target)):Zb(t)&&(xr(t),Qb(t.target))},Fs=t=>!Df.clientChecker.device.isAndroid&&(t==null?void 0:t.detail)===0||Df.clientChecker.device.isAndroid&&(t==null?void 0:t.pointerType)==="",wl=(t,e,i)=>xt(null,null,function*(){yield ko(),t&&!t.classList.contains("opened")&&!e&&Se(i)&&(yield ko(),i.set(!1),t.focus())}),L1=(t,e,i)=>xt(null,null,function*(){yield ko(),t&&!e&&Se(i)&&(i.set(!1),t.focus())}),Rd=(t,e,i,o=!1)=>xt(null,null,function*(){if(yield ko(),!!t&&e&&!o){let s=t.children[0];s==null||s.classList.toggle(Bf,!i),s==null||s.focus()}}),V1=(t,e)=>xt(null,null,function*(){setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)}),wu=(t,e)=>{M1(t),Hf(t.target),A1(t)&&(xr(t),e())},Su=(t,e)=>xt(null,null,function*(){Vd(t,["ArrowRight"])&&(xr(t),e())}),R1=(t,e,i)=>xt(null,null,function*(){if(M1(t),Xb(t)){xr(t),e();return}A1(t)&&(xr(t),i())}),Sl=(t,e)=>{Vd(t)&&(xr(t),e())},N1=(t,e,i)=>{if(Vd(t))xr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),xr(t);return}o==="ArrowRight"&&!e&&(i(!0),xr(t))}},O1=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},B1=t=>{if(!t)return{top:0,left:0};let e=t.getBoundingClientRect(),i=-58,o=8,n=e.left+o;return{bottom:e.bottom+i,left:n}};var Ca=require("@vkontakte/videoplayer-shared/es2015");var Hr={"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 Ff=require("@vkontakte/videoplayer-shared/es2015");var e$=(t,e)=>{Sl(t,()=>e())},t$=A('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),i$={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 Uf(t,e){F(e,!0),q(t,i$);let i=m(e,"onClick",3,Ff.noop),o=m(e,"closeContextMenu",3,Ff.noop),n=d=>{d==null||d.stopPropagation(),i()(),o()()};var s=t$();s.__click=n,s.__keydown=[e$,n];var l=_(s,!0);h(s),B(()=>{var d;Fe(s,"aria-label",(d=e.ariaLabel)!=null?d:e.label),Fe(s,"data-testid",e.id),ye(l,e.label)}),b(t,s),U()}ct(["click","keydown"]);var Sa=(t,e)=>t.weight-e.weight;var Cl=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(Cl||{});var o$=(t,e)=>{wu(t,e)},n$=t=>{t.preventDefault()},r$=A('<ul role="menu" class="svelte-1p5ukkp"></ul>'),s$={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 zf(t,e){F(e,!0),q(t,s$);let[i,o]=He(),n=()=>C(X,"$isLive$",i),s=()=>C(pe,"$isPiPEnabled$",i),l=()=>C(W,"$chromecastState$",i),d=()=>C(xe,"$pictureInPictureApiIsActive$",i),a=()=>C(re,"$isLooped$",i),u=()=>C(j,"$positionExact$",i),f=()=>C(Z,"$additionalContextMenuItems$",i),v=m(e,"visible",3,!1),p=m(e,"position",19,()=>({top:0,left:0})),y=m(e,"playerContainerRef",3,void 0),w=m(e,"controlsContainerRef",3,void 0),$=m(e,"menuElementRef",15,void 0),S=Y(0),T=Y(0),E=ke(),{pictureInPicture$:V}=yo(),k=At(),I=E.ui.contextMenu.visible$,R=E.ui.debugPanelVisible,Z=E.ui.additionalContextMenuItems$,D=E.ui.t,H=E.actions.internal.togglePictureInPicture,W=E.state.chromecastState$,X=E.state.isLive$,j=E.state.positionExact$,ce=E.state.isInteractive,re=E.state.looped$,{isEnabled$:pe,isActive$:xe}=V,fe=g(()=>{var Ve;return k.features.copyVideoLink&&((Ve=E.callbacks)==null?void 0:Ve.onCopyVideoLink)}),ie=g(()=>r(fe)&&!n()&&!ce),Pe=g(()=>{var Ve;return!!((Ve=E.callbacks)!=null&&Ve.onCopyEmbedCodeClicked)}),ee=g(()=>s()&&l()!==D1.ChromecastState.CONNECTED&&!ce),N=g(()=>!ce),Ue=g(()=>k.features.videoRotate&&!ce),_e=g(()=>k.showSupport&&!d()),he=g(()=>k.features.saveTraceInfoToFile),ue=()=>{var Ve;I.set(!1),(Ve=e.returnFocus)==null||Ve.call(e)},me=(Ve,Xe)=>{if(!$()||!y()||!w())return;let Be=$().getBoundingClientRect(),tt=y().getBoundingClientRect();O(S,Ve-tt.left),O(T,Xe-tt.top),r(S)+Be.width>tt.width&&O(S,tt.width-Be.width),r(T)+Be.height>tt.height&&O(T,tt.height-Be.height),O(S,Math.max(r(S),0),!0),O(T,Math.max(r(T),0),!0)};We(()=>{xt(null,null,function*(){if($()&&y()&&w()){yield ko();let{top:Xe,left:Be,bottom:tt,right:Vt}=p(),Qt=Be!=null?Be:0,it=Xe!=null?Xe:0,yi=$().getBoundingClientRect();(0,Ca.isNullable)(Be)&&!(0,Ca.isNullable)(Vt)&&(Qt=Vt-yi.width),(0,Ca.isNullable)(Xe)&&!(0,Ca.isNullable)(tt)&&(it=tt-yi.height),Qt=Math.max(Qt,0),it=Math.max(it,0),me(Qt,it)}})});let ve=()=>{E.actions.internal.videoRotate()},se=()=>{(0,Ca.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),E.actions.internal.reportProblem(),E.actions.internal.pause()},Ge=()=>{let Ve=E.actions.internal.getDebugTextData();if(k.features.saveDebugInfoToFile){let Xe=new Blob([...Ve],{type:"plain/text"}),Be=window.URL.createObjectURL(Xe);_a(Be,"vk_player_debug_info","txt")}else xl(E.actions.internal.getDebugTextData())},et=()=>{let Ve=E.actions.internal.getTraceTextData(),Xe=new Blob([...Ve],{type:"application/json"}),Be=window.URL.createObjectURL(Xe);_a(Be,"vk_player_trace_info","json")},J=()=>{R.set(!0)},Le=()=>xt(null,null,function*(){var Ve;try{H()}finally{(Ve=e.returnFocus)==null||Ve.call(e)}}),Ie=()=>{E.actions.internal.setLooped(!a())},Ze=()=>{var Ve,Xe;if(r(Pe)){let Be=(Xe=(Ve=E.callbacks)==null?void 0:Ve.onCopyEmbedCodeClicked)==null?void 0:Xe.call(Ve);Be&&xl(Be)}},at=(Ve=!1)=>{var Xe,Be;if((Xe=E.callbacks)!=null&&Xe.onCopyVideoLink){let tt=(Be=E.callbacks)==null?void 0:Be.onCopyVideoLink(Ve,u());tt&&xl(tt)}},bt=g(()=>k.features.saveDebugInfoToFile?D("menu_save_debug"):D("menu_copy_debug")),gt=g(()=>r(fe)?{id:"copy-link",weight:Hr["copy-link"],label:D("menu_copy_video_link"),onClick:()=>at()}:void 0),Tt=g(()=>r(ie)?{id:"copy-link-timestamp",weight:Hr["copy-link-timestamp"],label:D("menu_copy_video_link_with_timestamp"),onClick:()=>at(!0)}:void 0),Qe=g(()=>r(Pe)?{id:"copy-embed-code",weight:Hr["copy-embed-code"],label:D("menu_copy_embed_code"),onClick:Ze}:void 0),Kt=g(()=>r(ee)?{id:"pip",weight:Hr.pip,label:d()?D("menu_pip_close"):D("menu_pip"),onClick:Le}:void 0),ti=g(()=>r(N)?{id:"video-loop",weight:Hr["video-loop"],label:a()?D("menu_video_loop_off"):D("menu_video_loop_on"),ariaLabel:D("aria_label_menu_loop"),onClick:Ie}:void 0),Yt=g(()=>r(Ue)?{id:"rotate",weight:Hr.rotate,label:D("menu_video_rotate"),ariaLabel:D("aria_label_menu_rotate"),onClick:ve}:void 0),jt=g(()=>r(_e)?{id:"report",weight:Hr.report,label:D("menu_report"),ariaLabel:`${D("menu_report")}. ${D("aria_label_new_tab_alert")}`,onClick:se}:void 0),oe=g(()=>({id:"save-debug",weight:Hr["save-debug"],label:r(bt),onClick:Ge})),qt=g(()=>r(he)?{id:"save-trace",weight:Hr["save-trace"],label:D("menu_save_debug"),onClick:et}:void 0),$e=g(()=>({id:"debug-info",weight:Hr["debug-info"],label:D("menu_debug_overlay"),ariaLabel:D("aria_label_menu_debug_overlay"),onClick:J})),Ce=g(()=>[r(gt),r(Tt),r(Qe),r(Kt),r(ti),r(Yt),r(jt),r(oe),r(qt),r($e),...f()].filter(Ve=>!!Ve).sort(Sa));var le=ze(),Ne=ge(le);{var Ke=Ve=>{var Xe=r$();Xe.__contextmenu=[n$],Xe.__keydown=[o$,ue],ki(Xe,21,()=>r(Ce),Be=>Be.id,(Be,tt)=>{Uf(Be,{get id(){return r(tt).id},get label(){return r(tt).label},get ariaLabel(){return r(tt).ariaLabel},get onClick(){return r(tt).onClick},closeContextMenu:ue})}),h(Xe),rt(Xe,Be=>$(Be),()=>$()),B(()=>{var Be,tt;return st(Xe,`top: ${(Be=r(T))!=null?Be:""}px; left: ${(tt=r(S))!=null?tt:""}px;`)}),b(Ve,Xe)};L(Ne,Ve=>{v()&&Ve(Ke)})}b(t,le),U(),o()}ct(["contextmenu","keydown"]);var Cu=class{constructor(e){this.value=e,this.next=null}};var Tl=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new Cu(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 a$=A('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),l$={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 Nd(t,e){F(e,!0),q(t,l$);let i=m(e,"values",19,()=>[]),o=Y(void 0),n=Y(null),s=16,l=120,d=60,a=l/d;Dt(()=>{r(o).width=l,r(o).height=s,O(n,r(o).getContext("2d"),!0)});function u(p,y,w,$,S){S===0&&(S=1),p.fillStyle="#fff",p.fillRect(y,w,$,S)}We(()=>{let p="";if(r(n)){let y=i()[0];for(let $=1;$<i().length;$++)i()[$]>y&&(y=i()[$]);r(n).clearRect(0,0,l,s);let w=d-1;for(let $=i().length-1;$>=0;$--){let S=w*a,T=y>0?s*(i()[$]/y):0;u(r(n),S,0,a,T),p=T+" "+p,w--}}});var f=a$(),v=_(f);rt(v,p=>O(o,p),()=>r(o)),h(f),b(t,f),U()}var Wf=require("@vkontakte/videoplayer-shared/es2015");var d$=(t,e)=>{t.stopPropagation(),Wf.safeStorage.remove(yd),e.set(!1)},c$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),u$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),p$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),f$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),m$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),v$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),g$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),h$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),_$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Position</div> <span> </span></div>'),b$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),$$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),y$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),x$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),w$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),S$=A('<div role="region"><button class="close svelte-4deykz" title="\u0437\u0430\u043A\u0440\u044B\u0442\u044C">[x]</button> <div class="content svelte-4deykz"><div class="svelte-4deykz"><div class="svelte-4deykz">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="svelte-4deykz"><div class="svelte-4deykz">Dropped</div> <span> </span></div> <!> <!> <div class="svelte-4deykz"><div class="svelte-4deykz">FPS</div> <!> <span> </span></div></div></div>'),C$={hash:"svelte-4deykz",code:".container.svelte-4deykz {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-4deykz {top:16px;left:16px;}button.svelte-4deykz {position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff;}.content.svelte-4deykz {padding:5px;}.content.svelte-4deykz > div:where(.svelte-4deykz) > div:where(.svelte-4deykz) {display:inline-block;text-align:right;width:60px;padding:0 5px;}"};function Od(t,e){F(e,!0),q(t,C$);let[i,o]=He(),n=()=>C(d,"$isMobile",i),s=ke(),l=s.ui.debugPanelVisible,d=s.ui.isMobile,a=Y(ri(s.actions.internal.getDebugPanelData())),u=s.actions.internal.getVideoElement(),f=Y(0),v=Y(0),p=Y(0),y=new Tl(60),w=new Tl(60),$=new Tl(60),S=Y(ri([])),T=Y(ri([])),E=Y(ri([])),V=K("aria_label_debug_panel");Dt(()=>{Wf.safeStorage.set(yd,"true"),s.actions.internal.startLogging(),u&&(O(v,u.getVideoPlaybackQuality().droppedVideoFrames,!0),O(f,u.getVideoPlaybackQuality().totalVideoFrames,!0));let $e=window.setInterval(()=>{O(a,s.actions.internal.getDebugPanelData(),!0)},500),Ce;return u&&(Ce=window.setInterval(()=>{if(u){O(v,u.getVideoPlaybackQuality().droppedVideoFrames,!0);let le=u.getVideoPlaybackQuality().totalVideoFrames;O(p,le-r(f)),O(f,le,!0),y.push(r(p)),r(a).speed&&w.push(r(a).speed),r(a).bitrate&&$.push(r(a).bitrate),O(S,y.getValuesFromBottom(),!0),O(T,w.getValuesFromBottom(),!0),O(E,$.getValuesFromBottom(),!0)}},1e3)),()=>{s.actions.internal.stopLogging(),clearInterval($e),Ce&&clearInterval(Ce)}});var k=S$();let I;var R=_(k);R.__click=[d$,l];var Z=P(R,2),D=_(Z),H=P(_(D),2),W=_(H,!0);h(H),h(D);var X=P(D,2);{var j=$e=>{var Ce=c$(),le=P(_(Ce),2),Ne=_(le,!0);h(le),h(Ce),B(()=>ye(Ne,r(a).id)),b($e,Ce)};L(X,$e=>{r(a).id&&$e(j)})}var ce=P(X,2);{var re=$e=>{var Ce=u$(),le=P(_(Ce),2),Ne=_(le,!0);h(le),h(Ce),B(()=>ye(Ne,r(a).vsid)),b($e,Ce)};L(ce,$e=>{r(a).vsid&&$e(re)})}var pe=P(ce,2);{var xe=$e=>{var Ce=p$(),le=P(_(Ce),2),Ne=_(le,!0);h(le),h(Ce),B(()=>ye(Ne,r(a).provider)),b($e,Ce)};L(pe,$e=>{r(a).provider&&$e(xe)})}var fe=P(pe,2);{var ie=$e=>{var Ce=f$(),le=P(_(Ce),2),Ne=_(le);h(le),h(Ce),B(()=>{var Ke,Ve;return ye(Ne,`Video: ${(Ke=r(a).videoCodec||"")!=null?Ke:""} ${r(a).hdr?"(HDR)":""}
137
+ }.text.svelte-1s15d2i {font-size:13px;line-height:16px;color:var(--controls-time);font-weight:500;}`};function Ed(t,e){G(t,qb);let i=m(e,"withEqualizer",3,!1),o=m(e,"isLive",3,!1),n=m(e,"isPlaying",3,!1);var s=Kb();let l;var d=_(s);{var a=p=>{var y=Ub();b(p,y)};V(d,p=>{i()&&p(a)})}var u=P(d,2);{var f=p=>{var y=zb(),w=_(y);Id(w,{isActive:!0}),h(y),b(p,y)},v=p=>{var y=Wb(),w=_(y,!0);h(y),B(()=>$e(w,e.time)),b(p,y)};V(u,p=>{o()?p(f):p(v,!1)})}h(s),B(p=>l=te(s,1,"wrapper svelte-1s15d2i",null,l,p),[()=>({live:o(),playing:n()})]),b(t,s)}var $l=(t,e,i)=>{let o;return()=>(window.clearTimeout(o),t?o=window.setTimeout(()=>e.set(!0),i):e.set(!1),()=>window.clearTimeout(o))};var Gb=A('<div role="timer" data-testid="thumb-timer"><!></div>'),Qb={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 kd(t,e){U(e,!0),G(t,Qb);let[i,o]=Ue(),n=()=>S(f,"$disabled",i),s=m(e,"isHidden",3,!1),l=m(e,"isLive",3,!1),d=m(e,"isPlaying",3,!1),a=At(),u=g(()=>wn(e.duration-e.position)),f=re(!1);var v=Gb();let p;var y=_(v);Ed(y,{get time(){return r(u)},get isLive(){return l()},get isPlaying(){return d()},withEqualizer:!0}),h(v),_s(v,()=>$l(s()&&a.features.usePerformanceFix,f,a.disableInvisibleComponentsTimeout)),B(w=>p=te(v,1,"thumb-timer svelte-c6gowj",null,p,w),[()=>({"out-of-flow":n(),hidden:s()})]),b(t,v),z(),o()}var yl=t=>{if(!navigator.clipboard){P1(t);return}navigator.clipboard.writeText(t).catch(()=>P1(t))};function P1(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 D1=require("@vkontakte/videoplayer-core/es2015");var Hf=require("@vkontakte/videoplayer-core/es2015");var Df="focus-hidden";var wr=t=>{t.stopPropagation(),t.preventDefault()},Ff=t=>{var e,i;(i=(e=t.parentNode)==null?void 0:e.firstElementChild)==null||i.classList.remove(Df)},Yb=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},Zb=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},Xb=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},Jb=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},A1=t=>t.code==="Escape",e$=t=>t.code==="ArrowLeft",Pd=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},M1=t=>{Xb(t)?(wr(t),Zb(t.target)):Jb(t)&&(wr(t),Yb(t.target))},Ds=t=>!Hf.clientChecker.device.isAndroid&&(t==null?void 0:t.detail)===0||Hf.clientChecker.device.isAndroid&&(t==null?void 0:t.pointerType)==="",xl=(t,e,i)=>St(null,null,function*(){yield Ao(),t&&!t.classList.contains("opened")&&!e&&xe(i)&&(yield Ao(),i.set(!1),t.focus())}),L1=(t,e,i)=>St(null,null,function*(){yield Ao(),t&&!e&&xe(i)&&(i.set(!1),t.focus())}),Ad=(t,e,i,o=!1)=>St(null,null,function*(){if(yield Ao(),!!t&&e&&!o){let s=t.children[0];s==null||s.classList.toggle(Df,!i),s==null||s.focus()}}),V1=(t,e)=>St(null,null,function*(){setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)}),Cu=(t,e)=>{M1(t),Ff(t.target),A1(t)&&(wr(t),e())},Tu=(t,e)=>St(null,null,function*(){Pd(t,["ArrowRight"])&&(wr(t),e())}),R1=(t,e,i)=>St(null,null,function*(){if(M1(t),e$(t)){wr(t),e();return}A1(t)&&(wr(t),i())}),wl=(t,e)=>{Pd(t)&&(wr(t),e())},N1=(t,e,i)=>{if(Pd(t))wr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),wr(t);return}o==="ArrowRight"&&!e&&(i(!0),wr(t))}},O1=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},B1=t=>{if(!t)return{top:0,left:0};let e=t.getBoundingClientRect(),i=-58,o=8,n=e.left+o;return{bottom:e.bottom+i,left:n}};var Sa=require("@vkontakte/videoplayer-shared/es2015");var Ur={"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 Uf=require("@vkontakte/videoplayer-shared/es2015");var i$=(t,e)=>{wl(t,()=>e())},o$=A('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),n$={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 zf(t,e){U(e,!0),G(t,n$);let i=m(e,"onClick",3,Uf.noop),o=m(e,"closeContextMenu",3,Uf.noop),n=d=>{d==null||d.stopPropagation(),i()(),o()()};var s=o$();s.__click=n,s.__keydown=[i$,n];var l=_(s,!0);h(s),B(()=>{var d;ze(s,"aria-label",(d=e.ariaLabel)!=null?d:e.label),ze(s,"data-testid",e.id),$e(l,e.label)}),b(t,s),z()}ft(["click","keydown"]);var wa=(t,e)=>t.weight-e.weight;var Sl=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(Sl||{});var r$=(t,e)=>{Cu(t,e)},s$=t=>{t.preventDefault()},a$=A('<ul role="menu" class="svelte-1p5ukkp"></ul>'),l$={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 Wf(t,e){U(e,!0),G(t,l$);let[i,o]=Ue(),n=()=>S(J,"$isLive$",i),s=()=>S(pe,"$isPiPEnabled$",i),l=()=>S(K,"$chromecastState$",i),d=()=>S(be,"$pictureInPictureApiIsActive$",i),a=()=>S(oe,"$isLooped$",i),u=()=>S(j,"$positionExact$",i),f=()=>S(X,"$additionalContextMenuItems$",i),v=m(e,"visible",3,!1),p=m(e,"position",19,()=>({top:0,left:0})),y=m(e,"playerContainerRef",3,void 0),w=m(e,"controlsContainerRef",3,void 0),$=m(e,"menuElementRef",15,void 0),C=Y(0),T=Y(0),I=Ie(),{pictureInPicture$:M}=xo(),k=At(),E=I.ui.contextMenu.visible$,R=I.ui.debugPanelVisible,X=I.ui.additionalContextMenuItems$,D=I.ui.t,H=I.actions.internal.togglePictureInPicture,K=I.state.chromecastState$,J=I.state.isLive$,j=I.state.positionExact$,ce=I.state.isInteractive,oe=I.state.looped$,{isEnabled$:pe,isActive$:be}=M,fe=g(()=>{var Ve;return k.features.copyVideoLink&&((Ve=I.callbacks)==null?void 0:Ve.onCopyVideoLink)}),ke=g(()=>r(fe)&&!n()&&!ce),ne=g(()=>{var Ve;return!!((Ve=I.callbacks)!=null&&Ve.onCopyEmbedCodeClicked)}),Le=g(()=>s()&&l()!==D1.ChromecastState.CONNECTED&&!ce),se=g(()=>!ce),N=g(()=>k.features.videoRotate&&!ce),Be=g(()=>k.showSupport&&!d()),ue=g(()=>k.features.saveTraceInfoToFile),ge=()=>{var Ve;E.set(!1),(Ve=e.returnFocus)==null||Ve.call(e)},ee=(Ve,Ke)=>{if(!$()||!y()||!w())return;let He=$().getBoundingClientRect(),Xe=y().getBoundingClientRect();O(C,Ve-Xe.left),O(T,Ke-Xe.top),r(C)+He.width>Xe.width&&O(C,Xe.width-He.width),r(T)+He.height>Xe.height&&O(T,Xe.height-He.height),O(C,Math.max(r(C),0),!0),O(T,Math.max(r(T),0),!0)};Ge(()=>{St(null,null,function*(){if($()&&y()&&w()){yield Ao();let{top:Ke,left:He,bottom:Xe,right:kt}=p(),Jt=He!=null?He:0,ot=Ke!=null?Ke:0,fi=$().getBoundingClientRect();(0,Sa.isNullable)(He)&&!(0,Sa.isNullable)(kt)&&(Jt=kt-fi.width),(0,Sa.isNullable)(Ke)&&!(0,Sa.isNullable)(Xe)&&(ot=Xe-fi.height),Jt=Math.max(Jt,0),ot=Math.max(ot,0),ee(Jt,ot)}})});let ve=()=>{I.actions.internal.videoRotate()},De=()=>{(0,Sa.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),I.actions.internal.reportProblem(),I.actions.internal.pause()},me=()=>{let Ve=I.actions.internal.getDebugTextData();if(k.features.saveDebugInfoToFile){let Ke=new Blob([...Ve],{type:"plain/text"}),He=window.URL.createObjectURL(Ke);ha(He,"vk_player_debug_info","txt")}else yl(I.actions.internal.getDebugTextData())},at=()=>{let Ve=I.actions.internal.getTraceTextData(),Ke=new Blob([...Ve],{type:"application/json"}),He=window.URL.createObjectURL(Ke);ha(He,"vk_player_trace_info","json")},Z=()=>{R.set(!0)},Me=()=>St(null,null,function*(){var Ve;try{H()}finally{(Ve=e.returnFocus)==null||Ve.call(e)}}),Ee=()=>{I.actions.internal.setLooped(!a())},We=()=>{var Ve,Ke;if(r(ne)){let He=(Ke=(Ve=I.callbacks)==null?void 0:Ve.onCopyEmbedCodeClicked)==null?void 0:Ke.call(Ve);He&&yl(He)}},tt=(Ve=!1)=>{var Ke,He;if((Ke=I.callbacks)!=null&&Ke.onCopyVideoLink){let Xe=(He=I.callbacks)==null?void 0:He.onCopyVideoLink(Ve,u());Xe&&yl(Xe)}},bt=g(()=>k.features.saveDebugInfoToFile?D("menu_save_debug"):D("menu_copy_debug")),Mt=g(()=>r(fe)?{id:"copy-link",weight:Ur["copy-link"],label:D("menu_copy_video_link"),onClick:()=>tt()}:void 0),mt=g(()=>r(ke)?{id:"copy-link-timestamp",weight:Ur["copy-link-timestamp"],label:D("menu_copy_video_link_with_timestamp"),onClick:()=>tt(!0)}:void 0),Qe=g(()=>r(ne)?{id:"copy-embed-code",weight:Ur["copy-embed-code"],label:D("menu_copy_embed_code"),onClick:We}:void 0),Gt=g(()=>r(Le)?{id:"pip",weight:Ur.pip,label:d()?D("menu_pip_close"):D("menu_pip"),onClick:Me}:void 0),ii=g(()=>r(se)?{id:"video-loop",weight:Ur["video-loop"],label:a()?D("menu_video_loop_off"):D("menu_video_loop_on"),ariaLabel:D("aria_label_menu_loop"),onClick:Ee}:void 0),Qt=g(()=>r(N)?{id:"rotate",weight:Ur.rotate,label:D("menu_video_rotate"),ariaLabel:D("aria_label_menu_rotate"),onClick:ve}:void 0),Xt=g(()=>r(Be)?{id:"report",weight:Ur.report,label:D("menu_report"),ariaLabel:`${D("menu_report")}. ${D("aria_label_new_tab_alert")}`,onClick:De}:void 0),le=g(()=>({id:"save-debug",weight:Ur["save-debug"],label:r(bt),onClick:me})),Ot=g(()=>r(ue)?{id:"save-trace",weight:Ur["save-trace"],label:D("menu_save_debug"),onClick:at}:void 0),we=g(()=>({id:"debug-info",weight:Ur["debug-info"],label:D("menu_debug_overlay"),ariaLabel:D("aria_label_menu_debug_overlay"),onClick:Z})),_e=g(()=>[r(Mt),r(mt),r(Qe),r(Gt),r(ii),r(Qt),r(Xt),r(le),r(Ot),r(we),...f()].filter(Ve=>!!Ve).sort(wa));var de=qe(),Ne=he(de);{var Fe=Ve=>{var Ke=a$();Ke.__contextmenu=[s$],Ke.__keydown=[r$,ge],Ei(Ke,21,()=>r(_e),He=>He.id,(He,Xe)=>{zf(He,{get id(){return r(Xe).id},get label(){return r(Xe).label},get ariaLabel(){return r(Xe).ariaLabel},get onClick(){return r(Xe).onClick},closeContextMenu:ge})}),h(Ke),nt(Ke,He=>$(He),()=>$()),B(()=>{var He,Xe;return rt(Ke,`top: ${(He=r(T))!=null?He:""}px; left: ${(Xe=r(C))!=null?Xe:""}px;`)}),b(Ve,Ke)};V(Ne,Ve=>{v()&&Ve(Fe)})}b(t,de),z(),o()}ft(["contextmenu","keydown"]);var Iu=class{constructor(e){this.value=e,this.next=null}};var Cl=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new Iu(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 d$=A('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),c$={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 Md(t,e){U(e,!0),G(t,c$);let i=m(e,"values",19,()=>[]),o=Y(void 0),n=Y(null),s=16,l=120,d=60,a=l/d;zt(()=>{r(o).width=l,r(o).height=s,O(n,r(o).getContext("2d"),!0)});function u(p,y,w,$,C){C===0&&(C=1),p.fillStyle="#fff",p.fillRect(y,w,$,C)}Ge(()=>{let p="";if(r(n)){let y=i()[0];for(let $=1;$<i().length;$++)i()[$]>y&&(y=i()[$]);r(n).clearRect(0,0,l,s);let w=d-1;for(let $=i().length-1;$>=0;$--){let C=w*a,T=y>0?s*(i()[$]/y):0;u(r(n),C,0,a,T),p=T+" "+p,w--}}});var f=d$(),v=_(f);nt(v,p=>O(o,p),()=>r(o)),h(f),b(t,f),z()}var Kf=require("@vkontakte/videoplayer-shared/es2015");var u$=(t,e)=>{t.stopPropagation(),Kf.safeStorage.remove(hd),e.set(!1)},p$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),f$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),m$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),v$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),g$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),h$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),_$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),b$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),$$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Position</div> <span> </span></div>'),y$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),x$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),w$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),S$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),C$=A('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),T$=A('<div role="region"><button class="close svelte-4deykz" title="\u0437\u0430\u043A\u0440\u044B\u0442\u044C">[x]</button> <div class="content svelte-4deykz"><div class="svelte-4deykz"><div class="svelte-4deykz">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="svelte-4deykz"><div class="svelte-4deykz">Dropped</div> <span> </span></div> <!> <!> <div class="svelte-4deykz"><div class="svelte-4deykz">FPS</div> <!> <span> </span></div></div></div>'),I$={hash:"svelte-4deykz",code:".container.svelte-4deykz {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-4deykz {top:16px;left:16px;}button.svelte-4deykz {position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff;}.content.svelte-4deykz {padding:5px;}.content.svelte-4deykz > div:where(.svelte-4deykz) > div:where(.svelte-4deykz) {display:inline-block;text-align:right;width:60px;padding:0 5px;}"};function Ld(t,e){U(e,!0),G(t,I$);let[i,o]=Ue(),n=()=>S(d,"$isMobile",i),s=Ie(),l=s.ui.debugPanelVisible,d=s.ui.isMobile,a=Y(ri(s.actions.internal.getDebugPanelData())),u=s.actions.internal.getVideoElement(),f=Y(0),v=Y(0),p=Y(0),y=new Cl(60),w=new Cl(60),$=new Cl(60),C=Y(ri([])),T=Y(ri([])),I=Y(ri([])),M=q("aria_label_debug_panel");zt(()=>{Kf.safeStorage.set(hd,"true"),s.actions.internal.startLogging(),u&&(O(v,u.getVideoPlaybackQuality().droppedVideoFrames,!0),O(f,u.getVideoPlaybackQuality().totalVideoFrames,!0));let we=window.setInterval(()=>{O(a,s.actions.internal.getDebugPanelData(),!0)},500),_e;return u&&(_e=window.setInterval(()=>{if(u){O(v,u.getVideoPlaybackQuality().droppedVideoFrames,!0);let de=u.getVideoPlaybackQuality().totalVideoFrames;O(p,de-r(f)),O(f,de,!0),y.push(r(p)),r(a).speed&&w.push(r(a).speed),r(a).bitrate&&$.push(r(a).bitrate),O(C,y.getValuesFromBottom(),!0),O(T,w.getValuesFromBottom(),!0),O(I,$.getValuesFromBottom(),!0)}},1e3)),()=>{s.actions.internal.stopLogging(),clearInterval(we),_e&&clearInterval(_e)}});var k=T$();let E;var R=_(k);R.__click=[u$,l];var X=P(R,2),D=_(X),H=P(_(D),2),K=_(H,!0);h(H),h(D);var J=P(D,2);{var j=we=>{var _e=p$(),de=P(_(_e),2),Ne=_(de,!0);h(de),h(_e),B(()=>$e(Ne,r(a).id)),b(we,_e)};V(J,we=>{r(a).id&&we(j)})}var ce=P(J,2);{var oe=we=>{var _e=f$(),de=P(_(_e),2),Ne=_(de,!0);h(de),h(_e),B(()=>$e(Ne,r(a).vsid)),b(we,_e)};V(ce,we=>{r(a).vsid&&we(oe)})}var pe=P(ce,2);{var be=we=>{var _e=m$(),de=P(_(_e),2),Ne=_(de,!0);h(de),h(_e),B(()=>$e(Ne,r(a).provider)),b(we,_e)};V(pe,we=>{r(a).provider&&we(be)})}var fe=P(pe,2);{var ke=we=>{var _e=v$(),de=P(_(_e),2),Ne=_(de);h(de),h(_e),B(()=>{var Fe,Ve;return $e(Ne,`Video: ${(Fe=r(a).videoCodec||"")!=null?Fe:""} ${r(a).hdr?"(HDR)":""}
139
139
  &
140
- Audio: ${(Ve=r(a).audioCodec||"")!=null?Ve:""} ${r(a).audioLanguage?`(${r(a).audioLanguage})`:""}`)}),b($e,Ce)};L(fe,$e=>{(r(a).videoCodec||r(a).audioCodec)&&$e(ie)})}var Pe=P(fe,2);{var ee=$e=>{var Ce=m$(),le=P(_(Ce),2),Ne=_(le,!0);h(le),h(Ce),B(()=>ye(Ne,r(a).viewport)),b($e,Ce)};L(Pe,$e=>{r(a).viewport&&$e(ee)})}var N=P(Pe,2);{var Ue=$e=>{var Ce=v$(),le=P(_(Ce),2),Ne=_(le,!0);h(le),h(Ce),B(()=>ye(Ne,r(a).videoSize)),b($e,Ce)};L(N,$e=>{r(a).videoSize&&$e(Ue)})}var _e=P(N,2);{var he=$e=>{var Ce=g$(),le=P(_(Ce),2),Ne=_(le,!0);h(le),h(Ce),B(()=>ye(Ne,r(a).cdn)),b($e,Ce)};L(_e,$e=>{r(a).cdn&&$e(he)})}var ue=P(_e,2);{var me=$e=>{var Ce=h$(),le=P(_(Ce),2),Ne=_(le);h(le),h(Ce),B(()=>{var Ke;return ye(Ne,`${(Ke=r(a).volume)!=null?Ke:""} %`)}),b($e,Ce)};L(ue,$e=>{r(a).volume&&$e(me)})}var ve=P(ue,2);{var se=$e=>{var Ce=_$(),le=P(_(Ce),2),Ne=_(le);h(le),h(Ce),B(Ke=>ye(Ne,`${Ke!=null?Ke:""} s`),[()=>r(a).position.toFixed(2)]),b($e,Ce)};L(ve,$e=>{r(a).position&&$e(se)})}var Ge=P(ve,2);{var et=$e=>{var Ce=b$(),le=P(_(Ce),2),Ne=_(le);h(le),h(Ce),B(Ke=>ye(Ne,`${Ke!=null?Ke:""} s`),[()=>r(a).buffer.toFixed(2)]),b($e,Ce)};L(Ge,$e=>{r(a).buffer&&$e(et)})}var J=P(Ge,2);{var Le=$e=>{var Ce=$$(),le=P(_(Ce),2),Ne=_(le);h(le),h(Ce),B(Ke=>ye(Ne,`${Ke!=null?Ke:""} s`),[()=>r(a).liveLatency.toFixed(2)]),b($e,Ce)};L(J,$e=>{r(a).liveLatency&&$e(Le)})}var Ie=P(J,2);{var Ze=$e=>{var Ce=y$(),le=P(_(Ce),2),Ne=_(le,!0);h(le),h(Ce),B(Ke=>ye(Ne,Ke),[()=>[{value:r(a).currentVideoSegmentLength,title:"Video:"},{value:r(a).currentAudioSegmentLength,title:"Audio:"}].filter(({value:Ke})=>Ke).map(({value:Ke,title:Ve})=>`${Ve} ${((Ke!=null?Ke:0)/1e3).toFixed(2)} s`).join(" & ")]),b($e,Ce)};L(Ie,$e=>{(r(a).currentVideoSegmentLength||r(a).currentAudioSegmentLength)&&$e(Ze)})}var at=P(Ie,2),bt=P(_(at),2),gt=_(bt);h(bt),h(at);var Tt=P(at,2);{var Qe=$e=>{var Ce=x$(),le=P(_(Ce),2);Nd(le,{get values(){return r(T)}});var Ne=P(le,2),Ke=_(Ne);h(Ne),h(Ce),B(Ve=>ye(Ke,`${Ve!=null?Ve:""} Kbps`),[()=>r(a).speed.toFixed(2)]),b($e,Ce)};L(Tt,$e=>{r(a).speed&&$e(Qe)})}var Kt=P(Tt,2);{var ti=$e=>{var Ce=w$(),le=P(_(Ce),2);Nd(le,{get values(){return r(E)}});var Ne=P(le,2),Ke=_(Ne);h(Ne),h(Ce),B(Ve=>ye(Ke,`${Ve!=null?Ve:""} Kbps`),[()=>r(a).bitrate.toFixed(2)]),b($e,Ce)};L(Kt,$e=>{r(a).bitrate&&$e(ti)})}var Yt=P(Kt,2),jt=P(_(Yt),2);Nd(jt,{get values(){return r(S)}});var oe=P(jt,2),qt=_(oe,!0);h(oe),h(Yt),h(Z),h(k),B($e=>{var Ce,le;I=te(k,1,"container svelte-4deykz",null,I,$e),Fe(k,"aria-label",V),ye(W,r(a).version),ye(gt,`${(Ce=r(v))!=null?Ce:""} / ${(le=r(f))!=null?le:""} frames`),ye(qt,r(p))},[()=>({"container-mobile":n()})]),b(t,k),U(),o()}ct(["click"]);var H1=require("@vkontakte/videoplayer-shared/es2015"),T$=(t,e)=>{t.stopPropagation(),e()()},E$=A('<div class="close svelte-1ome55p"></div>'),I$={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 Ta(t,e){F(e,!0),q(t,I$);let i=m(e,"onClick",3,H1.noop);var o=E$();o.__click=[T$,i],b(t,o),U()}ct(["click"]);var F1=require("@vkontakte/videoplayer-shared/es2015"),k$=A('<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>'),P$={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 Bd(t,e){F(e,!0),q(t,P$);let i=m(e,"isRunning",3,!0),o=m(e,"onTimerEnded",3,F1.noop),n=5e3,s=Y(void 0),l,d,a=0,u;We(()=>{i()&&wt(()=>{d=Date.now(),a=requestAnimationFrame(v)})});let f=()=>{a&&(cancelAnimationFrame(a),a=0)},v=()=>{f(),i()&&(u=(Date.now()-d)/n,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()())};Dt(()=>{l=r(s).getContext("2d"),l&&(l.lineWidth=6,l.lineCap="round",l.strokeStyle="#fff")}),cn(()=>{f()});var p=k$(),y=_(p);rt(y,w=>O(s,w),()=>r(s)),Te(2),h(p),b(t,p),U()}var A$=(t,e,i)=>{e(!1),i()},M$=A('<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),L$={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 Kf(t,e){F(e,!0),q(t,L$);let[i,o]=He(),n=()=>C(d,"$autoplayNextEnabled$",i),s=()=>C(a,"$timerNextVideoRunning$",i),l=ke(),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,y=l.actions.internal.nextVideoAnnouncementCancel,w=()=>{n()&&(u(!1),p())},$=()=>{e.clickCloseIcon(),y()};Dt(()=>{e.isHide||f(),e.isHide&&n()&&(u(!1),p())});var S=ze(),T=ge(S);{var E=V=>{var k=M$(),I=P(ge(k),2),R=_(I),Z=_(R),D=_(Z,!0);h(Z);var H=P(Z,2);Ta(H,{onClick:$}),h(R);var W=P(R,2);W.__click=[A$,u,v];var X=_(W),j=_(X),ce=_(j);let re;var pe=P(ce,2);{var xe=ee=>{let N=g(()=>s()&&n());Bd(ee,{get isRunning(){return r(N)},onTimerEnded:w})};L(pe,ee=>{n()&&ee(xe)})}h(j),h(X);var fe=P(X,2),ie=_(fe),Pe=_(ie,!0);h(ie),h(fe),h(W),h(I),B((ee,N)=>{ye(D,ee),st(j,`background-image: url('${e.thumb}')`),re=te(ce,1,"thumb-overlay svelte-jfbaax",null,re,N),ye(Pe,e.title)},[()=>K("end_screen_next_video"),()=>({withOpacity:n()})]),b(V,k)};L(T,V=>{e.isHide||V(E)})}b(t,S),U(),o()}ct(["click"]);var zs=require("@vkontakte/videoplayer-core/es2015"),U1=require("@vkontakte/videoplayer-shared/es2015"),Cn=require("@vkontakte/videoplayer-statistics/es2015");var qf=(t,e)=>Math.min(+(t+e).toFixed(2),1),Gf=(t,e)=>Math.max(+(t-e).toFixed(2),0),Tu=(t,e,i)=>{let o=qf(e,i);e<1?t.actions.internal.setVolume(o):Se(t.state.muted$)&&t.actions.external.setMuted(!1)},Eu=(t,e,i)=>{let o=Gf(e,i);e>0&&t.actions.internal.setVolume(o)};var Us=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:n})=>t?i?!0:(o==null||o(),!1):e?!0:(n==null||n(),!1);var R$=(t,e)=>{e(t)},N$=A('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),O$={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function Qf(t,e){var Yt,jt;F(e,!0),q(t,O$);let[i,o]=He(),n=()=>C(D,"$playbackState$",i),s=()=>C(H,"$adPlaybackState",i),l=()=>C(ce,"$disabledControls$",i),d=()=>C(W,"$positionExact$",i),a=()=>C(X,"$duration$",i),u=()=>C(me,"$isAudioAvailable$",i),f=()=>C(j,"$volume$",i),v=()=>C(fe,"$availablePlaybackRates$",i),p=()=>C(xe,"$currentPlaybackRate$",i),y=()=>C(se,"$isInteractiveTime$",i),w=()=>C(Ge,"$showInteractiveTimeIndicatorTooltip$",i),$=()=>C(Ue,"$isEnded$",i),S=()=>C(re,"$muted$",i),T=()=>C(pe,"$currentSubtitle$",i),E=()=>C(_e,"$overlayContainer$",i),V=m(e,"nextButtonActive",3,!1),k=m(e,"prevButtonActive",3,!1),I=ke(),R=At(),Z=I.getLogger().createComponentLog("KeyboardControls component"),D=I.state.playbackState$,H=I.ads.playbackState,W=I.state.positionExact$,X=I.state.duration$,j=I.state.volume$,ce=I.ui.controls.disabledControls$,re=I.state.muted$,pe=I.state.currentSubtitle$,xe=I.state.currentPlaybackRate$,fe=I.state.availablePlaybackRates$,ie=I.ui.contextMenu.openedByHotKey$,Pe=I.ui.contextMenu.lastActiveElem$,ee=I.ui.contextMenu.visible$,N=I.ui.contextMenu.position$,Ue=I.state.isEnded$,_e=I.ui.overlayContainer$,he=(Yt=I.callbacks)==null?void 0:Yt.onAudioDoesNotExistHint,ue=(jt=I.callbacks)==null?void 0:jt.onAudioDisabledHint,me=I.state.isAudioAvailable$,ve=I.state.isAudioDisabled,se=I.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:Ge}=yo(),et=0,J=!0,Le=Y(void 0),Ie=oe=>(oe!==J&&(J=oe,et=0),et+=1,(R.controls.seekStepKeyboard+R.controls.seekStepKeyboard*et)/1e3),Ze=(oe,qt=!1)=>{var yi,mi;let $e=oe.target,Ce=(yi=$e==null?void 0:$e.getAttribute("role"))==null?void 0:yi.includes("menuitem"),le=$e.classList.contains("btn"),Ne=oe.code;if(le&&Ne==="Space")return!1;let Ke=zh.has(Ne);if(Ce&&Ke)return!1;let Ve=!Uh.has(Ne);if(oe.ctrlKey&&Ve||oe.altKey&&Ve||oe.metaKey)return!1;let Xe=Ce&&Ne==="Escape";Wh.has(Ne)||Xe||e.hideContextMenu();let Be=n()===zs.PlaybackState.PLAYING||n()===zs.PlaybackState.PAUSED,tt=e.isAds&&(s()==="paused"||s()==="playing"),Vt=!tt&&!l().has("TIMELINE");if(!(Be||tt))return!1;Z({message:`key down, code: ${Ne}, isExternal = ${qt}`});let Qt=!1,it=()=>{Qt=!0,qt||oe.preventDefault()};switch(Ne){case"KeyJ":case"ArrowLeft":{if(!Vt)break;if(oe.ctrlKey||oe.altKey){let nt=I.actions.internal.getPrevEpisode();I.actions.internal.seekToPrevEpisode(nt),nt&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:nt.text}),it()}else{let nt=oe.shiftKey?Ie(!1):R.controls.seekStepKeyboard/1e3,ni=Math.max(d()-nt,0);d()>0&&(I.actions.internal.seekTime(ni,Cn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:nt.toString()}),it())}break}case"KeyL":case"ArrowRight":{if(!Vt)break;if(oe.ctrlKey||oe.altKey){let nt=I.actions.internal.getNextEpisode();I.actions.internal.seekToNextEpisode(nt),nt&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:nt.text}),it()}else{let nt=oe.shiftKey?Ie(!0):R.controls.seekStepKeyboard/1e3,ni=Math.min(d()+nt,a());Math.round(d())<Math.round(a())&&(I.actions.internal.seekTime(ni,Cn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:nt.toString()}),it())}break}case"ArrowUp":{if(Us({isAudioDisabled:ve,audioDisabledHintCallback:ue,isAudioAvailable:u(),audioIsNotExistHintCallback:he,isAds:e.isAds})){let nt=f(),ni=R.controls.volumeStepKeyboard,Zt=nt<=1;if(Tu(I,nt,ni),Zt){let vi=Math.round(qf(nt,ni)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:vi}})}}it();break}case"ArrowDown":{if(Us({isAudioDisabled:ve,audioDisabledHintCallback:ue,isAudioAvailable:u(),audioIsNotExistHintCallback:he,isAds:e.isAds})){let nt=f(),ni=R.controls.volumeStepKeyboard,Zt=nt>=0;if(Eu(I,nt,ni),Zt){let vi=Math.round(Gf(nt,ni)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:vi}})}}it();break}case"Comma":{if(oe.shiftKey){I.actions.internal.decrementPlaybackRate();let nt=v().find(ni=>ni.value===p());e.showHotKeyHelpers({type:"RATE_DOWN",text:nt==null?void 0:nt.displayValue}),it()}else{if(tt||n()!==zs.PlaybackState.PAUSED)break;let nt=Math.max(d()-R.controls.seekStepFrame/1e3,0);d()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),I.actions.internal.clearDelayedBufferingCheckTimeout(),I.actions.internal.seekTime(nt,Cn.SeekAction.DOUBLE_TAP),it())}break}case"Period":{if(oe.shiftKey){I.actions.internal.incrementPlaybackRate();let nt=v().find(ni=>ni.value===p());e.showHotKeyHelpers({type:"RATE_UP",text:nt==null?void 0:nt.displayValue}),it()}else{if(tt||n()!==zs.PlaybackState.PAUSED)break;let nt=Math.min(d()+R.controls.seekStepFrame/1e3,a());d()<a()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),I.actions.internal.clearDelayedBufferingCheckTimeout(),I.actions.internal.seekTime(nt,Cn.SeekAction.DOUBLE_TAP),it())}break}case"KeyK":case"Space":if(!l().has("PLAY_BUTTON"))if(y()&&w()&&Ge.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{I.actions.internal.togglePlay();let nt="PLAY";n()===zs.PlaybackState.PAUSED?nt="PAUSE":$()&&(nt="REPLAY"),e.showHotKeyHelpers({type:nt})}it();break;case"KeyM":{Us({isAudioDisabled:ve,audioDisabledHintCallback:ue,isAudioAvailable:u(),audioIsNotExistHintCallback:he,isAds:e.isAds})&&(e.showHotKeyHelpers({type:S()?"VOLUME":"MUTE"}),I.actions.internal.toggleMuted()),it();break}case"KeyF":e.toggleFullscreen(),it();break;case"KeyC":I.actions.internal.toggleSubtitle(),T().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(mi=T())==null?void 0:mi.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),it();break;case"KeyI":I.actions.internal.togglePictureInPicture(),it();break;case"Digit1":case"Numpad1":if(oe.shiftKey){let nt=B1(E());N.set(nt),Pe.set($e),ie.set(!0),ee.set(!0),it();break}e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.1,Cn.SeekAction.DOUBLE_TAP),it();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.2,Cn.SeekAction.DOUBLE_TAP),it();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.3,Cn.SeekAction.DOUBLE_TAP),it();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.4,Cn.SeekAction.DOUBLE_TAP),it();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.5,Cn.SeekAction.DOUBLE_TAP),it();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.6,Cn.SeekAction.DOUBLE_TAP),it();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.7,Cn.SeekAction.DOUBLE_TAP),it();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.8,Cn.SeekAction.DOUBLE_TAP),it();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(.9,Cn.SeekAction.DOUBLE_TAP),it();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),I.actions.internal.seekToPercent(0,Cn.SeekAction.DOUBLE_TAP),it();break;case"Slash":{oe.shiftKey&&R.features.hotKeyMapModal&&(e.showKeyMap(),it());break}case"KeyN":oe.shiftKey&&V()&&(I.actions.internal.nextVideoClick(),it());break;case"KeyP":oe.shiftKey&&k()&&(I.actions.internal.prevVideoClick(),it());break;case"ShiftLeft":case"ShiftRight":it();break;case"Tab":case"Escape":case"Enter":break;default:(0,U1.checkNever)(Ne);break}return Qt},at=oe=>{let qt=oe.code;if(oe.ctrlKey||oe.altKey||oe.metaKey)return;let $e=n()===zs.PlaybackState.PLAYING||n()===zs.PlaybackState.PAUSED,Ce=e.isAds&&(s()==="paused"||s()==="playing");if($e||Ce)switch(qt){case"ShiftLeft":case"ShiftRight":et=0;break}},bt=K("aria_label_video_player"),gt=()=>{var oe;return(oe=r(Le))==null?void 0:oe.focus()},Tt=oe=>oe.type==="keydown"?Ze(oe,!0):(oe.type==="keyup"&&at(oe),!1);var Qe=N$();Qe.__keyup=at,Qe.__keydown=[R$,Ze];var Kt=_(Qe);we(Kt,()=>{var oe;return(oe=e.children)!=null?oe:de}),h(Qe),rt(Qe,oe=>O(Le,oe),()=>r(Le)),B(()=>Fe(Qe,"aria-label",bt)),b(t,Qe);var ti=U({focus:gt,handleExternalKeyboardEvent:Tt});return o(),ti}ct(["keyup","keydown"]);var B$=A('<div class="container svelte-1dbnjb1"><div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div></div>'),D$={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);}
140
+ Audio: ${(Ve=r(a).audioCodec||"")!=null?Ve:""} ${r(a).audioLanguage?`(${r(a).audioLanguage})`:""}`)}),b(we,_e)};V(fe,we=>{(r(a).videoCodec||r(a).audioCodec)&&we(ke)})}var ne=P(fe,2);{var Le=we=>{var _e=g$(),de=P(_(_e),2),Ne=_(de,!0);h(de),h(_e),B(()=>$e(Ne,r(a).viewport)),b(we,_e)};V(ne,we=>{r(a).viewport&&we(Le)})}var se=P(ne,2);{var N=we=>{var _e=h$(),de=P(_(_e),2),Ne=_(de,!0);h(de),h(_e),B(()=>$e(Ne,r(a).videoSize)),b(we,_e)};V(se,we=>{r(a).videoSize&&we(N)})}var Be=P(se,2);{var ue=we=>{var _e=_$(),de=P(_(_e),2),Ne=_(de,!0);h(de),h(_e),B(()=>$e(Ne,r(a).cdn)),b(we,_e)};V(Be,we=>{r(a).cdn&&we(ue)})}var ge=P(Be,2);{var ee=we=>{var _e=b$(),de=P(_(_e),2),Ne=_(de);h(de),h(_e),B(()=>{var Fe;return $e(Ne,`${(Fe=r(a).volume)!=null?Fe:""} %`)}),b(we,_e)};V(ge,we=>{r(a).volume&&we(ee)})}var ve=P(ge,2);{var De=we=>{var _e=$$(),de=P(_(_e),2),Ne=_(de);h(de),h(_e),B(Fe=>$e(Ne,`${Fe!=null?Fe:""} s`),[()=>r(a).position.toFixed(2)]),b(we,_e)};V(ve,we=>{r(a).position&&we(De)})}var me=P(ve,2);{var at=we=>{var _e=y$(),de=P(_(_e),2),Ne=_(de);h(de),h(_e),B(Fe=>$e(Ne,`${Fe!=null?Fe:""} s`),[()=>r(a).buffer.toFixed(2)]),b(we,_e)};V(me,we=>{r(a).buffer&&we(at)})}var Z=P(me,2);{var Me=we=>{var _e=x$(),de=P(_(_e),2),Ne=_(de);h(de),h(_e),B(Fe=>$e(Ne,`${Fe!=null?Fe:""} s`),[()=>r(a).liveLatency.toFixed(2)]),b(we,_e)};V(Z,we=>{r(a).liveLatency&&we(Me)})}var Ee=P(Z,2);{var We=we=>{var _e=w$(),de=P(_(_e),2),Ne=_(de,!0);h(de),h(_e),B(Fe=>$e(Ne,Fe),[()=>[{value:r(a).currentVideoSegmentLength,title:"Video:"},{value:r(a).currentAudioSegmentLength,title:"Audio:"}].filter(({value:Fe})=>Fe).map(({value:Fe,title:Ve})=>`${Ve} ${((Fe!=null?Fe:0)/1e3).toFixed(2)} s`).join(" & ")]),b(we,_e)};V(Ee,we=>{(r(a).currentVideoSegmentLength||r(a).currentAudioSegmentLength)&&we(We)})}var tt=P(Ee,2),bt=P(_(tt),2),Mt=_(bt);h(bt),h(tt);var mt=P(tt,2);{var Qe=we=>{var _e=S$(),de=P(_(_e),2);Md(de,{get values(){return r(T)}});var Ne=P(de,2),Fe=_(Ne);h(Ne),h(_e),B(Ve=>$e(Fe,`${Ve!=null?Ve:""} Kbps`),[()=>r(a).speed.toFixed(2)]),b(we,_e)};V(mt,we=>{r(a).speed&&we(Qe)})}var Gt=P(mt,2);{var ii=we=>{var _e=C$(),de=P(_(_e),2);Md(de,{get values(){return r(I)}});var Ne=P(de,2),Fe=_(Ne);h(Ne),h(_e),B(Ve=>$e(Fe,`${Ve!=null?Ve:""} Kbps`),[()=>r(a).bitrate.toFixed(2)]),b(we,_e)};V(Gt,we=>{r(a).bitrate&&we(ii)})}var Qt=P(Gt,2),Xt=P(_(Qt),2);Md(Xt,{get values(){return r(C)}});var le=P(Xt,2),Ot=_(le,!0);h(le),h(Qt),h(X),h(k),B(we=>{var _e,de;E=te(k,1,"container svelte-4deykz",null,E,we),ze(k,"aria-label",M),$e(K,r(a).version),$e(Mt,`${(_e=r(v))!=null?_e:""} / ${(de=r(f))!=null?de:""} frames`),$e(Ot,r(p))},[()=>({"container-mobile":n()})]),b(t,k),z(),o()}ft(["click"]);var H1=require("@vkontakte/videoplayer-shared/es2015"),E$=(t,e)=>{t.stopPropagation(),e()()},k$=A('<div class="close svelte-1ome55p"></div>'),P$={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 Ca(t,e){U(e,!0),G(t,P$);let i=m(e,"onClick",3,H1.noop);var o=k$();o.__click=[E$,i],b(t,o),z()}ft(["click"]);var F1=require("@vkontakte/videoplayer-shared/es2015"),A$=A('<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>'),M$={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 Vd(t,e){U(e,!0),G(t,M$);let i=m(e,"isRunning",3,!0),o=m(e,"onTimerEnded",3,F1.noop),n=5e3,s=Y(void 0),l,d,a=0,u;Ge(()=>{i()&&Ct(()=>{d=Date.now(),a=requestAnimationFrame(v)})});let f=()=>{a&&(cancelAnimationFrame(a),a=0)},v=()=>{f(),i()&&(u=(Date.now()-d)/n,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()())};zt(()=>{l=r(s).getContext("2d"),l&&(l.lineWidth=6,l.lineCap="round",l.strokeStyle="#fff")}),nn(()=>{f()});var p=A$(),y=_(p);nt(y,w=>O(s,w),()=>r(s)),Ce(2),h(p),b(t,p),z()}var L$=(t,e,i)=>{e(!1),i()},V$=A('<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),R$={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 qf(t,e){U(e,!0),G(t,R$);let[i,o]=Ue(),n=()=>S(d,"$autoplayNextEnabled$",i),s=()=>S(a,"$timerNextVideoRunning$",i),l=Ie(),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,y=l.actions.internal.nextVideoAnnouncementCancel,w=()=>{n()&&(u(!1),p())},$=()=>{e.clickCloseIcon(),y()};zt(()=>{e.isHide||f(),e.isHide&&n()&&(u(!1),p())});var C=qe(),T=he(C);{var I=M=>{var k=V$(),E=P(he(k),2),R=_(E),X=_(R),D=_(X,!0);h(X);var H=P(X,2);Ca(H,{onClick:$}),h(R);var K=P(R,2);K.__click=[L$,u,v];var J=_(K),j=_(J),ce=_(j);let oe;var pe=P(ce,2);{var be=Le=>{let se=g(()=>s()&&n());Vd(Le,{get isRunning(){return r(se)},onTimerEnded:w})};V(pe,Le=>{n()&&Le(be)})}h(j),h(J);var fe=P(J,2),ke=_(fe),ne=_(ke,!0);h(ke),h(fe),h(K),h(E),B((Le,se)=>{$e(D,Le),rt(j,`background-image: url('${e.thumb}')`),oe=te(ce,1,"thumb-overlay svelte-jfbaax",null,oe,se),$e(ne,e.title)},[()=>q("end_screen_next_video"),()=>({withOpacity:n()})]),b(M,k)};V(T,M=>{e.isHide||M(I)})}b(t,C),z(),o()}ft(["click"]);var Fs=require("@vkontakte/videoplayer-core/es2015"),U1=require("@vkontakte/videoplayer-shared/es2015"),Sn=require("@vkontakte/videoplayer-statistics/es2015");var Gf=(t,e)=>Math.min(+(t+e).toFixed(2),1),Qf=(t,e)=>Math.max(+(t-e).toFixed(2),0),Eu=(t,e,i)=>{let o=Gf(e,i);e<1?t.actions.internal.setVolume(o):xe(t.state.muted$)&&t.actions.internal.setMuted(!1)},ku=(t,e,i)=>{let o=Qf(e,i);e>0&&t.actions.internal.setVolume(o)};var Hs=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:n})=>t?i?!0:(o==null||o(),!1):e?!0:(n==null||n(),!1);var O$=(t,e)=>{e(t)},B$=A('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),D$={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function jf(t,e){var Qt,Xt;U(e,!0),G(t,D$);let[i,o]=Ue(),n=()=>S(D,"$playbackState$",i),s=()=>S(H,"$adPlaybackState",i),l=()=>S(ce,"$disabledControls$",i),d=()=>S(K,"$positionExact$",i),a=()=>S(J,"$duration$",i),u=()=>S(ee,"$isAudioAvailable$",i),f=()=>S(j,"$volume$",i),v=()=>S(fe,"$availablePlaybackRates$",i),p=()=>S(be,"$currentPlaybackRate$",i),y=()=>S(De,"$isInteractiveTime$",i),w=()=>S(me,"$showInteractiveTimeIndicatorTooltip$",i),$=()=>S(N,"$isEnded$",i),C=()=>S(oe,"$muted$",i),T=()=>S(pe,"$currentSubtitle$",i),I=()=>S(Be,"$overlayContainer$",i),M=m(e,"nextButtonActive",3,!1),k=m(e,"prevButtonActive",3,!1),E=Ie(),R=At(),X=E.getLogger().createComponentLog("KeyboardControls component"),D=E.state.playbackState$,H=E.ads.playbackState,K=E.state.positionExact$,J=E.state.duration$,j=E.state.volume$,ce=E.ui.controls.disabledControls$,oe=E.state.muted$,pe=E.state.currentSubtitle$,be=E.state.currentPlaybackRate$,fe=E.state.availablePlaybackRates$,ke=E.ui.contextMenu.openedByHotKey$,ne=E.ui.contextMenu.lastActiveElem$,Le=E.ui.contextMenu.visible$,se=E.ui.contextMenu.position$,N=E.state.isEnded$,Be=E.ui.overlayContainer$,ue=(Qt=E.callbacks)==null?void 0:Qt.onAudioDoesNotExistHint,ge=(Xt=E.callbacks)==null?void 0:Xt.onAudioDisabledHint,ee=E.state.isAudioAvailable$,ve=E.state.isAudioDisabled,De=E.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:me}=xo(),at=0,Z=!0,Me=Y(void 0),Ee=le=>(le!==Z&&(Z=le,at=0),at+=1,(R.controls.seekStepKeyboard+R.controls.seekStepKeyboard*at)/1e3),We=(le,Ot=!1)=>{var fi,mi;let we=le.target,_e=(fi=we==null?void 0:we.getAttribute("role"))==null?void 0:fi.includes("menuitem"),de=we.classList.contains("btn"),Ne=le.code;if(de&&Ne==="Space")return!1;let Fe=Wh.has(Ne);if(_e&&Fe)return!1;let Ve=!zh.has(Ne);if(le.ctrlKey&&Ve||le.altKey&&Ve||le.metaKey)return!1;let Ke=_e&&Ne==="Escape";Kh.has(Ne)||Ke||e.hideContextMenu();let He=n()===Fs.PlaybackState.PLAYING||n()===Fs.PlaybackState.PAUSED,Xe=e.isAds&&(s()==="paused"||s()==="playing"),kt=!Xe&&!l().has("TIMELINE");if(!(He||Xe))return!1;X({message:`key down, code: ${Ne}, isExternal = ${Ot}`});let Jt=!1,ot=()=>{Jt=!0,Ot||le.preventDefault()};switch(Ne){case"KeyJ":case"ArrowLeft":{if(!kt)break;if(le.ctrlKey||le.altKey){let dt=E.actions.internal.getPrevEpisode();E.actions.internal.seekToPrevEpisode(dt),dt&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:dt.text}),ot()}else{let dt=le.shiftKey?Ee(!1):R.controls.seekStepKeyboard/1e3,jt=Math.max(d()-dt,0);d()>0&&(E.actions.internal.seekTime(jt,Sn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:dt.toString()}),ot())}break}case"KeyL":case"ArrowRight":{if(!kt)break;if(le.ctrlKey||le.altKey){let dt=E.actions.internal.getNextEpisode();E.actions.internal.seekToNextEpisode(dt),dt&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:dt.text}),ot()}else{let dt=le.shiftKey?Ee(!0):R.controls.seekStepKeyboard/1e3,jt=Math.min(d()+dt,a());Math.round(d())<Math.round(a())&&(E.actions.internal.seekTime(jt,Sn.SeekAction.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:dt.toString()}),ot())}break}case"ArrowUp":{if(Hs({isAudioDisabled:ve,audioDisabledHintCallback:ge,isAudioAvailable:u(),audioIsNotExistHintCallback:ue,isAds:e.isAds})){let dt=f(),jt=R.controls.volumeStepKeyboard,qi=dt<=1;if(Eu(E,dt,jt),qi){let Yt=Math.round(Gf(dt,jt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Yt}})}}ot();break}case"ArrowDown":{if(Hs({isAudioDisabled:ve,audioDisabledHintCallback:ge,isAudioAvailable:u(),audioIsNotExistHintCallback:ue,isAds:e.isAds})){let dt=f(),jt=R.controls.volumeStepKeyboard,qi=dt>=0;if(ku(E,dt,jt),qi){let Yt=Math.round(Qf(dt,jt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Yt}})}}ot();break}case"Comma":{if(le.shiftKey){E.actions.internal.decrementPlaybackRate();let dt=v().find(jt=>jt.value===p());e.showHotKeyHelpers({type:"RATE_DOWN",text:dt==null?void 0:dt.displayValue}),ot()}else{if(Xe||n()!==Fs.PlaybackState.PAUSED)break;let dt=Math.max(d()-R.controls.seekStepFrame/1e3,0);d()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),E.actions.internal.clearDelayedBufferingCheckTimeout(),E.actions.internal.seekTime(dt,Sn.SeekAction.DOUBLE_TAP),ot())}break}case"Period":{if(le.shiftKey){E.actions.internal.incrementPlaybackRate();let dt=v().find(jt=>jt.value===p());e.showHotKeyHelpers({type:"RATE_UP",text:dt==null?void 0:dt.displayValue}),ot()}else{if(Xe||n()!==Fs.PlaybackState.PAUSED)break;let dt=Math.min(d()+R.controls.seekStepFrame/1e3,a());d()<a()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),E.actions.internal.clearDelayedBufferingCheckTimeout(),E.actions.internal.seekTime(dt,Sn.SeekAction.DOUBLE_TAP),ot())}break}case"KeyK":case"Space":if(!l().has("PLAY_BUTTON"))if(y()&&w()&&me.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{E.actions.internal.togglePlay();let dt="PLAY";n()===Fs.PlaybackState.PAUSED?dt="PAUSE":$()&&(dt="REPLAY"),e.showHotKeyHelpers({type:dt})}ot();break;case"KeyM":{Hs({isAudioDisabled:ve,audioDisabledHintCallback:ge,isAudioAvailable:u(),audioIsNotExistHintCallback:ue,isAds:e.isAds})&&(e.showHotKeyHelpers({type:C()?"VOLUME":"MUTE"}),E.actions.internal.toggleMuted()),ot();break}case"KeyF":e.toggleFullscreen(),ot();break;case"KeyC":E.actions.internal.toggleSubtitle(),T().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(mi=T())==null?void 0:mi.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),ot();break;case"KeyI":E.actions.internal.togglePictureInPicture(),ot();break;case"Digit1":case"Numpad1":if(le.shiftKey){let dt=B1(I());se.set(dt),ne.set(we),ke.set(!0),Le.set(!0),ot();break}e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.1,Sn.SeekAction.DOUBLE_TAP),ot();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.2,Sn.SeekAction.DOUBLE_TAP),ot();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.3,Sn.SeekAction.DOUBLE_TAP),ot();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.4,Sn.SeekAction.DOUBLE_TAP),ot();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.5,Sn.SeekAction.DOUBLE_TAP),ot();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.6,Sn.SeekAction.DOUBLE_TAP),ot();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.7,Sn.SeekAction.DOUBLE_TAP),ot();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.8,Sn.SeekAction.DOUBLE_TAP),ot();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.9,Sn.SeekAction.DOUBLE_TAP),ot();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(0,Sn.SeekAction.DOUBLE_TAP),ot();break;case"Slash":{le.shiftKey&&R.features.hotKeyMapModal&&(e.showKeyMap(),ot());break}case"KeyN":le.shiftKey&&M()&&(E.actions.internal.nextVideoClick(),ot());break;case"KeyP":le.shiftKey&&k()&&(E.actions.internal.prevVideoClick(),ot());break;case"ShiftLeft":case"ShiftRight":ot();break;case"Tab":case"Escape":case"Enter":break;default:(0,U1.checkNever)(Ne);break}return Jt},tt=le=>{let Ot=le.code;if(le.ctrlKey||le.altKey||le.metaKey)return;let we=n()===Fs.PlaybackState.PLAYING||n()===Fs.PlaybackState.PAUSED,_e=e.isAds&&(s()==="paused"||s()==="playing");if(we||_e)switch(Ot){case"ShiftLeft":case"ShiftRight":at=0;break}},bt=q("aria_label_video_player"),Mt=()=>{var le;return(le=r(Me))==null?void 0:le.focus()},mt=le=>le.type==="keydown"?We(le,!0):(le.type==="keyup"&&tt(le),!1);var Qe=B$();Qe.__keyup=tt,Qe.__keydown=[O$,We];var Gt=_(Qe);ye(Gt,()=>{var le;return(le=e.children)!=null?le:ae}),h(Qe),nt(Qe,le=>O(Me,le),()=>r(Me)),B(()=>ze(Qe,"aria-label",bt)),b(t,Qe);var ii=z({focus:Mt,handleExternalKeyboardEvent:mt});return o(),ii}ft(["keyup","keydown"]);var H$=A('<div class="container svelte-1dbnjb1"><div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div></div>'),F$={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
141
 
142
142
  @keyframes svelte-1dbnjb1-dot_animation {
143
143
  0% {
@@ -150,30 +150,29 @@ Try switching the\xA0quality to\xA0Auto.`},y1=bb;var xs=new Map;xs.set(hl.Interf
150
150
  opacity: 0.2;
151
151
  }
152
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 Ea(t,e){q(t,D$);let i=m(e,"style",3,"");var o=B$();B(()=>st(o,i())),b(t,o)}var H$=Ee('<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 jf(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=H$();Ae(o,()=>z({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"cross-icon",role:"img"},i));var n=_(o);we(n,()=>{var s;return(s=e.children)!=null?s:de}),Te(2),h(o),b(t,o)}var Ia=require("@vkontakte/videoplayer-shared/es2015"),F$=t=>{t.stopPropagation()},U$=A("<button><!></button>"),z$={hash:"svelte-wr0kwr",code:`.btn.svelte-wr0kwr {padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center;justify-content:center;}
154
-
155
- /* \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 */.w-max.svelte-wr0kwr {width:100%;}.btn--live.svelte-wr0kwr {padding:10px 4px;}.btn-jc-l.svelte-wr0kwr {justify-content:left;}
153
+ animation-name: svelte-1dbnjb1-dot_animation;animation-iteration-count:infinite;}.dot.svelte-1dbnjb1 + .dot:where(.svelte-1dbnjb1) {margin-left:4px;}`};function Ta(t,e){G(t,F$);let i=m(e,"style",3,"");var o=H$();B(()=>rt(o,i())),b(t,o)}var U$=Te('<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 Yf(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=U$();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"cross-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Ce(2),h(o),b(t,o)}var Ia=require("@vkontakte/videoplayer-shared/es2015"),z$=t=>{t.stopPropagation()},W$=A("<button><!></button>"),K$={hash:"svelte-ut3f27",code:`.btn.svelte-ut3f27 {padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center;justify-content:center;}
156
154
 
155
+ /* \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 */.w-max.svelte-ut3f27 {width:100%;}.btn--live.svelte-ut3f27 {padding:10px 4px;}.btn-jc-l.svelte-ut3f27 {justify-content:left;}
157
156
 
158
157
  /* mobile */
159
- /* container mobile */.btn-m.svelte-wr0kwr {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;}.btn-m--play.svelte-wr0kwr {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-wr0kwr svg {transform:scale(2);}.btn-m--prev.svelte-wr0kwr,
160
- .btn-m--next.svelte-wr0kwr {position:absolute;width:50px;height:50px;}.btn-m--prev.svelte-wr0kwr {right:calc(100% + 35px);}.btn-m--next.svelte-wr0kwr {left:calc(100% + 35px);}.btn.svelte-wr0kwr:disabled {cursor:default;
161
- /* \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;}.btn.svelte-wr0kwr:not(.btn-full-opacity):disabled {opacity:0.4;}.btn.svelte-wr0kwr:not(:disabled):hover {opacity:0.8;}.pr-0.svelte-wr0kwr {padding-right:0;}.pl-0.svelte-wr0kwr {padding-left:0;}`};function Ot(t,e){F(e,!0),q(t,z$);let i=m(e,"className",3,""),o=m(e,"style",3,""),n=m(e,"disabled",3,void 0),s=m(e,"testId",3,void 0),l=m(e,"ariaHidden",3,void 0),d=m(e,"ariaLabel",3,void 0),a=m(e,"ref",15,void 0),u=m(e,"ariaKeyShortCut",3,void 0),f=m(e,"ariaExpanded",3,void 0),v=m(e,"tabIndex",3,0),p=m(e,"click",3,Ia.noop),y=m(e,"focus",3,Ia.noop),w=m(e,"blur",3,Ia.noop),$=g(()=>p()===Ia.noop?null:k=>{k.stopPropagation(),p()(k)}),S=g(()=>y()===Ia.noop?null:k=>{k.preventDefault(),y()()}),T=g(()=>w()===Ia.noop?null:k=>{k.preventDefault(),w()()});var E=U$();E.__pointerdown=[F$],E.__click=function(...k){var I;(I=r($))==null||I.apply(this,k)};var V=_(E);we(V,()=>{var k;return(k=e.children)!=null?k:de}),h(E),rt(E,k=>a(k),()=>a()),B(()=>{var k,I,R,Z,D,H,W,X;te(E,1,`btn ${(k=i())!=null?k:""}`,"svelte-wr0kwr"),st(E,o()||null),E.disabled=(I=n())!=null?I:null,Fe(E,"aria-hidden",(R=l())!=null?R:null),Fe(E,"aria-label",(Z=d())!=null?Z:null),Fe(E,"aria-keyshortcuts",(D=u())!=null?D:null),Fe(E,"aria-expanded",(H=f())!=null?H:null),Fe(E,"data-testid",(W=s())!=null?W:null),Fe(E,"tabindex",v()),Fe(E,"role",e.role),Fe(E,"aria-checked",(X=e.areaChecked)!=null?X:null)}),Ct("focus",E,function(...k){var I;(I=r(S))==null||I.apply(this,k)}),Ct("blur",E,function(...k){var I;(I=r(T))==null||I.apply(this,k)}),b(t,E),U()}ct(["pointerdown","click"]);var W$=A('<div class="modal-header svelte-1witlsj"><h3 class="modal-title svelte-1witlsj"> </h3> <!></div>'),K$=A('<div class="modal-overlay svelte-1witlsj"><div class="modal-container svelte-1witlsj"><!> <div class="modal-scroll svelte-1witlsj"><div class="modal-main svelte-1witlsj"><!></div></div></div></div>'),q$={hash:"svelte-1witlsj",code:".modal-overlay.svelte-1witlsj {position:absolute;top:0;bottom:0;left:0;right:0;background:transparent;display:flex;align-items:center;justify-content:center;}.modal-container.svelte-1witlsj {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-1witlsj {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-1witlsj {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-1witlsj {overflow-y:auto;overflow-x:hidden;margin:8px 4px 8px 0;height:100%;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar {width:8px;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-track {box-shadow:none;background-color:transparent;border-radius:4px;margin-right:2px;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb:hover {background-color:#777;}.modal-main.svelte-1witlsj {margin:-8px -4px 0 0;}"};function Yf(t,e){F(e,!0),q(t,q$);let i=m(e,"showHeader",3,!0),o=m(e,"showCloseCross",3,!0),n=K("hotkey_map_modal_close_btn_text");var s=K$(),l=_(s),d=_(l);{var a=p=>{var y=W$(),w=_(y),$=_(w,!0);h(w);var S=P(w,2);{var T=E=>{Ot(E,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",get ariaLabel(){return n},children:(V,k)=>{jf(V,{})},$$slots:{default:!0}})};L(S,E=>{o()&&E(T)})}h(y),B(()=>ye($,e.title)),b(p,y)};L(d,p=>{i()&&p(a)})}var u=P(d,2),f=_(u),v=_(f);we(v,()=>{var p;return(p=e.children)!=null?p:de}),h(f),h(u),h(l),h(s),b(t,s),U()}var G$=new Set(["BR"]),z1=t=>{var n;let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),o=i.length;for(;o--;){let s=i[o],l=s.tagName;G$.has(l)||(n=s.parentElement)==null||n.removeChild(s)}return e.innerHTML};var Q$=A('<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>'),j$=A('<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>'),Y$=A('<div class="hot-key-map svelte-quklnq"></div>'),Z$={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,
158
+ /* container mobile */.btn-m.svelte-ut3f27 {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;}.btn-m--play.svelte-ut3f27 {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-ut3f27 svg {transform:scale(2);}.btn-m--prev.svelte-ut3f27,
159
+ .btn-m--next.svelte-ut3f27 {position:absolute;width:50px;height:50px;}.btn-m--prev.svelte-ut3f27 {right:calc(100% + 35px);}.btn-m--next.svelte-ut3f27 {left:calc(100% + 35px);}.btn.svelte-ut3f27:disabled {cursor:default;
160
+ /* \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;}.btn.svelte-ut3f27:not(.btn-full-opacity):disabled {opacity:0.4;}.btn.svelte-ut3f27:not(:disabled):hover {opacity:0.8;}.pr-0.svelte-ut3f27 {padding-right:0;}.pl-0.svelte-ut3f27 {padding-left:0;}`};function Ft(t,e){U(e,!0),G(t,K$);let i=m(e,"className",3,""),o=m(e,"style",3,""),n=m(e,"disabled",3,void 0),s=m(e,"testId",3,void 0),l=m(e,"ariaHidden",3,void 0),d=m(e,"ariaLabel",3,void 0),a=m(e,"ref",15,void 0),u=m(e,"ariaKeyShortCut",3,void 0),f=m(e,"ariaExpanded",3,void 0),v=m(e,"tabIndex",3,0),p=m(e,"click",3,Ia.noop),y=m(e,"focus",3,Ia.noop),w=m(e,"blur",3,Ia.noop),$=g(()=>p()===Ia.noop?null:k=>{k.stopPropagation(),p()(k)}),C=g(()=>y()===Ia.noop?null:k=>{k.preventDefault(),y()()}),T=g(()=>w()===Ia.noop?null:k=>{k.preventDefault(),w()()});var I=W$();I.__pointerdown=[z$],I.__click=function(...k){var E;(E=r($))==null||E.apply(this,k)};var M=_(I);ye(M,()=>{var k;return(k=e.children)!=null?k:ae}),h(I),nt(I,k=>a(k),()=>a()),B(()=>{var k,E,R,X,D,H,K,J;te(I,1,`btn ${(k=i())!=null?k:""}`,"svelte-ut3f27"),rt(I,o()||null),I.disabled=(E=n())!=null?E:null,ze(I,"aria-hidden",(R=l())!=null?R:null),ze(I,"aria-label",(X=d())!=null?X:null),ze(I,"aria-keyshortcuts",(D=u())!=null?D:null),ze(I,"aria-expanded",(H=f())!=null?H:null),ze(I,"data-testid",(K=s())!=null?K:null),ze(I,"tabindex",v()),ze(I,"role",e.role),ze(I,"aria-checked",(J=e.areaChecked)!=null?J:null)}),It("focus",I,function(...k){var E;(E=r(C))==null||E.apply(this,k)}),It("blur",I,function(...k){var E;(E=r(T))==null||E.apply(this,k)}),b(t,I),z()}ft(["pointerdown","click"]);var q$=A('<div class="modal-header svelte-ijitjb"><h3 class="modal-title svelte-ijitjb"> </h3> <!></div>'),G$=A('<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>'),Q$={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 Zf(t,e){U(e,!0),G(t,Q$);let i=m(e,"showHeader",3,!0),o=m(e,"showCloseCross",3,!0),n=q("hotkey_map_modal_close_btn_text");var s=G$(),l=_(s),d=_(l);{var a=p=>{var y=q$(),w=_(y),$=_(w,!0);h(w);var C=P(w,2);{var T=I=>{Ft(I,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",get ariaLabel(){return n},children:(M,k)=>{Yf(M,{})},$$slots:{default:!0}})};V(C,I=>{o()&&I(T)})}h(y),B(()=>$e($,e.title)),b(p,y)};V(d,p=>{i()&&p(a)})}var u=P(d,2),f=_(u),v=_(f);ye(v,()=>{var p;return(p=e.children)!=null?p:ae}),h(f),h(u),h(l),h(s),b(t,s),z()}var j$=new Set(["BR"]),z1=t=>{var n;let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),o=i.length;for(;o--;){let s=i[o],l=s.tagName;j$.has(l)||(n=s.parentElement)==null||n.removeChild(s)}return e.innerHTML};var Y$=A('<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>'),Z$=A('<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>'),X$=A('<div class="hot-key-map svelte-quklnq"></div>'),J$={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,
162
161
  .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,
163
- .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 Zf(t,e){F(e,!1),q(t,Z$);let[i,o]=He(),n=()=>C(l,"$data",i),s=ke(),{data:l,show:d}=s.ui.modals.hotKeyMap,a=()=>{d.set(!1)};Br(),Yf(t,{get title(){return n().title},onClose:a,children:(u,f)=>{var v=Y$();ki(v,5,()=>n().groups,({title:p,items:y})=>p,(p,y)=>{let w=()=>r(y).title,$=()=>r(y).items;var S=j$(),T=_(S),E=_(T,!0);h(T);var V=P(T,2);ki(V,5,$,({description:k,value:I})=>I,(k,I)=>{let R=()=>r(I).description,Z=()=>r(I).value;var D=Q$(),H=_(D),W=_(H);gd(W,()=>z1(R())),h(H);var X=P(H,2),j=_(X,!0);h(X),h(D),B(()=>ye(j,Z())),b(k,D)}),h(V),h(S),B(()=>ye(E,w())),b(p,S)}),h(v),b(u,v)},$$slots:{default:!0}}),U(),o()}var qm=require("@vkontakte/videoplayer-shared/es2015");var Ra=require("@vkontakte/videoplayer-core/es2015");var ER=require("@vkontakte/videoplayer-shared/es2015");var X$=A('<div class="pillow svelte-1oe0j8n"><!></div>'),J$={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 Xf(t,e){q(t,J$);var i=X$(),o=_(i);we(o,()=>{var n;return(n=e.children)!=null?n:de}),h(i),b(t,i)}var El=require("@vkontakte/videoplayer-shared/es2015");var e2=Ee('<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 Jf(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=e2();Ae(o,()=>z({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i));var n=_(o);we(n,()=>{var s;return(s=e.children)!=null?s:de}),Te(2),h(o),b(t,o)}var t2=Ee('<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 em(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=t2();Ae(o,()=>z({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i));var n=_(o);we(n,()=>{var s;return(s=e.children)!=null?s:de}),Te(2),h(o),b(t,o)}var i2=Ee('<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 tm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=i2();Ae(o,()=>z({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i));var n=_(o);we(n,()=>{var s;return(s=e.children)!=null?s:de}),Te(),h(o),b(t,o)}var o2=Ee('<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 Dd(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=o2();Ae(o,()=>z({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img"},i));var n=_(o);we(n,()=>{var s;return(s=e.children)!=null?s:de}),Te(),h(o),b(t,o)}var n2=Ee('<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 Hd(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=n2();Ae(o,()=>z({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img"},i));var n=_(o);we(n,()=>{var s;return(s=e.children)!=null?s:de}),Te(2),h(o),b(t,o)}var Iu=t=>{switch(t){case El.VideoQuality.Q_720P:return tm;case El.VideoQuality.Q_1080P:return Dd;case El.VideoQuality.Q_1440P:return Hd;case El.VideoQuality.Q_2160P:return Jf;case El.VideoQuality.Q_4320P:return em}};var r2=Ee('<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 im(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=r2();Ae(o,()=>z({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 n=_(o);we(n,()=>{var s;return(s=e.children)!=null?s:de}),Te(),h(o),b(t,o)}var s2=Ee('<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 om(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=s2();Ae(o,()=>z({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img"},i));var n=_(o);we(n,()=>{var s;return(s=e.children)!=null?s:de}),Te(2),h(o),b(t,o)}var a2=A('<div aria-hidden="true"><!> <!></div>'),l2={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 Fd(t,e){F(e,!0),q(t,l2);let i=m(e,"isMobile",3,!1),o=m(e,"currentQuality",3,void 0),n=g(()=>Iu(o())),s=g(()=>!!r(n)&&[Dd,Hd].includes(r(n)));var l=ze(),d=ge(l);{var a=f=>{im(f,{})},u=f=>{var v=a2();let p;var y=_(v);{var w=T=>{Xf(T,{children:(E,V)=>{var k=ze(),I=ge(k);Pi(I,()=>r(n),(R,Z)=>{Z(R,{})}),b(E,k)},$$slots:{default:!0}})};L(y,T=>{r(n)&&T(w)})}var $=P(y,2);let S=g(()=>r(n)?"settings-icon--labeled":"settings-icon");om($,{get"data-testid"(){return r(S)},fill:"var(--btn-color, #fff)"}),h(v),B(T=>p=te(v,1,"icon svelte-8t5w85",null,p,T),[()=>({triple:r(s)})]),b(f,v)};L(d,f=>{i()?f(a):f(u,!1)})}b(t,l),U()}var d2=A('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),c2={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function Il(t,e){F(e,!0),q(t,c2);let[i,o]=He(),n=()=>C(u,"$settingsMenuVisible",i),s=()=>C(p,"$isMobile",i),l=()=>C(a,"$currentQuality",i),d=ke(),a=d.state.currentQuality$,u=d.ui.settingsMenu.visible$,f=d.actions.internal.openSettingsMenu,v=d.actions.internal.closeSettingsMenu,p=d.ui.isMobile,y=d.ui.t,w=Y(void 0);We(()=>{r(w)&&wt(()=>{e.ref$.set(r(w))})});let $=y("aria_label_settings");function S(E){return xt(this,null,function*(){let V=Fs(E);n()?v():f(V,ko)})}let T=g(()=>n()?"opened":"");Ot(t,{get className(){return r(T)},testId:"btn-settings",click:S,get ariaLabel(){return $},get ariaExpanded(){return n()},get ref(){return r(w)},set ref(E){O(w,E,!0)},children:(E,V)=>{var k=d2(),I=_(k);Fd(I,{get isMobile(){return s()},get currentQuality(){return l()}}),h(k),b(E,k)},$$slots:{default:!0}}),U(),o()}var u2=Ee('<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 nm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=u2();Ae(o,()=>z({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 n=_(o);we(n,()=>{var s;return(s=e.children)!=null?s:de}),Te(),h(o),b(t,o)}var p2=Ee('<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 Ud(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=p2();Ae(o,()=>z({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 n=_(o);we(n,()=>{var s;return(s=e.children)!=null?s:de}),Te(),h(o),b(t,o)}function rm(t,e){F(e,!0);let i=m(e,"isSubtitlesEnabled",3,!1),n=ke().ui.t,s=g(()=>i()?n("tooltip_subtitles_on"):n("tooltip_subtitles_off"));Ot(t,{testId:"btn-Subtitles",get ariaLabel(){return r(s)},get click(){return e.click},get ariaKeyShortCut(){return as.KeyC},role:"button",children:(l,d)=>{var a=ze(),u=ge(a);{var f=p=>{nm(p,{})},v=p=>{Ud(p,{})};L(u,p=>{i()?p(f):p(v,!1)})}b(l,a)},$$slots:{default:!0}}),U()}var f2=A('<span class="duration svelte-sz9er7" data-testid="video_duration"> </span>'),m2=A('<div><span class="current svelte-sz9er7" data-testid="current_time"> </span> <!></div>'),v2={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 zd(t,e){F(e,!0),q(t,v2);let i=m(e,"isMobile",3,!1),o=m(e,"isHidden",3,!1),n=m(e,"showDuration",3,!0),s=m(e,"ref",15),l=At(),d=ae(!1),a=g(()=>Sn(e.duration)),u=g(()=>Sn(e.position));var f=m2();let v;var p=_(f),y=_(p,!0);h(p);var w=P(p,2);{var $=S=>{var T=f2(),E=_(T,!0);h(T),B(()=>ye(E,r(a))),b(S,T)};L(w,S=>{n()&&S($)})}h(f),$s(f,()=>yl(o()&&l.features.usePerformanceFix,d,l.disableInvisibleComponentsTimeout)),rt(f,S=>s(S),()=>s()),B(S=>{v=te(f,1,"time svelte-sz9er7",null,v,S),ye(y,r(u))},[()=>({mobile:i()})]),b(t,f),U()}var Kd=require("@vkontakte/videoplayer-shared/es2015");var g2=Ee('<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>'),h2={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),
162
+ .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 Xf(t,e){U(e,!1),G(t,J$);let[i,o]=Ue(),n=()=>S(l,"$data",i),s=Ie(),{data:l,show:d}=s.ui.modals.hotKeyMap,a=()=>{d.set(!1)};Hr(),Zf(t,{get title(){return n().title},onClose:a,children:(u,f)=>{var v=X$();Ei(v,5,()=>n().groups,({title:p,items:y})=>p,(p,y)=>{let w=()=>r(y).title,$=()=>r(y).items;var C=Z$(),T=_(C),I=_(T,!0);h(T);var M=P(T,2);Ei(M,5,$,({description:k,value:E})=>E,(k,E)=>{let R=()=>r(E).description,X=()=>r(E).value;var D=Y$(),H=_(D),K=_(H);pd(K,()=>z1(R())),h(H);var J=P(H,2),j=_(J,!0);h(J),h(D),B(()=>$e(j,X())),b(k,D)}),h(M),h(C),B(()=>$e(I,w())),b(p,C)}),h(v),b(u,v)},$$slots:{default:!0}}),z(),o()}var Gm=require("@vkontakte/videoplayer-shared/es2015");var Va=require("@vkontakte/videoplayer-core/es2015");var kR=require("@vkontakte/videoplayer-shared/es2015");var e2=A('<div class="pillow svelte-1oe0j8n"><!></div>'),t2={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 Jf(t,e){G(t,t2);var i=e2(),o=_(i);ye(o,()=>{var n;return(n=e.children)!=null?n:ae}),h(i),b(t,i)}var Tl=require("@vkontakte/videoplayer-shared/es2015");var i2=Te('<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 em(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=i2();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Ce(2),h(o),b(t,o)}var o2=Te('<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 tm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=o2();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Ce(2),h(o),b(t,o)}var n2=Te('<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 im(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=n2();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Ce(),h(o),b(t,o)}var r2=Te('<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 Rd(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=r2();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Ce(),h(o),b(t,o)}var s2=Te('<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 Nd(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=s2();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Ce(2),h(o),b(t,o)}var Pu=t=>{switch(t){case Tl.VideoQuality.Q_720P:return im;case Tl.VideoQuality.Q_1080P:return Rd;case Tl.VideoQuality.Q_1440P:return Nd;case Tl.VideoQuality.Q_2160P:return em;case Tl.VideoQuality.Q_4320P:return tm}};var a2=Te('<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 om(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=a2();Pe(o,()=>W({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 n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Ce(),h(o),b(t,o)}var l2=Te('<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 nm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=l2();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Ce(2),h(o),b(t,o)}var d2=A('<div aria-hidden="true"><!> <!></div>'),c2={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 Od(t,e){U(e,!0),G(t,c2);let i=m(e,"isMobile",3,!1),o=m(e,"currentQuality",3,void 0),n=g(()=>Pu(o())),s=g(()=>!!r(n)&&[Rd,Nd].includes(r(n)));var l=qe(),d=he(l);{var a=f=>{om(f,{})},u=f=>{var v=d2();let p;var y=_(v);{var w=T=>{Jf(T,{children:(I,M)=>{var k=qe(),E=he(k);ki(E,()=>r(n),(R,X)=>{X(R,{})}),b(I,k)},$$slots:{default:!0}})};V(y,T=>{r(n)&&T(w)})}var $=P(y,2);let C=g(()=>r(n)?"settings-icon--labeled":"settings-icon");nm($,{get"data-testid"(){return r(C)},fill:"var(--btn-color, #fff)"}),h(v),B(T=>p=te(v,1,"icon svelte-8t5w85",null,p,T),[()=>({triple:r(s)})]),b(f,v)};V(d,f=>{i()?f(a):f(u,!1)})}b(t,l),z()}var u2=A('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),p2={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function Il(t,e){U(e,!0),G(t,p2);let[i,o]=Ue(),n=()=>S(u,"$settingsMenuVisible",i),s=()=>S(p,"$isMobile",i),l=()=>S(a,"$currentQuality",i),d=Ie(),a=d.state.currentQuality$,u=d.ui.settingsMenu.visible$,f=d.actions.internal.openSettingsMenu,v=d.actions.internal.closeSettingsMenu,p=d.ui.isMobile,y=d.ui.t,w=Y(void 0);Ge(()=>{r(w)&&Ct(()=>{e.ref$.set(r(w))})});let $=y("aria_label_settings");function C(I){return St(this,null,function*(){let M=Ds(I);n()?v():f(M,Ao)})}let T=g(()=>n()?"opened":"");Ft(t,{get className(){return r(T)},testId:"btn-settings",click:C,get ariaLabel(){return $},get ariaExpanded(){return n()},get ref(){return r(w)},set ref(I){O(w,I,!0)},children:(I,M)=>{var k=u2(),E=_(k);Od(E,{get isMobile(){return s()},get currentQuality(){return l()}}),h(k),b(I,k)},$$slots:{default:!0}}),z(),o()}var f2=Te('<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 rm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=f2();Pe(o,()=>W({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 n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Ce(),h(o),b(t,o)}var m2=Te('<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 Bd(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=m2();Pe(o,()=>W({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 n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Ce(),h(o),b(t,o)}function sm(t,e){U(e,!0);let i=m(e,"isSubtitlesEnabled",3,!1),n=Ie().ui.t,s=g(()=>i()?n("tooltip_subtitles_on"):n("tooltip_subtitles_off"));Ft(t,{testId:"btn-Subtitles",get ariaLabel(){return r(s)},get click(){return e.click},get ariaKeyShortCut(){return rs.KeyC},role:"button",children:(l,d)=>{var a=qe(),u=he(a);{var f=p=>{rm(p,{})},v=p=>{Bd(p,{})};V(u,p=>{i()?p(f):p(v,!1)})}b(l,a)},$$slots:{default:!0}}),z()}var v2=A('<span class="duration svelte-sz9er7" data-testid="video_duration"> </span>'),g2=A('<div><span class="current svelte-sz9er7" data-testid="current_time"> </span> <!></div>'),h2={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 Dd(t,e){U(e,!0),G(t,h2);let i=m(e,"isMobile",3,!1),o=m(e,"isHidden",3,!1),n=m(e,"showDuration",3,!0),s=m(e,"ref",15),l=At(),d=re(!1),a=g(()=>wn(e.duration)),u=g(()=>wn(e.position));var f=g2();let v;var p=_(f),y=_(p,!0);h(p);var w=P(p,2);{var $=C=>{var T=v2(),I=_(T,!0);h(T),B(()=>$e(I,r(a))),b(C,T)};V(w,C=>{n()&&C($)})}h(f),_s(f,()=>$l(o()&&l.features.usePerformanceFix,d,l.disableInvisibleComponentsTimeout)),nt(f,C=>s(C),()=>s()),B(C=>{v=te(f,1,"time svelte-sz9er7",null,v,C),$e(y,r(u))},[()=>({mobile:i()})]),b(t,f),z()}var Fd=require("@vkontakte/videoplayer-shared/es2015");var _2=Te('<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>'),b2={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),
164
163
  .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),
165
- .icon[data-value='min'].svelte-v40k9i .wave2:where(.svelte-v40k9i) {visibility:hidden;}`};function Ws(t,e){q(t,h2);let i=m(e,"volume",3,1),o=m(e,"muted",3,!1),n=(d,a)=>a?"off":d>.5?"max":d>.2?"mid":d>0?"min":"off",s=g(()=>n(i(),o()));var l=g2();B(()=>{var d;Fe(l,"data-value",r(s)),Fe(l,"data-testid",`volume-${(d=r(s))!=null?d:""}-icon`)}),b(t,l)}var Mo=require("@vkontakte/videoplayer-shared/es2015");var ku=require("@vkontakte/videoplayer-shared/es2015");var W1=require("@vkontakte/videoplayer-shared/es2015");var _2=A('<div class="overlay"><!></div>');function sm(t,e){F(e,!0);let[i,o]=He(),n=()=>C(l,"$overlayContainer$",i),l=ke().ui.overlayContainer$,d=Y(void 0),a=p=>{!p||!r(d)||!p.contains(r(d))||p.removeChild(r(d))},u=p=>{!p||!r(d)||p.contains(r(d))||p.appendChild(r(d))};We(()=>{u(n())}),Dt(()=>(u(n()),()=>a(n())));var f=_2(),v=_(f);we(v,()=>{var p;return(p=e.children)!=null?p:de}),h(f),rt(f,p=>O(d,p),()=>r(d)),b(t,f),U(),o()}var b2=A('<div class="tooltip svelte-hxlyne"><div class="content svelte-hxlyne"> </div> <div class="tooltip-pointer svelte-hxlyne"></div></div>'),$2=A("<div><!></div> <!>",1),y2={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 ka(t,e){F(e,!0),q(t,y2);let[i,o]=He(),n=()=>C(W,"$overlayContainer$",i),s=()=>C(H,"$containerSize",i),l=m(e,"isMobile",3,!1),d=m(e,"content",3,""),a=m(e,"active",15,!1),u=m(e,"translateX",3,0),f=m(e,"translateY",3,0),v=m(e,"isFullWidthWrapper",3,!1),p=m(e,"maxTooltipWidth",3,void 0),y=m(e,"placement",3,"top"),w=m(e,"onVisibilityChange",3,W1.noop),$=5,S=Y(void 0),T=Y(void 0),E,V=Y(0),k=Y(0),I=Y(0),R=Y(0),Z=At(),D=ke(),H=D.ui.playerSize,W=D.ui.overlayContainer$;We(()=>{wt(()=>{w()(a())})});let X=D.getLogger().createComponentLog("Tooltip component"),j=()=>{if(!n()||!r(T)||!r(S))return;O(k,$);let J=n().getBoundingClientRect(),Le=r(S).getBoundingClientRect(),Ie=Le.width,Ze=r(T).clientWidth,at=s().width,bt=(Ie-Ze)/2,gt=Le.left+u()-J.left,Tt=gt+bt,Qe=Le.top+f()-J.top,Kt=Ze/2-$,ti=Tt<8,Yt=Tt+Ze>at-8;ti&&(Tt=8,Kt=gt+Le.width/2-2.5*$),Yt&&(Tt=at-8-Ze,Kt=Le.left-J.left+Le.width/2-Tt-$),O(I,Tt,!0),O(R,Qe),O(V,Kt,!0)},ce=()=>{!n()||!r(T)||!r(S)||O(k,-$)},re=()=>{if(!n()||!r(T)||!r(S))return;O(V,$);let J=n().getBoundingClientRect(),Le=r(S).getBoundingClientRect(),Ie=Le.height,Ze=r(T).clientHeight,at=(Ie-Ze)/2+Ze,bt=Le.left+u()-J.left-r(T).clientWidth,gt=2,Tt=bt-$;Tt<8&&(Tt=8);let Kt=Le.top+f()-J.top+at,ti=gt-at/2,Yt=gt-$;O(I,Tt,!0),O(R,Kt),O(k,ti),O(V,Yt)},pe=()=>{!n()||!r(T)||!r(S)||O(V,-$)},xe=()=>{switch(y()){case"top":j();break;case"bottom":ce();break;case"left":re();break;default:pe()}},fe=()=>{try{if(!n()||!r(S))return;xe(),a(!0)}catch(J){X({message:String(J)})}},ie=()=>{a(!1)},Pe=()=>{r(T)&&(E||(E=window.setTimeout(fe,Z.controls.hideTimeoutTooltips)),a()&&fe())},ee=()=>{ie(),window.clearTimeout(E),E=void 0},N=(J,Le,Ie)=>{let Ze="";switch(y()){case"top":Ze=`transform: translate(${J}px, ${Le}px);`;break;case"bottom":Ze=`transform: translate(${J}px, ${Le}px); top: auto; bottom: 100%;`;break;case"left":Ze=`transform: translate(${J}px, ${Le}px); left: 0; right: auto;`;break;default:Ze=`transform: translate(${J}px, ${Le}px);`}return Ze+=` max-width: ${p()===void 0?"auto":`${p()}px`};`,Ze+=` opacity: ${Ie?1:0}; visibility: ${Ie?"visible":"hidden"}`,Ze},Ue=(J,Le)=>{let Ie="";switch(y()){case"top":Ie=`transform: translate(${J}px, ${Le}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Ie=`transform: translate(${J}px, ${Le}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Ie=`transform: translate(${J}px, ${Le}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Ie=`transform: translate(${J}px, ${Le}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Ie},_e=g(()=>N(r(I),r(R),a())),he=g(()=>Ue(r(V),r(k)));Dt(xe),cn(()=>window.clearTimeout(E));var ue=$2(),me=ge(ue);let ve;me.__mousemove=Pe,me.__mousedown=ee,me.__mouseup=function(...J){var Le;(Le=e.disableMouseupTooltipShow?void 0:Pe)==null||Le.apply(this,J)};var se=_(me);we(se,()=>{var J;return(J=e.children)!=null?J:de}),h(me),rt(me,J=>O(S,J),()=>r(S));var Ge=P(me,2);{var et=J=>{sm(J,{children:(Le,Ie)=>{var Ze=b2(),at=_(Ze),bt=_(at,!0);h(at);var gt=P(at,2);h(Ze),rt(Ze,Tt=>O(T,Tt),()=>r(T)),B(()=>{st(Ze,r(_e)),ye(bt,d()),st(gt,r(he))}),b(Le,Ze)},$$slots:{default:!0}})};L(Ge,J=>{d()&&!l()&&J(et)})}B(J=>ve=te(me,1,"tooltip-wrapper svelte-hxlyne",null,ve,J),[()=>({"full-width":v()})]),Ct("mouseenter",me,Pe),Ct("mouseleave",me,ee),b(t,ue),U(),o()}ct(["mousemove","mousedown","mouseup"]);var K1=t=>{t.stopPropagation()},x2=A("<div><!></div>"),w2={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 Ao(t,e){F(e,!0),q(t,w2);let[i,o]=He(),n=()=>C(u,"$isGraphOpened$",i),s=()=>C(a,"$isMobile",i),l=ke(),d=yo(),a=l.ui.isMobile,u=d.graphIsOpened$,f=l.ui.t,v=m(e,"className",3,""),p=m(e,"disabled",3,!1),y=m(e,"hasTooltip",3,!0),w=m(e,"ref",15,void 0),$=m(e,"width",15,void 0),S=m(e,"isFullWidthTooltip",3,!0),T=m(e,"tooltipContent",3,""),E=m(e,"tooltipActive",3,!1),V=m(e,"tooltipPlacement",3,"top"),k=m(e,"disabledTooltipContent",19,()=>f("tooltip_button_disabled")),I=m(e,"isAriaHidden",3,!1),R=m(e,"onTooltipVisibilityChange",3,ku.noop),Z=m(e,"initialTranslateXPx",3,0),D=m(e,"initialTranslateYPx",19,()=>-18),H=m(e,"mouseEnter",3,ku.noop),W=m(e,"mouseLeave",3,ku.noop),X=g(()=>p()?n()?f("tooltip_disabled_when_graph_on"):k():T());var j=x2();j.__pointerdown=[K1],j.__click=[K1];var ce=_(j);{var re=xe=>{ka(xe,{get content(){return r(X)},get translateX(){return Z()},get translateY(){return D()},get isFullWidthWrapper(){return S()},get active(){return E()},get placement(){return V()},get onVisibilityChange(){return R()},get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},children:(fe,ie)=>{var Pe=ze(),ee=ge(Pe);we(ee,()=>{var N;return(N=e.children)!=null?N:de}),b(fe,Pe)},$$slots:{default:!0}})},pe=xe=>{var fe=ze(),ie=ge(fe);we(ie,()=>{var Pe;return(Pe=e.children)!=null?Pe:de}),b(xe,fe)};L(ce,xe=>{y()&&r(X)&&!s()?xe(re):xe(pe,!1)})}h(j),rt(j,xe=>w(xe),()=>w()),B(()=>{var xe;te(j,1,`btn-container ${(xe=v())!=null?xe:""}`,"svelte-p9r045"),Fe(j,"aria-hidden",I()||null)}),Ct("mouseenter",j,function(...xe){var fe;(fe=H())==null||fe.apply(this,xe)}),Ct("mouseleave",j,function(...xe){var fe;(fe=W())==null||fe.apply(this,xe)}),or(j,"clientWidth",$),b(t,j),U(),o()}ct(["pointerdown","click"]);var S2=Ee('<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 Wd(t,e){"use strict";var i=S2(),o=_(i),n=P(o);h(i),B(()=>{Fe(i,"data-testid",(e.completed,"interactive-episode-completed-icon")),Fe(o,"fill-opacity",e.completed?1:.24),Fe(n,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),b(t,i)}var C2=A("<div><!></div>"),T2={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 am(t,e){F(e,!0),q(t,T2);let o=ke().ui.t,n=Y(0),s=g(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));Ao(t,{get tooltipContent(){return r(s)},initialTranslateXPx:-10,initialTranslateYPx:-10,get disabled(){return e.disabled},get width(){return r(n)},isAriaHidden:!0,isFullWidthTooltip:!1,children:(l,d)=>{var a=C2();let u;var f=_(a);let v=g(()=>!!e.videoEpisode.completed);Wd(f,{get completed(){return r(v)}}),h(a),B(p=>{u=te(a,1,"interactive-episode-icon svelte-bklhpe",null,u,p),st(a,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),or(a,"clientWidth",p=>O(n,p)),b(l,a)},$$slots:{default:!0}}),U()}var E2=A('<div><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div></div></div></div>'),I2=A('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),k2={hash:"svelte-1u6kv8l",code:`.video-episodes-wrap.svelte-1u6kv8l {position:absolute;width:100%;height:100%;}.video-episode.svelte-1u6kv8l {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-1u6kv8l:not(.disabled):where(:hover, :active) {transform:scaleY(1.5);}.video-episode-inner.svelte-1u6kv8l,
164
+ .icon[data-value='min'].svelte-v40k9i .wave2:where(.svelte-v40k9i) {visibility:hidden;}`};function Us(t,e){G(t,b2);let i=m(e,"volume",3,1),o=m(e,"muted",3,!1),n=(d,a)=>a?"off":d>.5?"max":d>.2?"mid":d>0?"min":"off",s=g(()=>n(i(),o()));var l=_2();B(()=>{var d;ze(l,"data-value",r(s)),ze(l,"data-testid",`volume-${(d=r(s))!=null?d:""}-icon`)}),b(t,l)}var Vo=require("@vkontakte/videoplayer-shared/es2015");var Au=require("@vkontakte/videoplayer-shared/es2015");var W1=require("@vkontakte/videoplayer-shared/es2015");var $2=A('<div class="overlay"><!></div>');function am(t,e){U(e,!0);let[i,o]=Ue(),n=()=>S(l,"$overlayContainer$",i),l=Ie().ui.overlayContainer$,d=Y(void 0),a=p=>{!p||!r(d)||!p.contains(r(d))||p.removeChild(r(d))},u=p=>{!p||!r(d)||p.contains(r(d))||p.appendChild(r(d))};Ge(()=>{u(n())}),zt(()=>(u(n()),()=>a(n())));var f=$2(),v=_(f);ye(v,()=>{var p;return(p=e.children)!=null?p:ae}),h(f),nt(f,p=>O(d,p),()=>r(d)),b(t,f),z(),o()}var y2=A('<div class="tooltip svelte-hxlyne"><div class="content svelte-hxlyne"> </div> <div class="tooltip-pointer svelte-hxlyne"></div></div>'),x2=A("<div><!></div> <!>",1),w2={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 Ea(t,e){U(e,!0),G(t,w2);let[i,o]=Ue(),n=()=>S(K,"$overlayContainer$",i),s=()=>S(H,"$containerSize",i),l=m(e,"isMobile",3,!1),d=m(e,"content",3,""),a=m(e,"active",15,!1),u=m(e,"translateX",3,0),f=m(e,"translateY",3,0),v=m(e,"isFullWidthWrapper",3,!1),p=m(e,"maxTooltipWidth",3,void 0),y=m(e,"placement",3,"top"),w=m(e,"onVisibilityChange",3,W1.noop),$=5,C=Y(void 0),T=Y(void 0),I,M=Y(0),k=Y(0),E=Y(0),R=Y(0),X=At(),D=Ie(),H=D.ui.playerSize,K=D.ui.overlayContainer$;Ge(()=>{Ct(()=>{w()(a())})});let J=D.getLogger().createComponentLog("Tooltip component"),j=()=>{if(!n()||!r(T)||!r(C))return;O(k,$);let Z=n().getBoundingClientRect(),Me=r(C).getBoundingClientRect(),Ee=Me.width,We=r(T).clientWidth,tt=s().width,bt=(Ee-We)/2,Mt=Me.left+u()-Z.left,mt=Mt+bt,Qe=Me.top+f()-Z.top,Gt=We/2-$,ii=mt<8,Qt=mt+We>tt-8;ii&&(mt=8,Gt=Mt+Me.width/2-2.5*$),Qt&&(mt=tt-8-We,Gt=Me.left-Z.left+Me.width/2-mt-$),O(E,mt,!0),O(R,Qe),O(M,Gt,!0)},ce=()=>{!n()||!r(T)||!r(C)||O(k,-$)},oe=()=>{if(!n()||!r(T)||!r(C))return;O(M,$);let Z=n().getBoundingClientRect(),Me=r(C).getBoundingClientRect(),Ee=Me.height,We=r(T).clientHeight,tt=(Ee-We)/2+We,bt=Me.left+u()-Z.left-r(T).clientWidth,Mt=2,mt=bt-$;mt<8&&(mt=8);let Gt=Me.top+f()-Z.top+tt,ii=Mt-tt/2,Qt=Mt-$;O(E,mt,!0),O(R,Gt),O(k,ii),O(M,Qt)},pe=()=>{!n()||!r(T)||!r(C)||O(M,-$)},be=()=>{switch(y()){case"top":j();break;case"bottom":ce();break;case"left":oe();break;default:pe()}},fe=()=>{try{if(!n()||!r(C))return;be(),a(!0)}catch(Z){J({message:String(Z)})}},ke=()=>{a(!1)},ne=()=>{r(T)&&(I||(I=window.setTimeout(fe,X.controls.hideTimeoutTooltips)),a()&&fe())},Le=()=>{ke(),window.clearTimeout(I),I=void 0},se=(Z,Me,Ee)=>{let We="";switch(y()){case"top":We=`transform: translate(${Z}px, ${Me}px);`;break;case"bottom":We=`transform: translate(${Z}px, ${Me}px); top: auto; bottom: 100%;`;break;case"left":We=`transform: translate(${Z}px, ${Me}px); left: 0; right: auto;`;break;default:We=`transform: translate(${Z}px, ${Me}px);`}return We+=` max-width: ${p()===void 0?"auto":`${p()}px`};`,We+=` opacity: ${Ee?1:0}; visibility: ${Ee?"visible":"hidden"}`,We},N=(Z,Me)=>{let Ee="";switch(y()){case"top":Ee=`transform: translate(${Z}px, ${Me}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Ee=`transform: translate(${Z}px, ${Me}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Ee=`transform: translate(${Z}px, ${Me}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Ee=`transform: translate(${Z}px, ${Me}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Ee},Be=g(()=>se(r(E),r(R),a())),ue=g(()=>N(r(M),r(k)));zt(be),nn(()=>window.clearTimeout(I));var ge=x2(),ee=he(ge);let ve;ee.__mousemove=ne,ee.__mousedown=Le,ee.__mouseup=function(...Z){var Me;(Me=e.disableMouseupTooltipShow?void 0:ne)==null||Me.apply(this,Z)};var De=_(ee);ye(De,()=>{var Z;return(Z=e.children)!=null?Z:ae}),h(ee),nt(ee,Z=>O(C,Z),()=>r(C));var me=P(ee,2);{var at=Z=>{am(Z,{children:(Me,Ee)=>{var We=y2(),tt=_(We),bt=_(tt,!0);h(tt);var Mt=P(tt,2);h(We),nt(We,mt=>O(T,mt),()=>r(T)),B(()=>{rt(We,r(Be)),$e(bt,d()),rt(Mt,r(ue))}),b(Me,We)},$$slots:{default:!0}})};V(me,Z=>{d()&&!l()&&Z(at)})}B(Z=>ve=te(ee,1,"tooltip-wrapper svelte-hxlyne",null,ve,Z),[()=>({"full-width":v()})]),It("mouseenter",ee,ne),It("mouseleave",ee,Le),b(t,ge),z(),o()}ft(["mousemove","mousedown","mouseup"]);var K1=t=>{t.stopPropagation()},S2=A("<div><!></div>"),C2={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 Lo(t,e){U(e,!0),G(t,C2);let[i,o]=Ue(),n=()=>S(u,"$isGraphOpened$",i),s=()=>S(a,"$isMobile",i),l=Ie(),d=xo(),a=l.ui.isMobile,u=d.graphIsOpened$,f=l.ui.t,v=m(e,"className",3,""),p=m(e,"disabled",3,!1),y=m(e,"hasTooltip",3,!0),w=m(e,"ref",15,void 0),$=m(e,"width",15,void 0),C=m(e,"isFullWidthTooltip",3,!0),T=m(e,"tooltipContent",3,""),I=m(e,"tooltipActive",3,!1),M=m(e,"tooltipPlacement",3,"top"),k=m(e,"disabledTooltipContent",19,()=>f("tooltip_button_disabled")),E=m(e,"isAriaHidden",3,!1),R=m(e,"onTooltipVisibilityChange",3,Au.noop),X=m(e,"initialTranslateXPx",3,0),D=m(e,"initialTranslateYPx",19,()=>-18),H=m(e,"mouseEnter",3,Au.noop),K=m(e,"mouseLeave",3,Au.noop),J=g(()=>p()?n()?f("tooltip_disabled_when_graph_on"):k():T());var j=S2();j.__pointerdown=[K1],j.__click=[K1];var ce=_(j);{var oe=be=>{Ea(be,{get content(){return r(J)},get translateX(){return X()},get translateY(){return D()},get isFullWidthWrapper(){return C()},get active(){return I()},get placement(){return M()},get onVisibilityChange(){return R()},get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},children:(fe,ke)=>{var ne=qe(),Le=he(ne);ye(Le,()=>{var se;return(se=e.children)!=null?se:ae}),b(fe,ne)},$$slots:{default:!0}})},pe=be=>{var fe=qe(),ke=he(fe);ye(ke,()=>{var ne;return(ne=e.children)!=null?ne:ae}),b(be,fe)};V(ce,be=>{y()&&r(J)&&!s()?be(oe):be(pe,!1)})}h(j),nt(j,be=>w(be),()=>w()),B(()=>{var be;te(j,1,`btn-container ${(be=v())!=null?be:""}`,"svelte-p9r045"),ze(j,"aria-hidden",E()||null)}),It("mouseenter",j,function(...be){var fe;(fe=H())==null||fe.apply(this,be)}),It("mouseleave",j,function(...be){var fe;(fe=K())==null||fe.apply(this,be)}),sr(j,"clientWidth",$),b(t,j),z(),o()}ft(["pointerdown","click"]);var T2=Te('<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 Hd(t,e){"use strict";var i=T2(),o=_(i),n=P(o);h(i),B(()=>{ze(i,"data-testid",(e.completed,"interactive-episode-completed-icon")),ze(o,"fill-opacity",e.completed?1:.24),ze(n,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),b(t,i)}var I2=A("<div><!></div>"),E2={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 lm(t,e){U(e,!0),G(t,E2);let o=Ie().ui.t,n=Y(0),s=g(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));Lo(t,{get tooltipContent(){return r(s)},initialTranslateXPx:-10,initialTranslateYPx:-10,get disabled(){return e.disabled},get width(){return r(n)},isAriaHidden:!0,isFullWidthTooltip:!1,children:(l,d)=>{var a=I2();let u;var f=_(a);let v=g(()=>!!e.videoEpisode.completed);Hd(f,{get completed(){return r(v)}}),h(a),B(p=>{u=te(a,1,"interactive-episode-icon svelte-bklhpe",null,u,p),rt(a,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),sr(a,"clientWidth",p=>O(n,p)),b(l,a)},$$slots:{default:!0}}),z()}var k2=A('<div><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div></div></div></div>'),P2=A('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),A2={hash:"svelte-1u6kv8l",code:`.video-episodes-wrap.svelte-1u6kv8l {position:absolute;width:100%;height:100%;}.video-episode.svelte-1u6kv8l {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-1u6kv8l:not(.disabled):where(:hover, :active) {transform:scaleY(1.5);}.video-episode-inner.svelte-1u6kv8l,
166
165
  .video-episode-loaded.svelte-1u6kv8l,
167
- .video-episode-filled.svelte-1u6kv8l {position:absolute;height:var(--slider-height);border-radius:var(--slider-radius);}.video-episode-inner.svelte-1u6kv8l {position:absolute;overflow:hidden;width:calc(100% - 2 * var(--slider-video-episode-gap));background:var(--slider-bg);}.video-episode-loaded.svelte-1u6kv8l {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-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}`};function lm(t,e){q(t,k2);let i=m(e,"videoEpisodes",19,()=>[]);var o=I2();ki(o,21,i,n=>n.from,(n,s)=>{var l=E2();let d;var a=_(l),u=_(a),f=P(u,2);let v;h(a),h(l),B((p,y)=>{d=te(l,1,"video-episode svelte-1u6kv8l",null,d,p),st(l,`left: ${r(s).from}%; width: ${r(s).width}%`),st(u,`transform: translateX(${r(s).loadedWidth/r(s).width*100}%)`),v=te(f,1,"video-episode-filled svelte-1u6kv8l",null,v,y),st(f,`transform: translateX(${r(s).filledWidth/r(s).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),b(n,l)}),h(o),b(t,o)}function P2(t,e,i,o,n,s,l){if(t.preventDefault(),e()&&O(i,e().getBoundingClientRect(),!0),o()||r(n)||!e())return;O(n,!0);let d=s(t.clientX,t.clientY);l()(d),e().setPointerCapture(t.pointerId)}function A2(t,e,i,o,n,s,l,d){if(t.preventDefault(),e())return;let a=i(t.clientX,t.clientY),u=o(t.clientX);n()(a,u,r(s).width),r(l)&&d()(a)}function M2(t,e,i,o,n){if(t.preventDefault(),e()||!r(i))return;O(i,!1);let s=o(t.clientX,t.clientY);n()(s)}function L2(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}function V2(t,e,i,o,n,s){let l=e(t.clientX,t.clientY);i()&&o()(l),O(n,!1),s()(l)}var R2=A("<div></div>"),N2=A('<div class="bars svelte-1tpemng"><div class="loaded svelte-1tpemng"></div> <div></div></div>'),O2=A('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),B2={hash:"svelte-1tpemng",code:`.interactive-icons.svelte-1tpemng {position:absolute;width:calc(100% - 20px);top:-28px;}.interactive-icons.mobile.svelte-1tpemng {top:-10px;}.slider.svelte-1tpemng {position:relative;height:var(--slider-height);border-radius:var(--slider-radius);cursor:pointer;transition:visibility 0.2s, opacity 0.2s;will-change:opacity, transform;width:100%;touch-action:none;-webkit-tap-highlight-color:transparent;}.no-handle.svelte-1tpemng {cursor:default;}.slider.svelte-1tpemng:before {
166
+ .video-episode-filled.svelte-1u6kv8l {position:absolute;height:var(--slider-height);border-radius:var(--slider-radius);}.video-episode-inner.svelte-1u6kv8l {position:absolute;overflow:hidden;width:calc(100% - 2 * var(--slider-video-episode-gap));background:var(--slider-bg);}.video-episode-loaded.svelte-1u6kv8l {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-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}`};function dm(t,e){G(t,A2);let i=m(e,"videoEpisodes",19,()=>[]);var o=P2();Ei(o,21,i,n=>n.from,(n,s)=>{var l=k2();let d;var a=_(l),u=_(a),f=P(u,2);let v;h(a),h(l),B((p,y)=>{d=te(l,1,"video-episode svelte-1u6kv8l",null,d,p),rt(l,`left: ${r(s).from}%; width: ${r(s).width}%`),rt(u,`transform: translateX(${r(s).loadedWidth/r(s).width*100}%)`),v=te(f,1,"video-episode-filled svelte-1u6kv8l",null,v,y),rt(f,`transform: translateX(${r(s).filledWidth/r(s).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),b(n,l)}),h(o),b(t,o)}function M2(t,e,i,o,n,s,l){if(t.preventDefault(),e()&&O(i,e().getBoundingClientRect(),!0),o()||r(n)||!e())return;O(n,!0);let d=s(t.clientX,t.clientY);l()(d),e().setPointerCapture(t.pointerId)}function L2(t,e,i,o,n,s,l,d){if(t.preventDefault(),e())return;let a=i(t.clientX,t.clientY),u=o(t.clientX);n()(a,u,r(s).width),r(l)&&d()(a)}function V2(t,e,i,o,n){if(t.preventDefault(),e()||!r(i))return;O(i,!1);let s=o(t.clientX,t.clientY);n()(s)}function R2(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}function N2(t,e,i,o,n,s){let l=e(t.clientX,t.clientY);i()&&o()(l),O(n,!1),s()(l)}var O2=A("<div></div>"),B2=A('<div class="bars svelte-1tpemng"><div class="loaded svelte-1tpemng"></div> <div></div></div>'),D2=A('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),H2={hash:"svelte-1tpemng",code:`.interactive-icons.svelte-1tpemng {position:absolute;width:calc(100% - 20px);top:-28px;}.interactive-icons.mobile.svelte-1tpemng {top:-10px;}.slider.svelte-1tpemng {position:relative;height:var(--slider-height);border-radius:var(--slider-radius);cursor:pointer;transition:visibility 0.2s, opacity 0.2s;will-change:opacity, transform;width:100%;touch-action:none;-webkit-tap-highlight-color:transparent;}.no-handle.svelte-1tpemng {cursor:default;}.slider.svelte-1tpemng:before {
168
167
  /* 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-1tpemng {position:absolute;width:100%;height:100%;border-radius:var(--slider-radius);overflow:hidden;background:var(--slider-bg);}.loaded.svelte-1tpemng {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-1tpemng {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}.slider.square.svelte-1tpemng,
169
168
  .slider.square.svelte-1tpemng > .bars:where(.svelte-1tpemng),
170
169
  .slider.square.svelte-1tpemng .loaded:where(.svelte-1tpemng),
171
170
  .slider.square.svelte-1tpemng .filled:where(.svelte-1tpemng) {border-radius:unset;}.filled.active-live.svelte-1tpemng {background-color:var(--timeline-slider-filled-active-live-bg);}.filled.ads.svelte-1tpemng {background-color:var(--slider-filled-ads);}.handleWrap.svelte-1tpemng {position:absolute;left:-100%;width:100%;}.handle.svelte-1tpemng {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, visibility 0.2s;will-change:opacity, transform;}.handle.active-live.svelte-1tpemng {background-color:var(--timeline-slider-handle-active-live-bg);}.slider.svelte-1tpemng:hover .handle:where(.svelte-1tpemng),
172
- .slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {visibility:visible;opacity:1;transform:scale(1);}.slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {transform:scale(1.3);}.slider-vertical.svelte-1tpemng {position:absolute;left:-8px;top:-18px;transform-origin:0 0;transform:rotate(-90deg);}.slider.disabled.svelte-1tpemng {cursor:default;opacity:0.4;}`};function Pa(t,e){F(e,!0),q(t,B2);let i=m(e,"ref",15,void 0),o=m(e,"className",3,""),n=m(e,"testId",3,void 0),s=m(e,"isHidden",3,!1),l=m(e,"isVertical",3,!1),d=m(e,"isActiveLive",3,!1),a=m(e,"isMobile",3,!1),u=m(e,"squareBorders",3,!1),f=m(e,"videoEpisodes",19,()=>[]),v=m(e,"withWheelHandler",3,!1),p=m(e,"isInteractive",3,!1),y=m(e,"disabled",3,!1),w=m(e,"hideHandel",3,!1),$=m(e,"onPointerDown",3,Mo.noop),S=m(e,"onHandleMove",3,Mo.noop),T=m(e,"onPointerUp",3,Mo.noop),E=m(e,"onPointerEnter",3,Mo.noop),V=m(e,"onPointerMove",3,Mo.noop),k=m(e,"onPointerLeave",3,Mo.noop),I=m(e,"onMouseEnter",3,Mo.noop),R=m(e,"onMouseLeave",3,Mo.noop),Z=m(e,"onWheelUp",3,Mo.noop),D=m(e,"onWheelDown",3,Mo.noop),H=m(e,"onWheelLeft",3,Mo.noop),W=m(e,"onWheelRight",3,Mo.noop),X=m(e,"onDisabledClick",3,Mo.noop),j=m(e,"loadedProgress",3,0),ce=m(e,"filledProgress",3,0),re=m(e,"handleProgress",3,0),pe=m(e,"ariaLabel",3,""),xe=m(e,"ariaValueMin",3,void 0),fe=m(e,"ariaValueMax",3,void 0),ie=m(e,"ariaValueNow",3,void 0),Pe=m(e,"ariaValueText",3,""),ee=m(e,"onContextMenu",3,Mo.noop),N=At(),Ue=Y(void 0),_e=Y(!1),he=g(()=>{var le;return(le=fe())!=null?le:0}),ue=g(()=>{var le;return(0,Mo.isNonNullable)(f())&&((le=f()[f().length-1])==null?void 0:le.time)<r(he)}),me=g(()=>(0,Mo.isNonNullable)(f())&&f().length&&r(ue)&&r(he)?Ze(j()*100,ce()*100):[]);function ve(le){if(le.preventDefault(),i()&&O(Ue,i().getBoundingClientRect(),!0),y())return;let Ne=Le(le.clientX,le.clientY),Ke=Ie(le.clientX);E()(Ne,Ke,r(Ue).width)}function se(le){le.preventDefault(),!y()&&k()()}function Ge(){I()()}function et(){R()()}function J(le){y()||v()&&(le.preventDefault(),le.deltaY<0?Z()():le.deltaY>0?D()():le.deltaX>0?W()():H()())}function Le(le,Ne){return l()?Math.max(0,Math.min(1,(r(Ue).height-(Ne-r(Ue).top))/r(Ue).height)):Math.min(Math.max(le-r(Ue).x,0),r(Ue).width)/r(Ue).width}function Ie(le){return Math.min(Math.max(le-r(Ue).x,0),r(Ue).width)}function Ze(le,Ne){let Ke=N.features.episodesClustering&&!p()?N.episodeMinWidthPc:0,Ve=[],Xe=f()[0].time/r(he)*100,Be=0,tt=0;for(let it=1;it<f().length;it++)Be=f()[it].time/r(he)*100,Be-Xe>Ke&&(Ve.push({from:Xe,width:Math.max(0,Be-Xe),loadedWidth:Math.max(0,Math.min(Be,le)-Xe),filledWidth:Math.max(0,Math.min(Be,Ne)-Xe),interactive:f()[it-1].interactive,completed:f()[it-1].completed}),Xe=f()[it].time/r(he)*100,tt++);let Vt={from:Xe,width:Math.max(0,100-Xe),loadedWidth:Math.max(0,Math.min(le,100)-Xe),filledWidth:Math.max(0,Math.min(Ne,100)-Xe),interactive:f()[tt].interactive,completed:f()[tt].completed};100-Xe<Ke?(tt-=1,Ve[tt].width+=100-Xe,Ve[tt].loadedWidth+=Math.max(0,Math.min(le,100)-Xe),Ve[tt].filledWidth+=Math.max(0,Math.min(Ne,100)-Xe)):Ve[tt]=Vt;let Qt=f()[0].time;if(Qt!==0){let it=Qt/r(he)*100;Ve.unshift({from:0,width:it,loadedWidth:Math.min(it,le),filledWidth:Math.min(it,Ne)})}return Ve}function at(le){return Math.max(0,Math.min(100,le*100))}var bt=O2(),gt=ge(bt);{var Tt=le=>{var Ne=R2();let Ke;ki(Ne,21,()=>r(me),Ve=>Ve.from,(Ve,Xe)=>{var Be=ze(),tt=ge(Be);{var Vt=Qt=>{am(Qt,{get videoEpisode(){return r(Xe)},get disabled(){return y()}})};L(tt,Qt=>{r(Xe).interactive&&Qt(Vt)})}b(Ve,Be)}),h(Ne),B(Ve=>Ke=te(Ne,1,"interactive-icons svelte-1tpemng",null,Ke,Ve),[()=>({mobile:a(),hidden:a()&&!r(_e)})]),b(le,Ne)};L(gt,le=>{p()&&le(Tt)})}var Qe=P(gt,2);let Kt;Qe.__pointerdown=[P2,i,Ue,y,_e,Le,$],Qe.__pointermove=[A2,y,Le,Ie,V,Ue,_e,S],Qe.__pointerup=[M2,y,_e,Le,T],Qe.__click=[L2,y,X,Le],Qe.__contextmenu=[V2,Le,y,X,_e,ee];var ti=_(Qe);{var Yt=le=>{lm(le,{get videoEpisodes(){return r(me)},get disabled(){return y()},get isMobile(){return a()}})},jt=le=>{var Ne=N2(),Ke=_(Ne),Ve=P(Ke,2);let Xe;h(Ne),B((Be,tt,Vt)=>{st(Ke,Be),Xe=te(Ve,1,"filled svelte-1tpemng",null,Xe,tt),st(Ve,Vt)},[()=>`transform: translateX(${at(j())}%);`,()=>({"active-live":d()}),()=>`transform: translateX(${at(ce())}%);`]),b(le,Ne)};L(ti,le=>{r(me).length?le(Yt):le(jt,!1)})}var oe=P(ti,2);let qt;var $e=_(oe);let Ce;h(oe),h(Qe),rt(Qe,le=>i(le),()=>i()),B((le,Ne,Ke,Ve)=>{var Xe,Be;Kt=te(Qe,1,`slider ${(Xe=o())!=null?Xe:""}`,"svelte-1tpemng",Kt,le),Fe(Qe,"aria-label",pe()),Fe(Qe,"aria-valuemin",xe()),Fe(Qe,"aria-valuemax",fe()),Fe(Qe,"aria-valuenow",ie()),Fe(Qe,"aria-valuetext",Pe()),Fe(Qe,"data-testid",(Be=n())!=null?Be:null),qt=te(oe,1,"handleWrap svelte-1tpemng",null,qt,Ne),st(oe,Ke),Ce=te($e,1,"handle svelte-1tpemng",null,Ce,Ve)},[()=>({disabled:y(),"slider-dragging":r(_e),hidden:s(),"slider-vertical":l(),"no-handle":w(),square:u()}),()=>({hidden:w()}),()=>`transform: translateX(${at(re())}%);`,()=>({"active-live":d()})]),Ct("pointerenter",Qe,ve),Ct("pointerleave",Qe,se),Ct("mouseenter",Qe,Ge),Ct("mouseleave",Qe,et),Ct("wheel",Qe,J),b(t,bt),U()}ct(["pointerdown","pointermove","pointerup","click","contextmenu"]);var Yi=(t,e)=>ga[t]>=ga[e],q1=(t,e)=>ga[t]<ga[e],Ks=(t,e)=>ga[t]<=ga[e],G1=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var H2=A("<div><!></div>"),F2=A("<div><!> <!></div>"),U2={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 dm(t,e){var J,Le;F(e,!0),q(t,U2);let[i,o]=He(),n=()=>C(E,"$isAudioAvailable$",i),s=()=>C(v,"$muted$",i),l=()=>C(f,"$volume$",i),d=()=>C($,"$currentGridType$",i),a=ke(),u=At(),f=a.state.volume$,v=a.state.muted$,{setVolume:p,startVolumeChanging:y,stopVolumeChanging:w}=a.actions.internal,$=a.ui.currentGridType$,S=(J=a.callbacks)==null?void 0:J.onAudioDoesNotExistHint,T=(Le=a.callbacks)==null?void 0:Le.onAudioDisabledHint,E=a.state.isAudioAvailable$,V=a.state.isAudioDisabled,k=a.ui.t,I=Y(!1),R,Z=g(()=>e.isAds||n()),D=g(()=>!r(Z)||s()||l()===0),H=g(()=>Ks(d(),"s")),W=g(()=>r(H)?"":r(D)?!n()||V?k("tooltip_sound_unavailable"):k("tooltip_volume"):k("tooltip_volume_muted")),X=g(()=>r(D)?k("tooltip_volume"):k("tooltip_volume_muted")),j=g(()=>r(D)?0:l()),ce=!1,re=g(()=>e.isAds?!1:V?!T:n()?!1:!S);function pe(Ie){y(),p(Ie)}function xe(){Tu(a,l(),u.controls.volumeStepWheel)}function fe(){Eu(a,l(),u.controls.volumeStepWheel)}function ie(Ie){p(Ie)}function Pe(Ie){p(Ie),w()}function ee(){ce=!0}function N(){ce=!1,he()}function Ue(){clearTimeout(R),O(I,!0)}function _e(){he()}function he(){R=window.setTimeout(()=>{ce||O(I,!1)},u.controls.volumeBarTimeout)}function ue(Ie){Ie.preventDefault(),Ie.deltaY<0?xe():Ie.deltaY>0&&fe()}var me=F2();let ve;var se=_(me);ka(se,{get content(){return r(W)},translateY:-18,children:(Ie,Ze)=>{let at=g(()=>r(H)?"btn-volume-vertical":"btn-volume-horizontal");Ot(Ie,{className:"btn-full-opacity",get disabled(){return r(re)},get testId(){return r(at)},get ariaLabel(){return r(X)},get click(){return e.click},get ariaKeyShortCut(){return as.KeyM},role:"button",children:(bt,gt)=>{Ws(bt,{get volume(){return l()},get muted(){return r(D)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var Ge=P(se,2);{var et=Ie=>{var Ze=H2();let at;var bt=_(Ze);let gt=g(()=>r(H)?"volumeBar-slider-vertical":""),Tt=g(()=>r(H)&&!r(I)),Qe=g(()=>r(H)?ee:Kd.noop),Kt=g(()=>r(H)?N:Kd.noop),ti=g(()=>Math.round(r(j)*100)),Yt=g(()=>`${Math.round(r(j)*100)}%`),jt=g(()=>r(H)?"volume-slider-vertical":"volume-slider");Pa(bt,{get className(){return r(gt)},get isHidden(){return r(Tt)},get isVertical(){return r(H)},withWheelHandler:!0,onWheelUp:xe,onWheelDown:fe,onPointerDown:pe,onHandleMove:ie,onPointerUp:Pe,get onPointerEnter(){return r(Qe)},get onPointerLeave(){return r(Kt)},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 r(ti)},get ariaValueText(){return r(Yt)},get filledProgress(){return r(j)},get handleProgress(){return r(j)},get testId(){return r(jt)}}),h(Ze),B(oe=>at=te(Ze,1,"volumeBar svelte-1auih1j",null,at,oe),[()=>({"volumeBar-vertical":r(H)})]),b(Ie,Ze)};L(Ge,Ie=>{r(Z)&&Ie(et)})}h(me),B(Ie=>ve=te(me,1,"volumeBar-container svelte-1auih1j",null,ve,Ie),[()=>({vertical:r(H)})]),Ct("mouseenter",me,function(...Ie){var Ze;(Ze=r(H)?Ue:Kd.noop)==null||Ze.apply(this,Ie)}),Ct("mouseleave",me,function(...Ie){var Ze;(Ze=r(H)?_e:Kd.noop)==null||Ze.apply(this,Ie)}),Ct("wheel",me,ue),b(t,me),U(),o()}var Q1=require("@vkontakte/videoplayer-shared/es2015");var z2=Ee('<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 cm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=z2();Ae(o,()=>z({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 n=_(o);we(n,()=>{var s;return(s=e.children)!=null?s:de}),Te(),h(o),b(t,o)}var W2={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
173
- svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function um(t,e){q(t,W2);let i=m(e,"isFullscreen",8,!1),o=Vr(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");cm(t,{get"data-testid"(){return r(o)},fill:"var(--btn-color, #fff)"})}function qd(t,e){F(e,!0);let i=m(e,"isFullscreen",3,!1),o=m(e,"click",3,Q1.noop),n=ke(),s=n.ui.isFullscreenOpenedByKeyboard,l=n.ui.t,d=g(()=>i()?l("tooltip_fullscreen_on"):l("tooltip_fullscreen_off"));Ot(t,{testId:"btn-fullscreen",get ariaLabel(){return r(d)},click:u=>{let f=Fs(u);s.set(f),o()()},get ariaKeyShortCut(){return as.KeyF},role:"button",children:(u,f)=>{um(u,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),U()}var K2=Ee('<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 pm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=K2();Ae(o,()=>z({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 n=_(o);we(n,()=>{var s;return(s=e.children)!=null?s:de}),Te(),h(o),b(t,o)}var q2=Ee('<svg><!><path fill="var(--btn-color, #fff)" 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 fill="var(--btn-color, #fff)" 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 fill="var(--btn-color, #fff)" 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><path fill="var(--btn-color, #fff)" fill-rule="evenodd" 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" clip-rule="evenodd"></path></svg>');function fm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=q2();Ae(o,()=>z({xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"none","aria-hidden":"true",viewBox:"0 0 95 24",role:"img"},i));var n=_(o);we(n,()=>{var s;return(s=e.children)!=null?s:de}),Te(4),h(o),b(t,o)}var G2={hash:"svelte-1nhjml",code:`svg[data-testid="vk-video-logo-icon--short"] ._ru,
171
+ .slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {visibility:visible;opacity:1;transform:scale(1);}.slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {transform:scale(1.3);}.slider-vertical.svelte-1tpemng {position:absolute;left:-8px;top:-18px;transform-origin:0 0;transform:rotate(-90deg);}.slider.disabled.svelte-1tpemng {cursor:default;opacity:0.4;}`};function ka(t,e){U(e,!0),G(t,H2);let i=m(e,"ref",15,void 0),o=m(e,"className",3,""),n=m(e,"testId",3,void 0),s=m(e,"isHidden",3,!1),l=m(e,"isVertical",3,!1),d=m(e,"isActiveLive",3,!1),a=m(e,"isMobile",3,!1),u=m(e,"squareBorders",3,!1),f=m(e,"videoEpisodes",19,()=>[]),v=m(e,"withWheelHandler",3,!1),p=m(e,"isInteractive",3,!1),y=m(e,"disabled",3,!1),w=m(e,"hideHandel",3,!1),$=m(e,"onPointerDown",3,Vo.noop),C=m(e,"onHandleMove",3,Vo.noop),T=m(e,"onPointerUp",3,Vo.noop),I=m(e,"onPointerEnter",3,Vo.noop),M=m(e,"onPointerMove",3,Vo.noop),k=m(e,"onPointerLeave",3,Vo.noop),E=m(e,"onMouseEnter",3,Vo.noop),R=m(e,"onMouseLeave",3,Vo.noop),X=m(e,"onWheelUp",3,Vo.noop),D=m(e,"onWheelDown",3,Vo.noop),H=m(e,"onWheelLeft",3,Vo.noop),K=m(e,"onWheelRight",3,Vo.noop),J=m(e,"onDisabledClick",3,Vo.noop),j=m(e,"loadedProgress",3,0),ce=m(e,"filledProgress",3,0),oe=m(e,"handleProgress",3,0),pe=m(e,"ariaLabel",3,""),be=m(e,"ariaValueMin",3,void 0),fe=m(e,"ariaValueMax",3,void 0),ke=m(e,"ariaValueNow",3,void 0),ne=m(e,"ariaValueText",3,""),Le=m(e,"onContextMenu",3,Vo.noop),se=At(),N=Y(void 0),Be=Y(!1),ue=g(()=>{var de;return(de=fe())!=null?de:0}),ge=g(()=>{var de;return(0,Vo.isNonNullable)(f())&&((de=f()[f().length-1])==null?void 0:de.time)<r(ue)}),ee=g(()=>(0,Vo.isNonNullable)(f())&&f().length&&r(ge)&&r(ue)?We(j()*100,ce()*100):[]);function ve(de){if(de.preventDefault(),i()&&O(N,i().getBoundingClientRect(),!0),y())return;let Ne=Me(de.clientX,de.clientY),Fe=Ee(de.clientX);I()(Ne,Fe,r(N).width)}function De(de){de.preventDefault(),!y()&&k()()}function me(){E()()}function at(){R()()}function Z(de){y()||v()&&(de.preventDefault(),de.deltaY<0?X()():de.deltaY>0?D()():de.deltaX>0?K()():H()())}function Me(de,Ne){return l()?Math.max(0,Math.min(1,(r(N).height-(Ne-r(N).top))/r(N).height)):Math.min(Math.max(de-r(N).x,0),r(N).width)/r(N).width}function Ee(de){return Math.min(Math.max(de-r(N).x,0),r(N).width)}function We(de,Ne){let Fe=se.features.episodesClustering&&!p()?se.episodeMinWidthPc:0,Ve=[],Ke=f()[0].time/r(ue)*100,He=0,Xe=0;for(let ot=1;ot<f().length;ot++)He=f()[ot].time/r(ue)*100,He-Ke>Fe&&(Ve.push({from:Ke,width:Math.max(0,He-Ke),loadedWidth:Math.max(0,Math.min(He,de)-Ke),filledWidth:Math.max(0,Math.min(He,Ne)-Ke),interactive:f()[ot-1].interactive,completed:f()[ot-1].completed}),Ke=f()[ot].time/r(ue)*100,Xe++);let kt={from:Ke,width:Math.max(0,100-Ke),loadedWidth:Math.max(0,Math.min(de,100)-Ke),filledWidth:Math.max(0,Math.min(Ne,100)-Ke),interactive:f()[Xe].interactive,completed:f()[Xe].completed};100-Ke<Fe?(Xe-=1,Ve[Xe].width+=100-Ke,Ve[Xe].loadedWidth+=Math.max(0,Math.min(de,100)-Ke),Ve[Xe].filledWidth+=Math.max(0,Math.min(Ne,100)-Ke)):Ve[Xe]=kt;let Jt=f()[0].time;if(Jt!==0){let ot=Jt/r(ue)*100;Ve.unshift({from:0,width:ot,loadedWidth:Math.min(ot,de),filledWidth:Math.min(ot,Ne)})}return Ve}function tt(de){return Math.max(0,Math.min(100,de*100))}var bt=D2(),Mt=he(bt);{var mt=de=>{var Ne=O2();let Fe;Ei(Ne,21,()=>r(ee),Ve=>Ve.from,(Ve,Ke)=>{var He=qe(),Xe=he(He);{var kt=Jt=>{lm(Jt,{get videoEpisode(){return r(Ke)},get disabled(){return y()}})};V(Xe,Jt=>{r(Ke).interactive&&Jt(kt)})}b(Ve,He)}),h(Ne),B(Ve=>Fe=te(Ne,1,"interactive-icons svelte-1tpemng",null,Fe,Ve),[()=>({mobile:a(),hidden:a()&&!r(Be)})]),b(de,Ne)};V(Mt,de=>{p()&&de(mt)})}var Qe=P(Mt,2);let Gt;Qe.__pointerdown=[M2,i,N,y,Be,Me,$],Qe.__pointermove=[L2,y,Me,Ee,M,N,Be,C],Qe.__pointerup=[V2,y,Be,Me,T],Qe.__click=[R2,y,J,Me],Qe.__contextmenu=[N2,Me,y,J,Be,Le];var ii=_(Qe);{var Qt=de=>{dm(de,{get videoEpisodes(){return r(ee)},get disabled(){return y()},get isMobile(){return a()}})},Xt=de=>{var Ne=B2(),Fe=_(Ne),Ve=P(Fe,2);let Ke;h(Ne),B((He,Xe,kt)=>{rt(Fe,He),Ke=te(Ve,1,"filled svelte-1tpemng",null,Ke,Xe),rt(Ve,kt)},[()=>`transform: translateX(${tt(j())}%);`,()=>({"active-live":d()}),()=>`transform: translateX(${tt(ce())}%);`]),b(de,Ne)};V(ii,de=>{r(ee).length?de(Qt):de(Xt,!1)})}var le=P(ii,2);let Ot;var we=_(le);let _e;h(le),h(Qe),nt(Qe,de=>i(de),()=>i()),B((de,Ne,Fe,Ve)=>{var Ke,He;Gt=te(Qe,1,`slider ${(Ke=o())!=null?Ke:""}`,"svelte-1tpemng",Gt,de),ze(Qe,"aria-label",pe()),ze(Qe,"aria-valuemin",be()),ze(Qe,"aria-valuemax",fe()),ze(Qe,"aria-valuenow",ke()),ze(Qe,"aria-valuetext",ne()),ze(Qe,"data-testid",(He=n())!=null?He:null),Ot=te(le,1,"handleWrap svelte-1tpemng",null,Ot,Ne),rt(le,Fe),_e=te(we,1,"handle svelte-1tpemng",null,_e,Ve)},[()=>({disabled:y(),"slider-dragging":r(Be),hidden:s(),"slider-vertical":l(),"no-handle":w(),square:u()}),()=>({hidden:w()}),()=>`transform: translateX(${tt(oe())}%);`,()=>({"active-live":d()})]),It("pointerenter",Qe,ve),It("pointerleave",Qe,De),It("mouseenter",Qe,me),It("mouseleave",Qe,at),It("wheel",Qe,Z),b(t,bt),z()}ft(["pointerdown","pointermove","pointerup","click","contextmenu"]);var to=(t,e)=>va[t]>=va[e],q1=(t,e)=>va[t]<va[e],zs=(t,e)=>va[t]<=va[e],G1=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var U2=A("<div><!></div>"),z2=A("<div><!> <!></div>"),W2={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 cm(t,e){var Z,Me;U(e,!0),G(t,W2);let[i,o]=Ue(),n=()=>S(I,"$isAudioAvailable$",i),s=()=>S(v,"$muted$",i),l=()=>S(f,"$volume$",i),d=()=>S($,"$currentGridType$",i),a=Ie(),u=At(),f=a.state.volume$,v=a.state.muted$,{setVolume:p,startVolumeChanging:y,stopVolumeChanging:w}=a.actions.internal,$=a.ui.currentGridType$,C=(Z=a.callbacks)==null?void 0:Z.onAudioDoesNotExistHint,T=(Me=a.callbacks)==null?void 0:Me.onAudioDisabledHint,I=a.state.isAudioAvailable$,M=a.state.isAudioDisabled,k=a.ui.t,E=Y(!1),R,X=g(()=>e.isAds||n()),D=g(()=>!r(X)||s()||l()===0),H=g(()=>zs(d(),"s")),K=g(()=>r(H)?"":r(D)?!n()||M?k("tooltip_sound_unavailable"):k("tooltip_volume"):k("tooltip_volume_muted")),J=g(()=>r(D)?k("tooltip_volume"):k("tooltip_volume_muted")),j=g(()=>r(D)?0:l()),ce=!1,oe=g(()=>e.isAds?!1:M?!T:n()?!1:!C);function pe(Ee){y(),p(Ee)}function be(){Eu(a,l(),u.controls.volumeStepWheel)}function fe(){ku(a,l(),u.controls.volumeStepWheel)}function ke(Ee){p(Ee)}function ne(Ee){p(Ee),w()}function Le(){ce=!0}function se(){ce=!1,ue()}function N(){clearTimeout(R),O(E,!0)}function Be(){ue()}function ue(){R=window.setTimeout(()=>{ce||O(E,!1)},u.controls.volumeBarTimeout)}function ge(Ee){Ee.preventDefault(),Ee.deltaY<0?be():Ee.deltaY>0&&fe()}var ee=z2();let ve;var De=_(ee);Ea(De,{get content(){return r(K)},translateY:-18,children:(Ee,We)=>{let tt=g(()=>r(H)?"btn-volume-vertical":"btn-volume-horizontal");Ft(Ee,{className:"btn-full-opacity",get disabled(){return r(oe)},get testId(){return r(tt)},get ariaLabel(){return r(J)},get click(){return e.click},get ariaKeyShortCut(){return rs.KeyM},role:"button",children:(bt,Mt)=>{Us(bt,{get volume(){return l()},get muted(){return r(D)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var me=P(De,2);{var at=Ee=>{var We=U2();let tt;var bt=_(We);let Mt=g(()=>r(H)?"volumeBar-slider-vertical":""),mt=g(()=>r(H)&&!r(E)),Qe=g(()=>r(H)?Le:Fd.noop),Gt=g(()=>r(H)?se:Fd.noop),ii=g(()=>Math.round(r(j)*100)),Qt=g(()=>`${Math.round(r(j)*100)}%`),Xt=g(()=>r(H)?"volume-slider-vertical":"volume-slider");ka(bt,{get className(){return r(Mt)},get isHidden(){return r(mt)},get isVertical(){return r(H)},withWheelHandler:!0,onWheelUp:be,onWheelDown:fe,onPointerDown:pe,onHandleMove:ke,onPointerUp:ne,get onPointerEnter(){return r(Qe)},get onPointerLeave(){return r(Gt)},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 r(ii)},get ariaValueText(){return r(Qt)},get filledProgress(){return r(j)},get handleProgress(){return r(j)},get testId(){return r(Xt)}}),h(We),B(le=>tt=te(We,1,"volumeBar svelte-1auih1j",null,tt,le),[()=>({"volumeBar-vertical":r(H)})]),b(Ee,We)};V(me,Ee=>{r(X)&&Ee(at)})}h(ee),B(Ee=>ve=te(ee,1,"volumeBar-container svelte-1auih1j",null,ve,Ee),[()=>({vertical:r(H)})]),It("mouseenter",ee,function(...Ee){var We;(We=r(H)?N:Fd.noop)==null||We.apply(this,Ee)}),It("mouseleave",ee,function(...Ee){var We;(We=r(H)?Be:Fd.noop)==null||We.apply(this,Ee)}),It("wheel",ee,ge),b(t,ee),z(),o()}var Q1=require("@vkontakte/videoplayer-shared/es2015");var K2=Te('<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 um(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=K2();Pe(o,()=>W({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 n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Ce(),h(o),b(t,o)}var q2={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
172
+ svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function pm(t,e){G(t,q2);let i=m(e,"isFullscreen",8,!1),o=Nr(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");um(t,{get"data-testid"(){return r(o)},fill:"var(--btn-color, #fff)"})}function Ud(t,e){U(e,!0);let i=m(e,"isFullscreen",3,!1),o=m(e,"click",3,Q1.noop),n=Ie(),s=n.ui.isFullscreenOpenedByKeyboard,l=n.ui.t,d=g(()=>i()?l("tooltip_fullscreen_on"):l("tooltip_fullscreen_off"));Ft(t,{testId:"btn-fullscreen",get ariaLabel(){return r(d)},click:u=>{let f=Ds(u);s.set(f),o()()},get ariaKeyShortCut(){return rs.KeyF},role:"button",children:(u,f)=>{pm(u,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),z()}var G2=Te('<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 fm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=G2();Pe(o,()=>W({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 n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Ce(),h(o),b(t,o)}var Q2=Te('<svg><!><path fill="var(--btn-color, #fff)" 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 fill="var(--btn-color, #fff)" 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 fill="var(--btn-color, #fff)" 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><path fill="var(--btn-color, #fff)" fill-rule="evenodd" 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" clip-rule="evenodd"></path></svg>');function mm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=Q2();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"none","aria-hidden":"true",viewBox:"0 0 95 24",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Ce(4),h(o),b(t,o)}var j2={hash:"svelte-1nhjml",code:`svg[data-testid="vk-video-logo-icon--short"] ._ru,
174
173
  svg[data-testid="vk-video-logo-icon--short"] ._en,
175
174
  svg[data-testid="vk-video-logo-icon"] ._en,
176
- svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}`};function mm(t,e){q(t,G2);let i=m(e,"short",3,!1),o=m(e,"isCyrillic",3,!0),n="vk-video-logo-icon--short",s=21,l=g(()=>!o()&&!i()?91:i()?s:95),d=g(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?n:"vk-video-logo-icon"),a=g(()=>`0 0 ${r(l)+1} 24`);fm(t,{get width(){return r(l)},height:"24",get viewBox(){return r(a)},get"data-testid"(){return r(d)}})}function Gd(t,e){F(e,!0);let[i,o]=He(),n=()=>C(y,"$isMobile",i),s=()=>C(p,"$currentGridType$",i),l=()=>C($,"$isCyrillicRelatedInterface$",i),d=m(e,"ref",15,void 0),a=m(e,"logoClickable",3,!1),u=m(e,"targetUrl",3,""),f=At(),v=ke(),p=v.ui.currentGridType$,y=v.ui.isMobile,w=v.ui.t,$=v.isCyrillicRelatedInterface$,S=g(()=>f.logoType==="vk_video"?w("tooltip_vk_video_logo"):w("tooltip_vk_logo")),T=g(()=>f.logoType==="vk_video"||f.logoType==="vk_video_mobile"),E=g(()=>(n()||Ks(s(),"l"))&&r(T)),V=()=>{var R,Z;e.click(),(R=v.callbacks)!=null&&R.onLogoClicked?(Z=v.callbacks)==null||Z.onLogoClicked():u()&&window.open(u(),"_blank")},k=g(()=>!a()),I=g(()=>r(T)?"btn-vk-video-logo":"btn-vk-logo");Ot(t,{className:"btn-full-opacity",get disabled(){return r(k)},click:V,get testId(){return r(I)},get ariaLabel(){return r(S)},get ref(){return d()},set ref(R){d(R)},children:(R,Z)=>{var D=ze(),H=ge(D);{var W=j=>{mm(j,{get short(){return r(E)},get isCyrillic(){return l()}})},X=j=>{pm(j,{})};L(H,j=>{r(T)?j(W):j(X,!1)})}b(R,D)},$$slots:{default:!0}}),U(),o()}var j1=require("@vkontakte/videoplayer-core/es2015");var vm=require("@vkontakte/videoplayer-core/es2015"),j2=Ee('<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>'),Y2=Ee('<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>'),Z2={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) {
175
+ svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}`};function vm(t,e){G(t,j2);let i=m(e,"short",3,!1),o=m(e,"isCyrillic",3,!0),n="vk-video-logo-icon--short",s=21,l=g(()=>!o()&&!i()?91:i()?s:95),d=g(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?n:"vk-video-logo-icon"),a=g(()=>`0 0 ${r(l)+1} 24`);mm(t,{get width(){return r(l)},height:"24",get viewBox(){return r(a)},get"data-testid"(){return r(d)}})}function zd(t,e){U(e,!0);let[i,o]=Ue(),n=()=>S(y,"$isMobile",i),s=()=>S(p,"$currentGridType$",i),l=()=>S($,"$isCyrillicRelatedInterface$",i),d=m(e,"ref",15,void 0),a=m(e,"logoClickable",3,!1),u=m(e,"targetUrl",3,""),f=At(),v=Ie(),p=v.ui.currentGridType$,y=v.ui.isMobile,w=v.ui.t,$=v.isCyrillicRelatedInterface$,C=g(()=>f.logoType==="vk_video"?w("tooltip_vk_video_logo"):w("tooltip_vk_logo")),T=g(()=>f.logoType==="vk_video"||f.logoType==="vk_video_mobile"),I=g(()=>(n()||zs(s(),"l"))&&r(T)),M=()=>{var R,X;e.click(),(R=v.callbacks)!=null&&R.onLogoClicked?(X=v.callbacks)==null||X.onLogoClicked():u()&&window.open(u(),"_blank")},k=g(()=>!a()),E=g(()=>r(T)?"btn-vk-video-logo":"btn-vk-logo");Ft(t,{className:"btn-full-opacity",get disabled(){return r(k)},click:M,get testId(){return r(E)},get ariaLabel(){return r(C)},get ref(){return d()},set ref(R){d(R)},children:(R,X)=>{var D=qe(),H=he(D);{var K=j=>{vm(j,{get short(){return r(I)},get isCyrillic(){return l()}})},J=j=>{fm(j,{})};V(H,j=>{r(T)?j(K):j(J,!1)})}b(R,D)},$$slots:{default:!0}}),z(),o()}var j1=require("@vkontakte/videoplayer-core/es2015");var gm=require("@vkontakte/videoplayer-core/es2015"),Z2=Te('<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>'),X2=Te('<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>'),J2={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) {
177
176
  animation-name: svelte-8z1bf5-wave1;}.connecting.svelte-8z1bf5 .wave2:where(.svelte-8z1bf5) {
178
177
  animation-name: svelte-8z1bf5-wave2;}.connecting.svelte-8z1bf5 .wave3:where(.svelte-8z1bf5) {
179
178
  animation-name: svelte-8z1bf5-wave3;}
@@ -221,9 +220,9 @@ Try switching the\xA0quality to\xA0Auto.`},y1=bb;var xs=new Map;xs.set(hl.Interf
221
220
  100% {
222
221
  opacity: 1;
223
222
  }
224
- }`};function gm(t,e){F(e,!0),q(t,Z2);let i=m(e,"isMobile",3,!1),o=g(()=>e.iconState===vm.ChromecastState.CONNECTED),n=g(()=>e.iconState===vm.ChromecastState.CONNECTING);var s=ze(),l=ge(s);{var d=u=>{var f=j2(),v=_(f),p=_(v),y=_(p);Te(),h(p);var w=P(p);Te(),h(v);var $=P(v),S=_($),T=_(S);h(S),Te(),h($),h(f),B(()=>{Fe(y,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),Fe(w,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),Fe(T,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)")}),b(u,f)},a=u=>{var f=Y2();let v;var p=_(f),y=P(_(p),5);let w;h(p),h(f),B(($,S)=>{v=te(f,0,"svelte-8z1bf5",null,v,$),w=te(y,0,"svelte-8z1bf5",null,w,S)},[()=>({connecting:r(n)}),()=>({hidden:!r(o)})]),b(u,f)};L(l,u=>{i()?u(d):u(a,!1)})}b(t,s),U()}var Y1=require("@vkontakte/videoplayer-shared/es2015");function Qd(t,e){F(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"click",3,Y1.noop),l=ke().ui.t,d=g(()=>e.state===j1.ChromecastState.CONNECTED?l("tooltip_chromecast_on"):l("tooltip_chromecast_off"));Ot(t,{get ariaLabel(){return r(d)},get click(){return n()},testId:"btn-chromecast",get ref(){return i()},set ref(a){i(a)},children:(a,u)=>{gm(a,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),U()}var X2=A('<div class="tooltip-wrapper svelte-5ygsa2"><div><!></div></div>'),J2={hash:"svelte-5ygsa2",code:'.tooltip-wrapper.svelte-5ygsa2 {position:relative;display:block;}.tooltip.svelte-5ygsa2 {position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;transform:translateX(-50%);}.pointer.svelte-5ygsa2: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-5ygsa2 {opacity:1;visibility:visible;}'};function hm(t,e){q(t,J2);let i=m(e,"active",3,!1),o=m(e,"pointer",3,!1),n=m(e,"translateXPx",3,0),s=m(e,"translateYPx",3,0),l=m(e,"leftOffset",3,0),d=m(e,"rightOffset",3,0),a=Y(void 0),u=Y(void 0);function f(S){if(!r(u))return 0;let{width:T}=r(u).getBoundingClientRect(),E=T/2;return S<E?E+l():S>e.containerWidth-E?e.containerWidth-E-d():S}let v=g(()=>f(n()));var p=X2(),y=_(p);let w;var $=_(y);we($,()=>{var S;return(S=e.children)!=null?S:de}),h(y),rt(y,S=>O(u,S),()=>r(u)),h(p),rt(p,S=>O(a,S),()=>r(a)),B(S=>{st(p,`transform: translate(${r(v)}px, ${s()}px);`),w=te(y,1,"tooltip svelte-5ygsa2",null,w,S),st(y,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),b(t,p)}var Pu=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var Z1=t=>!!(Math.round(Math.abs(t)/90)%2),X1=t=>Math.abs(t)/90%4===1;var ey=A('<div class="preview svelte-1wqg760"></div>'),ty=A('<div class="time svelte-1wqg760"> </div>'),iy=A('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),oy={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 _m(t,e){F(e,!0),q(t,oy);let[i,o]=He(),n=()=>C(w,"$rotateAlpha",i),s=()=>C($,"$playerSize",i),l={MOBILE:150,DESKTOP:278},d=m(e,"time",3,""),a=m(e,"isMobile",3,!1),u=m(e,"videoEpisodes",19,()=>[]),f=m(e,"progress",3,0),v=m(e,"duration",3,0),p=m(e,"isInteractive",3,!1),y=ke(),w=y.ui.rotateAlpha,$=y.ui.playerSize,S=Y(0),T=Y(0),E=Y(""),V=Y(0),k=Y(0),I=Y(0),R=Y(0),Z=g(()=>Pu(f(),v(),u())),D=g(()=>Z1(n())),H=g(()=>X1(n())),W=g(ce),X=g(()=>(r(H)?1:-1)*(r(S)/2-r(T)/2)),j=g(()=>r(X)*-1);We(()=>{(me=>{O(S,me.width,!0),O(T,me.height,!0)})(pe())}),We(()=>{(me=>{O(E,me.imgSrc,!0),O(V,me.imgWidth,!0),O(k,me.imgHeight,!0),O(I,me.imgOffsetX,!0),O(R,me.imgOffsetY,!0)})(xe(f()))});function ce(){var Ge;let me=a()?l.MOBILE:l.DESKTOP,{isVertical:ve}=re(),se=30;return(Ge=r(Z))!=null&&Ge.text&&(se+=16),(ve||r(D))&&(se+=18,se+=50),Math.min(Math.max(s().height-se,0),me)}function re(){let me=e.previewThumbsData.frameWidth,ve=e.previewThumbsData.frameHeight,se=ve>me;return{width:me,height:ve,isHorizontal:!se,isVertical:se}}function pe(){let{height:me,isHorizontal:ve,isVertical:se,width:Ge}=re();return ve&&(me=me/Ge*r(W),Ge=r(W)),se&&(Ge=Ge/me*r(W),me=r(W)),{width:Ge,height:me}}function xe(me){let ve;e.previewThumbsData.isUV?ve=Math.floor(v()*me/e.previewThumbsData.frequency):ve=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*me)));let se=Math.floor(ve/e.previewThumbsData.countPerImage),Ge=Math.floor(ve%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),et=ve%e.previewThumbsData.countPerRow,J=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&se===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(J=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&J++);let Le=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&se===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(Le=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Ie=r(S)*Le,Ze=r(T)*J,at=-et*r(S),bt=-Ge*r(T);return{imgSrc:e.previewThumbsData.links[se],imgWidth:Ie,imgHeight:Ze,imgOffsetX:at,imgOffsetY:bt}}var fe=iy();let ie;var Pe=_(fe);{var ee=me=>{var ve=ey();B(()=>st(ve,`width: ${r(S)}px; height: ${r(T)}px; background-image: url(${r(E)}); background-size: ${r(V)}px ${r(k)}px; background-position: ${r(I)}px ${r(R)}px;
225
- transform: rotate(${n()}deg) ${r(D)?`translate(${r(X)}px, ${r(j)}px)`:""};
226
- `)),b(me,ve)};L(Pe,me=>{r(E)&&me(ee)})}var N=P(Pe,2),Ue=_(N);{var _e=me=>{var ve=ze(),se=ge(ve);{var Ge=J=>{var Le=rs();B(Ie=>ye(Le,Ie),[()=>K("tooltip_episode_unfinished")]),b(J,Le)},et=J=>{var Le=rs();B(()=>ye(Le,r(Z).text||"")),b(J,Le)};L(se,J=>{p()&&r(Z).completed===!1?J(Ge):J(et,!1)})}b(me,ve)};L(Ue,me=>{r(Z)&&me(_e)})}h(N);var he=P(N,2);{var ue=me=>{var ve=ty(),se=_(ve,!0);h(ve),B(()=>ye(se,d())),b(me,ve)};L(he,me=>{p()||me(ue)})}h(fe),B(me=>{ie=te(fe,1,"timeline-preview svelte-1wqg760",null,ie,me),st(fe,`width: ${r(D)?r(T):r(S)}px;`)},[()=>({mobile:a()})]),b(t,fe),U(),o()}var ny=A('<span class="time svelte-1jr6obn"> </span>'),ry=A("<!> <!>",1),sy={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 bm(t,e){var le,Ne,Ke,Ve,Xe;F(e,!0),q(t,sy);let[i,o]=He(),n=()=>C(X,"$interactiveEpisodes$",i),s=()=>C(I,"$duration$",i),l=()=>C(k,"$position$",i),d=()=>C(re,"$isInteractiveExpectation$",i),a=()=>C(ce,"$isInteractiveTime$",i),u=()=>C(R,"$isLive$",i),f=()=>C(D,"$isMobile",i),v=()=>C(Z,"$isActiveLive$",i),p=()=>C(V,"$bufferedProgress$",i),y=()=>C(fe,"$disabledControls$",i),w=m(e,"showTimeline",3,!1),$=m(e,"withEpisodes",3,!0),S=m(e,"ref",15,void 0),T=ke(),E=At(),V=T.state.bufferedProgress$,k=T.state.positionWithScrubbing$,I=T.state.duration$,R=T.state.isLive$,Z=T.state.isActiveLive$,D=T.ui.isMobile,H=E.features.episodes&&$()?T.actions.internal.getVideoEpisodes():void 0,W=T.actions.internal.getPreviewThumbsData(),X=T.state.interactiveEpisodes$,j=T.state.isInteractive,ce=T.state.isInteractiveTime$,re=T.state.isInteractiveExpectation$,pe=T.actions.internal.correctSeekTimeToInteractive,xe=(le=T.callbacks)==null?void 0:le.onDisabledTimelineClick,fe=T.ui.controls.disabledControls$,ie=(Ke=(Ne=T.callbacks)==null?void 0:Ne.uiInfo)==null?void 0:Ke.onTimelineMouseEnter,Pe=(Xe=(Ve=T.callbacks)==null?void 0:Ve.uiInfo)==null?void 0:Xe.onTimelineMouseLeave,ee=T.ui.t,N=E.features.interactiveResponsiveUi,Ue=g(()=>j?n():H),_e=g(()=>Sn(s())),he=g(()=>Sn(l())),ue=g(()=>l()/s()),me=g(()=>d()||a()),ve=Y(!1),se=Y(""),Ge=Y(0),et=Y(0),J=Y(0),Le=g(()=>({containerWidth:r(et),translateXPx:r(Ge),translateYPx:j&&W?-36:-16,active:r(ve)&&w()&&!r(me)&&!N,pointer:!E.features.timelinePreview||!W||u()})),Ie=ee("aria_timeline"),Ze=g(()=>ee("aria_timeline_value",{position:r(he),duration:r(_e)}));function at(Be){return!pe||!j?Be:pe(Be*s())/s()}function bt(Be){T.actions.internal.startScrubbing(at(Be))}function gt(Be){a()||T.actions.internal.progressScrubbing(at(Be))}function Tt(Be){T.actions.internal.completeScrubbing(at(Be)),O(ve,!1)}function Qe(Be,tt,Vt){Yt(Be,tt,Vt),O(ve,!0)}function Kt(Be,tt,Vt){Yt(Be,tt,Vt),O(ve,!0)}function ti(){O(ve,!1)}function Yt(Be,tt,Vt){O(J,at(Be),!0),O(Ge,tt,!0),Vt&&O(et,Vt,!0),O(se,jt(Be),!0)}function jt(Be){let tt=Sn((u()?1-Be:Be)*s());return u()?`-${tt}`:tt}var oe=ry(),qt=ge(oe);hm(qt,ys(()=>r(Le),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(Be,tt)=>{var Vt=ze(),Qt=ge(Vt);{var it=mi=>{_m(mi,{get time(){return r(se)},get isMobile(){return f()},get videoEpisodes(){return r(Ue)},get previewThumbsData(){return W},get progress(){return r(J)},get duration(){return s()},get isInteractive(){return j}})},yi=mi=>{var nt=ny(),ni=_(nt,!0);h(nt),B(()=>ye(ni,r(se))),b(mi,nt)};L(Qt,mi=>{E.features.timelinePreview&&W&&!u()?mi(it):mi(yi,!1)})}b(Be,Vt)},$$slots:{default:!0}}));var $e=P(qt,2);let Ce=g(()=>y().has("TIMELINE"));Pa($e,{className:"timeline-slider",get isActiveLive(){return v()},get isMobile(){return f()},get ariaLabel(){return Ie},ariaValueMin:0,get ariaValueMax(){return s()},get ariaValueNow(){return l()},get ariaValueText(){return r(Ze)},get loadedProgress(){return p()},get filledProgress(){return r(ue)},get handleProgress(){return r(ue)},get videoEpisodes(){return r(Ue)},onPointerDown:bt,onHandleMove:gt,onPointerMove:Kt,onPointerUp:Tt,onPointerEnter:Qe,onPointerLeave:ti,get onMouseEnter(){return ie},get onMouseLeave(){return Pe},get onDisabledClick(){return xe},get isInteractive(){return j},get disabled(){return r(Ce)},get hideHandel(){return a()},testId:"progress_bar",onContextMenu:Tt,get ref(){return S()},set ref(Be){S(Be)}}),b(t,oe),U(),o()}var ay={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 jd(t,e){F(e,!0),q(t,ay);let[i,o]=He(),n=()=>C(a,"$isMobile",i),s=m(e,"position",3,0),l=m(e,"duration",3,0),d=ke(),a=d.ui.isMobile,u=d.ui.t,f=g(()=>Sn(l())),v=g(()=>Sn(s())),p=g(()=>s()/l()),y=g(()=>u("aria_timeline_value",{position:r(v),duration:r(f)})),w=g(()=>Math.round(r(p)*100));Pa(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return l()},get ariaValueNow(){return r(w)},get ariaValueText(){return r(y)},get filledProgress(){return r(p)},hideHandel:!0,get squareBorders(){return n()}}),U(),o()}var ly=A("<div><!></div>"),dy=A("<div></div>"),cy={hash:"svelte-41cp6d",code:".timeline.svelte-41cp6d {position:relative;pointer-events:all;display:flex;align-items:center;bottom:0;width:100%;min-width:86px;padding:3px var(--timeline-padding-horizontal) 4px;box-sizing:border-box;}.timeline.mobile.svelte-41cp6d {height:16px;padding:6px 12px 7px;margin-top:6px;}.withoutPadding.svelte-41cp6d {padding:0;}.timeline-stub.svelte-41cp6d {width:100%;min-width:20px;}.timeline-stub.mobile.svelte-41cp6d {height:8px;}"};function Aa(t,e){F(e,!0),q(t,cy);let[i,o]=He(),n=()=>C(S,"$isLive$",i),s=()=>C(V,"$isMobile",i),l=()=>C(k,"$disabled",i),d=()=>C(E,"$adPosition",i),a=()=>C(T,"$adDuration",i),u=m(e,"isAds",3,!1),f=m(e,"isHidden",3,!1),v=m(e,"timelineNotAvailable",3,!1),p=m(e,"needPadding",3,!0),y=m(e,"ref",15,void 0),w=ke(),$=At(),S=w.state.isLive$,T=w.ads.duration,E=w.ads.position,V=w.ui.isMobile,k=ae(!1),I=g(()=>!v()&&(!n()||n()&&e.canRewindLive&&e.isRewindableLive||u()));var R=ze(),Z=ge(R);{var D=W=>{var X=ly();let j;var ce=_(X);{var re=xe=>{jd(xe,{get position(){return d()},get duration(){return a()}})},pe=xe=>{bm(xe,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return r(I)},get withEpisodes(){return e.withEpisodes},get ref(){return y()},set ref(fe){y(fe)}})};L(ce,xe=>{u()?xe(re):xe(pe,!1)})}h(X),$s(X,()=>yl(f()&&$.features.usePerformanceFix,k,$.disableInvisibleComponentsTimeout)),B(xe=>j=te(X,1,"timeline svelte-41cp6d",null,j,xe),[()=>({withoutPadding:!p(),mobile:s(),"out-of-flow":l()})]),b(W,X)},H=W=>{var X=dy();let j;B(ce=>j=te(X,1,"timeline-stub svelte-41cp6d",null,j,ce),[()=>({mobile:s()})]),b(W,X)};L(Z,W=>{r(I)?W(D):W(H,!1)})}b(t,R),U(),o()}var J1=require("@vkontakte/videoplayer-shared/es2015");var uy=Ee('<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 $m(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=uy();Ae(o,()=>z({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 n=_(o);we(n,()=>{var s;return(s=e.children)!=null?s:de}),Te(3),h(o),b(t,o)}var py=Ee('<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 ym(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=py();Ae(o,()=>z({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 n=_(o);we(n,()=>{var s;return(s=e.children)!=null?s:de}),Te(),h(o),b(t,o)}var fy=A('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),my=A('<span class="text svelte-1yhs2ga"> </span>'),vy=A('<span class="text count svelte-1yhs2ga"> </span>'),gy=A("<!> <!>",1),hy={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 Yd(t,e){var re,pe,xe;F(e,!0),q(t,hy);let[i,o]=He(),n=()=>C(w,"$currentGridType$",i),s=()=>C($,"$openedByKeyboard$",i),l=()=>C(S,"$panelOpened$",i),d=()=>C(T,"$isMobile",i),a=m(e,"position",3,0),u=m(e,"duration",3,0),f=m(e,"timeCodes",19,()=>[]),v=ke(),p=(pe=(re=v.callbacks)==null?void 0:re.onEpisodeChanged)!=null?pe:J1.noop,y=!!((xe=v.callbacks)!=null&&xe.onEpisodeClicked),w=v.ui.currentGridType$,$=v.ui.episodes.openedByKeyboard$,S=v.ui.episodes.panelOpened$,T=v.ui.isMobile,E=v.ui.t,V=Y(void 0),k=fe=>{var Pe,ee,N;if(!!((Pe=v.callbacks)!=null&&Pe.onEpisodeClicked)){let Ue=Fs(fe);$.set(Ue),S.set(!0),(N=(ee=v.callbacks)==null?void 0:ee.onEpisodeClicked)==null||N.call(ee,Ue)}},I=Y(null),R=g(()=>a()/u());We(()=>{var ie;let fe=Pu(r(R),u(),f());fe?((ie=r(I))==null?void 0:ie.time)!==fe.time&&(p(fe),O(I,fe,!0)):O(I,null)});let Z=g(()=>{var fe;return((fe=r(I))==null?void 0:fe.text)||""}),D=g(()=>Yi(n(),"xl")?"FULL":Yi(n(),"m")&&q1(n(),"xl")?"COUNT":"SHORT"),H=g(()=>`${E("tooltip_episodes")}: ${r(Z)}`),W=(fe,ie,Pe)=>xt(null,null,function*(){yield ko(),(fe==null?void 0:fe.getAttribute("aria-expanded"))==="false"&&ie&&!Pe&&wt(()=>{$.set(!1),fe.focus()})});We(()=>{W(r(V),s(),l())});var X=ze(),j=ge(X);{var ce=fe=>{let ie=g(()=>d()?"px-0":""),Pe=g(()=>!y);Ot(fe,{get className(){var ee;return`w-max btn-full-opacity btn-jc-l ${(ee=r(ie))!=null?ee:""}`},testId:"btn-episodes",click:k,get disabled(){return r(Pe)},get ariaExpanded(){return l()},get ariaLabel(){return r(H)},get ref(){return r(V)},set ref(ee){O(V,ee,!0)},children:(ee,N)=>{var Ue=ze(),_e=ge(Ue);{var he=me=>{var ve=fy(),se=ge(ve),Ge=_(se,!0);h(se);var et=P(se,2),J=_(et);ym(J,{}),h(et),B(()=>ye(Ge,r(Z))),b(me,ve)},ue=me=>{var ve=gy(),se=ge(ve);$m(se,{});var Ge=P(se,2);{var et=Le=>{var Ie=my(),Ze=_(Ie,!0);h(Ie),B(()=>ye(Ze,r(Z))),b(Le,Ie)},J=(Le,Ie)=>{{var Ze=at=>{var bt=vy(),gt=_(bt,!0);h(bt),B(()=>ye(gt,f().length)),b(at,bt)};L(Le,at=>{r(D)==="COUNT"&&at(Ze)},Ie)}};L(Ge,Le=>{r(D)==="FULL"?Le(et):Le(J,!1)})}b(me,ve)};L(_e,me=>{d()?me(he):me(ue,!1)})}b(ee,Ue)},$$slots:{default:!0}})};L(j,fe=>{r(I)&&fe(ce)})}b(t,X),U(),o()}var Nm=require("@vkontakte/videoplayer-shared/es2015");var ai=require("@vkontakte/videoplayer-core/es2015"),ft=require("@vkontakte/videoplayer-shared/es2015"),cs=require("@vkontakte/videoplayer-statistics/es2015");var Ye=require("@vkontakte/videoplayer-shared/es2015"),Zi=require("@vkontakte/videoplayer-shared/es2015");var e0=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var _y="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",Au=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 Zi.Subject,loadStarted$:new Zi.Subject,loadEnded$:new Zi.Subject,loadError$:new Zi.Subject,ready$:new Zi.Subject,slotRequested$:new Zi.Subject,started$:new Zi.Subject,timeRemained$:new Zi.Subject,paused$:new Zi.Subject,resumed$:new Zi.Subject,ended$:new Zi.Subject,empty$:new Zi.Subject,skipped$:new Zi.Subject,clicked$:new Zi.Subject,closed$:new Zi.Subject,error$:new Zi.Subject};this.loadAdman=e=>(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[(0,Ye.now)()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let s=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[(0,Ye.now)()]}),i(),this.events.loadEnded$.next()):(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[(0,Ye.now)()]}),o())};(0,Zi.addScript)(_y,e,this.loadTimeout).then(()=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[(0,Ye.now)()]}),window.AdmanHTML?(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[(0,Ye.now)()]}),i(),this.events.loadEnded$.next()):(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[(0,Ye.now)()]}),window.admanAsyncInit=s,n=window.setTimeout(s,this.initTimeout))}).catch(l=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(l)],numbers:[(0,Ye.now)()]}),o(),clearTimeout(n)})});this.loadAdmanNPM=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let s=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[(0,Ye.now)()]}),i(),this.events.loadEnded$.next()):(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[(0,Ye.now)()]}),o())},l=()=>{d=!0,o()},d=!1,a=window.setTimeout(()=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[(0,Ye.now)()]}),l()},this.loadTimeout);e.addEventListener("abort",l),e.aborted&&(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[(0,Ye.now)()]}),l()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[(0,Ye.now)()]}),!d&&(window.AdmanHTML?(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[(0,Ye.now)()]}),i(),this.events.loadEnded$.next()):(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[(0,Ye.now)()]}),window.admanAsyncInit=s,n=window.setTimeout(s,this.initTimeout)))},l).finally(()=>{clearTimeout(n),clearTimeout(a),e.removeEventListener("abort",l)})});this.onAdsReady=()=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[(0,Ye.now)()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[(0,Ye.now)(),i.bannerID]}),this.adsState&&this.playerState&&this.actions?(this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(i)}`}),this.events.started$.next(e),i.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"})),this.adsState.duration.set(i.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(i.allowClose),this.adsState.secondsToWatchBeforeSkip.set(i.allowCloseDelay),this.startWatchDog()):this.onAdError("Started callback failed: Adman is not initialized")};this.onAdTimeRemained=e=>{this.adsState?(this.adsState.position.set(e.currentTime),this.events.timeRemained$.next(e),this.startWatchDog()):this.onAdError("TimeRemained callback failed: Adman state is not initialized")};this.onAdPaused=()=>{var e;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.stopWatchDog(),this.adsState?(this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")):this.onAdError("Paused callback failed: Adman state is not initialized")};this.onAdPlayed=()=>{var e;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.startWatchDog(),this.adsState?(this.log({message:"ad played"}),this.adsState.playbackState.set("playing")):this.onAdError("Player callback failed: Adman is not initialized")};this.onAdMidrollPoint=()=>{if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[(0,Ye.now)()]}),this.adman&&this.actions){this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch(e){this.onAdError("could not start midroll")}}else this.onAdError("Midroll callback failed: Adman is not initialized")};this.onAdSkipped=()=>{var e;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.log({message:"ad completed"}),this.currentAdSection?this.events.ended$.next(this.currentAdSection):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{var e,i;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.log({message:"ad clicked"}),(i=this.videoElement)==null||i.pause(),this.currentAdSection&&this.events.clicked$.next(this.currentAdSection),this.stopWatchDog()};this.onAdError=(e="ad error")=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[(0,Ye.now)()]}),this.log({message:e}),this.events.error$.next(e),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[(0,Ye.now)()]}),this.loadTimeout=i.loadTimeout,this.initTimeout=i.initTimeout,this.runtimeTimeout=i.runtimeTimeout,this.useAdmanFromNPM=i.useAdmanFromNPM,this.volumeMultiplier=Math.max(0,Math.min(i.volumeMultiplier,1)),this.isVsidOriginal=i.isVsidOriginal,this.usePuid=i.usePuid}init(e,i,o){this.actions=e,this.adsState=i,this.playerState=o}onAdmanLoadingError(){this.onAdError("adman loading error")}initAdman(e){var V;if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[(0,Ye.now)(),e.slotId]}),this.adman)return;this.events.init$.next(e.slotId),this.startWatchDog();let{width:i,height:o,isFullscreen:n,isAutoplay:s,adsContainer:l,adsVideoElement:d,slotId:a,params:u={},duration:f,previewParam:v}=e,p,y=this.playerState&&Se(this.playerState.vsid);y&&(this.isVsidOriginal?p=y:p=parseInt(y,36));let{isEmbed:w,immediateOrigin:$}=(0,Ye.detectEmbed)(),S=(V=w?$:window.location.href)!=null?V:window.location.href,T=z(Bt(z(Bt(z({},u),{dl:encodeURIComponent(S),autoplay:s?1:0,player_width:i,player_height:o,preview:v}),p?{request_id:p}:{}),{duration:f}),this.usePuid?{puid10:e0(i,o),puid11:n?0:1}:{});v||delete T.preview;let E={slot:a,wrapper:l,videoEl:d,videoQuality:o,params:T,browser:{mobile:!1}};try{let k=new window.AdmanHTML;k.setDebug(!1),k.onReady(this.onAdsReady),k.onStarted(this.onAdStarted),k.onPlayed(this.onAdPlayed),k.onPaused(this.onAdPaused),k.adMidrollPoint(this.onAdMidrollPoint),k.onClosed(this.onAdClosed),k.onSkipped(this.onAdSkipped),k.onClicked(this.onAdClicked),k.onTimeRemained(this.onAdTimeRemained),k.onCompleted(this.onAdCompleted),k.onError(this.onAdError),k.init(E),this.adman=k,this.videoElement=d,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(E)}`})}catch(k){Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(k)],numbers:[(0,Ye.now)()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,n,s;if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[(0,Ye.now)()]}),this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}let i=this.currentAdSection==="postroll";if(this.actions){if(this.adsState&&this.playerState)this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.log({message:`switch to video, isPostroll: ${i}`}),i&&(this.adsState.postrollPassed.set(!0),this.log({message:"postroll passed"}));else{let l="Switch to video: Adman state was not updated correctly";this.log({message:l}),this.events.error$.next(l)}(s=(n=this.actions).switchFromAdsToVideo)==null||s.call(n,!i)}}togglePlay(){var e;if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.adsState){this.log({message:"toggle play"});let i=Se(this.adsState.playbackState);i==="playing"?this.pause():i==="paused"&&this.play()}else this.onAdError("Can not toggle play: Adman state is not initialized")}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){let i=e*this.volumeMultiplier;if(this.log({message:`set volume ${i}`}),this.adman)try{this.adman.setVolume(i)}catch(o){this.onAdError("could not set ad volume")}this.videoElement&&(this.videoElement.volume=i)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch(i){this.onAdError("could not set ad fullscreen")}}startPreroll(){if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[(0,Ye.now)()]}),this.adman){if(!this.isDestroyed){this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.startWatchDog();try{this.adman.start("preroll")}catch(e){this.onAdError("could not start preroll")}}}else this.onAdError("Can not start preroll: Adman is not initialized")}startPostroll(){var e;if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch(i){this.onAdError("could not start postroll")}}else this.onAdError("Can not start postroll: Adman is not initialized")}startWatchDog(){var i;this.watchDogTimeout&&this.stopWatchDog(),((i=this.adsState)!=null&&i.playbackState?Se(this.adsState.playbackState):void 0)!=="inactive"&&(this.watchDogTimeout=window.setTimeout(()=>this.onAdError("Watchdog timeout"),this.runtimeTimeout))}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){var e;if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.adman){this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch(i){this.onAdError("could not resume ad")}}else this.onAdError("Can not play: Adman is not initialized")}pause(){var e;if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch(i){this.onAdError("could not pause ad")}}else this.onAdError("Can not pause: Adman is not initialized")}skip(){var e;if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch(i){this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}setPosition(e,i){var o;(o=this.adman)==null||o.setPosition(Math.floor(e),Math.floor(i))}destroy(){var e,i,o,n,s,l,d,a,u,f,v,p;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[(0,Ye.now)()]}),this.log({message:"destroy"}),this.stopWatchDog(),(e=this.adman)==null||e.onReady(void 0),(i=this.adman)==null||i.onStarted(void 0),(o=this.adman)==null||o.onPlayed(void 0),(n=this.adman)==null||n.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,Zi.clearVideoElement)(this.videoElement),this.isDestroyed=!0}};var t0=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 xm=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e,i){let o=[],n=e.split(this.twoLinesRegExp);for(let s of n){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 Mu,{startTime:f,endTime:v}=u.parse(a);l.startTime=f,l.endTime=v}else if(a.trim()!==""){let u=new wm,{texts:f}=u.parse(a);l.texts=[...l.texts,...f]}(l.startTime||l.endTime)&&l.texts.length>0&&o.push(l)}return o}},Mu=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",n="0"){let s=Number(e)*60*60,l=Number(i)*60,d=Number(o),a=+`0.${n}`;return s+l+d+a}},wm=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},n=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 Mu;for(let l of n)s.isTime(l)?i.texts.push({type:"timestamp",value:s.parseTime(l)}):i.texts.push({type:"text",value:l});return i}},i0=xm;var Vu=require("@vkontakte/videoplayer-shared/es2015"),Ma,Ai,Sm=0,Cm=!1,o0="",n0=(t,e=0,i=0)=>t<e&&t<i,Lu=(t,e=0,i=0)=>t>=e&&t<=i,by=(t,e=0,i=0)=>t>e&&t>i,r0=(t,e,i,o=!1)=>{var d;let n=(d=i.find(({id:a})=>a===e.value))==null?void 0:d.subtitles;if(o)return n==null?void 0:n.find(({startTime:u,endTime:f})=>Lu(t,u,f));let s=t>=Sm,l=t<Sm;if(Sm=t,l&&(Cm=!1),(0,Vu.isNonNullable)(Ma)&&Lu(t,Ma.startTime,Ma.endTime)&&o0===e.value)return Ma;if(!(0,Vu.isNonNullable)(Ai)&&(n!=null&&n.length)&&!Cm){Ai=n.find(({startTime:u,endTime:f})=>Lu(t,u,f)||s&&n0(t,u,f)),Ma=void 0,!(0,Vu.isNonNullable)(Ai)&&n[n.length-1].endTime<t&&(Cm=!0);return}else{if(Lu(t,Ai==null?void 0:Ai.startTime,Ai==null?void 0:Ai.endTime))return Ma=Ai,Ai=void 0,o0=e.value,Ma;(s&&by(t,Ai==null?void 0:Ai.startTime,Ai==null?void 0:Ai.endTime)||l&&n0(t,Ai==null?void 0:Ai.startTime,Ai==null?void 0:Ai.endTime))&&(Ai=void 0)}};var Ru={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"},$y={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"},Nu=t=>{var e,i;return(i=(e=Ru[t])!=null?e:Ru[$y[t]])!=null?i:void 0};var s0=require("@vkontakte/videoplayer-shared/es2015"),GB=require("@vkontakte/videoplayer-statistics/es2015"),Ou=class{constructor(e,i,o,n=new s0.Subscription){this.oneStat=e;this.thinOneStat=i;this.mediascopePixel=o;this.statSubscription=n}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 Zd=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(Zd||{});var ds=t=>t!=null?t:0,ws=(t,e)=>{var n,s;let i=(n=t==null?void 0:t.getBoundingClientRect)==null?void 0:n.call(t),o=(s=e==null?void 0:e.getBoundingClientRect)==null?void 0:s.call(e);return{top:Math.round(ds(i==null?void 0:i.top)-ds(o==null?void 0:o.top)),left:Math.round(ds(i==null?void 0:i.left)-ds(o==null?void 0:o.left)),bottom:Math.round(ds(i==null?void 0:i.bottom)-ds(o==null?void 0:o.top)),right:Math.round(ds(i==null?void 0:i.right)-ds(o==null?void 0:o.left))}},kl=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:ds(e==null?void 0:e.width),height:ds(e==null?void 0:e.height)}};var Bu="off";var a0=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:n,statAuthToken:s,isAudioDisabled:l,canDownload:d,callbacks:a,webApi:u,videoEpisodes:f,previewThumbsData:v,uiConfig:p,coreConfig:y,player:w,disabledControls:$,isInteractive:S,interactiveRanges$:T,isInteractiveTime$:E,replayInteractive:V,stopPlayer:k,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:R,additionalButtons:Z,additionalSettingsMenuItems:D,additionalContextMenuItems:H,playPrevVideo:W,playNextVideo:X,looped:j=!1,statistics:ce,saveRate:re,internalsExposure:pe,playerView:xe})=>{var jv,Yv,Zv;let fe=Bt(z({},y),{configName:[...(jv=y.configName)!=null?jv:[],"ui"],isAudioDisabled:l,live:Bt(z({},(Yv=y.live)!=null?Yv:{}),{isLiveCatchUpMode:!!n})}),ie=p,Pe=ft.TracerFactory.createRootTracer(ie.features.tracer),ee=Pe.createComponentTracer("Store"),N=w||new ai.Player(fe,Pe);pe==null||pe.expose({corePlayer:N});let Ue=new ft.Logger,_e=new Au(Ue,{loadTimeout:ie.ads.loadTimeout,initTimeout:ie.ads.initTimeout,runtimeTimeout:ie.ads.runtimeTimeout,useAdmanFromNPM:ie.ads.useAdmanFromNPM,volumeMultiplier:ie.ads.volumeMultiplier,isVsidOriginal:ie.ads.isVsidOriginal,usePuid:ie.ads.usePuid}),he=$a.getInstance(),ue=u==null?void 0:u.pictureInPictureApi,me=u==null?void 0:u.annotationsApi,ve=u==null?void 0:u.slotsApi,se=Ue.createComponentLog("Store"),Ge,et,J={},Le=new du,Ie=new ft.Subscription,Ze=ce&&ce.oneStat?oi(ce.oneStat.vsid$):yr(void 0),at=ae(Bs()),bt=ae(!1),gt=()=>{let c=null;return ai.clientChecker.device.isIOS&&(c=Xs()),C1(document,c)},Tt=(Zv=ue==null?void 0:ue.info.isActive$)!=null?Zv:new ft.ValueSubject(!1),Qe=ae(0),Kt=ae(!1),ti=ae(!1),Yt=ae([]),jt=(0,ft.merge)(N.events.fatalError$,N.events.managedError$).subscribe(c=>Yt.update(x=>[...x,c])),oe=yr(!1,c=>{let x=N.events.fatalError$.subscribe(()=>c(!0));return()=>x.unsubscribe()}),qt=c=>xt(null,null,function*(){var ne;let x=Object.values(ft.InterfaceLanguage).includes(c);if(ie.downloadVKLanguages&&(x&&ie.updateBuiltinLanguages||!kf(c))){let De;try{De=yield(0,ft.loadVKLangPack)(c,Hh,Fh)}catch(pt){(ne=ce==null?void 0:ce.oneStat)==null||ne.logError({errorType:"VKLangPack",fatal:!1}),he==null||he.report(pt,{errorType:"VKLangPack",fatal:!1})}De&&(If({language:c,pack:De,fallback:ie.defaultLanguage}),$e.set(c))}kf(c)&&$e.set(c)}),$e=ae(t),Ce=ae(e);qt(t);let le=(c,x)=>{let M=Se($e);return Pf(M,c,x,ie.defaultLanguage)},Ne=ae("thumb");Ne.subscribe(c=>{c==="ads"&&N.info.playbackState$.getValue()&&Xe()});let Ke=(()=>{let c=Ti([oe,Ne],([x,M])=>x?"crashed":M);return Bt(z({},c),{is:x=>Se(c)===x})})(),Ve=ae(),Xe=()=>{Ve.set({muted:N.info.muted$.getValue()})},Be=(()=>{let c=ae(new Set($));return Bt(z({},c),{add:x=>{c.update(M=>new Set([...M].concat(x)))},remove:x=>{c.update(M=>{let ne=[...M];return new Set(Array.isArray(x)?ne.filter(De=>!x.includes(De)):ne.filter(De=>De!==x))})},includes:x=>{let M=Se(c);return Array.isArray(x)?x.every(ne=>M.has(ne)):M.has(x)}})})(),tt=ae({width:0,height:0});ee.log("create store"),se({message:"create store"});let Vt=c=>{let x=c.container,M=()=>{Zt=new MutationObserver(De=>{let{removedNodes:pt}=De[0];pt.length&&x.append(N.experimental.element$.getValue())}),Zt.observe(x,{childList:!0})},ne=N.experimental.element$.getValue();if(ne)x.append(ne),M();else{let De=N.experimental.element$.pipe((0,ft.filter)(pt=>!!pt),(0,ft.once)()).subscribe(pt=>{x.append(pt),M()});Ie.add(De)}},Qt=c=>{se({message:`init video, config: ${JSON.stringify(c)}`}),S?Vt(c):(ft.devNull.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[(0,ft.now)()]}),N.initVideo(c)),ee.log("init video",{isInteractive:S}),c.subtitles&&N.setExternalTextTracks(c.subtitles),Ge=c},it=new ft.Subject,yi=c=>it.next(c),mi=new ft.Subject,nt=new ft.Subject,ni=new ft.Subject,Zt=null,vi={actionRewind$:mi,actionSeek$:nt,inPiP$:Tt,inFullscreen$:new ft.Observable(c=>at.subscribe(x=>c.next(x))),actionSetSubtitle$:ni,nextMovie$:it},Lo={actionSeek$:nt,playerSize$:new ft.Observable(c=>tt.subscribe(x=>c.next(x)))};if(ce){let{oneStat:c,thinOneStat:x,mediascopePixel:M,statSubscription:ne}=ce;c&&(S||ne.add(c.attachTo(N)),ne.add(c.attachToUi(vi)),ne.add(c.attachToAds(_e.events)),c.authorize(s).catch(De=>{se({message:`onestat auth error ${String(De)}`})}),M&&M.attachTo(N)),x&&(ne.add(x.attachTo(N,_e.events)),ne.add(x.attachToUi(Lo)),ne.add(x.attachToAds(_e.events)),x.authorize(s))}if(he){let c=new ft.Subscription,x=(M,ne)=>c.add(M.subscribe(ne));if(x(N.events.managedError$,M=>{he.logIError(M)}),x(N.events.fatalError$,M=>{he.logIError(M,!0)}),ce){let{oneStat:M}=ce;M&&x(M.experimental.error$,ne=>{he.logIError(ne)})}he.sentrySubscription.add(c)}let lo=()=>{if(ai.clientChecker.device.isIOS&&et)try{T1(et)}catch(c){se({message:`exitIosSafariFullscreen failed: ${c}`})}};Ie.add(N.experimental.element$.subscribe(c=>{c&&(et=c,c.classList.add("player-media"),xa(ue)&&ue.updateVideoElement(),S&&c.setAttribute("pip","false"),xe==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(N.events.ended$.subscribe(()=>{var c;lo(),(c=a==null?void 0:a.onEnded)==null||c.call(a)})).add(N.events.looped$.subscribe(()=>{var c;(c=a==null?void 0:a.onLooped)==null||c.call(a)})).add(N.events.started$.subscribe(()=>xt(null,null,function*(){var x,M;xa(ue)&&(yield ue==null?void 0:ue.revealPictureInPicture());let c=N.info.muted$.getValue();(x=a==null?void 0:a.onStarted)==null||x.call(a),(M=J.onStarted)==null||M.call(J,c)}))).add(N.events.willSeek$.subscribe(({from:c,to:x})=>{var M;(M=a==null?void 0:a.onSeek)==null||M.call(a,c,x)})).add(N.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=a==null?void 0:a.onAutoplaySoundProhibited)==null||c.call(a)})).add(N.info.position$.subscribe(c=>{var M;let x=N.info.duration$.getValue();isFinite(x)&&x>0&&((M=a==null?void 0:a.onTimeupdate)==null||M.call(a,x,c),_e.setPosition(c,x))})).add(N.events.fatalError$.subscribe(c=>{var x;(x=a==null?void 0:a.onCrashed)==null||x.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(N.events.fetcherRecoverableError$.subscribe(c=>{var x;(x=a==null?void 0:a.onRecoverableError)==null||x.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(N.events.loadedMetadata$.subscribe(()=>{Kt.set(!0)})).add(N.info.is3DVideo$.subscribe(c=>{ti.set(c)})).add(N.info.isEnded$.subscribe(c=>{S&&(c?(E!=null&&E.getValue()&&Be.add(wd),Be.add("PLAY_BUTTON")):Be.remove("PLAY_BUTTON"))})).add(N.info.liveTime$.subscribe(c=>{var x;(x=a==null?void 0:a.onLiveTime)==null||x.call(a,c)})).add(N.info.isStalled$.subscribe(c=>{var x;(x=a==null?void 0:a.onStalledChanged)==null||x.call(a,c)})).add(N.info.isLiveEnded$.subscribe(c=>{var x;return c&&((x=a==null?void 0:a.onLiveEnded)==null?void 0:x.call(a))})).add(_e.events.loadStarted$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadStarted)==null?void 0:x.call(c)})).add(_e.events.loadEnded$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadEnded)==null?void 0:x.call(c)})).add(_e.events.loadError$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadError)==null?void 0:x.call(c)})).add(_e.events.init$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onInit)==null?void 0:x.call(c)})).add(_e.events.ready$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onReady)==null?void 0:x.call(c)})).add(_e.events.started$.subscribe(c=>{var x,M;return(M=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onStarted)==null?void 0:M.call(x,c)})).add(_e.events.timeRemained$.subscribe(c=>{var x,M;return(M=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onTimeRemained)==null?void 0:M.call(x,c)})).add(_e.events.ended$.subscribe(c=>{var x,M;return(M=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onCompleted)==null?void 0:M.call(x,c)})).add(_e.events.empty$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onEmpty)==null?void 0:x.call(c)})).add(_e.events.clicked$.subscribe(c=>{var x,M;return(M=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onClicked)==null?void 0:M.call(x,c)})).add(_e.events.closed$.subscribe(c=>{var x,M;return(M=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onClosed)==null?void 0:M.call(x,c)})).add(_e.events.error$.subscribe(c=>{var x,M;return(M=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onError)==null?void 0:M.call(x,c)})).add(_e.events.paused$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onPaused)==null?void 0:x.call(c)})).add(_e.events.resumed$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onResumed)==null?void 0:x.call(c)}));let co=new ft.Subscription,Ht=()=>{var pt,Ut,Gt;let{debugLog:c}=ie,x,M="#9df7b7",ne="#efd169";if(c&&c!==!0){let{colors:zt}=c;x=c.tag,M=(pt=zt==null?void 0:zt[0])!=null?pt:M,ne=(Gt=(Ut=zt==null?void 0:zt[1])!=null?Ut:zt==null?void 0:zt[0])!=null?Gt:ne}let De=x?`: ${x}`:"";co.add(N.events.log$.subscribe(zt=>{console.debug(`%c sdk${De} `,`background:${M};`,`sdk component: ${zt.component}`,zt.message)})).add(Ue.log$.subscribe(zt=>{console.debug(`%c ui${De} `,`background:${ne};`,`ui component: ${zt.component}.`,zt.message)}))},ui=()=>{co.unsubscribe()},Ft=(c,x)=>{ee.log("start camera manual rotation",{mx:c,my:x}),N.startCameraManualRotation(c,x)},yt=(c=!1)=>{ee.log("stop camera manual rotation",{immediate:c}),N.stopCameraManualRotation(c)},Hi=(c,x,M)=>{ee.log("move camera focus px",{xpx:c,ypx:x,dt:M}),N.moveCameraFocusPX(c,x,M)},Vo=()=>{N.holdCamera()},G=()=>{N.releaseCamera()},dt=yr(N.info.position$.getValue(),c=>{let x,M,ne=()=>{let De=N.info.playbackState$.getValue(),pt=N.info.isLive$.getValue(),Ut=N.info.duration$.getValue(),Gt=N.info.position$.getValue();if(De&&[ai.PlaybackState.PLAYING,ai.PlaybackState.PAUSED].includes(De)){let zt=pt?Gt-Ut:N.getExactTime();zt!==M&&c(zt),M=zt}x=requestAnimationFrame(ne)};return ne(),()=>cancelAnimationFrame(x)}),gi=oi(N.info.playbackState$),li=oi(N.info.currentBuffer$),di=oi(N.info.isEnded$),Re=oi(N.info.isLive$),vt=ie.features.playbackRate?oi(N.info.canChangePlaybackSpeed$):yr(!1),xi=oi(N.info.liveBufferTime$),Wt=oi(N.info.volume$),eo=oi(N.info.muted$),Zo=cu(N.info.predefinedQualityLimitType$.pipe((0,ft.map)(c=>c===ai.PredefinedQualityLimits.TRAFFIC_SAVING)),N.info.predefinedQualityLimitType$.getValue()===ai.PredefinedQualityLimits.TRAFFIC_SAVING),pn=cu(N.info.predefinedQualityLimitType$.pipe((0,ft.map)(c=>c===ai.PredefinedQualityLimits.HIGH_QUALITY)),N.info.predefinedQualityLimitType$.getValue()===ai.PredefinedQualityLimits.HIGH_QUALITY),Mi=oi(N.info.autoQualityLimitingAvailable$),Pt=oi(N.info.availableQualities$),hi=oi(N.info.availableQualitiesFps$),Xo=oi(N.info.chromecastState$),Tn=oi(N.info.chromecastDeviceName$),En=oi(N.info.currentFormat$),pi=oi(N.info.throughputEstimation$),Ro=oi(N.info.videoBitrate$),Hn=oi(N.info.intrinsicVideoSize$),Fn=oi(N.info.duration$),Li=oi(N.info.isAudioAvailable$),to=null,No=N.info.isBuffering$,Jo=yr(No.getValue(),c=>{let x=No.subscribe(M=>{M&&to===null?to=window.setTimeout(()=>{c(No.getValue()),to=null},ie.loaderDelay):c(M)});return()=>{x.unsubscribe(),to&&clearTimeout(to)}}),nr=()=>{to&&clearTimeout(to),to=null},uo=Ti([Fn,Re],([c,x])=>x?-c:c),zr=Ti([gi],([c])=>c===ai.PlaybackState.PLAYING),rr=oi(N.info.atLiveEdge$),wr=oi(N.info.atLiveDurationEdge$),sr=oi(N.info.position$),Wr=Ti([sr,Fn],([c,x])=>isFinite(c)&&isFinite(x)&&!!x),ar=Ti([Xo],([c])=>c===ai.ChromecastState.CONNECTED),en=oi(N.info.availableVideoStreams$),Sr=ie.features.audioLanguages?oi(N.info.availableAudioStreams$):yr([]),Vi=oi(N.info.currentVideoStream$),Un=oi(N.info.currentAudioStream$),zn=c=>{c.language&&Sf(c.language),N.setVideoStream(c)},lr=c=>{c.language&&Sf(c.language),N.setAudioStream(c),ie.features.userVideoPrefs&&i&&Ef(ie.userSalt,String(i),{audioTrackId:c.id})},Wn=c=>{let x;if(c.length===1&&(x=c.at(0)),x!=null||(x=c.find(ne=>"isDefault"in ne&&ne.isDefault)),ie.features.userVideoPrefs&&i){let ne=mu(ie.userSalt,String(i));if(ne!=null&&ne.audioTrackId){let De=c.find(pt=>pt.id===ne.audioTrackId);x=De!=null?De:x}}let M=p1();return M&&(x!=null||(x=c.find(({language:ne})=>M===ne))),x!=null||(x=c.at(0)),x},dr=!1;Ie.add(N.info.availableAudioStreams$.subscribe(c=>{if(!dr&&c.length){let x=Wn(c);x&&(N.setAudioStream(x),dr=!0)}}));let Kn=!1;Ie.add(N.info.availableVideoStreams$.subscribe(c=>{if(!Kn&&c.length){let x=Wn(c);x&&(N.setVideoStream(x),Kn=!0)}}));let In=ae(void 0),qn=oi(N.info.isAutoQualityEnabled$,c=>c&&In.set(void 0)),Kr=oi(N.info.currentQuality$,()=>In.set(void 0)),cr=Ti([In,Kr],([c,x])=>c!=null?c:x),Oo=Ti(En,c=>c!==ai.VideoFormat.MPEG),mt=Ti([Pt,hi,qn,cr,Oo],([c,x,M,ne,De])=>{let pt=[];De&&pt.push({value:"auto",displayValue:le("auto_quality_option"),selected:M});let Ut=c.filter(Gt=>!(0,ft.isInvariantQuality)(Gt));for(let Gt of Ut){let zt=x[Gt];pt.push({value:Gt,displayValue:`${Gt}${zt?t0(zt):""}`,selected:M?!1:Gt===ne})}return pt}),Jt=oi(N.info.currentPlaybackRate$),ur=Ti([Jt,rr,wr],([c,x,M])=>{let ne=M||S?1:ie.controls.playbackRateMin,De=x?1:ie.controls.playbackRateMax,pt=ie.controls.playbackRateStep,Ut=[];for(let Gt=ne;Gt<=De;Gt+=pt)Ut.push({value:Gt,displayValue:Gt===1?le("playback_rate_1"):le("playback_rate",{multiplier:Gt.toString(10)}),selected:c===Gt});return Ut}),wi={displayValue:le("subtitles_off"),value:Bu,language:""},Fi=ae(z({},wi)),kn=ie.features.subtitles?oi(N.info.availableTextTracks$):yr([]),Bo=i1(),fn=Ti([kn,Fi],([c,x],M)=>{var pt;let ne=[],De=c.find(({id:Ut})=>Ut===x.value);if(De!=null&&De.url){let[,Ut]=(pt=Bo.find(De.url))!=null?pt:[];if(Ut){M(Ut);return}Le.download(De.url).then(Gt=>{if(!Gt||Le.isDestroyed())return;let zt=new i0,Is=De.language;if(Is){let Q0=!!De.isAuto,j0=zt.parse(Gt,Is);ne.push({lang:Is,subtitles:j0,isAuto:Q0,id:De.id})}Bo.add(De.url,ne),Se(Fi).value===x.value&&M(ne)}).catch(Gt=>{var zt;(zt=ce==null?void 0:ce.oneStat)==null||zt.logError({errorType:"Subtitles download",fatal:!1}),he==null||he.report(Gt,{errorType:"Subtitles download",fatal:!1})})}M(ne)}),mn=Ti([Jt,zr,Fi],([c,x,M],ne)=>{let Ut;if(N.info.isLive$.getValue()&&x&&M.value!==wi.value){let zt=()=>{let Is=1e3/(3*c);Ut=setTimeout(zt,Is),ne(Date.now())};return zt(),()=>clearTimeout(Ut)}}),xo=Ti([kn,Fi],([c,x])=>{if(!c.length)return[];let M=[];for(let{language:ne,isAuto:De,id:pt}of c){let Ut=ne&&Nu(ne);ne&&Ut&&M.push({displayValue:De?le("subtitles_auto",{language:Ut}):Ut,value:pt,selected:(x==null?void 0:x.value)===pt,isAuto:De,language:ne})}return M.length?(M.unshift(Bt(z({},wi),{selected:(x==null?void 0:x.value)===wi.value})),M):[]}),vn={available:[],prev:[]},Cr=()=>{var x,M;let c=N.experimental.getCurrentTime$.getValue();return(M=(x=c==null?void 0:c())!=null?x:et==null?void 0:et.currentTime)!=null?M:0},us=Ti([dt,Fi,fn,mn],([c,x,M,ne])=>{var pt;let De=N.info.isLive$.getValue();if(De&&vn.prev!==M){let Ut=M.find(({id:zt})=>zt===x.value),Gt=vn.prev.find(({id:zt})=>zt===x.value);if(Ut){let zt=Bt(z({},Ut),{subtitles:[...(pt=Gt==null?void 0:Gt.subtitles)!=null?pt:[],...Ut.subtitles]});vn.available=[zt],vn.prev=M}}if(x&&x.value!==wi.value){let Ut=De?Cr():c,Gt=De?vn.available:M;return r0(Ut,x,Gt,De)}}),Tr=Ti([us],([c])=>c!=null&&c.texts?c.texts:[]);Ie.add(Fi.subscribe(c=>{var x,M;if(c.value===wi.value)(x=a==null?void 0:a.onSubtitleOff)==null||x.call(a);else{let ne=Object.entries(Ru).find(([De,pt])=>pt===c.displayValue);(M=a==null?void 0:a.onSubtitleOn)==null||M.call(a,ne?ne[0]:"")}}));let qr=ae(!0),Pn=Ti([li,uo,sr,xi],([c,x,M,ne])=>{var Gt;let De=(Gt=c==null?void 0:c.end)!=null?Gt:0;if(!ne)return De/x;let Ut=-M+ne-x;return(De-Ut)/x}),Er=oi(N.info.availableSources$),wo=Ti([Er],([c])=>Object.keys((c==null?void 0:c[ai.VideoFormat.MPEG])||{}).length>0),pr=()=>{var M,ne,De;let c=Object.keys(((ne=(M=N.info.availableSources$)==null?void 0:M.getValue())==null?void 0:ne[ai.VideoFormat.MPEG])||{}),x=(0,ft.getHighestQuality)(c)||ft.VideoQuality.Q_144P;return(De=Ge.sources[ai.VideoFormat.MPEG])==null?void 0:De[x]},tn=()=>{var x;let c=pr();if(c)ee.log("download video",{url:c}),Jh(c,((x=Ge==null?void 0:Ge.meta)==null?void 0:x.title)||"video");else{let M="There is no URL for download video";ee.log("download video",{message:M}),se({message:M})}},ii=()=>{se({message:"toggle muted"});let c=N.info.muted$.getValue();N.info.volume$.getValue()===0&&!c?So(Rt()):Do(!c)},on=()=>{var c;if(Lt.ui.settingsMenu.visible$.set(!1),!Se(Lt.ui.settingsSubMenu.visible$)){let x=Se(Lt.ui.settingsMenu.ref$);if((c=a==null?void 0:a.uiInfo)!=null&&c.onSettingsMenu&&x){let ne=kl(x),De={top:0,left:0,bottom:0,right:0};a.uiInfo.onSettingsMenu({visible:!1,size:ne,position:De,name:"settings"})}}ee.log("close settings menu")},Gr=(c,x=()=>Promise.resolve())=>xt(null,null,function*(){var De;Lt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),Lt.ui.settingsMenu.visible$.set(!0),yield x();let M=Se(Lt.ui.settingsMenu.ref$),ne=Xs();if((De=a==null?void 0:a.uiInfo)!=null&&De.onSettingsMenu&&M&&ne){let Ut=kl(M),Gt=ws(M,ne);a.uiInfo.onSettingsMenu({visible:!0,size:Ut,position:Gt,name:"settings"})}ee.log("open settings menu",{wasOpenedByKeyboard:c})}),Ir=(c,x=!1)=>{var pt;Lt.ui.settingsSubMenu.visible$.set(!1);let M=Se(Lt.ui.settingsMenu.ref$),ne=Xs(),De=Se(Lt.ui.settingsMenu.visible$);if((pt=a==null?void 0:a.uiInfo)!=null&&pt.onSettingsMenu&&M&&ne)if(De&&!x){let Gt=kl(M),zt=ws(M,ne);a.uiInfo.onSettingsMenu({visible:!0,size:Gt,position:zt,name:"settings"})}else{let Gt=kl(c),zt={top:0,left:0,bottom:0,right:0},Is=Se(Lt.ui.settingsSubMenu.name$);a.uiInfo.onSettingsMenu({visible:!1,size:Gt,position:zt,name:Is})}ee.log("close settings sub menu")},St=(c,x)=>{var ne;Lt.ui.settingsSubMenu.visible$.set(!0),Lt.ui.settingsSubMenu.ref$.set(x),Lt.ui.settingsSubMenu.name$.set(c);let M=Xs();if((ne=a==null?void 0:a.uiInfo)!=null&&ne.onSettingsMenu&&x&&M){let pt=kl(x),Ut=ws(x,M);a.uiInfo.onSettingsMenu({visible:!0,name:c,size:pt,position:Ut})}ee.log("open settings sub menu",{name:c})},Rt=()=>{var x;let c=Math.max(ie.volumeMinRestore,(x=uu())!=null?x:0);return c===0?ie.volumeDefault:c},So=c=>{let x=c===0?Rt():c,M=N.info.muted$.getValue();se({message:`set volume, volume: ${c}, preferredVolume: ${x}`});let ne=!l||Ke.is("ads");M&&c>0&&ne&&(M=!1,xf(!1)),N.setVolume(c,M),_e.setVolume(c),hf(x)},Do=c=>{let x=N.info.volume$.getValue();se({message:`set muted, currentVolume: ${x}, mute: ${c}`});let M=Ke.is("ads");if(N.setMuted(c,M),_e.setVolume(c?0:x),(!M||!c)&&xf(c),!c&&x===0){let ne=Rt();N.setVolume(ne),hf(ne),_e.setVolume(ne)}},po=ae(!1),Co=c=>{var x,M;ee.log("set looped",{isLooped:c}),po.set(c),N.setLooped(c),(M=(x=a==null?void 0:a.uiInfo)==null?void 0:x.onLoopedChanged)==null||M.call(x,c)};Co(j);let fo=()=>{var c,x;(x=(c=a==null?void 0:a.uiInfo)==null?void 0:c.onReportProblem)==null||x.call(c)},Gn=(c,x=!1)=>{var M;se({message:`set autoplayNextEnabled, value: ${c}`}),ee.log("set autoplay next enabled",{autoplayNextEnabled:c}),Lt.ui.autoplayNextEnabled$.set(c),v1(c),x&&((M=a==null?void 0:a.onSetAutoplayNextEnabled)==null||M.call(a,c))},Qi=c=>{se({message:`set timerNextVideoRunning, value: ${c}`}),ee.log("set timer next video running",{timerNextVideoRunning:c}),Lt.ui.timerNextVideoRunning$.set(c)},Ho=(c=!0)=>{var ne;let x=!0;if(c&&(a!=null&&a.onPrevVideoClick))try{x=(ne=a==null?void 0:a.onPrevVideoClick)==null?void 0:ne.call(a)}catch(De){se({message:"onPrevVideoClick callback failed to execute"})}if(!x)return;c&&kr("prev")||W()},An=(c=!0)=>{var ne;let x=!0;if(c&&(a!=null&&a.onNextVideoClick))try{x=(ne=a==null?void 0:a.onNextVideoClick)==null?void 0:ne.call(a)}catch(De){se({message:"onNextVideoClick callback failed to execute"})}if(!x)return;c&&kr("next")||X()},kr=c=>{let{isMobile:x,features:{playbackStatusNextVideoShow:M,playbackStatusShow:ne}}=ie;return M&&ne&&!x?(Lt.ui.aboutToGoNextVideo.set(c),Lt.ui.userActionsDisabled.set(!0),!0):!1},Qr=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementShow)==null||c.call(a)},ps=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementClick)==null||c.call(a)},jr=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementAuto)==null||c.call(a)},mo=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementCancel)==null||c.call(a)},gn=()=>{N.prepare()},Pr=()=>{(0,ft.assertNonNullable)(Lt);let c=Se(Lt.ui.controls.disabledControls$),x=Se(Lt.playerPhase),M={playerPhase:x,isInteractive:S,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(se({message:"toggle play"}),x==="ads"){M.action="play",ee.log("toggle adman play",M),_e.togglePlay();return}let ne=()=>{var pt;se({message:"toggle play, call player.play"}),M.action="play",N.play(),(pt=a==null?void 0:a.onPlay)==null||pt.call(a)},De=()=>{var pt;se({message:"toggle play, call player.pause"}),M.action="pause",N.pause(),(pt=a==null?void 0:a.onPause)==null||pt.call(a)};if(N.info.isEnded$.getValue()){if(se({message:"toggle play, video ended, seek to 0"}),mi.next(),nt.next(cs.SeekAction.REWIND),S){V==null||V();return}N.seekTime(0),ne()}else N.info.playbackState$.getValue()!==ai.PlaybackState.PLAYING?ne():De();ee.log("toggle play",M)},lt=(c,{changeReason:x="default",appliesTo:M="to-video"}={})=>{se({message:`set quality, quality: ${c}`}),ee.log("set quality",{quality:c}),N.setAutoQuality(c==="auto"),c!=="auto"?(ie.features.qualityDetailsSubMenuEnabled?(pu({type:"exact_quality",quality:c,videoId:i},M),Td(),N.setPredefinedQualityLimits(ai.PredefinedQualityLimits.UNKNOWN)):_f(i,c),In.set(c),N.setQuality(c)):ie.features.qualityDetailsSubMenuEnabled?x==="default"&&(io("auto_quality",M),Se(Zo)&&Mt(!1),Se(pn)&&_i(!1)):Td()},Mt=(c,x="as-default")=>{se({message:`set trafficSavingEnabled, value: ${c}`}),ee.log("set traffic saving enabled",{trafficSavingEnabled:c});let M=c?ai.PredefinedQualityLimits.TRAFFIC_SAVING:ai.PredefinedQualityLimits.UNKNOWN;ie.features.qualityDetailsSubMenuEnabled?(vo(M,x),Cd(!1)):(N.setPredefinedQualityLimits(M),Cd(c))},_i=(c,x="as-default")=>{se({message:`set highQualityEnabled, value: ${c}`}),ee.log("set high quality enabled",{highQualityEnabled:c}),vo(c?ai.PredefinedQualityLimits.HIGH_QUALITY:ai.PredefinedQualityLimits.UNKNOWN,x)},vo=(c,x)=>{c!==ai.PredefinedQualityLimits.UNKNOWN&&(Se(Mi)&&!Se(qn)&&lt("auto",{appliesTo:x,changeReason:"limit-changed"}),io(c,x)),N.setPredefinedQualityLimits(c)},io=(c,x)=>{pu({type:c,videoId:i},x),x==="as-default"&&pu({type:c,videoId:i},"to-video")},go=c=>{ee.log("set playback rate",{playbackRate:c}),N.setPlaybackRate(c),ie.features.saveRate&&re&&!N.info.isLive$.getValue()&&f1(c)},ho=()=>{let c=Se(ur),x=c.findIndex(({selected:ne})=>ne);if(x===c.length-1)return;let M=c[x+1];go(M.value)},nn=()=>{let c=Se(ur),x=c.findIndex(({selected:ne})=>ne);if(x===0)return;let M=c[x-1];go(M.value)},rn=(c=Bt(z({},wi),{selected:!1}))=>{ee.log("set subtitles",z({},c)),c.value!==wi.value&&ni.next(c.isAuto?c.value+"_auto":c.value),Fi.set(c),Tf(c.value===wi.value?void 0:c.language),ie.features.userVideoPrefs&&i&&Ef(ie.userSalt,String(i),{subtitleTrackId:c.value===wi.value?void 0:c.value})},Mn=()=>{ee.log("toggle subtitles");let c=Se(xo),x=Se(Fi),M=Se($e);if((x==null?void 0:x.value)===wi.value){let ne=c.filter(De=>De.value!==wi.value).find(De=>De.value===M)||c[1];rn(ne)}else rn()},_o=ae(!0),oo=c=>{_o.set(c)},To=(c,x,M=!0)=>{var ne;if(se({message:`seek to time, time: ${c}`}),ee.log("seek to time",{time:c,action:x,forcePrecise:M}),nt.next(x),N.info.isLive$.getValue()){let De=N.info.duration$.getValue(),pt=Math.min(0,De+c);N.seekTime(pt,M)}else{if(E!=null&&E.getValue())return;N.info.isEnded$.getValue()&&(se({message:"seek after ended, call callbacks.onPlay"}),(ne=a==null?void 0:a.onPlay)==null||ne.call(a)),N.seekTime(Qv(c),M)}},fr=c=>{se({message:`seek to episode start time: ${c}`}),ee.log("seek to episode start time",{time:c}),To(c,cs.SeekAction.EPISODE,!0)},Qn=(c,x)=>{se({message:`seek to percent, percent: ${c}`}),ee.log("seek to percent",{percent:c,action:x});let M=Se(uo)*c;To(M,x,!1)},mr=c=>{se({message:`seek external, time: ${c}`}),ee.log("seek external",{time:c}),nt.next(cs.SeekAction.UNKNOWN),N.seekTime(N.info.isLive$.getValue()?-c:c)},Yr=c=>{var ne,De;let x=(ne=c.max)!=null?ne:"none",M=(De=c.min)!=null?De:"none";se({message:`set auto quality limitation. Max: ${x}. Min: ${M}`}),ee.log("set auto quality limits",{max:x,min:M}),N.setAutoQualityLimits(c)},fs=c=>{se({message:`seek external to episode start time: ${c}`}),ee.log("seek external to episode start time",{time:c}),To(c,cs.SeekAction.EPISODE,!0)},Zr=c=>{se({message:`set playback rate to: ${c}`}),ee.log("set playback rate external",{playbackRate:c}),N.setPlaybackRate(c)},Ri=ae(void 0),qe=ae(!1),ei=c=>{se({message:`start scrubbing, progress: ${c}`}),ee.log("start scrubbing",{progress:c}),qe.set(!0),Ei(c)},Ei=c=>{Ri.set(c)},Eo,Fo,vr=()=>{Ri.set(void 0),qe.set(!1)},be=()=>{clearTimeout(Fo),clearTimeout(Eo),Eo=window.setTimeout(()=>{vr()},500),et==null||et.removeEventListener("seeked",be)},It=c=>{se({message:`complete scrubbing, progress: ${c}`}),ee.log("complete scrubbing",{progress:c}),Qn(c,cs.SeekAction.SLIDER),Se(Lt.ui.isMobile)&&Se(Lt.state.currentFormat$)===ai.VideoFormat.HLS?(et==null||et.addEventListener("seeked",be),Fo=window.setTimeout(()=>{be()},300)):vr()},Si=Ti([dt,uo,Ri],([c,x,M],ne)=>{ne((0,ft.isNonNullable)(M)?M*x:c)}),Ii=ae(!1),bo=()=>{Ii.set(!0)},ot=()=>{Ii.set(!1)},Et=Ti([tt],([{width:c}],x)=>{let M=G1(c);x(M)}),Ni=ae(!1),sn=Z.filter(c=>e1(c)),Uo=Ti([Et,Ni],([c,x])=>x?sn.filter(M=>!M.hideOnMobile):sn.filter(M=>{var ne;return!((ne=M.hideOnDesktopGridTypes)!=null&&ne.includes(c))})),$o=ae(Z.filter(c=>t1(c))),Ar=Ti([$o,Et],([c,x])=>c.filter(M=>{var ne;return!((ne=M.hideOnDesktopGridTypes)!=null&&ne.includes(x))})),Xr=Ti([Ar,Uo],([c,x])=>[...ie.features.additionalButtonsDesktopControlPanelRight?c.filter(M=>M.type==="desktop-control-panel-right"):[],...ie.features.additionalButtons?x.map((M,ne)=>{var De;return{id:ne,weight:ne,type:"desktop-control-panel-right",testId:M.testId,icon:M.iconUrl,onClick:M.onClick,ariaLabel:(De=M.ariaLabel)!=null?De:M.tooltip,tooltipText:M.tooltip}}):[]]),bi=ae(D),Ui=Ti([bi],([c])=>ie.features.additionalSettingsMenuItems?c.map(x=>x.type==="SWITCH"?Bt(z({},x),{onClick:x.onChangeEnabled}):x):[]),hn=(c,x)=>{let M=Se($o).map(ne=>ne.id!==c?ne:z(z({},ne),x));$o.set(M)},gr=c=>{let x=Se($o);if(x.some(M=>M.id===c.id)){se({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),$o.set(x)},hr=c=>{let x=Se($o);if(!x.some(M=>M.id===c)){se({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}x=x.filter(M=>M.id!==c),$o.set(x)},zo=c=>{nt.next(cs.SeekAction.LIVE),se({message:"live switch to low latency "+c}),ee.log("live switch to low latency "+c),N.setLiveLowLatency(c)},Ys=(c,x)=>{let M=Se(bi).map(ne=>ne.id!==c?ne:z(z({},ne),x));bi.set(M)},qa=c=>{let x=Se(bi);if(x.some(M=>M.id===c.id)){se({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),bi.set(x)},$t=c=>{let x=Se(bi);if(!x.some(M=>M.id===c)){se({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(M=>M.id!==c),bi.set(x)},ut=ae(H),no=Ti([ut],([c])=>ie.features.additionalContextMenuItems?c:[]),_n=(c,x)=>{let M=Se(ut).map(ne=>ne.id!==c?ne:z(z({},ne),x));ut.set(M)},zi=c=>{let x=Se(ut);if(x.some(M=>M.id===c.id)){se({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),ut.set(x)},ci=c=>{let x=Se(ut);if(!x.some(M=>M.id===c)){se({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(M=>M.id!==c),ut.set(x)},Oi=Ti([Ni,oe],([c,x],M)=>{M(c&&x)}),Zs=()=>{nt.next(cs.SeekAction.LIVE),se({message:"switch to active live"}),ee.log("switch to active live"),N.seekTime(0),N.info.playbackState$.getValue()!==ai.PlaybackState.PLAYING&&Lt.actions.internal.togglePlay()},Ga=()=>{ee.log("skip adman"),_e.skip()},up=(c=!0)=>{var ne;(0,ft.assertNonNullable)(Lt),se({message:`switch from ads to video, callPlay: ${c}`}),ee.log("switch from ads to video",{callPlay:c}),Ne.set("video"),c&&N.play(),l&&Do(!0);let x=(ne=Se(Ve))==null?void 0:ne.muted,M=!N.info.muted$.getValue();x!==void 0&&!M&&Do(x),Ve.set(void 0)},Tc=()=>{(0,ft.assertNonNullable)(Lt),se({message:"switch from video to ads"}),ee.log("switch from video to ads"),Lt.actions.internal.pause(),lo(),Ne.set("ads")},pp=c=>{(0,ft.assertNonNullable)(Lt);let x=c?"LiveWaitingStart":"thumb";ee.log("set live waiting start",{state:c,playerPhase:x}),Ne.set(x)},Ec=c=>{(0,ft.assertNonNullable)(Lt);let x=c?"LiveWaitingRecover":"thumb";ee.log("set live waiting recover",{state:c,playerPhase:x}),Ne.set(x)},fp=c=>{(0,ft.assertNonNullable)(Lt);let x=c?"LiveWaitingRecord":"thumb";ee.log("set live waiting record",{state:c,playerPhase:x}),Ne.set(x)},Ic=()=>((0,ft.assertNonNullable)(Lt),ee.log("get debug text data"),Zh(N,Ge,Lt,Pe.getTraceId())),mp=()=>((0,ft.assertNonNullable)(Lt),JSON.stringify(Pe.getFinishedSpans())),kc=()=>((0,ft.assertNonNullable)(Lt),Xh(N,Ge,Lt)),Xs=()=>et,Pc=()=>{se({message:"toggle chromecast"}),ee.log("toggle chromecast"),N.toggleChromecast()},zl=c=>{var M;if((0,ft.assertNonNullable)(Lt),N.info.isEnded$.getValue())return;let x=!c;if(Se(Lt.playerPhase)==="ads"){se({message:`pause ads, internalCall: ${x}`}),ee.log("pause ads",{internalCall:x}),_e.pause();return}se({message:`pause video, internalCall: ${x}`}),ee.log("pause video",{internalCall:x}),x&&((M=a==null?void 0:a.onPause)==null||M.call(a)),N.pause()},Wl=c=>{var M;(0,ft.assertNonNullable)(Lt);let x=!c;if(Se(Lt.playerPhase)==="ads"){se({message:`play ads, internalCall: ${x}`}),ee.log("play ads",{internalCall:x}),_e.play();return}se({message:`play video, internalCall: ${x}`}),ee.log("play video",{internalCall:x}),x&&((M=a==null?void 0:a.onPlay)==null||M.call(a)),N.play()},vp=c=>{(0,ft.assertNonNullable)(Lt);let x=!c;if(Se(Lt.playerPhase)==="ads"){se({message:"player cannot be stopped during ads via external method"});return}se({message:`player will be stopped, internalCall: ${x}`}),k==null||k()},Kl=(c,x)=>{(0,ft.assertNonNullable)(Lt),se({message:`first start, show ads: ${c}, internalCall: ${!x}`}),ee.log("first start",{showAds:c,external:x}),c?Ne.set("ads"):(Ne.set("video"),x?N.play():Lt.actions.internal.togglePlay())},ql=()=>(se({message:"getting time codes"}),f),Gl=()=>{let c=ql();if(!c||[0,1].includes(c.length))return;let x=N.info.position$.getValue();return c.find(M=>M.time>x)},gp=c=>{let x=c;x||(x=Gl());let M=N.info.position$.getValue();ee.log("seek to next episode",z({currentTime:M},x)),x&&(se({message:"seek to next episode"}),To(x.time,cs.SeekAction.EPISODE,!0))},Ac=()=>{let c=ql();if(!c||[0,1].includes(c.length))return;let x=N.info.position$.getValue(),M=c.findIndex(De=>De.time>x),ne=M===-1?c.length-2:M-2;if(!(ne<0))return c[ne]},hp=c=>{let x=c;x||(x=Ac());let M=N.info.position$.getValue();ee.log("seek to prev episode",z({currentTime:M},x)),x&&(se({message:"seek to prev episode"}),To(x.time,cs.SeekAction.EPISODE,!0))},je=()=>(se({message:"getting preview thumbs data"}),ee.log("get preview thumbs data",z({},v)),v),si=()=>xt(null,null,function*(){let c=ue==null?void 0:ue.isActive(),x="none";ue!=null&&ue.isActive()?(x="exit",yield ue==null?void 0:ue.exit()):(x="request",yield ue==null?void 0:ue.request()),ee.log("toggle picture in picture",{isActive:c,action:x})}),Wo=(c=-90)=>{ee.log("rotate video",{alphaDiff:c}),Qe.update(x=>x+c)},Jr=ae([]);T==null||T.subscribe(c=>{let x=[];for(let M=0;M<c.length;M++){let{range:[ne,De],subjects:pt}=c[M];M===0&&ne!==0&&x.push({time:0,text:"",interactive:!1,completed:!0}),x.push({time:ne/1e3,text:"",interactive:!0,completed:ie.features.interactiveTimeOpenUri?!pt.length||pt.every(Ut=>Ut.isRemoved):!pt.length}),De!==1/0&&x.push({time:De/1e3,text:"",interactive:!1,completed:!0})}Jr.set(x)});let bn=ae(!1);E==null||E.subscribe(c=>{c&&Se(qe)&&vr()});let Qv=c=>{if(!S)return c;let x=Se(Jr),M=Se(uo),De=Se(sr)/M,pt=x.find(Ut=>Ut.interactive&&!Ut.completed&&Ut.time>De);return typeof(pt==null?void 0:pt.time)=="number"?Math.min(c,pt.time-.05):c},q0=()=>{Lt.ui.episodes.panelOpened$.set(!1)},G0=()=>{ee.log("destroy store"),clearTimeout(Fo),clearTimeout(Eo),Ie.unsubscribe(),co.unsubscribe(),N.destroy(),_e.destroy(),ce==null||ce.destroy(),he==null||he.destroy(),jt.unsubscribe(),Zt==null||Zt.disconnect(),Zt=null,Le.destroy()},Lt={interfaceLanguage$:$e,isCyrillicRelatedInterface$:Ce,initVideo:Qt,videoId:i,isClip:o,playerPhase:Ke,vsid:Ze,state:{positionExact$:dt,positionWithScrubbing$:Si,duration$:uo,playbackState$:gi,isPlaying$:zr,isLoaderVisible:Jo,bufferedProgress$:Pn,isLive$:Re,canChangePlaybackSpeed$:vt,isActiveLive$:rr,isOldestAvailableLive$:wr,isRewindableLive$:Wr,isEnded$:di,muted$:eo,volume$:Wt,trafficSavingEnabled$:Zo,highQualityEnabled$:pn,autoQualityLimitingAvailable$:Mi,availableVideoStreams$:en,availableAudioStreams$:Sr,videoStream$:Vi,audioStream$:Un,currentQuality$:cr,isAutoQualityEnabled$:qn,availableQualities$:mt,currentPlaybackRate$:Jt,availablePlaybackRates$:ur,currentSubtitle$:Fi,availableTextTracks$:kn,availableSubtitlesList$:xo,currentSubtitleCaptions$:Tr,isAutoSubtitleCaptionVisible$:qr,chromecastState$:Xo,chromecastDeviceName$:Tn,chromecastConnected$:ar,currentFormat$:En,throughputEstimation$:pi,videoBitrate$:Ro,videoSize$:Hn,errorLog$:Yt,crashed$:oe,isAudioAvailable$:Li,isAudioDisabled:!!l,canDownload:ie.features.download&&!!d,availableSources$:Er,hasMpegSources$:wo,isInteractive:S,showInteractiveGraph:ie.features.interactiveGraph,showSeekToInteractive:ie.features.seekToInteractive,showPlayPrevChapter:ie.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:ie.features.interactiveTimeIndicator&&!!Se(Jr).length,interactiveEpisodes$:Jr,isInteractiveTime$:E?oi(E):ae(!1),isInteractiveExpectation$:bn,hasInteractiveBranches:I,playPrevChapterDisabledTooltip:R,looped$:po,loadedMetadata$:Kt,isAutoQualityAvailable$:Oo},ui:{t:le,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:Z.length?Z.reduce(c=>[...c,ae(void 0)],[]):[],disabledControls$:Be},modals:{hotKeyMap:{show:ae(!1),data:ae({title:"",closeBtnText:"",groups:[]})}},isFullscreen:at,isFullscreenOpenedByKeyboard:bt,rotateAlpha:Qe,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:tt,isMobile:Ni,mobileNotReportControlHidden$:Oi,icon3DVideoVisible:ae(!1),scrubbingInProgress:qe,volumeChangingInProgress:Ii,is3DVideo:ti,currentGridType$:Et,additionalButtonsDeprecated$:Uo,additionalDesktopControlPanelRightButtons$:Xr,additionalSettingsMenuItems$:Ui,additionalContextMenuItems$:no,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)},aboutToGoNextVideo:ae(void 0),userActionsDisabled:ae(!1),hiddenControls:{volume:ae(!1),vkLogo:ae(!1),pip:ae(!1),chromecast:ae(!1),settings:ae(!1)},isControlsAvailable:_o,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)},ads:{position:ae(0),duration:ae(0),playbackState:ae("inactive"),canSkip:ae(!1),secondsToWatchBeforeSkip:ae(0),postrollPassed:ae(!1)},webApi:{pictureInPictureApi:ue,annotationsApi:me,slotsApi:ve},actions:{internal:{preload:gn,firstStart:c=>Kl(c,!1),play:()=>Wl(!1),pause:()=>zl(!1),togglePlay:Pr,toggleMuted:ii,openSettingsMenu:Gr,closeSettingsMenu:on,openSettingsSubMenu:St,closeSettingsSubMenu:Ir,setVolume:So,startVolumeChanging:bo,stopVolumeChanging:ot,setVideoStream:zn,setAudioStream:lr,setQuality:lt,setTrafficSavingEnabled:Mt,setHighQualityEnabled:_i,setPlaybackRate:go,incrementPlaybackRate:ho,decrementPlaybackRate:nn,setSubtitle:rn,toggleSubtitle:Mn,togglePictureInPicture:si,startScrubbing:ei,progressScrubbing:Ei,completeScrubbing:It,toggleChromecast:Pc,switchToActiveLive:Zs,switchFromAdsToVideo:up,switchFromVideoToAds:Tc,skipAd:Ga,setLiveWaitingStart:pp,setLiveWaitingRecover:Ec,setLiveWaitingRecord:fp,getDebugTextData:Ic,getTraceTextData:mp,getDebugPanelData:kc,getVideoElement:Xs,seekTime:(c,x,M)=>To(c,x,M),clearDelayedBufferingCheckTimeout:nr,seekEpisodeStartTime:fr,seekToPercent:Qn,getNextEpisode:Gl,seekToNextEpisode:gp,getPrevEpisode:Ac,seekToPrevEpisode:hp,startLogging:Ht,stopLogging:ui,startCameraManualRotation:Ft,stopCameraManualRotation:yt,moveCameraFocusPX:Hi,holdCamera:Vo,releaseCamera:G,getVideoEpisodes:ql,getPreviewThumbsData:je,downloadVideo:tn,addLanguage:If,setLanguage:qt,nextMovie:yi,videoRotate:Wo,correctSeekTimeToInteractive:Qv,replayInteractive:V,setLooped:Co,reportProblem:fo,setAutoplayNextEnabled:Gn,setTimerNextVideoRunning:Qi,prevVideoClick:Ho,nextVideoClick:An,nextVideoAnnouncementShow:Qr,nextVideoAnnouncementClick:ps,nextVideoAnnouncementAuto:jr,nextVideoAnnouncementCancel:mo,checkFullscreenSupport:gt},external:{firstStart:c=>Kl(c,!0),play:()=>Wl(!0),pause:()=>zl(!0),stop:()=>vp(!0),seekTime:c=>mr(c),seekEpisodeStartTime:c=>fs(c),setPlaybackRate:c=>Zr(c),setAutoQualityLimits:c=>Yr(c),setMuted:Do,toggleSubtitle:Mn,setVolume:So,returnFocusToEpisodes:q0,updateAdditionalSettingsItem:Ys,addAdditionalSettingsItem:qa,removeAdditionalSettingsItem:$t,updateAdditionalContextItem:_n,addAdditionalContextItem:zi,removeAdditionalContextItem:ci,updateAdditionalButton:hn,addAdditionalButton:gr,removeAdditionalButton:hr,setLiveLowLatency:zo,hideControls:()=>oo(!1),showControls:()=>oo(!0)}},callbacks:a,setUiCallbacks:c=>{J=z({},c)},getAdmanWrapper:()=>_e,getLogger:()=>Ue,getPlayer:()=>N,destroy:G0};return Lt};function Bn(t,e,i,o){var f;let n=(f=e[i])==null?void 0:f.getBoundingClientRect(),s=o&&!!n&&!!(n.right-n.left),{top:l,left:d,bottom:a,right:u}=ws(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 yy=["disabledControls$","additionalButtons"],xy=["interactiveTimeIndicator"],Pl=(t,e,i,o)=>{if(t){for(let[n,s]of Object.entries(e))if(!yy.includes(n)){let l=o||xy.includes(n);s.set(Bn(t,i,n,l))}}};var Du=(t,e,i)=>xt(null,null,function*(){yield ko(),e&&i&&(i.focus(),t.set(!1))});var wy=Ee('<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 Tm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=wy();Ae(o,()=>z({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"dots-icon",role:"img"},i));var n=_(o);we(n,()=>{var s;return(s=e.children)!=null?s:de}),Te(),h(o),b(t,o)}function Em(t,e){F(e,!0);let[i,o]=He(),n=()=>C(a,"$contextMenuVisible$",i),s=m(e,"disabled",3,!1),l=m(e,"ariaLabel",3,""),d=ke(),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$,y=Y(void 0);We(()=>{r(y)&&wt(()=>{p.set(r(y))})});let w=E=>{let V=Fs(E),k=O1(r(y));v.set(k),u.set(V),a.set(!n())},$=()=>{f.set(!0)},S=()=>{f.set(!1)},T=g(()=>n()?"opened":"");Ot(t,{get className(){return r(T)},testId:"btn-context-menu",get disabled(){return s()},get ariaLabel(){return l()},click:w,focus:$,blur:S,get ariaExpanded(){return n()},get ref(){return r(y)},set ref(E){O(y,E,!0)},children:(E,V)=>{Tm(E,{})},$$slots:{default:!0}}),U(),o()}var Sy=t=>{t.stopPropagation()},Cy=A("<div><!> <div></div> <div></div></div>"),Ty={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;}
223
+ }`};function hm(t,e){U(e,!0),G(t,J2);let i=m(e,"isMobile",3,!1),o=g(()=>e.iconState===gm.ChromecastState.CONNECTED),n=g(()=>e.iconState===gm.ChromecastState.CONNECTING);var s=qe(),l=he(s);{var d=u=>{var f=Z2(),v=_(f),p=_(v),y=_(p);Ce(),h(p);var w=P(p);Ce(),h(v);var $=P(v),C=_($),T=_(C);h(C),Ce(),h($),h(f),B(()=>{ze(y,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),ze(w,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),ze(T,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)")}),b(u,f)},a=u=>{var f=X2();let v;var p=_(f),y=P(_(p),5);let w;h(p),h(f),B(($,C)=>{v=te(f,0,"svelte-8z1bf5",null,v,$),w=te(y,0,"svelte-8z1bf5",null,w,C)},[()=>({connecting:r(n)}),()=>({hidden:!r(o)})]),b(u,f)};V(l,u=>{i()?u(d):u(a,!1)})}b(t,s),z()}var Y1=require("@vkontakte/videoplayer-shared/es2015");function Wd(t,e){U(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"click",3,Y1.noop),l=Ie().ui.t,d=g(()=>e.state===j1.ChromecastState.CONNECTED?l("tooltip_chromecast_on"):l("tooltip_chromecast_off"));Ft(t,{get ariaLabel(){return r(d)},get click(){return n()},testId:"btn-chromecast",get ref(){return i()},set ref(a){i(a)},children:(a,u)=>{hm(a,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),z()}var ey=A('<div class="tooltip-wrapper svelte-5ygsa2"><div><!></div></div>'),ty={hash:"svelte-5ygsa2",code:'.tooltip-wrapper.svelte-5ygsa2 {position:relative;display:block;}.tooltip.svelte-5ygsa2 {position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;transform:translateX(-50%);}.pointer.svelte-5ygsa2: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-5ygsa2 {opacity:1;visibility:visible;}'};function _m(t,e){G(t,ty);let i=m(e,"active",3,!1),o=m(e,"pointer",3,!1),n=m(e,"translateXPx",3,0),s=m(e,"translateYPx",3,0),l=m(e,"leftOffset",3,0),d=m(e,"rightOffset",3,0),a=Y(void 0),u=Y(void 0);function f(C){if(!r(u))return 0;let{width:T}=r(u).getBoundingClientRect(),I=T/2;return C<I?I+l():C>e.containerWidth-I?e.containerWidth-I-d():C}let v=g(()=>f(n()));var p=ey(),y=_(p);let w;var $=_(y);ye($,()=>{var C;return(C=e.children)!=null?C:ae}),h(y),nt(y,C=>O(u,C),()=>r(u)),h(p),nt(p,C=>O(a,C),()=>r(a)),B(C=>{rt(p,`transform: translate(${r(v)}px, ${s()}px);`),w=te(y,1,"tooltip svelte-5ygsa2",null,w,C),rt(y,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),b(t,p)}var Mu=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var Z1=t=>!!(Math.round(Math.abs(t)/90)%2),X1=t=>Math.abs(t)/90%4===1;var iy=A('<div class="preview svelte-1wqg760"></div>'),oy=A('<div class="time svelte-1wqg760"> </div>'),ny=A('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),ry={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 bm(t,e){U(e,!0),G(t,ry);let[i,o]=Ue(),n=()=>S(w,"$rotateAlpha",i),s=()=>S($,"$playerSize",i),l={MOBILE:150,DESKTOP:278},d=m(e,"time",3,""),a=m(e,"isMobile",3,!1),u=m(e,"videoEpisodes",19,()=>[]),f=m(e,"progress",3,0),v=m(e,"duration",3,0),p=m(e,"isInteractive",3,!1),y=Ie(),w=y.ui.rotateAlpha,$=y.ui.playerSize,C=Y(0),T=Y(0),I=Y(""),M=Y(0),k=Y(0),E=Y(0),R=Y(0),X=g(()=>Mu(f(),v(),u())),D=g(()=>Z1(n())),H=g(()=>X1(n())),K=g(ce),J=g(()=>(r(H)?1:-1)*(r(C)/2-r(T)/2)),j=g(()=>r(J)*-1);Ge(()=>{(ee=>{O(C,ee.width,!0),O(T,ee.height,!0)})(pe())}),Ge(()=>{(ee=>{O(I,ee.imgSrc,!0),O(M,ee.imgWidth,!0),O(k,ee.imgHeight,!0),O(E,ee.imgOffsetX,!0),O(R,ee.imgOffsetY,!0)})(be(f()))});function ce(){var me;let ee=a()?l.MOBILE:l.DESKTOP,{isVertical:ve}=oe(),De=30;return(me=r(X))!=null&&me.text&&(De+=16),(ve||r(D))&&(De+=18,De+=50),Math.min(Math.max(s().height-De,0),ee)}function oe(){let ee=e.previewThumbsData.frameWidth,ve=e.previewThumbsData.frameHeight,De=ve>ee;return{width:ee,height:ve,isHorizontal:!De,isVertical:De}}function pe(){let{height:ee,isHorizontal:ve,isVertical:De,width:me}=oe();return ve&&(ee=ee/me*r(K),me=r(K)),De&&(me=me/ee*r(K),ee=r(K)),{width:me,height:ee}}function be(ee){let ve;e.previewThumbsData.isUV?ve=Math.floor(v()*ee/e.previewThumbsData.frequency):ve=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*ee)));let De=Math.floor(ve/e.previewThumbsData.countPerImage),me=Math.floor(ve%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),at=ve%e.previewThumbsData.countPerRow,Z=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&De===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(Z=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&Z++);let Me=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&De===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(Me=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Ee=r(C)*Me,We=r(T)*Z,tt=-at*r(C),bt=-me*r(T);return{imgSrc:e.previewThumbsData.links[De],imgWidth:Ee,imgHeight:We,imgOffsetX:tt,imgOffsetY:bt}}var fe=ny();let ke;var ne=_(fe);{var Le=ee=>{var ve=iy();B(()=>rt(ve,`width: ${r(C)}px; height: ${r(T)}px; background-image: url(${r(I)}); background-size: ${r(M)}px ${r(k)}px; background-position: ${r(E)}px ${r(R)}px;
224
+ transform: rotate(${n()}deg) ${r(D)?`translate(${r(J)}px, ${r(j)}px)`:""};
225
+ `)),b(ee,ve)};V(ne,ee=>{r(I)&&ee(Le)})}var se=P(ne,2),N=_(se);{var Be=ee=>{var ve=qe(),De=he(ve);{var me=Z=>{var Me=os();B(Ee=>$e(Me,Ee),[()=>q("tooltip_episode_unfinished")]),b(Z,Me)},at=Z=>{var Me=os();B(()=>$e(Me,r(X).text||"")),b(Z,Me)};V(De,Z=>{p()&&r(X).completed===!1?Z(me):Z(at,!1)})}b(ee,ve)};V(N,ee=>{r(X)&&ee(Be)})}h(se);var ue=P(se,2);{var ge=ee=>{var ve=oy(),De=_(ve,!0);h(ve),B(()=>$e(De,d())),b(ee,ve)};V(ue,ee=>{p()||ee(ge)})}h(fe),B(ee=>{ke=te(fe,1,"timeline-preview svelte-1wqg760",null,ke,ee),rt(fe,`width: ${r(D)?r(T):r(C)}px;`)},[()=>({mobile:a()})]),b(t,fe),z(),o()}var sy=A('<span class="time svelte-1jr6obn"> </span>'),ay=A("<!> <!>",1),ly={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 $m(t,e){var de,Ne,Fe,Ve,Ke;U(e,!0),G(t,ly);let[i,o]=Ue(),n=()=>S(J,"$interactiveEpisodes$",i),s=()=>S(E,"$duration$",i),l=()=>S(k,"$position$",i),d=()=>S(oe,"$isInteractiveExpectation$",i),a=()=>S(ce,"$isInteractiveTime$",i),u=()=>S(R,"$isLive$",i),f=()=>S(D,"$isMobile",i),v=()=>S(X,"$isActiveLive$",i),p=()=>S(M,"$bufferedProgress$",i),y=()=>S(fe,"$disabledControls$",i),w=m(e,"showTimeline",3,!1),$=m(e,"withEpisodes",3,!0),C=m(e,"ref",15,void 0),T=Ie(),I=At(),M=T.state.bufferedProgress$,k=T.state.positionWithScrubbing$,E=T.state.duration$,R=T.state.isLive$,X=T.state.isActiveLive$,D=T.ui.isMobile,H=I.features.episodes&&$()?T.actions.internal.getVideoEpisodes():void 0,K=T.actions.internal.getPreviewThumbsData(),J=T.state.interactiveEpisodes$,j=T.state.isInteractive,ce=T.state.isInteractiveTime$,oe=T.state.isInteractiveExpectation$,pe=T.actions.internal.correctSeekTimeToInteractive,be=(de=T.callbacks)==null?void 0:de.onDisabledTimelineClick,fe=T.ui.controls.disabledControls$,ke=(Fe=(Ne=T.callbacks)==null?void 0:Ne.uiInfo)==null?void 0:Fe.onTimelineMouseEnter,ne=(Ke=(Ve=T.callbacks)==null?void 0:Ve.uiInfo)==null?void 0:Ke.onTimelineMouseLeave,Le=T.ui.t,se=I.features.interactiveResponsiveUi,N=g(()=>j?n():H),Be=g(()=>wn(s())),ue=g(()=>wn(l())),ge=g(()=>l()/s()),ee=g(()=>d()||a()),ve=Y(!1),De=Y(""),me=Y(0),at=Y(0),Z=Y(0),Me=g(()=>({containerWidth:r(at),translateXPx:r(me),translateYPx:j&&K?-36:-16,active:r(ve)&&w()&&!r(ee)&&!se,pointer:!I.features.timelinePreview||!K||u()})),Ee=Le("aria_timeline"),We=g(()=>Le("aria_timeline_value",{position:r(ue),duration:r(Be)}));function tt(He){return!pe||!j?He:pe(He*s())/s()}function bt(He){T.actions.internal.startScrubbing(tt(He))}function Mt(He){a()||T.actions.internal.progressScrubbing(tt(He))}function mt(He){T.actions.internal.completeScrubbing(tt(He)),O(ve,!1)}function Qe(He,Xe,kt){Qt(He,Xe,kt),O(ve,!0)}function Gt(He,Xe,kt){Qt(He,Xe,kt),O(ve,!0)}function ii(){O(ve,!1)}function Qt(He,Xe,kt){O(Z,tt(He),!0),O(me,Xe,!0),kt&&O(at,kt,!0),O(De,Xt(He),!0)}function Xt(He){let Xe=wn((u()?1-He:He)*s());return u()?`-${Xe}`:Xe}var le=ay(),Ot=he(le);_m(Ot,bs(()=>r(Me),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(He,Xe)=>{var kt=qe(),Jt=he(kt);{var ot=mi=>{bm(mi,{get time(){return r(De)},get isMobile(){return f()},get videoEpisodes(){return r(N)},get previewThumbsData(){return K},get progress(){return r(Z)},get duration(){return s()},get isInteractive(){return j}})},fi=mi=>{var dt=sy(),jt=_(dt,!0);h(dt),B(()=>$e(jt,r(De))),b(mi,dt)};V(Jt,mi=>{I.features.timelinePreview&&K&&!u()?mi(ot):mi(fi,!1)})}b(He,kt)},$$slots:{default:!0}}));var we=P(Ot,2);let _e=g(()=>y().has("TIMELINE"));ka(we,{className:"timeline-slider",get isActiveLive(){return v()},get isMobile(){return f()},get ariaLabel(){return Ee},ariaValueMin:0,get ariaValueMax(){return s()},get ariaValueNow(){return l()},get ariaValueText(){return r(We)},get loadedProgress(){return p()},get filledProgress(){return r(ge)},get handleProgress(){return r(ge)},get videoEpisodes(){return r(N)},onPointerDown:bt,onHandleMove:Mt,onPointerMove:Gt,onPointerUp:mt,onPointerEnter:Qe,onPointerLeave:ii,get onMouseEnter(){return ke},get onMouseLeave(){return ne},get onDisabledClick(){return be},get isInteractive(){return j},get disabled(){return r(_e)},get hideHandel(){return a()},testId:"progress_bar",onContextMenu:mt,get ref(){return C()},set ref(He){C(He)}}),b(t,le),z(),o()}var dy={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 Kd(t,e){U(e,!0),G(t,dy);let[i,o]=Ue(),n=()=>S(a,"$isMobile",i),s=m(e,"position",3,0),l=m(e,"duration",3,0),d=Ie(),a=d.ui.isMobile,u=d.ui.t,f=g(()=>wn(l())),v=g(()=>wn(s())),p=g(()=>s()/l()),y=g(()=>u("aria_timeline_value",{position:r(v),duration:r(f)})),w=g(()=>Math.round(r(p)*100));ka(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return l()},get ariaValueNow(){return r(w)},get ariaValueText(){return r(y)},get filledProgress(){return r(p)},hideHandel:!0,get squareBorders(){return n()}}),z(),o()}var cy=A("<div><!></div>"),uy=A("<div></div>"),py={hash:"svelte-41cp6d",code:".timeline.svelte-41cp6d {position:relative;pointer-events:all;display:flex;align-items:center;bottom:0;width:100%;min-width:86px;padding:3px var(--timeline-padding-horizontal) 4px;box-sizing:border-box;}.timeline.mobile.svelte-41cp6d {height:16px;padding:6px 12px 7px;margin-top:6px;}.withoutPadding.svelte-41cp6d {padding:0;}.timeline-stub.svelte-41cp6d {width:100%;min-width:20px;}.timeline-stub.mobile.svelte-41cp6d {height:8px;}"};function Pa(t,e){U(e,!0),G(t,py);let[i,o]=Ue(),n=()=>S(C,"$isLive$",i),s=()=>S(M,"$isMobile",i),l=()=>S(k,"$disabled",i),d=()=>S(I,"$adPosition",i),a=()=>S(T,"$adDuration",i),u=m(e,"isAds",3,!1),f=m(e,"isHidden",3,!1),v=m(e,"timelineNotAvailable",3,!1),p=m(e,"needPadding",3,!0),y=m(e,"ref",15,void 0),w=Ie(),$=At(),C=w.state.isLive$,T=w.ads.duration,I=w.ads.position,M=w.ui.isMobile,k=re(!1),E=g(()=>!v()&&(!n()||n()&&e.canRewindLive&&e.isRewindableLive||u()));var R=qe(),X=he(R);{var D=K=>{var J=cy();let j;var ce=_(J);{var oe=be=>{Kd(be,{get position(){return d()},get duration(){return a()}})},pe=be=>{$m(be,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return r(E)},get withEpisodes(){return e.withEpisodes},get ref(){return y()},set ref(fe){y(fe)}})};V(ce,be=>{u()?be(oe):be(pe,!1)})}h(J),_s(J,()=>$l(f()&&$.features.usePerformanceFix,k,$.disableInvisibleComponentsTimeout)),B(be=>j=te(J,1,"timeline svelte-41cp6d",null,j,be),[()=>({withoutPadding:!p(),mobile:s(),"out-of-flow":l()})]),b(K,J)},H=K=>{var J=uy();let j;B(ce=>j=te(J,1,"timeline-stub svelte-41cp6d",null,j,ce),[()=>({mobile:s()})]),b(K,J)};V(X,K=>{r(E)?K(D):K(H,!1)})}b(t,R),z(),o()}var J1=require("@vkontakte/videoplayer-shared/es2015");var fy=Te('<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 ym(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=fy();Pe(o,()=>W({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 n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Ce(3),h(o),b(t,o)}var my=Te('<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 xm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=my();Pe(o,()=>W({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 n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Ce(),h(o),b(t,o)}var vy=A('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),gy=A('<span class="text svelte-1yhs2ga"> </span>'),hy=A('<span class="text count svelte-1yhs2ga"> </span>'),_y=A("<!> <!>",1),by={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 qd(t,e){var oe,pe,be;U(e,!0),G(t,by);let[i,o]=Ue(),n=()=>S(w,"$currentGridType$",i),s=()=>S($,"$openedByKeyboard$",i),l=()=>S(C,"$panelOpened$",i),d=()=>S(T,"$isMobile",i),a=m(e,"position",3,0),u=m(e,"duration",3,0),f=m(e,"timeCodes",19,()=>[]),v=Ie(),p=(pe=(oe=v.callbacks)==null?void 0:oe.onEpisodeChanged)!=null?pe:J1.noop,y=!!((be=v.callbacks)!=null&&be.onEpisodeClicked),w=v.ui.currentGridType$,$=v.ui.episodes.openedByKeyboard$,C=v.ui.episodes.panelOpened$,T=v.ui.isMobile,I=v.ui.t,M=Y(void 0),k=fe=>{var ne,Le,se;if(!!((ne=v.callbacks)!=null&&ne.onEpisodeClicked)){let N=Ds(fe);$.set(N),C.set(!0),(se=(Le=v.callbacks)==null?void 0:Le.onEpisodeClicked)==null||se.call(Le,N)}},E=Y(null),R=g(()=>a()/u());Ge(()=>{var ke;let fe=Mu(r(R),u(),f());fe?((ke=r(E))==null?void 0:ke.time)!==fe.time&&(p(fe),O(E,fe,!0)):O(E,null)});let X=g(()=>{var fe;return((fe=r(E))==null?void 0:fe.text)||""}),D=g(()=>to(n(),"xl")?"FULL":to(n(),"m")&&q1(n(),"xl")?"COUNT":"SHORT"),H=g(()=>`${I("tooltip_episodes")}: ${r(X)}`),K=(fe,ke,ne)=>St(null,null,function*(){yield Ao(),(fe==null?void 0:fe.getAttribute("aria-expanded"))==="false"&&ke&&!ne&&Ct(()=>{$.set(!1),fe.focus()})});Ge(()=>{K(r(M),s(),l())});var J=qe(),j=he(J);{var ce=fe=>{let ke=g(()=>d()?"px-0":""),ne=g(()=>!y);Ft(fe,{get className(){var Le;return`w-max btn-full-opacity btn-jc-l ${(Le=r(ke))!=null?Le:""}`},testId:"btn-episodes",click:k,get disabled(){return r(ne)},get ariaExpanded(){return l()},get ariaLabel(){return r(H)},get ref(){return r(M)},set ref(Le){O(M,Le,!0)},children:(Le,se)=>{var N=qe(),Be=he(N);{var ue=ee=>{var ve=vy(),De=he(ve),me=_(De,!0);h(De);var at=P(De,2),Z=_(at);xm(Z,{}),h(at),B(()=>$e(me,r(X))),b(ee,ve)},ge=ee=>{var ve=_y(),De=he(ve);ym(De,{});var me=P(De,2);{var at=Me=>{var Ee=gy(),We=_(Ee,!0);h(Ee),B(()=>$e(We,r(X))),b(Me,Ee)},Z=(Me,Ee)=>{{var We=tt=>{var bt=hy(),Mt=_(bt,!0);h(bt),B(()=>$e(Mt,f().length)),b(tt,bt)};V(Me,tt=>{r(D)==="COUNT"&&tt(We)},Ee)}};V(me,Me=>{r(D)==="FULL"?Me(at):Me(Z,!1)})}b(ee,ve)};V(Be,ee=>{d()?ee(ue):ee(ge,!1)})}b(Le,N)},$$slots:{default:!0}})};V(j,fe=>{r(E)&&fe(ce)})}b(t,J),z(),o()}var Om=require("@vkontakte/videoplayer-shared/es2015");var pi=require("@vkontakte/videoplayer-core/es2015"),vt=require("@vkontakte/videoplayer-shared/es2015"),ls=require("@vkontakte/videoplayer-statistics/es2015");var Ye=require("@vkontakte/videoplayer-shared/es2015"),io=require("@vkontakte/videoplayer-shared/es2015");var e_=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var $y="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",Lu=class{constructor(e,i){this.adman=null;this.initialVolume=1;this.videoElement=null;this.currentAdSection=null;this.actions=null;this.adsState=null;this.playerState=null;this.events={init$:new io.Subject,loadStarted$:new io.Subject,loadEnded$:new io.Subject,loadError$:new io.Subject,ready$:new io.Subject,slotRequested$:new io.Subject,started$:new io.Subject,timeRemained$:new io.Subject,paused$:new io.Subject,resumed$:new io.Subject,ended$:new io.Subject,empty$:new io.Subject,skipped$:new io.Subject,clicked$:new io.Subject,closed$:new io.Subject,error$:new io.Subject};this.loadAdman=e=>(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[(0,Ye.now)()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let s=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[(0,Ye.now)()]}),i(),this.events.loadEnded$.next()):(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[(0,Ye.now)()]}),o())};(0,io.addScript)($y,e,this.loadTimeout).then(()=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[(0,Ye.now)()]}),window.AdmanHTML?(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[(0,Ye.now)()]}),i(),this.events.loadEnded$.next()):(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[(0,Ye.now)()]}),window.admanAsyncInit=s,n=window.setTimeout(s,this.initTimeout))}).catch(l=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(l)],numbers:[(0,Ye.now)()]}),o(),clearTimeout(n)})});this.loadAdmanNPM=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let s=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[(0,Ye.now)()]}),i(),this.events.loadEnded$.next()):(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[(0,Ye.now)()]}),o())},l=()=>{d=!0,o()},d=!1,a=window.setTimeout(()=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[(0,Ye.now)()]}),l()},this.loadTimeout);e.addEventListener("abort",l),e.aborted&&(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[(0,Ye.now)()]}),l()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[(0,Ye.now)()]}),!d&&(window.AdmanHTML?(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[(0,Ye.now)()]}),i(),this.events.loadEnded$.next()):(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[(0,Ye.now)()]}),window.admanAsyncInit=s,n=window.setTimeout(s,this.initTimeout)))},l).finally(()=>{clearTimeout(n),clearTimeout(a),e.removeEventListener("abort",l)})});this.onAdsReady=()=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[(0,Ye.now)()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[(0,Ye.now)(),i.bannerID]}),this.adsState&&this.playerState&&this.actions?(this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(i)}`}),this.events.started$.next(e),i.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"})),this.adsState.duration.set(i.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(i.allowClose),this.adsState.secondsToWatchBeforeSkip.set(i.allowCloseDelay),this.startWatchDog()):this.onAdError("Started callback failed: Adman is not initialized")};this.onAdTimeRemained=e=>{this.adsState?(this.adsState.position.set(e.currentTime),this.events.timeRemained$.next(e),this.startWatchDog()):this.onAdError("TimeRemained callback failed: Adman state is not initialized")};this.onAdPaused=()=>{var e;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.stopWatchDog(),this.adsState?(this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")):this.onAdError("Paused callback failed: Adman state is not initialized")};this.onAdPlayed=()=>{var e;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.startWatchDog(),this.adsState?(this.log({message:"ad played"}),this.adsState.playbackState.set("playing")):this.onAdError("Player callback failed: Adman is not initialized")};this.onAdMidrollPoint=()=>{if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[(0,Ye.now)()]}),this.adman&&this.actions){this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch(e){this.onAdError("could not start midroll")}}else this.onAdError("Midroll callback failed: Adman is not initialized")};this.onAdSkipped=()=>{var e;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.log({message:"ad completed"}),this.currentAdSection?this.events.ended$.next(this.currentAdSection):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{var e,i;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.log({message:"ad clicked"}),(i=this.videoElement)==null||i.pause(),this.currentAdSection&&this.events.clicked$.next(this.currentAdSection),this.stopWatchDog()};this.onAdError=(e="ad error")=>{Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[(0,Ye.now)()]}),this.log({message:e}),this.events.error$.next(e),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[(0,Ye.now)()]}),this.loadTimeout=i.loadTimeout,this.initTimeout=i.initTimeout,this.runtimeTimeout=i.runtimeTimeout,this.useAdmanFromNPM=i.useAdmanFromNPM,this.volumeMultiplier=Math.max(0,Math.min(i.volumeMultiplier,1)),this.isVsidOriginal=i.isVsidOriginal,this.usePuid=i.usePuid}init(e,i,o){this.actions=e,this.adsState=i,this.playerState=o}onAdmanLoadingError(){this.onAdError("adman loading error")}initAdman(e){var M;if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[(0,Ye.now)(),e.slotId]}),this.adman)return;this.events.init$.next(e.slotId),this.startWatchDog();let{width:i,height:o,isFullscreen:n,isAutoplay:s,adsContainer:l,adsVideoElement:d,slotId:a,params:u={},duration:f,previewParam:v}=e,p,y=this.playerState&&xe(this.playerState.vsid);y&&(this.isVsidOriginal?p=y:p=parseInt(y,36));let{isEmbed:w,immediateOrigin:$}=(0,Ye.detectEmbed)(),C=(M=w?$:window.location.href)!=null?M:window.location.href,T=W(Ut(W(Ut(W({},u),{dl:encodeURIComponent(C),autoplay:s?1:0,player_width:i,player_height:o,preview:v}),p?{request_id:p}:{}),{duration:f}),this.usePuid?{puid10:e_(i,o),puid11:n?0:1}:{});v||delete T.preview;let I={slot:a,wrapper:l,videoEl:d,videoQuality:o,params:T,browser:{mobile:!1}};try{let k=new window.AdmanHTML;k.setDebug(!1),k.onReady(this.onAdsReady),k.onStarted(this.onAdStarted),k.onPlayed(this.onAdPlayed),k.onPaused(this.onAdPaused),k.adMidrollPoint(this.onAdMidrollPoint),k.onClosed(this.onAdClosed),k.onSkipped(this.onAdSkipped),k.onClicked(this.onAdClicked),k.onTimeRemained(this.onAdTimeRemained),k.onCompleted(this.onAdCompleted),k.onError(this.onAdError),k.init(I),this.adman=k,this.videoElement=d,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(I)}`})}catch(k){Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(k)],numbers:[(0,Ye.now)()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,n,s;if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[(0,Ye.now)()]}),this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}let i=this.currentAdSection==="postroll";if(this.actions){if(this.adsState&&this.playerState)this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.log({message:`switch to video, isPostroll: ${i}`}),i&&(this.adsState.postrollPassed.set(!0),this.log({message:"postroll passed"}));else{let l="Switch to video: Adman state was not updated correctly";this.log({message:l}),this.events.error$.next(l)}(s=(n=this.actions).switchFromAdsToVideo)==null||s.call(n,!i)}}togglePlay(){var e;if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.adsState){this.log({message:"toggle play"});let i=xe(this.adsState.playbackState);i==="playing"?this.pause():i==="paused"&&this.play()}else this.onAdError("Can not toggle play: Adman state is not initialized")}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){let i=e*this.volumeMultiplier;if(this.log({message:`set volume ${i}`}),this.adman)try{this.adman.setVolume(i)}catch(o){this.onAdError("could not set ad volume")}this.videoElement&&(this.videoElement.volume=i)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch(i){this.onAdError("could not set ad fullscreen")}}startPreroll(){if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[(0,Ye.now)()]}),this.adman){if(!this.isDestroyed){this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.startWatchDog();try{this.adman.start("preroll")}catch(e){this.onAdError("could not start preroll")}}}else this.onAdError("Can not start preroll: Adman is not initialized")}startPostroll(){var e;if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch(i){this.onAdError("could not start postroll")}}else this.onAdError("Can not start postroll: Adman is not initialized")}startWatchDog(){var i;this.watchDogTimeout&&this.stopWatchDog(),((i=this.adsState)!=null&&i.playbackState?xe(this.adsState.playbackState):void 0)!=="inactive"&&(this.watchDogTimeout=window.setTimeout(()=>this.onAdError("Watchdog timeout"),this.runtimeTimeout))}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){var e;if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.adman){this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch(i){this.onAdError("could not resume ad")}}else this.onAdError("Can not play: Adman is not initialized")}pause(){var e;if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch(i){this.onAdError("could not pause ad")}}else this.onAdError("Can not pause: Adman is not initialized")}skip(){var e;if(Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[(0,Ye.now)()]}),this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch(i){this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}setPosition(e,i){var o;(o=this.adman)==null||o.setPosition(Math.floor(e),Math.floor(i))}destroy(){var e,i,o,n,s,l,d,a,u,f,v,p;Ye.devNull.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[(0,Ye.now)()]}),this.log({message:"destroy"}),this.stopWatchDog(),(e=this.adman)==null||e.onReady(void 0),(i=this.adman)==null||i.onStarted(void 0),(o=this.adman)==null||o.onPlayed(void 0),(n=this.adman)==null||n.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,io.clearVideoElement)(this.videoElement),this.isDestroyed=!0}};var t_=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 wm=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e,i){let o=[],n=e.split(this.twoLinesRegExp);for(let s of n){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 Vu,{startTime:f,endTime:v}=u.parse(a);l.startTime=f,l.endTime=v}else if(a.trim()!==""){let u=new Sm,{texts:f}=u.parse(a);l.texts=[...l.texts,...f]}(l.startTime||l.endTime)&&l.texts.length>0&&o.push(l)}return o}},Vu=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",n="0"){let s=Number(e)*60*60,l=Number(i)*60,d=Number(o),a=+`0.${n}`;return s+l+d+a}},Sm=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},n=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 Vu;for(let l of n)s.isTime(l)?i.texts.push({type:"timestamp",value:s.parseTime(l)}):i.texts.push({type:"text",value:l});return i}},i_=wm;var Nu=require("@vkontakte/videoplayer-shared/es2015"),Aa,Pi,Cm=0,Tm=!1,o_="",n_=(t,e=0,i=0)=>t<e&&t<i,Ru=(t,e=0,i=0)=>t>=e&&t<=i,yy=(t,e=0,i=0)=>t>e&&t>i,r_=(t,e,i,o=!1)=>{var d;let n=(d=i.find(({id:a})=>a===e.value))==null?void 0:d.subtitles;if(o)return n==null?void 0:n.find(({startTime:u,endTime:f})=>Ru(t,u,f));let s=t>=Cm,l=t<Cm;if(Cm=t,l&&(Tm=!1),(0,Nu.isNonNullable)(Aa)&&Ru(t,Aa.startTime,Aa.endTime)&&o_===e.value)return Aa;if(!(0,Nu.isNonNullable)(Pi)&&(n!=null&&n.length)&&!Tm){Pi=n.find(({startTime:u,endTime:f})=>Ru(t,u,f)||s&&n_(t,u,f)),Aa=void 0,!(0,Nu.isNonNullable)(Pi)&&n[n.length-1].endTime<t&&(Tm=!0);return}else{if(Ru(t,Pi==null?void 0:Pi.startTime,Pi==null?void 0:Pi.endTime))return Aa=Pi,Pi=void 0,o_=e.value,Aa;(s&&yy(t,Pi==null?void 0:Pi.startTime,Pi==null?void 0:Pi.endTime)||l&&n_(t,Pi==null?void 0:Pi.startTime,Pi==null?void 0:Pi.endTime))&&(Pi=void 0)}};var Ou={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"},xy={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"},Bu=t=>{var e,i;return(i=(e=Ou[t])!=null?e:Ou[xy[t]])!=null?i:void 0};var s_=require("@vkontakte/videoplayer-shared/es2015"),jB=require("@vkontakte/videoplayer-statistics/es2015"),Du=class{constructor(e,i,o,n=new s_.Subscription){this.oneStat=e;this.thinOneStat=i;this.mediascopePixel=o;this.statSubscription=n}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 Gd=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(Gd||{});var as=t=>t!=null?t:0,ys=(t,e)=>{var n,s;let i=(n=t==null?void 0:t.getBoundingClientRect)==null?void 0:n.call(t),o=(s=e==null?void 0:e.getBoundingClientRect)==null?void 0:s.call(e);return{top:Math.round(as(i==null?void 0:i.top)-as(o==null?void 0:o.top)),left:Math.round(as(i==null?void 0:i.left)-as(o==null?void 0:o.left)),bottom:Math.round(as(i==null?void 0:i.bottom)-as(o==null?void 0:o.top)),right:Math.round(as(i==null?void 0:i.right)-as(o==null?void 0:o.left))}},El=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:as(e==null?void 0:e.width),height:as(e==null?void 0:e.height)}};var Hu="off";var a_=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:n,statAuthToken:s,isAudioDisabled:l,canDownload:d,callbacks:a,webApi:u,videoEpisodes:f,previewThumbsData:v,uiConfig:p,coreConfig:y,player:w,disabledControls:$,isInteractive:C,interactiveRanges$:T,isInteractiveTime$:I,replayInteractive:M,stopPlayer:k,hasInteractiveBranches:E,playPrevChapterDisabledTooltip:R,additionalButtons:X,additionalSettingsMenuItems:D,additionalContextMenuItems:H,playPrevVideo:K,playNextVideo:J,looped:j=!1,statistics:ce,saveRate:oe,internalsExposure:pe,playerView:be,playerId:fe})=>{var Yv,Zv,Xv;let ke=Ut(W({},y),{configName:[...(Yv=y.configName)!=null?Yv:[],"ui"],isAudioDisabled:l,live:Ut(W({},(Zv=y.live)!=null?Zv:{}),{isLiveCatchUpMode:!!n})}),ne=p,Le=vt.TracerFactory.createRootTracer(ne.features.tracer),se=Le.createComponentTracer("Store"),N=w||new pi.Player(ke,Le,{playerId:fe});pe==null||pe.expose({corePlayer:N});let Be=new vt.Logger,ue=new Lu(Be,{loadTimeout:ne.ads.loadTimeout,initTimeout:ne.ads.initTimeout,runtimeTimeout:ne.ads.runtimeTimeout,useAdmanFromNPM:ne.ads.useAdmanFromNPM,volumeMultiplier:ne.ads.volumeMultiplier,isVsidOriginal:ne.ads.isVsidOriginal,usePuid:ne.ads.usePuid}),ge=ba.getInstance(),ee=u==null?void 0:u.pictureInPictureApi,ve=u==null?void 0:u.annotationsApi,De=u==null?void 0:u.slotsApi,me=Be.createComponentLog("Store"),at,Z,Me={},Ee=new cu,We=new vt.Subscription,tt="",bt=ce&&ce.oneStat?ni(ce.oneStat.vsid$):xr(void 0),Mt=re(Ns()),mt=re(!1),Qe=(Xv=ee==null?void 0:ee.info.isActive$)!=null?Xv:new vt.ValueSubject(!1),Gt=re(0),ii=re(!1),Qt=re(!1),Xt=re([]),le=(0,vt.merge)(N.events.fatalError$,N.events.managedError$).subscribe(c=>Xt.update(x=>[...x,c])),Ot=xr(!1,c=>{let x=N.events.fatalError$.subscribe(()=>c(!0));return()=>x.unsubscribe()}),we=c=>St(null,null,function*(){var ie;let x=Object.values(vt.InterfaceLanguage).includes(c);if(ne.downloadVKLanguages&&(x&&ne.updateBuiltinLanguages||!Pf(c))){let Oe;try{Oe=yield(0,vt.loadVKLangPack)(c,Fh,Uh)}catch(pt){(ie=ce==null?void 0:ce.oneStat)==null||ie.logError({errorType:"VKLangPack",fatal:!1}),ge==null||ge.report(pt,{errorType:"VKLangPack",fatal:!1})}Oe&&(kf({language:c,pack:Oe,fallback:ne.defaultLanguage}),_e.set(c))}Pf(c)&&_e.set(c)}),_e=re(t),de=re(e);we(t);let Ne=(c,x)=>{let L=xe(_e);return Af(L,c,x,ne.defaultLanguage)},Fe=re("thumb");Fe.subscribe(c=>{c==="ads"&&N.info.playbackState$.getValue()&&He()});let Ve=(()=>{let c=xi([Ot,Fe],([x,L])=>x?"crashed":L);return Ut(W({},c),{is:x=>xe(c)===x})})(),Ke=re(),He=()=>{Ke.set({muted:N.info.muted$.getValue()})},Xe=(()=>{let c=re(new Set($));return Ut(W({},c),{add:x=>{c.update(L=>new Set([...L].concat(x)))},remove:x=>{c.update(L=>{let ie=[...L];return new Set(Array.isArray(x)?ie.filter(Oe=>!x.includes(Oe)):ie.filter(Oe=>Oe!==x))})},includes:x=>{let L=xe(c);return Array.isArray(x)?x.every(ie=>L.has(ie)):L.has(x)}})})(),kt=re({width:0,height:0});se.log("create store"),me({message:"create store"});let Jt=c=>{let x=c.container,L=()=>{Yt=new MutationObserver(Oe=>{let{removedNodes:pt}=Oe[0];pt.length&&x.append(N.experimental.element$.getValue())}),Yt.observe(x,{childList:!0})},ie=N.experimental.element$.getValue();if(ie)x.append(ie),L();else{let Oe=N.experimental.element$.pipe((0,vt.filter)(pt=>!!pt),(0,vt.once)()).subscribe(pt=>{x.append(pt),L()});We.add(Oe)}},ot=c=>{me({message:`init video, config: ${JSON.stringify(c)}`}),C?Jt(c):(vt.devNull.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[(0,vt.now)()]}),N.initVideo(c)),se.log("init video",{isInteractive:C}),c.subtitles&&N.setExternalTextTracks(c.subtitles),at=c,tt=c.subtitlesDefaultLanguage||""},fi=new vt.Subject,mi=c=>fi.next(c),dt=new vt.Subject,jt=new vt.Subject,qi=new vt.Subject,Yt=null,Ai={actionRewind$:dt,actionSeek$:jt,inPiP$:Qe,inFullscreen$:new vt.Observable(c=>Mt.subscribe(x=>c.next(x))),actionSetSubtitle$:qi,nextMovie$:fi},Ro={actionSeek$:jt,playerSize$:new vt.Observable(c=>kt.subscribe(x=>c.next(x)))};if(ce){let{oneStat:c,thinOneStat:x,mediascopePixel:L,statSubscription:ie}=ce;c&&(C||ie.add(c.attachTo(N)),ie.add(c.attachToUi(Ai)),ie.add(c.attachToAds(ue.events)),c.authorize(s).catch(Oe=>{me({message:`onestat auth error ${String(Oe)}`})}),L&&L.attachTo(N)),x&&(ie.add(x.attachTo(N,ue.events)),ie.add(x.attachToUi(Ro)),ie.add(x.attachToAds(ue.events)),x.authorize(s))}if(ge){let c=new vt.Subscription,x=(L,ie)=>c.add(L.subscribe(ie));if(x(N.events.managedError$,L=>{ge.logIError(L)}),x(N.events.fatalError$,L=>{ge.logIError(L,!0)}),ce){let{oneStat:L}=ce;L&&x(L.experimental.error$,ie=>{ge.logIError(ie)})}ge.sentrySubscription.add(c)}let Kt=()=>{if(pi.clientChecker.device.isIOS&&Z)try{T1(Z)}catch(c){me({message:`exitIosSafariFullscreen failed: ${c}`})}};We.add(N.experimental.element$.subscribe(c=>{c&&(Z=c,c.classList.add("player-media"),ya(ee)&&ee.updateVideoElement(),C&&c.setAttribute("pip","false"),be==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(N.events.ended$.subscribe(()=>{var c;Kt(),(c=a==null?void 0:a.onEnded)==null||c.call(a)})).add(N.events.looped$.subscribe(()=>{var c;(c=a==null?void 0:a.onLooped)==null||c.call(a)})).add(N.events.started$.subscribe(()=>St(null,null,function*(){var x,L;ya(ee)&&(yield ee==null?void 0:ee.revealPictureInPicture());let c=N.info.muted$.getValue();(x=a==null?void 0:a.onStarted)==null||x.call(a),(L=Me.onStarted)==null||L.call(Me,c)}))).add(N.events.willSeek$.subscribe(({from:c,to:x})=>{var L;(L=a==null?void 0:a.onSeek)==null||L.call(a,c,x)})).add(N.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=a==null?void 0:a.onAutoplaySoundProhibited)==null||c.call(a)})).add(N.info.position$.subscribe(c=>{var L;let x=N.info.duration$.getValue();isFinite(x)&&x>0&&((L=a==null?void 0:a.onTimeupdate)==null||L.call(a,x,c),ue.setPosition(c,x))})).add(N.events.fatalError$.subscribe(c=>{var x;(x=a==null?void 0:a.onCrashed)==null||x.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(N.events.fetcherRecoverableError$.subscribe(c=>{var x;(x=a==null?void 0:a.onRecoverableError)==null||x.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(N.events.loadedMetadata$.subscribe(()=>{ii.set(!0)})).add(N.info.is3DVideo$.subscribe(c=>{Qt.set(c)})).add(N.info.isEnded$.subscribe(c=>{C&&(c?(I!=null&&I.getValue()&&Xe.add(bd),Xe.add("PLAY_BUTTON")):Xe.remove("PLAY_BUTTON"))})).add(N.info.liveTime$.subscribe(c=>{var x;(x=a==null?void 0:a.onLiveTime)==null||x.call(a,c)})).add(N.info.isStalled$.subscribe(c=>{var x;(x=a==null?void 0:a.onStalledChanged)==null||x.call(a,c)})).add(N.info.isLiveEnded$.subscribe(c=>{var x;return c&&((x=a==null?void 0:a.onLiveEnded)==null?void 0:x.call(a))})).add(ue.events.loadStarted$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadStarted)==null?void 0:x.call(c)})).add(ue.events.loadEnded$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadEnded)==null?void 0:x.call(c)})).add(ue.events.loadError$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadError)==null?void 0:x.call(c)})).add(ue.events.init$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onInit)==null?void 0:x.call(c)})).add(ue.events.ready$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onReady)==null?void 0:x.call(c)})).add(ue.events.started$.subscribe(c=>{var x,L;return(L=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onStarted)==null?void 0:L.call(x,c)})).add(ue.events.timeRemained$.subscribe(c=>{var x,L;return(L=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onTimeRemained)==null?void 0:L.call(x,c)})).add(ue.events.ended$.subscribe(c=>{var x,L;return(L=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onCompleted)==null?void 0:L.call(x,c)})).add(ue.events.empty$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onEmpty)==null?void 0:x.call(c)})).add(ue.events.clicked$.subscribe(c=>{var x,L;return(L=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onClicked)==null?void 0:L.call(x,c)})).add(ue.events.closed$.subscribe(c=>{var x,L;return(L=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onClosed)==null?void 0:L.call(x,c)})).add(ue.events.error$.subscribe(c=>{var x,L;return(L=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onError)==null?void 0:L.call(x,c)})).add(ue.events.paused$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onPaused)==null?void 0:x.call(c)})).add(ue.events.resumed$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onResumed)==null?void 0:x.call(c)}));let di=new vt.Subscription,no=()=>{var pt,Lt,qt;let{debugLog:c}=ne,x,L="#9df7b7",ie="#efd169";if(c&&c!==!0){let{colors:Wt}=c;x=c.tag,L=(pt=Wt==null?void 0:Wt[0])!=null?pt:L,ie=(qt=(Lt=Wt==null?void 0:Wt[1])!=null?Lt:Wt==null?void 0:Wt[0])!=null?qt:ie}let Oe=x?`: ${x}`:"";di.add(N.events.log$.subscribe(Wt=>{console.debug(`%c sdk${Oe} `,`background:${L};`,`sdk component: ${Wt.component}`,Wt.message)})).add(Be.log$.subscribe(Wt=>{console.debug(`%c ui${Oe} `,`background:${ie};`,`ui component: ${Wt.component}.`,Wt.message)}))},jo=()=>{di.unsubscribe()},Vt=(c,x)=>{se.log("start camera manual rotation",{mx:c,my:x}),N.startCameraManualRotation(c,x)},Tt=(c=!1)=>{se.log("stop camera manual rotation",{immediate:c}),N.stopCameraManualRotation(c)},Oi=(c,x,L)=>{se.log("move camera focus px",{xpx:c,ypx:x,dt:L}),N.moveCameraFocusPX(c,x,L)},Gi=()=>{N.holdCamera()},F=()=>{N.releaseCamera()},Bt=xr(N.info.position$.getValue(),c=>{let x,L,ie=()=>{let Oe=N.info.playbackState$.getValue(),pt=N.info.isLive$.getValue(),Lt=N.info.duration$.getValue(),qt=N.info.position$.getValue();if(Oe&&[pi.PlaybackState.PLAYING,pi.PlaybackState.PAUSED].includes(Oe)){let Wt=pt?qt-Lt:N.getExactTime();Wt!==L&&c(Wt),L=Wt}x=requestAnimationFrame(ie)};return ie(),()=>cancelAnimationFrame(x)}),ci=ni(N.info.playbackState$),xt=ni(N.info.currentBuffer$),et=ni(N.info.isEnded$),ct=ni(N.info.isLive$),ei=ne.features.playbackRate?ni(N.info.canChangePlaybackSpeed$):xr(!1),Dt=ni(N.info.liveBufferTime$),ro=ni(N.info.volume$),sn=ni(N.info.muted$),an=uu(N.info.predefinedQualityLimitType$.pipe((0,vt.map)(c=>c===pi.PredefinedQualityLimits.TRAFFIC_SAVING)),N.info.predefinedQualityLimitType$.getValue()===pi.PredefinedQualityLimits.TRAFFIC_SAVING),Ti=uu(N.info.predefinedQualityLimitType$.pipe((0,vt.map)(c=>c===pi.PredefinedQualityLimits.HIGH_QUALITY)),N.info.predefinedQualityLimitType$.getValue()===pi.PredefinedQualityLimits.HIGH_QUALITY),wt=ni(N.info.autoQualityLimitingAvailable$),Bi=ni(N.info.availableQualities$),Yo=ni(N.info.availableQualitiesFps$),Cn=ni(N.info.chromecastState$),Qi=ni(N.info.chromecastDeviceName$),ji=ni(N.info.currentFormat$),No=ni(N.info.throughputEstimation$),Tn=ni(N.info.videoBitrate$),Un=ni(N.info.intrinsicVideoSize$),Mi=ni(N.info.duration$),In=ni(N.info.isAudioAvailable$),Yi=null,wo=N.info.isBuffering$,ln=xr(wo.getValue(),c=>{let x=wo.subscribe(L=>{L&&Yi===null?Yi=window.setTimeout(()=>{c(wo.getValue()),Yi=null},ne.loaderDelay):c(L)});return()=>{x.unsubscribe(),Yi&&clearTimeout(Yi)}}),Sr=()=>{Yi&&clearTimeout(Yi),Yi=null},zn=xi([Mi,ct],([c,x])=>x?-c:c),Wn=xi([ci],([c])=>c===pi.PlaybackState.PLAYING),Cr=ni(N.info.atLiveEdge$),Tr=ni(N.info.atLiveDurationEdge$),Kn=ni(N.info.position$),dn=xi([Kn,Mi],([c,x])=>isFinite(c)&&isFinite(x)&&!!x),ar=xi([Cn],([c])=>c===pi.ChromecastState.CONNECTED),so=ni(N.info.availableVideoStreams$),Zo=ne.features.audioLanguages?ni(N.info.availableAudioStreams$):xr([]),lr=ni(N.info.currentVideoStream$),En=ni(N.info.currentAudioStream$),Ir=c=>{c.language&&Cf(c.language),N.setVideoStream(c)},dr=(c,x)=>{N.setAudioStream(c),lo(x)&&(c.language&&Cf(c.language),ne.features.userVideoPrefs&&i&&Ef(ne.userSalt,String(i),{audioTrackId:c.id}))},cr=c=>{let x;if(c.length===1&&(x=c.at(0)),x!=null||(x=c.find(ie=>"isDefault"in ie&&ie.isDefault)),ne.features.userVideoPrefs&&i){let ie=vu(ne.userSalt,String(i));if(ie!=null&&ie.audioTrackId){let Oe=c.find(pt=>pt.id===ie.audioTrackId);x=Oe!=null?Oe:x}}let L=f1();return L&&(x!=null||(x=c.find(({language:ie})=>L===ie))),x!=null||(x=c.at(0)),x},Er=!1;We.add(N.info.availableAudioStreams$.subscribe(c=>{if(!Er&&c.length){let x=cr(c);x&&(N.setAudioStream(x),Er=!0)}}));let qn=!1;We.add(N.info.availableVideoStreams$.subscribe(c=>{if(!qn&&c.length){let x=cr(c);x&&(N.setVideoStream(x),qn=!0)}}));let kn=re(void 0),ur=ni(N.info.isAutoQualityEnabled$,c=>c&&kn.set(void 0)),Kr=ni(N.info.currentQuality$,()=>kn.set(void 0)),st=xi([kn,Kr],([c,x])=>c!=null?c:x),si=xi(ji,c=>c!==pi.VideoFormat.MPEG),pr=xi([Bi,Yo,ur,st,si],([c,x,L,ie,Oe])=>{let pt=[];Oe&&pt.push({value:"auto",displayValue:Ne("auto_quality_option"),selected:L});let Lt=c.filter(qt=>!(0,vt.isInvariantQuality)(qt));for(let qt of Lt){let Wt=x[qt];pt.push({value:qt,displayValue:`${qt}${Wt?t_(Wt):""}`,selected:L?!1:qt===ie})}return pt}),cn=ni(N.info.currentPlaybackRate$),Xo=xi([cn,Cr,Tr],([c,x,L])=>{let ie=L||C?1:ne.controls.playbackRateMin,Oe=x?1:ne.controls.playbackRateMax,pt=ne.controls.playbackRateStep,Lt=[];for(let qt=ie;qt<=Oe;qt+=pt)Lt.push({value:qt,displayValue:qt===1?Ne("playback_rate_1"):Ne("playback_rate",{multiplier:qt.toString(10)}),selected:c===qt});return Lt}),Ii={displayValue:Ne("subtitles_off"),value:Hu,language:""},Di=re(W({},Ii)),ao=ne.features.subtitles?ni(N.info.availableTextTracks$):xr([]),Pn=o1(),Oo=xi([ao,Di],([c,x],L)=>{var pt;let ie=[],Oe=c.find(({id:Lt})=>Lt===x.value);if(Oe!=null&&Oe.url){let[,Lt]=(pt=Pn.find(Oe.url))!=null?pt:[];if(Lt){L(Lt);return}Ee.download(Oe.url).then(qt=>{if(!qt||Ee.isDestroyed())return;let Wt=new i_,Ts=Oe.language;if(Ts){let Y_=!!Oe.isAuto,Z_=Wt.parse(qt,Ts);ie.push({lang:Ts,subtitles:Z_,isAuto:Y_,id:Oe.id})}Pn.add(Oe.url,ie),xe(Di).value===x.value&&L(ie)}).catch(qt=>{var Wt;(Wt=ce==null?void 0:ce.oneStat)==null||Wt.logError({errorType:"Subtitles download",fatal:!1}),ge==null||ge.report(qt,{errorType:"Subtitles download",fatal:!1})})}L(ie)}),Gn=xi([cn,Wn,Di],([c,x,L],ie)=>{let Lt;if(N.info.isLive$.getValue()&&x&&L.value!==Ii.value){let Wt=()=>{let Ts=1e3/(3*c);Lt=setTimeout(Wt,Ts),ie(Date.now())};return Wt(),()=>clearTimeout(Lt)}}),fr=xi([ao,Di],([c,x])=>{if(!c.length)return[];let L=[];for(let{language:ie,isAuto:Oe,id:pt}of c){let Lt=ie&&Bu(ie);ie&&Lt&&L.push({displayValue:Oe?Ne("subtitles_auto",{language:Lt}):Lt,value:pt,selected:(x==null?void 0:x.value)===pt,isAuto:Oe,language:ie})}return L.length?(L.unshift(Ut(W({},Ii),{selected:(x==null?void 0:x.value)===Ii.value})),L):[]}),Qn={available:[],prev:[]},kr=()=>{var x,L;let c=N.experimental.getCurrentTime$.getValue();return(L=(x=c==null?void 0:c())!=null?x:Z==null?void 0:Z.currentTime)!=null?L:0},qr=xi([Bt,Di,Oo,Gn],([c,x,L,ie])=>{var pt;let Oe=N.info.isLive$.getValue();if(Oe&&Qn.prev!==L){let Lt=L.find(({id:Wt})=>Wt===x.value),qt=Qn.prev.find(({id:Wt})=>Wt===x.value);if(Lt){let Wt=Ut(W({},Lt),{subtitles:[...(pt=qt==null?void 0:qt.subtitles)!=null?pt:[],...Lt.subtitles]});Qn.available=[Wt],Qn.prev=L}}if(x&&x.value!==Ii.value){let Lt=Oe?kr():c,qt=Oe?Qn.available:L;return r_(Lt,x,qt,Oe)}}),An=xi([qr],([c])=>c!=null&&c.texts?c.texts:[]);We.add(Di.subscribe(c=>{var x,L;if(c.value===Ii.value)(x=a==null?void 0:a.onSubtitleOff)==null||x.call(a);else{let ie=Object.entries(Ou).find(([Oe,pt])=>pt===c.displayValue);(L=a==null?void 0:a.onSubtitleOn)==null||L.call(a,ie?ie[0]:"")}}));let Gr=re(!0),mr=xi([xt,zn,Kn,Dt],([c,x,L,ie])=>{var qt;let Oe=(qt=c==null?void 0:c.end)!=null?qt:0;if(!ie)return Oe/x;let Lt=-L+ie-x;return(Oe-Lt)/x}),So=ni(N.info.availableSources$),Jo=xi([So],([c])=>Object.keys((c==null?void 0:c[pi.VideoFormat.MPEG])||{}).length>0),oi=()=>{var L,ie,Oe;let c=Object.keys(((ie=(L=N.info.availableSources$)==null?void 0:L.getValue())==null?void 0:ie[pi.VideoFormat.MPEG])||{}),x=(0,vt.getHighestQuality)(c)||vt.VideoQuality.Q_144P;return(Oe=at.sources[pi.VideoFormat.MPEG])==null?void 0:Oe[x]},Bo=()=>{var x;let c=oi();if(c)se.log("download video",{url:c}),e1(c,((x=at==null?void 0:at.meta)==null?void 0:x.title)||"video");else{let L="There is no URL for download video";se.log("download video",{message:L}),me({message:L})}},ds=()=>{me({message:"toggle muted"});let c=N.info.muted$.getValue();N.info.volume$.getValue()===0&&!c?Zi(Co(),!1):co(!c,!1)},Pr=()=>{var c;if(Nt.ui.settingsMenu.visible$.set(!1),!xe(Nt.ui.settingsSubMenu.visible$)){let x=xe(Nt.ui.settingsMenu.ref$);if((c=a==null?void 0:a.uiInfo)!=null&&c.onSettingsMenu&&x){let ie=El(x),Oe={top:0,left:0,bottom:0,right:0};a.uiInfo.onSettingsMenu({visible:!1,size:ie,position:Oe,name:"settings"})}}se.log("close settings menu")},Qr=(c,x=()=>Promise.resolve())=>St(null,null,function*(){var Oe;Nt.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),Nt.ui.settingsMenu.visible$.set(!0),yield x();let L=xe(Nt.ui.settingsMenu.ref$),ie=Ys();if((Oe=a==null?void 0:a.uiInfo)!=null&&Oe.onSettingsMenu&&L&&ie){let Lt=El(L),qt=ys(L,ie);a.uiInfo.onSettingsMenu({visible:!0,size:Lt,position:qt,name:"settings"})}se.log("open settings menu",{wasOpenedByKeyboard:c})}),lt=(c,x=!1)=>{var pt;Nt.ui.settingsSubMenu.visible$.set(!1);let L=xe(Nt.ui.settingsMenu.ref$),ie=Ys(),Oe=xe(Nt.ui.settingsMenu.visible$);if((pt=a==null?void 0:a.uiInfo)!=null&&pt.onSettingsMenu&&L&&ie)if(Oe&&!x){let qt=El(L),Wt=ys(L,ie);a.uiInfo.onSettingsMenu({visible:!0,size:qt,position:Wt,name:"settings"})}else{let qt=El(c),Wt={top:0,left:0,bottom:0,right:0},Ts=xe(Nt.ui.settingsSubMenu.name$);a.uiInfo.onSettingsMenu({visible:!1,size:qt,position:Wt,name:Ts})}se.log("close settings sub menu")},vi=(c,x)=>{var ie;Nt.ui.settingsSubMenu.visible$.set(!0),Nt.ui.settingsSubMenu.ref$.set(x),Nt.ui.settingsSubMenu.name$.set(c);let L=Ys();if((ie=a==null?void 0:a.uiInfo)!=null&&ie.onSettingsMenu&&x&&L){let pt=El(x),Lt=ys(x,L);a.uiInfo.onSettingsMenu({visible:!0,name:c,size:pt,position:Lt})}se.log("open settings sub menu",{name:c})},Co=()=>{var x;let c=Math.max(ne.volumeMinRestore,(x=pu())!=null?x:0);return c===0?ne.volumeDefault:c},lo=c=>{let x=ne.features.savePreferredStatesOnUserActionOnly;return!x||x&&!c},Zi=(c,x)=>{let L=c===0?Co():c,ie=N.info.muted$.getValue();me({message:`set volume, volume: ${c}, preferredVolume: ${L}`});let Oe=!l||Ve.is("ads");ie&&c>0&&Oe&&(ie=!1,lo(x)&&wf(!1)),N.setVolume(c,ie),ue.setVolume(c),lo(x)&&_f(L)},co=(c,x)=>{let L=N.info.volume$.getValue();me({message:`set muted, currentVolume: ${L}, mute: ${c}`});let ie=Ve.is("ads");if(N.setMuted(c,ie),ue.setVolume(c?0:L),lo(x)&&(!ie||!c)&&wf(c),!c&&L===0){let Oe=Co();N.setVolume(Oe),lo(x)&&_f(Oe),ue.setVolume(Oe)}},uo=re(!1),un=c=>{var x,L;se.log("set looped",{isLooped:c}),uo.set(c),N.setLooped(c),(L=(x=a==null?void 0:a.uiInfo)==null?void 0:x.onLoopedChanged)==null||L.call(x,c)};un(j);let wi=()=>{var c,x;(x=(c=a==null?void 0:a.uiInfo)==null?void 0:c.onReportProblem)==null||x.call(c)},jn=(c,x=!1)=>{var L;me({message:`set autoplayNextEnabled, value: ${c}`}),se.log("set autoplay next enabled",{autoplayNextEnabled:c}),Nt.ui.autoplayNextEnabled$.set(c),g1(c),x&&((L=a==null?void 0:a.onSetAutoplayNextEnabled)==null||L.call(a,c))},Yn=c=>{me({message:`set timerNextVideoRunning, value: ${c}`}),se.log("set timer next video running",{timerNextVideoRunning:c}),Nt.ui.timerNextVideoRunning$.set(c)},cs=(c=!0)=>{var ie;let x=!0;if(c&&(a!=null&&a.onPrevVideoClick))try{x=(ie=a==null?void 0:a.onPrevVideoClick)==null?void 0:ie.call(a)}catch(Oe){me({message:"onPrevVideoClick callback failed to execute"})}if(!x)return;c&&Yr("prev")||K()},jr=(c=!0)=>{var ie;let x=!0;if(c&&(a!=null&&a.onNextVideoClick))try{x=(ie=a==null?void 0:a.onNextVideoClick)==null?void 0:ie.call(a)}catch(Oe){me({message:"onNextVideoClick callback failed to execute"})}if(!x)return;c&&Yr("next")||J()},Yr=c=>{let{isMobile:x,features:{playbackStatusNextVideoShow:L,playbackStatusShow:ie}}=ne;return L&&ie&&!x?(Nt.ui.aboutToGoNextVideo.set(c),Nt.ui.userActionsDisabled.set(!0),!0):!1},po=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementShow)==null||c.call(a)},Mn=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementClick)==null||c.call(a)},vr=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementAuto)==null||c.call(a)},ut=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementCancel)==null||c.call(a)},Rt=()=>{N.prepare()},Si=()=>{(0,vt.assertNonNullable)(Nt);let c=xe(Nt.ui.controls.disabledControls$),x=xe(Nt.playerPhase),L={playerPhase:x,isInteractive:C,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(me({message:"toggle play"}),x==="ads"){L.action="play",se.log("toggle adman play",L),ue.togglePlay();return}let ie=()=>{var pt;me({message:"toggle play, call player.play"}),L.action="play",N.play(),(pt=a==null?void 0:a.onPlay)==null||pt.call(a)},Oe=()=>{var pt;me({message:"toggle play, call player.pause"}),L.action="pause",N.pause(),(pt=a==null?void 0:a.onPause)==null||pt.call(a)};if(N.info.isEnded$.getValue()){if(me({message:"toggle play, video ended, seek to 0"}),dt.next(),jt.next(ls.SeekAction.REWIND),C){M==null||M();return}N.seekTime(0),ie()}else N.info.playbackState$.getValue()!==pi.PlaybackState.PLAYING?ie():Oe();se.log("toggle play",L)},fo=(c,{changeReason:x="default",appliesTo:L="to-video"}={})=>{me({message:`set quality, quality: ${c}`}),se.log("set quality",{quality:c}),N.setAutoQuality(c==="auto"),c!=="auto"?(ne.features.qualityDetailsSubMenuEnabled?(fu({type:"exact_quality",quality:c,videoId:i},L),xd(),N.setPredefinedQualityLimits(pi.PredefinedQualityLimits.UNKNOWN)):bf(i,c),kn.set(c),N.setQuality(c)):ne.features.qualityDetailsSubMenuEnabled?x==="default"&&(To("auto_quality",L),xe(an)&&_o(!1),xe(Ti)&&bo(!1)):xd()},_o=(c,x="as-default")=>{me({message:`set trafficSavingEnabled, value: ${c}`}),se.log("set traffic saving enabled",{trafficSavingEnabled:c});let L=c?pi.PredefinedQualityLimits.TRAFFIC_SAVING:pi.PredefinedQualityLimits.UNKNOWN;ne.features.qualityDetailsSubMenuEnabled?($o(L,x),yd(!1)):(N.setPredefinedQualityLimits(L),yd(c))},bo=(c,x="as-default")=>{me({message:`set highQualityEnabled, value: ${c}`}),se.log("set high quality enabled",{highQualityEnabled:c}),$o(c?pi.PredefinedQualityLimits.HIGH_QUALITY:pi.PredefinedQualityLimits.UNKNOWN,x)},$o=(c,x)=>{c!==pi.PredefinedQualityLimits.UNKNOWN&&(xe(wt)&&!xe(ur)&&fo("auto",{appliesTo:x,changeReason:"limit-changed"}),To(c,x)),N.setPredefinedQualityLimits(c)},To=(c,x)=>{fu({type:c,videoId:i},x),x==="as-default"&&fu({type:c,videoId:i},"to-video")},pn=c=>{se.log("set playback rate",{playbackRate:c}),N.setPlaybackRate(c),ne.features.saveRate&&oe&&!N.info.isLive$.getValue()&&m1(c)},Ln=()=>{let c=xe(Xo),x=c.findIndex(({selected:ie})=>ie);if(x===c.length-1)return;let L=c[x+1];pn(L.value)},Do=()=>{let c=xe(Xo),x=c.findIndex(({selected:ie})=>ie);if(x===0)return;let L=c[x-1];pn(L.value)},Hi=(c=Ut(W({},Ii),{selected:!1}),x)=>{se.log("set subtitles",W({},c)),c.value!==Ii.value&&qi.next(c.isAuto?c.value+"_auto":c.value),Di.set(c),lo(x)&&(If(c.value===Ii.value?void 0:c.language),ne.features.userVideoPrefs&&i&&Ef(ne.userSalt,String(i),{subtitleTrackId:c.value===Ii.value?void 0:c.value}))},Zn=c=>{se.log("toggle subtitles");let x=xe(fr),L=xe(Di),ie=xe(_e),Oe=tt!=null?tt:ie;if((L==null?void 0:L.value)===Ii.value){let pt=x.filter(Lt=>Lt.value!==Ii.value).find(Lt=>Lt.language===Oe);Hi(pt!=null?pt:x[1],c)}else Hi(void 0,c)},Vn=re(!0),gr=c=>{Vn.set(c)},Io=(c,x,L=!0)=>{var ie;if(me({message:`seek to time, time: ${c}`}),se.log("seek to time",{time:c,action:x,forcePrecise:L}),jt.next(x),N.info.isLive$.getValue()){let Oe=N.info.duration$.getValue(),pt=Math.min(0,Oe+c);N.seekTime(pt,L)}else{if(I!=null&&I.getValue())return;N.info.isEnded$.getValue()&&(me({message:"seek after ended, call callbacks.onPlay"}),(ie=a==null?void 0:a.onPlay)==null||ie.call(a)),N.seekTime(jv(c),L)}},us=c=>{me({message:`seek to episode start time: ${c}`}),se.log("seek to episode start time",{time:c}),Io(c,ls.SeekAction.EPISODE,!0)},Ar=(c,x)=>{me({message:`seek to percent, percent: ${c}`}),se.log("seek to percent",{percent:c,action:x});let L=xe(zn)*c;Io(L,x,!1)},Zr=c=>{me({message:`seek external, time: ${c}`}),se.log("seek external",{time:c}),jt.next(ls.SeekAction.UNKNOWN),N.seekTime(N.info.isLive$.getValue()?-c:c)},Xi=c=>{var ie,Oe;let x=(ie=c.max)!=null?ie:"none",L=(Oe=c.min)!=null?Oe:"none";me({message:`set auto quality limitation. Max: ${x}. Min: ${L}`}),se.log("set auto quality limits",{max:x,min:L}),N.setAutoQualityLimits(c)},Mr=c=>{me({message:`seek external to episode start time: ${c}`}),se.log("seek external to episode start time",{time:c}),Io(c,ls.SeekAction.EPISODE,!0)},Ze=c=>{me({message:`set playback rate to: ${c}`}),se.log("set playback rate external",{playbackRate:c}),N.setPlaybackRate(c)},ti=re(void 0),gi=re(!1),fn=c=>{me({message:`start scrubbing, progress: ${c}`}),se.log("start scrubbing",{progress:c}),gi.set(!0),Ho(c)},Ho=c=>{ti.set(c)},Se,_t,ai=()=>{ti.set(void 0),gi.set(!1)},Ci=()=>{clearTimeout(_t),clearTimeout(Se),Se=window.setTimeout(()=>{ai()},500),Z==null||Z.removeEventListener("seeked",Ci)},yo=c=>{me({message:`complete scrubbing, progress: ${c}`}),se.log("complete scrubbing",{progress:c}),Ar(c,ls.SeekAction.SLIDER),xe(Nt.ui.isMobile)&&xe(Nt.state.currentFormat$)===pi.VideoFormat.HLS?(Z==null||Z.addEventListener("seeked",Ci),_t=window.setTimeout(()=>{Ci()},300)):ai()},it=xi([Bt,zn,ti],([c,x,L],ie)=>{ie((0,vt.isNonNullable)(L)?L*x:c)}),Et=re(!1),Ji=()=>{Et.set(!0)},mn=()=>{Et.set(!1)},Eo=xi([kt],([{width:c}],x)=>{let L=G1(c);x(L)}),vn=re(!1),hr=X.filter(c=>t1(c)),Lr=xi([Eo,vn],([c,x])=>x?hr.filter(L=>!L.hideOnMobile):hr.filter(L=>{var ie;return!((ie=L.hideOnDesktopGridTypes)!=null&&ie.includes(c))})),bi=re(X.filter(c=>i1(c))),Fi=xi([bi,Eo],([c,x])=>c.filter(L=>{var ie;return!((ie=L.hideOnDesktopGridTypes)!=null&&ie.includes(x))})),gn=xi([Fi,Lr],([c,x])=>[...ne.features.additionalButtonsDesktopControlPanelRight?c.filter(L=>L.type==="desktop-control-panel-right"):[],...ne.features.additionalButtons?x.map((L,ie)=>{var Oe;return{id:ie,weight:ie,type:"desktop-control-panel-right",testId:L.testId,icon:L.iconUrl,onClick:L.onClick,ariaLabel:(Oe=L.ariaLabel)!=null?Oe:L.tooltip,tooltipText:L.tooltip}}):[]]),ko=re(D),_r=xi([ko],([c])=>ne.features.additionalSettingsMenuItems?c.map(x=>x.type==="SWITCH"?Ut(W({},x),{onClick:x.onChangeEnabled}):x):[]),Fo=(c,x)=>{let L=xe(bi).map(ie=>ie.id!==c?ie:W(W({},ie),x));bi.set(L)},Qs=c=>{let x=xe(bi);if(x.some(L=>L.id===c.id)){me({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),bi.set(x)},Ka=c=>{let x=xe(bi);if(!x.some(L=>L.id===c)){me({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}x=x.filter(L=>L.id!==c),bi.set(x)},$t=c=>{jt.next(ls.SeekAction.LIVE),me({message:"live switch to low latency "+c}),se.log("live switch to low latency "+c),N.setLiveLowLatency(c)},yt=(c,x)=>{let L=xe(ko).map(ie=>ie.id!==c?ie:W(W({},ie),x));ko.set(L)},mo=c=>{let x=xe(ko);if(x.some(L=>L.id===c.id)){me({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),ko.set(x)},hn=c=>{let x=xe(ko);if(!x.some(L=>L.id===c)){me({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(L=>L.id!==c),ko.set(x)},hi=re(H),ui=xi([hi],([c])=>ne.features.additionalContextMenuItems?c:[]),Li=(c,x)=>{let L=xe(hi).map(ie=>ie.id!==c?ie:W(W({},ie),x));hi.set(L)},js=c=>{let x=xe(hi);if(x.some(L=>L.id===c.id)){me({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),hi.set(x)},qa=c=>{let x=xe(hi);if(!x.some(L=>L.id===c)){me({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(L=>L.id!==c),hi.set(x)},fp=xi([vn,Ot],([c,x],L)=>{L(c&&x)}),xc=()=>{jt.next(ls.SeekAction.LIVE),me({message:"switch to active live"}),se.log("switch to active live"),N.seekTime(0),N.info.playbackState$.getValue()!==pi.PlaybackState.PLAYING&&Nt.actions.internal.togglePlay()},mp=()=>{se.log("skip adman"),ue.skip()},wc=(c=!0)=>{var ie;(0,vt.assertNonNullable)(Nt),me({message:`switch from ads to video, callPlay: ${c}`}),se.log("switch from ads to video",{callPlay:c}),Fe.set("video"),c&&N.play(),l&&co(!0,!0);let x=(ie=xe(Ke))==null?void 0:ie.muted,L=!N.info.muted$.getValue();x!==void 0&&!L&&co(x,!0),Ke.set(void 0)},vp=()=>{(0,vt.assertNonNullable)(Nt),me({message:"switch from video to ads"}),se.log("switch from video to ads"),Nt.actions.internal.pause(),Kt(),Fe.set("ads")},Sc=c=>{(0,vt.assertNonNullable)(Nt);let x=c?"LiveWaitingStart":"thumb";se.log("set live waiting start",{state:c,playerPhase:x}),Fe.set(x)},gp=c=>{(0,vt.assertNonNullable)(Nt);let x=c?"LiveWaitingRecover":"thumb";se.log("set live waiting recover",{state:c,playerPhase:x}),Fe.set(x)},Cc=c=>{(0,vt.assertNonNullable)(Nt);let x=c?"LiveWaitingRecord":"thumb";se.log("set live waiting record",{state:c,playerPhase:x}),Fe.set(x)},hp=()=>((0,vt.assertNonNullable)(Nt),se.log("get debug text data"),Xh(N,at,Nt,Le.getTraceId())),Tc=()=>((0,vt.assertNonNullable)(Nt),JSON.stringify(Le.getFinishedSpans())),Ic=()=>((0,vt.assertNonNullable)(Nt),Jh(N,at,Nt)),Ys=()=>Z,_p=()=>{me({message:"toggle chromecast"}),se.log("toggle chromecast"),N.toggleChromecast()},Ul=c=>{var L;if((0,vt.assertNonNullable)(Nt),N.info.isEnded$.getValue())return;let x=!c;if(xe(Nt.playerPhase)==="ads"){me({message:`pause ads, internalCall: ${x}`}),se.log("pause ads",{internalCall:x}),ue.pause();return}me({message:`pause video, internalCall: ${x}`}),se.log("pause video",{internalCall:x}),x&&((L=a==null?void 0:a.onPause)==null||L.call(a)),N.pause()},Ec=c=>{var L;(0,vt.assertNonNullable)(Nt);let x=!c;if(xe(Nt.playerPhase)==="ads"){me({message:`play ads, internalCall: ${x}`}),se.log("play ads",{internalCall:x}),ue.play();return}me({message:`play video, internalCall: ${x}`}),se.log("play video",{internalCall:x}),x&&((L=a==null?void 0:a.onPlay)==null||L.call(a)),N.play()},kc=c=>{(0,vt.assertNonNullable)(Nt);let x=!c;if(xe(Nt.playerPhase)==="ads"){me({message:"player cannot be stopped during ads via external method"});return}me({message:`player will be stopped, internalCall: ${x}`}),k==null||k()},Pc=(c,x)=>{(0,vt.assertNonNullable)(Nt),me({message:`first start, show ads: ${c}, internalCall: ${!x}`}),se.log("first start",{showAds:c,external:x}),c?Fe.set("ads"):(Fe.set("video"),x?N.play():Nt.actions.internal.togglePlay())},zl=()=>(me({message:"getting time codes"}),f),Ac=()=>{let c=zl();if(!c||[0,1].includes(c.length))return;let x=N.info.position$.getValue();return c.find(L=>L.time>x)},je=c=>{let x=c;x||(x=Ac());let L=N.info.position$.getValue();se.log("seek to next episode",W({currentTime:L},x)),x&&(me({message:"seek to next episode"}),Io(x.time,ls.SeekAction.EPISODE,!0))},li=()=>{let c=zl();if(!c||[0,1].includes(c.length))return;let x=N.info.position$.getValue(),L=c.findIndex(Oe=>Oe.time>x),ie=L===-1?c.length-2:L-2;if(!(ie<0))return c[ie]},Uo=c=>{let x=c;x||(x=li());let L=N.info.position$.getValue();se.log("seek to prev episode",W({currentTime:L},x)),x&&(me({message:"seek to prev episode"}),Io(x.time,ls.SeekAction.EPISODE,!0))},Zs=()=>(me({message:"getting preview thumbs data"}),se.log("get preview thumbs data",W({},v)),v),_n=()=>St(null,null,function*(){let c=ee==null?void 0:ee.isActive(),x="none";ee!=null&&ee.isActive()?(x="exit",yield ee==null?void 0:ee.exit()):(x="request",yield ee==null?void 0:ee.request()),se.log("toggle picture in picture",{isActive:c,action:x})}),q_=(c=-90)=>{se.log("rotate video",{alphaDiff:c}),Gt.update(x=>x+c)},Mc=re([]);T==null||T.subscribe(c=>{let x=[];for(let L=0;L<c.length;L++){let{range:[ie,Oe],subjects:pt}=c[L];L===0&&ie!==0&&x.push({time:0,text:"",interactive:!1,completed:!0}),x.push({time:ie/1e3,text:"",interactive:!0,completed:ne.features.interactiveTimeOpenUri?!pt.length||pt.every(Lt=>Lt.isRemoved):!pt.length}),Oe!==1/0&&x.push({time:Oe/1e3,text:"",interactive:!1,completed:!0})}Mc.set(x)});let G_=re(!1);I==null||I.subscribe(c=>{c&&xe(gi)&&ai()});let jv=c=>{if(!C)return c;let x=xe(Mc),L=xe(zn),Oe=xe(Kn)/L,pt=x.find(Lt=>Lt.interactive&&!Lt.completed&&Lt.time>Oe);return typeof(pt==null?void 0:pt.time)=="number"?Math.min(c,pt.time-.05):c},Q_=()=>{Nt.ui.episodes.panelOpened$.set(!1)},j_=()=>{se.log("destroy store"),clearTimeout(_t),clearTimeout(Se),We.unsubscribe(),di.unsubscribe(),N.destroy(),ue.destroy(),ce==null||ce.destroy(),ge==null||ge.destroy(),le.unsubscribe(),Yt==null||Yt.disconnect(),Yt=null,Ee.destroy()},Nt={interfaceLanguage$:_e,isCyrillicRelatedInterface$:de,initVideo:ot,videoId:i,isClip:o,playerPhase:Ve,vsid:bt,state:{positionExact$:Bt,positionWithScrubbing$:it,duration$:zn,playbackState$:ci,isPlaying$:Wn,isLoaderVisible:ln,bufferedProgress$:mr,isLive$:ct,canChangePlaybackSpeed$:ei,isActiveLive$:Cr,isOldestAvailableLive$:Tr,isRewindableLive$:dn,isEnded$:et,muted$:sn,volume$:ro,trafficSavingEnabled$:an,highQualityEnabled$:Ti,autoQualityLimitingAvailable$:wt,availableVideoStreams$:so,availableAudioStreams$:Zo,videoStream$:lr,audioStream$:En,currentQuality$:st,isAutoQualityEnabled$:ur,availableQualities$:pr,currentPlaybackRate$:cn,availablePlaybackRates$:Xo,currentSubtitle$:Di,availableTextTracks$:ao,availableSubtitlesList$:fr,currentSubtitleCaptions$:An,isAutoSubtitleCaptionVisible$:Gr,chromecastState$:Cn,chromecastDeviceName$:Qi,chromecastConnected$:ar,currentFormat$:ji,throughputEstimation$:No,videoBitrate$:Tn,videoSize$:Un,errorLog$:Xt,crashed$:Ot,isAudioAvailable$:In,isAudioDisabled:!!l,canDownload:ne.features.download&&!!d,availableSources$:So,hasMpegSources$:Jo,isInteractive:C,showInteractiveGraph:ne.features.interactiveGraph,showSeekToInteractive:ne.features.seekToInteractive,showPlayPrevChapter:ne.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:ne.features.interactiveTimeIndicator&&!!xe(Mc).length,interactiveEpisodes$:Mc,isInteractiveTime$:I?ni(I):re(!1),isInteractiveExpectation$:G_,hasInteractiveBranches:E,playPrevChapterDisabledTooltip:R,looped$:uo,loadedMetadata$:ii,isAutoQualityAvailable$:si},ui:{t:Ne,controlsVisible:re(!1),touched:re(!1),controls:{prevButton:re(void 0),playButton:re(void 0),replayButton:re(void 0),nextButton:re(void 0),playPrevChapterButton:re(void 0),seekToInteractiveButton:re(void 0),interactiveGraphButton:re(void 0),liveButton:re(void 0),time:re(void 0),episodes:re(void 0),volume:re(void 0),subtitles:re(void 0),settings:re(void 0),context:re(void 0),chromecast:re(void 0),pip:re(void 0),fullscreen:re(void 0),vkLogo:re(void 0),interactiveTimeIndicator:re(void 0),timeline:re(void 0),autoplayNextToggle:re(void 0),additionalButtons:X.length?X.reduce(c=>[...c,re(void 0)],[]):[],disabledControls$:Xe},modals:{hotKeyMap:{show:re(!1),data:re({title:"",closeBtnText:"",groups:[]})}},isFullscreen:Mt,isFullscreenOpenedByKeyboard:mt,rotateAlpha:Gt,isAutoplay:re(!1),debugPanelVisible:re(!1),episodes:{panelOpened$:re(!1),openedByKeyboard$:re(!1)},contextMenu:{visible$:re(!1),btnRef$:re(void 0),openedByBtnKeyboard$:re(!1),openedByHotKey$:re(!1),lastActiveElem$:re(void 0),showContextMenuBtn$:re(!1),position$:re({top:0,left:0})},playerSize:kt,isMobile:vn,mobileNotReportControlHidden$:fp,icon3DVideoVisible:re(!1),scrubbingInProgress:gi,volumeChangingInProgress:Et,is3DVideo:Qt,currentGridType$:Eo,additionalButtonsDeprecated$:Lr,additionalDesktopControlPanelRightButtons$:gn,additionalSettingsMenuItems$:_r,additionalContextMenuItems$:ui,interactiveHideMobileControls:re(!1),overlayContainer$:re(void 0),startedByKeyboard$:re(!1),autoplayNextEnabled$:re(!1),timerNextVideoRunning$:re(!0),settingsMenu:{visible$:re(!1),ref$:re(void 0),openedByBtnKeyboard$:re(!1)},settingsSubMenu:{visible$:re(!1),ref$:re(void 0),name$:re(void 0)},aboutToGoNextVideo:re(void 0),userActionsDisabled:re(!1),hiddenControls:{volume:re(!1),vkLogo:re(!1),pip:re(!1),chromecast:re(!1),settings:re(!1)},isControlsAvailable:Vn,controlBlocks:{topLeft:re(void 0),topRight:re(void 0),middle:re(void 0),bottom:re(void 0),bottomLeft:re(void 0),bottomRight:re(void 0)},videoTitleInfo:re(void 0)},ads:{position:re(0),duration:re(0),playbackState:re("inactive"),canSkip:re(!1),secondsToWatchBeforeSkip:re(0),postrollPassed:re(!1)},webApi:{pictureInPictureApi:ee,annotationsApi:ve,slotsApi:De},actions:{internal:{preload:Rt,firstStart:c=>Pc(c,!1),play:()=>Ec(!1),pause:()=>Ul(!1),togglePlay:Si,toggleMuted:ds,openSettingsMenu:Qr,closeSettingsMenu:Pr,openSettingsSubMenu:vi,closeSettingsSubMenu:lt,setVolume:c=>Zi(c,!1),setMuted:c=>co(c,!1),startVolumeChanging:Ji,stopVolumeChanging:mn,setVideoStream:Ir,setAudioStream:c=>dr(c,!1),setQuality:fo,setTrafficSavingEnabled:_o,setHighQualityEnabled:bo,setPlaybackRate:pn,incrementPlaybackRate:Ln,decrementPlaybackRate:Do,setSubtitle:c=>Hi(c,!1),toggleSubtitle:()=>Zn(!1),togglePictureInPicture:_n,startScrubbing:fn,progressScrubbing:Ho,completeScrubbing:yo,toggleChromecast:_p,switchToActiveLive:xc,switchFromAdsToVideo:wc,switchFromVideoToAds:vp,skipAd:mp,setLiveWaitingStart:Sc,setLiveWaitingRecover:gp,setLiveWaitingRecord:Cc,getDebugTextData:hp,getTraceTextData:Tc,getDebugPanelData:Ic,getVideoElement:Ys,seekTime:(c,x,L)=>Io(c,x,L),clearDelayedBufferingCheckTimeout:Sr,seekEpisodeStartTime:us,seekToPercent:Ar,getNextEpisode:Ac,seekToNextEpisode:je,getPrevEpisode:li,seekToPrevEpisode:Uo,startLogging:no,stopLogging:jo,startCameraManualRotation:Vt,stopCameraManualRotation:Tt,moveCameraFocusPX:Oi,holdCamera:Gi,releaseCamera:F,getVideoEpisodes:zl,getPreviewThumbsData:Zs,downloadVideo:Bo,addLanguage:kf,setLanguage:we,nextMovie:mi,videoRotate:q_,correctSeekTimeToInteractive:jv,replayInteractive:M,setLooped:un,reportProblem:wi,setAutoplayNextEnabled:jn,setTimerNextVideoRunning:Yn,prevVideoClick:cs,nextVideoClick:jr,nextVideoAnnouncementShow:po,nextVideoAnnouncementClick:Mn,nextVideoAnnouncementAuto:vr,nextVideoAnnouncementCancel:ut},external:{firstStart:c=>Pc(c,!0),play:()=>Ec(!0),pause:()=>Ul(!0),stop:()=>kc(!0),seekTime:c=>Zr(c),seekEpisodeStartTime:c=>Mr(c),setPlaybackRate:c=>Ze(c),setAutoQualityLimits:c=>Xi(c),setMuted:c=>co(c,!0),toggleSubtitle:()=>Zn(!0),setVolume:c=>Zi(c,!0),returnFocusToEpisodes:Q_,updateAdditionalSettingsItem:yt,addAdditionalSettingsItem:mo,removeAdditionalSettingsItem:hn,updateAdditionalContextItem:Li,addAdditionalContextItem:js,removeAdditionalContextItem:qa,updateAdditionalButton:Fo,addAdditionalButton:Qs,removeAdditionalButton:Ka,setLiveLowLatency:$t,hideControls:()=>gr(!1),showControls:()=>gr(!0)}},callbacks:a,setUiCallbacks:c=>{Me=W({},c)},getAdmanWrapper:()=>ue,getLogger:()=>Be,getPlayer:()=>N,destroy:j_};return Nt};function Hn(t,e,i,o){var f;let n=(f=e[i])==null?void 0:f.getBoundingClientRect(),s=o&&!!n&&!!(n.right-n.left),{top:l,left:d,bottom:a,right:u}=ys(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 wy=["disabledControls$","additionalButtons"],Sy=["interactiveTimeIndicator"],kl=(t,e,i,o)=>{if(t){for(let[n,s]of Object.entries(e))if(!wy.includes(n)){let l=o||Sy.includes(n);s.set(Hn(t,i,n,l))}}};var Fu=(t,e,i)=>St(null,null,function*(){yield Ao(),e&&i&&(i.focus(),t.set(!1))});var Cy=Te('<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 Im(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=Cy();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"dots-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Ce(),h(o),b(t,o)}function Em(t,e){U(e,!0);let[i,o]=Ue(),n=()=>S(a,"$contextMenuVisible$",i),s=m(e,"disabled",3,!1),l=m(e,"ariaLabel",3,""),d=Ie(),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$,y=Y(void 0);Ge(()=>{r(y)&&Ct(()=>{p.set(r(y))})});let w=I=>{let M=Ds(I),k=O1(r(y));v.set(k),u.set(M),a.set(!n())},$=()=>{f.set(!0)},C=()=>{f.set(!1)},T=g(()=>n()?"opened":"");Ft(t,{get className(){return r(T)},testId:"btn-context-menu",get disabled(){return s()},get ariaLabel(){return l()},click:w,focus:$,blur:C,get ariaExpanded(){return n()},get ref(){return r(y)},set ref(I){O(y,I,!0)},children:(I,M)=>{Im(I,{})},$$slots:{default:!0}}),z(),o()}var Ty=t=>{t.stopPropagation()},Iy=A("<div><!> <div></div> <div></div></div>"),Ey={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;}
227
226
 
228
227
  @media screen and (orientation: portrait) {.interactive-episode-icon-animated.mobile.fullscreen.svelte-od3veb {top:40px;right:16px;}
229
228
  }
@@ -248,17 +247,16 @@ Try switching the\xA0quality to\xA0Auto.`},y1=bb;var xs=new Map;xs.set(hl.Interf
248
247
  opacity: 0;
249
248
  }
250
249
  }.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);
251
- 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 Jd(t,e){var me;F(e,!0),q(t,Ty);let[i,o]=He(),n=()=>C(S,"$isMobile",i),s=()=>C(k,"$areControlsVisible",i),l=()=>C(R,"$currentGridType$",i),d=()=>C(E,"$isInteractiveTime$",i),a=()=>C($,"$interactiveControlsOpacity$",i),u=()=>C(V,"$showInteractiveTimeIndicatorTooltip$",i),f=()=>C(T,"$isFullscreen",i),v=m(e,"ref",15,void 0),p=Y(void 0),y=ke(),w=yo(),{interactiveControlsOpacity$:$}=w,S=y.ui.isMobile,T=y.ui.isFullscreen,E=y.state.isInteractiveTime$,V=w.showInteractiveTimeIndicatorTooltip$,k=y.ui.controlsVisible,I=(me=y.callbacks)==null?void 0:me.onInteractiveTimeIndicatorClick,R=y.ui.currentGridType$,Z=g(()=>!n()&&s()),D=g(()=>Ks(l(),"s")),H=g(()=>!d()||!!a()||r(Z)),W=Y(!1);We(()=>{O(W,r(H),!0)});let X=()=>{O(W,!0)},j=()=>{var ve;ce(),(ve=r(p))==null||ve.addEventListener("animationiteration",X,{once:!0})},ce=()=>{var ve;O(W,!1),(ve=r(p))==null||ve.removeEventListener("animationiteration",X)},re=ve=>{V.set(ve)},pe=g(()=>u()&&!r(H));We(()=>{u()?j():ce()});let xe=()=>{r(H)||(V.set(!0),I==null||I())};cn(()=>{V.clearTimeout(),ce()});let fe=()=>{V.set(!1)},ie=K("tooltip_interactive_interaction_time_indicator");var Pe=Cy();let ee;Pe.__mousemove=[Sy],Pe.__click=xe;var N=_(Pe);Ao(N,{get tooltipContent(){return ie},get tooltipActive(){return r(pe)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:re,get ref(){return v()},set ref(ve){v(ve)},children:(ve,se)=>{Wd(ve,{completed:!0})},$$slots:{default:!0}});var Ue=P(N,2);let _e;rt(Ue,ve=>v(ve),()=>v());var he=P(Ue,2);let ue;rt(he,ve=>O(p,ve),()=>r(p)),h(Pe),B((ve,se,Ge)=>{ee=te(Pe,1,"interactive-episode-icon-animated svelte-od3veb",null,ee,ve),_e=te(Ue,1,"ref-block svelte-od3veb",null,_e,se),ue=te(he,1,"pulse svelte-od3veb",null,ue,Ge)},[()=>({mobile:n(),fullscreen:f(),invisible:r(H),"icon-small":r(D)}),()=>({hidden:r(H)}),()=>({paused:r(W)})]),Ct("mouseleave",Pe,fe),b(t,Pe),U(),o()}ct(["mousemove","click"]);function Hu(t,e){F(e,!0);let i=m(e,"tooltipEnabled",3,!0),o=m(e,"disabled",3,!1),n=m(e,"className",3,void 0),s=m(e,"ref",15);Ao(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 n()},get ref(){return s()},set ref(l){s(l)},children:(l,d)=>{var a=ze();let u=g(()=>e.buttonComponent);var f=ge(a);Pi(f,()=>r(u),(v,p)=>{p(v,ys(()=>{var y;return(y=e.buttonComponentProps)!=null?y:{}}))}),b(l,a)},$$slots:{default:!0}}),U()}var Ss={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var Iy=Ee('<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 Im(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Iy();Ae(o,()=>z({xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img"},i));var n=_(o);we(n,()=>{var s;return(s=e.children)!=null?s:de}),Te(),h(o),b(t,o)}function qs(t,e){let i=m(e,"isPrev",3,!1),o=m(e,"isMobile",3,!1),n=m(e,"width",3,"24"),s=m(e,"height",3,"24"),l=g(()=>i()&&o()?"transform: scaleX(-1) scale(1.3333);":i()?"transform: scaleX(-1);":o()?"transform: scale(1.3333);":void 0),d=g(()=>i()?"prev-icon":"next-icon");Im(t,{get style(){return r(l)},get width(){return n()},get height(){return s()},get viewBox(){return e.viewBox},get"data-testid"(){return r(d)}})}var ky=A('<div class="icon-background-mobile svelte-xtk2k4"></div>'),Py=A("<!> <!>",1),Ay={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 La(t,e){F(e,!0),q(t,Ay);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"disabled",3,!1),l=ke().ui.t,d=g(()=>e.type==="prev"?l("tooltip_previous"):l("tooltip_next")),a=g(()=>e.type==="prev"?l("hotkey_map_item_prev_video_value"):l("hotkey_map_item_next_video_value")),u=g(()=>`btn-${o()?"m":"d"}--${e.type}`);Ot(t,{get className(){return r(u)},get testId(){var f;return`btn-${(f=e.type)!=null?f:""}`},get disabled(){return n()},get ariaLabel(){return r(d)},get click(){return e.click},get ariaKeyShortCut(){return r(a)},get ref(){return i()},set ref(f){i(f)},children:(f,v)=>{var p=Py(),y=ge(p);{var w=T=>{var E=ky();b(T,E)};L(y,T=>{o()&&T(w)})}var $=P(y,2);let S=g(()=>e.type==="prev");qs($,{get isMobile(){return o()},get isPrev(){return r(S)}}),b(f,p)},$$slots:{default:!0}}),U()}var My=Ee('<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 ec(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=My();Ae(o,()=>z({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"replay-icon",role:"img"},i));var n=_(o);we(n,()=>{var s;return(s=e.children)!=null?s:de}),Te(),h(o),b(t,o)}var l0=require("@vkontakte/videoplayer-shared/es2015");var Ly=A('<div class="icon-background-mobile svelte-1ot3duq"></div>'),Vy=A("<!> <div><!></div>",1),Ry={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 Al(t,e){F(e,!0),q(t,Ry);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"disabled",3,!1),s=m(e,"className",3,""),l=m(e,"click",3,l0.noop),d=K("tooltip_restart"),a=g(()=>`${o()?"btn-m--play":""} ${s()}`);Ot(t,{get className(){return r(a)},testId:"btn-replay",get ariaLabel(){return d},get disabled(){return n()},get click(){return l()},get ariaKeyShortCut(){return as.KeyK},get ref(){return i()},set ref(u){i(u)},children:(u,f)=>{var v=Vy(),p=ge(v);{var y=T=>{var E=Ly();b(T,E)};L(p,T=>{o()&&T(y)})}var w=P(p,2);let $;var S=_(w);ec(S,{}),h(w),B(T=>$=te(w,1,"svelte-1ot3duq",null,$,T),[()=>({mobile:o()})]),b(u,v)},$$slots:{default:!0}}),U()}var Ny=Ee('<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 Fr(t,e){"use strict";let i=m(e,"width",3,"24"),o=m(e,"height",3,"24"),n=m(e,"viewBox",3,"0 0 24 24"),s=m(e,"fill",3,"var(--btn-color)");var l=Ny(),d=_(l);h(l),B(()=>{Fe(l,"width",i()),Fe(l,"height",o()),Fe(l,"viewBox",n()),Fe(d,"fill",s())}),b(t,l)}var Oy=Ee('<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 Cs(t,e){"use strict";let i=m(e,"width",3,"24"),o=m(e,"height",3,"24"),n=m(e,"viewBox",3,"0 0 24 24"),s=m(e,"fill",3,"var(--btn-color)");var l=Oy(),d=_(l);h(l),B(()=>{Fe(l,"width",i()),Fe(l,"height",o()),Fe(l,"viewBox",n()),Fe(d,"fill",s())}),b(t,l)}var d0=require("@vkontakte/videoplayer-shared/es2015");var By=A('<div class="icon-background-mobile svelte-1ot3duq"></div>'),Dy=A("<!> <div><!></div>",1),Hy={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 Ml(t,e){F(e,!0),q(t,Hy);let[i,o]=He(),n=()=>C(s,"$fakeIsPlaying$",i),{fakeIsPlaying$:s}=yo(),l=m(e,"ref",15,void 0),d=m(e,"isMobile",3,!1),a=m(e,"isPlaying",3,!1),u=m(e,"disabled",3,!1),f=m(e,"className",3,""),v=m(e,"click",3,d0.noop),y=ke().ui.t,{toggle:w}=s,$=g(()=>w),S=g(()=>n()!==null),T=g(()=>r(S)?n():a()),E=g(()=>r(T)?y("tooltip_pause"):y("tooltip_play")),V=g(()=>r(T)?Cs:Fr),k=g(()=>`${d()?"btn-m--play":""} ${f()}`),I=g(()=>r(S)?r($):v());Ot(t,{get className(){return r(k)},testId:"btn-play",get click(){return r(I)},get disabled(){return u()},get ariaLabel(){return r(E)},get ariaKeyShortCut(){return as.KeyK},get ref(){return l()},set ref(R){l(R)},children:(R,Z)=>{var D=Dy();let H=g(()=>r(V));var W=ge(D);{var X=pe=>{var xe=By();b(pe,xe)};L(W,pe=>{d()&&pe(X)})}var j=P(W,2);let ce;var re=_(j);Pi(re,()=>r(H),(pe,xe)=>{xe(pe,{})}),h(j),B(pe=>ce=te(j,1,"svelte-1ot3duq",null,ce,pe),[()=>({mobile:d()})]),b(R,D)},$$slots:{default:!0}}),U(),o()}var Fy=Ee('<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 km(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Fy();Ae(o,()=>z({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"play-prev-chapter-icon",role:"img"},i));var n=_(o);we(n,()=>{var s;return(s=e.children)!=null?s:de}),Te(),h(o),b(t,o)}function tc(t,e){F(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),s=K("tooltip_interactive_go_back"),l=g(()=>o()?"hidden":"");Ot(t,{get className(){return r(l)},testId:"btn-play-prev-chapter",get ariaLabel(){return s},get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,a)=>{km(d,{})},$$slots:{default:!0}}),U()}var Uy=A('<span class="gutter svelte-et3q1q"><span><!></span></span>'),zy={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 ic(t,e){F(e,!0),q(t,zy);let[i,o]=He(),n=()=>C(a,"$autoplayNextEnabled$",i),s=m(e,"ref",15,void 0),l=ke(),d=l.ui.t,a=l.ui.autoplayNextEnabled$,u=l.actions.internal.setAutoplayNextEnabled,f=()=>{u(!n(),!0)},v=d("aria_label_autoplay"),p=g(()=>n()?"true":"false");Ot(t,{click:f,get ariaLabel(){return v},role:"switch",get areaChecked(){return r(p)},get ref(){return s()},set ref(y){s(y)},children:(y,w)=>{var $=Uy(),S=_($);let T;var E=_(S);{var V=I=>{Fr(I,{width:"14",height:"14",fill:"#000"})},k=I=>{Cs(I,{width:"14",height:"14",fill:"#000"})};L(E,I=>{n()?I(V):I(k,!1)})}h(S),h($),B(I=>T=te(S,1,"toggler svelte-et3q1q",null,T,I),[()=>({enabled:n()})]),b(y,$)},$$slots:{default:!0}}),U(),o()}var Wy=Ee('<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 Pm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Wy();Ae(o,()=>z({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 n=_(o);we(n,()=>{var s;return(s=e.children)!=null?s:de}),Te(2),h(o),b(t,o)}function oc(t,e){F(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),s=K("tooltip_interactive_seek"),l=g(()=>o()?"hidden":"");Ot(t,{get className(){return r(l)},testId:"btn-seek-to-interactive",get ariaLabel(){return s},get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,a)=>{Pm(d,{})},$$slots:{default:!0}}),U()}var Ky=Ee('<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 Am(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Ky();Ae(o,()=>z({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img"},i));var n=_(o);we(n,()=>{var s;return(s=e.children)!=null?s:de}),Te(2),h(o),b(t,o)}var qy={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function Mm(t,e){q(t,qy);let i=m(e,"isOpened",3,!1),o=g(()=>i()?"graph-close-icon":"graph-open-icon");Am(t,{get"data-testid"(){return r(o)}})}function nc(t,e){F(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),s=m(e,"graphIsOpened",3,!1),d=ke().ui.t,a=g(()=>s()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),u=g(()=>o()?"hidden":"");Ot(t,{get className(){return r(u)},testId:"btn-graph",get disabled(){return n()},get ariaLabel(){return r(a)},get click(){return e.click},get ref(){return i()},set ref(f){i(f)},children:(f,v)=>{let p=g(()=>!!s());Mm(f,{get isOpened(){return r(p)}})},$$slots:{default:!0}}),U()}var Lm=require("@vkontakte/videoplayer-core/es2015");function rc(t,e){F(e,!0);let[i,o]=He(),n=()=>C(u,"$playbackState$",i),s=m(e,"isMobile",3,!1),l=m(e,"isLiveActive",3,!1),d=m(e,"ariaLabel",3,""),a=ke(),u=a.state.playbackState$,f=a.actions.internal.switchToActiveLive,v=a.actions.internal.togglePlay,p=g(()=>()=>{if(!l()){f();return}n()===Lm.PlaybackState.PAUSED&&v()}),y=g(()=>s()?"":"btn--live btn-full-opacity"),w=g(()=>l()?"btn-live":"btn-live-offset"),$=g(()=>l()&&n()===Lm.PlaybackState.PLAYING);Ot(t,{get className(){return r(y)},get testId(){return r(w)},get disabled(){return r($)},get ariaLabel(){return d()},get click(){return r(p)},children:(S,T)=>{Ad(S,{get isActive(){return l()}})},$$slots:{default:!0}}),U(),o()}var Vm=require("@vkontakte/videoplayer-shared/es2015");var Gy=A('<div class="icon icon-error-stub"><div class="inner"></div></div>'),Qy=A('<img class="icon" aria-hidden="true"/>');function Va(t,e){"use strict";let i=Y(!1),o=()=>{O(i,!0)};var n=ze(),s=ge(n);{var l=a=>{var u=Gy();b(a,u)},d=a=>{var u=Qy();B(()=>Fe(u,"src",e.icon)),Ct("error",u,o),ca(u),b(a,u)};L(s,a=>{r(i)?a(l):a(d,!1)})}b(t,n)}function Rm(t,e){F(e,!0);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,Vm.noop),n=m(e,"ref",15),s=g(()=>o()===Vm.noop),l=g(()=>r(s)||i()),d=g(()=>r(s)?"btn-full-opacity":"");Ao(t,{get disabled(){return r(l)},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},width:40,get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},get ref(){return n()},set ref(a){n(a)},children:(a,u)=>{let f=g(()=>{var v;return(v=e.testId)!=null?v:e.id});Ot(a,{get className(){return r(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return r(l)},get testId(){return r(f)},children:(v,p)=>{Va(v,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),U()}var c0=t=>!!t.buttonComponent;var Ts={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var Fu=(t,e,i,o)=>{if(t)for(let[n,s]of Object.entries(e))s.set(Bn(t,i,n,o))};var Zy=A('<div><!> <div class="controls svelte-f6e8ix" data-testid="player_controls"><div class="controls-left svelte-f6e8ix"><!> <!> <!></div> <div class="controls-right svelte-f6e8ix"></div></div></div> <!>',1),Xy={hash:"svelte-f6e8ix",code:".wrapper-bottom.svelte-f6e8ix {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;}.wrapper-bottom.svelte-f6e8ix > :where(.svelte-f6e8ix) {pointer-events:auto;}.controls.svelte-f6e8ix {width:100%;display:flex;align-items:center;justify-content:space-between;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 var(--controls-desktop-padding-horizontal) 4px;box-sizing:border-box;}.controls-left.svelte-f6e8ix, .controls-right.svelte-f6e8ix {display:flex;align-content:center;}.controls-left.svelte-f6e8ix {flex-grow:1;min-width:0;overflow:hidden;}.controls-left.svelte-f6e8ix > *:not(:first-child), .controls-right.svelte-f6e8ix > * {margin-left:var(--controls-desktop-item-margin-left);}.controls-hidden.svelte-f6e8ix {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-f6e8ix {transition:none;}"};function Om(t,e){var Ys,qa;F(e,!0),q(t,Xy);let[i,o]=He(),n=()=>C(Vo,"$disabledControls$",i),s=()=>C(Wt,"$adPlaybackState",i),l=()=>C(Qt,"$playbackState$",i),d=()=>C(Hi,"$currentSubtitle$",i),a=()=>C(mi,"$isEnded$",i),u=()=>C(pn,"$currentGridType$",i),f=()=>C(nt,"$isLive$",i),v=()=>C(Ft,"$chromecastState$",i),p=()=>C(vi,"$isPictureInPictureActive",i),y=()=>C(Lo,"$pictureInPictureType$",i),w=()=>C(yt,"$availableSubtitlesList$",i),$=()=>C(gi,"$contextMenuOpenedByKeyboard$",i),S=()=>C(dt,"$showContextMenuBtn$",i),T=()=>C(Zo,"$playerSize",i),E=()=>C(Zt,"$isRewindableLive$",i),V=()=>C(ni,"$isActiveLive$",i),k=()=>C(nr,"$graphIsOpened$",i),I=()=>C(G,"$contextMenuVisible$",i),R=()=>C(eo,"$isFullscreen",i),Z=()=>C(Pt,"$autoplayNextEnabled",i),D=()=>C(r(Gr),"$prevButton",i),H=()=>C(r(Ir),"$replayButton",i),W=()=>C(r(St),"$playButton",i),X=()=>C(r(Rt),"$nextButton",i),j=()=>C(r(So),"$playPrevChapterButton",i),ce=()=>C(r(Do),"$seekToInteractiveButton",i),re=()=>C(r(po),"$interactiveGraphButton",i),pe=()=>C(r(Co),"$liveButton",i),xe=()=>C(r(fo),"$time",i),fe=()=>C(r(Gn),"$episodes",i),ie=()=>C(r(Qi),"$vkLogo",i),Pe=()=>C(r(Ho),"$volume",i),ee=()=>C(r(An),"$subtitles",i),N=()=>C(r(kr),"$settings",i),Ue=()=>C(r(Qr),"$context",i),_e=()=>C(r(ps),"$fullscreen",i),he=()=>C(r(jr),"$chromecast",i),ue=()=>C(Mi,"$additionalDesktopControlPanelRightButtons$",i),me=()=>C(Ro,"$isInteractiveTime$",i),ve=()=>C(lo,"$settingsMenuVisible",i),se=()=>C(vo,"$settingButtonRef$",i),Ge=()=>C(li,"$startedByKeyboard$",i),et=()=>C(it,"$isAudioAvailable$",i),J=()=>C(jt,"$fakeIsPlaying$",i),Le=()=>C(Jo,"$seekToInteractiveDisabledTooltip$",i),Ie=()=>C(xi,"$adPosition",i),Ze=()=>C(Vt,"$position$",i),at=()=>C(vt,"$adDuration",i),bt=()=>C(tt,"$duration$",i),gt=m(e,"playerControlsWrapperRef",15,void 0),Tt=m(e,"playerControlsRef",15,void 0),Qe=m(e,"isAds",3,!1),Kt=m(e,"logoTargetUrl",3,""),ti=m(e,"isOneVideoPlaylist",3,!1),Yt=m(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:jt}=yo(),oe=ke(),qt=yo(),$e=At(),Ce=oe.actions.internal.toggleMuted,le=oe.actions.internal.togglePlay,Ne=oe.actions.internal.pause,Ke=oe.actions.internal.toggleSubtitle,Ve=oe.actions.internal.checkFullscreenSupport,Xe=(Ys=oe.callbacks)==null?void 0:Ys.onAudioDoesNotExistHint,Be=(qa=oe.callbacks)==null?void 0:qa.onAudioDisabledHint,tt=oe.state.duration$,Vt=oe.state.positionWithScrubbing$,Qt=oe.state.playbackState$,it=oe.state.isAudioAvailable$,yi=oe.state.isAudioDisabled,mi=oe.state.isEnded$,nt=oe.state.isLive$,ni=oe.state.isActiveLive$,Zt=oe.state.isRewindableLive$,{isActive$:vi,type$:Lo}=qt.pictureInPicture$,lo=oe.ui.settingsMenu.visible$,co=oe.ui.settingsMenu.openedByBtnKeyboard$,Ht=oe.ui.controls,ui=oe.actions.internal.getVideoEpisodes(),Ft=oe.state.chromecastState$,yt=oe.state.availableSubtitlesList$,Hi=oe.state.currentSubtitle$,Vo=Ht.disabledControls$,G=oe.ui.contextMenu.visible$,dt=oe.ui.contextMenu.showContextMenuBtn$,gi=oe.ui.contextMenu.openedByBtnKeyboard$,li=oe.ui.startedByKeyboard$,di=oe.ui.controlBlocks,Re=oe.ui.t,vt=oe.ads.duration,xi=oe.ads.position,Wt=oe.ads.playbackState,eo=oe.ui.isFullscreen,Zo=oe.ui.playerSize,pn=oe.ui.currentGridType$,Mi=oe.ui.additionalDesktopControlPanelRightButtons$,Pt=oe.ui.autoplayNextEnabled$,hi=oe.actions.internal.getVideoElement,Xo=oe.actions.internal.replayInteractive,Tn=oe.actions.internal.prevVideoClick,En=oe.actions.internal.nextVideoClick,pi=oe.state.isInteractive,Ro=oe.state.isInteractiveTime$,Hn=oe.state.showInteractiveGraph,Fn=oe.state.showSeekToInteractive,Li=oe.state.showPlayPrevChapter,to=oe.state.showInteractiveTimeIndicator,No=oe.state.playPrevChapterDisabledTooltip,Jo=qt.seekToInteractiveDisabledTooltip$,nr=qt.graphIsOpened$,uo=$e.features.interactiveResponsiveUi,zr=g(()=>n().has("EPISODE_BUTTON")),rr=g(()=>n().has("GRAPH_BUTTON")),wr=g(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),sr=g(()=>n().has("PLAY_BUTTON")),Wr=g(()=>n().has("REPLAY_BUTTON")),ar=g(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),en=()=>oe.actions.internal.toggleChromecast(),Sr=g(()=>Qe()?s()==="playing":l()===Ra.PlaybackState.PLAYING),Vi=g(()=>d().value!=="off"),Un=g(()=>a()&&!Qe()||pi),zn=g(()=>uo?r(Un)&&Yi(u(),"m"):r(Un)),lr=g(()=>!a()||pi||Qe()),Wn=g(()=>Yi(u(),"m")),dr=g(()=>e.showNextPrevButtons&&Yi(u(),"m")&&!Qe()&&e.nextButtonActive),Kn=g(()=>e.showNextPrevButtons&&Yi(u(),"m")&&!Qe()&&e.prevButtonActive),In=g(()=>!Qe()&&!!f()),qn=g(()=>v()!==Ra.ChromecastState.NOT_AVAILABLE&&!(p()&&y()===1)&&Yi(u(),"m")&&!pi),Kr=g(()=>e.showAutoplayNext&&!ti()&&Yi(u(),"s")),cr=g(()=>w().length>0&&Yi(u(),"m")),Oo=g(()=>$()||S()),mt=g(()=>Yi(u(),"s")&&!Qe()),Jt=g(()=>!e.logoHidden&&!Qe()),ur=g(()=>$e.features.fullscreen&&Ve()&&(e.logoHidden||Yi(u(),uo?"xs":"s"))&&!(p()&&y()===1)&&(pi?Yt():!0)),wi=g(()=>(!f()||Qe())&&!($e.features.interactiveHideTime&&pi)),Fi=g(()=>T().width>100),kn=g(()=>Hn&&Yi(u(),"m")),Bo=g(()=>uo?Fn&&Yi(u(),"s"):Fn),fn=g(()=>uo?Li&&Yi(u(),"s"):Li),mn=g(()=>!Qe()&&!f()&&!!(ui!=null&&ui.length)&&r(Wn)&&!r(zr)),xo=g(()=>!E()||!!V()),vn=g(()=>k()?Re("tooltip_interactive_graph_on"):Re("tooltip_interactive_graph_off")),Cr=g(()=>I()?Re("tooltip_context_menu_close"):Re("tooltip_context_menu_open")),us=($t,ut)=>$t?ut&&ut===Ra.PlaybackState.PAUSED?Re("tooltip_play"):"":Re("tooltip_live"),Tr=g(()=>us(r(xo),l())),qr=g(()=>$e.logoType==="vk_video"?Re("tooltip_vk_video_logo"):Re("tooltip_vk_logo")),Pn=g(()=>r(Vi)?Re("tooltip_subtitles_on"):Re("tooltip_subtitles_off")),Er=g(()=>R()?Re("tooltip_fullscreen_on"):Re("tooltip_fullscreen_off")),wo=g(()=>v()===Ra.ChromecastState.CONNECTED?Re("tooltip_chromecast_on"):Re("tooltip_chromecast_off")),pr=g(()=>Z()?Re("tooltip_autoplay_on"):Re("tooltip_autoplay_off")),tn=Y(0),ii=ri({}),on=ri({}),Gr=g(()=>Ht.prevButton),Ir=g(()=>Ht.replayButton),St=g(()=>Ht.playButton),Rt=g(()=>Ht.nextButton),So=g(()=>Ht.playPrevChapterButton),Do=g(()=>Ht.seekToInteractiveButton),po=g(()=>Ht.interactiveGraphButton),Co=g(()=>Ht.liveButton),fo=g(()=>Ht.time),Gn=g(()=>Ht.episodes),Qi=g(()=>Ht.vkLogo),Ho=g(()=>Ht.volume),An=g(()=>Ht.subtitles),kr=g(()=>Ht.settings),Qr=g(()=>Ht.context),ps=g(()=>Ht.fullscreen),jr=g(()=>Ht.chromecast),mo=g(()=>({prevButton:D()?D().right-D().left:0,replayButton:H()?H().right-H().left:0,playButton:W()?W().right-W().left:0,nextButton:X()?X().right-X().left:0,playPrevChapterButton:j()?j().right-j().left:0,seekToInteractiveButton:ce()?ce().right-ce().left:0,interactiveGraphButton:re()?re().right-re().left:0,liveButton:pe()?pe().right-pe().left:0,time:xe()?xe().right-xe().left:0,episodes:fe()?fe().right-fe().left:0,vkLogo:ie()?ie().right-ie().left:0,volume:Pe()?Pe().right-Pe().left:0,subtitles:ee()?ee().right-ee().left:0,settings:N()?N().right-N().left:0,context:Ue()?Ue().right-Ue().left:0,fullscreen:_e()?_e().right-_e().left:0,chromecast:he()?he().right-he().left:0,additionalButtons:ue().length?ue().reduce($t=>[...$t,40],[]):[]})),gn=Y(0);We(()=>{(!r(gn)||r(gn)<r(mo).time)&&wt(()=>O(gn,r(mo).time,!0))});let Pr=Y(!1);We(()=>{let $t=0;r(mn)&&(Yi(u(),"xl")?$t=r(mo).time:$t=60);let ut=r(mo).prevButton+r(mo).playButton+r(mo).nextButton+r(mo).seekToInteractiveButton+r(mo).interactiveGraphButton+r(mo).liveButton+r(gn)+$t;O(Pr,r(wi)&&r(tn)>=ut,!0)});let lt=g(()=>r(Pr)&&Yi(u(),"m")),Mt=(0,Nm.debounceFn)(Pl,260),_i=(0,Nm.debounceFn)(Fu,260);We(()=>{T(),me(),Mt(hi(),Ht,ii,e.showControls),_i(hi(),di,on,e.showControls)}),We(()=>{on.bottom=gt()});let vo=ae();We(()=>{ve(),se()&&wt(()=>wl(se(),ve(),co))});let io;We(()=>{Ge(),wt(()=>Du(li,Ge(),io))});function go(){Us({isAudioDisabled:yi,isAudioAvailable:et(),isAds:Qe(),audioIsNotExistHintCallback:Xe,audioDisabledHintCallback:Be})&&Ce()}let ho=pi?Xo:le,nn=g(()=>J()!==null),rn=g(()=>r(nn)?J():r(Sr)),Mn=g(()=>r(rn)?Re("tooltip_pause"):Re("tooltip_play")),_o=Re("tooltip_episodes"),oo=g(()=>{var $t,ut,no,_n;return r(Kn)?{id:"prevButton",type:"desktop-control-panel-left",weight:Ss.prevButton,buttonComponent:La,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:Tn.bind(null,!0)},tooltipEnabled:!((ut=($t=oe.callbacks)==null?void 0:$t.uiInfo)!=null&&ut.onPrevButtonMouseEnter)&&!((_n=(no=oe.callbacks)==null?void 0:no.uiInfo)!=null&&_n.onPrevButtonMouseLeave),mouseEnter:()=>{var zi,ci,Oi;(Oi=(ci=(zi=oe.callbacks)==null?void 0:zi.uiInfo)==null?void 0:ci.onPrevButtonMouseEnter)==null||Oi.call(ci,Bn(hi(),ii,"prevButton",e.showControls))},mouseLeave:()=>{var zi,ci,Oi;(Oi=(ci=(zi=oe.callbacks)==null?void 0:zi.uiInfo)==null?void 0:ci.onPrevButtonMouseLeave)==null||Oi.call(ci,Bn(hi(),ii,"prevButton",e.showControls))},tooltipText:Re("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),To=g(()=>r(zn)?{id:"replayButton",type:"desktop-control-panel-left",weight:Ss.replayButton,buttonComponent:Al,buttonComponentProps:{disabled:r(Wr),click:ho},tooltipText:Re("tooltip_restart"),disabled:r(Wr)}:void 0),fr=g(()=>r(lr)?{id:"playButton",type:"desktop-control-panel-left",weight:Ss.playButton,buttonComponent:Ml,buttonComponentProps:{disabled:r(sr),isPlaying:r(Sr),click:le},tooltipText:r(Mn),disabled:r(sr)}:void 0),Qn=g(()=>{var $t,ut,no,_n;return r(dr)?{id:"nextButton",type:"desktop-control-panel-left",weight:Ss.nextButton,buttonComponent:La,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:En.bind(null,!0)},tooltipEnabled:!((ut=($t=oe.callbacks)==null?void 0:$t.uiInfo)!=null&&ut.onNextButtonMouseEnter)&&!((_n=(no=oe.callbacks)==null?void 0:no.uiInfo)!=null&&_n.onNextButtonMouseLeave),mouseEnter:()=>{var zi,ci,Oi;(Oi=(ci=(zi=oe.callbacks)==null?void 0:zi.uiInfo)==null?void 0:ci.onNextButtonMouseEnter)==null||Oi.call(ci,Bn(hi(),ii,"nextButton",e.showControls))},mouseLeave:()=>{var zi,ci,Oi;(Oi=(ci=(zi=oe.callbacks)==null?void 0:zi.uiInfo)==null?void 0:ci.onNextButtonMouseLeave)==null||Oi.call(ci,Bn(hi(),ii,"nextButton",e.showControls))},tooltipText:Re("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),mr=g(()=>pi&&r(fn)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:Ss.playPrevChapterButton,buttonComponent:tc,buttonComponentProps:{disabled:r(ar),click:e.playPrevChapter},tooltipText:Re("tooltip_interactive_go_back"),disabledTooltipContent:Re(No),disabled:r(ar)}:void 0),Yr=g(()=>pi&&r(Bo)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:Ss.seekToInteractiveButton,buttonComponent:oc,buttonComponentProps:{disabled:r(wr),click:e.seekToInteractive},tooltipText:Re("tooltip_interactive_seek"),disabled:r(wr),disabledTooltipContent:Re(Le())}:void 0),fs=g(()=>pi&&r(kn)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:Ss.interactiveGraphButton,buttonComponent:nc,buttonComponentProps:{disabled:r(rr),click:nr.toggle,graphIsOpened:k()},tooltipText:r(vn)}:void 0),Zr=g(()=>r(In)?{id:"liveButton",type:"desktop-control-panel-left",weight:Ss.liveButton,buttonComponent:rc,buttonComponentProps:{isLiveActive:r(xo),ariaLabel:r(Tr)},tooltipText:r(Tr),disabled:r(xo)&&l()===Ra.PlaybackState.PLAYING}:void 0),Ri=g(()=>[r(oo),r(To),r(fr),r(Qn),r(mr),r(Yr),r(fs),r(Zr)].filter($t=>!!$t).sort(Sa)),qe=g(()=>r(Jt)?{id:"vkLogo",type:"desktop-control-panel-right",weight:Ts.vkLogo,buttonComponent:Gd,buttonComponentProps:{targetUrl:Kt(),logoClickable:e.logoClickable,click:Ne},tooltipText:r(qr),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),ei=g(()=>r(Kr)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:Ts.autoplayNext,buttonComponent:ic,tooltipText:r(pr)}:void 0),Ei=g(()=>({id:"volume",type:"desktop-control-panel-right",weight:Ts.volume,buttonComponent:dm,buttonComponentProps:{click:go,isAds:Qe()}})),Eo=g(()=>r(cr)?{id:"subtitles",type:"desktop-control-panel-right",weight:Ts.subtitles,buttonComponent:rm,buttonComponentProps:{isSubtitlesEnabled:r(Vi),click:Ke},tooltipText:r(Pn)}:void 0),Fo=g(()=>r(mt)?{id:"settings",type:"desktop-control-panel-right",weight:Ts.settings,buttonComponent:Il,buttonComponentProps:{ref$:vo},tooltipText:ve()?void 0:Re("tooltip_settings_off")}:void 0),vr=g(()=>$e.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:Ts.context,buttonComponent:Em,buttonComponentProps:{ariaLabel:Re("aria_label_context_menu")},className:r(Oo)?"":"out-of-view",tooltipText:r(Cr)}:void 0),be=g(()=>r(ur)?{id:"fullscreen",type:"desktop-control-panel-right",weight:Ts.fullscreen,buttonComponent:qd,buttonComponentProps:{isFullscreen:R(),click:e.toggleFullscreen},tooltipText:r(Er)}:void 0),It=g(()=>r(qn)?{id:"chromecast",type:"desktop-control-panel-right",weight:Ts.chromecast,buttonComponent:Qd,buttonComponentProps:{state:v(),click:en},tooltipText:r(wo)}:void 0),Si=g(()=>[r(qe),r(ei),r(Ei),r(Eo),r(Fo),r(vr),r(be),r(It),...ue()].filter($t=>!!$t).sort(Sa));var Ii=Zy(),bo=ge(Ii);let ot;var Et=_(bo);let Ni=g(()=>!e.showControls),sn=g(()=>!r(Fi));Aa(Et,{get isHidden(){return r(Ni)},get timelineNotAvailable(){return r(sn)},get isAds(){return Qe()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return E()},get ref(){return ii.timeline},set ref($t){ii.timeline=$t}});var Uo=P(Et,2),$o=_(Uo),Ar=_($o);ki(Ar,17,()=>r(Ri),$t=>$t.id,($t,ut)=>{Hu($t,{get buttonComponent(){return r(ut).buttonComponent},get buttonComponentProps(){return r(ut).buttonComponentProps},get tooltipText(){return r(ut).tooltipText},get disabledTooltipContent(){return r(ut).disabledTooltipContent},get disabled(){return r(ut).disabled},get className(){return r(ut).className},get tooltipEnabled(){return r(ut).tooltipEnabled},get mouseEnter(){return r(ut).mouseEnter},get mouseLeave(){return r(ut).mouseLeave},get ref(){return ii[r(ut).id]},set ref(no){ii[r(ut).id]=no}})});var Xr=P(Ar,2);{var bi=$t=>{let ut=g(()=>!e.showControls),no=g(()=>Qe()?Ie():Ze()),_n=g(()=>Qe()?at():bt());zd($t,{get isHidden(){return r(ut)},isMobile:!1,get showDuration(){return r(lt)},get position(){return r(no)},get duration(){return r(_n)},get ref(){return ii.time},set ref(zi){ii.time=zi}})};L(Xr,$t=>{r(wi)&&$t(bi)})}var Ui=P(Xr,2);let hn=g(()=>!r(mn));Ao(Ui,{className:"w-max",get disabled(){return r(hn)},get tooltipContent(){return _o},get ref(){return ii.episodes},set ref($t){ii.episodes=$t},children:($t,ut)=>{var no=ze(),_n=ge(no);{var zi=ci=>{Yd(ci,{get position(){return Ze()},get duration(){return bt()},get timeCodes(){return ui}})};L(_n,ci=>{r(mn)&&ci(zi)})}b($t,no)},$$slots:{default:!0}}),h($o);var gr=P($o,2);ki(gr,21,()=>r(Si),$t=>$t.id,($t,ut)=>{var no=ze(),_n=ge(no);{var zi=Oi=>{Hu(Oi,{get buttonComponent(){return r(ut).buttonComponent},get buttonComponentProps(){return r(ut).buttonComponentProps},get tooltipText(){return r(ut).tooltipText},get disabledTooltipContent(){return r(ut).disabledTooltipContent},get disabled(){return r(ut).disabled},get className(){return r(ut).className},get ref(){return ii[r(ut).id]},set ref(Zs){ii[r(ut).id]=Zs}})},ci=Oi=>{let Zs=g(()=>!!r(ut).disabled);Rm(Oi,{get id(){return r(ut).id},get testId(){return r(ut).testId},get icon(){return r(ut).icon},get ariaLabel(){return r(ut).ariaLabel},get tooltipText(){return r(ut).tooltipText},get disabledTooltipContent(){return r(ut).disabledTooltipContent},get disabled(){return r(Zs)},get onClick(){return r(ut).onClick},get disableMouseupTooltipShow(){return r(ut).disableMouseupTooltipShow},get ref(){return ii[r(ut).id]},set ref(Ga){ii[r(ut).id]=Ga}})};L(_n,Oi=>{c0(r(ut))?Oi(zi):Oi(ci,!1)})}b($t,no)}),h(gr),h(Uo),rt(Uo,$t=>Tt($t),()=>Tt()),h(bo),rt(bo,$t=>gt($t),()=>gt());var hr=P(bo,2);{var zo=$t=>{Jd($t,{get ref(){return ii.interactiveTimeIndicator},set ref(ut){ii.interactiveTimeIndicator=ut}})};L(hr,$t=>{to&&$t(zo)})}B($t=>ot=te(bo,1,"wrapper-bottom svelte-f6e8ix",null,ot,$t),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),or($o,"clientWidth",$t=>O(tn,$t)),b(t,Ii),U(),o()}var Ll=require("@vkontakte/videoplayer-core/es2015");var Bm=require("@vkontakte/videoplayer-shared/es2015");var Jy=A('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),e4=A('<img class="icon svelte-167ouw6" aria-hidden="true"/>'),t4={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 Dm(t,e){q(t,t4);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,Bm.noop),n=g(()=>o()===Bm.noop),s=g(()=>r(n)||i()),l=Y(!1),d=()=>{O(l,!0)},a=g(()=>r(n)?"btn-full-opacity":"");Ot(t,{get className(){return r(a)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return r(s)},get testId(){return e.testId},children:(u,f)=>{var v=ze(),p=ge(v);{var y=$=>{var S=Jy();b($,S)},w=$=>{var S=e4();B(()=>Fe(S,"src",e.iconUrl)),Ct("error",S,d),ca(S),b($,S)};L(p,$=>{r(l)?$(y):$(w,!1)})}b(u,v)},$$slots:{default:!0}})}var i4=Ee('<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 Hm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=i4();Ae(o,()=>z({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img"},i));var n=_(o);we(n,()=>{var s;return(s=e.children)!=null?s:de}),Te(),h(o),b(t,o)}var u0=require("@vkontakte/videoplayer-shared/es2015");var o4=A('<div class="container svelte-yslgu" aria-hidden="true"><!></div>'),n4={hash:"svelte-yslgu",code:".container.svelte-yslgu {display:flex;align-items:center;}"};function Uu(t,e){F(e,!0),q(t,n4);let i=m(e,"muted",3,!1),o=m(e,"click",3,u0.noop),n=m(e,"ref",15,void 0),l=ke().ui.t,d=g(()=>i()?l("tooltip_volume"):l("tooltip_volume_muted")),a=g(()=>i()?Hm:Ws),u=g(()=>i()?"btn-mobile-muted":"btn-mobile-unmuted");Ot(t,{get testId(){return r(u)},get click(){return o()},get ariaLabel(){return r(d)},role:"button",get ref(){return n()},set ref(f){n(f)},children:(f,v)=>{var p=o4();let y=g(()=>r(a));var w=_(p);Pi(w,()=>r(y),($,S)=>{S($,{})}),h(p),b(f,p)},$$slots:{default:!0}}),U()}var r4=Ee('<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 Fm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=r4();Ae(o,()=>z({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img"},i));var n=_(o);we(n,()=>{var s;return(s=e.children)!=null?s:de}),Te(3),h(o),b(t,o)}var s4={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
252
- svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function Um(t,e){q(t,s4);let i=m(e,"isActive",3,!1),o=g(()=>i()?"color: #2688EB;":"color: #fff;"),n=g(()=>i()?"pip-icon--active":"pip-icon");Fm(t,{get style(){return r(o)},get"data-testid"(){return r(n)}})}var p0=require("@vkontakte/videoplayer-shared/es2015");function zm(t,e){F(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isPictureInPictureActive",3,!1),n=m(e,"click",3,p0.noop),s=K("menu_pip");Ot(t,{testId:"btn-pip",get ariaLabel(){return s},get click(){return n()},get ref(){return i()},set ref(l){i(l)},children:(l,d)=>{Um(l,{get isActive(){return o()}})},$$slots:{default:!0}}),U()}var Wm=require("@vkontakte/videoplayer-shared/es2015");var a4=(t,e,i,o)=>{r(e)&&i.onDisabledPlayPrevChapterClick(r(o))},l4=(t,e,i,o)=>{r(e)&&i.onDisabledSeekToInteractiveClick(r(o))},d4=A("<div><!></div>"),c4=A("<div><!></div>"),u4=A("<div><!></div>"),p4=A("<!> <!> <!>",1),f4=A("<div></div> <div></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),m4=A('<div class="wrapper-middle svelte-9xcbwc"><!></div>'),v4=A("<div><!></div> <!> <div><!></div>",1),g4=A('<div aria-hidden="true">\xB7</div> <!>',1),h4=A('<!> <!> <div><div><div><div class="controls-group contain svelte-9xcbwc"><!> <!> <!> <!></div> <div class="controls-group svelte-9xcbwc"><!> <!> <!></div></div> <!></div></div> <!>',1),_4={hash:"svelte-9xcbwc",code:`.wrapper-bottom.svelte-9xcbwc {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);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-9xcbwc > :where(.svelte-9xcbwc) {pointer-events:auto;}.wrapper-bottom.ads-timeline-mobile.svelte-9xcbwc {height:9px;padding:0 4px 4px;}.wrapper-middle.svelte-9xcbwc {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-9xcbwc {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-9xcbwc {position:absolute;top:4px;left:8px;z-index:var(--controls-container-z-index);}.wrapper-middle-left.svelte-9xcbwc,
253
- .wrapper-middle-left-second.svelte-9xcbwc,
254
- .wrapper-middle-right.svelte-9xcbwc {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-9xcbwc {left:12px;}.wrapper-middle-left-second.svelte-9xcbwc {left:64px;}.wrapper-middle-right.svelte-9xcbwc {right:12px;}.controls.svelte-9xcbwc {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-9xcbwc {display:flex;}.controls-group.contain.svelte-9xcbwc {min-width:0;}.controls-group.svelte-9xcbwc > *:not(:first-child) {margin-left:8px;}.hidden.svelte-9xcbwc {visibility:hidden;opacity:0;}.controls-hidden.svelte-9xcbwc {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-9xcbwc {transition:none;}.overlay-mobile.svelte-9xcbwc {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);}
255
-
250
+ 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 jd(t,e){var ee;U(e,!0),G(t,Ey);let[i,o]=Ue(),n=()=>S(C,"$isMobile",i),s=()=>S(k,"$areControlsVisible",i),l=()=>S(R,"$currentGridType$",i),d=()=>S(I,"$isInteractiveTime$",i),a=()=>S($,"$interactiveControlsOpacity$",i),u=()=>S(M,"$showInteractiveTimeIndicatorTooltip$",i),f=()=>S(T,"$isFullscreen",i),v=m(e,"ref",15,void 0),p=Y(void 0),y=Ie(),w=xo(),{interactiveControlsOpacity$:$}=w,C=y.ui.isMobile,T=y.ui.isFullscreen,I=y.state.isInteractiveTime$,M=w.showInteractiveTimeIndicatorTooltip$,k=y.ui.controlsVisible,E=(ee=y.callbacks)==null?void 0:ee.onInteractiveTimeIndicatorClick,R=y.ui.currentGridType$,X=g(()=>!n()&&s()),D=g(()=>zs(l(),"s")),H=g(()=>!d()||!!a()||r(X)),K=Y(!1);Ge(()=>{O(K,r(H),!0)});let J=()=>{O(K,!0)},j=()=>{var ve;ce(),(ve=r(p))==null||ve.addEventListener("animationiteration",J,{once:!0})},ce=()=>{var ve;O(K,!1),(ve=r(p))==null||ve.removeEventListener("animationiteration",J)},oe=ve=>{M.set(ve)},pe=g(()=>u()&&!r(H));Ge(()=>{u()?j():ce()});let be=()=>{r(H)||(M.set(!0),E==null||E())};nn(()=>{M.clearTimeout(),ce()});let fe=()=>{M.set(!1)},ke=q("tooltip_interactive_interaction_time_indicator");var ne=Iy();let Le;ne.__mousemove=[Ty],ne.__click=be;var se=_(ne);Lo(se,{get tooltipContent(){return ke},get tooltipActive(){return r(pe)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:oe,get ref(){return v()},set ref(ve){v(ve)},children:(ve,De)=>{Hd(ve,{completed:!0})},$$slots:{default:!0}});var N=P(se,2);let Be;nt(N,ve=>v(ve),()=>v());var ue=P(N,2);let ge;nt(ue,ve=>O(p,ve),()=>r(p)),h(ne),B((ve,De,me)=>{Le=te(ne,1,"interactive-episode-icon-animated svelte-od3veb",null,Le,ve),Be=te(N,1,"ref-block svelte-od3veb",null,Be,De),ge=te(ue,1,"pulse svelte-od3veb",null,ge,me)},[()=>({mobile:n(),fullscreen:f(),invisible:r(H),"icon-small":r(D)}),()=>({hidden:r(H)}),()=>({paused:r(K)})]),It("mouseleave",ne,fe),b(t,ne),z(),o()}ft(["mousemove","click"]);function Uu(t,e){U(e,!0);let i=m(e,"tooltipEnabled",3,!0),o=m(e,"disabled",3,!1),n=m(e,"className",3,void 0),s=m(e,"ref",15);Lo(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 n()},get ref(){return s()},set ref(l){s(l)},children:(l,d)=>{var a=qe();let u=g(()=>e.buttonComponent);var f=he(a);ki(f,()=>r(u),(v,p)=>{p(v,bs(()=>{var y;return(y=e.buttonComponentProps)!=null?y:{}}))}),b(l,a)},$$slots:{default:!0}}),z()}var xs={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var Py=Te('<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 km(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=Py();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Ce(),h(o),b(t,o)}function Ws(t,e){let i=m(e,"isPrev",3,!1),o=m(e,"isMobile",3,!1),n=m(e,"width",3,"24"),s=m(e,"height",3,"24"),l=g(()=>i()&&o()?"transform: scaleX(-1) scale(1.3333);":i()?"transform: scaleX(-1);":o()?"transform: scale(1.3333);":void 0),d=g(()=>i()?"prev-icon":"next-icon");km(t,{get style(){return r(l)},get width(){return n()},get height(){return s()},get viewBox(){return e.viewBox},get"data-testid"(){return r(d)}})}var Ay=A('<div class="icon-background-mobile svelte-xtk2k4"></div>'),My=A("<!> <!>",1),Ly={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 Ma(t,e){U(e,!0),G(t,Ly);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"disabled",3,!1),l=Ie().ui.t,d=g(()=>e.type==="prev"?l("tooltip_previous"):l("tooltip_next")),a=g(()=>e.type==="prev"?l("hotkey_map_item_prev_video_value"):l("hotkey_map_item_next_video_value")),u=g(()=>`btn-${o()?"m":"d"}--${e.type}`);Ft(t,{get className(){return r(u)},get testId(){var f;return`btn-${(f=e.type)!=null?f:""}`},get disabled(){return n()},get ariaLabel(){return r(d)},get click(){return e.click},get ariaKeyShortCut(){return r(a)},get ref(){return i()},set ref(f){i(f)},children:(f,v)=>{var p=My(),y=he(p);{var w=T=>{var I=Ay();b(T,I)};V(y,T=>{o()&&T(w)})}var $=P(y,2);let C=g(()=>e.type==="prev");Ws($,{get isMobile(){return o()},get isPrev(){return r(C)}}),b(f,p)},$$slots:{default:!0}}),z()}var Vy=Te('<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 Yd(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=Vy();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"replay-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Ce(),h(o),b(t,o)}var l_=require("@vkontakte/videoplayer-shared/es2015");var Ry=A('<div class="icon-background-mobile svelte-1ot3duq"></div>'),Ny=A("<!> <div><!></div>",1),Oy={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 Pl(t,e){U(e,!0),G(t,Oy);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"disabled",3,!1),s=m(e,"className",3,""),l=m(e,"click",3,l_.noop),d=q("tooltip_restart"),a=g(()=>`${o()?"btn-m--play":""} ${s()}`);Ft(t,{get className(){return r(a)},testId:"btn-replay",get ariaLabel(){return d},get disabled(){return n()},get click(){return l()},get ariaKeyShortCut(){return rs.KeyK},get ref(){return i()},set ref(u){i(u)},children:(u,f)=>{var v=Ny(),p=he(v);{var y=T=>{var I=Ry();b(T,I)};V(p,T=>{o()&&T(y)})}var w=P(p,2);let $;var C=_(w);Yd(C,{}),h(w),B(T=>$=te(w,1,"svelte-1ot3duq",null,$,T),[()=>({mobile:o()})]),b(u,v)},$$slots:{default:!0}}),z()}var By=Te('<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 zr(t,e){"use strict";let i=m(e,"width",3,"24"),o=m(e,"height",3,"24"),n=m(e,"viewBox",3,"0 0 24 24"),s=m(e,"fill",3,"var(--btn-color)");var l=By(),d=_(l);h(l),B(()=>{ze(l,"width",i()),ze(l,"height",o()),ze(l,"viewBox",n()),ze(d,"fill",s())}),b(t,l)}var Dy=Te('<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 ws(t,e){"use strict";let i=m(e,"width",3,"24"),o=m(e,"height",3,"24"),n=m(e,"viewBox",3,"0 0 24 24"),s=m(e,"fill",3,"var(--btn-color)");var l=Dy(),d=_(l);h(l),B(()=>{ze(l,"width",i()),ze(l,"height",o()),ze(l,"viewBox",n()),ze(d,"fill",s())}),b(t,l)}var d_=require("@vkontakte/videoplayer-shared/es2015");var Hy=A('<div class="icon-background-mobile svelte-1ot3duq"></div>'),Fy=A("<!> <div><!></div>",1),Uy={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 Al(t,e){U(e,!0),G(t,Uy);let[i,o]=Ue(),n=()=>S(s,"$fakeIsPlaying$",i),{fakeIsPlaying$:s}=xo(),l=m(e,"ref",15,void 0),d=m(e,"isMobile",3,!1),a=m(e,"isPlaying",3,!1),u=m(e,"disabled",3,!1),f=m(e,"className",3,""),v=m(e,"click",3,d_.noop),y=Ie().ui.t,{toggle:w}=s,$=g(()=>w),C=g(()=>n()!==null),T=g(()=>r(C)?n():a()),I=g(()=>r(T)?y("tooltip_pause"):y("tooltip_play")),M=g(()=>r(T)?ws:zr),k=g(()=>`${d()?"btn-m--play":""} ${f()}`),E=g(()=>r(C)?r($):v());Ft(t,{get className(){return r(k)},testId:"btn-play",get click(){return r(E)},get disabled(){return u()},get ariaLabel(){return r(I)},get ariaKeyShortCut(){return rs.KeyK},get ref(){return l()},set ref(R){l(R)},children:(R,X)=>{var D=Fy();let H=g(()=>r(M));var K=he(D);{var J=pe=>{var be=Hy();b(pe,be)};V(K,pe=>{d()&&pe(J)})}var j=P(K,2);let ce;var oe=_(j);ki(oe,()=>r(H),(pe,be)=>{be(pe,{})}),h(j),B(pe=>ce=te(j,1,"svelte-1ot3duq",null,ce,pe),[()=>({mobile:d()})]),b(R,D)},$$slots:{default:!0}}),z(),o()}var zy=Te('<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 Pm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=zy();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"play-prev-chapter-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Ce(),h(o),b(t,o)}function Zd(t,e){U(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),s=q("tooltip_interactive_go_back"),l=g(()=>o()?"hidden":"");Ft(t,{get className(){return r(l)},testId:"btn-play-prev-chapter",get ariaLabel(){return s},get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,a)=>{Pm(d,{})},$$slots:{default:!0}}),z()}var Wy=A('<span class="gutter svelte-et3q1q"><span><!></span></span>'),Ky={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 Xd(t,e){U(e,!0),G(t,Ky);let[i,o]=Ue(),n=()=>S(a,"$autoplayNextEnabled$",i),s=m(e,"ref",15,void 0),l=Ie(),d=l.ui.t,a=l.ui.autoplayNextEnabled$,u=l.actions.internal.setAutoplayNextEnabled,f=()=>{u(!n(),!0)},v=d("aria_label_autoplay"),p=g(()=>n()?"true":"false");Ft(t,{click:f,get ariaLabel(){return v},role:"switch",get areaChecked(){return r(p)},get ref(){return s()},set ref(y){s(y)},children:(y,w)=>{var $=Wy(),C=_($);let T;var I=_(C);{var M=E=>{zr(E,{width:"14",height:"14",fill:"#000"})},k=E=>{ws(E,{width:"14",height:"14",fill:"#000"})};V(I,E=>{n()?E(M):E(k,!1)})}h(C),h($),B(E=>T=te(C,1,"toggler svelte-et3q1q",null,T,E),[()=>({enabled:n()})]),b(y,$)},$$slots:{default:!0}}),z(),o()}var qy=Te('<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 Am(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=qy();Pe(o,()=>W({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 n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Ce(2),h(o),b(t,o)}function Jd(t,e){U(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),s=q("tooltip_interactive_seek"),l=g(()=>o()?"hidden":"");Ft(t,{get className(){return r(l)},testId:"btn-seek-to-interactive",get ariaLabel(){return s},get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,a)=>{Am(d,{})},$$slots:{default:!0}}),z()}var Gy=Te('<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 Mm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=Gy();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Ce(2),h(o),b(t,o)}var Qy={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function Lm(t,e){G(t,Qy);let i=m(e,"isOpened",3,!1),o=g(()=>i()?"graph-close-icon":"graph-open-icon");Mm(t,{get"data-testid"(){return r(o)}})}function ec(t,e){U(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),s=m(e,"graphIsOpened",3,!1),d=Ie().ui.t,a=g(()=>s()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),u=g(()=>o()?"hidden":"");Ft(t,{get className(){return r(u)},testId:"btn-graph",get disabled(){return n()},get ariaLabel(){return r(a)},get click(){return e.click},get ref(){return i()},set ref(f){i(f)},children:(f,v)=>{let p=g(()=>!!s());Lm(f,{get isOpened(){return r(p)}})},$$slots:{default:!0}}),z()}var Vm=require("@vkontakte/videoplayer-core/es2015");function tc(t,e){U(e,!0);let[i,o]=Ue(),n=()=>S(u,"$playbackState$",i),s=m(e,"isMobile",3,!1),l=m(e,"isLiveActive",3,!1),d=m(e,"ariaLabel",3,""),a=Ie(),u=a.state.playbackState$,f=a.actions.internal.switchToActiveLive,v=a.actions.internal.togglePlay,p=g(()=>()=>{if(!l()){f();return}n()===Vm.PlaybackState.PAUSED&&v()}),y=g(()=>s()?"":"btn--live btn-full-opacity"),w=g(()=>l()?"btn-live":"btn-live-offset"),$=g(()=>l()&&n()===Vm.PlaybackState.PLAYING);Ft(t,{get className(){return r(y)},get testId(){return r(w)},get disabled(){return r($)},get ariaLabel(){return d()},get click(){return r(p)},children:(C,T)=>{Id(C,{get isActive(){return l()}})},$$slots:{default:!0}}),z(),o()}var Rm=require("@vkontakte/videoplayer-shared/es2015");var jy=A('<div class="icon icon-error-stub"><div class="inner"></div></div>'),Yy=A('<img class="icon" aria-hidden="true"/>');function La(t,e){"use strict";let i=Y(!1),o=()=>{O(i,!0)};var n=qe(),s=he(n);{var l=a=>{var u=jy();b(a,u)},d=a=>{var u=Yy();B(()=>ze(u,"src",e.icon)),It("error",u,o),da(u),b(a,u)};V(s,a=>{r(i)?a(l):a(d,!1)})}b(t,n)}function Nm(t,e){U(e,!0);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,Rm.noop),n=m(e,"ref",15),s=g(()=>o()===Rm.noop),l=g(()=>r(s)||i()),d=g(()=>r(s)?"btn-full-opacity":"");Lo(t,{get disabled(){return r(l)},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},width:40,get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},get ref(){return n()},set ref(a){n(a)},children:(a,u)=>{let f=g(()=>{var v;return(v=e.testId)!=null?v:e.id});Ft(a,{get className(){return r(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return r(l)},get testId(){return r(f)},children:(v,p)=>{La(v,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),z()}var c_=t=>!!t.buttonComponent;var Ss={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var zu=(t,e,i,o)=>{if(t)for(let[n,s]of Object.entries(e))s.set(Hn(t,i,n,o))};var Jy=A('<div><!> <div class="controls svelte-f6e8ix" data-testid="player_controls"><div class="controls-left svelte-f6e8ix"><!> <!> <!></div> <div class="controls-right svelte-f6e8ix"></div></div></div> <!>',1),e4={hash:"svelte-f6e8ix",code:".wrapper-bottom.svelte-f6e8ix {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;}.wrapper-bottom.svelte-f6e8ix > :where(.svelte-f6e8ix) {pointer-events:auto;}.controls.svelte-f6e8ix {width:100%;display:flex;align-items:center;justify-content:space-between;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 var(--controls-desktop-padding-horizontal) 4px;box-sizing:border-box;}.controls-left.svelte-f6e8ix, .controls-right.svelte-f6e8ix {display:flex;align-content:center;}.controls-left.svelte-f6e8ix {flex-grow:1;min-width:0;overflow:hidden;}.controls-left.svelte-f6e8ix > *:not(:first-child), .controls-right.svelte-f6e8ix > * {margin-left:var(--controls-desktop-item-margin-left);}.controls-hidden.svelte-f6e8ix {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-f6e8ix {transition:none;}"};function Bm(t,e){var Qs,Ka;U(e,!0),G(t,e4);let[i,o]=Ue(),n=()=>S(Tt,"$disabledControls$",i),s=()=>S(ei,"$adPlaybackState",i),l=()=>S(kt,"$playbackState$",i),d=()=>S(Vt,"$currentSubtitle$",i),a=()=>S(fi,"$isEnded$",i),u=()=>S(sn,"$currentGridType$",i),f=()=>S(mi,"$isLive$",i),v=()=>S(no,"$chromecastState$",i),p=()=>S(qi,"$isPictureInPictureActive",i),y=()=>S(Yt,"$pictureInPictureType$",i),w=()=>S(jo,"$availableSubtitlesList$",i),$=()=>S(F,"$contextMenuOpenedByKeyboard$",i),C=()=>S(Gi,"$showContextMenuBtn$",i),T=()=>S(ro,"$playerSize",i),I=()=>S(jt,"$isRewindableLive$",i),M=()=>S(dt,"$isActiveLive$",i),k=()=>S(wo,"$graphIsOpened$",i),E=()=>S(Oi,"$contextMenuVisible$",i),R=()=>S(Dt,"$isFullscreen",i),X=()=>S(Ti,"$autoplayNextEnabled",i),D=()=>S(r(ds),"$prevButton",i),H=()=>S(r(Pr),"$replayButton",i),K=()=>S(r(Qr),"$playButton",i),J=()=>S(r(lt),"$nextButton",i),j=()=>S(r(vi),"$playPrevChapterButton",i),ce=()=>S(r(Co),"$seekToInteractiveButton",i),oe=()=>S(r(lo),"$interactiveGraphButton",i),pe=()=>S(r(Zi),"$liveButton",i),be=()=>S(r(co),"$time",i),fe=()=>S(r(uo),"$episodes",i),ke=()=>S(r(un),"$vkLogo",i),ne=()=>S(r(wi),"$volume",i),Le=()=>S(r(jn),"$subtitles",i),se=()=>S(r(Yn),"$settings",i),N=()=>S(r(cs),"$context",i),Be=()=>S(r(jr),"$fullscreen",i),ue=()=>S(r(Yr),"$chromecast",i),ge=()=>S(an,"$additionalDesktopControlPanelRightButtons$",i),ee=()=>S(ji,"$isInteractiveTime$",i),ve=()=>S(Ai,"$settingsMenuVisible",i),De=()=>S(fo,"$settingButtonRef$",i),me=()=>S(Bt,"$startedByKeyboard$",i),at=()=>S(Jt,"$isAudioAvailable$",i),Z=()=>S(Xt,"$fakeIsPlaying$",i),Me=()=>S(Yi,"$seekToInteractiveDisabledTooltip$",i),Ee=()=>S(ct,"$adPosition",i),We=()=>S(Xe,"$position$",i),tt=()=>S(et,"$adDuration",i),bt=()=>S(He,"$duration$",i),Mt=m(e,"playerControlsWrapperRef",15,void 0),mt=m(e,"playerControlsRef",15,void 0),Qe=m(e,"isAds",3,!1),Gt=m(e,"logoTargetUrl",3,""),ii=m(e,"isOneVideoPlaylist",3,!1),Qt=m(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:Xt}=xo(),le=Ie(),Ot=xo(),we=At(),_e=le.actions.internal.toggleMuted,de=le.actions.internal.togglePlay,Ne=le.actions.internal.pause,Fe=le.actions.internal.toggleSubtitle,Ve=(Qs=le.callbacks)==null?void 0:Qs.onAudioDoesNotExistHint,Ke=(Ka=le.callbacks)==null?void 0:Ka.onAudioDisabledHint,He=le.state.duration$,Xe=le.state.positionWithScrubbing$,kt=le.state.playbackState$,Jt=le.state.isAudioAvailable$,ot=le.state.isAudioDisabled,fi=le.state.isEnded$,mi=le.state.isLive$,dt=le.state.isActiveLive$,jt=le.state.isRewindableLive$,{isActive$:qi,type$:Yt}=Ot.pictureInPicture$,Ai=le.ui.settingsMenu.visible$,Ro=le.ui.settingsMenu.openedByBtnKeyboard$,Kt=le.ui.controls,di=le.actions.internal.getVideoEpisodes(),no=le.state.chromecastState$,jo=le.state.availableSubtitlesList$,Vt=le.state.currentSubtitle$,Tt=Kt.disabledControls$,Oi=le.ui.contextMenu.visible$,Gi=le.ui.contextMenu.showContextMenuBtn$,F=le.ui.contextMenu.openedByBtnKeyboard$,Bt=le.ui.startedByKeyboard$,ci=le.ui.controlBlocks,xt=le.ui.t,et=le.ads.duration,ct=le.ads.position,ei=le.ads.playbackState,Dt=le.ui.isFullscreen,ro=le.ui.playerSize,sn=le.ui.currentGridType$,an=le.ui.additionalDesktopControlPanelRightButtons$,Ti=le.ui.autoplayNextEnabled$,wt=le.actions.internal.getVideoElement,Bi=le.actions.internal.replayInteractive,Yo=le.actions.internal.prevVideoClick,Cn=le.actions.internal.nextVideoClick,Qi=le.state.isInteractive,ji=le.state.isInteractiveTime$,No=le.state.showInteractiveGraph,Tn=le.state.showSeekToInteractive,Un=le.state.showPlayPrevChapter,Mi=le.state.showInteractiveTimeIndicator,In=le.state.playPrevChapterDisabledTooltip,Yi=Ot.seekToInteractiveDisabledTooltip$,wo=Ot.graphIsOpened$,ln=we.features.interactiveResponsiveUi,Sr=g(()=>n().has("EPISODE_BUTTON")),zn=g(()=>n().has("GRAPH_BUTTON")),Wn=g(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),Cr=g(()=>n().has("PLAY_BUTTON")),Tr=g(()=>n().has("REPLAY_BUTTON")),Kn=g(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),dn=()=>le.actions.internal.toggleChromecast(),ar=g(()=>Qe()?s()==="playing":l()===Va.PlaybackState.PLAYING),so=g(()=>d().value!=="off"),Zo=g(()=>a()&&!Qe()||Qi),lr=g(()=>ln?r(Zo)&&to(u(),"m"):r(Zo)),En=g(()=>!a()||Qi||Qe()),Ir=g(()=>to(u(),"m")),dr=g(()=>e.showNextPrevButtons&&to(u(),"m")&&!Qe()&&e.nextButtonActive),cr=g(()=>e.showNextPrevButtons&&to(u(),"m")&&!Qe()&&e.prevButtonActive),Er=g(()=>!Qe()&&!!f()),qn=g(()=>v()!==Va.ChromecastState.NOT_AVAILABLE&&!(p()&&y()===1)&&to(u(),"m")&&!Qi),kn=g(()=>e.showAutoplayNext&&!ii()&&to(u(),"s")),ur=g(()=>w().length>0&&to(u(),"m")),Kr=g(()=>$()||C()),st=g(()=>to(u(),"s")&&!Qe()),si=g(()=>!e.logoHidden&&!Qe()),pr=g(()=>we.features.fullscreen&&(e.logoHidden||to(u(),ln?"xs":"s"))&&!(p()&&y()===1)&&(Qi?Qt():!0)),cn=g(()=>(!f()||Qe())&&!(we.features.interactiveHideTime&&Qi)),Xo=g(()=>T().width>100),Ii=g(()=>No&&to(u(),"m")),Di=g(()=>ln?Tn&&to(u(),"s"):Tn),ao=g(()=>ln?Un&&to(u(),"s"):Un),Pn=g(()=>!Qe()&&!f()&&!!(di!=null&&di.length)&&r(Ir)&&!r(Sr)),Oo=g(()=>!I()||!!M()),Gn=g(()=>k()?xt("tooltip_interactive_graph_on"):xt("tooltip_interactive_graph_off")),fr=g(()=>E()?xt("tooltip_context_menu_close"):xt("tooltip_context_menu_open")),Qn=($t,yt)=>$t?yt&&yt===Va.PlaybackState.PAUSED?xt("tooltip_play"):"":xt("tooltip_live"),kr=g(()=>Qn(r(Oo),l())),qr=g(()=>we.logoType==="vk_video"?xt("tooltip_vk_video_logo"):xt("tooltip_vk_logo")),An=g(()=>r(so)?xt("tooltip_subtitles_on"):xt("tooltip_subtitles_off")),Gr=g(()=>R()?xt("tooltip_fullscreen_on"):xt("tooltip_fullscreen_off")),mr=g(()=>v()===Va.ChromecastState.CONNECTED?xt("tooltip_chromecast_on"):xt("tooltip_chromecast_off")),So=g(()=>X()?xt("tooltip_autoplay_on"):xt("tooltip_autoplay_off")),Jo=Y(0),oi=ri({}),Bo=ri({}),ds=g(()=>Kt.prevButton),Pr=g(()=>Kt.replayButton),Qr=g(()=>Kt.playButton),lt=g(()=>Kt.nextButton),vi=g(()=>Kt.playPrevChapterButton),Co=g(()=>Kt.seekToInteractiveButton),lo=g(()=>Kt.interactiveGraphButton),Zi=g(()=>Kt.liveButton),co=g(()=>Kt.time),uo=g(()=>Kt.episodes),un=g(()=>Kt.vkLogo),wi=g(()=>Kt.volume),jn=g(()=>Kt.subtitles),Yn=g(()=>Kt.settings),cs=g(()=>Kt.context),jr=g(()=>Kt.fullscreen),Yr=g(()=>Kt.chromecast),po=g(()=>({prevButton:D()?D().right-D().left:0,replayButton:H()?H().right-H().left:0,playButton:K()?K().right-K().left:0,nextButton:J()?J().right-J().left:0,playPrevChapterButton:j()?j().right-j().left:0,seekToInteractiveButton:ce()?ce().right-ce().left:0,interactiveGraphButton:oe()?oe().right-oe().left:0,liveButton:pe()?pe().right-pe().left:0,time:be()?be().right-be().left:0,episodes:fe()?fe().right-fe().left:0,vkLogo:ke()?ke().right-ke().left:0,volume:ne()?ne().right-ne().left:0,subtitles:Le()?Le().right-Le().left:0,settings:se()?se().right-se().left:0,context:N()?N().right-N().left:0,fullscreen:Be()?Be().right-Be().left:0,chromecast:ue()?ue().right-ue().left:0,additionalButtons:ge().length?ge().reduce($t=>[...$t,40],[]):[]})),Mn=Y(0);Ge(()=>{(!r(Mn)||r(Mn)<r(po).time)&&Ct(()=>O(Mn,r(po).time,!0))});let vr=Y(!1);Ge(()=>{let $t=0;r(Pn)&&(to(u(),"xl")?$t=r(po).time:$t=60);let yt=r(po).prevButton+r(po).playButton+r(po).nextButton+r(po).seekToInteractiveButton+r(po).interactiveGraphButton+r(po).liveButton+r(Mn)+$t;O(vr,r(cn)&&r(Jo)>=yt,!0)});let ut=g(()=>r(vr)&&to(u(),"m")),Rt=(0,Om.debounceFn)(kl,260),Si=(0,Om.debounceFn)(zu,260);Ge(()=>{T(),ee(),Rt(wt(),Kt,oi,e.showControls),Si(wt(),ci,Bo,e.showControls)}),Ge(()=>{Bo.bottom=Mt()});let fo=re();Ge(()=>{ve(),De()&&Ct(()=>xl(De(),ve(),Ro))});let _o;Ge(()=>{me(),Ct(()=>Fu(Bt,me(),_o))});function bo(){Hs({isAudioDisabled:ot,isAudioAvailable:at(),isAds:Qe(),audioIsNotExistHintCallback:Ve,audioDisabledHintCallback:Ke})&&_e()}let $o=Qi?Bi:de,To=g(()=>Z()!==null),pn=g(()=>r(To)?Z():r(ar)),Ln=g(()=>r(pn)?xt("tooltip_pause"):xt("tooltip_play")),Do=xt("tooltip_episodes"),Hi=g(()=>{var $t,yt,mo,hn;return r(cr)?{id:"prevButton",type:"desktop-control-panel-left",weight:xs.prevButton,buttonComponent:Ma,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:Yo.bind(null,!0)},tooltipEnabled:!((yt=($t=le.callbacks)==null?void 0:$t.uiInfo)!=null&&yt.onPrevButtonMouseEnter)&&!((hn=(mo=le.callbacks)==null?void 0:mo.uiInfo)!=null&&hn.onPrevButtonMouseLeave),mouseEnter:()=>{var hi,ui,Li;(Li=(ui=(hi=le.callbacks)==null?void 0:hi.uiInfo)==null?void 0:ui.onPrevButtonMouseEnter)==null||Li.call(ui,Hn(wt(),oi,"prevButton",e.showControls))},mouseLeave:()=>{var hi,ui,Li;(Li=(ui=(hi=le.callbacks)==null?void 0:hi.uiInfo)==null?void 0:ui.onPrevButtonMouseLeave)==null||Li.call(ui,Hn(wt(),oi,"prevButton",e.showControls))},tooltipText:xt("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),Zn=g(()=>r(lr)?{id:"replayButton",type:"desktop-control-panel-left",weight:xs.replayButton,buttonComponent:Pl,buttonComponentProps:{disabled:r(Tr),click:$o},tooltipText:xt("tooltip_restart"),disabled:r(Tr)}:void 0),Vn=g(()=>r(En)?{id:"playButton",type:"desktop-control-panel-left",weight:xs.playButton,buttonComponent:Al,buttonComponentProps:{disabled:r(Cr),isPlaying:r(ar),click:de},tooltipText:r(Ln),disabled:r(Cr)}:void 0),gr=g(()=>{var $t,yt,mo,hn;return r(dr)?{id:"nextButton",type:"desktop-control-panel-left",weight:xs.nextButton,buttonComponent:Ma,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:Cn.bind(null,!0)},tooltipEnabled:!((yt=($t=le.callbacks)==null?void 0:$t.uiInfo)!=null&&yt.onNextButtonMouseEnter)&&!((hn=(mo=le.callbacks)==null?void 0:mo.uiInfo)!=null&&hn.onNextButtonMouseLeave),mouseEnter:()=>{var hi,ui,Li;(Li=(ui=(hi=le.callbacks)==null?void 0:hi.uiInfo)==null?void 0:ui.onNextButtonMouseEnter)==null||Li.call(ui,Hn(wt(),oi,"nextButton",e.showControls))},mouseLeave:()=>{var hi,ui,Li;(Li=(ui=(hi=le.callbacks)==null?void 0:hi.uiInfo)==null?void 0:ui.onNextButtonMouseLeave)==null||Li.call(ui,Hn(wt(),oi,"nextButton",e.showControls))},tooltipText:xt("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),Io=g(()=>Qi&&r(ao)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:xs.playPrevChapterButton,buttonComponent:Zd,buttonComponentProps:{disabled:r(Kn),click:e.playPrevChapter},tooltipText:xt("tooltip_interactive_go_back"),disabledTooltipContent:xt(In),disabled:r(Kn)}:void 0),us=g(()=>Qi&&r(Di)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:xs.seekToInteractiveButton,buttonComponent:Jd,buttonComponentProps:{disabled:r(Wn),click:e.seekToInteractive},tooltipText:xt("tooltip_interactive_seek"),disabled:r(Wn),disabledTooltipContent:xt(Me())}:void 0),Ar=g(()=>Qi&&r(Ii)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:xs.interactiveGraphButton,buttonComponent:ec,buttonComponentProps:{disabled:r(zn),click:wo.toggle,graphIsOpened:k()},tooltipText:r(Gn)}:void 0),Zr=g(()=>r(Er)?{id:"liveButton",type:"desktop-control-panel-left",weight:xs.liveButton,buttonComponent:tc,buttonComponentProps:{isLiveActive:r(Oo),ariaLabel:r(kr)},tooltipText:r(kr),disabled:r(Oo)&&l()===Va.PlaybackState.PLAYING}:void 0),Xi=g(()=>[r(Hi),r(Zn),r(Vn),r(gr),r(Io),r(us),r(Ar),r(Zr)].filter($t=>!!$t).sort(wa)),Mr=g(()=>r(si)?{id:"vkLogo",type:"desktop-control-panel-right",weight:Ss.vkLogo,buttonComponent:zd,buttonComponentProps:{targetUrl:Gt(),logoClickable:e.logoClickable,click:Ne},tooltipText:r(qr),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),Ze=g(()=>r(kn)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:Ss.autoplayNext,buttonComponent:Xd,tooltipText:r(So)}:void 0),ti=g(()=>({id:"volume",type:"desktop-control-panel-right",weight:Ss.volume,buttonComponent:cm,buttonComponentProps:{click:bo,isAds:Qe()}})),gi=g(()=>r(ur)?{id:"subtitles",type:"desktop-control-panel-right",weight:Ss.subtitles,buttonComponent:sm,buttonComponentProps:{isSubtitlesEnabled:r(so),click:Fe},tooltipText:r(An)}:void 0),fn=g(()=>r(st)?{id:"settings",type:"desktop-control-panel-right",weight:Ss.settings,buttonComponent:Il,buttonComponentProps:{ref$:fo},tooltipText:ve()?void 0:xt("tooltip_settings_off")}:void 0),Ho=g(()=>we.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:Ss.context,buttonComponent:Em,buttonComponentProps:{ariaLabel:xt("aria_label_context_menu")},className:r(Kr)?"":"out-of-view",tooltipText:r(fr)}:void 0),Se=g(()=>r(pr)?{id:"fullscreen",type:"desktop-control-panel-right",weight:Ss.fullscreen,buttonComponent:Ud,buttonComponentProps:{isFullscreen:R(),click:e.toggleFullscreen},tooltipText:r(Gr)}:void 0),_t=g(()=>r(qn)?{id:"chromecast",type:"desktop-control-panel-right",weight:Ss.chromecast,buttonComponent:Wd,buttonComponentProps:{state:v(),click:dn},tooltipText:r(mr)}:void 0),ai=g(()=>[r(Mr),r(Ze),r(ti),r(gi),r(fn),r(Ho),r(Se),r(_t),...ge()].filter($t=>!!$t).sort(wa));var Ci=Jy(),yo=he(Ci);let it;var Et=_(yo);let Ji=g(()=>!e.showControls),mn=g(()=>!r(Xo));Pa(Et,{get isHidden(){return r(Ji)},get timelineNotAvailable(){return r(mn)},get isAds(){return Qe()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return I()},get ref(){return oi.timeline},set ref($t){oi.timeline=$t}});var Eo=P(Et,2),vn=_(Eo),hr=_(vn);Ei(hr,17,()=>r(Xi),$t=>$t.id,($t,yt)=>{Uu($t,{get buttonComponent(){return r(yt).buttonComponent},get buttonComponentProps(){return r(yt).buttonComponentProps},get tooltipText(){return r(yt).tooltipText},get disabledTooltipContent(){return r(yt).disabledTooltipContent},get disabled(){return r(yt).disabled},get className(){return r(yt).className},get tooltipEnabled(){return r(yt).tooltipEnabled},get mouseEnter(){return r(yt).mouseEnter},get mouseLeave(){return r(yt).mouseLeave},get ref(){return oi[r(yt).id]},set ref(mo){oi[r(yt).id]=mo}})});var Lr=P(hr,2);{var bi=$t=>{let yt=g(()=>!e.showControls),mo=g(()=>Qe()?Ee():We()),hn=g(()=>Qe()?tt():bt());Dd($t,{get isHidden(){return r(yt)},isMobile:!1,get showDuration(){return r(ut)},get position(){return r(mo)},get duration(){return r(hn)},get ref(){return oi.time},set ref(hi){oi.time=hi}})};V(Lr,$t=>{r(cn)&&$t(bi)})}var Fi=P(Lr,2);let gn=g(()=>!r(Pn));Lo(Fi,{className:"w-max",get disabled(){return r(gn)},get tooltipContent(){return Do},get ref(){return oi.episodes},set ref($t){oi.episodes=$t},children:($t,yt)=>{var mo=qe(),hn=he(mo);{var hi=ui=>{qd(ui,{get position(){return We()},get duration(){return bt()},get timeCodes(){return di}})};V(hn,ui=>{r(Pn)&&ui(hi)})}b($t,mo)},$$slots:{default:!0}}),h(vn);var ko=P(vn,2);Ei(ko,21,()=>r(ai),$t=>$t.id,($t,yt)=>{var mo=qe(),hn=he(mo);{var hi=Li=>{Uu(Li,{get buttonComponent(){return r(yt).buttonComponent},get buttonComponentProps(){return r(yt).buttonComponentProps},get tooltipText(){return r(yt).tooltipText},get disabledTooltipContent(){return r(yt).disabledTooltipContent},get disabled(){return r(yt).disabled},get className(){return r(yt).className},get ref(){return oi[r(yt).id]},set ref(js){oi[r(yt).id]=js}})},ui=Li=>{let js=g(()=>!!r(yt).disabled);Nm(Li,{get id(){return r(yt).id},get testId(){return r(yt).testId},get icon(){return r(yt).icon},get ariaLabel(){return r(yt).ariaLabel},get tooltipText(){return r(yt).tooltipText},get disabledTooltipContent(){return r(yt).disabledTooltipContent},get disabled(){return r(js)},get onClick(){return r(yt).onClick},get disableMouseupTooltipShow(){return r(yt).disableMouseupTooltipShow},get ref(){return oi[r(yt).id]},set ref(qa){oi[r(yt).id]=qa}})};V(hn,Li=>{c_(r(yt))?Li(hi):Li(ui,!1)})}b($t,mo)}),h(ko),h(Eo),nt(Eo,$t=>mt($t),()=>mt()),h(yo),nt(yo,$t=>Mt($t),()=>Mt());var _r=P(yo,2);{var Fo=$t=>{jd($t,{get ref(){return oi.interactiveTimeIndicator},set ref(yt){oi.interactiveTimeIndicator=yt}})};V(_r,$t=>{Mi&&$t(Fo)})}B($t=>it=te(yo,1,"wrapper-bottom svelte-f6e8ix",null,it,$t),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),sr(vn,"clientWidth",$t=>O(Jo,$t)),b(t,Ci),z(),o()}var Ml=require("@vkontakte/videoplayer-core/es2015");var Dm=require("@vkontakte/videoplayer-shared/es2015");var t4=A('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),i4=A('<img class="icon svelte-167ouw6" aria-hidden="true"/>'),o4={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 Hm(t,e){G(t,o4);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,Dm.noop),n=g(()=>o()===Dm.noop),s=g(()=>r(n)||i()),l=Y(!1),d=()=>{O(l,!0)},a=g(()=>r(n)?"btn-full-opacity":"");Ft(t,{get className(){return r(a)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return r(s)},get testId(){return e.testId},children:(u,f)=>{var v=qe(),p=he(v);{var y=$=>{var C=t4();b($,C)},w=$=>{var C=i4();B(()=>ze(C,"src",e.iconUrl)),It("error",C,d),da(C),b($,C)};V(p,$=>{r(l)?$(y):$(w,!1)})}b(u,v)},$$slots:{default:!0}})}var n4=Te('<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 Fm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=n4();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Ce(),h(o),b(t,o)}var u_=require("@vkontakte/videoplayer-shared/es2015");var r4=A('<div class="container svelte-yslgu" aria-hidden="true"><!></div>'),s4={hash:"svelte-yslgu",code:".container.svelte-yslgu {display:flex;align-items:center;}"};function Wu(t,e){U(e,!0),G(t,s4);let i=m(e,"muted",3,!1),o=m(e,"click",3,u_.noop),n=m(e,"ref",15,void 0),l=Ie().ui.t,d=g(()=>i()?l("tooltip_volume"):l("tooltip_volume_muted")),a=g(()=>i()?Fm:Us),u=g(()=>i()?"btn-mobile-muted":"btn-mobile-unmuted");Ft(t,{get testId(){return r(u)},get click(){return o()},get ariaLabel(){return r(d)},role:"button",get ref(){return n()},set ref(f){n(f)},children:(f,v)=>{var p=r4();let y=g(()=>r(a));var w=_(p);ki(w,()=>r(y),($,C)=>{C($,{})}),h(p),b(f,p)},$$slots:{default:!0}}),z()}var a4=Te('<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 Um(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=a4();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Ce(3),h(o),b(t,o)}var l4={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
251
+ svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function zm(t,e){G(t,l4);let i=m(e,"isActive",3,!1),o=g(()=>i()?"color: #2688EB;":"color: #fff;"),n=g(()=>i()?"pip-icon--active":"pip-icon");Um(t,{get style(){return r(o)},get"data-testid"(){return r(n)}})}var p_=require("@vkontakte/videoplayer-shared/es2015");function Wm(t,e){U(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isPictureInPictureActive",3,!1),n=m(e,"click",3,p_.noop),s=q("menu_pip");Ft(t,{testId:"btn-pip",get ariaLabel(){return s},get click(){return n()},get ref(){return i()},set ref(l){i(l)},children:(l,d)=>{zm(l,{get isActive(){return o()}})},$$slots:{default:!0}}),z()}var Km=require("@vkontakte/videoplayer-shared/es2015");var d4=(t,e,i,o)=>{r(e)&&i.onDisabledPlayPrevChapterClick(r(o))},c4=(t,e,i,o)=>{r(e)&&i.onDisabledSeekToInteractiveClick(r(o))},u4=A("<div><!></div>"),p4=A("<div><!></div>"),f4=A("<div><!></div>"),m4=A("<!> <!> <!>",1),v4=A("<div></div> <div></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),g4=A('<div class="wrapper-middle svelte-68kopu"><!></div>'),h4=A("<div><!></div> <!> <div><!></div>",1),_4=A('<div aria-hidden="true">\xB7</div> <!>',1),b4=A('<!> <!> <div><div><div><div class="controls-group contain svelte-68kopu"><!> <!> <!> <!></div> <div class="controls-group svelte-68kopu"><!> <!> <!></div></div> <!></div></div> <!>',1),$4={hash:"svelte-68kopu",code:`.wrapper-bottom.svelte-68kopu {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);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-68kopu > :where(.svelte-68kopu) {pointer-events:auto;}.wrapper-bottom.ads-timeline-mobile.svelte-68kopu {height:9px;padding:0 4px 4px;}.wrapper-middle.svelte-68kopu {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-68kopu {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-68kopu {position:absolute;top:4px;left:8px;z-index:var(--controls-container-z-index);}.wrapper-middle-left.svelte-68kopu,
252
+ .wrapper-middle-left-second.svelte-68kopu,
253
+ .wrapper-middle-right.svelte-68kopu {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-68kopu {left:12px;}.wrapper-middle-left-second.svelte-68kopu {left:64px;}.wrapper-middle-right.svelte-68kopu {right:12px;}.controls.svelte-68kopu {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-68kopu {display:flex;}.controls-group.contain.svelte-68kopu {min-width:0;}.controls-group.svelte-68kopu > *:not(:first-child) {margin-left:8px;}.hidden.svelte-68kopu {visibility:hidden;opacity:0;}.controls-hidden.svelte-68kopu {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-68kopu {transition:none;}.overlay-mobile.svelte-68kopu {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);}
256
254
 
257
- @media screen and (orientation: portrait) {.wrapper-top-right.fullscreen.svelte-9xcbwc {top:16px;}.wrapper-top-left.fullscreen.svelte-9xcbwc {top:16px;}.controls-wrapper.fullscreen.svelte-9xcbwc {position:absolute;bottom:30px;width:calc(100% - 8px);}
255
+ @media screen and (orientation: portrait) {.wrapper-top-right.fullscreen.svelte-68kopu {top:16px;}.wrapper-top-left.fullscreen.svelte-68kopu {top:16px;}.controls-wrapper.fullscreen.svelte-68kopu {position:absolute;bottom:30px;width:calc(100% - 8px);}
258
256
  }
259
257
 
260
- @media screen and (orientation: landscape) {.wrapper-top-left.fullscreen.svelte-9xcbwc {top:12px;left:44px;}.wrapper-top-right.fullscreen.svelte-9xcbwc {top:12px;right:44px;}.wrapper-middle-left.fullscreen.svelte-9xcbwc {left:44px;}.wrapper-middle-left-second.fullscreen.svelte-9xcbwc {left:96px;}.wrapper-middle-right.fullscreen.svelte-9xcbwc {right:44px;}.controls-wrapper.fullscreen.svelte-9xcbwc {position:absolute;left:36px;right:36px;bottom:32px;width:calc(100% - 72px);}
261
- }`};function Km(t,e){var gn,Pr;F(e,!0),q(t,_4);let[i,o]=He(),n=()=>C(Xo,"$seekToInteractiveDisabledTooltip$",i),s=()=>C(Hi,"$disabledControls$",i),l=()=>C(qt,"$playbackState$",i),d=()=>C(li,"$adPlaybackState",i),a=()=>C(le,"$isEnded$",i),u=()=>C(Re,"$playerSize",i),f=()=>C(tt,"$scrubbingInProgress",i),v=()=>C(Ft,"$chromecastState$",i),p=()=>C(Qt,"$isPictureInPictureActive",i),y=()=>C(it,"$pictureInPictureType$",i),w=()=>C(Vt,"$mobileNotReportControlHidden$",i),$=()=>C(co,"$chromecastHidden",i),S=()=>C(Yt,"$playerPhase",i),T=()=>C(Lo,"$pipHidden",i),E=()=>C(G,"$currentGridType$",i),V=()=>C(Zt,"$vkLogoHidden",i),k=()=>C(ni,"$volumeHidden",i),I=()=>C(Ne,"$isLive$",i),R=()=>C(yi,"$settingsMenuVisible",i),Z=()=>C(Be,"$isRewindableLive$",i),D=()=>C(Xe,"$isActiveLive$",i),H=()=>C($e,"$isAudioAvailable$",i),W=()=>C(Ve,"$muted$",i),X=()=>C(Ke,"$volume$",i),j=()=>C(Zo,"$isInteractiveTime$",i),ce=()=>C(xo,"$settingButtonRef$",i),re=()=>C(Vo,"$startedByKeyboard$",i),pe=()=>C(di,"$isFullscreen",i),xe=()=>C(vt,"$additionalButtons$",i),fe=()=>C(vi,"$autoplayNextToggleHidden",i),ie=()=>C(yt,"$crashed$",i),Pe=()=>C(lo,"$settingsHidden",i),ee=()=>C(Tn,"$graphIsOpened$",i),N=()=>C(gi,"$adPosition",i),Ue=()=>C(dt,"$adDuration",i),_e=()=>C(oe,"$position$",i),he=()=>C(jt,"$duration$",i),ue=m(e,"playerControlsWrapperRef",15,void 0),me=m(e,"playerControlsRef",15,void 0),ve=m(e,"isAds",3,!1),se=m(e,"logoTargetUrl",3,""),Ge=m(e,"isOneVideoPlaylist",3,!1),et=m(e,"customFullscreenSupported",3,!0),J=ke(),Le=yo(),Ie=At(),Ze=J.actions.internal.toggleMuted,at=J.actions.internal.togglePlay,bt=J.actions.internal.pause,gt=J.actions.internal.prevVideoClick,Tt=J.actions.internal.nextVideoClick,Qe=J.actions.internal.checkFullscreenSupport,Kt=(gn=J.callbacks)==null?void 0:gn.onAudioDoesNotExistHint,ti=(Pr=J.callbacks)==null?void 0:Pr.onAudioDisabledHint,Yt=J.playerPhase,jt=J.state.duration$,oe=J.state.positionWithScrubbing$,qt=J.state.playbackState$,$e=J.state.isAudioAvailable$,Ce=J.state.isAudioDisabled,le=J.state.isEnded$,Ne=J.state.isLive$,Ke=J.state.volume$,Ve=J.state.muted$,Xe=J.state.isActiveLive$,Be=J.state.isRewindableLive$,tt=J.ui.scrubbingInProgress,Vt=J.ui.mobileNotReportControlHidden$,{isActive$:Qt,type$:it}=Le.pictureInPicture$,yi=J.ui.settingsMenu.visible$,mi=J.ui.settingsMenu.openedByBtnKeyboard$,nt=J.ui.controls,{volume:ni,vkLogo:Zt,autoplayNextToggle:vi,pip:Lo,settings:lo,chromecast:co}=J.ui.hiddenControls,Ht=J.actions.internal.getVideoEpisodes(),ui=J.webApi.pictureInPictureApi,Ft=J.state.chromecastState$,yt=J.state.crashed$,Hi=nt.disabledControls$,Vo=J.ui.startedByKeyboard$,G=J.ui.currentGridType$,dt=J.ads.duration,gi=J.ads.position,li=J.ads.playbackState,di=J.ui.isFullscreen,Re=J.ui.playerSize,vt=J.ui.additionalButtonsDeprecated$,xi=J.actions.internal.getVideoElement,Wt=J.actions.internal.replayInteractive,eo=J.state.isInteractive,Zo=J.state.isInteractiveTime$,pn=J.state.showInteractiveGraph,Mi=J.state.showSeekToInteractive,Pt=J.state.showPlayPrevChapter,hi=J.state.showInteractiveTimeIndicator,Xo=Le.seekToInteractiveDisabledTooltip$,Tn=Le.graphIsOpened$,En=J.ui.controlBlocks,pi=g(()=>K(J.state.playPrevChapterDisabledTooltip)),Ro=g(()=>K(n())),Hn=g(()=>s().has("EPISODE_BUTTON")),Fn=g(()=>s().has("GRAPH_BUTTON")),Li=g(()=>s().has("SEEK_TO_INTERACTIVE_BUTTON")),to=g(()=>s().has("PLAY_BUTTON")),No=g(()=>s().has("REPLAY_BUTTON")),Jo=g(()=>s().has("PLAY_PREV_CHAPTER_BUTTON")),nr=g(()=>l()===Ll.PlaybackState.PLAYING),uo=g(()=>d()==="paused"),zr=g(()=>a()&&!ve()&&!eo),rr=g(()=>!a()||ve()),wr=g(()=>e.showNextPrevButtons&&!ve()&&e.prevButtonActive),sr=g(()=>e.showNextPrevButtons&&!ve()&&e.nextButtonActive),Wr=g(()=>u().width>300),ar=g(()=>u().width>400),en=g(f),Sr=g(()=>v()!==Ll.ChromecastState.NOT_AVAILABLE&&!(p()&&y()===1)&&!w()&&!eo&&!$()),Vi=g(()=>S()==="LiveWaitingStart"),Un=g(()=>!!ui&&v()!==Ll.ChromecastState.CONNECTED&&!w()&&(y()===1&&r(Vi)||!r(Vi))&&!r(en)&&!eo&&!T()),zn=g(()=>!r(en)&&Yi(E(),"s")),lr=g(()=>!e.logoHidden&&u().width>350&&!V()),Wn=g(()=>Ie.features.fullscreen&&Qe()&&!(p()&&y()===1)&&(eo?et():!0)&&!r(en)),dr=g(()=>!k()&&!r(en)),Kn=g(()=>(!I()||ve())&&u().width>260&&!r(en)&&!(Ie.features.interactiveHideTime&&eo)),In=g(()=>R()||e.showControls),qn=g(()=>!ve()&&!I()&&!!(Ht!=null&&Ht.length)&&r(Wr)&&!r(Hn)&&!r(en)),Kr=g(()=>!Z()||!!D()),cr=g(()=>pn&&Yi(E(),"m")),Oo=g(()=>!H()||W()||X()===0),mt=ri({}),Jt=ri({}),ur=(0,Wm.debounceFn)(Pl,260),wi=(0,Wm.debounceFn)(Fu,260);We(()=>{u(),j(),ur(xi(),nt,mt,e.showControls),wi(xi(),En,Jt,e.showControls)});let Fi=()=>J.actions.internal.toggleChromecast();function kn(){return xt(this,null,function*(){ui!=null&&ui.isActive()?yield ui==null?void 0:ui.exit():yield ui==null?void 0:ui.request()})}function Bo(){Us({isAudioDisabled:Ce,audioDisabledHintCallback:ti,isAudioAvailable:H(),audioIsNotExistHintCallback:Kt,isAds:ve()})&&Ze()}let fn=Y(""),mn=(lt,Mt)=>{if(!lt){O(fn,K("tooltip_live"),!0);return}Mt&&Mt===Ll.PlaybackState.PAUSED&&O(fn,K("tooltip_play"),!0)};We(()=>{mn(r(Kr),l())});let xo=ae();We(()=>{ce()&&wl(ce(),R(),mi)}),We(()=>{Du(Vo,re(),mt.playButton)});var vn=h4(),Cr=ge(vn);{var us=lt=>{var Mt=f4(),_i=ge(Mt);let vo;var io=P(_i,2);let go;rt(io,ot=>Jt.topLeft=ot,()=>Jt==null?void 0:Jt.topLeft);var ho=P(io,2);let nn;var rn=_(ho);ki(rn,1,xe,({iconUrl:ot,ariaLabel:Et,testId:Ni,onClick:sn,tooltip:Uo})=>ot,(ot,Et)=>{let Ni=()=>r(Et).iconUrl,sn=()=>r(Et).ariaLabel,Uo=()=>r(Et).testId,$o=()=>r(Et).onClick,Ar=()=>r(Et).tooltip,Xr=g(()=>{var bi;return(bi=sn())!=null?bi:Ar()});Dm(ot,{get iconUrl(){return Ni()},get ariaLabel(){return r(Xr)},get testId(){return Uo()},get onClick(){return $o()}})});var Mn=P(rn,2);{var _o=ot=>{ic(ot,{get ref(){return mt.autoplayNextToggle},set ref(Et){mt.autoplayNextToggle=Et}})};L(Mn,ot=>{e.showAutoplayNext&&!Ge()&&!fe()&&ot(_o)})}var oo=P(Mn,2);{var To=ot=>{Qd(ot,{isMobile:!0,click:Fi,get state(){return v()},get ref(){return mt.chromecast},set ref(Et){mt.chromecast=Et}})};L(oo,ot=>{r(Sr)&&ot(To)})}var fr=P(oo,2);{var Qn=ot=>{zm(ot,{click:kn,get isPictureInPictureActive(){return p()},get ref(){return mt.pip},set ref(Et){mt.pip=Et}})};L(fr,ot=>{r(Un)&&ot(Qn)})}var mr=P(fr,2);{var Yr=ot=>{Il(ot,{get ref$(){return xo}})};L(mr,ot=>{ie()&&!Pe()&&ot(Yr)})}var fs=P(mr,2);{var Zr=ot=>{Gd(ot,{get click(){return bt},get targetUrl(){return se()},get logoClickable(){return e.logoClickable},get ref(){return mt.vkLogo},set ref(Et){mt.vkLogo=Et}})};L(fs,ot=>{r(lr)&&ot(Zr)})}h(ho),rt(ho,ot=>Jt.topRight=ot,()=>Jt==null?void 0:Jt.topRight);var Ri=P(ho,2);let qe;var ei=_(Ri);{var Ei=ot=>{let Et=g(()=>gt.bind(null,!0));La(ot,{get click(){return r(Et)},type:"prev",isMobile:!0,get ref(){return mt.prevButton},set ref(Ni){mt.prevButton=Ni}})};L(ei,ot=>{r(wr)&&ot(Ei)})}var Eo=P(ei,2);{var Fo=ot=>{Ml(ot,{get disabled(){return r(to)},get click(){return at},isMobile:!0,get isPlaying(){return r(nr)},get ref(){return mt.playButton},set ref(Et){mt.playButton=Et}})};L(Eo,ot=>{r(rr)&&ot(Fo)})}var vr=P(Eo,2);{var be=ot=>{Al(ot,{get disabled(){return r(No)},get click(){return at},isMobile:!0,get ref(){return mt.replayButton},set ref(Et){mt.replayButton=Et}})};L(vr,ot=>{r(zr)&&ot(be)})}var It=P(vr,2);{var Si=ot=>{let Et=g(()=>Tt.bind(null,!0));La(ot,{get click(){return r(Et)},type:"next",isMobile:!0,get ref(){return mt.nextButton},set ref(Ni){mt.nextButton=Ni}})};L(It,ot=>{r(sr)&&ot(Si)})}h(Ri),rt(Ri,ot=>Jt.middle=ot,()=>Jt==null?void 0:Jt.middle);var Ii=P(Ri,2);{var bo=ot=>{var Et=p4(),Ni=ge(Et);{var sn=bi=>{var Ui=d4();let hn;Ui.__click=[a4,Jo,e,pi];var gr=_(Ui);let hr=g(()=>!e.showControls);tc(gr,{get hidden(){return r(hr)},get disabled(){return r(Jo)},get click(){return e.playPrevChapter},get ref(){return mt.playPrevChapterButton},set ref(zo){mt.playPrevChapterButton=zo}}),h(Ui),B(zo=>hn=te(Ui,1,"wrapper-middle-left svelte-9xcbwc",null,hn,zo),[()=>({fullscreen:pe(),hidden:!e.showControls})]),b(bi,Ui)};L(Ni,bi=>{Pt&&bi(sn)})}var Uo=P(Ni,2);{var $o=bi=>{var Ui=c4();let hn;var gr=_(Ui);let hr=g(()=>!e.showControls&&!ee());nc(gr,{get hidden(){return r(hr)},get disabled(){return r(Fn)},get click(){return Tn.toggle},get graphIsOpened(){return ee()},get ref(){return mt.interactiveGraphButton},set ref(zo){mt.interactiveGraphButton=zo}}),h(Ui),B(zo=>hn=te(Ui,1,hd(Pt?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-9xcbwc",hn,zo),[()=>({fullscreen:pe(),hidden:!e.showControls&&!ee()})]),b(bi,Ui)};L(Uo,bi=>{r(cr)&&bi($o)})}var Ar=P(Uo,2);{var Xr=bi=>{var Ui=u4();let hn;Ui.__click=[l4,Li,e,Ro];var gr=_(Ui);let hr=g(()=>!e.showControls);oc(gr,{get hidden(){return r(hr)},get disabled(){return r(Li)},get click(){return e.seekToInteractive},get ref(){return mt.seekToInteractiveButton},set ref(zo){mt.seekToInteractiveButton=zo}}),h(Ui),B(zo=>hn=te(Ui,1,"wrapper-middle-right svelte-9xcbwc",null,hn,zo),[()=>({fullscreen:pe(),hidden:!e.showControls})]),b(bi,Ui)};L(Ar,bi=>{Mi&&bi(Xr)})}b(ot,Et)};L(Ii,ot=>{eo&&!f()&&ot(bo)})}B((ot,Et,Ni,sn)=>{vo=te(_i,1,"overlay-mobile svelte-9xcbwc",null,vo,ot),go=te(io,1,"wrapper-top-left svelte-9xcbwc",null,go,Et),nn=te(ho,1,"wrapper-top-right svelte-9xcbwc",null,nn,Ni),qe=te(Ri,1,"wrapper-middle svelte-9xcbwc",null,qe,sn)},[()=>({hidden:!r(In)}),()=>({hidden:!e.showControls,fullscreen:pe()}),()=>({hidden:!e.showControls&&!w(),fullscreen:pe()}),()=>({hidden:!e.showControls||f()||e.endScreenShown&&e.showNextPrevButtons})]),b(lt,Mt)};L(Cr,lt=>{ve()||lt(us)})}var Tr=P(Cr,2);{var qr=lt=>{var Mt=v4(),_i=ge(Mt);let vo;var io=_(_i);Uu(io,{get muted(){return W()},click:Bo,get ref(){return mt.volume},set ref(_o){mt.volume=_o}}),h(_i);var go=P(_i,2);{var ho=_o=>{var oo=m4(),To=_(oo);let fr=g(()=>!r(uo));Ml(To,{get disabled(){return r(to)},get click(){return at},isMobile:!0,get isPlaying(){return r(fr)},get ref(){return mt.playButton},set ref(Qn){mt.playButton=Qn}}),h(oo),b(_o,oo)};L(go,_o=>{r(uo)&&_o(ho)})}var nn=P(go,2);let rn;var Mn=_(nn);jd(Mn,{get position(){return N()},get duration(){return Ue()}}),h(nn),B((_o,oo)=>{vo=te(_i,1,"wrapper-top-right svelte-9xcbwc",null,vo,_o),rn=te(nn,1,"wrapper-bottom ads-timeline-mobile svelte-9xcbwc",null,rn,oo)},[()=>({fullscreen:pe()}),()=>({fullscreen:pe()})]),b(lt,Mt)};L(Tr,lt=>{ve()&&d()!=="inactive"&&lt(qr)})}var Pn=P(Tr,2);let Er;var wo=_(Pn);let pr;var tn=_(wo);te(tn,1,"controls svelte-9xcbwc",null,{},{mobile:!0});var ii=_(tn),on=_(ii);{var Gr=lt=>{Ao(lt,{get disabled(){return r(No)},get ref(){return mt.replayButton},set ref(Mt){mt.replayButton=Mt},children:(Mt,_i)=>{Al(Mt,{get disabled(){return r(No)},get click(){return Wt}})},$$slots:{default:!0}})};L(on,lt=>{eo&&lt(Gr)})}var Ir=P(on,2);{var St=lt=>{Ao(lt,{get ref(){return mt.liveButton},set ref(Mt){mt.liveButton=Mt},children:(Mt,_i)=>{rc(Mt,{get isLiveActive(){return r(Kr)},isMobile:!0,get ariaLabel(){return r(fn)}})},$$slots:{default:!0}})};L(Ir,lt=>{!ve()&&I()&&lt(St)})}var Rt=P(Ir,2);{var So=lt=>{let Mt=g(()=>ve()?N():_e()),_i=g(()=>ve()?Ue():he()),vo=g(()=>!e.showControls);zd(lt,{get showDuration(){return r(ar)},get position(){return r(Mt)},get duration(){return r(_i)},isMobile:!0,get isHidden(){return r(vo)},get ref(){return mt.time},set ref(io){mt.time=io}})};L(Rt,lt=>{r(Kn)&&lt(So)})}var Do=P(Rt,2);let po=g(()=>!r(qn));Ao(Do,{className:"w-max",get disabled(){return r(po)},get ref(){return mt.episodes},set ref(lt){mt.episodes=lt},children:(lt,Mt)=>{var _i=ze(),vo=ge(_i);{var io=go=>{var ho=g4(),nn=P(ge(ho),2);Yd(nn,{get position(){return _e()},get duration(){return he()},get timeCodes(){return Ht}}),b(go,ho)};L(vo,go=>{r(qn)&&go(io)})}b(lt,_i)},$$slots:{default:!0}}),h(ii),rt(ii,lt=>Jt.bottomRight=lt,()=>Jt==null?void 0:Jt.bottomRight);var Co=P(ii,2),fo=_(Co);{var Gn=lt=>{Ao(lt,{get ref(){return mt.volume},set ref(Mt){mt.volume=Mt},children:(Mt,_i)=>{Uu(Mt,{get muted(){return r(Oo)},click:Bo})},$$slots:{default:!0}})};L(fo,lt=>{r(dr)&&lt(Gn)})}var Qi=P(fo,2);{var Ho=lt=>{Ao(lt,{get ref(){return mt.settings},set ref(Mt){mt.settings=Mt},children:(Mt,_i)=>{Il(Mt,{get ref$(){return xo}})},$$slots:{default:!0}})};L(Qi,lt=>{r(zn)&&lt(Ho)})}var An=P(Qi,2);{var kr=lt=>{Ao(lt,{get ref(){return mt.fullscreen},set ref(Mt){mt.fullscreen=Mt},children:(Mt,_i)=>{qd(Mt,{get click(){return e.toggleFullscreen},get isFullscreen(){return pe()}})},$$slots:{default:!0}})};L(An,lt=>{r(Wn)&&lt(kr)})}h(Co),rt(Co,lt=>Jt.bottomRight=lt,()=>Jt==null?void 0:Jt.bottomRight),h(tn),rt(tn,lt=>me(lt),()=>me());var Qr=P(tn,2);let ps=g(()=>!e.showControls);Aa(Qr,{get isHidden(){return r(ps)},get isAds(){return ve()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return Z()},get ref(){return mt.timeline},set ref(lt){mt.timeline=lt}}),h(wo),h(Pn),rt(Pn,lt=>ue(lt),()=>ue());var jr=P(Pn,2);{var mo=lt=>{Jd(lt,{get ref(){return mt.interactiveTimeIndicator},set ref(Mt){mt.interactiveTimeIndicator=Mt}})};L(jr,lt=>{hi&&lt(mo)})}B((lt,Mt)=>{Er=te(Pn,1,"wrapper-bottom svelte-9xcbwc",null,Er,lt),pr=te(wo,1,"controls-wrapper svelte-9xcbwc",null,pr,Mt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:pe()})]),b(t,vn),U(),o()}ct(["click"]);function sc(t,e){F(e,!0);let[i,o]=He(),n=()=>C(T,"$isMobile",i),s=m(e,"bottomNoSmooth",3,!1),l=m(e,"playerControlsWrapperRef",15,void 0),d=m(e,"playerControlsRef",15,void 0),a=m(e,"isAds",3,!1),u=m(e,"logoTargetUrl",3,""),f=m(e,"showAutoplayNext",3,!1),v=m(e,"isOneVideoPlaylist",3,!1),p=m(e,"customFullscreenSupported",3,!0),y=m(e,"endScreenShown",3,!1),w=m(e,"onDisabledPlayPrevChapterClick",3,qm.noop),$=m(e,"onDisabledSeekToInteractiveClick",3,qm.noop),T=ke().ui.isMobile,E=Y(!1);Dt(()=>{let R=setTimeout(()=>O(E,!0),0);return()=>clearTimeout(R)});var V=ze(),k=ge(V);{var I=R=>{var Z=ze(),D=ge(Z);{var H=X=>{Km(X,{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 y()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return w()},get onDisabledSeekToInteractiveClick(){return $()},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(j){l(j)},get playerControlsRef(){return d()},set playerControlsRef(j){d(j)}})},W=X=>{Om(X,{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(j){l(j)},get playerControlsRef(){return d()},set playerControlsRef(j){d(j)}})};L(D,X=>{n()?X(H):X(W,!1)})}b(R,Z)};L(k,R=>{r(E)&&R(I)})}b(t,V),U(),o()}var b4=Ee('<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 Gm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=b4();Ae(o,()=>z({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"51",fill:"none","aria-hidden":"true","data-testid":"seek-icon",role:"img"},i));var n=_(o);we(n,()=>{var s;return(s=e.children)!=null?s:de}),Te(2),h(o),b(t,o)}function Qm(t,e){let i=m(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);Gm(t,{get style(){return r(o)}})}var $4=Ee('<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 jm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=$4();Ae(o,()=>z({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 n=_(o);we(n,()=>{var s;return(s=e.children)!=null?s:de}),Te(2),h(o),b(t,o)}var y4=Ee('<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 Ym(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=y4();Ae(o,()=>z({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 n=_(o);we(n,()=>{var s;return(s=e.children)!=null?s:de}),Te(2),h(o),b(t,o)}function zu(t,e){let i=m(e,"isOff",3,!1);var o=ze(),n=ge(o);{var s=d=>{Ym(d,{})},l=d=>{jm(d,{})};L(n,d=>{i()?d(s):d(l,!1)})}b(t,o)}var x4=Ee('<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 Zm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=x4();Ae(o,()=>z({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 n=_(o);we(n,()=>{var s;return(s=e.children)!=null?s:de}),Te(2),h(o),b(t,o)}function Xm(t,e){let i=m(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);Zm(t,{get style(){return r(o)}})}var w4=Ee('<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 Jm(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=w4();Ae(o,()=>z({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 n=_(o);we(n,()=>{var s;return(s=e.children)!=null?s:de}),Te(2),h(o),b(t,o)}function ev(t,e){let i=m(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);Jm(t,{get style(){return r(o)}})}var S4=A('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),C4=A('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),T4=A("<div><!></div>"),E4={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;
258
+ @media screen and (orientation: landscape) {.wrapper-top-left.fullscreen.svelte-68kopu {top:12px;left:44px;}.wrapper-top-right.fullscreen.svelte-68kopu {top:12px;right:44px;}.wrapper-middle-left.fullscreen.svelte-68kopu {left:44px;}.wrapper-middle-left-second.fullscreen.svelte-68kopu {left:96px;}.wrapper-middle-right.fullscreen.svelte-68kopu {right:44px;}.controls-wrapper.fullscreen.svelte-68kopu {position:absolute;left:36px;right:36px;bottom:32px;width:calc(100% - 72px);}
259
+ }`};function qm(t,e){var Mn,vr;U(e,!0),G(t,$4);let[i,o]=Ue(),n=()=>S(Bi,"$seekToInteractiveDisabledTooltip$",i),s=()=>S(Vt,"$disabledControls$",i),l=()=>S(le,"$playbackState$",i),d=()=>S(Bt,"$adPlaybackState",i),a=()=>S(_e,"$isEnded$",i),u=()=>S(xt,"$playerSize",i),f=()=>S(He,"$scrubbingInProgress",i),v=()=>S(no,"$chromecastState$",i),p=()=>S(kt,"$isPictureInPictureActive",i),y=()=>S(Jt,"$pictureInPictureType$",i),w=()=>S(Xe,"$mobileNotReportControlHidden$",i),$=()=>S(Ro,"$chromecastHidden",i),C=()=>S(ii,"$playerPhase",i),T=()=>S(Yt,"$pipHidden",i),I=()=>S(Oi,"$currentGridType$",i),M=()=>S(jt,"$vkLogoHidden",i),k=()=>S(dt,"$volumeHidden",i),E=()=>S(de,"$isLive$",i),R=()=>S(ot,"$settingsMenuVisible",i),X=()=>S(Ke,"$isRewindableLive$",i),D=()=>S(Ve,"$isActiveLive$",i),H=()=>S(Ot,"$isAudioAvailable$",i),K=()=>S(Fe,"$muted$",i),J=()=>S(Ne,"$volume$",i),j=()=>S(ro,"$isInteractiveTime$",i),ce=()=>S(Oo,"$settingButtonRef$",i),oe=()=>S(Tt,"$startedByKeyboard$",i),pe=()=>S(ci,"$isFullscreen",i),be=()=>S(et,"$additionalButtons$",i),fe=()=>S(qi,"$autoplayNextToggleHidden",i),ke=()=>S(jo,"$crashed$",i),ne=()=>S(Ai,"$settingsHidden",i),Le=()=>S(Yo,"$graphIsOpened$",i),se=()=>S(F,"$adPosition",i),N=()=>S(Gi,"$adDuration",i),Be=()=>S(Xt,"$position$",i),ue=()=>S(Qt,"$duration$",i),ge=m(e,"playerControlsWrapperRef",15,void 0),ee=m(e,"playerControlsRef",15,void 0),ve=m(e,"isAds",3,!1),De=m(e,"logoTargetUrl",3,""),me=m(e,"isOneVideoPlaylist",3,!1),at=m(e,"customFullscreenSupported",3,!0),Z=Ie(),Me=xo(),Ee=At(),We=Z.actions.internal.toggleMuted,tt=Z.actions.internal.togglePlay,bt=Z.actions.internal.pause,Mt=Z.actions.internal.prevVideoClick,mt=Z.actions.internal.nextVideoClick,Qe=(Mn=Z.callbacks)==null?void 0:Mn.onAudioDoesNotExistHint,Gt=(vr=Z.callbacks)==null?void 0:vr.onAudioDisabledHint,ii=Z.playerPhase,Qt=Z.state.duration$,Xt=Z.state.positionWithScrubbing$,le=Z.state.playbackState$,Ot=Z.state.isAudioAvailable$,we=Z.state.isAudioDisabled,_e=Z.state.isEnded$,de=Z.state.isLive$,Ne=Z.state.volume$,Fe=Z.state.muted$,Ve=Z.state.isActiveLive$,Ke=Z.state.isRewindableLive$,He=Z.ui.scrubbingInProgress,Xe=Z.ui.mobileNotReportControlHidden$,{isActive$:kt,type$:Jt}=Me.pictureInPicture$,ot=Z.ui.settingsMenu.visible$,fi=Z.ui.settingsMenu.openedByBtnKeyboard$,mi=Z.ui.controls,{volume:dt,vkLogo:jt,autoplayNextToggle:qi,pip:Yt,settings:Ai,chromecast:Ro}=Z.ui.hiddenControls,Kt=Z.actions.internal.getVideoEpisodes(),di=Z.webApi.pictureInPictureApi,no=Z.state.chromecastState$,jo=Z.state.crashed$,Vt=mi.disabledControls$,Tt=Z.ui.startedByKeyboard$,Oi=Z.ui.currentGridType$,Gi=Z.ads.duration,F=Z.ads.position,Bt=Z.ads.playbackState,ci=Z.ui.isFullscreen,xt=Z.ui.playerSize,et=Z.ui.additionalButtonsDeprecated$,ct=Z.actions.internal.getVideoElement,ei=Z.actions.internal.replayInteractive,Dt=Z.state.isInteractive,ro=Z.state.isInteractiveTime$,sn=Z.state.showInteractiveGraph,an=Z.state.showSeekToInteractive,Ti=Z.state.showPlayPrevChapter,wt=Z.state.showInteractiveTimeIndicator,Bi=Me.seekToInteractiveDisabledTooltip$,Yo=Me.graphIsOpened$,Cn=Z.ui.controlBlocks,Qi=g(()=>q(Z.state.playPrevChapterDisabledTooltip)),ji=g(()=>q(n())),No=g(()=>s().has("EPISODE_BUTTON")),Tn=g(()=>s().has("GRAPH_BUTTON")),Un=g(()=>s().has("SEEK_TO_INTERACTIVE_BUTTON")),Mi=g(()=>s().has("PLAY_BUTTON")),In=g(()=>s().has("REPLAY_BUTTON")),Yi=g(()=>s().has("PLAY_PREV_CHAPTER_BUTTON")),wo=g(()=>l()===Ml.PlaybackState.PLAYING),ln=g(()=>d()==="paused"),Sr=g(()=>a()&&!ve()&&!Dt),zn=g(()=>!a()||ve()),Wn=g(()=>e.showNextPrevButtons&&!ve()&&e.prevButtonActive),Cr=g(()=>e.showNextPrevButtons&&!ve()&&e.nextButtonActive),Tr=g(()=>u().width>300),Kn=g(()=>u().width>400),dn=g(f),ar=g(()=>v()!==Ml.ChromecastState.NOT_AVAILABLE&&!(p()&&y()===1)&&!w()&&!Dt&&!$()),so=g(()=>C()==="LiveWaitingStart"),Zo=g(()=>!!di&&v()!==Ml.ChromecastState.CONNECTED&&!w()&&(y()===1&&r(so)||!r(so))&&!r(dn)&&!Dt&&!T()),lr=g(()=>!r(dn)&&to(I(),"s")),En=g(()=>!e.logoHidden&&u().width>350&&!M()),Ir=g(()=>Ee.features.fullscreen&&xu(document)&&!(p()&&y()===1)&&(Dt?at():!0)&&!r(dn)),dr=g(()=>!k()&&!r(dn)),cr=g(()=>(!E()||ve())&&u().width>260&&!r(dn)&&!(Ee.features.interactiveHideTime&&Dt)),Er=g(()=>R()||e.showControls),qn=g(()=>!ve()&&!E()&&!!(Kt!=null&&Kt.length)&&r(Tr)&&!r(No)&&!r(dn)),kn=g(()=>!X()||!!D()),ur=g(()=>sn&&to(I(),"m")),Kr=g(()=>!H()||K()||J()===0),st=ri({}),si=ri({}),pr=(0,Km.debounceFn)(kl,260),cn=(0,Km.debounceFn)(zu,260);Ge(()=>{u(),j(),pr(ct(),mi,st,e.showControls),cn(ct(),Cn,si,e.showControls)});let Xo=()=>Z.actions.internal.toggleChromecast();function Ii(){return St(this,null,function*(){di!=null&&di.isActive()?yield di==null?void 0:di.exit():yield di==null?void 0:di.request()})}function Di(){Hs({isAudioDisabled:we,audioDisabledHintCallback:Gt,isAudioAvailable:H(),audioIsNotExistHintCallback:Qe,isAds:ve()})&&We()}let ao=Y(""),Pn=(ut,Rt)=>{if(!ut){O(ao,q("tooltip_live"),!0);return}Rt&&Rt===Ml.PlaybackState.PAUSED&&O(ao,q("tooltip_play"),!0)};Ge(()=>{Pn(r(kn),l())});let Oo=re();Ge(()=>{ce()&&xl(ce(),R(),fi)}),Ge(()=>{Fu(Tt,oe(),st.playButton)});var Gn=b4(),fr=he(Gn);{var Qn=ut=>{var Rt=v4(),Si=he(Rt);let fo;var _o=P(Si,2);let bo;nt(_o,it=>si.topLeft=it,()=>si==null?void 0:si.topLeft);var $o=P(_o,2);let To;var pn=_($o);Ei(pn,1,be,({iconUrl:it,ariaLabel:Et,testId:Ji,onClick:mn,tooltip:Eo})=>it,(it,Et)=>{let Ji=()=>r(Et).iconUrl,mn=()=>r(Et).ariaLabel,Eo=()=>r(Et).testId,vn=()=>r(Et).onClick,hr=()=>r(Et).tooltip,Lr=g(()=>{var bi;return(bi=mn())!=null?bi:hr()});Hm(it,{get iconUrl(){return Ji()},get ariaLabel(){return r(Lr)},get testId(){return Eo()},get onClick(){return vn()}})});var Ln=P(pn,2);{var Do=it=>{Xd(it,{get ref(){return st.autoplayNextToggle},set ref(Et){st.autoplayNextToggle=Et}})};V(Ln,it=>{e.showAutoplayNext&&!me()&&!fe()&&it(Do)})}var Hi=P(Ln,2);{var Zn=it=>{Wd(it,{isMobile:!0,click:Xo,get state(){return v()},get ref(){return st.chromecast},set ref(Et){st.chromecast=Et}})};V(Hi,it=>{r(ar)&&it(Zn)})}var Vn=P(Hi,2);{var gr=it=>{Wm(it,{click:Ii,get isPictureInPictureActive(){return p()},get ref(){return st.pip},set ref(Et){st.pip=Et}})};V(Vn,it=>{r(Zo)&&it(gr)})}var Io=P(Vn,2);{var us=it=>{Il(it,{get ref$(){return Oo}})};V(Io,it=>{ke()&&!ne()&&it(us)})}var Ar=P(Io,2);{var Zr=it=>{zd(it,{get click(){return bt},get targetUrl(){return De()},get logoClickable(){return e.logoClickable},get ref(){return st.vkLogo},set ref(Et){st.vkLogo=Et}})};V(Ar,it=>{r(En)&&it(Zr)})}h($o),nt($o,it=>si.topRight=it,()=>si==null?void 0:si.topRight);var Xi=P($o,2);let Mr;var Ze=_(Xi);{var ti=it=>{let Et=g(()=>Mt.bind(null,!0));Ma(it,{get click(){return r(Et)},type:"prev",isMobile:!0,get ref(){return st.prevButton},set ref(Ji){st.prevButton=Ji}})};V(Ze,it=>{r(Wn)&&it(ti)})}var gi=P(Ze,2);{var fn=it=>{Al(it,{get disabled(){return r(Mi)},get click(){return tt},isMobile:!0,get isPlaying(){return r(wo)},get ref(){return st.playButton},set ref(Et){st.playButton=Et}})};V(gi,it=>{r(zn)&&it(fn)})}var Ho=P(gi,2);{var Se=it=>{Pl(it,{get disabled(){return r(In)},get click(){return tt},isMobile:!0,get ref(){return st.replayButton},set ref(Et){st.replayButton=Et}})};V(Ho,it=>{r(Sr)&&it(Se)})}var _t=P(Ho,2);{var ai=it=>{let Et=g(()=>mt.bind(null,!0));Ma(it,{get click(){return r(Et)},type:"next",isMobile:!0,get ref(){return st.nextButton},set ref(Ji){st.nextButton=Ji}})};V(_t,it=>{r(Cr)&&it(ai)})}h(Xi),nt(Xi,it=>si.middle=it,()=>si==null?void 0:si.middle);var Ci=P(Xi,2);{var yo=it=>{var Et=m4(),Ji=he(Et);{var mn=bi=>{var Fi=u4();let gn;Fi.__click=[d4,Yi,e,Qi];var ko=_(Fi);let _r=g(()=>!e.showControls);Zd(ko,{get hidden(){return r(_r)},get disabled(){return r(Yi)},get click(){return e.playPrevChapter},get ref(){return st.playPrevChapterButton},set ref(Fo){st.playPrevChapterButton=Fo}}),h(Fi),B(Fo=>gn=te(Fi,1,"wrapper-middle-left svelte-68kopu",null,gn,Fo),[()=>({fullscreen:pe(),hidden:!e.showControls})]),b(bi,Fi)};V(Ji,bi=>{Ti&&bi(mn)})}var Eo=P(Ji,2);{var vn=bi=>{var Fi=p4();let gn;var ko=_(Fi);let _r=g(()=>!e.showControls&&!Le());ec(ko,{get hidden(){return r(_r)},get disabled(){return r(Tn)},get click(){return Yo.toggle},get graphIsOpened(){return Le()},get ref(){return st.interactiveGraphButton},set ref(Fo){st.interactiveGraphButton=Fo}}),h(Fi),B(Fo=>gn=te(Fi,1,fd(Ti?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-68kopu",gn,Fo),[()=>({fullscreen:pe(),hidden:!e.showControls&&!Le()})]),b(bi,Fi)};V(Eo,bi=>{r(ur)&&bi(vn)})}var hr=P(Eo,2);{var Lr=bi=>{var Fi=f4();let gn;Fi.__click=[c4,Un,e,ji];var ko=_(Fi);let _r=g(()=>!e.showControls);Jd(ko,{get hidden(){return r(_r)},get disabled(){return r(Un)},get click(){return e.seekToInteractive},get ref(){return st.seekToInteractiveButton},set ref(Fo){st.seekToInteractiveButton=Fo}}),h(Fi),B(Fo=>gn=te(Fi,1,"wrapper-middle-right svelte-68kopu",null,gn,Fo),[()=>({fullscreen:pe(),hidden:!e.showControls})]),b(bi,Fi)};V(hr,bi=>{an&&bi(Lr)})}b(it,Et)};V(Ci,it=>{Dt&&!f()&&it(yo)})}B((it,Et,Ji,mn)=>{fo=te(Si,1,"overlay-mobile svelte-68kopu",null,fo,it),bo=te(_o,1,"wrapper-top-left svelte-68kopu",null,bo,Et),To=te($o,1,"wrapper-top-right svelte-68kopu",null,To,Ji),Mr=te(Xi,1,"wrapper-middle svelte-68kopu",null,Mr,mn)},[()=>({hidden:!r(Er)}),()=>({hidden:!e.showControls,fullscreen:pe()}),()=>({hidden:!e.showControls&&!w(),fullscreen:pe()}),()=>({hidden:!e.showControls||f()||e.endScreenShown&&e.showNextPrevButtons})]),b(ut,Rt)};V(fr,ut=>{ve()||ut(Qn)})}var kr=P(fr,2);{var qr=ut=>{var Rt=h4(),Si=he(Rt);let fo;var _o=_(Si);Wu(_o,{get muted(){return K()},click:Di,get ref(){return st.volume},set ref(Do){st.volume=Do}}),h(Si);var bo=P(Si,2);{var $o=Do=>{var Hi=g4(),Zn=_(Hi);let Vn=g(()=>!r(ln));Al(Zn,{get disabled(){return r(Mi)},get click(){return tt},isMobile:!0,get isPlaying(){return r(Vn)},get ref(){return st.playButton},set ref(gr){st.playButton=gr}}),h(Hi),b(Do,Hi)};V(bo,Do=>{r(ln)&&Do($o)})}var To=P(bo,2);let pn;var Ln=_(To);Kd(Ln,{get position(){return se()},get duration(){return N()}}),h(To),B((Do,Hi)=>{fo=te(Si,1,"wrapper-top-right svelte-68kopu",null,fo,Do),pn=te(To,1,"wrapper-bottom ads-timeline-mobile svelte-68kopu",null,pn,Hi)},[()=>({fullscreen:pe()}),()=>({fullscreen:pe()})]),b(ut,Rt)};V(kr,ut=>{ve()&&d()!=="inactive"&&ut(qr)})}var An=P(kr,2);let Gr;var mr=_(An);let So;var Jo=_(mr);te(Jo,1,"controls svelte-68kopu",null,{},{mobile:!0});var oi=_(Jo),Bo=_(oi);{var ds=ut=>{Lo(ut,{get disabled(){return r(In)},get ref(){return st.replayButton},set ref(Rt){st.replayButton=Rt},children:(Rt,Si)=>{Pl(Rt,{get disabled(){return r(In)},get click(){return ei}})},$$slots:{default:!0}})};V(Bo,ut=>{Dt&&ut(ds)})}var Pr=P(Bo,2);{var Qr=ut=>{Lo(ut,{get ref(){return st.liveButton},set ref(Rt){st.liveButton=Rt},children:(Rt,Si)=>{tc(Rt,{get isLiveActive(){return r(kn)},isMobile:!0,get ariaLabel(){return r(ao)}})},$$slots:{default:!0}})};V(Pr,ut=>{!ve()&&E()&&ut(Qr)})}var lt=P(Pr,2);{var vi=ut=>{let Rt=g(()=>ve()?se():Be()),Si=g(()=>ve()?N():ue()),fo=g(()=>!e.showControls);Dd(ut,{get showDuration(){return r(Kn)},get position(){return r(Rt)},get duration(){return r(Si)},isMobile:!0,get isHidden(){return r(fo)},get ref(){return st.time},set ref(_o){st.time=_o}})};V(lt,ut=>{r(cr)&&ut(vi)})}var Co=P(lt,2);let lo=g(()=>!r(qn));Lo(Co,{className:"w-max",get disabled(){return r(lo)},get ref(){return st.episodes},set ref(ut){st.episodes=ut},children:(ut,Rt)=>{var Si=qe(),fo=he(Si);{var _o=bo=>{var $o=_4(),To=P(he($o),2);qd(To,{get position(){return Be()},get duration(){return ue()},get timeCodes(){return Kt}}),b(bo,$o)};V(fo,bo=>{r(qn)&&bo(_o)})}b(ut,Si)},$$slots:{default:!0}}),h(oi),nt(oi,ut=>si.bottomRight=ut,()=>si==null?void 0:si.bottomRight);var Zi=P(oi,2),co=_(Zi);{var uo=ut=>{Lo(ut,{get ref(){return st.volume},set ref(Rt){st.volume=Rt},children:(Rt,Si)=>{Wu(Rt,{get muted(){return r(Kr)},click:Di})},$$slots:{default:!0}})};V(co,ut=>{r(dr)&&ut(uo)})}var un=P(co,2);{var wi=ut=>{Lo(ut,{get ref(){return st.settings},set ref(Rt){st.settings=Rt},children:(Rt,Si)=>{Il(Rt,{get ref$(){return Oo}})},$$slots:{default:!0}})};V(un,ut=>{r(lr)&&ut(wi)})}var jn=P(un,2);{var Yn=ut=>{Lo(ut,{get ref(){return st.fullscreen},set ref(Rt){st.fullscreen=Rt},children:(Rt,Si)=>{Ud(Rt,{get click(){return e.toggleFullscreen},get isFullscreen(){return pe()}})},$$slots:{default:!0}})};V(jn,ut=>{r(Ir)&&ut(Yn)})}h(Zi),nt(Zi,ut=>si.bottomRight=ut,()=>si==null?void 0:si.bottomRight),h(Jo),nt(Jo,ut=>ee(ut),()=>ee());var cs=P(Jo,2);let jr=g(()=>!e.showControls);Pa(cs,{get isHidden(){return r(jr)},get isAds(){return ve()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return X()},get ref(){return st.timeline},set ref(ut){st.timeline=ut}}),h(mr),h(An),nt(An,ut=>ge(ut),()=>ge());var Yr=P(An,2);{var po=ut=>{jd(ut,{get ref(){return st.interactiveTimeIndicator},set ref(Rt){st.interactiveTimeIndicator=Rt}})};V(Yr,ut=>{wt&&ut(po)})}B((ut,Rt)=>{Gr=te(An,1,"wrapper-bottom svelte-68kopu",null,Gr,ut),So=te(mr,1,"controls-wrapper svelte-68kopu",null,So,Rt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:pe()})]),b(t,Gn),z(),o()}ft(["click"]);function ic(t,e){U(e,!0);let[i,o]=Ue(),n=()=>S(T,"$isMobile",i),s=m(e,"bottomNoSmooth",3,!1),l=m(e,"playerControlsWrapperRef",15,void 0),d=m(e,"playerControlsRef",15,void 0),a=m(e,"isAds",3,!1),u=m(e,"logoTargetUrl",3,""),f=m(e,"showAutoplayNext",3,!1),v=m(e,"isOneVideoPlaylist",3,!1),p=m(e,"customFullscreenSupported",3,!0),y=m(e,"endScreenShown",3,!1),w=m(e,"onDisabledPlayPrevChapterClick",3,Gm.noop),$=m(e,"onDisabledSeekToInteractiveClick",3,Gm.noop),T=Ie().ui.isMobile,I=Y(!1);zt(()=>{let R=setTimeout(()=>O(I,!0),0);return()=>clearTimeout(R)});var M=qe(),k=he(M);{var E=R=>{var X=qe(),D=he(X);{var H=J=>{qm(J,{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 y()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return w()},get onDisabledSeekToInteractiveClick(){return $()},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(j){l(j)},get playerControlsRef(){return d()},set playerControlsRef(j){d(j)}})},K=J=>{Bm(J,{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(j){l(j)},get playerControlsRef(){return d()},set playerControlsRef(j){d(j)}})};V(D,J=>{n()?J(H):J(K,!1)})}b(R,X)};V(k,R=>{r(I)&&R(E)})}b(t,M),z(),o()}var y4=Te('<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 Qm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=y4();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"51",fill:"none","aria-hidden":"true","data-testid":"seek-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Ce(2),h(o),b(t,o)}function jm(t,e){let i=m(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);Qm(t,{get style(){return r(o)}})}var x4=Te('<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 Ym(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=x4();Pe(o,()=>W({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 n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Ce(2),h(o),b(t,o)}var w4=Te('<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 Zm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=w4();Pe(o,()=>W({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 n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Ce(2),h(o),b(t,o)}function Ku(t,e){let i=m(e,"isOff",3,!1);var o=qe(),n=he(o);{var s=d=>{Zm(d,{})},l=d=>{Ym(d,{})};V(n,d=>{i()?d(s):d(l,!1)})}b(t,o)}var S4=Te('<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 Xm(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=S4();Pe(o,()=>W({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 n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Ce(2),h(o),b(t,o)}function Jm(t,e){let i=m(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);Xm(t,{get style(){return r(o)}})}var C4=Te('<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 ev(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=C4();Pe(o,()=>W({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 n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Ce(2),h(o),b(t,o)}function tv(t,e){let i=m(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);ev(t,{get style(){return r(o)}})}var T4=A('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),I4=A('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),E4=A("<div><!></div>"),k4={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;
262
260
  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"],
263
261
  .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"],
264
262
  .hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="play-icon"],
@@ -273,23 +271,23 @@ Try switching the\xA0quality to\xA0Auto.`},y1=bb;var xs=new Map;xs.set(hl.Interf
273
271
  @keyframes svelte-1ad3n06-fadeOut {
274
272
  0% {opacity:1;}
275
273
  100% {opacity:0;}
276
- }`};function tv(t,e){F(e,!0),q(t,E4);let[i,o]=He(),n=()=>C(e.data,"$data",i),l=ke().ui.t,d=g(()=>!n()),a=g(()=>{var S;return((S=n())==null?void 0:S.type)==="BACKWARD_SEEK"}),u=g(()=>{var S;return((S=n())==null?void 0:S.type)==="FORWARD_SEEK"}),f=g(()=>{var S;return(S=n())==null?void 0:S.type}),v=g(()=>{var S,T;return(S=n())!=null&&S.t?l(n().t.key,{value:n().t.value||""}):(T=n())==null?void 0:T.text});var p=T4();let y;var w=_(p);{var $=S=>{var T=C4(),E=ge(T),V=_(E);{var k=ue=>{let me=g(()=>r(f)==="FORWARD_SEEK");Qm(ue,{get reversed(){return r(me)}})};L(V,ue=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(r(f))&&ue(k)})}var I=P(V,2);{var R=ue=>{Cs(ue,{})};L(I,ue=>{r(f)==="PAUSE"&&ue(R)})}var Z=P(I,2);{var D=ue=>{Fr(ue,{})};L(Z,ue=>{r(f)==="PLAY"&&ue(D)})}var H=P(Z,2);{var W=ue=>{ec(ue,{})};L(H,ue=>{r(f)==="REPLAY"&&ue(W)})}var X=P(H,2);{var j=ue=>{zu(ue,{isOff:!0})};L(X,ue=>{r(f)==="SUBTITLES_OFF"&&ue(j)})}var ce=P(X,2);{var re=ue=>{zu(ue,{})};L(ce,ue=>{r(f)==="SUBTITLES_ON"&&ue(re)})}var pe=P(ce,2);{var xe=ue=>{let me=g(()=>r(f)==="RATE_UP");Xm(ue,{get reversed(){return r(me)}})};L(pe,ue=>{["RATE_DOWN","RATE_UP"].includes(r(f))&&ue(xe)})}var fe=P(pe,2);{var ie=ue=>{let me=g(()=>r(f)==="EPISODE_NEXT");ev(ue,{get reversed(){return r(me)}})};L(fe,ue=>{["EPISODE_PREV","EPISODE_NEXT"].includes(r(f))&&ue(ie)})}var Pe=P(fe,2);{var ee=ue=>{Ws(ue,{volume:0})};L(Pe,ue=>{r(f)==="MUTE"&&ue(ee)})}var N=P(Pe,2);{var Ue=ue=>{Ws(ue,{volume:1})};L(N,ue=>{r(f)==="VOLUME"&&ue(Ue)})}h(E);var _e=P(E,2);{var he=ue=>{var me=S4(),ve=_(me,!0);h(me),B(()=>ye(ve,r(v))),b(ue,me)};L(_e,ue=>{r(v)&&ue(he)})}b(S,T)};L(w,S=>{!r(d)&&r(f)&&S($)})}h(p),B(S=>y=te(p,1,"hot-key-helpers-container svelte-1ad3n06",null,y,S),[()=>({hidden:r(d),"hot-key-helpers-container--left":r(a),"hot-key-helpers-container--right":r(u)})]),b(t,p),U(),o()}var I4=Ee('<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 iv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=I4();Ae(o,()=>z({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",fill:"none","aria-hidden":"true",color:"#fff",role:"img"},i));var n=_(o);we(n,()=>{var s;return(s=e.children)!=null?s:de}),Te(),h(o),b(t,o)}var k4=Ee('<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 ov(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=k4();Ae(o,()=>z({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"16",fill:"none","aria-hidden":"true",color:"#fff",role:"img"},i));var n=_(o);we(n,()=>{var s;return(s=e.children)!=null?s:de}),Te(),h(o),b(t,o)}function Gs(t,e){F(e,!0);let i=m(e,"direction",3,"left"),o=m(e,"useBtnColor",3,!1),n=g(()=>["up","down"].includes(i())),s=g(()=>["right","down"].includes(i())),l=g(()=>(()=>{let v="";return r(s)&&(v+="transform: rotate(180deg);"),o()&&(v+="color: var(--btn-color, #fff);"),v.length?v:void 0})());var d=ze(),a=ge(d);{var u=v=>{let p=g(()=>r(s)?"chevron-icon--down":"chevron-icon--up");iv(v,{get style(){return r(l)},get"data-testid"(){return r(p)}})},f=v=>{let p=g(()=>r(s)?"chevron-icon--right":"chevron-icon--left");ov(v,{get style(){return r(l)},get"data-testid"(){return r(p)}})};L(a,v=>{r(n)?v(u):v(f,!1)})}b(t,d),U()}var P4=(t,e,i,o,n,s)=>{if(e.has(t.code))switch(t.preventDefault(),t.stopPropagation(),t.code){case"ArrowUp":i();break;case"ArrowDown":o();break;case"ArrowLeft":n();break;case"ArrowRight":s();break}},A4=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},M4=A('<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>'),L4={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 ac(t,e){F(e,!0),q(t,L4);let i=m(e,"isShifted",3,!1),o=ke(),n=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=K("aria_label_spherical_control");var v=M4();let p;v.__keydown=[P4,n,s,l,a,d],v.__keyup=[A4,n,u];var y=_(v),w=_(y),$=_(w);$.__mousedown=s,$.__mouseup=u;var S=_($);Gs(S,{direction:"up",useBtnColor:!0}),h($);var T=P($,2);T.__mousedown=d,T.__mouseup=u;var E=_(T);Gs(E,{direction:"up",useBtnColor:!0}),h(T),h(w);var V=P(w,2),k=_(V);k.__mousedown=a,k.__mouseup=u;var I=_(k);Gs(I,{direction:"up",useBtnColor:!0}),h(k);var R=P(k,2);R.__mousedown=l,R.__mouseup=u;var Z=_(R);Gs(Z,{direction:"up",useBtnColor:!0}),h(R),h(V),h(y),h(v),B(D=>{p=te(v,1,"immersive-controls svelte-1yzc86r",null,p,D),Fe(v,"aria-label",f)},[()=>({"m-shifted":i()})]),Ct("mouseleave",$,u),Ct("mouseleave",T,u),Ct("mouseleave",k,u),Ct("mouseleave",R,u),b(t,v),U()}ct(["keydown","keyup","mousedown","mouseup"]);var Es=require("@vkontakte/videoplayer-shared/es2015");var f0=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var Wu=class{constructor(){this.flickeringTimeout=f0(1e3);this.subscriptions=new Es.Subscription;this.isAuto=!1;this.isLive=!1;this.captions$=new Es.ValueSubject([]);this.captionsPrepared$=new Es.ValueSubject([])}subscribe(){return this.subscriptions.add(this.captions$.pipe((0,Es.filter)(()=>this.isEnabled()),(0,Es.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((n,{type:s,value:l},d)=>(o&&!d||(s==="timestamp"?n.push({timeAppeared:Number(l),value:""}):n.length===0?n.push({value:String(l)}):n[n.length-1].value=String(l)),n),[])),this.captionsPrepared$.next(i)}};var V4=A('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),R4=A('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"></span></span>'),N4=A('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),O4=A('<div><span class="caption svelte-c2x749"><!></span></div>'),B4=A("<div><!></div>"),D4={hash:"svelte-c2x749",code:`.subtitles-container.svelte-c2x749 {position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;transition:transform var(--controls-transition-duration);}.subtitles-container.shifted.svelte-c2x749 {transform:translateY(calc(var(--controls-height) * -1));}.subtitles-caption.svelte-c2x749 {position:absolute;left:4%;right:4%;bottom:4%;display:flex;justify-content:center;}.subtitles-caption.mobile.svelte-c2x749 {bottom:8%;}.subtitles-container.auto.svelte-c2x749 .subtitles-caption:where(.svelte-c2x749) {left:var(--subtitles-caption-margin);right:var(--subtitles-caption-margin);}.caption.svelte-c2x749 {display:block;overflow-wrap:normal;padding:4px 8px;border-radius:4px;background:rgba(0, 0, 0, 0.4);}.subtitles-container.auto.svelte-c2x749 .caption:where(.svelte-c2x749) {width:100%;}.caption-line.svelte-c2x749 {display:block;text-align:center;}.subtitles-container.auto.svelte-c2x749 .caption-line:where(.svelte-c2x749) {text-align:left;}.caption-segment.svelte-c2x749 {display:inline-block;line-height:1.2;font-size:13px;
277
- /*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function Oa(t,e){F(e,!0),q(t,D4);let[i,o]=He(),n=()=>C(v,"$currentSubtitle$",i),s=()=>C(y,"$isLive$",i),l=()=>C(w,"$isFullscreen",i),d=()=>C(p,"$isAutoSubtitleCaptionVisible$",i),a=m(e,"isMobile",3,!1),u=ke(),f=At(),v=u.state.currentSubtitle$,p=u.state.isAutoSubtitleCaptionVisible$,y=u.state.isLive$,w=u.ui.isFullscreen,$=g(()=>!!n().isAuto),S=g(()=>!!s()),T=g(()=>e.playerSize.width*.02),E=g(()=>a()&&!l()||r(T)<=f.minSubtitlesFontSize?f.minSubtitlesFontSize:r(T)),V=Y(null);We(()=>{var W,X,j;(W=r(V))==null||W.setIsAuto(r($)),(X=r(V))==null||X.setIsLive(r(S)),(j=r(V))==null||j.setCaptions(e.captions)});let k=Y(ri([[]]));Dt(()=>{O(V,new Wu().subscribe(),!0);let W=r(V).captionsPrepared$.subscribe(X=>{O(k,X,!0)});return()=>{var X;(X=r(V))==null||X.destroy(),W.unsubscribe()}}),Dt(()=>{if(r($)){let W=window.setTimeout(()=>{p.set(!1)},f.autoSubtitlesTimeout);return()=>{window.clearTimeout(W)}}else p.set(!1)});let I=g(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var R=B4();let Z;var D=_(R);{var H=W=>{var X=O4();let j;var ce=_(X),re=_(ce);{var pe=fe=>{var ie=V4(),Pe=_(ie),ee=_(Pe,!0);h(Pe),h(ie),B(N=>{var Ue;st(Pe,`font-size: ${(Ue=r(E))!=null?Ue:""}px`),ye(ee,N)},[()=>K("subtitles_auto_caption")]),b(fe,ie)},xe=(fe,ie)=>{{var Pe=N=>{var Ue=ze(),_e=ge(Ue);ki(_e,17,()=>r(k),vd,(he,ue)=>{var me=R4(),ve=_(me);ki(ve,21,()=>r(ue),({value:se,timeAppeared:Ge})=>Ge,(se,Ge)=>{let et=()=>r(Ge).value,J=()=>r(Ge).timeAppeared;var Le=ze(),Ie=ge(Le);{var Ze=at=>{var bt=rs();B(()=>ye(bt,et())),b(at,bt)};L(Ie,at=>{(!J()||J()<=e.position)&&at(Ze)})}b(se,Le)}),h(ve),h(me),B(()=>{var se;return st(ve,`font-size: ${(se=r(E))!=null?se:""}px`)}),b(he,me)}),b(N,Ue)},ee=N=>{var Ue=ze(),_e=ge(Ue);ki(_e,17,()=>e.captions,({value:he})=>he,(he,ue)=>{let me=()=>r(ue).value;var ve=N4(),se=_(ve),Ge=_(se,!0);h(se),h(ve),B(()=>{var et;st(se,`font-size: ${(et=r(E))!=null?et:""}px`),ye(Ge,me())}),b(he,ve)}),b(N,Ue)};L(fe,N=>{var Ue;r($)&&((Ue=r(k))!=null&&Ue.length)?N(Pe):N(ee,!1)},ie)}};L(re,fe=>{r($)&&d()?fe(pe):fe(xe,!1)})}h(ce),h(X),B(fe=>{var ie;j=te(X,1,"subtitles-caption svelte-c2x749",null,j,fe),st(X,`--subtitles-caption-margin: ${(ie=r(I))!=null?ie:""}%`)},[()=>({mobile:a()})]),b(W,X)};L(D,W=>{var X;(e.captions.length||(X=r(k))!=null&&X.length)&&W(H)})}h(R),B(W=>Z=te(R,1,"subtitles-container svelte-c2x749",null,Z,W),[()=>({shifted:e.shifted,auto:r($)&&!r(S)&&!d()})]),b(t,R),U(),o()}var H4=A('<div class="text svelte-raurnb"> </div>'),F4=A('<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>'),U4={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 lc(t,e){F(e,!0),q(t,U4);let i=At();var o=F4();let n;var s=P(_(o),2);{var l=d=>{var a=H4(),u=_(a);h(a),B(()=>{var f;return ye(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:""}`)}),b(d,a)};L(s,d=>{e.chromecastDeviceName&&d(l)})}h(o),B(d=>{n=te(o,1,"wrapper svelte-raurnb",null,n,d),st(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})]),b(t,o),U()}var z4=Ee('<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 nv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=z4();Ae(o,()=>z({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 n=_(o);we(n,()=>{var s;return(s=e.children)!=null?s:de}),Te(),h(o),b(t,o)}var W4=A('<div class="container svelte-13zpvm8"><!></div>'),K4={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 Ba(t){q(t,K4);var e=W4(),i=_(e);nv(i,{}),h(e),b(t,e)}var q4=A('<div class="playButton svelte-1ciju45" tabindex="0" role="button"><div class="playButtonBackground svelte-1ciju45"></div> <!></div>'),G4=A("<div><!></div>"),Q4={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,
274
+ }`};function iv(t,e){U(e,!0),G(t,k4);let[i,o]=Ue(),n=()=>S(e.data,"$data",i),l=Ie().ui.t,d=g(()=>!n()),a=g(()=>{var C;return((C=n())==null?void 0:C.type)==="BACKWARD_SEEK"}),u=g(()=>{var C;return((C=n())==null?void 0:C.type)==="FORWARD_SEEK"}),f=g(()=>{var C;return(C=n())==null?void 0:C.type}),v=g(()=>{var C,T;return(C=n())!=null&&C.t?l(n().t.key,{value:n().t.value||""}):(T=n())==null?void 0:T.text});var p=E4();let y;var w=_(p);{var $=C=>{var T=I4(),I=he(T),M=_(I);{var k=ge=>{let ee=g(()=>r(f)==="FORWARD_SEEK");jm(ge,{get reversed(){return r(ee)}})};V(M,ge=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(r(f))&&ge(k)})}var E=P(M,2);{var R=ge=>{ws(ge,{})};V(E,ge=>{r(f)==="PAUSE"&&ge(R)})}var X=P(E,2);{var D=ge=>{zr(ge,{})};V(X,ge=>{r(f)==="PLAY"&&ge(D)})}var H=P(X,2);{var K=ge=>{Yd(ge,{})};V(H,ge=>{r(f)==="REPLAY"&&ge(K)})}var J=P(H,2);{var j=ge=>{Ku(ge,{isOff:!0})};V(J,ge=>{r(f)==="SUBTITLES_OFF"&&ge(j)})}var ce=P(J,2);{var oe=ge=>{Ku(ge,{})};V(ce,ge=>{r(f)==="SUBTITLES_ON"&&ge(oe)})}var pe=P(ce,2);{var be=ge=>{let ee=g(()=>r(f)==="RATE_UP");Jm(ge,{get reversed(){return r(ee)}})};V(pe,ge=>{["RATE_DOWN","RATE_UP"].includes(r(f))&&ge(be)})}var fe=P(pe,2);{var ke=ge=>{let ee=g(()=>r(f)==="EPISODE_NEXT");tv(ge,{get reversed(){return r(ee)}})};V(fe,ge=>{["EPISODE_PREV","EPISODE_NEXT"].includes(r(f))&&ge(ke)})}var ne=P(fe,2);{var Le=ge=>{Us(ge,{volume:0})};V(ne,ge=>{r(f)==="MUTE"&&ge(Le)})}var se=P(ne,2);{var N=ge=>{Us(ge,{volume:1})};V(se,ge=>{r(f)==="VOLUME"&&ge(N)})}h(I);var Be=P(I,2);{var ue=ge=>{var ee=T4(),ve=_(ee,!0);h(ee),B(()=>$e(ve,r(v))),b(ge,ee)};V(Be,ge=>{r(v)&&ge(ue)})}b(C,T)};V(w,C=>{!r(d)&&r(f)&&C($)})}h(p),B(C=>y=te(p,1,"hot-key-helpers-container svelte-1ad3n06",null,y,C),[()=>({hidden:r(d),"hot-key-helpers-container--left":r(a),"hot-key-helpers-container--right":r(u)})]),b(t,p),z(),o()}var P4=Te('<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 ov(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=P4();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",fill:"none","aria-hidden":"true",color:"#fff",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Ce(),h(o),b(t,o)}var A4=Te('<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 nv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=A4();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"16",fill:"none","aria-hidden":"true",color:"#fff",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Ce(),h(o),b(t,o)}function Ks(t,e){U(e,!0);let i=m(e,"direction",3,"left"),o=m(e,"useBtnColor",3,!1),n=g(()=>["up","down"].includes(i())),s=g(()=>["right","down"].includes(i())),l=g(()=>(()=>{let v="";return r(s)&&(v+="transform: rotate(180deg);"),o()&&(v+="color: var(--btn-color, #fff);"),v.length?v:void 0})());var d=qe(),a=he(d);{var u=v=>{let p=g(()=>r(s)?"chevron-icon--down":"chevron-icon--up");ov(v,{get style(){return r(l)},get"data-testid"(){return r(p)}})},f=v=>{let p=g(()=>r(s)?"chevron-icon--right":"chevron-icon--left");nv(v,{get style(){return r(l)},get"data-testid"(){return r(p)}})};V(a,v=>{r(n)?v(u):v(f,!1)})}b(t,d),z()}var M4=(t,e,i,o,n,s)=>{if(e.has(t.code))switch(t.preventDefault(),t.stopPropagation(),t.code){case"ArrowUp":i();break;case"ArrowDown":o();break;case"ArrowLeft":n();break;case"ArrowRight":s();break}},L4=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},V4=A('<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>'),R4={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 oc(t,e){U(e,!0),G(t,R4);let i=m(e,"isShifted",3,!1),o=Ie(),n=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=q("aria_label_spherical_control");var v=V4();let p;v.__keydown=[M4,n,s,l,a,d],v.__keyup=[L4,n,u];var y=_(v),w=_(y),$=_(w);$.__mousedown=s,$.__mouseup=u;var C=_($);Ks(C,{direction:"up",useBtnColor:!0}),h($);var T=P($,2);T.__mousedown=d,T.__mouseup=u;var I=_(T);Ks(I,{direction:"up",useBtnColor:!0}),h(T),h(w);var M=P(w,2),k=_(M);k.__mousedown=a,k.__mouseup=u;var E=_(k);Ks(E,{direction:"up",useBtnColor:!0}),h(k);var R=P(k,2);R.__mousedown=l,R.__mouseup=u;var X=_(R);Ks(X,{direction:"up",useBtnColor:!0}),h(R),h(M),h(y),h(v),B(D=>{p=te(v,1,"immersive-controls svelte-1yzc86r",null,p,D),ze(v,"aria-label",f)},[()=>({"m-shifted":i()})]),It("mouseleave",$,u),It("mouseleave",T,u),It("mouseleave",k,u),It("mouseleave",R,u),b(t,v),z()}ft(["keydown","keyup","mousedown","mouseup"]);var Cs=require("@vkontakte/videoplayer-shared/es2015");var f_=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var qu=class{constructor(){this.flickeringTimeout=f_(1e3);this.subscriptions=new Cs.Subscription;this.isAuto=!1;this.isLive=!1;this.captions$=new Cs.ValueSubject([]);this.captionsPrepared$=new Cs.ValueSubject([])}subscribe(){return this.subscriptions.add(this.captions$.pipe((0,Cs.filter)(()=>this.isEnabled()),(0,Cs.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((n,{type:s,value:l},d)=>(o&&!d||(s==="timestamp"?n.push({timeAppeared:Number(l),value:""}):n.length===0?n.push({value:String(l)}):n[n.length-1].value=String(l)),n),[])),this.captionsPrepared$.next(i)}};var N4=A('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),O4=A('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"></span></span>'),B4=A('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),D4=A('<div><span class="caption svelte-c2x749"><!></span></div>'),H4=A("<div><!></div>"),F4={hash:"svelte-c2x749",code:`.subtitles-container.svelte-c2x749 {position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;transition:transform var(--controls-transition-duration);}.subtitles-container.shifted.svelte-c2x749 {transform:translateY(calc(var(--controls-height) * -1));}.subtitles-caption.svelte-c2x749 {position:absolute;left:4%;right:4%;bottom:4%;display:flex;justify-content:center;}.subtitles-caption.mobile.svelte-c2x749 {bottom:8%;}.subtitles-container.auto.svelte-c2x749 .subtitles-caption:where(.svelte-c2x749) {left:var(--subtitles-caption-margin);right:var(--subtitles-caption-margin);}.caption.svelte-c2x749 {display:block;overflow-wrap:normal;padding:4px 8px;border-radius:4px;background:rgba(0, 0, 0, 0.4);}.subtitles-container.auto.svelte-c2x749 .caption:where(.svelte-c2x749) {width:100%;}.caption-line.svelte-c2x749 {display:block;text-align:center;}.subtitles-container.auto.svelte-c2x749 .caption-line:where(.svelte-c2x749) {text-align:left;}.caption-segment.svelte-c2x749 {display:inline-block;line-height:1.2;font-size:13px;
275
+ /*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function Na(t,e){U(e,!0),G(t,F4);let[i,o]=Ue(),n=()=>S(v,"$currentSubtitle$",i),s=()=>S(y,"$isLive$",i),l=()=>S(w,"$isFullscreen",i),d=()=>S(p,"$isAutoSubtitleCaptionVisible$",i),a=m(e,"isMobile",3,!1),u=Ie(),f=At(),v=u.state.currentSubtitle$,p=u.state.isAutoSubtitleCaptionVisible$,y=u.state.isLive$,w=u.ui.isFullscreen,$=g(()=>!!n().isAuto),C=g(()=>!!s()),T=g(()=>e.playerSize.width*.02),I=g(()=>a()&&!l()||r(T)<=f.minSubtitlesFontSize?f.minSubtitlesFontSize:r(T)),M=Y(null);Ge(()=>{var K,J,j;(K=r(M))==null||K.setIsAuto(r($)),(J=r(M))==null||J.setIsLive(r(C)),(j=r(M))==null||j.setCaptions(e.captions)});let k=Y(ri([[]]));zt(()=>{O(M,new qu().subscribe(),!0);let K=r(M).captionsPrepared$.subscribe(J=>{O(k,J,!0)});return()=>{var J;(J=r(M))==null||J.destroy(),K.unsubscribe()}}),zt(()=>{if(r($)){let K=window.setTimeout(()=>{p.set(!1)},f.autoSubtitlesTimeout);return()=>{window.clearTimeout(K)}}else p.set(!1)});let E=g(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var R=H4();let X;var D=_(R);{var H=K=>{var J=D4();let j;var ce=_(J),oe=_(ce);{var pe=fe=>{var ke=N4(),ne=_(ke),Le=_(ne,!0);h(ne),h(ke),B(se=>{var N;rt(ne,`font-size: ${(N=r(I))!=null?N:""}px`),$e(Le,se)},[()=>q("subtitles_auto_caption")]),b(fe,ke)},be=(fe,ke)=>{{var ne=se=>{var N=qe(),Be=he(N);Ei(Be,17,()=>r(k),ud,(ue,ge)=>{var ee=O4(),ve=_(ee);Ei(ve,21,()=>r(ge),({value:De,timeAppeared:me})=>me,(De,me)=>{let at=()=>r(me).value,Z=()=>r(me).timeAppeared;var Me=qe(),Ee=he(Me);{var We=tt=>{var bt=os();B(()=>$e(bt,at())),b(tt,bt)};V(Ee,tt=>{(!Z()||Z()<=e.position)&&tt(We)})}b(De,Me)}),h(ve),h(ee),B(()=>{var De;return rt(ve,`font-size: ${(De=r(I))!=null?De:""}px`)}),b(ue,ee)}),b(se,N)},Le=se=>{var N=qe(),Be=he(N);Ei(Be,17,()=>e.captions,({value:ue})=>ue,(ue,ge)=>{let ee=()=>r(ge).value;var ve=B4(),De=_(ve),me=_(De,!0);h(De),h(ve),B(()=>{var at;rt(De,`font-size: ${(at=r(I))!=null?at:""}px`),$e(me,ee())}),b(ue,ve)}),b(se,N)};V(fe,se=>{var N;r($)&&((N=r(k))!=null&&N.length)?se(ne):se(Le,!1)},ke)}};V(oe,fe=>{r($)&&d()?fe(pe):fe(be,!1)})}h(ce),h(J),B(fe=>{var ke;j=te(J,1,"subtitles-caption svelte-c2x749",null,j,fe),rt(J,`--subtitles-caption-margin: ${(ke=r(E))!=null?ke:""}%`)},[()=>({mobile:a()})]),b(K,J)};V(D,K=>{var J;(e.captions.length||(J=r(k))!=null&&J.length)&&K(H)})}h(R),B(K=>X=te(R,1,"subtitles-container svelte-c2x749",null,X,K),[()=>({shifted:e.shifted,auto:r($)&&!r(C)&&!d()})]),b(t,R),z(),o()}var U4=A('<div class="text svelte-raurnb"> </div>'),z4=A('<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>'),W4={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 nc(t,e){U(e,!0),G(t,W4);let i=At();var o=z4();let n;var s=P(_(o),2);{var l=d=>{var a=U4(),u=_(a);h(a),B(()=>{var f;return $e(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:""}`)}),b(d,a)};V(s,d=>{e.chromecastDeviceName&&d(l)})}h(o),B(d=>{n=te(o,1,"wrapper svelte-raurnb",null,n,d),rt(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})]),b(t,o),z()}var K4=Te('<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 rv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=K4();Pe(o,()=>W({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 n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Ce(),h(o),b(t,o)}var q4=A('<div class="container svelte-13zpvm8"><!></div>'),G4={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 Oa(t){G(t,G4);var e=q4(),i=_(e);rv(i,{}),h(e),b(t,e)}var Q4=A('<div class="playButton svelte-1ciju45" tabindex="0" role="button"><div class="playButtonBackground svelte-1ciju45"></div> <!></div>'),j4=A("<div><!></div>"),Y4={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,
278
276
  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,
279
- 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 Da(t,e){F(e,!0),q(t,Q4);let i=m(e,"iconVisible",3,!0),o=ke(),n=At(),s=o.ui.startedByKeyboard$,l=K("tooltip_play"),d=y=>{var $;let w=y.code;["Enter","Space"].includes(w)&&(y.stopPropagation(),y.preventDefault(),s.set(!0),($=e.startVideo)==null||$.call(e))},a=y=>{var w;y.stopPropagation(),(w=e.startVideo)==null||w.call(e)};var u=G4();let f;u.__click=a;var v=_(u);{var p=y=>{var w=q4();w.__keydown=d;var $=P(_(w),2);Fr($,{}),h(w),B(()=>Fe(w,"aria-label",l)),b(y,w)};L(v,y=>{i()&&y(p)})}return h(u),B(y=>{f=te(u,1,"container svelte-1ciju45",null,f,y),st(u,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:n.features.previewNoEmptySpace})]),b(t,u),U({handlePressKey:d,handleClick:a})}ct(["click","keydown"]);var j4=A('<div data-testid="video_title"><span> </span></div>'),Y4={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(
277
+ 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 Ba(t,e){U(e,!0),G(t,Y4);let i=m(e,"iconVisible",3,!0),o=Ie(),n=At(),s=o.ui.startedByKeyboard$,l=q("tooltip_play"),d=y=>{var $;let w=y.code;["Enter","Space"].includes(w)&&(y.stopPropagation(),y.preventDefault(),s.set(!0),($=e.startVideo)==null||$.call(e))},a=y=>{var w;y.stopPropagation(),(w=e.startVideo)==null||w.call(e)};var u=j4();let f;u.__click=a;var v=_(u);{var p=y=>{var w=Q4();w.__keydown=d;var $=P(_(w),2);zr($,{}),h(w),B(()=>ze(w,"aria-label",l)),b(y,w)};V(v,y=>{i()&&y(p)})}return h(u),B(y=>{f=te(u,1,"container svelte-1ciju45",null,f,y),rt(u,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:n.features.previewNoEmptySpace})]),b(t,u),z({handlePressKey:d,handleClick:a})}ft(["click","keydown"]);var Z4=A('<div data-testid="video_title"><span> </span></div>'),X4={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(
280
278
  0deg,
281
279
  rgba(0, 0, 0, 0) 0%,
282
280
  rgba(0, 0, 0, 0.02) 19%,
283
281
  rgba(0, 0, 0, 0.1) 34%,
284
282
  rgba(0, 0, 0, 0.4) 60%,
285
283
  rgba(0, 0, 0, 0.6) 100%
286
- );}.hidden.svelte-14hk510 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function rv(t,e){F(e,!0),q(t,Y4);let i=m(e,"title",3,""),o=m(e,"isHidden",3,!1),n=m(e,"ref",15),s=Y(void 0);Dt(()=>{var v;requestAnimationFrame(()=>{var p;(p=e.onVisibilityChanged)==null||p.call(e,!0)});function f(p){var y;p.propertyName==="transform"&&((y=e.onVisibilityChanged)==null||y.call(e,!o()))}return(v=r(s))==null||v.addEventListener("transitionend",f),()=>{var p;return(p=r(s))==null?void 0:p.removeEventListener("transitionend",f)}});var l=j4();let d;var a=_(l),u=_(a,!0);h(a),rt(a,f=>n(f),()=>n()),h(l),rt(l,f=>O(s,f),()=>r(s)),B(f=>{d=te(l,1,"title svelte-14hk510",null,d,f),ye(u,i())},[()=>({hidden:o()})]),b(t,l),U()}var m0=require("@vkontakte/videoplayer-shared/es2015");var Z4=A('<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),X4=A('<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),J4=A('<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),e3=A('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div>'),t3=A("<div><!> <!> <!> <!></div>"),i3={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 sv(t,e){F(e,!0),q(t,i3);let i=Y(""),o=Y(""),n=Y(""),s=Y(""),l,d=32,a=d/2,u=D=>String(D).padStart(2,"0"),f=D=>Math.max(D.length,1),v=D=>`${(e.isSmallSize?a:d)*f(D)}px`,p=D=>{let H=Math.floor(D/86400);H&&(D-=H*86400,O(i,u(H),!0));let W=Math.floor(D/3600);O(o,u(W),!0);let X=Math.floor(D/60)%60;O(n,u(X),!0);let j=D%60;O(s,u(j),!0)},y=()=>{let D=Math.floor(Date.now()/1e3),H=e.startTime-D;p(H),H>=1?l=requestAnimationFrame(y):e.onTimerOver()};Dt(()=>{l=requestAnimationFrame(y)}),cn(()=>{cancelAnimationFrame(l)});var w=t3();let $;var S=_(w);{var T=D=>{var H=Z4(),W=ge(H);let X;var j=_(W),ce=_(j,!0);h(j);var re=P(j,2),pe=_(re,!0);h(re),h(W);var xe=P(W,2),fe=_(xe,!0);h(xe),B((ie,Pe,ee)=>{X=st(W,"",X,{width:ie}),ye(ce,r(i)),ye(pe,Pe),ye(fe,ee)},[()=>v(r(i)),()=>K("waiting_live_day_value"),()=>K("waiting_live_colon")]),b(D,H)};L(S,D=>{r(i)&&D(T)})}var E=P(S,2);{var V=D=>{var H=X4(),W=ge(H);let X;var j=_(W),ce=_(j,!0);h(j);var re=P(j,2),pe=_(re,!0);h(re),h(W);var xe=P(W,2),fe=_(xe,!0);h(xe),B((ie,Pe,ee)=>{X=st(W,"",X,{width:ie}),ye(ce,r(o)),ye(pe,Pe),ye(fe,ee)},[()=>v(r(o)),()=>K("waiting_live_hour_value"),()=>K("waiting_live_colon")]),b(D,H)};L(E,D=>{r(o)&&D(V)})}var k=P(E,2);{var I=D=>{var H=J4(),W=ge(H);let X;var j=_(W),ce=_(j,!0);h(j);var re=P(j,2),pe=_(re,!0);h(re),h(W);var xe=P(W,2),fe=_(xe,!0);h(xe),B((ie,Pe,ee)=>{X=st(W,"",X,{width:ie}),ye(ce,r(n)),ye(pe,Pe),ye(fe,ee)},[()=>v(r(n)),()=>K("waiting_live_minute_value"),()=>K("waiting_live_colon")]),b(D,H)};L(k,D=>{r(n)&&D(I)})}var R=P(k,2);{var Z=D=>{var H=e3();let W;var X=_(H),j=_(X,!0);h(X);var ce=P(X,2),re=_(ce,!0);h(ce),h(H),B((pe,xe)=>{W=st(H,"",W,{width:pe}),ye(j,r(s)),ye(re,xe)},[()=>v(r(s)),()=>K("waiting_live_second_value")]),b(D,H)};L(R,D=>{r(s)&&D(Z)})}h(w),B(D=>$=te(w,1,"timer__container svelte-gt98rn",null,$,D),[()=>({small:e.isSmallSize})]),b(t,w),U()}var o3=A('<div class="waiting svelte-17m8dcd"><span> </span></div>'),n3=A('<div class="upcoming-timer timer svelte-17m8dcd"><span> </span> <!></div>'),r3=A('<div class="waiting-container svelte-17m8dcd"><!></div>'),s3={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 dc(t,e){F(e,!0),q(t,s3);let i=m(e,"startTime",3,0),o=g(()=>i()<Math.floor(Date.now()/1e3)),n=Y(void 0),s=Y(void 0),l=0,d=Y(void 0),a=Y(void 0),u=g(()=>{var S,T;return((S=r(d))!=null?S:1/0)<=509||((T=r(a))!=null?T:1/0)<=320}),f=g(()=>{var S,T;return!r(u)&&(((S=r(d))!=null?S:1/0)<=699||((T=r(a))!=null?T:1/0)<=599)}),v=e.onUpcomingLiveViewStateChanged?(0,m0.throttleFn)(()=>{cancelAnimationFrame(l),l=requestAnimationFrame(()=>{let S={type:r(o)?"expired":"default",size:r(u)?"s":r(f)?"m":"l"},T=r(o)?r(n):r(s);e.onUpcomingLiveViewStateChanged(S,T)})},300):void 0;We(()=>{r(a),r(d),r(o),v==null||v()}),cn(()=>{if(cancelAnimationFrame(l),v==null||v.cancel(),e.onUpcomingLiveViewStateChanged){let S={type:r(o)?"expired":"default",size:r(u)?"s":r(f)?"m":"l"};e.onUpcomingLiveViewStateChanged(S)}});var p=r3(),y=_(p);{var w=S=>{var T=o3(),E=_(T);let V;var k=_(E,!0);h(E),h(T),rt(T,I=>O(n,I),()=>r(n)),B((I,R)=>{V=te(E,1,"waiting__title svelte-17m8dcd",null,V,I),ye(k,R)},[()=>({medium:r(f),small:r(u)}),()=>K("waiting_live_upcoming_title")]),b(S,T)},$=S=>{var T=n3(),E=_(T);let V;var k=_(E,!0);h(E);var I=P(E,2);let R=g(()=>r(u)||r(f)),Z=g(()=>i()||0);sv(I,{get isSmallSize(){return r(R)},get startTime(){return r(Z)},onTimerOver:()=>O(o,!0)}),h(T),rt(T,D=>O(s,D),()=>r(s)),B((D,H)=>{V=te(E,1,"timer__title svelte-17m8dcd",null,V,D),ye(k,H)},[()=>({medium:r(f),small:r(u)}),()=>K("waiting_live_timer_title")]),b(S,T)};L(y,S=>{r(o)?S(w):S($,!1)})}h(p),B(()=>st(p,`background-image: url(${e.thumbUrl})`)),or(p,"clientWidth",S=>O(d,S)),or(p,"clientHeight",S=>O(a,S)),b(t,p),U()}var a3=A('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),l3={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 Ha(t,e){F(e,!0),q(t,l3);let i=m(e,"thumbUrl",3,""),o={recover:K("waiting_live_recover_title"),record:K("waiting_record_title")},n=g(()=>o[e.kind]||"");var s=a3(),l=_(s),d=_(l);Ea(d,{style:"position: static; transform: translate(0, 0)"});var a=P(d,2),u=_(a,!0);h(a),h(l),h(s),B(()=>{st(s,`background-image: url('${i()}')`),ye(u,r(n))}),b(t,s),U()}var d3=Ee('<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 av(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=d3();Ae(o,()=>z({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true","data-testid":"check-mark-icon",role:"img"},i));var n=_(o);we(n,()=>{var s;return(s=e.children)!=null?s:de}),Te(),h(o),b(t,o)}var c3=A('<div class="select-icon svelte-124aexk"><!></div>'),u3={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function cc(t){q(t,u3);var e=c3(),i=_(e);av(i,{}),h(e),b(t,e)}var p3=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},f3=(t,e)=>{Sl(t,()=>e.item.selectItem(e.item.value))},m3=A("<p> </p>"),v3=A('<p class="sublabel svelte-1t7rx2m"> </p>'),g3=A('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),h3={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;
284
+ );}.hidden.svelte-14hk510 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function sv(t,e){U(e,!0),G(t,X4);let i=m(e,"title",3,""),o=m(e,"isHidden",3,!1),n=m(e,"ref",15),s=Y(void 0);zt(()=>{var v;requestAnimationFrame(()=>{var p;(p=e.onVisibilityChanged)==null||p.call(e,!0)});function f(p){var y;p.propertyName==="transform"&&((y=e.onVisibilityChanged)==null||y.call(e,!o()))}return(v=r(s))==null||v.addEventListener("transitionend",f),()=>{var p;return(p=r(s))==null?void 0:p.removeEventListener("transitionend",f)}});var l=Z4();let d;var a=_(l),u=_(a,!0);h(a),nt(a,f=>n(f),()=>n()),h(l),nt(l,f=>O(s,f),()=>r(s)),B(f=>{d=te(l,1,"title svelte-14hk510",null,d,f),$e(u,i())},[()=>({hidden:o()})]),b(t,l),z()}var m_=require("@vkontakte/videoplayer-shared/es2015");var J4=A('<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),e3=A('<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),t3=A('<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),i3=A('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div>'),o3=A("<div><!> <!> <!> <!></div>"),n3={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 av(t,e){U(e,!0),G(t,n3);let i=Y(""),o=Y(""),n=Y(""),s=Y(""),l,d=32,a=d/2,u=D=>String(D).padStart(2,"0"),f=D=>Math.max(D.length,1),v=D=>`${(e.isSmallSize?a:d)*f(D)}px`,p=D=>{let H=Math.floor(D/86400);H&&(D-=H*86400,O(i,u(H),!0));let K=Math.floor(D/3600);O(o,u(K),!0);let J=Math.floor(D/60)%60;O(n,u(J),!0);let j=D%60;O(s,u(j),!0)},y=()=>{let D=Math.floor(Date.now()/1e3),H=e.startTime-D;p(H),H>=1?l=requestAnimationFrame(y):e.onTimerOver()};zt(()=>{l=requestAnimationFrame(y)}),nn(()=>{cancelAnimationFrame(l)});var w=o3();let $;var C=_(w);{var T=D=>{var H=J4(),K=he(H);let J;var j=_(K),ce=_(j,!0);h(j);var oe=P(j,2),pe=_(oe,!0);h(oe),h(K);var be=P(K,2),fe=_(be,!0);h(be),B((ke,ne,Le)=>{J=rt(K,"",J,{width:ke}),$e(ce,r(i)),$e(pe,ne),$e(fe,Le)},[()=>v(r(i)),()=>q("waiting_live_day_value"),()=>q("waiting_live_colon")]),b(D,H)};V(C,D=>{r(i)&&D(T)})}var I=P(C,2);{var M=D=>{var H=e3(),K=he(H);let J;var j=_(K),ce=_(j,!0);h(j);var oe=P(j,2),pe=_(oe,!0);h(oe),h(K);var be=P(K,2),fe=_(be,!0);h(be),B((ke,ne,Le)=>{J=rt(K,"",J,{width:ke}),$e(ce,r(o)),$e(pe,ne),$e(fe,Le)},[()=>v(r(o)),()=>q("waiting_live_hour_value"),()=>q("waiting_live_colon")]),b(D,H)};V(I,D=>{r(o)&&D(M)})}var k=P(I,2);{var E=D=>{var H=t3(),K=he(H);let J;var j=_(K),ce=_(j,!0);h(j);var oe=P(j,2),pe=_(oe,!0);h(oe),h(K);var be=P(K,2),fe=_(be,!0);h(be),B((ke,ne,Le)=>{J=rt(K,"",J,{width:ke}),$e(ce,r(n)),$e(pe,ne),$e(fe,Le)},[()=>v(r(n)),()=>q("waiting_live_minute_value"),()=>q("waiting_live_colon")]),b(D,H)};V(k,D=>{r(n)&&D(E)})}var R=P(k,2);{var X=D=>{var H=i3();let K;var J=_(H),j=_(J,!0);h(J);var ce=P(J,2),oe=_(ce,!0);h(ce),h(H),B((pe,be)=>{K=rt(H,"",K,{width:pe}),$e(j,r(s)),$e(oe,be)},[()=>v(r(s)),()=>q("waiting_live_second_value")]),b(D,H)};V(R,D=>{r(s)&&D(X)})}h(w),B(D=>$=te(w,1,"timer__container svelte-gt98rn",null,$,D),[()=>({small:e.isSmallSize})]),b(t,w),z()}var r3=A('<div class="waiting svelte-17m8dcd"><span> </span></div>'),s3=A('<div class="upcoming-timer timer svelte-17m8dcd"><span> </span> <!></div>'),a3=A('<div class="waiting-container svelte-17m8dcd"><!></div>'),l3={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 rc(t,e){U(e,!0),G(t,l3);let i=m(e,"startTime",3,0),o=g(()=>i()<Math.floor(Date.now()/1e3)),n=Y(void 0),s=Y(void 0),l=0,d=Y(void 0),a=Y(void 0),u=g(()=>{var C,T;return((C=r(d))!=null?C:1/0)<=509||((T=r(a))!=null?T:1/0)<=320}),f=g(()=>{var C,T;return!r(u)&&(((C=r(d))!=null?C:1/0)<=699||((T=r(a))!=null?T:1/0)<=599)}),v=e.onUpcomingLiveViewStateChanged?(0,m_.throttleFn)(()=>{cancelAnimationFrame(l),l=requestAnimationFrame(()=>{let C={type:r(o)?"expired":"default",size:r(u)?"s":r(f)?"m":"l"},T=r(o)?r(n):r(s);e.onUpcomingLiveViewStateChanged(C,T)})},300):void 0;Ge(()=>{r(a),r(d),r(o),v==null||v()}),nn(()=>{if(cancelAnimationFrame(l),v==null||v.cancel(),e.onUpcomingLiveViewStateChanged){let C={type:r(o)?"expired":"default",size:r(u)?"s":r(f)?"m":"l"};e.onUpcomingLiveViewStateChanged(C)}});var p=a3(),y=_(p);{var w=C=>{var T=r3(),I=_(T);let M;var k=_(I,!0);h(I),h(T),nt(T,E=>O(n,E),()=>r(n)),B((E,R)=>{M=te(I,1,"waiting__title svelte-17m8dcd",null,M,E),$e(k,R)},[()=>({medium:r(f),small:r(u)}),()=>q("waiting_live_upcoming_title")]),b(C,T)},$=C=>{var T=s3(),I=_(T);let M;var k=_(I,!0);h(I);var E=P(I,2);let R=g(()=>r(u)||r(f)),X=g(()=>i()||0);av(E,{get isSmallSize(){return r(R)},get startTime(){return r(X)},onTimerOver:()=>O(o,!0)}),h(T),nt(T,D=>O(s,D),()=>r(s)),B((D,H)=>{M=te(I,1,"timer__title svelte-17m8dcd",null,M,D),$e(k,H)},[()=>({medium:r(f),small:r(u)}),()=>q("waiting_live_timer_title")]),b(C,T)};V(y,C=>{r(o)?C(w):C($,!1)})}h(p),B(()=>rt(p,`background-image: url(${e.thumbUrl})`)),sr(p,"clientWidth",C=>O(d,C)),sr(p,"clientHeight",C=>O(a,C)),b(t,p),z()}var d3=A('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),c3={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 Da(t,e){U(e,!0),G(t,c3);let i=m(e,"thumbUrl",3,""),o={recover:q("waiting_live_recover_title"),record:q("waiting_record_title")},n=g(()=>o[e.kind]||"");var s=d3(),l=_(s),d=_(l);Ta(d,{style:"position: static; transform: translate(0, 0)"});var a=P(d,2),u=_(a,!0);h(a),h(l),h(s),B(()=>{rt(s,`background-image: url('${i()}')`),$e(u,r(n))}),b(t,s),z()}var u3=Te('<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 lv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=u3();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true","data-testid":"check-mark-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Ce(),h(o),b(t,o)}var p3=A('<div class="select-icon svelte-124aexk"><!></div>'),f3={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function sc(t){G(t,f3);var e=p3(),i=_(e);lv(i,{}),h(e),b(t,e)}var m3=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},v3=(t,e)=>{wl(t,()=>e.item.selectItem(e.item.value))},g3=A("<p> </p>"),h3=A('<p class="sublabel svelte-1t7rx2m"> </p>'),_3=A('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),b3={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;
287
285
 
288
286
  /**
289
287
  * \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
290
288
  * \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.
291
289
  */margin-left:calc(var(--icon-padding) + var(--select-icon-width));}.label.svelte-1t7rx2m,
292
- .sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function lv(t,e){F(e,!0),q(t,h3);let i=m(e,"isMobile",3,!1);var o=g3();let n;o.__click=[p3,e],o.__keydown=[f3,e];var s=_(o);{var l=w=>{cc(w,{})};L(s,w=>{e.item.selected&&w(l)})}var d=P(s,2);let a;var u=_(d);{var f=w=>{var $=ze(),S=ge($);Pi(S,()=>e.item.valueComponent,(T,E)=>{E(T,ys(()=>{var V;return(V=e.item.valueComponentParams)!=null?V:{}}))}),b(w,$)},v=w=>{var $=m3();let S;var T=_($,!0);h($),B(E=>{var V;S=te($,1,"label svelte-1t7rx2m",null,S,E),ye(T,(V=e.item.label)!=null?V:e.item.value)},[()=>({mobile:i()})]),b(w,$)};L(u,w=>{e.item.valueComponent?w(f):w(v,!1)})}var p=P(u,2);{var y=w=>{var $=v3(),S=_($,!0);h($),B(()=>ye(S,e.item.sublabel)),b(w,$)};L(p,w=>{e.item.sublabel&&w(y)})}h(d),h(o),B((w,$,S)=>{n=te(o,1,"item",null,n,w),Fe(o,"data-value",e.item.value),Fe(o,"aria-label",$),Fe(o,"data-testid",e.item.dataTestid),a=te(d,1,"menu-item-value svelte-1t7rx2m",null,a,S),Fe(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>{var w,$;return($=(w=e.item.ariaLabel)!=null?w:e.item.label)!=null?$:e.item.value.toString()},()=>({"submenu-value-mobile":i()})]),b(t,o),U()}ct(["click","keydown"]);var _3=A('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function dv(t,e){F(e,!0);let i=m(e,"isMobile",3,!1),o=m(e,"refMenuItems",15),n=g(()=>()=>e.openSubMenuList(e.item.children)),s=g(()=>$=>Su($,r(n)));var l=_3();let d;l.__click=function(...$){var S;(S=r(n))==null||S.apply(this,$)},l.__keydown=function(...$){var S;(S=r(s))==null||S.apply(this,$)};var a=_(l);{var u=$=>{cc($,{})};L(a,$=>{e.item.selected&&$(u)})}var f=P(a,2);let v;var p=_(f);{var y=$=>{var S=ze();let T=g(()=>e.item.valueComponent);var E=ge(S);Pi(E,()=>r(T),(V,k)=>{k(V,ys(()=>{var I;return(I=e.item.valueComponentParams)!=null?I:{}}))}),b($,S)},w=$=>{var S=rs();B(()=>ye(S,e.item.label)),b($,S)};L(p,$=>{e.item.valueComponent?$(y):$(w,!1)})}h(f),h(l),rt(l,$=>o(o()[e.item.id]=$,!0),()=>{var $;return($=o())==null?void 0:$[e.item.id]}),B(($,S)=>{var T;d=te(l,1,"item",null,d,$),Fe(l,"aria-label",(T=e.item.ariaLabel)!=null?T:e.item.label),Fe(l,"data-testid",e.item.id),v=te(f,1,"menu-item-value",null,v,S)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),b(t,l),U()}ct(["click","keydown"]);var Ur={"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 $3=(t,e)=>{R1(t,e.returnFromSubMenu,e.closeSettingsMenu)},y3=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},x3=(t,e)=>{Vd(t)&&(xr(t),e.returnFromSubMenu())},w3=A('<div><ul role="menu"><li role="menuitem" tabindex="0" data-testid="return-to-settings-menu"><!> <p class="title svelte-7dfsuh"> </p></li> <!></ul></div>'),S3={hash:"svelte-7dfsuh",code:`.sub-menu.svelte-7dfsuh {--item-padding-vertical-mobile: 16px;--item-padding-vertical: 7px;--item-label-line-height: 18px;
290
+ .sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function dv(t,e){U(e,!0),G(t,b3);let i=m(e,"isMobile",3,!1);var o=_3();let n;o.__click=[m3,e],o.__keydown=[v3,e];var s=_(o);{var l=w=>{sc(w,{})};V(s,w=>{e.item.selected&&w(l)})}var d=P(s,2);let a;var u=_(d);{var f=w=>{var $=qe(),C=he($);ki(C,()=>e.item.valueComponent,(T,I)=>{I(T,bs(()=>{var M;return(M=e.item.valueComponentParams)!=null?M:{}}))}),b(w,$)},v=w=>{var $=g3();let C;var T=_($,!0);h($),B(I=>{var M;C=te($,1,"label svelte-1t7rx2m",null,C,I),$e(T,(M=e.item.label)!=null?M:e.item.value)},[()=>({mobile:i()})]),b(w,$)};V(u,w=>{e.item.valueComponent?w(f):w(v,!1)})}var p=P(u,2);{var y=w=>{var $=h3(),C=_($,!0);h($),B(()=>$e(C,e.item.sublabel)),b(w,$)};V(p,w=>{e.item.sublabel&&w(y)})}h(d),h(o),B((w,$,C)=>{n=te(o,1,"item",null,n,w),ze(o,"data-value",e.item.value),ze(o,"aria-label",$),ze(o,"data-testid",e.item.dataTestid),a=te(d,1,"menu-item-value svelte-1t7rx2m",null,a,C),ze(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>{var w,$;return($=(w=e.item.ariaLabel)!=null?w:e.item.label)!=null?$:e.item.value.toString()},()=>({"submenu-value-mobile":i()})]),b(t,o),z()}ft(["click","keydown"]);var $3=A('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function cv(t,e){U(e,!0);let i=m(e,"isMobile",3,!1),o=m(e,"refMenuItems",15),n=g(()=>()=>e.openSubMenuList(e.item.children)),s=g(()=>$=>Tu($,r(n)));var l=$3();let d;l.__click=function(...$){var C;(C=r(n))==null||C.apply(this,$)},l.__keydown=function(...$){var C;(C=r(s))==null||C.apply(this,$)};var a=_(l);{var u=$=>{sc($,{})};V(a,$=>{e.item.selected&&$(u)})}var f=P(a,2);let v;var p=_(f);{var y=$=>{var C=qe();let T=g(()=>e.item.valueComponent);var I=he(C);ki(I,()=>r(T),(M,k)=>{k(M,bs(()=>{var E;return(E=e.item.valueComponentParams)!=null?E:{}}))}),b($,C)},w=$=>{var C=os();B(()=>$e(C,e.item.label)),b($,C)};V(p,$=>{e.item.valueComponent?$(y):$(w,!1)})}h(f),h(l),nt(l,$=>o(o()[e.item.id]=$,!0),()=>{var $;return($=o())==null?void 0:$[e.item.id]}),B(($,C)=>{var T;d=te(l,1,"item",null,d,$),ze(l,"aria-label",(T=e.item.ariaLabel)!=null?T:e.item.label),ze(l,"data-testid",e.item.id),v=te(f,1,"menu-item-value",null,v,C)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),b(t,l),z()}ft(["click","keydown"]);var Wr={"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 x3=(t,e)=>{R1(t,e.returnFromSubMenu,e.closeSettingsMenu)},w3=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},S3=(t,e)=>{Pd(t)&&(wr(t),e.returnFromSubMenu())},C3=A('<div><ul role="menu"><li role="menuitem" tabindex="0" data-testid="return-to-settings-menu"><!> <p class="title svelte-7dfsuh"> </p></li> <!></ul></div>'),T3={hash:"svelte-7dfsuh",code:`.sub-menu.svelte-7dfsuh {--item-padding-vertical-mobile: 16px;--item-padding-vertical: 7px;--item-label-line-height: 18px;
293
291
  /*\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 {
294
292
  /**
295
293
  * \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.
@@ -299,14 +297,14 @@ Try switching the\xA0quality to\xA0Auto.`},y1=bb;var xs=new Map;xs.set(hl.Interf
299
297
  var(--edge-item-padding-vertical-mobile) + var(--item-padding-vertical-mobile) + var(--item-label-line-height) +
300
298
  1px
301
299
  );}.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,
302
- .item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function uv(t,e){F(e,!0),q(t,S3);let[i,o]=He(),n=()=>C(v,"$isFullscreen",i),s=()=>C(p,"$playerSize",i),l=m(e,"isMobile",3,!1),d=m(e,"playerControlsHeight",3,0),a=m(e,"ariaLabelReturnFromSubMenu",19,()=>K("aria_label_submenu_back")),u=m(e,"listRef",15);Dt(()=>{let j=e.items.findIndex(ce=>ce.selected);u().children[j+1].focus()});let f=ke(),v=f.ui.isFullscreen,p=f.ui.playerSize,y=Y(void 0),w=Y(0),$=Y(0),S=g(()=>l()&&n()?`max-height: ${Math.round(s().height*.6)}px`:l()?"":`max-height: ${s().height-32-r($)-d()}px; overflow: auto;`),T=g(()=>Math.max(e.minWidth,r(w)));var E=w3();let V;var k=_(E);let I;k.__keydown=[$3,e];var R=_(k);let Z;R.__click=[y3,e],R.__keydown=[x3,e];var D=_(R);Gs(D,{direction:"left"});var H=P(D,2),W=_(H,!0);h(H),h(R),rt(R,j=>O(y,j),()=>r(y));var X=P(R,2);ki(X,17,()=>e.items,vd,(j,ce)=>{var re=ze(),pe=ge(re);{var xe=ie=>{lv(ie,{get item(){return r(ce)},get isMobile(){return l()}})},fe=(ie,Pe)=>{{var ee=N=>{dv(N,{get isMobile(){return l()},get item(){return r(ce)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};L(ie,N=>{r(ce).type==="OPEN_SUB_MENU"&&N(ee)},Pe)}};L(pe,ie=>{r(ce).type==="SELECT_VALUE"?ie(xe):ie(fe,!1)})}b(j,re)}),h(k),rt(k,j=>u(j),()=>u()),h(E),B((j,ce,re)=>{V=te(E,1,"sub-menu menu svelte-7dfsuh",null,V,j),Fe(E,"data-testid",`sub-menu-${e.id}`),st(E,`min-width: ${r(T)}px`),I=te(k,1,"items svelte-7dfsuh",null,I,ce),st(k,r(S)),Z=te(R,1,"item header back svelte-7dfsuh",null,Z,re),Fe(R,"aria-label",a()),ye(W,e.title)},[()=>({desktop:!l(),mobile:l()}),()=>({mobile:l()}),()=>({mobile:l()})]),or(R,"clientWidth",j=>O(w,j)),or(R,"clientHeight",j=>O($,j)),b(t,E),U(),o()}ct(["keydown","click"]);var g0=require("@vkontakte/videoplayer-shared/es2015");var C3=(t,e)=>Su(t,e()),T3=(t,e)=>{t.stopPropagation(),e()()},E3=A('<div class="value svelte-1ikfjte"> </div>'),I3=A('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),k3={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function pv(t,e){F(e,!0),q(t,k3);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,g0.noop),n=m(e,"valueComponent",3,void 0),s=m(e,"ref",15);var l=I3();let d;l.__click=[T3,o],l.__keydown=[C3,o];var a=_(l),u=_(a);{var f=T=>{Va(T,{get icon(){return e.icon}})},v=T=>{var E=ze();let V=g(()=>e.icon);var k=ge(E);Pi(k,()=>r(V),(I,R)=>{R(I,{})}),b(T,E)};L(u,T=>{typeof e.icon=="string"?T(f):T(v,!1)})}h(a);var p=P(a,2),y=_(p,!0);h(p);var w=P(p,2);{var $=T=>{var E=ze();let V=g(n);var k=ge(E);Pi(k,()=>r(V),(I,R)=>{R(I,{})}),b(T,E)},S=T=>{var E=E3(),V=_(E,!0);h(E),B(()=>ye(V,e.value)),b(T,E)};L(w,T=>{n()?T($):T(S,!1)})}h(l),rt(l,T=>s(T),()=>s()),B(T=>{d=te(l,1,"item",null,d,T),Fe(l,"aria-label",e.ariaLabel),Fe(l,"data-testid",e.id),ye(y,e.label)},[()=>({mobile:i()})]),b(t,l),U()}ct(["click","keydown"]);var fv=require("@vkontakte/videoplayer-shared/es2015");var P3=(t,e)=>{Sl(t,()=>e())},A3=A('<div class="icon icon-error-stub"><div class="inner"></div></div>'),M3=A('<img class="icon" aria-hidden="true"/>'),L3=A('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),V3={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function mv(t,e){F(e,!0),q(t,V3);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,fv.noop),n=m(e,"closeSettings",3,fv.noop),s=Y(!1),l=()=>{O(s,!0)},d=S=>{S==null||S.stopPropagation(),o()(),n()()};var a=L3();let u;a.__click=d,a.__keydown=[P3,d];var f=_(a),v=_(f);{var p=S=>{var T=ze(),E=ge(T);{var V=I=>{var R=A3();b(I,R)},k=I=>{var R=M3();B(()=>Fe(R,"src",e.icon)),Ct("error",R,l),ca(R),b(I,R)};L(E,I=>{r(s)?I(V):I(k,!1)})}b(S,T)},y=S=>{var T=ze();let E=g(()=>e.icon);var V=ge(T);Pi(V,()=>r(E),(k,I)=>{I(k,{})}),b(S,T)};L(v,S=>{typeof e.icon=="string"?S(p):S(y,!1)})}h(f);var w=P(f,2),$=_(w,!0);h(w),h(a),B(S=>{var T;u=te(a,1,"item",null,u,S),Fe(a,"aria-label",(T=e.ariaLabel)!=null?T:e.label),Fe(a,"data-testid",e.id),ye($,e.label)},[()=>({mobile:i()})]),b(t,a),U()}ct(["click","keydown"]);var h0=require("@vkontakte/videoplayer-shared/es2015");var R3=A('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),N3={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 vv(t,e){q(t,N3);let i=m(e,"enabled",3,!1);var o=R3(),n=_(o);let s;Te(2),h(o),B(l=>s=te(n,1,"toggle svelte-17wbjko",null,s,l),[()=>({on:i()})]),b(t,o)}var O3=(t,e,i)=>{N1(t,e(),o=>i()(o))},B3=(t,e,i)=>{t.stopPropagation(),e()(!i())},D3=A('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),H3=A('<li role="menuitem" tabindex="0"><!></li>');function gv(t,e){F(e,!0);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,h0.noop),n=m(e,"enabled",3,!1),s=m(e,"tooltipText",3,void 0),l=m(e,"maxTooltipWidth",3,void 0);var d=H3();let a;d.__click=[B3,o,n],d.__keydown=[O3,n,o];var u=_(d);ka(u,{get content(){return s()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return l()},children:(f,v)=>{var p=D3();let y;var w=_(p),$=_(w);{var S=I=>{Va(I,{get icon(){return e.icon}})},T=I=>{var R=ze();let Z=g(()=>e.icon);var D=ge(R);Pi(D,()=>r(Z),(H,W)=>{W(H,{})}),b(I,R)};L($,I=>{typeof e.icon=="string"?I(S):I(T,!1)})}h(w);var E=P(w,2),V=_(E,!0);h(E);var k=P(E,2);vv(k,{get enabled(){return n()}}),h(p),B(I=>{y=te(p,1,"switch-wrapper",null,y,I),ye(V,e.label)},[()=>({mobile:i()})]),b(f,p)},$$slots:{default:!0}}),h(d),B(f=>{var v;a=te(d,1,"item switch-item",null,a,f),Fe(d,"aria-label",(v=e.ariaLabel)!=null?v:e.label),Fe(d,"data-testid",e.id)},[()=>({mobile:i()})]),b(t,d),U()}ct(["click","keydown"]);var pc=require("@vkontakte/videoplayer-shared/es2015");var _0=()=>{let t=Y(ri([])),e=g(()=>(r(t).length?r(t).at(-1):null)||null);return{get current(){return r(e)},pushSubMenu:i=>{r(t).push(i)},popSubMenu:()=>{O(t,r(t).slice(0,-1),!0)},popAllSubMenus:()=>{O(t,[],!0)}}};var F3=A('<div class="quality-icon svelte-t2qk8t"><!></div>'),U3=A('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),z3={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 Fa(t,e){F(e,!0),q(t,z3);let i=m(e,"isSubCase",3,!1),o=g(()=>Iu(e.quality));var n=U3(),s=_(n);let l;var d=_(s,!0);h(s);var a=P(s,2);{var u=f=>{var v=F3();let p=g(()=>r(o));var y=_(v);Pi(y,()=>r(p),(w,$)=>{$(w,{})}),h(v),b(f,v)};L(a,f=>{r(o)&&!e.isMobile&&f(u)})}h(n),B(f=>{l=te(s,1,"svelte-t2qk8t",null,l,f),ye(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),b(t,n),U()}var x0=require("@vkontakte/videoplayer-shared/es2015");var hv=require("@vkontakte/videoplayer-core/es2015");var b0=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},$0=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=b0({quality:t,availableQualities:e});return i?t===hv.VideoQuality.INVARIANT?K("auto_quality_invariant"):K("auto_quality",{actual:o}):o},y0=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===hv.VideoQuality.INVARIANT?i:`${i}${b0({quality:t,availableQualities:e})}`:"...";var W3=A('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),K3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function Vl(t,e){F(e,!0),q(t,K3);let[i,o]=He(),n=()=>C(a,"$currentQuality$",i),s=()=>C(u,"$availableQualities$",i),l=()=>C(f,"$isMobile$",i),d=ke(),a=d.state.currentQuality$,u=d.state.availableQualities$,f=d.ui.isMobile,v=" \xB7 ",p=g(()=>e.prefix+(e.selected&&n()!==x0.VideoQuality.INVARIANT?v:"")),y=g(()=>y0({prefix:r(p),quality:n(),availableQualities:s(),onlyPrefix:!e.selected}));var w=W3(),$=_(w);let S=g(()=>e.selected?n():void 0);Fa($,{get quality(){return r(S)},get label(){return r(y)},get isMobile(){return l()},isSubCase:!0}),h(w),b(t,w),U(),o()}var q3=t=>{let e=t.join("|"),i="<(?<keyhtml>.*?)(?<propshtml> .*?)?>(?<childrenhtml>.*?)</\\k<keyhtml>>",o=`{(?<keyi18n>${e})}(?<childreni18n>.*?){/\\k<keyi18n>}`,n="<(?<keyhtmlself>.*?)(?<propshtmlself> .*?)?/?>",s=`{(?<keyi18nself>${e})}`;return new RegExp(`${i}|${o}|${n}|${s}`,"g")},G3={br:!0,span:!0},_v=(t,e={})=>{var d,a,u,f,v,p,y;if(!t)return t;let i=z(z({},G3),e),o=Object.keys(i);if(!o.length)return t;let n=q3(o),s=[],l=0;for(let w of t.matchAll(n)){let $=w[0],S=((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[S]){s.push(t.slice(l,T)),l=T+$.length;continue}let E=(v=w.groups)!=null&&v.childrenhtml?_v(w.groups.childrenhtml,i):"",V=(p=w.groups)!=null&&p.childrenhtml?$.replace(new RegExp((y=w.groups)==null?void 0:y.childrenhtml),()=>E||""):$;s.push(t.slice(l,T),V),l=T+$.length}return l===0?t:(s.push(t.slice(l)),s.join(""))};function uc(t,e){F(e,!1);let i=m(e,"message",8),o=_v(i());Br();var n=ze(),s=ge(n);{var l=d=>{var a=ze(),u=ge(a);gd(u,()=>o),b(d,a)};L(s,d=>{o&&d(l)})}b(t,n),U()}var Q3=A('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),j3={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 bv(t,e){F(e,!1),q(t,j3),Br();var i=Q3(),o=_(i);let n=Vr(()=>K("quality_applience",{action:`<span>${K("quality_applience_action")}</span>`}));uc(o,{get message(){return r(n)}}),h(i),b(t,i),U()}var S0=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:Vl,valueComponentParams:{prefix:K("other_quality"),selected:o},children:"QUALITY"}},$v=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:K("auto_quality_limit"),valueComponent:e?Vl:void 0,valueComponentParams:{prefix:K("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),C0=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:bv,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),yv=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"QUALITY_HIGH",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:K("high_quality"),valueComponent:t?Vl:void 0,valueComponentParams:{prefix:K("high_quality"),selected:i},sublabel:K("high_quality_description")}),xv=({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:K("traffic_saving_quality"),valueComponent:t?Vl:void 0,valueComponentParams:{prefix:K("traffic_saving_quality"),selected:i},sublabel:K("traffic_saving_quality_description")});var Ku=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),qu=(t,e)=>{var l;if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=(l=Nu(i))!=null?l:i),o&&i&&n){let d=e.filter(a=>a.label===o&&a.language===i);if(d.length===1)return K("audio_stream_display_language_label",{language:n,label:o});{let a=Ku(t,d);return K("audio_stream_display_language_label_index",{language:n,label:o,index:a})}}if(o){let d=e.filter(a=>a.label===o);if(d.length===1)return o;{let a=Ku(t,d);return K("audio_stream_display_label_index",{label:o,index:a})}}if(i&&n){let d=e.filter(a=>a.language===i);if(d.length===1)return n;{let a=Ku(t,d);return K("audio_stream_display_language_index",{language:n,index:a})}}let s=Ku(t,e);return K("audio_stream_display_unknown",{index:s})};var Y3={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,s=[];return i&&s.push({handler:$v,selected:e&&!o&&!n||!1}),s.push({handler:xv,selected:o},{handler:yv,selected:n}),{title:K("submenu_quality"),id:"QUALITY_DETAILS",items:[C0(t),...s.map(({handler:l,selected:d})=>l({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),S0(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:K("submenu_quality"),closeSettingsMenu:t,items:i.map(n=>({type:"SELECT_VALUE",value:n.value,valueComponent:Fa,valueComponentParams:{quality:n.value,label:n.displayValue,isMobile:o,isSubCase:!0},selectItem:s=>e(s,"to-video"),selected:n.selected,label:n.displayValue}))}),QUALITY_APPLIENCE:t=>{var i,o,n;let{closeSettingsMenu:e}=t;return{id:"QUALITY_APPLIENCE",title:K("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:$v,selected:((i=fu())==null?void 0:i.type)==="auto_quality"},{handler:xv,selected:((o=fu())==null?void 0:o.type)==="traffic_saving"},{handler:yv,selected:((n=fu())==null?void 0:n.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:K("submenu_audio_languages"),closeSettingsMenu:t,items:e.map(n=>({type:"SELECT_VALUE",value:n,dataValue:n.id,selectItem:o,selected:n.id===(i==null?void 0:i.id),label:qu(n,e)}))}),PLAYBACK_RATE_SUB_MENU:({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"PLAYBACK_RATE_SUB_MENU",title:K("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:K("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i.value,selectItem:()=>e(i),selected:i.selected,label:i.displayValue,dataTestid:i.value===Bu?"sub_off":void 0}))})},T0=({subMenuId:t,context:e})=>t?[Y3[t](e)]:[];var Z3=Ee('<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 wv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Z3();Ae(o,()=>z({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 n=_(o);we(n,()=>{var s;return(s=e.children)!=null?s:de}),Te(),h(o),b(t,o)}var X3=Ee('<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 Sv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=X3();Ae(o,()=>z({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 n=_(o);we(n,()=>{var s;return(s=e.children)!=null?s:de}),Te(),h(o),b(t,o)}var J3=Ee('<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 Cv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=J3();Ae(o,()=>z({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"play-speed-icon",role:"img"},i));var n=_(o);we(n,()=>{var s;return(s=e.children)!=null?s:de}),Te(),h(o),b(t,o)}var ex=Ee('<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 Tv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=ex();Ae(o,()=>z({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"19",fill:"none","aria-hidden":"true","data-testid":"download-icon",role:"img"},i));var n=_(o);we(n,()=>{var s;return(s=e.children)!=null?s:de}),Te(),h(o),b(t,o)}var tx=Ee('<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 Ev(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=tx();Ae(o,()=>z({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"report-icon",role:"img"},i));var n=_(o);we(n,()=>{var s;return(s=e.children)!=null?s:de}),Te(),h(o),b(t,o)}var ix=Ee('<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 Gu(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=ix();Ae(o,()=>z({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"copy-icon",role:"img"},i));var n=_(o);we(n,()=>{var s;return(s=e.children)!=null?s:de}),Te(),h(o),b(t,o)}var ox=Ee('<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 Iv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=ox();Ae(o,()=>z({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"info-icon",role:"img"},i));var n=_(o);we(n,()=>{var s;return(s=e.children)!=null?s:de}),Te(),h(o),b(t,o)}var nx=A('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),rx={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function kv(t,e){F(e,!0),q(t,rx);let[i,o]=He(),n=()=>C(u,"$currentQuality$",i),s=()=>C(f,"$availableQualities$",i),l=()=>C(v,"$isAutoQualityEnabled$",i),d=()=>C(p,"$isMobile$",i),a=ke(),u=a.state.currentQuality$,f=a.state.availableQualities$,v=a.state.isAutoQualityEnabled$,p=a.ui.isMobile,y=g(()=>$0({quality:n(),availableQualities:s(),isAutoQualityEnabled:l()}));var w=nx(),$=_(w);Fa($,{get quality(){return n()},get label(){return r(y)},get isMobile(){return d()}}),h(w),b(t,w),U(),o()}var ax={QUALITY_SETTINGS:({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?K("auto_quality_option"):e)||"";return{id:"QUALITY_SETTINGS",type:"OPEN_SUB_MENU",ariaLabel:K("aria_label_menu_quality",{actual:o}),icon:Fd,label:K("menu_quality"),value:e,valueComponent:kv,weight:Ur["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:Ur["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:K("aria_label_submenu_traffic_saving"),icon:wv,label:K("menu_traffic_saving"),enabled:t,tooltipText:K("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=qu(t,e);return{id:"AUDIO_LANGUAGES",weight:Ur["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:K("aria_label_menu_audio_languages",{actual:i}),icon:Sv,label:K("menu_audio_languages"),value:i,children:"AUDIO_LANGUAGES"}},PLAYBACK_RATE:({availablePlaybackRates:t,currentPlaybackRate:e})=>{var o;let i=((o=t.find(n=>n.value===e))==null?void 0:o.displayValue)||"";return{id:"PLAYBACK_RATE",weight:Ur["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:K("aria_label_menu_rate",{actual:i}),icon:Cv,label:K("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:Ur["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:K("aria_label_menu_subtitle",{actual:t.displayValue}),icon:Ud,label:K("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:Ur.download,type:"CLICK",onClick:t,label:K("download_video_caption"),ariaLabel:K("aria_label_menu_download"),icon:Tv}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:Ur.report,type:"CLICK",onClick:t,label:K("menu_report"),ariaLabel:`${K("menu_report")}. ${K("aria_label_new_tab_alert")}`,icon:Ev,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:Ur["copy-data"],type:"CLICK",onClick:t,label:K("menu_copy_debug"),ariaLabel:K("menu_copy_debug"),icon:Gu,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:Ur["save-trace-info"],type:"CLICK",onClick:t,label:K("menu_save_debug"),ariaLabel:K("menu_save_debug"),icon:Gu,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t})=>({id:"DEBUG_INFO",weight:Ur["debug-info"],type:"CLICK",onClick:t,ariaLabel:K("aria_label_menu_debug_overlay"),label:K("menu_debug_overlay"),icon:Iv,isHiddenFor:["desktop"]})},E0=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>ax[n](e)),...i.map(n=>Bt(z({},n),{isAdditional:!0}))].filter(n=>{var s,l,d;return!((s=n==null?void 0:n.isHiddenFor)!=null&&s.length)||!((l=n==null?void 0:n.isHiddenFor)!=null&&l.includes("desktop"))&&!o||!((d=n==null?void 0:n.isHiddenFor)!=null&&d.includes("mobile"))&&o}).sort(Sa)};var dx=(t,e)=>{wu(t,e)},cx=A('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),ux=A('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),px=A("<div><!> <!></div>"),fx={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 {
300
+ .item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function pv(t,e){U(e,!0),G(t,T3);let[i,o]=Ue(),n=()=>S(v,"$isFullscreen",i),s=()=>S(p,"$playerSize",i),l=m(e,"isMobile",3,!1),d=m(e,"playerControlsHeight",3,0),a=m(e,"ariaLabelReturnFromSubMenu",19,()=>q("aria_label_submenu_back")),u=m(e,"listRef",15);zt(()=>{let j=e.items.findIndex(ce=>ce.selected);u().children[j+1].focus()});let f=Ie(),v=f.ui.isFullscreen,p=f.ui.playerSize,y=Y(void 0),w=Y(0),$=Y(0),C=g(()=>l()&&n()?`max-height: ${Math.round(s().height*.6)}px`:l()?"":`max-height: ${s().height-32-r($)-d()}px; overflow: auto;`),T=g(()=>Math.max(e.minWidth,r(w)));var I=C3();let M;var k=_(I);let E;k.__keydown=[x3,e];var R=_(k);let X;R.__click=[w3,e],R.__keydown=[S3,e];var D=_(R);Ks(D,{direction:"left"});var H=P(D,2),K=_(H,!0);h(H),h(R),nt(R,j=>O(y,j),()=>r(y));var J=P(R,2);Ei(J,17,()=>e.items,ud,(j,ce)=>{var oe=qe(),pe=he(oe);{var be=ke=>{dv(ke,{get item(){return r(ce)},get isMobile(){return l()}})},fe=(ke,ne)=>{{var Le=se=>{cv(se,{get isMobile(){return l()},get item(){return r(ce)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};V(ke,se=>{r(ce).type==="OPEN_SUB_MENU"&&se(Le)},ne)}};V(pe,ke=>{r(ce).type==="SELECT_VALUE"?ke(be):ke(fe,!1)})}b(j,oe)}),h(k),nt(k,j=>u(j),()=>u()),h(I),B((j,ce,oe)=>{M=te(I,1,"sub-menu menu svelte-7dfsuh",null,M,j),ze(I,"data-testid",`sub-menu-${e.id}`),rt(I,`min-width: ${r(T)}px`),E=te(k,1,"items svelte-7dfsuh",null,E,ce),rt(k,r(C)),X=te(R,1,"item header back svelte-7dfsuh",null,X,oe),ze(R,"aria-label",a()),$e(K,e.title)},[()=>({desktop:!l(),mobile:l()}),()=>({mobile:l()}),()=>({mobile:l()})]),sr(R,"clientWidth",j=>O(w,j)),sr(R,"clientHeight",j=>O($,j)),b(t,I),z(),o()}ft(["keydown","click"]);var g_=require("@vkontakte/videoplayer-shared/es2015");var I3=(t,e)=>Tu(t,e()),E3=(t,e)=>{t.stopPropagation(),e()()},k3=A('<div class="value svelte-1ikfjte"> </div>'),P3=A('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),A3={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function fv(t,e){U(e,!0),G(t,A3);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,g_.noop),n=m(e,"valueComponent",3,void 0),s=m(e,"ref",15);var l=P3();let d;l.__click=[E3,o],l.__keydown=[I3,o];var a=_(l),u=_(a);{var f=T=>{La(T,{get icon(){return e.icon}})},v=T=>{var I=qe();let M=g(()=>e.icon);var k=he(I);ki(k,()=>r(M),(E,R)=>{R(E,{})}),b(T,I)};V(u,T=>{typeof e.icon=="string"?T(f):T(v,!1)})}h(a);var p=P(a,2),y=_(p,!0);h(p);var w=P(p,2);{var $=T=>{var I=qe();let M=g(n);var k=he(I);ki(k,()=>r(M),(E,R)=>{R(E,{})}),b(T,I)},C=T=>{var I=k3(),M=_(I,!0);h(I),B(()=>$e(M,e.value)),b(T,I)};V(w,T=>{n()?T($):T(C,!1)})}h(l),nt(l,T=>s(T),()=>s()),B(T=>{d=te(l,1,"item",null,d,T),ze(l,"aria-label",e.ariaLabel),ze(l,"data-testid",e.id),$e(y,e.label)},[()=>({mobile:i()})]),b(t,l),z()}ft(["click","keydown"]);var mv=require("@vkontakte/videoplayer-shared/es2015");var M3=(t,e)=>{wl(t,()=>e())},L3=A('<div class="icon icon-error-stub"><div class="inner"></div></div>'),V3=A('<img class="icon" aria-hidden="true"/>'),R3=A('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),N3={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function vv(t,e){U(e,!0),G(t,N3);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,mv.noop),n=m(e,"closeSettings",3,mv.noop),s=Y(!1),l=()=>{O(s,!0)},d=C=>{C==null||C.stopPropagation(),o()(),n()()};var a=R3();let u;a.__click=d,a.__keydown=[M3,d];var f=_(a),v=_(f);{var p=C=>{var T=qe(),I=he(T);{var M=E=>{var R=L3();b(E,R)},k=E=>{var R=V3();B(()=>ze(R,"src",e.icon)),It("error",R,l),da(R),b(E,R)};V(I,E=>{r(s)?E(M):E(k,!1)})}b(C,T)},y=C=>{var T=qe();let I=g(()=>e.icon);var M=he(T);ki(M,()=>r(I),(k,E)=>{E(k,{})}),b(C,T)};V(v,C=>{typeof e.icon=="string"?C(p):C(y,!1)})}h(f);var w=P(f,2),$=_(w,!0);h(w),h(a),B(C=>{var T;u=te(a,1,"item",null,u,C),ze(a,"aria-label",(T=e.ariaLabel)!=null?T:e.label),ze(a,"data-testid",e.id),$e($,e.label)},[()=>({mobile:i()})]),b(t,a),z()}ft(["click","keydown"]);var h_=require("@vkontakte/videoplayer-shared/es2015");var O3=A('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),B3={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 gv(t,e){G(t,B3);let i=m(e,"enabled",3,!1);var o=O3(),n=_(o);let s;Ce(2),h(o),B(l=>s=te(n,1,"toggle svelte-17wbjko",null,s,l),[()=>({on:i()})]),b(t,o)}var D3=(t,e,i)=>{N1(t,e(),o=>i()(o))},H3=(t,e,i)=>{t.stopPropagation(),e()(!i())},F3=A('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),U3=A('<li role="menuitem" tabindex="0"><!></li>');function hv(t,e){U(e,!0);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,h_.noop),n=m(e,"enabled",3,!1),s=m(e,"tooltipText",3,void 0),l=m(e,"maxTooltipWidth",3,void 0);var d=U3();let a;d.__click=[H3,o,n],d.__keydown=[D3,n,o];var u=_(d);Ea(u,{get content(){return s()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return l()},children:(f,v)=>{var p=F3();let y;var w=_(p),$=_(w);{var C=E=>{La(E,{get icon(){return e.icon}})},T=E=>{var R=qe();let X=g(()=>e.icon);var D=he(R);ki(D,()=>r(X),(H,K)=>{K(H,{})}),b(E,R)};V($,E=>{typeof e.icon=="string"?E(C):E(T,!1)})}h(w);var I=P(w,2),M=_(I,!0);h(I);var k=P(I,2);gv(k,{get enabled(){return n()}}),h(p),B(E=>{y=te(p,1,"switch-wrapper",null,y,E),$e(M,e.label)},[()=>({mobile:i()})]),b(f,p)},$$slots:{default:!0}}),h(d),B(f=>{var v;a=te(d,1,"item switch-item",null,a,f),ze(d,"aria-label",(v=e.ariaLabel)!=null?v:e.label),ze(d,"data-testid",e.id)},[()=>({mobile:i()})]),b(t,d),z()}ft(["click","keydown"]);var lc=require("@vkontakte/videoplayer-shared/es2015");var __=()=>{let t=Y(ri([])),e=g(()=>(r(t).length?r(t).at(-1):null)||null);return{get current(){return r(e)},pushSubMenu:i=>{r(t).push(i)},popSubMenu:()=>{O(t,r(t).slice(0,-1),!0)},popAllSubMenus:()=>{O(t,[],!0)}}};var z3=A('<div class="quality-icon svelte-t2qk8t"><!></div>'),W3=A('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),K3={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 Ha(t,e){U(e,!0),G(t,K3);let i=m(e,"isSubCase",3,!1),o=g(()=>Pu(e.quality));var n=W3(),s=_(n);let l;var d=_(s,!0);h(s);var a=P(s,2);{var u=f=>{var v=z3();let p=g(()=>r(o));var y=_(v);ki(y,()=>r(p),(w,$)=>{$(w,{})}),h(v),b(f,v)};V(a,f=>{r(o)&&!e.isMobile&&f(u)})}h(n),B(f=>{l=te(s,1,"svelte-t2qk8t",null,l,f),$e(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),b(t,n),z()}var x_=require("@vkontakte/videoplayer-shared/es2015");var _v=require("@vkontakte/videoplayer-core/es2015");var b_=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},$_=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=b_({quality:t,availableQualities:e});return i?t===_v.VideoQuality.INVARIANT?q("auto_quality_invariant"):q("auto_quality",{actual:o}):o},y_=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===_v.VideoQuality.INVARIANT?i:`${i}${b_({quality:t,availableQualities:e})}`:"...";var q3=A('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),G3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function Ll(t,e){U(e,!0),G(t,G3);let[i,o]=Ue(),n=()=>S(a,"$currentQuality$",i),s=()=>S(u,"$availableQualities$",i),l=()=>S(f,"$isMobile$",i),d=Ie(),a=d.state.currentQuality$,u=d.state.availableQualities$,f=d.ui.isMobile,v=" \xB7 ",p=g(()=>e.prefix+(e.selected&&n()!==x_.VideoQuality.INVARIANT?v:"")),y=g(()=>y_({prefix:r(p),quality:n(),availableQualities:s(),onlyPrefix:!e.selected}));var w=q3(),$=_(w);let C=g(()=>e.selected?n():void 0);Ha($,{get quality(){return r(C)},get label(){return r(y)},get isMobile(){return l()},isSubCase:!0}),h(w),b(t,w),z(),o()}var Q3=t=>{let e=t.join("|"),i="<(?<keyhtml>.*?)(?<propshtml> .*?)?>(?<childrenhtml>.*?)</\\k<keyhtml>>",o=`{(?<keyi18n>${e})}(?<childreni18n>.*?){/\\k<keyi18n>}`,n="<(?<keyhtmlself>.*?)(?<propshtmlself> .*?)?/?>",s=`{(?<keyi18nself>${e})}`;return new RegExp(`${i}|${o}|${n}|${s}`,"g")},j3={br:!0,span:!0},bv=(t,e={})=>{var d,a,u,f,v,p,y;if(!t)return t;let i=W(W({},j3),e),o=Object.keys(i);if(!o.length)return t;let n=Q3(o),s=[],l=0;for(let w of t.matchAll(n)){let $=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+$.length;continue}let I=(v=w.groups)!=null&&v.childrenhtml?bv(w.groups.childrenhtml,i):"",M=(p=w.groups)!=null&&p.childrenhtml?$.replace(new RegExp((y=w.groups)==null?void 0:y.childrenhtml),()=>I||""):$;s.push(t.slice(l,T),M),l=T+$.length}return l===0?t:(s.push(t.slice(l)),s.join(""))};function ac(t,e){U(e,!1);let i=m(e,"message",8),o=bv(i());Hr();var n=qe(),s=he(n);{var l=d=>{var a=qe(),u=he(a);pd(u,()=>o),b(d,a)};V(s,d=>{o&&d(l)})}b(t,n),z()}var Y3=A('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),Z3={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 $v(t,e){U(e,!1),G(t,Z3),Hr();var i=Y3(),o=_(i);let n=Nr(()=>q("quality_applience",{action:`<span>${q("quality_applience_action")}</span>`}));ac(o,{get message(){return r(n)}}),h(i),b(t,i),z()}var S_=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:Ll,valueComponentParams:{prefix:q("other_quality"),selected:o},children:"QUALITY"}},yv=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:q("auto_quality_limit"),valueComponent:e?Ll:void 0,valueComponentParams:{prefix:q("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),C_=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:$v,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),xv=({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?Ll:void 0,valueComponentParams:{prefix:q("high_quality"),selected:i},sublabel:q("high_quality_description")}),wv=({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?Ll:void 0,valueComponentParams:{prefix:q("traffic_saving_quality"),selected:i},sublabel:q("traffic_saving_quality_description")});var Gu=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),Qu=(t,e)=>{var l;if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=(l=Bu(i))!=null?l:i),o&&i&&n){let d=e.filter(a=>a.label===o&&a.language===i);if(d.length===1)return q("audio_stream_display_language_label",{language:n,label:o});{let a=Gu(t,d);return q("audio_stream_display_language_label_index",{language:n,label:o,index:a})}}if(o){let d=e.filter(a=>a.label===o);if(d.length===1)return o;{let a=Gu(t,d);return q("audio_stream_display_label_index",{label:o,index:a})}}if(i&&n){let d=e.filter(a=>a.language===i);if(d.length===1)return n;{let a=Gu(t,d);return q("audio_stream_display_language_index",{language:n,index:a})}}let s=Gu(t,e);return q("audio_stream_display_unknown",{index:s})};var X3={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,s=[];return i&&s.push({handler:yv,selected:e&&!o&&!n||!1}),s.push({handler:wv,selected:o},{handler:xv,selected:n}),{title:q("submenu_quality"),id:"QUALITY_DETAILS",items:[C_(t),...s.map(({handler:l,selected:d})=>l({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),S_(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:q("submenu_quality"),closeSettingsMenu:t,items:i.map(n=>({type:"SELECT_VALUE",value:n.value,valueComponent:Ha,valueComponentParams:{quality:n.value,label:n.displayValue,isMobile:o,isSubCase:!0},selectItem:s=>e(s,"to-video"),selected:n.selected,label:n.displayValue}))}),QUALITY_APPLIENCE:t=>{var i,o,n;let{closeSettingsMenu:e}=t;return{id:"QUALITY_APPLIENCE",title:q("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:yv,selected:((i=mu())==null?void 0:i.type)==="auto_quality"},{handler:wv,selected:((o=mu())==null?void 0:o.type)==="traffic_saving"},{handler:xv,selected:((n=mu())==null?void 0:n.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:q("submenu_audio_languages"),closeSettingsMenu:t,items:e.map(n=>({type:"SELECT_VALUE",value:n,dataValue:n.id,selectItem:o,selected:n.id===(i==null?void 0:i.id),label:Qu(n,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===Hu?"sub_off":void 0}))})},T_=({subMenuId:t,context:e})=>t?[X3[t](e)]:[];var J3=Te('<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 Sv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=J3();Pe(o,()=>W({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 n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Ce(),h(o),b(t,o)}var ex=Te('<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 Cv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=ex();Pe(o,()=>W({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 n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Ce(),h(o),b(t,o)}var tx=Te('<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 Tv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=tx();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"play-speed-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Ce(),h(o),b(t,o)}var ix=Te('<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 Iv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=ix();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"19",fill:"none","aria-hidden":"true","data-testid":"download-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Ce(),h(o),b(t,o)}var ox=Te('<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 Ev(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=ox();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"report-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Ce(),h(o),b(t,o)}var nx=Te('<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 ju(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=nx();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"copy-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Ce(),h(o),b(t,o)}var rx=Te('<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 kv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=rx();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"info-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Ce(),h(o),b(t,o)}var sx=A('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),ax={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function Pv(t,e){U(e,!0),G(t,ax);let[i,o]=Ue(),n=()=>S(u,"$currentQuality$",i),s=()=>S(f,"$availableQualities$",i),l=()=>S(v,"$isAutoQualityEnabled$",i),d=()=>S(p,"$isMobile$",i),a=Ie(),u=a.state.currentQuality$,f=a.state.availableQualities$,v=a.state.isAutoQualityEnabled$,p=a.ui.isMobile,y=g(()=>$_({quality:n(),availableQualities:s(),isAutoQualityEnabled:l()}));var w=sx(),$=_(w);Ha($,{get quality(){return n()},get label(){return r(y)},get isMobile(){return d()}}),h(w),b(t,w),z(),o()}var dx={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:Od,label:q("menu_quality"),value:e,valueComponent:Pv,weight:Wr["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:Wr["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:q("aria_label_submenu_traffic_saving"),icon:Sv,label:q("menu_traffic_saving"),enabled:t,tooltipText:q("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=Qu(t,e);return{id:"AUDIO_LANGUAGES",weight:Wr["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:q("aria_label_menu_audio_languages",{actual:i}),icon:Cv,label:q("menu_audio_languages"),value:i,children:"AUDIO_LANGUAGES"}},PLAYBACK_RATE:({availablePlaybackRates:t,currentPlaybackRate:e})=>{var o;let i=((o=t.find(n=>n.value===e))==null?void 0:o.displayValue)||"";return{id:"PLAYBACK_RATE",weight:Wr["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:q("aria_label_menu_rate",{actual:i}),icon:Tv,label:q("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:Wr["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:q("aria_label_menu_subtitle",{actual:t.displayValue}),icon:Bd,label:q("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:Wr.download,type:"CLICK",onClick:t,label:q("download_video_caption"),ariaLabel:q("aria_label_menu_download"),icon:Iv}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:Wr.report,type:"CLICK",onClick:t,label:q("menu_report"),ariaLabel:`${q("menu_report")}. ${q("aria_label_new_tab_alert")}`,icon:Ev,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:Wr["copy-data"],type:"CLICK",onClick:t,label:q("menu_copy_debug"),ariaLabel:q("menu_copy_debug"),icon:ju,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:Wr["save-trace-info"],type:"CLICK",onClick:t,label:q("menu_save_debug"),ariaLabel:q("menu_save_debug"),icon:ju,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t})=>({id:"DEBUG_INFO",weight:Wr["debug-info"],type:"CLICK",onClick:t,ariaLabel:q("aria_label_menu_debug_overlay"),label:q("menu_debug_overlay"),icon:kv,isHiddenFor:["desktop"]})},I_=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>dx[n](e)),...i.map(n=>Ut(W({},n),{isAdditional:!0}))].filter(n=>{var s,l,d;return!((s=n==null?void 0:n.isHiddenFor)!=null&&s.length)||!((l=n==null?void 0:n.isHiddenFor)!=null&&l.includes("desktop"))&&!o||!((d=n==null?void 0:n.isHiddenFor)!=null&&d.includes("mobile"))&&o}).sort(wa)};var ux=(t,e)=>{Cu(t,e)},px=A('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),fx=A('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),mx=A("<div><!> <!></div>"),vx={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 {
303
301
  /* \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),
304
302
  .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),
305
303
  .settings-menu.svelte-17or3al .switch-wrapper {padding:0 32px 0 18px;}.settings-menu.svelte-17or3al .item.mobile:not(.switch-item),
306
- .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 fc(t,e){F(e,!0),q(t,fx);let[i,o]=He(),n=()=>C(Ge,"$settingsMenuVisible",i),s=()=>C(et,"$settingsMenuOpenedByKeyboard",i),l=()=>C(Tt,"$debugPanelVisible",i),d=()=>C(Le,"$isMobile",i),a=()=>C(gt,"$playerSize",i),u=()=>C(se,"$hasMpegSources$",i),f=()=>C(Ie,"$mobileNotReportControlHidden$",i),v=()=>C(ee,"$autoQualityLimitingAvailable$",i),p=()=>C(me,"$availableSubtitlesList$",i),y=()=>C(Ze,"$isLiveWithPlaybackSpeed",i),w=()=>C(fe,"$availableAudioStreams$",i),$=()=>C(he,"$availablePlaybackRates$",i),S=()=>C(xe,"$currentAudioStream$",i),T=()=>C(_e,"$currentPlaybackRate$",i),E=()=>C(at,"$trafficSavingEnabled",i),V=()=>C(ie,"$currentQuality$",i),k=()=>C(N,"$isAutoQualityEnabled$",i),I=()=>C(ue,"$currentSubtitle$",i),R=()=>C(Kt,"$additionalSettingsMenuItems$",i),Z=()=>C(Ue,"$isAutoQualityAvailable$",i),D=()=>C(Pe,"$availableQualities$",i),H=()=>C(bt,"$highQualityEnabled",i),W=m(e,"ref",15,void 0),X=m(e,"playerControlsHeight",3,0),j=ri({}),ce=ri({}),re=ke(),pe=At(),xe=re.state.audioStream$,fe=re.state.availableAudioStreams$,ie=re.state.currentQuality$,Pe=re.state.availableQualities$,ee=re.state.autoQualityLimitingAvailable$,N=re.state.isAutoQualityEnabled$,Ue=re.state.isAutoQualityAvailable$,_e=re.state.currentPlaybackRate$,he=re.state.availablePlaybackRates$,ue=re.state.currentSubtitle$,me=re.state.availableSubtitlesList$,ve=re.state.canDownload,se=re.state.hasMpegSources$,Ge=re.ui.settingsMenu.visible$,et=re.ui.settingsMenu.openedByBtnKeyboard$,J=re.ui.settingsMenu.ref$,Le=re.ui.isMobile,Ie=re.ui.mobileNotReportControlHidden$,Ze=re.state.canChangePlaybackSpeed$,at=re.state.trafficSavingEnabled$,bt=re.state.highQualityEnabled$,gt=re.ui.playerSize,Tt=re.ui.debugPanelVisible,Qe=re.state.isInteractiveTime$,Kt=re.ui.additionalSettingsMenuItems$,ti=re.ui.t,Yt=re.actions.internal.downloadVideo,jt=re.actions.internal.closeSettingsMenu,oe=re.actions.internal.openSettingsSubMenu,qt=re.actions.internal.closeSettingsSubMenu,$e=Y(!1),Ce=Y(void 0),le=_0();We(()=>{!n()&&le.current&&(qt(ce[le.current]),le.popAllSubMenus())}),We(()=>{n()||O(Ce,void 0)}),We(()=>{!le.current&&r(Ce)&&V1(j,r(Ce))}),We(()=>{W()&&J.set(W())});function Ne(Re){return xt(this,null,function*(){var xi;le.pushSubMenu(Re),yield ko(),oe(Re,ce[Re]);let vt=(xi=W())==null?void 0:xi.firstElementChild;vt&&Hf(vt)})}function Ke(Re){var vt;Re==null||Re.stopPropagation(),s()||(vt=e.returnFocus)==null||vt.call(e),jt(),O($e,!1)}function Ve(Re,vt){re.actions.internal.setQuality(Re,{appliesTo:vt}),Ke()}function Xe(Re){re.actions.internal.setAudioStream(Re),Ke()}function Be(Re,vt){re.actions.internal.setTrafficSavingEnabled(Re,vt),pe.features.qualityDetailsSubMenuEnabled&&Ke()}function tt(Re,vt){re.actions.internal.setHighQualityEnabled(Re,vt),Ke()}function Vt(Re){re.actions.internal.setPlaybackRate(Re),Ke()}function Qt(Re){re.actions.internal.setSubtitle(Re),Ke()}function it(){Yt()}function yi(){(0,pc.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),re.actions.internal.reportProblem(),re.actions.internal.pause()}function mi(){xl(re.actions.internal.getDebugTextData())}let nt=()=>{let Re=re.actions.internal.getTraceTextData(),vt=new Blob([...Re],{type:"application/json"}),xi=window.URL.createObjectURL(vt);_a(xi,"vk_player_trace_info","json")};function ni(){Tt.set(!l())}function Zt(){O($e,!0)}function vi(){O($e,!1)}function Lo(){return d()?`max-height: ${Math.round(a().height*.6)}px`:`max-height: ${a().height-32-X()}px; overflow: auto;`}let lo=g(()=>ve&&u()&&!f()),co=g(()=>pe.features.trafficSaving&&!f()&&v()&&!pe.features.qualityDetailsSubMenuEnabled),Ht=g(()=>p().length>0&&!f()),ui=g(()=>!!y()&&!f()),Ft=g(()=>pe.features.audioLanguages&&w().length>=2&&!f()),yt=g(()=>!f());Dt(()=>Qe.subscribe(Re=>{Re&&!d()&&!r($e)&&!s()&&Ke()}));let Hi=g(()=>{let Re=[r(yt)&&"QUALITY_SETTINGS",r(Ft)&&"AUDIO_LANGUAGES",r(ui)&&"PLAYBACK_RATE",r(Ht)&&"SUBTITLES",r(co)&&"TRAFFIC_SAVING_SWITCH",r(lo)&&"DOWNLOAD",pe.showSupport&&"SHOW_SUPPORT","COPY_DATA",pe.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(vt=>!!vt);return E0({items:Re,context:{qualityDetailsSubMenuEnabled:pe.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:$(),currentAudioStream:S(),availableAudioStreams:w(),currentPlaybackRate:T(),selectPlaybackRate:Vt,trafficSavingEnabled:E(),toggleTrafficSaving:Be,currentQuality:V()||pc.VideoQuality.INVARIANT,isAutoQualityEnabled:k()||!1,currentSubtitle:I(),isMobile:d(),onDownloadClick:it,onCopyDataClick:mi,onReportProblemClick:yi,onSaveTraceDataClick:nt,toggleShowDebugInfo:ni},additionalSettingsMenuItems:R()})}),Vo=g(()=>T0({subMenuId:le.current,context:{availablePlaybackRates:$(),selectPlaybackRate:Vt,trafficSavingEnabled:E(),toggleTrafficSaving:Be,currentQuality:V()||pc.VideoQuality.INVARIANT,isAutoQualityEnabled:k()||!1,isAutoQualityAvailable:Z()||!1,availableQualities:D(),highQualityEnabled:H(),toggleHighQuality:tt,availableAudioStreams:w(),availableSubtitlesList:p(),closeSettingsMenu:jt,currentAudioStream:S(),isMobile:d(),selectAudioLanguage:Xe,selectQuality:Ve,selectSubtitle:Qt}}));var G=px();let dt;var gi=_(G);{var li=Re=>{var vt=ux();let xi;vt.__keydown=[dx,jt];var Wt=_(vt);{var eo=Mi=>{var Pt=cx();let hi;var Xo=_(Pt),Tn=_(Xo,!0);h(Xo);var En=P(Xo,2);En.__click=Ke,h(Pt),B((pi,Ro)=>{hi=te(Pt,1,"item header svelte-17or3al",null,hi,pi),ye(Tn,Ro)},[()=>({mobile:d()}),()=>ti("submenu_settings")]),b(Mi,Pt)};L(Wt,Mi=>{d()&&Mi(eo)})}var Zo=P(Wt,2);let pn;ki(Zo,21,()=>r(Hi),Mi=>Mi.id,(Mi,Pt)=>{var hi=ze(),Xo=ge(hi);{var Tn=pi=>{pv(pi,{get isMobile(){return d()},get id(){return r(Pt).id},get icon(){return r(Pt).icon},get label(){return r(Pt).label},get ariaLabel(){return r(Pt).ariaLabel},get value(){return r(Pt).value},get valueComponent(){return r(Pt).valueComponent},onClick:()=>{Ne(r(Pt).children),O(Ce,r(Pt).id,!0)},get ref(){return j[r(Pt).id]},set ref(Ro){j[r(Pt).id]=Ro}})},En=(pi,Ro)=>{{var Hn=Li=>{mv(Li,{get isMobile(){return d()},get id(){return r(Pt).id},get onClick(){return r(Pt).onClick},get icon(){return r(Pt).icon},get label(){return r(Pt).label},get ariaLabel(){return r(Pt).ariaLabel},closeSettings:Ke})},Fn=(Li,to)=>{{var No=Jo=>{gv(Jo,{get isMobile(){return d()},get id(){return r(Pt).id},get onClick(){return r(Pt).onClick},get icon(){return r(Pt).icon},get label(){return r(Pt).label},get ariaLabel(){return r(Pt).ariaLabel},get enabled(){return r(Pt).enabled},get tooltipText(){return r(Pt).tooltipText},get maxTooltipWidth(){return r(Pt).maxTooltipWidth}})};L(Li,Jo=>{r(Pt).type==="SWITCH"&&Jo(No)},to)}};L(pi,Li=>{r(Pt).type==="CLICK"?Li(Hn):Li(Fn,!1)},Ro)}};L(Xo,pi=>{r(Pt).type==="OPEN_SUB_MENU"?pi(Tn):pi(En,!1)})}b(Mi,hi)}),h(Zo),rt(Zo,Mi=>W(Mi),()=>W()),h(vt),B((Mi,Pt,hi)=>{xi=te(vt,1,"settings-menu menu svelte-17or3al",null,xi,Mi),pn=te(Zo,1,"items",null,pn,Pt),st(Zo,hi)},[()=>({desktop:!d(),mobile:d(),hidden:!!le.current}),()=>({mobile:d()}),Lo]),Ct("mouseenter",vt,Zt),Ct("mouseleave",vt,vi),b(Re,vt)};L(gi,Re=>{n()&&Re(li)})}var di=P(gi,2);ki(di,17,()=>r(Vo),Re=>Re.id,(Re,vt)=>{let xi=g(()=>{var Wt;return(Wt=r(vt).minWidth)!=null?Wt:137});uv(Re,{get isMobile(){return d()},get playerControlsHeight(){return X()},get returnFromSubMenu(){return le.popSubMenu},get id(){return r(vt).id},get title(){return r(vt).title},get closeSettingsMenu(){return jt},openSubMenuList:Ne,get items(){return r(vt).items},get minWidth(){return r(xi)},get refMenuItems(){return j},get listRef(){return ce[r(vt).id]},set listRef(Wt){ce[r(vt).id]=Wt}})}),h(G),B(Re=>dt=te(G,1,"settings-menu-container svelte-17or3al",null,dt,Re),[()=>({mobile:d(),hidden:!n()})]),b(t,G),U(),o()}ct(["keydown","click"]);var mx=t=>t;function I0(t,{delay:e=0,duration:i=400,easing:o=mx}={}){let n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:s=>`opacity: ${s*n}`}}var vx=A('<button class="button svelte-1sbbskl"> </button>'),gx={hash:"svelte-1sbbskl",code:".button.svelte-1sbbskl {margin-top:12px;font-size:14px;line-height:18px;background:rgba(255, 255, 255, 0.1);padding:6px 12px 7px;border-radius:8px;}"};function Pv(t,e){q(t,gx);var i=vx();i.__click=function(...n){var s;(s=e.onClick)==null||s.apply(this,n)};var o=_(i,!0);h(i),B(()=>ye(o,e.label)),b(t,i)}ct(["click"]);var hx=A('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),_x={hash:"svelte-1es7arp",code:`.container.svelte-1es7arp {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
304
+ .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 dc(t,e){U(e,!0),G(t,vx);let[i,o]=Ue(),n=()=>S(me,"$settingsMenuVisible",i),s=()=>S(at,"$settingsMenuOpenedByKeyboard",i),l=()=>S(mt,"$debugPanelVisible",i),d=()=>S(Me,"$isMobile",i),a=()=>S(Mt,"$playerSize",i),u=()=>S(De,"$hasMpegSources$",i),f=()=>S(Ee,"$mobileNotReportControlHidden$",i),v=()=>S(Le,"$autoQualityLimitingAvailable$",i),p=()=>S(ee,"$availableSubtitlesList$",i),y=()=>S(We,"$isLiveWithPlaybackSpeed",i),w=()=>S(fe,"$availableAudioStreams$",i),$=()=>S(ue,"$availablePlaybackRates$",i),C=()=>S(be,"$currentAudioStream$",i),T=()=>S(Be,"$currentPlaybackRate$",i),I=()=>S(tt,"$trafficSavingEnabled",i),M=()=>S(ke,"$currentQuality$",i),k=()=>S(se,"$isAutoQualityEnabled$",i),E=()=>S(ge,"$currentSubtitle$",i),R=()=>S(Gt,"$additionalSettingsMenuItems$",i),X=()=>S(N,"$isAutoQualityAvailable$",i),D=()=>S(ne,"$availableQualities$",i),H=()=>S(bt,"$highQualityEnabled",i),K=m(e,"ref",15,void 0),J=m(e,"playerControlsHeight",3,0),j=ri({}),ce=ri({}),oe=Ie(),pe=At(),be=oe.state.audioStream$,fe=oe.state.availableAudioStreams$,ke=oe.state.currentQuality$,ne=oe.state.availableQualities$,Le=oe.state.autoQualityLimitingAvailable$,se=oe.state.isAutoQualityEnabled$,N=oe.state.isAutoQualityAvailable$,Be=oe.state.currentPlaybackRate$,ue=oe.state.availablePlaybackRates$,ge=oe.state.currentSubtitle$,ee=oe.state.availableSubtitlesList$,ve=oe.state.canDownload,De=oe.state.hasMpegSources$,me=oe.ui.settingsMenu.visible$,at=oe.ui.settingsMenu.openedByBtnKeyboard$,Z=oe.ui.settingsMenu.ref$,Me=oe.ui.isMobile,Ee=oe.ui.mobileNotReportControlHidden$,We=oe.state.canChangePlaybackSpeed$,tt=oe.state.trafficSavingEnabled$,bt=oe.state.highQualityEnabled$,Mt=oe.ui.playerSize,mt=oe.ui.debugPanelVisible,Qe=oe.state.isInteractiveTime$,Gt=oe.ui.additionalSettingsMenuItems$,ii=oe.ui.t,Qt=oe.actions.internal.downloadVideo,Xt=oe.actions.internal.closeSettingsMenu,le=oe.actions.internal.openSettingsSubMenu,Ot=oe.actions.internal.closeSettingsSubMenu,we=Y(!1),_e=Y(void 0),de=__();Ge(()=>{!n()&&de.current&&(Ot(ce[de.current]),de.popAllSubMenus())}),Ge(()=>{n()||O(_e,void 0)}),Ge(()=>{!de.current&&r(_e)&&V1(j,r(_e))}),Ge(()=>{K()&&Z.set(K())});function Ne(et){return St(this,null,function*(){var ei;de.pushSubMenu(et),yield Ao(),le(et,ce[et]);let ct=(ei=K())==null?void 0:ei.firstElementChild;ct&&Ff(ct)})}function Fe(et){var ct;et==null||et.stopPropagation(),s()||(ct=e.returnFocus)==null||ct.call(e),Xt(),O(we,!1)}function Ve(et,ct){oe.actions.internal.setQuality(et,{appliesTo:ct}),Fe()}function Ke(et){oe.actions.internal.setAudioStream(et),Fe()}function He(et,ct){oe.actions.internal.setTrafficSavingEnabled(et,ct),pe.features.qualityDetailsSubMenuEnabled&&Fe()}function Xe(et,ct){oe.actions.internal.setHighQualityEnabled(et,ct),Fe()}function kt(et){oe.actions.internal.setPlaybackRate(et),Fe()}function Jt(et){oe.actions.internal.setSubtitle(et),Fe()}function ot(){Qt()}function fi(){(0,lc.isValidURL)(e.supportLink)&&window.open(e.supportLink,"_blank"),oe.actions.internal.reportProblem(),oe.actions.internal.pause()}function mi(){yl(oe.actions.internal.getDebugTextData())}let dt=()=>{let et=oe.actions.internal.getTraceTextData(),ct=new Blob([...et],{type:"application/json"}),ei=window.URL.createObjectURL(ct);ha(ei,"vk_player_trace_info","json")};function jt(){mt.set(!l())}function qi(){O(we,!0)}function Yt(){O(we,!1)}function Ai(){return d()?`max-height: ${Math.round(a().height*.6)}px`:`max-height: ${a().height-32-J()}px; overflow: auto;`}let Ro=g(()=>ve&&u()&&!f()),Kt=g(()=>pe.features.trafficSaving&&!f()&&v()&&!pe.features.qualityDetailsSubMenuEnabled),di=g(()=>p().length>0&&!f()),no=g(()=>!!y()&&!f()),jo=g(()=>pe.features.audioLanguages&&w().length>=2&&!f()),Vt=g(()=>!f());zt(()=>Qe.subscribe(et=>{et&&!d()&&!r(we)&&!s()&&Fe()}));let Tt=g(()=>{let et=[r(Vt)&&"QUALITY_SETTINGS",r(jo)&&"AUDIO_LANGUAGES",r(no)&&"PLAYBACK_RATE",r(di)&&"SUBTITLES",r(Kt)&&"TRAFFIC_SAVING_SWITCH",r(Ro)&&"DOWNLOAD",pe.showSupport&&"SHOW_SUPPORT","COPY_DATA",pe.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(ct=>!!ct);return I_({items:et,context:{qualityDetailsSubMenuEnabled:pe.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:$(),currentAudioStream:C(),availableAudioStreams:w(),currentPlaybackRate:T(),selectPlaybackRate:kt,trafficSavingEnabled:I(),toggleTrafficSaving:He,currentQuality:M()||lc.VideoQuality.INVARIANT,isAutoQualityEnabled:k()||!1,currentSubtitle:E(),isMobile:d(),onDownloadClick:ot,onCopyDataClick:mi,onReportProblemClick:fi,onSaveTraceDataClick:dt,toggleShowDebugInfo:jt},additionalSettingsMenuItems:R()})}),Oi=g(()=>T_({subMenuId:de.current,context:{availablePlaybackRates:$(),selectPlaybackRate:kt,trafficSavingEnabled:I(),toggleTrafficSaving:He,currentQuality:M()||lc.VideoQuality.INVARIANT,isAutoQualityEnabled:k()||!1,isAutoQualityAvailable:X()||!1,availableQualities:D(),highQualityEnabled:H(),toggleHighQuality:Xe,availableAudioStreams:w(),availableSubtitlesList:p(),closeSettingsMenu:Xt,currentAudioStream:C(),isMobile:d(),selectAudioLanguage:Ke,selectQuality:Ve,selectSubtitle:Jt}}));var Gi=mx();let F;var Bt=_(Gi);{var ci=et=>{var ct=fx();let ei;ct.__keydown=[ux,Xt];var Dt=_(ct);{var ro=Ti=>{var wt=px();let Bi;var Yo=_(wt),Cn=_(Yo,!0);h(Yo);var Qi=P(Yo,2);Qi.__click=Fe,h(wt),B((ji,No)=>{Bi=te(wt,1,"item header svelte-17or3al",null,Bi,ji),$e(Cn,No)},[()=>({mobile:d()}),()=>ii("submenu_settings")]),b(Ti,wt)};V(Dt,Ti=>{d()&&Ti(ro)})}var sn=P(Dt,2);let an;Ei(sn,21,()=>r(Tt),Ti=>Ti.id,(Ti,wt)=>{var Bi=qe(),Yo=he(Bi);{var Cn=ji=>{fv(ji,{get isMobile(){return d()},get id(){return r(wt).id},get icon(){return r(wt).icon},get label(){return r(wt).label},get ariaLabel(){return r(wt).ariaLabel},get value(){return r(wt).value},get valueComponent(){return r(wt).valueComponent},onClick:()=>{Ne(r(wt).children),O(_e,r(wt).id,!0)},get ref(){return j[r(wt).id]},set ref(No){j[r(wt).id]=No}})},Qi=(ji,No)=>{{var Tn=Mi=>{vv(Mi,{get isMobile(){return d()},get id(){return r(wt).id},get onClick(){return r(wt).onClick},get icon(){return r(wt).icon},get label(){return r(wt).label},get ariaLabel(){return r(wt).ariaLabel},closeSettings:Fe})},Un=(Mi,In)=>{{var Yi=wo=>{hv(wo,{get isMobile(){return d()},get id(){return r(wt).id},get onClick(){return r(wt).onClick},get icon(){return r(wt).icon},get label(){return r(wt).label},get ariaLabel(){return r(wt).ariaLabel},get enabled(){return r(wt).enabled},get tooltipText(){return r(wt).tooltipText},get maxTooltipWidth(){return r(wt).maxTooltipWidth}})};V(Mi,wo=>{r(wt).type==="SWITCH"&&wo(Yi)},In)}};V(ji,Mi=>{r(wt).type==="CLICK"?Mi(Tn):Mi(Un,!1)},No)}};V(Yo,ji=>{r(wt).type==="OPEN_SUB_MENU"?ji(Cn):ji(Qi,!1)})}b(Ti,Bi)}),h(sn),nt(sn,Ti=>K(Ti),()=>K()),h(ct),B((Ti,wt,Bi)=>{ei=te(ct,1,"settings-menu menu svelte-17or3al",null,ei,Ti),an=te(sn,1,"items",null,an,wt),rt(sn,Bi)},[()=>({desktop:!d(),mobile:d(),hidden:!!de.current}),()=>({mobile:d()}),Ai]),It("mouseenter",ct,qi),It("mouseleave",ct,Yt),b(et,ct)};V(Bt,et=>{n()&&et(ci)})}var xt=P(Bt,2);Ei(xt,17,()=>r(Oi),et=>et.id,(et,ct)=>{let ei=g(()=>{var Dt;return(Dt=r(ct).minWidth)!=null?Dt:137});pv(et,{get isMobile(){return d()},get playerControlsHeight(){return J()},get returnFromSubMenu(){return de.popSubMenu},get id(){return r(ct).id},get title(){return r(ct).title},get closeSettingsMenu(){return Xt},openSubMenuList:Ne,get items(){return r(ct).items},get minWidth(){return r(ei)},get refMenuItems(){return j},get listRef(){return ce[r(ct).id]},set listRef(Dt){ce[r(ct).id]=Dt}})}),h(Gi),B(et=>F=te(Gi,1,"settings-menu-container svelte-17or3al",null,F,et),[()=>({mobile:d(),hidden:!n()})]),b(t,Gi),z(),o()}ft(["keydown","click"]);var gx=t=>t;function E_(t,{delay:e=0,duration:i=400,easing:o=gx}={}){let n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:s=>`opacity: ${s*n}`}}var hx=A('<button class="button svelte-1sbbskl"> </button>'),_x={hash:"svelte-1sbbskl",code:".button.svelte-1sbbskl {margin-top:12px;font-size:14px;line-height:18px;background:rgba(255, 255, 255, 0.1);padding:6px 12px 7px;border-radius:8px;}"};function Av(t,e){G(t,_x);var i=hx();i.__click=function(...n){var s;(s=e.onClick)==null||s.apply(this,n)};var o=_(i,!0);h(i),B(()=>$e(o,e.label)),b(t,i)}ft(["click"]);var bx=A('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),$x={hash:"svelte-1es7arp",code:`.container.svelte-1es7arp {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
307
305
  /**
308
306
  * \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.
309
- */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 mc(t,e){F(e,!0),q(t,_x);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=At(),{ui:{t:n}}=ke(),s=n(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var l=hx(),d=_(l),a=_(d),u=_(a),f=_(u);uc(f,{get message(){return s}}),h(u);var v=P(u,2);{var p=w=>{let $=g(()=>n("slow_video_notification_button"));Pv(w,{get label(){return r($)},get onClick(){return e.onSelectAutoQuality}})};L(v,w=>{o||w(p)})}h(a);var y=P(a,2);Ta(y,{get onClick(){return e.onClose}}),h(d),h(l),af(3,d,()=>I0,()=>({duration:i})),b(t,l),U()}var vc=require("@vkontakte/videoplayer-shared/es2015");var Ua="annotation",Qu=class{constructor(){this.slots=new Map}init(e,i){this.shadowRootContainer=e,this.store=i}add(e,i){var d;let{overlay:o,id:n,controlsBehaviour:s,hideAllControls:l}=i;e.setAttribute("slot",Ua),this.setupSlotStyles(e,o),this.shadowRootContainer.append(e),this.slots.set(n,{rootElement:e,options:i}),s&&this.runHidingControlsWhenIntersected(n,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(n,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(y=>y.forEach(()=>{let w=ws(d,this.shadowRootContainer);o.forEach($=>{let S=a==null?void 0:a[$],T=S?Se(S):null,E=u==null?void 0:u[$];T&&(E==null||E.set((0,vc.isIntersecting)(T,w)))})}));f.observe(d,{childList:!0,subtree:!0}),l.observer=f;let v=new vc.Subscription;o.forEach(y=>{a&&v.add(a[y].subscribe(w=>{let $=u==null?void 0:u[y];w&&w.isDisplayed?$==null||$.set((0,vc.isIntersecting)(w,ws(d,this.shadowRootContainer))):$==null||$.set(!1)}))}),l.subs=v})}findSlotElement(e,i,o){return xt(this,null,function*(){return new Promise(n=>{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),n(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:n,observerForFindingSlotElement:s,subs:l,options:{controlsBehaviour:d,hideAllControls:a}}=i;o&&o.remove(),[n,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,y;(y=(p=this.store)==null?void 0:p.ui.hiddenControls[v])==null||y.set(!1)})}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}haveSlots(){return this.slots.size>0}};var bx=A('<div class="container svelte-f47ws8"><div class="playback_state_icon svelte-f47ws8"><!></div></div>'),$x={hash:"svelte-f47ws8",code:`.container.svelte-f47ws8 {position:absolute;display:flex;width:100%;height:100%;align-items:center;justify-content:center;pointer-events:none;}.playback_state_icon.svelte-f47ws8 {display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:100%;background-color:#00000073;will-change:opacity, scale;
307
+ */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 cc(t,e){U(e,!0),G(t,$x);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=At(),{ui:{t:n}}=Ie(),s=n(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var l=bx(),d=_(l),a=_(d),u=_(a),f=_(u);ac(f,{get message(){return s}}),h(u);var v=P(u,2);{var p=w=>{let $=g(()=>n("slow_video_notification_button"));Av(w,{get label(){return r($)},get onClick(){return e.onSelectAutoQuality}})};V(v,w=>{o||w(p)})}h(a);var y=P(a,2);Ca(y,{get onClick(){return e.onClose}}),h(d),h(l),lf(3,d,()=>E_,()=>({duration:i})),b(t,l),z()}var uc=require("@vkontakte/videoplayer-shared/es2015");var Fa="annotation",Yu=class{constructor(){this.slots=new Map}init(e,i){this.shadowRootContainer=e,this.store=i}add(e,i){var d;let{overlay:o,id:n,controlsBehaviour:s,hideAllControls:l}=i;e.setAttribute("slot",Fa),this.setupSlotStyles(e,o),this.shadowRootContainer.append(e),this.slots.set(n,{rootElement:e,options:i}),s&&this.runHidingControlsWhenIntersected(n,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(n,s){return St(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(y=>y.forEach(()=>{let w=ys(d,this.shadowRootContainer);o.forEach($=>{let C=a==null?void 0:a[$],T=C?xe(C):null,I=u==null?void 0:u[$];T&&(I==null||I.set((0,uc.isIntersecting)(T,w)))})}));f.observe(d,{childList:!0,subtree:!0}),l.observer=f;let v=new uc.Subscription;o.forEach(y=>{a&&v.add(a[y].subscribe(w=>{let $=u==null?void 0:u[y];w&&w.isDisplayed?$==null||$.set((0,uc.isIntersecting)(w,ys(d,this.shadowRootContainer))):$==null||$.set(!1)}))}),l.subs=v})}findSlotElement(e,i,o){return St(this,null,function*(){return new Promise(n=>{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),n(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:n,observerForFindingSlotElement:s,subs:l,options:{controlsBehaviour:d,hideAllControls:a}}=i;o&&o.remove(),[n,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,y;(y=(p=this.store)==null?void 0:p.ui.hiddenControls[v])==null||y.set(!1)})}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}haveSlots(){return this.slots.size>0}};var yx=A('<div class="container svelte-f47ws8"><div class="playback_state_icon svelte-f47ws8"><!></div></div>'),xx={hash:"svelte-f47ws8",code:`.container.svelte-f47ws8 {position:absolute;display:flex;width:100%;height:100%;align-items:center;justify-content:center;pointer-events:none;}.playback_state_icon.svelte-f47ws8 {display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:100%;background-color:#00000073;will-change:opacity, scale;
310
308
 
311
309
  animation-name: svelte-f47ws8-videoPlayerStatusIconPopup;animation-fill-mode:forwards;}
312
310
 
@@ -337,8 +335,8 @@ Try switching the\xA0quality to\xA0Auto.`},y1=bb;var xs=new Map;xs.set(hl.Interf
337
335
  opacity: 0;
338
336
  scale: 0;
339
337
  }
340
- }`};function Av(t,e){F(e,!0),q(t,$x);let[i,o]=He(),n=()=>C(l,"$isPlaying$",i),s=()=>C(d,"$aboutToGoNextVideo",i),{state:{isPlaying$:l},ui:{aboutToGoNextVideo:d},actions:a}=ke(),{features:{playbackStatusShow:u,playbackStatusAnimationDuration:f,playbackStatusNextVideoAnimationDuration:v}}=At(),p=0,y=Y(null),w=Y(!1);We(()=>{O(y,n()?Fr:Cs,!0)}),We(()=>{O(y,s()?qs:null,!0)}),We(()=>{if(u)return p=window.setTimeout(()=>{p=0,s()&&r(y)===qs&&(s()==="next"?a.internal.nextVideoClick(!1):a.internal.prevVideoClick(!1)),O(y,null)},r(y)!==qs?f:v),()=>{p&&(window.clearTimeout(p),p=0)}}),We(()=>{n()&&!r(w)&&(O(w,!0),O(y,null))});var $=ze(),S=ge($);{var T=E=>{var V=ze(),k=ge(V);pa(k,()=>r(y),I=>{var R=bx(),Z=_(R),D=_(Z);let H=g(()=>s()==="prev");Pi(D,()=>r(y),(W,X)=>{X(W,{width:"40",height:"40",viewBox:"0 0 24 24",get isPrev(){return r(H)}})}),h(Z),h(R),B(()=>st(Z,`animation-duration: ${r(y)!==qs?f:v}ms`)),b(I,R)}),b(E,V)};L(S,E=>{r(y)&&u&&E(T)})}b(t,$),U(),o()}var yx=A('<div><div data-testid="video-container"></div></div>'),xx={hash:"svelte-1czns9r",code:`.video-wrapper.svelte-1czns9r,
341
- .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 za(t,e){F(e,!0),q(t,xx);let[i,o]=He(),n=()=>C(f,"$rotateAlpha",i),s=()=>C(v,"$playerSize",i),l=()=>C(u,"$playerPhase",i),d=()=>C(p,"$isPlaying$",i),a=m(e,"videoContainer",15),{playerPhase:u,ui:{rotateAlpha:f,playerSize:v},state:{isPlaying$:p}}=ke(),{isSmoothVideoRotate:y}=At(),w=g(()=>a()&&n()%180?s().height/s().width:1);var $=yx();let S;$.__contextmenu=function(...V){var k;(k=e.onContextMenu)==null||k.apply(this,V)},$.__mousedown=function(...V){var k;(k=e.onMouseDown)==null||k.apply(this,V)},$.__mouseup=function(...V){var k;(k=e.onMouseUp)==null||k.apply(this,V)},$.__click=function(...V){var k;(k=e.onClick)==null||k.apply(this,V)},$.__dblclick=function(...V){var k;(k=e.onDblClick)==null||k.apply(this,V)};var T=_($);let E;rt(T,V=>a(V),()=>a()),h($),B((V,k)=>{S=te($,1,"video-wrapper svelte-1czns9r",null,S,V),E=te(T,1,"video-container svelte-1czns9r",null,E,k),st(T,`transform: rotate(${n()}deg) scale(${r(w)})`),Fe(T,"data-is-playing",d())},[()=>({hidden:l()!=="video",nocursor:e.hideCursor}),()=>({"fast-rotate":!y})]),b(t,$),U(),o()}ct(["contextmenu","mousedown","mouseup","click","dblclick"]);var wx=(t,e,i,o,n,s)=>{if(t.stopPropagation(),e()||o()){s();return}},Sx=A("<div><!></div>"),Cx=A('<div class="spherical-video-icon svelte-jtgjmv"><!></div>'),Tx=A("<div><!></div>"),Ex=A('<div class="settings-menu svelte-jtgjmv"><!></div>'),Ix=A("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),kx=A("<!> <!> <!>",1),Px=A('<div class="blocked svelte-jtgjmv"></div>'),Ax=A('<div class="player-wrapper svelte-jtgjmv"><!> <div class="overlay-container"></div></div> <!>',1),Mx={hash:"svelte-jtgjmv",code:".player-wrapper.svelte-jtgjmv {position:absolute;width:100%;height:100%;}.blocked.svelte-jtgjmv {position:absolute;width:100%;height:100%;z-index:var(--overlay-container-z-index);}.player-wrapper.svelte-jtgjmv .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-jtgjmv {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.ads-container.svelte-jtgjmv {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-jtgjmv {z-index:var(--ads-container-z-index);background:var(--black);}.settings-menu.svelte-jtgjmv {position:absolute;z-index:var(--settings-menu-z-index);bottom:57px;right:18px;left:0;transition:opacity 0.2s, visibility 0.2s;}"};function Lv(t,e){F(e,!0),q(t,Mx);let[i,o]=He(),n=()=>C(qn,"$notificationsToShow$",i),s=()=>C(Zt,"$playerPhase",i),l=()=>C(Vo,"$isLoaderVisible",i),d=()=>C(mi,"$adPlaybackState",i),a=()=>C(vt,"$crashed",i),u=()=>C(Xo,"$isInteractiveTime$",i),f=()=>C(co,"$settingsMenuVisible",i),v=()=>C(Tn,"$isInteractiveExpectation$",i),p=()=>C(lo,"$controlsVisible",i),y=()=>C(pi,"$touched",i),w=()=>C(Sr,"$graphIsOpened$",i),$=()=>C(vi,"$isFullscreen",i),S=()=>C(uo,"$autoplayNextEnabled$",i),T=()=>C(li,"$postrollPassed",i),E=()=>C(G,"$isEnded$",i),V=()=>C(kn,"$cursorInside",i),k=()=>C(rr,"$isControlsAvailable",i),I=()=>C(ar,"$fakeIsPlaying$",i),R=()=>C(Jt,"$bottomNoSmooth",i),Z=()=>C(Li,"$interactiveTimeIndicator",i),D=()=>C(pn,"$playerSize",i),H=()=>C(Mi,"$is3DVideo",i),W=()=>C(yt,"$contextMenuVisible$",i),X=()=>C(yi,"$playbackState$",i),j=()=>C(Ro,"$hotKeyMapData",i),ce=()=>C(ui,"$scrubbingInProgress",i),re=()=>C(Ft,"$volumeChangingInProgress",i),pe=()=>C(dt,"$chromecastConnected$",i),xe=()=>C(wi,"$controlsTimeoutActive",i),fe=()=>C(Ht,"$settingsMenuOpenedByKeyboard",i),ie=()=>C(Mn,"$contextMenuOpenedByKeyboard$",i),Pe=()=>C(To,"$contextMenuOpenedByHotKey$",i),ee=()=>C(_o,"$contextMenuButtonRef$",i),N=()=>C(fr,"$contextMenuLastActiveElem$",i),Ue=()=>C(Lo,"$isFullscreenOpenedByKeyboard",i),_e=()=>C(it,"$language$",i),he=()=>C(Pt,"$icon3DVideoVisible",i),ue=()=>C(gi,"$chromecastDeviceName$",i),me=()=>C(eo,"$currentSubtitle$",i),ve=()=>C(Zo,"$currentSubtitleCaptions$",i),se=()=>C(nt,"$position$",i),Ge=()=>C(ni,"$duration$",i),et=()=>C(di,"$isLive$",i),J=()=>C(Re,"$isPlaying$",i),Le=()=>C(No,"$contextMenuPosition$",i),Ie=()=>C(Hn,"$showHotKeyMap",i),Ze=()=>C(Hi,"$debugPanelVisible",i),at=()=>C(zr,"$userActionsDisabled$",i),bt=m(e,"videoContainer",15),gt=m(e,"adsSlotId",3,void 0),Tt=m(e,"adsParams",3,void 0),Qe=m(e,"adsPreviewParam",3,void 0),Kt=m(e,"adsAutoplayParam",3,void 0),ti=m(e,"duration",3,void 0),Yt=m(e,"logoTargetUrl",3,""),jt=m(e,"showNextPrevButtons",3,!1),oe=m(e,"nextButtonActive",3,!1),qt=m(e,"prevButtonActive",3,!1),$e=m(e,"endScreenVideoTitle",3,void 0),Ce=m(e,"endScreenVideoThumb",3,void 0),le=m(e,"isOneVideoPlaylist",3,!1),Ne=m(e,"shadowRootContainer",3,void 0),Ke=m(e,"outerContainerRef",3,void 0),Ve=m(e,"playerStarted",3,!1),Xe=m(e,"fullScreenTarget",3,void 0),Be=m(e,"showMiniTimer",3,!1),tt=m(e,"showEndScreen",3,!0),Vt=m(e,"keyboardControls",15),Qt=e.store.getLogger().createComponentLog("Root component"),it=e.store.interfaceLanguage$,yi=e.store.state.playbackState$,mi=e.store.ads.playbackState,nt=e.store.state.positionWithScrubbing$,ni=e.store.state.duration$,Zt=e.store.playerPhase,vi=e.store.ui.isFullscreen,Lo=e.store.ui.isFullscreenOpenedByKeyboard,lo=e.store.ui.controlsVisible,co=e.store.ui.settingsMenu.visible$,Ht=e.store.ui.settingsMenu.openedByBtnKeyboard$,ui=e.store.ui.scrubbingInProgress,Ft=e.store.ui.volumeChangingInProgress,yt=e.store.ui.contextMenu.visible$,Hi=e.store.ui.debugPanelVisible,Vo=e.store.state.isLoaderVisible,G=e.store.state.isEnded$,dt=e.store.state.chromecastConnected$,gi=e.store.state.chromecastDeviceName$,li=e.store.ads.postrollPassed,di=e.store.state.isLive$,Re=e.store.state.isPlaying$,vt=e.store.state.crashed$,xi=e.store.webApi.annotationsApi,Wt=e.store.webApi.pictureInPictureApi,eo=e.store.state.currentSubtitle$,Zo=e.store.state.currentSubtitleCaptions$,pn=e.store.ui.playerSize,Mi=e.store.ui.is3DVideo,Pt=e.store.ui.icon3DVideoVisible,hi=e.store.state.isInteractive,Xo=e.store.state.isInteractiveTime$,Tn=e.store.state.isInteractiveExpectation$,En=e.store.state.hasInteractiveBranches,pi=e.store.ui.touched,Ro=e.store.ui.modals.hotKeyMap.data,Hn=e.store.ui.modals.hotKeyMap.show,Fn=e.store.ui.overlayContainer$,Li=e.store.ui.controls.interactiveTimeIndicator,to=e.store.state.showInteractiveTimeIndicator,No=e.store.ui.contextMenu.position$,Jo=e.store.actions.internal.setQuality,nr=e.store.actions.internal.closeSettingsMenu,uo=e.store.ui.autoplayNextEnabled$,zr=e.store.ui.userActionsDisabled,rr=e.store.ui.isControlsAvailable,wr=e.store.ui.videoTitleInfo,sr=e.store.actions.internal.getVideoElement,Wr=e.store.actions.internal.checkFullscreenSupport,{fakeIsPlaying$:ar,notifications$:en,graphIsOpened$:Sr}=yo(),Vi=Y(void 0),Un=Y(void 0),zn=Y(void 0),lr=Y(void 0),Wn,dr,Kn;Ro.set(I1());let{closeNotification:In,notificationsToShow$:qn}=en,Kr=g(()=>!!n().slow_video),cr=()=>In("slow_video"),Oo=g(()=>(s()==="video"&&l()||s()==="ads"&&d()==="inactive")&&!a()),mt=Y(void 0),Jt=ae(!1),ur,wi=ae(!1),Fi=ae(),kn=ae(!1),Bo=Y(!1),fn=Y(!1),mn=Y(!1),xo=Y(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),vn=g(()=>u()&&!f()&&!(r(Bo)||r(fn))&&!(r(mn)&&!v())),Cr=!0,us=g(()=>e.uiConfig.features.thumbTimer&&Be()&&s()==="video"&&!p()&&!a()&&!hi&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),Tr=g(()=>s()==="video"&&!w()&&$()),qr=Y(!1),Pn=g(()=>(tt()||e.showAutoplayNext&&S())&&!!$e()&&!!Ce()&&(e.showAds&&T()||!e.showAds)&&E()&&!a()&&!r(qr)),Er=g(()=>V()&&!(p()||r(Pn))&&!u()&&k()),wo=Y(!1),pr=g(()=>I()!==null),{toggle:tn}=ar,ii=!1,on=null;Wt==null||Wt.setContext(Jl());let Gr=()=>{e.autoplay&&!hi&&e.uiConfig.controls.showOnStartupAtAutoplay&&Rt(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:Gr});let Ir=()=>{window.clearTimeout(Wn),wi.set(!1)},St=()=>{window.clearTimeout(dr),Fi.set(null)},Rt=be=>{Ir(),wi.set(!0),Wn=window.setTimeout(()=>wi.set(!1),be);let It=be-100;ur=window.setTimeout(()=>{R()&&Jt.set(!1)},It>0?It:be)},So=(be,It)=>{St(),Fi.set(It),dr=window.setTimeout(()=>Fi.set(null),be)},Do=Mi.subscribe(be=>{Pt.set(be),be&&(window.clearTimeout(Kn),Kn=window.setTimeout(()=>Pt.set(!1),e.uiConfig.controls.hide360IconTimeout))}),po=()=>xt(null,null,function*(){var It,Si,Ii,bo;let be=Bs();if(be){let ot=Id(),Et=Gn();be=ot===Et||ot===Ne()}if(be){Rt(e.uiConfig.controls.hideTimeoutFullscreen);try{yield Wt==null?void 0:Wt.exit()}catch(ot){Qt({message:String(ot)})}}vi.set(be),e.store.getAdmanWrapper().setFullscreen(be),$()?(Si=(It=e.store.callbacks)==null?void 0:It.onFullscreenEnter)==null||Si.call(It):(bo=(Ii=e.store.callbacks)==null?void 0:Ii.onFullscreenExit)==null||bo.call(Ii)}),Co=be=>{let{width:It,height:Si}=be.target;pn.set({width:It,height:Si})},fo=()=>{let{width:be,height:It}=r(Vi).getBoundingClientRect();pn.set({width:be,height:It})};Dt(()=>{var It;return yu(po),e.uiConfig.features.annotationsInside&&(xi==null||xi.init(r(Vi))),xa(Wt)&&(Wt==null||Wt.assignPlayerContainer(r(Vi)),Wt==null||Wt.setExternalEventHandlers({resize:Co,leavepictureinpicture:fo})),e.interactiveContainer&&((It=bt().parentElement)==null||It.insertBefore(e.interactiveContainer,bt().nextSibling)),()=>{window.clearTimeout(Wn),window.clearTimeout(ur),window.clearTimeout(dr),window.clearTimeout(Kn),Do(),Wt==null||Wt.dispose().catch(Si=>{Qt({message:String(Si)})}),xu(po)}});let Gn=()=>{let be=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Ke()?r(Vi):Ke(),It=be.getRootNode(),Si=It instanceof ShadowRoot?It.host:It,Ii=Xe()instanceof HTMLElement&&Xe().contains(Si);return e.uiConfig.allowChangingFullscreenTarget&&Xe()&&Ii?Xe():be},Qi=()=>{yt.set(!1)},Ho=()=>{nr(),Qi()},An=()=>xt(null,null,function*(){if(!Wr()){Qt({message:"fullscreen disabled"});return}Qi(),Bs()?(yield $u(document),Qt({message:"exit fullscreen"})):(Qt({message:"request fullscreen"}),yield bu(Gn()))}),kr=be=>{w()||(be.preventDefault(),yt.set(!0),No.set({left:be.clientX,top:be.clientY}))};function Qr(){kn.set(!0),hi||Rt(e.uiConfig.controls.hideTimeoutCursor)}function ps(){hi||(Jt.set(!0),Rt(e.uiConfig.controls.hideTimeoutCursor))}function jr(){kn.set(!1),O(fn,!1),O(Bo,!1),ii=!1,e.store.actions.internal.releaseCamera(),Rt(e.uiConfig.controls.hideTimeout)}function mo(be){return be?be.offsetTop+mo(be.offsetParent):0}function gn(be){return be?be.offsetLeft+gn(be.offsetParent):0}function Pr(be){if(Z()&&to){let It=be.currentTarget,Si=mo(It),Ii=gn(It),bo=be.pageX-Ii,ot=be.pageY-Si,{left:Et,bottom:Ni,right:sn}=Z(),Uo=sn-Et;return bo>=Et-Uo&&ot<=Ni+Uo}}function lt(be){if(r(Vi)){let It=mo(be.currentTarget),Si=D().height,Ii=be.pageY-It;if(Pr(be)){O(fn,!1);return}Ii<40?O(fn,!0):Ii>Si-40?O(Bo,!0):(O(fn,!1),f()||O(Bo,!1))}}function Mt(be){lt(be),r(vn)||Rt(e.uiConfig.controls.hideTimeoutCursor),H()&&ii&&on&&e.store.actions.internal.moveCameraFocusPX(on.clientX-be.clientX,on.clientY-be.clientY,be.timeStamp-on.timeStamp),on=be}let _i=be=>{be.preventDefault(),be.button===0&&(ii=!0,e.store.actions.internal.holdCamera()),Rt(e.uiConfig.controls.hideTimeoutCursor)},vo=be=>{be.preventDefault(),be.button===0&&(on=be,ii=!1,e.store.actions.internal.releaseCamera()),Rt(e.uiConfig.controls.hideTimeoutCursor)},io=be=>{be.preventDefault(),Cr&&(Qt({message:"double click on video"}),An(),Rt(e.uiConfig.controls.hideTimeoutCursor))},go=be=>{var It;if(be.preventDefault(),W()||f()){Ho();return}if(!(E()&&!En)){if(r(pr))return tn();if((It=Vt())==null||It.focus(),!Ve()){e.firstStart(),Rt(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||X()!==Mv.PlaybackState.PLAYING)&&e.store.actions.internal.togglePlay(),Rt(e.uiConfig.controls.hideTimeoutCursor)}},ho=be=>{Ho(),pi.set(!0),Rt(e.uiConfig.controls.hideTimeout),be&&So(e.uiConfig.controls.hideHotKeyHelpers,be)},nn=()=>{var be,It;Ho(),(be=e.store.callbacks)!=null&&be.onOpenHotKeyMap?(It=e.store.callbacks)==null||It.onOpenHotKeyMap(j()):Hn.update(Si=>!Si)},rn=()=>{pi.set(!0)},Mn=e.store.ui.contextMenu.openedByBtnKeyboard$,_o=e.store.ui.contextMenu.btnRef$,oo=Y(void 0),To=e.store.ui.contextMenu.openedByHotKey$,fr=e.store.ui.contextMenu.lastActiveElem$;We(()=>{Fn.set(r(mt))}),We(()=>{O(mn,r(xo)&&X()!==Mv.PlaybackState.PLAYING,!0),r(xo)||wt(()=>O(xo,!0))}),We(()=>{lo.set((r(mn)||E()||f()||ce()||re()||pe()||xe())&&!r(vn)&&(s()==="video"||s()==="ads")&&!a()&&k())}),We(()=>{!ce()&&r(wo)&&!u()&&Rt(e.uiConfig.controls.hideTimeoutCursor),wt(()=>O(wo,ce(),!0))}),We(()=>{r(lr),f(),fe(),wt(()=>Rd(r(lr),f(),fe()))}),We(()=>{r(oo),W(),ie(),Pe(),wt(()=>{let be=ie()||Pe();Rd(r(oo),W(),be)})}),We(()=>{let be=ee();be&&(W(),wt(()=>wl(be,W(),Mn)))}),We(()=>{let be=N();be&&(W(),wt(()=>L1(be,W(),To)))}),We(()=>{var be;!Ue()&&$()&&(wt(()=>Lo.set(!1)),(be=Vt())==null||be.focus())}),We(()=>{w()&&Ho()});let Qn=K("video360"),mr=Y(void 0),Yr=be=>{wr.set(Bn(sr(),{title:r(mr)},"title",be))},fs=(be,It)=>{var ot,Et;let Si=(Et=(ot=e.store.callbacks)==null?void 0:ot.uiInfo)==null?void 0:Et.onUpcomingLiveViewStateChanged;if(!Si)return;let Ii=!!It,bo=z(z({},Bn(r(Vi),{upcomingLiveScreen:It},"upcomingLiveScreen",Ii)),be);Si(bo)};var Zr=Ax();Ct("blur",sa,Ho);var Ri=ge(Zr);Ri.__mousemove=Mt;var qe=_(Ri);let ei=g(()=>s()==="ads"),Ei=g(()=>r(pr)?tn:void 0);rt(Qf(qe,{toggleFullscreen:An,hideContextMenu:Ho,showHotKeyHelpers:ho,showKeyMap:nn,get isAds(){return r(ei)},get fakePlayButtonHandler(){return r(Ei)},get nextButtonActive(){return oe()},get prevButtonActive(){return qt()},children:(be,It)=>{var Si=kx(),Ii=ge(Si);za(Ii,{get hideCursor(){return r(Er)},onClick:go,onContextMenu:kr,onMouseDown:_i,onMouseUp:vo,onDblClick:io,get videoContainer(){return bt()},set videoContainer(Et){bt(Et)}});var bo=P(Ii,2);fa(bo,()=>"slot",!1,(Et,Ni)=>{Ae(Et,()=>({name:Ua}))});var ot=P(bo,2);pa(ot,_e,Et=>{var Ni=Ix(),sn=ge(Ni);let Uo=g(()=>s()!=="thumb"||a()||hi&&e.autoplay);Da(sn,{get hidden(){return r(Uo)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var $o=P(sn,2);Av($o,{});var Ar=P($o,2);{var Xr=je=>{let si=g(()=>{var Wo;return(Wo=e.live)==null?void 0:Wo.startTime});dc(je,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(si)},onUpcomingLiveViewStateChanged:fs})};L(Ar,je=>{s()==="LiveWaitingStart"&&je(Xr)})}var bi=P(Ar,2);{var Ui=je=>{Ha(je,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};L(bi,je=>{s()==="LiveWaitingRecover"&&je(Ui)})}var hn=P(bi,2);{var gr=je=>{Ha(je,{kind:"record",get thumbUrl(){return e.thumbUrl}})};L(hn,je=>{s()==="LiveWaitingRecord"&&je(gr)})}var hr=P(hn,2);{var zo=je=>{var si=Sx();let Wo;var Jr=_(si);Pd(Jr,{get adsSlotId(){return gt()},get adsParams(){return Tt()},get adsPreviewParam(){return Qe()},get adsAutoplayParam(){return Kt()},get duration(){return ti()}}),h(si),B(bn=>Wo=te(si,1,"ads-container svelte-jtgjmv",null,Wo,bn),[()=>({hidden:s()!=="ads"})]),b(je,si)};L(hr,je=>{e.showAds&&Ve()&&je(zo)})}var Ys=P(hr,2);{var qa=je=>{let si=g(()=>!tt()&&e.showAutoplayNext&&S());Kf(je,{get title(){return $e()},get thumb(){return Ce()},get isHide(){return r(si)},clickCloseIcon:()=>O(qr,!0)})};L(Ys,je=>{r(Pn)&&$e()&&Ce()&&je(qa)})}var $t=P(Ys,2);{var ut=je=>{let si=g(()=>!p());rv(je,{get title(){return e.title},get isHidden(){return r(si)},onVisibilityChanged:Yr,get ref(){return r(mr)},set ref(Wo){O(mr,Wo,!0)}})};L($t,je=>{r(Tr)&&je(ut)})}var no=P($t,2);{var _n=je=>{let si=g(()=>s()==="video"&&p());ac(je,{get isShifted(){return r(si)}})};L(no,je=>{H()&&je(_n)})}var zi=P(no,2);{var ci=je=>{var si=Cx(),Wo=_(si);Ed(Wo,{get"aria-label"(){return Qn}}),h(si),b(je,si)};L(zi,je=>{he()&&je(ci)})}var Oi=P(zi,2);{var Zs=je=>{lc(je,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return ue()}})};L(Oi,je=>{pe()&&je(Zs)})}var Ga=P(Oi,2);{var up=je=>{Oa(je,{get shifted(){return p()},get captions(){return ve()},get position(){return se()},get playerSize(){return D()}})};L(Ga,je=>{me().value!=="off"&&je(up)})}var Tc=P(Ga,2);{var pp=je=>{var si=Tx();si.__contextmenu=kr,si.__click=[wx,W,yt,f,co,Ho];var Wo=_(si);Ba(Wo,{}),h(si),b(je,si)};L(Tc,je=>{a()&&je(pp)})}var Ec=P(Tc,2);{var fp=je=>{let si=g(()=>s()==="thumb"||s()==="LiveWaitingStart"||s()==="LiveWaitingRecover"||s()==="LiveWaitingRecord"),Wo=g(()=>s()==="ads"),Jr=g(()=>e.canRewindLive&&Ge()!==0);sc(je,{get bottomHidden(){return r(si)},get bottomNoSmooth(){return R()},get showControls(){return p()},get isAds(){return r(Wo)},get canRewindLive(){return r(Jr)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Yt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return jt()},get nextButtonActive(){return oe()},get prevButtonActive(){return qt()},get isOneVideoPlaylist(){return le()},customFullscreenSupported:Cr,toggleFullscreen:An,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return r(Un)},set playerControlsWrapperRef(bn){O(Un,bn,!0)},get playerControlsRef(){return r(zn)},set playerControlsRef(bn){O(zn,bn,!0)}})};L(Ec,je=>{Ve()&&je(fp)})}var Ic=P(Ec,2);{var mp=je=>{var si=Ex(),Wo=_(si);let Jr=g(()=>{var bn;return(bn=r(zn))==null?void 0:bn.clientHeight});fc(Wo,{get supportLink(){return e.supportLink},get playerControlsHeight(){return r(Jr)},returnFocus:()=>{var bn;return(bn=Vt())==null?void 0:bn.focus()},get ref(){return r(lr)},set ref(bn){O(lr,bn,!0)}}),h(si),b(je,si)};L(Ic,je=>{!pe()&&s()!=="ads"&&je(mp)})}var kc=P(Ic,2);let Xs=g(()=>!r(us));Ld(kc,{get isLive(){return et()},get isHidden(){return r(Xs)},get isPlaying(){return J()},get position(){return se()},get duration(){return Ge()}});var Pc=P(kc,2);tv(Pc,{get data(){return Fi}});var zl=P(Pc,2);zf(zl,{get supportLink(){return e.supportLink},returnFocus:()=>{var je;return(je=Vt())==null?void 0:je.focus()},get visible(){return W()},get playerContainerRef(){return r(Vi)},get controlsContainerRef(){return r(Un)},get position(){return Le()},get menuElementRef(){return r(oo)},set menuElementRef(je){O(oo,je,!0)}});var Wl=P(zl,2);{var vp=je=>{mc(je,{onClose:cr,onSelectAutoQuality:()=>{Jo("auto"),cr()}})};L(Wl,je=>{r(Kr)&&je(vp)})}var Kl=P(Wl,2);{var ql=je=>{Ea(je,{})};L(Kl,je=>{r(Oo)&&je(ql)})}var Gl=P(Kl,2);{var gp=je=>{Zf(je,{})};L(Gl,je=>{Ie()&&je(gp)})}var Ac=P(Gl,2);{var hp=je=>{Od(je,{})};L(Ac,je=>{Ze()&&je(hp)})}b(Et,Ni)}),b(be,Si)},$$slots:{default:!0}}),be=>Vt(be),()=>Vt());var Eo=P(qe,2);rt(Eo,be=>O(mt,be),()=>r(mt)),h(Ri),rt(Ri,be=>O(Vi,be),()=>r(Vi));var Fo=P(Ri,2);{var vr=be=>{var It=Px();b(be,It)};L(Fo,be=>{at()&&be(vr)})}Ct("mouseenter",Ri,Qr),Ct("mouseleave",Ri,jr),Ct("click",Ri,rn,!0),Ct("focusin",Ri,ps,!0),b(t,Zr),U(),o()}ct(["mousemove","contextmenu","click"]);var Qs=require("@vkontakte/videoplayer-core/es2015"),R0=require("@vkontakte/videoplayer-shared/es2015");var Lx=A('<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),Vx=A("<div><!></div>"),Rx={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;
338
+ }`};function Mv(t,e){U(e,!0),G(t,xx);let[i,o]=Ue(),n=()=>S(l,"$isPlaying$",i),s=()=>S(d,"$aboutToGoNextVideo",i),{state:{isPlaying$:l},ui:{aboutToGoNextVideo:d},actions:a}=Ie(),{features:{playbackStatusShow:u,playbackStatusAnimationDuration:f,playbackStatusNextVideoAnimationDuration:v}}=At(),p=0,y=Y(null),w=Y(!1);Ge(()=>{O(y,n()?zr:ws,!0)}),Ge(()=>{O(y,s()?Ws:null,!0)}),Ge(()=>{if(u)return p=window.setTimeout(()=>{p=0,s()&&r(y)===Ws&&(s()==="next"?a.internal.nextVideoClick(!1):a.internal.prevVideoClick(!1)),O(y,null)},r(y)!==Ws?f:v),()=>{p&&(window.clearTimeout(p),p=0)}}),Ge(()=>{n()&&!r(w)&&(O(w,!0),O(y,null))});var $=qe(),C=he($);{var T=I=>{var M=qe(),k=he(M);ua(k,()=>r(y),E=>{var R=yx(),X=_(R),D=_(X);let H=g(()=>s()==="prev");ki(D,()=>r(y),(K,J)=>{J(K,{width:"40",height:"40",viewBox:"0 0 24 24",get isPrev(){return r(H)}})}),h(X),h(R),B(()=>rt(X,`animation-duration: ${r(y)!==Ws?f:v}ms`)),b(E,R)}),b(I,M)};V(C,I=>{r(y)&&u&&I(T)})}b(t,$),z(),o()}var wx=A('<div><div data-testid="video-container"></div></div>'),Sx={hash:"svelte-1czns9r",code:`.video-wrapper.svelte-1czns9r,
339
+ .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 Ua(t,e){U(e,!0),G(t,Sx);let[i,o]=Ue(),n=()=>S(f,"$rotateAlpha",i),s=()=>S(v,"$playerSize",i),l=()=>S(u,"$playerPhase",i),d=()=>S(p,"$isPlaying$",i),a=m(e,"videoContainer",15),{playerPhase:u,ui:{rotateAlpha:f,playerSize:v},state:{isPlaying$:p}}=Ie(),{isSmoothVideoRotate:y}=At(),w=g(()=>a()&&n()%180?s().height/s().width:1);var $=wx();let C;$.__contextmenu=function(...M){var k;(k=e.onContextMenu)==null||k.apply(this,M)},$.__mousedown=function(...M){var k;(k=e.onMouseDown)==null||k.apply(this,M)},$.__mouseup=function(...M){var k;(k=e.onMouseUp)==null||k.apply(this,M)},$.__click=function(...M){var k;(k=e.onClick)==null||k.apply(this,M)},$.__dblclick=function(...M){var k;(k=e.onDblClick)==null||k.apply(this,M)};var T=_($);let I;nt(T,M=>a(M),()=>a()),h($),B((M,k)=>{C=te($,1,"video-wrapper svelte-1czns9r",null,C,M),I=te(T,1,"video-container svelte-1czns9r",null,I,k),rt(T,`transform: rotate(${n()}deg) scale(${r(w)})`),ze(T,"data-is-playing",d())},[()=>({hidden:l()!=="video",nocursor:e.hideCursor}),()=>({"fast-rotate":!y})]),b(t,$),z(),o()}ft(["contextmenu","mousedown","mouseup","click","dblclick"]);var Cx=(t,e,i,o,n,s)=>{if(t.stopPropagation(),e()||o()){s();return}},Tx=A("<div><!></div>"),Ix=A('<div class="spherical-video-icon svelte-jtgjmv"><!></div>'),Ex=A("<div><!></div>"),kx=A('<div class="settings-menu svelte-jtgjmv"><!></div>'),Px=A("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),Ax=A("<!> <!> <!>",1),Mx=A('<div class="blocked svelte-jtgjmv"></div>'),Lx=A('<div class="player-wrapper svelte-jtgjmv"><!> <div class="overlay-container"></div></div> <!>',1),Vx={hash:"svelte-jtgjmv",code:".player-wrapper.svelte-jtgjmv {position:absolute;width:100%;height:100%;}.blocked.svelte-jtgjmv {position:absolute;width:100%;height:100%;z-index:var(--overlay-container-z-index);}.player-wrapper.svelte-jtgjmv .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-jtgjmv {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.ads-container.svelte-jtgjmv {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-jtgjmv {z-index:var(--ads-container-z-index);background:var(--black);}.settings-menu.svelte-jtgjmv {position:absolute;z-index:var(--settings-menu-z-index);bottom:57px;right:18px;left:0;transition:opacity 0.2s, visibility 0.2s;}"};function Vv(t,e){U(e,!0),G(t,Vx);let[i,o]=Ue(),n=()=>S(qn,"$notificationsToShow$",i),s=()=>S(qi,"$playerPhase",i),l=()=>S(Oi,"$isLoaderVisible",i),d=()=>S(mi,"$adPlaybackState",i),a=()=>S(ct,"$crashed",i),u=()=>S(Yo,"$isInteractiveTime$",i),f=()=>S(Kt,"$settingsMenuVisible",i),v=()=>S(Cn,"$isInteractiveExpectation$",i),p=()=>S(Ro,"$controlsVisible",i),y=()=>S(ji,"$touched",i),w=()=>S(ar,"$graphIsOpened$",i),$=()=>S(Yt,"$isFullscreen",i),C=()=>S(Sr,"$autoplayNextEnabled$",i),T=()=>S(ci,"$postrollPassed",i),I=()=>S(Gi,"$isEnded$",i),M=()=>S(Ii,"$cursorInside",i),k=()=>S(Wn,"$isControlsAvailable",i),E=()=>S(Kn,"$fakeIsPlaying$",i),R=()=>S(si,"$bottomNoSmooth",i),X=()=>S(Mi,"$interactiveTimeIndicator",i),D=()=>S(an,"$playerSize",i),H=()=>S(Ti,"$is3DVideo",i),K=()=>S(Vt,"$contextMenuVisible$",i),J=()=>S(fi,"$playbackState$",i),j=()=>S(No,"$hotKeyMapData",i),ce=()=>S(no,"$scrubbingInProgress",i),oe=()=>S(jo,"$volumeChangingInProgress",i),pe=()=>S(F,"$chromecastConnected$",i),be=()=>S(cn,"$controlsTimeoutActive",i),fe=()=>S(di,"$settingsMenuOpenedByKeyboard",i),ke=()=>S(Ln,"$contextMenuOpenedByKeyboard$",i),ne=()=>S(Zn,"$contextMenuOpenedByHotKey$",i),Le=()=>S(Do,"$contextMenuButtonRef$",i),se=()=>S(Vn,"$contextMenuLastActiveElem$",i),N=()=>S(Ai,"$isFullscreenOpenedByKeyboard",i),Be=()=>S(ot,"$language$",i),ue=()=>S(wt,"$icon3DVideoVisible",i),ge=()=>S(Bt,"$chromecastDeviceName$",i),ee=()=>S(ro,"$currentSubtitle$",i),ve=()=>S(sn,"$currentSubtitleCaptions$",i),De=()=>S(dt,"$position$",i),me=()=>S(jt,"$duration$",i),at=()=>S(xt,"$isLive$",i),Z=()=>S(et,"$isPlaying$",i),Me=()=>S(Yi,"$contextMenuPosition$",i),Ee=()=>S(Tn,"$showHotKeyMap",i),We=()=>S(Tt,"$debugPanelVisible",i),tt=()=>S(zn,"$userActionsDisabled$",i),bt=m(e,"videoContainer",15),Mt=m(e,"adsSlotId",3,void 0),mt=m(e,"adsParams",3,void 0),Qe=m(e,"adsPreviewParam",3,void 0),Gt=m(e,"adsAutoplayParam",3,void 0),ii=m(e,"duration",3,void 0),Qt=m(e,"logoTargetUrl",3,""),Xt=m(e,"showNextPrevButtons",3,!1),le=m(e,"nextButtonActive",3,!1),Ot=m(e,"prevButtonActive",3,!1),we=m(e,"endScreenVideoTitle",3,void 0),_e=m(e,"endScreenVideoThumb",3,void 0),de=m(e,"isOneVideoPlaylist",3,!1),Ne=m(e,"shadowRootContainer",3,void 0),Fe=m(e,"outerContainerRef",3,void 0),Ve=m(e,"playerStarted",3,!1),Ke=m(e,"fullScreenTarget",3,void 0),He=m(e,"showMiniTimer",3,!1),Xe=m(e,"showEndScreen",3,!0),kt=m(e,"keyboardControls",15),Jt=e.store.getLogger().createComponentLog("Root component"),ot=e.store.interfaceLanguage$,fi=e.store.state.playbackState$,mi=e.store.ads.playbackState,dt=e.store.state.positionWithScrubbing$,jt=e.store.state.duration$,qi=e.store.playerPhase,Yt=e.store.ui.isFullscreen,Ai=e.store.ui.isFullscreenOpenedByKeyboard,Ro=e.store.ui.controlsVisible,Kt=e.store.ui.settingsMenu.visible$,di=e.store.ui.settingsMenu.openedByBtnKeyboard$,no=e.store.ui.scrubbingInProgress,jo=e.store.ui.volumeChangingInProgress,Vt=e.store.ui.contextMenu.visible$,Tt=e.store.ui.debugPanelVisible,Oi=e.store.state.isLoaderVisible,Gi=e.store.state.isEnded$,F=e.store.state.chromecastConnected$,Bt=e.store.state.chromecastDeviceName$,ci=e.store.ads.postrollPassed,xt=e.store.state.isLive$,et=e.store.state.isPlaying$,ct=e.store.state.crashed$,ei=e.store.webApi.annotationsApi,Dt=e.store.webApi.pictureInPictureApi,ro=e.store.state.currentSubtitle$,sn=e.store.state.currentSubtitleCaptions$,an=e.store.ui.playerSize,Ti=e.store.ui.is3DVideo,wt=e.store.ui.icon3DVideoVisible,Bi=e.store.state.isInteractive,Yo=e.store.state.isInteractiveTime$,Cn=e.store.state.isInteractiveExpectation$,Qi=e.store.state.hasInteractiveBranches,ji=e.store.ui.touched,No=e.store.ui.modals.hotKeyMap.data,Tn=e.store.ui.modals.hotKeyMap.show,Un=e.store.ui.overlayContainer$,Mi=e.store.ui.controls.interactiveTimeIndicator,In=e.store.state.showInteractiveTimeIndicator,Yi=e.store.ui.contextMenu.position$,wo=e.store.actions.internal.setQuality,ln=e.store.actions.internal.closeSettingsMenu,Sr=e.store.ui.autoplayNextEnabled$,zn=e.store.ui.userActionsDisabled,Wn=e.store.ui.isControlsAvailable,Cr=e.store.ui.videoTitleInfo,Tr=e.store.actions.internal.getVideoElement,{fakeIsPlaying$:Kn,notifications$:dn,graphIsOpened$:ar}=xo(),so=Y(void 0),Zo=Y(void 0),lr=Y(void 0),En=Y(void 0),Ir,dr,cr;No.set(E1());let{closeNotification:Er,notificationsToShow$:qn}=dn,kn=g(()=>!!n().slow_video),ur=()=>Er("slow_video"),Kr=g(()=>(s()==="video"&&l()||s()==="ads"&&d()==="inactive")&&!a()),st=Y(void 0),si=re(!1),pr,cn=re(!1),Xo=re(),Ii=re(!1),Di=Y(!1),ao=Y(!1),Pn=Y(!1),Oo=Y(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),Gn=g(()=>u()&&!f()&&!(r(Di)||r(ao))&&!(r(Pn)&&!v())),fr=!0,Qn=g(()=>e.uiConfig.features.thumbTimer&&He()&&s()==="video"&&!p()&&!a()&&!Bi&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),kr=g(()=>s()==="video"&&!w()&&$()),qr=Y(!1),An=g(()=>(Xe()||e.showAutoplayNext&&C())&&!!we()&&!!_e()&&(e.showAds&&T()||!e.showAds)&&I()&&!a()&&!r(qr)),Gr=g(()=>M()&&!(p()||r(An))&&!u()&&k()),mr=Y(!1),So=g(()=>E()!==null),{toggle:Jo}=Kn,oi=!1,Bo=null;Dt==null||Dt.setContext(jl());let ds=()=>{e.autoplay&&!Bi&&e.uiConfig.controls.showOnStartupAtAutoplay&&lt(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:ds});let Pr=()=>{window.clearTimeout(Ir),cn.set(!1)},Qr=()=>{window.clearTimeout(dr),Xo.set(null)},lt=Se=>{Pr(),cn.set(!0),Ir=window.setTimeout(()=>cn.set(!1),Se);let _t=Se-100;pr=window.setTimeout(()=>{R()&&si.set(!1)},_t>0?_t:Se)},vi=(Se,_t)=>{Qr(),Xo.set(_t),dr=window.setTimeout(()=>Xo.set(null),Se)},Co=Ti.subscribe(Se=>{wt.set(Se),Se&&(window.clearTimeout(cr),cr=window.setTimeout(()=>wt.set(!1),e.uiConfig.controls.hide360IconTimeout))}),lo=()=>St(null,null,function*(){var _t,ai,Ci,yo;let Se=Ns();if(Se){let it=Sd(),Et=uo();Se=it===Et||it===Ne()}if(Se){lt(e.uiConfig.controls.hideTimeoutFullscreen);try{yield Dt==null?void 0:Dt.exit()}catch(it){Jt({message:String(it)})}}Yt.set(Se),e.store.getAdmanWrapper().setFullscreen(Se),$()?(ai=(_t=e.store.callbacks)==null?void 0:_t.onFullscreenEnter)==null||ai.call(_t):(yo=(Ci=e.store.callbacks)==null?void 0:Ci.onFullscreenExit)==null||yo.call(Ci)}),Zi=Se=>{let{width:_t,height:ai}=Se.target;an.set({width:_t,height:ai})},co=()=>{let{width:Se,height:_t}=r(so).getBoundingClientRect();an.set({width:Se,height:_t})};zt(()=>{var _t;return wu(lo),e.uiConfig.features.annotationsInside&&(ei==null||ei.init(r(so))),ya(Dt)&&(Dt==null||Dt.assignPlayerContainer(r(so)),Dt==null||Dt.setExternalEventHandlers({resize:Zi,leavepictureinpicture:co})),e.interactiveContainer&&((_t=bt().parentElement)==null||_t.insertBefore(e.interactiveContainer,bt().nextSibling)),()=>{window.clearTimeout(Ir),window.clearTimeout(pr),window.clearTimeout(dr),window.clearTimeout(cr),Co(),Dt==null||Dt.dispose().catch(ai=>{Jt({message:String(ai)})}),Su(lo)}});let uo=()=>{let Se=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Fe()?r(so):Fe(),_t=Se.getRootNode(),ai=_t instanceof ShadowRoot?_t.host:_t,Ci=Ke()instanceof HTMLElement&&Ke().contains(ai);return e.uiConfig.allowChangingFullscreenTarget&&Ke()&&Ci?Ke():Se},un=()=>{Vt.set(!1)},wi=()=>{ln(),un()},jn=()=>St(null,null,function*(){if(!xu(document)){Jt({message:"fullscreen disabled"});return}un(),Ns()?(yield yu(document),Jt({message:"exit fullscreen"})):(Jt({message:"request fullscreen"}),yield $u(uo()))}),Yn=Se=>{w()||(Se.preventDefault(),Vt.set(!0),Yi.set({left:Se.clientX,top:Se.clientY}))};function cs(){Ii.set(!0),Bi||lt(e.uiConfig.controls.hideTimeoutCursor)}function jr(){Bi||(si.set(!0),lt(e.uiConfig.controls.hideTimeoutCursor))}function Yr(){Ii.set(!1),O(ao,!1),O(Di,!1),oi=!1,e.store.actions.internal.releaseCamera(),lt(e.uiConfig.controls.hideTimeout)}function po(Se){return Se?Se.offsetTop+po(Se.offsetParent):0}function Mn(Se){return Se?Se.offsetLeft+Mn(Se.offsetParent):0}function vr(Se){if(X()&&In){let _t=Se.currentTarget,ai=po(_t),Ci=Mn(_t),yo=Se.pageX-Ci,it=Se.pageY-ai,{left:Et,bottom:Ji,right:mn}=X(),Eo=mn-Et;return yo>=Et-Eo&&it<=Ji+Eo}}function ut(Se){if(r(so)){let _t=po(Se.currentTarget),ai=D().height,Ci=Se.pageY-_t;if(vr(Se)){O(ao,!1);return}Ci<40?O(ao,!0):Ci>ai-40?O(Di,!0):(O(ao,!1),f()||O(Di,!1))}}function Rt(Se){ut(Se),r(Gn)||lt(e.uiConfig.controls.hideTimeoutCursor),H()&&oi&&Bo&&e.store.actions.internal.moveCameraFocusPX(Bo.clientX-Se.clientX,Bo.clientY-Se.clientY,Se.timeStamp-Bo.timeStamp),Bo=Se}let Si=Se=>{Se.preventDefault(),Se.button===0&&(oi=!0,e.store.actions.internal.holdCamera()),lt(e.uiConfig.controls.hideTimeoutCursor)},fo=Se=>{Se.preventDefault(),Se.button===0&&(Bo=Se,oi=!1,e.store.actions.internal.releaseCamera()),lt(e.uiConfig.controls.hideTimeoutCursor)},_o=Se=>{Se.preventDefault(),fr&&(Jt({message:"double click on video"}),jn(),lt(e.uiConfig.controls.hideTimeoutCursor))},bo=Se=>{var _t;if(Se.preventDefault(),K()||f()){wi();return}if(!(I()&&!Qi)){if(r(So))return Jo();if((_t=kt())==null||_t.focus(),!Ve()){e.firstStart(),lt(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||J()!==Lv.PlaybackState.PLAYING)&&e.store.actions.internal.togglePlay(),lt(e.uiConfig.controls.hideTimeoutCursor)}},$o=Se=>{wi(),ji.set(!0),lt(e.uiConfig.controls.hideTimeout),Se&&vi(e.uiConfig.controls.hideHotKeyHelpers,Se)},To=()=>{var Se,_t;wi(),(Se=e.store.callbacks)!=null&&Se.onOpenHotKeyMap?(_t=e.store.callbacks)==null||_t.onOpenHotKeyMap(j()):Tn.update(ai=>!ai)},pn=()=>{ji.set(!0)},Ln=e.store.ui.contextMenu.openedByBtnKeyboard$,Do=e.store.ui.contextMenu.btnRef$,Hi=Y(void 0),Zn=e.store.ui.contextMenu.openedByHotKey$,Vn=e.store.ui.contextMenu.lastActiveElem$;Ge(()=>{Un.set(r(st))}),Ge(()=>{O(Pn,r(Oo)&&J()!==Lv.PlaybackState.PLAYING,!0),r(Oo)||Ct(()=>O(Oo,!0))}),Ge(()=>{Ro.set((r(Pn)||I()||f()||ce()||oe()||pe()||be())&&!r(Gn)&&(s()==="video"||s()==="ads")&&!a()&&k())}),Ge(()=>{!ce()&&r(mr)&&!u()&&lt(e.uiConfig.controls.hideTimeoutCursor),Ct(()=>O(mr,ce(),!0))}),Ge(()=>{r(En),f(),fe(),Ct(()=>Ad(r(En),f(),fe()))}),Ge(()=>{r(Hi),K(),ke(),ne(),Ct(()=>{let Se=ke()||ne();Ad(r(Hi),K(),Se)})}),Ge(()=>{let Se=Le();Se&&(K(),Ct(()=>xl(Se,K(),Ln)))}),Ge(()=>{let Se=se();Se&&(K(),Ct(()=>L1(Se,K(),Zn)))}),Ge(()=>{var Se;!N()&&$()&&(Ct(()=>Ai.set(!1)),(Se=kt())==null||Se.focus())}),Ge(()=>{w()&&wi()});let gr=q("video360"),Io=Y(void 0),us=Se=>{Cr.set(Hn(Tr(),{title:r(Io)},"title",Se))},Ar=(Se,_t)=>{var it,Et;let ai=(Et=(it=e.store.callbacks)==null?void 0:it.uiInfo)==null?void 0:Et.onUpcomingLiveViewStateChanged;if(!ai)return;let Ci=!!_t,yo=W(W({},Hn(r(so),{upcomingLiveScreen:_t},"upcomingLiveScreen",Ci)),Se);ai(yo)};var Zr=Lx();It("blur",ra,wi);var Xi=he(Zr);Xi.__mousemove=Rt;var Mr=_(Xi);let Ze=g(()=>s()==="ads"),ti=g(()=>r(So)?Jo:void 0);nt(jf(Mr,{toggleFullscreen:jn,hideContextMenu:wi,showHotKeyHelpers:$o,showKeyMap:To,get isAds(){return r(Ze)},get fakePlayButtonHandler(){return r(ti)},get nextButtonActive(){return le()},get prevButtonActive(){return Ot()},children:(Se,_t)=>{var ai=Ax(),Ci=he(ai);Ua(Ci,{get hideCursor(){return r(Gr)},onClick:bo,onContextMenu:Yn,onMouseDown:Si,onMouseUp:fo,onDblClick:_o,get videoContainer(){return bt()},set videoContainer(Et){bt(Et)}});var yo=P(Ci,2);pa(yo,()=>"slot",!1,(Et,Ji)=>{Pe(Et,()=>({name:Fa}))});var it=P(yo,2);ua(it,Be,Et=>{var Ji=Px(),mn=he(Ji);let Eo=g(()=>s()!=="thumb"||a()||Bi&&e.autoplay);Ba(mn,{get hidden(){return r(Eo)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var vn=P(mn,2);Mv(vn,{});var hr=P(vn,2);{var Lr=je=>{let li=g(()=>{var Uo;return(Uo=e.live)==null?void 0:Uo.startTime});rc(je,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(li)},onUpcomingLiveViewStateChanged:Ar})};V(hr,je=>{s()==="LiveWaitingStart"&&je(Lr)})}var bi=P(hr,2);{var Fi=je=>{Da(je,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};V(bi,je=>{s()==="LiveWaitingRecover"&&je(Fi)})}var gn=P(bi,2);{var ko=je=>{Da(je,{kind:"record",get thumbUrl(){return e.thumbUrl}})};V(gn,je=>{s()==="LiveWaitingRecord"&&je(ko)})}var _r=P(gn,2);{var Fo=je=>{var li=Tx();let Uo;var Zs=_(li);Td(Zs,{get adsSlotId(){return Mt()},get adsParams(){return mt()},get adsPreviewParam(){return Qe()},get adsAutoplayParam(){return Gt()},get duration(){return ii()}}),h(li),B(_n=>Uo=te(li,1,"ads-container svelte-jtgjmv",null,Uo,_n),[()=>({hidden:s()!=="ads"})]),b(je,li)};V(_r,je=>{e.showAds&&Ve()&&je(Fo)})}var Qs=P(_r,2);{var Ka=je=>{let li=g(()=>!Xe()&&e.showAutoplayNext&&C());qf(je,{get title(){return we()},get thumb(){return _e()},get isHide(){return r(li)},clickCloseIcon:()=>O(qr,!0)})};V(Qs,je=>{r(An)&&we()&&_e()&&je(Ka)})}var $t=P(Qs,2);{var yt=je=>{let li=g(()=>!p());sv(je,{get title(){return e.title},get isHidden(){return r(li)},onVisibilityChanged:us,get ref(){return r(Io)},set ref(Uo){O(Io,Uo,!0)}})};V($t,je=>{r(kr)&&je(yt)})}var mo=P($t,2);{var hn=je=>{let li=g(()=>s()==="video"&&p());oc(je,{get isShifted(){return r(li)}})};V(mo,je=>{H()&&je(hn)})}var hi=P(mo,2);{var ui=je=>{var li=Ix(),Uo=_(li);wd(Uo,{get"aria-label"(){return gr}}),h(li),b(je,li)};V(hi,je=>{ue()&&je(ui)})}var Li=P(hi,2);{var js=je=>{nc(je,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return ge()}})};V(Li,je=>{pe()&&je(js)})}var qa=P(Li,2);{var fp=je=>{Na(je,{get shifted(){return p()},get captions(){return ve()},get position(){return De()},get playerSize(){return D()}})};V(qa,je=>{ee().value!=="off"&&je(fp)})}var xc=P(qa,2);{var mp=je=>{var li=Ex();li.__contextmenu=Yn,li.__click=[Cx,K,Vt,f,Kt,wi];var Uo=_(li);Oa(Uo,{}),h(li),b(je,li)};V(xc,je=>{a()&&je(mp)})}var wc=P(xc,2);{var vp=je=>{let li=g(()=>s()==="thumb"||s()==="LiveWaitingStart"||s()==="LiveWaitingRecover"||s()==="LiveWaitingRecord"),Uo=g(()=>s()==="ads"),Zs=g(()=>e.canRewindLive&&me()!==0);ic(je,{get bottomHidden(){return r(li)},get bottomNoSmooth(){return R()},get showControls(){return p()},get isAds(){return r(Uo)},get canRewindLive(){return r(Zs)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Qt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Xt()},get nextButtonActive(){return le()},get prevButtonActive(){return Ot()},get isOneVideoPlaylist(){return de()},customFullscreenSupported:fr,toggleFullscreen:jn,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return r(Zo)},set playerControlsWrapperRef(_n){O(Zo,_n,!0)},get playerControlsRef(){return r(lr)},set playerControlsRef(_n){O(lr,_n,!0)}})};V(wc,je=>{Ve()&&je(vp)})}var Sc=P(wc,2);{var gp=je=>{var li=kx(),Uo=_(li);let Zs=g(()=>{var _n;return(_n=r(lr))==null?void 0:_n.clientHeight});dc(Uo,{get supportLink(){return e.supportLink},get playerControlsHeight(){return r(Zs)},returnFocus:()=>{var _n;return(_n=kt())==null?void 0:_n.focus()},get ref(){return r(En)},set ref(_n){O(En,_n,!0)}}),h(li),b(je,li)};V(Sc,je=>{!pe()&&s()!=="ads"&&je(gp)})}var Cc=P(Sc,2);let hp=g(()=>!r(Qn));kd(Cc,{get isLive(){return at()},get isHidden(){return r(hp)},get isPlaying(){return Z()},get position(){return De()},get duration(){return me()}});var Tc=P(Cc,2);iv(Tc,{get data(){return Xo}});var Ic=P(Tc,2);Wf(Ic,{get supportLink(){return e.supportLink},returnFocus:()=>{var je;return(je=kt())==null?void 0:je.focus()},get visible(){return K()},get playerContainerRef(){return r(so)},get controlsContainerRef(){return r(Zo)},get position(){return Me()},get menuElementRef(){return r(Hi)},set menuElementRef(je){O(Hi,je,!0)}});var Ys=P(Ic,2);{var _p=je=>{cc(je,{onClose:ur,onSelectAutoQuality:()=>{wo("auto"),ur()}})};V(Ys,je=>{r(kn)&&je(_p)})}var Ul=P(Ys,2);{var Ec=je=>{Ta(je,{})};V(Ul,je=>{r(Kr)&&je(Ec)})}var kc=P(Ul,2);{var Pc=je=>{Xf(je,{})};V(kc,je=>{Ee()&&je(Pc)})}var zl=P(kc,2);{var Ac=je=>{Ld(je,{})};V(zl,je=>{We()&&je(Ac)})}b(Et,Ji)}),b(Se,ai)},$$slots:{default:!0}}),Se=>kt(Se),()=>kt());var gi=P(Mr,2);nt(gi,Se=>O(st,Se),()=>r(st)),h(Xi),nt(Xi,Se=>O(so,Se),()=>r(so));var fn=P(Xi,2);{var Ho=Se=>{var _t=Mx();b(Se,_t)};V(fn,Se=>{tt()&&Se(Ho)})}It("mouseenter",Xi,cs),It("mouseleave",Xi,Yr),It("click",Xi,pn,!0),It("focusin",Xi,jr,!0),b(t,Zr),z(),o()}ft(["mousemove","contextmenu","click"]);var qs=require("@vkontakte/videoplayer-core/es2015"),R_=require("@vkontakte/videoplayer-shared/es2015");var Rx=A('<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),Nx=A("<div><!></div>"),Ox={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;
342
340
  animation: svelte-nhq2ld-blink 500ms infinite;opacity:0;}.triangle.right.svelte-nhq2ld:nth-child(1),
343
341
  .triangle.left.svelte-nhq2ld:nth-child(3) {animation-delay:0ms;}.triangle.right.svelte-nhq2ld:nth-child(2),
344
342
  .triangle.left.svelte-nhq2ld:nth-child(2) {animation-delay:100ms;}.triangle.right.svelte-nhq2ld:nth-child(3),
@@ -354,7 +352,7 @@ Try switching the\xA0quality to\xA0Auto.`},y1=bb;var xs=new Map;xs.set(hl.Interf
354
352
  100% {
355
353
  opacity: 0;
356
354
  }
357
- }.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 ju(t,e){F(e,!0),q(t,Rx);let i=m(e,"seekStep",3,0),o=Y(!1),n=0,s=0,l=Y(ri(i())),d=v=>{v.stopPropagation(),s+=1,O(l,i()*(s-1)),s===1?e.handleSingleFirstClick(v):(O(o,!0),e.handleSecondClick()),window.clearTimeout(n),n=window.setTimeout(()=>{s=0,O(o,!1)},300)};cn(()=>{window.clearTimeout(n)});var a=Vx();a.__click=d;var u=_(a);{var f=v=>{var p=Lx(),y=ge(p),w=P(y,2),$=_(w),S=_($),T=P(S,2),E=P(T,2);h($);var V=P($,2),k=_(V,!0);h(V),h(w),B(I=>{var R,Z,D,H;te(y,1,`semicircle ${(R=e.side)!=null?R:""}`,"svelte-nhq2ld"),te(S,1,`triangle ${(Z=e.side)!=null?Z:""}`,"svelte-nhq2ld"),te(T,1,`triangle ${(D=e.side)!=null?D:""}`,"svelte-nhq2ld"),te(E,1,`triangle ${(H=e.side)!=null?H:""}`,"svelte-nhq2ld"),ye(k,I)},[()=>K("doubletap_seek_step",{seconds:r(l).toFixed(0)})]),b(v,p)};L(u,v=>{r(o)&&v(f)})}h(a),B(()=>{var v;return te(a,1,`double-click-area ${(v=e.side)!=null?v:""}`,"svelte-nhq2ld")}),b(t,a),U()}ct(["click"]);var Nx=(t,e,i)=>{e(!1),i()},Ox=A('<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),Bx={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 Vv(t,e){F(e,!0),q(t,Bx);let[i,o]=He(),n=()=>C(d,"$autoplayNextEnabled$",i),s=()=>C(a,"$timerNextVideoRunning$",i),l=ke(),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,y=l.actions.internal.nextVideoAnnouncementCancel,w=()=>{u(!1),p()},$=()=>{e.clickCloseIcon(),y()};Dt(()=>{e.isHide||f(),e.isHide&&n()&&(u(!1),p())});var S=ze(),T=ge(S);{var E=V=>{var k=Ox(),I=P(ge(k),2),R=_(I),Z=_(R),D=_(Z,!0);h(Z);var H=P(Z,2);Ta(H,{onClick:$}),h(R);var W=P(R,2);W.__click=[Nx,u,v];var X=_(W),j=_(X),ce=_(j);let re;var pe=P(ce,2);{var xe=ee=>{Bd(ee,{get isRunning(){return s()},onTimerEnded:w})};L(pe,ee=>{n()&&ee(xe)})}h(j),h(X);var fe=P(X,2),ie=_(fe),Pe=_(ie,!0);h(ie),h(fe),h(W),h(I),B((ee,N)=>{ye(D,ee),st(j,`background-image: url('${e.thumb}')`),re=te(ce,1,"thumb-overlay svelte-1qdxi6t",null,re,N),ye(Pe,e.title)},[()=>n()?K("end_screen_next_video"):K("end_screen_recommended_video"),()=>({withOpacity:n()})]),b(V,k)};L(T,V=>{e.isHide||V(E)})}b(t,S),U(),o()}ct(["click"]);var P0=require("@vkontakte/videoplayer-core/es2015");var A0=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Dt(()=>{P0.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))}),cn(()=>{i==null||i(),clearTimeout(o)})};var M0=require("@vkontakte/videoplayer-core/es2015");var Yu=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 L0=require("@vkontakte/videoplayer-core/es2015"),V0=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:n,availableSubtitlesList$:s,currentFormat$:l,availableTextTracks$:d}=t.state,a=null,u=()=>e().querySelector("video"),f=()=>L0.clientChecker.device.isIOS&&Se(l)===M0.VideoFormat.DASH_LIVE_CMAF,v=()=>{a==null||a(),a=null},p=y=>{if(v(),!f()||!y)return;let w=u();if(!w)return;let $=new Yu(w),S=Se(d),T=Se(s),E=Se(n);for(let I of S)T.some(Z=>Z.value===I.id)&&$.attach(I,E.value===I.id);let V=d.subscribe(I=>{for(let R of I)$.updateSrc(R)}),k=()=>{let I=$.getCurrentShowingId();o(Se(s).find(R=>R.value===I))};w.textTracks.addEventListener("change",k),a=()=>{V(),$.detachAll(),w.textTracks.removeEventListener("change",k)}};Dt(()=>i.subscribe(p)),cn(v)};var Dx=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},Hx=A("<!> <!>",1),Fx=A("<div><!></div>"),Ux=A('<div class="spherical-video-icon svelte-7yl31d"><!></div>'),zx=A("<div><!></div>"),Wx=A('<div class="settings-mobile svelte-7yl31d"><!></div>'),Kx=A("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),qx=A('<div class="player-wrapper svelte-7yl31d" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),Gx={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 Rv(t,e){var Gr,Ir;F(e,!0),q(t,Gx);let[i,o]=He(),n=()=>C(Be,"$playerPhase",i),s=()=>C(vi,"$isLoaderVisible",i),l=()=>C(Ke,"$adPlaybackState",i),d=()=>C(Vo,"$crashed",i),a=()=>C(sr,"$notificationsToShow$",i),u=()=>C(Ne,"$playbackState$",i),f=()=>C($e,"$graphIsOpened$",i),v=()=>C(it,"$interactiveHideMobileControls",i),p=()=>C(Lo,"$isEnded$",i),y=()=>C(pn,"$isInteractiveExpectation$",i),w=()=>C(Vt,"$controlsVisible",i),$=()=>C(hi,"$touched",i),S=()=>C(Tn,"$autoplayNextEnabled$",i),T=()=>C(Ht,"$postrollPassed",i),E=()=>C(en,"$bottomNoSmooth",i),V=()=>C(gi,"$videoSize",i),k=()=>C(vt,"$playerSize",i),I=()=>C(tt,"$isFullscreen",i),R=()=>C(Ve,"$position$",i),Z=()=>C(Xe,"$duration$",i),D=()=>C(En,"$loadedMetadata",i),H=()=>C(yi,"$settingsMenuVisible",i),W=()=>C(nt,"$scrubbingInProgress",i),X=()=>C(ni,"$volumeChangingInProgress",i),j=()=>C(lo,"$chromecastConnected$",i),ce=()=>C(Qt,"$isControlsAvailable",i),re=()=>C(Zo,"$isInteractiveTime$",i),pe=()=>C(yt,"$isActiveLive",i),xe=()=>C(mi,"$settingsMenuOpenedByKeyboard",i),fe=()=>C(le,"$language$",i),ie=()=>C(Pt,"$disabledControls$",i),Pe=()=>C(xi,"$is3DVideo",i),ee=()=>C(Wt,"$icon3DVideoVisible",i),N=()=>C(co,"$chromecastDeviceName$",i),Ue=()=>C(li,"$currentSubtitle$",i),_e=()=>C(di,"$currentSubtitleCaptions$",i),he=()=>C(Re,"$realDuration$",i),ue=()=>C(ui,"$isLive$",i),me=()=>C(Ft,"$isPlaying$",i),ve=()=>C(Zt,"$debugPanelVisible",i),se=m(e,"videoContainer",15),Ge=m(e,"adsSlotId",3,void 0),et=m(e,"adsParams",3,void 0),J=m(e,"adsPreviewParam",3,void 0),Le=m(e,"adsAutoplayParam",3,void 0),Ie=m(e,"duration",3,void 0),Ze=m(e,"logoTargetUrl",3,""),at=m(e,"showNextPrevButtons",3,!1),bt=m(e,"nextButtonActive",3,!1),gt=m(e,"prevButtonActive",3,!1),Tt=m(e,"endScreenVideoTitle",3,void 0),Qe=m(e,"endScreenVideoThumb",3,void 0),Kt=m(e,"isOneVideoPlaylist",3,!1),ti=m(e,"showMiniTimer",3,!1),Yt=m(e,"fullScreenTarget",3,void 0),jt=m(e,"playerStarted",3,!1),oe=m(e,"showEndScreen",3,!0),{notifications$:qt,graphIsOpened$:$e}=yo(),Ce=e.store.getLogger().createComponentLog("Root component"),le=e.store.interfaceLanguage$,Ne=e.store.state.playbackState$,Ke=e.store.ads.playbackState,Ve=e.store.state.positionWithScrubbing$,Xe=e.store.state.duration$,Be=e.store.playerPhase,tt=e.store.ui.isFullscreen,Vt=e.store.ui.controlsVisible,Qt=e.store.ui.isControlsAvailable,it=e.store.ui.interactiveHideMobileControls,yi=e.store.ui.settingsMenu.visible$,mi=e.store.ui.settingsMenu.openedByBtnKeyboard$,nt=e.store.ui.scrubbingInProgress,ni=e.store.ui.volumeChangingInProgress,Zt=e.store.ui.debugPanelVisible,vi=e.store.state.isLoaderVisible,Lo=e.store.state.isEnded$,lo=e.store.state.chromecastConnected$,co=e.store.state.chromecastDeviceName$,Ht=e.store.ads.postrollPassed,ui=e.store.state.isLive$,Ft=e.store.state.isPlaying$,yt=e.store.state.isActiveLive$,Hi=e.store.state.isRewindableLive$,Vo=e.store.state.crashed$,G=e.store.webApi.annotationsApi,dt=e.store.webApi.pictureInPictureApi,gi=e.store.state.videoSize$,li=e.store.state.currentSubtitle$,di=e.store.state.currentSubtitleCaptions$,Re=e.store.state.duration$,vt=e.store.ui.playerSize,xi=e.store.ui.is3DVideo,Wt=e.store.ui.icon3DVideoVisible,eo=e.store.state.isInteractive,Zo=e.store.state.isInteractiveTime$,pn=e.store.state.isInteractiveExpectation$,Mi=e.store.state.hasInteractiveBranches,Pt=e.store.ui.controls.disabledControls$,hi=e.store.ui.touched,Xo=e.store.ui.overlayContainer$,Tn=e.store.ui.autoplayNextEnabled$,En=e.store.state.loadedMetadata$,pi=e.store.actions.internal.closeSettingsMenu,Ro=(Gr=e.store.callbacks)==null?void 0:Gr.onDisabledPlayPrevChapterClick,Hn=(Ir=e.store.callbacks)==null?void 0:Ir.onDisabledSeekToInteractiveClick,Fn=e.store.actions.internal.setQuality,Li=Y(void 0),to=Y(void 0),No=Y(void 0),Jo=Y(void 0),nr,uo,zr=g(()=>(n()==="video"&&s()||n()==="ads"&&l()==="inactive")&&!d()),rr=Y(void 0),{closeNotification:wr,notificationsToShow$:sr}=qt,Wr=g(()=>!!a().slow_video),ar=()=>wr("slow_video"),en=ae(!1),Sr,Vi=Y(!1),Un=g(()=>u()!==Qs.PlaybackState.PLAYING),zn=Y(!1),lr=g(()=>f()||v()||!r(Vi)&&(p()&&!!Mi||r(Un)&&y())),Wn=Y(!0),dr=g(()=>e.uiConfig.features.thumbTimer&&ti()&&n()==="video"&&!w()&&!d()&&!eo&&(e.uiConfig.hideThumbTimerAfterTouch&&!$()||!e.uiConfig.hideThumbTimerAfterTouch)),Kn=Y(!1),In=g(()=>(oe()||e.showAutoplayNext&&S())&&!!Tt()&&!!Qe()&&(e.showAds&&T()||!e.showAds)&&p()&&!d()&&!r(Kn)),qn=Y(!1);dt==null||dt.setContext(Jl());let Kr=St=>{St&&!eo&&Oo(e.uiConfig.controls.hideTimeoutMobile)};e.store.setUiCallbacks({onStarted:Kr});let cr=()=>{clearTimeout(nr),O(Vi,!1),v()&&it.set(!1)},Oo=St=>{cr(),O(Vi,!0),nr=setTimeout(()=>O(Vi,!1),St);let Rt=St-100;Sr=setTimeout(()=>{E()&&en.set(!1)},Rt>0?Rt:St)},mt=xi.subscribe(St=>{Wt.set(St),St&&(clearTimeout(uo),uo=setTimeout(()=>Wt.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Jt=(...Rt)=>xt(null,[...Rt],function*(St=Bs()){var So,Do,po,Co,fo,Gn;if(St&&!Qs.clientChecker.device.isIOS){let Qi=Id(),Ho=Bo(),An=Qs.clientChecker.browser.isSamsungBrowser&&Qi===e.shadowRootContainer;St=Qi===Ho||An}if(St){Oo(e.uiConfig.controls.hideTimeoutFullscreen);try{yield dt==null?void 0:dt.exit()}catch(Qi){Ce({message:String(Qi)})}try{let Qi=(So=V())!=null&&So.width&&((Do=V())!=null&&Do.height)?V():k();yield E1(Qi)}catch(Qi){Ce({message:String(Qi)})}}tt.set(St),e.store.getAdmanWrapper().setFullscreen(St),I()?(Co=(po=e.store.callbacks)==null?void 0:po.onFullscreenEnter)==null||Co.call(po):(Gn=(fo=e.store.callbacks)==null?void 0:fo.onFullscreenExit)==null||Gn.call(fo)}),ur=St=>{let Rt=St;vt.set({width:Rt.target.width,height:Rt.target.height})};Dt(()=>{var St;return yu(Jt),e.uiConfig.features.annotationsInside&&(G==null||G.init(r(Li))),xa(dt)&&(dt==null||dt.assignPlayerContainer(r(Li)),dt==null||dt.setExternalEventHandlers({resize:ur})),O(Wn,!Qs.clientChecker.device.isIphoneOrOldIpad),e.interactiveContainer&&((St=se().parentElement)==null||St.insertBefore(e.interactiveContainer,se().nextSibling)),()=>{clearTimeout(nr),clearTimeout(Sr),clearTimeout(uo),mt(),dt==null||dt.dispose().catch(Rt=>{Ce({message:String(Rt)})}),xu(Jt)}});let wi=Y(!0),Fi=Y(!0),kn=St=>{let Rt=R()+(St==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;Rt<0?(O(wi,!1),Rt=0):Rt>=Z()&&(O(Fi,!1),Rt=Z()),O(zn,!0),e.seekTime(Rt)},Bo=()=>Qs.clientChecker.device.isIOS?r(Li):!e.uiConfig.allowChangingFullscreenTarget||!Yt()?e.outerContainerRef:Yt().contains(e.outerContainerRef)?Yt():e.outerContainerRef,fn=()=>xt(null,null,function*(){try{if(Bs())yield $u(document),Ce({message:"exit fullscreen"});else{if(Ce({message:"request fullscreen"}),Qs.clientChecker.device.isIOS&&!D())return;yield bu(Bo())}}catch(St){Ce({message:String(St)})}}),mn=()=>{pi()},xo=St=>{if(St.preventDefault(),H()){mn();return}if(!jt()){e.firstStart(),Oo(e.uiConfig.controls.hideTimeoutCursor);return}O(zn,!1),w()?cr():Oo(e.uiConfig.controls.hideTimeoutMobile)},vn=()=>{hi.set(!0)},Cr=()=>{eo||(en.set(!0),Oo(e.uiConfig.controls.hideTimeoutCursor))},us=St=>{Ro&&(Ro(St),Oo(e.uiConfig.controls.hideTimeoutMobile))},Tr=St=>{Hn&&(Hn(St),Oo(e.uiConfig.controls.hideTimeoutMobile))};We(()=>{Xo.set(r(rr))}),We(()=>{Vt.set((r(Un)||H()||W()||X()||j()||!r(In)&&(p()||r(Vi)&&!r(zn)))&&!r(lr)&&n()==="video"&&!d()&&ce())}),We(()=>{!W()&&r(qn)&&!re()&&Oo(e.uiConfig.controls.hideTimeoutMobile),O(qn,W(),!0)}),We(()=>{O(wi,R()>0),O(Fi,!pe()&&R()<Z(),!0)}),We(()=>{Rd(r(Jo),H(),xe(),!0)});let qr=K("aria_label_video_player"),Pn=K("video360");A0({fullScreenChangeHandler:Jt,getFullscreenTarget:Bo}),V0({store:e.store,getFullscreenTarget:Bo});let Er=(St,Rt)=>{var Co,fo;let So=(fo=(Co=e.store.callbacks)==null?void 0:Co.uiInfo)==null?void 0:fo.onUpcomingLiveViewStateChanged;if(!So)return;let Do=!!Rt,po=z(z({},Bn(r(Li),{upcomingLiveScreen:Rt},"upcomingLiveScreen",Do)),St);So(po)};var wo=qx();Ct("blur",sa,mn);var pr=_(wo);za(pr,{onClick:xo,get videoContainer(){return se()},set videoContainer(St){se(St)}});var tn=P(pr,2);fa(tn,()=>"slot",!1,(St,Rt)=>{Ae(St,()=>({name:Ua}))});var ii=P(tn,2);pa(ii,fe,St=>{var Rt=Kx(),So=ge(Rt);let Do=g(()=>n()!=="thumb"||d()||eo&&e.autoplay);Da(So,{get hidden(){return r(Do)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var po=P(So,2);{var Co=qe=>{var ei=Hx(),Ei=ge(ei);{var Eo=be=>{let It=g(()=>e.uiConfig.controls.seekStepMobile/1e3);ju(be,{side:"left",get seekStep(){return r(It)},handleSingleFirstClick:xo,handleSecondClick:()=>kn("backward")})};L(Ei,be=>{r(wi)&&be(Eo)})}var Fo=P(Ei,2);{var vr=be=>{let It=g(()=>e.uiConfig.controls.seekStepMobile/1e3);ju(be,{side:"right",get seekStep(){return r(It)},handleSingleFirstClick:xo,handleSecondClick:()=>kn("forward")})};L(Fo,be=>{r(Fi)&&be(vr)})}b(qe,ei)};L(po,qe=>{e.canRewindLive&&Hi&&!ie().has("TIMELINE")&&qe(Co)})}var fo=P(po,2);{var Gn=qe=>{let ei=g(()=>{var Ei;return(Ei=e.live)==null?void 0:Ei.startTime});dc(qe,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(ei)},onUpcomingLiveViewStateChanged:Er})};L(fo,qe=>{n()==="LiveWaitingStart"&&qe(Gn)})}var Qi=P(fo,2);{var Ho=qe=>{Ha(qe,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};L(Qi,qe=>{n()==="LiveWaitingRecover"&&qe(Ho)})}var An=P(Qi,2);{var kr=qe=>{Ha(qe,{kind:"record",get thumbUrl(){return e.thumbUrl}})};L(An,qe=>{n()==="LiveWaitingRecord"&&qe(kr)})}var Qr=P(An,2);{var ps=qe=>{var ei=Fx();let Ei;var Eo=_(ei);Pd(Eo,{get adsSlotId(){return Ge()},get adsParams(){return et()},get adsPreviewParam(){return J()},get adsAutoplayParam(){return Le()},get duration(){return Ie()}}),h(ei),B(Fo=>Ei=te(ei,1,"ads-container svelte-7yl31d",null,Ei,Fo),[()=>({hidden:n()!=="ads"})]),b(qe,ei)};L(Qr,qe=>{e.showAds&&jt()&&qe(ps)})}var jr=P(Qr,2);{var mo=qe=>{let ei=g(()=>!oe()&&e.showAutoplayNext&&S());Vv(qe,{get title(){return Tt()},get thumb(){return Qe()},get isHide(){return r(ei)},clickCloseIcon:()=>O(Kn,!0)})};L(jr,qe=>{r(In)&&Tt()&&Qe()&&qe(mo)})}var gn=P(jr,2);{var Pr=qe=>{ac(qe,{})};L(gn,qe=>{Pe()&&qe(Pr)})}var lt=P(gn,2);{var Mt=qe=>{var ei=Ux(),Ei=_(ei);Ed(Ei,{get"aria-label"(){return Pn}}),h(ei),b(qe,ei)};L(lt,qe=>{ee()&&qe(Mt)})}var _i=P(lt,2);{var vo=qe=>{lc(qe,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return N()}})};L(_i,qe=>{j()&&qe(vo)})}var io=P(_i,2);{var go=qe=>{Oa(qe,{get shifted(){return w()},get captions(){return _e()},get position(){return R()},get playerSize(){return k()},isMobile:!0})};L(io,qe=>{Ue().value!=="off"&&qe(go)})}var ho=P(io,2);{var nn=qe=>{var ei=zx();ei.__click=[Dx,H,yi,mn];var Ei=_(ei);Ba(Ei,{}),h(ei),b(qe,ei)};L(ho,qe=>{d()&&qe(nn)})}var rn=P(ho,2);{var Mn=qe=>{let ei=g(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),Ei=g(()=>n()==="ads"),Eo=g(()=>e.canRewindLive&&he()!==0);sc(qe,{get bottomHidden(){return r(ei)},get showControls(){return w()},get bottomNoSmooth(){return E()},get isAds(){return r(Ei)},get canRewindLive(){return r(Eo)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Ze()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return at()},get nextButtonActive(){return bt()},get prevButtonActive(){return gt()},get isOneVideoPlaylist(){return Kt()},get customFullscreenSupported(){return r(Wn)},get endScreenShown(){return r(In)},toggleFullscreen:fn,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:us,onDisabledSeekToInteractiveClick:Tr,get playerControlsWrapperRef(){return r(to)},set playerControlsWrapperRef(Fo){O(to,Fo,!0)},get playerControlsRef(){return r(No)},set playerControlsRef(Fo){O(No,Fo,!0)}})};L(rn,qe=>{jt()&&qe(Mn)})}var _o=P(rn,2);{var oo=qe=>{var ei=Wx(),Ei=_(ei);fc(Ei,{get supportLink(){return e.supportLink},get returnFocus(){return R0.noop},get ref(){return r(Jo)},set ref(Eo){O(Jo,Eo,!0)}}),h(ei),b(qe,ei)};L(_o,qe=>{H()&&qe(oo)})}var To=P(_o,2);let fr=g(()=>!r(dr));Ld(To,{get isLive(){return ue()},get isHidden(){return r(fr)},get isPlaying(){return me()},get position(){return R()},get duration(){return Z()}});var Qn=P(To,2);{var mr=qe=>{Ea(qe,{})};L(Qn,qe=>{r(zr)&&qe(mr)})}var Yr=P(Qn,2);{var fs=qe=>{Od(qe,{})};L(Yr,qe=>{ve()&&qe(fs)})}var Zr=P(Yr,2);{var Ri=qe=>{mc(qe,{onClose:ar,onSelectAutoQuality:()=>{Fn("auto"),ar()}})};L(Zr,qe=>{r(Wr)&&qe(Ri)})}b(St,Rt)});var on=P(ii,2);rt(on,St=>O(rr,St),()=>r(rr)),h(wo),rt(wo,St=>O(Li,St),()=>r(Li)),B(()=>Fe(wo,"aria-label",qr)),Ct("click",wo,vn,!0),Ct("focusin",wo,Cr,!0),b(t,wo),U(),o()}ct(["click"]);function Zu(t){let e="";return Xi(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),Xi(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),Xi(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),Xi(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),Xi(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),Xi(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),Xi(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),Xi(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),Xi(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),Xi(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),Xi(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),Xi(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),Xi(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),Xi(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),Xi(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),Xi(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),Xi(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),Xi(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),Xi(t.font)&&(e+=`--font:${t.font};`),Xi(t.controlsGradientHeight)&&(e+=`--controls-gradient-height:${t.controlsGradientHeight};`),Xi(t.controlsGradient)&&(e+=`--controls-gradient:${t.controlsGradient};`),e.length&&e||void 0}function Xi(t){return typeof t=="string"&&!t.includes(";")}var N0=require("@vkontakte/videoplayer-shared/es2015");var Qx=A('<div class="player-wrapper svelte-1qfjf44" role="region"><!> <!> <!> <!> <div class="time-container svelte-1qfjf44"><!></div> <div><!></div></div>'),jx={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 Nv(t,e){F(e,!0),q(t,jx);let[i,o]=He(),n=()=>C(X,"$playerSize",i),s=()=>C(I,"$isPlaying$",i),l=()=>C(V,"$duration$",i),d=()=>C(D,"$positionWithScrubbing$",i),a=()=>C(T,"$playerPhase",i),u=()=>C(E,"$crashed$",i),f=()=>C(R,"$currentSubtitle$",i),v=()=>C(Z,"$currentSubtitleCaptions$",i),p=()=>C(k,"$positionExact$",i),y=()=>C(H,"$isLive$",i),w=()=>C(W,"$isRewindableLive$",i),$=m(e,"outsideDuration",3,0),S=m(e,"videoContainer",15),{playerPhase:T,state:{crashed$:E,duration$:V,positionExact$:k,isPlaying$:I,currentSubtitle$:R,currentSubtitleCaptions$:Z,positionWithScrubbing$:D,isLive$:H,isRewindableLive$:W},ui:{playerSize:X,controls:j},actions:{internal:{getVideoElement:ce}}}=ke(),re=8,pe=Y(!1),xe=ri({}),fe=()=>{O(pe,!0)},ie=()=>{O(pe,!1)},Pe=(0,N0.debounceFn)(Pl,260);We(()=>{n(),Pe(ce(),j,xe,r(pe))});let ee=g(()=>s()?Sn(l()-d()):Sn(isFinite(l())?l():$()));var N=Qx(),Ue=_(N);za(Ue,{hideCursor:!1,get videoContainer(){return S()},set videoContainer(Ie){S(Ie)}});var _e=P(Ue,2);fa(_e,()=>"slot",!1,(Ie,Ze)=>{Ae(Ie,()=>({name:Ua}))});var he=P(_e,2);let ue=g(()=>a()!=="thumb"||u());Da(he,{get hidden(){return r(ue)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var me=P(he,2);{var ve=Ie=>{Oa(Ie,{shifted:!1,get captions(){return v()},get position(){return p()},get playerSize(){return n()}})};L(me,Ie=>{f().value!=="off"&&Ie(ve)})}var se=P(me,2),Ge=_(se);Md(Ge,{get isLive(){return y()},get isPlaying(){return s()},get time(){return r(ee)}}),h(se);var et=P(se,2);let J;var Le=_(et);Aa(Le,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return w()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:re,tooltipRightOffset:re,get ref(){return xe.timeline},set ref(Ie){xe.timeline=Ie}}),h(et),h(N),B(Ie=>J=te(et,1,"timeline svelte-1qfjf44",null,J,Ie),[()=>({visible:r(pe)})]),Ct("mouseenter",N,fe),Ct("mouseleave",N,ie),b(t,N),U(),o()}var Yx=A("<div><!></div>"),Zx={hash:"svelte-16kg8zb",code:`.root.svelte-16kg8zb {--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;
355
+ }.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 Zu(t,e){U(e,!0),G(t,Ox);let i=m(e,"seekStep",3,0),o=Y(!1),n=0,s=0,l=Y(ri(i())),d=v=>{v.stopPropagation(),s+=1,O(l,i()*(s-1)),s===1?e.handleSingleFirstClick(v):(O(o,!0),e.handleSecondClick()),window.clearTimeout(n),n=window.setTimeout(()=>{s=0,O(o,!1)},300)};nn(()=>{window.clearTimeout(n)});var a=Nx();a.__click=d;var u=_(a);{var f=v=>{var p=Rx(),y=he(p),w=P(y,2),$=_(w),C=_($),T=P(C,2),I=P(T,2);h($);var M=P($,2),k=_(M,!0);h(M),h(w),B(E=>{var R,X,D,H;te(y,1,`semicircle ${(R=e.side)!=null?R:""}`,"svelte-nhq2ld"),te(C,1,`triangle ${(X=e.side)!=null?X:""}`,"svelte-nhq2ld"),te(T,1,`triangle ${(D=e.side)!=null?D:""}`,"svelte-nhq2ld"),te(I,1,`triangle ${(H=e.side)!=null?H:""}`,"svelte-nhq2ld"),$e(k,E)},[()=>q("doubletap_seek_step",{seconds:r(l).toFixed(0)})]),b(v,p)};V(u,v=>{r(o)&&v(f)})}h(a),B(()=>{var v;return te(a,1,`double-click-area ${(v=e.side)!=null?v:""}`,"svelte-nhq2ld")}),b(t,a),z()}ft(["click"]);var Bx=(t,e,i)=>{e(!1),i()},Dx=A('<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),Hx={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 Rv(t,e){U(e,!0),G(t,Hx);let[i,o]=Ue(),n=()=>S(d,"$autoplayNextEnabled$",i),s=()=>S(a,"$timerNextVideoRunning$",i),l=Ie(),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,y=l.actions.internal.nextVideoAnnouncementCancel,w=()=>{u(!1),p()},$=()=>{e.clickCloseIcon(),y()};zt(()=>{e.isHide||f(),e.isHide&&n()&&(u(!1),p())});var C=qe(),T=he(C);{var I=M=>{var k=Dx(),E=P(he(k),2),R=_(E),X=_(R),D=_(X,!0);h(X);var H=P(X,2);Ca(H,{onClick:$}),h(R);var K=P(R,2);K.__click=[Bx,u,v];var J=_(K),j=_(J),ce=_(j);let oe;var pe=P(ce,2);{var be=Le=>{Vd(Le,{get isRunning(){return s()},onTimerEnded:w})};V(pe,Le=>{n()&&Le(be)})}h(j),h(J);var fe=P(J,2),ke=_(fe),ne=_(ke,!0);h(ke),h(fe),h(K),h(E),B((Le,se)=>{$e(D,Le),rt(j,`background-image: url('${e.thumb}')`),oe=te(ce,1,"thumb-overlay svelte-1qdxi6t",null,oe,se),$e(ne,e.title)},[()=>n()?q("end_screen_next_video"):q("end_screen_recommended_video"),()=>({withOpacity:n()})]),b(M,k)};V(T,M=>{e.isHide||M(I)})}b(t,C),z(),o()}ft(["click"]);var P_=require("@vkontakte/videoplayer-core/es2015");var A_=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;zt(()=>{P_.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))}),nn(()=>{i==null||i(),clearTimeout(o)})};var M_=require("@vkontakte/videoplayer-core/es2015");var Xu=class{constructor(e){this.video=e}getTracksArray(){return Array.from(this.video.getElementsByTagName("track"))}attach(e,i=!1){let o=document.createElement("track");o.setAttribute("src",e.url),o.setAttribute("id",e.id),e.label&&o.setAttribute("label",e.label),e.language&&o.setAttribute("srclang",e.language),i&&(o.track.mode="showing"),this.video.appendChild(o)}detachAll(){for(let e of this.getTracksArray())this.video.removeChild(e)}updateSrc(e){let i=this.getTracksArray().find(o=>o.id===e.id);i&&(i.src=e.url)}getCurrentShowingId(){var e,i;return(i=(e=this.getTracksArray().find(o=>o.track.mode==="showing"))==null?void 0:e.id)!=null?i:null}};var L_=require("@vkontakte/videoplayer-core/es2015"),V_=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:n,availableSubtitlesList$:s,currentFormat$:l,availableTextTracks$:d}=t.state,a=null,u=()=>e().querySelector("video"),f=()=>L_.clientChecker.device.isIOS&&xe(l)===M_.VideoFormat.DASH_LIVE_CMAF,v=()=>{a==null||a(),a=null},p=y=>{if(v(),!f()||!y)return;let w=u();if(!w)return;let $=new Xu(w),C=xe(d),T=xe(s),I=xe(n);for(let E of C)T.some(X=>X.value===E.id)&&$.attach(E,I.value===E.id);let M=d.subscribe(E=>{for(let R of E)$.updateSrc(R)}),k=()=>{let E=$.getCurrentShowingId();o(xe(s).find(R=>R.value===E))};w.textTracks.addEventListener("change",k),a=()=>{M(),$.detachAll(),w.textTracks.removeEventListener("change",k)}};zt(()=>i.subscribe(p)),nn(v)};var Fx=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},Ux=A("<!> <!>",1),zx=A("<div><!></div>"),Wx=A('<div class="spherical-video-icon svelte-7yl31d"><!></div>'),Kx=A("<div><!></div>"),qx=A('<div class="settings-mobile svelte-7yl31d"><!></div>'),Gx=A("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),Qx=A('<div class="player-wrapper svelte-7yl31d" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),jx={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 Nv(t,e){var Pr,Qr;U(e,!0),G(t,jx);let[i,o]=Ue(),n=()=>S(He,"$playerPhase",i),s=()=>S(Yt,"$isLoaderVisible",i),l=()=>S(Fe,"$adPlaybackState",i),d=()=>S(Oi,"$crashed",i),a=()=>S(Tr,"$notificationsToShow$",i),u=()=>S(Ne,"$playbackState$",i),f=()=>S(we,"$graphIsOpened$",i),v=()=>S(ot,"$interactiveHideMobileControls",i),p=()=>S(Ai,"$isEnded$",i),y=()=>S(an,"$isInteractiveExpectation$",i),w=()=>S(kt,"$controlsVisible",i),$=()=>S(Bi,"$touched",i),C=()=>S(Cn,"$autoplayNextEnabled$",i),T=()=>S(di,"$postrollPassed",i),I=()=>S(ar,"$bottomNoSmooth",i),M=()=>S(Bt,"$videoSize",i),k=()=>S(ct,"$playerSize",i),E=()=>S(Xe,"$isFullscreen",i),R=()=>S(Ve,"$position$",i),X=()=>S(Ke,"$duration$",i),D=()=>S(Qi,"$loadedMetadata",i),H=()=>S(fi,"$settingsMenuVisible",i),K=()=>S(dt,"$scrubbingInProgress",i),J=()=>S(jt,"$volumeChangingInProgress",i),j=()=>S(Ro,"$chromecastConnected$",i),ce=()=>S(Jt,"$isControlsAvailable",i),oe=()=>S(sn,"$isInteractiveTime$",i),pe=()=>S(Vt,"$isActiveLive",i),be=()=>S(mi,"$settingsMenuOpenedByKeyboard",i),fe=()=>S(de,"$language$",i),ke=()=>S(wt,"$disabledControls$",i),ne=()=>S(ei,"$is3DVideo",i),Le=()=>S(Dt,"$icon3DVideoVisible",i),se=()=>S(Kt,"$chromecastDeviceName$",i),N=()=>S(ci,"$currentSubtitle$",i),Be=()=>S(xt,"$currentSubtitleCaptions$",i),ue=()=>S(et,"$realDuration$",i),ge=()=>S(no,"$isLive$",i),ee=()=>S(jo,"$isPlaying$",i),ve=()=>S(qi,"$debugPanelVisible",i),De=m(e,"videoContainer",15),me=m(e,"adsSlotId",3,void 0),at=m(e,"adsParams",3,void 0),Z=m(e,"adsPreviewParam",3,void 0),Me=m(e,"adsAutoplayParam",3,void 0),Ee=m(e,"duration",3,void 0),We=m(e,"logoTargetUrl",3,""),tt=m(e,"showNextPrevButtons",3,!1),bt=m(e,"nextButtonActive",3,!1),Mt=m(e,"prevButtonActive",3,!1),mt=m(e,"endScreenVideoTitle",3,void 0),Qe=m(e,"endScreenVideoThumb",3,void 0),Gt=m(e,"isOneVideoPlaylist",3,!1),ii=m(e,"showMiniTimer",3,!1),Qt=m(e,"fullScreenTarget",3,void 0),Xt=m(e,"playerStarted",3,!1),le=m(e,"showEndScreen",3,!0),{notifications$:Ot,graphIsOpened$:we}=xo(),_e=e.store.getLogger().createComponentLog("Root component"),de=e.store.interfaceLanguage$,Ne=e.store.state.playbackState$,Fe=e.store.ads.playbackState,Ve=e.store.state.positionWithScrubbing$,Ke=e.store.state.duration$,He=e.store.playerPhase,Xe=e.store.ui.isFullscreen,kt=e.store.ui.controlsVisible,Jt=e.store.ui.isControlsAvailable,ot=e.store.ui.interactiveHideMobileControls,fi=e.store.ui.settingsMenu.visible$,mi=e.store.ui.settingsMenu.openedByBtnKeyboard$,dt=e.store.ui.scrubbingInProgress,jt=e.store.ui.volumeChangingInProgress,qi=e.store.ui.debugPanelVisible,Yt=e.store.state.isLoaderVisible,Ai=e.store.state.isEnded$,Ro=e.store.state.chromecastConnected$,Kt=e.store.state.chromecastDeviceName$,di=e.store.ads.postrollPassed,no=e.store.state.isLive$,jo=e.store.state.isPlaying$,Vt=e.store.state.isActiveLive$,Tt=e.store.state.isRewindableLive$,Oi=e.store.state.crashed$,Gi=e.store.webApi.annotationsApi,F=e.store.webApi.pictureInPictureApi,Bt=e.store.state.videoSize$,ci=e.store.state.currentSubtitle$,xt=e.store.state.currentSubtitleCaptions$,et=e.store.state.duration$,ct=e.store.ui.playerSize,ei=e.store.ui.is3DVideo,Dt=e.store.ui.icon3DVideoVisible,ro=e.store.state.isInteractive,sn=e.store.state.isInteractiveTime$,an=e.store.state.isInteractiveExpectation$,Ti=e.store.state.hasInteractiveBranches,wt=e.store.ui.controls.disabledControls$,Bi=e.store.ui.touched,Yo=e.store.ui.overlayContainer$,Cn=e.store.ui.autoplayNextEnabled$,Qi=e.store.state.loadedMetadata$,ji=e.store.actions.internal.closeSettingsMenu,No=(Pr=e.store.callbacks)==null?void 0:Pr.onDisabledPlayPrevChapterClick,Tn=(Qr=e.store.callbacks)==null?void 0:Qr.onDisabledSeekToInteractiveClick,Un=e.store.actions.internal.setQuality,Mi=Y(void 0),In=Y(void 0),Yi=Y(void 0),wo=Y(void 0),ln,Sr,zn=g(()=>(n()==="video"&&s()||n()==="ads"&&l()==="inactive")&&!d()),Wn=Y(void 0),{closeNotification:Cr,notificationsToShow$:Tr}=Ot,Kn=g(()=>!!a().slow_video),dn=()=>Cr("slow_video"),ar=re(!1),so,Zo=Y(!1),lr=g(()=>u()!==qs.PlaybackState.PLAYING),En=Y(!1),Ir=g(()=>f()||v()||!r(Zo)&&(p()&&!!Ti||r(lr)&&y())),dr=Y(!0),cr=g(()=>e.uiConfig.features.thumbTimer&&ii()&&n()==="video"&&!w()&&!d()&&!ro&&(e.uiConfig.hideThumbTimerAfterTouch&&!$()||!e.uiConfig.hideThumbTimerAfterTouch)),Er=Y(!1),qn=g(()=>(le()||e.showAutoplayNext&&C())&&!!mt()&&!!Qe()&&(e.showAds&&T()||!e.showAds)&&p()&&!d()&&!r(Er)),kn=Y(!1);F==null||F.setContext(jl());let ur=lt=>{lt&&!ro&&st(e.uiConfig.controls.hideTimeoutMobile)};e.store.setUiCallbacks({onStarted:ur});let Kr=()=>{clearTimeout(ln),O(Zo,!1),v()&&ot.set(!1)},st=lt=>{Kr(),O(Zo,!0),ln=setTimeout(()=>O(Zo,!1),lt);let vi=lt-100;so=setTimeout(()=>{I()&&ar.set(!1)},vi>0?vi:lt)},si=ei.subscribe(lt=>{Dt.set(lt),lt&&(clearTimeout(Sr),Sr=setTimeout(()=>Dt.set(!1),e.uiConfig.controls.hide360IconTimeout))}),pr=(...vi)=>St(null,[...vi],function*(lt=Ns()){var Co,lo,Zi,co,uo,un;if(lt&&!qs.clientChecker.device.isIOS){let wi=Sd(),jn=ao(),Yn=qs.clientChecker.browser.isSamsungBrowser&&wi===e.shadowRootContainer;lt=wi===jn||Yn}if(lt){st(e.uiConfig.controls.hideTimeoutFullscreen);try{yield F==null?void 0:F.exit()}catch(wi){_e({message:String(wi)})}try{let wi=(Co=M())!=null&&Co.width&&((lo=M())!=null&&lo.height)?M():k();yield I1(wi)}catch(wi){_e({message:String(wi)})}}Xe.set(lt),e.store.getAdmanWrapper().setFullscreen(lt),E()?(co=(Zi=e.store.callbacks)==null?void 0:Zi.onFullscreenEnter)==null||co.call(Zi):(un=(uo=e.store.callbacks)==null?void 0:uo.onFullscreenExit)==null||un.call(uo)}),cn=lt=>{let vi=lt;ct.set({width:vi.target.width,height:vi.target.height})};zt(()=>{var lt;return wu(pr),e.uiConfig.features.annotationsInside&&(Gi==null||Gi.init(r(Mi))),ya(F)&&(F==null||F.assignPlayerContainer(r(Mi)),F==null||F.setExternalEventHandlers({resize:cn})),O(dr,!qs.clientChecker.device.isIphoneOrOldIpad),e.interactiveContainer&&((lt=De().parentElement)==null||lt.insertBefore(e.interactiveContainer,De().nextSibling)),()=>{clearTimeout(ln),clearTimeout(so),clearTimeout(Sr),si(),F==null||F.dispose().catch(vi=>{_e({message:String(vi)})}),Su(pr)}});let Xo=Y(!0),Ii=Y(!0),Di=lt=>{let vi=R()+(lt==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;vi<0?(O(Xo,!1),vi=0):vi>=X()&&(O(Ii,!1),vi=X()),O(En,!0),e.seekTime(vi)},ao=()=>qs.clientChecker.device.isIOS?r(Mi):!e.uiConfig.allowChangingFullscreenTarget||!Qt()?e.outerContainerRef:Qt().contains(e.outerContainerRef)?Qt():e.outerContainerRef,Pn=()=>St(null,null,function*(){try{if(Ns())yield yu(document),_e({message:"exit fullscreen"});else{if(_e({message:"request fullscreen"}),qs.clientChecker.device.isIOS&&!D())return;yield $u(ao())}}catch(lt){_e({message:String(lt)})}}),Oo=()=>{ji()},Gn=lt=>{if(lt.preventDefault(),H()){Oo();return}if(!Xt()){e.firstStart(),st(e.uiConfig.controls.hideTimeoutCursor);return}O(En,!1),w()?Kr():st(e.uiConfig.controls.hideTimeoutMobile)},fr=()=>{Bi.set(!0)},Qn=()=>{ro||(ar.set(!0),st(e.uiConfig.controls.hideTimeoutCursor))},kr=lt=>{No&&(No(lt),st(e.uiConfig.controls.hideTimeoutMobile))},qr=lt=>{Tn&&(Tn(lt),st(e.uiConfig.controls.hideTimeoutMobile))};Ge(()=>{Yo.set(r(Wn))}),Ge(()=>{kt.set((r(lr)||H()||K()||J()||j()||!r(qn)&&(p()||r(Zo)&&!r(En)))&&!r(Ir)&&n()==="video"&&!d()&&ce())}),Ge(()=>{!K()&&r(kn)&&!oe()&&st(e.uiConfig.controls.hideTimeoutMobile),O(kn,K(),!0)}),Ge(()=>{O(Xo,R()>0),O(Ii,!pe()&&R()<X(),!0)}),Ge(()=>{Ad(r(wo),H(),be(),!0)});let An=q("aria_label_video_player"),Gr=q("video360");A_({fullScreenChangeHandler:pr,getFullscreenTarget:ao}),V_({store:e.store,getFullscreenTarget:ao});let mr=(lt,vi)=>{var co,uo;let Co=(uo=(co=e.store.callbacks)==null?void 0:co.uiInfo)==null?void 0:uo.onUpcomingLiveViewStateChanged;if(!Co)return;let lo=!!vi,Zi=W(W({},Hn(r(Mi),{upcomingLiveScreen:vi},"upcomingLiveScreen",lo)),lt);Co(Zi)};var So=Qx();It("blur",ra,Oo);var Jo=_(So);Ua(Jo,{onClick:Gn,get videoContainer(){return De()},set videoContainer(lt){De(lt)}});var oi=P(Jo,2);pa(oi,()=>"slot",!1,(lt,vi)=>{Pe(lt,()=>({name:Fa}))});var Bo=P(oi,2);ua(Bo,fe,lt=>{var vi=Gx(),Co=he(vi);let lo=g(()=>n()!=="thumb"||d()||ro&&e.autoplay);Ba(Co,{get hidden(){return r(lo)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Zi=P(Co,2);{var co=Ze=>{var ti=Ux(),gi=he(ti);{var fn=_t=>{let ai=g(()=>e.uiConfig.controls.seekStepMobile/1e3);Zu(_t,{side:"left",get seekStep(){return r(ai)},handleSingleFirstClick:Gn,handleSecondClick:()=>Di("backward")})};V(gi,_t=>{r(Xo)&&_t(fn)})}var Ho=P(gi,2);{var Se=_t=>{let ai=g(()=>e.uiConfig.controls.seekStepMobile/1e3);Zu(_t,{side:"right",get seekStep(){return r(ai)},handleSingleFirstClick:Gn,handleSecondClick:()=>Di("forward")})};V(Ho,_t=>{r(Ii)&&_t(Se)})}b(Ze,ti)};V(Zi,Ze=>{e.canRewindLive&&Tt&&!ke().has("TIMELINE")&&Ze(co)})}var uo=P(Zi,2);{var un=Ze=>{let ti=g(()=>{var gi;return(gi=e.live)==null?void 0:gi.startTime});rc(Ze,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(ti)},onUpcomingLiveViewStateChanged:mr})};V(uo,Ze=>{n()==="LiveWaitingStart"&&Ze(un)})}var wi=P(uo,2);{var jn=Ze=>{Da(Ze,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};V(wi,Ze=>{n()==="LiveWaitingRecover"&&Ze(jn)})}var Yn=P(wi,2);{var cs=Ze=>{Da(Ze,{kind:"record",get thumbUrl(){return e.thumbUrl}})};V(Yn,Ze=>{n()==="LiveWaitingRecord"&&Ze(cs)})}var jr=P(Yn,2);{var Yr=Ze=>{var ti=zx();let gi;var fn=_(ti);Td(fn,{get adsSlotId(){return me()},get adsParams(){return at()},get adsPreviewParam(){return Z()},get adsAutoplayParam(){return Me()},get duration(){return Ee()}}),h(ti),B(Ho=>gi=te(ti,1,"ads-container svelte-7yl31d",null,gi,Ho),[()=>({hidden:n()!=="ads"})]),b(Ze,ti)};V(jr,Ze=>{e.showAds&&Xt()&&Ze(Yr)})}var po=P(jr,2);{var Mn=Ze=>{let ti=g(()=>!le()&&e.showAutoplayNext&&C());Rv(Ze,{get title(){return mt()},get thumb(){return Qe()},get isHide(){return r(ti)},clickCloseIcon:()=>O(Er,!0)})};V(po,Ze=>{r(qn)&&mt()&&Qe()&&Ze(Mn)})}var vr=P(po,2);{var ut=Ze=>{oc(Ze,{})};V(vr,Ze=>{ne()&&Ze(ut)})}var Rt=P(vr,2);{var Si=Ze=>{var ti=Wx(),gi=_(ti);wd(gi,{get"aria-label"(){return Gr}}),h(ti),b(Ze,ti)};V(Rt,Ze=>{Le()&&Ze(Si)})}var fo=P(Rt,2);{var _o=Ze=>{nc(Ze,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return se()}})};V(fo,Ze=>{j()&&Ze(_o)})}var bo=P(fo,2);{var $o=Ze=>{Na(Ze,{get shifted(){return w()},get captions(){return Be()},get position(){return R()},get playerSize(){return k()},isMobile:!0})};V(bo,Ze=>{N().value!=="off"&&Ze($o)})}var To=P(bo,2);{var pn=Ze=>{var ti=Kx();ti.__click=[Fx,H,fi,Oo];var gi=_(ti);Oa(gi,{}),h(ti),b(Ze,ti)};V(To,Ze=>{d()&&Ze(pn)})}var Ln=P(To,2);{var Do=Ze=>{let ti=g(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),gi=g(()=>n()==="ads"),fn=g(()=>e.canRewindLive&&ue()!==0);ic(Ze,{get bottomHidden(){return r(ti)},get showControls(){return w()},get bottomNoSmooth(){return I()},get isAds(){return r(gi)},get canRewindLive(){return r(fn)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return We()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return tt()},get nextButtonActive(){return bt()},get prevButtonActive(){return Mt()},get isOneVideoPlaylist(){return Gt()},get customFullscreenSupported(){return r(dr)},get endScreenShown(){return r(qn)},toggleFullscreen:Pn,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:kr,onDisabledSeekToInteractiveClick:qr,get playerControlsWrapperRef(){return r(In)},set playerControlsWrapperRef(Ho){O(In,Ho,!0)},get playerControlsRef(){return r(Yi)},set playerControlsRef(Ho){O(Yi,Ho,!0)}})};V(Ln,Ze=>{Xt()&&Ze(Do)})}var Hi=P(Ln,2);{var Zn=Ze=>{var ti=qx(),gi=_(ti);dc(gi,{get supportLink(){return e.supportLink},get returnFocus(){return R_.noop},get ref(){return r(wo)},set ref(fn){O(wo,fn,!0)}}),h(ti),b(Ze,ti)};V(Hi,Ze=>{H()&&Ze(Zn)})}var Vn=P(Hi,2);let gr=g(()=>!r(cr));kd(Vn,{get isLive(){return ge()},get isHidden(){return r(gr)},get isPlaying(){return ee()},get position(){return R()},get duration(){return X()}});var Io=P(Vn,2);{var us=Ze=>{Ta(Ze,{})};V(Io,Ze=>{r(zn)&&Ze(us)})}var Ar=P(Io,2);{var Zr=Ze=>{Ld(Ze,{})};V(Ar,Ze=>{ve()&&Ze(Zr)})}var Xi=P(Ar,2);{var Mr=Ze=>{cc(Ze,{onClose:dn,onSelectAutoQuality:()=>{Un("auto"),dn()}})};V(Xi,Ze=>{r(Kn)&&Ze(Mr)})}b(lt,vi)});var ds=P(Bo,2);nt(ds,lt=>O(Wn,lt),()=>r(Wn)),h(So),nt(So,lt=>O(Mi,lt),()=>r(Mi)),B(()=>ze(So,"aria-label",An)),It("click",So,fr,!0),It("focusin",So,Qn,!0),b(t,So),z(),o()}ft(["click"]);function Ju(t){let e="";return oo(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),oo(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),oo(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),oo(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),oo(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),oo(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),oo(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),oo(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),oo(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),oo(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),oo(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),oo(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),oo(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),oo(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),oo(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),oo(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),oo(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),oo(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),oo(t.font)&&(e+=`--font:${t.font};`),oo(t.controlsGradientHeight)&&(e+=`--controls-gradient-height:${t.controlsGradientHeight};`),oo(t.controlsGradient)&&(e+=`--controls-gradient:${t.controlsGradient};`),e.length&&e||void 0}function oo(t){return typeof t=="string"&&!t.includes(";")}var N_=require("@vkontakte/videoplayer-shared/es2015");var Yx=A('<div class="player-wrapper svelte-1qfjf44" role="region"><!> <!> <!> <!> <div class="time-container svelte-1qfjf44"><!></div> <div><!></div></div>'),Zx={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 Ov(t,e){U(e,!0),G(t,Zx);let[i,o]=Ue(),n=()=>S(J,"$playerSize",i),s=()=>S(E,"$isPlaying$",i),l=()=>S(M,"$duration$",i),d=()=>S(D,"$positionWithScrubbing$",i),a=()=>S(T,"$playerPhase",i),u=()=>S(I,"$crashed$",i),f=()=>S(R,"$currentSubtitle$",i),v=()=>S(X,"$currentSubtitleCaptions$",i),p=()=>S(k,"$positionExact$",i),y=()=>S(H,"$isLive$",i),w=()=>S(K,"$isRewindableLive$",i),$=m(e,"outsideDuration",3,0),C=m(e,"videoContainer",15),{playerPhase:T,state:{crashed$:I,duration$:M,positionExact$:k,isPlaying$:E,currentSubtitle$:R,currentSubtitleCaptions$:X,positionWithScrubbing$:D,isLive$:H,isRewindableLive$:K},ui:{playerSize:J,controls:j},actions:{internal:{getVideoElement:ce}}}=Ie(),oe=8,pe=Y(!1),be=ri({}),fe=()=>{O(pe,!0)},ke=()=>{O(pe,!1)},ne=(0,N_.debounceFn)(kl,260);Ge(()=>{n(),ne(ce(),j,be,r(pe))});let Le=g(()=>s()?wn(l()-d()):wn(isFinite(l())?l():$()));var se=Yx(),N=_(se);Ua(N,{hideCursor:!1,get videoContainer(){return C()},set videoContainer(Ee){C(Ee)}});var Be=P(N,2);pa(Be,()=>"slot",!1,(Ee,We)=>{Pe(Ee,()=>({name:Fa}))});var ue=P(Be,2);let ge=g(()=>a()!=="thumb"||u());Ba(ue,{get hidden(){return r(ge)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var ee=P(ue,2);{var ve=Ee=>{Na(Ee,{shifted:!1,get captions(){return v()},get position(){return p()},get playerSize(){return n()}})};V(ee,Ee=>{f().value!=="off"&&Ee(ve)})}var De=P(ee,2),me=_(De);Ed(me,{get isLive(){return y()},get isPlaying(){return s()},get time(){return r(Le)}}),h(De);var at=P(De,2);let Z;var Me=_(at);Pa(Me,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return w()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:oe,tooltipRightOffset:oe,get ref(){return be.timeline},set ref(Ee){be.timeline=Ee}}),h(at),h(se),B(Ee=>Z=te(at,1,"timeline svelte-1qfjf44",null,Z,Ee),[()=>({visible:r(pe)})]),It("mouseenter",se,fe),It("mouseleave",se,ke),b(t,se),z(),o()}var Xx=A("<div><!></div>"),Jx={hash:"svelte-16kg8zb",code:`.root.svelte-16kg8zb {--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;
358
356
 
359
357
  /* USER DEFINED COLORS */
360
358
 
@@ -387,5 +385,5 @@ Try switching the\xA0quality to\xA0Auto.`},y1=bb;var xs=new Map;xs.set(hl.Interf
387
385
  /* --vk-vp-int-custom-font - vk video player interactive custom font */font-family:var(--vk-vp-int-custom-font, inherit);}*:focus, *:focus-visible {outline:none;}*:focus-visible {box-shadow:var(--focused-element-shadow);border-radius:var(--focused-outline-radius);}*.focus-hidden:focus-visible {box-shadow:none;}
388
386
  /* css reset end */.hidden {visibility:hidden;opacity:0;}.out-of-flow {content-visibility:hidden !important;}.overlay-container {pointer-events:none;top:0;left:0;height:100%;width:100%;position:fixed;z-index:var(--overlay-container-z-index);}
389
387
 
390
- /* \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 */.out-of-view {position:absolute !important;left:-1000vh !important;}.icon.icon-error-stub {display:flex;justify-content:center;align-items:center;}`};function Ov(t,e){F(e,!0),q(t,Zx);let[i,o]=He(),n=()=>C(ti,"$isLive$",i),s=()=>C(co,"$availableSubtitlesList$",i),l=m(e,"sources",7),d=m(e,"store",7),a=m(e,"microStoresRoot",7),u=m(e,"videoConfig",7),f=m(e,"uiConfig",7),v=m(e,"title",7),p=m(e,"thumbUrl",7),y=m(e,"interactiveContainer",7),w=m(e,"interactiveController",7),$=m(e,"subtitles",7),S=m(e,"live",7),T=m(e,"preload",7),E=m(e,"autoplay",7),V=m(e,"volume",7,void 0),k=m(e,"muted",7,void 0),I=m(e,"fromTime",7),R=m(e,"canRewindLive",7),Z=m(e,"showAds",7),D=m(e,"adsSlotId",7,void 0),H=m(e,"adsParams",7,void 0),W=m(e,"adsPreviewParam",7,void 0),X=m(e,"adsAutoplayParam",7,void 0),j=m(e,"duration",7,void 0),ce=m(e,"logoClickable",7),re=m(e,"logoHidden",7),pe=m(e,"isMobile",7),xe=m(e,"showNextPrevButtons",7,!1),fe=m(e,"nextButtonActive",7,!1),ie=m(e,"prevButtonActive",7,!1),Pe=m(e,"endScreenVideoTitle",7,void 0),ee=m(e,"endScreenVideoThumb",7,void 0),N=m(e,"isOneVideoPlaylist",7,!1),Ue=m(e,"supportLink",7),_e=m(e,"shadowRootContainer",7),he=m(e,"outerContainerRef",7),ue=m(e,"fullScreenTarget",7,void 0),me=m(e,"failoverHosts",7,void 0),ve=m(e,"showMiniTimer",7,!1),se=m(e,"saveRate",7),Ge=m(e,"seekToInteractive",7,Wa.noop),et=m(e,"playPrevChapter",7,Wa.noop),J=m(e,"volumeMultiplier",7),Le=m(e,"showAutoplayNext",7),Ie=m(e,"showEndScreen",7,!0),Ze=m(e,"keyboardControls",15,void 0),{subscribers:at,stores:bt}=a();Dh(f());let gt=At(),Tt=f().logoLink,Qe=d().ui.debugPanelVisible,Kt=d().ui.playerSize,ti=d().state.isLive$,jt=d().state.isInteractive&&Rl.clientChecker.device.isAndroid,oe=Y(void 0),qt=null,$e=Y(!1);d().getAdmanWrapper().init({switchFromAdsToVideo:d().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:d().actions.internal.switchFromVideoToAds,setMuted:d().actions.external.setMuted},d().ads,{vsid:d().vsid}),Yh(d(),bt),We(()=>{var G,dt;d().ui.isMobile.set(pe()),(dt=(G=u().callbacks)==null?void 0:G.onDomReady)==null||dt.call(G)});let Ce=(G=!1)=>{O($e,!0),G?d().actions.external.firstStart(Z()):d().actions.internal.firstStart(Z())},le=()=>{if(gt.features.qualityDetailsSubMenuEnabled){let G=h1(d().videoId);if(G)switch(G.type){case"high_quality":d().actions.internal.setHighQualityEnabled(!0,G.appliesTo);break;case"traffic_saving":d().actions.internal.setTrafficSavingEnabled(!0,G.appliesTo);break;case"exact_quality":d().actions.internal.setQuality(G.quality);break}}else{_1(d().videoId),wf()&&d().actions.internal.setTrafficSavingEnabled(!0);let dt=bf(d().videoId);dt&&d().actions.internal.setQuality(dt)}};function Ne(G){var Re,vt,xi;let dt=l()||G;dt&&d().initVideo({container:r(oe),sources:dt,failoverHosts:me(),subtitles:$(),volumeMultiplier:J()});let gi=Wa.safeStorage.get(yd)==="true";Qe.set(gi),I()>0&&d().actions.external.seekTime(I());let li=pe()?gt.volumeDefault:(vt=(Re=V())!=null?Re:uu())!=null?vt:gt.volumeDefault,di=(xi=k())!=null?xi:u1();if(d().actions.external.setVolume(li),d().actions.external.setMuted(di),d().getAdmanWrapper().setInitialVolume(di?0:li),le(),gt.features.saveRate&&se()){let Wt=m1();Wt&&!n()&&d().actions.internal.setPlaybackRate(Wt)}if(Le()){let Wt=g1();Wt&&d().actions.internal.setAutoplayNextEnabled(Wt)}d().ui.isAutoplay.set(E()),E()&&Ce(),T()&&gt.features.preload&&d().actions.internal.preload()}let Ke=G=>{if(window.ResizeObserver){let dt,gi;qt=new ResizeObserver((0,Wa.throttleFn)(li=>{let di=li[0];if(di.contentBoxSize){let Re=Array.isArray(di.contentBoxSize)?di.contentBoxSize[0]:di.contentBoxSize;dt=Re.inlineSize,gi=Re.blockSize}else di.contentRect&&(dt=di.contentRect.width,gi=di.contentRect.height);Kt.set({width:dt,height:gi})},300)),qt.observe(G)}Kt.set({width:G.clientWidth,height:G.clientHeight})},Ve=()=>{document.hidden&&d().actions.external.stop()};Dt(()=>{var gi,li,di,Re;jt&&document.addEventListener("visibilitychange",Ve),gt.debugLog&&d().actions.internal.startLogging(),Ke(r(oe));let G=at.map(vt=>vt.init({store:d(),microStores:bt,config:u(),interactiveController:w(),uiConfig:f()})),dt=()=>{jt&&document.removeEventListener("visibilitychange",Ve),qt==null||qt.disconnect(),G.forEach(vt=>vt.unsubscribe()),d().destroy()};return((gi=S())==null?void 0:gi.status)==="upcoming"?(d().actions.internal.setLiveWaitingStart(!0),dt):((li=S())==null?void 0:li.status)==="waiting"?(d().actions.internal.setLiveWaitingRecover(!0),dt):(((di=S())==null?void 0:di.status)==="finished"||((Re=S())==null?void 0:Re.status)==="postlive")&&!(l()&&(0,Rl.areValidLiveRecordSources)(l()))?(d().actions.internal.setLiveWaitingRecord(!0),dt):(Ne(),dt)});function Xe(){r($e)?d().actions.external.play():Ce(!0)}function Be(){d().actions.external.pause()}function tt(G){d().actions.external.setMuted(G)}function Vt(){d().actions.external.toggleSubtitle()}function Qt(){var G;(G=d().webApi.slotsApi)!=null&&G.haveSlots()&&d().actions.external.hideControls()}function it(){var G;(G=d().webApi.slotsApi)!=null&&G.haveSlots()&&d().actions.external.showControls()}function yi(G){pe()||G>=0&&G<=1&&d().actions.external.setVolume(G)}function mi(G){d().actions.internal.seekTime(G,O0.SeekAction.UNKNOWN)}function nt(G){d().actions.external.seekEpisodeStartTime(G)}function ni(){d().actions.external.returnFocusToEpisodes()}function Zt(G){d().actions.external.setPlaybackRate(G)}function vi(G){d().actions.external.setAutoQualityLimits(G)}let Lo=Zu(gt.view),lo=u().playerView==="preview",co=d().state.availableSubtitlesList$;if(gt.features.initSubtitles){let G=!1;We(()=>{if(!G&&s().length){G=!0;let dt;if(gt.features.userVideoPrefs&&d().videoId){let li=mu(gt.userSalt,String(d().videoId));li!=null&&li.subtitleTrackId&&(dt=s().find(di=>di.value===li.subtitleTrackId))}let gi=Cf();gi&&(dt!=null||(dt=s().find(li=>li.language===gi))),d().actions.internal.setSubtitle(dt)}})}var Ht=Yx();let ui;var Ft=_(Ht);{var yt=G=>{Rv(G,{get store(){return d()},get uiConfig(){return gt},get thumbUrl(){return p()},get interactiveContainer(){return y()},get live(){return S()},get autoplay(){return E()},get canRewindLive(){return R()},get showAds(){return Z()},get adsSlotId(){return D()},get adsParams(){return H()},get adsPreviewParam(){return W()},get adsAutoplayParam(){return X()},get duration(){return j()},get logoClickable(){return ce()},get logoHidden(){return re()},get logoTargetUrl(){return Tt},get nextButtonActive(){return fe()},get prevButtonActive(){return ie()},get endScreenVideoTitle(){return Pe()},get endScreenVideoThumb(){return ee()},get isOneVideoPlaylist(){return N()},get supportLink(){return Ue()},get shadowRootContainer(){return _e()},get outerContainerRef(){return he()},get fullScreenTarget(){return ue()},get showMiniTimer(){return ve()},get playerStarted(){return r($e)},get seekToInteractive(){return Ge()},get playPrevChapter(){return et()},firstStart:Ce,seekTime:mi,get showEndScreen(){return Ie()},get showAutoplayNext(){return Le()},get showNextPrevButtons(){return xe()},get videoContainer(){return r(oe)},set videoContainer(dt){O(oe,dt,!0)}})},Hi=G=>{var dt=ze(),gi=ge(dt);{var li=Re=>{Nv(Re,{get thumbUrl(){return p()},get outsideDuration(){return j()},get canRewindLive(){return R()},get videoContainer(){return r(oe)},set videoContainer(vt){O(oe,vt,!0)}})},di=Re=>{Lv(Re,{get store(){return d()},get uiConfig(){return gt},get title(){return v()},get thumbUrl(){return p()},get interactiveContainer(){return y()},get live(){return S()},get autoplay(){return E()},get canRewindLive(){return R()},get showAds(){return Z()},get adsSlotId(){return D()},get adsParams(){return H()},get adsPreviewParam(){return W()},get adsAutoplayParam(){return X()},get duration(){return j()},get logoClickable(){return ce()},get logoHidden(){return re()},get logoTargetUrl(){return Tt},get nextButtonActive(){return fe()},get prevButtonActive(){return ie()},get endScreenVideoTitle(){return Pe()},get endScreenVideoThumb(){return ee()},get isOneVideoPlaylist(){return N()},get supportLink(){return Ue()},get shadowRootContainer(){return _e()},get outerContainerRef(){return he()},get fullScreenTarget(){return ue()},get showMiniTimer(){return ve()},get playerStarted(){return r($e)},get seekToInteractive(){return Ge()},get playPrevChapter(){return et()},firstStart:Ce,get showEndScreen(){return Ie()},get showAutoplayNext(){return Le()},get showNextPrevButtons(){return xe()},get videoContainer(){return r(oe)},set videoContainer(vt){O(oe,vt,!0)},get keyboardControls(){return Ze()},set keyboardControls(vt){Ze(vt)}})};L(gi,Re=>{lo?Re(li):Re(di,!1)})}b(G,dt)};L(Ft,G=>{pe()?G(yt):G(Hi,!1)})}h(Ht),B(G=>{ui=te(Ht,1,"root svelte-16kg8zb",null,ui,G),st(Ht,Lo)},[()=>({"root--miui-browser":Rl.clientChecker.device.isMobile&&Rl.clientChecker.browser.isMiuiBrowser,"visible-outside":lo})]),b(t,Ht);var Vo=U({initVideo:Ne,play:Xe,pause:Be,setMuted:tt,toggleSubtitle:Vt,hideControls:Qt,showControls:it,setVolume:yi,seekTime:mi,seekEpisodeStartTime:nt,returnFocusToEpisodes:ni,setPlaybackRate:Zt,setAutoQualityLimits:vi,get sources(){return l()},set sources(G){l(G)},get store(){return d()},set store(G){d(G)},get microStoresRoot(){return a()},set microStoresRoot(G){a(G)},get videoConfig(){return u()},set videoConfig(G){u(G)},get uiConfig(){return f()},set uiConfig(G){f(G)},get title(){return v()},set title(G){v(G)},get thumbUrl(){return p()},set thumbUrl(G){p(G)},get interactiveContainer(){return y()},set interactiveContainer(G){y(G)},get interactiveController(){return w()},set interactiveController(G){w(G)},get subtitles(){return $()},set subtitles(G){$(G)},get live(){return S()},set live(G){S(G)},get preload(){return T()},set preload(G){T(G)},get autoplay(){return E()},set autoplay(G){E(G)},get volume(){return V()},set volume(G){V(G)},get muted(){return k()},set muted(G){k(G)},get fromTime(){return I()},set fromTime(G){I(G)},get canRewindLive(){return R()},set canRewindLive(G){R(G)},get showAds(){return Z()},set showAds(G){Z(G)},get adsSlotId(){return D()},set adsSlotId(G){D(G)},get adsParams(){return H()},set adsParams(G){H(G)},get adsPreviewParam(){return W()},set adsPreviewParam(G){W(G)},get adsAutoplayParam(){return X()},set adsAutoplayParam(G){X(G)},get duration(){return j()},set duration(G){j(G)},get logoClickable(){return ce()},set logoClickable(G){ce(G)},get logoHidden(){return re()},set logoHidden(G){re(G)},get isMobile(){return pe()},set isMobile(G){pe(G)},get showNextPrevButtons(){return xe()},set showNextPrevButtons(G){xe(G)},get nextButtonActive(){return fe()},set nextButtonActive(G){fe(G)},get prevButtonActive(){return ie()},set prevButtonActive(G){ie(G)},get endScreenVideoTitle(){return Pe()},set endScreenVideoTitle(G){Pe(G)},get endScreenVideoThumb(){return ee()},set endScreenVideoThumb(G){ee(G)},get isOneVideoPlaylist(){return N()},set isOneVideoPlaylist(G){N(G)},get supportLink(){return Ue()},set supportLink(G){Ue(G)},get shadowRootContainer(){return _e()},set shadowRootContainer(G){_e(G)},get outerContainerRef(){return he()},set outerContainerRef(G){he(G)},get fullScreenTarget(){return ue()},set fullScreenTarget(G){ue(G)},get failoverHosts(){return me()},set failoverHosts(G){me(G)},get showMiniTimer(){return ve()},set showMiniTimer(G){ve(G)},get saveRate(){return se()},set saveRate(G){se(G)},get showAutoplayNext(){return Le()},set showAutoplayNext(G){Le(G)},get seekToInteractive(){return Ge()},set seekToInteractive(G){Ge(G)},get playPrevChapter(){return et()},set playPrevChapter(G){et(G)},get volumeMultiplier(){return J()},set volumeMultiplier(G){J(G)},get showEndScreen(){return Ie()},set showEndScreen(G){Ie(G)},get keyboardControls(){return Ze()},set keyboardControls(G){Ze(G)}});return o(),Vo}var Xx=Ee('<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 Bv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=Xx();Ae(o,()=>z({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"60",fill:"none","aria-hidden":"true","data-testid":"stub-icon",role:"img"},i));var n=_(o);we(n,()=>{var s;return(s=e.children)!=null?s:de}),Te(),h(o),b(t,o)}function Dv(t,e){let i=m(e,"isWhite",3,!1),o=g(()=>i()?"color: #fff;":"color: #909499;");Bv(t,{get style(){return r(o)}})}var Jx=A('<div class="title svelte-1y9fytq"> </div>'),e5=A('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),t5={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 Hv(t,e){q(t,t5);var i=e5(),o=_(i);{var n=d=>{var a=Jx(),u=_(a,!0);h(a),B(()=>ye(u,e.title)),b(d,a)};L(o,d=>{e.title&&d(n)})}var s=P(o,2);{var l=d=>{let a=g(()=>!!e.thumbUrl);Dv(d,{get isWhite(){return r(a)}})};L(s,d=>{(!e.title||!e.thumbUrl)&&d(l)})}h(i),B(()=>st(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),b(t,i)}var i5=A('<div class="playerError svelte-m5iv29"><!></div>'),o5={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 Fv(t){q(t,o5);var e=i5(),i=_(e);Ba(i,{}),h(e),b(t,e)}var dp=require("@vkontakte/videoplayer-shared/es2015"),Ji=require("@vkontakte/videoplayer-shared/es2015"),Cc=require("@vkontakte/videoplayer-core/es2015"),Fl=require("@vkontakte/videoplayer-statistics/es2015");var Ju=require("@vkontakte/videoplayer-shared/es2015"),Xu=class{constructor(){this.subscription=new Ju.Subscription,this.logger=new Ju.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[n,s]of e)try{(o=(i=navigator.mediaSession).setActionHandler)==null||o.call(i,n,s)}catch(l){throw new Error(`The media session action "${n}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||(this.clearSubscriptions(),this.subscription.add(e.state.positionExact$.subscribe(i=>{var s,l;let o=Se(e.state.currentPlaybackRate$),n=Se(e.state.duration$);if(!(!isFinite(i)||!isFinite(n)))try{(l=(s=navigator.mediaSession).setPositionState)==null||l.call(s,{position:i,playbackRate:o,duration:n})}catch(d){this.log({message:`MediaSession setPositionState can't call with position: ${i} and duration: ${n}`})}})))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};var Ol=require("@vkontakte/videoplayer-shared/es2015");var n5=Ee('<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 Uv(t,e){let i=Oe(e,["$$slots","$$events","$$legacy","children"]);var o=n5();Ae(o,()=>z({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 n=_(o);we(n,()=>{var s;return(s=e.children)!=null?s:de}),Te(),h(o),b(t,o)}var r5=A('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),s5={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 zv(t,e){F(e,!0),q(t,s5);let[i,o]=He(),n=()=>C(u,"$interfaceLanguage$",i),s=()=>C(f,"$isMobile$",i),l=ke(),d=At(),a=!!l.webApi.pictureInPictureApi,u=l.interfaceLanguage$,f=l.ui.isMobile,v=l.ui.t,p=g(()=>n()&&v("pip_dummy_title")),y=Zu(d.view);var w=r5();let $;var S=_(w);let T;var E=_(S);Uv(E,{}),h(S);var V=P(S,2),k=_(V,!0);h(V),h(w),B((I,R)=>{$=te(w,1,"player-pip-dummy svelte-1pbsod4",null,$,I),st(w,y),T=te(S,1,"dummy-image svelte-1pbsod4",null,T,R),ye(k,r(p))},[()=>({"is-pip-api":a}),()=>({desktop:!s()})]),b(t,w),U(),o()}var a5=Object.defineProperty,l5=(t,e,i)=>e in t?a5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Nl=(t,e,i)=>l5(t,typeof e!="symbol"?e+"":e,i),Wv=(t,e,i)=>new Promise((o,n)=>{var s=a=>{try{d(i.next(a))}catch(u){n(u)}},l=a=>{try{d(i.throw(a))}catch(u){n(u)}},d=a=>a.done?o(a.value):Promise.resolve(a.value).then(s,l);d((i=i.apply(t,e)).next())}),d5=460,c5=280,gc=class{constructor({enabled:e=!0}={enabled:!0}){Nl(this,"playerDomElement"),Nl(this,"playerParentShadowRoot"),Nl(this,"playerDummyElement"),Nl(this,"svelteContext"),Nl(this,"pipWindow"),Nl(this,"info",{isActive$:new Ol.ValueSubject(!1),isEnabled$:new Ol.ValueSubject(!1),type:1}),this.info.isEnabled$=new Ol.ValueSubject(e)}isSupported(){let{isEmbed:e}=(0,Ol.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 Wv(this,null,function*(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=yield documentPictureInPicture.requestWindow({width:d5,height:c5,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(`
391
- `),n=document.createElement("style");n.textContent=o;let s=this.createStretchedContainer(),l=s.attachShadow({mode:"open"});l.append(n),l.append(this.playerDomElement);let d={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=ss(zv,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||(ua(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1),this.pipWindow=void 0)})})}exit(){return Wv(this,null,function*(){return new Promise(e=>{var i;this.pipWindow&&((i=documentPictureInPicture.window)==null||i.close()),e()})})}dispose(){return Wv(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 B0(t){return t instanceof gc}var ep=class{static getLatestSupportedVersion(e){let i=new ya(e),o=new gc(e);if(o.isSupported())return o;if(i.isSupported())return i}};function hc(t,e){var n,s;let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let l of i)o[l]=(s=(n=e[l])!=null?n:t[l])!=null?s:void 0;return o}var D0="Inner error. Unexpectedly root annotation container null reference exception",H0="Annotation with such name already exists",F0="Annotation with such name does not exist";var Bl=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var Dl=require("@vkontakte/videoplayer-shared/es2015"),u5="1",p5=100,tp=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new Dl.Subscription}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=(0,Dl.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"},p5);this.subscriptions.add((0,Dl.observeElementSize)(this.rootAnnotationsContainer).subscribe(({width:o,height:n})=>{this.playerSize={width:o,height:n},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 Bl(D0);if(this.annotations.has(e))throw new Bl(H0);i.style.zIndex=(o=i.style.zIndex)!=null?o:u5,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 Bl(F0);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 n=e.offsetTop,s=e.offsetLeft,l=e.offsetWidth,d=e.offsetHeight;return n<0||s<0||s+l>i||n+d>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};var Ka=require("@vkontakte/videoplayer-shared/es2015"),un=class{init({store:e,microStores:i,interactiveController:o,config:n}){return(0,Ka.assertNonNullable)(e),(0,Ka.assertNonNullable)(i),(0,Ka.assertNonNullable)(n),n.interactiveData&&(0,Ka.assertNonNullable)(o),this.subscription=new Ka.Subscription,this.subscription}};var _c=class extends un{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$=Bt(z({},ae(null)),{toggle:()=>this.state$.update(i=>!i)})}init(i){let o=super.init(i),{isInteractiveExpectation$:n}=i.store.state;return o.add(n.subscribe(s=>{this.state$.set(s?!0:null)})),o}};var bc=class extends un{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$=Bt(z({},ae(null)),{toggle:()=>this.state$.update(i=>!i)})}init(i){let o=super.init(i),{microStores:n,store:s}=i,{fakeIsPlaying$:l}=n,{isInteractiveExpectation$:d,isPlaying$:a}=s.state,{controlsVisible:u,isMobile:f}=s.ui,v=Se(f),p=()=>v&&Se(u);return o.add(u.subscribe(y=>{if(!v)return;let w=Se(l);Se(a)?this.state$.set(y):w!==null&&this.state$.set(!w||y)})),o.add(a.subscribe(y=>{this.state$.set(!y||p())})),o.add(l.subscribe(y=>{if(y===null)return;let w=Se(d);if(p()){this.state$.set(!0);return}w&&this.state$.set(!y)})),o}};var $c=class extends un{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=ae("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:n}=i;return o.add(n.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 U0=require("@vkontakte/videoplayer-shared/es2015");var Kv=ae(!1),ip=null,yc=class extends un{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$=Bt(z({},Kv),{set:(i,o=!1)=>{i!==Se(Kv)&&(this.clearTimeout(),Kv.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:n,config:s}=i,{isInteractiveTime$:l,isPlaying$:d}=n.state,a=n.ui.controlsVisible,{interactiveTimeIndicator:u}=n.ui.controls;o.add(a.subscribe(v=>{Se(l)&&v&&this.state$.set(!1)}));let f=(s==null?void 0:s.interactiveData)||{tooltipHelpHintActive:!1};return o.add((0,U0.combine)({isPlaying$:d,isInteractiveTime$:l,interactiveTimeIndicator:u}).subscribe(({isPlaying$:v,isInteractiveTime$:p,interactiveTimeIndicator:y})=>{var w,$;if(!(!v||!(y!=null&&y.isDisplayed))){if(!p)return this.state$.set(!1);f.tooltipHelpHintActive&&ip===null&&(ip=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),($=(w=n.callbacks)==null?void 0:w.onInteractiveTimeIndicatorHintDeactivated)==null||$.call(w))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};var op=require("@vkontakte/videoplayer-shared/es2015");var xc=class extends un{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$=Bt(z({},ae(null)),{toggle:op.noop});this.checkIfShouldHide=i=>Ks(i,"s")}init(i){let o=super.init(i),{store:n,interactiveController:s}=i,l=n.ui.currentGridType$,d=n.getLogger().createComponentLog("GraphIsOpened microStore");return this.state$.toggle=()=>xt(this,null,function*(){if(this.checkIfShouldHide(Se(l)))return;let a=Se(this.state$),{isEnded$:u,playbackState$:f}=n.state,{disabledControls$:v}=n.ui.controls,p=Se(u),y=Se(f);if(a)try{yield s==null?void 0:s.toggleGraphView(!1),this.state$.set(!1),v.remove(pf),!p&&this.graphMadePause&&n.actions.internal.play()}catch(w){d({message:"Cant hide graph"})}else{this.graphMadePause=y==="playing";try{yield s==null?void 0:s.toggleGraphView(!0),this.state$.set(!0),v.add(pf),!p&&this.graphMadePause&&n.actions.internal.pause()}catch(w){d({message:"Cant show graph"})}}}),o.add((0,op.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 qv=require("@vkontakte/videoplayer-shared/es2015"),wc=class extends un{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:n}=i,{info:{isActive$:s,isEnabled$:l,type:d}}=n.webApi.pictureInPictureApi||{info:{isActive$:new qv.ValueSubject(!1),isEnabled$:new qv.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 rp=require("@vkontakte/videoplayer-shared/es2015");var np=require("@vkontakte/videoplayer-shared/es2015");var z0=({maxShowCount:t,timeout:e})=>{let i=[t!==0?f5({maxCount:t}):void 0,e!==0?m5({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},f5=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,n;e[i]=((o=e[i])!=null?o:0)+1,np.safeStorage.set("videoplayer_notifications_manager_count",JSON.stringify((n=e[i])!=null?n:0))},canShowNotification:i=>{var o;return((o=e[i])!=null?o:0)<t}}},m5=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(np.safeStorage.get(e)||"{}")}catch(s){return{}}},o=s=>np.safeStorage.set(e,JSON.stringify(s)),n=s=>{let l=i();delete l[s],o(l)};return{notificationShowed:s=>{o(Bt(z({},i()),{[s]:{timeout:t,launchTime:Date.now()}}))},canShowNotification:s=>{let l=i()[s];if(l){let d=Date.now()-l.launchTime>t;return d&&n(s),d}else return!0}}};var Sc=class extends un{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:n,uiConfig:{features:{maxCountShowSlowVideoNotification:s,timeoutShowSlowVideoNotification:l,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:a}}}=i;this.notificationManager=z0({maxShowCount:s,timeout:l});let u=n.getPlayer();return o.add(u.events.severeStallOccured$.pipe((0,rp.filterChanged)(),(0,rp.filter)(f=>f)).subscribe(()=>{d&&!u.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(a&&n.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var W0=()=>[_c,bc,$c,yc,xc,wc,Sc].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:Bt(z({},e),{[o.stateName]:o.state$})}},{subscribers:[],stores:{}});var Hl=require("@vkontakte/videoplayer-shared/es2015");var sp=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 v5=Object.defineProperty,g5=Object.defineProperties,h5=Object.getOwnPropertyDescriptors,K0=Object.getOwnPropertySymbols,_5=Object.prototype.hasOwnProperty,b5=Object.prototype.propertyIsEnumerable,Gv=(t,e,i)=>e in t?v5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,js=(t,e)=>{for(var i in e||(e={}))_5.call(e,i)&&Gv(t,i,e[i]);if(K0)for(var i of K0(e))b5.call(e,i)&&Gv(t,i,e[i]);return t},$5=(t,e)=>g5(t,h5(e)),Xt=(t,e,i)=>Gv(t,typeof e!="symbol"?e+"":e,i),ap=(t,e,i)=>new Promise((o,n)=>{var s=a=>{try{d(i.next(a))}catch(u){n(u)}},l=a=>{try{d(i.throw(a))}catch(u){n(u)}},d=a=>a.done?o(a.value):Promise.resolve(a.value).then(s,l);d((i=i.apply(t,e)).next())}),y5={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:Ji.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:(0,Cc.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},Dn=Y(void 0),lp=class extends HTMLElement{constructor(){super(),Xt(this,"svelteStubComponent"),Xt(this,"svelteRootComponent"),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,"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,"internalsExposure",null),Xt(this,"shadowDOMCallbacksDisabled",!1),Xt(this,"fatalError$",new dp.ValueSubject(null)),Xt(this,"createOneStat",(e,i={})=>{var o,n,s,l;if(!this.videoConfig)return;let{albumId:d,statPlace:a,statUserSalt:u,statTrackCode:f,statVKAppId:v,refreshStatAuthToken:p,autoplay:y,isMobile:w,isTouch:$,refDomain:S,deviceId:T,interactiveData:E}=hc(this.videoConfig,i),V=(o=E==null?void 0:E.projectInfo)==null?void 0:o.pid,k=(s=(n=this.interactiveController)==null?void 0:n.state.isReplay$.getValue())!=null?s:!1;k&&(this.prevIsid=void 0);let{unitedVideoId:I,isClip:R=!1}=e;if(this.uiConfig.features.statistics&&I)try{return new Fl.OneStat(js({movieId:I,albumId:d,place:a,trackCode:f,vkAppId:v,autoplay:(l=y&&!this.interactiveController)!=null?l:!1,mobile:$!=null?$:w,clip:R,refDomain:S,deviceId:T,isPreviewPlayerView:this.videoConfig.playerView==="preview"},V&&(!this.isInited||k)&&{projectId:Number(V)}),js({refreshAuthToken:p,userSalt:u,config:this.statisticsConfig},this.interactiveController&&{useIsid:!0,isid:this.prevIsid}))}catch(D){console.error(D),this.log({message:D.message})}}),Hl.devNull.create("ui"),this.logger=new Ji.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new Ji.Subscription,this.interactiveSubscription=new Ji.Subscription,this.graphMadePause=!1,this.fatalError$.subscribe(e=>{this.unmountComponent(this.svelteErrorComponent),e&&(this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.svelteErrorComponent=ss(Fv,{target:this.playerContainer}))})}connectedCallback(){var e,i;if(this.rootContainer)return;this.initPlayerRootContainers();let o=(e=this.getAttribute("stub-title"))!=null?e:void 0,n=(i=this.getAttribute("stub-thumb-url"))!=null?i:void 0,s=ri({title:o,thumbUrl:n}),l={target:this.playerContainer,props:s};this.svelteStubComponent=ss(Hv,l)}disconnectedCallback(){var e,i,o,n,s,l,d;this.shadowDOMCallbacksDisabled||((e=this.annotationsApi)==null||e.destroy(),(i=this.slotsApi)==null||i.destroy(),(o=this.focusManager)==null||o.destroy(),(n=this.mediaSessionApi)==null||n.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteErrorComponent),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(),Hl.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:n,refreshStatAuthToken:s}=hc(this.videoConfig,i),{unitedVideoId:l}=e;if(this.uiConfig.features.thinStatistics&&l)return new Fl.ThinOneStat.ThinOneStat({deviceId:o,movieId:l,preload:n,isPreviewPlayerView:this.videoConfig.playerView==="preview"},{config:this.statisticsConfig,refreshAuthToken:s})}createPlayer(e,i={},o){var n,s,l,d,a,u,f,v,p,y;if(!this.videoConfig)return;let{albumId:w,statPlace:$,statAuthToken:S,preload:T,autoplay:E,volume:V,muted:k,fromTime:I,canRewindLive:R,supportLink:Z,showAds:D,adsSlotId:H,adsParams:W={},adsPreviewParam:X,adsAutoplayParam:j,interfaceLanguage:ce,isCyrillicRelatedInterface:re,logoClickable:pe,logoHidden:xe,isMobile:fe,isTouch:ie,isAudioDisabled:Pe,isLiveCatchUpMode:ee,fullScreenTarget:N,failoverHosts:Ue,canDownload:_e,callbacks:he,interactiveData:ue,showThumbTimer:me,additionalButtons:ve=[],additionalSettingsMenuItems:se=[],additionalContextMenuItems:Ge=[],repeat:et,saveRate:J,volumeMultiplier:Le,showEndScreen:Ie,showAutoplayNext:Ze,mediascopePixels:at}=hc(this.videoConfig,i),{sources:bt,title:gt,thumbUrl:Tt,unitedVideoId:Qe,isClip:Kt=!1,duration:ti,adsParams:Yt={},videoEpisodes:jt,previewThumbsData:oe,subtitles:qt,live:$e}=e;if(!bt&&!$e){let Zt=new Error("empty sources and live");this.fatalError$.next(Zt),(n=he.onCrashed)==null||n.call(he,Zt.message);return}let Ce=js(js({},W),Yt),le=this.getNextVideoInfo(),Ne={sources:bt,title:gt,thumbUrl:Tt,subtitles:qt,unitedVideoId:Qe,isClip:Kt,live:$e,albumId:w,statPlace:$,autoplay:E,muted:k,volume:V,fromTime:I,canRewindLive:R,showAds:D,adsSlotId:H,adsParams:Ce,adsPreviewParam:X,adsAutoplayParam:j,duration:ti,logoClickable:pe,logoHidden:xe,isTouch:ie!=null?ie:fe,repeat:et,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:le.nextVideoTitle,endScreenVideoThumb:le.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Ke={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi};this.log({message:`create player, props: ${JSON.stringify(Ne)}`});let Ve=(s=this.interactiveController)==null?void 0:s.state.statistics$.getValue(),Xe=(Ve==null?void 0:Ve.oneStat)||this.createOneStat(e,i),Be=this.createThinOneStat(e,i),tt;at&&(tt=new Fl.MediascopePixel({pixels:at})),(Xe||Be)&&(this.statistics=new Ou(Xe,Be,tt,Ve==null?void 0:Ve.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new $a(this.uiConfig.sentry,{version:ha,env:lu},{movieId:Qe,albumId:w,place:$,autoplay:(l=E&&!this.interactiveController)!=null?l:!1,mobile:ie!=null?ie:fe,clip:Kt}),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=js(js({},this.sentry),$a.getInstance());let Qt=!!ue,it=[],yi="tooltip_interactive_go_back_disabled_first";if(Qt&&this.interactiveController){let Zt=this.interactiveController.state.isInitialChapter$.getValue(),vi=this.interactiveController.getHistoryState();Zt&&it.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||it.push("SEEK_TO_INTERACTIVE_BUTTON"),vi.hasPrevChapter$.getValue()||(it.push("PLAY_PREV_CHAPTER_BUTTON"),Zt||(vi.isGoBackLimited$.getValue()?yi="tooltip_interactive_go_back_disabled_limit":yi="tooltip_interactive_go_back_disabled"))}let mi=()=>{var Zt;this.isInited=!1,this.prevIsid=void 0;let vi=(o==null?void 0:o.info.isEnded$.getValue())&&((Zt=this.interactiveController)==null?void 0:Zt.state.isEndChapter$.getValue());he.onReplayInteractiveVideo&&!vi?he.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=a0({player:o,interfaceLanguage:ce,isCyrillicRelatedInterface:re,videoId:Qe,isClip:Kt,isLiveCatchUpMode:ee,isAudioDisabled:Pe,statAuthToken:S,callbacks:he,webApi:Ke,videoEpisodes:jt,previewThumbsData:oe,canDownload:_e,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:it,isInteractive:Qt,saveRate:J,interactiveRanges$:(f=this.interactiveController)==null?void 0:f.state.interactiveRanges$,isInteractiveTime$:(v=this.interactiveController)==null?void 0:v.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:mi,playPrevChapterDisabledTooltip:yi,hasInteractiveBranches:!!((y=(p=this.interactiveController)==null?void 0:p.getChapterBranches())!=null&&y.length),additionalButtons:this.uiConfig.features.additionalButtons?ve:[],additionalSettingsMenuItems:se!=null?se:[],additionalContextMenuItems:Ge!=null?Ge:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:et&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView});let{stores:nt}=this.microStoresRoot=W0(),ni=()=>{var Zt,vi,Lo,lo,co,Ht;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(Ft=>{var yt;return(yt=he==null?void 0:he.onCurrentFormatChanged)==null?void 0:yt.call(he,Ft)})),this.subscription.add(nt.interactiveControlsOpacity$.subscribe(Ft=>{var yt;Ft!==null&&((yt=this==null?void 0:this.interactiveController)==null||yt.setDisabledControls(Ft))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(Ft=>{var yt;return(yt=he==null?void 0:he.onThroughputEstimationChanged)==null?void 0:yt.call(he,Ft)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(Ft=>{var yt;return(yt=he==null?void 0:he.onTrafficSavingEnabledChanged)==null?void 0:yt.call(he,Ft)})),this.subscription.add(new Ji.Observable(Ft=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(yt=>Ft.next(yt)))}).pipe(this.uiConfig.features.skipInitialPlaybackRateValue?(0,Ji.skip)(1):Ft=>Ft).subscribe(Ft=>{var yt;return(yt=he==null?void 0:he.onCurrentPlaybackRateChanged)==null?void 0:yt.call(he,Ft)})),this.subscription.add(this.store.state.volume$.subscribe(Ft=>{var yt;return(yt=he==null?void 0:he.onVolumeChange)==null?void 0:yt.call(he,Ft)})),this.subscription.add(this.store.state.muted$.subscribe(Ft=>{var yt,Hi,Vo,G;if(Ft)(yt=he==null?void 0:he.onMute)==null||yt.call(he);else{let dt=(Vo=((Hi=this.store)==null?void 0:Hi.state.volume$)&&Se(this.store.state.volume$))!=null?Vo:0;(G=he==null?void 0:he.onUnmute)==null||G.call(he,dt)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(Ft=>{var yt;return(yt=he==null?void 0:he.onVideoBitrateChanged)==null?void 0:yt.call(he,Ft)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(Ft=>{var yt;let Hi=(yt=this.store)==null?void 0:yt.ui.controls.disabledControls$;Hi&&(Ft&&!Hi.includes(xd)&&Hi.add(xd),Ft||Hi.remove(xd))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(Ft=>ap(this,null,function*(){var yt;if(!Cc.clientChecker.browser.isSamsungBrowser||!Ft||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&(yield this.replayInteractiveChapter((yt=this.videoConfig)==null?void 0:yt.callbacks.onExternalFullscreenExit))}))),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(Ft=>{var yt;return(yt=he==null?void 0:he.onVSIDChanged)==null?void 0:yt.call(he,Ft)})),this.initMediaSession(),O(Dn,{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:bt,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:gt,thumbUrl:Tt,subtitles:qt,live:$e,preload:T,autoplay:E,muted:k,volume:V,fromTime:I,canRewindLive:R,supportLink:Z,showAds:D,adsSlotId:H,adsParams:Ce,adsPreviewParam:X,adsAutoplayParam:j,duration:ti,logoClickable:pe,logoHidden:xe,isMobile:ie!=null?ie:fe,failoverHosts:Ue,fullScreenTarget:N,saveRate:J,shadowRootContainer:this.shadowRootContainer,showMiniTimer:me,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:le.nextVideoTitle,endScreenVideoThumb:le.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:Le,showEndScreen:Ie,showAutoplayNext:Ze},!0);let ui={target:this.playerContainer,props:r(Dn)};this.svelteRootComponent=ss(Ov,ui),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(Lo=(vi=(Zt=this.videoConfig)==null?void 0:Zt.callbacks)==null?void 0:vi.onInited)==null||Lo.call(vi)),(lo=this.internalsExposure)==null||lo.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((Ht=(co=this.videoConfig)==null?void 0:co.callbacks)!=null&&Ht.onDevNullLog)?Hl.devNull.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):Hl.devNull.destroy("ui")};this.coreConfig.asyncResolveClientChecker?Cc.clientChecker.isInited$.subscribe(Zt=>{Zt&&(console.log("UI SDK async start"),ni())}):ni()}addPlayerInfoSubscriptions(){var e,i;let o=this.store,n=(e=this.microStoresRoot)==null?void 0:e.stores;if(!o||!n)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(n.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 n=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!n){this.log({message:"no next video"});return}this.isInited&&(0,Ji.isNonNullable)(n.unitedVideoId)&&((o=this.store)==null||o.actions.internal.nextMovie(n.unitedVideoId)),this.unmountComponent(this.svelteRootComponent),this.createPlayer(n,{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 ap(this,null,function*(){var e,i,o,n,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?Se(a):this.videoConfig.interfaceLanguage,{projectInfo:f,initChapterId:v,historyApi:p,videoLoader:y}=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:y,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$:$}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add($.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 S=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(T=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]=$5(js({},T.config),{title:(f==null?void 0:f.title)||T.config.title});let E=S?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(T.player,E),S&&(S=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:T,actionType:E})=>{var V,k,I,R,Z,D;if(!this.store||!this.microStoresRoot)return;let H=w.getValue();if(T==="action-choice"&&E==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(wd)),T==="action-choice-canceled"){let W=Se(this.store.state.isPlaying$)||H;if(((I=(V=this.videoConfig)==null?void 0:V.isTouch)!=null?I:(k=this.videoConfig)!=null&&k.isMobile)&&W){this.store.ui.interactiveHideMobileControls.set(!0);return}(D=(R=this.videoConfig)==null?void 0:(Z=R.callbacks).onDisabledInteractiveClick)==null||D.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(wd)})),yield this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(n=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&n.onInteractiveHistoryChanged){let T=this.interactiveController.getHistoryState();this.subscription.add(T.history$.subscribe(E=>{var V,k,I;E.length&&((I=(k=(V=this.videoConfig)==null?void 0:V.callbacks)==null?void 0:k.onInteractiveHistoryChanged)==null||I.call(k,E))}))}(l=(s=this.videoConfig)==null?void 0:s.callbacks)!=null&&l.onInteractiveChapterChanged&&this.subscription.add(this.interactiveController.events.chapterChanged$.subscribe(T=>{var E,V,k;(k=(E=this.videoConfig)==null?void 0:(V=E.callbacks).onInteractiveChapterChanged)==null||k.call(V,T.chapter,T.manifestVideo)})),this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var T,E,V,k;(T=this.microStoresRoot)==null||T.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(k=(E=this.videoConfig)==null?void 0:(V=E.callbacks).onInteractiveTimeIndicatorClick)==null||k.call(V)})),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,n,s,l,d,a,u,f,v,p,y,w,$,S,T,E,V,k,I,R,Z,D,H,W,X,j,ce,re;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData){let pe=new Error("empty videos");this.fatalError$.next(pe),(n=(o=e.callbacks)==null?void 0:o.onCrashed)==null||n.call(o,pe.message);return}else this.fatalError$.next(null);if(this.videoConfig=hc(y5,(0,Ji.cloneDeepWith)(e,pe=>pe instanceof HTMLElement?pe:void 0)),this.uiConfig=Bh((s=i.ui)!=null?s:{}),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 Ji.InternalsExposure("UI"))),Hl.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,dp.now)()]}),(0,Ji.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(p=(v=this.uiConfig.features.mediaSession)!=null?v:this.videoConfig.isMediaSessionEnabled)!=null?p:!0),(0,Ji.isNonNullable)(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(w=(y=this.uiConfig.features.pip)!=null?y:this.videoConfig.isPictureInPictureEnabled)!=null?w:!0,this.uiConfig.features.dpip=(S=($=this.uiConfig.features.dpip)!=null?$:this.videoConfig.isPictureInPictureEnabled)!=null?S:!0),this.videoConfig.isTouch=(E=(T=this.uiConfig.isMobile)!=null?T:this.videoConfig.isTouch)!=null?E:this.videoConfig.isMobile,(V=this.videoConfig).autoplay&&(V.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(k=this.uiConfig.ads.enable)!=null?k:this.videoConfig.showAds,this.videoConfig.adsSlotId=(I=this.uiConfig.ads.slot)!=null?I:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(R=this.uiConfig.ads.preview)!=null?R:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((Z=this.uiConfig.showLogo)!=null?Z:!this.videoConfig.logoHidden),(D=this.videoConfig).canRewindLive&&(D.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(H=this.videoConfig.supportLink)!=null?H:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(W=this.uiConfig.features.endScreen)!=null?W:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(X=this.uiConfig.features.autoplayNext)!=null?X:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(j=this.uiConfig.features.nextPrevButtons)!=null?j:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((ce=this.videoConfig.videos)!=null&&ce[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let pe={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=ep.getLatestSupportedVersion(pe):this.pictureInPictureApi=new ya(pe)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new Xu:void 0,this.slotsApi=this.uiConfig.features.slots?new Qu:void 0,this.annotationsApi=this.uiConfig.features.annotations?new tp(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]),B0(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(re=this.slotsApi)==null||re.init(this.shadowRootContainer,this.store),this.focusManager=this._shadowRoot?new sp(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();r(Dn)&&(r(Dn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(Dn).nextButtonActive=this.isNextButtonActive(),r(Dn).prevButtonActive=this.isPrevButtonActive(),r(Dn).endScreenVideoTitle=o.nextVideoTitle,r(Dn).endScreenVideoThumb=o.nextVideoThumb,r(Dn).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}=js({},this.videoConfig.videos[this.currentPlayingVideoIndex]),o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",n=>this.seekTime(n.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>{var n,s,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(s=(n=this.videoConfig)==null?void 0:n.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 n,s,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(s=(n=this.videoConfig)==null?void 0:n.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,n;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"}),(n=this.svelteRootComponent)==null||n.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()}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,r(Dn)&&(r(Dn).needToRepeatPlaylist=this.needToRepeatPlaylist,r(Dn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(Dn).nextButtonActive=this.isNextButtonActive(),r(Dn).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,n;this.log({message:`set auto quality limitation. Max: ${(i=e.max)!=null?i:"none"}. Min: ${(o=e.min)!=null?o:"none"}`}),(n=this.svelteRootComponent)==null||n.setAutoQualityLimits(e)}addLanguage(e){var i;(i=this.store)==null||i.actions.internal.addLanguage(e)}setLanguage(e){return ap(this,null,function*(){var i;yield(i=this.store)==null?void 0:i.actions.internal.setLanguage(e)})}setLiveStart(e){var i,o;this.log({message:"live started"}),(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.atLiveEdge$.getValue()}setLiveWaitingRecover(e=!1){var i;let o=this.isLiveTailPlaying(),n=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)};n&&s(),(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var l;n||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 n=()=>{var s;(s=this.store)==null||s.actions.internal.setLiveWaitingRecord(!0)};o&&n(),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var s;o||n(),(s=this.store)==null||s.destroy()})}setLiveEnd(e){var i;let o=this.isLiveTailPlaying(),n=!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(n){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 ap(this,null,function*(){var i,o;if(this.interactiveController&&((i=this.store)!=null&&i.state.positionExact$)){let n=Se(this.store.state.positionExact$),l=Se(this.store.state.interactiveEpisodes$).find(a=>!a.completed);this.interactiveController.events.playerChanged$.pipe((0,Ji.once)()).subscribe(()=>{l&&n>=l.time?this.seekTime(l.time):this.seekTime(n),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)}unmountComponent(e){e&&ua(e)}};var Ul=require("@vkontakte/videoplayer-shared/es2015"),cp=require("@vkontakte/videoplayer-core/es2015"),x5=()=>{window.customElements.define("vk-video-player",lp)};
388
+ /* \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 */.out-of-view {position:absolute !important;left:-1000vh !important;}.icon.icon-error-stub {display:flex;justify-content:center;align-items:center;}`};function Bv(t,e){U(e,!0),G(t,Jx);let[i,o]=Ue(),n=()=>S(Qt,"$isLive$",i),s=()=>S(di,"$availableSubtitlesList$",i),l=m(e,"sources",7),d=m(e,"store",7),a=m(e,"microStoresRoot",7),u=m(e,"videoConfig",7),f=m(e,"uiConfig",7),v=m(e,"title",7),p=m(e,"thumbUrl",7),y=m(e,"interactiveContainer",7),w=m(e,"interactiveController",7),$=m(e,"subtitles",7),C=m(e,"subtitlesDefaultLanguage",7),T=m(e,"live",7),I=m(e,"preload",7),M=m(e,"autoplay",7),k=m(e,"volume",7,void 0),E=m(e,"muted",7,void 0),R=m(e,"fromTime",7),X=m(e,"canRewindLive",7),D=m(e,"showAds",7),H=m(e,"adsSlotId",7,void 0),K=m(e,"adsParams",7,void 0),J=m(e,"adsPreviewParam",7,void 0),j=m(e,"adsAutoplayParam",7,void 0),ce=m(e,"duration",7,void 0),oe=m(e,"logoClickable",7),pe=m(e,"logoHidden",7),be=m(e,"isMobile",7),fe=m(e,"showNextPrevButtons",7,!1),ke=m(e,"nextButtonActive",7,!1),ne=m(e,"prevButtonActive",7,!1),Le=m(e,"endScreenVideoTitle",7,void 0),se=m(e,"endScreenVideoThumb",7,void 0),N=m(e,"isOneVideoPlaylist",7,!1),Be=m(e,"supportLink",7),ue=m(e,"shadowRootContainer",7),ge=m(e,"outerContainerRef",7),ee=m(e,"fullScreenTarget",7,void 0),ve=m(e,"failoverHosts",7,void 0),De=m(e,"showMiniTimer",7,!1),me=m(e,"saveRate",7),at=m(e,"seekToInteractive",7,za.noop),Z=m(e,"playPrevChapter",7,za.noop),Me=m(e,"volumeMultiplier",7),Ee=m(e,"showAutoplayNext",7),We=m(e,"showEndScreen",7,!0),tt=m(e,"keyboardControls",15,void 0),{subscribers:bt,stores:Mt}=a();Hh(f());let mt=At(),Qe=f().logoLink,Gt=d().ui.debugPanelVisible,ii=d().ui.playerSize,Qt=d().state.isLive$,le=d().state.isInteractive&&Vl.clientChecker.device.isAndroid,Ot=Y(void 0),we=null,_e=Y(!1);d().getAdmanWrapper().init({switchFromAdsToVideo:d().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:d().actions.internal.switchFromVideoToAds,setMuted:d().actions.external.setMuted},d().ads,{vsid:d().vsid}),Zh(d(),Mt),Ge(()=>{var F,Bt;d().ui.isMobile.set(be()),(Bt=(F=u().callbacks)==null?void 0:F.onDomReady)==null||Bt.call(F)});let de=(F=!1)=>{O(_e,!0),F?d().actions.external.firstStart(D()):d().actions.internal.firstStart(D())},Ne=()=>{if(mt.features.qualityDetailsSubMenuEnabled){let F=_1(d().videoId);if(F)switch(F.type){case"high_quality":d().actions.internal.setHighQualityEnabled(!0,F.appliesTo);break;case"traffic_saving":d().actions.internal.setTrafficSavingEnabled(!0,F.appliesTo);break;case"exact_quality":d().actions.internal.setQuality(F.quality);break}}else{b1(d().videoId),Sf()&&d().actions.internal.setTrafficSavingEnabled(!0);let Bt=$f(d().videoId);Bt&&d().actions.internal.setQuality(Bt)}};function Fe(F){var ct,ei,Dt;let Bt=l()||F;Bt&&d().initVideo({container:r(Ot),sources:Bt,failoverHosts:ve(),subtitles:$(),subtitlesDefaultLanguage:C(),volumeMultiplier:Me()});let ci=za.safeStorage.get(hd)==="true";Gt.set(ci),R()>0&&d().actions.external.seekTime(R());let xt=be()?mt.volumeDefault:(ei=(ct=k())!=null?ct:pu())!=null?ei:mt.volumeDefault,et=(Dt=E())!=null?Dt:p1();if(d().actions.external.setVolume(xt),d().actions.external.setMuted(et),d().getAdmanWrapper().setInitialVolume(et?0:xt),Ne(),mt.features.saveRate&&me()){let ro=v1();ro&&!n()&&d().actions.internal.setPlaybackRate(ro)}if(Ee()){let ro=h1();ro&&d().actions.internal.setAutoplayNextEnabled(ro)}d().ui.isAutoplay.set(M()),M()&&de(),I()&&mt.features.preload&&d().actions.internal.preload()}let Ve=F=>{if(window.ResizeObserver){let Bt,ci;we=new ResizeObserver((0,za.throttleFn)(xt=>{let et=xt[0];if(et.contentBoxSize){let ct=Array.isArray(et.contentBoxSize)?et.contentBoxSize[0]:et.contentBoxSize;Bt=ct.inlineSize,ci=ct.blockSize}else et.contentRect&&(Bt=et.contentRect.width,ci=et.contentRect.height);ii.set({width:Bt,height:ci})},300)),we.observe(F)}ii.set({width:F.clientWidth,height:F.clientHeight})},Ke=()=>{document.hidden&&d().actions.external.stop()};zt(()=>{var ci,xt,et,ct;le&&document.addEventListener("visibilitychange",Ke),mt.debugLog&&d().actions.internal.startLogging(),Ve(r(Ot));let F=bt.map(ei=>ei.init({store:d(),microStores:Mt,config:u(),interactiveController:w(),uiConfig:f()})),Bt=()=>{le&&document.removeEventListener("visibilitychange",Ke),we==null||we.disconnect(),F.forEach(ei=>ei.unsubscribe()),d().destroy()};return((ci=T())==null?void 0:ci.status)==="upcoming"?(d().actions.internal.setLiveWaitingStart(!0),Bt):((xt=T())==null?void 0:xt.status)==="waiting"?(d().actions.internal.setLiveWaitingRecover(!0),Bt):(((et=T())==null?void 0:et.status)==="finished"||((ct=T())==null?void 0:ct.status)==="postlive")&&!(l()&&(0,Vl.areValidLiveRecordSources)(l()))?(d().actions.internal.setLiveWaitingRecord(!0),Bt):(Fe(),Bt)});function He(){r(_e)?d().actions.external.play():de(!0)}function Xe(){d().actions.external.pause()}function kt(F){d().actions.external.setMuted(F)}function Jt(){d().actions.external.toggleSubtitle()}function ot(){var F;(F=d().webApi.slotsApi)!=null&&F.haveSlots()&&d().actions.external.hideControls()}function fi(){var F;(F=d().webApi.slotsApi)!=null&&F.haveSlots()&&d().actions.external.showControls()}function mi(F){be()||F>=0&&F<=1&&d().actions.external.setVolume(F)}function dt(F){d().actions.internal.seekTime(F,O_.SeekAction.UNKNOWN)}function jt(F){d().actions.external.seekEpisodeStartTime(F)}function qi(){d().actions.external.returnFocusToEpisodes()}function Yt(F){d().actions.external.setPlaybackRate(F)}function Ai(F){d().actions.external.setAutoQualityLimits(F)}let Ro=Ju(mt.view),Kt=u().playerView==="preview",di=d().state.availableSubtitlesList$;if(mt.features.initSubtitles){let F=!1;Ge(()=>{var Bt;if(!F&&s().length){F=!0;let ci;if(mt.features.userVideoPrefs&&d().videoId){let et=vu(mt.userSalt,String(d().videoId));et!=null&&et.subtitleTrackId&&(ci=s().find(ct=>ct.value===et.subtitleTrackId))}let xt=(Bt=Tf())!=null?Bt:C();xt&&(ci!=null||(ci=s().find(et=>et.language===xt))),d().actions.internal.setSubtitle(ci)}})}var no=Xx();let jo;var Vt=_(no);{var Tt=F=>{Nv(F,{get store(){return d()},get uiConfig(){return mt},get thumbUrl(){return p()},get interactiveContainer(){return y()},get live(){return T()},get autoplay(){return M()},get canRewindLive(){return X()},get showAds(){return D()},get adsSlotId(){return H()},get adsParams(){return K()},get adsPreviewParam(){return J()},get adsAutoplayParam(){return j()},get duration(){return ce()},get logoClickable(){return oe()},get logoHidden(){return pe()},get logoTargetUrl(){return Qe},get nextButtonActive(){return ke()},get prevButtonActive(){return ne()},get endScreenVideoTitle(){return Le()},get endScreenVideoThumb(){return se()},get isOneVideoPlaylist(){return N()},get supportLink(){return Be()},get shadowRootContainer(){return ue()},get outerContainerRef(){return ge()},get fullScreenTarget(){return ee()},get showMiniTimer(){return De()},get playerStarted(){return r(_e)},get seekToInteractive(){return at()},get playPrevChapter(){return Z()},firstStart:de,seekTime:dt,get showEndScreen(){return We()},get showAutoplayNext(){return Ee()},get showNextPrevButtons(){return fe()},get videoContainer(){return r(Ot)},set videoContainer(Bt){O(Ot,Bt,!0)}})},Oi=F=>{var Bt=qe(),ci=he(Bt);{var xt=ct=>{Ov(ct,{get thumbUrl(){return p()},get outsideDuration(){return ce()},get canRewindLive(){return X()},get videoContainer(){return r(Ot)},set videoContainer(ei){O(Ot,ei,!0)}})},et=ct=>{Vv(ct,{get store(){return d()},get uiConfig(){return mt},get title(){return v()},get thumbUrl(){return p()},get interactiveContainer(){return y()},get live(){return T()},get autoplay(){return M()},get canRewindLive(){return X()},get showAds(){return D()},get adsSlotId(){return H()},get adsParams(){return K()},get adsPreviewParam(){return J()},get adsAutoplayParam(){return j()},get duration(){return ce()},get logoClickable(){return oe()},get logoHidden(){return pe()},get logoTargetUrl(){return Qe},get nextButtonActive(){return ke()},get prevButtonActive(){return ne()},get endScreenVideoTitle(){return Le()},get endScreenVideoThumb(){return se()},get isOneVideoPlaylist(){return N()},get supportLink(){return Be()},get shadowRootContainer(){return ue()},get outerContainerRef(){return ge()},get fullScreenTarget(){return ee()},get showMiniTimer(){return De()},get playerStarted(){return r(_e)},get seekToInteractive(){return at()},get playPrevChapter(){return Z()},firstStart:de,get showEndScreen(){return We()},get showAutoplayNext(){return Ee()},get showNextPrevButtons(){return fe()},get videoContainer(){return r(Ot)},set videoContainer(ei){O(Ot,ei,!0)},get keyboardControls(){return tt()},set keyboardControls(ei){tt(ei)}})};V(ci,ct=>{Kt?ct(xt):ct(et,!1)})}b(F,Bt)};V(Vt,F=>{be()?F(Tt):F(Oi,!1)})}h(no),B(F=>{jo=te(no,1,"root svelte-16kg8zb",null,jo,F),rt(no,Ro)},[()=>({"root--miui-browser":Vl.clientChecker.device.isMobile&&Vl.clientChecker.browser.isMiuiBrowser,"visible-outside":Kt})]),b(t,no);var Gi=z({initVideo:Fe,play:He,pause:Xe,setMuted:kt,toggleSubtitle:Jt,hideControls:ot,showControls:fi,setVolume:mi,seekTime:dt,seekEpisodeStartTime:jt,returnFocusToEpisodes:qi,setPlaybackRate:Yt,setAutoQualityLimits:Ai,get sources(){return l()},set sources(F){l(F)},get store(){return d()},set store(F){d(F)},get microStoresRoot(){return a()},set microStoresRoot(F){a(F)},get videoConfig(){return u()},set videoConfig(F){u(F)},get uiConfig(){return f()},set uiConfig(F){f(F)},get title(){return v()},set title(F){v(F)},get thumbUrl(){return p()},set thumbUrl(F){p(F)},get interactiveContainer(){return y()},set interactiveContainer(F){y(F)},get interactiveController(){return w()},set interactiveController(F){w(F)},get subtitles(){return $()},set subtitles(F){$(F)},get subtitlesDefaultLanguage(){return C()},set subtitlesDefaultLanguage(F){C(F)},get live(){return T()},set live(F){T(F)},get preload(){return I()},set preload(F){I(F)},get autoplay(){return M()},set autoplay(F){M(F)},get volume(){return k()},set volume(F){k(F)},get muted(){return E()},set muted(F){E(F)},get fromTime(){return R()},set fromTime(F){R(F)},get canRewindLive(){return X()},set canRewindLive(F){X(F)},get showAds(){return D()},set showAds(F){D(F)},get adsSlotId(){return H()},set adsSlotId(F){H(F)},get adsParams(){return K()},set adsParams(F){K(F)},get adsPreviewParam(){return J()},set adsPreviewParam(F){J(F)},get adsAutoplayParam(){return j()},set adsAutoplayParam(F){j(F)},get duration(){return ce()},set duration(F){ce(F)},get logoClickable(){return oe()},set logoClickable(F){oe(F)},get logoHidden(){return pe()},set logoHidden(F){pe(F)},get isMobile(){return be()},set isMobile(F){be(F)},get showNextPrevButtons(){return fe()},set showNextPrevButtons(F){fe(F)},get nextButtonActive(){return ke()},set nextButtonActive(F){ke(F)},get prevButtonActive(){return ne()},set prevButtonActive(F){ne(F)},get endScreenVideoTitle(){return Le()},set endScreenVideoTitle(F){Le(F)},get endScreenVideoThumb(){return se()},set endScreenVideoThumb(F){se(F)},get isOneVideoPlaylist(){return N()},set isOneVideoPlaylist(F){N(F)},get supportLink(){return Be()},set supportLink(F){Be(F)},get shadowRootContainer(){return ue()},set shadowRootContainer(F){ue(F)},get outerContainerRef(){return ge()},set outerContainerRef(F){ge(F)},get fullScreenTarget(){return ee()},set fullScreenTarget(F){ee(F)},get failoverHosts(){return ve()},set failoverHosts(F){ve(F)},get showMiniTimer(){return De()},set showMiniTimer(F){De(F)},get saveRate(){return me()},set saveRate(F){me(F)},get showAutoplayNext(){return Ee()},set showAutoplayNext(F){Ee(F)},get seekToInteractive(){return at()},set seekToInteractive(F){at(F)},get playPrevChapter(){return Z()},set playPrevChapter(F){Z(F)},get volumeMultiplier(){return Me()},set volumeMultiplier(F){Me(F)},get showEndScreen(){return We()},set showEndScreen(F){We(F)},get keyboardControls(){return tt()},set keyboardControls(F){tt(F)}});return o(),Gi}var e5=Te('<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 Dv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=e5();Pe(o,()=>W({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"60",fill:"none","aria-hidden":"true","data-testid":"stub-icon",role:"img"},i));var n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Ce(),h(o),b(t,o)}function Hv(t,e){let i=m(e,"isWhite",3,!1),o=g(()=>i()?"color: #fff;":"color: #909499;");Dv(t,{get style(){return r(o)}})}var t5=A('<div class="title svelte-1y9fytq"> </div>'),i5=A('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),o5={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 Fv(t,e){G(t,o5);var i=i5(),o=_(i);{var n=d=>{var a=t5(),u=_(a,!0);h(a),B(()=>$e(u,e.title)),b(d,a)};V(o,d=>{e.title&&d(n)})}var s=P(o,2);{var l=d=>{let a=g(()=>!!e.thumbUrl);Hv(d,{get isWhite(){return r(a)}})};V(s,d=>{(!e.title||!e.thumbUrl)&&d(l)})}h(i),B(()=>rt(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),b(t,i)}var n5=A('<div class="playerError svelte-m5iv29"><!></div>'),r5={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 Uv(t){G(t,r5);var e=n5(),i=_(e);Oa(i,{}),h(e),b(t,e)}var up=require("@vkontakte/videoplayer-shared/es2015"),Ni=require("@vkontakte/videoplayer-shared/es2015"),yc=require("@vkontakte/videoplayer-core/es2015"),Hl=require("@vkontakte/videoplayer-statistics/es2015");var tp=require("@vkontakte/videoplayer-shared/es2015"),ep=class{constructor(){this.subscription=new tp.Subscription,this.logger=new tp.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[n,s]of e)try{(o=(i=navigator.mediaSession).setActionHandler)==null||o.call(i,n,s)}catch(l){throw new Error(`The media session action "${n}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||(this.clearSubscriptions(),this.subscription.add(e.state.positionExact$.subscribe(i=>{var s,l;let o=xe(e.state.currentPlaybackRate$),n=xe(e.state.duration$);if(!(!isFinite(i)||!isFinite(n)))try{(l=(s=navigator.mediaSession).setPositionState)==null||l.call(s,{position:i,playbackRate:o,duration:n})}catch(d){this.log({message:`MediaSession setPositionState can't call with position: ${i} and duration: ${n}`})}})))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};var Nl=require("@vkontakte/videoplayer-shared/es2015");var s5=Te('<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 zv(t,e){let i=Re(e,["$$slots","$$events","$$legacy","children"]);var o=s5();Pe(o,()=>W({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 n=_(o);ye(n,()=>{var s;return(s=e.children)!=null?s:ae}),Ce(),h(o),b(t,o)}var a5=A('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),l5={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 Wv(t,e){U(e,!0),G(t,l5);let[i,o]=Ue(),n=()=>S(u,"$interfaceLanguage$",i),s=()=>S(f,"$isMobile$",i),l=Ie(),d=At(),a=!!l.webApi.pictureInPictureApi,u=l.interfaceLanguage$,f=l.ui.isMobile,v=l.ui.t,p=g(()=>n()&&v("pip_dummy_title")),y=Ju(d.view);var w=a5();let $;var C=_(w);let T;var I=_(C);zv(I,{}),h(C);var M=P(C,2),k=_(M,!0);h(M),h(w),B((E,R)=>{$=te(w,1,"player-pip-dummy svelte-1pbsod4",null,$,E),rt(w,y),T=te(C,1,"dummy-image svelte-1pbsod4",null,T,R),$e(k,r(p))},[()=>({"is-pip-api":a}),()=>({desktop:!s()})]),b(t,w),z(),o()}var d5=Object.defineProperty,c5=(t,e,i)=>e in t?d5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Rl=(t,e,i)=>c5(t,typeof e!="symbol"?e+"":e,i),Kv=(t,e,i)=>new Promise((o,n)=>{var s=a=>{try{d(i.next(a))}catch(u){n(u)}},l=a=>{try{d(i.throw(a))}catch(u){n(u)}},d=a=>a.done?o(a.value):Promise.resolve(a.value).then(s,l);d((i=i.apply(t,e)).next())}),u5=460,p5=280,pc=class{constructor({enabled:e=!0}={enabled:!0}){Rl(this,"playerDomElement"),Rl(this,"playerParentShadowRoot"),Rl(this,"playerDummyElement"),Rl(this,"svelteContext"),Rl(this,"pipWindow"),Rl(this,"info",{isActive$:new Nl.ValueSubject(!1),isEnabled$:new Nl.ValueSubject(!1),type:1}),this.info.isEnabled$=new Nl.ValueSubject(e)}isSupported(){let{isEmbed:e}=(0,Nl.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 Kv(this,null,function*(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=yield documentPictureInPicture.requestWindow({width:u5,height:p5,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(`
389
+ `),n=document.createElement("style");n.textContent=o;let s=this.createStretchedContainer(),l=s.attachShadow({mode:"open"});l.append(n),l.append(this.playerDomElement);let d={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=ns(Wv,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||(ca(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1),this.pipWindow=void 0)})})}exit(){return Kv(this,null,function*(){return new Promise(e=>{var i;this.pipWindow&&((i=documentPictureInPicture.window)==null||i.close()),e()})})}dispose(){return Kv(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 B_(t){return t instanceof pc}var ip=class{static getLatestSupportedVersion(e){let i=new $a(e),o=new pc(e);if(o.isSupported())return o;if(i.isSupported())return i}};function fc(t,e){var n,s;let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let l of i)o[l]=(s=(n=e[l])!=null?n:t[l])!=null?s:void 0;return o}var D_="Inner error. Unexpectedly root annotation container null reference exception",H_="Annotation with such name already exists",F_="Annotation with such name does not exist";var Ol=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var Bl=require("@vkontakte/videoplayer-shared/es2015"),f5="1",m5=100,op=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new Bl.Subscription}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=(0,Bl.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"},m5);this.subscriptions.add((0,Bl.observeElementSize)(this.rootAnnotationsContainer).subscribe(({width:o,height:n})=>{this.playerSize={width:o,height:n},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 Ol(D_);if(this.annotations.has(e))throw new Ol(H_);i.style.zIndex=(o=i.style.zIndex)!=null?o:f5,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 Ol(F_);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 n=e.offsetTop,s=e.offsetLeft,l=e.offsetWidth,d=e.offsetHeight;return n<0||s<0||s+l>i||n+d>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};var Wa=require("@vkontakte/videoplayer-shared/es2015"),rn=class{init({store:e,microStores:i,interactiveController:o,config:n}){return(0,Wa.assertNonNullable)(e),(0,Wa.assertNonNullable)(i),(0,Wa.assertNonNullable)(n),n.interactiveData&&(0,Wa.assertNonNullable)(o),this.subscription=new Wa.Subscription,this.subscription}};var mc=class extends rn{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$=Ut(W({},re(null)),{toggle:()=>this.state$.update(i=>!i)})}init(i){let o=super.init(i),{isInteractiveExpectation$:n}=i.store.state;return o.add(n.subscribe(s=>{this.state$.set(s?!0:null)})),o}};var vc=class extends rn{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$=Ut(W({},re(null)),{toggle:()=>this.state$.update(i=>!i)})}init(i){let o=super.init(i),{microStores:n,store:s}=i,{fakeIsPlaying$:l}=n,{isInteractiveExpectation$:d,isPlaying$:a}=s.state,{controlsVisible:u,isMobile:f}=s.ui,v=xe(f),p=()=>v&&xe(u);return o.add(u.subscribe(y=>{if(!v)return;let w=xe(l);xe(a)?this.state$.set(y):w!==null&&this.state$.set(!w||y)})),o.add(a.subscribe(y=>{this.state$.set(!y||p())})),o.add(l.subscribe(y=>{if(y===null)return;let w=xe(d);if(p()){this.state$.set(!0);return}w&&this.state$.set(!y)})),o}};var gc=class extends rn{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=re("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:n}=i;return o.add(n.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 U_=require("@vkontakte/videoplayer-shared/es2015");var qv=re(!1),np=null,hc=class extends rn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$=Ut(W({},qv),{set:(i,o=!1)=>{i!==xe(qv)&&(this.clearTimeout(),qv.set(i),!i&&np&&(np=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()})}init(i){let o=super.init(i),{store:n,config:s}=i,{isInteractiveTime$:l,isPlaying$:d}=n.state,a=n.ui.controlsVisible,{interactiveTimeIndicator:u}=n.ui.controls;o.add(a.subscribe(v=>{xe(l)&&v&&this.state$.set(!1)}));let f=(s==null?void 0:s.interactiveData)||{tooltipHelpHintActive:!1};return o.add((0,U_.combine)({isPlaying$:d,isInteractiveTime$:l,interactiveTimeIndicator:u}).subscribe(({isPlaying$:v,isInteractiveTime$:p,interactiveTimeIndicator:y})=>{var w,$;if(!(!v||!(y!=null&&y.isDisplayed))){if(!p)return this.state$.set(!1);f.tooltipHelpHintActive&&np===null&&(np=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),($=(w=n.callbacks)==null?void 0:w.onInteractiveTimeIndicatorHintDeactivated)==null||$.call(w))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};var rp=require("@vkontakte/videoplayer-shared/es2015");var _c=class extends rn{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$=Ut(W({},re(null)),{toggle:rp.noop});this.checkIfShouldHide=i=>zs(i,"s")}init(i){let o=super.init(i),{store:n,interactiveController:s}=i,l=n.ui.currentGridType$,d=n.getLogger().createComponentLog("GraphIsOpened microStore");return this.state$.toggle=()=>St(this,null,function*(){if(this.checkIfShouldHide(xe(l)))return;let a=xe(this.state$),{isEnded$:u,playbackState$:f}=n.state,{disabledControls$:v}=n.ui.controls,p=xe(u),y=xe(f);if(a)try{yield s==null?void 0:s.toggleGraphView(!1),this.state$.set(!1),v.remove(ff),!p&&this.graphMadePause&&n.actions.internal.play()}catch(w){d({message:"Cant hide graph"})}else{this.graphMadePause=y==="playing";try{yield s==null?void 0:s.toggleGraphView(!0),this.state$.set(!0),v.add(ff),!p&&this.graphMadePause&&n.actions.internal.pause()}catch(w){d({message:"Cant show graph"})}}}),o.add((0,rp.combine)({graphIsOpened:this.state$,currentGridType:l}).subscribe(f=>St(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 Gv=require("@vkontakte/videoplayer-shared/es2015"),bc=class extends rn{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:re(!1),isEnabled$:re(!1),type$:re(void 0)}}init(i){let o=super.init(i),{store:n}=i,{info:{isActive$:s,isEnabled$:l,type:d}}=n.webApi.pictureInPictureApi||{info:{isActive$:new Gv.ValueSubject(!1),isEnabled$:new Gv.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 ap=require("@vkontakte/videoplayer-shared/es2015");var sp=require("@vkontakte/videoplayer-shared/es2015");var z_=({maxShowCount:t,timeout:e})=>{let i=[t!==0?v5({maxCount:t}):void 0,e!==0?g5({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},v5=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,n;e[i]=((o=e[i])!=null?o:0)+1,sp.safeStorage.set("videoplayer_notifications_manager_count",JSON.stringify((n=e[i])!=null?n:0))},canShowNotification:i=>{var o;return((o=e[i])!=null?o:0)<t}}},g5=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(sp.safeStorage.get(e)||"{}")}catch(s){return{}}},o=s=>sp.safeStorage.set(e,JSON.stringify(s)),n=s=>{let l=i();delete l[s],o(l)};return{notificationShowed:s=>{o(Ut(W({},i()),{[s]:{timeout:t,launchTime:Date.now()}}))},canShowNotification:s=>{let l=i()[s];if(l){let d=Date.now()-l.launchTime>t;return d&&n(s),d}else return!0}}};var $c=class extends rn{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:re({}),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:n,uiConfig:{features:{maxCountShowSlowVideoNotification:s,timeoutShowSlowVideoNotification:l,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:a}}}=i;this.notificationManager=z_({maxShowCount:s,timeout:l});let u=n.getPlayer();return o.add(u.events.severeStallOccured$.pipe((0,ap.filterChanged)(),(0,ap.filter)(f=>f)).subscribe(()=>{d&&!u.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(a&&n.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var W_=()=>[mc,vc,gc,hc,_c,bc,$c].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:Ut(W({},e),{[o.stateName]:o.state$})}},{subscribers:[],stores:{}});var Dl=require("@vkontakte/videoplayer-shared/es2015");var lp=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 h5=Object.defineProperty,_5=Object.defineProperties,b5=Object.getOwnPropertyDescriptors,K_=Object.getOwnPropertySymbols,$5=Object.prototype.hasOwnProperty,y5=Object.prototype.propertyIsEnumerable,Qv=(t,e,i)=>e in t?h5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Gs=(t,e)=>{for(var i in e||(e={}))$5.call(e,i)&&Qv(t,i,e[i]);if(K_)for(var i of K_(e))y5.call(e,i)&&Qv(t,i,e[i]);return t},x5=(t,e)=>_5(t,b5(e)),Zt=(t,e,i)=>Qv(t,typeof e!="symbol"?e+"":e,i),dp=(t,e,i)=>new Promise((o,n)=>{var s=a=>{try{d(i.next(a))}catch(u){n(u)}},l=a=>{try{d(i.throw(a))}catch(u){n(u)}},d=a=>a.done?o(a.value):Promise.resolve(a.value).then(s,l);d((i=i.apply(t,e)).next())}),w5={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:Ni.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:(0,yc.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},Fn=Y(void 0),cp=class extends HTMLElement{constructor(){super(),Zt(this,"svelteStubComponent"),Zt(this,"svelteRootComponent"),Zt(this,"svelteErrorComponent"),Zt(this,"store"),Zt(this,"microStoresRoot"),Zt(this,"statistics"),Zt(this,"sentry"),Zt(this,"_shadowRoot"),Zt(this,"playerContainer"),Zt(this,"rootContainer"),Zt(this,"shadowRootContainer"),Zt(this,"playerId"),Zt(this,"uiConfig"),Zt(this,"coreConfig"),Zt(this,"statisticsConfig"),Zt(this,"interactiveController"),Zt(this,"interactiveContainer"),Zt(this,"graphMadePause"),Zt(this,"currentPlayingVideoIndex",0),Zt(this,"needToRepeatPlaylist",!1),Zt(this,"videoConfig"),Zt(this,"pictureInPictureApi"),Zt(this,"mediaSessionApi"),Zt(this,"unsubscribePlayerPhaseSubscription"),Zt(this,"logger"),Zt(this,"log"),Zt(this,"subscription"),Zt(this,"interactiveSubscription"),Zt(this,"annotationsApi"),Zt(this,"slotsApi"),Zt(this,"focusManager"),Zt(this,"prevIsid"),Zt(this,"isInited",!1),Zt(this,"internalsExposure",null),Zt(this,"shadowDOMCallbacksDisabled",!1),Zt(this,"fatalError$",new up.ValueSubject(null)),Zt(this,"createOneStat",(e,i={})=>{var o,n,s,l;if(!this.videoConfig)return;let{albumId:d,statPlace:a,statUserSalt:u,statTrackCode:f,statVKAppId:v,refreshStatAuthToken:p,autoplay:y,isMobile:w,isTouch:$,refDomain:C,deviceId:T,interactiveData:I}=fc(this.videoConfig,i),M=(o=I==null?void 0:I.projectInfo)==null?void 0:o.pid,k=(s=(n=this.interactiveController)==null?void 0:n.state.isReplay$.getValue())!=null?s:!1;k&&(this.prevIsid=void 0);let{unitedVideoId:E,isClip:R=!1}=e;if(this.uiConfig.features.statistics&&E)try{return new Hl.OneStat(Gs({movieId:E,albumId:d,place:a,trackCode:f,vkAppId:v,autoplay:(l=y&&!this.interactiveController)!=null?l:!1,mobile:$!=null?$:w,clip:R,refDomain:C,deviceId:T,isPreviewPlayerView:this.videoConfig.playerView==="preview"},M&&(!this.isInited||k)&&{projectId:Number(M)}),Gs({refreshAuthToken:p,userSalt:u,config:this.statisticsConfig},this.interactiveController&&{useIsid:!0,isid:this.prevIsid}))}catch(D){console.error(D),this.log({message:D.message})}}),Dl.devNull.create("ui"),this.logger=new Ni.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new Ni.Subscription,this.interactiveSubscription=new Ni.Subscription,this.graphMadePause=!1,this.fatalError$.subscribe(e=>{this.unmountComponent(this.svelteErrorComponent),e&&(this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.svelteErrorComponent=ns(Uv,{target:this.playerContainer}))})}connectedCallback(){var e,i;if(this.rootContainer)return;this.initPlayerRootContainers();let o=(e=this.getAttribute("stub-title"))!=null?e:void 0,n=(i=this.getAttribute("stub-thumb-url"))!=null?i:void 0,s=ri({title:o,thumbUrl:n}),l={target:this.playerContainer,props:s};this.svelteStubComponent=ns(Fv,l)}disconnectedCallback(){var e,i,o,n,s,l,d;this.shadowDOMCallbacksDisabled||((e=this.annotationsApi)==null||e.destroy(),(i=this.slotsApi)==null||i.destroy(),(o=this.focusManager)==null||o.destroy(),(n=this.mediaSessionApi)==null||n.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteErrorComponent),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(),Dl.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:n,refreshStatAuthToken:s}=fc(this.videoConfig,i),{unitedVideoId:l}=e;if(this.uiConfig.features.thinStatistics&&l)return new Hl.ThinOneStat.ThinOneStat({deviceId:o,movieId:l,preload:n,isPreviewPlayerView:this.videoConfig.playerView==="preview"},{config:this.statisticsConfig,refreshAuthToken:s})}createPlayer(e,i={},o){var n,s,l,d,a,u,f,v,p,y;if(!this.videoConfig)return;let{albumId:w,statPlace:$,statAuthToken:C,preload:T,autoplay:I,volume:M,muted:k,fromTime:E,canRewindLive:R,supportLink:X,showAds:D,adsSlotId:H,adsParams:K={},adsPreviewParam:J,adsAutoplayParam:j,interfaceLanguage:ce,isCyrillicRelatedInterface:oe,logoClickable:pe,logoHidden:be,isMobile:fe,isTouch:ke,isAudioDisabled:ne,isLiveCatchUpMode:Le,fullScreenTarget:se,failoverHosts:N,canDownload:Be,callbacks:ue,interactiveData:ge,showThumbTimer:ee,additionalButtons:ve=[],additionalSettingsMenuItems:De=[],additionalContextMenuItems:me=[],repeat:at,saveRate:Z,volumeMultiplier:Me,showEndScreen:Ee,showAutoplayNext:We,mediascopePixels:tt}=fc(this.videoConfig,i),{sources:bt,title:Mt,thumbUrl:mt,unitedVideoId:Qe,isClip:Gt=!1,duration:ii,adsParams:Qt={},videoEpisodes:Xt,previewThumbsData:le,subtitles:Ot,subtitlesDefaultLanguage:we,live:_e}=e;if(!bt&&!_e){let Yt=new Error("empty sources and live");this.fatalError$.next(Yt),(n=ue.onCrashed)==null||n.call(ue,Yt.message);return}let de=Gs(Gs({},K),Qt),Ne=this.getNextVideoInfo(),Fe={sources:bt,title:Mt,thumbUrl:mt,subtitles:Ot,subtitlesDefaultLanguage:we,unitedVideoId:Qe,isClip:Gt,live:_e,albumId:w,statPlace:$,autoplay:I,muted:k,volume:M,fromTime:E,canRewindLive:R,showAds:D,adsSlotId:H,adsParams:de,adsPreviewParam:J,adsAutoplayParam:j,duration:ii,logoClickable:pe,logoHidden:be,isTouch:ke!=null?ke:fe,repeat:at,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Ne.nextVideoTitle,endScreenVideoThumb:Ne.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Ve={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi};this.log({message:`create player, props: ${JSON.stringify(Fe)}`});let Ke=(s=this.interactiveController)==null?void 0:s.state.statistics$.getValue(),He=(Ke==null?void 0:Ke.oneStat)||this.createOneStat(e,i),Xe=this.createThinOneStat(e,i),kt;tt&&(kt=new Hl.MediascopePixel({pixels:tt})),(He||Xe)&&(this.statistics=new Du(He,Xe,kt,Ke==null?void 0:Ke.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new ba(this.uiConfig.sentry,{version:ga,env:du},{movieId:Qe,albumId:w,place:$,autoplay:(l=I&&!this.interactiveController)!=null?l:!1,mobile:ke!=null?ke:fe,clip:Gt}),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=Gs(Gs({},this.sentry),ba.getInstance());let ot=!!ge,fi=[],mi="tooltip_interactive_go_back_disabled_first";if(ot&&this.interactiveController){let Yt=this.interactiveController.state.isInitialChapter$.getValue(),Ai=this.interactiveController.getHistoryState();Yt&&fi.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||fi.push("SEEK_TO_INTERACTIVE_BUTTON"),Ai.hasPrevChapter$.getValue()||(fi.push("PLAY_PREV_CHAPTER_BUTTON"),Yt||(Ai.isGoBackLimited$.getValue()?mi="tooltip_interactive_go_back_disabled_limit":mi="tooltip_interactive_go_back_disabled"))}let dt=()=>{var Yt;this.isInited=!1,this.prevIsid=void 0;let Ai=(o==null?void 0:o.info.isEnded$.getValue())&&((Yt=this.interactiveController)==null?void 0:Yt.state.isEndChapter$.getValue());ue.onReplayInteractiveVideo&&!Ai?ue.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=a_({player:o,interfaceLanguage:ce,isCyrillicRelatedInterface:oe,videoId:Qe,isClip:Gt,isLiveCatchUpMode:Le,isAudioDisabled:ne,statAuthToken:C,callbacks:ue,webApi:Ve,videoEpisodes:Xt,previewThumbsData:le,canDownload:Be,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:fi,isInteractive:ot,saveRate:Z,interactiveRanges$:(f=this.interactiveController)==null?void 0:f.state.interactiveRanges$,isInteractiveTime$:(v=this.interactiveController)==null?void 0:v.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:dt,playPrevChapterDisabledTooltip:mi,hasInteractiveBranches:!!((y=(p=this.interactiveController)==null?void 0:p.getChapterBranches())!=null&&y.length),additionalButtons:this.uiConfig.features.additionalButtons?ve:[],additionalSettingsMenuItems:De!=null?De:[],additionalContextMenuItems:me!=null?me:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:at&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView,playerId:this.playerId});let{stores:jt}=this.microStoresRoot=W_(),qi=()=>{var Yt,Ai,Ro,Kt,di,no;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(Vt=>{var Tt;return(Tt=ue==null?void 0:ue.onCurrentFormatChanged)==null?void 0:Tt.call(ue,Vt)})),this.subscription.add(jt.interactiveControlsOpacity$.subscribe(Vt=>{var Tt;Vt!==null&&((Tt=this==null?void 0:this.interactiveController)==null||Tt.setDisabledControls(Vt))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(Vt=>{var Tt;return(Tt=ue==null?void 0:ue.onThroughputEstimationChanged)==null?void 0:Tt.call(ue,Vt)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(Vt=>{var Tt;return(Tt=ue==null?void 0:ue.onTrafficSavingEnabledChanged)==null?void 0:Tt.call(ue,Vt)})),this.subscription.add(new Ni.Observable(Vt=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(Tt=>Vt.next(Tt)))}).pipe(this.uiConfig.features.skipInitialPlaybackRateValue?(0,Ni.skip)(1):Vt=>Vt).subscribe(Vt=>{var Tt;return(Tt=ue==null?void 0:ue.onCurrentPlaybackRateChanged)==null?void 0:Tt.call(ue,Vt)})),this.subscription.add(this.store.state.volume$.subscribe(Vt=>{var Tt;return(Tt=ue==null?void 0:ue.onVolumeChange)==null?void 0:Tt.call(ue,Vt)})),this.subscription.add(this.store.state.muted$.subscribe(Vt=>{var Tt,Oi,Gi,F;if(Vt)(Tt=ue==null?void 0:ue.onMute)==null||Tt.call(ue);else{let Bt=(Gi=((Oi=this.store)==null?void 0:Oi.state.volume$)&&xe(this.store.state.volume$))!=null?Gi:0;(F=ue==null?void 0:ue.onUnmute)==null||F.call(ue,Bt)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(Vt=>{var Tt;return(Tt=ue==null?void 0:ue.onVideoBitrateChanged)==null?void 0:Tt.call(ue,Vt)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(Vt=>{var Tt;let Oi=(Tt=this.store)==null?void 0:Tt.ui.controls.disabledControls$;Oi&&(Vt&&!Oi.includes(_d)&&Oi.add(_d),Vt||Oi.remove(_d))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(Vt=>dp(this,null,function*(){var Tt;if(!yc.clientChecker.browser.isSamsungBrowser||!Vt||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&(yield this.replayInteractiveChapter((Tt=this.videoConfig)==null?void 0:Tt.callbacks.onExternalFullscreenExit))}))),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(Vt=>{var Tt;return(Tt=ue==null?void 0:ue.onVSIDChanged)==null?void 0:Tt.call(ue,Vt)})),this.initMediaSession(),O(Fn,{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:bt,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:Mt,thumbUrl:mt,subtitles:Ot,subtitlesDefaultLanguage:we,live:_e,preload:T,autoplay:I,muted:k,volume:M,fromTime:E,canRewindLive:R,supportLink:X,showAds:D,adsSlotId:H,adsParams:de,adsPreviewParam:J,adsAutoplayParam:j,duration:ii,logoClickable:pe,logoHidden:be,isMobile:ke!=null?ke:fe,failoverHosts:N,fullScreenTarget:se,saveRate:Z,shadowRootContainer:this.shadowRootContainer,showMiniTimer:ee,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Ne.nextVideoTitle,endScreenVideoThumb:Ne.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:Me,showEndScreen:Ee,showAutoplayNext:We},!0);let jo={target:this.playerContainer,props:r(Fn)};this.svelteRootComponent=ns(Bv,jo),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(Ro=(Ai=(Yt=this.videoConfig)==null?void 0:Yt.callbacks)==null?void 0:Ai.onInited)==null||Ro.call(Ai)),(Kt=this.internalsExposure)==null||Kt.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((no=(di=this.videoConfig)==null?void 0:di.callbacks)!=null&&no.onDevNullLog)?Dl.devNull.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):Dl.devNull.destroy("ui")};this.coreConfig.asyncResolveClientChecker?yc.clientChecker.isInited$.subscribe(Yt=>{Yt&&(console.log("UI SDK async start"),qi())}):qi()}addPlayerInfoSubscriptions(){var e,i;let o=this.store,n=(e=this.microStoresRoot)==null?void 0:e.stores;if(!o||!n)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(n.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 n=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!n){this.log({message:"no next video"});return}this.isInited&&(0,Ni.isNonNullable)(n.unitedVideoId)&&((o=this.store)==null||o.actions.internal.nextMovie(n.unitedVideoId)),this.unmountComponent(this.svelteRootComponent),this.createPlayer(n,{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,n,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?xe(a):this.videoConfig.interfaceLanguage,{projectInfo:f,initChapterId:v,historyApi:p,videoLoader:y}=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:y,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$:$}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add($.subscribe(T=>{if(!this.isInited)return;let I=this.store;T?I.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):I.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]=x5(Gs({},T.config),{title:(f==null?void 0:f.title)||T.config.title});let I=C?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(T.player,I),C&&(C=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:T,actionType:I})=>{var M,k,E,R,X,D;if(!this.store||!this.microStoresRoot)return;let H=w.getValue();if(T==="action-choice"&&I==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(bd)),T==="action-choice-canceled"){let K=xe(this.store.state.isPlaying$)||H;if(((E=(M=this.videoConfig)==null?void 0:M.isTouch)!=null?E:(k=this.videoConfig)!=null&&k.isMobile)&&K){this.store.ui.interactiveHideMobileControls.set(!0);return}(D=(R=this.videoConfig)==null?void 0:(X=R.callbacks).onDisabledInteractiveClick)==null||D.call(X)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:T,removeAllOpenURI:I})=>{this.store&&T==="container-fake-removed"&&I&&this.store.ui.controls.disabledControls$.remove(bd)})),yield this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(n=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&n.onInteractiveHistoryChanged){let T=this.interactiveController.getHistoryState();this.subscription.add(T.history$.subscribe(I=>{var M,k,E;I.length&&((E=(k=(M=this.videoConfig)==null?void 0:M.callbacks)==null?void 0:k.onInteractiveHistoryChanged)==null||E.call(k,I))}))}(l=(s=this.videoConfig)==null?void 0:s.callbacks)!=null&&l.onInteractiveChapterChanged&&this.subscription.add(this.interactiveController.events.chapterChanged$.subscribe(T=>{var I,M,k;(k=(I=this.videoConfig)==null?void 0:(M=I.callbacks).onInteractiveChapterChanged)==null||k.call(M,T.chapter,T.manifestVideo)})),this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var T,I,M,k;(T=this.microStoresRoot)==null||T.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(k=(I=this.videoConfig)==null?void 0:(M=I.callbacks).onInteractiveTimeIndicatorClick)==null||k.call(M)})),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,n,s,l,d,a,u,f,v,p,y,w,$,C,T,I,M,k,E,R,X,D,H,K,J,j,ce,oe;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData){let pe=new Error("empty videos");this.fatalError$.next(pe),(n=(o=e.callbacks)==null?void 0:o.onCrashed)==null||n.call(o,pe.message);return}else this.fatalError$.next(null);if(this.videoConfig=fc(w5,(0,Ni.cloneDeepWith)(e,pe=>pe instanceof HTMLElement?pe:void 0)),this.playerId=(0,Ni.getPlayerId)(e.playerId),this.uiConfig=Dh((s=i.ui)!=null?s:{}),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 Ni.InternalsExposure("ui",this.playerId))),Dl.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,up.now)()]}),(0,Ni.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(p=(v=this.uiConfig.features.mediaSession)!=null?v:this.videoConfig.isMediaSessionEnabled)!=null?p:!0),(0,Ni.isNonNullable)(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(w=(y=this.uiConfig.features.pip)!=null?y:this.videoConfig.isPictureInPictureEnabled)!=null?w:!0,this.uiConfig.features.dpip=(C=($=this.uiConfig.features.dpip)!=null?$:this.videoConfig.isPictureInPictureEnabled)!=null?C:!0),this.videoConfig.isTouch=(I=(T=this.uiConfig.isMobile)!=null?T:this.videoConfig.isTouch)!=null?I:this.videoConfig.isMobile,(M=this.videoConfig).autoplay&&(M.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(k=this.uiConfig.ads.enable)!=null?k:this.videoConfig.showAds,this.videoConfig.adsSlotId=(E=this.uiConfig.ads.slot)!=null?E:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(R=this.uiConfig.ads.preview)!=null?R:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((X=this.uiConfig.showLogo)!=null?X:!this.videoConfig.logoHidden),(D=this.videoConfig).canRewindLive&&(D.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(H=this.videoConfig.supportLink)!=null?H:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(K=this.uiConfig.features.endScreen)!=null?K:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(J=this.uiConfig.features.autoplayNext)!=null?J:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(j=this.uiConfig.features.nextPrevButtons)!=null?j:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((ce=this.videoConfig.videos)!=null&&ce[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let pe={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=ip.getLatestSupportedVersion(pe):this.pictureInPictureApi=new $a(pe)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new ep:void 0,this.slotsApi=this.uiConfig.features.slots?new Yu:void 0,this.annotationsApi=this.uiConfig.features.annotations?new op(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]),B_(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(oe=this.slotsApi)==null||oe.init(this.shadowRootContainer,this.store),this.focusManager=this._shadowRoot?new lp(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();r(Fn)&&(r(Fn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(Fn).nextButtonActive=this.isNextButtonActive(),r(Fn).prevButtonActive=this.isPrevButtonActive(),r(Fn).endScreenVideoTitle=o.nextVideoTitle,r(Fn).endScreenVideoThumb=o.nextVideoThumb,r(Fn).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}=Gs({},this.videoConfig.videos[this.currentPlayingVideoIndex]),o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",n=>this.seekTime(n.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>{var n,s,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(s=(n=this.videoConfig)==null?void 0:n.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 n,s,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(s=(n=this.videoConfig)==null?void 0:n.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,n;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"}),(n=this.svelteRootComponent)==null||n.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()}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,r(Fn)&&(r(Fn).needToRepeatPlaylist=this.needToRepeatPlaylist,r(Fn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(Fn).nextButtonActive=this.isNextButtonActive(),r(Fn).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,n;this.log({message:`set auto quality limitation. Max: ${(i=e.max)!=null?i:"none"}. Min: ${(o=e.min)!=null?o:"none"}`}),(n=this.svelteRootComponent)==null||n.setAutoQualityLimits(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;this.log({message:"live started"}),(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.atLiveEdge$.getValue()}setLiveWaitingRecover(e=!1){var i;let o=this.isLiveTailPlaying(),n=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)};n&&s(),(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var l;n||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 n=()=>{var s;(s=this.store)==null||s.actions.internal.setLiveWaitingRecord(!0)};o&&n(),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var s;o||n(),(s=this.store)==null||s.destroy()})}setLiveEnd(e){var i;let o=this.isLiveTailPlaying(),n=!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(n){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 dp(this,null,function*(){var i,o;if(this.interactiveController&&((i=this.store)!=null&&i.state.positionExact$)){let n=xe(this.store.state.positionExact$),l=xe(this.store.state.interactiveEpisodes$).find(a=>!a.completed);this.interactiveController.events.playerChanged$.pipe((0,Ni.once)()).subscribe(()=>{l&&n>=l.time?this.seekTime(l.time):this.seekTime(n),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)}unmountComponent(e){e&&ca(e)}};var Fl=require("@vkontakte/videoplayer-shared/es2015"),pp=require("@vkontakte/videoplayer-core/es2015"),S5=()=>{window.customElements.define("vk-video-player",cp)};